browserstack-node-sdk 1.34.49 → 1.34.50
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 +1 -1
- 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 -0
- 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
|
-
const a79_0x372456=a79_0x489c;(function(_0x14645a,_0x2d262f){const _0x3ae21a=a79_0x489c,_0x4ec94f=_0x14645a();while(!![]){try{const _0x59d339=-parseInt(_0x3ae21a(0x208))/0x1*(parseInt(_0x3ae21a(0x1db))/0x2)+-parseInt(_0x3ae21a(0x1c5))/0x3+-parseInt(_0x3ae21a(0x200))/0x4+parseInt(_0x3ae21a(0x196))/0x5*(parseInt(_0x3ae21a(0x1ec))/0x6)+-parseInt(_0x3ae21a(0x19f))/0x7*(parseInt(_0x3ae21a(0x22a))/0x8)+parseInt(_0x3ae21a(0x207))/0x9*(-parseInt(_0x3ae21a(0x1c9))/0xa)+-parseInt(_0x3ae21a(0x193))/0xb*(-parseInt(_0x3ae21a(0x1e4))/0xc);if(_0x59d339===_0x2d262f)break;else _0x4ec94f['push'](_0x4ec94f['shift']());}catch(_0x5e6573){_0x4ec94f['push'](_0x4ec94f['shift']());}}}(a79_0xfc0e,0xc00f1));function a79_0x489c(_0x10eb3f,_0x3dfee6){const _0xfc0e04=a79_0xfc0e();return a79_0x489c=function(_0x489c53,_0x38feda){_0x489c53=_0x489c53-0x193;let _0x312944=_0xfc0e04[_0x489c53];return _0x312944;},a79_0x489c(_0x10eb3f,_0x3dfee6);}const fs=require('fs'),fsPromise=require('fs/promises'),{performance,PerformanceObserver}=require(a79_0x372456(0x197)),path=require(a79_0x372456(0x203)),util=require(a79_0x372456(0x21a)),logger=require(a79_0x372456(0x209))[a79_0x372456(0x1d3)],{getProcessId,sleep,debug,getTestName}=require(a79_0x372456(0x1b8));class PerformanceTester{static [a79_0x372456(0x1f9)];static [a79_0x372456(0x21d)]=[];static [a79_0x372456(0x1b0)]=[];static ['_errorEvents']=[];static [a79_0x372456(0x20e)]=![];static [a79_0x372456(0x202)]=a79_0x372456(0x220);static ['jsonReportDirPath']=process['env'][a79_0x372456(0x206)]?path[a79_0x372456(0x1ad)](process[a79_0x372456(0x1a1)][a79_0x372456(0x206)],this[a79_0x372456(0x202)]):path[a79_0x372456(0x1ad)](process['cwd'](),'log',this['jsonReportDirName']);static [a79_0x372456(0x1c6)]=process[a79_0x372456(0x1a1)][a79_0x372456(0x206)]?path[a79_0x372456(0x1ad)](process[a79_0x372456(0x1a1)][a79_0x372456(0x206)],a79_0x372456(0x1ac)):path[a79_0x372456(0x1ad)](process[a79_0x372456(0x194)](),a79_0x372456(0x1ac));static ['jsonReportFileName']=this['jsonReportDirPath']+'/performance-report-'+getProcessId()+a79_0x372456(0x1b9);static ['errorReportFileName']=this[a79_0x372456(0x1c6)]+a79_0x372456(0x1d0)+getProcessId()+a79_0x372456(0x1b9);static [a79_0x372456(0x1e7)]={};static ['eventsMap']={};static['startMonitoring'](_0xc7a934=this[a79_0x372456(0x1d4)]+a79_0x372456(0x1ed)+getProcessId()+'.json',_0x330005=this['errorReportDirName']+a79_0x372456(0x1d0)+getProcessId()+a79_0x372456(0x1b9)){const _0xc3d10c=a79_0x372456,_0x740464={};_0x740464['Auaxc']=function(_0x57e1ee,_0x130f10){return _0x57e1ee===_0x130f10;},_0x740464['JcWQA']='measure',_0x740464[_0xc3d10c(0x210)]=function(_0x52706a,_0x1ff67b){return _0x52706a+_0x1ff67b;},_0x740464['SaOWy']='Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20',_0x740464[_0xc3d10c(0x21f)]='function';const _0x38683f=_0x740464;try{!fs[_0xc3d10c(0x1a9)](this[_0xc3d10c(0x1d4)])&&fs[_0xc3d10c(0x1e0)](this['jsonReportDirPath']);}catch(_0x1b486c){logger[_0xc3d10c(0x1bb)](_0x38683f[_0xc3d10c(0x210)](_0x38683f[_0xc3d10c(0x1de)],_0x1b486c));}if(this[_0xc3d10c(0x20e)]||!this[_0xc3d10c(0x22b)]())return;this[_0xc3d10c(0x1f9)]=new PerformanceObserver(_0x1f0bdc=>{const _0x522130=_0xc3d10c;_0x1f0bdc['getEntries']()[_0x522130(0x223)](_0x5e82a6=>{const _0x1bca0b=_0x522130;if(_0x38683f[_0x1bca0b(0x1d5)](_0x5e82a6['entryType'],_0x38683f[_0x1bca0b(0x225)])){let _0x472fbf={};if(_0x5e82a6[_0x1bca0b(0x21c)])_0x472fbf=_0x5e82a6['toJSON']();else for(const _0xa08e58 in _0x5e82a6){_0x472fbf[_0xa08e58]=_0x5e82a6[_0xa08e58];}this[_0x1bca0b(0x1e7)][_0x5e82a6[_0x1bca0b(0x228)]]&&(_0x472fbf=Object[_0x1bca0b(0x1ba)](_0x472fbf,this[_0x1bca0b(0x1e7)][_0x5e82a6[_0x1bca0b(0x228)]])),delete this[_0x1bca0b(0x1e7)][_0x5e82a6[_0x1bca0b(0x228)]],this[_0x1bca0b(0x1b0)]['push'](_0x472fbf);}else this['_events'][_0x1bca0b(0x22d)](_0x5e82a6);});});const _0x76786d={};_0x76786d['buffered']=!![],_0x76786d[_0xc3d10c(0x1dd)]=[_0x38683f[_0xc3d10c(0x21f)],_0x38683f[_0xc3d10c(0x225)]],this[_0xc3d10c(0x1f9)][_0xc3d10c(0x1a7)](_0x76786d),this['started']=!![],this['jsonReportFileName']=_0xc7a934,this[_0xc3d10c(0x1bd)]=_0x330005;}static[a79_0x372456(0x1cd)](){return performance;}static[a79_0x372456(0x1c0)](_0x542112,_0x28652f){const _0x32ede9=a79_0x372456,_0x12505a={};_0x12505a[_0x32ede9(0x1b6)]=function(_0x39d398,_0x2d1414){return _0x39d398+_0x2d1414;},_0x12505a[_0x32ede9(0x1aa)]=function(_0x36de90,_0x3eac77){return _0x36de90||_0x3eac77;},_0x12505a['tAOOF']=function(_0x42eacf,_0x17dbcc){return _0x42eacf===_0x17dbcc;};const _0x2183be=_0x12505a,_0xb0d9c1={};if(!_0x542112||_0x2183be[_0x32ede9(0x1fd)](_0x542112[_0x32ede9(0x1ff)],0x0))return;_0x542112[_0x32ede9(0x1bf)](_0x4041a4=>{const _0x542139=_0x32ede9;!_0xb0d9c1[_0x4041a4[_0x542139(0x228)]]&&(_0xb0d9c1[_0x4041a4['name']]=0x0),_0xb0d9c1[_0x4041a4[_0x542139(0x228)]]+=_0x4041a4[_0x542139(0x1b2)];});const _0xf865e3=_0x28652f[_0x32ede9(0x21e)]((_0x489e44,_0x18370e)=>{const _0x2a5592=_0x32ede9;return _0x2183be[_0x2a5592(0x1b6)](_0xb0d9c1[_0x18370e],_0x2183be[_0x2a5592(0x1aa)](_0x489e44,0x0));},0x0);return _0xf865e3;}static async['calculateTimesFromMultipleFiles'](_0xdf7524,_0x459e8b){const _0x165298=a79_0x372456,_0x3cd0ac={'ScYKy':function(_0x2d3d8b,_0x438ea6){return _0x2d3d8b+_0x438ea6;},'rqDUQ':function(_0x3c6826,_0xb1b30f){return _0x3c6826||_0xb1b30f;},'kGDfL':function(_0x57d98d,_0x5c665e){return _0x57d98d===_0x5c665e;},'uClgp':function(_0x275101,_0x2467ca){return _0x275101(_0x2467ca);},'MJRNb':function(_0x823571,_0x390fc4){return _0x823571(_0x390fc4);}};if(!_0xdf7524||_0x3cd0ac['kGDfL'](_0xdf7524[_0x165298(0x1ff)],0x0))return 0x0;const _0x38d5a1=[];for(const _0x26c657 of _0xdf7524){const _0x4c0bff=path['join']('.',_0x26c657);try{const _0x1d0a97=this['getEventsFromJSON'](_0x4c0bff);_0x1d0a97[_0x165298(0x1bf)](_0x1990dd=>{const _0x43ee82=_0x165298;!_0x38d5a1[_0x1990dd[_0x43ee82(0x228)]]&&(_0x38d5a1[_0x1990dd['name']]=0x0),_0x38d5a1[_0x1990dd[_0x43ee82(0x228)]]+=_0x1990dd['duration'];});}catch(_0x1f8dcc){_0x3cd0ac['uClgp'](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x1f8dcc[_0x165298(0x1cc)]());}}const _0x187ea7=_0x459e8b[_0x165298(0x21e)]((_0x30cd9d,_0x403f83)=>{return _0x3cd0ac['ScYKy'](_0x38d5a1[_0x403f83],_0x3cd0ac['rqDUQ'](_0x30cd9d,0x0));},0x0);return _0x3cd0ac[_0x165298(0x1ca)](debug,'Time\x20for\x20'+_0x459e8b+'\x20for\x20all\x20processes\x20is\x20'+_0x187ea7),_0x187ea7;}static[a79_0x372456(0x1fe)](_0x3781d2){const _0x262102=a79_0x372456;if(!fs['existsSync'](_0x3781d2))return[];return JSON[_0x262102(0x1e1)](fs[_0x262102(0x1b3)](_0x3781d2)[_0x262102(0x1cc)]());}static async['stopAndGenerate'](_0x34d3ee=a79_0x372456(0x212),_0x2e18e5=null){const _0x48785a=a79_0x372456,_0x2f6dbf={'SzBzU':function(_0xac9053,_0x5a3706){return _0xac9053(_0x5a3706);},'ooboS':function(_0x557f78,_0xedf89a){return _0x557f78(_0xedf89a);}};if(!this[_0x48785a(0x20e)])return;await _0x2f6dbf['ooboS'](sleep,0x1e),this[_0x48785a(0x1f9)][_0x48785a(0x216)](),this[_0x48785a(0x20e)]=![],this[_0x48785a(0x1f3)](this[_0x48785a(0x21d)]);const _0x19d19a=this[_0x48785a(0x1a5)](this[_0x48785a(0x21d)]),_0x217513=path[_0x48785a(0x1ad)](process[_0x48785a(0x194)](),_0x34d3ee);fs[_0x48785a(0x1fc)](_0x217513,_0x19d19a,_0x3e8094=>{const _0x9ad15=_0x48785a;if(_0x3e8094){_0x2f6dbf['SzBzU'](debug,'Error\x20in\x20writing\x20html\x20'+_0x3e8094[_0x9ad15(0x1cc)]());return;}_0x2f6dbf['SzBzU'](debug,'Performance\x20report\x20is\x20at\x20'+_0x217513);});if(_0x2e18e5)return this['calculateTimeFromEvents'](this[_0x48785a(0x21d)],_0x2e18e5);}static['generateHTMLReport'](_0x10195f){const _0x5a756e=a79_0x372456,_0x4f8fa2={};_0x4f8fa2['QsQEL']=_0x5a756e(0x20f),_0x4f8fa2[_0x5a756e(0x20a)]='<h1>Performance\x20Report</h1>',_0x4f8fa2['FQROB']=_0x5a756e(0x1b7),_0x4f8fa2['SqXmM']=_0x5a756e(0x1bc);const _0x1bb27e=_0x4f8fa2;let _0x5828e6=_0x1bb27e[_0x5a756e(0x1f0)];return _0x5828e6+=_0x1bb27e[_0x5a756e(0x20a)],_0x5828e6+=_0x1bb27e[_0x5a756e(0x198)],_0x10195f[_0x5a756e(0x223)](_0x41ffad=>{const _0x5117de=_0x5a756e;_0x5828e6+=_0x5117de(0x1df)+_0x41ffad[_0x5117de(0x228)]+_0x5117de(0x1a4)+_0x41ffad[_0x5117de(0x1b2)]+_0x5117de(0x1e9);}),_0x5828e6+=_0x1bb27e[_0x5a756e(0x1e3)],_0x5828e6;}static['generateJSON'](_0xaee9e4){const _0x3fc071=a79_0x372456;if(!this[_0x3fc071(0x1ee)])return;const _0x348426={};_0xaee9e4['map'](_0x42bc7a=>{const _0x474527=_0x3fc071;!_0x348426[_0x42bc7a[_0x474527(0x228)]]&&(_0x348426[_0x42bc7a[_0x474527(0x228)]]=0x0),_0x348426[_0x42bc7a['name']]+=_0x42bc7a[_0x474527(0x1b2)];});const _0x4311d4=Object[_0x3fc071(0x1a8)](_0x348426)[_0x3fc071(0x1bf)](([_0x2a5ed3,_0x528e57])=>{const _0x1cd510=_0x3fc071,_0x219726={};return _0x219726['name']=_0x2a5ed3,_0x219726[_0x1cd510(0x1b2)]=_0x528e57,_0x219726;});fs['writeFileSync'](this[_0x3fc071(0x1ee)],JSON[_0x3fc071(0x19e)](_0x4311d4));}static['isEnabled'](){const _0x50eb5a=a79_0x372456,_0xd46bd8={};_0xd46bd8['vlaFe']=function(_0x5a83ec,_0x510794){return _0x5a83ec===_0x510794;},_0xd46bd8[_0x50eb5a(0x1a2)]=_0x50eb5a(0x1c2);const _0x13fa06=_0xd46bd8;return!_0x13fa06['vlaFe'](process['env'][_0x50eb5a(0x1f7)],_0x13fa06['kdLCE']);}static['measure'](_0x3609bb,_0x3e456a,_0x22a984=null,_0x59fe96={},_0x59802e=null){const _0xb8229=a79_0x372456,_0x3d5677={'RniPS':function(_0x3c1cd9,_0x555ab5){return _0x3c1cd9(_0x555ab5);},'jcBuM':function(_0x109d04,_0x29cf98){return _0x109d04(_0x29cf98);},'fUOXl':function(_0x3181e8,_0x2af8f9){return _0x3181e8 instanceof _0x2af8f9;}};try{if(this[_0xb8229(0x20e)]&&this[_0xb8229(0x22b)]()){let _0x408e1a=_0x3609bb;_0x22a984&&(_0x408e1a=_0x3609bb+'['+JSON[_0xb8229(0x19e)](_0x22a984)+']');PerformanceTester[_0xb8229(0x1c7)](_0x408e1a),this[_0xb8229(0x1e7)]&&(this[_0xb8229(0x1e7)][_0x408e1a]=_0x59fe96);try{const _0x16170b=_0x3e456a[_0xb8229(0x1af)](null,_0x59802e);if(_0x3d5677[_0xb8229(0x1a3)](_0x16170b,Promise))return new Promise((_0x1d8e1c,_0x241aaa)=>{const _0x3f57ba=_0xb8229,_0x27bb1f={'dOliR':function(_0x3fbe50,_0x13e886){const _0x3d1bf6=a79_0x489c;return _0x3d5677[_0x3d1bf6(0x19b)](_0x3fbe50,_0x13e886);},'HUFVz':function(_0x8e4a88,_0x11c9a4){return _0x3d5677['jcBuM'](_0x8e4a88,_0x11c9a4);}};_0x16170b['then'](_0x4dbfd9=>{const _0x287072=a79_0x489c;PerformanceTester[_0x287072(0x224)](_0x408e1a),_0x27bb1f[_0x287072(0x1f1)](_0x1d8e1c,_0x4dbfd9);})[_0x3f57ba(0x1eb)](_0x2de43b=>{const _0x210938=_0x3f57ba;PerformanceTester[_0x210938(0x224)](_0x408e1a,![],util[_0x210938(0x1e5)](_0x2de43b)),_0x27bb1f[_0x210938(0x201)](_0x241aaa,_0x2de43b);});});;return PerformanceTester[_0xb8229(0x224)](_0x408e1a),_0x16170b;}catch(_0x2ce782){PerformanceTester[_0xb8229(0x224)](_0x408e1a,![],util['format'](_0x2ce782));throw _0x2ce782;}};return _0x3e456a[_0xb8229(0x1af)](null,_0x59802e);}catch(_0x5ed81e){return _0x3e456a[_0xb8229(0x1af)](null,_0x59802e);}}static[a79_0x372456(0x1ce)](_0x1fff7a,_0xe22d85,_0x5eb01e={}){const _0x433220=a79_0x372456,_0x6910e7={'FGckn':function(_0xc6774b){return _0xc6774b();},'TyWTA':function(_0x3f7cc5){return _0x3f7cc5();}},_0xc956df=this;return _0x5eb01e['worker']=_0x6910e7[_0x433220(0x214)](getProcessId),_0x5eb01e[_0x433220(0x1d7)]=_0x6910e7[_0x433220(0x1da)](getTestName),_0x5eb01e[_0x433220(0x1d9)]=global[_0x433220(0x1c4)]&&global[_0x433220(0x1c4)][_0x433220(0x1a6)],function(){const _0x3c7865=_0x433220,_0x562cf9=[_0x1fff7a,_0xe22d85,null,_0x5eb01e][_0x3c7865(0x217)](arguments);return _0xc956df[_0x3c7865(0x227)][_0x3c7865(0x1af)](_0xc956df,_0x562cf9);};}static[a79_0x372456(0x19d)](){const _0x5bbcc9=a79_0x372456,_0xae8f1a=/(^.*)\[(.*)\]$/,_0x246f5c={},_0x4c87ac={},_0x5574eb=[],_0x569d44=this[_0x5bbcc9(0x1b0)]['splice'](0x0,this[_0x5bbcc9(0x1b0)][_0x5bbcc9(0x1ff)]);for(const _0x149ad5 of _0x569d44){const _0x245802=_0x149ad5[_0x5bbcc9(0x228)][_0x5bbcc9(0x1c3)](_0xae8f1a),_0x162ed6=Object[_0x5bbcc9(0x1ba)]({},_0x149ad5);_0x245802&&(_0x162ed6[_0x5bbcc9(0x228)]=_0x245802[0x1],_0x162ed6[_0x5bbcc9(0x1e6)]=JSON[_0x5bbcc9(0x1e1)](_0x245802[0x2])),_0x5574eb[_0x5bbcc9(0x22d)](_0x162ed6);}return _0x5574eb;}static[a79_0x372456(0x20c)](){const _0x29e58f=a79_0x372456,_0x3af95a={};_0x3af95a['vQdVn']=function(_0x15d468,_0x1c978f){return _0x15d468+_0x1c978f;},_0x3af95a[_0x29e58f(0x1c1)]=_0x29e58f(0x1ef),_0x3af95a[_0x29e58f(0x21b)]=function(_0x25130,_0x4ff726){return _0x25130===_0x4ff726;},_0x3af95a[_0x29e58f(0x229)]=function(_0x2cfeff,_0x4d7d5d){return _0x2cfeff+_0x4d7d5d;};const _0x1b6716=_0x3af95a;try{if(fs['existsSync'](this[_0x29e58f(0x1d4)])){const _0x1f525c=fs[_0x29e58f(0x22c)](this[_0x29e58f(0x1d4)]);for(const _0xb4551c of _0x1f525c){fs[_0x29e58f(0x213)](path[_0x29e58f(0x1ad)](this[_0x29e58f(0x1d4)],_0xb4551c));}}}catch(_0x3eab96){logger['debug'](_0x1b6716[_0x29e58f(0x204)](_0x1b6716[_0x29e58f(0x1c1)],_0x3eab96));}if(_0x1b6716['UlCLc'](this[_0x29e58f(0x1b0)][_0x29e58f(0x1ff)],0x0))return;const _0x4aa8f9=this['getCleanedPerfEvents'](),_0x54c56e=JSON['stringify'](_0x4aa8f9),_0x4f2fb0=_0x1b6716['FQfVK'](_0x54c56e[_0x29e58f(0x1f5)](0x1,-0x1),',');fs[_0x29e58f(0x1ae)](this['jsonReportFileName'],_0x4f2fb0);}static async[a79_0x372456(0x1f4)](){const _0x203665=a79_0x372456,_0x5e863f={};_0x5e863f[_0x203665(0x1e8)]=function(_0xa623a1,_0x176880){return _0xa623a1===_0x176880;},_0x5e863f['erRWl']=function(_0x22bde0,_0x349427){return _0x22bde0>_0x349427;};const _0x5913d4=_0x5e863f;if(!this[_0x203665(0x20e)]||_0x5913d4['PNLPr'](this['_measureEvents']['length'],0x0))return[];if(!fs[_0x203665(0x1a9)](this[_0x203665(0x1d4)]))return this[_0x203665(0x1b0)];const _0x12cd4f=(await fsPromise['readdir'](this[_0x203665(0x1d4)]))[_0x203665(0x1bf)](_0x471f60=>path[_0x203665(0x1cf)](this['jsonReportDirPath'],_0x471f60));let _0x2ff27c=(await Promise[_0x203665(0x1fa)](_0x12cd4f[_0x203665(0x1bf)](_0x3c486c=>fsPromise['readFile'](_0x3c486c,_0x203665(0x1ea)))))[_0x203665(0x1bf)](_0x30b851=>'['+_0x30b851[_0x203665(0x1f5)](0x0,-0x1)+']')[_0x203665(0x1bf)](_0x1f23b7=>JSON[_0x203665(0x1e1)](_0x1f23b7))[_0x203665(0x1d6)]();return _0x5913d4[_0x203665(0x20d)](this[_0x203665(0x1b0)][_0x203665(0x1ff)],0x0)&&(_0x2ff27c=_0x2ff27c[_0x203665(0x217)](this['getCleanedPerfEvents']())),this[_0x203665(0x1f9)][_0x203665(0x216)](),_0x2ff27c;}static['pushErrors'](){const _0x3fd165=a79_0x372456,_0x3e99cd={};_0x3e99cd[_0x3fd165(0x218)]=function(_0x53decc,_0xb4c6da){return _0x53decc===_0xb4c6da;},_0x3e99cd[_0x3fd165(0x1d2)]=function(_0x432d91,_0x581a92){return _0x432d91+_0x581a92;};const _0xd3e597=_0x3e99cd;if(_0xd3e597[_0x3fd165(0x218)](this[_0x3fd165(0x1b1)]['length'],0x0))return;const _0x21e16c=JSON[_0x3fd165(0x19e)](this[_0x3fd165(0x1b1)]),_0x2b4d6f=_0xd3e597[_0x3fd165(0x1d2)](_0x21e16c[_0x3fd165(0x1f5)](0x1,-0x1),',');fs[_0x3fd165(0x1ae)](this[_0x3fd165(0x195)],_0x2b4d6f);}static[a79_0x372456(0x1d8)](){const _0x48eb46=a79_0x372456,_0x4717d5={};_0x4717d5[_0x48eb46(0x215)]=function(_0x493fd3,_0x1ae0fd){return _0x493fd3>_0x1ae0fd;};const _0x252bf6=_0x4717d5;if(!fs['existsSync'](this[_0x48eb46(0x1bd)]))return this[_0x48eb46(0x1b1)];let _0x170f1a=fs[_0x48eb46(0x1b3)](this[_0x48eb46(0x1bd)])[_0x48eb46(0x1cc)]();_0x170f1a='['+_0x170f1a[_0x48eb46(0x1f5)](0x0,-0x1)+']';let _0x5c9c4c=JSON[_0x48eb46(0x1e1)](_0x170f1a);return _0x252bf6['bGfBb'](this[_0x48eb46(0x1b1)][_0x48eb46(0x1ff)],0x0)&&(_0x5c9c4c=_0x5c9c4c['concat'](this[_0x48eb46(0x1b1)])),fs[_0x48eb46(0x213)](this[_0x48eb46(0x1bd)]),_0x5c9c4c;}static[a79_0x372456(0x1a0)](_0x278693){const _0x360db6=a79_0x372456;if(!this[_0x360db6(0x22b)]())return;this['_errorEvents'][_0x360db6(0x22d)]({'message':_0x278693[_0x360db6(0x1dc)],'trace':_0x278693[_0x360db6(0x1fb)],'code':_0x278693['code']||null,'time':new Date()});}static[a79_0x372456(0x1f2)](){const _0x4dc752=a79_0x372456;try{if(!this['isEnabled']())return;this['_observer'][_0x4dc752(0x216)](),this[_0x4dc752(0x20c)](),this[_0x4dc752(0x1f6)]();}catch(_0x251646){logger[_0x4dc752(0x1bb)](_0x4dc752(0x205)+util[_0x4dc752(0x1e5)](_0x251646));}}static async[a79_0x372456(0x1f8)](){const _0x1ed822=a79_0x372456,_0x2efa9c={'fWwVX':function(_0x30678f,_0x4f53be){return _0x30678f(_0x4f53be);}};await _0x2efa9c[_0x1ed822(0x19a)](sleep,0x1e);const _0x1b9642=await this['finalizePerfMeasures'](),_0x544a08=this[_0x1ed822(0x1d8)]();if(!this[_0x1ed822(0x22b)]()){const _0x5dbf03={};return _0x5dbf03['measures']=[],_0x5dbf03[_0x1ed822(0x1cb)]=[],_0x5dbf03;}const _0x51e234={};return _0x51e234[_0x1ed822(0x20b)]=_0x1b9642,_0x51e234[_0x1ed822(0x1cb)]=_0x544a08,_0x51e234;}static[a79_0x372456(0x1c7)](_0x339d12){const _0x421a62=a79_0x372456,_0x3be066={};_0x3be066['Ogtio']=function(_0x3721a3,_0x4c3241){return _0x3721a3+_0x4c3241;},_0x3be066[_0x421a62(0x1d1)]='-start';const _0x2017aa=_0x3be066,_0x31d910=_0x2017aa[_0x421a62(0x1b4)](_0x339d12,_0x2017aa[_0x421a62(0x1d1)]);if(this[_0x421a62(0x1e2)][_0x31d910])return;performance[_0x421a62(0x226)](_0x31d910),this[_0x421a62(0x1e2)][_0x31d910]=0x1;}static[a79_0x372456(0x224)](_0x545100,_0x1613c6=!![],_0x5e7e1e=null,_0x28bcbd={}){const _0x1717ae=a79_0x372456,_0x1b1978={'KTMhq':function(_0x24bed7,_0x2d0949){return _0x24bed7+_0x2d0949;},'lVqoB':_0x1717ae(0x221),'KDOGL':function(_0x378826,_0x18d30c){return _0x378826+_0x18d30c;},'seJwo':_0x1717ae(0x1c8),'ypeVy':function(_0x5742bd){return _0x5742bd();},'vRnSl':function(_0x2bcd9e){return _0x2bcd9e();}};performance[_0x1717ae(0x226)](_0x1b1978['KTMhq'](_0x545100,_0x1b1978[_0x1717ae(0x219)])),performance[_0x1717ae(0x227)](_0x545100,_0x1b1978[_0x1717ae(0x19c)](_0x545100,_0x1b1978[_0x1717ae(0x211)]),_0x1b1978[_0x1717ae(0x19c)](_0x545100,_0x1b1978[_0x1717ae(0x219)]));const _0xdfe9e0={};_0xdfe9e0[_0x1717ae(0x1be)]=_0x1613c6,_0xdfe9e0[_0x1717ae(0x1ab)]=_0x5e7e1e,this['details'][_0x545100]=Object['assign'](_0xdfe9e0,Object[_0x1717ae(0x1ba)](Object['assign']({'worker':_0x1b1978[_0x1717ae(0x1b5)](getProcessId),'platform':global[_0x1717ae(0x1c4)]&&global[_0x1717ae(0x1c4)][_0x1717ae(0x1a6)],'testName':_0x1b1978[_0x1717ae(0x199)](getTestName)},_0x28bcbd),this[_0x1717ae(0x1e7)][_0x545100]||{}));}}module[a79_0x372456(0x222)]=PerformanceTester;function a79_0xfc0e(){const _0x53fe13=['-start','1615430NRibbr','MJRNb','errors','toString','getPerformance','measureWrapper','resolve','/error-report-','FwWER','EXaro','winstonLogger','jsonReportDirPath','Auaxc','flat','testName','finalizeErrors','platform','TyWTA','4UdtZZS','message','entryTypes','SaOWy','<tr><td>','mkdirSync','parse','eventsMap','SqXmM','24asKRpN','format','meta','details','PNLPr','</td></tr>','utf-8','catch','341844iBoPHL','/performance-report-','jsonReportFileName','Error\x20while\x20removing\x20files:\x20','QsQEL','dOliR','stopMonitoring','generateJSON','finalizePerfMeasures','slice','pushErrors','BROWSERSTACK_SDK_INSTRUMENTATION','finalize','_observer','all','stack','writeFile','tAOOF','getEventsFromJSON','length','47988YLqxNE','HUFVz','jsonReportDirName','path','vQdVn','Error\x20stopping\x20monitoring\x20','browserStackCwd','63oADHLM','644673ngxMhm','../logger','mWVVi','measures','pushPerfMeasures','erRWl','started','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','zKQUd','seJwo','performance-own.html','unlinkSync','FGckn','bGfBb','disconnect','concat','KFmHH','lVqoB','util','UlCLc','toJSON','_events','reduce','EKrZc','performance-report','-end','exports','forEach','end','JcWQA','mark','measure','name','FQfVK','236496bcKGzF','isEnabled','readdirSync','push','24083455QQytCM','cwd','errorFile','50Uzcwms','perf_hooks','FQROB','vRnSl','fWwVX','RniPS','KDOGL','getCleanedPerfEvents','stringify','350Ejhkax','captureError','env','kdLCE','fUOXl','</td><td>','generateHTMLReport','index','observe','entries','existsSync','OzokK','failure','error-report','join','appendFileSync','apply','_measureEvents','_errorEvents','duration','readFileSync','Ogtio','ypeVy','apSUq','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','../processHelper','.json','assign','debug','</tbody></table></body></html>','errorReportFileName','success','map','calculateTimeFromEvents','sKCQn','false','match','__platformCaps','754899PXHbzs','errorReportDirName','start'];a79_0xfc0e=function(){return _0x53fe13;};return a79_0xfc0e();}
|
|
1
|
+
const a80_0x42a82a=a80_0x58f3;function a80_0x58f3(_0x6f2916,_0x37ee0e){const _0x421b34=a80_0x421b();return a80_0x58f3=function(_0x58f393,_0x4a2379){_0x58f393=_0x58f393-0xc7;let _0x5eda34=_0x421b34[_0x58f393];return _0x5eda34;},a80_0x58f3(_0x6f2916,_0x37ee0e);}(function(_0x40b011,_0x40f998){const _0x130516=a80_0x58f3,_0x379de9=_0x40b011();while(!![]){try{const _0x1c5516=-parseInt(_0x130516(0x15d))/0x1*(-parseInt(_0x130516(0xe8))/0x2)+-parseInt(_0x130516(0x136))/0x3+-parseInt(_0x130516(0xdd))/0x4+parseInt(_0x130516(0x142))/0x5+-parseInt(_0x130516(0x13d))/0x6*(parseInt(_0x130516(0x13b))/0x7)+-parseInt(_0x130516(0xcb))/0x8+parseInt(_0x130516(0xd8))/0x9;if(_0x1c5516===_0x40f998)break;else _0x379de9['push'](_0x379de9['shift']());}catch(_0x39acaa){_0x379de9['push'](_0x379de9['shift']());}}}(a80_0x421b,0xc0731));function a80_0x421b(){const _0x26bb99=['Performance\x20report\x20is\x20at\x20','__platformCaps','Error\x20while\x20removing\x20files:\x20','name','entryTypes','pDzhi','mjSlq','measures','FckQg','winstonLogger','pushPerfMeasures','gJdva','FIVkV','.json','parse','finalizePerfMeasures','disconnect','end','writeFile','stopMonitoring','buffered','resolve','stringify','code','push','wBqhO','dxtAt','join','index','_measureEvents','function','reduce','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','CyTZx','ndKWR','readdirSync','assign','UBMrP','captureError','WQHZl','errors','getCleanedPerfEvents','\x20for\x20all\x20processes\x20is\x20','<tr><td>','cwd','MfDHU','entryType','IjlZF','finalizeErrors','929883BwaxRf','measure','unlinkSync','browserStackCwd','performance-report','7Woeqym','QkvVp','43422JYpheE','HdWMV','vjxqY','mkdirSync','CVgAi','6611995OaXjYN','errorFile','debug','readFileSync','MmCPx','flat','finalize','existsSync','meta','msisG','jCDhw','LrbkH','platform','VDXxm','YYHXQ','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','isEnabled','utVVt','BROWSERSTACK_SDK_INSTRUMENTATION','all','env','Time\x20for\x20','then','Wgiie','path','jsonReportFileName','errorReportDirName','1wPxkia','BFMRr','Error\x20in\x20writing\x20html\x20','eventsMap','dBWJr','fs/promises','getEventsFromJSON','readFile','observe','DaWIx','DksFN','../logger','stopAndGenerate','9024408vZulEd','appendFileSync','slice','WDwRc','stack','readdir','XQYaI','_events','perf_hooks','concat','jsonReportDirPath','forEach','calculateTimeFromEvents','11884212gQkxkn','failure','format','generateJSON','success','5512360YXqOWp','DXuCI','hpnsW','toString','writeFileSync','map','mark','apply','start','vgYIS','/performance-report-','1937490vSxNbG','calculateTimesFromMultipleFiles','getPerformance','error-report','generateHTMLReport','_errorEvents','_observer','SAXFb','bQsRX','jujRs','IIufd','log','catch','details','<h1>Performance\x20Report</h1>','length','utf-8','-end','errorReportFileName','started','jsonReportDirName','uAHvo','match','-start','Error\x20in\x20doing\x20csv\x20operations:\x20','../processHelper','kzPNf','duration','pushErrors'];a80_0x421b=function(){return _0x26bb99;};return a80_0x421b();}const fs=require('fs'),fsPromise=require(a80_0x42a82a(0x162)),{performance,PerformanceObserver}=require(a80_0x42a82a(0xd3)),path=require(a80_0x42a82a(0x15a)),util=require('util'),logger=require(a80_0x42a82a(0xc9))[a80_0x42a82a(0x10e)],{getProcessId,sleep,debug,getTestName}=require(a80_0x42a82a(0x101));class PerformanceTester{static [a80_0x42a82a(0xee)];static [a80_0x42a82a(0xd2)]=[];static [a80_0x42a82a(0x122)]=[];static [a80_0x42a82a(0xed)]=[];static [a80_0x42a82a(0xfb)]=![];static [a80_0x42a82a(0xfc)]=a80_0x42a82a(0x13a);static [a80_0x42a82a(0xd5)]=process[a80_0x42a82a(0x156)]['browserStackCwd']?path[a80_0x42a82a(0x120)](process[a80_0x42a82a(0x156)][a80_0x42a82a(0x139)],this[a80_0x42a82a(0xfc)]):path[a80_0x42a82a(0x120)](process[a80_0x42a82a(0x131)](),a80_0x42a82a(0xf3),this[a80_0x42a82a(0xfc)]);static [a80_0x42a82a(0x15c)]=process[a80_0x42a82a(0x156)][a80_0x42a82a(0x139)]?path[a80_0x42a82a(0x120)](process[a80_0x42a82a(0x156)]['browserStackCwd'],a80_0x42a82a(0xeb)):path[a80_0x42a82a(0x120)](process[a80_0x42a82a(0x131)](),a80_0x42a82a(0xeb));static [a80_0x42a82a(0x15b)]=this[a80_0x42a82a(0xd5)]+a80_0x42a82a(0xe7)+getProcessId()+a80_0x42a82a(0x112);static [a80_0x42a82a(0xfa)]=this[a80_0x42a82a(0x15c)]+'/error-report-'+getProcessId()+a80_0x42a82a(0x112);static [a80_0x42a82a(0xf5)]={};static [a80_0x42a82a(0x160)]={};static['startMonitoring'](_0x1e1bcc=this[a80_0x42a82a(0xd5)]+a80_0x42a82a(0xe7)+getProcessId()+a80_0x42a82a(0x112),_0x1b0959=this[a80_0x42a82a(0x15c)]+'/error-report-'+getProcessId()+'.json'){const _0x187e2f=a80_0x42a82a,_0x53cbdd={};_0x53cbdd['YYHXQ']=function(_0x157fa8,_0x4323ad){return _0x157fa8===_0x4323ad;},_0x53cbdd[_0x187e2f(0x141)]='measure',_0x53cbdd[_0x187e2f(0xf2)]=function(_0x2face0,_0x32eff7){return _0x2face0+_0x32eff7;},_0x53cbdd[_0x187e2f(0xef)]=_0x187e2f(0x151),_0x53cbdd[_0x187e2f(0x102)]=_0x187e2f(0x123);const _0x232129=_0x53cbdd;try{!fs[_0x187e2f(0x149)](this[_0x187e2f(0xd5)])&&fs[_0x187e2f(0x140)](this[_0x187e2f(0xd5)]);}catch(_0x2eb925){logger[_0x187e2f(0x144)](_0x232129[_0x187e2f(0xf2)](_0x232129[_0x187e2f(0xef)],_0x2eb925));}if(this[_0x187e2f(0xfb)]||!this[_0x187e2f(0x152)]())return;this[_0x187e2f(0xee)]=new PerformanceObserver(_0x13c870=>{const _0x4cb30b=_0x187e2f,_0x5bfff1={'kGKnB':function(_0x3fbfdd,_0x48a06b){const _0xd2503b=a80_0x58f3;return _0x232129[_0xd2503b(0x150)](_0x3fbfdd,_0x48a06b);},'IjlZF':_0x232129[_0x4cb30b(0x141)]};_0x13c870['getEntries']()[_0x4cb30b(0xd6)](_0x2ddf37=>{const _0x4324bc=_0x4cb30b;if(_0x5bfff1['kGKnB'](_0x2ddf37[_0x4324bc(0x133)],_0x5bfff1[_0x4324bc(0x134)])){let _0x508153={};if(_0x2ddf37['toJSON'])_0x508153=_0x2ddf37['toJSON']();else for(const _0x330301 in _0x2ddf37){_0x508153[_0x330301]=_0x2ddf37[_0x330301];}this['details'][_0x2ddf37[_0x4324bc(0x108)]]&&(_0x508153=Object[_0x4324bc(0x129)](_0x508153,this[_0x4324bc(0xf5)][_0x2ddf37[_0x4324bc(0x108)]])),delete this['details'][_0x2ddf37['name']],this[_0x4324bc(0x122)][_0x4324bc(0x11d)](_0x508153);}else this[_0x4324bc(0xd2)]['push'](_0x2ddf37);});});const _0x24fad4={};_0x24fad4[_0x187e2f(0x119)]=!![],_0x24fad4[_0x187e2f(0x109)]=[_0x232129['kzPNf'],_0x232129[_0x187e2f(0x141)]],this['_observer'][_0x187e2f(0x165)](_0x24fad4),this[_0x187e2f(0xfb)]=!![],this[_0x187e2f(0x15b)]=_0x1e1bcc,this[_0x187e2f(0xfa)]=_0x1b0959;}static[a80_0x42a82a(0xea)](){return performance;}static[a80_0x42a82a(0xd7)](_0x55482d,_0x17515d){const _0x2f845f=a80_0x42a82a,_0x586da4={};_0x586da4[_0x2f845f(0xc8)]=function(_0x27f01a,_0x3d0e9e){return _0x27f01a+_0x3d0e9e;},_0x586da4[_0x2f845f(0x11f)]=function(_0xe775fd,_0x884216){return _0xe775fd||_0x884216;},_0x586da4[_0x2f845f(0xde)]=function(_0x59ce1c,_0x3b5f98){return _0x59ce1c===_0x3b5f98;};const _0x27a2fa=_0x586da4,_0x375bde={};if(!_0x55482d||_0x27a2fa[_0x2f845f(0xde)](_0x55482d[_0x2f845f(0xf7)],0x0))return;_0x55482d[_0x2f845f(0xe2)](_0x214112=>{const _0x4704ad=_0x2f845f;!_0x375bde[_0x214112['name']]&&(_0x375bde[_0x214112[_0x4704ad(0x108)]]=0x0),_0x375bde[_0x214112[_0x4704ad(0x108)]]+=_0x214112['duration'];});const _0x4acd9e=_0x17515d[_0x2f845f(0x124)]((_0xae8c81,_0x4ce34d)=>{const _0x10d167=_0x2f845f;return _0x27a2fa[_0x10d167(0xc8)](_0x375bde[_0x4ce34d],_0x27a2fa[_0x10d167(0x11f)](_0xae8c81,0x0));},0x0);return _0x4acd9e;}static async[a80_0x42a82a(0xe9)](_0x326b2b,_0x2fb24d){const _0x336fb8=a80_0x42a82a,_0x356e0c={'ouXAq':function(_0x5e6691,_0x54a0bd){return _0x5e6691+_0x54a0bd;},'FckQg':function(_0x2b0bc2,_0x22c5bb){return _0x2b0bc2||_0x22c5bb;},'MmCPx':function(_0x23f286,_0x196b44){return _0x23f286===_0x196b44;},'uAHvo':function(_0xbcc9b3,_0x5e43cc){return _0xbcc9b3(_0x5e43cc);},'FIVkV':function(_0x4112b2,_0x990542){return _0x4112b2(_0x990542);}};if(!_0x326b2b||_0x356e0c[_0x336fb8(0x146)](_0x326b2b['length'],0x0))return 0x0;const _0x19e45b=[];for(const _0x4c4e76 of _0x326b2b){const _0x5c2afc=path[_0x336fb8(0x120)]('.',_0x4c4e76);try{const _0xdf5731=this[_0x336fb8(0x163)](_0x5c2afc);_0xdf5731['map'](_0x47710c=>{const _0x34e905=_0x336fb8;!_0x19e45b[_0x47710c[_0x34e905(0x108)]]&&(_0x19e45b[_0x47710c['name']]=0x0),_0x19e45b[_0x47710c[_0x34e905(0x108)]]+=_0x47710c[_0x34e905(0x103)];});}catch(_0x5e8a9e){_0x356e0c[_0x336fb8(0xfd)](debug,_0x336fb8(0x100)+_0x5e8a9e[_0x336fb8(0xe0)]());}}const _0x5dfa18=_0x2fb24d[_0x336fb8(0x124)]((_0x2954f9,_0x51467d)=>{const _0x364157=_0x336fb8;return _0x356e0c['ouXAq'](_0x19e45b[_0x51467d],_0x356e0c[_0x364157(0x10d)](_0x2954f9,0x0));},0x0);return _0x356e0c[_0x336fb8(0x111)](debug,_0x336fb8(0x157)+_0x2fb24d+_0x336fb8(0x12f)+_0x5dfa18),_0x5dfa18;}static[a80_0x42a82a(0x163)](_0x1eb780){const _0x19b594=a80_0x42a82a;if(!fs['existsSync'](_0x1eb780))return[];return JSON[_0x19b594(0x113)](fs[_0x19b594(0x145)](_0x1eb780)[_0x19b594(0xe0)]());}static async[a80_0x42a82a(0xca)](_0x357fb4='performance-own.html',_0x4041bc=null){const _0x2187ad=a80_0x42a82a,_0x37d620={'msisG':function(_0x5d805a,_0x33831f){return _0x5d805a(_0x33831f);},'XBekQ':function(_0x5721d3,_0x3ecbcc){return _0x5721d3(_0x3ecbcc);}};if(!this[_0x2187ad(0xfb)])return;await _0x37d620[_0x2187ad(0x14b)](sleep,0x1e),this[_0x2187ad(0xee)]['disconnect'](),this[_0x2187ad(0xfb)]=![],this['generateJSON'](this[_0x2187ad(0xd2)]);const _0x3eaaa8=this[_0x2187ad(0xec)](this[_0x2187ad(0xd2)]),_0x45b725=path[_0x2187ad(0x120)](process[_0x2187ad(0x131)](),_0x357fb4);fs[_0x2187ad(0x117)](_0x45b725,_0x3eaaa8,_0xf708e4=>{const _0x9e3537=_0x2187ad;if(_0xf708e4){_0x37d620[_0x9e3537(0x14b)](debug,_0x9e3537(0x15f)+_0xf708e4['toString']());return;}_0x37d620['XBekQ'](debug,_0x9e3537(0x105)+_0x45b725);});if(_0x4041bc)return this[_0x2187ad(0xd7)](this[_0x2187ad(0xd2)],_0x4041bc);}static[a80_0x42a82a(0xec)](_0x53ef63){const _0xa923c0=a80_0x42a82a,_0x2e716b={};_0x2e716b['dBWJr']='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0x2e716b['utVVt']=_0xa923c0(0xf6),_0x2e716b[_0xa923c0(0x110)]=_0xa923c0(0x125),_0x2e716b[_0xa923c0(0xdf)]='</tbody></table></body></html>';const _0x3f122e=_0x2e716b;let _0x2bbd43=_0x3f122e[_0xa923c0(0x161)];return _0x2bbd43+=_0x3f122e[_0xa923c0(0x153)],_0x2bbd43+=_0x3f122e[_0xa923c0(0x110)],_0x53ef63[_0xa923c0(0xd6)](_0x593e7b=>{const _0x2d3f28=_0xa923c0;_0x2bbd43+=_0x2d3f28(0x130)+_0x593e7b[_0x2d3f28(0x108)]+'</td><td>'+_0x593e7b[_0x2d3f28(0x103)]+'</td></tr>';}),_0x2bbd43+=_0x3f122e[_0xa923c0(0xdf)],_0x2bbd43;}static[a80_0x42a82a(0xdb)](_0x190490){const _0x536f=a80_0x42a82a;if(!this[_0x536f(0x15b)])return;const _0x2385f5={};_0x190490[_0x536f(0xe2)](_0x2e711e=>{const _0x3e45d7=_0x536f;!_0x2385f5[_0x2e711e[_0x3e45d7(0x108)]]&&(_0x2385f5[_0x2e711e[_0x3e45d7(0x108)]]=0x0),_0x2385f5[_0x2e711e[_0x3e45d7(0x108)]]+=_0x2e711e['duration'];});const _0x3d835a=Object['entries'](_0x2385f5)['map'](([_0x4b1a20,_0x4f2d36])=>{const _0xcecc4d=_0x536f,_0x5b3fd2={};return _0x5b3fd2[_0xcecc4d(0x108)]=_0x4b1a20,_0x5b3fd2[_0xcecc4d(0x103)]=_0x4f2d36,_0x5b3fd2;});fs[_0x536f(0xe1)](this[_0x536f(0x15b)],JSON[_0x536f(0x11b)](_0x3d835a));}static[a80_0x42a82a(0x152)](){const _0x1e4652=a80_0x42a82a,_0x34c998={};_0x34c998[_0x1e4652(0x13c)]=function(_0x493d40,_0x424ab9){return _0x493d40===_0x424ab9;},_0x34c998[_0x1e4652(0x12a)]='false';const _0x5626b9=_0x34c998;return!_0x5626b9[_0x1e4652(0x13c)](process[_0x1e4652(0x156)][_0x1e4652(0x154)],_0x5626b9[_0x1e4652(0x12a)]);}static[a80_0x42a82a(0x137)](_0x3d32a9,_0x46e8d0,_0x42b58a=null,_0x55ad26={},_0x2eccf9=null){const _0x3300ed=a80_0x42a82a,_0x1cd90d={'HdWMV':function(_0x3500dc,_0x1c8407){return _0x3500dc(_0x1c8407);},'NUuGr':function(_0x8b393,_0x2c6620){return _0x8b393(_0x2c6620);},'WQHZl':function(_0x16d335,_0x19e2fc){return _0x16d335 instanceof _0x19e2fc;}};try{if(this[_0x3300ed(0xfb)]&&this[_0x3300ed(0x152)]()){let _0x240394=_0x3d32a9;_0x42b58a&&(_0x240394=_0x3d32a9+'['+JSON[_0x3300ed(0x11b)](_0x42b58a)+']');PerformanceTester[_0x3300ed(0xe5)](_0x240394),this[_0x3300ed(0xf5)]&&(this['details'][_0x240394]=_0x55ad26);try{const _0x2abddc=_0x46e8d0['apply'](null,_0x2eccf9);if(_0x1cd90d[_0x3300ed(0x12c)](_0x2abddc,Promise))return new Promise((_0x52f560,_0x4a6f6f)=>{const _0x4f1825=_0x3300ed,_0x48ec80={'vjxqY':function(_0x45f190,_0x458d77){return _0x1cd90d['NUuGr'](_0x45f190,_0x458d77);}};_0x2abddc[_0x4f1825(0x158)](_0x5b9bee=>{const _0x4cb7ab=_0x4f1825;PerformanceTester[_0x4cb7ab(0x116)](_0x240394),_0x48ec80[_0x4cb7ab(0x13f)](_0x52f560,_0x5b9bee);})[_0x4f1825(0xf4)](_0x2de91e=>{const _0x4e35f2=_0x4f1825;PerformanceTester[_0x4e35f2(0x116)](_0x240394,![],util[_0x4e35f2(0xda)](_0x2de91e)),_0x1cd90d[_0x4e35f2(0x13e)](_0x4a6f6f,_0x2de91e);});});;return PerformanceTester[_0x3300ed(0x116)](_0x240394),_0x2abddc;}catch(_0x5da32d){PerformanceTester[_0x3300ed(0x116)](_0x240394,![],util[_0x3300ed(0xda)](_0x5da32d));throw _0x5da32d;}};return _0x46e8d0[_0x3300ed(0xe4)](null,_0x2eccf9);}catch(_0x14bcab){return _0x46e8d0[_0x3300ed(0xe4)](null,_0x2eccf9);}}static['measureWrapper'](_0x48a2d5,_0x3a142,_0x1ce80a={}){const _0x4d5b76=a80_0x42a82a,_0x5104c8={'jujRs':function(_0x4a5b36){return _0x4a5b36();},'jCDhw':function(_0x29e41b){return _0x29e41b();}},_0x1e0014=this;return _0x1ce80a['worker']=_0x5104c8[_0x4d5b76(0xf1)](getProcessId),_0x1ce80a['testName']=_0x5104c8[_0x4d5b76(0x14c)](getTestName),_0x1ce80a[_0x4d5b76(0x14e)]=global[_0x4d5b76(0x106)]&&global[_0x4d5b76(0x106)]['index'],function(){const _0x4984c6=_0x4d5b76,_0x1c6bdb=[_0x48a2d5,_0x3a142,null,_0x1ce80a][_0x4984c6(0xd4)](arguments);return _0x1e0014['measure']['apply'](_0x1e0014,_0x1c6bdb);};}static['getCleanedPerfEvents'](){const _0x3afe9a=a80_0x42a82a,_0x1eae5c=/(^.*)\[(.*)\]$/,_0x2770d4={},_0x4fb46b={},_0x5dbd12=[],_0x412650=this[_0x3afe9a(0x122)]['splice'](0x0,this[_0x3afe9a(0x122)][_0x3afe9a(0xf7)]);for(const _0x2d7402 of _0x412650){const _0x3e5792=_0x2d7402[_0x3afe9a(0x108)][_0x3afe9a(0xfe)](_0x1eae5c),_0x4eced1=Object[_0x3afe9a(0x129)]({},_0x2d7402);_0x3e5792&&(_0x4eced1[_0x3afe9a(0x108)]=_0x3e5792[0x1],_0x4eced1[_0x3afe9a(0x14a)]=JSON['parse'](_0x3e5792[0x2])),_0x5dbd12['push'](_0x4eced1);}return _0x5dbd12;}static[a80_0x42a82a(0x10f)](){const _0x41ff40=a80_0x42a82a,_0x5d0794={};_0x5d0794[_0x41ff40(0x14f)]=function(_0x45b5db,_0x4cd73d){return _0x45b5db+_0x4cd73d;},_0x5d0794[_0x41ff40(0x11e)]=_0x41ff40(0x107),_0x5d0794['XQYaI']=function(_0x5cdd9e,_0x4ea6fc){return _0x5cdd9e===_0x4ea6fc;};const _0x28f7fc=_0x5d0794;try{if(fs['existsSync'](this['jsonReportDirPath'])){const _0x305d30=fs[_0x41ff40(0x128)](this[_0x41ff40(0xd5)]);for(const _0xf63f99 of _0x305d30){fs[_0x41ff40(0x138)](path[_0x41ff40(0x120)](this['jsonReportDirPath'],_0xf63f99));}}}catch(_0x355cfa){logger[_0x41ff40(0x144)](_0x28f7fc[_0x41ff40(0x14f)](_0x28f7fc[_0x41ff40(0x11e)],_0x355cfa));}if(_0x28f7fc[_0x41ff40(0xd1)](this[_0x41ff40(0x122)][_0x41ff40(0xf7)],0x0))return;const _0x1083e0=this[_0x41ff40(0x12e)](),_0x11dc14=JSON[_0x41ff40(0x11b)](_0x1083e0),_0x53ea55=_0x28f7fc[_0x41ff40(0x14f)](_0x11dc14[_0x41ff40(0xcd)](0x1,-0x1),',');fs['appendFileSync'](this['jsonReportFileName'],_0x53ea55);}static async[a80_0x42a82a(0x114)](){const _0x1e527d=a80_0x42a82a,_0x37cbad={};_0x37cbad[_0x1e527d(0x10a)]=function(_0x23f2c3,_0x188fcb){return _0x23f2c3===_0x188fcb;},_0x37cbad[_0x1e527d(0xce)]=function(_0x2be5f5,_0x44c873){return _0x2be5f5>_0x44c873;};const _0xa1abf6=_0x37cbad;if(!this['started']||_0xa1abf6[_0x1e527d(0x10a)](this[_0x1e527d(0x122)][_0x1e527d(0xf7)],0x0))return[];if(!fs['existsSync'](this[_0x1e527d(0xd5)]))return this[_0x1e527d(0x122)];const _0x5240f2=(await fsPromise[_0x1e527d(0xd0)](this[_0x1e527d(0xd5)]))['map'](_0x3a937f=>path[_0x1e527d(0x11a)](this[_0x1e527d(0xd5)],_0x3a937f));let _0x201c92=(await Promise[_0x1e527d(0x155)](_0x5240f2['map'](_0x108457=>fsPromise[_0x1e527d(0x164)](_0x108457,_0x1e527d(0xf8)))))[_0x1e527d(0xe2)](_0x3b8131=>'['+_0x3b8131[_0x1e527d(0xcd)](0x0,-0x1)+']')[_0x1e527d(0xe2)](_0x17eb77=>JSON[_0x1e527d(0x113)](_0x17eb77))[_0x1e527d(0x147)]();return _0xa1abf6[_0x1e527d(0xce)](this[_0x1e527d(0x122)][_0x1e527d(0xf7)],0x0)&&(_0x201c92=_0x201c92['concat'](this[_0x1e527d(0x12e)]())),this[_0x1e527d(0xee)][_0x1e527d(0x115)](),_0x201c92;}static[a80_0x42a82a(0x104)](){const _0x5270e7=a80_0x42a82a,_0x5e986e={};_0x5e986e[_0x5270e7(0x14d)]=function(_0x8f1865,_0x3d62ca){return _0x8f1865===_0x3d62ca;},_0x5e986e[_0x5270e7(0x132)]=function(_0x11b734,_0x5c43ec){return _0x11b734+_0x5c43ec;};const _0x3179a1=_0x5e986e;if(_0x3179a1[_0x5270e7(0x14d)](this[_0x5270e7(0xed)]['length'],0x0))return;const _0x1fe1c0=JSON[_0x5270e7(0x11b)](this[_0x5270e7(0xed)]),_0x4bba97=_0x3179a1[_0x5270e7(0x132)](_0x1fe1c0[_0x5270e7(0xcd)](0x1,-0x1),',');fs[_0x5270e7(0xcc)](this[_0x5270e7(0x143)],_0x4bba97);}static['finalizeErrors'](){const _0x4222fb=a80_0x42a82a,_0x23a25d={};_0x23a25d[_0x4222fb(0xc7)]=function(_0x5a4edb,_0x21a772){return _0x5a4edb>_0x21a772;};const _0x452a13=_0x23a25d;if(!fs[_0x4222fb(0x149)](this[_0x4222fb(0xfa)]))return this[_0x4222fb(0xed)];let _0x3642fb=fs[_0x4222fb(0x145)](this[_0x4222fb(0xfa)])['toString']();_0x3642fb='['+_0x3642fb[_0x4222fb(0xcd)](0x0,-0x1)+']';let _0x583e8b=JSON[_0x4222fb(0x113)](_0x3642fb);return _0x452a13['DaWIx'](this['_errorEvents'][_0x4222fb(0xf7)],0x0)&&(_0x583e8b=_0x583e8b[_0x4222fb(0xd4)](this[_0x4222fb(0xed)])),fs[_0x4222fb(0x138)](this['errorReportFileName']),_0x583e8b;}static[a80_0x42a82a(0x12b)](_0x489ab2){const _0x3599d6=a80_0x42a82a;if(!this[_0x3599d6(0x152)]())return;this[_0x3599d6(0xed)][_0x3599d6(0x11d)]({'message':_0x489ab2['message'],'trace':_0x489ab2[_0x3599d6(0xcf)],'code':_0x489ab2[_0x3599d6(0x11c)]||null,'time':new Date()});}static[a80_0x42a82a(0x118)](){const _0x1c7143=a80_0x42a82a;try{if(!this[_0x1c7143(0x152)]())return;this[_0x1c7143(0xee)][_0x1c7143(0x115)](),this[_0x1c7143(0x10f)](),this[_0x1c7143(0x104)]();}catch(_0x39abce){logger[_0x1c7143(0x144)]('Error\x20stopping\x20monitoring\x20'+util['format'](_0x39abce));}}static async[a80_0x42a82a(0x148)](){const _0x57f1a0=a80_0x42a82a,_0x3b165c={'mjSlq':function(_0x30242b,_0x36cd54){return _0x30242b(_0x36cd54);}};await _0x3b165c[_0x57f1a0(0x10b)](sleep,0x1e);const _0x4cbde5=await this[_0x57f1a0(0x114)](),_0x35a651=this[_0x57f1a0(0x135)]();if(!this[_0x57f1a0(0x152)]()){const _0x206835={};return _0x206835[_0x57f1a0(0x10c)]=[],_0x206835['errors']=[],_0x206835;}const _0x2064cc={};return _0x2064cc[_0x57f1a0(0x10c)]=_0x4cbde5,_0x2064cc[_0x57f1a0(0x12d)]=_0x35a651,_0x2064cc;}static[a80_0x42a82a(0xe5)](_0x5140f8){const _0x4601a1=a80_0x42a82a,_0x48ac86={};_0x48ac86[_0x4601a1(0xe6)]=function(_0x395877,_0x1bd334){return _0x395877+_0x1bd334;},_0x48ac86[_0x4601a1(0x159)]=_0x4601a1(0xff);const _0x258ffa=_0x48ac86,_0xb2a337=_0x258ffa[_0x4601a1(0xe6)](_0x5140f8,_0x258ffa[_0x4601a1(0x159)]);if(this[_0x4601a1(0x160)][_0xb2a337])return;performance['mark'](_0xb2a337),this['eventsMap'][_0xb2a337]=0x1;}static[a80_0x42a82a(0x116)](_0x2d4358,_0x1e8568=!![],_0x36528b=null,_0x56f8e6={}){const _0x3afb91=a80_0x42a82a,_0x38097c={'CyTZx':function(_0x407d67,_0x15bcc2){return _0x407d67+_0x15bcc2;},'sguiD':_0x3afb91(0xf9),'bQsRX':function(_0x32871e,_0x2e8774){return _0x32871e+_0x2e8774;},'WoTve':_0x3afb91(0xff),'ndKWR':function(_0x4bf873,_0x55df1b){return _0x4bf873+_0x55df1b;},'BFMRr':function(_0x4a2946){return _0x4a2946();},'kEhEw':function(_0x6e99ba){return _0x6e99ba();}};performance[_0x3afb91(0xe3)](_0x38097c[_0x3afb91(0x126)](_0x2d4358,_0x38097c['sguiD'])),performance[_0x3afb91(0x137)](_0x2d4358,_0x38097c[_0x3afb91(0xf0)](_0x2d4358,_0x38097c['WoTve']),_0x38097c[_0x3afb91(0x127)](_0x2d4358,_0x38097c['sguiD']));const _0x325f5d={};_0x325f5d[_0x3afb91(0xdc)]=_0x1e8568,_0x325f5d[_0x3afb91(0xd9)]=_0x36528b,this[_0x3afb91(0xf5)][_0x2d4358]=Object['assign'](_0x325f5d,Object[_0x3afb91(0x129)](Object[_0x3afb91(0x129)]({'worker':_0x38097c[_0x3afb91(0x15e)](getProcessId),'platform':global[_0x3afb91(0x106)]&&global[_0x3afb91(0x106)][_0x3afb91(0x121)],'testName':_0x38097c['kEhEw'](getTestName)},_0x56f8e6),this[_0x3afb91(0xf5)][_0x2d4358]||{}));}}module['exports']=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x317ff6=a81_0xc95d;function a81_0x47d5(){const _0x5c9b1a=['./test-observability/constants','toISOString','999nQDYRg','BZZdN','browserstackTestName','true','5cuODdx','275462XWJrOH','401085xdcjKC','250QQVpNQ','threadId','69656McDNDe','5979LbyrOv','pid','getGlobal','log','worker_threads','tzICf','1904660rpLOtr','1156PGFTGC','][\x20OBSERVABILITY\x20]\x20','iRxDS','debug','7927815UytHfI','getProcessId','3105834NAaRFq','getTestName','BROWSERSTACK_OBSERVABILITY_DEBUG'];a81_0x47d5=function(){return _0x5c9b1a;};return a81_0x47d5();}(function(_0x1a0c2a,_0x4a5f28){const _0x1446cb=a81_0xc95d,_0x112210=_0x1a0c2a();while(!![]){try{const _0x2757d2=parseInt(_0x1446cb(0x1ee))/0x1+parseInt(_0x1446cb(0x1f8))/0x2+parseInt(_0x1446cb(0x1f2))/0x3*(parseInt(_0x1446cb(0x1f9))/0x4)+-parseInt(_0x1446cb(0x1ec))/0x5*(parseInt(_0x1446cb(0x1ff))/0x6)+-parseInt(_0x1446cb(0x1fd))/0x7+-parseInt(_0x1446cb(0x1f1))/0x8*(-parseInt(_0x1446cb(0x204))/0x9)+-parseInt(_0x1446cb(0x1ef))/0xa*(parseInt(_0x1446cb(0x1ed))/0xb);if(_0x2757d2===_0x4a5f28)break;else _0x112210['push'](_0x112210['shift']());}catch(_0x49d985){_0x112210['push'](_0x112210['shift']());}}}(a81_0x47d5,0x97473));const worker=require(a81_0x317ff6(0x1f6)),{fileLogger}=require('./logger'),{consoleHolder}=require(a81_0x317ff6(0x202)),globals=require('./globals');function a81_0xc95d(_0x10a38c,_0x42bedb){const _0x47d596=a81_0x47d5();return a81_0xc95d=function(_0xc95de9,_0x48b214){_0xc95de9=_0xc95de9-0x1eb;let _0x262b3c=_0x47d596[_0xc95de9];return _0x262b3c;},a81_0xc95d(_0x10a38c,_0x42bedb);}exports[a81_0x317ff6(0x1fe)]=()=>{const _0x663edc=a81_0x317ff6;return process[_0x663edc(0x1f3)]+'-'+worker[_0x663edc(0x1f0)];},exports[a81_0x317ff6(0x200)]=()=>{const _0x2be9ad=a81_0x317ff6,_0xf17e30={};_0xf17e30[_0x2be9ad(0x1fb)]=_0x2be9ad(0x206);const _0x104832=_0xf17e30;return globals[_0x2be9ad(0x1f4)](_0x104832[_0x2be9ad(0x1fb)]);},exports['sleep']=(_0x7b6f2f=0x64)=>new Promise(_0x320612=>setTimeout(_0x320612,_0x7b6f2f)),exports[a81_0x317ff6(0x1fc)]=_0x4694ab=>{const _0x22a660=a81_0x317ff6,_0x5703ce={};_0x5703ce[_0x22a660(0x1f7)]=function(_0x39be73,_0x202972){return _0x39be73===_0x202972;},_0x5703ce[_0x22a660(0x205)]=_0x22a660(0x1eb);const _0x1d6b00=_0x5703ce;fileLogger[_0x22a660(0x1fc)]('['+new Date()['toISOString']()+_0x22a660(0x1fa)+_0x4694ab),(_0x1d6b00[_0x22a660(0x1f7)](process['env'][_0x22a660(0x201)],_0x1d6b00[_0x22a660(0x205)])||_0x1d6b00['tzICf'](process['env'][_0x22a660(0x201)],'1'))&&consoleHolder[_0x22a660(0x1f5)]('\x0a['+new Date()[_0x22a660(0x203)]()+'][\x20OBSERVABILITY\x20]\x20'+_0x4694ab+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x5464f2=a82_0x1cd5;(function(_0x4efdc6,_0x1d4ab3){const _0x2560f6=a82_0x1cd5,_0x1e144e=_0x4efdc6();while(!![]){try{const _0x17c557=-parseInt(_0x2560f6(0xbc))/0x1+-parseInt(_0x2560f6(0xd0))/0x2+-parseInt(_0x2560f6(0xc9))/0x3*(parseInt(_0x2560f6(0xc3))/0x4)+-parseInt(_0x2560f6(0xb8))/0x5*(parseInt(_0x2560f6(0xcc))/0x6)+parseInt(_0x2560f6(0xce))/0x7+parseInt(_0x2560f6(0xb5))/0x8+parseInt(_0x2560f6(0xbd))/0x9*(parseInt(_0x2560f6(0xe1))/0xa);if(_0x17c557===_0x1d4ab3)break;else _0x1e144e['push'](_0x1e144e['shift']());}catch(_0x98cb75){_0x1e144e['push'](_0x1e144e['shift']());}}}(a82_0x3be5,0x7a019));const http=require(a82_0x5464f2(0xb3)),https=require(a82_0x5464f2(0xc2)),monkeypatch=require('monkeypatch');function a82_0x1cd5(_0x312c5d,_0x3d4eda){const _0x3be5eb=a82_0x3be5();return a82_0x1cd5=function(_0x1cd54f,_0x9ab8c9){_0x1cd54f=_0x1cd54f-0xac;let _0x5c9bc1=_0x3be5eb[_0x1cd54f];return _0x5c9bc1;},a82_0x1cd5(_0x312c5d,_0x3d4eda);}function spy(_0xc3fc05){const _0x2e3695=a82_0x5464f2,_0x1039c9={'mCFqp':function(_0x1ac15b,_0x295d14,_0x437bae){return _0x1ac15b(_0x295d14,_0x437bae);},'gMgkc':'error','FnaRs':function(_0x16d001,..._0x2b380b){return _0x16d001(..._0x2b380b);},'CutYk':function(_0x139385,_0x262baa){return _0x139385 instanceof _0x262baa;},'zbaZv':function(_0x47e6b1,_0x26b431){return _0x47e6b1===_0x26b431;},'ciCHd':_0x2e3695(0xb7),'NsTaz':function(_0xeb75b5,_0x13d86c){return _0xeb75b5-_0x13d86c;},'PwGdd':function(_0x142822,_0x197e31,_0x5cc99a){return _0x142822(_0x197e31,_0x5cc99a);},'EghrL':_0x2e3695(0xd1),'ZfvKy':_0x2e3695(0xb6),'sBTMg':function(_0x291003,_0x7b210a,_0x1906e8,_0x3e7ab1){return _0x291003(_0x7b210a,_0x1906e8,_0x3e7ab1);},'RJaXk':_0x2e3695(0xde),'qCWEa':function(_0x4baa20,_0x267bfe,_0x3fde16,_0x18b1fc){return _0x4baa20(_0x267bfe,_0x3fde16,_0x18b1fc);},'XoyLs':_0x2e3695(0xd8)},_0x66fb33=function(){const _0x23882b=_0x2e3695,_0x27bc6e={'QGGAe':function(_0x5d10b0,_0x3785e9){const _0x5e5c4c=a82_0x1cd5;return _0x1039c9[_0x5e5c4c(0xcf)](_0x5d10b0,_0x3785e9);},'GLfvA':function(_0xac0dc6,_0x47dacc){const _0x2a38e2=a82_0x1cd5;return _0x1039c9[_0x2a38e2(0xc4)](_0xac0dc6,_0x47dacc);},'TxPhu':_0x1039c9[_0x23882b(0xd6)],'annaR':function(_0x2e8b7a,_0x55999b){const _0x3db4d5=_0x23882b;return _0x1039c9[_0x3db4d5(0xbb)](_0x2e8b7a,_0x55999b);},'DbhVt':function(_0x293740,_0x534dbc,_0x382780){const _0x2c2370=_0x23882b;return _0x1039c9[_0x2c2370(0xba)](_0x293740,_0x534dbc,_0x382780);},'EsilU':_0x1039c9[_0x23882b(0xe0)]},_0x203621=arguments[0x0],_0x5a1618=Array[_0x23882b(0xdb)]['slice'][_0x23882b(0xca)](arguments,0x1),_0x891aea=_0x203621[_0x23882b(0xdd)](this,_0x5a1618);let _0x3cbbcf=Date[_0x23882b(0xbf)](),_0x4c1666;const _0x42e780={};_0x5a1618['forEach'](_0x5503ab=>{const _0x8d66ee=_0x23882b;if(_0x27bc6e[_0x8d66ee(0xd5)](_0x5503ab,URL)){const _0x130592={};_0x130592[_0x8d66ee(0xd4)]=_0x5503ab,Object['assign'](_0x42e780,_0x130592);}else _0x27bc6e['GLfvA'](typeof _0x5503ab,_0x27bc6e[_0x8d66ee(0xb0)])&&Object[_0x8d66ee(0xc0)](_0x42e780,_0x5503ab);});const _0x34f774=_0x26b03=>{const _0xb87ea0=_0x23882b,_0x154f09={};_0x154f09[_0xb87ea0(0xcb)]=_0x42e780['host']||_0x42e780[_0xb87ea0(0xb9)]||_0x42e780[_0xb87ea0(0xd4)]&&(_0x42e780[_0xb87ea0(0xd4)][_0xb87ea0(0xcb)]||_0x42e780[_0xb87ea0(0xd4)][_0xb87ea0(0xb9)]),_0x154f09['path']=_0x42e780[_0xb87ea0(0xd7)]||_0x42e780[_0xb87ea0(0xd4)]&&_0x42e780[_0xb87ea0(0xd4)][_0xb87ea0(0xc7)],_0x154f09[_0xb87ea0(0xb4)]=_0x42e780[_0xb87ea0(0xb4)],_0x154f09[_0xb87ea0(0xda)]=_0x42e780['headers'],_0x1039c9[_0xb87ea0(0xb2)](_0xc3fc05,_0x26b03,_0x154f09);};return _0x891aea['once'](_0x1039c9[_0x23882b(0xb1)],_0x3c6eac=>{const _0x423592=_0x23882b,_0x1a3eb6=_0x27bc6e[_0x423592(0xcd)](Date[_0x423592(0xbf)](),_0x3cbbcf),_0x267903={};_0x267903[_0x423592(0xb9)]=_0x42e780[_0x423592(0xcb)]||_0x42e780[_0x423592(0xb9)]||_0x42e780['url']&&(_0x42e780['url'][_0x423592(0xcb)]||_0x42e780[_0x423592(0xd4)][_0x423592(0xb9)]),_0x267903[_0x423592(0xd7)]=_0x42e780['path']||_0x42e780[_0x423592(0xd4)]&&_0x42e780['url'][_0x423592(0xc7)],_0x267903[_0x423592(0xb4)]=_0x42e780[_0x423592(0xb4)],_0x267903[_0x423592(0xda)]=_0x42e780['headers'],_0x267903[_0x423592(0xd2)]=_0x3c6eac['statusCode'],_0x267903[_0x423592(0xc1)]=_0x1a3eb6,_0x27bc6e[_0x423592(0xd3)](_0xc3fc05,null,_0x267903),_0x4c1666[_0x423592(0xc8)](_0x27bc6e['EsilU'],_0x34f774);}),_0x891aea['on'](_0x1039c9[_0x23882b(0xc6)],_0x52897f=>{const _0xa1fcc=_0x23882b;_0x4c1666=_0x52897f,_0x52897f[_0xa1fcc(0xd9)](_0x1039c9[_0xa1fcc(0xe0)],_0x34f774);}),_0x1039c9[_0x23882b(0xdc)](monkeypatch,_0x891aea,_0x1039c9[_0x23882b(0xae)],(_0x34b49f,..._0x493848)=>{const _0x423d17=_0x23882b;_0x3cbbcf=Date[_0x423d17(0xbf)](),_0x1039c9[_0x423d17(0xbe)](_0x34b49f,..._0x493848);}),_0x891aea;};_0x1039c9[_0x2e3695(0xad)](monkeypatch,http,_0x1039c9[_0x2e3695(0xac)],_0x66fb33),_0x1039c9[_0x2e3695(0xad)](monkeypatch,https,_0x1039c9[_0x2e3695(0xac)],_0x66fb33);}function restore(){const _0x437b19=a82_0x5464f2;http['request'][_0x437b19(0xc5)](),https[_0x437b19(0xd8)][_0x437b19(0xc5)]();}function a82_0x3be5(){const _0x1f39a7=['prototype','sBTMg','apply','end','spy','gMgkc','10qbtpxl','XoyLs','qCWEa','RJaXk','restore','TxPhu','EghrL','mCFqp','http','method','1689352AiORBs','socket','object','320535TvXntw','hostname','PwGdd','NsTaz','212952kkCjYi','11321253EqgVPx','FnaRs','now','assign','duration_ms','https','299228iLWZzS','zbaZv','unpatch','ZfvKy','pathname','removeListener','3xqocnJ','call','host','54kOwAdp','annaR','2402043QAXmje','CutYk','895552rOLeoC','response','status_code','DbhVt','url','QGGAe','ciCHd','path','request','once','headers'];a82_0x3be5=function(){return _0x1f39a7;};return a82_0x3be5();}const a82_0x98d12d={};a82_0x98d12d[a82_0x5464f2(0xdf)]=spy,a82_0x98d12d[a82_0x5464f2(0xaf)]=restore,module['exports']=a82_0x98d12d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a83_0x40e1ae=a83_0x2a29;function a83_0x4d0e(){const _0x48089d=['Agent','https:','5816yczeAN','hasOwnProperty','tJZfs','./performance/performance-tester','7327024FOjeBF','KEEP_ALIVE','https','exports','NsZiP','http','ILbkA','28325280SWeany','QZVFF','760465eSGxhS','keepAliveMsecs','138fZcuvp','protocol','keepAlive','70LBZAnP','GvluC','agent','165641UrGGwG','UZoXz','prototype','globalAgent','2468652kGQsPE','FlxWE','2746395UfIPaW','FDGAQ','request','2yaPSDB'];a83_0x4d0e=function(){return _0x48089d;};return a83_0x4d0e();}function a83_0x2a29(_0x564d00,_0xbda576){const _0x4d0ef2=a83_0x4d0e();return a83_0x2a29=function(_0x2a2992,_0x1285bc){_0x2a2992=_0x2a2992-0x1d7;let _0x4e22b2=_0x4d0ef2[_0x2a2992];return _0x4e22b2;},a83_0x2a29(_0x564d00,_0xbda576);}(function(_0x125c16,_0x12cc3e){const _0x50cdab=a83_0x2a29,_0x1fa866=_0x125c16();while(!![]){try{const _0x1edcec=-parseInt(_0x50cdab(0x1e2))/0x1*(-parseInt(_0x50cdab(0x1f3))/0x2)+parseInt(_0x50cdab(0x1ee))/0x3+parseInt(_0x50cdab(0x1f6))/0x4*(-parseInt(_0x50cdab(0x1e7))/0x5)+-parseInt(_0x50cdab(0x1e4))/0x6*(-parseInt(_0x50cdab(0x1ea))/0x7)+parseInt(_0x50cdab(0x1d9))/0x8+parseInt(_0x50cdab(0x1f0))/0x9+-parseInt(_0x50cdab(0x1e0))/0xa;if(_0x1edcec===_0x12cc3e)break;else _0x1fa866['push'](_0x1fa866['shift']());}catch(_0x3f96ca){_0x1fa866['push'](_0x1fa866['shift']());}}}(a83_0x4d0e,0x79083));const PerformanceTester=require(a83_0x40e1ae(0x1d8)),{AUTOMATE_EVENTS:PerformanceEvents}=require('./performance/constants');module[a83_0x40e1ae(0x1dc)]=PerformanceTester['measureWrapper'](PerformanceEvents[a83_0x40e1ae(0x1da)],function(){const _0x7c5ef8=a83_0x40e1ae,_0x3da801={'tJZfs':function(_0x13725c,_0x233ace){return _0x13725c===_0x233ace;},'JpUKL':_0x7c5ef8(0x1f5),'NsZiP':_0x7c5ef8(0x1e9),'UZoXz':function(_0x21d6fc,_0x673e0a,_0x62ad3d){return _0x21d6fc(_0x673e0a,_0x62ad3d);},'iicPB':function(_0x41d7dc,_0x326cf6){return _0x41d7dc(_0x326cf6);},'ILbkA':_0x7c5ef8(0x1de),'QZVFF':function(_0x4d2525,_0x15ed80){return _0x4d2525(_0x15ed80);},'FlxWE':_0x7c5ef8(0x1db),'GvluC':function(_0x38b1d2,_0x1a61c1){return _0x38b1d2*_0x1a61c1;},'FDGAQ':_0x7c5ef8(0x1e6)},_0x1f2630=_0x3da801['iicPB'](require,_0x3da801[_0x7c5ef8(0x1df)]),_0x8a4920=_0x3da801[_0x7c5ef8(0x1e1)](require,_0x3da801[_0x7c5ef8(0x1ef)]),_0x407d2d=_0x3da801[_0x7c5ef8(0x1e8)](0x1e,0x3e8);if(_0x1f2630[_0x7c5ef8(0x1ed)]&&Object[_0x7c5ef8(0x1ec)][_0x7c5ef8(0x1f7)]['call'](_0x1f2630['globalAgent'],_0x3da801[_0x7c5ef8(0x1f1)]))_0x1f2630['globalAgent']['keepAlive']=!![],_0x8a4920[_0x7c5ef8(0x1ed)][_0x7c5ef8(0x1e6)]=!![],_0x1f2630[_0x7c5ef8(0x1ed)]['keepAliveMsecs']=_0x407d2d,_0x8a4920[_0x7c5ef8(0x1ed)][_0x7c5ef8(0x1e3)]=_0x407d2d;else{const _0x18741e={};_0x18741e[_0x7c5ef8(0x1e6)]=!![],_0x18741e[_0x7c5ef8(0x1e3)]=_0x407d2d;const _0x8ad74d=new _0x1f2630[(_0x7c5ef8(0x1f4))](_0x18741e),_0x283057={};_0x283057['keepAlive']=!![],_0x283057[_0x7c5ef8(0x1e3)]=_0x407d2d;const _0x3844ba=new _0x8a4920[(_0x7c5ef8(0x1f4))](_0x283057),_0x3d94a7=_0x1f2630['request'],_0x4edac5=_0x8a4920[_0x7c5ef8(0x1f2)];_0x1f2630['request']=function(_0x49bbad,_0x311a48){const _0x4338fb=_0x7c5ef8;if(_0x3da801[_0x4338fb(0x1d7)](_0x49bbad[_0x4338fb(0x1e5)],_0x3da801['JpUKL']))return _0x49bbad[_0x3da801[_0x4338fb(0x1dd)]]=_0x3844ba,_0x3da801[_0x4338fb(0x1eb)](_0x4edac5,_0x49bbad,_0x311a48);return _0x49bbad[_0x3da801[_0x4338fb(0x1dd)]]=_0x8ad74d,_0x3da801[_0x4338fb(0x1eb)](_0x3d94a7,_0x49bbad,_0x311a48);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a84_0x4ace8e=a84_0x217b;function a84_0x217b(_0x2026f9,_0x4824eb){var _0x15f58a=a84_0x15f5();return a84_0x217b=function(_0x217b82,_0xf079e7){_0x217b82=_0x217b82-0x17e;var _0x304f78=_0x15f58a[_0x217b82];return _0x304f78;},a84_0x217b(_0x2026f9,_0x4824eb);}(function(_0x56afd5,_0x192e27){var _0x4fcaff=a84_0x217b,_0x253739=_0x56afd5();while(!![]){try{var _0x530610=-parseInt(_0x4fcaff(0x18c))/0x1*(parseInt(_0x4fcaff(0x18e))/0x2)+parseInt(_0x4fcaff(0x180))/0x3*(-parseInt(_0x4fcaff(0x182))/0x4)+-parseInt(_0x4fcaff(0x187))/0x5*(-parseInt(_0x4fcaff(0x181))/0x6)+parseInt(_0x4fcaff(0x194))/0x7*(parseInt(_0x4fcaff(0x192))/0x8)+-parseInt(_0x4fcaff(0x185))/0x9+-parseInt(_0x4fcaff(0x18b))/0xa*(parseInt(_0x4fcaff(0x191))/0xb)+parseInt(_0x4fcaff(0x190))/0xc;if(_0x530610===_0x192e27)break;else _0x253739['push'](_0x253739['shift']());}catch(_0xac2b97){_0x253739['push'](_0x253739['shift']());}}}(a84_0x15f5,0x1d484));function a84_0x15f5(){var _0x14a4c8=['8bKlTuB','https://upload-observability.browserstack.com','1675317jGsCKC','exports','.obs_test_details','https://collector-observability.browserstack.com','Playwright','CUCUMBER','upload-attachments','PLAYWRIGHT','39sMcGGJ','198132VAcUsu','20176hTxang','MOCHA','api/v1/screenshots','2079369ICKDBt','mocha','5GBosRu','jest','JEST','codeceptjs','70iNboTm','219LsjNHX','api/v1/event','314cHDnUM','cucumber','2428428QNsIte','37378FEonBT'];a84_0x15f5=function(){return _0x14a4c8;};return a84_0x15f5();}var a84_0x804438={};a84_0x804438[a84_0x4ace8e(0x17f)]=a84_0x4ace8e(0x198),a84_0x804438[a84_0x4ace8e(0x183)]=a84_0x4ace8e(0x186),a84_0x804438['CODECEPT']=a84_0x4ace8e(0x18a),a84_0x804438[a84_0x4ace8e(0x189)]=a84_0x4ace8e(0x188),a84_0x804438[a84_0x4ace8e(0x199)]=a84_0x4ace8e(0x18f),module[a84_0x4ace8e(0x195)]={'consoleHolder':Object['assign']({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a84_0x4ace8e(0x197),'OBSERVABILITY_UPLOAD_API_URL':a84_0x4ace8e(0x193),'EVENT_ENDPOINT':a84_0x4ace8e(0x18d),'BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':a84_0x4ace8e(0x184),'UPLOAD_ATTACHMENT_ENDPOINT':a84_0x4ace8e(0x17e),'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_0x4ace8e(0x196),'FRAMEWORKS':a84_0x804438};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a84_0x26ccb7=a84_0x1c85;function a84_0x1c85(_0x1dc968,_0x4908c3){const _0x185299=a84_0x1852();return a84_0x1c85=function(_0x1c8538,_0x3feabe){_0x1c8538=_0x1c8538-0x158;let _0x37be64=_0x185299[_0x1c8538];return _0x37be64;},a84_0x1c85(_0x1dc968,_0x4908c3);}(function(_0x1f286e,_0x2da84d){const _0x10f330=a84_0x1c85,_0x44ef36=_0x1f286e();while(!![]){try{const _0x407df3=parseInt(_0x10f330(0x158))/0x1*(-parseInt(_0x10f330(0x1b9))/0x2)+-parseInt(_0x10f330(0x180))/0x3+-parseInt(_0x10f330(0x171))/0x4*(-parseInt(_0x10f330(0x182))/0x5)+parseInt(_0x10f330(0x1bc))/0x6*(parseInt(_0x10f330(0x173))/0x7)+parseInt(_0x10f330(0x16e))/0x8+parseInt(_0x10f330(0x196))/0x9+-parseInt(_0x10f330(0x19d))/0xa*(-parseInt(_0x10f330(0x1ae))/0xb);if(_0x407df3===_0x2da84d)break;else _0x44ef36['push'](_0x44ef36['shift']());}catch(_0x2b2c5b){_0x44ef36['push'](_0x44ef36['shift']());}}}(a84_0x1852,0x8567c));const util=require(a84_0x26ccb7(0x185)),PerformanceTester=require(a84_0x26ccb7(0x1a7)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0x26ccb7(0x17d)),{getAgentVersion,nestedKeyValue}=require('../helper'),o11yErrorHandler=(_0xd08840,_0x4d4179='',_0x297a01=[''],_0x4b6713=![])=>{const _0x3efbad={'esaic':function(_0x2c7dfe,_0x50fc60){return _0x2c7dfe(_0x50fc60);},'wYxRW':function(_0xeaa2a5,_0x386b1b,_0x9f0d49){return _0xeaa2a5(_0x386b1b,_0x9f0d49);},'lwaJG':function(_0x2d1109,_0x276eea){return _0x2d1109(_0x276eea);},'UARUs':function(_0x4bcce9,_0x5262a2,_0x1d68f1){return _0x4bcce9(_0x5262a2,_0x1d68f1);},'JBDIt':function(_0x5641f9,_0x15149c){return _0x5641f9 instanceof _0x15149c;},'EgCTK':function(_0x5342be,_0x295adc,_0x1b5ec8,_0x181ec3,_0x2d5055){return _0x5342be(_0x295adc,_0x1b5ec8,_0x181ec3,_0x2d5055);}};return function(..._0x58c26c){const _0x702b77=a84_0x1c85;try{let _0x485da7=_0xd08840;process[_0x702b77(0x198)][_0x702b77(0x186)]&&(_0x485da7=PerformanceTester[_0x702b77(0x187)]()[_0x702b77(0x1a9)](_0x485da7));_0x4b6713&&_0x3efbad[_0x702b77(0x18d)](trace,'Started\x20::\x20'+_0x4d4179+',\x20PID\x20-\x20'+process[_0x702b77(0x170)]+_0x702b77(0x1be)+_0x3efbad[_0x702b77(0x1a8)](nestedKeyValue,arguments[0x0],_0x297a01));const _0x4ebc47=_0x485da7[_0x702b77(0x19c)](null,arguments);_0x4b6713&&_0x3efbad[_0x702b77(0x1b1)](trace,'Finished\x20::\x20'+_0x4d4179+_0x702b77(0x19a)+process[_0x702b77(0x170)]+_0x702b77(0x1be)+_0x3efbad['UARUs'](nestedKeyValue,arguments[0x0],_0x297a01));if(_0x3efbad[_0x702b77(0x1b4)](_0x4ebc47,Promise))return _0x4ebc47[_0x702b77(0x199)](_0x83218e=>processError(_0x83218e,_0xd08840,_0x58c26c,_0x4d4179));return _0x4ebc47;}catch(_0xc0af3c){_0x3efbad[_0x702b77(0x169)](processError,_0xc0af3c,_0xd08840,_0x58c26c,_0x4d4179);}};},o11yClassErrorHandler=(_0x4e7185,_0x2c0769,_0x51929d='')=>{const _0x4dbb81=a84_0x26ccb7,_0x3194f8={'wrZFH':function(_0x22bae2,_0x1653a4){return _0x22bae2 instanceof _0x1653a4;},'zLlXz':function(_0xa3a8b9,_0x4bc00d,_0x1827d2,_0x459e82,_0x3e06af){return _0xa3a8b9(_0x4bc00d,_0x1827d2,_0x459e82,_0x3e06af);},'ilDyU':function(_0xcc8438,_0x25d0fd){return _0xcc8438===_0x25d0fd;},'rlGEb':_0x4dbb81(0x17c),'cykNs':function(_0x5adbf2,_0x85327){return _0x5adbf2!==_0x85327;},'arorT':_0x4dbb81(0x1b6),'CvgCO':function(_0x1ac7d9,_0x35b41e){return _0x1ac7d9<_0x35b41e;}},_0xfb1806=_0x4e7185[_0x4dbb81(0x17b)];if(_0x3194f8[_0x4dbb81(0x17f)](Object[_0x4dbb81(0x18f)](_0xfb1806)[_0x4dbb81(0x16d)],0x2))return _0x4e7185;return Object[_0x4dbb81(0x18f)](_0xfb1806)[_0x4dbb81(0x194)](_0x5a17e0=>{const _0x541657=_0x4dbb81,_0x1f6688={'rjKxZ':function(_0x534b7c,_0x511b68){return _0x3194f8['wrZFH'](_0x534b7c,_0x511b68);},'cXpce':function(_0x32903b,_0x5643e5,_0x29d994,_0x551a91,_0x4e539f){const _0x177af1=a84_0x1c85;return _0x3194f8[_0x177af1(0x195)](_0x32903b,_0x5643e5,_0x29d994,_0x551a91,_0x4e539f);}};if(!(_0x2c0769&&_0x2c0769[_0x541657(0x184)](_0x5a17e0)))return;const _0x440e59=_0xfb1806[_0x5a17e0];_0x3194f8[_0x541657(0x19e)](typeof _0x440e59,_0x3194f8['rlGEb'])&&_0x3194f8[_0x541657(0x192)](_0x5a17e0,_0x3194f8[_0x541657(0x15f)])&&Object['defineProperty'](_0xfb1806,_0x5a17e0,{'writable':!![],'value':function(..._0x579a6f){const _0xe07732=_0x541657;try{const _0x19f4ce=(process[_0xe07732(0x198)][_0xe07732(0x186)]?PerformanceTester['getPerformance']()['timerify'](_0x440e59):_0x440e59)['call'](this,..._0x579a6f);if(_0x1f6688[_0xe07732(0x176)](_0x19f4ce,Promise))return _0x19f4ce[_0xe07732(0x199)](_0x1123e7=>processError(_0x1123e7,_0x440e59,_0x579a6f,_0x51929d));return _0x19f4ce;}catch(_0xd4151d){_0x1f6688['cXpce'](processError,_0xd4151d,_0x440e59,_0x579a6f,_0x51929d);}}});}),_0x4e7185;};function a84_0x1852(){const _0x4d1e65=['Error\x20in\x20executing\x20','forEach','zLlXz','1624932vMyaYg','alvNP','env','catch',',\x20PID\x20-\x20','rqXMB','apply','210bVAmlT','ilDyU','toLowerCase','IAnAg','tJTRm','frameworkDetails','recursivelyDeletePIIKeysFromObject','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','password','../performance/performance-tester','wYxRW','timerify','frameworkName','getFramework','headers','setConfigDetails','84810FZiuQm','accessKey','SMEVW','lwaJG','userConfig','name','JBDIt','oQOcs','constructor','parse','uploadCrashReport','1195642khSNCL','POST','stack','78THBTHs','NaezO',',\x20Argument\x20-\x20','credentials','XynjC','setAllDetails','1cHosHA','mGTre','stringify','key','setFrameworkDetails','JDPRD','frameworkVersion','arorT','ruOGh','setCredentials','Content-Type','object','captureError','CrashReporter','USER_CONFIG_FOR_REPORTING','gxkCu','qhVBq','EgCTK','application/json','filterPII','Pjgmc','length','2216472RJrMfo','pJkVv','pid','668YWydJV','exports','479983MdcSzT','username','jOyhL','rjKxZ','user','toString','CREDENTIALS_FOR_CRASH_REPORTING','initialize','prototype','function','./utils','.\x20Args\x20-\x20','CvgCO','1473240OAQMpW','lFKUT','3725lVHQsw','X-BSTACK-TESTOPS','includes','util','BROWSERSTACK_O11Y_PERF_MEASUREMENT','getPerformance','pzRuG','getConfig','VdbSA','format','getCredentials','esaic','\x20--\x20','getOwnPropertyNames','[Crash_Report_Upload]\x20Success\x20response:\x20','.\x20Error\x20-\x20','cykNs'];a84_0x1852=function(){return _0x4d1e65;};return a84_0x1852();}function processError(_0x406614,_0x31aeda,_0xb0f601,_0x4f43e6){const _0x3063c6=a84_0x26ccb7,_0x31790b={'alvNP':function(_0x3c5eb5,_0x15a24a){return _0x3c5eb5(_0x15a24a);}};_0x31790b[_0x3063c6(0x197)](debug,_0x3063c6(0x193)+_0x31aeda[_0x3063c6(0x1b3)]+_0x3063c6(0x18e)+_0x4f43e6+'.\x20Error\x20-\x20'+_0x406614+_0x3063c6(0x17e)+_0xb0f601+'.'),PerformanceTester[_0x3063c6(0x164)](_0x406614);let _0x48f48f;try{_0x48f48f=JSON['stringify'](_0xb0f601);}catch(_0x44802d){const _0x52d6f2={};_0x52d6f2['depth']=0x2,_0x48f48f=util['inspect'](_0xb0f601,_0x52d6f2);}CrashReporter[_0x3063c6(0x1b8)](_0x3063c6(0x193)+_0x31aeda[_0x3063c6(0x1b3)]+'\x20--\x20'+_0x4f43e6+_0x3063c6(0x191)+_0x406614+_0x3063c6(0x17e)+_0x48f48f+'.',_0x406614&&_0x406614[_0x3063c6(0x1bb)]);}class CrashReporter{static ['userConfig']={};static [a84_0x26ccb7(0x1bf)];static [a84_0x26ccb7(0x1a2)]={};static[a84_0x26ccb7(0x17a)](_0xff3e66,_0x4d300e,_0x283cd0=null){const _0xffa176=a84_0x26ccb7,_0x403f91={'fiQIW':function(_0x2d1cd1,_0x358fc4){return _0x2d1cd1(_0x358fc4);},'XynjC':function(_0x4932df,_0x4be0e6){return _0x4932df(_0x4be0e6);},'lFKUT':function(_0x50c0c3,_0x4b0ab7){return _0x50c0c3(_0x4b0ab7);}},_0xf93447=_0xff3e66['frameworkName'],_0x22a7fa=_0xff3e66['frameworkVersion'];!_0x283cd0&&(_0x283cd0=_0x403f91['fiQIW'](getBrowserStackConfig,_0xf93447));!_0x22a7fa&&_0x403f91[_0xffa176(0x1c0)](getFrameworkVersion,_0xf93447);const _0x418685={};_0x418685['frameworkName']=_0xf93447,_0x418685[_0xffa176(0x15e)]=_0x22a7fa,this[_0xffa176(0x1c1)](_0x418685,_0x4d300e,_0x403f91[_0xffa176(0x181)](getUserCredentials,_0x283cd0));}static[a84_0x26ccb7(0x161)](_0x3f513c,_0x15b2be){const _0x449a9a=a84_0x26ccb7,_0x2458d4={};_0x2458d4['username']=_0x3f513c,_0x2458d4[_0x449a9a(0x1af)]=_0x15b2be,this[_0x449a9a(0x1bf)]=_0x2458d4,process['env'][_0x449a9a(0x179)]=JSON['stringify'](this['credentials']);}static[a84_0x26ccb7(0x18c)](){const _0x516bd4=a84_0x26ccb7,_0x834742={'tJlVA':function(_0x326c3d,_0xb9b789){return _0x326c3d(_0xb9b789);}};if(!this['credentials']&&process[_0x516bd4(0x198)][_0x516bd4(0x179)])try{this[_0x516bd4(0x1bf)]=JSON['parse'](process['env']['CREDENTIALS_FOR_CRASH_REPORTING']);}catch(_0x1abbf6){_0x834742['tJlVA'](debug,_0x516bd4(0x1a4)+_0x1abbf6[_0x516bd4(0x178)]());}return this[_0x516bd4(0x1bf)];}static[a84_0x26ccb7(0x1ad)](_0x23f2cd){const _0x950aa0=a84_0x26ccb7;this['userConfig']=this[_0x950aa0(0x16b)](_0x23f2cd),process[_0x950aa0(0x198)][_0x950aa0(0x166)]=JSON[_0x950aa0(0x15a)](this[_0x950aa0(0x1b2)]);}static[a84_0x26ccb7(0x189)](){const _0xfc1467=a84_0x26ccb7,_0x74bd1a={'ruOGh':function(_0xae9d08,_0x31aaed){return _0xae9d08===_0x31aaed;},'HgvhX':function(_0x4251af,_0x17fa51){return _0x4251af(_0x17fa51);}};if(_0x74bd1a[_0xfc1467(0x160)](Object['keys'](this[_0xfc1467(0x1b2)])[_0xfc1467(0x16d)],0x0)&&process[_0xfc1467(0x198)][_0xfc1467(0x166)])try{this[_0xfc1467(0x1b2)]=JSON[_0xfc1467(0x1b7)](process['env'][_0xfc1467(0x166)]);}catch(_0x3f6b36){_0x74bd1a['HgvhX'](debug,'Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20'+_0x3f6b36[_0xfc1467(0x178)]()),this[_0xfc1467(0x1b2)]={};}return this[_0xfc1467(0x1b2)];}static[a84_0x26ccb7(0x15c)](_0x2233d7){const _0x14da1a=a84_0x26ccb7;this[_0x14da1a(0x1a2)]=_0x2233d7,process[_0x14da1a(0x198)][_0x14da1a(0x1a5)]=JSON[_0x14da1a(0x15a)](this[_0x14da1a(0x1a2)]);}static[a84_0x26ccb7(0x1ab)](){const _0x489fbb=a84_0x26ccb7,_0x5bcefb={'SMEVW':function(_0x362a5e,_0x23f301){return _0x362a5e===_0x23f301;},'VdbSA':function(_0x3cf3d4,_0x1ae1cf){return _0x3cf3d4(_0x1ae1cf);}};if(_0x5bcefb[_0x489fbb(0x1b0)](Object['keys'](this[_0x489fbb(0x1a2)])[_0x489fbb(0x16d)],0x0)&&process[_0x489fbb(0x198)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x489fbb(0x1a2)]=JSON[_0x489fbb(0x1b7)](process[_0x489fbb(0x198)][_0x489fbb(0x1a5)]);}catch(_0x9cbe69){_0x5bcefb[_0x489fbb(0x18a)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x9cbe69[_0x489fbb(0x178)]());}return this[_0x489fbb(0x1a2)];}static[a84_0x26ccb7(0x1c1)](_0x28baf5,_0x833175,_0x8e292b){const _0x51d4bd=a84_0x26ccb7;_0x28baf5&&this['setFrameworkDetails'](_0x28baf5),_0x833175&&this[_0x51d4bd(0x1ad)](_0x833175),_0x8e292b&&this[_0x51d4bd(0x161)](_0x8e292b[_0x51d4bd(0x174)],_0x8e292b[_0x51d4bd(0x1af)]);}static async[a84_0x26ccb7(0x1b8)](_0x46baf4,_0x4fe098){const _0x2b05fd=a84_0x26ccb7,_0x38808b={'tJTRm':function(_0x43c6cb,_0x355bb4){return _0x43c6cb(_0x355bb4);},'eKQhh':'[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','pzRuG':function(_0x32766f){return _0x32766f();},'SzWKX':'/api/v1/analytics','gxkCu':_0x2b05fd(0x16a),'pJkVv':'true','jOyhL':function(_0x16d290,_0xbcf7b9,_0x3af9e1,_0x41474c,_0x33909c,_0xda4477){return _0x16d290(_0xbcf7b9,_0x3af9e1,_0x41474c,_0x33909c,_0xda4477);},'JDPRD':_0x2b05fd(0x1ba)};this[_0x2b05fd(0x18c)]();if(!this[_0x2b05fd(0x1bf)])return _0x38808b['tJTRm'](debug,_0x38808b['eKQhh']);this[_0x2b05fd(0x189)](),this[_0x2b05fd(0x1ab)]();const _0x370abb={'hashed_id':process[_0x2b05fd(0x198)]['BS_TESTOPS_BUILD_HASHED_ID'],'observability_version':{'sdkVersion':_0x38808b[_0x2b05fd(0x188)](getAgentVersion),'frameworkName':this[_0x2b05fd(0x1a2)][_0x2b05fd(0x1aa)],'frameworkVersion':this[_0x2b05fd(0x1a2)][_0x2b05fd(0x15e)]},'exception':{'error':_0x46baf4[_0x2b05fd(0x178)](),'stackTrace':_0x4fe098},'config':this['userConfig']},_0x934572=_0x38808b['SzWKX'],_0x522dc5={};_0x522dc5[_0x2b05fd(0x174)]=this[_0x2b05fd(0x1bf)][_0x2b05fd(0x174)],_0x522dc5[_0x2b05fd(0x1a6)]=this[_0x2b05fd(0x1bf)][_0x2b05fd(0x1af)];const _0x3e7f4d={};_0x3e7f4d[_0x2b05fd(0x162)]=_0x38808b[_0x2b05fd(0x167)],_0x3e7f4d[_0x2b05fd(0x183)]=_0x38808b[_0x2b05fd(0x16f)];const _0x88a583={};_0x88a583['auth']=_0x522dc5,_0x88a583[_0x2b05fd(0x1ac)]=_0x3e7f4d;const _0x37933f=_0x88a583;_0x38808b[_0x2b05fd(0x175)](nodeRequest,_0x38808b[_0x2b05fd(0x15d)],_0x934572,_0x370abb,_0x37933f,![])['then'](_0x16693a=>{const _0x41a142=_0x2b05fd;_0x38808b['tJTRm'](debug,_0x41a142(0x190)+JSON['stringify'](_0x16693a));})[_0x2b05fd(0x199)](_0x4fe38a=>{const _0x373351=_0x2b05fd;_0x38808b[_0x373351(0x1a1)](debug,'[Crash_Report_Upload]\x20Failed\x20due\x20to\x20'+util[_0x373351(0x18b)](_0x4fe38a));});}static['recursivelyDeletePIIKeysFromObject'](_0x32865a){const _0x1214f0=a84_0x26ccb7,_0x1c8468={};_0x1c8468[_0x1214f0(0x1a0)]=_0x1214f0(0x177),_0x1c8468['mGTre']='username',_0x1c8468[_0x1214f0(0x168)]=_0x1214f0(0x15b),_0x1c8468['Pjgmc']='accessKey',_0x1c8468['rqXMB']=_0x1214f0(0x1a6),_0x1c8468[_0x1214f0(0x1b5)]=function(_0x1562ea,_0x2e0be5){return _0x1562ea===_0x2e0be5;},_0x1c8468[_0x1214f0(0x1bd)]=_0x1214f0(0x163);const _0x388e36=_0x1c8468;if(!_0x32865a)return;const _0x11d7af=[_0x388e36['IAnAg'],_0x388e36[_0x1214f0(0x159)],_0x388e36[_0x1214f0(0x168)],_0x388e36[_0x1214f0(0x16c)],_0x388e36[_0x1214f0(0x19b)]];for(const _0x4fe876 in _0x32865a){if(_0x11d7af[_0x1214f0(0x184)](_0x4fe876[_0x1214f0(0x19f)]()))delete _0x32865a[_0x4fe876];else _0x388e36[_0x1214f0(0x1b5)](typeof _0x32865a[_0x4fe876],_0x388e36[_0x1214f0(0x1bd)])&&this[_0x1214f0(0x1a3)](_0x32865a[_0x4fe876]);}}static['filterPII'](_0x1899eb){const _0x583111=a84_0x26ccb7,_0x160236=JSON['parse'](JSON[_0x583111(0x15a)](_0x1899eb));return this[_0x583111(0x1a3)](_0x160236),_0x160236;}}const a84_0x2be8e1={};a84_0x2be8e1['o11yErrorHandler']=o11yErrorHandler,a84_0x2be8e1['o11yClassErrorHandler']=o11yClassErrorHandler,a84_0x2be8e1[a84_0x26ccb7(0x165)]=CrashReporter,module[a84_0x26ccb7(0x172)]=a84_0x2be8e1;
|
|
1
|
+
const a85_0x1421e1=a85_0x57ea;function a85_0x1170(){const _0x3128b6=['BS_TESTOPS_BUILD_HASHED_ID','user','username','exports','QbQRv','1167012TAVhkE','true','o11yClassErrorHandler','../helper','CREDENTIALS_FOR_CRASH_REPORTING','.\x20Error\x20-\x20','5233152pURstq','.\x20Args\x20-\x20','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','util','NIEcr','keys','apply','mWJRu','accessKey','depth','timerify','OlXdT','aGSGD','setConfigDetails','2061DveKAw','catch','\x20--\x20','env','toString','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','call','hJKUI','pid',',\x20PID\x20-\x20','frameworkVersion','captureError','Error\x20in\x20executing\x20','./utils','getConfig','DwyBT','name','Finished\x20::\x20','NXuvj','stack','6fsJVjG','gOOAO','setCredentials','inspect','MdEDJ','MMJtq','recursivelyDeletePIIKeysFromObject','setAllDetails','POST','BROWSERSTACK_O11Y_PERF_MEASUREMENT','GZlMN','xiMnS','format','192994BPUuQl','AtMLz','initialize','1690qlBZVs','pzIze','parse','PeSAN','jKRAF','6dKmNuY','uploadCrashReport','constructor','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','getCredentials','includes','/api/v1/analytics','SbrVG','Wibqx',',\x20Argument\x20-\x20','NAlci','userConfig','USER_CONFIG_FOR_REPORTING','QwHIP','then','getFramework','credentials','defineProperty','7085155ZUAJbu','CrashReporter','stringify','VQeYr','frameworkName','toLowerCase','158832QRMePS','Content-Type','ctlAV','filterPII','password','CyEBk','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','SRNAb','length','[Crash_Report_Upload]\x20Success\x20response:\x20','setFrameworkDetails','5138685CnNtAO','o11yErrorHandler','htykx','pYiBZ','frameworkDetails','getOwnPropertyNames'];a85_0x1170=function(){return _0x3128b6;};return a85_0x1170();}(function(_0x21f797,_0x46dd5a){const _0x479977=a85_0x57ea,_0x5249e1=_0x21f797();while(!![]){try{const _0x5117f6=-parseInt(_0x479977(0xbf))/0x1+parseInt(_0x479977(0x9f))/0x2*(-parseInt(_0x479977(0xa7))/0x3)+parseInt(_0x479977(0xd5))/0x4+-parseInt(_0x479977(0xca))/0x5+-parseInt(_0x479977(0x92))/0x6*(-parseInt(_0x479977(0xb9))/0x7)+parseInt(_0x479977(0xdb))/0x8+-parseInt(_0x479977(0xe9))/0x9*(parseInt(_0x479977(0xa2))/0xa);if(_0x5117f6===_0x46dd5a)break;else _0x5249e1['push'](_0x5249e1['shift']());}catch(_0x24672a){_0x5249e1['push'](_0x5249e1['shift']());}}}(a85_0x1170,0x83c96));const util=require(a85_0x1421e1(0xde)),PerformanceTester=require('../performance/performance-tester'),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a85_0x1421e1(0xf6)),{getAgentVersion,nestedKeyValue}=require(a85_0x1421e1(0xd8)),o11yErrorHandler=(_0x26b637,_0x7b599a='',_0x4a0b69=[''],_0x2fef82=![])=>{const _0x28b955={'MdEDJ':function(_0x194f4c,_0x7bc0a7){return _0x194f4c(_0x7bc0a7);},'pYiBZ':function(_0x3e8cf9,_0x14a561,_0x37734f){return _0x3e8cf9(_0x14a561,_0x37734f);},'QbQRv':function(_0x4130e0,_0x57fb54){return _0x4130e0 instanceof _0x57fb54;},'ZyNTP':function(_0x37a234,_0xc58dc9,_0x2cb8ca,_0xd88225,_0x5a72d1){return _0x37a234(_0xc58dc9,_0x2cb8ca,_0xd88225,_0x5a72d1);}};return function(..._0x250aa1){const _0x32e9c0=a85_0x57ea;try{let _0x10b1f5=_0x26b637;process['env']['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&(_0x10b1f5=PerformanceTester['getPerformance']()[_0x32e9c0(0xe5)](_0x10b1f5));_0x2fef82&&_0x28b955[_0x32e9c0(0x96)](trace,'Started\x20::\x20'+_0x7b599a+_0x32e9c0(0xf2)+process[_0x32e9c0(0xf1)]+_0x32e9c0(0xb0)+_0x28b955['pYiBZ'](nestedKeyValue,arguments[0x0],_0x4a0b69));const _0x5ee394=_0x10b1f5[_0x32e9c0(0xe1)](null,arguments);_0x2fef82&&_0x28b955[_0x32e9c0(0x96)](trace,_0x32e9c0(0x8f)+_0x7b599a+_0x32e9c0(0xf2)+process[_0x32e9c0(0xf1)]+',\x20Argument\x20-\x20'+_0x28b955[_0x32e9c0(0xcd)](nestedKeyValue,arguments[0x0],_0x4a0b69));if(_0x28b955[_0x32e9c0(0xd4)](_0x5ee394,Promise))return _0x5ee394[_0x32e9c0(0xea)](_0x4a2ffd=>processError(_0x4a2ffd,_0x26b637,_0x250aa1,_0x7b599a));return _0x5ee394;}catch(_0x15712c){_0x28b955['ZyNTP'](processError,_0x15712c,_0x26b637,_0x250aa1,_0x7b599a);}};},o11yClassErrorHandler=(_0x53423f,_0x598141,_0x2e5727='')=>{const _0x2e1109=a85_0x1421e1,_0x13cb03={'PeSAN':function(_0x12da36,_0x1cef2e){return _0x12da36 instanceof _0x1cef2e;},'htykx':function(_0x5d1293,_0x220005,_0x54ff13,_0xaf87c9,_0x488974){return _0x5d1293(_0x220005,_0x54ff13,_0xaf87c9,_0x488974);},'VQeYr':function(_0x14c6fe,_0x55de98){return _0x14c6fe===_0x55de98;},'xiMnS':'function','Twudv':function(_0x42cdb1,_0x5f384c){return _0x42cdb1!==_0x5f384c;},'RzNTB':_0x2e1109(0xa9),'cIabK':function(_0x2fbb20,_0x4f6725){return _0x2fbb20<_0x4f6725;}},_0x3473d8=_0x53423f['prototype'];if(_0x13cb03['cIabK'](Object[_0x2e1109(0xcf)](_0x3473d8)[_0x2e1109(0xc7)],0x2))return _0x53423f;return Object[_0x2e1109(0xcf)](_0x3473d8)['forEach'](_0x1e40d4=>{const _0xc935e1=_0x2e1109;if(!(_0x598141&&_0x598141[_0xc935e1(0xac)](_0x1e40d4)))return;const _0x2e09b7=_0x3473d8[_0x1e40d4];_0x13cb03[_0xc935e1(0xbc)](typeof _0x2e09b7,_0x13cb03[_0xc935e1(0x9d)])&&_0x13cb03['Twudv'](_0x1e40d4,_0x13cb03['RzNTB'])&&Object[_0xc935e1(0xb8)](_0x3473d8,_0x1e40d4,{'writable':!![],'value':function(..._0xd0b71c){const _0x3a4a45=_0xc935e1;try{const _0x28bfe0=(process[_0x3a4a45(0xec)][_0x3a4a45(0x9b)]?PerformanceTester['getPerformance']()[_0x3a4a45(0xe5)](_0x2e09b7):_0x2e09b7)[_0x3a4a45(0xef)](this,..._0xd0b71c);if(_0x13cb03[_0x3a4a45(0xa5)](_0x28bfe0,Promise))return _0x28bfe0[_0x3a4a45(0xea)](_0x5c3a47=>processError(_0x5c3a47,_0x2e09b7,_0xd0b71c,_0x2e5727));return _0x28bfe0;}catch(_0x58d98f){_0x13cb03[_0x3a4a45(0xcc)](processError,_0x58d98f,_0x2e09b7,_0xd0b71c,_0x2e5727);}}});}),_0x53423f;};function processError(_0x4bbd41,_0x1eba74,_0x48153c,_0x4fa7d5){const _0x1034d7=a85_0x1421e1,_0x51f818={'CyEBk':function(_0x5d3387,_0x43dd54){return _0x5d3387(_0x43dd54);}};_0x51f818[_0x1034d7(0xc4)](debug,_0x1034d7(0xf5)+_0x1eba74[_0x1034d7(0x8e)]+_0x1034d7(0xeb)+_0x4fa7d5+_0x1034d7(0xda)+_0x4bbd41+_0x1034d7(0xdc)+_0x48153c+'.'),PerformanceTester[_0x1034d7(0xf4)](_0x4bbd41);let _0xc37351;try{_0xc37351=JSON['stringify'](_0x48153c);}catch(_0x23d6e2){const _0x5b739e={};_0x5b739e[_0x1034d7(0xe4)]=0x2,_0xc37351=util[_0x1034d7(0x95)](_0x48153c,_0x5b739e);}CrashReporter[_0x1034d7(0xa8)]('Error\x20in\x20executing\x20'+_0x1eba74[_0x1034d7(0x8e)]+_0x1034d7(0xeb)+_0x4fa7d5+_0x1034d7(0xda)+_0x4bbd41+_0x1034d7(0xdc)+_0xc37351+'.',_0x4bbd41&&_0x4bbd41[_0x1034d7(0x91)]);}class CrashReporter{static [a85_0x1421e1(0xb2)]={};static ['credentials'];static [a85_0x1421e1(0xce)]={};static[a85_0x1421e1(0xa1)](_0x32f693,_0x46ceab,_0x471f31=null){const _0xb116bb=a85_0x1421e1,_0xf3c2e9={'NXuvj':function(_0x4b1720,_0x2f5eb7){return _0x4b1720(_0x2f5eb7);}},_0x50a715=_0x32f693['frameworkName'],_0x1b82e5=_0x32f693['frameworkVersion'];!_0x471f31&&(_0x471f31=_0xf3c2e9[_0xb116bb(0x90)](getBrowserStackConfig,_0x50a715));!_0x1b82e5&&_0xf3c2e9['NXuvj'](getFrameworkVersion,_0x50a715);const _0x112091={};_0x112091[_0xb116bb(0xbd)]=_0x50a715,_0x112091[_0xb116bb(0xf3)]=_0x1b82e5,this[_0xb116bb(0x99)](_0x112091,_0x46ceab,_0xf3c2e9[_0xb116bb(0x90)](getUserCredentials,_0x471f31));}static[a85_0x1421e1(0x94)](_0x6227a4,_0x1054f9){const _0x416018=a85_0x1421e1,_0x5a923c={};_0x5a923c[_0x416018(0xd2)]=_0x6227a4,_0x5a923c['accessKey']=_0x1054f9,this[_0x416018(0xb7)]=_0x5a923c,process['env'][_0x416018(0xd9)]=JSON[_0x416018(0xbb)](this['credentials']);}static['getCredentials'](){const _0x482f7d=a85_0x1421e1,_0xf7ed35={'OlXdT':function(_0xd2327a,_0x4c1f21){return _0xd2327a(_0x4c1f21);}};if(!this[_0x482f7d(0xb7)]&&process[_0x482f7d(0xec)]['CREDENTIALS_FOR_CRASH_REPORTING'])try{this[_0x482f7d(0xb7)]=JSON[_0x482f7d(0xa4)](process[_0x482f7d(0xec)][_0x482f7d(0xd9)]);}catch(_0x1c73d6){_0xf7ed35[_0x482f7d(0xe6)](debug,_0x482f7d(0xaa)+_0x1c73d6[_0x482f7d(0xed)]());}return this[_0x482f7d(0xb7)];}static[a85_0x1421e1(0xe8)](_0xf69b41){const _0x28c648=a85_0x1421e1;this[_0x28c648(0xb2)]=this[_0x28c648(0xc2)](_0xf69b41),process[_0x28c648(0xec)][_0x28c648(0xb3)]=JSON[_0x28c648(0xbb)](this[_0x28c648(0xb2)]);}static[a85_0x1421e1(0xf7)](){const _0x240ac2=a85_0x1421e1,_0x2a7e37={'mWJRu':function(_0x353e43,_0x15c305){return _0x353e43===_0x15c305;},'ctlAV':function(_0x52bc53,_0x4ea806){return _0x52bc53(_0x4ea806);}};if(_0x2a7e37[_0x240ac2(0xe2)](Object[_0x240ac2(0xe0)](this[_0x240ac2(0xb2)])[_0x240ac2(0xc7)],0x0)&&process[_0x240ac2(0xec)][_0x240ac2(0xb3)])try{this[_0x240ac2(0xb2)]=JSON[_0x240ac2(0xa4)](process[_0x240ac2(0xec)][_0x240ac2(0xb3)]);}catch(_0xa7d72d){_0x2a7e37[_0x240ac2(0xc1)](debug,'Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20'+_0xa7d72d[_0x240ac2(0xed)]()),this['userConfig']={};}return this[_0x240ac2(0xb2)];}static[a85_0x1421e1(0xc9)](_0x4a9fb7){const _0x3ee830=a85_0x1421e1;this[_0x3ee830(0xce)]=_0x4a9fb7,process[_0x3ee830(0xec)][_0x3ee830(0xc5)]=JSON[_0x3ee830(0xbb)](this[_0x3ee830(0xce)]);}static[a85_0x1421e1(0xb6)](){const _0x46ded6=a85_0x1421e1,_0x1b9e11={'NIEcr':function(_0x36df62,_0x4149a3){return _0x36df62===_0x4149a3;},'jKRAF':function(_0x647e18,_0x19cc8c){return _0x647e18(_0x19cc8c);}};if(_0x1b9e11[_0x46ded6(0xdf)](Object['keys'](this[_0x46ded6(0xce)])['length'],0x0)&&process[_0x46ded6(0xec)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this[_0x46ded6(0xce)]=JSON[_0x46ded6(0xa4)](process['env'][_0x46ded6(0xc5)]);}catch(_0x2052f4){_0x1b9e11[_0x46ded6(0xa6)](debug,_0x46ded6(0xaa)+_0x2052f4[_0x46ded6(0xed)]());}return this[_0x46ded6(0xce)];}static['setAllDetails'](_0xba5e49,_0x4cea8e,_0x1ff4e4){const _0x2115ef=a85_0x1421e1;_0xba5e49&&this['setFrameworkDetails'](_0xba5e49),_0x4cea8e&&this[_0x2115ef(0xe8)](_0x4cea8e),_0x1ff4e4&&this['setCredentials'](_0x1ff4e4[_0x2115ef(0xd2)],_0x1ff4e4[_0x2115ef(0xe3)]);}static async['uploadCrashReport'](_0x5307ee,_0x26537c){const _0x54eb0c=a85_0x1421e1,_0x4fccf5={'gOOAO':function(_0x4ea15e,_0x169172){return _0x4ea15e(_0x169172);},'SbrVG':_0x54eb0c(0xee),'hJKUI':function(_0x5f1a51){return _0x5f1a51();},'MMJtq':_0x54eb0c(0xad),'GZlMN':'application/json','tUKDg':_0x54eb0c(0xd6),'QwHIP':function(_0x2e39f4,_0x471846,_0xb95022,_0x33cd18,_0xe4e814,_0x27e95e){return _0x2e39f4(_0x471846,_0xb95022,_0x33cd18,_0xe4e814,_0x27e95e);},'qvewa':_0x54eb0c(0x9a)};this[_0x54eb0c(0xab)]();if(!this['credentials'])return _0x4fccf5[_0x54eb0c(0x93)](debug,_0x4fccf5[_0x54eb0c(0xae)]);this['getConfig'](),this['getFramework']();const _0x13674a={'hashed_id':process[_0x54eb0c(0xec)][_0x54eb0c(0xd0)],'observability_version':{'sdkVersion':_0x4fccf5[_0x54eb0c(0xf0)](getAgentVersion),'frameworkName':this['frameworkDetails'][_0x54eb0c(0xbd)],'frameworkVersion':this[_0x54eb0c(0xce)][_0x54eb0c(0xf3)]},'exception':{'error':_0x5307ee['toString'](),'stackTrace':_0x26537c},'config':this[_0x54eb0c(0xb2)]},_0x80afcf=_0x4fccf5[_0x54eb0c(0x97)],_0x3e954b={};_0x3e954b[_0x54eb0c(0xd2)]=this['credentials'][_0x54eb0c(0xd2)],_0x3e954b[_0x54eb0c(0xc3)]=this[_0x54eb0c(0xb7)][_0x54eb0c(0xe3)];const _0x33f6e4={};_0x33f6e4[_0x54eb0c(0xc0)]=_0x4fccf5[_0x54eb0c(0x9c)],_0x33f6e4['X-BSTACK-TESTOPS']=_0x4fccf5['tUKDg'];const _0x402bb4={};_0x402bb4['auth']=_0x3e954b,_0x402bb4['headers']=_0x33f6e4;const _0x1e6b53=_0x402bb4;_0x4fccf5[_0x54eb0c(0xb4)](nodeRequest,_0x4fccf5['qvewa'],_0x80afcf,_0x13674a,_0x1e6b53,![])[_0x54eb0c(0xb5)](_0x2b79e3=>{const _0x216930=_0x54eb0c;_0x4fccf5['gOOAO'](debug,_0x216930(0xc8)+JSON[_0x216930(0xbb)](_0x2b79e3));})[_0x54eb0c(0xea)](_0x2117a3=>{const _0x51f445=_0x54eb0c;_0x4fccf5[_0x51f445(0x93)](debug,_0x51f445(0xdd)+util[_0x51f445(0x9e)](_0x2117a3));});}static[a85_0x1421e1(0x98)](_0x29df87){const _0x1ba69f=a85_0x1421e1,_0x2c9357={};_0x2c9357[_0x1ba69f(0xa0)]=_0x1ba69f(0xd1),_0x2c9357[_0x1ba69f(0xe7)]=_0x1ba69f(0xd2),_0x2c9357[_0x1ba69f(0xa3)]='key',_0x2c9357[_0x1ba69f(0xaf)]='accessKey',_0x2c9357[_0x1ba69f(0xc6)]='password',_0x2c9357[_0x1ba69f(0x8d)]=function(_0x4867b9,_0x4cf8e7){return _0x4867b9===_0x4cf8e7;},_0x2c9357[_0x1ba69f(0xb1)]='object';const _0x54887a=_0x2c9357;if(!_0x29df87)return;const _0x1c7aa7=[_0x54887a['AtMLz'],_0x54887a[_0x1ba69f(0xe7)],_0x54887a['pzIze'],_0x54887a[_0x1ba69f(0xaf)],_0x54887a[_0x1ba69f(0xc6)]];for(const _0x647e31 in _0x29df87){if(_0x1c7aa7[_0x1ba69f(0xac)](_0x647e31[_0x1ba69f(0xbe)]()))delete _0x29df87[_0x647e31];else _0x54887a[_0x1ba69f(0x8d)](typeof _0x29df87[_0x647e31],_0x54887a[_0x1ba69f(0xb1)])&&this['recursivelyDeletePIIKeysFromObject'](_0x29df87[_0x647e31]);}}static[a85_0x1421e1(0xc2)](_0xfa7252){const _0x444846=a85_0x1421e1,_0xb1caf7=JSON[_0x444846(0xa4)](JSON['stringify'](_0xfa7252));return this['recursivelyDeletePIIKeysFromObject'](_0xb1caf7),_0xb1caf7;}}function a85_0x57ea(_0x1ee98e,_0x4ea946){const _0x11701a=a85_0x1170();return a85_0x57ea=function(_0x57eac8,_0x2a6b32){_0x57eac8=_0x57eac8-0x8d;let _0x3e25fd=_0x11701a[_0x57eac8];return _0x3e25fd;},a85_0x57ea(_0x1ee98e,_0x4ea946);}const a85_0x398e8c={};a85_0x398e8c[a85_0x1421e1(0xcb)]=o11yErrorHandler,a85_0x398e8c[a85_0x1421e1(0xd7)]=o11yClassErrorHandler,a85_0x398e8c[a85_0x1421e1(0xba)]=CrashReporter,module[a85_0x1421e1(0xd3)]=a85_0x398e8c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85_0x32fbd2=a85_0x4d61;(function(_0x489620,_0x6ff87f){const _0x597339=a85_0x4d61,_0x15ed5b=_0x489620();while(!![]){try{const _0x43bc53=parseInt(_0x597339(0x235))/0x1*(parseInt(_0x597339(0x255))/0x2)+parseInt(_0x597339(0x200))/0x3*(parseInt(_0x597339(0x1f9))/0x4)+-parseInt(_0x597339(0x266))/0x5*(parseInt(_0x597339(0x243))/0x6)+-parseInt(_0x597339(0x229))/0x7+-parseInt(_0x597339(0x214))/0x8+-parseInt(_0x597339(0x24f))/0x9+-parseInt(_0x597339(0x257))/0xa*(-parseInt(_0x597339(0x245))/0xb);if(_0x43bc53===_0x6ff87f)break;else _0x15ed5b['push'](_0x15ed5b['shift']());}catch(_0x506c26){_0x15ed5b['push'](_0x15ed5b['shift']());}}}(a85_0x1c09,0x506fa));function a85_0x4d61(_0xe58b3e,_0x2ed148){const _0x1c098f=a85_0x1c09();return a85_0x4d61=function(_0x4d61b8,_0x8183a4){_0x4d61b8=_0x4d61b8-0x1f2;let _0x2546c6=_0x1c098f[_0x4d61b8];return _0x2546c6;},a85_0x4d61(_0xe58b3e,_0x2ed148);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a85_0x32fbd2(0x1fd)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require(a85_0x32fbd2(0x234)),{nestedKeyValue}=require(a85_0x32fbd2(0x21a)),util=require(a85_0x32fbd2(0x21c));class RequestQueueHandler{static [a85_0x32fbd2(0x220)];[a85_0x32fbd2(0x217)]=0x0;constructor(){const _0x3b5ac5=a85_0x32fbd2,_0x2f1b0b={};_0x2f1b0b['kPdbm']=_0x3b5ac5(0x1f2),_0x2f1b0b[_0x3b5ac5(0x252)]='LogCreated',_0x2f1b0b[_0x3b5ac5(0x249)]=_0x3b5ac5(0x232),_0x2f1b0b[_0x3b5ac5(0x227)]=_0x3b5ac5(0x268),_0x2f1b0b['iSSQm']=_0x3b5ac5(0x24e),_0x2f1b0b['fBqOE']=_0x3b5ac5(0x23c),_0x2f1b0b[_0x3b5ac5(0x258)]=_0x3b5ac5(0x248),_0x2f1b0b[_0x3b5ac5(0x267)]='HookRunStarted',_0x2f1b0b['XXtAf']=_0x3b5ac5(0x22b),_0x2f1b0b[_0x3b5ac5(0x203)]=_0x3b5ac5(0x24c),_0x2f1b0b[_0x3b5ac5(0x246)]=_0x3b5ac5(0x216);const _0x1f7583=_0x2f1b0b,_0x264478=_0x1f7583[_0x3b5ac5(0x25f)][_0x3b5ac5(0x201)]('|');let _0x146cc3=0x0;while(!![]){switch(_0x264478[_0x146cc3++]){case'0':this[_0x3b5ac5(0x204)]=[];continue;case'1':this['BATCH_EVENT_TYPES']=[_0x1f7583[_0x3b5ac5(0x252)],_0x1f7583['fWYGr'],_0x1f7583['nlGfb'],_0x1f7583[_0x3b5ac5(0x264)],_0x1f7583[_0x3b5ac5(0x21d)],_0x1f7583[_0x3b5ac5(0x258)],_0x1f7583[_0x3b5ac5(0x267)]];continue;case'2':this['started']=![];continue;case'3':this['uploadAttachmentUrl']=_0x1f7583[_0x3b5ac5(0x208)];continue;case'4':this[_0x3b5ac5(0x23b)]=null;continue;case'5':this[_0x3b5ac5(0x20a)]=_0x1f7583['RSilD'];continue;case'6':this[_0x3b5ac5(0x228)]=_0x1f7583[_0x3b5ac5(0x246)];continue;}break;}}static[a85_0x32fbd2(0x215)](){const _0x1a59a7=a85_0x32fbd2;return!RequestQueueHandler[_0x1a59a7(0x220)]&&(RequestQueueHandler['instance']=new RequestQueueHandler()),RequestQueueHandler[_0x1a59a7(0x220)];}[a85_0x32fbd2(0x23f)]=()=>{const _0x201b01=a85_0x32fbd2;!this[_0x201b01(0x262)]&&(this[_0x201b01(0x262)]=!![],this[_0x201b01(0x222)]());};[a85_0x32fbd2(0x22c)]=_0x51ff19=>{const _0x4fe233=a85_0x32fbd2,_0x1d500a={'xuwqz':function(_0x8d9ac2,_0x1dc2a1){return _0x8d9ac2===_0x1dc2a1;},'LEmUm':_0x4fe233(0x253),'jEGul':function(_0x5793a7,_0x3bb9d2){return _0x5793a7>_0x3bb9d2;},'DdUuR':'TEST_ATTACHMENT','fZQsM':function(_0x38f194,_0x45ec60){return _0x38f194!==_0x45ec60;},'nZsws':_0x4fe233(0x268),'FZIcM':function(_0x476a39,_0x425dde){return _0x476a39(_0x425dde);},'PWNWg':_0x4fe233(0x1f6)};if(this[_0x4fe233(0x237)][_0x4fe233(0x263)](_0x51ff19[_0x4fe233(0x261)])){if(_0x51ff19['logs']&&_0x51ff19[_0x4fe233(0x205)][0x0]&&_0x1d500a[_0x4fe233(0x1fc)](_0x51ff19[_0x4fe233(0x205)][0x0][_0x4fe233(0x1fa)],_0x1d500a[_0x4fe233(0x22f)])){const _0x11e45d={};return _0x11e45d['shouldProceed']=!![],_0x11e45d['proceedWithData']=[_0x51ff19],_0x11e45d[_0x4fe233(0x20b)]=this[_0x4fe233(0x228)],_0x11e45d;}if(_0x51ff19['logs']&&_0x1d500a['jEGul'](_0x51ff19[_0x4fe233(0x205)]['length'],0x0)&&_0x1d500a[_0x4fe233(0x1fc)](_0x51ff19['logs'][0x0][_0x4fe233(0x1fa)],_0x1d500a[_0x4fe233(0x25a)])&&_0x1d500a['fZQsM'](_0x51ff19[_0x4fe233(0x261)],_0x1d500a[_0x4fe233(0x224)])){const _0xa30900={};return _0xa30900[_0x4fe233(0x20e)]=!![],_0xa30900[_0x4fe233(0x212)]=[_0x51ff19],_0xa30900[_0x4fe233(0x20b)]=this[_0x4fe233(0x21b)],_0xa30900;}this['queue'][_0x4fe233(0x218)](_0x51ff19);let _0x40ccc5=null;const _0x3fc538=this[_0x4fe233(0x20e)]();_0x3fc538&&(_0x1d500a[_0x4fe233(0x242)](trace,_0x1d500a[_0x4fe233(0x211)]),_0x40ccc5=this['queue']['slice'](0x0,BATCH_SIZE),this[_0x4fe233(0x204)][_0x4fe233(0x254)](0x0,BATCH_SIZE),this[_0x4fe233(0x233)]());const _0x4a273c={};return _0x4a273c[_0x4fe233(0x20e)]=_0x3fc538,_0x4a273c[_0x4fe233(0x212)]=_0x40ccc5,_0x4a273c[_0x4fe233(0x20b)]=this['eventUrl'],_0x4a273c;}const _0x2301a5={};return _0x2301a5[_0x4fe233(0x20e)]=!![],_0x2301a5;};[a85_0x32fbd2(0x259)]=async()=>{const _0x4a8dbf=a85_0x32fbd2,_0x56928a={'udDtP':_0x4a8dbf(0x1f7),'CPGLu':function(_0x247278,_0x3172b0){return _0x247278>_0x3172b0;},'RaEPP':_0x4a8dbf(0x247),'pJsId':function(_0x2b7cfa,_0x1e4450){return _0x2b7cfa>_0x1e4450;},'kNyKm':function(_0x23373d,_0x1c92a0){return _0x23373d(_0x1c92a0);}};await this[_0x4a8dbf(0x1fb)](),this['removeEventBatchPolling'](_0x56928a[_0x4a8dbf(0x256)]);while(_0x56928a[_0x4a8dbf(0x1ff)](this[_0x4a8dbf(0x204)]['length'],0x0)){const _0x50f390=this[_0x4a8dbf(0x204)][_0x4a8dbf(0x1fe)](0x0,BATCH_SIZE);this[_0x4a8dbf(0x204)][_0x4a8dbf(0x254)](0x0,BATCH_SIZE),await this[_0x4a8dbf(0x209)](this['eventUrl'],_0x56928a[_0x4a8dbf(0x1f3)],_0x50f390);}_0x56928a[_0x4a8dbf(0x225)](this[_0x4a8dbf(0x217)],0x0)&&_0x56928a[_0x4a8dbf(0x20c)](debug,_0x4a8dbf(0x236)+this[_0x4a8dbf(0x217)]);};[a85_0x32fbd2(0x209)]=async(_0x585f3c,_0xa84479,_0x234bee)=>{const _0x5f12f3=a85_0x32fbd2,_0x266a28={'ZSdSq':function(_0x1f503b,_0x41941e){return _0x1f503b(_0x41941e);},'mKais':'utf8','MIeqh':function(_0x1d94c7){return _0x1d94c7();},'haulh':function(_0x27c7e0,_0x31d2f0,_0x33a87b,_0x35f85d,_0x4f9a50){return _0x27c7e0(_0x31d2f0,_0x33a87b,_0x35f85d,_0x4f9a50);},'mbRRs':_0x5f12f3(0x265),'uYhZj':function(_0x38ee39,_0x6d138c){return _0x38ee39(_0x6d138c);},'IGRyC':function(_0x18859e,_0x525f67){return _0x18859e-_0x525f67;},'drsrV':function(_0x2f1144,_0x324e2e){return _0x2f1144(_0x324e2e);},'HkQdv':function(_0x2d0cea,_0xb9b194){return _0x2d0cea-_0xb9b194;}};let _0x4c58e7='';try{_0x4c58e7=_0x234bee[_0x5f12f3(0x21e)](_0x1aa114=>'\x27'+_0x1aa114[_0x5f12f3(0x261)]+'\x27:'+(nestedKeyValue(_0x1aa114,['test_run',_0x5f12f3(0x244)])||nestedKeyValue(_0x1aa114,[_0x5f12f3(0x25b),_0x5f12f3(0x244)])))[_0x5f12f3(0x251)](','),_0x266a28['ZSdSq'](debug,'Processing\x20batch\x20events\x20for\x20'+_0xa84479+'.\x20Request\x20Size\x20-\x20'+Buffer[_0x5f12f3(0x22a)](util[_0x5f12f3(0x20d)]('%j',_0x234bee),_0x266a28['mKais'])+_0x5f12f3(0x223)+_0x4c58e7);}catch(_0x366d7b){_0x266a28[_0x5f12f3(0x20f)](debug,_0x5f12f3(0x240)+util[_0x5f12f3(0x20d)](_0x366d7b)+'}');}const _0x4d9960={'headers':_0x266a28[_0x5f12f3(0x25d)](getDefaultHeaders)};try{const _0x2a612d=await _0x266a28[_0x5f12f3(0x238)](nodeRequest,_0x266a28['mbRRs'],_0x585f3c,_0x234bee,_0x4d9960);if(_0x2a612d[_0x5f12f3(0x23e)][_0x5f12f3(0x219)]){const _0x4b80bb={};_0x4b80bb[_0x5f12f3(0x26a)]=_0x2a612d[_0x5f12f3(0x23e)][_0x5f12f3(0x219)];throw _0x4b80bb;}else _0x266a28[_0x5f12f3(0x206)](debug,_0xa84479+_0x5f12f3(0x22e)+_0x4c58e7+_0x5f12f3(0x239)+util['format']('%j',_0x2a612d[_0x5f12f3(0x23e)])),this[_0x5f12f3(0x217)]=Math[_0x5f12f3(0x24a)](0x0,_0x266a28[_0x5f12f3(0x21f)](this[_0x5f12f3(0x217)],_0x234bee[_0x5f12f3(0x1f5)]));}catch(_0x4f278e){_0x4f278e[_0x5f12f3(0x210)]?_0x266a28['uYhZj'](debug,'EXCEPTION\x20IN\x20'+_0xa84479+_0x5f12f3(0x25c)+_0x4f278e[_0x5f12f3(0x210)][_0x5f12f3(0x207)]+'\x20'+_0x4f278e[_0x5f12f3(0x210)]['statusText']+'\x20'+util[_0x5f12f3(0x20d)]('%j',_0x4f278e[_0x5f12f3(0x210)])):_0x266a28[_0x5f12f3(0x1f8)](debug,'EXCEPTION\x20IN\x20'+_0xa84479+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+(_0x4f278e['message']||_0x4f278e)),this['pendingUploads']=Math[_0x5f12f3(0x24a)](0x0,_0x266a28[_0x5f12f3(0x25e)](this[_0x5f12f3(0x217)],_0x234bee[_0x5f12f3(0x1f5)]));}};[a85_0x32fbd2(0x222)]=()=>{const _0x211cdc=a85_0x32fbd2,_0xf983a0={'xPTXr':function(_0x4fe793,_0x326c6a){return _0x4fe793>_0x326c6a;},'itTFq':function(_0x1b8dff,_0x1cf4e0){return _0x1b8dff(_0x1cf4e0);},'BgdPw':_0x211cdc(0x250),'yHkOR':function(_0x3a340f,_0x444843){return _0x3a340f(_0x444843);},'rKSDb':function(_0x4a197c,_0x27792b,_0x59a5b0){return _0x4a197c(_0x27792b,_0x59a5b0);}};this[_0x211cdc(0x23b)]=_0xf983a0[_0x211cdc(0x241)](setInterval,async()=>{const _0x79cdbe=_0x211cdc;if(_0xf983a0['xPTXr'](this[_0x79cdbe(0x204)][_0x79cdbe(0x1f5)],0x0)){_0xf983a0[_0x79cdbe(0x22d)](trace,_0x79cdbe(0x226)+this[_0x79cdbe(0x204)][_0x79cdbe(0x1f5)]);const _0x37b6cd=this[_0x79cdbe(0x204)][_0x79cdbe(0x1fe)](0x0,BATCH_SIZE);this[_0x79cdbe(0x204)]['splice'](0x0,BATCH_SIZE),await this[_0x79cdbe(0x209)](this[_0x79cdbe(0x20a)],_0xf983a0[_0x79cdbe(0x260)],_0x37b6cd),_0xf983a0[_0x79cdbe(0x230)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this['queue'][_0x79cdbe(0x1f5)]);}},BATCH_INTERVAL);};[a85_0x32fbd2(0x233)]=()=>{const _0x272d0e=a85_0x32fbd2,_0xa568be={};_0xa568be[_0x272d0e(0x24d)]='RESETTING';const _0x46750b=_0xa568be;this['removeEventBatchPolling'](_0x46750b[_0x272d0e(0x24d)]),this[_0x272d0e(0x222)]();};[a85_0x32fbd2(0x23a)]=_0x28d9c9=>{const _0x581f4b=a85_0x32fbd2,_0x4f2b1f={'yFgdG':function(_0x5c9c68,_0x4d6f62){return _0x5c9c68(_0x4d6f62);},'nrDso':function(_0x15528f,_0x1e89c8){return _0x15528f===_0x1e89c8;},'aJBpx':_0x581f4b(0x1f7)};this[_0x581f4b(0x23b)]&&(_0x4f2b1f[_0x581f4b(0x213)](clearInterval,this['pollEventBatchInterval']),this[_0x581f4b(0x23b)]=null,_0x4f2b1f[_0x581f4b(0x202)](_0x28d9c9,_0x4f2b1f[_0x581f4b(0x221)])&&(this[_0x581f4b(0x262)]=![]));};[a85_0x32fbd2(0x20e)]=()=>{const _0x52fddc=a85_0x32fbd2,_0x25e5ac={};_0x25e5ac[_0x52fddc(0x231)]=function(_0xa44601,_0x5d8357){return _0xa44601>=_0x5d8357;};const _0x4a0e47=_0x25e5ac;return _0x4a0e47[_0x52fddc(0x231)](this[_0x52fddc(0x204)]['length'],BATCH_SIZE);};async[a85_0x32fbd2(0x1fb)](_0x53ae1b=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x138283=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0xfcad9a=a85_0x32fbd2,_0x2421a6={'jhiPK':function(_0x1a9106,_0x3881cd){return _0x1a9106<=_0x3881cd;},'TRQuJ':function(_0x5e4d6e,_0x408d51){return _0x5e4d6e<=_0x408d51;},'zGcKT':function(_0x124371,_0x87f02c){return _0x124371(_0x87f02c);},'mfJEP':function(_0x1f9271,_0xbd0a21){return _0x1f9271-_0xbd0a21;}};if(_0x2421a6[_0xfcad9a(0x1f4)](this[_0xfcad9a(0x217)],0x0)||_0x2421a6['TRQuJ'](_0x53ae1b,0x0))return;return await _0x2421a6[_0xfcad9a(0x23d)](sleep,_0x138283),this[_0xfcad9a(0x1fb)](_0x2421a6[_0xfcad9a(0x24b)](_0x53ae1b,_0x138283));}}function a85_0x1c09(){const _0x15c23c=['haulh','\x20--\x20','removeEventBatchPolling','pollEventBatchInterval','HookRunFinished','zGcKT','data','start','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','rKSDb','FZIcM','22674TmsBjU','uuid','209DgVDUK','gIlgm','Shutdown-Queue','TestRunStarted','fWYGr','max','mfJEP','api/v1/batch','Fvrgt','TestRunSkipped','3714840feoNYl','Interval-Queue','join','BVjdX','TEST_SCREENSHOT','splice','12924OBsgLr','udDtP','539870yhTyLX','ZyOcd','shutdown','DdUuR','hook_run','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','MIeqh','HkQdv','kPdbm','BgdPw','event_type','started','includes','iSSQm','POST','355DvucVt','jsuDb','TestRunFinished','exports','message','0|2|5|6|3|1|4','RaEPP','jhiPK','length','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','REMOVING','drsrV','777484NZytUy','kind','uploadPending','xuwqz','./constants','slice','CPGLu','3FpbrtD','split','nrDso','RSilD','queue','logs','uYhZj','status','XXtAf','batchAndPostEvents','eventUrl','proceedWithUrl','kNyKm','format','shouldProceed','ZSdSq','response','PWNWg','proceedWithData','yFgdG','2692296jolxGP','getInstance','api/v1/screenshots','pendingUploads','push','error','../helper','uploadAttachmentUrl','util','fBqOE','map','IGRyC','instance','aJBpx','startEventBatchPolling','\x20bytes.\x20Events\x20are\x20','nZsws','pJsId','Processing\x20events.\x20Queue\x20Length\x20-\x20','nlGfb','screenshotEventUrl','1734936itESmJ','byteLength','upload-attachments','add','itTFq','\x20event\x20successful\x20for\x20events\x20','LEmUm','yHkOR','QsRfl','CBTSessionCreated','resetEventBatchPolling','./utils','58HNOhPB','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','BATCH_EVENT_TYPES'];a85_0x1c09=function(){return _0x15c23c;};return a85_0x1c09();}module[a85_0x32fbd2(0x269)]=RequestQueueHandler;
|
|
1
|
+
function a86_0x2eed(){const _0x3d1437=['KaiGM','queue','REMOVING','slice','pollEventBatchInterval','4|3|1|6|5|2|0','swwhc','event_type','includes','18SYvcat','vzQyo','154244ZFvIEA','Interval-Queue','dyEXq','nYKMH','1804216nnQyVT','ZposY','CBTSessionCreated','282nTtHZH','TEST_SCREENSHOT','join','message','kind','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','status','oFpgr','wNVCK','Zpyft','uploadAttachmentUrl','3035xNzIXA','hook_run','VAVGA','jONdM','uploadPending','util','hdabC','test_run','oMCnA','XpMdv','started','sHQxP','data','utf8','max','mthnl','api/v1/batch','3242eHwscw','HookRunFinished','LogCreated','JBbpL','TestRunSkipped','proceedWithUrl','logs','batchAndPostEvents','statusText','EjYNw','\x20event\x20successful\x20for\x20events\x20','9880244KhEEOZ','eventUrl','NWWpC','EXCEPTION\x20IN\x20','vaSHe','uPRdq','DBdra','QeKCJ','instance','uuid','response','TestRunFinished','screenshotEventUrl','push','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','267456UGYDfa','splice','shouldProceed','BgaXg','removeEventBatchPolling','BqbRY','proceedWithData','pendingUploads','CEUrN','Shutdown-Queue','xLfRt','HookRunStarted','POST','BrWQy','HfQId','TEST_ATTACHMENT','NruLK','1838280HJodMP','39RIFAHT','map','3PTyJXW','\x20bytes.\x20Events\x20are\x20','format','poeUA','TestRunStarted','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','\x20--\x20','YNMCZ','error','start','startEventBatchPolling','length','ZaugG','api/v1/screenshots','upload-attachments','vhxYZ'];a86_0x2eed=function(){return _0x3d1437;};return a86_0x2eed();}const a86_0xf9126f=a86_0x44aa;(function(_0x583d1d,_0x32ea8a){const _0x34495a=a86_0x44aa,_0x4d954a=_0x583d1d();while(!![]){try{const _0x5e051a=parseInt(_0x34495a(0xda))/0x1*(parseInt(_0x34495a(0x118))/0x2)+-parseInt(_0x34495a(0xd8))/0x3*(-parseInt(_0x34495a(0xf5))/0x4)+-parseInt(_0x34495a(0x107))/0x5*(-parseInt(_0x34495a(0xfc))/0x6)+parseInt(_0x34495a(0xc6))/0x7+-parseInt(_0x34495a(0xf9))/0x8*(-parseInt(_0x34495a(0xf3))/0x9)+parseInt(_0x34495a(0xd7))/0xa+-parseInt(_0x34495a(0xb7))/0xb;if(_0x5e051a===_0x32ea8a)break;else _0x4d954a['push'](_0x4d954a['shift']());}catch(_0x5a1bfd){_0x4d954a['push'](_0x4d954a['shift']());}}}(a86_0x2eed,0x4b943));function a86_0x44aa(_0x32edcf,_0xc73367){const _0x2eed13=a86_0x2eed();return a86_0x44aa=function(_0x44aaf9,_0x153b08){_0x44aaf9=_0x44aaf9-0xb6;let _0x5aafa2=_0x2eed13[_0x44aaf9];return _0x5aafa2;},a86_0x44aa(_0x32edcf,_0xc73367);}const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require('./constants'),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require('../helper'),util=require(a86_0xf9126f(0x10c));class RequestQueueHandler{static [a86_0xf9126f(0xbf)];[a86_0xf9126f(0xcd)]=0x0;constructor(){const _0x1424ab=a86_0xf9126f,_0x36b3ab={};_0x36b3ab[_0x1424ab(0xbb)]=_0x1424ab(0xef),_0x36b3ab[_0x1424ab(0xe6)]=_0x1424ab(0x117),_0x36b3ab[_0x1424ab(0xe9)]=_0x1424ab(0x11a),_0x36b3ab[_0x1424ab(0xce)]=_0x1424ab(0xfb),_0x36b3ab[_0x1424ab(0x10d)]=_0x1424ab(0xc2),_0x36b3ab['mthnl']=_0x1424ab(0x11c),_0x36b3ab['ZposY']=_0x1424ab(0x119),_0x36b3ab[_0x1424ab(0x121)]=_0x1424ab(0xde),_0x36b3ab[_0x1424ab(0xc9)]=_0x1424ab(0xd1),_0x36b3ab[_0x1424ab(0x112)]=_0x1424ab(0xe8),_0x36b3ab['dyEXq']=_0x1424ab(0xe7);const _0x5efca3=_0x36b3ab,_0x111b63=_0x5efca3[_0x1424ab(0xbb)]['split']('|');let _0x3dc96a=0x0;while(!![]){switch(_0x111b63[_0x3dc96a++]){case'0':this[_0x1424ab(0xee)]=null;continue;case'1':this[_0x1424ab(0xb8)]=_0x5efca3[_0x1424ab(0xe6)];continue;case'2':this['BATCH_EVENT_TYPES']=[_0x5efca3[_0x1424ab(0xe9)],_0x5efca3[_0x1424ab(0xce)],_0x5efca3['hdabC'],_0x5efca3[_0x1424ab(0x116)],_0x5efca3[_0x1424ab(0xfa)],_0x5efca3[_0x1424ab(0x121)],_0x5efca3[_0x1424ab(0xc9)]];continue;case'3':this[_0x1424ab(0x111)]=![];continue;case'4':this['queue']=[];continue;case'5':this[_0x1424ab(0x106)]=_0x5efca3[_0x1424ab(0x112)];continue;case'6':this[_0x1424ab(0xc3)]=_0x5efca3[_0x1424ab(0xf7)];continue;}break;}}static['getInstance'](){const _0x5bd2a8=a86_0xf9126f;return!RequestQueueHandler[_0x5bd2a8(0xbf)]&&(RequestQueueHandler[_0x5bd2a8(0xbf)]=new RequestQueueHandler()),RequestQueueHandler[_0x5bd2a8(0xbf)];}[a86_0xf9126f(0xe3)]=()=>{const _0x4eb489=a86_0xf9126f;!this[_0x4eb489(0x111)]&&(this[_0x4eb489(0x111)]=!![],this[_0x4eb489(0xe4)]());};['add']=_0x161b73=>{const _0x4a22c7=a86_0xf9126f,_0x1126f2={'XpMdv':function(_0x335965,_0xbce90e){return _0x335965===_0xbce90e;},'BqbRY':_0x4a22c7(0xfd),'xLfRt':function(_0x113929,_0xbd7bab){return _0x113929>_0xbd7bab;},'HfQId':_0x4a22c7(0xd5),'oFpgr':function(_0x5aa465,_0x5e9322){return _0x5aa465!==_0x5e9322;},'LxaHl':_0x4a22c7(0xc2),'CpqVf':function(_0x8a16eb,_0x118c04){return _0x8a16eb(_0x118c04);},'wegCf':_0x4a22c7(0x101)};if(this['BATCH_EVENT_TYPES'][_0x4a22c7(0xf2)](_0x161b73[_0x4a22c7(0xf1)])){if(_0x161b73[_0x4a22c7(0x11e)]&&_0x161b73[_0x4a22c7(0x11e)][0x0]&&_0x1126f2[_0x4a22c7(0x110)](_0x161b73[_0x4a22c7(0x11e)][0x0]['kind'],_0x1126f2[_0x4a22c7(0xcb)])){const _0x444f15={};return _0x444f15[_0x4a22c7(0xc8)]=!![],_0x444f15[_0x4a22c7(0xcc)]=[_0x161b73],_0x444f15[_0x4a22c7(0x11d)]=this[_0x4a22c7(0xc3)],_0x444f15;}if(_0x161b73[_0x4a22c7(0x11e)]&&_0x1126f2[_0x4a22c7(0xd0)](_0x161b73[_0x4a22c7(0x11e)][_0x4a22c7(0xe5)],0x0)&&_0x1126f2['XpMdv'](_0x161b73[_0x4a22c7(0x11e)][0x0][_0x4a22c7(0x100)],_0x1126f2[_0x4a22c7(0xd4)])&&_0x1126f2[_0x4a22c7(0x103)](_0x161b73[_0x4a22c7(0xf1)],_0x1126f2['LxaHl'])){const _0x161e51={};return _0x161e51['shouldProceed']=!![],_0x161e51[_0x4a22c7(0xcc)]=[_0x161b73],_0x161e51['proceedWithUrl']=this[_0x4a22c7(0x106)],_0x161e51;}this[_0x4a22c7(0xeb)][_0x4a22c7(0xc4)](_0x161b73);let _0xd4dea1=null;const _0x1d0034=this[_0x4a22c7(0xc8)]();_0x1d0034&&(_0x1126f2['CpqVf'](trace,_0x1126f2['wegCf']),_0xd4dea1=this['queue'][_0x4a22c7(0xed)](0x0,BATCH_SIZE),this[_0x4a22c7(0xeb)][_0x4a22c7(0xc7)](0x0,BATCH_SIZE),this['resetEventBatchPolling']());const _0x340b41={};return _0x340b41[_0x4a22c7(0xc8)]=_0x1d0034,_0x340b41[_0x4a22c7(0xcc)]=_0xd4dea1,_0x340b41['proceedWithUrl']=this[_0x4a22c7(0xb8)],_0x340b41;}const _0x295dc8={};return _0x295dc8[_0x4a22c7(0xc8)]=!![],_0x295dc8;};['shutdown']=async()=>{const _0x2ff187=a86_0xf9126f,_0x2c4939={'poeUA':_0x2ff187(0xec),'Zpyft':function(_0x118b4f,_0x5c641e){return _0x118b4f>_0x5c641e;},'IRPeO':_0x2ff187(0xcf),'BrWQy':function(_0x555a40,_0x429442){return _0x555a40>_0x429442;},'oMCnA':function(_0x41e213,_0x2b0576){return _0x41e213(_0x2b0576);}};await this[_0x2ff187(0x10b)](),this[_0x2ff187(0xca)](_0x2c4939[_0x2ff187(0xdd)]);while(_0x2c4939[_0x2ff187(0x105)](this[_0x2ff187(0xeb)]['length'],0x0)){const _0x36dad2=this[_0x2ff187(0xeb)][_0x2ff187(0xed)](0x0,BATCH_SIZE);this[_0x2ff187(0xeb)][_0x2ff187(0xc7)](0x0,BATCH_SIZE),await this[_0x2ff187(0x11f)](this[_0x2ff187(0xb8)],_0x2c4939['IRPeO'],_0x36dad2);}_0x2c4939[_0x2ff187(0xd3)](this[_0x2ff187(0xcd)],0x0)&&_0x2c4939[_0x2ff187(0x10f)](debug,'Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20'+this[_0x2ff187(0xcd)]);};['batchAndPostEvents']=async(_0x3309ee,_0x32302c,_0x14abb7)=>{const _0x11c084=a86_0xf9126f,_0x5780c7={'DBdra':function(_0x32b337,_0x4e3392){return _0x32b337(_0x4e3392);},'wXtqL':_0x11c084(0x114),'ZpxoD':function(_0x1d34ec){return _0x1d34ec();},'swwhc':function(_0x1dec2a,_0x1ae77c,_0x1668a9,_0x5bf6cb,_0x57a370){return _0x1dec2a(_0x1ae77c,_0x1668a9,_0x5bf6cb,_0x57a370);},'VAVGA':_0x11c084(0xd2),'mgEHu':function(_0x5d043a,_0x5a8342){return _0x5d043a-_0x5a8342;},'QeKCJ':function(_0x28737d,_0x1eab3e){return _0x28737d(_0x1eab3e);},'jONdM':function(_0x49e2bb,_0x10ea79){return _0x49e2bb-_0x10ea79;}};let _0x12205f='';try{_0x12205f=_0x14abb7[_0x11c084(0xd9)](_0xe2ba5e=>'\x27'+_0xe2ba5e['event_type']+'\x27:'+(nestedKeyValue(_0xe2ba5e,[_0x11c084(0x10e),_0x11c084(0xc0)])||nestedKeyValue(_0xe2ba5e,[_0x11c084(0x108),_0x11c084(0xc0)])))[_0x11c084(0xfe)](','),_0x5780c7[_0x11c084(0xbd)](debug,'Processing\x20batch\x20events\x20for\x20'+_0x32302c+'.\x20Request\x20Size\x20-\x20'+Buffer['byteLength'](util[_0x11c084(0xdc)]('%j',_0x14abb7),_0x5780c7['wXtqL'])+_0x11c084(0xdb)+_0x12205f);}catch(_0x20d557){_0x5780c7[_0x11c084(0xbd)](debug,_0x11c084(0xdf)+util[_0x11c084(0xdc)](_0x20d557)+'}');}const _0x499756={'headers':_0x5780c7['ZpxoD'](getDefaultHeaders)};try{const _0x4b4c4e=await _0x5780c7[_0x11c084(0xf0)](nodeRequest,_0x5780c7[_0x11c084(0x109)],_0x3309ee,_0x14abb7,_0x499756);if(_0x4b4c4e[_0x11c084(0x113)][_0x11c084(0xe2)]){const _0x56786b={};_0x56786b[_0x11c084(0xff)]=_0x4b4c4e['data'][_0x11c084(0xe2)];throw _0x56786b;}else _0x5780c7[_0x11c084(0xbd)](debug,_0x32302c+_0x11c084(0xb6)+_0x12205f+_0x11c084(0xe0)+util['format']('%j',_0x4b4c4e[_0x11c084(0x113)])),this[_0x11c084(0xcd)]=Math[_0x11c084(0x115)](0x0,_0x5780c7['mgEHu'](this[_0x11c084(0xcd)],_0x14abb7[_0x11c084(0xe5)]));}catch(_0x5cd566){_0x5cd566[_0x11c084(0xc1)]?_0x5780c7[_0x11c084(0xbe)](debug,_0x11c084(0xba)+_0x32302c+_0x11c084(0xc5)+_0x5cd566[_0x11c084(0xc1)][_0x11c084(0x102)]+'\x20'+_0x5cd566['response'][_0x11c084(0x120)]+'\x20'+util[_0x11c084(0xdc)]('%j',_0x5cd566[_0x11c084(0xc1)])):_0x5780c7[_0x11c084(0xbe)](debug,_0x11c084(0xba)+_0x32302c+_0x11c084(0xc5)+(_0x5cd566['message']||_0x5cd566)),this[_0x11c084(0xcd)]=Math['max'](0x0,_0x5780c7[_0x11c084(0x10a)](this[_0x11c084(0xcd)],_0x14abb7[_0x11c084(0xe5)]));}};[a86_0xf9126f(0xe4)]=()=>{const _0x1843dc=a86_0xf9126f,_0x1d4f1b={'lLlHg':function(_0x38e78f,_0x44f3f1){return _0x38e78f>_0x44f3f1;},'uPRdq':function(_0x3d9393,_0x3c2fff){return _0x3d9393(_0x3c2fff);},'MBPQN':_0x1843dc(0xf6),'KaiGM':function(_0xc396f9,_0x5365e9){return _0xc396f9(_0x5365e9);},'JBbpL':function(_0x5ae92e,_0x3a1e,_0x195bb8){return _0x5ae92e(_0x3a1e,_0x195bb8);}};this[_0x1843dc(0xee)]=_0x1d4f1b[_0x1843dc(0x11b)](setInterval,async()=>{const _0x54c4d1=_0x1843dc;if(_0x1d4f1b['lLlHg'](this['queue'][_0x54c4d1(0xe5)],0x0)){_0x1d4f1b[_0x54c4d1(0xbc)](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this[_0x54c4d1(0xeb)][_0x54c4d1(0xe5)]);const _0x1ed038=this[_0x54c4d1(0xeb)][_0x54c4d1(0xed)](0x0,BATCH_SIZE);this['queue'][_0x54c4d1(0xc7)](0x0,BATCH_SIZE),await this[_0x54c4d1(0x11f)](this[_0x54c4d1(0xb8)],_0x1d4f1b['MBPQN'],_0x1ed038),_0x1d4f1b[_0x54c4d1(0xea)](trace,'Remaining\x20Queue\x20Length\x20-\x20'+this['queue']['length']);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x72bdb=a86_0xf9126f,_0x40584e={};_0x40584e[_0x72bdb(0x104)]='RESETTING';const _0x1986f6=_0x40584e;this[_0x72bdb(0xca)](_0x1986f6[_0x72bdb(0x104)]),this[_0x72bdb(0xe4)]();};[a86_0xf9126f(0xca)]=_0x2d293e=>{const _0x415923=a86_0xf9126f,_0x56edff={'NWWpC':function(_0x584d89,_0x53e49d){return _0x584d89(_0x53e49d);},'NskpU':function(_0x84de04,_0x5460df){return _0x84de04===_0x5460df;},'nYKMH':'REMOVING'};this[_0x415923(0xee)]&&(_0x56edff[_0x415923(0xb9)](clearInterval,this['pollEventBatchInterval']),this['pollEventBatchInterval']=null,_0x56edff['NskpU'](_0x2d293e,_0x56edff[_0x415923(0xf8)])&&(this[_0x415923(0x111)]=![]));};[a86_0xf9126f(0xc8)]=()=>{const _0x51e45a=a86_0xf9126f,_0x2066af={};_0x2066af[_0x51e45a(0xd6)]=function(_0x32cfdb,_0x141728){return _0x32cfdb>=_0x141728;};const _0x4470a6=_0x2066af;return _0x4470a6[_0x51e45a(0xd6)](this[_0x51e45a(0xeb)][_0x51e45a(0xe5)],BATCH_SIZE);};async[a86_0xf9126f(0x10b)](_0x468e55=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x286a1e=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x45edcc=a86_0xf9126f,_0x2af28b={'fWLDR':function(_0x2e222d,_0x515606){return _0x2e222d<=_0x515606;},'YNMCZ':function(_0xc57190,_0x5323cc){return _0xc57190<=_0x5323cc;},'vzQyo':function(_0x4647cf,_0x55c853){return _0x4647cf(_0x55c853);},'JEFDs':function(_0x3cdaec,_0x2199aa){return _0x3cdaec-_0x2199aa;}};if(_0x2af28b['fWLDR'](this[_0x45edcc(0xcd)],0x0)||_0x2af28b[_0x45edcc(0xe1)](_0x468e55,0x0))return;return await _0x2af28b[_0x45edcc(0xf4)](sleep,_0x286a1e),this[_0x45edcc(0x10b)](_0x2af28b['JEFDs'](_0x468e55,_0x286a1e));}}module['exports']=RequestQueueHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a86_0x332420=a86_0x5a57;(function(_0x240e18,_0x31becd){const _0x1b2d0b=a86_0x5a57,_0x2d5aeb=_0x240e18();while(!![]){try{const _0x1e3046=parseInt(_0x1b2d0b(0xea))/0x1+parseInt(_0x1b2d0b(0x106))/0x2*(-parseInt(_0x1b2d0b(0x12f))/0x3)+-parseInt(_0x1b2d0b(0xf9))/0x4*(-parseInt(_0x1b2d0b(0x118))/0x5)+parseInt(_0x1b2d0b(0x13b))/0x6*(parseInt(_0x1b2d0b(0x136))/0x7)+parseInt(_0x1b2d0b(0x103))/0x8+-parseInt(_0x1b2d0b(0x102))/0x9*(parseInt(_0x1b2d0b(0xe4))/0xa)+-parseInt(_0x1b2d0b(0xd4))/0xb;if(_0x1e3046===_0x31becd)break;else _0x2d5aeb['push'](_0x2d5aeb['shift']());}catch(_0x532a31){_0x2d5aeb['push'](_0x2d5aeb['shift']());}}}(a86_0x3253,0xd2c9b));const bsSetupHelper=require(a86_0x332420(0x11f)),path=require(a86_0x332420(0xc5)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a86_0x332420(0xf3)),logger=require(a86_0x332420(0x141))[a86_0x332420(0xe2)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x332420(0x143)),util=require(a86_0x332420(0xf4));function a86_0x5a57(_0x27b2f4,_0x3262f8){const _0x325306=a86_0x3253();return a86_0x5a57=function(_0x5a5796,_0x11c555){_0x5a5796=_0x5a5796-0xa1;let _0x34ca84=_0x325306[_0x5a5796];return _0x34ca84;},a86_0x5a57(_0x27b2f4,_0x3262f8);}class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a86_0x332420(0x132)]();static async[a86_0x332420(0x113)](_0x507bc7,_0x16f6ee){const _0x33d37e=a86_0x332420,_0x36e225={'ZpYqw':function(_0x467444,_0x3ded9b){return _0x467444||_0x3ded9b;},'rwbiH':function(_0x458b59,_0x4825de){return _0x458b59||_0x4825de;},'bJirP':function(_0x59f77c,_0xc14eea){return _0x59f77c===_0xc14eea;},'szgQz':function(_0x79e8b9,_0x4111bc){return _0x79e8b9(_0x4111bc);},'TeVJM':_0x33d37e(0xd5),'ExZNY':_0x33d37e(0xbf),'vknGE':_0x33d37e(0x130),'uLCSC':function(_0x53b8e6,_0x1a7bdd){return _0x53b8e6(_0x1a7bdd);},'MRaJI':function(_0x3a2265,_0x36c37c,_0x564016,_0x75dde1,_0x208c07){return _0x3a2265(_0x36c37c,_0x564016,_0x75dde1,_0x208c07);},'Mxmxh':_0x33d37e(0xd9),'nviNN':_0x33d37e(0xc0),'wGSyy':_0x33d37e(0xa7),'rUjQK':function(_0x965c2e){return _0x965c2e();},'fdEsZ':_0x33d37e(0xbd),'FjddQ':_0x33d37e(0xa1),'YumuM':function(_0x3f92dc,_0x4b0986){return _0x3f92dc(_0x4b0986);},'EwHXv':_0x33d37e(0xab),'qmcgX':'ERROR_ACCESS_DENIED','uAXSn':_0x33d37e(0x11b)},_0x28dc7a=bsSetupHelper[_0x33d37e(0xd1)](_0x507bc7),_0x597634=bsSetupHelper[_0x33d37e(0x11a)](_0x507bc7),_0x2d16df=_0x36e225['ZpYqw'](_0x28dc7a,'')+':'+_0x36e225[_0x33d37e(0xa6)](_0x597634,'');if(_0x36e225[_0x33d37e(0x100)](_0x2d16df,':'))return _0x36e225[_0x33d37e(0xaa)](debug,_0x36e225[_0x33d37e(0xf6)]),process['env'][_0x33d37e(0xce)]=_0x36e225['ExZNY'],[null,null];let _0x201728=![],_0x308a4d=![];if(_0x507bc7[_0x33d37e(0x101)]&&_0x507bc7[_0x33d37e(0xc1)])_0x308a4d=!![];else _0x507bc7[_0x33d37e(0x101)]&&(_0x201728=!![]);try{const _0x3bce55={'format':_0x36e225[_0x33d37e(0xcf)],'project_name':_0x507bc7[_0x33d37e(0x117)]||'','name':_0x507bc7['buildName']||path[_0x33d37e(0x10c)](path[_0x33d37e(0x10e)](process['cwd']())),'build_identifier':_0x507bc7[_0x33d37e(0xb7)],'description':_0x507bc7[_0x33d37e(0xa9)]||'','start_time':new Date()[_0x33d37e(0xb3)](),'tags':_0x36e225[_0x33d37e(0xaa)](getCustomTags,_0x507bc7),'host_info':bsSetupHelper[_0x33d37e(0x10f)](),'ci_info':bsSetupHelper[_0x33d37e(0x13e)](),'build_run_identifier':process[_0x33d37e(0xda)]['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process['env'][_0x33d37e(0xa5)]||![],'version_control':await bsSetupHelper['getGitMetaData'](),'observability_version':{'frameworkName':_0x16f6ee[_0x33d37e(0x10b)],'frameworkVersion':_0x16f6ee[_0x33d37e(0xb5)],'sdkVersion':bsSetupHelper[_0x33d37e(0x13a)]()},'product_map':_0x36e225[_0x33d37e(0xaa)](getProductMap,_0x507bc7)},_0x3774c1={};_0x3774c1[_0x33d37e(0x10d)]=_0x28dc7a,_0x3774c1['password']=_0x597634;const _0x5b7332={'auth':_0x3774c1,'headers':_0x36e225[_0x33d37e(0xc4)](getDefaultHeaders,![])},_0x231a00=await _0x36e225[_0x33d37e(0x138)](nodeRequest,_0x36e225[_0x33d37e(0xd7)],_0x36e225[_0x33d37e(0xd3)],_0x3bce55,_0x5b7332);_0x36e225[_0x33d37e(0xaa)](debug,_0x36e225['wGSyy']);const _0x3c8aa4=_0x231a00[_0x33d37e(0xc6)];_0x3c8aa4[_0x33d37e(0x149)]&&(process[_0x33d37e(0xda)][_0x33d37e(0x14d)]=_0x3c8aa4['build_hashed_id']);if(_0x36e225['rUjQK'](isTestObservabilitySession)){process['env'][_0x33d37e(0xce)]=_0x36e225[_0x33d37e(0x12c)];if(_0x3c8aa4[_0x33d37e(0x10a)]){process[_0x33d37e(0xda)][_0x33d37e(0x14c)]=_0x3c8aa4[_0x33d37e(0x10a)];const _0x2255ce={};_0x2255ce[_0x33d37e(0x10d)]=_0x28dc7a,_0x2255ce[_0x33d37e(0x14f)]=_0x597634,process[_0x33d37e(0xda)][_0x33d37e(0x115)]=JSON['stringify'](_0x2255ce);}_0x3c8aa4[_0x33d37e(0x149)]&&(process['env'][_0x33d37e(0x135)]=_0x3c8aa4[_0x33d37e(0x149)]),_0x3c8aa4[_0x33d37e(0xe0)]&&(process[_0x33d37e(0xda)][_0x33d37e(0x137)]=_0x3c8aa4[_0x33d37e(0xe0)][_0x33d37e(0xde)]());}return[_0x231a00[_0x33d37e(0xc6)]['jwt'],_0x231a00['data'][_0x33d37e(0x149)],_0x231a00[_0x33d37e(0xc6)]['allow_screenshots']];}catch(_0x3cdf0b){process[_0x33d37e(0xda)][_0x33d37e(0x14d)]=_0x36e225[_0x33d37e(0x134)],process['env'][_0x33d37e(0xce)]=_0x36e225[_0x33d37e(0x13d)],process['env'][_0x33d37e(0x14c)]=_0x36e225[_0x33d37e(0x134)],process[_0x33d37e(0xda)][_0x33d37e(0x135)]=_0x36e225[_0x33d37e(0x134)],process[_0x33d37e(0xda)][_0x33d37e(0x137)]=_0x36e225[_0x33d37e(0x134)];_0x3cdf0b['response']?_0x36e225['YumuM'](debug,_0x33d37e(0x12b)+_0x3cdf0b['response'][_0x33d37e(0xfd)]+'\x20'+_0x3cdf0b[_0x33d37e(0x133)]['statusText']+'\x20'+JSON[_0x33d37e(0x104)](_0x3cdf0b[_0x33d37e(0x133)][_0x33d37e(0xc6)])):_0x36e225[_0x33d37e(0xc4)](debug,_0x33d37e(0x12b)+(_0x3cdf0b['message']||_0x3cdf0b));if(_0x3cdf0b&&_0x3cdf0b[_0x33d37e(0x12a)]){const _0x4d2c91=_0x3cdf0b[_0x33d37e(0x12a)];switch(_0x3cdf0b[_0x33d37e(0x11d)]){case _0x36e225['EwHXv']:logger[_0x33d37e(0x122)](_0x4d2c91);break;case _0x36e225[_0x33d37e(0xdd)]:logger['info'](_0x4d2c91);break;case _0x36e225[_0x33d37e(0xe7)]:logger['error'](_0x4d2c91);break;default:logger[_0x33d37e(0x122)](_0x4d2c91);}}else console['info'](_0x33d37e(0xa4)+_0x3cdf0b);return[null,null,null];}}static async[a86_0x332420(0x109)](){const _0x136360=a86_0x332420,_0x3ed8c9={'hhWtW':_0x136360(0xbd),'aUgxR':_0x136360(0xbf),'UFdZK':function(_0x5ab215,_0x1fb3da){return _0x5ab215(_0x1fb3da);}},_0x33c012=process[_0x136360(0xda)]['BS_TESTOPS_BUILD_COMPLETED'];if([_0x3ed8c9[_0x136360(0x114)],_0x3ed8c9[_0x136360(0xe1)]][_0x136360(0xbb)](_0x33c012))return;while([_0x3ed8c9[_0x136360(0x114)],_0x3ed8c9[_0x136360(0xe1)]]['includes'](_0x33c012)){await _0x3ed8c9[_0x136360(0xf0)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a86_0x332420(0xb6)](_0x540dab){const _0x9c4536=a86_0x332420,_0x52cb5d={};_0x52cb5d[_0x9c4536(0xaf)]=_0x9c4536(0xc9),_0x52cb5d[_0x9c4536(0xc8)]=_0x9c4536(0xd6),_0x52cb5d['ufouU']=_0x9c4536(0x142),_0x52cb5d[_0x9c4536(0xf7)]=_0x9c4536(0x145),_0x52cb5d['cLwhv']=_0x9c4536(0x144),_0x52cb5d[_0x9c4536(0xb2)]='Hook_End_Upload',_0x52cb5d[_0x9c4536(0x146)]=_0x9c4536(0xc7);const _0x1173d0=_0x52cb5d,_0x7d1a7={};return _0x7d1a7[_0x9c4536(0x14a)]=_0x1173d0[_0x9c4536(0xaf)],_0x7d1a7[_0x9c4536(0xfa)]=_0x1173d0[_0x9c4536(0xc8)],_0x7d1a7[_0x9c4536(0xcd)]=_0x1173d0['ufouU'],_0x7d1a7[_0x9c4536(0xe8)]=_0x1173d0[_0x9c4536(0xf7)],_0x7d1a7['HookRunStarted']=_0x1173d0[_0x9c4536(0xb9)],_0x7d1a7['HookRunFinished']=_0x1173d0[_0x9c4536(0xb2)],_0x7d1a7[_0x9c4536(0xff)]=_0x1173d0[_0x9c4536(0x146)],_0x7d1a7[_0x540dab[_0x9c4536(0xed)]];}static async[a86_0x332420(0xfe)](_0x3b35f1,_0x1605b2=0x0,_0x2bf0d1=null){const _0xfd29bc=a86_0x332420,_0xb624e2={'cFUpo':function(_0x1d17b8,_0x121875){return _0x1d17b8===_0x121875;},'lovTL':_0xfd29bc(0xe6),'WNptF':function(_0x4ac34f,_0x381490){return _0x4ac34f!==_0x381490;},'Ofocn':'application/json','aqJHZ':_0xfd29bc(0xbd),'wbxhT':function(_0x5d1b9c,_0x31a4ae){return _0x5d1b9c===_0x31a4ae;},'VHLCc':function(_0x38e60f,_0x545e87,_0x3e494d,_0x442fe0,_0x1bdbb6){return _0x38e60f(_0x545e87,_0x3e494d,_0x442fe0,_0x1bdbb6);},'klUQy':'POST','lJMwl':function(_0x330002,_0xc1022){return _0x330002(_0xc1022);},'MEOgP':_0xfd29bc(0x121),'qvjee':function(_0x5c28a8,_0xb93a70){return _0x5c28a8-_0xb93a70;},'PfByq':_0xfd29bc(0xfb),'ZRZlm':_0xfd29bc(0x139),'jcCIA':function(_0x36d228,_0x270cdf){return _0x36d228(_0x270cdf);},'DBIOY':function(_0x71d06e,_0xc09aee){return _0x71d06e-_0xc09aee;},'lMCxe':function(_0x24217d,_0x20e4dd){return _0x24217d===_0x20e4dd;},'lzTpW':_0xfd29bc(0x122)};_0xb624e2[_0xfd29bc(0x151)](_0x2bf0d1,_0xb624e2[_0xfd29bc(0xcb)])&&logger[_0xfd29bc(0xa8)](_0xfd29bc(0xc2)+_0x3b35f1[_0xfd29bc(0x123)][0x0]['test_run_uuid']);const _0x1e8173=await this[_0xfd29bc(0xb6)](_0x3b35f1);let _0x598b55=_0x3b35f1,_0x6f0ebe=EVENT_ENDPOINT;_0xb624e2[_0xfd29bc(0x12e)](_0x2bf0d1,_0xb624e2[_0xfd29bc(0xcb)])&&this['requestQueueHandler'][_0xfd29bc(0x150)]();const {shouldProceed:_0x5486e7,proceedWithData:_0x49cf04,proceedWithUrl:_0x282143}=this[_0xfd29bc(0xd0)][_0xfd29bc(0xb4)](_0x3b35f1);if(!_0x5486e7)return;else _0x49cf04&&(_0x598b55=_0x49cf04,_0x6f0ebe=_0x282143);const _0x5e3948={};_0x5e3948[_0xfd29bc(0xe5)]=_0xfd29bc(0xcc)+process[_0xfd29bc(0xda)][_0xfd29bc(0xbe)],_0x5e3948[_0xfd29bc(0xdc)]=_0xb624e2[_0xfd29bc(0x128)],_0x5e3948[_0xfd29bc(0x11c)]=_0xb624e2['aqJHZ'];const _0x4f7195={};_0x4f7195[_0xfd29bc(0xac)]=_0x5e3948;const _0x3c63a3=_0x4f7195;let _0x1b4449;try{_0xb624e2['wbxhT'](_0x2bf0d1,_0xb624e2[_0xfd29bc(0xcb)])?(logger[_0xfd29bc(0xa8)](_0xfd29bc(0xfc)+_0x3b35f1?.['logs'][0x0]?.[_0xfd29bc(0x11e)]),_0x1b4449=await _0xb624e2['VHLCc'](asyncAwaitNodeReq,_0xb624e2['klUQy'],_0x6f0ebe,_0x598b55,_0x3c63a3),logger[_0xfd29bc(0xa8)](_0xfd29bc(0x12d)+_0x3b35f1?.[_0xfd29bc(0x123)][0x0]?.['test_run_uuid'])):_0x1b4449=await _0xb624e2[_0xfd29bc(0x105)](nodeRequest,_0xb624e2['klUQy'],_0x6f0ebe,_0x598b55,_0x3c63a3);if(_0x1b4449[_0xfd29bc(0xc6)][_0xfd29bc(0x122)]){const _0x2ee890={};_0x2ee890['message']=_0x1b4449[_0xfd29bc(0xc6)][_0xfd29bc(0x122)];throw _0x2ee890;}else{_0xb624e2[_0xfd29bc(0x116)](debug,(_0xb624e2[_0xfd29bc(0x12e)](_0x6f0ebe,this[_0xfd29bc(0xd0)][_0xfd29bc(0xa3)])?_0x1e8173:_0xb624e2['MEOgP'])+'['+_0x1605b2+_0xfd29bc(0x120)),this[_0xfd29bc(0xd0)][_0xfd29bc(0x14b)]=Math[_0xfd29bc(0x148)](0x0,_0xb624e2[_0xfd29bc(0x131)](this[_0xfd29bc(0xd0)][_0xfd29bc(0x14b)],_0xb624e2[_0xfd29bc(0x151)](_0x6f0ebe,_0xb624e2[_0xfd29bc(0xf8)])?0x1:_0x598b55['length']));const _0xa15f70={};return _0xa15f70[_0xfd29bc(0xfd)]=_0xb624e2[_0xfd29bc(0xeb)],_0xa15f70[_0xfd29bc(0x12a)]='',_0xa15f70;}}catch(_0x2a7a1d){_0x2a7a1d['response']?_0xb624e2['lJMwl'](debug,'EXCEPTION\x20IN\x20'+(_0xb624e2[_0xfd29bc(0x12e)](_0x6f0ebe,this[_0xfd29bc(0xd0)]['eventUrl'])?_0x1e8173:_0xb624e2[_0xfd29bc(0x14e)])+_0xfd29bc(0x129)+_0x2a7a1d[_0xfd29bc(0x133)][_0xfd29bc(0xfd)]+'\x20'+_0x2a7a1d[_0xfd29bc(0x133)][_0xfd29bc(0x110)]+'\x20'+util[_0xfd29bc(0xd8)](_0x2a7a1d[_0xfd29bc(0x133)][_0xfd29bc(0xc6)])):_0xb624e2['jcCIA'](debug,_0xfd29bc(0x140)+(_0xb624e2[_0xfd29bc(0x12e)](_0x6f0ebe,this[_0xfd29bc(0xd0)][_0xfd29bc(0xa3)])?_0x1e8173:_0xb624e2['MEOgP'])+_0xfd29bc(0x129)+util[_0xfd29bc(0xd8)](_0x2a7a1d));this['requestQueueHandler']['pendingUploads']=Math['max'](0x0,_0xb624e2[_0xfd29bc(0x108)](this[_0xfd29bc(0xd0)][_0xfd29bc(0x14b)],_0xb624e2['lMCxe'](_0x6f0ebe,_0xb624e2[_0xfd29bc(0xf8)])?0x1:_0x598b55[_0xfd29bc(0xef)]));const _0x4d9fb5={};return _0x4d9fb5[_0xfd29bc(0xfd)]=_0xb624e2[_0xfd29bc(0xd2)],_0x4d9fb5[_0xfd29bc(0x12a)]=_0x2a7a1d[_0xfd29bc(0x12a)]||(_0x2a7a1d[_0xfd29bc(0x133)]?_0x2a7a1d[_0xfd29bc(0x133)][_0xfd29bc(0xfd)]+':'+_0x2a7a1d[_0xfd29bc(0x133)][_0xfd29bc(0x110)]:_0x2a7a1d),_0x4d9fb5;}}static async[a86_0x332420(0xb0)](_0x4c3f94,_0x1c26de=0x0){const _0x20a915=a86_0x332420,_0x45efe2={'mWfUQ':function(_0x351624,_0x507536){return _0x351624+_0x507536;},'aFwYN':function(_0x5dc588,_0x2794e3){return _0x5dc588(_0x2794e3);},'AwGwT':'test_run','bZcNW':_0x20a915(0xbc),'RkxRH':_0x20a915(0xb1),'gyDZb':function(_0x53e19e,_0x58e49b,_0xadc6c5){return _0x53e19e(_0x58e49b,_0xadc6c5);},'TPnVA':_0x20a915(0xb0),'qhoVr':function(_0xc6e63d,_0x46dc94){return _0xc6e63d===_0x46dc94;},'xqOEh':function(_0x11e443,_0x155f14){return _0x11e443!==_0x155f14;},'UyOOv':_0x20a915(0xa1),'bYKHR':function(_0x30d1a1,_0x40f184){return _0x30d1a1===_0x40f184;},'HpOvT':'true','XZMBf':function(_0xb69382){return _0xb69382();},'bFVzi':function(_0x1222cf,_0x13be21){return _0x1222cf-_0x13be21;},'nZaso':_0x20a915(0x122),'gHTdQ':_0x20a915(0x13c),'LfiWL':function(_0x4da490,_0x4b55e9){return _0x4da490>=_0x4b55e9;},'ghUVn':function(_0x1212ce,_0x1b3c30){return _0x1212ce(_0x1b3c30);},'olRAe':_0x20a915(0x147),'NNfCd':function(_0x1f675f,_0x549080){return _0x1f675f!==_0x549080;},'PKpXO':_0x20a915(0xbf)},_0x25a267=this[_0x20a915(0xb6)](_0x4c3f94);_0x45efe2['aFwYN'](trace,_0x20a915(0x124)+_0x4c3f94[_0x20a915(0xed)]+'\x27\x20'+(bsSetupHelper[_0x20a915(0x111)](_0x4c3f94,[_0x45efe2['AwGwT'],_0x45efe2[_0x20a915(0x13f)]])||bsSetupHelper[_0x20a915(0x111)](_0x4c3f94,[_0x45efe2[_0x20a915(0xdb)],_0x45efe2[_0x20a915(0x13f)]])));if(!_0x45efe2['gyDZb'](shouldProcessEventForTesthub,_0x4c3f94[_0x20a915(0xed)],_0x45efe2[_0x20a915(0xa2)]))return;_0x45efe2[_0x20a915(0xf5)](_0x1c26de,0x0)&&process['env'][_0x20a915(0xbe)]&&_0x45efe2[_0x20a915(0x126)](process[_0x20a915(0xda)][_0x20a915(0xbe)],_0x45efe2['UyOOv'])&&(this['requestQueueHandler']['pendingUploads']+=0x1);if(_0x45efe2[_0x20a915(0xca)](process[_0x20a915(0xda)][_0x20a915(0xce)],_0x45efe2[_0x20a915(0xe9)])||process['env'][_0x20a915(0xc3)]||_0x45efe2[_0x20a915(0xee)](isPercyBuild)){if(_0x45efe2[_0x20a915(0xca)](process[_0x20a915(0xda)][_0x20a915(0xbe)],_0x45efe2['UyOOv'])){_0x45efe2[_0x20a915(0xba)](debug,'EXCEPTION\x20IN\x20'+_0x25a267+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token'),this[_0x20a915(0xd0)][_0x20a915(0x14b)]=Math[_0x20a915(0x148)](0x0,_0x45efe2[_0x20a915(0xec)](this[_0x20a915(0xd0)][_0x20a915(0x14b)],0x1));const _0x5aa9d2={};return _0x5aa9d2[_0x20a915(0xfd)]=_0x45efe2[_0x20a915(0xf2)],_0x5aa9d2[_0x20a915(0x12a)]=_0x45efe2[_0x20a915(0xe3)],_0x5aa9d2;}return await this['sendEventData'](_0x4c3f94,_0x1c26de);}else{if(_0x45efe2[_0x20a915(0x127)](_0x1c26de,0x5)){_0x45efe2[_0x20a915(0xb8)](debug,_0x20a915(0x140)+_0x25a267+_0x20a915(0xae)+_0x25a267+_0x20a915(0x119));_0x45efe2[_0x20a915(0x126)](process[_0x20a915(0xda)]['BROWSERSTACK_TESTHUB_JWT'],_0x45efe2[_0x20a915(0xad)])&&(this[_0x20a915(0xd0)][_0x20a915(0x14b)]=Math[_0x20a915(0x148)](0x0,_0x45efe2['bFVzi'](this['requestQueueHandler'][_0x20a915(0x14b)],0x1)));const _0x53ea3f={};return _0x53ea3f[_0x20a915(0xfd)]=_0x45efe2['nZaso'],_0x53ea3f['message']=_0x45efe2[_0x20a915(0x112)],_0x53ea3f;}else _0x45efe2[_0x20a915(0x125)](process['env'][_0x20a915(0xce)],_0x45efe2['PKpXO'])&&_0x45efe2[_0x20a915(0xdf)](setTimeout,()=>{const _0x5d805c=_0x20a915;this[_0x5d805c(0xb0)](_0x4c3f94,_0x45efe2[_0x5d805c(0x107)](_0x1c26de,0x1));},0x3e8);}}}module[a86_0x332420(0xf1)]=SessionHandler;function a86_0x3253(){const _0x10a1ad=['\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','puwzv','uploadEventData','hook_run','hhexj','toISOString','add','frameworkVersion','getLogTag','buildIdentifier','ghUVn','cLwhv','aFwYN','includes','uuid','true','BROWSERSTACK_TESTHUB_JWT','false','api/v1/builds','app','Sending\x20trace\x20zip\x20for\x20test:\x20','BS_A11Y_JWT','uLCSC','path','data','CBT_Upload','CZOpG','Test_Start_Upload','bYKHR','lovTL','Bearer\x20','TestRunSkipped','BS_TESTOPS_BUILD_COMPLETED','vknGE','requestQueueHandler','getUserName','lzTpW','nviNN','42415373qUiJvS','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','Test_End_Upload','Mxmxh','format','POST','env','RkxRH','Content-Type','qmcgX','toString','gyDZb','allow_screenshots','aUgxR','winstonLogger','gHTdQ','70510UWETJK','Authorization','sendTraceZip','uAXSn','LogCreated','HpOvT','1308656tQrBKW','ZRZlm','bFVzi','event_type','XZMBf','length','UFdZK','exports','nZaso','./requestQueueHandler','util','qhoVr','TeVJM','YjCWV','PfByq','121928eatlbW','TestRunFinished','api/v1/event','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','status','sendEventData','CBTSessionCreated','bJirP','browserstackAutomation','117BKVcVL','12332224GjiSWZ','stringify','VHLCc','46PCoqGk','mWfUQ','DBIOY','waitForBuildStatus','jwt','frameworkName','basename','username','resolve','getHostInfo','statusText','nestedKeyValue','olRAe','launch','hhWtW','CREDENTIALS_FOR_CRASH_REPORTING','lJMwl','projectName','235uRjwfz','\x20retry\x20runs\x20exceeded','getAccessKey','ERROR_SDK_DEPRECATED','X-BSTACK-TESTOPS','errorType','test_run_uuid','../helper',']\x20event\x20successful!','Batch-Queue','error','logs','Processing\x20event\x20-\x20\x27','NNfCd','xqOEh','LfiWL','Ofocn','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','message','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','fdEsZ','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','WNptF','104649XUcJBE','json','qvjee','getInstance','response','FjddQ','BS_TESTOPS_BUILD_HASHED_ID','4656624KLaOWU','BS_TESTOPS_ALLOW_SCREENSHOTS','MRaJI','success','getAgentVersion','12pdKvqN','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','ExZNY','getCiInfo','bZcNW','EXCEPTION\x20IN\x20','../logger','Test_Skipped_Upload','../../helpers/testhub/utils','Hook_Start_Upload','Log_Upload','LtAAs','Retry\x20runs\x20exceeded','max','build_hashed_id','TestRunStarted','pendingUploads','BS_TESTOPS_JWT','BROWSERSTACK_TESTHUB_UUID','MEOgP','password','start','cFUpo','null','TPnVA','eventUrl','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','BROWSERSTACK_RERUN','rwbiH','Build\x20creation\x20successful!','debug','buildDescription','szgQz','ERROR_INVALID_CREDENTIALS','headers','UyOOv'];a86_0x3253=function(){return _0x10a1ad;};return a86_0x3253();}
|
|
1
|
+
const a87_0x458a91=a87_0x58bb;(function(_0x86ad65,_0x246aea){const _0x25d728=a87_0x58bb,_0xc95ce0=_0x86ad65();while(!![]){try{const _0x2525ba=-parseInt(_0x25d728(0x1ae))/0x1*(-parseInt(_0x25d728(0x17a))/0x2)+-parseInt(_0x25d728(0x14e))/0x3*(parseInt(_0x25d728(0x1a4))/0x4)+-parseInt(_0x25d728(0x1c3))/0x5+parseInt(_0x25d728(0x1be))/0x6*(parseInt(_0x25d728(0x15e))/0x7)+parseInt(_0x25d728(0x151))/0x8+-parseInt(_0x25d728(0x186))/0x9*(parseInt(_0x25d728(0x1b7))/0xa)+-parseInt(_0x25d728(0x198))/0xb;if(_0x2525ba===_0x246aea)break;else _0xc95ce0['push'](_0xc95ce0['shift']());}catch(_0x33294f){_0xc95ce0['push'](_0xc95ce0['shift']());}}}(a87_0x8591,0xbd734));function a87_0x58bb(_0x156ec1,_0x2d395d){const _0x8591be=a87_0x8591();return a87_0x58bb=function(_0x58bb48,_0xecb535){_0x58bb48=_0x58bb48-0x14e;let _0xdf6e68=_0x8591be[_0x58bb48];return _0xdf6e68;},a87_0x58bb(_0x156ec1,_0x2d395d);}const bsSetupHelper=require('../helper'),path=require(a87_0x458a91(0x19d)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,asyncAwaitNodeReq,sleep,isTestObservabilitySession,trace}=require(a87_0x458a91(0x1b0)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a87_0x458a91(0x1ec)),RequestQueueHandler=require('./requestQueueHandler'),logger=require(a87_0x458a91(0x177))[a87_0x458a91(0x1e1)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a87_0x458a91(0x1b2)),util=require('util');class SessionHandler{static [a87_0x458a91(0x192)]=RequestQueueHandler[a87_0x458a91(0x1fa)]();static async[a87_0x458a91(0x187)](_0x13f900,_0x6c4069){const _0x556389=a87_0x458a91,_0x573510={'YfdUu':function(_0x5838cd,_0x55342a){return _0x5838cd||_0x55342a;},'utjwH':function(_0x3cbee2,_0x1ddee2){return _0x3cbee2||_0x1ddee2;},'dwDji':function(_0xef8afb,_0x75ef16){return _0xef8afb===_0x75ef16;},'KBLcL':function(_0x5112d9,_0x153fb0){return _0x5112d9(_0x153fb0);},'BfUnb':'EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','CvalN':_0x556389(0x17c),'hMiXp':_0x556389(0x1bf),'UKElc':function(_0x54f6db,_0x258091){return _0x54f6db(_0x258091);},'GUTTa':function(_0x77f841,_0x5bdc22,_0x2fcaa7,_0x4f9c2c,_0x4261d3){return _0x77f841(_0x5bdc22,_0x2fcaa7,_0x4f9c2c,_0x4261d3);},'cvvfM':_0x556389(0x1d1),'PtNvs':'api/v1/builds','DKRgp':function(_0x5e8f60,_0x2b2f70){return _0x5e8f60(_0x2b2f70);},'DVUYr':'Build\x20creation\x20successful!','yHzPF':function(_0x106646){return _0x106646();},'BQaCw':_0x556389(0x1c6),'DRInE':'null','njvTf':_0x556389(0x1f3),'ynNLD':_0x556389(0x15f),'jWpbd':_0x556389(0x172)},_0x4fa969=bsSetupHelper[_0x556389(0x1dd)](_0x13f900),_0x6b5b5b=bsSetupHelper[_0x556389(0x1b1)](_0x13f900),_0x30516b=_0x573510[_0x556389(0x16c)](_0x4fa969,'')+':'+_0x573510[_0x556389(0x1b9)](_0x6b5b5b,'');if(_0x573510[_0x556389(0x18b)](_0x30516b,':'))return _0x573510[_0x556389(0x19a)](debug,_0x573510[_0x556389(0x1a5)]),process[_0x556389(0x19f)][_0x556389(0x1f6)]=_0x573510[_0x556389(0x163)],[null,null];let _0x5497ed=![],_0x1f60bc=![];if(_0x13f900[_0x556389(0x18a)]&&_0x13f900[_0x556389(0x16b)])_0x1f60bc=!![];else _0x13f900['browserstackAutomation']&&(_0x5497ed=!![]);try{const _0x1fb1b1={'format':_0x573510[_0x556389(0x1eb)],'project_name':_0x13f900[_0x556389(0x1f1)]||'','name':_0x13f900['buildName']||path[_0x556389(0x1d7)](path[_0x556389(0x1c2)](process[_0x556389(0x15c)]())),'build_identifier':_0x13f900[_0x556389(0x16e)],'description':_0x13f900[_0x556389(0x184)]||'','start_time':new Date()[_0x556389(0x175)](),'tags':_0x573510['KBLcL'](getCustomTags,_0x13f900),'host_info':bsSetupHelper[_0x556389(0x1d6)](),'ci_info':bsSetupHelper[_0x556389(0x1cf)](),'build_run_identifier':process['env']['BROWSERSTACK_BUILD_RUN_IDENTIFIER'],'failed_tests_rerun':process['env'][_0x556389(0x1d9)]||![],'version_control':await bsSetupHelper[_0x556389(0x17b)](),'observability_version':{'frameworkName':_0x6c4069['frameworkName'],'frameworkVersion':_0x6c4069[_0x556389(0x15b)],'sdkVersion':bsSetupHelper[_0x556389(0x156)]()},'product_map':_0x573510[_0x556389(0x1c5)](getProductMap,_0x13f900)},_0x4583ec={};_0x4583ec[_0x556389(0x150)]=_0x4fa969,_0x4583ec[_0x556389(0x1b5)]=_0x6b5b5b;const _0x551e89={'auth':_0x4583ec,'headers':_0x573510['UKElc'](getDefaultHeaders,![])},_0x58786a=await _0x573510[_0x556389(0x1ad)](nodeRequest,_0x573510[_0x556389(0x162)],_0x573510['PtNvs'],_0x1fb1b1,_0x551e89);_0x573510['DKRgp'](debug,_0x573510['DVUYr']);const _0x3ef2cc=_0x58786a[_0x556389(0x1ac)];_0x3ef2cc[_0x556389(0x159)]&&(process[_0x556389(0x19f)][_0x556389(0x176)]=_0x3ef2cc[_0x556389(0x159)]);if(_0x573510['yHzPF'](isTestObservabilitySession)){process[_0x556389(0x19f)]['BS_TESTOPS_BUILD_COMPLETED']=_0x573510[_0x556389(0x1ce)];if(_0x3ef2cc[_0x556389(0x1cd)]){process[_0x556389(0x19f)][_0x556389(0x173)]=_0x3ef2cc[_0x556389(0x1cd)];const _0x4279a0={};_0x4279a0[_0x556389(0x150)]=_0x4fa969,_0x4279a0[_0x556389(0x1b5)]=_0x6b5b5b,process[_0x556389(0x19f)][_0x556389(0x1c8)]=JSON[_0x556389(0x1aa)](_0x4279a0);}_0x3ef2cc[_0x556389(0x159)]&&(process[_0x556389(0x19f)][_0x556389(0x1e3)]=_0x3ef2cc[_0x556389(0x159)]),_0x3ef2cc[_0x556389(0x16a)]&&(process[_0x556389(0x19f)][_0x556389(0x1e0)]=_0x3ef2cc['allow_screenshots'][_0x556389(0x1bc)]());}return[_0x58786a['data'][_0x556389(0x1cd)],_0x58786a[_0x556389(0x1ac)]['build_hashed_id'],_0x58786a['data']['allow_screenshots']];}catch(_0x49313a){process[_0x556389(0x19f)][_0x556389(0x176)]=_0x573510['DRInE'],process[_0x556389(0x19f)][_0x556389(0x1f6)]=_0x573510[_0x556389(0x163)],process['env'][_0x556389(0x173)]=_0x573510['DRInE'],process[_0x556389(0x19f)][_0x556389(0x1e3)]=_0x573510[_0x556389(0x1a7)],process[_0x556389(0x19f)]['BS_TESTOPS_ALLOW_SCREENSHOTS']=_0x573510[_0x556389(0x1a7)];_0x49313a[_0x556389(0x1df)]?_0x573510[_0x556389(0x1c5)](debug,_0x556389(0x179)+_0x49313a['response']['status']+'\x20'+_0x49313a[_0x556389(0x1df)][_0x556389(0x170)]+'\x20'+JSON[_0x556389(0x1aa)](_0x49313a[_0x556389(0x1df)]['data'])):_0x573510['DKRgp'](debug,_0x556389(0x179)+(_0x49313a['message']||_0x49313a));if(_0x49313a&&_0x49313a[_0x556389(0x191)]){const _0x2c76f8=_0x49313a[_0x556389(0x191)];switch(_0x49313a[_0x556389(0x17e)]){case _0x573510[_0x556389(0x19c)]:logger['error'](_0x2c76f8);break;case _0x573510[_0x556389(0x1a0)]:logger[_0x556389(0x153)](_0x2c76f8);break;case _0x573510[_0x556389(0x1bd)]:logger[_0x556389(0x1e2)](_0x2c76f8);break;default:logger[_0x556389(0x1e2)](_0x2c76f8);}}else console[_0x556389(0x153)]('Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20'+_0x49313a);return[null,null,null];}}static async[a87_0x458a91(0x1cb)](){const _0x344c27=a87_0x458a91,_0x54b691={'gawqy':_0x344c27(0x1c6),'BucZU':'false','JvmmZ':function(_0x56f316,_0xbca5ab){return _0x56f316(_0xbca5ab);}},_0x5efe46=process[_0x344c27(0x19f)][_0x344c27(0x1f6)];if([_0x54b691['gawqy'],_0x54b691['BucZU']][_0x344c27(0x1dc)](_0x5efe46))return;while([_0x54b691[_0x344c27(0x1b8)],_0x54b691[_0x344c27(0x1f2)]][_0x344c27(0x1dc)](_0x5efe46)){await _0x54b691[_0x344c27(0x1f5)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static[a87_0x458a91(0x1f0)](_0x1ba18e){const _0x17ffb2=a87_0x458a91,_0x12245e={};_0x12245e[_0x17ffb2(0x160)]=_0x17ffb2(0x15a),_0x12245e[_0x17ffb2(0x1ed)]=_0x17ffb2(0x18e),_0x12245e['xeHmI']=_0x17ffb2(0x16f),_0x12245e[_0x17ffb2(0x174)]=_0x17ffb2(0x18d),_0x12245e['gZVGY']=_0x17ffb2(0x1fb),_0x12245e['roaKD']='Hook_End_Upload',_0x12245e[_0x17ffb2(0x1a3)]=_0x17ffb2(0x166);const _0x3cc738=_0x12245e,_0x35d88a={};return _0x35d88a[_0x17ffb2(0x1d0)]=_0x3cc738[_0x17ffb2(0x160)],_0x35d88a[_0x17ffb2(0x155)]=_0x3cc738[_0x17ffb2(0x1ed)],_0x35d88a[_0x17ffb2(0x1c7)]=_0x3cc738[_0x17ffb2(0x1e9)],_0x35d88a['LogCreated']=_0x3cc738[_0x17ffb2(0x174)],_0x35d88a['HookRunStarted']=_0x3cc738['gZVGY'],_0x35d88a['HookRunFinished']=_0x3cc738[_0x17ffb2(0x193)],_0x35d88a[_0x17ffb2(0x1d2)]=_0x3cc738[_0x17ffb2(0x1a3)],_0x35d88a[_0x1ba18e[_0x17ffb2(0x167)]];}static async[a87_0x458a91(0x1ab)](_0xa6c8f3,_0xc60b3c=0x0,_0x2ee1d0=null){const _0x297737=a87_0x458a91,_0x175ee7={'QiFQN':function(_0x7288e9,_0x255b61){return _0x7288e9===_0x255b61;},'gnBjM':_0x297737(0x1f8),'UHObI':function(_0x372831,_0x27e345){return _0x372831!==_0x27e345;},'dkHmf':_0x297737(0x1a2),'NNFeZ':_0x297737(0x1c6),'upOIr':function(_0x4792b0,_0x3f3865){return _0x4792b0===_0x3f3865;},'ckaXM':function(_0x44a8f8,_0x33c481,_0x33d70a,_0x189bb4,_0xdb6dc0){return _0x44a8f8(_0x33c481,_0x33d70a,_0x189bb4,_0xdb6dc0);},'OyaQi':_0x297737(0x1d1),'MhQfS':function(_0x454ebf,_0x3d5df8,_0x39141f,_0xe5095c,_0x32816a){return _0x454ebf(_0x3d5df8,_0x39141f,_0xe5095c,_0x32816a);},'xXhpk':function(_0x5e3f11,_0x184993){return _0x5e3f11(_0x184993);},'WaRuq':function(_0x4a02a7,_0x2941df){return _0x4a02a7!==_0x2941df;},'DHPYs':'Batch-Queue','uSwZk':function(_0x118889,_0x466e7f){return _0x118889-_0x466e7f;},'pHUUq':function(_0x30c2ae,_0x28af2f){return _0x30c2ae===_0x28af2f;},'aplsO':_0x297737(0x1f7),'qomqv':_0x297737(0x182),'MwsqG':function(_0x267b8e,_0x556b43){return _0x267b8e(_0x556b43);},'dsJaJ':function(_0x22ac86,_0x1218a6){return _0x22ac86!==_0x1218a6;},'DiIMJ':function(_0x522979,_0x49fab4){return _0x522979!==_0x49fab4;},'hvmrR':_0x297737(0x1e2)};_0x175ee7[_0x297737(0x190)](_0x2ee1d0,_0x175ee7[_0x297737(0x1b3)])&&logger[_0x297737(0x1b6)](_0x297737(0x194)+_0xa6c8f3[_0x297737(0x158)][0x0][_0x297737(0x1d4)]);const _0x199fe8=await this[_0x297737(0x1f0)](_0xa6c8f3);let _0x356fb9=_0xa6c8f3,_0x39b4a3=EVENT_ENDPOINT;_0x175ee7[_0x297737(0x1c9)](_0x2ee1d0,_0x175ee7[_0x297737(0x1b3)])&&this[_0x297737(0x192)][_0x297737(0x180)]();const {shouldProceed:_0x27a5e4,proceedWithData:_0x11d5c7,proceedWithUrl:_0xe41e83}=this[_0x297737(0x192)][_0x297737(0x1cc)](_0xa6c8f3);if(!_0x27a5e4)return;else _0x11d5c7&&(_0x356fb9=_0x11d5c7,_0x39b4a3=_0xe41e83);const _0x55c649={};_0x55c649['Authorization']=_0x297737(0x1d5)+process[_0x297737(0x19f)][_0x297737(0x189)],_0x55c649['Content-Type']=_0x175ee7[_0x297737(0x1af)],_0x55c649[_0x297737(0x1fc)]=_0x175ee7[_0x297737(0x1da)];const _0x1e93c0={};_0x1e93c0['headers']=_0x55c649;const _0x1af132=_0x1e93c0;let _0x247a19;try{_0x175ee7[_0x297737(0x1d3)](_0x2ee1d0,_0x175ee7[_0x297737(0x1b3)])?(logger['debug'](_0x297737(0x1a8)+_0xa6c8f3?.[_0x297737(0x158)][0x0]?.[_0x297737(0x1d4)]),_0x247a19=await _0x175ee7[_0x297737(0x1e7)](asyncAwaitNodeReq,_0x175ee7['OyaQi'],_0x39b4a3,_0x356fb9,_0x1af132),logger[_0x297737(0x1b6)](_0x297737(0x1a6)+_0xa6c8f3?.['logs'][0x0]?.['test_run_uuid'])):_0x247a19=await _0x175ee7[_0x297737(0x197)](nodeRequest,_0x175ee7[_0x297737(0x171)],_0x39b4a3,_0x356fb9,_0x1af132);if(_0x247a19[_0x297737(0x1ac)][_0x297737(0x1e2)]){const _0x2136d4={};_0x2136d4['message']=_0x247a19[_0x297737(0x1ac)][_0x297737(0x1e2)];throw _0x2136d4;}else{_0x175ee7['xXhpk'](debug,(_0x175ee7['WaRuq'](_0x39b4a3,this[_0x297737(0x192)][_0x297737(0x16d)])?_0x199fe8:_0x175ee7[_0x297737(0x18f)])+'['+_0xc60b3c+_0x297737(0x1f4)),this[_0x297737(0x192)][_0x297737(0x1c0)]=Math['max'](0x0,_0x175ee7['uSwZk'](this[_0x297737(0x192)]['pendingUploads'],_0x175ee7[_0x297737(0x181)](_0x39b4a3,_0x175ee7[_0x297737(0x1a1)])?0x1:_0x356fb9[_0x297737(0x1d8)]));const _0x394972={};return _0x394972[_0x297737(0x168)]=_0x175ee7[_0x297737(0x188)],_0x394972[_0x297737(0x191)]='',_0x394972;}}catch(_0x460c16){_0x460c16['response']?_0x175ee7[_0x297737(0x1e4)](debug,_0x297737(0x17f)+(_0x175ee7[_0x297737(0x1db)](_0x39b4a3,this[_0x297737(0x192)][_0x297737(0x16d)])?_0x199fe8:_0x175ee7[_0x297737(0x18f)])+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+_0x460c16[_0x297737(0x1df)][_0x297737(0x168)]+'\x20'+_0x460c16[_0x297737(0x1df)][_0x297737(0x170)]+'\x20'+util[_0x297737(0x161)](_0x460c16['response']['data'])):_0x175ee7['MwsqG'](debug,_0x297737(0x17f)+(_0x175ee7[_0x297737(0x1e6)](_0x39b4a3,this[_0x297737(0x192)]['eventUrl'])?_0x199fe8:_0x175ee7[_0x297737(0x18f)])+_0x297737(0x185)+util['format'](_0x460c16));this[_0x297737(0x192)][_0x297737(0x1c0)]=Math[_0x297737(0x1a9)](0x0,_0x175ee7[_0x297737(0x1de)](this[_0x297737(0x192)]['pendingUploads'],_0x175ee7[_0x297737(0x190)](_0x39b4a3,_0x175ee7[_0x297737(0x1a1)])?0x1:_0x356fb9[_0x297737(0x1d8)]));const _0x53f039={};return _0x53f039[_0x297737(0x168)]=_0x175ee7[_0x297737(0x183)],_0x53f039[_0x297737(0x191)]=_0x460c16[_0x297737(0x191)]||(_0x460c16[_0x297737(0x1df)]?_0x460c16[_0x297737(0x1df)]['status']+':'+_0x460c16[_0x297737(0x1df)][_0x297737(0x170)]:_0x460c16),_0x53f039;}}static async[a87_0x458a91(0x165)](_0x281a0d,_0x47a251=0x0){const _0x706641=a87_0x458a91,_0x39bdf8={'NenrE':function(_0x550ec2,_0x31d989){return _0x550ec2+_0x31d989;},'TTucO':function(_0x22949a,_0xeb4afd){return _0x22949a(_0xeb4afd);},'SAYlb':_0x706641(0x152),'cHPfw':'uuid','VMdEe':_0x706641(0x154),'FEHWK':function(_0x4d07ee,_0x13f585,_0x1c01cd){return _0x4d07ee(_0x13f585,_0x1c01cd);},'McEwn':_0x706641(0x165),'EXiis':function(_0x41b2e5,_0x55c93f){return _0x41b2e5===_0x55c93f;},'oiReH':function(_0x187e09,_0x276fe3){return _0x187e09!==_0x276fe3;},'OtnGv':_0x706641(0x178),'ksQpA':_0x706641(0x1c6),'OYPEv':function(_0x5c7c9c){return _0x5c7c9c();},'cVtlb':function(_0x4c49f4,_0x48d421){return _0x4c49f4(_0x48d421);},'FTQPb':function(_0x1a9882,_0x1c0152){return _0x1a9882-_0x1c0152;},'ZPHeh':_0x706641(0x1e2),'ZwLdP':_0x706641(0x1ee),'KSQpS':function(_0xfdb8d,_0x17cb87){return _0xfdb8d>=_0x17cb87;},'CcJNi':function(_0x26a44a,_0x5009b7){return _0x26a44a(_0x5009b7);},'REMJc':_0x706641(0x1e8),'JBWGQ':function(_0x3658d0,_0x3f5618){return _0x3658d0!==_0x3f5618;},'OxtJp':_0x706641(0x17c),'gsumy':function(_0x43199e,_0x11842b,_0x32c1cb){return _0x43199e(_0x11842b,_0x32c1cb);}},_0x2d92d8=this[_0x706641(0x1f0)](_0x281a0d);_0x39bdf8[_0x706641(0x1b4)](trace,_0x706641(0x19e)+_0x281a0d['event_type']+'\x27\x20'+(bsSetupHelper[_0x706641(0x14f)](_0x281a0d,[_0x39bdf8[_0x706641(0x1ba)],_0x39bdf8['cHPfw']])||bsSetupHelper[_0x706641(0x14f)](_0x281a0d,[_0x39bdf8[_0x706641(0x1bb)],_0x39bdf8[_0x706641(0x199)]])));if(!_0x39bdf8[_0x706641(0x195)](shouldProcessEventForTesthub,_0x281a0d[_0x706641(0x167)],_0x39bdf8[_0x706641(0x19b)]))return;_0x39bdf8['EXiis'](_0x47a251,0x0)&&process[_0x706641(0x19f)][_0x706641(0x189)]&&_0x39bdf8[_0x706641(0x15d)](process[_0x706641(0x19f)][_0x706641(0x189)],_0x39bdf8[_0x706641(0x164)])&&(this['requestQueueHandler'][_0x706641(0x1c0)]+=0x1);if(_0x39bdf8['EXiis'](process[_0x706641(0x19f)][_0x706641(0x1f6)],_0x39bdf8[_0x706641(0x18c)])||process['env']['BS_A11Y_JWT']||_0x39bdf8[_0x706641(0x1ef)](isPercyBuild)){if(_0x39bdf8['EXiis'](process[_0x706641(0x19f)][_0x706641(0x189)],_0x39bdf8['OtnGv'])){_0x39bdf8['cVtlb'](debug,_0x706641(0x17f)+_0x2d92d8+_0x706641(0x1ca)),this['requestQueueHandler'][_0x706641(0x1c0)]=Math[_0x706641(0x1a9)](0x0,_0x39bdf8[_0x706641(0x157)](this[_0x706641(0x192)]['pendingUploads'],0x1));const _0x477e33={};return _0x477e33[_0x706641(0x168)]=_0x39bdf8['ZPHeh'],_0x477e33[_0x706641(0x191)]=_0x39bdf8['ZwLdP'],_0x477e33;}return await this[_0x706641(0x1ab)](_0x281a0d,_0x47a251);}else{if(_0x39bdf8['KSQpS'](_0x47a251,0x5)){_0x39bdf8[_0x706641(0x196)](debug,_0x706641(0x17f)+_0x2d92d8+_0x706641(0x1e5)+_0x2d92d8+'\x20retry\x20runs\x20exceeded');_0x39bdf8['oiReH'](process[_0x706641(0x19f)][_0x706641(0x189)],_0x39bdf8[_0x706641(0x164)])&&(this[_0x706641(0x192)][_0x706641(0x1c0)]=Math[_0x706641(0x1a9)](0x0,_0x39bdf8[_0x706641(0x157)](this[_0x706641(0x192)][_0x706641(0x1c0)],0x1)));const _0x58bb4d={};return _0x58bb4d['status']=_0x39bdf8[_0x706641(0x169)],_0x58bb4d[_0x706641(0x191)]=_0x39bdf8[_0x706641(0x17d)],_0x58bb4d;}else _0x39bdf8[_0x706641(0x1c1)](process[_0x706641(0x19f)][_0x706641(0x1f6)],_0x39bdf8['OxtJp'])&&_0x39bdf8[_0x706641(0x1ea)](setTimeout,()=>{const _0x2b771a=_0x706641;this[_0x2b771a(0x165)](_0x281a0d,_0x39bdf8[_0x2b771a(0x1f9)](_0x47a251,0x1));},0x3e8);}}}function a87_0x8591(){const _0x39db92=['YfdUu','eventUrl','buildIdentifier','Test_Skipped_Upload','statusText','OyaQi','ERROR_SDK_DEPRECATED','BS_TESTOPS_JWT','RTueq','toISOString','BROWSERSTACK_TESTHUB_UUID','../logger','null','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','24268NETSTG','getGitMetaData','false','REMJc','errorType','EXCEPTION\x20IN\x20','start','pHUUq','success','hvmrR','buildDescription','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','333000WwWjGS','launch','qomqv','BROWSERSTACK_TESTHUB_JWT','browserstackAutomation','dwDji','ksQpA','Log_Upload','Test_End_Upload','DHPYs','QiFQN','message','requestQueueHandler','roaKD','Sending\x20trace\x20zip\x20for\x20test:\x20','FEHWK','CcJNi','MhQfS','9128966pbHKpv','cHPfw','KBLcL','McEwn','njvTf','path','Processing\x20event\x20-\x20\x27','env','ynNLD','aplsO','application/json','SYtgc','20oiKLVk','BfUnb','Trace\x20zip\x20sent\x20to\x20nodeRequest\x20for\x20test:\x20','DRInE','Sending\x20trace\x20zip\x20to\x20nodeRequest\x20for\x20test:\x20','max','stringify','sendEventData','data','GUTTa','126nRjHJX','dkHmf','./utils','getAccessKey','../../helpers/testhub/utils','gnBjM','TTucO','password','debug','10jqOOlh','gawqy','utjwH','SAYlb','VMdEe','toString','jWpbd','46644KSssgp','json','pendingUploads','JBWGQ','resolve','3442665LTpzIg','exports','UKElc','true','TestRunSkipped','CREDENTIALS_FOR_CRASH_REPORTING','UHObI','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','waitForBuildStatus','add','jwt','BQaCw','getCiInfo','TestRunStarted','POST','CBTSessionCreated','upOIr','test_run_uuid','Bearer\x20','getHostInfo','basename','length','BROWSERSTACK_RERUN','NNFeZ','dsJaJ','includes','getUserName','uSwZk','response','BS_TESTOPS_ALLOW_SCREENSHOTS','winstonLogger','error','BS_TESTOPS_BUILD_HASHED_ID','MwsqG','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','DiIMJ','ckaXM','Retry\x20runs\x20exceeded','xeHmI','gsumy','hMiXp','./constants','hpWUm','Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','OYPEv','getLogTag','projectName','BucZU','ERROR_INVALID_CREDENTIALS',']\x20event\x20successful!','JvmmZ','BS_TESTOPS_BUILD_COMPLETED','api/v1/event','sendTraceZip','NenrE','getInstance','Hook_Start_Upload','X-BSTACK-TESTOPS','145239jlRExo','nestedKeyValue','username','3941232KkjxxS','test_run','info','hook_run','TestRunFinished','getAgentVersion','FTQPb','logs','build_hashed_id','Test_Start_Upload','frameworkVersion','cwd','oiReH','497vQfEQe','ERROR_ACCESS_DENIED','Tfpbz','format','cvvfM','CvalN','OtnGv','uploadEventData','CBT_Upload','event_type','status','ZPHeh','allow_screenshots','app'];a87_0x8591=function(){return _0x39db92;};return a87_0x8591();}module[a87_0x458a91(0x1c4)]=SessionHandler;
|