browserstack-node-sdk 1.33.7 → 1.34.1
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/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 -0
- 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/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/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
|
-
|
|
1
|
+
const a63_0x4ad151=a63_0x2ba3;(function(_0x274c09,_0x566993){const _0x563423=a63_0x2ba3,_0x242d7d=_0x274c09();while(!![]){try{const _0x173e3b=parseInt(_0x563423(0x93))/0x1+-parseInt(_0x563423(0xb4))/0x2*(parseInt(_0x563423(0x98))/0x3)+-parseInt(_0x563423(0xab))/0x4+parseInt(_0x563423(0x9d))/0x5*(parseInt(_0x563423(0x9e))/0x6)+-parseInt(_0x563423(0xb0))/0x7+parseInt(_0x563423(0xa7))/0x8+parseInt(_0x563423(0xaf))/0x9;if(_0x173e3b===_0x566993)break;else _0x242d7d['push'](_0x242d7d['shift']());}catch(_0x42df25){_0x242d7d['push'](_0x242d7d['shift']());}}}(a63_0x1dde,0x78a05));const winston=require(a63_0x4ad151(0xac)),os=require('os'),fs=require('fs'),path=require(a63_0x4ad151(0x90)),logDir=a63_0x4ad151(0xa3);!fs[a63_0x4ad151(0xa6)](logDir)&&fs[a63_0x4ad151(0x9a)](logDir);const a63_0x20d5e6={};a63_0x20d5e6[a63_0x4ad151(0xaa)]=a63_0x4ad151(0x95);function a63_0x2ba3(_0x4812e4,_0x5af55e){const _0x1ddeea=a63_0x1dde();return a63_0x2ba3=function(_0x2ba34e,_0x3474db){_0x2ba34e=_0x2ba34e-0x8f;let _0x508489=_0x1ddeea[_0x2ba34e];return _0x508489;},a63_0x2ba3(_0x4812e4,_0x5af55e);}const transports={'loggerConsole':new winston[(a63_0x4ad151(0x99))][(a63_0x4ad151(0xa0))](a63_0x20d5e6),'loggerFile':new winston[(a63_0x4ad151(0x99))]['File']({'filename':path[a63_0x4ad151(0x9b)](logDir,a63_0x4ad151(0x8f))}),'debugLoggerFile':new winston[(a63_0x4ad151(0x99))][(a63_0x4ad151(0xa5))]({'filename':path['join'](logDir,a63_0x4ad151(0x9f)),'level':a63_0x4ad151(0xa8)})},a63_0xdcf73c={};a63_0xdcf73c[a63_0x4ad151(0x91)]=a63_0x4ad151(0xa4);const a63_0xb6f43d={};function a63_0x1dde(){const _0x7be8ce=['existsSync','5567256LzTcxq','silly','createLogger','name','636044ihpFSX','winston','loggerFile','fileLogger','3997278Vsbsyd','4465832WNgsQC','debugLoggerFile','combine','timestamp','38fbZYBB','colorize','/usage.log','path','format','loggerConsole','625401jQZNSl','message','console.info','winstonLogger','\x20-\x20','112482InBnnC','transports','mkdirSync','join','logDir','470nUkYmu','15192bCbThD','/usage-debug.log','Console','printf','level','log','YYYY-MM-DD\x20HH:mm:ss','File'];a63_0x1dde=function(){return _0x7be8ce;};return a63_0x1dde();}a63_0xb6f43d['level']=!![];const winstonLoggerParams={'format':winston[a63_0x4ad151(0x91)]['combine'](winston[a63_0x4ad151(0x91)][a63_0x4ad151(0xb3)](a63_0xdcf73c),winston[a63_0x4ad151(0x91)][a63_0x4ad151(0xb5)](a63_0xb6f43d),winston[a63_0x4ad151(0x91)][a63_0x4ad151(0xa1)](_0x4bfbc1=>_0x4bfbc1[a63_0x4ad151(0xb3)]+a63_0x4ad151(0x97)+_0x4bfbc1[a63_0x4ad151(0xa2)]+':\x20'+_0x4bfbc1[a63_0x4ad151(0x94)])),'transports':[transports[a63_0x4ad151(0x92)],transports[a63_0x4ad151(0xad)],transports[a63_0x4ad151(0xb1)]]},a63_0x11db8b={};a63_0x11db8b[a63_0x4ad151(0x91)]=a63_0x4ad151(0xa4);const a63_0x23a769={};a63_0x23a769[a63_0x4ad151(0xa2)]=!![];const winstonFileLoggerParams={'format':winston['format'][a63_0x4ad151(0xb2)](winston['format'][a63_0x4ad151(0xb3)](a63_0x11db8b),winston['format']['colorize'](a63_0x23a769),winston[a63_0x4ad151(0x91)][a63_0x4ad151(0xa1)](_0x5d0dc4=>_0x5d0dc4[a63_0x4ad151(0xa2)]+':\x20'+_0x5d0dc4['message'])),'transports':[transports[a63_0x4ad151(0xad)],transports[a63_0x4ad151(0xb1)]]};exports[a63_0x4ad151(0x96)]=new winston[(a63_0x4ad151(0xa9))](winstonLoggerParams),exports[a63_0x4ad151(0xae)]=new winston[(a63_0x4ad151(0xa9))](winstonFileLoggerParams),exports[a63_0x4ad151(0x9c)]=logDir,exports[a63_0x4ad151(0x99)]=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a64_0x39b8(_0x98ad4e,_0x5228d7){var _0x1ea30e=a64_0x1ea3();return a64_0x39b8=function(_0x39b8bf,_0x11b68b){_0x39b8bf=_0x39b8bf-0x193;var _0x251ece=_0x1ea30e[_0x39b8bf];return _0x251ece;},a64_0x39b8(_0x98ad4e,_0x5228d7);}var a64_0x31d428=a64_0x39b8;(function(_0x4d8f59,_0x33cd85){var _0x25bc3d=a64_0x39b8,_0xe73d2c=_0x4d8f59();while(!![]){try{var _0x2bd8e4=-parseInt(_0x25bc3d(0x193))/0x1+-parseInt(_0x25bc3d(0x1b7))/0x2*(-parseInt(_0x25bc3d(0x197))/0x3)+-parseInt(_0x25bc3d(0x1b5))/0x4*(-parseInt(_0x25bc3d(0x1b2))/0x5)+-parseInt(_0x25bc3d(0x1ad))/0x6*(-parseInt(_0x25bc3d(0x1a1))/0x7)+-parseInt(_0x25bc3d(0x19c))/0x8*(parseInt(_0x25bc3d(0x1ba))/0x9)+-parseInt(_0x25bc3d(0x19f))/0xa+parseInt(_0x25bc3d(0x19b))/0xb;if(_0x2bd8e4===_0x33cd85)break;else _0xe73d2c['push'](_0xe73d2c['shift']());}catch(_0x262e7a){_0xe73d2c['push'](_0xe73d2c['shift']());}}}(a64_0x1ea3,0x94b79),exports[a64_0x31d428(0x1ae)]=_0x49032b=>{var _0x41c792=a64_0x31d428,_0x1353b8={'icqeO':_0x41c792(0x1af),'JJRWU':function(_0x27843c,_0x54f1a8){return _0x27843c!==_0x54f1a8;},'GJWfL':_0x41c792(0x1b9),'UKETb':_0x41c792(0x1a0),'uxFJY':function(_0x2b408c,_0x54d31c){return _0x2b408c(_0x54d31c);}},_0x46801e=_0x1353b8[_0x41c792(0x1a2)][_0x41c792(0x1b1)]('|'),_0x29fb0b=0x0;while(!![]){switch(_0x46801e[_0x29fb0b++]){case'0':_0x49032b[_0x41c792(0x1a3)]=()=>{var _0x38f3f8=_0x41c792,_0xed6053={'cYJyb':_0x593bc3[_0x38f3f8(0x1a5)],'xzGKp':function(_0x13af77,_0xdd07c1){return _0x593bc3['HCpHE'](_0x13af77,_0xdd07c1);}};return new Promise(function(_0x3be6ca,_0x5cacbe){var _0x166d4e=_0x38f3f8;_0x49032b[_0x166d4e(0x1a4)]()[_0x166d4e(0x194)](_0x33ec25=>{var _0xa4bcb=_0x166d4e;process[_0xa4bcb(0x199)](_0xa4bcb(0x198)+process[_0xa4bcb(0x19e)],{'timestamp':new Date()['toISOString'](),'message':_0x33ec25,'kind':_0xed6053[_0xa4bcb(0x1a9)]}),_0xed6053['xzGKp'](_0x3be6ca,_0x33ec25);});});};continue;case'1':_0x49032b[_0x41c792(0x1a4)]=_0x49032b[_0x41c792(0x1a3)];continue;case'2':if(_0x1353b8['JJRWU'](process[_0x41c792(0x1aa)][_0x41c792(0x1ac)],_0x1353b8[_0x41c792(0x19d)]))return;continue;case'3':var _0x593bc3={'jjIeu':_0x1353b8[_0x41c792(0x1b6)],'HCpHE':function(_0xa49c28,_0x918fdc){var _0x14afd1=_0x41c792;return _0x1353b8[_0x14afd1(0x1a7)](_0xa49c28,_0x918fdc);}};continue;case'4':if(_0x49032b['patchScreenshot'])return;continue;case'5':_0x49032b['patchScreenshot']=!![];continue;}break;}},exports[a64_0x31d428(0x1a8)]=(_0x171761,_0x58f66f=null)=>{var _0x58b26b=a64_0x31d428,_0x5bb556={'sTCEK':_0x58b26b(0x195),'IfOsq':function(_0x462b34){return _0x462b34();},'dvfzc':function(_0x187cfa,_0x56fdbd){return _0x187cfa>_0x56fdbd;},'ZAAdw':function(_0x4e346a,_0x3d50fb){return _0x4e346a>_0x3d50fb;}},_0x2c8197=_0x5bb556['sTCEK'][_0x58b26b(0x1b1)]('|'),_0x16c02c=0x0;while(!![]){switch(_0x2c8197[_0x16c02c++]){case'0':_0x171761[_0x58b26b(0x1b3)]=!![];continue;case'1':_0x171761[_0x58b26b(0x1ab)]=_0x171761[_0x58b26b(0x196)];continue;case'2':if(_0x171761[_0x58b26b(0x1b3)])return;continue;case'3':var _0x2f60f4={'RytKJ':function(_0xdb77af){return _0x5bb556['IfOsq'](_0xdb77af);},'ZvyNj':function(_0x49e0a9,_0xfc8748){return _0x5bb556['dvfzc'](_0x49e0a9,_0xfc8748);},'XGPhO':function(_0x2e5f79,_0x57c4cf){var _0x27be47=_0x58b26b;return _0x5bb556[_0x27be47(0x1b4)](_0x2e5f79,_0x57c4cf);}};continue;case'4':_0x171761['quit']=()=>{var _0x32b1b8=_0x58b26b;if(_0x58f66f){_0x58f66f[_0x32b1b8(0x1b8)]+=0x1;if(_0x2f60f4[_0x32b1b8(0x1b0)](_0x58f66f[_0x32b1b8(0x1b8)],0x1))return _0x171761[_0x32b1b8(0x1ab)]();}else{_0x171761[_0x32b1b8(0x1b8)]+=0x1;if(_0x2f60f4[_0x32b1b8(0x1a6)](_0x171761[_0x32b1b8(0x1b8)],0x1))return _0x171761[_0x32b1b8(0x1ab)]();}return new Promise(function(_0x3eb8c9){var _0xd3a870=_0x32b1b8;_0x2f60f4[_0xd3a870(0x19a)](_0x3eb8c9);});};continue;}break;}});function a64_0x1ea3(){var _0x400053=['split','5ckMWPH','patchQuit','ZAAdw','1829876OSKbdX','UKETb','34876VDASXf','quitCount_','true','9VAZOhD','367289xCocWO','then','3|2|0|1|4','quit','147SJAjwz','bs:addLog:','emit','RytKJ','13956624PVXcrR','9486584VHtVbw','GJWfL','pid','4298870kpPYqC','TEST_SCREENSHOT','77wvekBJ','icqeO','takeScreenshot','initScreenshot','jjIeu','XGPhO','uxFJY','overrideQuit','cYJyb','env','initQuit','BS_TESTOPS_ALLOW_SCREENSHOTS','6234FYrvQR','overrideTakeScreenshot','3|2|4|5|1|0','ZvyNj'];a64_0x1ea3=function(){return _0x400053;};return a64_0x1ea3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a65_0x5ec023=a65_0x404a;(function(_0x4376ca,_0x647556){const _0x32f678=a65_0x404a,_0x543c19=_0x4376ca();while(!![]){try{const _0x34cf8d=parseInt(_0x32f678(0x87))/0x1+-parseInt(_0x32f678(0xb7))/0x2*(parseInt(_0x32f678(0x90))/0x3)+parseInt(_0x32f678(0xa7))/0x4*(parseInt(_0x32f678(0x76))/0x5)+parseInt(_0x32f678(0xa3))/0x6*(parseInt(_0x32f678(0x82))/0x7)+-parseInt(_0x32f678(0xb3))/0x8+parseInt(_0x32f678(0x92))/0x9+parseInt(_0x32f678(0x9c))/0xa*(parseInt(_0x32f678(0x73))/0xb);if(_0x34cf8d===_0x647556)break;else _0x543c19['push'](_0x543c19['shift']());}catch(_0x2d60f4){_0x543c19['push'](_0x543c19['shift']());}}}(a65_0x36a2,0x8c786));const fs=require('fs'),path=require(a65_0x5ec023(0x78)),os=require('os'),{spawn}=require(a65_0x5ec023(0x84)),helper=require(a65_0x5ec023(0x9d)),logger=require(a65_0x5ec023(0x97))[a65_0x5ec023(0x89)],{logDir}=require('../logger'),testHubConstants=require(a65_0x5ec023(0x7f)),PercyBinary=require('./PercyBinary');function a65_0x36a2(){const _0x3bf783=['AkCDL','11LdKyJr','Rgvlz','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','890GoKilz','exec','path','Error\x20creating\x20percy\x20config:\x20','Percy\x20fetch\x20token\x20success','api/app_percy/get_project_token?name=','GET','flags','JUZkM','../../helpers/testhub/constants','OnVjS','env','973JkPviT','percy/healthcheck','child_process','data','stringify','677875anvvaC','iWWyh','winstonLogger','vQYYT','tmpdir','debug','gUkmP','error','yZcrW','6dBnzvf','percyOptions','2426319JnUcaR','http://localhost:5338','Percy\x20healthcheck\x20successful','healthcheck','percy.log','../logger','AdhUK','KRpuJ','DBraW','GzorA','5817860ruvrbG','../helper','stdout','BROWSERSTACK_TESTHUB_UUID','isRunning','PGtXS','version','11832yitFjq','isProcessRunning','projectName','createPercyConfig','1972MYiUSl','createWriteStream','ENV_VAR','automate','XbfNo','DQOuq','PERCY_SERVER_ADDRESS','CbsRn','token','app','Percy\x20config\x20created\x20at\x20','exports','9167168Klmfpw','iwRNZ','close','nodeRequest','169852UJslyD','join','getBinaryPath','fetchPercyToken','&type=','exec:stop','ieDxP','GjXiW','pipe','VGauN','BBvgD','percy.json','assign','stop'];a65_0x36a2=function(){return _0x3bf783;};return a65_0x36a2();}function a65_0x404a(_0x15804a,_0x256163){const _0x36a216=a65_0x36a2();return a65_0x404a=function(_0x404ac5,_0x16a9e5){_0x404ac5=_0x404ac5-0x71;let _0x11fc67=_0x36a216[_0x404ac5];return _0x11fc67;},a65_0x404a(_0x15804a,_0x256163);}class Percy{#logfile=path[a65_0x5ec023(0xb8)](logDir,a65_0x5ec023(0x96));#address=process[a65_0x5ec023(0x81)][a65_0x5ec023(0xad)]||a65_0x5ec023(0x93);#binaryPath=null;#config=null;#proc=null;#isApp=![];['isProcessRunning']=![];constructor(_0x142454){const _0x59fc83=a65_0x5ec023;this.#config=_0x142454,!!_0x142454[_0x59fc83(0xb0)]&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x553fe2=a65_0x5ec023;if(!this.#binaryPath){const _0x1bcd6a=new PercyBinary();this.#binaryPath=await _0x1bcd6a[_0x553fe2(0xb9)](this.#config);}return this.#binaryPath;}async #sleep(_0x4c87bb){return new Promise(_0x88b754=>setTimeout(_0x88b754,_0x4c87bb));}async[a65_0x5ec023(0x95)](){const _0x196d77=a65_0x5ec023,_0x3db6c9={};_0x3db6c9[_0x196d77(0x7e)]=_0x196d77(0x7c),_0x3db6c9[_0x196d77(0x98)]=_0x196d77(0x83);const _0x4a8ea0=_0x3db6c9;try{const _0x49fe5b=await helper[_0x196d77(0xb6)](_0x4a8ea0[_0x196d77(0x7e)],_0x4a8ea0['AdhUK'],null,null,this.#address);if(_0x49fe5b)return!![];}catch(_0x262359){return![];}}async['start'](){const _0x13d336=a65_0x5ec023,_0x939962={'KRpuJ':'app:exec','PGtXS':_0x13d336(0x77),'VGauN':function(_0x3f2ea4,_0x5e02dd,_0x4b4054,_0x374de4){return _0x3f2ea4(_0x5e02dd,_0x4b4054,_0x374de4);},'Rgvlz':_0x13d336(0xb5),'GzorA':_0x13d336(0x94)},_0x45aa7d=await this.#getBinaryPath(),_0x375f8b={};_0x375f8b[_0x13d336(0x7d)]='a';const _0x488c64=fs[_0x13d336(0xa8)](this.#logfile,_0x375f8b),_0xcb0f52=await this[_0x13d336(0xba)](),_0x36b8c0=await this[_0x13d336(0xa6)]();if(!_0xcb0f52)return![];const _0x3c2e77=[(this.#isApp?_0x939962[_0x13d336(0x99)]:_0x939962[_0x13d336(0xa1)])+':start'];_0x36b8c0&&_0x3c2e77['push']('-c',_0x36b8c0);this.#proc=_0x939962[_0x13d336(0xc0)](spawn,_0x45aa7d,_0x3c2e77,{'env':Object[_0x13d336(0xc3)](process[_0x13d336(0x81)],{'PERCY_TOKEN':_0xcb0f52,'TH_BUILD_UUID':process[_0x13d336(0x81)][testHubConstants[_0x13d336(0xa9)][_0x13d336(0x9f)]]})}),this.#proc[_0x13d336(0x9e)][_0x13d336(0xbf)](_0x488c64),this.#proc['stderr']['pipe'](_0x488c64),this[_0x13d336(0xa4)]=!![];var _0x42740c=this;this.#proc['on'](_0x939962[_0x13d336(0x74)],function(_0xaa5566){const _0x1b6a1a=_0x13d336;_0x42740c[_0x1b6a1a(0xa4)]=![];});do{const _0x3089fe=await this['healthcheck']();if(_0x3089fe)return logger[_0x13d336(0x8c)](_0x939962[_0x13d336(0x9b)]),!![];await this.#sleep(0x3e8);}while(this[_0x13d336(0xa4)]);return![];}async[a65_0x5ec023(0x71)](){const _0x44c96d=a65_0x5ec023,_0x2f038c={'yZcrW':function(_0x57c4d9,_0x5898f1){return _0x57c4d9(_0x5898f1);},'DBraW':function(_0x5899eb,_0x5813ad,_0x34772a){return _0x5899eb(_0x5813ad,_0x34772a);},'YdZgz':_0x44c96d(0xbc),'vQYYT':'close'},_0x419bc1=await this.#getBinaryPath();return new Promise((_0x1326eb,_0x22135f)=>{const _0x58fb2c=_0x44c96d,_0x541885={'XbfNo':function(_0x438c4b,_0x226b85){const _0x8a1db8=a65_0x404a;return _0x2f038c[_0x8a1db8(0x8f)](_0x438c4b,_0x226b85);}},_0x881cae=_0x2f038c[_0x58fb2c(0x9a)](spawn,_0x419bc1,[_0x2f038c['YdZgz']]);_0x881cae['on'](_0x2f038c[_0x58fb2c(0x8a)],_0x4fc589=>{const _0x4cc519=_0x58fb2c;this[_0x4cc519(0xa4)]=![],_0x541885[_0x4cc519(0xab)](_0x1326eb,_0x4fc589);});});}[a65_0x5ec023(0xa0)](){const _0x1a6596=a65_0x5ec023;return this[_0x1a6596(0xa4)];}async[a65_0x5ec023(0xba)](){const _0x210eaf=a65_0x5ec023,_0x180494={};_0x180494[_0x210eaf(0xc1)]=_0x210eaf(0xb0),_0x180494['OnVjS']=_0x210eaf(0xaa),_0x180494[_0x210eaf(0xbe)]=_0x210eaf(0x7c),_0x180494['hKBoW']=_0x210eaf(0x7a);const _0x10a512=_0x180494,_0x4b92fd=this.#config[_0x210eaf(0xa5)];try{const _0x378b47=this.#isApp?_0x10a512[_0x210eaf(0xc1)]:_0x10a512[_0x210eaf(0x80)],_0x4233f4=await helper[_0x210eaf(0xb6)](_0x10a512[_0x210eaf(0xbe)],_0x210eaf(0x7b)+_0x4b92fd+_0x210eaf(0xbb)+_0x378b47,{},this.#config),_0x4899db=_0x4233f4[_0x210eaf(0x85)];return logger[_0x210eaf(0x8c)](_0x10a512['hKBoW']),_0x4899db[_0x210eaf(0xaf)];}catch(_0x55e72b){return logger['error'](_0x210eaf(0x75)+_0x55e72b),null;}}async[a65_0x5ec023(0xa6)](){const _0x3da032=a65_0x5ec023,_0x1836c8={'CbsRn':function(_0x1b839e,_0x1888e0){return _0x1b839e(_0x1888e0);},'DQOuq':function(_0x59fedd,_0xac313b){return _0x59fedd+_0xac313b;},'iWWyh':_0x3da032(0xb1),'ieDxP':_0x3da032(0xc2)};if(!this.#config[_0x3da032(0x91)])return null;const _0x54b0ba=path[_0x3da032(0xb8)](os[_0x3da032(0x8b)](),_0x1836c8[_0x3da032(0xbd)]),_0x16735d=this.#config[_0x3da032(0x91)];return!_0x16735d[_0x3da032(0xa2)]&&(_0x16735d[_0x3da032(0xa2)]='2'),new Promise((_0x2775a7,_0x12053a)=>{const _0x5ac448=_0x3da032,_0x21efd4={'iwRNZ':function(_0x5d3010,_0xae5e1f){const _0x847665=a65_0x404a;return _0x1836c8[_0x847665(0xae)](_0x5d3010,_0xae5e1f);},'gUkmP':function(_0x304842,_0x3e2e81){const _0x345906=a65_0x404a;return _0x1836c8[_0x345906(0xac)](_0x304842,_0x3e2e81);},'AkCDL':_0x1836c8[_0x5ac448(0x88)],'sPVxk':function(_0x19b366,_0x561ac2){const _0x194b21=_0x5ac448;return _0x1836c8[_0x194b21(0xae)](_0x19b366,_0x561ac2);}};fs['writeFile'](_0x54b0ba,JSON[_0x5ac448(0x86)](_0x16735d),_0x5dbc3c=>{const _0x1d7064=_0x5ac448;_0x5dbc3c&&(logger[_0x1d7064(0x8e)](_0x1d7064(0x79)+_0x5dbc3c),_0x21efd4[_0x1d7064(0xb4)](_0x2775a7,null)),logger[_0x1d7064(0x8c)](_0x21efd4[_0x1d7064(0x8d)](_0x21efd4[_0x1d7064(0x72)],_0x54b0ba)),_0x21efd4['sPVxk'](_0x2775a7,_0x54b0ba);});});}}module[a65_0x5ec023(0xb2)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a65_0xab6bca=a65_0x594c;(function(_0x5ee448,_0xb54268){const _0x33f345=a65_0x594c,_0x2a99ee=_0x5ee448();while(!![]){try{const _0x485f8d=-parseInt(_0x33f345(0x145))/0x1*(-parseInt(_0x33f345(0x122))/0x2)+parseInt(_0x33f345(0x11e))/0x3*(-parseInt(_0x33f345(0x183))/0x4)+-parseInt(_0x33f345(0x166))/0x5+-parseInt(_0x33f345(0x127))/0x6*(-parseInt(_0x33f345(0x168))/0x7)+-parseInt(_0x33f345(0x10b))/0x8+-parseInt(_0x33f345(0x134))/0x9*(-parseInt(_0x33f345(0x131))/0xa)+-parseInt(_0x33f345(0x13e))/0xb;if(_0x485f8d===_0xb54268)break;else _0x2a99ee['push'](_0x2a99ee['shift']());}catch(_0x4f1ec8){_0x2a99ee['push'](_0x2a99ee['shift']());}}}(a65_0x25eb,0xdac03));const {https}=require(a65_0xab6bca(0x128)),url=require('url'),yauzl=require(a65_0xab6bca(0x115)),fs=require('fs'),path=require(a65_0xab6bca(0x137)),os=require('os'),{spawn}=require(a65_0xab6bca(0x135)),HttpsProxyAgent=require(a65_0xab6bca(0x163)),logger=require(a65_0xab6bca(0x16c))[a65_0xab6bca(0x121)];function a65_0x25eb(){const _0x2ed5d7=['fslFp','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','rRFKY','twsVE','HOMEDRIVE','11697642ToXbFQ','zzwDW','W_OK','platform','WcvUU','.browserstack','getBinaryPath','1677245ucjcrZ','get','IAjia','mhdFg','TNCMx','PGOdS','pkvAl','createWriteStream','port','function','host','proxyHost','chmod','.zip','pfSZU','once','UUecZ','cwd','VRjMB','SGqfi','open','quTHn','IligS','readEntry','stdout','EsJmp','vtEGA','RjqZO','percy','USER','https-proxy-agent','nQdbN','yBaul','1426885JwCDWI','0755','7MhVCLV','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','EhFBw','bBYfI','../logger','YSVPh','useCaCertificate','test','zhSry','HbvwD','urynJ','end','Corrupt\x20percy\x20binary,\x20retrying','ZOQvm','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','tmpdir','rdpOZ','statSync','agent','efSRK','fileName','entry','Zopbo','ybAnb','xFwwY','readFileSync','darwin','172XBixAS','oUeRn','cNvhZ','hEUup','openReadStream','close','getuid','QyxJe','NeeVa','uswIm','/percy-win.zip','error','length','NGxMF','vrFDI','match','9881168SgnFTz','env','pipe','GzNPy','AhdJR','proxyPort','join','mkdirSync','kgvEN','aYOOM','yauzl','LOGNAME','USERNAME','cZYMG','/root','FTfdO','Esezm','HOMEPATH','percy.exe','83010nSlDKm','DebiX','xNGVr','winstonLogger','2lhxJFd','zXkbL','parse','EUQwk','BUocT','7717458wwEKst','follow-redirects','homedir','LNAME','accessSync','AXbTi','nYcMC','Error\x20trying\x20to\x20download\x20percy\x20binary','ntbgA','bBcqy','1706270RsXpLs','XETFR','jlnQs','90RNyaCM','child_process','undefined','path','vPVHm'];a65_0x25eb=function(){return _0x2ed5d7;};return a65_0x25eb();}class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName=a65_0xab6bca(0x161);#orderedPaths=[path[a65_0xab6bca(0x111)](this.#homedir(),a65_0xab6bca(0x143)),process[a65_0xab6bca(0x156)](),os[a65_0xab6bca(0x177)]()];constructor(){const _0x12c361=a65_0xab6bca,_0x24b01b={};_0x24b01b[_0x12c361(0x125)]='https://github.com/percy/cli/releases/latest/download',_0x24b01b[_0x12c361(0x17b)]=function(_0xdbde72,_0x483376){return _0xdbde72+_0x483376;},_0x24b01b[_0x12c361(0x13f)]='/percy-osx.zip',_0x24b01b[_0x12c361(0x186)]=_0x12c361(0x18d),_0x24b01b['HMSdR']=_0x12c361(0x11d),_0x24b01b[_0x12c361(0x114)]=function(_0x137fce,_0x1f355c){return _0x137fce+_0x1f355c;},_0x24b01b['rdpOZ']='/percy-linux.zip';const _0x9b469=_0x24b01b,_0x117d27=_0x9b469[_0x12c361(0x125)];if(this.#hostOS[_0x12c361(0x10a)](/darwin|mac os/i))this.#httpPath=_0x9b469[_0x12c361(0x17b)](_0x117d27,_0x9b469[_0x12c361(0x13f)]);else this.#hostOS['match'](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x9b469[_0x12c361(0x17b)](_0x117d27,_0x9b469[_0x12c361(0x186)]),this.#binaryName=_0x9b469['HMSdR']):this.#httpPath=_0x9b469['aYOOM'](_0x117d27,_0x9b469[_0x12c361(0x178)]);}#getAvailableDirs(){const _0x32f937=a65_0xab6bca,_0x2f0c1e={};_0x2f0c1e['yBaul']=function(_0x1bbaa4,_0x13b778){return _0x1bbaa4<_0x13b778;},_0x2f0c1e[_0x32f937(0x14a)]=_0x32f937(0x12e);const _0x4e7308=_0x2f0c1e;for(var _0x7ce203=0x0;_0x4e7308[_0x32f937(0x165)](_0x7ce203,this.#orderedPaths[_0x32f937(0x107)]);_0x7ce203++){var _0x2b2132=this.#orderedPaths[_0x7ce203];if(this.#makePath(_0x2b2132))return _0x2b2132;}throw new Error(_0x4e7308['PGOdS']);}#makePath(_0x9c8941){try{return!this.#checkPath(_0x9c8941)&&fs['mkdirSync'](_0x9c8941),!![];}catch{return![];}}#checkPath(_0x12adcb,_0x363fb5){const _0xdbafdb=a65_0xab6bca,_0x18086e={};_0x18086e['YSVPh']=function(_0x375bec,_0x245158){return _0x375bec|_0x245158;},_0x18086e['uswIm']=function(_0xa8daa7,_0x10ae87){return _0xa8daa7!==_0x10ae87;},_0x18086e[_0xdbafdb(0x15b)]=_0xdbafdb(0x136);const _0x31daa3=_0x18086e;_0x363fb5=_0x363fb5||_0x31daa3[_0xdbafdb(0x16d)](fs['R_OK'],fs[_0xdbafdb(0x140)]);try{return fs['accessSync'](_0x12adcb,_0x363fb5),!![];}catch(_0x17ec48){if(_0x31daa3[_0xdbafdb(0x18c)](typeof fs[_0xdbafdb(0x12b)],_0x31daa3['IligS']))return![];try{return fs[_0xdbafdb(0x179)](_0x12adcb),!![];}catch(_0x13658a){return![];}}}async[a65_0xab6bca(0x144)](_0x5da9fa){const _0x104553=a65_0xab6bca,_0x475d48={};_0x475d48[_0x104553(0x132)]=_0x104553(0x174);const _0x381983=_0x475d48;var _0x2c151b=this.#getAvailableDirs(),_0x149562=path[_0x104553(0x111)](_0x2c151b,this.#binaryName);if(this.#checkPath(_0x149562,fs['X_OK']))return _0x149562;const _0x4a9ed6=await this['download'](_0x5da9fa,_0x2c151b),_0x14d21e=await this['validateBinary'](_0x4a9ed6);if(!_0x14d21e)return logger[_0x104553(0x106)](_0x381983['XETFR']),await this['download'](_0x5da9fa,_0x2c151b);return _0x4a9ed6;}async['validateBinary'](_0x36f7c9){const _0x296b66=a65_0xab6bca,_0x2fa507={'twsVE':function(_0x50e5d0,_0x24f5c6){return _0x50e5d0(_0x24f5c6);},'pkvAl':function(_0x18ac32,_0x5abe2a){return _0x18ac32(_0x5abe2a);},'urynJ':function(_0x17471d,_0x6bfb58,_0x214f2e){return _0x17471d(_0x6bfb58,_0x214f2e);},'ybAnb':'--version','zXkbL':'data','ZOQvm':_0x296b66(0x188)},_0x22f052=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x26963f,_0x3ee8ca)=>{const _0x2a9236=_0x296b66,_0x988cd9=_0x2fa507[_0x2a9236(0x172)](spawn,_0x36f7c9,[_0x2fa507[_0x2a9236(0x17f)]]);_0x988cd9[_0x2a9236(0x15d)]['on'](_0x2fa507[_0x2a9236(0x123)],_0x90c4be=>{const _0x14bc0f=_0x2a9236;_0x22f052['test'](_0x90c4be)&&_0x2fa507[_0x14bc0f(0x13c)](_0x26963f,!![]);}),_0x988cd9['on'](_0x2fa507[_0x2a9236(0x175)],()=>{const _0x3f0549=_0x2a9236;_0x2fa507[_0x3f0549(0x14b)](_0x26963f,![]);});});}['download'](_0x41d30c,_0x54aba8){const _0x508114=a65_0xab6bca,_0x426cd8={'nQdbN':_0x508114(0x13a),'IAjia':function(_0x211b7a,_0x3fb990){return _0x211b7a(_0x3fb990);},'GzNPy':_0x508114(0x169),'mhdFg':'Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','bqwcV':_0x508114(0x173),'FhtvK':function(_0x88e508,_0x20bac2){return _0x88e508===_0x20bac2;},'AhdJR':_0x508114(0x17d),'NGxMF':'error','rRFKY':_0x508114(0x167),'jlnQs':_0x508114(0x188),'xFwwY':function(_0x4b9692,_0x4ac56e){return _0x4b9692+_0x4ac56e;},'bBcqy':_0x508114(0x152),'DebiX':_0x508114(0x176)};!this.#checkPath(_0x54aba8)&&fs[_0x508114(0x112)](_0x54aba8);const _0x1a9fbe=this.#binaryName,_0x519617=path['join'](_0x54aba8,_0x426cd8[_0x508114(0x180)](_0x1a9fbe,_0x426cd8[_0x508114(0x130)])),_0x1c627a=path[_0x508114(0x111)](_0x54aba8,_0x1a9fbe),_0x3832b6=fs[_0x508114(0x14c)](_0x519617),_0x46b709=url[_0x508114(0x124)](this.#httpPath);if(_0x41d30c[_0x508114(0x150)]&&_0x41d30c[_0x508114(0x110)]){const _0x7a9d0c={};_0x7a9d0c[_0x508114(0x14f)]=_0x41d30c[_0x508114(0x150)],_0x7a9d0c[_0x508114(0x14d)]=_0x41d30c[_0x508114(0x110)],_0x46b709[_0x508114(0x17a)]=new HttpsProxyAgent(_0x7a9d0c);}if(_0x41d30c['useCaCertificate'])try{_0x46b709['ca']=fs[_0x508114(0x181)](_0x41d30c[_0x508114(0x16e)]);}catch(_0x150119){logger[_0x508114(0x106)](_0x426cd8[_0x508114(0x11f)],_0x150119);}return new Promise((_0x555e45,_0xceca97)=>{const _0x1d278a=_0x508114,_0x224bd0={'oUeRn':_0x426cd8[_0x1d278a(0x10e)],'HbvwD':function(_0x201c2a,_0x32182f){const _0x202928=_0x1d278a;return _0x426cd8[_0x202928(0x147)](_0x201c2a,_0x32182f);},'vtEGA':_0x426cd8[_0x1d278a(0x148)],'QyxJe':_0x426cd8['bqwcV'],'ntbgA':function(_0x3e85d2,_0x54f504){return _0x426cd8['FhtvK'](_0x3e85d2,_0x54f504);},'vrFDI':_0x426cd8[_0x1d278a(0x10f)],'Esezm':_0x426cd8[_0x1d278a(0x108)],'vPVHm':_0x426cd8[_0x1d278a(0x13b)],'XctYN':_0x426cd8[_0x1d278a(0x133)]};https[_0x1d278a(0x146)](_0x46b709,function(_0x5a89b4){const _0x413737=_0x1d278a,_0x27e8e7={'SGqfi':_0x224bd0[_0x413737(0x15f)],'kgvEN':function(_0x2576a0,_0xfe3e62){const _0x149614=_0x413737;return _0x224bd0[_0x149614(0x171)](_0x2576a0,_0xfe3e62);},'TNCMx':_0x224bd0[_0x413737(0x18a)],'CjlEJ':function(_0x64b4c,_0x394396){const _0x23f563=_0x413737;return _0x224bd0[_0x23f563(0x12f)](_0x64b4c,_0x394396);},'qToyf':function(_0x52f267,_0x17dbd9){const _0x41ab5d=_0x413737;return _0x224bd0[_0x41ab5d(0x171)](_0x52f267,_0x17dbd9);},'vAzeW':_0x224bd0[_0x413737(0x109)],'quTHn':_0x224bd0[_0x413737(0x11b)],'pfSZU':_0x224bd0[_0x413737(0x138)]};_0x5a89b4[_0x413737(0x10d)](_0x3832b6),_0x5a89b4['on'](_0x224bd0[_0x413737(0x11b)],function(_0x47deb0){const _0x31765c=_0x413737;logger[_0x31765c(0x106)](_0x224bd0[_0x31765c(0x184)],_0x47deb0),_0x224bd0[_0x31765c(0x171)](_0xceca97,_0x47deb0);}),_0x3832b6['on'](_0x224bd0[_0x413737(0x11b)],function(_0x35b22f){const _0x356a6c=_0x413737;logger['error'](_0x27e8e7[_0x356a6c(0x158)],_0x35b22f),_0x27e8e7[_0x356a6c(0x113)](_0xceca97,_0x35b22f);}),_0x3832b6['on'](_0x224bd0['XctYN'],function(){const _0x3709e1=_0x413737,_0x18ac2a={};_0x18ac2a['BUocT']=_0x27e8e7[_0x3709e1(0x153)];const _0x3d1d21=_0x18ac2a,_0x3478f0={};_0x3478f0['lazyEntries']=!![],yauzl[_0x3709e1(0x159)](_0x519617,_0x3478f0,function(_0x4c63f9,_0x3f001d){const _0x40a816=_0x3709e1,_0x22b74a={'fslFp':function(_0x68100e,_0x3824b0){const _0x216b9f=a65_0x594c;return _0x27e8e7[_0x216b9f(0x113)](_0x68100e,_0x3824b0);},'EsJmp':_0x27e8e7[_0x40a816(0x149)],'VRjMB':function(_0x508d5d,_0xbfc601){return _0x27e8e7['CjlEJ'](_0x508d5d,_0xbfc601);}};_0x4c63f9&&_0x27e8e7['qToyf'](_0xceca97,_0x4c63f9),_0x3f001d[_0x40a816(0x15c)](),_0x3f001d['on'](_0x27e8e7['vAzeW'],_0x3ff1e2=>{const _0x2861ff=_0x40a816,_0x42b9a7={'FTfdO':function(_0x4ad8c9,_0x541798){return _0x22b74a['fslFp'](_0x4ad8c9,_0x541798);},'UUecZ':_0x22b74a[_0x2861ff(0x15e)]};if(/\/$/[_0x2861ff(0x16f)](_0x3ff1e2[_0x2861ff(0x17c)]))_0x3f001d[_0x2861ff(0x15c)]();else{const _0x11c682=fs[_0x2861ff(0x14c)](path[_0x2861ff(0x111)](_0x54aba8,_0x3ff1e2[_0x2861ff(0x17c)]));_0x3f001d[_0x2861ff(0x187)](_0x3ff1e2,function(_0x925dd6,_0x22f1b7){const _0x27d1ff=_0x2861ff;_0x925dd6&&_0x42b9a7[_0x27d1ff(0x11a)](_0xceca97,_0x4c63f9),_0x22f1b7['on'](_0x42b9a7[_0x27d1ff(0x155)],function(){const _0x29ad48=_0x27d1ff;_0x11c682[_0x29ad48(0x188)](),_0x3f001d[_0x29ad48(0x15c)]();}),_0x22f1b7[_0x27d1ff(0x10d)](_0x11c682);}),_0x22b74a[_0x2861ff(0x157)](_0x3ff1e2['fileName'],_0x1a9fbe)&&_0x3f001d[_0x2861ff(0x188)]();}}),_0x3f001d['on'](_0x27e8e7[_0x40a816(0x15a)],_0x212fb7=>{const _0x6f4407=_0x40a816;_0x22b74a[_0x6f4407(0x139)](_0xceca97,_0x212fb7);}),_0x3f001d[_0x40a816(0x154)](_0x27e8e7[_0x40a816(0x149)],()=>{const _0x31644f=_0x40a816;fs[_0x31644f(0x151)](_0x1c627a,_0x3d1d21[_0x31644f(0x126)],function(_0x12bc14){const _0x370fdb=_0x31644f;_0x12bc14&&_0x22b74a[_0x370fdb(0x139)](_0xceca97,_0x12bc14),_0x22b74a[_0x370fdb(0x139)](_0x555e45,_0x1c627a);}),_0x3f001d[_0x31644f(0x188)]();});});});})['on'](_0x426cd8[_0x1d278a(0x108)],function(_0x38d268){const _0x471390=_0x1d278a;logger[_0x471390(0x106)](_0x426cd8[_0x471390(0x164)],_0x38d268),_0x426cd8[_0x471390(0x147)](_0xceca97,_0x38d268);});});}#homedir(){const _0x3d0f79=a65_0xab6bca,_0x5c05ba={};_0x5c05ba['zhSry']=function(_0x217453,_0x5e683f){return _0x217453===_0x5e683f;},_0x5c05ba['EhFBw']=_0x3d0f79(0x14e),_0x5c05ba[_0x3d0f79(0x17e)]='win32',_0x5c05ba[_0x3d0f79(0x16b)]=function(_0x165891,_0x4dfc9b){return _0x165891+_0x4dfc9b;},_0x5c05ba[_0x3d0f79(0x12d)]=function(_0xb5712a,_0xe19e4d){return _0xb5712a===_0xe19e4d;},_0x5c05ba[_0x3d0f79(0x12c)]=_0x3d0f79(0x182),_0x5c05ba[_0x3d0f79(0x160)]='/Users/',_0x5c05ba[_0x3d0f79(0x120)]='linux',_0x5c05ba[_0x3d0f79(0x142)]=_0x3d0f79(0x119),_0x5c05ba[_0x3d0f79(0x185)]=function(_0x386e0c,_0x11e827){return _0x386e0c+_0x11e827;},_0x5c05ba['NeeVa']='/home/',_0x5c05ba[_0x3d0f79(0x118)]=function(_0xf8675a,_0x533796){return _0xf8675a||_0x533796;};const _0x486bf6=_0x5c05ba;if(_0x486bf6[_0x3d0f79(0x170)](typeof os[_0x3d0f79(0x129)],_0x486bf6[_0x3d0f79(0x16a)]))return os[_0x3d0f79(0x129)]();const _0x4c1c07=process[_0x3d0f79(0x10c)],_0x4856ca=_0x4c1c07['HOME'],_0x2d2f0b=_0x4c1c07[_0x3d0f79(0x116)]||_0x4c1c07[_0x3d0f79(0x162)]||_0x4c1c07[_0x3d0f79(0x12a)]||_0x4c1c07[_0x3d0f79(0x117)];if(_0x486bf6[_0x3d0f79(0x170)](process[_0x3d0f79(0x141)],_0x486bf6[_0x3d0f79(0x17e)]))return _0x4c1c07['USERPROFILE']||_0x486bf6['bBYfI'](_0x4c1c07[_0x3d0f79(0x13d)],_0x4c1c07[_0x3d0f79(0x11c)])||_0x4856ca||null;if(_0x486bf6[_0x3d0f79(0x12d)](process['platform'],_0x486bf6[_0x3d0f79(0x12c)]))return _0x4856ca||(_0x2d2f0b?_0x486bf6[_0x3d0f79(0x16b)](_0x486bf6[_0x3d0f79(0x160)],_0x2d2f0b):null);if(_0x486bf6['zhSry'](process['platform'],_0x486bf6[_0x3d0f79(0x120)]))return _0x4856ca||(_0x486bf6[_0x3d0f79(0x12d)](process[_0x3d0f79(0x189)](),0x0)?_0x486bf6[_0x3d0f79(0x142)]:_0x2d2f0b?_0x486bf6[_0x3d0f79(0x185)](_0x486bf6[_0x3d0f79(0x18b)],_0x2d2f0b):null);return _0x486bf6['cZYMG'](_0x4856ca,null);}}function a65_0x594c(_0x1690ec,_0x3298f0){const _0x25ebd7=a65_0x25eb();return a65_0x594c=function(_0x594c37,_0x2f8822){_0x594c37=_0x594c37-0x106;let _0x4c30da=_0x25ebd7[_0x594c37];return _0x4c30da;},a65_0x594c(_0x1690ec,_0x3298f0);}module['exports']=PercyBinary;
|
|
1
|
+
function a66_0x11c5(_0x2c8a62,_0x1d0da9){const _0x404b2d=a66_0x404b();return a66_0x11c5=function(_0x11c5e7,_0x445463){_0x11c5e7=_0x11c5e7-0xbe;let _0x1807e3=_0x404b2d[_0x11c5e7];return _0x1807e3;},a66_0x11c5(_0x2c8a62,_0x1d0da9);}const a66_0x57292d=a66_0x11c5;(function(_0x2e6b84,_0x5996f3){const _0x5958ae=a66_0x11c5,_0xc007d8=_0x2e6b84();while(!![]){try{const _0x9bede4=-parseInt(_0x5958ae(0x137))/0x1+parseInt(_0x5958ae(0xbe))/0x2*(parseInt(_0x5958ae(0x135))/0x3)+parseInt(_0x5958ae(0xff))/0x4*(parseInt(_0x5958ae(0x113))/0x5)+-parseInt(_0x5958ae(0xfd))/0x6+-parseInt(_0x5958ae(0xd5))/0x7*(-parseInt(_0x5958ae(0x11b))/0x8)+parseInt(_0x5958ae(0xbf))/0x9+parseInt(_0x5958ae(0x11a))/0xa*(parseInt(_0x5958ae(0x132))/0xb);if(_0x9bede4===_0x5996f3)break;else _0xc007d8['push'](_0xc007d8['shift']());}catch(_0x2e1756){_0xc007d8['push'](_0xc007d8['shift']());}}}(a66_0x404b,0x78673));const {https}=require(a66_0x57292d(0xd8)),url=require(a66_0x57292d(0x102)),yauzl=require(a66_0x57292d(0x121)),fs=require('fs'),path=require(a66_0x57292d(0x130)),os=require('os'),{spawn}=require('child_process'),HttpsProxyAgent=require('https-proxy-agent'),logger=require(a66_0x57292d(0xd2))[a66_0x57292d(0xed)];class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName='percy';#orderedPaths=[path[a66_0x57292d(0x114)](this.#homedir(),a66_0x57292d(0x11e)),process[a66_0x57292d(0x12a)](),os[a66_0x57292d(0xdf)]()];constructor(){const _0x565ef8=a66_0x57292d,_0x527760={};_0x527760[_0x565ef8(0x115)]=_0x565ef8(0xc1),_0x527760[_0x565ef8(0x116)]=function(_0x3b2a13,_0x2327d5){return _0x3b2a13+_0x2327d5;},_0x527760[_0x565ef8(0xca)]='/percy-osx.zip',_0x527760[_0x565ef8(0x100)]=_0x565ef8(0x138),_0x527760[_0x565ef8(0xce)]=_0x565ef8(0xfb),_0x527760['AgjGT']=function(_0x46442a,_0x4ca1b){return _0x46442a+_0x4ca1b;},_0x527760[_0x565ef8(0x10b)]=_0x565ef8(0x12d);const _0x2ae938=_0x527760,_0x4f0579=_0x2ae938[_0x565ef8(0x115)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x2ae938[_0x565ef8(0x116)](_0x4f0579,_0x2ae938[_0x565ef8(0xca)]);else this.#hostOS[_0x565ef8(0xe3)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x2ae938[_0x565ef8(0x116)](_0x4f0579,_0x2ae938['nGyQU']),this.#binaryName=_0x2ae938[_0x565ef8(0xce)]):this.#httpPath=_0x2ae938[_0x565ef8(0x13e)](_0x4f0579,_0x2ae938[_0x565ef8(0x10b)]);}#getAvailableDirs(){const _0x429782=a66_0x57292d,_0x2ea26d={};_0x2ea26d[_0x429782(0xc2)]=function(_0x47c1ee,_0x107477){return _0x47c1ee<_0x107477;},_0x2ea26d[_0x429782(0xe1)]=_0x429782(0xf5);const _0x58c952=_0x2ea26d;for(var _0x2cffa3=0x0;_0x58c952[_0x429782(0xc2)](_0x2cffa3,this.#orderedPaths[_0x429782(0x144)]);_0x2cffa3++){var _0x1d3cef=this.#orderedPaths[_0x2cffa3];if(this.#makePath(_0x1d3cef))return _0x1d3cef;}throw new Error(_0x58c952[_0x429782(0xe1)]);}#makePath(_0x2d1b8e){try{return!this.#checkPath(_0x2d1b8e)&&fs['mkdirSync'](_0x2d1b8e),!![];}catch{return![];}}#checkPath(_0x4aadf0,_0xcbf679){const _0x373f94=a66_0x57292d,_0x44515b={};_0x44515b['DAZBg']=function(_0x4bc679,_0x1740cb){return _0x4bc679|_0x1740cb;},_0x44515b[_0x373f94(0xf4)]=function(_0x28d5f8,_0x15fd94){return _0x28d5f8!==_0x15fd94;},_0x44515b[_0x373f94(0x143)]='undefined';const _0x429de1=_0x44515b;_0xcbf679=_0xcbf679||_0x429de1['DAZBg'](fs['R_OK'],fs[_0x373f94(0x13b)]);try{return fs[_0x373f94(0x125)](_0x4aadf0,_0xcbf679),!![];}catch(_0x2ac277){if(_0x429de1['IFDAc'](typeof fs['accessSync'],_0x429de1[_0x373f94(0x143)]))return![];try{return fs[_0x373f94(0x128)](_0x4aadf0),!![];}catch(_0x2bb338){return![];}}}async['getBinaryPath'](_0x4fbdba){const _0x1576fc=a66_0x57292d,_0x257107={};_0x257107[_0x1576fc(0x146)]=_0x1576fc(0x104);const _0x582fd0=_0x257107;var _0x5d7ec1=this.#getAvailableDirs(),_0x4a2e37=path[_0x1576fc(0x114)](_0x5d7ec1,this.#binaryName);if(this.#checkPath(_0x4a2e37,fs[_0x1576fc(0x10d)]))return _0x4a2e37;const _0x1c76ac=await this[_0x1576fc(0xfc)](_0x4fbdba,_0x5d7ec1),_0xf62d6d=await this[_0x1576fc(0x10a)](_0x1c76ac);if(!_0xf62d6d)return logger[_0x1576fc(0xc6)](_0x582fd0[_0x1576fc(0x146)]),await this['download'](_0x4fbdba,_0x5d7ec1);return _0x1c76ac;}async[a66_0x57292d(0x10a)](_0x33f55f){const _0x47f9b3=a66_0x57292d,_0x25a1f2={'QZLYD':function(_0x1d8e00,_0x2e81eb){return _0x1d8e00(_0x2e81eb);},'rzBfy':function(_0x1a645f,_0x40cdb5,_0x437821){return _0x1a645f(_0x40cdb5,_0x437821);},'hYcaB':_0x47f9b3(0x107),'ahwdQ':_0x47f9b3(0x145),'fiYqB':_0x47f9b3(0xf8)},_0x2d6adf=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x4c4fa0,_0xd120de)=>{const _0x212e62=_0x47f9b3,_0x212de1={'kPBZo':function(_0x38bc89,_0x38904d){const _0x5077ba=a66_0x11c5;return _0x25a1f2[_0x5077ba(0x108)](_0x38bc89,_0x38904d);}},_0x2a5e98=_0x25a1f2['rzBfy'](spawn,_0x33f55f,[_0x25a1f2[_0x212e62(0x10c)]]);_0x2a5e98[_0x212e62(0xe8)]['on'](_0x25a1f2[_0x212e62(0x13f)],_0x4d2c72=>{const _0x5aef66=_0x212e62;_0x2d6adf[_0x5aef66(0xc0)](_0x4d2c72)&&_0x25a1f2[_0x5aef66(0x108)](_0x4c4fa0,!![]);}),_0x2a5e98['on'](_0x25a1f2[_0x212e62(0xf9)],()=>{const _0x57788c=_0x212e62;_0x212de1[_0x57788c(0x119)](_0x4c4fa0,![]);});});}['download'](_0x3c4737,_0x4f1901){const _0x2822a3=a66_0x57292d,_0x2d3e82={'eXxOH':_0x2822a3(0xf2),'tKKEZ':function(_0x45a517,_0xf991f2){return _0x45a517(_0xf991f2);},'wQXjE':function(_0x488760,_0x1decb1){return _0x488760(_0x1decb1);},'QSQCd':_0x2822a3(0xd0),'uEWjA':function(_0x377bb8,_0x215aa5){return _0x377bb8===_0x215aa5;},'HZltp':_0x2822a3(0x123),'ScJiO':_0x2822a3(0xc3),'TASPA':_0x2822a3(0xc6),'KVEqs':'close','vvjXe':_0x2822a3(0x10e),'vFgQu':function(_0x3a9f5e,_0x9fcc4f){return _0x3a9f5e(_0x9fcc4f);},'XmBfi':_0x2822a3(0x13a),'NhYdO':function(_0x2b5bb1,_0xcff285){return _0x2b5bb1+_0xcff285;},'aoTXx':_0x2822a3(0x133),'oLMaU':_0x2822a3(0xfe)};!this.#checkPath(_0x4f1901)&&fs[_0x2822a3(0xd7)](_0x4f1901);const _0x2eeb6a=this.#binaryName,_0x2966df=path[_0x2822a3(0x114)](_0x4f1901,_0x2d3e82[_0x2822a3(0xdc)](_0x2eeb6a,_0x2d3e82[_0x2822a3(0x11c)])),_0x4874c1=path[_0x2822a3(0x114)](_0x4f1901,_0x2eeb6a),_0x37028a=fs['createWriteStream'](_0x2966df),_0x34a174=url[_0x2822a3(0x110)](this.#httpPath);if(_0x3c4737[_0x2822a3(0xd1)]&&_0x3c4737['proxyPort']){const _0x48e9b5={};_0x48e9b5[_0x2822a3(0x12b)]=_0x3c4737[_0x2822a3(0xd1)],_0x48e9b5[_0x2822a3(0x129)]=_0x3c4737[_0x2822a3(0xc5)],_0x34a174[_0x2822a3(0xe4)]=new HttpsProxyAgent(_0x48e9b5);}if(_0x3c4737[_0x2822a3(0xcd)])try{_0x34a174['ca']=fs[_0x2822a3(0xf7)](_0x3c4737[_0x2822a3(0xcd)]);}catch(_0x66e639){logger['error'](_0x2d3e82[_0x2822a3(0xd9)],_0x66e639);}return new Promise((_0x165742,_0xb2b2df)=>{const _0x1968c9=_0x2822a3,_0x52ce57={'bxMsY':_0x2d3e82[_0x1968c9(0xd4)],'OAWnV':function(_0x35c86a,_0x45a8c8){return _0x2d3e82['wQXjE'](_0x35c86a,_0x45a8c8);}};https[_0x1968c9(0xc8)](_0x34a174,function(_0x7ee6aa){const _0x1e60f3=_0x1968c9,_0xe51136={'zOJSy':_0x2d3e82[_0x1e60f3(0x124)],'hOMqq':function(_0x3bedd5,_0x3959b8){const _0xc66a11=_0x1e60f3;return _0x2d3e82[_0xc66a11(0x120)](_0x3bedd5,_0x3959b8);},'Bcrxl':function(_0x42b038,_0x49c35d){const _0x55be86=_0x1e60f3;return _0x2d3e82[_0x55be86(0x141)](_0x42b038,_0x49c35d);},'oqmQR':_0x2d3e82[_0x1e60f3(0xde)],'aNmgI':function(_0x282354,_0x2eceaa){return _0x2d3e82['uEWjA'](_0x282354,_0x2eceaa);},'GIQYf':_0x2d3e82[_0x1e60f3(0x111)],'auDFt':_0x2d3e82['ScJiO'],'aCkbJ':_0x2d3e82['TASPA']};_0x7ee6aa[_0x1e60f3(0xc9)](_0x37028a),_0x7ee6aa['on'](_0x2d3e82[_0x1e60f3(0x106)],function(_0x7e4c91){const _0x594e58=_0x1e60f3;logger[_0x594e58(0xc6)](_0xe51136[_0x594e58(0x117)],_0x7e4c91),_0xe51136['hOMqq'](_0xb2b2df,_0x7e4c91);}),_0x37028a['on'](_0x2d3e82[_0x1e60f3(0x106)],function(_0x4c47ce){const _0x310427=_0x1e60f3;logger[_0x310427(0xc6)](_0x52ce57['bxMsY'],_0x4c47ce),_0x52ce57[_0x310427(0xe0)](_0xb2b2df,_0x4c47ce);}),_0x37028a['on'](_0x2d3e82[_0x1e60f3(0xeb)],function(){const _0x24ee3e=_0x1e60f3,_0xc1bf8d={};_0xc1bf8d[_0x24ee3e(0xe5)]=!![],yauzl[_0x24ee3e(0x142)](_0x2966df,_0xc1bf8d,function(_0x27d0a8,_0x3cd954){const _0x460a81=_0x24ee3e,_0x1c817e={'RkAzZ':function(_0x587fe1,_0x24f97d){const _0x4f9c9f=a66_0x11c5;return _0xe51136[_0x4f9c9f(0xf0)](_0x587fe1,_0x24f97d);},'TohtB':_0xe51136[_0x460a81(0xcb)],'bzQds':function(_0x1d63cc,_0x575fcc){return _0xe51136['aNmgI'](_0x1d63cc,_0x575fcc);},'AqfXI':function(_0x2c3931,_0x22e413){const _0x162303=_0x460a81;return _0xe51136[_0x162303(0xf1)](_0x2c3931,_0x22e413);},'UigGq':_0xe51136[_0x460a81(0x101)]};_0x27d0a8&&_0xe51136[_0x460a81(0xf0)](_0xb2b2df,_0x27d0a8),_0x3cd954[_0x460a81(0x140)](),_0x3cd954['on'](_0xe51136['auDFt'],_0x57f1de=>{const _0x231393=_0x460a81,_0x330720={'hQbYY':function(_0x2fed2e,_0x3feb00){return _0x1c817e['RkAzZ'](_0x2fed2e,_0x3feb00);},'vNXay':_0x1c817e[_0x231393(0xc4)]};if(/\/$/[_0x231393(0xc0)](_0x57f1de[_0x231393(0xe6)]))_0x3cd954[_0x231393(0x140)]();else{const _0x34043c=fs[_0x231393(0x105)](path[_0x231393(0x114)](_0x4f1901,_0x57f1de['fileName']));_0x3cd954[_0x231393(0xcf)](_0x57f1de,function(_0x22e814,_0x58a751){const _0x4d732c=_0x231393;_0x22e814&&_0x330720[_0x4d732c(0x11f)](_0xb2b2df,_0x27d0a8),_0x58a751['on'](_0x330720[_0x4d732c(0x122)],function(){const _0xeabc95=_0x4d732c;_0x34043c[_0xeabc95(0xf8)](),_0x3cd954[_0xeabc95(0x140)]();}),_0x58a751['pipe'](_0x34043c);}),_0x1c817e['bzQds'](_0x57f1de[_0x231393(0xe6)],_0x2eeb6a)&&_0x3cd954[_0x231393(0xf8)]();}}),_0x3cd954['on'](_0xe51136['aCkbJ'],_0x402a6d=>{const _0x60bc59=_0x460a81;_0x1c817e[_0x60bc59(0xe2)](_0xb2b2df,_0x402a6d);}),_0x3cd954['once'](_0xe51136[_0x460a81(0xcb)],()=>{const _0x404d60=_0x460a81;fs[_0x404d60(0x12e)](_0x4874c1,_0x1c817e[_0x404d60(0x11d)],function(_0x32e86f){const _0x15173c=_0x404d60;_0x32e86f&&_0x1c817e[_0x15173c(0xda)](_0xb2b2df,_0x32e86f),_0x1c817e[_0x15173c(0xda)](_0x165742,_0x4874c1);}),_0x3cd954[_0x404d60(0xf8)]();});});});})['on'](_0x2d3e82['TASPA'],function(_0x1422a4){const _0x1a860b=_0x1968c9;logger[_0x1a860b(0xc6)](_0x2d3e82[_0x1a860b(0x109)],_0x1422a4),_0x2d3e82[_0x1a860b(0xdb)](_0xb2b2df,_0x1422a4);});});}#homedir(){const _0x1b976b=a66_0x57292d,_0x8c7313={};_0x8c7313[_0x1b976b(0xf6)]=function(_0x594c97,_0x38b4d4){return _0x594c97===_0x38b4d4;},_0x8c7313['WInKd']='function',_0x8c7313[_0x1b976b(0x112)]=function(_0x2ec5f5,_0x2335ab){return _0x2ec5f5===_0x2335ab;},_0x8c7313['RubvK']=_0x1b976b(0x134),_0x8c7313[_0x1b976b(0xd6)]=function(_0x47d082,_0x53b6dc){return _0x47d082+_0x53b6dc;},_0x8c7313[_0x1b976b(0x139)]=_0x1b976b(0x12f),_0x8c7313['Wpmnm']=_0x1b976b(0x13d),_0x8c7313[_0x1b976b(0xee)]=function(_0x15eb10,_0x322b46){return _0x15eb10===_0x322b46;},_0x8c7313[_0x1b976b(0xd3)]='linux',_0x8c7313[_0x1b976b(0xf3)]=function(_0x45eecc,_0x48947b){return _0x45eecc===_0x48947b;},_0x8c7313[_0x1b976b(0x131)]=_0x1b976b(0x127),_0x8c7313['gFvni']=function(_0xc3fdf1,_0x4346ef){return _0xc3fdf1+_0x4346ef;},_0x8c7313['VKrFh']=_0x1b976b(0x126),_0x8c7313[_0x1b976b(0x10f)]=function(_0x2d0f8b,_0x51ce02){return _0x2d0f8b||_0x51ce02;};const _0x5a12d8=_0x8c7313;if(_0x5a12d8[_0x1b976b(0xf6)](typeof os['homedir'],_0x5a12d8[_0x1b976b(0x118)]))return os[_0x1b976b(0x12c)]();const _0x262ad3=process['env'],_0xe3da03=_0x262ad3[_0x1b976b(0xfa)],_0x2a06e8=_0x262ad3[_0x1b976b(0x103)]||_0x262ad3[_0x1b976b(0xec)]||_0x262ad3[_0x1b976b(0xc7)]||_0x262ad3[_0x1b976b(0x13c)];if(_0x5a12d8[_0x1b976b(0x112)](process['platform'],_0x5a12d8[_0x1b976b(0xdd)]))return _0x262ad3[_0x1b976b(0x136)]||_0x5a12d8[_0x1b976b(0xd6)](_0x262ad3['HOMEDRIVE'],_0x262ad3[_0x1b976b(0xea)])||_0xe3da03||null;if(_0x5a12d8[_0x1b976b(0xf6)](process[_0x1b976b(0xe9)],_0x5a12d8[_0x1b976b(0x139)]))return _0xe3da03||(_0x2a06e8?_0x5a12d8[_0x1b976b(0xd6)](_0x5a12d8['Wpmnm'],_0x2a06e8):null);if(_0x5a12d8[_0x1b976b(0xee)](process[_0x1b976b(0xe9)],_0x5a12d8[_0x1b976b(0xd3)]))return _0xe3da03||(_0x5a12d8[_0x1b976b(0xf3)](process[_0x1b976b(0xef)](),0x0)?_0x5a12d8['FOidn']:_0x2a06e8?_0x5a12d8[_0x1b976b(0xcc)](_0x5a12d8[_0x1b976b(0xe7)],_0x2a06e8):null);return _0x5a12d8['SJeOb'](_0xe3da03,null);}}function a66_0x404b(){const _0x8f0edc=['RubvK','QSQCd','tmpdir','OAWnV','BwFjF','RkAzZ','match','agent','lazyEntries','fileName','VKrFh','stdout','platform','HOMEPATH','KVEqs','USER','winstonLogger','TmdUd','getuid','Bcrxl','hOMqq','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','XYkIl','IFDAc','Error\x20trying\x20to\x20download\x20percy\x20binary','ZFmsw','readFileSync','close','fiYqB','HOME','percy.exe','download','5444166LzamWy','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','52NuHLrg','nGyQU','GIQYf','url','LOGNAME','Corrupt\x20percy\x20binary,\x20retrying','createWriteStream','TASPA','--version','QZLYD','vvjXe','validateBinary','ZUwBx','hYcaB','X_OK','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','SJeOb','parse','HZltp','YAdCp','66835OTfnhb','join','nUPsU','trXUb','zOJSy','WInKd','kPBZo','10420eArHsX','5288iZrukD','aoTXx','UigGq','.browserstack','hQbYY','tKKEZ','yauzl','vNXay','0755','eXxOH','accessSync','/home/','/root','statSync','port','cwd','host','homedir','/percy-linux.zip','chmod','darwin','path','FOidn','12265OlmUSB','.zip','win32','76335tIzkij','USERPROFILE','759908vtrJfW','/percy-win.zip','nsypp','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','W_OK','USERNAME','/Users/','AgjGT','ahwdQ','readEntry','wQXjE','open','SHDTc','length','data','OAMYi','36IZzvHu','2302029WovnRe','test','https://github.com/percy/cli/releases/latest/download','uKVWz','entry','TohtB','proxyPort','error','LNAME','get','pipe','PGHDA','oqmQR','gFvni','useCaCertificate','OeENb','openReadStream','end','proxyHost','../logger','aPmbo','XmBfi','1176xDktNg','oFaYg','mkdirSync','follow-redirects','oLMaU','AqfXI','vFgQu','NhYdO'];a66_0x404b=function(){return _0x8f0edc;};return a66_0x404b();}module['exports']=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a67_0x135752=a67_0x31e8;function a67_0x1022(){var _0x476be5=['801212nrtXcJ','exports','363087pDigSl','6xdZqgI','437395lXFbeb','6464297cnYXqn','392ZtSxXx','989945eEtkGg','increment','1108290DvBOYV','getName','get','2051370EnhAWO'];a67_0x1022=function(){return _0x476be5;};return a67_0x1022();}function a67_0x31e8(_0x4c7266,_0x2e305d){var _0x10228b=a67_0x1022();return a67_0x31e8=function(_0x31e8d6,_0x2df01f){_0x31e8d6=_0x31e8d6-0x8d;var _0x316663=_0x10228b[_0x31e8d6];return _0x316663;},a67_0x31e8(_0x4c7266,_0x2e305d);}(function(_0x2debf8,_0xea7af4){var _0x55828a=a67_0x31e8,_0x495fdb=_0x2debf8();while(!![]){try{var _0x3f237f=parseInt(_0x55828a(0x97))/0x1+parseInt(_0x55828a(0x92))/0x2+parseInt(_0x55828a(0x8f))/0x3+-parseInt(_0x55828a(0x93))/0x4+parseInt(_0x55828a(0x8d))/0x5+parseInt(_0x55828a(0x96))/0x6*(parseInt(_0x55828a(0x98))/0x7)+-parseInt(_0x55828a(0x99))/0x8*(parseInt(_0x55828a(0x95))/0x9);if(_0x3f237f===_0xea7af4)break;else _0x495fdb['push'](_0x495fdb['shift']());}catch(_0x2ad953){_0x495fdb['push'](_0x495fdb['shift']());}}}(a67_0x1022,0xbda9c));class PercyCaptureMap{#map={};[a67_0x135752(0x8e)](_0x4cb37f,_0x1f5e3b){!this.#map[_0x4cb37f]&&(this.#map[_0x4cb37f]={}),!this.#map[_0x4cb37f][_0x1f5e3b]&&(this.#map[_0x4cb37f][_0x1f5e3b]=0x0),this.#map[_0x4cb37f][_0x1f5e3b]++;}[a67_0x135752(0x90)](_0x19be72,_0x4423a1){var _0x17533f=a67_0x135752;return _0x19be72+'-'+_0x4423a1+'-'+this[_0x17533f(0x91)](_0x19be72,_0x4423a1);}[a67_0x135752(0x91)](_0x3866f1,_0x399595){if(!this.#map[_0x3866f1])return 0x0;if(!this.#map[_0x3866f1][_0x399595])return 0x0;return this.#map[_0x3866f1][_0x399595];}}module[a67_0x135752(0x94)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a68_0x4e068a=a68_0x5722;(function(_0x353f06,_0x46e7e){var _0x34fc11=a68_0x5722,_0x2eaac3=_0x353f06();while(!![]){try{var _0x5378af=-parseInt(_0x34fc11(0x12f))/0x1+-parseInt(_0x34fc11(0x137))/0x2+parseInt(_0x34fc11(0x12e))/0x3*(parseInt(_0x34fc11(0x136))/0x4)+-parseInt(_0x34fc11(0x132))/0x5+-parseInt(_0x34fc11(0x13b))/0x6+-parseInt(_0x34fc11(0x12d))/0x7*(parseInt(_0x34fc11(0x135))/0x8)+parseInt(_0x34fc11(0x134))/0x9;if(_0x5378af===_0x46e7e)break;else _0x2eaac3['push'](_0x2eaac3['shift']());}catch(_0x5416cb){_0x2eaac3['push'](_0x2eaac3['shift']());}}}(a68_0x5118,0xa87a6));var a68_0x22204e={};a68_0x22204e[a68_0x4e068a(0x139)]=[a68_0x4e068a(0x138)],a68_0x22204e[a68_0x4e068a(0x12a)]=['click',a68_0x4e068a(0x130)];function a68_0x5118(){var _0x32073d=['testcase','207725lBkFdm','3sUnaFg','465099TnzXiO','sendKeys','auto','2442870bnytfD','exports','19315242hEIECi','72aMXqlX','1903412kqyyrs','352490Pswdfi','takeScreenshot','driver','click','3209472yzjwld','element','screenshot'];a68_0x5118=function(){return _0x32073d;};return a68_0x5118();}var a68_0x5dccff={};a68_0x5dccff[a68_0x4e068a(0x139)]=[a68_0x4e068a(0x138)];var a68_0x4562d9={};a68_0x4562d9[a68_0x4e068a(0x12a)]=[a68_0x4e068a(0x13a)];function a68_0x5722(_0x47a0dd,_0x5308f1){var _0x511884=a68_0x5118();return a68_0x5722=function(_0x5722d3,_0x4d81b9){_0x5722d3=_0x5722d3-0x12a;var _0x5a653b=_0x511884[_0x5722d3];return _0x5a653b;},a68_0x5722(_0x47a0dd,_0x5308f1);}var a68_0x37ae9f={};a68_0x37ae9f[a68_0x4e068a(0x131)]=a68_0x22204e,a68_0x37ae9f[a68_0x4e068a(0x12b)]=a68_0x5dccff,a68_0x37ae9f['click']=a68_0x4562d9,a68_0x37ae9f[a68_0x4e068a(0x12c)]={},a68_0x37ae9f['manual']={},module[a68_0x4e068a(0x133)]=a68_0x37ae9f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x576d0a=a69_0x49c0;(function(_0x5719f6,_0x58762b){const _0x41af7a=a69_0x49c0,_0x2f5e38=_0x5719f6();while(!![]){try{const _0x4bcb0e=-parseInt(_0x41af7a(0x152))/0x1*(parseInt(_0x41af7a(0x148))/0x2)+parseInt(_0x41af7a(0x158))/0x3*(-parseInt(_0x41af7a(0x154))/0x4)+parseInt(_0x41af7a(0x153))/0x5*(parseInt(_0x41af7a(0x13b))/0x6)+parseInt(_0x41af7a(0x14f))/0x7*(-parseInt(_0x41af7a(0x14a))/0x8)+parseInt(_0x41af7a(0x14e))/0x9*(parseInt(_0x41af7a(0x134))/0xa)+-parseInt(_0x41af7a(0x142))/0xb*(parseInt(_0x41af7a(0x147))/0xc)+-parseInt(_0x41af7a(0x156))/0xd*(-parseInt(_0x41af7a(0x150))/0xe);if(_0x4bcb0e===_0x58762b)break;else _0x2f5e38['push'](_0x2f5e38['shift']());}catch(_0x229bcf){_0x2f5e38['push'](_0x2f5e38['shift']());}}}(a69_0x173e,0x8a3e0));function a69_0x173e(){const _0x238067=['82trSCcm','error','8GxvVdM','percy:screenshot','browserstackPlatformIndex','@percy/selenium-webdriver','526572xInvDm','6649153VqRsIy','14HHOJlo','platformIndex','25757DaeSfx','978240Mbpdnb','4AedoCz','ADFWW','40399723oSWZwj','screenshotApp','2192901KpqRAv','percy:screenshot-app','../../helpers/testhub/utils','testCase','winstonLogger','name','RnFig','../logger','fQdvF','thTestCaseExecutionId','80OWLzAA','@percy/appium-app','uuid','LrpmO','browserstackPercyBestPlatform','iaPRf','apply','12czpZzB','wtiaA','qtdAh','../performance-tester','cVlgA','Unsupported\x20driver\x20for\x20percy','HBFaF','260821VobsHe','measure','screenshot','ABxDI','length','336DzHoTn'];a69_0x173e=function(){return _0x238067;};return a69_0x173e();}const tryRequire=function(_0x486dc8,_0x3d956d){const _0x37ed7e=a69_0x49c0,_0xc37ebd={'iaPRf':function(_0x3ffcdf,_0x490de7){return _0x3ffcdf(_0x490de7);}};try{return _0xc37ebd[_0x37ed7e(0x139)](require,_0x486dc8);}catch{return _0x3d956d;}},percySnapshot=tryRequire(a69_0x576d0a(0x14d),null),{percyScreenshot}=tryRequire(a69_0x576d0a(0x14d),{}),percyAppScreenshot=require(a69_0x576d0a(0x135)),{getCurrentTestData}=require(a69_0x576d0a(0x12c)),PerformanceTester=require(a69_0x576d0a(0x13e)),logger=require(a69_0x576d0a(0x131))[a69_0x576d0a(0x12e)];percySnapshot&&(exports['snapshot']=async function(){const _0x5e5263=a69_0x576d0a,_0x198e9f={'NyKFy':function(_0x44000c,_0x2d80fa){return _0x44000c!==_0x2d80fa;},'dkYgg':function(_0x32d86b,_0x46cde9){return _0x32d86b>=_0x46cde9;},'HBFaF':function(_0x1bd460){return _0x1bd460();},'LrpmO':'percy:snapshot'};if(global[_0x5e5263(0x14c)]&&_0x198e9f['NyKFy'](global['browserstackPlatformIndex'],global[_0x5e5263(0x138)]))return;const _0x5b0f39=_0x198e9f['dkYgg'](arguments['length'],0x2)?arguments[0x1]:'',_0x258311=_0x198e9f[_0x5e5263(0x141)](getCurrentTestData),_0x3c45ea={};return _0x3c45ea[_0x5e5263(0x12f)]=_0x5b0f39,_0x3c45ea[_0x5e5263(0x12d)]=_0x258311[_0x5e5263(0x12f)]||'',_0x3c45ea[_0x5e5263(0x133)]=_0x258311[_0x5e5263(0x136)]||'',_0x3c45ea['platformIndex']=global['browserstackPlatformIndex'],await PerformanceTester[_0x5e5263(0x143)](_0x198e9f[_0x5e5263(0x137)],()=>percySnapshot[_0x5e5263(0x13a)](null,arguments),_0x3c45ea);});percyScreenshot?exports[a69_0x576d0a(0x144)]=async function(){const _0x4f80e5=a69_0x576d0a,_0x2a0614={'ADFWW':function(_0x5a7fd6,_0x5f3d99){return _0x5a7fd6>=_0x5f3d99;},'wtiaA':function(_0x21006c){return _0x21006c();},'RnFig':_0x4f80e5(0x14b)},_0x59ff0c=_0x2a0614[_0x4f80e5(0x155)](arguments['length'],0x2)?arguments[0x1]:'',_0x59d139=_0x2a0614[_0x4f80e5(0x13c)](getCurrentTestData),_0x4fc35e={};return _0x4fc35e[_0x4f80e5(0x12f)]=_0x59ff0c,_0x4fc35e[_0x4f80e5(0x12d)]=_0x59d139[_0x4f80e5(0x12f)]||'',_0x4fc35e['thTestCaseExecutionId']=_0x59d139['uuid']||'',_0x4fc35e[_0x4f80e5(0x151)]=global['browserstackPlatformIndex'],await PerformanceTester[_0x4f80e5(0x143)](_0x2a0614[_0x4f80e5(0x130)],()=>percyScreenshot['apply'](null,arguments),_0x4fc35e);}:exports[a69_0x576d0a(0x144)]=()=>{const _0x428624=a69_0x576d0a,_0x9e3ffb={};_0x9e3ffb[_0x428624(0x132)]=_0x428624(0x140);const _0x5af26f=_0x9e3ffb;logger[_0x428624(0x149)](_0x5af26f['fQdvF']);};function a69_0x49c0(_0x435355,_0x25cea0){const _0x173e9c=a69_0x173e();return a69_0x49c0=function(_0x49c034,_0x5d39e4){_0x49c034=_0x49c034-0x12c;let _0x436cc6=_0x173e9c[_0x49c034];return _0x436cc6;},a69_0x49c0(_0x435355,_0x25cea0);}exports[a69_0x576d0a(0x157)]=async function(){const _0x5f3c13=a69_0x576d0a,_0x502f24={'cVlgA':function(_0xb6ce56,_0x244736){return _0xb6ce56>=_0x244736;},'ABxDI':function(_0x59aaf0){return _0x59aaf0();},'qtdAh':_0x5f3c13(0x159)},_0x505f9e=_0x502f24[_0x5f3c13(0x13f)](arguments[_0x5f3c13(0x146)],0x2)?arguments[0x1]:'',_0x24b5a0=_0x502f24[_0x5f3c13(0x145)](getCurrentTestData),_0x4ac0bc={};return _0x4ac0bc[_0x5f3c13(0x12f)]=_0x505f9e,_0x4ac0bc[_0x5f3c13(0x12d)]=_0x24b5a0[_0x5f3c13(0x12f)]||'',_0x4ac0bc['thTestCaseExecutionId']=_0x24b5a0[_0x5f3c13(0x136)]||'',_0x4ac0bc[_0x5f3c13(0x151)]=global[_0x5f3c13(0x14c)],await PerformanceTester[_0x5f3c13(0x143)](_0x502f24[_0x5f3c13(0x13d)],()=>percyAppScreenshot[_0x5f3c13(0x13a)](null,arguments),_0x4ac0bc);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a70_0x1ca5(_0x56758e,_0x1fed16){var _0x39a71f=a70_0x39a7();return a70_0x1ca5=function(_0x1ca55e,_0x23fe3d){_0x1ca55e=_0x1ca55e-0x71;var _0x42ef52=_0x39a71f[_0x1ca55e];return _0x42ef52;},a70_0x1ca5(_0x56758e,_0x1fed16);}var a70_0x2c0118=a70_0x1ca5;function a70_0x39a7(){var _0x21ca02=['7XMCYde','862975TyUzUW','./Percy','3787560AxFkLp','exports','6101359WzMDEC','28wtohsy','2760606cKqrHT','466682nSpQZw','12maAFjg','30RbfKoF','3647936pkFpuK','964263bYvVwq'];a70_0x39a7=function(){return _0x21ca02;};return a70_0x39a7();}(function(_0x20dc1d,_0x848e9c){var _0x5d99ed=a70_0x1ca5,_0x2b21a5=_0x20dc1d();while(!![]){try{var _0x3deae8=parseInt(_0x5d99ed(0x72))/0x1+-parseInt(_0x5d99ed(0x7b))/0x2*(parseInt(_0x5d99ed(0x7c))/0x3)+parseInt(_0x5d99ed(0x79))/0x4*(-parseInt(_0x5d99ed(0x74))/0x5)+-parseInt(_0x5d99ed(0x76))/0x6+parseInt(_0x5d99ed(0x73))/0x7*(parseInt(_0x5d99ed(0x71))/0x8)+parseInt(_0x5d99ed(0x7a))/0x9+-parseInt(_0x5d99ed(0x7d))/0xa*(-parseInt(_0x5d99ed(0x78))/0xb);if(_0x3deae8===_0x848e9c)break;else _0x2b21a5['push'](_0x2b21a5['shift']());}catch(_0x2641c1){_0x2b21a5['push'](_0x2b21a5['shift']());}}}(a70_0x39a7,0x96edf),module[a70_0x2c0118(0x77)]=require(a70_0x2c0118(0x75)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a71_0x33c05d=a71_0x2c3c;function a71_0x409b(){const _0x58017c=['debug','hNoVR','9878lXHtFu','qkYCw','Error\x20patching\x20','screenshot','percyCaptureMode','isUndefined','./Percy','./PercyCaptureMap','../performance-tester','browserstackPercyMap','\x20for\x20percy\x20','error','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present','manual','../helper','prototype','8739ZYphQS','browserstackSessionName','element','percyAutoCapture','percy','reduce','driver','getPercyOptions','QliWd','measureWrapper','chrome','4178964BKaudT','browser','9196cdGoZC','nestedKeyValue','stopPercy','then','platforms','14442910kQmFXi','dFPGS','stop','edge','screenshotApp','Stopping\x20percy','VTilE','9bOdrGe','getName','start','yPwIn','browserStackPercyOptions','getBestPlatformForPercySnapshot','browserstackPercyBestPlatform','Starting\x20percy','startPercy','patchDriverPercy','deviceName','55476rXrjTM','CDzzX','OVSec','firefox','getDriver','toLowerCase','153355SoUqhQ','14CwtxSc','percy:start','TQrEE','2395iGaEmY','patch','init','tiMob','7LyclNk','1906984hTzyAe','forEach','apply','increment','safari','AvzoV','sqbem'];a71_0x409b=function(){return _0x58017c;};return a71_0x409b();}(function(_0x384361,_0x6d9d7a){const _0x51abb5=a71_0x2c3c,_0x147b01=_0x384361();while(!![]){try{const _0x364f35=parseInt(_0x51abb5(0x1ea))/0x1+-parseInt(_0x51abb5(0x1eb))/0x2*(-parseInt(_0x51abb5(0x20c))/0x3)+-parseInt(_0x51abb5(0x1cd))/0x4*(parseInt(_0x51abb5(0x1ee))/0x5)+-parseInt(_0x51abb5(0x217))/0x6*(parseInt(_0x51abb5(0x1f2))/0x7)+-parseInt(_0x51abb5(0x1f3))/0x8+parseInt(_0x51abb5(0x1d9))/0x9*(-parseInt(_0x51abb5(0x1d2))/0xa)+-parseInt(_0x51abb5(0x1fc))/0xb*(-parseInt(_0x51abb5(0x1e4))/0xc);if(_0x364f35===_0x6d9d7a)break;else _0x147b01['push'](_0x147b01['shift']());}catch(_0x4ef5a5){_0x147b01['push'](_0x147b01['shift']());}}}(a71_0x409b,0xce415));const Percy=require(a71_0x33c05d(0x202)),PercySDK=require('./PercySDK'),PercyCaptureModes=require('./PercyCaptureModes'),PercyCaptureMap=require(a71_0x33c05d(0x203)),logger=require('../logger')['winstonLogger'],helper=require(a71_0x33c05d(0x20a)),PerformanceTester=require(a71_0x33c05d(0x204));function a71_0x2c3c(_0x312d83,_0x41f92a){const _0x409be9=a71_0x409b();return a71_0x2c3c=function(_0x2c3cf5,_0x56c556){_0x2c3cf5=_0x2c3cf5-0x1cc;let _0x16a04a=_0x409be9[_0x2c3cf5];return _0x16a04a;},a71_0x2c3c(_0x312d83,_0x41f92a);}exports[a71_0x33c05d(0x1e1)]=PerformanceTester[a71_0x33c05d(0x215)](a71_0x33c05d(0x1ec),async _0x47ef8f=>{const _0x1d7b2d=a71_0x33c05d,_0x4a6bce={};_0x4a6bce[_0x1d7b2d(0x1f1)]=_0x1d7b2d(0x1e0);const _0x123a17=_0x4a6bce;logger[_0x1d7b2d(0x1fa)](_0x123a17[_0x1d7b2d(0x1f1)]);const _0x2e10bf=new Percy(_0x47ef8f),_0x416378=await _0x2e10bf[_0x1d7b2d(0x1db)]();if(_0x416378)return _0x2e10bf;return null;}),exports[a71_0x33c05d(0x1cf)]=PerformanceTester[a71_0x33c05d(0x215)]('percy:stop',async _0x1fd8f8=>{const _0x5da1eb=a71_0x33c05d,_0x2e9f36={};_0x2e9f36[_0x5da1eb(0x1e6)]=_0x5da1eb(0x1d7);const _0x4c3959=_0x2e9f36;return logger[_0x5da1eb(0x1fa)](_0x4c3959[_0x5da1eb(0x1e6)]),_0x1fd8f8[_0x5da1eb(0x1d4)]();}),exports['getBestPlatformForPercySnapshot']=_0x565b5b=>{const _0x1e1537=a71_0x33c05d,_0x63f6f3={};_0x63f6f3[_0x1e1537(0x1f8)]=function(_0x5c3454,_0x3326a4){return _0x5c3454<_0x3326a4;};const _0x273606=_0x63f6f3,_0x4d5cc9={};_0x4d5cc9[_0x1e1537(0x216)]=0x0,_0x4d5cc9[_0x1e1537(0x1e7)]=0x1,_0x4d5cc9[_0x1e1537(0x1d5)]=0x2,_0x4d5cc9[_0x1e1537(0x1f7)]=0x3;const _0x54b0fe=_0x4d5cc9;return _0x565b5b[_0x1e1537(0x211)]((_0x55575a,_0x20f4a5,_0x250b0b)=>{const _0x7aa126=_0x1e1537,_0x416ae8=_0x565b5b[_0x55575a];if(_0x20f4a5['deviceName'])return _0x55575a;if(_0x416ae8[_0x7aa126(0x1e3)])return _0x250b0b;const _0x3f1b36=_0x20f4a5[_0x7aa126(0x1cc)]?_0x20f4a5['browser']:_0x20f4a5['browserName'];if(_0x3f1b36&&_0x273606[_0x7aa126(0x1f8)](_0x54b0fe[_0x3f1b36['toLowerCase']()],_0x54b0fe[_0x3f1b36[_0x7aa126(0x1e9)]()]))return _0x250b0b;return _0x55575a;},0x0);},exports[a71_0x33c05d(0x20f)]=async(_0x60f208,_0x3394ce,_0x5d2e9e)=>{const _0x5c07ab=a71_0x33c05d,_0x1e6bd9={};_0x1e6bd9[_0x5c07ab(0x1f9)]=_0x5c07ab(0x208);const _0x19da98=_0x1e6bd9,_0x191e1d=_0x60f208[_0x5c07ab(0x205)];if(helper[_0x5c07ab(0x201)](_0x60f208[_0x5c07ab(0x20d)])){logger[_0x5c07ab(0x1fa)](_0x19da98['sqbem']);return;}const _0x86c5e=_0x191e1d[_0x5c07ab(0x1da)](_0x60f208[_0x5c07ab(0x20d)],_0x3394ce);_0x5d2e9e['app']?await PercySDK[_0x5c07ab(0x1d6)](_0x60f208,_0x86c5e):await PercySDK[_0x5c07ab(0x1ff)](_0x60f208,_0x86c5e),_0x191e1d[_0x5c07ab(0x1f6)](_0x60f208['browserstackSessionName'],_0x3394ce);},exports[a71_0x33c05d(0x1e2)]=(_0x15eff0,_0x21c051,_0x3ee7cc)=>{const _0x53c103=a71_0x33c05d,_0x1ddfc2={};_0x1ddfc2['dFPGS']='browserStackPercyOptions',_0x1ddfc2[_0x53c103(0x1fb)]='percy',_0x1ddfc2[_0x53c103(0x1d8)]=function(_0x385f00,_0x3d19c5){return _0x385f00!==_0x3d19c5;},_0x1ddfc2['yPwIn']=_0x53c103(0x209);const _0x5961cb=_0x1ddfc2;if(!helper[_0x53c103(0x1ce)](_0x3ee7cc,[_0x5961cb[_0x53c103(0x1d3)],_0x5961cb[_0x53c103(0x1fb)]]))return;if(_0x3ee7cc[_0x53c103(0x1dd)][_0x53c103(0x210)]&&_0x3ee7cc[_0x53c103(0x1dd)][_0x53c103(0x200)]&&_0x5961cb[_0x53c103(0x1d8)](_0x3ee7cc[_0x53c103(0x1dd)][_0x53c103(0x200)],_0x5961cb[_0x53c103(0x1dc)])&&!_0x15eff0[_0x53c103(0x205)]){global[_0x53c103(0x20d)]&&(_0x15eff0['browserstackSessionName']=global['browserstackSessionName']),_0x15eff0[_0x53c103(0x205)]=new PercyCaptureMap();const _0xb0d69e=PercyCaptureModes[_0x3ee7cc['browserStackPercyOptions'][_0x53c103(0x200)]];_0xb0d69e[_0x53c103(0x212)]&&_0xb0d69e[_0x53c103(0x212)][_0x53c103(0x1f4)](_0x3f8aa4=>this['overrideXforPercy'](_0x15eff0,_0x3f8aa4,_0x3ee7cc)),_0xb0d69e[_0x53c103(0x20e)]&&_0xb0d69e['element'][_0x53c103(0x1f4)](_0x39790b=>{const _0x223897=_0x53c103;if(_0x21c051[_0x223897(0x20b)][_0x223897(0x1ef)+_0x39790b])return;_0x21c051[_0x223897(0x20b)][_0x223897(0x1ef)+_0x39790b]=!![];const _0x2b11f4=_0x21c051[_0x223897(0x20b)][_0x39790b];_0x21c051[_0x223897(0x20b)][_0x39790b]=async function(){const _0x18dc5b=_0x223897;let _0x4297cc=_0x2b11f4[_0x18dc5b(0x1f5)](this,arguments);_0x4297cc&&_0x4297cc[_0x18dc5b(0x1d0)]&&(_0x4297cc=await _0x4297cc);try{const _0x5871aa=this[_0x18dc5b(0x1e8)]();await exports[_0x18dc5b(0x20f)](_0x5871aa,_0x39790b,_0x3ee7cc);}catch(_0x23405e){logger[_0x18dc5b(0x207)](_0x18dc5b(0x1fe)+_0x39790b+_0x18dc5b(0x206)+_0x23405e);}return _0x4297cc;};});}},exports['overrideXforPercy']=function(_0x4d6c06,_0x537ed0,_0x5401be){const _0x1ce48a=a71_0x33c05d,_0x4abe45={};_0x4abe45[_0x1ce48a(0x214)]=function(_0x2f9dc8,_0x4c91e9){return _0x2f9dc8+_0x4c91e9;},_0x4abe45[_0x1ce48a(0x1e5)]=_0x1ce48a(0x1ef),_0x4abe45[_0x1ce48a(0x1ed)]=function(_0x5ac93f,_0x39b065){return _0x5ac93f+_0x39b065;},_0x4abe45[_0x1ce48a(0x1fd)]=_0x1ce48a(0x1f0);const _0x458773=_0x4abe45,_0x38e56d=_0x458773['QliWd'](_0x458773[_0x1ce48a(0x1e5)],_0x537ed0),_0x3aa6f5=_0x458773[_0x1ce48a(0x1ed)](_0x458773[_0x1ce48a(0x1fd)],_0x537ed0),_0x16d914=this;if(_0x4d6c06[_0x38e56d]||!_0x4d6c06[_0x537ed0])return;_0x4d6c06[_0x38e56d]=!![],_0x4d6c06[_0x3aa6f5]=_0x4d6c06[_0x537ed0],_0x4d6c06[_0x537ed0]=async()=>{const _0x194e29=_0x1ce48a;try{await _0x16d914[_0x194e29(0x20f)](_0x4d6c06,_0x537ed0,_0x5401be);}catch(_0x3dce11){logger[_0x194e29(0x207)](_0x194e29(0x1fe)+_0x537ed0+_0x194e29(0x206)+_0x3dce11);}return await _0x4d6c06[_0x3aa6f5][_0x194e29(0x1f5)](_0x4d6c06,arguments);};},exports[a71_0x33c05d(0x213)]=_0x5405c4=>{const _0x1034fd=a71_0x33c05d,_0x1e771e={};_0x1e771e[_0x1034fd(0x210)]=_0x5405c4['percy'],_0x1e771e['percyCaptureMode']=_0x5405c4[_0x1034fd(0x200)];const _0x2e95bd=_0x1e771e;_0x5405c4[_0x1034fd(0x210)]&&(_0x2e95bd[_0x1034fd(0x1df)]=exports[_0x1034fd(0x1de)](_0x5405c4[_0x1034fd(0x1d1)]));;return _0x2e95bd;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a71_0x4efd(_0x82dcf7,_0x508e6f){const _0xb75529=a71_0xb755();return a71_0x4efd=function(_0x4efde9,_0x634f){_0x4efde9=_0x4efde9-0x136;let _0x48bcc9=_0xb75529[_0x4efde9];return _0x48bcc9;},a71_0x4efd(_0x82dcf7,_0x508e6f);}const a71_0x4a5bd8=a71_0x4efd;(function(_0x33dd2b,_0x47a0f7){const _0x432928=a71_0x4efd,_0x8e5a86=_0x33dd2b();while(!![]){try{const _0xacc15=parseInt(_0x432928(0x19a))/0x1+parseInt(_0x432928(0x154))/0x2*(-parseInt(_0x432928(0x1ae))/0x3)+parseInt(_0x432928(0x169))/0x4+parseInt(_0x432928(0x16b))/0x5*(parseInt(_0x432928(0x136))/0x6)+parseInt(_0x432928(0x13e))/0x7+parseInt(_0x432928(0x164))/0x8*(-parseInt(_0x432928(0x159))/0x9)+-parseInt(_0x432928(0x1a4))/0xa;if(_0xacc15===_0x47a0f7)break;else _0x8e5a86['push'](_0x8e5a86['shift']());}catch(_0x4ee5b2){_0x8e5a86['push'](_0x8e5a86['shift']());}}}(a71_0xb755,0xb0845));function a71_0xb755(){const _0x4c7ca0=['Hrvwa','xvAHr','Error\x20in\x20doing\x20csv\x20operations:\x20','LHBqZ','_events','gtNXh','jOdIH','entries','_measureEvents','bGaFV','code','stopAndGenerate','_observer','calculateTimeFromEvents','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','catch','startMonitoring','<h1>Performance\x20Report</h1>','isEnabled','Vhmnq','cuGYm','stack','env','bFKBc','calculateTimesFromMultipleFiles','1418808mzHsvl','concat','</td><td>','-end','tUIAY','<tr><td>','observe','perf_hooks','Error\x20stopping\x20monitoring','Performance\x20report\x20is\x20at\x20','3316210BkmDLf','brCky','</td></tr>','performance-report.json','toString','-start','existsSync','function','mark','hBJXU','3lZVsdp','yizVX','finalize','getCleanedPerfEvents','Error\x20in\x20writing\x20html\x20','slice','push','_errorEvents','121812tukdjt','unlinkSync','parse','false','vORxN','errors','./test-observability/utils','USViI','2392873nKpPCF','LIPdV','readFileSync','imglQ','measures','oXUvx','LJMvh','winstonLogger','error-report.json','join','finally','pushPerfMeasures','cwd','LfDun','duration','apply','finalizeErrors','message','nWgYZ','writeFileSync','generateJSON','\x20for\x20all\x20processes\x20is\x20','1232642pcBSnk','errorReportFileName','entryTypes','match','</tbody></table></body></html>','9JjzhkA','generateHTMLReport','reduce','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','cINXT','measure','stopMonitoring','./logger','QmxiD','finalizePerfMeasures','jsonReportFileName','10789048MtfDgk','forEach','measureWrapper','name','getEventsFromJSON','4792132VAihVg','iGJcr','15QzQmiU','IJlck','fphWk','pushErrors','started','appendFileSync','path','stringify','errorFile','CIZMf','map','GZUcj','nwSlj','iLThD','Oqafe','disconnect','lcqNk','length','BROWSERSTACK_SDK_INSTRUMENTATION','captureError','performance-own.html','YsIpj'];a71_0xb755=function(){return _0x4c7ca0;};return a71_0xb755();}const fs=require('fs'),{performance,PerformanceObserver}=require(a71_0x4a5bd8(0x1a1)),{sleep,debug}=require(a71_0x4a5bd8(0x13c)),path=require(a71_0x4a5bd8(0x171)),logger=require(a71_0x4a5bd8(0x160))[a71_0x4a5bd8(0x145)];class PerformanceTester{static ['_observer'];static ['_events']=[];static [a71_0x4a5bd8(0x189)]=[];static [a71_0x4a5bd8(0x1b5)]=[];static ['started']=![];static [a71_0x4a5bd8(0x163)]='performance-report.json';static [a71_0x4a5bd8(0x155)]=a71_0x4a5bd8(0x146);static[a71_0x4a5bd8(0x191)](_0x35964a=a71_0x4a5bd8(0x1a7),_0x5b9b0e=a71_0x4a5bd8(0x146)){const _0x4a3e30=a71_0x4a5bd8,_0x54a731={};_0x54a731['fphWk']=function(_0x5c69b0,_0x584d2a){return _0x5c69b0===_0x584d2a;},_0x54a731['iLThD']='measure',_0x54a731[_0x4a3e30(0x177)]=_0x4a3e30(0x1ab);const _0x1d9ae0=_0x54a731;if(this['started']||!this[_0x4a3e30(0x193)]())return;this[_0x4a3e30(0x18d)]=new PerformanceObserver(_0x3c779b=>{const _0x4ecbb2=_0x4a3e30,_0x34adb7={'YsIpj':function(_0x507f11,_0x27b68c){const _0x103aad=a71_0x4efd;return _0x1d9ae0[_0x103aad(0x16d)](_0x507f11,_0x27b68c);},'zpWTV':_0x1d9ae0[_0x4ecbb2(0x178)]};_0x3c779b['getEntries']()['forEach'](_0x1bf7f9=>{const _0x535ca7=_0x4ecbb2;_0x34adb7[_0x535ca7(0x180)](_0x1bf7f9['entryType'],_0x34adb7['zpWTV'])?this[_0x535ca7(0x189)][_0x535ca7(0x1b4)](_0x1bf7f9):this['_events'][_0x535ca7(0x1b4)](_0x1bf7f9);});});const _0x12ceff={};_0x12ceff['buffered']=!![],_0x12ceff[_0x4a3e30(0x156)]=[_0x1d9ae0[_0x4a3e30(0x177)],_0x1d9ae0[_0x4a3e30(0x178)]],this[_0x4a3e30(0x18d)][_0x4a3e30(0x1a0)](_0x12ceff),this[_0x4a3e30(0x16f)]=!![],this[_0x4a3e30(0x163)]=_0x35964a,this[_0x4a3e30(0x155)]=_0x5b9b0e;}static['getPerformance'](){return performance;}static[a71_0x4a5bd8(0x18e)](_0x416a70,_0x422508){const _0x297321=a71_0x4a5bd8,_0x7e9f29={};_0x7e9f29[_0x297321(0x14b)]=function(_0x4940a8,_0x589f51){return _0x4940a8+_0x589f51;},_0x7e9f29[_0x297321(0x1af)]=function(_0x593d0f,_0x181453){return _0x593d0f||_0x181453;},_0x7e9f29[_0x297321(0x13f)]=function(_0x24e733,_0x236488){return _0x24e733===_0x236488;};const _0x1525eb=_0x7e9f29,_0x4aeb9c={};if(!_0x416a70||_0x1525eb['LIPdV'](_0x416a70[_0x297321(0x17c)],0x0))return;_0x416a70[_0x297321(0x175)](_0x131a94=>{const _0x10c6af=_0x297321;!_0x4aeb9c[_0x131a94[_0x10c6af(0x167)]]&&(_0x4aeb9c[_0x131a94[_0x10c6af(0x167)]]=0x0),_0x4aeb9c[_0x131a94[_0x10c6af(0x167)]]+=_0x131a94[_0x10c6af(0x14c)];});const _0x1afa3c=_0x422508[_0x297321(0x15b)]((_0xa6cba3,_0x372825)=>{const _0x2c8f67=_0x297321;return _0x1525eb[_0x2c8f67(0x14b)](_0x4aeb9c[_0x372825],_0x1525eb[_0x2c8f67(0x1af)](_0xa6cba3,0x0));},0x0);return _0x1afa3c;}static async[a71_0x4a5bd8(0x199)](_0x1c4037,_0x5c0910){const _0x1d338d=a71_0x4a5bd8,_0x504988={'cINXT':function(_0x173d26,_0x1477bc){return _0x173d26+_0x1477bc;},'CIZMf':function(_0x412659,_0x38ad5d){return _0x412659||_0x38ad5d;},'pBBJZ':function(_0x812dc,_0x123e80){return _0x812dc===_0x123e80;},'IhCXI':function(_0x53199c,_0x1b81a7){return _0x53199c(_0x1b81a7);}};if(!_0x1c4037||_0x504988['pBBJZ'](_0x1c4037['length'],0x0))return 0x0;const _0x1ec88b=[];for(const _0x955cf0 of _0x1c4037){const _0x34ff20=path[_0x1d338d(0x147)]('.',_0x955cf0);try{const _0x409351=this[_0x1d338d(0x168)](_0x34ff20);_0x409351[_0x1d338d(0x175)](_0x5adbe0=>{const _0x24e6e7=_0x1d338d;!_0x1ec88b[_0x5adbe0[_0x24e6e7(0x167)]]&&(_0x1ec88b[_0x5adbe0[_0x24e6e7(0x167)]]=0x0),_0x1ec88b[_0x5adbe0['name']]+=_0x5adbe0[_0x24e6e7(0x14c)];});}catch(_0x55849c){_0x504988['IhCXI'](debug,_0x1d338d(0x183)+_0x55849c['toString']());}}const _0x5206f5=_0x5c0910[_0x1d338d(0x15b)]((_0xcf76cf,_0xdee695)=>{const _0x1b1ab5=_0x1d338d;return _0x504988[_0x1b1ab5(0x15d)](_0x1ec88b[_0xdee695],_0x504988[_0x1b1ab5(0x174)](_0xcf76cf,0x0));},0x0);return _0x504988['IhCXI'](debug,'Time\x20for\x20'+_0x5c0910+_0x1d338d(0x153)+_0x5206f5),_0x5206f5;}static[a71_0x4a5bd8(0x168)](_0x9baa13){const _0x2f4067=a71_0x4a5bd8;if(!fs[_0x2f4067(0x1aa)](_0x9baa13))return[];return JSON[_0x2f4067(0x138)](fs[_0x2f4067(0x140)](_0x9baa13)[_0x2f4067(0x1a8)]());}static async[a71_0x4a5bd8(0x18c)](_0x45c3ee=a71_0x4a5bd8(0x17f),_0x23ac0a=null){const _0x5f5c4e=a71_0x4a5bd8,_0x4600cf={'FTWId':function(_0x42244a,_0x2d4987){return _0x42244a(_0x2d4987);},'auWuv':function(_0xf58f36,_0x408cc1){return _0xf58f36(_0x408cc1);},'brCky':function(_0x8ed9ce,_0x1d61cf){return _0x8ed9ce(_0x1d61cf);}};if(!this[_0x5f5c4e(0x16f)])return;await _0x4600cf[_0x5f5c4e(0x1a5)](sleep,0x1e),this['_observer'][_0x5f5c4e(0x17a)](),this[_0x5f5c4e(0x16f)]=![],this[_0x5f5c4e(0x152)](this[_0x5f5c4e(0x185)]);const _0x71f5eb=this[_0x5f5c4e(0x15a)](this[_0x5f5c4e(0x185)]),_0x15adfd=path[_0x5f5c4e(0x147)](process[_0x5f5c4e(0x14a)](),_0x45c3ee);fs['writeFile'](_0x15adfd,_0x71f5eb,_0xde2682=>{const _0x40e93d=_0x5f5c4e;if(_0xde2682){_0x4600cf['FTWId'](debug,_0x40e93d(0x1b2)+_0xde2682[_0x40e93d(0x1a8)]());return;}_0x4600cf['auWuv'](debug,_0x40e93d(0x1a3)+_0x15adfd);});if(_0x23ac0a)return this[_0x5f5c4e(0x18e)](this[_0x5f5c4e(0x185)],_0x23ac0a);}static[a71_0x4a5bd8(0x15a)](_0xb43db1){const _0x249a00=a71_0x4a5bd8,_0x595c97={};_0x595c97[_0x249a00(0x150)]=_0x249a00(0x18f),_0x595c97[_0x249a00(0x16a)]=_0x249a00(0x192),_0x595c97[_0x249a00(0x144)]=_0x249a00(0x15c),_0x595c97[_0x249a00(0x13d)]=_0x249a00(0x158);const _0x124b19=_0x595c97;let _0x14559f=_0x124b19[_0x249a00(0x150)];return _0x14559f+=_0x124b19['iGJcr'],_0x14559f+=_0x124b19[_0x249a00(0x144)],_0xb43db1[_0x249a00(0x165)](_0x395c59=>{const _0x4bc308=_0x249a00;_0x14559f+=_0x4bc308(0x19f)+_0x395c59['name']+_0x4bc308(0x19c)+_0x395c59[_0x4bc308(0x14c)]+_0x4bc308(0x1a6);}),_0x14559f+=_0x124b19['USViI'],_0x14559f;}static['generateJSON'](_0x2e1fa2){const _0xb6eb1=a71_0x4a5bd8;if(!this['jsonReportFileName'])return;const _0x55b0dd={};_0x2e1fa2[_0xb6eb1(0x175)](_0x36fc17=>{const _0x34df4f=_0xb6eb1;!_0x55b0dd[_0x36fc17['name']]&&(_0x55b0dd[_0x36fc17[_0x34df4f(0x167)]]=0x0),_0x55b0dd[_0x36fc17['name']]+=_0x36fc17[_0x34df4f(0x14c)];});const _0x40ca2f=Object[_0xb6eb1(0x188)](_0x55b0dd)[_0xb6eb1(0x175)](([_0x3021dd,_0x235622])=>{const _0x96cdf5=_0xb6eb1,_0x141d3b={};return _0x141d3b[_0x96cdf5(0x167)]=_0x3021dd,_0x141d3b['duration']=_0x235622,_0x141d3b;});fs[_0xb6eb1(0x151)](this[_0xb6eb1(0x163)],JSON[_0xb6eb1(0x172)](_0x40ca2f));}static[a71_0x4a5bd8(0x193)](){const _0x1d64dc=a71_0x4a5bd8,_0xd5ea85={};_0xd5ea85[_0x1d64dc(0x181)]=function(_0x319762,_0x187016){return _0x319762===_0x187016;},_0xd5ea85[_0x1d64dc(0x184)]=_0x1d64dc(0x139);const _0x16ceb1=_0xd5ea85;return!_0x16ceb1[_0x1d64dc(0x181)](process[_0x1d64dc(0x197)][_0x1d64dc(0x17d)],_0x16ceb1[_0x1d64dc(0x184)]);}static[a71_0x4a5bd8(0x15e)](_0x592947,_0xcdea90,_0xd36faf=null,_0x3d2cbd=null){const _0x3d886a=a71_0x4a5bd8,_0x46862e={};_0x46862e[_0x3d886a(0x141)]=function(_0x93089a,_0x87358d){return _0x93089a+_0x87358d;},_0x46862e[_0x3d886a(0x13a)]=_0x3d886a(0x1a9),_0x46862e[_0x3d886a(0x187)]=function(_0x17d163,_0x1b9d43){return _0x17d163+_0x1b9d43;},_0x46862e[_0x3d886a(0x179)]=_0x3d886a(0x19d),_0x46862e[_0x3d886a(0x143)]=function(_0x3790b2,_0x5c41bf){return _0x3790b2 instanceof _0x5c41bf;};const _0x1688af=_0x46862e;try{if(this[_0x3d886a(0x16f)]&&this[_0x3d886a(0x193)]()){let _0x4f15a7=_0x592947;_0xd36faf&&(_0x4f15a7=_0x592947+'['+JSON[_0x3d886a(0x172)](_0xd36faf)+']');const _0x10e8f6=_0x1688af[_0x3d886a(0x141)](_0x4f15a7,_0x1688af[_0x3d886a(0x13a)]),_0x4c4554=_0x1688af[_0x3d886a(0x187)](_0x4f15a7,_0x1688af[_0x3d886a(0x179)]);performance[_0x3d886a(0x1ac)](_0x10e8f6);const _0x52f6bf=_0xcdea90[_0x3d886a(0x14d)](null,_0x3d2cbd);if(_0x1688af[_0x3d886a(0x143)](_0x52f6bf,Promise))return new Promise((_0x3aa5aa,_0x370dc9)=>{const _0x4f00ba=_0x3d886a;_0x52f6bf['then'](_0x260996=>_0x3aa5aa(_0x260996))[_0x4f00ba(0x190)](_0x4b3035=>_0x370dc9(_0x4b3035))[_0x4f00ba(0x148)](()=>{const _0x42daa7=_0x4f00ba;performance[_0x42daa7(0x1ac)](_0x4c4554),performance[_0x42daa7(0x15e)](_0x4f15a7,_0x10e8f6,_0x4c4554);});});;return performance[_0x3d886a(0x1ac)](_0x4c4554),performance['measure'](_0x4f15a7,_0x10e8f6,_0x4c4554),_0x52f6bf;};return _0xcdea90[_0x3d886a(0x14d)](null,_0x3d2cbd);}catch(_0x117620){return _0xcdea90[_0x3d886a(0x14d)](null,_0x3d2cbd);}}static[a71_0x4a5bd8(0x166)](_0x5614f6,_0x2ade80){const _0x38efbb=this;return function(){const _0x555c7b=a71_0x4efd,_0xe9df78=[_0x5614f6,_0x2ade80,null][_0x555c7b(0x19b)](arguments);return _0x38efbb[_0x555c7b(0x15e)][_0x555c7b(0x14d)](_0x38efbb,_0xe9df78);};}static[a71_0x4a5bd8(0x1b1)](){const _0x3719ed=a71_0x4a5bd8,_0x542114={};_0x542114[_0x3719ed(0x176)]=function(_0x29286c,_0x841b42){return _0x29286c/_0x841b42;},_0x542114[_0x3719ed(0x161)]=function(_0x342f84,_0x53df34){return _0x342f84+_0x53df34;},_0x542114[_0x3719ed(0x182)]=function(_0x21094f,_0x3756b7){return _0x21094f*_0x3756b7;},_0x542114[_0x3719ed(0x186)]=function(_0xa2f413,_0x23b185){return _0xa2f413+_0x23b185;};const _0x5f8ae0=_0x542114,_0x50c94d=/(^.*)\[(.*)\]$/,_0x2c030c={},_0x31a107={};for(const _0xc6bbc4 of this['_measureEvents']){const _0x5d0b35=_0xc6bbc4[_0x3719ed(0x167)][_0x3719ed(0x157)](_0x50c94d),_0x36abd7={};_0x36abd7[_0x3719ed(0x167)]=_0xc6bbc4[_0x3719ed(0x167)],_0x36abd7[_0x3719ed(0x14c)]=_0xc6bbc4['duration']||0x0;const _0x1e1117=_0x36abd7;_0x5d0b35&&(_0x1e1117[_0x3719ed(0x167)]=_0x5d0b35[0x1],_0x1e1117['meta']=JSON[_0x3719ed(0x138)](_0x5d0b35[0x2]));if(_0x2c030c[_0x1e1117[_0x3719ed(0x167)]]){const _0x346619=_0x2c030c[_0x1e1117[_0x3719ed(0x167)]],_0x4ff33a=_0x31a107[_0x1e1117[_0x3719ed(0x167)]];_0x2c030c[_0x1e1117[_0x3719ed(0x167)]]['duration']=_0x5f8ae0[_0x3719ed(0x176)](_0x5f8ae0[_0x3719ed(0x161)](_0x5f8ae0['xvAHr'](_0x346619[_0x3719ed(0x14c)],_0x4ff33a),_0x1e1117[_0x3719ed(0x14c)]),_0x5f8ae0['gtNXh'](0x1,_0x4ff33a)),_0x31a107[_0x1e1117[_0x3719ed(0x167)]]++;}else _0x2c030c[_0x1e1117[_0x3719ed(0x167)]]=_0x1e1117,_0x31a107[_0x1e1117[_0x3719ed(0x167)]]=0x1;}return Object['values'](_0x2c030c);}static[a71_0x4a5bd8(0x149)](){const _0x29463d=a71_0x4a5bd8,_0x39fc3c={};_0x39fc3c[_0x29463d(0x18a)]=function(_0x4f0e8d,_0x1dd686){return _0x4f0e8d===_0x1dd686;},_0x39fc3c[_0x29463d(0x19e)]=function(_0x3cc84a,_0x4f7895){return _0x3cc84a+_0x4f7895;};const _0x53456c=_0x39fc3c;if(_0x53456c[_0x29463d(0x18a)](this[_0x29463d(0x189)][_0x29463d(0x17c)],0x0))return;const _0x223858=this[_0x29463d(0x1b1)](),_0x2a2218=JSON[_0x29463d(0x172)](_0x223858),_0x420792=_0x53456c['tUIAY'](_0x2a2218[_0x29463d(0x1b3)](0x1,-0x1),',');fs[_0x29463d(0x170)](this[_0x29463d(0x163)],_0x420792);}static[a71_0x4a5bd8(0x162)](){const _0x1447e4=a71_0x4a5bd8,_0x2b3575={};_0x2b3575['cuGYm']=function(_0x2ecc6a,_0x64e68b){return _0x2ecc6a===_0x64e68b;},_0x2b3575['IJlck']=function(_0x19446f,_0xba0b64){return _0x19446f>_0xba0b64;};const _0x40f8f1=_0x2b3575;if(!this['started']||_0x40f8f1[_0x1447e4(0x195)](this[_0x1447e4(0x189)]['length'],0x0))return[];if(!fs[_0x1447e4(0x1aa)](this[_0x1447e4(0x163)]))return this['_measureEvents'];let _0x1851d8=fs[_0x1447e4(0x140)](this[_0x1447e4(0x163)])[_0x1447e4(0x1a8)]();_0x1851d8='['+_0x1851d8[_0x1447e4(0x1b3)](0x0,-0x1)+']';let _0x1e4991=JSON[_0x1447e4(0x138)](_0x1851d8);return _0x40f8f1[_0x1447e4(0x16c)](this[_0x1447e4(0x189)]['length'],0x0)&&(_0x1e4991=_0x1e4991[_0x1447e4(0x19b)](this['getCleanedPerfEvents']())),this[_0x1447e4(0x18d)][_0x1447e4(0x17a)](),fs[_0x1447e4(0x137)](this['jsonReportFileName']),_0x1e4991;}static[a71_0x4a5bd8(0x16e)](){const _0x202809=a71_0x4a5bd8,_0xf4efbc={};_0xf4efbc['hBJXU']=function(_0x4403e1,_0x332ca8){return _0x4403e1===_0x332ca8;},_0xf4efbc['bFKBc']=function(_0x275597,_0x3e6b9e){return _0x275597+_0x3e6b9e;};const _0x31e761=_0xf4efbc;if(_0x31e761[_0x202809(0x1ad)](this[_0x202809(0x1b5)][_0x202809(0x17c)],0x0))return;const _0x5925c5=JSON[_0x202809(0x172)](this[_0x202809(0x1b5)]),_0x236e64=_0x31e761[_0x202809(0x198)](_0x5925c5['slice'](0x1,-0x1),',');fs[_0x202809(0x170)](this[_0x202809(0x173)],_0x236e64);}static[a71_0x4a5bd8(0x14e)](){const _0x26cdbf=a71_0x4a5bd8,_0x570a61={};_0x570a61[_0x26cdbf(0x194)]=function(_0x63fe54,_0xde59e1){return _0x63fe54>_0xde59e1;};const _0xe38c42=_0x570a61;if(!fs[_0x26cdbf(0x1aa)](this[_0x26cdbf(0x155)]))return this[_0x26cdbf(0x1b5)];let _0x3e4523=fs[_0x26cdbf(0x140)](this['errorReportFileName'])[_0x26cdbf(0x1a8)]();_0x3e4523='['+_0x3e4523[_0x26cdbf(0x1b3)](0x0,-0x1)+']';let _0xa95ecd=JSON[_0x26cdbf(0x138)](_0x3e4523);return _0xe38c42[_0x26cdbf(0x194)](this[_0x26cdbf(0x1b5)][_0x26cdbf(0x17c)],0x0)&&(_0xa95ecd=_0xa95ecd[_0x26cdbf(0x19b)](this[_0x26cdbf(0x1b5)])),fs[_0x26cdbf(0x137)](this[_0x26cdbf(0x155)]),_0xa95ecd;}static[a71_0x4a5bd8(0x17e)](_0x36c83b){const _0x393cb9=a71_0x4a5bd8;if(!this['isEnabled']())return;this[_0x393cb9(0x1b5)][_0x393cb9(0x1b4)]({'message':_0x36c83b[_0x393cb9(0x14f)],'trace':_0x36c83b[_0x393cb9(0x196)],'code':_0x36c83b[_0x393cb9(0x18b)]||null,'time':new Date()});}static[a71_0x4a5bd8(0x15f)](){const _0x5a750a=a71_0x4a5bd8,_0x232522={};_0x232522['lcqNk']=_0x5a750a(0x1a2);const _0x455c7d=_0x232522;try{if(!this[_0x5a750a(0x193)]())return;this[_0x5a750a(0x18d)]['disconnect'](),this['pushPerfMeasures'](),this[_0x5a750a(0x16e)]();}catch{logger['debug'](_0x455c7d[_0x5a750a(0x17b)]);}}static[a71_0x4a5bd8(0x1b0)](){const _0xccd667=a71_0x4a5bd8,_0x26e5eb=this['finalizePerfMeasures'](),_0x31a1c9=this[_0xccd667(0x14e)]();if(!this[_0xccd667(0x193)]()){const _0x48907e={};return _0x48907e[_0xccd667(0x142)]=[],_0x48907e[_0xccd667(0x13b)]=[],_0x48907e;}const _0x58115c={};return _0x58115c['measures']=_0x26e5eb,_0x58115c[_0xccd667(0x13b)]=_0x31a1c9,_0x58115c;}}module['exports']=PerformanceTester;
|
|
1
|
+
const a72_0xb27e77=a72_0x5149;function a72_0x5149(_0x6e1d31,_0x7d35b4){const _0x3b22da=a72_0x3b22();return a72_0x5149=function(_0x5149be,_0x4590b5){_0x5149be=_0x5149be-0x19d;let _0x98f611=_0x3b22da[_0x5149be];return _0x98f611;},a72_0x5149(_0x6e1d31,_0x7d35b4);}(function(_0x15ddca,_0x1f6abf){const _0x231611=a72_0x5149,_0x40f873=_0x15ddca();while(!![]){try{const _0xb52c0d=-parseInt(_0x231611(0x1fe))/0x1+parseInt(_0x231611(0x1c3))/0x2+parseInt(_0x231611(0x1f4))/0x3*(parseInt(_0x231611(0x1bd))/0x4)+-parseInt(_0x231611(0x202))/0x5*(-parseInt(_0x231611(0x211))/0x6)+-parseInt(_0x231611(0x1e7))/0x7+parseInt(_0x231611(0x1f5))/0x8*(parseInt(_0x231611(0x1e6))/0x9)+-parseInt(_0x231611(0x21a))/0xa*(parseInt(_0x231611(0x1fd))/0xb);if(_0xb52c0d===_0x1f6abf)break;else _0x40f873['push'](_0x40f873['shift']());}catch(_0x2303bc){_0x40f873['push'](_0x40f873['shift']());}}}(a72_0x3b22,0x23dd9));const fs=require('fs'),{performance,PerformanceObserver}=require(a72_0xb27e77(0x1ba)),{sleep,debug}=require(a72_0xb27e77(0x1b9)),path=require(a72_0xb27e77(0x1e4)),logger=require(a72_0xb27e77(0x1b7))[a72_0xb27e77(0x20c)];function a72_0x3b22(){const _0x1a8bca=['335950ipNMZM','eOTzd','_events','debug','getEntries','disconnect','apYNq','MchHs','parse','errorReportFileName','xBsav','error-report.json','stopAndGenerate','ebfHj','performance-report.json','appendFileSync','errorFile','stopMonitoring','finalize','_errorEvents','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','performance-own.html','ruHyG','reduce','pushPerfMeasures','started','measureWrapper','code','readFileSync','entries','generateJSON','BaXeO','./logger','Performance\x20report\x20is\x20at\x20','./test-observability/utils','perf_hooks','existsSync','entryType','27596gaNwsM','oJZhh','VURiP','unlinkSync','BSaMD','getPerformance','233274jtRjSl','_measureEvents','getEventsFromJSON','finalizeErrors','bklCH','join','MIZix','length','</td><td>','measure','pGRaU','wmXiZ','XOdPl','</tbody></table></body></html>','generateHTMLReport','getCleanedPerfEvents','Error\x20in\x20doing\x20csv\x20operations:\x20','slice','finally','Error\x20stopping\x20monitoring','ByMJD','concat','mlKlO','EIUKH','uCckD','apply','writeFileSync','isEnabled','lJbls','entryTypes','measures','toString','CjoQY','path','umEZw','45UQXDDh','631988crYMjQ','forEach','meta','</td></tr>','false','XDQCa','\x20for\x20all\x20processes\x20is\x20','JdAEv','then','-start','env','stack','_observer','21PbPmZe','161432xSfesy','finalizePerfMeasures','errors','<h1>Performance\x20Report</h1>','name','push','TTNzQ','stringify','44AxKMka','100543wpIkQp','mark','cwd','map','1031435nJfLRV','HuFGS','match','SFaZw','fbndF','exports','writeFile','IZIDK','jsonReportFileName','duration','winstonLogger','vvwCF','Error\x20in\x20writing\x20html\x20','BROWSERSTACK_SDK_INSTRUMENTATION','DaTDo','6QBCwSw','catch','calculateTimeFromEvents','FwlpS','fGpoC','pushErrors','calculateTimesFromMultipleFiles','ipENC','dxIgk'];a72_0x3b22=function(){return _0x1a8bca;};return a72_0x3b22();}class PerformanceTester{static [a72_0xb27e77(0x1f3)];static ['_events']=[];static [a72_0xb27e77(0x1c4)]=[];static [a72_0xb27e77(0x1aa)]=[];static [a72_0xb27e77(0x1b0)]=![];static ['jsonReportFileName']=a72_0xb27e77(0x1a5);static [a72_0xb27e77(0x1a0)]=a72_0xb27e77(0x1a2);static['startMonitoring'](_0x489f67=a72_0xb27e77(0x1a5),_0x46aaec=a72_0xb27e77(0x1a2)){const _0x7a2100=a72_0xb27e77,_0x1842e1={};_0x1842e1[_0x7a2100(0x21b)]=function(_0x2c7561,_0x9c77ee){return _0x2c7561===_0x9c77ee;},_0x1842e1[_0x7a2100(0x1ec)]='measure',_0x1842e1[_0x7a2100(0x1ee)]='function';const _0x5c6b15=_0x1842e1;if(this[_0x7a2100(0x1b0)]||!this['isEnabled']())return;this[_0x7a2100(0x1f3)]=new PerformanceObserver(_0x296f13=>{const _0x4e8b8a=_0x7a2100,_0x45b112={'FwlpS':function(_0x29e574,_0x1a2b0d){const _0x4c92fa=a72_0x5149;return _0x5c6b15[_0x4c92fa(0x21b)](_0x29e574,_0x1a2b0d);},'BSaMD':_0x5c6b15[_0x4e8b8a(0x1ec)]};_0x296f13[_0x4e8b8a(0x21e)]()[_0x4e8b8a(0x1e8)](_0x2e56c8=>{const _0x250383=_0x4e8b8a;_0x45b112[_0x250383(0x214)](_0x2e56c8[_0x250383(0x1bc)],_0x45b112[_0x250383(0x1c1)])?this['_measureEvents'][_0x250383(0x1fa)](_0x2e56c8):this[_0x250383(0x21c)][_0x250383(0x1fa)](_0x2e56c8);});});const _0x77cceb={};_0x77cceb['buffered']=!![],_0x77cceb[_0x7a2100(0x1e0)]=[_0x5c6b15[_0x7a2100(0x1ee)],_0x5c6b15[_0x7a2100(0x1ec)]],this['_observer']['observe'](_0x77cceb),this[_0x7a2100(0x1b0)]=!![],this[_0x7a2100(0x20a)]=_0x489f67,this[_0x7a2100(0x1a0)]=_0x46aaec;}static[a72_0xb27e77(0x1c2)](){return performance;}static[a72_0xb27e77(0x213)](_0x143227,_0x397336){const _0xfa50ee=a72_0xb27e77,_0x45bdaf={};_0x45bdaf['UfTVL']=function(_0x4aca10,_0x2be23e){return _0x4aca10+_0x2be23e;},_0x45bdaf['umEZw']=function(_0x535565,_0x391828){return _0x535565||_0x391828;},_0x45bdaf['CjoQY']=function(_0x941c8f,_0x427235){return _0x941c8f===_0x427235;};const _0x4e9316=_0x45bdaf,_0x10ec7d={};if(!_0x143227||_0x4e9316[_0xfa50ee(0x1e3)](_0x143227[_0xfa50ee(0x1ca)],0x0))return;_0x143227[_0xfa50ee(0x201)](_0x17fffb=>{const _0x4e5d3e=_0xfa50ee;!_0x10ec7d[_0x17fffb[_0x4e5d3e(0x1f9)]]&&(_0x10ec7d[_0x17fffb[_0x4e5d3e(0x1f9)]]=0x0),_0x10ec7d[_0x17fffb[_0x4e5d3e(0x1f9)]]+=_0x17fffb[_0x4e5d3e(0x20b)];});const _0xbb73f3=_0x397336[_0xfa50ee(0x1ae)]((_0x163c87,_0x591a31)=>{const _0x2aad29=_0xfa50ee;return _0x4e9316['UfTVL'](_0x10ec7d[_0x591a31],_0x4e9316[_0x2aad29(0x1e5)](_0x163c87,0x0));},0x0);return _0xbb73f3;}static async[a72_0xb27e77(0x217)](_0xa18db8,_0x4cc7a9){const _0x148646=a72_0xb27e77,_0x2d713a={'ipENC':function(_0x528370,_0x49a700){return _0x528370+_0x49a700;},'ruHyG':function(_0x3c3c6e,_0x36beeb){return _0x3c3c6e||_0x36beeb;},'DaTDo':function(_0x168f58,_0xd072cf){return _0x168f58===_0xd072cf;},'lJbls':function(_0x146319,_0x357728){return _0x146319(_0x357728);},'MchHs':function(_0x5eca37,_0x3d2160){return _0x5eca37(_0x3d2160);}};if(!_0xa18db8||_0x2d713a[_0x148646(0x210)](_0xa18db8['length'],0x0))return 0x0;const _0xc54ca9=[];for(const _0x21b687 of _0xa18db8){const _0x4afba7=path[_0x148646(0x1c8)]('.',_0x21b687);try{const _0x5316fe=this[_0x148646(0x1c5)](_0x4afba7);_0x5316fe[_0x148646(0x201)](_0x300dfd=>{const _0x475ccf=_0x148646;!_0xc54ca9[_0x300dfd[_0x475ccf(0x1f9)]]&&(_0xc54ca9[_0x300dfd[_0x475ccf(0x1f9)]]=0x0),_0xc54ca9[_0x300dfd[_0x475ccf(0x1f9)]]+=_0x300dfd[_0x475ccf(0x20b)];});}catch(_0x3869c4){_0x2d713a[_0x148646(0x1df)](debug,_0x148646(0x1d3)+_0x3869c4[_0x148646(0x1e2)]());}}const _0x2bff34=_0x4cc7a9[_0x148646(0x1ae)]((_0x1b042e,_0xaa4f51)=>{const _0x3a1cba=_0x148646;return _0x2d713a[_0x3a1cba(0x218)](_0xc54ca9[_0xaa4f51],_0x2d713a[_0x3a1cba(0x1ad)](_0x1b042e,0x0));},0x0);return _0x2d713a[_0x148646(0x19e)](debug,'Time\x20for\x20'+_0x4cc7a9+_0x148646(0x1ed)+_0x2bff34),_0x2bff34;}static[a72_0xb27e77(0x1c5)](_0x2ffc5c){const _0x377574=a72_0xb27e77;if(!fs[_0x377574(0x1bb)](_0x2ffc5c))return[];return JSON['parse'](fs[_0x377574(0x1b3)](_0x2ffc5c)['toString']());}static async[a72_0xb27e77(0x1a3)](_0x18517f=a72_0xb27e77(0x1ac),_0x5db831=null){const _0x58d22f=a72_0xb27e77,_0x295323={'uCckD':function(_0x3f00f4,_0x36ef03){return _0x3f00f4(_0x36ef03);},'XOdPl':function(_0x2240d4,_0x11953a){return _0x2240d4(_0x11953a);},'aoDuG':function(_0x45ae25,_0x338219){return _0x45ae25(_0x338219);}};if(!this[_0x58d22f(0x1b0)])return;await _0x295323['aoDuG'](sleep,0x1e),this[_0x58d22f(0x1f3)][_0x58d22f(0x21f)](),this[_0x58d22f(0x1b0)]=![],this[_0x58d22f(0x1b5)](this['_events']);const _0x486d5a=this['generateHTMLReport'](this[_0x58d22f(0x21c)]),_0xbf2dd0=path[_0x58d22f(0x1c8)](process[_0x58d22f(0x200)](),_0x18517f);fs[_0x58d22f(0x208)](_0xbf2dd0,_0x486d5a,_0x11f9ea=>{const _0x4afb8e=_0x58d22f;if(_0x11f9ea){_0x295323[_0x4afb8e(0x1db)](debug,_0x4afb8e(0x20e)+_0x11f9ea[_0x4afb8e(0x1e2)]());return;}_0x295323[_0x4afb8e(0x1cf)](debug,_0x4afb8e(0x1b8)+_0xbf2dd0);});if(_0x5db831)return this[_0x58d22f(0x213)](this[_0x58d22f(0x21c)],_0x5db831);}static[a72_0xb27e77(0x1d1)](_0x13e071){const _0x1e8faf=a72_0xb27e77,_0x51f488={};_0x51f488[_0x1e8faf(0x1ce)]=_0x1e8faf(0x1ab),_0x51f488['BaXeO']=_0x1e8faf(0x1f8),_0x51f488[_0x1e8faf(0x20d)]='<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>',_0x51f488['bklCH']=_0x1e8faf(0x1d0);const _0x57ba6d=_0x51f488;let _0x38ccfd=_0x57ba6d['wmXiZ'];return _0x38ccfd+=_0x57ba6d[_0x1e8faf(0x1b6)],_0x38ccfd+=_0x57ba6d[_0x1e8faf(0x20d)],_0x13e071[_0x1e8faf(0x1e8)](_0x281d66=>{const _0x547243=_0x1e8faf;_0x38ccfd+='<tr><td>'+_0x281d66['name']+_0x547243(0x1cb)+_0x281d66[_0x547243(0x20b)]+_0x547243(0x1ea);}),_0x38ccfd+=_0x57ba6d[_0x1e8faf(0x1c7)],_0x38ccfd;}static[a72_0xb27e77(0x1b5)](_0x47cd05){const _0x484cbf=a72_0xb27e77;if(!this[_0x484cbf(0x20a)])return;const _0x16b2b9={};_0x47cd05['map'](_0x3e12b9=>{const _0xda7aad=_0x484cbf;!_0x16b2b9[_0x3e12b9['name']]&&(_0x16b2b9[_0x3e12b9[_0xda7aad(0x1f9)]]=0x0),_0x16b2b9[_0x3e12b9['name']]+=_0x3e12b9[_0xda7aad(0x20b)];});const _0x25b5d0=Object[_0x484cbf(0x1b4)](_0x16b2b9)[_0x484cbf(0x201)](([_0x13dab1,_0x3e6ccf])=>{const _0x433e96=_0x484cbf,_0x56ebcb={};return _0x56ebcb[_0x433e96(0x1f9)]=_0x13dab1,_0x56ebcb[_0x433e96(0x20b)]=_0x3e6ccf,_0x56ebcb;});fs[_0x484cbf(0x1dd)](this[_0x484cbf(0x20a)],JSON[_0x484cbf(0x1fc)](_0x25b5d0));}static[a72_0xb27e77(0x1de)](){const _0x5b8141=a72_0xb27e77,_0x1f793b={};_0x1f793b[_0x5b8141(0x215)]=function(_0x1e634a,_0x264b1e){return _0x1e634a===_0x264b1e;},_0x1f793b[_0x5b8141(0x205)]=_0x5b8141(0x1eb);const _0x95f584=_0x1f793b;return!_0x95f584['fGpoC'](process[_0x5b8141(0x1f1)][_0x5b8141(0x20f)],_0x95f584[_0x5b8141(0x205)]);}static[a72_0xb27e77(0x1cc)](_0x4560ee,_0x4414d0,_0x4a0a3a=null,_0x407eb4=null){const _0x3ed0d8=a72_0xb27e77,_0x53a1f7={};_0x53a1f7[_0x3ed0d8(0x1cd)]=function(_0x4f2b0e,_0x319d15){return _0x4f2b0e+_0x319d15;},_0x53a1f7['dxIgk']=_0x3ed0d8(0x1f0),_0x53a1f7['YxqCz']=function(_0x21b867,_0x2113ae){return _0x21b867+_0x2113ae;},_0x53a1f7[_0x3ed0d8(0x1fb)]='-end',_0x53a1f7[_0x3ed0d8(0x1a4)]=function(_0x2c1cb2,_0x316031){return _0x2c1cb2 instanceof _0x316031;};const _0x23a839=_0x53a1f7;try{if(this[_0x3ed0d8(0x1b0)]&&this[_0x3ed0d8(0x1de)]()){let _0x1e9e1c=_0x4560ee;_0x4a0a3a&&(_0x1e9e1c=_0x4560ee+'['+JSON[_0x3ed0d8(0x1fc)](_0x4a0a3a)+']');const _0x283958=_0x23a839[_0x3ed0d8(0x1cd)](_0x1e9e1c,_0x23a839[_0x3ed0d8(0x219)]),_0x3f986b=_0x23a839['YxqCz'](_0x1e9e1c,_0x23a839[_0x3ed0d8(0x1fb)]);performance[_0x3ed0d8(0x1ff)](_0x283958);const _0x6f8708=_0x4414d0['apply'](null,_0x407eb4);if(_0x23a839['ebfHj'](_0x6f8708,Promise))return new Promise((_0x1c4449,_0x470c1b)=>{const _0x5e8a23=_0x3ed0d8;_0x6f8708[_0x5e8a23(0x1ef)](_0x36e06e=>_0x1c4449(_0x36e06e))[_0x5e8a23(0x212)](_0x149018=>_0x470c1b(_0x149018))[_0x5e8a23(0x1d5)](()=>{const _0x47129f=_0x5e8a23;performance['mark'](_0x3f986b),performance[_0x47129f(0x1cc)](_0x1e9e1c,_0x283958,_0x3f986b);});});;return performance[_0x3ed0d8(0x1ff)](_0x3f986b),performance['measure'](_0x1e9e1c,_0x283958,_0x3f986b),_0x6f8708;};return _0x4414d0[_0x3ed0d8(0x1dc)](null,_0x407eb4);}catch(_0x2b28e8){return _0x4414d0[_0x3ed0d8(0x1dc)](null,_0x407eb4);}}static[a72_0xb27e77(0x1b1)](_0x188ed2,_0xed640c){const _0x852a5f=this;return function(){const _0x404da3=a72_0x5149,_0x3fbd51=[_0x188ed2,_0xed640c,null][_0x404da3(0x1d8)](arguments);return _0x852a5f['measure'][_0x404da3(0x1dc)](_0x852a5f,_0x3fbd51);};}static[a72_0xb27e77(0x1d2)](){const _0x5d3408=a72_0xb27e77,_0x1f8ba3={};_0x1f8ba3[_0x5d3408(0x209)]=function(_0x3dbd99,_0x3a8d14){return _0x3dbd99/_0x3a8d14;},_0x1f8ba3[_0x5d3408(0x1d7)]=function(_0x510c28,_0xdb2490){return _0x510c28+_0xdb2490;},_0x1f8ba3[_0x5d3408(0x1a1)]=function(_0x143ce6,_0x1806ce){return _0x143ce6*_0x1806ce;};const _0x47e7d9=_0x1f8ba3,_0x374a2c=/(^.*)\[(.*)\]$/,_0x5e09ba={},_0xff3511={};for(const _0x46339e of this['_measureEvents']){const _0x271426=_0x46339e[_0x5d3408(0x1f9)][_0x5d3408(0x204)](_0x374a2c),_0x5e7c71={};_0x5e7c71[_0x5d3408(0x1f9)]=_0x46339e[_0x5d3408(0x1f9)],_0x5e7c71['duration']=_0x46339e[_0x5d3408(0x20b)]||0x0;const _0x155abd=_0x5e7c71;_0x271426&&(_0x155abd[_0x5d3408(0x1f9)]=_0x271426[0x1],_0x155abd[_0x5d3408(0x1e9)]=JSON['parse'](_0x271426[0x2]));if(_0x5e09ba[_0x155abd[_0x5d3408(0x1f9)]]){const _0x508b0b=_0x5e09ba[_0x155abd[_0x5d3408(0x1f9)]],_0x5c1dc3=_0xff3511[_0x155abd[_0x5d3408(0x1f9)]];_0x5e09ba[_0x155abd[_0x5d3408(0x1f9)]][_0x5d3408(0x20b)]=_0x47e7d9[_0x5d3408(0x209)](_0x47e7d9[_0x5d3408(0x1d7)](_0x47e7d9[_0x5d3408(0x1a1)](_0x508b0b[_0x5d3408(0x20b)],_0x5c1dc3),_0x155abd[_0x5d3408(0x20b)]),_0x47e7d9['ByMJD'](0x1,_0x5c1dc3)),_0xff3511[_0x155abd[_0x5d3408(0x1f9)]]++;}else _0x5e09ba[_0x155abd[_0x5d3408(0x1f9)]]=_0x155abd,_0xff3511[_0x155abd[_0x5d3408(0x1f9)]]=0x1;}return Object['values'](_0x5e09ba);}static['pushPerfMeasures'](){const _0x12642e=a72_0xb27e77,_0x22087e={};_0x22087e['mlKlO']=function(_0x4a55cd,_0x1bc9aa){return _0x4a55cd===_0x1bc9aa;},_0x22087e[_0x12642e(0x206)]=function(_0x13c56c,_0x4a3300){return _0x13c56c+_0x4a3300;};const _0x185ada=_0x22087e;if(_0x185ada[_0x12642e(0x1d9)](this[_0x12642e(0x1c4)][_0x12642e(0x1ca)],0x0))return;const _0xb7d043=this[_0x12642e(0x1d2)](),_0x3e757e=JSON[_0x12642e(0x1fc)](_0xb7d043),_0x23d59c=_0x185ada[_0x12642e(0x206)](_0x3e757e[_0x12642e(0x1d4)](0x1,-0x1),',');fs[_0x12642e(0x1a6)](this[_0x12642e(0x20a)],_0x23d59c);}static[a72_0xb27e77(0x1f6)](){const _0x4042e8=a72_0xb27e77,_0x5a626f={};_0x5a626f[_0x4042e8(0x1be)]=function(_0xe43c8f,_0xebf152){return _0xe43c8f===_0xebf152;},_0x5a626f[_0x4042e8(0x19d)]=function(_0x5b8475,_0x3ba73c){return _0x5b8475>_0x3ba73c;};const _0xcbc983=_0x5a626f;if(!this[_0x4042e8(0x1b0)]||_0xcbc983[_0x4042e8(0x1be)](this['_measureEvents'][_0x4042e8(0x1ca)],0x0))return[];if(!fs['existsSync'](this[_0x4042e8(0x20a)]))return this['_measureEvents'];let _0x54aba0=fs[_0x4042e8(0x1b3)](this[_0x4042e8(0x20a)])['toString']();_0x54aba0='['+_0x54aba0[_0x4042e8(0x1d4)](0x0,-0x1)+']';let _0x5a78bb=JSON[_0x4042e8(0x19f)](_0x54aba0);return _0xcbc983[_0x4042e8(0x19d)](this[_0x4042e8(0x1c4)][_0x4042e8(0x1ca)],0x0)&&(_0x5a78bb=_0x5a78bb[_0x4042e8(0x1d8)](this[_0x4042e8(0x1d2)]())),this[_0x4042e8(0x1f3)][_0x4042e8(0x21f)](),fs[_0x4042e8(0x1c0)](this[_0x4042e8(0x20a)]),_0x5a78bb;}static[a72_0xb27e77(0x216)](){const _0xd22ad3=a72_0xb27e77,_0x5970d9={};_0x5970d9[_0xd22ad3(0x1c9)]=function(_0x1a7139,_0xc67819){return _0x1a7139===_0xc67819;},_0x5970d9['HuFGS']=function(_0x1326c0,_0x48070d){return _0x1326c0+_0x48070d;};const _0x350a37=_0x5970d9;if(_0x350a37['MIZix'](this[_0xd22ad3(0x1aa)][_0xd22ad3(0x1ca)],0x0))return;const _0x376c8f=JSON[_0xd22ad3(0x1fc)](this[_0xd22ad3(0x1aa)]),_0x641567=_0x350a37[_0xd22ad3(0x203)](_0x376c8f[_0xd22ad3(0x1d4)](0x1,-0x1),',');fs[_0xd22ad3(0x1a6)](this[_0xd22ad3(0x1a7)],_0x641567);}static[a72_0xb27e77(0x1c6)](){const _0x23e778=a72_0xb27e77,_0x470864={};_0x470864['VURiP']=function(_0x2e3bc3,_0x3bf8d1){return _0x2e3bc3>_0x3bf8d1;};const _0x3d0977=_0x470864;if(!fs[_0x23e778(0x1bb)](this[_0x23e778(0x1a0)]))return this[_0x23e778(0x1aa)];let _0xa0341c=fs[_0x23e778(0x1b3)](this['errorReportFileName'])[_0x23e778(0x1e2)]();_0xa0341c='['+_0xa0341c[_0x23e778(0x1d4)](0x0,-0x1)+']';let _0x238567=JSON[_0x23e778(0x19f)](_0xa0341c);return _0x3d0977[_0x23e778(0x1bf)](this[_0x23e778(0x1aa)][_0x23e778(0x1ca)],0x0)&&(_0x238567=_0x238567[_0x23e778(0x1d8)](this[_0x23e778(0x1aa)])),fs[_0x23e778(0x1c0)](this[_0x23e778(0x1a0)]),_0x238567;}static['captureError'](_0x19fe40){const _0x264411=a72_0xb27e77;if(!this[_0x264411(0x1de)]())return;this[_0x264411(0x1aa)][_0x264411(0x1fa)]({'message':_0x19fe40['message'],'trace':_0x19fe40[_0x264411(0x1f2)],'code':_0x19fe40[_0x264411(0x1b2)]||null,'time':new Date()});}static[a72_0xb27e77(0x1a8)](){const _0x4e6c32=a72_0xb27e77,_0x3d7a60={};_0x3d7a60['EIUKH']=_0x4e6c32(0x1d6);const _0xb9f5ec=_0x3d7a60;try{if(!this[_0x4e6c32(0x1de)]())return;this[_0x4e6c32(0x1f3)][_0x4e6c32(0x21f)](),this[_0x4e6c32(0x1af)](),this['pushErrors']();}catch{logger[_0x4e6c32(0x21d)](_0xb9f5ec[_0x4e6c32(0x1da)]);}}static[a72_0xb27e77(0x1a9)](){const _0x3104ba=a72_0xb27e77,_0x5a5904=this[_0x3104ba(0x1f6)](),_0x3975a7=this[_0x3104ba(0x1c6)]();if(!this[_0x3104ba(0x1de)]()){const _0x242d1={};return _0x242d1[_0x3104ba(0x1e1)]=[],_0x242d1[_0x3104ba(0x1f7)]=[],_0x242d1;}const _0x3535e1={};return _0x3535e1[_0x3104ba(0x1e1)]=_0x5a5904,_0x3535e1['errors']=_0x3975a7,_0x3535e1;}}module[a72_0xb27e77(0x207)]=PerformanceTester;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a73_0x5495ba=a73_0x421e;(function(_0x44d693,_0x242137){const _0x1bc8c7=a73_0x421e,_0x28e20d=_0x44d693();while(!![]){try{const _0x2b4f2d=-parseInt(_0x1bc8c7(0xc6))/0x1+parseInt(_0x1bc8c7(0xb8))/0x2*(parseInt(_0x1bc8c7(0xdb))/0x3)+-parseInt(_0x1bc8c7(0xcb))/0x4+parseInt(_0x1bc8c7(0xd5))/0x5+-parseInt(_0x1bc8c7(0xc5))/0x6+parseInt(_0x1bc8c7(0xc2))/0x7+-parseInt(_0x1bc8c7(0xc7))/0x8;if(_0x2b4f2d===_0x242137)break;else _0x28e20d['push'](_0x28e20d['shift']());}catch(_0x533b94){_0x28e20d['push'](_0x28e20d['shift']());}}}(a73_0x36cc,0x5c1d4));const http=require(a73_0x5495ba(0xb7)),https=require(a73_0x5495ba(0xc0)),monkeypatch=require(a73_0x5495ba(0xd8));function a73_0x421e(_0x3acc1a,_0x2a989){const _0x36ccf6=a73_0x36cc();return a73_0x421e=function(_0x421ee7,_0x7c4a4a){_0x421ee7=_0x421ee7-0xb4;let _0x554105=_0x36ccf6[_0x421ee7];return _0x554105;},a73_0x421e(_0x3acc1a,_0x2a989);}function spy(_0x121979){const _0x517254=a73_0x5495ba,_0x5a4340={'tZcnP':function(_0xad7ef1,_0x4a53ca){return _0xad7ef1-_0x4a53ca;},'CfrsI':function(_0x3bcabd,_0x146a21,_0x2e5504){return _0x3bcabd(_0x146a21,_0x2e5504);},'GqWkN':_0x517254(0xc4),'BCLsV':function(_0x35a40c,..._0x3aaa64){return _0x35a40c(..._0x3aaa64);},'bZvOC':_0x517254(0xb9),'ftVGP':_0x517254(0xb4),'hzkvH':function(_0x583cf8,_0x1353f2,_0xa4de8d,_0x5236ee){return _0x583cf8(_0x1353f2,_0xa4de8d,_0x5236ee);},'jFXNh':_0x517254(0xd3),'cSBGR':function(_0x16e4c5,_0x3e6bad,_0x560c91,_0x49c4ab){return _0x16e4c5(_0x3e6bad,_0x560c91,_0x49c4ab);},'LTUXo':_0x517254(0xbf),'FTJxt':function(_0x391256,_0x38175e,_0x4c7271,_0x12503c){return _0x391256(_0x38175e,_0x4c7271,_0x12503c);}},_0x35d57b=(_0x219d67,_0x20881b,_0xe3843b)=>{const _0xdec47b=_0x517254,_0x419cf2={'JZirW':function(_0xaf533b,_0xf64b5a,_0x2827b3){const _0x473011=a73_0x421e;return _0x5a4340[_0x473011(0xc9)](_0xaf533b,_0xf64b5a,_0x2827b3);},'LxUDM':_0x5a4340[_0xdec47b(0xd0)],'FTlpV':function(_0xc74ad3,..._0x4e3cda){const _0xb6c3e9=_0xdec47b;return _0x5a4340[_0xb6c3e9(0xb5)](_0xc74ad3,..._0x4e3cda);}},_0x3afae3=_0x5a4340[_0xdec47b(0xc9)](_0x219d67,_0x20881b,_0xe3843b);let _0x1db209=Date[_0xdec47b(0xbd)](),_0xa0dcb9;const _0xd93ddc=_0x2c8a7f=>{const _0x11f2ab=_0xdec47b,_0x5744f7={};_0x5744f7[_0x11f2ab(0xc8)]=_0x20881b['host']||_0x20881b['hostname'],_0x5744f7[_0x11f2ab(0xc3)]=_0x20881b[_0x11f2ab(0xc3)],_0x5744f7[_0x11f2ab(0xbb)]=_0x20881b[_0x11f2ab(0xbb)],_0x5744f7[_0x11f2ab(0xce)]=_0x20881b[_0x11f2ab(0xce)],_0x419cf2['JZirW'](_0x121979,_0x2c8a7f,_0x5744f7);};return _0x3afae3[_0xdec47b(0xcc)](_0x5a4340[_0xdec47b(0xcf)],_0x4e3999=>{const _0x253422=_0xdec47b,_0x2d3054=_0x5a4340[_0x253422(0xda)](Date[_0x253422(0xbd)](),_0x1db209),_0x4bb771={};_0x4bb771[_0x253422(0xcd)]=_0x20881b['host']||_0x20881b[_0x253422(0xcd)],_0x4bb771[_0x253422(0xc3)]=_0x20881b[_0x253422(0xc3)],_0x4bb771[_0x253422(0xbb)]=_0x20881b['method'],_0x4bb771[_0x253422(0xce)]=_0x20881b[_0x253422(0xce)],_0x4bb771[_0x253422(0xd1)]=_0x4e3999[_0x253422(0xbc)],_0x4bb771[_0x253422(0xc1)]=_0x2d3054,_0x5a4340[_0x253422(0xc9)](_0x121979,null,_0x4bb771),_0xa0dcb9[_0x253422(0xd6)](_0x5a4340[_0x253422(0xd0)],_0xd93ddc);}),_0x3afae3['on'](_0x5a4340[_0xdec47b(0xd7)],_0x3d1f14=>{const _0x17b3b9=_0xdec47b;_0xa0dcb9=_0x3d1f14,_0x3d1f14[_0x17b3b9(0xcc)](_0x419cf2[_0x17b3b9(0xca)],_0xd93ddc);}),_0x5a4340['hzkvH'](monkeypatch,_0x3afae3,_0x5a4340[_0xdec47b(0xdd)],(_0x3b238f,..._0x4df85d)=>{const _0x5d4fd3=_0xdec47b;_0x1db209=Date[_0x5d4fd3(0xbd)](),_0x419cf2[_0x5d4fd3(0xb6)](_0x3b238f,..._0x4df85d);}),_0x3afae3;};_0x5a4340[_0x517254(0xdc)](monkeypatch,http,_0x5a4340[_0x517254(0xd9)],_0x35d57b),_0x5a4340[_0x517254(0xd4)](monkeypatch,https,_0x5a4340[_0x517254(0xd9)],_0x35d57b);}function restore(){const _0x40ffa5=a73_0x5495ba;http['request'][_0x40ffa5(0xd2)](),https[_0x40ffa5(0xbf)][_0x40ffa5(0xd2)]();}const a73_0x3d5f6b={};function a73_0x36cc(){const _0x1da008=['FTlpV','http','8yXnRhR','response','exports','method','statusCode','now','restore','request','https','duration_ms','4399927Eaejrp','path','error','459960EkTBmE','77541PKWhrz','3990864BsNqtx','host','CfrsI','LxUDM','1774500cIKZTM','once','hostname','headers','bZvOC','GqWkN','status_code','unpatch','end','FTJxt','1804095kJmelr','removeListener','ftVGP','monkeypatch','LTUXo','tZcnP','363453nbqWJo','cSBGR','jFXNh','socket','BCLsV'];a73_0x36cc=function(){return _0x1da008;};return a73_0x36cc();}a73_0x3d5f6b['spy']=spy,a73_0x3d5f6b[a73_0x5495ba(0xbe)]=restore,module[a73_0x5495ba(0xba)]=a73_0x3d5f6b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1e74b9,_0x291010){const _0x4f66cf=a74_0x4ef7,_0x537961=_0x1e74b9();while(!![]){try{const _0x73531a=parseInt(_0x4f66cf(0x142))/0x1*(parseInt(_0x4f66cf(0x14e))/0x2)+parseInt(_0x4f66cf(0x13a))/0x3+-parseInt(_0x4f66cf(0x151))/0x4+-parseInt(_0x4f66cf(0x13f))/0x5+-parseInt(_0x4f66cf(0x153))/0x6+-parseInt(_0x4f66cf(0x146))/0x7*(-parseInt(_0x4f66cf(0x14c))/0x8)+parseInt(_0x4f66cf(0x14d))/0x9*(parseInt(_0x4f66cf(0x152))/0xa);if(_0x73531a===_0x291010)break;else _0x537961['push'](_0x537961['shift']());}catch(_0x460db4){_0x537961['push'](_0x537961['shift']());}}}(a74_0x49bc,0x7f355),module['exports']=function(){const _0x34e797=a74_0x4ef7,_0x2a7ee9={'LgHaw':function(_0x149371,_0x45724c){return _0x149371===_0x45724c;},'CRxJK':'https:','YAqZM':'agent','cnLBJ':function(_0x319416,_0x479219,_0x4ae5e1){return _0x319416(_0x479219,_0x4ae5e1);},'EgZUw':function(_0x26fc44,_0x1b4122,_0x3a72c1){return _0x26fc44(_0x1b4122,_0x3a72c1);},'ChyNZ':function(_0x5ab684,_0x397b24){return _0x5ab684(_0x397b24);},'sbqFj':'http','cyTmI':_0x34e797(0x14b),'LTPKX':function(_0xca44b9,_0x9040bb){return _0xca44b9*_0x9040bb;},'eymbA':_0x34e797(0x13b)},_0x47ed29=_0x2a7ee9[_0x34e797(0x137)](require,_0x2a7ee9[_0x34e797(0x148)]),_0x596e0e=_0x2a7ee9[_0x34e797(0x137)](require,_0x2a7ee9[_0x34e797(0x149)]),_0xc3d519=_0x2a7ee9[_0x34e797(0x13e)](0x1e,0x3e8);if(_0x47ed29[_0x34e797(0x13c)]&&Object[_0x34e797(0x143)][_0x34e797(0x145)][_0x34e797(0x150)](_0x47ed29[_0x34e797(0x13c)],_0x2a7ee9[_0x34e797(0x144)]))_0x47ed29[_0x34e797(0x13c)][_0x34e797(0x13b)]=!![],_0x596e0e['globalAgent'][_0x34e797(0x13b)]=!![],_0x47ed29['globalAgent']['keepAliveMsecs']=_0xc3d519,_0x596e0e[_0x34e797(0x13c)][_0x34e797(0x140)]=_0xc3d519;else{const _0x46f69c={};_0x46f69c[_0x34e797(0x13b)]=!![],_0x46f69c['keepAliveMsecs']=_0xc3d519;const _0x49a5c8=new _0x47ed29[(_0x34e797(0x147))](_0x46f69c),_0x372fd8={};_0x372fd8[_0x34e797(0x13b)]=!![],_0x372fd8[_0x34e797(0x140)]=_0xc3d519;const _0x2d510e=new _0x596e0e[(_0x34e797(0x147))](_0x372fd8),_0xfa7126=_0x47ed29[_0x34e797(0x141)],_0x4b5365=_0x596e0e[_0x34e797(0x141)];_0x47ed29['request']=function(_0x3a93ec,_0x2f4c0f){const _0x19735d=_0x34e797;if(_0x2a7ee9[_0x19735d(0x14f)](_0x3a93ec['protocol'],_0x2a7ee9[_0x19735d(0x139)]))return _0x3a93ec[_0x2a7ee9[_0x19735d(0x14a)]]=_0x2d510e,_0x2a7ee9[_0x19735d(0x138)](_0x4b5365,_0x3a93ec,_0x2f4c0f);return _0x3a93ec[_0x2a7ee9[_0x19735d(0x14a)]]=_0x49a5c8,_0x2a7ee9[_0x19735d(0x13d)](_0xfa7126,_0x3a93ec,_0x2f4c0f);};}});function a74_0x4ef7(_0x28602e,_0x39e69d){const _0x49bca2=a74_0x49bc();return a74_0x4ef7=function(_0x4ef7e4,_0x2c6f1b){_0x4ef7e4=_0x4ef7e4-0x137;let _0x350c2d=_0x49bca2[_0x4ef7e4];return _0x350c2d;},a74_0x4ef7(_0x28602e,_0x39e69d);}function a74_0x49bc(){const _0x2895ac=['EgZUw','LTPKX','3177430bWYxfB','keepAliveMsecs','request','14237Keethc','prototype','eymbA','hasOwnProperty','12551SScFSN','Agent','sbqFj','cyTmI','YAqZM','https','3688UZKoYX','12231927PdqQNl','6jfzORi','LgHaw','call','1182804RIKNpI','10dvCHvb','5065932uEvkUg','ChyNZ','cnLBJ','CRxJK','204501wmbcFU','keepAlive','globalAgent'];a74_0x49bc=function(){return _0x2895ac;};return a74_0x49bc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a75_0x433baa=a75_0x1f44;(function(_0x4679c9,_0x48a2f2){var _0x36a338=a75_0x1f44,_0x43864f=_0x4679c9();while(!![]){try{var _0x1cb5ca=parseInt(_0x36a338(0x14e))/0x1*(parseInt(_0x36a338(0x15f))/0x2)+parseInt(_0x36a338(0x150))/0x3*(parseInt(_0x36a338(0x15c))/0x4)+parseInt(_0x36a338(0x14b))/0x5*(-parseInt(_0x36a338(0x158))/0x6)+-parseInt(_0x36a338(0x159))/0x7*(parseInt(_0x36a338(0x15b))/0x8)+-parseInt(_0x36a338(0x152))/0x9*(parseInt(_0x36a338(0x15a))/0xa)+-parseInt(_0x36a338(0x153))/0xb+parseInt(_0x36a338(0x156))/0xc*(parseInt(_0x36a338(0x149))/0xd);if(_0x1cb5ca===_0x48a2f2)break;else _0x43864f['push'](_0x43864f['shift']());}catch(_0xf75896){_0x43864f['push'](_0x43864f['shift']());}}}(a75_0x12b6,0x8bcc7));var a75_0x23be6d={};function a75_0x1f44(_0x370d0f,_0x5c4b66){var _0x12b6a1=a75_0x12b6();return a75_0x1f44=function(_0x1f440c,_0x5bf870){_0x1f440c=_0x1f440c-0x148;var _0x1c8a75=_0x12b6a1[_0x1f440c];return _0x1c8a75;},a75_0x1f44(_0x370d0f,_0x5c4b66);}a75_0x23be6d[a75_0x433baa(0x161)]=a75_0x433baa(0x155),a75_0x23be6d[a75_0x433baa(0x15d)]=a75_0x433baa(0x164),a75_0x23be6d[a75_0x433baa(0x162)]=a75_0x433baa(0x154),a75_0x23be6d['JEST']=a75_0x433baa(0x14a),a75_0x23be6d[a75_0x433baa(0x148)]=a75_0x433baa(0x14d),module[a75_0x433baa(0x151)]={'consoleHolder':Object[a75_0x433baa(0x163)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a75_0x433baa(0x14f),'EVENT_ENDPOINT':a75_0x433baa(0x160),'BATCH_ENDPOINT':a75_0x433baa(0x15e),'SCREENSHOT_ENDPOINT':a75_0x433baa(0x157),'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':a75_0x433baa(0x14c),'FRAMEWORKS':a75_0x23be6d};function a75_0x12b6(){var _0x20f9cb=['15fYIQub','.obs_test_details','cucumber','4wDXVRq','https://collector-observability.browserstack.com','552DAmJVD','exports','7107687rfQwJP','17655GtBVwT','codeceptjs','Playwright','12rjBMlB','api/v1/screenshots','1092198NvzLRh','308gUJeTK','10vPTGdV','7528BxQZeM','11236TjunxM','MOCHA','api/v1/batch','160466zIpAxu','api/v1/event','PLAYWRIGHT','CODECEPT','assign','mocha','CUCUMBER','14477814KLBfPH','jest'];a75_0x12b6=function(){return _0x20f9cb;};return a75_0x12b6();}
|