browserstack-node-sdk 1.34.0 → 1.34.2
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/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.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 -0
- package/src/ai-sdk-node/extensions/chrome_extension.crx +0 -0
- 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 -0
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -0
- 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/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.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-tester.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 -0
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x596319=a66_0x4c99;(function(_0x528304,_0x2bcf19){const _0x55aaeb=a66_0x4c99,_0x2e0f28=_0x528304();while(!![]){try{const _0x55e507=-parseInt(_0x55aaeb(0x1c9))/0x1*(-parseInt(_0x55aaeb(0x1dd))/0x2)+-parseInt(_0x55aaeb(0x1c7))/0x3+-parseInt(_0x55aaeb(0x1c8))/0x4+parseInt(_0x55aaeb(0x1e4))/0x5*(parseInt(_0x55aaeb(0x1d0))/0x6)+-parseInt(_0x55aaeb(0x1da))/0x7+-parseInt(_0x55aaeb(0x1d4))/0x8*(-parseInt(_0x55aaeb(0x1db))/0x9)+-parseInt(_0x55aaeb(0x1d9))/0xa;if(_0x55e507===_0x2bcf19)break;else _0x2e0f28['push'](_0x2e0f28['shift']());}catch(_0x272a26){_0x2e0f28['push'](_0x2e0f28['shift']());}}}(a66_0x20fc,0x44245));function a66_0x4c99(_0x466cfd,_0x9c29c2){const _0x20fcfb=a66_0x20fc();return a66_0x4c99=function(_0x4c9946,_0x1e08ad){_0x4c9946=_0x4c9946-0x1c2;let _0x4ad7fb=_0x20fcfb[_0x4c9946];return _0x4ad7fb;},a66_0x4c99(_0x466cfd,_0x9c29c2);}const winston=require(a66_0x596319(0x1c4)),os=require('os'),fs=require('fs'),path=require(a66_0x596319(0x1cc)),logDir=a66_0x596319(0x1d3);!fs[a66_0x596319(0x1d8)](logDir)&&fs[a66_0x596319(0x1e0)](logDir);const a66_0x5a5459={};a66_0x5a5459['name']=a66_0x596319(0x1ca);const transports={'loggerConsole':new winston[(a66_0x596319(0x1d1))]['Console'](a66_0x5a5459),'loggerFile':new winston[(a66_0x596319(0x1d1))][(a66_0x596319(0x1c6))]({'filename':path[a66_0x596319(0x1df)](logDir,a66_0x596319(0x1e3))}),'debugLoggerFile':new winston[(a66_0x596319(0x1d1))][(a66_0x596319(0x1c6))]({'filename':path[a66_0x596319(0x1df)](logDir,a66_0x596319(0x1e1)),'level':a66_0x596319(0x1d7)})},a66_0x190c02={};a66_0x190c02[a66_0x596319(0x1e5)]='YYYY-MM-DD\x20HH:mm:ss';function a66_0x20fc(){const _0x5a82a3=['winston','winstonLogger','File','672753dZLWNa','949996aKvUHC','7bqqAKQ','console.info','combine','path','loggerFile','debugLoggerFile','level','6978nXLgAl','transports','\x20-\x20','log','471176EhriIv','timestamp','createLogger','silly','existsSync','2150860EuUquA','2102198KvigCE','81gucgXl','loggerConsole','124078AiYuGD','YYYY-MM-DD\x20HH:mm:ss','join','mkdirSync','/usage-debug.log','message','/usage.log','1255dEXrxG','format','colorize','printf','fileLogger'];a66_0x20fc=function(){return _0x5a82a3;};return a66_0x20fc();}const a66_0x4132b0={};a66_0x4132b0[a66_0x596319(0x1cf)]=!![];const winstonLoggerParams={'format':winston[a66_0x596319(0x1e5)][a66_0x596319(0x1cb)](winston['format'][a66_0x596319(0x1d5)](a66_0x190c02),winston[a66_0x596319(0x1e5)][a66_0x596319(0x1e6)](a66_0x4132b0),winston[a66_0x596319(0x1e5)]['printf'](_0x5e9859=>_0x5e9859[a66_0x596319(0x1d5)]+a66_0x596319(0x1d2)+_0x5e9859[a66_0x596319(0x1cf)]+':\x20'+_0x5e9859[a66_0x596319(0x1e2)])),'transports':[transports[a66_0x596319(0x1dc)],transports[a66_0x596319(0x1cd)],transports[a66_0x596319(0x1ce)]]},a66_0x516998={};a66_0x516998[a66_0x596319(0x1e5)]=a66_0x596319(0x1de);const a66_0x1b730b={};a66_0x1b730b[a66_0x596319(0x1cf)]=!![];const winstonFileLoggerParams={'format':winston[a66_0x596319(0x1e5)][a66_0x596319(0x1cb)](winston[a66_0x596319(0x1e5)][a66_0x596319(0x1d5)](a66_0x516998),winston[a66_0x596319(0x1e5)][a66_0x596319(0x1e6)](a66_0x1b730b),winston[a66_0x596319(0x1e5)][a66_0x596319(0x1c2)](_0x342b59=>_0x342b59[a66_0x596319(0x1cf)]+':\x20'+_0x342b59['message'])),'transports':[transports['loggerFile'],transports[a66_0x596319(0x1ce)]]};exports[a66_0x596319(0x1c5)]=new winston['createLogger'](winstonLoggerParams),exports[a66_0x596319(0x1c3)]=new winston[(a66_0x596319(0x1d6))](winstonFileLoggerParams),exports['logDir']=logDir,exports['transports']=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a67_0x4e27(){var _0x511a5c=['env','XWNTO','uKHXj','171640TLILtp','DXdml','TEST_SCREENSHOT','BS_TESTOPS_ALLOW_SCREENSHOTS','initScreenshot','split','EVkyt','EmGYd','0|3|2|1|4|5','357082NrBDWG','1325GCzEQw','takeScreenshot','1|2|3|4|0','patchScreenshot','mUGns','1993077SihJGs','bs:addLog:','266dnIquO','1184265MneROD','quitCount_','overrideQuit','ONbXA','70juAUfP','fsUcG','then','quit','ckaED','toISOString','pid','11847wwHiNf','BfzkD','232HBDGXF','wAncV','initQuit','10JjiVJo','patchQuit','1732872QuMoWf','overrideTakeScreenshot','XQnrc'];a67_0x4e27=function(){return _0x511a5c;};return a67_0x4e27();}var a67_0x3e1b24=a67_0x3bbf;function a67_0x3bbf(_0x190d9c,_0x4a8279){var _0x4e27b1=a67_0x4e27();return a67_0x3bbf=function(_0x3bbf05,_0x4d896d){_0x3bbf05=_0x3bbf05-0x83;var _0x20b780=_0x4e27b1[_0x3bbf05];return _0x20b780;},a67_0x3bbf(_0x190d9c,_0x4a8279);}(function(_0x5a69bf,_0x177c3c){var _0x3d9be6=a67_0x3bbf,_0x28bfa5=_0x5a69bf();while(!![]){try{var _0x5044c7=-parseInt(_0x3d9be6(0x91))/0x1*(parseInt(_0x3d9be6(0x98))/0x2)+parseInt(_0x3d9be6(0xa4))/0x3*(-parseInt(_0x3d9be6(0xa6))/0x4)+parseInt(_0x3d9be6(0x99))/0x5+parseInt(_0x3d9be6(0xab))/0x6+-parseInt(_0x3d9be6(0x9d))/0x7*(-parseInt(_0x3d9be6(0x87))/0x8)+-parseInt(_0x3d9be6(0x96))/0x9*(parseInt(_0x3d9be6(0xa9))/0xa)+parseInt(_0x3d9be6(0x90))/0xb;if(_0x5044c7===_0x177c3c)break;else _0x28bfa5['push'](_0x28bfa5['shift']());}catch(_0x444874){_0x28bfa5['push'](_0x28bfa5['shift']());}}}(a67_0x4e27,0x23a25),exports[a67_0x3e1b24(0xac)]=_0x5afa25=>{var _0x5087c4=a67_0x3e1b24,_0x48f8d2={'wAncV':_0x5087c4(0x8f),'GCADP':_0x5087c4(0x89),'fuXpK':function(_0x164e50,_0x4372a7){return _0x164e50(_0x4372a7);},'uKHXj':function(_0x459415,_0x13f6a5){return _0x459415!==_0x13f6a5;},'PyCiv':'true'},_0x307b40=_0x48f8d2[_0x5087c4(0xa7)][_0x5087c4(0x8c)]('|'),_0xe098f0=0x0;while(!![]){switch(_0x307b40[_0xe098f0++]){case'0':var _0x109c56={'XWNTO':_0x48f8d2['GCADP'],'mUGns':function(_0x4dd7f5,_0x43e972){return _0x48f8d2['fuXpK'](_0x4dd7f5,_0x43e972);}};continue;case'1':_0x5afa25[_0x5087c4(0x94)]=!![];continue;case'2':if(_0x5afa25[_0x5087c4(0x94)])return;continue;case'3':if(_0x48f8d2[_0x5087c4(0x86)](process[_0x5087c4(0x84)][_0x5087c4(0x8a)],_0x48f8d2['PyCiv']))return;continue;case'4':_0x5afa25[_0x5087c4(0x8b)]=_0x5afa25['takeScreenshot'];continue;case'5':_0x5afa25[_0x5087c4(0x92)]=()=>{var _0x5c2cb3=_0x5087c4,_0x3256b1={'fsUcG':_0x109c56[_0x5c2cb3(0x85)],'EVkyt':function(_0x3f5f22,_0x246294){var _0x157eea=_0x5c2cb3;return _0x109c56[_0x157eea(0x95)](_0x3f5f22,_0x246294);}};return new Promise(function(_0x24e7c8,_0x15ea88){var _0x479e34=_0x5c2cb3;_0x5afa25['initScreenshot']()[_0x479e34(0x9f)](_0x3263fd=>{var _0x38f5e3=_0x479e34;process['emit'](_0x38f5e3(0x97)+process[_0x38f5e3(0xa3)],{'timestamp':new Date()[_0x38f5e3(0xa2)](),'message':_0x3263fd,'kind':_0x3256b1[_0x38f5e3(0x9e)]}),_0x3256b1[_0x38f5e3(0x8d)](_0x24e7c8,_0x3263fd);});});};continue;}break;}},exports[a67_0x3e1b24(0x9b)]=(_0x27c7e7,_0x1c44d2=null)=>{var _0x4e08eb=a67_0x3e1b24,_0x20277b={'ONbXA':_0x4e08eb(0x93),'EmGYd':function(_0x43ff40){return _0x43ff40();},'ckaED':function(_0x112cf4,_0x515e6e){return _0x112cf4>_0x515e6e;}},_0x35c7ce=_0x20277b[_0x4e08eb(0x9c)][_0x4e08eb(0x8c)]('|'),_0x58699a=0x0;while(!![]){switch(_0x35c7ce[_0x58699a++]){case'0':_0x27c7e7[_0x4e08eb(0xa0)]=()=>{var _0x326e41=_0x4e08eb,_0x4f8c8b={'boBEe':function(_0x167187){var _0x306a25=a67_0x3bbf;return _0x5d03a5[_0x306a25(0xa5)](_0x167187);}};if(_0x1c44d2){_0x1c44d2[_0x326e41(0x9a)]+=0x1;if(_0x5d03a5[_0x326e41(0x83)](_0x1c44d2['quitCount_'],0x1))return _0x27c7e7[_0x326e41(0xa8)]();}else{_0x27c7e7[_0x326e41(0x9a)]+=0x1;if(_0x5d03a5[_0x326e41(0x88)](_0x27c7e7['quitCount_'],0x1))return _0x27c7e7['initQuit']();}return new Promise(function(_0x504bf9){_0x4f8c8b['boBEe'](_0x504bf9);});};continue;case'1':var _0x5d03a5={'BfzkD':function(_0x22e4e2){var _0x2d4463=_0x4e08eb;return _0x20277b[_0x2d4463(0x8e)](_0x22e4e2);},'XQnrc':function(_0x3fb4b6,_0x4aa2d6){var _0x46feb4=_0x4e08eb;return _0x20277b[_0x46feb4(0xa1)](_0x3fb4b6,_0x4aa2d6);},'DXdml':function(_0x552f9f,_0x24e20d){var _0x3a0882=_0x4e08eb;return _0x20277b[_0x3a0882(0xa1)](_0x552f9f,_0x24e20d);}};continue;case'2':if(_0x27c7e7['patchQuit'])return;continue;case'3':_0x27c7e7[_0x4e08eb(0xaa)]=!![];continue;case'4':_0x27c7e7[_0x4e08eb(0xa8)]=_0x27c7e7[_0x4e08eb(0xa0)];continue;}break;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x27aaf2=a68_0x50d0;(function(_0x23d1f6,_0x71990c){const _0x5b269f=a68_0x50d0,_0x43b6e5=_0x23d1f6();while(!![]){try{const _0x183b4f=parseInt(_0x5b269f(0xec))/0x1+parseInt(_0x5b269f(0xed))/0x2*(parseInt(_0x5b269f(0xd5))/0x3)+-parseInt(_0x5b269f(0xcb))/0x4*(parseInt(_0x5b269f(0xdc))/0x5)+-parseInt(_0x5b269f(0xe4))/0x6*(parseInt(_0x5b269f(0xc9))/0x7)+-parseInt(_0x5b269f(0xc3))/0x8*(parseInt(_0x5b269f(0xa9))/0x9)+-parseInt(_0x5b269f(0xc5))/0xa*(-parseInt(_0x5b269f(0xb9))/0xb)+parseInt(_0x5b269f(0xaf))/0xc;if(_0x183b4f===_0x71990c)break;else _0x43b6e5['push'](_0x43b6e5['shift']());}catch(_0x5d270d){_0x43b6e5['push'](_0x43b6e5['shift']());}}}(a68_0x226b,0x6cc8c));const fs=require('fs'),path=require(a68_0x27aaf2(0xd9)),os=require('os'),{spawn}=require(a68_0x27aaf2(0xdf)),helper=require(a68_0x27aaf2(0xa8)),logger=require(a68_0x27aaf2(0xae))['winstonLogger'],{logDir}=require(a68_0x27aaf2(0xae)),testHubConstants=require(a68_0x27aaf2(0xdb)),PercyBinary=require('./PercyBinary');function a68_0x50d0(_0x1063be,_0x59d9ec){const _0x226b96=a68_0x226b();return a68_0x50d0=function(_0x50d0e7,_0x2a2add){_0x50d0e7=_0x50d0e7-0xa8;let _0x3b714c=_0x226b96[_0x50d0e7];return _0x3b714c;},a68_0x50d0(_0x1063be,_0x59d9ec);}class Percy{#logfile=path[a68_0x27aaf2(0xba)](logDir,a68_0x27aaf2(0xc0));#address=process[a68_0x27aaf2(0xbb)][a68_0x27aaf2(0xb1)]||a68_0x27aaf2(0xe0);#binaryPath=null;#config=null;#proc=null;#isApp=![];[a68_0x27aaf2(0xda)]=![];constructor(_0x1f05a0){this.#config=_0x1f05a0,!!_0x1f05a0['app']&&(this.#isApp=!![]);}async #getBinaryPath(){if(!this.#binaryPath){const _0x53c9e0=new PercyBinary();this.#binaryPath=await _0x53c9e0['getBinaryPath'](this.#config);}return this.#binaryPath;}async #sleep(_0x535ce9){return new Promise(_0x13c951=>setTimeout(_0x13c951,_0x535ce9));}async['healthcheck'](){const _0x2af3cf=a68_0x27aaf2,_0x1128f6={};_0x1128f6[_0x2af3cf(0xf2)]=_0x2af3cf(0xc7),_0x1128f6[_0x2af3cf(0xbd)]='percy/healthcheck';const _0x391bf3=_0x1128f6;try{const _0x4b98e5=await helper[_0x2af3cf(0xc6)](_0x391bf3['AKyYD'],_0x391bf3[_0x2af3cf(0xbd)],null,null,this.#address);if(_0x4b98e5)return!![];}catch(_0x15edd1){return![];}}async['start'](){const _0x1ef914=a68_0x27aaf2,_0x1a98d0={'WPeFM':'app:exec','fmyFT':_0x1ef914(0xb5),'RcazZ':function(_0x68ec79,_0x2b92b9,_0x30c7e0,_0x370398){return _0x68ec79(_0x2b92b9,_0x30c7e0,_0x370398);},'HxdaE':_0x1ef914(0xb3),'SkzNh':_0x1ef914(0xcf)},_0x46c17d=await this.#getBinaryPath(),_0x2c64c4={};_0x2c64c4[_0x1ef914(0xb8)]='a';const _0x20f316=fs[_0x1ef914(0xea)](this.#logfile,_0x2c64c4),_0x4f2172=await this[_0x1ef914(0xee)](),_0x23c165=await this[_0x1ef914(0xcc)]();if(!_0x4f2172)return![];const _0x3c5aa2=[(this.#isApp?_0x1a98d0[_0x1ef914(0xce)]:_0x1a98d0[_0x1ef914(0xd7)])+':start'];_0x23c165&&_0x3c5aa2[_0x1ef914(0xbe)]('-c',_0x23c165);this.#proc=_0x1a98d0[_0x1ef914(0xd1)](spawn,_0x46c17d,_0x3c5aa2,{'env':Object[_0x1ef914(0xb7)](process[_0x1ef914(0xbb)],{'PERCY_TOKEN':_0x4f2172,'TH_BUILD_UUID':process[_0x1ef914(0xbb)][testHubConstants[_0x1ef914(0xe7)][_0x1ef914(0xb0)]]})}),this.#proc['stdout'][_0x1ef914(0xe2)](_0x20f316),this.#proc[_0x1ef914(0xef)][_0x1ef914(0xe2)](_0x20f316),this[_0x1ef914(0xda)]=!![];var _0x4dd369=this;this.#proc['on'](_0x1a98d0[_0x1ef914(0xb2)],function(_0x3505eb){_0x4dd369['isProcessRunning']=![];});do{const _0x450c95=await this[_0x1ef914(0xde)]();if(_0x450c95)return logger['debug'](_0x1a98d0[_0x1ef914(0xb4)]),!![];await this.#sleep(0x3e8);}while(this[_0x1ef914(0xda)]);return![];}async[a68_0x27aaf2(0xe9)](){const _0x50366e=a68_0x27aaf2,_0x4e81b6={'SbWpu':function(_0x2f742a,_0x5ab7da){return _0x2f742a(_0x5ab7da);},'FRjjf':function(_0x1d9b28,_0x1fb28d,_0x3d23af){return _0x1d9b28(_0x1fb28d,_0x3d23af);},'cgcyJ':_0x50366e(0xab),'gGVkq':_0x50366e(0xb3)},_0x26514d=await this.#getBinaryPath();return new Promise((_0x590677,_0x1f305b)=>{const _0x200ea7=_0x50366e,_0x3f5353=_0x4e81b6['FRjjf'](spawn,_0x26514d,[_0x4e81b6[_0x200ea7(0xc8)]]);_0x3f5353['on'](_0x4e81b6['gGVkq'],_0x92ebca=>{const _0x5dc2bc=_0x200ea7;this[_0x5dc2bc(0xda)]=![],_0x4e81b6[_0x5dc2bc(0xd2)](_0x590677,_0x92ebca);});});}['isRunning'](){return this['isProcessRunning'];}async[a68_0x27aaf2(0xee)](){const _0x4b44b0=a68_0x27aaf2,_0x3521a3={};_0x3521a3[_0x4b44b0(0xd8)]=_0x4b44b0(0xd4),_0x3521a3[_0x4b44b0(0xc2)]=_0x4b44b0(0xf0),_0x3521a3['xScQb']='GET',_0x3521a3[_0x4b44b0(0xd0)]=_0x4b44b0(0xbf);const _0x241ffd=_0x3521a3,_0x52b1f0=this.#config[_0x4b44b0(0xf1)];try{const _0x3bb6e1=this.#isApp?_0x241ffd['bTSqK']:_0x241ffd[_0x4b44b0(0xc2)],_0x304da9=await helper[_0x4b44b0(0xc6)](_0x241ffd[_0x4b44b0(0xe8)],_0x4b44b0(0xe6)+_0x52b1f0+_0x4b44b0(0xca)+_0x3bb6e1,{},this.#config),_0x2edf12=_0x304da9[_0x4b44b0(0xad)];return logger[_0x4b44b0(0xcd)](_0x241ffd[_0x4b44b0(0xd0)]),_0x2edf12[_0x4b44b0(0xac)];}catch(_0x46447b){return logger[_0x4b44b0(0xf3)](_0x4b44b0(0xeb)+_0x46447b),null;}}async[a68_0x27aaf2(0xcc)](){const _0x4dd7ce=a68_0x27aaf2,_0x2225e8={'NtWwL':function(_0x403c34,_0x12052e){return _0x403c34(_0x12052e);},'MCnxz':function(_0x1e3e71,_0x3ead9d){return _0x1e3e71+_0x3ead9d;},'QZmHG':'Percy\x20config\x20created\x20at\x20','DYmSu':'percy.json'};if(!this.#config[_0x4dd7ce(0xb6)])return null;const _0x164793=path[_0x4dd7ce(0xba)](os[_0x4dd7ce(0xe1)](),_0x2225e8[_0x4dd7ce(0xc1)]),_0x5152c1=this.#config[_0x4dd7ce(0xb6)];return!_0x5152c1[_0x4dd7ce(0xe3)]&&(_0x5152c1[_0x4dd7ce(0xe3)]='2'),new Promise((_0x578297,_0x4d76ac)=>{const _0x25e582=_0x4dd7ce,_0x311185={'aWIJI':function(_0x3742ec,_0x2b4f57){const _0x5eebc3=a68_0x50d0;return _0x2225e8[_0x5eebc3(0xdd)](_0x3742ec,_0x2b4f57);},'WaWmk':function(_0x4c8f8a,_0x46624f){return _0x2225e8['MCnxz'](_0x4c8f8a,_0x46624f);},'sEHvx':_0x2225e8[_0x25e582(0xd6)]};fs['writeFile'](_0x164793,JSON[_0x25e582(0xe5)](_0x5152c1),_0x3c6dc5=>{const _0x32e7b9=_0x25e582;_0x3c6dc5&&(logger[_0x32e7b9(0xf3)]('Error\x20creating\x20percy\x20config:\x20'+_0x3c6dc5),_0x311185[_0x32e7b9(0xaa)](_0x578297,null)),logger['debug'](_0x311185[_0x32e7b9(0xc4)](_0x311185[_0x32e7b9(0xbc)],_0x164793)),_0x311185[_0x32e7b9(0xaa)](_0x578297,_0x164793);});});}}module[a68_0x27aaf2(0xd3)]=Percy;function a68_0x226b(){const _0x35e786=['path','isProcessRunning','../../helpers/testhub/constants','1236965BCyzDh','NtWwL','healthcheck','child_process','http://localhost:5338','tmpdir','pipe','version','135228PbOPtA','stringify','api/app_percy/get_project_token?name=','ENV_VAR','xScQb','stop','createWriteStream','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','24184ZPRLOZ','188626KHjKLU','fetchPercyToken','stderr','automate','projectName','AKyYD','error','../helper','1161QXlPAL','aWIJI','exec:stop','token','data','../logger','21925032hGJyxR','BROWSERSTACK_TESTHUB_UUID','PERCY_SERVER_ADDRESS','HxdaE','close','SkzNh','exec','percyOptions','assign','flags','33ZvaGgS','join','env','sEHvx','zeaRe','push','Percy\x20fetch\x20token\x20success','percy.log','DYmSu','eGfAQ','50152Pbmefm','WaWmk','173090YWXPLC','nodeRequest','GET','cgcyJ','154NAEuUX','&type=','4NSRVdc','createPercyConfig','debug','WPeFM','Percy\x20healthcheck\x20successful','ESUKv','RcazZ','SbWpu','exports','app','3RjzyWf','QZmHG','fmyFT','bTSqK'];a68_0x226b=function(){return _0x35e786;};return a68_0x226b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a66_0x346108=a66_0x1a74;function a66_0x1a74(_0x2fb462,_0x57bb67){const _0x3e05fe=a66_0x3e05();return a66_0x1a74=function(_0x1a7496,_0x43c502){_0x1a7496=_0x1a7496-0xcb;let _0x170f7f=_0x3e05fe[_0x1a7496];return _0x170f7f;},a66_0x1a74(_0x2fb462,_0x57bb67);}(function(_0x3f07e3,_0x215fc6){const _0x1a7839=a66_0x1a74,_0x24bb3c=_0x3f07e3();while(!![]){try{const _0x48c6fc=parseInt(_0x1a7839(0x127))/0x1*(parseInt(_0x1a7839(0xd4))/0x2)+parseInt(_0x1a7839(0x131))/0x3+-parseInt(_0x1a7839(0xf5))/0x4+parseInt(_0x1a7839(0xd3))/0x5+-parseInt(_0x1a7839(0x112))/0x6+-parseInt(_0x1a7839(0x12a))/0x7+parseInt(_0x1a7839(0x10e))/0x8*(parseInt(_0x1a7839(0x14f))/0x9);if(_0x48c6fc===_0x215fc6)break;else _0x24bb3c['push'](_0x24bb3c['shift']());}catch(_0x32eef6){_0x24bb3c['push'](_0x24bb3c['shift']());}}}(a66_0x3e05,0x44df9));function a66_0x3e05(){const _0x368b6e=['APtqH','aKTUY','fileName','Corrupt\x20percy\x20binary,\x20retrying','USER','JQtyh','mIbGb','port','nMjxM','FXVPq','ulPVY','bAsaK','dzbsD','USERPROFILE','16IVMDLN','PweZn','stBRz','data','279156LOGWJe','child_process','close','path','length','TyGFr','openReadStream','nicKn','TXiDV','dQucS','readEntry','../logger','0755','QEaNl','NpzPR','zkspw','get','host','env','ZVaAE','OEEtu','397xOdvEY','error','VUeSw','3369730cfZQWK','--version','getuid','rxMKU','stdout','ZbLWj','validateBinary','1484424RUvaqJ','JejSu','agent','rpFHa','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','url','VZBXA','aLoWv','vvQCv','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','https://github.com/percy/cli/releases/latest/download','Xysdg','USERNAME','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','RUOYN','XDhLv','JkPLG','yauzl','VzjLa','pipe','gPvPT','statSync','Cdthu','proxyHost','parse','exports','proxyPort','FXVeY','otmQs','function','790362AxfikO','TcFEl','entry','test','gUKFi','follow-redirects','cwd','getBinaryPath','fFKjB','Error\x20trying\x20to\x20download\x20percy\x20binary','cueJD','ZjYQG','oVWWd','homedir','join','/percy-osx.zip','1151350UIhxhp','1454IUhWCA','.zip','WyPGC','HOME','ATdPp','/Users/','win32','createWriteStream','HOMEPATH','DmLEc','JObar','download','LOGNAME','DcdHX','SbCzV','tmpdir','open','mkdirSync','LNAME','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','winstonLogger','envgS','R_OK','EfrhM','AHRMw','accessSync','useCaCertificate','aMkKV','SBgMu','IuMHq','platform','https-proxy-agent','end','1517248gyNWoA','koshy','match','readFileSync','X_OK','fVTZT','xlQGl','percy.exe','JXRQQ','fFbJl','/home/'];a66_0x3e05=function(){return _0x368b6e;};return a66_0x3e05();}const {https}=require(a66_0x346108(0x154)),url=require(a66_0x346108(0x136)),yauzl=require(a66_0x346108(0x142)),fs=require('fs'),path=require(a66_0x346108(0x115)),os=require('os'),{spawn}=require(a66_0x346108(0x113)),HttpsProxyAgent=require(a66_0x346108(0xf3)),logger=require(a66_0x346108(0x11d))[a66_0x346108(0xe8)];class PercyBinary{#hostOS=process[a66_0x346108(0xf2)];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a66_0x346108(0xd1)](this.#homedir(),'.browserstack'),process[a66_0x346108(0x155)](),os[a66_0x346108(0xe3)]()];constructor(){const _0x383651=a66_0x346108,_0x1b1305={};_0x1b1305['rpFHa']=_0x383651(0x13b),_0x1b1305[_0x383651(0xfa)]=function(_0x3f3106,_0x13daea){return _0x3f3106+_0x13daea;},_0x1b1305[_0x383651(0x139)]=_0x383651(0xd2),_0x1b1305['DcdHX']=function(_0x92c1a0,_0x15b52f){return _0x92c1a0+_0x15b52f;},_0x1b1305['ZbLWj']='/percy-win.zip',_0x1b1305[_0x383651(0xeb)]=_0x383651(0xfc),_0x1b1305['QSDAC']=function(_0x4e5b94,_0x3fc282){return _0x4e5b94+_0x3fc282;},_0x1b1305[_0x383651(0x132)]='/percy-linux.zip';const _0x3c7bf5=_0x1b1305,_0x3ee952=_0x3c7bf5[_0x383651(0x134)];if(this.#hostOS[_0x383651(0xf7)](/darwin|mac os/i))this.#httpPath=_0x3c7bf5[_0x383651(0xfa)](_0x3ee952,_0x3c7bf5[_0x383651(0x139)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x3c7bf5[_0x383651(0xe1)](_0x3ee952,_0x3c7bf5[_0x383651(0x12f)]),this.#binaryName=_0x3c7bf5['EfrhM']):this.#httpPath=_0x3c7bf5['QSDAC'](_0x3ee952,_0x3c7bf5[_0x383651(0x132)]);}#getAvailableDirs(){const _0x3d3bf9=a66_0x346108,_0x5a1197={};_0x5a1197[_0x3d3bf9(0xf6)]=function(_0x4a963f,_0x140b80){return _0x4a963f<_0x140b80;},_0x5a1197[_0x3d3bf9(0x13c)]=_0x3d3bf9(0xcc);const _0x2e360d=_0x5a1197;for(var _0x11f57d=0x0;_0x2e360d[_0x3d3bf9(0xf6)](_0x11f57d,this.#orderedPaths[_0x3d3bf9(0x116)]);_0x11f57d++){var _0x2144c1=this.#orderedPaths[_0x11f57d];if(this.#makePath(_0x2144c1))return _0x2144c1;}throw new Error(_0x2e360d[_0x3d3bf9(0x13c)]);}#makePath(_0x282719){const _0x414f5b=a66_0x346108;try{return!this.#checkPath(_0x282719)&&fs[_0x414f5b(0xe5)](_0x282719),!![];}catch{return![];}}#checkPath(_0x52ee03,_0x3d054e){const _0x10e940=a66_0x346108,_0x242b26={};_0x242b26['xWIGi']=function(_0x385ded,_0x48d5e0){return _0x385ded|_0x48d5e0;},_0x242b26['UISNY']=function(_0x37946c,_0x2cf14f){return _0x37946c!==_0x2cf14f;},_0x242b26[_0x10e940(0x150)]='undefined';const _0x5dad30=_0x242b26;_0x3d054e=_0x3d054e||_0x5dad30['xWIGi'](fs[_0x10e940(0xea)],fs['W_OK']);try{return fs[_0x10e940(0xed)](_0x52ee03,_0x3d054e),!![];}catch(_0x3473b6){if(_0x5dad30['UISNY'](typeof fs['accessSync'],_0x5dad30[_0x10e940(0x150)]))return![];try{return fs[_0x10e940(0x146)](_0x52ee03),!![];}catch(_0x17a6b6){return![];}}}async[a66_0x346108(0x156)](_0x1a170b){const _0xcbf664=a66_0x346108,_0x5a19a5={};_0x5a19a5[_0xcbf664(0x153)]=_0xcbf664(0x103);const _0xa4b489=_0x5a19a5;var _0x222a66=this.#getAvailableDirs(),_0x333ff=path[_0xcbf664(0xd1)](_0x222a66,this.#binaryName);if(this.#checkPath(_0x333ff,fs[_0xcbf664(0xf9)]))return _0x333ff;const _0x46fd07=await this[_0xcbf664(0xdf)](_0x1a170b,_0x222a66),_0x564be8=await this[_0xcbf664(0x130)](_0x46fd07);if(!_0x564be8)return logger[_0xcbf664(0x128)](_0xa4b489['gUKFi']),await this[_0xcbf664(0xdf)](_0x1a170b,_0x222a66);return _0x46fd07;}async[a66_0x346108(0x130)](_0x258abf){const _0x160f26=a66_0x346108,_0x332910={'VUeSw':function(_0x1ba06a,_0xa6a165){return _0x1ba06a(_0xa6a165);},'aKTUY':function(_0x180c4e,_0x180952){return _0x180c4e(_0x180952);},'bAsaK':function(_0x368ad9,_0x25db63,_0x10ee49){return _0x368ad9(_0x25db63,_0x10ee49);},'FXVeY':_0x160f26(0x12b),'nMjxM':_0x160f26(0x111),'ulPVY':'close'},_0x269a75=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0xcbbc43,_0x343f24)=>{const _0x346d48=_0x160f26,_0x315900={'IuMHq':function(_0x208614,_0xb774e3){const _0x1b4316=a66_0x1a74;return _0x332910[_0x1b4316(0x101)](_0x208614,_0xb774e3);}},_0x494e76=_0x332910[_0x346d48(0x10b)](spawn,_0x258abf,[_0x332910[_0x346d48(0x14c)]]);_0x494e76[_0x346d48(0x12e)]['on'](_0x332910[_0x346d48(0x108)],_0x4689c8=>{const _0x23733b=_0x346d48;_0x269a75[_0x23733b(0x152)](_0x4689c8)&&_0x315900[_0x23733b(0xf1)](_0xcbbc43,!![]);}),_0x494e76['on'](_0x332910[_0x346d48(0x10a)],()=>{const _0x2709f5=_0x346d48;_0x332910[_0x2709f5(0x129)](_0xcbbc43,![]);});});}['download'](_0x5a7480,_0x20cec5){const _0x50f5ba=a66_0x346108,_0x6b471c={'ciBjA':_0x50f5ba(0x13e),'dzbsD':function(_0x104297,_0x595184){return _0x104297(_0x595184);},'SBgMu':function(_0x30accc,_0x11c497){return _0x30accc===_0x11c497;},'vUSVf':_0x50f5ba(0xf4),'bDJnx':_0x50f5ba(0x11e),'oVWWd':_0x50f5ba(0x151),'XDhLv':_0x50f5ba(0x128),'JkPLG':_0x50f5ba(0x114),'xlQGl':_0x50f5ba(0x135),'APtqH':_0x50f5ba(0xe7),'JXRQQ':function(_0x363c2b,_0x37d10a){return _0x363c2b(_0x37d10a);},'zDMmp':function(_0x488a0e,_0x5aec8d){return _0x488a0e+_0x5aec8d;},'ydvrm':_0x50f5ba(0xd5),'NpzPR':_0x50f5ba(0x13a)};!this.#checkPath(_0x20cec5)&&fs[_0x50f5ba(0xe5)](_0x20cec5);const _0x576820=this.#binaryName,_0x17a989=path[_0x50f5ba(0xd1)](_0x20cec5,_0x6b471c['zDMmp'](_0x576820,_0x6b471c['ydvrm'])),_0xa5c792=path[_0x50f5ba(0xd1)](_0x20cec5,_0x576820),_0x392d86=fs[_0x50f5ba(0xdb)](_0x17a989),_0x59e823=url[_0x50f5ba(0x149)](this.#httpPath);if(_0x5a7480[_0x50f5ba(0x148)]&&_0x5a7480[_0x50f5ba(0x14b)]){const _0x253297={};_0x253297[_0x50f5ba(0x123)]=_0x5a7480['proxyHost'],_0x253297[_0x50f5ba(0x107)]=_0x5a7480['proxyPort'],_0x59e823[_0x50f5ba(0x133)]=new HttpsProxyAgent(_0x253297);}if(_0x5a7480[_0x50f5ba(0xee)])try{_0x59e823['ca']=fs[_0x50f5ba(0xf8)](_0x5a7480[_0x50f5ba(0xee)]);}catch(_0x25c7d2){logger[_0x50f5ba(0x128)](_0x6b471c[_0x50f5ba(0x120)],_0x25c7d2);}return new Promise((_0x1b1f0b,_0x9df30d)=>{const _0x3ed29c=_0x50f5ba,_0x340658={'ZjYQG':_0x6b471c[_0x3ed29c(0xfb)],'aLoWv':function(_0x50d44d,_0x36901e){const _0xf6e190=_0x3ed29c;return _0x6b471c[_0xf6e190(0x10c)](_0x50d44d,_0x36901e);},'VZBXA':_0x6b471c[_0x3ed29c(0x100)],'XjiZN':function(_0x51e3f5,_0x411d8e){const _0x55da17=_0x3ed29c;return _0x6b471c[_0x55da17(0xfd)](_0x51e3f5,_0x411d8e);}};https[_0x3ed29c(0x122)](_0x59e823,function(_0x1b83a9){const _0x29ce2b=_0x3ed29c,_0x3e5e2d={'AHRMw':_0x6b471c['ciBjA'],'PweZn':function(_0x58221a,_0x4d5871){const _0x469aba=a66_0x1a74;return _0x6b471c[_0x469aba(0x10c)](_0x58221a,_0x4d5871);},'FSdrw':function(_0x7e0c3a,_0x1d40b3){const _0x188bd6=a66_0x1a74;return _0x6b471c[_0x188bd6(0xf0)](_0x7e0c3a,_0x1d40b3);},'rxMKU':_0x6b471c['vUSVf'],'gPvPT':_0x6b471c['bDJnx'],'rtPwC':_0x6b471c[_0x29ce2b(0xcf)],'nicKn':_0x6b471c['XDhLv']};_0x1b83a9[_0x29ce2b(0x144)](_0x392d86),_0x1b83a9['on'](_0x6b471c[_0x29ce2b(0x140)],function(_0x218785){const _0x1eebd0=_0x29ce2b;logger[_0x1eebd0(0x128)](_0x3e5e2d[_0x1eebd0(0xec)],_0x218785),_0x3e5e2d[_0x1eebd0(0x10f)](_0x9df30d,_0x218785);}),_0x392d86['on'](_0x6b471c['XDhLv'],function(_0x5d5ff6){const _0xa42b2f=_0x29ce2b;logger['error'](_0x340658[_0xa42b2f(0xce)],_0x5d5ff6),_0x340658[_0xa42b2f(0x138)](_0x9df30d,_0x5d5ff6);}),_0x392d86['on'](_0x6b471c[_0x29ce2b(0x141)],function(){const _0x26c115=_0x29ce2b,_0x3140ba={'envgS':function(_0x4fdb7a,_0x530b0c){return _0x3e5e2d['FSdrw'](_0x4fdb7a,_0x530b0c);},'JObar':function(_0x126889,_0x3a4679){const _0x49d538=a66_0x1a74;return _0x3e5e2d[_0x49d538(0x10f)](_0x126889,_0x3a4679);},'TyGFr':_0x3e5e2d[_0x26c115(0x12d)],'VzjLa':_0x3e5e2d[_0x26c115(0x145)],'dQucS':_0x3e5e2d['rtPwC'],'stBRz':_0x3e5e2d[_0x26c115(0x119)]},_0x2b4e14={};_0x2b4e14['lazyEntries']=!![],yauzl[_0x26c115(0xe4)](_0x17a989,_0x2b4e14,function(_0x313eb6,_0x62b744){const _0xd7cb1d=_0x26c115,_0x12b1d3={'fFKjB':function(_0x3d35ae,_0x15bf27){const _0x510dc9=a66_0x1a74;return _0x3140ba[_0x510dc9(0xde)](_0x3d35ae,_0x15bf27);},'JQtyh':_0x3140ba[_0xd7cb1d(0x117)],'WyPGC':_0x3140ba[_0xd7cb1d(0x143)]};_0x313eb6&&_0x3140ba[_0xd7cb1d(0xde)](_0x9df30d,_0x313eb6),_0x62b744[_0xd7cb1d(0x11c)](),_0x62b744['on'](_0x3140ba[_0xd7cb1d(0x11b)],_0x31bc6f=>{const _0x56ca5e=_0xd7cb1d;if(/\/$/[_0x56ca5e(0x152)](_0x31bc6f[_0x56ca5e(0x102)]))_0x62b744['readEntry']();else{const _0x2e07e1=fs[_0x56ca5e(0xdb)](path[_0x56ca5e(0xd1)](_0x20cec5,_0x31bc6f[_0x56ca5e(0x102)]));_0x62b744[_0x56ca5e(0x118)](_0x31bc6f,function(_0xb6a875,_0x305446){const _0x4122a1=_0x56ca5e;_0xb6a875&&_0x12b1d3['fFKjB'](_0x9df30d,_0x313eb6),_0x305446['on'](_0x12b1d3[_0x4122a1(0x105)],function(){const _0x2e18c9=_0x4122a1;_0x2e07e1[_0x2e18c9(0x114)](),_0x62b744[_0x2e18c9(0x11c)]();}),_0x305446[_0x4122a1(0x144)](_0x2e07e1);}),_0x3140ba[_0x56ca5e(0xe9)](_0x31bc6f[_0x56ca5e(0x102)],_0x576820)&&_0x62b744[_0x56ca5e(0x114)]();}}),_0x62b744['on'](_0x3140ba[_0xd7cb1d(0x110)],_0x3569f1=>{_0x12b1d3['fFKjB'](_0x9df30d,_0x3569f1);}),_0x62b744['once'](_0x3140ba['TyGFr'],()=>{const _0x30d4b3=_0xd7cb1d,_0x2c14a7={'SbCzV':function(_0x515921,_0x591b71){return _0x12b1d3['fFKjB'](_0x515921,_0x591b71);},'zkspw':function(_0x3991a5,_0x4d9a8f){const _0x18a078=a66_0x1a74;return _0x12b1d3[_0x18a078(0xcb)](_0x3991a5,_0x4d9a8f);}};fs['chmod'](_0xa5c792,_0x12b1d3[_0x30d4b3(0xd6)],function(_0x41d315){const _0x284f7c=_0x30d4b3;_0x41d315&&_0x2c14a7[_0x284f7c(0xe2)](_0x9df30d,_0x41d315),_0x2c14a7[_0x284f7c(0x121)](_0x1b1f0b,_0xa5c792);}),_0x62b744[_0x30d4b3(0x114)]();});});});})['on'](_0x6b471c['XDhLv'],function(_0x140ee4){const _0x152385=_0x3ed29c;logger[_0x152385(0x128)](_0x340658[_0x152385(0x137)],_0x140ee4),_0x340658['XjiZN'](_0x9df30d,_0x140ee4);});});}#homedir(){const _0x5c1372=a66_0x346108,_0x390be3={};_0x390be3[_0x5c1372(0x11a)]=function(_0x59f355,_0x5ebbf6){return _0x59f355===_0x5ebbf6;},_0x390be3['Cdthu']=_0x5c1372(0x14e),_0x390be3[_0x5c1372(0xfe)]=function(_0x4bb98e,_0x3ec99c){return _0x4bb98e===_0x3ec99c;},_0x390be3[_0x5c1372(0x126)]=_0x5c1372(0xda),_0x390be3[_0x5c1372(0x13f)]=function(_0x346978,_0x48fed3){return _0x346978+_0x48fed3;},_0x390be3[_0x5c1372(0x109)]=function(_0x33ab42,_0x3cd926){return _0x33ab42===_0x3cd926;},_0x390be3[_0x5c1372(0x106)]='darwin',_0x390be3[_0x5c1372(0xef)]=function(_0x5ecc4c,_0x2bd4d8){return _0x5ecc4c+_0x2bd4d8;},_0x390be3['ATdPp']=_0x5c1372(0xd9),_0x390be3[_0x5c1372(0x14d)]=function(_0x3d63be,_0x131894){return _0x3d63be===_0x131894;},_0x390be3[_0x5c1372(0xdd)]='linux',_0x390be3[_0x5c1372(0x11f)]='/root',_0x390be3[_0x5c1372(0xcd)]=_0x5c1372(0xff),_0x390be3[_0x5c1372(0x125)]=function(_0x5a15c2,_0x444767){return _0x5a15c2||_0x444767;};const _0x467605=_0x390be3;if(_0x467605[_0x5c1372(0x11a)](typeof os[_0x5c1372(0xd0)],_0x467605[_0x5c1372(0x147)]))return os[_0x5c1372(0xd0)]();const _0x4b91f2=process[_0x5c1372(0x124)],_0x4b3478=_0x4b91f2[_0x5c1372(0xd7)],_0x5d9dc8=_0x4b91f2[_0x5c1372(0xe0)]||_0x4b91f2[_0x5c1372(0x104)]||_0x4b91f2[_0x5c1372(0xe6)]||_0x4b91f2[_0x5c1372(0x13d)];if(_0x467605[_0x5c1372(0xfe)](process[_0x5c1372(0xf2)],_0x467605[_0x5c1372(0x126)]))return _0x4b91f2[_0x5c1372(0x10d)]||_0x467605[_0x5c1372(0x13f)](_0x4b91f2['HOMEDRIVE'],_0x4b91f2[_0x5c1372(0xdc)])||_0x4b3478||null;if(_0x467605[_0x5c1372(0x109)](process[_0x5c1372(0xf2)],_0x467605['mIbGb']))return _0x4b3478||(_0x5d9dc8?_0x467605[_0x5c1372(0xef)](_0x467605[_0x5c1372(0xd8)],_0x5d9dc8):null);if(_0x467605['otmQs'](process[_0x5c1372(0xf2)],_0x467605[_0x5c1372(0xdd)]))return _0x4b3478||(_0x467605[_0x5c1372(0x14d)](process[_0x5c1372(0x12c)](),0x0)?_0x467605['QEaNl']:_0x5d9dc8?_0x467605['RUOYN'](_0x467605[_0x5c1372(0xcd)],_0x5d9dc8):null);return _0x467605[_0x5c1372(0x125)](_0x4b3478,null);}}module[a66_0x346108(0x14a)]=PercyBinary;
|
|
1
|
+
const a69_0x5d5334=a69_0x2859;(function(_0x2d22c6,_0x2969b7){const _0x200787=a69_0x2859,_0x509a96=_0x2d22c6();while(!![]){try{const _0x405f05=parseInt(_0x200787(0x14f))/0x1+parseInt(_0x200787(0x1b3))/0x2+parseInt(_0x200787(0x132))/0x3*(parseInt(_0x200787(0x150))/0x4)+parseInt(_0x200787(0x12d))/0x5*(parseInt(_0x200787(0x173))/0x6)+parseInt(_0x200787(0x153))/0x7+-parseInt(_0x200787(0x1ad))/0x8*(parseInt(_0x200787(0x136))/0x9)+parseInt(_0x200787(0x1af))/0xa*(-parseInt(_0x200787(0x18f))/0xb);if(_0x405f05===_0x2969b7)break;else _0x509a96['push'](_0x509a96['shift']());}catch(_0x4bf6af){_0x509a96['push'](_0x509a96['shift']());}}}(a69_0x4d51,0xe69d0));const {https}=require(a69_0x5d5334(0x1a8)),url=require(a69_0x5d5334(0x174)),yauzl=require('yauzl'),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a69_0x5d5334(0x15d)),HttpsProxyAgent=require(a69_0x5d5334(0x189)),logger=require(a69_0x5d5334(0x133))[a69_0x5d5334(0x151)];class PercyBinary{#hostOS=process[a69_0x5d5334(0x1b2)];#httpPath=null;#binaryName=a69_0x5d5334(0x16a);#orderedPaths=[path['join'](this.#homedir(),a69_0x5d5334(0x1ac)),process[a69_0x5d5334(0x14b)](),os[a69_0x5d5334(0x1ab)]()];constructor(){const _0x434f73=a69_0x5d5334,_0x327e74={};_0x327e74[_0x434f73(0x1a2)]=_0x434f73(0x165),_0x327e74['mTrFk']=function(_0x2b9483,_0x57afeb){return _0x2b9483+_0x57afeb;},_0x327e74['kJGWv']=_0x434f73(0x135),_0x327e74['jmNHh']=_0x434f73(0x1a4),_0x327e74['wbQed']='percy.exe',_0x327e74[_0x434f73(0x13b)]=function(_0x100217,_0x214ac3){return _0x100217+_0x214ac3;},_0x327e74[_0x434f73(0x162)]=_0x434f73(0x176);const _0x276a80=_0x327e74,_0x1b1bf7=_0x276a80[_0x434f73(0x1a2)];if(this.#hostOS[_0x434f73(0x17f)](/darwin|mac os/i))this.#httpPath=_0x276a80[_0x434f73(0x175)](_0x1b1bf7,_0x276a80[_0x434f73(0x147)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x276a80[_0x434f73(0x175)](_0x1b1bf7,_0x276a80['jmNHh']),this.#binaryName=_0x276a80[_0x434f73(0x130)]):this.#httpPath=_0x276a80[_0x434f73(0x13b)](_0x1b1bf7,_0x276a80[_0x434f73(0x162)]);}#getAvailableDirs(){const _0x281bab=a69_0x5d5334,_0x173263={};_0x173263[_0x281bab(0x19d)]=function(_0x2d9826,_0x1abf39){return _0x2d9826<_0x1abf39;},_0x173263[_0x281bab(0x184)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x21a1e0=_0x173263;for(var _0x1c44f8=0x0;_0x21a1e0[_0x281bab(0x19d)](_0x1c44f8,this.#orderedPaths[_0x281bab(0x1a1)]);_0x1c44f8++){var _0x5b1aab=this.#orderedPaths[_0x1c44f8];if(this.#makePath(_0x5b1aab))return _0x5b1aab;}throw new Error(_0x21a1e0[_0x281bab(0x184)]);}#makePath(_0x553145){const _0x5f0b34=a69_0x5d5334;try{return!this.#checkPath(_0x553145)&&fs[_0x5f0b34(0x19e)](_0x553145),!![];}catch{return![];}}#checkPath(_0x39c97f,_0xe0a540){const _0x1073bd=a69_0x5d5334,_0x2b81d8={};_0x2b81d8[_0x1073bd(0x142)]=function(_0xe1df9f,_0x54b4b6){return _0xe1df9f|_0x54b4b6;},_0x2b81d8[_0x1073bd(0x198)]=function(_0x339277,_0x5e2206){return _0x339277!==_0x5e2206;},_0x2b81d8[_0x1073bd(0x170)]=_0x1073bd(0x178);const _0x5cb811=_0x2b81d8;_0xe0a540=_0xe0a540||_0x5cb811[_0x1073bd(0x142)](fs[_0x1073bd(0x156)],fs[_0x1073bd(0x1a6)]);try{return fs[_0x1073bd(0x163)](_0x39c97f,_0xe0a540),!![];}catch(_0x5e1d26){if(_0x5cb811['XdNRs'](typeof fs[_0x1073bd(0x163)],_0x5cb811['gVntF']))return![];try{return fs[_0x1073bd(0x1b4)](_0x39c97f),!![];}catch(_0x1439a4){return![];}}}async[a69_0x5d5334(0x13f)](_0x34a0fd){const _0x268e6b=a69_0x5d5334,_0x1d2d69={};_0x1d2d69['jZwQu']='Corrupt\x20percy\x20binary,\x20retrying';const _0x3db5ed=_0x1d2d69;var _0x58cd79=this.#getAvailableDirs(),_0x37c69c=path[_0x268e6b(0x19c)](_0x58cd79,this.#binaryName);if(this.#checkPath(_0x37c69c,fs[_0x268e6b(0x180)]))return _0x37c69c;const _0x42c041=await this[_0x268e6b(0x141)](_0x34a0fd,_0x58cd79),_0x49d576=await this[_0x268e6b(0x155)](_0x42c041);if(!_0x49d576)return logger[_0x268e6b(0x171)](_0x3db5ed['jZwQu']),await this[_0x268e6b(0x141)](_0x34a0fd,_0x58cd79);return _0x42c041;}async[a69_0x5d5334(0x155)](_0x102225){const _0x1b11fb=a69_0x5d5334,_0x54eec1={'qCVgT':function(_0x18cae3,_0x3267cf){return _0x18cae3(_0x3267cf);},'QWmYq':function(_0x3e6ee9,_0x379138,_0x39e5ce){return _0x3e6ee9(_0x379138,_0x39e5ce);},'JlOtN':'--version','Fxpwo':_0x1b11fb(0x196),'lnkNV':_0x1b11fb(0x1b0)},_0x57a347=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x1acf98,_0x61e6b6)=>{const _0x2f71a7=_0x1b11fb,_0x4b0360={'mKupU':function(_0x39ce15,_0x375be1){const _0x41f589=a69_0x2859;return _0x54eec1[_0x41f589(0x1aa)](_0x39ce15,_0x375be1);},'BvTdt':function(_0x4f2bd5,_0xd841a5){return _0x54eec1['qCVgT'](_0x4f2bd5,_0xd841a5);}},_0x401d9f=_0x54eec1[_0x2f71a7(0x14d)](spawn,_0x102225,[_0x54eec1[_0x2f71a7(0x179)]]);_0x401d9f['stdout']['on'](_0x54eec1[_0x2f71a7(0x14a)],_0x487112=>{const _0x746ec3=_0x2f71a7;_0x57a347['test'](_0x487112)&&_0x4b0360[_0x746ec3(0x16e)](_0x1acf98,!![]);}),_0x401d9f['on'](_0x54eec1[_0x2f71a7(0x15a)],()=>{const _0x394250=_0x2f71a7;_0x4b0360[_0x394250(0x145)](_0x1acf98,![]);});});}['download'](_0xa621c8,_0xf60994){const _0x693f26=a69_0x5d5334,_0x434d2c={'rMflT':_0x693f26(0x138),'vZWdN':function(_0x11151d,_0x47f8b1){return _0x11151d(_0x47f8b1);},'bVLBj':_0x693f26(0x160),'APISw':_0x693f26(0x1a5),'XuYex':function(_0x393b6b,_0x4918ba){return _0x393b6b===_0x4918ba;},'BygLH':'0755','SpJXF':_0x693f26(0x192),'qCQyY':'error','ICmAF':_0x693f26(0x1b0),'JCanD':_0x693f26(0x193),'jvWQa':function(_0xe1be7,_0x2abdef){return _0xe1be7+_0x2abdef;},'fGbHf':_0x693f26(0x161),'Xusqz':_0x693f26(0x15b)};!this.#checkPath(_0xf60994)&&fs[_0x693f26(0x19e)](_0xf60994);const _0x2317ed=this.#binaryName,_0x10ad92=path[_0x693f26(0x19c)](_0xf60994,_0x434d2c[_0x693f26(0x17d)](_0x2317ed,_0x434d2c[_0x693f26(0x1b1)])),_0x4aba4e=path[_0x693f26(0x19c)](_0xf60994,_0x2317ed),_0x315c9a=fs['createWriteStream'](_0x10ad92),_0x471751=url['parse'](this.#httpPath);if(_0xa621c8[_0x693f26(0x164)]&&_0xa621c8['proxyPort']){const _0x55b848={};_0x55b848['host']=_0xa621c8[_0x693f26(0x164)],_0x55b848[_0x693f26(0x181)]=_0xa621c8[_0x693f26(0x19a)],_0x471751['agent']=new HttpsProxyAgent(_0x55b848);}if(_0xa621c8[_0x693f26(0x16c)])try{_0x471751['ca']=fs[_0x693f26(0x148)](_0xa621c8['useCaCertificate']);}catch(_0x50ae8c){logger[_0x693f26(0x171)](_0x434d2c[_0x693f26(0x1a0)],_0x50ae8c);}return new Promise((_0x28eac5,_0x47ff83)=>{const _0x106fbc=_0x693f26;https[_0x106fbc(0x140)](_0x471751,function(_0x313bf4){const _0x3f4e37=_0x106fbc,_0x4da80e={'YWujq':_0x434d2c[_0x3f4e37(0x139)],'FTflk':function(_0x5abb97,_0x5e6736){const _0x271de6=_0x3f4e37;return _0x434d2c[_0x271de6(0x1a9)](_0x5abb97,_0x5e6736);},'wIxAM':_0x434d2c[_0x3f4e37(0x177)],'zWsrf':function(_0x3dd090,_0x28e15f){const _0x5b081e=_0x3f4e37;return _0x434d2c[_0x5b081e(0x1a9)](_0x3dd090,_0x28e15f);},'puwZN':_0x434d2c[_0x3f4e37(0x13c)],'sEERf':function(_0x347816,_0x310869){const _0x56e5d8=_0x3f4e37;return _0x434d2c[_0x56e5d8(0x15e)](_0x347816,_0x310869);},'sRwzj':_0x434d2c['BygLH'],'ZSlvp':_0x434d2c[_0x3f4e37(0x1a7)],'KAUpZ':_0x434d2c[_0x3f4e37(0x137)]};_0x313bf4[_0x3f4e37(0x15c)](_0x315c9a),_0x313bf4['on'](_0x434d2c[_0x3f4e37(0x137)],function(_0x4a03df){const _0xde98f5=_0x3f4e37;logger['error'](_0x4da80e['YWujq'],_0x4a03df),_0x4da80e[_0xde98f5(0x182)](_0x47ff83,_0x4a03df);}),_0x315c9a['on'](_0x434d2c[_0x3f4e37(0x137)],function(_0x22597e){const _0x130cd0=_0x3f4e37;logger[_0x130cd0(0x171)](_0x4da80e[_0x130cd0(0x18a)],_0x22597e),_0x4da80e[_0x130cd0(0x182)](_0x47ff83,_0x22597e);}),_0x315c9a['on'](_0x434d2c[_0x3f4e37(0x168)],function(){const _0x31ee5a=_0x3f4e37,_0x13971c={'YPsjY':function(_0x3ff2ba,_0x3af1e3){const _0x46bbe8=a69_0x2859;return _0x4da80e[_0x46bbe8(0x182)](_0x3ff2ba,_0x3af1e3);}},_0xe06b61={};_0xe06b61[_0x31ee5a(0x131)]=!![],yauzl[_0x31ee5a(0x18e)](_0x10ad92,_0xe06b61,function(_0x526896,_0x3542d3){const _0x236841=_0x31ee5a,_0x5257a9={'ypcut':function(_0x1db67d,_0x2884e2){const _0x51b755=a69_0x2859;return _0x4da80e[_0x51b755(0x14e)](_0x1db67d,_0x2884e2);},'GZdXl':_0x4da80e[_0x236841(0x159)],'lkwNY':function(_0x2c81f5,_0xdd7bb8){return _0x4da80e['sEERf'](_0x2c81f5,_0xdd7bb8);},'rMjCa':function(_0x51d780,_0x190ae2){const _0x3e2521=_0x236841;return _0x4da80e[_0x3e2521(0x182)](_0x51d780,_0x190ae2);},'qrMfK':function(_0x12d2a6,_0x120b7b){return _0x4da80e['zWsrf'](_0x12d2a6,_0x120b7b);},'uxtZS':_0x4da80e[_0x236841(0x190)]};_0x526896&&_0x4da80e['FTflk'](_0x47ff83,_0x526896),_0x3542d3[_0x236841(0x172)](),_0x3542d3['on'](_0x4da80e['ZSlvp'],_0x43c5b3=>{const _0x4b5e67=_0x236841,_0x1b4e59={'FPFPz':function(_0x1dc18b,_0x56b9aa){const _0x3544ee=a69_0x2859;return _0x5257a9[_0x3544ee(0x17b)](_0x1dc18b,_0x56b9aa);},'ZVFeR':_0x5257a9[_0x4b5e67(0x152)]};if(/\/$/['test'](_0x43c5b3[_0x4b5e67(0x143)]))_0x3542d3[_0x4b5e67(0x172)]();else{const _0x409004=fs[_0x4b5e67(0x194)](path[_0x4b5e67(0x19c)](_0xf60994,_0x43c5b3[_0x4b5e67(0x143)]));_0x3542d3[_0x4b5e67(0x19b)](_0x43c5b3,function(_0x4bda7a,_0x8a7e21){const _0x5ef8af=_0x4b5e67;_0x4bda7a&&_0x1b4e59['FPFPz'](_0x47ff83,_0x526896),_0x8a7e21['on'](_0x1b4e59[_0x5ef8af(0x1a3)],function(){const _0x1dc74d=_0x5ef8af;_0x409004['close'](),_0x3542d3[_0x1dc74d(0x172)]();}),_0x8a7e21[_0x5ef8af(0x15c)](_0x409004);}),_0x5257a9['lkwNY'](_0x43c5b3[_0x4b5e67(0x143)],_0x2317ed)&&_0x3542d3['close']();}}),_0x3542d3['on'](_0x4da80e[_0x236841(0x146)],_0x4489a8=>{const _0x5bff63=_0x236841;_0x13971c[_0x5bff63(0x169)](_0x47ff83,_0x4489a8);}),_0x3542d3[_0x236841(0x157)](_0x4da80e['puwZN'],()=>{const _0x35868c=_0x236841,_0xda62c5={'NesCn':function(_0x3bc3cf,_0x2b9ff9){const _0x87f600=a69_0x2859;return _0x5257a9[_0x87f600(0x191)](_0x3bc3cf,_0x2b9ff9);},'kRhBI':function(_0x24fe95,_0x516180){const _0x346236=a69_0x2859;return _0x5257a9[_0x346236(0x199)](_0x24fe95,_0x516180);}};fs[_0x35868c(0x197)](_0x4aba4e,_0x5257a9['uxtZS'],function(_0x35eee6){const _0x4468bf=_0x35868c;_0x35eee6&&_0xda62c5[_0x4468bf(0x1ae)](_0x47ff83,_0x35eee6),_0xda62c5[_0x4468bf(0x16d)](_0x28eac5,_0x4aba4e);}),_0x3542d3[_0x35868c(0x1b0)]();});});});})['on'](_0x434d2c['qCQyY'],function(_0x338d8d){const _0x49107e=_0x106fbc;logger[_0x49107e(0x171)](_0x434d2c[_0x49107e(0x13d)],_0x338d8d),_0x434d2c[_0x49107e(0x1a9)](_0x47ff83,_0x338d8d);});});}#homedir(){const _0x4a82f7=a69_0x5d5334,_0x4e3c89={};_0x4e3c89[_0x4a82f7(0x16b)]=function(_0x33e69f,_0x372ea3){return _0x33e69f===_0x372ea3;},_0x4e3c89['zSgRt']=_0x4a82f7(0x166),_0x4e3c89[_0x4a82f7(0x183)]=function(_0x3c3dc9,_0x203342){return _0x3c3dc9===_0x203342;},_0x4e3c89[_0x4a82f7(0x187)]=_0x4a82f7(0x17c),_0x4e3c89[_0x4a82f7(0x13e)]=function(_0x6f7225,_0x256a92){return _0x6f7225+_0x256a92;},_0x4e3c89[_0x4a82f7(0x13a)]=function(_0x237749,_0x4beeed){return _0x237749===_0x4beeed;},_0x4e3c89[_0x4a82f7(0x186)]=_0x4a82f7(0x149),_0x4e3c89[_0x4a82f7(0x17a)]=function(_0x7c261e,_0x4d36b1){return _0x7c261e+_0x4d36b1;},_0x4e3c89[_0x4a82f7(0x185)]=_0x4a82f7(0x144),_0x4e3c89[_0x4a82f7(0x12f)]=function(_0x1aa9da,_0x4dc27d){return _0x1aa9da===_0x4dc27d;},_0x4e3c89[_0x4a82f7(0x154)]=_0x4a82f7(0x16f),_0x4e3c89['TwspA']='/root',_0x4e3c89['KcnWb']=_0x4a82f7(0x158),_0x4e3c89['VjUUC']=function(_0x3b6b96,_0x4756a8){return _0x3b6b96||_0x4756a8;};const _0x49ec62=_0x4e3c89;if(_0x49ec62['azlUh'](typeof os['homedir'],_0x49ec62[_0x4a82f7(0x17e)]))return os[_0x4a82f7(0x167)]();const _0x354be3=process[_0x4a82f7(0x195)],_0x199df4=_0x354be3[_0x4a82f7(0x188)],_0x608538=_0x354be3[_0x4a82f7(0x18c)]||_0x354be3[_0x4a82f7(0x18b)]||_0x354be3['LNAME']||_0x354be3[_0x4a82f7(0x15f)];if(_0x49ec62[_0x4a82f7(0x183)](process['platform'],_0x49ec62[_0x4a82f7(0x187)]))return _0x354be3[_0x4a82f7(0x19f)]||_0x49ec62[_0x4a82f7(0x13e)](_0x354be3[_0x4a82f7(0x18d)],_0x354be3[_0x4a82f7(0x12e)])||_0x199df4||null;if(_0x49ec62[_0x4a82f7(0x13a)](process['platform'],_0x49ec62[_0x4a82f7(0x186)]))return _0x199df4||(_0x608538?_0x49ec62[_0x4a82f7(0x17a)](_0x49ec62[_0x4a82f7(0x185)],_0x608538):null);if(_0x49ec62[_0x4a82f7(0x12f)](process[_0x4a82f7(0x1b2)],_0x49ec62[_0x4a82f7(0x154)]))return _0x199df4||(_0x49ec62[_0x4a82f7(0x12f)](process['getuid'](),0x0)?_0x49ec62[_0x4a82f7(0x134)]:_0x608538?_0x49ec62['XtJOq'](_0x49ec62[_0x4a82f7(0x14c)],_0x608538):null);return _0x49ec62['VjUUC'](_0x199df4,null);}}function a69_0x2859(_0x2c1dfb,_0x2385d8){const _0x4d51a7=a69_0x4d51();return a69_0x2859=function(_0x285908,_0x1d8173){_0x285908=_0x285908-0x12d;let _0x279a45=_0x4d51a7[_0x285908];return _0x279a45;},a69_0x2859(_0x2c1dfb,_0x2385d8);}module[a69_0x5d5334(0x1b5)]=PercyBinary;function a69_0x4d51(){const _0x1fb648=['FTflk','sHHah','pBGKD','VOoDg','AaYRL','CTtSs','HOME','https-proxy-agent','wIxAM','USER','LOGNAME','HOMEDRIVE','open','18581893xEvjtr','sRwzj','rMjCa','entry','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','createWriteStream','env','data','chmod','XdNRs','qrMfK','proxyPort','openReadStream','join','JAUlk','mkdirSync','USERPROFILE','Xusqz','length','TMsVI','ZVFeR','/percy-win.zip','end','W_OK','SpJXF','follow-redirects','vZWdN','qCVgT','tmpdir','.browserstack','680824lJnIFZ','NesCn','10skdZYx','close','fGbHf','platform','2305070jLuKgx','statSync','exports','5oImscD','HOMEPATH','rgRXd','wbQed','lazyEntries','9CaAgdz','../logger','TwspA','/percy-osx.zip','162bPPAyc','qCQyY','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','rMflT','vjtZQ','HjWGf','APISw','JCanD','XtJOq','getBinaryPath','get','download','pREle','fileName','/Users/','BvTdt','KAUpZ','kJGWv','readFileSync','darwin','Fxpwo','cwd','KcnWb','QWmYq','zWsrf','1003771jomCUM','618312oLmNMN','winstonLogger','GZdXl','10443790uUWSGw','DJMhL','validateBinary','R_OK','once','/home/','puwZN','lnkNV','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','pipe','child_process','XuYex','USERNAME','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','.zip','jgZLb','accessSync','proxyHost','https://github.com/percy/cli/releases/latest/download','function','homedir','ICmAF','YPsjY','percy','azlUh','useCaCertificate','kRhBI','mKupU','linux','gVntF','error','readEntry','322194Qgjggz','url','mTrFk','/percy-linux.zip','bVLBj','undefined','JlOtN','XlLfY','ypcut','win32','jvWQa','zSgRt','match','X_OK','port'];a69_0x4d51=function(){return _0x1fb648;};return a69_0x4d51();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a70_0x303665=a70_0x3f08;function a70_0x3f08(_0x4cd749,_0x1d08dc){var _0x2024d1=a70_0x2024();return a70_0x3f08=function(_0x3f08d3,_0x2f93c4){_0x3f08d3=_0x3f08d3-0xf0;var _0x2043a2=_0x2024d1[_0x3f08d3];return _0x2043a2;},a70_0x3f08(_0x4cd749,_0x1d08dc);}(function(_0x23d2db,_0x319ed8){var _0x3843c8=a70_0x3f08,_0x1735ce=_0x23d2db();while(!![]){try{var _0x466a29=-parseInt(_0x3843c8(0xfc))/0x1*(parseInt(_0x3843c8(0xf9))/0x2)+-parseInt(_0x3843c8(0xf8))/0x3+parseInt(_0x3843c8(0xfb))/0x4+-parseInt(_0x3843c8(0xf4))/0x5*(parseInt(_0x3843c8(0xf6))/0x6)+parseInt(_0x3843c8(0xf1))/0x7*(parseInt(_0x3843c8(0xf7))/0x8)+parseInt(_0x3843c8(0xf3))/0x9+-parseInt(_0x3843c8(0xf2))/0xa;if(_0x466a29===_0x319ed8)break;else _0x1735ce['push'](_0x1735ce['shift']());}catch(_0x31b35e){_0x1735ce['push'](_0x1735ce['shift']());}}}(a70_0x2024,0x4769e));class PercyCaptureMap{#map={};[a70_0x303665(0xfa)](_0x1c21b8,_0x3ea97f){!this.#map[_0x1c21b8]&&(this.#map[_0x1c21b8]={}),!this.#map[_0x1c21b8][_0x3ea97f]&&(this.#map[_0x1c21b8][_0x3ea97f]=0x0),this.#map[_0x1c21b8][_0x3ea97f]++;}[a70_0x303665(0xf0)](_0x3519b1,_0x1e6227){return _0x3519b1+'-'+_0x1e6227+'-'+this['get'](_0x3519b1,_0x1e6227);}[a70_0x303665(0xf5)](_0x2e1bb7,_0x35ed1e){if(!this.#map[_0x2e1bb7])return 0x0;if(!this.#map[_0x2e1bb7][_0x35ed1e])return 0x0;return this.#map[_0x2e1bb7][_0x35ed1e];}}module['exports']=PercyCaptureMap;function a70_0x2024(){var _0x2cc19d=['7lfzMNu','823420bVRcXt','138474NFmDlB','613615iufhhN','get','18OIMKlw','4425304ajrndA','267240rgUttE','2KteWYJ','increment','1710792zDYKLf','164146vENxOe','getName'];a70_0x2024=function(){return _0x2cc19d;};return a70_0x2024();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a71_0x49b723=a71_0x24bb;(function(_0x40c571,_0x4076d0){var _0x1ed222=a71_0x24bb,_0x3007d6=_0x40c571();while(!![]){try{var _0x56c351=parseInt(_0x1ed222(0x1c8))/0x1*(parseInt(_0x1ed222(0x1c3))/0x2)+parseInt(_0x1ed222(0x1c4))/0x3+parseInt(_0x1ed222(0x1ce))/0x4*(-parseInt(_0x1ed222(0x1cc))/0x5)+-parseInt(_0x1ed222(0x1cd))/0x6+-parseInt(_0x1ed222(0x1cf))/0x7*(parseInt(_0x1ed222(0x1cb))/0x8)+-parseInt(_0x1ed222(0x1d1))/0x9*(-parseInt(_0x1ed222(0x1c1))/0xa)+parseInt(_0x1ed222(0x1d3))/0xb;if(_0x56c351===_0x4076d0)break;else _0x3007d6['push'](_0x3007d6['shift']());}catch(_0x5a7da6){_0x3007d6['push'](_0x3007d6['shift']());}}}(a71_0x51c5,0xc8b5d));var a71_0x1903c2={};a71_0x1903c2[a71_0x49b723(0x1ca)]=[a71_0x49b723(0x1c9)],a71_0x1903c2['element']=[a71_0x49b723(0x1c6),'sendKeys'];var a71_0x53d730={};a71_0x53d730['driver']=[a71_0x49b723(0x1c9)];function a71_0x51c5(){var _0xbfc061=['screenshot','344362DCgJdW','takeScreenshot','driver','438176OvmJat','295iLEHyc','7444974uOHbkD','81132vqKyPz','133ZKvExX','manual','270567rHasoK','element','25956227cjNBxJ','exports','30noNBcA','auto','4DFRjRn','3485199MoQmKl','testcase','click'];a71_0x51c5=function(){return _0xbfc061;};return a71_0x51c5();}var a71_0x30010f={};a71_0x30010f[a71_0x49b723(0x1d2)]=[a71_0x49b723(0x1c6)];var a71_0x1243a4={};function a71_0x24bb(_0x3db1f0,_0x51a9de){var _0x51c5e0=a71_0x51c5();return a71_0x24bb=function(_0x24bbbc,_0x582536){_0x24bbbc=_0x24bbbc-0x1c0;var _0x27b04e=_0x51c5e0[_0x24bbbc];return _0x27b04e;},a71_0x24bb(_0x3db1f0,_0x51a9de);}a71_0x1243a4[a71_0x49b723(0x1c2)]=a71_0x1903c2,a71_0x1243a4[a71_0x49b723(0x1c7)]=a71_0x53d730,a71_0x1243a4[a71_0x49b723(0x1c6)]=a71_0x30010f,a71_0x1243a4[a71_0x49b723(0x1c5)]={},a71_0x1243a4[a71_0x49b723(0x1d0)]={},module[a71_0x49b723(0x1c0)]=a71_0x1243a4;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0xdb6d7f=a72_0x3758;(function(_0x595111,_0x546ad6){const _0x32d048=a72_0x3758,_0x45bdde=_0x595111();while(!![]){try{const _0x365ea1=parseInt(_0x32d048(0x14e))/0x1+parseInt(_0x32d048(0x154))/0x2+-parseInt(_0x32d048(0x149))/0x3*(parseInt(_0x32d048(0x150))/0x4)+parseInt(_0x32d048(0x156))/0x5*(-parseInt(_0x32d048(0x146))/0x6)+parseInt(_0x32d048(0x165))/0x7+-parseInt(_0x32d048(0x145))/0x8*(parseInt(_0x32d048(0x147))/0x9)+parseInt(_0x32d048(0x158))/0xa*(parseInt(_0x32d048(0x14d))/0xb);if(_0x365ea1===_0x546ad6)break;else _0x45bdde['push'](_0x45bdde['shift']());}catch(_0x73d400){_0x45bdde['push'](_0x45bdde['shift']());}}}(a72_0x300f,0x65089));const tryRequire=function(_0x5c5c4c,_0x5d7443){const _0x38e158={'mAorx':function(_0x11ea17,_0x3fa5c9){return _0x11ea17(_0x3fa5c9);}};try{return _0x38e158['mAorx'](require,_0x5c5c4c);}catch{return _0x5d7443;}},percySnapshot=tryRequire(a72_0xdb6d7f(0x160),null),{percyScreenshot}=tryRequire(a72_0xdb6d7f(0x160),{}),percyAppScreenshot=require(a72_0xdb6d7f(0x164)),{getCurrentTestData}=require(a72_0xdb6d7f(0x153)),PerformanceTester=require(a72_0xdb6d7f(0x14a)),logger=require(a72_0xdb6d7f(0x169))[a72_0xdb6d7f(0x166)];function a72_0x3758(_0x28453a,_0x53a0be){const _0x300fad=a72_0x300f();return a72_0x3758=function(_0x37581a,_0x3d71c7){_0x37581a=_0x37581a-0x142;let _0x40e150=_0x300fad[_0x37581a];return _0x40e150;},a72_0x3758(_0x28453a,_0x53a0be);}percySnapshot&&(exports['snapshot']=async function(){const _0x33b8ea=a72_0xdb6d7f,_0x1a282c={'zJqhh':function(_0x2f97a0,_0x1a07c9){return _0x2f97a0!==_0x1a07c9;},'TjkCW':function(_0x1e2448,_0x49a9ac){return _0x1e2448>=_0x49a9ac;},'mZHpg':function(_0x1f9941){return _0x1f9941();},'VrbJz':_0x33b8ea(0x14f)};if(global[_0x33b8ea(0x155)]&&_0x1a282c[_0x33b8ea(0x144)](global['browserstackPlatformIndex'],global[_0x33b8ea(0x16a)]))return;const _0x13526b=_0x1a282c[_0x33b8ea(0x168)](arguments[_0x33b8ea(0x15c)],0x2)?arguments[0x1]:'',_0xa4144e=_0x1a282c[_0x33b8ea(0x15b)](getCurrentTestData),_0xb5ab0b={};return _0xb5ab0b[_0x33b8ea(0x161)]=_0x13526b,_0xb5ab0b[_0x33b8ea(0x15d)]=_0xa4144e['name']||'',_0xb5ab0b[_0x33b8ea(0x159)]=_0xa4144e[_0x33b8ea(0x14b)]||'',_0xb5ab0b['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester['measure'](_0x1a282c[_0x33b8ea(0x162)],()=>percySnapshot[_0x33b8ea(0x152)](null,arguments),_0xb5ab0b);});function a72_0x300f(){const _0x4bacee=['Dxaxo','@percy/selenium-webdriver','name','VrbJz','percy:screenshot-app','@percy/appium-app','2632301OHLjIW','winstonLogger','percy:screenshot','TjkCW','../logger','browserstackPercyBestPlatform','measure','screenshot','zJqhh','8WtBCyY','6OGbXFn','3285702HPtmnX','mjWNZ','2281962lCPYDe','../performance-tester','uuid','uKIvV','1464694HfBdiV','669714COPLRJ','percy:snapshot','4EHnCZu','FGppj','apply','../../helpers/testhub/utils','647550ayQbzQ','browserstackPlatformIndex','2478685enSqOT','screenshotApp','50qEKGPU','thTestCaseExecutionId','zwGqJ','mZHpg','length','testCase','hnBRY'];a72_0x300f=function(){return _0x4bacee;};return a72_0x300f();}percyScreenshot?exports[a72_0xdb6d7f(0x143)]=async function(){const _0x1de7a9=a72_0xdb6d7f,_0x540639={'zwGqJ':function(_0x4cd23b,_0x4a8b83){return _0x4cd23b>=_0x4a8b83;},'Dxaxo':function(_0x18a684){return _0x18a684();},'mjWNZ':_0x1de7a9(0x167)},_0x26c292=_0x540639[_0x1de7a9(0x15a)](arguments[_0x1de7a9(0x15c)],0x2)?arguments[0x1]:'',_0x12f17b=_0x540639[_0x1de7a9(0x15f)](getCurrentTestData),_0x8f7c17={};return _0x8f7c17[_0x1de7a9(0x161)]=_0x26c292,_0x8f7c17[_0x1de7a9(0x15d)]=_0x12f17b[_0x1de7a9(0x161)]||'',_0x8f7c17[_0x1de7a9(0x159)]=_0x12f17b['uuid']||'',_0x8f7c17['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester['measure'](_0x540639[_0x1de7a9(0x148)],()=>percyScreenshot['apply'](null,arguments),_0x8f7c17);}:exports['screenshot']=()=>{const _0x3f7385=a72_0xdb6d7f,_0x79b1e4={};_0x79b1e4['uKIvV']='Unsupported\x20driver\x20for\x20percy';const _0x4a58f0=_0x79b1e4;logger['error'](_0x4a58f0[_0x3f7385(0x14c)]);};exports[a72_0xdb6d7f(0x157)]=async function(){const _0x29570b=a72_0xdb6d7f,_0xbc98fb={'FGppj':function(_0x1c71c4,_0x42c792){return _0x1c71c4>=_0x42c792;},'GVCxG':function(_0x123513){return _0x123513();},'hnBRY':_0x29570b(0x163)},_0x33c8e4=_0xbc98fb[_0x29570b(0x151)](arguments['length'],0x2)?arguments[0x1]:'',_0x57d608=_0xbc98fb['GVCxG'](getCurrentTestData),_0x124637={};return _0x124637[_0x29570b(0x161)]=_0x33c8e4,_0x124637[_0x29570b(0x15d)]=_0x57d608[_0x29570b(0x161)]||'',_0x124637['thTestCaseExecutionId']=_0x57d608['uuid']||'',_0x124637['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester[_0x29570b(0x142)](_0xbc98fb[_0x29570b(0x15e)],()=>percyAppScreenshot['apply'](null,arguments),_0x124637);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a73_0xdc7c(_0x2b482f,_0x54f5f7){var _0x57a219=a73_0x57a2();return a73_0xdc7c=function(_0xdc7c7b,_0x48765d){_0xdc7c7b=_0xdc7c7b-0xaf;var _0x2d6be6=_0x57a219[_0xdc7c7b];return _0x2d6be6;},a73_0xdc7c(_0x2b482f,_0x54f5f7);}var a73_0x1fa80c=a73_0xdc7c;function a73_0x57a2(){var _0x1bff7b=['./Percy','406184UXaceB','130603lJLDiy','523527ykEDgV','288378WyTrDi','287819QoqYqo','5dUovyi','2882808VifCcN','6hLlTqG','1306112UtwNvZ'];a73_0x57a2=function(){return _0x1bff7b;};return a73_0x57a2();}(function(_0x21750b,_0x35ec75){var _0x45ff55=a73_0xdc7c,_0x1a26bb=_0x21750b();while(!![]){try{var _0x4b0732=parseInt(_0x45ff55(0xb1))/0x1+parseInt(_0x45ff55(0xb3))/0x2+parseInt(_0x45ff55(0xb2))/0x3+parseInt(_0x45ff55(0xb0))/0x4*(parseInt(_0x45ff55(0xb5))/0x5)+parseInt(_0x45ff55(0xb7))/0x6*(parseInt(_0x45ff55(0xb4))/0x7)+-parseInt(_0x45ff55(0xb8))/0x8+-parseInt(_0x45ff55(0xb6))/0x9;if(_0x4b0732===_0x35ec75)break;else _0x1a26bb['push'](_0x1a26bb['shift']());}catch(_0x390587){_0x1a26bb['push'](_0x1a26bb['shift']());}}}(a73_0x57a2,0x1a764),module['exports']=require(a73_0x1fa80c(0xaf)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a74_0x2ba265=a74_0x390d;function a74_0x27b1(){const _0x1f174a=['getName','10TQIbMv','183009Nwljhg','../helper','patch','nestedKeyValue','then','error','Error\x20patching\x20','vEBdo','680IPanNl','getDriver','startPercy','winstonLogger','getBestPlatformForPercySnapshot','browser','measureWrapper','reduce','percy:start','UAoxO','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','\x20for\x20percy\x20','./Percy','stopPercy','isUndefined','overrideXforPercy','start','browserStackPercyOptions','safari','6QJbBpP','dfqLi','percyAutoCapture','stop','AlwPN','hMMFM','toLowerCase','debug','./PercyCaptureModes','UhACB','3232560FUXJbv','forEach','browserstackPercyMap','prototype','../logger','percyCaptureMode','SQGbv','browserstackPercyBestPlatform','browserName','percy','1043316QXwHtQ','browserstackSessionName','chrome','deviceName','./PercySDK','platforms','7PLQPmG','driver','firefox','init','1029768WFRxCU','192567GOXVRL','patchDriverPercy','apply','rkwGG','element','5969227PsyVje','screenshotApp','mjGWs','ExpxO','Starting\x20percy','jqEfK','94995EWUnjs'];a74_0x27b1=function(){return _0x1f174a;};return a74_0x27b1();}function a74_0x390d(_0x5880f4,_0x299eac){const _0x27b183=a74_0x27b1();return a74_0x390d=function(_0x390d3e,_0x14763f){_0x390d3e=_0x390d3e-0x1ba;let _0x29d06f=_0x27b183[_0x390d3e];return _0x29d06f;},a74_0x390d(_0x5880f4,_0x299eac);}(function(_0xce3637,_0xa12be3){const _0x28be9=a74_0x390d,_0x294018=_0xce3637();while(!![]){try{const _0x21c409=-parseInt(_0x28be9(0x1fe))/0x1*(-parseInt(_0x28be9(0x1df))/0x2)+parseInt(_0x28be9(0x1c4))/0x3+-parseInt(_0x28be9(0x1f3))/0x4+parseInt(_0x28be9(0x1e9))/0x5+-parseInt(_0x28be9(0x1fd))/0x6*(parseInt(_0x28be9(0x1f9))/0x7)+parseInt(_0x28be9(0x1cc))/0x8*(-parseInt(_0x28be9(0x1c1))/0x9)+parseInt(_0x28be9(0x1c3))/0xa*(parseInt(_0x28be9(0x1bb))/0xb);if(_0x21c409===_0xa12be3)break;else _0x294018['push'](_0x294018['shift']());}catch(_0x270c78){_0x294018['push'](_0x294018['shift']());}}}(a74_0x27b1,0x79a41));const Percy=require(a74_0x2ba265(0x1d8)),PercySDK=require(a74_0x2ba265(0x1f7)),PercyCaptureModes=require(a74_0x2ba265(0x1e7)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require(a74_0x2ba265(0x1ed))[a74_0x2ba265(0x1cf)],helper=require(a74_0x2ba265(0x1c5)),PerformanceTester=require('../performance-tester');exports[a74_0x2ba265(0x1ce)]=PerformanceTester[a74_0x2ba265(0x1d2)](a74_0x2ba265(0x1d4),async _0x14c9f2=>{const _0x17fcf1=a74_0x2ba265,_0x7a4885={};_0x7a4885[_0x17fcf1(0x1e4)]=_0x17fcf1(0x1bf);const _0x2fd01f=_0x7a4885;logger['debug'](_0x2fd01f[_0x17fcf1(0x1e4)]);const _0x51e7ad=new Percy(_0x14c9f2),_0x3a6b83=await _0x51e7ad[_0x17fcf1(0x1dc)]();if(_0x3a6b83)return _0x51e7ad;return null;}),exports[a74_0x2ba265(0x1d9)]=PerformanceTester[a74_0x2ba265(0x1d2)]('percy:stop',async _0x314e89=>{const _0x12d3ad=a74_0x2ba265,_0x92cd32={};_0x92cd32[_0x12d3ad(0x1ef)]='Stopping\x20percy';const _0x1af2d2=_0x92cd32;return logger[_0x12d3ad(0x1e6)](_0x1af2d2[_0x12d3ad(0x1ef)]),_0x314e89[_0x12d3ad(0x1e2)]();}),exports['getBestPlatformForPercySnapshot']=_0x1f7049=>{const _0xfecb66=a74_0x2ba265,_0x2a9274={};_0x2a9274[_0xfecb66(0x1e0)]=function(_0x287a2e,_0x40b988){return _0x287a2e<_0x40b988;};const _0xd83f20=_0x2a9274,_0x615bc0={};_0x615bc0[_0xfecb66(0x1f5)]=0x0,_0x615bc0[_0xfecb66(0x1fb)]=0x1,_0x615bc0['edge']=0x2,_0x615bc0[_0xfecb66(0x1de)]=0x3;const _0xd8b5a0=_0x615bc0;return _0x1f7049[_0xfecb66(0x1d3)]((_0x28844f,_0x4072a1,_0x13de5c)=>{const _0x359bb7=_0xfecb66,_0x11ebe5=_0x1f7049[_0x28844f];if(_0x4072a1[_0x359bb7(0x1f6)])return _0x28844f;if(_0x11ebe5[_0x359bb7(0x1f6)])return _0x13de5c;const _0x1c99e1=_0x4072a1[_0x359bb7(0x1d1)]?_0x4072a1[_0x359bb7(0x1d1)]:_0x4072a1[_0x359bb7(0x1f1)];if(_0x1c99e1&&_0xd83f20[_0x359bb7(0x1e0)](_0xd8b5a0[_0x1c99e1['toLowerCase']()],_0xd8b5a0[_0x1c99e1[_0x359bb7(0x1e5)]()]))return _0x13de5c;return _0x28844f;},0x0);},exports[a74_0x2ba265(0x1e1)]=async(_0x468e10,_0x1bdbad,_0x3005e8)=>{const _0x3f660b=a74_0x2ba265,_0x464227={};_0x464227[_0x3f660b(0x1be)]=_0x3f660b(0x1d6);const _0x477c82=_0x464227,_0x1a6b51=_0x468e10[_0x3f660b(0x1eb)];if(helper[_0x3f660b(0x1da)](_0x468e10['browserstackSessionName'])){logger[_0x3f660b(0x1e6)](_0x477c82['ExpxO']);return;}const _0x405902=_0x1a6b51[_0x3f660b(0x1c2)](_0x468e10[_0x3f660b(0x1f4)],_0x1bdbad);_0x3005e8['app']?await PercySDK[_0x3f660b(0x1bc)](_0x468e10,_0x405902):await PercySDK['screenshot'](_0x468e10,_0x405902),_0x1a6b51['increment'](_0x468e10[_0x3f660b(0x1f4)],_0x1bdbad);},exports[a74_0x2ba265(0x1ff)]=(_0x1e26a7,_0x365959,_0x3446b2)=>{const _0x33c618=a74_0x2ba265,_0x403e68={};_0x403e68[_0x33c618(0x1e8)]=_0x33c618(0x1dd),_0x403e68['jqEfK']=_0x33c618(0x1f2),_0x403e68[_0x33c618(0x1cb)]=function(_0x4feea6,_0x2079b5){return _0x4feea6!==_0x2079b5;},_0x403e68['rkwGG']='manual';const _0x4ac347=_0x403e68;if(!helper[_0x33c618(0x1c7)](_0x3446b2,[_0x4ac347[_0x33c618(0x1e8)],_0x4ac347[_0x33c618(0x1c0)]]))return;if(_0x3446b2[_0x33c618(0x1dd)][_0x33c618(0x1f2)]&&_0x3446b2['browserStackPercyOptions']['percyCaptureMode']&&_0x4ac347['vEBdo'](_0x3446b2[_0x33c618(0x1dd)][_0x33c618(0x1ee)],_0x4ac347[_0x33c618(0x201)])&&!_0x1e26a7[_0x33c618(0x1eb)]){global[_0x33c618(0x1f4)]&&(_0x1e26a7[_0x33c618(0x1f4)]=global['browserstackSessionName']),_0x1e26a7[_0x33c618(0x1eb)]=new PercyCaptureMap();const _0x517447=PercyCaptureModes[_0x3446b2[_0x33c618(0x1dd)][_0x33c618(0x1ee)]];_0x517447[_0x33c618(0x1fa)]&&_0x517447[_0x33c618(0x1fa)][_0x33c618(0x1ea)](_0x4df53c=>this['overrideXforPercy'](_0x1e26a7,_0x4df53c,_0x3446b2)),_0x517447['element']&&_0x517447[_0x33c618(0x1ba)][_0x33c618(0x1ea)](_0x573a74=>{const _0x3350ba=_0x33c618;if(_0x365959[_0x3350ba(0x1ec)][_0x3350ba(0x1c6)+_0x573a74])return;_0x365959[_0x3350ba(0x1ec)]['patch'+_0x573a74]=!![];const _0x12ee70=_0x365959[_0x3350ba(0x1ec)][_0x573a74];_0x365959['prototype'][_0x573a74]=async function(){const _0x364082=_0x3350ba;let _0x17246a=_0x12ee70[_0x364082(0x200)](this,arguments);_0x17246a&&_0x17246a[_0x364082(0x1c8)]&&(_0x17246a=await _0x17246a);try{const _0x3aa1ce=this[_0x364082(0x1cd)]();await exports['percyAutoCapture'](_0x3aa1ce,_0x573a74,_0x3446b2);}catch(_0x112220){logger[_0x364082(0x1c9)](_0x364082(0x1ca)+_0x573a74+'\x20for\x20percy\x20'+_0x112220);}return _0x17246a;};});}},exports[a74_0x2ba265(0x1db)]=function(_0x425057,_0x47bd71,_0x3e558b){const _0x40e903=a74_0x2ba265,_0x10ad3e={};_0x10ad3e['UAoxO']=function(_0x5db4ad,_0xc108d7){return _0x5db4ad+_0xc108d7;},_0x10ad3e[_0x40e903(0x1e3)]=_0x40e903(0x1c6),_0x10ad3e[_0x40e903(0x1bd)]=_0x40e903(0x1fc);const _0x334740=_0x10ad3e,_0x2271ad=_0x334740[_0x40e903(0x1d5)](_0x334740[_0x40e903(0x1e3)],_0x47bd71),_0x206641=_0x334740[_0x40e903(0x1d5)](_0x334740[_0x40e903(0x1bd)],_0x47bd71),_0x37cbdf=this;if(_0x425057[_0x2271ad]||!_0x425057[_0x47bd71])return;_0x425057[_0x2271ad]=!![],_0x425057[_0x206641]=_0x425057[_0x47bd71],_0x425057[_0x47bd71]=async()=>{const _0xf453f6=_0x40e903;try{await _0x37cbdf[_0xf453f6(0x1e1)](_0x425057,_0x47bd71,_0x3e558b);}catch(_0x4a5727){logger[_0xf453f6(0x1c9)](_0xf453f6(0x1ca)+_0x47bd71+_0xf453f6(0x1d7)+_0x4a5727);}return await _0x425057[_0x206641][_0xf453f6(0x200)](_0x425057,arguments);};},exports['getPercyOptions']=_0x335a4f=>{const _0x4fbe3a=a74_0x2ba265,_0x1f050e={};_0x1f050e[_0x4fbe3a(0x1f2)]=_0x335a4f['percy'],_0x1f050e['percyCaptureMode']=_0x335a4f[_0x4fbe3a(0x1ee)];const _0x347f53=_0x1f050e;_0x335a4f[_0x4fbe3a(0x1f2)]&&(_0x347f53[_0x4fbe3a(0x1f0)]=exports[_0x4fbe3a(0x1d0)](_0x335a4f[_0x4fbe3a(0x1f8)]));;return _0x347f53;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72_0x216752=a72_0x225e;(function(_0x467cc3,_0x2760d3){const _0x56f345=a72_0x225e,_0x148f84=_0x467cc3();while(!![]){try{const _0x37d792=-parseInt(_0x56f345(0xc8))/0x1+-parseInt(_0x56f345(0x128))/0x2+parseInt(_0x56f345(0x121))/0x3*(parseInt(_0x56f345(0xc0))/0x4)+parseInt(_0x56f345(0xc3))/0x5*(-parseInt(_0x56f345(0x11e))/0x6)+-parseInt(_0x56f345(0x108))/0x7*(-parseInt(_0x56f345(0xb7))/0x8)+parseInt(_0x56f345(0xcb))/0x9+parseInt(_0x56f345(0xbd))/0xa;if(_0x37d792===_0x2760d3)break;else _0x148f84['push'](_0x148f84['shift']());}catch(_0x500b12){_0x148f84['push'](_0x148f84['shift']());}}}(a72_0x1cd4,0x38d81));const fs=require('fs'),{performance,PerformanceObserver}=require(a72_0x216752(0xaf)),{sleep,debug}=require(a72_0x216752(0xbb)),path=require('path'),logger=require('./logger')[a72_0x216752(0xb4)];function a72_0x225e(_0x128c5a,_0x5d81ea){const _0x1cd4f2=a72_0x1cd4();return a72_0x225e=function(_0x225e44,_0x5b726d){_0x225e44=_0x225e44-0xaf;let _0x351e0d=_0x1cd4f2[_0x225e44];return _0x351e0d;},a72_0x225e(_0x128c5a,_0x5d81ea);}class PerformanceTester{static ['_observer'];static ['_events']=[];static [a72_0x216752(0x10d)]=[];static ['_errorEvents']=[];static ['started']=![];static [a72_0x216752(0xb2)]=a72_0x216752(0xc9);static [a72_0x216752(0x11d)]=a72_0x216752(0xc7);static['startMonitoring'](_0x1a1bc8=a72_0x216752(0xc9),_0x11dd2b=a72_0x216752(0xc7)){const _0x1c607e=a72_0x216752,_0x346cd2={};_0x346cd2[_0x1c607e(0xf0)]=function(_0x260674,_0x5967ce){return _0x260674===_0x5967ce;},_0x346cd2[_0x1c607e(0x122)]=_0x1c607e(0xf7),_0x346cd2[_0x1c607e(0xca)]=_0x1c607e(0xc4);const _0x4698d3=_0x346cd2;if(this[_0x1c607e(0xf2)]||!this[_0x1c607e(0xb0)]())return;this['_observer']=new PerformanceObserver(_0x21d5c8=>{const _0x3fd2c3=_0x1c607e,_0x36c33b={'TFzFt':function(_0x26ee66,_0x58f24b){return _0x4698d3['BoIAQ'](_0x26ee66,_0x58f24b);},'meuqu':_0x4698d3[_0x3fd2c3(0x122)]};_0x21d5c8['getEntries']()[_0x3fd2c3(0xfc)](_0x28cac4=>{const _0x355ef6=_0x3fd2c3;_0x36c33b[_0x355ef6(0x119)](_0x28cac4['entryType'],_0x36c33b[_0x355ef6(0x111)])?this[_0x355ef6(0x10d)][_0x355ef6(0xc2)](_0x28cac4):this[_0x355ef6(0xf4)][_0x355ef6(0xc2)](_0x28cac4);});});const _0x6e4564={};_0x6e4564[_0x1c607e(0x12c)]=!![],_0x6e4564[_0x1c607e(0xfa)]=[_0x4698d3[_0x1c607e(0xca)],_0x4698d3['aehaO']],this[_0x1c607e(0x120)][_0x1c607e(0x127)](_0x6e4564),this[_0x1c607e(0xf2)]=!![],this['jsonReportFileName']=_0x1a1bc8,this[_0x1c607e(0x11d)]=_0x11dd2b;}static[a72_0x216752(0x117)](){return performance;}static[a72_0x216752(0xdc)](_0x4ed7c4,_0x3be9d9){const _0x4722af=a72_0x216752,_0x25c1d9={};_0x25c1d9[_0x4722af(0xfd)]=function(_0x372221,_0x21f3a4){return _0x372221+_0x21f3a4;},_0x25c1d9[_0x4722af(0x118)]=function(_0x8a65b8,_0x35b417){return _0x8a65b8||_0x35b417;},_0x25c1d9['wWdaF']=function(_0x5b5333,_0x4be7d8){return _0x5b5333===_0x4be7d8;};const _0x2a4501=_0x25c1d9,_0x37b0f6={};if(!_0x4ed7c4||_0x2a4501[_0x4722af(0xd9)](_0x4ed7c4['length'],0x0))return;_0x4ed7c4[_0x4722af(0x10a)](_0x132de0=>{const _0x22937c=_0x4722af;!_0x37b0f6[_0x132de0[_0x22937c(0xe7)]]&&(_0x37b0f6[_0x132de0[_0x22937c(0xe7)]]=0x0),_0x37b0f6[_0x132de0['name']]+=_0x132de0[_0x22937c(0x116)];});const _0x29144b=_0x3be9d9['reduce']((_0x380979,_0x567320)=>{const _0x5c9634=_0x4722af;return _0x2a4501[_0x5c9634(0xfd)](_0x37b0f6[_0x567320],_0x2a4501[_0x5c9634(0x118)](_0x380979,0x0));},0x0);return _0x29144b;}static async[a72_0x216752(0xdd)](_0x1f71c5,_0x596b7a){const _0x497d70=a72_0x216752,_0x157a57={'xbMBi':function(_0x4354b9,_0x39eecf){return _0x4354b9+_0x39eecf;},'IfHVM':function(_0x2779e5,_0x2b89f4){return _0x2779e5||_0x2b89f4;},'FeQJz':function(_0x334c48,_0x3b7ce4){return _0x334c48===_0x3b7ce4;},'orprY':function(_0x5b7ce3,_0x135085){return _0x5b7ce3(_0x135085);}};if(!_0x1f71c5||_0x157a57[_0x497d70(0xd7)](_0x1f71c5[_0x497d70(0x126)],0x0))return 0x0;const _0xce26a6=[];for(const _0x113ef6 of _0x1f71c5){const _0x23779e=path[_0x497d70(0x110)]('.',_0x113ef6);try{const _0x4ce695=this[_0x497d70(0x102)](_0x23779e);_0x4ce695[_0x497d70(0x10a)](_0x5a9388=>{const _0x14c6e3=_0x497d70;!_0xce26a6[_0x5a9388['name']]&&(_0xce26a6[_0x5a9388[_0x14c6e3(0xe7)]]=0x0),_0xce26a6[_0x5a9388[_0x14c6e3(0xe7)]]+=_0x5a9388[_0x14c6e3(0x116)];});}catch(_0xef42a7){_0x157a57[_0x497d70(0xfe)](debug,_0x497d70(0xbc)+_0xef42a7[_0x497d70(0x114)]());}}const _0x120a37=_0x596b7a[_0x497d70(0xb8)]((_0x2ce148,_0x290256)=>{const _0x2e6455=_0x497d70;return _0x157a57['xbMBi'](_0xce26a6[_0x290256],_0x157a57[_0x2e6455(0xe0)](_0x2ce148,0x0));},0x0);return _0x157a57[_0x497d70(0xfe)](debug,_0x497d70(0xe8)+_0x596b7a+_0x497d70(0xf8)+_0x120a37),_0x120a37;}static[a72_0x216752(0x102)](_0x23a02e){const _0xdf3ec7=a72_0x216752;if(!fs[_0xdf3ec7(0xcc)](_0x23a02e))return[];return JSON['parse'](fs[_0xdf3ec7(0x11b)](_0x23a02e)[_0xdf3ec7(0x114)]());}static async[a72_0x216752(0xd5)](_0x25c67e=a72_0x216752(0xea),_0x2942c1=null){const _0x30117d=a72_0x216752,_0x5d30ca={'umdem':function(_0x43ef7d,_0x56f02a){return _0x43ef7d(_0x56f02a);},'QSaOn':function(_0x453f84,_0x40c2d1){return _0x453f84(_0x40c2d1);}};if(!this[_0x30117d(0xf2)])return;await _0x5d30ca[_0x30117d(0x10e)](sleep,0x1e),this[_0x30117d(0x120)][_0x30117d(0x11f)](),this[_0x30117d(0xf2)]=![],this[_0x30117d(0xbf)](this[_0x30117d(0xf4)]);const _0x22d328=this[_0x30117d(0x106)](this[_0x30117d(0xf4)]),_0x29b620=path[_0x30117d(0x110)](process[_0x30117d(0xe5)](),_0x25c67e);fs['writeFile'](_0x29b620,_0x22d328,_0x3113c2=>{const _0x330786=_0x30117d;if(_0x3113c2){_0x5d30ca[_0x330786(0xf1)](debug,_0x330786(0xc5)+_0x3113c2[_0x330786(0x114)]());return;}_0x5d30ca[_0x330786(0xf1)](debug,_0x330786(0xb5)+_0x29b620);});if(_0x2942c1)return this[_0x30117d(0xdc)](this['_events'],_0x2942c1);}static[a72_0x216752(0x106)](_0x35fb46){const _0x50d6e7=a72_0x216752,_0x1411de={};_0x1411de[_0x50d6e7(0x125)]=_0x50d6e7(0xd3),_0x1411de[_0x50d6e7(0xd2)]=_0x50d6e7(0x109),_0x1411de[_0x50d6e7(0xce)]=_0x50d6e7(0xd1),_0x1411de[_0x50d6e7(0xc6)]=_0x50d6e7(0xfb);const _0x203200=_0x1411de;let _0x1d76e6=_0x203200[_0x50d6e7(0x125)];return _0x1d76e6+=_0x203200[_0x50d6e7(0xd2)],_0x1d76e6+=_0x203200['RekvU'],_0x35fb46[_0x50d6e7(0xfc)](_0x9628ce=>{const _0x14a5c1=_0x50d6e7;_0x1d76e6+='<tr><td>'+_0x9628ce[_0x14a5c1(0xe7)]+_0x14a5c1(0x123)+_0x9628ce['duration']+_0x14a5c1(0x101);}),_0x1d76e6+=_0x203200[_0x50d6e7(0xc6)],_0x1d76e6;}static[a72_0x216752(0xbf)](_0x2a391d){const _0xe332e9=a72_0x216752;if(!this[_0xe332e9(0xb2)])return;const _0x6f273a={};_0x2a391d[_0xe332e9(0x10a)](_0x1a178d=>{const _0x40271a=_0xe332e9;!_0x6f273a[_0x1a178d[_0x40271a(0xe7)]]&&(_0x6f273a[_0x1a178d['name']]=0x0),_0x6f273a[_0x1a178d[_0x40271a(0xe7)]]+=_0x1a178d['duration'];});const _0x547faf=Object[_0xe332e9(0xcd)](_0x6f273a)['map'](([_0x27fab2,_0x48ca91])=>{const _0x2e782b=_0xe332e9,_0x42e239={};return _0x42e239['name']=_0x27fab2,_0x42e239[_0x2e782b(0x116)]=_0x48ca91,_0x42e239;});fs['writeFileSync'](this[_0xe332e9(0xb2)],JSON[_0xe332e9(0xdb)](_0x547faf));}static[a72_0x216752(0xb0)](){const _0x1f7a03=a72_0x216752,_0x23c166={};_0x23c166[_0x1f7a03(0xee)]=function(_0xac860,_0x43853f){return _0xac860===_0x43853f;},_0x23c166['EOeaw']=_0x1f7a03(0xbe);const _0x7bf918=_0x23c166;return!_0x7bf918[_0x1f7a03(0xee)](process[_0x1f7a03(0x10c)]['BROWSERSTACK_SDK_INSTRUMENTATION'],_0x7bf918[_0x1f7a03(0xe2)]);}static[a72_0x216752(0xf7)](_0x30af1e,_0x144cfb,_0xa845e8=null,_0x1076c3=null){const _0x28aa69=a72_0x216752,_0x516600={};_0x516600['GuLGD']=function(_0x558ec8,_0x5bb2c0){return _0x558ec8+_0x5bb2c0;},_0x516600['BACwE']=_0x28aa69(0x113),_0x516600[_0x28aa69(0xd4)]='-end',_0x516600['kyJOo']=function(_0x1657af,_0x2714c2){return _0x1657af instanceof _0x2714c2;};const _0x371bc1=_0x516600;try{if(this[_0x28aa69(0xf2)]&&this[_0x28aa69(0xb0)]()){let _0x5c15d5=_0x30af1e;_0xa845e8&&(_0x5c15d5=_0x30af1e+'['+JSON[_0x28aa69(0xdb)](_0xa845e8)+']');const _0x24c7f6=_0x371bc1['GuLGD'](_0x5c15d5,_0x371bc1[_0x28aa69(0xd8)]),_0x27ae24=_0x371bc1[_0x28aa69(0xf6)](_0x5c15d5,_0x371bc1[_0x28aa69(0xd4)]);performance[_0x28aa69(0xeb)](_0x24c7f6);const _0x4ca281=_0x144cfb[_0x28aa69(0xd6)](null,_0x1076c3);if(_0x371bc1[_0x28aa69(0xb6)](_0x4ca281,Promise))return new Promise((_0x3d87f6,_0xd72079)=>{const _0x5e7ec5=_0x28aa69;_0x4ca281[_0x5e7ec5(0xcf)](_0x216980=>_0x3d87f6(_0x216980))[_0x5e7ec5(0x10f)](_0x249408=>_0xd72079(_0x249408))[_0x5e7ec5(0xde)](()=>{const _0x3db069=_0x5e7ec5;performance[_0x3db069(0xeb)](_0x27ae24),performance['measure'](_0x5c15d5,_0x24c7f6,_0x27ae24);});});;return performance[_0x28aa69(0xeb)](_0x27ae24),performance['measure'](_0x5c15d5,_0x24c7f6,_0x27ae24),_0x4ca281;};return _0x144cfb[_0x28aa69(0xd6)](null,_0x1076c3);}catch(_0x411b97){return _0x144cfb['apply'](null,_0x1076c3);}}static[a72_0x216752(0xff)](_0x225212,_0x1dafb2){const _0x4c97ce=this;return function(){const _0x27a677=a72_0x225e,_0x2e95ec=[_0x225212,_0x1dafb2,null]['concat'](arguments);return _0x4c97ce[_0x27a677(0xf7)][_0x27a677(0xd6)](_0x4c97ce,_0x2e95ec);};}static[a72_0x216752(0xb3)](){const _0x49dcfe=a72_0x216752,_0x4dd6e0={};_0x4dd6e0[_0x49dcfe(0xe3)]=function(_0x53b098,_0x29f173){return _0x53b098/_0x29f173;},_0x4dd6e0['DmEbO']=function(_0x408d4d,_0x5cc382){return _0x408d4d+_0x5cc382;},_0x4dd6e0[_0x49dcfe(0x11c)]=function(_0x49d9f0,_0x59061a){return _0x49d9f0*_0x59061a;};const _0x4d414f=_0x4dd6e0,_0x16dac4=/(^.*)\[(.*)\]$/,_0x4712cf={},_0x2da197={};for(const _0x10333f of this[_0x49dcfe(0x10d)]){const _0xaa6b9a=_0x10333f[_0x49dcfe(0xe7)][_0x49dcfe(0xb1)](_0x16dac4),_0x24754d={};_0x24754d[_0x49dcfe(0xe7)]=_0x10333f[_0x49dcfe(0xe7)],_0x24754d[_0x49dcfe(0x116)]=_0x10333f[_0x49dcfe(0x116)]||0x0;const _0x554cf6=_0x24754d;_0xaa6b9a&&(_0x554cf6[_0x49dcfe(0xe7)]=_0xaa6b9a[0x1],_0x554cf6[_0x49dcfe(0x103)]=JSON[_0x49dcfe(0xdf)](_0xaa6b9a[0x2]));if(_0x4712cf[_0x554cf6[_0x49dcfe(0xe7)]]){const _0x9db79c=_0x4712cf[_0x554cf6['name']],_0x443f20=_0x2da197[_0x554cf6[_0x49dcfe(0xe7)]];_0x4712cf[_0x554cf6[_0x49dcfe(0xe7)]]['duration']=_0x4d414f['PdWqV'](_0x4d414f[_0x49dcfe(0x10b)](_0x4d414f[_0x49dcfe(0x11c)](_0x9db79c[_0x49dcfe(0x116)],_0x443f20),_0x554cf6['duration']),_0x4d414f[_0x49dcfe(0x10b)](0x1,_0x443f20)),_0x2da197[_0x554cf6[_0x49dcfe(0xe7)]]++;}else _0x4712cf[_0x554cf6[_0x49dcfe(0xe7)]]=_0x554cf6,_0x2da197[_0x554cf6[_0x49dcfe(0xe7)]]=0x1;}return Object['values'](_0x4712cf);}static[a72_0x216752(0x105)](){const _0x3c7691=a72_0x216752,_0xc501b3={};_0xc501b3['ZkSau']=function(_0x57c2cf,_0x4aa2eb){return _0x57c2cf===_0x4aa2eb;},_0xc501b3['TzvGA']=function(_0x30c738,_0x56b806){return _0x30c738+_0x56b806;};const _0x3965b2=_0xc501b3;if(_0x3965b2[_0x3c7691(0xf5)](this[_0x3c7691(0x10d)][_0x3c7691(0x126)],0x0))return;const _0x52c5f7=this[_0x3c7691(0xb3)](),_0x1afcb2=JSON[_0x3c7691(0xdb)](_0x52c5f7),_0x1834b9=_0x3965b2[_0x3c7691(0xef)](_0x1afcb2[_0x3c7691(0xba)](0x1,-0x1),',');fs[_0x3c7691(0x12a)](this['jsonReportFileName'],_0x1834b9);}static['finalizePerfMeasures'](){const _0x206443=a72_0x216752,_0x36b625={};_0x36b625['yTzgD']=function(_0x2a199f,_0x2d5dee){return _0x2a199f===_0x2d5dee;},_0x36b625[_0x206443(0xda)]=function(_0x581bed,_0x362722){return _0x581bed>_0x362722;};const _0x6773ba=_0x36b625;if(!this[_0x206443(0xf2)]||_0x6773ba[_0x206443(0xb9)](this[_0x206443(0x10d)]['length'],0x0))return[];if(!fs['existsSync'](this[_0x206443(0xb2)]))return this[_0x206443(0x10d)];let _0x1607dd=fs[_0x206443(0x11b)](this[_0x206443(0xb2)])[_0x206443(0x114)]();_0x1607dd='['+_0x1607dd[_0x206443(0xba)](0x0,-0x1)+']';let _0x2d3bb9=JSON[_0x206443(0xdf)](_0x1607dd);return _0x6773ba[_0x206443(0xda)](this['_measureEvents'][_0x206443(0x126)],0x0)&&(_0x2d3bb9=_0x2d3bb9[_0x206443(0xe1)](this[_0x206443(0xb3)]())),this[_0x206443(0x120)][_0x206443(0x11f)](),fs[_0x206443(0xed)](this['jsonReportFileName']),_0x2d3bb9;}static[a72_0x216752(0x129)](){const _0x234bb0=a72_0x216752,_0x248efc={};_0x248efc[_0x234bb0(0x12b)]=function(_0x690a36,_0xaf54e7){return _0x690a36===_0xaf54e7;},_0x248efc[_0x234bb0(0xf3)]=function(_0x4879bf,_0x160fcb){return _0x4879bf+_0x160fcb;};const _0x1d5c6e=_0x248efc;if(_0x1d5c6e['OzeOr'](this[_0x234bb0(0x104)][_0x234bb0(0x126)],0x0))return;const _0x4f4386=JSON[_0x234bb0(0xdb)](this[_0x234bb0(0x104)]),_0x365d94=_0x1d5c6e[_0x234bb0(0xf3)](_0x4f4386[_0x234bb0(0xba)](0x1,-0x1),',');fs[_0x234bb0(0x12a)](this['errorFile'],_0x365d94);}static[a72_0x216752(0x124)](){const _0x5358fc=a72_0x216752,_0x1ec199={};_0x1ec199[_0x5358fc(0xf9)]=function(_0x319e2e,_0x21025b){return _0x319e2e>_0x21025b;};const _0x494c3a=_0x1ec199;if(!fs[_0x5358fc(0xcc)](this[_0x5358fc(0x11d)]))return this[_0x5358fc(0x104)];let _0x261f3c=fs[_0x5358fc(0x11b)](this[_0x5358fc(0x11d)])['toString']();_0x261f3c='['+_0x261f3c['slice'](0x0,-0x1)+']';let _0x52b1c6=JSON[_0x5358fc(0xdf)](_0x261f3c);return _0x494c3a[_0x5358fc(0xf9)](this[_0x5358fc(0x104)][_0x5358fc(0x126)],0x0)&&(_0x52b1c6=_0x52b1c6['concat'](this[_0x5358fc(0x104)])),fs[_0x5358fc(0xed)](this[_0x5358fc(0x11d)]),_0x52b1c6;}static[a72_0x216752(0x115)](_0x100bfb){const _0x1e5a2e=a72_0x216752;if(!this[_0x1e5a2e(0xb0)]())return;this['_errorEvents'][_0x1e5a2e(0xc2)]({'message':_0x100bfb[_0x1e5a2e(0xe4)],'trace':_0x100bfb[_0x1e5a2e(0xec)],'code':_0x100bfb['code']||null,'time':new Date()});}static[a72_0x216752(0x100)](){const _0x8f746a=a72_0x216752,_0x4da683={};_0x4da683[_0x8f746a(0xe9)]=_0x8f746a(0xd0);const _0x32b1d3=_0x4da683;try{if(!this[_0x8f746a(0xb0)]())return;this[_0x8f746a(0x120)][_0x8f746a(0x11f)](),this[_0x8f746a(0x105)](),this[_0x8f746a(0x129)]();}catch{logger[_0x8f746a(0x112)](_0x32b1d3[_0x8f746a(0xe9)]);}}static[a72_0x216752(0xc1)](){const _0x235a2c=a72_0x216752,_0x42273e=this[_0x235a2c(0xe6)](),_0x2300a9=this[_0x235a2c(0x124)]();if(!this[_0x235a2c(0xb0)]()){const _0x293d6a={};return _0x293d6a['measures']=[],_0x293d6a['errors']=[],_0x293d6a;}const _0x176a1={};return _0x176a1['measures']=_0x42273e,_0x176a1[_0x235a2c(0x107)]=_0x2300a9,_0x176a1;}}function a72_0x1cd4(){const _0x338e27=['captureError','duration','getPerformance','bGOAv','TFzFt','exports','readFileSync','XgOOQ','errorReportFileName','2442iScxRm','disconnect','_observer','843924mFALqN','aehaO','</td><td>','finalizeErrors','XGOPx','length','observe','628252AMWNcr','pushErrors','appendFileSync','OzeOr','buffered','perf_hooks','isEnabled','match','jsonReportFileName','getCleanedPerfEvents','winstonLogger','Performance\x20report\x20is\x20at\x20','kyJOo','400qgZSqJ','reduce','yTzgD','slice','./test-observability/utils','Error\x20in\x20doing\x20csv\x20operations:\x20','5533980CStZrg','false','generateJSON','4LgMVLV','finalize','push','2815OPBoKY','function','Error\x20in\x20writing\x20html\x20','cKqyG','error-report.json','273629bLZQfw','performance-report.json','vdXaN','707157RWuREw','existsSync','entries','RekvU','then','Error\x20stopping\x20monitoring','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','txOyN','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','vDbtU','stopAndGenerate','apply','FeQJz','BACwE','wWdaF','vkdtm','stringify','calculateTimeFromEvents','calculateTimesFromMultipleFiles','finally','parse','IfHVM','concat','EOeaw','PdWqV','message','cwd','finalizePerfMeasures','name','Time\x20for\x20','ECheV','performance-own.html','mark','stack','unlinkSync','QhsBU','TzvGA','BoIAQ','umdem','started','HQgtO','_events','ZkSau','GuLGD','measure','\x20for\x20all\x20processes\x20is\x20','WuTpi','entryTypes','</tbody></table></body></html>','forEach','UHKDF','orprY','measureWrapper','stopMonitoring','</td></tr>','getEventsFromJSON','meta','_errorEvents','pushPerfMeasures','generateHTMLReport','errors','19103SRsVHb','<h1>Performance\x20Report</h1>','map','DmEbO','env','_measureEvents','QSaOn','catch','join','meuqu','debug','-start','toString'];a72_0x1cd4=function(){return _0x338e27;};return a72_0x1cd4();}module[a72_0x216752(0x11a)]=PerformanceTester;
|
|
1
|
+
const a75_0x57eb49=a75_0x2083;function a75_0x2083(_0x311166,_0x435e99){const _0x4bc7a3=a75_0x4bc7();return a75_0x2083=function(_0x208356,_0x116bfb){_0x208356=_0x208356-0x10b;let _0x5d26ca=_0x4bc7a3[_0x208356];return _0x5d26ca;},a75_0x2083(_0x311166,_0x435e99);}(function(_0x24ffd8,_0x1fe982){const _0x4443b2=a75_0x2083,_0x468eed=_0x24ffd8();while(!![]){try{const _0x47f4b8=-parseInt(_0x4443b2(0x10e))/0x1*(parseInt(_0x4443b2(0x11d))/0x2)+parseInt(_0x4443b2(0x160))/0x3+-parseInt(_0x4443b2(0x178))/0x4+parseInt(_0x4443b2(0x140))/0x5+-parseInt(_0x4443b2(0x16c))/0x6+-parseInt(_0x4443b2(0x170))/0x7+parseInt(_0x4443b2(0x127))/0x8;if(_0x47f4b8===_0x1fe982)break;else _0x468eed['push'](_0x468eed['shift']());}catch(_0x1e2cab){_0x468eed['push'](_0x468eed['shift']());}}}(a75_0x4bc7,0xe9bf9));const fs=require('fs'),{performance,PerformanceObserver}=require(a75_0x57eb49(0x176)),{sleep,debug}=require('./test-observability/utils'),path=require(a75_0x57eb49(0x16a)),logger=require(a75_0x57eb49(0x142))[a75_0x57eb49(0x158)];class PerformanceTester{static [a75_0x57eb49(0x139)];static [a75_0x57eb49(0x174)]=[];static ['_measureEvents']=[];static ['_errorEvents']=[];static [a75_0x57eb49(0x130)]=![];static [a75_0x57eb49(0x167)]='performance-report.json';static [a75_0x57eb49(0x13f)]=a75_0x57eb49(0x10b);static[a75_0x57eb49(0x180)](_0x23e98c=a75_0x57eb49(0x14f),_0x214d42=a75_0x57eb49(0x10b)){const _0x5d622c=a75_0x57eb49,_0x54c9fc={};_0x54c9fc['gMomA']=function(_0x50ab5e,_0xa2213d){return _0x50ab5e===_0xa2213d;},_0x54c9fc[_0x5d622c(0x117)]='measure',_0x54c9fc[_0x5d622c(0x14a)]='function';const _0x875978=_0x54c9fc;if(this[_0x5d622c(0x130)]||!this[_0x5d622c(0x177)]())return;this[_0x5d622c(0x139)]=new PerformanceObserver(_0x5e84f6=>{const _0xe9724=_0x5d622c;_0x5e84f6[_0xe9724(0x150)]()[_0xe9724(0x15b)](_0x25a2b1=>{const _0x3bd2c6=_0xe9724;_0x875978['gMomA'](_0x25a2b1['entryType'],_0x875978[_0x3bd2c6(0x117)])?this['_measureEvents'][_0x3bd2c6(0x13b)](_0x25a2b1):this[_0x3bd2c6(0x174)]['push'](_0x25a2b1);});});const _0x5a9a93={};_0x5a9a93[_0x5d622c(0x13a)]=!![],_0x5a9a93[_0x5d622c(0x16d)]=[_0x875978['lViyD'],_0x875978['QxpiQ']],this[_0x5d622c(0x139)][_0x5d622c(0x12f)](_0x5a9a93),this[_0x5d622c(0x130)]=!![],this[_0x5d622c(0x167)]=_0x23e98c,this[_0x5d622c(0x13f)]=_0x214d42;}static[a75_0x57eb49(0x123)](){return performance;}static[a75_0x57eb49(0x125)](_0xaa9736,_0x3b44af){const _0x44ddeb=a75_0x57eb49,_0x2db6f5={};_0x2db6f5['pYGgl']=function(_0x584bbc,_0x5ac212){return _0x584bbc+_0x5ac212;},_0x2db6f5[_0x44ddeb(0x168)]=function(_0x7ae696,_0x1901f0){return _0x7ae696||_0x1901f0;},_0x2db6f5[_0x44ddeb(0x118)]=function(_0x4ba04a,_0x4c8391){return _0x4ba04a===_0x4c8391;};const _0x233ce0=_0x2db6f5,_0x2c4c33={};if(!_0xaa9736||_0x233ce0['XWuwL'](_0xaa9736[_0x44ddeb(0x134)],0x0))return;_0xaa9736[_0x44ddeb(0x12a)](_0x554726=>{const _0x31e007=_0x44ddeb;!_0x2c4c33[_0x554726['name']]&&(_0x2c4c33[_0x554726[_0x31e007(0x153)]]=0x0),_0x2c4c33[_0x554726[_0x31e007(0x153)]]+=_0x554726[_0x31e007(0x16b)];});const _0x51c16f=_0x3b44af['reduce']((_0x246da6,_0x4fa04a)=>{const _0x5d486c=_0x44ddeb;return _0x233ce0[_0x5d486c(0x17b)](_0x2c4c33[_0x4fa04a],_0x233ce0[_0x5d486c(0x168)](_0x246da6,0x0));},0x0);return _0x51c16f;}static async['calculateTimesFromMultipleFiles'](_0x2b06f1,_0x2a8baa){const _0x1c7335=a75_0x57eb49,_0x1a9a83={'KBouF':function(_0xe566be,_0x2c5c26){return _0xe566be+_0x2c5c26;},'zojDi':function(_0x9e8a9f,_0x1eba9b){return _0x9e8a9f||_0x1eba9b;},'sBeLs':function(_0x3949bc,_0x555a41){return _0x3949bc===_0x555a41;},'IbVxo':function(_0x49272a,_0xd2350f){return _0x49272a(_0xd2350f);},'IdAMa':function(_0x33f1b0,_0x128bb7){return _0x33f1b0(_0x128bb7);}};if(!_0x2b06f1||_0x1a9a83[_0x1c7335(0x112)](_0x2b06f1['length'],0x0))return 0x0;const _0x2aa7e3=[];for(const _0xdae256 of _0x2b06f1){const _0x5014a9=path[_0x1c7335(0x147)]('.',_0xdae256);try{const _0x4857f3=this[_0x1c7335(0x14b)](_0x5014a9);_0x4857f3[_0x1c7335(0x12a)](_0x2b92e9=>{const _0x5b7440=_0x1c7335;!_0x2aa7e3[_0x2b92e9[_0x5b7440(0x153)]]&&(_0x2aa7e3[_0x2b92e9[_0x5b7440(0x153)]]=0x0),_0x2aa7e3[_0x2b92e9[_0x5b7440(0x153)]]+=_0x2b92e9[_0x5b7440(0x16b)];});}catch(_0x542b98){_0x1a9a83[_0x1c7335(0x164)](debug,_0x1c7335(0x11f)+_0x542b98[_0x1c7335(0x15f)]());}}const _0x4e6cd0=_0x2a8baa[_0x1c7335(0x157)]((_0x280354,_0x6df158)=>{const _0x284f74=_0x1c7335;return _0x1a9a83[_0x284f74(0x162)](_0x2aa7e3[_0x6df158],_0x1a9a83['zojDi'](_0x280354,0x0));},0x0);return _0x1a9a83['IdAMa'](debug,_0x1c7335(0x156)+_0x2a8baa+_0x1c7335(0x11e)+_0x4e6cd0),_0x4e6cd0;}static['getEventsFromJSON'](_0x3ac2a3){const _0x1cadb0=a75_0x57eb49;if(!fs[_0x1cadb0(0x137)](_0x3ac2a3))return[];return JSON[_0x1cadb0(0x161)](fs[_0x1cadb0(0x143)](_0x3ac2a3)['toString']());}static async[a75_0x57eb49(0x128)](_0x3f0a25=a75_0x57eb49(0x119),_0x93f5a7=null){const _0x3af701=a75_0x57eb49,_0x2b1806={'vMMlx':function(_0x3479b8,_0x6927f0){return _0x3479b8(_0x6927f0);},'isFvc':function(_0x3c3d38,_0x528662){return _0x3c3d38(_0x528662);}};if(!this[_0x3af701(0x130)])return;await _0x2b1806['vMMlx'](sleep,0x1e),this[_0x3af701(0x139)][_0x3af701(0x138)](),this['started']=![],this[_0x3af701(0x122)](this[_0x3af701(0x174)]);const _0x157c13=this[_0x3af701(0x169)](this[_0x3af701(0x174)]),_0x1e6f8a=path[_0x3af701(0x147)](process['cwd'](),_0x3f0a25);fs[_0x3af701(0x124)](_0x1e6f8a,_0x157c13,_0xd36813=>{const _0x5b5406=_0x3af701;if(_0xd36813){_0x2b1806[_0x5b5406(0x135)](debug,_0x5b5406(0x12d)+_0xd36813[_0x5b5406(0x15f)]());return;}_0x2b1806[_0x5b5406(0x132)](debug,_0x5b5406(0x179)+_0x1e6f8a);});if(_0x93f5a7)return this[_0x3af701(0x125)](this[_0x3af701(0x174)],_0x93f5a7);}static[a75_0x57eb49(0x169)](_0x8b3a4e){const _0x15ad9b=a75_0x57eb49,_0xbdbac9={};_0xbdbac9['KhrWc']='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0xbdbac9['SAHKy']=_0x15ad9b(0x17c),_0xbdbac9[_0x15ad9b(0x154)]=_0x15ad9b(0x131),_0xbdbac9['sCVfI']=_0x15ad9b(0x12e);const _0x1fe1ec=_0xbdbac9;let _0x35768d=_0x1fe1ec['KhrWc'];return _0x35768d+=_0x1fe1ec['SAHKy'],_0x35768d+=_0x1fe1ec[_0x15ad9b(0x154)],_0x8b3a4e[_0x15ad9b(0x15b)](_0x5835b9=>{const _0x14bac7=_0x15ad9b;_0x35768d+=_0x14bac7(0x17f)+_0x5835b9[_0x14bac7(0x153)]+_0x14bac7(0x115)+_0x5835b9[_0x14bac7(0x16b)]+_0x14bac7(0x172);}),_0x35768d+=_0x1fe1ec[_0x15ad9b(0x121)],_0x35768d;}static[a75_0x57eb49(0x122)](_0x453d92){const _0x248c1e=a75_0x57eb49;if(!this['jsonReportFileName'])return;const _0x13e251={};_0x453d92['map'](_0x3a46b2=>{const _0xa027c=a75_0x2083;!_0x13e251[_0x3a46b2[_0xa027c(0x153)]]&&(_0x13e251[_0x3a46b2[_0xa027c(0x153)]]=0x0),_0x13e251[_0x3a46b2[_0xa027c(0x153)]]+=_0x3a46b2[_0xa027c(0x16b)];});const _0x51d1c7=Object[_0x248c1e(0x110)](_0x13e251)[_0x248c1e(0x12a)](([_0x2f26f0,_0x435dd7])=>{const _0x48833e={};return _0x48833e['name']=_0x2f26f0,_0x48833e['duration']=_0x435dd7,_0x48833e;});fs[_0x248c1e(0x129)](this[_0x248c1e(0x167)],JSON[_0x248c1e(0x120)](_0x51d1c7));}static[a75_0x57eb49(0x177)](){const _0x5f28a5=a75_0x57eb49,_0x2f72e6={};_0x2f72e6[_0x5f28a5(0x13d)]=function(_0x1506f1,_0x519dc3){return _0x1506f1===_0x519dc3;},_0x2f72e6['BUQqW']=_0x5f28a5(0x166);const _0x4588b2=_0x2f72e6;return!_0x4588b2[_0x5f28a5(0x13d)](process[_0x5f28a5(0x165)][_0x5f28a5(0x13e)],_0x4588b2[_0x5f28a5(0x146)]);}static[a75_0x57eb49(0x17a)](_0x4e5639,_0x123e4f,_0xfa9e1d=null,_0x1bd9c4=null){const _0x726c9a=a75_0x57eb49,_0x21d489={};_0x21d489['XrXKL']=function(_0x238be7,_0x3418e1){return _0x238be7+_0x3418e1;},_0x21d489[_0x726c9a(0x16e)]=_0x726c9a(0x15d),_0x21d489['sIzBx']=_0x726c9a(0x155),_0x21d489[_0x726c9a(0x114)]=function(_0x205428,_0x5430e8){return _0x205428 instanceof _0x5430e8;};const _0x26158a=_0x21d489;try{if(this[_0x726c9a(0x130)]&&this[_0x726c9a(0x177)]()){let _0xde1142=_0x4e5639;_0xfa9e1d&&(_0xde1142=_0x4e5639+'['+JSON[_0x726c9a(0x120)](_0xfa9e1d)+']');const _0x8db141=_0x26158a[_0x726c9a(0x15c)](_0xde1142,_0x26158a['NKjCw']),_0x13c6a3=_0x26158a[_0x726c9a(0x15c)](_0xde1142,_0x26158a[_0x726c9a(0x148)]);performance[_0x726c9a(0x144)](_0x8db141);const _0x28c8aa=_0x123e4f[_0x726c9a(0x13c)](null,_0x1bd9c4);if(_0x26158a[_0x726c9a(0x114)](_0x28c8aa,Promise))return new Promise((_0x598093,_0x170ba3)=>{const _0x40b7f7=_0x726c9a;_0x28c8aa[_0x40b7f7(0x15e)](_0x4ef7a7=>_0x598093(_0x4ef7a7))['catch'](_0x43bfcf=>_0x170ba3(_0x43bfcf))[_0x40b7f7(0x149)](()=>{const _0x2bac97=_0x40b7f7;performance[_0x2bac97(0x144)](_0x13c6a3),performance[_0x2bac97(0x17a)](_0xde1142,_0x8db141,_0x13c6a3);});});;return performance[_0x726c9a(0x144)](_0x13c6a3),performance[_0x726c9a(0x17a)](_0xde1142,_0x8db141,_0x13c6a3),_0x28c8aa;};return _0x123e4f[_0x726c9a(0x13c)](null,_0x1bd9c4);}catch(_0x1442c9){return _0x123e4f[_0x726c9a(0x13c)](null,_0x1bd9c4);}}static['measureWrapper'](_0x1b7e9,_0x190949){const _0x33b56a=this;return function(){const _0x558d93=a75_0x2083,_0x594618=[_0x1b7e9,_0x190949,null][_0x558d93(0x17e)](arguments);return _0x33b56a[_0x558d93(0x17a)][_0x558d93(0x13c)](_0x33b56a,_0x594618);};}static['getCleanedPerfEvents'](){const _0x2800db=a75_0x57eb49,_0x247dbb={};_0x247dbb[_0x2800db(0x14d)]=function(_0x3ae73f,_0x3a443d){return _0x3ae73f/_0x3a443d;},_0x247dbb[_0x2800db(0x133)]=function(_0x1d81db,_0x28242e){return _0x1d81db+_0x28242e;},_0x247dbb[_0x2800db(0x173)]=function(_0x88d752,_0x54a7a7){return _0x88d752*_0x54a7a7;};const _0x14753f=_0x247dbb,_0x53ce37=/(^.*)\[(.*)\]$/,_0x231c1d={},_0x42b144={};for(const _0x123d48 of this['_measureEvents']){const _0x6eb4fa=_0x123d48[_0x2800db(0x153)]['match'](_0x53ce37),_0x11b6ac={};_0x11b6ac[_0x2800db(0x153)]=_0x123d48['name'],_0x11b6ac[_0x2800db(0x16b)]=_0x123d48[_0x2800db(0x16b)]||0x0;const _0x3b8365=_0x11b6ac;_0x6eb4fa&&(_0x3b8365[_0x2800db(0x153)]=_0x6eb4fa[0x1],_0x3b8365[_0x2800db(0x14e)]=JSON['parse'](_0x6eb4fa[0x2]));if(_0x231c1d[_0x3b8365[_0x2800db(0x153)]]){const _0x1f12b7=_0x231c1d[_0x3b8365[_0x2800db(0x153)]],_0x1f956b=_0x42b144[_0x3b8365['name']];_0x231c1d[_0x3b8365[_0x2800db(0x153)]][_0x2800db(0x16b)]=_0x14753f['LDikj'](_0x14753f[_0x2800db(0x133)](_0x14753f[_0x2800db(0x173)](_0x1f12b7[_0x2800db(0x16b)],_0x1f956b),_0x3b8365[_0x2800db(0x16b)]),_0x14753f[_0x2800db(0x133)](0x1,_0x1f956b)),_0x42b144[_0x3b8365[_0x2800db(0x153)]]++;}else _0x231c1d[_0x3b8365['name']]=_0x3b8365,_0x42b144[_0x3b8365['name']]=0x1;}return Object['values'](_0x231c1d);}static[a75_0x57eb49(0x141)](){const _0x56e94f=a75_0x57eb49,_0x3e0386={};_0x3e0386[_0x56e94f(0x181)]=function(_0x494562,_0x25db83){return _0x494562===_0x25db83;},_0x3e0386[_0x56e94f(0x136)]=function(_0x3413f4,_0x4800e6){return _0x3413f4+_0x4800e6;};const _0x27f167=_0x3e0386;if(_0x27f167[_0x56e94f(0x181)](this[_0x56e94f(0x116)][_0x56e94f(0x134)],0x0))return;const _0x1a598b=this[_0x56e94f(0x10c)](),_0x6d676f=JSON[_0x56e94f(0x120)](_0x1a598b),_0x4c99db=_0x27f167[_0x56e94f(0x136)](_0x6d676f[_0x56e94f(0x16f)](0x1,-0x1),',');fs[_0x56e94f(0x11c)](this['jsonReportFileName'],_0x4c99db);}static['finalizePerfMeasures'](){const _0x539e84=a75_0x57eb49,_0x57047e={};_0x57047e[_0x539e84(0x171)]=function(_0x260daf,_0x351396){return _0x260daf===_0x351396;},_0x57047e[_0x539e84(0x159)]=function(_0x3ec350,_0x663371){return _0x3ec350>_0x663371;};const _0x35f8d6=_0x57047e;if(!this[_0x539e84(0x130)]||_0x35f8d6[_0x539e84(0x171)](this[_0x539e84(0x116)][_0x539e84(0x134)],0x0))return[];if(!fs[_0x539e84(0x137)](this[_0x539e84(0x167)]))return this[_0x539e84(0x116)];let _0x2dd435=fs[_0x539e84(0x143)](this[_0x539e84(0x167)])['toString']();_0x2dd435='['+_0x2dd435[_0x539e84(0x16f)](0x0,-0x1)+']';let _0x521df1=JSON[_0x539e84(0x161)](_0x2dd435);return _0x35f8d6[_0x539e84(0x159)](this[_0x539e84(0x116)][_0x539e84(0x134)],0x0)&&(_0x521df1=_0x521df1[_0x539e84(0x17e)](this[_0x539e84(0x10c)]())),this['_observer'][_0x539e84(0x138)](),fs['unlinkSync'](this['jsonReportFileName']),_0x521df1;}static[a75_0x57eb49(0x113)](){const _0x37ddf2=a75_0x57eb49,_0x1e30b8={};_0x1e30b8['oHmwq']=function(_0x238e01,_0x474acf){return _0x238e01===_0x474acf;},_0x1e30b8['AWzlc']=function(_0xb477a1,_0xdb722b){return _0xb477a1+_0xdb722b;};const _0x388d9b=_0x1e30b8;if(_0x388d9b[_0x37ddf2(0x175)](this[_0x37ddf2(0x11b)][_0x37ddf2(0x134)],0x0))return;const _0x318fbc=JSON['stringify'](this[_0x37ddf2(0x11b)]),_0x3cbeb5=_0x388d9b['AWzlc'](_0x318fbc[_0x37ddf2(0x16f)](0x1,-0x1),',');fs[_0x37ddf2(0x11c)](this['errorFile'],_0x3cbeb5);}static[a75_0x57eb49(0x12c)](){const _0x5fefa5=a75_0x57eb49,_0x1d6112={};_0x1d6112[_0x5fefa5(0x15a)]=function(_0x3e1aed,_0x370f04){return _0x3e1aed>_0x370f04;};const _0xdd065d=_0x1d6112;if(!fs[_0x5fefa5(0x137)](this['errorReportFileName']))return this[_0x5fefa5(0x11b)];let _0xf5b394=fs['readFileSync'](this[_0x5fefa5(0x13f)])[_0x5fefa5(0x15f)]();_0xf5b394='['+_0xf5b394[_0x5fefa5(0x16f)](0x0,-0x1)+']';let _0x1ac905=JSON[_0x5fefa5(0x161)](_0xf5b394);return _0xdd065d[_0x5fefa5(0x15a)](this[_0x5fefa5(0x11b)]['length'],0x0)&&(_0x1ac905=_0x1ac905['concat'](this[_0x5fefa5(0x11b)])),fs[_0x5fefa5(0x11a)](this[_0x5fefa5(0x13f)]),_0x1ac905;}static[a75_0x57eb49(0x126)](_0x1043f4){const _0x24fa89=a75_0x57eb49;if(!this[_0x24fa89(0x177)]())return;this['_errorEvents'][_0x24fa89(0x13b)]({'message':_0x1043f4[_0x24fa89(0x152)],'trace':_0x1043f4[_0x24fa89(0x12b)],'code':_0x1043f4[_0x24fa89(0x14c)]||null,'time':new Date()});}static[a75_0x57eb49(0x145)](){const _0x2bbf0b=a75_0x57eb49,_0xd79753={};_0xd79753['lBRdb']=_0x2bbf0b(0x151);const _0x3bd9eb=_0xd79753;try{if(!this[_0x2bbf0b(0x177)]())return;this['_observer'][_0x2bbf0b(0x138)](),this[_0x2bbf0b(0x141)](),this[_0x2bbf0b(0x113)]();}catch{logger['debug'](_0x3bd9eb[_0x2bbf0b(0x10d)]);}}static[a75_0x57eb49(0x163)](){const _0x597e96=a75_0x57eb49,_0x50f648=this['finalizePerfMeasures'](),_0x5e0ddd=this[_0x597e96(0x12c)]();if(!this['isEnabled']()){const _0x505757={};return _0x505757[_0x597e96(0x10f)]=[],_0x505757[_0x597e96(0x17d)]=[],_0x505757;}const _0x2fcddf={};return _0x2fcddf['measures']=_0x50f648,_0x2fcddf[_0x597e96(0x17d)]=_0x5e0ddd,_0x2fcddf;}}function a75_0x4bc7(){const _0x55f684=['buffered','push','apply','UAMhr','BROWSERSTACK_SDK_INSTRUMENTATION','errorReportFileName','9096850OXpeQa','pushPerfMeasures','./logger','readFileSync','mark','stopMonitoring','BUQqW','join','sIzBx','finally','lViyD','getEventsFromJSON','code','LDikj','meta','performance-report.json','getEntries','Error\x20stopping\x20monitoring','message','name','mTMDD','-end','Time\x20for\x20','reduce','winstonLogger','kaDTa','Ggjur','forEach','XrXKL','-start','then','toString','4820679FHGoNv','parse','KBouF','finalize','IbVxo','env','false','jsonReportFileName','EOKIp','generateHTMLReport','path','duration','4860606bzesWN','entryTypes','NKjCw','slice','6265350UWyvpJ','zRrGx','</td></tr>','EYyjH','_events','oHmwq','perf_hooks','isEnabled','2665076siSlPV','Performance\x20report\x20is\x20at\x20','measure','pYGgl','<h1>Performance\x20Report</h1>','errors','concat','<tr><td>','startMonitoring','tzIuc','error-report.json','getCleanedPerfEvents','lBRdb','62531OBDiYn','measures','entries','exports','sBeLs','pushErrors','XKSBC','</td><td>','_measureEvents','QxpiQ','XWuwL','performance-own.html','unlinkSync','_errorEvents','appendFileSync','14LooxON','\x20for\x20all\x20processes\x20is\x20','Error\x20in\x20doing\x20csv\x20operations:\x20','stringify','sCVfI','generateJSON','getPerformance','writeFile','calculateTimeFromEvents','captureError','2722456cnMdYD','stopAndGenerate','writeFileSync','map','stack','finalizeErrors','Error\x20in\x20writing\x20html\x20','</tbody></table></body></html>','observe','started','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','isFvc','mRaPm','length','vMMlx','xYfKz','existsSync','disconnect','_observer'];a75_0x4bc7=function(){return _0x55f684;};return a75_0x4bc7();}module[a75_0x57eb49(0x111)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x5ab55c=a76_0xd64c;(function(_0x1737ce,_0x1898a7){const _0x378302=a76_0xd64c,_0xb0a789=_0x1737ce();while(!![]){try{const _0x500b5a=-parseInt(_0x378302(0xcc))/0x1+parseInt(_0x378302(0xbc))/0x2*(parseInt(_0x378302(0xd5))/0x3)+parseInt(_0x378302(0xc3))/0x4+parseInt(_0x378302(0xbf))/0x5+-parseInt(_0x378302(0xdb))/0x6*(-parseInt(_0x378302(0xcb))/0x7)+parseInt(_0x378302(0xd9))/0x8+-parseInt(_0x378302(0xbe))/0x9*(parseInt(_0x378302(0xdd))/0xa);if(_0x500b5a===_0x1898a7)break;else _0xb0a789['push'](_0xb0a789['shift']());}catch(_0x1f9ba6){_0xb0a789['push'](_0xb0a789['shift']());}}}(a76_0x3c2a,0xd6446));const http=require('http'),https=require(a76_0x5ab55c(0xc2)),monkeypatch=require(a76_0x5ab55c(0xb9));function spy(_0x1c039f){const _0x5b5b0a=a76_0x5ab55c,_0x126401={'jhAns':_0x5b5b0a(0xd3),'RNARh':function(_0x43c114,_0x4ffc5d,_0x3cb9f2){return _0x43c114(_0x4ffc5d,_0x3cb9f2);},'imYzn':function(_0x57d0c7,_0xc0c2f5){return _0x57d0c7-_0xc0c2f5;},'qFPhr':function(_0x44b200,_0xba239d,_0x419dee){return _0x44b200(_0xba239d,_0x419dee);},'CDyXh':function(_0x1ceb64,..._0x49f987){return _0x1ceb64(..._0x49f987);},'SWzZk':_0x5b5b0a(0xc7),'lYbWq':'socket','iQkHO':function(_0x291dd3,_0x45b4a6,_0x11908b,_0x195141){return _0x291dd3(_0x45b4a6,_0x11908b,_0x195141);},'CodYV':_0x5b5b0a(0xde),'iqKIj':_0x5b5b0a(0xd2)},_0x35d973=(_0x41ada8,_0xfcbd36,_0x4e8d11)=>{const _0x1ca873=_0x5b5b0a,_0x595bd6={'kUGgi':function(_0x1f9d06,_0x3dc83a,_0x288a87){const _0x4b1fbb=a76_0xd64c;return _0x126401[_0x4b1fbb(0xce)](_0x1f9d06,_0x3dc83a,_0x288a87);},'fLmVV':function(_0x5b727d,_0x429ffb){return _0x126401['imYzn'](_0x5b727d,_0x429ffb);},'bYUWU':function(_0x186e6c,_0x208831,_0x39ee59){const _0x406724=a76_0xd64c;return _0x126401[_0x406724(0xba)](_0x186e6c,_0x208831,_0x39ee59);},'FJDhP':_0x126401[_0x1ca873(0xbb)],'BICgc':function(_0x5caf7e,..._0x2d4219){const _0x301e73=_0x1ca873;return _0x126401[_0x301e73(0xc5)](_0x5caf7e,..._0x2d4219);}},_0x2ef5ea=_0x126401[_0x1ca873(0xba)](_0x41ada8,_0xfcbd36,_0x4e8d11);let _0x38c33c=Date[_0x1ca873(0xc1)](),_0x22132c;const _0x521f04=_0x2dd013=>{const _0x39786e=_0x1ca873,_0x216d00={};_0x216d00['host']=_0xfcbd36['host']||_0xfcbd36[_0x39786e(0xc8)],_0x216d00['path']=_0xfcbd36[_0x39786e(0xc4)],_0x216d00[_0x39786e(0xb7)]=_0xfcbd36[_0x39786e(0xb7)],_0x216d00['headers']=_0xfcbd36[_0x39786e(0xd1)],_0x595bd6['kUGgi'](_0x1c039f,_0x2dd013,_0x216d00);};return _0x2ef5ea[_0x1ca873(0xd6)](_0x126401['SWzZk'],_0x31199a=>{const _0x599581=_0x1ca873,_0x47026f=_0x595bd6[_0x599581(0xd8)](Date[_0x599581(0xc1)](),_0x38c33c),_0x1d69e5={};_0x1d69e5[_0x599581(0xc8)]=_0xfcbd36['host']||_0xfcbd36['hostname'],_0x1d69e5[_0x599581(0xc4)]=_0xfcbd36[_0x599581(0xc4)],_0x1d69e5[_0x599581(0xb7)]=_0xfcbd36[_0x599581(0xb7)],_0x1d69e5['headers']=_0xfcbd36[_0x599581(0xd1)],_0x1d69e5[_0x599581(0xd0)]=_0x31199a[_0x599581(0xc0)],_0x1d69e5['duration_ms']=_0x47026f,_0x595bd6[_0x599581(0xcf)](_0x1c039f,null,_0x1d69e5),_0x22132c[_0x599581(0xc6)](_0x595bd6[_0x599581(0xca)],_0x521f04);}),_0x2ef5ea['on'](_0x126401[_0x1ca873(0xbd)],_0x47bc7e=>{const _0x29ebad=_0x1ca873;_0x22132c=_0x47bc7e,_0x47bc7e[_0x29ebad(0xd6)](_0x126401[_0x29ebad(0xbb)],_0x521f04);}),_0x126401[_0x1ca873(0xda)](monkeypatch,_0x2ef5ea,_0x126401[_0x1ca873(0xcd)],(_0x4d874e,..._0x58d65f)=>{const _0x1a081c=_0x1ca873;_0x38c33c=Date['now'](),_0x595bd6[_0x1a081c(0xdc)](_0x4d874e,..._0x58d65f);}),_0x2ef5ea;};_0x126401[_0x5b5b0a(0xda)](monkeypatch,http,_0x126401[_0x5b5b0a(0xd4)],_0x35d973),_0x126401[_0x5b5b0a(0xda)](monkeypatch,https,_0x126401[_0x5b5b0a(0xd4)],_0x35d973);}function restore(){const _0x460c8a=a76_0x5ab55c;http['request'][_0x460c8a(0xd7)](),https['request'][_0x460c8a(0xd7)]();}function a76_0xd64c(_0x3a2f35,_0x18fbcb){const _0x3c2a1b=a76_0x3c2a();return a76_0xd64c=function(_0xd64cc6,_0x1d5fd8){_0xd64cc6=_0xd64cc6-0xb7;let _0x49e9ec=_0x3c2a1b[_0xd64cc6];return _0x49e9ec;},a76_0xd64c(_0x3a2f35,_0x18fbcb);}const a76_0x5844c3={};function a76_0x3c2a(){const _0x205205=['headers','request','error','iqKIj','879wVjGDj','once','unpatch','fLmVV','9617344GVzaPr','iQkHO','24876HgDIJw','BICgc','50180AQTtMY','end','method','exports','monkeypatch','qFPhr','jhAns','8500zFSgBT','lYbWq','6147CpSQay','8074060iWRPTY','statusCode','now','https','5128556ugYubc','path','CDyXh','removeListener','response','hostname','spy','FJDhP','644CQEgXS','1420869NmQCps','CodYV','RNARh','bYUWU','status_code'];a76_0x3c2a=function(){return _0x205205;};return a76_0x3c2a();}a76_0x5844c3[a76_0x5ab55c(0xc9)]=spy,a76_0x5844c3['restore']=restore,module[a76_0x5ab55c(0xb8)]=a76_0x5844c3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a77_0x389c(){const _0x31034e=['jnyfP','1243HHtnrv','yWObT','call','keepAlive','agent','496236hOWqWl','keepAliveMsecs','LBTHo','107693COIAiK','8330976mDwqmo','36wuMgdm','request','7652722tZOLYJ','globalAgent','153WpGJOe','330900KJvbdz','TIsuk','135205pgYxVh','https','20OithvD','http','protocol','60UtgtpI','igOmZ','XgIUl','exports','dJHpW','PMFVb','https:','717160TVDFmp','Agent'];a77_0x389c=function(){return _0x31034e;};return a77_0x389c();}function a77_0x4449(_0x26a864,_0x16f97f){const _0x389c48=a77_0x389c();return a77_0x4449=function(_0x444946,_0x4bdda0){_0x444946=_0x444946-0x1a4;let _0x3a6dba=_0x389c48[_0x444946];return _0x3a6dba;},a77_0x4449(_0x26a864,_0x16f97f);}const a77_0x2143a9=a77_0x4449;(function(_0x3257b9,_0x42b450){const _0x11d674=a77_0x4449,_0x4bad87=_0x3257b9();while(!![]){try{const _0x21af92=-parseInt(_0x11d674(0x1b6))/0x1*(-parseInt(_0x11d674(0x1c1))/0x2)+parseInt(_0x11d674(0x1b8))/0x3*(parseInt(_0x11d674(0x1b3))/0x4)+-parseInt(_0x11d674(0x1bf))/0x5*(-parseInt(_0x11d674(0x1a4))/0x6)+-parseInt(_0x11d674(0x1ba))/0x7+parseInt(_0x11d674(0x1b7))/0x8+parseInt(_0x11d674(0x1bc))/0x9*(parseInt(_0x11d674(0x1ab))/0xa)+parseInt(_0x11d674(0x1ae))/0xb*(-parseInt(_0x11d674(0x1bd))/0xc);if(_0x21af92===_0x42b450)break;else _0x4bad87['push'](_0x4bad87['shift']());}catch(_0x4b16c6){_0x4bad87['push'](_0x4bad87['shift']());}}}(a77_0x389c,0xd8a4b),module[a77_0x2143a9(0x1a7)]=function(){const _0x4543c7=a77_0x2143a9,_0xef22fc={'yWObT':function(_0x160249,_0x107a93){return _0x160249===_0x107a93;},'CFSxC':_0x4543c7(0x1aa),'TIsuk':_0x4543c7(0x1b2),'LBTHo':function(_0x3bae7f,_0x139df3,_0x172169){return _0x3bae7f(_0x139df3,_0x172169);},'XgIUl':function(_0x13a645,_0x9fd75e,_0x13bb11){return _0x13a645(_0x9fd75e,_0x13bb11);},'jnyfP':function(_0x10124c,_0x491019){return _0x10124c(_0x491019);},'NGXRW':_0x4543c7(0x1c2),'igOmZ':function(_0x5f5afc,_0x313631){return _0x5f5afc(_0x313631);},'dJHpW':_0x4543c7(0x1c0),'PMFVb':function(_0x36084f,_0x3f4ab7){return _0x36084f*_0x3f4ab7;},'JxrQk':_0x4543c7(0x1b1)},_0x2cc09f=_0xef22fc[_0x4543c7(0x1ad)](require,_0xef22fc['NGXRW']),_0xb3bd7e=_0xef22fc[_0x4543c7(0x1a5)](require,_0xef22fc[_0x4543c7(0x1a8)]),_0x31cd51=_0xef22fc[_0x4543c7(0x1a9)](0x1e,0x3e8);if(_0x2cc09f[_0x4543c7(0x1bb)]&&Object['prototype']['hasOwnProperty'][_0x4543c7(0x1b0)](_0x2cc09f[_0x4543c7(0x1bb)],_0xef22fc['JxrQk']))_0x2cc09f[_0x4543c7(0x1bb)][_0x4543c7(0x1b1)]=!![],_0xb3bd7e[_0x4543c7(0x1bb)]['keepAlive']=!![],_0x2cc09f[_0x4543c7(0x1bb)][_0x4543c7(0x1b4)]=_0x31cd51,_0xb3bd7e[_0x4543c7(0x1bb)][_0x4543c7(0x1b4)]=_0x31cd51;else{const _0x359e18={};_0x359e18['keepAlive']=!![],_0x359e18['keepAliveMsecs']=_0x31cd51;const _0x3008ff=new _0x2cc09f[(_0x4543c7(0x1ac))](_0x359e18),_0x7061d7={};_0x7061d7[_0x4543c7(0x1b1)]=!![],_0x7061d7[_0x4543c7(0x1b4)]=_0x31cd51;const _0x5098a7=new _0xb3bd7e[(_0x4543c7(0x1ac))](_0x7061d7),_0xe6f44b=_0x2cc09f[_0x4543c7(0x1b9)],_0x33c5bc=_0xb3bd7e[_0x4543c7(0x1b9)];_0x2cc09f[_0x4543c7(0x1b9)]=function(_0x4fb5e2,_0x13aa55){const _0x1731ec=_0x4543c7;if(_0xef22fc[_0x1731ec(0x1af)](_0x4fb5e2[_0x1731ec(0x1c3)],_0xef22fc['CFSxC']))return _0x4fb5e2[_0xef22fc['TIsuk']]=_0x5098a7,_0xef22fc[_0x1731ec(0x1b5)](_0x33c5bc,_0x4fb5e2,_0x13aa55);return _0x4fb5e2[_0xef22fc[_0x1731ec(0x1be)]]=_0x3008ff,_0xef22fc[_0x1731ec(0x1a6)](_0xe6f44b,_0x4fb5e2,_0x13aa55);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a78_0x2c3714=a78_0x4671;(function(_0x5e1c8a,_0x422ed5){var _0x36d5a6=a78_0x4671,_0x4f63c5=_0x5e1c8a();while(!![]){try{var _0x27ce2b=parseInt(_0x36d5a6(0xec))/0x1+parseInt(_0x36d5a6(0xf1))/0x2*(parseInt(_0x36d5a6(0xf2))/0x3)+parseInt(_0x36d5a6(0xff))/0x4*(-parseInt(_0x36d5a6(0xeb))/0x5)+-parseInt(_0x36d5a6(0xfa))/0x6*(parseInt(_0x36d5a6(0xef))/0x7)+parseInt(_0x36d5a6(0xee))/0x8*(parseInt(_0x36d5a6(0xfe))/0x9)+-parseInt(_0x36d5a6(0xf8))/0xa*(parseInt(_0x36d5a6(0xfb))/0xb)+parseInt(_0x36d5a6(0xfc))/0xc;if(_0x27ce2b===_0x422ed5)break;else _0x4f63c5['push'](_0x4f63c5['shift']());}catch(_0x5b5959){_0x4f63c5['push'](_0x4f63c5['shift']());}}}(a78_0x5c16,0x6b57c));function a78_0x4671(_0x372d52,_0x1ec45d){var _0x5c1625=a78_0x5c16();return a78_0x4671=function(_0x467103,_0x384c14){_0x467103=_0x467103-0xe9;var _0x438fda=_0x5c1625[_0x467103];return _0x438fda;},a78_0x4671(_0x372d52,_0x1ec45d);}var a78_0x364df0={};function a78_0x5c16(){var _0x1751f0=['7141320rXGDMZ','api/v1/batch','27999qhwvjg','13176UnWBjB','api/v1/event','PLAYWRIGHT','1235QZcSqA','211111AGuHzC','exports','1160IIhVga','7AjDhMz','codeceptjs','18yOtoww','165744vZeLlO','CUCUMBER','api/v1/screenshots','cucumber','CODECEPT','jest','4228930gKpwdn','JEST','470166btOXBj','11sEJbQM'];a78_0x5c16=function(){return _0x1751f0;};return a78_0x5c16();}a78_0x364df0[a78_0x2c3714(0xea)]='Playwright',a78_0x364df0['MOCHA']='mocha',a78_0x364df0[a78_0x2c3714(0xf6)]=a78_0x2c3714(0xf0),a78_0x364df0[a78_0x2c3714(0xf9)]=a78_0x2c3714(0xf7),a78_0x364df0[a78_0x2c3714(0xf3)]=a78_0x2c3714(0xf5),module[a78_0x2c3714(0xed)]={'consoleHolder':Object['assign']({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':'https://collector-observability.browserstack.com','EVENT_ENDPOINT':a78_0x2c3714(0xe9),'BATCH_ENDPOINT':a78_0x2c3714(0xfd),'SCREENSHOT_ENDPOINT':a78_0x2c3714(0xf4),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0x1388,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':'.obs_test_details','FRAMEWORKS':a78_0x364df0};
|