browserstack-node-sdk 1.41.0 → 1.42.0

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.
Files changed (176) hide show
  1. package/ats/src/cloudproviders/AWS.js +1 -1
  2. package/ats/src/cloudproviders/Azure.js +1 -1
  3. package/ats/src/cloudproviders/CloudProvider.js +1 -1
  4. package/ats/src/cloudproviders/GoogleCloudProvider.js +1 -1
  5. package/ats/src/cloudproviders/utils.js +1 -1
  6. package/ats/src/commands/configure.js +1 -1
  7. package/ats/src/commands/connect.js +1 -1
  8. package/ats/src/commands/connect_commands/grid.js +1 -1
  9. package/ats/src/commands/create.js +1 -1
  10. package/ats/src/commands/create_commands/grid.js +1 -1
  11. package/ats/src/commands/delete.js +1 -1
  12. package/ats/src/commands/delete_commands/grid.js +1 -1
  13. package/ats/src/commands/init.js +1 -1
  14. package/ats/src/commands/list.js +1 -1
  15. package/ats/src/commands/list_commands/grid_profiles.js +1 -1
  16. package/ats/src/commands/list_commands/grids.js +1 -1
  17. package/ats/src/commands/precheck.js +1 -1
  18. package/ats/src/commands/precheck_commands/setup_precheck.js +1 -1
  19. package/ats/src/commands/start.js +1 -1
  20. package/ats/src/commands/start_commands/grid.js +1 -1
  21. package/ats/src/commands/stop.js +1 -1
  22. package/ats/src/commands/stop_commands/grid.js +1 -1
  23. package/ats/src/config/constants.js +1 -1
  24. package/ats/src/config/logger.js +1 -1
  25. package/ats/src/index.js +1 -1
  26. package/ats/src/utils/AWSUtils.js +1 -1
  27. package/ats/src/utils/createAutoscalerStack.js +1 -1
  28. package/ats/src/utils/createClusterStack.js +1 -1
  29. package/ats/src/utils/createHubHaStack.js +1 -1
  30. package/ats/src/utils/createk8sClient.js +1 -1
  31. package/ats/src/utils/deleteEFSMountTargets.js +1 -1
  32. package/ats/src/utils/deleteStack.js +1 -1
  33. package/ats/src/utils/describeStack.js +1 -1
  34. package/ats/src/utils/gridComponents.js +1 -1
  35. package/ats/src/utils/hstUtils.js +1 -1
  36. package/ats/src/utils/instrumentationUtils.js +1 -1
  37. package/ats/src/utils/userInput.js +1 -1
  38. package/ats/src/utils/utilityMethods.js +1 -1
  39. package/ats/src/utils/webSocketUtils.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-sdk-node/bundle.js +1 -1
  42. package/src/bin/codeceptjs/BrowserStackPlugin.js +1 -1
  43. package/src/bin/codeceptjs/command.js +1 -1
  44. package/src/bin/codeceptjs/helper.js +1 -1
  45. package/src/bin/codeceptjs/o11yHelper.js +1 -1
  46. package/src/bin/cucumber-js/command.js +1 -1
  47. package/src/bin/cucumber-js/cucumber-sessionDetails.js +1 -0
  48. package/src/bin/cucumber-js/formatter/custom_formatter.js +1 -1
  49. package/src/bin/cucumber-js/formatter/custom_formatter_old_versions.js +1 -1
  50. package/src/bin/cucumber-js/playwright-patcher.js +1 -0
  51. package/src/bin/cucumber-js/test-observability.js +1 -1
  52. package/src/bin/cucumber-js/test.setup.js +1 -1
  53. package/src/bin/cucumber-js/test_old.setup.js +1 -1
  54. package/src/bin/cucumber-js/timeout.setup.js +1 -1
  55. package/src/bin/integrations/command.js +1 -1
  56. package/src/bin/integrations/constants.js +1 -1
  57. package/src/bin/jest/command.js +1 -1
  58. package/src/bin/jest/customImplements/customCircus.js +1 -1
  59. package/src/bin/jest/customImplements/customEnvironment.js +1 -1
  60. package/src/bin/jest/customImplements/customJestAdapterInit.js +1 -1
  61. package/src/bin/jest/customImplements/customSequencer.js +1 -1
  62. package/src/bin/jest/customImplements/customTestRunnerTemplate.js +1 -1
  63. package/src/bin/jest/jest.setup.js +1 -1
  64. package/src/bin/jest/test-observability/data-hooks.js +1 -1
  65. package/src/bin/jest/test-observability/helper.js +1 -1
  66. package/src/bin/jest/test-observability/obsReporter.js +1 -1
  67. package/src/bin/jest/test-observability/test-details.js +1 -1
  68. package/src/bin/jest/test_before.setup.js +1 -1
  69. package/src/bin/launcher/launcher.js +1 -1
  70. package/src/bin/load/index.js +1 -1
  71. package/src/bin/load/loadUtils.js +1 -1
  72. package/src/bin/mocha/accessibility-automation/helper.js +1 -1
  73. package/src/bin/mocha/bstack-reporter/customReporter.js +1 -1
  74. package/src/bin/mocha/command.js +1 -1
  75. package/src/bin/mocha/test-observability/builderPatch.js +1 -1
  76. package/src/bin/mocha/test-observability/data-hooks.js +1 -1
  77. package/src/bin/mocha/test-observability/mochaUtils.js +1 -1
  78. package/src/bin/mocha/test.setup.js +1 -1
  79. package/src/bin/nightwatch/command.js +1 -1
  80. package/src/bin/playwright/accessibility-helper.js +1 -1
  81. package/src/bin/playwright/command.js +1 -1
  82. package/src/bin/playwright/globalSetup.js +1 -1
  83. package/src/bin/playwright/mock-process.js +1 -1
  84. package/src/bin/playwright/modifyPlaywrightConf.js +1 -1
  85. package/src/bin/playwright/patches.js +1 -1
  86. package/src/bin/playwright/reporter/pwUtils.js +1 -1
  87. package/src/bin/playwright/reporter/reporter.js +1 -1
  88. package/src/bin/playwright/reporter/test-details.js +1 -1
  89. package/src/bin/playwright/sessionDetails.js +1 -1
  90. package/src/bin/runner.js +1 -1
  91. package/src/bin/setup.js +1 -1
  92. package/src/bin/test-runner/index.js +1 -1
  93. package/src/bin/test-runner/runTest.js +1 -1
  94. package/src/bin/test-runner/testWorker.js +1 -1
  95. package/src/bin/utils/constants.js +1 -1
  96. package/src/bin/utils/log4jsAppender.js +1 -1
  97. package/src/bin/utils/logPatcher.js +1 -1
  98. package/src/bin/utils/logReportingAPI.js +1 -1
  99. package/src/bin/v2/TestInfo.js +1 -1
  100. package/src/bin/v2/browserstackCLI.js +1 -1
  101. package/src/bin/v2/cliUtils.js +1 -1
  102. package/src/bin/v2/customTagManager.js +1 -1
  103. package/src/bin/v2/eventDispatcher.js +1 -1
  104. package/src/bin/v2/framework/automationFramework.js +1 -1
  105. package/src/bin/v2/framework/constants/automationFrameworkConstants.js +1 -1
  106. package/src/bin/v2/framework/constants/testFrameworkConstants.js +1 -1
  107. package/src/bin/v2/framework/playwrightAutomationFramework.js +1 -1
  108. package/src/bin/v2/framework/playwrightTestFramework.js +1 -1
  109. package/src/bin/v2/framework/testFramework.js +1 -1
  110. package/src/bin/v2/grpcClient.js +1 -1
  111. package/src/bin/v2/instances/automationFrameworkInstance.js +1 -1
  112. package/src/bin/v2/instances/testFrameworkInstance.js +1 -1
  113. package/src/bin/v2/instances/trackedContext.js +1 -1
  114. package/src/bin/v2/instances/trackedInstance.js +1 -1
  115. package/src/bin/v2/modules/accessibilityModule.js +1 -1
  116. package/src/bin/v2/modules/baseModule.js +1 -1
  117. package/src/bin/v2/modules/observabilityModule.js +1 -1
  118. package/src/bin/v2/modules/playwrightDriverModule.js +1 -1
  119. package/src/bin/v2/modules/testhubModule.js +1 -1
  120. package/src/bin/v2/state/automationFrameworkState.js +1 -1
  121. package/src/bin/v2/state/hookState.js +1 -1
  122. package/src/bin/v2/state/testFrameworkState.js +1 -1
  123. package/src/bin/v2/uploadAttachmentsManager.js +1 -1
  124. package/src/bin/vanilla-js/command.js +1 -1
  125. package/src/browserStackSdk.js +1 -1
  126. package/src/helpers/BrowserStackSetup.js +1 -1
  127. package/src/helpers/accessibility-automation/constants.js +1 -1
  128. package/src/helpers/accessibility-automation/helper.js +1 -1
  129. package/src/helpers/accessibility-automation/scripts.js +1 -1
  130. package/src/helpers/ai-sdk/aiSdkWrapper.js +1 -1
  131. package/src/helpers/ai-sdk/autoHealHelper.js +1 -1
  132. package/src/helpers/ats/constants.js +1 -1
  133. package/src/helpers/ats/helper.js +1 -1
  134. package/src/helpers/capsMapping.js +1 -1
  135. package/src/helpers/central-scanner/constants.js +1 -1
  136. package/src/helpers/central-scanner/helpers.js +1 -1
  137. package/src/helpers/classLogger.js +1 -1
  138. package/src/helpers/globals.js +1 -1
  139. package/src/helpers/helper.js +1 -1
  140. package/src/helpers/logger.js +1 -1
  141. package/src/helpers/metadata.js +1 -1
  142. package/src/helpers/patchHelper.js +1 -1
  143. package/src/helpers/patchHelpers.js +1 -1
  144. package/src/helpers/percy/Percy.js +1 -1
  145. package/src/helpers/percy/PercyBinary.js +1 -1
  146. package/src/helpers/percy/PercyCaptureMap.js +1 -1
  147. package/src/helpers/percy/PercyCaptureModes.js +1 -1
  148. package/src/helpers/percy/PercySDK.js +1 -1
  149. package/src/helpers/percy/index.js +1 -1
  150. package/src/helpers/percy/utils.js +1 -1
  151. package/src/helpers/performance/constants.js +1 -1
  152. package/src/helpers/performance/performance-tester.js +1 -1
  153. package/src/helpers/playwright-helper.js +1 -0
  154. package/src/helpers/processHelper.js +1 -1
  155. package/src/helpers/request-spy.js +1 -1
  156. package/src/helpers/setKeepAlive.js +1 -1
  157. package/src/helpers/test-observability/constants.js +1 -1
  158. package/src/helpers/test-observability/error-handler.js +1 -1
  159. package/src/helpers/test-observability/requestQueueHandler.js +1 -1
  160. package/src/helpers/test-observability/sessionHandler.js +1 -1
  161. package/src/helpers/test-observability/utils.js +1 -1
  162. package/src/helpers/test-orchestration/constants.js +1 -1
  163. package/src/helpers/test-orchestration/failfastManager.js +1 -1
  164. package/src/helpers/test-orchestration/fileHelper.js +1 -1
  165. package/src/helpers/test-orchestration/orchestrationUtils.js +1 -1
  166. package/src/helpers/test-orchestration/requestUtils.js +1 -1
  167. package/src/helpers/test-orchestration/testOrchestrationHandler.js +1 -1
  168. package/src/helpers/test-orchestration/testOrderingServerHandler.js +1 -1
  169. package/src/helpers/testhub/constants.js +1 -1
  170. package/src/helpers/testhub/testhubHandler.js +1 -1
  171. package/src/helpers/testhub/utils.js +1 -1
  172. package/src/helpers/timeoutPromise.js +1 -1
  173. package/src/helpers/utilities.js +1 -1
  174. package/src/helpers/w3cMapping.js +1 -1
  175. package/src/hubAllocationMethods.js +1 -1
  176. package/src/index.js +1 -1
