browserstack-node-sdk 1.34.40 → 1.34.42
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/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createHubHaStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteEFSMountTargets.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/describeStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +2 -2
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/central-scanner/constants.js +1 -1
- package/src/helpers/central-scanner/helpers.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/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_0x46207b=a79_0x8da2;(function(_0x2542f2,_0x100c91){const _0x23a926=a79_0x8da2,_0x2d30d3=_0x2542f2();while(!![]){try{const _0x27842d=-parseInt(_0x23a926(0x1b7))/0x1+parseInt(_0x23a926(0x228))/0x2*(parseInt(_0x23a926(0x1b1))/0x3)+parseInt(_0x23a926(0x225))/0x4*(parseInt(_0x23a926(0x1e5))/0x5)+-parseInt(_0x23a926(0x202))/0x6*(parseInt(_0x23a926(0x22b))/0x7)+-parseInt(_0x23a926(0x237))/0x8*(-parseInt(_0x23a926(0x1a0))/0x9)+parseInt(_0x23a926(0x22f))/0xa*(parseInt(_0x23a926(0x1d0))/0xb)+-parseInt(_0x23a926(0x1e6))/0xc*(parseInt(_0x23a926(0x235))/0xd);if(_0x27842d===_0x100c91)break;else _0x2d30d3['push'](_0x2d30d3['shift']());}catch(_0x303748){_0x2d30d3['push'](_0x2d30d3['shift']());}}}(a79_0x460a,0x9582e));const fs=require('fs'),fsPromise=require(a79_0x46207b(0x20b)),{performance,PerformanceObserver}=require(a79_0x46207b(0x1c8)),path=require(a79_0x46207b(0x1da)),util=require(a79_0x46207b(0x1e3)),logger=require('../logger')[a79_0x46207b(0x1f8)],{getProcessId,sleep,debug,getTestName}=require(a79_0x46207b(0x1f6));class PerformanceTester{static [a79_0x46207b(0x1cf)];static [a79_0x46207b(0x19d)]=[];static [a79_0x46207b(0x23d)]=[];static [a79_0x46207b(0x208)]=[];static [a79_0x46207b(0x209)]=![];static ['jsonReportDirName']=a79_0x46207b(0x1b4);static ['jsonReportDirPath']=process[a79_0x46207b(0x1d7)][a79_0x46207b(0x1e1)]?path['join'](process[a79_0x46207b(0x1d7)][a79_0x46207b(0x1e1)],this['jsonReportDirName']):path[a79_0x46207b(0x1ec)](process[a79_0x46207b(0x1c4)](),'log',this['jsonReportDirName']);static [a79_0x46207b(0x1bb)]=process[a79_0x46207b(0x1d7)][a79_0x46207b(0x1e1)]?path[a79_0x46207b(0x1ec)](process[a79_0x46207b(0x1d7)][a79_0x46207b(0x1e1)],a79_0x46207b(0x222)):path['join'](process[a79_0x46207b(0x1c4)](),'error-report');static [a79_0x46207b(0x1eb)]=this[a79_0x46207b(0x200)]+a79_0x46207b(0x1c0)+getProcessId()+'.json';static [a79_0x46207b(0x19e)]=this['errorReportDirName']+a79_0x46207b(0x19b)+getProcessId()+a79_0x46207b(0x1ee);static [a79_0x46207b(0x1ed)]={};static [a79_0x46207b(0x1ba)]={};static[a79_0x46207b(0x1a9)](_0x58e4aa=this[a79_0x46207b(0x200)]+a79_0x46207b(0x1c0)+getProcessId()+a79_0x46207b(0x1ee),_0x433940=this[a79_0x46207b(0x1bb)]+a79_0x46207b(0x19b)+getProcessId()+'.json'){const _0x483b4e=a79_0x46207b,_0x2343a5={};_0x2343a5[_0x483b4e(0x1f9)]=function(_0x2ab0a5,_0x1a3352){return _0x2ab0a5===_0x1a3352;},_0x2343a5['lJAzi']='measure',_0x2343a5[_0x483b4e(0x1a4)]=function(_0x57eaf2,_0x1c5027){return _0x57eaf2+_0x1c5027;},_0x2343a5[_0x483b4e(0x1c2)]=_0x483b4e(0x1b6),_0x2343a5[_0x483b4e(0x211)]=_0x483b4e(0x203);const _0x16a4f3=_0x2343a5;try{!fs[_0x483b4e(0x1fb)](this[_0x483b4e(0x200)])&&fs['mkdirSync'](this[_0x483b4e(0x200)]);}catch(_0x5c188f){logger['debug'](_0x16a4f3[_0x483b4e(0x1a4)](_0x16a4f3[_0x483b4e(0x1c2)],_0x5c188f));}if(this[_0x483b4e(0x209)]||!this[_0x483b4e(0x23b)]())return;this[_0x483b4e(0x1cf)]=new PerformanceObserver(_0x503a36=>{const _0xa94281=_0x483b4e,_0x12ed77={'EsLsg':function(_0x536ee2,_0x1bc2b7){const _0x4c41b0=a79_0x8da2;return _0x16a4f3[_0x4c41b0(0x1f9)](_0x536ee2,_0x1bc2b7);},'drkYW':_0x16a4f3[_0xa94281(0x23e)]};_0x503a36[_0xa94281(0x20e)]()[_0xa94281(0x1b5)](_0x430286=>{const _0xc11894=_0xa94281;if(_0x12ed77['EsLsg'](_0x430286[_0xc11894(0x21e)],_0x12ed77['drkYW'])){let _0x45d7b1={};if(_0x430286[_0xc11894(0x1a7)])_0x45d7b1=_0x430286[_0xc11894(0x1a7)]();else for(const _0xf99288 in _0x430286){_0x45d7b1[_0xf99288]=_0x430286[_0xf99288];}this[_0xc11894(0x1ed)][_0x430286[_0xc11894(0x21f)]]&&(_0x45d7b1=Object[_0xc11894(0x1dc)](_0x45d7b1,this[_0xc11894(0x1ed)][_0x430286[_0xc11894(0x21f)]])),delete this[_0xc11894(0x1ed)][_0x430286[_0xc11894(0x21f)]],this['_measureEvents'][_0xc11894(0x241)](_0x45d7b1);}else this[_0xc11894(0x19d)][_0xc11894(0x241)](_0x430286);});});const _0x3ffc76={};_0x3ffc76[_0x483b4e(0x1be)]=!![],_0x3ffc76[_0x483b4e(0x1a3)]=[_0x16a4f3['JDZYk'],_0x16a4f3['lJAzi']],this['_observer'][_0x483b4e(0x227)](_0x3ffc76),this[_0x483b4e(0x209)]=!![],this[_0x483b4e(0x1eb)]=_0x58e4aa,this[_0x483b4e(0x19e)]=_0x433940;}static[a79_0x46207b(0x1b2)](){return performance;}static[a79_0x46207b(0x1c6)](_0x4d86e1,_0x5afd23){const _0x4e17ac=a79_0x46207b,_0x20a609={};_0x20a609['RUOng']=function(_0x29140d,_0x25121f){return _0x29140d+_0x25121f;},_0x20a609['eJGkn']=function(_0x2b1a6a,_0x32c943){return _0x2b1a6a||_0x32c943;},_0x20a609[_0x4e17ac(0x1ce)]=function(_0x2461f0,_0x41b6eb){return _0x2461f0===_0x41b6eb;};const _0x42891a=_0x20a609,_0x27a6ac={};if(!_0x4d86e1||_0x42891a[_0x4e17ac(0x1ce)](_0x4d86e1[_0x4e17ac(0x1af)],0x0))return;_0x4d86e1[_0x4e17ac(0x1ea)](_0x1a0f3d=>{const _0x33ac0e=_0x4e17ac;!_0x27a6ac[_0x1a0f3d[_0x33ac0e(0x21f)]]&&(_0x27a6ac[_0x1a0f3d[_0x33ac0e(0x21f)]]=0x0),_0x27a6ac[_0x1a0f3d['name']]+=_0x1a0f3d['duration'];});const _0x4df670=_0x5afd23[_0x4e17ac(0x1cd)]((_0x1c2689,_0x17e125)=>{const _0x1af28e=_0x4e17ac;return _0x42891a[_0x1af28e(0x215)](_0x27a6ac[_0x17e125],_0x42891a[_0x1af28e(0x1d8)](_0x1c2689,0x0));},0x0);return _0x4df670;}static async[a79_0x46207b(0x1ef)](_0x356ca5,_0xbdb48a){const _0x198d91=a79_0x46207b,_0xaa9ec1={'KUPgi':function(_0x10baf4,_0x2fc21b){return _0x10baf4+_0x2fc21b;},'BBuJb':function(_0x149d30,_0x889ba2){return _0x149d30||_0x889ba2;},'VZjJr':function(_0x341c14,_0x2dbdd6){return _0x341c14===_0x2dbdd6;},'LBVoc':function(_0xe4bfe7,_0xc41fd5){return _0xe4bfe7(_0xc41fd5);},'TecnS':function(_0x20c19c,_0xd7118d){return _0x20c19c(_0xd7118d);}};if(!_0x356ca5||_0xaa9ec1['VZjJr'](_0x356ca5[_0x198d91(0x1af)],0x0))return 0x0;const _0x2320b3=[];for(const _0x4a8ca0 of _0x356ca5){const _0x4e669e=path[_0x198d91(0x1ec)]('.',_0x4a8ca0);try{const _0x46d4af=this[_0x198d91(0x1e2)](_0x4e669e);_0x46d4af[_0x198d91(0x1ea)](_0x2837f4=>{const _0x214bd0=_0x198d91;!_0x2320b3[_0x2837f4[_0x214bd0(0x21f)]]&&(_0x2320b3[_0x2837f4[_0x214bd0(0x21f)]]=0x0),_0x2320b3[_0x2837f4[_0x214bd0(0x21f)]]+=_0x2837f4['duration'];});}catch(_0x2f149e){_0xaa9ec1[_0x198d91(0x20c)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x2f149e[_0x198d91(0x204)]());}}const _0x368b57=_0xbdb48a[_0x198d91(0x1cd)]((_0x2c31a4,_0x1de6b2)=>{const _0x35de59=_0x198d91;return _0xaa9ec1[_0x35de59(0x1f1)](_0x2320b3[_0x1de6b2],_0xaa9ec1[_0x35de59(0x224)](_0x2c31a4,0x0));},0x0);return _0xaa9ec1['TecnS'](debug,_0x198d91(0x1d9)+_0xbdb48a+'\x20for\x20all\x20processes\x20is\x20'+_0x368b57),_0x368b57;}static[a79_0x46207b(0x1e2)](_0x609093){const _0x207dce=a79_0x46207b;if(!fs[_0x207dce(0x1fb)](_0x609093))return[];return JSON[_0x207dce(0x1c7)](fs[_0x207dce(0x223)](_0x609093)[_0x207dce(0x204)]());}static async[a79_0x46207b(0x1d3)](_0x2cb211=a79_0x46207b(0x1dd),_0x24ddcd=null){const _0x3b89eb=a79_0x46207b,_0xeba1ac={'gdRvb':function(_0xe6d36a,_0xe81975){return _0xe6d36a(_0xe81975);}};if(!this[_0x3b89eb(0x209)])return;await _0xeba1ac[_0x3b89eb(0x19f)](sleep,0x1e),this['_observer'][_0x3b89eb(0x1fe)](),this[_0x3b89eb(0x209)]=![],this[_0x3b89eb(0x21b)](this[_0x3b89eb(0x19d)]);const _0x57e7cb=this[_0x3b89eb(0x23c)](this[_0x3b89eb(0x19d)]),_0x1b2e17=path[_0x3b89eb(0x1ec)](process[_0x3b89eb(0x1c4)](),_0x2cb211);fs['writeFile'](_0x1b2e17,_0x57e7cb,_0x3ef6b1=>{const _0x2204ba=_0x3b89eb;if(_0x3ef6b1){_0xeba1ac['gdRvb'](debug,_0x2204ba(0x1a5)+_0x3ef6b1['toString']());return;}_0xeba1ac['gdRvb'](debug,_0x2204ba(0x213)+_0x1b2e17);});if(_0x24ddcd)return this[_0x3b89eb(0x1c6)](this[_0x3b89eb(0x19d)],_0x24ddcd);}static[a79_0x46207b(0x23c)](_0xe051e8){const _0x2af24e=a79_0x46207b,_0x40f90d={};_0x40f90d[_0x2af24e(0x1b9)]=_0x2af24e(0x1e4),_0x40f90d[_0x2af24e(0x21a)]='<h1>Performance\x20Report</h1>',_0x40f90d[_0x2af24e(0x242)]=_0x2af24e(0x1b8),_0x40f90d[_0x2af24e(0x243)]=_0x2af24e(0x1fd);const _0x3497c4=_0x40f90d;let _0x34eba1=_0x3497c4[_0x2af24e(0x1b9)];return _0x34eba1+=_0x3497c4['KuOuO'],_0x34eba1+=_0x3497c4['mPwNH'],_0xe051e8[_0x2af24e(0x1b5)](_0x11b6ed=>{const _0x48d49e=_0x2af24e;_0x34eba1+=_0x48d49e(0x240)+_0x11b6ed[_0x48d49e(0x21f)]+_0x48d49e(0x230)+_0x11b6ed[_0x48d49e(0x22d)]+_0x48d49e(0x217);}),_0x34eba1+=_0x3497c4[_0x2af24e(0x243)],_0x34eba1;}static[a79_0x46207b(0x21b)](_0x2dd94b){const _0x50170f=a79_0x46207b;if(!this['jsonReportFileName'])return;const _0x32ec84={};_0x2dd94b[_0x50170f(0x1ea)](_0x5cb73e=>{const _0x31184a=_0x50170f;!_0x32ec84[_0x5cb73e[_0x31184a(0x21f)]]&&(_0x32ec84[_0x5cb73e['name']]=0x0),_0x32ec84[_0x5cb73e[_0x31184a(0x21f)]]+=_0x5cb73e[_0x31184a(0x22d)];});const _0x1e6653=Object[_0x50170f(0x1f0)](_0x32ec84)['map'](([_0x371193,_0x7ee44f])=>{const _0x38b49b=_0x50170f,_0x4c1aab={};return _0x4c1aab['name']=_0x371193,_0x4c1aab[_0x38b49b(0x22d)]=_0x7ee44f,_0x4c1aab;});fs[_0x50170f(0x23f)](this[_0x50170f(0x1eb)],JSON[_0x50170f(0x1cc)](_0x1e6653));}static['isEnabled'](){const _0x675142=a79_0x46207b,_0x5dca84={};_0x5dca84[_0x675142(0x1d2)]=function(_0x1def37,_0x57fb9c){return _0x1def37===_0x57fb9c;},_0x5dca84[_0x675142(0x221)]=_0x675142(0x218);const _0x3c601a=_0x5dca84;return!_0x3c601a[_0x675142(0x1d2)](process[_0x675142(0x1d7)][_0x675142(0x1ca)],_0x3c601a[_0x675142(0x221)]);}static[a79_0x46207b(0x1c1)](_0x34c427,_0x37715d,_0x1d127b=null,_0x233104={},_0x4efcaf=null){const _0x4c157d=a79_0x46207b,_0x5e3b33={'DhLwI':function(_0x2690ac,_0x1a60ef){return _0x2690ac(_0x1a60ef);},'PGCvP':function(_0x240077,_0x44ba36){return _0x240077 instanceof _0x44ba36;}};try{if(this[_0x4c157d(0x209)]&&this[_0x4c157d(0x23b)]()){let _0x58e00f=_0x34c427;_0x1d127b&&(_0x58e00f=_0x34c427+'['+JSON[_0x4c157d(0x1cc)](_0x1d127b)+']');PerformanceTester['start'](_0x58e00f),this[_0x4c157d(0x1ed)]&&(this[_0x4c157d(0x1ed)][_0x58e00f]=_0x233104);try{const _0x3c5916=_0x37715d[_0x4c157d(0x1df)](null,_0x4efcaf);if(_0x5e3b33[_0x4c157d(0x1aa)](_0x3c5916,Promise))return new Promise((_0xf2ad8b,_0xfedce)=>{const _0x483c45=_0x4c157d,_0x5a763c={'XguCk':function(_0x278c96,_0x53268d){return _0x5e3b33['DhLwI'](_0x278c96,_0x53268d);}};_0x3c5916[_0x483c45(0x220)](_0x2cc394=>{const _0x566d8f=_0x483c45;PerformanceTester[_0x566d8f(0x1ae)](_0x58e00f),_0x5a763c[_0x566d8f(0x1bc)](_0xf2ad8b,_0x2cc394);})[_0x483c45(0x214)](_0x7c1f8c=>{const _0x1602cc=_0x483c45;PerformanceTester[_0x1602cc(0x1ae)](_0x58e00f,![],util['format'](_0x7c1f8c)),_0x5e3b33[_0x1602cc(0x229)](_0xfedce,_0x7c1f8c);});});;return PerformanceTester[_0x4c157d(0x1ae)](_0x58e00f),_0x3c5916;}catch(_0x47a213){PerformanceTester[_0x4c157d(0x1ae)](_0x58e00f,![],util[_0x4c157d(0x232)](_0x47a213));throw _0x47a213;}};return _0x37715d[_0x4c157d(0x1df)](null,_0x4efcaf);}catch(_0x19f414){return _0x37715d[_0x4c157d(0x1df)](null,_0x4efcaf);}}static['measureWrapper'](_0x17257e,_0x4c8b50,_0x3763be={}){const _0x277953=a79_0x46207b,_0x32c6fa={'jHAJW':function(_0x4e7416){return _0x4e7416();}},_0x3d9804=this;return _0x3763be[_0x277953(0x1a2)]=_0x32c6fa['jHAJW'](getProcessId),_0x3763be[_0x277953(0x1cb)]=_0x32c6fa[_0x277953(0x219)](getTestName),_0x3763be[_0x277953(0x22a)]=global[_0x277953(0x1ad)]&&global[_0x277953(0x1ad)][_0x277953(0x210)],function(){const _0x2f36c2=_0x277953,_0x3c9e9a=[_0x17257e,_0x4c8b50,null,_0x3763be][_0x2f36c2(0x1d6)](arguments);return _0x3d9804[_0x2f36c2(0x1c1)][_0x2f36c2(0x1df)](_0x3d9804,_0x3c9e9a);};}static[a79_0x46207b(0x1e8)](){const _0x2a2254=a79_0x46207b,_0x4d98bc=/(^.*)\[(.*)\]$/,_0x427f4c={},_0x3d8a78={},_0x2d78b0=[],_0x164ba9=this[_0x2a2254(0x23d)][_0x2a2254(0x233)](0x0,this['_measureEvents']['length']);for(const _0xc58048 of _0x164ba9){const _0x4b67dd=_0xc58048[_0x2a2254(0x21f)][_0x2a2254(0x226)](_0x4d98bc),_0x29e1af=Object[_0x2a2254(0x1dc)]({},_0xc58048);_0x4b67dd&&(_0x29e1af[_0x2a2254(0x21f)]=_0x4b67dd[0x1],_0x29e1af[_0x2a2254(0x20f)]=JSON['parse'](_0x4b67dd[0x2])),_0x2d78b0['push'](_0x29e1af);}return _0x2d78b0;}static['pushPerfMeasures'](){const _0x4466b8=a79_0x46207b,_0x43cd73={};_0x43cd73['jTNix']=function(_0x48a28d,_0x5a8d49){return _0x48a28d+_0x5a8d49;},_0x43cd73[_0x4466b8(0x1e9)]=_0x4466b8(0x1d4),_0x43cd73[_0x4466b8(0x21c)]=function(_0x2d342e,_0x4baff0){return _0x2d342e===_0x4baff0;};const _0x322492=_0x43cd73;try{if(fs['existsSync'](this[_0x4466b8(0x200)])){const _0x34e21d=fs[_0x4466b8(0x1bd)](this[_0x4466b8(0x200)]);for(const _0x44c71c of _0x34e21d){fs[_0x4466b8(0x238)](path['join'](this[_0x4466b8(0x200)],_0x44c71c));}}}catch(_0x1a95f1){logger[_0x4466b8(0x1f3)](_0x322492[_0x4466b8(0x1e7)](_0x322492[_0x4466b8(0x1e9)],_0x1a95f1));}if(_0x322492[_0x4466b8(0x21c)](this[_0x4466b8(0x23d)][_0x4466b8(0x1af)],0x0))return;const _0xa024f6=this[_0x4466b8(0x1e8)](),_0x5a8572=JSON[_0x4466b8(0x1cc)](_0xa024f6),_0x3973a6=_0x322492[_0x4466b8(0x1e7)](_0x5a8572[_0x4466b8(0x1ab)](0x1,-0x1),',');fs[_0x4466b8(0x1a1)](this['jsonReportFileName'],_0x3973a6);}static async[a79_0x46207b(0x1c5)](){const _0x15dbae=a79_0x46207b,_0x1c53a1={};_0x1c53a1[_0x15dbae(0x1b0)]=function(_0x109b9a,_0x33a95f){return _0x109b9a===_0x33a95f;},_0x1c53a1[_0x15dbae(0x1c9)]=function(_0xfd8a3d,_0x572ecd){return _0xfd8a3d>_0x572ecd;};const _0x70c1f8=_0x1c53a1;if(!this[_0x15dbae(0x209)]||_0x70c1f8[_0x15dbae(0x1b0)](this[_0x15dbae(0x23d)]['length'],0x0))return[];if(!fs[_0x15dbae(0x1fb)](this[_0x15dbae(0x200)]))return this[_0x15dbae(0x23d)];const _0x4fd677=(await fsPromise[_0x15dbae(0x216)](this[_0x15dbae(0x200)]))[_0x15dbae(0x1ea)](_0x5b72c0=>path[_0x15dbae(0x1a6)](this[_0x15dbae(0x200)],_0x5b72c0));let _0x5d9a79=(await Promise[_0x15dbae(0x231)](_0x4fd677[_0x15dbae(0x1ea)](_0x2f851f=>fsPromise[_0x15dbae(0x206)](_0x2f851f,_0x15dbae(0x1bf)))))[_0x15dbae(0x1ea)](_0x2873bf=>'['+_0x2873bf[_0x15dbae(0x1ab)](0x0,-0x1)+']')[_0x15dbae(0x1ea)](_0x242ec7=>JSON[_0x15dbae(0x1c7)](_0x242ec7))[_0x15dbae(0x1d1)]();return _0x70c1f8[_0x15dbae(0x1c9)](this['_measureEvents'][_0x15dbae(0x1af)],0x0)&&(_0x5d9a79=_0x5d9a79['concat'](this['getCleanedPerfEvents']())),this['_observer']['disconnect'](),_0x5d9a79;}static[a79_0x46207b(0x1fa)](){const _0x7b730=a79_0x46207b,_0x418fa6={};_0x418fa6[_0x7b730(0x22c)]=function(_0x44acec,_0x7eafad){return _0x44acec===_0x7eafad;},_0x418fa6[_0x7b730(0x1ac)]=function(_0x595c2e,_0x3befd4){return _0x595c2e+_0x3befd4;};const _0x4a23b0=_0x418fa6;if(_0x4a23b0[_0x7b730(0x22c)](this['_errorEvents'][_0x7b730(0x1af)],0x0))return;const _0x4b4945=JSON[_0x7b730(0x1cc)](this[_0x7b730(0x208)]),_0x1b67cd=_0x4a23b0['SzZlg'](_0x4b4945[_0x7b730(0x1ab)](0x1,-0x1),',');fs[_0x7b730(0x1a1)](this[_0x7b730(0x1fc)],_0x1b67cd);}static[a79_0x46207b(0x22e)](){const _0x35dbfc=a79_0x46207b,_0x420e89={};_0x420e89[_0x35dbfc(0x201)]=function(_0x1339ae,_0x1a029d){return _0x1339ae>_0x1a029d;};const _0x28475c=_0x420e89;if(!fs['existsSync'](this[_0x35dbfc(0x19e)]))return this[_0x35dbfc(0x208)];let _0x522b5b=fs['readFileSync'](this[_0x35dbfc(0x19e)])[_0x35dbfc(0x204)]();_0x522b5b='['+_0x522b5b[_0x35dbfc(0x1ab)](0x0,-0x1)+']';let _0x584bc9=JSON[_0x35dbfc(0x1c7)](_0x522b5b);return _0x28475c[_0x35dbfc(0x201)](this[_0x35dbfc(0x208)][_0x35dbfc(0x1af)],0x0)&&(_0x584bc9=_0x584bc9['concat'](this[_0x35dbfc(0x208)])),fs[_0x35dbfc(0x238)](this[_0x35dbfc(0x19e)]),_0x584bc9;}static[a79_0x46207b(0x205)](_0xec183){const _0x28dc08=a79_0x46207b;if(!this['isEnabled']())return;this[_0x28dc08(0x208)][_0x28dc08(0x241)]({'message':_0xec183[_0x28dc08(0x212)],'trace':_0xec183['stack'],'code':_0xec183[_0x28dc08(0x23a)]||null,'time':new Date()});}static[a79_0x46207b(0x1a8)](){const _0x15df4e=a79_0x46207b;try{if(!this[_0x15df4e(0x23b)]())return;this[_0x15df4e(0x1cf)][_0x15df4e(0x1fe)](),this['pushPerfMeasures'](),this[_0x15df4e(0x1fa)]();}catch(_0x42cc37){logger[_0x15df4e(0x1f3)](_0x15df4e(0x20d)+util[_0x15df4e(0x232)](_0x42cc37));}}static async[a79_0x46207b(0x1c3)](){const _0x56524a=a79_0x46207b,_0x16b5d5={'yykUY':function(_0x4fcd17,_0x5806c4){return _0x4fcd17(_0x5806c4);}};await _0x16b5d5[_0x56524a(0x207)](sleep,0x1e);const _0x594554=await this['finalizePerfMeasures'](),_0x5c952d=this[_0x56524a(0x22e)]();if(!this[_0x56524a(0x23b)]()){const _0x266bd0={};return _0x266bd0['measures']=[],_0x266bd0['errors']=[],_0x266bd0;}const _0x44cac9={};return _0x44cac9[_0x56524a(0x19c)]=_0x594554,_0x44cac9[_0x56524a(0x1f2)]=_0x5c952d,_0x44cac9;}static[a79_0x46207b(0x1f5)](_0x49daae){const _0x56b6fd=a79_0x46207b,_0x30e6ec={};_0x30e6ec[_0x56b6fd(0x236)]=function(_0x459346,_0x506574){return _0x459346+_0x506574;},_0x30e6ec[_0x56b6fd(0x1d5)]=_0x56b6fd(0x1e0);const _0x524264=_0x30e6ec,_0x339755=_0x524264[_0x56b6fd(0x236)](_0x49daae,_0x524264[_0x56b6fd(0x1d5)]);if(this['eventsMap'][_0x339755])return;performance['mark'](_0x339755),this[_0x56b6fd(0x1ba)][_0x339755]=0x1;}static['end'](_0x43a49b,_0x5eed6f=!![],_0x346368=null,_0x49f0ea={}){const _0x503165=a79_0x46207b,_0x58920e={'taXlh':function(_0x202b2c,_0x18fc75){return _0x202b2c+_0x18fc75;},'RZMWg':_0x503165(0x239),'VAIWL':function(_0x394d9f,_0x164015){return _0x394d9f+_0x164015;},'kilWf':'-start','iCQNy':function(_0x1c979c){return _0x1c979c();}};performance[_0x503165(0x1b3)](_0x58920e[_0x503165(0x1f7)](_0x43a49b,_0x58920e['RZMWg'])),performance['measure'](_0x43a49b,_0x58920e[_0x503165(0x21d)](_0x43a49b,_0x58920e[_0x503165(0x234)]),_0x58920e['taXlh'](_0x43a49b,_0x58920e[_0x503165(0x1de)]));const _0x52d2fd={};_0x52d2fd[_0x503165(0x1ff)]=_0x5eed6f,_0x52d2fd[_0x503165(0x1db)]=_0x346368,this['details'][_0x43a49b]=Object[_0x503165(0x1dc)](_0x52d2fd,Object[_0x503165(0x1dc)](Object[_0x503165(0x1dc)]({'worker':_0x58920e[_0x503165(0x20a)](getProcessId),'platform':global['__platformCaps']&&global[_0x503165(0x1ad)][_0x503165(0x210)],'testName':_0x58920e[_0x503165(0x20a)](getTestName)},_0x49f0ea),this[_0x503165(0x1ed)][_0x43a49b]||{}));}}function a79_0x460a(){const _0x49cb09=['captureError','readFile','yykUY','_errorEvents','started','iCQNy','fs/promises','LBVoc','Error\x20stopping\x20monitoring\x20','getEntries','meta','index','JDZYk','message','Performance\x20report\x20is\x20at\x20','catch','RUOng','readdir','</td></tr>','false','jHAJW','KuOuO','generateJSON','VvYqh','VAIWL','entryType','name','then','iswRF','error-report','readFileSync','BBuJb','236GMFScU','match','observe','140EDJrIf','DhLwI','platform','98akaKnd','dtDJu','duration','finalizeErrors','437770bSidGj','</td><td>','all','format','splice','kilWf','52ascssX','wYSAi','2712aUDyYj','unlinkSync','-end','code','isEnabled','generateHTMLReport','_measureEvents','lJAzi','writeFileSync','<tr><td>','push','mPwNH','CWGIZ','/error-report-','measures','_events','errorReportFileName','gdRvb','18135rOiXfg','appendFileSync','worker','entryTypes','kYTOG','Error\x20in\x20writing\x20html\x20','resolve','toJSON','stopMonitoring','startMonitoring','PGCvP','slice','SzZlg','__platformCaps','end','length','EFkXn','26487VUxCoW','getPerformance','mark','performance-report','forEach','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','97028kSYZNa','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','ENWAA','eventsMap','errorReportDirName','XguCk','readdirSync','buffered','utf-8','/performance-report-','measure','kuOAg','finalize','cwd','finalizePerfMeasures','calculateTimeFromEvents','parse','perf_hooks','dNssT','BROWSERSTACK_SDK_INSTRUMENTATION','testName','stringify','reduce','JKGqp','_observer','253HoykDv','flat','isyHx','stopAndGenerate','Error\x20while\x20removing\x20files:\x20','kOVkq','concat','env','eJGkn','Time\x20for\x20','path','failure','assign','performance-own.html','RZMWg','apply','-start','browserStackCwd','getEventsFromJSON','util','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','4870whRxsb','4195404chMFan','jTNix','getCleanedPerfEvents','qtMcj','map','jsonReportFileName','join','details','.json','calculateTimesFromMultipleFiles','entries','KUPgi','errors','debug','exports','start','../processHelper','taXlh','winstonLogger','iBefS','pushErrors','existsSync','errorFile','</tbody></table></body></html>','disconnect','success','jsonReportDirPath','yKTDZ','110382BKvvFF','function','toString'];a79_0x460a=function(){return _0x49cb09;};return a79_0x460a();}function a79_0x8da2(_0x4f7b17,_0x536fb3){const _0x460a4e=a79_0x460a();return a79_0x8da2=function(_0x8da252,_0x274aea){_0x8da252=_0x8da252-0x19b;let _0x5fda76=_0x460a4e[_0x8da252];return _0x5fda76;},a79_0x8da2(_0x4f7b17,_0x536fb3);}module[a79_0x46207b(0x1f4)]=PerformanceTester;
|
|
1
|
+
const a79_0x140779=a79_0x478f;function a79_0x2f27(){const _0x50156a=['599599nSyHgs','worker','captureError','SANTG','vGKeU','jsonReportDirPath','browserStackCwd','duration','lSHYF','flat','concat','unlinkSync','getEntries','oAlPe','map','readdirSync','</tbody></table></body></html>','message','IztaO','readdir','\x20for\x20all\x20processes\x20is\x20','CDYJw','toString','pDcyh','ItIde','6XYhrwZ','grtlH','start','</td></tr>','NNaVn','match','entryTypes','join','_errorEvents','OVPay','Time\x20for\x20','bacCj','env','OTAHx','PKqPr','performance-own.html','resolve','errors','debug','details','HJeCQ','oEFCx','splice','readFileSync','calculateTimesFromMultipleFiles','Error\x20in\x20writing\x20html\x20','NWesr','1799190evgNVT','performance-report','appendFileSync','stringify','</td><td>','-end','existsSync','eventsMap','DrvOp','mkdirSync','_events','Error\x20while\x20removing\x20files:\x20','jsonReportDirName','assign','platform','__platformCaps','stopMonitoring','apply','isEnabled','ELIEw','measureWrapper','push','jFrUI','1516TrsvQP','fs/promises','getPerformance','generateJSON','_measureEvents','OyFsJ','7041AevDLB','../processHelper','lIgmP','calculateTimeFromEvents','measures','iPqUW','pushErrors','winstonLogger','path','name','finalizeErrors','.json','jsonReportFileName','eaHlD','index','pFLFF','false','HTvcb','FKIbb','Error\x20in\x20creating\x20performance\x20reports\x20directory:\x20','pushPerfMeasures','buffered','eDNaA','buLmG','parse','DLoUD','forEach','376DgMrAx','measure','disconnect','errorReportDirName','started','observe','util','code','mark','_observer','1218995uLAsHp','OHXHI','slice','getEventsFromJSON','ljgVG','pFJMR','GuczZ','length','errorReportFileName','../logger','EWURl','lTNtw','XMVpF','2282632sZsjlg','Performance\x20report\x20is\x20at\x20','IbQaV','/performance-report-','ufmiX','cwd','reduce','QuskW','/error-report-','error-report','utf-8','format','log','all','lzREq','stack','meta','15YqnDjI','finalizePerfMeasures','-start','errorFile','getCleanedPerfEvents','generateHTMLReport','xhhfO','writeFileSync','1463310GAGDOT','end','function','startMonitoring','writeFile','toJSON','then','nLhFp'];a79_0x2f27=function(){return _0x50156a;};return a79_0x2f27();}(function(_0x46336f,_0x23db41){const _0x41e7b9=a79_0x478f,_0x9bd82e=_0x46336f();while(!![]){try{const _0x392e21=-parseInt(_0x41e7b9(0x120))/0x1*(-parseInt(_0x41e7b9(0xd7))/0x2)+parseInt(_0x41e7b9(0xdd))/0x3*(-parseInt(_0x41e7b9(0xf8))/0x4)+parseInt(_0x41e7b9(0x102))/0x5+-parseInt(_0x41e7b9(0xa5))/0x6*(-parseInt(_0x41e7b9(0x8c))/0x7)+-parseInt(_0x41e7b9(0x10f))/0x8+parseInt(_0x41e7b9(0x84))/0x9+parseInt(_0x41e7b9(0xc0))/0xa;if(_0x392e21===_0x23db41)break;else _0x9bd82e['push'](_0x9bd82e['shift']());}catch(_0x36127b){_0x9bd82e['push'](_0x9bd82e['shift']());}}}(a79_0x2f27,0x2b4ec));const fs=require('fs'),fsPromise=require(a79_0x140779(0xd8)),{performance,PerformanceObserver}=require('perf_hooks'),path=require(a79_0x140779(0xe5)),util=require(a79_0x140779(0xfe)),logger=require(a79_0x140779(0x10b))[a79_0x140779(0xe4)],{getProcessId,sleep,debug,getTestName}=require(a79_0x140779(0xde));class PerformanceTester{static [a79_0x140779(0x101)];static [a79_0x140779(0xca)]=[];static [a79_0x140779(0xdb)]=[];static [a79_0x140779(0xad)]=[];static [a79_0x140779(0xfc)]=![];static ['jsonReportDirName']=a79_0x140779(0xc1);static [a79_0x140779(0x91)]=process[a79_0x140779(0xb1)][a79_0x140779(0x92)]?path[a79_0x140779(0xac)](process[a79_0x140779(0xb1)][a79_0x140779(0x92)],this[a79_0x140779(0xcc)]):path[a79_0x140779(0xac)](process['cwd'](),a79_0x140779(0x11b),this[a79_0x140779(0xcc)]);static [a79_0x140779(0xfb)]=process[a79_0x140779(0xb1)][a79_0x140779(0x92)]?path[a79_0x140779(0xac)](process[a79_0x140779(0xb1)]['browserStackCwd'],a79_0x140779(0x118)):path['join'](process[a79_0x140779(0x114)](),a79_0x140779(0x118));static [a79_0x140779(0xe9)]=this[a79_0x140779(0x91)]+a79_0x140779(0x112)+getProcessId()+a79_0x140779(0xe8);static [a79_0x140779(0x10a)]=this[a79_0x140779(0xfb)]+'/error-report-'+getProcessId()+a79_0x140779(0xe8);static [a79_0x140779(0xb8)]={};static [a79_0x140779(0xc7)]={};static[a79_0x140779(0x87)](_0x1e3624=this['jsonReportDirPath']+a79_0x140779(0x112)+getProcessId()+'.json',_0xd9d5a9=this[a79_0x140779(0xfb)]+a79_0x140779(0x117)+getProcessId()+a79_0x140779(0xe8)){const _0x2276bc=a79_0x140779,_0x1d455c={};_0x1d455c[_0x2276bc(0x99)]=function(_0x570a31,_0x4c7427){return _0x570a31===_0x4c7427;},_0x1d455c[_0x2276bc(0x10d)]=_0x2276bc(0xf9),_0x1d455c[_0x2276bc(0x111)]=function(_0x2eccfc,_0x43575a){return _0x2eccfc+_0x43575a;},_0x1d455c['OVPay']=_0x2276bc(0xf0),_0x1d455c[_0x2276bc(0xba)]=_0x2276bc(0x86);const _0x10acde=_0x1d455c;try{!fs[_0x2276bc(0xc6)](this[_0x2276bc(0x91)])&&fs[_0x2276bc(0xc9)](this[_0x2276bc(0x91)]);}catch(_0x4c3ce3){logger['debug'](_0x10acde['IbQaV'](_0x10acde[_0x2276bc(0xae)],_0x4c3ce3));}if(this[_0x2276bc(0xfc)]||!this[_0x2276bc(0xd2)]())return;this[_0x2276bc(0x101)]=new PerformanceObserver(_0x4856fe=>{const _0x2e921c=_0x2276bc;_0x4856fe[_0x2e921c(0x98)]()['forEach'](_0x50b7b5=>{const _0x45b26a=_0x2e921c;if(_0x10acde[_0x45b26a(0x99)](_0x50b7b5['entryType'],_0x10acde[_0x45b26a(0x10d)])){let _0x4f8d76={};if(_0x50b7b5[_0x45b26a(0x89)])_0x4f8d76=_0x50b7b5[_0x45b26a(0x89)]();else for(const _0x2d2539 in _0x50b7b5){_0x4f8d76[_0x2d2539]=_0x50b7b5[_0x2d2539];}this[_0x45b26a(0xb8)][_0x50b7b5['name']]&&(_0x4f8d76=Object[_0x45b26a(0xcd)](_0x4f8d76,this['details'][_0x50b7b5['name']])),delete this[_0x45b26a(0xb8)][_0x50b7b5[_0x45b26a(0xe6)]],this[_0x45b26a(0xdb)][_0x45b26a(0xd5)](_0x4f8d76);}else this[_0x45b26a(0xca)][_0x45b26a(0xd5)](_0x50b7b5);});});const _0x3a909b={};_0x3a909b[_0x2276bc(0xf2)]=!![],_0x3a909b[_0x2276bc(0xab)]=[_0x10acde[_0x2276bc(0xba)],_0x10acde[_0x2276bc(0x10d)]],this[_0x2276bc(0x101)][_0x2276bc(0xfd)](_0x3a909b),this[_0x2276bc(0xfc)]=!![],this['jsonReportFileName']=_0x1e3624,this[_0x2276bc(0x10a)]=_0xd9d5a9;}static[a79_0x140779(0xd9)](){return performance;}static[a79_0x140779(0xe0)](_0x320e59,_0x13bb21){const _0x336e7f=a79_0x140779,_0x2b24cf={};_0x2b24cf['NNaVn']=function(_0x403cb4,_0x2caf2f){return _0x403cb4+_0x2caf2f;},_0x2b24cf['HJeCQ']=function(_0x26de10,_0x27bf21){return _0x26de10||_0x27bf21;},_0x2b24cf[_0x336e7f(0xc8)]=function(_0x27c755,_0x424eb6){return _0x27c755===_0x424eb6;};const _0x131b1f=_0x2b24cf,_0x48c543={};if(!_0x320e59||_0x131b1f[_0x336e7f(0xc8)](_0x320e59['length'],0x0))return;_0x320e59['map'](_0x259124=>{const _0x52ddaa=_0x336e7f;!_0x48c543[_0x259124[_0x52ddaa(0xe6)]]&&(_0x48c543[_0x259124[_0x52ddaa(0xe6)]]=0x0),_0x48c543[_0x259124[_0x52ddaa(0xe6)]]+=_0x259124[_0x52ddaa(0x93)];});const _0x369f5a=_0x13bb21['reduce']((_0x264e4e,_0x1b947f)=>{const _0x41fcc9=_0x336e7f;return _0x131b1f[_0x41fcc9(0xa9)](_0x48c543[_0x1b947f],_0x131b1f[_0x41fcc9(0xb9)](_0x264e4e,0x0));},0x0);return _0x369f5a;}static async[a79_0x140779(0xbd)](_0x225fb5,_0x20c5f6){const _0x42540e=a79_0x140779,_0x2f2eab={'grtlH':function(_0xe62004,_0x399fd7){return _0xe62004+_0x399fd7;},'QuskW':function(_0x6a31e8,_0x418b9e){return _0x6a31e8||_0x418b9e;},'DLoUD':function(_0x4f72ae,_0x56ecdc){return _0x4f72ae===_0x56ecdc;},'OyFsJ':function(_0x42e7d5,_0x5efce9){return _0x42e7d5(_0x5efce9);}};if(!_0x225fb5||_0x2f2eab[_0x42540e(0xf6)](_0x225fb5['length'],0x0))return 0x0;const _0x16e7ed=[];for(const _0x2a2235 of _0x225fb5){const _0x514583=path['join']('.',_0x2a2235);try{const _0x5e1e75=this[_0x42540e(0x105)](_0x514583);_0x5e1e75['map'](_0x163e82=>{const _0x8a32f4=_0x42540e;!_0x16e7ed[_0x163e82[_0x8a32f4(0xe6)]]&&(_0x16e7ed[_0x163e82[_0x8a32f4(0xe6)]]=0x0),_0x16e7ed[_0x163e82['name']]+=_0x163e82[_0x8a32f4(0x93)];});}catch(_0x212c07){_0x2f2eab[_0x42540e(0xdc)](debug,'Error\x20in\x20doing\x20csv\x20operations:\x20'+_0x212c07['toString']());}}const _0x203b5c=_0x20c5f6[_0x42540e(0x115)]((_0x1279d3,_0x3e2bf2)=>{const _0x541790=_0x42540e;return _0x2f2eab[_0x541790(0xa6)](_0x16e7ed[_0x3e2bf2],_0x2f2eab[_0x541790(0x116)](_0x1279d3,0x0));},0x0);return _0x2f2eab['OyFsJ'](debug,_0x42540e(0xaf)+_0x20c5f6+_0x42540e(0xa0)+_0x203b5c),_0x203b5c;}static[a79_0x140779(0x105)](_0x51828e){const _0x1938f9=a79_0x140779;if(!fs[_0x1938f9(0xc6)](_0x51828e))return[];return JSON['parse'](fs[_0x1938f9(0xbc)](_0x51828e)[_0x1938f9(0xa2)]());}static async['stopAndGenerate'](_0x33165a=a79_0x140779(0xb4),_0x3f6723=null){const _0x169a49=a79_0x140779,_0x57cd46={'PKqPr':function(_0x40c353,_0x4d2007){return _0x40c353(_0x4d2007);},'vGKeU':function(_0x4276c4,_0x2944b7){return _0x4276c4(_0x2944b7);},'XMVpF':function(_0x5e1ac3,_0xe5eb4c){return _0x5e1ac3(_0xe5eb4c);}};if(!this[_0x169a49(0xfc)])return;await _0x57cd46[_0x169a49(0x10e)](sleep,0x1e),this[_0x169a49(0x101)][_0x169a49(0xfa)](),this['started']=![],this['generateJSON'](this[_0x169a49(0xca)]);const _0x245c49=this[_0x169a49(0x125)](this[_0x169a49(0xca)]),_0x48e7c4=path[_0x169a49(0xac)](process[_0x169a49(0x114)](),_0x33165a);fs[_0x169a49(0x88)](_0x48e7c4,_0x245c49,_0x1d04fd=>{const _0x5be4ce=_0x169a49;if(_0x1d04fd){_0x57cd46[_0x5be4ce(0xb3)](debug,_0x5be4ce(0xbe)+_0x1d04fd[_0x5be4ce(0xa2)]());return;}_0x57cd46[_0x5be4ce(0x90)](debug,_0x5be4ce(0x110)+_0x48e7c4);});if(_0x3f6723)return this['calculateTimeFromEvents'](this[_0x169a49(0xca)],_0x3f6723);}static[a79_0x140779(0x125)](_0x64091d){const _0x4882ea=a79_0x140779,_0xfdab9d={};_0xfdab9d[_0x4882ea(0x94)]='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0xfdab9d['xhhfO']='<h1>Performance\x20Report</h1>',_0xfdab9d[_0x4882ea(0x113)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0xfdab9d[_0x4882ea(0xa4)]=_0x4882ea(0x9c);const _0x523d03=_0xfdab9d;let _0x4b77f7=_0x523d03[_0x4882ea(0x94)];return _0x4b77f7+=_0x523d03[_0x4882ea(0x126)],_0x4b77f7+=_0x523d03[_0x4882ea(0x113)],_0x64091d[_0x4882ea(0xf7)](_0x5d7c26=>{const _0x38a2b5=_0x4882ea;_0x4b77f7+='<tr><td>'+_0x5d7c26[_0x38a2b5(0xe6)]+_0x38a2b5(0xc4)+_0x5d7c26[_0x38a2b5(0x93)]+_0x38a2b5(0xa8);}),_0x4b77f7+=_0x523d03[_0x4882ea(0xa4)],_0x4b77f7;}static[a79_0x140779(0xda)](_0xbf1449){const _0xa46ba3=a79_0x140779;if(!this[_0xa46ba3(0xe9)])return;const _0x33e6aa={};_0xbf1449['map'](_0x53d0eb=>{const _0xb12306=_0xa46ba3;!_0x33e6aa[_0x53d0eb['name']]&&(_0x33e6aa[_0x53d0eb[_0xb12306(0xe6)]]=0x0),_0x33e6aa[_0x53d0eb[_0xb12306(0xe6)]]+=_0x53d0eb[_0xb12306(0x93)];});const _0x94e8f8=Object['entries'](_0x33e6aa)[_0xa46ba3(0x9a)](([_0x326ba6,_0x1aa9ee])=>{const _0x2d839c=_0xa46ba3,_0x1d82e1={};return _0x1d82e1[_0x2d839c(0xe6)]=_0x326ba6,_0x1d82e1[_0x2d839c(0x93)]=_0x1aa9ee,_0x1d82e1;});fs[_0xa46ba3(0x83)](this['jsonReportFileName'],JSON['stringify'](_0x94e8f8));}static['isEnabled'](){const _0x474e1f=a79_0x140779,_0xaf3278={};_0xaf3278[_0x474e1f(0x9e)]=function(_0x53cabf,_0x4ad010){return _0x53cabf===_0x4ad010;},_0xaf3278[_0x474e1f(0xdf)]=_0x474e1f(0xed);const _0x2d71f0=_0xaf3278;return!_0x2d71f0[_0x474e1f(0x9e)](process[_0x474e1f(0xb1)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x2d71f0[_0x474e1f(0xdf)]);}static[a79_0x140779(0xf9)](_0x3ae7ae,_0x1302b4,_0x57cf2e=null,_0x5bfd74={},_0x59d7d4=null){const _0x22db19=a79_0x140779,_0x3d48f0={'pFLFF':function(_0x16fae8,_0x3648bf){return _0x16fae8(_0x3648bf);},'pDcyh':function(_0x54604e,_0x4f21ae){return _0x54604e instanceof _0x4f21ae;}};try{if(this[_0x22db19(0xfc)]&&this['isEnabled']()){let _0x27599c=_0x3ae7ae;_0x57cf2e&&(_0x27599c=_0x3ae7ae+'['+JSON[_0x22db19(0xc3)](_0x57cf2e)+']');PerformanceTester[_0x22db19(0xa7)](_0x27599c),this['details']&&(this[_0x22db19(0xb8)][_0x27599c]=_0x5bfd74);try{const _0x2a7bde=_0x1302b4[_0x22db19(0xd1)](null,_0x59d7d4);if(_0x3d48f0[_0x22db19(0xa3)](_0x2a7bde,Promise))return new Promise((_0x4b99ce,_0x20b9e6)=>{const _0x53eace=_0x22db19,_0x5d1665={'bacCj':function(_0x46c692,_0x40a422){const _0x111a6e=a79_0x478f;return _0x3d48f0[_0x111a6e(0xec)](_0x46c692,_0x40a422);}};_0x2a7bde[_0x53eace(0x8a)](_0x6931c2=>{const _0x1670d4=_0x53eace;PerformanceTester[_0x1670d4(0x85)](_0x27599c),_0x5d1665[_0x1670d4(0xb0)](_0x4b99ce,_0x6931c2);})['catch'](_0xf7d211=>{const _0x5acb7d=_0x53eace;PerformanceTester[_0x5acb7d(0x85)](_0x27599c,![],util[_0x5acb7d(0x11a)](_0xf7d211)),_0x5d1665[_0x5acb7d(0xb0)](_0x20b9e6,_0xf7d211);});});;return PerformanceTester[_0x22db19(0x85)](_0x27599c),_0x2a7bde;}catch(_0x3abc2f){PerformanceTester[_0x22db19(0x85)](_0x27599c,![],util['format'](_0x3abc2f));throw _0x3abc2f;}};return _0x1302b4['apply'](null,_0x59d7d4);}catch(_0x50f256){return _0x1302b4[_0x22db19(0xd1)](null,_0x59d7d4);}}static[a79_0x140779(0xd4)](_0x489199,_0x3de061,_0x4b8c51={}){const _0x5ead4d=a79_0x140779,_0x20bfa9={'CDYJw':function(_0x18f57d){return _0x18f57d();}},_0x385bf7=this;return _0x4b8c51[_0x5ead4d(0x8d)]=_0x20bfa9[_0x5ead4d(0xa1)](getProcessId),_0x4b8c51['testName']=_0x20bfa9[_0x5ead4d(0xa1)](getTestName),_0x4b8c51[_0x5ead4d(0xce)]=global[_0x5ead4d(0xcf)]&&global[_0x5ead4d(0xcf)][_0x5ead4d(0xeb)],function(){const _0x334e69=_0x5ead4d,_0x4cff8b=[_0x489199,_0x3de061,null,_0x4b8c51]['concat'](arguments);return _0x385bf7[_0x334e69(0xf9)][_0x334e69(0xd1)](_0x385bf7,_0x4cff8b);};}static['getCleanedPerfEvents'](){const _0x4d7380=a79_0x140779,_0x35fada=/(^.*)\[(.*)\]$/,_0x4b4ae0={},_0x5e5e26={},_0x4feabd=[],_0x4e21bf=this[_0x4d7380(0xdb)][_0x4d7380(0xbb)](0x0,this[_0x4d7380(0xdb)][_0x4d7380(0x109)]);for(const _0x5956fe of _0x4e21bf){const _0x4f90f2=_0x5956fe[_0x4d7380(0xe6)][_0x4d7380(0xaa)](_0x35fada),_0xfc01a6=Object[_0x4d7380(0xcd)]({},_0x5956fe);_0x4f90f2&&(_0xfc01a6['name']=_0x4f90f2[0x1],_0xfc01a6[_0x4d7380(0x11f)]=JSON[_0x4d7380(0xf5)](_0x4f90f2[0x2])),_0x4feabd[_0x4d7380(0xd5)](_0xfc01a6);}return _0x4feabd;}static[a79_0x140779(0xf1)](){const _0x30a052=a79_0x140779,_0x2fae4a={};_0x2fae4a['NWesr']=function(_0x5840df,_0x498994){return _0x5840df+_0x498994;},_0x2fae4a['eDNaA']=_0x30a052(0xcb),_0x2fae4a[_0x30a052(0xd3)]=function(_0x4a3bee,_0x2d7d73){return _0x4a3bee===_0x2d7d73;},_0x2fae4a[_0x30a052(0x8b)]=function(_0x45b977,_0xbe5c09){return _0x45b977+_0xbe5c09;};const _0x361a1b=_0x2fae4a;try{if(fs[_0x30a052(0xc6)](this[_0x30a052(0x91)])){const _0x5cf26b=fs[_0x30a052(0x9b)](this['jsonReportDirPath']);for(const _0x299d28 of _0x5cf26b){fs[_0x30a052(0x97)](path[_0x30a052(0xac)](this[_0x30a052(0x91)],_0x299d28));}}}catch(_0x4b784a){logger[_0x30a052(0xb7)](_0x361a1b[_0x30a052(0xbf)](_0x361a1b[_0x30a052(0xf3)],_0x4b784a));}if(_0x361a1b[_0x30a052(0xd3)](this[_0x30a052(0xdb)][_0x30a052(0x109)],0x0))return;const _0x266c4d=this[_0x30a052(0x124)](),_0x58284f=JSON['stringify'](_0x266c4d),_0x1676ca=_0x361a1b['nLhFp'](_0x58284f[_0x30a052(0x104)](0x1,-0x1),',');fs[_0x30a052(0xc2)](this[_0x30a052(0xe9)],_0x1676ca);}static async[a79_0x140779(0x121)](){const _0x35f098=a79_0x140779,_0x1f5b44={};_0x1f5b44[_0x35f098(0xea)]=function(_0x478007,_0x56ca71){return _0x478007===_0x56ca71;},_0x1f5b44['FKIbb']=function(_0x482281,_0x863f4e){return _0x482281>_0x863f4e;};const _0x555c82=_0x1f5b44;if(!this[_0x35f098(0xfc)]||_0x555c82[_0x35f098(0xea)](this['_measureEvents'][_0x35f098(0x109)],0x0))return[];if(!fs[_0x35f098(0xc6)](this[_0x35f098(0x91)]))return this[_0x35f098(0xdb)];const _0x4b457e=(await fsPromise[_0x35f098(0x9f)](this['jsonReportDirPath']))[_0x35f098(0x9a)](_0x1406e7=>path[_0x35f098(0xb5)](this[_0x35f098(0x91)],_0x1406e7));let _0x422426=(await Promise[_0x35f098(0x11c)](_0x4b457e[_0x35f098(0x9a)](_0x44d9d1=>fsPromise['readFile'](_0x44d9d1,_0x35f098(0x119)))))[_0x35f098(0x9a)](_0x1dc29d=>'['+_0x1dc29d['slice'](0x0,-0x1)+']')[_0x35f098(0x9a)](_0x48ed84=>JSON[_0x35f098(0xf5)](_0x48ed84))[_0x35f098(0x95)]();return _0x555c82[_0x35f098(0xef)](this[_0x35f098(0xdb)][_0x35f098(0x109)],0x0)&&(_0x422426=_0x422426[_0x35f098(0x96)](this[_0x35f098(0x124)]())),this['_observer'][_0x35f098(0xfa)](),_0x422426;}static[a79_0x140779(0xe3)](){const _0x30e9ff=a79_0x140779,_0x454790={};_0x454790[_0x30e9ff(0x8f)]=function(_0x228f7c,_0x636468){return _0x228f7c===_0x636468;},_0x454790[_0x30e9ff(0xee)]=function(_0x5d0b8f,_0x931a6d){return _0x5d0b8f+_0x931a6d;};const _0x1b6faa=_0x454790;if(_0x1b6faa[_0x30e9ff(0x8f)](this['_errorEvents'][_0x30e9ff(0x109)],0x0))return;const _0x577319=JSON[_0x30e9ff(0xc3)](this['_errorEvents']),_0x4bf8af=_0x1b6faa[_0x30e9ff(0xee)](_0x577319[_0x30e9ff(0x104)](0x1,-0x1),',');fs[_0x30e9ff(0xc2)](this[_0x30e9ff(0x123)],_0x4bf8af);}static[a79_0x140779(0xe7)](){const _0x229a7e=a79_0x140779,_0x5a8808={};_0x5a8808[_0x229a7e(0x108)]=function(_0x2b7f58,_0x841f8d){return _0x2b7f58>_0x841f8d;};const _0x5cb30e=_0x5a8808;if(!fs[_0x229a7e(0xc6)](this[_0x229a7e(0x10a)]))return this['_errorEvents'];let _0x35e110=fs[_0x229a7e(0xbc)](this[_0x229a7e(0x10a)])[_0x229a7e(0xa2)]();_0x35e110='['+_0x35e110[_0x229a7e(0x104)](0x0,-0x1)+']';let _0x66f82d=JSON[_0x229a7e(0xf5)](_0x35e110);return _0x5cb30e[_0x229a7e(0x108)](this[_0x229a7e(0xad)][_0x229a7e(0x109)],0x0)&&(_0x66f82d=_0x66f82d[_0x229a7e(0x96)](this['_errorEvents'])),fs['unlinkSync'](this['errorReportFileName']),_0x66f82d;}static[a79_0x140779(0x8e)](_0x4016fb){const _0x240b31=a79_0x140779;if(!this['isEnabled']())return;this[_0x240b31(0xad)][_0x240b31(0xd5)]({'message':_0x4016fb[_0x240b31(0x9d)],'trace':_0x4016fb[_0x240b31(0x11e)],'code':_0x4016fb[_0x240b31(0xff)]||null,'time':new Date()});}static[a79_0x140779(0xd0)](){const _0x1d7ee8=a79_0x140779;try{if(!this[_0x1d7ee8(0xd2)]())return;this[_0x1d7ee8(0x101)][_0x1d7ee8(0xfa)](),this[_0x1d7ee8(0xf1)](),this[_0x1d7ee8(0xe3)]();}catch(_0x50b1ad){logger[_0x1d7ee8(0xb7)]('Error\x20stopping\x20monitoring\x20'+util['format'](_0x50b1ad));}}static async['finalize'](){const _0x4f9e24=a79_0x140779,_0x5ef30c={'ljgVG':function(_0x36f1a2,_0x1f4619){return _0x36f1a2(_0x1f4619);}};await _0x5ef30c[_0x4f9e24(0x106)](sleep,0x1e);const _0x32beed=await this['finalizePerfMeasures'](),_0x17a99f=this[_0x4f9e24(0xe7)]();if(!this[_0x4f9e24(0xd2)]()){const _0x48084b={};return _0x48084b[_0x4f9e24(0xe1)]=[],_0x48084b['errors']=[],_0x48084b;}const _0x15a09a={};return _0x15a09a[_0x4f9e24(0xe1)]=_0x32beed,_0x15a09a[_0x4f9e24(0xb6)]=_0x17a99f,_0x15a09a;}static[a79_0x140779(0xa7)](_0x58289a){const _0x40a833=a79_0x140779,_0x3c8e1f={};_0x3c8e1f[_0x40a833(0x103)]=function(_0x325557,_0x3b7939){return _0x325557+_0x3b7939;},_0x3c8e1f['iPqUW']=_0x40a833(0x122);const _0x4c1822=_0x3c8e1f,_0x5e0a63=_0x4c1822[_0x40a833(0x103)](_0x58289a,_0x4c1822[_0x40a833(0xe2)]);if(this[_0x40a833(0xc7)][_0x5e0a63])return;performance[_0x40a833(0x100)](_0x5e0a63),this[_0x40a833(0xc7)][_0x5e0a63]=0x1;}static[a79_0x140779(0x85)](_0x572774,_0x4df9f9=!![],_0x1a8d45=null,_0x56b42e={}){const _0x3af97e=a79_0x140779,_0x46814f={'eUzkq':function(_0x363aa3,_0x1e4e64){return _0x363aa3+_0x1e4e64;},'buLmG':_0x3af97e(0xc5),'jFrUI':function(_0x30d52e,_0x4c2614){return _0x30d52e+_0x4c2614;},'EWURl':_0x3af97e(0x122),'OTAHx':function(_0x3f7827,_0x22e48a){return _0x3f7827+_0x22e48a;},'lzREq':function(_0xdb3cbf){return _0xdb3cbf();},'pFJMR':function(_0x4da597){return _0x4da597();}};performance[_0x3af97e(0x100)](_0x46814f['eUzkq'](_0x572774,_0x46814f[_0x3af97e(0xf4)])),performance['measure'](_0x572774,_0x46814f[_0x3af97e(0xd6)](_0x572774,_0x46814f[_0x3af97e(0x10c)]),_0x46814f[_0x3af97e(0xb2)](_0x572774,_0x46814f['buLmG']));const _0x236a2b={};_0x236a2b['success']=_0x4df9f9,_0x236a2b['failure']=_0x1a8d45,this['details'][_0x572774]=Object[_0x3af97e(0xcd)](_0x236a2b,Object[_0x3af97e(0xcd)](Object[_0x3af97e(0xcd)]({'worker':_0x46814f[_0x3af97e(0x11d)](getProcessId),'platform':global[_0x3af97e(0xcf)]&&global[_0x3af97e(0xcf)][_0x3af97e(0xeb)],'testName':_0x46814f[_0x3af97e(0x107)](getTestName)},_0x56b42e),this[_0x3af97e(0xb8)][_0x572774]||{}));}}function a79_0x478f(_0xb22c18,_0x26af0b){const _0x2f27f2=a79_0x2f27();return a79_0x478f=function(_0x478fd2,_0x59174d){_0x478fd2=_0x478fd2-0x83;let _0x4c8539=_0x2f27f2[_0x478fd2];return _0x4c8539;},a79_0x478f(_0xb22c18,_0x26af0b);}module['exports']=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a80_0x1458(_0x3fef1b,_0x551196){const _0x25f821=a80_0x25f8();return a80_0x1458=function(_0x1458d1,_0x313026){_0x1458d1=_0x1458d1-0xc9;let _0x1a016b=_0x25f821[_0x1458d1];return _0x1a016b;},a80_0x1458(_0x3fef1b,_0x551196);}function a80_0x25f8(){const _0x339f14=['sleep','tVJVG','pid','log','2114680Nuxkvc','22LiyRUz','true','env','MCDtH','BROWSERSTACK_OBSERVABILITY_DEBUG','toISOString','./test-observability/constants','][\x20OBSERVABILITY\x20]\x20','526548fLZCkR','threadId','143QtzZkW','getTestName','1107456nNvXDr','1Pfghfw','debug','301Zwguia','4ijxAdM','734216ivwwIf','FcYzF','994310sMsPBO','CQMVm','./globals','getGlobal','38064ARZBCZ','340310KnBVrT','9orhYUc','./logger','worker_threads','getProcessId'];a80_0x25f8=function(){return _0x339f14;};return a80_0x25f8();}const a80_0x57e540=a80_0x1458;(function(_0xbcf2ce,_0x2f3189){const _0x16adc7=a80_0x1458,_0x558a7d=_0xbcf2ce();while(!![]){try{const _0x14eea6=-parseInt(_0x16adc7(0xcf))/0x1*(-parseInt(_0x16adc7(0xd5))/0x2)+parseInt(_0x16adc7(0xce))/0x3+parseInt(_0x16adc7(0xd2))/0x4*(parseInt(_0x16adc7(0xe3))/0x5)+parseInt(_0x16adc7(0xd9))/0x6*(-parseInt(_0x16adc7(0xd1))/0x7)+-parseInt(_0x16adc7(0xd3))/0x8*(parseInt(_0x16adc7(0xdb))/0x9)+-parseInt(_0x16adc7(0xda))/0xa*(parseInt(_0x16adc7(0xe4))/0xb)+parseInt(_0x16adc7(0xca))/0xc*(-parseInt(_0x16adc7(0xcc))/0xd);if(_0x14eea6===_0x2f3189)break;else _0x558a7d['push'](_0x558a7d['shift']());}catch(_0x57d5a3){_0x558a7d['push'](_0x558a7d['shift']());}}}(a80_0x25f8,0x5b4b7));const worker=require(a80_0x57e540(0xdd)),{fileLogger}=require(a80_0x57e540(0xdc)),{consoleHolder}=require(a80_0x57e540(0xea)),globals=require(a80_0x57e540(0xd7));exports[a80_0x57e540(0xde)]=()=>{const _0x32296f=a80_0x57e540;return process[_0x32296f(0xe1)]+'-'+worker[_0x32296f(0xcb)];},exports[a80_0x57e540(0xcd)]=()=>{const _0x2a0a44=a80_0x57e540,_0x4a1370={};_0x4a1370['FcYzF']='browserstackTestName';const _0x3bd060=_0x4a1370;return globals[_0x2a0a44(0xd8)](_0x3bd060[_0x2a0a44(0xd4)]);},exports[a80_0x57e540(0xdf)]=(_0x7b9d82=0x64)=>new Promise(_0xb59dc=>setTimeout(_0xb59dc,_0x7b9d82)),exports[a80_0x57e540(0xd0)]=_0x66bfdd=>{const _0x5a7316=a80_0x57e540,_0x2edbb2={};_0x2edbb2[_0x5a7316(0xe0)]=function(_0x26d7e6,_0x1594c8){return _0x26d7e6===_0x1594c8;},_0x2edbb2[_0x5a7316(0xd6)]=_0x5a7316(0xe5),_0x2edbb2[_0x5a7316(0xe7)]=function(_0x78950e,_0x3ae851){return _0x78950e===_0x3ae851;};const _0x3f6e31=_0x2edbb2;fileLogger[_0x5a7316(0xd0)]('['+new Date()[_0x5a7316(0xe9)]()+_0x5a7316(0xc9)+_0x66bfdd),(_0x3f6e31[_0x5a7316(0xe0)](process[_0x5a7316(0xe6)]['BROWSERSTACK_OBSERVABILITY_DEBUG'],_0x3f6e31['CQMVm'])||_0x3f6e31['MCDtH'](process[_0x5a7316(0xe6)][_0x5a7316(0xe8)],'1'))&&consoleHolder[_0x5a7316(0xe2)]('\x0a['+new Date()[_0x5a7316(0xe9)]()+_0x5a7316(0xc9)+_0x66bfdd+'\x0a');};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x477c8f=a81_0x2efa;(function(_0x7ac4c7,_0x5c54ef){const _0x5f46e8=a81_0x2efa,_0x36dbb5=_0x7ac4c7();while(!![]){try{const _0x2ae239=-parseInt(_0x5f46e8(0x16d))/0x1+parseInt(_0x5f46e8(0x161))/0x2+parseInt(_0x5f46e8(0x15b))/0x3*(-parseInt(_0x5f46e8(0x15a))/0x4)+parseInt(_0x5f46e8(0x166))/0x5*(-parseInt(_0x5f46e8(0x16f))/0x6)+parseInt(_0x5f46e8(0x14b))/0x7+-parseInt(_0x5f46e8(0x146))/0x8+parseInt(_0x5f46e8(0x162))/0x9;if(_0x2ae239===_0x5c54ef)break;else _0x36dbb5['push'](_0x36dbb5['shift']());}catch(_0xddc6dc){_0x36dbb5['push'](_0x36dbb5['shift']());}}}(a81_0x477e,0x89654));function a81_0x2efa(_0x449332,_0x546989){const _0x477e15=a81_0x477e();return a81_0x2efa=function(_0x2efa5c,_0xc836f){_0x2efa5c=_0x2efa5c-0x146;let _0x5514d0=_0x477e15[_0x2efa5c];return _0x5514d0;},a81_0x2efa(_0x449332,_0x546989);}const http=require('http'),https=require(a81_0x477c8f(0x171)),monkeypatch=require(a81_0x477c8f(0x158));function spy(_0x88508f){const _0xd4de9f=a81_0x477c8f,_0x29cc16={'YDgUX':function(_0x1d2a3e,_0x5a37c0,_0x2acb70){return _0x1d2a3e(_0x5a37c0,_0x2acb70);},'fEBnn':function(_0x2d592a,_0x2a892a){return _0x2d592a-_0x2a892a;},'dgwee':'error','vqtjs':function(_0xc628a0,_0x3b8f26){return _0xc628a0 instanceof _0x3b8f26;},'svvGt':function(_0x4fc37f,_0x234e60){return _0x4fc37f===_0x234e60;},'XxKfM':_0xd4de9f(0x15c),'ZtyGN':function(_0x55bcfd,..._0x426924){return _0x55bcfd(..._0x426924);},'PrwXV':_0xd4de9f(0x14d),'bnbdK':_0xd4de9f(0x15e),'DCocP':function(_0x20f9ca,_0x334a6e,_0x4cbdcd,_0x3abd3c){return _0x20f9ca(_0x334a6e,_0x4cbdcd,_0x3abd3c);},'qvgge':'end','JuXpN':_0xd4de9f(0x149)},_0x1ca006=function(){const _0x59cbcf=_0xd4de9f,_0x2ffa3e={'DWebt':function(_0x120649,_0xb250c3){const _0xc16a84=a81_0x2efa;return _0x29cc16[_0xc16a84(0x16e)](_0x120649,_0xb250c3);},'NvdNf':function(_0x2ee603,_0x5e681d){return _0x29cc16['svvGt'](_0x2ee603,_0x5e681d);},'LdYDr':_0x29cc16[_0x59cbcf(0x167)],'BVTKh':function(_0x44917f,..._0x581202){const _0x396832=_0x59cbcf;return _0x29cc16[_0x396832(0x16b)](_0x44917f,..._0x581202);}},_0x10c1f0=arguments[0x0],_0x4ddc95=Array[_0x59cbcf(0x151)][_0x59cbcf(0x148)][_0x59cbcf(0x157)](arguments,0x1),_0x2e40be=_0x10c1f0[_0x59cbcf(0x173)](this,_0x4ddc95);let _0x4e4a1b=Date[_0x59cbcf(0x176)](),_0xe5ce8c;const _0x72be1={};_0x4ddc95[_0x59cbcf(0x170)](_0x49f42e=>{const _0x28f6cd=_0x59cbcf;if(_0x2ffa3e['DWebt'](_0x49f42e,URL)){const _0x341216={};_0x341216[_0x28f6cd(0x153)]=_0x49f42e,Object[_0x28f6cd(0x174)](_0x72be1,_0x341216);}else _0x2ffa3e[_0x28f6cd(0x16c)](typeof _0x49f42e,_0x2ffa3e[_0x28f6cd(0x14f)])&&Object[_0x28f6cd(0x174)](_0x72be1,_0x49f42e);});const _0x22efd6=_0x33b08f=>{const _0x69b6bd=_0x59cbcf,_0x47e0c9={};_0x47e0c9[_0x69b6bd(0x150)]=_0x72be1[_0x69b6bd(0x150)]||_0x72be1[_0x69b6bd(0x156)]||_0x72be1[_0x69b6bd(0x153)]&&(_0x72be1[_0x69b6bd(0x153)]['host']||_0x72be1[_0x69b6bd(0x153)][_0x69b6bd(0x156)]),_0x47e0c9['path']=_0x72be1[_0x69b6bd(0x14c)]||_0x72be1[_0x69b6bd(0x153)]&&_0x72be1[_0x69b6bd(0x153)]['pathname'],_0x47e0c9['method']=_0x72be1[_0x69b6bd(0x154)],_0x47e0c9[_0x69b6bd(0x159)]=_0x72be1[_0x69b6bd(0x159)],_0x29cc16['YDgUX'](_0x88508f,_0x33b08f,_0x47e0c9);};return _0x2e40be['once'](_0x29cc16[_0x59cbcf(0x147)],_0x58cf00=>{const _0x2d6b3b=_0x59cbcf,_0x70074c=_0x29cc16[_0x2d6b3b(0x15f)](Date[_0x2d6b3b(0x176)](),_0x4e4a1b),_0x58a880={};_0x58a880[_0x2d6b3b(0x156)]=_0x72be1[_0x2d6b3b(0x150)]||_0x72be1[_0x2d6b3b(0x156)]||_0x72be1[_0x2d6b3b(0x153)]&&(_0x72be1[_0x2d6b3b(0x153)]['host']||_0x72be1[_0x2d6b3b(0x153)][_0x2d6b3b(0x156)]),_0x58a880['path']=_0x72be1[_0x2d6b3b(0x14c)]||_0x72be1[_0x2d6b3b(0x153)]&&_0x72be1['url'][_0x2d6b3b(0x169)],_0x58a880[_0x2d6b3b(0x154)]=_0x72be1[_0x2d6b3b(0x154)],_0x58a880[_0x2d6b3b(0x159)]=_0x72be1[_0x2d6b3b(0x159)],_0x58a880[_0x2d6b3b(0x14a)]=_0x58cf00[_0x2d6b3b(0x160)],_0x58a880[_0x2d6b3b(0x164)]=_0x70074c,_0x29cc16[_0x2d6b3b(0x14e)](_0x88508f,null,_0x58a880),_0xe5ce8c[_0x2d6b3b(0x155)](_0x29cc16[_0x2d6b3b(0x16a)],_0x22efd6);}),_0x2e40be['on'](_0x29cc16['bnbdK'],_0x1a16fd=>{const _0x2e3e2c=_0x59cbcf;_0xe5ce8c=_0x1a16fd,_0x1a16fd[_0x2e3e2c(0x175)](_0x29cc16['dgwee'],_0x22efd6);}),_0x29cc16[_0x59cbcf(0x172)](monkeypatch,_0x2e40be,_0x29cc16[_0x59cbcf(0x163)],(_0x1d342b,..._0x1730e8)=>{const _0x4aeeec=_0x59cbcf;_0x4e4a1b=Date[_0x4aeeec(0x176)](),_0x2ffa3e[_0x4aeeec(0x15d)](_0x1d342b,..._0x1730e8);}),_0x2e40be;};_0x29cc16['DCocP'](monkeypatch,http,_0x29cc16[_0xd4de9f(0x165)],_0x1ca006),_0x29cc16['DCocP'](monkeypatch,https,_0x29cc16[_0xd4de9f(0x165)],_0x1ca006);}function restore(){const _0x33c240=a81_0x477c8f;http['request']['unpatch'](),https['request'][_0x33c240(0x168)]();}const a81_0x2a0261={};function a81_0x477e(){const _0x509950=['qvgge','duration_ms','JuXpN','1268960PIuSBR','XxKfM','unpatch','pathname','dgwee','ZtyGN','NvdNf','502273cvwXvO','vqtjs','12MLEKnU','forEach','https','DCocP','apply','assign','once','now','3258336LrOpPO','PrwXV','slice','request','status_code','386316ICKXJd','path','response','YDgUX','LdYDr','host','prototype','exports','url','method','removeListener','hostname','call','monkeypatch','headers','4amxvQT','3300714XpfzTk','object','BVTKh','socket','fEBnn','statusCode','2062286kJjsfd','17944452ewtEvv'];a81_0x477e=function(){return _0x509950;};return a81_0x477e();}a81_0x2a0261['spy']=spy,a81_0x2a0261['restore']=restore,module[a81_0x477c8f(0x152)]=a81_0x2a0261;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x5a50dd=a82_0x523b;(function(_0x13625c,_0x4ea8c7){const _0x132391=a82_0x523b,_0x4ff4e2=_0x13625c();while(!![]){try{const _0x17e16b=parseInt(_0x132391(0xdd))/0x1*(parseInt(_0x132391(0xdf))/0x2)+parseInt(_0x132391(0xf9))/0x3*(-parseInt(_0x132391(0xe1))/0x4)+parseInt(_0x132391(0xe2))/0x5+-parseInt(_0x132391(0xe6))/0x6+parseInt(_0x132391(0xef))/0x7*(-parseInt(_0x132391(0xeb))/0x8)+parseInt(_0x132391(0xf3))/0x9+parseInt(_0x132391(0xee))/0xa;if(_0x17e16b===_0x4ea8c7)break;else _0x4ff4e2['push'](_0x4ff4e2['shift']());}catch(_0x46f077){_0x4ff4e2['push'](_0x4ff4e2['shift']());}}}(a82_0x21d1,0xd0d31));function a82_0x523b(_0x1427d2,_0x5f2979){const _0x21d136=a82_0x21d1();return a82_0x523b=function(_0x523ba8,_0x4d7168){_0x523ba8=_0x523ba8-0xdd;let _0xad10d9=_0x21d136[_0x523ba8];return _0xad10d9;},a82_0x523b(_0x1427d2,_0x5f2979);}const PerformanceTester=require(a82_0x5a50dd(0xfb)),{AUTOMATE_EVENTS:PerformanceEvents}=require('./performance/constants');function a82_0x21d1(){const _0x113c09=['4fdRWwP','5252590vOFUjM','request','EUVkX','KoeOF','3687888qzJhsi','zzium','keepAliveMsecs','fEEPl','https:','16BFUyBe','keepAlive','https','19061110PWnZvT','5599111ElKgcC','APFuE','protocol','globalAgent','2466153fQVyhi','zFTFg','KEEP_ALIVE','exports','measureWrapper','uBCix','3251823ktJmhh','hasOwnProperty','./performance/performance-tester','KQSTp','2LVYSJZ','call','923034BgWHMt','tVJZT'];a82_0x21d1=function(){return _0x113c09;};return a82_0x21d1();}module[a82_0x5a50dd(0xf6)]=PerformanceTester[a82_0x5a50dd(0xf7)](PerformanceEvents[a82_0x5a50dd(0xf5)],function(){const _0x2a7c2b=a82_0x5a50dd,_0x227264={'zzium':function(_0x1fde3d,_0x4841c5){return _0x1fde3d===_0x4841c5;},'APFuE':_0x2a7c2b(0xea),'EUVkX':'agent','KoeOF':function(_0x4a71b4,_0x1aea62,_0x17fae2){return _0x4a71b4(_0x1aea62,_0x17fae2);},'fEEPl':function(_0x191f87,_0xbf8849,_0x222631){return _0x191f87(_0xbf8849,_0x222631);},'tVJZT':function(_0x503d20,_0x2e871f){return _0x503d20(_0x2e871f);},'uBCix':'http','KQSTp':_0x2a7c2b(0xed),'YbzfT':function(_0x241d5d,_0x14418d){return _0x241d5d*_0x14418d;},'zFTFg':'keepAlive'},_0x5db67a=_0x227264[_0x2a7c2b(0xe0)](require,_0x227264[_0x2a7c2b(0xf8)]),_0x51bc96=_0x227264['tVJZT'](require,_0x227264[_0x2a7c2b(0xfc)]),_0x2e85f4=_0x227264['YbzfT'](0x1e,0x3e8);if(_0x5db67a[_0x2a7c2b(0xf2)]&&Object['prototype'][_0x2a7c2b(0xfa)][_0x2a7c2b(0xde)](_0x5db67a[_0x2a7c2b(0xf2)],_0x227264[_0x2a7c2b(0xf4)]))_0x5db67a['globalAgent'][_0x2a7c2b(0xec)]=!![],_0x51bc96['globalAgent'][_0x2a7c2b(0xec)]=!![],_0x5db67a[_0x2a7c2b(0xf2)]['keepAliveMsecs']=_0x2e85f4,_0x51bc96[_0x2a7c2b(0xf2)][_0x2a7c2b(0xe8)]=_0x2e85f4;else{const _0x596a07={};_0x596a07[_0x2a7c2b(0xec)]=!![],_0x596a07[_0x2a7c2b(0xe8)]=_0x2e85f4;const _0x5f3d4f=new _0x5db67a['Agent'](_0x596a07),_0x502aba={};_0x502aba[_0x2a7c2b(0xec)]=!![],_0x502aba[_0x2a7c2b(0xe8)]=_0x2e85f4;const _0x33c9c9=new _0x51bc96['Agent'](_0x502aba),_0x14755a=_0x5db67a[_0x2a7c2b(0xe3)],_0x10691c=_0x51bc96[_0x2a7c2b(0xe3)];_0x5db67a['request']=function(_0x3f0c1a,_0x4e4a61){const _0x167652=_0x2a7c2b;if(_0x227264[_0x167652(0xe7)](_0x3f0c1a[_0x167652(0xf1)],_0x227264[_0x167652(0xf0)]))return _0x3f0c1a[_0x227264[_0x167652(0xe4)]]=_0x33c9c9,_0x227264[_0x167652(0xe5)](_0x10691c,_0x3f0c1a,_0x4e4a61);return _0x3f0c1a[_0x227264['EUVkX']]=_0x5f3d4f,_0x227264[_0x167652(0xe9)](_0x14755a,_0x3f0c1a,_0x4e4a61);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a83_0x1222f3=a83_0x16cb;(function(_0x38cdc9,_0x49577c){var _0x3bc235=a83_0x16cb,_0x1135d1=_0x38cdc9();while(!![]){try{var _0x4bc178=parseInt(_0x3bc235(0x1ac))/0x1+-parseInt(_0x3bc235(0x1a4))/0x2*(-parseInt(_0x3bc235(0x198))/0x3)+-parseInt(_0x3bc235(0x19f))/0x4+-parseInt(_0x3bc235(0x1a7))/0x5+-parseInt(_0x3bc235(0x196))/0x6*(parseInt(_0x3bc235(0x1a6))/0x7)+-parseInt(_0x3bc235(0x19c))/0x8+parseInt(_0x3bc235(0x1a3))/0x9;if(_0x4bc178===_0x49577c)break;else _0x1135d1['push'](_0x1135d1['shift']());}catch(_0x94921d){_0x1135d1['push'](_0x1135d1['shift']());}}}(a83_0x42a4,0xc78aa));function a83_0x16cb(_0x1a999a,_0x3a0e5e){var _0x42a44e=a83_0x42a4();return a83_0x16cb=function(_0x16cb69,_0x164e19){_0x16cb69=_0x16cb69-0x196;var _0x57cd50=_0x42a44e[_0x16cb69];return _0x57cd50;},a83_0x16cb(_0x1a999a,_0x3a0e5e);}var a83_0x50b201={};a83_0x50b201[a83_0x1222f3(0x1a1)]=a83_0x1222f3(0x19a),a83_0x50b201[a83_0x1222f3(0x19d)]=a83_0x1222f3(0x19e),a83_0x50b201[a83_0x1222f3(0x1a2)]='codeceptjs',a83_0x50b201[a83_0x1222f3(0x199)]=a83_0x1222f3(0x197),a83_0x50b201[a83_0x1222f3(0x19b)]=a83_0x1222f3(0x1a0),module[a83_0x1222f3(0x1a5)]={'consoleHolder':Object['assign']({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a83_0x1222f3(0x1a8),'EVENT_ENDPOINT':a83_0x1222f3(0x1a9),'BATCH_ENDPOINT':a83_0x1222f3(0x1ab),'SCREENSHOT_ENDPOINT':a83_0x1222f3(0x1aa),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0xea60,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':'.obs_test_details','FRAMEWORKS':a83_0x50b201};function a83_0x42a4(){var _0x5eec0c=['1248930vgoRvU','1512696DGmPhX','jest','10344PdFbVu','JEST','Playwright','CUCUMBER','2434272AENRDW','MOCHA','mocha','848780LxgXmp','cucumber','PLAYWRIGHT','CODECEPT','13569705VgfoII','172zzvdMn','exports','14GFPANs','6075850MiWNIT','https://collector-observability.browserstack.com','api/v1/event','api/v1/screenshots','api/v1/batch'];a83_0x42a4=function(){return _0x5eec0c;};return a83_0x42a4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a84_0x3cacbc=a84_0x329c;(function(_0xd35e7c,_0x4cc31c){const _0x5afe58=a84_0x329c,_0x560926=_0xd35e7c();while(!![]){try{const _0x568831=-parseInt(_0x5afe58(0x136))/0x1*(parseInt(_0x5afe58(0x135))/0x2)+-parseInt(_0x5afe58(0x142))/0x3+-parseInt(_0x5afe58(0x100))/0x4+-parseInt(_0x5afe58(0xdc))/0x5+parseInt(_0x5afe58(0x111))/0x6+parseInt(_0x5afe58(0xf5))/0x7+parseInt(_0x5afe58(0x141))/0x8;if(_0x568831===_0x4cc31c)break;else _0x560926['push'](_0x560926['shift']());}catch(_0xe0bb6c){_0x560926['push'](_0x560926['shift']());}}}(a84_0x2b9e,0xbad6c));const util=require(a84_0x3cacbc(0xf0)),PerformanceTester=require(a84_0x3cacbc(0xe8)),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0x3cacbc(0x10e)),{getAgentVersion,nestedKeyValue}=require(a84_0x3cacbc(0xea)),o11yErrorHandler=(_0x18ec90,_0x4d3764='',_0x171220=[''],_0x2a7819=![])=>{const _0x2dd4e5={'LYVRe':function(_0x596c8b,_0x3b2c04){return _0x596c8b(_0x3b2c04);},'AfUMr':function(_0x4ed6eb,_0x8c0d76,_0x5d3cff){return _0x4ed6eb(_0x8c0d76,_0x5d3cff);},'nxbPB':function(_0x367a6c,_0x5ca4d3,_0x297045){return _0x367a6c(_0x5ca4d3,_0x297045);},'YATdn':function(_0x2e13c4,_0x284c04){return _0x2e13c4 instanceof _0x284c04;},'fiEvG':function(_0x493d1a,_0x5ac1ba,_0x40cf0e,_0x368684,_0x5418ee){return _0x493d1a(_0x5ac1ba,_0x40cf0e,_0x368684,_0x5418ee);}};return function(..._0x46cbb1){const _0x529ebf=a84_0x329c;try{let _0x19f2e5=_0x18ec90;process[_0x529ebf(0x12f)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']&&(_0x19f2e5=PerformanceTester[_0x529ebf(0x107)]()[_0x529ebf(0x132)](_0x19f2e5));_0x2a7819&&_0x2dd4e5[_0x529ebf(0xf8)](trace,_0x529ebf(0x11b)+_0x4d3764+_0x529ebf(0x101)+process['pid']+',\x20Argument\x20-\x20'+_0x2dd4e5[_0x529ebf(0xe3)](nestedKeyValue,arguments[0x0],_0x171220));const _0x342358=_0x19f2e5['apply'](null,arguments);_0x2a7819&&_0x2dd4e5[_0x529ebf(0xf8)](trace,'Finished\x20::\x20'+_0x4d3764+_0x529ebf(0x101)+process[_0x529ebf(0x10c)]+',\x20Argument\x20-\x20'+_0x2dd4e5[_0x529ebf(0x137)](nestedKeyValue,arguments[0x0],_0x171220));if(_0x2dd4e5[_0x529ebf(0x12c)](_0x342358,Promise))return _0x342358[_0x529ebf(0x116)](_0x48a369=>processError(_0x48a369,_0x18ec90,_0x46cbb1,_0x4d3764));return _0x342358;}catch(_0x4007cd){_0x2dd4e5[_0x529ebf(0xe5)](processError,_0x4007cd,_0x18ec90,_0x46cbb1,_0x4d3764);}};},o11yClassErrorHandler=(_0x1e2324,_0x2a0dd0,_0x4ed426='')=>{const _0x39db12=a84_0x3cacbc,_0x599058={'yxElD':function(_0x18b744,_0x4c3b04){return _0x18b744 instanceof _0x4c3b04;},'MqADX':function(_0x398d88,_0x13bf2a,_0x195543,_0x2e16dc,_0x2d9f58){return _0x398d88(_0x13bf2a,_0x195543,_0x2e16dc,_0x2d9f58);},'bpbcG':function(_0x10c861,_0x2a0d7d){return _0x10c861===_0x2a0d7d;},'yQxWo':_0x39db12(0xee),'HOFzR':function(_0x4bfac7,_0x1b8768){return _0x4bfac7!==_0x1b8768;},'CffvC':_0x39db12(0x115),'OppHX':function(_0x2e7d09,_0x1761da){return _0x2e7d09<_0x1761da;}},_0x456a52=_0x1e2324['prototype'];if(_0x599058['OppHX'](Object[_0x39db12(0x13a)](_0x456a52)[_0x39db12(0x129)],0x2))return _0x1e2324;return Object[_0x39db12(0x13a)](_0x456a52)[_0x39db12(0xe4)](_0x48bdb6=>{const _0x5cb4bf=_0x39db12;if(!(_0x2a0dd0&&_0x2a0dd0[_0x5cb4bf(0x108)](_0x48bdb6)))return;const _0x138450=_0x456a52[_0x48bdb6];_0x599058[_0x5cb4bf(0x112)](typeof _0x138450,_0x599058[_0x5cb4bf(0xe2)])&&_0x599058[_0x5cb4bf(0x106)](_0x48bdb6,_0x599058[_0x5cb4bf(0x113)])&&Object[_0x5cb4bf(0xf9)](_0x456a52,_0x48bdb6,{'writable':!![],'value':function(..._0x17b770){const _0x9e8007=_0x5cb4bf;try{const _0x553b1a=(process[_0x9e8007(0x12f)]['BROWSERSTACK_O11Y_PERF_MEASUREMENT']?PerformanceTester[_0x9e8007(0x107)]()[_0x9e8007(0x132)](_0x138450):_0x138450)[_0x9e8007(0x133)](this,..._0x17b770);if(_0x599058[_0x9e8007(0xf6)](_0x553b1a,Promise))return _0x553b1a[_0x9e8007(0x116)](_0x3b7446=>processError(_0x3b7446,_0x138450,_0x17b770,_0x4ed426));return _0x553b1a;}catch(_0xe823e0){_0x599058[_0x9e8007(0xde)](processError,_0xe823e0,_0x138450,_0x17b770,_0x4ed426);}}});}),_0x1e2324;};function a84_0x2b9e(){const _0xfe5f90=['getConfig','depth','721425kZKNxF','frameworkDetails','MqADX','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','MeGob','name','yQxWo','AfUMr','forEach','fiEvG','fFUvW','user','../performance/performance-tester','\x20--\x20','../helper','auth','credentials','frameworkName','function','setCredentials','util','mHpvP','USER_CONFIG_FOR_REPORTING','userConfig','filterPII','3642919uAPOOM','yxElD','VDgmx','LYVRe','defineProperty','username','xRlAO','toString','stringify','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','true','2998020JrUGlu',',\x20PID\x20-\x20','o11yClassErrorHandler','ywRNR','LPyUS','BS_TESTOPS_BUILD_HASHED_ID','HOFzR','getPerformance','includes','then','.\x20Args\x20-\x20','ehBdZ','pid','recursivelyDeletePIIKeysFromObject','./utils','parse','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','6045138qYkqOc','bpbcG','CffvC','password','constructor','catch','keys','VtkvA','setAllDetails','JKYKy','Started\x20::\x20','setConfigDetails','CREDENTIALS_FOR_CRASH_REPORTING','application/json','[Crash_Report_Upload]\x20Success\x20response:\x20','X-BSTACK-TESTOPS','key','format','exports','rjEco','KIvqn','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','DNAst','inspect','length','headers','POST','YATdn','DFkTy','getCredentials','env','Content-Type','Error\x20in\x20executing\x20','timerify','call','/api/v1/analytics','204RtWyCd','13666ghQSQR','nxbPB','accessKey','frameworkVersion','getOwnPropertyNames','uploadCrashReport','.\x20Error\x20-\x20','CrashReporter','VvVHa','getFramework','setFrameworkDetails','22434992gRQUts','3837900vQQTqe','captureError'];a84_0x2b9e=function(){return _0xfe5f90;};return a84_0x2b9e();}function a84_0x329c(_0x2f8a2a,_0x3f6e56){const _0x2b9e04=a84_0x2b9e();return a84_0x329c=function(_0x329cfe,_0x1f37ff){_0x329cfe=_0x329cfe-0xda;let _0x1f7d1a=_0x2b9e04[_0x329cfe];return _0x1f7d1a;},a84_0x329c(_0x2f8a2a,_0x3f6e56);}function processError(_0x1c316b,_0x194ce4,_0x5b6928,_0x85e72d){const _0x3b343f=a84_0x3cacbc,_0x1048e3={'gAihB':function(_0x231bb,_0x4544c2){return _0x231bb(_0x4544c2);}};_0x1048e3['gAihB'](debug,_0x3b343f(0x131)+_0x194ce4[_0x3b343f(0xe1)]+_0x3b343f(0xe9)+_0x85e72d+_0x3b343f(0x13c)+_0x1c316b+_0x3b343f(0x10a)+_0x5b6928+'.'),PerformanceTester[_0x3b343f(0x143)](_0x1c316b);let _0x3ce605;try{_0x3ce605=JSON[_0x3b343f(0xfd)](_0x5b6928);}catch(_0x3a0e79){const _0x45a1e2={};_0x45a1e2[_0x3b343f(0xdb)]=0x2,_0x3ce605=util[_0x3b343f(0x128)](_0x5b6928,_0x45a1e2);}CrashReporter[_0x3b343f(0x13b)]('Error\x20in\x20executing\x20'+_0x194ce4[_0x3b343f(0xe1)]+_0x3b343f(0xe9)+_0x85e72d+_0x3b343f(0x13c)+_0x1c316b+_0x3b343f(0x10a)+_0x3ce605+'.',_0x1c316b&&_0x1c316b['stack']);}class CrashReporter{static ['userConfig']={};static [a84_0x3cacbc(0xec)];static [a84_0x3cacbc(0xdd)]={};static['initialize'](_0xefe494,_0x5f119f,_0x4e269b=null){const _0x4f9387=a84_0x3cacbc,_0x4bda71={'VtkvA':function(_0x5142aa,_0x5d5ce0){return _0x5142aa(_0x5d5ce0);},'ktVgr':function(_0x4aaa04,_0x207a01){return _0x4aaa04(_0x207a01);},'ehBdZ':function(_0x133d1e,_0x25fee6){return _0x133d1e(_0x25fee6);}},_0x95c37d=_0xefe494[_0x4f9387(0xed)],_0x5cf474=_0xefe494[_0x4f9387(0x139)];!_0x4e269b&&(_0x4e269b=_0x4bda71[_0x4f9387(0x118)](getBrowserStackConfig,_0x95c37d));!_0x5cf474&&_0x4bda71['ktVgr'](getFrameworkVersion,_0x95c37d);const _0x405932={};_0x405932[_0x4f9387(0xed)]=_0x95c37d,_0x405932['frameworkVersion']=_0x5cf474,this['setAllDetails'](_0x405932,_0x5f119f,_0x4bda71[_0x4f9387(0x10b)](getUserCredentials,_0x4e269b));}static['setCredentials'](_0x3a6f47,_0x3d82bd){const _0x4640eb=a84_0x3cacbc,_0x144a00={};_0x144a00['username']=_0x3a6f47,_0x144a00[_0x4640eb(0x138)]=_0x3d82bd,this[_0x4640eb(0xec)]=_0x144a00,process['env'][_0x4640eb(0x11d)]=JSON[_0x4640eb(0xfd)](this[_0x4640eb(0xec)]);}static['getCredentials'](){const _0x552b33=a84_0x3cacbc,_0x2ea28c={'VDgmx':function(_0xdebabd,_0x279717){return _0xdebabd(_0x279717);}};if(!this[_0x552b33(0xec)]&&process[_0x552b33(0x12f)][_0x552b33(0x11d)])try{this[_0x552b33(0xec)]=JSON[_0x552b33(0x10f)](process[_0x552b33(0x12f)][_0x552b33(0x11d)]);}catch(_0x4b6f95){_0x2ea28c[_0x552b33(0xf7)](debug,_0x552b33(0xdf)+_0x4b6f95[_0x552b33(0xfc)]());}return this[_0x552b33(0xec)];}static[a84_0x3cacbc(0x11c)](_0x32af95){const _0x53858b=a84_0x3cacbc;this['userConfig']=this[_0x53858b(0xf4)](_0x32af95),process['env']['USER_CONFIG_FOR_REPORTING']=JSON[_0x53858b(0xfd)](this[_0x53858b(0xf3)]);}static[a84_0x3cacbc(0xda)](){const _0x40a0ce=a84_0x3cacbc,_0x46e882={'YyuLd':function(_0x1f08b4,_0x4718ad){return _0x1f08b4===_0x4718ad;},'Cblum':function(_0x17292d,_0x391603){return _0x17292d(_0x391603);}};if(_0x46e882['YyuLd'](Object[_0x40a0ce(0x117)](this['userConfig'])[_0x40a0ce(0x129)],0x0)&&process['env'][_0x40a0ce(0xf2)])try{this['userConfig']=JSON[_0x40a0ce(0x10f)](process['env'][_0x40a0ce(0xf2)]);}catch(_0x205d2a){_0x46e882['Cblum'](debug,_0x40a0ce(0x110)+_0x205d2a[_0x40a0ce(0xfc)]()),this[_0x40a0ce(0xf3)]={};}return this['userConfig'];}static[a84_0x3cacbc(0x140)](_0x9b3a9c){const _0x45534d=a84_0x3cacbc;this[_0x45534d(0xdd)]=_0x9b3a9c,process['env'][_0x45534d(0xfe)]=JSON[_0x45534d(0xfd)](this[_0x45534d(0xdd)]);}static['getFramework'](){const _0x330bb7=a84_0x3cacbc,_0xda04bb={'otHTT':function(_0x93a050,_0x5b999a){return _0x93a050===_0x5b999a;},'MeGob':function(_0x58d359,_0x5917f7){return _0x58d359(_0x5917f7);}};if(_0xda04bb['otHTT'](Object[_0x330bb7(0x117)](this[_0x330bb7(0xdd)])[_0x330bb7(0x129)],0x0)&&process['env']['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS'])try{this['frameworkDetails']=JSON[_0x330bb7(0x10f)](process['env'][_0x330bb7(0xfe)]);}catch(_0x186f89){_0xda04bb[_0x330bb7(0xe0)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0x186f89[_0x330bb7(0xfc)]());}return this[_0x330bb7(0xdd)];}static[a84_0x3cacbc(0x119)](_0x20fe22,_0x5c2ebf,_0x46b9db){const _0x1f5fbc=a84_0x3cacbc;_0x20fe22&&this['setFrameworkDetails'](_0x20fe22),_0x5c2ebf&&this[_0x1f5fbc(0x11c)](_0x5c2ebf),_0x46b9db&&this[_0x1f5fbc(0xef)](_0x46b9db[_0x1f5fbc(0xfa)],_0x46b9db[_0x1f5fbc(0x138)]);}static async[a84_0x3cacbc(0x13b)](_0x2f8d9b,_0x1a47b){const _0x205ed0=a84_0x3cacbc,_0x44b28b={'ywRNR':function(_0xb8e81a,_0x423064){return _0xb8e81a(_0x423064);},'JKYKy':function(_0x14ddf7,_0xda3f2c){return _0x14ddf7(_0xda3f2c);},'LPyUS':'[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','DNAst':function(_0x404b6d){return _0x404b6d();},'VvVHa':_0x205ed0(0x134),'FnJZo':_0x205ed0(0x11e),'fFUvW':_0x205ed0(0xff),'eIhiC':function(_0x556f06,_0xeb767b,_0x27efb0,_0x1ca007,_0x4298ac,_0x5a3567){return _0x556f06(_0xeb767b,_0x27efb0,_0x1ca007,_0x4298ac,_0x5a3567);},'zhODE':_0x205ed0(0x12b)};this[_0x205ed0(0x12e)]();if(!this[_0x205ed0(0xec)])return _0x44b28b[_0x205ed0(0x11a)](debug,_0x44b28b[_0x205ed0(0x104)]);this[_0x205ed0(0xda)](),this[_0x205ed0(0x13f)]();const _0x53e955={'hashed_id':process[_0x205ed0(0x12f)][_0x205ed0(0x105)],'observability_version':{'sdkVersion':_0x44b28b[_0x205ed0(0x127)](getAgentVersion),'frameworkName':this[_0x205ed0(0xdd)]['frameworkName'],'frameworkVersion':this[_0x205ed0(0xdd)]['frameworkVersion']},'exception':{'error':_0x2f8d9b['toString'](),'stackTrace':_0x1a47b},'config':this[_0x205ed0(0xf3)]},_0x4cef25=_0x44b28b[_0x205ed0(0x13e)],_0x4070ad={};_0x4070ad['username']=this[_0x205ed0(0xec)]['username'],_0x4070ad[_0x205ed0(0x114)]=this[_0x205ed0(0xec)][_0x205ed0(0x138)];const _0x2c5e54={};_0x2c5e54[_0x205ed0(0x130)]=_0x44b28b['FnJZo'],_0x2c5e54[_0x205ed0(0x120)]=_0x44b28b[_0x205ed0(0xe6)];const _0x5ca69e={};_0x5ca69e[_0x205ed0(0xeb)]=_0x4070ad,_0x5ca69e[_0x205ed0(0x12a)]=_0x2c5e54;const _0x8d30bd=_0x5ca69e;_0x44b28b['eIhiC'](nodeRequest,_0x44b28b['zhODE'],_0x4cef25,_0x53e955,_0x8d30bd,![])[_0x205ed0(0x109)](_0x2db1da=>{const _0x1bf10c=_0x205ed0;_0x44b28b[_0x1bf10c(0x103)](debug,_0x1bf10c(0x11f)+JSON[_0x1bf10c(0xfd)](_0x2db1da));})[_0x205ed0(0x116)](_0x548299=>{const _0x54d224=_0x205ed0;_0x44b28b[_0x54d224(0x103)](debug,_0x54d224(0x126)+util[_0x54d224(0x122)](_0x548299));});}static[a84_0x3cacbc(0x10d)](_0x4f31bd){const _0x5f40c6=a84_0x3cacbc,_0x5f483a={};_0x5f483a[_0x5f40c6(0xf1)]=_0x5f40c6(0xe7),_0x5f483a['yicJP']='username',_0x5f483a['Lgyhe']=_0x5f40c6(0x121),_0x5f483a[_0x5f40c6(0x125)]=_0x5f40c6(0x138),_0x5f483a['DFkTy']=_0x5f40c6(0x114),_0x5f483a[_0x5f40c6(0x124)]=function(_0x15e24a,_0x20cfe6){return _0x15e24a===_0x20cfe6;},_0x5f483a[_0x5f40c6(0xfb)]='object';const _0x333ecf=_0x5f483a;if(!_0x4f31bd)return;const _0x51a541=[_0x333ecf[_0x5f40c6(0xf1)],_0x333ecf['yicJP'],_0x333ecf['Lgyhe'],_0x333ecf[_0x5f40c6(0x125)],_0x333ecf[_0x5f40c6(0x12d)]];for(const _0x47a058 in _0x4f31bd){if(_0x51a541['includes'](_0x47a058['toLowerCase']()))delete _0x4f31bd[_0x47a058];else _0x333ecf[_0x5f40c6(0x124)](typeof _0x4f31bd[_0x47a058],_0x333ecf['xRlAO'])&&this[_0x5f40c6(0x10d)](_0x4f31bd[_0x47a058]);}}static[a84_0x3cacbc(0xf4)](_0x1839b1){const _0x3b3d49=a84_0x3cacbc,_0xba1640=JSON[_0x3b3d49(0x10f)](JSON['stringify'](_0x1839b1));return this[_0x3b3d49(0x10d)](_0xba1640),_0xba1640;}}const a84_0x26e494={};a84_0x26e494['o11yErrorHandler']=o11yErrorHandler,a84_0x26e494[a84_0x3cacbc(0x102)]=o11yClassErrorHandler,a84_0x26e494[a84_0x3cacbc(0x13d)]=CrashReporter,module[a84_0x3cacbc(0x123)]=a84_0x26e494;
|
|
1
|
+
const a84_0x458a11=a84_0x26a7;(function(_0x2a97f8,_0x3d54ad){const _0x16f409=a84_0x26a7,_0x111507=_0x2a97f8();while(!![]){try{const _0x4fcf36=-parseInt(_0x16f409(0x127))/0x1*(parseInt(_0x16f409(0x123))/0x2)+-parseInt(_0x16f409(0xda))/0x3+-parseInt(_0x16f409(0x11c))/0x4*(parseInt(_0x16f409(0xfc))/0x5)+parseInt(_0x16f409(0xcb))/0x6+-parseInt(_0x16f409(0xff))/0x7*(-parseInt(_0x16f409(0xef))/0x8)+parseInt(_0x16f409(0xed))/0x9*(parseInt(_0x16f409(0x107))/0xa)+-parseInt(_0x16f409(0x11e))/0xb;if(_0x4fcf36===_0x3d54ad)break;else _0x111507['push'](_0x111507['shift']());}catch(_0x5ca123){_0x111507['push'](_0x111507['shift']());}}}(a84_0x471f,0xb7407));const util=require('util'),PerformanceTester=require('../performance/performance-tester'),{trace,debug,nodeRequest,getBrowserStackConfig,getUserCredentials,getFrameworkVersion}=require(a84_0x458a11(0xfb)),{getAgentVersion,nestedKeyValue}=require(a84_0x458a11(0x113)),o11yErrorHandler=(_0x5afa9c,_0x3f3f0f='',_0x1adac9=[''],_0x52a0ee=![])=>{const _0x39c094={'Mcefb':function(_0x550570,_0x33ff6a){return _0x550570(_0x33ff6a);},'khScy':function(_0x1a0b99,_0x165e44,_0x4d1ce5){return _0x1a0b99(_0x165e44,_0x4d1ce5);},'CQBdj':function(_0x5bdda4,_0x1a4829,_0xf6ea71){return _0x5bdda4(_0x1a4829,_0xf6ea71);},'ZELpB':function(_0x3052bb,_0x24d03b){return _0x3052bb instanceof _0x24d03b;},'pzKXe':function(_0x17ad4f,_0x1d812c,_0x4be709,_0x448ac1,_0x4224d9){return _0x17ad4f(_0x1d812c,_0x4be709,_0x448ac1,_0x4224d9);}};return function(..._0x3e8984){const _0x3457bf=a84_0x26a7;try{let _0x289787=_0x5afa9c;process['env'][_0x3457bf(0x110)]&&(_0x289787=PerformanceTester[_0x3457bf(0xf7)]()[_0x3457bf(0xd2)](_0x289787));_0x52a0ee&&_0x39c094[_0x3457bf(0x128)](trace,_0x3457bf(0xd5)+_0x3f3f0f+_0x3457bf(0xe4)+process[_0x3457bf(0xca)]+_0x3457bf(0x10e)+_0x39c094[_0x3457bf(0xe9)](nestedKeyValue,arguments[0x0],_0x1adac9));const _0x1d5112=_0x289787[_0x3457bf(0xdc)](null,arguments);_0x52a0ee&&_0x39c094['Mcefb'](trace,_0x3457bf(0x10c)+_0x3f3f0f+',\x20PID\x20-\x20'+process[_0x3457bf(0xca)]+_0x3457bf(0x10e)+_0x39c094['CQBdj'](nestedKeyValue,arguments[0x0],_0x1adac9));if(_0x39c094['ZELpB'](_0x1d5112,Promise))return _0x1d5112[_0x3457bf(0xe3)](_0x35b146=>processError(_0x35b146,_0x5afa9c,_0x3e8984,_0x3f3f0f));return _0x1d5112;}catch(_0x57848f){_0x39c094['pzKXe'](processError,_0x57848f,_0x5afa9c,_0x3e8984,_0x3f3f0f);}};},o11yClassErrorHandler=(_0x22c2c2,_0x13444e,_0x457350='')=>{const _0x47314c=a84_0x458a11,_0x4519d2={'Wqzlk':function(_0x2e3fb0,_0x493d31){return _0x2e3fb0 instanceof _0x493d31;},'obIim':function(_0x483c6e,_0x3df1a9,_0x385af7,_0x24bc1a,_0x33a053){return _0x483c6e(_0x3df1a9,_0x385af7,_0x24bc1a,_0x33a053);},'gWxrr':function(_0x18e575,_0x305478){return _0x18e575===_0x305478;},'LDRwc':_0x47314c(0xd9),'mhQCw':function(_0x4fc83b,_0x3addd4){return _0x4fc83b!==_0x3addd4;},'oSzaA':'constructor','EDBOV':function(_0x3080a8,_0x513f66){return _0x3080a8<_0x513f66;}},_0x3bd42e=_0x22c2c2[_0x47314c(0xe6)];if(_0x4519d2[_0x47314c(0xd8)](Object[_0x47314c(0xc5)](_0x3bd42e)['length'],0x2))return _0x22c2c2;return Object['getOwnPropertyNames'](_0x3bd42e)[_0x47314c(0x12f)](_0x224ec0=>{const _0x3b3105=_0x47314c;if(!(_0x13444e&&_0x13444e[_0x3b3105(0xdd)](_0x224ec0)))return;const _0x13767f=_0x3bd42e[_0x224ec0];_0x4519d2['gWxrr'](typeof _0x13767f,_0x4519d2['LDRwc'])&&_0x4519d2[_0x3b3105(0x129)](_0x224ec0,_0x4519d2[_0x3b3105(0xe1)])&&Object[_0x3b3105(0xc6)](_0x3bd42e,_0x224ec0,{'writable':!![],'value':function(..._0x5435f3){const _0x137b58=_0x3b3105;try{const _0x25278c=(process['env'][_0x137b58(0x110)]?PerformanceTester[_0x137b58(0xf7)]()[_0x137b58(0xd2)](_0x13767f):_0x13767f)[_0x137b58(0x112)](this,..._0x5435f3);if(_0x4519d2[_0x137b58(0xfd)](_0x25278c,Promise))return _0x25278c[_0x137b58(0xe3)](_0x5ff2ba=>processError(_0x5ff2ba,_0x13767f,_0x5435f3,_0x457350));return _0x25278c;}catch(_0x499338){_0x4519d2[_0x137b58(0xfa)](processError,_0x499338,_0x13767f,_0x5435f3,_0x457350);}}});}),_0x22c2c2;};function processError(_0xdb2a5c,_0x3d5dad,_0x175b8a,_0x5e4c1c){const _0x433d49=a84_0x458a11,_0x5e46d7={'UHioB':function(_0x59f77b,_0x4bb7f4){return _0x59f77b(_0x4bb7f4);}};_0x5e46d7[_0x433d49(0xfe)](debug,'Error\x20in\x20executing\x20'+_0x3d5dad[_0x433d49(0x105)]+'\x20--\x20'+_0x5e4c1c+_0x433d49(0x12a)+_0xdb2a5c+_0x433d49(0x11f)+_0x175b8a+'.'),PerformanceTester['captureError'](_0xdb2a5c);let _0x40d898;try{_0x40d898=JSON[_0x433d49(0xd7)](_0x175b8a);}catch(_0x2fd4c9){const _0x32eef0={};_0x32eef0[_0x433d49(0x103)]=0x2,_0x40d898=util[_0x433d49(0xec)](_0x175b8a,_0x32eef0);}CrashReporter[_0x433d49(0x101)]('Error\x20in\x20executing\x20'+_0x3d5dad[_0x433d49(0x105)]+_0x433d49(0xf8)+_0x5e4c1c+_0x433d49(0x12a)+_0xdb2a5c+_0x433d49(0x11f)+_0x40d898+'.',_0xdb2a5c&&_0xdb2a5c['stack']);}class CrashReporter{static ['userConfig']={};static [a84_0x458a11(0xd0)];static [a84_0x458a11(0x100)]={};static[a84_0x458a11(0xcc)](_0x54ed84,_0x4f0f16,_0x1ac89b=null){const _0x36ea50=a84_0x458a11,_0x56a670={'DJBhS':function(_0x3fb533,_0x34ae35){return _0x3fb533(_0x34ae35);},'MjUvU':function(_0x4a8bc9,_0x364b44){return _0x4a8bc9(_0x364b44);}},_0x104c55=_0x54ed84[_0x36ea50(0x10a)],_0x530f8c=_0x54ed84[_0x36ea50(0xd4)];!_0x1ac89b&&(_0x1ac89b=_0x56a670[_0x36ea50(0x116)](getBrowserStackConfig,_0x104c55));!_0x530f8c&&_0x56a670[_0x36ea50(0x116)](getFrameworkVersion,_0x104c55);const _0x264a69={};_0x264a69[_0x36ea50(0x10a)]=_0x104c55,_0x264a69[_0x36ea50(0xd4)]=_0x530f8c,this['setAllDetails'](_0x264a69,_0x4f0f16,_0x56a670[_0x36ea50(0x117)](getUserCredentials,_0x1ac89b));}static[a84_0x458a11(0xdf)](_0x5b5801,_0x22e6b7){const _0x40c8f4=a84_0x458a11,_0x1c51a2={};_0x1c51a2[_0x40c8f4(0x11a)]=_0x5b5801,_0x1c51a2[_0x40c8f4(0x111)]=_0x22e6b7,this[_0x40c8f4(0xd0)]=_0x1c51a2,process[_0x40c8f4(0xdb)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x40c8f4(0xd7)](this[_0x40c8f4(0xd0)]);}static['getCredentials'](){const _0x3275a3=a84_0x458a11,_0x35d6f2={'mcWVy':function(_0x268f85,_0x5126c4){return _0x268f85(_0x5126c4);}};if(!this[_0x3275a3(0xd0)]&&process[_0x3275a3(0xdb)][_0x3275a3(0x130)])try{this[_0x3275a3(0xd0)]=JSON['parse'](process['env'][_0x3275a3(0x130)]);}catch(_0xfd4928){_0x35d6f2[_0x3275a3(0x122)](debug,'Error\x20in\x20parsing\x20credentials\x20from\x20env\x20'+_0xfd4928[_0x3275a3(0xc9)]());}return this[_0x3275a3(0xd0)];}static[a84_0x458a11(0xf2)](_0x228f85){const _0x495854=a84_0x458a11;this[_0x495854(0x12d)]=this[_0x495854(0xe7)](_0x228f85),process[_0x495854(0xdb)]['USER_CONFIG_FOR_REPORTING']=JSON[_0x495854(0xd7)](this[_0x495854(0x12d)]);}static[a84_0x458a11(0xce)](){const _0x4eb601=a84_0x458a11,_0x11bca1={'yCdCA':function(_0x15b9e3,_0x9d1efe){return _0x15b9e3===_0x9d1efe;},'aOKIX':function(_0x335394,_0x147e7d){return _0x335394(_0x147e7d);}};if(_0x11bca1[_0x4eb601(0xf6)](Object[_0x4eb601(0x115)](this[_0x4eb601(0x12d)])[_0x4eb601(0x106)],0x0)&&process[_0x4eb601(0xdb)]['USER_CONFIG_FOR_REPORTING'])try{this[_0x4eb601(0x12d)]=JSON[_0x4eb601(0xf9)](process[_0x4eb601(0xdb)][_0x4eb601(0xde)]);}catch(_0x4f7915){_0x11bca1[_0x4eb601(0xea)](debug,_0x4eb601(0xe8)+_0x4f7915[_0x4eb601(0xc9)]()),this[_0x4eb601(0x12d)]={};}return this['userConfig'];}static[a84_0x458a11(0x12c)](_0x4b1e97){const _0x244b73=a84_0x458a11;this[_0x244b73(0x100)]=_0x4b1e97,process[_0x244b73(0xdb)]['BROWSERSTACK_O11Y_FRAMEWORK_DETAILS']=JSON[_0x244b73(0xd7)](this[_0x244b73(0x100)]);}static[a84_0x458a11(0xd3)](){const _0x10d428=a84_0x458a11,_0x277701={'EasBf':function(_0x26f8a2,_0x12061a){return _0x26f8a2===_0x12061a;},'zXYWR':function(_0x43d0f3,_0x7bc3f5){return _0x43d0f3(_0x7bc3f5);}};if(_0x277701[_0x10d428(0xc8)](Object[_0x10d428(0x115)](this[_0x10d428(0x100)])[_0x10d428(0x106)],0x0)&&process[_0x10d428(0xdb)][_0x10d428(0xf0)])try{this[_0x10d428(0x100)]=JSON[_0x10d428(0xf9)](process[_0x10d428(0xdb)][_0x10d428(0xf0)]);}catch(_0x4a6040){_0x277701['zXYWR'](debug,_0x10d428(0x119)+_0x4a6040[_0x10d428(0xc9)]());}return this[_0x10d428(0x100)];}static[a84_0x458a11(0x108)](_0xc1ca02,_0x202401,_0x2a906f){const _0x3f84d2=a84_0x458a11;_0xc1ca02&&this[_0x3f84d2(0x12c)](_0xc1ca02),_0x202401&&this['setConfigDetails'](_0x202401),_0x2a906f&&this[_0x3f84d2(0xdf)](_0x2a906f['username'],_0x2a906f[_0x3f84d2(0x111)]);}static async[a84_0x458a11(0x101)](_0x26717a,_0x5ee3a5){const _0xfa9f6b=a84_0x458a11,_0x518141={'nArfE':function(_0x2be22a,_0x4e97c6){return _0x2be22a(_0x4e97c6);},'tZETD':function(_0x76233a,_0x51b1e4){return _0x76233a(_0x51b1e4);},'ajhVH':function(_0x4fa306,_0x2b64cd){return _0x4fa306(_0x2b64cd);},'BFzfi':_0xfa9f6b(0x12b),'WNLEy':function(_0x33fa00){return _0x33fa00();},'ZwmUP':_0xfa9f6b(0x109),'ZhGQK':_0xfa9f6b(0x124),'QuaQB':_0xfa9f6b(0x114),'fDuzx':function(_0xe31fb5,_0x39028a,_0x323b3c,_0x20fc05,_0x33db1a,_0x136fb6){return _0xe31fb5(_0x39028a,_0x323b3c,_0x20fc05,_0x33db1a,_0x136fb6);},'uHyLb':_0xfa9f6b(0xe2)};this[_0xfa9f6b(0x11d)]();if(!this['credentials'])return _0x518141['ajhVH'](debug,_0x518141['BFzfi']);this[_0xfa9f6b(0xce)](),this[_0xfa9f6b(0xd3)]();const _0x2f08c5={'hashed_id':process[_0xfa9f6b(0xdb)][_0xfa9f6b(0xe0)],'observability_version':{'sdkVersion':_0x518141[_0xfa9f6b(0xf4)](getAgentVersion),'frameworkName':this['frameworkDetails'][_0xfa9f6b(0x10a)],'frameworkVersion':this[_0xfa9f6b(0x100)]['frameworkVersion']},'exception':{'error':_0x26717a[_0xfa9f6b(0xc9)](),'stackTrace':_0x5ee3a5},'config':this[_0xfa9f6b(0x12d)]},_0x14ec63=_0x518141['ZwmUP'],_0x54ab69={};_0x54ab69[_0xfa9f6b(0x11a)]=this[_0xfa9f6b(0xd0)]['username'],_0x54ab69[_0xfa9f6b(0x10d)]=this[_0xfa9f6b(0xd0)][_0xfa9f6b(0x111)];const _0x549862={};_0x549862['Content-Type']=_0x518141['ZhGQK'],_0x549862[_0xfa9f6b(0xcd)]=_0x518141[_0xfa9f6b(0xee)];const _0x44bdb3={};_0x44bdb3[_0xfa9f6b(0x121)]=_0x54ab69,_0x44bdb3['headers']=_0x549862;const _0x4901fe=_0x44bdb3;_0x518141[_0xfa9f6b(0xf5)](nodeRequest,_0x518141['uHyLb'],_0x14ec63,_0x2f08c5,_0x4901fe,![])[_0xfa9f6b(0x12e)](_0x159dba=>{const _0x26a33c=_0xfa9f6b;_0x518141['nArfE'](debug,_0x26a33c(0x102)+JSON[_0x26a33c(0xd7)](_0x159dba));})[_0xfa9f6b(0xe3)](_0x36367a=>{const _0x2fda4c=_0xfa9f6b;_0x518141[_0x2fda4c(0x125)](debug,_0x2fda4c(0xf1)+util[_0x2fda4c(0xeb)](_0x36367a));});}static['recursivelyDeletePIIKeysFromObject'](_0x5385cc){const _0x5f4f2a=a84_0x458a11,_0x4700e3={};_0x4700e3['hCNad']='user',_0x4700e3[_0x5f4f2a(0xcf)]=_0x5f4f2a(0x11a),_0x4700e3[_0x5f4f2a(0x118)]=_0x5f4f2a(0x11b),_0x4700e3[_0x5f4f2a(0x10f)]=_0x5f4f2a(0x111),_0x4700e3[_0x5f4f2a(0x10b)]=_0x5f4f2a(0x10d),_0x4700e3['dbBIG']=function(_0x246bfd,_0x55aa7c){return _0x246bfd===_0x55aa7c;},_0x4700e3[_0x5f4f2a(0xc7)]=_0x5f4f2a(0xd6);const _0x1e70a5=_0x4700e3;if(!_0x5385cc)return;const _0x46ac0c=[_0x1e70a5['hCNad'],_0x1e70a5[_0x5f4f2a(0xcf)],_0x1e70a5[_0x5f4f2a(0x118)],_0x1e70a5['hbZtg'],_0x1e70a5[_0x5f4f2a(0x10b)]];for(const _0x73d1e7 in _0x5385cc){if(_0x46ac0c[_0x5f4f2a(0xdd)](_0x73d1e7['toLowerCase']()))delete _0x5385cc[_0x73d1e7];else _0x1e70a5[_0x5f4f2a(0x120)](typeof _0x5385cc[_0x73d1e7],_0x1e70a5[_0x5f4f2a(0xc7)])&&this['recursivelyDeletePIIKeysFromObject'](_0x5385cc[_0x73d1e7]);}}static[a84_0x458a11(0xe7)](_0x30a6bb){const _0x491c1b=a84_0x458a11,_0x29d01e=JSON[_0x491c1b(0xf9)](JSON[_0x491c1b(0xd7)](_0x30a6bb));return this[_0x491c1b(0x104)](_0x29d01e),_0x29d01e;}}function a84_0x471f(){const _0x2ffe33=['yCdCA','getPerformance','\x20--\x20','parse','obIim','./utils','6305rgRWcu','Wqzlk','UHioB','7UDvjED','frameworkDetails','uploadCrashReport','[Crash_Report_Upload]\x20Success\x20response:\x20','depth','recursivelyDeletePIIKeysFromObject','name','length','13558730oQpNzK','setAllDetails','/api/v1/analytics','frameworkName','Zeaca','Finished\x20::\x20','password',',\x20Argument\x20-\x20','hbZtg','BROWSERSTACK_O11Y_PERF_MEASUREMENT','accessKey','call','../helper','true','keys','DJBhS','MjUvU','IyrdQ','Error\x20in\x20parsing\x20credentials\x20from\x20env\x20','username','key','472sezLnt','getCredentials','7361442GfgLap','.\x20Args\x20-\x20','dbBIG','auth','mcWVy','86838MsonYJ','application/json','tZETD','CrashReporter','11sXmTAh','Mcefb','mhQCw','.\x20Error\x20-\x20','[Crash_Report_Upload]\x20Failed\x20to\x20parse\x20user\x20credentials\x20while\x20reporting\x20crash','setFrameworkDetails','userConfig','then','forEach','CREDENTIALS_FOR_CRASH_REPORTING','getOwnPropertyNames','defineProperty','Myyyu','EasBf','toString','pid','8840004ZCURwo','initialize','X-BSTACK-TESTOPS','getConfig','uofgM','credentials','o11yClassErrorHandler','timerify','getFramework','frameworkVersion','Started\x20::\x20','object','stringify','EDBOV','function','3036639jzrHgw','env','apply','includes','USER_CONFIG_FOR_REPORTING','setCredentials','BS_TESTOPS_BUILD_HASHED_ID','oSzaA','POST','catch',',\x20PID\x20-\x20','exports','prototype','filterPII','Error\x20in\x20parsing\x20user\x20config\x20from\x20env\x20','khScy','aOKIX','format','inspect','9VcAZyK','QuaQB','1833872QeVrxS','BROWSERSTACK_O11Y_FRAMEWORK_DETAILS','[Crash_Report_Upload]\x20Failed\x20due\x20to\x20','setConfigDetails','o11yErrorHandler','WNLEy','fDuzx'];a84_0x471f=function(){return _0x2ffe33;};return a84_0x471f();}function a84_0x26a7(_0x1bb33d,_0x4301fd){const _0x471f6d=a84_0x471f();return a84_0x26a7=function(_0x26a7bb,_0x3c16f3){_0x26a7bb=_0x26a7bb-0xc5;let _0x465905=_0x471f6d[_0x26a7bb];return _0x465905;},a84_0x26a7(_0x1bb33d,_0x4301fd);}const a84_0x2656d3={};a84_0x2656d3[a84_0x458a11(0xf3)]=o11yErrorHandler,a84_0x2656d3[a84_0x458a11(0xd1)]=o11yClassErrorHandler,a84_0x2656d3[a84_0x458a11(0x126)]=CrashReporter,module[a84_0x458a11(0xe5)]=a84_0x2656d3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a85_0x30bb(){const _0x21d2bc=['CBTSessionCreated','jLBkG','.\x20Request\x20Size\x20-\x20','724244XxXlTx','XWeMt','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','started','splice','TgWzr','TTLgQ','EXCEPTION\x20IN\x20','data','HookRunStarted','5|3|0|4|1|2','hsTsh','aRIjc','includes','dBlxR','resetEventBatchPolling','logs','TestRunFinished','eventUrl','Processing\x20batch\x20events\x20for\x20','PTdOP','zpTtw','yNsws','18cecUtR','response','wUdgc','BScVM','2849072zkSAec','util','uuid','WNQnu','pollEventBatchInterval','FbxWg','byteLength','qBEAk','2778610YPLZrB','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','length','JZNMY','pendingUploads','utf8','format','BnhsR','max','map','message','bjEbp','batchAndPostEvents','aNXjp','TEST_SCREENSHOT','TestRunStarted','12007930ZVANrN','kind','split','Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..','hook_run','\x20event\x20successful\x20for\x20events\x20','join','Interval-Queue','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','30vzdZpC','queue','bETbF','9azmqXz','LogCreated','startEventBatchPolling','screenshotEventUrl','statusText','stringify','removeEventBatchPolling','2344EaezQz','XLaEi','VjfiT','Shutdown-Queue','11ixYoum','TBnbY','event_type','error','zLyqq','add','\x20--\x20','RESETTING','jCXOE','proceedWithData','instance','HookRunFinished','438BxIsnV','Remaining\x20Queue\x20Length\x20-\x20','YsZoc','REMOVING','JnsBm','TAlXD','api/v1/screenshots','804BbhOBK','shutdown','uploadPending','proceedWithUrl','shouldProceed','383117YiTCBS','slice','78065MWSfLu','orhlt','exports','QHcBd','BATCH_EVENT_TYPES','wnAKE','fIgOF','getInstance','api/v1/batch','test_run'];a85_0x30bb=function(){return _0x21d2bc;};return a85_0x30bb();}const a85_0x3bd5dc=a85_0x337a;(function(_0x2678de,_0x5194c1){const _0xf4e9d3=a85_0x337a,_0x75ca96=_0x2678de();while(!![]){try{const _0x1d2b67=parseInt(_0xf4e9d3(0xdc))/0x1*(-parseInt(_0xf4e9d3(0xec))/0x2)+-parseInt(_0xf4e9d3(0x11e))/0x3*(-parseInt(_0xf4e9d3(0x107))/0x4)+-parseInt(_0xf4e9d3(0x12a))/0x5+-parseInt(_0xf4e9d3(0xd2))/0x6*(parseInt(_0xf4e9d3(0xf8))/0x7)+-parseInt(_0xf4e9d3(0x122))/0x8*(-parseInt(_0xf4e9d3(0xd5))/0x9)+-parseInt(_0xf4e9d3(0xc9))/0xa*(-parseInt(_0xf4e9d3(0xe0))/0xb)+parseInt(_0xf4e9d3(0xf3))/0xc*(-parseInt(_0xf4e9d3(0xfa))/0xd);if(_0x1d2b67===_0x5194c1)break;else _0x75ca96['push'](_0x75ca96['shift']());}catch(_0xaa3f31){_0x75ca96['push'](_0x75ca96['shift']());}}}(a85_0x30bb,0xdb4c5));function a85_0x337a(_0x2922ee,_0x3e63be){const _0x30bbfb=a85_0x30bb();return a85_0x337a=function(_0x337a3b,_0x4201fc){_0x337a3b=_0x337a3b-0xc0;let _0x50fb59=_0x30bbfb[_0x337a3b];return _0x50fb59;},a85_0x337a(_0x2922ee,_0x3e63be);}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(a85_0x3bd5dc(0x123));class RequestQueueHandler{static [a85_0x3bd5dc(0xea)];[a85_0x3bd5dc(0x12e)]=0x0;constructor(){const _0x37a3bf=a85_0x3bd5dc,_0x26dccc={};_0x26dccc['CvccE']=_0x37a3bf(0x111),_0x26dccc[_0x37a3bf(0xe8)]=_0x37a3bf(0x102),_0x26dccc[_0x37a3bf(0x113)]=_0x37a3bf(0xd6),_0x26dccc[_0x37a3bf(0xf0)]=_0x37a3bf(0x104),_0x26dccc[_0x37a3bf(0x115)]=_0x37a3bf(0x118),_0x26dccc[_0x37a3bf(0xe4)]='TestRunSkipped',_0x26dccc['QHcBd']=_0x37a3bf(0xeb),_0x26dccc[_0x37a3bf(0x100)]=_0x37a3bf(0xc8),_0x26dccc[_0x37a3bf(0xfb)]=_0x37a3bf(0x110),_0x26dccc[_0x37a3bf(0x10c)]=_0x37a3bf(0xf2);const _0x19cb59=_0x26dccc,_0xfb61e8=_0x19cb59['CvccE'][_0x37a3bf(0xcb)]('|');let _0xd102e9=0x0;while(!![]){switch(_0xfb61e8[_0xd102e9++]){case'0':this['eventUrl']=_0x19cb59[_0x37a3bf(0xe8)];continue;case'1':this[_0x37a3bf(0xfe)]=[_0x19cb59[_0x37a3bf(0x113)],_0x19cb59[_0x37a3bf(0xf0)],_0x19cb59[_0x37a3bf(0x115)],_0x19cb59['zLyqq'],_0x19cb59[_0x37a3bf(0xfd)],_0x19cb59[_0x37a3bf(0x100)],_0x19cb59[_0x37a3bf(0xfb)]];continue;case'2':this[_0x37a3bf(0x126)]=null;continue;case'3':this[_0x37a3bf(0x10a)]=![];continue;case'4':this[_0x37a3bf(0xd8)]=_0x19cb59['TgWzr'];continue;case'5':this[_0x37a3bf(0xd3)]=[];continue;}break;}}static[a85_0x3bd5dc(0x101)](){const _0x272478=a85_0x3bd5dc;return!RequestQueueHandler[_0x272478(0xea)]&&(RequestQueueHandler[_0x272478(0xea)]=new RequestQueueHandler()),RequestQueueHandler['instance'];}['start']=()=>{const _0x58ac8c=a85_0x3bd5dc;!this[_0x58ac8c(0x10a)]&&(this['started']=!![],this[_0x58ac8c(0xd7)]());};[a85_0x3bd5dc(0xe5)]=_0x3c3707=>{const _0x4578b6=a85_0x3bd5dc,_0x425ef5={'eYscB':function(_0x4240b3,_0x3a9010){return _0x4240b3===_0x3a9010;},'qhpsI':_0x4578b6(0xc7),'hASAr':function(_0x18bfe5,_0x3b89b0){return _0x18bfe5(_0x3b89b0);},'XWeMt':_0x4578b6(0xcc)};if(this[_0x4578b6(0xfe)][_0x4578b6(0x114)](_0x3c3707['event_type'])){if(_0x3c3707[_0x4578b6(0x117)]&&_0x3c3707[_0x4578b6(0x117)][0x0]&&_0x425ef5['eYscB'](_0x3c3707['logs'][0x0][_0x4578b6(0xca)],_0x425ef5['qhpsI'])){const _0x2ffb33={};return _0x2ffb33['shouldProceed']=!![],_0x2ffb33[_0x4578b6(0xe9)]=[_0x3c3707],_0x2ffb33['proceedWithUrl']=this[_0x4578b6(0xd8)],_0x2ffb33;}this[_0x4578b6(0xd3)]['push'](_0x3c3707);let _0x3bcfbf=null;const _0x3499b5=this[_0x4578b6(0xf7)]();_0x3499b5&&(_0x425ef5['hASAr'](trace,_0x425ef5[_0x4578b6(0x108)]),_0x3bcfbf=this[_0x4578b6(0xd3)][_0x4578b6(0xf9)](0x0,BATCH_SIZE),this[_0x4578b6(0xd3)][_0x4578b6(0x10b)](0x0,BATCH_SIZE),this[_0x4578b6(0x116)]());const _0xf9142c={};return _0xf9142c['shouldProceed']=_0x3499b5,_0xf9142c['proceedWithData']=_0x3bcfbf,_0xf9142c[_0x4578b6(0xf6)]=this[_0x4578b6(0x119)],_0xf9142c;}const _0x1a565d={};return _0x1a565d[_0x4578b6(0xf7)]=!![],_0x1a565d;};[a85_0x3bd5dc(0xf4)]=async()=>{const _0x32b0a1=a85_0x3bd5dc,_0x49d7d0={'PTdOP':_0x32b0a1(0xef),'OkQGF':function(_0x4954ef,_0x425878){return _0x4954ef>_0x425878;},'WNQnu':_0x32b0a1(0xdf),'VjfiT':function(_0x551228,_0x270576){return _0x551228(_0x270576);}};await this[_0x32b0a1(0xf5)](),this[_0x32b0a1(0xdb)](_0x49d7d0[_0x32b0a1(0x11b)]);while(_0x49d7d0['OkQGF'](this[_0x32b0a1(0xd3)][_0x32b0a1(0x12c)],0x0)){const _0x2b23d4=this[_0x32b0a1(0xd3)]['slice'](0x0,BATCH_SIZE);this[_0x32b0a1(0xd3)]['splice'](0x0,BATCH_SIZE),await this[_0x32b0a1(0xc5)](this[_0x32b0a1(0x119)],_0x49d7d0[_0x32b0a1(0x125)],_0x2b23d4);}_0x49d7d0['OkQGF'](this[_0x32b0a1(0x12e)],0x0)&&_0x49d7d0[_0x32b0a1(0xde)](debug,_0x32b0a1(0xd1)+this[_0x32b0a1(0x12e)]);};[a85_0x3bd5dc(0xc5)]=async(_0x1b6207,_0x112dbc,_0x55288f)=>{const _0x2766f0=a85_0x3bd5dc,_0x4bf8c2={'qBEAk':function(_0x5bc2c4,_0x1ee498){return _0x5bc2c4(_0x1ee498);},'TTLgQ':_0x2766f0(0x12f),'FbxWg':function(_0x56d7d2){return _0x56d7d2();},'BnhsR':function(_0xec3e01,_0x425beb,_0x46b7e5,_0x2ebe48,_0x509691){return _0xec3e01(_0x425beb,_0x46b7e5,_0x2ebe48,_0x509691);},'hsTsh':'POST','zpTtw':function(_0x28c5c8,_0x1d95b2){return _0x28c5c8(_0x1d95b2);},'JZNMY':function(_0x127a1a,_0x58369f){return _0x127a1a-_0x58369f;},'bjEbp':function(_0x2e62ce,_0x57d82e){return _0x2e62ce(_0x57d82e);}};let _0x3a0932='';try{_0x3a0932=_0x55288f[_0x2766f0(0xc2)](_0xb2b222=>'\x27'+_0xb2b222[_0x2766f0(0xe2)]+'\x27:'+(nestedKeyValue(_0xb2b222,[_0x2766f0(0x103),_0x2766f0(0x124)])||nestedKeyValue(_0xb2b222,[_0x2766f0(0xcd),_0x2766f0(0x124)])))[_0x2766f0(0xcf)](','),_0x4bf8c2[_0x2766f0(0x129)](debug,_0x2766f0(0x11a)+_0x112dbc+_0x2766f0(0x106)+Buffer[_0x2766f0(0x128)](util[_0x2766f0(0x130)]('%j',_0x55288f),_0x4bf8c2[_0x2766f0(0x10d)])+'\x20bytes.\x20Events\x20are\x20'+_0x3a0932);}catch(_0x3a160e){_0x4bf8c2[_0x2766f0(0x129)](debug,_0x2766f0(0x12b)+util[_0x2766f0(0x130)](_0x3a160e)+'}');}const _0x189b0b={'headers':_0x4bf8c2[_0x2766f0(0x127)](getDefaultHeaders)};try{const _0x3cfffc=await _0x4bf8c2[_0x2766f0(0xc0)](nodeRequest,_0x4bf8c2[_0x2766f0(0x112)],_0x1b6207,_0x55288f,_0x189b0b);if(_0x3cfffc[_0x2766f0(0x10f)][_0x2766f0(0xe3)]){const _0xf411be={};_0xf411be['message']=_0x3cfffc['data']['error'];throw _0xf411be;}else _0x4bf8c2[_0x2766f0(0x11c)](debug,_0x112dbc+_0x2766f0(0xce)+_0x3a0932+_0x2766f0(0xe6)+util[_0x2766f0(0x130)]('%j',_0x3cfffc['data'])),this[_0x2766f0(0x12e)]=Math[_0x2766f0(0xc1)](0x0,_0x4bf8c2[_0x2766f0(0x12d)](this[_0x2766f0(0x12e)],_0x55288f[_0x2766f0(0x12c)]));}catch(_0x1cd5a2){_0x1cd5a2[_0x2766f0(0x11f)]?_0x4bf8c2[_0x2766f0(0xc4)](debug,_0x2766f0(0x10e)+_0x112dbc+_0x2766f0(0x109)+_0x1cd5a2[_0x2766f0(0x11f)]['status']+'\x20'+_0x1cd5a2[_0x2766f0(0x11f)][_0x2766f0(0xd9)]+'\x20'+JSON[_0x2766f0(0xda)](_0x1cd5a2[_0x2766f0(0x11f)])):_0x4bf8c2[_0x2766f0(0x11c)](debug,_0x2766f0(0x10e)+_0x112dbc+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+(_0x1cd5a2[_0x2766f0(0xc3)]||_0x1cd5a2)),this['pendingUploads']=Math[_0x2766f0(0xc1)](0x0,_0x4bf8c2['JZNMY'](this['pendingUploads'],_0x55288f['length']));}};[a85_0x3bd5dc(0xd7)]=()=>{const _0x4e60ef=a85_0x3bd5dc,_0xc78019={'jLBkG':function(_0x34e6d8,_0x397d06){return _0x34e6d8>_0x397d06;},'Uowmh':function(_0x358ce5,_0x39374c){return _0x358ce5(_0x39374c);},'wnAKE':_0x4e60ef(0xd0),'BScVM':function(_0x4f0477,_0x5b3385){return _0x4f0477(_0x5b3385);},'YsZoc':function(_0x4b2e68,_0x1cb38d,_0x4496e6){return _0x4b2e68(_0x1cb38d,_0x4496e6);}};this['pollEventBatchInterval']=_0xc78019[_0x4e60ef(0xee)](setInterval,async()=>{const _0x2d5f0e=_0x4e60ef;if(_0xc78019[_0x2d5f0e(0x105)](this[_0x2d5f0e(0xd3)][_0x2d5f0e(0x12c)],0x0)){_0xc78019['Uowmh'](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this['queue'][_0x2d5f0e(0x12c)]);const _0x40dec5=this[_0x2d5f0e(0xd3)]['slice'](0x0,BATCH_SIZE);this['queue'][_0x2d5f0e(0x10b)](0x0,BATCH_SIZE),await this[_0x2d5f0e(0xc5)](this[_0x2d5f0e(0x119)],_0xc78019[_0x2d5f0e(0xff)],_0x40dec5),_0xc78019[_0x2d5f0e(0x121)](trace,_0x2d5f0e(0xed)+this[_0x2d5f0e(0xd3)]['length']);}},BATCH_INTERVAL);};[a85_0x3bd5dc(0x116)]=()=>{const _0x32679f=a85_0x3bd5dc,_0x495106={};_0x495106[_0x32679f(0xdd)]=_0x32679f(0xe7);const _0x307637=_0x495106;this[_0x32679f(0xdb)](_0x307637[_0x32679f(0xdd)]),this['startEventBatchPolling']();};[a85_0x3bd5dc(0xdb)]=_0x501b1e=>{const _0x5b614c=a85_0x3bd5dc,_0x56d288={'TAlXD':function(_0x2920ee,_0x695941){return _0x2920ee(_0x695941);},'yNsws':function(_0x8e63f3,_0x57bd6a){return _0x8e63f3===_0x57bd6a;},'bETbF':_0x5b614c(0xef)};this['pollEventBatchInterval']&&(_0x56d288[_0x5b614c(0xf1)](clearInterval,this['pollEventBatchInterval']),this[_0x5b614c(0x126)]=null,_0x56d288[_0x5b614c(0x11d)](_0x501b1e,_0x56d288[_0x5b614c(0xd4)])&&(this[_0x5b614c(0x10a)]=![]));};[a85_0x3bd5dc(0xf7)]=()=>{const _0x2b828f=a85_0x3bd5dc,_0x944ea2={};_0x944ea2[_0x2b828f(0x120)]=function(_0x4d793e,_0x15064c){return _0x4d793e>=_0x15064c;};const _0x4ba052=_0x944ea2;return _0x4ba052[_0x2b828f(0x120)](this[_0x2b828f(0xd3)][_0x2b828f(0x12c)],BATCH_SIZE);};async[a85_0x3bd5dc(0xf5)](_0x7a2527=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x267ac1=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x56d9f5=a85_0x3bd5dc,_0x499142={'aNXjp':function(_0x142410,_0x25415e){return _0x142410<=_0x25415e;},'UXQGa':function(_0x1c1f88,_0x4b8d09){return _0x1c1f88(_0x4b8d09);},'TBnbY':function(_0x3148be,_0x47ef2c){return _0x3148be-_0x47ef2c;}};if(_0x499142['aNXjp'](this['pendingUploads'],0x0)||_0x499142[_0x56d9f5(0xc6)](_0x7a2527,0x0))return;return await _0x499142['UXQGa'](sleep,_0x267ac1),this[_0x56d9f5(0xf5)](_0x499142[_0x56d9f5(0xe1)](_0x7a2527,_0x267ac1));}}module[a85_0x3bd5dc(0xfc)]=RequestQueueHandler;
|
|
1
|
+
function a85_0xefcc(){const _0x5d4898=['HookRunFinished','ssTBA','pollEventBatchInterval','slice','TestRunStarted','event_type','TestRunFinished','../helper','FPNtC','1684107lHMWsR','REMOVING','XCuHB','4246845rNcGBv','api/v1/screenshots','eventUrl','screenshotEventUrl','started','hook_run','lwVhM','message','kind','TestRunSkipped','RESETTING','HookRunStarted','format','getInstance','./constants','kjobO','add','split','43212OZrcrQ','ktMhh','5141708fjMfuL','data','486793kQbzuM','324KTpLZe','logs','138dhrNId','test_run','response','vDvWh','QPXTq','19080110iBVOvg','length','CzgBu','proceedWithUrl','queue','AULvo','56msibmI','mQUxG','MkvVY','MDJZN','Shutting\x20down\x20request\x20batcher\x20with\x20pending\x20uploads\x20still\x20in\x20queue.\x20Remaining\x20uploads\x20','uuid','JnNcP','fznMl','zKxvM','KKeVQ','BEAYu','uploadPending','TEST_SCREENSHOT','LogCreated','proceedWithData','shouldProceed','api/v1/batch','pendingUploads','Exception\x20in\x20logging\x20batch\x20events\x20--\x20','tdWST','Processing\x20batch\x20events\x20for\x20','qlegC','MYkmZ','ldMHe','HoAfK','plzcV','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','instance','error','jhocn','batchAndPostEvents','startEventBatchPolling','removeEventBatchPolling','byteLength','BATCH_EVENT_TYPES','BxcZo','shutdown','qqMgL','exports','2|0|4|5|3|1','bySNV','resetEventBatchPolling','max','LHTvG','ZDkvc','69643MTfbVf','map','splice','EXCEPTION\x20IN\x20','bbauO','Remaining\x20Queue\x20Length\x20-\x20','statusText','gpaOX','NIWaI'];a85_0xefcc=function(){return _0x5d4898;};return a85_0xefcc();}const a85_0x15c3c3=a85_0x491f;(function(_0x2eeb35,_0x53ed94){const _0x18ee78=a85_0x491f,_0x44a856=_0x2eeb35();while(!![]){try{const _0x1ca0f1=-parseInt(_0x18ee78(0x1f0))/0x1+parseInt(_0x18ee78(0x1ec))/0x2*(-parseInt(_0x18ee78(0x1f3))/0x3)+-parseInt(_0x18ee78(0x1ee))/0x4+parseInt(_0x18ee78(0x1da))/0x5+-parseInt(_0x18ee78(0x1f1))/0x6*(parseInt(_0x18ee78(0x1c5))/0x7)+parseInt(_0x18ee78(0x1fe))/0x8*(parseInt(_0x18ee78(0x1d7))/0x9)+parseInt(_0x18ee78(0x1f8))/0xa;if(_0x1ca0f1===_0x53ed94)break;else _0x44a856['push'](_0x44a856['shift']());}catch(_0x1fff05){_0x44a856['push'](_0x44a856['shift']());}}}(a85_0xefcc,0xba7fb));const {BATCH_SIZE,BATCH_INTERVAL,DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS}=require(a85_0x15c3c3(0x1e8)),{nodeRequest,debug,trace,sleep,getDefaultHeaders}=require('./utils'),{nestedKeyValue}=require(a85_0x15c3c3(0x1d5)),util=require('util');class RequestQueueHandler{static [a85_0x15c3c3(0x1b3)];[a85_0x15c3c3(0x20f)]=0x0;constructor(){const _0x58ab40=a85_0x15c3c3,_0x3c7007={};_0x3c7007[_0x58ab40(0x1ed)]=_0x58ab40(0x1bf),_0x3c7007[_0x58ab40(0x1c9)]=_0x58ab40(0x20b),_0x3c7007[_0x58ab40(0x215)]='CBTSessionCreated',_0x3c7007['gSAWh']=_0x58ab40(0x1d4),_0x3c7007[_0x58ab40(0x1c4)]=_0x58ab40(0x1e3),_0x3c7007[_0x58ab40(0x204)]=_0x58ab40(0x1ce),_0x3c7007[_0x58ab40(0x1f7)]=_0x58ab40(0x1d2),_0x3c7007[_0x58ab40(0x208)]=_0x58ab40(0x1e5),_0x3c7007['XCuHB']=_0x58ab40(0x20e),_0x3c7007[_0x58ab40(0x200)]=_0x58ab40(0x1db);const _0x371615=_0x3c7007,_0x4beb2b=_0x371615['ktMhh'][_0x58ab40(0x1eb)]('|');let _0x1072fc=0x0;while(!![]){switch(_0x4beb2b[_0x1072fc++]){case'0':this[_0x58ab40(0x1de)]=![];continue;case'1':this['pollEventBatchInterval']=null;continue;case'2':this[_0x58ab40(0x1fc)]=[];continue;case'3':this[_0x58ab40(0x1ba)]=[_0x371615[_0x58ab40(0x1c9)],_0x371615[_0x58ab40(0x215)],_0x371615['gSAWh'],_0x371615['ZDkvc'],_0x371615[_0x58ab40(0x204)],_0x371615['QPXTq'],_0x371615['BEAYu']];continue;case'4':this[_0x58ab40(0x1dc)]=_0x371615[_0x58ab40(0x1d9)];continue;case'5':this[_0x58ab40(0x1dd)]=_0x371615[_0x58ab40(0x200)];continue;}break;}}static[a85_0x15c3c3(0x1e7)](){const _0x4d0d29=a85_0x15c3c3;return!RequestQueueHandler['instance']&&(RequestQueueHandler[_0x4d0d29(0x1b3)]=new RequestQueueHandler()),RequestQueueHandler[_0x4d0d29(0x1b3)];}['start']=()=>{const _0x8d666=a85_0x15c3c3;!this['started']&&(this[_0x8d666(0x1de)]=!![],this[_0x8d666(0x1b7)]());};[a85_0x15c3c3(0x1ea)]=_0x3a7e76=>{const _0x1140ca=a85_0x15c3c3,_0x53531f={'MYkmZ':function(_0x19d937,_0x25b834){return _0x19d937===_0x25b834;},'NIWaI':_0x1140ca(0x20a),'FPNtC':function(_0x3cd609,_0x12afc9){return _0x3cd609(_0x12afc9);},'CzgBu':'Batch\x20event\x20length\x20has\x20increased\x20maximum\x20batch\x20size.\x20Sending\x20events..'};if(this[_0x1140ca(0x1ba)]['includes'](_0x3a7e76[_0x1140ca(0x1d3)])){if(_0x3a7e76[_0x1140ca(0x1f2)]&&_0x3a7e76[_0x1140ca(0x1f2)][0x0]&&_0x53531f[_0x1140ca(0x214)](_0x3a7e76[_0x1140ca(0x1f2)][0x0][_0x1140ca(0x1e2)],_0x53531f[_0x1140ca(0x1cd)])){const _0x5a5912={};return _0x5a5912[_0x1140ca(0x20d)]=!![],_0x5a5912[_0x1140ca(0x20c)]=[_0x3a7e76],_0x5a5912[_0x1140ca(0x1fb)]=this[_0x1140ca(0x1dd)],_0x5a5912;}this[_0x1140ca(0x1fc)]['push'](_0x3a7e76);let _0x1606d9=null;const _0x2a0933=this[_0x1140ca(0x20d)]();_0x2a0933&&(_0x53531f[_0x1140ca(0x1d6)](trace,_0x53531f[_0x1140ca(0x1fa)]),_0x1606d9=this['queue'][_0x1140ca(0x1d1)](0x0,BATCH_SIZE),this[_0x1140ca(0x1fc)][_0x1140ca(0x1c7)](0x0,BATCH_SIZE),this[_0x1140ca(0x1c1)]());const _0x4a143e={};return _0x4a143e['shouldProceed']=_0x2a0933,_0x4a143e['proceedWithData']=_0x1606d9,_0x4a143e['proceedWithUrl']=this['eventUrl'],_0x4a143e;}const _0x415aab={};return _0x415aab[_0x1140ca(0x20d)]=!![],_0x415aab;};[a85_0x15c3c3(0x1bc)]=async()=>{const _0x362f3d=a85_0x15c3c3,_0x47c7f5={'tdWST':_0x362f3d(0x1d8),'LHTvG':function(_0x5325fd,_0x24ac40){return _0x5325fd>_0x24ac40;},'lwVhM':'Shutdown-Queue','pIokA':function(_0x232d15,_0x4d9e63){return _0x232d15>_0x4d9e63;},'kjobO':function(_0x2ba39f,_0x3b0897){return _0x2ba39f(_0x3b0897);}};await this['uploadPending'](),this[_0x362f3d(0x1b8)](_0x47c7f5[_0x362f3d(0x211)]);while(_0x47c7f5[_0x362f3d(0x1c3)](this[_0x362f3d(0x1fc)][_0x362f3d(0x1f9)],0x0)){const _0x488c47=this['queue'][_0x362f3d(0x1d1)](0x0,BATCH_SIZE);this[_0x362f3d(0x1fc)]['splice'](0x0,BATCH_SIZE),await this[_0x362f3d(0x1b6)](this[_0x362f3d(0x1dc)],_0x47c7f5[_0x362f3d(0x1e0)],_0x488c47);}_0x47c7f5['pIokA'](this[_0x362f3d(0x20f)],0x0)&&_0x47c7f5[_0x362f3d(0x1e9)](debug,_0x362f3d(0x202)+this['pendingUploads']);};[a85_0x15c3c3(0x1b6)]=async(_0x41c462,_0x55cf02,_0x3120cf)=>{const _0x185aeb=a85_0x15c3c3,_0x5779fe={'qqMgL':function(_0x3eae8b,_0x2731b9){return _0x3eae8b(_0x2731b9);},'plzcV':'utf8','ZtpFK':function(_0x234d31){return _0x234d31();},'KKeVQ':function(_0x3687f3,_0x1a9bfb,_0x13568d,_0x131eb8,_0x425964){return _0x3687f3(_0x1a9bfb,_0x13568d,_0x131eb8,_0x425964);},'HoAfK':'POST','jhocn':function(_0x4cc5f2,_0x1fe749){return _0x4cc5f2-_0x1fe749;}};let _0x1a1691='';try{_0x1a1691=_0x3120cf[_0x185aeb(0x1c6)](_0x536c2c=>'\x27'+_0x536c2c['event_type']+'\x27:'+(nestedKeyValue(_0x536c2c,[_0x185aeb(0x1f4),_0x185aeb(0x203)])||nestedKeyValue(_0x536c2c,[_0x185aeb(0x1df),'uuid'])))['join'](','),_0x5779fe[_0x185aeb(0x1bd)](debug,_0x185aeb(0x212)+_0x55cf02+'.\x20Request\x20Size\x20-\x20'+Buffer[_0x185aeb(0x1b9)](util[_0x185aeb(0x1e6)]('%j',_0x3120cf),_0x5779fe[_0x185aeb(0x217)])+'\x20bytes.\x20Events\x20are\x20'+_0x1a1691);}catch(_0x6a4884){_0x5779fe[_0x185aeb(0x1bd)](debug,_0x185aeb(0x210)+util[_0x185aeb(0x1e6)](_0x6a4884)+'}');}const _0xc14ea0={'headers':_0x5779fe['ZtpFK'](getDefaultHeaders)};try{const _0x1634bd=await _0x5779fe[_0x185aeb(0x207)](nodeRequest,_0x5779fe[_0x185aeb(0x216)],_0x41c462,_0x3120cf,_0xc14ea0);if(_0x1634bd[_0x185aeb(0x1ef)]['error']){const _0x37440c={};_0x37440c['message']=_0x1634bd[_0x185aeb(0x1ef)][_0x185aeb(0x1b4)];throw _0x37440c;}else _0x5779fe[_0x185aeb(0x1bd)](debug,_0x55cf02+'\x20event\x20successful\x20for\x20events\x20'+_0x1a1691+'\x20--\x20'+util[_0x185aeb(0x1e6)]('%j',_0x1634bd[_0x185aeb(0x1ef)])),this[_0x185aeb(0x20f)]=Math[_0x185aeb(0x1c2)](0x0,_0x5779fe[_0x185aeb(0x1b5)](this['pendingUploads'],_0x3120cf[_0x185aeb(0x1f9)]));}catch(_0x19edc5){_0x19edc5[_0x185aeb(0x1f5)]?_0x5779fe[_0x185aeb(0x1bd)](debug,_0x185aeb(0x1c8)+_0x55cf02+_0x185aeb(0x1b2)+_0x19edc5[_0x185aeb(0x1f5)]['status']+'\x20'+_0x19edc5['response'][_0x185aeb(0x1cb)]+'\x20'+util['format']('%j',_0x19edc5[_0x185aeb(0x1f5)])):_0x5779fe[_0x185aeb(0x1bd)](debug,_0x185aeb(0x1c8)+_0x55cf02+_0x185aeb(0x1b2)+(_0x19edc5[_0x185aeb(0x1e1)]||_0x19edc5)),this[_0x185aeb(0x20f)]=Math[_0x185aeb(0x1c2)](0x0,_0x5779fe[_0x185aeb(0x1b5)](this[_0x185aeb(0x20f)],_0x3120cf[_0x185aeb(0x1f9)]));}};[a85_0x15c3c3(0x1b7)]=()=>{const _0x3ef64f=a85_0x15c3c3,_0x2aaa64={'AULvo':function(_0x2ed2b6,_0x16dab2){return _0x2ed2b6>_0x16dab2;},'qlegC':function(_0x3ecb96,_0x532901){return _0x3ecb96(_0x532901);},'bySNV':'Interval-Queue','gpaOX':function(_0x522571,_0x3b5af5,_0x2f1700){return _0x522571(_0x3b5af5,_0x2f1700);}};this[_0x3ef64f(0x1d0)]=_0x2aaa64[_0x3ef64f(0x1cc)](setInterval,async()=>{const _0x5d71df=_0x3ef64f;if(_0x2aaa64[_0x5d71df(0x1fd)](this['queue'][_0x5d71df(0x1f9)],0x0)){_0x2aaa64[_0x5d71df(0x213)](trace,'Processing\x20events.\x20Queue\x20Length\x20-\x20'+this[_0x5d71df(0x1fc)][_0x5d71df(0x1f9)]);const _0x1c57b0=this[_0x5d71df(0x1fc)][_0x5d71df(0x1d1)](0x0,BATCH_SIZE);this[_0x5d71df(0x1fc)]['splice'](0x0,BATCH_SIZE),await this[_0x5d71df(0x1b6)](this[_0x5d71df(0x1dc)],_0x2aaa64[_0x5d71df(0x1c0)],_0x1c57b0),_0x2aaa64[_0x5d71df(0x213)](trace,_0x5d71df(0x1ca)+this[_0x5d71df(0x1fc)]['length']);}},BATCH_INTERVAL);};['resetEventBatchPolling']=()=>{const _0x485cba=a85_0x15c3c3,_0x372f71={};_0x372f71['klZLb']=_0x485cba(0x1e4);const _0x383d08=_0x372f71;this['removeEventBatchPolling'](_0x383d08['klZLb']),this[_0x485cba(0x1b7)]();};['removeEventBatchPolling']=_0x8e3b83=>{const _0x5c7808=a85_0x15c3c3,_0x33d5bf={'vDvWh':function(_0x204b5d,_0x2c71cb){return _0x204b5d(_0x2c71cb);},'ssTBA':function(_0xdd92e3,_0x30a52d){return _0xdd92e3===_0x30a52d;},'mQUxG':'REMOVING'};this[_0x5c7808(0x1d0)]&&(_0x33d5bf[_0x5c7808(0x1f6)](clearInterval,this[_0x5c7808(0x1d0)]),this['pollEventBatchInterval']=null,_0x33d5bf[_0x5c7808(0x1cf)](_0x8e3b83,_0x33d5bf[_0x5c7808(0x1ff)])&&(this[_0x5c7808(0x1de)]=![]));};[a85_0x15c3c3(0x20d)]=()=>{const _0x23d1f0=a85_0x15c3c3,_0x572a69={};_0x572a69[_0x23d1f0(0x201)]=function(_0xe7f6ce,_0x3f7f10){return _0xe7f6ce>=_0x3f7f10;};const _0x10827e=_0x572a69;return _0x10827e[_0x23d1f0(0x201)](this[_0x23d1f0(0x1fc)][_0x23d1f0(0x1f9)],BATCH_SIZE);};async['uploadPending'](_0x20b697=DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS,_0x2f62b8=DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS){const _0x26ed00=a85_0x15c3c3,_0x5cf08a={'fznMl':function(_0x587222,_0x40d51e){return _0x587222<=_0x40d51e;},'BxcZo':function(_0x113dfa,_0xbaec1b){return _0x113dfa<=_0xbaec1b;},'azgfY':function(_0x8f15d0,_0x47c432){return _0x8f15d0(_0x47c432);},'zKxvM':function(_0x1b15ed,_0x3e55a9){return _0x1b15ed-_0x3e55a9;}};if(_0x5cf08a[_0x26ed00(0x205)](this['pendingUploads'],0x0)||_0x5cf08a[_0x26ed00(0x1bb)](_0x20b697,0x0))return;return await _0x5cf08a['azgfY'](sleep,_0x2f62b8),this[_0x26ed00(0x209)](_0x5cf08a[_0x26ed00(0x206)](_0x20b697,_0x2f62b8));}}function a85_0x491f(_0x4d904f,_0x537f10){const _0xefcc63=a85_0xefcc();return a85_0x491f=function(_0x491f40,_0x4aa16b){_0x491f40=_0x491f40-0x1b2;let _0x2f16bd=_0xefcc63[_0x491f40];return _0x2f16bd;},a85_0x491f(_0x4d904f,_0x537f10);}module[a85_0x15c3c3(0x1be)]=RequestQueueHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a86_0x2acaaf=a86_0x5407;(function(_0x4f79c4,_0x2bd5e8){const _0x57362b=a86_0x5407,_0x23b871=_0x4f79c4();while(!![]){try{const _0x3a6eff=-parseInt(_0x57362b(0x19c))/0x1+parseInt(_0x57362b(0x139))/0x2+parseInt(_0x57362b(0x17d))/0x3*(parseInt(_0x57362b(0x1a5))/0x4)+parseInt(_0x57362b(0x1a7))/0x5+parseInt(_0x57362b(0x121))/0x6+parseInt(_0x57362b(0x1aa))/0x7+-parseInt(_0x57362b(0x17c))/0x8;if(_0x3a6eff===_0x2bd5e8)break;else _0x23b871['push'](_0x23b871['shift']());}catch(_0x1f1aef){_0x23b871['push'](_0x23b871['shift']());}}}(a86_0x3c48,0x7796d));const bsSetupHelper=require(a86_0x2acaaf(0x15a)),path=require(a86_0x2acaaf(0x178)),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,sleep,isTestObservabilitySession,trace}=require('./utils'),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require(a86_0x2acaaf(0x135)),RequestQueueHandler=require(a86_0x2acaaf(0x14d)),logger=require(a86_0x2acaaf(0x127))[a86_0x2acaaf(0x133)],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x2acaaf(0x174));class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a86_0x2acaaf(0x170)]();static async[a86_0x2acaaf(0x17e)](_0x2d394f,_0x55ffd5){const _0x310cc4=a86_0x2acaaf,_0x1ac79a={'feVpz':function(_0x5bee7b,_0x56dbca){return _0x5bee7b||_0x56dbca;},'GEqYg':function(_0x390029,_0x88f112){return _0x390029||_0x88f112;},'uIEwl':function(_0x1d2159,_0x167e2f){return _0x1d2159===_0x167e2f;},'shtAS':function(_0x453180,_0x42967f){return _0x453180(_0x42967f);},'XKSAH':_0x310cc4(0x19a),'RfzgS':_0x310cc4(0x17a),'BVToM':_0x310cc4(0x129),'SJqsc':function(_0x3d8a6b,_0x4fa8d5){return _0x3d8a6b(_0x4fa8d5);},'NdsVZ':function(_0x39dd76,_0x5f5972){return _0x39dd76(_0x5f5972);},'BmVFr':function(_0x18787e,_0x331f2b,_0x56211c,_0x20efbd,_0x2b88b2){return _0x18787e(_0x331f2b,_0x56211c,_0x20efbd,_0x2b88b2);},'bMFac':_0x310cc4(0x11c),'INJpJ':'api/v1/builds','iOFZr':'Build\x20creation\x20successful!','bmKzI':function(_0x5ef33d){return _0x5ef33d();},'HusBt':'true','NYwKr':_0x310cc4(0x16d),'eDxUH':'ERROR_INVALID_CREDENTIALS','qNWTC':'ERROR_ACCESS_DENIED','JWHVR':_0x310cc4(0x196)},_0x30e332=bsSetupHelper['getUserName'](_0x2d394f),_0x439ac6=bsSetupHelper[_0x310cc4(0x18f)](_0x2d394f),_0xe27d31=_0x1ac79a['feVpz'](_0x30e332,'')+':'+_0x1ac79a['GEqYg'](_0x439ac6,'');if(_0x1ac79a[_0x310cc4(0x159)](_0xe27d31,':'))return _0x1ac79a[_0x310cc4(0x19b)](debug,_0x1ac79a[_0x310cc4(0x118)]),process[_0x310cc4(0x15e)][_0x310cc4(0x182)]=_0x1ac79a['RfzgS'],[null,null];let _0x358a70=![],_0x3806cf=![];if(_0x2d394f[_0x310cc4(0x173)]&&_0x2d394f[_0x310cc4(0x13a)])_0x3806cf=!![];else _0x2d394f['browserstackAutomation']&&(_0x358a70=!![]);try{const _0x1e2ce2={'format':_0x1ac79a[_0x310cc4(0x113)],'project_name':_0x2d394f[_0x310cc4(0x1a6)]||'','name':_0x2d394f[_0x310cc4(0x137)]||path[_0x310cc4(0x1a3)](path[_0x310cc4(0x145)](process[_0x310cc4(0x141)]())),'build_identifier':_0x2d394f[_0x310cc4(0x195)],'description':_0x2d394f[_0x310cc4(0x1a2)]||'','start_time':new Date()['toISOString'](),'tags':_0x1ac79a[_0x310cc4(0x19b)](getCustomTags,_0x2d394f),'host_info':bsSetupHelper[_0x310cc4(0x11b)](),'ci_info':bsSetupHelper[_0x310cc4(0x172)](),'build_run_identifier':process[_0x310cc4(0x15e)][_0x310cc4(0x1a9)],'failed_tests_rerun':process[_0x310cc4(0x15e)][_0x310cc4(0x153)]||![],'version_control':await bsSetupHelper[_0x310cc4(0x193)](),'observability_version':{'frameworkName':_0x55ffd5[_0x310cc4(0x147)],'frameworkVersion':_0x55ffd5[_0x310cc4(0x132)],'sdkVersion':bsSetupHelper['getAgentVersion']()},'product_map':_0x1ac79a[_0x310cc4(0x124)](getProductMap,_0x2d394f)},_0x9184f8={};_0x9184f8['username']=_0x30e332,_0x9184f8[_0x310cc4(0x181)]=_0x439ac6;const _0x54d582={'auth':_0x9184f8,'headers':_0x1ac79a[_0x310cc4(0x13e)](getDefaultHeaders,![])},_0x491afa=await _0x1ac79a[_0x310cc4(0x144)](nodeRequest,_0x1ac79a[_0x310cc4(0x12a)],_0x1ac79a['INJpJ'],_0x1e2ce2,_0x54d582);_0x1ac79a[_0x310cc4(0x124)](debug,_0x1ac79a[_0x310cc4(0x18b)]);const _0x3e6a8e=_0x491afa[_0x310cc4(0x14a)];_0x3e6a8e[_0x310cc4(0x13b)]&&(process[_0x310cc4(0x15e)][_0x310cc4(0x123)]=_0x3e6a8e[_0x310cc4(0x13b)]);if(_0x1ac79a[_0x310cc4(0x14b)](isTestObservabilitySession)){process['env'][_0x310cc4(0x182)]=_0x1ac79a['HusBt'];if(_0x3e6a8e[_0x310cc4(0x190)]){process[_0x310cc4(0x15e)][_0x310cc4(0x187)]=_0x3e6a8e[_0x310cc4(0x190)];const _0xd961f3={};_0xd961f3[_0x310cc4(0x119)]=_0x30e332,_0xd961f3[_0x310cc4(0x181)]=_0x439ac6,process[_0x310cc4(0x15e)]['CREDENTIALS_FOR_CRASH_REPORTING']=JSON[_0x310cc4(0x192)](_0xd961f3);}_0x3e6a8e[_0x310cc4(0x13b)]&&(process['env'][_0x310cc4(0x12f)]=_0x3e6a8e['build_hashed_id']),_0x3e6a8e[_0x310cc4(0x19e)]&&(process[_0x310cc4(0x15e)][_0x310cc4(0x11f)]=_0x3e6a8e['allow_screenshots'][_0x310cc4(0x16a)]());}return[_0x491afa[_0x310cc4(0x14a)][_0x310cc4(0x190)],_0x491afa[_0x310cc4(0x14a)][_0x310cc4(0x13b)],_0x491afa['data'][_0x310cc4(0x19e)]];}catch(_0x9941d0){process['env'][_0x310cc4(0x123)]=_0x1ac79a['NYwKr'],process['env'][_0x310cc4(0x182)]=_0x1ac79a[_0x310cc4(0x12c)],process[_0x310cc4(0x15e)][_0x310cc4(0x187)]=_0x1ac79a[_0x310cc4(0x169)],process[_0x310cc4(0x15e)][_0x310cc4(0x12f)]=_0x1ac79a[_0x310cc4(0x169)],process[_0x310cc4(0x15e)][_0x310cc4(0x11f)]=_0x1ac79a[_0x310cc4(0x169)];_0x9941d0[_0x310cc4(0x11d)]?_0x1ac79a[_0x310cc4(0x124)](debug,_0x310cc4(0x18a)+_0x9941d0[_0x310cc4(0x11d)][_0x310cc4(0x158)]+'\x20'+_0x9941d0[_0x310cc4(0x11d)][_0x310cc4(0x155)]+'\x20'+JSON['stringify'](_0x9941d0[_0x310cc4(0x11d)]['data'])):_0x1ac79a['NdsVZ'](debug,_0x310cc4(0x18a)+(_0x9941d0[_0x310cc4(0x183)]||_0x9941d0));if(_0x9941d0&&_0x9941d0[_0x310cc4(0x183)]){const _0x4107f6=_0x9941d0['message'];switch(_0x9941d0[_0x310cc4(0x160)]){case _0x1ac79a[_0x310cc4(0x146)]:logger[_0x310cc4(0x17f)](_0x4107f6);break;case _0x1ac79a[_0x310cc4(0x184)]:logger[_0x310cc4(0x131)](_0x4107f6);break;case _0x1ac79a[_0x310cc4(0x166)]:logger[_0x310cc4(0x17f)](_0x4107f6);break;default:logger['error'](_0x4107f6);}}else console['info'](_0x310cc4(0x198)+_0x9941d0);return[null,null,null];}}static async[a86_0x2acaaf(0x194)](){const _0x352707=a86_0x2acaaf,_0x16b553={'TkiWg':_0x352707(0x11e),'fRrYZ':_0x352707(0x17a),'QpNnj':function(_0x4c15dc,_0x4f923d){return _0x4c15dc(_0x4f923d);}},_0x48699f=process[_0x352707(0x15e)][_0x352707(0x182)];if([_0x16b553[_0x352707(0x15b)],_0x16b553['fRrYZ']][_0x352707(0x140)](_0x48699f))return;while([_0x16b553[_0x352707(0x15b)],_0x16b553[_0x352707(0x143)]][_0x352707(0x140)](_0x48699f)){await _0x16b553[_0x352707(0x14c)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static async[a86_0x2acaaf(0x15d)](_0x90deab,_0x1aaab2=0x0){const _0x40adf8=a86_0x2acaaf,_0xe9572d={'nTOai':function(_0x21179e,_0x464ebf){return _0x21179e+_0x464ebf;},'Rcymn':_0x40adf8(0x11a),'EemiS':_0x40adf8(0x197),'WUFKV':_0x40adf8(0x176),'kcBYm':_0x40adf8(0x117),'xqsyq':'Hook_Start_Upload','aNxnJ':_0x40adf8(0x148),'uDcNe':'CBT_Upload','rmMiJ':function(_0x261385,_0x2bd112){return _0x261385(_0x2bd112);},'vMRZm':'test_run','IyvcE':'uuid','OosQU':_0x40adf8(0x168),'dwVNj':function(_0x24058b,_0x410240,_0x4dbd41){return _0x24058b(_0x410240,_0x4dbd41);},'aabVh':_0x40adf8(0x15d),'iycAP':function(_0x56d601,_0x6f05a1){return _0x56d601===_0x6f05a1;},'DJmyu':function(_0x51098e,_0x116f39){return _0x51098e!==_0x116f39;},'FGBtG':_0x40adf8(0x16d),'bnmkS':function(_0x395212,_0x569d4e){return _0x395212===_0x569d4e;},'FiohH':_0x40adf8(0x11e),'KvuhN':function(_0x18fef2){return _0x18fef2();},'yyBab':function(_0x359121,_0x179d48){return _0x359121-_0x179d48;},'kHhFA':_0x40adf8(0x17f),'pXPci':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','PUICW':_0x40adf8(0x189),'nWuOS':function(_0x212eb3,_0x7eabf4,_0x3a1389,_0x26771f,_0xd4dab1){return _0x212eb3(_0x7eabf4,_0x3a1389,_0x26771f,_0xd4dab1);},'zXECh':_0x40adf8(0x11c),'MXRsc':function(_0x4e78a0,_0x3c8b87){return _0x4e78a0!==_0x3c8b87;},'iCALu':_0x40adf8(0x157),'EcXzu':function(_0x46d874,_0x1b9119){return _0x46d874===_0x1b9119;},'OnUsr':_0x40adf8(0x1ad),'XVlye':_0x40adf8(0x12b),'vJukw':function(_0x364d56,_0x5d54bf){return _0x364d56(_0x5d54bf);},'DxRLU':function(_0x1735d8,_0x3c4b7f){return _0x1735d8!==_0x3c4b7f;},'aMdbk':function(_0x4eafdd,_0x3e3a8f){return _0x4eafdd!==_0x3e3a8f;},'ewajr':function(_0x24cc45,_0x54ee5f){return _0x24cc45-_0x54ee5f;},'GmiTA':function(_0x640154,_0x1c7688){return _0x640154===_0x1c7688;},'gfESj':function(_0x7ff46c,_0x5c3fd3){return _0x7ff46c>=_0x5c3fd3;},'qXRKC':function(_0x2e3c5a,_0x3076c8){return _0x2e3c5a(_0x3076c8);},'pYKEZ':_0x40adf8(0x19f),'HQSRS':_0x40adf8(0x17a),'vBEHC':function(_0x1c425e,_0xad2740,_0x211dce){return _0x1c425e(_0xad2740,_0x211dce);}},_0x1f0392={};_0x1f0392['TestRunStarted']=_0xe9572d['Rcymn'],_0x1f0392[_0x40adf8(0x164)]=_0xe9572d[_0x40adf8(0x13c)],_0x1f0392[_0x40adf8(0x188)]=_0xe9572d[_0x40adf8(0x185)],_0x1f0392[_0x40adf8(0x156)]=_0xe9572d[_0x40adf8(0x18d)],_0x1f0392[_0x40adf8(0x1a0)]=_0xe9572d['xqsyq'],_0x1f0392['HookRunFinished']=_0xe9572d[_0x40adf8(0x120)],_0x1f0392['CBTSessionCreated']=_0xe9572d[_0x40adf8(0x136)];const _0x1ff572=_0x1f0392[_0x90deab[_0x40adf8(0x186)]];_0xe9572d['rmMiJ'](trace,_0x40adf8(0x152)+_0x90deab[_0x40adf8(0x186)]+'\x27\x20'+(bsSetupHelper[_0x40adf8(0x1a8)](_0x90deab,[_0xe9572d['vMRZm'],_0xe9572d['IyvcE']])||bsSetupHelper['nestedKeyValue'](_0x90deab,[_0xe9572d[_0x40adf8(0x17b)],_0xe9572d[_0x40adf8(0x15c)]])));if(!_0xe9572d[_0x40adf8(0x167)](shouldProcessEventForTesthub,_0x90deab[_0x40adf8(0x186)],_0xe9572d[_0x40adf8(0x138)]))return;_0xe9572d['iycAP'](_0x1aaab2,0x0)&&process[_0x40adf8(0x15e)][_0x40adf8(0x134)]&&_0xe9572d[_0x40adf8(0x16b)](process[_0x40adf8(0x15e)][_0x40adf8(0x134)],_0xe9572d['FGBtG'])&&(this['requestQueueHandler'][_0x40adf8(0x191)]+=0x1);if(_0xe9572d[_0x40adf8(0x177)](process[_0x40adf8(0x15e)]['BS_TESTOPS_BUILD_COMPLETED'],_0xe9572d[_0x40adf8(0x116)])||process[_0x40adf8(0x15e)][_0x40adf8(0x154)]||_0xe9572d[_0x40adf8(0x180)](isPercyBuild)){if(_0xe9572d[_0x40adf8(0x199)](process[_0x40adf8(0x15e)]['BROWSERSTACK_TESTHUB_JWT'],_0xe9572d[_0x40adf8(0x14f)])){_0xe9572d['rmMiJ'](debug,_0x40adf8(0x126)+_0x1ff572+_0x40adf8(0x142)),this[_0x40adf8(0x115)]['pendingUploads']=Math[_0x40adf8(0x122)](0x0,_0xe9572d[_0x40adf8(0x1ab)](this['requestQueueHandler'][_0x40adf8(0x191)],0x1));const _0x330b7d={};return _0x330b7d[_0x40adf8(0x158)]=_0xe9572d[_0x40adf8(0x12e)],_0x330b7d[_0x40adf8(0x183)]=_0xe9572d['pXPci'],_0x330b7d;}let _0x4034b4=_0x90deab,_0x45f471=EVENT_ENDPOINT;this[_0x40adf8(0x115)][_0x40adf8(0x13d)]();const {shouldProceed:_0x2d96e1,proceedWithData:_0x2d00c0,proceedWithUrl:_0x4c934a}=this[_0x40adf8(0x115)][_0x40adf8(0x14e)](_0x90deab);if(!_0x2d96e1)return;else _0x2d00c0&&(_0x4034b4=_0x2d00c0,_0x45f471=_0x4c934a);const _0x445d43={};_0x445d43[_0x40adf8(0x16e)]='Bearer\x20'+process[_0x40adf8(0x15e)]['BROWSERSTACK_TESTHUB_JWT'],_0x445d43[_0x40adf8(0x15f)]=_0xe9572d[_0x40adf8(0x12d)],_0x445d43[_0x40adf8(0x130)]=_0xe9572d[_0x40adf8(0x116)];const _0x155260={};_0x155260[_0x40adf8(0x13f)]=_0x445d43;const _0x1a6519=_0x155260;try{const _0xe89cf4=await _0xe9572d['nWuOS'](nodeRequest,_0xe9572d[_0x40adf8(0x1ac)],_0x45f471,_0x4034b4,_0x1a6519);if(_0xe89cf4['data'][_0x40adf8(0x17f)]){const _0x4277b2={};_0x4277b2[_0x40adf8(0x183)]=_0xe89cf4[_0x40adf8(0x14a)][_0x40adf8(0x17f)];throw _0x4277b2;}else{_0xe9572d[_0x40adf8(0x150)](debug,(_0xe9572d[_0x40adf8(0x1a1)](_0x45f471,this[_0x40adf8(0x115)][_0x40adf8(0x1a4)])?_0x1ff572:_0xe9572d[_0x40adf8(0x163)])+'['+_0x1aaab2+_0x40adf8(0x18e)),this[_0x40adf8(0x115)][_0x40adf8(0x191)]=Math['max'](0x0,_0xe9572d[_0x40adf8(0x1ab)](this[_0x40adf8(0x115)][_0x40adf8(0x191)],_0xe9572d[_0x40adf8(0x18c)](_0x45f471,_0xe9572d[_0x40adf8(0x165)])?0x1:_0x4034b4[_0x40adf8(0x179)]));const _0x4d51e1={};return _0x4d51e1['status']=_0xe9572d['XVlye'],_0x4d51e1[_0x40adf8(0x183)]='',_0x4d51e1;}}catch(_0x675007){_0x675007[_0x40adf8(0x11d)]?_0xe9572d['vJukw'](debug,_0x40adf8(0x126)+(_0xe9572d[_0x40adf8(0x128)](_0x45f471,this[_0x40adf8(0x115)][_0x40adf8(0x1a4)])?_0x1ff572:_0xe9572d[_0x40adf8(0x163)])+_0x40adf8(0x19d)+_0x675007[_0x40adf8(0x11d)]['status']+'\x20'+_0x675007[_0x40adf8(0x11d)][_0x40adf8(0x155)]+'\x20'+JSON[_0x40adf8(0x192)](_0x675007[_0x40adf8(0x11d)][_0x40adf8(0x14a)])):_0xe9572d[_0x40adf8(0x125)](debug,_0x40adf8(0x126)+(_0xe9572d['aMdbk'](_0x45f471,this[_0x40adf8(0x115)][_0x40adf8(0x1a4)])?_0x1ff572:_0xe9572d[_0x40adf8(0x163)])+_0x40adf8(0x19d)+(_0x675007[_0x40adf8(0x183)]||_0x675007));this[_0x40adf8(0x115)][_0x40adf8(0x191)]=Math[_0x40adf8(0x122)](0x0,_0xe9572d['ewajr'](this[_0x40adf8(0x115)][_0x40adf8(0x191)],_0xe9572d[_0x40adf8(0x16f)](_0x45f471,_0xe9572d['OnUsr'])?0x1:_0x4034b4[_0x40adf8(0x179)]));const _0x172bfe={};return _0x172bfe[_0x40adf8(0x158)]=_0xe9572d['kHhFA'],_0x172bfe['message']=_0x675007['message']||(_0x675007[_0x40adf8(0x11d)]?_0x675007[_0x40adf8(0x11d)][_0x40adf8(0x158)]+':'+_0x675007[_0x40adf8(0x11d)][_0x40adf8(0x155)]:_0x675007),_0x172bfe;}}else{if(_0xe9572d[_0x40adf8(0x114)](_0x1aaab2,0x5)){_0xe9572d[_0x40adf8(0x171)](debug,_0x40adf8(0x126)+_0x1ff572+_0x40adf8(0x162)+_0x1ff572+_0x40adf8(0x16c));_0xe9572d[_0x40adf8(0x1a1)](process['env'][_0x40adf8(0x134)],_0xe9572d['FGBtG'])&&(this[_0x40adf8(0x115)][_0x40adf8(0x191)]=Math[_0x40adf8(0x122)](0x0,_0xe9572d[_0x40adf8(0x1ab)](this['requestQueueHandler'][_0x40adf8(0x191)],0x1)));const _0x55e326={};return _0x55e326[_0x40adf8(0x158)]=_0xe9572d[_0x40adf8(0x12e)],_0x55e326[_0x40adf8(0x183)]=_0xe9572d['pYKEZ'],_0x55e326;}else _0xe9572d['DJmyu'](process[_0x40adf8(0x15e)][_0x40adf8(0x182)],_0xe9572d[_0x40adf8(0x151)])&&_0xe9572d[_0x40adf8(0x175)](setTimeout,()=>{const _0x2b8519=_0x40adf8;this['uploadEventData'](_0x90deab,_0xe9572d[_0x2b8519(0x161)](_0x1aaab2,0x1));},0x3e8);}}}function a86_0x5407(_0x20632c,_0x596157){const _0x3c4808=a86_0x3c48();return a86_0x5407=function(_0x540765,_0x595594){_0x540765=_0x540765-0x113;let _0x5b1d61=_0x3c4808[_0x540765];return _0x5b1d61;},a86_0x5407(_0x20632c,_0x596157);}function a86_0x3c48(){const _0x147863=['frameworkVersion','winstonLogger','BROWSERSTACK_TESTHUB_JWT','./constants','uDcNe','buildName','aabVh','294908FSfICM','app','build_hashed_id','EemiS','start','NdsVZ','headers','includes','cwd','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','fRrYZ','BmVFr','resolve','eDxUH','frameworkName','Hook_End_Upload','exports','data','bmKzI','QpNnj','./requestQueueHandler','add','FGBtG','rmMiJ','HQSRS','Processing\x20event\x20-\x20\x27','BROWSERSTACK_RERUN','BS_A11Y_JWT','statusText','LogCreated','Batch-Queue','status','uIEwl','../helper','TkiWg','IyvcE','uploadEventData','env','Content-Type','errorType','nTOai','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20','iCALu','TestRunFinished','OnUsr','JWHVR','dwVNj','hook_run','NYwKr','toString','DJmyu','\x20retry\x20runs\x20exceeded','null','Authorization','GmiTA','getInstance','qXRKC','getCiInfo','browserstackAutomation','../../helpers/testhub/utils','vBEHC','Test_Skipped_Upload','bnmkS','path','length','false','OosQU','4023544gNEXVj','3tXKhom','launch','error','KvuhN','password','BS_TESTOPS_BUILD_COMPLETED','message','qNWTC','WUFKV','event_type','BS_TESTOPS_JWT','TestRunSkipped','application/json','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','iOFZr','EcXzu','kcBYm',']\x20event\x20successful!','getAccessKey','jwt','pendingUploads','stringify','getGitMetaData','waitForBuildStatus','buildIdentifier','ERROR_SDK_DEPRECATED','Test_End_Upload','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','iycAP','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','shtAS','184081oNVQgP','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','allow_screenshots','Retry\x20runs\x20exceeded','HookRunStarted','MXRsc','buildDescription','basename','eventUrl','1385684oXJQeO','projectName','1788150zbmYsn','nestedKeyValue','BROWSERSTACK_BUILD_RUN_IDENTIFIER','1895502dsZXxb','yyBab','zXECh','api/v1/event','BVToM','gfESj','requestQueueHandler','FiohH','Log_Upload','XKSAH','username','Test_Start_Upload','getHostInfo','POST','response','true','BS_TESTOPS_ALLOW_SCREENSHOTS','aNxnJ','327420oKNVMO','max','BROWSERSTACK_TESTHUB_UUID','SJqsc','vJukw','EXCEPTION\x20IN\x20','../logger','DxRLU','json','bMFac','success','RfzgS','PUICW','kHhFA','BS_TESTOPS_BUILD_HASHED_ID','X-BSTACK-TESTOPS','info'];a86_0x3c48=function(){return _0x147863;};return a86_0x3c48();}module[a86_0x2acaaf(0x149)]=SessionHandler;
|
|
1
|
+
const a86_0x397126=a86_0x2577;(function(_0x1fe0f6,_0x1a7704){const _0x399d91=a86_0x2577,_0x3548bd=_0x1fe0f6();while(!![]){try{const _0x242f7f=parseInt(_0x399d91(0x136))/0x1*(-parseInt(_0x399d91(0x194))/0x2)+parseInt(_0x399d91(0x144))/0x3*(-parseInt(_0x399d91(0x146))/0x4)+parseInt(_0x399d91(0x174))/0x5+parseInt(_0x399d91(0x139))/0x6+-parseInt(_0x399d91(0x1b7))/0x7+-parseInt(_0x399d91(0x173))/0x8+parseInt(_0x399d91(0x152))/0x9*(parseInt(_0x399d91(0x147))/0xa);if(_0x242f7f===_0x1a7704)break;else _0x3548bd['push'](_0x3548bd['shift']());}catch(_0x4f0af2){_0x3548bd['push'](_0x3548bd['shift']());}}}(a86_0xefad,0xabbc6));function a86_0xefad(){const _0x5c3983=['NPQnK','HaAYV','1789518CSJJuw','jKxnh','BzshZ','BS_TESTOPS_ALLOW_SCREENSHOTS','ERROR_ACCESS_DENIED','toISOString','BROWSERSTACK_TESTHUB_JWT','VIWyy','statusText','XskjJ','xfnOC','3JfBVjA','jVCeH','3229396dqbBxG','23828570UnpFgq','Log_Upload','iRnwY','BS_TESTOPS_JWT','getCiInfo','application/json','includes','SqFBT','bFMRl','response','wnOUe','9QOxalz','basename','mluvW','hQZTB','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20','Bearer\x20','getAgentVersion','Test_Skipped_Upload','GTtQx','eAmok','dCPGG','./utils','projectName','NjNpf','YKjIc','Uuvou','waitForBuildStatus','start','./requestQueueHandler','success','POST','LJyWj','getInstance','tGDET','ZGmSv','getGitMetaData','nestedKeyValue','TestRunSkipped','BS_A11Y_JWT','BIhZU','length','qprjd','OSuNa','8326760librGR','6482915EHKZjU','zRZTl','ZHWxG','api/v1/event','max','Batch-Queue','pendingUploads','Hook_Start_Upload','headers','qdpUw','sftXx','SLFKP','frameworkVersion','event_type','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20missing\x20authentication\x20token','CBT_Upload','password','../../helpers/testhub/utils','AiREG','nfSXY','message','oYuIs','build_hashed_id','browserstackAutomation','eventUrl','CBskO','BS_TESTOPS_BUILD_COMPLETED','BROWSERSTACK_BUILD_RUN_IDENTIFIER','Processing\x20event\x20-\x20\x27','HookRunStarted','LSTrB','qOtwO','100022iRmErw','bNWJw','idglv','\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20Build\x20Start\x20is\x20not\x20completed\x20and\x20',']\x20event\x20successful!','neqhj','env','info','true','RGNXK','json','uuid','buildName','buildDescription','EXCEPTION\x20IN\x20','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20Missing\x20authentication\x20token','data','test_run','Embmj','TestRunStarted','TestRunFinished','Data\x20upload\x20to\x20BrowserStack\x20Test\x20Observability\x20failed\x20due\x20to\x20','X-BSTACK-TESTOPS','allow_screenshots','frameworkName','fJXWm','launch','Content-Type','stringify','BROWSERSTACK_TESTHUB_UUID','Test_End_Upload','AWuVv','CREDENTIALS_FOR_CRASH_REPORTING','add','api/v1/builds','8582175UwFyPx','requestQueueHandler','app','uploadEventData','getAccessKey','jwt','BS_TESTOPS_BUILD_HASHED_ID','EXCEPTION\x20IN\x20BUILD\x20START\x20EVENT\x20:\x20','status','false','sJPJF','username','WxkyY','../logger','error','toString','HhpcN','ERROR_INVALID_CREDENTIALS','cwd','4eZYzmw'];a86_0xefad=function(){return _0x5c3983;};return a86_0xefad();}function a86_0x2577(_0x1e424f,_0x5294ac){const _0xefade7=a86_0xefad();return a86_0x2577=function(_0x25774f,_0x3d127e){_0x25774f=_0x25774f-0x131;let _0x110ff8=_0xefade7[_0x25774f];return _0x110ff8;},a86_0x2577(_0x1e424f,_0x5294ac);}const bsSetupHelper=require('../helper'),path=require('path'),os=require('os'),{debug,getCustomTags,getDefaultHeaders,nodeRequest,sleep,isTestObservabilitySession,trace}=require(a86_0x397126(0x15d)),{EVENT_ENDPOINT,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS}=require('./constants'),RequestQueueHandler=require(a86_0x397126(0x164)),logger=require(a86_0x397126(0x1c4))['winstonLogger'],{shouldProcessEventForTesthub,isPercyBuild,getProductMap}=require(a86_0x397126(0x185));class SessionHandler{static ['requestQueueHandler']=RequestQueueHandler[a86_0x397126(0x168)]();static async[a86_0x397126(0x1ae)](_0x181006,_0x5383ce){const _0x487469=a86_0x397126,_0x23f32c={'wnOUe':function(_0x4f84d4,_0x47cb3b){return _0x4f84d4||_0x47cb3b;},'sJPJF':function(_0x238a29,_0x480aa4){return _0x238a29||_0x480aa4;},'RGNXK':function(_0x506d39,_0x556da1){return _0x506d39===_0x556da1;},'HhpcN':function(_0x85e2c5,_0x2649dc){return _0x85e2c5(_0x2649dc);},'ZUIpX':_0x487469(0x1a3),'qdpUw':'false','hQZTB':_0x487469(0x19e),'tGDET':function(_0x322489,_0x4cc115){return _0x322489(_0x4cc115);},'oanxQ':function(_0x4acad9,_0x20f6ad,_0x573487,_0x5b6ac1,_0x1310fb){return _0x4acad9(_0x20f6ad,_0x573487,_0x5b6ac1,_0x1310fb);},'dCPGG':_0x487469(0x166),'WFeES':_0x487469(0x1b6),'NBdOr':'Build\x20creation\x20successful!','xKFFE':function(_0x83de9c){return _0x83de9c();},'LJyWj':_0x487469(0x19c),'YKjIc':'null','eAmok':function(_0x29363f,_0x39b32a){return _0x29363f(_0x39b32a);},'CBskO':_0x487469(0x134),'HaAYV':_0x487469(0x13d),'hGjLD':'ERROR_SDK_DEPRECATED'},_0x42c6b2=bsSetupHelper['getUserName'](_0x181006),_0x3fa0ef=bsSetupHelper[_0x487469(0x1bb)](_0x181006),_0x257425=_0x23f32c[_0x487469(0x151)](_0x42c6b2,'')+':'+_0x23f32c[_0x487469(0x1c1)](_0x3fa0ef,'');if(_0x23f32c[_0x487469(0x19d)](_0x257425,':'))return _0x23f32c['HhpcN'](debug,_0x23f32c['ZUIpX']),process[_0x487469(0x19a)]['BS_TESTOPS_BUILD_COMPLETED']=_0x23f32c['qdpUw'],[null,null];let _0x2be04c=![],_0x31566f=![];if(_0x181006[_0x487469(0x18b)]&&_0x181006[_0x487469(0x1b9)])_0x31566f=!![];else _0x181006[_0x487469(0x18b)]&&(_0x2be04c=!![]);try{const _0x485390={'format':_0x23f32c[_0x487469(0x155)],'project_name':_0x181006[_0x487469(0x15e)]||'','name':_0x181006[_0x487469(0x1a0)]||path[_0x487469(0x153)](path['resolve'](process[_0x487469(0x135)]())),'build_identifier':_0x181006['buildIdentifier'],'description':_0x181006[_0x487469(0x1a1)]||'','start_time':new Date()[_0x487469(0x13e)](),'tags':_0x23f32c[_0x487469(0x169)](getCustomTags,_0x181006),'host_info':bsSetupHelper['getHostInfo'](),'ci_info':bsSetupHelper[_0x487469(0x14b)](),'build_run_identifier':process[_0x487469(0x19a)][_0x487469(0x18f)],'failed_tests_rerun':process[_0x487469(0x19a)]['BROWSERSTACK_RERUN']||![],'version_control':await bsSetupHelper[_0x487469(0x16b)](),'observability_version':{'frameworkName':_0x5383ce[_0x487469(0x1ac)],'frameworkVersion':_0x5383ce[_0x487469(0x180)],'sdkVersion':bsSetupHelper[_0x487469(0x158)]()},'product_map':_0x23f32c[_0x487469(0x133)](getProductMap,_0x181006)},_0x4c65d6={};_0x4c65d6[_0x487469(0x1c2)]=_0x42c6b2,_0x4c65d6[_0x487469(0x184)]=_0x3fa0ef;const _0x5b7e5a={'auth':_0x4c65d6,'headers':_0x23f32c[_0x487469(0x169)](getDefaultHeaders,![])},_0x1db06e=await _0x23f32c['oanxQ'](nodeRequest,_0x23f32c[_0x487469(0x15c)],_0x23f32c['WFeES'],_0x485390,_0x5b7e5a);_0x23f32c['tGDET'](debug,_0x23f32c['NBdOr']);const _0x30fdf9=_0x1db06e[_0x487469(0x1a4)];_0x30fdf9['build_hashed_id']&&(process[_0x487469(0x19a)]['BROWSERSTACK_TESTHUB_UUID']=_0x30fdf9['build_hashed_id']);if(_0x23f32c['xKFFE'](isTestObservabilitySession)){process[_0x487469(0x19a)]['BS_TESTOPS_BUILD_COMPLETED']=_0x23f32c[_0x487469(0x167)];if(_0x30fdf9[_0x487469(0x1bc)]){process['env'][_0x487469(0x14a)]=_0x30fdf9[_0x487469(0x1bc)];const _0x23f690={};_0x23f690[_0x487469(0x1c2)]=_0x42c6b2,_0x23f690[_0x487469(0x184)]=_0x3fa0ef,process[_0x487469(0x19a)][_0x487469(0x1b4)]=JSON[_0x487469(0x1b0)](_0x23f690);}_0x30fdf9[_0x487469(0x18a)]&&(process[_0x487469(0x19a)][_0x487469(0x1bd)]=_0x30fdf9[_0x487469(0x18a)]),_0x30fdf9[_0x487469(0x1ab)]&&(process[_0x487469(0x19a)][_0x487469(0x13c)]=_0x30fdf9[_0x487469(0x1ab)][_0x487469(0x132)]());}return[_0x1db06e['data'][_0x487469(0x1bc)],_0x1db06e['data'][_0x487469(0x18a)],_0x1db06e[_0x487469(0x1a4)][_0x487469(0x1ab)]];}catch(_0x59efd3){process[_0x487469(0x19a)][_0x487469(0x1b1)]=_0x23f32c[_0x487469(0x160)],process[_0x487469(0x19a)][_0x487469(0x18e)]=_0x23f32c[_0x487469(0x17d)],process['env']['BS_TESTOPS_JWT']=_0x23f32c[_0x487469(0x160)],process[_0x487469(0x19a)][_0x487469(0x1bd)]=_0x23f32c[_0x487469(0x160)],process[_0x487469(0x19a)][_0x487469(0x13c)]=_0x23f32c[_0x487469(0x160)];_0x59efd3[_0x487469(0x150)]?_0x23f32c['HhpcN'](debug,_0x487469(0x1be)+_0x59efd3[_0x487469(0x150)][_0x487469(0x1bf)]+'\x20'+_0x59efd3[_0x487469(0x150)][_0x487469(0x141)]+'\x20'+JSON[_0x487469(0x1b0)](_0x59efd3[_0x487469(0x150)][_0x487469(0x1a4)])):_0x23f32c[_0x487469(0x15b)](debug,_0x487469(0x1be)+(_0x59efd3[_0x487469(0x188)]||_0x59efd3));if(_0x59efd3&&_0x59efd3[_0x487469(0x188)]){const _0x110cec=_0x59efd3[_0x487469(0x188)];switch(_0x59efd3['errorType']){case _0x23f32c[_0x487469(0x18d)]:logger[_0x487469(0x131)](_0x110cec);break;case _0x23f32c[_0x487469(0x138)]:logger['info'](_0x110cec);break;case _0x23f32c['hGjLD']:logger[_0x487469(0x131)](_0x110cec);break;default:logger[_0x487469(0x131)](_0x110cec);}}else console[_0x487469(0x19b)](_0x487469(0x1a9)+_0x59efd3);return[null,null,null];}}static async[a86_0x397126(0x162)](){const _0x25a0d0=a86_0x397126,_0x9f448d={'OSuNa':_0x25a0d0(0x19c),'qOtwO':'false','BIhZU':function(_0x372553,_0x2a4bcc){return _0x372553(_0x2a4bcc);}},_0x18a676=process[_0x25a0d0(0x19a)][_0x25a0d0(0x18e)];if([_0x9f448d[_0x25a0d0(0x172)],_0x9f448d[_0x25a0d0(0x193)]]['includes'](_0x18a676))return;while([_0x9f448d['OSuNa'],_0x9f448d[_0x25a0d0(0x193)]][_0x25a0d0(0x14d)](_0x18a676)){await _0x9f448d[_0x25a0d0(0x16f)](sleep,DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS);}}static async[a86_0x397126(0x1ba)](_0x1967df,_0x4bff08=0x0){const _0x488d6c=a86_0x397126,_0x2566b0={'jVCeH':function(_0x42ab6,_0x3e50eb){return _0x42ab6+_0x3e50eb;},'SstME':'Test_Start_Upload','XskjJ':_0x488d6c(0x1b2),'NjIKo':_0x488d6c(0x159),'Uuvou':_0x488d6c(0x148),'fJXWm':_0x488d6c(0x17b),'aJOIO':'Hook_End_Upload','iRnwY':_0x488d6c(0x183),'zRZTl':function(_0x510ee5,_0x49d5b0){return _0x510ee5(_0x49d5b0);},'neqhj':_0x488d6c(0x1a5),'xfnOC':_0x488d6c(0x19f),'eUxaE':'hook_run','SqFBT':function(_0x3217f4,_0x4d31b3,_0x42a0f2){return _0x3217f4(_0x4d31b3,_0x42a0f2);},'iptDv':'uploadEventData','sftXx':function(_0x3cd39a,_0x3de505){return _0x3cd39a===_0x3de505;},'ZGmSv':function(_0x3d040e,_0xe1aca3){return _0x3d040e!==_0xe1aca3;},'jKxnh':'null','bFMRl':'true','bNWJw':function(_0x2d0413){return _0x2d0413();},'SLFKP':function(_0x50ae7d,_0x3e5f96){return _0x50ae7d===_0x3e5f96;},'oYuIs':function(_0x1ac71a,_0x16e3c0){return _0x1ac71a-_0x16e3c0;},'Embmj':_0x488d6c(0x131),'GTtQx':'Token/buildID\x20is\x20undefined,\x20build\x20creation\x20might\x20have\x20failed','AiREG':_0x488d6c(0x14c),'NPQnK':function(_0x12300c,_0x3593b4,_0x388286,_0x5805f0,_0x2961a7){return _0x12300c(_0x3593b4,_0x388286,_0x5805f0,_0x2961a7);},'jmmgK':_0x488d6c(0x166),'LSTrB':function(_0x266f56,_0x3cc45b){return _0x266f56!==_0x3cc45b;},'ZHWxG':_0x488d6c(0x179),'idglv':function(_0x38b952,_0x13ccc1){return _0x38b952-_0x13ccc1;},'nfSXY':function(_0x45bd80,_0x2c76b3){return _0x45bd80===_0x2c76b3;},'WxkyY':_0x488d6c(0x177),'qprjd':_0x488d6c(0x165),'AWuVv':function(_0x326209,_0x24d5e7){return _0x326209(_0x24d5e7);},'JRLPe':function(_0x5e8032,_0x3ab3e6){return _0x5e8032!==_0x3ab3e6;},'yPOGZ':function(_0x2f3944,_0xd38589){return _0x2f3944-_0xd38589;},'hTzdc':function(_0x300ef8,_0x4e133a){return _0x300ef8===_0x4e133a;},'kYWly':function(_0x4d4fdc,_0x4644a4){return _0x4d4fdc>=_0x4644a4;},'BzshZ':function(_0x5e1a2c,_0x4d9a77){return _0x5e1a2c(_0x4d9a77);},'VIWyy':function(_0x13b0b3,_0x832fc2){return _0x13b0b3!==_0x832fc2;},'Fzsgc':function(_0x1ab23e,_0x1e1147){return _0x1ab23e-_0x1e1147;},'NjNpf':'Retry\x20runs\x20exceeded','mluvW':_0x488d6c(0x1c0)},_0x523e15={};_0x523e15[_0x488d6c(0x1a7)]=_0x2566b0['SstME'],_0x523e15[_0x488d6c(0x1a8)]=_0x2566b0[_0x488d6c(0x142)],_0x523e15[_0x488d6c(0x16d)]=_0x2566b0['NjIKo'],_0x523e15['LogCreated']=_0x2566b0[_0x488d6c(0x161)],_0x523e15[_0x488d6c(0x191)]=_0x2566b0[_0x488d6c(0x1ad)],_0x523e15['HookRunFinished']=_0x2566b0['aJOIO'],_0x523e15['CBTSessionCreated']=_0x2566b0[_0x488d6c(0x149)];const _0x3cc8b8=_0x523e15[_0x1967df['event_type']];_0x2566b0[_0x488d6c(0x175)](trace,_0x488d6c(0x190)+_0x1967df[_0x488d6c(0x181)]+'\x27\x20'+(bsSetupHelper[_0x488d6c(0x16c)](_0x1967df,[_0x2566b0[_0x488d6c(0x199)],_0x2566b0['xfnOC']])||bsSetupHelper[_0x488d6c(0x16c)](_0x1967df,[_0x2566b0['eUxaE'],_0x2566b0[_0x488d6c(0x143)]])));if(!_0x2566b0[_0x488d6c(0x14e)](shouldProcessEventForTesthub,_0x1967df[_0x488d6c(0x181)],_0x2566b0['iptDv']))return;_0x2566b0[_0x488d6c(0x17e)](_0x4bff08,0x0)&&process['env']['BROWSERSTACK_TESTHUB_JWT']&&_0x2566b0[_0x488d6c(0x16a)](process[_0x488d6c(0x19a)]['BROWSERSTACK_TESTHUB_JWT'],_0x2566b0[_0x488d6c(0x13a)])&&(this[_0x488d6c(0x1b8)][_0x488d6c(0x17a)]+=0x1);if(_0x2566b0[_0x488d6c(0x17e)](process[_0x488d6c(0x19a)][_0x488d6c(0x18e)],_0x2566b0[_0x488d6c(0x14f)])||process[_0x488d6c(0x19a)][_0x488d6c(0x16e)]||_0x2566b0[_0x488d6c(0x195)](isPercyBuild)){if(_0x2566b0[_0x488d6c(0x17f)](process[_0x488d6c(0x19a)][_0x488d6c(0x13f)],_0x2566b0[_0x488d6c(0x13a)])){_0x2566b0[_0x488d6c(0x175)](debug,_0x488d6c(0x1a2)+_0x3cc8b8+_0x488d6c(0x182)),this[_0x488d6c(0x1b8)]['pendingUploads']=Math[_0x488d6c(0x178)](0x0,_0x2566b0[_0x488d6c(0x189)](this[_0x488d6c(0x1b8)][_0x488d6c(0x17a)],0x1));const _0x2efd12={};return _0x2efd12[_0x488d6c(0x1bf)]=_0x2566b0[_0x488d6c(0x1a6)],_0x2efd12[_0x488d6c(0x188)]=_0x2566b0[_0x488d6c(0x15a)],_0x2efd12;}let _0xa0fd21=_0x1967df,_0x4da9ec=EVENT_ENDPOINT;this[_0x488d6c(0x1b8)][_0x488d6c(0x163)]();const {shouldProceed:_0x3dd154,proceedWithData:_0x73d31b,proceedWithUrl:_0x392e1f}=this['requestQueueHandler'][_0x488d6c(0x1b5)](_0x1967df);if(!_0x3dd154)return;else _0x73d31b&&(_0xa0fd21=_0x73d31b,_0x4da9ec=_0x392e1f);const _0xe69411={};_0xe69411['Authorization']=_0x488d6c(0x157)+process['env'][_0x488d6c(0x13f)],_0xe69411[_0x488d6c(0x1af)]=_0x2566b0[_0x488d6c(0x186)],_0xe69411[_0x488d6c(0x1aa)]=_0x2566b0['bFMRl'];const _0x143ac9={};_0x143ac9[_0x488d6c(0x17c)]=_0xe69411;const _0x33d865=_0x143ac9;try{const _0x10d750=await _0x2566b0[_0x488d6c(0x137)](nodeRequest,_0x2566b0['jmmgK'],_0x4da9ec,_0xa0fd21,_0x33d865);if(_0x10d750[_0x488d6c(0x1a4)][_0x488d6c(0x131)]){const _0x53d43e={};_0x53d43e[_0x488d6c(0x188)]=_0x10d750[_0x488d6c(0x1a4)][_0x488d6c(0x131)];throw _0x53d43e;}else{_0x2566b0['zRZTl'](debug,(_0x2566b0[_0x488d6c(0x192)](_0x4da9ec,this[_0x488d6c(0x1b8)]['eventUrl'])?_0x3cc8b8:_0x2566b0['ZHWxG'])+'['+_0x4bff08+_0x488d6c(0x198)),this[_0x488d6c(0x1b8)][_0x488d6c(0x17a)]=Math[_0x488d6c(0x178)](0x0,_0x2566b0[_0x488d6c(0x196)](this['requestQueueHandler'][_0x488d6c(0x17a)],_0x2566b0[_0x488d6c(0x187)](_0x4da9ec,_0x2566b0[_0x488d6c(0x1c3)])?0x1:_0xa0fd21[_0x488d6c(0x170)]));const _0x3f1443={};return _0x3f1443[_0x488d6c(0x1bf)]=_0x2566b0[_0x488d6c(0x171)],_0x3f1443[_0x488d6c(0x188)]='',_0x3f1443;}}catch(_0x45e022){_0x45e022['response']?_0x2566b0[_0x488d6c(0x1b3)](debug,_0x488d6c(0x1a2)+(_0x2566b0['JRLPe'](_0x4da9ec,this['requestQueueHandler'][_0x488d6c(0x18c)])?_0x3cc8b8:_0x2566b0[_0x488d6c(0x176)])+_0x488d6c(0x156)+_0x45e022[_0x488d6c(0x150)][_0x488d6c(0x1bf)]+'\x20'+_0x45e022[_0x488d6c(0x150)]['statusText']+'\x20'+JSON[_0x488d6c(0x1b0)](_0x45e022[_0x488d6c(0x150)][_0x488d6c(0x1a4)])):_0x2566b0['zRZTl'](debug,_0x488d6c(0x1a2)+(_0x2566b0['ZGmSv'](_0x4da9ec,this[_0x488d6c(0x1b8)][_0x488d6c(0x18c)])?_0x3cc8b8:_0x2566b0['ZHWxG'])+'\x20REQUEST\x20TO\x20TEST\x20OBSERVABILITY\x20:\x20'+(_0x45e022[_0x488d6c(0x188)]||_0x45e022));this[_0x488d6c(0x1b8)][_0x488d6c(0x17a)]=Math['max'](0x0,_0x2566b0['yPOGZ'](this[_0x488d6c(0x1b8)]['pendingUploads'],_0x2566b0['hTzdc'](_0x4da9ec,_0x2566b0[_0x488d6c(0x1c3)])?0x1:_0xa0fd21['length']));const _0x22153e={};return _0x22153e[_0x488d6c(0x1bf)]=_0x2566b0[_0x488d6c(0x1a6)],_0x22153e[_0x488d6c(0x188)]=_0x45e022[_0x488d6c(0x188)]||(_0x45e022[_0x488d6c(0x150)]?_0x45e022['response']['status']+':'+_0x45e022['response'][_0x488d6c(0x141)]:_0x45e022),_0x22153e;}}else{if(_0x2566b0['kYWly'](_0x4bff08,0x5)){_0x2566b0[_0x488d6c(0x13b)](debug,_0x488d6c(0x1a2)+_0x3cc8b8+_0x488d6c(0x197)+_0x3cc8b8+'\x20retry\x20runs\x20exceeded');_0x2566b0['VIWyy'](process[_0x488d6c(0x19a)][_0x488d6c(0x13f)],_0x2566b0[_0x488d6c(0x13a)])&&(this['requestQueueHandler'][_0x488d6c(0x17a)]=Math[_0x488d6c(0x178)](0x0,_0x2566b0['Fzsgc'](this[_0x488d6c(0x1b8)][_0x488d6c(0x17a)],0x1)));const _0x4c339e={};return _0x4c339e[_0x488d6c(0x1bf)]=_0x2566b0[_0x488d6c(0x1a6)],_0x4c339e[_0x488d6c(0x188)]=_0x2566b0[_0x488d6c(0x15f)],_0x4c339e;}else _0x2566b0[_0x488d6c(0x140)](process['env']['BS_TESTOPS_BUILD_COMPLETED'],_0x2566b0[_0x488d6c(0x154)])&&_0x2566b0[_0x488d6c(0x14e)](setTimeout,()=>{const _0x339c7c=_0x488d6c;this[_0x339c7c(0x1ba)](_0x1967df,_0x2566b0[_0x339c7c(0x145)](_0x4bff08,0x1));},0x3e8);}}}module['exports']=SessionHandler;
|