browserstack-node-sdk 1.34.3 → 1.34.5
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 +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/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 -1
- package/src/helpers/utilities.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_0x5ead2c=a66_0xfc22;(function(_0xd27fa5,_0x1dcb55){const _0x32957b=a66_0xfc22,_0x97c13b=_0xd27fa5();while(!![]){try{const _0x99bed1=parseInt(_0x32957b(0x164))/0x1*(parseInt(_0x32957b(0x173))/0x2)+-parseInt(_0x32957b(0x168))/0x3+parseInt(_0x32957b(0x17f))/0x4*(-parseInt(_0x32957b(0x177))/0x5)+-parseInt(_0x32957b(0x172))/0x6+-parseInt(_0x32957b(0x16a))/0x7*(parseInt(_0x32957b(0x180))/0x8)+parseInt(_0x32957b(0x182))/0x9+parseInt(_0x32957b(0x174))/0xa*(parseInt(_0x32957b(0x165))/0xb);if(_0x99bed1===_0x1dcb55)break;else _0x97c13b['push'](_0x97c13b['shift']());}catch(_0x3e2651){_0x97c13b['push'](_0x97c13b['shift']());}}}(a66_0x56ee,0xae1ec));const winston=require('winston'),os=require('os'),fs=require('fs'),path=require(a66_0x5ead2c(0x163)),logDir=a66_0x5ead2c(0x16b);!fs[a66_0x5ead2c(0x170)](logDir)&&fs['mkdirSync'](logDir);const a66_0x88e3ee={};a66_0x88e3ee[a66_0x5ead2c(0x17c)]=a66_0x5ead2c(0x176);const transports={'loggerConsole':new winston['transports'][(a66_0x5ead2c(0x161))](a66_0x88e3ee),'loggerFile':new winston['transports'][(a66_0x5ead2c(0x162))]({'filename':path[a66_0x5ead2c(0x16e)](logDir,a66_0x5ead2c(0x175))}),'debugLoggerFile':new winston[(a66_0x5ead2c(0x17d))][(a66_0x5ead2c(0x162))]({'filename':path[a66_0x5ead2c(0x16e)](logDir,'/usage-debug.log'),'level':a66_0x5ead2c(0x169)})},a66_0x3531ef={};function a66_0x56ee(){const _0x29aba1=['name','transports','loggerFile','1211764bgMfUx','1633096BxqwOT','fileLogger','7530138zACPDm','logDir','\x20-\x20','Console','File','path','3Gdygkb','5536487ukmgvS','format','YYYY-MM-DD\x20HH:mm:ss','883950RpmXaQ','silly','21CyBXnF','log','createLogger','message','join','colorize','existsSync','winstonLogger','1680450MrHixC','174764PzZOfS','40ijroZz','/usage.log','console.info','20fOYORs','level','timestamp','debugLoggerFile','combine'];a66_0x56ee=function(){return _0x29aba1;};return a66_0x56ee();}a66_0x3531ef[a66_0x5ead2c(0x166)]=a66_0x5ead2c(0x167);const a66_0x5b54bc={};a66_0x5b54bc['level']=!![];const winstonLoggerParams={'format':winston[a66_0x5ead2c(0x166)][a66_0x5ead2c(0x17b)](winston[a66_0x5ead2c(0x166)]['timestamp'](a66_0x3531ef),winston[a66_0x5ead2c(0x166)][a66_0x5ead2c(0x16f)](a66_0x5b54bc),winston[a66_0x5ead2c(0x166)]['printf'](_0x4539a7=>_0x4539a7['timestamp']+a66_0x5ead2c(0x160)+_0x4539a7['level']+':\x20'+_0x4539a7['message'])),'transports':[transports['loggerConsole'],transports[a66_0x5ead2c(0x17e)],transports['debugLoggerFile']]},a66_0x39befb={};a66_0x39befb[a66_0x5ead2c(0x166)]='YYYY-MM-DD\x20HH:mm:ss';function a66_0xfc22(_0x504eb4,_0x2b2a39){const _0x56ee24=a66_0x56ee();return a66_0xfc22=function(_0xfc2261,_0x3b67a7){_0xfc2261=_0xfc2261-0x15f;let _0x2492b7=_0x56ee24[_0xfc2261];return _0x2492b7;},a66_0xfc22(_0x504eb4,_0x2b2a39);}const a66_0x4da797={};a66_0x4da797[a66_0x5ead2c(0x178)]=!![];const winstonFileLoggerParams={'format':winston[a66_0x5ead2c(0x166)][a66_0x5ead2c(0x17b)](winston['format'][a66_0x5ead2c(0x179)](a66_0x39befb),winston[a66_0x5ead2c(0x166)][a66_0x5ead2c(0x16f)](a66_0x4da797),winston[a66_0x5ead2c(0x166)]['printf'](_0x3092db=>_0x3092db[a66_0x5ead2c(0x178)]+':\x20'+_0x3092db[a66_0x5ead2c(0x16d)])),'transports':[transports[a66_0x5ead2c(0x17e)],transports[a66_0x5ead2c(0x17a)]]};exports[a66_0x5ead2c(0x171)]=new winston[(a66_0x5ead2c(0x16c))](winstonLoggerParams),exports[a66_0x5ead2c(0x181)]=new winston[(a66_0x5ead2c(0x16c))](winstonFileLoggerParams),exports[a66_0x5ead2c(0x15f)]=logDir,exports['transports']=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a67_0x4b6261=a67_0x10c0;(function(_0x35e7f6,_0x3e6944){var _0x4c840a=a67_0x10c0,_0x1e81e5=_0x35e7f6();while(!![]){try{var _0x3a3680=parseInt(_0x4c840a(0xff))/0x1+-parseInt(_0x4c840a(0x100))/0x2+-parseInt(_0x4c840a(0x119))/0x3+-parseInt(_0x4c840a(0x105))/0x4*(-parseInt(_0x4c840a(0x11b))/0x5)+parseInt(_0x4c840a(0x101))/0x6*(parseInt(_0x4c840a(0x10d))/0x7)+-parseInt(_0x4c840a(0x112))/0x8+parseInt(_0x4c840a(0x117))/0x9*(-parseInt(_0x4c840a(0x116))/0xa);if(_0x3a3680===_0x3e6944)break;else _0x1e81e5['push'](_0x1e81e5['shift']());}catch(_0x5d167f){_0x1e81e5['push'](_0x1e81e5['shift']());}}}(a67_0x43e1,0x4c636),exports[a67_0x4b6261(0x115)]=_0x4ac6c0=>{var _0x26d003=a67_0x4b6261,_0x35c66b={'LzaQn':'0|5|4|3|1|2','heObC':_0x26d003(0x10f),'buGIt':function(_0x2d77f3,_0x362419){return _0x2d77f3(_0x362419);},'inilx':function(_0x96e1a,_0x45c94e){return _0x96e1a!==_0x45c94e;},'fwzCp':_0x26d003(0x107)},_0x4cdd39=_0x35c66b[_0x26d003(0x103)]['split']('|'),_0x2316c0=0x0;while(!![]){switch(_0x4cdd39[_0x2316c0++]){case'0':var _0x39c24a={'TRmYl':_0x35c66b[_0x26d003(0x108)],'tVNtU':function(_0x5905aa,_0xbf4957){var _0x1dc1a9=_0x26d003;return _0x35c66b[_0x1dc1a9(0x114)](_0x5905aa,_0xbf4957);}};continue;case'1':_0x4ac6c0[_0x26d003(0xf9)]=_0x4ac6c0['takeScreenshot'];continue;case'2':_0x4ac6c0[_0x26d003(0x102)]=()=>{var _0x44fd75={'TWuAd':_0x39c24a['TRmYl'],'Nttzo':function(_0x23e505,_0x5e8a44){var _0x1da4a0=a67_0x10c0;return _0x39c24a[_0x1da4a0(0xf7)](_0x23e505,_0x5e8a44);}};return new Promise(function(_0x9d5f78,_0x34fe2c){var _0x2af90d=a67_0x10c0;_0x4ac6c0['initScreenshot']()[_0x2af90d(0xfb)](_0x10c272=>{var _0x16e2b3=_0x2af90d;process[_0x16e2b3(0x10c)](_0x16e2b3(0x10e)+process[_0x16e2b3(0xfc)],{'timestamp':new Date()['toISOString'](),'message':_0x10c272,'kind':_0x44fd75[_0x16e2b3(0x106)]}),_0x44fd75[_0x16e2b3(0xf6)](_0x9d5f78,_0x10c272);});});};continue;case'3':_0x4ac6c0[_0x26d003(0xf5)]=!![];continue;case'4':if(_0x4ac6c0['patchScreenshot'])return;continue;case'5':if(_0x35c66b[_0x26d003(0x118)](process[_0x26d003(0x10a)]['BS_TESTOPS_ALLOW_SCREENSHOTS'],_0x35c66b[_0x26d003(0xf8)]))return;continue;}break;}},exports[a67_0x4b6261(0xfe)]=(_0xf1c16f,_0x5bebf8=null)=>{var _0x4fd71f=a67_0x4b6261,_0xbf2a70={'ZFkbI':_0x4fd71f(0x11a),'YjTon':function(_0x31e639){return _0x31e639();},'HEkJn':function(_0x9ed77a,_0x18b2a8){return _0x9ed77a>_0x18b2a8;}},_0x13caef=_0xbf2a70[_0x4fd71f(0xfd)]['split']('|'),_0x275fd8=0x0;while(!![]){switch(_0x13caef[_0x275fd8++]){case'0':_0xf1c16f[_0x4fd71f(0x11d)]=_0xf1c16f[_0x4fd71f(0x111)];continue;case'1':var _0x341c71={'HtzXY':function(_0x2b8bc9){var _0x3fbd2a=_0x4fd71f;return _0xbf2a70[_0x3fbd2a(0x110)](_0x2b8bc9);},'uAcat':function(_0x9146b2,_0x4c03c4){return _0xbf2a70['HEkJn'](_0x9146b2,_0x4c03c4);},'xpNqW':function(_0x100192,_0x14d2a3){var _0x523cc9=_0x4fd71f;return _0xbf2a70[_0x523cc9(0x109)](_0x100192,_0x14d2a3);}};continue;case'2':_0xf1c16f['quit']=()=>{var _0xe50986=_0x4fd71f;if(_0x5bebf8){_0x5bebf8['quitCount_']+=0x1;if(_0x341c71[_0xe50986(0x11c)](_0x5bebf8[_0xe50986(0x113)],0x1))return _0xf1c16f[_0xe50986(0x11d)]();}else{_0xf1c16f['quitCount_']+=0x1;if(_0x341c71[_0xe50986(0x104)](_0xf1c16f[_0xe50986(0x113)],0x1))return _0xf1c16f[_0xe50986(0x11d)]();}return new Promise(function(_0x3810ab){var _0xfb248d=_0xe50986;_0x341c71[_0xfb248d(0xfa)](_0x3810ab);});};continue;case'3':if(_0xf1c16f[_0x4fd71f(0x10b)])return;continue;case'4':_0xf1c16f[_0x4fd71f(0x10b)]=!![];continue;}break;}});function a67_0x10c0(_0x2c2da6,_0xd550d6){var _0x43e15c=a67_0x43e1();return a67_0x10c0=function(_0x10c04e,_0x3a5b45){_0x10c04e=_0x10c04e-0xf5;var _0x186f86=_0x43e15c[_0x10c04e];return _0x186f86;},a67_0x10c0(_0x2c2da6,_0xd550d6);}function a67_0x43e1(){var _0x23cf91=['350616kJbjUr','6HJBJYc','takeScreenshot','LzaQn','xpNqW','19652ESkuQg','TWuAd','true','heObC','HEkJn','env','patchQuit','emit','403543IBOYjJ','bs:addLog:','TEST_SCREENSHOT','YjTon','quit','7840LGYOUM','quitCount_','buGIt','overrideTakeScreenshot','130Krzmvw','37647uENXTs','inilx','73506OIDWct','1|3|4|0|2','145CXPCpU','uAcat','initQuit','patchScreenshot','Nttzo','tVNtU','fwzCp','initScreenshot','HtzXY','then','pid','ZFkbI','overrideQuit','367929XeSmPP'];a67_0x43e1=function(){return _0x23cf91;};return a67_0x43e1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x4b636b=a68_0xc3f2;function a68_0x48ec(){const _0x291f35=['mUGfU','UxcRX','sHPOJ','createPercyConfig','path','nodeRequest','xgUsx','app','Error\x20creating\x20percy\x20config:\x20','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','10bqMQYV','DYpEV','Percy\x20fetch\x20token\x20success','env','percyOptions','&type=','NAgEH','join','tqBTK','writeFile','2048pAkiIb','1807554kYzwFj','stdout','BROWSERSTACK_TESTHUB_UUID','2039787eBdCGH','PMvVE','exports','ENV_VAR','debug','pipe','../logger','OxPnC','TuFko','GiDcR','8SeGylK','stop','Percy\x20healthcheck\x20successful','iGJtA','start','version','../helper','close','2hZbXIa','MCRrU','1062480kuTaoA','push','PERCY_SERVER_ADDRESS','percy/healthcheck','YjYBH','error','stringify','4926350mPTnYU','token','data','getBinaryPath','stderr','assign','isProcessRunning','child_process','percy.json','exec:stop','1140986DSQdMC','270MVnaRJ','isRunning','createWriteStream','automate','healthcheck','wWIDW','Sevcr','projectName','fetchPercyToken','aCzJS','api/app_percy/get_project_token?name=','103924TwvGnE'];a68_0x48ec=function(){return _0x291f35;};return a68_0x48ec();}(function(_0x132dc6,_0x1b249c){const _0xd1f3e4=a68_0xc3f2,_0xc84430=_0x132dc6();while(!![]){try{const _0x225feb=parseInt(_0xd1f3e4(0xb8))/0x1*(parseInt(_0xd1f3e4(0xd7))/0x2)+parseInt(_0xd1f3e4(0xba))/0x3+parseInt(_0xd1f3e4(0xa2))/0x4*(-parseInt(_0xd1f3e4(0xcc))/0x5)+parseInt(_0xd1f3e4(0xa3))/0x6+-parseInt(_0xd1f3e4(0xcb))/0x7*(-parseInt(_0xd1f3e4(0xb0))/0x8)+parseInt(_0xd1f3e4(0xa6))/0x9*(-parseInt(_0xd1f3e4(0x98))/0xa)+-parseInt(_0xd1f3e4(0xc1))/0xb;if(_0x225feb===_0x1b249c)break;else _0xc84430['push'](_0xc84430['shift']());}catch(_0x337745){_0xc84430['push'](_0xc84430['shift']());}}}(a68_0x48ec,0x35c28));const fs=require('fs'),path=require(a68_0x4b636b(0x92)),os=require('os'),{spawn}=require(a68_0x4b636b(0xc8)),helper=require(a68_0x4b636b(0xb6)),logger=require(a68_0x4b636b(0xac))['winstonLogger'],{logDir}=require(a68_0x4b636b(0xac)),testHubConstants=require('../../helpers/testhub/constants'),PercyBinary=require('./PercyBinary');function a68_0xc3f2(_0x28b4a1,_0x124623){const _0x48ec1e=a68_0x48ec();return a68_0xc3f2=function(_0xc3f225,_0x2812b2){_0xc3f225=_0xc3f225-0x92;let _0x389ca9=_0x48ec1e[_0xc3f225];return _0x389ca9;},a68_0xc3f2(_0x28b4a1,_0x124623);}class Percy{#logfile=path[a68_0x4b636b(0x9f)](logDir,'percy.log');#address=process[a68_0x4b636b(0x9b)][a68_0x4b636b(0xbc)]||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#isApp=![];[a68_0x4b636b(0xc7)]=![];constructor(_0x29f11c){const _0x14e813=a68_0x4b636b;this.#config=_0x29f11c,!!_0x29f11c[_0x14e813(0x95)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x4ba25c=a68_0x4b636b;if(!this.#binaryPath){const _0x23595e=new PercyBinary();this.#binaryPath=await _0x23595e[_0x4ba25c(0xc4)](this.#config);}return this.#binaryPath;}async #sleep(_0x47994e){return new Promise(_0x3463e3=>setTimeout(_0x3463e3,_0x47994e));}async[a68_0x4b636b(0xd0)](){const _0x2ba3fa=a68_0x4b636b,_0x3d6b86={};_0x3d6b86[_0x2ba3fa(0xbe)]='GET',_0x3d6b86[_0x2ba3fa(0xd8)]=_0x2ba3fa(0xbd);const _0x5883ec=_0x3d6b86;try{const _0x10a940=await helper[_0x2ba3fa(0x93)](_0x5883ec[_0x2ba3fa(0xbe)],_0x5883ec[_0x2ba3fa(0xd8)],null,null,this.#address);if(_0x10a940)return!![];}catch(_0x113280){return![];}}async[a68_0x4b636b(0xb4)](){const _0x4e41cd=a68_0x4b636b,_0xf84bef={'aCzJS':'app:exec','Sevcr':'exec','mIdzq':function(_0x5de12b,_0xfb59d8,_0x2443e4,_0x25a752){return _0x5de12b(_0xfb59d8,_0x2443e4,_0x25a752);},'sHPOJ':_0x4e41cd(0xb7),'TuFko':_0x4e41cd(0xb2)},_0x2626e1=await this.#getBinaryPath(),_0xeeed33={};_0xeeed33['flags']='a';const _0x12d360=fs[_0x4e41cd(0xce)](this.#logfile,_0xeeed33),_0x89ba19=await this['fetchPercyToken'](),_0x2daea2=await this[_0x4e41cd(0xdb)]();if(!_0x89ba19)return![];const _0x2fcb91=[(this.#isApp?_0xf84bef[_0x4e41cd(0xd5)]:_0xf84bef[_0x4e41cd(0xd2)])+':start'];_0x2daea2&&_0x2fcb91[_0x4e41cd(0xbb)]('-c',_0x2daea2);this.#proc=_0xf84bef['mIdzq'](spawn,_0x2626e1,_0x2fcb91,{'env':Object[_0x4e41cd(0xc6)](process['env'],{'PERCY_TOKEN':_0x89ba19,'TH_BUILD_UUID':process['env'][testHubConstants[_0x4e41cd(0xa9)][_0x4e41cd(0xa5)]]})}),this.#proc[_0x4e41cd(0xa4)][_0x4e41cd(0xab)](_0x12d360),this.#proc[_0x4e41cd(0xc5)]['pipe'](_0x12d360),this[_0x4e41cd(0xc7)]=!![];var _0x481135=this;this.#proc['on'](_0xf84bef[_0x4e41cd(0xda)],function(_0x56904b){const _0x350bcc=_0x4e41cd;_0x481135[_0x350bcc(0xc7)]=![];});do{const _0x395fd1=await this['healthcheck']();if(_0x395fd1)return logger[_0x4e41cd(0xaa)](_0xf84bef[_0x4e41cd(0xae)]),!![];await this.#sleep(0x3e8);}while(this[_0x4e41cd(0xc7)]);return![];}async[a68_0x4b636b(0xb1)](){const _0x39960a=a68_0x4b636b,_0x519358={'YqYxo':function(_0x3ec78f,_0x4442fd){return _0x3ec78f(_0x4442fd);},'HkrbH':function(_0x207b5a,_0x397151,_0xae4965){return _0x207b5a(_0x397151,_0xae4965);},'GiDcR':_0x39960a(0xca),'UxcRX':_0x39960a(0xb7)},_0x2a135a=await this.#getBinaryPath();return new Promise((_0x296701,_0x2738dc)=>{const _0x2d7e3b=_0x39960a,_0x5bb16c={'dWKWX':function(_0x320216,_0x324905){return _0x519358['YqYxo'](_0x320216,_0x324905);}},_0x5e02d6=_0x519358['HkrbH'](spawn,_0x2a135a,[_0x519358[_0x2d7e3b(0xaf)]]);_0x5e02d6['on'](_0x519358[_0x2d7e3b(0xd9)],_0x107f9d=>{this['isProcessRunning']=![],_0x5bb16c['dWKWX'](_0x296701,_0x107f9d);});});}[a68_0x4b636b(0xcd)](){const _0x3f1c92=a68_0x4b636b;return this[_0x3f1c92(0xc7)];}async[a68_0x4b636b(0xd4)](){const _0x55b1f3=a68_0x4b636b,_0x454dfc={};_0x454dfc[_0x55b1f3(0xad)]=_0x55b1f3(0x95),_0x454dfc[_0x55b1f3(0x94)]=_0x55b1f3(0xcf),_0x454dfc[_0x55b1f3(0xb3)]='GET',_0x454dfc[_0x55b1f3(0xb9)]=_0x55b1f3(0x9a);const _0x7fd2c=_0x454dfc,_0x237e42=this.#config[_0x55b1f3(0xd3)];try{const _0x598639=this.#isApp?_0x7fd2c[_0x55b1f3(0xad)]:_0x7fd2c[_0x55b1f3(0x94)],_0x1185aa=await helper[_0x55b1f3(0x93)](_0x7fd2c[_0x55b1f3(0xb3)],_0x55b1f3(0xd6)+_0x237e42+_0x55b1f3(0x9d)+_0x598639,{},this.#config),_0x15b21e=_0x1185aa[_0x55b1f3(0xc3)];return logger['debug'](_0x7fd2c[_0x55b1f3(0xb9)]),_0x15b21e[_0x55b1f3(0xc2)];}catch(_0x2a10a0){return logger[_0x55b1f3(0xbf)](_0x55b1f3(0x97)+_0x2a10a0),null;}}async[a68_0x4b636b(0xdb)](){const _0x43650b=a68_0x4b636b,_0x4fc70c={'vwHey':function(_0x35e185,_0x565ce2){return _0x35e185(_0x565ce2);},'wWIDW':function(_0x481944,_0x7e3a67){return _0x481944+_0x7e3a67;},'tqBTK':'Percy\x20config\x20created\x20at\x20','JCAqg':function(_0x3dbf1c,_0x1f4be2){return _0x3dbf1c(_0x1f4be2);},'PMvVE':_0x43650b(0xc9)};if(!this.#config[_0x43650b(0x9c)])return null;const _0x53be76=path[_0x43650b(0x9f)](os['tmpdir'](),_0x4fc70c[_0x43650b(0xa7)]),_0x64abd5=this.#config[_0x43650b(0x9c)];return!_0x64abd5[_0x43650b(0xb5)]&&(_0x64abd5['version']='2'),new Promise((_0x34bd86,_0x338653)=>{const _0x154094=_0x43650b,_0x253469={'dpSNh':function(_0x2442d0,_0x469e48){return _0x4fc70c['vwHey'](_0x2442d0,_0x469e48);},'NAgEH':function(_0x1bc907,_0x6dcef7){const _0x3e86d3=a68_0xc3f2;return _0x4fc70c[_0x3e86d3(0xd1)](_0x1bc907,_0x6dcef7);},'DYpEV':_0x4fc70c[_0x154094(0xa0)],'YjAlN':function(_0x43ef1b,_0x3ed5e2){return _0x4fc70c['JCAqg'](_0x43ef1b,_0x3ed5e2);}};fs[_0x154094(0xa1)](_0x53be76,JSON[_0x154094(0xc0)](_0x64abd5),_0x4e0989=>{const _0x59a1b0=_0x154094;_0x4e0989&&(logger[_0x59a1b0(0xbf)](_0x59a1b0(0x96)+_0x4e0989),_0x253469['dpSNh'](_0x34bd86,null)),logger[_0x59a1b0(0xaa)](_0x253469[_0x59a1b0(0x9e)](_0x253469[_0x59a1b0(0x99)],_0x53be76)),_0x253469['YjAlN'](_0x34bd86,_0x53be76);});});}}module[a68_0x4b636b(0xa8)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a69_0x5adc(){const _0x182762=['percy.exe','klSik','gGHvt','OhGfV','qBzgD','platform','function','/percy-linux.zip','get','TiRuT','HOMEPATH','ZNfDL','once','6590mfBmQv','kFeoq','yJnlK','url','/percy-win.zip','mkjjK','zxLDH','/percy-osx.zip','48UVnpBq','../logger','Amnyb','entry','fileName','44788xgTijZ','60ebutXk','exports','proxyHost','fMThu','Hjuoz','RrMXQ','X_OK','proxyPort','ChCJo','ybtVS','ZmwtW','getuid','accessSync','cwd','https://github.com/percy/cli/releases/latest/download','vZFQy','linux','XXVUZ','test','homedir','3824345kPzWtF','mwkBs','error','dPUhg','data','validateBinary','comTJ','Ycdsb','usrxY','open','end','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','HOME','VjcPy','R_OK','0755','path','/home/','port','EIgsG','USER','3025572AObPQr','YvzzE','WUAdz','1281238zNmNtb','kHmJF','KoPMs','Error\x20trying\x20to\x20download\x20percy\x20binary','OeShw','download','child_process','20hGePso','nGtwb','gNzBV','/root','--version','percy','vQCOv','parse','QMdKO','306OdeQOT','pipe','DqrDD','yTpNZ','stdout','readEntry','MybHL','jJabh','close','USERPROFILE','readFileSync','OLSuW','ERzXQ','SpWYO','ZmFdS','join','win32','length','LOGNAME','KmUdl','OswiD','undefined','WhxoQ','xSPaS','191GsGZKd','lOipt','winstonLogger','SByHz','tmpdir','wxfUn','1134315oVuiNM','wtenL','match','xUhxB','yauzl','useCaCertificate','paAUc','createWriteStream','BeFYL','mkdirSync','CNOoU','lSSQK','ADOac','/Users/','darwin','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','statSync','QIJgK','4909200JmsHvQ','lazyEntries','LCtBw','MzvwZ','openReadStream','rQdNx'];a69_0x5adc=function(){return _0x182762;};return a69_0x5adc();}const a69_0x43ef7f=a69_0x4666;(function(_0x157bae,_0x1b85a9){const _0x505ea8=a69_0x4666,_0x41d942=_0x157bae();while(!![]){try{const _0x1cf11b=-parseInt(_0x505ea8(0x16e))/0x1*(-parseInt(_0x505ea8(0x199))/0x2)+parseInt(_0x505ea8(0x156))/0x3*(parseInt(_0x505ea8(0x1a6))/0x4)+-parseInt(_0x505ea8(0x1bb))/0x5+-parseInt(_0x505ea8(0x186))/0x6+parseInt(_0x505ea8(0x146))/0x7*(-parseInt(_0x505ea8(0x1a1))/0x8)+parseInt(_0x505ea8(0x174))/0x9*(parseInt(_0x505ea8(0x14d))/0xa)+-parseInt(_0x505ea8(0x143))/0xb*(-parseInt(_0x505ea8(0x1a7))/0xc);if(_0x1cf11b===_0x1b85a9)break;else _0x41d942['push'](_0x41d942['shift']());}catch(_0x604f34){_0x41d942['push'](_0x41d942['shift']());}}}(a69_0x5adc,0xaf2b8));const {https}=require('follow-redirects'),url=require(a69_0x43ef7f(0x19c)),yauzl=require(a69_0x43ef7f(0x178)),fs=require('fs'),path=require(a69_0x43ef7f(0x13e)),os=require('os'),{spawn}=require(a69_0x43ef7f(0x14c)),HttpsProxyAgent=require('https-proxy-agent'),logger=require(a69_0x43ef7f(0x1a2))[a69_0x43ef7f(0x170)];function a69_0x4666(_0x39ed1c,_0x7974a9){const _0x5adce8=a69_0x5adc();return a69_0x4666=function(_0x46667a,_0x233422){_0x46667a=_0x46667a-0x130;let _0x3a015a=_0x5adce8[_0x46667a];return _0x3a015a;},a69_0x4666(_0x39ed1c,_0x7974a9);}class PercyBinary{#hostOS=process[a69_0x43ef7f(0x191)];#httpPath=null;#binaryName=a69_0x43ef7f(0x152);#orderedPaths=[path[a69_0x43ef7f(0x165)](this.#homedir(),'.browserstack'),process[a69_0x43ef7f(0x1b4)](),os[a69_0x43ef7f(0x172)]()];constructor(){const _0x9f6787=a69_0x43ef7f,_0x326038={};_0x326038['kFeoq']=_0x9f6787(0x1b5),_0x326038['eBTuR']=function(_0x4e67c0,_0x486c36){return _0x4e67c0+_0x486c36;},_0x326038[_0x9f6787(0x158)]=_0x9f6787(0x1a0),_0x326038[_0x9f6787(0x131)]=function(_0x38f645,_0x3cd742){return _0x38f645+_0x3cd742;},_0x326038[_0x9f6787(0x159)]=_0x9f6787(0x19d),_0x326038['usrxY']=_0x9f6787(0x18c),_0x326038[_0x9f6787(0x1b0)]=_0x9f6787(0x193);const _0x4616ef=_0x326038,_0x3631f4=_0x4616ef[_0x9f6787(0x19a)];if(this.#hostOS[_0x9f6787(0x176)](/darwin|mac os/i))this.#httpPath=_0x4616ef['eBTuR'](_0x3631f4,_0x4616ef[_0x9f6787(0x158)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x4616ef['dPUhg'](_0x3631f4,_0x4616ef['yTpNZ']),this.#binaryName=_0x4616ef[_0x9f6787(0x136)]):this.#httpPath=_0x4616ef['eBTuR'](_0x3631f4,_0x4616ef[_0x9f6787(0x1b0)]);}#getAvailableDirs(){const _0x5163bf=a69_0x43ef7f,_0x3f9fed={};_0x3f9fed[_0x5163bf(0x144)]=function(_0x2c7ba2,_0x47888c){return _0x2c7ba2<_0x47888c;},_0x3f9fed[_0x5163bf(0x190)]=_0x5163bf(0x149);const _0x27a3dd=_0x3f9fed;for(var _0x2ee76e=0x0;_0x27a3dd[_0x5163bf(0x144)](_0x2ee76e,this.#orderedPaths[_0x5163bf(0x167)]);_0x2ee76e++){var _0x4274b7=this.#orderedPaths[_0x2ee76e];if(this.#makePath(_0x4274b7))return _0x4274b7;}throw new Error(_0x27a3dd[_0x5163bf(0x190)]);}#makePath(_0xaf1c99){try{return!this.#checkPath(_0xaf1c99)&&fs['mkdirSync'](_0xaf1c99),!![];}catch{return![];}}#checkPath(_0x25a9f1,_0x1b5b61){const _0x3ecf32=a69_0x43ef7f,_0x14ad93={};_0x14ad93[_0x3ecf32(0x18d)]=function(_0x390533,_0x224c78){return _0x390533|_0x224c78;},_0x14ad93[_0x3ecf32(0x17c)]=function(_0x2d253a,_0x3d23ab){return _0x2d253a!==_0x3d23ab;},_0x14ad93['lOipt']=_0x3ecf32(0x16b);const _0x39ea26=_0x14ad93;_0x1b5b61=_0x1b5b61||_0x39ea26[_0x3ecf32(0x18d)](fs[_0x3ecf32(0x13c)],fs['W_OK']);try{return fs[_0x3ecf32(0x1b3)](_0x25a9f1,_0x1b5b61),!![];}catch(_0x1d0b59){if(_0x39ea26[_0x3ecf32(0x17c)](typeof fs['accessSync'],_0x39ea26[_0x3ecf32(0x16f)]))return![];try{return fs[_0x3ecf32(0x184)](_0x25a9f1),!![];}catch(_0x51cbe5){return![];}}}async['getBinaryPath'](_0x2de26b){const _0x2eec5e=a69_0x43ef7f,_0x44c8bd={};_0x44c8bd[_0x2eec5e(0x14e)]='Corrupt\x20percy\x20binary,\x20retrying';const _0xdda40a=_0x44c8bd;var _0x14da7e=this.#getAvailableDirs(),_0x1838a7=path[_0x2eec5e(0x165)](_0x14da7e,this.#binaryName);if(this.#checkPath(_0x1838a7,fs[_0x2eec5e(0x1ad)]))return _0x1838a7;const _0xd0c52d=await this[_0x2eec5e(0x14b)](_0x2de26b,_0x14da7e),_0x3554f3=await this[_0x2eec5e(0x133)](_0xd0c52d);if(!_0x3554f3)return logger[_0x2eec5e(0x130)](_0xdda40a[_0x2eec5e(0x14e)]),await this['download'](_0x2de26b,_0x14da7e);return _0xd0c52d;}async[a69_0x43ef7f(0x133)](_0x194208){const _0x1d0acd=a69_0x43ef7f,_0x4c3618={'SfcAX':function(_0x58c65d,_0xd70620){return _0x58c65d(_0xd70620);},'ZmFdS':function(_0x1ef504,_0x38c7b1,_0x423234){return _0x1ef504(_0x38c7b1,_0x423234);},'vZFQy':_0x1d0acd(0x151),'gNzBV':_0x1d0acd(0x132),'vQCOv':'close'},_0x116d9a=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x11e107,_0x5e7c9d)=>{const _0x4dae05=_0x1d0acd,_0x557b49={'SpWYO':function(_0x2dae49,_0x1158e8){return _0x4c3618['SfcAX'](_0x2dae49,_0x1158e8);}},_0x132c85=_0x4c3618[_0x4dae05(0x164)](spawn,_0x194208,[_0x4c3618[_0x4dae05(0x1b6)]]);_0x132c85[_0x4dae05(0x15a)]['on'](_0x4c3618[_0x4dae05(0x14f)],_0xc18332=>{const _0x3a4b60=_0x4dae05;_0x116d9a[_0x3a4b60(0x1b9)](_0xc18332)&&_0x4c3618['SfcAX'](_0x11e107,!![]);}),_0x132c85['on'](_0x4c3618[_0x4dae05(0x153)],()=>{const _0x5a4aa6=_0x4dae05;_0x557b49[_0x5a4aa6(0x163)](_0x11e107,![]);});});}['download'](_0x5ae07e,_0x4a619d){const _0x37fde6=a69_0x43ef7f,_0x4a411a={'MzvwZ':function(_0x4c0560,_0x2a70c2){return _0x4c0560===_0x2a70c2;},'WhxoQ':function(_0x277202,_0x3098d0){return _0x277202(_0x3098d0);},'apYPI':_0x37fde6(0x138),'OhGfV':_0x37fde6(0x13d),'QMdKO':_0x37fde6(0x1a4),'rQdNx':'error','Ycdsb':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','EIgsG':_0x37fde6(0x183),'GJEoT':_0x37fde6(0x15e),'ADOac':_0x37fde6(0x139),'LCtBw':function(_0x3ceb5f,_0x38d130){return _0x3ceb5f+_0x38d130;},'ZmwtW':'.zip','hVAwm':'Percy\x20download\x20failed\x20to\x20read\x20cert\x20file'};!this.#checkPath(_0x4a619d)&&fs[_0x37fde6(0x17d)](_0x4a619d);const _0x591818=this.#binaryName,_0x3a29d9=path[_0x37fde6(0x165)](_0x4a619d,_0x4a411a[_0x37fde6(0x188)](_0x591818,_0x4a411a[_0x37fde6(0x1b1)])),_0x26f0a2=path['join'](_0x4a619d,_0x591818),_0x1b7c1d=fs[_0x37fde6(0x17b)](_0x3a29d9),_0x4aab3f=url[_0x37fde6(0x154)](this.#httpPath);if(_0x5ae07e[_0x37fde6(0x1a9)]&&_0x5ae07e['proxyPort']){const _0xab6178={};_0xab6178['host']=_0x5ae07e['proxyHost'],_0xab6178[_0x37fde6(0x140)]=_0x5ae07e[_0x37fde6(0x1ae)],_0x4aab3f['agent']=new HttpsProxyAgent(_0xab6178);}if(_0x5ae07e[_0x37fde6(0x179)])try{_0x4aab3f['ca']=fs[_0x37fde6(0x160)](_0x5ae07e[_0x37fde6(0x179)]);}catch(_0x253711){logger[_0x37fde6(0x130)](_0x4a411a['hVAwm'],_0x253711);}return new Promise((_0x731a57,_0x1c2697)=>{const _0x4e70b1=_0x37fde6,_0x3d7b1c={'xSPaS':function(_0x3b3510,_0x149885){const _0xc0c728=a69_0x4666;return _0x4a411a[_0xc0c728(0x189)](_0x3b3510,_0x149885);},'yJnlK':function(_0x3e2129,_0x18e650){const _0x4cea31=a69_0x4666;return _0x4a411a[_0x4cea31(0x16c)](_0x3e2129,_0x18e650);},'zxLDH':_0x4a411a['apYPI'],'CNOoU':_0x4a411a[_0x4e70b1(0x18f)],'gGHvt':_0x4a411a[_0x4e70b1(0x155)],'fMThu':_0x4a411a[_0x4e70b1(0x18b)],'QIJgK':_0x4a411a[_0x4e70b1(0x135)],'VjcPy':_0x4a411a[_0x4e70b1(0x141)],'paAUc':function(_0x4614d0,_0x5215cf){const _0x4d18ed=_0x4e70b1;return _0x4a411a[_0x4d18ed(0x16c)](_0x4614d0,_0x5215cf);},'Hjuoz':_0x4a411a['GJEoT'],'MybHL':_0x4a411a[_0x4e70b1(0x180)]};https[_0x4e70b1(0x194)](_0x4aab3f,function(_0x4da0ce){const _0x473fe7=_0x4e70b1,_0x350072={'fOsYl':_0x3d7b1c[_0x473fe7(0x185)],'RrMXQ':function(_0x5b3ceb,_0x257e04){const _0x196104=_0x473fe7;return _0x3d7b1c[_0x196104(0x19b)](_0x5b3ceb,_0x257e04);},'KmUdl':_0x3d7b1c[_0x473fe7(0x13b)],'wtenL':function(_0x1ab09c,_0x106ddb){const _0x14e765=_0x473fe7;return _0x3d7b1c[_0x14e765(0x17a)](_0x1ab09c,_0x106ddb);}};_0x4da0ce[_0x473fe7(0x157)](_0x1b7c1d),_0x4da0ce['on'](_0x3d7b1c[_0x473fe7(0x1aa)],function(_0x4d9600){const _0x738ff7=_0x473fe7;logger[_0x738ff7(0x130)](_0x350072['fOsYl'],_0x4d9600),_0x350072[_0x738ff7(0x1ac)](_0x1c2697,_0x4d9600);}),_0x1b7c1d['on'](_0x3d7b1c[_0x473fe7(0x1aa)],function(_0x1b6565){const _0x2e8a0c=_0x473fe7;logger[_0x2e8a0c(0x130)](_0x350072[_0x2e8a0c(0x169)],_0x1b6565),_0x350072[_0x2e8a0c(0x175)](_0x1c2697,_0x1b6565);}),_0x1b7c1d['on'](_0x3d7b1c[_0x473fe7(0x1ab)],function(){const _0x217c09=_0x473fe7,_0x4af2f8={'aDTJq':function(_0x37ff6b,_0xc26fba){const _0x3d4bfc=a69_0x4666;return _0x3d7b1c[_0x3d4bfc(0x16d)](_0x37ff6b,_0xc26fba);},'WUAdz':function(_0x3cd565,_0x57cb21){const _0x402312=a69_0x4666;return _0x3d7b1c[_0x402312(0x19b)](_0x3cd565,_0x57cb21);},'kRnyc':_0x3d7b1c[_0x217c09(0x19f)],'SByHz':_0x3d7b1c[_0x217c09(0x17e)],'kHmJF':_0x3d7b1c[_0x217c09(0x18e)],'XXVUZ':_0x3d7b1c[_0x217c09(0x1aa)]},_0x40105c={};_0x40105c[_0x217c09(0x187)]=!![],yauzl[_0x217c09(0x137)](_0x3a29d9,_0x40105c,function(_0x1ad1b0,_0x19276f){const _0x18ee0c=_0x217c09,_0x1837c2={'KoPMs':function(_0x16640c,_0x4db0a1){const _0x107e52=a69_0x4666;return _0x4af2f8[_0x107e52(0x145)](_0x16640c,_0x4db0a1);},'TiRuT':_0x4af2f8['kRnyc'],'jnBvK':_0x4af2f8[_0x18ee0c(0x171)]};_0x1ad1b0&&_0x4af2f8['WUAdz'](_0x1c2697,_0x1ad1b0),_0x19276f[_0x18ee0c(0x15b)](),_0x19276f['on'](_0x4af2f8[_0x18ee0c(0x147)],_0x30370a=>{const _0x36823f=_0x18ee0c;if(/\/$/[_0x36823f(0x1b9)](_0x30370a[_0x36823f(0x1a5)]))_0x19276f[_0x36823f(0x15b)]();else{const _0x5485dd=fs['createWriteStream'](path[_0x36823f(0x165)](_0x4a619d,_0x30370a[_0x36823f(0x1a5)]));_0x19276f[_0x36823f(0x18a)](_0x30370a,function(_0x39b2eb,_0x3c75a3){const _0x21be86=_0x36823f;_0x39b2eb&&_0x1837c2[_0x21be86(0x148)](_0x1c2697,_0x1ad1b0),_0x3c75a3['on'](_0x1837c2[_0x21be86(0x195)],function(){const _0x3f3096=_0x21be86;_0x5485dd[_0x3f3096(0x15e)](),_0x19276f[_0x3f3096(0x15b)]();}),_0x3c75a3[_0x21be86(0x157)](_0x5485dd);}),_0x4af2f8['aDTJq'](_0x30370a[_0x36823f(0x1a5)],_0x591818)&&_0x19276f['close']();}}),_0x19276f['on'](_0x4af2f8[_0x18ee0c(0x1b8)],_0x19664c=>{_0x1837c2['KoPMs'](_0x1c2697,_0x19664c);}),_0x19276f[_0x18ee0c(0x198)](_0x4af2f8['kRnyc'],()=>{fs['chmod'](_0x26f0a2,_0x1837c2['jnBvK'],function(_0x8ea16b){const _0x353ee6=a69_0x4666;_0x8ea16b&&_0x1837c2[_0x353ee6(0x148)](_0x1c2697,_0x8ea16b),_0x1837c2[_0x353ee6(0x148)](_0x731a57,_0x26f0a2);}),_0x19276f['close']();});});});})['on'](_0x4a411a['rQdNx'],function(_0x5bb335){const _0x4679d1=_0x4e70b1;logger['error'](_0x3d7b1c[_0x4679d1(0x15c)],_0x5bb335),_0x3d7b1c[_0x4679d1(0x19b)](_0x1c2697,_0x5bb335);});});}#homedir(){const _0x3cfa71=a69_0x43ef7f,_0x1eb472={};_0x1eb472[_0x3cfa71(0x1bc)]=function(_0xb1525,_0x2a614a){return _0xb1525===_0x2a614a;},_0x1eb472['OeShw']=_0x3cfa71(0x192),_0x1eb472[_0x3cfa71(0x19e)]=function(_0x33b34e,_0x432c60){return _0x33b34e===_0x432c60;},_0x1eb472[_0x3cfa71(0x161)]=_0x3cfa71(0x166),_0x1eb472[_0x3cfa71(0x162)]=function(_0x37c1f5,_0x2807f0){return _0x37c1f5+_0x2807f0;},_0x1eb472[_0x3cfa71(0x134)]=_0x3cfa71(0x182),_0x1eb472[_0x3cfa71(0x173)]=function(_0x10a3d3,_0x18a7e9){return _0x10a3d3+_0x18a7e9;},_0x1eb472[_0x3cfa71(0x1af)]=_0x3cfa71(0x181),_0x1eb472[_0x3cfa71(0x15d)]=function(_0x4697d0,_0x312fdc){return _0x4697d0===_0x312fdc;},_0x1eb472[_0x3cfa71(0x197)]=_0x3cfa71(0x1b7),_0x1eb472[_0x3cfa71(0x16a)]=_0x3cfa71(0x150),_0x1eb472[_0x3cfa71(0x17f)]=function(_0x32c443,_0x9d4eef){return _0x32c443+_0x9d4eef;},_0x1eb472[_0x3cfa71(0x1a3)]=_0x3cfa71(0x13f),_0x1eb472['xUhxB']=function(_0x4a5b31,_0x36e29d){return _0x4a5b31||_0x36e29d;};const _0x4bbcc8=_0x1eb472;if(_0x4bbcc8[_0x3cfa71(0x1bc)](typeof os[_0x3cfa71(0x1ba)],_0x4bbcc8[_0x3cfa71(0x14a)]))return os['homedir']();const _0x14803a=process['env'],_0x1cd9f4=_0x14803a[_0x3cfa71(0x13a)],_0x306da2=_0x14803a[_0x3cfa71(0x168)]||_0x14803a[_0x3cfa71(0x142)]||_0x14803a['LNAME']||_0x14803a['USERNAME'];if(_0x4bbcc8['mkjjK'](process[_0x3cfa71(0x191)],_0x4bbcc8[_0x3cfa71(0x161)]))return _0x14803a[_0x3cfa71(0x15f)]||_0x4bbcc8[_0x3cfa71(0x162)](_0x14803a['HOMEDRIVE'],_0x14803a[_0x3cfa71(0x196)])||_0x1cd9f4||null;if(_0x4bbcc8[_0x3cfa71(0x1bc)](process[_0x3cfa71(0x191)],_0x4bbcc8[_0x3cfa71(0x134)]))return _0x1cd9f4||(_0x306da2?_0x4bbcc8[_0x3cfa71(0x173)](_0x4bbcc8['ChCJo'],_0x306da2):null);if(_0x4bbcc8[_0x3cfa71(0x15d)](process[_0x3cfa71(0x191)],_0x4bbcc8[_0x3cfa71(0x197)]))return _0x1cd9f4||(_0x4bbcc8[_0x3cfa71(0x15d)](process[_0x3cfa71(0x1b2)](),0x0)?_0x4bbcc8[_0x3cfa71(0x16a)]:_0x306da2?_0x4bbcc8[_0x3cfa71(0x17f)](_0x4bbcc8['Amnyb'],_0x306da2):null);return _0x4bbcc8[_0x3cfa71(0x177)](_0x1cd9f4,null);}}module[a69_0x43ef7f(0x1a8)]=PercyBinary;
|
|
1
|
+
const a69_0x4a502a=a69_0x3e63;function a69_0xa5b5(){const _0x2fed0a=['test','darwin','OOfFq','kpFln','AAQPC','getBinaryPath','/root','55iHSQJa','bxnmA','cwd','RfKmP','readEntry','https-proxy-agent','HOMEPATH','.browserstack','USERNAME','LiQcZ','undefined','pIRbp','/percy-linux.zip','YIgff','W_OK','aICmd','PZdRE','rXnHA','TuQLe','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','/percy-osx.zip','JzuOZ','9171InfOyV','xMuIS','HmOik','530kpxeVg','bOhkR','proxyPort','ykTMm','czCCR','openReadStream','oRQdD','url','yauzl','2943278YybDHK','end','xgAoy','1679706oIZsKc','stdout','../logger','mZBLk','TtGYR','/percy-win.zip','81462ePkDYY','host','readFileSync','path','open','--version','homedir','inBkc','X_OK','DWyBB','close','tmpdir','DVeZi','accessSync','YfKYn','HWkxU','once','getuid','LIqXZ','proxyHost','download','HOMEDRIVE','platform','linux','jgSta','QsnNI','entry','0755','90IEfFbC','skgCK','xoMrb','hdpro','XPbwL','join','ObSAt','error','exports','USER','validateBinary','percy','fileName','YnFJa','4pIlJsA','hLaCm','HOME','WRJQW','child_process','get','ITyOW','1640883bPZSzH','chmod','QKjZv','Corrupt\x20percy\x20binary,\x20retrying','PxCnO','7951Gfevjp','/home/','CZzqi','fvLtk','GZsSY','cAELj','iwwzt','cIGOf','fTwir','272WFlFRI','8ESmEyy','LiTSj','winstonLogger','84kJPpuJ','statSync','bdruO','length','cUyFa','SxIIx','AircT','data','LNAME','sOzbK','match','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','useCaCertificate','pipe','WBrIF','yIcSC','HjftN','fSplk','601572BJQaaF','hDLQI','LRkDQ','NyxCG','qBHvw','mkdirSync'];a69_0xa5b5=function(){return _0x2fed0a;};return a69_0xa5b5();}function a69_0x3e63(_0x29f8d1,_0x425237){const _0xa5b58=a69_0xa5b5();return a69_0x3e63=function(_0x3e63e4,_0xd7bcce){_0x3e63e4=_0x3e63e4-0x15c;let _0x3d7fa8=_0xa5b58[_0x3e63e4];return _0x3d7fa8;},a69_0x3e63(_0x29f8d1,_0x425237);}(function(_0x1a11bd,_0x202e14){const _0x124e7a=a69_0x3e63,_0x1dee21=_0x1a11bd();while(!![]){try{const _0x330e1c=-parseInt(_0x124e7a(0x176))/0x1*(-parseInt(_0x124e7a(0x17f))/0x2)+parseInt(_0x124e7a(0x171))/0x3*(parseInt(_0x124e7a(0x16a))/0x4)+parseInt(_0x124e7a(0x15c))/0x5*(parseInt(_0x124e7a(0x1cd))/0x6)+parseInt(_0x124e7a(0x1c7))/0x7*(parseInt(_0x124e7a(0x180))/0x8)+parseInt(_0x124e7a(0x1b8))/0x9*(parseInt(_0x124e7a(0x1bb))/0xa)+-parseInt(_0x124e7a(0x1a2))/0xb*(parseInt(_0x124e7a(0x195))/0xc)+parseInt(_0x124e7a(0x1c4))/0xd*(-parseInt(_0x124e7a(0x183))/0xe);if(_0x330e1c===_0x202e14)break;else _0x1dee21['push'](_0x1dee21['shift']());}catch(_0x564b0a){_0x1dee21['push'](_0x1dee21['shift']());}}}(a69_0xa5b5,0x881f5));const {https}=require('follow-redirects'),url=require(a69_0x4a502a(0x1c2)),yauzl=require(a69_0x4a502a(0x1c3)),fs=require('fs'),path=require(a69_0x4a502a(0x1d0)),os=require('os'),{spawn}=require(a69_0x4a502a(0x16e)),HttpsProxyAgent=require(a69_0x4a502a(0x1a7)),logger=require(a69_0x4a502a(0x1c9))[a69_0x4a502a(0x182)];class PercyBinary{#hostOS=process[a69_0x4a502a(0x1e3)];#httpPath=null;#binaryName=a69_0x4a502a(0x167);#orderedPaths=[path[a69_0x4a502a(0x161)](this.#homedir(),a69_0x4a502a(0x1a9)),process[a69_0x4a502a(0x1a4)](),os[a69_0x4a502a(0x1d8)]()];constructor(){const _0x398592=a69_0x4a502a,_0x24a32a={};_0x24a32a[_0x398592(0x1ba)]='https://github.com/percy/cli/releases/latest/download',_0x24a32a[_0x398592(0x1bc)]=function(_0x2d9e2e,_0x3eee89){return _0x2d9e2e+_0x3eee89;},_0x24a32a[_0x398592(0x15f)]=_0x398592(0x1b6),_0x24a32a[_0x398592(0x1b2)]=_0x398592(0x1cc),_0x24a32a[_0x398592(0x198)]='percy.exe',_0x24a32a[_0x398592(0x17d)]=_0x398592(0x1ae);const _0x5554c6=_0x24a32a,_0x5bbfb4=_0x5554c6[_0x398592(0x1ba)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x5554c6[_0x398592(0x1bc)](_0x5bbfb4,_0x5554c6[_0x398592(0x15f)]);else this.#hostOS[_0x398592(0x18d)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x5554c6['bOhkR'](_0x5bbfb4,_0x5554c6[_0x398592(0x1b2)]),this.#binaryName=_0x5554c6[_0x398592(0x198)]):this.#httpPath=_0x5554c6[_0x398592(0x1bc)](_0x5bbfb4,_0x5554c6[_0x398592(0x17d)]);}#getAvailableDirs(){const _0x4b9e72=a69_0x4a502a,_0x37db04={};_0x37db04[_0x4b9e72(0x1c6)]=function(_0x2cf3ec,_0x206e95){return _0x2cf3ec<_0x206e95;},_0x37db04[_0x4b9e72(0x1b1)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x3fe1a4=_0x37db04;for(var _0x4163cb=0x0;_0x3fe1a4[_0x4b9e72(0x1c6)](_0x4163cb,this.#orderedPaths[_0x4b9e72(0x186)]);_0x4163cb++){var _0x5006e8=this.#orderedPaths[_0x4163cb];if(this.#makePath(_0x5006e8))return _0x5006e8;}throw new Error(_0x3fe1a4[_0x4b9e72(0x1b1)]);}#makePath(_0x585252){const _0x57a85e=a69_0x4a502a;try{return!this.#checkPath(_0x585252)&&fs[_0x57a85e(0x19a)](_0x585252),!![];}catch{return![];}}#checkPath(_0x45d96d,_0x208d53){const _0x401976=a69_0x4a502a,_0x46ded8={};_0x46ded8[_0x401976(0x16b)]=function(_0x47c69b,_0x57c33b){return _0x47c69b|_0x57c33b;},_0x46ded8['iwwzt']=function(_0x5edf7d,_0x4685a1){return _0x5edf7d!==_0x4685a1;},_0x46ded8[_0x401976(0x19f)]=_0x401976(0x1ac);const _0x94576d=_0x46ded8;_0x208d53=_0x208d53||_0x94576d['hLaCm'](fs['R_OK'],fs[_0x401976(0x1b0)]);try{return fs[_0x401976(0x1da)](_0x45d96d,_0x208d53),!![];}catch(_0x4048bb){if(_0x94576d[_0x401976(0x17c)](typeof fs['accessSync'],_0x94576d[_0x401976(0x19f)]))return![];try{return fs[_0x401976(0x184)](_0x45d96d),!![];}catch(_0x5c93b5){return![];}}}async[a69_0x4a502a(0x1a0)](_0x180e11){const _0x360a6b=a69_0x4a502a,_0x1669b7={};_0x1669b7['fSplk']=_0x360a6b(0x174);const _0xfeba32=_0x1669b7;var _0x5f3dcb=this.#getAvailableDirs(),_0xc8c0=path['join'](_0x5f3dcb,this.#binaryName);if(this.#checkPath(_0xc8c0,fs[_0x360a6b(0x1d5)]))return _0xc8c0;const _0x56047f=await this['download'](_0x180e11,_0x5f3dcb),_0x516a86=await this[_0x360a6b(0x166)](_0x56047f);if(!_0x516a86)return logger[_0x360a6b(0x163)](_0xfeba32[_0x360a6b(0x194)]),await this[_0x360a6b(0x1e1)](_0x180e11,_0x5f3dcb);return _0x56047f;}async[a69_0x4a502a(0x166)](_0x5c757b){const _0x43f78f=a69_0x4a502a,_0x2e15a4={'mZBLk':function(_0x3abfb7,_0x5ea0c3){return _0x3abfb7(_0x5ea0c3);},'qBHvw':function(_0x5499d6,_0x2aa45f,_0x18f0bc){return _0x5499d6(_0x2aa45f,_0x18f0bc);},'DVeZi':_0x43f78f(0x1d2),'inBkc':_0x43f78f(0x18a),'SxIIx':'close'},_0xf5d168=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x2b2d68,_0x16aa5b)=>{const _0x1cafd5=_0x43f78f,_0x5b5152={'GZsSY':function(_0x7e37fd,_0x3bd67a){return _0x2e15a4['mZBLk'](_0x7e37fd,_0x3bd67a);},'xoMrb':function(_0x32d228,_0x40a7e1){const _0x40b91b=a69_0x3e63;return _0x2e15a4[_0x40b91b(0x1ca)](_0x32d228,_0x40a7e1);}},_0x453f28=_0x2e15a4[_0x1cafd5(0x199)](spawn,_0x5c757b,[_0x2e15a4[_0x1cafd5(0x1d9)]]);_0x453f28[_0x1cafd5(0x1c8)]['on'](_0x2e15a4[_0x1cafd5(0x1d4)],_0x3a7f50=>{const _0x3ceee1=_0x1cafd5;_0xf5d168[_0x3ceee1(0x19b)](_0x3a7f50)&&_0x5b5152[_0x3ceee1(0x17a)](_0x2b2d68,!![]);}),_0x453f28['on'](_0x2e15a4[_0x1cafd5(0x188)],()=>{const _0x5bb4f2=_0x1cafd5;_0x5b5152[_0x5bb4f2(0x15e)](_0x2b2d68,![]);});});}['download'](_0x4f0c23,_0x5d5960){const _0x21c306=a69_0x4a502a,_0x3e98ed={'yIcSC':function(_0x306b92,_0x1f6c86){return _0x306b92(_0x1f6c86);},'LRkDQ':_0x21c306(0x1c5),'fvLtk':function(_0x3ae874,_0x2703ef){return _0x3ae874===_0x2703ef;},'LiTSj':_0x21c306(0x1e8),'skgCK':_0x21c306(0x1e7),'TtGYR':_0x21c306(0x163),'FhEGi':_0x21c306(0x1d7),'IyHJh':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','QsnNI':function(_0x10ce18,_0x4126e9){return _0x10ce18(_0x4126e9);},'cAELj':_0x21c306(0x1b5),'QjrhV':_0x21c306(0x18e),'czCCR':function(_0x3665f0,_0x1ba92d){return _0x3665f0(_0x1ba92d);},'IijBd':function(_0x322e53,_0x1e2fd3){return _0x322e53+_0x1e2fd3;},'AircT':'.zip','LIqXZ':'Percy\x20download\x20failed\x20to\x20read\x20cert\x20file'};!this.#checkPath(_0x5d5960)&&fs[_0x21c306(0x19a)](_0x5d5960);const _0x4e75c6=this.#binaryName,_0x224f76=path[_0x21c306(0x161)](_0x5d5960,_0x3e98ed['IijBd'](_0x4e75c6,_0x3e98ed[_0x21c306(0x189)])),_0x558a54=path[_0x21c306(0x161)](_0x5d5960,_0x4e75c6),_0xf71163=fs['createWriteStream'](_0x224f76),_0x530cdc=url['parse'](this.#httpPath);if(_0x4f0c23[_0x21c306(0x1e0)]&&_0x4f0c23[_0x21c306(0x1bd)]){const _0x5004a2={};_0x5004a2[_0x21c306(0x1ce)]=_0x4f0c23[_0x21c306(0x1e0)],_0x5004a2['port']=_0x4f0c23[_0x21c306(0x1bd)],_0x530cdc['agent']=new HttpsProxyAgent(_0x5004a2);}if(_0x4f0c23[_0x21c306(0x18f)])try{_0x530cdc['ca']=fs[_0x21c306(0x1cf)](_0x4f0c23[_0x21c306(0x18f)]);}catch(_0x1b087d){logger[_0x21c306(0x163)](_0x3e98ed[_0x21c306(0x1df)],_0x1b087d);}return new Promise((_0x598e95,_0x33e2c3)=>{const _0x52672b=_0x21c306,_0x4a6573={'bxnmA':_0x3e98ed['IyHJh'],'WRJQW':function(_0x1b521c,_0x1063da){const _0x1e9d87=a69_0x3e63;return _0x3e98ed[_0x1e9d87(0x1e6)](_0x1b521c,_0x1063da);},'DWyBB':_0x3e98ed[_0x52672b(0x17b)],'TuQLe':function(_0x2f5df8,_0x27a7eb){const _0x2df067=_0x52672b;return _0x3e98ed[_0x2df067(0x192)](_0x2f5df8,_0x27a7eb);},'PxCnO':_0x3e98ed['QjrhV'],'XPbwL':function(_0x428330,_0x58d62b){const _0x1cb499=_0x52672b;return _0x3e98ed[_0x1cb499(0x1bf)](_0x428330,_0x58d62b);}};https[_0x52672b(0x16f)](_0x530cdc,function(_0x10f85b){const _0x5536e3=_0x52672b,_0x687037={'cUyFa':function(_0x1c41c2,_0x2747a9){return _0x3e98ed['yIcSC'](_0x1c41c2,_0x2747a9);},'RfKmP':_0x3e98ed[_0x5536e3(0x197)],'mrykZ':function(_0x24bc75,_0xca53d3){const _0x460da8=_0x5536e3;return _0x3e98ed[_0x460da8(0x179)](_0x24bc75,_0xca53d3);},'QKjZv':function(_0x5e36e3,_0x59d1d8){const _0x7c86a6=_0x5536e3;return _0x3e98ed[_0x7c86a6(0x192)](_0x5e36e3,_0x59d1d8);},'LiQcZ':_0x3e98ed[_0x5536e3(0x181)],'rvOxi':function(_0x28b94a,_0x20d23a){const _0x50c310=_0x5536e3;return _0x3e98ed[_0x50c310(0x192)](_0x28b94a,_0x20d23a);},'kzWdr':_0x3e98ed[_0x5536e3(0x15d)],'WBrIF':_0x3e98ed[_0x5536e3(0x1cb)]};_0x10f85b[_0x5536e3(0x190)](_0xf71163),_0x10f85b['on'](_0x3e98ed[_0x5536e3(0x1cb)],function(_0x31e525){const _0x3d7260=_0x5536e3;logger['error'](_0x4a6573[_0x3d7260(0x1a3)],_0x31e525),_0x4a6573[_0x3d7260(0x16d)](_0x33e2c3,_0x31e525);}),_0xf71163['on'](_0x3e98ed[_0x5536e3(0x1cb)],function(_0x17272c){const _0x12f42b=_0x5536e3;logger[_0x12f42b(0x163)](_0x4a6573[_0x12f42b(0x1d6)],_0x17272c),_0x4a6573[_0x12f42b(0x1b4)](_0x33e2c3,_0x17272c);}),_0xf71163['on'](_0x3e98ed['FhEGi'],function(){const _0x356a91=_0x5536e3,_0x27e3a7={'YIgff':function(_0x5e1ef0,_0x5d9554){const _0xabf376=a69_0x3e63;return _0x4a6573[_0xabf376(0x1b4)](_0x5e1ef0,_0x5d9554);}},_0x1a264d={};_0x1a264d['lazyEntries']=!![],yauzl[_0x356a91(0x1d1)](_0x224f76,_0x1a264d,function(_0x330dcb,_0x5480b2){const _0x238dff=_0x356a91,_0x5e21c1={'ObSAt':function(_0x584565,_0x1f545f){const _0xfe6a18=a69_0x3e63;return _0x687037[_0xfe6a18(0x187)](_0x584565,_0x1f545f);},'fTwir':_0x687037[_0x238dff(0x1a5)],'kpFln':function(_0x1251f0,_0x5c4b56){return _0x687037['mrykZ'](_0x1251f0,_0x5c4b56);},'ITyOW':function(_0x4e691e,_0x23dcc9){const _0x4190af=_0x238dff;return _0x687037[_0x4190af(0x173)](_0x4e691e,_0x23dcc9);},'sOzbK':_0x687037[_0x238dff(0x1ab)]};_0x330dcb&&_0x687037['rvOxi'](_0x33e2c3,_0x330dcb),_0x5480b2['readEntry'](),_0x5480b2['on'](_0x687037['kzWdr'],_0x52ed61=>{const _0x4f81a4=_0x238dff;if(/\/$/[_0x4f81a4(0x19b)](_0x52ed61[_0x4f81a4(0x168)]))_0x5480b2['readEntry']();else{const _0x197f6f=fs['createWriteStream'](path[_0x4f81a4(0x161)](_0x5d5960,_0x52ed61[_0x4f81a4(0x168)]));_0x5480b2[_0x4f81a4(0x1c0)](_0x52ed61,function(_0x4cda42,_0x5680aa){const _0x3e71eb=_0x4f81a4;_0x4cda42&&_0x5e21c1[_0x3e71eb(0x162)](_0x33e2c3,_0x330dcb),_0x5680aa['on'](_0x5e21c1[_0x3e71eb(0x17e)],function(){const _0x4eef3d=_0x3e71eb;_0x197f6f['close'](),_0x5480b2[_0x4eef3d(0x1a6)]();}),_0x5680aa['pipe'](_0x197f6f);}),_0x5e21c1[_0x4f81a4(0x19e)](_0x52ed61[_0x4f81a4(0x168)],_0x4e75c6)&&_0x5480b2[_0x4f81a4(0x1d7)]();}}),_0x5480b2['on'](_0x687037[_0x238dff(0x191)],_0x234e6e=>{const _0x3e54da=_0x238dff;_0x27e3a7[_0x3e54da(0x1af)](_0x33e2c3,_0x234e6e);}),_0x5480b2[_0x238dff(0x1dd)](_0x687037['RfKmP'],()=>{const _0x5ba68d=_0x238dff;fs[_0x5ba68d(0x172)](_0x558a54,_0x5e21c1[_0x5ba68d(0x18c)],function(_0x3c1f8e){const _0x122f8a=_0x5ba68d;_0x3c1f8e&&_0x5e21c1[_0x122f8a(0x162)](_0x33e2c3,_0x3c1f8e),_0x5e21c1[_0x122f8a(0x170)](_0x598e95,_0x558a54);}),_0x5480b2['close']();});});});})['on'](_0x3e98ed[_0x52672b(0x1cb)],function(_0x2431e9){const _0x51ec49=_0x52672b;logger[_0x51ec49(0x163)](_0x4a6573[_0x51ec49(0x175)],_0x2431e9),_0x4a6573[_0x51ec49(0x160)](_0x33e2c3,_0x2431e9);});});}#homedir(){const _0x40d69a=a69_0x4a502a,_0x5704f9={};_0x5704f9[_0x40d69a(0x185)]=function(_0x1a475d,_0x249c1b){return _0x1a475d===_0x249c1b;},_0x5704f9[_0x40d69a(0x1b3)]='function',_0x5704f9['pIRbp']=function(_0x4e3444,_0x57cf96){return _0x4e3444===_0x57cf96;},_0x5704f9[_0x40d69a(0x193)]='win32',_0x5704f9[_0x40d69a(0x1e5)]=function(_0x2ef4c0,_0x2e81cc){return _0x2ef4c0+_0x2e81cc;},_0x5704f9[_0x40d69a(0x1b9)]=function(_0x334530,_0x56388c){return _0x334530===_0x56388c;},_0x5704f9[_0x40d69a(0x169)]=_0x40d69a(0x19c),_0x5704f9[_0x40d69a(0x178)]=function(_0x3d6f13,_0x1a6e5e){return _0x3d6f13+_0x1a6e5e;},_0x5704f9[_0x40d69a(0x1c1)]='/Users/',_0x5704f9[_0x40d69a(0x196)]=function(_0x3473a8,_0x42e56a){return _0x3473a8===_0x42e56a;},_0x5704f9[_0x40d69a(0x1be)]=_0x40d69a(0x1e4),_0x5704f9[_0x40d69a(0x1b7)]=function(_0x400ab0,_0xc28264){return _0x400ab0===_0xc28264;},_0x5704f9[_0x40d69a(0x19d)]=_0x40d69a(0x1a1),_0x5704f9[_0x40d69a(0x1db)]=_0x40d69a(0x177),_0x5704f9[_0x40d69a(0x1dc)]=function(_0x16493e,_0x1b8359){return _0x16493e||_0x1b8359;};const _0x3e1822=_0x5704f9;if(_0x3e1822[_0x40d69a(0x185)](typeof os[_0x40d69a(0x1d3)],_0x3e1822[_0x40d69a(0x1b3)]))return os['homedir']();const _0x5f0a39=process['env'],_0x5a15ce=_0x5f0a39[_0x40d69a(0x16c)],_0x23d146=_0x5f0a39['LOGNAME']||_0x5f0a39[_0x40d69a(0x165)]||_0x5f0a39[_0x40d69a(0x18b)]||_0x5f0a39[_0x40d69a(0x1aa)];if(_0x3e1822[_0x40d69a(0x1ad)](process[_0x40d69a(0x1e3)],_0x3e1822['HjftN']))return _0x5f0a39['USERPROFILE']||_0x3e1822[_0x40d69a(0x1e5)](_0x5f0a39[_0x40d69a(0x1e2)],_0x5f0a39[_0x40d69a(0x1a8)])||_0x5a15ce||null;if(_0x3e1822['xMuIS'](process[_0x40d69a(0x1e3)],_0x3e1822[_0x40d69a(0x169)]))return _0x5a15ce||(_0x23d146?_0x3e1822[_0x40d69a(0x178)](_0x3e1822[_0x40d69a(0x1c1)],_0x23d146):null);if(_0x3e1822[_0x40d69a(0x196)](process['platform'],_0x3e1822[_0x40d69a(0x1be)]))return _0x5a15ce||(_0x3e1822[_0x40d69a(0x1b7)](process[_0x40d69a(0x1de)](),0x0)?_0x3e1822[_0x40d69a(0x19d)]:_0x23d146?_0x3e1822[_0x40d69a(0x178)](_0x3e1822[_0x40d69a(0x1db)],_0x23d146):null);return _0x3e1822['HWkxU'](_0x5a15ce,null);}}module[a69_0x4a502a(0x164)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a70_0x396959=a70_0x58e0;(function(_0x1f796d,_0x447e18){var _0x2d10e0=a70_0x58e0,_0xcd0cf7=_0x1f796d();while(!![]){try{var _0x29132f=-parseInt(_0x2d10e0(0x106))/0x1+parseInt(_0x2d10e0(0x10c))/0x2+-parseInt(_0x2d10e0(0x109))/0x3+-parseInt(_0x2d10e0(0x112))/0x4*(parseInt(_0x2d10e0(0x113))/0x5)+parseInt(_0x2d10e0(0x107))/0x6*(parseInt(_0x2d10e0(0x110))/0x7)+-parseInt(_0x2d10e0(0x10e))/0x8*(-parseInt(_0x2d10e0(0x10b))/0x9)+parseInt(_0x2d10e0(0x108))/0xa*(parseInt(_0x2d10e0(0x10a))/0xb);if(_0x29132f===_0x447e18)break;else _0xcd0cf7['push'](_0xcd0cf7['shift']());}catch(_0x28adbc){_0xcd0cf7['push'](_0xcd0cf7['shift']());}}}(a70_0x9b73,0x969c1));class PercyCaptureMap{#map={};[a70_0x396959(0x111)](_0x4e5a30,_0x4bc5c2){!this.#map[_0x4e5a30]&&(this.#map[_0x4e5a30]={}),!this.#map[_0x4e5a30][_0x4bc5c2]&&(this.#map[_0x4e5a30][_0x4bc5c2]=0x0),this.#map[_0x4e5a30][_0x4bc5c2]++;}[a70_0x396959(0x10d)](_0x4909fe,_0x20b530){var _0x12433f=a70_0x396959;return _0x4909fe+'-'+_0x20b530+'-'+this[_0x12433f(0x10f)](_0x4909fe,_0x20b530);}[a70_0x396959(0x10f)](_0x76fbf5,_0x2d9bca){if(!this.#map[_0x76fbf5])return 0x0;if(!this.#map[_0x76fbf5][_0x2d9bca])return 0x0;return this.#map[_0x76fbf5][_0x2d9bca];}}function a70_0x58e0(_0x3f094d,_0x27bb2c){var _0x9b73a5=a70_0x9b73();return a70_0x58e0=function(_0x58e044,_0x8e839d){_0x58e044=_0x58e044-0x106;var _0x43f176=_0x9b73a5[_0x58e044];return _0x43f176;},a70_0x58e0(_0x3f094d,_0x27bb2c);}module['exports']=PercyCaptureMap;function a70_0x9b73(){var _0x34ed83=['get','7151585iSmYfm','increment','671156bjdOeS','5hvOFxH','671111RAkugm','6OOUvDl','10520UavuEU','1039194JMWQJx','5137MnSCaE','1064358HmoEbI','341988ULQTwy','getName','8gTMgUq'];a70_0x9b73=function(){return _0x34ed83;};return a70_0x9b73();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a71_0x5e02b9=a71_0x2c2b;(function(_0x2920e7,_0x5735e8){var _0x3d9aff=a71_0x2c2b,_0x5eafa5=_0x2920e7();while(!![]){try{var _0x31e219=-parseInt(_0x3d9aff(0x1e0))/0x1*(-parseInt(_0x3d9aff(0x1e7))/0x2)+-parseInt(_0x3d9aff(0x1eb))/0x3+-parseInt(_0x3d9aff(0x1e6))/0x4+-parseInt(_0x3d9aff(0x1f0))/0x5*(parseInt(_0x3d9aff(0x1e3))/0x6)+parseInt(_0x3d9aff(0x1e4))/0x7*(-parseInt(_0x3d9aff(0x1e2))/0x8)+-parseInt(_0x3d9aff(0x1ee))/0x9+parseInt(_0x3d9aff(0x1ef))/0xa*(parseInt(_0x3d9aff(0x1ed))/0xb);if(_0x31e219===_0x5735e8)break;else _0x5eafa5['push'](_0x5eafa5['shift']());}catch(_0x5df22e){_0x5eafa5['push'](_0x5eafa5['shift']());}}}(a71_0x1f66,0x24659));function a71_0x1f66(){var _0x2f9d1d=['289269oQbWmL','3657310wHiTrk','5jrYBHl','element','click','118okdgSG','driver','26152znzVWX','109374NLMpuj','245qoAUOT','auto','466056khyniZ','3348uMjEOw','screenshot','sendKeys','testcase','398649PPgUjS','takeScreenshot','11SgWFvq'];a71_0x1f66=function(){return _0x2f9d1d;};return a71_0x1f66();}var a71_0x1f5ec1={};a71_0x1f5ec1[a71_0x5e02b9(0x1e1)]=[a71_0x5e02b9(0x1ec)],a71_0x1f5ec1[a71_0x5e02b9(0x1de)]=['click',a71_0x5e02b9(0x1e9)];var a71_0xfb5140={};a71_0xfb5140[a71_0x5e02b9(0x1e1)]=[a71_0x5e02b9(0x1ec)];var a71_0x81c261={};function a71_0x2c2b(_0x5f49b3,_0x5f40d3){var _0x1f66e1=a71_0x1f66();return a71_0x2c2b=function(_0x2c2bd6,_0x5f08df){_0x2c2bd6=_0x2c2bd6-0x1de;var _0x307d9d=_0x1f66e1[_0x2c2bd6];return _0x307d9d;},a71_0x2c2b(_0x5f49b3,_0x5f40d3);}a71_0x81c261[a71_0x5e02b9(0x1de)]=['click'];var a71_0x9fe6ab={};a71_0x9fe6ab[a71_0x5e02b9(0x1e5)]=a71_0x1f5ec1,a71_0x9fe6ab[a71_0x5e02b9(0x1e8)]=a71_0xfb5140,a71_0x9fe6ab[a71_0x5e02b9(0x1df)]=a71_0x81c261,a71_0x9fe6ab[a71_0x5e02b9(0x1ea)]={},a71_0x9fe6ab['manual']={},module['exports']=a71_0x9fe6ab;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a72_0x4846(){const _0x23c8f0=['platformIndex','197090VqtfMp','../performance-tester','Unsupported\x20driver\x20for\x20percy','emlYz','Kwhtp','thTestCaseExecutionId','percy:snapshot','FsTfW','../../helpers/testhub/utils','dflMz','201843LJVxnY','26951460UhSCdk','1204gSlSLU','uuid','../logger','4638aIcDYa','@percy/selenium-webdriver','name','winstonLogger','JLWYm','9idBRhZ','percy:screenshot-app','gXylS','628udAsjv','percy:screenshot','1137966MoFRwM','screenshotApp','9808168XdZiPa','browserstackPercyBestPlatform','browserstackPlatformIndex','testCase','error','apply','measure','kHOKl','cygoC','length','22YjOSEf','1WlCJEB','130UaQEeq','CQcvW'];a72_0x4846=function(){return _0x23c8f0;};return a72_0x4846();}const a72_0x43c3e1=a72_0x2964;(function(_0x49f614,_0x39bbaf){const _0x909fb9=a72_0x2964,_0x11aad5=_0x49f614();while(!![]){try{const _0x118c00=-parseInt(_0x909fb9(0xcf))/0x1*(parseInt(_0x909fb9(0xc2))/0x2)+parseInt(_0x909fb9(0xdd))/0x3+-parseInt(_0x909fb9(0xc0))/0x4*(-parseInt(_0x909fb9(0xd0))/0x5)+-parseInt(_0x909fb9(0xe2))/0x6*(-parseInt(_0x909fb9(0xdf))/0x7)+-parseInt(_0x909fb9(0xc4))/0x8*(parseInt(_0x909fb9(0xbd))/0x9)+-parseInt(_0x909fb9(0xd3))/0xa*(parseInt(_0x909fb9(0xce))/0xb)+parseInt(_0x909fb9(0xde))/0xc;if(_0x118c00===_0x39bbaf)break;else _0x11aad5['push'](_0x11aad5['shift']());}catch(_0x11f532){_0x11aad5['push'](_0x11aad5['shift']());}}}(a72_0x4846,0x965ac));const tryRequire=function(_0x10b0f8,_0x275add){const _0x511897=a72_0x2964,_0x26d6d0={'emlYz':function(_0x41f8c6,_0x8345c3){return _0x41f8c6(_0x8345c3);}};try{return _0x26d6d0[_0x511897(0xd6)](require,_0x10b0f8);}catch{return _0x275add;}},percySnapshot=tryRequire(a72_0x43c3e1(0xe3),null),{percyScreenshot}=tryRequire(a72_0x43c3e1(0xe3),{}),percyAppScreenshot=require('@percy/appium-app'),{getCurrentTestData}=require(a72_0x43c3e1(0xdb)),PerformanceTester=require(a72_0x43c3e1(0xd4)),logger=require(a72_0x43c3e1(0xe1))[a72_0x43c3e1(0xbb)];percySnapshot&&(exports['snapshot']=async function(){const _0x458909=a72_0x43c3e1,_0x382ce3={'gXylS':function(_0x2b9a1e,_0x2f5030){return _0x2b9a1e!==_0x2f5030;},'HHCDr':function(_0x38e236,_0x5f0183){return _0x38e236>=_0x5f0183;},'Kwhtp':function(_0x44337f){return _0x44337f();},'FsTfW':_0x458909(0xd9)};if(global['browserstackPlatformIndex']&&_0x382ce3[_0x458909(0xbf)](global[_0x458909(0xc6)],global[_0x458909(0xc5)]))return;const _0x35a073=_0x382ce3['HHCDr'](arguments[_0x458909(0xcd)],0x2)?arguments[0x1]:'',_0x20db2f=_0x382ce3[_0x458909(0xd7)](getCurrentTestData),_0xe637f0={};return _0xe637f0[_0x458909(0xba)]=_0x35a073,_0xe637f0['testCase']=_0x20db2f[_0x458909(0xba)]||'',_0xe637f0[_0x458909(0xd8)]=_0x20db2f[_0x458909(0xe0)]||'',_0xe637f0['platformIndex']=global[_0x458909(0xc6)],await PerformanceTester[_0x458909(0xca)](_0x382ce3[_0x458909(0xda)],()=>percySnapshot[_0x458909(0xc9)](null,arguments),_0xe637f0);});function a72_0x2964(_0x3b3e97,_0x282fdc){const _0x484620=a72_0x4846();return a72_0x2964=function(_0x296447,_0x38cb92){_0x296447=_0x296447-0xba;let _0x42d9d4=_0x484620[_0x296447];return _0x42d9d4;},a72_0x2964(_0x3b3e97,_0x282fdc);}percyScreenshot?exports['screenshot']=async function(){const _0x56e463=a72_0x43c3e1,_0x14116e={'kHOKl':function(_0x19ecbd,_0x1ee5c6){return _0x19ecbd>=_0x1ee5c6;},'ejwFi':function(_0x2076ea){return _0x2076ea();},'weTGx':_0x56e463(0xc1)},_0x186364=_0x14116e[_0x56e463(0xcb)](arguments[_0x56e463(0xcd)],0x2)?arguments[0x1]:'',_0x56c79f=_0x14116e['ejwFi'](getCurrentTestData),_0x21db8f={};return _0x21db8f[_0x56e463(0xba)]=_0x186364,_0x21db8f[_0x56e463(0xc7)]=_0x56c79f[_0x56e463(0xba)]||'',_0x21db8f[_0x56e463(0xd8)]=_0x56c79f[_0x56e463(0xe0)]||'',_0x21db8f[_0x56e463(0xd2)]=global[_0x56e463(0xc6)],await PerformanceTester[_0x56e463(0xca)](_0x14116e['weTGx'],()=>percyScreenshot['apply'](null,arguments),_0x21db8f);}:exports['screenshot']=()=>{const _0x3711ce=a72_0x43c3e1,_0x5006ea={};_0x5006ea[_0x3711ce(0xd1)]=_0x3711ce(0xd5);const _0x1afe83=_0x5006ea;logger[_0x3711ce(0xc8)](_0x1afe83['CQcvW']);};exports[a72_0x43c3e1(0xc3)]=async function(){const _0x5eb1a8=a72_0x43c3e1,_0x7c9fb1={'cygoC':function(_0x35a7b7,_0x20fc26){return _0x35a7b7>=_0x20fc26;},'JLWYm':function(_0x20fb49){return _0x20fb49();},'dflMz':_0x5eb1a8(0xbe)},_0x4df6b7=_0x7c9fb1[_0x5eb1a8(0xcc)](arguments[_0x5eb1a8(0xcd)],0x2)?arguments[0x1]:'',_0x56edae=_0x7c9fb1[_0x5eb1a8(0xbc)](getCurrentTestData),_0x1b406e={};return _0x1b406e[_0x5eb1a8(0xba)]=_0x4df6b7,_0x1b406e[_0x5eb1a8(0xc7)]=_0x56edae[_0x5eb1a8(0xba)]||'',_0x1b406e[_0x5eb1a8(0xd8)]=_0x56edae[_0x5eb1a8(0xe0)]||'',_0x1b406e['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester[_0x5eb1a8(0xca)](_0x7c9fb1[_0x5eb1a8(0xdc)],()=>percyAppScreenshot[_0x5eb1a8(0xc9)](null,arguments),_0x1b406e);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a73_0x4ef6eb=a73_0x1cb9;function a73_0x1cb9(_0x5da342,_0x39ece7){var _0x1d7de5=a73_0x1d7d();return a73_0x1cb9=function(_0x1cb9a3,_0x2ec477){_0x1cb9a3=_0x1cb9a3-0x78;var _0x517665=_0x1d7de5[_0x1cb9a3];return _0x517665;},a73_0x1cb9(_0x5da342,_0x39ece7);}function a73_0x1d7d(){var _0x4d0ee8=['1774786MnEoHq','499192zeZGvi','./Percy','728184jRhPEr','6117cOhYZd','12MVnlIq','329350YAZTry','exports','99xfxmXA','65oxYOGy','7OuDExq','4184CjbbWq','206XDdaTW','9CziQWW','117356BzKCnZ'];a73_0x1d7d=function(){return _0x4d0ee8;};return a73_0x1d7d();}(function(_0x513588,_0x120d63){var _0x5b2479=a73_0x1cb9,_0x138a4d=_0x513588();while(!![]){try{var _0x1e4f0f=-parseInt(_0x5b2479(0x79))/0x1+parseInt(_0x5b2479(0x86))/0x2*(-parseInt(_0x5b2479(0x7e))/0x3)+parseInt(_0x5b2479(0x85))/0x4*(-parseInt(_0x5b2479(0x83))/0x5)+-parseInt(_0x5b2479(0x7d))/0x6*(-parseInt(_0x5b2479(0x84))/0x7)+-parseInt(_0x5b2479(0x7b))/0x8*(parseInt(_0x5b2479(0x78))/0x9)+parseInt(_0x5b2479(0x80))/0xa*(parseInt(_0x5b2479(0x82))/0xb)+parseInt(_0x5b2479(0x7f))/0xc*(parseInt(_0x5b2479(0x7a))/0xd);if(_0x1e4f0f===_0x120d63)break;else _0x138a4d['push'](_0x138a4d['shift']());}catch(_0x171c77){_0x138a4d['push'](_0x138a4d['shift']());}}}(a73_0x1d7d,0x24d93),module[a73_0x4ef6eb(0x81)]=require(a73_0x4ef6eb(0x7c)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a74_0xc8a6(_0x11121f,_0x213a77){const _0x53be03=a74_0x53be();return a74_0xc8a6=function(_0xc8a663,_0x195cbc){_0xc8a663=_0xc8a663-0x95;let _0x28aa46=_0x53be03[_0xc8a663];return _0x28aa46;},a74_0xc8a6(_0x11121f,_0x213a77);}const a74_0x4be4ec=a74_0xc8a6;(function(_0x566976,_0x1514e9){const _0x26749f=a74_0xc8a6,_0x4ae049=_0x566976();while(!![]){try{const _0xdda60d=-parseInt(_0x26749f(0xbb))/0x1+-parseInt(_0x26749f(0xc5))/0x2*(-parseInt(_0x26749f(0xaf))/0x3)+-parseInt(_0x26749f(0xd1))/0x4*(-parseInt(_0x26749f(0xcb))/0x5)+-parseInt(_0x26749f(0x96))/0x6*(parseInt(_0x26749f(0xb1))/0x7)+-parseInt(_0x26749f(0x95))/0x8+parseInt(_0x26749f(0xd8))/0x9*(-parseInt(_0x26749f(0xa8))/0xa)+-parseInt(_0x26749f(0x9a))/0xb*(-parseInt(_0x26749f(0xb8))/0xc);if(_0xdda60d===_0x1514e9)break;else _0x4ae049['push'](_0x4ae049['shift']());}catch(_0x136ef4){_0x4ae049['push'](_0x4ae049['shift']());}}}(a74_0x53be,0x6c319));const Percy=require(a74_0x4be4ec(0xc1)),PercySDK=require(a74_0x4be4ec(0xbe)),PercyCaptureModes=require('./PercyCaptureModes'),PercyCaptureMap=require(a74_0x4be4ec(0xbf)),logger=require('../logger')[a74_0x4be4ec(0xab)],helper=require('../helper'),PerformanceTester=require(a74_0x4be4ec(0xb0));exports[a74_0x4be4ec(0xa7)]=PerformanceTester['measureWrapper']('percy:start',async _0x19d275=>{const _0x1d7f05=a74_0x4be4ec,_0x891814={};_0x891814[_0x1d7f05(0xac)]=_0x1d7f05(0xb9);const _0x58b0a3=_0x891814;logger[_0x1d7f05(0xa9)](_0x58b0a3[_0x1d7f05(0xac)]);const _0x4afaa8=new Percy(_0x19d275),_0x7befd=await _0x4afaa8['start']();if(_0x7befd)return _0x4afaa8;return null;}),exports[a74_0x4be4ec(0xd3)]=PerformanceTester['measureWrapper'](a74_0x4be4ec(0xad),async _0x555649=>{const _0x2c95dd=a74_0x4be4ec,_0x13692d={};_0x13692d[_0x2c95dd(0xd9)]=_0x2c95dd(0xb3);const _0x5df608=_0x13692d;return logger[_0x2c95dd(0xa9)](_0x5df608[_0x2c95dd(0xd9)]),_0x555649[_0x2c95dd(0xda)]();}),exports['getBestPlatformForPercySnapshot']=_0x4a57de=>{const _0x32508f=a74_0x4be4ec,_0x24ea25={};_0x24ea25[_0x32508f(0xc2)]=function(_0x17e97c,_0x2c9c85){return _0x17e97c<_0x2c9c85;};const _0x54bdb9=_0x24ea25,_0x3f1aa1={};_0x3f1aa1[_0x32508f(0x9e)]=0x0,_0x3f1aa1[_0x32508f(0x9c)]=0x1,_0x3f1aa1[_0x32508f(0xa4)]=0x2,_0x3f1aa1['safari']=0x3;const _0x1ff75d=_0x3f1aa1;return _0x4a57de[_0x32508f(0xca)]((_0x1c4b64,_0x225b51,_0x590c1f)=>{const _0x596300=_0x32508f,_0x35f3c2=_0x4a57de[_0x1c4b64];if(_0x225b51['deviceName'])return _0x1c4b64;if(_0x35f3c2[_0x596300(0xd5)])return _0x590c1f;const _0x2f562f=_0x225b51[_0x596300(0xd0)]?_0x225b51[_0x596300(0xd0)]:_0x225b51['browserName'];if(_0x2f562f&&_0x54bdb9[_0x596300(0xc2)](_0x1ff75d[_0x2f562f['toLowerCase']()],_0x1ff75d[_0x2f562f[_0x596300(0xd7)]()]))return _0x590c1f;return _0x1c4b64;},0x0);},exports[a74_0x4be4ec(0xc6)]=async(_0x5d4fa1,_0x5e4adf,_0x2b50a7)=>{const _0x3f5c24=a74_0x4be4ec,_0x2687ab={};_0x2687ab[_0x3f5c24(0xd2)]=_0x3f5c24(0xc7);const _0x150809=_0x2687ab,_0x459594=_0x5d4fa1[_0x3f5c24(0xcc)];if(helper[_0x3f5c24(0xb2)](_0x5d4fa1['browserstackSessionName'])){logger['debug'](_0x150809[_0x3f5c24(0xd2)]);return;}const _0x24cd10=_0x459594['getName'](_0x5d4fa1[_0x3f5c24(0x97)],_0x5e4adf);_0x2b50a7[_0x3f5c24(0xc8)]?await PercySDK[_0x3f5c24(0xa2)](_0x5d4fa1,_0x24cd10):await PercySDK[_0x3f5c24(0x9b)](_0x5d4fa1,_0x24cd10),_0x459594[_0x3f5c24(0xba)](_0x5d4fa1[_0x3f5c24(0x97)],_0x5e4adf);},exports[a74_0x4be4ec(0x9d)]=(_0xcf77fb,_0xcc7252,_0x7eb1d5)=>{const _0xade7f2=a74_0x4be4ec,_0x113539={};_0x113539[_0xade7f2(0xa1)]=_0xade7f2(0xa3),_0x113539['mPyhK']=_0xade7f2(0xc3),_0x113539[_0xade7f2(0x99)]=function(_0xca6153,_0x3dc52c){return _0xca6153!==_0x3dc52c;},_0x113539['DuVDT']='manual';const _0x2d3fd7=_0x113539;if(!helper[_0xade7f2(0x98)](_0x7eb1d5,[_0x2d3fd7[_0xade7f2(0xa1)],_0x2d3fd7['mPyhK']]))return;if(_0x7eb1d5[_0xade7f2(0xa3)][_0xade7f2(0xc3)]&&_0x7eb1d5[_0xade7f2(0xa3)][_0xade7f2(0xa5)]&&_0x2d3fd7[_0xade7f2(0x99)](_0x7eb1d5[_0xade7f2(0xa3)][_0xade7f2(0xa5)],_0x2d3fd7[_0xade7f2(0xd4)])&&!_0xcf77fb[_0xade7f2(0xcc)]){global['browserstackSessionName']&&(_0xcf77fb['browserstackSessionName']=global[_0xade7f2(0x97)]),_0xcf77fb[_0xade7f2(0xcc)]=new PercyCaptureMap();const _0x26ae91=PercyCaptureModes[_0x7eb1d5['browserStackPercyOptions'][_0xade7f2(0xa5)]];_0x26ae91['driver']&&_0x26ae91[_0xade7f2(0xc0)][_0xade7f2(0xcf)](_0x5c0284=>this[_0xade7f2(0xbd)](_0xcf77fb,_0x5c0284,_0x7eb1d5)),_0x26ae91['element']&&_0x26ae91[_0xade7f2(0xc4)][_0xade7f2(0xcf)](_0x578e97=>{const _0x8387de=_0xade7f2;if(_0xcc7252['prototype']['patch'+_0x578e97])return;_0xcc7252[_0x8387de(0xbc)]['patch'+_0x578e97]=!![];const _0x5eb70c=_0xcc7252[_0x8387de(0xbc)][_0x578e97];_0xcc7252[_0x8387de(0xbc)][_0x578e97]=async function(){const _0x17d122=_0x8387de;let _0x1f4093=_0x5eb70c[_0x17d122(0xce)](this,arguments);_0x1f4093&&_0x1f4093[_0x17d122(0xb6)]&&(_0x1f4093=await _0x1f4093);try{const _0x329493=this[_0x17d122(0xae)]();await exports['percyAutoCapture'](_0x329493,_0x578e97,_0x7eb1d5);}catch(_0x57491b){logger[_0x17d122(0xb7)](_0x17d122(0x9f)+_0x578e97+'\x20for\x20percy\x20'+_0x57491b);}return _0x1f4093;};});}},exports[a74_0x4be4ec(0xbd)]=function(_0x559458,_0x2af252,_0x1d6a2e){const _0xb3258d=a74_0x4be4ec,_0x46fdce={};_0x46fdce[_0xb3258d(0xd6)]=function(_0x2d25db,_0x4d7d03){return _0x2d25db+_0x4d7d03;},_0x46fdce[_0xb3258d(0xcd)]='patch',_0x46fdce[_0xb3258d(0xa0)]=_0xb3258d(0xaa);const _0x42ea74=_0x46fdce,_0x483be5=_0x42ea74['BDLNp'](_0x42ea74[_0xb3258d(0xcd)],_0x2af252),_0x5ab9bc=_0x42ea74[_0xb3258d(0xd6)](_0x42ea74[_0xb3258d(0xa0)],_0x2af252),_0x1f477d=this;if(_0x559458[_0x483be5]||!_0x559458[_0x2af252])return;_0x559458[_0x483be5]=!![],_0x559458[_0x5ab9bc]=_0x559458[_0x2af252],_0x559458[_0x2af252]=async()=>{const _0x407f23=_0xb3258d;try{await _0x1f477d[_0x407f23(0xc6)](_0x559458,_0x2af252,_0x1d6a2e);}catch(_0x121b57){logger[_0x407f23(0xb7)](_0x407f23(0x9f)+_0x2af252+_0x407f23(0xb4)+_0x121b57);}return await _0x559458[_0x5ab9bc]['apply'](_0x559458,arguments);};},exports[a74_0x4be4ec(0xb5)]=_0x21c479=>{const _0x2a752c=a74_0x4be4ec,_0xc7084c={};_0xc7084c[_0x2a752c(0xc3)]=_0x21c479[_0x2a752c(0xc3)],_0xc7084c[_0x2a752c(0xa5)]=_0x21c479[_0x2a752c(0xa5)];const _0xc1509d=_0xc7084c;_0x21c479[_0x2a752c(0xc3)]&&(_0xc1509d[_0x2a752c(0xa6)]=exports['getBestPlatformForPercySnapshot'](_0x21c479[_0x2a752c(0xc9)]));;return _0xc1509d;};function a74_0x53be(){const _0x1f5f32=['jOtlX','percy:stop','getDriver','2144253dsPWod','../performance-tester','176834LpyCNQ','isUndefined','Stopping\x20percy','\x20for\x20percy\x20','getPercyOptions','then','error','108cdvPuh','Starting\x20percy','increment','26616WBPkpy','prototype','overrideXforPercy','./PercySDK','./PercyCaptureMap','driver','./Percy','eSkAP','percy','element','2gXsSny','percyAutoCapture','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','app','platforms','reduce','21795ArhzPV','browserstackPercyMap','UsSTQ','apply','forEach','browser','592NMMsIo','dVdlx','stopPercy','DuVDT','deviceName','BDLNp','toLowerCase','342fMWBwj','cvpmk','stop','3248328rdHiTZ','24ppOaLp','browserstackSessionName','nestedKeyValue','OzUJF','212465HfVIaR','screenshot','firefox','patchDriverPercy','chrome','Error\x20patching\x20','wVqar','xCwDP','screenshotApp','browserStackPercyOptions','edge','percyCaptureMode','browserstackPercyBestPlatform','startPercy','146540vDUKgp','debug','init','winstonLogger'];a74_0x53be=function(){return _0x1f5f32;};return a74_0x53be();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a75_0x2c73(_0x4ea5e5,_0x52956){const _0x2a59bb=a75_0x2a59();return a75_0x2c73=function(_0x2c7345,_0xcacc1){_0x2c7345=_0x2c7345-0x1ba;let _0x20baf7=_0x2a59bb[_0x2c7345];return _0x20baf7;},a75_0x2c73(_0x4ea5e5,_0x52956);}const a75_0x1afd9a=a75_0x2c73;(function(_0x5d110c,_0x19e6a3){const _0x3241e4=a75_0x2c73,_0x31d69d=_0x5d110c();while(!![]){try{const _0x4816b4=parseInt(_0x3241e4(0x1cf))/0x1+parseInt(_0x3241e4(0x1c7))/0x2*(-parseInt(_0x3241e4(0x22a))/0x3)+-parseInt(_0x3241e4(0x229))/0x4+parseInt(_0x3241e4(0x1f0))/0x5+parseInt(_0x3241e4(0x21a))/0x6*(-parseInt(_0x3241e4(0x1de))/0x7)+parseInt(_0x3241e4(0x1e8))/0x8*(-parseInt(_0x3241e4(0x1f4))/0x9)+parseInt(_0x3241e4(0x210))/0xa;if(_0x4816b4===_0x19e6a3)break;else _0x31d69d['push'](_0x31d69d['shift']());}catch(_0x3630cc){_0x31d69d['push'](_0x31d69d['shift']());}}}(a75_0x2a59,0x3e28a));const fs=require('fs'),{performance,PerformanceObserver}=require(a75_0x1afd9a(0x1c9)),{sleep,debug}=require(a75_0x1afd9a(0x22b)),path=require(a75_0x1afd9a(0x203)),logger=require(a75_0x1afd9a(0x1c6))['winstonLogger'];class PerformanceTester{static ['_observer'];static [a75_0x1afd9a(0x1f5)]=[];static [a75_0x1afd9a(0x221)]=[];static [a75_0x1afd9a(0x1e6)]=[];static [a75_0x1afd9a(0x1e1)]=![];static ['jsonReportFileName']=a75_0x1afd9a(0x1c3);static ['errorReportFileName']=a75_0x1afd9a(0x1cb);static['startMonitoring'](_0x137934=a75_0x1afd9a(0x1c3),_0x4026e4='error-report.json'){const _0x4119cc=a75_0x1afd9a,_0x1d94a2={};_0x1d94a2[_0x4119cc(0x1db)]=function(_0x13622f,_0x46bc02){return _0x13622f===_0x46bc02;},_0x1d94a2[_0x4119cc(0x1e9)]='measure',_0x1d94a2[_0x4119cc(0x1d7)]='function';const _0x56f377=_0x1d94a2;if(this['started']||!this[_0x4119cc(0x21e)]())return;this[_0x4119cc(0x1f6)]=new PerformanceObserver(_0x534591=>{const _0x7eb020=_0x4119cc,_0x135d0a={'Jrrcw':function(_0xb6ccff,_0x195364){const _0x2a5c38=a75_0x2c73;return _0x56f377[_0x2a5c38(0x1db)](_0xb6ccff,_0x195364);},'yuODJ':_0x56f377['qgIhX']};_0x534591[_0x7eb020(0x216)]()[_0x7eb020(0x1fd)](_0x15f503=>{const _0x1f9ba9=_0x7eb020;_0x135d0a[_0x1f9ba9(0x231)](_0x15f503['entryType'],_0x135d0a[_0x1f9ba9(0x1bc)])?this[_0x1f9ba9(0x221)]['push'](_0x15f503):this['_events']['push'](_0x15f503);});});const _0x26cf38={};_0x26cf38[_0x4119cc(0x1f9)]=!![],_0x26cf38[_0x4119cc(0x1e2)]=[_0x56f377[_0x4119cc(0x1d7)],_0x56f377['qgIhX']],this[_0x4119cc(0x1f6)][_0x4119cc(0x1bd)](_0x26cf38),this[_0x4119cc(0x1e1)]=!![],this[_0x4119cc(0x214)]=_0x137934,this['errorReportFileName']=_0x4026e4;}static[a75_0x1afd9a(0x20f)](){return performance;}static['calculateTimeFromEvents'](_0x41ebfb,_0x4c9638){const _0x15d378=a75_0x1afd9a,_0x4554aa={};_0x4554aa[_0x15d378(0x228)]=function(_0x26b822,_0x2810c2){return _0x26b822+_0x2810c2;},_0x4554aa[_0x15d378(0x1eb)]=function(_0x237e2a,_0x1843b4){return _0x237e2a||_0x1843b4;},_0x4554aa[_0x15d378(0x1d5)]=function(_0x46ae9e,_0x3f8f63){return _0x46ae9e===_0x3f8f63;};const _0x264e40=_0x4554aa,_0x492abd={};if(!_0x41ebfb||_0x264e40[_0x15d378(0x1d5)](_0x41ebfb['length'],0x0))return;_0x41ebfb[_0x15d378(0x21c)](_0x174534=>{const _0x3a096c=_0x15d378;!_0x492abd[_0x174534['name']]&&(_0x492abd[_0x174534[_0x3a096c(0x1bb)]]=0x0),_0x492abd[_0x174534[_0x3a096c(0x1bb)]]+=_0x174534['duration'];});const _0x5ce303=_0x4c9638[_0x15d378(0x1da)]((_0xf3e0c7,_0x5209cf)=>{const _0x3d81d3=_0x15d378;return _0x264e40[_0x3d81d3(0x228)](_0x492abd[_0x5209cf],_0x264e40['ktppI'](_0xf3e0c7,0x0));},0x0);return _0x5ce303;}static async['calculateTimesFromMultipleFiles'](_0x55f593,_0x5cb808){const _0x1ba8df=a75_0x1afd9a,_0x2636a1={'gfLVw':function(_0x3c036c,_0x157451){return _0x3c036c+_0x157451;},'MjHDe':function(_0x5b9e51,_0x6d5924){return _0x5b9e51||_0x6d5924;},'SqxEm':function(_0x3431bf,_0x1159cd){return _0x3431bf===_0x1159cd;},'PoOPC':function(_0x4a26ee,_0x9ed62b){return _0x4a26ee(_0x9ed62b);}};if(!_0x55f593||_0x2636a1[_0x1ba8df(0x212)](_0x55f593['length'],0x0))return 0x0;const _0x204c92=[];for(const _0x496aa2 of _0x55f593){const _0x3296f2=path[_0x1ba8df(0x1d6)]('.',_0x496aa2);try{const _0x5a7638=this[_0x1ba8df(0x1c2)](_0x3296f2);_0x5a7638['map'](_0x536452=>{const _0x5a890b=_0x1ba8df;!_0x204c92[_0x536452[_0x5a890b(0x1bb)]]&&(_0x204c92[_0x536452[_0x5a890b(0x1bb)]]=0x0),_0x204c92[_0x536452[_0x5a890b(0x1bb)]]+=_0x536452['duration'];});}catch(_0x5d4fcd){_0x2636a1[_0x1ba8df(0x1ca)](debug,_0x1ba8df(0x1c1)+_0x5d4fcd[_0x1ba8df(0x22f)]());}}const _0x36c1e9=_0x5cb808[_0x1ba8df(0x1da)]((_0xcf70f5,_0x3e1a6b)=>{const _0x44a70e=_0x1ba8df;return _0x2636a1[_0x44a70e(0x217)](_0x204c92[_0x3e1a6b],_0x2636a1[_0x44a70e(0x1cc)](_0xcf70f5,0x0));},0x0);return _0x2636a1[_0x1ba8df(0x1ca)](debug,'Time\x20for\x20'+_0x5cb808+'\x20for\x20all\x20processes\x20is\x20'+_0x36c1e9),_0x36c1e9;}static[a75_0x1afd9a(0x1c2)](_0x2a7336){const _0x40157f=a75_0x1afd9a;if(!fs['existsSync'](_0x2a7336))return[];return JSON[_0x40157f(0x232)](fs['readFileSync'](_0x2a7336)['toString']());}static async[a75_0x1afd9a(0x1ea)](_0x3d420a='performance-own.html',_0x109105=null){const _0xe8c1d8=a75_0x1afd9a,_0x2324e0={'DsAuc':function(_0x5524d9,_0x4c7bad){return _0x5524d9(_0x4c7bad);},'thrql':function(_0x2654e6,_0x18979){return _0x2654e6(_0x18979);},'CGhxD':function(_0x5568cd,_0x15431f){return _0x5568cd(_0x15431f);}};if(!this[_0xe8c1d8(0x1e1)])return;await _0x2324e0[_0xe8c1d8(0x1f8)](sleep,0x1e),this[_0xe8c1d8(0x1f6)]['disconnect'](),this[_0xe8c1d8(0x1e1)]=![],this['generateJSON'](this[_0xe8c1d8(0x1f5)]);const _0x174057=this[_0xe8c1d8(0x1e0)](this[_0xe8c1d8(0x1f5)]),_0x4a479f=path[_0xe8c1d8(0x1d6)](process[_0xe8c1d8(0x1fb)](),_0x3d420a);fs[_0xe8c1d8(0x1ef)](_0x4a479f,_0x174057,_0x25fcc7=>{const _0x2bd1a5=_0xe8c1d8;if(_0x25fcc7){_0x2324e0[_0x2bd1a5(0x1ec)](debug,_0x2bd1a5(0x1ff)+_0x25fcc7[_0x2bd1a5(0x22f)]());return;}_0x2324e0[_0x2bd1a5(0x227)](debug,'Performance\x20report\x20is\x20at\x20'+_0x4a479f);});if(_0x109105)return this[_0xe8c1d8(0x1d2)](this[_0xe8c1d8(0x1f5)],_0x109105);}static[a75_0x1afd9a(0x1e0)](_0xa7ace8){const _0x25065b=a75_0x1afd9a,_0x538e4f={};_0x538e4f[_0x25065b(0x235)]=_0x25065b(0x1c0),_0x538e4f['RcNlz']='<h1>Performance\x20Report</h1>',_0x538e4f[_0x25065b(0x207)]=_0x25065b(0x1ba),_0x538e4f[_0x25065b(0x1ed)]='</tbody></table></body></html>';const _0x348201=_0x538e4f;let _0x1bbeb7=_0x348201['XETaK'];return _0x1bbeb7+=_0x348201[_0x25065b(0x1c4)],_0x1bbeb7+=_0x348201[_0x25065b(0x207)],_0xa7ace8['forEach'](_0xd22fbc=>{const _0x16f59e=_0x25065b;_0x1bbeb7+=_0x16f59e(0x1bf)+_0xd22fbc['name']+_0x16f59e(0x21d)+_0xd22fbc[_0x16f59e(0x1ee)]+'</td></tr>';}),_0x1bbeb7+=_0x348201['iAvhb'],_0x1bbeb7;}static[a75_0x1afd9a(0x1cd)](_0x5a001b){const _0x3acb1b=a75_0x1afd9a;if(!this[_0x3acb1b(0x214)])return;const _0x477878={};_0x5a001b[_0x3acb1b(0x21c)](_0x2c3cac=>{const _0x21416b=_0x3acb1b;!_0x477878[_0x2c3cac[_0x21416b(0x1bb)]]&&(_0x477878[_0x2c3cac[_0x21416b(0x1bb)]]=0x0),_0x477878[_0x2c3cac[_0x21416b(0x1bb)]]+=_0x2c3cac[_0x21416b(0x1ee)];});const _0x33b7f9=Object['entries'](_0x477878)[_0x3acb1b(0x21c)](([_0x5d6bb0,_0xaddc56])=>{const _0x1fe568=_0x3acb1b,_0x4d4e7e={};return _0x4d4e7e['name']=_0x5d6bb0,_0x4d4e7e[_0x1fe568(0x1ee)]=_0xaddc56,_0x4d4e7e;});fs[_0x3acb1b(0x1f7)](this['jsonReportFileName'],JSON[_0x3acb1b(0x1fc)](_0x33b7f9));}static[a75_0x1afd9a(0x21e)](){const _0x53d197=a75_0x1afd9a,_0x8a45c8={};_0x8a45c8['OfBgs']=function(_0x1b3d20,_0x16b3a4){return _0x1b3d20===_0x16b3a4;},_0x8a45c8[_0x53d197(0x20d)]=_0x53d197(0x220);const _0x1ba162=_0x8a45c8;return!_0x1ba162['OfBgs'](process['env'][_0x53d197(0x21f)],_0x1ba162[_0x53d197(0x20d)]);}static[a75_0x1afd9a(0x230)](_0x204f2e,_0xf00aab,_0x118e7a=null,_0x21c47a=null){const _0x4ac80a=a75_0x1afd9a,_0x471bc6={};_0x471bc6[_0x4ac80a(0x1fe)]=function(_0x39c15f,_0x2b46bc){return _0x39c15f+_0x2b46bc;},_0x471bc6[_0x4ac80a(0x1d3)]='-start',_0x471bc6[_0x4ac80a(0x224)]=function(_0x56e1cf,_0x1d1708){return _0x56e1cf+_0x1d1708;},_0x471bc6[_0x4ac80a(0x206)]='-end',_0x471bc6[_0x4ac80a(0x1df)]=function(_0x4b2576,_0x332b94){return _0x4b2576 instanceof _0x332b94;};const _0x55d199=_0x471bc6;try{if(this[_0x4ac80a(0x1e1)]&&this[_0x4ac80a(0x21e)]()){let _0x185296=_0x204f2e;_0x118e7a&&(_0x185296=_0x204f2e+'['+JSON['stringify'](_0x118e7a)+']');const _0xe50f73=_0x55d199[_0x4ac80a(0x1fe)](_0x185296,_0x55d199[_0x4ac80a(0x1d3)]),_0x568fbb=_0x55d199[_0x4ac80a(0x224)](_0x185296,_0x55d199[_0x4ac80a(0x206)]);performance[_0x4ac80a(0x1d0)](_0xe50f73);const _0x1a35e8=_0xf00aab[_0x4ac80a(0x1e7)](null,_0x21c47a);if(_0x55d199['obHPX'](_0x1a35e8,Promise))return new Promise((_0x37f4b5,_0x170391)=>{const _0x3db0d2=_0x4ac80a;_0x1a35e8[_0x3db0d2(0x20a)](_0x1f5f70=>_0x37f4b5(_0x1f5f70))[_0x3db0d2(0x1be)](_0x4665b8=>_0x170391(_0x4665b8))[_0x3db0d2(0x1dd)](()=>{const _0x58702c=_0x3db0d2;performance[_0x58702c(0x1d0)](_0x568fbb),performance[_0x58702c(0x230)](_0x185296,_0xe50f73,_0x568fbb);});});;return performance['mark'](_0x568fbb),performance['measure'](_0x185296,_0xe50f73,_0x568fbb),_0x1a35e8;};return _0xf00aab[_0x4ac80a(0x1e7)](null,_0x21c47a);}catch(_0x396a80){return _0xf00aab[_0x4ac80a(0x1e7)](null,_0x21c47a);}}static[a75_0x1afd9a(0x1c8)](_0x387115,_0x36f74b){const _0x276ef8=this;return function(){const _0x5a98b1=a75_0x2c73,_0x7c59ef=[_0x387115,_0x36f74b,null][_0x5a98b1(0x1d8)](arguments);return _0x276ef8['measure'][_0x5a98b1(0x1e7)](_0x276ef8,_0x7c59ef);};}static[a75_0x1afd9a(0x20c)](){const _0x33fe62=a75_0x1afd9a,_0x13d5c6={};_0x13d5c6[_0x33fe62(0x225)]=function(_0x50fb33,_0x3a6782){return _0x50fb33/_0x3a6782;},_0x13d5c6[_0x33fe62(0x204)]=function(_0x5e309f,_0x306bc9){return _0x5e309f+_0x306bc9;},_0x13d5c6[_0x33fe62(0x201)]=function(_0x37dbe6,_0x306433){return _0x37dbe6*_0x306433;},_0x13d5c6[_0x33fe62(0x222)]=function(_0x40b639,_0x9dc6e7){return _0x40b639+_0x9dc6e7;};const _0x10fd90=_0x13d5c6,_0x1f550d=/(^.*)\[(.*)\]$/,_0x2e310a={},_0x5f206d={};for(const _0x445ae1 of this[_0x33fe62(0x221)]){const _0xd76daf=_0x445ae1[_0x33fe62(0x1bb)][_0x33fe62(0x1f1)](_0x1f550d),_0xd8af04={};_0xd8af04[_0x33fe62(0x1bb)]=_0x445ae1[_0x33fe62(0x1bb)],_0xd8af04[_0x33fe62(0x1ee)]=_0x445ae1[_0x33fe62(0x1ee)]||0x0;const _0x333881=_0xd8af04;_0xd76daf&&(_0x333881[_0x33fe62(0x1bb)]=_0xd76daf[0x1],_0x333881[_0x33fe62(0x213)]=JSON[_0x33fe62(0x232)](_0xd76daf[0x2]));if(_0x2e310a[_0x333881['name']]){const _0x3b6538=_0x2e310a[_0x333881[_0x33fe62(0x1bb)]],_0xf4bb60=_0x5f206d[_0x333881['name']];_0x2e310a[_0x333881[_0x33fe62(0x1bb)]][_0x33fe62(0x1ee)]=_0x10fd90[_0x33fe62(0x225)](_0x10fd90['shSFr'](_0x10fd90[_0x33fe62(0x201)](_0x3b6538[_0x33fe62(0x1ee)],_0xf4bb60),_0x333881[_0x33fe62(0x1ee)]),_0x10fd90['GOSTv'](0x1,_0xf4bb60)),_0x5f206d[_0x333881[_0x33fe62(0x1bb)]]++;}else _0x2e310a[_0x333881[_0x33fe62(0x1bb)]]=_0x333881,_0x5f206d[_0x333881['name']]=0x1;}return Object['values'](_0x2e310a);}static[a75_0x1afd9a(0x1c5)](){const _0x4012c9=a75_0x1afd9a,_0x4e557f={};_0x4e557f[_0x4012c9(0x1e5)]=function(_0x32e7f8,_0x363d32){return _0x32e7f8===_0x363d32;},_0x4e557f[_0x4012c9(0x22e)]=function(_0x3f97b0,_0x31ef12){return _0x3f97b0+_0x31ef12;};const _0x17693e=_0x4e557f;if(_0x17693e[_0x4012c9(0x1e5)](this[_0x4012c9(0x221)][_0x4012c9(0x1ce)],0x0))return;const _0x17e5b4=this[_0x4012c9(0x20c)](),_0x411e54=JSON[_0x4012c9(0x1fc)](_0x17e5b4),_0x3405f7=_0x17693e[_0x4012c9(0x22e)](_0x411e54['slice'](0x1,-0x1),',');fs['appendFileSync'](this[_0x4012c9(0x214)],_0x3405f7);}static[a75_0x1afd9a(0x219)](){const _0x14676c=a75_0x1afd9a,_0x558b6e={};_0x558b6e[_0x14676c(0x1e4)]=function(_0x1c7c9a,_0x22eb2e){return _0x1c7c9a===_0x22eb2e;},_0x558b6e[_0x14676c(0x202)]=function(_0x101bf5,_0xbfd3cf){return _0x101bf5>_0xbfd3cf;};const _0x41e31c=_0x558b6e;if(!this[_0x14676c(0x1e1)]||_0x41e31c[_0x14676c(0x1e4)](this[_0x14676c(0x221)]['length'],0x0))return[];if(!fs['existsSync'](this[_0x14676c(0x214)]))return this[_0x14676c(0x221)];let _0x24337d=fs[_0x14676c(0x218)](this['jsonReportFileName'])[_0x14676c(0x22f)]();_0x24337d='['+_0x24337d[_0x14676c(0x22c)](0x0,-0x1)+']';let _0x4d20a5=JSON['parse'](_0x24337d);return _0x41e31c[_0x14676c(0x202)](this[_0x14676c(0x221)][_0x14676c(0x1ce)],0x0)&&(_0x4d20a5=_0x4d20a5['concat'](this[_0x14676c(0x20c)]())),this['_observer'][_0x14676c(0x1d4)](),fs[_0x14676c(0x223)](this[_0x14676c(0x214)]),_0x4d20a5;}static[a75_0x1afd9a(0x200)](){const _0x5663fa=a75_0x1afd9a,_0x80efdf={};_0x80efdf[_0x5663fa(0x20b)]=function(_0x3e9f84,_0x153310){return _0x3e9f84===_0x153310;},_0x80efdf[_0x5663fa(0x1f3)]=function(_0x51a628,_0x807115){return _0x51a628+_0x807115;};const _0x1c81d6=_0x80efdf;if(_0x1c81d6[_0x5663fa(0x20b)](this[_0x5663fa(0x1e6)][_0x5663fa(0x1ce)],0x0))return;const _0x25107d=JSON['stringify'](this[_0x5663fa(0x1e6)]),_0x201b59=_0x1c81d6[_0x5663fa(0x1f3)](_0x25107d['slice'](0x1,-0x1),',');fs[_0x5663fa(0x1dc)](this[_0x5663fa(0x1d9)],_0x201b59);}static[a75_0x1afd9a(0x205)](){const _0x46d9a7=a75_0x1afd9a,_0x5aafe6={};_0x5aafe6[_0x46d9a7(0x215)]=function(_0x4e29b5,_0x1655ec){return _0x4e29b5>_0x1655ec;};const _0x51e44e=_0x5aafe6;if(!fs['existsSync'](this[_0x46d9a7(0x1f2)]))return this['_errorEvents'];let _0x1f679c=fs[_0x46d9a7(0x218)](this[_0x46d9a7(0x1f2)])[_0x46d9a7(0x22f)]();_0x1f679c='['+_0x1f679c[_0x46d9a7(0x22c)](0x0,-0x1)+']';let _0x1aacb6=JSON[_0x46d9a7(0x232)](_0x1f679c);return _0x51e44e[_0x46d9a7(0x215)](this[_0x46d9a7(0x1e6)][_0x46d9a7(0x1ce)],0x0)&&(_0x1aacb6=_0x1aacb6[_0x46d9a7(0x1d8)](this['_errorEvents'])),fs['unlinkSync'](this['errorReportFileName']),_0x1aacb6;}static[a75_0x1afd9a(0x20e)](_0x2ccfaa){const _0x3e6cba=a75_0x1afd9a;if(!this[_0x3e6cba(0x21e)]())return;this[_0x3e6cba(0x1e6)][_0x3e6cba(0x1d1)]({'message':_0x2ccfaa['message'],'trace':_0x2ccfaa[_0x3e6cba(0x21b)],'code':_0x2ccfaa[_0x3e6cba(0x208)]||null,'time':new Date()});}static[a75_0x1afd9a(0x226)](){const _0x45278a=a75_0x1afd9a,_0x1fee83={};_0x1fee83[_0x45278a(0x1fa)]=_0x45278a(0x233);const _0x4bdc7c=_0x1fee83;try{if(!this[_0x45278a(0x21e)]())return;this[_0x45278a(0x1f6)]['disconnect'](),this['pushPerfMeasures'](),this[_0x45278a(0x200)]();}catch{logger[_0x45278a(0x22d)](_0x4bdc7c[_0x45278a(0x1fa)]);}}static[a75_0x1afd9a(0x209)](){const _0xecb24f=a75_0x1afd9a,_0x2eb3a3=this['finalizePerfMeasures'](),_0x1e039c=this[_0xecb24f(0x205)]();if(!this[_0xecb24f(0x21e)]()){const _0x5161e0={};return _0x5161e0[_0xecb24f(0x234)]=[],_0x5161e0[_0xecb24f(0x211)]=[],_0x5161e0;}const _0x37b8a1={};return _0x37b8a1[_0xecb24f(0x234)]=_0x2eb3a3,_0x37b8a1[_0xecb24f(0x211)]=_0x1e039c,_0x37b8a1;}}function a75_0x2a59(){const _0x33d6=['calculateTimeFromEvents','CiBHy','disconnect','JTVbQ','join','hZuHU','concat','errorFile','reduce','kHtea','appendFileSync','finally','77RIgbxN','obHPX','generateHTMLReport','started','entryTypes','exports','NnmMH','CHlca','_errorEvents','apply','1048jwMuZe','qgIhX','stopAndGenerate','ktppI','DsAuc','iAvhb','duration','writeFile','473655QTdnXO','match','errorReportFileName','diYNg','30501fsDGcS','_events','_observer','writeFileSync','CGhxD','buffered','jXxEH','cwd','stringify','forEach','IjnjO','Error\x20in\x20writing\x20html\x20','pushErrors','YcgTg','tgkll','path','shSFr','finalizeErrors','TBHJT','cSqKt','code','finalize','then','Psuyh','getCleanedPerfEvents','onhLP','captureError','getPerformance','12601490mUHSjV','errors','SqxEm','meta','jsonReportFileName','TNzlz','getEntries','gfLVw','readFileSync','finalizePerfMeasures','96690UolgID','stack','map','</td><td>','isEnabled','BROWSERSTACK_SDK_INSTRUMENTATION','false','_measureEvents','GOSTv','unlinkSync','EgAQP','xNfJB','stopMonitoring','thrql','DzSjs','1934632dPZlgE','60sAwgmg','./test-observability/utils','slice','debug','wlPoB','toString','measure','Jrrcw','parse','Error\x20stopping\x20monitoring','measures','XETaK','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','name','yuODJ','observe','catch','<tr><td>','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','Error\x20in\x20doing\x20csv\x20operations:\x20','getEventsFromJSON','performance-report.json','RcNlz','pushPerfMeasures','./logger','15784AquIRN','measureWrapper','perf_hooks','PoOPC','error-report.json','MjHDe','generateJSON','length','162444ZIDIPg','mark','push'];a75_0x2a59=function(){return _0x33d6;};return a75_0x2a59();}module[a75_0x1afd9a(0x1e3)]=PerformanceTester;
|
|
1
|
+
const a75_0x45aff1=a75_0x43f8;function a75_0x43f8(_0x41a79b,_0x258f98){const _0x53986f=a75_0x5398();return a75_0x43f8=function(_0x43f8b2,_0x79173f){_0x43f8b2=_0x43f8b2-0x1dc;let _0x16352e=_0x53986f[_0x43f8b2];return _0x16352e;},a75_0x43f8(_0x41a79b,_0x258f98);}(function(_0x397e18,_0x5f515d){const _0x514dc5=a75_0x43f8,_0x3c4a8d=_0x397e18();while(!![]){try{const _0x56e61=parseInt(_0x514dc5(0x234))/0x1+-parseInt(_0x514dc5(0x23a))/0x2+parseInt(_0x514dc5(0x1ed))/0x3*(parseInt(_0x514dc5(0x248))/0x4)+-parseInt(_0x514dc5(0x214))/0x5*(parseInt(_0x514dc5(0x242))/0x6)+parseInt(_0x514dc5(0x1f3))/0x7*(-parseInt(_0x514dc5(0x200))/0x8)+parseInt(_0x514dc5(0x237))/0x9+-parseInt(_0x514dc5(0x1ef))/0xa*(-parseInt(_0x514dc5(0x1e5))/0xb);if(_0x56e61===_0x5f515d)break;else _0x3c4a8d['push'](_0x3c4a8d['shift']());}catch(_0x2ed9a6){_0x3c4a8d['push'](_0x3c4a8d['shift']());}}}(a75_0x5398,0x681bd));const fs=require('fs'),{performance,PerformanceObserver}=require(a75_0x45aff1(0x24e)),{sleep,debug}=require(a75_0x45aff1(0x22c)),path=require(a75_0x45aff1(0x1f0)),logger=require(a75_0x45aff1(0x21b))['winstonLogger'];class PerformanceTester{static [a75_0x45aff1(0x22d)];static ['_events']=[];static [a75_0x45aff1(0x239)]=[];static [a75_0x45aff1(0x22b)]=[];static [a75_0x45aff1(0x20f)]=![];static [a75_0x45aff1(0x1de)]=a75_0x45aff1(0x216);static [a75_0x45aff1(0x21e)]='error-report.json';static['startMonitoring'](_0x49ac92=a75_0x45aff1(0x216),_0x532269=a75_0x45aff1(0x24f)){const _0x364f9b=a75_0x45aff1,_0x3e7d3f={};_0x3e7d3f[_0x364f9b(0x221)]=function(_0x37bf20,_0x5998dd){return _0x37bf20===_0x5998dd;},_0x3e7d3f['PyUYn']='measure',_0x3e7d3f['SEdNT']='function';const _0x3e4071=_0x3e7d3f;if(this[_0x364f9b(0x20f)]||!this[_0x364f9b(0x22a)]())return;this[_0x364f9b(0x22d)]=new PerformanceObserver(_0x1a8eff=>{const _0x4adec8=_0x364f9b,_0x5b1f18={'ZQOUB':function(_0x39aa07,_0x3a1487){const _0x13f055=a75_0x43f8;return _0x3e4071[_0x13f055(0x221)](_0x39aa07,_0x3a1487);},'xIopU':_0x3e4071[_0x4adec8(0x247)]};_0x1a8eff[_0x4adec8(0x213)]()[_0x4adec8(0x20c)](_0x174ed8=>{const _0x41729c=_0x4adec8;_0x5b1f18['ZQOUB'](_0x174ed8['entryType'],_0x5b1f18[_0x41729c(0x231)])?this[_0x41729c(0x239)][_0x41729c(0x23b)](_0x174ed8):this[_0x41729c(0x24d)]['push'](_0x174ed8);});});const _0x2c0980={};_0x2c0980[_0x364f9b(0x211)]=!![],_0x2c0980['entryTypes']=[_0x3e4071[_0x364f9b(0x1f7)],_0x3e4071['PyUYn']],this[_0x364f9b(0x22d)]['observe'](_0x2c0980),this[_0x364f9b(0x20f)]=!![],this[_0x364f9b(0x1de)]=_0x49ac92,this[_0x364f9b(0x21e)]=_0x532269;}static[a75_0x45aff1(0x250)](){return performance;}static['calculateTimeFromEvents'](_0x3abc30,_0x113e74){const _0x2903fc=a75_0x45aff1,_0x30504f={};_0x30504f[_0x2903fc(0x21a)]=function(_0x58e17b,_0x3ba664){return _0x58e17b+_0x3ba664;},_0x30504f[_0x2903fc(0x24c)]=function(_0x53ab1f,_0x5bfd20){return _0x53ab1f||_0x5bfd20;},_0x30504f[_0x2903fc(0x217)]=function(_0x3a1f95,_0x1aaf6f){return _0x3a1f95===_0x1aaf6f;};const _0x89914a=_0x30504f,_0x24f9d4={};if(!_0x3abc30||_0x89914a[_0x2903fc(0x217)](_0x3abc30[_0x2903fc(0x230)],0x0))return;_0x3abc30['map'](_0x256485=>{const _0xef2ea9=_0x2903fc;!_0x24f9d4[_0x256485['name']]&&(_0x24f9d4[_0x256485[_0xef2ea9(0x1fa)]]=0x0),_0x24f9d4[_0x256485[_0xef2ea9(0x1fa)]]+=_0x256485[_0xef2ea9(0x205)];});const _0x382ef9=_0x113e74['reduce']((_0x57bc36,_0x55d08f)=>{const _0x59f857=_0x2903fc;return _0x89914a['FMUci'](_0x24f9d4[_0x55d08f],_0x89914a[_0x59f857(0x24c)](_0x57bc36,0x0));},0x0);return _0x382ef9;}static async[a75_0x45aff1(0x1f1)](_0x5eddde,_0x2987a5){const _0x14db3b=a75_0x45aff1,_0x67b90d={'eAcgc':function(_0x33304f,_0x534873){return _0x33304f+_0x534873;},'VzqCc':function(_0x561bfb,_0x3bf10f){return _0x561bfb||_0x3bf10f;},'fDyon':function(_0x3c1bb9,_0x2b0458){return _0x3c1bb9===_0x2b0458;},'yqNwC':function(_0x34b888,_0x3b3086){return _0x34b888(_0x3b3086);}};if(!_0x5eddde||_0x67b90d[_0x14db3b(0x1ea)](_0x5eddde[_0x14db3b(0x230)],0x0))return 0x0;const _0x441611=[];for(const _0x1819af of _0x5eddde){const _0x148acc=path[_0x14db3b(0x1ff)]('.',_0x1819af);try{const _0x209943=this['getEventsFromJSON'](_0x148acc);_0x209943[_0x14db3b(0x246)](_0x158c66=>{const _0x1a0cda=_0x14db3b;!_0x441611[_0x158c66[_0x1a0cda(0x1fa)]]&&(_0x441611[_0x158c66[_0x1a0cda(0x1fa)]]=0x0),_0x441611[_0x158c66[_0x1a0cda(0x1fa)]]+=_0x158c66[_0x1a0cda(0x205)];});}catch(_0x242ebb){_0x67b90d[_0x14db3b(0x24b)](debug,_0x14db3b(0x226)+_0x242ebb[_0x14db3b(0x204)]());}}const _0x19c3bf=_0x2987a5[_0x14db3b(0x21d)]((_0x15b86a,_0x2cefeb)=>{const _0xde5e07=_0x14db3b;return _0x67b90d['eAcgc'](_0x441611[_0x2cefeb],_0x67b90d[_0xde5e07(0x224)](_0x15b86a,0x0));},0x0);return _0x67b90d[_0x14db3b(0x24b)](debug,_0x14db3b(0x219)+_0x2987a5+'\x20for\x20all\x20processes\x20is\x20'+_0x19c3bf),_0x19c3bf;}static[a75_0x45aff1(0x244)](_0x3a6b41){const _0x414857=a75_0x45aff1;if(!fs['existsSync'](_0x3a6b41))return[];return JSON[_0x414857(0x245)](fs[_0x414857(0x229)](_0x3a6b41)['toString']());}static async[a75_0x45aff1(0x207)](_0x18ae78=a75_0x45aff1(0x223),_0x5193d2=null){const _0x5ce373=a75_0x45aff1,_0x327954={'SvBbb':function(_0x4b5e8c,_0x445521){return _0x4b5e8c(_0x445521);}};if(!this[_0x5ce373(0x20f)])return;await _0x327954['SvBbb'](sleep,0x1e),this[_0x5ce373(0x22d)]['disconnect'](),this[_0x5ce373(0x20f)]=![],this[_0x5ce373(0x23c)](this[_0x5ce373(0x24d)]);const _0x1415aa=this[_0x5ce373(0x1f5)](this['_events']),_0x282495=path[_0x5ce373(0x1ff)](process[_0x5ce373(0x201)](),_0x18ae78);fs[_0x5ce373(0x1dd)](_0x282495,_0x1415aa,_0x186b3c=>{const _0xa05bcc=_0x5ce373;if(_0x186b3c){_0x327954[_0xa05bcc(0x252)](debug,'Error\x20in\x20writing\x20html\x20'+_0x186b3c['toString']());return;}_0x327954['SvBbb'](debug,'Performance\x20report\x20is\x20at\x20'+_0x282495);});if(_0x5193d2)return this[_0x5ce373(0x23f)](this[_0x5ce373(0x24d)],_0x5193d2);}static[a75_0x45aff1(0x1f5)](_0x2ae1fc){const _0x490ba4=a75_0x45aff1,_0x87466c={};_0x87466c[_0x490ba4(0x23e)]=_0x490ba4(0x218),_0x87466c[_0x490ba4(0x22e)]=_0x490ba4(0x1e2),_0x87466c[_0x490ba4(0x232)]=_0x490ba4(0x1ee),_0x87466c[_0x490ba4(0x1fd)]='</tbody></table></body></html>';const _0x20adc6=_0x87466c;let _0x3fb192=_0x20adc6[_0x490ba4(0x23e)];return _0x3fb192+=_0x20adc6[_0x490ba4(0x22e)],_0x3fb192+=_0x20adc6[_0x490ba4(0x232)],_0x2ae1fc['forEach'](_0x48cb74=>{const _0x4ab7f4=_0x490ba4;_0x3fb192+='<tr><td>'+_0x48cb74[_0x4ab7f4(0x1fa)]+_0x4ab7f4(0x1e0)+_0x48cb74[_0x4ab7f4(0x205)]+'</td></tr>';}),_0x3fb192+=_0x20adc6[_0x490ba4(0x1fd)],_0x3fb192;}static[a75_0x45aff1(0x23c)](_0x1c6949){const _0x14bf75=a75_0x45aff1;if(!this[_0x14bf75(0x1de)])return;const _0x111a0c={};_0x1c6949[_0x14bf75(0x246)](_0x51ed23=>{const _0x1de708=_0x14bf75;!_0x111a0c[_0x51ed23[_0x1de708(0x1fa)]]&&(_0x111a0c[_0x51ed23[_0x1de708(0x1fa)]]=0x0),_0x111a0c[_0x51ed23[_0x1de708(0x1fa)]]+=_0x51ed23[_0x1de708(0x205)];});const _0x343172=Object[_0x14bf75(0x1e1)](_0x111a0c)[_0x14bf75(0x246)](([_0x53c878,_0x8a0c3f])=>{const _0x2bf07f=_0x14bf75,_0x49e8e6={};return _0x49e8e6[_0x2bf07f(0x1fa)]=_0x53c878,_0x49e8e6[_0x2bf07f(0x205)]=_0x8a0c3f,_0x49e8e6;});fs['writeFileSync'](this['jsonReportFileName'],JSON['stringify'](_0x343172));}static['isEnabled'](){const _0x554380=a75_0x45aff1,_0x1637e4={};_0x1637e4[_0x554380(0x1dc)]=function(_0x23b7ea,_0x13c173){return _0x23b7ea===_0x13c173;},_0x1637e4[_0x554380(0x1e4)]='false';const _0x5ee482=_0x1637e4;return!_0x5ee482['DxWnV'](process['env'][_0x554380(0x251)],_0x5ee482[_0x554380(0x1e4)]);}static[a75_0x45aff1(0x23d)](_0x150381,_0x535c38,_0xdf579b=null,_0x303505=null){const _0x4299c6=a75_0x45aff1,_0x2fb045={};_0x2fb045[_0x4299c6(0x1e7)]=function(_0x26c8e9,_0x35da8a){return _0x26c8e9+_0x35da8a;},_0x2fb045['FFpNd']=_0x4299c6(0x215),_0x2fb045[_0x4299c6(0x1fe)]=function(_0x533345,_0x5c4f25){return _0x533345+_0x5c4f25;},_0x2fb045[_0x4299c6(0x1e8)]='-end',_0x2fb045['oceeJ']=function(_0x42e67b,_0x34539d){return _0x42e67b instanceof _0x34539d;};const _0x5cf722=_0x2fb045;try{if(this[_0x4299c6(0x20f)]&&this[_0x4299c6(0x22a)]()){let _0x56533e=_0x150381;_0xdf579b&&(_0x56533e=_0x150381+'['+JSON[_0x4299c6(0x206)](_0xdf579b)+']');const _0x1f60b3=_0x5cf722[_0x4299c6(0x1e7)](_0x56533e,_0x5cf722[_0x4299c6(0x1f6)]),_0x47f41d=_0x5cf722['OrTLD'](_0x56533e,_0x5cf722[_0x4299c6(0x1e8)]);performance['mark'](_0x1f60b3);const _0x3039d8=_0x535c38[_0x4299c6(0x236)](null,_0x303505);if(_0x5cf722['oceeJ'](_0x3039d8,Promise))return new Promise((_0x24c873,_0x2c241f)=>{const _0x5b2c5a=_0x4299c6;_0x3039d8['then'](_0x2c973b=>_0x24c873(_0x2c973b))[_0x5b2c5a(0x21c)](_0x38aa0e=>_0x2c241f(_0x38aa0e))['finally'](()=>{const _0xb5e584=_0x5b2c5a;performance[_0xb5e584(0x1df)](_0x47f41d),performance[_0xb5e584(0x23d)](_0x56533e,_0x1f60b3,_0x47f41d);});});;return performance[_0x4299c6(0x1df)](_0x47f41d),performance[_0x4299c6(0x23d)](_0x56533e,_0x1f60b3,_0x47f41d),_0x3039d8;};return _0x535c38[_0x4299c6(0x236)](null,_0x303505);}catch(_0x2c5167){return _0x535c38[_0x4299c6(0x236)](null,_0x303505);}}static[a75_0x45aff1(0x1f9)](_0x37e3c3,_0x211143){const _0x13c0b1=this;return function(){const _0x45cd0f=a75_0x43f8,_0x36e612=[_0x37e3c3,_0x211143,null]['concat'](arguments);return _0x13c0b1[_0x45cd0f(0x23d)][_0x45cd0f(0x236)](_0x13c0b1,_0x36e612);};}static[a75_0x45aff1(0x233)](){const _0xfe4466=a75_0x45aff1,_0x440ece={};_0x440ece[_0xfe4466(0x20e)]=function(_0x3732f,_0x1cfaa4){return _0x3732f/_0x1cfaa4;},_0x440ece[_0xfe4466(0x210)]=function(_0x40cbff,_0x516839){return _0x40cbff+_0x516839;},_0x440ece[_0xfe4466(0x1e3)]=function(_0x4c8dff,_0x428dc0){return _0x4c8dff*_0x428dc0;},_0x440ece[_0xfe4466(0x1ec)]=function(_0x5d9216,_0x44f2bc){return _0x5d9216+_0x44f2bc;};const _0x13b2b9=_0x440ece,_0x5e7e1f=/(^.*)\[(.*)\]$/,_0x34cfdc={},_0x12541b={};for(const _0x299c85 of this['_measureEvents']){const _0x4547a0=_0x299c85[_0xfe4466(0x1fa)][_0xfe4466(0x1f8)](_0x5e7e1f),_0x5ddeaf={};_0x5ddeaf[_0xfe4466(0x1fa)]=_0x299c85['name'],_0x5ddeaf[_0xfe4466(0x205)]=_0x299c85[_0xfe4466(0x205)]||0x0;const _0x3b3d81=_0x5ddeaf;_0x4547a0&&(_0x3b3d81['name']=_0x4547a0[0x1],_0x3b3d81[_0xfe4466(0x202)]=JSON[_0xfe4466(0x245)](_0x4547a0[0x2]));if(_0x34cfdc[_0x3b3d81[_0xfe4466(0x1fa)]]){const _0x5c72a4=_0x34cfdc[_0x3b3d81[_0xfe4466(0x1fa)]],_0x2717b8=_0x12541b[_0x3b3d81['name']];_0x34cfdc[_0x3b3d81[_0xfe4466(0x1fa)]][_0xfe4466(0x205)]=_0x13b2b9[_0xfe4466(0x20e)](_0x13b2b9['CSwxG'](_0x13b2b9[_0xfe4466(0x1e3)](_0x5c72a4['duration'],_0x2717b8),_0x3b3d81[_0xfe4466(0x205)]),_0x13b2b9[_0xfe4466(0x1ec)](0x1,_0x2717b8)),_0x12541b[_0x3b3d81[_0xfe4466(0x1fa)]]++;}else _0x34cfdc[_0x3b3d81[_0xfe4466(0x1fa)]]=_0x3b3d81,_0x12541b[_0x3b3d81['name']]=0x1;}return Object[_0xfe4466(0x1eb)](_0x34cfdc);}static[a75_0x45aff1(0x225)](){const _0x2aeb4e=a75_0x45aff1,_0x2bcfbe={};_0x2bcfbe[_0x2aeb4e(0x20b)]=function(_0x58cf76,_0x462d3f){return _0x58cf76===_0x462d3f;},_0x2bcfbe[_0x2aeb4e(0x220)]=function(_0x242447,_0x51f0de){return _0x242447+_0x51f0de;};const _0x311973=_0x2bcfbe;if(_0x311973[_0x2aeb4e(0x20b)](this[_0x2aeb4e(0x239)]['length'],0x0))return;const _0x7c197b=this[_0x2aeb4e(0x233)](),_0x434cc9=JSON[_0x2aeb4e(0x206)](_0x7c197b),_0x16e496=_0x311973[_0x2aeb4e(0x220)](_0x434cc9['slice'](0x1,-0x1),',');fs['appendFileSync'](this['jsonReportFileName'],_0x16e496);}static[a75_0x45aff1(0x235)](){const _0x196641=a75_0x45aff1,_0x40cabd={};_0x40cabd[_0x196641(0x212)]=function(_0x351058,_0xe85e9){return _0x351058===_0xe85e9;},_0x40cabd[_0x196641(0x1f2)]=function(_0x440b0e,_0x27a2c5){return _0x440b0e>_0x27a2c5;};const _0x321fd0=_0x40cabd;if(!this[_0x196641(0x20f)]||_0x321fd0[_0x196641(0x212)](this[_0x196641(0x239)][_0x196641(0x230)],0x0))return[];if(!fs['existsSync'](this[_0x196641(0x1de)]))return this[_0x196641(0x239)];let _0x28c3f3=fs['readFileSync'](this['jsonReportFileName'])[_0x196641(0x204)]();_0x28c3f3='['+_0x28c3f3['slice'](0x0,-0x1)+']';let _0x3b1275=JSON[_0x196641(0x245)](_0x28c3f3);return _0x321fd0[_0x196641(0x1f2)](this[_0x196641(0x239)]['length'],0x0)&&(_0x3b1275=_0x3b1275[_0x196641(0x227)](this['getCleanedPerfEvents']())),this[_0x196641(0x22d)][_0x196641(0x228)](),fs[_0x196641(0x243)](this[_0x196641(0x1de)]),_0x3b1275;}static[a75_0x45aff1(0x203)](){const _0x32d0a8=a75_0x45aff1,_0x3ef427={};_0x3ef427[_0x32d0a8(0x240)]=function(_0xe0b48,_0x3525f5){return _0xe0b48===_0x3525f5;},_0x3ef427[_0x32d0a8(0x1f4)]=function(_0x575018,_0x9aa9e0){return _0x575018+_0x9aa9e0;};const _0xe49133=_0x3ef427;if(_0xe49133[_0x32d0a8(0x240)](this[_0x32d0a8(0x22b)][_0x32d0a8(0x230)],0x0))return;const _0x53fd64=JSON[_0x32d0a8(0x206)](this[_0x32d0a8(0x22b)]),_0x25be4e=_0xe49133['hBafg'](_0x53fd64['slice'](0x1,-0x1),',');fs[_0x32d0a8(0x21f)](this['errorFile'],_0x25be4e);}static['finalizeErrors'](){const _0x419340=a75_0x45aff1,_0x3c1956={};_0x3c1956['awQAi']=function(_0x1104f7,_0x22f145){return _0x1104f7>_0x22f145;};const _0x388ae9=_0x3c1956;if(!fs[_0x419340(0x1e9)](this['errorReportFileName']))return this[_0x419340(0x22b)];let _0x510ea4=fs['readFileSync'](this[_0x419340(0x21e)])[_0x419340(0x204)]();_0x510ea4='['+_0x510ea4[_0x419340(0x24a)](0x0,-0x1)+']';let _0x5bf02a=JSON[_0x419340(0x245)](_0x510ea4);return _0x388ae9[_0x419340(0x20a)](this['_errorEvents'][_0x419340(0x230)],0x0)&&(_0x5bf02a=_0x5bf02a['concat'](this[_0x419340(0x22b)])),fs[_0x419340(0x243)](this['errorReportFileName']),_0x5bf02a;}static[a75_0x45aff1(0x241)](_0x41e540){const _0x5aea3c=a75_0x45aff1;if(!this[_0x5aea3c(0x22a)]())return;this['_errorEvents'][_0x5aea3c(0x23b)]({'message':_0x41e540[_0x5aea3c(0x1fc)],'trace':_0x41e540['stack'],'code':_0x41e540[_0x5aea3c(0x238)]||null,'time':new Date()});}static[a75_0x45aff1(0x249)](){const _0x12084a=a75_0x45aff1,_0x439690={};_0x439690[_0x12084a(0x20d)]=_0x12084a(0x1e6);const _0x36fcbe=_0x439690;try{if(!this[_0x12084a(0x22a)]())return;this['_observer'][_0x12084a(0x228)](),this[_0x12084a(0x225)](),this[_0x12084a(0x203)]();}catch{logger[_0x12084a(0x209)](_0x36fcbe['UREQU']);}}static['finalize'](){const _0x94eb2c=a75_0x45aff1,_0xb9af5b=this[_0x94eb2c(0x235)](),_0x3e37c5=this[_0x94eb2c(0x208)]();if(!this[_0x94eb2c(0x22a)]()){const _0xacd8f4={};return _0xacd8f4[_0x94eb2c(0x1fb)]=[],_0xacd8f4[_0x94eb2c(0x222)]=[],_0xacd8f4;}const _0x1723de={};return _0x1723de[_0x94eb2c(0x1fb)]=_0xb9af5b,_0x1723de[_0x94eb2c(0x222)]=_0x3e37c5,_0x1723de;}}function a75_0x5398(){const _0x820f8d=['mGxeJ','SKCdM','existsSync','fDyon','values','OcqwG','865938GCzRSf','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','33910nYKSVS','path','calculateTimesFromMultipleFiles','eBfsR','70427OUXIPF','hBafg','generateHTMLReport','FFpNd','SEdNT','match','measureWrapper','name','measures','message','utvDe','OrTLD','join','504UgySwJ','cwd','meta','pushErrors','toString','duration','stringify','stopAndGenerate','finalizeErrors','debug','awQAi','Vkfml','forEach','UREQU','xgoMi','started','CSwxG','buffered','yAHJi','getEntries','5JcjxBS','-start','performance-report.json','URREX','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','Time\x20for\x20','FMUci','./logger','catch','reduce','errorReportFileName','appendFileSync','wQSNF','MgqKo','errors','performance-own.html','VzqCc','pushPerfMeasures','Error\x20in\x20doing\x20csv\x20operations:\x20','concat','disconnect','readFileSync','isEnabled','_errorEvents','./test-observability/utils','_observer','sXoSK','exports','length','xIopU','BhJin','getCleanedPerfEvents','772014hYinjZ','finalizePerfMeasures','apply','152073blMECg','code','_measureEvents','1007074wIrysW','push','generateJSON','measure','QFDnO','calculateTimeFromEvents','fFqRa','captureError','1253418VIMoYU','unlinkSync','getEventsFromJSON','parse','map','PyUYn','4rnLhEA','stopMonitoring','slice','yqNwC','DAzig','_events','perf_hooks','error-report.json','getPerformance','BROWSERSTACK_SDK_INSTRUMENTATION','SvBbb','DxWnV','writeFile','jsonReportFileName','mark','</td><td>','entries','<h1>Performance\x20Report</h1>','IGjFw','gpzqY','2255PTbqBL','Error\x20stopping\x20monitoring'];a75_0x5398=function(){return _0x820f8d;};return a75_0x5398();}module[a75_0x45aff1(0x22f)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x58a4ea=a76_0x6483;(function(_0x523f5e,_0x4b6879){const _0x50cbbe=a76_0x6483,_0x6fc0a2=_0x523f5e();while(!![]){try{const _0x36f531=parseInt(_0x50cbbe(0x11f))/0x1*(parseInt(_0x50cbbe(0x118))/0x2)+parseInt(_0x50cbbe(0x125))/0x3+parseInt(_0x50cbbe(0x104))/0x4+-parseInt(_0x50cbbe(0x11b))/0x5*(parseInt(_0x50cbbe(0x116))/0x6)+-parseInt(_0x50cbbe(0x121))/0x7*(parseInt(_0x50cbbe(0x11a))/0x8)+-parseInt(_0x50cbbe(0x124))/0x9*(-parseInt(_0x50cbbe(0x10f))/0xa)+-parseInt(_0x50cbbe(0x109))/0xb;if(_0x36f531===_0x4b6879)break;else _0x6fc0a2['push'](_0x6fc0a2['shift']());}catch(_0x1d0209){_0x6fc0a2['push'](_0x6fc0a2['shift']());}}}(a76_0x3d23,0x1a9c7));function a76_0x3d23(){const _0x2dd8d8=['428OTJrIk','method','24jWYVEf','229325CKHCtN','eVzdJ','removeListener','YDOge','859rXFCra','now','369355RWnptI','error','spy','1557xRWDbN','636333FTwJoH','once','path','host','end','hnftX','socket','477476iuZwRg','headers','request','hostname','unpatch','4480575msoipV','JUcKI','http','response','monkeypatch','https','11860YjoLjH','XhqZh','uVpIm','qsrVV','xLYac','ybWAb','duration_ms','6zbPqYP','statusCode'];a76_0x3d23=function(){return _0x2dd8d8;};return a76_0x3d23();}const http=require(a76_0x58a4ea(0x10b)),https=require(a76_0x58a4ea(0x10e)),monkeypatch=require(a76_0x58a4ea(0x10d));function spy(_0x3109f6){const _0x3c72fc=a76_0x58a4ea,_0x5d9b0a={'XhqZh':_0x3c72fc(0x122),'gpDWI':function(_0x209e8b,..._0x4d71ea){return _0x209e8b(..._0x4d71ea);},'hnftX':function(_0xe16099,_0x1d77c0,_0x74a8d7){return _0xe16099(_0x1d77c0,_0x74a8d7);},'xLYac':function(_0x5c10f9,_0x19b951){return _0x5c10f9-_0x19b951;},'YDOge':_0x3c72fc(0x10c),'MZTDG':_0x3c72fc(0x103),'uVpIm':function(_0x253da7,_0x4530b6,_0x379def,_0x4fb5ff){return _0x253da7(_0x4530b6,_0x379def,_0x4fb5ff);},'qsrVV':_0x3c72fc(0x101),'eVzdJ':'request'},_0x1f0191=(_0x480011,_0x55086c,_0x35145e)=>{const _0x84d28e=_0x3c72fc,_0x55a777={'ybWAb':function(_0x505e60,_0xd3678e,_0x4b174a){return _0x5d9b0a['hnftX'](_0x505e60,_0xd3678e,_0x4b174a);},'JUcKI':function(_0x19e0ce,_0x1d9bd8){const _0x3b21e7=a76_0x6483;return _0x5d9b0a[_0x3b21e7(0x113)](_0x19e0ce,_0x1d9bd8);},'MQiNe':_0x5d9b0a[_0x84d28e(0x110)]},_0x20414b=_0x5d9b0a[_0x84d28e(0x102)](_0x480011,_0x55086c,_0x35145e);let _0x393f0c=Date[_0x84d28e(0x120)](),_0x6b2598;const _0x1256eb=_0x132b89=>{const _0x6160c2=_0x84d28e,_0x490fd0={};_0x490fd0['host']=_0x55086c[_0x6160c2(0x128)]||_0x55086c[_0x6160c2(0x107)],_0x490fd0[_0x6160c2(0x127)]=_0x55086c[_0x6160c2(0x127)],_0x490fd0[_0x6160c2(0x119)]=_0x55086c[_0x6160c2(0x119)],_0x490fd0['headers']=_0x55086c[_0x6160c2(0x105)],_0x55a777['ybWAb'](_0x3109f6,_0x132b89,_0x490fd0);};return _0x20414b[_0x84d28e(0x126)](_0x5d9b0a[_0x84d28e(0x11e)],_0x141472=>{const _0x3e8ed=_0x84d28e,_0x528a3b=_0x55a777[_0x3e8ed(0x10a)](Date[_0x3e8ed(0x120)](),_0x393f0c),_0x4b5139={};_0x4b5139[_0x3e8ed(0x107)]=_0x55086c[_0x3e8ed(0x128)]||_0x55086c[_0x3e8ed(0x107)],_0x4b5139[_0x3e8ed(0x127)]=_0x55086c[_0x3e8ed(0x127)],_0x4b5139[_0x3e8ed(0x119)]=_0x55086c['method'],_0x4b5139[_0x3e8ed(0x105)]=_0x55086c['headers'],_0x4b5139['status_code']=_0x141472[_0x3e8ed(0x117)],_0x4b5139[_0x3e8ed(0x115)]=_0x528a3b,_0x55a777[_0x3e8ed(0x114)](_0x3109f6,null,_0x4b5139),_0x6b2598[_0x3e8ed(0x11d)](_0x55a777['MQiNe'],_0x1256eb);}),_0x20414b['on'](_0x5d9b0a['MZTDG'],_0x41eca8=>{const _0x218e8f=_0x84d28e;_0x6b2598=_0x41eca8,_0x41eca8[_0x218e8f(0x126)](_0x5d9b0a[_0x218e8f(0x110)],_0x1256eb);}),_0x5d9b0a[_0x84d28e(0x111)](monkeypatch,_0x20414b,_0x5d9b0a[_0x84d28e(0x112)],(_0x3ef735,..._0x2f81f0)=>{const _0x4de81d=_0x84d28e;_0x393f0c=Date[_0x4de81d(0x120)](),_0x5d9b0a['gpDWI'](_0x3ef735,..._0x2f81f0);}),_0x20414b;};_0x5d9b0a[_0x3c72fc(0x111)](monkeypatch,http,_0x5d9b0a[_0x3c72fc(0x11c)],_0x1f0191),_0x5d9b0a[_0x3c72fc(0x111)](monkeypatch,https,_0x5d9b0a[_0x3c72fc(0x11c)],_0x1f0191);}function restore(){const _0x562da6=a76_0x58a4ea;http[_0x562da6(0x106)][_0x562da6(0x108)](),https[_0x562da6(0x106)][_0x562da6(0x108)]();}const a76_0x304de7={};function a76_0x6483(_0x2cbcb5,_0xb7d236){const _0x3d2398=a76_0x3d23();return a76_0x6483=function(_0x64834e,_0xc0330f){_0x64834e=_0x64834e-0x101;let _0x5ea551=_0x3d2398[_0x64834e];return _0x5ea551;},a76_0x6483(_0x2cbcb5,_0xb7d236);}a76_0x304de7[a76_0x58a4ea(0x123)]=spy,a76_0x304de7['restore']=restore,module['exports']=a76_0x304de7;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a77_0x436ad7=a77_0x51ba;function a77_0xd39d(){const _0x593bbc=['cBMbY','79640Nivguk','UJCRc','6264pzdpBe','33301PWwboO','request','call','https:','4628KaRgZY','https','3nxFnrf','KhuIU','17868cCMkqp','1287FOKCDe','Agent','agent','DAsMz','globalAgent','http','1535620UnJeRR','5315ZxXnCa','keepAlive','hasOwnProperty','mcxzg','prototype','keepAliveMsecs','11rXjbut','pdUzL','4366760hvdbZn','3009881vyjjCm','86WmBCRa','exports','YyhfT'];a77_0xd39d=function(){return _0x593bbc;};return a77_0xd39d();}function a77_0x51ba(_0x35fb78,_0x1814ce){const _0xd39d94=a77_0xd39d();return a77_0x51ba=function(_0x51ba95,_0x272d0a){_0x51ba95=_0x51ba95-0x70;let _0x2944f2=_0xd39d94[_0x51ba95];return _0x2944f2;},a77_0x51ba(_0x35fb78,_0x1814ce);}(function(_0x5cc367,_0x48d267){const _0x18e116=a77_0x51ba,_0x48794f=_0x5cc367();while(!![]){try{const _0x596949=-parseInt(_0x18e116(0x87))/0x1*(-parseInt(_0x18e116(0x80))/0x2)+parseInt(_0x18e116(0x8d))/0x3*(parseInt(_0x18e116(0x75))/0x4)+-parseInt(_0x18e116(0x76))/0x5*(parseInt(_0x18e116(0x86))/0x6)+-parseInt(_0x18e116(0x7f))/0x7+parseInt(_0x18e116(0x84))/0x8*(parseInt(_0x18e116(0x90))/0x9)+parseInt(_0x18e116(0x7e))/0xa*(-parseInt(_0x18e116(0x7c))/0xb)+parseInt(_0x18e116(0x8f))/0xc*(-parseInt(_0x18e116(0x8b))/0xd);if(_0x596949===_0x48d267)break;else _0x48794f['push'](_0x48794f['shift']());}catch(_0x5b28bd){_0x48794f['push'](_0x48794f['shift']());}}}(a77_0xd39d,0xb2ee2),module[a77_0x436ad7(0x81)]=function(){const _0x42e56c=a77_0x436ad7,_0x1a6b96={'HpGAD':function(_0x319ec3,_0x142e65){return _0x319ec3===_0x142e65;},'DAsMz':_0x42e56c(0x8a),'mcxzg':_0x42e56c(0x71),'YyhfT':function(_0x292649,_0xd7fc99,_0x3ac094){return _0x292649(_0xd7fc99,_0x3ac094);},'sYcWZ':function(_0x94175f,_0x26ffa7,_0xc5eaf9){return _0x94175f(_0x26ffa7,_0xc5eaf9);},'KhuIU':function(_0x40cf37,_0x4839cd){return _0x40cf37(_0x4839cd);},'fWsTZ':_0x42e56c(0x74),'UJCRc':_0x42e56c(0x8c),'cBMbY':function(_0x4e8530,_0x42b692){return _0x4e8530*_0x42b692;},'pdUzL':'keepAlive'},_0x45f450=_0x1a6b96[_0x42e56c(0x8e)](require,_0x1a6b96['fWsTZ']),_0x1769d8=_0x1a6b96[_0x42e56c(0x8e)](require,_0x1a6b96[_0x42e56c(0x85)]),_0x3bfca1=_0x1a6b96[_0x42e56c(0x83)](0x1e,0x3e8);if(_0x45f450[_0x42e56c(0x73)]&&Object[_0x42e56c(0x7a)][_0x42e56c(0x78)][_0x42e56c(0x89)](_0x45f450[_0x42e56c(0x73)],_0x1a6b96[_0x42e56c(0x7d)]))_0x45f450['globalAgent'][_0x42e56c(0x77)]=!![],_0x1769d8[_0x42e56c(0x73)][_0x42e56c(0x77)]=!![],_0x45f450['globalAgent'][_0x42e56c(0x7b)]=_0x3bfca1,_0x1769d8['globalAgent'][_0x42e56c(0x7b)]=_0x3bfca1;else{const _0x4b59a1={};_0x4b59a1[_0x42e56c(0x77)]=!![],_0x4b59a1[_0x42e56c(0x7b)]=_0x3bfca1;const _0x175363=new _0x45f450[(_0x42e56c(0x70))](_0x4b59a1),_0x142982={};_0x142982[_0x42e56c(0x77)]=!![],_0x142982[_0x42e56c(0x7b)]=_0x3bfca1;const _0x42bd78=new _0x1769d8[(_0x42e56c(0x70))](_0x142982),_0x5e36fa=_0x45f450['request'],_0x41cd06=_0x1769d8[_0x42e56c(0x88)];_0x45f450[_0x42e56c(0x88)]=function(_0x3c5d38,_0x46967d){const _0x31d2b5=_0x42e56c;if(_0x1a6b96['HpGAD'](_0x3c5d38['protocol'],_0x1a6b96[_0x31d2b5(0x72)]))return _0x3c5d38[_0x1a6b96[_0x31d2b5(0x79)]]=_0x42bd78,_0x1a6b96[_0x31d2b5(0x82)](_0x41cd06,_0x3c5d38,_0x46967d);return _0x3c5d38[_0x1a6b96['mcxzg']]=_0x175363,_0x1a6b96['sYcWZ'](_0x5e36fa,_0x3c5d38,_0x46967d);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a78_0x24e45b=a78_0x8676;function a78_0x2c76(){var _0x15030b=['228788mwvgdy','CODECEPT','jest','codeceptjs','615423cuCzsZ','https://collector-observability.browserstack.com','assign','130rYKtiA','api/v1/screenshots','40314kxAVET','api/v1/batch','PLAYWRIGHT','3833600UoFuiD','MOCHA','3083229essxMZ','7292376SYBEHl','mocha','.obs_test_details','CUCUMBER','1874400ZVFUSQ','cucumber','Playwright'];a78_0x2c76=function(){return _0x15030b;};return a78_0x2c76();}(function(_0x21d28c,_0x2a192e){var _0x1220dc=a78_0x8676,_0x22aef7=_0x21d28c();while(!![]){try{var _0x558dd8=parseInt(_0x1220dc(0x15f))/0x1+parseInt(_0x1220dc(0x171))/0x2+-parseInt(_0x1220dc(0x169))/0x3+-parseInt(_0x1220dc(0x16e))/0x4+-parseInt(_0x1220dc(0x162))/0x5*(parseInt(_0x1220dc(0x164))/0x6)+parseInt(_0x1220dc(0x16a))/0x7+parseInt(_0x1220dc(0x167))/0x8;if(_0x558dd8===_0x2a192e)break;else _0x22aef7['push'](_0x22aef7['shift']());}catch(_0x553faa){_0x22aef7['push'](_0x22aef7['shift']());}}}(a78_0x2c76,0x8d8a4));var a78_0x260c49={};function a78_0x8676(_0x1050f0,_0x197e89){var _0x2c7690=a78_0x2c76();return a78_0x8676=function(_0x867685,_0x28c5d7){_0x867685=_0x867685-0x15d;var _0x56c903=_0x2c7690[_0x867685];return _0x56c903;},a78_0x8676(_0x1050f0,_0x197e89);}a78_0x260c49[a78_0x24e45b(0x166)]=a78_0x24e45b(0x170),a78_0x260c49[a78_0x24e45b(0x168)]=a78_0x24e45b(0x16b),a78_0x260c49[a78_0x24e45b(0x172)]=a78_0x24e45b(0x15e),a78_0x260c49['JEST']=a78_0x24e45b(0x15d),a78_0x260c49[a78_0x24e45b(0x16d)]=a78_0x24e45b(0x16f),module['exports']={'consoleHolder':Object[a78_0x24e45b(0x161)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a78_0x24e45b(0x160),'EVENT_ENDPOINT':'api/v1/event','BATCH_ENDPOINT':a78_0x24e45b(0x165),'SCREENSHOT_ENDPOINT':a78_0x24e45b(0x163),'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':a78_0x24e45b(0x16c),'FRAMEWORKS':a78_0x260c49};
|