browserstack-node-sdk 1.34.2 → 1.34.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ats/src/cloudproviders/AWS.js +1 -1
- package/ats/src/cloudproviders/Azure.js +1 -1
- package/ats/src/cloudproviders/CloudProvider.js +1 -1
- package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
- package/ats/src/cloudproviders/utils.js +1 -1
- package/ats/src/commands/configure.js +1 -1
- package/ats/src/commands/connect.js +1 -1
- package/ats/src/commands/connect_commands/grid.js +1 -1
- package/ats/src/commands/create.js +1 -1
- package/ats/src/commands/create_commands/grid.js +1 -1
- package/ats/src/commands/delete.js +1 -1
- package/ats/src/commands/delete_commands/grid.js +1 -1
- package/ats/src/commands/init.js +1 -1
- package/ats/src/commands/list.js +1 -1
- package/ats/src/commands/list_commands/grid_profiles.js +1 -1
- package/ats/src/commands/list_commands/grids.js +1 -1
- package/ats/src/commands/start.js +1 -1
- package/ats/src/commands/start_commands/grid.js +1 -1
- package/ats/src/commands/stop.js +1 -1
- package/ats/src/commands/stop_commands/grid.js +1 -1
- package/ats/src/config/constants.js +1 -1
- package/ats/src/config/logger.js +1 -1
- package/ats/src/index.js +1 -1
- package/ats/src/utils/AWSUtils.js +1 -1
- package/ats/src/utils/createAutoscalerStack.js +1 -1
- package/ats/src/utils/createClusterStack.js +1 -1
- package/ats/src/utils/createk8sClient.js +1 -1
- package/ats/src/utils/deleteStack.js +1 -1
- package/ats/src/utils/gridComponents.js +1 -1
- package/ats/src/utils/hstUtils.js +1 -1
- package/ats/src/utils/instrumentationUtils.js +1 -1
- package/ats/src/utils/userInput.js +1 -1
- package/ats/src/utils/utilityMethods.js +1 -1
- package/ats/src/utils/webSocketUtils.js +1 -1
- package/package.json +1 -1
- package/src/ai-sdk-node/bundle.js +1 -1
- package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
- package/src/bin/codeceptjs/command.js +1 -1
- package/src/bin/codeceptjs/helper.js +1 -1
- package/src/bin/codeceptjs/o11yHelper.js +1 -1
- package/src/bin/cucumber-js/command.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
- package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
- package/src/bin/cucumber-js/test-observability.js +1 -1
- package/src/bin/cucumber-js/test.setup.js +1 -1
- package/src/bin/cucumber-js/test_old.setup.js +1 -1
- package/src/bin/cucumber-js/timeout.setup.js +1 -1
- package/src/bin/integrations/command.js +1 -1
- package/src/bin/integrations/constants.js +1 -1
- package/src/bin/jest/command.js +1 -1
- package/src/bin/jest/customImplements/customCircus.js +1 -1
- package/src/bin/jest/customImplements/customEnvironment.js +1 -1
- package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
- package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
- package/src/bin/jest/jest.setup.js +1 -1
- package/src/bin/jest/test-observability/data-hooks.js +1 -1
- package/src/bin/jest/test-observability/helper.js +1 -1
- package/src/bin/jest/test-observability/obsReporter.js +1 -1
- package/src/bin/jest/test-observability/test-details.js +1 -1
- package/src/bin/jest/test_before.setup.js +1 -1
- package/src/bin/launcher/launcher.js +1 -1
- package/src/bin/mocha/accessibility-automation/helper.js +1 -1
- package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
- package/src/bin/mocha/command.js +1 -1
- package/src/bin/mocha/test-observability/builderPatch.js +1 -1
- package/src/bin/mocha/test-observability/data-hooks.js +1 -1
- package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
- package/src/bin/mocha/test.setup.js +1 -1
- package/src/bin/nightwatch/command.js +1 -1
- package/src/bin/playwright/accessibility-helper.js +1 -1
- package/src/bin/playwright/command.js +1 -1
- package/src/bin/playwright/globalSetup.js +1 -1
- package/src/bin/playwright/mock-process.js +1 -1
- package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
- package/src/bin/playwright/patches.js +1 -1
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
- package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/testhub/constants.js +1 -1
- package/src/helpers/testhub/testhubHandler.js +1 -1
- package/src/helpers/testhub/utils.js +1 -1
- package/src/helpers/timeoutPromise.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x175d14=a66_0x3f1d;(function(_0x3cc4e4,_0x523fb4){const _0xea325a=a66_0x3f1d,_0x2808e8=_0x3cc4e4();while(!![]){try{const _0x4e6f11=parseInt(_0xea325a(0x14b))/0x1+-parseInt(_0xea325a(0x163))/0x2+-parseInt(_0xea325a(0x15f))/0x3+-parseInt(_0xea325a(0x148))/0x4*(-parseInt(_0xea325a(0x142))/0x5)+-parseInt(_0xea325a(0x154))/0x6*(-parseInt(_0xea325a(0x157))/0x7)+parseInt(_0xea325a(0x15d))/0x8*(-parseInt(_0xea325a(0x15e))/0x9)+parseInt(_0xea325a(0x159))/0xa;if(_0x4e6f11===_0x523fb4)break;else _0x2808e8['push'](_0x2808e8['shift']());}catch(_0x336fda){_0x2808e8['push'](_0x2808e8['shift']());}}}(a66_0x33f8,0xb97f2));function a66_0x3f1d(_0x17991d,_0x22eee9){const _0x33f8a6=a66_0x33f8();return a66_0x3f1d=function(_0x3f1d04,_0x74e2cc){_0x3f1d04=_0x3f1d04-0x142;let _0x418e6e=_0x33f8a6[_0x3f1d04];return _0x418e6e;},a66_0x3f1d(_0x17991d,_0x22eee9);}const winston=require(a66_0x175d14(0x153)),os=require('os'),fs=require('fs'),path=require(a66_0x175d14(0x14c)),logDir=a66_0x175d14(0x15c);!fs[a66_0x175d14(0x164)](logDir)&&fs['mkdirSync'](logDir);const a66_0x292a5d={};a66_0x292a5d['name']=a66_0x175d14(0x158);const transports={'loggerConsole':new winston[(a66_0x175d14(0x162))][(a66_0x175d14(0x145))](a66_0x292a5d),'loggerFile':new winston[(a66_0x175d14(0x162))]['File']({'filename':path[a66_0x175d14(0x151)](logDir,a66_0x175d14(0x150))}),'debugLoggerFile':new winston[(a66_0x175d14(0x162))]['File']({'filename':path['join'](logDir,a66_0x175d14(0x155)),'level':'silly'})},a66_0x36f376={};a66_0x36f376['format']=a66_0x175d14(0x15a);const a66_0x2b3222={};function a66_0x33f8(){const _0x494873=['loggerFile','createLogger','/usage.log','join','\x20-\x20','winston','1672890gUtjVt','/usage-debug.log','winstonLogger','21NgxmrD','console.info','5910650JjtgQi','YYYY-MM-DD\x20HH:mm:ss','loggerConsole','log','4123688cPVMof','18wnWstD','810576nYmyLf','timestamp','level','transports','2396236PLUxPM','existsSync','2766730RElmNF','message','colorize','Console','printf','combine','4vDYAWJ','fileLogger','debugLoggerFile','1278170OqklhB','path','format'];a66_0x33f8=function(){return _0x494873;};return a66_0x33f8();}a66_0x2b3222[a66_0x175d14(0x161)]=!![];const winstonLoggerParams={'format':winston[a66_0x175d14(0x14d)][a66_0x175d14(0x147)](winston[a66_0x175d14(0x14d)][a66_0x175d14(0x160)](a66_0x36f376),winston[a66_0x175d14(0x14d)][a66_0x175d14(0x144)](a66_0x2b3222),winston[a66_0x175d14(0x14d)][a66_0x175d14(0x146)](_0x427771=>_0x427771[a66_0x175d14(0x160)]+a66_0x175d14(0x152)+_0x427771['level']+':\x20'+_0x427771[a66_0x175d14(0x143)])),'transports':[transports[a66_0x175d14(0x15b)],transports[a66_0x175d14(0x14e)],transports[a66_0x175d14(0x14a)]]},a66_0x42e6d6={};a66_0x42e6d6['format']='YYYY-MM-DD\x20HH:mm:ss';const a66_0x1ca05e={};a66_0x1ca05e['level']=!![];const winstonFileLoggerParams={'format':winston[a66_0x175d14(0x14d)][a66_0x175d14(0x147)](winston[a66_0x175d14(0x14d)][a66_0x175d14(0x160)](a66_0x42e6d6),winston['format']['colorize'](a66_0x1ca05e),winston[a66_0x175d14(0x14d)][a66_0x175d14(0x146)](_0x4663d1=>_0x4663d1[a66_0x175d14(0x161)]+':\x20'+_0x4663d1['message'])),'transports':[transports['loggerFile'],transports[a66_0x175d14(0x14a)]]};exports[a66_0x175d14(0x156)]=new winston[(a66_0x175d14(0x14f))](winstonLoggerParams),exports[a66_0x175d14(0x149)]=new winston['createLogger'](winstonFileLoggerParams),exports['logDir']=logDir,exports[a66_0x175d14(0x162)]=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a67_0x8738ab=a67_0x247c;function a67_0x247c(_0x1f6393,_0x492da3){var _0xfbb89b=a67_0xfbb8();return a67_0x247c=function(_0x247cf9,_0x437525){_0x247cf9=_0x247cf9-0x124;var _0x1110e8=_0xfbb89b[_0x247cf9];return _0x1110e8;},a67_0x247c(_0x1f6393,_0x492da3);}function a67_0xfbb8(){var _0x4a30f8=['tjkSx','1603730zYmnMO','initScreenshot','WduOY','82qNbfiy','quitCount_','473jZAFqZ','176drCuow','yVqBY','21QkLqYM','patchScreenshot','6694XgBbnF','301008XZrrkj','929187ebHHSJ','initQuit','then','takeScreenshot','9JWzwhp','SIPJj','TEST_SCREENSHOT','overrideTakeScreenshot','emit','split','ziPke','patchQuit','UQZsM','quit','bs:addLog:','true','ZDMUM','ilZmS','1357800ixMlvD','env','ZNxNA','6910TZAivm','mSwlN','toISOString','BS_TESTOPS_ALLOW_SCREENSHOTS','505884tfKgqd'];a67_0xfbb8=function(){return _0x4a30f8;};return a67_0xfbb8();}(function(_0x3df9f3,_0x1eba39){var _0x552261=a67_0x247c,_0x3d16db=_0x3df9f3();while(!![]){try{var _0x2860cc=-parseInt(_0x552261(0x135))/0x1*(parseInt(_0x552261(0x12e))/0x2)+-parseInt(_0x552261(0x137))/0x3+-parseInt(_0x552261(0x131))/0x4*(parseInt(_0x552261(0x125))/0x5)+parseInt(_0x552261(0x129))/0x6*(-parseInt(_0x552261(0x133))/0x7)+-parseInt(_0x552261(0x149))/0x8+parseInt(_0x552261(0x13b))/0x9*(parseInt(_0x552261(0x12b))/0xa)+parseInt(_0x552261(0x130))/0xb*(parseInt(_0x552261(0x136))/0xc);if(_0x2860cc===_0x1eba39)break;else _0x3d16db['push'](_0x3d16db['shift']());}catch(_0x3b0f31){_0x3d16db['push'](_0x3d16db['shift']());}}}(a67_0xfbb8,0x29d3f),exports[a67_0x8738ab(0x13e)]=_0x3961c0=>{var _0x322af2=a67_0x8738ab,_0x2b7697={'PCnWv':'5|4|3|1|2|0','ilZmS':function(_0x2749cb,_0x426068){return _0x2749cb!==_0x426068;},'fuNyj':_0x322af2(0x146),'fjVUu':_0x322af2(0x13d),'mSwlN':function(_0x1a80ab,_0xaf43a3){return _0x1a80ab(_0xaf43a3);}},_0x33ce30=_0x2b7697['PCnWv'][_0x322af2(0x140)]('|'),_0x5e8a58=0x0;while(!![]){switch(_0x33ce30[_0x5e8a58++]){case'0':_0x3961c0[_0x322af2(0x13a)]=()=>{var _0x3c6a1d=_0x322af2,_0x3c02f5={'WduOY':_0x3fbdee[_0x3c6a1d(0x12a)],'UQZsM':function(_0x2325d,_0x1afbb0){return _0x3fbdee['UxEZw'](_0x2325d,_0x1afbb0);}};return new Promise(function(_0x5b71a1,_0x43e01b){var _0x59424d=_0x3c6a1d;_0x3961c0['initScreenshot']()[_0x59424d(0x139)](_0x5e9e9a=>{var _0x7cf49e=_0x59424d;process[_0x7cf49e(0x13f)](_0x7cf49e(0x145)+process['pid'],{'timestamp':new Date()[_0x7cf49e(0x127)](),'message':_0x5e9e9a,'kind':_0x3c02f5[_0x7cf49e(0x12d)]}),_0x3c02f5[_0x7cf49e(0x143)](_0x5b71a1,_0x5e9e9a);});});};continue;case'1':_0x3961c0[_0x322af2(0x134)]=!![];continue;case'2':_0x3961c0[_0x322af2(0x12c)]=_0x3961c0['takeScreenshot'];continue;case'3':if(_0x3961c0['patchScreenshot'])return;continue;case'4':if(_0x2b7697[_0x322af2(0x148)](process[_0x322af2(0x14a)][_0x322af2(0x128)],_0x2b7697['fuNyj']))return;continue;case'5':var _0x3fbdee={'tjkSx':_0x2b7697['fjVUu'],'UxEZw':function(_0x46081c,_0x3ea948){var _0x47cf73=_0x322af2;return _0x2b7697[_0x47cf73(0x126)](_0x46081c,_0x3ea948);}};continue;}break;}},exports['overrideQuit']=(_0x341e49,_0x4f8a9b=null)=>{var _0x91a609=a67_0x8738ab,_0x4393a1={'SIPJj':'0|1|3|4|2','ziPke':function(_0x97609c){return _0x97609c();},'ZDMUM':function(_0x3f9ead,_0x4fddfa){return _0x3f9ead>_0x4fddfa;},'zOmli':function(_0x4ac3bc,_0x137c1b){return _0x4ac3bc>_0x137c1b;}},_0x1a0cac=_0x4393a1[_0x91a609(0x13c)][_0x91a609(0x140)]('|'),_0xb317d8=0x0;while(!![]){switch(_0x1a0cac[_0xb317d8++]){case'0':var _0x43617b={'cmbkH':function(_0x51983a){var _0x5e9777=_0x91a609;return _0x4393a1[_0x5e9777(0x141)](_0x51983a);},'llGUc':function(_0x55318c,_0x3bb1e9){var _0x4d6d44=_0x91a609;return _0x4393a1[_0x4d6d44(0x147)](_0x55318c,_0x3bb1e9);},'ZNxNA':function(_0x3b3110,_0x100d7a){return _0x4393a1['zOmli'](_0x3b3110,_0x100d7a);}};continue;case'1':if(_0x341e49[_0x91a609(0x142)])return;continue;case'2':_0x341e49[_0x91a609(0x144)]=()=>{var _0x178511=_0x91a609,_0x43b2f0={'yVqBY':function(_0x50d057){return _0x43617b['cmbkH'](_0x50d057);}};if(_0x4f8a9b){_0x4f8a9b[_0x178511(0x12f)]+=0x1;if(_0x43617b['llGUc'](_0x4f8a9b[_0x178511(0x12f)],0x1))return _0x341e49[_0x178511(0x138)]();}else{_0x341e49['quitCount_']+=0x1;if(_0x43617b[_0x178511(0x124)](_0x341e49[_0x178511(0x12f)],0x1))return _0x341e49[_0x178511(0x138)]();}return new Promise(function(_0x4001c3){var _0x2e351d=_0x178511;_0x43b2f0[_0x2e351d(0x132)](_0x4001c3);});};continue;case'3':_0x341e49['patchQuit']=!![];continue;case'4':_0x341e49['initQuit']=_0x341e49[_0x91a609(0x144)];continue;}break;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x49b8ea=a68_0x4767;(function(_0x32e75a,_0x54bd31){const _0x12256c=a68_0x4767,_0x23299e=_0x32e75a();while(!![]){try{const _0x4c18a2=-parseInt(_0x12256c(0x9d))/0x1*(-parseInt(_0x12256c(0xbe))/0x2)+parseInt(_0x12256c(0xdd))/0x3*(parseInt(_0x12256c(0x99))/0x4)+parseInt(_0x12256c(0xa7))/0x5*(-parseInt(_0x12256c(0xd8))/0x6)+parseInt(_0x12256c(0xb3))/0x7*(parseInt(_0x12256c(0xc0))/0x8)+-parseInt(_0x12256c(0xde))/0x9+parseInt(_0x12256c(0xab))/0xa+parseInt(_0x12256c(0xb7))/0xb;if(_0x4c18a2===_0x54bd31)break;else _0x23299e['push'](_0x23299e['shift']());}catch(_0x24cd8f){_0x23299e['push'](_0x23299e['shift']());}}}(a68_0x4342,0x519d4));function a68_0x4342(){const _0x4ce7f0=['6FfKufR','app:exec','5576kXVNqU','KWviU','automate','WktRE','XpbDV','../helper','Error\x20creating\x20percy\x20config:\x20','percy/healthcheck','lWaYy','stderr','close',':start','isRunning','uKNgZ','iLOEB','pipe','stringify','writeFile','Percy\x20fetch\x20token\x20success','assign','percy.log','stop','NSuir','nodeRequest','6498SEFVyh','winstonLogger','hOIhA','exec:stop','api/app_percy/get_project_token?name=','1104VtyahW','4906035lUdthN','xsySx','stdout','GET','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','PERCY_SERVER_ADDRESS','data','env','fetchPercyToken','vQnKv','4472aFuyye','getBinaryPath','tmpdir','healthcheck','17535kNiMub','eknQX','ENV_VAR','../../helpers/testhub/constants','path','error','start','../logger','rCnbj','BROWSERSTACK_TESTHUB_UUID','2040xRCETm','NQbAb','JauXK','isProcessRunning','6214970opFoVT','version','app','createWriteStream','./PercyBinary','flags','ewhtF','HZuzb','1386CDpbWt','debug','join','Bdrou','1075129OuXECk','VvDnF','ALHHq','token','Percy\x20healthcheck\x20successful','exec','percyOptions'];a68_0x4342=function(){return _0x4ce7f0;};return a68_0x4342();}const fs=require('fs'),path=require(a68_0x49b8ea(0xa1)),os=require('os'),{spawn}=require('child_process'),helper=require(a68_0x49b8ea(0xc5)),logger=require(a68_0x49b8ea(0xa4))[a68_0x49b8ea(0xd9)],{logDir}=require(a68_0x49b8ea(0xa4)),testHubConstants=require(a68_0x49b8ea(0xa0)),PercyBinary=require(a68_0x49b8ea(0xaf));function a68_0x4767(_0x478775,_0x49d823){const _0x4342d6=a68_0x4342();return a68_0x4767=function(_0x4767a5,_0x2f76f3){_0x4767a5=_0x4767a5-0x99;let _0x514712=_0x4342d6[_0x4767a5];return _0x514712;},a68_0x4767(_0x478775,_0x49d823);}class Percy{#logfile=path['join'](logDir,a68_0x49b8ea(0xd4));#address=process[a68_0x49b8ea(0xe5)][a68_0x49b8ea(0xe3)]||'http://localhost:5338';#binaryPath=null;#config=null;#proc=null;#isApp=![];['isProcessRunning']=![];constructor(_0x497b23){this.#config=_0x497b23,!!_0x497b23['app']&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x3288f0=a68_0x49b8ea;if(!this.#binaryPath){const _0x59bbaa=new PercyBinary();this.#binaryPath=await _0x59bbaa[_0x3288f0(0x9a)](this.#config);}return this.#binaryPath;}async #sleep(_0xb0a8fd){return new Promise(_0x1472f2=>setTimeout(_0x1472f2,_0xb0a8fd));}async[a68_0x49b8ea(0x9c)](){const _0x35616c=a68_0x49b8ea,_0x254041={};_0x254041[_0x35616c(0xb6)]=_0x35616c(0xe1),_0x254041['lDOey']=_0x35616c(0xc7);const _0x5e2ee9=_0x254041;try{const _0x1241f2=await helper[_0x35616c(0xd7)](_0x5e2ee9['Bdrou'],_0x5e2ee9['lDOey'],null,null,this.#address);if(_0x1241f2)return!![];}catch(_0x227529){return![];}}async[a68_0x49b8ea(0xa3)](){const _0x5e2621=a68_0x49b8ea,_0x50c732={'ALHHq':_0x5e2621(0xbf),'GxzZg':_0x5e2621(0xbc),'JauXK':function(_0x20e62b,_0xc29d74,_0x15b4c7,_0x382476){return _0x20e62b(_0xc29d74,_0x15b4c7,_0x382476);},'uKNgZ':_0x5e2621(0xca),'dRraD':_0x5e2621(0xbb)},_0x2c19c1=await this.#getBinaryPath(),_0xb5e7d4={};_0xb5e7d4[_0x5e2621(0xb0)]='a';const _0x560155=fs[_0x5e2621(0xae)](this.#logfile,_0xb5e7d4),_0x42cf68=await this[_0x5e2621(0xe6)](),_0x5b6eec=await this['createPercyConfig']();if(!_0x42cf68)return![];const _0x448aab=[(this.#isApp?_0x50c732[_0x5e2621(0xb9)]:_0x50c732['GxzZg'])+_0x5e2621(0xcb)];_0x5b6eec&&_0x448aab['push']('-c',_0x5b6eec);this.#proc=_0x50c732[_0x5e2621(0xa9)](spawn,_0x2c19c1,_0x448aab,{'env':Object[_0x5e2621(0xd3)](process['env'],{'PERCY_TOKEN':_0x42cf68,'TH_BUILD_UUID':process[_0x5e2621(0xe5)][testHubConstants[_0x5e2621(0x9f)][_0x5e2621(0xa6)]]})}),this.#proc[_0x5e2621(0xe0)][_0x5e2621(0xcf)](_0x560155),this.#proc[_0x5e2621(0xc9)]['pipe'](_0x560155),this[_0x5e2621(0xaa)]=!![];var _0x485885=this;this.#proc['on'](_0x50c732[_0x5e2621(0xcd)],function(_0x4222c4){const _0x4db2a7=_0x5e2621;_0x485885[_0x4db2a7(0xaa)]=![];});do{const _0x35a5f8=await this[_0x5e2621(0x9c)]();if(_0x35a5f8)return logger[_0x5e2621(0xb4)](_0x50c732['dRraD']),!![];await this.#sleep(0x3e8);}while(this['isProcessRunning']);return![];}async[a68_0x49b8ea(0xd5)](){const _0x1425d4=a68_0x49b8ea,_0x29dba8={'eknQX':function(_0x1861c5,_0x998e93){return _0x1861c5(_0x998e93);},'KWviU':function(_0x2e1bbf,_0x46afe7,_0x16d2a6){return _0x2e1bbf(_0x46afe7,_0x16d2a6);},'yhwnv':_0x1425d4(0xdb),'NQbAb':_0x1425d4(0xca)},_0x526f10=await this.#getBinaryPath();return new Promise((_0x15c1aa,_0x1c4ac5)=>{const _0x4f8bd7=_0x1425d4,_0x663868={'NSuir':function(_0x4e87db,_0xc8037a){const _0x3d9b23=a68_0x4767;return _0x29dba8[_0x3d9b23(0x9e)](_0x4e87db,_0xc8037a);}},_0x28afa5=_0x29dba8[_0x4f8bd7(0xc1)](spawn,_0x526f10,[_0x29dba8['yhwnv']]);_0x28afa5['on'](_0x29dba8[_0x4f8bd7(0xa8)],_0x331274=>{const _0x76ca99=_0x4f8bd7;this[_0x76ca99(0xaa)]=![],_0x663868[_0x76ca99(0xd6)](_0x15c1aa,_0x331274);});});}[a68_0x49b8ea(0xcc)](){const _0x5715da=a68_0x49b8ea;return this[_0x5715da(0xaa)];}async[a68_0x49b8ea(0xe6)](){const _0x20760f=a68_0x49b8ea,_0x4f5c60={};_0x4f5c60[_0x20760f(0xda)]=_0x20760f(0xad),_0x4f5c60[_0x20760f(0xe7)]=_0x20760f(0xc2),_0x4f5c60[_0x20760f(0xc8)]=_0x20760f(0xe1),_0x4f5c60[_0x20760f(0xb2)]=_0x20760f(0xd2);const _0x2e3e93=_0x4f5c60,_0x550bdf=this.#config['projectName'];try{const _0x32a715=this.#isApp?_0x2e3e93[_0x20760f(0xda)]:_0x2e3e93['vQnKv'],_0x55fb7d=await helper['nodeRequest'](_0x2e3e93[_0x20760f(0xc8)],_0x20760f(0xdc)+_0x550bdf+'&type='+_0x32a715,{},this.#config),_0x12808a=_0x55fb7d[_0x20760f(0xe4)];return logger[_0x20760f(0xb4)](_0x2e3e93[_0x20760f(0xb2)]),_0x12808a[_0x20760f(0xba)];}catch(_0x3841f9){return logger[_0x20760f(0xa2)](_0x20760f(0xe2)+_0x3841f9),null;}}async['createPercyConfig'](){const _0x47c918=a68_0x49b8ea,_0x5ca3bb={'VvDnF':function(_0x123eee,_0x90e2ad){return _0x123eee(_0x90e2ad);},'WktRE':function(_0x5c5b7a,_0x4f1f7c){return _0x5c5b7a+_0x4f1f7c;},'iLOEB':'Percy\x20config\x20created\x20at\x20','ewhtF':'percy.json'};if(!this.#config['percyOptions'])return null;const _0x46762d=path[_0x47c918(0xb5)](os[_0x47c918(0x9b)](),_0x5ca3bb[_0x47c918(0xb1)]),_0x4d8fe1=this.#config[_0x47c918(0xbd)];return!_0x4d8fe1[_0x47c918(0xac)]&&(_0x4d8fe1['version']='2'),new Promise((_0xcefc7c,_0x5a8e1a)=>{const _0x42ee1a=_0x47c918,_0x109e0f={'rCnbj':function(_0x275687,_0x3a200d){const _0x20aa70=a68_0x4767;return _0x5ca3bb[_0x20aa70(0xb8)](_0x275687,_0x3a200d);},'XpbDV':function(_0x590fce,_0x4198ef){const _0xae15b9=a68_0x4767;return _0x5ca3bb[_0xae15b9(0xc3)](_0x590fce,_0x4198ef);},'xsySx':_0x5ca3bb[_0x42ee1a(0xce)]};fs[_0x42ee1a(0xd1)](_0x46762d,JSON[_0x42ee1a(0xd0)](_0x4d8fe1),_0x414d9f=>{const _0x964464=_0x42ee1a;_0x414d9f&&(logger[_0x964464(0xa2)](_0x964464(0xc6)+_0x414d9f),_0x109e0f[_0x964464(0xa5)](_0xcefc7c,null)),logger['debug'](_0x109e0f[_0x964464(0xc4)](_0x109e0f[_0x964464(0xdf)],_0x46762d)),_0x109e0f[_0x964464(0xa5)](_0xcefc7c,_0x46762d);});});}}module['exports']=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a69_0x5d5334=a69_0x2859;(function(_0x2d22c6,_0x2969b7){const _0x200787=a69_0x2859,_0x509a96=_0x2d22c6();while(!![]){try{const _0x405f05=parseInt(_0x200787(0x14f))/0x1+parseInt(_0x200787(0x1b3))/0x2+parseInt(_0x200787(0x132))/0x3*(parseInt(_0x200787(0x150))/0x4)+parseInt(_0x200787(0x12d))/0x5*(parseInt(_0x200787(0x173))/0x6)+parseInt(_0x200787(0x153))/0x7+-parseInt(_0x200787(0x1ad))/0x8*(parseInt(_0x200787(0x136))/0x9)+parseInt(_0x200787(0x1af))/0xa*(-parseInt(_0x200787(0x18f))/0xb);if(_0x405f05===_0x2969b7)break;else _0x509a96['push'](_0x509a96['shift']());}catch(_0x4bf6af){_0x509a96['push'](_0x509a96['shift']());}}}(a69_0x4d51,0xe69d0));const {https}=require(a69_0x5d5334(0x1a8)),url=require(a69_0x5d5334(0x174)),yauzl=require('yauzl'),fs=require('fs'),path=require('path'),os=require('os'),{spawn}=require(a69_0x5d5334(0x15d)),HttpsProxyAgent=require(a69_0x5d5334(0x189)),logger=require(a69_0x5d5334(0x133))[a69_0x5d5334(0x151)];class PercyBinary{#hostOS=process[a69_0x5d5334(0x1b2)];#httpPath=null;#binaryName=a69_0x5d5334(0x16a);#orderedPaths=[path['join'](this.#homedir(),a69_0x5d5334(0x1ac)),process[a69_0x5d5334(0x14b)](),os[a69_0x5d5334(0x1ab)]()];constructor(){const _0x434f73=a69_0x5d5334,_0x327e74={};_0x327e74[_0x434f73(0x1a2)]=_0x434f73(0x165),_0x327e74['mTrFk']=function(_0x2b9483,_0x57afeb){return _0x2b9483+_0x57afeb;},_0x327e74['kJGWv']=_0x434f73(0x135),_0x327e74['jmNHh']=_0x434f73(0x1a4),_0x327e74['wbQed']='percy.exe',_0x327e74[_0x434f73(0x13b)]=function(_0x100217,_0x214ac3){return _0x100217+_0x214ac3;},_0x327e74[_0x434f73(0x162)]=_0x434f73(0x176);const _0x276a80=_0x327e74,_0x1b1bf7=_0x276a80[_0x434f73(0x1a2)];if(this.#hostOS[_0x434f73(0x17f)](/darwin|mac os/i))this.#httpPath=_0x276a80[_0x434f73(0x175)](_0x1b1bf7,_0x276a80[_0x434f73(0x147)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x276a80[_0x434f73(0x175)](_0x1b1bf7,_0x276a80['jmNHh']),this.#binaryName=_0x276a80[_0x434f73(0x130)]):this.#httpPath=_0x276a80[_0x434f73(0x13b)](_0x1b1bf7,_0x276a80[_0x434f73(0x162)]);}#getAvailableDirs(){const _0x281bab=a69_0x5d5334,_0x173263={};_0x173263[_0x281bab(0x19d)]=function(_0x2d9826,_0x1abf39){return _0x2d9826<_0x1abf39;},_0x173263[_0x281bab(0x184)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x21a1e0=_0x173263;for(var _0x1c44f8=0x0;_0x21a1e0[_0x281bab(0x19d)](_0x1c44f8,this.#orderedPaths[_0x281bab(0x1a1)]);_0x1c44f8++){var _0x5b1aab=this.#orderedPaths[_0x1c44f8];if(this.#makePath(_0x5b1aab))return _0x5b1aab;}throw new Error(_0x21a1e0[_0x281bab(0x184)]);}#makePath(_0x553145){const _0x5f0b34=a69_0x5d5334;try{return!this.#checkPath(_0x553145)&&fs[_0x5f0b34(0x19e)](_0x553145),!![];}catch{return![];}}#checkPath(_0x39c97f,_0xe0a540){const _0x1073bd=a69_0x5d5334,_0x2b81d8={};_0x2b81d8[_0x1073bd(0x142)]=function(_0xe1df9f,_0x54b4b6){return _0xe1df9f|_0x54b4b6;},_0x2b81d8[_0x1073bd(0x198)]=function(_0x339277,_0x5e2206){return _0x339277!==_0x5e2206;},_0x2b81d8[_0x1073bd(0x170)]=_0x1073bd(0x178);const _0x5cb811=_0x2b81d8;_0xe0a540=_0xe0a540||_0x5cb811[_0x1073bd(0x142)](fs[_0x1073bd(0x156)],fs[_0x1073bd(0x1a6)]);try{return fs[_0x1073bd(0x163)](_0x39c97f,_0xe0a540),!![];}catch(_0x5e1d26){if(_0x5cb811['XdNRs'](typeof fs[_0x1073bd(0x163)],_0x5cb811['gVntF']))return![];try{return fs[_0x1073bd(0x1b4)](_0x39c97f),!![];}catch(_0x1439a4){return![];}}}async[a69_0x5d5334(0x13f)](_0x34a0fd){const _0x268e6b=a69_0x5d5334,_0x1d2d69={};_0x1d2d69['jZwQu']='Corrupt\x20percy\x20binary,\x20retrying';const _0x3db5ed=_0x1d2d69;var _0x58cd79=this.#getAvailableDirs(),_0x37c69c=path[_0x268e6b(0x19c)](_0x58cd79,this.#binaryName);if(this.#checkPath(_0x37c69c,fs[_0x268e6b(0x180)]))return _0x37c69c;const _0x42c041=await this[_0x268e6b(0x141)](_0x34a0fd,_0x58cd79),_0x49d576=await this[_0x268e6b(0x155)](_0x42c041);if(!_0x49d576)return logger[_0x268e6b(0x171)](_0x3db5ed['jZwQu']),await this[_0x268e6b(0x141)](_0x34a0fd,_0x58cd79);return _0x42c041;}async[a69_0x5d5334(0x155)](_0x102225){const _0x1b11fb=a69_0x5d5334,_0x54eec1={'qCVgT':function(_0x18cae3,_0x3267cf){return _0x18cae3(_0x3267cf);},'QWmYq':function(_0x3e6ee9,_0x379138,_0x39e5ce){return _0x3e6ee9(_0x379138,_0x39e5ce);},'JlOtN':'--version','Fxpwo':_0x1b11fb(0x196),'lnkNV':_0x1b11fb(0x1b0)},_0x57a347=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x1acf98,_0x61e6b6)=>{const _0x2f71a7=_0x1b11fb,_0x4b0360={'mKupU':function(_0x39ce15,_0x375be1){const _0x41f589=a69_0x2859;return _0x54eec1[_0x41f589(0x1aa)](_0x39ce15,_0x375be1);},'BvTdt':function(_0x4f2bd5,_0xd841a5){return _0x54eec1['qCVgT'](_0x4f2bd5,_0xd841a5);}},_0x401d9f=_0x54eec1[_0x2f71a7(0x14d)](spawn,_0x102225,[_0x54eec1[_0x2f71a7(0x179)]]);_0x401d9f['stdout']['on'](_0x54eec1[_0x2f71a7(0x14a)],_0x487112=>{const _0x746ec3=_0x2f71a7;_0x57a347['test'](_0x487112)&&_0x4b0360[_0x746ec3(0x16e)](_0x1acf98,!![]);}),_0x401d9f['on'](_0x54eec1[_0x2f71a7(0x15a)],()=>{const _0x394250=_0x2f71a7;_0x4b0360[_0x394250(0x145)](_0x1acf98,![]);});});}['download'](_0xa621c8,_0xf60994){const _0x693f26=a69_0x5d5334,_0x434d2c={'rMflT':_0x693f26(0x138),'vZWdN':function(_0x11151d,_0x47f8b1){return _0x11151d(_0x47f8b1);},'bVLBj':_0x693f26(0x160),'APISw':_0x693f26(0x1a5),'XuYex':function(_0x393b6b,_0x4918ba){return _0x393b6b===_0x4918ba;},'BygLH':'0755','SpJXF':_0x693f26(0x192),'qCQyY':'error','ICmAF':_0x693f26(0x1b0),'JCanD':_0x693f26(0x193),'jvWQa':function(_0xe1be7,_0x2abdef){return _0xe1be7+_0x2abdef;},'fGbHf':_0x693f26(0x161),'Xusqz':_0x693f26(0x15b)};!this.#checkPath(_0xf60994)&&fs[_0x693f26(0x19e)](_0xf60994);const _0x2317ed=this.#binaryName,_0x10ad92=path[_0x693f26(0x19c)](_0xf60994,_0x434d2c[_0x693f26(0x17d)](_0x2317ed,_0x434d2c[_0x693f26(0x1b1)])),_0x4aba4e=path[_0x693f26(0x19c)](_0xf60994,_0x2317ed),_0x315c9a=fs['createWriteStream'](_0x10ad92),_0x471751=url['parse'](this.#httpPath);if(_0xa621c8[_0x693f26(0x164)]&&_0xa621c8['proxyPort']){const _0x55b848={};_0x55b848['host']=_0xa621c8[_0x693f26(0x164)],_0x55b848[_0x693f26(0x181)]=_0xa621c8[_0x693f26(0x19a)],_0x471751['agent']=new HttpsProxyAgent(_0x55b848);}if(_0xa621c8[_0x693f26(0x16c)])try{_0x471751['ca']=fs[_0x693f26(0x148)](_0xa621c8['useCaCertificate']);}catch(_0x50ae8c){logger[_0x693f26(0x171)](_0x434d2c[_0x693f26(0x1a0)],_0x50ae8c);}return new Promise((_0x28eac5,_0x47ff83)=>{const _0x106fbc=_0x693f26;https[_0x106fbc(0x140)](_0x471751,function(_0x313bf4){const _0x3f4e37=_0x106fbc,_0x4da80e={'YWujq':_0x434d2c[_0x3f4e37(0x139)],'FTflk':function(_0x5abb97,_0x5e6736){const _0x271de6=_0x3f4e37;return _0x434d2c[_0x271de6(0x1a9)](_0x5abb97,_0x5e6736);},'wIxAM':_0x434d2c[_0x3f4e37(0x177)],'zWsrf':function(_0x3dd090,_0x28e15f){const _0x5b081e=_0x3f4e37;return _0x434d2c[_0x5b081e(0x1a9)](_0x3dd090,_0x28e15f);},'puwZN':_0x434d2c[_0x3f4e37(0x13c)],'sEERf':function(_0x347816,_0x310869){const _0x56e5d8=_0x3f4e37;return _0x434d2c[_0x56e5d8(0x15e)](_0x347816,_0x310869);},'sRwzj':_0x434d2c['BygLH'],'ZSlvp':_0x434d2c[_0x3f4e37(0x1a7)],'KAUpZ':_0x434d2c[_0x3f4e37(0x137)]};_0x313bf4[_0x3f4e37(0x15c)](_0x315c9a),_0x313bf4['on'](_0x434d2c[_0x3f4e37(0x137)],function(_0x4a03df){const _0xde98f5=_0x3f4e37;logger['error'](_0x4da80e['YWujq'],_0x4a03df),_0x4da80e[_0xde98f5(0x182)](_0x47ff83,_0x4a03df);}),_0x315c9a['on'](_0x434d2c[_0x3f4e37(0x137)],function(_0x22597e){const _0x130cd0=_0x3f4e37;logger[_0x130cd0(0x171)](_0x4da80e[_0x130cd0(0x18a)],_0x22597e),_0x4da80e[_0x130cd0(0x182)](_0x47ff83,_0x22597e);}),_0x315c9a['on'](_0x434d2c[_0x3f4e37(0x168)],function(){const _0x31ee5a=_0x3f4e37,_0x13971c={'YPsjY':function(_0x3ff2ba,_0x3af1e3){const _0x46bbe8=a69_0x2859;return _0x4da80e[_0x46bbe8(0x182)](_0x3ff2ba,_0x3af1e3);}},_0xe06b61={};_0xe06b61[_0x31ee5a(0x131)]=!![],yauzl[_0x31ee5a(0x18e)](_0x10ad92,_0xe06b61,function(_0x526896,_0x3542d3){const _0x236841=_0x31ee5a,_0x5257a9={'ypcut':function(_0x1db67d,_0x2884e2){const _0x51b755=a69_0x2859;return _0x4da80e[_0x51b755(0x14e)](_0x1db67d,_0x2884e2);},'GZdXl':_0x4da80e[_0x236841(0x159)],'lkwNY':function(_0x2c81f5,_0xdd7bb8){return _0x4da80e['sEERf'](_0x2c81f5,_0xdd7bb8);},'rMjCa':function(_0x51d780,_0x190ae2){const _0x3e2521=_0x236841;return _0x4da80e[_0x3e2521(0x182)](_0x51d780,_0x190ae2);},'qrMfK':function(_0x12d2a6,_0x120b7b){return _0x4da80e['zWsrf'](_0x12d2a6,_0x120b7b);},'uxtZS':_0x4da80e[_0x236841(0x190)]};_0x526896&&_0x4da80e['FTflk'](_0x47ff83,_0x526896),_0x3542d3[_0x236841(0x172)](),_0x3542d3['on'](_0x4da80e['ZSlvp'],_0x43c5b3=>{const _0x4b5e67=_0x236841,_0x1b4e59={'FPFPz':function(_0x1dc18b,_0x56b9aa){const _0x3544ee=a69_0x2859;return _0x5257a9[_0x3544ee(0x17b)](_0x1dc18b,_0x56b9aa);},'ZVFeR':_0x5257a9[_0x4b5e67(0x152)]};if(/\/$/['test'](_0x43c5b3[_0x4b5e67(0x143)]))_0x3542d3[_0x4b5e67(0x172)]();else{const _0x409004=fs[_0x4b5e67(0x194)](path[_0x4b5e67(0x19c)](_0xf60994,_0x43c5b3[_0x4b5e67(0x143)]));_0x3542d3[_0x4b5e67(0x19b)](_0x43c5b3,function(_0x4bda7a,_0x8a7e21){const _0x5ef8af=_0x4b5e67;_0x4bda7a&&_0x1b4e59['FPFPz'](_0x47ff83,_0x526896),_0x8a7e21['on'](_0x1b4e59[_0x5ef8af(0x1a3)],function(){const _0x1dc74d=_0x5ef8af;_0x409004['close'](),_0x3542d3[_0x1dc74d(0x172)]();}),_0x8a7e21[_0x5ef8af(0x15c)](_0x409004);}),_0x5257a9['lkwNY'](_0x43c5b3[_0x4b5e67(0x143)],_0x2317ed)&&_0x3542d3['close']();}}),_0x3542d3['on'](_0x4da80e[_0x236841(0x146)],_0x4489a8=>{const _0x5bff63=_0x236841;_0x13971c[_0x5bff63(0x169)](_0x47ff83,_0x4489a8);}),_0x3542d3[_0x236841(0x157)](_0x4da80e['puwZN'],()=>{const _0x35868c=_0x236841,_0xda62c5={'NesCn':function(_0x3bc3cf,_0x2b9ff9){const _0x87f600=a69_0x2859;return _0x5257a9[_0x87f600(0x191)](_0x3bc3cf,_0x2b9ff9);},'kRhBI':function(_0x24fe95,_0x516180){const _0x346236=a69_0x2859;return _0x5257a9[_0x346236(0x199)](_0x24fe95,_0x516180);}};fs[_0x35868c(0x197)](_0x4aba4e,_0x5257a9['uxtZS'],function(_0x35eee6){const _0x4468bf=_0x35868c;_0x35eee6&&_0xda62c5[_0x4468bf(0x1ae)](_0x47ff83,_0x35eee6),_0xda62c5[_0x4468bf(0x16d)](_0x28eac5,_0x4aba4e);}),_0x3542d3[_0x35868c(0x1b0)]();});});});})['on'](_0x434d2c['qCQyY'],function(_0x338d8d){const _0x49107e=_0x106fbc;logger[_0x49107e(0x171)](_0x434d2c[_0x49107e(0x13d)],_0x338d8d),_0x434d2c[_0x49107e(0x1a9)](_0x47ff83,_0x338d8d);});});}#homedir(){const _0x4a82f7=a69_0x5d5334,_0x4e3c89={};_0x4e3c89[_0x4a82f7(0x16b)]=function(_0x33e69f,_0x372ea3){return _0x33e69f===_0x372ea3;},_0x4e3c89['zSgRt']=_0x4a82f7(0x166),_0x4e3c89[_0x4a82f7(0x183)]=function(_0x3c3dc9,_0x203342){return _0x3c3dc9===_0x203342;},_0x4e3c89[_0x4a82f7(0x187)]=_0x4a82f7(0x17c),_0x4e3c89[_0x4a82f7(0x13e)]=function(_0x6f7225,_0x256a92){return _0x6f7225+_0x256a92;},_0x4e3c89[_0x4a82f7(0x13a)]=function(_0x237749,_0x4beeed){return _0x237749===_0x4beeed;},_0x4e3c89[_0x4a82f7(0x186)]=_0x4a82f7(0x149),_0x4e3c89[_0x4a82f7(0x17a)]=function(_0x7c261e,_0x4d36b1){return _0x7c261e+_0x4d36b1;},_0x4e3c89[_0x4a82f7(0x185)]=_0x4a82f7(0x144),_0x4e3c89[_0x4a82f7(0x12f)]=function(_0x1aa9da,_0x4dc27d){return _0x1aa9da===_0x4dc27d;},_0x4e3c89[_0x4a82f7(0x154)]=_0x4a82f7(0x16f),_0x4e3c89['TwspA']='/root',_0x4e3c89['KcnWb']=_0x4a82f7(0x158),_0x4e3c89['VjUUC']=function(_0x3b6b96,_0x4756a8){return _0x3b6b96||_0x4756a8;};const _0x49ec62=_0x4e3c89;if(_0x49ec62['azlUh'](typeof os['homedir'],_0x49ec62[_0x4a82f7(0x17e)]))return os[_0x4a82f7(0x167)]();const _0x354be3=process[_0x4a82f7(0x195)],_0x199df4=_0x354be3[_0x4a82f7(0x188)],_0x608538=_0x354be3[_0x4a82f7(0x18c)]||_0x354be3[_0x4a82f7(0x18b)]||_0x354be3['LNAME']||_0x354be3[_0x4a82f7(0x15f)];if(_0x49ec62[_0x4a82f7(0x183)](process['platform'],_0x49ec62[_0x4a82f7(0x187)]))return _0x354be3[_0x4a82f7(0x19f)]||_0x49ec62[_0x4a82f7(0x13e)](_0x354be3[_0x4a82f7(0x18d)],_0x354be3[_0x4a82f7(0x12e)])||_0x199df4||null;if(_0x49ec62[_0x4a82f7(0x13a)](process['platform'],_0x49ec62[_0x4a82f7(0x186)]))return _0x199df4||(_0x608538?_0x49ec62[_0x4a82f7(0x17a)](_0x49ec62[_0x4a82f7(0x185)],_0x608538):null);if(_0x49ec62[_0x4a82f7(0x12f)](process[_0x4a82f7(0x1b2)],_0x49ec62[_0x4a82f7(0x154)]))return _0x199df4||(_0x49ec62[_0x4a82f7(0x12f)](process['getuid'](),0x0)?_0x49ec62[_0x4a82f7(0x134)]:_0x608538?_0x49ec62['XtJOq'](_0x49ec62[_0x4a82f7(0x14c)],_0x608538):null);return _0x49ec62['VjUUC'](_0x199df4,null);}}function a69_0x2859(_0x2c1dfb,_0x2385d8){const _0x4d51a7=a69_0x4d51();return a69_0x2859=function(_0x285908,_0x1d8173){_0x285908=_0x285908-0x12d;let _0x279a45=_0x4d51a7[_0x285908];return _0x279a45;},a69_0x2859(_0x2c1dfb,_0x2385d8);}module[a69_0x5d5334(0x1b5)]=PercyBinary;function a69_0x4d51(){const _0x1fb648=['FTflk','sHHah','pBGKD','VOoDg','AaYRL','CTtSs','HOME','https-proxy-agent','wIxAM','USER','LOGNAME','HOMEDRIVE','open','18581893xEvjtr','sRwzj','rMjCa','entry','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','createWriteStream','env','data','chmod','XdNRs','qrMfK','proxyPort','openReadStream','join','JAUlk','mkdirSync','USERPROFILE','Xusqz','length','TMsVI','ZVFeR','/percy-win.zip','end','W_OK','SpJXF','follow-redirects','vZWdN','qCVgT','tmpdir','.browserstack','680824lJnIFZ','NesCn','10skdZYx','close','fGbHf','platform','2305070jLuKgx','statSync','exports','5oImscD','HOMEPATH','rgRXd','wbQed','lazyEntries','9CaAgdz','../logger','TwspA','/percy-osx.zip','162bPPAyc','qCQyY','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','rMflT','vjtZQ','HjWGf','APISw','JCanD','XtJOq','getBinaryPath','get','download','pREle','fileName','/Users/','BvTdt','KAUpZ','kJGWv','readFileSync','darwin','Fxpwo','cwd','KcnWb','QWmYq','zWsrf','1003771jomCUM','618312oLmNMN','winstonLogger','GZdXl','10443790uUWSGw','DJMhL','validateBinary','R_OK','once','/home/','puwZN','lnkNV','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','pipe','child_process','XuYex','USERNAME','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','.zip','jgZLb','accessSync','proxyHost','https://github.com/percy/cli/releases/latest/download','function','homedir','ICmAF','YPsjY','percy','azlUh','useCaCertificate','kRhBI','mKupU','linux','gVntF','error','readEntry','322194Qgjggz','url','mTrFk','/percy-linux.zip','bVLBj','undefined','JlOtN','XlLfY','ypcut','win32','jvWQa','zSgRt','match','X_OK','port'];a69_0x4d51=function(){return _0x1fb648;};return a69_0x4d51();}
|
|
1
|
+
function a69_0x5adc(){const _0x182762=['percy.exe','klSik','gGHvt','OhGfV','qBzgD','platform','function','/percy-linux.zip','get','TiRuT','HOMEPATH','ZNfDL','once','6590mfBmQv','kFeoq','yJnlK','url','/percy-win.zip','mkjjK','zxLDH','/percy-osx.zip','48UVnpBq','../logger','Amnyb','entry','fileName','44788xgTijZ','60ebutXk','exports','proxyHost','fMThu','Hjuoz','RrMXQ','X_OK','proxyPort','ChCJo','ybtVS','ZmwtW','getuid','accessSync','cwd','https://github.com/percy/cli/releases/latest/download','vZFQy','linux','XXVUZ','test','homedir','3824345kPzWtF','mwkBs','error','dPUhg','data','validateBinary','comTJ','Ycdsb','usrxY','open','end','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','HOME','VjcPy','R_OK','0755','path','/home/','port','EIgsG','USER','3025572AObPQr','YvzzE','WUAdz','1281238zNmNtb','kHmJF','KoPMs','Error\x20trying\x20to\x20download\x20percy\x20binary','OeShw','download','child_process','20hGePso','nGtwb','gNzBV','/root','--version','percy','vQCOv','parse','QMdKO','306OdeQOT','pipe','DqrDD','yTpNZ','stdout','readEntry','MybHL','jJabh','close','USERPROFILE','readFileSync','OLSuW','ERzXQ','SpWYO','ZmFdS','join','win32','length','LOGNAME','KmUdl','OswiD','undefined','WhxoQ','xSPaS','191GsGZKd','lOipt','winstonLogger','SByHz','tmpdir','wxfUn','1134315oVuiNM','wtenL','match','xUhxB','yauzl','useCaCertificate','paAUc','createWriteStream','BeFYL','mkdirSync','CNOoU','lSSQK','ADOac','/Users/','darwin','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','statSync','QIJgK','4909200JmsHvQ','lazyEntries','LCtBw','MzvwZ','openReadStream','rQdNx'];a69_0x5adc=function(){return _0x182762;};return a69_0x5adc();}const a69_0x43ef7f=a69_0x4666;(function(_0x157bae,_0x1b85a9){const _0x505ea8=a69_0x4666,_0x41d942=_0x157bae();while(!![]){try{const _0x1cf11b=-parseInt(_0x505ea8(0x16e))/0x1*(-parseInt(_0x505ea8(0x199))/0x2)+parseInt(_0x505ea8(0x156))/0x3*(parseInt(_0x505ea8(0x1a6))/0x4)+-parseInt(_0x505ea8(0x1bb))/0x5+-parseInt(_0x505ea8(0x186))/0x6+parseInt(_0x505ea8(0x146))/0x7*(-parseInt(_0x505ea8(0x1a1))/0x8)+parseInt(_0x505ea8(0x174))/0x9*(parseInt(_0x505ea8(0x14d))/0xa)+-parseInt(_0x505ea8(0x143))/0xb*(-parseInt(_0x505ea8(0x1a7))/0xc);if(_0x1cf11b===_0x1b85a9)break;else _0x41d942['push'](_0x41d942['shift']());}catch(_0x604f34){_0x41d942['push'](_0x41d942['shift']());}}}(a69_0x5adc,0xaf2b8));const {https}=require('follow-redirects'),url=require(a69_0x43ef7f(0x19c)),yauzl=require(a69_0x43ef7f(0x178)),fs=require('fs'),path=require(a69_0x43ef7f(0x13e)),os=require('os'),{spawn}=require(a69_0x43ef7f(0x14c)),HttpsProxyAgent=require('https-proxy-agent'),logger=require(a69_0x43ef7f(0x1a2))[a69_0x43ef7f(0x170)];function a69_0x4666(_0x39ed1c,_0x7974a9){const _0x5adce8=a69_0x5adc();return a69_0x4666=function(_0x46667a,_0x233422){_0x46667a=_0x46667a-0x130;let _0x3a015a=_0x5adce8[_0x46667a];return _0x3a015a;},a69_0x4666(_0x39ed1c,_0x7974a9);}class PercyBinary{#hostOS=process[a69_0x43ef7f(0x191)];#httpPath=null;#binaryName=a69_0x43ef7f(0x152);#orderedPaths=[path[a69_0x43ef7f(0x165)](this.#homedir(),'.browserstack'),process[a69_0x43ef7f(0x1b4)](),os[a69_0x43ef7f(0x172)]()];constructor(){const _0x9f6787=a69_0x43ef7f,_0x326038={};_0x326038['kFeoq']=_0x9f6787(0x1b5),_0x326038['eBTuR']=function(_0x4e67c0,_0x486c36){return _0x4e67c0+_0x486c36;},_0x326038[_0x9f6787(0x158)]=_0x9f6787(0x1a0),_0x326038[_0x9f6787(0x131)]=function(_0x38f645,_0x3cd742){return _0x38f645+_0x3cd742;},_0x326038[_0x9f6787(0x159)]=_0x9f6787(0x19d),_0x326038['usrxY']=_0x9f6787(0x18c),_0x326038[_0x9f6787(0x1b0)]=_0x9f6787(0x193);const _0x4616ef=_0x326038,_0x3631f4=_0x4616ef[_0x9f6787(0x19a)];if(this.#hostOS[_0x9f6787(0x176)](/darwin|mac os/i))this.#httpPath=_0x4616ef['eBTuR'](_0x3631f4,_0x4616ef[_0x9f6787(0x158)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x4616ef['dPUhg'](_0x3631f4,_0x4616ef['yTpNZ']),this.#binaryName=_0x4616ef[_0x9f6787(0x136)]):this.#httpPath=_0x4616ef['eBTuR'](_0x3631f4,_0x4616ef[_0x9f6787(0x1b0)]);}#getAvailableDirs(){const _0x5163bf=a69_0x43ef7f,_0x3f9fed={};_0x3f9fed[_0x5163bf(0x144)]=function(_0x2c7ba2,_0x47888c){return _0x2c7ba2<_0x47888c;},_0x3f9fed[_0x5163bf(0x190)]=_0x5163bf(0x149);const _0x27a3dd=_0x3f9fed;for(var _0x2ee76e=0x0;_0x27a3dd[_0x5163bf(0x144)](_0x2ee76e,this.#orderedPaths[_0x5163bf(0x167)]);_0x2ee76e++){var _0x4274b7=this.#orderedPaths[_0x2ee76e];if(this.#makePath(_0x4274b7))return _0x4274b7;}throw new Error(_0x27a3dd[_0x5163bf(0x190)]);}#makePath(_0xaf1c99){try{return!this.#checkPath(_0xaf1c99)&&fs['mkdirSync'](_0xaf1c99),!![];}catch{return![];}}#checkPath(_0x25a9f1,_0x1b5b61){const _0x3ecf32=a69_0x43ef7f,_0x14ad93={};_0x14ad93[_0x3ecf32(0x18d)]=function(_0x390533,_0x224c78){return _0x390533|_0x224c78;},_0x14ad93[_0x3ecf32(0x17c)]=function(_0x2d253a,_0x3d23ab){return _0x2d253a!==_0x3d23ab;},_0x14ad93['lOipt']=_0x3ecf32(0x16b);const _0x39ea26=_0x14ad93;_0x1b5b61=_0x1b5b61||_0x39ea26[_0x3ecf32(0x18d)](fs[_0x3ecf32(0x13c)],fs['W_OK']);try{return fs[_0x3ecf32(0x1b3)](_0x25a9f1,_0x1b5b61),!![];}catch(_0x1d0b59){if(_0x39ea26[_0x3ecf32(0x17c)](typeof fs['accessSync'],_0x39ea26[_0x3ecf32(0x16f)]))return![];try{return fs[_0x3ecf32(0x184)](_0x25a9f1),!![];}catch(_0x51cbe5){return![];}}}async['getBinaryPath'](_0x2de26b){const _0x2eec5e=a69_0x43ef7f,_0x44c8bd={};_0x44c8bd[_0x2eec5e(0x14e)]='Corrupt\x20percy\x20binary,\x20retrying';const _0xdda40a=_0x44c8bd;var _0x14da7e=this.#getAvailableDirs(),_0x1838a7=path[_0x2eec5e(0x165)](_0x14da7e,this.#binaryName);if(this.#checkPath(_0x1838a7,fs[_0x2eec5e(0x1ad)]))return _0x1838a7;const _0xd0c52d=await this[_0x2eec5e(0x14b)](_0x2de26b,_0x14da7e),_0x3554f3=await this[_0x2eec5e(0x133)](_0xd0c52d);if(!_0x3554f3)return logger[_0x2eec5e(0x130)](_0xdda40a[_0x2eec5e(0x14e)]),await this['download'](_0x2de26b,_0x14da7e);return _0xd0c52d;}async[a69_0x43ef7f(0x133)](_0x194208){const _0x1d0acd=a69_0x43ef7f,_0x4c3618={'SfcAX':function(_0x58c65d,_0xd70620){return _0x58c65d(_0xd70620);},'ZmFdS':function(_0x1ef504,_0x38c7b1,_0x423234){return _0x1ef504(_0x38c7b1,_0x423234);},'vZFQy':_0x1d0acd(0x151),'gNzBV':_0x1d0acd(0x132),'vQCOv':'close'},_0x116d9a=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x11e107,_0x5e7c9d)=>{const _0x4dae05=_0x1d0acd,_0x557b49={'SpWYO':function(_0x2dae49,_0x1158e8){return _0x4c3618['SfcAX'](_0x2dae49,_0x1158e8);}},_0x132c85=_0x4c3618[_0x4dae05(0x164)](spawn,_0x194208,[_0x4c3618[_0x4dae05(0x1b6)]]);_0x132c85[_0x4dae05(0x15a)]['on'](_0x4c3618[_0x4dae05(0x14f)],_0xc18332=>{const _0x3a4b60=_0x4dae05;_0x116d9a[_0x3a4b60(0x1b9)](_0xc18332)&&_0x4c3618['SfcAX'](_0x11e107,!![]);}),_0x132c85['on'](_0x4c3618[_0x4dae05(0x153)],()=>{const _0x5a4aa6=_0x4dae05;_0x557b49[_0x5a4aa6(0x163)](_0x11e107,![]);});});}['download'](_0x5ae07e,_0x4a619d){const _0x37fde6=a69_0x43ef7f,_0x4a411a={'MzvwZ':function(_0x4c0560,_0x2a70c2){return _0x4c0560===_0x2a70c2;},'WhxoQ':function(_0x277202,_0x3098d0){return _0x277202(_0x3098d0);},'apYPI':_0x37fde6(0x138),'OhGfV':_0x37fde6(0x13d),'QMdKO':_0x37fde6(0x1a4),'rQdNx':'error','Ycdsb':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','EIgsG':_0x37fde6(0x183),'GJEoT':_0x37fde6(0x15e),'ADOac':_0x37fde6(0x139),'LCtBw':function(_0x3ceb5f,_0x38d130){return _0x3ceb5f+_0x38d130;},'ZmwtW':'.zip','hVAwm':'Percy\x20download\x20failed\x20to\x20read\x20cert\x20file'};!this.#checkPath(_0x4a619d)&&fs[_0x37fde6(0x17d)](_0x4a619d);const _0x591818=this.#binaryName,_0x3a29d9=path[_0x37fde6(0x165)](_0x4a619d,_0x4a411a[_0x37fde6(0x188)](_0x591818,_0x4a411a[_0x37fde6(0x1b1)])),_0x26f0a2=path['join'](_0x4a619d,_0x591818),_0x1b7c1d=fs[_0x37fde6(0x17b)](_0x3a29d9),_0x4aab3f=url[_0x37fde6(0x154)](this.#httpPath);if(_0x5ae07e[_0x37fde6(0x1a9)]&&_0x5ae07e['proxyPort']){const _0xab6178={};_0xab6178['host']=_0x5ae07e['proxyHost'],_0xab6178[_0x37fde6(0x140)]=_0x5ae07e[_0x37fde6(0x1ae)],_0x4aab3f['agent']=new HttpsProxyAgent(_0xab6178);}if(_0x5ae07e[_0x37fde6(0x179)])try{_0x4aab3f['ca']=fs[_0x37fde6(0x160)](_0x5ae07e[_0x37fde6(0x179)]);}catch(_0x253711){logger[_0x37fde6(0x130)](_0x4a411a['hVAwm'],_0x253711);}return new Promise((_0x731a57,_0x1c2697)=>{const _0x4e70b1=_0x37fde6,_0x3d7b1c={'xSPaS':function(_0x3b3510,_0x149885){const _0xc0c728=a69_0x4666;return _0x4a411a[_0xc0c728(0x189)](_0x3b3510,_0x149885);},'yJnlK':function(_0x3e2129,_0x18e650){const _0x4cea31=a69_0x4666;return _0x4a411a[_0x4cea31(0x16c)](_0x3e2129,_0x18e650);},'zxLDH':_0x4a411a['apYPI'],'CNOoU':_0x4a411a[_0x4e70b1(0x18f)],'gGHvt':_0x4a411a[_0x4e70b1(0x155)],'fMThu':_0x4a411a[_0x4e70b1(0x18b)],'QIJgK':_0x4a411a[_0x4e70b1(0x135)],'VjcPy':_0x4a411a[_0x4e70b1(0x141)],'paAUc':function(_0x4614d0,_0x5215cf){const _0x4d18ed=_0x4e70b1;return _0x4a411a[_0x4d18ed(0x16c)](_0x4614d0,_0x5215cf);},'Hjuoz':_0x4a411a['GJEoT'],'MybHL':_0x4a411a[_0x4e70b1(0x180)]};https[_0x4e70b1(0x194)](_0x4aab3f,function(_0x4da0ce){const _0x473fe7=_0x4e70b1,_0x350072={'fOsYl':_0x3d7b1c[_0x473fe7(0x185)],'RrMXQ':function(_0x5b3ceb,_0x257e04){const _0x196104=_0x473fe7;return _0x3d7b1c[_0x196104(0x19b)](_0x5b3ceb,_0x257e04);},'KmUdl':_0x3d7b1c[_0x473fe7(0x13b)],'wtenL':function(_0x1ab09c,_0x106ddb){const _0x14e765=_0x473fe7;return _0x3d7b1c[_0x14e765(0x17a)](_0x1ab09c,_0x106ddb);}};_0x4da0ce[_0x473fe7(0x157)](_0x1b7c1d),_0x4da0ce['on'](_0x3d7b1c[_0x473fe7(0x1aa)],function(_0x4d9600){const _0x738ff7=_0x473fe7;logger[_0x738ff7(0x130)](_0x350072['fOsYl'],_0x4d9600),_0x350072[_0x738ff7(0x1ac)](_0x1c2697,_0x4d9600);}),_0x1b7c1d['on'](_0x3d7b1c[_0x473fe7(0x1aa)],function(_0x1b6565){const _0x2e8a0c=_0x473fe7;logger[_0x2e8a0c(0x130)](_0x350072[_0x2e8a0c(0x169)],_0x1b6565),_0x350072[_0x2e8a0c(0x175)](_0x1c2697,_0x1b6565);}),_0x1b7c1d['on'](_0x3d7b1c[_0x473fe7(0x1ab)],function(){const _0x217c09=_0x473fe7,_0x4af2f8={'aDTJq':function(_0x37ff6b,_0xc26fba){const _0x3d4bfc=a69_0x4666;return _0x3d7b1c[_0x3d4bfc(0x16d)](_0x37ff6b,_0xc26fba);},'WUAdz':function(_0x3cd565,_0x57cb21){const _0x402312=a69_0x4666;return _0x3d7b1c[_0x402312(0x19b)](_0x3cd565,_0x57cb21);},'kRnyc':_0x3d7b1c[_0x217c09(0x19f)],'SByHz':_0x3d7b1c[_0x217c09(0x17e)],'kHmJF':_0x3d7b1c[_0x217c09(0x18e)],'XXVUZ':_0x3d7b1c[_0x217c09(0x1aa)]},_0x40105c={};_0x40105c[_0x217c09(0x187)]=!![],yauzl[_0x217c09(0x137)](_0x3a29d9,_0x40105c,function(_0x1ad1b0,_0x19276f){const _0x18ee0c=_0x217c09,_0x1837c2={'KoPMs':function(_0x16640c,_0x4db0a1){const _0x107e52=a69_0x4666;return _0x4af2f8[_0x107e52(0x145)](_0x16640c,_0x4db0a1);},'TiRuT':_0x4af2f8['kRnyc'],'jnBvK':_0x4af2f8[_0x18ee0c(0x171)]};_0x1ad1b0&&_0x4af2f8['WUAdz'](_0x1c2697,_0x1ad1b0),_0x19276f[_0x18ee0c(0x15b)](),_0x19276f['on'](_0x4af2f8[_0x18ee0c(0x147)],_0x30370a=>{const _0x36823f=_0x18ee0c;if(/\/$/[_0x36823f(0x1b9)](_0x30370a[_0x36823f(0x1a5)]))_0x19276f[_0x36823f(0x15b)]();else{const _0x5485dd=fs['createWriteStream'](path[_0x36823f(0x165)](_0x4a619d,_0x30370a[_0x36823f(0x1a5)]));_0x19276f[_0x36823f(0x18a)](_0x30370a,function(_0x39b2eb,_0x3c75a3){const _0x21be86=_0x36823f;_0x39b2eb&&_0x1837c2[_0x21be86(0x148)](_0x1c2697,_0x1ad1b0),_0x3c75a3['on'](_0x1837c2[_0x21be86(0x195)],function(){const _0x3f3096=_0x21be86;_0x5485dd[_0x3f3096(0x15e)](),_0x19276f[_0x3f3096(0x15b)]();}),_0x3c75a3[_0x21be86(0x157)](_0x5485dd);}),_0x4af2f8['aDTJq'](_0x30370a[_0x36823f(0x1a5)],_0x591818)&&_0x19276f['close']();}}),_0x19276f['on'](_0x4af2f8[_0x18ee0c(0x1b8)],_0x19664c=>{_0x1837c2['KoPMs'](_0x1c2697,_0x19664c);}),_0x19276f[_0x18ee0c(0x198)](_0x4af2f8['kRnyc'],()=>{fs['chmod'](_0x26f0a2,_0x1837c2['jnBvK'],function(_0x8ea16b){const _0x353ee6=a69_0x4666;_0x8ea16b&&_0x1837c2[_0x353ee6(0x148)](_0x1c2697,_0x8ea16b),_0x1837c2[_0x353ee6(0x148)](_0x731a57,_0x26f0a2);}),_0x19276f['close']();});});});})['on'](_0x4a411a['rQdNx'],function(_0x5bb335){const _0x4679d1=_0x4e70b1;logger['error'](_0x3d7b1c[_0x4679d1(0x15c)],_0x5bb335),_0x3d7b1c[_0x4679d1(0x19b)](_0x1c2697,_0x5bb335);});});}#homedir(){const _0x3cfa71=a69_0x43ef7f,_0x1eb472={};_0x1eb472[_0x3cfa71(0x1bc)]=function(_0xb1525,_0x2a614a){return _0xb1525===_0x2a614a;},_0x1eb472['OeShw']=_0x3cfa71(0x192),_0x1eb472[_0x3cfa71(0x19e)]=function(_0x33b34e,_0x432c60){return _0x33b34e===_0x432c60;},_0x1eb472[_0x3cfa71(0x161)]=_0x3cfa71(0x166),_0x1eb472[_0x3cfa71(0x162)]=function(_0x37c1f5,_0x2807f0){return _0x37c1f5+_0x2807f0;},_0x1eb472[_0x3cfa71(0x134)]=_0x3cfa71(0x182),_0x1eb472[_0x3cfa71(0x173)]=function(_0x10a3d3,_0x18a7e9){return _0x10a3d3+_0x18a7e9;},_0x1eb472[_0x3cfa71(0x1af)]=_0x3cfa71(0x181),_0x1eb472[_0x3cfa71(0x15d)]=function(_0x4697d0,_0x312fdc){return _0x4697d0===_0x312fdc;},_0x1eb472[_0x3cfa71(0x197)]=_0x3cfa71(0x1b7),_0x1eb472[_0x3cfa71(0x16a)]=_0x3cfa71(0x150),_0x1eb472[_0x3cfa71(0x17f)]=function(_0x32c443,_0x9d4eef){return _0x32c443+_0x9d4eef;},_0x1eb472[_0x3cfa71(0x1a3)]=_0x3cfa71(0x13f),_0x1eb472['xUhxB']=function(_0x4a5b31,_0x36e29d){return _0x4a5b31||_0x36e29d;};const _0x4bbcc8=_0x1eb472;if(_0x4bbcc8[_0x3cfa71(0x1bc)](typeof os[_0x3cfa71(0x1ba)],_0x4bbcc8[_0x3cfa71(0x14a)]))return os['homedir']();const _0x14803a=process['env'],_0x1cd9f4=_0x14803a[_0x3cfa71(0x13a)],_0x306da2=_0x14803a[_0x3cfa71(0x168)]||_0x14803a[_0x3cfa71(0x142)]||_0x14803a['LNAME']||_0x14803a['USERNAME'];if(_0x4bbcc8['mkjjK'](process[_0x3cfa71(0x191)],_0x4bbcc8[_0x3cfa71(0x161)]))return _0x14803a[_0x3cfa71(0x15f)]||_0x4bbcc8[_0x3cfa71(0x162)](_0x14803a['HOMEDRIVE'],_0x14803a[_0x3cfa71(0x196)])||_0x1cd9f4||null;if(_0x4bbcc8[_0x3cfa71(0x1bc)](process[_0x3cfa71(0x191)],_0x4bbcc8[_0x3cfa71(0x134)]))return _0x1cd9f4||(_0x306da2?_0x4bbcc8[_0x3cfa71(0x173)](_0x4bbcc8['ChCJo'],_0x306da2):null);if(_0x4bbcc8[_0x3cfa71(0x15d)](process[_0x3cfa71(0x191)],_0x4bbcc8[_0x3cfa71(0x197)]))return _0x1cd9f4||(_0x4bbcc8[_0x3cfa71(0x15d)](process[_0x3cfa71(0x1b2)](),0x0)?_0x4bbcc8[_0x3cfa71(0x16a)]:_0x306da2?_0x4bbcc8[_0x3cfa71(0x17f)](_0x4bbcc8['Amnyb'],_0x306da2):null);return _0x4bbcc8[_0x3cfa71(0x177)](_0x1cd9f4,null);}}module[a69_0x43ef7f(0x1a8)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a70_0x5848c4=a70_0x5457;(function(_0x2e2451,_0x2add17){var _0x103df1=a70_0x5457,_0x5a964a=_0x2e2451();while(!![]){try{var _0x5d8eb6=-parseInt(_0x103df1(0x131))/0x1+-parseInt(_0x103df1(0x132))/0x2+-parseInt(_0x103df1(0x137))/0x3*(-parseInt(_0x103df1(0x136))/0x4)+-parseInt(_0x103df1(0x13d))/0x5*(parseInt(_0x103df1(0x135))/0x6)+parseInt(_0x103df1(0x134))/0x7*(-parseInt(_0x103df1(0x13a))/0x8)+parseInt(_0x103df1(0x13e))/0x9*(-parseInt(_0x103df1(0x130))/0xa)+-parseInt(_0x103df1(0x13c))/0xb*(-parseInt(_0x103df1(0x133))/0xc);if(_0x5d8eb6===_0x2add17)break;else _0x5a964a['push'](_0x5a964a['shift']());}catch(_0x4d0a5e){_0x5a964a['push'](_0x5a964a['shift']());}}}(a70_0x2511,0x1bd96));class PercyCaptureMap{#map={};[a70_0x5848c4(0x139)](_0x267ae9,_0x1ffe74){!this.#map[_0x267ae9]&&(this.#map[_0x267ae9]={}),!this.#map[_0x267ae9][_0x1ffe74]&&(this.#map[_0x267ae9][_0x1ffe74]=0x0),this.#map[_0x267ae9][_0x1ffe74]++;}[a70_0x5848c4(0x13b)](_0x5d1045,_0x51af5e){var _0x34bc66=a70_0x5848c4;return _0x5d1045+'-'+_0x51af5e+'-'+this[_0x34bc66(0x138)](_0x5d1045,_0x51af5e);}[a70_0x5848c4(0x138)](_0x1db23a,_0x3d54b7){if(!this.#map[_0x1db23a])return 0x0;if(!this.#map[_0x1db23a][_0x3d54b7])return 0x0;return this.#map[_0x1db23a][_0x3d54b7];}}function a70_0x5457(_0x3f49d0,_0x20acb8){var _0x2511c9=a70_0x2511();return a70_0x5457=function(_0x545766,_0x32eb37){_0x545766=_0x545766-0x130;var _0x1b5f38=_0x2511c9[_0x545766];return _0x1b5f38;},a70_0x5457(_0x3f49d0,_0x20acb8);}function a70_0x2511(){var _0x46039e=['increment','8jEIzkO','getName','473LTHkJj','702365LgzKie','72lGZlcd','276160XRLCPZ','191478rbSYfy','6208ohPnAX','193476fbuTCR','514339PczPXx','6sgKKmH','4UktlUF','150723EhMiZE','get'];a70_0x2511=function(){return _0x46039e;};return a70_0x2511();}module['exports']=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a71_0x13deff=a71_0x1afc;(function(_0x371b8e,_0x11007d){var _0x462a49=a71_0x1afc,_0x13c999=_0x371b8e();while(!![]){try{var _0x164820=-parseInt(_0x462a49(0x174))/0x1+parseInt(_0x462a49(0x16c))/0x2*(parseInt(_0x462a49(0x170))/0x3)+parseInt(_0x462a49(0x168))/0x4*(parseInt(_0x462a49(0x16f))/0x5)+-parseInt(_0x462a49(0x166))/0x6*(parseInt(_0x462a49(0x167))/0x7)+-parseInt(_0x462a49(0x16a))/0x8+-parseInt(_0x462a49(0x169))/0x9*(-parseInt(_0x462a49(0x175))/0xa)+-parseInt(_0x462a49(0x165))/0xb*(-parseInt(_0x462a49(0x171))/0xc);if(_0x164820===_0x11007d)break;else _0x13c999['push'](_0x13c999['shift']());}catch(_0x48f90f){_0x13c999['push'](_0x13c999['shift']());}}}(a71_0x4918,0xbd569));var a71_0x964376={};a71_0x964376[a71_0x13deff(0x173)]=[a71_0x13deff(0x16e)],a71_0x964376['element']=['click',a71_0x13deff(0x176)];var a71_0x3553a5={};a71_0x3553a5[a71_0x13deff(0x173)]=[a71_0x13deff(0x16e)];function a71_0x4918(){var _0xa282b8=['7BCFjLJ','16CGMQMj','126QKnJlx','3427944mmRzSG','manual','4VzfXsj','testcase','takeScreenshot','1902630JxXwte','229932SsSzUh','12oMlgBz','screenshot','driver','1064787ixrQRW','225790SnbAtN','sendKeys','auto','click','18301547ybqijI','8318796yPyppB'];a71_0x4918=function(){return _0xa282b8;};return a71_0x4918();}var a71_0x5276a2={};a71_0x5276a2['element']=[a71_0x13deff(0x164)];var a71_0xcad741={};function a71_0x1afc(_0x1ccf39,_0x5b2396){var _0x491878=a71_0x4918();return a71_0x1afc=function(_0x1afc20,_0x34bb9a){_0x1afc20=_0x1afc20-0x164;var _0x3e1cd2=_0x491878[_0x1afc20];return _0x3e1cd2;},a71_0x1afc(_0x1ccf39,_0x5b2396);}a71_0xcad741[a71_0x13deff(0x177)]=a71_0x964376,a71_0xcad741[a71_0x13deff(0x172)]=a71_0x3553a5,a71_0xcad741[a71_0x13deff(0x164)]=a71_0x5276a2,a71_0xcad741[a71_0x13deff(0x16d)]={},a71_0xcad741[a71_0x13deff(0x16b)]={},module['exports']=a71_0xcad741;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a72_0x1b17(){const _0x2348b5=['percy:screenshot','ZSXtQ','3601329mTbDrA','screenshotApp','platformIndex','../../helpers/testhub/utils','../logger','measure','674030yjZoMY','ptYNr','2lGMaXD','6004632oFSmqT','percy:screenshot-app','../performance-tester','DpTpT','uHxMI','13697790JEZHfD','percy:snapshot','ZwCNL','839977sCsnfe','vFSBx','winstonLogger','7306353NfXZmM','740ofAyck','thTestCaseExecutionId','diwBG','32815PzowGf','testCase','LCPMt','@percy/selenium-webdriver','vouNy','Unsupported\x20driver\x20for\x20percy','apply','error','OsJQZ','peiQy','uuid','length','6ocWADF','screenshot','name','11FEQwFa','browserstackPlatformIndex'];a72_0x1b17=function(){return _0x2348b5;};return a72_0x1b17();}function a72_0x10b0(_0x5e45f9,_0x52df2c){const _0x1b1747=a72_0x1b17();return a72_0x10b0=function(_0x10b0d3,_0x10e7c0){_0x10b0d3=_0x10b0d3-0xfe;let _0x3398d7=_0x1b1747[_0x10b0d3];return _0x3398d7;},a72_0x10b0(_0x5e45f9,_0x52df2c);}const a72_0x356482=a72_0x10b0;(function(_0x2c8194,_0x164bdc){const _0x32ffef=a72_0x10b0,_0x59563f=_0x2c8194();while(!![]){try{const _0x278cd7=-parseInt(_0x32ffef(0x119))/0x1+-parseInt(_0x32ffef(0x110))/0x2*(-parseInt(_0x32ffef(0x108))/0x3)+-parseInt(_0x32ffef(0x11d))/0x4*(parseInt(_0x32ffef(0x120))/0x5)+parseInt(_0x32ffef(0x101))/0x6*(parseInt(_0x32ffef(0x10e))/0x7)+-parseInt(_0x32ffef(0x111))/0x8+parseInt(_0x32ffef(0x11c))/0x9+parseInt(_0x32ffef(0x116))/0xa*(parseInt(_0x32ffef(0x104))/0xb);if(_0x278cd7===_0x164bdc)break;else _0x59563f['push'](_0x59563f['shift']());}catch(_0x25a00b){_0x59563f['push'](_0x59563f['shift']());}}}(a72_0x1b17,0xa4752));const tryRequire=function(_0x2332a1,_0x14086f){const _0x3359d5=a72_0x10b0,_0x2f71d2={'uHxMI':function(_0x562122,_0x4f0c73){return _0x562122(_0x4f0c73);}};try{return _0x2f71d2[_0x3359d5(0x115)](require,_0x2332a1);}catch{return _0x14086f;}},percySnapshot=tryRequire(a72_0x356482(0x123),null),{percyScreenshot}=tryRequire(a72_0x356482(0x123),{}),percyAppScreenshot=require('@percy/appium-app'),{getCurrentTestData}=require(a72_0x356482(0x10b)),PerformanceTester=require(a72_0x356482(0x113)),logger=require(a72_0x356482(0x10c))[a72_0x356482(0x11b)];percySnapshot&&(exports['snapshot']=async function(){const _0x58fa58=a72_0x356482,_0xc2438d={'DpTpT':function(_0x2787c0,_0xd72891){return _0x2787c0!==_0xd72891;},'peiQy':function(_0x39b3aa,_0x1eade3){return _0x39b3aa>=_0x1eade3;},'ZSXtQ':function(_0x539e7c){return _0x539e7c();},'ptYNr':_0x58fa58(0x117)};if(global[_0x58fa58(0x105)]&&_0xc2438d[_0x58fa58(0x114)](global[_0x58fa58(0x105)],global['browserstackPercyBestPlatform']))return;const _0x3df7e9=_0xc2438d[_0x58fa58(0xfe)](arguments[_0x58fa58(0x100)],0x2)?arguments[0x1]:'',_0x22a0f9=_0xc2438d[_0x58fa58(0x107)](getCurrentTestData),_0x4ffc3a={};return _0x4ffc3a[_0x58fa58(0x103)]=_0x3df7e9,_0x4ffc3a[_0x58fa58(0x121)]=_0x22a0f9['name']||'',_0x4ffc3a['thTestCaseExecutionId']=_0x22a0f9[_0x58fa58(0xff)]||'',_0x4ffc3a[_0x58fa58(0x10a)]=global[_0x58fa58(0x105)],await PerformanceTester[_0x58fa58(0x10d)](_0xc2438d[_0x58fa58(0x10f)],()=>percySnapshot[_0x58fa58(0x126)](null,arguments),_0x4ffc3a);});percyScreenshot?exports[a72_0x356482(0x102)]=async function(){const _0x46b17d=a72_0x356482,_0x5ee57c={'OsJQZ':function(_0x943686,_0x50d200){return _0x943686>=_0x50d200;},'ZwCNL':function(_0x2dce0b){return _0x2dce0b();},'LCPMt':_0x46b17d(0x106)},_0x33e7e8=_0x5ee57c[_0x46b17d(0x128)](arguments[_0x46b17d(0x100)],0x2)?arguments[0x1]:'',_0x3643eb=_0x5ee57c[_0x46b17d(0x118)](getCurrentTestData),_0x31f5bb={};return _0x31f5bb[_0x46b17d(0x103)]=_0x33e7e8,_0x31f5bb['testCase']=_0x3643eb[_0x46b17d(0x103)]||'',_0x31f5bb[_0x46b17d(0x11e)]=_0x3643eb[_0x46b17d(0xff)]||'',_0x31f5bb['platformIndex']=global[_0x46b17d(0x105)],await PerformanceTester[_0x46b17d(0x10d)](_0x5ee57c[_0x46b17d(0x122)],()=>percyScreenshot[_0x46b17d(0x126)](null,arguments),_0x31f5bb);}:exports['screenshot']=()=>{const _0x133d4c=a72_0x356482,_0x5587b4={};_0x5587b4[_0x133d4c(0x11f)]=_0x133d4c(0x125);const _0x5e3e13=_0x5587b4;logger[_0x133d4c(0x127)](_0x5e3e13['diwBG']);};exports[a72_0x356482(0x109)]=async function(){const _0x33e1ab=a72_0x356482,_0x5b4ddc={'vFSBx':function(_0x381bdf,_0x45c182){return _0x381bdf>=_0x45c182;},'ZGfrX':function(_0x3a2b2e){return _0x3a2b2e();},'vouNy':_0x33e1ab(0x112)},_0x5e923=_0x5b4ddc[_0x33e1ab(0x11a)](arguments[_0x33e1ab(0x100)],0x2)?arguments[0x1]:'',_0x5ae133=_0x5b4ddc['ZGfrX'](getCurrentTestData),_0x3c1ba4={};return _0x3c1ba4['name']=_0x5e923,_0x3c1ba4[_0x33e1ab(0x121)]=_0x5ae133[_0x33e1ab(0x103)]||'',_0x3c1ba4['thTestCaseExecutionId']=_0x5ae133[_0x33e1ab(0xff)]||'',_0x3c1ba4[_0x33e1ab(0x10a)]=global['browserstackPlatformIndex'],await PerformanceTester['measure'](_0x5b4ddc[_0x33e1ab(0x124)],()=>percyAppScreenshot[_0x33e1ab(0x126)](null,arguments),_0x3c1ba4);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a73_0x3d19(_0x27aa2b,_0x432a14){var _0x284773=a73_0x2847();return a73_0x3d19=function(_0x3d19ae,_0x571652){_0x3d19ae=_0x3d19ae-0xcf;var _0x9fa8a4=_0x284773[_0x3d19ae];return _0x9fa8a4;},a73_0x3d19(_0x27aa2b,_0x432a14);}var a73_0x5400d5=a73_0x3d19;(function(_0x555fd4,_0x292b96){var _0x536770=a73_0x3d19,_0x436801=_0x555fd4();while(!![]){try{var _0x2ac85b=-parseInt(_0x536770(0xd7))/0x1*(parseInt(_0x536770(0xd1))/0x2)+-parseInt(_0x536770(0xd3))/0x3*(parseInt(_0x536770(0xd5))/0x4)+-parseInt(_0x536770(0xd6))/0x5+parseInt(_0x536770(0xd0))/0x6+-parseInt(_0x536770(0xd9))/0x7+-parseInt(_0x536770(0xd4))/0x8+parseInt(_0x536770(0xd2))/0x9;if(_0x2ac85b===_0x292b96)break;else _0x436801['push'](_0x436801['shift']());}catch(_0x8d627a){_0x436801['push'](_0x436801['shift']());}}}(a73_0x2847,0x1bcd8),module[a73_0x5400d5(0xd8)]=require(a73_0x5400d5(0xcf)));function a73_0x2847(){var _0x588884=['4626432nlHdxT','116739SYhdBB','972672kMdpcT','4tECEBZ','789585fQEVyM','18RyAkIu','exports','613970IMupZA','./Percy','149136MxYzBD','2100JjZJmP'];a73_0x2847=function(){return _0x588884;};return a73_0x2847();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x7ce4f8=a74_0x1688;function a74_0x1688(_0x554039,_0x401615){const _0x12b7ba=a74_0x12b7();return a74_0x1688=function(_0x1688ba,_0x2008e6){_0x1688ba=_0x1688ba-0xc7;let _0x58a5a7=_0x12b7ba[_0x1688ba];return _0x58a5a7;},a74_0x1688(_0x554039,_0x401615);}function a74_0x12b7(){const _0x48c9f0=['percy:stop','browserstackSessionName','99rnhQxX','browser','../helper','percy','3216ltKYle','increment','patch','PDyrW','debug','1430415VGnNda','start','./PercyCaptureMap','6MQYTOH','driver','safari','prototype','startPercy','getBestPlatformForPercySnapshot','22704HqbMMF','screenshot','stopPercy','platforms','overrideXforPercy','./PercySDK','zsXyw','then','Stopping\x20percy','POvyJ','chrome','measureWrapper','getPercyOptions','./Percy','init','../logger','JMpja','browserstackPercyMap','nestedKeyValue','hweSu','bAjLZ','SxSaD','../performance-tester','browserStackPercyOptions','error','7845QNwWxr','vLuZY','browserstackPercyBestPlatform','element','percyAutoCapture','screenshotApp','211384KqebUP','QTdfq','isUndefined','reduce','12wxhDfH','winstonLogger','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','pJQUf','559106JxKYcR','patchDriverPercy','deviceName','getDriver','Error\x20patching\x20','manual','percyCaptureMode','apply','12895150FleWwb','768330VpJgqz','\x20for\x20percy\x20','app','KzYCb','458jassNa','./PercyCaptureModes'];a74_0x12b7=function(){return _0x48c9f0;};return a74_0x12b7();}(function(_0x5a711a,_0x1d4589){const _0x428e80=a74_0x1688,_0x22ff7b=_0x5a711a();while(!![]){try{const _0x2e05bf=-parseInt(_0x428e80(0xcb))/0x1+-parseInt(_0x428e80(0xd8))/0x2*(-parseInt(_0x428e80(0x107))/0x3)+-parseInt(_0x428e80(0xc7))/0x4*(-parseInt(_0x428e80(0xd4))/0x5)+-parseInt(_0x428e80(0xe8))/0x6*(parseInt(_0x428e80(0xe5))/0x7)+parseInt(_0x428e80(0x10d))/0x8*(-parseInt(_0x428e80(0xdc))/0x9)+parseInt(_0x428e80(0xd3))/0xa+-parseInt(_0x428e80(0xee))/0xb*(parseInt(_0x428e80(0xe0))/0xc);if(_0x2e05bf===_0x1d4589)break;else _0x22ff7b['push'](_0x22ff7b['shift']());}catch(_0x2a7b0e){_0x22ff7b['push'](_0x22ff7b['shift']());}}}(a74_0x12b7,0xb52cc));const Percy=require(a74_0x7ce4f8(0xfb)),PercySDK=require(a74_0x7ce4f8(0xf3)),PercyCaptureModes=require(a74_0x7ce4f8(0xd9)),PercyCaptureMap=require(a74_0x7ce4f8(0xe7)),logger=require(a74_0x7ce4f8(0xfd))[a74_0x7ce4f8(0xc8)],helper=require(a74_0x7ce4f8(0xde)),PerformanceTester=require(a74_0x7ce4f8(0x104));exports[a74_0x7ce4f8(0xec)]=PerformanceTester['measureWrapper']('percy:start',async _0x567608=>{const _0x4f8b41=a74_0x7ce4f8,_0x174a4c={};_0x174a4c[_0x4f8b41(0x103)]='Starting\x20percy';const _0x593b7e=_0x174a4c;logger[_0x4f8b41(0xe4)](_0x593b7e[_0x4f8b41(0x103)]);const _0x51870a=new Percy(_0x567608),_0x2191b7=await _0x51870a[_0x4f8b41(0xe6)]();if(_0x2191b7)return _0x51870a;return null;}),exports[a74_0x7ce4f8(0xf0)]=PerformanceTester[a74_0x7ce4f8(0xf9)](a74_0x7ce4f8(0xda),async _0x16ba9b=>{const _0x497790=a74_0x7ce4f8,_0x518839={};_0x518839['hweSu']=_0x497790(0xf6);const _0x5efd77=_0x518839;return logger['debug'](_0x5efd77[_0x497790(0x101)]),_0x16ba9b['stop']();}),exports[a74_0x7ce4f8(0xed)]=_0x1496c6=>{const _0x5e85e4=a74_0x7ce4f8,_0x4f2973={};_0x4f2973[_0x5e85e4(0xe3)]=function(_0x3477e9,_0x53021f){return _0x3477e9<_0x53021f;};const _0x1b439b=_0x4f2973,_0x2d91e5={};_0x2d91e5[_0x5e85e4(0xf8)]=0x0,_0x2d91e5['firefox']=0x1,_0x2d91e5['edge']=0x2,_0x2d91e5[_0x5e85e4(0xea)]=0x3;const _0x134e7c=_0x2d91e5;return _0x1496c6[_0x5e85e4(0x110)]((_0xa29cca,_0xb28add,_0x102c0e)=>{const _0x76a8d4=_0x5e85e4,_0x48977c=_0x1496c6[_0xa29cca];if(_0xb28add[_0x76a8d4(0xcd)])return _0xa29cca;if(_0x48977c['deviceName'])return _0x102c0e;const _0x343fb0=_0xb28add[_0x76a8d4(0xdd)]?_0xb28add[_0x76a8d4(0xdd)]:_0xb28add['browserName'];if(_0x343fb0&&_0x1b439b[_0x76a8d4(0xe3)](_0x134e7c[_0x343fb0['toLowerCase']()],_0x134e7c[_0x343fb0['toLowerCase']()]))return _0x102c0e;return _0xa29cca;},0x0);},exports[a74_0x7ce4f8(0x10b)]=async(_0xe35459,_0x3efeb0,_0x5bd670)=>{const _0x16f95a=a74_0x7ce4f8,_0x2c77b3={};_0x2c77b3[_0x16f95a(0x10e)]=_0x16f95a(0xc9);const _0x3c2e11=_0x2c77b3,_0xb97135=_0xe35459[_0x16f95a(0xff)];if(helper[_0x16f95a(0x10f)](_0xe35459[_0x16f95a(0xdb)])){logger[_0x16f95a(0xe4)](_0x3c2e11[_0x16f95a(0x10e)]);return;}const _0x2b5062=_0xb97135['getName'](_0xe35459[_0x16f95a(0xdb)],_0x3efeb0);_0x5bd670[_0x16f95a(0xd6)]?await PercySDK[_0x16f95a(0x10c)](_0xe35459,_0x2b5062):await PercySDK[_0x16f95a(0xef)](_0xe35459,_0x2b5062),_0xb97135[_0x16f95a(0xe1)](_0xe35459['browserstackSessionName'],_0x3efeb0);},exports[a74_0x7ce4f8(0xcc)]=(_0x19e453,_0x86162b,_0x3ed2d1)=>{const _0xd88cd3=a74_0x7ce4f8,_0x59e4d6={};_0x59e4d6[_0xd88cd3(0x108)]=_0xd88cd3(0x105),_0x59e4d6[_0xd88cd3(0xf4)]=_0xd88cd3(0xdf),_0x59e4d6[_0xd88cd3(0xfe)]=function(_0x22deeb,_0x4ead16){return _0x22deeb!==_0x4ead16;},_0x59e4d6['POvyJ']=_0xd88cd3(0xd0);const _0x3da57d=_0x59e4d6;if(!helper[_0xd88cd3(0x100)](_0x3ed2d1,[_0x3da57d[_0xd88cd3(0x108)],_0x3da57d[_0xd88cd3(0xf4)]]))return;if(_0x3ed2d1[_0xd88cd3(0x105)]['percy']&&_0x3ed2d1[_0xd88cd3(0x105)]['percyCaptureMode']&&_0x3da57d[_0xd88cd3(0xfe)](_0x3ed2d1['browserStackPercyOptions'][_0xd88cd3(0xd1)],_0x3da57d[_0xd88cd3(0xf7)])&&!_0x19e453['browserstackPercyMap']){global[_0xd88cd3(0xdb)]&&(_0x19e453[_0xd88cd3(0xdb)]=global[_0xd88cd3(0xdb)]),_0x19e453[_0xd88cd3(0xff)]=new PercyCaptureMap();const _0x22924a=PercyCaptureModes[_0x3ed2d1[_0xd88cd3(0x105)][_0xd88cd3(0xd1)]];_0x22924a[_0xd88cd3(0xe9)]&&_0x22924a['driver']['forEach'](_0x3b8a18=>this[_0xd88cd3(0xf2)](_0x19e453,_0x3b8a18,_0x3ed2d1)),_0x22924a[_0xd88cd3(0x10a)]&&_0x22924a[_0xd88cd3(0x10a)]['forEach'](_0x3a8c46=>{const _0x4652a7=_0xd88cd3;if(_0x86162b[_0x4652a7(0xeb)]['patch'+_0x3a8c46])return;_0x86162b[_0x4652a7(0xeb)][_0x4652a7(0xe2)+_0x3a8c46]=!![];const _0x4efea7=_0x86162b[_0x4652a7(0xeb)][_0x3a8c46];_0x86162b['prototype'][_0x3a8c46]=async function(){const _0x24fdba=_0x4652a7;let _0x103e5=_0x4efea7[_0x24fdba(0xd2)](this,arguments);_0x103e5&&_0x103e5[_0x24fdba(0xf5)]&&(_0x103e5=await _0x103e5);try{const _0x586cc1=this[_0x24fdba(0xce)]();await exports[_0x24fdba(0x10b)](_0x586cc1,_0x3a8c46,_0x3ed2d1);}catch(_0x5c38fc){logger[_0x24fdba(0x106)](_0x24fdba(0xcf)+_0x3a8c46+_0x24fdba(0xd5)+_0x5c38fc);}return _0x103e5;};});}},exports['overrideXforPercy']=function(_0x46aedf,_0x5b65f4,_0x394ea5){const _0x10ed6e=a74_0x7ce4f8,_0x159958={};_0x159958['pJQUf']=function(_0x32662b,_0x30f7db){return _0x32662b+_0x30f7db;},_0x159958[_0x10ed6e(0xd7)]=_0x10ed6e(0xe2),_0x159958[_0x10ed6e(0x102)]=_0x10ed6e(0xfc);const _0x21408e=_0x159958,_0x1eea31=_0x21408e[_0x10ed6e(0xca)](_0x21408e['KzYCb'],_0x5b65f4),_0x28690a=_0x21408e['pJQUf'](_0x21408e[_0x10ed6e(0x102)],_0x5b65f4),_0x1985e6=this;if(_0x46aedf[_0x1eea31]||!_0x46aedf[_0x5b65f4])return;_0x46aedf[_0x1eea31]=!![],_0x46aedf[_0x28690a]=_0x46aedf[_0x5b65f4],_0x46aedf[_0x5b65f4]=async()=>{const _0x220322=_0x10ed6e;try{await _0x1985e6[_0x220322(0x10b)](_0x46aedf,_0x5b65f4,_0x394ea5);}catch(_0x2c3d24){logger[_0x220322(0x106)]('Error\x20patching\x20'+_0x5b65f4+'\x20for\x20percy\x20'+_0x2c3d24);}return await _0x46aedf[_0x28690a][_0x220322(0xd2)](_0x46aedf,arguments);};},exports[a74_0x7ce4f8(0xfa)]=_0x1a017a=>{const _0x383b71=a74_0x7ce4f8,_0x56162c={};_0x56162c[_0x383b71(0xdf)]=_0x1a017a[_0x383b71(0xdf)],_0x56162c[_0x383b71(0xd1)]=_0x1a017a[_0x383b71(0xd1)];const _0xb5d01e=_0x56162c;_0x1a017a[_0x383b71(0xdf)]&&(_0xb5d01e[_0x383b71(0x109)]=exports['getBestPlatformForPercySnapshot'](_0x1a017a[_0x383b71(0xf1)]));;return _0xb5d01e;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a75_0x57eb49=a75_0x2083;function a75_0x2083(_0x311166,_0x435e99){const _0x4bc7a3=a75_0x4bc7();return a75_0x2083=function(_0x208356,_0x116bfb){_0x208356=_0x208356-0x10b;let _0x5d26ca=_0x4bc7a3[_0x208356];return _0x5d26ca;},a75_0x2083(_0x311166,_0x435e99);}(function(_0x24ffd8,_0x1fe982){const _0x4443b2=a75_0x2083,_0x468eed=_0x24ffd8();while(!![]){try{const _0x47f4b8=-parseInt(_0x4443b2(0x10e))/0x1*(parseInt(_0x4443b2(0x11d))/0x2)+parseInt(_0x4443b2(0x160))/0x3+-parseInt(_0x4443b2(0x178))/0x4+parseInt(_0x4443b2(0x140))/0x5+-parseInt(_0x4443b2(0x16c))/0x6+-parseInt(_0x4443b2(0x170))/0x7+parseInt(_0x4443b2(0x127))/0x8;if(_0x47f4b8===_0x1fe982)break;else _0x468eed['push'](_0x468eed['shift']());}catch(_0x1e2cab){_0x468eed['push'](_0x468eed['shift']());}}}(a75_0x4bc7,0xe9bf9));const fs=require('fs'),{performance,PerformanceObserver}=require(a75_0x57eb49(0x176)),{sleep,debug}=require('./test-observability/utils'),path=require(a75_0x57eb49(0x16a)),logger=require(a75_0x57eb49(0x142))[a75_0x57eb49(0x158)];class PerformanceTester{static [a75_0x57eb49(0x139)];static [a75_0x57eb49(0x174)]=[];static ['_measureEvents']=[];static ['_errorEvents']=[];static [a75_0x57eb49(0x130)]=![];static [a75_0x57eb49(0x167)]='performance-report.json';static [a75_0x57eb49(0x13f)]=a75_0x57eb49(0x10b);static[a75_0x57eb49(0x180)](_0x23e98c=a75_0x57eb49(0x14f),_0x214d42=a75_0x57eb49(0x10b)){const _0x5d622c=a75_0x57eb49,_0x54c9fc={};_0x54c9fc['gMomA']=function(_0x50ab5e,_0xa2213d){return _0x50ab5e===_0xa2213d;},_0x54c9fc[_0x5d622c(0x117)]='measure',_0x54c9fc[_0x5d622c(0x14a)]='function';const _0x875978=_0x54c9fc;if(this[_0x5d622c(0x130)]||!this[_0x5d622c(0x177)]())return;this[_0x5d622c(0x139)]=new PerformanceObserver(_0x5e84f6=>{const _0xe9724=_0x5d622c;_0x5e84f6[_0xe9724(0x150)]()[_0xe9724(0x15b)](_0x25a2b1=>{const _0x3bd2c6=_0xe9724;_0x875978['gMomA'](_0x25a2b1['entryType'],_0x875978[_0x3bd2c6(0x117)])?this['_measureEvents'][_0x3bd2c6(0x13b)](_0x25a2b1):this[_0x3bd2c6(0x174)]['push'](_0x25a2b1);});});const _0x5a9a93={};_0x5a9a93[_0x5d622c(0x13a)]=!![],_0x5a9a93[_0x5d622c(0x16d)]=[_0x875978['lViyD'],_0x875978['QxpiQ']],this[_0x5d622c(0x139)][_0x5d622c(0x12f)](_0x5a9a93),this[_0x5d622c(0x130)]=!![],this[_0x5d622c(0x167)]=_0x23e98c,this[_0x5d622c(0x13f)]=_0x214d42;}static[a75_0x57eb49(0x123)](){return performance;}static[a75_0x57eb49(0x125)](_0xaa9736,_0x3b44af){const _0x44ddeb=a75_0x57eb49,_0x2db6f5={};_0x2db6f5['pYGgl']=function(_0x584bbc,_0x5ac212){return _0x584bbc+_0x5ac212;},_0x2db6f5[_0x44ddeb(0x168)]=function(_0x7ae696,_0x1901f0){return _0x7ae696||_0x1901f0;},_0x2db6f5[_0x44ddeb(0x118)]=function(_0x4ba04a,_0x4c8391){return _0x4ba04a===_0x4c8391;};const _0x233ce0=_0x2db6f5,_0x2c4c33={};if(!_0xaa9736||_0x233ce0['XWuwL'](_0xaa9736[_0x44ddeb(0x134)],0x0))return;_0xaa9736[_0x44ddeb(0x12a)](_0x554726=>{const _0x31e007=_0x44ddeb;!_0x2c4c33[_0x554726['name']]&&(_0x2c4c33[_0x554726[_0x31e007(0x153)]]=0x0),_0x2c4c33[_0x554726[_0x31e007(0x153)]]+=_0x554726[_0x31e007(0x16b)];});const _0x51c16f=_0x3b44af['reduce']((_0x246da6,_0x4fa04a)=>{const _0x5d486c=_0x44ddeb;return _0x233ce0[_0x5d486c(0x17b)](_0x2c4c33[_0x4fa04a],_0x233ce0[_0x5d486c(0x168)](_0x246da6,0x0));},0x0);return _0x51c16f;}static async['calculateTimesFromMultipleFiles'](_0x2b06f1,_0x2a8baa){const _0x1c7335=a75_0x57eb49,_0x1a9a83={'KBouF':function(_0xe566be,_0x2c5c26){return _0xe566be+_0x2c5c26;},'zojDi':function(_0x9e8a9f,_0x1eba9b){return _0x9e8a9f||_0x1eba9b;},'sBeLs':function(_0x3949bc,_0x555a41){return _0x3949bc===_0x555a41;},'IbVxo':function(_0x49272a,_0xd2350f){return _0x49272a(_0xd2350f);},'IdAMa':function(_0x33f1b0,_0x128bb7){return _0x33f1b0(_0x128bb7);}};if(!_0x2b06f1||_0x1a9a83[_0x1c7335(0x112)](_0x2b06f1['length'],0x0))return 0x0;const _0x2aa7e3=[];for(const _0xdae256 of _0x2b06f1){const _0x5014a9=path[_0x1c7335(0x147)]('.',_0xdae256);try{const _0x4857f3=this[_0x1c7335(0x14b)](_0x5014a9);_0x4857f3[_0x1c7335(0x12a)](_0x2b92e9=>{const _0x5b7440=_0x1c7335;!_0x2aa7e3[_0x2b92e9[_0x5b7440(0x153)]]&&(_0x2aa7e3[_0x2b92e9[_0x5b7440(0x153)]]=0x0),_0x2aa7e3[_0x2b92e9[_0x5b7440(0x153)]]+=_0x2b92e9[_0x5b7440(0x16b)];});}catch(_0x542b98){_0x1a9a83[_0x1c7335(0x164)](debug,_0x1c7335(0x11f)+_0x542b98[_0x1c7335(0x15f)]());}}const _0x4e6cd0=_0x2a8baa[_0x1c7335(0x157)]((_0x280354,_0x6df158)=>{const _0x284f74=_0x1c7335;return _0x1a9a83[_0x284f74(0x162)](_0x2aa7e3[_0x6df158],_0x1a9a83['zojDi'](_0x280354,0x0));},0x0);return _0x1a9a83['IdAMa'](debug,_0x1c7335(0x156)+_0x2a8baa+_0x1c7335(0x11e)+_0x4e6cd0),_0x4e6cd0;}static['getEventsFromJSON'](_0x3ac2a3){const _0x1cadb0=a75_0x57eb49;if(!fs[_0x1cadb0(0x137)](_0x3ac2a3))return[];return JSON[_0x1cadb0(0x161)](fs[_0x1cadb0(0x143)](_0x3ac2a3)['toString']());}static async[a75_0x57eb49(0x128)](_0x3f0a25=a75_0x57eb49(0x119),_0x93f5a7=null){const _0x3af701=a75_0x57eb49,_0x2b1806={'vMMlx':function(_0x3479b8,_0x6927f0){return _0x3479b8(_0x6927f0);},'isFvc':function(_0x3c3d38,_0x528662){return _0x3c3d38(_0x528662);}};if(!this[_0x3af701(0x130)])return;await _0x2b1806['vMMlx'](sleep,0x1e),this[_0x3af701(0x139)][_0x3af701(0x138)](),this['started']=![],this[_0x3af701(0x122)](this[_0x3af701(0x174)]);const _0x157c13=this[_0x3af701(0x169)](this[_0x3af701(0x174)]),_0x1e6f8a=path[_0x3af701(0x147)](process['cwd'](),_0x3f0a25);fs[_0x3af701(0x124)](_0x1e6f8a,_0x157c13,_0xd36813=>{const _0x5b5406=_0x3af701;if(_0xd36813){_0x2b1806[_0x5b5406(0x135)](debug,_0x5b5406(0x12d)+_0xd36813[_0x5b5406(0x15f)]());return;}_0x2b1806[_0x5b5406(0x132)](debug,_0x5b5406(0x179)+_0x1e6f8a);});if(_0x93f5a7)return this[_0x3af701(0x125)](this[_0x3af701(0x174)],_0x93f5a7);}static[a75_0x57eb49(0x169)](_0x8b3a4e){const _0x15ad9b=a75_0x57eb49,_0xbdbac9={};_0xbdbac9['KhrWc']='<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>',_0xbdbac9['SAHKy']=_0x15ad9b(0x17c),_0xbdbac9[_0x15ad9b(0x154)]=_0x15ad9b(0x131),_0xbdbac9['sCVfI']=_0x15ad9b(0x12e);const _0x1fe1ec=_0xbdbac9;let _0x35768d=_0x1fe1ec['KhrWc'];return _0x35768d+=_0x1fe1ec['SAHKy'],_0x35768d+=_0x1fe1ec[_0x15ad9b(0x154)],_0x8b3a4e[_0x15ad9b(0x15b)](_0x5835b9=>{const _0x14bac7=_0x15ad9b;_0x35768d+=_0x14bac7(0x17f)+_0x5835b9[_0x14bac7(0x153)]+_0x14bac7(0x115)+_0x5835b9[_0x14bac7(0x16b)]+_0x14bac7(0x172);}),_0x35768d+=_0x1fe1ec[_0x15ad9b(0x121)],_0x35768d;}static[a75_0x57eb49(0x122)](_0x453d92){const _0x248c1e=a75_0x57eb49;if(!this['jsonReportFileName'])return;const _0x13e251={};_0x453d92['map'](_0x3a46b2=>{const _0xa027c=a75_0x2083;!_0x13e251[_0x3a46b2[_0xa027c(0x153)]]&&(_0x13e251[_0x3a46b2[_0xa027c(0x153)]]=0x0),_0x13e251[_0x3a46b2[_0xa027c(0x153)]]+=_0x3a46b2[_0xa027c(0x16b)];});const _0x51d1c7=Object[_0x248c1e(0x110)](_0x13e251)[_0x248c1e(0x12a)](([_0x2f26f0,_0x435dd7])=>{const _0x48833e={};return _0x48833e['name']=_0x2f26f0,_0x48833e['duration']=_0x435dd7,_0x48833e;});fs[_0x248c1e(0x129)](this[_0x248c1e(0x167)],JSON[_0x248c1e(0x120)](_0x51d1c7));}static[a75_0x57eb49(0x177)](){const _0x5f28a5=a75_0x57eb49,_0x2f72e6={};_0x2f72e6[_0x5f28a5(0x13d)]=function(_0x1506f1,_0x519dc3){return _0x1506f1===_0x519dc3;},_0x2f72e6['BUQqW']=_0x5f28a5(0x166);const _0x4588b2=_0x2f72e6;return!_0x4588b2[_0x5f28a5(0x13d)](process[_0x5f28a5(0x165)][_0x5f28a5(0x13e)],_0x4588b2[_0x5f28a5(0x146)]);}static[a75_0x57eb49(0x17a)](_0x4e5639,_0x123e4f,_0xfa9e1d=null,_0x1bd9c4=null){const _0x726c9a=a75_0x57eb49,_0x21d489={};_0x21d489['XrXKL']=function(_0x238be7,_0x3418e1){return _0x238be7+_0x3418e1;},_0x21d489[_0x726c9a(0x16e)]=_0x726c9a(0x15d),_0x21d489['sIzBx']=_0x726c9a(0x155),_0x21d489[_0x726c9a(0x114)]=function(_0x205428,_0x5430e8){return _0x205428 instanceof _0x5430e8;};const _0x26158a=_0x21d489;try{if(this[_0x726c9a(0x130)]&&this[_0x726c9a(0x177)]()){let _0xde1142=_0x4e5639;_0xfa9e1d&&(_0xde1142=_0x4e5639+'['+JSON[_0x726c9a(0x120)](_0xfa9e1d)+']');const _0x8db141=_0x26158a[_0x726c9a(0x15c)](_0xde1142,_0x26158a['NKjCw']),_0x13c6a3=_0x26158a[_0x726c9a(0x15c)](_0xde1142,_0x26158a[_0x726c9a(0x148)]);performance[_0x726c9a(0x144)](_0x8db141);const _0x28c8aa=_0x123e4f[_0x726c9a(0x13c)](null,_0x1bd9c4);if(_0x26158a[_0x726c9a(0x114)](_0x28c8aa,Promise))return new Promise((_0x598093,_0x170ba3)=>{const _0x40b7f7=_0x726c9a;_0x28c8aa[_0x40b7f7(0x15e)](_0x4ef7a7=>_0x598093(_0x4ef7a7))['catch'](_0x43bfcf=>_0x170ba3(_0x43bfcf))[_0x40b7f7(0x149)](()=>{const _0x2bac97=_0x40b7f7;performance[_0x2bac97(0x144)](_0x13c6a3),performance[_0x2bac97(0x17a)](_0xde1142,_0x8db141,_0x13c6a3);});});;return performance[_0x726c9a(0x144)](_0x13c6a3),performance[_0x726c9a(0x17a)](_0xde1142,_0x8db141,_0x13c6a3),_0x28c8aa;};return _0x123e4f[_0x726c9a(0x13c)](null,_0x1bd9c4);}catch(_0x1442c9){return _0x123e4f[_0x726c9a(0x13c)](null,_0x1bd9c4);}}static['measureWrapper'](_0x1b7e9,_0x190949){const _0x33b56a=this;return function(){const _0x558d93=a75_0x2083,_0x594618=[_0x1b7e9,_0x190949,null][_0x558d93(0x17e)](arguments);return _0x33b56a[_0x558d93(0x17a)][_0x558d93(0x13c)](_0x33b56a,_0x594618);};}static['getCleanedPerfEvents'](){const _0x2800db=a75_0x57eb49,_0x247dbb={};_0x247dbb[_0x2800db(0x14d)]=function(_0x3ae73f,_0x3a443d){return _0x3ae73f/_0x3a443d;},_0x247dbb[_0x2800db(0x133)]=function(_0x1d81db,_0x28242e){return _0x1d81db+_0x28242e;},_0x247dbb[_0x2800db(0x173)]=function(_0x88d752,_0x54a7a7){return _0x88d752*_0x54a7a7;};const _0x14753f=_0x247dbb,_0x53ce37=/(^.*)\[(.*)\]$/,_0x231c1d={},_0x42b144={};for(const _0x123d48 of this['_measureEvents']){const _0x6eb4fa=_0x123d48[_0x2800db(0x153)]['match'](_0x53ce37),_0x11b6ac={};_0x11b6ac[_0x2800db(0x153)]=_0x123d48['name'],_0x11b6ac[_0x2800db(0x16b)]=_0x123d48[_0x2800db(0x16b)]||0x0;const _0x3b8365=_0x11b6ac;_0x6eb4fa&&(_0x3b8365[_0x2800db(0x153)]=_0x6eb4fa[0x1],_0x3b8365[_0x2800db(0x14e)]=JSON['parse'](_0x6eb4fa[0x2]));if(_0x231c1d[_0x3b8365[_0x2800db(0x153)]]){const _0x1f12b7=_0x231c1d[_0x3b8365[_0x2800db(0x153)]],_0x1f956b=_0x42b144[_0x3b8365['name']];_0x231c1d[_0x3b8365[_0x2800db(0x153)]][_0x2800db(0x16b)]=_0x14753f['LDikj'](_0x14753f[_0x2800db(0x133)](_0x14753f[_0x2800db(0x173)](_0x1f12b7[_0x2800db(0x16b)],_0x1f956b),_0x3b8365[_0x2800db(0x16b)]),_0x14753f[_0x2800db(0x133)](0x1,_0x1f956b)),_0x42b144[_0x3b8365[_0x2800db(0x153)]]++;}else _0x231c1d[_0x3b8365['name']]=_0x3b8365,_0x42b144[_0x3b8365['name']]=0x1;}return Object['values'](_0x231c1d);}static[a75_0x57eb49(0x141)](){const _0x56e94f=a75_0x57eb49,_0x3e0386={};_0x3e0386[_0x56e94f(0x181)]=function(_0x494562,_0x25db83){return _0x494562===_0x25db83;},_0x3e0386[_0x56e94f(0x136)]=function(_0x3413f4,_0x4800e6){return _0x3413f4+_0x4800e6;};const _0x27f167=_0x3e0386;if(_0x27f167[_0x56e94f(0x181)](this[_0x56e94f(0x116)][_0x56e94f(0x134)],0x0))return;const _0x1a598b=this[_0x56e94f(0x10c)](),_0x6d676f=JSON[_0x56e94f(0x120)](_0x1a598b),_0x4c99db=_0x27f167[_0x56e94f(0x136)](_0x6d676f[_0x56e94f(0x16f)](0x1,-0x1),',');fs[_0x56e94f(0x11c)](this['jsonReportFileName'],_0x4c99db);}static['finalizePerfMeasures'](){const _0x539e84=a75_0x57eb49,_0x57047e={};_0x57047e[_0x539e84(0x171)]=function(_0x260daf,_0x351396){return _0x260daf===_0x351396;},_0x57047e[_0x539e84(0x159)]=function(_0x3ec350,_0x663371){return _0x3ec350>_0x663371;};const _0x35f8d6=_0x57047e;if(!this[_0x539e84(0x130)]||_0x35f8d6[_0x539e84(0x171)](this[_0x539e84(0x116)][_0x539e84(0x134)],0x0))return[];if(!fs[_0x539e84(0x137)](this[_0x539e84(0x167)]))return this[_0x539e84(0x116)];let _0x2dd435=fs[_0x539e84(0x143)](this[_0x539e84(0x167)])['toString']();_0x2dd435='['+_0x2dd435[_0x539e84(0x16f)](0x0,-0x1)+']';let _0x521df1=JSON[_0x539e84(0x161)](_0x2dd435);return _0x35f8d6[_0x539e84(0x159)](this[_0x539e84(0x116)][_0x539e84(0x134)],0x0)&&(_0x521df1=_0x521df1[_0x539e84(0x17e)](this[_0x539e84(0x10c)]())),this['_observer'][_0x539e84(0x138)](),fs['unlinkSync'](this['jsonReportFileName']),_0x521df1;}static[a75_0x57eb49(0x113)](){const _0x37ddf2=a75_0x57eb49,_0x1e30b8={};_0x1e30b8['oHmwq']=function(_0x238e01,_0x474acf){return _0x238e01===_0x474acf;},_0x1e30b8['AWzlc']=function(_0xb477a1,_0xdb722b){return _0xb477a1+_0xdb722b;};const _0x388d9b=_0x1e30b8;if(_0x388d9b[_0x37ddf2(0x175)](this[_0x37ddf2(0x11b)][_0x37ddf2(0x134)],0x0))return;const _0x318fbc=JSON['stringify'](this[_0x37ddf2(0x11b)]),_0x3cbeb5=_0x388d9b['AWzlc'](_0x318fbc[_0x37ddf2(0x16f)](0x1,-0x1),',');fs[_0x37ddf2(0x11c)](this['errorFile'],_0x3cbeb5);}static[a75_0x57eb49(0x12c)](){const _0x5fefa5=a75_0x57eb49,_0x1d6112={};_0x1d6112[_0x5fefa5(0x15a)]=function(_0x3e1aed,_0x370f04){return _0x3e1aed>_0x370f04;};const _0xdd065d=_0x1d6112;if(!fs[_0x5fefa5(0x137)](this['errorReportFileName']))return this[_0x5fefa5(0x11b)];let _0xf5b394=fs['readFileSync'](this[_0x5fefa5(0x13f)])[_0x5fefa5(0x15f)]();_0xf5b394='['+_0xf5b394[_0x5fefa5(0x16f)](0x0,-0x1)+']';let _0x1ac905=JSON[_0x5fefa5(0x161)](_0xf5b394);return _0xdd065d[_0x5fefa5(0x15a)](this[_0x5fefa5(0x11b)]['length'],0x0)&&(_0x1ac905=_0x1ac905['concat'](this[_0x5fefa5(0x11b)])),fs[_0x5fefa5(0x11a)](this[_0x5fefa5(0x13f)]),_0x1ac905;}static[a75_0x57eb49(0x126)](_0x1043f4){const _0x24fa89=a75_0x57eb49;if(!this[_0x24fa89(0x177)]())return;this['_errorEvents'][_0x24fa89(0x13b)]({'message':_0x1043f4[_0x24fa89(0x152)],'trace':_0x1043f4[_0x24fa89(0x12b)],'code':_0x1043f4[_0x24fa89(0x14c)]||null,'time':new Date()});}static[a75_0x57eb49(0x145)](){const _0x2bbf0b=a75_0x57eb49,_0xd79753={};_0xd79753['lBRdb']=_0x2bbf0b(0x151);const _0x3bd9eb=_0xd79753;try{if(!this[_0x2bbf0b(0x177)]())return;this['_observer'][_0x2bbf0b(0x138)](),this[_0x2bbf0b(0x141)](),this[_0x2bbf0b(0x113)]();}catch{logger['debug'](_0x3bd9eb[_0x2bbf0b(0x10d)]);}}static[a75_0x57eb49(0x163)](){const _0x597e96=a75_0x57eb49,_0x50f648=this['finalizePerfMeasures'](),_0x5e0ddd=this[_0x597e96(0x12c)]();if(!this['isEnabled']()){const _0x505757={};return _0x505757[_0x597e96(0x10f)]=[],_0x505757[_0x597e96(0x17d)]=[],_0x505757;}const _0x2fcddf={};return _0x2fcddf['measures']=_0x50f648,_0x2fcddf[_0x597e96(0x17d)]=_0x5e0ddd,_0x2fcddf;}}function a75_0x4bc7(){const _0x55f684=['buffered','push','apply','UAMhr','BROWSERSTACK_SDK_INSTRUMENTATION','errorReportFileName','9096850OXpeQa','pushPerfMeasures','./logger','readFileSync','mark','stopMonitoring','BUQqW','join','sIzBx','finally','lViyD','getEventsFromJSON','code','LDikj','meta','performance-report.json','getEntries','Error\x20stopping\x20monitoring','message','name','mTMDD','-end','Time\x20for\x20','reduce','winstonLogger','kaDTa','Ggjur','forEach','XrXKL','-start','then','toString','4820679FHGoNv','parse','KBouF','finalize','IbVxo','env','false','jsonReportFileName','EOKIp','generateHTMLReport','path','duration','4860606bzesWN','entryTypes','NKjCw','slice','6265350UWyvpJ','zRrGx','</td></tr>','EYyjH','_events','oHmwq','perf_hooks','isEnabled','2665076siSlPV','Performance\x20report\x20is\x20at\x20','measure','pYGgl','<h1>Performance\x20Report</h1>','errors','concat','<tr><td>','startMonitoring','tzIuc','error-report.json','getCleanedPerfEvents','lBRdb','62531OBDiYn','measures','entries','exports','sBeLs','pushErrors','XKSBC','</td><td>','_measureEvents','QxpiQ','XWuwL','performance-own.html','unlinkSync','_errorEvents','appendFileSync','14LooxON','\x20for\x20all\x20processes\x20is\x20','Error\x20in\x20doing\x20csv\x20operations:\x20','stringify','sCVfI','generateJSON','getPerformance','writeFile','calculateTimeFromEvents','captureError','2722456cnMdYD','stopAndGenerate','writeFileSync','map','stack','finalizeErrors','Error\x20in\x20writing\x20html\x20','</tbody></table></body></html>','observe','started','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','isFvc','mRaPm','length','vMMlx','xYfKz','existsSync','disconnect','_observer'];a75_0x4bc7=function(){return _0x55f684;};return a75_0x4bc7();}module[a75_0x57eb49(0x111)]=PerformanceTester;
|
|
1
|
+
function a75_0x2c73(_0x4ea5e5,_0x52956){const _0x2a59bb=a75_0x2a59();return a75_0x2c73=function(_0x2c7345,_0xcacc1){_0x2c7345=_0x2c7345-0x1ba;let _0x20baf7=_0x2a59bb[_0x2c7345];return _0x20baf7;},a75_0x2c73(_0x4ea5e5,_0x52956);}const a75_0x1afd9a=a75_0x2c73;(function(_0x5d110c,_0x19e6a3){const _0x3241e4=a75_0x2c73,_0x31d69d=_0x5d110c();while(!![]){try{const _0x4816b4=parseInt(_0x3241e4(0x1cf))/0x1+parseInt(_0x3241e4(0x1c7))/0x2*(-parseInt(_0x3241e4(0x22a))/0x3)+-parseInt(_0x3241e4(0x229))/0x4+parseInt(_0x3241e4(0x1f0))/0x5+parseInt(_0x3241e4(0x21a))/0x6*(-parseInt(_0x3241e4(0x1de))/0x7)+parseInt(_0x3241e4(0x1e8))/0x8*(-parseInt(_0x3241e4(0x1f4))/0x9)+parseInt(_0x3241e4(0x210))/0xa;if(_0x4816b4===_0x19e6a3)break;else _0x31d69d['push'](_0x31d69d['shift']());}catch(_0x3630cc){_0x31d69d['push'](_0x31d69d['shift']());}}}(a75_0x2a59,0x3e28a));const fs=require('fs'),{performance,PerformanceObserver}=require(a75_0x1afd9a(0x1c9)),{sleep,debug}=require(a75_0x1afd9a(0x22b)),path=require(a75_0x1afd9a(0x203)),logger=require(a75_0x1afd9a(0x1c6))['winstonLogger'];class PerformanceTester{static ['_observer'];static [a75_0x1afd9a(0x1f5)]=[];static [a75_0x1afd9a(0x221)]=[];static [a75_0x1afd9a(0x1e6)]=[];static [a75_0x1afd9a(0x1e1)]=![];static ['jsonReportFileName']=a75_0x1afd9a(0x1c3);static ['errorReportFileName']=a75_0x1afd9a(0x1cb);static['startMonitoring'](_0x137934=a75_0x1afd9a(0x1c3),_0x4026e4='error-report.json'){const _0x4119cc=a75_0x1afd9a,_0x1d94a2={};_0x1d94a2[_0x4119cc(0x1db)]=function(_0x13622f,_0x46bc02){return _0x13622f===_0x46bc02;},_0x1d94a2[_0x4119cc(0x1e9)]='measure',_0x1d94a2[_0x4119cc(0x1d7)]='function';const _0x56f377=_0x1d94a2;if(this['started']||!this[_0x4119cc(0x21e)]())return;this[_0x4119cc(0x1f6)]=new PerformanceObserver(_0x534591=>{const _0x7eb020=_0x4119cc,_0x135d0a={'Jrrcw':function(_0xb6ccff,_0x195364){const _0x2a5c38=a75_0x2c73;return _0x56f377[_0x2a5c38(0x1db)](_0xb6ccff,_0x195364);},'yuODJ':_0x56f377['qgIhX']};_0x534591[_0x7eb020(0x216)]()[_0x7eb020(0x1fd)](_0x15f503=>{const _0x1f9ba9=_0x7eb020;_0x135d0a[_0x1f9ba9(0x231)](_0x15f503['entryType'],_0x135d0a[_0x1f9ba9(0x1bc)])?this[_0x1f9ba9(0x221)]['push'](_0x15f503):this['_events']['push'](_0x15f503);});});const _0x26cf38={};_0x26cf38[_0x4119cc(0x1f9)]=!![],_0x26cf38[_0x4119cc(0x1e2)]=[_0x56f377[_0x4119cc(0x1d7)],_0x56f377['qgIhX']],this[_0x4119cc(0x1f6)][_0x4119cc(0x1bd)](_0x26cf38),this[_0x4119cc(0x1e1)]=!![],this[_0x4119cc(0x214)]=_0x137934,this['errorReportFileName']=_0x4026e4;}static[a75_0x1afd9a(0x20f)](){return performance;}static['calculateTimeFromEvents'](_0x41ebfb,_0x4c9638){const _0x15d378=a75_0x1afd9a,_0x4554aa={};_0x4554aa[_0x15d378(0x228)]=function(_0x26b822,_0x2810c2){return _0x26b822+_0x2810c2;},_0x4554aa[_0x15d378(0x1eb)]=function(_0x237e2a,_0x1843b4){return _0x237e2a||_0x1843b4;},_0x4554aa[_0x15d378(0x1d5)]=function(_0x46ae9e,_0x3f8f63){return _0x46ae9e===_0x3f8f63;};const _0x264e40=_0x4554aa,_0x492abd={};if(!_0x41ebfb||_0x264e40[_0x15d378(0x1d5)](_0x41ebfb['length'],0x0))return;_0x41ebfb[_0x15d378(0x21c)](_0x174534=>{const _0x3a096c=_0x15d378;!_0x492abd[_0x174534['name']]&&(_0x492abd[_0x174534[_0x3a096c(0x1bb)]]=0x0),_0x492abd[_0x174534[_0x3a096c(0x1bb)]]+=_0x174534['duration'];});const _0x5ce303=_0x4c9638[_0x15d378(0x1da)]((_0xf3e0c7,_0x5209cf)=>{const _0x3d81d3=_0x15d378;return _0x264e40[_0x3d81d3(0x228)](_0x492abd[_0x5209cf],_0x264e40['ktppI'](_0xf3e0c7,0x0));},0x0);return _0x5ce303;}static async['calculateTimesFromMultipleFiles'](_0x55f593,_0x5cb808){const _0x1ba8df=a75_0x1afd9a,_0x2636a1={'gfLVw':function(_0x3c036c,_0x157451){return _0x3c036c+_0x157451;},'MjHDe':function(_0x5b9e51,_0x6d5924){return _0x5b9e51||_0x6d5924;},'SqxEm':function(_0x3431bf,_0x1159cd){return _0x3431bf===_0x1159cd;},'PoOPC':function(_0x4a26ee,_0x9ed62b){return _0x4a26ee(_0x9ed62b);}};if(!_0x55f593||_0x2636a1[_0x1ba8df(0x212)](_0x55f593['length'],0x0))return 0x0;const _0x204c92=[];for(const _0x496aa2 of _0x55f593){const _0x3296f2=path[_0x1ba8df(0x1d6)]('.',_0x496aa2);try{const _0x5a7638=this[_0x1ba8df(0x1c2)](_0x3296f2);_0x5a7638['map'](_0x536452=>{const _0x5a890b=_0x1ba8df;!_0x204c92[_0x536452[_0x5a890b(0x1bb)]]&&(_0x204c92[_0x536452[_0x5a890b(0x1bb)]]=0x0),_0x204c92[_0x536452[_0x5a890b(0x1bb)]]+=_0x536452['duration'];});}catch(_0x5d4fcd){_0x2636a1[_0x1ba8df(0x1ca)](debug,_0x1ba8df(0x1c1)+_0x5d4fcd[_0x1ba8df(0x22f)]());}}const _0x36c1e9=_0x5cb808[_0x1ba8df(0x1da)]((_0xcf70f5,_0x3e1a6b)=>{const _0x44a70e=_0x1ba8df;return _0x2636a1[_0x44a70e(0x217)](_0x204c92[_0x3e1a6b],_0x2636a1[_0x44a70e(0x1cc)](_0xcf70f5,0x0));},0x0);return _0x2636a1[_0x1ba8df(0x1ca)](debug,'Time\x20for\x20'+_0x5cb808+'\x20for\x20all\x20processes\x20is\x20'+_0x36c1e9),_0x36c1e9;}static[a75_0x1afd9a(0x1c2)](_0x2a7336){const _0x40157f=a75_0x1afd9a;if(!fs['existsSync'](_0x2a7336))return[];return JSON[_0x40157f(0x232)](fs['readFileSync'](_0x2a7336)['toString']());}static async[a75_0x1afd9a(0x1ea)](_0x3d420a='performance-own.html',_0x109105=null){const _0xe8c1d8=a75_0x1afd9a,_0x2324e0={'DsAuc':function(_0x5524d9,_0x4c7bad){return _0x5524d9(_0x4c7bad);},'thrql':function(_0x2654e6,_0x18979){return _0x2654e6(_0x18979);},'CGhxD':function(_0x5568cd,_0x15431f){return _0x5568cd(_0x15431f);}};if(!this[_0xe8c1d8(0x1e1)])return;await _0x2324e0[_0xe8c1d8(0x1f8)](sleep,0x1e),this[_0xe8c1d8(0x1f6)]['disconnect'](),this[_0xe8c1d8(0x1e1)]=![],this['generateJSON'](this[_0xe8c1d8(0x1f5)]);const _0x174057=this[_0xe8c1d8(0x1e0)](this[_0xe8c1d8(0x1f5)]),_0x4a479f=path[_0xe8c1d8(0x1d6)](process[_0xe8c1d8(0x1fb)](),_0x3d420a);fs[_0xe8c1d8(0x1ef)](_0x4a479f,_0x174057,_0x25fcc7=>{const _0x2bd1a5=_0xe8c1d8;if(_0x25fcc7){_0x2324e0[_0x2bd1a5(0x1ec)](debug,_0x2bd1a5(0x1ff)+_0x25fcc7[_0x2bd1a5(0x22f)]());return;}_0x2324e0[_0x2bd1a5(0x227)](debug,'Performance\x20report\x20is\x20at\x20'+_0x4a479f);});if(_0x109105)return this[_0xe8c1d8(0x1d2)](this[_0xe8c1d8(0x1f5)],_0x109105);}static[a75_0x1afd9a(0x1e0)](_0xa7ace8){const _0x25065b=a75_0x1afd9a,_0x538e4f={};_0x538e4f[_0x25065b(0x235)]=_0x25065b(0x1c0),_0x538e4f['RcNlz']='<h1>Performance\x20Report</h1>',_0x538e4f[_0x25065b(0x207)]=_0x25065b(0x1ba),_0x538e4f[_0x25065b(0x1ed)]='</tbody></table></body></html>';const _0x348201=_0x538e4f;let _0x1bbeb7=_0x348201['XETaK'];return _0x1bbeb7+=_0x348201[_0x25065b(0x1c4)],_0x1bbeb7+=_0x348201[_0x25065b(0x207)],_0xa7ace8['forEach'](_0xd22fbc=>{const _0x16f59e=_0x25065b;_0x1bbeb7+=_0x16f59e(0x1bf)+_0xd22fbc['name']+_0x16f59e(0x21d)+_0xd22fbc[_0x16f59e(0x1ee)]+'</td></tr>';}),_0x1bbeb7+=_0x348201['iAvhb'],_0x1bbeb7;}static[a75_0x1afd9a(0x1cd)](_0x5a001b){const _0x3acb1b=a75_0x1afd9a;if(!this[_0x3acb1b(0x214)])return;const _0x477878={};_0x5a001b[_0x3acb1b(0x21c)](_0x2c3cac=>{const _0x21416b=_0x3acb1b;!_0x477878[_0x2c3cac[_0x21416b(0x1bb)]]&&(_0x477878[_0x2c3cac[_0x21416b(0x1bb)]]=0x0),_0x477878[_0x2c3cac[_0x21416b(0x1bb)]]+=_0x2c3cac[_0x21416b(0x1ee)];});const _0x33b7f9=Object['entries'](_0x477878)[_0x3acb1b(0x21c)](([_0x5d6bb0,_0xaddc56])=>{const _0x1fe568=_0x3acb1b,_0x4d4e7e={};return _0x4d4e7e['name']=_0x5d6bb0,_0x4d4e7e[_0x1fe568(0x1ee)]=_0xaddc56,_0x4d4e7e;});fs[_0x3acb1b(0x1f7)](this['jsonReportFileName'],JSON[_0x3acb1b(0x1fc)](_0x33b7f9));}static[a75_0x1afd9a(0x21e)](){const _0x53d197=a75_0x1afd9a,_0x8a45c8={};_0x8a45c8['OfBgs']=function(_0x1b3d20,_0x16b3a4){return _0x1b3d20===_0x16b3a4;},_0x8a45c8[_0x53d197(0x20d)]=_0x53d197(0x220);const _0x1ba162=_0x8a45c8;return!_0x1ba162['OfBgs'](process['env'][_0x53d197(0x21f)],_0x1ba162[_0x53d197(0x20d)]);}static[a75_0x1afd9a(0x230)](_0x204f2e,_0xf00aab,_0x118e7a=null,_0x21c47a=null){const _0x4ac80a=a75_0x1afd9a,_0x471bc6={};_0x471bc6[_0x4ac80a(0x1fe)]=function(_0x39c15f,_0x2b46bc){return _0x39c15f+_0x2b46bc;},_0x471bc6[_0x4ac80a(0x1d3)]='-start',_0x471bc6[_0x4ac80a(0x224)]=function(_0x56e1cf,_0x1d1708){return _0x56e1cf+_0x1d1708;},_0x471bc6[_0x4ac80a(0x206)]='-end',_0x471bc6[_0x4ac80a(0x1df)]=function(_0x4b2576,_0x332b94){return _0x4b2576 instanceof _0x332b94;};const _0x55d199=_0x471bc6;try{if(this[_0x4ac80a(0x1e1)]&&this[_0x4ac80a(0x21e)]()){let _0x185296=_0x204f2e;_0x118e7a&&(_0x185296=_0x204f2e+'['+JSON['stringify'](_0x118e7a)+']');const _0xe50f73=_0x55d199[_0x4ac80a(0x1fe)](_0x185296,_0x55d199[_0x4ac80a(0x1d3)]),_0x568fbb=_0x55d199[_0x4ac80a(0x224)](_0x185296,_0x55d199[_0x4ac80a(0x206)]);performance[_0x4ac80a(0x1d0)](_0xe50f73);const _0x1a35e8=_0xf00aab[_0x4ac80a(0x1e7)](null,_0x21c47a);if(_0x55d199['obHPX'](_0x1a35e8,Promise))return new Promise((_0x37f4b5,_0x170391)=>{const _0x3db0d2=_0x4ac80a;_0x1a35e8[_0x3db0d2(0x20a)](_0x1f5f70=>_0x37f4b5(_0x1f5f70))[_0x3db0d2(0x1be)](_0x4665b8=>_0x170391(_0x4665b8))[_0x3db0d2(0x1dd)](()=>{const _0x58702c=_0x3db0d2;performance[_0x58702c(0x1d0)](_0x568fbb),performance[_0x58702c(0x230)](_0x185296,_0xe50f73,_0x568fbb);});});;return performance['mark'](_0x568fbb),performance['measure'](_0x185296,_0xe50f73,_0x568fbb),_0x1a35e8;};return _0xf00aab[_0x4ac80a(0x1e7)](null,_0x21c47a);}catch(_0x396a80){return _0xf00aab[_0x4ac80a(0x1e7)](null,_0x21c47a);}}static[a75_0x1afd9a(0x1c8)](_0x387115,_0x36f74b){const _0x276ef8=this;return function(){const _0x5a98b1=a75_0x2c73,_0x7c59ef=[_0x387115,_0x36f74b,null][_0x5a98b1(0x1d8)](arguments);return _0x276ef8['measure'][_0x5a98b1(0x1e7)](_0x276ef8,_0x7c59ef);};}static[a75_0x1afd9a(0x20c)](){const _0x33fe62=a75_0x1afd9a,_0x13d5c6={};_0x13d5c6[_0x33fe62(0x225)]=function(_0x50fb33,_0x3a6782){return _0x50fb33/_0x3a6782;},_0x13d5c6[_0x33fe62(0x204)]=function(_0x5e309f,_0x306bc9){return _0x5e309f+_0x306bc9;},_0x13d5c6[_0x33fe62(0x201)]=function(_0x37dbe6,_0x306433){return _0x37dbe6*_0x306433;},_0x13d5c6[_0x33fe62(0x222)]=function(_0x40b639,_0x9dc6e7){return _0x40b639+_0x9dc6e7;};const _0x10fd90=_0x13d5c6,_0x1f550d=/(^.*)\[(.*)\]$/,_0x2e310a={},_0x5f206d={};for(const _0x445ae1 of this[_0x33fe62(0x221)]){const _0xd76daf=_0x445ae1[_0x33fe62(0x1bb)][_0x33fe62(0x1f1)](_0x1f550d),_0xd8af04={};_0xd8af04[_0x33fe62(0x1bb)]=_0x445ae1[_0x33fe62(0x1bb)],_0xd8af04[_0x33fe62(0x1ee)]=_0x445ae1[_0x33fe62(0x1ee)]||0x0;const _0x333881=_0xd8af04;_0xd76daf&&(_0x333881[_0x33fe62(0x1bb)]=_0xd76daf[0x1],_0x333881[_0x33fe62(0x213)]=JSON[_0x33fe62(0x232)](_0xd76daf[0x2]));if(_0x2e310a[_0x333881['name']]){const _0x3b6538=_0x2e310a[_0x333881[_0x33fe62(0x1bb)]],_0xf4bb60=_0x5f206d[_0x333881['name']];_0x2e310a[_0x333881[_0x33fe62(0x1bb)]][_0x33fe62(0x1ee)]=_0x10fd90[_0x33fe62(0x225)](_0x10fd90['shSFr'](_0x10fd90[_0x33fe62(0x201)](_0x3b6538[_0x33fe62(0x1ee)],_0xf4bb60),_0x333881[_0x33fe62(0x1ee)]),_0x10fd90['GOSTv'](0x1,_0xf4bb60)),_0x5f206d[_0x333881[_0x33fe62(0x1bb)]]++;}else _0x2e310a[_0x333881[_0x33fe62(0x1bb)]]=_0x333881,_0x5f206d[_0x333881['name']]=0x1;}return Object['values'](_0x2e310a);}static[a75_0x1afd9a(0x1c5)](){const _0x4012c9=a75_0x1afd9a,_0x4e557f={};_0x4e557f[_0x4012c9(0x1e5)]=function(_0x32e7f8,_0x363d32){return _0x32e7f8===_0x363d32;},_0x4e557f[_0x4012c9(0x22e)]=function(_0x3f97b0,_0x31ef12){return _0x3f97b0+_0x31ef12;};const _0x17693e=_0x4e557f;if(_0x17693e[_0x4012c9(0x1e5)](this[_0x4012c9(0x221)][_0x4012c9(0x1ce)],0x0))return;const _0x17e5b4=this[_0x4012c9(0x20c)](),_0x411e54=JSON[_0x4012c9(0x1fc)](_0x17e5b4),_0x3405f7=_0x17693e[_0x4012c9(0x22e)](_0x411e54['slice'](0x1,-0x1),',');fs['appendFileSync'](this[_0x4012c9(0x214)],_0x3405f7);}static[a75_0x1afd9a(0x219)](){const _0x14676c=a75_0x1afd9a,_0x558b6e={};_0x558b6e[_0x14676c(0x1e4)]=function(_0x1c7c9a,_0x22eb2e){return _0x1c7c9a===_0x22eb2e;},_0x558b6e[_0x14676c(0x202)]=function(_0x101bf5,_0xbfd3cf){return _0x101bf5>_0xbfd3cf;};const _0x41e31c=_0x558b6e;if(!this[_0x14676c(0x1e1)]||_0x41e31c[_0x14676c(0x1e4)](this[_0x14676c(0x221)]['length'],0x0))return[];if(!fs['existsSync'](this[_0x14676c(0x214)]))return this[_0x14676c(0x221)];let _0x24337d=fs[_0x14676c(0x218)](this['jsonReportFileName'])[_0x14676c(0x22f)]();_0x24337d='['+_0x24337d[_0x14676c(0x22c)](0x0,-0x1)+']';let _0x4d20a5=JSON['parse'](_0x24337d);return _0x41e31c[_0x14676c(0x202)](this[_0x14676c(0x221)][_0x14676c(0x1ce)],0x0)&&(_0x4d20a5=_0x4d20a5['concat'](this[_0x14676c(0x20c)]())),this['_observer'][_0x14676c(0x1d4)](),fs[_0x14676c(0x223)](this[_0x14676c(0x214)]),_0x4d20a5;}static[a75_0x1afd9a(0x200)](){const _0x5663fa=a75_0x1afd9a,_0x80efdf={};_0x80efdf[_0x5663fa(0x20b)]=function(_0x3e9f84,_0x153310){return _0x3e9f84===_0x153310;},_0x80efdf[_0x5663fa(0x1f3)]=function(_0x51a628,_0x807115){return _0x51a628+_0x807115;};const _0x1c81d6=_0x80efdf;if(_0x1c81d6[_0x5663fa(0x20b)](this[_0x5663fa(0x1e6)][_0x5663fa(0x1ce)],0x0))return;const _0x25107d=JSON['stringify'](this[_0x5663fa(0x1e6)]),_0x201b59=_0x1c81d6[_0x5663fa(0x1f3)](_0x25107d['slice'](0x1,-0x1),',');fs[_0x5663fa(0x1dc)](this[_0x5663fa(0x1d9)],_0x201b59);}static[a75_0x1afd9a(0x205)](){const _0x46d9a7=a75_0x1afd9a,_0x5aafe6={};_0x5aafe6[_0x46d9a7(0x215)]=function(_0x4e29b5,_0x1655ec){return _0x4e29b5>_0x1655ec;};const _0x51e44e=_0x5aafe6;if(!fs['existsSync'](this[_0x46d9a7(0x1f2)]))return this['_errorEvents'];let _0x1f679c=fs[_0x46d9a7(0x218)](this[_0x46d9a7(0x1f2)])[_0x46d9a7(0x22f)]();_0x1f679c='['+_0x1f679c[_0x46d9a7(0x22c)](0x0,-0x1)+']';let _0x1aacb6=JSON[_0x46d9a7(0x232)](_0x1f679c);return _0x51e44e[_0x46d9a7(0x215)](this[_0x46d9a7(0x1e6)][_0x46d9a7(0x1ce)],0x0)&&(_0x1aacb6=_0x1aacb6[_0x46d9a7(0x1d8)](this['_errorEvents'])),fs['unlinkSync'](this['errorReportFileName']),_0x1aacb6;}static[a75_0x1afd9a(0x20e)](_0x2ccfaa){const _0x3e6cba=a75_0x1afd9a;if(!this[_0x3e6cba(0x21e)]())return;this[_0x3e6cba(0x1e6)][_0x3e6cba(0x1d1)]({'message':_0x2ccfaa['message'],'trace':_0x2ccfaa[_0x3e6cba(0x21b)],'code':_0x2ccfaa[_0x3e6cba(0x208)]||null,'time':new Date()});}static[a75_0x1afd9a(0x226)](){const _0x45278a=a75_0x1afd9a,_0x1fee83={};_0x1fee83[_0x45278a(0x1fa)]=_0x45278a(0x233);const _0x4bdc7c=_0x1fee83;try{if(!this[_0x45278a(0x21e)]())return;this[_0x45278a(0x1f6)]['disconnect'](),this['pushPerfMeasures'](),this[_0x45278a(0x200)]();}catch{logger[_0x45278a(0x22d)](_0x4bdc7c[_0x45278a(0x1fa)]);}}static[a75_0x1afd9a(0x209)](){const _0xecb24f=a75_0x1afd9a,_0x2eb3a3=this['finalizePerfMeasures'](),_0x1e039c=this[_0xecb24f(0x205)]();if(!this[_0xecb24f(0x21e)]()){const _0x5161e0={};return _0x5161e0[_0xecb24f(0x234)]=[],_0x5161e0[_0xecb24f(0x211)]=[],_0x5161e0;}const _0x37b8a1={};return _0x37b8a1[_0xecb24f(0x234)]=_0x2eb3a3,_0x37b8a1[_0xecb24f(0x211)]=_0x1e039c,_0x37b8a1;}}function a75_0x2a59(){const _0x33d6=['calculateTimeFromEvents','CiBHy','disconnect','JTVbQ','join','hZuHU','concat','errorFile','reduce','kHtea','appendFileSync','finally','77RIgbxN','obHPX','generateHTMLReport','started','entryTypes','exports','NnmMH','CHlca','_errorEvents','apply','1048jwMuZe','qgIhX','stopAndGenerate','ktppI','DsAuc','iAvhb','duration','writeFile','473655QTdnXO','match','errorReportFileName','diYNg','30501fsDGcS','_events','_observer','writeFileSync','CGhxD','buffered','jXxEH','cwd','stringify','forEach','IjnjO','Error\x20in\x20writing\x20html\x20','pushErrors','YcgTg','tgkll','path','shSFr','finalizeErrors','TBHJT','cSqKt','code','finalize','then','Psuyh','getCleanedPerfEvents','onhLP','captureError','getPerformance','12601490mUHSjV','errors','SqxEm','meta','jsonReportFileName','TNzlz','getEntries','gfLVw','readFileSync','finalizePerfMeasures','96690UolgID','stack','map','</td><td>','isEnabled','BROWSERSTACK_SDK_INSTRUMENTATION','false','_measureEvents','GOSTv','unlinkSync','EgAQP','xNfJB','stopMonitoring','thrql','DzSjs','1934632dPZlgE','60sAwgmg','./test-observability/utils','slice','debug','wlPoB','toString','measure','Jrrcw','parse','Error\x20stopping\x20monitoring','measures','XETaK','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','name','yuODJ','observe','catch','<tr><td>','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','Error\x20in\x20doing\x20csv\x20operations:\x20','getEventsFromJSON','performance-report.json','RcNlz','pushPerfMeasures','./logger','15784AquIRN','measureWrapper','perf_hooks','PoOPC','error-report.json','MjHDe','generateJSON','length','162444ZIDIPg','mark','push'];a75_0x2a59=function(){return _0x33d6;};return a75_0x2a59();}module[a75_0x1afd9a(0x1e3)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x3c448d=a76_0xfa66;function a76_0xfa66(_0x1fb3d6,_0xc270b7){const _0x38a8fa=a76_0x38a8();return a76_0xfa66=function(_0xfa6614,_0x272024){_0xfa6614=_0xfa6614-0xa6;let _0x117d00=_0x38a8fa[_0xfa6614];return _0x117d00;},a76_0xfa66(_0x1fb3d6,_0xc270b7);}(function(_0x2fca3b,_0x1e64df){const _0x382a6a=a76_0xfa66,_0x3f1029=_0x2fca3b();while(!![]){try{const _0x532bb9=parseInt(_0x382a6a(0xb9))/0x1+parseInt(_0x382a6a(0xae))/0x2+parseInt(_0x382a6a(0xbe))/0x3*(-parseInt(_0x382a6a(0xb3))/0x4)+-parseInt(_0x382a6a(0xbd))/0x5+-parseInt(_0x382a6a(0xc2))/0x6+parseInt(_0x382a6a(0xc7))/0x7+-parseInt(_0x382a6a(0xa6))/0x8*(-parseInt(_0x382a6a(0xc6))/0x9);if(_0x532bb9===_0x1e64df)break;else _0x3f1029['push'](_0x3f1029['shift']());}catch(_0x27c032){_0x3f1029['push'](_0x3f1029['shift']());}}}(a76_0x38a8,0x70a5a));const http=require('http'),https=require('https'),monkeypatch=require(a76_0x3c448d(0xc5));function spy(_0x69ad9c){const _0x546bb1=a76_0x3c448d,_0x606af3={'WbEGa':function(_0x47d08a,_0x5087f3,_0x2dce2a){return _0x47d08a(_0x5087f3,_0x2dce2a);},'PVjeB':function(_0x308f70,_0x48a10b){return _0x308f70-_0x48a10b;},'TaTEm':_0x546bb1(0xba),'OQPVb':function(_0x401eea,..._0x492eb0){return _0x401eea(..._0x492eb0);},'nWQKY':_0x546bb1(0xa8),'npHbj':'socket','OhMkd':function(_0x687140,_0x1ef688,_0x1078b4,_0x59e9c3){return _0x687140(_0x1ef688,_0x1078b4,_0x59e9c3);},'frcmg':_0x546bb1(0xb2),'YUluL':function(_0x5aea1f,_0x2527db,_0x18a8e5,_0x1cc2d1){return _0x5aea1f(_0x2527db,_0x18a8e5,_0x1cc2d1);},'NSykX':_0x546bb1(0xb4)},_0x4b66bc=(_0x4ac17e,_0xfd1772,_0x4f651f)=>{const _0x4a5150=_0x546bb1,_0x3ad712=_0x606af3[_0x4a5150(0xbf)](_0x4ac17e,_0xfd1772,_0x4f651f);let _0x21aea0=Date[_0x4a5150(0xa7)](),_0xfc9df0;const _0x1a51f3=_0x5559bc=>{const _0x27bfa5=_0x4a5150,_0x53d8a2={};_0x53d8a2['host']=_0xfd1772[_0x27bfa5(0xac)]||_0xfd1772[_0x27bfa5(0xb0)],_0x53d8a2[_0x27bfa5(0xc0)]=_0xfd1772['path'],_0x53d8a2['method']=_0xfd1772[_0x27bfa5(0xaa)],_0x53d8a2[_0x27bfa5(0xc4)]=_0xfd1772['headers'],_0x606af3[_0x27bfa5(0xbf)](_0x69ad9c,_0x5559bc,_0x53d8a2);};return _0x3ad712['once'](_0x606af3[_0x4a5150(0xad)],_0x309aaa=>{const _0xfbae8c=_0x4a5150,_0x4ce5b3=_0x606af3['PVjeB'](Date[_0xfbae8c(0xa7)](),_0x21aea0),_0x5259e0={};_0x5259e0['hostname']=_0xfd1772[_0xfbae8c(0xac)]||_0xfd1772[_0xfbae8c(0xb0)],_0x5259e0[_0xfbae8c(0xc0)]=_0xfd1772[_0xfbae8c(0xc0)],_0x5259e0[_0xfbae8c(0xaa)]=_0xfd1772[_0xfbae8c(0xaa)],_0x5259e0[_0xfbae8c(0xc4)]=_0xfd1772[_0xfbae8c(0xc4)],_0x5259e0[_0xfbae8c(0xa9)]=_0x309aaa[_0xfbae8c(0xc8)],_0x5259e0[_0xfbae8c(0xb5)]=_0x4ce5b3,_0x606af3[_0xfbae8c(0xbf)](_0x69ad9c,null,_0x5259e0),_0xfc9df0[_0xfbae8c(0xbb)](_0x606af3[_0xfbae8c(0xb1)],_0x1a51f3);}),_0x3ad712['on'](_0x606af3['npHbj'],_0x49d1f9=>{const _0x5224bd=_0x4a5150;_0xfc9df0=_0x49d1f9,_0x49d1f9['once'](_0x606af3[_0x5224bd(0xb1)],_0x1a51f3);}),_0x606af3[_0x4a5150(0xbc)](monkeypatch,_0x3ad712,_0x606af3['frcmg'],(_0x5a3c88,..._0x264806)=>{const _0xfaded6=_0x4a5150;_0x21aea0=Date['now'](),_0x606af3[_0xfaded6(0xb7)](_0x5a3c88,..._0x264806);}),_0x3ad712;};_0x606af3[_0x546bb1(0xab)](monkeypatch,http,_0x606af3['NSykX'],_0x4b66bc),_0x606af3['YUluL'](monkeypatch,https,_0x606af3[_0x546bb1(0xc3)],_0x4b66bc);}function restore(){const _0x3cbc09=a76_0x3c448d;http['request'][_0x3cbc09(0xc1)](),https['request']['unpatch']();}const a76_0x5c447f={};a76_0x5c447f[a76_0x3c448d(0xb8)]=spy,a76_0x5c447f[a76_0x3c448d(0xb6)]=restore,module[a76_0x3c448d(0xaf)]=a76_0x5c447f;function a76_0x38a8(){const _0xa42e6c=['1696878FbjWCM','exports','hostname','TaTEm','end','3542384QWEANI','request','duration_ms','restore','OQPVb','spy','277137GLmWcZ','error','removeListener','OhMkd','846790eIhMfJ','3eDbNJE','WbEGa','path','unpatch','3749310vrQmTD','NSykX','headers','monkeypatch','2057877MXISpB','5509084xJtoIy','statusCode','8UqLKYR','now','response','status_code','method','YUluL','host','nWQKY'];a76_0x38a8=function(){return _0xa42e6c;};return a76_0x38a8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a77_0x2715(){const _0x5ba471=['175CMStVF','eCpwu','6178000kHkPyZ','4731243PrWfrq','Jhyvx','https:','6855438aAcRtx','vMWlI','KJnon','protocol','request','30UrpcjS','Rrjll','5412951audKJL','GTtsL','exports','215536tyEWeZ','hasOwnProperty','2KxJWKn','call','agent','keepAlive','1520158gbDgXb','globalAgent','NIAWl','TpURZ','2449053BnmkVN','eGABr','pyRbe','keepAliveMsecs','Agent','5SNoBYP','prototype'];a77_0x2715=function(){return _0x5ba471;};return a77_0x2715();}const a77_0x35cd19=a77_0x51d2;function a77_0x51d2(_0x22b55c,_0xdc9a84){const _0x27151b=a77_0x2715();return a77_0x51d2=function(_0x51d213,_0x63c3e2){_0x51d213=_0x51d213-0xdd;let _0x92e348=_0x27151b[_0x51d213];return _0x92e348;},a77_0x51d2(_0x22b55c,_0xdc9a84);}(function(_0x23f529,_0x340fcf){const _0x35b71e=a77_0x51d2,_0x163799=_0x23f529();while(!![]){try{const _0x13b099=-parseInt(_0x35b71e(0xf5))/0x1*(-parseInt(_0x35b71e(0xf9))/0x2)+parseInt(_0x35b71e(0xf0))/0x3+-parseInt(_0x35b71e(0xe5))/0x4+-parseInt(_0x35b71e(0xe1))/0x5*(parseInt(_0x35b71e(0xe9))/0x6)+-parseInt(_0x35b71e(0xe3))/0x7*(-parseInt(_0x35b71e(0xf3))/0x8)+-parseInt(_0x35b71e(0xfd))/0x9*(parseInt(_0x35b71e(0xee))/0xa)+parseInt(_0x35b71e(0xe6))/0xb;if(_0x13b099===_0x340fcf)break;else _0x163799['push'](_0x163799['shift']());}catch(_0x5f4d1a){_0x163799['push'](_0x163799['shift']());}}}(a77_0x2715,0xe1c2a),module[a77_0x35cd19(0xf2)]=function(){const _0x2cd431=a77_0x35cd19,_0x10ea0f={'GTtsL':function(_0x396942,_0x30cf9d){return _0x396942===_0x30cf9d;},'Jhyvx':_0x2cd431(0xe8),'TpURZ':_0x2cd431(0xf7),'eGABr':function(_0x24de8e,_0x1dc5d1,_0x231785){return _0x24de8e(_0x1dc5d1,_0x231785);},'pyRbe':function(_0x2811bf,_0x9811af,_0x2ac318){return _0x2811bf(_0x9811af,_0x2ac318);},'Rrjll':function(_0x1cf38d,_0x5aba4c){return _0x1cf38d(_0x5aba4c);},'NIAWl':'http','KJnon':'https','vMWlI':function(_0x1eb639,_0x564e6a){return _0x1eb639*_0x564e6a;},'eCpwu':_0x2cd431(0xf8)},_0x120a69=_0x10ea0f[_0x2cd431(0xef)](require,_0x10ea0f[_0x2cd431(0xfb)]),_0x5610c8=_0x10ea0f['Rrjll'](require,_0x10ea0f[_0x2cd431(0xeb)]),_0x42a315=_0x10ea0f[_0x2cd431(0xea)](0x1e,0x3e8);if(_0x120a69[_0x2cd431(0xfa)]&&Object[_0x2cd431(0xe2)][_0x2cd431(0xf4)][_0x2cd431(0xf6)](_0x120a69[_0x2cd431(0xfa)],_0x10ea0f[_0x2cd431(0xe4)]))_0x120a69[_0x2cd431(0xfa)][_0x2cd431(0xf8)]=!![],_0x5610c8[_0x2cd431(0xfa)][_0x2cd431(0xf8)]=!![],_0x120a69['globalAgent']['keepAliveMsecs']=_0x42a315,_0x5610c8[_0x2cd431(0xfa)]['keepAliveMsecs']=_0x42a315;else{const _0x10909e={};_0x10909e[_0x2cd431(0xf8)]=!![],_0x10909e[_0x2cd431(0xdf)]=_0x42a315;const _0x11051c=new _0x120a69[(_0x2cd431(0xe0))](_0x10909e),_0x1e9dfa={};_0x1e9dfa[_0x2cd431(0xf8)]=!![],_0x1e9dfa[_0x2cd431(0xdf)]=_0x42a315;const _0x34c626=new _0x5610c8['Agent'](_0x1e9dfa),_0x543dde=_0x120a69['request'],_0x255a3b=_0x5610c8[_0x2cd431(0xed)];_0x120a69[_0x2cd431(0xed)]=function(_0x39215f,_0x228317){const _0x357380=_0x2cd431;if(_0x10ea0f[_0x357380(0xf1)](_0x39215f[_0x357380(0xec)],_0x10ea0f[_0x357380(0xe7)]))return _0x39215f[_0x10ea0f[_0x357380(0xfc)]]=_0x34c626,_0x10ea0f[_0x357380(0xdd)](_0x255a3b,_0x39215f,_0x228317);return _0x39215f[_0x10ea0f[_0x357380(0xfc)]]=_0x11051c,_0x10ea0f[_0x357380(0xde)](_0x543dde,_0x39215f,_0x228317);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a78_0x46db2b=a78_0x2d41;function a78_0x5aa1(){var _0x5920d8=['617698MSFHSQ','api/v1/screenshots','10629SJkVBP','cucumber','891260QmZNEB','7ChUPIm','Playwright','MOCHA','1623234iIBKyD','mocha','132hOShsr','codeceptjs','api/v1/event','9SyIRLS','jest','1tLtlav','assign','14946250JEVyxI','141940KYlbVH','3589512GhzDqd','CUCUMBER','CODECEPT'];a78_0x5aa1=function(){return _0x5920d8;};return a78_0x5aa1();}(function(_0x31d9f5,_0xcc775e){var _0x5ff30e=a78_0x2d41,_0x33dd54=_0x31d9f5();while(!![]){try{var _0x429c0a=parseInt(_0x5ff30e(0xc0))/0x1*(-parseInt(_0x5ff30e(0xc7))/0x2)+parseInt(_0x5ff30e(0xc9))/0x3*(-parseInt(_0x5ff30e(0xbb))/0x4)+parseInt(_0x5ff30e(0xc3))/0x5+-parseInt(_0x5ff30e(0xb9))/0x6*(parseInt(_0x5ff30e(0xcc))/0x7)+-parseInt(_0x5ff30e(0xc4))/0x8*(parseInt(_0x5ff30e(0xbe))/0x9)+parseInt(_0x5ff30e(0xcb))/0xa+parseInt(_0x5ff30e(0xc2))/0xb;if(_0x429c0a===_0xcc775e)break;else _0x33dd54['push'](_0x33dd54['shift']());}catch(_0x204663){_0x33dd54['push'](_0x33dd54['shift']());}}}(a78_0x5aa1,0x50e04));var a78_0x25fdda={};function a78_0x2d41(_0x5d4ce9,_0x2b1091){var _0x5aa110=a78_0x5aa1();return a78_0x2d41=function(_0x2d41c7,_0x752729){_0x2d41c7=_0x2d41c7-0xb7;var _0x19b882=_0x5aa110[_0x2d41c7];return _0x19b882;},a78_0x2d41(_0x5d4ce9,_0x2b1091);}a78_0x25fdda['PLAYWRIGHT']=a78_0x46db2b(0xb7),a78_0x25fdda[a78_0x46db2b(0xb8)]=a78_0x46db2b(0xba),a78_0x25fdda[a78_0x46db2b(0xc6)]=a78_0x46db2b(0xbc),a78_0x25fdda['JEST']=a78_0x46db2b(0xbf),a78_0x25fdda[a78_0x46db2b(0xc5)]=a78_0x46db2b(0xca),module['exports']={'consoleHolder':Object[a78_0x46db2b(0xc1)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':'https://collector-observability.browserstack.com','EVENT_ENDPOINT':a78_0x46db2b(0xbd),'BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':a78_0x46db2b(0xc8),'DEFAULT_WAIT_TIMEOUT_FOR_PENDING_UPLOADS':0x1388,'DEFAULT_WAIT_INTERVAL_FOR_PENDING_UPLOADS':0x64,'DEFAULT_WAIT_INTERVAL_FOR_BUILD_STATUS':0x1f4,'TEMP_STORE_DIR_NAME':'.obs_test_details','FRAMEWORKS':a78_0x25fdda};
|