@unotest/web 0.51.0 → 0.52.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.
- package/CHANGELOG.md +82 -3
- package/bin/unotest-web.js +2 -1
- package/dist/config/schema.d.ts +17 -12
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +39 -41
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/v8/scenario-worker.d.ts +2 -0
- package/dist/dsl/v8/scenario-worker.js +1 -0
- package/dist/dsl/web-dsl-language-service.d.ts +5 -0
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.js +1 -1
- package/dist/runner/init/chrome-probe.js +1 -1
- package/dist/runner/init.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/scaffold-workspace.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/dsl-reference.md +166 -205
- package/package.json +16 -8
- package/types/unotest-lib.d.ts +93 -27
package/dist/driver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xacabb4=_0xff7e;(function(_0x28a419,_0x1ea8ae){const _0x56a72e={_0x51442a:0x180,_0x1e0235:0xee,_0x3e2d3b:0x1fa,_0x3494c6:0x11e,_0x8757eb:0x168,_0x5e45dc:0x140},_0x4d00d9=_0xff7e,_0x540fb7=_0x28a419();while(!![]){try{const _0x485b92=-parseInt(_0x4d00d9(_0x56a72e._0x51442a))/0x1*(parseInt(_0x4d00d9(_0x56a72e._0x1e0235))/0x2)+parseInt(_0x4d00d9(0xf3))/0x3*(parseInt(_0x4d00d9(0x108))/0x4)+parseInt(_0x4d00d9(0x178))/0x5*(-parseInt(_0x4d00d9(0x16b))/0x6)+-parseInt(_0x4d00d9(_0x56a72e._0x3e2d3b))/0x7*(-parseInt(_0x4d00d9(_0x56a72e._0x3494c6))/0x8)+parseInt(_0x4d00d9(0xe3))/0x9*(-parseInt(_0x4d00d9(0x14f))/0xa)+-parseInt(_0x4d00d9(_0x56a72e._0x8757eb))/0xb+parseInt(_0x4d00d9(_0x56a72e._0x5e45dc))/0xc;if(_0x485b92===_0x1ea8ae)break;else _0x540fb7['push'](_0x540fb7['shift']());}catch(_0x417b60){_0x540fb7['push'](_0x540fb7['shift']());}}}(_0x18a3,0xbb8be));var __defProp=Object[_0xacabb4(0x10e)],__name=(_0x4bb4ef,_0x3e3850)=>__defProp(_0x4bb4ef,_0xacabb4(0x1c2),{'value':_0x3e3850,'configurable':!![]});import{writeFile}from'fs/promises';function _0x18a3(){const _0x3abd43=['Bwf5yMvuAhjVDW','y3jLzgvUDgLHBhm','D2fPDezVCLnLCNzPy2vxB3jRzxi','D2fPDezVCK5LD1bHz2u','rMfRzunVBNrLEhq','Aw5JBhvKzxm','ChjVDg9JB2W','mwHqB2rTua','C2v0','ig1VCMu','D2fPDezVCLjLCxvLC3q','D29YA2vYu3rHCNrLza','CMvJB3jKzxi','uM91DgvkB3vYBMfS','ywjVDxq6yMXHBMS','y2fSBhm','y291BNrcEurLzMf1Bhq','y2XVy2SUzNjLzxPL','zhjHz0fUzerYB3a','DxbSB2fKrMLSzq','y29TChv0zwrtDhLSzq','zMfRzsb0AxrSzq','BM8Gzg93BMXVywqGD2HVC2uGBMfTzsb3B3vSzca','D2fPDgLUzW','sw52ywXPzfvYBeDSB2jfCNjVCG','D2vIqxv0Ag4Uy3jLzgvUDgLHBhm','yw5PBwf0Aw9UCW','rhjPDMvYrxjYB3i','CxvLDwvK','DgfRzq','ig1ZlG','Aw5PDgLHBfvYBa','D2fPDezVCLrLEhq','uvvfvuvFtufy','yw5PBwf0Aw9UC0j5rgvMyxvSDa','lNbHz2uW','AxnwAxnPyMXL','yxjYAxzHBhm','tM90uMvJB3jKAw5NrxjYB3i','Bg9VAW','C3rYAw5NAwz5','BMv0D29YAY51BM1Vy2S','AgfZq2XVy2S','y29VA2LLu3rHDgu','y29UDgv4Dhm','DgfRzw4','Ag92zxi','Bgf1BMnOzwq','DgHLig1HC2SG','CMvM','DgLTzw91De1Z','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','D2vIqxv0Ag4UCMvTB3zL','zxzHBhvHDgvpBKXVy2f0B3i','ywjVCNq','CNvUBMLUz0fUAw1HDgLVBNm','z2v0q29VA2LL','y2HLy2TLzfn0yxrL','ChvZAa','BgvMDa','w14VxsO','y2XPCgjVyxjKugfZDgu','Aw1Hz2vtAxPLqNLezwzHDwX0','B25tDgfYDa','yMvOyxzPB3i','C2f2zvn0B3jHz2vtDgf0zq','D3nfBMrWB2LUDa','qxjYAxzHBhm','B25bzNrLCKnSAwnR','CgfNzuXPC3q','Cg9WDxbpBKnSAwnR','CMvSB2fK','C3DPDgnOAw5N','BMfTzq','ywrK','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','C2v0q29VA2LL','BwLU','y2XVC2vgywTLugfNzq','AM9PBG','z3jHBNrqzxjTAxnZAw9UCZOGzMfRzsbLBMDPBMuGCMvMDxnLzca','Dgv4DenVBNrLBNq','Bwf0y2HLCK1HDgnOzxm','y2XVy2S','D29YA2vYvxjSCW','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','igLUia','CMvQzwn0','zgvZy3jPyMu','Bg9JywXtDg9YywDLu3rHDgu','C2vSzwn0t3b0Aw9U','BM8Gzg93BMXVywq','C3vIC2nYAwjL','BMv0D29YA0vUDhjPzxm','CMvJB3jK','B25ozxDqywDL','Dw50AwW','DMLYDhvHBcbHDxrOzw50AwnHDg9Yici','y2HLy2TLzfn0yxrLqNLezwzHDwX0','AgfUzgvKugfNzxm','B3v0zxjive1m','C2v0t2zMBgLUzq','zwXLBwvUDeHPBNrcEvjLzG','C29JA2v0CW','zxzHBhvHDgu','BM8GBMv3ihrHyIb3AxrOAw4G','pgrPDJ48l2rPDJ4','C29JA2v0t3bLBMvK','CMvZzxq','ywn0AxzLswr4','BM90Awz5','Aw5WDxrwywX1zuj5rgvMyxvSDa','BMv0D29YAY53ywL0rM9YuMvXDwvZDa','CNvUBMLUz0fUAw1HDgLVBNndywXSCW','AxneAxnHyMXLzej5rgvMyxvSDa','BMv3ugfNzuXPC3rLBMvYCW','zMXHz3m','y2XVy2TgCM96zw4','yMXVy2TLza','Aw5UzxjuzxH0qNLezwzHDwX0','u29JA2v0tg9N','BMv3ugfNzq','zw1PDezHA2vqB3b1Ca','z2v0qxr0CMLIDxrL','zw1PDezHA2vtzxj2AwnLv29YA2vY','iIbPCYbUB3qGAw4GDgHPCYbJB250zxH0','z3jHBNrqzxjTAxnZAw9UCW','rg93BMXVywrrDwv1zq','y2fUBM90ignSB3nLihrOzsbVBMX5ig9Wzw4GDgfIoIbUB3rOAw5NihDVDwXKigjLigXLzNqGDg8GzhjPDMu','mtG5AvrNufbT','Bw9JAW','u2vYDMLJzvDVCMTLCK5LzwrZuhjVzMLSzuvYCM9Y','BM93','igfUzca','CMvMDxnLzfbLCM1PC3nPB25Z','BM9eB3DUBg9Hza','y2fSBhngB3i','C2L6zq','Aw5KzxHpzG','Dw5TB2nR','oYb0AguGCgfNzsbVCgvUzwqG','zw1PDezHA2vszxf1zxn0','oIbTB2nRigL0igzPCNn0ihDPDgGGBw9JA1jVDxrLka','BM8GC2vYDMLJzsb3B3jRzxi','CMfJzq','BMv4Da','C3bSAwnL','igHHCYbHicD9jYb3AxrOB3v0igL0CYaNEYC','vgLTzw91DevYCM9Y','C291CMnL','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','BgvUz3rO','ndiZndvWy0XMyw0','yNjPBMDuB0zYB250','y2XVC2u','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','y2XPy2S','DMLYDhvHBenYzwrLBNrPywXZ','zxHPDezYyw1L','yMXVy2S','D3nZoG','Dw5JAgvJAW','ChjLC3m','mJG3mta3mhfgq3v3CG','C2v0ugfNzuHPzgrLBG','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','CMvZB2X2zq','D2fPDgvYCW','mtmWnwT4t0X5yq','y29VA2LLCW','BM8GCMvXDwvZDcb0BYa','AgLZDg9YEq','ugfNzuHPC3rVCNK','B3bLBMvK','Dgv4DenVBNrLBNrZ','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','CMvZCg9UC2vZ','y29UC29SzuvUDhjPzxm','z2v0tg9JywXtDg9YywDL','Aw1Hz2vtAxPL','zNjLzxPL','D2fPDezVCK5HDMLNyxrPB24','y3vYCMvUDfvYBa','D2fPDezVCG','D2fPDezVCKfUAw1HDgLVBNm','C3rVChbLza','ChjVzMLSzq','Aw5ZCgvJDevSzw1LBNq','lNbHz2u','ody3nKPxu3HlvG','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','y291BNq','y2XVC2vqywDL','C2HPzNq','DxjS','zgvMAw5LuhjVCgvYDhK','Cg9W','u2nLBMfYAw9fCNjVCG','CMvZCg9UC2u','C2v0tg9JywXtDg9YywDL','zNjHBwvtDgfJAW','Dw50B3vJAgvK','D3m6','C2nYzwvUC2HVDevSzw1LBNq','y29UDgv4DenSB3nLuMvZDwX0','C2nYzwvUC2HVDa','zxzHBhvHDgvszxn1Bhq','AgfZ','CgfNzunVBNnVBgu','z2v0','y2XVy2SUCNvU','ndqYnJq4t09kDufU','yxv0AgvUDgLJyxrVCNm','B3bLBKLUzgv4','z29cywnR','DgL0Bgu','zMLUza','ig1Z','Aw5WDxrwywX1zq','C2vLBG','C2nVCgu','D2vIqxv0Ag4UywrK','A2LUza','tg9JyxrVCKvYCM9Y','zMfRzs1HDxrOzw50AwnHDg9Ylq','yM91BMrPBMDcB3G','C2XLzxa','y2HLy2TgywLSDxjL','D2fPDgvY','C3rYAw5N','iJ48l2rPDJ4','CM91DgvZ','DxjSr2XVyK1HDgnOzxi','zgvSAxzLCG','zNjVBq','B3v0zxjiDg1SqNLszwy','C2v0qwn0AxzLugfNzq','DhjHBNnSyxrLrxjYB3i','BM9tB2nRzxq','D2fPDezVCKrVD25SB2fK','zhjPDMvY','BM8GzxH0zw5ZAw9UihnLCNzPy2uGD29YA2vYigHLCMu6igv4DgvUC2LVBNmGBg9HzcbVBMX5igLUDg8GysbICM93C2vYihn0yxj0zwqGD2L0AcbHihbYB2zPBguG4OcuihnLDcbSyxvUy2GUDxnLCKrHDgfeAxiGkgfUzcb0AguGls1SB2fKlwv4DgvUC2LVBIbHCMDZksbPBIb1BM90zxn0lMnVBMzPzY4GqsbYDw4GB24GysbIB3GGAgfZig5VihbYB2zPBguSihnVigL0igHHCYbUBYbLEhrLBNnPB25ZigvPDgHLCI4','Ahr0Chm6','zw50zxjgCMfTzq','BMv0D29YAW','mtC3nZy1ndHgzLzTu2q','z290BW','ig1Zlca','BwfW','D29YA2vYlMv2ywX1yxrL','C2nYzwvUC2HVDej5DgvZ','CgXHBKnSB3nL','AxneAxnHyMXLza','BMv0D29YAY5TB2nR','D2fPDezVCKXVywrtDgf0zq','CNvUBMLUz0fUAw1HDgLVBNntzxf1zw5Jzq','z29gB3j3yxjK','y2XVy2SUDgLJAW','ihn0yxj0zwqGD2L0AgLUia','yxr0ywnOrxHPC3rPBMC','mtK5mevlu0z5va','igHHCYbHicD7jYb3AxrOB3v0igL0CYaNFsC','zg91yMXLq2XPy2S','D2fPDezVCLDLyLnVy2TLDa','zMfRzvDVCMTLCG','zg93BMXVywrZ','C2nYB2XSsw50B1zPzxC','zNjHBwvezxb0Aa','Bwv0Ag9K','ywn0AxzLugfNzq','zNjVEMvU','Ag9ZDa','Bwf4','Bwf0y2HLCW','D2vIqxv0Ag4','Bg9JywXtDg9YywDL','zMLSBa','BM8Gv2vIu29JA2v0ig1HDgnOAw5Nia','BMv3q29UDgv4Da','yM91BMrPBMDcB3HcEurLzMf1Bhq','ihDPDgHPBIa','zMLSDgvY','yxr0CMLIDxrLC0j5rgvMyxvSDa','C3rLChm','zw11Bgf0zu1LzgLH','mJi0nJy3m1bYtNvZBW','DgvZDa','zgvSzxrL','ndmWoti2BMD5vMXZ','lcb7ywjVCNq6ihrYDwuSihjLy29YzdOGDhj1zx0PlIbxAxrOB3v0igL0igeGy2HLy2SGzM9YihjLCxvLC3rZihrOzxjLihDVDwXKihbHC3mGAgf2Aw5NihDHDgnOzwqGBM90AgLUzY4','C2HHCMvKqNjVD3nLCKnVBM5Ly3rLza','y29TCgLSzq','y2XHAw1ozxDqywDL','q2XVy2ToB3rjBNn0ywXSzwrfCNjVCG','zNvUy3rPB24','y2fWDhvYzujVEgvZ','zxHHy3q','yM94zxnjBKnHChr1CMu','zxjYB3jpBK5LEhrby3rPB24','DhLWzq','y3jLyxrLuMvJB3jKzxi','ndbqqxvcqKq'];_0x18a3=function(){return _0x3abd43;};return _0x18a3();}function subscribe(_0x5417a5,_0x2c39eb){const _0x5bee96={_0x360aec:0x1c3},_0x13cc02={_0x5235e2:0x16a},_0x1009d1=_0xacabb4;return _0x5417a5[_0x1009d1(_0x5bee96._0x360aec)](_0x2c39eb),()=>{const _0x4e0134=_0x1009d1;_0x5417a5[_0x4e0134(_0x13cc02._0x5235e2)](_0x2c39eb);};}__name(subscribe,_0xacabb4(0x1d5));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0xacabb4(0x194));}},ScenarioError=class extends UnotestError{static{__name(this,_0xacabb4(0x110));}},LocatorError=class extends UnotestError{static{__name(this,_0xacabb4(0x12a));}['checkFailure']=!![];},TimeoutError=class extends UnotestError{static{__name(this,_0xacabb4(0x20d));}[_0xacabb4(0x12e)]=!![];},ClockNotInstalledError=class extends DriverError{static{__name(this,_0xacabb4(0x170));}constructor(){super('the\x20page\x20clock\x20is\x20not\x20installed\x20on\x20this\x20browser\x20—\x20it\x20has\x20to\x20be\x20in\x20place\x20before\x20the\x20first\x20page\x20loads,\x20or\x20the\x20page\x27s\x20own\x20timers\x20keep\x20real\x20time.\x20A\x20run\x20installs\x20it\x20when\x20the\x20scenario\x20or\x20its\x20helpers\x20call\x20clockFreeze\x20/\x20clockTick\x20/\x20clockRun;\x20over\x20MCP,\x20open\x20the\x20browser\x20with\x20new_context\x20{clock:\x20true}\x20(or\x20explore_start\x20{clock:\x20true}).',{});}},NO_CLOCK={'freeze':__name(()=>Promise[_0xacabb4(0x1d0)](new ClockNotInstalledError()),_0xacabb4(0xff)),'tick':__name(()=>Promise[_0xacabb4(0x1d0)](new ClockNotInstalledError()),'tick'),'run':__name(()=>Promise[_0xacabb4(0x1d0)](new ClockNotInstalledError()),'run'),'frozen':__name(()=>![],_0xacabb4(0x159))};function firstUnhandedPage(_0x507a76,_0x107220){return _0x507a76['findIndex'](_0x1ce727=>!_0x107220['has'](_0x1ce727));}__name(firstUnhandedPage,'firstUnhandedPage');function _0xff7e(_0x5bd4ca,_0x3034f0){_0x5bd4ca=_0x5bd4ca-0xe3;const _0x18a370=_0x18a3();let _0xff7e3f=_0x18a370[_0x5bd4ca];if(_0xff7e['LlqflV']===undefined){var _0x2cbfc2=function(_0x2ab46a){const _0x275ed6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4bb4ef='',_0x3e3850='';for(let _0x5417a5=0x0,_0x2c39eb,_0x507a76,_0x107220=0x0;_0x507a76=_0x2ab46a['charAt'](_0x107220++);~_0x507a76&&(_0x2c39eb=_0x5417a5%0x4?_0x2c39eb*0x40+_0x507a76:_0x507a76,_0x5417a5++%0x4)?_0x4bb4ef+=String['fromCharCode'](0xff&_0x2c39eb>>(-0x2*_0x5417a5&0x6)):0x0){_0x507a76=_0x275ed6['indexOf'](_0x507a76);}for(let _0x1ce727=0x0,_0x55f892=_0x4bb4ef['length'];_0x1ce727<_0x55f892;_0x1ce727++){_0x3e3850+='%'+('00'+_0x4bb4ef['charCodeAt'](_0x1ce727)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e3850);};_0xff7e['SLAFoA']=_0x2cbfc2,_0xff7e['gUAdJn']={},_0xff7e['LlqflV']=!![];}const _0x3db100=_0x18a370[0x0],_0x334ca=_0x5bd4ca+_0x3db100,_0x34a4ea=_0xff7e['gUAdJn'][_0x334ca];return!_0x34a4ea?(_0xff7e3f=_0xff7e['SLAFoA'](_0xff7e3f),_0xff7e['gUAdJn'][_0x334ca]=_0xff7e3f):_0xff7e3f=_0x34a4ea,_0xff7e3f;}function claimNewPage(_0x55f892,_0x27c308,_0x400602){const _0x5cfc79={_0x3b8d66:0x210,_0x17aa15:0x1e2},_0x3c06c7=_0xacabb4,_0x1923b5=firstUnhandedPage(_0x55f892,_0x27c308);if(_0x1923b5<0x0){const _0x97ae67=_0x55f892[_0x3c06c7(_0x5cfc79._0x3b8d66)];throw new TimeoutError(_0x3c06c7(_0x5cfc79._0x17aa15)+_0x400602+_0x3c06c7(0x142)+_0x97ae67+'\x20tab'+(_0x97ae67===0x1?'':'s')+'\x20open',{'timeoutMs':_0x400602,'open':_0x97ae67});}return _0x27c308['add'](_0x55f892[_0x1923b5]),_0x1923b5;}__name(claimNewPage,_0xacabb4(0x16f));var PageHistory=class{static{__name(this,_0xacabb4(0xf7));}[_0xacabb4(0x1b4)]=[];[_0xacabb4(0x1c1)](_0x1d6310,_0x4c0239,_0x3b8bc3){const _0x576a74={_0x2950cb:0x1b4,_0x304aa7:0x1b4},_0x442c55=_0xacabb4,_0x4b5f4c=_0x1d6310[_0x4c0239];if(!_0x4b5f4c||_0x4b5f4c===_0x3b8bc3)return;const _0xa43384=this[_0x442c55(_0x576a74._0x2950cb)]['filter'](_0x5070aa=>_0x5070aa!==_0x4b5f4c&&_0x1d6310['includes'](_0x5070aa));this[_0x442c55(_0x576a74._0x304aa7)]['splice'](0x0,this['left'][_0x442c55(0x210)],..._0xa43384,_0x4b5f4c);}[_0xacabb4(0x146)](_0x53453e,_0x3d1581,_0x54a9b0){const _0x328cac={_0x3154e7:0x1f9,_0x427888:0x164,_0x39cb2b:0x1b4,_0x4579c9:0x164,_0x163c2a:0x1b4,_0x247f66:0x210,_0x3c6ba0:0x203,_0x388dac:0x1b4},_0x43995f=_0xacabb4,_0x20b253=_0x53453e[_0x54a9b0];if(!_0x20b253)throw new DriverError(_0x43995f(0x1ce),{'index':_0x54a9b0,'available':_0x53453e[_0x43995f(0x210)]});if(_0x53453e[_0x43995f(0x210)]===0x1)throw new DriverError(_0x43995f(_0x328cac._0x3154e7),{'index':_0x54a9b0});const _0x11b5b5=_0x53453e[_0x43995f(_0x328cac._0x427888)](_0x505ef2=>_0x505ef2!==_0x20b253),_0x4f076f=_0x53453e[_0x3d1581],_0x30c14e=this[_0x43995f(_0x328cac._0x39cb2b)][_0x43995f(_0x328cac._0x4579c9)](_0x4f79db=>_0x4f79db!==_0x20b253);this[_0x43995f(0x1b4)]['splice'](0x0,this[_0x43995f(_0x328cac._0x163c2a)][_0x43995f(0x210)],..._0x30c14e);if(_0x4f076f&&_0x4f076f!==_0x20b253)return{'closing':_0x20b253,'nextActive':_0x11b5b5['indexOf'](_0x4f076f)};for(let _0x9f2a8f=this[_0x43995f(_0x328cac._0x39cb2b)][_0x43995f(_0x328cac._0x247f66)]-0x1;_0x9f2a8f>=0x0;_0x9f2a8f--){const _0x2f52a8=_0x11b5b5[_0x43995f(_0x328cac._0x3c6ba0)](this[_0x43995f(_0x328cac._0x388dac)][_0x9f2a8f]);if(_0x2f52a8>=0x0)return{'closing':_0x20b253,'nextActive':_0x2f52a8};}return{'closing':_0x20b253,'nextActive':Math[_0x43995f(0x15b)](_0x54a9b0-0x1,0x0)};}},NotRecordingError=class extends DriverError{static{__name(this,_0xacabb4(0x19f));}constructor(_0x6e7f1a){const _0x1eaec6={_0x3b99a8:0x1a1,_0x4e8840:0x207},_0x3094d0=_0xacabb4;super('nothing\x20records\x20requests\x20to\x20'+JSON[_0x3094d0(_0x1eaec6._0x3b99a8)](_0x6e7f1a)+_0x3094d0(_0x1eaec6._0x4e8840)+JSON[_0x3094d0(0x1a1)](_0x6e7f1a)+_0x3094d0(0x16c),{'glob':_0x6e7f1a});}},RequestWaitTimeoutError=class extends TimeoutError{static{__name(this,'RequestWaitTimeoutError');}constructor(_0x589062,_0x37b9ec){const _0x95c3bd={_0x3eb465:0x1cf},_0x124815=_0xacabb4;super(_0x124815(0xf5)+JSON[_0x124815(0x1a1)](_0x589062)+_0x124815(_0x95c3bd._0x3eb465)+_0x37b9ec+_0x124815(0x124),{'glob':_0x589062,'timeoutMs':_0x37b9ec});}},RouteJournal=class _RouteJournal{constructor(_0x393f77=Date[_0xacabb4(0x1fd)]){this['now']=_0x393f77;}['now'];static{__name(this,_0xacabb4(0x186));}static [_0xacabb4(0x19a)]=0x1f4;['responses']=new Map();[_0xacabb4(0x195)]=new Map();[_0xacabb4(0xf2)]=new Map();[_0xacabb4(0x104)]=new Map();[_0xacabb4(0x181)](_0xb5ec7e,_0x3b2a85){const _0x57e689={_0x32d16d:0x195,_0x532e01:0x11a,_0x2b22b4:0x104,_0x1eccfa:0x181},_0x5299e6=_0xacabb4;this['responses'][_0x5299e6(0x181)](_0xb5ec7e,_0x3b2a85);if(!this[_0x5299e6(_0x57e689._0x32d16d)][_0x5299e6(_0x57e689._0x532e01)](_0xb5ec7e))this[_0x5299e6(_0x57e689._0x32d16d)]['set'](_0xb5ec7e,[]);_0x3b2a85[_0x5299e6(0x129)]===_0x5299e6(0x1af)&&_0x3b2a85[_0x5299e6(0x1d7)]&&!this[_0x5299e6(_0x57e689._0x2b22b4)]['has'](_0xb5ec7e)&&this[_0x5299e6(0x104)][_0x5299e6(_0x57e689._0x1eccfa)](_0xb5ec7e,[]);}[_0xacabb4(0x16a)](_0x237f6d){const _0xbea62b={_0x5ab2c6:0xfb,_0x478b59:0x11a,_0xa9a970:0x195},_0x5c38cd=_0xacabb4,_0x3bec27=_0x237f6d===void 0x0?[...this[_0x5c38cd(0xfb)]['keys']()]:this[_0x5c38cd(_0xbea62b._0x5ab2c6)][_0x5c38cd(_0xbea62b._0x478b59)](_0x237f6d)?[_0x237f6d]:[];for(const _0x828870 of _0x3bec27){this['responses']['delete'](_0x828870),this[_0x5c38cd(_0xbea62b._0xa9a970)][_0x5c38cd(0x16a)](_0x828870);}return _0x3bec27;}[_0xacabb4(0x111)](_0x1b5d9b){const _0x1354ca={_0x264a62:0x11c},_0x58006f=_0xacabb4;return this[_0x58006f(0xfb)][_0x58006f(_0x1354ca._0x264a62)](_0x1b5d9b);}['mocked'](_0x211de1){const _0x171cee={_0x3e44c2:0x11a},_0x486e34=_0xacabb4;return this['responses'][_0x486e34(_0x171cee._0x3e44c2)](_0x211de1);}['deliver'](_0x14b7dc,_0x5eb0ca){const _0x15bddb={_0x755a6c:0xf2,_0x227776:0x1b3,_0x33d453:0x19a,_0xcdcf53:0x10c},_0x302f52=_0xacabb4,_0x464d24=this[_0x302f52(_0x15bddb._0x755a6c)]['get'](_0x14b7dc)?.['shift']();if(_0x464d24){_0x464d24(_0x5eb0ca);return;}const _0x34785e=this['queued'][_0x302f52(0x11c)](_0x14b7dc);if(!_0x34785e)return;_0x34785e[_0x302f52(_0x15bddb._0x227776)](_0x5eb0ca);if(_0x34785e['length']>_RouteJournal[_0x302f52(_0x15bddb._0x33d453)])_0x34785e[_0x302f52(_0x15bddb._0xcdcf53)]();}[_0xacabb4(0xea)](_0x5d09d1,_0x33b954){const _0x32465e={_0x3bc66e:0x104,_0x5184c8:0x1b3,_0x381f35:0x157},_0x97fce7=_0xacabb4;this[_0x97fce7(_0x32465e._0x3bc66e)]['get'](_0x5d09d1)?.[_0x97fce7(_0x32465e._0x5184c8)]({'url':_0x33b954['url'],'method':_0x33b954[_0x97fce7(_0x32465e._0x381f35)],'at':this[_0x97fce7(0x1fd)]()});}[_0xacabb4(0x1ef)](_0x536cc2){const _0x5c69ba=_0xacabb4,_0x5dc793=this[_0x5c69ba(0x104)][_0x5c69ba(0x11c)](_0x536cc2);if(!_0x5dc793)throw new NotRecordingError(_0x536cc2);return _0x5dc793;}[_0xacabb4(0x20a)](_0x5a7c39,_0x5ee5e9){const _0x473707={_0x572f58:0x11c,_0x19b4ae:0xf1},_0x5ac79a={_0x131be9:0x12f,_0x6a36fb:0xf2,_0x8f1866:0x11c,_0x1d3e6d:0x1b3},_0xfa3660={_0x271533:0x20b,_0x5ac4a4:0x203},_0x53469b=_0xacabb4,_0x4a32f4=this[_0x53469b(0x195)][_0x53469b(_0x473707._0x572f58)](_0x5a7c39)?.[_0x53469b(0x10c)]();if(_0x4a32f4)return Promise[_0x53469b(_0x473707._0x19b4ae)](_0x4a32f4);return new Promise((_0x46b140,_0x324bfd)=>{const _0x38a868=_0x53469b,_0x48e86c=__name(_0x18cffb=>{clearTimeout(_0xf9779d),_0x46b140(_0x18cffb);},_0x38a868(_0x5ac79a._0x131be9)),_0xf9779d=setTimeout(()=>{const _0x50e472=_0x38a868,_0x31a005=this['waiters'][_0x50e472(0x11c)](_0x5a7c39)??[];_0x31a005[_0x50e472(_0xfa3660._0x271533)](_0x31a005[_0x50e472(_0xfa3660._0x5ac4a4)](_0x48e86c),0x1),_0x324bfd(new RequestWaitTimeoutError(_0x5a7c39,_0x5ee5e9));},_0x5ee5e9),_0x228068=this[_0x38a868(_0x5ac79a._0x6a36fb)][_0x38a868(_0x5ac79a._0x8f1866)](_0x5a7c39)??[];_0x228068[_0x38a868(_0x5ac79a._0x1d3e6d)](_0x48e86c),this[_0x38a868(_0x5ac79a._0x6a36fb)]['set'](_0x5a7c39,_0x228068);});}},Arrivals=class{constructor(_0x51d0fc){const _0x51e25e={_0xae0851:0x12d},_0x51210b=_0xacabb4;this[_0x51210b(_0x51e25e._0xae0851)]=_0x51d0fc;}[_0xacabb4(0x12d)];static{__name(this,_0xacabb4(0x1bc));}[_0xacabb4(0x190)]=new Set();['notify'](){const _0x511002=_0xacabb4;for(const _0x55d921 of this[_0x511002(0x190)])_0x55d921();}async[_0xacabb4(0x1d9)](_0x50a948,_0x24a436){const _0x44a50c={_0xeb3c90:0x1c3,_0x55cb1e:0x209,_0x127d00:0x12d,_0x1cb5c5:0x190},_0xd3d33c=_0xacabb4,_0x57d599=_0x50a948();if(_0x57d599!==void 0x0)return _0x57d599;let _0x507e64=__name(()=>{},_0xd3d33c(0x1a0));const _0x1c457f=new Promise(_0x510ec2=>{const _0x3e0f4e=_0xd3d33c;_0x507e64=__name(()=>{if(_0x50a948()!==void 0x0)_0x510ec2();},_0x3e0f4e(0x1a0));});this[_0xd3d33c(0x190)][_0xd3d33c(_0x44a50c._0xeb3c90)](_0x507e64);try{await Promise[_0xd3d33c(_0x44a50c._0x55cb1e)]([_0x1c457f,this[_0xd3d33c(_0x44a50c._0x127d00)](_0x24a436)]);}finally{this[_0xd3d33c(_0x44a50c._0x1cb5c5)]['delete'](_0x507e64);}return _0x50a948();}},DownloadQueue=class{static{__name(this,_0xacabb4(0x1f8));}[_0xacabb4(0x126)]=[];['taken']=new Set();[_0xacabb4(0x19e)];constructor(_0x199e36){this['arrivals']=new Arrivals(_0x199e36);}[_0xacabb4(0x1b3)](_0x41eda2){const _0x4a1539={_0x3463ce:0x1b3},_0x2bb8ca=_0xacabb4;this[_0x2bb8ca(0x126)][_0x2bb8ca(_0x4a1539._0x3463ce)](_0x41eda2),this['arrivals'][_0x2bb8ca(0x1e7)]();}async[_0xacabb4(0x196)](_0x7e781a,_0xdb4642){const _0x54cd97={_0xb2d7a2:0x200,_0x3e3a80:0x1a6,_0x224b35:0x1c3},_0x465e9a=_0xacabb4,_0x4ca976=__name(()=>this[_0x465e9a(0x126)][_0x465e9a(0x123)](_0x522aac=>!this[_0x465e9a(0x1a6)][_0x465e9a(0x11a)](_0x522aac)&&(_0xdb4642===void 0x0||_0xdb4642[_0x465e9a(0x15c)](_0x522aac[_0x465e9a(0x1c2)]))),_0x465e9a(0x20a)),_0x2db477=await this['arrivals'][_0x465e9a(0x1d9)](_0x4ca976,_0x7e781a);if(_0x2db477===void 0x0)throw this[_0x465e9a(_0x54cd97._0xb2d7a2)](_0x7e781a,_0xdb4642);return this[_0x465e9a(_0x54cd97._0x3e3a80)][_0x465e9a(_0x54cd97._0x224b35)](_0x2db477),_0x2db477;}[_0xacabb4(0x200)](_0x2030e4,_0x3fb9b6){const _0x53f380={_0x22a6cb:0x126,_0x56969d:0x1d4,_0x468fb7:0x18f},_0x5ce5aa=_0xacabb4,_0x442766=this[_0x5ce5aa(_0x53f380._0x22a6cb)]['filter'](_0x389fb1=>!this['taken'][_0x5ce5aa(0x11a)](_0x389fb1))[_0x5ce5aa(0x143)](_0x331f6c=>_0x331f6c['name']),_0x1abc1c=_0x3fb9b6===void 0x0?_0x5ce5aa(_0x53f380._0x56969d):_0x5ce5aa(_0x53f380._0x468fb7)+_0x3fb9b6[_0x5ce5aa(0x1d1)](),_0x5bd6ff=_0x442766['length']>0x0?';\x20not\x20taken:\x20'+_0x442766['map'](_0x204d03=>JSON[_0x5ce5aa(0x1a1)](_0x204d03))['join'](',\x20'):'';return new TimeoutError(_0x1abc1c+_0x5ce5aa(0x163)+_0x2030e4+'\x20ms'+_0x5bd6ff,{'timeoutMs':_0x2030e4,'untaken':_0x442766,..._0x3fb9b6!==void 0x0?{'name':_0x3fb9b6[_0x5ce5aa(0x1d1)]()}:{}});}},QUOTED_SOCKETS=0x5,SocketLog=class{static{__name(this,_0xacabb4(0x1f1));}[_0xacabb4(0x126)]=[];['arrivals'];constructor(_0x21f9f7){const _0xb79340={_0x29fa6b:0x19e},_0x28b489=_0xacabb4;this[_0x28b489(_0xb79340._0x29fa6b)]=new Arrivals(_0x21f9f7);}[_0xacabb4(0xf8)](_0x1120bc){const _0x24d67a={_0x429eb2:0x126},_0x2671bf=_0xacabb4;this[_0x2671bf(_0x24d67a._0x429eb2)][_0x2671bf(0x1b3)](_0x1120bc),this['arrivals'][_0x2671bf(0x1e7)]();}[_0xacabb4(0x1e5)](){const _0x266e6d={_0x4a9b49:0x126},_0x417590=_0xacabb4;this[_0x417590(_0x266e6d._0x4a9b49)]=[];}async['find'](_0x445941,_0x91d794,_0x367691){const _0x2d6fcf={_0x386e11:0x19e,_0x4ebb03:0x1d9},_0x37f391=_0xacabb4,_0x2b04ce=await this[_0x37f391(_0x2d6fcf._0x386e11)][_0x37f391(_0x2d6fcf._0x4ebb03)](()=>this[_0x37f391(0x126)]['find'](_0x91d794),_0x367691);if(_0x2b04ce===void 0x0)throw this[_0x37f391(0x139)](_0x445941,_0x367691);return{'url':_0x2b04ce};}[_0xacabb4(0x139)](_0x56b993,_0x2c5e7d){const _0x277fc2={_0x49379e:0x126,_0x559bc1:0x143,_0x3d97c0:0x1fe,_0x2e66f2:0x210,_0x2315cc:0x160,_0x50b0d6:0x124,_0x3e1348:0x126},_0x83d329=_0xacabb4,_0x2e355d=this[_0x83d329(_0x277fc2._0x49379e)]['slice'](0x0,QUOTED_SOCKETS)[_0x83d329(_0x277fc2._0x559bc1)](_0x372f33=>JSON[_0x83d329(0x1a1)](_0x372f33)),_0x1604b5=this[_0x83d329(0x126)]['length']>QUOTED_SOCKETS?_0x83d329(_0x277fc2._0x3d97c0)+(this[_0x83d329(0x126)][_0x83d329(0x210)]-QUOTED_SOCKETS)+_0x83d329(0x182):'',_0x4d1625=_0x2e355d[_0x83d329(_0x277fc2._0x2e66f2)]>0x0?_0x83d329(0x205)+_0x2e355d['join'](',\x20')+_0x1604b5:';\x20the\x20page\x20opened\x20none';return new TimeoutError(_0x83d329(_0x277fc2._0x2315cc)+JSON['stringify'](_0x56b993)+'\x20within\x20'+_0x2c5e7d+_0x83d329(_0x277fc2._0x50b0d6)+_0x4d1625,{'glob':_0x56b993,'timeoutMs':_0x2c5e7d,'seen':[...this[_0x83d329(_0x277fc2._0x3e1348)]]});}},InvalidUrlGlobError=class extends ScenarioError{static{__name(this,_0xacabb4(0x191));}},LITERAL=new Set(['$','^','+','.','*','(',')','|','\x5c','?','{','}','[',']']),literal=__name(_0xa12358=>LITERAL[_0xacabb4(0x11a)](_0xa12358)?'\x5c'+_0xa12358:_0xa12358,'literal');function compile(_0x410dfe){const _0x1ca92e={_0x1bb714:0x1b5,_0x2755d7:0x1b3,_0x2564fc:0x1a1,_0xa6fc62:0x1b3,_0x1fdb54:0x1a9,_0x5dcd49:0x20c,_0x5758a5:0x150},_0x4e8769=_0xacabb4,_0x241b1b=['^'];let _0x38e7f1=![];for(let _0x4762d0=0x0;_0x4762d0<_0x410dfe[_0x4e8769(0x210)];_0x4762d0++){const _0x16eb5a=_0x410dfe[_0x4762d0];if(_0x16eb5a==='\x5c'&&_0x4762d0+0x1<_0x410dfe[_0x4e8769(0x210)]){_0x241b1b[_0x4e8769(0x1b3)](literal(_0x410dfe[++_0x4762d0]));continue;}if(_0x16eb5a==='*'){const _0x8a5fce=_0x410dfe[_0x4762d0-0x1];let _0x3e11b9=0x1;while(_0x410dfe[_0x4762d0+0x1]==='*'){_0x3e11b9++,_0x4762d0++;}if(_0x3e11b9===0x1)_0x241b1b[_0x4e8769(0x1b3)](_0x4e8769(_0x1ca92e._0x1bb714));else{if(_0x410dfe[_0x4762d0+0x1]!=='/')_0x241b1b[_0x4e8769(_0x1ca92e._0x2755d7)]('.*');else _0x241b1b[_0x4e8769(0x1b3)](_0x8a5fce==='/'?'(?:.+/|)':'.*/'),_0x4762d0++;}continue;}if(_0x16eb5a==='{'){if(_0x38e7f1)throw new InvalidUrlGlobError(_0x4e8769(0x1a9)+JSON[_0x4e8769(_0x1ca92e._0x2564fc)](_0x410dfe)+'\x20has\x20a\x20\x27{\x27\x20inside\x20another');_0x38e7f1=!![],_0x241b1b[_0x4e8769(_0x1ca92e._0xa6fc62)]('(?:');}else{if(_0x16eb5a==='}'){if(!_0x38e7f1)throw new InvalidUrlGlobError(_0x4e8769(_0x1ca92e._0x1fdb54)+JSON[_0x4e8769(0x1a1)](_0x410dfe)+_0x4e8769(_0x1ca92e._0x5dcd49));_0x38e7f1=![],_0x241b1b['push'](')');}else{if(_0x16eb5a===','&&_0x38e7f1)_0x241b1b[_0x4e8769(0x1b3)]('|');else _0x241b1b[_0x4e8769(0x1b3)](literal(_0x16eb5a));}}}if(_0x38e7f1)throw new InvalidUrlGlobError(_0x4e8769(_0x1ca92e._0x1fdb54)+JSON[_0x4e8769(0x1a1)](_0x410dfe)+_0x4e8769(_0x1ca92e._0x5758a5));return _0x241b1b[_0x4e8769(_0x1ca92e._0xa6fc62)]('$'),new RegExp(_0x241b1b[_0x4e8769(0x1c8)](''));}__name(compile,_0xacabb4(0x16e));function socketOrigin(_0xe1b378){const _0x472d3b={_0x344cc1:0xeb,_0x30bacf:0x115},_0x1e4d67=_0xacabb4,_0x1f34f7=new URL(_0xe1b378),_0x28a6a1=_0x1f34f7[_0x1e4d67(0x17f)]===_0x1e4d67(0x13d)?_0x1e4d67(_0x472d3b._0x344cc1):_0x1e4d67(_0x472d3b._0x30bacf);return _0x28a6a1+'//'+_0x1f34f7[_0x1e4d67(0x15a)];}__name(socketOrigin,'socketOrigin');function urlGlobMatcher(_0x5ba631,_0x308f4c){const _0x370591=_0xacabb4,_0x1dc3d2=_0x5ba631['startsWith']('/')&&_0x308f4c!==void 0x0?socketOrigin(_0x308f4c)+_0x5ba631:_0x5ba631,_0x1d2a81=compile(_0x1dc3d2);return _0x43418d=>_0x1d2a81[_0x370591(0x169)](_0x43418d);}__name(urlGlobMatcher,_0xacabb4(0x133));function matcherMatches(_0x2f0179,_0x26fb85,_0x2bcef4={}){const _0x26440d={_0x223518:0x20e,_0x1a9dc7:0x1ed,_0x3795ba:0x169},_0x3115d5=_0xacabb4;if(typeof _0x26fb85===_0x3115d5(0x130))return _0x2bcef4[_0x3115d5(0x173)]??!![]?_0x2f0179===_0x26fb85:_0x2f0179['includes'](_0x26fb85);return new RegExp(_0x26fb85[_0x3115d5(_0x26440d._0x223518)],_0x26fb85[_0x3115d5(_0x26440d._0x1a9dc7)])[_0x3115d5(_0x26440d._0x3795ba)](_0x2f0179);}__name(matcherMatches,_0xacabb4(0x1cb));var ServiceWorkerNeedsProfileError=class extends DriverError{static{__name(this,_0xacabb4(0x1fc));}constructor(){const _0x23b695={_0x184835:0x13c},_0x8be948=_0xacabb4;super(_0x8be948(_0x23b695._0x184835),{});}},ServiceWorkerWaitTimeoutError=class extends TimeoutError{static{__name(this,'ServiceWorkerWaitTimeoutError');}constructor(_0x9b9afe,_0x177fd1,_0x13fbb0){const _0x1c5ae8={_0x407d91:0x210,_0x496df5:0x208,_0x4bbb25:0x197},_0x4311d6=_0xacabb4,_0x2a86cd=_0x177fd1===void 0x0?'':'\x20matching\x20'+JSON['stringify'](_0x177fd1),_0x15094=_0x13fbb0[_0x4311d6(_0x1c5ae8._0x407d91)]===0x0?'':'\x20Running:\x20'+_0x13fbb0[_0x4311d6(0x1c8)](',\x20')+'.';super(_0x4311d6(_0x1c5ae8._0x496df5)+_0x2a86cd+_0x4311d6(0x14d)+_0x9b9afe+_0x4311d6(_0x1c5ae8._0x4bbb25)+_0x15094,{'timeoutMs':_0x9b9afe,'seen':_0x13fbb0});}};function workerMatches(_0x4b574d,_0x88645b){return _0x88645b===void 0x0||matcherMatches(_0x4b574d,_0x88645b,{'exact':![]});}__name(workerMatches,'workerMatches');function createRecorder(){const _0xa971a3=_0xacabb4,_0x5690b0=[];let _0x15018a=0x0;return{'push':__name(_0x46117c=>_0x5690b0[_0xa971a3(0x1b3)]({..._0x46117c,'seq':_0x15018a++}),'push'),'calls':__name(()=>_0x5690b0,_0xa971a3(0x188))};}__name(createRecorder,_0xacabb4(0x177));var FakePage=class{constructor(_0x476284,_0x4e4451,_0x5efe9e,_0x296d52){const _0x45b4cf={_0x2b0e94:0x1b9},_0x181d6c=_0xacabb4;this[_0x181d6c(0x185)]=_0x476284,this[_0x181d6c(_0x45b4cf._0x2b0e94)]=_0x4e4451,this['scope']=_0x5efe9e,this[_0x181d6c(0x101)]=_0x296d52;}[_0xacabb4(0x185)];[_0xacabb4(0x1b9)];[_0xacabb4(0x127)];static{__name(this,'FakePage');}[_0xacabb4(0x101)];[_0xacabb4(0x1bd)];['record'](_0x3afde7,_0x2ca84c){this['recorder']['push']({'scope':this['scope'],'method':_0x3afde7,'args':_0x2ca84c});}[_0xacabb4(0x179)](){const _0x56e8f5={_0x5b0073:0x175},_0x337c92=_0xacabb4;if(this[_0x337c92(0x1b9)][_0x337c92(0x175)]){const _0x17131b=this[_0x337c92(0x1b9)][_0x337c92(_0x56e8f5._0x5b0073)];this[_0x337c92(0x1b9)][_0x337c92(0x175)]=void 0x0;throw _0x17131b;}}[_0xacabb4(0x10d)](){const _0x49e0b3=_0xacabb4;return this[_0x49e0b3(0x101)];}async[_0xacabb4(0x122)](){const _0xb37d10={_0x4670f2:0x122,_0x8ea4b7:0x18e},_0x29dcc8=_0xacabb4;return this['record'](_0x29dcc8(_0xb37d10._0x4670f2),[]),_0x29dcc8(_0xb37d10._0x8ea4b7);}async[_0xacabb4(0xe7)](_0x123b8b,_0x39c7f0){const _0x3f63a7={_0x155503:0x1bd},_0x36ff7e=_0xacabb4;this[_0x36ff7e(0x1d7)]('click',[_0x123b8b,_0x39c7f0]),this['maybeThrow'](),this[_0x36ff7e(_0x3f63a7._0x155503)]?.();}async[_0xacabb4(0x151)](_0x17578e,_0x43469e){const _0x4220e9=_0xacabb4;this[_0x4220e9(0x1d7)]('doubleClick',[_0x17578e,_0x43469e]),this[_0x4220e9(0x179)]();}async[_0xacabb4(0x15f)](_0x2a7554,_0x77c87e,_0x183b91){const _0x16b7aa={_0x8ac728:0x15f,_0x129027:0x179},_0x171b1d=_0xacabb4;this[_0x171b1d(0x1d7)](_0x171b1d(_0x16b7aa._0x8ac728),[_0x2a7554,_0x77c87e,_0x183b91]),this[_0x171b1d(_0x16b7aa._0x129027)]();}async[_0xacabb4(0xed)](_0x47792e,_0x1874ab,_0xf330ac){const _0x3b1db8=_0xacabb4;this[_0x3b1db8(0x1d7)]('press',[_0x47792e,_0x1874ab,_0xf330ac]),this[_0x3b1db8(0x179)]();}async['check'](_0x202baf,_0x2b27e5){const _0x356c81=_0xacabb4;this[_0x356c81(0x1d7)]('check',[_0x202baf,_0x2b27e5]),this[_0x356c81(0x179)]();}async[_0xacabb4(0xec)](_0x55781b,_0x3994cc){const _0x8c6e5f=_0xacabb4;this[_0x8c6e5f(0x1d7)]('uncheck',[_0x55781b,_0x3994cc]),this[_0x8c6e5f(0x179)]();}async[_0xacabb4(0x1d3)](_0x53f329,_0x4af3c3,_0x404374){const _0x5b4f6f={_0x534a4f:0x1d3,_0x33f5b1:0x179},_0x1f82bf=_0xacabb4;this[_0x1f82bf(0x1d7)](_0x1f82bf(_0x5b4f6f._0x534a4f),[_0x53f329,_0x4af3c3,_0x404374]),this[_0x1f82bf(_0x5b4f6f._0x33f5b1)]();}async[_0xacabb4(0x1a7)](_0x479268,_0x40bcc4){const _0x177b0e=_0xacabb4;this['record']('hover',[_0x479268,_0x40bcc4]),this[_0x177b0e(0x179)]();}async[_0xacabb4(0x155)](_0x330a37){const _0x2ede01={_0x503588:0x155,_0x512ae1:0x179},_0x220abf=_0xacabb4;this['record'](_0x220abf(_0x2ede01._0x503588),[_0x330a37]),this[_0x220abf(_0x2ede01._0x512ae1)]();}async[_0xacabb4(0x18b)](_0x1e599e,_0x157fec,_0x105c73){const _0x25970d={_0x5bf497:0x1d7,_0xce517a:0x18b,_0x1430f1:0x179},_0x24a906=_0xacabb4;this[_0x24a906(_0x25970d._0x5bf497)](_0x24a906(_0x25970d._0xce517a),[_0x1e599e,_0x157fec,_0x105c73]),this[_0x24a906(_0x25970d._0x1430f1)]();}async[_0xacabb4(0x18c)](_0x27a78e,_0x1c9376){const _0x3a0eed={_0x84cb8a:0x179},_0x3d10ea=_0xacabb4;this['record']('uploadFile',[_0x27a78e,_0x1c9376]),this[_0x3d10ea(_0x3a0eed._0x84cb8a)]();}async[_0xacabb4(0x1b6)](_0x42de84,_0x58e64a){const _0xc5a751=_0xacabb4;this[_0xc5a751(0x1d7)](_0xc5a751(0x1b6),[_0x42de84,_0x58e64a]),this['maybeThrow']();}async['clipboardRead'](){const _0x259616={_0x5047e0:0x179,_0x6a146:0x1b9},_0x586e2a=_0xacabb4;return this[_0x586e2a(0x1d7)]('clipboardRead',[]),this[_0x586e2a(_0x259616._0x5047e0)](),this[_0x586e2a(_0x259616._0x6a146)]['clipboardText']?.()??'';}async[_0xacabb4(0x10a)](_0x3c6091){const _0x171c3c=_0xacabb4;return this[_0x171c3c(0x1d7)]('count',[_0x3c6091]),this[_0x171c3c(0x1b9)][_0x171c3c(0x189)]??0x1;}async[_0xacabb4(0x1ca)](_0x5233a0){const _0xba2aea={_0x54ba8f:0x1ca},_0x33212d=_0xacabb4;return this[_0x33212d(0x1d7)](_0x33212d(_0xba2aea._0x54ba8f),[_0x5233a0]),this[_0x33212d(0x1b9)]['textContentByDefault']??'';}async[_0xacabb4(0xf9)](_0x398e15){const _0x4052d0={_0x33d6be:0xf9,_0x59e795:0x189},_0x51c2d3=_0xacabb4;this['record'](_0x51c2d3(_0x4052d0._0x33d6be),[_0x398e15]);const _0x4d02f0=this[_0x51c2d3(0x1b9)][_0x51c2d3(_0x4052d0._0x59e795)]??0x1;return Array[_0x51c2d3(0x135)]({'length':_0x4d02f0},()=>this[_0x51c2d3(0x1b9)]['textContentByDefault']??'');}async['innerText'](_0x85f7e3){const _0x340bbb={_0x5a6e83:0x1d7},_0x44088a=_0xacabb4;return this[_0x44088a(_0x340bbb._0x5a6e83)]('innerText',[_0x85f7e3]),this['behavior'][_0x44088a(0x1f0)]??this['behavior']['textContentByDefault']??'';}async[_0xacabb4(0x125)](_0x50aea3){const _0x54c578=_0xacabb4;return this['record'](_0x54c578(0x125),[_0x50aea3]),this[_0x54c578(0x1b9)][_0x54c578(0x1e8)]??'';}async['checkedState'](_0x477fae){const _0x313d45={_0x2e29e0:0x1b2,_0x453141:0x1b9},_0x1f26b3=_0xacabb4;return this['record'](_0x1f26b3(_0x313d45._0x2e29e0),[_0x477fae]),this[_0x1f26b3(_0x313d45._0x453141)][_0x1f26b3(0x1db)]??null;}async[_0xacabb4(0x19d)](_0x1a16ed){const _0x3aca97={_0x2c9953:0x1d7,_0x40e07f:0x19d,_0x167871:0x1b9},_0x35b835=_0xacabb4;return this[_0x35b835(_0x3aca97._0x2c9953)](_0x35b835(_0x3aca97._0x40e07f),[_0x1a16ed]),this[_0x35b835(_0x3aca97._0x167871)]['isVisibleByDefault']??!![];}async[_0xacabb4(0x12c)](_0x2d0e50){const _0xe74c4d={_0x155f1d:0x1b9,_0xe0b5b3:0x162},_0x43df4a=_0xacabb4;return this['record'](_0x43df4a(0x12c),[_0x2d0e50]),this[_0x43df4a(_0xe74c4d._0x155f1d)][_0x43df4a(0x162)]===void 0x0?{'x':0x0,'y':0x0,'width':0x64,'height':0x14}:this['behavior'][_0x43df4a(_0xe74c4d._0xe0b5b3)];}async[_0xacabb4(0x193)](_0x4ac576){const _0x4e4e88={_0x162450:0x1d7,_0x1df13b:0x1b9},_0x534647=_0xacabb4;return this[_0x534647(_0x4e4e88._0x162450)](_0x534647(0x193),[_0x4ac576]),this[_0x534647(_0x4e4e88._0x1df13b)][_0x534647(0x19b)]??[];}['runningAnimationsCalls']=0x0;async['runningAnimations'](_0x44485b){const _0x333895={_0x4178f4:0x1b0,_0xa1aeb0:0x14a,_0x3b61aa:0x1ea},_0x1721dc=_0xacabb4;this[_0x1721dc(0x1d7)](_0x1721dc(_0x333895._0x4178f4),[_0x44485b]);const _0x5821dc=this[_0x1721dc(0x1b9)][_0x1721dc(_0x333895._0xa1aeb0)]??[0x0];return _0x5821dc[Math[_0x1721dc(0x1c6)](this[_0x1721dc(_0x333895._0x3b61aa)]++,_0x5821dc[_0x1721dc(0x210)]-0x1)]??0x0;}async[_0xacabb4(0x103)](_0x4ebde3,_0x4416b0){const _0x4743ed={_0x37e62b:0x1d7,_0x21918f:0x103},_0x47ee9a=_0xacabb4;this[_0x47ee9a(_0x4743ed._0x37e62b)](_0x47ee9a(_0x4743ed._0x21918f),[_0x4ebde3,_0x4416b0]);}async[_0xacabb4(0x18d)](_0x54e027,_0x4116b5){const _0x46e5f2={_0x29fa71:0x18d},_0x3e6d98=_0xacabb4;return this['record'](_0x3e6d98(_0x46e5f2._0x29fa71),[_0x54e027,_0x4116b5]),this[_0x3e6d98(0x1b9)]['computedStyleByProperty']?.[_0x4116b5]??'';}async[_0xacabb4(0xfe)](_0xf1ec9a){const _0x5a4ec1={_0x351cfe:0xfe},_0x25643b=_0xacabb4;return this['record'](_0x25643b(_0x5a4ec1._0x351cfe),[_0xf1ec9a]),this['behavior'][_0x25643b(0x1b7)]===void 0x0?{'width':0x64,'height':0x64}:this['behavior'][_0x25643b(0x1b7)];}async[_0xacabb4(0x147)](_0x4a00de){const _0x3b4d7a={_0x103af2:0x1b9,_0x435499:0x1eb},_0x2887e7=_0xacabb4;return this[_0x2887e7(0x1d7)](_0x2887e7(0x147),[_0x4a00de]),this[_0x2887e7(_0x3b4d7a._0x103af2)][_0x2887e7(_0x3b4d7a._0x435499)]??![];}async[_0xacabb4(0x1f4)](_0x435e60,_0x811b3){const _0x5c367a=_0xacabb4;return this[_0x5c367a(0x1d7)](_0x5c367a(0x1f4),[_0x435e60,_0x811b3]),this[_0x5c367a(0x1b9)][_0x5c367a(0x165)]?.[_0x811b3]??null;}async[_0xacabb4(0x102)](_0x5552c0,_0x24fcdf){const _0x30e172={_0xc68f32:0x1d7},_0x3a333b=_0xacabb4;this[_0x3a333b(_0x30e172._0xc68f32)](_0x3a333b(0x102),[_0x5552c0,_0x24fcdf]);}async['waitForUrl'](_0x551817,_0x4e87a4){const _0x13613d={_0x559e9b:0x1d7},_0x3bc19b=_0xacabb4;this[_0x3bc19b(_0x13613d._0x559e9b)]('waitForUrl',[_0x551817,_0x4e87a4]);}[_0xacabb4(0x1e0)]=new SocketLog(async()=>{});['socketOpened'](_0x4bae10){const _0x17df8c={_0xbf4dcc:0x1e0,_0x2b9915:0xf8},_0x123a9b=_0xacabb4;this[_0x123a9b(_0x17df8c._0xbf4dcc)][_0x123a9b(_0x17df8c._0x2b9915)](_0x4bae10);}[_0xacabb4(0x152)](_0x54d4f5,_0x553f9e){const _0x8e68d0={_0x3e4272:0x152,_0x3035b0:0x1e0,_0x12cb78:0x1ab},_0x2caf75=_0xacabb4;return this['record'](_0x2caf75(_0x8e68d0._0x3e4272),[_0x54d4f5,_0x553f9e]),this[_0x2caf75(_0x8e68d0._0x3035b0)][_0x2caf75(0x123)](_0x54d4f5,urlGlobMatcher(_0x54d4f5),_0x553f9e[_0x2caf75(_0x8e68d0._0x12cb78)]);}async['emulateMedia'](_0x3bc24d){const _0x3013f1={_0x373d16:0x1d7},_0x1fbd45=_0xacabb4;this[_0x1fbd45(_0x3013f1._0x373d16)](_0x1fbd45(0x167),[_0x3bc24d]);}async[_0xacabb4(0x199)](_0x22c4bf,_0x50042a){const _0x3c85ad=_0xacabb4;this[_0x3c85ad(0x1d7)]('waitForText',[_0x22c4bf,_0x50042a]);}async[_0xacabb4(0x100)](_0x5bc3b0){const _0x16911b={_0x124107:0x1d7,_0x3fe129:0x100},_0x3d1ab4=_0xacabb4;this[_0x3d1ab4(_0x16911b._0x124107)](_0x3d1ab4(_0x16911b._0x3fe129),[_0x5bc3b0]);}async[_0xacabb4(0x149)](_0x1129dd,_0x4a6892){const _0x1e4126=_0xacabb4;this[_0x1e4126(0x1d7)]('waitForLoadState',[_0x1129dd,_0x4a6892]);}async[_0xacabb4(0x141)](_0x2a85e7,_0x45f44e){const _0x4199cf={_0x10b298:0x141,_0x334222:0x101},_0x465e9e=_0xacabb4;this[_0x465e9e(0x1d7)](_0x465e9e(_0x4199cf._0x10b298),[_0x2a85e7,_0x45f44e]),this[_0x465e9e(_0x4199cf._0x334222)]=_0x2a85e7,this[_0x465e9e(0x1e0)][_0x465e9e(0x1e5)]();}async[_0xacabb4(0x1c0)](_0x2f89a2){const _0x25183f={_0x2da176:0x1d7,_0x10bec8:0x1c0,_0x1de8e0:0x1e0,_0x35c0c2:0x1e5},_0x2b434c=_0xacabb4;this[_0x2b434c(_0x25183f._0x2da176)](_0x2b434c(_0x25183f._0x10bec8),[_0x2f89a2]),this[_0x2b434c(_0x25183f._0x1de8e0)][_0x2b434c(_0x25183f._0x35c0c2)]();}async[_0xacabb4(0x121)](_0x21aa18){const _0x572670={_0x18cfb0:0x1d7},_0x1f37b5=_0xacabb4;this[_0x1f37b5(_0x572670._0x18cfb0)](_0x1f37b5(0x121),[_0x21aa18]);}async[_0xacabb4(0x14b)](_0x49bf1a){const _0x40dc4e=_0xacabb4;this['record'](_0x40dc4e(0x14b),[_0x49bf1a]);}async[_0xacabb4(0x1e1)](_0x1da9cf){const _0x1eba1d={_0x10ad95:0x1b9},_0x7a5ff8=_0xacabb4;return this[_0x7a5ff8(0x1d7)](_0x7a5ff8(0x1e1),[_0x1da9cf]),this[_0x7a5ff8(_0x1eba1d._0x10ad95)][_0x7a5ff8(0x119)];}async[_0xacabb4(0x1ae)](_0x12cadb,_0x5ecdf6,_0x16eddf){const _0x40d553=_0xacabb4;return this[_0x40d553(0x1d7)](_0x40d553(0x1ae),[_0x12cadb,_0x5ecdf6,_0x16eddf]),this[_0x40d553(0x1b9)][_0x40d553(0x119)];}async[_0xacabb4(0x106)](_0x151a85){const _0x5e1ad5={_0x281339:0x166,_0x3e2bef:0x1aa,_0x4824e3:0x1b9},_0x3949bd=_0xacabb4;this['record']('inspectElement',[_0x151a85]);if(_0x151a85['steps'][_0x3949bd(0x210)]!==0x1||_0x151a85[_0x3949bd(_0x5e1ad5._0x281339)][0x0][_0x3949bd(0x129)]!==_0x3949bd(_0x5e1ad5._0x3e2bef))return null;const _0x124e96=_0x151a85[_0x3949bd(0x166)][0x0]['ref'],_0x92a86f=this[_0x3949bd(_0x5e1ad5._0x4824e3)][_0x3949bd(0x1df)]?.[_0x124e96];return _0x92a86f??null;}async['screenshot'](_0x2cd9be){const _0x1b95d6={_0x5105fd:0x118,_0x4cf33b:0x145},_0x1b6a6c=_0xacabb4;return this['record'](_0x1b6a6c(_0x1b95d6._0x5105fd),[_0x2cd9be]),this[_0x1b6a6c(_0x1b95d6._0x4cf33b)](_0x2cd9be?.['type']);}async[_0xacabb4(0x116)](_0x34b159,_0x29cf0d){const _0x4ca91c={_0x1887c0:0x116},_0x226954=_0xacabb4;return this[_0x226954(0x1d7)](_0x226954(_0x4ca91c._0x1887c0),[_0x34b159,_0x29cf0d]),this['screenshotBytes'](_0x29cf0d?.[_0x226954(0x176)]);}async[_0xacabb4(0x174)](_0xde770b,_0x40f74e){const _0x4a9f1d={_0x10e4d2:0x174,_0x10295f:0x172},_0x2f0d43=_0xacabb4;return this['record'](_0x2f0d43(_0x4a9f1d._0x10e4d2),[_0xde770b,_0x40f74e]),this[_0x2f0d43(0x1b9)][_0x2f0d43(_0x4a9f1d._0x10295f)]?this['behavior'][_0x2f0d43(_0x4a9f1d._0x10295f)](_0xde770b,_0x40f74e):[];}[_0xacabb4(0x145)](_0x5ead6c){const _0x226943={_0x5ec90a:0x135},_0x1b0f8e=_0xacabb4,_0x421076=this['behavior'][_0x1b0f8e(0x145)];if(_0x421076===void 0x0)return Buffer[_0x1b0f8e(_0x226943._0x5ec90a)]('fake-png');return typeof _0x421076===_0x1b0f8e(0x171)?_0x421076(_0x5ead6c):_0x421076;}async[_0xacabb4(0x1dd)](_0x5d2af1){const _0x2147c8={_0xaf3737:0x1d7,_0x24e1a1:0x1dd,_0x11d78e:0x166,_0x4c1ba0:0x210,_0x550ead:0x1aa,_0x4b9185:0x1ac},_0x3d7f97=_0xacabb4;this[_0x3d7f97(_0x2147c8._0xaf3737)](_0x3d7f97(_0x2147c8._0x24e1a1),[_0x5d2af1]);if(_0x5d2af1[_0x3d7f97(_0x2147c8._0x11d78e)][_0x3d7f97(_0x2147c8._0x4c1ba0)]===0x1&&_0x5d2af1[_0x3d7f97(_0x2147c8._0x11d78e)][0x0]['kind']==='ref'){const _0x438a12=_0x5d2af1[_0x3d7f97(_0x2147c8._0x11d78e)][0x0][_0x3d7f97(_0x2147c8._0x550ead)];return this[_0x3d7f97(0x1b9)][_0x3d7f97(0x136)]?.[_0x438a12]??_0x3d7f97(_0x2147c8._0x4b9185)+_0x438a12+_0x3d7f97(0x131);}return _0x3d7f97(0x1e3);}},FAKE_SET_UP_CALLS=new Set([_0xacabb4(0x148),'setCookie',_0xacabb4(0x112),_0xacabb4(0x18a),_0xacabb4(0x14c),'clock.run',_0xacabb4(0x167),'newPage']),FakeContext=class{constructor(_0x3d6854,_0x2c9fc4,_0x5856ff,_0x5bc042=![]){const _0x1b1195={_0x16c73d:0x127,_0x2f872a:0x1ee,_0x2589db:0x1dc,_0x1c5268:0x15e,_0x4ac6fd:0x1a4},_0x83ad3=_0xacabb4;this['recorder']=_0x3d6854,this['behavior']=_0x2c9fc4,this[_0x83ad3(_0x1b1195._0x16c73d)]=_0x5856ff,this[_0x83ad3(0x1a3)]=_0x5bc042,this[_0x83ad3(_0x1b1195._0x2f872a)]=![];const _0x1c7fe9=new FakePage(_0x3d6854,_0x2c9fc4,_0x5856ff+_0x83ad3(0x19c),_0x2c9fc4[_0x83ad3(0x198)]??'about:blank');_0x2c9fc4[_0x83ad3(0x1bf)]&&(_0x1c7fe9['onAfterClick']=()=>{const _0x34ff41=_0x83ad3;this[_0x34ff41(0x1f3)](_0x2c9fc4[_0x34ff41(0x1bf)]);}),this['pageList']=[_0x1c7fe9],this[_0x83ad3(_0x1b1195._0x2589db)][_0x83ad3(0x1c3)](_0x1c7fe9),this[_0x83ad3(0x1cd)]=[..._0x2c9fc4['serviceWorkers']??[]],this['localStorageState']={..._0x2c9fc4[_0x83ad3(_0x1b1195._0x1c5268)]??{}},this[_0x83ad3(_0x1b1195._0x4ac6fd)]={..._0x2c9fc4[_0x83ad3(0xf4)]??{}};}[_0xacabb4(0x185)];[_0xacabb4(0x1b9)];[_0xacabb4(0x127)];[_0xacabb4(0x1a3)];static{__name(this,_0xacabb4(0x17d));}[_0xacabb4(0x1ee)];[_0xacabb4(0x1be)];[_0xacabb4(0x1e6)]=0x0;[_0xacabb4(0x1dc)]=new WeakSet();['history']=new PageHistory();[_0xacabb4(0x113)]=[];[_0xacabb4(0x1d2)];[_0xacabb4(0x1a4)];[_0xacabb4(0x1ec)]=new Set();[_0xacabb4(0x132)]=new RouteJournal();[_0xacabb4(0x11f)]=new Set();[_0xacabb4(0x154)]=new DownloadQueue(async()=>{});[_0xacabb4(0x1cd)];[_0xacabb4(0x184)]=new Set();[_0xacabb4(0x1d7)](_0x117f81,_0x7609c5){const _0x14605f={_0x3a636f:0x185,_0x33daf8:0x1b3,_0x526385:0x127},_0x4b79e5=_0xacabb4;this[_0x4b79e5(_0x14605f._0x3a636f)][_0x4b79e5(_0x14605f._0x33daf8)]({'scope':this[_0x4b79e5(_0x14605f._0x526385)],'method':_0x117f81,'args':_0x7609c5});}['pages'](){const _0x3f470e={_0x23e755:0x1be},_0xca492d=_0xacabb4;return this[_0xca492d(_0x3f470e._0x23e755)];}[_0xacabb4(0x158)](){const _0x5b9761={_0x3c7d34:0x1be},_0x3ea21e=_0xacabb4,_0x1534bf=this[_0x3ea21e(_0x5b9761._0x3c7d34)][this['activeIdx']];if(!_0x1534bf)throw new DriverError(_0x3ea21e(0x1c4),{'activeIdx':this[_0x3ea21e(0x1e6)]});return _0x1534bf;}['consoleEntries'](){const _0x562486=_0xacabb4;return this[_0x562486(0x1b9)][_0x562486(0xfc)]??[];}[_0xacabb4(0x11b)](){const _0x46297d={_0x49e137:0x1d7,_0x2b2a38:0x1b9,_0x16f621:0x11b},_0x28ad07=_0xacabb4;return this[_0x28ad07(_0x46297d._0x49e137)](_0x28ad07(0x11b),[]),this[_0x28ad07(_0x46297d._0x2b2a38)][_0x28ad07(_0x46297d._0x16f621)]??{'entries':[],'errors':[]};}[_0xacabb4(0x13a)](_0x37d57d={}){const _0x2aa937={_0x192234:0x196,_0x504685:0x1c2},_0x408a81=_0xacabb4;return this[_0x408a81(0x1d7)](_0x408a81(0x13a),[_0x37d57d['timeoutMs']]),this['downloads'][_0x408a81(_0x2aa937._0x192234)](_0x37d57d['timeoutMs']??0x0,_0x37d57d[_0x408a81(_0x2aa937._0x504685)]);}['emitFakeDownload'](_0x33bce1,_0x206651){const _0x2e6966={_0x517dde:0x154,_0x37b514:0x1b3},_0x3402ec=_0xacabb4;this[_0x3402ec(_0x2e6966._0x517dde)][_0x3402ec(_0x2e6966._0x37b514)]({'name':_0x33bce1,'saveAs':__name(_0x156234=>writeFile(_0x156234,_0x206651),'saveAs')});}['emitFakeWebSocket'](_0x3922e9){const _0x1fb33c=_0xacabb4;this[_0x1fb33c(0x1be)][this['activeIdx']][_0x1fb33c(0x1e4)](_0x3922e9);}[_0xacabb4(0x1d6)](){const _0x171497={_0x639a59:0x1b9,_0x4b90ec:0x1d6},_0x11e672=_0xacabb4;return this[_0x11e672(_0x171497._0x639a59)][_0x11e672(_0x171497._0x4b90ec)]??[];}async[_0xacabb4(0x137)](_0x4d22e2,_0x40f91c){const _0x41c9d1={_0x4d7f86:0x1be,_0xa18c89:0xf6,_0xe7daf4:0x1c1,_0x365704:0x1be,_0x427295:0x1dc,_0x4350fa:0xe4},_0x3dce4f=_0xacabb4;this['record'](_0x3dce4f(0x137),[_0x4d22e2,_0x40f91c]);if(_0x4d22e2<0x0||_0x4d22e2>=this[_0x3dce4f(_0x41c9d1._0x4d7f86)]['length'])throw new DriverError(_0x3dce4f(0x1ce),{'index':_0x4d22e2,'available':this[_0x3dce4f(_0x41c9d1._0x4d7f86)][_0x3dce4f(0x210)]});this[_0x3dce4f(_0x41c9d1._0xa18c89)][_0x3dce4f(_0x41c9d1._0xe7daf4)](this[_0x3dce4f(_0x41c9d1._0x365704)],this['activeIdx'],this[_0x3dce4f(_0x41c9d1._0x365704)][_0x4d22e2]),this[_0x3dce4f(0x1e6)]=_0x4d22e2,this['frameStack']['length']=0x0,this[_0x3dce4f(_0x41c9d1._0x427295)][_0x3dce4f(0x1c3)](this[_0x3dce4f(_0x41c9d1._0x4d7f86)][_0x4d22e2]);if(_0x40f91c?.['activate']!==![])this['record'](_0x3dce4f(_0x41c9d1._0x4350fa),[_0x4d22e2]);}async[_0xacabb4(0xe4)](_0x428df0){const _0x157474={_0x24932f:0x1d7,_0x2a387c:0x120},_0x55ebcf=_0xacabb4;this[_0x55ebcf(_0x157474._0x24932f)](_0x55ebcf(0xe4),[this[_0x55ebcf(_0x157474._0x2a387c)](_0x428df0)]);}async[_0xacabb4(0xef)](_0x49ccac,_0x5b4ad0){const _0x4a11fc={_0x262592:0xef},_0x10e4ba=_0xacabb4;this[_0x10e4ba(0x1d7)](_0x10e4ba(_0x4a11fc._0x262592),[this[_0x10e4ba(0x120)](_0x5b4ad0),_0x49ccac]);}[_0xacabb4(0x120)](_0x1b1bf0){const _0x202955={_0x4d1e9a:0x1e6},_0x335c99=_0xacabb4,_0x4027a5=_0x1b1bf0??this[_0x335c99(_0x202955._0x4d1e9a)];if(_0x4027a5<0x0||_0x4027a5>=this[_0x335c99(0x1be)][_0x335c99(0x210)])throw new DriverError(_0x335c99(0x1ce),{'index':_0x4027a5,'available':this[_0x335c99(0x1be)][_0x335c99(0x210)]});return _0x4027a5;}async[_0xacabb4(0x1f2)](){const _0x318897={_0x58965c:0x187},_0x15ab7e=_0xacabb4;this[_0x15ab7e(0x1d7)]('newPage',[]);const _0x2fc909=this['emitFakePopup'](_0x15ab7e(_0x318897._0x58965c));return await this['setActivePage'](_0x2fc909),_0x2fc909;}async[_0xacabb4(0x10b)](_0x20f358){const _0x372a06={_0x8bbb02:0x1d7,_0x5e8775:0x10b,_0x4ffe70:0x1e6,_0x182247:0x1be,_0x4815a0:0x203,_0x2998de:0x113},_0x2d7a62=_0xacabb4;this[_0x2d7a62(_0x372a06._0x8bbb02)](_0x2d7a62(_0x372a06._0x5e8775),[_0x20f358]);const {closing:_0x2921ae,nextActive:_0x22a255}=this['history']['planClose'](this[_0x2d7a62(0x1be)],this[_0x2d7a62(_0x372a06._0x4ffe70)],_0x20f358??this[_0x2d7a62(0x1e6)]),_0x4e6340=_0x2921ae===this[_0x2d7a62(0x1be)][this[_0x2d7a62(0x1e6)]];this[_0x2d7a62(_0x372a06._0x182247)][_0x2d7a62(0x20b)](this[_0x2d7a62(_0x372a06._0x182247)][_0x2d7a62(_0x372a06._0x4815a0)](_0x2921ae),0x1),this[_0x2d7a62(_0x372a06._0x4ffe70)]=_0x22a255;if(!_0x4e6340)return;this[_0x2d7a62(_0x372a06._0x2998de)][_0x2d7a62(0x210)]=0x0,this[_0x2d7a62(0x1d7)]('bringToFront',[_0x22a255]);}[_0xacabb4(0x1d8)](_0x518a62){const _0x3c5f7c=_0xacabb4;return subscribe(this[_0x3c5f7c(0x1ec)],_0x518a62);}async[_0xacabb4(0x17c)](_0x375be7={}){const _0x3f1457={_0x247514:0x1d7,_0x2770a7:0x17c,_0xe1cd73:0x1be},_0x2cc7f4=_0xacabb4;return this[_0x2cc7f4(_0x3f1457._0x247514)](_0x2cc7f4(_0x3f1457._0x2770a7),[_0x375be7]),claimNewPage(this[_0x2cc7f4(_0x3f1457._0xe1cd73)],this['handedPages'],_0x375be7[_0x2cc7f4(0x1ab)]??0x0);}async['setViewport'](_0x4799c5){const _0x2bd2ea=_0xacabb4;this[_0x2bd2ea(0x1d7)]('setViewport',[_0x4799c5]);}[_0xacabb4(0x114)](){const _0x241cf7={_0x381eab:0x10d},_0x1adf3c=_0xacabb4,_0x2608f2=this['recorder'][_0x1adf3c(0x188)]()['filter'](_0x4da0a3=>_0x4da0a3[_0x1adf3c(0x127)]===this['scope']||_0x4da0a3[_0x1adf3c(0x127)]['startsWith'](this[_0x1adf3c(0x127)]+_0x1adf3c(0x107)));return this[_0x1adf3c(0x1be)][_0x1adf3c(0x210)]===0x1&&this['pageList'][0x0][_0x1adf3c(_0x241cf7._0x381eab)]()==='about:blank'&&!_0x2608f2['some'](_0x2d81d3=>FAKE_SET_UP_CALLS['has'](_0x2d81d3[_0x1adf3c(0x157)]));}async['browserContextId'](){const _0x172b54={_0x5ebad3:0x127},_0x1098e5=_0xacabb4;return this[_0x1098e5(_0x172b54._0x5ebad3)];}[_0xacabb4(0x1cc)](){const _0x3f3f75={_0x46a112:0x1a3,_0x37b07f:0xff},_0x17a989={_0x155a92:0x11d},_0x44256b={_0x2b1dc9:0x18a,_0x42557a:0x1ee},_0xaa8223=_0xacabb4;if(!this[_0xaa8223(_0x3f3f75._0x46a112)])return NO_CLOCK;return{'freeze':__name(async _0x449f42=>{const _0x47dc74=_0xaa8223;this['record'](_0x47dc74(_0x44256b._0x2b1dc9),[_0x449f42]),this[_0x47dc74(_0x44256b._0x42557a)]=!![];},_0xaa8223(_0x3f3f75._0x37b07f)),'tick':__name(async _0x3b42c9=>this[_0xaa8223(0x1d7)]('clock.tick',[_0x3b42c9]),'tick'),'run':__name(async()=>{const _0x2d7d4d=_0xaa8223;this[_0x2d7d4d(0x1d7)](_0x2d7d4d(_0x17a989._0x155a92),[]),this[_0x2d7d4d(0x1ee)]=![];},'run'),'frozen':__name(()=>this[_0xaa8223(0x1ee)],_0xaa8223(0x159))};}[_0xacabb4(0x15d)](){const _0x36f8fa={_0x1907d5:0x17a},_0xc02f22={_0x32c62f:0x1ad,_0x508bc2:0x11f,_0x2b5363:0x16a,_0x2a1025:0x1da},_0x4fce35={_0x56746c:0x11f,_0x5238c3:0x1da,_0x20bb0b:0x1b9,_0x273d7e:0xe8},_0x52d18e={_0xb4a72:0x128,_0x246e19:0x202,_0x442273:0x11f},_0x5cc99=_0xacabb4;return{'add':__name(async _0x1b01c9=>{const _0x1b0e2f=_0xff7e;this['record'](_0x1b0e2f(_0x52d18e._0xb4a72),[_0x1b01c9]);const _0x4dcf47=_0x1b0e2f(0x12b)+(this[_0x1b0e2f(0x11f)][_0x1b0e2f(_0x52d18e._0x246e19)]+0x1);return this[_0x1b0e2f(_0x52d18e._0x442273)]['add'](_0x4dcf47),_0x4dcf47;},'add'),'credentials':__name(async _0x28806b=>{const _0x1459e0=_0xff7e;this[_0x1459e0(0x1d7)](_0x1459e0(0x192),[_0x28806b]);if(_0x28806b!==void 0x0&&!this[_0x1459e0(_0x4fce35._0x56746c)]['has'](_0x28806b))throw new DriverError(_0x1459e0(_0x4fce35._0x5238c3)+_0x28806b+'\x22\x20is\x20not\x20in\x20this\x20context');return this[_0x1459e0(_0x4fce35._0x20bb0b)][_0x1459e0(_0x4fce35._0x273d7e)]??[];},_0x5cc99(_0x36f8fa._0x1907d5)),'remove':__name(async _0xbc1ef2=>{const _0x57a5f5=_0x5cc99;this[_0x57a5f5(0x1d7)](_0x57a5f5(_0xc02f22._0x32c62f),[_0xbc1ef2]);if(!this[_0x57a5f5(_0xc02f22._0x508bc2)][_0x57a5f5(_0xc02f22._0x2b5363)](_0xbc1ef2))throw new DriverError(_0x57a5f5(_0xc02f22._0x2a1025)+_0xbc1ef2+_0x57a5f5(0x1f6));},'remove')};}async[_0xacabb4(0x1f7)](_0x4bf78a,_0x41f06c){const _0x3407b0={_0x4396f4:0x1a1},_0x310bf0=_0xacabb4;this[_0x310bf0(0x1d7)](_0x310bf0(0x1f7),[_0x4bf78a,_0x41f06c]);const _0x282fde=_0x4bf78a['filter'](_0x497800=>this[_0x310bf0(0x1b9)][_0x310bf0(0x1ff)]?.[_0x310bf0(0x17e)](_0x497800));if(_0x282fde[_0x310bf0(0x210)]>0x0)throw new DriverError(_0x310bf0(0x1c9)+JSON[_0x310bf0(_0x3407b0._0x4396f4)](_0x282fde));}async[_0xacabb4(0x1de)](_0x214f75){const _0x194a91=_0xacabb4;this[_0x194a91(0x1d7)](_0x194a91(0x1de),[_0x214f75]);}[_0xacabb4(0x13f)](){const _0x543d32={_0x269d18:0x1fb,_0x365d51:0x183},_0x7c612d={_0x2aa56f:0x1d7,_0x4b9fa6:0x1e9,_0x2edc7b:0x132,_0xbedfc6:0x20a},_0x2b4208={_0x58fa89:0x1d7,_0x237f24:0x132,_0xc6a67e:0x16a},_0x51763a={_0x3e4a48:0x132,_0x3c66e0:0x181},_0x20b766=_0xacabb4;return{'mock':__name(async(_0x1d3839,_0x541823)=>{const _0x5807c7=_0xff7e;this[_0x5807c7(0x1d7)]('network.mock',[_0x1d3839,_0x541823]),this[_0x5807c7(_0x51763a._0x3e4a48)][_0x5807c7(_0x51763a._0x3c66e0)](_0x1d3839,_0x541823);},_0x20b766(_0x543d32._0x269d18)),'unmock':__name(async _0x13ea88=>{const _0x30867f=_0x20b766;this[_0x30867f(_0x2b4208._0x58fa89)](_0x30867f(0x1a2),[_0x13ea88]),this[_0x30867f(_0x2b4208._0x237f24)][_0x30867f(_0x2b4208._0xc6a67e)](_0x13ea88);},_0x20b766(0x204)),'waitForRequest':__name((_0x28ea27,_0x2e4895)=>{const _0x40d72a=_0x20b766;return this[_0x40d72a(_0x7c612d._0x2aa56f)](_0x40d72a(_0x7c612d._0x4b9fa6),[_0x28ea27,_0x2e4895]),this[_0x40d72a(_0x7c612d._0x2edc7b)][_0x40d72a(_0x7c612d._0xbedfc6)](_0x28ea27,_0x2e4895['timeoutMs']);},_0x20b766(_0x543d32._0x365d51)),'blocked':__name(_0x38590a=>this[_0x20b766(0x132)][_0x20b766(0x1ef)](_0x38590a),'blocked')};}async[_0xacabb4(0x17b)](_0x4ca9ba){const _0x2c66cd={_0x524b3b:0x1cd,_0x3c2be6:0x123,_0x31b700:0x1b9,_0xf3cbe4:0x105},_0x272323={_0x4533e8:0x1c3},_0xcc77c0={_0x3cefb9:0x10d},_0x516998=_0xacabb4;this[_0x516998(0x1d7)](_0x516998(0x17b),[_0x4ca9ba]);const _0x190638=this[_0x516998(_0x2c66cd._0x524b3b)][_0x516998(_0x2c66cd._0x3c2be6)](_0x59c68f=>workerMatches(_0x59c68f,_0x4ca9ba?.['url']));if(_0x190638!==void 0x0)return this[_0x516998(0x153)](_0x190638);if(!this[_0x516998(_0x2c66cd._0x31b700)][_0x516998(_0x2c66cd._0xf3cbe4)])throw new ServiceWorkerNeedsProfileError();const _0x53639f=_0x4ca9ba?.['timeoutMs']??0x3e8,_0x2269e9=await new Promise((_0x4166ae,_0x544fb7)=>{const _0x344093=_0x516998,_0x53a8dc=__name(_0x513dfd=>{const _0x4db689=_0xff7e;if(!workerMatches(_0x513dfd,_0x4ca9ba?.[_0x4db689(_0xcc77c0._0x3cefb9)]))return;clearTimeout(_0x6ca9a),this[_0x4db689(0x184)]['delete'](_0x53a8dc),_0x4166ae(_0x513dfd);},_0x344093(0x1b8)),_0x6ca9a=setTimeout(()=>{const _0x3c3290=_0x344093;this[_0x3c3290(0x184)]['delete'](_0x53a8dc),_0x544fb7(new ServiceWorkerWaitTimeoutError(_0x53639f,_0x4ca9ba?.[_0x3c3290(0x10d)],this[_0x3c3290(0x1cd)]));},_0x53639f);this[_0x344093(0x184)][_0x344093(_0x272323._0x4533e8)](_0x53a8dc);});return this[_0x516998(0x153)](_0x2269e9);}[_0xacabb4(0x153)](_0x36bf7a){const _0x718c98={_0x143e5c:0x144};return{'url':__name(()=>_0x36bf7a,'url'),'evaluate':__name(async(_0x2a6d29,_0x472712)=>{const _0x21ffeb=_0xff7e;return this[_0x21ffeb(0x1d7)](_0x21ffeb(_0x718c98._0x143e5c),[_0x36bf7a,_0x2a6d29,_0x472712]),this['behavior'][_0x21ffeb(0x119)];},'evaluate')};}[_0xacabb4(0x1f5)](_0x107322){const _0x165c72={_0x47f0a5:0x184},_0x12020f=_0xacabb4;this[_0x12020f(0x1cd)]['push'](_0x107322);for(const _0x6084ad of[...this[_0x12020f(_0x165c72._0x47f0a5)]])_0x6084ad(_0x107322);}[_0xacabb4(0x206)](_0x108cdf,_0x58d157){const _0x3b92dc={_0x47a967:0x111,_0x285bb1:0x1af,_0x264889:0x1d7,_0x331cd0:0x132,_0x229453:0x132},_0x189ebb=_0xacabb4,_0x215cff=this[_0x189ebb(0x132)][_0x189ebb(_0x3b92dc._0x47a967)](_0x108cdf);if(_0x215cff?.[_0x189ebb(0x129)]===_0x189ebb(_0x3b92dc._0x285bb1)&&_0x215cff[_0x189ebb(_0x3b92dc._0x264889)])this[_0x189ebb(_0x3b92dc._0x331cd0)]['block'](_0x108cdf,_0x58d157);this[_0x189ebb(_0x3b92dc._0x229453)][_0x189ebb(0x134)](_0x108cdf,_0x58d157);}['emitFakePopup'](_0x328dba){const _0x445276={_0x56febd:0x127,_0xbe8bcc:0x107,_0x5b938a:0x1be,_0x21a99d:0x1b9},_0x5a4c1e=_0xacabb4,_0x13177f=this[_0x5a4c1e(_0x445276._0x56febd)]+_0x5a4c1e(_0x445276._0xbe8bcc)+this[_0x5a4c1e(_0x445276._0x5b938a)]['length'],_0x311abf=new FakePage(this['recorder'],this[_0x5a4c1e(_0x445276._0x21a99d)],_0x13177f,_0x328dba);this[_0x5a4c1e(_0x445276._0x5b938a)]['push'](_0x311abf);const _0x1ec88b=this[_0x5a4c1e(0x1be)]['length']-0x1;for(const _0x516c74 of this['newPageListeners']){try{_0x516c74({'index':_0x1ec88b,'url':_0x328dba});}catch{}}return _0x1ec88b;}[_0xacabb4(0x1c7)](_0x3ce7e5){const _0x3012ab={_0x51bf22:0x1be},_0x5d8764=_0xacabb4;if(_0x3ce7e5<0x0||_0x3ce7e5>=this['pageList'][_0x5d8764(0x210)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x3ce7e5,'available':this[_0x5d8764(0x1be)]['length']});this[_0x5d8764(_0x3012ab._0x51bf22)][_0x5d8764(0x20b)](_0x3ce7e5,0x1);}async[_0xacabb4(0x13e)](_0x64f666){const _0x19c58e={_0x501c35:0x1d7,_0x2c0164:0x166,_0x4c0ac6:0xf0,_0x44251b:0x113,_0x86fc5b:0x1b3},_0x52d713=_0xacabb4;this[_0x52d713(_0x19c58e._0x501c35)](_0x52d713(0x13e),[_0x64f666]);if(!_0x64f666[_0x52d713(_0x19c58e._0x2c0164)][_0x52d713(0x210)])throw new LocatorError(_0x52d713(_0x19c58e._0x4c0ac6),{'locator':_0x64f666});this[_0x52d713(_0x19c58e._0x44251b)][_0x52d713(_0x19c58e._0x86fc5b)](_0x64f666);}async['exitFrame'](){const _0xda7cf={_0x365935:0x109},_0x2a9406=_0xacabb4;this['record'](_0x2a9406(0xe9),[]);if(this[_0x2a9406(0x113)]['length']===0x0)throw new DriverError(_0x2a9406(_0xda7cf._0x365935),{});this[_0x2a9406(0x113)][_0x2a9406(0x10f)]();}async[_0xacabb4(0x112)](_0x3c0a34,_0x4d6023){const _0x22cdac={_0x260926:0x112,_0x50afb9:0x1d2},_0x5b7173=_0xacabb4;this[_0x5b7173(0x1d7)](_0x5b7173(_0x22cdac._0x260926),[_0x3c0a34,_0x4d6023]),this[_0x5b7173(_0x22cdac._0x50afb9)][_0x3c0a34]=_0x4d6023;}async[_0xacabb4(0xfd)](_0xb4b891){const _0x4f42d8={_0x145b22:0x1d7,_0x28a088:0x1d2},_0x473377=_0xacabb4;return this[_0x473377(_0x4f42d8._0x145b22)]('getLocalStorage',[_0xb4b891]),this[_0x473377(_0x4f42d8._0x28a088)][_0xb4b891]??null;}async[_0xacabb4(0x1c5)](_0x1fa64e,_0x1b1822,_0x478d3e){const _0x3b523b={_0x47c5c9:0x1d7,_0x43db84:0x1c5},_0x33aaa6=_0xacabb4;this[_0x33aaa6(_0x3b523b._0x47c5c9)](_0x33aaa6(_0x3b523b._0x43db84),[_0x1fa64e,_0x1b1822,_0x478d3e]),this[_0x33aaa6(0x1a4)][_0x1fa64e]=_0x1b1822;}async[_0xacabb4(0x1b1)](_0x51e944){const _0x214ccf={_0x3785ea:0x1a4},_0x2ac164=_0xacabb4;return this[_0x2ac164(0x1d7)]('getCookie',[_0x51e944]),this[_0x2ac164(_0x214ccf._0x3785ea)][_0x51e944]??null;}async[_0xacabb4(0x1ba)](_0xef862e){const _0x4c2256=_0xacabb4;this['record'](_0x4c2256(0x1ba),[_0xef862e]);}async['evaluate'](_0x1f8931){const _0x16476c=_0xacabb4;return this[_0x16476c(0x1d7)]('evaluate',[_0x1f8931]),void 0x0;}async[_0xacabb4(0xe5)](){const _0x1590ce={_0x4fa0e9:0xe5},_0x404cb6=_0xacabb4;this[_0x404cb6(0x1d7)](_0x404cb6(_0x1590ce._0x4fa0e9),[]),await this['behavior'][_0x404cb6(0x117)];}[_0xacabb4(0x156)](){const _0x231f87=_0xacabb4;return this[_0x231f87(0x113)][_0x231f87(0x210)];}},FakeWebDriver=class{constructor(_0x5147fe={}){const _0x409bdf={_0x38abd4:0x185},_0x33fa19=_0xacabb4;this[_0x33fa19(0x1b9)]=_0x5147fe,this[_0x33fa19(_0x409bdf._0x38abd4)]=createRecorder();}['behavior'];static{__name(this,'FakeWebDriver');}[_0xacabb4(0x1a8)]=![];[_0xacabb4(0x185)];['contexts']=[];async['launch'](_0x4a6cac){const _0x2b4384={_0x1c286d:0x1b3,_0x4984ac:0x13b,_0x1e11ea:0x1a8},_0xb58da5=_0xacabb4;this[_0xb58da5(0x185)][_0xb58da5(_0x2b4384._0x1c286d)]({'scope':_0xb58da5(_0x2b4384._0x4984ac),'method':'launch','args':[_0x4a6cac]}),this[_0xb58da5(_0x2b4384._0x1e11ea)]=!![];}async[_0xacabb4(0x161)](_0x2fb07a){const _0x478bdc={_0x2af324:0x13b,_0x571f0d:0x1b9},_0x41f393=_0xacabb4;this[_0x41f393(0x185)]['push']({'scope':_0x41f393(_0x478bdc._0x2af324),'method':_0x41f393(0x161),'args':[_0x2fb07a]});if(!this[_0x41f393(0x1a8)])throw new DriverError(_0x41f393(0xe6),{});const _0x39305c=new FakeContext(this[_0x41f393(0x185)],this[_0x41f393(_0x478bdc._0x571f0d)],'ctx'+this[_0x41f393(0x1a5)]['length'],_0x2fb07a?.['clock']===!![]);return this['contexts'][_0x41f393(0x1b3)](_0x39305c),_0x39305c;}async[_0xacabb4(0xe5)](){const _0x36f3d2={_0x39ca2f:0x1a8},_0xf20aac=_0xacabb4;this[_0xf20aac(0x185)]['push']({'scope':'driver','method':_0xf20aac(0xe5),'args':[]}),this[_0xf20aac(_0x36f3d2._0x39ca2f)]=![];}[_0xacabb4(0x138)](_0x15a0b8){return _0x15a0b8;}[_0xacabb4(0x1bb)](){return void 0x0;}async['connectShared'](){const _0x48962b=_0xacabb4;throw new DriverError(_0x48962b(0xfa),{});}async[_0xacabb4(0x14e)](_0x4af024){const _0x5710c9={_0xafd52b:0x20f},_0x192202=_0xacabb4;throw new DriverError(_0x192202(_0x5710c9._0xafd52b),{});}[_0xacabb4(0x16d)](){return![];}['calls'](){const _0x1e7563=_0xacabb4;return this[_0x1e7563(0x185)]['calls']();}[_0xacabb4(0x201)](_0x4c8a58){const _0x50e890={_0x1aee5d:0x185,_0x58ee6f:0x164},_0x1ff7ad=_0xacabb4;return this[_0x1ff7ad(_0x50e890._0x1aee5d)]['calls']()[_0x1ff7ad(_0x50e890._0x58ee6f)](_0x48b58f=>_0x48b58f[_0x1ff7ad(0x157)]===_0x4c8a58);}};export{FakeWebDriver};
|
|
1
|
+
const _0x1ee84e=_0x1a99;(function(_0x1501de,_0x4291b1){const _0x5be5bd={_0x4fcb92:0xf0,_0x275286:0xf2,_0x500937:0x1c4,_0x324f4e:0x185,_0x31be39:0x1b7,_0x220d96:0xa9,_0x1e75c8:0x17e,_0x584ad6:0x18a},_0x595aa2=_0x1a99,_0x22dd15=_0x1501de();while(!![]){try{const _0x2ac455=parseInt(_0x595aa2(_0x5be5bd._0x4fcb92))/0x1*(parseInt(_0x595aa2(_0x5be5bd._0x275286))/0x2)+-parseInt(_0x595aa2(0x133))/0x3*(parseInt(_0x595aa2(_0x5be5bd._0x500937))/0x4)+parseInt(_0x595aa2(_0x5be5bd._0x324f4e))/0x5+-parseInt(_0x595aa2(0x12a))/0x6+parseInt(_0x595aa2(_0x5be5bd._0x31be39))/0x7*(parseInt(_0x595aa2(_0x5be5bd._0x220d96))/0x8)+parseInt(_0x595aa2(0xcb))/0x9*(parseInt(_0x595aa2(0x1c2))/0xa)+-parseInt(_0x595aa2(_0x5be5bd._0x1e75c8))/0xb*(parseInt(_0x595aa2(_0x5be5bd._0x584ad6))/0xc);if(_0x2ac455===_0x4291b1)break;else _0x22dd15['push'](_0x22dd15['shift']());}catch(_0x398c58){_0x22dd15['push'](_0x22dd15['shift']());}}}(_0x2b90,0x63311));var __defProp=Object[_0x1ee84e(0x1ae)],__name=(_0x52b88d,_0x21d89a)=>__defProp(_0x52b88d,'name',{'value':_0x21d89a,'configurable':!![]});import{writeFile}from'fs/promises';function subscribe(_0xb1fb78,_0x7454aa){const _0x13a54b={_0x288da3:0x182},_0x4b4579=_0x1ee84e;return _0xb1fb78[_0x4b4579(_0x13a54b._0x288da3)](_0x7454aa),()=>{const _0x1e2964=_0x4b4579;_0xb1fb78[_0x1e2964(0xec)](_0x7454aa);};}__name(subscribe,_0x1ee84e(0x180));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x1ee84e(0x195));}},ScenarioError=class extends UnotestError{static{__name(this,_0x1ee84e(0x128));}},LocatorError=class extends UnotestError{static{__name(this,_0x1ee84e(0x134));}['checkFailure']=!![];},TimeoutError=class extends UnotestError{static{__name(this,_0x1ee84e(0xd9));}[_0x1ee84e(0x132)]=!![];},ClockNotInstalledError=class extends DriverError{static{__name(this,_0x1ee84e(0x105));}constructor(){super('the\x20page\x20clock\x20is\x20not\x20installed\x20on\x20this\x20browser\x20—\x20it\x20has\x20to\x20be\x20in\x20place\x20before\x20the\x20first\x20page\x20loads,\x20or\x20the\x20page\x27s\x20own\x20timers\x20keep\x20real\x20time.\x20A\x20run\x20installs\x20it\x20when\x20the\x20scenario\x20or\x20its\x20helpers\x20call\x20clockFreeze\x20/\x20clockTick\x20/\x20clockRun;\x20over\x20MCP,\x20open\x20the\x20browser\x20with\x20new_context\x20{clock:\x20true}\x20(or\x20explore_start\x20{clock:\x20true}).',{});}},NO_CLOCK={'freeze':__name(()=>Promise[_0x1ee84e(0x1b5)](new ClockNotInstalledError()),_0x1ee84e(0x124)),'tick':__name(()=>Promise[_0x1ee84e(0x1b5)](new ClockNotInstalledError()),_0x1ee84e(0x10d)),'run':__name(()=>Promise[_0x1ee84e(0x1b5)](new ClockNotInstalledError()),_0x1ee84e(0xd7)),'frozen':__name(()=>![],_0x1ee84e(0xad))};function firstUnhandedPage(_0x11fe5c,_0x35a7f0){return _0x11fe5c['findIndex'](_0x9cc631=>!_0x35a7f0['has'](_0x9cc631));}__name(firstUnhandedPage,'firstUnhandedPage');function _0x2b90(){const _0x2e894=['C2v0vMLLD3bVCNq','zMfRzs1HDxrOzw50AwnHDg9Ylq','D2fPDgvY','C291CMnL','rg93BMXVywrrDwv1zq','C2HPzNq','zgvMAw5LuhjVCgvYDhK','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','DxbSB2fKrMLSzq','D2fPDezVCLnLCNzPy2vxB3jRzxi','z2v0q29VA2LL','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','yxjYAxzHBhm','CMvQzwn0','y2HLy2TLzfn0yxrLqNLezwzHDwX0','nJK0odjUzMfqDhu','C2v0ugfNzuHPzgrLBG','yM91BMrPBMDcB3HcEurLzMf1Bhq','B25bzNrLCKnSAwnR','BMv0D29YAY5TB2nR','Aw5WDxrwywX1zuj5rgvMyxvSDa','yM91BMrPBMDcB3G','yw5PBwf0Aw9UCW','Aw5KzxHpzG','qxjYAxzHBhm','D3nfBMrWB2LUDa','mZbWyKPAvuG','D2fPDezVCG','nda4nhD6uKDkta','DxjSr2XVyK1HDgnOzxi','yNjPBMDuB0zYB250','AxnwAxnPyMXLqNLezwzHDwX0','C2XLzxa','rMfRzunVBNrLEhq','Bw9JA2vK','Bg9VAW','D2fPDgLUzW','y3jLzgvUDgLHBhm','C2nYzwvUC2HVDej5DgvZ','C3rVChbLza','D29YA2vYvxjSCW','tM90uMvJB3jKAw5NrxjYB3i','BMfTzq','Bg9JywXtDg9YywDLu3rHDgu','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','A2v5CW','y3vYCMvUDfvYBa','ndqWqNvkCxne','yMvOyxzPB3i','lIOV','u2vYDMLJzvDVCMTLCK5LzwrZuhjVzMLSzuvYCM9Y','zNjVEMvU','D3m6','BwLU','zxzHBhvHDgvpBKXVy2f0B3i','CNvUBMLUz0fUAw1HDgLVBNndywXSCW','ywn0AxzHDgu','y29TChv0zwrtDhLSzuj5uhjVCgvYDhK','y2XPCgjVyxjKuMvHza','Aw5ZCgvJDevSzw1LBNq','u29JA2v0tg9N','yxr0ywnOrxHPC3rPBMC','BM8Gzg93BMXVywqGD2HVC2uGBMfTzsb3B3vSzca','BMv0D29YA0vUDhjPzxm','Cg9W','uvvfvuvFtufy','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','y3r4','CMvM','D29YA2vYtwf0y2HLCW','y2XHAw1ozxDqywDL','C2nVCgu','ywn0AxzLswr4','CMvTB3zL','D2vIqxv0Ag4','CMvJB3jK','y2XVC2vqywDL','zw50zxjgCMfTzq','B3bLBMvK','z29cywnR','z2v0','mty2odqXmvHjDuzdCq','C2vLBG','Bgf1BMnOzwq','C2nYzwvUC2HVDevSzw1LBNq','CxvLDwvK','D2fPDezVCK5HDMLNyxrPB24','D29YA2vYu3rHCNrLza','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','B25tDgfYDa','Ahr0Chm6','y2XVy2SUCNvU','zMfRzvDVCMTLCG','CNvU','y29VA2LLu3rHDgu','vgLTzw91DevYCM9Y','yM94zxnjBKnHChr1CMu','kd86lISVFcK','Bg9JywXtDg9YywDL','DgLTzw91De1Z','A2LUza','D2fPDezVCKXVywrtDgf0zq','BM90Awz5','BwfW','BM8GBMv3ihrHyIb3AxrOAw4G','Aw5WDxrwywX1zq','y2fWDhvYzujVEgvZ','DMLYDhvHBcbHDxrOzw50AwnHDg9Yici','C2XPy2u','B25ozxDqywDL','Aw5JBhvKzxm','zNjVBq','Bwv0Ag9K','DgfRzq','zgvSzxrL','u2vYDMLJzvDVCMTLCLDHAxruAw1LB3v0rxjYB3i','D2fPDezVCKfUAw1HDgLVBNm','z3jHBNrqzxjTAxnZAw9UCZOGzMfRzsbLBMDPBMuGCMvMDxnLzca','mtmYmMjnqMj4vW','BM8GzxH0zw5ZAw9UihnLCNzPy2uGD29YA2vYigHLCMu6igv4DgvUC2LVBNmGBg9HzcbVBMX5igLUDg8GysbICM93C2vYihn0yxj0zwqGD2L0AcbHihbYB2zPBguG4OcuihnLDcbSyxvUy2GUDxnLCKrHDgfeAxiGkgfUzcb0AguGls1SB2fKlwv4DgvUC2LVBIbHCMDZksbPBIb1BM90zxn0lMnVBMzPzY4GqsbYDw4GB24GysbIB3GGAgfZig5VihbYB2zPBguSihnVigL0igHHCYbUBYbLEhrLBNnPB25ZigvPDgHLCI4','odi4r25ysuLY','Dgv4DenVBNrLBNq','igfUzca','ihn0yxj0zwqGD2L0AgLUia','AxneAxnHyMXLza','yMXVy2TLza','CgfNzxm','BMv3q29UDgv4Da','y2XPCgjVyxjKugfZDgu','y2XPCgjVyxjKvgv4Da','AgfUzgvKugfNzxm','C2v0tg9JywXtDg9YywDL','AgfZq2XVy2S','ig9Wzw4','Bgf1BMnO','CM91DgvZ','zw1PDezHA2vszxf1zxn0','ig1Zlca','zw11Bgf0zu1LzgLH','q2XVy2ToB3rjBNn0ywXSzwrfCNjVCG','zgvSAxzLCG','CMvMDxnLzfbLCM1PC3nPB25Z','pgrPDJ48l2rPDJ4','y2XVy2SUDgLJAW','BgvUz3rO','AxnwAxnPyMXL','z290BW','DgLJAW','C2v0q29VA2LL','yxr0CMLIDxrLC0j5rgvMyxvSDa','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','DhLWzq','yNjVD3nLCKnVBNrLEhrjza','CNvUBMLUz0fUAw1HDgLVBNntzxf1zw5Jzq','C2vSzwn0t3b0Aw9U','BM93','BMv0D29YAY51BM1Vy2S','zwXLBwvUDeHPBNrcEvjLzG','BgvMDa','w14VxsO','y2fSBhm','DgvZDa','z2v0tg9JywXtDg9YywDL','AM9PBG','C2f2zvn0B3jHz2vtDgf0zq','AgLZDg9YEq','y2HLy2S','y2XVC2u','C2v0','BM9eB3DUBg9Hza','zNjLzxPL','zNvUy3rPB24','BMv0D29YAY53ywL0rM9YuMvXDwvZDa','zxzHBhvHDgu','u2nLBMfYAw9fCNjVCG','z3jHBNrqzxjTAxnZAw9UCW','ndyZndGYzw1ssvHO','rMfRzvbHz2u','CgfNzuXPC3q','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','Bwf0y2HLCW','C3rHCNrZv2L0Aa','lNbHz2uW','C3DPDgnOAw5N','y2HLy2TgywLSDxjL','mtCZmxLyD0XhAq','tg9JyxrVCKvYCM9Y','yxv0AgvUDgLJyxrVCNm','y29UC29SzuvUDhjPzxm','yMXVy2S','y2fUBM90ignSB3nLihrOzsbVBMX5ig9Wzw4GDgfIoIbUB3rOAw5NihDVDwXKigjLigXLzNqGDg8GzhjPDMu','C3rLChm','D2fPDezVCLvYBa','igHHCYbHicD7jYbPBNnPzguGyw5VDgHLCG','zhjPDMvY','C2HHCMvKqNjVD3nLCKnVBM5Ly3rLza','C29JA2v0t3bLBMvK','Aw1Hz2vtAxPLqNLezwzHDwX0','CMvJB3jKzxi','iJ48l2rPDJ4','BMv3ugfNzuXPC3rLBMvYCW','C2f2zufZ','zhjHz0fUzerYB3a','DxjS','igHHCYbHicD7jYb3AxrOB3v0igL0CYaNFsC','ChjLC3m','zw1PDezHA2vxzwjtB2nRzxq','ugfNzuHPC3rVCNK','ihrHyG','zMLUza','CMvSB2fK','zxHHy3q','sw52ywXPzfvYBeDSB2jfCNjVCG','BMv3ugfNzq','Cg9WDxbpBKnSAwnR','AgfZ','oIbTB2nRigL0igzPCNn0ihDPDgGGBw9JA1jVDxrLka','C2L6zq','y291BNrcEurLzMf1Bhq','zMfRzsb0AxrSzq','y2XVy2SUzNjLzxPL','C29JA2v0CW','ihDPDgHPBIa','zMXHz3m','D2fPDgvYCW','BM8Gv2vIu29JA2v0ig1HDgnOAw5Nia','Bw9JAW','CMvZCg9UC2u','BM90AgLUzYbYzwnVCMrZihjLCxvLC3rZihrVia','CgXHBKnSB3nL','DMLYDhvHBenYzwrLBNrPywXZ','zw1PDezHA2vqB3b1Ca','uM91DgvkB3vYBMfS','C29JA2v0t3jPz2LU','DgfRzw4','C2v0qwn0AxzLugfNzq','BM8GCMvXDwvZDcb0BYa','zNjHBwvezxb0Aa','ywjVCNq','zxjYB3jpBK5LEhrby3rPB24','D2fPDezVCK5LD1bHz2u','y29TChv0zwrtDhLSzq','zNjHBwvtDgfJAW','D29YA2vYlMv2ywX1yxrL','D2fPDezVCLrLEhq','Dgv4DenVBNrLBNrZ','Dw50B3vJAgvK','C3bSAwnL','y2HLy2TLzfn0yxrL','y3jLyxrLuMvJB3jKzxi','rMfRzvDLyKrYAxzLCG','Dgv4DenVBNrLBNrcEurLzMf1Bhq','Dw50AwW','ChvZAa','C2v0t2zMBgLUzq','y2XPy2S','z29gB3j3yxjK','CMvZzxq','y291BNq','zxHPDezYyw1L','mJe2nJy3wLfqsKXi','C3rYAw5NAwz5','C3vIC2nYAwjL','D2fPDezVCLjLCxvLC3q','ywrK','DhjHBNnSyxrLrxjYB3i','D2fPDezVCKrVD25SB2fK','mJuZmZa2nw5nCfnJsa','C3rYAw5N','CMfJzq','Ag92zxi','CNvUBMLUz0fUAw1HDgLVBNm','nJyWy0rODuT4','y29TCgLSzq','DgHLig1HC2SG','Bwf5yMvuAhjVDW','Bwf0y2HLCK1HDgnOzxm','D2fPDezVCLDLyLnVy2TLDa','C2nYzwvUC2HVDa','y29UBMvJDfnOyxjLza','B3v0zxjive1m','CMvZCg9UC2vZ','CgfNzunVBNnVBgu','rhjPDMvYrxjYB3i','zw1PDezHA2veB3DUBg9Hza','Ag9ZDa','zxzHBhvHDgvszxn1Bhq','y2XVy2TgCM96zw4','y29UDgv4Dhm','B3bLBKLUzgv4','zg91yMXLq2XPy2S','zg93BMXVywrZ','ig1Z','ywjVDxq6yMXHBMS','Aw5UzxjuzxH0','C2nYB2XSsw50B1zPzxC','ChjVDg9JB2W','BM9tB2nRzxq','zMLSDgvY','D3nZoG','Aw5UzxjuzxH0qNLezwzHDwX0','zMLSBa'];_0x2b90=function(){return _0x2e894;};return _0x2b90();}function claimNewPage(_0x3646c7,_0x3a4888,_0xbbf3be){const _0x525377={_0x4d405e:0xff,_0x440b4e:0x182},_0x48c5c1=_0x1ee84e,_0x45cf1c=firstUnhandedPage(_0x3646c7,_0x3a4888);if(_0x45cf1c<0x0){const _0x9c89a0=_0x3646c7['length'];throw new TimeoutError(_0x48c5c1(0xe2)+_0xbbf3be+_0x48c5c1(0x103)+_0x9c89a0+_0x48c5c1(0x14a)+(_0x9c89a0===0x1?'':'s')+_0x48c5c1(_0x525377._0x4d405e),{'timeoutMs':_0xbbf3be,'open':_0x9c89a0});}return _0x3a4888[_0x48c5c1(_0x525377._0x440b4e)](_0x3646c7[_0x45cf1c]),_0x45cf1c;}__name(claimNewPage,_0x1ee84e(0xc0));var PageHistory=class{static{__name(this,_0x1ee84e(0x149));}[_0x1ee84e(0x118)]=[];[_0x1ee84e(0x131)](_0x44d1f6,_0x117610,_0x447530){const _0x19f3de={_0x3c9a33:0x171},_0x4ee580=_0x1ee84e,_0xe157=_0x44d1f6[_0x117610];if(!_0xe157||_0xe157===_0x447530)return;const _0x5dfa09=this['left']['filter'](_0x31e336=>_0x31e336!==_0xe157&&_0x44d1f6['includes'](_0x31e336));this[_0x4ee580(0x118)][_0x4ee580(_0x19f3de._0x3c9a33)](0x0,this['left']['length'],..._0x5dfa09,_0xe157);}['planClose'](_0x51ea49,_0x5c5d9b,_0xf6cab2){const _0x14b4d5={_0x3b07df:0x12d,_0x52f002:0x138,_0x3f59a3:0x1a4,_0xe7c715:0x10a,_0x4fc9d2:0x118},_0x4b46ef=_0x1ee84e,_0x279015=_0x51ea49[_0xf6cab2];if(!_0x279015)throw new DriverError(_0x4b46ef(_0x14b4d5._0x3b07df),{'index':_0xf6cab2,'available':_0x51ea49[_0x4b46ef(0x10a)]});if(_0x51ea49[_0x4b46ef(0x10a)]===0x1)throw new DriverError(_0x4b46ef(_0x14b4d5._0x52f002),{'index':_0xf6cab2});const _0x2202c6=_0x51ea49[_0x4b46ef(_0x14b4d5._0x3f59a3)](_0x14fe8a=>_0x14fe8a!==_0x279015),_0x11fda6=_0x51ea49[_0x5c5d9b],_0x5d30be=this['left']['filter'](_0x263b8d=>_0x263b8d!==_0x279015);this['left']['splice'](0x0,this[_0x4b46ef(0x118)][_0x4b46ef(_0x14b4d5._0xe7c715)],..._0x5d30be);if(_0x11fda6&&_0x11fda6!==_0x279015)return{'closing':_0x279015,'nextActive':_0x2202c6[_0x4b46ef(0x1bf)](_0x11fda6)};for(let _0x200350=this[_0x4b46ef(_0x14b4d5._0x4fc9d2)][_0x4b46ef(0x10a)]-0x1;_0x200350>=0x0;_0x200350--){const _0x3f6c02=_0x2202c6['indexOf'](this[_0x4b46ef(_0x14b4d5._0x4fc9d2)][_0x200350]);if(_0x3f6c02>=0x0)return{'closing':_0x279015,'nextActive':_0x3f6c02};}return{'closing':_0x279015,'nextActive':Math['max'](_0xf6cab2-0x1,0x0)};}},NotRecordingError=class extends DriverError{static{__name(this,_0x1ee84e(0x1d1));}constructor(_0x1788b0){const _0x1543f8={_0x5d391d:0x17f},_0x2293c8=_0x1ee84e;super(_0x2293c8(0x15e)+JSON[_0x2293c8(_0x1543f8._0x5d391d)](_0x1788b0)+_0x2293c8(0x152)+JSON[_0x2293c8(0x17f)](_0x1788b0)+',\x20{abort:\x20true,\x20record:\x20true}).\x20Without\x20it\x20a\x20check\x20for\x20requests\x20there\x20would\x20pass\x20having\x20watched\x20nothing.',{'glob':_0x1788b0});}},RequestWaitTimeoutError=class extends TimeoutError{static{__name(this,'RequestWaitTimeoutError');}constructor(_0xe1782a,_0x5c2f7b){const _0x12ea28={_0xe95add:0x166,_0x38b273:0x19e},_0x2629b9=_0x1ee84e;super(_0x2629b9(_0x12ea28._0xe95add)+JSON['stringify'](_0xe1782a)+'\x20in\x20'+_0x5c2f7b+_0x2629b9(_0x12ea28._0x38b273),{'glob':_0xe1782a,'timeoutMs':_0x5c2f7b});}},RouteJournal=class _RouteJournal{constructor(_0x2759fd=Date[_0x1ee84e(0x115)]){this['now']=_0x2759fd;}[_0x1ee84e(0x115)];static{__name(this,_0x1ee84e(0x162));}static [_0x1ee84e(0xbb)]=0x1f4;[_0x1ee84e(0x193)]=new Map();[_0x1ee84e(0xcf)]=new Map();[_0x1ee84e(0x15a)]=new Map();['stopped']=new Map();['set'](_0x4e82a2,_0x238ebf){const _0x57979b={_0x2d5f26:0xc5,_0x400103:0x1cf},_0x1242f7=_0x1ee84e;this['responses'][_0x1242f7(0x122)](_0x4e82a2,_0x238ebf);if(!this[_0x1242f7(0xcf)][_0x1242f7(0x151)](_0x4e82a2))this[_0x1242f7(0xcf)]['set'](_0x4e82a2,[]);_0x238ebf[_0x1242f7(0xde)]===_0x1242f7(0x168)&&_0x238ebf[_0x1242f7(_0x57979b._0x2d5f26)]&&!this[_0x1242f7(_0x57979b._0x400103)][_0x1242f7(0x151)](_0x4e82a2)&&this[_0x1242f7(0x1cf)][_0x1242f7(0x122)](_0x4e82a2,[]);}[_0x1ee84e(0xec)](_0x5db6a0){const _0x100b9c={_0x199144:0x193,_0x10b143:0x193,_0x5d884c:0xec,_0x3803fc:0xcf},_0x4e5f6f=_0x1ee84e,_0x139caf=_0x5db6a0===void 0x0?[...this[_0x4e5f6f(_0x100b9c._0x199144)][_0x4e5f6f(0xa7)]()]:this[_0x4e5f6f(_0x100b9c._0x10b143)][_0x4e5f6f(0x151)](_0x5db6a0)?[_0x5db6a0]:[];for(const _0x732abb of _0x139caf){this[_0x4e5f6f(0x193)][_0x4e5f6f(_0x100b9c._0x5d884c)](_0x732abb),this[_0x4e5f6f(_0x100b9c._0x3803fc)]['delete'](_0x732abb);}return _0x139caf;}[_0x1ee84e(0x15d)](_0x120918){const _0x329614={_0x423ba:0x193},_0x469bff=_0x1ee84e;return this[_0x469bff(_0x329614._0x423ba)][_0x469bff(0xca)](_0x120918);}[_0x1ee84e(0x1ca)](_0x2d8a0c){const _0x2eaa57={_0x280254:0x193,_0x34be4b:0x151},_0x354002=_0x1ee84e;return this[_0x354002(_0x2eaa57._0x280254)][_0x354002(_0x2eaa57._0x34be4b)](_0x2d8a0c);}['deliver'](_0x3536e2,_0x3bbf1b){const _0x13f358={_0x30bbb4:0x15a,_0x19193f:0xca},_0x9637bd=_0x1ee84e,_0x555faa=this[_0x9637bd(_0x13f358._0x30bbb4)][_0x9637bd(_0x13f358._0x19193f)](_0x3536e2)?.['shift']();if(_0x555faa){_0x555faa(_0x3bbf1b);return;}const _0x14c8de=this[_0x9637bd(0xcf)]['get'](_0x3536e2);if(!_0x14c8de)return;_0x14c8de['push'](_0x3bbf1b);if(_0x14c8de[_0x9637bd(0x10a)]>_RouteJournal['QUEUE_MAX'])_0x14c8de[_0x9637bd(0x1ad)]();}[_0x1ee84e(0x137)](_0x4cfdd5,_0x44a44c){const _0x4d1422={_0x246144:0xca,_0x1fb446:0x177},_0x3c8aca=_0x1ee84e;this[_0x3c8aca(0x1cf)][_0x3c8aca(_0x4d1422._0x246144)](_0x4cfdd5)?.[_0x3c8aca(_0x4d1422._0x1fb446)]({'url':_0x44a44c[_0x3c8aca(0x145)],'method':_0x44a44c[_0x3c8aca(0xea)],'at':this['now']()});}['blocked'](_0x56b3f5){const _0x2711a7={_0x4d2548:0xca},_0x1a86c2=_0x1ee84e,_0x1df8a1=this['stopped'][_0x1a86c2(_0x2711a7._0x4d2548)](_0x56b3f5);if(!_0x1df8a1)throw new NotRecordingError(_0x56b3f5);return _0x1df8a1;}['next'](_0xbecf7f,_0x1400d7){const _0x30d438={_0x3752a1:0xcf,_0x3240ee:0x1ad},_0x1d37dc={_0x497244:0x15a,_0x4aa8b8:0x171},_0x1657fb=_0x1ee84e,_0x5c06e2=this[_0x1657fb(_0x30d438._0x3752a1)][_0x1657fb(0xca)](_0xbecf7f)?.[_0x1657fb(_0x30d438._0x3240ee)]();if(_0x5c06e2)return Promise['resolve'](_0x5c06e2);return new Promise((_0x225824,_0x12fda6)=>{const _0x47d357=_0x1657fb,_0x493a3a=__name(_0x152885=>{clearTimeout(_0x9221ca),_0x225824(_0x152885);},_0x47d357(0x1aa)),_0x9221ca=setTimeout(()=>{const _0xcc9478=_0x47d357,_0x281a53=this[_0xcc9478(_0x1d37dc._0x497244)]['get'](_0xbecf7f)??[];_0x281a53[_0xcc9478(_0x1d37dc._0x4aa8b8)](_0x281a53['indexOf'](_0x493a3a),0x1),_0x12fda6(new RequestWaitTimeoutError(_0xbecf7f,_0x1400d7));},_0x1400d7),_0x4df581=this[_0x47d357(0x15a)]['get'](_0xbecf7f)??[];_0x4df581['push'](_0x493a3a),this['waiters'][_0x47d357(0x122)](_0xbecf7f,_0x4df581);});}},Arrivals=class{constructor(_0x220eaf){const _0x470006={_0x2b2594:0x1c8},_0x32efe0=_0x1ee84e;this[_0x32efe0(_0x470006._0x2b2594)]=_0x220eaf;}[_0x1ee84e(0x1c8)];static{__name(this,_0x1ee84e(0x1c0));}['waiting']=new Set();['notify'](){const _0x30789b=_0x1ee84e;for(const _0x48faee of this[_0x30789b(0x1cc)])_0x48faee();}async[_0x1ee84e(0x176)](_0x2746d6,_0x3a5b86){const _0x4a8f9d={_0x1d0244:0x1cb,_0x442236:0x182,_0x3d40be:0x1cc,_0x1f0629:0xec},_0x392d1d=_0x1ee84e,_0x5ef104=_0x2746d6();if(_0x5ef104!==void 0x0)return _0x5ef104;let _0x137f5e=__name(()=>{},_0x392d1d(_0x4a8f9d._0x1d0244));const _0x111de5=new Promise(_0x289687=>{const _0x16366b=_0x392d1d;_0x137f5e=__name(()=>{if(_0x2746d6()!==void 0x0)_0x289687();},_0x16366b(0x1cb));});this['waiting'][_0x392d1d(_0x4a8f9d._0x442236)](_0x137f5e);try{await Promise[_0x392d1d(0x187)]([_0x111de5,this[_0x392d1d(0x1c8)](_0x3a5b86)]);}finally{this[_0x392d1d(_0x4a8f9d._0x3d40be)][_0x392d1d(_0x4a8f9d._0x1f0629)](_0x137f5e);}return _0x2746d6();}},DownloadQueue=class{static{__name(this,_0x1ee84e(0x1ac));}[_0x1ee84e(0xcc)]=[];[_0x1ee84e(0x164)]=new Set();[_0x1ee84e(0x1b4)];constructor(_0xa62dc3){const _0x5d5485={_0x108db6:0x1b4},_0x3b894b=_0x1ee84e;this[_0x3b894b(_0x5d5485._0x108db6)]=new Arrivals(_0xa62dc3);}[_0x1ee84e(0x177)](_0x2cc79d){const _0x472072={_0x4458fb:0xcc,_0xbec228:0x1b4,_0x3a5d72:0xe0},_0x1cd963=_0x1ee84e;this[_0x1cd963(_0x472072._0x4458fb)][_0x1cd963(0x177)](_0x2cc79d),this[_0x1cd963(_0x472072._0xbec228)][_0x1cd963(_0x472072._0x3a5d72)]();}async[_0x1ee84e(0xeb)](_0x58606a,_0x4a2dc7){const _0x2c80cf={_0x4b870a:0x176,_0x40fab9:0x182},_0x21c8e3=_0x1ee84e,_0x5df866=__name(()=>this[_0x21c8e3(0xcc)][_0x21c8e3(0x14b)](_0x28e9fd=>!this['taken'][_0x21c8e3(0x151)](_0x28e9fd)&&(_0x4a2dc7===void 0x0||_0x4a2dc7[_0x21c8e3(0x12e)](_0x28e9fd[_0x21c8e3(0xa4)]))),'next'),_0x50d1b3=await this[_0x21c8e3(0x1b4)][_0x21c8e3(_0x2c80cf._0x4b870a)](_0x5df866,_0x58606a);if(_0x50d1b3===void 0x0)throw this[_0x21c8e3(0x123)](_0x58606a,_0x4a2dc7);return this[_0x21c8e3(0x164)][_0x21c8e3(_0x2c80cf._0x40fab9)](_0x50d1b3),_0x50d1b3;}[_0x1ee84e(0x123)](_0xaf2ba7,_0x71be58){const _0x34f039={_0x2fd0df:0x1a4,_0x377d7d:0x10a,_0x210014:0x11d,_0x3bda1a:0x158,_0x3a4555:0x19e},_0x927210=_0x1ee84e,_0x152be8=this['seen'][_0x927210(_0x34f039._0x2fd0df)](_0x416d65=>!this[_0x927210(0x164)][_0x927210(0x151)](_0x416d65))[_0x927210(0xe1)](_0x4761cd=>_0x4761cd[_0x927210(0xa4)]),_0x12d494=_0x71be58===void 0x0?'no\x20download':_0x927210(0xb8)+_0x71be58['describe'](),_0x1935c1=_0x152be8[_0x927210(_0x34f039._0x377d7d)]>0x0?';\x20not\x20taken:\x20'+_0x152be8['map'](_0x49e9e2=>JSON[_0x927210(0x17f)](_0x49e9e2))[_0x927210(_0x34f039._0x210014)](',\x20'):'';return new TimeoutError(_0x12d494+_0x927210(_0x34f039._0x3bda1a)+_0xaf2ba7+_0x927210(_0x34f039._0x3a4555)+_0x1935c1,{'timeoutMs':_0xaf2ba7,'untaken':_0x152be8,..._0x71be58!==void 0x0?{'name':_0x71be58['describe']()}:{}});}},QUOTED_SOCKETS=0x5,SocketLog=class{static{__name(this,_0x1ee84e(0xb6));}[_0x1ee84e(0xcc)]=[];['arrivals'];constructor(_0xfe328f){this['arrivals']=new Arrivals(_0xfe328f);}['opened'](_0x180c0b){const _0x106164={_0x34499a:0x177},_0x27fea3=_0x1ee84e;this[_0x27fea3(0xcc)][_0x27fea3(_0x106164._0x34499a)](_0x180c0b),this[_0x27fea3(0x1b4)]['notify']();}[_0x1ee84e(0x17b)](){this['seen']=[];}async[_0x1ee84e(0x14b)](_0x3d6ea0,_0x279d7b,_0xdec7ef){const _0x41fee7={_0x3da9b3:0x1b4,_0x39574d:0x1a3},_0x3d86e9=_0x1ee84e,_0x205f02=await this[_0x3d86e9(_0x41fee7._0x3da9b3)]['until'](()=>this[_0x3d86e9(0xcc)]['find'](_0x279d7b),_0xdec7ef);if(_0x205f02===void 0x0)throw this[_0x3d86e9(_0x41fee7._0x39574d)](_0x3d6ea0,_0xdec7ef);return{'url':_0x205f02};}[_0x1ee84e(0x1a3)](_0x334cb6,_0x8e683e){const _0xe60b08={_0x196961:0xcc,_0x4fb27f:0xe1,_0x5ed297:0xf4,_0x4c3c77:0x158},_0x46fec4=_0x1ee84e,_0x3b19ab=this[_0x46fec4(_0xe60b08._0x196961)][_0x46fec4(0xe6)](0x0,QUOTED_SOCKETS)[_0x46fec4(_0xe60b08._0x4fb27f)](_0x3ed3fa=>JSON[_0x46fec4(0x17f)](_0x3ed3fa)),_0x1ae6ef=this[_0x46fec4(_0xe60b08._0x196961)][_0x46fec4(0x10a)]>QUOTED_SOCKETS?_0x46fec4(_0xe60b08._0x5ed297)+(this[_0x46fec4(0xcc)][_0x46fec4(0x10a)]-QUOTED_SOCKETS)+'\x20more':'',_0x25d960=_0x3b19ab['length']>0x0?';\x20the\x20page\x20opened\x20'+_0x3b19ab['join'](',\x20')+_0x1ae6ef:';\x20the\x20page\x20opened\x20none';return new TimeoutError(_0x46fec4(0x15b)+JSON['stringify'](_0x334cb6)+_0x46fec4(_0xe60b08._0x4c3c77)+_0x8e683e+_0x46fec4(0x19e)+_0x25d960,{'glob':_0x334cb6,'timeoutMs':_0x8e683e,'seen':[...this[_0x46fec4(0xcc)]]});}},InvalidUrlGlobError=class extends ScenarioError{static{__name(this,_0x1ee84e(0x14e));}},LITERAL=new Set(['$','^','+','.','*','(',')','|','\x5c','?','{','}','[',']']),literal=__name(_0x291238=>LITERAL['has'](_0x291238)?'\x5c'+_0x291238:_0x291238,'literal');function compile(_0x4a86d5){const _0x278d0b={_0x150bcc:0x177,_0x3927fc:0x119,_0x75c52e:0xab,_0x202610:0x13b,_0x1c8f42:0x177,_0x1778a9:0x17f,_0x113567:0x18c,_0x134015:0x11d},_0x2c3f1d=_0x1ee84e,_0x83d991=['^'];let _0x12c1f2=![];for(let _0x5f2918=0x0;_0x5f2918<_0x4a86d5[_0x2c3f1d(0x10a)];_0x5f2918++){const _0x58cf3d=_0x4a86d5[_0x5f2918];if(_0x58cf3d==='\x5c'&&_0x5f2918+0x1<_0x4a86d5['length']){_0x83d991[_0x2c3f1d(_0x278d0b._0x150bcc)](literal(_0x4a86d5[++_0x5f2918]));continue;}if(_0x58cf3d==='*'){const _0x674a00=_0x4a86d5[_0x5f2918-0x1];let _0x3068da=0x1;while(_0x4a86d5[_0x5f2918+0x1]==='*'){_0x3068da++,_0x5f2918++;}if(_0x3068da===0x1)_0x83d991[_0x2c3f1d(0x177)](_0x2c3f1d(_0x278d0b._0x3927fc));else{if(_0x4a86d5[_0x5f2918+0x1]!=='/')_0x83d991[_0x2c3f1d(0x177)]('.*');else _0x83d991[_0x2c3f1d(0x177)](_0x674a00==='/'?_0x2c3f1d(0xdb):_0x2c3f1d(_0x278d0b._0x75c52e)),_0x5f2918++;}continue;}if(_0x58cf3d==='{'){if(_0x12c1f2)throw new InvalidUrlGlobError(_0x2c3f1d(0x18c)+JSON[_0x2c3f1d(0x17f)](_0x4a86d5)+_0x2c3f1d(_0x278d0b._0x202610));_0x12c1f2=!![],_0x83d991[_0x2c3f1d(_0x278d0b._0x1c8f42)]('(?:');}else{if(_0x58cf3d==='}'){if(!_0x12c1f2)throw new InvalidUrlGlobError(_0x2c3f1d(0x18c)+JSON[_0x2c3f1d(_0x278d0b._0x1778a9)](_0x4a86d5)+'\x20has\x20a\x20\x27}\x27\x20without\x20its\x20\x27{\x27');_0x12c1f2=![],_0x83d991[_0x2c3f1d(0x177)](')');}else{if(_0x58cf3d===','&&_0x12c1f2)_0x83d991[_0x2c3f1d(_0x278d0b._0x150bcc)]('|');else _0x83d991[_0x2c3f1d(_0x278d0b._0x1c8f42)](literal(_0x58cf3d));}}}if(_0x12c1f2)throw new InvalidUrlGlobError(_0x2c3f1d(_0x278d0b._0x113567)+JSON[_0x2c3f1d(0x17f)](_0x4a86d5)+_0x2c3f1d(0x146));return _0x83d991[_0x2c3f1d(0x177)]('$'),new RegExp(_0x83d991[_0x2c3f1d(_0x278d0b._0x134015)](''));}function _0x1a99(_0x50c3c2,_0x131313){_0x50c3c2=_0x50c3c2-0xa4;const _0x2b90b8=_0x2b90();let _0x1a996e=_0x2b90b8[_0x50c3c2];if(_0x1a99['jjEYAC']===undefined){var _0x21c9f6=function(_0x39c299){const _0x188a88='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x52b88d='',_0x21d89a='';for(let _0xb1fb78=0x0,_0x7454aa,_0x11fe5c,_0x35a7f0=0x0;_0x11fe5c=_0x39c299['charAt'](_0x35a7f0++);~_0x11fe5c&&(_0x7454aa=_0xb1fb78%0x4?_0x7454aa*0x40+_0x11fe5c:_0x11fe5c,_0xb1fb78++%0x4)?_0x52b88d+=String['fromCharCode'](0xff&_0x7454aa>>(-0x2*_0xb1fb78&0x6)):0x0){_0x11fe5c=_0x188a88['indexOf'](_0x11fe5c);}for(let _0x9cc631=0x0,_0x3646c7=_0x52b88d['length'];_0x9cc631<_0x3646c7;_0x9cc631++){_0x21d89a+='%'+('00'+_0x52b88d['charCodeAt'](_0x9cc631)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x21d89a);};_0x1a99['XqVVVF']=_0x21c9f6,_0x1a99['ipDSIv']={},_0x1a99['jjEYAC']=!![];}const _0x236b7f=_0x2b90b8[0x0],_0x902088=_0x50c3c2+_0x236b7f,_0x76bd09=_0x1a99['ipDSIv'][_0x902088];return!_0x76bd09?(_0x1a996e=_0x1a99['XqVVVF'](_0x1a996e),_0x1a99['ipDSIv'][_0x902088]=_0x1a996e):_0x1a996e=_0x76bd09,_0x1a996e;}__name(compile,_0x1ee84e(0x18b));function socketOrigin(_0x2d163b){const _0x5dfe03={_0x1c853c:0x1a2,_0x370fbd:0x1a5,_0xcd9fb5:0xae},_0x21a06c=_0x1ee84e,_0x42fd40=new URL(_0x2d163b),_0x2665f5=_0x42fd40[_0x21a06c(_0x5dfe03._0x1c853c)]===_0x21a06c(0xd4)?_0x21a06c(_0x5dfe03._0x370fbd):_0x21a06c(_0x5dfe03._0xcd9fb5);return _0x2665f5+'//'+_0x42fd40[_0x21a06c(0x197)];}__name(socketOrigin,_0x1ee84e(0x163));function urlGlobMatcher(_0x5409c0,_0x5db551){const _0x5867ba={_0x26de66:0x12f},_0x52f9f9=_0x1ee84e,_0x1fb3ee=_0x5409c0[_0x52f9f9(_0x5867ba._0x26de66)]('/')&&_0x5db551!==void 0x0?socketOrigin(_0x5db551)+_0x5409c0:_0x5409c0,_0x9f95de=compile(_0x1fb3ee);return _0x3c7966=>_0x9f95de[_0x52f9f9(0x11b)](_0x3c7966);}__name(urlGlobMatcher,_0x1ee84e(0x1c5));function matcherMatches(_0x313151,_0xa75e90,_0x3854e9={}){const _0xf71abc={_0x429100:0x1ab,_0x3f71b8:0x159,_0x56588a:0x11b},_0x3e0a7e=_0x1ee84e;if(typeof _0xa75e90===_0x3e0a7e(0x186))return _0x3854e9[_0x3e0a7e(0x14d)]??!![]?_0x313151===_0xa75e90:_0x313151['includes'](_0xa75e90);return new RegExp(_0xa75e90[_0x3e0a7e(_0xf71abc._0x429100)],_0xa75e90[_0x3e0a7e(_0xf71abc._0x3f71b8)])[_0x3e0a7e(_0xf71abc._0x56588a)](_0x313151);}__name(matcherMatches,_0x1ee84e(0x18e));var ServiceWorkerNeedsProfileError=class extends DriverError{static{__name(this,_0x1ee84e(0xac));}constructor(){const _0x3da600={_0x5d1a9e:0xf1},_0x5d820b=_0x1ee84e;super(_0x5d820b(_0x3da600._0x5d1a9e),{});}},ServiceWorkerWaitTimeoutError=class extends TimeoutError{static{__name(this,_0x1ee84e(0xed));}constructor(_0x2dd9d7,_0x2d46f3,_0x274a38){const _0x180292={_0x42e325:0xf5},_0x3dbeec=_0x1ee84e,_0x12365b=_0x2d46f3===void 0x0?'':'\x20matching\x20'+JSON[_0x3dbeec(0x17f)](_0x2d46f3),_0x268f92=_0x274a38[_0x3dbeec(0x10a)]===0x0?'':'\x20Running:\x20'+_0x274a38[_0x3dbeec(0x11d)](',\x20')+'.';super('no\x20service\x20worker'+_0x12365b+_0x3dbeec(_0x180292._0x42e325)+_0x2dd9d7+'\x20ms.'+_0x268f92,{'timeoutMs':_0x2dd9d7,'seen':_0x274a38});}};function workerMatches(_0x32b766,_0x2efe79){return _0x2efe79===void 0x0||matcherMatches(_0x32b766,_0x2efe79,{'exact':![]});}__name(workerMatches,_0x1ee84e(0xbf));function createRecorder(){const _0x3ef2f7={_0x14574e:0x177,_0x7462a1:0x11a},_0xa449f8=_0x1ee84e,_0x49bbd9=[];let _0x5899ba=0x0;return{'push':__name(_0x576c1c=>_0x49bbd9[_0xa449f8(0x177)]({..._0x576c1c,'seq':_0x5899ba++}),_0xa449f8(_0x3ef2f7._0x14574e)),'calls':__name(()=>_0x49bbd9,_0xa449f8(_0x3ef2f7._0x7462a1))};}__name(createRecorder,_0x1ee84e(0x173));var FakePage=class{constructor(_0x52a5ef,_0x1b2072,_0x1b8837,_0x55b271){const _0x1ce63d={_0x185aa3:0x140,_0x2fb7c3:0xc1},_0x285586=_0x1ee84e;this[_0x285586(_0x1ce63d._0x185aa3)]=_0x52a5ef,this['behavior']=_0x1b2072,this[_0x285586(_0x1ce63d._0x2fb7c3)]=_0x1b8837,this[_0x285586(0xa8)]=_0x55b271;}[_0x1ee84e(0x140)];[_0x1ee84e(0xaa)];['scope'];static{__name(this,_0x1ee84e(0x12b));}['currentUrl'];[_0x1ee84e(0x1ba)];['record'](_0x29c3fa,_0x58a4b5){const _0x4123f7={_0x47610c:0x140},_0x1e924d=_0x1ee84e;this[_0x1e924d(_0x4123f7._0x47610c)][_0x1e924d(0x177)]({'scope':this[_0x1e924d(0xc1)],'method':_0x29c3fa,'args':_0x58a4b5});}['maybeThrow'](){const _0x5cc4e5={_0x57f071:0x169,_0x5aabd9:0xaa},_0x2b1efc=_0x1ee84e;if(this['behavior']['errorOnNextAction']){const _0x14171d=this['behavior'][_0x2b1efc(_0x5cc4e5._0x57f071)];this[_0x2b1efc(_0x5cc4e5._0x5aabd9)]['errorOnNextAction']=void 0x0;throw _0x14171d;}}[_0x1ee84e(0x145)](){const _0x22d2b4=_0x1ee84e;return this[_0x22d2b4(0xa8)];}async['title'](){const _0x4793d6={_0x264d00:0xc5,_0x40c5b9:0x155},_0x5c9449=_0x1ee84e;return this[_0x5c9449(_0x4793d6._0x264d00)]('title',[]),_0x5c9449(_0x4793d6._0x40c5b9);}async[_0x1ee84e(0x179)](_0xc09caa,_0x2bbb99){const _0x470874={_0x8a2423:0x1ba},_0xbdda7a=_0x1ee84e;this['record'](_0xbdda7a(0x179),[_0xc09caa,_0x2bbb99]),this[_0xbdda7a(0x18d)](),this[_0xbdda7a(_0x470874._0x8a2423)]?.();}async[_0x1ee84e(0x19c)](_0x589d3a,_0x345de2){const _0x23f05e=_0x1ee84e;this[_0x23f05e(0xc5)](_0x23f05e(0x19c),[_0x589d3a,_0x345de2]),this['maybeThrow']();}async[_0x1ee84e(0x1a7)](_0x3de785,_0x2caac7,_0x44bfe2){const _0x466616={_0x56a02a:0x1a7},_0x57d77b=_0x1ee84e;this[_0x57d77b(0xc5)](_0x57d77b(_0x466616._0x56a02a),[_0x3de785,_0x2caac7,_0x44bfe2]),this['maybeThrow']();}async[_0x1ee84e(0x147)](_0x1aa935,_0x10aefe,_0x36933e){const _0x29f72f={_0x15eef8:0x147},_0x2310e8=_0x1ee84e;this['record'](_0x2310e8(_0x29f72f._0x15eef8),[_0x1aa935,_0x10aefe,_0x36933e]),this['maybeThrow']();}async[_0x1ee84e(0x120)](_0x4c5165,_0x33494b){const _0x217311=_0x1ee84e;this['record'](_0x217311(0x120),[_0x4c5165,_0x33494b]),this[_0x217311(0x18d)]();}async['uncheck'](_0x523d14,_0xf823cf){const _0x340503={_0x4018f5:0x18d},_0x2fb59d=_0x1ee84e;this['record']('uncheck',[_0x523d14,_0xf823cf]),this[_0x2fb59d(_0x340503._0x4018f5)]();}async[_0x1ee84e(0x114)](_0x582ad4,_0x12a9da,_0x4c0905){const _0x4ff60b=_0x1ee84e;this[_0x4ff60b(0xc5)]('selectOption',[_0x582ad4,_0x12a9da,_0x4c0905]),this['maybeThrow']();}async[_0x1ee84e(0x188)](_0x427c57,_0x140396){const _0xe487f5={_0x1c7cfa:0xc5,_0x2d767f:0x18d},_0x384c0d=_0x1ee84e;this[_0x384c0d(_0xe487f5._0x1c7cfa)](_0x384c0d(0x188),[_0x427c57,_0x140396]),this[_0x384c0d(_0xe487f5._0x2d767f)]();}async[_0x1ee84e(0x1a1)](_0x23039b){const _0x1e4365={_0x31ae11:0xc5,_0x4ce7a9:0x18d},_0x1d251b=_0x1ee84e;this[_0x1d251b(_0x1e4365._0x31ae11)]('scrollIntoView',[_0x23039b]),this[_0x1d251b(_0x1e4365._0x4ce7a9)]();}async[_0x1ee84e(0x144)](_0x5819e0,_0x359f8b,_0x272bbc){const _0x30e77c={_0x3274a0:0x144,_0x3c2127:0x18d},_0xf382c8=_0x1ee84e;this[_0xf382c8(0xc5)](_0xf382c8(_0x30e77c._0x3274a0),[_0x5819e0,_0x359f8b,_0x272bbc]),this[_0xf382c8(_0x30e77c._0x3c2127)]();}async[_0x1ee84e(0x1b0)](_0x38440f,_0x5bc9eb){const _0x117bca={_0x3271fc:0xc5},_0x37e971=_0x1ee84e;this[_0x37e971(_0x117bca._0x3271fc)](_0x37e971(0x1b0),[_0x38440f,_0x5bc9eb]),this[_0x37e971(0x18d)]();}async[_0x1ee84e(0xfa)](_0x40839d,_0xeebde3){const _0x277861={_0x40c8a1:0x18d},_0x55b432=_0x1ee84e;this['record'](_0x55b432(0xfa),[_0x40839d,_0xeebde3]),this[_0x55b432(_0x277861._0x40c8a1)]();}async['clipboardRead'](){const _0x199567={_0x56a50a:0xaa,_0x1a2b44:0xfb},_0x491893=_0x1ee84e;return this[_0x491893(0xc5)](_0x491893(0xb4),[]),this[_0x491893(0x18d)](),this[_0x491893(_0x199567._0x56a50a)][_0x491893(_0x199567._0x1a2b44)]?.()??'';}async[_0x1ee84e(0x17c)](_0x16a508){const _0x4552c6={_0x42dc77:0xaa},_0x4dc7ee=_0x1ee84e;return this['record'](_0x4dc7ee(0x17c),[_0x16a508]),this[_0x4dc7ee(_0x4552c6._0x42dc77)][_0x4dc7ee(0x154)]??0x1;}async[_0x1ee84e(0xf3)](_0x4bfbf3){const _0x25230b={_0x3fe504:0xc5},_0x109598=_0x1ee84e;return this[_0x109598(_0x25230b._0x3fe504)](_0x109598(0xf3),[_0x4bfbf3]),this[_0x109598(0xaa)][_0x109598(0x175)]??'';}async[_0x1ee84e(0x16f)](_0x38786f){const _0x451458={_0x4a8aad:0x154},_0x279952=_0x1ee84e;this['record'](_0x279952(0x16f),[_0x38786f]);const _0x275d59=this[_0x279952(0xaa)][_0x279952(_0x451458._0x4a8aad)]??0x1;return Array[_0x279952(0xe9)]({'length':_0x275d59},()=>this[_0x279952(0xaa)][_0x279952(0x175)]??'');}async[_0x1ee84e(0x1a0)](_0x3b22de){const _0x37a46b={_0x3f191d:0x1a6},_0x1ef5f9=_0x1ee84e;return this[_0x1ef5f9(0xc5)](_0x1ef5f9(0x1a0),[_0x3b22de]),this[_0x1ef5f9(0xaa)][_0x1ef5f9(_0x37a46b._0x3f191d)]??this['behavior'][_0x1ef5f9(0x175)]??'';}async[_0x1ee84e(0xe3)](_0x45ed9d){const _0x4db402={_0x2feceb:0xc5,_0x3c627d:0xe3,_0x2e1118:0xaa},_0x106eba=_0x1ee84e;return this[_0x106eba(_0x4db402._0x2feceb)](_0x106eba(_0x4db402._0x3c627d),[_0x45ed9d]),this[_0x106eba(_0x4db402._0x2e1118)][_0x106eba(0x1bc)]??'';}async['checkedState'](_0x492514){const _0x5b1f86={_0x3fb4aa:0x172,_0x4165d:0xaa,_0x3f0479:0x1b6},_0x56068e=_0x1ee84e;return this[_0x56068e(0xc5)](_0x56068e(_0x5b1f86._0x3fb4aa),[_0x492514]),this[_0x56068e(_0x5b1f86._0x4165d)][_0x56068e(_0x5b1f86._0x3f0479)]??null;}async[_0x1ee84e(0x10b)](_0x4a2d5d){const _0x5c4b15={_0x56a27e:0x1c7},_0x1307b3=_0x1ee84e;return this['record'](_0x1307b3(0x10b),[_0x4a2d5d]),this[_0x1307b3(0xaa)][_0x1307b3(_0x5c4b15._0x56a27e)]??!![];}async[_0x1ee84e(0x1bd)](_0x2619ba){const _0x355696={_0x44e6e9:0x1bd,_0x3307ff:0xaa,_0x2a07f5:0xaa},_0x2a22d0=_0x1ee84e;return this[_0x2a22d0(0xc5)](_0x2a22d0(_0x355696._0x44e6e9),[_0x2619ba]),this[_0x2a22d0(_0x355696._0x3307ff)][_0x2a22d0(0x1b9)]===void 0x0?{'x':0x0,'y':0x0,'width':0x64,'height':0x14}:this[_0x2a22d0(_0x355696._0x2a07f5)][_0x2a22d0(0x1b9)];}async[_0x1ee84e(0x1be)](_0x11a618){const _0x16418d={_0x14bfab:0xc5,_0xb0e829:0xaa},_0x241855=_0x1ee84e;return this[_0x241855(_0x16418d._0x14bfab)]('animations',[_0x11a618]),this[_0x241855(_0x16418d._0xb0e829)]['animationsByDefault']??[];}[_0x1ee84e(0xb1)]=0x0;async[_0x1ee84e(0x189)](_0x1054c5){const _0x43fcce={_0x77254:0xc5,_0x3dd77c:0xaa,_0x32874f:0xaf,_0x4b09fe:0xb1,_0x1f7fbb:0x10a},_0x3a514d=_0x1ee84e;this[_0x3a514d(_0x43fcce._0x77254)](_0x3a514d(0x189),[_0x1054c5]);const _0x34eb89=this[_0x3a514d(_0x43fcce._0x3dd77c)][_0x3a514d(0x113)]??[0x0];return _0x34eb89[Math[_0x3a514d(_0x43fcce._0x32874f)](this[_0x3a514d(_0x43fcce._0x4b09fe)]++,_0x34eb89[_0x3a514d(_0x43fcce._0x1f7fbb)]-0x1)]??0x0;}async[_0x1ee84e(0xee)](_0x4c8bb3,_0xf76fa8){const _0x1e38bb=_0x1ee84e;this['record'](_0x1e38bb(0xee),[_0x4c8bb3,_0xf76fa8]);}async['computedStyle'](_0xd8f117,_0x17fe0c){const _0x408e74=_0x1ee84e;return this[_0x408e74(0xc5)](_0x408e74(0x16b),[_0xd8f117,_0x17fe0c]),this['behavior'][_0x408e74(0xb3)]?.[_0x17fe0c]??'';}async['imageSize'](_0x30e815){const _0x4c9f72={_0x3abea4:0xaa},_0x48d9a1=_0x1ee84e;return this['record']('imageSize',[_0x30e815]),this[_0x48d9a1(0xaa)][_0x48d9a1(0x13f)]===void 0x0?{'width':0x64,'height':0x64}:this[_0x48d9a1(_0x4c9f72._0x3abea4)]['imageSizeByDefault'];}async[_0x1ee84e(0xf6)](_0x3da793){const _0x4c4465={_0x3c827d:0xc5},_0x36fd85=_0x1ee84e;return this[_0x36fd85(_0x4c4465._0x3c827d)](_0x36fd85(0xf6),[_0x3da793]),this[_0x36fd85(0xaa)]['isDisabledByDefault']??![];}async['getAttribute'](_0xf89332,_0x31dc5b){const _0x2d87b8={_0x1bad6f:0xc5},_0x2ce72f=_0x1ee84e;return this[_0x2ce72f(_0x2d87b8._0x1bad6f)]('getAttribute',[_0xf89332,_0x31dc5b]),this['behavior'][_0x2ce72f(0x10f)]?.[_0x31dc5b]??null;}async[_0x1ee84e(0x1c3)](_0x2a9bd5,_0x279ac6){this['record']('waitFor',[_0x2a9bd5,_0x279ac6]);}async[_0x1ee84e(0x13a)](_0x5590ff,_0x1058c9){this['record']('waitForUrl',[_0x5590ff,_0x1058c9]);}[_0x1ee84e(0x157)]=new SocketLog(async()=>{});[_0x1ee84e(0x13e)](_0x2cb7cf){const _0x239bf5={_0x3286e8:0x157},_0x4c2792=_0x1ee84e;this[_0x4c2792(_0x239bf5._0x3286e8)][_0x4c2792(0xc8)](_0x2cb7cf);}[_0x1ee84e(0x18f)](_0x45b3f7,_0x174d9f){const _0x130e2a={_0x407187:0x157,_0xa6ea41:0xdd},_0x10f3a1=_0x1ee84e;return this[_0x10f3a1(0xc5)]('waitForWebSocket',[_0x45b3f7,_0x174d9f]),this[_0x10f3a1(_0x130e2a._0x407187)]['find'](_0x45b3f7,urlGlobMatcher(_0x45b3f7),_0x174d9f[_0x10f3a1(_0x130e2a._0xa6ea41)]);}async[_0x1ee84e(0x104)](_0x55ba10){const _0x4683ec={_0x356622:0xc5,_0x3259e5:0x104},_0x2fd42d=_0x1ee84e;this[_0x2fd42d(_0x4683ec._0x356622)](_0x2fd42d(_0x4683ec._0x3259e5),[_0x55ba10]);}async[_0x1ee84e(0x16e)](_0x19bc5c,_0x1962a6){const _0x4214ee=_0x1ee84e;this[_0x4214ee(0xc5)](_0x4214ee(0x16e),[_0x19bc5c,_0x1962a6]);}async[_0x1ee84e(0xd0)](_0x206441){const _0x28ea06={_0x3de203:0xc5,_0x314ebc:0xd0},_0xdf632c=_0x1ee84e;this[_0xdf632c(_0x28ea06._0x3de203)](_0xdf632c(_0x28ea06._0x314ebc),[_0x206441]);}async[_0x1ee84e(0xdf)](_0x19a226,_0x1f4091){const _0x2963d7=_0x1ee84e;this[_0x2963d7(0xc5)](_0x2963d7(0xdf),[_0x19a226,_0x1f4091]);}async['goto'](_0x2b2c32,_0x3ffc51){const _0x87ac4e={_0x952ad7:0xc5,_0x579300:0x10c,_0x22c433:0x17b},_0x21d36e=_0x1ee84e;this[_0x21d36e(_0x87ac4e._0x952ad7)](_0x21d36e(_0x87ac4e._0x579300),[_0x2b2c32,_0x3ffc51]),this['currentUrl']=_0x2b2c32,this['sockets'][_0x21d36e(_0x87ac4e._0x22c433)]();}async[_0x1ee84e(0x14c)](_0x15cd35){const _0x2044d5={_0xd29951:0x14c},_0x116d37=_0x1ee84e;this['record'](_0x116d37(_0x2044d5._0xd29951),[_0x15cd35]),this['sockets']['reset']();}async[_0x1ee84e(0xc9)](_0x3df78e){const _0x1df869=_0x1ee84e;this[_0x1df869(0xc5)](_0x1df869(0xc9),[_0x3df78e]);}async['goForward'](_0x2e173c){const _0x8a588f=_0x1ee84e;this[_0x8a588f(0xc5)](_0x8a588f(0x17a),[_0x2e173c]);}async[_0x1ee84e(0x127)](_0x1097b0){const _0x1df390={_0x5b9844:0x127},_0x337e71=_0x1ee84e;return this[_0x337e71(0xc5)](_0x337e71(_0x1df390._0x5b9844),[_0x1097b0]),this[_0x337e71(0xaa)][_0x337e71(0x198)];}async[_0x1ee84e(0xb0)](_0x4e6e69,_0x5eddb0,_0x56f7b6){const _0x80439d={_0xeb7529:0xc5},_0x1b2a7b=_0x1ee84e;return this[_0x1b2a7b(_0x80439d._0xeb7529)]('evaluateOnLocator',[_0x4e6e69,_0x5eddb0,_0x56f7b6]),this['behavior'][_0x1b2a7b(0x198)];}async[_0x1ee84e(0xb5)](_0xfd7305){const _0x2f21b2={_0x5b507d:0xc5,_0x1e2dde:0xb5,_0x5927db:0x139,_0x5c1f98:0x10a,_0x11cba9:0x139,_0x21f7c1:0xaa},_0xd3fbc2=_0x1ee84e;this[_0xd3fbc2(_0x2f21b2._0x5b507d)](_0xd3fbc2(_0x2f21b2._0x1e2dde),[_0xfd7305]);if(_0xfd7305[_0xd3fbc2(_0x2f21b2._0x5927db)][_0xd3fbc2(_0x2f21b2._0x5c1f98)]!==0x1||_0xfd7305[_0xd3fbc2(_0x2f21b2._0x11cba9)][0x0]['kind']!=='ref')return null;const _0x4d65c7=_0xfd7305[_0xd3fbc2(_0x2f21b2._0x5927db)][0x0][_0xd3fbc2(0xbe)],_0x5b3868=this[_0xd3fbc2(_0x2f21b2._0x21f7c1)][_0xd3fbc2(0x117)]?.[_0x4d65c7];return _0x5b3868??null;}async[_0x1ee84e(0x190)](_0x2d8ee9){const _0x33bc20={_0x506c04:0x1ce},_0x4f9270=_0x1ee84e;return this[_0x4f9270(0xc5)](_0x4f9270(0x190),[_0x2d8ee9]),this[_0x4f9270(_0x33bc20._0x506c04)](_0x2d8ee9?.[_0x4f9270(0x111)]);}async[_0x1ee84e(0xce)](_0x9a8590,_0x5e4f97){const _0x5937e2={_0x103009:0x111},_0x1bc207=_0x1ee84e;return this['record'](_0x1bc207(0xce),[_0x9a8590,_0x5e4f97]),this[_0x1bc207(0x1ce)](_0x5e4f97?.[_0x1bc207(_0x5937e2._0x103009)]);}async[_0x1ee84e(0xda)](_0x110938,_0x1ad83e){const _0x1a1587={_0x1de16d:0xc5,_0x4ec445:0xe4},_0x350ec6=_0x1ee84e;return this[_0x350ec6(_0x1a1587._0x1de16d)]('boxesInCapture',[_0x110938,_0x1ad83e]),this[_0x350ec6(0xaa)][_0x350ec6(_0x1a1587._0x4ec445)]?this['behavior'][_0x350ec6(_0x1a1587._0x4ec445)](_0x110938,_0x1ad83e):[];}['screenshotBytes'](_0x9254b0){const _0x425870={_0xa55d77:0x1ce},_0x244deb=_0x1ee84e,_0x3ccfd2=this[_0x244deb(0xaa)][_0x244deb(_0x425870._0xa55d77)];if(_0x3ccfd2===void 0x0)return Buffer[_0x244deb(0xe9)]('fake-png');return typeof _0x3ccfd2===_0x244deb(0x125)?_0x3ccfd2(_0x9254b0):_0x3ccfd2;}async['outerHTML'](_0x5ef833){const _0x582384={_0x378079:0x10a,_0x2bc63f:0x139,_0x1f434d:0xbe,_0x152060:0xaa,_0x45825b:0xbc,_0x575bfc:0x108},_0x10f8f4=_0x1ee84e;this[_0x10f8f4(0xc5)](_0x10f8f4(0x192),[_0x5ef833]);if(_0x5ef833['steps'][_0x10f8f4(_0x582384._0x378079)]===0x1&&_0x5ef833[_0x10f8f4(_0x582384._0x2bc63f)][0x0][_0x10f8f4(0xde)]===_0x10f8f4(_0x582384._0x1f434d)){const _0x7cd1d2=_0x5ef833[_0x10f8f4(0x139)][0x0][_0x10f8f4(0xbe)];return this[_0x10f8f4(_0x582384._0x152060)]['outerHtmlByRef']?.[_0x7cd1d2]??_0x10f8f4(_0x582384._0x45825b)+_0x7cd1d2+_0x10f8f4(0x141);}return _0x10f8f4(_0x582384._0x575bfc);}},FAKE_SET_UP_CALLS=new Set(['network.mock',_0x1ee84e(0x10e),_0x1ee84e(0xfd),'clock.freeze',_0x1ee84e(0x109),_0x1ee84e(0xd5),_0x1ee84e(0x104),_0x1ee84e(0x14f)]),FakeContext=class{constructor(_0x271d8b,_0x2d3879,_0x2b034c,_0x1c527c=![]){const _0x4d7fa9={_0x5a7c1d:0x140,_0xad4c2a:0x130,_0x43c367:0x1ba,_0x17ab46:0x182,_0x367643:0x1d0,_0x51949c:0xd8},_0x347cdc={_0xd076de:0x150},_0x272924=_0x1ee84e;this[_0x272924(_0x4d7fa9._0x5a7c1d)]=_0x271d8b,this[_0x272924(0xaa)]=_0x2d3879,this['scope']=_0x2b034c,this['hasClock']=_0x1c527c,this['clockFrozen']=![];const _0x72cdcb=new FakePage(_0x271d8b,_0x2d3879,_0x2b034c+_0x272924(_0x4d7fa9._0xad4c2a),_0x2d3879['initialUrl']??'about:blank');_0x2d3879[_0x272924(0x150)]&&(_0x72cdcb[_0x272924(_0x4d7fa9._0x43c367)]=()=>{const _0x25be64=_0x272924;this[_0x25be64(0x161)](_0x2d3879[_0x25be64(_0x347cdc._0xd076de)]);}),this[_0x272924(0x12c)]=[_0x72cdcb],this['handedPages'][_0x272924(_0x4d7fa9._0x17ab46)](_0x72cdcb),this[_0x272924(_0x4d7fa9._0x367643)]=[..._0x2d3879['serviceWorkers']??[]],this[_0x272924(0xa5)]={..._0x2d3879[_0x272924(0xdc)]??{}},this[_0x272924(_0x4d7fa9._0x51949c)]={..._0x2d3879['cookies']??{}};}[_0x1ee84e(0x140)];[_0x1ee84e(0xaa)];[_0x1ee84e(0xc1)];[_0x1ee84e(0xfe)];static{__name(this,_0x1ee84e(0x1c9));}[_0x1ee84e(0x199)];[_0x1ee84e(0x12c)];['activeIdx']=0x0;['handedPages']=new WeakSet();[_0x1ee84e(0x11f)]=new PageHistory();[_0x1ee84e(0x16c)]=[];[_0x1ee84e(0xa5)];['cookieState'];['newPageListeners']=new Set();['routes']=new RouteJournal();[_0x1ee84e(0x135)]=new Set();[_0x1ee84e(0x19d)]=new DownloadQueue(async()=>{});['workerUrls'];[_0x1ee84e(0xd1)]=new Set();[_0x1ee84e(0xc5)](_0x437ba3,_0x494610){const _0xc8f176=_0x1ee84e;this['recorder'][_0xc8f176(0x177)]({'scope':this[_0xc8f176(0xc1)],'method':_0x437ba3,'args':_0x494610});}[_0x1ee84e(0xf8)](){const _0x10f5ca=_0x1ee84e;return this[_0x10f5ca(0x12c)];}['activePage'](){const _0x902913={_0x34239e:0x12c},_0x302b01=_0x1ee84e,_0x59f750=this[_0x302b01(_0x902913._0x34239e)][this[_0x302b01(0xc2)]];if(!_0x59f750)throw new DriverError(_0x302b01(0xa6),{'activeIdx':this[_0x302b01(0xc2)]});return _0x59f750;}[_0x1ee84e(0x136)](){const _0x4744f5=_0x1ee84e;return this['behavior'][_0x4744f5(0x136)]??[];}[_0x1ee84e(0x194)](){const _0xc730b2=_0x1ee84e;return this['record'](_0xc730b2(0x194),[]),this['behavior']['pageConsole']??{'entries':[],'errors':[]};}[_0x1ee84e(0x184)](_0x4cc6c2={}){const _0x394d8e={_0x5a7f23:0x184,_0x2ea449:0xdd,_0x2b19d3:0x19d},_0x1b5620=_0x1ee84e;return this[_0x1b5620(0xc5)](_0x1b5620(_0x394d8e._0x5a7f23),[_0x4cc6c2[_0x1b5620(_0x394d8e._0x2ea449)]]),this[_0x1b5620(_0x394d8e._0x2b19d3)][_0x1b5620(0xeb)](_0x4cc6c2[_0x1b5620(0xdd)]??0x0,_0x4cc6c2[_0x1b5620(0xa4)]);}[_0x1ee84e(0x196)](_0x1ea486,_0x81f8fd){const _0x4d6896={_0x5ef2ee:0x143},_0x2ea895=_0x1ee84e;this[_0x2ea895(0x19d)]['push']({'name':_0x1ea486,'saveAs':__name(_0x59e565=>writeFile(_0x59e565,_0x81f8fd),_0x2ea895(_0x4d6896._0x5ef2ee))});}[_0x1ee84e(0x148)](_0x237c11){const _0x1556c4={_0x44913d:0x12c,_0x43661e:0xc2},_0x37b3de=_0x1ee84e;this[_0x37b3de(_0x1556c4._0x44913d)][this[_0x37b3de(_0x1556c4._0x43661e)]][_0x37b3de(0x13e)](_0x237c11);}[_0x1ee84e(0xb9)](){const _0x8cbd8d={_0x332227:0xb9},_0x73930a=_0x1ee84e;return this['behavior'][_0x73930a(_0x8cbd8d._0x332227)]??[];}async[_0x1ee84e(0x165)](_0x73d9dc,_0x3e643a){const _0x157a16={_0x226f89:0xc5,_0x2b5ab1:0x165,_0x1a1fc1:0x12d,_0x101c46:0x12c,_0x1f9a6a:0x131,_0x38e080:0xc2,_0x47ba67:0xc2,_0x2d990e:0x10a,_0x4baa49:0xfc,_0x17d7fa:0xc5,_0x4f131c:0x1c6},_0x442cfe=_0x1ee84e;this[_0x442cfe(_0x157a16._0x226f89)](_0x442cfe(_0x157a16._0x2b5ab1),[_0x73d9dc,_0x3e643a]);if(_0x73d9dc<0x0||_0x73d9dc>=this['pageList'][_0x442cfe(0x10a)])throw new DriverError(_0x442cfe(_0x157a16._0x1a1fc1),{'index':_0x73d9dc,'available':this[_0x442cfe(_0x157a16._0x101c46)][_0x442cfe(0x10a)]});this['history'][_0x442cfe(_0x157a16._0x1f9a6a)](this[_0x442cfe(0x12c)],this[_0x442cfe(_0x157a16._0x38e080)],this[_0x442cfe(0x12c)][_0x73d9dc]),this[_0x442cfe(_0x157a16._0x47ba67)]=_0x73d9dc,this['frameStack'][_0x442cfe(_0x157a16._0x2d990e)]=0x0,this[_0x442cfe(_0x157a16._0x4baa49)]['add'](this[_0x442cfe(0x12c)][_0x73d9dc]);if(_0x3e643a?.[_0x442cfe(0xb2)]!==![])this[_0x442cfe(_0x157a16._0x17d7fa)](_0x442cfe(_0x157a16._0x4f131c),[_0x73d9dc]);}async[_0x1ee84e(0x1c6)](_0x29d5ba){const _0x4f7c7c=_0x1ee84e;this[_0x4f7c7c(0xc5)](_0x4f7c7c(0x1c6),[this[_0x4f7c7c(0x19b)](_0x29d5ba)]);}async['setPageHidden'](_0xb503e6,_0x21b2d2){const _0x3991af={_0x4959b5:0x1b8},_0x5a3c2f=_0x1ee84e;this['record'](_0x5a3c2f(_0x3991af._0x4959b5),[this[_0x5a3c2f(0x19b)](_0x21b2d2),_0xb503e6]);}['openIndex'](_0x4ccd92){const _0x391679={_0x2c92a8:0x10a},_0x59f3ee=_0x1ee84e,_0x580e2d=_0x4ccd92??this[_0x59f3ee(0xc2)];if(_0x580e2d<0x0||_0x580e2d>=this['pageList'][_0x59f3ee(0x10a)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x580e2d,'available':this[_0x59f3ee(0x12c)][_0x59f3ee(_0x391679._0x2c92a8)]});return _0x580e2d;}async[_0x1ee84e(0x14f)](){const _0x239f86={_0x107848:0xc5,_0xe589c7:0x14f,_0xff3e41:0x161,_0xa54e51:0x19f},_0x19d53c=_0x1ee84e;this[_0x19d53c(_0x239f86._0x107848)](_0x19d53c(_0x239f86._0xe589c7),[]);const _0x1a2ca9=this[_0x19d53c(_0x239f86._0xff3e41)](_0x19d53c(_0x239f86._0xa54e51));return await this[_0x19d53c(0x165)](_0x1a2ca9),_0x1a2ca9;}async[_0x1ee84e(0xc6)](_0x45c284){const _0x1ae759={_0xcf0010:0x11f,_0x4be532:0x12c,_0x187007:0x12c,_0x1daef1:0x10a},_0x1f6b01=_0x1ee84e;this[_0x1f6b01(0xc5)]('closePage',[_0x45c284]);const {closing:_0x3e58cb,nextActive:_0x738592}=this[_0x1f6b01(_0x1ae759._0xcf0010)][_0x1f6b01(0x15f)](this[_0x1f6b01(_0x1ae759._0x4be532)],this[_0x1f6b01(0xc2)],_0x45c284??this['activeIdx']),_0x36b8f8=_0x3e58cb===this[_0x1f6b01(_0x1ae759._0x4be532)][this['activeIdx']];this[_0x1f6b01(0x12c)]['splice'](this[_0x1f6b01(_0x1ae759._0x187007)]['indexOf'](_0x3e58cb),0x1),this['activeIdx']=_0x738592;if(!_0x36b8f8)return;this[_0x1f6b01(0x16c)][_0x1f6b01(_0x1ae759._0x1daef1)]=0x0,this[_0x1f6b01(0xc5)](_0x1f6b01(0x1c6),[_0x738592]);}[_0x1ee84e(0xe7)](_0x429212){const _0x553be1=_0x1ee84e;return subscribe(this[_0x553be1(0x142)],_0x429212);}async[_0x1ee84e(0x16a)](_0x391011={}){const _0x21cdff={_0x3d3b08:0x12c,_0x46f8da:0xdd},_0x33969a=_0x1ee84e;return this[_0x33969a(0xc5)](_0x33969a(0x16a),[_0x391011]),claimNewPage(this[_0x33969a(_0x21cdff._0x3d3b08)],this[_0x33969a(0xfc)],_0x391011[_0x33969a(_0x21cdff._0x46f8da)]??0x0);}async[_0x1ee84e(0x1a8)](_0x410468){const _0x1bfb62={_0x473ecc:0x1a8},_0x1f1b67=_0x1ee84e;this[_0x1f1b67(0xc5)](_0x1f1b67(_0x1bfb62._0x473ecc),[_0x410468]);}[_0x1ee84e(0x170)](){const _0x329765={_0x5adda1:0x12c},_0x45d9d2=_0x1ee84e,_0xe5e439=this[_0x45d9d2(0x140)][_0x45d9d2(0x11a)]()[_0x45d9d2(0x1a4)](_0x5eef9b=>_0x5eef9b[_0x45d9d2(0xc1)]===this[_0x45d9d2(0xc1)]||_0x5eef9b[_0x45d9d2(0xc1)][_0x45d9d2(0x12f)](this[_0x45d9d2(0xc1)]+'.page'));return this[_0x45d9d2(_0x329765._0x5adda1)][_0x45d9d2(0x10a)]===0x1&&this['pageList'][0x0][_0x45d9d2(0x145)]()==='about:blank'&&!_0xe5e439['some'](_0x3d318f=>FAKE_SET_UP_CALLS['has'](_0x3d318f[_0x45d9d2(0xea)]));}async[_0x1ee84e(0x112)](){const _0x63673f={_0x405509:0xc1},_0x6a3a6=_0x1ee84e;return this[_0x6a3a6(_0x63673f._0x405509)];}['clock'](){const _0x3a55f9={_0x107d07:0xd5,_0x2c8c71:0x199},_0x1aae2b=_0x1ee84e;if(!this[_0x1aae2b(0xfe)])return NO_CLOCK;return{'freeze':__name(async _0x21aefd=>{const _0x4cc7bc=_0x1aae2b;this[_0x4cc7bc(0xc5)](_0x4cc7bc(0x156),[_0x21aefd]),this[_0x4cc7bc(0x199)]=!![];},_0x1aae2b(0x124)),'tick':__name(async _0x30ffd2=>this[_0x1aae2b(0xc5)]('clock.tick',[_0x30ffd2]),'tick'),'run':__name(async()=>{const _0x573c60=_0x1aae2b;this[_0x573c60(0xc5)](_0x573c60(_0x3a55f9._0x107d07),[]),this[_0x573c60(_0x3a55f9._0x2c8c71)]=![];},'run'),'frozen':__name(()=>this[_0x1aae2b(0x199)],_0x1aae2b(0xad))};}[_0x1ee84e(0xc4)](){const _0x1cc825={_0x3ae242:0x1cd},_0x2cd05f={_0x59a70c:0x135},_0x3647be={_0x3b02e5:0x135},_0x132220={_0x44467d:0x153,_0xd9467a:0x135},_0x44d422=_0x1ee84e;return{'add':__name(async _0x204c62=>{const _0x261d1f=_0x1a99;this[_0x261d1f(0xc5)]('webAuthn.add',[_0x204c62]);const _0x2b7813=_0x261d1f(0x1a9)+(this[_0x261d1f(0x135)][_0x261d1f(_0x132220._0x44467d)]+0x1);return this[_0x261d1f(_0x132220._0xd9467a)][_0x261d1f(0x182)](_0x2b7813),_0x2b7813;},'add'),'credentials':__name(async _0x443d27=>{const _0x5d9547=_0x1a99;this['record']('webAuthn.credentials',[_0x443d27]);if(_0x443d27!==void 0x0&&!this[_0x5d9547(_0x3647be._0x3b02e5)][_0x5d9547(0x151)](_0x443d27))throw new DriverError('virtual\x20authenticator\x20\x22'+_0x443d27+'\x22\x20is\x20not\x20in\x20this\x20context');return this[_0x5d9547(0xaa)][_0x5d9547(0x160)]??[];},_0x44d422(_0x1cc825._0x3ae242)),'remove':__name(async _0x4df5be=>{const _0x298419=_0x44d422;this['record']('webAuthn.remove',[_0x4df5be]);if(!this[_0x298419(_0x2cd05f._0x59a70c)]['delete'](_0x4df5be))throw new DriverError(_0x298419(0xe5)+_0x4df5be+'\x22\x20is\x20not\x20in\x20this\x20context');},_0x44d422(0xc3))};}async[_0x1ee84e(0x129)](_0x5db9b8,_0x1ed7d9){const _0x1f7214={_0x3441bb:0x10a,_0xd68208:0xef},_0xd14bf2=_0x1ee84e;this[_0xd14bf2(0xc5)](_0xd14bf2(0x129),[_0x5db9b8,_0x1ed7d9]);const _0x15d5c0=_0x5db9b8[_0xd14bf2(0x1a4)](_0x5d3eab=>this[_0xd14bf2(0xaa)][_0xd14bf2(0x107)]?.[_0xd14bf2(0xe8)](_0x5d3eab));if(_0x15d5c0[_0xd14bf2(_0x1f7214._0x3441bb)]>0x0)throw new DriverError(_0xd14bf2(_0x1f7214._0xd68208)+JSON['stringify'](_0x15d5c0));}async['setOffline'](_0x47b5a4){const _0x28fe69={_0x3e7a51:0xc5},_0x501f53=_0x1ee84e;this[_0x501f53(_0x28fe69._0x3e7a51)](_0x501f53(0x178),[_0x47b5a4]);}['network'](){const _0x271aff={_0x3c9563:0x181},_0xc2c630={_0x5e1878:0xc5},_0x3df9b5={_0x1c7f70:0xc5},_0x333952=_0x1ee84e;return{'mock':__name(async(_0x195c4c,_0x83d990)=>{const _0x5564f5=_0x1a99;this['record'](_0x5564f5(0x1bb),[_0x195c4c,_0x83d990]),this[_0x5564f5(0x101)][_0x5564f5(0x122)](_0x195c4c,_0x83d990);},_0x333952(0x15c)),'unmock':__name(async _0x26648c=>{const _0x3c5376=_0x333952;this[_0x3c5376(_0x3df9b5._0x1c7f70)](_0x3c5376(0x116),[_0x26648c]),this['routes'][_0x3c5376(0xec)](_0x26648c);},'unmock'),'waitForRequest':__name((_0xfda367,_0xe8ca07)=>{const _0xf2d4a0=_0x333952;return this[_0xf2d4a0(_0xc2c630._0x5e1878)](_0xf2d4a0(0x126),[_0xfda367,_0xe8ca07]),this['routes']['next'](_0xfda367,_0xe8ca07[_0xf2d4a0(0xdd)]);},_0x333952(_0x271aff._0x3c9563)),'blocked':__name(_0x3fca39=>this[_0x333952(0x101)][_0x333952(0xf7)](_0x3fca39),'blocked')};}async[_0x1ee84e(0x1b1)](_0x1213d2){const _0x745d58={_0x53041a:0x14b},_0x2c496c={_0x1fb8fa:0xd3,_0x5dfe12:0xd1},_0x49a05d=_0x1ee84e;this[_0x49a05d(0xc5)]('waitForServiceWorker',[_0x1213d2]);const _0x33334d=this['workerUrls'][_0x49a05d(_0x745d58._0x53041a)](_0x22f912=>workerMatches(_0x22f912,_0x1213d2?.[_0x49a05d(0x145)]));if(_0x33334d!==void 0x0)return this[_0x49a05d(0xd6)](_0x33334d);if(!this[_0x49a05d(0xaa)]['profile'])throw new ServiceWorkerNeedsProfileError();const _0x1379ba=_0x1213d2?.[_0x49a05d(0xdd)]??0x3e8,_0xa65a7=await new Promise((_0x3aae5b,_0x4cbac1)=>{const _0x15c69a={_0xdd979d:0xec,_0x37a49c:0x145},_0x48f574={_0x4b330d:0x145,_0x59e4eb:0xd1},_0x77125c=_0x49a05d,_0x2e039f=__name(_0x5c8e98=>{const _0x469340=_0x1a99;if(!workerMatches(_0x5c8e98,_0x1213d2?.[_0x469340(_0x48f574._0x4b330d)]))return;clearTimeout(_0x5f4a7b),this[_0x469340(_0x48f574._0x59e4eb)]['delete'](_0x2e039f),_0x3aae5b(_0x5c8e98);},_0x77125c(_0x2c496c._0x1fb8fa)),_0x5f4a7b=setTimeout(()=>{const _0x67c0f4=_0x77125c;this[_0x67c0f4(0xd1)][_0x67c0f4(_0x15c69a._0xdd979d)](_0x2e039f),_0x4cbac1(new ServiceWorkerWaitTimeoutError(_0x1379ba,_0x1213d2?.[_0x67c0f4(_0x15c69a._0x37a49c)],this[_0x67c0f4(0x1d0)]));},_0x1379ba);this[_0x77125c(_0x2c496c._0x5dfe12)][_0x77125c(0x182)](_0x2e039f);});return this['fakeWorker'](_0xa65a7);}[_0x1ee84e(0xd6)](_0x29b5d5){const _0x1a26ab={_0x535e7a:0x127},_0x5e7746={_0x5328ce:0x198},_0x4e9461=_0x1ee84e;return{'url':__name(()=>_0x29b5d5,_0x4e9461(0x145)),'evaluate':__name(async(_0x590ad4,_0x5ba422)=>{const _0xd7f1b7=_0x4e9461;return this['record'](_0xd7f1b7(0x16d),[_0x29b5d5,_0x590ad4,_0x5ba422]),this[_0xd7f1b7(0xaa)][_0xd7f1b7(_0x5e7746._0x5328ce)];},_0x4e9461(_0x1a26ab._0x535e7a))};}['emitFakeServiceWorker'](_0x15d74e){const _0x5d5b5b={_0xac0b5e:0xd1},_0x24080c=_0x1ee84e;this[_0x24080c(0x1d0)][_0x24080c(0x177)](_0x15d74e);for(const _0x19ff49 of[...this[_0x24080c(_0x5d5b5b._0xac0b5e)]])_0x19ff49(_0x15d74e);}[_0x1ee84e(0x102)](_0x4dfbd6,_0xd4ccbc){const _0xd4f2d8={_0x21f121:0x101,_0x2b558b:0x168,_0x32bfd6:0x106},_0x4a6c5a=_0x1ee84e,_0x243e3e=this[_0x4a6c5a(_0xd4f2d8._0x21f121)][_0x4a6c5a(0x15d)](_0x4dfbd6);if(_0x243e3e?.[_0x4a6c5a(0xde)]===_0x4a6c5a(_0xd4f2d8._0x2b558b)&&_0x243e3e[_0x4a6c5a(0xc5)])this[_0x4a6c5a(_0xd4f2d8._0x21f121)][_0x4a6c5a(0x137)](_0x4dfbd6,_0xd4ccbc);this[_0x4a6c5a(0x101)][_0x4a6c5a(_0xd4f2d8._0x32bfd6)](_0x4dfbd6,_0xd4ccbc);}['emitFakePopup'](_0x8ec671){const _0x780ae2={_0x551f5e:0x12c,_0x403a44:0x12c,_0x277ad0:0x142},_0x36daa9=_0x1ee84e,_0x4d67b=this['scope']+'.page'+this[_0x36daa9(_0x780ae2._0x551f5e)][_0x36daa9(0x10a)],_0x1bfb27=new FakePage(this['recorder'],this['behavior'],_0x4d67b,_0x8ec671);this[_0x36daa9(_0x780ae2._0x403a44)]['push'](_0x1bfb27);const _0x1ee454=this['pageList'][_0x36daa9(0x10a)]-0x1;for(const _0x3b8a57 of this[_0x36daa9(_0x780ae2._0x277ad0)]){try{_0x3b8a57({'index':_0x1ee454,'url':_0x8ec671});}catch{}}return _0x1ee454;}['closeFakePage'](_0x157ffc){const _0x5acf53={_0x2a01c9:0x12d,_0x40a436:0x10a,_0x1cdf94:0x12c,_0x167179:0x171},_0x2b6b3b=_0x1ee84e;if(_0x157ffc<0x0||_0x157ffc>=this[_0x2b6b3b(0x12c)]['length'])throw new DriverError(_0x2b6b3b(_0x5acf53._0x2a01c9),{'index':_0x157ffc,'available':this['pageList'][_0x2b6b3b(_0x5acf53._0x40a436)]});this[_0x2b6b3b(_0x5acf53._0x1cdf94)][_0x2b6b3b(_0x5acf53._0x167179)](_0x157ffc,0x1);}async[_0x1ee84e(0xc7)](_0x1323ae){const _0x450bed={_0x1d7e47:0x139,_0x3cfc12:0x10a,_0x4b8fb3:0x1b3,_0x29ec82:0x177},_0x5c7318=_0x1ee84e;this[_0x5c7318(0xc5)](_0x5c7318(0xc7),[_0x1323ae]);if(!_0x1323ae[_0x5c7318(_0x450bed._0x1d7e47)][_0x5c7318(_0x450bed._0x3cfc12)])throw new LocatorError(_0x5c7318(_0x450bed._0x4b8fb3),{'locator':_0x1323ae});this['frameStack'][_0x5c7318(_0x450bed._0x29ec82)](_0x1323ae);}async[_0x1ee84e(0x17d)](){const _0x1ff085={_0x2bc637:0x16c,_0x4fbcd1:0xba},_0xedbf0=_0x1ee84e;this[_0xedbf0(0xc5)](_0xedbf0(0x17d),[]);if(this[_0xedbf0(_0x1ff085._0x2bc637)]['length']===0x0)throw new DriverError(_0xedbf0(0x1af),{});this[_0xedbf0(_0x1ff085._0x2bc637)][_0xedbf0(_0x1ff085._0x4fbcd1)]();}async[_0x1ee84e(0xfd)](_0x1a2153,_0x54e0c4){const _0x30f8f2={_0xa04dd4:0xc5},_0x46d617=_0x1ee84e;this[_0x46d617(_0x30f8f2._0xa04dd4)](_0x46d617(0xfd),[_0x1a2153,_0x54e0c4]),this['localStorageState'][_0x1a2153]=_0x54e0c4;}async[_0x1ee84e(0x11c)](_0x5d7062){const _0x5ae96a={_0x5b8a19:0x11c,_0x2ff6fb:0xa5},_0x1703e4=_0x1ee84e;return this['record'](_0x1703e4(_0x5ae96a._0x5b8a19),[_0x5d7062]),this[_0x1703e4(_0x5ae96a._0x2ff6fb)][_0x5d7062]??null;}async[_0x1ee84e(0x10e)](_0x41b6c7,_0x42983f,_0x38326f){const _0x456818={_0x4930dd:0x10e},_0x296cd8=_0x1ee84e;this[_0x296cd8(0xc5)](_0x296cd8(_0x456818._0x4930dd),[_0x41b6c7,_0x42983f,_0x38326f]),this['cookieState'][_0x41b6c7]=_0x42983f;}async['getCookie'](_0x2fd1b8){const _0x5194d1={_0x1dcbce:0xc5,_0x428efe:0x1b2,_0xb78dee:0xd8},_0xdf6e0f=_0x1ee84e;return this[_0xdf6e0f(_0x5194d1._0x1dcbce)](_0xdf6e0f(_0x5194d1._0x428efe),[_0x2fd1b8]),this[_0xdf6e0f(_0x5194d1._0xb78dee)][_0x2fd1b8]??null;}async[_0x1ee84e(0x11e)](_0x3f379d){const _0x58c582=_0x1ee84e;this[_0x58c582(0xc5)]('saveStorageState',[_0x3f379d]);}async['evaluate'](_0x436f61){const _0xd05439=_0x1ee84e;return this[_0xd05439(0xc5)](_0xd05439(0x127),[_0x436f61]),void 0x0;}async[_0x1ee84e(0x121)](){const _0x1c70a3={_0x11a335:0xaa},_0x5448c0=_0x1ee84e;this['record']('close',[]),await this[_0x5448c0(_0x1c70a3._0x11a335)]['contextCloseResult'];}[_0x1ee84e(0x167)](){const _0x266475={_0x54f41a:0x16c},_0xf7d174=_0x1ee84e;return this[_0xf7d174(_0x266475._0x54f41a)][_0xf7d174(0x10a)];}},FakeWebDriver=class{constructor(_0x5335eb={}){const _0xc99e9b=_0x1ee84e;this[_0xc99e9b(0xaa)]=_0x5335eb,this['recorder']=createRecorder();}[_0x1ee84e(0xaa)];static{__name(this,_0x1ee84e(0x174));}[_0x1ee84e(0xcd)]=![];[_0x1ee84e(0x140)];['contexts']=[];async[_0x1ee84e(0x100)](_0x420e77){const _0x3bd31a={_0x47a9c9:0x140},_0x5c244d=_0x1ee84e;this[_0x5c244d(_0x3bd31a._0x47a9c9)]['push']({'scope':_0x5c244d(0x13c),'method':'launch','args':[_0x420e77]}),this['launched']=!![];}async[_0x1ee84e(0xf9)](_0x450261){const _0x1834ff={_0x654957:0x140,_0x1f5e80:0xaa,_0x9b611c:0x10a,_0x4b7051:0x177},_0x17565b=_0x1ee84e;this[_0x17565b(_0x1834ff._0x654957)]['push']({'scope':'driver','method':_0x17565b(0xf9),'args':[_0x450261]});if(!this['launched'])throw new DriverError('newContext\x20called\x20before\x20launch()',{});const _0x5731df=new FakeContext(this[_0x17565b(0x140)],this[_0x17565b(_0x1834ff._0x1f5e80)],_0x17565b(0xbd)+this[_0x17565b(0x19a)][_0x17565b(_0x1834ff._0x9b611c)],_0x450261?.['clock']===!![]);return this[_0x17565b(0x19a)][_0x17565b(_0x1834ff._0x4b7051)](_0x5731df),_0x5731df;}async['close'](){const _0x96e2ee=_0x1ee84e;this['recorder']['push']({'scope':_0x96e2ee(0x13c),'method':_0x96e2ee(0x121),'args':[]}),this['launched']=![];}[_0x1ee84e(0x183)](_0x2d5268){return _0x2d5268;}[_0x1ee84e(0x1c1)](){return void 0x0;}async[_0x1ee84e(0x191)](){const _0x489655=_0x1ee84e;throw new DriverError(_0x489655(0xd2),{});}async[_0x1ee84e(0xb7)](_0x5c02f7){const _0x26c75b=_0x1ee84e;throw new DriverError(_0x26c75b(0x110),{});}[_0x1ee84e(0x13d)](){return![];}[_0x1ee84e(0x11a)](){const _0x4706cf={_0x423f1d:0x140},_0x46ccad=_0x1ee84e;return this[_0x46ccad(_0x4706cf._0x423f1d)]['calls']();}['callsFor'](_0x459662){const _0x986403={_0xd8fa52:0x1a4},_0x47e189=_0x1ee84e;return this[_0x47e189(0x140)][_0x47e189(0x11a)]()[_0x47e189(_0x986403._0xd8fa52)](_0x46be97=>_0x46be97['method']===_0x459662);}};export{FakeWebDriver};
|
package/dist/dsl/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { L as LocatorValue, q as DriverDownload, D as DriverContext, W as WebDriver, i as DriverPage } from '../interfaces-BSGmF_Tv.js';
|
|
2
2
|
export { r as LocatorStep, s as appendStep, t as describeLocator, u as isLocatorValue, v as rootedAt } from '../interfaces-BSGmF_Tv.js';
|
|
3
3
|
import { Matcher, RegexLiteral, JudgeRequest, JudgeVerdict, VisualFailureRecord, SoftFailureRecord, TeardownStateRecord, TeardownFailureRecord } from '@unotest/protocol';
|
|
4
|
-
import { ScenarioInterpreter, ScenarioEvent, RunResult, ScenarioRunOptions } from '@unotest/dsl/executor';
|
|
5
|
-
export { ExecutionError, ScenarioEvent as ExecutionEvent, ScenarioRunOptions as RunOptions, RunResult } from '@unotest/dsl/executor';
|
|
6
4
|
import { SandboxConfig } from '../config/schema.js';
|
|
7
5
|
import { UnotestError, RuntimeExecState } from '@unotest/core';
|
|
6
|
+
import { ScenarioEvent, RunResult, ScenarioRunOptions } from '@unotest/dsl/executor';
|
|
7
|
+
export { ExecutionError, ScenarioEvent as ExecutionEvent, ScenarioRunOptions as RunOptions, RunResult } from '@unotest/dsl/executor';
|
|
8
8
|
export { L as LintDiagnostic, b as LintOptions, a as LintSeverity, l as lintAst } from '../linter-CYRlmOLy.js';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '@unotest/dsl';
|
|
@@ -826,7 +826,7 @@ declare class TestRuntime {
|
|
|
826
826
|
/** The active DriverPage. Tracks DriverContext.activePage which is mutated
|
|
827
827
|
* by `setPage()` for multi-tab scenarios (Phase 2 Track A). */
|
|
828
828
|
page(): DriverPage;
|
|
829
|
-
/** User-function call depth —
|
|
829
|
+
/** User-function call depth — a budget of its own, apart from time. */
|
|
830
830
|
enterCall(maxCallDepth: number): void;
|
|
831
831
|
exitCall(): void;
|
|
832
832
|
get callDepth(): number;
|
|
@@ -849,39 +849,6 @@ declare class TestRuntime {
|
|
|
849
849
|
externalVarDenial(name: string): string | undefined;
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
type DslArgType = 'string' | 'number' | 'boolean' | 'locator' | 'object' | 'any';
|
|
853
|
-
type DslReturnType = 'void' | 'string' | 'number' | 'boolean' | 'locator' | 'object' | 'any';
|
|
854
|
-
type DslArg = DslValue | LocatorValue | unknown;
|
|
855
|
-
interface DslFunction {
|
|
856
|
-
name: string;
|
|
857
|
-
argTypes: DslArgType[];
|
|
858
|
-
returnType: DslReturnType;
|
|
859
|
-
/** Some functions tolerate a trailing optional arg (e.g. waitFor timeoutMs). */
|
|
860
|
-
minArgs?: number;
|
|
861
|
-
/**
|
|
862
|
-
* Implementation. The runtime is passed first; args follow in declaration
|
|
863
|
-
* order. May return a primitive, a LocatorValue, an object, or a Promise of
|
|
864
|
-
* any of these.
|
|
865
|
-
*/
|
|
866
|
-
invoke(runtime: TestRuntime, ...args: DslArg[]): Promise<DslValue | LocatorValue | void> | DslValue | LocatorValue | void;
|
|
867
|
-
}
|
|
868
|
-
declare class FunctionRegistry {
|
|
869
|
-
private readonly map;
|
|
870
|
-
register(fn: DslFunction): void;
|
|
871
|
-
has(name: string): boolean;
|
|
872
|
-
get(name: string): DslFunction | undefined;
|
|
873
|
-
names(): string[];
|
|
874
|
-
/** The run-time half of the validator's `suggestForUnknown`: the walker
|
|
875
|
-
* quotes it in "Unknown DSL function", from the same table. */
|
|
876
|
-
suggestForUnknown(name: string): string | null;
|
|
877
|
-
/** The run-time half of the validator's `suggestForLambdaArgument`. */
|
|
878
|
-
suggestForLambdaArgument(name: string): string | null;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
declare class AstExecutor extends ScenarioInterpreter<TestRuntime> {
|
|
882
|
-
constructor(registry: FunctionRegistry);
|
|
883
|
-
}
|
|
884
|
-
|
|
885
852
|
type RuntimeState = RuntimeExecState;
|
|
886
853
|
interface ActiveRuntime {
|
|
887
854
|
id: string;
|
|
@@ -939,14 +906,16 @@ interface ActiveRuntime {
|
|
|
939
906
|
/** The failure this run stopped at, kept from the moment the executor
|
|
940
907
|
* paused on it.
|
|
941
908
|
*
|
|
942
|
-
*
|
|
943
|
-
*
|
|
944
|
-
*
|
|
945
|
-
* reach the end and report `completed`. It did not stop being broken
|
|
909
|
+
* With `pauseOnFailure` the executor holds at the error, and Continue
|
|
910
|
+
* finishes the test as failed. `verdict` still reads this field rather
|
|
911
|
+
* than trust the executor alone: a run did not stop being broken
|
|
946
912
|
* because somebody looked at it, and the verdict must not depend on
|
|
947
913
|
* whether anyone did. */
|
|
948
914
|
pausedOnFailure: ActiveRuntime['lastFailure'];
|
|
949
915
|
lastResult: RunResult | null;
|
|
916
|
+
/** What `abort` closed the generator with. A pump that was in flight
|
|
917
|
+
* reads the closed generator's end as this, not as a missing result. */
|
|
918
|
+
abortedWith?: RunResult;
|
|
950
919
|
createdAt: number;
|
|
951
920
|
/** Active TTL timer (only when state is paused-failure). */
|
|
952
921
|
ttlTimer: NodeJS.Timeout | null;
|
|
@@ -1099,6 +1068,35 @@ declare class TestRuntimeManager {
|
|
|
1099
1068
|
private requireActive;
|
|
1100
1069
|
}
|
|
1101
1070
|
|
|
1071
|
+
type DslArgType = 'string' | 'number' | 'boolean' | 'locator' | 'object' | 'any';
|
|
1072
|
+
type DslReturnType = 'void' | 'string' | 'number' | 'boolean' | 'locator' | 'object' | 'any';
|
|
1073
|
+
type DslArg = DslValue | LocatorValue | unknown;
|
|
1074
|
+
interface DslFunction {
|
|
1075
|
+
name: string;
|
|
1076
|
+
argTypes: DslArgType[];
|
|
1077
|
+
returnType: DslReturnType;
|
|
1078
|
+
/** Some functions tolerate a trailing optional arg (e.g. waitFor timeoutMs). */
|
|
1079
|
+
minArgs?: number;
|
|
1080
|
+
/**
|
|
1081
|
+
* Implementation. The runtime is passed first; args follow in declaration
|
|
1082
|
+
* order. May return a primitive, a LocatorValue, an object, or a Promise of
|
|
1083
|
+
* any of these.
|
|
1084
|
+
*/
|
|
1085
|
+
invoke(runtime: TestRuntime, ...args: DslArg[]): Promise<DslValue | LocatorValue | void> | DslValue | LocatorValue | void;
|
|
1086
|
+
}
|
|
1087
|
+
declare class FunctionRegistry {
|
|
1088
|
+
private readonly map;
|
|
1089
|
+
register(fn: DslFunction): void;
|
|
1090
|
+
has(name: string): boolean;
|
|
1091
|
+
get(name: string): DslFunction | undefined;
|
|
1092
|
+
names(): string[];
|
|
1093
|
+
/** The run-time half of the validator's `suggestForUnknown`: the walker
|
|
1094
|
+
* quotes it in "Unknown DSL function", from the same table. */
|
|
1095
|
+
suggestForUnknown(name: string): string | null;
|
|
1096
|
+
/** The run-time half of the validator's `suggestForLambdaArgument`. */
|
|
1097
|
+
suggestForLambdaArgument(name: string): string | null;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1102
1100
|
declare function buildDefaultRegistry(): FunctionRegistry;
|
|
1103
1101
|
|
|
1104
|
-
export {
|
|
1102
|
+
export { type DslArg, type DslArray, type DslFunction, type DslObject, type DslValue, FunctionRegistry, LocatorValue, TestRuntime, TestRuntimeManager, buildDefaultRegistry, chainGetByAltText, chainGetByLabel, chainGetByPlaceholder, chainGetByRole, chainGetByTestId, chainGetByText, chainGetByTitle, contentFrame, filter, first, getByAltText, getByLabel, getByPlaceholder, getByRole, getByTestId, getByText, getByTitle, last, locator, nth, randomNth, re };
|