browserstack-node-sdk 1.32.8 → 1.32.9
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/templates/autoscaler/deployment.yaml +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 +5 -3
- 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.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 +2 -0
- package/src/bin/integrations/constants.js +1 -0
- 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/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/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/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 a61_0x281655=a61_0x2017;(function(_0x28a808,_0x2d48ea){const _0x510935=a61_0x2017,_0x6126fc=_0x28a808();while(!![]){try{const _0x1bd29b=parseInt(_0x510935(0x169))/0x1+-parseInt(_0x510935(0x167))/0x2+parseInt(_0x510935(0x17d))/0x3+parseInt(_0x510935(0x175))/0x4+-parseInt(_0x510935(0x17e))/0x5*(parseInt(_0x510935(0x177))/0x6)+-parseInt(_0x510935(0x17c))/0x7+-parseInt(_0x510935(0x166))/0x8*(-parseInt(_0x510935(0x174))/0x9);if(_0x1bd29b===_0x2d48ea)break;else _0x6126fc['push'](_0x6126fc['shift']());}catch(_0x52944b){_0x6126fc['push'](_0x6126fc['shift']());}}}(a61_0x3b2a,0x70847));const winston=require(a61_0x281655(0x187)),os=require('os'),fs=require('fs'),path=require(a61_0x281655(0x185)),logDir=a61_0x281655(0x16b);!fs[a61_0x281655(0x181)](logDir)&&fs[a61_0x281655(0x170)](logDir);const a61_0x5e2b3e={};a61_0x5e2b3e[a61_0x281655(0x17a)]='console.info';const transports={'loggerConsole':new winston['transports'][(a61_0x281655(0x16e))](a61_0x5e2b3e),'loggerFile':new winston[(a61_0x281655(0x16c))]['File']({'filename':path['join'](logDir,a61_0x281655(0x17f))}),'debugLoggerFile':new winston[(a61_0x281655(0x16c))][(a61_0x281655(0x165))]({'filename':path[a61_0x281655(0x16f)](os[a61_0x281655(0x172)](),a61_0x281655(0x17b)),'level':a61_0x281655(0x171)})},a61_0x57c369={};function a61_0x3b2a(){const _0x55ac8d=['debugLoggerFile','format','path','fileLogger','winston','File','1333240ODCbQq','1139348eJuHLs','\x20-\x20','566222eqZHyq','YYYY-MM-DD\x20HH:mm:ss','log','transports','level','Console','join','mkdirSync','debug','tmpdir','colorize','45HcHCuE','2323436xFbgoi','logDir','366PGWato','message','createLogger','name','/usage-debug.log','4381888sJUhaJ','1422525lAjLxq','65410hcqMMW','/usage.log','printf','existsSync','loggerFile'];a61_0x3b2a=function(){return _0x55ac8d;};return a61_0x3b2a();}a61_0x57c369[a61_0x281655(0x184)]=a61_0x281655(0x16a);const a61_0x24bed4={};a61_0x24bed4[a61_0x281655(0x16d)]=!![];const winstonLoggerParams={'format':winston['format']['combine'](winston['format']['timestamp'](a61_0x57c369),winston['format'][a61_0x281655(0x173)](a61_0x24bed4),winston[a61_0x281655(0x184)][a61_0x281655(0x180)](_0xd39d59=>_0xd39d59['timestamp']+a61_0x281655(0x168)+_0xd39d59['level']+':\x20'+_0xd39d59[a61_0x281655(0x178)])),'transports':[transports['loggerConsole'],transports[a61_0x281655(0x182)],transports[a61_0x281655(0x183)]]},a61_0x7458cd={};a61_0x7458cd[a61_0x281655(0x16c)]=[transports['loggerFile']];const winstonFileLoggerParams=a61_0x7458cd;function a61_0x2017(_0x272265,_0x21dbc3){const _0x3b2a76=a61_0x3b2a();return a61_0x2017=function(_0x2017f8,_0x506f2c){_0x2017f8=_0x2017f8-0x165;let _0x541796=_0x3b2a76[_0x2017f8];return _0x541796;},a61_0x2017(_0x272265,_0x21dbc3);}exports['winstonLogger']=new winston[(a61_0x281655(0x179))](winstonLoggerParams),exports[a61_0x281655(0x186)]=new winston['createLogger'](winstonFileLoggerParams),exports[a61_0x281655(0x176)]=logDir,exports[a61_0x281655(0x16c)]=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a62_0x46d4(){var _0x30e4b9=['3513255eNqaEE','emit','fuCRA','4MXtxEZ','4282555JPqrMi','hFTet','90dsTqDV','WsZtH','gHpTv','rMvGl','toISOString','quitCount_','iplKC','156lbPjhy','wtDMt','patchScreenshot','SnKMe','7623110uPMLGa','BS_TESTOPS_ALLOW_SCREENSHOTS','472pWvyUp','env','2200644CDKXAz','TEST_SCREENSHOT','split','34VrGrzx','251006rXohtF','11eMMpQu','HDIaq','xujGi','initQuit','100998tHmZsu','bs:addLog:','patchQuit','overrideTakeScreenshot','initScreenshot','quit','21640ovxaeN','IEMdF','mQUxl'];a62_0x46d4=function(){return _0x30e4b9;};return a62_0x46d4();}var a62_0x47b438=a62_0x5ec7;function a62_0x5ec7(_0x215845,_0x37c1e4){var _0x46d45a=a62_0x46d4();return a62_0x5ec7=function(_0x5ec7e1,_0x4f567e){_0x5ec7e1=_0x5ec7e1-0xca;var _0x521e07=_0x46d45a[_0x5ec7e1];return _0x521e07;},a62_0x5ec7(_0x215845,_0x37c1e4);}(function(_0x2598d7,_0x127b16){var _0x40e471=a62_0x5ec7,_0x1344ec=_0x2598d7();while(!![]){try{var _0x4a9eab=-parseInt(_0x40e471(0xe4))/0x1*(-parseInt(_0x40e471(0xf0))/0x2)+-parseInt(_0x40e471(0xcc))/0x3*(-parseInt(_0x40e471(0xcf))/0x4)+parseInt(_0x40e471(0xd0))/0x5+parseInt(_0x40e471(0xd2))/0x6*(parseInt(_0x40e471(0xe5))/0x7)+-parseInt(_0x40e471(0xdf))/0x8*(-parseInt(_0x40e471(0xea))/0x9)+-parseInt(_0x40e471(0xdd))/0xa*(parseInt(_0x40e471(0xe6))/0xb)+-parseInt(_0x40e471(0xe1))/0xc*(parseInt(_0x40e471(0xd9))/0xd);if(_0x4a9eab===_0x127b16)break;else _0x1344ec['push'](_0x1344ec['shift']());}catch(_0xe7972){_0x1344ec['push'](_0x1344ec['shift']());}}}(a62_0x46d4,0x9a6a9),exports[a62_0x47b438(0xed)]=_0x41fc1b=>{var _0x163d12=a62_0x47b438,_0x58cc87={'HDIaq':'0|4|3|2|1|5','IQNao':_0x163d12(0xe2),'rMvGl':function(_0x36b39a,_0x5be4e6){return _0x36b39a(_0x5be4e6);},'pgvLk':function(_0x4c3b1f,_0x157101){return _0x4c3b1f!==_0x157101;},'SnKMe':'true'},_0x347680=_0x58cc87[_0x163d12(0xe7)][_0x163d12(0xe3)]('|'),_0x16c9e5=0x0;while(!![]){switch(_0x347680[_0x16c9e5++]){case'0':var _0x205cad={'PtNcv':_0x58cc87['IQNao'],'IEMdF':function(_0x5efee2,_0x27cab1){var _0x56579f=_0x163d12;return _0x58cc87[_0x56579f(0xd5)](_0x5efee2,_0x27cab1);}};continue;case'1':_0x41fc1b[_0x163d12(0xee)]=_0x41fc1b['takeScreenshot'];continue;case'2':_0x41fc1b[_0x163d12(0xdb)]=!![];continue;case'3':if(_0x41fc1b['patchScreenshot'])return;continue;case'4':if(_0x58cc87['pgvLk'](process[_0x163d12(0xe0)][_0x163d12(0xde)],_0x58cc87[_0x163d12(0xdc)]))return;continue;case'5':_0x41fc1b['takeScreenshot']=()=>{var _0x3b649c={'hFTet':_0x205cad['PtNcv'],'gHpTv':function(_0xb35a83,_0xa380d3){var _0x157ccd=a62_0x5ec7;return _0x205cad[_0x157ccd(0xca)](_0xb35a83,_0xa380d3);}};return new Promise(function(_0x31894b,_0x444008){var _0x16f9e2=a62_0x5ec7,_0x550ca1={'ibpGb':_0x3b649c[_0x16f9e2(0xd1)],'fuCRA':function(_0x2391de,_0x51377f){var _0x202ed6=_0x16f9e2;return _0x3b649c[_0x202ed6(0xd4)](_0x2391de,_0x51377f);}};_0x41fc1b[_0x16f9e2(0xee)]()['then'](_0x4e2cfa=>{var _0x3fbebc=_0x16f9e2;process[_0x3fbebc(0xcd)](_0x3fbebc(0xeb)+process['pid'],{'timestamp':new Date()[_0x3fbebc(0xd6)](),'message':_0x4e2cfa,'kind':_0x550ca1['ibpGb']}),_0x550ca1[_0x3fbebc(0xce)](_0x31894b,_0x4e2cfa);});});};continue;}break;}},exports['overrideQuit']=(_0x23aac3,_0x3e548c=null)=>{var _0x4970bc=a62_0x47b438,_0x479b8e={'dIwCq':'2|4|1|0|3','ZzKSY':function(_0x112968){return _0x112968();},'iplKC':function(_0x52a92e,_0x56bafe){return _0x52a92e>_0x56bafe;},'xujGi':function(_0x19cdbf,_0x26cd86){return _0x19cdbf>_0x26cd86;}},_0x39e5c2=_0x479b8e['dIwCq'][_0x4970bc(0xe3)]('|'),_0x5cb3a7=0x0;while(!![]){switch(_0x39e5c2[_0x5cb3a7++]){case'0':_0x23aac3[_0x4970bc(0xe9)]=_0x23aac3[_0x4970bc(0xef)];continue;case'1':_0x23aac3[_0x4970bc(0xec)]=!![];continue;case'2':var _0x512189={'wtDMt':function(_0x1e14a6){return _0x479b8e['ZzKSY'](_0x1e14a6);},'WsZtH':function(_0x2eb1d7,_0x35b9c3){var _0xe15e05=_0x4970bc;return _0x479b8e[_0xe15e05(0xd8)](_0x2eb1d7,_0x35b9c3);},'mQUxl':function(_0x47236b,_0x2af688){var _0x507c56=_0x4970bc;return _0x479b8e[_0x507c56(0xe8)](_0x47236b,_0x2af688);}};continue;case'3':_0x23aac3[_0x4970bc(0xef)]=()=>{var _0x2b0cbf=_0x4970bc;if(_0x3e548c){_0x3e548c[_0x2b0cbf(0xd7)]+=0x1;if(_0x512189[_0x2b0cbf(0xd3)](_0x3e548c[_0x2b0cbf(0xd7)],0x1))return _0x23aac3[_0x2b0cbf(0xe9)]();}else{_0x23aac3[_0x2b0cbf(0xd7)]+=0x1;if(_0x512189[_0x2b0cbf(0xcb)](_0x23aac3[_0x2b0cbf(0xd7)],0x1))return _0x23aac3[_0x2b0cbf(0xe9)]();}return new Promise(function(_0xbd1dd3){var _0x31091c=_0x2b0cbf;_0x512189[_0x31091c(0xda)](_0xbd1dd3);});};continue;case'4':if(_0x23aac3[_0x4970bc(0xec)])return;continue;}break;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a63_0x2205(){const _0x4168ba=['89186IrqjUU','78FiGUHy','QOMEA','Error\x20creating\x20percy\x20config:\x20','26204RJVPVt','percy.json','nodeRequest','fIGLA','app:exec','hLYjo','../logger','healthcheck','exec','dlupx','PERCY_TOKEN','stderr','Percy\x20config\x20created\x20at\x20','PWLCc','bpudx','createWriteStream','90LfEPBz','path','app','93128btSLNR','stdout','ebFxp','isProcessRunning','api/app_percy/get_project_token?name=','105gSprXB','292600vMTbcA','./PercyBinary','flags','writeFile','exports','token','33615UOAQmW','assign','stop','fetchPercyToken','isRunning','SbnHu','version','data',':start','sXtPV','tfhWn','debug','XRSnO','uxelQ','../helper','child_process','Percy\x20healthcheck\x20successful','percy.log','KUbYV','hWcCJ','push','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','join','341940bRXPpi','stringify','PERCY_SERVER_ADDRESS','&type=','percyOptions','tmpdir','oaJlw','OHhom','MuSiX','start','eLWzF','env','http://localhost:5338','winstonLogger','pCIbe','1198536pBVcDn','GET','error','pipe'];a63_0x2205=function(){return _0x4168ba;};return a63_0x2205();}function a63_0x12f8(_0x20c0e9,_0x1bc463){const _0x2205a4=a63_0x2205();return a63_0x12f8=function(_0x12f844,_0x5377a0){_0x12f844=_0x12f844-0x111;let _0x76fb4f=_0x2205a4[_0x12f844];return _0x76fb4f;},a63_0x12f8(_0x20c0e9,_0x1bc463);}const a63_0x400bb1=a63_0x12f8;(function(_0x38f60a,_0xbd9a9){const _0x437734=a63_0x12f8,_0x26b72f=_0x38f60a();while(!![]){try{const _0x5b13b5=-parseInt(_0x437734(0x150))/0x1+parseInt(_0x437734(0x12d))/0x2+-parseInt(_0x437734(0x149))/0x3*(-parseInt(_0x437734(0x131))/0x4)+-parseInt(_0x437734(0x14a))/0x5+parseInt(_0x437734(0x12e))/0x6*(parseInt(_0x437734(0x144))/0x7)+parseInt(_0x437734(0x129))/0x8+-parseInt(_0x437734(0x141))/0x9*(parseInt(_0x437734(0x11a))/0xa);if(_0x5b13b5===_0xbd9a9)break;else _0x26b72f['push'](_0x26b72f['shift']());}catch(_0x3e26b4){_0x26b72f['push'](_0x26b72f['shift']());}}}(a63_0x2205,0x27b0c));const fs=require('fs'),path=require(a63_0x400bb1(0x142)),os=require('os'),{spawn}=require(a63_0x400bb1(0x112)),helper=require(a63_0x400bb1(0x111)),logger=require(a63_0x400bb1(0x137))[a63_0x400bb1(0x127)],{logDir}=require(a63_0x400bb1(0x137)),PercyBinary=require(a63_0x400bb1(0x14b));class Percy{#logfile=path[a63_0x400bb1(0x119)](logDir,a63_0x400bb1(0x114));#address=process[a63_0x400bb1(0x125)][a63_0x400bb1(0x11c)]||a63_0x400bb1(0x126);#binaryPath=null;#config=null;#proc=null;#isApp=![];['isProcessRunning']=![];constructor(_0x1d313b){const _0xda1389=a63_0x400bb1;this.#config=_0x1d313b,!!_0x1d313b[_0xda1389(0x143)]&&(this.#isApp=!![]);}async #getBinaryPath(){if(!this.#binaryPath){const _0x2e3ee4=new PercyBinary();this.#binaryPath=await _0x2e3ee4['getBinaryPath'](this.#config);}return this.#binaryPath;}async #sleep(_0x4ccf38){return new Promise(_0x40ef63=>setTimeout(_0x40ef63,_0x4ccf38));}async[a63_0x400bb1(0x138)](){const _0x514449=a63_0x400bb1,_0x138028={};_0x138028['uxelQ']=_0x514449(0x12a),_0x138028[_0x514449(0x121)]='percy/healthcheck';const _0x52f3d4=_0x138028;try{const _0x200821=await helper[_0x514449(0x133)](_0x52f3d4[_0x514449(0x15d)],_0x52f3d4[_0x514449(0x121)],null,null,this.#address);if(_0x200821)return!![];}catch(_0x3200c8){return![];}}async[a63_0x400bb1(0x123)](){const _0x18b1ea=a63_0x400bb1,_0x44d35b={'ebFxp':_0x18b1ea(0x135),'sXtPV':_0x18b1ea(0x139),'bpudx':function(_0x3e9ba9,_0x164649,_0x5bed2f,_0x1e4c09){return _0x3e9ba9(_0x164649,_0x5bed2f,_0x1e4c09);},'tfhWn':'close','eLWzF':_0x18b1ea(0x113)},_0x370edb=await this.#getBinaryPath(),_0x319c3f={};_0x319c3f[_0x18b1ea(0x14c)]='a';const _0x160923=fs[_0x18b1ea(0x140)](this.#logfile,_0x319c3f),_0x3b3959=await this[_0x18b1ea(0x153)](),_0x4ed653=await this['createPercyConfig']();if(!_0x3b3959)return![];const _0x1a97f1=[(this.#isApp?_0x44d35b[_0x18b1ea(0x146)]:_0x44d35b[_0x18b1ea(0x159)])+_0x18b1ea(0x158)];_0x4ed653&&_0x1a97f1[_0x18b1ea(0x117)]('-c',_0x4ed653);const _0x1df7b3={};_0x1df7b3[_0x18b1ea(0x13b)]=_0x3b3959,this.#proc=_0x44d35b[_0x18b1ea(0x13f)](spawn,_0x370edb,_0x1a97f1,{'env':Object[_0x18b1ea(0x151)](process['env'],_0x1df7b3)}),this.#proc[_0x18b1ea(0x145)]['pipe'](_0x160923),this.#proc[_0x18b1ea(0x13c)][_0x18b1ea(0x12c)](_0x160923),this[_0x18b1ea(0x147)]=!![];var _0x4893f4=this;this.#proc['on'](_0x44d35b[_0x18b1ea(0x15a)],function(_0x563355){const _0x307a03=_0x18b1ea;_0x4893f4[_0x307a03(0x147)]=![];});do{const _0x38cb7e=await this[_0x18b1ea(0x138)]();if(_0x38cb7e)return logger['debug'](_0x44d35b[_0x18b1ea(0x124)]),!![];await this.#sleep(0x3e8);}while(this[_0x18b1ea(0x147)]);return![];}async[a63_0x400bb1(0x152)](){const _0x57cbb4={'hWcCJ':function(_0x320844,_0x5ba89b){return _0x320844(_0x5ba89b);},'PHAsL':function(_0x27f862,_0x2b1529,_0x1ffee1){return _0x27f862(_0x2b1529,_0x1ffee1);},'KUbYV':'exec:stop','pCIbe':'close'},_0x57d9bb=await this.#getBinaryPath();return new Promise((_0x2aae7e,_0x4cd20e)=>{const _0x53843d=a63_0x12f8,_0x4ac9d1={'PWLCc':function(_0xbb8cea,_0x111036){const _0x5de1f9=a63_0x12f8;return _0x57cbb4[_0x5de1f9(0x116)](_0xbb8cea,_0x111036);}},_0x84dcf1=_0x57cbb4['PHAsL'](spawn,_0x57d9bb,[_0x57cbb4[_0x53843d(0x115)]]);_0x84dcf1['on'](_0x57cbb4[_0x53843d(0x128)],_0x356e64=>{const _0xeae529=_0x53843d;this[_0xeae529(0x147)]=![],_0x4ac9d1[_0xeae529(0x13e)](_0x2aae7e,_0x356e64);});});}[a63_0x400bb1(0x154)](){const _0xe3a85a=a63_0x400bb1;return this[_0xe3a85a(0x147)];}async[a63_0x400bb1(0x153)](){const _0x1c2ebf=a63_0x400bb1,_0x369f4e={};_0x369f4e[_0x1c2ebf(0x15c)]=_0x1c2ebf(0x143),_0x369f4e[_0x1c2ebf(0x120)]='automate',_0x369f4e['SbnHu']=_0x1c2ebf(0x12a),_0x369f4e[_0x1c2ebf(0x12f)]='Percy\x20fetch\x20token\x20success';const _0x39cb5c=_0x369f4e,_0xcb46b4=this.#config['projectName'];try{const _0x59bd89=this.#isApp?_0x39cb5c['XRSnO']:_0x39cb5c[_0x1c2ebf(0x120)],_0x376271=await helper['nodeRequest'](_0x39cb5c[_0x1c2ebf(0x155)],_0x1c2ebf(0x148)+_0xcb46b4+_0x1c2ebf(0x11d)+_0x59bd89,{},this.#config),_0x561629=_0x376271[_0x1c2ebf(0x157)];return logger['debug'](_0x39cb5c[_0x1c2ebf(0x12f)]),_0x561629[_0x1c2ebf(0x14f)];}catch(_0x3e956d){return logger[_0x1c2ebf(0x12b)](_0x1c2ebf(0x118)+_0x3e956d),null;}}async['createPercyConfig'](){const _0xce0054=a63_0x400bb1,_0x5a8447={'fIGLA':function(_0x1e91bc,_0x178564){return _0x1e91bc(_0x178564);},'qYuAS':function(_0x163d29,_0x1511d7){return _0x163d29+_0x1511d7;},'MuSiX':_0xce0054(0x13d),'dlupx':function(_0x55931c,_0x36c295){return _0x55931c(_0x36c295);},'hLYjo':_0xce0054(0x132)};if(!this.#config[_0xce0054(0x11e)])return null;const _0x5081b6=path['join'](os[_0xce0054(0x11f)](),_0x5a8447[_0xce0054(0x136)]),_0x23f75f=this.#config[_0xce0054(0x11e)];return!_0x23f75f['version']&&(_0x23f75f[_0xce0054(0x156)]='2'),new Promise((_0x192ce6,_0x144e54)=>{const _0x5be9c7=_0xce0054;fs[_0x5be9c7(0x14d)](_0x5081b6,JSON[_0x5be9c7(0x11b)](_0x23f75f),_0x587ed6=>{const _0x14dc6f=_0x5be9c7;_0x587ed6&&(logger['error'](_0x14dc6f(0x130)+_0x587ed6),_0x5a8447[_0x14dc6f(0x134)](_0x192ce6,null)),logger[_0x14dc6f(0x15b)](_0x5a8447['qYuAS'](_0x5a8447[_0x14dc6f(0x122)],_0x5081b6)),_0x5a8447[_0x14dc6f(0x13a)](_0x192ce6,_0x5081b6);});});}}module[a63_0x400bb1(0x14e)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a62_0x3a2407=a62_0xfa75;(function(_0x51730d,_0x57f5a8){const _0x34c042=a62_0xfa75,_0x40074b=_0x51730d();while(!![]){try{const _0x17b849=-parseInt(_0x34c042(0x15b))/0x1+-parseInt(_0x34c042(0xef))/0x2+-parseInt(_0x34c042(0xfa))/0x3*(parseInt(_0x34c042(0x110))/0x4)+parseInt(_0x34c042(0x14f))/0x5*(-parseInt(_0x34c042(0xf7))/0x6)+parseInt(_0x34c042(0xf8))/0x7*(-parseInt(_0x34c042(0x11b))/0x8)+-parseInt(_0x34c042(0xf5))/0x9*(-parseInt(_0x34c042(0x13b))/0xa)+-parseInt(_0x34c042(0x10e))/0xb*(-parseInt(_0x34c042(0x132))/0xc);if(_0x17b849===_0x57f5a8)break;else _0x40074b['push'](_0x40074b['shift']());}catch(_0x5c4d1a){_0x40074b['push'](_0x40074b['shift']());}}}(a62_0x5371,0xaf995));function a62_0xfa75(_0x24dae8,_0x49e26d){const _0x537194=a62_0x5371();return a62_0xfa75=function(_0xfa755d,_0x4240c0){_0xfa755d=_0xfa755d-0xe6;let _0x428af4=_0x537194[_0xfa755d];return _0x428af4;},a62_0xfa75(_0x24dae8,_0x49e26d);}const {https}=require('follow-redirects'),url=require('url'),yauzl=require(a62_0x3a2407(0x11e)),fs=require('fs'),path=require(a62_0x3a2407(0x159)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require(a62_0x3a2407(0xf0)),logger=require('../logger')[a62_0x3a2407(0x101)];class PercyBinary{#hostOS=process[a62_0x3a2407(0x13c)];#httpPath=null;#binaryName=a62_0x3a2407(0x15a);#orderedPaths=[path[a62_0x3a2407(0x114)](this.#homedir(),'.browserstack'),process['cwd'](),os[a62_0x3a2407(0x146)]()];constructor(){const _0xfd6d8a=a62_0x3a2407,_0x3b1f20={};_0x3b1f20[_0xfd6d8a(0x12b)]=_0xfd6d8a(0x107),_0x3b1f20[_0xfd6d8a(0x129)]=function(_0x1066c6,_0xc54a25){return _0x1066c6+_0xc54a25;},_0x3b1f20[_0xfd6d8a(0x141)]=_0xfd6d8a(0xed),_0x3b1f20[_0xfd6d8a(0x11a)]=function(_0x5cb4a6,_0x48cebb){return _0x5cb4a6+_0x48cebb;},_0x3b1f20[_0xfd6d8a(0x156)]=_0xfd6d8a(0x122),_0x3b1f20['epvzv']='percy.exe',_0x3b1f20[_0xfd6d8a(0x115)]='/percy-linux.zip';const _0x63023b=_0x3b1f20,_0x55f613=_0x63023b[_0xfd6d8a(0x12b)];if(this.#hostOS[_0xfd6d8a(0x103)](/darwin|mac os/i))this.#httpPath=_0x63023b[_0xfd6d8a(0x129)](_0x55f613,_0x63023b['CsArK']);else this.#hostOS[_0xfd6d8a(0x103)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x63023b[_0xfd6d8a(0x11a)](_0x55f613,_0x63023b[_0xfd6d8a(0x156)]),this.#binaryName=_0x63023b['epvzv']):this.#httpPath=_0x63023b[_0xfd6d8a(0x11a)](_0x55f613,_0x63023b[_0xfd6d8a(0x115)]);}#getAvailableDirs(){const _0x3fa249=a62_0x3a2407,_0x58ef7d={};_0x58ef7d[_0x3fa249(0x12c)]=function(_0x4d4e0e,_0x3b26d4){return _0x4d4e0e<_0x3b26d4;},_0x58ef7d[_0x3fa249(0x153)]=_0x3fa249(0x102);const _0x344f6e=_0x58ef7d;for(var _0xc6b77f=0x0;_0x344f6e[_0x3fa249(0x12c)](_0xc6b77f,this.#orderedPaths[_0x3fa249(0x130)]);_0xc6b77f++){var _0xd964c7=this.#orderedPaths[_0xc6b77f];if(this.#makePath(_0xd964c7))return _0xd964c7;}throw new Error(_0x344f6e[_0x3fa249(0x153)]);}#makePath(_0x4299e8){const _0x7822b=a62_0x3a2407;try{return!this.#checkPath(_0x4299e8)&&fs[_0x7822b(0xfd)](_0x4299e8),!![];}catch{return![];}}#checkPath(_0xced17f,_0x2a3cfb){const _0x5ce10a=a62_0x3a2407,_0x5c4e9a={};_0x5c4e9a['fvbPB']=function(_0xfa4310,_0x4a323e){return _0xfa4310|_0x4a323e;},_0x5c4e9a[_0x5ce10a(0xf9)]=function(_0xdecb72,_0x5738e4){return _0xdecb72!==_0x5738e4;},_0x5c4e9a[_0x5ce10a(0x119)]='undefined';const _0x1b8ce6=_0x5c4e9a;_0x2a3cfb=_0x2a3cfb||_0x1b8ce6[_0x5ce10a(0x13e)](fs[_0x5ce10a(0x147)],fs[_0x5ce10a(0x10c)]);try{return fs[_0x5ce10a(0x10b)](_0xced17f,_0x2a3cfb),!![];}catch(_0xe1319f){if(_0x1b8ce6[_0x5ce10a(0xf9)](typeof fs[_0x5ce10a(0x10b)],_0x1b8ce6[_0x5ce10a(0x119)]))return![];try{return fs[_0x5ce10a(0x165)](_0xced17f),!![];}catch(_0x5bb46a){return![];}}}async[a62_0x3a2407(0x134)](_0x35002e){const _0x17b269=a62_0x3a2407,_0x676100={};_0x676100['ElcgL']='Corrupt\x20percy\x20binary,\x20retrying';const _0x2d693b=_0x676100;var _0x533e43=this.#getAvailableDirs(),_0x20fb1c=path['join'](_0x533e43,this.#binaryName);if(this.#checkPath(_0x20fb1c,fs[_0x17b269(0x12a)]))return _0x20fb1c;const _0x49e52a=await this[_0x17b269(0xf2)](_0x35002e,_0x533e43),_0x257646=await this[_0x17b269(0x161)](_0x49e52a);if(!_0x257646)return logger['error'](_0x2d693b['ElcgL']),await this['download'](_0x35002e,_0x533e43);return _0x49e52a;}async['validateBinary'](_0x5bd42f){const _0x1e4fa2={'feWhy':function(_0x2ae0ca,_0x5ec5ab){return _0x2ae0ca(_0x5ec5ab);},'udoxi':function(_0x118da8,_0x5b2162){return _0x118da8(_0x5b2162);},'sDtjR':function(_0x29e599,_0x102e66,_0x214f4e){return _0x29e599(_0x102e66,_0x214f4e);},'GTKcq':'--version','SnMMp':'data','bVxPA':'close'},_0x431caa=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x11d287,_0x42b27f)=>{const _0x4e15e3=a62_0xfa75,_0x204627={'IikXF':function(_0x30e7f3,_0xa0d4cb){const _0x11d042=a62_0xfa75;return _0x1e4fa2[_0x11d042(0xea)](_0x30e7f3,_0xa0d4cb);}},_0x4a6660=_0x1e4fa2[_0x4e15e3(0x118)](spawn,_0x5bd42f,[_0x1e4fa2[_0x4e15e3(0x152)]]);_0x4a6660[_0x4e15e3(0x164)]['on'](_0x1e4fa2[_0x4e15e3(0x12d)],_0x1e890e=>{const _0x4bc810=_0x4e15e3;_0x431caa[_0x4bc810(0xf6)](_0x1e890e)&&_0x1e4fa2[_0x4bc810(0x12e)](_0x11d287,!![]);}),_0x4a6660['on'](_0x1e4fa2['bVxPA'],()=>{const _0x1494a5=_0x4e15e3;_0x204627[_0x1494a5(0x128)](_0x11d287,![]);});});}[a62_0x3a2407(0xf2)](_0x1bf63f,_0x259a6f){const _0x28c02f=a62_0x3a2407,_0x45d603={'BJULi':_0x28c02f(0x117),'CrVwR':function(_0x4bf152,_0x2f0c0a){return _0x4bf152(_0x2f0c0a);},'IkDWz':function(_0x1d78a7,_0xe1d599){return _0x1d78a7===_0xe1d599;},'NlUGY':function(_0x2d5fea,_0x9ba656){return _0x2d5fea(_0x9ba656);},'dGlmF':_0x28c02f(0x14c),'ffGqi':_0x28c02f(0x138),'EXTPH':function(_0x54c65c,_0x17672e){return _0x54c65c(_0x17672e);},'LtuOE':'entry','IvYEm':_0x28c02f(0x16b),'hxWUC':'Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','DLqqO':'close','lRSRM':'Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','Qqwsl':function(_0x1e94d5,_0x520788){return _0x1e94d5+_0x520788;},'WVuwW':_0x28c02f(0xe7),'gSWUa':_0x28c02f(0x14a)};!this.#checkPath(_0x259a6f)&&fs['mkdirSync'](_0x259a6f);const _0x3d6ab4=this.#binaryName,_0x29c74d=path[_0x28c02f(0x114)](_0x259a6f,_0x45d603['Qqwsl'](_0x3d6ab4,_0x45d603['WVuwW'])),_0x3ff175=path[_0x28c02f(0x114)](_0x259a6f,_0x3d6ab4),_0x497f8f=fs[_0x28c02f(0x111)](_0x29c74d),_0x2a6a41=url[_0x28c02f(0x121)](this.#httpPath);if(_0x1bf63f[_0x28c02f(0x104)]&&_0x1bf63f[_0x28c02f(0x13d)]){const _0x544eaf={};_0x544eaf['host']=_0x1bf63f[_0x28c02f(0x104)],_0x544eaf[_0x28c02f(0x123)]=_0x1bf63f[_0x28c02f(0x13d)],_0x2a6a41[_0x28c02f(0x137)]=new HttpsProxyAgent(_0x544eaf);}if(_0x1bf63f[_0x28c02f(0x140)])try{_0x2a6a41['ca']=fs[_0x28c02f(0xf3)](_0x1bf63f[_0x28c02f(0x140)]);}catch(_0x408d88){logger[_0x28c02f(0x16b)](_0x45d603[_0x28c02f(0xeb)],_0x408d88);}return new Promise((_0x34b09e,_0x46179a)=>{const _0x55edd2=_0x28c02f,_0x411bb2={'Nlsvx':_0x45d603[_0x55edd2(0x16c)],'itAQb':function(_0x7baa48,_0x4c4c08){const _0x43f420=_0x55edd2;return _0x45d603[_0x43f420(0x11f)](_0x7baa48,_0x4c4c08);},'QqBOK':function(_0x4e404f,_0x53a296){const _0x592579=_0x55edd2;return _0x45d603[_0x592579(0x15c)](_0x4e404f,_0x53a296);},'mTqJg':function(_0x2f57db,_0x84b8e7){return _0x45d603['CrVwR'](_0x2f57db,_0x84b8e7);},'qJqwF':function(_0x4105c2,_0x4eb942){const _0x53d750=_0x55edd2;return _0x45d603[_0x53d750(0x168)](_0x4105c2,_0x4eb942);},'jIwOz':_0x45d603[_0x55edd2(0x163)],'FBpYI':_0x45d603['ffGqi'],'twpGj':function(_0x4f6989,_0x377725){const _0x2a8c78=_0x55edd2;return _0x45d603[_0x2a8c78(0x157)](_0x4f6989,_0x377725);},'VHNPU':_0x45d603['LtuOE'],'EQWjC':_0x45d603['IvYEm'],'lUkRl':_0x45d603[_0x55edd2(0x15f)],'SpYVX':function(_0x3376a7,_0x4d18d8){const _0x29d1fc=_0x55edd2;return _0x45d603[_0x29d1fc(0x11f)](_0x3376a7,_0x4d18d8);},'WDIWk':_0x45d603['DLqqO'],'iXqif':_0x45d603[_0x55edd2(0x126)]};https[_0x55edd2(0x14d)](_0x2a6a41,function(_0x249f6f){const _0x4dfd85=_0x55edd2,_0x403fca={'wCdQl':_0x411bb2[_0x4dfd85(0x12f)],'IIAQk':function(_0x1ef9d9,_0x3057ea){return _0x411bb2['SpYVX'](_0x1ef9d9,_0x3057ea);}};_0x249f6f[_0x4dfd85(0x135)](_0x497f8f),_0x249f6f['on'](_0x411bb2[_0x4dfd85(0xfb)],function(_0x387885){const _0x6dbd4b=_0x4dfd85;logger[_0x6dbd4b(0x16b)](_0x411bb2[_0x6dbd4b(0xe9)],_0x387885),_0x411bb2[_0x6dbd4b(0x155)](_0x46179a,_0x387885);}),_0x497f8f['on'](_0x411bb2[_0x4dfd85(0xfb)],function(_0x567634){const _0x4fbabc=_0x4dfd85;logger[_0x4fbabc(0x16b)](_0x403fca['wCdQl'],_0x567634),_0x403fca[_0x4fbabc(0x100)](_0x46179a,_0x567634);}),_0x497f8f['on'](_0x411bb2[_0x4dfd85(0x108)],function(){const _0x3c82c2=_0x4dfd85,_0x404e42={'PRbaJ':function(_0x43f5d4,_0x4ee85f){return _0x411bb2['QqBOK'](_0x43f5d4,_0x4ee85f);},'hyIji':function(_0x498f02,_0x20dd3d){const _0x49fbfe=a62_0xfa75;return _0x411bb2[_0x49fbfe(0x169)](_0x498f02,_0x20dd3d);},'KplKz':function(_0x3a814c,_0x3bf5da){const _0x44bfd1=a62_0xfa75;return _0x411bb2[_0x44bfd1(0x155)](_0x3a814c,_0x3bf5da);},'gHFha':function(_0x480b16,_0x2668e6){const _0x36eded=a62_0xfa75;return _0x411bb2[_0x36eded(0x112)](_0x480b16,_0x2668e6);},'JFNzI':_0x411bb2[_0x3c82c2(0xf1)],'kWoIS':_0x411bb2[_0x3c82c2(0xee)],'pgcPA':function(_0x4a160d,_0x4f6f3a){return _0x411bb2['twpGj'](_0x4a160d,_0x4f6f3a);},'lhOPg':_0x411bb2['VHNPU'],'ePRCt':_0x411bb2[_0x3c82c2(0xfb)]},_0x4ba175={};_0x4ba175['lazyEntries']=!![],yauzl[_0x3c82c2(0xf4)](_0x29c74d,_0x4ba175,function(_0xb20ae2,_0x4b4194){const _0x220538=_0x3c82c2,_0x180a63={'kMpGy':function(_0x46c27a,_0x409c11){const _0xf4b47c=a62_0xfa75;return _0x404e42[_0xf4b47c(0x124)](_0x46c27a,_0x409c11);},'eSEkM':_0x404e42[_0x220538(0x13a)]};_0xb20ae2&&_0x404e42[_0x220538(0x13f)](_0x46179a,_0xb20ae2),_0x4b4194[_0x220538(0x150)](),_0x4b4194['on'](_0x404e42['lhOPg'],_0x1aa7d1=>{const _0x4f3cc9=_0x220538;if(/\/$/['test'](_0x1aa7d1['fileName']))_0x4b4194[_0x4f3cc9(0x150)]();else{const _0x22fa52=fs[_0x4f3cc9(0x111)](path[_0x4f3cc9(0x114)](_0x259a6f,_0x1aa7d1[_0x4f3cc9(0x167)]));_0x4b4194[_0x4f3cc9(0x160)](_0x1aa7d1,function(_0x3961a0,_0xfc79e3){const _0x92a844=_0x4f3cc9;_0x3961a0&&_0x180a63['kMpGy'](_0x46179a,_0xb20ae2),_0xfc79e3['on'](_0x180a63[_0x92a844(0x162)],function(){const _0x36ddbe=_0x92a844;_0x22fa52[_0x36ddbe(0x166)](),_0x4b4194[_0x36ddbe(0x150)]();}),_0xfc79e3['pipe'](_0x22fa52);}),_0x404e42[_0x4f3cc9(0xfe)](_0x1aa7d1[_0x4f3cc9(0x167)],_0x3d6ab4)&&_0x4b4194[_0x4f3cc9(0x166)]();}}),_0x4b4194['on'](_0x404e42[_0x220538(0x120)],_0x7fe6b3=>{const _0xa152eb=_0x220538;_0x404e42[_0xa152eb(0x124)](_0x46179a,_0x7fe6b3);}),_0x4b4194[_0x220538(0x10d)](_0x404e42[_0x220538(0x13a)],()=>{const _0x1fc93e=_0x220538,_0x40f803={'Afomz':function(_0x20d976,_0x549064){const _0x51db0b=a62_0xfa75;return _0x404e42[_0x51db0b(0xff)](_0x20d976,_0x549064);},'ZgRHv':function(_0x381dd7,_0x56fb47){return _0x404e42['gHFha'](_0x381dd7,_0x56fb47);}};fs['chmod'](_0x3ff175,_0x404e42[_0x1fc93e(0x106)],function(_0x5dc4eb){const _0x21b6e3=_0x1fc93e;_0x5dc4eb&&_0x40f803[_0x21b6e3(0x113)](_0x46179a,_0x5dc4eb),_0x40f803[_0x21b6e3(0x143)](_0x34b09e,_0x3ff175);}),_0x4b4194[_0x1fc93e(0x166)]();});});});})['on'](_0x45d603[_0x55edd2(0x116)],function(_0x3410bf){const _0x52378a=_0x55edd2;logger[_0x52378a(0x16b)](_0x411bb2['iXqif'],_0x3410bf),_0x411bb2[_0x52378a(0x14b)](_0x46179a,_0x3410bf);});});}#homedir(){const _0x49badd=a62_0x3a2407,_0x3e7ce1={};_0x3e7ce1[_0x49badd(0x139)]=function(_0x42fe51,_0x217d28){return _0x42fe51===_0x217d28;},_0x3e7ce1[_0x49badd(0x10f)]=_0x49badd(0x144),_0x3e7ce1['hFdcV']=_0x49badd(0x151),_0x3e7ce1[_0x49badd(0x11d)]=function(_0x130083,_0x1639f5){return _0x130083+_0x1639f5;},_0x3e7ce1[_0x49badd(0x125)]=_0x49badd(0x148),_0x3e7ce1['GMxjs']=function(_0x1caa2b,_0x4ec76b){return _0x1caa2b+_0x4ec76b;},_0x3e7ce1[_0x49badd(0x109)]=_0x49badd(0x149),_0x3e7ce1[_0x49badd(0xec)]=_0x49badd(0xfc),_0x3e7ce1[_0x49badd(0x154)]=function(_0x308913,_0x1ae3f1){return _0x308913===_0x1ae3f1;},_0x3e7ce1[_0x49badd(0x10a)]=_0x49badd(0x158),_0x3e7ce1[_0x49badd(0x14e)]=function(_0x5356c3,_0x3f938a){return _0x5356c3+_0x3f938a;},_0x3e7ce1[_0x49badd(0x105)]='/home/',_0x3e7ce1[_0x49badd(0x15d)]=function(_0x49b4e8,_0x3e1816){return _0x49b4e8||_0x3e1816;};const _0xa43c15=_0x3e7ce1;if(_0xa43c15[_0x49badd(0x139)](typeof os[_0x49badd(0x127)],_0xa43c15['zCwKV']))return os['homedir']();const _0x8dbd6a=process['env'],_0xabea05=_0x8dbd6a[_0x49badd(0x131)],_0x5399f5=_0x8dbd6a[_0x49badd(0x142)]||_0x8dbd6a[_0x49badd(0x133)]||_0x8dbd6a[_0x49badd(0x16a)]||_0x8dbd6a['USERNAME'];if(_0xa43c15[_0x49badd(0x139)](process[_0x49badd(0x13c)],_0xa43c15[_0x49badd(0xe8)]))return _0x8dbd6a[_0x49badd(0x15e)]||_0xa43c15['HwNlD'](_0x8dbd6a[_0x49badd(0x145)],_0x8dbd6a[_0x49badd(0xe6)])||_0xabea05||null;if(_0xa43c15[_0x49badd(0x139)](process['platform'],_0xa43c15[_0x49badd(0x125)]))return _0xabea05||(_0x5399f5?_0xa43c15['GMxjs'](_0xa43c15[_0x49badd(0x109)],_0x5399f5):null);if(_0xa43c15[_0x49badd(0x139)](process[_0x49badd(0x13c)],_0xa43c15[_0x49badd(0xec)]))return _0xabea05||(_0xa43c15['HLSXO'](process[_0x49badd(0x136)](),0x0)?_0xa43c15[_0x49badd(0x10a)]:_0x5399f5?_0xa43c15['XndqF'](_0xa43c15['QKvzt'],_0x5399f5):null);return _0xa43c15[_0x49badd(0x15d)](_0xabea05,null);}}module[a62_0x3a2407(0x11c)]=PercyBinary;function a62_0x5371(){const _0x5b16fc=['hyIji','lbRzQ','lRSRM','homedir','IikXF','qqmUS','X_OK','WNIYY','CcKex','SnMMp','feWhy','lUkRl','length','HOME','12AEPlde','USER','getBinaryPath','pipe','getuid','agent','end','KaClG','kWoIS','770960cmpjtZ','platform','proxyPort','fvbPB','pgcPA','useCaCertificate','CsArK','LOGNAME','ZgRHv','function','HOMEDRIVE','tmpdir','R_OK','darwin','/Users/','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','twpGj','0755','get','XndqF','20FuPzID','readEntry','win32','GTKcq','cCBeg','HLSXO','itAQb','feArS','EXTPH','/root','path','percy','569691dNhRZN','IkDWz','UxTzS','USERPROFILE','hxWUC','openReadStream','validateBinary','eSEkM','dGlmF','stdout','statSync','close','fileName','NlUGY','mTqJg','LNAME','error','BJULi','HOMEPATH','.zip','hFdcV','Nlsvx','udoxi','gSWUa','xKLlT','/percy-osx.zip','FBpYI','669336EUslOE','https-proxy-agent','jIwOz','download','readFileSync','open','90qHGaCu','test','447498iekxwF','7AoPBod','sTqtz','177843miRwrY','EQWjC','linux','mkdirSync','PRbaJ','KplKz','IIAQk','winstonLogger','Error\x20trying\x20to\x20download\x20percy\x20binary','match','proxyHost','QKvzt','JFNzI','https://github.com/percy/cli/releases/latest/download','WDIWk','vPJAx','HBdAg','accessSync','W_OK','once','19381813rPHMOE','zCwKV','16KINXIg','createWriteStream','qJqwF','Afomz','join','MPmkX','IvYEm','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','sDtjR','XNjaG','IdZFs','2991000iLvMLL','exports','HwNlD','yauzl','CrVwR','ePRCt','parse','/percy-win.zip','port'];a62_0x5371=function(){return _0x5b16fc;};return a62_0x5371();}
|
|
1
|
+
function a64_0x5796(_0x39df60,_0x8dfc49){const _0x175649=a64_0x1756();return a64_0x5796=function(_0x579616,_0x4d3565){_0x579616=_0x579616-0x173;let _0x349fca=_0x175649[_0x579616];return _0x349fca;},a64_0x5796(_0x39df60,_0x8dfc49);}const a64_0x4a3a01=a64_0x5796;(function(_0x3aef6b,_0x489e33){const _0x5429e8=a64_0x5796,_0x328c8d=_0x3aef6b();while(!![]){try{const _0x430ad9=parseInt(_0x5429e8(0x1c1))/0x1+parseInt(_0x5429e8(0x1bc))/0x2+-parseInt(_0x5429e8(0x1a5))/0x3+parseInt(_0x5429e8(0x186))/0x4*(-parseInt(_0x5429e8(0x1d1))/0x5)+-parseInt(_0x5429e8(0x1ec))/0x6*(-parseInt(_0x5429e8(0x191))/0x7)+parseInt(_0x5429e8(0x177))/0x8+-parseInt(_0x5429e8(0x18e))/0x9;if(_0x430ad9===_0x489e33)break;else _0x328c8d['push'](_0x328c8d['shift']());}catch(_0x27d4e0){_0x328c8d['push'](_0x328c8d['shift']());}}}(a64_0x1756,0x99234));const {https}=require(a64_0x4a3a01(0x1f5)),url=require(a64_0x4a3a01(0x1c8)),yauzl=require('yauzl'),fs=require('fs'),path=require(a64_0x4a3a01(0x1c7)),os=require('os'),{spawn}=require(a64_0x4a3a01(0x1d6)),HttpsProxyAgent=require('https-proxy-agent'),logger=require(a64_0x4a3a01(0x193))[a64_0x4a3a01(0x17a)];class PercyBinary{#hostOS=process[a64_0x4a3a01(0x17d)];#httpPath=null;#binaryName=a64_0x4a3a01(0x1d0);#orderedPaths=[path['join'](this.#homedir(),a64_0x4a3a01(0x1f3)),process[a64_0x4a3a01(0x187)](),os[a64_0x4a3a01(0x1d7)]()];constructor(){const _0x390c77=a64_0x4a3a01,_0x43ea86={};_0x43ea86[_0x390c77(0x1b5)]=_0x390c77(0x1e4),_0x43ea86['GMKEi']=function(_0x4ed616,_0x11fa5e){return _0x4ed616+_0x11fa5e;},_0x43ea86['blYsD']=_0x390c77(0x17f),_0x43ea86[_0x390c77(0x18d)]=_0x390c77(0x175),_0x43ea86['atRyO']='percy.exe',_0x43ea86[_0x390c77(0x1f4)]='/percy-linux.zip';const _0x934cf3=_0x43ea86,_0xd1b56b=_0x934cf3[_0x390c77(0x1b5)];if(this.#hostOS[_0x390c77(0x195)](/darwin|mac os/i))this.#httpPath=_0x934cf3['GMKEi'](_0xd1b56b,_0x934cf3[_0x390c77(0x19e)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x934cf3[_0x390c77(0x1b0)](_0xd1b56b,_0x934cf3[_0x390c77(0x18d)]),this.#binaryName=_0x934cf3[_0x390c77(0x1c9)]):this.#httpPath=_0x934cf3['GMKEi'](_0xd1b56b,_0x934cf3['qIEZJ']);}#getAvailableDirs(){const _0x4b7e0e=a64_0x4a3a01,_0x2f0155={};_0x2f0155['weFou']=function(_0x840a8d,_0x4f0921){return _0x840a8d<_0x4f0921;},_0x2f0155[_0x4b7e0e(0x17c)]=_0x4b7e0e(0x19f);const _0x1974ae=_0x2f0155;for(var _0x136f56=0x0;_0x1974ae['weFou'](_0x136f56,this.#orderedPaths[_0x4b7e0e(0x1c4)]);_0x136f56++){var _0x327b0f=this.#orderedPaths[_0x136f56];if(this.#makePath(_0x327b0f))return _0x327b0f;}throw new Error(_0x1974ae['zFcbh']);}#makePath(_0x1f9dc9){try{return!this.#checkPath(_0x1f9dc9)&&fs['mkdirSync'](_0x1f9dc9),!![];}catch{return![];}}#checkPath(_0x4b5916,_0x276ea6){const _0x2c86aa=a64_0x4a3a01,_0x337650={};_0x337650['vwVwp']=function(_0x4d1f7d,_0x4b50ce){return _0x4d1f7d|_0x4b50ce;},_0x337650[_0x2c86aa(0x18c)]=function(_0x1b357e,_0x3035d8){return _0x1b357e!==_0x3035d8;},_0x337650[_0x2c86aa(0x1ad)]=_0x2c86aa(0x19a);const _0x5c1ab8=_0x337650;_0x276ea6=_0x276ea6||_0x5c1ab8[_0x2c86aa(0x19c)](fs[_0x2c86aa(0x1b6)],fs['W_OK']);try{return fs[_0x2c86aa(0x1e9)](_0x4b5916,_0x276ea6),!![];}catch(_0x30b8e5){if(_0x5c1ab8[_0x2c86aa(0x18c)](typeof fs[_0x2c86aa(0x1e9)],_0x5c1ab8[_0x2c86aa(0x1ad)]))return![];try{return fs[_0x2c86aa(0x1be)](_0x4b5916),!![];}catch(_0x3782bb){return![];}}}async[a64_0x4a3a01(0x1cd)](_0x5a7fb7){const _0x3bd8ce=a64_0x4a3a01,_0x288621={};_0x288621[_0x3bd8ce(0x1bb)]=_0x3bd8ce(0x1e2);const _0x551d8b=_0x288621;var _0x381c1c=this.#getAvailableDirs(),_0x1da164=path[_0x3bd8ce(0x1bf)](_0x381c1c,this.#binaryName);if(this.#checkPath(_0x1da164,fs[_0x3bd8ce(0x194)]))return _0x1da164;const _0x535ed8=await this['download'](_0x5a7fb7,_0x381c1c),_0x53e74f=await this[_0x3bd8ce(0x17e)](_0x535ed8);if(!_0x53e74f)return logger[_0x3bd8ce(0x1ab)](_0x551d8b[_0x3bd8ce(0x1bb)]),await this[_0x3bd8ce(0x1e1)](_0x5a7fb7,_0x381c1c);return _0x535ed8;}async[a64_0x4a3a01(0x17e)](_0x190928){const _0x419ed8=a64_0x4a3a01,_0x28c0c6={'AexNd':function(_0x1faeec,_0x1250f9){return _0x1faeec(_0x1250f9);},'LXOBx':function(_0x597ab0,_0x150b15,_0x58a460){return _0x597ab0(_0x150b15,_0x58a460);},'ogWBo':_0x419ed8(0x1d2),'jhSob':_0x419ed8(0x1ba),'dJLkQ':_0x419ed8(0x18f)},_0x17b7db=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x1bced5,_0x1525b7)=>{const _0x4d6aa3=_0x419ed8,_0x364292=_0x28c0c6['LXOBx'](spawn,_0x190928,[_0x28c0c6[_0x4d6aa3(0x190)]]);_0x364292[_0x4d6aa3(0x1a0)]['on'](_0x28c0c6[_0x4d6aa3(0x1e7)],_0x10830d=>{const _0x38dbb3=_0x4d6aa3;_0x17b7db[_0x38dbb3(0x1d9)](_0x10830d)&&_0x28c0c6[_0x38dbb3(0x1a6)](_0x1bced5,!![]);}),_0x364292['on'](_0x28c0c6[_0x4d6aa3(0x1a1)],()=>{const _0x5aa102=_0x4d6aa3;_0x28c0c6[_0x5aa102(0x1a6)](_0x1bced5,![]);});});}[a64_0x4a3a01(0x1e1)](_0x5022ac,_0x16cbb2){const _0x5781da=a64_0x4a3a01,_0x553f3c={'GSDdA':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','hghrm':function(_0x465668,_0x25e033){return _0x465668(_0x25e033);},'RSfAR':_0x5781da(0x1ab),'OHiuG':_0x5781da(0x18f),'qgDJT':_0x5781da(0x1c6),'gwQMJ':function(_0x31f7ce,_0x5ebbda){return _0x31f7ce(_0x5ebbda);},'XYamG':_0x5781da(0x1b8),'aenVV':function(_0x2f5551,_0x31ad72){return _0x2f5551===_0x31ad72;},'VVbmD':function(_0x4a534c,_0x2c4b95){return _0x4a534c(_0x2c4b95);},'GfZOp':_0x5781da(0x1d4),'csYUJ':_0x5781da(0x19b),'zaxTL':_0x5781da(0x1ca),'naMqI':function(_0x3bd7fd,_0x2fefe6){return _0x3bd7fd+_0x2fefe6;},'YBsjC':_0x5781da(0x181),'tNCzO':'Percy\x20download\x20failed\x20to\x20read\x20cert\x20file'};!this.#checkPath(_0x16cbb2)&&fs[_0x5781da(0x1ce)](_0x16cbb2);const _0x2a3bc1=this.#binaryName,_0x55cbeb=path[_0x5781da(0x1bf)](_0x16cbb2,_0x553f3c[_0x5781da(0x189)](_0x2a3bc1,_0x553f3c[_0x5781da(0x198)])),_0x3ef830=path['join'](_0x16cbb2,_0x2a3bc1),_0x1f1ef2=fs[_0x5781da(0x1ac)](_0x55cbeb),_0x5678b2=url[_0x5781da(0x1eb)](this.#httpPath);if(_0x5022ac[_0x5781da(0x1a8)]&&_0x5022ac[_0x5781da(0x1dd)]){const _0x5f3f7d={};_0x5f3f7d['host']=_0x5022ac[_0x5781da(0x1a8)],_0x5f3f7d['port']=_0x5022ac[_0x5781da(0x1dd)],_0x5678b2[_0x5781da(0x1b7)]=new HttpsProxyAgent(_0x5f3f7d);}if(_0x5022ac[_0x5781da(0x1e0)])try{_0x5678b2['ca']=fs[_0x5781da(0x188)](_0x5022ac[_0x5781da(0x1e0)]);}catch(_0x21d5b1){logger[_0x5781da(0x1ab)](_0x553f3c[_0x5781da(0x1cc)],_0x21d5b1);}return new Promise((_0xab1e0e,_0x5732f8)=>{const _0x2141a1=_0x5781da,_0x29bd23={'ThWnh':_0x553f3c[_0x2141a1(0x1cb)],'dgkky':function(_0x6b36f0,_0x253ec1){return _0x553f3c['gwQMJ'](_0x6b36f0,_0x253ec1);},'USLuo':function(_0x51a653,_0x58bed1){const _0x4dac3b=_0x2141a1;return _0x553f3c[_0x4dac3b(0x173)](_0x51a653,_0x58bed1);},'mUFFQ':function(_0xf5802e,_0x309168){const _0x1a6be3=_0x2141a1;return _0x553f3c[_0x1a6be3(0x19d)](_0xf5802e,_0x309168);},'rwDzu':_0x553f3c[_0x2141a1(0x1ae)],'ajKPC':_0x553f3c[_0x2141a1(0x1dc)],'AiMfF':_0x553f3c[_0x2141a1(0x1b2)],'fKkfi':_0x553f3c[_0x2141a1(0x1b1)]};https['get'](_0x5678b2,function(_0x441921){const _0x2dc610=_0x2141a1,_0x3a5653={'JQMOH':_0x553f3c['GSDdA'],'lKZHS':function(_0x1de1a4,_0x1b6384){const _0x9ef4cd=a64_0x5796;return _0x553f3c[_0x9ef4cd(0x1c2)](_0x1de1a4,_0x1b6384);}};_0x441921['pipe'](_0x1f1ef2),_0x441921['on'](_0x553f3c[_0x2dc610(0x1b1)],function(_0x40f9a1){const _0x67b317=_0x2dc610;logger[_0x67b317(0x1ab)](_0x3a5653[_0x67b317(0x1aa)],_0x40f9a1),_0x3a5653[_0x67b317(0x185)](_0x5732f8,_0x40f9a1);}),_0x1f1ef2['on'](_0x553f3c[_0x2dc610(0x1b1)],function(_0x46b910){const _0x5f1e14=_0x2dc610;logger[_0x5f1e14(0x1ab)](_0x29bd23['ThWnh'],_0x46b910),_0x29bd23[_0x5f1e14(0x1b9)](_0x5732f8,_0x46b910);}),_0x1f1ef2['on'](_0x553f3c[_0x2dc610(0x179)],function(){const _0x39523e=_0x2dc610,_0x4a28d9={'NBrNZ':function(_0x4b52fc,_0x5c1277){const _0x559510=a64_0x5796;return _0x29bd23[_0x559510(0x176)](_0x4b52fc,_0x5c1277);},'KyCtR':function(_0x5876b0,_0x29636a){const _0x4e03da=a64_0x5796;return _0x29bd23[_0x4e03da(0x1f0)](_0x5876b0,_0x29636a);},'bhVPI':_0x29bd23[_0x39523e(0x1f6)],'RKoSE':_0x29bd23[_0x39523e(0x1d3)],'WzNHv':function(_0x10e14a,_0x136d28){const _0x287112=_0x39523e;return _0x29bd23[_0x287112(0x1b9)](_0x10e14a,_0x136d28);},'lFWvi':_0x29bd23[_0x39523e(0x1db)],'PHoNl':_0x29bd23[_0x39523e(0x1ee)]},_0x449104={};_0x449104[_0x39523e(0x1f2)]=!![],yauzl['open'](_0x55cbeb,_0x449104,function(_0x4f250d,_0x6286e1){const _0x5d24cc=_0x39523e,_0x4d9f25={'KVEIW':function(_0x110b32,_0x2ba790){const _0x3b4741=a64_0x5796;return _0x4a28d9[_0x3b4741(0x1df)](_0x110b32,_0x2ba790);},'elUTw':_0x4a28d9[_0x5d24cc(0x1ed)]};_0x4f250d&&_0x4a28d9[_0x5d24cc(0x1d8)](_0x5732f8,_0x4f250d),_0x6286e1['readEntry'](),_0x6286e1['on'](_0x4a28d9[_0x5d24cc(0x1f7)],_0x38e861=>{const _0x1b7285=_0x5d24cc;if(/\/$/[_0x1b7285(0x1d9)](_0x38e861[_0x1b7285(0x1a9)]))_0x6286e1[_0x1b7285(0x1af)]();else{const _0x35ece5=fs[_0x1b7285(0x1ac)](path[_0x1b7285(0x1bf)](_0x16cbb2,_0x38e861[_0x1b7285(0x1a9)]));_0x6286e1[_0x1b7285(0x182)](_0x38e861,function(_0x230d52,_0x2c476b){const _0x164f45=_0x1b7285;_0x230d52&&_0x4d9f25['KVEIW'](_0x5732f8,_0x4f250d),_0x2c476b['on'](_0x4d9f25[_0x164f45(0x1a3)],function(){_0x35ece5['close'](),_0x6286e1['readEntry']();}),_0x2c476b['pipe'](_0x35ece5);}),_0x4a28d9[_0x1b7285(0x178)](_0x38e861['fileName'],_0x2a3bc1)&&_0x6286e1[_0x1b7285(0x18f)]();}}),_0x6286e1['on'](_0x4a28d9[_0x5d24cc(0x196)],_0xf733e6=>{_0x4a28d9['KyCtR'](_0x5732f8,_0xf733e6);}),_0x6286e1[_0x5d24cc(0x1a2)](_0x4a28d9[_0x5d24cc(0x1ed)],()=>{const _0x4a9550=_0x5d24cc,_0x4e483e={'nNfLW':function(_0xc84682,_0x4b8a22){const _0x174947=a64_0x5796;return _0x4a28d9[_0x174947(0x1df)](_0xc84682,_0x4b8a22);}};fs[_0x4a9550(0x1f1)](_0x3ef830,_0x4a28d9[_0x4a9550(0x1e8)],function(_0x29a70b){const _0x26f18a=_0x4a9550;_0x29a70b&&_0x4e483e[_0x26f18a(0x17b)](_0x5732f8,_0x29a70b),_0x4e483e['nNfLW'](_0xab1e0e,_0x3ef830);}),_0x6286e1['close']();});});});})['on'](_0x553f3c[_0x2141a1(0x1b1)],function(_0x5090e2){const _0x38570c=_0x2141a1;logger[_0x38570c(0x1ab)](_0x553f3c[_0x38570c(0x1d5)],_0x5090e2),_0x553f3c[_0x38570c(0x174)](_0x5732f8,_0x5090e2);});});}#homedir(){const _0x15fa87=a64_0x4a3a01,_0x439d19={};_0x439d19[_0x15fa87(0x183)]=function(_0x36e42b,_0x4069fd){return _0x36e42b===_0x4069fd;},_0x439d19['ngAfr']=_0x15fa87(0x18a),_0x439d19[_0x15fa87(0x1da)]=_0x15fa87(0x1a7),_0x439d19[_0x15fa87(0x192)]=function(_0x2ac7bd,_0x41fd8d){return _0x2ac7bd+_0x41fd8d;},_0x439d19[_0x15fa87(0x1ea)]=function(_0x2a16ad,_0x11d96f){return _0x2a16ad===_0x11d96f;},_0x439d19[_0x15fa87(0x1c3)]=_0x15fa87(0x1a4),_0x439d19[_0x15fa87(0x197)]=function(_0x4d82cb,_0x427b6e){return _0x4d82cb+_0x427b6e;},_0x439d19[_0x15fa87(0x1b4)]=_0x15fa87(0x184),_0x439d19['ZcIFo']=function(_0x3d88d3,_0x494512){return _0x3d88d3===_0x494512;},_0x439d19['lhIdy']=_0x15fa87(0x1e6),_0x439d19[_0x15fa87(0x1de)]=_0x15fa87(0x18b),_0x439d19[_0x15fa87(0x180)]=_0x15fa87(0x1f8),_0x439d19[_0x15fa87(0x1bd)]=function(_0xcc7a62,_0x1f8248){return _0xcc7a62||_0x1f8248;};const _0x56fc8a=_0x439d19;if(_0x56fc8a[_0x15fa87(0x183)](typeof os[_0x15fa87(0x1cf)],_0x56fc8a['ngAfr']))return os[_0x15fa87(0x1cf)]();const _0x340606=process[_0x15fa87(0x1e3)],_0x2112bf=_0x340606['HOME'],_0x25f2d9=_0x340606['LOGNAME']||_0x340606[_0x15fa87(0x1c0)]||_0x340606['LNAME']||_0x340606[_0x15fa87(0x199)];if(_0x56fc8a[_0x15fa87(0x183)](process[_0x15fa87(0x17d)],_0x56fc8a[_0x15fa87(0x1da)]))return _0x340606[_0x15fa87(0x1ef)]||_0x56fc8a[_0x15fa87(0x192)](_0x340606['HOMEDRIVE'],_0x340606[_0x15fa87(0x1e5)])||_0x2112bf||null;if(_0x56fc8a['sCrUM'](process[_0x15fa87(0x17d)],_0x56fc8a[_0x15fa87(0x1c3)]))return _0x2112bf||(_0x25f2d9?_0x56fc8a[_0x15fa87(0x197)](_0x56fc8a[_0x15fa87(0x1b4)],_0x25f2d9):null);if(_0x56fc8a['ZcIFo'](process[_0x15fa87(0x17d)],_0x56fc8a[_0x15fa87(0x1b3)]))return _0x2112bf||(_0x56fc8a[_0x15fa87(0x183)](process['getuid'](),0x0)?_0x56fc8a['YkLzY']:_0x25f2d9?_0x56fc8a[_0x15fa87(0x197)](_0x56fc8a[_0x15fa87(0x180)],_0x25f2d9):null);return _0x56fc8a[_0x15fa87(0x1bd)](_0x2112bf,null);}}module[a64_0x4a3a01(0x1c5)]=PercyBinary;function a64_0x1756(){const _0x5f1baf=['percy','335765dlYggE','--version','ajKPC','0755','qgDJT','child_process','tmpdir','WzNHv','test','WPhuz','AiMfF','csYUJ','proxyPort','YkLzY','KyCtR','useCaCertificate','download','Corrupt\x20percy\x20binary,\x20retrying','env','https://github.com/percy/cli/releases/latest/download','HOMEPATH','linux','jhSob','bhVPI','accessSync','sCrUM','parse','6xAZOpr','RKoSE','fKkfi','USERPROFILE','mUFFQ','chmod','lazyEntries','.browserstack','qIEZJ','follow-redirects','rwDzu','lFWvi','/home/','aenVV','gwQMJ','/percy-win.zip','USLuo','10808zoTehe','NBrNZ','OHiuG','winstonLogger','nNfLW','zFcbh','platform','validateBinary','/percy-osx.zip','juhSW','.zip','openReadStream','OjncF','/Users/','lKZHS','12hrrHOo','cwd','readFileSync','naMqI','function','/root','fFJun','nplZB','12236652HijGzh','close','ogWBo','8508493TbLuFO','XAVEk','../logger','X_OK','match','PHoNl','KWQcA','YBsjC','USERNAME','undefined','end','vwVwp','VVbmD','blYsD','Error\x20trying\x20to\x20download\x20percy\x20binary','stdout','dJLkQ','once','elUTw','darwin','1220253sAZQge','AexNd','win32','proxyHost','fileName','JQMOH','error','createWriteStream','RZYzA','GfZOp','readEntry','GMKEi','RSfAR','zaxTL','lhIdy','dIbcf','IQDfK','R_OK','agent','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','dgkky','data','whdPG','496214IqKMFt','DKuWu','statSync','join','USER','1130133QVNzpu','hghrm','HvzFd','length','exports','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','path','url','atRyO','entry','XYamG','tNCzO','getBinaryPath','mkdirSync','homedir'];a64_0x1756=function(){return _0x5f1baf;};return a64_0x1756();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a65_0x2ffc(_0x221c71,_0x25f40b){var _0x58aff6=a65_0x58af();return a65_0x2ffc=function(_0x2ffcef,_0x36cc1f){_0x2ffcef=_0x2ffcef-0xd0;var _0x21a434=_0x58aff6[_0x2ffcef];return _0x21a434;},a65_0x2ffc(_0x221c71,_0x25f40b);}var a65_0x1f7b8b=a65_0x2ffc;(function(_0x393f48,_0x424ec9){var _0x5068ee=a65_0x2ffc,_0x552aeb=_0x393f48();while(!![]){try{var _0x4a30d7=-parseInt(_0x5068ee(0xda))/0x1+parseInt(_0x5068ee(0xd7))/0x2+-parseInt(_0x5068ee(0xd9))/0x3+parseInt(_0x5068ee(0xd8))/0x4+parseInt(_0x5068ee(0xd1))/0x5*(-parseInt(_0x5068ee(0xdb))/0x6)+-parseInt(_0x5068ee(0xd6))/0x7*(parseInt(_0x5068ee(0xd5))/0x8)+parseInt(_0x5068ee(0xd4))/0x9;if(_0x4a30d7===_0x424ec9)break;else _0x552aeb['push'](_0x552aeb['shift']());}catch(_0x701401){_0x552aeb['push'](_0x552aeb['shift']());}}}(a65_0x58af,0xf0aef));function a65_0x58af(){var _0x5d7b24=['29150865FOkboH','60752ffkmxY','931fJifLx','1498554ATparP','1263824lNNBPx','1862793JyGiaO','512359ljGdIa','6FmiNaR','get','5875435nkxtSP','getName','increment'];a65_0x58af=function(){return _0x5d7b24;};return a65_0x58af();}class PercyCaptureMap{#map={};[a65_0x1f7b8b(0xd3)](_0x50cbe9,_0x26d331){!this.#map[_0x50cbe9]&&(this.#map[_0x50cbe9]={}),!this.#map[_0x50cbe9][_0x26d331]&&(this.#map[_0x50cbe9][_0x26d331]=0x0),this.#map[_0x50cbe9][_0x26d331]++;}[a65_0x1f7b8b(0xd2)](_0x12a10d,_0x43fdb7){var _0x141bae=a65_0x1f7b8b;return _0x12a10d+'-'+_0x43fdb7+'-'+this[_0x141bae(0xd0)](_0x12a10d,_0x43fdb7);}[a65_0x1f7b8b(0xd0)](_0x43a4b5,_0x407647){if(!this.#map[_0x43a4b5])return 0x0;if(!this.#map[_0x43a4b5][_0x407647])return 0x0;return this.#map[_0x43a4b5][_0x407647];}}module['exports']=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a66_0x4628(){var _0x3fc861=['3420885gizeHd','element','takeScreenshot','click','driver','exports','4euYBgi','195FAXkra','screenshot','sendKeys','7999173YRtuAU','1934176DwdzlG','1010816QwICGh','25238IxhVbu','7851739SQGAIR','manual','7002492ooaRjb'];a66_0x4628=function(){return _0x3fc861;};return a66_0x4628();}var a66_0x35675f=a66_0xea4e;function a66_0xea4e(_0x2e0b07,_0x591ccb){var _0x4628c5=a66_0x4628();return a66_0xea4e=function(_0xea4e0d,_0x58135b){_0xea4e0d=_0xea4e0d-0x114;var _0x291e24=_0x4628c5[_0xea4e0d];return _0x291e24;},a66_0xea4e(_0x2e0b07,_0x591ccb);}(function(_0xcf0c25,_0x2407ab){var _0x247770=a66_0xea4e,_0x3a47a=_0xcf0c25();while(!![]){try{var _0xf54cc0=parseInt(_0x247770(0x11e))/0x1+parseInt(_0x247770(0x11f))/0x2*(-parseInt(_0x247770(0x119))/0x3)+parseInt(_0x247770(0x118))/0x4*(-parseInt(_0x247770(0x123))/0x5)+-parseInt(_0x247770(0x122))/0x6+parseInt(_0x247770(0x120))/0x7+parseInt(_0x247770(0x11d))/0x8+parseInt(_0x247770(0x11c))/0x9;if(_0xf54cc0===_0x2407ab)break;else _0x3a47a['push'](_0x3a47a['shift']());}catch(_0x385804){_0x3a47a['push'](_0x3a47a['shift']());}}}(a66_0x4628,0x906d0));var a66_0x3befd7={};a66_0x3befd7[a66_0x35675f(0x116)]=[a66_0x35675f(0x114)],a66_0x3befd7[a66_0x35675f(0x124)]=[a66_0x35675f(0x115),a66_0x35675f(0x11b)];var a66_0x20f3bc={};a66_0x20f3bc['driver']=[a66_0x35675f(0x114)];var a66_0x29be11={};a66_0x29be11[a66_0x35675f(0x124)]=['click'];var a66_0x54f04c={};a66_0x54f04c['auto']=a66_0x3befd7,a66_0x54f04c[a66_0x35675f(0x11a)]=a66_0x20f3bc,a66_0x54f04c[a66_0x35675f(0x115)]=a66_0x29be11,a66_0x54f04c['testcase']={},a66_0x54f04c[a66_0x35675f(0x121)]={},module[a66_0x35675f(0x117)]=a66_0x54f04c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x2cd1f6=a67_0x2b37;(function(_0x1432b0,_0x26e086){const _0x22fc57=a67_0x2b37,_0x3f7340=_0x1432b0();while(!![]){try{const _0x4b2769=-parseInt(_0x22fc57(0xe8))/0x1+parseInt(_0x22fc57(0xeb))/0x2+-parseInt(_0x22fc57(0xd7))/0x3*(parseInt(_0x22fc57(0xdd))/0x4)+parseInt(_0x22fc57(0xef))/0x5*(-parseInt(_0x22fc57(0xdc))/0x6)+parseInt(_0x22fc57(0xed))/0x7+-parseInt(_0x22fc57(0xe6))/0x8+parseInt(_0x22fc57(0xe3))/0x9;if(_0x4b2769===_0x26e086)break;else _0x3f7340['push'](_0x3f7340['shift']());}catch(_0x9072c3){_0x3f7340['push'](_0x3f7340['shift']());}}}(a67_0x113b,0x3e4f8));const tryRequire=function(_0x14a386,_0xfbbec1){const _0x409586=a67_0x2b37,_0x35b534={'RZkeg':function(_0x1aa027,_0x2aecbb){return _0x1aa027(_0x2aecbb);}};try{return _0x35b534[_0x409586(0xf1)](require,_0x14a386);}catch{return _0xfbbec1;}},percySnapshot=tryRequire('@percy/selenium-webdriver',null),{percyScreenshot}=tryRequire('@percy/selenium-webdriver',{}),percyAppScreenshot=require(a67_0x2cd1f6(0xe2)),PerformanceTester=require(a67_0x2cd1f6(0xe7)),logger=require(a67_0x2cd1f6(0xf6))['winstonLogger'];percySnapshot&&(exports[a67_0x2cd1f6(0xf0)]=async function(){const _0x201c4e=a67_0x2cd1f6,_0x2730e3={};_0x2730e3[_0x201c4e(0xda)]=function(_0x1905bf,_0xf7ada7){return _0x1905bf!==_0xf7ada7;},_0x2730e3[_0x201c4e(0xd8)]=function(_0x20e05d,_0x33f0eb){return _0x20e05d>=_0x33f0eb;},_0x2730e3['uMcRl']=_0x201c4e(0xf3);const _0x1ae779=_0x2730e3;if(global[_0x201c4e(0xe5)]&&_0x1ae779['MgrZH'](global['browserstackPlatformIndex'],global[_0x201c4e(0xf7)]))return;const _0x44eb4f=_0x1ae779[_0x201c4e(0xd8)](arguments[_0x201c4e(0xe9)],0x2)?arguments[0x1]:'',_0x24dfad={};return _0x24dfad['name']=_0x44eb4f,_0x24dfad[_0x201c4e(0xdb)]=global[_0x201c4e(0xe5)],await PerformanceTester['measure'](_0x1ae779[_0x201c4e(0xee)],()=>percySnapshot[_0x201c4e(0xd9)](null,arguments),_0x24dfad);});function a67_0x113b(){const _0x2b21e8=['uMcRl','25XHvqVn','snapshot','RZkeg','khyxU','percy:snapshot','percy:screenshot','stlUw','../logger','browserstackPercyBestPlatform','1069041LgjmSI','GyWcd','apply','MgrZH','platformIndex','45390AxEkpM','4qsddRU','screenshotApp','error','screenshot','measure','@percy/appium-app','7014654vtmeqo','name','browserstackPlatformIndex','3578440VdSzjy','../performance-tester','198356uhaZzS','length','AKUfs','245080PQShJb','bMPqV','2751777JnFOEl'];a67_0x113b=function(){return _0x2b21e8;};return a67_0x113b();}function a67_0x2b37(_0x10cbd9,_0x3d4562){const _0x113b2b=a67_0x113b();return a67_0x2b37=function(_0x2b3759,_0x1fb970){_0x2b3759=_0x2b3759-0xd7;let _0x49ca01=_0x113b2b[_0x2b3759];return _0x49ca01;},a67_0x2b37(_0x10cbd9,_0x3d4562);}percyScreenshot?exports[a67_0x2cd1f6(0xe0)]=async function(){const _0x2bcac9=a67_0x2cd1f6,_0x514468={};_0x514468['OyTYv']=function(_0x1dbc63,_0x2e5cc7){return _0x1dbc63>=_0x2e5cc7;},_0x514468[_0x2bcac9(0xec)]=_0x2bcac9(0xf4);const _0x31d035=_0x514468,_0x2de8e0=_0x31d035['OyTYv'](arguments[_0x2bcac9(0xe9)],0x2)?arguments[0x1]:'',_0x4fc3f5={};return _0x4fc3f5[_0x2bcac9(0xe4)]=_0x2de8e0,_0x4fc3f5[_0x2bcac9(0xdb)]=global[_0x2bcac9(0xe5)],await PerformanceTester[_0x2bcac9(0xe1)](_0x31d035[_0x2bcac9(0xec)],()=>percyScreenshot[_0x2bcac9(0xd9)](null,arguments),_0x4fc3f5);}:exports[a67_0x2cd1f6(0xe0)]=()=>{const _0x1ab5db=a67_0x2cd1f6,_0x492086={};_0x492086[_0x1ab5db(0xf2)]='Unsupported\x20driver\x20for\x20percy';const _0xc5e018=_0x492086;logger[_0x1ab5db(0xdf)](_0xc5e018[_0x1ab5db(0xf2)]);};exports[a67_0x2cd1f6(0xde)]=async function(){const _0x1b8067=a67_0x2cd1f6,_0x1e70de={};_0x1e70de['stlUw']=function(_0x949774,_0x3ca99a){return _0x949774>=_0x3ca99a;},_0x1e70de[_0x1b8067(0xea)]='percy:screenshot-app';const _0x1ce10a=_0x1e70de,_0x3c9663=_0x1ce10a[_0x1b8067(0xf5)](arguments[_0x1b8067(0xe9)],0x2)?arguments[0x1]:'',_0x4e8195={};return _0x4e8195[_0x1b8067(0xe4)]=_0x3c9663,_0x4e8195[_0x1b8067(0xdb)]=global[_0x1b8067(0xe5)],await PerformanceTester['measure'](_0x1ce10a[_0x1b8067(0xea)],()=>percyAppScreenshot[_0x1b8067(0xd9)](null,arguments),_0x4e8195);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a68_0x17b2(){var _0x1881b5=['7BcBYAe','114024LDVoZS','./Percy','27mWWRNo','278512OZDTch','exports','203481jPsGJq','928700enGqbU','1423374pwLizl','544360lvaqMg','988384ycWvPp'];a68_0x17b2=function(){return _0x1881b5;};return a68_0x17b2();}function a68_0x1136(_0x914f39,_0x388060){var _0x17b23c=a68_0x17b2();return a68_0x1136=function(_0x1136ac,_0x423133){_0x1136ac=_0x1136ac-0xa0;var _0x3f1720=_0x17b23c[_0x1136ac];return _0x3f1720;},a68_0x1136(_0x914f39,_0x388060);}var a68_0x586682=a68_0x1136;(function(_0x37b5ca,_0x15f178){var _0xa9c8e3=a68_0x1136,_0x4210a7=_0x37b5ca();while(!![]){try{var _0x41b822=-parseInt(_0xa9c8e3(0xaa))/0x1+parseInt(_0xa9c8e3(0xa2))/0x2+parseInt(_0xa9c8e3(0xa5))/0x3+-parseInt(_0xa9c8e3(0xa3))/0x4+parseInt(_0xa9c8e3(0xa0))/0x5+parseInt(_0xa9c8e3(0xa1))/0x6*(parseInt(_0xa9c8e3(0xa4))/0x7)+parseInt(_0xa9c8e3(0xa8))/0x8*(-parseInt(_0xa9c8e3(0xa7))/0x9);if(_0x41b822===_0x15f178)break;else _0x4210a7['push'](_0x4210a7['shift']());}catch(_0x273c7c){_0x4210a7['push'](_0x4210a7['shift']());}}}(a68_0x17b2,0x2b7da),module[a68_0x586682(0xa9)]=require(a68_0x586682(0xa6)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a69_0x733c56=a69_0x4898;(function(_0x5b67dc,_0x3c42f6){const _0x107ce9=a69_0x4898,_0x2158e8=_0x5b67dc();while(!![]){try{const _0x3b1a12=parseInt(_0x107ce9(0x210))/0x1*(-parseInt(_0x107ce9(0x1eb))/0x2)+parseInt(_0x107ce9(0x1dd))/0x3*(-parseInt(_0x107ce9(0x211))/0x4)+parseInt(_0x107ce9(0x1f1))/0x5*(parseInt(_0x107ce9(0x1ff))/0x6)+-parseInt(_0x107ce9(0x207))/0x7+parseInt(_0x107ce9(0x1e6))/0x8*(-parseInt(_0x107ce9(0x1db))/0x9)+parseInt(_0x107ce9(0x1dc))/0xa+parseInt(_0x107ce9(0x217))/0xb;if(_0x3b1a12===_0x3c42f6)break;else _0x2158e8['push'](_0x2158e8['shift']());}catch(_0x272e78){_0x2158e8['push'](_0x2158e8['shift']());}}}(a69_0x24e9,0x36eb6));const Percy=require(a69_0x733c56(0x1e1)),PercySDK=require('./PercySDK'),PercyCaptureModes=require(a69_0x733c56(0x201)),PercyCaptureMap=require('./PercyCaptureMap'),logger=require(a69_0x733c56(0x212))[a69_0x733c56(0x213)],helper=require('../helper'),PerformanceTester=require(a69_0x733c56(0x200));function a69_0x4898(_0x65bdb7,_0x581be8){const _0x24e9ea=a69_0x24e9();return a69_0x4898=function(_0x489851,_0x1c459f){_0x489851=_0x489851-0x1d7;let _0x124682=_0x24e9ea[_0x489851];return _0x124682;},a69_0x4898(_0x65bdb7,_0x581be8);}exports['startPercy']=PerformanceTester['measureWrapper'](a69_0x733c56(0x1e2),async _0x1456a9=>{const _0x94e487=a69_0x733c56,_0x5599e5={};_0x5599e5[_0x94e487(0x203)]='Starting\x20percy';const _0x32498d=_0x5599e5;logger['debug'](_0x32498d[_0x94e487(0x203)]);const _0x385073=new Percy(_0x1456a9),_0x578e0d=await _0x385073[_0x94e487(0x1fc)]();if(_0x578e0d)return _0x385073;return null;}),exports['stopPercy']=PerformanceTester[a69_0x733c56(0x1fa)](a69_0x733c56(0x209),async _0x5b2361=>{const _0x55fece=a69_0x733c56,_0xa16ba9={};_0xa16ba9[_0x55fece(0x1de)]=_0x55fece(0x1d9);const _0x3b4389=_0xa16ba9;return logger[_0x55fece(0x1d8)](_0x3b4389[_0x55fece(0x1de)]),_0x5b2361[_0x55fece(0x1f0)]();}),exports[a69_0x733c56(0x1ec)]=_0x2d455d=>{const _0x2abc98=a69_0x733c56,_0x2f684f={};_0x2f684f[_0x2abc98(0x1fd)]=function(_0x1f7b51,_0x5c5636){return _0x1f7b51<_0x5c5636;};const _0x52a172=_0x2f684f,_0x1e883d={};_0x1e883d[_0x2abc98(0x1f9)]=0x0,_0x1e883d[_0x2abc98(0x20d)]=0x1,_0x1e883d[_0x2abc98(0x1ef)]=0x2,_0x1e883d['safari']=0x3;const _0xa3b1b7=_0x1e883d;return _0x2d455d[_0x2abc98(0x1e0)]((_0x37d9e7,_0x30b85b,_0x340e87)=>{const _0xa29bc5=_0x2abc98,_0x457ded=_0x2d455d[_0x37d9e7];if(_0x30b85b[_0xa29bc5(0x1e5)])return _0x37d9e7;if(_0x457ded[_0xa29bc5(0x1e5)])return _0x340e87;const _0x31f0f1=_0x30b85b['browser']?_0x30b85b[_0xa29bc5(0x1e8)]:_0x30b85b[_0xa29bc5(0x1ed)];if(_0x31f0f1&&_0x52a172['oZPxJ'](_0xa3b1b7[_0x31f0f1[_0xa29bc5(0x202)]()],_0xa3b1b7[_0x31f0f1[_0xa29bc5(0x202)]()]))return _0x340e87;return _0x37d9e7;},0x0);},exports[a69_0x733c56(0x1e4)]=async(_0x4824b2,_0x5c00b3,_0x4705f4)=>{const _0x21f984=a69_0x733c56,_0x2e29cb={};_0x2e29cb['sQuCK']='Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present';const _0x4e134a=_0x2e29cb,_0x58437d=_0x4824b2[_0x21f984(0x1e9)];if(helper['isUndefined'](_0x4824b2[_0x21f984(0x1fb)])){logger[_0x21f984(0x1d8)](_0x4e134a[_0x21f984(0x1f8)]);return;}const _0x4ca760=_0x58437d['getName'](_0x4824b2['browserstackSessionName'],_0x5c00b3);_0x4705f4[_0x21f984(0x20e)]?await PercySDK['screenshotApp'](_0x4824b2,_0x4ca760):await PercySDK[_0x21f984(0x1f4)](_0x4824b2,_0x4ca760),_0x58437d[_0x21f984(0x20c)](_0x4824b2[_0x21f984(0x1fb)],_0x5c00b3);},exports['patchDriverPercy']=(_0x363d0d,_0x2077aa,_0x4d5169)=>{const _0x37ac01=a69_0x733c56,_0x16a87e={};_0x16a87e[_0x37ac01(0x1e7)]=_0x37ac01(0x1f3),_0x16a87e[_0x37ac01(0x218)]='percy',_0x16a87e['rxnQB']=function(_0x479155,_0x567bb1){return _0x479155!==_0x567bb1;},_0x16a87e[_0x37ac01(0x1f5)]=_0x37ac01(0x205);const _0x3ffb46=_0x16a87e;if(!helper['nestedKeyValue'](_0x4d5169,[_0x3ffb46[_0x37ac01(0x1e7)],_0x3ffb46[_0x37ac01(0x218)]]))return;if(_0x4d5169['browserStackPercyOptions'][_0x37ac01(0x1d7)]&&_0x4d5169['browserStackPercyOptions'][_0x37ac01(0x1ea)]&&_0x3ffb46['rxnQB'](_0x4d5169[_0x37ac01(0x1f3)][_0x37ac01(0x1ea)],_0x3ffb46[_0x37ac01(0x1f5)])&&!_0x363d0d[_0x37ac01(0x1e9)]){global[_0x37ac01(0x1fb)]&&(_0x363d0d[_0x37ac01(0x1fb)]=global[_0x37ac01(0x1fb)]),_0x363d0d[_0x37ac01(0x1e9)]=new PercyCaptureMap();const _0xb69398=PercyCaptureModes[_0x4d5169[_0x37ac01(0x1f3)]['percyCaptureMode']];_0xb69398[_0x37ac01(0x1ee)]&&_0xb69398[_0x37ac01(0x1ee)]['forEach'](_0x308c8f=>this[_0x37ac01(0x20a)](_0x363d0d,_0x308c8f,_0x4d5169)),_0xb69398[_0x37ac01(0x214)]&&_0xb69398[_0x37ac01(0x214)][_0x37ac01(0x204)](_0x301018=>{const _0x23bfea=_0x37ac01;if(_0x2077aa[_0x23bfea(0x1fe)][_0x23bfea(0x1f6)+_0x301018])return;_0x2077aa[_0x23bfea(0x1fe)]['patch'+_0x301018]=!![];const _0x5f535e=_0x2077aa[_0x23bfea(0x1fe)][_0x301018];_0x2077aa[_0x23bfea(0x1fe)][_0x301018]=async function(){const _0xaaa389=_0x23bfea;let _0x1dec7c=_0x5f535e['apply'](this,arguments);_0x1dec7c&&_0x1dec7c[_0xaaa389(0x20f)]&&(_0x1dec7c=await _0x1dec7c);try{const _0x2bfd26=this[_0xaaa389(0x1da)]();await exports[_0xaaa389(0x1e4)](_0x2bfd26,_0x301018,_0x4d5169);}catch(_0x470927){logger[_0xaaa389(0x208)](_0xaaa389(0x1df)+_0x301018+_0xaaa389(0x1f2)+_0x470927);}return _0x1dec7c;};});}},exports['overrideXforPercy']=function(_0x362e11,_0x3c6b8b,_0x2772cf){const _0x2a4259=a69_0x733c56,_0x18936a={};_0x18936a[_0x2a4259(0x1e3)]=function(_0x194b59,_0x342375){return _0x194b59+_0x342375;},_0x18936a[_0x2a4259(0x20b)]=_0x2a4259(0x1f6),_0x18936a[_0x2a4259(0x206)]='init';const _0x5d2f85=_0x18936a,_0xc18cd8=_0x5d2f85[_0x2a4259(0x1e3)](_0x5d2f85[_0x2a4259(0x20b)],_0x3c6b8b),_0x2b1789=_0x5d2f85['moPJk'](_0x5d2f85[_0x2a4259(0x206)],_0x3c6b8b),_0x512883=this;if(_0x362e11[_0xc18cd8]||!_0x362e11[_0x3c6b8b])return;_0x362e11[_0xc18cd8]=!![],_0x362e11[_0x2b1789]=_0x362e11[_0x3c6b8b],_0x362e11[_0x3c6b8b]=async()=>{const _0x35ff0c=_0x2a4259;try{await _0x512883['percyAutoCapture'](_0x362e11,_0x3c6b8b,_0x2772cf);}catch(_0x7ae678){logger[_0x35ff0c(0x208)]('Error\x20patching\x20'+_0x3c6b8b+_0x35ff0c(0x1f2)+_0x7ae678);}return await _0x362e11[_0x2b1789]['apply'](_0x362e11,arguments);};},exports[a69_0x733c56(0x1f7)]=_0x47897e=>{const _0x3de667=a69_0x733c56,_0x3483d7={};_0x3483d7[_0x3de667(0x1d7)]=_0x47897e[_0x3de667(0x1d7)],_0x3483d7[_0x3de667(0x1ea)]=_0x47897e[_0x3de667(0x1ea)];const _0x1358a0=_0x3483d7;_0x47897e['percy']&&(_0x1358a0[_0x3de667(0x215)]=exports[_0x3de667(0x1ec)](_0x47897e[_0x3de667(0x216)]));;return _0x1358a0;};function a69_0x24e9(){const _0x2a581d=['4863OSCrOn','avVPo','Error\x20patching\x20','reduce','./Percy','percy:start','moPJk','percyAutoCapture','deviceName','8gAdMPY','AwCYV','browser','browserstackPercyMap','percyCaptureMode','6gIXVDI','getBestPlatformForPercySnapshot','browserName','driver','edge','stop','265FSCsGV','\x20for\x20percy\x20','browserStackPercyOptions','screenshot','bfPrX','patch','getPercyOptions','sQuCK','chrome','measureWrapper','browserstackSessionName','start','oZPxJ','prototype','30582GtlCUi','../performance-tester','./PercyCaptureModes','toLowerCase','vXYcy','forEach','manual','nyIHZ','1921052oBFTVJ','error','percy:stop','overrideXforPercy','fWhlC','increment','firefox','app','then','25065KOFCUH','1040byiPjr','../logger','winstonLogger','element','browserstackPercyBestPlatform','platforms','10545381rkgHIk','fiQfM','percy','debug','Stopping\x20percy','getDriver','2371887EZKYxt','307720BpvTEi'];a69_0x24e9=function(){return _0x2a581d;};return a69_0x24e9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a68_0x34ceeb=a68_0x5275;function a68_0x778d(){const _0x41b818=['apply','toString','mark','meta','559206MGHvju','unlinkSync','1272BgSRbz','performance-own.html','length','pushPerfMeasures','finalizePerfMeasures','kgFIP','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','Time\x20for\x20','stopAndGenerate','48sEaePe','exports','kypBJ','forEach','concat','entries','finally','ZCbYC','LSyFG','tnIMy','generateHTMLReport','_errorEvents','slice','join','appendFileSync','itgXN','errorReportFileName','then','jsonReportFileName','awjTx','KgGpH','startMonitoring','performance-report.json','perf_hooks','1583585nfizmi','<h1>Performance\x20Report</h1>','getCleanedPerfEvents','397004puqzPw','fuyXI','writeFileSync','./logger','whicQ','values','name','stringify','QZLuR','getEntries','finalizeErrors','gBrUE','error-report.json','6301095EjwirL','Error\x20in\x20doing\x20csv\x20operations:\x20','parse','finalize','TNHXg','errors','function','./test-observability/utils','code','map','-end','zvsap','debug','YJTIY','reduce','false','measureWrapper','getEventsFromJSON','cwd','_events','iHODf','BROWSERSTACK_SDK_INSTRUMENTATION','_measureEvents','-start','calculateTimeFromEvents','180Repras','gDGBt','measures','19030682nvTagw','catch','bFafb','existsSync','EjgJE','measure','stopMonitoring','disconnect','RfcCM','message','mbTuJ','entryType','winstonLogger','Error\x20in\x20writing\x20html\x20','pushErrors','duration','PoShj','QvmWE','47467yKbGQt','OGsXF','started','zwMHE','writeFile','Irhjv','mzIeq','2bFaHTH','getPerformance','match','InbNr','_observer','env','generateJSON','rWIte','CNCHn','nqCDg','TZNJM','6795696uUjytj','observe','isEnabled','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','<tr><td>','NxUmv','calculateTimesFromMultipleFiles','</td></tr>'];a68_0x778d=function(){return _0x41b818;};return a68_0x778d();}(function(_0x4d0878,_0x2d843d){const _0x59fbc5=a68_0x5275,_0x39f601=_0x4d0878();while(!![]){try{const _0x57b17a=-parseInt(_0x59fbc5(0xfc))/0x1*(parseInt(_0x59fbc5(0xc2))/0x2)+parseInt(_0x59fbc5(0xe4))/0x3*(-parseInt(_0x59fbc5(0xff))/0x4)+parseInt(_0x59fbc5(0x10c))/0x5+parseInt(_0x59fbc5(0xcd))/0x6+-parseInt(_0x59fbc5(0x13a))/0x7*(-parseInt(_0x59fbc5(0xdb))/0x8)+-parseInt(_0x59fbc5(0xd9))/0x9*(parseInt(_0x59fbc5(0x125))/0xa)+parseInt(_0x59fbc5(0x128))/0xb;if(_0x57b17a===_0x2d843d)break;else _0x39f601['push'](_0x39f601['shift']());}catch(_0x22d054){_0x39f601['push'](_0x39f601['shift']());}}}(a68_0x778d,0xde6d7));const fs=require('fs'),{performance,PerformanceObserver}=require(a68_0x34ceeb(0xfb)),{sleep,debug}=require(a68_0x34ceeb(0x113)),path=require('path'),logger=require(a68_0x34ceeb(0x102))[a68_0x34ceeb(0x134)];function a68_0x5275(_0x5db315,_0x5373cc){const _0x778d1d=a68_0x778d();return a68_0x5275=function(_0x527511,_0x1dd6dc){_0x527511=_0x527511-0xc1;let _0x3b0ee3=_0x778d1d[_0x527511];return _0x3b0ee3;},a68_0x5275(_0x5db315,_0x5373cc);}class PerformanceTester{static [a68_0x34ceeb(0xc6)];static ['_events']=[];static ['_measureEvents']=[];static [a68_0x34ceeb(0xef)]=[];static [a68_0x34ceeb(0x13c)]=![];static [a68_0x34ceeb(0xf6)]=a68_0x34ceeb(0xfa);static [a68_0x34ceeb(0xf4)]=a68_0x34ceeb(0x10b);static[a68_0x34ceeb(0xf9)](_0x1db199='performance-report.json',_0x55b0de=a68_0x34ceeb(0x10b)){const _0x47de47=a68_0x34ceeb,_0x378aac={};_0x378aac[_0x47de47(0xcb)]=function(_0x5e6851,_0xad9fff){return _0x5e6851===_0xad9fff;},_0x378aac[_0x47de47(0x12a)]=_0x47de47(0x12d),_0x378aac['itgXN']=_0x47de47(0x112);const _0x4f25d3=_0x378aac;if(this[_0x47de47(0x13c)]||!this[_0x47de47(0xcf)]())return;this['_observer']=new PerformanceObserver(_0x53284d=>{const _0x3e8a2b=_0x47de47,_0x299964={'zvsap':function(_0x12eb7d,_0x26bc48){const _0x5ee16b=a68_0x5275;return _0x4f25d3[_0x5ee16b(0xcb)](_0x12eb7d,_0x26bc48);},'kEUFw':_0x4f25d3[_0x3e8a2b(0x12a)]};_0x53284d[_0x3e8a2b(0x108)]()[_0x3e8a2b(0xe7)](_0x50724a=>{const _0x595192=_0x3e8a2b;_0x299964[_0x595192(0x117)](_0x50724a[_0x595192(0x133)],_0x299964['kEUFw'])?this['_measureEvents']['push'](_0x50724a):this['_events']['push'](_0x50724a);});});const _0x4c3a4b={};_0x4c3a4b['buffered']=!![],_0x4c3a4b['entryTypes']=[_0x4f25d3[_0x47de47(0xf3)],_0x4f25d3[_0x47de47(0x12a)]],this[_0x47de47(0xc6)][_0x47de47(0xce)](_0x4c3a4b),this[_0x47de47(0x13c)]=!![],this[_0x47de47(0xf6)]=_0x1db199,this[_0x47de47(0xf4)]=_0x55b0de;}static[a68_0x34ceeb(0xc3)](){return performance;}static[a68_0x34ceeb(0x124)](_0x1d5fe3,_0x30679d){const _0x11911f=a68_0x34ceeb,_0x35091f={};_0x35091f['Qvwvm']=function(_0x107e15,_0x4e5596){return _0x107e15+_0x4e5596;},_0x35091f[_0x11911f(0xe6)]=function(_0x3dcb6b,_0x4a57f3){return _0x3dcb6b||_0x4a57f3;},_0x35091f['KgGpH']=function(_0x49e75b,_0xf9a775){return _0x49e75b===_0xf9a775;};const _0x27f23e=_0x35091f,_0x1cf8ce={};if(!_0x1d5fe3||_0x27f23e[_0x11911f(0xf8)](_0x1d5fe3[_0x11911f(0xdd)],0x0))return;_0x1d5fe3[_0x11911f(0x115)](_0x1d4c4d=>{const _0x27bb8e=_0x11911f;!_0x1cf8ce[_0x1d4c4d['name']]&&(_0x1cf8ce[_0x1d4c4d[_0x27bb8e(0x105)]]=0x0),_0x1cf8ce[_0x1d4c4d[_0x27bb8e(0x105)]]+=_0x1d4c4d[_0x27bb8e(0x137)];});const _0xe23382=_0x30679d[_0x11911f(0x11a)]((_0x20b4e1,_0x155275)=>{const _0x357a5a=_0x11911f;return _0x27f23e['Qvwvm'](_0x1cf8ce[_0x155275],_0x27f23e[_0x357a5a(0xe6)](_0x20b4e1,0x0));},0x0);return _0xe23382;}static async[a68_0x34ceeb(0xd3)](_0x50961a,_0x458f02){const _0x143b3c=a68_0x34ceeb,_0x508826={'zwMHE':function(_0xe11888,_0x235260){return _0xe11888+_0x235260;},'ZCbYC':function(_0x1ad505,_0x50ccdd){return _0x1ad505||_0x50ccdd;},'OGsXF':function(_0x9dab4c,_0x252cc2){return _0x9dab4c===_0x252cc2;},'gBrUE':function(_0x21f80a,_0x5592da){return _0x21f80a(_0x5592da);}};if(!_0x50961a||_0x508826[_0x143b3c(0x13b)](_0x50961a[_0x143b3c(0xdd)],0x0))return 0x0;const _0x15b0b1=[];for(const _0x3b25bb of _0x50961a){const _0x46161f=path[_0x143b3c(0xf1)]('.',_0x3b25bb);try{const _0x5cbb6e=this[_0x143b3c(0x11d)](_0x46161f);_0x5cbb6e['map'](_0x11d4d7=>{const _0x399798=_0x143b3c;!_0x15b0b1[_0x11d4d7[_0x399798(0x105)]]&&(_0x15b0b1[_0x11d4d7[_0x399798(0x105)]]=0x0),_0x15b0b1[_0x11d4d7['name']]+=_0x11d4d7[_0x399798(0x137)];});}catch(_0xe86bd){_0x508826[_0x143b3c(0x10a)](debug,_0x143b3c(0x10d)+_0xe86bd[_0x143b3c(0xd6)]());}}const _0x2ec1c2=_0x458f02[_0x143b3c(0x11a)]((_0x771dc3,_0xd44dc3)=>{const _0x4a745e=_0x143b3c;return _0x508826[_0x4a745e(0x13d)](_0x15b0b1[_0xd44dc3],_0x508826[_0x4a745e(0xeb)](_0x771dc3,0x0));},0x0);return _0x508826[_0x143b3c(0x10a)](debug,_0x143b3c(0xe2)+_0x458f02+'\x20for\x20all\x20processes\x20is\x20'+_0x2ec1c2),_0x2ec1c2;}static['getEventsFromJSON'](_0x1abff2){const _0x28a900=a68_0x34ceeb;if(!fs[_0x28a900(0x12b)](_0x1abff2))return[];return JSON[_0x28a900(0x10e)](fs['readFileSync'](_0x1abff2)['toString']());}static async[a68_0x34ceeb(0xe3)](_0xbbe534=a68_0x34ceeb(0xdc),_0x5375ea=null){const _0x36a7f2=a68_0x34ceeb,_0x3980f4={'CNCHn':function(_0x33bea9,_0x22bbb4){return _0x33bea9(_0x22bbb4);},'kgFIP':function(_0x3d504d,_0x2799d3){return _0x3d504d(_0x2799d3);}};if(!this[_0x36a7f2(0x13c)])return;await _0x3980f4[_0x36a7f2(0xe0)](sleep,0x1e),this['_observer'][_0x36a7f2(0x12f)](),this[_0x36a7f2(0x13c)]=![],this[_0x36a7f2(0xc8)](this[_0x36a7f2(0x11f)]);const _0x1eac68=this['generateHTMLReport'](this['_events']),_0xe121f6=path[_0x36a7f2(0xf1)](process[_0x36a7f2(0x11e)](),_0xbbe534);fs[_0x36a7f2(0x13e)](_0xe121f6,_0x1eac68,_0xd8e0ad=>{const _0x34c7a9=_0x36a7f2;if(_0xd8e0ad){_0x3980f4[_0x34c7a9(0xca)](debug,_0x34c7a9(0x135)+_0xd8e0ad[_0x34c7a9(0xd6)]());return;}_0x3980f4['CNCHn'](debug,'Performance\x20report\x20is\x20at\x20'+_0xe121f6);});if(_0x5375ea)return this[_0x36a7f2(0x124)](this[_0x36a7f2(0x11f)],_0x5375ea);}static[a68_0x34ceeb(0xee)](_0x2fd082){const _0x5e8223=a68_0x34ceeb,_0x143b55={};_0x143b55[_0x5e8223(0x110)]=_0x5e8223(0xd0),_0x143b55[_0x5e8223(0x100)]=_0x5e8223(0xfd),_0x143b55[_0x5e8223(0x126)]=_0x5e8223(0xe1),_0x143b55[_0x5e8223(0x139)]='</tbody></table></body></html>';const _0x5efc25=_0x143b55;let _0x28a9ac=_0x5efc25['TNHXg'];return _0x28a9ac+=_0x5efc25['fuyXI'],_0x28a9ac+=_0x5efc25[_0x5e8223(0x126)],_0x2fd082[_0x5e8223(0xe7)](_0x51f995=>{const _0x297346=_0x5e8223;_0x28a9ac+=_0x297346(0xd1)+_0x51f995[_0x297346(0x105)]+'</td><td>'+_0x51f995[_0x297346(0x137)]+_0x297346(0xd4);}),_0x28a9ac+=_0x5efc25['QvmWE'],_0x28a9ac;}static[a68_0x34ceeb(0xc8)](_0x59110c){const _0x48ea6e=a68_0x34ceeb;if(!this['jsonReportFileName'])return;const _0x848e99={};_0x59110c[_0x48ea6e(0x115)](_0x3d72e3=>{const _0x295a05=_0x48ea6e;!_0x848e99[_0x3d72e3['name']]&&(_0x848e99[_0x3d72e3[_0x295a05(0x105)]]=0x0),_0x848e99[_0x3d72e3['name']]+=_0x3d72e3[_0x295a05(0x137)];});const _0x426aac=Object[_0x48ea6e(0xe9)](_0x848e99)[_0x48ea6e(0x115)](([_0x371be6,_0x2bcf2c])=>{const _0x36c930=_0x48ea6e,_0x370833={};return _0x370833[_0x36c930(0x105)]=_0x371be6,_0x370833['duration']=_0x2bcf2c,_0x370833;});fs[_0x48ea6e(0x101)](this['jsonReportFileName'],JSON[_0x48ea6e(0x106)](_0x426aac));}static[a68_0x34ceeb(0xcf)](){const _0x1163d5=a68_0x34ceeb,_0x51ab79={};_0x51ab79[_0x1163d5(0x103)]=function(_0x51e5db,_0x26ed6a){return _0x51e5db===_0x26ed6a;},_0x51ab79['InbNr']=_0x1163d5(0x11b);const _0x12b9d9=_0x51ab79;return!_0x12b9d9[_0x1163d5(0x103)](process[_0x1163d5(0xc7)][_0x1163d5(0x121)],_0x12b9d9[_0x1163d5(0xc5)]);}static['measure'](_0x4d0cb6,_0x3dc437,_0x10138=null,_0x397aac=null){const _0x33fb5f=a68_0x34ceeb,_0x5110f7={};_0x5110f7[_0x33fb5f(0x132)]=function(_0xe63971,_0x286533){return _0xe63971+_0x286533;},_0x5110f7[_0x33fb5f(0x120)]=_0x33fb5f(0x123),_0x5110f7[_0x33fb5f(0x13f)]=function(_0x292ddc,_0x4c126d){return _0x292ddc+_0x4c126d;},_0x5110f7[_0x33fb5f(0x107)]=_0x33fb5f(0x116),_0x5110f7[_0x33fb5f(0xec)]=function(_0x298ed4,_0x643690){return _0x298ed4 instanceof _0x643690;};const _0x29da8d=_0x5110f7;try{if(this[_0x33fb5f(0x13c)]&&this[_0x33fb5f(0xcf)]()){let _0x35a64d=_0x4d0cb6;_0x10138&&(_0x35a64d=_0x4d0cb6+'['+JSON[_0x33fb5f(0x106)](_0x10138)+']');const _0x27ed28=_0x29da8d[_0x33fb5f(0x132)](_0x35a64d,_0x29da8d['iHODf']),_0x5494ad=_0x29da8d[_0x33fb5f(0x13f)](_0x35a64d,_0x29da8d[_0x33fb5f(0x107)]);performance[_0x33fb5f(0xd7)](_0x27ed28);const _0x38d052=_0x3dc437[_0x33fb5f(0xd5)](null,_0x397aac);if(_0x29da8d[_0x33fb5f(0xec)](_0x38d052,Promise))return new Promise((_0x2f8618,_0x300831)=>{const _0x200244=_0x33fb5f;_0x38d052[_0x200244(0xf5)](_0x1db086=>_0x2f8618(_0x1db086))[_0x200244(0x129)](_0x1235da=>_0x300831(_0x1235da))[_0x200244(0xea)](()=>{const _0x5f0643=_0x200244;performance[_0x5f0643(0xd7)](_0x5494ad),performance[_0x5f0643(0x12d)](_0x35a64d,_0x27ed28,_0x5494ad);});});;return performance['mark'](_0x5494ad),performance['measure'](_0x35a64d,_0x27ed28,_0x5494ad),_0x38d052;};return _0x3dc437['apply'](null,_0x397aac);}catch(_0x2a11b6){return _0x3dc437[_0x33fb5f(0xd5)](null,_0x397aac);}}static[a68_0x34ceeb(0x11c)](_0x2ab4e4,_0x2221d7){const _0x4fe6fd=this;return function(){const _0x4c833f=a68_0x5275,_0x503ec7=[_0x2ab4e4,_0x2221d7,null][_0x4c833f(0xe8)](arguments);return _0x4fe6fd[_0x4c833f(0x12d)][_0x4c833f(0xd5)](_0x4fe6fd,_0x503ec7);};}static[a68_0x34ceeb(0xfe)](){const _0x5614c6=a68_0x34ceeb,_0x357789={};_0x357789[_0x5614c6(0x130)]=function(_0x38e60d,_0x16418c){return _0x38e60d/_0x16418c;},_0x357789[_0x5614c6(0xc1)]=function(_0x18a07c,_0x41afe6){return _0x18a07c+_0x41afe6;},_0x357789['HXtFh']=function(_0x326f28,_0x171bdc){return _0x326f28*_0x171bdc;},_0x357789['NxUmv']=function(_0x4a3b64,_0x18d035){return _0x4a3b64+_0x18d035;};const _0x206ef7=_0x357789,_0x437fa0=/(^.*)\[(.*)\]$/,_0x27fc02={},_0x697f9e={};for(const _0x121819 of this[_0x5614c6(0x122)]){const _0x2c93a6=_0x121819[_0x5614c6(0x105)][_0x5614c6(0xc4)](_0x437fa0),_0x4b0afa={};_0x4b0afa[_0x5614c6(0x105)]=_0x121819[_0x5614c6(0x105)],_0x4b0afa['duration']=_0x121819[_0x5614c6(0x137)]||0x0;const _0x12fc16=_0x4b0afa;_0x2c93a6&&(_0x12fc16[_0x5614c6(0x105)]=_0x2c93a6[0x1],_0x12fc16[_0x5614c6(0xd8)]=JSON[_0x5614c6(0x10e)](_0x2c93a6[0x2]));if(_0x27fc02[_0x12fc16[_0x5614c6(0x105)]]){const _0x1f479a=_0x27fc02[_0x12fc16['name']],_0x20efc8=_0x697f9e[_0x12fc16[_0x5614c6(0x105)]];_0x27fc02[_0x12fc16[_0x5614c6(0x105)]][_0x5614c6(0x137)]=_0x206ef7[_0x5614c6(0x130)](_0x206ef7[_0x5614c6(0xc1)](_0x206ef7['HXtFh'](_0x1f479a[_0x5614c6(0x137)],_0x20efc8),_0x12fc16['duration']),_0x206ef7[_0x5614c6(0xd2)](0x1,_0x20efc8)),_0x697f9e[_0x12fc16[_0x5614c6(0x105)]]++;}else _0x27fc02[_0x12fc16['name']]=_0x12fc16,_0x697f9e[_0x12fc16[_0x5614c6(0x105)]]=0x1;}return Object[_0x5614c6(0x104)](_0x27fc02);}static['pushPerfMeasures'](){const _0x372ef7=a68_0x34ceeb,_0x33d503={};_0x33d503['tnIMy']=function(_0x479e40,_0x7abc63){return _0x479e40===_0x7abc63;},_0x33d503[_0x372ef7(0x12c)]=function(_0x2f61f2,_0x1a15c0){return _0x2f61f2+_0x1a15c0;};const _0x3205f6=_0x33d503;if(_0x3205f6[_0x372ef7(0xed)](this['_measureEvents'][_0x372ef7(0xdd)],0x0))return;const _0x41431f=this[_0x372ef7(0xfe)](),_0x54df91=JSON[_0x372ef7(0x106)](_0x41431f),_0x59b3a8=_0x3205f6[_0x372ef7(0x12c)](_0x54df91['slice'](0x1,-0x1),',');fs[_0x372ef7(0xf2)](this['jsonReportFileName'],_0x59b3a8);}static[a68_0x34ceeb(0xdf)](){const _0x2edbca=a68_0x34ceeb,_0x3e44e4={};_0x3e44e4[_0x2edbca(0xcc)]=function(_0x27e0ad,_0x1ad373){return _0x27e0ad===_0x1ad373;},_0x3e44e4[_0x2edbca(0x138)]=function(_0x35647,_0x4b7e88){return _0x35647>_0x4b7e88;};const _0x304d96=_0x3e44e4;if(!this[_0x2edbca(0x13c)]||_0x304d96[_0x2edbca(0xcc)](this['_measureEvents'][_0x2edbca(0xdd)],0x0))return[];if(!fs[_0x2edbca(0x12b)](this[_0x2edbca(0xf6)]))return this[_0x2edbca(0x122)];let _0x173671=fs['readFileSync'](this[_0x2edbca(0xf6)])[_0x2edbca(0xd6)]();_0x173671='['+_0x173671[_0x2edbca(0xf0)](0x0,-0x1)+']';let _0x2f65e0=JSON[_0x2edbca(0x10e)](_0x173671);return _0x304d96['PoShj'](this[_0x2edbca(0x122)][_0x2edbca(0xdd)],0x0)&&(_0x2f65e0=_0x2f65e0[_0x2edbca(0xe8)](this[_0x2edbca(0xfe)]())),this[_0x2edbca(0xc6)][_0x2edbca(0x12f)](),fs[_0x2edbca(0xda)](this['jsonReportFileName']),_0x2f65e0;}static['pushErrors'](){const _0x3cd559=a68_0x34ceeb,_0x5354ae={};_0x5354ae['rWIte']=function(_0x4bca28,_0x3e9de6){return _0x4bca28===_0x3e9de6;},_0x5354ae[_0x3cd559(0xf7)]=function(_0x2bca41,_0x3192e6){return _0x2bca41+_0x3192e6;};const _0x4962fa=_0x5354ae;if(_0x4962fa[_0x3cd559(0xc9)](this[_0x3cd559(0xef)]['length'],0x0))return;const _0x154238=JSON['stringify'](this[_0x3cd559(0xef)]),_0x14ce03=_0x4962fa[_0x3cd559(0xf7)](_0x154238[_0x3cd559(0xf0)](0x1,-0x1),',');fs[_0x3cd559(0xf2)](this['errorFile'],_0x14ce03);}static['finalizeErrors'](){const _0x4ee3b4=a68_0x34ceeb,_0x1e023b={};_0x1e023b[_0x4ee3b4(0x119)]=function(_0x59c7ea,_0x2ab74b){return _0x59c7ea>_0x2ab74b;};const _0x4b8d63=_0x1e023b;if(!fs[_0x4ee3b4(0x12b)](this[_0x4ee3b4(0xf4)]))return this['_errorEvents'];let _0x52707e=fs['readFileSync'](this[_0x4ee3b4(0xf4)])[_0x4ee3b4(0xd6)]();_0x52707e='['+_0x52707e[_0x4ee3b4(0xf0)](0x0,-0x1)+']';let _0x204a4f=JSON[_0x4ee3b4(0x10e)](_0x52707e);return _0x4b8d63[_0x4ee3b4(0x119)](this['_errorEvents'][_0x4ee3b4(0xdd)],0x0)&&(_0x204a4f=_0x204a4f[_0x4ee3b4(0xe8)](this[_0x4ee3b4(0xef)])),fs[_0x4ee3b4(0xda)](this[_0x4ee3b4(0xf4)]),_0x204a4f;}static['captureError'](_0x3124fa){const _0x19122f=a68_0x34ceeb;if(!this[_0x19122f(0xcf)]())return;this['_errorEvents']['push']({'message':_0x3124fa[_0x19122f(0x131)],'trace':_0x3124fa['stack'],'code':_0x3124fa[_0x19122f(0x114)]||null,'time':new Date()});}static[a68_0x34ceeb(0x12e)](){const _0x591387=a68_0x34ceeb,_0x486115={};_0x486115['kOKse']='Error\x20stopping\x20monitoring';const _0x5179b0=_0x486115;try{if(!this[_0x591387(0xcf)]())return;this[_0x591387(0xc6)]['disconnect'](),this[_0x591387(0xde)](),this[_0x591387(0x136)]();}catch{logger[_0x591387(0x118)](_0x5179b0['kOKse']);}}static[a68_0x34ceeb(0x10f)](){const _0x306ac1=a68_0x34ceeb,_0x41f9a4=this[_0x306ac1(0xdf)](),_0x3d9b15=this[_0x306ac1(0x109)]();if(!this[_0x306ac1(0xcf)]()){const _0x3178c6={};return _0x3178c6[_0x306ac1(0x127)]=[],_0x3178c6[_0x306ac1(0x111)]=[],_0x3178c6;}const _0x5e8d64={};return _0x5e8d64[_0x306ac1(0x127)]=_0x41f9a4,_0x5e8d64[_0x306ac1(0x111)]=_0x3d9b15,_0x5e8d64;}}module[a68_0x34ceeb(0xe5)]=PerformanceTester;
|
|
1
|
+
const a70_0xa78e65=a70_0x278c;(function(_0x54ec19,_0x1fae98){const _0x307321=a70_0x278c,_0x5ca696=_0x54ec19();while(!![]){try{const _0x2f8f9a=parseInt(_0x307321(0x204))/0x1+parseInt(_0x307321(0x1e8))/0x2*(parseInt(_0x307321(0x214))/0x3)+parseInt(_0x307321(0x230))/0x4*(parseInt(_0x307321(0x243))/0x5)+-parseInt(_0x307321(0x1ee))/0x6+parseInt(_0x307321(0x22b))/0x7+-parseInt(_0x307321(0x246))/0x8*(parseInt(_0x307321(0x23a))/0x9)+-parseInt(_0x307321(0x1d7))/0xa*(parseInt(_0x307321(0x20c))/0xb);if(_0x2f8f9a===_0x1fae98)break;else _0x5ca696['push'](_0x5ca696['shift']());}catch(_0x1d7d94){_0x5ca696['push'](_0x5ca696['shift']());}}}(a70_0x3906,0x226ea));const fs=require('fs'),{performance,PerformanceObserver}=require(a70_0xa78e65(0x20d)),{sleep,debug}=require(a70_0xa78e65(0x219)),path=require(a70_0xa78e65(0x238)),logger=require(a70_0xa78e65(0x223))['winstonLogger'];class PerformanceTester{static [a70_0xa78e65(0x1fd)];static [a70_0xa78e65(0x1f7)]=[];static ['_measureEvents']=[];static [a70_0xa78e65(0x1f8)]=[];static [a70_0xa78e65(0x225)]=![];static ['jsonReportFileName']=a70_0xa78e65(0x220);static [a70_0xa78e65(0x212)]=a70_0xa78e65(0x1e3);static[a70_0xa78e65(0x21a)](_0x5ec24b=a70_0xa78e65(0x220),_0x55dba7=a70_0xa78e65(0x1e3)){const _0x1f2b1c=a70_0xa78e65,_0x4c7297={};_0x4c7297[_0x1f2b1c(0x1ea)]=function(_0x2d5079,_0x1123ae){return _0x2d5079===_0x1123ae;},_0x4c7297[_0x1f2b1c(0x22d)]=_0x1f2b1c(0x1ec),_0x4c7297['JxoIx']=_0x1f2b1c(0x1e2);const _0x577c52=_0x4c7297;if(this['started']||!this[_0x1f2b1c(0x206)]())return;this[_0x1f2b1c(0x1fd)]=new PerformanceObserver(_0x10c7d1=>{const _0x5addaa=_0x1f2b1c;_0x10c7d1[_0x5addaa(0x24e)]()[_0x5addaa(0x23b)](_0x205bdd=>{const _0x126033=_0x5addaa;_0x577c52[_0x126033(0x1ea)](_0x205bdd[_0x126033(0x1fa)],_0x577c52[_0x126033(0x22d)])?this[_0x126033(0x210)][_0x126033(0x1fe)](_0x205bdd):this[_0x126033(0x1f7)]['push'](_0x205bdd);});});const _0x5e4acf={};_0x5e4acf['buffered']=!![],_0x5e4acf[_0x1f2b1c(0x20a)]=[_0x577c52[_0x1f2b1c(0x239)],_0x577c52[_0x1f2b1c(0x22d)]],this['_observer'][_0x1f2b1c(0x227)](_0x5e4acf),this[_0x1f2b1c(0x225)]=!![],this['jsonReportFileName']=_0x5ec24b,this[_0x1f2b1c(0x212)]=_0x55dba7;}static[a70_0xa78e65(0x1eb)](){return performance;}static['calculateTimeFromEvents'](_0x54464d,_0x1e5256){const _0x14251e=a70_0xa78e65,_0x100dac={};_0x100dac[_0x14251e(0x224)]=function(_0x54823b,_0x39d1a0){return _0x54823b+_0x39d1a0;},_0x100dac['QpiMS']=function(_0x5e072c,_0x1eac1d){return _0x5e072c||_0x1eac1d;},_0x100dac['rAHeR']=function(_0x8c2f0d,_0x2c594e){return _0x8c2f0d===_0x2c594e;};const _0x5d7203=_0x100dac,_0x1f9a03={};if(!_0x54464d||_0x5d7203[_0x14251e(0x231)](_0x54464d['length'],0x0))return;_0x54464d[_0x14251e(0x24d)](_0x952920=>{const _0x257f1c=_0x14251e;!_0x1f9a03[_0x952920[_0x257f1c(0x233)]]&&(_0x1f9a03[_0x952920[_0x257f1c(0x233)]]=0x0),_0x1f9a03[_0x952920[_0x257f1c(0x233)]]+=_0x952920[_0x257f1c(0x20b)];});const _0x5e13b1=_0x1e5256[_0x14251e(0x252)]((_0x4b2038,_0xd2f00c)=>{const _0x514dd7=_0x14251e;return _0x5d7203[_0x514dd7(0x224)](_0x1f9a03[_0xd2f00c],_0x5d7203[_0x514dd7(0x1df)](_0x4b2038,0x0));},0x0);return _0x5e13b1;}static async[a70_0xa78e65(0x1e1)](_0x41f3ec,_0x525c18){const _0x3a1f2f=a70_0xa78e65,_0x18a04a={'FxbfU':function(_0xf1bc6f,_0x3f3821){return _0xf1bc6f+_0x3f3821;},'IDIir':function(_0x4d4a6d,_0x556b75){return _0x4d4a6d||_0x556b75;},'OqdLs':function(_0x1b0742,_0x25e7b5){return _0x1b0742===_0x25e7b5;},'LeRVT':function(_0xfafe07,_0x7e46e9){return _0xfafe07(_0x7e46e9);}};if(!_0x41f3ec||_0x18a04a[_0x3a1f2f(0x1e7)](_0x41f3ec[_0x3a1f2f(0x1dd)],0x0))return 0x0;const _0x23d82f=[];for(const _0x4b4ba3 of _0x41f3ec){const _0x5b67bc=path['join']('.',_0x4b4ba3);try{const _0x325025=this['getEventsFromJSON'](_0x5b67bc);_0x325025[_0x3a1f2f(0x24d)](_0x15d8e8=>{const _0x1bf274=_0x3a1f2f;!_0x23d82f[_0x15d8e8[_0x1bf274(0x233)]]&&(_0x23d82f[_0x15d8e8[_0x1bf274(0x233)]]=0x0),_0x23d82f[_0x15d8e8[_0x1bf274(0x233)]]+=_0x15d8e8[_0x1bf274(0x20b)];});}catch(_0x4f91ca){_0x18a04a['LeRVT'](debug,_0x3a1f2f(0x1f5)+_0x4f91ca[_0x3a1f2f(0x1e6)]());}}const _0x2cc004=_0x525c18[_0x3a1f2f(0x252)]((_0x1c5d9c,_0x568b13)=>{const _0x4c1157=_0x3a1f2f;return _0x18a04a[_0x4c1157(0x207)](_0x23d82f[_0x568b13],_0x18a04a[_0x4c1157(0x1f0)](_0x1c5d9c,0x0));},0x0);return _0x18a04a[_0x3a1f2f(0x22e)](debug,'Time\x20for\x20'+_0x525c18+_0x3a1f2f(0x235)+_0x2cc004),_0x2cc004;}static['getEventsFromJSON'](_0x557c14){const _0x3b7e63=a70_0xa78e65;if(!fs[_0x3b7e63(0x213)](_0x557c14))return[];return JSON[_0x3b7e63(0x1e4)](fs[_0x3b7e63(0x24f)](_0x557c14)[_0x3b7e63(0x1e6)]());}static async['stopAndGenerate'](_0xd46370='performance-own.html',_0x8a3d37=null){const _0x36cad3=a70_0xa78e65,_0x5c67fd={'ihhIx':function(_0x34a1a8,_0x4bf52b){return _0x34a1a8(_0x4bf52b);},'KVlAd':function(_0x597bfd,_0x324ce3){return _0x597bfd(_0x324ce3);},'pavck':function(_0x223f10,_0xd608c3){return _0x223f10(_0xd608c3);}};if(!this[_0x36cad3(0x225)])return;await _0x5c67fd[_0x36cad3(0x23d)](sleep,0x1e),this['_observer'][_0x36cad3(0x226)](),this[_0x36cad3(0x225)]=![],this[_0x36cad3(0x24c)](this[_0x36cad3(0x1f7)]);const _0x1e75f6=this[_0x36cad3(0x22f)](this[_0x36cad3(0x1f7)]),_0x35e04c=path['join'](process[_0x36cad3(0x1e9)](),_0xd46370);fs[_0x36cad3(0x203)](_0x35e04c,_0x1e75f6,_0x2ab637=>{const _0x49f0ae=_0x36cad3;if(_0x2ab637){_0x5c67fd[_0x49f0ae(0x217)](debug,_0x49f0ae(0x22a)+_0x2ab637[_0x49f0ae(0x1e6)]());return;}_0x5c67fd[_0x49f0ae(0x232)](debug,_0x49f0ae(0x240)+_0x35e04c);});if(_0x8a3d37)return this[_0x36cad3(0x209)](this[_0x36cad3(0x1f7)],_0x8a3d37);}static[a70_0xa78e65(0x22f)](_0x89282e){const _0x5bcb22=a70_0xa78e65,_0x42f9b3={};_0x42f9b3[_0x5bcb22(0x245)]=_0x5bcb22(0x201),_0x42f9b3['CYkgx']=_0x5bcb22(0x1fc),_0x42f9b3['aIKxB']=_0x5bcb22(0x21e),_0x42f9b3[_0x5bcb22(0x1f6)]=_0x5bcb22(0x1d5);const _0x178f86=_0x42f9b3;let _0x367807=_0x178f86[_0x5bcb22(0x245)];return _0x367807+=_0x178f86[_0x5bcb22(0x23f)],_0x367807+=_0x178f86['aIKxB'],_0x89282e[_0x5bcb22(0x23b)](_0x76241e=>{const _0x5ec32a=_0x5bcb22;_0x367807+=_0x5ec32a(0x21c)+_0x76241e[_0x5ec32a(0x233)]+_0x5ec32a(0x20e)+_0x76241e[_0x5ec32a(0x20b)]+_0x5ec32a(0x1da);}),_0x367807+=_0x178f86['VuJKE'],_0x367807;}static[a70_0xa78e65(0x24c)](_0x2a4e02){const _0x37edbe=a70_0xa78e65;if(!this[_0x37edbe(0x216)])return;const _0x2b3ebf={};_0x2a4e02[_0x37edbe(0x24d)](_0x9eadaf=>{const _0x5352c0=_0x37edbe;!_0x2b3ebf[_0x9eadaf[_0x5352c0(0x233)]]&&(_0x2b3ebf[_0x9eadaf[_0x5352c0(0x233)]]=0x0),_0x2b3ebf[_0x9eadaf[_0x5352c0(0x233)]]+=_0x9eadaf['duration'];});const _0x353cae=Object[_0x37edbe(0x1f4)](_0x2b3ebf)[_0x37edbe(0x24d)](([_0x36b047,_0x5604c4])=>{const _0x73856f=_0x37edbe,_0x537c32={};return _0x537c32[_0x73856f(0x233)]=_0x36b047,_0x537c32['duration']=_0x5604c4,_0x537c32;});fs[_0x37edbe(0x1d9)](this[_0x37edbe(0x216)],JSON[_0x37edbe(0x250)](_0x353cae));}static[a70_0xa78e65(0x206)](){const _0x422837=a70_0xa78e65,_0x55d770={};_0x55d770[_0x422837(0x21b)]=function(_0x4c939f,_0x4eca68){return _0x4c939f===_0x4eca68;},_0x55d770['NhhXu']=_0x422837(0x1ef);const _0x48f98c=_0x55d770;return!_0x48f98c[_0x422837(0x21b)](process[_0x422837(0x1fb)][_0x422837(0x1f9)],_0x48f98c[_0x422837(0x21d)]);}static[a70_0xa78e65(0x1ec)](_0x565936,_0xba73a1,_0x5f3601=null,_0x26eaf8=null){const _0x430c01=a70_0xa78e65,_0x4e7e48={};_0x4e7e48[_0x430c01(0x218)]=function(_0x572c21,_0x522860){return _0x572c21+_0x522860;},_0x4e7e48[_0x430c01(0x1ed)]='-start',_0x4e7e48[_0x430c01(0x24a)]=_0x430c01(0x1f2),_0x4e7e48[_0x430c01(0x202)]=function(_0x52ca93,_0x56e99c){return _0x52ca93 instanceof _0x56e99c;};const _0x3dd3ac=_0x4e7e48;try{if(this[_0x430c01(0x225)]&&this['isEnabled']()){let _0x36650d=_0x565936;_0x5f3601&&(_0x36650d=_0x565936+'['+JSON[_0x430c01(0x250)](_0x5f3601)+']');const _0x4177cc=_0x3dd3ac[_0x430c01(0x218)](_0x36650d,_0x3dd3ac[_0x430c01(0x1ed)]),_0x5e5039=_0x3dd3ac['EfFpa'](_0x36650d,_0x3dd3ac['mCawp']);performance[_0x430c01(0x242)](_0x4177cc);const _0xb17389=_0xba73a1[_0x430c01(0x244)](null,_0x26eaf8);if(_0x3dd3ac[_0x430c01(0x202)](_0xb17389,Promise))return new Promise((_0x5a546d,_0x3ea2fc)=>{const _0xfb44=_0x430c01;_0xb17389[_0xfb44(0x20f)](_0x4764f6=>_0x5a546d(_0x4764f6))[_0xfb44(0x248)](_0xcdcbec=>_0x3ea2fc(_0xcdcbec))[_0xfb44(0x215)](()=>{const _0x252b44=_0xfb44;performance[_0x252b44(0x242)](_0x5e5039),performance['measure'](_0x36650d,_0x4177cc,_0x5e5039);});});;return performance['mark'](_0x5e5039),performance[_0x430c01(0x1ec)](_0x36650d,_0x4177cc,_0x5e5039),_0xb17389;};return _0xba73a1[_0x430c01(0x244)](null,_0x26eaf8);}catch(_0x3f6515){return _0xba73a1[_0x430c01(0x244)](null,_0x26eaf8);}}static['measureWrapper'](_0xb5c7b,_0x32a450){const _0x5b567e=this;return function(){const _0x3f3577=a70_0x278c,_0x9a1a95=[_0xb5c7b,_0x32a450,null][_0x3f3577(0x251)](arguments);return _0x5b567e[_0x3f3577(0x1ec)][_0x3f3577(0x244)](_0x5b567e,_0x9a1a95);};}static[a70_0xa78e65(0x1f3)](){const _0x458cd9=a70_0xa78e65,_0x4bb8ea={};_0x4bb8ea[_0x458cd9(0x1de)]=function(_0x2bc146,_0x544f4f){return _0x2bc146/_0x544f4f;},_0x4bb8ea[_0x458cd9(0x228)]=function(_0x5e3a81,_0x53a1e7){return _0x5e3a81+_0x53a1e7;},_0x4bb8ea[_0x458cd9(0x222)]=function(_0x5af29e,_0x15eead){return _0x5af29e*_0x15eead;};const _0x57194f=_0x4bb8ea,_0x3de8d7=/(^.*)\[(.*)\]$/,_0x3e9cfa={},_0x513dd0={};for(const _0x1de885 of this[_0x458cd9(0x210)]){const _0x86545=_0x1de885[_0x458cd9(0x233)][_0x458cd9(0x24b)](_0x3de8d7),_0xad64db={};_0xad64db[_0x458cd9(0x233)]=_0x1de885[_0x458cd9(0x233)],_0xad64db[_0x458cd9(0x20b)]=_0x1de885[_0x458cd9(0x20b)]||0x0;const _0x1fd26e=_0xad64db;_0x86545&&(_0x1fd26e[_0x458cd9(0x233)]=_0x86545[0x1],_0x1fd26e[_0x458cd9(0x1f1)]=JSON['parse'](_0x86545[0x2]));if(_0x3e9cfa[_0x1fd26e['name']]){const _0x1134f5=_0x3e9cfa[_0x1fd26e[_0x458cd9(0x233)]],_0x53caff=_0x513dd0[_0x1fd26e['name']];_0x3e9cfa[_0x1fd26e[_0x458cd9(0x233)]][_0x458cd9(0x20b)]=_0x57194f[_0x458cd9(0x1de)](_0x57194f[_0x458cd9(0x228)](_0x57194f[_0x458cd9(0x222)](_0x1134f5[_0x458cd9(0x20b)],_0x53caff),_0x1fd26e[_0x458cd9(0x20b)]),_0x57194f[_0x458cd9(0x228)](0x1,_0x53caff)),_0x513dd0[_0x1fd26e[_0x458cd9(0x233)]]++;}else _0x3e9cfa[_0x1fd26e[_0x458cd9(0x233)]]=_0x1fd26e,_0x513dd0[_0x1fd26e[_0x458cd9(0x233)]]=0x1;}return Object['values'](_0x3e9cfa);}static[a70_0xa78e65(0x23c)](){const _0x361fba=a70_0xa78e65,_0x43cdb4={};_0x43cdb4[_0x361fba(0x1d6)]=function(_0x472457,_0x2aef6a){return _0x472457===_0x2aef6a;},_0x43cdb4[_0x361fba(0x1e0)]=function(_0x1884a9,_0x3fd867){return _0x1884a9+_0x3fd867;};const _0x514468=_0x43cdb4;if(_0x514468[_0x361fba(0x1d6)](this[_0x361fba(0x210)][_0x361fba(0x1dd)],0x0))return;const _0x39b2cd=this['getCleanedPerfEvents'](),_0x5f3257=JSON[_0x361fba(0x250)](_0x39b2cd),_0x458c5a=_0x514468[_0x361fba(0x1e0)](_0x5f3257['slice'](0x1,-0x1),',');fs[_0x361fba(0x237)](this['jsonReportFileName'],_0x458c5a);}static['finalizePerfMeasures'](){const _0x11ae1c=a70_0xa78e65,_0xb1bdfb={};_0xb1bdfb[_0x11ae1c(0x247)]=function(_0x31362e,_0x30051f){return _0x31362e===_0x30051f;},_0xb1bdfb['tgEtJ']=function(_0x2b99eb,_0xb788fd){return _0x2b99eb>_0xb788fd;};const _0x36996c=_0xb1bdfb;if(!this['started']||_0x36996c[_0x11ae1c(0x247)](this[_0x11ae1c(0x210)][_0x11ae1c(0x1dd)],0x0))return[];if(!fs['existsSync'](this[_0x11ae1c(0x216)]))return this[_0x11ae1c(0x210)];let _0x53c88b=fs[_0x11ae1c(0x24f)](this[_0x11ae1c(0x216)])[_0x11ae1c(0x1e6)]();_0x53c88b='['+_0x53c88b[_0x11ae1c(0x236)](0x0,-0x1)+']';let _0xa05912=JSON[_0x11ae1c(0x1e4)](_0x53c88b);return _0x36996c[_0x11ae1c(0x205)](this['_measureEvents']['length'],0x0)&&(_0xa05912=_0xa05912['concat'](this[_0x11ae1c(0x1f3)]())),this[_0x11ae1c(0x1fd)]['disconnect'](),fs[_0x11ae1c(0x253)](this['jsonReportFileName']),_0xa05912;}static[a70_0xa78e65(0x1d8)](){const _0x19b68b=a70_0xa78e65,_0x274074={};_0x274074[_0x19b68b(0x221)]=function(_0x2164f5,_0x1c18ad){return _0x2164f5===_0x1c18ad;},_0x274074['jrXsF']=function(_0x53c2d8,_0x24140b){return _0x53c2d8+_0x24140b;};const _0x408970=_0x274074;if(_0x408970[_0x19b68b(0x221)](this[_0x19b68b(0x1f8)][_0x19b68b(0x1dd)],0x0))return;const _0x14520e=JSON[_0x19b68b(0x250)](this[_0x19b68b(0x1f8)]),_0x2aacab=_0x408970[_0x19b68b(0x21f)](_0x14520e[_0x19b68b(0x236)](0x1,-0x1),',');fs[_0x19b68b(0x237)](this[_0x19b68b(0x211)],_0x2aacab);}static['finalizeErrors'](){const _0x302246=a70_0xa78e65,_0x179891={};_0x179891[_0x302246(0x208)]=function(_0x4becf2,_0x4852c9){return _0x4becf2>_0x4852c9;};const _0x314312=_0x179891;if(!fs[_0x302246(0x213)](this['errorReportFileName']))return this[_0x302246(0x1f8)];let _0x14ebbc=fs[_0x302246(0x24f)](this[_0x302246(0x212)])[_0x302246(0x1e6)]();_0x14ebbc='['+_0x14ebbc[_0x302246(0x236)](0x0,-0x1)+']';let _0x45068c=JSON[_0x302246(0x1e4)](_0x14ebbc);return _0x314312[_0x302246(0x208)](this[_0x302246(0x1f8)]['length'],0x0)&&(_0x45068c=_0x45068c[_0x302246(0x251)](this[_0x302246(0x1f8)])),fs[_0x302246(0x253)](this[_0x302246(0x212)]),_0x45068c;}static[a70_0xa78e65(0x1db)](_0x188241){const _0x18017c=a70_0xa78e65;if(!this['isEnabled']())return;this[_0x18017c(0x1f8)]['push']({'message':_0x188241[_0x18017c(0x200)],'trace':_0x188241['stack'],'code':_0x188241['code']||null,'time':new Date()});}static[a70_0xa78e65(0x241)](){const _0x3a8a2e=a70_0xa78e65,_0x2215d9={};_0x2215d9[_0x3a8a2e(0x249)]=_0x3a8a2e(0x1ff);const _0x2ccfee=_0x2215d9;try{if(!this[_0x3a8a2e(0x206)]())return;this[_0x3a8a2e(0x1fd)][_0x3a8a2e(0x226)](),this[_0x3a8a2e(0x23c)](),this[_0x3a8a2e(0x1d8)]();}catch{logger[_0x3a8a2e(0x23e)](_0x2ccfee[_0x3a8a2e(0x249)]);}}static[a70_0xa78e65(0x1e5)](){const _0xae5f2b=a70_0xa78e65,_0x1f8f34=this['finalizePerfMeasures'](),_0x5459f9=this[_0xae5f2b(0x234)]();if(!this[_0xae5f2b(0x206)]()){const _0x55de60={};return _0x55de60[_0xae5f2b(0x229)]=[],_0x55de60['errors']=[],_0x55de60;}const _0x126ab4={};return _0x126ab4[_0xae5f2b(0x229)]=_0x1f8f34,_0x126ab4[_0xae5f2b(0x1dc)]=_0x5459f9,_0x126ab4;}}function a70_0x278c(_0x324362,_0x30bf20){const _0x39060e=a70_0x3906();return a70_0x278c=function(_0x278c87,_0x4571e2){_0x278c87=_0x278c87-0x1d5;let _0x58b370=_0x39060e[_0x278c87];return _0x58b370;},a70_0x278c(_0x324362,_0x30bf20);}function a70_0x3906(){const _0x5a4f8a=['11772WiOOvQ','cwd','MBYvW','getPerformance','measure','MrgXZ','40290ipLuMi','false','IDIir','meta','-end','getCleanedPerfEvents','entries','Error\x20in\x20doing\x20csv\x20operations:\x20','VuJKE','_events','_errorEvents','BROWSERSTACK_SDK_INSTRUMENTATION','entryType','env','<h1>Performance\x20Report</h1>','_observer','push','Error\x20stopping\x20monitoring','message','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','AtXnG','writeFile','274445yoXTWS','tgEtJ','isEnabled','FxbfU','pqpUU','calculateTimeFromEvents','entryTypes','duration','27907CSXZtp','perf_hooks','</td><td>','then','_measureEvents','errorFile','errorReportFileName','existsSync','45XAiRaY','finally','jsonReportFileName','ihhIx','EfFpa','./test-observability/utils','startMonitoring','ecmgW','<tr><td>','NhhXu','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','jrXsF','performance-report.json','WNRwK','szeDi','./logger','Yliuh','started','disconnect','observe','fcXju','measures','Error\x20in\x20writing\x20html\x20','942690byHnXZ','exports','iWklK','LeRVT','generateHTMLReport','92pZgQau','rAHeR','KVlAd','name','finalizeErrors','\x20for\x20all\x20processes\x20is\x20','slice','appendFileSync','path','JxoIx','1300122OPzthN','forEach','pushPerfMeasures','pavck','debug','CYkgx','Performance\x20report\x20is\x20at\x20','stopMonitoring','mark','25435sqEoGN','apply','Vxtqk','8lmYiNL','PbeZp','catch','gNXrg','mCawp','match','generateJSON','map','getEntries','readFileSync','stringify','concat','reduce','unlinkSync','</tbody></table></body></html>','eXOFT','1270tUTAFT','pushErrors','writeFileSync','</td></tr>','captureError','errors','length','hJVGV','QpiMS','ETDal','calculateTimesFromMultipleFiles','function','error-report.json','parse','finalize','toString','OqdLs'];a70_0x3906=function(){return _0x5a4f8a;};return a70_0x3906();}module[a70_0xa78e65(0x22c)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a71_0x4fa5a9=a71_0x3762;function a71_0xee61(){const _0x1b0e3b=['hostname','http','unpatch','2837460ADuAPD','spy','31516YcMJyS','YztzP','AViWs','statusCode','now','15618471OnbHyB','status_code','kfPWa','method','request','NslQD','PxfBK','duration_ms','error','qQxQr','restore','2887832NhuBah','end','monkeypatch','exports','tHSOn','UMdwB','117DQewrJ','KNxHS','5sMMRHx','qIjlY','HsCbz','response','TfePW','9247242JNVAaM','removeListener','26048vhnrVt','path','818940KsrfZp','host','14FNKTsX','headers','48WNRaBV'];a71_0xee61=function(){return _0x1b0e3b;};return a71_0xee61();}(function(_0x2b5c51,_0x2ea5c6){const _0x41dbf7=a71_0x3762,_0x2528ed=_0x2b5c51();while(!![]){try{const _0x27bc36=-parseInt(_0x41dbf7(0x1c1))/0x1*(parseInt(_0x41dbf7(0x1c7))/0x2)+parseInt(_0x41dbf7(0x1cb))/0x3+parseInt(_0x41dbf7(0x1cd))/0x4+-parseInt(_0x41dbf7(0x1e5))/0x5*(-parseInt(_0x41dbf7(0x1bf))/0x6)+-parseInt(_0x41dbf7(0x1c5))/0x7*(parseInt(_0x41dbf7(0x1dd))/0x8)+parseInt(_0x41dbf7(0x1e3))/0x9*(parseInt(_0x41dbf7(0x1c3))/0xa)+-parseInt(_0x41dbf7(0x1d2))/0xb;if(_0x27bc36===_0x2ea5c6)break;else _0x2528ed['push'](_0x2528ed['shift']());}catch(_0x50d089){_0x2528ed['push'](_0x2528ed['shift']());}}}(a71_0xee61,0xc17ed));const http=require(a71_0x4fa5a9(0x1c9)),https=require('https'),monkeypatch=require(a71_0x4fa5a9(0x1df));function a71_0x3762(_0x194a49,_0x503df5){const _0xee6145=a71_0xee61();return a71_0x3762=function(_0x376279,_0xad499){_0x376279=_0x376279-0x1be;let _0x2e272b=_0xee6145[_0x376279];return _0x2e272b;},a71_0x3762(_0x194a49,_0x503df5);}function spy(_0x5173d2){const _0xab6a29=a71_0x4fa5a9,_0x10a308={'hfiGB':function(_0x4aaa8d,_0x27a13b,_0x591cb4){return _0x4aaa8d(_0x27a13b,_0x591cb4);},'PxfBK':function(_0x34f5f6,..._0x3d28d5){return _0x34f5f6(..._0x3d28d5);},'kfPWa':function(_0x405ee2,_0x173d6d){return _0x405ee2-_0x173d6d;},'TfePW':function(_0x1bf6b9,_0x180a9c,_0x4e21f8){return _0x1bf6b9(_0x180a9c,_0x4e21f8);},'HsCbz':_0xab6a29(0x1da),'NslQD':function(_0x332c91,_0x498f54,_0xb72fff){return _0x332c91(_0x498f54,_0xb72fff);},'OJaCo':_0xab6a29(0x1e8),'Kunoj':'socket','YztzP':function(_0x2976fd,_0x581e52,_0x5c53ea,_0x1727da){return _0x2976fd(_0x581e52,_0x5c53ea,_0x1727da);},'tHSOn':_0xab6a29(0x1de),'mpcTe':function(_0x381099,_0x54de86,_0x164feb,_0x139105){return _0x381099(_0x54de86,_0x164feb,_0x139105);},'qQxQr':_0xab6a29(0x1d6),'UMdwB':function(_0x505161,_0x46b40c,_0x1ceceb,_0x2f9f6b){return _0x505161(_0x46b40c,_0x1ceceb,_0x2f9f6b);}},_0x4934ee=(_0x3bb004,_0xdf13ef,_0x2dfe8)=>{const _0xfa8248=_0xab6a29,_0x31b7ef={'KNxHS':function(_0x4bdbe4,_0x3ee446){const _0x4cc71c=a71_0x3762;return _0x10a308[_0x4cc71c(0x1d4)](_0x4bdbe4,_0x3ee446);},'qIjlY':function(_0xbfb154,_0x4894bb,_0x2ebc87){const _0x2ef46c=a71_0x3762;return _0x10a308[_0x2ef46c(0x1be)](_0xbfb154,_0x4894bb,_0x2ebc87);},'AViWs':_0x10a308[_0xfa8248(0x1e7)]},_0x1b3740=_0x10a308[_0xfa8248(0x1d7)](_0x3bb004,_0xdf13ef,_0x2dfe8);let _0x5c6469=Date[_0xfa8248(0x1d1)](),_0x58892b;const _0x53cc7c=_0x505d8e=>{const _0x3a42d1=_0xfa8248,_0xdd22c0={};_0xdd22c0[_0x3a42d1(0x1c4)]=_0xdf13ef[_0x3a42d1(0x1c4)]||_0xdf13ef[_0x3a42d1(0x1c8)],_0xdd22c0[_0x3a42d1(0x1c2)]=_0xdf13ef['path'],_0xdd22c0[_0x3a42d1(0x1d5)]=_0xdf13ef[_0x3a42d1(0x1d5)],_0xdd22c0[_0x3a42d1(0x1c6)]=_0xdf13ef[_0x3a42d1(0x1c6)],_0x10a308['hfiGB'](_0x5173d2,_0x505d8e,_0xdd22c0);};return _0x1b3740['once'](_0x10a308['OJaCo'],_0x29ba84=>{const _0x1820d7=_0xfa8248,_0x59de68=_0x31b7ef[_0x1820d7(0x1e4)](Date[_0x1820d7(0x1d1)](),_0x5c6469),_0x15d985={};_0x15d985['hostname']=_0xdf13ef[_0x1820d7(0x1c4)]||_0xdf13ef['hostname'],_0x15d985[_0x1820d7(0x1c2)]=_0xdf13ef[_0x1820d7(0x1c2)],_0x15d985[_0x1820d7(0x1d5)]=_0xdf13ef[_0x1820d7(0x1d5)],_0x15d985[_0x1820d7(0x1c6)]=_0xdf13ef[_0x1820d7(0x1c6)],_0x15d985[_0x1820d7(0x1d3)]=_0x29ba84[_0x1820d7(0x1d0)],_0x15d985[_0x1820d7(0x1d9)]=_0x59de68,_0x31b7ef[_0x1820d7(0x1e6)](_0x5173d2,null,_0x15d985),_0x58892b[_0x1820d7(0x1c0)](_0x31b7ef[_0x1820d7(0x1cf)],_0x53cc7c);}),_0x1b3740['on'](_0x10a308['Kunoj'],_0x4646c0=>{_0x58892b=_0x4646c0,_0x4646c0['once'](_0x31b7ef['AViWs'],_0x53cc7c);}),_0x10a308[_0xfa8248(0x1ce)](monkeypatch,_0x1b3740,_0x10a308[_0xfa8248(0x1e1)],(_0x4b32d3,..._0x18e407)=>{const _0x41cc3a=_0xfa8248;_0x5c6469=Date[_0x41cc3a(0x1d1)](),_0x10a308[_0x41cc3a(0x1d8)](_0x4b32d3,..._0x18e407);}),_0x1b3740;};_0x10a308['mpcTe'](monkeypatch,http,_0x10a308[_0xab6a29(0x1db)],_0x4934ee),_0x10a308[_0xab6a29(0x1e2)](monkeypatch,https,_0x10a308[_0xab6a29(0x1db)],_0x4934ee);}function restore(){const _0x21586a=a71_0x4fa5a9;http[_0x21586a(0x1d6)][_0x21586a(0x1ca)](),https[_0x21586a(0x1d6)]['unpatch']();}const a71_0x3bc217={};a71_0x3bc217[a71_0x4fa5a9(0x1cc)]=spy,a71_0x3bc217[a71_0x4fa5a9(0x1dc)]=restore,module[a71_0x4fa5a9(0x1e0)]=a71_0x3bc217;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a72_0x219780=a72_0x4c90;(function(_0x5dedd8,_0x1c8a36){const _0x12ab77=a72_0x4c90,_0x2a780b=_0x5dedd8();while(!![]){try{const _0xe7d91e=-parseInt(_0x12ab77(0x1f0))/0x1*(-parseInt(_0x12ab77(0x1e6))/0x2)+-parseInt(_0x12ab77(0x1ea))/0x3+-parseInt(_0x12ab77(0x1f5))/0x4*(parseInt(_0x12ab77(0x1f7))/0x5)+parseInt(_0x12ab77(0x1f1))/0x6+-parseInt(_0x12ab77(0x1e8))/0x7*(-parseInt(_0x12ab77(0x201))/0x8)+parseInt(_0x12ab77(0x1e5))/0x9*(-parseInt(_0x12ab77(0x1fe))/0xa)+parseInt(_0x12ab77(0x202))/0xb;if(_0xe7d91e===_0x1c8a36)break;else _0x2a780b['push'](_0x2a780b['shift']());}catch(_0x1243e6){_0x2a780b['push'](_0x2a780b['shift']());}}}(a72_0x4c49,0x752a2),module[a72_0x219780(0x1fd)]=function(){const _0x28e7fa=a72_0x219780,_0x4e15a8={'ggfvA':function(_0xd330b,_0x169aa6){return _0xd330b===_0x169aa6;},'LVJeO':_0x28e7fa(0x203),'YRjth':'agent','sggNb':function(_0x403430,_0x2a05eb,_0x2ad4f5){return _0x403430(_0x2a05eb,_0x2ad4f5);},'Zdldk':function(_0xe0c06d,_0x20a15d,_0x44e97c){return _0xe0c06d(_0x20a15d,_0x44e97c);},'JkRhd':function(_0x83d56f,_0x1db847){return _0x83d56f(_0x1db847);},'lIoTd':_0x28e7fa(0x204),'RXYax':_0x28e7fa(0x200),'AhXwQ':function(_0x348942,_0x13ba65){return _0x348942*_0x13ba65;},'igAme':_0x28e7fa(0x1f4)},_0xe8e63a=_0x4e15a8['JkRhd'](require,_0x4e15a8[_0x28e7fa(0x1ef)]),_0x4365ee=_0x4e15a8[_0x28e7fa(0x1f8)](require,_0x4e15a8[_0x28e7fa(0x1eb)]),_0x47a01a=_0x4e15a8[_0x28e7fa(0x1f9)](0x1e,0x3e8);if(_0xe8e63a['globalAgent']&&Object[_0x28e7fa(0x1fc)][_0x28e7fa(0x1e4)]['call'](_0xe8e63a['globalAgent'],_0x4e15a8[_0x28e7fa(0x1ed)]))_0xe8e63a['globalAgent']['keepAlive']=!![],_0x4365ee[_0x28e7fa(0x1e9)][_0x28e7fa(0x1f4)]=!![],_0xe8e63a[_0x28e7fa(0x1e9)][_0x28e7fa(0x1fa)]=_0x47a01a,_0x4365ee['globalAgent']['keepAliveMsecs']=_0x47a01a;else{const _0x5cc650={};_0x5cc650['keepAlive']=!![],_0x5cc650[_0x28e7fa(0x1fa)]=_0x47a01a;const _0xb14b62=new _0xe8e63a[(_0x28e7fa(0x1ee))](_0x5cc650),_0x2694ad={};_0x2694ad[_0x28e7fa(0x1f4)]=!![],_0x2694ad[_0x28e7fa(0x1fa)]=_0x47a01a;const _0x3b9ecf=new _0x4365ee[(_0x28e7fa(0x1ee))](_0x2694ad),_0x28bb71=_0xe8e63a[_0x28e7fa(0x1ec)],_0x59593d=_0x4365ee[_0x28e7fa(0x1ec)];_0xe8e63a[_0x28e7fa(0x1ec)]=function(_0x4029aa,_0x56a87d){const _0x2e41df=_0x28e7fa;if(_0x4e15a8[_0x2e41df(0x1e7)](_0x4029aa[_0x2e41df(0x1fb)],_0x4e15a8[_0x2e41df(0x1f3)]))return _0x4029aa[_0x4e15a8[_0x2e41df(0x1f2)]]=_0x3b9ecf,_0x4e15a8[_0x2e41df(0x1f6)](_0x59593d,_0x4029aa,_0x56a87d);return _0x4029aa[_0x4e15a8[_0x2e41df(0x1f2)]]=_0xb14b62,_0x4e15a8[_0x2e41df(0x1ff)](_0x28bb71,_0x4029aa,_0x56a87d);};}});function a72_0x4c90(_0x45a57d,_0x479aa3){const _0x4c49ec=a72_0x4c49();return a72_0x4c90=function(_0x4c90f3,_0x5f193f){_0x4c90f3=_0x4c90f3-0x1e4;let _0x5df829=_0x4c49ec[_0x4c90f3];return _0x5df829;},a72_0x4c90(_0x45a57d,_0x479aa3);}function a72_0x4c49(){const _0x437fca=['263832GkpOBd','YRjth','LVJeO','keepAlive','264CwYdOK','sggNb','7635CIfKjq','JkRhd','AhXwQ','keepAliveMsecs','protocol','prototype','exports','10PpBMnw','Zdldk','https','256hDrfGR','7177104IoSvon','https:','http','hasOwnProperty','921924HojlAX','4zFFDJq','ggfvA','13062Glzcdb','globalAgent','1113126dzNSvQ','RXYax','request','igAme','Agent','lIoTd','149009aXfpuH'];a72_0x4c49=function(){return _0x437fca;};return a72_0x4c49();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a73_0x534212=a73_0x47ea;(function(_0x132511,_0x1e23e0){var _0x1da786=a73_0x47ea,_0x45f165=_0x132511();while(!![]){try{var _0xea7786=parseInt(_0x1da786(0xb2))/0x1+-parseInt(_0x1da786(0xb5))/0x2*(-parseInt(_0x1da786(0xb4))/0x3)+parseInt(_0x1da786(0xbc))/0x4+parseInt(_0x1da786(0xb8))/0x5+-parseInt(_0x1da786(0xc1))/0x6+parseInt(_0x1da786(0xbf))/0x7*(parseInt(_0x1da786(0xc4))/0x8)+-parseInt(_0x1da786(0xc2))/0x9;if(_0xea7786===_0x1e23e0)break;else _0x45f165['push'](_0x45f165['shift']());}catch(_0x3ede30){_0x45f165['push'](_0x45f165['shift']());}}}(a73_0x23f2,0xd5bbf));var a73_0x3b5af0={};function a73_0x47ea(_0x23bc23,_0x52adef){var _0x23f2ef=a73_0x23f2();return a73_0x47ea=function(_0x47eaa8,_0x2ec041){_0x47eaa8=_0x47eaa8-0xb2;var _0xdb00e0=_0x23f2ef[_0x47eaa8];return _0xdb00e0;},a73_0x47ea(_0x23bc23,_0x52adef);}a73_0x3b5af0[a73_0x534212(0xc0)]=a73_0x534212(0xc3),a73_0x3b5af0[a73_0x534212(0xbe)]='mocha',a73_0x3b5af0[a73_0x534212(0xbb)]=a73_0x534212(0xb6),module['exports']={'consoleHolder':Object[a73_0x534212(0xb3)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a73_0x534212(0xb9),'EVENT_ENDPOINT':a73_0x534212(0xbd),'BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':a73_0x534212(0xba),'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':a73_0x534212(0xb7),'FRAMEWORKS':a73_0x3b5af0};function a73_0x23f2(){var _0x464a66=['21342DpNqIH','codeceptjs','.obs_test_details','613960fQlEaE','https://collector-observability.browserstack.com','api/v1/screenshots','CODECEPT','2794392dbCxRQ','api/v1/event','MOCHA','7zqQoGs','PLAYWRIGHT','4926120QdNPXl','25695783LUQYcf','Playwright','5366488jlbNBJ','1544079ODmLtf','assign','426Frvgnm'];a73_0x23f2=function(){return _0x464a66;};return a73_0x23f2();}
|