@unotest/web 0.20.0 → 0.21.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 +74 -0
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.js +1 -1
- 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/agent-integration.md +4 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.21.0] - 2026-08-25
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 174d27e: feat: environments are first-class in the viewer — a switcher, per-env run history
|
|
8
|
+
|
|
9
|
+
**Run artifacts are laid out per environment, as folders.** Each
|
|
10
|
+
environment's history lives in its own root, mirroring the env-file
|
|
11
|
+
scheme: `unotest/.runs` (base), `unotest/.runs.<env>` (e.g.
|
|
12
|
+
`.runs.staging` for `--env staging` / `UNOTEST_ENV=staging`); the axes
|
|
13
|
+
compose — `.runs-mobile.staging`. Indexes (`_day.jsonl`, `_latest.json`)
|
|
14
|
+
are per-env automatically: switching environments is a change of root,
|
|
15
|
+
not a filter and not a rebuild. Old runs stay in `.runs` (= base), no
|
|
16
|
+
migration needed. `runsDirFor` / `projectRunsRoot` / `projectRunDirFor`
|
|
17
|
+
gained an optional `envName` parameter; the run manifest carries `env`
|
|
18
|
+
for self-description. Make sure your `.gitignore` uses the wildcard
|
|
19
|
+
form — `unotest/.runs*/` (`init` already writes it that way for new
|
|
20
|
+
projects).
|
|
21
|
+
|
|
22
|
+
**The viewer knows about environments.** A new switcher sits at the top
|
|
23
|
+
of the Variables panel and in the status bar: base plus every
|
|
24
|
+
environment discovered from `unotest/.env.<name>` / `.secrets.<name>`
|
|
25
|
+
(`.env.example` and other templates do not count). The active
|
|
26
|
+
environment is server-side (`GET/POST /api/environments`), and all tabs
|
|
27
|
+
converge via the `env:changed` WS message:
|
|
28
|
+
|
|
29
|
+
- the Variables panel shows layers WITH the active environment's
|
|
30
|
+
overlay (previously base only); values coming from `.env.<name>`
|
|
31
|
+
carry a badge; an edit goes to the file where the key is defined; new
|
|
32
|
+
variables go to base;
|
|
33
|
+
- Overview and the Runs list show only the active environment — tiles
|
|
34
|
+
are colored by the latest run in that environment;
|
|
35
|
+
- a run started from the viewer gets the active environment's
|
|
36
|
+
`UNOTEST_ENV` (`RunRequest.env` is a per-request override);
|
|
37
|
+
- a run opened from another environment still resolves by runId across
|
|
38
|
+
all `.runs*` roots.
|
|
39
|
+
|
|
40
|
+
MCP: `run_test {env}` already switched the child process's environment;
|
|
41
|
+
its artifacts are now correctly found by the server in `.runs.<env>`
|
|
42
|
+
(inspect/step/attach/list_runtimes scan all roots).
|
|
43
|
+
|
|
44
|
+
Four fixes uncovered while shaking this down:
|
|
45
|
+
|
|
46
|
+
- **The `--env` overlay actually reaches the run.** Long-lived hosts
|
|
47
|
+
(viewer, MCP server) flattened the base `.env` into their own
|
|
48
|
+
`process.env` on `loadConfig`; children inherited it as ambient
|
|
49
|
+
(ambient beats files) — the overlay's `APP_BASE_URL` was silently
|
|
50
|
+
clobbered by the base value. The viewer now rolls its env back after
|
|
51
|
+
loading the config; MCP spawns children from a clean pre-flatten
|
|
52
|
+
snapshot.
|
|
53
|
+
- **Pause/Abort from the viewer work again.** Debug commands were
|
|
54
|
+
written to the flat `<root>/<runId>/commands.jsonl`, while runs have
|
|
55
|
+
lived in date shards since 0.19 — the write 404'd and abort was
|
|
56
|
+
silently ignored. Order fixed too: SIGTERM to the own process first
|
|
57
|
+
(tests AND collections), then the command file.
|
|
58
|
+
- **A collection no longer "dies" in the UI after 30 seconds.** The
|
|
59
|
+
parent run wrote no heartbeat — the monitor declared it interrupted,
|
|
60
|
+
the row vanished from ACTIVE and the tail detached. The orchestrator
|
|
61
|
+
now maintains the heartbeat (shared machinery in `@unotest/core`),
|
|
62
|
+
and the viewer additionally treats a flowing steps.jsonl as a sign of
|
|
63
|
+
life (compatibility with older runners).
|
|
64
|
+
- **No phantom `failed` after a clean exit.** The "child exited without
|
|
65
|
+
artifacts" check looked at the flat path and fired bogus
|
|
66
|
+
`run-finished: failed` events plus an error toast on every exit.
|
|
67
|
+
|
|
68
|
+
### Patch Changes
|
|
69
|
+
|
|
70
|
+
- Updated dependencies [174d27e]
|
|
71
|
+
- @unotest/protocol@0.21.0
|
|
72
|
+
- @unotest/core@0.21.0
|
|
73
|
+
- @unotest/viewer@0.21.0
|
|
74
|
+
- @unotest/dsl@0.21.0
|
|
75
|
+
- @unotest/grounder-client@0.21.0
|
|
76
|
+
|
|
3
77
|
## [0.20.0] - 2026-08-24
|
|
4
78
|
|
|
5
79
|
### Minor Changes
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x3a1d0b=_0x2568;function _0x2568(_0x338e45,_0x586d38){_0x338e45=_0x338e45-0xc8;var _0x1776f4=_0x1776();var _0x2568e5=_0x1776f4[_0x338e45];if(_0x2568['qJLKYF']===undefined){var _0x4896ec=function(_0x36b4c3){var _0x21b95e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x297d74='',_0x1ae1b4='';for(var _0x4b7dec=0x0,_0x5f36d2,_0x1635f5,_0x53963d=0x0;_0x1635f5=_0x36b4c3['charAt'](_0x53963d++);~_0x1635f5&&(_0x5f36d2=_0x4b7dec%0x4?_0x5f36d2*0x40+_0x1635f5:_0x1635f5,_0x4b7dec++%0x4)?_0x297d74+=String['fromCharCode'](0xff&_0x5f36d2>>(-0x2*_0x4b7dec&0x6)):0x0){_0x1635f5=_0x21b95e['indexOf'](_0x1635f5);}for(var _0x43318b=0x0,_0x56fc9d=_0x297d74['length'];_0x43318b<_0x56fc9d;_0x43318b++){_0x1ae1b4+='%'+('00'+_0x297d74['charCodeAt'](_0x43318b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1ae1b4);};_0x2568['JRDYzl']=_0x4896ec,_0x2568['Xzudtt']={},_0x2568['qJLKYF']=!![];}var _0x2267bb=_0x1776f4[0x0],_0x3f3527=_0x338e45+_0x2267bb,_0x3d501b=_0x2568['Xzudtt'][_0x3f3527];return!_0x3d501b?(_0x2568e5=_0x2568['JRDYzl'](_0x2568e5),_0x2568['Xzudtt'][_0x3f3527]=_0x2568e5):_0x2568e5=_0x3d501b,_0x2568e5;}(function(_0x341cf9,_0x5d1bea){var _0x309904={_0x59a8d5:0xca,_0x263bcd:0xe7,_0x3532fb:0xfe,_0x5acb36:0x102},_0x1aaa80=_0x2568,_0x4ba53f=_0x341cf9();while(!![]){try{var _0x4e8146=-parseInt(_0x1aaa80(0x108))/0x1*(parseInt(_0x1aaa80(0xee))/0x2)+-parseInt(_0x1aaa80(_0x309904._0x59a8d5))/0x3+parseInt(_0x1aaa80(_0x309904._0x263bcd))/0x4*(parseInt(_0x1aaa80(_0x309904._0x3532fb))/0x5)+-parseInt(_0x1aaa80(0xd1))/0x6*(parseInt(_0x1aaa80(0xec))/0x7)+parseInt(_0x1aaa80(0xd0))/0x8+-parseInt(_0x1aaa80(_0x309904._0x5acb36))/0x9+parseInt(_0x1aaa80(0x106))/0xa*(parseInt(_0x1aaa80(0xf4))/0xb);if(_0x4e8146===_0x5d1bea)break;else _0x4ba53f['push'](_0x4ba53f['shift']());}catch(_0x1811b2){_0x4ba53f['push'](_0x4ba53f['shift']());}}}(_0x1776,0x77fea));import{z}from'zod';var BrowserSchema=z[_0x3a1d0b(0x107)]([_0x3a1d0b(0xd5),_0x3a1d0b(0xed),_0x3a1d0b(0xdb)]),BrowserChannelSchema=z[_0x3a1d0b(0x10a)]([z[_0x3a1d0b(0xdc)](_0x3a1d0b(0x10b)),z[_0x3a1d0b(0xdc)](_0x3a1d0b(0x100)),z[_0x3a1d0b(0xdc)]('chrome-beta'),z[_0x3a1d0b(0xf8)]()])[_0x3a1d0b(0xcb)](),ViewportSchema=z['object']({'width':z[_0x3a1d0b(0xd9)]()[_0x3a1d0b(0xff)]()[_0x3a1d0b(0xd6)](),'height':z[_0x3a1d0b(0xd9)]()['int']()[_0x3a1d0b(0xd6)]()}),RetryReasonSchema=z[_0x3a1d0b(0x107)]([_0x3a1d0b(0xe4),'network',_0x3a1d0b(0xcf)]),RetryConfigSchema=z['object']({'count':z[_0x3a1d0b(0xd9)]()[_0x3a1d0b(0xff)]()['min'](0x0)[_0x3a1d0b(0xfd)](0xa),'on':z[_0x3a1d0b(0x101)](RetryReasonSchema)}),FailureBundleConfigSchema=z['object']({'tier1':z[_0x3a1d0b(0xdc)](!![])[_0x3a1d0b(0xe8)](!![]),'tier2':z[_0x3a1d0b(0xc9)](),'tier3':z[_0x3a1d0b(0xe1)]({'network':z[_0x3a1d0b(0xc9)](),'video':z[_0x3a1d0b(0xc9)]()}),'retention':z[_0x3a1d0b(0xe1)]({'runs':z[_0x3a1d0b(0xd9)]()[_0x3a1d0b(0xff)]()[_0x3a1d0b(0xd6)](),'days':z[_0x3a1d0b(0xd9)]()[_0x3a1d0b(0xff)]()[_0x3a1d0b(0xd6)]()}),'storageDir':z[_0x3a1d0b(0xf9)]()['min'](0x1)}),DialogPolicySchema=z[_0x3a1d0b(0x107)]([_0x3a1d0b(0xd8),_0x3a1d0b(0xef),_0x3a1d0b(0xd3)]),LinterRuleIdSchema=z[_0x3a1d0b(0x107)]([_0x3a1d0b(0xce),_0x3a1d0b(0xcd),_0x3a1d0b(0x104),_0x3a1d0b(0xfc),'lint:disambig-by-index',_0x3a1d0b(0xe6),_0x3a1d0b(0xe3),_0x3a1d0b(0xdf),_0x3a1d0b(0xfa),_0x3a1d0b(0xeb),_0x3a1d0b(0xdd),_0x3a1d0b(0xf6),_0x3a1d0b(0xfb),_0x3a1d0b(0x103),_0x3a1d0b(0xd4),_0x3a1d0b(0xf1),_0x3a1d0b(0xda),_0x3a1d0b(0xf5),_0x3a1d0b(0xe2),'validator:meta-shape',_0x3a1d0b(0xcc),_0x3a1d0b(0xf0),_0x3a1d0b(0xea),'validator:var-shape',_0x3a1d0b(0xe9),_0x3a1d0b(0xd2),_0x3a1d0b(0xde),_0x3a1d0b(0x109),'validator:list-arg','validator:wrapped-format']),LinterSeveritySchema=z[_0x3a1d0b(0x107)]([_0x3a1d0b(0xf7),_0x3a1d0b(0xf3),_0x3a1d0b(0xe5)]),LinterConfigSchema=z[_0x3a1d0b(0xe1)]({'enabled':z[_0x3a1d0b(0xc9)](),'rules':z[_0x3a1d0b(0xc8)](LinterRuleIdSchema,LinterSeveritySchema)}),McpConfigSchema=z[_0x3a1d0b(0xe1)]({'transport':z[_0x3a1d0b(0xdc)]('stdio')}),SandboxConfigSchema=z['object']({'shellCwd':z['string']()['optional'](),'shellTimeoutMs':z[_0x3a1d0b(0xd9)]()[_0x3a1d0b(0xff)]()[_0x3a1d0b(0xd6)]()['optional'](),'exportSecrets':z[_0x3a1d0b(0x101)](z[_0x3a1d0b(0xf9)]())[_0x3a1d0b(0xcb)](),'database':z[_0x3a1d0b(0xf9)]()[_0x3a1d0b(0xcb)](),'apiBaseUrl':z['string']()[_0x3a1d0b(0xd7)]()['optional'](),'uploadDir':z[_0x3a1d0b(0xf9)]()['optional']()}),WebServerConfigSchema=z[_0x3a1d0b(0xe1)]({'command':z[_0x3a1d0b(0xf9)]()[_0x3a1d0b(0x105)](0x1),'url':z[_0x3a1d0b(0xf9)]()[_0x3a1d0b(0xd7)](),'reuseExistingServer':z[_0x3a1d0b(0xc9)]()[_0x3a1d0b(0xe8)](!![]),'timeoutMs':z[_0x3a1d0b(0xd9)]()['int']()[_0x3a1d0b(0xd6)]()[_0x3a1d0b(0xe8)](0xea60)}),UnotestConfigSchema=z['object']({'baseUrl':z[_0x3a1d0b(0xf9)]()[_0x3a1d0b(0xd7)]()[_0x3a1d0b(0xcb)](),'webServer':WebServerConfigSchema[_0x3a1d0b(0xcb)](),'browsers':z[_0x3a1d0b(0x101)](BrowserSchema)[_0x3a1d0b(0x105)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':z[_0x3a1d0b(0xf9)]()['optional'](),'testDir':z['string']()[_0x3a1d0b(0x105)](0x1),'helpersDir':z[_0x3a1d0b(0xf9)]()[_0x3a1d0b(0x105)](0x1),'defaultTimeoutMs':z[_0x3a1d0b(0xd9)]()[_0x3a1d0b(0xff)]()[_0x3a1d0b(0xd6)](),'defaultNavigationTimeoutMs':z['number']()[_0x3a1d0b(0xff)]()[_0x3a1d0b(0xd6)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x3a1d0b(0xd5)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':[_0x3a1d0b(0xe4)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x3a1d0b(0xe0)},'dialogPolicy':'accept','testDir':'unotest/e2e','helpersDir':_0x3a1d0b(0xf2),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x3a1d0b(0xf3),'lint:xpath':'warn','lint:obfuscated-class':_0x3a1d0b(0xf3),'lint:pause-explicit':_0x3a1d0b(0xf3),'lint:disambig-by-index':_0x3a1d0b(0xf7),'lint:evaluate-discouraged':_0x3a1d0b(0xf3),'lint:scenario-in-root':_0x3a1d0b(0xe5),'lint:mustache-in-dsl':_0x3a1d0b(0xe5),'lint:goto-concat':'warn','lint:regex-invalid':'error','lint:echo-assert':'warn','lint:lint-ok-missing-reason':'warn','lint:flow-returns-value':_0x3a1d0b(0xf3),'validator:unknown-function':_0x3a1d0b(0xe5)}},'mcp':{'transport':'stdio'},'sandbox':{}};export{BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,RetryConfigSchema,RetryReasonSchema,SandboxConfigSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};function _0x1776(){var _0x2f3eb5=['DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','DMfSAwrHDg9YoMLMlxnOyxbL','BgLUDdPYzwDLEc1PBNzHBgLK','mtGZodq1ouP3EeneDa','zMLYzwzVEa','nJeYodjdAwXAwee','zgLZBwLZCW','DMfSAwrHDg9YoMzVCI1ZAgfWzq','DMfSAwrHDg9YoMfYAxr5','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','D2fYBG','ndqWCujxufvL','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','B2zM','BNvSBa','C3rYAw5N','BgLUDdPNB3rVlwnVBMnHDa','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','BgLUDdPWyxvZzs1LEhbSAwnPDa','Bwf4','ntvXz2PZCNO','Aw50','BxnLzgDL','yxjYyxK','oda2otq5mhbPy1nAsq','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','BwLU','mZC3mdGWsMzmC2fQ','zw51Bq','mtrRv3vAEwm','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','Dw5PB24','y2HYB21L','CMvJB3jK','yM9VBgvHBG','mJy1nZC1mur2vMniCq','B3b0Aw9UywW','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','BgLUDdP4Cgf0Aa','BgLUDdPKzwvWlwnZCW','y3jHC2G','ntKYmdKZnKftD3fJBG','mtjTD3PhEw4','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','BwfUDwfS','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','y2HYB21PDw0','Cg9ZAxrPDMu','DxjS','ywnJzxb0','BNvTyMvY','DMfSAwrHDg9YoMfYzY1RAw5K','D2vIA2L0','BgL0zxjHBa','BgLUDdPLy2HVlwfZC2vYDa','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','BgLUDdPTDxn0ywnOzs1PBI1KC2W','lNvUB3rLC3qVzMfPBhvYzxm','B2jQzwn0','DMfSAwrHDg9YoNn0zxaTC2HHCgu','BgLUDdPZy2vUyxjPBY1PBI1YB290','DhjHBNnPzw50','zxjYB3i','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','mZu2mZa0A3zVq0TA','zgvMyxvSDa'];_0x1776=function(){return _0x2f3eb5;};return _0x1776();}
|
package/dist/driver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x52c021=_0x3364;(function(_0x1367ee,_0x5054ed){const _0x3a5583={_0xaa0af0:0x199,_0x29fa33:0x174,_0x539e87:0x15f,_0x24d00a:0x184,_0x23f773:0x156},_0x4bbc8b=_0x3364,_0x40ce43=_0x1367ee();while(!![]){try{const _0xbb7339=parseInt(_0x4bbc8b(0x188))/0x1*(-parseInt(_0x4bbc8b(_0x3a5583._0xaa0af0))/0x2)+parseInt(_0x4bbc8b(_0x3a5583._0x29fa33))/0x3+parseInt(_0x4bbc8b(_0x3a5583._0x539e87))/0x4+-parseInt(_0x4bbc8b(0x1bf))/0x5*(parseInt(_0x4bbc8b(0x189))/0x6)+parseInt(_0x4bbc8b(_0x3a5583._0x24d00a))/0x7+parseInt(_0x4bbc8b(_0x3a5583._0x23f773))/0x8+parseInt(_0x4bbc8b(0x15d))/0x9*(parseInt(_0x4bbc8b(0x1a8))/0xa);if(_0xbb7339===_0x5054ed)break;else _0x40ce43['push'](_0x40ce43['shift']());}catch(_0x25ded0){_0x40ce43['push'](_0x40ce43['shift']());}}}(_0x1da8,0x59672));function _0x1da8(){const _0x1e989b=['zgvMAw5LuhjVCgvYDhK','CMvJB3jK','Bg9JywXtDg9YywDL','rMfRzunVBNrLEhq','y3vYCMvUDfvYBa','y291BNrcEurLzMf1Bhq','D2fPDezVCK5HDMLNyxrPB24','Bg9JywXtDg9YywDLu3rHDgu','mtK5oti0mfPTDNvKAa','CMvM','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','z2v0q29VA2LL','C2nVCgu','BMv0D29YA0vUDhjPzxm','Dgv4DenVBNrLBNrcEurLzMf1Bhq','nta0ovHLuwXiqG','zNjHBwvezxb0Aa','mti1oda0ne9zyLHvuq','Bgf1BMnO','ywn0AxzLswr4','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','BMv3ugfNzuXPC3rLBMvYCW','y29VA2LLu3rHDgu','ywrK','y291BNq','A2LUza','z29cywnR','Aw5WDxrwywX1zuj5rgvMyxvSDa','y3jLyxrLuMvJB3jKzxi','y3r4','AxneAxnHyMXLzej5rgvMyxvSDa','AxneAxnHyMXLza','yxr0ywnOrxHPC3rPBMC','C2nYzwvUC2HVDa','y29UBMvJDfnOyxjLza','zMfRzsb0AxrSzq','y2XVC2u','BMv3q29UDgv4Da','mtG3mdi5DK9trM1m','Cg9W','y2HLy2TLzfn0yxrL','C2nYB2XSsw50B1zPzxC','zxjYB3jpBK5LEhrby3rPB24','yMvOyxzPB3i','zxzHBhvHDgu','zw50zxjgCMfTzq','C2vSzwn0t3b0Aw9U','zg91yMXLq2XPy2S','y29UC29SzuvUDhjPzxm','ywjVDxq6yMXHBMS','C3rLChm','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','yxr0CMLIDxrLC0j5rgvMyxvSDa','DxbSB2fKrMLSzq','mJiZnZK0mNfvEgjnva','z29gB3j3yxjK','y2XVC2vgywTLugfNzq','DxjS','mtq2nev0C1v5Ba','mZy1mdq4neTSu0rxAW','zMLSDgvY','Bgf1BMnOzwq','C2v0tg9JywXtDg9YywDL','y29VA2LLCW','Ag92zxi','zgvSzxrL','C3bSAwnL','CMvSB2fK','rMfRzvbHz2u','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','zMfRzs1WBMC','Cg9WDxbpBKnSAwnR','zxHPDezYyw1L','Bwf5yMvuAhjVDW','ChvZAa','mJK4D1r1v1HM','zhjHz0fUzerYB3a','D2fPDezVCG','D2fPDezVCLrLEhq','tg9JyxrVCKvYCM9Y','zhjPDMvY','rMfRzvDLyKrYAxzLCG','y29UDgv4Dhm','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','B25ozxDqywDL','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','zw1PDezHA2vqB3b1Ca','Bwv0Ag9K','CgfNzxm','C2v0q29VA2LL','ndm5mhnHAvDUvG','C2f2zvn0B3jHz2vtDgf0zq','BMfTzq','y2fSBhm','Aw5WDxrwywX1zq','DgL0Bgu','z2v0qxr0CMLIDxrL','B3v0zxjive1m','lNbHz2uW','y2fSBhngB3i','C2v0qwn0AxzLugfNzq','z2v0tg9JywXtDg9YywDL','z290BW','CMvJB3jKzxi','BgvUz3rO','Aw5ZCgvJDevSzw1LBNq','AxnwAxnPyMXLqNLezwzHDwX0','Dgv4DenVBNrLBNq','y2XPCgjVyxjKugfZDgu','pgrPDJ48l2rPDJ4','zMLSBa','D2fPDezVCKXVywrtDgf0zq','y2XPy2S','nwfRwvLRuq','zNjHBwvtDgfJAW','B25bzNrLCKnSAwnR','Dw5JAgvJAW','Aw5PDgLHBfvYBa','CgfNzuXPC3q'];_0x1da8=function(){return _0x1e989b;};return _0x1da8();}var __defProp=Object[_0x52c021(0x1c5)],__name=(_0x31dc01,_0x380419)=>__defProp(_0x31dc01,_0x52c021(0x1aa),{'value':_0x380419,'configurable':!![]});function _0x3364(_0x24858a,_0x13a66c){_0x24858a=_0x24858a-0x155;const _0x1da80b=_0x1da8();let _0x33642=_0x1da80b[_0x24858a];if(_0x3364['YkVUqF']===undefined){var _0x469b2e=function(_0x3434d4){const _0x57d7b9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x31dc01='',_0x380419='';for(let _0x4010ce=0x0,_0xcf4d41,_0x1b0f9b,_0x302514=0x0;_0x1b0f9b=_0x3434d4['charAt'](_0x302514++);~_0x1b0f9b&&(_0xcf4d41=_0x4010ce%0x4?_0xcf4d41*0x40+_0x1b0f9b:_0x1b0f9b,_0x4010ce++%0x4)?_0x31dc01+=String['fromCharCode'](0xff&_0xcf4d41>>(-0x2*_0x4010ce&0x6)):0x0){_0x1b0f9b=_0x57d7b9['indexOf'](_0x1b0f9b);}for(let _0x285d05=0x0,_0x69bbd2=_0x31dc01['length'];_0x285d05<_0x69bbd2;_0x285d05++){_0x380419+='%'+('00'+_0x31dc01['charCodeAt'](_0x285d05)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x380419);};_0x3364['FnzSyH']=_0x469b2e,_0x3364['rpMRdm']={},_0x3364['YkVUqF']=!![];}const _0x29c228=_0x1da80b[0x0],_0x3afdfe=_0x24858a+_0x29c228,_0x2097c3=_0x3364['rpMRdm'][_0x3afdfe];return!_0x2097c3?(_0x33642=_0x3364['FnzSyH'](_0x33642),_0x3364['rpMRdm'][_0x3afdfe]=_0x33642):_0x33642=_0x2097c3,_0x33642;}function subscribe(_0x4010ce,_0xcf4d41){const _0x395a87=_0x52c021;return _0x4010ce[_0x395a87(0x165)](_0xcf4d41),()=>{const _0x3d4521=_0x395a87;_0x4010ce[_0x3d4521(0x18f)](_0xcf4d41);};}__name(subscribe,'subscribe');import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,'DriverError');}},LocatorError=class extends UnotestError{static{__name(this,_0x52c021(0x19d));}};function createRecorder(){const _0x443078={_0x8c8f81:0x198},_0x139502=_0x52c021,_0x1b0f9b=[];let _0x302514=0x0;return{'push':__name(_0x285d05=>_0x1b0f9b[_0x139502(0x198)]({..._0x285d05,'seq':_0x302514++}),_0x139502(_0x443078._0x8c8f81)),'calls':__name(()=>_0x1b0f9b,'calls')};}__name(createRecorder,_0x52c021(0x16a));var FakePage=class{constructor(_0x69bbd2,_0x40c350,_0x1b65dc,_0x3e83ef){const _0x57b17c={_0x121d79:0x1b5,_0x4590c7:0x179},_0x379df5=_0x52c021;this[_0x379df5(_0x57b17c._0x121d79)]=_0x69bbd2,this[_0x379df5(_0x57b17c._0x4590c7)]=_0x40c350,this['scope']=_0x1b65dc,this['currentUrl']=_0x3e83ef;}[_0x52c021(0x1b5)];[_0x52c021(0x179)];[_0x52c021(0x15a)];static{__name(this,_0x52c021(0x192));}['currentUrl'];[_0x52c021(0x1c1)];[_0x52c021(0x1c6)](_0x57f1a8,_0x14b55b){const _0x486fa0={_0x8255a0:0x198},_0x43f1b4=_0x52c021;this[_0x43f1b4(0x1b5)][_0x43f1b4(_0x486fa0._0x8255a0)]({'scope':this[_0x43f1b4(0x15a)],'method':_0x57f1a8,'args':_0x14b55b});}[_0x52c021(0x197)](){const _0x575c3d={_0x3a7194:0x179,_0x2042df:0x178},_0x188377=_0x52c021;if(this[_0x188377(_0x575c3d._0x3a7194)][_0x188377(_0x575c3d._0x2042df)]){const _0x52d9da=this[_0x188377(0x179)][_0x188377(0x178)];this[_0x188377(_0x575c3d._0x3a7194)][_0x188377(0x178)]=void 0x0;throw _0x52d9da;}}[_0x52c021(0x187)](){const _0x11b607=_0x52c021;return this[_0x11b607(0x1c9)];}async[_0x52c021(0x1ad)](){const _0x4316f1={_0x156766:0x1ad,_0x57fb45:0x171},_0xc24147=_0x52c021;return this['record'](_0xc24147(_0x4316f1._0x156766),[]),_0xc24147(_0x4316f1._0x57fb45);}async[_0x52c021(0x1be)](_0x502256,_0x51d4c8){const _0x187438={_0x97da5a:0x1c1},_0x2b84c3=_0x52c021;this['record']('click',[_0x502256,_0x51d4c8]),this[_0x2b84c3(0x197)](),this[_0x2b84c3(_0x187438._0x97da5a)]?.();}async[_0x52c021(0x17d)](_0x313c74,_0x355fee){const _0x485b73={_0x449fe3:0x17d},_0x240f82=_0x52c021;this[_0x240f82(0x1c6)](_0x240f82(_0x485b73._0x449fe3),[_0x313c74,_0x355fee]),this[_0x240f82(0x197)]();}async[_0x52c021(0x1bc)](_0x4fd6df,_0x14d774,_0x2c1674){const _0xe4c1e5={_0x19f77d:0x197},_0x414d01=_0x52c021;this[_0x414d01(0x1c6)](_0x414d01(0x1bc),[_0x4fd6df,_0x14d774,_0x2c1674]),this[_0x414d01(_0xe4c1e5._0x19f77d)]();}async['press'](_0x2b354b,_0xbcdf16,_0x3a488b){const _0xa1b45d=_0x52c021;this[_0xa1b45d(0x1c6)]('press',[_0x2b354b,_0xbcdf16,_0x3a488b]),this[_0xa1b45d(0x197)]();}async['check'](_0x277aee,_0x50095f){const _0xa63ca1={_0x59d3f7:0x197},_0x2de57e=_0x52c021;this['record']('check',[_0x277aee,_0x50095f]),this[_0x2de57e(_0xa63ca1._0x59d3f7)]();}async[_0x52c021(0x1c2)](_0x35c463,_0x3c1016){const _0x1154de={_0x4fb2ef:0x1c2},_0x216c7d=_0x52c021;this[_0x216c7d(0x1c6)](_0x216c7d(_0x1154de._0x4fb2ef),[_0x35c463,_0x3c1016]),this[_0x216c7d(0x197)]();}async[_0x52c021(0x17c)](_0x56c750,_0x381f67,_0x4189b1){const _0x332f95={_0x404c35:0x1c6,_0x1188f0:0x17c},_0x6ee13b=_0x52c021;this[_0x6ee13b(_0x332f95._0x404c35)](_0x6ee13b(_0x332f95._0x1188f0),[_0x56c750,_0x381f67,_0x4189b1]),this[_0x6ee13b(0x197)]();}async['hover'](_0x63d655,_0x3fdda4){const _0x77494c={_0x3b6272:0x18e},_0x1355af=_0x52c021;this[_0x1355af(0x1c6)](_0x1355af(_0x77494c._0x3b6272),[_0x63d655,_0x3fdda4]),this[_0x1355af(0x197)]();}async[_0x52c021(0x177)](_0x4a2b17){const _0x351722={_0x502d39:0x1c6,_0x3e45aa:0x197},_0x2e66ba=_0x52c021;this[_0x2e66ba(_0x351722._0x502d39)]('scrollIntoView',[_0x4a2b17]),this[_0x2e66ba(_0x351722._0x3e45aa)]();}async[_0x52c021(0x19a)](_0x463eed,_0x284abf,_0x38137b){const _0x42af95={_0x4ee080:0x1c6},_0x3b72a6=_0x52c021;this[_0x3b72a6(_0x42af95._0x4ee080)](_0x3b72a6(0x19a),[_0x463eed,_0x284abf,_0x38137b]),this['maybeThrow']();}async[_0x52c021(0x183)](_0x497c84,_0x741198){this['record']('uploadFile',[_0x497c84,_0x741198]),this['maybeThrow']();}async[_0x52c021(0x1ba)](_0x40fa4c,_0x153315){const _0xff496e={_0x52bb37:0x1ba},_0xd918ee=_0x52c021;this['record'](_0xd918ee(_0xff496e._0x52bb37),[_0x40fa4c,_0x153315]),this[_0xd918ee(0x197)]();}async['count'](_0x254eb4){const _0x47a614={_0x2b0dcb:0x1c6,_0x165ba6:0x166,_0x411c98:0x179},_0x15a189=_0x52c021;return this[_0x15a189(_0x47a614._0x2b0dcb)](_0x15a189(_0x47a614._0x165ba6),[_0x254eb4]),this[_0x15a189(_0x47a614._0x411c98)][_0x15a189(0x1ca)]??0x1;}async[_0x52c021(0x1b9)](_0x4714b4){const _0x37a4b5={_0x257a8a:0x1c6,_0x1b2640:0x1b9,_0xfe59d6:0x15c},_0x585d20=_0x52c021;return this[_0x585d20(_0x37a4b5._0x257a8a)](_0x585d20(_0x37a4b5._0x1b2640),[_0x4714b4]),this['behavior'][_0x585d20(_0x37a4b5._0xfe59d6)]??'';}async[_0x52c021(0x1ac)](_0x2316b7){const _0x4eb901={_0x3ceb18:0x1ac,_0x120916:0x179},_0x51e356=_0x52c021;return this['record'](_0x51e356(_0x4eb901._0x3ceb18),[_0x2316b7]),this[_0x51e356(_0x4eb901._0x120916)][_0x51e356(0x169)]??'';}async[_0x52c021(0x176)](_0x251a27){const _0x200d48={_0x465238:0x1c6},_0x45f560=_0x52c021;return this[_0x45f560(_0x200d48._0x465238)]('checkedState',[_0x251a27]),this['behavior']['checkedStateByDefault']??null;}async['isVisible'](_0x9f3e3a){const _0x1540f0={_0x342141:0x1c6},_0x52fac5=_0x52c021;return this[_0x52fac5(_0x1540f0._0x342141)]('isVisible',[_0x9f3e3a]),this[_0x52fac5(0x179)][_0x52fac5(0x1b8)]??!![];}async[_0x52c021(0x16d)](_0x2edc96){const _0x2f88a0={_0x22f033:0x1c6},_0x2ce636=_0x52c021;return this[_0x2ce636(_0x2f88a0._0x22f033)](_0x2ce636(0x16d),[_0x2edc96]),this[_0x2ce636(0x179)][_0x2ce636(0x16c)]??![];}async[_0x52c021(0x1ae)](_0x2731a0,_0x1e8eb1){const _0x1faca7={_0x1458b1:0x182},_0x199a47=_0x52c021;return this[_0x199a47(0x1c6)](_0x199a47(0x1ae),[_0x2731a0,_0x1e8eb1]),this[_0x199a47(0x179)][_0x199a47(_0x1faca7._0x1458b1)]?.[_0x1e8eb1]??null;}async[_0x52c021(0x19b)](_0x143139,_0x5a12ad){const _0x555e22={_0x45864e:0x19b},_0x4d04e8=_0x52c021;this[_0x4d04e8(0x1c6)](_0x4d04e8(_0x555e22._0x45864e),[_0x143139,_0x5a12ad]);}async['waitForUrl'](_0x221325,_0x2bf5eb){const _0x401605={_0x120256:0x1c6},_0x2a78b0=_0x52c021;this[_0x2a78b0(_0x401605._0x120256)]('waitForUrl',[_0x221325,_0x2bf5eb]);}async[_0x52c021(0x19c)](_0x4d13f7,_0xce3480){const _0x39578c=_0x52c021;this[_0x39578c(0x1c6)]('waitForText',[_0x4d13f7,_0xce3480]);}async[_0x52c021(0x1cb)](_0x2c5a02){const _0x31b94b={_0x4130ca:0x1c6},_0x4ea98a=_0x52c021;this[_0x4ea98a(_0x31b94b._0x4130ca)](_0x4ea98a(0x1cb),[_0x2c5a02]);}async[_0x52c021(0x1bd)](_0x526445,_0x39ed86){const _0x420363={_0x258e71:0x1c6,_0x50a4d4:0x1bd},_0xc3e9aa=_0x52c021;this[_0xc3e9aa(_0x420363._0x258e71)](_0xc3e9aa(_0x420363._0x50a4d4),[_0x526445,_0x39ed86]);}async[_0x52c021(0x1b4)](_0x5e8962,_0x32a1ab){const _0x207a51={_0x32d2b8:0x1b4},_0x318403=_0x52c021;this['record'](_0x318403(_0x207a51._0x32d2b8),[_0x5e8962,_0x32a1ab]),this[_0x318403(0x1c9)]=_0x5e8962;}async['reload'](_0x383f5b){const _0x2319fe={_0x41d05f:0x1c6},_0x62b933=_0x52c021;this[_0x62b933(_0x2319fe._0x41d05f)](_0x62b933(0x191),[_0x383f5b]);}async[_0x52c021(0x168)](_0x391806){const _0x165186=_0x52c021;this[_0x165186(0x1c6)](_0x165186(0x168),[_0x391806]);}async[_0x52c021(0x185)](_0x326321){const _0x1d04a7={_0x3d90c3:0x1c6},_0x4734a1=_0x52c021;this[_0x4734a1(_0x1d04a7._0x3d90c3)](_0x4734a1(0x185),[_0x326321]);}async[_0x52c021(0x17a)](_0x1f9fc3){const _0x4786a4={_0x2f5bb4:0x17a},_0x14a54f=_0x52c021;return this[_0x14a54f(0x1c6)](_0x14a54f(_0x4786a4._0x2f5bb4),[_0x1f9fc3]),void 0x0;}async['evaluateOnLocator'](_0x407b4b,_0x22a352){return this['record']('evaluateOnLocator',[_0x407b4b,_0x22a352]),void 0x0;}async['inspectElement'](_0x11a950){const _0x2ca4a2={_0x5d423e:0x1c6,_0x1d7b56:0x1b7,_0x5ee336:0x180,_0x1a4fd9:0x167,_0x51418b:0x157,_0x17178e:0x179},_0x307c4a=_0x52c021;this[_0x307c4a(_0x2ca4a2._0x5d423e)](_0x307c4a(_0x2ca4a2._0x1d7b56),[_0x11a950]);if(_0x11a950[_0x307c4a(_0x2ca4a2._0x5ee336)]['length']!==0x1||_0x11a950[_0x307c4a(0x180)][0x0][_0x307c4a(_0x2ca4a2._0x1a4fd9)]!==_0x307c4a(_0x2ca4a2._0x51418b))return null;const _0x3c6bd8=_0x11a950['steps'][0x0][_0x307c4a(0x157)],_0x31a3b2=this[_0x307c4a(_0x2ca4a2._0x17178e)]['elementHintByRef']?.[_0x3c6bd8];return _0x31a3b2??null;}async[_0x52c021(0x16f)](_0x44f43c){const _0x4df695={_0x44dbc1:0x194},_0x5b0323=_0x52c021;return this['record'](_0x5b0323(0x16f),[_0x44f43c]),Buffer['from'](_0x5b0323(_0x4df695._0x44dbc1));}async['outerHTML'](_0x58c977){const _0x27865a={_0x13996d:0x180,_0x19563a:0x157,_0x2ba1b8:0x180,_0x19850c:0x1a3},_0x1c2ec2=_0x52c021;this['record'](_0x1c2ec2(0x1af),[_0x58c977]);if(_0x58c977[_0x1c2ec2(0x180)]['length']===0x1&&_0x58c977[_0x1c2ec2(_0x27865a._0x13996d)][0x0][_0x1c2ec2(0x167)]===_0x1c2ec2(_0x27865a._0x19563a)){const _0x265d10=_0x58c977[_0x1c2ec2(_0x27865a._0x2ba1b8)][0x0][_0x1c2ec2(0x157)];return this['behavior']['outerHtmlByRef']?.[_0x265d10]??_0x1c2ec2(_0x27865a._0x19850c)+_0x265d10+'\x22></div>';}return _0x1c2ec2(0x1bb);}},FakeContext=class{constructor(_0x39a27c,_0x976d90,_0x26d345){const _0x406c64={_0x35f2bc:0x17f,_0x22afed:0x1c1,_0x52f461:0x155,_0x2649db:0x18d},_0x5cc3e6={_0x192dfd:0x195},_0xa081d4=_0x52c021;this['recorder']=_0x39a27c,this[_0xa081d4(0x179)]=_0x976d90,this[_0xa081d4(0x15a)]=_0x26d345;const _0x1cb77c=new FakePage(_0x39a27c,_0x976d90,_0x26d345+_0xa081d4(0x1b0),_0x976d90[_0xa081d4(0x1c3)]??_0xa081d4(_0x406c64._0x35f2bc));_0x976d90[_0xa081d4(0x195)]&&(_0x1cb77c[_0xa081d4(_0x406c64._0x22afed)]=()=>{const _0x372903=_0xa081d4;this[_0x372903(0x1a4)](_0x976d90[_0x372903(_0x5cc3e6._0x192dfd)]);}),this['pageList']=[_0x1cb77c],this[_0xa081d4(_0x406c64._0x52f461)]={..._0x976d90[_0xa081d4(0x1c7)]??{}},this[_0xa081d4(0x164)]={..._0x976d90[_0xa081d4(_0x406c64._0x2649db)]??{}};}['recorder'];[_0x52c021(0x179)];[_0x52c021(0x15a)];static{__name(this,_0x52c021(0x1c8));}[_0x52c021(0x1c4)];[_0x52c021(0x161)]=0x0;['frameStack']=[];[_0x52c021(0x155)];[_0x52c021(0x164)];['newPageListeners']=new Set();[_0x52c021(0x1c6)](_0xf53240,_0x354f44){const _0x437022=_0x52c021;this[_0x437022(0x1b5)][_0x437022(0x198)]({'scope':this[_0x437022(0x15a)],'method':_0xf53240,'args':_0x354f44});}[_0x52c021(0x1a6)](){const _0x24522c=_0x52c021;return this[_0x24522c(0x1c4)];}['activePage'](){const _0x311ac1={_0x1d10c5:0x181},_0x2c4344=_0x52c021,_0x13edc1=this['pageList'][this[_0x2c4344(0x161)]];if(!_0x13edc1)throw new DriverError(_0x2c4344(_0x311ac1._0x1d10c5),{'activeIdx':this['activeIdx']});return _0x13edc1;}[_0x52c021(0x17e)](){const _0x4fc670={_0x582a7b:0x179,_0x3cc64a:0x17e},_0x353cb1=_0x52c021;return this[_0x353cb1(_0x4fc670._0x582a7b)][_0x353cb1(_0x4fc670._0x3cc64a)]??[];}[_0x52c021(0x15b)](){const _0x225d6e={_0x1d42ee:0x179},_0x336cd6=_0x52c021;return this[_0x336cd6(_0x225d6e._0x1d42ee)][_0x336cd6(0x15b)]??[];}async[_0x52c021(0x1b2)](_0x405bc8){const _0x2956d7={_0x2bf2b7:0x1b2,_0x20afd6:0x1b6,_0x591248:0x1c4},_0x575698=_0x52c021;this['record'](_0x575698(_0x2956d7._0x2bf2b7),[_0x405bc8]);if(_0x405bc8<0x0||_0x405bc8>=this['pageList'][_0x575698(_0x2956d7._0x20afd6)])throw new DriverError('page\x20index\x20out\x20of\x20range',{'index':_0x405bc8,'available':this[_0x575698(_0x2956d7._0x591248)][_0x575698(0x1b6)]});this['activeIdx']=_0x405bc8,this['frameStack'][_0x575698(0x1b6)]=0x0;}[_0x52c021(0x1a2)](_0x382afa){const _0x2d5ef4=_0x52c021;return subscribe(this[_0x2d5ef4(0x163)],_0x382afa);}[_0x52c021(0x1a4)](_0x52f939){const _0x1df817={_0x3ac624:0x15a,_0x15285f:0x198,_0x5292e2:0x163},_0x135542=_0x52c021,_0xa7ea2a=this[_0x135542(_0x1df817._0x3ac624)]+'.page'+this['pageList'][_0x135542(0x1b6)],_0x701ef2=new FakePage(this[_0x135542(0x1b5)],this['behavior'],_0xa7ea2a,_0x52f939);this['pageList'][_0x135542(_0x1df817._0x15285f)](_0x701ef2);const _0x2fce5b=this[_0x135542(0x1c4)][_0x135542(0x1b6)]-0x1;for(const _0x108722 of this[_0x135542(_0x1df817._0x5292e2)]){try{_0x108722({'index':_0x2fce5b,'url':_0x52f939});}catch{}}return _0x2fce5b;}[_0x52c021(0x186)](_0x387d60){const _0x497fae={_0x13ffbf:0x1b6},_0x1b3d30=_0x52c021;if(_0x387d60<0x0||_0x387d60>=this[_0x1b3d30(0x1c4)][_0x1b3d30(_0x497fae._0x13ffbf)])throw new DriverError(_0x1b3d30(0x1a1),{'index':_0x387d60,'available':this[_0x1b3d30(0x1c4)][_0x1b3d30(0x1b6)]});this[_0x1b3d30(0x1c4)][_0x1b3d30(0x190)](_0x387d60,0x1);}async[_0x52c021(0x17b)](_0x52a341){const _0x123fa4={_0x5d2416:0x17b,_0x3d6718:0x1b6,_0x1689b2:0x193,_0x591f35:0x198},_0x2711e7=_0x52c021;this['record'](_0x2711e7(_0x123fa4._0x5d2416),[_0x52a341]);if(!_0x52a341['steps'][_0x2711e7(_0x123fa4._0x3d6718)])throw new LocatorError(_0x2711e7(_0x123fa4._0x1689b2),{'locator':_0x52a341});this[_0x2711e7(0x1c0)][_0x2711e7(_0x123fa4._0x591f35)](_0x52a341);}async[_0x52c021(0x196)](){const _0x43c25d={_0x1f8889:0x1c0},_0x2d90dd=_0x52c021;this['record'](_0x2d90dd(0x196),[]);if(this[_0x2d90dd(_0x43c25d._0x1f8889)][_0x2d90dd(0x1b6)]===0x0)throw new DriverError('exitFrame\x20called\x20with\x20no\x20frame\x20on\x20the\x20stack',{});this[_0x2d90dd(_0x43c25d._0x1f8889)][_0x2d90dd(0x175)]();}async[_0x52c021(0x18c)](_0xfd358c,_0x543ed2){const _0x5f00b4=_0x52c021;this[_0x5f00b4(0x1c6)]('setLocalStorage',[_0xfd358c,_0x543ed2]),this[_0x5f00b4(0x155)][_0xfd358c]=_0x543ed2;}async[_0x52c021(0x1b3)](_0x26a536){const _0x5a16e3={_0x7d4cb9:0x155},_0x4b089f=_0x52c021;return this[_0x4b089f(0x1c6)]('getLocalStorage',[_0x26a536]),this[_0x4b089f(_0x5a16e3._0x7d4cb9)][_0x26a536]??null;}async['setCookie'](_0x29774e,_0x5accd9,_0x526e76){const _0x2bb793={_0x5d8e77:0x1a7,_0x5df0fa:0x164},_0x3b4540=_0x52c021;this[_0x3b4540(0x1c6)](_0x3b4540(_0x2bb793._0x5d8e77),[_0x29774e,_0x5accd9,_0x526e76]),this[_0x3b4540(_0x2bb793._0x5df0fa)][_0x29774e]=_0x5accd9;}async[_0x52c021(0x159)](_0x9b1aab){const _0x155b3c={_0x36b49e:0x159,_0x46af90:0x164},_0x4cb4cc=_0x52c021;return this[_0x4cb4cc(0x1c6)](_0x4cb4cc(_0x155b3c._0x36b49e),[_0x9b1aab]),this[_0x4cb4cc(_0x155b3c._0x46af90)][_0x9b1aab]??null;}async[_0x52c021(0x1a9)](_0x569eaa){const _0x421143={_0x1c88a9:0x1a9},_0x43b315=_0x52c021;this['record'](_0x43b315(_0x421143._0x1c88a9),[_0x569eaa]);}async[_0x52c021(0x17a)](_0x3330a9){const _0x4d5c6a=_0x52c021;return this[_0x4d5c6a(0x1c6)](_0x4d5c6a(0x17a),[_0x3330a9]),void 0x0;}async[_0x52c021(0x172)](){const _0x5cd845={_0x310f1f:0x1c6,_0x1e68ec:0x172},_0x13ef6d=_0x52c021;this[_0x13ef6d(_0x5cd845._0x310f1f)](_0x13ef6d(_0x5cd845._0x1e68ec),[]);}[_0x52c021(0x15e)](){const _0x4d4c4a={_0x42a2a5:0x1c0},_0x1377a5=_0x52c021;return this[_0x1377a5(_0x4d4c4a._0x42a2a5)]['length'];}},FakeWebDriver=class{constructor(_0x35c6f4={}){const _0x56689f={_0x46c9e6:0x1b5},_0x2be6d7=_0x52c021;this[_0x2be6d7(0x179)]=_0x35c6f4,this[_0x2be6d7(_0x56689f._0x46c9e6)]=createRecorder();}[_0x52c021(0x179)];static{__name(this,_0x52c021(0x19f));}['launched']=![];[_0x52c021(0x1b5)];['contexts']=[];async[_0x52c021(0x160)](_0x4bd1f7){const _0x3fd216={_0x1fb655:0x1b5,_0x42e4c9:0x198,_0x53e94f:0x19e,_0x19fc11:0x160,_0x212be7:0x18b},_0x5c1158=_0x52c021;this[_0x5c1158(_0x3fd216._0x1fb655)][_0x5c1158(_0x3fd216._0x42e4c9)]({'scope':_0x5c1158(_0x3fd216._0x53e94f),'method':_0x5c1158(_0x3fd216._0x19fc11),'args':[_0x4bd1f7]}),this[_0x5c1158(_0x3fd216._0x212be7)]=!![];}async[_0x52c021(0x173)](_0x47107a){const _0x21aaa6={_0x4e39a1:0x1b5,_0x47fc93:0x158,_0x377405:0x1b5,_0x9bc756:0x179,_0x439028:0x1a0,_0x13950a:0x1b6},_0x765e6=_0x52c021;this[_0x765e6(_0x21aaa6._0x4e39a1)][_0x765e6(0x198)]({'scope':'driver','method':_0x765e6(0x173),'args':[_0x47107a]});if(!this[_0x765e6(0x18b)])throw new DriverError(_0x765e6(_0x21aaa6._0x47fc93),{});const _0x285555=new FakeContext(this[_0x765e6(_0x21aaa6._0x377405)],this[_0x765e6(_0x21aaa6._0x9bc756)],_0x765e6(0x16b)+this[_0x765e6(_0x21aaa6._0x439028)][_0x765e6(_0x21aaa6._0x13950a)]);return this['contexts'][_0x765e6(0x198)](_0x285555),_0x285555;}async[_0x52c021(0x172)](){const _0x4f05b3={_0x53f398:0x19e,_0x30812e:0x18b},_0x8cb9eb=_0x52c021;this['recorder'][_0x8cb9eb(0x198)]({'scope':_0x8cb9eb(_0x4f05b3._0x53f398),'method':'close','args':[]}),this[_0x8cb9eb(_0x4f05b3._0x30812e)]=![];}['wsEndpoint'](){return void 0x0;}async[_0x52c021(0x170)](){throw new DriverError('connectShared\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x52c021(0x16e)](){const _0x461262={_0x4ac6b7:0x162},_0x51ba82=_0x52c021;throw new DriverError(_0x51ba82(_0x461262._0x4ac6b7),{});}[_0x52c021(0x1ab)](){const _0x2d395d={_0x24c166:0x1b5,_0x42e9a5:0x1ab},_0x5f05d0=_0x52c021;return this[_0x5f05d0(_0x2d395d._0x24c166)][_0x5f05d0(_0x2d395d._0x42e9a5)]();}[_0x52c021(0x1b1)](_0x54c081){const _0x3162c6={_0x57c81f:0x18a},_0x3340f2=_0x52c021;return this[_0x3340f2(0x1b5)]['calls']()[_0x3340f2(_0x3162c6._0x57c81f)](_0x3164e1=>_0x3164e1[_0x3340f2(0x1a5)]===_0x54c081);}};export{FakeWebDriver};
|
|
1
|
+
const _0x3ee4d3=_0x1704;(function(_0x53e7f8,_0x238b2b){const _0x5a3c97={_0x18ab1a:0x95,_0x1d6475:0x96,_0x2aff8b:0xa0,_0x17dee2:0x97,_0x3dbcea:0xe6,_0x33fd7b:0xe1},_0x1ac309=_0x1704,_0x181198=_0x53e7f8();while(!![]){try{const _0x9009d6=parseInt(_0x1ac309(_0x5a3c97._0x18ab1a))/0x1+-parseInt(_0x1ac309(0xc1))/0x2*(-parseInt(_0x1ac309(_0x5a3c97._0x1d6475))/0x3)+parseInt(_0x1ac309(_0x5a3c97._0x2aff8b))/0x4+parseInt(_0x1ac309(_0x5a3c97._0x17dee2))/0x5*(-parseInt(_0x1ac309(0xd7))/0x6)+parseInt(_0x1ac309(_0x5a3c97._0x3dbcea))/0x7+-parseInt(_0x1ac309(0x93))/0x8*(-parseInt(_0x1ac309(0xa7))/0x9)+-parseInt(_0x1ac309(_0x5a3c97._0x33fd7b))/0xa;if(_0x9009d6===_0x238b2b)break;else _0x181198['push'](_0x181198['shift']());}catch(_0x3322d5){_0x181198['push'](_0x181198['shift']());}}}(_0x1db7,0x6b5cf));var __defProp=Object[_0x3ee4d3(0xe9)],__name=(_0x333d9c,_0x483464)=>__defProp(_0x333d9c,'name',{'value':_0x483464,'configurable':!![]});function subscribe(_0x442e72,_0x42cf29){const _0x374437=_0x3ee4d3;return _0x442e72[_0x374437(0xbc)](_0x42cf29),()=>{const _0x44b0ab=_0x374437;_0x442e72[_0x44b0ab(0xd6)](_0x42cf29);};}function _0x1704(_0x3286a3,_0x684151){_0x3286a3=_0x3286a3-0x86;const _0x1db704=_0x1db7();let _0x170429=_0x1db704[_0x3286a3];if(_0x1704['MDjfga']===undefined){var _0x90b012=function(_0x1f8c7b){const _0x4c7074='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x333d9c='',_0x483464='';for(let _0x442e72=0x0,_0x42cf29,_0x160d65,_0x4885fc=0x0;_0x160d65=_0x1f8c7b['charAt'](_0x4885fc++);~_0x160d65&&(_0x42cf29=_0x442e72%0x4?_0x42cf29*0x40+_0x160d65:_0x160d65,_0x442e72++%0x4)?_0x333d9c+=String['fromCharCode'](0xff&_0x42cf29>>(-0x2*_0x442e72&0x6)):0x0){_0x160d65=_0x4c7074['indexOf'](_0x160d65);}for(let _0x4dfc18=0x0,_0x1aebf4=_0x333d9c['length'];_0x4dfc18<_0x1aebf4;_0x4dfc18++){_0x483464+='%'+('00'+_0x333d9c['charCodeAt'](_0x4dfc18)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x483464);};_0x1704['OHzBHD']=_0x90b012,_0x1704['hXgKTD']={},_0x1704['MDjfga']=!![];}const _0x2205e2=_0x1db704[0x0],_0x531d06=_0x3286a3+_0x2205e2,_0x1f62c6=_0x1704['hXgKTD'][_0x531d06];return!_0x1f62c6?(_0x170429=_0x1704['OHzBHD'](_0x170429),_0x1704['hXgKTD'][_0x531d06]=_0x170429):_0x170429=_0x1f62c6,_0x170429;}__name(subscribe,'subscribe');import{UnotestError}from'@unotest/core';function _0x1db7(){const _0x3cbc02=['mtj5vev2tw4','y2HLy2S','zw1PDezHA2vqB3b1Ca','AxnwAxnPyMXL','zNjHBwvtDgfJAW','y291BNq','Bgf1BMnO','iJ48l2rPDJ4','Aw5WDxrwywX1zq','AxneAxnHyMXLza','mtuZmde4nZbUBfHHveq','z290BW','y2XPCgjVyxjKugfZDgu','y2XVC2u','D2fPDezVCG','mtaZmdiZmMPLvujLEa','Ag92zxi','y2XPy2S','zgvMAw5LuhjVCgvYDhK','Bgf1BMnOzwq','zwXLBwvUDeHPBNrcEvjLzG','C2nYzwvUC2HVDa','B25ozxDqywDL','B3v0zxjive1m','CMvJB3jK','zNjHBwvezxb0Aa','y29UBMvJDfnOyxjLza','zhjPDMvY','yMvOyxzPB3i','zg91yMXLq2XPy2S','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','rhjPDMvYrxjYB3i','Aw5WDxrwywX1zuj5rgvMyxvSDa','CMvJB3jKzxi','Bwv0Ag9K','zMLSBa','y2HLy2TLzfn0yxrL','Bwf5yMvuAhjVDW','C2v0tg9JywXtDg9YywDL','D2fPDezVCLrLEhq','A2LUza','Dw5JAgvJAW','DxjS','zxjYB3jpBK5LEhrby3rPB24','C2f2zvn0B3jHz2vtDgf0zq','mJq4DvP4y0nb','AxneAxnHyMXLzej5rgvMyxvSDa','nZGXnJi1BMzAv05n','mZm2nZC3BvLfsM9X','mtqZody1nvzYBNjyyW','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','y29VA2LLCW','y2XVC2vgywTLugfNzq','D2fPDezVCLvYBa','z2v0tg9JywXtDg9YywDL','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','z29gB3j3yxjK','yxr0CMLIDxrLC0j5rgvMyxvSDa','mJy3nde2mfnhCxbhtq','C2v0q29VA2LL','D3nfBMrWB2LUDa','BMv0D29YA0vUDhjPzxm','zxzHBhvHDgu','CgfNzuXPC3q','rMfRzvDLyKrYAxzLCG','ndCXmdzIqvDdveq','C2nVCgu','z29cywnR','y29UDgv4Dhm','BgvUz3rO','y2fSBhm','Bg9JywXtDg9YywDL','lNbHz2uW','Cg9W','Dgv4DenVBNrLBNq','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','ChjLC3m','D2fPDezVCK5HDMLNyxrPB24','zhjHz0fUzerYB3a','rMfRzunVBNrLEhq','tg9JyxrVCKvYCM9Y','y3vYCMvUDfvYBa','z2v0qxr0CMLIDxrL','y291BNrcEurLzMf1Bhq','AxnwAxnPyMXLqNLezwzHDwX0','lNbHz2u','ywrK','Aw5ZCgvJDevSzw1LBNq','zxzHBhvHDgvpBKXVy2f0B3i','BMv3q29UDgv4Da','D2fPDezVCKXVywrtDgf0zq','mtrxwNnuzKO','DxbSB2fKrMLSzq','BMv3ugfNzuXPC3rLBMvYCW','C2v0qwn0AxzLugfNzq','C3rLChm','Cg9WDxbpBKnSAwnR','ywn0AxzLswr4','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','ywjVDxq6yMXHBMS','Bg9JywXtDg9YywDLu3rHDgu','z2v0q29VA2LL','y29VA2LLu3rHDgu','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','ChvZAa','y29UC29SzuvUDhjPzxm','ywn0AxzLugfNzq','CMvSB2fK','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','CMvM','B25bzNrLCKnSAwnR','zw50zxjgCMfTzq','zgvSzxrL'];_0x1db7=function(){return _0x3cbc02;};return _0x1db7();}var DriverError=class extends UnotestError{static{__name(this,_0x3ee4d3(0xf6));}},LocatorError=class extends UnotestError{static{__name(this,_0x3ee4d3(0xb6));}};function createRecorder(){const _0x32f817={_0xe3ef6:0xac},_0x24b965=_0x3ee4d3,_0x160d65=[];let _0x4885fc=0x0;return{'push':__name(_0x4dfc18=>_0x160d65[_0x24b965(0xce)]({..._0x4dfc18,'seq':_0x4885fc++}),'push'),'calls':__name(()=>_0x160d65,_0x24b965(_0x32f817._0xe3ef6))};}__name(createRecorder,'createRecorder');var FakePage=class{constructor(_0x1aebf4,_0x4e4808,_0x4548b7,_0x48f97b){const _0x2f07c5={_0x1c1389:0x87,_0x357960:0xa8},_0x3180b8=_0x3ee4d3;this[_0x3180b8(_0x2f07c5._0x1c1389)]=_0x1aebf4,this[_0x3180b8(0xf3)]=_0x4e4808,this[_0x3180b8(_0x2f07c5._0x357960)]=_0x4548b7,this['currentUrl']=_0x48f97b;}[_0x3ee4d3(0x87)];[_0x3ee4d3(0xf3)];['scope'];static{__name(this,'FakePage');}[_0x3ee4d3(0xb7)];[_0x3ee4d3(0xd4)];[_0x3ee4d3(0xef)](_0x581f22,_0x35da90){const _0x4f8474={_0x108133:0xce},_0x44fbdc=_0x3ee4d3;this['recorder'][_0x44fbdc(_0x4f8474._0x108133)]({'scope':this['scope'],'method':_0x581f22,'args':_0x35da90});}[_0x3ee4d3(0x8b)](){const _0x3ff468={_0x5dc2c3:0xf3,_0x2fb95d:0x91},_0x272660=_0x3ee4d3;if(this[_0x272660(0xf3)]['errorOnNextAction']){const _0x6b471d=this[_0x272660(_0x3ff468._0x5dc2c3)][_0x272660(0x91)];this['behavior'][_0x272660(_0x3ff468._0x2fb95d)]=void 0x0;throw _0x6b471d;}}[_0x3ee4d3(0x90)](){const _0x47beed=_0x3ee4d3;return this[_0x47beed(0xb7)];}async['title'](){const _0xd160b4={_0x5d9ccc:0xef},_0x38cba5=_0x3ee4d3;return this[_0x38cba5(_0xd160b4._0x5d9ccc)]('title',[]),'fake\x20title';}async[_0x3ee4d3(0xe8)](_0x21fbac,_0x4da099){const _0x5ea06f={_0xd1699c:0xe8},_0x1edd5d=_0x3ee4d3;this['record'](_0x1edd5d(_0x5ea06f._0xd1699c),[_0x21fbac,_0x4da099]),this[_0x1edd5d(0x8b)](),this[_0x1edd5d(0xd4)]?.();}async[_0x3ee4d3(0xf4)](_0x3adac1,_0x35f706){const _0x1d2ee3={_0x4cd115:0x8b},_0x2d4649=_0x3ee4d3;this['record'](_0x2d4649(0xf4),[_0x3adac1,_0x35f706]),this[_0x2d4649(_0x1d2ee3._0x4cd115)]();}async['fill'](_0x4448c2,_0x18fde1,_0x1a8623){const _0x34e363={_0x5ddc5f:0xef},_0x387338=_0x3ee4d3;this[_0x387338(_0x34e363._0x5ddc5f)](_0x387338(0x89),[_0x4448c2,_0x18fde1,_0x1a8623]),this['maybeThrow']();}async[_0x3ee4d3(0xb2)](_0x4fcd03,_0x109871,_0x468a2b){const _0x17807d={_0x1a6a9b:0xb2},_0x110eb2=_0x3ee4d3;this['record'](_0x110eb2(_0x17807d._0x1a6a9b),[_0x4fcd03,_0x109871,_0x468a2b]),this[_0x110eb2(0x8b)]();}async[_0x3ee4d3(0xd8)](_0x22146b,_0x3893e3){const _0x1b3616={_0x57a2e2:0xef,_0x25a48a:0xd8},_0x23d584=_0x3ee4d3;this[_0x23d584(_0x1b3616._0x57a2e2)](_0x23d584(_0x1b3616._0x25a48a),[_0x22146b,_0x3893e3]),this['maybeThrow']();}async[_0x3ee4d3(0x8f)](_0x13bb9e,_0x31e3da){const _0x48fa3e={_0xd4d677:0x8f},_0x3f7c43=_0x3ee4d3;this['record'](_0x3f7c43(_0x48fa3e._0xd4d677),[_0x13bb9e,_0x31e3da]),this[_0x3f7c43(0x8b)]();}async['selectOption'](_0x441957,_0x1fa98a,_0x5da0f8){const _0x327f7a={_0x31d4b1:0xef},_0x34d2df=_0x3ee4d3;this[_0x34d2df(_0x327f7a._0x31d4b1)]('selectOption',[_0x441957,_0x1fa98a,_0x5da0f8]),this['maybeThrow']();}async[_0x3ee4d3(0xe7)](_0x205876,_0x464407){const _0x1da884=_0x3ee4d3;this['record'](_0x1da884(0xe7),[_0x205876,_0x464407]),this['maybeThrow']();}async['scrollIntoView'](_0x45a619){const _0x247158={_0x3ea511:0xef,_0x4aebfe:0x8b},_0x57df6b=_0x3ee4d3;this[_0x57df6b(_0x247158._0x3ea511)]('scrollIntoView',[_0x45a619]),this[_0x57df6b(_0x247158._0x4aebfe)]();}async[_0x3ee4d3(0xb4)](_0x353d3e,_0x4a9e82,_0x1ace8e){const _0x311dcb={_0x5566c4:0xef},_0x185aca=_0x3ee4d3;this[_0x185aca(_0x311dcb._0x5566c4)]('dragAndDrop',[_0x353d3e,_0x4a9e82,_0x1ace8e]),this['maybeThrow']();}async[_0x3ee4d3(0xc2)](_0x52dacc,_0x5560c1){const _0x182207=_0x3ee4d3;this[_0x182207(0xef)](_0x182207(0xc2),[_0x52dacc,_0x5560c1]),this[_0x182207(0x8b)]();}async[_0x3ee4d3(0xe3)](_0x53b896,_0x4bf63b){const _0x478cc4=_0x3ee4d3;this[_0x478cc4(0xef)](_0x478cc4(0xe3),[_0x53b896,_0x4bf63b]),this[_0x478cc4(0x8b)]();}async[_0x3ee4d3(0xdc)](_0x558ed2){const _0xc29762={_0x5ab218:0xef,_0x598564:0xdc,_0x5c7344:0xb9},_0x1fb860=_0x3ee4d3;return this[_0x1fb860(_0xc29762._0x5ab218)](_0x1fb860(_0xc29762._0x598564),[_0x558ed2]),this[_0x1fb860(0xf3)][_0x1fb860(_0xc29762._0x5c7344)]??0x1;}async['textContent'](_0x43c78b){const _0x3d45ed=_0x3ee4d3;return this['record'](_0x3d45ed(0xb0),[_0x43c78b]),this['behavior']['textContentByDefault']??'';}async[_0x3ee4d3(0xdf)](_0x3ff231){const _0x41b905={_0x2ea746:0xdf,_0x20f5f2:0xf3,_0x4125b1:0x86},_0x97660b=_0x3ee4d3;return this['record'](_0x97660b(_0x41b905._0x2ea746),[_0x3ff231]),this[_0x97660b(_0x41b905._0x20f5f2)][_0x97660b(_0x41b905._0x4125b1)]??'';}async[_0x3ee4d3(0x8a)](_0x397581){const _0x209213={_0x3afc9d:0xef,_0x3dedd9:0xf3},_0x2ba2cc=_0x3ee4d3;return this[_0x2ba2cc(_0x209213._0x3afc9d)]('checkedState',[_0x397581]),this[_0x2ba2cc(_0x209213._0x3dedd9)]['checkedStateByDefault']??null;}async[_0x3ee4d3(0xda)](_0x1f8ff0){const _0x1e029f={_0x1df9ba:0xef,_0x41bda8:0xda,_0x314481:0xf3,_0x58bf07:0xba},_0x261b75=_0x3ee4d3;return this[_0x261b75(_0x1e029f._0x1df9ba)](_0x261b75(_0x1e029f._0x41bda8),[_0x1f8ff0]),this[_0x261b75(_0x1e029f._0x314481)][_0x261b75(_0x1e029f._0x58bf07)]??!![];}async[_0x3ee4d3(0xe0)](_0x52e0d5){const _0x4c629f={_0x522c6c:0xef,_0x276e5d:0xe0,_0x30786c:0xf3,_0x11abd6:0x94},_0x470dc0=_0x3ee4d3;return this[_0x470dc0(_0x4c629f._0x522c6c)](_0x470dc0(_0x4c629f._0x276e5d),[_0x52e0d5]),this[_0x470dc0(_0x4c629f._0x30786c)][_0x470dc0(_0x4c629f._0x11abd6)]??![];}async[_0x3ee4d3(0xb8)](_0x3d49b1,_0x46e621){const _0xadf2dd={_0x8bea3f:0xef,_0x143d36:0x9f},_0x161c2d=_0x3ee4d3;return this[_0x161c2d(_0xadf2dd._0x8bea3f)]('getAttribute',[_0x3d49b1,_0x46e621]),this['behavior'][_0x161c2d(_0xadf2dd._0x143d36)]?.[_0x46e621]??null;}async[_0x3ee4d3(0xe5)](_0xbbd067,_0x293834){const _0x507387={_0x43b3cc:0xef},_0x201b4a=_0x3ee4d3;this[_0x201b4a(_0x507387._0x43b3cc)](_0x201b4a(0xe5),[_0xbbd067,_0x293834]);}async[_0x3ee4d3(0x9b)](_0xff1982,_0x4751c1){const _0x3d77f6={_0x492a0d:0xef},_0x232af5=_0x3ee4d3;this[_0x232af5(_0x3d77f6._0x492a0d)]('waitForUrl',[_0xff1982,_0x4751c1]);}async[_0x3ee4d3(0x8d)](_0x3a0e9b,_0x3945db){const _0x49761d={_0x68d82c:0x8d},_0x242c55=_0x3ee4d3;this[_0x242c55(0xef)](_0x242c55(_0x49761d._0x68d82c),[_0x3a0e9b,_0x3945db]);}async[_0x3ee4d3(0xb3)](_0x598c08){const _0x4c0cd2=_0x3ee4d3;this[_0x4c0cd2(0xef)](_0x4c0cd2(0xb3),[_0x598c08]);}async[_0x3ee4d3(0xc0)](_0x55ad23,_0x2f6c28){const _0x31b997={_0x35286a:0xef},_0x1e29ee=_0x3ee4d3;this[_0x1e29ee(_0x31b997._0x35286a)](_0x1e29ee(0xc0),[_0x55ad23,_0x2f6c28]);}async[_0x3ee4d3(0xe2)](_0x101909,_0x4a247a){const _0x25e186={_0xce079f:0xe2},_0x479c51=_0x3ee4d3;this['record'](_0x479c51(_0x25e186._0xce079f),[_0x101909,_0x4a247a]),this[_0x479c51(0xb7)]=_0x101909;}async[_0x3ee4d3(0xd1)](_0x25cb4d){const _0x535617={_0x2179e2:0xd1},_0x54531=_0x3ee4d3;this['record'](_0x54531(_0x535617._0x2179e2),[_0x25cb4d]);}async['goBack'](_0x5e8cc0){const _0x5da80a={_0x1c9fdb:0xa9},_0x1bddb6=_0x3ee4d3;this['record'](_0x1bddb6(_0x5da80a._0x1c9fdb),[_0x5e8cc0]);}async['goForward'](_0x5934e5){const _0xb39a0d=_0x3ee4d3;this[_0xb39a0d(0xef)](_0xb39a0d(0x9e),[_0x5934e5]);}async[_0x3ee4d3(0xa4)](_0x4a30fc){const _0x5386a1={_0x4d1890:0xef},_0x21cf60=_0x3ee4d3;return this[_0x21cf60(_0x5386a1._0x4d1890)]('evaluate',[_0x4a30fc]),void 0x0;}async[_0x3ee4d3(0xbe)](_0x3a7c57,_0x181056){const _0x159c53={_0x4407ce:0xbe},_0x4822a6=_0x3ee4d3;return this[_0x4822a6(0xef)](_0x4822a6(_0x159c53._0x4407ce),[_0x3a7c57,_0x181056]),void 0x0;}async[_0x3ee4d3(0xbd)](_0x395231){const _0xd81f5={_0xfccb63:0xbd,_0x559ee2:0xc5,_0x5cd6f7:0xab,_0x393079:0xf3,_0x90c046:0xeb},_0x41e943=_0x3ee4d3;this[_0x41e943(0xef)](_0x41e943(_0xd81f5._0xfccb63),[_0x395231]);if(_0x395231[_0x41e943(_0xd81f5._0x559ee2)][_0x41e943(_0xd81f5._0x5cd6f7)]!==0x1||_0x395231[_0x41e943(0xc5)][0x0][_0x41e943(0x8e)]!=='ref')return null;const _0x4d6aae=_0x395231[_0x41e943(0xc5)][0x0]['ref'],_0x8d41c2=this[_0x41e943(_0xd81f5._0x393079)][_0x41e943(_0xd81f5._0x90c046)]?.[_0x4d6aae];return _0x8d41c2??null;}async[_0x3ee4d3(0xec)](_0x198335){const _0x43f474={_0x3032a2:0xef},_0x101e37=_0x3ee4d3;return this[_0x101e37(_0x43f474._0x3032a2)](_0x101e37(0xec),[_0x198335]),Buffer['from']('fake-png');}async[_0x3ee4d3(0xee)](_0x2a0cf4){const _0x73dbcb={_0x2257b9:0xef,_0x310aa7:0xee,_0x3203e2:0xc5,_0x132824:0xab,_0x12c4de:0x8e,_0x4dbad2:0xd3,_0x1b0ee0:0xc5,_0x3cd774:0xde},_0x16adc7=_0x3ee4d3;this[_0x16adc7(_0x73dbcb._0x2257b9)](_0x16adc7(_0x73dbcb._0x310aa7),[_0x2a0cf4]);if(_0x2a0cf4[_0x16adc7(_0x73dbcb._0x3203e2)][_0x16adc7(_0x73dbcb._0x132824)]===0x1&&_0x2a0cf4[_0x16adc7(0xc5)][0x0][_0x16adc7(_0x73dbcb._0x12c4de)]===_0x16adc7(_0x73dbcb._0x4dbad2)){const _0x426fae=_0x2a0cf4[_0x16adc7(_0x73dbcb._0x1b0ee0)][0x0][_0x16adc7(0xd3)];return this[_0x16adc7(0xf3)]['outerHtmlByRef']?.[_0x426fae]??_0x16adc7(0xcd)+_0x426fae+_0x16adc7(_0x73dbcb._0x3cd774);}return'<div></div>';}},FakeContext=class{constructor(_0x1173f5,_0x26e5cb,_0x239742){const _0x427318={_0x1c3098:0xc9,_0x29a936:0xc6,_0x560d75:0xca,_0xb7dd7d:0x99},_0x3cefd4={_0x41a95e:0xd9},_0x48f87e=_0x3ee4d3;this[_0x48f87e(0x87)]=_0x1173f5,this['behavior']=_0x26e5cb,this[_0x48f87e(0xa8)]=_0x239742;const _0x1f76c5=new FakePage(_0x1173f5,_0x26e5cb,_0x239742+_0x48f87e(0xae),_0x26e5cb['initialUrl']??_0x48f87e(_0x427318._0x1c3098));_0x26e5cb[_0x48f87e(_0x427318._0x29a936)]&&(_0x1f76c5[_0x48f87e(0xd4)]=()=>{const _0x1b6448=_0x48f87e;this[_0x1b6448(_0x3cefd4._0x41a95e)](_0x26e5cb[_0x1b6448(0xc6)]);}),this[_0x48f87e(0xa5)]=[_0x1f76c5],this[_0x48f87e(_0x427318._0x560d75)]={..._0x26e5cb[_0x48f87e(0xad)]??{}},this[_0x48f87e(0xcc)]={..._0x26e5cb[_0x48f87e(_0x427318._0xb7dd7d)]??{}};}[_0x3ee4d3(0x87)];[_0x3ee4d3(0xf3)];['scope'];static{__name(this,_0x3ee4d3(0xb5));}['pageList'];[_0x3ee4d3(0xc7)]=0x0;['frameStack']=[];[_0x3ee4d3(0xca)];['cookieState'];['newPageListeners']=new Set();[_0x3ee4d3(0xef)](_0x6bc70,_0x3846d4){const _0x408511={_0x5d7473:0x87,_0x114bf3:0xa8},_0x7fd5=_0x3ee4d3;this[_0x7fd5(_0x408511._0x5d7473)]['push']({'scope':this[_0x7fd5(_0x408511._0x114bf3)],'method':_0x6bc70,'args':_0x3846d4});}['pages'](){const _0x494481={_0x3cc758:0xa5},_0x4d3866=_0x3ee4d3;return this[_0x4d3866(_0x494481._0x3cc758)];}[_0x3ee4d3(0xd0)](){const _0x3cae4a={_0x3854af:0xc7,_0x44d38d:0xd2,_0x196689:0xc7},_0x433e88=_0x3ee4d3,_0xd2a027=this['pageList'][this[_0x433e88(_0x3cae4a._0x3854af)]];if(!_0xd2a027)throw new DriverError(_0x433e88(_0x3cae4a._0x44d38d),{'activeIdx':this[_0x433e88(_0x3cae4a._0x196689)]});return _0xd2a027;}[_0x3ee4d3(0xcf)](){const _0x4406e1={_0x1cfe1c:0xcf},_0x364d16=_0x3ee4d3;return this['behavior'][_0x364d16(_0x4406e1._0x1cfe1c)]??[];}[_0x3ee4d3(0xa3)](){const _0x197886=_0x3ee4d3;return this[_0x197886(0xf3)][_0x197886(0xa3)]??[];}async[_0x3ee4d3(0xc4)](_0x542e46){const _0x13f0d3={_0x13f046:0xab},_0x4ad64c=_0x3ee4d3;this[_0x4ad64c(0xef)]('setActivePage',[_0x542e46]);if(_0x542e46<0x0||_0x542e46>=this['pageList'][_0x4ad64c(0xab)])throw new DriverError(_0x4ad64c(0xc8),{'index':_0x542e46,'available':this['pageList'][_0x4ad64c(0xab)]});this['activeIdx']=_0x542e46,this['frameStack'][_0x4ad64c(_0x13f0d3._0x13f046)]=0x0;}[_0x3ee4d3(0xed)](_0x2eaabd){const _0x5f5aa7=_0x3ee4d3;return subscribe(this[_0x5f5aa7(0xc3)],_0x2eaabd);}[_0x3ee4d3(0xd9)](_0x3bbddd){const _0x7acd83={_0x44b6a0:0xbb,_0x2bdab8:0xab,_0x22323d:0x87,_0x1feff3:0xa5,_0x540cf6:0xc3},_0x75a475=_0x3ee4d3,_0x251c21=this[_0x75a475(0xa8)]+_0x75a475(_0x7acd83._0x44b6a0)+this[_0x75a475(0xa5)][_0x75a475(_0x7acd83._0x2bdab8)],_0x2bc245=new FakePage(this[_0x75a475(_0x7acd83._0x22323d)],this['behavior'],_0x251c21,_0x3bbddd);this['pageList'][_0x75a475(0xce)](_0x2bc245);const _0x668062=this[_0x75a475(_0x7acd83._0x1feff3)][_0x75a475(_0x7acd83._0x2bdab8)]-0x1;for(const _0xb9d3f5 of this[_0x75a475(_0x7acd83._0x540cf6)]){try{_0xb9d3f5({'index':_0x668062,'url':_0x3bbddd});}catch{}}return _0x668062;}[_0x3ee4d3(0x9a)](_0x2aec07){const _0x49ea45={_0x524242:0xa5},_0x45b2be=_0x3ee4d3;if(_0x2aec07<0x0||_0x2aec07>=this[_0x45b2be(_0x49ea45._0x524242)][_0x45b2be(0xab)])throw new DriverError(_0x45b2be(0xc8),{'index':_0x2aec07,'available':this['pageList'][_0x45b2be(0xab)]});this[_0x45b2be(0xa5)]['splice'](_0x2aec07,0x1);}async[_0x3ee4d3(0xd5)](_0x2290ce){const _0xfbe989={_0x3b320f:0xef,_0x1b7fde:0xdb},_0x57e7e9=_0x3ee4d3;this[_0x57e7e9(_0xfbe989._0x3b320f)](_0x57e7e9(0xd5),[_0x2290ce]);if(!_0x2290ce[_0x57e7e9(0xc5)][_0x57e7e9(0xab)])throw new LocatorError(_0x57e7e9(0x98),{'locator':_0x2290ce});this[_0x57e7e9(_0xfbe989._0x1b7fde)][_0x57e7e9(0xce)](_0x2290ce);}async['exitFrame'](){const _0x2c3366={_0x2657d7:0xf5},_0x5a0fc9=_0x3ee4d3;this[_0x5a0fc9(0xef)]('exitFrame',[]);if(this[_0x5a0fc9(0xdb)]['length']===0x0)throw new DriverError(_0x5a0fc9(_0x2c3366._0x2657d7),{});this['frameStack'][_0x5a0fc9(0xaf)]();}async[_0x3ee4d3(0x8c)](_0xe5efe2,_0x51b75d){const _0x5bef73={_0x19ad86:0x8c,_0x4f8783:0xca},_0x3d7c1b=_0x3ee4d3;this[_0x3d7c1b(0xef)](_0x3d7c1b(_0x5bef73._0x19ad86),[_0xe5efe2,_0x51b75d]),this[_0x3d7c1b(_0x5bef73._0x4f8783)][_0xe5efe2]=_0x51b75d;}async[_0x3ee4d3(0x9c)](_0x23a1a4){const _0x201b39=_0x3ee4d3;return this['record']('getLocalStorage',[_0x23a1a4]),this[_0x201b39(0xca)][_0x23a1a4]??null;}async['setCookie'](_0x3ee2d3,_0x1205a4,_0x259516){const _0x52651e={_0xde8c30:0xef,_0xee960e:0xcc},_0x547a1a=_0x3ee4d3;this[_0x547a1a(_0x52651e._0xde8c30)](_0x547a1a(0xa1),[_0x3ee2d3,_0x1205a4,_0x259516]),this[_0x547a1a(_0x52651e._0xee960e)][_0x3ee2d3]=_0x1205a4;}async[_0x3ee4d3(0xcb)](_0xdbb07b){const _0x19f8d6={_0x26aeeb:0xef,_0x22bcb7:0xcb,_0x2825e8:0xcc},_0x20265e=_0x3ee4d3;return this[_0x20265e(_0x19f8d6._0x26aeeb)](_0x20265e(_0x19f8d6._0x22bcb7),[_0xdbb07b]),this[_0x20265e(_0x19f8d6._0x2825e8)][_0xdbb07b]??null;}async[_0x3ee4d3(0x92)](_0x2652f1){const _0x42765f=_0x3ee4d3;this['record'](_0x42765f(0x92),[_0x2652f1]);}async[_0x3ee4d3(0xa4)](_0x4cf225){const _0x117350=_0x3ee4d3;return this[_0x117350(0xef)]('evaluate',[_0x4cf225]),void 0x0;}async[_0x3ee4d3(0xe4)](){const _0x4c82e0=_0x3ee4d3;this[_0x4c82e0(0xef)]('close',[]);}[_0x3ee4d3(0xf0)](){const _0x3faf5d=_0x3ee4d3;return this[_0x3faf5d(0xdb)][_0x3faf5d(0xab)];}},FakeWebDriver=class{constructor(_0x45c1f7={}){const _0x4d2e73={_0x9dd4aa:0x87},_0x5d2623=_0x3ee4d3;this[_0x5d2623(0xf3)]=_0x45c1f7,this[_0x5d2623(_0x4d2e73._0x9dd4aa)]=createRecorder();}[_0x3ee4d3(0xf3)];static{__name(this,_0x3ee4d3(0xa6));}[_0x3ee4d3(0xea)]=![];['recorder'];['contexts']=[];async[_0x3ee4d3(0xdd)](_0x18ce05){const _0x2a62ae={_0x273b3b:0x87},_0xdeb408=_0x3ee4d3;this[_0xdeb408(_0x2a62ae._0x273b3b)]['push']({'scope':_0xdeb408(0xf2),'method':'launch','args':[_0x18ce05]}),this[_0xdeb408(0xea)]=!![];}async['newContext'](_0x10a385){const _0x500b54={_0x5538c1:0x87,_0x135c47:0xce,_0x5d1dda:0xea,_0x5d6efb:0x9d,_0x57d4e2:0xf3,_0x2f2322:0xaa},_0x21e7cb=_0x3ee4d3;this[_0x21e7cb(_0x500b54._0x5538c1)][_0x21e7cb(_0x500b54._0x135c47)]({'scope':_0x21e7cb(0xf2),'method':_0x21e7cb(0xbf),'args':[_0x10a385]});if(!this[_0x21e7cb(_0x500b54._0x5d1dda)])throw new DriverError(_0x21e7cb(_0x500b54._0x5d6efb),{});const _0x3addb7=new FakeContext(this[_0x21e7cb(_0x500b54._0x5538c1)],this[_0x21e7cb(_0x500b54._0x57d4e2)],'ctx'+this[_0x21e7cb(_0x500b54._0x2f2322)]['length']);return this[_0x21e7cb(0xaa)][_0x21e7cb(0xce)](_0x3addb7),_0x3addb7;}async[_0x3ee4d3(0xe4)](){const _0x435ddb={_0x1d94e8:0x87,_0x4bc078:0xe4,_0x5184cf:0xea},_0x49eb7f=_0x3ee4d3;this[_0x49eb7f(_0x435ddb._0x1d94e8)][_0x49eb7f(0xce)]({'scope':'driver','method':_0x49eb7f(_0x435ddb._0x4bc078),'args':[]}),this[_0x49eb7f(_0x435ddb._0x5184cf)]=![];}[_0x3ee4d3(0xa2)](){return void 0x0;}async[_0x3ee4d3(0xf1)](){const _0x17cb72=_0x3ee4d3;throw new DriverError(_0x17cb72(0xb1),{});}['attachExisting'](){throw new DriverError('attachExisting\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x3ee4d3(0xac)](){const _0x7d5108=_0x3ee4d3;return this[_0x7d5108(0x87)]['calls']();}['callsFor'](_0x4f95e3){const _0x3ad89d={_0x11164e:0x87},_0x18577d=_0x3ee4d3;return this[_0x18577d(_0x3ad89d._0x11164e)][_0x18577d(0xac)]()['filter'](_0x244fb4=>_0x244fb4[_0x18577d(0x88)]===_0x4f95e3);}};export{FakeWebDriver};
|