browserstack-node-sdk 1.32.11 → 1.32.13
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.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 -0
- package/src/bin/playwright/reporter/pwUtils.js +1 -1
- package/src/bin/playwright/reporter/reporter.js +1 -1
- package/src/bin/playwright/reporter/test-details.js +1 -1
- package/src/bin/playwright/sessionDetails.js +1 -1
- package/src/bin/runner.js +1 -1
- package/src/bin/setup.js +1 -1
- package/src/bin/test-runner/index.js +1 -1
- package/src/bin/test-runner/runTest.js +1 -1
- package/src/bin/test-runner/testWorker.js +1 -1
- package/src/bin/utils/constants.js +1 -1
- package/src/bin/utils/log4jsAppender.js +1 -1
- package/src/bin/utils/logPatcher.js +1 -1
- package/src/bin/utils/logReportingAPI.js +1 -1
- package/src/bin/vanilla-js/command.js +1 -1
- package/src/browserStackSdk.js +1 -1
- package/src/helpers/BrowserStackSetup.js +1 -1
- package/src/helpers/accessibility-automation/constants.js +1 -1
- package/src/helpers/accessibility-automation/helper.js +1 -1
- package/src/helpers/accessibility-automation/scripts.js +1 -1
- package/src/helpers/ats/constants.js +1 -1
- package/src/helpers/ats/helper.js +1 -1
- package/src/helpers/capsMapping.js +1 -1
- package/src/helpers/globals.js +1 -1
- package/src/helpers/helper.js +1 -1
- package/src/helpers/logger.js +1 -1
- package/src/helpers/patchHelpers.js +1 -1
- package/src/helpers/percy/Percy.js +1 -1
- package/src/helpers/percy/PercyBinary.js +1 -1
- package/src/helpers/percy/PercyCaptureMap.js +1 -1
- package/src/helpers/percy/PercyCaptureModes.js +1 -1
- package/src/helpers/percy/PercySDK.js +1 -1
- package/src/helpers/percy/index.js +1 -1
- package/src/helpers/percy/utils.js +1 -1
- package/src/helpers/performance-tester.js +1 -1
- package/src/helpers/request-spy.js +1 -1
- package/src/helpers/setKeepAlive.js +1 -1
- package/src/helpers/test-observability/constants.js +1 -1
- package/src/helpers/test-observability/error-handler.js +1 -1
- package/src/helpers/test-observability/requestQueueHandler.js +1 -1
- package/src/helpers/test-observability/sessionHandler.js +1 -1
- package/src/helpers/test-observability/utils.js +1 -1
- package/src/helpers/w3cMapping.js +1 -1
- package/src/hubAllocationMethods.js +1 -1
- package/src/index.js +1 -1
package/src/helpers/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a62_0x39e519=a62_0x4ed8;(function(_0x43d04d,_0x3db58f){const _0x989f53=a62_0x4ed8,_0x2b0642=_0x43d04d();while(!![]){try{const _0x3280e3=-parseInt(_0x989f53(0x111))/0x1*(-parseInt(_0x989f53(0x12f))/0x2)+-parseInt(_0x989f53(0x132))/0x3+-parseInt(_0x989f53(0x11d))/0x4*(-parseInt(_0x989f53(0x12d))/0x5)+parseInt(_0x989f53(0x114))/0x6*(parseInt(_0x989f53(0x12b))/0x7)+-parseInt(_0x989f53(0x125))/0x8+-parseInt(_0x989f53(0x12e))/0x9+parseInt(_0x989f53(0x126))/0xa*(parseInt(_0x989f53(0x129))/0xb);if(_0x3280e3===_0x3db58f)break;else _0x2b0642['push'](_0x2b0642['shift']());}catch(_0x298a0c){_0x2b0642['push'](_0x2b0642['shift']());}}}(a62_0x24b3,0xbc9d0));const winston=require('winston'),os=require('os'),fs=require('fs'),path=require(a62_0x39e519(0x117)),logDir='log';!fs[a62_0x39e519(0x116)](logDir)&&fs[a62_0x39e519(0x131)](logDir);const a62_0x116b40={};function a62_0x4ed8(_0xa2b3b4,_0x5299a9){const _0x24b3a1=a62_0x24b3();return a62_0x4ed8=function(_0x4ed8e2,_0x4b360e){_0x4ed8e2=_0x4ed8e2-0x111;let _0x34c678=_0x24b3a1[_0x4ed8e2];return _0x34c678;},a62_0x4ed8(_0xa2b3b4,_0x5299a9);}a62_0x116b40[a62_0x39e519(0x118)]='console.info';const transports={'loggerConsole':new winston[(a62_0x39e519(0x12c))][(a62_0x39e519(0x124))](a62_0x116b40),'loggerFile':new winston[(a62_0x39e519(0x12c))][(a62_0x39e519(0x113))]({'filename':path['join'](logDir,a62_0x39e519(0x121))}),'debugLoggerFile':new winston[(a62_0x39e519(0x12c))][(a62_0x39e519(0x113))]({'filename':path['join'](os[a62_0x39e519(0x11f)](),a62_0x39e519(0x123)),'level':a62_0x39e519(0x119)})},a62_0x48b0af={};a62_0x48b0af[a62_0x39e519(0x112)]=a62_0x39e519(0x11e);const a62_0x55fb31={};a62_0x55fb31['level']=!![];const winstonLoggerParams={'format':winston[a62_0x39e519(0x112)][a62_0x39e519(0x12a)](winston['format'][a62_0x39e519(0x128)](a62_0x48b0af),winston[a62_0x39e519(0x112)][a62_0x39e519(0x127)](a62_0x55fb31),winston['format'][a62_0x39e519(0x11b)](_0x33cc67=>_0x33cc67[a62_0x39e519(0x128)]+'\x20-\x20'+_0x33cc67[a62_0x39e519(0x11c)]+':\x20'+_0x33cc67[a62_0x39e519(0x130)])),'transports':[transports[a62_0x39e519(0x11a)],transports['loggerFile'],transports['debugLoggerFile']]},a62_0xeedd75={};a62_0xeedd75[a62_0x39e519(0x12c)]=[transports['loggerFile']];function a62_0x24b3(){const _0xceb52a=['498iLJiSB','fileLogger','existsSync','path','name','debug','loggerConsole','printf','level','4tiADqC','YYYY-MM-DD\x20HH:mm:ss','tmpdir','createLogger','/usage.log','winstonLogger','/usage-debug.log','Console','6162544yedkxX','1480QuvnpC','colorize','timestamp','158653cZLbKs','combine','1897BiZJqw','transports','945170VkCzCj','5620860daFtuJ','2kkOTDi','message','mkdirSync','1407696ImOSiK','290519tUwtVK','format','File'];a62_0x24b3=function(){return _0xceb52a;};return a62_0x24b3();}const winstonFileLoggerParams=a62_0xeedd75;exports[a62_0x39e519(0x122)]=new winston[(a62_0x39e519(0x120))](winstonLoggerParams),exports[a62_0x39e519(0x115)]=new winston['createLogger'](winstonFileLoggerParams),exports['logDir']=logDir,exports[a62_0x39e519(0x12c)]=transports;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a63_0x585b(_0x54ee28,_0x3c4515){var _0x48e813=a63_0x48e8();return a63_0x585b=function(_0x585b82,_0x48e08f){_0x585b82=_0x585b82-0x14f;var _0x6724f3=_0x48e813[_0x585b82];return _0x6724f3;},a63_0x585b(_0x54ee28,_0x3c4515);}var a63_0x5232f6=a63_0x585b;(function(_0x43b3e6,_0x35f44c){var _0x269ecf=a63_0x585b,_0x5a43bd=_0x43b3e6();while(!![]){try{var _0x393c01=parseInt(_0x269ecf(0x16d))/0x1*(-parseInt(_0x269ecf(0x167))/0x2)+-parseInt(_0x269ecf(0x171))/0x3*(-parseInt(_0x269ecf(0x15e))/0x4)+parseInt(_0x269ecf(0x164))/0x5*(parseInt(_0x269ecf(0x154))/0x6)+-parseInt(_0x269ecf(0x166))/0x7*(-parseInt(_0x269ecf(0x174))/0x8)+parseInt(_0x269ecf(0x158))/0x9+-parseInt(_0x269ecf(0x178))/0xa*(-parseInt(_0x269ecf(0x170))/0xb)+-parseInt(_0x269ecf(0x14f))/0xc;if(_0x393c01===_0x35f44c)break;else _0x5a43bd['push'](_0x5a43bd['shift']());}catch(_0x39cd8c){_0x5a43bd['push'](_0x5a43bd['shift']());}}}(a63_0x48e8,0xb4dfc),exports[a63_0x5232f6(0x15d)]=_0x5c3fae=>{var _0x1a153d=a63_0x5232f6,_0x1d0049={'OGACQ':_0x1a153d(0x168),'PBAVG':_0x1a153d(0x16a),'VaStN':function(_0x33ae90,_0x18caf5){return _0x33ae90(_0x18caf5);},'xmjuz':function(_0x7c15a6,_0x153e91){return _0x7c15a6!==_0x153e91;},'ZKvsm':_0x1a153d(0x16b)},_0x5bbf30=_0x1d0049[_0x1a153d(0x15f)]['split']('|'),_0x235fc0=0x0;while(!![]){switch(_0x5bbf30[_0x235fc0++]){case'0':_0x5c3fae[_0x1a153d(0x150)]=()=>{var _0x47abef=_0x1a153d,_0x531b96={'YRRJh':_0x3f7cf0[_0x47abef(0x15a)],'GwruB':function(_0x59eb78,_0x507412){return _0x3f7cf0['CBzpT'](_0x59eb78,_0x507412);}};return new Promise(function(_0x23558f,_0x3c2dbd){var _0x4af6ba=_0x47abef,_0x7423c1={'VIBkS':_0x531b96[_0x4af6ba(0x151)],'NUZxN':function(_0x345170,_0x46927b){return _0x531b96['GwruB'](_0x345170,_0x46927b);}};_0x5c3fae[_0x4af6ba(0x15b)]()[_0x4af6ba(0x157)](_0xf2ef35=>{var _0x2cf956=_0x4af6ba;process[_0x2cf956(0x161)](_0x2cf956(0x175)+process[_0x2cf956(0x165)],{'timestamp':new Date()['toISOString'](),'message':_0xf2ef35,'kind':_0x7423c1['VIBkS']}),_0x7423c1[_0x2cf956(0x176)](_0x23558f,_0xf2ef35);});});};continue;case'1':if(_0x5c3fae[_0x1a153d(0x16e)])return;continue;case'2':_0x5c3fae[_0x1a153d(0x16e)]=!![];continue;case'3':var _0x3f7cf0={'NaAXx':_0x1d0049[_0x1a153d(0x172)],'CBzpT':function(_0x3be292,_0x58fedc){var _0x125b2d=_0x1a153d;return _0x1d0049[_0x125b2d(0x159)](_0x3be292,_0x58fedc);}};continue;case'4':if(_0x1d0049[_0x1a153d(0x15c)](process[_0x1a153d(0x153)][_0x1a153d(0x152)],_0x1d0049['ZKvsm']))return;continue;case'5':_0x5c3fae[_0x1a153d(0x15b)]=_0x5c3fae['takeScreenshot'];continue;}break;}},exports['overrideQuit']=(_0x11cab0,_0x6228bd=null)=>{var _0x4539fc=a63_0x5232f6,_0x8782b6={'Pxfsm':_0x4539fc(0x177),'bCcSM':function(_0x3787e4){return _0x3787e4();},'IaqeJ':function(_0x188616,_0x28dc63){return _0x188616>_0x28dc63;},'gMWVy':function(_0x56cff8,_0x482865){return _0x56cff8>_0x482865;}},_0x2da8dd=_0x8782b6[_0x4539fc(0x163)][_0x4539fc(0x173)]('|'),_0x4493f1=0x0;while(!![]){switch(_0x2da8dd[_0x4493f1++]){case'0':_0x11cab0[_0x4539fc(0x179)]=()=>{var _0x19a665=_0x4539fc,_0x17bf83={'WSpso':function(_0x3e0885){var _0x14cde7=a63_0x585b;return _0x5173c6[_0x14cde7(0x16f)](_0x3e0885);}};if(_0x6228bd){_0x6228bd['quitCount_']+=0x1;if(_0x5173c6[_0x19a665(0x169)](_0x6228bd['quitCount_'],0x1))return _0x11cab0[_0x19a665(0x160)]();}else{_0x11cab0[_0x19a665(0x155)]+=0x1;if(_0x5173c6[_0x19a665(0x17a)](_0x11cab0[_0x19a665(0x155)],0x1))return _0x11cab0[_0x19a665(0x160)]();}return new Promise(function(_0x310f17){var _0x246590=_0x19a665;_0x17bf83[_0x246590(0x156)](_0x310f17);});};continue;case'1':var _0x5173c6={'ddFKO':function(_0x2977a0){return _0x8782b6['bCcSM'](_0x2977a0);},'uHFJj':function(_0x36c982,_0x40b583){var _0x681ac=_0x4539fc;return _0x8782b6[_0x681ac(0x162)](_0x36c982,_0x40b583);},'RWHzY':function(_0x5f26c7,_0x8827ee){return _0x8782b6['gMWVy'](_0x5f26c7,_0x8827ee);}};continue;case'2':_0x11cab0['initQuit']=_0x11cab0[_0x4539fc(0x179)];continue;case'3':if(_0x11cab0[_0x4539fc(0x16c)])return;continue;case'4':_0x11cab0[_0x4539fc(0x16c)]=!![];continue;}break;}});function a63_0x48e8(){var _0x58dcbc=['WSpso','then','3480507Adzivu','VaStN','NaAXx','initScreenshot','xmjuz','overrideTakeScreenshot','1336532FFVyfK','OGACQ','initQuit','emit','IaqeJ','Pxfsm','330lKuUXl','pid','5476471bdqPqq','4sQzdqh','3|4|1|2|5|0','uHFJj','TEST_SCREENSHOT','true','patchQuit','108707vuGnIU','patchScreenshot','ddFKO','110qbxkvy','3MfYCbm','PBAVG','split','8AaXLXj','bs:addLog:','NUZxN','1|3|4|2|0','331490sbWqJm','quit','RWHzY','26833884KDfcPt','takeScreenshot','YRRJh','BS_TESTOPS_ALLOW_SCREENSHOTS','env','123612wYzEPI','quitCount_'];a63_0x48e8=function(){return _0x58dcbc;};return a63_0x48e8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a64_0x3b99(_0x3bf918,_0x1f4783){const _0x5b6d0e=a64_0x5b6d();return a64_0x3b99=function(_0x3b9911,_0x29b0b6){_0x3b9911=_0x3b9911-0x1a1;let _0x44112c=_0x5b6d0e[_0x3b9911];return _0x44112c;},a64_0x3b99(_0x3bf918,_0x1f4783);}function a64_0x5b6d(){const _0x1e2e97=['start','PERCY_TOKEN','SvrWJ','uDnmy','debug','91152MGMKKk','percy.json','GET','OOntF','app','ycjKz','4452920pzqdAv','version','isRunning','push','http://localhost:5338','cLIdy','path','SYgss','data','writeFile','stringify','close','XjjtL','nodeRequest','jgfDl','api/app_percy/get_project_token?name=','KTtwb','pipe','stderr','Percy\x20unable\x20to\x20fetch\x20project\x20token:\x20','../logger','NHuCo','434632GqPkPU','tmpdir','stdout','getBinaryPath','projectName','stop','percyOptions','3HFigSc','1429463ZYzCrk','automate','fetchPercyToken','assign','./PercyBinary','exec:stop','error','WTAbz','flags','2362582CuicgY','createWriteStream','qAmhr','736541zjJHUM','isProcessRunning','percy.log','child_process','token','healthcheck','khzwg','4024NjISqO','vJzry','ATmvL','app:exec','../helper','6857634lGMmVS','OJqiK','join','&type=','Error\x20creating\x20percy\x20config:\x20','NgcFV','fHebx','exports','createPercyConfig','env'];a64_0x5b6d=function(){return _0x1e2e97;};return a64_0x5b6d();}const a64_0x5bc341=a64_0x3b99;(function(_0x1c3bbe,_0x52ec0a){const _0x416e67=a64_0x3b99,_0x3aed44=_0x1c3bbe();while(!![]){try{const _0x80f3f5=-parseInt(_0x416e67(0x1b7))/0x1+-parseInt(_0x416e67(0x1b4))/0x2*(parseInt(_0x416e67(0x1aa))/0x3)+-parseInt(_0x416e67(0x1a3))/0x4+-parseInt(_0x416e67(0x1d8))/0x5+-parseInt(_0x416e67(0x1c3))/0x6+-parseInt(_0x416e67(0x1ab))/0x7+parseInt(_0x416e67(0x1be))/0x8*(parseInt(_0x416e67(0x1d2))/0x9);if(_0x80f3f5===_0x52ec0a)break;else _0x3aed44['push'](_0x3aed44['shift']());}catch(_0x48a82f){_0x3aed44['push'](_0x3aed44['shift']());}}}(a64_0x5b6d,0xcaad2));const fs=require('fs'),path=require(a64_0x5bc341(0x1de)),os=require('os'),{spawn}=require(a64_0x5bc341(0x1ba)),helper=require(a64_0x5bc341(0x1c2)),logger=require(a64_0x5bc341(0x1a1))['winstonLogger'],{logDir}=require('../logger'),PercyBinary=require(a64_0x5bc341(0x1af));class Percy{#logfile=path[a64_0x5bc341(0x1c5)](logDir,a64_0x5bc341(0x1b9));#address=process[a64_0x5bc341(0x1cc)]['PERCY_SERVER_ADDRESS']||a64_0x5bc341(0x1dc);#binaryPath=null;#config=null;#proc=null;#isApp=![];[a64_0x5bc341(0x1b8)]=![];constructor(_0x781e4a){this.#config=_0x781e4a,!!_0x781e4a['app']&&(this.#isApp=!![]);}async #getBinaryPath(){const _0x2e4576=a64_0x5bc341;if(!this.#binaryPath){const _0x41a2b5=new PercyBinary();this.#binaryPath=await _0x41a2b5[_0x2e4576(0x1a6)](this.#config);}return this.#binaryPath;}async #sleep(_0x457092){return new Promise(_0x1ee6e9=>setTimeout(_0x1ee6e9,_0x457092));}async[a64_0x5bc341(0x1bc)](){const _0x31046e=a64_0x5bc341,_0x217a72={};_0x217a72[_0x31046e(0x1bd)]=_0x31046e(0x1d4),_0x217a72[_0x31046e(0x1e4)]='percy/healthcheck';const _0x307a51=_0x217a72;try{const _0x306ddd=await helper[_0x31046e(0x1e5)](_0x307a51[_0x31046e(0x1bd)],_0x307a51[_0x31046e(0x1e4)],null,null,this.#address);if(_0x306ddd)return!![];}catch(_0x589a58){return![];}}async[a64_0x5bc341(0x1cd)](){const _0x712148=a64_0x5bc341,_0x4de324={'SYgss':_0x712148(0x1c1),'WTAbz':'exec','SvrWJ':function(_0x377b1e,_0x1240af,_0x577458,_0x13236f){return _0x377b1e(_0x1240af,_0x577458,_0x13236f);},'KBFew':_0x712148(0x1e3),'NNfZM':'Percy\x20healthcheck\x20successful'},_0x66aa76=await this.#getBinaryPath(),_0xbaef2a={};_0xbaef2a[_0x712148(0x1b3)]='a';const _0xbee09f=fs[_0x712148(0x1b5)](this.#logfile,_0xbaef2a),_0x3620ba=await this[_0x712148(0x1ad)](),_0x3d26ad=await this[_0x712148(0x1cb)]();if(!_0x3620ba)return![];const _0x4a7038=[(this.#isApp?_0x4de324[_0x712148(0x1df)]:_0x4de324[_0x712148(0x1b2)])+':start'];_0x3d26ad&&_0x4a7038[_0x712148(0x1db)]('-c',_0x3d26ad);const _0x7fb239={};_0x7fb239[_0x712148(0x1ce)]=_0x3620ba,this.#proc=_0x4de324[_0x712148(0x1cf)](spawn,_0x66aa76,_0x4a7038,{'env':Object[_0x712148(0x1ae)](process[_0x712148(0x1cc)],_0x7fb239)}),this.#proc[_0x712148(0x1a5)][_0x712148(0x1e9)](_0xbee09f),this.#proc[_0x712148(0x1ea)][_0x712148(0x1e9)](_0xbee09f),this[_0x712148(0x1b8)]=!![];var _0x54c9b9=this;this.#proc['on'](_0x4de324['KBFew'],function(_0x120ba6){const _0x3a1964=_0x712148;_0x54c9b9[_0x3a1964(0x1b8)]=![];});do{const _0x4a8807=await this[_0x712148(0x1bc)]();if(_0x4a8807)return logger[_0x712148(0x1d1)](_0x4de324['NNfZM']),!![];await this.#sleep(0x3e8);}while(this[_0x712148(0x1b8)]);return![];}async[a64_0x5bc341(0x1a8)](){const _0x25e60c=a64_0x5bc341,_0x35500b={'fHebx':function(_0x20b288,_0x27edd9){return _0x20b288(_0x27edd9);},'PIgBi':function(_0x34be73,_0x4661ce,_0x9c583f){return _0x34be73(_0x4661ce,_0x9c583f);},'ycjKz':_0x25e60c(0x1b0),'NHuCo':'close'},_0x39e922=await this.#getBinaryPath();return new Promise((_0x130868,_0x28f065)=>{const _0xc88c70=_0x25e60c,_0x3b53ed={'cLIdy':function(_0x4305c6,_0x20a3b4){const _0x483743=a64_0x3b99;return _0x35500b[_0x483743(0x1c9)](_0x4305c6,_0x20a3b4);}},_0x4f245f=_0x35500b['PIgBi'](spawn,_0x39e922,[_0x35500b[_0xc88c70(0x1d7)]]);_0x4f245f['on'](_0x35500b[_0xc88c70(0x1a2)],_0x54cfa9=>{const _0x43b0c9=_0xc88c70;this[_0x43b0c9(0x1b8)]=![],_0x3b53ed[_0x43b0c9(0x1dd)](_0x130868,_0x54cfa9);});});}[a64_0x5bc341(0x1da)](){const _0x170eb4=a64_0x5bc341;return this[_0x170eb4(0x1b8)];}async[a64_0x5bc341(0x1ad)](){const _0x301ee4=a64_0x5bc341,_0x4581aa={};_0x4581aa[_0x301ee4(0x1c8)]=_0x301ee4(0x1d6),_0x4581aa['KTtwb']=_0x301ee4(0x1ac),_0x4581aa[_0x301ee4(0x1c4)]='GET',_0x4581aa['DZqXM']='Percy\x20fetch\x20token\x20success';const _0x5b18e5=_0x4581aa,_0x43fdb1=this.#config[_0x301ee4(0x1a7)];try{const _0x361f70=this.#isApp?_0x5b18e5[_0x301ee4(0x1c8)]:_0x5b18e5[_0x301ee4(0x1e8)],_0x4017e5=await helper['nodeRequest'](_0x5b18e5[_0x301ee4(0x1c4)],_0x301ee4(0x1e7)+_0x43fdb1+_0x301ee4(0x1c6)+_0x361f70,{},this.#config),_0x3558d7=_0x4017e5[_0x301ee4(0x1e0)];return logger[_0x301ee4(0x1d1)](_0x5b18e5['DZqXM']),_0x3558d7[_0x301ee4(0x1bb)];}catch(_0x6a1fa4){return logger[_0x301ee4(0x1b1)](_0x301ee4(0x1eb)+_0x6a1fa4),null;}}async[a64_0x5bc341(0x1cb)](){const _0x45d3df=a64_0x5bc341,_0x511dbf={'ATmvL':function(_0x424e,_0x2784f4){return _0x424e(_0x2784f4);},'uDnmy':function(_0x509e5,_0x42b258){return _0x509e5+_0x42b258;},'KGSGT':'Percy\x20config\x20created\x20at\x20','vJzry':_0x45d3df(0x1d3)};if(!this.#config[_0x45d3df(0x1a9)])return null;const _0x3ec248=path[_0x45d3df(0x1c5)](os[_0x45d3df(0x1a4)](),_0x511dbf[_0x45d3df(0x1bf)]),_0x287d70=this.#config[_0x45d3df(0x1a9)];return!_0x287d70['version']&&(_0x287d70[_0x45d3df(0x1d9)]='2'),new Promise((_0x10fa9e,_0x2a97eb)=>{const _0x2cfb29=_0x45d3df,_0x5cf82d={'jgfDl':function(_0x184e76,_0x4dd811){const _0x400b9f=a64_0x3b99;return _0x511dbf[_0x400b9f(0x1c0)](_0x184e76,_0x4dd811);},'OOntF':function(_0x2313d9,_0x1a4f62){const _0x2fa69a=a64_0x3b99;return _0x511dbf[_0x2fa69a(0x1d0)](_0x2313d9,_0x1a4f62);},'qAmhr':_0x511dbf['KGSGT']};fs[_0x2cfb29(0x1e1)](_0x3ec248,JSON[_0x2cfb29(0x1e2)](_0x287d70),_0x135344=>{const _0x444d28=_0x2cfb29;_0x135344&&(logger[_0x444d28(0x1b1)](_0x444d28(0x1c7)+_0x135344),_0x5cf82d[_0x444d28(0x1e6)](_0x10fa9e,null)),logger['debug'](_0x5cf82d[_0x444d28(0x1d5)](_0x5cf82d[_0x444d28(0x1b6)],_0x3ec248)),_0x5cf82d[_0x444d28(0x1e6)](_0x10fa9e,_0x3ec248);});});}}module[a64_0x5bc341(0x1ca)]=Percy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a64_0x202edc=a64_0x2cbc;(function(_0x4505ce,_0x462586){const _0x21cdca=a64_0x2cbc,_0x52a71d=_0x4505ce();while(!![]){try{const _0x157417=-parseInt(_0x21cdca(0xeb))/0x1+parseInt(_0x21cdca(0xc3))/0x2+-parseInt(_0x21cdca(0xec))/0x3+-parseInt(_0x21cdca(0xd9))/0x4+parseInt(_0x21cdca(0x89))/0x5*(-parseInt(_0x21cdca(0xf7))/0x6)+-parseInt(_0x21cdca(0xcf))/0x7*(parseInt(_0x21cdca(0x102))/0x8)+parseInt(_0x21cdca(0xe6))/0x9;if(_0x157417===_0x462586)break;else _0x52a71d['push'](_0x52a71d['shift']());}catch(_0xd60016){_0x52a71d['push'](_0x52a71d['shift']());}}}(a64_0x271b,0x717ad));function a64_0x271b(){const _0x3e03fe=['apKkn','/Users/','ZbaBX','homedir','puegC','win32','VKSnc','sAcuA','1168238yeKVyc','BClaB','statSync','stdout','Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','jjtTo','parse','PfJuS','NGfWH','HOMEDRIVE','QeZuQ','sPMsC','3745LkCLiA','NxkYE','NZqMt','error','end','LNAME','AHxwi','KafEt','platform','IAxGJ','3270488JpkHlg','exports','EqXYf','vxoQP','X_OK','hBxZU','DEhfG','xbqHx','accessSync','AZkVB','entry','get','https://github.com/percy/cli/releases/latest/download','17796483tZIReH','vPoOy','match','download','close','394758FGDwng','936144LFWXoO','Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','data','oTITm','hJYcv','https-proxy-agent','percy','Percy\x20download\x20failed\x20to\x20read\x20cert\x20file','createWriteStream','join','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','60BUPsty','getuid','Corrupt\x20percy\x20binary,\x20retrying','USERNAME','pipe','child_process','BQAej','openReadStream','VOBmQ','open','../logger','6568EFbFtn','USER','zoWMH','function','sySBg','WKsDQ','/home/','LPdRD','Gzxxx','uxoOu','YzpFr','aFfiA','orVoI','RImgt','.zip','teDmS','mDnPo','fileName','66515leilyt','LOGNAME','agent','getBinaryPath','useCaCertificate','length','mhSGB','port','jWVIr','HOME','/root','test','Ttqbt','irHHg','proxyPort','/percy-linux.zip','Error\x20trying\x20to\x20download\x20percy\x20binary','url','AoBRw','/percy-win.zip','mhGel','readFileSync','cVDHn','ORzlP','--version','XmnaN','TfJbj','readEntry','proxyHost','chmod','0755','KZOWp','mkdirSync','xiLlT','HOMEPATH','winstonLogger','BTqhL','VbjEs','path','linux','syvyB','R_OK','vyZkJ','gUjpc','W_OK','SbvjW','uHPda','Bjyau','Ryywu','validateBinary'];a64_0x271b=function(){return _0x3e03fe;};return a64_0x271b();}const {https}=require('follow-redirects'),url=require(a64_0x202edc(0x9a)),yauzl=require('yauzl'),fs=require('fs'),path=require(a64_0x202edc(0xaf)),os=require('os'),{spawn}=require(a64_0x202edc(0xfc)),HttpsProxyAgent=require(a64_0x202edc(0xf1)),logger=require(a64_0x202edc(0x101))[a64_0x202edc(0xac)];class PercyBinary{#hostOS=process[a64_0x202edc(0xd7)];#httpPath=null;#binaryName=a64_0x202edc(0xf2);#orderedPaths=[path[a64_0x202edc(0xf5)](this.#homedir(),'.browserstack'),process['cwd'](),os['tmpdir']()];constructor(){const _0x500eb1=a64_0x202edc,_0x354688={};_0x354688[_0x500eb1(0xd0)]=_0x500eb1(0xe5),_0x354688[_0x500eb1(0xbd)]=function(_0x10c60e,_0x454023){return _0x10c60e+_0x454023;},_0x354688[_0x500eb1(0xd6)]='/percy-osx.zip',_0x354688[_0x500eb1(0x91)]=_0x500eb1(0x9c),_0x354688[_0x500eb1(0x9f)]='percy.exe',_0x354688[_0x500eb1(0xc4)]=function(_0x4b97e2,_0x591bd1){return _0x4b97e2+_0x591bd1;},_0x354688[_0x500eb1(0xcd)]=_0x500eb1(0x98);const _0x9094d9=_0x354688,_0x3acca1=_0x9094d9['NxkYE'];if(this.#hostOS[_0x500eb1(0xe8)](/darwin|mac os/i))this.#httpPath=_0x9094d9[_0x500eb1(0xbd)](_0x3acca1,_0x9094d9[_0x500eb1(0xd6)]);else this.#hostOS[_0x500eb1(0xe8)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x9094d9['ZbaBX'](_0x3acca1,_0x9094d9[_0x500eb1(0x91)]),this.#binaryName=_0x9094d9['cVDHn']):this.#httpPath=_0x9094d9[_0x500eb1(0xc4)](_0x3acca1,_0x9094d9[_0x500eb1(0xcd)]);}#getAvailableDirs(){const _0x41ecbf=a64_0x202edc,_0x413574={};_0x413574['WKsDQ']=function(_0x248d08,_0x37a78a){return _0x248d08<_0x37a78a;},_0x413574[_0x41ecbf(0xd5)]=_0x41ecbf(0x99);const _0xf27ed9=_0x413574;for(var _0x584e9b=0x0;_0xf27ed9[_0x41ecbf(0x7c)](_0x584e9b,this.#orderedPaths[_0x41ecbf(0x8e)]);_0x584e9b++){var _0x10bb4a=this.#orderedPaths[_0x584e9b];if(this.#makePath(_0x10bb4a))return _0x10bb4a;}throw new Error(_0xf27ed9[_0x41ecbf(0xd5)]);}#makePath(_0x343dc7){const _0x246930=a64_0x202edc;try{return!this.#checkPath(_0x343dc7)&&fs[_0x246930(0xa9)](_0x343dc7),!![];}catch{return![];}}#checkPath(_0x2fa2ff,_0xe22c8f){const _0x4a7dc0=a64_0x202edc,_0x88991e={};_0x88991e[_0x4a7dc0(0x7f)]=function(_0x55a8ea,_0x50bb36){return _0x55a8ea|_0x50bb36;},_0x88991e['aFfiA']=function(_0x2a26b5,_0x1cf783){return _0x2a26b5!==_0x1cf783;},_0x88991e['teDmS']='undefined';const _0x953b22=_0x88991e;_0xe22c8f=_0xe22c8f||_0x953b22[_0x4a7dc0(0x7f)](fs[_0x4a7dc0(0xb2)],fs[_0x4a7dc0(0xb5)]);try{return fs[_0x4a7dc0(0xe1)](_0x2fa2ff,_0xe22c8f),!![];}catch(_0x298bdd){if(_0x953b22[_0x4a7dc0(0x82)](typeof fs[_0x4a7dc0(0xe1)],_0x953b22[_0x4a7dc0(0x86)]))return![];try{return fs[_0x4a7dc0(0xc5)](_0x2fa2ff),!![];}catch(_0x123bd2){return![];}}}async[a64_0x202edc(0x8c)](_0x51a765){const _0x5adea8=a64_0x202edc,_0x3c4c50={};_0x3c4c50[_0x5adea8(0xff)]=_0x5adea8(0xf9);const _0xfeae50=_0x3c4c50;var _0x20c06b=this.#getAvailableDirs(),_0x34effb=path['join'](_0x20c06b,this.#binaryName);if(this.#checkPath(_0x34effb,fs[_0x5adea8(0xdd)]))return _0x34effb;const _0x45509b=await this[_0x5adea8(0xe9)](_0x51a765,_0x20c06b),_0x22a254=await this[_0x5adea8(0xba)](_0x45509b);if(!_0x22a254)return logger[_0x5adea8(0xd2)](_0xfeae50[_0x5adea8(0xff)]),await this[_0x5adea8(0xe9)](_0x51a765,_0x20c06b);return _0x45509b;}async[a64_0x202edc(0xba)](_0x5ecefd){const _0x2b218e=a64_0x202edc,_0x2033be={'BQAej':function(_0x4b33ea,_0x3d16bb){return _0x4b33ea(_0x3d16bb);},'DEhfG':function(_0xbd7161,_0x3e09b8){return _0xbd7161(_0x3e09b8);},'jjtTo':function(_0x38d1b0,_0x4d44c0,_0x965bb0){return _0x38d1b0(_0x4d44c0,_0x965bb0);},'NGfWH':_0x2b218e(0xa1),'IAxGJ':_0x2b218e(0xee),'vPoOy':'close'},_0x1ee276=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x73d004,_0x1ae9ea)=>{const _0x4d65d8=_0x2b218e,_0x1db9ae={'Ucolf':function(_0x393cd0,_0x39e6be){const _0x1a4c81=a64_0x2cbc;return _0x2033be[_0x1a4c81(0xdf)](_0x393cd0,_0x39e6be);}},_0x1cbc63=_0x2033be[_0x4d65d8(0xc8)](spawn,_0x5ecefd,[_0x2033be[_0x4d65d8(0xcb)]]);_0x1cbc63[_0x4d65d8(0xc6)]['on'](_0x2033be[_0x4d65d8(0xd8)],_0x2e0ef2=>{_0x1ee276['test'](_0x2e0ef2)&&_0x1db9ae['Ucolf'](_0x73d004,!![]);}),_0x1cbc63['on'](_0x2033be[_0x4d65d8(0xe7)],()=>{const _0x4cb382=_0x4d65d8;_0x2033be[_0x4cb382(0xfd)](_0x73d004,![]);});});}[a64_0x202edc(0xe9)](_0x572f5f,_0x5f37be){const _0x45a7e6=a64_0x202edc,_0x455757={'iMjkC':function(_0x25163b,_0x412b68){return _0x25163b(_0x412b68);},'ORzlP':_0x45a7e6(0xd3),'NZqMt':_0x45a7e6(0xe3),'Ryywu':'error','StyEV':_0x45a7e6(0xea),'sAcuA':_0x45a7e6(0xed),'tqwuL':function(_0x20412a,_0x177ff7){return _0x20412a(_0x177ff7);},'Ttqbt':_0x45a7e6(0xc7),'qogNH':function(_0x597cba,_0x553fd1){return _0x597cba(_0x553fd1);},'nLsfN':function(_0x48667d,_0x484dbc){return _0x48667d===_0x484dbc;},'RImgt':function(_0x320f93,_0x151474){return _0x320f93(_0x151474);},'orVoI':_0x45a7e6(0xa7),'TfJbj':_0x45a7e6(0xf6),'AZkVB':function(_0x3c5826,_0x479b1b){return _0x3c5826+_0x479b1b;},'oTITm':_0x45a7e6(0x85),'mDnPo':_0x45a7e6(0xf3)};!this.#checkPath(_0x5f37be)&&fs[_0x45a7e6(0xa9)](_0x5f37be);const _0x5045a3=this.#binaryName,_0x408a41=path[_0x45a7e6(0xf5)](_0x5f37be,_0x455757[_0x45a7e6(0xe2)](_0x5045a3,_0x455757[_0x45a7e6(0xef)])),_0x5232a7=path[_0x45a7e6(0xf5)](_0x5f37be,_0x5045a3),_0x2c0d09=fs[_0x45a7e6(0xf4)](_0x408a41),_0x14cf13=url[_0x45a7e6(0xc9)](this.#httpPath);if(_0x572f5f['proxyHost']&&_0x572f5f[_0x45a7e6(0x97)]){const _0x16729c={};_0x16729c['host']=_0x572f5f[_0x45a7e6(0xa5)],_0x16729c[_0x45a7e6(0x90)]=_0x572f5f[_0x45a7e6(0x97)],_0x14cf13[_0x45a7e6(0x8b)]=new HttpsProxyAgent(_0x16729c);}if(_0x572f5f['useCaCertificate'])try{_0x14cf13['ca']=fs[_0x45a7e6(0x9e)](_0x572f5f[_0x45a7e6(0x8d)]);}catch(_0x2c3cdf){logger[_0x45a7e6(0xd2)](_0x455757[_0x45a7e6(0x87)],_0x2c3cdf);}return new Promise((_0x212b9c,_0x13578a)=>{const _0x1f2857=_0x45a7e6,_0x1a6efe={'XmnaN':_0x455757[_0x1f2857(0xc2)],'uHPda':function(_0xfbf34d,_0x182c91){return _0x455757['tqwuL'](_0xfbf34d,_0x182c91);},'MnWqk':_0x455757[_0x1f2857(0x95)],'apKkn':function(_0x46664b,_0x9988e5){return _0x455757['qogNH'](_0x46664b,_0x9988e5);},'KZOWp':function(_0x29d65b,_0x194c11){return _0x455757['nLsfN'](_0x29d65b,_0x194c11);},'RdaJx':function(_0x3fbaa9,_0x5a0289){const _0x1fdd2f=_0x1f2857;return _0x455757[_0x1fdd2f(0x84)](_0x3fbaa9,_0x5a0289);},'syvyB':_0x455757[_0x1f2857(0x83)],'fowHo':_0x455757[_0x1f2857(0xa3)]};https[_0x1f2857(0xe4)](_0x14cf13,function(_0x289d79){const _0x4517f6=_0x1f2857,_0x388f25={'sPMsC':function(_0x56a00f,_0x33b20d){return _0x455757['iMjkC'](_0x56a00f,_0x33b20d);},'hBxZU':_0x455757[_0x4517f6(0xa0)],'irHHg':_0x455757[_0x4517f6(0xd1)],'EqXYf':_0x455757[_0x4517f6(0xb9)]};_0x289d79[_0x4517f6(0xfb)](_0x2c0d09),_0x289d79['on'](_0x455757['Ryywu'],function(_0x5d7871){const _0x1e11a7=_0x4517f6;logger['error'](_0x1a6efe[_0x1e11a7(0xa2)],_0x5d7871),_0x1a6efe[_0x1e11a7(0xb7)](_0x13578a,_0x5d7871);}),_0x2c0d09['on'](_0x455757[_0x4517f6(0xb9)],function(_0x184a8d){const _0x288459=_0x4517f6;logger['error'](_0x1a6efe['MnWqk'],_0x184a8d),_0x1a6efe[_0x288459(0xbb)](_0x13578a,_0x184a8d);}),_0x2c0d09['on'](_0x455757['StyEV'],function(){const _0x4bcd88=_0x4517f6,_0x570e13={'PfJuS':function(_0x48b97c,_0x506696){const _0x332f08=a64_0x2cbc;return _0x1a6efe[_0x332f08(0xa8)](_0x48b97c,_0x506696);},'puegC':function(_0x53b0e6,_0x506291){const _0x3cf8b1=a64_0x2cbc;return _0x1a6efe[_0x3cf8b1(0xb7)](_0x53b0e6,_0x506291);},'BTqhL':function(_0x3b07af,_0xa58df3){return _0x1a6efe['RdaJx'](_0x3b07af,_0xa58df3);},'sySBg':_0x1a6efe[_0x4bcd88(0xb1)]},_0x5682a0={};_0x5682a0['lazyEntries']=!![],yauzl[_0x4bcd88(0x100)](_0x408a41,_0x5682a0,function(_0x2c6d1e,_0x229e30){const _0xdbcc47=_0x4bcd88,_0x1a7a84={'vxoQP':function(_0x1dadad,_0x4091a2){const _0x195007=a64_0x2cbc;return _0x388f25[_0x195007(0xce)](_0x1dadad,_0x4091a2);},'gUjpc':_0x388f25[_0xdbcc47(0xde)]};_0x2c6d1e&&_0x388f25[_0xdbcc47(0xce)](_0x13578a,_0x2c6d1e),_0x229e30['readEntry'](),_0x229e30['on'](_0x388f25[_0xdbcc47(0x96)],_0x2bb13f=>{const _0x1a57bf=_0xdbcc47;if(/\/$/[_0x1a57bf(0x94)](_0x2bb13f[_0x1a57bf(0x88)]))_0x229e30[_0x1a57bf(0xa4)]();else{const _0x5c465d=fs[_0x1a57bf(0xf4)](path[_0x1a57bf(0xf5)](_0x5f37be,_0x2bb13f[_0x1a57bf(0x88)]));_0x229e30[_0x1a57bf(0xfe)](_0x2bb13f,function(_0x1b8e4b,_0x26c567){const _0x3c5406=_0x1a57bf;_0x1b8e4b&&_0x1a7a84[_0x3c5406(0xdc)](_0x13578a,_0x2c6d1e),_0x26c567['on'](_0x1a7a84[_0x3c5406(0xb4)],function(){const _0x3fdf42=_0x3c5406;_0x5c465d[_0x3fdf42(0xea)](),_0x229e30[_0x3fdf42(0xa4)]();}),_0x26c567['pipe'](_0x5c465d);}),_0x570e13[_0x1a57bf(0xca)](_0x2bb13f[_0x1a57bf(0x88)],_0x5045a3)&&_0x229e30['close']();}}),_0x229e30['on'](_0x388f25[_0xdbcc47(0xdb)],_0x4c220b=>{const _0x56f1a1=_0xdbcc47;_0x1a7a84[_0x56f1a1(0xdc)](_0x13578a,_0x4c220b);}),_0x229e30['once'](_0x388f25[_0xdbcc47(0xde)],()=>{const _0x2c155e=_0xdbcc47,_0x484214={'uxoOu':function(_0x1ca244,_0xeed915){const _0x160c83=a64_0x2cbc;return _0x570e13[_0x160c83(0xbf)](_0x1ca244,_0xeed915);},'tKiee':function(_0x5b2d2e,_0x3ca8fa){const _0x83e6d0=a64_0x2cbc;return _0x570e13[_0x83e6d0(0xad)](_0x5b2d2e,_0x3ca8fa);}};fs[_0x2c155e(0xa6)](_0x5232a7,_0x570e13[_0x2c155e(0x7b)],function(_0x159fb6){const _0x5ba53e=_0x2c155e;_0x159fb6&&_0x484214[_0x5ba53e(0x80)](_0x13578a,_0x159fb6),_0x484214['tKiee'](_0x212b9c,_0x5232a7);}),_0x229e30[_0x2c155e(0xea)]();});});});})['on'](_0x455757['Ryywu'],function(_0x7f96a5){const _0x1d816b=_0x1f2857;logger[_0x1d816b(0xd2)](_0x1a6efe['fowHo'],_0x7f96a5),_0x1a6efe['uHPda'](_0x13578a,_0x7f96a5);});});}#homedir(){const _0x4460da=a64_0x202edc,_0x17247d={};_0x17247d['mhGel']=function(_0x4c702b,_0x8e6ca7){return _0x4c702b===_0x8e6ca7;},_0x17247d[_0x4460da(0xaa)]=_0x4460da(0x7a),_0x17247d['VKSnc']=_0x4460da(0xc0),_0x17247d[_0x4460da(0x8f)]=function(_0x43772b,_0x37e47e){return _0x43772b+_0x37e47e;},_0x17247d[_0x4460da(0x81)]=function(_0xb0fc47,_0x3bc86e){return _0xb0fc47===_0x3bc86e;},_0x17247d['Eutgy']='darwin',_0x17247d[_0x4460da(0xae)]=function(_0x1a8ab0,_0x1250fe){return _0x1a8ab0+_0x1250fe;},_0x17247d['LPdRD']=_0x4460da(0xbc),_0x17247d[_0x4460da(0xb3)]=function(_0x2ea6cf,_0x3f1d27){return _0x2ea6cf===_0x3f1d27;},_0x17247d['AoBRw']=_0x4460da(0xb0),_0x17247d[_0x4460da(0xe0)]=function(_0x53d4cd,_0x1d6838){return _0x53d4cd===_0x1d6838;},_0x17247d[_0x4460da(0x104)]=_0x4460da(0x93),_0x17247d[_0x4460da(0xf0)]=function(_0x10defa,_0x536826){return _0x10defa+_0x536826;},_0x17247d['SbvjW']=_0x4460da(0x7d),_0x17247d[_0x4460da(0xb8)]=function(_0x58748d,_0x2a38e3){return _0x58748d||_0x2a38e3;};const _0x13eb62=_0x17247d;if(_0x13eb62[_0x4460da(0x9d)](typeof os[_0x4460da(0xbe)],_0x13eb62[_0x4460da(0xaa)]))return os[_0x4460da(0xbe)]();const _0x26f9f8=process['env'],_0xbd1890=_0x26f9f8[_0x4460da(0x92)],_0x533aeb=_0x26f9f8[_0x4460da(0x8a)]||_0x26f9f8[_0x4460da(0x103)]||_0x26f9f8[_0x4460da(0xd4)]||_0x26f9f8[_0x4460da(0xfa)];if(_0x13eb62['mhGel'](process[_0x4460da(0xd7)],_0x13eb62[_0x4460da(0xc1)]))return _0x26f9f8['USERPROFILE']||_0x13eb62['mhSGB'](_0x26f9f8[_0x4460da(0xcc)],_0x26f9f8[_0x4460da(0xab)])||_0xbd1890||null;if(_0x13eb62[_0x4460da(0x81)](process['platform'],_0x13eb62['Eutgy']))return _0xbd1890||(_0x533aeb?_0x13eb62[_0x4460da(0xae)](_0x13eb62[_0x4460da(0x7e)],_0x533aeb):null);if(_0x13eb62[_0x4460da(0xb3)](process[_0x4460da(0xd7)],_0x13eb62[_0x4460da(0x9b)]))return _0xbd1890||(_0x13eb62[_0x4460da(0xe0)](process[_0x4460da(0xf8)](),0x0)?_0x13eb62[_0x4460da(0x104)]:_0x533aeb?_0x13eb62[_0x4460da(0xf0)](_0x13eb62[_0x4460da(0xb6)],_0x533aeb):null);return _0x13eb62[_0x4460da(0xb8)](_0xbd1890,null);}}function a64_0x2cbc(_0x26280d,_0x5c34f7){const _0x271bc5=a64_0x271b();return a64_0x2cbc=function(_0x2cbc90,_0x53450b){_0x2cbc90=_0x2cbc90-0x7a;let _0x10dd01=_0x271bc5[_0x2cbc90];return _0x10dd01;},a64_0x2cbc(_0x26280d,_0x5c34f7);}module[a64_0x202edc(0xda)]=PercyBinary;
|
|
1
|
+
const a65_0x405280=a65_0x800c;(function(_0x399e5c,_0x5c769b){const _0x4a2ac5=a65_0x800c,_0x38f8a7=_0x399e5c();while(!![]){try{const _0x57a6fe=-parseInt(_0x4a2ac5(0x14d))/0x1+-parseInt(_0x4a2ac5(0xe9))/0x2+parseInt(_0x4a2ac5(0x101))/0x3*(parseInt(_0x4a2ac5(0xe1))/0x4)+-parseInt(_0x4a2ac5(0xd6))/0x5+-parseInt(_0x4a2ac5(0x141))/0x6+-parseInt(_0x4a2ac5(0x14a))/0x7+parseInt(_0x4a2ac5(0x11c))/0x8;if(_0x57a6fe===_0x5c769b)break;else _0x38f8a7['push'](_0x38f8a7['shift']());}catch(_0x153123){_0x38f8a7['push'](_0x38f8a7['shift']());}}}(a65_0x8fce,0xd03bd));function a65_0x8fce(){const _0x1afefc=['UIcPb','function','download','alFGw','fileName','VLIgH','JMfMZ','UDZfW','test','ZwHHs','vABdZ','USER','fIOKe','oMujM','.zip','USERNAME','cwd','jLkuS','26548400UuIyyy','host','end','percy.exe','data','LNAME','homedir','accessSync','USERPROFILE','rZbXb','readEntry','openReadStream','mkdirSync','child_process','getuid','0755','yauzl','OhoQM','ozKDF','FzoRX','RdTsE','GOpBg','gQysO','validateBinary','join','suBIc','agent','https://github.com/percy/cli/releases/latest/download','YyYVn','HDyqo','path','LsPMY','pipe','useCaCertificate','XXHVw','tKFec','dTKCV','689832mDphSK','DidXn','--version','error','yRJXr','qzJCO','match','tEpyg','open','3633826aOPOna','ICygM','haczs','1413294dwsXxv','wBMaw','createWriteStream','darwin','/percy-linux.zip','WASDC','VJHzA','lazyEntries','/root','OUojs','W_OK','length','/percy-win.zip','ryKkq','/home/','PosOm','https-proxy-agent','qExxz','eJQrW','8336775XHONfr','NkmRk','platform','jiETY','/Users/','fAYeV','readFileSync','nYPSu','ZTxMA','mkvJU','percy','8zIBLoM','TGZUV','R_OK','getBinaryPath','OWCnl','UkvGm','parse','aRRno','40344mhlbrC','statSync','nukrk','linux','LKSwr','USgkW','X_OK','kNoAb','HEAvQ','exports','yyYyB','proxyPort','Got\x20Error\x20in\x20percy\x20binary\x20downloading\x20request','proxyHost','undefined','port','pLxXn','EHbyt','Corrupt\x20percy\x20binary,\x20retrying','close','LdSvs','unlrU','RFGwf','ZjZEr','1903929OCAnBY','EeiGX','aSibl','once','KtmWc','chmod','qzDaZ','dIvVs','HOMEDRIVE'];a65_0x8fce=function(){return _0x1afefc;};return a65_0x8fce();}const {https}=require('follow-redirects'),url=require('url'),yauzl=require(a65_0x405280(0x12c)),fs=require('fs'),path=require(a65_0x405280(0x13a)),os=require('os'),{spawn}=require(a65_0x405280(0x129)),HttpsProxyAgent=require(a65_0x405280(0xd3)),logger=require('../logger')['winstonLogger'];class PercyBinary{#hostOS=process['platform'];#httpPath=null;#binaryName=a65_0x405280(0xe0);#orderedPaths=[path[a65_0x405280(0x134)](this.#homedir(),'.browserstack'),process[a65_0x405280(0x11a)](),os['tmpdir']()];constructor(){const _0x55a30f=a65_0x405280,_0x27a69d={};_0x27a69d[_0x55a30f(0x139)]=_0x55a30f(0x137),_0x27a69d[_0x55a30f(0x13e)]=function(_0x2439c3,_0x59f851){return _0x2439c3+_0x59f851;},_0x27a69d[_0x55a30f(0xd9)]='/percy-osx.zip',_0x27a69d[_0x55a30f(0xf1)]=_0x55a30f(0x159),_0x27a69d['GOpBg']=_0x55a30f(0x11f),_0x27a69d[_0x55a30f(0x105)]=function(_0x2165e7,_0x11bd72){return _0x2165e7+_0x11bd72;},_0x27a69d[_0x55a30f(0x14c)]=_0x55a30f(0x151);const _0x45fb84=_0x27a69d,_0x3bbbf4=_0x45fb84[_0x55a30f(0x139)];if(this.#hostOS['match'](/darwin|mac os/i))this.#httpPath=_0x45fb84['XXHVw'](_0x3bbbf4,_0x45fb84[_0x55a30f(0xd9)]);else this.#hostOS[_0x55a30f(0x147)](/mswin|msys|mingw|cygwin|bccwin|wince|emc|win32/i)?(this.#httpPath=_0x45fb84[_0x55a30f(0x13e)](_0x3bbbf4,_0x45fb84['HEAvQ']),this.#binaryName=_0x45fb84[_0x55a30f(0x131)]):this.#httpPath=_0x45fb84['KtmWc'](_0x3bbbf4,_0x45fb84['haczs']);}#getAvailableDirs(){const _0x4135b4=a65_0x405280,_0x30222e={};_0x30222e[_0x4135b4(0xdf)]=function(_0x5df1c8,_0x526ebd){return _0x5df1c8<_0x526ebd;},_0x30222e[_0x4135b4(0xe8)]='Error\x20trying\x20to\x20download\x20percy\x20binary';const _0x4248cf=_0x30222e;for(var _0xa782bd=0x0;_0x4248cf['mkvJU'](_0xa782bd,this.#orderedPaths[_0x4135b4(0x158)]);_0xa782bd++){var _0x47f960=this.#orderedPaths[_0xa782bd];if(this.#makePath(_0x47f960))return _0x47f960;}throw new Error(_0x4248cf['aRRno']);}#makePath(_0x462cc5){const _0x153c0c=a65_0x405280;try{return!this.#checkPath(_0x462cc5)&&fs[_0x153c0c(0x128)](_0x462cc5),!![];}catch{return![];}}#checkPath(_0x1539b8,_0x312618){const _0xbf1666=a65_0x405280,_0x3a410d={};_0x3a410d[_0xbf1666(0xfa)]=function(_0x2a9095,_0x331387){return _0x2a9095|_0x331387;},_0x3a410d['cXWLr']=function(_0x561799,_0x14f32e){return _0x561799!==_0x14f32e;},_0x3a410d['ZwHHs']=_0xbf1666(0xf7);const _0x5c596=_0x3a410d;_0x312618=_0x312618||_0x5c596[_0xbf1666(0xfa)](fs[_0xbf1666(0xe3)],fs[_0xbf1666(0x157)]);try{return fs[_0xbf1666(0x123)](_0x1539b8,_0x312618),!![];}catch(_0x1e4ac8){if(_0x5c596['cXWLr'](typeof fs[_0xbf1666(0x123)],_0x5c596[_0xbf1666(0x113)]))return![];try{return fs[_0xbf1666(0xea)](_0x1539b8),!![];}catch(_0x1334a6){return![];}}}async[a65_0x405280(0xe4)](_0xb0cb08){const _0x3f1aac=a65_0x405280,_0x2a7922={};_0x2a7922[_0x3f1aac(0x14e)]=_0x3f1aac(0xfb);const _0x11de02=_0x2a7922;var _0x24a62c=this.#getAvailableDirs(),_0x58227f=path[_0x3f1aac(0x134)](_0x24a62c,this.#binaryName);if(this.#checkPath(_0x58227f,fs[_0x3f1aac(0xef)]))return _0x58227f;const _0x4b56e5=await this[_0x3f1aac(0x10c)](_0xb0cb08,_0x24a62c),_0x209ff6=await this[_0x3f1aac(0x133)](_0x4b56e5);if(!_0x209ff6)return logger['error'](_0x11de02[_0x3f1aac(0x14e)]),await this[_0x3f1aac(0x10c)](_0xb0cb08,_0x24a62c);return _0x4b56e5;}async[a65_0x405280(0x133)](_0x1d5f11){const _0xb15bb6=a65_0x405280,_0x3d5938={'dIvVs':function(_0x5bbece,_0x3b7c67){return _0x5bbece(_0x3b7c67);},'USgkW':function(_0x1f5045,_0x1de10b){return _0x1f5045(_0x1de10b);},'vABdZ':function(_0x53365b,_0x322429,_0x39301f){return _0x53365b(_0x322429,_0x39301f);},'IAWJk':_0xb15bb6(0x143),'RyARG':_0xb15bb6(0x120),'YyYVn':_0xb15bb6(0xfc)},_0x5f2d8f=/^.*@percy\/cli \d.\d+.\d+/;return new Promise((_0x36359b,_0x2dce73)=>{const _0x172165=_0xb15bb6,_0x1ac6e6={'alFGw':function(_0x5823b0,_0x4909cb){const _0x21393f=a65_0x800c;return _0x3d5938[_0x21393f(0xee)](_0x5823b0,_0x4909cb);}},_0x4b62df=_0x3d5938[_0x172165(0x114)](spawn,_0x1d5f11,[_0x3d5938['IAWJk']]);_0x4b62df['stdout']['on'](_0x3d5938['RyARG'],_0x13cb9f=>{const _0x4b9132=_0x172165;_0x5f2d8f[_0x4b9132(0x112)](_0x13cb9f)&&_0x3d5938[_0x4b9132(0x108)](_0x36359b,!![]);}),_0x4b62df['on'](_0x3d5938[_0x172165(0x138)],()=>{const _0x5363ad=_0x172165;_0x1ac6e6[_0x5363ad(0x10d)](_0x36359b,![]);});});}['download'](_0x48068a,_0xf66bee){const _0x1e194a=a65_0x405280,_0xecf3b9={'OhoQM':_0x1e194a(0xf5),'VLIgH':function(_0x56ac7e,_0x28a3f4){return _0x56ac7e(_0x28a3f4);},'suBIc':'Got\x20Error\x20while\x20downloading\x20percy\x20binary\x20file','eJQrW':function(_0x22ce18,_0x14fc57){return _0x22ce18(_0x14fc57);},'puXmj':_0x1e194a(0x11e),'ryKkq':function(_0x2f6598,_0xea44b0){return _0x2f6598===_0xea44b0;},'EeiGX':_0x1e194a(0x12b),'qzDaZ':'entry','RdTsE':_0x1e194a(0x144),'LKSwr':'Got\x20Error\x20in\x20percy\x20binary\x20download\x20response','tKFec':_0x1e194a(0xfc),'zgXdz':function(_0xa438ca,_0x356915){return _0xa438ca+_0x356915;},'dTKCV':_0x1e194a(0x118),'fGzrb':'Percy\x20download\x20failed\x20to\x20read\x20cert\x20file'};!this.#checkPath(_0xf66bee)&&fs[_0x1e194a(0x128)](_0xf66bee);const _0x4feb87=this.#binaryName,_0x90b413=path[_0x1e194a(0x134)](_0xf66bee,_0xecf3b9['zgXdz'](_0x4feb87,_0xecf3b9[_0x1e194a(0x140)])),_0x280621=path[_0x1e194a(0x134)](_0xf66bee,_0x4feb87),_0x590b49=fs[_0x1e194a(0x14f)](_0x90b413),_0x36fadf=url[_0x1e194a(0xe7)](this.#httpPath);if(_0x48068a['proxyHost']&&_0x48068a[_0x1e194a(0xf4)]){const _0x4aa2d9={};_0x4aa2d9[_0x1e194a(0x11d)]=_0x48068a[_0x1e194a(0xf6)],_0x4aa2d9[_0x1e194a(0xf8)]=_0x48068a[_0x1e194a(0xf4)],_0x36fadf[_0x1e194a(0x136)]=new HttpsProxyAgent(_0x4aa2d9);}if(_0x48068a[_0x1e194a(0x13d)])try{_0x36fadf['ca']=fs[_0x1e194a(0xdc)](_0x48068a[_0x1e194a(0x13d)]);}catch(_0x177bfc){logger[_0x1e194a(0x144)](_0xecf3b9['fGzrb'],_0x177bfc);}return new Promise((_0xb9b813,_0xb85dca)=>{const _0xaa8682=_0x1e194a,_0x4a9f75={'tVNFI':_0xecf3b9[_0xaa8682(0x135)],'PosOm':function(_0x43750b,_0x2bd3a6){const _0x4c85ae=_0xaa8682;return _0xecf3b9[_0x4c85ae(0xd5)](_0x43750b,_0x2bd3a6);},'WASDC':_0xecf3b9['puXmj'],'JMfMZ':function(_0x36331c,_0x520fc8){const _0xfc78d7=_0xaa8682;return _0xecf3b9[_0xfc78d7(0xd0)](_0x36331c,_0x520fc8);},'yyYyB':function(_0x5f334a,_0x410144){const _0x40e819=_0xaa8682;return _0xecf3b9[_0x40e819(0x10f)](_0x5f334a,_0x410144);},'gQysO':_0xecf3b9[_0xaa8682(0x102)],'OUojs':_0xecf3b9[_0xaa8682(0x107)],'qExxz':_0xecf3b9['RdTsE'],'Hympr':_0xecf3b9[_0xaa8682(0xed)],'NkmRk':_0xecf3b9[_0xaa8682(0x13f)]};https['get'](_0x36fadf,function(_0x399d08){const _0x149c04=_0xaa8682,_0x136b2f={'UDZfW':_0x4a9f75['Hympr'],'oMujM':function(_0x3a8411,_0x47b6cc){return _0x4a9f75['yyYyB'](_0x3a8411,_0x47b6cc);}};_0x399d08[_0x149c04(0x13c)](_0x590b49),_0x399d08['on'](_0x4a9f75[_0x149c04(0xd4)],function(_0x3df34e){const _0xd9525d=_0x149c04;logger['error'](_0x136b2f[_0xd9525d(0x111)],_0x3df34e),_0x136b2f[_0xd9525d(0x117)](_0xb85dca,_0x3df34e);}),_0x590b49['on'](_0x4a9f75[_0x149c04(0xd4)],function(_0x163b5c){logger['error'](_0x4a9f75['tVNFI'],_0x163b5c),_0x4a9f75['PosOm'](_0xb85dca,_0x163b5c);}),_0x590b49['on'](_0x4a9f75[_0x149c04(0xd7)],function(){const _0xd5ca12=_0x149c04,_0x1cf617={'rZbXb':function(_0x4c56ee,_0x22d3ef){const _0x18f383=a65_0x800c;return _0x4a9f75[_0x18f383(0xd2)](_0x4c56ee,_0x22d3ef);},'qzJCO':_0x4a9f75[_0xd5ca12(0x152)],'aSibl':function(_0x2035d4,_0x2b1adb){const _0x2fae6f=_0xd5ca12;return _0x4a9f75[_0x2fae6f(0x110)](_0x2035d4,_0x2b1adb);},'fIOKe':function(_0x3d655d,_0x5d18cf){const _0x21d5e8=_0xd5ca12;return _0x4a9f75[_0x21d5e8(0xf3)](_0x3d655d,_0x5d18cf);},'pLxXn':_0x4a9f75[_0xd5ca12(0x132)],'LsPMY':_0x4a9f75[_0xd5ca12(0x156)],'OWCnl':_0x4a9f75['qExxz']},_0x331357={};_0x331357[_0xd5ca12(0x154)]=!![],yauzl[_0xd5ca12(0x149)](_0x90b413,_0x331357,function(_0x2545a0,_0x409da6){const _0x5c3247=_0xd5ca12,_0x3c1393={'DidXn':function(_0x30ccf1,_0x51ddad){const _0x15e561=a65_0x800c;return _0x1cf617[_0x15e561(0x125)](_0x30ccf1,_0x51ddad);},'ozKDF':_0x1cf617[_0x5c3247(0x146)],'nukrk':function(_0x42a898,_0x5703c6){const _0x1f5d0f=_0x5c3247;return _0x1cf617[_0x1f5d0f(0x103)](_0x42a898,_0x5703c6);},'jLkuS':function(_0x22baa6,_0x580e7b){const _0x58e580=_0x5c3247;return _0x1cf617[_0x58e580(0x125)](_0x22baa6,_0x580e7b);},'nYPSu':function(_0x177b14,_0x223fc7){const _0xfdf3fa=_0x5c3247;return _0x1cf617[_0xfdf3fa(0x116)](_0x177b14,_0x223fc7);},'UkvGm':_0x1cf617[_0x5c3247(0xf9)]};_0x2545a0&&_0x1cf617[_0x5c3247(0x116)](_0xb85dca,_0x2545a0),_0x409da6[_0x5c3247(0x126)](),_0x409da6['on'](_0x1cf617[_0x5c3247(0x13b)],_0x52ddfa=>{const _0x165cc4=_0x5c3247;if(/\/$/['test'](_0x52ddfa[_0x165cc4(0x10e)]))_0x409da6[_0x165cc4(0x126)]();else{const _0x1e7f4e=fs[_0x165cc4(0x14f)](path[_0x165cc4(0x134)](_0xf66bee,_0x52ddfa[_0x165cc4(0x10e)]));_0x409da6[_0x165cc4(0x127)](_0x52ddfa,function(_0x5f31ab,_0x3a0678){const _0x1b0b7b=_0x165cc4;_0x5f31ab&&_0x3c1393[_0x1b0b7b(0x142)](_0xb85dca,_0x2545a0),_0x3a0678['on'](_0x3c1393[_0x1b0b7b(0x12e)],function(){const _0x20aa6d=_0x1b0b7b;_0x1e7f4e[_0x20aa6d(0xfc)](),_0x409da6[_0x20aa6d(0x126)]();}),_0x3a0678[_0x1b0b7b(0x13c)](_0x1e7f4e);}),_0x3c1393[_0x165cc4(0xeb)](_0x52ddfa[_0x165cc4(0x10e)],_0x4feb87)&&_0x409da6[_0x165cc4(0xfc)]();}}),_0x409da6['on'](_0x1cf617[_0x5c3247(0xe5)],_0x384855=>{const _0x39764c=_0x5c3247;_0x3c1393[_0x39764c(0x142)](_0xb85dca,_0x384855);}),_0x409da6[_0x5c3247(0x104)](_0x1cf617[_0x5c3247(0x146)],()=>{const _0x3225ca=_0x5c3247;fs[_0x3225ca(0x106)](_0x280621,_0x3c1393[_0x3225ca(0xe6)],function(_0x4bd369){const _0x38a797=_0x3225ca;_0x4bd369&&_0x3c1393[_0x38a797(0x11b)](_0xb85dca,_0x4bd369),_0x3c1393[_0x38a797(0xdd)](_0xb9b813,_0x280621);}),_0x409da6[_0x3225ca(0xfc)]();});});});})['on'](_0xecf3b9[_0xaa8682(0x130)],function(_0x1730cf){const _0x1b79d0=_0xaa8682;logger[_0x1b79d0(0x144)](_0xecf3b9[_0x1b79d0(0x12d)],_0x1730cf),_0xecf3b9['VLIgH'](_0xb85dca,_0x1730cf);});});}#homedir(){const _0x1cf337=a65_0x405280,_0x24b830={};_0x24b830['VJHzA']=function(_0x9a4ea0,_0x1d9db1){return _0x9a4ea0===_0x1d9db1;},_0x24b830['FzoRX']=_0x1cf337(0x10b),_0x24b830[_0x1cf337(0x14b)]='win32',_0x24b830[_0x1cf337(0xf0)]=function(_0x4c9ca2,_0x4f0445){return _0x4c9ca2+_0x4f0445;},_0x24b830[_0x1cf337(0xdb)]=_0x1cf337(0x150),_0x24b830[_0x1cf337(0xfd)]=function(_0x5ec00a,_0x31756e){return _0x5ec00a+_0x31756e;},_0x24b830[_0x1cf337(0x145)]=_0x1cf337(0xda),_0x24b830[_0x1cf337(0x148)]=function(_0x439e03,_0x2a446a){return _0x439e03===_0x2a446a;},_0x24b830[_0x1cf337(0x10a)]=_0x1cf337(0xec),_0x24b830[_0x1cf337(0xfe)]=function(_0x128187,_0x5a434a){return _0x128187===_0x5a434a;},_0x24b830[_0x1cf337(0xe2)]=_0x1cf337(0x155),_0x24b830[_0x1cf337(0xde)]=function(_0x84266f,_0x411ea2){return _0x84266f+_0x411ea2;},_0x24b830[_0x1cf337(0x100)]=_0x1cf337(0xd1),_0x24b830[_0x1cf337(0xff)]=function(_0x38b083,_0x3df596){return _0x38b083||_0x3df596;};const _0x389a4d=_0x24b830;if(_0x389a4d[_0x1cf337(0x153)](typeof os[_0x1cf337(0x122)],_0x389a4d[_0x1cf337(0x12f)]))return os[_0x1cf337(0x122)]();const _0xb46c95=process['env'],_0x363fd1=_0xb46c95['HOME'],_0x59325b=_0xb46c95['LOGNAME']||_0xb46c95[_0x1cf337(0x115)]||_0xb46c95[_0x1cf337(0x121)]||_0xb46c95[_0x1cf337(0x119)];if(_0x389a4d[_0x1cf337(0x153)](process[_0x1cf337(0xd8)],_0x389a4d[_0x1cf337(0x14b)]))return _0xb46c95[_0x1cf337(0x124)]||_0x389a4d[_0x1cf337(0xf0)](_0xb46c95[_0x1cf337(0x109)],_0xb46c95['HOMEPATH'])||_0x363fd1||null;if(_0x389a4d['VJHzA'](process[_0x1cf337(0xd8)],_0x389a4d['fAYeV']))return _0x363fd1||(_0x59325b?_0x389a4d[_0x1cf337(0xfd)](_0x389a4d[_0x1cf337(0x145)],_0x59325b):null);if(_0x389a4d[_0x1cf337(0x148)](process['platform'],_0x389a4d[_0x1cf337(0x10a)]))return _0x363fd1||(_0x389a4d[_0x1cf337(0xfe)](process[_0x1cf337(0x12a)](),0x0)?_0x389a4d[_0x1cf337(0xe2)]:_0x59325b?_0x389a4d['ZTxMA'](_0x389a4d[_0x1cf337(0x100)],_0x59325b):null);return _0x389a4d[_0x1cf337(0xff)](_0x363fd1,null);}}function a65_0x800c(_0x2e36b1,_0xaec7b6){const _0x8fcecc=a65_0x8fce();return a65_0x800c=function(_0x800cf1,_0x4e9d60){_0x800cf1=_0x800cf1-0xd0;let _0x44e372=_0x8fcecc[_0x800cf1];return _0x44e372;},a65_0x800c(_0x2e36b1,_0xaec7b6);}module[a65_0x405280(0xf2)]=PercyBinary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a66_0x215083=a66_0x322b;function a66_0x4cf5(){var _0x1e18b6=['248226ETQZlA','getName','95vtcTGW','1048838woYUIQ','get','152XHdURE','1774512hhfRHn','849052OQtMBu','increment','117929RtCTJh','2CdssAH','exports','3178910JcXkwM','1380321OFRjJT'];a66_0x4cf5=function(){return _0x1e18b6;};return a66_0x4cf5();}(function(_0x2a4f6a,_0x32d0c0){var _0x5743ff=a66_0x322b,_0xeecf30=_0x2a4f6a();while(!![]){try{var _0x4c6d24=-parseInt(_0x5743ff(0xf5))/0x1*(parseInt(_0x5743ff(0xfc))/0x2)+parseInt(_0x5743ff(0xf8))/0x3+-parseInt(_0x5743ff(0xf9))/0x4+-parseInt(_0x5743ff(0xf4))/0x5*(-parseInt(_0x5743ff(0xf2))/0x6)+parseInt(_0x5743ff(0xfb))/0x7*(parseInt(_0x5743ff(0xf7))/0x8)+-parseInt(_0x5743ff(0xf1))/0x9+parseInt(_0x5743ff(0xf0))/0xa;if(_0x4c6d24===_0x32d0c0)break;else _0xeecf30['push'](_0xeecf30['shift']());}catch(_0x3767c3){_0xeecf30['push'](_0xeecf30['shift']());}}}(a66_0x4cf5,0x92beb));class PercyCaptureMap{#map={};[a66_0x215083(0xfa)](_0x349215,_0x159458){!this.#map[_0x349215]&&(this.#map[_0x349215]={}),!this.#map[_0x349215][_0x159458]&&(this.#map[_0x349215][_0x159458]=0x0),this.#map[_0x349215][_0x159458]++;}[a66_0x215083(0xf3)](_0x4ae3ce,_0x3a08f0){return _0x4ae3ce+'-'+_0x3a08f0+'-'+this['get'](_0x4ae3ce,_0x3a08f0);}[a66_0x215083(0xf6)](_0x2cb0a5,_0x2180db){if(!this.#map[_0x2cb0a5])return 0x0;if(!this.#map[_0x2cb0a5][_0x2180db])return 0x0;return this.#map[_0x2cb0a5][_0x2180db];}}function a66_0x322b(_0x5cddef,_0x5a358a){var _0x4cf57c=a66_0x4cf5();return a66_0x322b=function(_0x322b86,_0xc4149a){_0x322b86=_0x322b86-0xf0;var _0xa01c0b=_0x4cf57c[_0x322b86];return _0xa01c0b;},a66_0x322b(_0x5cddef,_0x5a358a);}module[a66_0x215083(0xfd)]=PercyCaptureMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a67_0x3ab527=a67_0x54f4;(function(_0x4a88d1,_0x4621da){var _0x1fce68=a67_0x54f4,_0x2c0a34=_0x4a88d1();while(!![]){try{var _0x235e3d=-parseInt(_0x1fce68(0x17e))/0x1+-parseInt(_0x1fce68(0x16d))/0x2*(-parseInt(_0x1fce68(0x179))/0x3)+-parseInt(_0x1fce68(0x176))/0x4*(-parseInt(_0x1fce68(0x174))/0x5)+-parseInt(_0x1fce68(0x172))/0x6+parseInt(_0x1fce68(0x178))/0x7+parseInt(_0x1fce68(0x175))/0x8+parseInt(_0x1fce68(0x177))/0x9*(-parseInt(_0x1fce68(0x173))/0xa);if(_0x235e3d===_0x4621da)break;else _0x2c0a34['push'](_0x2c0a34['shift']());}catch(_0x3abb5b){_0x2c0a34['push'](_0x2c0a34['shift']());}}}(a67_0x3cdd,0x44fe5));var a67_0x37c54b={};a67_0x37c54b[a67_0x3ab527(0x16f)]=[a67_0x3ab527(0x17d)],a67_0x37c54b[a67_0x3ab527(0x170)]=[a67_0x3ab527(0x17c),a67_0x3ab527(0x16e)];function a67_0x3cdd(){var _0x163dfa=['632950BFOiML','242045mXiFxZ','2610048eKVNFF','16DLVpRj','18SesKyv','2299668PnlPMK','15PhuYBe','exports','manual','click','takeScreenshot','444932lJWCxL','168328yIxeUS','sendKeys','driver','element','screenshot','2490702mCwPaW'];a67_0x3cdd=function(){return _0x163dfa;};return a67_0x3cdd();}var a67_0x58da5f={};a67_0x58da5f[a67_0x3ab527(0x16f)]=[a67_0x3ab527(0x17d)];var a67_0x5c2739={};a67_0x5c2739[a67_0x3ab527(0x170)]=[a67_0x3ab527(0x17c)];var a67_0xe8386a={};function a67_0x54f4(_0x2b0a57,_0x2e0a26){var _0x3cdd39=a67_0x3cdd();return a67_0x54f4=function(_0x54f416,_0x39740a){_0x54f416=_0x54f416-0x16d;var _0x17c2f8=_0x3cdd39[_0x54f416];return _0x17c2f8;},a67_0x54f4(_0x2b0a57,_0x2e0a26);}a67_0xe8386a['auto']=a67_0x37c54b,a67_0xe8386a[a67_0x3ab527(0x171)]=a67_0x58da5f,a67_0xe8386a[a67_0x3ab527(0x17c)]=a67_0x5c2739,a67_0xe8386a['testcase']={},a67_0xe8386a[a67_0x3ab527(0x17b)]={},module[a67_0x3ab527(0x17a)]=a67_0xe8386a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x35657d=a68_0x2307;(function(_0x5049b7,_0x1f1abd){const _0x5e1ce7=a68_0x2307,_0x1e475c=_0x5049b7();while(!![]){try{const _0x5c3a15=parseInt(_0x5e1ce7(0x1ed))/0x1*(parseInt(_0x5e1ce7(0x1d7))/0x2)+parseInt(_0x5e1ce7(0x1e3))/0x3+parseInt(_0x5e1ce7(0x1ec))/0x4*(parseInt(_0x5e1ce7(0x1da))/0x5)+-parseInt(_0x5e1ce7(0x1dd))/0x6+parseInt(_0x5e1ce7(0x1d6))/0x7*(-parseInt(_0x5e1ce7(0x1ee))/0x8)+parseInt(_0x5e1ce7(0x1cc))/0x9+-parseInt(_0x5e1ce7(0x1ea))/0xa;if(_0x5c3a15===_0x1f1abd)break;else _0x1e475c['push'](_0x1e475c['shift']());}catch(_0x4af50e){_0x1e475c['push'](_0x1e475c['shift']());}}}(a68_0x5704,0x1cd60));const tryRequire=function(_0x3a27b9,_0x2019ec){const _0x323897=a68_0x2307,_0x288f4f={'PEcIj':function(_0x41ec72,_0x8ba533){return _0x41ec72(_0x8ba533);}};try{return _0x288f4f[_0x323897(0x1de)](require,_0x3a27b9);}catch{return _0x2019ec;}},percySnapshot=tryRequire(a68_0x35657d(0x1d5),null),{percyScreenshot}=tryRequire(a68_0x35657d(0x1d5),{}),percyAppScreenshot=require(a68_0x35657d(0x1e9)),PerformanceTester=require(a68_0x35657d(0x1eb)),logger=require(a68_0x35657d(0x1cd))[a68_0x35657d(0x1cf)];percySnapshot&&(exports[a68_0x35657d(0x1d3)]=async function(){const _0x587f39=a68_0x35657d,_0x2599a7={};_0x2599a7[_0x587f39(0x1d2)]=function(_0x18b37a,_0x2e8d77){return _0x18b37a!==_0x2e8d77;},_0x2599a7[_0x587f39(0x1e2)]=function(_0x12160d,_0x931a55){return _0x12160d>=_0x931a55;},_0x2599a7[_0x587f39(0x1df)]=_0x587f39(0x1d8);const _0x53c57f=_0x2599a7;if(global[_0x587f39(0x1ce)]&&_0x53c57f[_0x587f39(0x1d2)](global[_0x587f39(0x1ce)],global['browserstackPercyBestPlatform']))return;const _0xa027e2=_0x53c57f[_0x587f39(0x1e2)](arguments[_0x587f39(0x1e8)],0x2)?arguments[0x1]:'',_0x3aeefe={};return _0x3aeefe[_0x587f39(0x1e0)]=_0xa027e2,_0x3aeefe[_0x587f39(0x1d9)]=global[_0x587f39(0x1ce)],await PerformanceTester[_0x587f39(0x1d0)](_0x53c57f[_0x587f39(0x1df)],()=>percySnapshot['apply'](null,arguments),_0x3aeefe);});function a68_0x5704(){const _0x7f10f9=['79944BJxwMm','wguqe','877032xDEGme','../logger','browserstackPlatformIndex','winstonLogger','measure','Unsupported\x20driver\x20for\x20percy','LbJPy','snapshot','gtJUy','@percy/selenium-webdriver','98NFFOty','6tJlois','percy:snapshot','platformIndex','685XuXYPZ','aFUML','percy:screenshot','793062OawuSw','PEcIj','WBDub','name','apply','huLnG','140019MtSelG','wAlrj','iIDLE','screenshot','screenshotApp','length','@percy/appium-app','414210VFZIkA','../performance-tester','2048ZTjsZJ','72449qBUXdG'];a68_0x5704=function(){return _0x7f10f9;};return a68_0x5704();}function a68_0x2307(_0x309119,_0x123032){const _0x5704ea=a68_0x5704();return a68_0x2307=function(_0x230711,_0x5d8db5){_0x230711=_0x230711-0x1cc;let _0x3e81d9=_0x5704ea[_0x230711];return _0x3e81d9;},a68_0x2307(_0x309119,_0x123032);}percyScreenshot?exports[a68_0x35657d(0x1e6)]=async function(){const _0x46ca23=a68_0x35657d,_0x1345c6={};_0x1345c6[_0x46ca23(0x1e4)]=function(_0x1a9eba,_0x293aba){return _0x1a9eba>=_0x293aba;},_0x1345c6[_0x46ca23(0x1db)]=_0x46ca23(0x1dc);const _0x599201=_0x1345c6,_0x545f5a=_0x599201[_0x46ca23(0x1e4)](arguments[_0x46ca23(0x1e8)],0x2)?arguments[0x1]:'',_0x135c86={};return _0x135c86[_0x46ca23(0x1e0)]=_0x545f5a,_0x135c86[_0x46ca23(0x1d9)]=global[_0x46ca23(0x1ce)],await PerformanceTester[_0x46ca23(0x1d0)](_0x599201[_0x46ca23(0x1db)],()=>percyScreenshot[_0x46ca23(0x1e1)](null,arguments),_0x135c86);}:exports['screenshot']=()=>{const _0x756247=a68_0x35657d,_0x593ee7={};_0x593ee7['wguqe']=_0x756247(0x1d1);const _0x168700=_0x593ee7;logger['error'](_0x168700[_0x756247(0x1ef)]);};exports[a68_0x35657d(0x1e7)]=async function(){const _0x499f9a=a68_0x35657d,_0x4c9ec4={};_0x4c9ec4[_0x499f9a(0x1d4)]=function(_0x2d8d85,_0x4ba286){return _0x2d8d85>=_0x4ba286;},_0x4c9ec4[_0x499f9a(0x1e5)]='percy:screenshot-app';const _0x285d57=_0x4c9ec4,_0x38468b=_0x285d57[_0x499f9a(0x1d4)](arguments[_0x499f9a(0x1e8)],0x2)?arguments[0x1]:'',_0x4a3337={};return _0x4a3337[_0x499f9a(0x1e0)]=_0x38468b,_0x4a3337['platformIndex']=global[_0x499f9a(0x1ce)],await PerformanceTester[_0x499f9a(0x1d0)](_0x285d57[_0x499f9a(0x1e5)],()=>percyAppScreenshot[_0x499f9a(0x1e1)](null,arguments),_0x4a3337);};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a69_0x5dfd85=a69_0x2b10;function a69_0x2b10(_0x932681,_0x516540){var _0x89c045=a69_0x89c0();return a69_0x2b10=function(_0x2b1013,_0x3c0de1){_0x2b1013=_0x2b1013-0x168;var _0x1e0fd2=_0x89c045[_0x2b1013];return _0x1e0fd2;},a69_0x2b10(_0x932681,_0x516540);}function a69_0x89c0(){var _0x10e47d=['2390640DPpcMn','832485tCTxmk','2HcRWIj','1842MUHkZd','3566392buSGfU','19914UZRhcL','18NELdBQ','3619LppEyv','./Percy','1811180eJbsWh','26603680XVCdfj'];a69_0x89c0=function(){return _0x10e47d;};return a69_0x89c0();}(function(_0x1b3670,_0x5e2b02){var _0x5022c9=a69_0x2b10,_0x31e0a7=_0x1b3670();while(!![]){try{var _0x58c932=-parseInt(_0x5022c9(0x16c))/0x1*(-parseInt(_0x5022c9(0x16f))/0x2)+-parseInt(_0x5022c9(0x16a))/0x3+-parseInt(_0x5022c9(0x168))/0x4+parseInt(_0x5022c9(0x16b))/0x5+-parseInt(_0x5022c9(0x16d))/0x6*(parseInt(_0x5022c9(0x171))/0x7)+parseInt(_0x5022c9(0x16e))/0x8*(-parseInt(_0x5022c9(0x170))/0x9)+parseInt(_0x5022c9(0x169))/0xa;if(_0x58c932===_0x5e2b02)break;else _0x31e0a7['push'](_0x31e0a7['shift']());}catch(_0x18a231){_0x31e0a7['push'](_0x31e0a7['shift']());}}}(a69_0x89c0,0x857e3),module['exports']=require(a69_0x5dfd85(0x172)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a70_0x602e(){const _0x14c0d3=['getDriver','browserStackPercyOptions','start','percy:stop','measureWrapper','LekXY','1964768Yadrbw','safari','stop','Error\x20patching\x20','./PercySDK','stIwy','\x20for\x20percy\x20','2621004xxxrbV','stopPercy','../helper','11658176CVGheO','UFAUh','iXICG','percyCaptureMode','Stopping\x20percy','chrome','JRHnx','xGHjS','debug','patch','overrideXforPercy','apply','308651FfEyuq','getName','nestedKeyValue','./Percy','percyAutoCapture','toLowerCase','3001610dCAgpF','browserName','app','element','38Vxzuvt','HGOuk','zWiyE','prototype','./PercyCaptureMap','getBestPlatformForPercySnapshot','94017VsqDIs','ofShN','then','../logger','browserstackSessionName','reduce','error','getPercyOptions','deviceName','edge','browserstackPercyMap','rpuQp','Starting\x20percy','eXkgZ','forEach','init','80721YJhrVQ','driver','increment','percy','Couldn\x27t\x20capture\x20percy\x20screenshot,\x20no\x20session\x20name\x20present'];a70_0x602e=function(){return _0x14c0d3;};return a70_0x602e();}const a70_0x337550=a70_0x3a3a;(function(_0x590ad6,_0x134778){const _0x24669a=a70_0x3a3a,_0x230a5b=_0x590ad6();while(!![]){try{const _0x223f09=parseInt(_0x24669a(0x124))/0x1+parseInt(_0x24669a(0x15f))/0x2*(-parseInt(_0x24669a(0x134))/0x3)+-parseInt(_0x24669a(0x13f))/0x4+parseInt(_0x24669a(0x15b))/0x5+-parseInt(_0x24669a(0x146))/0x6+-parseInt(_0x24669a(0x155))/0x7+parseInt(_0x24669a(0x149))/0x8;if(_0x223f09===_0x134778)break;else _0x230a5b['push'](_0x230a5b['shift']());}catch(_0x3a5440){_0x230a5b['push'](_0x230a5b['shift']());}}}(a70_0x602e,0xa3263));const Percy=require(a70_0x337550(0x158)),PercySDK=require(a70_0x337550(0x143)),PercyCaptureModes=require('./PercyCaptureModes'),PercyCaptureMap=require(a70_0x337550(0x122)),logger=require(a70_0x337550(0x127))['winstonLogger'],helper=require(a70_0x337550(0x148)),PerformanceTester=require('../performance-tester');function a70_0x3a3a(_0x513770,_0x109ac3){const _0x602efd=a70_0x602e();return a70_0x3a3a=function(_0x3a3a1b,_0x149cba){_0x3a3a1b=_0x3a3a1b-0x11f;let _0x43d84c=_0x602efd[_0x3a3a1b];return _0x43d84c;},a70_0x3a3a(_0x513770,_0x109ac3);}exports['startPercy']=PerformanceTester[a70_0x337550(0x13d)]('percy:start',async _0x5dad02=>{const _0x4259d8=a70_0x337550,_0x41d593={};_0x41d593[_0x4259d8(0x144)]=_0x4259d8(0x130);const _0x84311e=_0x41d593;logger[_0x4259d8(0x151)](_0x84311e['stIwy']);const _0x4a9651=new Percy(_0x5dad02),_0x4ca3f6=await _0x4a9651[_0x4259d8(0x13b)]();if(_0x4ca3f6)return _0x4a9651;return null;}),exports[a70_0x337550(0x147)]=PerformanceTester[a70_0x337550(0x13d)](a70_0x337550(0x13c),async _0x24ad59=>{const _0x80e157=a70_0x337550,_0x1ca01f={};_0x1ca01f['rpuQp']=_0x80e157(0x14d);const _0xbcd03d=_0x1ca01f;return logger[_0x80e157(0x151)](_0xbcd03d[_0x80e157(0x12f)]),_0x24ad59[_0x80e157(0x141)]();}),exports['getBestPlatformForPercySnapshot']=_0x3f1498=>{const _0x102932=a70_0x337550,_0x2d3aa1={};_0x2d3aa1[_0x102932(0x14a)]=function(_0x1db962,_0x52a804){return _0x1db962<_0x52a804;};const _0x55052f=_0x2d3aa1,_0x427171={};_0x427171[_0x102932(0x14e)]=0x0,_0x427171['firefox']=0x1,_0x427171[_0x102932(0x12d)]=0x2,_0x427171[_0x102932(0x140)]=0x3;const _0x41bf41=_0x427171;return _0x3f1498[_0x102932(0x129)]((_0x2bf842,_0x355b2c,_0x351aea)=>{const _0x4ca700=_0x102932,_0x24baa3=_0x3f1498[_0x2bf842];if(_0x355b2c[_0x4ca700(0x12c)])return _0x2bf842;if(_0x24baa3[_0x4ca700(0x12c)])return _0x351aea;const _0x205298=_0x355b2c['browser']?_0x355b2c['browser']:_0x355b2c[_0x4ca700(0x15c)];if(_0x205298&&_0x55052f['UFAUh'](_0x41bf41[_0x205298[_0x4ca700(0x15a)]()],_0x41bf41[_0x205298[_0x4ca700(0x15a)]()]))return _0x351aea;return _0x2bf842;},0x0);},exports['percyAutoCapture']=async(_0x10c036,_0x4b1e4c,_0x210275)=>{const _0x1ce477=a70_0x337550,_0x4e7b85={};_0x4e7b85[_0x1ce477(0x150)]=_0x1ce477(0x138);const _0x4e63ae=_0x4e7b85,_0x3328b8=_0x10c036[_0x1ce477(0x12e)];if(helper['isUndefined'](_0x10c036['browserstackSessionName'])){logger[_0x1ce477(0x151)](_0x4e63ae['xGHjS']);return;}const _0x4014b0=_0x3328b8[_0x1ce477(0x156)](_0x10c036[_0x1ce477(0x128)],_0x4b1e4c);_0x210275[_0x1ce477(0x15d)]?await PercySDK['screenshotApp'](_0x10c036,_0x4014b0):await PercySDK['screenshot'](_0x10c036,_0x4014b0),_0x3328b8[_0x1ce477(0x136)](_0x10c036['browserstackSessionName'],_0x4b1e4c);},exports['patchDriverPercy']=(_0xdba411,_0x1ff133,_0x489bfa)=>{const _0x329ee6=a70_0x337550,_0x1ef218={};_0x1ef218['JRHnx']=_0x329ee6(0x13a),_0x1ef218[_0x329ee6(0x125)]=_0x329ee6(0x137),_0x1ef218['iXICG']=function(_0x49c6c0,_0x326336){return _0x49c6c0!==_0x326336;},_0x1ef218[_0x329ee6(0x120)]='manual';const _0x249505=_0x1ef218;if(!helper[_0x329ee6(0x157)](_0x489bfa,[_0x249505[_0x329ee6(0x14f)],_0x249505[_0x329ee6(0x125)]]))return;if(_0x489bfa[_0x329ee6(0x13a)][_0x329ee6(0x137)]&&_0x489bfa[_0x329ee6(0x13a)][_0x329ee6(0x14c)]&&_0x249505[_0x329ee6(0x14b)](_0x489bfa[_0x329ee6(0x13a)]['percyCaptureMode'],_0x249505[_0x329ee6(0x120)])&&!_0xdba411[_0x329ee6(0x12e)]){global[_0x329ee6(0x128)]&&(_0xdba411[_0x329ee6(0x128)]=global[_0x329ee6(0x128)]),_0xdba411[_0x329ee6(0x12e)]=new PercyCaptureMap();const _0xc819d5=PercyCaptureModes[_0x489bfa[_0x329ee6(0x13a)][_0x329ee6(0x14c)]];_0xc819d5[_0x329ee6(0x135)]&&_0xc819d5[_0x329ee6(0x135)][_0x329ee6(0x132)](_0x35ab76=>this['overrideXforPercy'](_0xdba411,_0x35ab76,_0x489bfa)),_0xc819d5['element']&&_0xc819d5[_0x329ee6(0x15e)][_0x329ee6(0x132)](_0x53b54c=>{const _0x34058c=_0x329ee6;if(_0x1ff133[_0x34058c(0x121)][_0x34058c(0x152)+_0x53b54c])return;_0x1ff133[_0x34058c(0x121)][_0x34058c(0x152)+_0x53b54c]=!![];const _0x509060=_0x1ff133[_0x34058c(0x121)][_0x53b54c];_0x1ff133['prototype'][_0x53b54c]=async function(){const _0xc438ca=_0x34058c;let _0x2f2abb=_0x509060['apply'](this,arguments);_0x2f2abb&&_0x2f2abb[_0xc438ca(0x126)]&&(_0x2f2abb=await _0x2f2abb);try{const _0x23116d=this[_0xc438ca(0x139)]();await exports[_0xc438ca(0x159)](_0x23116d,_0x53b54c,_0x489bfa);}catch(_0x3c0c59){logger[_0xc438ca(0x12a)](_0xc438ca(0x142)+_0x53b54c+_0xc438ca(0x145)+_0x3c0c59);}return _0x2f2abb;};});}},exports[a70_0x337550(0x153)]=function(_0x1504a1,_0x56b28a,_0x14f1c2){const _0x15cd60=a70_0x337550,_0x1dd291={};_0x1dd291['LekXY']=function(_0x33f62a,_0xce9183){return _0x33f62a+_0xce9183;},_0x1dd291[_0x15cd60(0x11f)]=_0x15cd60(0x152),_0x1dd291[_0x15cd60(0x131)]=_0x15cd60(0x133);const _0x1d746b=_0x1dd291,_0x2c3aad=_0x1d746b[_0x15cd60(0x13e)](_0x1d746b[_0x15cd60(0x11f)],_0x56b28a),_0x49e6ae=_0x1d746b[_0x15cd60(0x13e)](_0x1d746b[_0x15cd60(0x131)],_0x56b28a),_0x1b255e=this;if(_0x1504a1[_0x2c3aad]||!_0x1504a1[_0x56b28a])return;_0x1504a1[_0x2c3aad]=!![],_0x1504a1[_0x49e6ae]=_0x1504a1[_0x56b28a],_0x1504a1[_0x56b28a]=async()=>{const _0x26c093=_0x15cd60;try{await _0x1b255e[_0x26c093(0x159)](_0x1504a1,_0x56b28a,_0x14f1c2);}catch(_0xb165fc){logger[_0x26c093(0x12a)](_0x26c093(0x142)+_0x56b28a+'\x20for\x20percy\x20'+_0xb165fc);}return await _0x1504a1[_0x49e6ae][_0x26c093(0x154)](_0x1504a1,arguments);};},exports[a70_0x337550(0x12b)]=_0x3c20ca=>{const _0x51e077=a70_0x337550,_0x2f9818={};_0x2f9818[_0x51e077(0x137)]=_0x3c20ca[_0x51e077(0x137)],_0x2f9818['percyCaptureMode']=_0x3c20ca[_0x51e077(0x14c)];const _0x188480=_0x2f9818;_0x3c20ca[_0x51e077(0x137)]&&(_0x188480['browserstackPercyBestPlatform']=exports[_0x51e077(0x123)](_0x3c20ca['platforms']));;return _0x188480;};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a70_0x4ba0d8=a70_0xe4e6;function a70_0xe4e6(_0x257a34,_0x4d4016){const _0x2813ad=a70_0x2813();return a70_0xe4e6=function(_0xe4e628,_0x2c277b){_0xe4e628=_0xe4e628-0x169;let _0xcecd03=_0x2813ad[_0xe4e628];return _0xcecd03;},a70_0xe4e6(_0x257a34,_0x4d4016);}(function(_0x5a76ab,_0x47bde5){const _0x596d6a=a70_0xe4e6,_0x268f4d=_0x5a76ab();while(!![]){try{const _0x1a3c16=-parseInt(_0x596d6a(0x1a7))/0x1*(-parseInt(_0x596d6a(0x1c3))/0x2)+parseInt(_0x596d6a(0x195))/0x3*(-parseInt(_0x596d6a(0x176))/0x4)+-parseInt(_0x596d6a(0x1a3))/0x5+parseInt(_0x596d6a(0x171))/0x6+-parseInt(_0x596d6a(0x19f))/0x7*(-parseInt(_0x596d6a(0x1a4))/0x8)+-parseInt(_0x596d6a(0x1db))/0x9+parseInt(_0x596d6a(0x1e5))/0xa;if(_0x1a3c16===_0x47bde5)break;else _0x268f4d['push'](_0x268f4d['shift']());}catch(_0x2933c1){_0x268f4d['push'](_0x268f4d['shift']());}}}(a70_0x2813,0x3e287));const fs=require('fs'),{performance,PerformanceObserver}=require(a70_0x4ba0d8(0x194)),{sleep,debug}=require(a70_0x4ba0d8(0x17e)),path=require('path'),logger=require(a70_0x4ba0d8(0x170))['winstonLogger'];class PerformanceTester{static [a70_0x4ba0d8(0x1ad)];static ['_events']=[];static [a70_0x4ba0d8(0x185)]=[];static ['_errorEvents']=[];static [a70_0x4ba0d8(0x181)]=![];static [a70_0x4ba0d8(0x169)]=a70_0x4ba0d8(0x1e0);static ['errorReportFileName']=a70_0x4ba0d8(0x1ae);static[a70_0x4ba0d8(0x16b)](_0x34a947=a70_0x4ba0d8(0x1e0),_0x5cb50a=a70_0x4ba0d8(0x1ae)){const _0x441c71=a70_0x4ba0d8,_0x15a122={};_0x15a122[_0x441c71(0x1b1)]=function(_0x55d7bb,_0x2f905d){return _0x55d7bb===_0x2f905d;},_0x15a122[_0x441c71(0x196)]=_0x441c71(0x16f),_0x15a122['Ttpew']=_0x441c71(0x1b2);const _0x2368b3=_0x15a122;if(this[_0x441c71(0x181)]||!this['isEnabled']())return;this[_0x441c71(0x1ad)]=new PerformanceObserver(_0x1f7ce5=>{const _0x4334fc=_0x441c71;_0x1f7ce5[_0x4334fc(0x1c2)]()['forEach'](_0x516f5e=>{const _0x2461f2=_0x4334fc;_0x2368b3[_0x2461f2(0x1b1)](_0x516f5e['entryType'],_0x2368b3[_0x2461f2(0x196)])?this[_0x2461f2(0x185)][_0x2461f2(0x1c7)](_0x516f5e):this[_0x2461f2(0x16a)][_0x2461f2(0x1c7)](_0x516f5e);});});const _0x19a92c={};_0x19a92c[_0x441c71(0x19d)]=!![],_0x19a92c[_0x441c71(0x1a1)]=[_0x2368b3[_0x441c71(0x182)],_0x2368b3[_0x441c71(0x196)]],this[_0x441c71(0x1ad)][_0x441c71(0x179)](_0x19a92c),this[_0x441c71(0x181)]=!![],this[_0x441c71(0x169)]=_0x34a947,this[_0x441c71(0x1dd)]=_0x5cb50a;}static['getPerformance'](){return performance;}static[a70_0x4ba0d8(0x1e3)](_0x5ebc60,_0x4c3cf7){const _0x44b8dd=a70_0x4ba0d8,_0x1050df={};_0x1050df[_0x44b8dd(0x19e)]=function(_0x4752d4,_0x4dd67a){return _0x4752d4+_0x4dd67a;},_0x1050df[_0x44b8dd(0x19a)]=function(_0x48a7f9,_0x3f9b46){return _0x48a7f9||_0x3f9b46;},_0x1050df['DDhtI']=function(_0xb3956f,_0x5758b7){return _0xb3956f===_0x5758b7;};const _0x58ca7f=_0x1050df,_0x4cef26={};if(!_0x5ebc60||_0x58ca7f[_0x44b8dd(0x18c)](_0x5ebc60[_0x44b8dd(0x1d3)],0x0))return;_0x5ebc60[_0x44b8dd(0x193)](_0x8406e2=>{const _0x2e6b80=_0x44b8dd;!_0x4cef26[_0x8406e2[_0x2e6b80(0x1e1)]]&&(_0x4cef26[_0x8406e2['name']]=0x0),_0x4cef26[_0x8406e2[_0x2e6b80(0x1e1)]]+=_0x8406e2[_0x2e6b80(0x1d8)];});const _0xf2cf1e=_0x4c3cf7[_0x44b8dd(0x1c1)]((_0x144eef,_0x118b7a)=>{const _0x1080df=_0x44b8dd;return _0x58ca7f[_0x1080df(0x19e)](_0x4cef26[_0x118b7a],_0x58ca7f[_0x1080df(0x19a)](_0x144eef,0x0));},0x0);return _0xf2cf1e;}static async[a70_0x4ba0d8(0x1b0)](_0x10451c,_0x5bb6a5){const _0x3f8604=a70_0x4ba0d8,_0x5eccb5={'XgJdF':function(_0x52ae7a,_0x2c0c9c){return _0x52ae7a+_0x2c0c9c;},'LlZYK':function(_0x355eb2,_0x594d90){return _0x355eb2||_0x594d90;},'ZltGJ':function(_0x5c06e2,_0x483669){return _0x5c06e2===_0x483669;},'SPjUL':function(_0x2ae80a,_0x14e8bf){return _0x2ae80a(_0x14e8bf);}};if(!_0x10451c||_0x5eccb5[_0x3f8604(0x18a)](_0x10451c[_0x3f8604(0x1d3)],0x0))return 0x0;const _0x35906a=[];for(const _0x3fcf36 of _0x10451c){const _0x10c59b=path[_0x3f8604(0x1d1)]('.',_0x3fcf36);try{const _0x19864e=this['getEventsFromJSON'](_0x10c59b);_0x19864e['map'](_0x1ee9ba=>{const _0x361ca8=_0x3f8604;!_0x35906a[_0x1ee9ba[_0x361ca8(0x1e1)]]&&(_0x35906a[_0x1ee9ba[_0x361ca8(0x1e1)]]=0x0),_0x35906a[_0x1ee9ba['name']]+=_0x1ee9ba[_0x361ca8(0x1d8)];});}catch(_0x1a19b6){_0x5eccb5['SPjUL'](debug,_0x3f8604(0x16d)+_0x1a19b6[_0x3f8604(0x1b4)]());}}const _0x43298e=_0x5bb6a5[_0x3f8604(0x1c1)]((_0x108cb1,_0xfdc5e8)=>{const _0x523783=_0x3f8604;return _0x5eccb5[_0x523783(0x1ca)](_0x35906a[_0xfdc5e8],_0x5eccb5[_0x523783(0x1cc)](_0x108cb1,0x0));},0x0);return _0x5eccb5[_0x3f8604(0x177)](debug,_0x3f8604(0x175)+_0x5bb6a5+_0x3f8604(0x18d)+_0x43298e),_0x43298e;}static[a70_0x4ba0d8(0x1da)](_0x5cef2d){const _0xc39a2d=a70_0x4ba0d8;if(!fs[_0xc39a2d(0x1a8)](_0x5cef2d))return[];return JSON['parse'](fs[_0xc39a2d(0x1bd)](_0x5cef2d)['toString']());}static async[a70_0x4ba0d8(0x1cb)](_0x20af97=a70_0x4ba0d8(0x1cd),_0x3d251b=null){const _0x2989f0=a70_0x4ba0d8,_0x357efa={'CULRH':function(_0x5b425e,_0x2a38eb){return _0x5b425e(_0x2a38eb);},'ksgeg':function(_0xd5fc6f,_0xaed08e){return _0xd5fc6f(_0xaed08e);}};if(!this[_0x2989f0(0x181)])return;await _0x357efa[_0x2989f0(0x1b6)](sleep,0x1e),this[_0x2989f0(0x1ad)][_0x2989f0(0x19c)](),this[_0x2989f0(0x181)]=![],this[_0x2989f0(0x1e4)](this[_0x2989f0(0x16a)]);const _0x45fcb1=this['generateHTMLReport'](this[_0x2989f0(0x16a)]),_0x55bf62=path['join'](process[_0x2989f0(0x1c0)](),_0x20af97);fs[_0x2989f0(0x1de)](_0x55bf62,_0x45fcb1,_0x206129=>{const _0x56aac2=_0x2989f0;if(_0x206129){_0x357efa['CULRH'](debug,_0x56aac2(0x1dc)+_0x206129['toString']());return;}_0x357efa[_0x56aac2(0x1bf)](debug,_0x56aac2(0x174)+_0x55bf62);});if(_0x3d251b)return this[_0x2989f0(0x1e3)](this[_0x2989f0(0x16a)],_0x3d251b);}static[a70_0x4ba0d8(0x1b3)](_0x6fed0e){const _0x270ee2=a70_0x4ba0d8,_0x14fac8={};_0x14fac8[_0x270ee2(0x1ce)]=_0x270ee2(0x1b7),_0x14fac8['jBrAM']=_0x270ee2(0x191),_0x14fac8[_0x270ee2(0x1ac)]=_0x270ee2(0x199),_0x14fac8['NahET']=_0x270ee2(0x1d6);const _0x53a2c2=_0x14fac8;let _0x3d7ae3=_0x53a2c2[_0x270ee2(0x1ce)];return _0x3d7ae3+=_0x53a2c2[_0x270ee2(0x1a2)],_0x3d7ae3+=_0x53a2c2[_0x270ee2(0x1ac)],_0x6fed0e['forEach'](_0x4c934d=>{const _0x1d3fa8=_0x270ee2;_0x3d7ae3+=_0x1d3fa8(0x1cf)+_0x4c934d[_0x1d3fa8(0x1e1)]+_0x1d3fa8(0x17d)+_0x4c934d['duration']+_0x1d3fa8(0x1e2);}),_0x3d7ae3+=_0x53a2c2[_0x270ee2(0x180)],_0x3d7ae3;}static['generateJSON'](_0x45d2d6){const _0x4c1fec=a70_0x4ba0d8;if(!this[_0x4c1fec(0x169)])return;const _0x31e78a={};_0x45d2d6[_0x4c1fec(0x193)](_0x48dd8e=>{const _0x5f62e9=_0x4c1fec;!_0x31e78a[_0x48dd8e[_0x5f62e9(0x1e1)]]&&(_0x31e78a[_0x48dd8e['name']]=0x0),_0x31e78a[_0x48dd8e[_0x5f62e9(0x1e1)]]+=_0x48dd8e['duration'];});const _0x63136a=Object[_0x4c1fec(0x1d0)](_0x31e78a)[_0x4c1fec(0x193)](([_0x2da1b4,_0x264cca])=>{const _0x3fb658=_0x4c1fec,_0x5baf78={};return _0x5baf78[_0x3fb658(0x1e1)]=_0x2da1b4,_0x5baf78[_0x3fb658(0x1d8)]=_0x264cca,_0x5baf78;});fs[_0x4c1fec(0x189)](this['jsonReportFileName'],JSON[_0x4c1fec(0x187)](_0x63136a));}static[a70_0x4ba0d8(0x16e)](){const _0x53cf89=a70_0x4ba0d8,_0x4f3468={};_0x4f3468['YEtYF']=function(_0x55e03f,_0x5ef232){return _0x55e03f===_0x5ef232;},_0x4f3468['OJzfu']=_0x53cf89(0x1c9);const _0x167483=_0x4f3468;return!_0x167483[_0x53cf89(0x17a)](process['env'][_0x53cf89(0x1a9)],_0x167483[_0x53cf89(0x192)]);}static[a70_0x4ba0d8(0x16f)](_0x189f81,_0x9383bc,_0x521265=null,_0x354617=null){const _0x34d632=a70_0x4ba0d8,_0x24b801={};_0x24b801[_0x34d632(0x1d4)]=function(_0x60d579,_0x5d75c1){return _0x60d579+_0x5d75c1;},_0x24b801[_0x34d632(0x1bc)]=_0x34d632(0x1be),_0x24b801[_0x34d632(0x18f)]=function(_0x35fe52,_0x350b59){return _0x35fe52+_0x350b59;},_0x24b801[_0x34d632(0x1ab)]='-end',_0x24b801[_0x34d632(0x198)]=function(_0x36eceb,_0xf81ab2){return _0x36eceb instanceof _0xf81ab2;};const _0x2c0472=_0x24b801;try{if(this[_0x34d632(0x181)]&&this[_0x34d632(0x16e)]()){let _0x5aa926=_0x189f81;_0x521265&&(_0x5aa926=_0x189f81+'['+JSON[_0x34d632(0x187)](_0x521265)+']');const _0x5106d5=_0x2c0472[_0x34d632(0x1d4)](_0x5aa926,_0x2c0472['yQLYq']),_0x57dcdd=_0x2c0472[_0x34d632(0x18f)](_0x5aa926,_0x2c0472[_0x34d632(0x1ab)]);performance[_0x34d632(0x172)](_0x5106d5);const _0x2b7272=_0x9383bc[_0x34d632(0x19b)](null,_0x354617);if(_0x2c0472[_0x34d632(0x198)](_0x2b7272,Promise))return new Promise((_0x459d64,_0x2385b2)=>{const _0x1979d4=_0x34d632;_0x2b7272[_0x1979d4(0x17f)](_0x280eca=>_0x459d64(_0x280eca))['catch'](_0x1006b2=>_0x2385b2(_0x1006b2))[_0x1979d4(0x184)](()=>{performance['mark'](_0x57dcdd),performance['measure'](_0x5aa926,_0x5106d5,_0x57dcdd);});});;return performance[_0x34d632(0x172)](_0x57dcdd),performance[_0x34d632(0x16f)](_0x5aa926,_0x5106d5,_0x57dcdd),_0x2b7272;};return _0x9383bc[_0x34d632(0x19b)](null,_0x354617);}catch(_0x26ecd5){return _0x9383bc[_0x34d632(0x19b)](null,_0x354617);}}static[a70_0x4ba0d8(0x17b)](_0x308e11,_0x18e616){const _0x1c7748=this;return function(){const _0x3ccb55=a70_0xe4e6,_0x674808=[_0x308e11,_0x18e616,null][_0x3ccb55(0x1af)](arguments);return _0x1c7748[_0x3ccb55(0x16f)][_0x3ccb55(0x19b)](_0x1c7748,_0x674808);};}static['getCleanedPerfEvents'](){const _0x2f788a=a70_0x4ba0d8,_0x1cc21c={};_0x1cc21c[_0x2f788a(0x1e6)]=function(_0x42a180,_0xe3a706){return _0x42a180/_0xe3a706;},_0x1cc21c['FKItW']=function(_0x538b20,_0x1a3d20){return _0x538b20+_0x1a3d20;},_0x1cc21c[_0x2f788a(0x1d9)]=function(_0x3f249a,_0x270b6a){return _0x3f249a*_0x270b6a;};const _0x4305cd=_0x1cc21c,_0x59d1d0=/(^.*)\[(.*)\]$/,_0x112d2e={},_0x506269={};for(const _0x17cf28 of this[_0x2f788a(0x185)]){const _0x2f6ec9=_0x17cf28['name']['match'](_0x59d1d0),_0x57fbc1={};_0x57fbc1[_0x2f788a(0x1e1)]=_0x17cf28[_0x2f788a(0x1e1)],_0x57fbc1['duration']=_0x17cf28[_0x2f788a(0x1d8)]||0x0;const _0x333455=_0x57fbc1;_0x2f6ec9&&(_0x333455[_0x2f788a(0x1e1)]=_0x2f6ec9[0x1],_0x333455['meta']=JSON[_0x2f788a(0x1ba)](_0x2f6ec9[0x2]));if(_0x112d2e[_0x333455[_0x2f788a(0x1e1)]]){const _0x24fc65=_0x112d2e[_0x333455['name']],_0x5b756b=_0x506269[_0x333455['name']];_0x112d2e[_0x333455['name']][_0x2f788a(0x1d8)]=_0x4305cd[_0x2f788a(0x1e6)](_0x4305cd[_0x2f788a(0x17c)](_0x4305cd[_0x2f788a(0x1d9)](_0x24fc65[_0x2f788a(0x1d8)],_0x5b756b),_0x333455[_0x2f788a(0x1d8)]),_0x4305cd[_0x2f788a(0x17c)](0x1,_0x5b756b)),_0x506269[_0x333455[_0x2f788a(0x1e1)]]++;}else _0x112d2e[_0x333455['name']]=_0x333455,_0x506269[_0x333455[_0x2f788a(0x1e1)]]=0x1;}return Object[_0x2f788a(0x1d2)](_0x112d2e);}static[a70_0x4ba0d8(0x1aa)](){const _0x5a146c=a70_0x4ba0d8,_0x2cd313={};_0x2cd313['JsITo']=function(_0x32c61b,_0x2a78d1){return _0x32c61b===_0x2a78d1;},_0x2cd313[_0x5a146c(0x190)]=function(_0x2849b7,_0x4f8dae){return _0x2849b7+_0x4f8dae;};const _0x5a3566=_0x2cd313;if(_0x5a3566[_0x5a146c(0x186)](this[_0x5a146c(0x185)][_0x5a146c(0x1d3)],0x0))return;const _0x2ff5af=this['getCleanedPerfEvents'](),_0x4b3e8a=JSON[_0x5a146c(0x187)](_0x2ff5af),_0x263422=_0x5a3566[_0x5a146c(0x190)](_0x4b3e8a[_0x5a146c(0x1a6)](0x1,-0x1),',');fs[_0x5a146c(0x1d5)](this[_0x5a146c(0x169)],_0x263422);}static['finalizePerfMeasures'](){const _0x4c395a=a70_0x4ba0d8,_0xa583da={};_0xa583da[_0x4c395a(0x1c4)]=function(_0x1059a4,_0x359bb5){return _0x1059a4===_0x359bb5;},_0xa583da[_0x4c395a(0x1c5)]=function(_0x376d1c,_0x281025){return _0x376d1c>_0x281025;};const _0x26c9d1=_0xa583da;if(!this[_0x4c395a(0x181)]||_0x26c9d1[_0x4c395a(0x1c4)](this[_0x4c395a(0x185)][_0x4c395a(0x1d3)],0x0))return[];if(!fs[_0x4c395a(0x1a8)](this[_0x4c395a(0x169)]))return this['_measureEvents'];let _0x9ad5b6=fs['readFileSync'](this[_0x4c395a(0x169)])[_0x4c395a(0x1b4)]();_0x9ad5b6='['+_0x9ad5b6[_0x4c395a(0x1a6)](0x0,-0x1)+']';let _0x418f2c=JSON[_0x4c395a(0x1ba)](_0x9ad5b6);return _0x26c9d1[_0x4c395a(0x1c5)](this['_measureEvents'][_0x4c395a(0x1d3)],0x0)&&(_0x418f2c=_0x418f2c[_0x4c395a(0x1af)](this[_0x4c395a(0x1c8)]())),this[_0x4c395a(0x1ad)][_0x4c395a(0x19c)](),fs['unlinkSync'](this[_0x4c395a(0x169)]),_0x418f2c;}static['pushErrors'](){const _0x30e252=a70_0x4ba0d8,_0x16f5b8={};_0x16f5b8['qqOyo']=function(_0x18c59b,_0x1e4f3e){return _0x18c59b===_0x1e4f3e;},_0x16f5b8[_0x30e252(0x197)]=function(_0x39aad2,_0x1abe37){return _0x39aad2+_0x1abe37;};const _0x155095=_0x16f5b8;if(_0x155095[_0x30e252(0x178)](this[_0x30e252(0x173)][_0x30e252(0x1d3)],0x0))return;const _0x15300a=JSON[_0x30e252(0x187)](this[_0x30e252(0x173)]),_0x294084=_0x155095[_0x30e252(0x197)](_0x15300a[_0x30e252(0x1a6)](0x1,-0x1),',');fs['appendFileSync'](this[_0x30e252(0x188)],_0x294084);}static[a70_0x4ba0d8(0x1c6)](){const _0x1b7470=a70_0x4ba0d8,_0x2629fd={};_0x2629fd[_0x1b7470(0x1b8)]=function(_0x3474ab,_0x2572e3){return _0x3474ab>_0x2572e3;};const _0x5619ea=_0x2629fd;if(!fs[_0x1b7470(0x1a8)](this[_0x1b7470(0x1dd)]))return this[_0x1b7470(0x173)];let _0x20d6d2=fs[_0x1b7470(0x1bd)](this['errorReportFileName'])[_0x1b7470(0x1b4)]();_0x20d6d2='['+_0x20d6d2['slice'](0x0,-0x1)+']';let _0x4c6ed8=JSON[_0x1b7470(0x1ba)](_0x20d6d2);return _0x5619ea[_0x1b7470(0x1b8)](this[_0x1b7470(0x173)]['length'],0x0)&&(_0x4c6ed8=_0x4c6ed8[_0x1b7470(0x1af)](this[_0x1b7470(0x173)])),fs[_0x1b7470(0x1b5)](this['errorReportFileName']),_0x4c6ed8;}static[a70_0x4ba0d8(0x18e)](_0x469e85){const _0xfb8b12=a70_0x4ba0d8;if(!this[_0xfb8b12(0x16e)]())return;this[_0xfb8b12(0x173)][_0xfb8b12(0x1c7)]({'message':_0x469e85[_0xfb8b12(0x1a5)],'trace':_0x469e85[_0xfb8b12(0x1b9)],'code':_0x469e85[_0xfb8b12(0x183)]||null,'time':new Date()});}static[a70_0x4ba0d8(0x1a0)](){const _0x2eaed5=a70_0x4ba0d8,_0x299102={};_0x299102[_0x2eaed5(0x16c)]=_0x2eaed5(0x18b);const _0x243275=_0x299102;try{if(!this['isEnabled']())return;this['_observer'][_0x2eaed5(0x19c)](),this['pushPerfMeasures'](),this['pushErrors']();}catch{logger['debug'](_0x243275['Cxflf']);}}static['finalize'](){const _0x2a74e2=a70_0x4ba0d8,_0x3c8503=this[_0x2a74e2(0x1bb)](),_0x330668=this[_0x2a74e2(0x1c6)]();if(!this[_0x2a74e2(0x16e)]()){const _0x4f1531={};return _0x4f1531[_0x2a74e2(0x1d7)]=[],_0x4f1531['errors']=[],_0x4f1531;}const _0x4af94a={};return _0x4af94a[_0x2a74e2(0x1d7)]=_0x3c8503,_0x4af94a['errors']=_0x330668,_0x4af94a;}}function a70_0x2813(){const _0x4ecbe4=['5691BQvxaY','stopMonitoring','entryTypes','jBrAM','2456500UymarT','808sFDmve','message','slice','7838dTlrGQ','existsSync','BROWSERSTACK_SDK_INSTRUMENTATION','pushPerfMeasures','FcEAw','FenJs','_observer','error-report.json','concat','calculateTimesFromMultipleFiles','AiQSK','function','generateHTMLReport','toString','unlinkSync','ksgeg','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','HzkAt','stack','parse','finalizePerfMeasures','yQLYq','readFileSync','-start','CULRH','cwd','reduce','getEntries','48SkxMHW','mGzoJ','DJxga','finalizeErrors','push','getCleanedPerfEvents','false','XgJdF','stopAndGenerate','LlZYK','performance-own.html','kjtKH','<tr><td>','entries','join','values','length','lqoaB','appendFileSync','</tbody></table></body></html>','measures','duration','CYwCJ','getEventsFromJSON','563238eHiiAp','Error\x20in\x20writing\x20html\x20','errorReportFileName','writeFile','exports','performance-report.json','name','</td></tr>','calculateTimeFromEvents','generateJSON','3202250AObshu','cyJMg','jsonReportFileName','_events','startMonitoring','Cxflf','Error\x20in\x20doing\x20csv\x20operations:\x20','isEnabled','measure','./logger','1864290mQFYGj','mark','_errorEvents','Performance\x20report\x20is\x20at\x20','Time\x20for\x20','272zrNdjT','SPjUL','qqOyo','observe','YEtYF','measureWrapper','FKItW','</td><td>','./test-observability/utils','then','NahET','started','Ttpew','code','finally','_measureEvents','JsITo','stringify','errorFile','writeFileSync','ZltGJ','Error\x20stopping\x20monitoring','DDhtI','\x20for\x20all\x20processes\x20is\x20','captureError','SoGow','NuvTR','<h1>Performance\x20Report</h1>','OJzfu','map','perf_hooks','4089PoRyyI','xPDSw','PLyPE','YoUDn','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','ThQHC','apply','disconnect','buffered','SXacX'];a70_0x2813=function(){return _0x4ecbe4;};return a70_0x2813();}module[a70_0x4ba0d8(0x1df)]=PerformanceTester;
|
|
1
|
+
const a71_0x51969b=a71_0x3015;(function(_0x1a4aa9,_0x3e10aa){const _0x3d3640=a71_0x3015,_0x4c12e1=_0x1a4aa9();while(!![]){try{const _0x16102b=parseInt(_0x3d3640(0x125))/0x1*(-parseInt(_0x3d3640(0x122))/0x2)+parseInt(_0x3d3640(0x105))/0x3+-parseInt(_0x3d3640(0x150))/0x4+-parseInt(_0x3d3640(0x169))/0x5*(-parseInt(_0x3d3640(0x156))/0x6)+-parseInt(_0x3d3640(0x108))/0x7*(parseInt(_0x3d3640(0x12b))/0x8)+-parseInt(_0x3d3640(0x128))/0x9*(-parseInt(_0x3d3640(0x162))/0xa)+parseInt(_0x3d3640(0x11d))/0xb;if(_0x16102b===_0x3e10aa)break;else _0x4c12e1['push'](_0x4c12e1['shift']());}catch(_0xee19a7){_0x4c12e1['push'](_0x4c12e1['shift']());}}}(a71_0x8d33,0x4a0c8));function a71_0x3015(_0x141764,_0x530dbd){const _0x8d332d=a71_0x8d33();return a71_0x3015=function(_0x3015b2,_0x207e6e){_0x3015b2=_0x3015b2-0xfa;let _0x33d4ff=_0x8d332d[_0x3015b2];return _0x33d4ff;},a71_0x3015(_0x141764,_0x530dbd);}const fs=require('fs'),{performance,PerformanceObserver}=require(a71_0x51969b(0x13c)),{sleep,debug}=require('./test-observability/utils'),path=require(a71_0x51969b(0x12a)),logger=require(a71_0x51969b(0x176))[a71_0x51969b(0x15a)];class PerformanceTester{static [a71_0x51969b(0x14a)];static ['_events']=[];static ['_measureEvents']=[];static [a71_0x51969b(0x159)]=[];static [a71_0x51969b(0x16a)]=![];static [a71_0x51969b(0x139)]='performance-report.json';static [a71_0x51969b(0x14e)]='error-report.json';static[a71_0x51969b(0x117)](_0x382eda='performance-report.json',_0x378ce2='error-report.json'){const _0x50c75b=a71_0x51969b,_0xe1806b={};_0xe1806b[_0x50c75b(0x11c)]=function(_0x2fab08,_0x25ab6c){return _0x2fab08===_0x25ab6c;},_0xe1806b['xLcHh']=_0x50c75b(0x16c),_0xe1806b[_0x50c75b(0x158)]='function';const _0x20febd=_0xe1806b;if(this[_0x50c75b(0x16a)]||!this[_0x50c75b(0x107)]())return;this[_0x50c75b(0x14a)]=new PerformanceObserver(_0x1196fc=>{const _0x2584fc=_0x50c75b,_0xfee49b={'JxojV':function(_0x4c33ca,_0xd9261f){const _0x29bc97=a71_0x3015;return _0x20febd[_0x29bc97(0x11c)](_0x4c33ca,_0xd9261f);},'MaZqd':_0x20febd[_0x2584fc(0x15c)]};_0x1196fc['getEntries']()[_0x2584fc(0x15b)](_0x1fde7f=>{const _0xa84d67=_0x2584fc;_0xfee49b[_0xa84d67(0x131)](_0x1fde7f[_0xa84d67(0xfb)],_0xfee49b['MaZqd'])?this[_0xa84d67(0x111)]['push'](_0x1fde7f):this[_0xa84d67(0x130)][_0xa84d67(0x10d)](_0x1fde7f);});});const _0xf07bb1={};_0xf07bb1[_0x50c75b(0x146)]=!![],_0xf07bb1[_0x50c75b(0x103)]=[_0x20febd[_0x50c75b(0x158)],_0x20febd[_0x50c75b(0x15c)]],this[_0x50c75b(0x14a)][_0x50c75b(0x164)](_0xf07bb1),this[_0x50c75b(0x16a)]=!![],this[_0x50c75b(0x139)]=_0x382eda,this[_0x50c75b(0x14e)]=_0x378ce2;}static[a71_0x51969b(0x10a)](){return performance;}static['calculateTimeFromEvents'](_0x1305cb,_0x3296d7){const _0xca6d6f=a71_0x51969b,_0x17157a={};_0x17157a[_0xca6d6f(0x145)]=function(_0x2f8f0a,_0xeca91a){return _0x2f8f0a+_0xeca91a;},_0x17157a['DSyEw']=function(_0x1b5d01,_0xfe306f){return _0x1b5d01||_0xfe306f;},_0x17157a[_0xca6d6f(0x144)]=function(_0x521ebf,_0x4d9189){return _0x521ebf===_0x4d9189;};const _0x167fec=_0x17157a,_0xa6a18={};if(!_0x1305cb||_0x167fec['cQqWV'](_0x1305cb[_0xca6d6f(0x172)],0x0))return;_0x1305cb[_0xca6d6f(0x118)](_0x4bd80b=>{const _0x28b6f0=_0xca6d6f;!_0xa6a18[_0x4bd80b[_0x28b6f0(0x13a)]]&&(_0xa6a18[_0x4bd80b[_0x28b6f0(0x13a)]]=0x0),_0xa6a18[_0x4bd80b['name']]+=_0x4bd80b[_0x28b6f0(0x16e)];});const _0x153014=_0x3296d7[_0xca6d6f(0x174)]((_0xab3f6e,_0x4c9e33)=>{const _0x3f1f01=_0xca6d6f;return _0x167fec[_0x3f1f01(0x145)](_0xa6a18[_0x4c9e33],_0x167fec[_0x3f1f01(0x134)](_0xab3f6e,0x0));},0x0);return _0x153014;}static async['calculateTimesFromMultipleFiles'](_0x216025,_0x5e49fe){const _0x1e73f1=a71_0x51969b,_0x148b44={'lhsbc':function(_0x483d5a,_0x2458d4){return _0x483d5a+_0x2458d4;},'adOBP':function(_0x1a7fa1,_0x539a1f){return _0x1a7fa1||_0x539a1f;},'xzcIN':function(_0x583f55,_0x26c659){return _0x583f55===_0x26c659;},'aphll':function(_0x1a259e,_0x2ca679){return _0x1a259e(_0x2ca679);}};if(!_0x216025||_0x148b44[_0x1e73f1(0x14b)](_0x216025[_0x1e73f1(0x172)],0x0))return 0x0;const _0x732889=[];for(const _0xdfab21 of _0x216025){const _0x55c79a=path[_0x1e73f1(0x102)]('.',_0xdfab21);try{const _0x1e7e0b=this[_0x1e73f1(0x15f)](_0x55c79a);_0x1e7e0b[_0x1e73f1(0x118)](_0x4d9e28=>{const _0xc5a093=_0x1e73f1;!_0x732889[_0x4d9e28[_0xc5a093(0x13a)]]&&(_0x732889[_0x4d9e28[_0xc5a093(0x13a)]]=0x0),_0x732889[_0x4d9e28['name']]+=_0x4d9e28['duration'];});}catch(_0x5b98f7){_0x148b44[_0x1e73f1(0x12c)](debug,_0x1e73f1(0x13d)+_0x5b98f7['toString']());}}const _0x23af91=_0x5e49fe[_0x1e73f1(0x174)]((_0x2a8969,_0x51272a)=>{const _0x45b2fb=_0x1e73f1;return _0x148b44['lhsbc'](_0x732889[_0x51272a],_0x148b44[_0x45b2fb(0x154)](_0x2a8969,0x0));},0x0);return _0x148b44[_0x1e73f1(0x12c)](debug,'Time\x20for\x20'+_0x5e49fe+'\x20for\x20all\x20processes\x20is\x20'+_0x23af91),_0x23af91;}static[a71_0x51969b(0x15f)](_0x5f39dd){const _0x4a1bc0=a71_0x51969b;if(!fs[_0x4a1bc0(0x13f)](_0x5f39dd))return[];return JSON[_0x4a1bc0(0x138)](fs['readFileSync'](_0x5f39dd)[_0x4a1bc0(0x109)]());}static async[a71_0x51969b(0x135)](_0x522de2=a71_0x51969b(0x101),_0x24f575=null){const _0xb91024=a71_0x51969b,_0xfe92f2={'cBQcd':function(_0x363d08,_0x13abfb){return _0x363d08(_0x13abfb);}};if(!this[_0xb91024(0x16a)])return;await _0xfe92f2[_0xb91024(0x14d)](sleep,0x1e),this['_observer'][_0xb91024(0x129)](),this[_0xb91024(0x16a)]=![],this[_0xb91024(0xfe)](this[_0xb91024(0x130)]);const _0x88ceb6=this[_0xb91024(0x114)](this['_events']),_0x5ac09d=path[_0xb91024(0x102)](process[_0xb91024(0x166)](),_0x522de2);fs[_0xb91024(0x142)](_0x5ac09d,_0x88ceb6,_0x307eb7=>{const _0x3b7afe=_0xb91024;if(_0x307eb7){_0xfe92f2[_0x3b7afe(0x14d)](debug,_0x3b7afe(0x10b)+_0x307eb7[_0x3b7afe(0x109)]());return;}_0xfe92f2[_0x3b7afe(0x14d)](debug,_0x3b7afe(0x168)+_0x5ac09d);});if(_0x24f575)return this[_0xb91024(0x126)](this[_0xb91024(0x130)],_0x24f575);}static[a71_0x51969b(0x114)](_0x52debc){const _0x42eaf5=a71_0x51969b,_0x511024={};_0x511024[_0x42eaf5(0x11b)]=_0x42eaf5(0x175),_0x511024['rCBHr']='<h1>Performance\x20Report</h1>',_0x511024[_0x42eaf5(0x152)]=_0x42eaf5(0x104),_0x511024['HgODY']=_0x42eaf5(0x10e);const _0x469191=_0x511024;let _0x2c10e6=_0x469191[_0x42eaf5(0x11b)];return _0x2c10e6+=_0x469191[_0x42eaf5(0x12e)],_0x2c10e6+=_0x469191[_0x42eaf5(0x152)],_0x52debc[_0x42eaf5(0x15b)](_0x3f129c=>{const _0x326319=_0x42eaf5;_0x2c10e6+='<tr><td>'+_0x3f129c[_0x326319(0x13a)]+_0x326319(0x14f)+_0x3f129c[_0x326319(0x16e)]+_0x326319(0x132);}),_0x2c10e6+=_0x469191[_0x42eaf5(0xfc)],_0x2c10e6;}static['generateJSON'](_0x1d0789){const _0x20b1b0=a71_0x51969b;if(!this[_0x20b1b0(0x139)])return;const _0x5a8c6a={};_0x1d0789[_0x20b1b0(0x118)](_0x20d3ce=>{const _0x52d104=_0x20b1b0;!_0x5a8c6a[_0x20d3ce[_0x52d104(0x13a)]]&&(_0x5a8c6a[_0x20d3ce['name']]=0x0),_0x5a8c6a[_0x20d3ce[_0x52d104(0x13a)]]+=_0x20d3ce[_0x52d104(0x16e)];});const _0x295a74=Object[_0x20b1b0(0x165)](_0x5a8c6a)[_0x20b1b0(0x118)](([_0x4743fc,_0x338ae7])=>{const _0x4948ff=_0x20b1b0,_0x1fdcbd={};return _0x1fdcbd[_0x4948ff(0x13a)]=_0x4743fc,_0x1fdcbd[_0x4948ff(0x16e)]=_0x338ae7,_0x1fdcbd;});fs[_0x20b1b0(0x123)](this[_0x20b1b0(0x139)],JSON[_0x20b1b0(0x15d)](_0x295a74));}static[a71_0x51969b(0x107)](){const _0x4bf11c=a71_0x51969b,_0x3fcf66={};_0x3fcf66[_0x4bf11c(0x155)]=function(_0x2a5f00,_0x142097){return _0x2a5f00===_0x142097;},_0x3fcf66[_0x4bf11c(0x16f)]=_0x4bf11c(0x11f);const _0x266b22=_0x3fcf66;return!_0x266b22[_0x4bf11c(0x155)](process[_0x4bf11c(0x116)][_0x4bf11c(0x110)],_0x266b22[_0x4bf11c(0x16f)]);}static[a71_0x51969b(0x16c)](_0x3baaa9,_0x19496f,_0x59b4d4=null,_0x442fe4=null){const _0x562950=a71_0x51969b,_0x1ffc0b={};_0x1ffc0b[_0x562950(0x10f)]=function(_0x2f514f,_0x40497c){return _0x2f514f+_0x40497c;},_0x1ffc0b[_0x562950(0x113)]='-start',_0x1ffc0b['UdqLu']=function(_0x48f0c1,_0x2abc0b){return _0x48f0c1+_0x2abc0b;},_0x1ffc0b['mHHeq']=_0x562950(0x161),_0x1ffc0b[_0x562950(0x16d)]=function(_0x277a48,_0x5e9456){return _0x277a48 instanceof _0x5e9456;};const _0x3fdb36=_0x1ffc0b;try{if(this[_0x562950(0x16a)]&&this[_0x562950(0x107)]()){let _0x713b29=_0x3baaa9;_0x59b4d4&&(_0x713b29=_0x3baaa9+'['+JSON[_0x562950(0x15d)](_0x59b4d4)+']');const _0xe3b02d=_0x3fdb36[_0x562950(0x10f)](_0x713b29,_0x3fdb36[_0x562950(0x113)]),_0x1c29d9=_0x3fdb36['UdqLu'](_0x713b29,_0x3fdb36[_0x562950(0x119)]);performance[_0x562950(0xfa)](_0xe3b02d);const _0xdf2d24=_0x19496f[_0x562950(0x127)](null,_0x442fe4);if(_0x3fdb36[_0x562950(0x16d)](_0xdf2d24,Promise))return new Promise((_0x154e0a,_0x54b24d)=>{const _0x152273=_0x562950;_0xdf2d24[_0x152273(0x100)](_0x4f3776=>_0x154e0a(_0x4f3776))[_0x152273(0x13e)](_0xf643c9=>_0x54b24d(_0xf643c9))['finally'](()=>{performance['mark'](_0x1c29d9),performance['measure'](_0x713b29,_0xe3b02d,_0x1c29d9);});});;return performance[_0x562950(0xfa)](_0x1c29d9),performance[_0x562950(0x16c)](_0x713b29,_0xe3b02d,_0x1c29d9),_0xdf2d24;};return _0x19496f[_0x562950(0x127)](null,_0x442fe4);}catch(_0x4b9821){return _0x19496f['apply'](null,_0x442fe4);}}static[a71_0x51969b(0x160)](_0x44d116,_0x1eb8de){const _0x203113=this;return function(){const _0xbd7296=a71_0x3015,_0x4b57b8=[_0x44d116,_0x1eb8de,null]['concat'](arguments);return _0x203113[_0xbd7296(0x16c)][_0xbd7296(0x127)](_0x203113,_0x4b57b8);};}static['getCleanedPerfEvents'](){const _0x4aa714=a71_0x51969b,_0x180bb8={};_0x180bb8['AnFeW']=function(_0x56c955,_0x493ad8){return _0x56c955/_0x493ad8;},_0x180bb8['OECAD']=function(_0x4de6c0,_0x2183dd){return _0x4de6c0+_0x2183dd;},_0x180bb8[_0x4aa714(0x173)]=function(_0x18c9a6,_0x509a34){return _0x18c9a6*_0x509a34;};const _0x3584b3=_0x180bb8,_0x4606b6=/(^.*)\[(.*)\]$/,_0x5ab55e={},_0x483ef3={};for(const _0x44057f of this[_0x4aa714(0x111)]){const _0x13299a=_0x44057f[_0x4aa714(0x13a)][_0x4aa714(0x12d)](_0x4606b6),_0x3efda0={};_0x3efda0[_0x4aa714(0x13a)]=_0x44057f[_0x4aa714(0x13a)],_0x3efda0[_0x4aa714(0x16e)]=_0x44057f['duration']||0x0;const _0x2a5f8d=_0x3efda0;_0x13299a&&(_0x2a5f8d[_0x4aa714(0x13a)]=_0x13299a[0x1],_0x2a5f8d[_0x4aa714(0x124)]=JSON[_0x4aa714(0x138)](_0x13299a[0x2]));if(_0x5ab55e[_0x2a5f8d[_0x4aa714(0x13a)]]){const _0x3822a7=_0x5ab55e[_0x2a5f8d['name']],_0x54b011=_0x483ef3[_0x2a5f8d['name']];_0x5ab55e[_0x2a5f8d[_0x4aa714(0x13a)]][_0x4aa714(0x16e)]=_0x3584b3[_0x4aa714(0x170)](_0x3584b3['OECAD'](_0x3584b3['zpHOU'](_0x3822a7['duration'],_0x54b011),_0x2a5f8d['duration']),_0x3584b3[_0x4aa714(0x171)](0x1,_0x54b011)),_0x483ef3[_0x2a5f8d[_0x4aa714(0x13a)]]++;}else _0x5ab55e[_0x2a5f8d[_0x4aa714(0x13a)]]=_0x2a5f8d,_0x483ef3[_0x2a5f8d[_0x4aa714(0x13a)]]=0x1;}return Object[_0x4aa714(0x136)](_0x5ab55e);}static[a71_0x51969b(0x137)](){const _0x5a1d57=a71_0x51969b,_0x2c65a3={};_0x2c65a3[_0x5a1d57(0x143)]=function(_0x3c69be,_0x3c0965){return _0x3c69be===_0x3c0965;},_0x2c65a3[_0x5a1d57(0x115)]=function(_0x50ce86,_0x3a165a){return _0x50ce86+_0x3a165a;};const _0x1d14d7=_0x2c65a3;if(_0x1d14d7['CBLDh'](this[_0x5a1d57(0x111)][_0x5a1d57(0x172)],0x0))return;const _0x447a21=this[_0x5a1d57(0x112)](),_0x336427=JSON[_0x5a1d57(0x15d)](_0x447a21),_0x377432=_0x1d14d7[_0x5a1d57(0x115)](_0x336427[_0x5a1d57(0x147)](0x1,-0x1),',');fs[_0x5a1d57(0x10c)](this['jsonReportFileName'],_0x377432);}static[a71_0x51969b(0x106)](){const _0x2210f1=a71_0x51969b,_0x1fab07={};_0x1fab07[_0x2210f1(0x153)]=function(_0x519144,_0x4d79b6){return _0x519144===_0x4d79b6;},_0x1fab07[_0x2210f1(0x120)]=function(_0x4c0fa3,_0x34a148){return _0x4c0fa3>_0x34a148;};const _0x51e864=_0x1fab07;if(!this['started']||_0x51e864['AbuDg'](this[_0x2210f1(0x111)][_0x2210f1(0x172)],0x0))return[];if(!fs[_0x2210f1(0x13f)](this[_0x2210f1(0x139)]))return this['_measureEvents'];let _0x5edbb9=fs[_0x2210f1(0x149)](this[_0x2210f1(0x139)])['toString']();_0x5edbb9='['+_0x5edbb9['slice'](0x0,-0x1)+']';let _0x4d64e0=JSON[_0x2210f1(0x138)](_0x5edbb9);return _0x51e864[_0x2210f1(0x120)](this['_measureEvents']['length'],0x0)&&(_0x4d64e0=_0x4d64e0[_0x2210f1(0x133)](this[_0x2210f1(0x112)]())),this[_0x2210f1(0x14a)][_0x2210f1(0x129)](),fs[_0x2210f1(0xff)](this[_0x2210f1(0x139)]),_0x4d64e0;}static[a71_0x51969b(0x140)](){const _0x88c6d5=a71_0x51969b,_0x7bf325={};_0x7bf325[_0x88c6d5(0x12f)]=function(_0x252ddc,_0x47541c){return _0x252ddc===_0x47541c;},_0x7bf325[_0x88c6d5(0x157)]=function(_0x3d13f1,_0x4332ae){return _0x3d13f1+_0x4332ae;};const _0x49c847=_0x7bf325;if(_0x49c847[_0x88c6d5(0x12f)](this[_0x88c6d5(0x159)]['length'],0x0))return;const _0x1f21f1=JSON[_0x88c6d5(0x15d)](this[_0x88c6d5(0x159)]),_0x4501e0=_0x49c847[_0x88c6d5(0x157)](_0x1f21f1[_0x88c6d5(0x147)](0x1,-0x1),',');fs[_0x88c6d5(0x10c)](this[_0x88c6d5(0x167)],_0x4501e0);}static[a71_0x51969b(0x13b)](){const _0x38afab=a71_0x51969b,_0x5765f2={};_0x5765f2['gLraT']=function(_0x411708,_0x49ee9a){return _0x411708>_0x49ee9a;};const _0x4e416b=_0x5765f2;if(!fs['existsSync'](this['errorReportFileName']))return this[_0x38afab(0x159)];let _0x5bad09=fs[_0x38afab(0x149)](this[_0x38afab(0x14e)])[_0x38afab(0x109)]();_0x5bad09='['+_0x5bad09[_0x38afab(0x147)](0x0,-0x1)+']';let _0x31abe4=JSON[_0x38afab(0x138)](_0x5bad09);return _0x4e416b[_0x38afab(0x121)](this[_0x38afab(0x159)]['length'],0x0)&&(_0x31abe4=_0x31abe4[_0x38afab(0x133)](this[_0x38afab(0x159)])),fs[_0x38afab(0xff)](this['errorReportFileName']),_0x31abe4;}static['captureError'](_0x5a64a2){const _0x1a8018=a71_0x51969b;if(!this[_0x1a8018(0x107)]())return;this[_0x1a8018(0x159)]['push']({'message':_0x5a64a2[_0x1a8018(0x15e)],'trace':_0x5a64a2[_0x1a8018(0x16b)],'code':_0x5a64a2[_0x1a8018(0xfd)]||null,'time':new Date()});}static['stopMonitoring'](){const _0x557265=a71_0x51969b,_0x4e79b5={};_0x4e79b5[_0x557265(0x148)]=_0x557265(0x163);const _0x12962b=_0x4e79b5;try{if(!this[_0x557265(0x107)]())return;this[_0x557265(0x14a)][_0x557265(0x129)](),this['pushPerfMeasures'](),this[_0x557265(0x140)]();}catch{logger[_0x557265(0x11a)](_0x12962b[_0x557265(0x148)]);}}static[a71_0x51969b(0x14c)](){const _0x3ef502=a71_0x51969b,_0x50edb6=this[_0x3ef502(0x106)](),_0x60d14f=this[_0x3ef502(0x13b)]();if(!this[_0x3ef502(0x107)]()){const _0x2baa86={};return _0x2baa86['measures']=[],_0x2baa86['errors']=[],_0x2baa86;}const _0x27a5c4={};return _0x27a5c4[_0x3ef502(0x11e)]=_0x50edb6,_0x27a5c4[_0x3ef502(0x141)]=_0x60d14f,_0x27a5c4;}}module[a71_0x51969b(0x151)]=PerformanceTester;function a71_0x8d33(){const _0x3676ef=['cBQcd','errorReportFileName','</td><td>','894768ESukVT','exports','oKdYq','AbuDg','adOBP','HnbeI','18usDuRC','mJBrV','lzttV','_errorEvents','winstonLogger','forEach','xLcHh','stringify','message','getEventsFromJSON','measureWrapper','-end','1138870HiqPnk','Error\x20stopping\x20monitoring','observe','entries','cwd','errorFile','Performance\x20report\x20is\x20at\x20','225290MKtyCC','started','stack','measure','oTECE','duration','aaQFt','AnFeW','OECAD','length','zpHOU','reduce','<!DOCTYPE\x20html><html><head><title>Performance\x20Report</title></head><body>','./logger','mark','entryType','HgODY','code','generateJSON','unlinkSync','then','performance-own.html','join','entryTypes','<table><thead><tr><th>Function\x20Name</th><th>Duration\x20(ms)</th></tr></thead><tbody>','779781VEZGiC','finalizePerfMeasures','isEnabled','14BkKpnl','toString','getPerformance','Error\x20in\x20writing\x20html\x20','appendFileSync','push','</tbody></table></body></html>','UeBML','BROWSERSTACK_SDK_INSTRUMENTATION','_measureEvents','getCleanedPerfEvents','Phnwx','generateHTMLReport','DjmqB','env','startMonitoring','map','mHHeq','debug','HVYOg','KZROj','9489513AjotIP','measures','false','OHwTy','gLraT','1076CxrkiY','writeFileSync','meta','883UAEOoV','calculateTimeFromEvents','apply','18xpvkfe','disconnect','path','1934032LKSBac','aphll','match','rCBHr','sIfsk','_events','JxojV','</td></tr>','concat','DSyEw','stopAndGenerate','values','pushPerfMeasures','parse','jsonReportFileName','name','finalizeErrors','perf_hooks','Error\x20in\x20doing\x20csv\x20operations:\x20','catch','existsSync','pushErrors','errors','writeFile','CBLDh','cQqWV','eiPgw','buffered','slice','aqVyv','readFileSync','_observer','xzcIN','finalize'];a71_0x8d33=function(){return _0x3676ef;};return a71_0x8d33();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x48fee1=a72_0x1a7b;function a72_0x1a7b(_0x1b7cac,_0x5847ae){const _0xf930d7=a72_0xf930();return a72_0x1a7b=function(_0x1a7b3f,_0x30b09e){_0x1a7b3f=_0x1a7b3f-0x189;let _0x4fb9e4=_0xf930d7[_0x1a7b3f];return _0x4fb9e4;},a72_0x1a7b(_0x1b7cac,_0x5847ae);}(function(_0x4d526f,_0x4cf5bd){const _0x5b6f67=a72_0x1a7b,_0x24045e=_0x4d526f();while(!![]){try{const _0x2bc270=parseInt(_0x5b6f67(0x1ac))/0x1*(parseInt(_0x5b6f67(0x197))/0x2)+-parseInt(_0x5b6f67(0x1a8))/0x3*(-parseInt(_0x5b6f67(0x1aa))/0x4)+parseInt(_0x5b6f67(0x195))/0x5*(-parseInt(_0x5b6f67(0x19c))/0x6)+parseInt(_0x5b6f67(0x191))/0x7*(-parseInt(_0x5b6f67(0x1a6))/0x8)+parseInt(_0x5b6f67(0x1a5))/0x9*(parseInt(_0x5b6f67(0x1a3))/0xa)+-parseInt(_0x5b6f67(0x199))/0xb+parseInt(_0x5b6f67(0x196))/0xc;if(_0x2bc270===_0x4cf5bd)break;else _0x24045e['push'](_0x24045e['shift']());}catch(_0x293a46){_0x24045e['push'](_0x24045e['shift']());}}}(a72_0xf930,0x82bee));const http=require(a72_0x48fee1(0x1af)),https=require(a72_0x48fee1(0x190)),monkeypatch=require('monkeypatch');function spy(_0x3175da){const _0x48dd83=a72_0x48fee1,_0x15f489={'HMnkB':function(_0x2623f9,_0x4a7868){return _0x2623f9-_0x4a7868;},'tUcbb':function(_0x4e0e20,_0x151441,_0x143b85){return _0x4e0e20(_0x151441,_0x143b85);},'cughx':_0x48dd83(0x1a4),'nSOTq':function(_0x201e10,_0x201f8b,_0x48df2c){return _0x201e10(_0x201f8b,_0x48df2c);},'yHCib':function(_0x3eda61,..._0x46df4e){return _0x3eda61(..._0x46df4e);},'ODQen':function(_0x11a057,_0xaa9275,_0x1783e5){return _0x11a057(_0xaa9275,_0x1783e5);},'EQauv':_0x48dd83(0x19a),'lraxN':'socket','PGIQb':function(_0x31a14b,_0x3db0f5,_0x1c3a7e,_0x35f278){return _0x31a14b(_0x3db0f5,_0x1c3a7e,_0x35f278);},'FiXZc':_0x48dd83(0x18e),'DvfCZ':_0x48dd83(0x1ad)},_0x54f3c9=(_0x9b4649,_0x10edc3,_0x4c7baf)=>{const _0xf79f1a=_0x48dd83,_0x1c5840={'MqQng':function(_0x1d4f66,_0x46e603,_0x131fe2){return _0x15f489['nSOTq'](_0x1d4f66,_0x46e603,_0x131fe2);},'TmWqG':function(_0x45b93c,..._0x187a62){const _0x553c90=a72_0x1a7b;return _0x15f489[_0x553c90(0x198)](_0x45b93c,..._0x187a62);}},_0x447171=_0x15f489[_0xf79f1a(0x1a1)](_0x9b4649,_0x10edc3,_0x4c7baf);let _0x2026b3=Date[_0xf79f1a(0x18b)](),_0x23942d;const _0x38543f=_0x5552c5=>{const _0x4bbfcd=_0xf79f1a,_0x594b0b={};_0x594b0b['host']=_0x10edc3['host']||_0x10edc3[_0x4bbfcd(0x18f)],_0x594b0b[_0x4bbfcd(0x19e)]=_0x10edc3[_0x4bbfcd(0x19e)],_0x594b0b[_0x4bbfcd(0x1ae)]=_0x10edc3['method'],_0x594b0b['headers']=_0x10edc3['headers'],_0x1c5840[_0x4bbfcd(0x1a2)](_0x3175da,_0x5552c5,_0x594b0b);};return _0x447171[_0xf79f1a(0x18d)](_0x15f489[_0xf79f1a(0x1a0)],_0x24e615=>{const _0x5c1fa0=_0xf79f1a,_0x17a7c1=_0x15f489[_0x5c1fa0(0x193)](Date[_0x5c1fa0(0x18b)](),_0x2026b3),_0x464cd2={};_0x464cd2[_0x5c1fa0(0x18f)]=_0x10edc3['host']||_0x10edc3[_0x5c1fa0(0x18f)],_0x464cd2[_0x5c1fa0(0x19e)]=_0x10edc3['path'],_0x464cd2[_0x5c1fa0(0x1ae)]=_0x10edc3[_0x5c1fa0(0x1ae)],_0x464cd2[_0x5c1fa0(0x1a7)]=_0x10edc3[_0x5c1fa0(0x1a7)],_0x464cd2['status_code']=_0x24e615[_0x5c1fa0(0x1b0)],_0x464cd2[_0x5c1fa0(0x1a9)]=_0x17a7c1,_0x15f489[_0x5c1fa0(0x19d)](_0x3175da,null,_0x464cd2),_0x23942d[_0x5c1fa0(0x19f)](_0x15f489[_0x5c1fa0(0x189)],_0x38543f);}),_0x447171['on'](_0x15f489[_0xf79f1a(0x18a)],_0x104c74=>{const _0x4b91dc=_0xf79f1a;_0x23942d=_0x104c74,_0x104c74[_0x4b91dc(0x18d)](_0x15f489['cughx'],_0x38543f);}),_0x15f489[_0xf79f1a(0x18c)](monkeypatch,_0x447171,_0x15f489['FiXZc'],(_0xfd18d0,..._0x32e9b8)=>{const _0x454cae=_0xf79f1a;_0x2026b3=Date[_0x454cae(0x18b)](),_0x1c5840[_0x454cae(0x192)](_0xfd18d0,..._0x32e9b8);}),_0x447171;};_0x15f489[_0x48dd83(0x18c)](monkeypatch,http,_0x15f489[_0x48dd83(0x19b)],_0x54f3c9),_0x15f489[_0x48dd83(0x18c)](monkeypatch,https,_0x15f489[_0x48dd83(0x19b)],_0x54f3c9);}function a72_0xf930(){const _0x5c4bbf=['HMnkB','spy','2588115maIlzW','7980516QbrwJU','2fRcyie','yHCib','7922893cJiUDq','response','DvfCZ','12veNWRf','tUcbb','path','removeListener','EQauv','ODQen','MqQng','18450sfYgnf','error','2007SLZZwH','24176RojdLr','headers','238518Lhgczk','duration_ms','44DTiAAI','unpatch','355109FRgJco','request','method','http','statusCode','exports','cughx','lraxN','now','PGIQb','once','end','hostname','https','35HBmuXl','TmWqG'];a72_0xf930=function(){return _0x5c4bbf;};return a72_0xf930();}function restore(){const _0x3e29c3=a72_0x48fee1;http[_0x3e29c3(0x1ad)]['unpatch'](),https[_0x3e29c3(0x1ad)][_0x3e29c3(0x1ab)]();}const a72_0x33e81e={};a72_0x33e81e[a72_0x48fee1(0x194)]=spy,a72_0x33e81e['restore']=restore,module[a72_0x48fee1(0x1b1)]=a72_0x33e81e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a73_0x49f2(_0x41a971,_0xff6adb){const _0x1f2d7a=a73_0x1f2d();return a73_0x49f2=function(_0x49f2e0,_0x4c0939){_0x49f2e0=_0x49f2e0-0xd2;let _0x5190ff=_0x1f2d7a[_0x49f2e0];return _0x5190ff;},a73_0x49f2(_0x41a971,_0xff6adb);}const a73_0x20a5d5=a73_0x49f2;function a73_0x1f2d(){const _0x5a6036=['8zsdOMg','1137240qeUFUX','hasOwnProperty','protocol','3567790CSTIpn','3XAHnaO','xuBeW','Agent','agent','4165126pGsfEN','aesDa','call','EwoTq','http','1949136TCQXFs','qJjjl','keepAliveMsecs','request','keepAlive','https:','85178YzpRdt','prototype','hcIFd','941598kVmwUJ','ZiSCh','exports','globalAgent','GTuBI','1034796XAVzud','FbZqA'];a73_0x1f2d=function(){return _0x5a6036;};return a73_0x1f2d();}(function(_0x4b0cda,_0x107f28){const _0x2e8da4=a73_0x49f2,_0x5a6c1d=_0x4b0cda();while(!![]){try{const _0x5f5664=-parseInt(_0x2e8da4(0xd6))/0x1*(parseInt(_0x2e8da4(0xe5))/0x2)+parseInt(_0x2e8da4(0xe8))/0x3+parseInt(_0x2e8da4(0xed))/0x4+parseInt(_0x2e8da4(0xd5))/0x5+-parseInt(_0x2e8da4(0xdf))/0x6+-parseInt(_0x2e8da4(0xda))/0x7*(parseInt(_0x2e8da4(0xef))/0x8)+parseInt(_0x2e8da4(0xd2))/0x9;if(_0x5f5664===_0x107f28)break;else _0x5a6c1d['push'](_0x5a6c1d['shift']());}catch(_0x7df4b6){_0x5a6c1d['push'](_0x5a6c1d['shift']());}}}(a73_0x1f2d,0x5912a),module[a73_0x20a5d5(0xea)]=function(){const _0x444e37=a73_0x20a5d5,_0x1282c4={'GTuBI':function(_0x5bec80,_0xeda2ea){return _0x5bec80===_0xeda2ea;},'PeAmo':_0x444e37(0xe4),'FbZqA':_0x444e37(0xd9),'qJjjl':function(_0x21c72c,_0x5dffab,_0x4baf8e){return _0x21c72c(_0x5dffab,_0x4baf8e);},'FBiiL':function(_0x125d1f,_0xff0bd5,_0x33f07e){return _0x125d1f(_0xff0bd5,_0x33f07e);},'xuBeW':function(_0x34bdce,_0xf35aa5){return _0x34bdce(_0xf35aa5);},'hcIFd':_0x444e37(0xde),'EwoTq':function(_0x580daf,_0x27d525){return _0x580daf(_0x27d525);},'ZiSCh':'https','aesDa':function(_0x1a6f8b,_0x24d099){return _0x1a6f8b*_0x24d099;},'GwhNJ':_0x444e37(0xe3)},_0x2b4d7a=_0x1282c4[_0x444e37(0xd7)](require,_0x1282c4[_0x444e37(0xe7)]),_0x17d472=_0x1282c4[_0x444e37(0xdd)](require,_0x1282c4[_0x444e37(0xe9)]),_0x3d0a99=_0x1282c4[_0x444e37(0xdb)](0x1e,0x3e8);if(_0x2b4d7a['globalAgent']&&Object[_0x444e37(0xe6)][_0x444e37(0xd3)][_0x444e37(0xdc)](_0x2b4d7a[_0x444e37(0xeb)],_0x1282c4['GwhNJ']))_0x2b4d7a[_0x444e37(0xeb)][_0x444e37(0xe3)]=!![],_0x17d472[_0x444e37(0xeb)][_0x444e37(0xe3)]=!![],_0x2b4d7a[_0x444e37(0xeb)]['keepAliveMsecs']=_0x3d0a99,_0x17d472[_0x444e37(0xeb)][_0x444e37(0xe1)]=_0x3d0a99;else{const _0x1f4365={};_0x1f4365[_0x444e37(0xe3)]=!![],_0x1f4365[_0x444e37(0xe1)]=_0x3d0a99;const _0x1ae201=new _0x2b4d7a['Agent'](_0x1f4365),_0x21fe6f={};_0x21fe6f[_0x444e37(0xe3)]=!![],_0x21fe6f[_0x444e37(0xe1)]=_0x3d0a99;const _0x18509d=new _0x17d472[(_0x444e37(0xd8))](_0x21fe6f),_0xebaae6=_0x2b4d7a['request'],_0x4c8b11=_0x17d472[_0x444e37(0xe2)];_0x2b4d7a[_0x444e37(0xe2)]=function(_0x470924,_0x36d4de){const _0x38f149=_0x444e37;if(_0x1282c4[_0x38f149(0xec)](_0x470924[_0x38f149(0xd4)],_0x1282c4['PeAmo']))return _0x470924[_0x1282c4[_0x38f149(0xee)]]=_0x18509d,_0x1282c4[_0x38f149(0xe0)](_0x4c8b11,_0x470924,_0x36d4de);return _0x470924[_0x1282c4['FbZqA']]=_0x1ae201,_0x1282c4['FBiiL'](_0xebaae6,_0x470924,_0x36d4de);};}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a74_0x52b2a2=a74_0x38dc;(function(_0x115d18,_0x3f1d02){var _0x1bfd80=a74_0x38dc,_0x5ee098=_0x115d18();while(!![]){try{var _0x4a3af4=-parseInt(_0x1bfd80(0x10d))/0x1*(parseInt(_0x1bfd80(0x10a))/0x2)+parseInt(_0x1bfd80(0x114))/0x3*(-parseInt(_0x1bfd80(0x109))/0x4)+parseInt(_0x1bfd80(0x116))/0x5+-parseInt(_0x1bfd80(0x119))/0x6+-parseInt(_0x1bfd80(0x108))/0x7*(-parseInt(_0x1bfd80(0x10f))/0x8)+-parseInt(_0x1bfd80(0x10c))/0x9*(parseInt(_0x1bfd80(0x111))/0xa)+parseInt(_0x1bfd80(0x11c))/0xb;if(_0x4a3af4===_0x3f1d02)break;else _0x5ee098['push'](_0x5ee098['shift']());}catch(_0x2e5b28){_0x5ee098['push'](_0x5ee098['shift']());}}}(a74_0x5e97,0x7f58e));var a74_0x1eb279={};a74_0x1eb279[a74_0x52b2a2(0x115)]=a74_0x52b2a2(0x11b),a74_0x1eb279[a74_0x52b2a2(0x110)]=a74_0x52b2a2(0x10b),a74_0x1eb279['CODECEPT']=a74_0x52b2a2(0x11a),module[a74_0x52b2a2(0x118)]={'consoleHolder':Object[a74_0x52b2a2(0x112)]({},console),'BATCH_SIZE':0x3e8,'BATCH_INTERVAL':0x7d0,'API_URL':a74_0x52b2a2(0x113),'EVENT_ENDPOINT':a74_0x52b2a2(0x10e),'BATCH_ENDPOINT':'api/v1/batch','SCREENSHOT_ENDPOINT':'api/v1/screenshots','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':a74_0x52b2a2(0x117),'FRAMEWORKS':a74_0x1eb279};function a74_0x38dc(_0x45e351,_0x29b36e){var _0x5e9727=a74_0x5e97();return a74_0x38dc=function(_0x38dc38,_0x337d3f){_0x38dc38=_0x38dc38-0x108;var _0x1df2c2=_0x5e9727[_0x38dc38];return _0x1df2c2;},a74_0x38dc(_0x45e351,_0x29b36e);}function a74_0x5e97(){var _0x25ae24=['11139LnqxtF','PLAYWRIGHT','1261510gOekPm','.obs_test_details','exports','6128802YNkdEx','codeceptjs','Playwright','29407158LqzSTr','301Egxynm','172NQYVSN','598662AGbsEn','mocha','90nzyASx','3gsGNcF','api/v1/event','128328bnlHhq','MOCHA','1014710cdTAYu','assign','https://collector-observability.browserstack.com'];a74_0x5e97=function(){return _0x25ae24;};return a74_0x5e97();}
|