@@ -1 +1 @@
1
- const a69_0x5d60f3=a69_0xd984;(function(_0x19535c,_0x212133){const _0x198b70=a69_0xd984,_0x62e915=_0x19535c();while(!![]){try{const _0xb39131=-parseInt(_0x198b70(0x135))/0x1+-parseInt(_0x198b70(0x12e))/0x2*(-parseInt(_0x198b70(0x128))/0x3)+-parseInt(_0x198b70(0x119))/0x4+parseInt(_0x198b70(0x137))/0x5*(parseInt(_0x198b70(0x122))/0x6)+parseInt(_0x198b70(0x131))/0x7+-parseInt(_0x198b70(0x12c))/0x8+parseInt(_0x198b70(0x117))/0x9*(parseInt(_0x198b70(0x129))/0xa);if(_0xb39131===_0x212133)break;else _0x62e915['push'](_0x62e915['shift']());}catch(_0xc107db){_0x62e915['push'](_0x62e915['shift']());}}}(a69_0x12ef,0xb54bd));const {createClassLogger}=require(a69_0x5d60f3(0x133)),logger=createClassLogger('TrackedInstance'),HookState=require(a69_0x5d60f3(0x121)),TestFrameworkState=require(a69_0x5d60f3(0x118)),TrackedContext=require(a69_0x5d60f3(0x127)),TrackedInstance=require(a69_0x5d60f3(0x123)),now=new Date();function a69_0xd984(_0x15348a,_0x20f1cf){const _0x12efc3=a69_0x12ef();return a69_0xd984=function(_0xd984d7,_0x2627f1){_0xd984d7=_0xd984d7-0x117;let _0x878d85=_0x12efc3[_0xd984d7];return _0x878d85;},a69_0xd984(_0x15348a,_0x20f1cf);}class TestFrameworkInstance extends TrackedInstance{constructor(_0x445de0,_0x28cd40,_0x429d1f,_0x26bf20,_0x3412a0){const _0x30062e=a69_0x5d60f3,_0x8a22cf={};_0x8a22cf[_0x30062e(0x12f)]='0|5|1|4|3|7|2|6';const _0x43d9c3=_0x8a22cf,_0xeb981c=_0x43d9c3[_0x30062e(0x12f)][_0x30062e(0x11a)]('|');let _0xd05fe6=0x0;while(!![]){switch(_0xeb981c[_0xd05fe6++]){case'0':super(_0x445de0);continue;case'1':this['testFrameworksVersions']=_0x429d1f;continue;case'2':this[_0x30062e(0x126)]=HookState[_0x30062e(0x132)];continue;case'3':this[_0x30062e(0x124)]=_0x3412a0;continue;case'4':this[_0x30062e(0x136)]=_0x26bf20;continue;case'5':this[_0x30062e(0x11e)]=_0x28cd40;continue;case'6':this[_0x30062e(0x11b)]=now[_0x30062e(0x134)]();continue;case'7':this[_0x30062e(0x11f)]=TestFrameworkState[_0x30062e(0x132)];continue;}break;}}['getCurrentTestState'](){const _0x4d02a6=a69_0x5d60f3;return this[_0x4d02a6(0x136)];}[a69_0x5d60f3(0x11c)](_0x4c7d13){const _0x33def5=a69_0x5d60f3;this[_0x33def5(0x12b)](this[_0x33def5(0x136)]),this[_0x33def5(0x136)]=_0x4c7d13;}[a69_0x5d60f3(0x130)](){return this['currentHookState'];}[a69_0x5d60f3(0x11d)](_0x9457a4){const _0x3ed10b=a69_0x5d60f3;this[_0x3ed10b(0x12d)](this[_0x3ed10b(0x124)]),this[_0x3ed10b(0x124)]=_0x9457a4;}[a69_0x5d60f3(0x120)](){const _0x20493b=a69_0x5d60f3;return this[_0x20493b(0x11f)];}['setLastTestState'](_0x58916b){const _0x20e9d0=a69_0x5d60f3;this[_0x20e9d0(0x11f)]=_0x58916b;}[a69_0x5d60f3(0x12a)](){const _0x9406cf=a69_0x5d60f3;return this[_0x9406cf(0x126)];}[a69_0x5d60f3(0x12d)](_0x3c4bb2){const _0x223d8d=a69_0x5d60f3;this[_0x223d8d(0x126)]=_0x3c4bb2;}[a69_0x5d60f3(0x125)](){const _0xb8b539=a69_0x5d60f3;return this[_0xb8b539(0x11b)];}}function a69_0x12ef(){const _0x25edf9=['3LbweFt','336170ziXTLs','getLastHookState','setLastTestState','2737776BAjBUI','setLastHookState','2855530nDZxDq','upIEO','getCurrentHookState','1122065hBSXBp','NONE','../../../helpers/classLogger','toLocaleString','930844gKyeyx','currentTestState','10BBshLO','225vJcSAe','../state/testFrameworkState','2994784bZIyxp','split','createdAt','setCurrentTestState','setCurrentHookState','testFrameworks','lastTestState','getLastTestState','../state/hookState','1007598MescKU','./trackedInstance','currentHookState','getCreatedAt','lastHookState','./trackedContext'];a69_0x12ef=function(){return _0x25edf9;};return a69_0x12ef();}module['exports']=TestFrameworkInstance;
1
+ const a71_0xc909f0=a71_0x269d;function a71_0x269d(_0x5d9806,_0x5f3d19){const _0x230124=a71_0x2301();return a71_0x269d=function(_0x269d6c,_0x4749ce){_0x269d6c=_0x269d6c-0x172;let _0x4532b5=_0x230124[_0x269d6c];return _0x4532b5;},a71_0x269d(_0x5d9806,_0x5f3d19);}(function(_0x160007,_0x3f36f1){const _0x27daa2=a71_0x269d,_0x2b5c0b=_0x160007();while(!![]){try{const _0x164bba=parseInt(_0x27daa2(0x193))/0x1+-parseInt(_0x27daa2(0x17e))/0x2*(parseInt(_0x27daa2(0x186))/0x3)+-parseInt(_0x27daa2(0x187))/0x4*(-parseInt(_0x27daa2(0x179))/0x5)+parseInt(_0x27daa2(0x183))/0x6*(parseInt(_0x27daa2(0x175))/0x7)+-parseInt(_0x27daa2(0x184))/0x8*(-parseInt(_0x27daa2(0x192))/0x9)+-parseInt(_0x27daa2(0x18e))/0xa+parseInt(_0x27daa2(0x182))/0xb*(-parseInt(_0x27daa2(0x173))/0xc);if(_0x164bba===_0x3f36f1)break;else _0x2b5c0b['push'](_0x2b5c0b['shift']());}catch(_0x498810){_0x2b5c0b['push'](_0x2b5c0b['shift']());}}}(a71_0x2301,0xb2cec));function a71_0x2301(){const _0xa70e83=['54svZNmy','364335BnymBI','split','8954448AUVRyC','../state/testFrameworkState','42dpetEa','currentTestState','getCurrentTestState','NONE','2081525VBtwrs','toLocaleString','./trackedInstance','5|2|3|0|6|1|7|4','setLastTestState','753334MAzITv','getLastHookState','lastTestState','TrackedInstance','11KBsjVV','1094592kddzxR','958064UqvyZM','setLastHookState','9UuFyMy','8wIaluf','testFrameworksVersions','kACXm','currentHookState','lastHookState','getLastTestState','testFrameworks','4014840rPcIlM','exports','getCurrentHookState','createdAt'];a71_0x2301=function(){return _0xa70e83;};return a71_0x2301();}const {createClassLogger}=require('../../../helpers/classLogger'),logger=createClassLogger(a71_0xc909f0(0x181)),HookState=require('../state/hookState'),TestFrameworkState=require(a71_0xc909f0(0x174)),TrackedContext=require('./trackedContext'),TrackedInstance=require(a71_0xc909f0(0x17b)),now=new Date();class TestFrameworkInstance extends TrackedInstance{constructor(_0x2954eb,_0x16a86f,_0xc1cdb5,_0x397b83,_0x4451d6){const _0x4c78b4=a71_0xc909f0,_0x17ae76={};_0x17ae76[_0x4c78b4(0x189)]=_0x4c78b4(0x17c);const _0x117cb5=_0x17ae76,_0x39416e=_0x117cb5[_0x4c78b4(0x189)][_0x4c78b4(0x172)]('|');let _0x5db781=0x0;while(!![]){switch(_0x39416e[_0x5db781++]){case'0':this[_0x4c78b4(0x176)]=_0x397b83;continue;case'1':this[_0x4c78b4(0x180)]=TestFrameworkState[_0x4c78b4(0x178)];continue;case'2':this[_0x4c78b4(0x18d)]=_0x16a86f;continue;case'3':this[_0x4c78b4(0x188)]=_0xc1cdb5;continue;case'4':this[_0x4c78b4(0x191)]=now[_0x4c78b4(0x17a)]();continue;case'5':super(_0x2954eb);continue;case'6':this[_0x4c78b4(0x18a)]=_0x4451d6;continue;case'7':this[_0x4c78b4(0x18b)]=HookState[_0x4c78b4(0x178)];continue;}break;}}[a71_0xc909f0(0x177)](){const _0x19f065=a71_0xc909f0;return this[_0x19f065(0x176)];}['setCurrentTestState'](_0xe622c1){const _0x59a12b=a71_0xc909f0;this[_0x59a12b(0x17d)](this[_0x59a12b(0x176)]),this[_0x59a12b(0x176)]=_0xe622c1;}[a71_0xc909f0(0x190)](){const _0x4b93f2=a71_0xc909f0;return this[_0x4b93f2(0x18a)];}['setCurrentHookState'](_0x3a1e7a){const _0x3246f0=a71_0xc909f0;this[_0x3246f0(0x185)](this[_0x3246f0(0x18a)]),this[_0x3246f0(0x18a)]=_0x3a1e7a;}[a71_0xc909f0(0x18c)](){const _0x4208cc=a71_0xc909f0;return this[_0x4208cc(0x180)];}[a71_0xc909f0(0x17d)](_0x188a9c){const _0x4d606f=a71_0xc909f0;this[_0x4d606f(0x180)]=_0x188a9c;}[a71_0xc909f0(0x17f)](){return this['lastHookState'];}['setLastHookState'](_0x238983){const _0xabb63b=a71_0xc909f0;this[_0xabb63b(0x18b)]=_0x238983;}['getCreatedAt'](){return this['createdAt'];}}module[a71_0xc909f0(0x18f)]=TestFrameworkInstance;
@@ -1 +1 @@
1
- const a70_0x585698=a70_0x4126;function a70_0x1586(){const _0x149b99=['processId','648wRftmJ','threadId','getThreadId','getProcessId','401152hjMaKk','../../../helpers/classLogger','6133715mqjiil','getType','127492voZvLD','exports','getId','4815115UUbLDC','93MVGcxw','type','TrackedContext','1684544UPcZmw','7748802nirBHg','89408Yffhpa'];a70_0x1586=function(){return _0x149b99;};return a70_0x1586();}(function(_0x73a7cd,_0x2b81fd){const _0x61d9a8=a70_0x4126,_0x5225e4=_0x73a7cd();while(!![]){try{const _0x28b649=parseInt(_0x61d9a8(0x17d))/0x1+-parseInt(_0x61d9a8(0x17b))/0x2+-parseInt(_0x61d9a8(0x178))/0x3*(parseInt(_0x61d9a8(0x174))/0x4)+parseInt(_0x61d9a8(0x177))/0x5+-parseInt(_0x61d9a8(0x17c))/0x6+-parseInt(_0x61d9a8(0x185))/0x7+-parseInt(_0x61d9a8(0x183))/0x8*(-parseInt(_0x61d9a8(0x17f))/0x9);if(_0x28b649===_0x2b81fd)break;else _0x5225e4['push'](_0x5225e4['shift']());}catch(_0x34cb6c){_0x5225e4['push'](_0x5225e4['shift']());}}}(a70_0x1586,0xa24b0));const {createClassLogger}=require(a70_0x585698(0x184)),logger=createClassLogger(a70_0x585698(0x17a));class TrackedContext{constructor(_0x367aa8,_0x4d8c0e,_0x5eb7f0,_0x1d853b){const _0x43db1c=a70_0x585698;this['id']=_0x367aa8,this[_0x43db1c(0x180)]=_0x4d8c0e,this['processId']=_0x5eb7f0,this[_0x43db1c(0x179)]=_0x1d853b;}[a70_0x585698(0x181)](){const _0xa620ca=a70_0x585698;return this[_0xa620ca(0x180)];}[a70_0x585698(0x182)](){const _0x21068c=a70_0x585698;return this[_0x21068c(0x17e)];}[a70_0x585698(0x176)](){return this['id'];}[a70_0x585698(0x186)](){const _0x597165=a70_0x585698;return this[_0x597165(0x179)];}}function a70_0x4126(_0x3d2994,_0x470d14){const _0x1586f9=a70_0x1586();return a70_0x4126=function(_0x412657,_0x12372d){_0x412657=_0x412657-0x174;let _0x583a45=_0x1586f9[_0x412657];return _0x583a45;},a70_0x4126(_0x3d2994,_0x470d14);}module[a70_0x585698(0x175)]=TrackedContext;
1
+ function a72_0x24bc(_0x54560a,_0x14dfaa){const _0x551a1b=a72_0x551a();return a72_0x24bc=function(_0x24bcc0,_0x28c6da){_0x24bcc0=_0x24bcc0-0x1d8;let _0x4f8dc8=_0x551a1b[_0x24bcc0];return _0x4f8dc8;},a72_0x24bc(_0x54560a,_0x14dfaa);}const a72_0x260bcf=a72_0x24bc;(function(_0x4b883f,_0xe6eed2){const _0x5bec1b=a72_0x24bc,_0x1a48ab=_0x4b883f();while(!![]){try{const _0xa3a27e=-parseInt(_0x5bec1b(0x1e2))/0x1*(parseInt(_0x5bec1b(0x1eb))/0x2)+-parseInt(_0x5bec1b(0x1e3))/0x3+parseInt(_0x5bec1b(0x1db))/0x4*(-parseInt(_0x5bec1b(0x1d9))/0x5)+-parseInt(_0x5bec1b(0x1dc))/0x6+-parseInt(_0x5bec1b(0x1e0))/0x7*(-parseInt(_0x5bec1b(0x1e9))/0x8)+-parseInt(_0x5bec1b(0x1e6))/0x9*(parseInt(_0x5bec1b(0x1ea))/0xa)+parseInt(_0x5bec1b(0x1d8))/0xb*(parseInt(_0x5bec1b(0x1e8))/0xc);if(_0xa3a27e===_0xe6eed2)break;else _0x1a48ab['push'](_0x1a48ab['shift']());}catch(_0x10309d){_0x1a48ab['push'](_0x1a48ab['shift']());}}}(a72_0x551a,0x9a1d3));const {createClassLogger}=require(a72_0x260bcf(0x1de)),logger=createClassLogger(a72_0x260bcf(0x1e7));class TrackedContext{constructor(_0x4320fe,_0xfa4327,_0x225b93,_0x1814b9){const _0x4bccf0=a72_0x260bcf;this['id']=_0x4320fe,this[_0x4bccf0(0x1df)]=_0xfa4327,this['processId']=_0x225b93,this[_0x4bccf0(0x1da)]=_0x1814b9;}[a72_0x260bcf(0x1dd)](){const _0x10f6be=a72_0x260bcf;return this[_0x10f6be(0x1df)];}[a72_0x260bcf(0x1e5)](){return this['processId'];}[a72_0x260bcf(0x1e4)](){return this['id'];}['getType'](){return this['type'];}}module[a72_0x260bcf(0x1e1)]=TrackedContext;function a72_0x551a(){const _0xf76a20=['../../../helpers/classLogger','threadId','7sdCwPL','exports','1031vZGJfi','3118044HRUDKo','getId','getProcessId','4616091xLSXky','TrackedContext','37933452ZGypWx','2009568pSDRQb','10PPBvnO','916ojdgry','11KfdLWW','5ZBdgPt','type','1475048SzzDeF','2327154LLetfm','getThreadId'];a72_0x551a=function(){return _0xf76a20;};return a72_0x551a();}
@@ -1 +1 @@
1
- const a71_0xc4c81d=a71_0x4d8b;(function(_0x265e34,_0x4703b1){const _0x2085be=a71_0x4d8b,_0x38460d=_0x265e34();while(!![]){try{const _0x10921f=parseInt(_0x2085be(0x139))/0x1*(parseInt(_0x2085be(0x148))/0x2)+-parseInt(_0x2085be(0x13f))/0x3+parseInt(_0x2085be(0x13e))/0x4+parseInt(_0x2085be(0x146))/0x5*(-parseInt(_0x2085be(0x134))/0x6)+-parseInt(_0x2085be(0x14b))/0x7+parseInt(_0x2085be(0x13c))/0x8*(-parseInt(_0x2085be(0x145))/0x9)+parseInt(_0x2085be(0x133))/0xa;if(_0x10921f===_0x4703b1)break;else _0x38460d['push'](_0x38460d['shift']());}catch(_0x5c1664){_0x38460d['push'](_0x38460d['shift']());}}}(a71_0x5100,0x886e0));const TrackedContext=require('./trackedContext'),crypto=require(a71_0xc4c81d(0x135)),{threadId}=require(a71_0xc4c81d(0x13b));function a71_0x4d8b(_0x1db9b7,_0x58a41b){const _0x5100ea=a71_0x5100();return a71_0x4d8b=function(_0x4d8b7b,_0x1f75d7){_0x4d8b7b=_0x4d8b7b-0x12e;let _0x497e26=_0x5100ea[_0x4d8b7b];return _0x497e26;},a71_0x4d8b(_0x1db9b7,_0x58a41b);}function a71_0x5100(){const _0x1aae61=['30rdVIqc','keys','2052466henfmx','isBrowserstackAutomationSession','data','742770mLShmG','entries','updateMultipleEntries','context','set','forEach','get','pid','exports','5501850zbKpgs','831768XLImNW','crypto','getId','kGcpB','digest','1mItldw','sha256','worker_threads','104xsBQxO','getContext','1455940yljWbr','581313KYuiqW','updateData','getRef','update','evPAc','tIygz','173034LqtLCN'];a71_0x5100=function(){return _0x1aae61;};return a71_0x5100();}class TrackedInstance{static ['KEY_IS_BROWSERSTACK_AUTOMATION_SESSION']=a71_0xc4c81d(0x149);constructor(_0x495e5e){const _0x3b7360=a71_0xc4c81d;this[_0x3b7360(0x14e)]=_0x495e5e,this[_0x3b7360(0x14a)]=new Map();}[a71_0xc4c81d(0x141)](){const _0xcd4e91=a71_0xc4c81d;return this[_0xcd4e91(0x14e)][_0xcd4e91(0x136)]();}[a71_0xc4c81d(0x13d)](){return this['context'];}['getAllData'](){const _0xdf2a33=a71_0xc4c81d;return this[_0xdf2a33(0x14a)];}[a71_0xc4c81d(0x14d)](_0x4c198a){const _0x5e0270=a71_0xc4c81d;Object[_0x5e0270(0x147)](_0x4c198a)[_0x5e0270(0x12f)](_0x273ff0=>{const _0x380899=_0x5e0270;this[_0x380899(0x14a)][_0x380899(0x12e)](_0x273ff0,_0x4c198a[_0x273ff0]);});}['addMultipleEntries'](_0xbb1584){const _0x427701=a71_0xc4c81d;Object[_0x427701(0x14c)](_0xbb1584)[_0x427701(0x12f)](([_0x29eedc,_0x412af9])=>{const _0x2b89a0=_0x427701,_0x5e7d87=this[_0x2b89a0(0x14a)][_0x2b89a0(0x130)](_0x29eedc)||{},_0x35e8ac={..._0x5e7d87,..._0x412af9},_0x2a185c=_0x35e8ac;this[_0x2b89a0(0x14a)][_0x2b89a0(0x12e)](_0x29eedc,_0x2a185c);});}['getData'](_0x1d77a5){const _0x2895bb=a71_0xc4c81d;return this[_0x2895bb(0x14a)]['get'](_0x1d77a5);}[a71_0xc4c81d(0x140)](_0x31d837,_0x48680f){const _0x44eaf7=a71_0xc4c81d;this[_0x44eaf7(0x14a)]['set'](_0x31d837,_0x48680f);}static['createContext'](_0x45db0c){const _0xf38219=a71_0xc4c81d,_0x13fc2e={};_0x13fc2e[_0xf38219(0x137)]=_0xf38219(0x13a),_0x13fc2e[_0xf38219(0x144)]='hex',_0x13fc2e[_0xf38219(0x143)]=function(_0x25a574,_0x28782e){return _0x25a574||_0x28782e;};const _0x474059=_0x13fc2e;return new TrackedContext(crypto['createHash'](_0x474059[_0xf38219(0x137)])[_0xf38219(0x142)](_0x45db0c)[_0xf38219(0x138)](_0x474059['tIygz']),_0x474059[_0xf38219(0x143)](threadId,0x0),process[_0xf38219(0x131)],typeof _0x45db0c);}}module[a71_0xc4c81d(0x132)]=TrackedInstance;
1
+ const a73_0x3ec407=a73_0x2bb1;(function(_0x30cf76,_0x1a0e93){const _0x402631=a73_0x2bb1,_0x44aa74=_0x30cf76();while(!![]){try{const _0x30af3a=parseInt(_0x402631(0x1c3))/0x1+parseInt(_0x402631(0x1bc))/0x2*(-parseInt(_0x402631(0x1c9))/0x3)+-parseInt(_0x402631(0x1b0))/0x4*(parseInt(_0x402631(0x1c8))/0x5)+parseInt(_0x402631(0x1ab))/0x6*(parseInt(_0x402631(0x1cd))/0x7)+-parseInt(_0x402631(0x1c2))/0x8*(parseInt(_0x402631(0x1ae))/0x9)+parseInt(_0x402631(0x1c7))/0xa+parseInt(_0x402631(0x1bb))/0xb;if(_0x30af3a===_0x1a0e93)break;else _0x44aa74['push'](_0x44aa74['shift']());}catch(_0x92c42e){_0x44aa74['push'](_0x44aa74['shift']());}}}(a73_0xbadf,0x7cd2c));const TrackedContext=require(a73_0x3ec407(0x1b4)),crypto=require(a73_0x3ec407(0x1c0)),{threadId}=require('worker_threads');class TrackedInstance{static [a73_0x3ec407(0x1be)]=a73_0x3ec407(0x1b7);constructor(_0x58e264){const _0x2f98ad=a73_0x3ec407;this[_0x2f98ad(0x1b2)]=_0x58e264,this['data']=new Map();}[a73_0x3ec407(0x1bf)](){const _0x5cdebb=a73_0x3ec407;return this[_0x5cdebb(0x1b2)][_0x5cdebb(0x1a9)]();}[a73_0x3ec407(0x1aa)](){const _0x28a67b=a73_0x3ec407;return this[_0x28a67b(0x1b2)];}[a73_0x3ec407(0x1b3)](){return this['data'];}[a73_0x3ec407(0x1c5)](_0x370cd4){const _0x3655ca=a73_0x3ec407;Object[_0x3655ca(0x1cc)](_0x370cd4)[_0x3655ca(0x1c1)](_0x58218d=>{const _0x3fc9ad=_0x3655ca;this[_0x3fc9ad(0x1b9)][_0x3fc9ad(0x1b6)](_0x58218d,_0x370cd4[_0x58218d]);});}[a73_0x3ec407(0x1af)](_0x4e018c){const _0x47126e=a73_0x3ec407;Object['entries'](_0x4e018c)[_0x47126e(0x1c1)](([_0x49a5ad,_0x347ca3])=>{const _0xd184bb=_0x47126e,_0x4e2ba9=this['data'][_0xd184bb(0x1ca)](_0x49a5ad)||{},_0x1292e7={..._0x4e2ba9,..._0x347ca3},_0x1a71bb=_0x1292e7;this[_0xd184bb(0x1b9)][_0xd184bb(0x1b6)](_0x49a5ad,_0x1a71bb);});}[a73_0x3ec407(0x1ba)](_0x42a33b){const _0x5c01c8=a73_0x3ec407;return this[_0x5c01c8(0x1b9)][_0x5c01c8(0x1ca)](_0x42a33b);}[a73_0x3ec407(0x1ac)](_0x11e9c8,_0x47036b){const _0x17ba6b=a73_0x3ec407;this[_0x17ba6b(0x1b9)][_0x17ba6b(0x1b6)](_0x11e9c8,_0x47036b);}static[a73_0x3ec407(0x1ad)](_0x39b7ae){const _0x4dd635=a73_0x3ec407,_0x1108af={};_0x1108af[_0x4dd635(0x1cb)]=_0x4dd635(0x1c4),_0x1108af[_0x4dd635(0x1b1)]='hex',_0x1108af[_0x4dd635(0x1bd)]=function(_0x1bb61f,_0x3a8020){return _0x1bb61f||_0x3a8020;};const _0x311dab=_0x1108af;return new TrackedContext(crypto[_0x4dd635(0x1b8)](_0x311dab['zEtjh'])['update'](_0x39b7ae)[_0x4dd635(0x1b5)](_0x311dab[_0x4dd635(0x1b1)]),_0x311dab[_0x4dd635(0x1bd)](threadId,0x0),process[_0x4dd635(0x1c6)],typeof _0x39b7ae);}}function a73_0x2bb1(_0x14915c,_0xc5088b){const _0xbadf14=a73_0xbadf();return a73_0x2bb1=function(_0x2bb107,_0x5b7510){_0x2bb107=_0x2bb107-0x1a9;let _0x2d433a=_0xbadf14[_0x2bb107];return _0x2d433a;},a73_0x2bb1(_0x14915c,_0xc5088b);}function a73_0xbadf(){const _0x44dbe1=['isBrowserstackAutomationSession','createHash','data','getData','11646987XraEgx','8746gLeYyv','SSzkl','KEY_IS_BROWSERSTACK_AUTOMATION_SESSION','getRef','crypto','forEach','6802568nwmlXl','368241CflbwG','sha256','updateMultipleEntries','pid','51160EhXRtj','2399770BCrdEp','75YfBbdE','get','zEtjh','keys','148736XyKzND','getId','getContext','282vFIVyl','updateData','createContext','9YdULXt','addMultipleEntries','8aXrPIo','gYIjt','context','getAllData','./trackedContext','digest','set'];a73_0xbadf=function(){return _0x44dbe1;};return a73_0xbadf();}module['exports']=TrackedInstance;
@@ -1 +1 @@
1
- const a72_0x5e09f2=a72_0x172e;function a72_0x172e(_0x388ef3,_0x12e48f){const _0x29275f=a72_0x2927();return a72_0x172e=function(_0x172e59,_0x445a86){_0x172e59=_0x172e59-0x187;let _0x255170=_0x29275f[_0x172e59];return _0x255170;},a72_0x172e(_0x388ef3,_0x12e48f);}(function(_0x3db00d,_0x35d27f){const _0x5dc27e=a72_0x172e,_0x1b8e14=_0x3db00d();while(!![]){try{const _0x10b87f=-parseInt(_0x5dc27e(0x19a))/0x1*(-parseInt(_0x5dc27e(0x18c))/0x2)+parseInt(_0x5dc27e(0x1bd))/0x3*(-parseInt(_0x5dc27e(0x1aa))/0x4)+-parseInt(_0x5dc27e(0x1a9))/0x5*(-parseInt(_0x5dc27e(0x1b2))/0x6)+-parseInt(_0x5dc27e(0x1ac))/0x7*(parseInt(_0x5dc27e(0x1c3))/0x8)+parseInt(_0x5dc27e(0x1cc))/0x9*(-parseInt(_0x5dc27e(0x1cd))/0xa)+parseInt(_0x5dc27e(0x1d7))/0xb+-parseInt(_0x5dc27e(0x18a))/0xc;if(_0x10b87f===_0x35d27f)break;else _0x1b8e14['push'](_0x1b8e14['shift']());}catch(_0x496b59){_0x1b8e14['push'](_0x1b8e14['shift']());}}}(a72_0x2927,0xb26a1));const BaseModule=require(a72_0x5e09f2(0x19e)),{createClassLogger}=require('../../../helpers/classLogger'),CLIUtils=require(a72_0x5e09f2(0x1ae)),AutomationFramework=require(a72_0x5e09f2(0x190)),AutomationFrameworkState=require(a72_0x5e09f2(0x1bb)),HookState=require('../state/hookState'),GrpcClient=require(a72_0x5e09f2(0x1d3)),scripts=require('../../../helpers/accessibility-automation/scripts'),logger=createClassLogger(a72_0x5e09f2(0x1cb)),PerformanceTester=require('../../../helpers/performance/performance-tester.js'),{EVENTS}=require(a72_0x5e09f2(0x1d5));class AccessibilityModule extends BaseModule{static [a72_0x5e09f2(0x1b7)]=AccessibilityModule[a72_0x5e09f2(0x1cf)];constructor(_0x5879ca){const _0x32ee0b=a72_0x5e09f2,_0x48c59f={};_0x48c59f[_0x32ee0b(0x1ba)]=_0x32ee0b(0x1a7);const _0x2e3677=_0x48c59f,_0x1d7e59=_0x2e3677[_0x32ee0b(0x1ba)][_0x32ee0b(0x1bc)]('|');let _0x17c3e1=0x0;while(!![]){switch(_0x1d7e59[_0x17c3e1++]){case'0':this[_0x32ee0b(0x194)]=!![];continue;case'1':this['capabilities']=[];continue;case'2':this[_0x32ee0b(0x1bf)](_0x5879ca[_0x32ee0b(0x1c9)]()[_0x32ee0b(0x1af)]());continue;case'3':AutomationFramework[_0x32ee0b(0x1b8)](AutomationFrameworkState[_0x32ee0b(0x1d8)],HookState[_0x32ee0b(0x195)],this[_0x32ee0b(0x197)][_0x32ee0b(0x193)](this));continue;case'4':this[_0x32ee0b(0x1a2)]=new Map();continue;case'5':AutomationFramework['registerObserver'](AutomationFrameworkState['CREATE'],HookState[_0x32ee0b(0x195)],this['onBeforeTest'][_0x32ee0b(0x193)](this));continue;case'6':this[_0x32ee0b(0x1a5)]=_0x5879ca[_0x32ee0b(0x1be)]();continue;case'7':this[_0x32ee0b(0x1b5)]=![];continue;case'8':super();continue;case'9':AutomationFramework[_0x32ee0b(0x1b8)](AutomationFrameworkState[_0x32ee0b(0x1d6)],HookState['PRE'],this[_0x32ee0b(0x1ab)][_0x32ee0b(0x193)](this));continue;case'10':this[_0x32ee0b(0x1ce)]=new Map();continue;}break;}}[a72_0x5e09f2(0x194)](){const _0x196897=a72_0x5e09f2;return this[_0x196897(0x194)];}['getModuleName'](){return AccessibilityModule['MODULE_NAME'];}[a72_0x5e09f2(0x192)](){const _0x19914d=a72_0x5e09f2;return this[_0x19914d(0x1a2)][_0x19914d(0x1c7)](CLIUtils['getCurrentInstanceName'](),![]);}[a72_0x5e09f2(0x1b4)](){const _0x241460=a72_0x5e09f2;return this[_0x241460(0x1ce)][_0x241460(0x1c7)](CLIUtils[_0x241460(0x1c6)](),![]);}[a72_0x5e09f2(0x1ad)](_0x566396){const _0x3e446c=a72_0x5e09f2;this[_0x3e446c(0x1ce)]['put'](CLIUtils[_0x3e446c(0x1c6)](),_0x566396);}async['onBeforeTest'](_0x45cef3){const _0x2f7d6c=a72_0x5e09f2;try{PerformanceTester[_0x2f7d6c(0x1d9)](EVENTS[_0x2f7d6c(0x1c1)]);const _0x5bbefb=await GrpcClient[_0x2f7d6c(0x1b6)]()['getAccessibilityConfig'](_0x45cef3);_0x5bbefb&&_0x5bbefb[_0x2f7d6c(0x191)]()&&_0x5bbefb[_0x2f7d6c(0x191)]()['getSuccess']()&&(global[_0x2f7d6c(0x189)]=!![],process[_0x2f7d6c(0x196)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=!![],this[_0x2f7d6c(0x18e)](_0x5bbefb,_0x45cef3)),PerformanceTester['end'](EVENTS[_0x2f7d6c(0x1c1)]);}catch(_0x3c38e6){PerformanceTester[_0x2f7d6c(0x1a4)](EVENTS[_0x2f7d6c(0x1c1)],![],_0x3c38e6[_0x2f7d6c(0x19c)]),logger['error']('Error\x20while\x20setting\x20accessibility\x20config:\x20'+(_0x3c38e6['stack']||_0x3c38e6[_0x2f7d6c(0x19c)]));}}[a72_0x5e09f2(0x19b)](){const _0x5c1495=a72_0x5e09f2;return this[_0x5c1495(0x187)][_0x5c1495(0x1c8)](_0x145329=>_0x145329[_0x5c1495(0x19d)]()==='goog:chromeOptions')?.[_0x5c1495(0x1d4)]()||'';}async[a72_0x5e09f2(0x18e)](_0x384233,_0x3a4185){const _0x5f1f55=a72_0x5e09f2,_0xfa4548=_0x384233[_0x5f1f55(0x191)]()[_0x5f1f55(0x1c9)](),_0x5f00b2=_0xfa4548['getScriptsList'](),_0x35d763=_0xfa4548[_0x5f1f55(0x1b3)]()?.[_0x5f1f55(0x19f)]();scripts[_0x5f1f55(0x1ca)](_0x5f00b2,_0x35d763),scripts['toJson']();const _0x4a5b50=_0xfa4548[_0x5f1f55(0x1af)]();this[_0x5f1f55(0x187)]=_0xfa4548[_0x5f1f55(0x1af)](),await this[_0x5f1f55(0x1bf)](_0x4a5b50,_0x3a4185[_0x5f1f55(0x1a6)]);}async[a72_0x5e09f2(0x1bf)](_0x199594,_0x2ebacf={}){const _0xf0bd1b=a72_0x5e09f2,_0x45ae86={};_0x45ae86[_0xf0bd1b(0x1b0)]=function(_0x20c4c2,_0x62f57e){return _0x20c4c2===_0x62f57e;},_0x45ae86[_0xf0bd1b(0x1b9)]='accessibilityToken',_0x45ae86[_0xf0bd1b(0x18d)]=_0xf0bd1b(0x1a8),_0x45ae86[_0xf0bd1b(0x1d0)]=_0xf0bd1b(0x1c4),_0x45ae86[_0xf0bd1b(0x1d2)]=_0xf0bd1b(0x198),_0x45ae86['ujqxh']=function(_0x68d57d,_0x3ce4b0){return _0x68d57d===_0x3ce4b0;},_0x45ae86[_0xf0bd1b(0x1c0)]='scannerVersion',_0x45ae86[_0xf0bd1b(0x1c2)]=_0xf0bd1b(0x1a1),_0x45ae86[_0xf0bd1b(0x1d1)]=function(_0x19ef96,_0x592c9b){return _0x19ef96===_0x592c9b;},_0x45ae86[_0xf0bd1b(0x18f)]='scannerProcessingTimeout',_0x45ae86['vZDDL']=_0xf0bd1b(0x1b1);const _0x390837=_0x45ae86;for(const _0xd47e14 of _0x199594){logger[_0xf0bd1b(0x18b)]('name:\x20'+_0xd47e14[_0xf0bd1b(0x19d)]()+_0xf0bd1b(0x199)+_0xd47e14['getValue']());if(_0x390837['FukZO'](_0xd47e14[_0xf0bd1b(0x19d)](),_0x390837['fuxdm']))process[_0xf0bd1b(0x196)]['BS_A11Y_JWT']=_0xd47e14[_0xf0bd1b(0x1d4)](),_0x2ebacf[_0x390837[_0xf0bd1b(0x18d)]]=_0xd47e14[_0xf0bd1b(0x1d4)]();else{if(_0x390837[_0xf0bd1b(0x1b0)](_0xd47e14[_0xf0bd1b(0x19d)](),_0x390837[_0xf0bd1b(0x1d0)]))_0x2ebacf[_0x390837[_0xf0bd1b(0x1d2)]]=_0xd47e14['getValue']();else{if(_0x390837[_0xf0bd1b(0x1a0)](_0xd47e14['getName'](),_0x390837[_0xf0bd1b(0x1c0)]))_0x2ebacf[_0x390837[_0xf0bd1b(0x1c2)]]=_0xd47e14[_0xf0bd1b(0x1d4)]();else _0x390837[_0xf0bd1b(0x1d1)](_0xd47e14['getName'](),_0x390837['DsZBO'])&&(_0x2ebacf[_0x390837['vZDDL']]=_0xd47e14[_0xf0bd1b(0x1d4)]());}}}}[a72_0x5e09f2(0x1ab)](_0x15a2e9){const _0x13069a=a72_0x5e09f2;logger['info'](_0x13069a(0x188)+_0x15a2e9);}[a72_0x5e09f2(0x197)](_0x195c05){const _0x3c5c29=a72_0x5e09f2;logger[_0x3c5c29(0x18b)](_0x3c5c29(0x1c5)+_0x195c05);}}function a72_0x2927(){const _0x59c540=['split','18cwTyGX','toObject','setAccessibilityToken','OYHHR','SDK_ACCESSIBILITY_CONFIG','EeeZA','104cfaQrp','wcagVersion','onBeforeExecute:\x20event=','getCurrentInstanceName','get','find','getOptions','parseFromProto','TrackedInstance','9lGkdTQ','6257670EmvFnb','LOG_DISABLED_SHOWN','name','XPgYS','brGyr','hZEuP','../grpcClient','getValue','../../../helpers/performance/constants.js','QUIT','224532VvLktU','EXECUTE','start','capabilities','onAfterTest:\x20event=','accessibilityPlatform','10628568JUMGpl','info','2cNFijN','bTPUA','setAccessibilityConfig','DsZBO','../framework/automationFramework','getAccessibility','getCurrentAccessibilityStatus','bind','isEnabled','PRE','env','onBeforeExecute','browserstack.accessibilityOptions.wcagVersion','\x20value=','1187409cDJozX','getGoogleChromeOptions','message','getName','./baseModule','getCommandsList','ujqxh','browserstack.accessibilityOptions.scannerVersion','accessibility','exports','end','accessibilityConfig','launchCaps','8|3|5|9|0|6|4|10|7|1|2','browserstack.accessibilityOptions.authToken','15005cEGOmO','155104TczuOK','onAfterTest','91742vgqXjp','setLogDisabledShown','../cliUtils','getCapabilitiesList','FukZO','browserstack.accessibilityOptions.scannerProcessingTimeout','2874ySMVQy','getCommandsToWrap','getLogDisabledShown','isAppAccessibility','getInstance','MODULE_NAME','registerObserver','fuxdm','baRyA','../state/automationFrameworkState'];a72_0x2927=function(){return _0x59c540;};return a72_0x2927();};module[a72_0x5e09f2(0x1a3)]=AccessibilityModule;
1
+ const a74_0x2427a3=a74_0x55c5;(function(_0xc51ad6,_0x362f6b){const _0x3b85d3=a74_0x55c5,_0x156306=_0xc51ad6();while(!![]){try{const _0x464747=parseInt(_0x3b85d3(0xdb))/0x1*(-parseInt(_0x3b85d3(0x112))/0x2)+-parseInt(_0x3b85d3(0xf6))/0x3*(parseInt(_0x3b85d3(0xfa))/0x4)+parseInt(_0x3b85d3(0x114))/0x5*(parseInt(_0x3b85d3(0xe4))/0x6)+-parseInt(_0x3b85d3(0xe7))/0x7*(-parseInt(_0x3b85d3(0xf0))/0x8)+parseInt(_0x3b85d3(0xd3))/0x9*(parseInt(_0x3b85d3(0x11d))/0xa)+-parseInt(_0x3b85d3(0x11f))/0xb*(parseInt(_0x3b85d3(0xcd))/0xc)+parseInt(_0x3b85d3(0x11e))/0xd*(-parseInt(_0x3b85d3(0xd9))/0xe);if(_0x464747===_0x362f6b)break;else _0x156306['push'](_0x156306['shift']());}catch(_0x1c65d3){_0x156306['push'](_0x156306['shift']());}}}(a74_0x4fbd,0x4b7fb));function a74_0x4fbd(){const _0x3e6162=['isEnabled','314946IFXIED','exports','getAccessibilityConfig','20867fEHyLg','getCommandsList','CREATE','iNFDu','put','getScriptsList','getName','getLogDisabledShown','../grpcClient','1032XXLWDD','wznNw','getInstance','PRE','MODULE_NAME','registerObserver','3MQkvvw','browserstack.accessibilityOptions.scannerProcessingTimeout','message','QYPPB','60380DRMpiJ','./baseModule','goog:chromeOptions','../../../helpers/performance/constants.js','name','JCQJO','accessibilityToken','get','../../../helpers/performance/performance-tester.js','launchCaps','env','OcHLA','error','piBkR','end','accessibilityConfig','DoTJj','getGoogleChromeOptions','BS_A11Y_JWT','capabilities','7|1|5|8|0|6|2|3|10|9|4','LOG_DISABLED_SHOWN','setAccessibilityConfig','onAfterTest','52WDOUaO','Error\x20while\x20setting\x20accessibility\x20config:\x20','30mwLMHQ','browserstack.accessibilityOptions.wcagVersion','getCommandsToWrap','onBeforeExecute','bind','setAccessibilityToken','getCurrentAccessibilityStatus','SDK_ACCESSIBILITY_CONFIG','getAccessibility','321590LDqldy','1093417mUPwTW','11QWqfSc','QUIT','NQcTD','../state/automationFrameworkState','EXECUTE','accessibility','\x20value=','../framework/automationFramework','info','getCurrentInstanceName','35280xZMMUD','scannerProcessingTimeout','scannerVersion','onBeforeTest','split','stack','9GYoHWm','setLogDisabledShown','getSuccess','../cliUtils','getValue','rPmeG','28yWXXaA','getCapabilitiesList','9083bVZGSK','name:\x20','TrackedInstance','../../../helpers/accessibility-automation/scripts','browserstack.accessibilityOptions.scannerVersion','browserstack.accessibilityOptions.authToken','GWhaT','onBeforeExecute:\x20event='];a74_0x4fbd=function(){return _0x3e6162;};return a74_0x4fbd();}const BaseModule=require(a74_0x2427a3(0xfb)),{createClassLogger}=require('../../../helpers/classLogger'),CLIUtils=require(a74_0x2427a3(0xd6)),AutomationFramework=require(a74_0x2427a3(0xca)),AutomationFrameworkState=require(a74_0x2427a3(0xc6)),HookState=require('../state/hookState'),GrpcClient=require(a74_0x2427a3(0xef)),scripts=require(a74_0x2427a3(0xde)),logger=createClassLogger(a74_0x2427a3(0xdd)),PerformanceTester=require(a74_0x2427a3(0x102)),{EVENTS}=require(a74_0x2427a3(0xfd));class AccessibilityModule extends BaseModule{static [a74_0x2427a3(0xf4)]=AccessibilityModule[a74_0x2427a3(0xfe)];constructor(_0x1f241c){const _0x2c6b04=a74_0x2427a3,_0x3c8b14={};_0x3c8b14[_0x2c6b04(0x105)]=_0x2c6b04(0x10e);const _0x164781=_0x3c8b14,_0x4758ff=_0x164781['OcHLA'][_0x2c6b04(0xd1)]('|');let _0x5c0b73=0x0;while(!![]){switch(_0x4758ff[_0x5c0b73++]){case'0':this['isEnabled']=!![];continue;case'1':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x2c6b04(0xc7)],HookState[_0x2c6b04(0xf3)],this[_0x2c6b04(0x117)]['bind'](this));continue;case'2':this[_0x2c6b04(0xc8)]=new Map();continue;case'3':this[_0x2c6b04(0x10f)]=new Map();continue;case'4':this[_0x2c6b04(0x119)](_0x1f241c['getOptions']()['getCapabilitiesList']());continue;case'5':AutomationFramework[_0x2c6b04(0xf5)](AutomationFrameworkState[_0x2c6b04(0xe9)],HookState[_0x2c6b04(0xf3)],this[_0x2c6b04(0xd0)]['bind'](this));continue;case'6':this[_0x2c6b04(0x109)]=_0x1f241c['toObject']();continue;case'7':super();continue;case'8':AutomationFramework[_0x2c6b04(0xf5)](AutomationFrameworkState[_0x2c6b04(0x120)],HookState[_0x2c6b04(0xf3)],this[_0x2c6b04(0x111)][_0x2c6b04(0x118)](this));continue;case'9':this[_0x2c6b04(0x10d)]=[];continue;case'10':this['isAppAccessibility']=![];continue;}break;}}[a74_0x2427a3(0xe3)](){const _0x14702e=a74_0x2427a3;return this[_0x14702e(0xe3)];}['getModuleName'](){const _0x2038ed=a74_0x2427a3;return AccessibilityModule[_0x2038ed(0xf4)];}[a74_0x2427a3(0x11a)](){const _0x3d2283=a74_0x2427a3;return this[_0x3d2283(0xc8)]['get'](CLIUtils[_0x3d2283(0xcc)](),![]);}[a74_0x2427a3(0xee)](){const _0xa6093b=a74_0x2427a3;return this[_0xa6093b(0x10f)][_0xa6093b(0x101)](CLIUtils[_0xa6093b(0xcc)](),![]);}[a74_0x2427a3(0xd4)](_0x348ad6){const _0x19bba8=a74_0x2427a3;this[_0x19bba8(0x10f)][_0x19bba8(0xeb)](CLIUtils[_0x19bba8(0xcc)](),_0x348ad6);}async['onBeforeTest'](_0x2c9a50){const _0x5c529a=a74_0x2427a3;try{PerformanceTester['start'](EVENTS['SDK_ACCESSIBILITY_CONFIG']);const _0x2df07e=await GrpcClient[_0x5c529a(0xf2)]()[_0x5c529a(0xe6)](_0x2c9a50);_0x2df07e&&_0x2df07e[_0x5c529a(0x11c)]()&&_0x2df07e[_0x5c529a(0x11c)]()[_0x5c529a(0xd5)]()&&(global['accessibilityPlatform']=!![],process[_0x5c529a(0x104)]['BROWSERSTACK_TEST_ACCESSIBILITY_YML']=!![],this[_0x5c529a(0x110)](_0x2df07e,_0x2c9a50)),PerformanceTester['end'](EVENTS[_0x5c529a(0x11b)]);}catch(_0x57496c){PerformanceTester[_0x5c529a(0x108)](EVENTS[_0x5c529a(0x11b)],![],_0x57496c[_0x5c529a(0xf8)]),logger[_0x5c529a(0x106)](_0x5c529a(0x113)+(_0x57496c[_0x5c529a(0xd2)]||_0x57496c[_0x5c529a(0xf8)]));}}[a74_0x2427a3(0x10b)](){const _0x207913=a74_0x2427a3;return this[_0x207913(0x10d)]['find'](_0x2a92ce=>_0x2a92ce[_0x207913(0xed)]()===_0x207913(0xfc))?.[_0x207913(0xd7)]()||'';}async['setAccessibilityConfig'](_0x4a49c3,_0x26a973){const _0x1e9d90=a74_0x2427a3,_0x2df69d=_0x4a49c3[_0x1e9d90(0x11c)]()['getOptions'](),_0x5821fe=_0x2df69d[_0x1e9d90(0xec)](),_0x54f999=_0x2df69d[_0x1e9d90(0x116)]()?.[_0x1e9d90(0xe8)]();scripts['parseFromProto'](_0x5821fe,_0x54f999),scripts['toJson']();const _0x497ec4=_0x2df69d[_0x1e9d90(0xda)]();this[_0x1e9d90(0x10d)]=_0x2df69d[_0x1e9d90(0xda)](),await this[_0x1e9d90(0x119)](_0x497ec4,_0x26a973[_0x1e9d90(0x103)]);}async['setAccessibilityToken'](_0xc96043,_0x4948dd={}){const _0x3a13d1=a74_0x2427a3,_0x15defd={};_0x15defd[_0x3a13d1(0xf1)]=function(_0x2423d7,_0x671cfa){return _0x2423d7===_0x671cfa;},_0x15defd[_0x3a13d1(0xf9)]=_0x3a13d1(0x100),_0x15defd['GWhaT']=_0x3a13d1(0xe0),_0x15defd[_0x3a13d1(0x121)]=function(_0x364143,_0x292cae){return _0x364143===_0x292cae;},_0x15defd[_0x3a13d1(0xea)]='wcagVersion',_0x15defd[_0x3a13d1(0x107)]=_0x3a13d1(0x115),_0x15defd[_0x3a13d1(0x10a)]=_0x3a13d1(0xcf),_0x15defd[_0x3a13d1(0xff)]=_0x3a13d1(0xdf),_0x15defd[_0x3a13d1(0xd8)]=_0x3a13d1(0xce),_0x15defd['EuiFR']=_0x3a13d1(0xf7);const _0x5a82f6=_0x15defd;for(const _0x526676 of _0xc96043){logger[_0x3a13d1(0xcb)](_0x3a13d1(0xdc)+_0x526676[_0x3a13d1(0xed)]()+_0x3a13d1(0xc9)+_0x526676[_0x3a13d1(0xd7)]());if(_0x5a82f6['wznNw'](_0x526676[_0x3a13d1(0xed)](),_0x5a82f6[_0x3a13d1(0xf9)]))process[_0x3a13d1(0x104)][_0x3a13d1(0x10c)]=_0x526676['getValue'](),_0x4948dd[_0x5a82f6[_0x3a13d1(0xe1)]]=_0x526676['getValue']();else{if(_0x5a82f6[_0x3a13d1(0x121)](_0x526676[_0x3a13d1(0xed)](),_0x5a82f6[_0x3a13d1(0xea)]))_0x4948dd[_0x5a82f6['piBkR']]=_0x526676[_0x3a13d1(0xd7)]();else{if(_0x5a82f6[_0x3a13d1(0xf1)](_0x526676[_0x3a13d1(0xed)](),_0x5a82f6[_0x3a13d1(0x10a)]))_0x4948dd[_0x5a82f6['JCQJO']]=_0x526676[_0x3a13d1(0xd7)]();else _0x5a82f6[_0x3a13d1(0xf1)](_0x526676[_0x3a13d1(0xed)](),_0x5a82f6['rPmeG'])&&(_0x4948dd[_0x5a82f6['EuiFR']]=_0x526676[_0x3a13d1(0xd7)]());}}}}[a74_0x2427a3(0x111)](_0x5d9cae){const _0x44174b=a74_0x2427a3;logger[_0x44174b(0xcb)]('onAfterTest:\x20event='+_0x5d9cae);}['onBeforeExecute'](_0x315985){const _0xb5bb64=a74_0x2427a3;logger[_0xb5bb64(0xcb)](_0xb5bb64(0xe2)+_0x315985);}}function a74_0x55c5(_0x15b696,_0x57def7){const _0x4fbda6=a74_0x4fbd();return a74_0x55c5=function(_0x55c512,_0x429d8c){_0x55c512=_0x55c512-0xc6;let _0x13e647=_0x4fbda6[_0x55c512];return _0x13e647;},a74_0x55c5(_0x15b696,_0x57def7);};module[a74_0x2427a3(0xe5)]=AccessibilityModule;
@@ -1 +1 @@
1
- function a73_0x299d(){const _0xa8ea95=['1629753qeyUyv','1067332QtuxDr','673121kLcgZa','ensureBinSession','RXZIn','2445478RXTGgD','50235nAFCWT','1319096mrRkob','\x20with\x20binSessionId=','1|4|2|0|3','name','VfFPg','split','binSessionId','config','DtnCd','uTDDB','Configured\x20module\x20','winstonLogger',',\x20platformIndex=','getModuleName','378SZXkgL','13528098ULaBBV','BaseModule','Missing\x20binSessionId','2wEBhDw','exports','1|2|3|0|4'];a73_0x299d=function(){return _0xa8ea95;};return a73_0x299d();}const a73_0x2f4850=a73_0x3767;(function(_0x57f576,_0x7513e8){const _0xddb3da=a73_0x3767,_0x242719=_0x57f576();while(!![]){try{const _0x5d6f9e=-parseInt(_0xddb3da(0x85))/0x1*(-parseInt(_0xddb3da(0x80))/0x2)+parseInt(_0xddb3da(0x83))/0x3+parseInt(_0xddb3da(0x84))/0x4+parseInt(_0xddb3da(0x89))/0x5*(parseInt(_0xddb3da(0x98))/0x6)+-parseInt(_0xddb3da(0x88))/0x7+parseInt(_0xddb3da(0x8a))/0x8+-parseInt(_0xddb3da(0x99))/0x9;if(_0x5d6f9e===_0x7513e8)break;else _0x242719['push'](_0x242719['shift']());}catch(_0x279f32){_0x242719['push'](_0x242719['shift']());}}}(a73_0x299d,0x68a21));const logger=require('../../../helpers/logger.js')[a73_0x2f4850(0x95)];function a73_0x3767(_0x32d4c3,_0xbe3527){const _0x299de2=a73_0x299d();return a73_0x3767=function(_0x37670a,_0x3357a4){_0x37670a=_0x37670a-0x7f;let _0x31e71e=_0x299de2[_0x37670a];return _0x31e71e;},a73_0x3767(_0x32d4c3,_0xbe3527);}class BaseModule{constructor(){const _0x51d5ac=a73_0x2f4850,_0x374fc4={};_0x374fc4[_0x51d5ac(0x92)]=_0x51d5ac(0x8c),_0x374fc4[_0x51d5ac(0x8e)]=_0x51d5ac(0x9a);const _0x11fb0b=_0x374fc4,_0x36a732=_0x11fb0b[_0x51d5ac(0x92)][_0x51d5ac(0x8f)]('|');let _0x4e6d31=0x0;while(!![]){switch(_0x36a732[_0x4e6d31++]){case'0':this[_0x51d5ac(0x91)]={};continue;case'1':this[_0x51d5ac(0x8d)]=_0x11fb0b['VfFPg'];continue;case'2':this['platformIndex']=0x0;continue;case'3':this['client']=null;continue;case'4':this['binSessionId']=null;continue;}break;}}[a73_0x2f4850(0x86)](){const _0x39d374=a73_0x2f4850,_0x210bdb={};_0x210bdb[_0x39d374(0x93)]=_0x39d374(0x7f);const _0x49ee01=_0x210bdb;if(!this[_0x39d374(0x90)])throw new Error(_0x49ee01[_0x39d374(0x93)]);}[a73_0x2f4850(0x97)](){const _0x364205=a73_0x2f4850;return this[_0x364205(0x8d)];}['configure'](_0x1f3e7b,_0x353996,_0x589031,_0x1987ff={}){const _0x4714cc=a73_0x2f4850,_0x59cd6d={};_0x59cd6d[_0x4714cc(0x87)]=_0x4714cc(0x82);const _0x47c92e=_0x59cd6d,_0x187fc5=_0x47c92e[_0x4714cc(0x87)][_0x4714cc(0x8f)]('|');let _0x4355fc=0x0;while(!![]){switch(_0x187fc5[_0x4355fc++]){case'0':this[_0x4714cc(0x91)]=_0x1987ff;continue;case'1':this['binSessionId']=_0x1f3e7b;continue;case'2':this['platformIndex']=_0x353996;continue;case'3':this['client']=_0x589031;continue;case'4':logger['debug'](_0x4714cc(0x94)+this[_0x4714cc(0x97)]()+_0x4714cc(0x8b)+_0x1f3e7b+_0x4714cc(0x96)+_0x353996);continue;}break;}}}module[a73_0x2f4850(0x81)]=BaseModule;
1
+ const a75_0x355300=a75_0x1c45;(function(_0x43dc1b,_0x2564fd){const _0x5be09e=a75_0x1c45,_0x469986=_0x43dc1b();while(!![]){try{const _0x31d476=parseInt(_0x5be09e(0xfb))/0x1*(parseInt(_0x5be09e(0x10d))/0x2)+parseInt(_0x5be09e(0x10a))/0x3*(parseInt(_0x5be09e(0x101))/0x4)+parseInt(_0x5be09e(0x102))/0x5*(parseInt(_0x5be09e(0x103))/0x6)+parseInt(_0x5be09e(0xfe))/0x7*(parseInt(_0x5be09e(0x112))/0x8)+parseInt(_0x5be09e(0x111))/0x9+parseInt(_0x5be09e(0xfa))/0xa+parseInt(_0x5be09e(0x10e))/0xb*(-parseInt(_0x5be09e(0x109))/0xc);if(_0x31d476===_0x2564fd)break;else _0x469986['push'](_0x469986['shift']());}catch(_0x5d4d1e){_0x469986['push'](_0x469986['shift']());}}}(a75_0x15ed,0x3e216));const logger=require('../../../helpers/logger.js')[a75_0x355300(0xfd)];function a75_0x1c45(_0x23c6ad,_0x189088){const _0x15ed7c=a75_0x15ed();return a75_0x1c45=function(_0x1c4501,_0x6b00c4){_0x1c4501=_0x1c4501-0xf3;let _0x1021cb=_0x15ed7c[_0x1c4501];return _0x1021cb;},a75_0x1c45(_0x23c6ad,_0x189088);}class BaseModule{constructor(){const _0x5053dd=a75_0x355300,_0x2df01f={};_0x2df01f[_0x5053dd(0xf7)]=_0x5053dd(0xf5),_0x2df01f['gCwOF']=_0x5053dd(0x10c);const _0x3512cd=_0x2df01f,_0x5811dc=_0x3512cd[_0x5053dd(0xf7)][_0x5053dd(0x105)]('|');let _0x9dedd7=0x0;while(!![]){switch(_0x5811dc[_0x9dedd7++]){case'0':this[_0x5053dd(0xf8)]=null;continue;case'1':this['config']={};continue;case'2':this[_0x5053dd(0xf6)]=0x0;continue;case'3':this['name']=_0x3512cd[_0x5053dd(0xf4)];continue;case'4':this['client']=null;continue;}break;}}[a75_0x355300(0x100)](){const _0x26ddf7=a75_0x355300,_0x1f9d9c={};_0x1f9d9c['WiDbo']=_0x26ddf7(0xf9);const _0x48f6c4=_0x1f9d9c;if(!this[_0x26ddf7(0xf8)])throw new Error(_0x48f6c4['WiDbo']);}[a75_0x355300(0x104)](){const _0x1b13ae=a75_0x355300;return this[_0x1b13ae(0xf3)];}[a75_0x355300(0x107)](_0x93092c,_0x5cafd5,_0x1a8658,_0x409a9c={}){const _0xbcd5e3=a75_0x355300,_0x5df223={};_0x5df223[_0xbcd5e3(0x10f)]=_0xbcd5e3(0x108);const _0x186f8c=_0x5df223,_0x4a2548=_0x186f8c[_0xbcd5e3(0x10f)][_0xbcd5e3(0x105)]('|');let _0x7f4bfb=0x0;while(!![]){switch(_0x4a2548[_0x7f4bfb++]){case'0':this['config']=_0x409a9c;continue;case'1':this[_0xbcd5e3(0xf6)]=_0x5cafd5;continue;case'2':this[_0xbcd5e3(0xfc)]=_0x1a8658;continue;case'3':this[_0xbcd5e3(0xf8)]=_0x93092c;continue;case'4':logger[_0xbcd5e3(0x110)]('Configured\x20module\x20'+this[_0xbcd5e3(0x104)]()+_0xbcd5e3(0x10b)+_0x93092c+_0xbcd5e3(0x106)+_0x5cafd5);continue;}break;}}}module[a75_0x355300(0xff)]=BaseModule;function a75_0x15ed(){const _0x57b69f=['vYXFz','binSessionId','Missing\x20binSessionId','472660UDtnpU','77McDRld','client','winstonLogger','7IIAuOe','exports','ensureBinSession','4hFMsRN','5WFLcwE','225588CDbErW','getModuleName','split',',\x20platformIndex=','configure','3|1|2|0|4','9176988GPZuRj','15021HfruSI','\x20with\x20binSessionId=','BaseModule','6682sjnfBP','11zZxXqd','CfXMz','debug','2544984JNecDl','3114648mEARVG','name','gCwOF','3|0|2|1|4','platformIndex'];a75_0x15ed=function(){return _0x57b69f;};return a75_0x15ed();}
@@ -1 +1 @@
1
- function a74_0x5780(){const _0x229305=['\x20sync\x20done','exports','15396lcmVVF','onBeforeTest:\x20','976668JRJgRm','onBeforeTest','FRiWC','bind','../../utils/constants.js','ObservabilityModule','../../../helpers/helper.js','1587880jgzeOo','name','SYNC','34311iWZhsQ','91SBpuaN','290878PKeQHe','page','../state/automationFrameworkState.js','CREATE','observabilityConfig','FmXTv','../../../helpers/performance/constants.js','./baseModule','MODULE_NAME','debug','tnPli','info','registerObserver','logger','1569280XYPMLm','POST','onBeforeTest:\x20page\x20is\x20not\x20defined','ObservabilitySync:','../state/hookState.js','aHFYL','542372YEYypO'];a74_0x5780=function(){return _0x229305;};return a74_0x5780();}function a74_0x1f2f(_0xa3670c,_0x869ad3){const _0x57808f=a74_0x5780();return a74_0x1f2f=function(_0x1f2f34,_0x5e8382){_0x1f2f34=_0x1f2f34-0x1b2;let _0x4c6d41=_0x57808f[_0x1f2f34];return _0x4c6d41;},a74_0x1f2f(_0xa3670c,_0x869ad3);}const a74_0x6f7b74=a74_0x1f2f;(function(_0xb4dd4e,_0x4f5814){const _0x25129a=a74_0x1f2f,_0x221f55=_0xb4dd4e();while(!![]){try{const _0x57b7fe=parseInt(_0x25129a(0x1cd))/0x1+parseInt(_0x25129a(0x1bc))/0x2+-parseInt(_0x25129a(0x1cb))/0x3+-parseInt(_0x25129a(0x1c1))/0x4+-parseInt(_0x25129a(0x1b6))/0x5+parseInt(_0x25129a(0x1bf))/0x6*(-parseInt(_0x25129a(0x1cc))/0x7)+parseInt(_0x25129a(0x1c8))/0x8;if(_0x57b7fe===_0x4f5814)break;else _0x221f55['push'](_0x221f55['shift']());}catch(_0x552c03){_0x221f55['push'](_0x221f55['shift']());}}}(a74_0x5780,0x26823));const BaseModule=require(a74_0x6f7b74(0x1d4)),{createClassLogger}=require('../../../helpers/classLogger.js'),AutomationFramework=require('../framework/automationFramework.js'),AutomationFrameworkState=require(a74_0x6f7b74(0x1cf)),HookState=require(a74_0x6f7b74(0x1ba)),{playwrightAnnotate}=require(a74_0x6f7b74(0x1c7)),PerformanceTester=require('../../../helpers/performance/performance-tester.js'),{O11y_EVENTS}=require(a74_0x6f7b74(0x1d3)),constants=require(a74_0x6f7b74(0x1c5));class ObservabilityModule extends BaseModule{['logger']=createClassLogger(a74_0x6f7b74(0x1c6));constructor(_0x2bc9fa){const _0x29837c=a74_0x6f7b74,_0x5f1244={};_0x5f1244['aHFYL']='ObservabilityModule';const _0x2ba0fb=_0x5f1244;super(),this[_0x29837c(0x1c9)]=_0x2ba0fb[_0x29837c(0x1bb)],this[_0x29837c(0x1d1)]=_0x2bc9fa,AutomationFramework[_0x29837c(0x1b4)](AutomationFrameworkState[_0x29837c(0x1d0)],HookState[_0x29837c(0x1b7)],this[_0x29837c(0x1c2)][_0x29837c(0x1c4)](this));}['getModuleName'](){const _0x556c9b=a74_0x6f7b74;return ObservabilityModule[_0x556c9b(0x1d5)];}async[a74_0x6f7b74(0x1c2)](_0x4a4064){const _0x48abd0=a74_0x6f7b74,_0x1c4f71={'bBFod':function(_0x217f7f,_0x852c91){return _0x217f7f+_0x852c91;},'FmXTv':_0x48abd0(0x1b9),'FRiWC':function(_0x364c55,_0x12ef48,_0x29d809,_0x3a8bfa){return _0x364c55(_0x12ef48,_0x29d809,_0x3a8bfa);},'TyBPD':_0x48abd0(0x1d6),'tnPli':_0x48abd0(0x1b8)};if(_0x4a4064[_0x48abd0(0x1ce)]){const _0x3189cb=_0x4a4064['page'],_0xe89c46=Date['now'](),_0x4458d3=_0x1c4f71['bBFod'](_0x1c4f71[_0x48abd0(0x1d2)],_0xe89c46);PerformanceTester['start'](O11y_EVENTS[_0x48abd0(0x1ca)]),await _0x1c4f71[_0x48abd0(0x1c3)](playwrightAnnotate,_0x3189cb,_0x4458d3,_0x1c4f71['TyBPD']),PerformanceTester['end'](O11y_EVENTS[_0x48abd0(0x1ca)]),this[_0x48abd0(0x1b5)][_0x48abd0(0x1b3)](_0x48abd0(0x1c0)+constants['TEST_REPORTING_ANALYTICS']+_0x48abd0(0x1bd));}else this[_0x48abd0(0x1b5)][_0x48abd0(0x1d6)](_0x1c4f71[_0x48abd0(0x1b2)]);}}ObservabilityModule[a74_0x6f7b74(0x1d5)]=a74_0x6f7b74(0x1c6),module[a74_0x6f7b74(0x1be)]=ObservabilityModule;
1
+ const a76_0x4eb0ef=a76_0x1866;(function(_0x5d540a,_0x31d892){const _0x1bb4fd=a76_0x1866,_0xb1b240=_0x5d540a();while(!![]){try{const _0x35cefd=parseInt(_0x1bb4fd(0x165))/0x1+-parseInt(_0x1bb4fd(0x14b))/0x2*(-parseInt(_0x1bb4fd(0x163))/0x3)+parseInt(_0x1bb4fd(0x159))/0x4+-parseInt(_0x1bb4fd(0x151))/0x5*(parseInt(_0x1bb4fd(0x154))/0x6)+parseInt(_0x1bb4fd(0x15a))/0x7+-parseInt(_0x1bb4fd(0x144))/0x8+-parseInt(_0x1bb4fd(0x14c))/0x9*(-parseInt(_0x1bb4fd(0x15e))/0xa);if(_0x35cefd===_0x31d892)break;else _0xb1b240['push'](_0xb1b240['shift']());}catch(_0x5b360b){_0xb1b240['push'](_0xb1b240['shift']());}}}(a76_0x522b,0x6ed85));const BaseModule=require(a76_0x4eb0ef(0x15c)),{createClassLogger}=require(a76_0x4eb0ef(0x147)),AutomationFramework=require(a76_0x4eb0ef(0x167)),AutomationFrameworkState=require('../state/automationFrameworkState.js'),HookState=require(a76_0x4eb0ef(0x158)),{playwrightAnnotate}=require(a76_0x4eb0ef(0x14d)),PerformanceTester=require('../../../helpers/performance/performance-tester.js'),{O11y_EVENTS}=require(a76_0x4eb0ef(0x156)),constants=require(a76_0x4eb0ef(0x161));class ObservabilityModule extends BaseModule{[a76_0x4eb0ef(0x150)]=createClassLogger(a76_0x4eb0ef(0x169));constructor(_0x35be07){const _0x1b9f42=a76_0x4eb0ef,_0xf0358f={};_0xf0358f['nDLay']=_0x1b9f42(0x169);const _0xdab3b9=_0xf0358f;super(),this[_0x1b9f42(0x15b)]=_0xdab3b9[_0x1b9f42(0x143)],this[_0x1b9f42(0x16a)]=_0x35be07,AutomationFramework[_0x1b9f42(0x14a)](AutomationFrameworkState[_0x1b9f42(0x160)],HookState['POST'],this['onBeforeTest'][_0x1b9f42(0x164)](this));}[a76_0x4eb0ef(0x162)](){const _0x11992f=a76_0x4eb0ef;return ObservabilityModule[_0x11992f(0x153)];}async[a76_0x4eb0ef(0x152)](_0x1a15a8){const _0x293cf2=a76_0x4eb0ef,_0x682c12={'JEyWn':function(_0x3bae5a,_0x761b68){return _0x3bae5a+_0x761b68;},'BCNfP':'ObservabilitySync:','PxlrK':function(_0x19658b,_0x2bdf70,_0x14754b,_0x27dee5){return _0x19658b(_0x2bdf70,_0x14754b,_0x27dee5);},'pbaib':_0x293cf2(0x155),'KtMxH':_0x293cf2(0x15f)};if(_0x1a15a8[_0x293cf2(0x14f)]){const _0x4db8e6=_0x1a15a8['page'],_0x4109b9=Date['now'](),_0x218633=_0x682c12[_0x293cf2(0x168)](_0x682c12['BCNfP'],_0x4109b9);PerformanceTester[_0x293cf2(0x149)](O11y_EVENTS[_0x293cf2(0x15d)]),await _0x682c12[_0x293cf2(0x166)](playwrightAnnotate,_0x4db8e6,_0x218633,_0x682c12[_0x293cf2(0x157)]),PerformanceTester['end'](O11y_EVENTS[_0x293cf2(0x15d)]),this[_0x293cf2(0x150)][_0x293cf2(0x142)](_0x293cf2(0x148)+constants[_0x293cf2(0x145)]+'\x20sync\x20done');}else this[_0x293cf2(0x150)]['debug'](_0x682c12[_0x293cf2(0x146)]);}}ObservabilityModule[a76_0x4eb0ef(0x153)]='ObservabilityModule',module[a76_0x4eb0ef(0x14e)]=ObservabilityModule;function a76_0x1866(_0x1ae935,_0x5d8812){const _0x522bd5=a76_0x522b();return a76_0x1866=function(_0x186631,_0x4e8052){_0x186631=_0x186631-0x142;let _0xaf071a=_0x522bd5[_0x186631];return _0xaf071a;},a76_0x1866(_0x1ae935,_0x5d8812);}function a76_0x522b(){const _0x942f79=['onBeforeTest:\x20page\x20is\x20not\x20defined','CREATE','../../utils/constants.js','getModuleName','813EvXfFs','bind','616evKvCW','PxlrK','../framework/automationFramework.js','JEyWn','ObservabilityModule','observabilityConfig','info','nDLay','1394808KUmctI','TEST_REPORTING_ANALYTICS','KtMxH','../../../helpers/classLogger.js','onBeforeTest:\x20','start','registerObserver','1674IVubNy','27YNMdxU','../../../helpers/helper.js','exports','page','logger','55cERPSM','onBeforeTest','MODULE_NAME','10590SNeOym','debug','../../../helpers/performance/constants.js','pbaib','../state/hookState.js','243940GOVeiA','2222815hcegEX','name','./baseModule','SYNC','139380OuRZkY'];a76_0x522b=function(){return _0x942f79;};return a76_0x522b();}
@@ -1 +1 @@
1
- function a75_0x3d67(){const _0x33eac0=['2734444auVcTm','onDispatchExecute:\x20Playwright\x20sessionId:\x20','1004868zWmxed','KEY_CONTEXT_OBJECT','from','../../../helpers/helper','getId','../../../helpers/performance/constants.js','PLAYWRIGHT','name','HfBeq','inspect','registerObserver','testId','KEY_TEST_ID','MGtwq','playwrightVersion','1170VTbsXp','6323527spFWKz','HeONh','bsParams','toString','bdKCh','error','testFrameworkState','Ofwve','getProcessId','params','FRWct','getInstance','parse','126hfyQtO','\x20||\x20','./baseModule','SYMWw','Error\x20in\x20onDispatchExecute:\x20','OchUE','browser','instance','logger','BkdNi','isPlaywright','page','isBrowserstackInfra','../TestInfo.js','arguments','onAfterDriverCreate:\x20Setting\x20context\x20object','base64','getModuleName','getThreadId','pageObject','qUtOW','SESSION_STATUS','uLkhG','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','POST','automationSession','CREATE','mJuqR','getTestUUID','KEY_PLATFORM_INDEX','IjfTb','info','isFalse','PlaywrightDriverModule','markSessionName:\x20Skipping\x20session\x20name\x20marking','context','XZdVo','KEY_PLATFORM_DETAILS','LRyjh','testFrameworkVersion','KEY_TEST_FRAMEWORK_NAME','5tNTiRk','bStackParams','mgjLp','driverInit','platformIndex','workerInfo','2208052OHcfdZ','PRE','testData\x20from\x20onAfterTest:\x20','RilVe','testInfo','hubUrl','PLAYWRIGHT_DISPATCH','../../../helpers/performance/performance-tester.js','PLeQc','ukMum','getConfig','setState','1.51.0','with\x20','end','KEY_PAGE_OBJECT','onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','onBeforeDriverCreate','start','EXECUTE','../../utils/constants','WUHXA','SESSION_NAME','browserVersion','WWtJb','Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','biQhm','shouldSkipSessionStatus','browserObject','wSfvc','../framework/constants/testFrameworkConstants.js','exports','status','Playwright','reason','split','../browserstackCLI.js','markSessionName','QSmCW','onAfterDriverCreate:\x20Setting\x20browser\x20object','cItnY','platformDetails','../state/testFrameworkState','testUuid','KEY_TEST_FRAMEWORK_VERSION','executionContext','contextObject','Automation\x20onAfterTest:\x20Test\x20status:\x20','onAfterDriverCreate','errors','OvFEB','onPlaywrightDispatch','testHookState','ecgUo','SmbqV','markSessionStatus','debug','Error\x20in\x20onBeforeDriverCreate:\x20','1.52.999','onBeforeDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','action','capabilities','../../../helpers/helper.js','_test','KEY_CAPABILITIES','\x20failure\x20reason:\x20','MODULE_NAME','testFrameworkName','../state/automationFrameworkState.js','SiXSV','../framework/automationFramework.js','length','../state/hookState.js','stringify','message','onAfterTest\x20CBTSession\x20payload:\x20','4291911FRztLS','platforms','__workerDetails','getCapabilities','546856ghXVPb','launchcaps','wmUno','RBpUs','Error\x20in\x20onAfterDriverCreate:\x20','gtLLB','Automation\x20onAfterTest:\x20Setting\x20session\x20status\x20for\x20testId:\x20','Ocecx','sessionId','onAfterTest','format','../../../helpers/classLogger.js','230593jOnAeS','onDispatchExecute:\x20Playwright\x20driver\x20is\x20executing\x20tests\x20','bind','fSnmc','KEY_SESSION_ID','setSessionStatus','onAfterTest\x20CBTSession\x20complete\x20for\x20testId:\x20','tpoPR','markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','Automation\x20onAfterTest:\x20Test\x20completed','onAfterDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','wEqir','passed','6|5|7|9|1|8|10|3|4|0|2','util','testId:\x20','getState','getTrackedInstance','KEY_HUB_URL','testSessionEvent','1PeCkAX','markSessionStatus:\x20Skipping\x20session\x20status\x20marking'];a75_0x3d67=function(){return _0x33eac0;};return a75_0x3d67();}const a75_0x3ca9e0=a75_0x20d1;function a75_0x20d1(_0x1089ec,_0x273983){const _0x3d6715=a75_0x3d67();return a75_0x20d1=function(_0x20d162,_0x5ec3b3){_0x20d162=_0x20d162-0x1b2;let _0x144069=_0x3d6715[_0x20d162];return _0x144069;},a75_0x20d1(_0x1089ec,_0x273983);}(function(_0x4f8fac,_0x1bed2c){const _0x329f09=a75_0x20d1,_0xb88fe0=_0x4f8fac();while(!![]){try{const _0x554937=-parseInt(_0x329f09(0x1ce))/0x1*(-parseInt(_0x329f09(0x1d0))/0x2)+parseInt(_0x329f09(0x26a))/0x3+parseInt(_0x329f09(0x21e))/0x4+-parseInt(_0x329f09(0x218))/0x5*(parseInt(_0x329f09(0x1d2))/0x6)+-parseInt(_0x329f09(0x1e2))/0x7+parseInt(_0x329f09(0x26e))/0x8*(parseInt(_0x329f09(0x1ef))/0x9)+parseInt(_0x329f09(0x1e1))/0xa*(-parseInt(_0x329f09(0x1ba))/0xb);if(_0x554937===_0x1bed2c)break;else _0xb88fe0['push'](_0xb88fe0['shift']());}catch(_0xfa3250){_0xb88fe0['push'](_0xb88fe0['shift']());}}}(a75_0x3d67,0xbf400));const util=require(a75_0x3ca9e0(0x1c8)),BaseModule=require(a75_0x3ca9e0(0x1f1)),{createClassLogger}=require(a75_0x3ca9e0(0x1b9)),{getFrameworkVersion}=require('../../../helpers/test-observability/utils'),helper=require(a75_0x3ca9e0(0x1d5)),{FRAMEWORKS}=require(a75_0x3ca9e0(0x232)),AutomationFramework=require(a75_0x3ca9e0(0x264)),AutomationFrameworkState=require(a75_0x3ca9e0(0x262)),HookState=require(a75_0x3ca9e0(0x266)),{playwrightBstackJsExecutor,nestedKeyValue,playwrightAnnotate,getPlaywrightStatus,getPlaywrightSessionName}=require('../../../helpers/helper.js'),CLIUtils=require('../cliUtils.js'),BrowserstackCLI=require(a75_0x3ca9e0(0x242)),GrpcClient=require('../grpcClient.js'),PerformanceTester=require(a75_0x3ca9e0(0x225)),PerformanceEvents=require(a75_0x3ca9e0(0x1d7))['AUTOMATE_EVENTS'],TestInfo=require(a75_0x3ca9e0(0x1fc)),{getPlaywrightProvider}=require(a75_0x3ca9e0(0x25c)),TestFrameworkConstants=require(a75_0x3ca9e0(0x23c)),TestFrameworkState=require(a75_0x3ca9e0(0x248));class PlaywrightDriverModule extends BaseModule{static ['KEY_BROWSER_OBJECT']=a75_0x3ca9e0(0x23a);static [a75_0x3ca9e0(0x1d3)]=a75_0x3ca9e0(0x24c);static [a75_0x3ca9e0(0x22d)]=a75_0x3ca9e0(0x202);static [a75_0x3ca9e0(0x1be)]=a75_0x3ca9e0(0x1b6);static [a75_0x3ca9e0(0x20c)]=a75_0x3ca9e0(0x21c);static [a75_0x3ca9e0(0x25e)]='capabilities';static [a75_0x3ca9e0(0x1cc)]=a75_0x3ca9e0(0x223);static [a75_0x3ca9e0(0x214)]='platformDetails';static [a75_0x3ca9e0(0x1de)]=a75_0x3ca9e0(0x1dd);[a75_0x3ca9e0(0x1f7)]=createClassLogger(a75_0x3ca9e0(0x210));constructor(){const _0x4dc52a=a75_0x3ca9e0,_0x1c44b1={};_0x1c44b1[_0x4dc52a(0x1e3)]=_0x4dc52a(0x1c7),_0x1c44b1[_0x4dc52a(0x205)]=_0x4dc52a(0x210);const _0x552c14=_0x1c44b1,_0x29f62b=_0x552c14[_0x4dc52a(0x1e3)]['split']('|');let _0x3f1c90=0x0;while(!![]){switch(_0x29f62b[_0x3f1c90++]){case'0':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x4dc52a(0x224)],HookState[_0x4dc52a(0x207)],this[_0x4dc52a(0x251)][_0x4dc52a(0x1bc)](this));continue;case'1':this[_0x4dc52a(0x235)]=null;continue;case'2':AutomationFramework[_0x4dc52a(0x1dc)](AutomationFrameworkState[_0x4dc52a(0x231)],HookState[_0x4dc52a(0x207)],this[_0x4dc52a(0x1b7)][_0x4dc52a(0x1bc)](this));continue;case'3':AutomationFramework[_0x4dc52a(0x1dc)](AutomationFrameworkState[_0x4dc52a(0x209)],HookState[_0x4dc52a(0x21f)],this[_0x4dc52a(0x22f)][_0x4dc52a(0x1bc)](this));continue;case'4':AutomationFramework[_0x4dc52a(0x1dc)](AutomationFrameworkState[_0x4dc52a(0x209)],HookState['POST'],this[_0x4dc52a(0x24e)][_0x4dc52a(0x1bc)](this));continue;case'5':this[_0x4dc52a(0x1d9)]=_0x552c14['uLkhG'];continue;case'6':super();continue;case'7':this[_0x4dc52a(0x1e0)]=null;continue;case'8':this[_0x4dc52a(0x26b)]=[];continue;case'9':this['browserName']=null;continue;case'10':this['testRunId']=null;continue;}break;}}[a75_0x3ca9e0(0x200)](){return PlaywrightDriverModule['MODULE_NAME'];}async[a75_0x3ca9e0(0x22f)](_0x55908a){const _0x15426c=a75_0x3ca9e0,_0x5d8a11={};_0x5d8a11['WWtJb']=_0x15426c(0x259);const _0x2e79f1=_0x5d8a11;try{this[_0x15426c(0x1f7)][_0x15426c(0x256)](_0x2e79f1[_0x15426c(0x236)]);const _0x252057=_0x55908a[_0x15426c(0x26f)],_0x58da8e=_0x55908a['hubUrl'];AutomationFramework['setState'](_0x55908a[_0x15426c(0x1f6)],PlaywrightDriverModule[_0x15426c(0x25e)],_0x252057),AutomationFramework[_0x15426c(0x229)](_0x55908a[_0x15426c(0x1f6)],PlaywrightDriverModule[_0x15426c(0x1cc)],_0x58da8e);}catch(_0x1683ed){this[_0x15426c(0x1f7)][_0x15426c(0x1e7)](_0x15426c(0x257)+util['format'](_0x1683ed));}}async[a75_0x3ca9e0(0x251)](_0x45a106){const _0x108568=a75_0x3ca9e0,_0x5372e5={};_0x5372e5['SiXSV']=function(_0x20ecfa,_0x4e8290){return _0x20ecfa||_0x4e8290;};const _0x4fbf43=_0x5372e5;try{const _0x10b26a=_0x45a106?.[_0x108568(0x268)]&&_0x45a106?.[_0x108568(0x268)]?.[_0x108568(0x1eb)]&&_0x45a106?.['message']?.[_0x108568(0x1eb)]?.[_0x108568(0x1e4)],_0x1e3d38=_0x45a106?.['message']&&_0x45a106?.[_0x108568(0x268)]?.[_0x108568(0x219)];if(_0x4fbf43[_0x108568(0x263)](_0x10b26a,_0x1e3d38)){this['logger'][_0x108568(0x256)](_0x108568(0x1bb)+util[_0x108568(0x1db)](_0x10b26a)+_0x108568(0x1f0)+util['inspect'](_0x1e3d38));const _0x1c3961=_0x45a106?.['instance'],_0x4268d1=_0x10b26a?.[_0x108568(0x1b6)]||_0x1e3d38?.[_0x108568(0x1b6)],_0x4072a3=_0x10b26a?.[_0x108568(0x247)]||_0x1e3d38?.[_0x108568(0x247)];_0x4268d1&&(this[_0x108568(0x1f7)][_0x108568(0x256)](_0x108568(0x1d1)+_0x4268d1),AutomationFramework['setState'](_0x1c3961,PlaywrightDriverModule['KEY_SESSION_ID'],_0x4268d1)),_0x4072a3&&(this[_0x108568(0x1f7)][_0x108568(0x256)]('onDispatchExecute:\x20Playwright\x20platform\x20details:\x20'+util[_0x108568(0x1db)](_0x4072a3)),AutomationFramework[_0x108568(0x229)](_0x1c3961,PlaywrightDriverModule['KEY_PLATFORM_INDEX'],_0x4072a3));}}catch(_0x336099){this[_0x108568(0x1f7)]['error'](_0x108568(0x1f3)+util['format'](_0x336099));}}async[a75_0x3ca9e0(0x24e)](_0x4287fb){const _0xc9a936=a75_0x3ca9e0,_0x439a9e={'QWKLk':_0xc9a936(0x1c4),'biQhm':function(_0x5a1d2a,_0x13f5a5){return _0x5a1d2a(_0x13f5a5);},'HfBeq':'onAfterDriverCreate:\x20Setting\x20page\x20object','Ofwve':_0xc9a936(0x22e),'LVwil':_0xc9a936(0x1fe),'mJuqR':_0xc9a936(0x245),'SmbqV':_0xc9a936(0x1ff)};try{this[_0xc9a936(0x1f7)]['debug'](_0x439a9e['QWKLk']);const _0x589b23=_0x4287fb[_0xc9a936(0x1f6)];this['playwrightVersion']=_0x439a9e[_0xc9a936(0x238)](getFrameworkVersion,FRAMEWORKS[_0xc9a936(0x1d8)]);if(_0x4287fb[_0xc9a936(0x1fa)]){this[_0xc9a936(0x1f7)]['debug'](_0x439a9e[_0xc9a936(0x1da)]),AutomationFramework[_0xc9a936(0x229)](_0x589b23,PlaywrightDriverModule[_0xc9a936(0x22d)],_0x4287fb['page']);if(_0x4287fb[_0xc9a936(0x222)]){this[_0xc9a936(0x1f7)][_0xc9a936(0x256)](_0x439a9e[_0xc9a936(0x1e9)]);const _0xedbf81=_0x4287fb[_0xc9a936(0x222)]?.[_0xc9a936(0x25d)]?.['id']||_0x4287fb[_0xc9a936(0x222)]?.[_0xc9a936(0x1dd)];AutomationFramework[_0xc9a936(0x229)](_0x589b23,PlaywrightDriverModule[_0xc9a936(0x1de)],_0xedbf81),await this[_0xc9a936(0x243)](_0x4287fb[_0xc9a936(0x222)]);}}_0x4287fb[_0xc9a936(0x212)]&&(this[_0xc9a936(0x1f7)][_0xc9a936(0x256)](_0x439a9e['LVwil']),AutomationFramework[_0xc9a936(0x229)](_0x589b23,PlaywrightDriverModule['KEY_CONTEXT_OBJECT'],_0x4287fb[_0xc9a936(0x212)]));if(_0x4287fb[_0xc9a936(0x1f5)]){this[_0xc9a936(0x1f7)][_0xc9a936(0x256)](_0x439a9e[_0xc9a936(0x20a)]);const _0x21384e=global[_0xc9a936(0x26c)][_0xc9a936(0x21d)]['parallelIndex'];AutomationFramework[_0xc9a936(0x229)](_0x589b23,PlaywrightDriverModule['KEY_BROWSER_OBJECT'],_0x4287fb[_0xc9a936(0x1f5)]),AutomationFramework['setState'](_0x589b23,PlaywrightDriverModule[_0xc9a936(0x20c)],_0x21384e);const _0x2e82f3={};_0x2e82f3[_0xc9a936(0x1f9)]=!![];const _0xaa5a05=Buffer[_0xc9a936(0x1d4)](JSON[_0xc9a936(0x267)](_0x2e82f3)[_0xc9a936(0x1e5)](_0x439a9e[_0xc9a936(0x254)])),_0x44bd12=await GrpcClient[_0xc9a936(0x1ed)]()[_0xc9a936(0x21b)]({'platformIndex':_0x21384e,'ref':_0x589b23['getRef'](),'userInputParams':_0xaa5a05});helper[_0xc9a936(0x20f)](helper[_0xc9a936(0x1fb)]())&&AutomationFramework[_0xc9a936(0x229)](_0x589b23,PlaywrightDriverModule['KEY_CAPABILITIES'],JSON[_0xc9a936(0x1ee)](Buffer[_0xc9a936(0x1d4)](_0x44bd12[_0xc9a936(0x26d)](),_0x439a9e[_0xc9a936(0x254)])[_0xc9a936(0x1e5)]()));}}catch(_0x200138){this[_0xc9a936(0x1f7)]['error'](_0xc9a936(0x1b2)+util[_0xc9a936(0x1b8)](_0x200138));}}async[a75_0x3ca9e0(0x1b7)](_0x15202c){const _0x412afe=a75_0x3ca9e0,_0x340884={'RBpUs':_0x412afe(0x1c3),'OvFEB':_0x412afe(0x237),'mgjLp':function(_0x249a43,_0x4dbe62){return _0x249a43(_0x4dbe62);},'SYMWw':function(_0x5c82db,_0x1ef4dd,_0xaf1c22){return _0x5c82db(_0x1ef4dd,_0xaf1c22);},'RilVe':_0x412afe(0x24f),'ecgUo':function(_0x51fd6f,_0xe93452){return _0x51fd6f>_0xe93452;},'PLeQc':function(_0x15eff4,_0x50f014){return _0x15eff4+_0x50f014;},'LGCXQ':_0x412afe(0x1c9),'ukMum':function(_0x3c7acf,_0x17d770){return _0x3c7acf+_0x17d770;},'Arlci':_0x412afe(0x220),'gtLLB':_0x412afe(0x23f),'FRWct':_0x412afe(0x258),'eUILO':function(_0x3f3b8c,_0x5cebb0){return _0x3f3b8c(_0x5cebb0);},'cItnY':_0x412afe(0x22a),'fSnmc':_0x412afe(0x1ff),'tpoPR':_0x412afe(0x206)};this[_0x412afe(0x1f7)]['debug'](_0x340884[_0x412afe(0x271)]);const _0x378a30=_0x15202c[_0x412afe(0x1f6)];if(!_0x378a30){this['logger'][_0x412afe(0x256)](_0x340884[_0x412afe(0x250)]);return;}const _0x179341=_0x15202c[_0x412afe(0x222)],_0x571ee5=_0x179341['id']||_0x15202c[_0x412afe(0x222)]?.[_0x412afe(0x25d)]?.['id']||_0x15202c[_0x412afe(0x222)]?.[_0x412afe(0x1dd)],_0x40164f=_0x179341[_0x412afe(0x23e)],_0x436f63=_0x340884['mgjLp'](getPlaywrightStatus,_0x40164f),_0x2553ea=_0x340884[_0x412afe(0x21a)](getPlaywrightSessionName,_0x179341),_0x9a5dd1=_0x340884[_0x412afe(0x1f2)](nestedKeyValue,_0x179341,[_0x340884[_0x412afe(0x221)]]);let _0x314f6a=null;_0x9a5dd1&&_0x340884[_0x412afe(0x253)](_0x9a5dd1[_0x412afe(0x265)],0x0)&&(_0x314f6a=_0x9a5dd1[0x0][_0x412afe(0x268)]);this[_0x412afe(0x1f7)]['debug'](_0x412afe(0x24d)+_0x436f63+_0x412afe(0x25f)+_0x314f6a);const _0xc8f9ca=TestInfo[_0x412afe(0x20b)](_0x571ee5),_0x2c5a66=TestInfo['getTestDetails'](_0x571ee5);this['logger'][_0x412afe(0x20e)](_0x340884[_0x412afe(0x226)](_0x340884['LGCXQ'],_0x571ee5)),this[_0x412afe(0x1f7)][_0x412afe(0x20e)](_0x340884[_0x412afe(0x227)](_0x340884['Arlci'],util['inspect'](_0x2c5a66)));const _0x22ebba=AutomationFramework['getState'](_0x378a30,PlaywrightDriverModule[_0x412afe(0x20c)])||0x0,_0x4fe865=_0x2c5a66[TestFrameworkConstants[_0x412afe(0x217)]]||_0x340884[_0x412afe(0x1b3)],_0x4a49cd=_0x2c5a66[TestFrameworkConstants[_0x412afe(0x24a)]]||_0x340884[_0x412afe(0x1ec)],_0x1cf871=TestFrameworkState['TEST'][_0x412afe(0x1e5)]()['split']('.')[0x1],_0x5bc56c=HookState[_0x412afe(0x207)]['toString']()[_0x412afe(0x241)]('.')[0x1],_0xa560e9=_0x378a30['getContext'](),_0x54e84e=AutomationFramework[_0x412afe(0x1ca)](_0x378a30,PlaywrightDriverModule[_0x412afe(0x1cc)],''),_0x49c753={'provider':_0x340884['eUILO'](getPlaywrightProvider,_0x54e84e),'frameworkName':_0x340884['gtLLB'],'frameworkVersion':_0x340884[_0x412afe(0x246)],'frameworkSessionId':AutomationFramework[_0x412afe(0x1ca)](_0x378a30,PlaywrightDriverModule['KEY_SESSION_ID'],''),'ref':_0x378a30['getRef'](),'hubUrl':_0x54e84e};let _0x2a49df=AutomationFramework['getState'](_0x378a30,PlaywrightDriverModule[_0x412afe(0x25e)],{});_0x2a49df=Buffer[_0x412afe(0x1d4)](JSON[_0x412afe(0x267)](_0x2a49df))['toString'](_0x340884[_0x412afe(0x1bd)]);const _0x13ba22={'hash':_0xa560e9[_0x412afe(0x1d6)](),'threadId':_0xa560e9[_0x412afe(0x201)]()[_0x412afe(0x1e5)](),'processId':_0xa560e9[_0x412afe(0x1ea)]()[_0x412afe(0x1e5)]()},_0x5a8cac={};_0x5a8cac['platformIndex']=_0x22ebba,_0x5a8cac[_0x412afe(0x261)]=_0x4fe865,_0x5a8cac[_0x412afe(0x216)]=_0x4a49cd,_0x5a8cac[_0x412afe(0x1e8)]=_0x1cf871,_0x5a8cac[_0x412afe(0x252)]=_0x5bc56c,_0x5a8cac[_0x412afe(0x249)]=_0xc8f9ca,_0x5a8cac[_0x412afe(0x208)]=_0x49c753,_0x5a8cac[_0x412afe(0x25b)]=_0x2a49df,_0x5a8cac[_0x412afe(0x24b)]=_0x13ba22;const _0x568215=_0x5a8cac;this[_0x412afe(0x1f7)][_0x412afe(0x256)](_0x412afe(0x269)+util[_0x412afe(0x1b8)](_0x568215)),await GrpcClient['getInstance']()[_0x412afe(0x1cd)](_0x568215),this[_0x412afe(0x1f7)][_0x412afe(0x256)](_0x412afe(0x1c0)+_0x571ee5);if(!_0x436f63){this['logger'][_0x412afe(0x256)](_0x340884[_0x412afe(0x1c1)],_0x40164f[_0x412afe(0x23e)]);return;}this['logger'][_0x412afe(0x256)](_0x412afe(0x1b4)+_0x571ee5),await this[_0x412afe(0x255)](_0x378a30,_0x2553ea,_0x436f63,_0x314f6a);}async[a75_0x3ca9e0(0x255)](_0x3311a,_0x41efb1,_0x793ae2,_0x3c6b10){const _0x7b8775=a75_0x3ca9e0,_0x10aafa={'wSfvc':_0x7b8775(0x1cf),'IjfTb':_0x7b8775(0x1c2),'OchUE':'markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','wmUno':_0x7b8775(0x206),'QSmCW':_0x7b8775(0x1bf),'WUHXA':_0x7b8775(0x240),'xqBRq':'Session','TaHaw':function(_0x15894e,_0x3c2a68){return _0x15894e===_0x3c2a68;},'MVxIm':_0x7b8775(0x1c6),'BkdNi':_0x7b8775(0x20e),'Ocecx':_0x7b8775(0x1e7),'XZdVo':function(_0xe90104,_0x270a99,_0x3ad200,_0x4c998d){return _0xe90104(_0x270a99,_0x3ad200,_0x4c998d);},'bdKCh':'markSessionStatus:\x20Marking\x20session\x20status','qUtOW':function(_0x2961e8,_0xb1f1cf,_0x237395){return _0x2961e8(_0xb1f1cf,_0x237395);}};if(CLIUtils[_0x7b8775(0x239)](BrowserstackCLI[_0x7b8775(0x1ed)]()[_0x7b8775(0x228)]())){this[_0x7b8775(0x1f7)][_0x7b8775(0x256)](_0x10aafa[_0x7b8775(0x23b)]);return;}const _0x4d940a=_0x3311a;if(!_0x4d940a){this[_0x7b8775(0x1f7)][_0x7b8775(0x256)](_0x10aafa[_0x7b8775(0x20d)]);return;}const _0x3885a1=AutomationFramework[_0x7b8775(0x1ca)](_0x4d940a,PlaywrightDriverModule[_0x7b8775(0x22d)]);if(!_0x3885a1){this[_0x7b8775(0x1f7)][_0x7b8775(0x256)](_0x10aafa[_0x7b8775(0x1f4)]);return;}const _0x19ad84=_0x793ae2;if(!_0x19ad84){this['logger'][_0x7b8775(0x256)](_0x10aafa[_0x7b8775(0x270)],_0x19ad84);return;}const _0x3da8b2={};_0x3da8b2[_0x7b8775(0x23e)]=_0x19ad84;const _0x24326e={};_0x24326e[_0x7b8775(0x25a)]=_0x10aafa[_0x7b8775(0x244)],_0x24326e[_0x7b8775(0x1fd)]=_0x3da8b2;const _0x4efef1=_0x24326e;_0x3c6b10&&(_0x4efef1[_0x7b8775(0x1fd)][_0x10aafa[_0x7b8775(0x233)]]=_0x3c6b10);const _0x3d7364=(_0x41efb1?_0x41efb1:_0x10aafa['xqBRq'])+'\x20'+_0x19ad84+'\x20'+(_0x3c6b10?_0x7b8775(0x22b)+_0x3c6b10:''),_0x443e03=_0x10aafa['TaHaw'](_0x19ad84,_0x10aafa['MVxIm'])?_0x10aafa[_0x7b8775(0x1f8)]:_0x10aafa[_0x7b8775(0x1b5)];await _0x10aafa[_0x7b8775(0x213)](playwrightAnnotate,_0x3885a1,_0x3d7364,_0x443e03),PerformanceTester[_0x7b8775(0x230)](PerformanceEvents[_0x7b8775(0x204)]),this['logger'][_0x7b8775(0x256)](_0x10aafa[_0x7b8775(0x1e6)]),await _0x10aafa[_0x7b8775(0x203)](playwrightBstackJsExecutor,_0x3885a1,_0x4efef1),PerformanceTester['end'](PerformanceEvents['SESSION_STATUS']);}async['markSessionName'](_0x1f433c){const _0x21ff45=a75_0x3ca9e0,_0x1a45c8={'hgVEY':_0x21ff45(0x211),'MGtwq':'setSessionName','wEqir':function(_0x41ff6f,_0x7d6444){return _0x41ff6f(_0x7d6444);},'LRyjh':function(_0x3be59b,_0x1b82af,_0x47ada3){return _0x3be59b(_0x1b82af,_0x47ada3);}};try{if(CLIUtils['shouldSkipSessionName'](BrowserstackCLI[_0x21ff45(0x1ed)]()[_0x21ff45(0x228)]())){this['logger'][_0x21ff45(0x256)](_0x1a45c8['hgVEY']);return;}const _0x322176=AutomationFramework[_0x21ff45(0x1ca)](AutomationFramework[_0x21ff45(0x1cb)](),PlaywrightDriverModule['KEY_PAGE_OBJECT']),_0x1fe366={'action':_0x1a45c8[_0x21ff45(0x1df)],'arguments':{'name':_0x1a45c8[_0x21ff45(0x1c5)](getPlaywrightSessionName,_0x1f433c)}};PerformanceTester[_0x21ff45(0x230)](PerformanceEvents[_0x21ff45(0x234)]),await _0x1a45c8[_0x21ff45(0x215)](playwrightBstackJsExecutor,_0x322176,_0x1fe366),PerformanceTester[_0x21ff45(0x22c)](PerformanceEvents['SESSION_NAME']);}catch(_0xe439ae){PerformanceTester[_0x21ff45(0x22c)](PerformanceEvents[_0x21ff45(0x234)],![],util[_0x21ff45(0x1b8)](_0xe439ae)),this[_0x21ff45(0x1f7)][_0x21ff45(0x1e7)]('Error\x20in\x20markSessionName:\x20'+util['format'](_0xe439ae));}}}PlaywrightDriverModule[a75_0x3ca9e0(0x260)]=a75_0x3ca9e0(0x210),module[a75_0x3ca9e0(0x23d)]=PlaywrightDriverModule;
1
+ function a77_0x55b9(){const _0x373068=['hROMs','page','onAfterDriverCreate','markSessionStatus:\x20Page\x20object\x20is\x20not\x20available','CREATE','Session','playwrightVersion','KEY_CONTEXT_OBJECT','bind','getRef','../../utils/constants','length','OhmPW','xAQyJ','7XdHmpB','./baseModule','testUuid','action','KEY_TEST_ID','../../../helpers/helper','error','onDispatchExecute:\x20Playwright\x20platform\x20platformIndex:\x20','SESSION_NAME','testFrameworkName','aGSeF','setSessionStatus','passed','697900CerPnT','hubUrl','getModuleName','\x20||\x20','inspect','errors','getContext','onAfterDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','PLAYWRIGHT_DISPATCH','tiqjq','logger','kIbhF','platformDetails','end','shouldSkipSessionName','IqpvR','params','SESSION_STATUS','start','PRE','PLAYWRIGHT','browser','isPlaywright','onDispatchExecute:\x20Playwright\x20driver\x20is\x20executing\x20tests\x20','9822972Eriwzu','qkSbY','getTestUUID','onBeforeDriverCreate:\x20Playwright\x20driver\x20is\x20about\x20to\x20be\x20created','vvHoP','instance','AUTOMATE_EVENTS','markSessionStatus:\x20Automation\x20instance\x20is\x20not\x20available','onAfterDriverCreate:\x20Setting\x20context\x20object','GOjpB','1.51.0','Error\x20in\x20onDispatchExecute:\x20','pageObject','../framework/constants/testFrameworkConstants.js','RLLze','Automation\x20onAfterTest:\x20Test\x20completed','AtjYy','testId','message','KEY_HUB_URL','from','PlaywrightDriverModule','81048rfFLTx','txIou','getThreadId','MODULE_NAME','Slzye','vXhGg','93626WZIdJS','toString','KEY_SESSION_ID','jYodH','teoTh','onAfterDriverCreate:\x20Setting\x20page\x20object','registerObserver','KEY_BROWSER_OBJECT','TUMUY','markSessionName:\x20Skipping\x20session\x20name\x20marking','automationSession','4|8|7|6|9|1|5|0|2|3|10','UVmMh','orEnM','POST','Error\x20in\x20onBeforeDriverCreate:\x20','5618041eeYhkf','launchcaps','onBeforeDriverCreate','driverInit','keys','browserObject','65Drrlyx','reason','info','KEY_TEST_FRAMEWORK_VERSION','getConfig','arguments','../state/testFrameworkState','KEY_CAPABILITIES','hvsgH','sessionId','base64','DOxjx','Automation\x20onAfterTest:\x20Setting\x20session\x20status\x20for\x20testId:\x20','onAfterDriverCreate:\x20Setting\x20browser\x20object','1.52.999','status','gherkinDocument','../framework/automationFramework.js','markSessionName','TEST','getState','onPlaywrightDispatch','XmlNf','shouldSkipSessionStatus','workerInfo','format','Automation\x20onAfterTest:\x20Automation\x20instance\x20is\x20not\x20available','../state/automationFrameworkState.js','1217203jBBCJo','executionContext','cKLNJ','onAfterDriverCreate:\x20Setting\x20Session\x20Name\x20from\x20testInfo','_test','18500BAkEin','util','1413MttGyp','INAxt','bvBgP','DLJKq','KWxvs','pweeI','debug','isFalse','testHookState','yUbKo','tMkqe','__workerDetails','platformIndex','setState','Unable\x20to\x20mark\x20session\x20status,\x20received\x20status:\x20','../../../helpers/helper.js','stringify','markSessionStatus','96xgyHXM','name','KEY_PLATFORM_INDEX','onAfterTest\x20CBTSession\x20payload:\x20','onAfterTest','capabilities','gUFjl','Ekske','../state/hookState.js','../browserstackCLI.js','split','isBrowserstackInfra','RbwiP','getInstance','testData\x20from\x20onAfterTest:\x20','context','parse','EXECUTE','pickle','parallelIndex','nrhJt','../grpcClient.js','Error\x20in\x20onAfterDriverCreate:\x20','markSessionStatus:\x20Skipping\x20session\x20status\x20marking','testInfo','KEY_PAGE_OBJECT','bQgaZ','../cliUtils.js','testFrameworkState','contextObject','getTestDetails','KEY_PLATFORM_DETAILS'];a77_0x55b9=function(){return _0x373068;};return a77_0x55b9();}function a77_0x3416(_0x358772,_0x551695){const _0x55b922=a77_0x55b9();return a77_0x3416=function(_0x341679,_0x2141e8){_0x341679=_0x341679-0x192;let _0x592a6c=_0x55b922[_0x341679];return _0x592a6c;},a77_0x3416(_0x358772,_0x551695);}const a77_0xfdc17c=a77_0x3416;(function(_0x2772c5,_0x506b8b){const _0x130367=a77_0x3416,_0x46faed=_0x2772c5();while(!![]){try{const _0x104d0f=-parseInt(_0x130367(0x237))/0x1+parseInt(_0x130367(0x205))/0x2*(parseInt(_0x130367(0x196))/0x3)+-parseInt(_0x130367(0x23c))/0x4*(-parseInt(_0x130367(0x21b))/0x5)+parseInt(_0x130367(0x1e9))/0x6*(parseInt(_0x130367(0x1c4))/0x7)+-parseInt(_0x130367(0x1ff))/0x8*(parseInt(_0x130367(0x23e))/0x9)+parseInt(_0x130367(0x1d1))/0xa+parseInt(_0x130367(0x215))/0xb;if(_0x104d0f===_0x506b8b)break;else _0x46faed['push'](_0x46faed['shift']());}catch(_0x4ff6a4){_0x46faed['push'](_0x46faed['shift']());}}}(a77_0x55b9,0xec576));const util=require(a77_0xfdc17c(0x23d)),BaseModule=require(a77_0xfdc17c(0x1c5)),{createClassLogger}=require('../../../helpers/classLogger.js'),{getFrameworkVersion}=require('../../../helpers/test-observability/utils'),helper=require(a77_0xfdc17c(0x1c9)),{FRAMEWORKS}=require(a77_0xfdc17c(0x1c0)),AutomationFramework=require(a77_0xfdc17c(0x22c)),AutomationFrameworkState=require(a77_0xfdc17c(0x236)),HookState=require(a77_0xfdc17c(0x19e)),{playwrightBstackJsExecutor,nestedKeyValue,playwrightAnnotate,getPlaywrightStatus,getPlaywrightSessionName,getCucumberSessionName}=require(a77_0xfdc17c(0x193)),CLIUtils=require(a77_0xfdc17c(0x1b1)),BrowserstackCLI=require(a77_0xfdc17c(0x19f)),GrpcClient=require(a77_0xfdc17c(0x1ab)),PerformanceTester=require('../../../helpers/performance/performance-tester.js'),PerformanceEvents=require('../../../helpers/performance/constants.js')[a77_0xfdc17c(0x1ef)],TestInfo=require('../TestInfo.js'),{getPlaywrightProvider}=require(a77_0xfdc17c(0x193)),TestFrameworkConstants=require(a77_0xfdc17c(0x1f6)),TestFrameworkState=require(a77_0xfdc17c(0x221));class PlaywrightDriverModule extends BaseModule{static [a77_0xfdc17c(0x20c)]=a77_0xfdc17c(0x21a);static [a77_0xfdc17c(0x1bd)]=a77_0xfdc17c(0x1b3);static [a77_0xfdc17c(0x1af)]=a77_0xfdc17c(0x1f5);static ['KEY_SESSION_ID']=a77_0xfdc17c(0x224);static ['KEY_PLATFORM_INDEX']=a77_0xfdc17c(0x24a);static [a77_0xfdc17c(0x222)]=a77_0xfdc17c(0x19b);static [a77_0xfdc17c(0x1fc)]='hubUrl';static [a77_0xfdc17c(0x1b5)]=a77_0xfdc17c(0x1dd);static ['KEY_TEST_ID']='testId';['logger']=createClassLogger(a77_0xfdc17c(0x1fe));constructor(){const _0x14e4ad=a77_0xfdc17c,_0x47add3={};_0x47add3['KWxvs']=_0x14e4ad(0x210),_0x47add3[_0x14e4ad(0x241)]=_0x14e4ad(0x1fe);const _0x4d0515=_0x47add3,_0x5edd2a=_0x4d0515[_0x14e4ad(0x242)][_0x14e4ad(0x1a0)]('|');let _0x261ed3=0x0;while(!![]){switch(_0x5edd2a[_0x261ed3++]){case'0':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x14e4ad(0x1ba)],HookState[_0x14e4ad(0x1e4)],this[_0x14e4ad(0x217)][_0x14e4ad(0x1be)](this));continue;case'1':this['platforms']=[];continue;case'2':AutomationFramework[_0x14e4ad(0x20b)](AutomationFrameworkState[_0x14e4ad(0x1ba)],HookState['POST'],this[_0x14e4ad(0x1b8)][_0x14e4ad(0x1be)](this));continue;case'3':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x14e4ad(0x1d9)],HookState['POST'],this[_0x14e4ad(0x230)]['bind'](this));continue;case'4':super();continue;case'5':this['testRunId']=null;continue;case'6':this['browserName']=null;continue;case'7':this[_0x14e4ad(0x1bc)]=null;continue;case'8':this[_0x14e4ad(0x197)]=_0x4d0515[_0x14e4ad(0x241)];continue;case'9':this['browserVersion']=null;continue;case'10':AutomationFramework[_0x14e4ad(0x20b)](AutomationFrameworkState[_0x14e4ad(0x1a7)],HookState[_0x14e4ad(0x213)],this[_0x14e4ad(0x19a)][_0x14e4ad(0x1be)](this));continue;}break;}}[a77_0xfdc17c(0x1d3)](){const _0x425505=a77_0xfdc17c;return PlaywrightDriverModule[_0x425505(0x202)];}async[a77_0xfdc17c(0x217)](_0x4b82f9){const _0x1cf212=a77_0xfdc17c,_0x199302={};_0x199302[_0x1cf212(0x208)]=_0x1cf212(0x1ec);const _0x161968=_0x199302;try{this[_0x1cf212(0x1db)][_0x1cf212(0x244)](_0x161968[_0x1cf212(0x208)]);const _0x545e44=_0x4b82f9[_0x1cf212(0x216)],_0x17337a=_0x4b82f9[_0x1cf212(0x1d2)];AutomationFramework[_0x1cf212(0x24b)](_0x4b82f9['instance'],PlaywrightDriverModule[_0x1cf212(0x222)],_0x545e44),AutomationFramework[_0x1cf212(0x24b)](_0x4b82f9[_0x1cf212(0x1ee)],PlaywrightDriverModule[_0x1cf212(0x1fc)],_0x17337a);}catch(_0x365308){this[_0x1cf212(0x1db)]['error'](_0x1cf212(0x214)+util[_0x1cf212(0x234)](_0x365308));}}async[a77_0xfdc17c(0x230)](_0x5298cd){const _0x58c5fd=a77_0xfdc17c,_0x30ffc5={};_0x30ffc5[_0x58c5fd(0x239)]=function(_0x567900,_0x46d82e){return _0x567900||_0x46d82e;};const _0x484457=_0x30ffc5;try{const _0x3f8d4d=_0x5298cd?.[_0x58c5fd(0x1fb)]&&_0x5298cd?.[_0x58c5fd(0x1fb)]?.[_0x58c5fd(0x1e1)]&&_0x5298cd?.['message']?.[_0x58c5fd(0x1e1)]?.['bsParams'],_0x5513bc=_0x5298cd?.[_0x58c5fd(0x1fb)]&&_0x5298cd?.[_0x58c5fd(0x1fb)]?.['bStackParams'];if(_0x484457[_0x58c5fd(0x239)](_0x3f8d4d,_0x5513bc)){this[_0x58c5fd(0x1db)][_0x58c5fd(0x244)](_0x58c5fd(0x1e8)+util[_0x58c5fd(0x1d5)](_0x3f8d4d)+_0x58c5fd(0x1d4)+util[_0x58c5fd(0x1d5)](_0x5513bc));const _0x35fa5d=_0x5298cd?.[_0x58c5fd(0x1ee)],_0x583d96=global?.[_0x58c5fd(0x249)]?.[_0x58c5fd(0x233)]?.[_0x58c5fd(0x1a9)],_0x11638c=_0x3f8d4d?.[_0x58c5fd(0x224)]||_0x5513bc?.[_0x58c5fd(0x224)],_0x83c095=_0x3f8d4d?.[_0x58c5fd(0x1dd)]||_0x5513bc?.[_0x58c5fd(0x1dd)];_0x11638c&&(this[_0x58c5fd(0x1db)]['debug']('onDispatchExecute:\x20Playwright\x20sessionId:\x20'+_0x11638c),AutomationFramework[_0x58c5fd(0x24b)](_0x35fa5d,PlaywrightDriverModule[_0x58c5fd(0x207)],_0x11638c)),_0x583d96&&(this[_0x58c5fd(0x1db)][_0x58c5fd(0x244)](_0x58c5fd(0x1cb)+util[_0x58c5fd(0x1d5)](_0x583d96)),AutomationFramework[_0x58c5fd(0x24b)](_0x35fa5d,PlaywrightDriverModule[_0x58c5fd(0x198)],_0x583d96));}}catch(_0x56184b){this[_0x58c5fd(0x1db)]['error'](_0x58c5fd(0x1f4)+util[_0x58c5fd(0x234)](_0x56184b));}}async['onAfterDriverCreate'](_0x5c1890){const _0x27e9cd=a77_0xfdc17c,_0x2359eb={'tTEQz':_0x27e9cd(0x1d8),'teoTh':function(_0x15857a,_0x309dd8){return _0x15857a(_0x309dd8);},'EwvQW':_0x27e9cd(0x20a),'INAxt':_0x27e9cd(0x23a),'pDgYo':_0x27e9cd(0x1f1),'orEnM':_0x27e9cd(0x228),'OhmPW':_0x27e9cd(0x225)};try{this['logger'][_0x27e9cd(0x244)](_0x2359eb['tTEQz']);const _0x2257f5=_0x5c1890[_0x27e9cd(0x1ee)];this[_0x27e9cd(0x1bc)]=_0x2359eb[_0x27e9cd(0x209)](getFrameworkVersion,FRAMEWORKS[_0x27e9cd(0x1e5)]);if(_0x5c1890[_0x27e9cd(0x1b7)]){this[_0x27e9cd(0x1db)][_0x27e9cd(0x244)](_0x2359eb['EwvQW']),AutomationFramework['setState'](_0x2257f5,PlaywrightDriverModule[_0x27e9cd(0x1af)],_0x5c1890[_0x27e9cd(0x1b7)]);if(_0x5c1890[_0x27e9cd(0x1ae)]){this[_0x27e9cd(0x1db)][_0x27e9cd(0x244)](_0x2359eb[_0x27e9cd(0x23f)]);const _0x24b0d4=_0x5c1890['testInfo']?.[_0x27e9cd(0x23b)]?.['id']||_0x5c1890['testInfo']?.['testId'];AutomationFramework[_0x27e9cd(0x24b)](_0x2257f5,PlaywrightDriverModule[_0x27e9cd(0x1c8)],_0x24b0d4),await this[_0x27e9cd(0x22d)](_0x5c1890['testInfo']);}}_0x5c1890[_0x27e9cd(0x1a5)]&&(this['logger']['debug'](_0x2359eb['pDgYo']),AutomationFramework['setState'](_0x2257f5,PlaywrightDriverModule['KEY_CONTEXT_OBJECT'],_0x5c1890[_0x27e9cd(0x1a5)]));if(_0x5c1890['browser']){this[_0x27e9cd(0x1db)][_0x27e9cd(0x244)](_0x2359eb[_0x27e9cd(0x212)]);const _0x345376=global?.[_0x27e9cd(0x249)]?.['workerInfo']?.['parallelIndex'];AutomationFramework[_0x27e9cd(0x24b)](_0x2257f5,PlaywrightDriverModule['KEY_BROWSER_OBJECT'],_0x5c1890[_0x27e9cd(0x1e6)]),AutomationFramework[_0x27e9cd(0x24b)](_0x2257f5,PlaywrightDriverModule['KEY_PLATFORM_INDEX'],_0x345376);const _0x2a89f3={};_0x2a89f3[_0x27e9cd(0x1e7)]=!![];const _0x346b56=Buffer[_0x27e9cd(0x1fd)](JSON['stringify'](_0x2a89f3)[_0x27e9cd(0x206)](_0x2359eb[_0x27e9cd(0x1c2)])),_0x176173=await GrpcClient[_0x27e9cd(0x1a3)]()[_0x27e9cd(0x218)]({'platformIndex':_0x345376,'ref':_0x2257f5[_0x27e9cd(0x1bf)](),'userInputParams':_0x346b56});helper[_0x27e9cd(0x245)](helper[_0x27e9cd(0x1a1)]())&&AutomationFramework[_0x27e9cd(0x24b)](_0x2257f5,PlaywrightDriverModule['KEY_CAPABILITIES'],JSON[_0x27e9cd(0x1a6)](Buffer[_0x27e9cd(0x1fd)](_0x176173['getCapabilities'](),_0x2359eb[_0x27e9cd(0x1c2)])[_0x27e9cd(0x206)]()));}}catch(_0x125cd9){this[_0x27e9cd(0x1db)][_0x27e9cd(0x1ca)](_0x27e9cd(0x1ac)+util[_0x27e9cd(0x234)](_0x125cd9));}}async[a77_0xfdc17c(0x19a)](_0x53403d){const _0x5597a6=a77_0xfdc17c,_0x45ef98={'TUMUY':_0x5597a6(0x1f8),'bQgaZ':_0x5597a6(0x235),'tiqjq':function(_0x4484be,_0x3c37ce){return _0x4484be(_0x3c37ce);},'AtjYy':function(_0x1a6a68,_0x1e6cf3){return _0x1a6a68(_0x1e6cf3);},'TGQCB':function(_0x279c5c,_0x10e26f){return _0x279c5c(_0x10e26f);},'aGSeF':function(_0x50d3a0,_0x576581,_0x3caf1e){return _0x50d3a0(_0x576581,_0x3caf1e);},'Ekske':_0x5597a6(0x1d6),'yUbKo':function(_0x48343d,_0x35fb59){return _0x48343d>_0x35fb59;},'vvHoP':function(_0x18849d,_0x25644c){return _0x18849d+_0x25644c;},'UdAzi':'testId:\x20','pWisc':function(_0x5d59ae,_0x5ec5c7){return _0x5d59ae+_0x5ec5c7;},'qkSbY':_0x5597a6(0x1a4),'DOxjx':'Playwright','IqpvR':_0x5597a6(0x229),'tMkqe':_0x5597a6(0x1f3),'Slzye':_0x5597a6(0x225),'gUFjl':_0x5597a6(0x192)};this['logger'][_0x5597a6(0x244)](_0x45ef98[_0x5597a6(0x20d)]);const _0x473d78=_0x53403d['instance'];if(!_0x473d78){this[_0x5597a6(0x1db)][_0x5597a6(0x244)](_0x45ef98[_0x5597a6(0x1b0)]);return;}const _0x3f7a30=_0x53403d[_0x5597a6(0x1ae)],_0x27b388=_0x3f7a30['id']||_0x53403d[_0x5597a6(0x1ae)]?.[_0x5597a6(0x23b)]?.['id']||_0x53403d[_0x5597a6(0x1ae)]?.[_0x5597a6(0x1fa)],_0x5e5cfa=_0x3f7a30[_0x5597a6(0x22a)],_0x2e9423=_0x45ef98[_0x5597a6(0x1da)](getPlaywrightStatus,_0x5e5cfa);let _0x40703d;_0x3f7a30[_0x5597a6(0x1a8)]||_0x3f7a30[_0x5597a6(0x22b)]?_0x40703d=_0x45ef98[_0x5597a6(0x1f9)](getCucumberSessionName,_0x3f7a30):_0x40703d=_0x45ef98['TGQCB'](getPlaywrightSessionName,_0x3f7a30);const _0xe53dfc=_0x45ef98[_0x5597a6(0x1ce)](nestedKeyValue,_0x3f7a30,[_0x45ef98[_0x5597a6(0x19d)]]);let _0x1026bd=null;_0xe53dfc&&_0x45ef98[_0x5597a6(0x247)](_0xe53dfc[_0x5597a6(0x1c1)],0x0)&&(_0x1026bd=_0xe53dfc[0x0][_0x5597a6(0x1fb)]);this[_0x5597a6(0x1db)]['debug']('Automation\x20onAfterTest:\x20Test\x20status:\x20'+_0x2e9423+'\x20failure\x20reason:\x20'+_0x1026bd);const _0x4a2c53=TestInfo[_0x5597a6(0x1eb)](_0x27b388),_0x402cca=TestInfo[_0x5597a6(0x1b4)](_0x27b388);this[_0x5597a6(0x1db)][_0x5597a6(0x21d)](_0x45ef98[_0x5597a6(0x1ed)](_0x45ef98['UdAzi'],_0x27b388)),this['logger']['info'](_0x45ef98['pWisc'](_0x45ef98[_0x5597a6(0x1ea)],util[_0x5597a6(0x1d5)](_0x402cca)));const _0x6d712=AutomationFramework['getState'](_0x473d78,PlaywrightDriverModule['KEY_PLATFORM_INDEX'])||0x0,_0x5347e7=_0x402cca[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]||_0x45ef98[_0x5597a6(0x226)],_0x1da97a=_0x402cca[TestFrameworkConstants[_0x5597a6(0x21e)]]||_0x45ef98[_0x5597a6(0x1e0)],_0x13d783=TestFrameworkState[_0x5597a6(0x22e)][_0x5597a6(0x206)]()[_0x5597a6(0x1a0)]('.')[0x1],_0x3d16f=HookState['POST']['toString']()['split']('.')[0x1],_0x34c9db=_0x473d78[_0x5597a6(0x1d7)](),_0x5d8cd6=AutomationFramework[_0x5597a6(0x22f)](_0x473d78,PlaywrightDriverModule[_0x5597a6(0x1fc)],''),_0x2be067={'provider':_0x45ef98['AtjYy'](getPlaywrightProvider,_0x5d8cd6),'frameworkName':_0x45ef98['DOxjx'],'frameworkVersion':_0x45ef98[_0x5597a6(0x248)],'frameworkSessionId':AutomationFramework[_0x5597a6(0x22f)](_0x473d78,PlaywrightDriverModule['KEY_SESSION_ID'],''),'ref':_0x473d78[_0x5597a6(0x1bf)](),'hubUrl':_0x5d8cd6};let _0x5d9861=AutomationFramework[_0x5597a6(0x22f)](_0x473d78,PlaywrightDriverModule[_0x5597a6(0x222)],{});_0x5d9861&&_0x45ef98[_0x5597a6(0x247)](Object[_0x5597a6(0x219)](_0x5d9861)[_0x5597a6(0x1c1)],0x0)?_0x5d9861=Buffer['from'](JSON[_0x5597a6(0x194)](_0x5d9861))['toString'](_0x45ef98[_0x5597a6(0x203)]):_0x5d9861={};const _0x2d4d4f={'hash':_0x34c9db['getId'](),'threadId':_0x34c9db[_0x5597a6(0x201)]()[_0x5597a6(0x206)](),'processId':_0x34c9db['getProcessId']()[_0x5597a6(0x206)]()},_0x3604d6={};_0x3604d6[_0x5597a6(0x24a)]=_0x6d712,_0x3604d6[_0x5597a6(0x1cd)]=_0x5347e7,_0x3604d6['testFrameworkVersion']=_0x1da97a,_0x3604d6[_0x5597a6(0x1b2)]=_0x13d783,_0x3604d6[_0x5597a6(0x246)]=_0x3d16f,_0x3604d6[_0x5597a6(0x1c6)]=_0x4a2c53,_0x3604d6[_0x5597a6(0x20f)]=_0x2be067,_0x3604d6['capabilities']=_0x5d9861,_0x3604d6[_0x5597a6(0x238)]=_0x2d4d4f;const _0x1e241c=_0x3604d6;this[_0x5597a6(0x1db)][_0x5597a6(0x244)](_0x5597a6(0x199)+util[_0x5597a6(0x234)](_0x1e241c)),this[_0x5597a6(0x1db)][_0x5597a6(0x244)]('onAfterTest\x20CBTSession\x20complete\x20for\x20testId:\x20'+_0x27b388);if(!_0x2e9423){this[_0x5597a6(0x1db)][_0x5597a6(0x244)](_0x45ef98[_0x5597a6(0x19c)],_0x5e5cfa[_0x5597a6(0x22a)]);return;}this[_0x5597a6(0x1db)][_0x5597a6(0x244)](_0x5597a6(0x227)+_0x27b388),await this['markSessionStatus'](_0x473d78,_0x40703d,_0x2e9423,_0x1026bd);}async[a77_0xfdc17c(0x195)](_0x54d0ec,_0x2033cf,_0x199976,_0x497de3){const _0x243ab1=a77_0xfdc17c,_0x58cd9f={'rOHML':_0x243ab1(0x1ad),'sueqv':_0x243ab1(0x1f0),'vXhGg':_0x243ab1(0x1b9),'kIbhF':_0x243ab1(0x192),'RLLze':_0x243ab1(0x1cf),'bvBgP':_0x243ab1(0x21c),'paSvY':_0x243ab1(0x1bb),'UVmMh':function(_0x575101,_0x3701e2){return _0x575101===_0x3701e2;},'xAQyJ':_0x243ab1(0x1d0),'RbwiP':_0x243ab1(0x21d),'odxLc':'error','GOjpB':function(_0x78fde2,_0x165063,_0x59c0f2,_0x47960c){return _0x78fde2(_0x165063,_0x59c0f2,_0x47960c);},'EyezI':'markSessionStatus:\x20Marking\x20session\x20status','XmlNf':function(_0x164830,_0x566555,_0x2337d9){return _0x164830(_0x566555,_0x2337d9);}};if(CLIUtils[_0x243ab1(0x232)](BrowserstackCLI[_0x243ab1(0x1a3)]()[_0x243ab1(0x21f)]())){this[_0x243ab1(0x1db)]['debug'](_0x58cd9f['rOHML']);return;}const _0x234f12=_0x54d0ec;if(!_0x234f12){this['logger'][_0x243ab1(0x244)](_0x58cd9f['sueqv']);return;}const _0x2eccb1=AutomationFramework[_0x243ab1(0x22f)](_0x234f12,PlaywrightDriverModule[_0x243ab1(0x1af)]);if(!_0x2eccb1){this['logger'][_0x243ab1(0x244)](_0x58cd9f[_0x243ab1(0x204)]);return;}const _0x5383e7=_0x199976;if(!_0x5383e7){this[_0x243ab1(0x1db)][_0x243ab1(0x244)](_0x58cd9f[_0x243ab1(0x1dc)],_0x5383e7);return;}const _0xf3d60c={};_0xf3d60c[_0x243ab1(0x22a)]=_0x5383e7;const _0x2f34fe={};_0x2f34fe['action']=_0x58cd9f[_0x243ab1(0x1f7)],_0x2f34fe[_0x243ab1(0x220)]=_0xf3d60c;const _0x8aaee7=_0x2f34fe;_0x497de3&&(_0x8aaee7[_0x243ab1(0x220)][_0x58cd9f[_0x243ab1(0x240)]]=_0x497de3);const _0x168750=(_0x2033cf?_0x2033cf:_0x58cd9f['paSvY'])+'\x20'+_0x5383e7+'\x20'+(_0x497de3?'with\x20'+_0x497de3:''),_0xcb0b32=_0x58cd9f[_0x243ab1(0x211)](_0x5383e7,_0x58cd9f[_0x243ab1(0x1c3)])?_0x58cd9f[_0x243ab1(0x1a2)]:_0x58cd9f['odxLc'];await _0x58cd9f[_0x243ab1(0x1f2)](playwrightAnnotate,_0x2eccb1,_0x168750,_0xcb0b32),PerformanceTester[_0x243ab1(0x1e3)](PerformanceEvents[_0x243ab1(0x1e2)]),this['logger'][_0x243ab1(0x244)](_0x58cd9f['EyezI']),await _0x58cd9f[_0x243ab1(0x231)](playwrightBstackJsExecutor,_0x2eccb1,_0x8aaee7),PerformanceTester[_0x243ab1(0x1de)](PerformanceEvents[_0x243ab1(0x1e2)]);}async[a77_0xfdc17c(0x22d)](_0x17317a){const _0x5d5e3b=a77_0xfdc17c,_0x4e39fa={'hROMs':_0x5d5e3b(0x20e),'txIou':function(_0x49c7e5,_0x2d7cfc){return _0x49c7e5(_0x2d7cfc);},'hvsgH':function(_0x53cd06,_0x3ac9f6){return _0x53cd06(_0x3ac9f6);},'nrhJt':'setSessionName','pweeI':function(_0x4706be,_0x52c6d1,_0x3c70d2){return _0x4706be(_0x52c6d1,_0x3c70d2);}};try{if(CLIUtils[_0x5d5e3b(0x1df)](BrowserstackCLI['getInstance']()[_0x5d5e3b(0x21f)]())){this['logger'][_0x5d5e3b(0x244)](_0x4e39fa[_0x5d5e3b(0x1b6)]);return;}const _0xe7cafe=AutomationFramework[_0x5d5e3b(0x22f)](AutomationFramework['getTrackedInstance'](),PlaywrightDriverModule[_0x5d5e3b(0x1af)]);let _0x1b1547;_0x17317a[_0x5d5e3b(0x1a8)]||_0x17317a[_0x5d5e3b(0x22b)]?_0x1b1547=_0x4e39fa[_0x5d5e3b(0x200)](getCucumberSessionName,_0x17317a):_0x1b1547=_0x4e39fa[_0x5d5e3b(0x223)](getPlaywrightSessionName,_0x17317a);const _0x445fce={};_0x445fce[_0x5d5e3b(0x197)]=_0x1b1547;const _0x4b5ea2={};_0x4b5ea2[_0x5d5e3b(0x1c7)]=_0x4e39fa[_0x5d5e3b(0x1aa)],_0x4b5ea2['arguments']=_0x445fce;const _0x429fb0=_0x4b5ea2;PerformanceTester[_0x5d5e3b(0x1e3)](PerformanceEvents[_0x5d5e3b(0x1cc)]),await _0x4e39fa[_0x5d5e3b(0x243)](playwrightBstackJsExecutor,_0xe7cafe,_0x429fb0),PerformanceTester[_0x5d5e3b(0x1de)](PerformanceEvents[_0x5d5e3b(0x1cc)]);}catch(_0x52379b){PerformanceTester['end'](PerformanceEvents[_0x5d5e3b(0x1cc)],![],util[_0x5d5e3b(0x234)](_0x52379b)),this[_0x5d5e3b(0x1db)][_0x5d5e3b(0x1ca)]('Error\x20in\x20markSessionName:\x20'+util[_0x5d5e3b(0x234)](_0x52379b));}}}PlaywrightDriverModule[a77_0xfdc17c(0x202)]=a77_0xfdc17c(0x1fe),module['exports']=PlaywrightDriverModule;
@@ -1 +1 @@
1
- function a76_0xb959(){const _0x5d3f89=['testFrameworkName','hfirG','KEY_TEST_ENDED_AT','CREATE','onAllTestEvents','bind','15775rEtHcz','values','automationSession','getProcessId','onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20','frameworkVersion','sendTestFrameworkEvent\x20complete\x20for\x20testId:\x20','executionContext','split','getAllData','uuid','TestHubModule','platformIndex','getRef','../framework/automationFramework.js','Error\x20in\x20sendTestFrameworkEvent:\x20','../state/testFrameworkState.js','JqcQq','toString','test','getModuleName','KEY_HUB_URL','stringify','base64','getTestDetails','getThreadId','name','forEach','test_deferred','../browserstackCLI.js','XrdIE','KEY_SESSION_ID','1391334IWaHEc','testhubConfig','exports','testInfo','MODULE_NAME','logger','util','testHookState','../../../helpers/classLogger.js','374265jgUeIo','testFrameworkState','registerObserver','getBuildHashedId','2836700izflPH','ENV_VAR','666xGsYbu','BROWSERSTACK_TESTHUB_UUID','PDKKN','../cliUtils.js','format','endedAt','matchHookRegex','KEY_TEST_DEFERRED','debug','../framework/constants/testFrameworkConstants.js','../TestInfo.js','O11yHashedID','8AJglRQ','testFrameworkVersion','getCurrentTestState','instance','startedAt','getInstance','onPageCreate\x20CBTSession\x20payload:\x20','getContext','getState','hookState','workerInfo','cdzSv','KEY_CAPABILITIES','840HSbExe','KEY_TEST_FRAMEWORK_NAME','\x20testState:\x20','511458ZkmzbB','getCurrentHookState','TEST','./baseModule','Error\x20in\x20sending\x20CBTSession:\x20','testUuid','353937TgkYTb','getId','onPageCreate','testId','18RRutTc','BROWSERSTACK_TESTHUB_JWT','frameworkName','\x20hookState:\x20','getTestUUID','../grpcClient.js','__workerDetails','error','../state/automationFrameworkState.js','sendTestFrameworkEvent','KEY_TEST_FRAMEWORK_VERSION','./playwrightDriverModule.js','KEY_TEST_STARTED_AT','7|4|2|3|5|0|1|6','MPqEe','KEY_PLATFORM_INDEX'];a76_0xb959=function(){return _0x5d3f89;};return a76_0xb959();}const a76_0x1e0dce=a76_0x51ba;(function(_0x106e8d,_0x864536){const _0x5251cf=a76_0x51ba,_0x455984=_0x106e8d();while(!![]){try{const _0x1a3a4d=parseInt(_0x5251cf(0xa1))/0x1*(-parseInt(_0x5251cf(0x8b))/0x2)+parseInt(_0x5251cf(0x87))/0x3+-parseInt(_0x5251cf(0x71))/0x4*(-parseInt(_0x5251cf(0xca))/0x5)+-parseInt(_0x5251cf(0x81))/0x6+-parseInt(_0x5251cf(0xc1))/0x7+-parseInt(_0x5251cf(0x7e))/0x8*(parseInt(_0x5251cf(0xd0))/0x9)+parseInt(_0x5251cf(0xce))/0xa;if(_0x1a3a4d===_0x864536)break;else _0x455984['push'](_0x455984['shift']());}catch(_0x56f3e7){_0x455984['push'](_0x455984['shift']());}}}(a76_0xb959,0x1cb65));const util=require(a76_0x1e0dce(0xc7)),BaseModule=require(a76_0x1e0dce(0x84)),{createClassLogger}=require(a76_0x1e0dce(0xc9)),AutomationFramework=require(a76_0x1e0dce(0xaf)),AutomationFrameworkState=require(a76_0x1e0dce(0x93)),HookState=require('../state/hookState.js'),TestFramework=require('../framework/testFramework.js'),TestFrameworkState=require(a76_0x1e0dce(0xb1)),PlaywrightDriverModule=require(a76_0x1e0dce(0x96)),TestFrameworkConstants=require(a76_0x1e0dce(0x6e)),GrpcClient=require(a76_0x1e0dce(0x90)),CLIUtils=require(a76_0x1e0dce(0xd3)),TestInfo=require(a76_0x1e0dce(0x6f)),testHubConstants=require('../../../helpers/testhub/constants'),BrowserstackCLI=require(a76_0x1e0dce(0xbe)),{getPlaywrightProvider}=require('../../../helpers/helper.js');class TestHubModule extends BaseModule{[a76_0x1e0dce(0xc6)]=createClassLogger('TestHubModule');constructor(_0x4d1efd){const _0x2b4460=a76_0x1e0dce,_0x5a34a4={};_0x5a34a4[_0x2b4460(0x99)]=_0x2b4460(0x98),_0x5a34a4[_0x2b4460(0x9c)]='TestHubModule';const _0x16619a=_0x5a34a4,_0x5ed063=_0x16619a['MPqEe'][_0x2b4460(0xa9)]('|');let _0x4bd572=0x0;while(!![]){switch(_0x5ed063[_0x4bd572++]){case'0':process['env'][testHubConstants[_0x2b4460(0xcf)][_0x2b4460(0x8c)]]=this['testhubConfig']['getJwt']();continue;case'1':process['env'][testHubConstants[_0x2b4460(0xcf)][_0x2b4460(0xd1)]]=this[_0x2b4460(0xc2)]['getBuildHashedId']();continue;case'2':this['testhubConfig']=_0x4d1efd;continue;case'3':AutomationFramework[_0x2b4460(0xcc)](AutomationFrameworkState[_0x2b4460(0x9e)],HookState['POST'],this['onPageCreate'][_0x2b4460(0xa0)](this));continue;case'4':this[_0x2b4460(0xbb)]=_0x16619a[_0x2b4460(0x9c)];continue;case'5':Object[_0x2b4460(0xa2)](TestFrameworkState)[_0x2b4460(0xbc)](_0x2527fa=>{const _0xc42031=_0x2b4460;Object[_0xc42031(0xa2)](HookState)[_0xc42031(0xbc)](_0x434e58=>{const _0x398404=_0xc42031;TestFramework[_0x398404(0xcc)](_0x2527fa,_0x434e58,this[_0x398404(0x9f)][_0x398404(0xa0)](this));});});continue;case'6':BrowserstackCLI[_0x2b4460(0x70)]=this[_0x2b4460(0xc2)][_0x2b4460(0xcd)]();continue;case'7':super();continue;}break;}}[a76_0x1e0dce(0xb5)](){const _0x5251c7=a76_0x1e0dce;return TestHubModule[_0x5251c7(0xc5)];}[a76_0x1e0dce(0x9f)](_0x4a60a9){const _0x27ed63=a76_0x1e0dce,_0x53c2bc={};_0x53c2bc[_0x27ed63(0x7c)]=function(_0x5261fb,_0x3ad8b8){return _0x5261fb===_0x3ad8b8;};const _0x2da0ec=_0x53c2bc,_0x1bf657=_0x4a60a9[_0x27ed63(0x74)],_0x1b2e59=_0x1bf657[_0x27ed63(0x73)]();(_0x2da0ec[_0x27ed63(0x7c)](_0x1b2e59,TestFrameworkState[_0x27ed63(0x83)])||CLIUtils[_0x27ed63(0xd6)](_0x1b2e59[_0x27ed63(0xb3)]()['split']('.')[0x1]))&&this[_0x27ed63(0x94)](_0x4a60a9);}async[a76_0x1e0dce(0x94)](_0x204738){const _0x45736e=a76_0x1e0dce,_0x84a1a={};_0x84a1a[_0x45736e(0xd2)]=_0x45736e(0xb8);const _0x46651d=_0x84a1a;try{const _0x3e72ee=_0x204738[_0x45736e(0xb4)]['id'],_0x2d7c0d=_0x204738[_0x45736e(0x74)],_0x5222ba=_0x2d7c0d[_0x45736e(0x78)](),_0x4e8391=_0x2d7c0d[_0x45736e(0xaa)]()['get'](_0x3e72ee);this['logger'][_0x45736e(0x6d)]('sendTestFrameworkEvent\x20testId:\x20'+_0x3e72ee);const {[TestFrameworkConstants['KEY_TEST_FRAMEWORK_NAME']]:_0x2697c7='',[TestFrameworkConstants[_0x45736e(0x95)]]:_0x56e930='',[TestFrameworkConstants[_0x45736e(0x97)]]:_0x1aacbf='',[TestFrameworkConstants[_0x45736e(0x9d)]]:_0x15e376=''}=_0x4e8391,_0xa1da7b=_0x2d7c0d[_0x45736e(0x73)]()[_0x45736e(0xb3)]()[_0x45736e(0xa9)]('.')[0x1],_0x530476=_0x2d7c0d[_0x45736e(0x82)]()[_0x45736e(0xb3)]()[_0x45736e(0xa9)]('.')[0x1],_0x26475f=global?.[_0x45736e(0x91)]?.[_0x45736e(0x7b)]?.['parallelIndex'];;const _0x8dd022=_0x2d7c0d['getRef'](),_0x37c8fc=Buffer['from'](JSON[_0x45736e(0xb7)](_0x4e8391))[_0x45736e(0xb3)](_0x46651d[_0x45736e(0xd2)]),_0x3a42c1={'hash':_0x5222ba[_0x45736e(0x88)](),'threadId':_0x5222ba['getThreadId']()[_0x45736e(0xb3)](),'processId':_0x5222ba[_0x45736e(0xa4)]()['toString']()},_0x37440e={};_0x37440e[_0x45736e(0xad)]=_0x26475f,_0x37440e[_0x45736e(0x9b)]=_0x2697c7,_0x37440e['testFrameworkVersion']=_0x56e930,_0x37440e[_0x45736e(0xcb)]=_0xa1da7b,_0x37440e[_0x45736e(0x7a)]=_0x530476,_0x37440e[_0x45736e(0x75)]=_0x1aacbf,_0x37440e[_0x45736e(0xd5)]=_0x15e376,_0x37440e[_0x45736e(0xab)]=_0x8dd022,_0x37440e['eventJson']=_0x37c8fc,_0x37440e[_0x45736e(0xa8)]=_0x3a42c1;const _0x4cc44a=_0x37440e,_0x43555a=await GrpcClient['getInstance']()['testFrameworkEvent'](_0x4cc44a);this[_0x45736e(0xc6)][_0x45736e(0x6d)](_0x45736e(0xa7)+_0x3e72ee+_0x45736e(0x80)+_0xa1da7b+_0x45736e(0x8e)+_0x530476);}catch(_0x525303){this[_0x45736e(0xc6)]['error'](_0x45736e(0xb0)+util[_0x45736e(0xd4)](_0x525303));}}async[a76_0x1e0dce(0x89)](_0x517b5c){const _0x4ce4f0=a76_0x1e0dce,_0x277b60={'XrdIE':function(_0x368076,_0x31bb0a){return _0x368076(_0x31bb0a);},'JqcQq':_0x4ce4f0(0xb8)};try{if(_0x517b5c['page']){const _0x34e668=_0x517b5c[_0x4ce4f0(0xc4)][_0x4ce4f0(0x8a)];this[_0x4ce4f0(0xc6)][_0x4ce4f0(0x6d)](_0x4ce4f0(0xa5)+_0x34e668);const _0x522527=TestInfo[_0x4ce4f0(0x8f)](_0x34e668),_0x8d15d5=TestInfo[_0x4ce4f0(0xb9)](_0x34e668),_0x202371=_0x517b5c[_0x4ce4f0(0x74)],_0x5480e4=AutomationFramework[_0x4ce4f0(0x79)](_0x202371,PlaywrightDriverModule[_0x4ce4f0(0x9a)]),_0x99e7a4=_0x8d15d5[TestFrameworkConstants[_0x4ce4f0(0x7f)]],_0x3563c5=_0x8d15d5[TestFrameworkConstants[_0x4ce4f0(0x95)]],_0x12b807=TestFrameworkState['TEST']['toString']()[_0x4ce4f0(0xa9)]('.')[0x1],_0xbdabdd=HookState['POST'][_0x4ce4f0(0xb3)]()['split']('.')[0x1],_0x2b5bbf=_0x202371[_0x4ce4f0(0x78)](),_0x2d1f44=AutomationFramework['getState'](_0x202371,PlaywrightDriverModule[_0x4ce4f0(0xb6)],''),_0x47b9c2={'provider':_0x277b60[_0x4ce4f0(0xbf)](getPlaywrightProvider,_0x2d1f44),'frameworkName':_0x202371[_0x4ce4f0(0x8d)],'frameworkVersion':_0x202371[_0x4ce4f0(0xa6)],'frameworkSessionId':AutomationFramework[_0x4ce4f0(0x79)](_0x202371,PlaywrightDriverModule[_0x4ce4f0(0xc0)],''),'ref':_0x202371[_0x4ce4f0(0xae)](),'hubUrl':_0x2d1f44};let _0x225718=AutomationFramework[_0x4ce4f0(0x79)](_0x202371,PlaywrightDriverModule[_0x4ce4f0(0x7d)],{});_0x225718=Buffer['from'](JSON[_0x4ce4f0(0xb7)](_0x225718))[_0x4ce4f0(0xb3)](_0x277b60[_0x4ce4f0(0xb2)]);const _0x74bcaf={'hash':_0x2b5bbf['getId'](),'threadId':_0x2b5bbf[_0x4ce4f0(0xba)]()['toString'](),'processId':_0x2b5bbf[_0x4ce4f0(0xa4)]()['toString']()},_0x2974b3={};_0x2974b3[_0x4ce4f0(0xad)]=_0x5480e4,_0x2974b3[_0x4ce4f0(0x9b)]=_0x99e7a4,_0x2974b3[_0x4ce4f0(0x72)]=_0x3563c5,_0x2974b3[_0x4ce4f0(0xcb)]=_0x12b807,_0x2974b3[_0x4ce4f0(0xc8)]=_0xbdabdd,_0x2974b3[_0x4ce4f0(0x86)]=_0x522527,_0x2974b3[_0x4ce4f0(0xa3)]=_0x47b9c2,_0x2974b3['capabilities']=_0x225718,_0x2974b3[_0x4ce4f0(0xa8)]=_0x74bcaf;const _0x5225bf=_0x2974b3;this[_0x4ce4f0(0xc6)][_0x4ce4f0(0x6d)](_0x4ce4f0(0x77)+util[_0x4ce4f0(0xd4)](_0x5225bf));const _0x237592=await GrpcClient[_0x4ce4f0(0x76)]()['testSessionEvent'](_0x5225bf);this['logger'][_0x4ce4f0(0x6d)]('onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20'+_0x34e668);}}catch(_0x107839){this[_0x4ce4f0(0xc6)][_0x4ce4f0(0x92)](_0x4ce4f0(0x85)+util[_0x4ce4f0(0xd4)](_0x107839));}}}function a76_0x51ba(_0x159a78,_0x172cc9){const _0xb95931=a76_0xb959();return a76_0x51ba=function(_0x51badf,_0x55cfd6){_0x51badf=_0x51badf-0x6c;let _0x457055=_0xb95931[_0x51badf];return _0x457055;},a76_0x51ba(_0x159a78,_0x172cc9);}TestHubModule['MODULE_NAME']=a76_0x1e0dce(0xac),TestHubModule[a76_0x1e0dce(0x6c)]=a76_0x1e0dce(0xbd),module[a76_0x1e0dce(0xc3)]=TestHubModule;
1
+ const a78_0x51eba2=a78_0x452c;(function(_0x15b653,_0x4ebb81){const _0x4c7bad=a78_0x452c,_0x10e290=_0x15b653();while(!![]){try{const _0x5aaf3b=parseInt(_0x4c7bad(0x1c0))/0x1*(-parseInt(_0x4c7bad(0x1b8))/0x2)+parseInt(_0x4c7bad(0x18f))/0x3*(-parseInt(_0x4c7bad(0x1b5))/0x4)+-parseInt(_0x4c7bad(0x1c6))/0x5+parseInt(_0x4c7bad(0x1ca))/0x6+-parseInt(_0x4c7bad(0x1ae))/0x7*(-parseInt(_0x4c7bad(0x179))/0x8)+parseInt(_0x4c7bad(0x1a1))/0x9*(-parseInt(_0x4c7bad(0x18e))/0xa)+-parseInt(_0x4c7bad(0x1dc))/0xb*(-parseInt(_0x4c7bad(0x196))/0xc);if(_0x5aaf3b===_0x4ebb81)break;else _0x10e290['push'](_0x10e290['shift']());}catch(_0x1883b1){_0x10e290['push'](_0x10e290['shift']());}}}(a78_0x53d5,0x65d3f));const util=require('util'),BaseModule=require(a78_0x51eba2(0x172)),{createClassLogger}=require(a78_0x51eba2(0x1d5)),AutomationFramework=require(a78_0x51eba2(0x17a)),AutomationFrameworkState=require(a78_0x51eba2(0x1bd)),HookState=require(a78_0x51eba2(0x1b9)),TestFramework=require(a78_0x51eba2(0x1a7)),TestFrameworkState=require(a78_0x51eba2(0x195)),PlaywrightDriverModule=require(a78_0x51eba2(0x1a5)),TestFrameworkConstants=require(a78_0x51eba2(0x17d)),GrpcClient=require(a78_0x51eba2(0x19d)),CLIUtils=require(a78_0x51eba2(0x185)),TestInfo=require(a78_0x51eba2(0x19c)),testHubConstants=require('../../../helpers/testhub/constants'),BrowserstackCLI=require(a78_0x51eba2(0x180)),{getPlaywrightProvider}=require('../../../helpers/helper.js');function a78_0x452c(_0x3f0d9c,_0x374052){const _0x53d54b=a78_0x53d5();return a78_0x452c=function(_0x452ca5,_0x1dd38c){_0x452ca5=_0x452ca5-0x171;let _0x701135=_0x53d54b[_0x452ca5];return _0x701135;},a78_0x452c(_0x3f0d9c,_0x374052);}class TestHubModule extends BaseModule{[a78_0x51eba2(0x1b2)]=createClassLogger(a78_0x51eba2(0x1cf));constructor(_0x27edd2){const _0x53e7a5=a78_0x51eba2,_0x41a967={};_0x41a967[_0x53e7a5(0x187)]=_0x53e7a5(0x1a8),_0x41a967['ffchT']='TestHubModule';const _0x1eeb4d=_0x41a967,_0x187833=_0x1eeb4d[_0x53e7a5(0x187)][_0x53e7a5(0x181)]('|');let _0x2f4dd8=0x0;while(!![]){switch(_0x187833[_0x2f4dd8++]){case'0':process[_0x53e7a5(0x188)][testHubConstants[_0x53e7a5(0x1d2)][_0x53e7a5(0x1ba)]]=this['testhubConfig'][_0x53e7a5(0x1c5)]();continue;case'1':super();continue;case'2':Object[_0x53e7a5(0x1d7)](TestFrameworkState)[_0x53e7a5(0x197)](_0x1d180b=>{const _0x1cfc1e=_0x53e7a5;Object[_0x1cfc1e(0x1d7)](HookState)[_0x1cfc1e(0x197)](_0x2383dc=>{const _0x1a7dd9=_0x1cfc1e;TestFramework[_0x1a7dd9(0x19a)](_0x1d180b,_0x2383dc,this[_0x1a7dd9(0x1bb)][_0x1a7dd9(0x1a9)](this));});});continue;case'3':AutomationFramework['registerObserver'](AutomationFrameworkState[_0x53e7a5(0x1a4)],HookState['POST'],this['onPageCreate'][_0x53e7a5(0x1a9)](this));continue;case'4':BrowserstackCLI['O11yHashedID']=this['testhubConfig'][_0x53e7a5(0x1a0)]();continue;case'5':this[_0x53e7a5(0x192)]=_0x27edd2;continue;case'6':process['env'][testHubConstants[_0x53e7a5(0x1d2)][_0x53e7a5(0x1d4)]]=this[_0x53e7a5(0x192)][_0x53e7a5(0x1a0)]();continue;case'7':this[_0x53e7a5(0x1db)]=_0x1eeb4d['ffchT'];continue;}break;}}[a78_0x51eba2(0x1c8)](){const _0x33d595=a78_0x51eba2;return TestHubModule[_0x33d595(0x175)];}[a78_0x51eba2(0x1bb)](_0x1b4533){const _0x417a83=a78_0x51eba2,_0x24d0af={};_0x24d0af[_0x417a83(0x191)]=function(_0x25a526,_0x4ea850){return _0x25a526===_0x4ea850;};const _0x5ac35a=_0x24d0af,_0x2d1e19=_0x1b4533[_0x417a83(0x17e)],_0x4a49c8=_0x2d1e19[_0x417a83(0x18b)]();(_0x5ac35a[_0x417a83(0x191)](_0x4a49c8,TestFrameworkState[_0x417a83(0x1da)])||CLIUtils[_0x417a83(0x1d1)](_0x4a49c8[_0x417a83(0x173)]()['split']('.')[0x1]))&&this[_0x417a83(0x1ad)](_0x1b4533);}async[a78_0x51eba2(0x1ad)](_0x49f97b){const _0x5d557b=a78_0x51eba2,_0x3b00b5={};_0x3b00b5[_0x5d557b(0x1aa)]=_0x5d557b(0x1c4);const _0x53bcb5=_0x3b00b5;try{const _0x5c7ba5=_0x49f97b['test']['id'],_0x513367=_0x49f97b[_0x5d557b(0x17e)],_0x29b4ac=_0x513367[_0x5d557b(0x186)](),_0x4cacc3=_0x513367[_0x5d557b(0x1c2)]()[_0x5d557b(0x1ab)](_0x5c7ba5);this[_0x5d557b(0x1b2)][_0x5d557b(0x1c7)](_0x5d557b(0x182)+_0x5c7ba5);const {[TestFrameworkConstants[_0x5d557b(0x19f)]]:_0x3f1728='',[TestFrameworkConstants[_0x5d557b(0x177)]]:_0x1c9009='',[TestFrameworkConstants[_0x5d557b(0x189)]]:_0x5686a6='',[TestFrameworkConstants['KEY_TEST_ENDED_AT']]:_0x1fafef=''}=_0x4cacc3,_0x134da9=_0x513367[_0x5d557b(0x18b)]()[_0x5d557b(0x173)]()[_0x5d557b(0x181)]('.')[0x1],_0x1ed943=_0x513367[_0x5d557b(0x1dd)]()[_0x5d557b(0x173)]()[_0x5d557b(0x181)]('.')[0x1],_0x424b29=global?.['__workerDetails']?.[_0x5d557b(0x1b1)]?.[_0x5d557b(0x199)];;const _0x1bf2a7=_0x513367[_0x5d557b(0x18c)](),_0x41c725=Buffer[_0x5d557b(0x1ac)](JSON[_0x5d557b(0x1bf)](_0x4cacc3))[_0x5d557b(0x173)](_0x53bcb5[_0x5d557b(0x1aa)]),_0x50e404={'hash':_0x29b4ac[_0x5d557b(0x1b0)](),'threadId':_0x29b4ac[_0x5d557b(0x17c)]()[_0x5d557b(0x173)](),'processId':_0x29b4ac[_0x5d557b(0x1b6)]()[_0x5d557b(0x173)]()},_0x103382={};_0x103382[_0x5d557b(0x174)]=_0x424b29,_0x103382[_0x5d557b(0x1cc)]=_0x3f1728,_0x103382[_0x5d557b(0x176)]=_0x1c9009,_0x103382[_0x5d557b(0x1a6)]=_0x134da9,_0x103382[_0x5d557b(0x1d0)]=_0x1ed943,_0x103382[_0x5d557b(0x1cb)]=_0x5686a6,_0x103382['endedAt']=_0x1fafef,_0x103382['uuid']=_0x1bf2a7,_0x103382['eventJson']=_0x41c725,_0x103382[_0x5d557b(0x19b)]=_0x50e404;const _0x5ddd12=_0x103382,_0x3eb674=await GrpcClient[_0x5d557b(0x171)]()[_0x5d557b(0x18d)](_0x5ddd12);this[_0x5d557b(0x1b2)][_0x5d557b(0x1c7)](_0x5d557b(0x1bc)+_0x5c7ba5+_0x5d557b(0x1a2)+_0x134da9+_0x5d557b(0x1c9)+_0x1ed943);}catch(_0x1a6db4){this['logger'][_0x5d557b(0x19e)](_0x5d557b(0x1a3)+util[_0x5d557b(0x198)](_0x1a6db4));}}async[a78_0x51eba2(0x1d3)](_0x381b3b){const _0x156dd8=a78_0x51eba2,_0x54e6c0={'vIgDU':function(_0x540590,_0x45d8c8){return _0x540590(_0x45d8c8);},'WAhAt':_0x156dd8(0x1c4)};try{if(_0x381b3b[_0x156dd8(0x1b3)]){const _0x2c657e=_0x381b3b[_0x156dd8(0x193)]['testId'];this['logger']['debug']('onPageCreate\x20Sending\x20CBT\x20for\x20testId:\x20'+_0x2c657e);const _0x4c33ca=TestInfo[_0x156dd8(0x183)](_0x2c657e),_0x3306d7=TestInfo[_0x156dd8(0x1d8)](_0x2c657e),_0x28e4b6=_0x381b3b[_0x156dd8(0x17e)],_0x3845a0=AutomationFramework[_0x156dd8(0x184)](_0x28e4b6,PlaywrightDriverModule[_0x156dd8(0x1b4)]),_0x342262=_0x3306d7[TestFrameworkConstants[_0x156dd8(0x19f)]],_0x1fb20e=_0x3306d7[TestFrameworkConstants[_0x156dd8(0x177)]],_0x38310f=TestFrameworkState[_0x156dd8(0x1da)][_0x156dd8(0x173)]()[_0x156dd8(0x181)]('.')[0x1],_0x22b97e=HookState[_0x156dd8(0x1d9)][_0x156dd8(0x173)]()[_0x156dd8(0x181)]('.')[0x1],_0x3f64e9=_0x28e4b6[_0x156dd8(0x186)](),_0x2ca383=AutomationFramework[_0x156dd8(0x184)](_0x28e4b6,PlaywrightDriverModule['KEY_HUB_URL'],''),_0x45e329={'provider':_0x54e6c0[_0x156dd8(0x178)](getPlaywrightProvider,_0x2ca383),'frameworkName':_0x28e4b6[_0x156dd8(0x1af)],'frameworkVersion':_0x28e4b6[_0x156dd8(0x1ce)],'frameworkSessionId':AutomationFramework[_0x156dd8(0x184)](_0x28e4b6,PlaywrightDriverModule[_0x156dd8(0x17f)],''),'ref':_0x28e4b6['getRef'](),'hubUrl':_0x2ca383};let _0x172356=AutomationFramework[_0x156dd8(0x184)](_0x28e4b6,PlaywrightDriverModule['KEY_CAPABILITIES'],{});_0x172356=Buffer['from'](JSON[_0x156dd8(0x1bf)](_0x172356))[_0x156dd8(0x173)](_0x54e6c0['WAhAt']);const _0x172c85={'hash':_0x3f64e9[_0x156dd8(0x1b0)](),'threadId':_0x3f64e9[_0x156dd8(0x17c)]()['toString'](),'processId':_0x3f64e9['getProcessId']()['toString']()},_0x26dcd1={};_0x26dcd1[_0x156dd8(0x174)]=_0x3845a0,_0x26dcd1[_0x156dd8(0x1cc)]=_0x342262,_0x26dcd1[_0x156dd8(0x176)]=_0x1fb20e,_0x26dcd1[_0x156dd8(0x1a6)]=_0x38310f,_0x26dcd1[_0x156dd8(0x1d6)]=_0x22b97e,_0x26dcd1[_0x156dd8(0x190)]=_0x4c33ca,_0x26dcd1[_0x156dd8(0x1b7)]=_0x45e329,_0x26dcd1[_0x156dd8(0x1be)]=_0x172356,_0x26dcd1[_0x156dd8(0x19b)]=_0x172c85;const _0x16d0bf=_0x26dcd1;this[_0x156dd8(0x1b2)]['debug']('onPageCreate\x20CBTSession\x20payload:\x20'+util[_0x156dd8(0x198)](_0x16d0bf));const _0x4d653a=await GrpcClient[_0x156dd8(0x171)]()[_0x156dd8(0x1cd)](_0x16d0bf);this[_0x156dd8(0x1b2)][_0x156dd8(0x1c7)](_0x156dd8(0x17b)+_0x2c657e);}}catch(_0x11e561){this['logger'][_0x156dd8(0x19e)](_0x156dd8(0x1c1)+util['format'](_0x11e561));}}}TestHubModule[a78_0x51eba2(0x175)]=a78_0x51eba2(0x1cf),TestHubModule[a78_0x51eba2(0x1c3)]=a78_0x51eba2(0x194),module[a78_0x51eba2(0x18a)]=TestHubModule;function a78_0x53d5(){const _0x1d1111=['CREATE','./playwrightDriverModule.js','testFrameworkState','../framework/testFramework.js','1|7|5|3|2|0|6|4','bind','nGpNb','get','from','sendTestFrameworkEvent','3466519oCOrmc','frameworkName','getId','workerInfo','logger','page','KEY_PLATFORM_INDEX','4TNxrMf','getProcessId','automationSession','631714visFvO','../state/hookState.js','BROWSERSTACK_TESTHUB_JWT','onAllTestEvents','sendTestFrameworkEvent\x20complete\x20for\x20testId:\x20','../state/automationFrameworkState.js','capabilities','stringify','2cEMOVu','Error\x20in\x20sending\x20CBTSession:\x20','getAllData','KEY_TEST_DEFERRED','base64','getJwt','2938365JlNSbR','debug','getModuleName','\x20hookState:\x20','576486IzwgqL','startedAt','testFrameworkName','testSessionEvent','frameworkVersion','TestHubModule','hookState','matchHookRegex','ENV_VAR','onPageCreate','BROWSERSTACK_TESTHUB_UUID','../../../helpers/classLogger.js','testHookState','values','getTestDetails','POST','TEST','name','55fNAjnI','getCurrentHookState','getInstance','./baseModule','toString','platformIndex','MODULE_NAME','testFrameworkVersion','KEY_TEST_FRAMEWORK_VERSION','vIgDU','8ufrRFQ','../framework/automationFramework.js','onPageCreate\x20CBTSession\x20complete\x20for\x20testId:\x20','getThreadId','../framework/constants/testFrameworkConstants.js','instance','KEY_SESSION_ID','../browserstackCLI.js','split','sendTestFrameworkEvent\x20testId:\x20','getTestUUID','getState','../cliUtils.js','getContext','DeArm','env','KEY_TEST_STARTED_AT','exports','getCurrentTestState','getRef','testFrameworkEvent','3302590DBnXFH','1729635tUgNls','testUuid','BLGiO','testhubConfig','testInfo','test_deferred','../state/testFrameworkState.js','4684752eHFjmU','forEach','format','parallelIndex','registerObserver','executionContext','../TestInfo.js','../grpcClient.js','error','KEY_TEST_FRAMEWORK_NAME','getBuildHashedId','9fDyfZg','\x20testState:\x20','Error\x20in\x20sendTestFrameworkEvent:\x20'];a78_0x53d5=function(){return _0x1d1111;};return a78_0x53d5();}
@@ -1 +1 @@
1
- const a77_0x1ef25b=a77_0x4d8c;(function(_0x4158c7,_0x152155){const _0x5fe476=a77_0x4d8c,_0x394380=_0x4158c7();while(!![]){try{const _0x4907c0=-parseInt(_0x5fe476(0xae))/0x1*(-parseInt(_0x5fe476(0xb1))/0x2)+parseInt(_0x5fe476(0xb6))/0x3*(-parseInt(_0x5fe476(0xb5))/0x4)+-parseInt(_0x5fe476(0xa8))/0x5*(parseInt(_0x5fe476(0xac))/0x6)+parseInt(_0x5fe476(0xaf))/0x7+parseInt(_0x5fe476(0xba))/0x8+-parseInt(_0x5fe476(0xad))/0x9+parseInt(_0x5fe476(0xab))/0xa;if(_0x4907c0===_0x152155)break;else _0x394380['push'](_0x394380['shift']());}catch(_0x2919c7){_0x394380['push'](_0x394380['shift']());}}}(a77_0x201c,0xde30b));const {PLAYWRIGHT}=require(a77_0x1ef25b(0xaa)),a77_0x13d3d4={};a77_0x13d3d4[a77_0x1ef25b(0xbb)]=0x0,a77_0x13d3d4['toString']=function(){const _0x1427f5=a77_0x1ef25b,_0x7d4cb5={};_0x7d4cb5[_0x1427f5(0xbc)]=_0x1427f5(0xa5);const _0xdaf937=_0x7d4cb5;return _0xdaf937[_0x1427f5(0xbc)];};const a77_0x537f2a={};a77_0x537f2a['value']=0x1,a77_0x537f2a[a77_0x1ef25b(0xb9)]=function(){const _0x2f62ee=a77_0x1ef25b,_0x530445={};_0x530445[_0x2f62ee(0xb0)]='AutomationFrameworkState.CREATE';const _0x27e454=_0x530445;return _0x27e454[_0x2f62ee(0xb0)];};const a77_0x3aea2c={};a77_0x3aea2c[a77_0x1ef25b(0xbb)]=0x2,a77_0x3aea2c[a77_0x1ef25b(0xb9)]=function(){const _0x5d8dc0=a77_0x1ef25b,_0x30c6b7={};_0x30c6b7[_0x5d8dc0(0xa7)]='AutomationFrameworkState.PLAYWRIGHT_DISPATCH';const _0x4629c1=_0x30c6b7;return _0x4629c1[_0x5d8dc0(0xa7)];};const a77_0x32b58a={};a77_0x32b58a[a77_0x1ef25b(0xbb)]=0x3,a77_0x32b58a[a77_0x1ef25b(0xb9)]=function(){const _0x2852ea=a77_0x1ef25b,_0x1c88d8={};_0x1c88d8['xSxPe']=_0x2852ea(0xb4);const _0x6fba3c=_0x1c88d8;return _0x6fba3c[_0x2852ea(0xb8)];};function a77_0x201c(){const _0x1397fb=['BJEEf','../../utils/constants','8742620zKnQdY','42uSUJFZ','2240298IeRfhZ','902VeDLfl','2202781MayjNv','KjAmc','2086OvHqsO','AutomationFrameworkState.IDLE','find','AutomationFrameworkState.EXECUTE','663444nEPqRx','9mhNGOk','exports','xSxPe','toString','2462896GKtjUi','value','OjIHh','AutomationFrameworkState.QUIT','values','freeze','AutomationFrameworkState.NONE','qKJor','xFjTA','557855HodWBY'];a77_0x201c=function(){return _0x1397fb;};return a77_0x201c();}const a77_0x4655f4={};a77_0x4655f4[a77_0x1ef25b(0xbb)]=0x4,a77_0x4655f4[a77_0x1ef25b(0xb9)]=function(){const _0x29621a=a77_0x1ef25b,_0x3dc39f={};_0x3dc39f['qKJor']=_0x29621a(0xb2);const _0x32b078=_0x3dc39f;return _0x32b078[_0x29621a(0xa6)];};const a77_0x57a610={};a77_0x57a610[a77_0x1ef25b(0xbb)]=0x5,a77_0x57a610[a77_0x1ef25b(0xb9)]=function(){const _0x2971a6=a77_0x1ef25b,_0x2e7212={};_0x2e7212[_0x2971a6(0xa9)]=_0x2971a6(0xbd);const _0x2ef46d=_0x2e7212;return _0x2ef46d[_0x2971a6(0xa9)];};const AutomationFrameworkState=Object[a77_0x1ef25b(0xa4)]({'NONE':a77_0x13d3d4,'CREATE':a77_0x537f2a,'PLAYWRIGHT_DISPATCH':a77_0x3aea2c,'EXECUTE':a77_0x32b58a,'IDLE':a77_0x4655f4,'QUIT':a77_0x57a610,'fromValue'(_0x46d370){const _0xf2d71b=a77_0x1ef25b;return Object[_0xf2d71b(0xbe)](AutomationFrameworkState)[_0xf2d71b(0xb3)](_0x1798de=>_0x1798de[_0xf2d71b(0xbb)]===_0x46d370);}});function a77_0x4d8c(_0x759dc7,_0x38091a){const _0x201ce3=a77_0x201c();return a77_0x4d8c=function(_0x4d8c58,_0x5efb29){_0x4d8c58=_0x4d8c58-0xa4;let _0x1cffc9=_0x201ce3[_0x4d8c58];return _0x1cffc9;},a77_0x4d8c(_0x759dc7,_0x38091a);}module[a77_0x1ef25b(0xb7)]=AutomationFrameworkState;
1
+ const a79_0x9b4777=a79_0x4061;function a79_0x4213(){const _0x5eb26f=['Ysuch','MdVWS','exports','freeze','values','3285121iIPKQk','aDfew','find','30036nDWnQL','AutomationFrameworkState.NONE','fJnff','33496848Yupsfb','297AwqcqN','AutomationFrameworkState.CREATE','319045JzYcSU','925CjXSsx','112912tDYKBZ','value','toString','LyUjc','2578ZsnqCp','AutomationFrameworkState.PLAYWRIGHT_DISPATCH','AutomationFrameworkState.IDLE','CdOra','../../utils/constants','AutomationFrameworkState.QUIT','3189DkRppr','6gRorOm','10384710KmJrEN'];a79_0x4213=function(){return _0x5eb26f;};return a79_0x4213();}function a79_0x4061(_0x23a6f8,_0x275ee8){const _0x4213ce=a79_0x4213();return a79_0x4061=function(_0x4061aa,_0x3a92cb){_0x4061aa=_0x4061aa-0xdc;let _0x1a32e7=_0x4213ce[_0x4061aa];return _0x1a32e7;},a79_0x4061(_0x23a6f8,_0x275ee8);}(function(_0x3419ad,_0x3dbaf6){const _0x1d5cf1=a79_0x4061,_0x4f6224=_0x3419ad();while(!![]){try{const _0x3c8c21=-parseInt(_0x1d5cf1(0xf7))/0x1+parseInt(_0x1d5cf1(0xe0))/0x2*(-parseInt(_0x1d5cf1(0xe6))/0x3)+-parseInt(_0x1d5cf1(0xf1))/0x4*(-parseInt(_0x1d5cf1(0xf8))/0x5)+parseInt(_0x1d5cf1(0xe7))/0x6*(-parseInt(_0x1d5cf1(0xee))/0x7)+parseInt(_0x1d5cf1(0xdc))/0x8*(-parseInt(_0x1d5cf1(0xf5))/0x9)+-parseInt(_0x1d5cf1(0xe8))/0xa+parseInt(_0x1d5cf1(0xf4))/0xb;if(_0x3c8c21===_0x3dbaf6)break;else _0x4f6224['push'](_0x4f6224['shift']());}catch(_0x1ca4cd){_0x4f6224['push'](_0x4f6224['shift']());}}}(a79_0x4213,0xbc5d9));const {PLAYWRIGHT}=require(a79_0x9b4777(0xe4)),a79_0x297d32={};a79_0x297d32[a79_0x9b4777(0xdd)]=0x0,a79_0x297d32['toString']=function(){const _0x52b771=a79_0x9b4777,_0x4096f8={};_0x4096f8[_0x52b771(0xe9)]=_0x52b771(0xf2);const _0x257a0b=_0x4096f8;return _0x257a0b[_0x52b771(0xe9)];};const a79_0x5c1616={};a79_0x5c1616[a79_0x9b4777(0xdd)]=0x1,a79_0x5c1616[a79_0x9b4777(0xde)]=function(){const _0x34892e=a79_0x9b4777,_0x3f05c1={};_0x3f05c1[_0x34892e(0xea)]=_0x34892e(0xf6);const _0x42564a=_0x3f05c1;return _0x42564a[_0x34892e(0xea)];};const a79_0x79e8b9={};a79_0x79e8b9[a79_0x9b4777(0xdd)]=0x2,a79_0x79e8b9[a79_0x9b4777(0xde)]=function(){const _0x2a612b=a79_0x9b4777,_0x59757d={};_0x59757d['CdOra']=_0x2a612b(0xe1);const _0x42ca3d=_0x59757d;return _0x42ca3d[_0x2a612b(0xe3)];};const a79_0x26dbce={};a79_0x26dbce['value']=0x3,a79_0x26dbce['toString']=function(){const _0x4a7ca5=a79_0x9b4777,_0x2f0855={};_0x2f0855['aDfew']='AutomationFrameworkState.EXECUTE';const _0x4c439f=_0x2f0855;return _0x4c439f[_0x4a7ca5(0xef)];};const a79_0x15bb3a={};a79_0x15bb3a['value']=0x4,a79_0x15bb3a['toString']=function(){const _0x1dae9f=a79_0x9b4777,_0x20940e={};_0x20940e[_0x1dae9f(0xdf)]=_0x1dae9f(0xe2);const _0x3c0a16=_0x20940e;return _0x3c0a16['LyUjc'];};const a79_0x2c54ec={};a79_0x2c54ec['value']=0x5,a79_0x2c54ec[a79_0x9b4777(0xde)]=function(){const _0x36f440=a79_0x9b4777,_0x249240={};_0x249240[_0x36f440(0xf3)]=_0x36f440(0xe5);const _0x596825=_0x249240;return _0x596825['fJnff'];};const AutomationFrameworkState=Object[a79_0x9b4777(0xec)]({'NONE':a79_0x297d32,'CREATE':a79_0x5c1616,'PLAYWRIGHT_DISPATCH':a79_0x79e8b9,'EXECUTE':a79_0x26dbce,'IDLE':a79_0x15bb3a,'QUIT':a79_0x2c54ec,'fromValue'(_0x4ad703){const _0x3b4cd6=a79_0x9b4777;return Object[_0x3b4cd6(0xed)](AutomationFrameworkState)[_0x3b4cd6(0xf0)](_0x576c96=>_0x576c96[_0x3b4cd6(0xdd)]===_0x4ad703);}});module[a79_0x9b4777(0xeb)]=AutomationFrameworkState;
@@ -1 +1 @@
1
- const a78_0x2cffd1=a78_0x2415;(function(_0x256582,_0xdb1bed){const _0x483e1d=a78_0x2415,_0x31211e=_0x256582();while(!![]){try{const _0x1ec691=-parseInt(_0x483e1d(0x77))/0x1*(parseInt(_0x483e1d(0x6b))/0x2)+parseInt(_0x483e1d(0x76))/0x3*(parseInt(_0x483e1d(0x7e))/0x4)+parseInt(_0x483e1d(0x7b))/0x5+parseInt(_0x483e1d(0x7f))/0x6*(-parseInt(_0x483e1d(0x75))/0x7)+-parseInt(_0x483e1d(0x6c))/0x8*(parseInt(_0x483e1d(0x74))/0x9)+parseInt(_0x483e1d(0x70))/0xa+-parseInt(_0x483e1d(0x7d))/0xb*(-parseInt(_0x483e1d(0x73))/0xc);if(_0x1ec691===_0xdb1bed)break;else _0x31211e['push'](_0x31211e['shift']());}catch(_0x3ba7f8){_0x31211e['push'](_0x31211e['shift']());}}}(a78_0x3303,0xf10d6));const a78_0x47fbbd={};function a78_0x2415(_0x4c4b0a,_0x366a26){const _0x3303c3=a78_0x3303();return a78_0x2415=function(_0x241526,_0x3e9d54){_0x241526=_0x241526-0x6b;let _0x45ac7b=_0x3303c3[_0x241526];return _0x45ac7b;},a78_0x2415(_0x4c4b0a,_0x366a26);}a78_0x47fbbd[a78_0x2cffd1(0x79)]=0x0,a78_0x47fbbd[a78_0x2cffd1(0x7a)]=function(){const _0x402e0c=a78_0x2cffd1,_0x3c1d39={};_0x3c1d39[_0x402e0c(0x6e)]=_0x402e0c(0x7c);const _0x21c2b1=_0x3c1d39;return _0x21c2b1[_0x402e0c(0x6e)];};const a78_0x3dab88={};a78_0x3dab88[a78_0x2cffd1(0x79)]=0x1,a78_0x3dab88['toString']=function(){const _0x3dae0b=a78_0x2cffd1,_0x384a56={};_0x384a56[_0x3dae0b(0x71)]='HookState.PRE';const _0x40d932=_0x384a56;return _0x40d932[_0x3dae0b(0x71)];};const a78_0x33b8dd={};a78_0x33b8dd[a78_0x2cffd1(0x79)]=0x2,a78_0x33b8dd['toString']=function(){const _0x97f929=a78_0x2cffd1,_0x2a6312={};_0x2a6312[_0x97f929(0x72)]='HookState.POST';const _0x887d31=_0x2a6312;return _0x887d31[_0x97f929(0x72)];};const HookState=Object[a78_0x2cffd1(0x6d)]({'NONE':a78_0x47fbbd,'PRE':a78_0x3dab88,'POST':a78_0x33b8dd,'fromValue'(_0x3489aa){const _0x4e64c0=a78_0x2cffd1;return Object[_0x4e64c0(0x78)](HookState)[_0x4e64c0(0x6f)](_0xc6b01=>_0xc6b01[_0x4e64c0(0x79)]===_0x3489aa);}});function a78_0x3303(){const _0x56648c=['toString','666570kxWrNx','HookState.NONE','11qlNxSN','18156JNAzHy','7098bqften','47698NzutSO','1088rMjzoz','freeze','QhEXx','find','7381080slJNWV','ohSyM','mTGuE','26727192SBEVlV','121122pUmFGj','4718oedHuT','357eWSrbY','1QFmLvF','values','value'];a78_0x3303=function(){return _0x56648c;};return a78_0x3303();}module['exports']=HookState;
1
+ const a80_0x4e1c85=a80_0xf8b0;(function(_0x131aac,_0x40970d){const _0x4fd2bb=a80_0xf8b0,_0x4568bd=_0x131aac();while(!![]){try{const _0x3b80ec=-parseInt(_0x4fd2bb(0x140))/0x1*(parseInt(_0x4fd2bb(0x133))/0x2)+parseInt(_0x4fd2bb(0x146))/0x3+parseInt(_0x4fd2bb(0x13d))/0x4*(parseInt(_0x4fd2bb(0x13c))/0x5)+parseInt(_0x4fd2bb(0x147))/0x6+-parseInt(_0x4fd2bb(0x138))/0x7+parseInt(_0x4fd2bb(0x135))/0x8*(-parseInt(_0x4fd2bb(0x136))/0x9)+parseInt(_0x4fd2bb(0x142))/0xa*(-parseInt(_0x4fd2bb(0x144))/0xb);if(_0x3b80ec===_0x40970d)break;else _0x4568bd['push'](_0x4568bd['shift']());}catch(_0x589127){_0x4568bd['push'](_0x4568bd['shift']());}}}(a80_0x1c70,0x76045));const a80_0x7debc4={};a80_0x7debc4[a80_0x4e1c85(0x143)]=0x0,a80_0x7debc4[a80_0x4e1c85(0x13e)]=function(){const _0x56ffe8=a80_0x4e1c85,_0x5c1c99={};_0x5c1c99[_0x56ffe8(0x134)]=_0x56ffe8(0x13b);const _0x310bb4=_0x5c1c99;return _0x310bb4['keBVj'];};const a80_0x353daa={};a80_0x353daa[a80_0x4e1c85(0x143)]=0x1,a80_0x353daa[a80_0x4e1c85(0x13e)]=function(){const _0x71f2a=a80_0x4e1c85,_0x2e726d={};_0x2e726d[_0x71f2a(0x137)]='HookState.PRE';const _0x39d8e2=_0x2e726d;return _0x39d8e2['hzGlF'];};const a80_0x397c55={};a80_0x397c55[a80_0x4e1c85(0x143)]=0x2,a80_0x397c55[a80_0x4e1c85(0x13e)]=function(){const _0x36db8a=a80_0x4e1c85,_0x3dfa2f={};_0x3dfa2f[_0x36db8a(0x13a)]=_0x36db8a(0x145);const _0x50166f=_0x3dfa2f;return _0x50166f['yRiNj'];};function a80_0x1c70(){const _0x41719f=['742hBxaMj','keBVj','156872UuGddd','369FRtSfD','hzGlF','2391333dUTbZH','values','yRiNj','HookState.NONE','15nRtend','1283932OCjZqm','toString','freeze','1502oPTppC','find','786220RWemOw','value','11CAHKpR','HookState.POST','1314048ISexNZ','5183304AtgwTf'];a80_0x1c70=function(){return _0x41719f;};return a80_0x1c70();}function a80_0xf8b0(_0x198702,_0x3fe64c){const _0x1c7085=a80_0x1c70();return a80_0xf8b0=function(_0xf8b0a1,_0xf0087f){_0xf8b0a1=_0xf8b0a1-0x133;let _0x2f51e6=_0x1c7085[_0xf8b0a1];return _0x2f51e6;},a80_0xf8b0(_0x198702,_0x3fe64c);}const HookState=Object[a80_0x4e1c85(0x13f)]({'NONE':a80_0x7debc4,'PRE':a80_0x353daa,'POST':a80_0x397c55,'fromValue'(_0x18bfff){const _0x24432d=a80_0x4e1c85;return Object[_0x24432d(0x139)](HookState)[_0x24432d(0x141)](_0x5321a6=>_0x5321a6[_0x24432d(0x143)]===_0x18bfff);}});module['exports']=HookState;
@@ -1 +1 @@
1
- const a79_0x5d5d62=a79_0x1396;(function(_0x582bf3,_0x53b029){const _0x32c322=a79_0x1396,_0x476177=_0x582bf3();while(!![]){try{const _0x538d3e=parseInt(_0x32c322(0xce))/0x1+-parseInt(_0x32c322(0xcc))/0x2+parseInt(_0x32c322(0xc2))/0x3+parseInt(_0x32c322(0xb9))/0x4*(parseInt(_0x32c322(0xcb))/0x5)+-parseInt(_0x32c322(0xb2))/0x6*(parseInt(_0x32c322(0xb3))/0x7)+parseInt(_0x32c322(0xc4))/0x8*(-parseInt(_0x32c322(0xaf))/0x9)+parseInt(_0x32c322(0xc1))/0xa;if(_0x538d3e===_0x53b029)break;else _0x476177['push'](_0x476177['shift']());}catch(_0xd7f653){_0x476177['push'](_0x476177['shift']());}}}(a79_0x2219,0x95fa7));const a79_0x528d8a={};function a79_0x2219(){const _0x2ba662=['TestFrameworkState.TEST_SCREENSHOT','GRKDn','exports','TestFrameworkState.STEP','60wXpQVu','TestFrameworkState.INIT_TEST','TestFrameworkState.BEFORE_EACH','freeze','TestFrameworkState.LOG_REPORT','TestFrameworkState.BEFORE_ALL','TestFrameworkState.TEST','TestFrameworkState.AFTER_ALL','825800ZCKJQw','2754231eIEAgY','TestFrameworkState.SETUP_FIXTURE','18296xhElPG','sJeQP','fALFa','MkFLc','toString','value','fRgNq','268330bdnFzd','1928196iXnpZA','qoNhT','580818HpMWaR','TestFrameworkState.LOG','TestFrameworkState.NONE','NglDP','find','nSJPg','iiyoX','54kGLYwD','QNqvu','values','19374qoHYCt','1722lpeReh','orLhR'];a79_0x2219=function(){return _0x2ba662;};return a79_0x2219();}a79_0x528d8a[a79_0x5d5d62(0xc9)]=0x0,a79_0x528d8a[a79_0x5d5d62(0xc8)]=function(){const _0x299cab=a79_0x5d5d62,_0x527e3c={};_0x527e3c[_0x299cab(0xc5)]=_0x299cab(0xaa);const _0x17b776=_0x527e3c;return _0x17b776['sJeQP'];};const a79_0x4723d5={};a79_0x4723d5[a79_0x5d5d62(0xc9)]=0x1,a79_0x4723d5[a79_0x5d5d62(0xc8)]=function(){const _0x2e8b12=a79_0x5d5d62,_0x480aa4={};_0x480aa4[_0x2e8b12(0xb4)]=_0x2e8b12(0xbe);const _0x4af986=_0x480aa4;return _0x4af986[_0x2e8b12(0xb4)];};const a79_0x142cda={};a79_0x142cda[a79_0x5d5d62(0xc9)]=0x2,a79_0x142cda[a79_0x5d5d62(0xc8)]=function(){const _0x40cbef=a79_0x5d5d62,_0x3c0469={};_0x3c0469['JvoIT']=_0x40cbef(0xcf);const _0x4f397a=_0x3c0469;return _0x4f397a['JvoIT'];};const a79_0x2a1eb0={};a79_0x2a1eb0[a79_0x5d5d62(0xc9)]=0x3,a79_0x2a1eb0[a79_0x5d5d62(0xc8)]=function(){const _0x19c061=a79_0x5d5d62,_0x2c19b6={};_0x2c19b6[_0x19c061(0xc7)]=_0x19c061(0xc3);const _0x215624=_0x2c19b6;return _0x215624[_0x19c061(0xc7)];};const a79_0x6737f1={};a79_0x6737f1[a79_0x5d5d62(0xc9)]=0x4,a79_0x6737f1[a79_0x5d5d62(0xc8)]=function(){const _0x58b796=a79_0x5d5d62,_0x5963a0={};_0x5963a0['QNqvu']=_0x58b796(0xba);const _0x2c9c44=_0x5963a0;return _0x2c9c44[_0x58b796(0xb0)];};const a79_0x48a4bb={};a79_0x48a4bb[a79_0x5d5d62(0xc9)]=0x5,a79_0x48a4bb[a79_0x5d5d62(0xc8)]=function(){const _0x32a0d6=a79_0x5d5d62,_0x596f82={};_0x596f82['GRKDn']=_0x32a0d6(0xbb);const _0x302d89=_0x596f82;return _0x302d89[_0x32a0d6(0xb6)];};const a79_0x24255d={};a79_0x24255d['value']=0x6,a79_0x24255d['toString']=function(){const _0x5a9af2=a79_0x5d5d62,_0x5f85ef={};_0x5f85ef[_0x5a9af2(0xab)]='TestFrameworkState.AFTER_EACH';const _0x4210ce=_0x5f85ef;return _0x4210ce[_0x5a9af2(0xab)];};const a79_0x275459={};a79_0x275459['value']=0x7,a79_0x275459[a79_0x5d5d62(0xc8)]=function(){const _0xabf82a=a79_0x5d5d62,_0x1fe5f2={};_0x1fe5f2[_0xabf82a(0xae)]=_0xabf82a(0xbf);const _0x4ae76b=_0x1fe5f2;return _0x4ae76b[_0xabf82a(0xae)];};const a79_0x44c7b8={};a79_0x44c7b8[a79_0x5d5d62(0xc9)]=0x8,a79_0x44c7b8[a79_0x5d5d62(0xc8)]=function(){const _0x2ba5d1=a79_0x5d5d62,_0xdba1b7={};_0xdba1b7[_0x2ba5d1(0xad)]=_0x2ba5d1(0xb8);const _0x1217a5=_0xdba1b7;return _0x1217a5[_0x2ba5d1(0xad)];};const a79_0x3dfbcf={};a79_0x3dfbcf['value']=0x9,a79_0x3dfbcf[a79_0x5d5d62(0xc8)]=function(){const _0x51aeab=a79_0x5d5d62,_0x1556bf={};_0x1556bf['fRgNq']=_0x51aeab(0xbd);const _0x231750=_0x1556bf;return _0x231750[_0x51aeab(0xca)];};const a79_0x4f63a7={};a79_0x4f63a7[a79_0x5d5d62(0xc9)]=0xa,a79_0x4f63a7[a79_0x5d5d62(0xc8)]=function(){const _0x29fdf9=a79_0x5d5d62,_0x3447e0={};_0x3447e0[_0x29fdf9(0xc6)]=_0x29fdf9(0xc0);const _0x3e18c6=_0x3447e0;return _0x3e18c6[_0x29fdf9(0xc6)];};const a79_0x46bd8e={};a79_0x46bd8e[a79_0x5d5d62(0xc9)]=0xb,a79_0x46bd8e[a79_0x5d5d62(0xc8)]=function(){const _0x10f82d=a79_0x5d5d62,_0x4587f4={};_0x4587f4[_0x10f82d(0xcd)]=_0x10f82d(0xb5);const _0x1d0009=_0x4587f4;return _0x1d0009[_0x10f82d(0xcd)];};function a79_0x1396(_0x40715d,_0x3e5b77){const _0x2219d7=a79_0x2219();return a79_0x1396=function(_0x1396a2,_0x9fa8b){_0x1396a2=_0x1396a2-0xaa;let _0xd4726=_0x2219d7[_0x1396a2];return _0xd4726;},a79_0x1396(_0x40715d,_0x3e5b77);}const TestFrameworkState=Object[a79_0x5d5d62(0xbc)]({'NONE':a79_0x528d8a,'BEFORE_ALL':a79_0x4723d5,'LOG':a79_0x142cda,'SETUP_FIXTURE':a79_0x2a1eb0,'INIT_TEST':a79_0x6737f1,'BEFORE_EACH':a79_0x48a4bb,'AFTER_EACH':a79_0x24255d,'TEST':a79_0x275459,'STEP':a79_0x44c7b8,'LOG_REPORT':a79_0x3dfbcf,'AFTER_ALL':a79_0x4f63a7,'TEST_SCREENSHOT':a79_0x46bd8e,'fromValue'(_0x2c21ac){const _0xd06b57=a79_0x5d5d62;return Object[_0xd06b57(0xb1)](TestFrameworkState)[_0xd06b57(0xac)](_0x138e49=>_0x138e49[_0xd06b57(0xc9)]===_0x2c21ac);}});module[a79_0x5d5d62(0xb7)]=TestFrameworkState;
1
+ const a81_0x10b78d=a81_0x4992;(function(_0x36f5a5,_0x2b3f35){const _0x3cba1e=a81_0x4992,_0x5a94bd=_0x36f5a5();while(!![]){try{const _0x3387f5=parseInt(_0x3cba1e(0xe9))/0x1*(parseInt(_0x3cba1e(0xdf))/0x2)+-parseInt(_0x3cba1e(0xda))/0x3*(parseInt(_0x3cba1e(0xd1))/0x4)+parseInt(_0x3cba1e(0xd0))/0x5*(parseInt(_0x3cba1e(0xd2))/0x6)+parseInt(_0x3cba1e(0xe4))/0x7*(parseInt(_0x3cba1e(0xc8))/0x8)+-parseInt(_0x3cba1e(0xcb))/0x9+-parseInt(_0x3cba1e(0xe7))/0xa*(parseInt(_0x3cba1e(0xea))/0xb)+parseInt(_0x3cba1e(0xe5))/0xc;if(_0x3387f5===_0x2b3f35)break;else _0x5a94bd['push'](_0x5a94bd['shift']());}catch(_0xcb405a){_0x5a94bd['push'](_0x5a94bd['shift']());}}}(a81_0x5484,0x465e7));const a81_0x5d6c53={};a81_0x5d6c53['value']=0x0,a81_0x5d6c53[a81_0x10b78d(0xd3)]=function(){const _0xf4b549=a81_0x10b78d,_0x39d6d4={};_0x39d6d4[_0xf4b549(0xc9)]=_0xf4b549(0xef);const _0x238f40=_0x39d6d4;return _0x238f40[_0xf4b549(0xc9)];};function a81_0x4992(_0x11dbdb,_0x451d34){const _0x548418=a81_0x5484();return a81_0x4992=function(_0x49925a,_0x230247){_0x49925a=_0x49925a-0xc7;let _0x48a428=_0x548418[_0x49925a];return _0x48a428;},a81_0x4992(_0x11dbdb,_0x451d34);}const a81_0xa89c51={};a81_0xa89c51['value']=0x1,a81_0xa89c51[a81_0x10b78d(0xd3)]=function(){const _0x5b86dc=a81_0x10b78d,_0x4ab5cd={};_0x4ab5cd[_0x5b86dc(0xeb)]=_0x5b86dc(0xca);const _0x3cc2ed=_0x4ab5cd;return _0x3cc2ed[_0x5b86dc(0xeb)];};const a81_0x5e35da={};a81_0x5e35da[a81_0x10b78d(0xd9)]=0x2,a81_0x5e35da['toString']=function(){const _0x47ddc7=a81_0x10b78d,_0x3ceb07={};_0x3ceb07[_0x47ddc7(0xd7)]=_0x47ddc7(0xed);const _0x5aaf1f=_0x3ceb07;return _0x5aaf1f[_0x47ddc7(0xd7)];};const a81_0x79a214={};a81_0x79a214[a81_0x10b78d(0xd9)]=0x3,a81_0x79a214[a81_0x10b78d(0xd3)]=function(){const _0x2a200a=a81_0x10b78d,_0x1c0414={};_0x1c0414[_0x2a200a(0xc7)]=_0x2a200a(0xe2);const _0x3676eb=_0x1c0414;return _0x3676eb[_0x2a200a(0xc7)];};function a81_0x5484(){const _0xb3d90d=['TestFrameworkState.BEFORE_ALL','3570732qHtxQy','TestFrameworkState.LOG_REPORT','TestFrameworkState.AFTER_EACH','TestFrameworkState.TEST','HaNcw','2246590ZthxqM','12fBtGXp','6sTrfsP','toString','exports','TestFrameworkState.TEST_SCREENSHOT','WMURb','dyWGq','TestFrameworkState.STEP','value','261726SOBjds','find','bRnBH','kMsem','TestFrameworkState.AFTER_ALL','58NaqYvg','TestFrameworkState.BEFORE_EACH','freeze','TestFrameworkState.SETUP_FIXTURE','iZfZx','21KtthJD','7019016TIdisi','TestFrameworkState.INIT_TEST','130XTFjGP','ZUDsn','431WjjJLw','162833YpcBzq','SbCPT','cqnrl','TestFrameworkState.LOG','YKrDf','TestFrameworkState.NONE','utgWs','246424zXhKbd','fDlPN'];a81_0x5484=function(){return _0xb3d90d;};return a81_0x5484();}const a81_0x3c6a12={};a81_0x3c6a12['value']=0x4,a81_0x3c6a12['toString']=function(){const _0x36f5d8=a81_0x10b78d,_0x5a50a9={};_0x5a50a9[_0x36f5d8(0xdc)]=_0x36f5d8(0xe6);const _0x4bd8=_0x5a50a9;return _0x4bd8['bRnBH'];};const a81_0x3733f2={};a81_0x3733f2[a81_0x10b78d(0xd9)]=0x5,a81_0x3733f2[a81_0x10b78d(0xd3)]=function(){const _0x2cdec3=a81_0x10b78d,_0x597a2f={};_0x597a2f[_0x2cdec3(0xe8)]=_0x2cdec3(0xe0);const _0x12ebc8=_0x597a2f;return _0x12ebc8[_0x2cdec3(0xe8)];};const a81_0x5aeeef={};a81_0x5aeeef[a81_0x10b78d(0xd9)]=0x6,a81_0x5aeeef[a81_0x10b78d(0xd3)]=function(){const _0x592088=a81_0x10b78d,_0x11695a={};_0x11695a[_0x592088(0xe3)]=_0x592088(0xcd);const _0x36b19c=_0x11695a;return _0x36b19c[_0x592088(0xe3)];};const a81_0x1dfdd3={};a81_0x1dfdd3['value']=0x7,a81_0x1dfdd3['toString']=function(){const _0x440887=a81_0x10b78d,_0x50668a={};_0x50668a[_0x440887(0xec)]=_0x440887(0xce);const _0x2add95=_0x50668a;return _0x2add95[_0x440887(0xec)];};const a81_0x59524c={};a81_0x59524c[a81_0x10b78d(0xd9)]=0x8,a81_0x59524c['toString']=function(){const _0x1dcb04=a81_0x10b78d,_0x1811ce={};_0x1811ce['HaNcw']=_0x1dcb04(0xd8);const _0x1195d2=_0x1811ce;return _0x1195d2[_0x1dcb04(0xcf)];};const a81_0x23853c={};a81_0x23853c[a81_0x10b78d(0xd9)]=0x9,a81_0x23853c[a81_0x10b78d(0xd3)]=function(){const _0x401d0d=a81_0x10b78d,_0x4540e9={};_0x4540e9[_0x401d0d(0xdd)]=_0x401d0d(0xcc);const _0x3b2de2=_0x4540e9;return _0x3b2de2[_0x401d0d(0xdd)];};const a81_0x38a6c8={};a81_0x38a6c8[a81_0x10b78d(0xd9)]=0xa,a81_0x38a6c8['toString']=function(){const _0x564964=a81_0x10b78d,_0x572093={};_0x572093[_0x564964(0xd6)]=_0x564964(0xde);const _0x3739af=_0x572093;return _0x3739af[_0x564964(0xd6)];};const a81_0x4ce341={};a81_0x4ce341['value']=0xb,a81_0x4ce341[a81_0x10b78d(0xd3)]=function(){const _0x16ca93=a81_0x10b78d,_0x1d6dcd={};_0x1d6dcd[_0x16ca93(0xee)]=_0x16ca93(0xd5);const _0x2a4d82=_0x1d6dcd;return _0x2a4d82['YKrDf'];};const TestFrameworkState=Object[a81_0x10b78d(0xe1)]({'NONE':a81_0x5d6c53,'BEFORE_ALL':a81_0xa89c51,'LOG':a81_0x5e35da,'SETUP_FIXTURE':a81_0x79a214,'INIT_TEST':a81_0x3c6a12,'BEFORE_EACH':a81_0x3733f2,'AFTER_EACH':a81_0x5aeeef,'TEST':a81_0x1dfdd3,'STEP':a81_0x59524c,'LOG_REPORT':a81_0x23853c,'AFTER_ALL':a81_0x38a6c8,'TEST_SCREENSHOT':a81_0x4ce341,'fromValue'(_0x212fc1){const _0x3d48e8=a81_0x10b78d;return Object['values'](TestFrameworkState)[_0x3d48e8(0xdb)](_0x3865cb=>_0x3865cb[_0x3d48e8(0xd9)]===_0x212fc1);}});module[a81_0x10b78d(0xd4)]=TestFrameworkState;
@@ -1 +1 @@
1
- const a80_0x57725c=a80_0x2c77;(function(_0x549ab8,_0x118acc){const _0x3c594c=a80_0x2c77,_0x521c46=_0x549ab8();while(!![]){try{const _0x57c59d=-parseInt(_0x3c594c(0x1c4))/0x1+-parseInt(_0x3c594c(0x204))/0x2+parseInt(_0x3c594c(0x206))/0x3+parseInt(_0x3c594c(0x1ea))/0x4*(parseInt(_0x3c594c(0x1f7))/0x5)+-parseInt(_0x3c594c(0x1bf))/0x6+-parseInt(_0x3c594c(0x1c0))/0x7+parseInt(_0x3c594c(0x1fc))/0x8;if(_0x57c59d===_0x118acc)break;else _0x521c46['push'](_0x521c46['shift']());}catch(_0xb3f968){_0x521c46['push'](_0x521c46['shift']());}}}(a80_0x2471,0x95deb));const os=require('os'),fs=require('fs'),path=require(a80_0x57725c(0x1cc)),util=require(a80_0x57725c(0x1dc)),BrowserstackCLI=require('./browserstackCLI'),https=require('https'),http=require('http'),AutomationFramework=require(a80_0x57725c(0x1e9)),PlaywrightDriverModule=require('./modules/playwrightDriverModule'),TestInfo=require(a80_0x57725c(0x1bb)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require(a80_0x57725c(0x1ed));function a80_0x2471(){const _0x35902d=['size','setTestDetails','debug','getInstance','./TestInfo','mkdirSync','eHuIc','trackFile','4090140dGRHIi','6817944iyXbOD','format','message','Created\x20folder:\x20%s','596149wWlhsg','ohVJo','unlinkSync','xiifJ','kUZKV','clearAttachments','Dueqo','get','path','join','PuyxV','getTrackedInstance','Djylk','KEY_FILE_PATH','error','recursive','jdKmW','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','Attachment\x20recevied\x20for\x20path:\x20%s','LFhYH','startsWith','TSdIm','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','createWriteStream','util','TestLevel','finish','KEY_FILE_SIZE','File\x20downloaded\x20to:\x20%s','BuildLevel','rTCGN','CgMBv','Created\x20.browserstack\x20folder\x20at:\x20%s','modules','KEY_TEST_ATTACHMENTS','QVKsp','bphKv','./framework/automationFramework','88sUwfsu','pipe','buildHashedId','../../helpers/classLogger.js','eFWkJ','File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.','FJhKD','UqLdm','force','GDxrn','fkbGj','mGxKH','getTestDetails','43980JVJTjW','OVEQy','close','SLETf','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','26184616NxDfNm','FTAQx','xpxCW','KEY_FILE_NAME','.browserstack','zTNAz','homedir','rmSync','1273006eFaIdU','toFixed','106836UGCqrU','basename','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','wlMfj','toObject','trim','TestHubModule','HMytK','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','statusCode','PMncu','existsSync','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','nAWGq','copyFileSync','Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s','statSync','kafHL','testhubConfig','logger'];a80_0x2471=function(){return _0x35902d;};return a80_0x2471();}class uploadAttachmentsManager{static ['logger']=createClassLogger('uploadAttachmentsManager');static['uploadAttachments'](_0x7fbd8e,_0x4a9733=![]){const _0x1ae0be=a80_0x57725c,_0xa96f93={};_0xa96f93[_0x1ae0be(0x1c5)]=function(_0x399722,_0x207ae0){return _0x399722/_0x207ae0;},_0xa96f93[_0x1ae0be(0x1ee)]=function(_0x2699a,_0xbdb5c3){return _0x2699a*_0xbdb5c3;},_0xa96f93['xpxCW']=function(_0x370270,_0x58a946){return _0x370270>_0x58a946;},_0xa96f93['GDxrn']='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0xa96f93[_0x1ae0be(0x1e2)]=_0x1ae0be(0x1e0),_0xa96f93['xiifJ']=function(_0x486f83,_0x599c7c){return _0x486f83===_0x599c7c;},_0xa96f93[_0x1ae0be(0x1f1)]=_0x1ae0be(0x1de),_0xa96f93[_0x1ae0be(0x1c8)]='Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload',_0xa96f93['QVKsp']=_0x1ae0be(0x212),_0xa96f93['kafHL']=_0x1ae0be(0x1d6),_0xa96f93[_0x1ae0be(0x1f0)]=_0x1ae0be(0x200),_0xa96f93[_0x1ae0be(0x1d0)]=_0x1ae0be(0x1d5),_0xa96f93['FTAQx']=_0x1ae0be(0x1e4),_0xa96f93['SLETf']=_0x1ae0be(0x1c3),_0xa96f93[_0x1ae0be(0x210)]=function(_0x284d63,_0x47d83d){return _0x284d63===_0x47d83d;},_0xa96f93[_0x1ae0be(0x20d)]=_0x1ae0be(0x1fb),_0xa96f93[_0x1ae0be(0x1bd)]='https://',_0xa96f93[_0x1ae0be(0x1f5)]='http://',_0xa96f93['bphKv']=_0x1ae0be(0x1d2),_0xa96f93[_0x1ae0be(0x209)]=_0x1ae0be(0x215),_0xa96f93['PuyxV']=function(_0x224260,_0x1755ef){return _0x224260*_0x1755ef;},_0xa96f93[_0x1ae0be(0x1e3)]=function(_0xf36263,_0x1df2e0){return _0xf36263>_0x1df2e0;},_0xa96f93[_0x1ae0be(0x1f8)]=_0x1ae0be(0x1ef);const _0x2b27b1=_0xa96f93;this[_0x1ae0be(0x1b6)]['debug'](util[_0x1ae0be(0x1c1)](_0x2b27b1[_0x1ae0be(0x217)],_0x7fbd8e));const _0xfb58bb=os['homedir'](),_0x505b2c=path[_0x1ae0be(0x1cd)](_0xfb58bb,_0x2b27b1['FJhKD']);!fs[_0x1ae0be(0x211)](_0x505b2c)&&(this['logger'][_0x1ae0be(0x1b9)](util[_0x1ae0be(0x1c1)](_0x2b27b1['Djylk'],_0x505b2c)),fs[_0x1ae0be(0x1bc)](_0x505b2c),this[_0x1ae0be(0x1b6)][_0x1ae0be(0x1b9)](util['format'](_0x2b27b1[_0x1ae0be(0x1fd)],_0x505b2c)));const _0xdd79ff=BrowserstackCLI[_0x1ae0be(0x1ba)]()[_0x1ae0be(0x1e5)]['TestHubModule']?.[_0x1ae0be(0x1b5)]?.[_0x1ae0be(0x20a)]()?.['buildHashedId'],_0x193a86=path[_0x1ae0be(0x1cd)](_0x505b2c,_0xdd79ff);!fs[_0x1ae0be(0x211)](_0x193a86)&&(fs[_0x1ae0be(0x1bc)](_0x193a86),this[_0x1ae0be(0x1b6)][_0x1ae0be(0x1b9)](util['format'](_0x2b27b1[_0x1ae0be(0x1fa)],_0x193a86)));if(_0x2b27b1[_0x1ae0be(0x210)](_0x7fbd8e[_0x1ae0be(0x20b)](),'')){this[_0x1ae0be(0x1b6)][_0x1ae0be(0x1b9)](util[_0x1ae0be(0x1c1)](_0x2b27b1[_0x1ae0be(0x20d)]));return;}if(_0x7fbd8e[_0x1ae0be(0x1d8)](_0x2b27b1[_0x1ae0be(0x1bd)])||_0x7fbd8e[_0x1ae0be(0x1d8)](_0x2b27b1['mGxKH'])){const _0x88ebd8=_0x7fbd8e[_0x1ae0be(0x1d8)](_0x2b27b1[_0x1ae0be(0x1bd)])?https:http,_0x396c59=path[_0x1ae0be(0x207)](_0x7fbd8e),_0x566371=path['join'](_0x193a86,_0x396c59),_0x4fb172=fs[_0x1ae0be(0x1db)](_0x566371);_0x88ebd8[_0x1ae0be(0x1cb)](_0x7fbd8e,_0x3e0ec9=>{const _0x59ad0f=_0x1ae0be;if(_0x2b27b1[_0x59ad0f(0x1c7)](_0x3e0ec9[_0x59ad0f(0x20f)],0xc8))_0x3e0ec9[_0x59ad0f(0x1eb)](_0x4fb172),_0x4fb172['on'](_0x2b27b1[_0x59ad0f(0x1f1)],()=>{const _0x4a22e4=_0x59ad0f;_0x4fb172[_0x4a22e4(0x1f9)]();const _0x36338a=fs['statSync'](_0x566371),_0x1b93b3=_0x2b27b1[_0x4a22e4(0x1c5)](_0x36338a['size'],_0x2b27b1[_0x4a22e4(0x1ee)](0x400,0x400));if(_0x2b27b1[_0x4a22e4(0x1fe)](_0x1b93b3,0x64)){this[_0x4a22e4(0x1b6)][_0x4a22e4(0x1b9)](util['format'](_0x2b27b1[_0x4a22e4(0x1f3)],_0x1b93b3['toFixed'](0x2))),fs['unlinkSync'](_0x566371);return;}this['logger'][_0x4a22e4(0x1b9)](util[_0x4a22e4(0x1c1)](_0x2b27b1[_0x4a22e4(0x1e2)],_0x566371)),uploadAttachmentsManager[_0x4a22e4(0x1be)](_0x566371,_0x4a9733);});else{this[_0x59ad0f(0x1b6)][_0x59ad0f(0x1b9)](util[_0x59ad0f(0x1c1)](_0x2b27b1[_0x59ad0f(0x1c8)],_0x3e0ec9['statusCode'])),_0x4fb172[_0x59ad0f(0x1f9)](),fs[_0x59ad0f(0x1c6)](_0x566371);return;}})['on'](_0x2b27b1[_0x1ae0be(0x1e8)],_0x1a6a58=>{const _0x194d42=_0x1ae0be;this[_0x194d42(0x1b6)][_0x194d42(0x1b9)](util[_0x194d42(0x1c1)](_0x2b27b1[_0x194d42(0x1e7)],_0x1a6a58['message'])),_0x4fb172[_0x194d42(0x1f9)](),fs['unlinkSync'](_0x566371);return;});}else{if(!fs[_0x1ae0be(0x211)](_0x7fbd8e)){this[_0x1ae0be(0x1b6)]['debug'](util[_0x1ae0be(0x1c1)](_0x2b27b1[_0x1ae0be(0x209)],_0x7fbd8e));return;}const _0x5c781b=fs[_0x1ae0be(0x216)](_0x7fbd8e),_0x32f8cc=_0x2b27b1[_0x1ae0be(0x1c5)](_0x5c781b[_0x1ae0be(0x1b7)],_0x2b27b1[_0x1ae0be(0x1ce)](0x400,0x400));if(_0x2b27b1['CgMBv'](_0x32f8cc,0x64)){this['logger'][_0x1ae0be(0x1b9)](util[_0x1ae0be(0x1c1)](_0x2b27b1[_0x1ae0be(0x1f8)],_0x32f8cc[_0x1ae0be(0x205)](0x2)));return;}const _0x178a35=path[_0x1ae0be(0x207)](_0x7fbd8e),_0x382426=path[_0x1ae0be(0x1cd)](_0x193a86,_0x178a35);fs[_0x1ae0be(0x214)](_0x7fbd8e,_0x382426),uploadAttachmentsManager[_0x1ae0be(0x1be)](_0x382426,_0x4a9733);}}static[a80_0x57725c(0x1be)](_0x4f24cc,_0x11c7a1){const _0x57b4fc=a80_0x57725c,_0x463d82={};_0x463d82[_0x57b4fc(0x213)]=_0x57b4fc(0x1e1),_0x463d82[_0x57b4fc(0x1ca)]=_0x57b4fc(0x1dd),_0x463d82[_0x57b4fc(0x1d9)]=_0x57b4fc(0x1da),_0x463d82['fkbGj']=_0x57b4fc(0x208);const _0x2866de=_0x463d82;try{const _0x23fe46=AutomationFramework[_0x57b4fc(0x1cf)](),_0x79cc52=AutomationFramework['getState'](_0x23fe46,PlaywrightDriverModule['KEY_TEST_ID'],''),_0x5c1be1=TestInfo[_0x57b4fc(0x1f6)](_0x79cc52),_0x513ac0=_0x5c1be1[TestFrameworkConstants[_0x57b4fc(0x1e6)]]||{};_0x513ac0[_0x4f24cc]={[TestFrameworkConstants[_0x57b4fc(0x1df)]]:fs[_0x57b4fc(0x216)](_0x4f24cc)['size'],[TestFrameworkConstants[_0x57b4fc(0x1ff)]]:path[_0x57b4fc(0x207)](_0x4f24cc),[TestFrameworkConstants[_0x57b4fc(0x1d1)]]:_0x4f24cc,[TestFrameworkConstants['KEY_FILE_LEVEL']]:_0x11c7a1?_0x2866de[_0x57b4fc(0x213)]:_0x2866de['Dueqo']},_0x5c1be1[TestFrameworkConstants[_0x57b4fc(0x1e6)]]=_0x513ac0,TestInfo[_0x57b4fc(0x1b8)](_0x79cc52,_0x5c1be1),this[_0x57b4fc(0x1b6)][_0x57b4fc(0x1b9)](util[_0x57b4fc(0x1c1)](_0x2866de[_0x57b4fc(0x1d9)],_0x4f24cc));}catch(_0x23863a){this['logger'][_0x57b4fc(0x1b9)](util[_0x57b4fc(0x1c1)](_0x2866de[_0x57b4fc(0x1f4)],_0x23863a[_0x57b4fc(0x1c2)]));}}static[a80_0x57725c(0x1c9)](){const _0x586bca=a80_0x57725c,_0x1bf52d={};_0x1bf52d[_0x586bca(0x1d4)]=_0x586bca(0x200),_0x1bf52d[_0x586bca(0x1d7)]=_0x586bca(0x20e),_0x1bf52d[_0x586bca(0x201)]='Cleared\x20attachment\x20folder';const _0x31e268=_0x1bf52d,_0x31730f=os[_0x586bca(0x202)](),_0x31fd54=path[_0x586bca(0x1cd)](_0x31730f,_0x31e268[_0x586bca(0x1d4)]);if(!fs[_0x586bca(0x211)](_0x31fd54))return;const _0x266783=BrowserstackCLI[_0x586bca(0x1ba)]()[_0x586bca(0x1e5)][_0x586bca(0x20c)]?.[_0x586bca(0x1b5)]?.[_0x586bca(0x20a)]()?.[_0x586bca(0x1ec)],_0x536595=_0x266783?path[_0x586bca(0x1cd)](_0x31fd54,_0x266783):null;if(!_0x536595||!fs[_0x586bca(0x211)](_0x536595)){this[_0x586bca(0x1b6)]['debug'](util['format'](_0x31e268[_0x586bca(0x1d7)],_0x266783));return;}const _0x57bfc2={};_0x57bfc2[_0x586bca(0x1d3)]=!![],_0x57bfc2[_0x586bca(0x1f2)]=!![],fs[_0x586bca(0x203)](_0x536595,_0x57bfc2),this[_0x586bca(0x1b6)]['debug'](util['format'](_0x31e268['zTNAz']));}}function a80_0x2c77(_0x7ae33c,_0x371efa){const _0x247113=a80_0x2471();return a80_0x2c77=function(_0x2c7730,_0x3915c4){_0x2c7730=_0x2c7730-0x1b5;let _0x385b46=_0x247113[_0x2c7730];return _0x385b46;},a80_0x2c77(_0x7ae33c,_0x371efa);}module['exports']=uploadAttachmentsManager;
1
+ const a82_0xff7715=a82_0x359c;(function(_0x4601a3,_0x2360df){const _0x49d043=a82_0x359c,_0x1b9cdc=_0x4601a3();while(!![]){try{const _0x358b5d=parseInt(_0x49d043(0xff))/0x1*(-parseInt(_0x49d043(0xc4))/0x2)+parseInt(_0x49d043(0xcb))/0x3+-parseInt(_0x49d043(0x10e))/0x4*(-parseInt(_0x49d043(0xd9))/0x5)+-parseInt(_0x49d043(0x106))/0x6+-parseInt(_0x49d043(0xcf))/0x7*(parseInt(_0x49d043(0xd1))/0x8)+-parseInt(_0x49d043(0xce))/0x9*(parseInt(_0x49d043(0x10d))/0xa)+parseInt(_0x49d043(0x112))/0xb;if(_0x358b5d===_0x2360df)break;else _0x1b9cdc['push'](_0x1b9cdc['shift']());}catch(_0x20431d){_0x1b9cdc['push'](_0x1b9cdc['shift']());}}}(a82_0x151d,0x418e5));function a82_0x359c(_0x24333e,_0x4db7a6){const _0x151d5e=a82_0x151d();return a82_0x359c=function(_0x359cb3,_0x22d6cf){_0x359cb3=_0x359cb3-0xb2;let _0x2f67b8=_0x151d5e[_0x359cb3];return _0x2f67b8;},a82_0x359c(_0x24333e,_0x4db7a6);}function a82_0x151d(){const _0x5b630c=['createWriteStream','Attachment\x20file\x20path\x20is\x20empty,\x20skipping\x20upload.','http','finish','statusCode','File\x20downloaded\x20to:\x20%s','5VRZtWm','toObject','TestLevel','basename','QIAcR','BuildLevel','Attachment\x20file\x20tracked\x20for\x20upload:\x20%s','3199704wespUs','size','MDbhE','format','./modules/playwrightDriverModule','fNARv','getTestDetails','2364590alfkbj','118648Rkkmud','getState','path','.browserstack','13764564XiEPQm','EbjaH','recursive','kDCPj','debug','CWJrn','./browserstackCLI','getInstance','TestHubModule','https://','ZwHGd','toFixed','modules','trackFile','KEY_TEST_ATTACHMENTS','eZWqY','existsSync','DUKmw','.browserstack\x20folder\x20not\x20found\x20at:\x20%s','SAxHM','iuwfg','Failed\x20to\x20download\x20file.\x20Status\x20code:\x20%s,\x20skipping\x20upload','logger','startsWith','get','qNnhG','175782LGcFbV','statSync','KEY_FILE_NAME','join','uploadAttachmentsManager','PWofW','HjFzd','1187451uMDHvX','KEY_FILE_LEVEL','Error\x20downloading\x20file:\x20%s,\x20skipping\x20upload','9xnJpdr','31052BOzSlK','Error\x20tracking\x20file:\x20%s,\x20skipping\x20upload','680hpXQjI','zTSnI','orEGE','./TestInfo','MpHmx','XXEUA','KEY_FILE_PATH','http://','35MWJOdh','Whijs','mkdirSync','uMDID','vjLvM','No\x20attachment\x20folder\x20found\x20for\x20testhubID:\x20%s','OxdiR','GUksa','nveju','https','homedir','JLawl','message','GbrLO','qFXAL','copyFileSync','force','trim','jeTDJ','KEY_TEST_ID','Cleared\x20attachment\x20folder','getTrackedInstance','KEY_FILE_SIZE','Created\x20folder:\x20%s','unlinkSync','buildHashedId','rQfVT','error','close','rmSync','CoiFH','clearAttachments'];a82_0x151d=function(){return _0x5b630c;};return a82_0x151d();}const os=require('os'),fs=require('fs'),path=require(a82_0xff7715(0x110)),util=require('util'),BrowserstackCLI=require(a82_0xff7715(0x118)),https=require(a82_0xff7715(0xe2)),http=require(a82_0xff7715(0xfb)),AutomationFramework=require('./framework/automationFramework'),PlaywrightDriverModule=require(a82_0xff7715(0x10a)),TestInfo=require(a82_0xff7715(0xd4)),TestFrameworkConstants=require('./framework/constants/testFrameworkConstants'),{createClassLogger}=require('../../helpers/classLogger.js');class uploadAttachmentsManager{static ['logger']=createClassLogger(a82_0xff7715(0xc8));static['uploadAttachments'](_0xbc3371,_0x1b0372=![]){const _0x313648=a82_0xff7715,_0x4578ca={};_0x4578ca[_0x313648(0xbe)]=function(_0x2aa3ca,_0x4b90c7){return _0x2aa3ca/_0x4b90c7;},_0x4578ca['EbjaH']=function(_0x2157c0,_0xe6a494){return _0x2157c0*_0xe6a494;},_0x4578ca['uMDID']=function(_0x26c65d,_0x2b6a80){return _0x26c65d>_0x2b6a80;},_0x4578ca[_0x313648(0xeb)]='Downloaded\x20file\x20is\x20too\x20large\x20(%s\x20MB).\x20Deleting\x20file\x20and\x20skipping\x20upload.',_0x4578ca[_0x313648(0x117)]=_0x313648(0xfe),_0x4578ca[_0x313648(0x10b)]=function(_0x55b13c,_0x4048f3){return _0x55b13c===_0x4048f3;},_0x4578ca[_0x313648(0xe4)]=_0x313648(0xfc),_0x4578ca[_0x313648(0xd6)]=_0x313648(0xbf),_0x4578ca[_0x313648(0xe1)]=_0x313648(0xcd),_0x4578ca['zTSnI']='Attachment\x20recevied\x20for\x20path:\x20%s',_0x4578ca['VIjPY']='.browserstack',_0x4578ca[_0x313648(0xd5)]=_0x313648(0xbc),_0x4578ca[_0x313648(0xe6)]='Created\x20.browserstack\x20folder\x20at:\x20%s',_0x4578ca['Whijs']=_0x313648(0xf0),_0x4578ca[_0x313648(0xe0)]=function(_0x430728,_0xe4fe8e){return _0x430728===_0xe4fe8e;},_0x4578ca[_0x313648(0x115)]=_0x313648(0xfa),_0x4578ca['orEGE']=_0x313648(0xb3),_0x4578ca['CoiFH']=_0x313648(0xd8),_0x4578ca[_0x313648(0xca)]=_0x313648(0xf4),_0x4578ca[_0x313648(0xc9)]='Attachment\x20file\x20does\x20not\x20exist\x20at:\x20%s',_0x4578ca[_0x313648(0xf3)]=function(_0xb48c82,_0x313863){return _0xb48c82*_0x313863;},_0x4578ca[_0x313648(0xb4)]='File\x20size\x20is\x20too\x20large\x20(%s\x20MB).\x20Skipping\x20upload.';const _0x1b7172=_0x4578ca;this[_0x313648(0xc0)]['debug'](util[_0x313648(0x109)](_0x1b7172[_0x313648(0xd2)],_0xbc3371));const _0x1dd8ac=os['homedir'](),_0x4b7c42=path[_0x313648(0xc7)](_0x1dd8ac,_0x1b7172['VIjPY']);!fs[_0x313648(0xba)](_0x4b7c42)&&(this[_0x313648(0xc0)]['debug'](util['format'](_0x1b7172[_0x313648(0xd5)],_0x4b7c42)),fs['mkdirSync'](_0x4b7c42),this['logger'][_0x313648(0x116)](util[_0x313648(0x109)](_0x1b7172[_0x313648(0xe6)],_0x4b7c42)));const _0x3a4ee5=BrowserstackCLI[_0x313648(0x119)]()[_0x313648(0xb6)][_0x313648(0xb2)]?.['testhubConfig']?.[_0x313648(0x100)]()?.[_0x313648(0xf2)],_0x37d7f2=path['join'](_0x4b7c42,_0x3a4ee5);!fs[_0x313648(0xba)](_0x37d7f2)&&(fs[_0x313648(0xdb)](_0x37d7f2),this[_0x313648(0xc0)][_0x313648(0x116)](util[_0x313648(0x109)](_0x1b7172[_0x313648(0xda)],_0x37d7f2)));if(_0x1b7172[_0x313648(0xe0)](_0xbc3371[_0x313648(0xea)](),'')){this[_0x313648(0xc0)][_0x313648(0x116)](util[_0x313648(0x109)](_0x1b7172[_0x313648(0x115)]));return;}if(_0xbc3371[_0x313648(0xc1)](_0x1b7172[_0x313648(0xd3)])||_0xbc3371[_0x313648(0xc1)](_0x1b7172[_0x313648(0xf7)])){const _0x12ba32=_0xbc3371[_0x313648(0xc1)](_0x1b7172[_0x313648(0xd3)])?https:http,_0x50374f=path[_0x313648(0x102)](_0xbc3371),_0x51637b=path[_0x313648(0xc7)](_0x37d7f2,_0x50374f),_0x52e4c1=fs[_0x313648(0xf9)](_0x51637b);_0x12ba32[_0x313648(0xc2)](_0xbc3371,_0x1b1cdf=>{const _0x4ccfe3=_0x313648,_0x133080={'LJWiH':function(_0x46becc,_0x24c916){return _0x1b7172['iuwfg'](_0x46becc,_0x24c916);},'MDbhE':function(_0x96699d,_0x55f5b1){const _0x47e5c7=a82_0x359c;return _0x1b7172[_0x47e5c7(0x113)](_0x96699d,_0x55f5b1);},'FwLiZ':function(_0x4ecab1,_0x139608){const _0x1d67a0=a82_0x359c;return _0x1b7172[_0x1d67a0(0xdc)](_0x4ecab1,_0x139608);},'FdzXi':_0x1b7172['jeTDJ'],'vjLvM':_0x1b7172['CWJrn']};if(_0x1b7172['fNARv'](_0x1b1cdf[_0x4ccfe3(0xfd)],0xc8))_0x1b1cdf['pipe'](_0x52e4c1),_0x52e4c1['on'](_0x1b7172[_0x4ccfe3(0xe4)],()=>{const _0x24f229=_0x4ccfe3;_0x52e4c1['close']();const _0x2c6f80=fs[_0x24f229(0xc5)](_0x51637b),_0xc90c73=_0x133080['LJWiH'](_0x2c6f80[_0x24f229(0x107)],_0x133080[_0x24f229(0x108)](0x400,0x400));if(_0x133080['FwLiZ'](_0xc90c73,0x64)){this['logger'][_0x24f229(0x116)](util['format'](_0x133080['FdzXi'],_0xc90c73[_0x24f229(0xb5)](0x2))),fs[_0x24f229(0xf1)](_0x51637b);return;}this[_0x24f229(0xc0)]['debug'](util[_0x24f229(0x109)](_0x133080[_0x24f229(0xdd)],_0x51637b)),uploadAttachmentsManager[_0x24f229(0xb7)](_0x51637b,_0x1b0372);});else{this[_0x4ccfe3(0xc0)][_0x4ccfe3(0x116)](util[_0x4ccfe3(0x109)](_0x1b7172['XXEUA'],_0x1b1cdf[_0x4ccfe3(0xfd)])),_0x52e4c1[_0x4ccfe3(0xf5)](),fs[_0x4ccfe3(0xf1)](_0x51637b);return;}})['on'](_0x1b7172[_0x313648(0xca)],_0x1766fd=>{const _0xa5f462=_0x313648;this[_0xa5f462(0xc0)][_0xa5f462(0x116)](util[_0xa5f462(0x109)](_0x1b7172['nveju'],_0x1766fd['message'])),_0x52e4c1[_0xa5f462(0xf5)](),fs[_0xa5f462(0xf1)](_0x51637b);return;});}else{if(!fs[_0x313648(0xba)](_0xbc3371)){this[_0x313648(0xc0)][_0x313648(0x116)](util[_0x313648(0x109)](_0x1b7172[_0x313648(0xc9)],_0xbc3371));return;}const _0x28b410=fs['statSync'](_0xbc3371),_0x4137b5=_0x1b7172['iuwfg'](_0x28b410['size'],_0x1b7172[_0x313648(0xf3)](0x400,0x400));if(_0x1b7172[_0x313648(0xdc)](_0x4137b5,0x64)){this['logger'][_0x313648(0x116)](util[_0x313648(0x109)](_0x1b7172[_0x313648(0xb4)],_0x4137b5[_0x313648(0xb5)](0x2)));return;}const _0x1dfb3a=path[_0x313648(0x102)](_0xbc3371),_0x2d898e=path[_0x313648(0xc7)](_0x37d7f2,_0x1dfb3a);fs[_0x313648(0xe8)](_0xbc3371,_0x2d898e),uploadAttachmentsManager[_0x313648(0xb7)](_0x2d898e,_0x1b0372);}}static['trackFile'](_0x43b5e3,_0x54f23f){const _0x3f7dab=a82_0xff7715,_0x31678f={};_0x31678f[_0x3f7dab(0xb9)]=_0x3f7dab(0x104),_0x31678f[_0x3f7dab(0xc3)]=_0x3f7dab(0x101),_0x31678f['OxdiR']=_0x3f7dab(0x105),_0x31678f[_0x3f7dab(0xe7)]=_0x3f7dab(0xd0);const _0x1d3715=_0x31678f;try{const _0x2652bd=AutomationFramework[_0x3f7dab(0xee)](),_0x5074cc=AutomationFramework[_0x3f7dab(0x10f)](_0x2652bd,PlaywrightDriverModule[_0x3f7dab(0xec)],''),_0x3982cb=TestInfo[_0x3f7dab(0x10c)](_0x5074cc),_0x48b30d=_0x3982cb[TestFrameworkConstants['KEY_TEST_ATTACHMENTS']]||{};_0x48b30d[_0x43b5e3]={[TestFrameworkConstants[_0x3f7dab(0xef)]]:fs[_0x3f7dab(0xc5)](_0x43b5e3)['size'],[TestFrameworkConstants[_0x3f7dab(0xc6)]]:path[_0x3f7dab(0x102)](_0x43b5e3),[TestFrameworkConstants[_0x3f7dab(0xd7)]]:_0x43b5e3,[TestFrameworkConstants[_0x3f7dab(0xcc)]]:_0x54f23f?_0x1d3715[_0x3f7dab(0xb9)]:_0x1d3715[_0x3f7dab(0xc3)]},_0x3982cb[TestFrameworkConstants[_0x3f7dab(0xb8)]]=_0x48b30d,TestInfo['setTestDetails'](_0x5074cc,_0x3982cb),this[_0x3f7dab(0xc0)]['debug'](util[_0x3f7dab(0x109)](_0x1d3715[_0x3f7dab(0xdf)],_0x43b5e3));}catch(_0x41b0ac){this[_0x3f7dab(0xc0)][_0x3f7dab(0x116)](util[_0x3f7dab(0x109)](_0x1d3715['qFXAL'],_0x41b0ac[_0x3f7dab(0xe5)]));}}static[a82_0xff7715(0xf8)](){const _0x1f6767=a82_0xff7715,_0x53625d={};_0x53625d[_0x1f6767(0xbb)]=_0x1f6767(0x111),_0x53625d['QIAcR']=_0x1f6767(0xde),_0x53625d[_0x1f6767(0xbd)]=_0x1f6767(0xed);const _0x37c67f=_0x53625d,_0xf5c26=os[_0x1f6767(0xe3)](),_0x4b15ae=path[_0x1f6767(0xc7)](_0xf5c26,_0x37c67f[_0x1f6767(0xbb)]);if(!fs[_0x1f6767(0xba)](_0x4b15ae))return;const _0x3ecf4a=BrowserstackCLI[_0x1f6767(0x119)]()[_0x1f6767(0xb6)][_0x1f6767(0xb2)]?.['testhubConfig']?.[_0x1f6767(0x100)]()?.[_0x1f6767(0xf2)],_0x30d834=_0x3ecf4a?path[_0x1f6767(0xc7)](_0x4b15ae,_0x3ecf4a):null;if(!_0x30d834||!fs['existsSync'](_0x30d834)){this[_0x1f6767(0xc0)][_0x1f6767(0x116)](util[_0x1f6767(0x109)](_0x37c67f[_0x1f6767(0x103)],_0x3ecf4a));return;}const _0x44c1e4={};_0x44c1e4[_0x1f6767(0x114)]=!![],_0x44c1e4[_0x1f6767(0xe9)]=!![],fs[_0x1f6767(0xf6)](_0x30d834,_0x44c1e4),this[_0x1f6767(0xc0)][_0x1f6767(0x116)](util['format'](_0x37c67f[_0x1f6767(0xbd)]));}}module['exports']=uploadAttachmentsManager;