@unotest/web 0.35.2 → 0.36.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 +34 -0
- package/dist/config/schema.d.ts +18 -18
- 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/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.36.0] - 2026-09-16
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2ebdeba: A rented box now brings itself up, and a failed first update no longer takes it apart.
|
|
8
|
+
|
|
9
|
+
Two things a box could not do for itself:
|
|
10
|
+
|
|
11
|
+
- **Its `.env` was written where the box was ordered, not where it runs.** Two of the values the compose template needs belong to the machine — the path the docker daemon resolves the projects volume to, and the group that owns its socket — and neither exists when a box is ordered. They were left out, compose substituted empty strings, the run sidecar exited and every container that depends on it stayed created but never started. The box now fills both in itself, after docker is installed and before its stack is first brought up, and the project name compose runs under is written down rather than guessed from a directory name. What the template requires without a default is one list, checked against the template itself, and every writer of a box's `.env` is refused by name if it hands over an incomplete one.
|
|
12
|
+
- **A rollback could delete a box's only deployment.** Undoing an update removes the files that update introduced — correct when there is an earlier deployment behind it, destructive on a box that has never run one: the first failed update took the whole stack with it, leaving a machine with no configuration to bring up. A rollback with nothing to return to now leaves the files where they are. Either way, a box a rollback could not put back stops applying releases and says it needs an operator, instead of fetching, failing and rolling back the same release every hour.
|
|
13
|
+
|
|
14
|
+
- 3a0639a: `box status` answers for a box that never came up
|
|
15
|
+
|
|
16
|
+
A box the fleet could not build has no address, and the cloud said so by
|
|
17
|
+
sending `url: null`. The CLI reads that field as one that may be missing,
|
|
18
|
+
not as one that may be null, so the whole answer failed to parse: `box
|
|
19
|
+
status` showed neither the state of the box nor the reason it failed — in
|
|
20
|
+
the one case the command exists for.
|
|
21
|
+
|
|
22
|
+
The cloud now leaves out what it has no value for, by a single rule for the
|
|
23
|
+
whole answer rather than field by field. The CLI accepts `null` as well and
|
|
24
|
+
reads it as "no address", because it is published and meets clouds older
|
|
25
|
+
than itself. A box that failed now prints its state, the reason the fleet
|
|
26
|
+
gave, and what it is paid up to, with `--json` staying readable in the same
|
|
27
|
+
case.
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- @unotest/viewer@0.36.0
|
|
32
|
+
- @unotest/core@0.36.0
|
|
33
|
+
- @unotest/dsl@0.36.0
|
|
34
|
+
- @unotest/grounder-client@0.36.0
|
|
35
|
+
- @unotest/protocol@0.36.0
|
|
36
|
+
|
|
3
37
|
## [0.35.2] - 2026-09-16
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -30,10 +30,10 @@ declare const RetryConfigSchema: z.ZodObject<{
|
|
|
30
30
|
on: z.ZodArray<z.ZodEnum<["transient", "network", "crash"]>, "many">;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
count: number;
|
|
33
|
-
on: ("
|
|
33
|
+
on: ("transient" | "network" | "crash")[];
|
|
34
34
|
}, {
|
|
35
35
|
count: number;
|
|
36
|
-
on: ("
|
|
36
|
+
on: ("transient" | "network" | "crash")[];
|
|
37
37
|
}>;
|
|
38
38
|
type RetryConfig = z.infer<typeof RetryConfigSchema>;
|
|
39
39
|
declare const FailureBundleConfigSchema: z.ZodObject<{
|
|
@@ -215,15 +215,15 @@ declare const WebServerConfigSchema: z.ZodObject<{
|
|
|
215
215
|
/** How long to wait for the URL to come up after spawning. */
|
|
216
216
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
217
217
|
}, "strip", z.ZodTypeAny, {
|
|
218
|
-
url: string;
|
|
219
|
-
timeoutMs: number;
|
|
220
218
|
command: string;
|
|
219
|
+
url: string;
|
|
221
220
|
reuseExistingServer: boolean;
|
|
221
|
+
timeoutMs: number;
|
|
222
222
|
}, {
|
|
223
|
-
url: string;
|
|
224
223
|
command: string;
|
|
225
|
-
|
|
224
|
+
url: string;
|
|
226
225
|
reuseExistingServer?: boolean | undefined;
|
|
226
|
+
timeoutMs?: number | undefined;
|
|
227
227
|
}>;
|
|
228
228
|
type WebServerConfig = z.infer<typeof WebServerConfigSchema>;
|
|
229
229
|
declare const UnotestConfigSchema: z.ZodObject<{
|
|
@@ -249,15 +249,15 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
249
249
|
/** How long to wait for the URL to come up after spawning. */
|
|
250
250
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
251
251
|
}, "strip", z.ZodTypeAny, {
|
|
252
|
-
url: string;
|
|
253
|
-
timeoutMs: number;
|
|
254
252
|
command: string;
|
|
253
|
+
url: string;
|
|
255
254
|
reuseExistingServer: boolean;
|
|
255
|
+
timeoutMs: number;
|
|
256
256
|
}, {
|
|
257
|
-
url: string;
|
|
258
257
|
command: string;
|
|
259
|
-
|
|
258
|
+
url: string;
|
|
260
259
|
reuseExistingServer?: boolean | undefined;
|
|
260
|
+
timeoutMs?: number | undefined;
|
|
261
261
|
}>>;
|
|
262
262
|
browsers: z.ZodArray<z.ZodEnum<["chromium", "firefox", "webkit"]>, "many">;
|
|
263
263
|
channel: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"chrome">, z.ZodLiteral<"msedge">, z.ZodLiteral<"chrome-beta">, z.ZodNull]>>;
|
|
@@ -276,10 +276,10 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
276
276
|
on: z.ZodArray<z.ZodEnum<["transient", "network", "crash"]>, "many">;
|
|
277
277
|
}, "strip", z.ZodTypeAny, {
|
|
278
278
|
count: number;
|
|
279
|
-
on: ("
|
|
279
|
+
on: ("transient" | "network" | "crash")[];
|
|
280
280
|
}, {
|
|
281
281
|
count: number;
|
|
282
|
-
on: ("
|
|
282
|
+
on: ("transient" | "network" | "crash")[];
|
|
283
283
|
}>;
|
|
284
284
|
failureBundle: z.ZodObject<{
|
|
285
285
|
/** Tier 1 is always on by D-16. Schema lock — not user-toggleable. */
|
|
@@ -461,7 +461,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
461
461
|
};
|
|
462
462
|
retry: {
|
|
463
463
|
count: number;
|
|
464
|
-
on: ("
|
|
464
|
+
on: ("transient" | "network" | "crash")[];
|
|
465
465
|
};
|
|
466
466
|
failureBundle: {
|
|
467
467
|
tier1: true;
|
|
@@ -508,10 +508,10 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
508
508
|
};
|
|
509
509
|
baseUrl?: string | undefined;
|
|
510
510
|
webServer?: {
|
|
511
|
-
url: string;
|
|
512
|
-
timeoutMs: number;
|
|
513
511
|
command: string;
|
|
512
|
+
url: string;
|
|
514
513
|
reuseExistingServer: boolean;
|
|
514
|
+
timeoutMs: number;
|
|
515
515
|
} | undefined;
|
|
516
516
|
channel?: "chrome" | "msedge" | "chrome-beta" | null | undefined;
|
|
517
517
|
storageState?: string | undefined;
|
|
@@ -523,7 +523,7 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
523
523
|
};
|
|
524
524
|
retry: {
|
|
525
525
|
count: number;
|
|
526
|
-
on: ("
|
|
526
|
+
on: ("transient" | "network" | "crash")[];
|
|
527
527
|
};
|
|
528
528
|
failureBundle: {
|
|
529
529
|
tier2: boolean;
|
|
@@ -564,10 +564,10 @@ declare const UnotestConfigSchema: z.ZodObject<{
|
|
|
564
564
|
};
|
|
565
565
|
baseUrl?: string | undefined;
|
|
566
566
|
webServer?: {
|
|
567
|
-
url: string;
|
|
568
567
|
command: string;
|
|
569
|
-
|
|
568
|
+
url: string;
|
|
570
569
|
reuseExistingServer?: boolean | undefined;
|
|
570
|
+
timeoutMs?: number | undefined;
|
|
571
571
|
} | undefined;
|
|
572
572
|
channel?: "chrome" | "msedge" | "chrome-beta" | null | undefined;
|
|
573
573
|
storageState?: string | undefined;
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x13ebbd=_0x4c50;(function(_0x541195,_0x4eac01){var _0x2fe752={_0x462be5:0x178,_0x4b0de2:0x162,_0x2a8d31:0x14b,_0x1d112e:0x14d,_0x588b0e:0x154,_0x4f0741:0x157,_0x12a20b:0x15a},_0x1b9c20=_0x4c50,_0x217e72=_0x541195();while(!![]){try{var _0x2fdd8f=parseInt(_0x1b9c20(_0x2fe752._0x462be5))/0x1*(parseInt(_0x1b9c20(0x17f))/0x2)+parseInt(_0x1b9c20(_0x2fe752._0x4b0de2))/0x3+-parseInt(_0x1b9c20(_0x2fe752._0x2a8d31))/0x4*(parseInt(_0x1b9c20(_0x2fe752._0x1d112e))/0x5)+-parseInt(_0x1b9c20(0x185))/0x6*(parseInt(_0x1b9c20(0x169))/0x7)+-parseInt(_0x1b9c20(0x152))/0x8*(-parseInt(_0x1b9c20(0x16c))/0x9)+-parseInt(_0x1b9c20(_0x2fe752._0x588b0e))/0xa*(parseInt(_0x1b9c20(_0x2fe752._0x4f0741))/0xb)+parseInt(_0x1b9c20(_0x2fe752._0x12a20b))/0xc;if(_0x2fdd8f===_0x4eac01)break;else _0x217e72['push'](_0x217e72['shift']());}catch(_0x29ab6c){_0x217e72['push'](_0x217e72['shift']());}}}(_0x372c,0x74294));import{z}from'zod';var BrowserSchema=z[_0x13ebbd(0x176)]([_0x13ebbd(0x14c),_0x13ebbd(0x163),_0x13ebbd(0x14f)]),BrowserChannelSchema=z[_0x13ebbd(0x17d)]([z[_0x13ebbd(0x16a)]('chrome'),z['literal'](_0x13ebbd(0x166)),z[_0x13ebbd(0x16a)]('chrome-beta'),z[_0x13ebbd(0x158)]()])[_0x13ebbd(0x16b)](),ViewportSchema=z[_0x13ebbd(0x168)]({'width':z[_0x13ebbd(0x175)]()[_0x13ebbd(0x15c)]()['positive'](),'height':z['number']()[_0x13ebbd(0x15c)]()[_0x13ebbd(0x172)]()}),RetryReasonSchema=z[_0x13ebbd(0x176)](['transient','network',_0x13ebbd(0x17c)]),RetryConfigSchema=z[_0x13ebbd(0x168)]({'count':z[_0x13ebbd(0x175)]()[_0x13ebbd(0x15c)]()[_0x13ebbd(0x15d)](0x0)['max'](0xa),'on':z[_0x13ebbd(0x165)](RetryReasonSchema)}),FailureBundleConfigSchema=z[_0x13ebbd(0x168)]({'tier1':z[_0x13ebbd(0x16a)](!![])[_0x13ebbd(0x16d)](!![]),'tier2':z['boolean'](),'tier3':z['object']({'network':z['boolean'](),'video':z[_0x13ebbd(0x182)]()}),'retention':z[_0x13ebbd(0x168)]({'runs':z['number']()['int']()[_0x13ebbd(0x172)](),'days':z[_0x13ebbd(0x175)]()[_0x13ebbd(0x15c)]()[_0x13ebbd(0x172)]()}),'storageDir':z[_0x13ebbd(0x181)]()[_0x13ebbd(0x15d)](0x1)}),DialogPolicySchema=z['enum']([_0x13ebbd(0x17a),'dismiss',_0x13ebbd(0x183)]),LinterRuleIdSchema=z[_0x13ebbd(0x176)](['lint:deep-css','lint:xpath',_0x13ebbd(0x16f),'lint:pause-explicit',_0x13ebbd(0x184),'lint:evaluate-discouraged',_0x13ebbd(0x17b),'lint:mustache-in-dsl','lint:goto-concat','lint:regex-invalid',_0x13ebbd(0x160),_0x13ebbd(0x177),'lint:lint-ok-missing-reason','lint:flow-returns-value',_0x13ebbd(0x174),_0x13ebbd(0x167),_0x13ebbd(0x15b),'validator:unknown-function','validator:arity',_0x13ebbd(0x150),_0x13ebbd(0x159),_0x13ebbd(0x14e),_0x13ebbd(0x155),_0x13ebbd(0x179),_0x13ebbd(0x161),'validator:if-shape',_0x13ebbd(0x173),'validator:unsupported-statement',_0x13ebbd(0x186),_0x13ebbd(0x16e),_0x13ebbd(0x15f),_0x13ebbd(0x171),_0x13ebbd(0x153)]),LinterSeveritySchema=z[_0x13ebbd(0x176)]([_0x13ebbd(0x151),_0x13ebbd(0x170),_0x13ebbd(0x17e)]),LinterConfigSchema=z[_0x13ebbd(0x168)]({'enabled':z[_0x13ebbd(0x182)](),'rules':z[_0x13ebbd(0x156)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=z[_0x13ebbd(0x168)]({'enabled':z[_0x13ebbd(0x182)]()[_0x13ebbd(0x16d)](!![]),'concurrency':z[_0x13ebbd(0x175)]()[_0x13ebbd(0x15c)]()[_0x13ebbd(0x172)]()[_0x13ebbd(0x16d)](0x1)}),ScheduleSchema=z[_0x13ebbd(0x168)]({'collection':z[_0x13ebbd(0x181)]()[_0x13ebbd(0x15d)](0x1),'cron':z[_0x13ebbd(0x181)]()['min'](0x1),'env':z[_0x13ebbd(0x181)]()[_0x13ebbd(0x15d)](0x1)['optional'](),'prepare':z[_0x13ebbd(0x181)]()[_0x13ebbd(0x15d)](0x1)[_0x13ebbd(0x16b)]()}),McpConfigSchema=z[_0x13ebbd(0x168)]({'transport':z['literal'](_0x13ebbd(0x15e))}),SandboxConfigSchema=z[_0x13ebbd(0x168)]({'shellCwd':z['string']()['optional'](),'shellTimeoutMs':z[_0x13ebbd(0x175)]()[_0x13ebbd(0x15c)]()['positive']()['optional'](),'exportSecrets':z['array'](z[_0x13ebbd(0x181)]())[_0x13ebbd(0x16b)](),'database':z[_0x13ebbd(0x181)]()[_0x13ebbd(0x16b)](),'apiBaseUrl':z[_0x13ebbd(0x181)]()['url']()[_0x13ebbd(0x16b)](),'uploadDir':z[_0x13ebbd(0x181)]()[_0x13ebbd(0x16b)]()}),WebServerConfigSchema=z[_0x13ebbd(0x168)]({'command':z[_0x13ebbd(0x181)]()[_0x13ebbd(0x15d)](0x1),'url':z[_0x13ebbd(0x181)]()[_0x13ebbd(0x180)](),'reuseExistingServer':z[_0x13ebbd(0x182)]()[_0x13ebbd(0x16d)](!![]),'timeoutMs':z[_0x13ebbd(0x175)]()['int']()[_0x13ebbd(0x172)]()[_0x13ebbd(0x16d)](0xea60)}),UnotestConfigSchema=z['object']({'baseUrl':z[_0x13ebbd(0x181)]()[_0x13ebbd(0x180)]()[_0x13ebbd(0x16b)](),'webServer':WebServerConfigSchema['optional'](),'browsers':z[_0x13ebbd(0x165)](BrowserSchema)[_0x13ebbd(0x15d)](0x1),'channel':BrowserChannelSchema,'viewport':ViewportSchema,'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':z[_0x13ebbd(0x181)]()['optional'](),'testDir':z[_0x13ebbd(0x181)]()[_0x13ebbd(0x15d)](0x1),'helpersDir':z[_0x13ebbd(0x181)]()[_0x13ebbd(0x15d)](0x1),'defaultTimeoutMs':z['number']()[_0x13ebbd(0x15c)]()[_0x13ebbd(0x172)](),'defaultNavigationTimeoutMs':z[_0x13ebbd(0x175)]()[_0x13ebbd(0x15c)]()[_0x13ebbd(0x172)](),'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':z[_0x13ebbd(0x165)](ScheduleSchema)[_0x13ebbd(0x16d)]([]),'sandbox':SandboxConfigSchema}),DEFAULT_CONFIG={'browsers':[_0x13ebbd(0x14c)],'viewport':{'width':0x500,'height':0x2d0},'retry':{'count':0x0,'on':[_0x13ebbd(0x164)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':'.unotest/failures'},'dialogPolicy':_0x13ebbd(0x17a),'testDir':'unotest/e2e','helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x13ebbd(0x170),'lint:xpath':_0x13ebbd(0x170),'lint:obfuscated-class':_0x13ebbd(0x170),'lint:pause-explicit':_0x13ebbd(0x170),'lint:disambig-by-index':_0x13ebbd(0x151),'lint:evaluate-discouraged':'warn','lint:scenario-in-root':_0x13ebbd(0x17e),'lint:mustache-in-dsl':_0x13ebbd(0x17e),'lint:goto-concat':'warn','lint:regex-invalid':_0x13ebbd(0x17e),'lint:echo-assert':'warn','lint:lint-ok-missing-reason':_0x13ebbd(0x170),'lint:flow-returns-value':_0x13ebbd(0x170),'lint:legacy-layout':_0x13ebbd(0x170),'lint:external-variable-undeclared':_0x13ebbd(0x17e),'lint:one-test-per-file':_0x13ebbd(0x170),'validator:unknown-function':_0x13ebbd(0x17e)}},'mcp':{'transport':_0x13ebbd(0x15e)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};function _0x4c50(_0x5fa879,_0x8b3189){_0x5fa879=_0x5fa879-0x14b;var _0x372c65=_0x372c();var _0x4c5009=_0x372c65[_0x5fa879];if(_0x4c50['RNGGeE']===undefined){var _0x1d1e9e=function(_0x5616b5){var _0x37b55c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x27d389='',_0x3cfb69='';for(var _0x5d3762=0x0,_0x2a42bf,_0xa0e0f2,_0x3c450e=0x0;_0xa0e0f2=_0x5616b5['charAt'](_0x3c450e++);~_0xa0e0f2&&(_0x2a42bf=_0x5d3762%0x4?_0x2a42bf*0x40+_0xa0e0f2:_0xa0e0f2,_0x5d3762++%0x4)?_0x27d389+=String['fromCharCode'](0xff&_0x2a42bf>>(-0x2*_0x5d3762&0x6)):0x0){_0xa0e0f2=_0x37b55c['indexOf'](_0xa0e0f2);}for(var _0x24a124=0x0,_0x513474=_0x27d389['length'];_0x24a124<_0x513474;_0x24a124++){_0x3cfb69+='%'+('00'+_0x27d389['charCodeAt'](_0x24a124)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3cfb69);};_0x4c50['XppIUv']=_0x1d1e9e,_0x4c50['oFPjSn']={},_0x4c50['RNGGeE']=!![];}var _0x35e273=_0x372c65[0x0],_0x65d4b0=_0x5fa879+_0x35e273,_0x34bd76=_0x4c50['oFPjSn'][_0x65d4b0];return!_0x34bd76?(_0x4c5009=_0x4c50['XppIUv'](_0x4c5009),_0x4c50['oFPjSn'][_0x65d4b0]=_0x4c5009):_0x4c5009=_0x34bd76,_0x4c5009;}export{BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,RetryConfigSchema,RetryReasonSchema,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema};function _0x372c(){var _0x326dee=['nti1nZCYmwjrCMTXBq','BgL0zxjHBa','B3b0Aw9UywW','ovDQB3fyAq','zgvMyxvSDa','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','D2fYBG','DMfSAwrHDg9YoMXPC3qTyxjN','Cg9ZAxrPDMu','DMfSAwrHDg9YoNzHCI1ZAgfWzq','BgLUDdPSzwDHy3KTBgf5B3v0','BNvTyMvY','zw51Bq','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','mJy1mZe4sfzsvxrl','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','ywnJzxb0','BgLUDdPZy2vUyxjPBY1PBI1YB290','y3jHC2G','Dw5PB24','zxjYB3i','mK1Zu2Xbzq','DxjS','C3rYAw5N','yM9VBgvHBG','BwfUDwfS','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','nKfjuMTHEa','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','mZmZmZjnsvrKq0G','y2HYB21PDw0','nJvqt3nOqxK','DMfSAwrHDg9YoNn0zxaTC2HHCgu','D2vIA2L0','DMfSAwrHDg9YoMfYzY1RAw5K','B2zM','mJaWodGWog9lq1vzEa','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','mJC1otbSDLnhrei','DMfSAwrHDg9YoM1LDgeTC2HHCgu','CMvJB3jK','odGWwLH5q1r2','BNvSBa','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','mtu3mdqYoe9KCvLQDq','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','Aw50','BwLU','C3rKAw8','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','BgLUDdPLy2HVlwfZC2vYDa','DMfSAwrHDg9YoMzVCI1ZAgfWzq','mJCYntK4mfD5t2jstW','zMLYzwzVEa','DhjHBNnPzw50','yxjYyxK','BxnLzgDL','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','B2jQzwn0'];_0x372c=function(){return _0x326dee;};return _0x372c();}
|
package/dist/driver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x46b388=_0x1c30;(function(_0x3b60d9,_0x216fe3){const _0x13fae3={_0x203667:0x163,_0x34753f:0x150,_0x1a9df6:0x15d,_0x2f1e32:0x147,_0x3fd904:0x151,_0x35da79:0x135,_0x35c7c9:0x152,_0x1db706:0x13c},_0x417fe4=_0x1c30,_0x279bd8=_0x3b60d9();while(!![]){try{const _0x32fa07=-parseInt(_0x417fe4(_0x13fae3._0x203667))/0x1*(parseInt(_0x417fe4(_0x13fae3._0x34753f))/0x2)+parseInt(_0x417fe4(_0x13fae3._0x1a9df6))/0x3*(-parseInt(_0x417fe4(_0x13fae3._0x2f1e32))/0x4)+parseInt(_0x417fe4(0x141))/0x5+parseInt(_0x417fe4(0x16e))/0x6*(parseInt(_0x417fe4(0x12f))/0x7)+parseInt(_0x417fe4(_0x13fae3._0x3fd904))/0x8*(parseInt(_0x417fe4(_0x13fae3._0x35da79))/0x9)+parseInt(_0x417fe4(_0x13fae3._0x35c7c9))/0xa+-parseInt(_0x417fe4(_0x13fae3._0x1db706))/0xb*(parseInt(_0x417fe4(0x10b))/0xc);if(_0x32fa07===_0x216fe3)break;else _0x279bd8['push'](_0x279bd8['shift']());}catch(_0x22f153){_0x279bd8['push'](_0x279bd8['shift']());}}}(_0x52a6,0x54e29));var __defProp=Object[_0x46b388(0xfd)],__name=(_0x44198d,_0x40229f)=>__defProp(_0x44198d,_0x46b388(0xf7),{'value':_0x40229f,'configurable':!![]});function subscribe(_0x3915cd,_0x2ed959){const _0x3eab77=_0x46b388;return _0x3915cd[_0x3eab77(0x10f)](_0x2ed959),()=>{const _0x584422=_0x3eab77;_0x3915cd[_0x584422(0x104)](_0x2ed959);};}__name(subscribe,_0x46b388(0x11e));import{UnotestError}from'@unotest/core';function _0x52a6(){const _0x2e0aa3=['ywrK','rMfRzvDLyKrYAxzLCG','Aw5UzxjuzxH0','C2nYB2XSsw50B1zPzxC','z290BW','Aw5ZCgvJDevSzw1LBNq','zMLSBa','AxneAxnHyMXLza','y29UBMvJDfnOyxjLzcbUB3qGC3vWCg9YDgvKigj5iezHA2vxzwjeCML2zxi','y291BNq','B3v0zxjive1m','y2HLy2TLzfn0yxrLqNLezwzHDwX0','AxnwAxnPyMXLqNLezwzHDwX0','yxr0ywnOrxHPC3rPBMC','D2fPDezVCLrLEhq','C3vIC2nYAwjL','B25bzNrLCKnSAwnR','CgfNzxm','Bgf1BMnOzwq','zw1PDezHA2vqB3b1Ca','Ag92zxi','y2fSBhngB3i','B3v0zxjiDg1SqNLszwy','Bg9JywXtDg9YywDLu3rHDgu','pgrPDJ48l2rPDJ4','zMfRzsb0AxrSzq','z29gB3j3yxjK','ywjVDxq6yMXHBMS','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','BgvUz3rO','C2f2zvn0B3jHz2vtDgf0zq','zxjYB3jpBK5LEhrby3rPB24','ntyYmuzrs2vdsq','BMv0D29YA0vUDhjPzxm','y2HLy2TLzfn0yxrL','yMvOyxzPB3i','DxjS','Aw5WDxrwywX1zuj5rgvMyxvSDa','mZzQELrkCxi','z2v0qxr0CMLIDxrL','Bgf1BMnO','D2fPDezVCLvYBa','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','AxneAxnHyMXLzej5rgvMyxvSDa','tg9JyxrVCKvYCM9Y','mta2otC3mNbVwMnlva','zNjHBwvtDgfJAW','DxbSB2fKrMLSzq','Dw5JAgvJAW','C3bSAwnL','mJa1nta1nuPdsxLlra','C2nVCgu','Bwf5yMvuAhjVDW','Dgv4DenVBNrLBNq','zNjVBq','iJ48l2rPDJ4','mJC1mtyWoe9ozLLYDW','C2v0qwn0AxzLugfNzq','zhjHz0fUzerYB3a','Aw5WDxrwywX1zq','y2XPCgjVyxjKugfZDgu','z2v0q29VA2LL','Cg9W','AxnwAxnPyMXL','BMv3q29UDgv4Da','mtqWmZHHuNjrEeO','mteYmtK2oeLuzwHAqG','ndGXmty5meruy1PPvG','zw50zxjgCMfTzq','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','DhLWzq','rMfRzvbHz2u','ChvZAa','y2XVC2vgywTLugfNzq','y2HLy2S','zNvUy3rPB24','CMvJB3jKzxi','zMfRzs1WBMC','m2zsswfHAW','C2nYzwvUC2HVDevSzw1LBNq','y291BNrcEurLzMf1Bhq','Bwv0Ag9K','y29UDgv4Dhm','y3r4','nZvZBen1C1K','CgfNzuXPC3q','y29UBMvJDfnOyxjLza','y29UC29SzuvUDhjPzxm','CMvSB2fK','Cg9WDxbpBKnSAwnR','A2LUza','C2nYzwvUC2HVDej5DgvZ','BMv3ugfNzuXPC3rLBMvYCW','zxzHBhvHDgvszxn1Bhq','CMvM','mZCYmeP0A1LjrG','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','CMvJB3jK','zwXLBwvUDeHPBNrcEvjLzG','BMfTzq','zxzHBhvHDgu','lNbHz2u','z29cywnR','ChjLC3m','y3jLyxrLuMvJB3jKzxi','zgvMAw5LuhjVCgvYDhK','C3rLChm','zhjPDMvY','zxHPDezYyw1L','Dgv4DenVBNrLBNrcEurLzMf1Bhq','z2v0tg9JywXtDg9YywDL','C2v0q29VA2LL','zgvSzxrL','y2XVC2u','zMLSDgvY','y29VA2LLu3rHDgu','Bg9JywXtDg9YywDL','y2fSBhm','C2v0tg9JywXtDg9YywDL','ndHXsNDrt3i','C2nYzwvUC2HVDa','y3vYCMvUDfvYBa','ywn0AxzLswr4'];_0x52a6=function(){return _0x2e0aa3;};return _0x52a6();}var DriverError=class extends UnotestError{static{__name(this,'DriverError');}},LocatorError=class extends UnotestError{static{__name(this,_0x46b388(0x13b));}};function createRecorder(){const _0xe5eae7=_0x46b388,_0x351f00=[];let _0x35631f=0x0;return{'push':__name(_0x60f7c7=>_0x351f00[_0xe5eae7(0x157)]({..._0x60f7c7,'seq':_0x35631f++}),_0xe5eae7(0x157)),'calls':__name(()=>_0x351f00,_0xe5eae7(0x109))};}__name(createRecorder,_0x46b388(0xfc));function _0x1c30(_0x230f9e,_0x423dfe){_0x230f9e=_0x230f9e-0xf6;const _0x52a6df=_0x52a6();let _0x1c30b2=_0x52a6df[_0x230f9e];if(_0x1c30['pIYUPk']===undefined){var _0x317ee6=function(_0x2a0bde){const _0x657e3f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44198d='',_0x40229f='';for(let _0x3915cd=0x0,_0x2ed959,_0x351f00,_0x35631f=0x0;_0x351f00=_0x2a0bde['charAt'](_0x35631f++);~_0x351f00&&(_0x2ed959=_0x3915cd%0x4?_0x2ed959*0x40+_0x351f00:_0x351f00,_0x3915cd++%0x4)?_0x44198d+=String['fromCharCode'](0xff&_0x2ed959>>(-0x2*_0x3915cd&0x6)):0x0){_0x351f00=_0x657e3f['indexOf'](_0x351f00);}for(let _0x60f7c7=0x0,_0x157a3a=_0x44198d['length'];_0x60f7c7<_0x157a3a;_0x60f7c7++){_0x40229f+='%'+('00'+_0x44198d['charCodeAt'](_0x60f7c7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x40229f);};_0x1c30['lyAKJG']=_0x317ee6,_0x1c30['WgGVVd']={},_0x1c30['pIYUPk']=!![];}const _0x33a985=_0x52a6df[0x0],_0x1b7bf9=_0x230f9e+_0x33a985,_0x2f8117=_0x1c30['WgGVVd'][_0x1b7bf9];return!_0x2f8117?(_0x1c30b2=_0x1c30['lyAKJG'](_0x1c30b2),_0x1c30['WgGVVd'][_0x1b7bf9]=_0x1c30b2):_0x1c30b2=_0x2f8117,_0x1c30b2;}var FakePage=class{constructor(_0x157a3a,_0x42814a,_0xcff8d2,_0xad7aa2){const _0x592386={_0x3140b4:0x15b,_0x9178dd:0x142,_0x562cff:0x10d},_0xfe9217=_0x46b388;this[_0xfe9217(_0x592386._0x3140b4)]=_0x157a3a,this['behavior']=_0x42814a,this[_0xfe9217(_0x592386._0x9178dd)]=_0xcff8d2,this[_0xfe9217(_0x592386._0x562cff)]=_0xad7aa2;}[_0x46b388(0x15b)];['behavior'];['scope'];static{__name(this,_0x46b388(0x156));}[_0x46b388(0x10d)];[_0x46b388(0x11f)];[_0x46b388(0x170)](_0x51d3f0,_0x10812d){const _0x455a3f={_0x37215c:0x15b,_0x300fab:0x142},_0x709499=_0x46b388;this[_0x709499(_0x455a3f._0x37215c)]['push']({'scope':this[_0x709499(_0x455a3f._0x300fab)],'method':_0x51d3f0,'args':_0x10812d});}[_0x46b388(0x143)](){const _0x1bf21a={_0x595a00:0x132,_0x3c7665:0x132},_0x19725c=_0x46b388;if(this[_0x19725c(_0x1bf21a._0x595a00)][_0x19725c(0x12e)]){const _0x471c37=this[_0x19725c(_0x1bf21a._0x3c7665)]['errorOnNextAction'];this['behavior']['errorOnNextAction']=void 0x0;throw _0x471c37;}}[_0x46b388(0x133)](){return this['currentUrl'];}async['title'](){const _0x90277a={_0x5d2bd0:0x128},_0x52fcd8=_0x46b388;return this['record']('title',[]),_0x52fcd8(_0x90277a._0x5d2bd0);}async['click'](_0x258408,_0x4ea1a9){const _0x26bbec=_0x46b388;this[_0x26bbec(0x170)]('click',[_0x258408,_0x4ea1a9]),this[_0x26bbec(0x143)](),this[_0x26bbec(0x11f)]?.();}async['doubleClick'](_0x112962,_0x3cee2c){const _0x498052=_0x46b388;this[_0x498052(0x170)]('doubleClick',[_0x112962,_0x3cee2c]),this['maybeThrow']();}async[_0x46b388(0x115)](_0x72db8a,_0xd05842,_0x3253a5){const _0x4a97bf={_0x3b401f:0x115,_0x1776ab:0x143},_0x253ce8=_0x46b388;this['record'](_0x253ce8(_0x4a97bf._0x3b401f),[_0x72db8a,_0xd05842,_0x3253a5]),this[_0x253ce8(_0x4a97bf._0x1776ab)]();}async[_0x46b388(0xfb)](_0x2296e7,_0xdf536b,_0x1c3ab5){const _0x3eeb0a={_0x5d9c86:0x143},_0x386d86=_0x46b388;this[_0x386d86(0x170)](_0x386d86(0xfb),[_0x2296e7,_0xdf536b,_0x1c3ab5]),this[_0x386d86(_0x3eeb0a._0x5d9c86)]();}async[_0x46b388(0x159)](_0x75709c,_0x26c3e2){const _0x16d365={_0x4992b1:0x170,_0x5cb437:0x159,_0x12d180:0x143},_0x458fc5=_0x46b388;this[_0x458fc5(_0x16d365._0x4992b1)](_0x458fc5(_0x16d365._0x5cb437),[_0x75709c,_0x26c3e2]),this[_0x458fc5(_0x16d365._0x12d180)]();}async[_0x46b388(0x13f)](_0x100d55,_0x17e9c9){const _0x3090a5={_0x1891ce:0x143},_0x35f49d=_0x46b388;this[_0x35f49d(0x170)]('uncheck',[_0x100d55,_0x17e9c9]),this[_0x35f49d(_0x3090a5._0x1891ce)]();}async['selectOption'](_0x3969e2,_0x4449b8,_0x491a7e){const _0x505cdb={_0x5038c9:0x143},_0x4d168b=_0x46b388;this[_0x4d168b(0x170)]('selectOption',[_0x3969e2,_0x4449b8,_0x491a7e]),this[_0x4d168b(_0x505cdb._0x5038c9)]();}async[_0x46b388(0x123)](_0x3f84bb,_0x93a8c5){const _0x1e3edd=_0x46b388;this[_0x1e3edd(0x170)](_0x1e3edd(0x123),[_0x3f84bb,_0x93a8c5]),this['maybeThrow']();}async[_0x46b388(0x112)](_0x5d4359){const _0x4a2b35=_0x46b388;this['record'](_0x4a2b35(0x112),[_0x5d4359]),this[_0x4a2b35(0x143)]();}async['dragAndDrop'](_0x27d03b,_0x253526,_0x36ca30){const _0x4a0ffc={_0xcb59a4:0x143},_0x5ec085=_0x46b388;this[_0x5ec085(0x170)](_0x5ec085(0x149),[_0x27d03b,_0x253526,_0x36ca30]),this[_0x5ec085(_0x4a0ffc._0xcb59a4)]();}async[_0x46b388(0x13e)](_0x935011,_0x3e1def){const _0x195937={_0x38c0ca:0x170},_0x2e1933=_0x46b388;this[_0x2e1933(_0x195937._0x38c0ca)]('uploadFile',[_0x935011,_0x3e1def]),this['maybeThrow']();}async[_0x46b388(0x14b)](_0x3853b3,_0x1eea64){const _0x1944e6={_0x3d8ef7:0x143},_0x249b12=_0x46b388;this['record'](_0x249b12(0x14b),[_0x3853b3,_0x1eea64]),this[_0x249b12(_0x1944e6._0x3d8ef7)]();}async[_0x46b388(0x118)](_0xc025ee){const _0x309c9c={_0x4752bb:0x132,_0x2fbdf3:0x15f},_0x81b9d4=_0x46b388;return this['record'](_0x81b9d4(0x118),[_0xc025ee]),this[_0x81b9d4(_0x309c9c._0x4752bb)][_0x81b9d4(_0x309c9c._0x2fbdf3)]??0x1;}async[_0x46b388(0x144)](_0x352238){const _0x347748={_0x24d624:0x170,_0x8f6140:0x132},_0x64377c=_0x46b388;return this[_0x64377c(_0x347748._0x24d624)]('textContent',[_0x352238]),this[_0x64377c(_0x347748._0x8f6140)][_0x64377c(0x101)]??'';}async[_0x46b388(0x111)](_0xeb7b4e){const _0x125060={_0x5bc9d9:0x111,_0x4f2099:0x132,_0x974b27:0x101},_0x46a45a=_0x46b388;return this[_0x46a45a(0x170)](_0x46a45a(_0x125060._0x5bc9d9),[_0xeb7b4e]),this['behavior']['innerTextByDefault']??this[_0x46a45a(_0x125060._0x4f2099)][_0x46a45a(_0x125060._0x974b27)]??'';}async[_0x46b388(0x14a)](_0x1eea00){const _0x321cbc={_0x2da79a:0x134},_0x5598c3=_0x46b388;return this[_0x5598c3(0x170)]('inputValue',[_0x1eea00]),this[_0x5598c3(0x132)][_0x5598c3(_0x321cbc._0x2da79a)]??'';}async['checkedState'](_0x39a9b7){const _0x4a9032={_0x4d7eec:0x170,_0xf140b4:0x132,_0x224e38:0x11a},_0x39c57d=_0x46b388;return this[_0x39c57d(_0x4a9032._0x4d7eec)](_0x39c57d(0x131),[_0x39a9b7]),this[_0x39c57d(_0x4a9032._0xf140b4)][_0x39c57d(_0x4a9032._0x224e38)]??null;}async[_0x46b388(0x14e)](_0x116ffe){const _0x5b7e8c={_0x4d79a9:0x170},_0x19291d=_0x46b388;return this[_0x19291d(_0x5b7e8c._0x4d79a9)](_0x19291d(0x14e),[_0x116ffe]),this['behavior'][_0x19291d(0x11b)]??!![];}async[_0x46b388(0x116)](_0x190efc){const _0x508255={_0xd6901b:0x170,_0x25f74f:0x116,_0x1e8eb0:0x132},_0x426a5a=_0x46b388;return this[_0x426a5a(_0x508255._0xd6901b)](_0x426a5a(_0x508255._0x25f74f),[_0x190efc]),this[_0x426a5a(_0x508255._0x1e8eb0)][_0x426a5a(0x13a)]??![];}async[_0x46b388(0x136)](_0x18b32c,_0x33f9e1){const _0xd2f741={_0x4feb31:0x136},_0x2a5958=_0x46b388;return this[_0x2a5958(0x170)](_0x2a5958(_0xd2f741._0x4feb31),[_0x18b32c,_0x33f9e1]),this[_0x2a5958(0x132)]['attributesByDefault']?.[_0x33f9e1]??null;}async['waitFor'](_0x35652e,_0x5e5b0f){const _0x283ba4={_0x355deb:0x170},_0x4f8bd8=_0x46b388;this[_0x4f8bd8(_0x283ba4._0x355deb)]('waitFor',[_0x35652e,_0x5e5b0f]);}async[_0x46b388(0x138)](_0x33e3ec,_0x30b739){const _0x5a947e=_0x46b388;this[_0x5a947e(0x170)](_0x5a947e(0x138),[_0x33e3ec,_0x30b739]);}async['waitForText'](_0x529311,_0x2211e0){const _0x1fd571=_0x46b388;this[_0x1fd571(0x170)](_0x1fd571(0x11d),[_0x529311,_0x2211e0]);}async['waitForNavigation'](_0x153975){const _0x44db09=_0x46b388;this[_0x44db09(0x170)]('waitForNavigation',[_0x153975]);}async['waitForLoadState'](_0x337240,_0x41a934){const _0x18afe2={_0x402426:0x170},_0x417367=_0x46b388;this[_0x417367(_0x18afe2._0x402426)]('waitForLoadState',[_0x337240,_0x41a934]);}async[_0x46b388(0x113)](_0x521bb1,_0xc6072b){const _0xbdb8d5={_0x30a6fd:0x113},_0x4e4603=_0x46b388;this[_0x4e4603(0x170)](_0x4e4603(_0xbdb8d5._0x30a6fd),[_0x521bb1,_0xc6072b]),this['currentUrl']=_0x521bb1;}async[_0x46b388(0x167)](_0x5e34dc){const _0x157a4d={_0x3ed6ad:0x170},_0x272d17=_0x46b388;this[_0x272d17(_0x157a4d._0x3ed6ad)]('reload',[_0x5e34dc]);}async[_0x46b388(0xfa)](_0x226b5e){const _0x1e8e0a=_0x46b388;this[_0x1e8e0a(0x170)](_0x1e8e0a(0xfa),[_0x226b5e]);}async[_0x46b388(0x129)](_0x2a02fe){const _0x21ba06={_0x33519b:0x170},_0x2acd60=_0x46b388;this[_0x2acd60(_0x21ba06._0x33519b)](_0x2acd60(0x129),[_0x2a02fe]);}async[_0x46b388(0xf8)](_0x10214d){const _0x7ec2eb={_0x355cbd:0x16c},_0x5a220e=_0x46b388;return this['record'](_0x5a220e(0xf8),[_0x10214d]),this[_0x5a220e(0x132)][_0x5a220e(_0x7ec2eb._0x355cbd)];}async['evaluateOnLocator'](_0xc3c391,_0xba97e4){return this['record']('evaluateOnLocator',[_0xc3c391,_0xba97e4]),void 0x0;}async['inspectElement'](_0x157b8d){const _0x3402a1={_0x1ff0db:0x170,_0x24c3ad:0xfe,_0x3c25af:0x16d,_0x2f4f9e:0xf6},_0x4403e6=_0x46b388;this[_0x4403e6(_0x3402a1._0x1ff0db)](_0x4403e6(0x114),[_0x157b8d]);if(_0x157b8d[_0x4403e6(0xfe)]['length']!==0x1||_0x157b8d[_0x4403e6(_0x3402a1._0x24c3ad)][0x0][_0x4403e6(0x169)]!==_0x4403e6(_0x3402a1._0x3c25af))return null;const _0x4da694=_0x157b8d[_0x4403e6(0xfe)][0x0][_0x4403e6(0x16d)],_0x4fe2b8=this[_0x4403e6(0x132)][_0x4403e6(_0x3402a1._0x2f4f9e)]?.[_0x4da694];return _0x4fe2b8??null;}async[_0x46b388(0x10c)](_0x20d448){const _0x332183={_0x500ef3:0x10c,_0x26d459:0x16a},_0x31ff77=_0x46b388;return this[_0x31ff77(0x170)](_0x31ff77(_0x332183._0x500ef3),[_0x20d448]),this[_0x31ff77(_0x332183._0x26d459)](_0x20d448?.['type']);}async[_0x46b388(0x15e)](_0x20bc7a,_0x58fff4){const _0x4f21ad={_0x4c3687:0x16a},_0x4e63c6=_0x46b388;return this['record'](_0x4e63c6(0x15e),[_0x20bc7a,_0x58fff4]),this[_0x4e63c6(_0x4f21ad._0x4c3687)](_0x58fff4?.[_0x4e63c6(0x155)]);}[_0x46b388(0x16a)](_0x6073c2){const _0x1726f5={_0x218569:0x132,_0x1b9580:0x145,_0xd73d2f:0x15a},_0x2d815a=_0x46b388,_0x42d12c=this[_0x2d815a(_0x1726f5._0x218569)]['screenshotBytes'];if(_0x42d12c===void 0x0)return Buffer[_0x2d815a(_0x1726f5._0x1b9580)](_0x2d815a(0x15c));return typeof _0x42d12c===_0x2d815a(_0x1726f5._0xd73d2f)?_0x42d12c(_0x6073c2):_0x42d12c;}async['outerHTML'](_0x5228fe){const _0x2ccec3={_0xbe9aed:0x119,_0x20af85:0xfe,_0x42b5ed:0x16d,_0x1a0b88:0x125,_0x35910c:0x139,_0x3fddcc:0x146,_0x584096:0x127},_0x315952=_0x46b388;this[_0x315952(0x170)](_0x315952(_0x2ccec3._0xbe9aed),[_0x5228fe]);if(_0x5228fe[_0x315952(_0x2ccec3._0x20af85)]['length']===0x1&&_0x5228fe['steps'][0x0][_0x315952(0x169)]===_0x315952(_0x2ccec3._0x42b5ed)){const _0x5dcf3e=_0x5228fe[_0x315952(0xfe)][0x0][_0x315952(_0x2ccec3._0x42b5ed)];return this['behavior'][_0x315952(_0x2ccec3._0x1a0b88)]?.[_0x5dcf3e]??_0x315952(_0x2ccec3._0x35910c)+_0x5dcf3e+_0x315952(_0x2ccec3._0x3fddcc);}return _0x315952(_0x2ccec3._0x584096);}},FakeContext=class{constructor(_0x1b7813,_0x49bafa,_0x3fc97a){const _0x16cce2={_0x5d33d9:0x15b,_0x123f7b:0x142,_0x1ff43d:0x164,_0x3f2283:0x126,_0x5d9345:0x108},_0x59ad99={_0x323dcf:0x122},_0x483f40=_0x46b388;this[_0x483f40(_0x16cce2._0x5d33d9)]=_0x1b7813,this['behavior']=_0x49bafa,this[_0x483f40(_0x16cce2._0x123f7b)]=_0x3fc97a;const _0x5f09c7=new FakePage(_0x1b7813,_0x49bafa,_0x3fc97a+'.page0',_0x49bafa['initialUrl']??_0x483f40(0x12a));_0x49bafa[_0x483f40(0x168)]&&(_0x5f09c7[_0x483f40(0x11f)]=()=>{const _0x44bfb9=_0x483f40;this[_0x44bfb9(_0x59ad99._0x323dcf)](_0x49bafa['popupOnClick']);}),this[_0x483f40(_0x16cce2._0x1ff43d)]=[_0x5f09c7],this[_0x483f40(_0x16cce2._0x3f2283)]={..._0x49bafa[_0x483f40(_0x16cce2._0x5d9345)]??{}},this['cookieState']={..._0x49bafa['cookies']??{}};}['recorder'];['behavior'];[_0x46b388(0x142)];static{__name(this,'FakeContext');}[_0x46b388(0x164)];[_0x46b388(0x10e)]=0x0;[_0x46b388(0x13d)]=[];['localStorageState'];[_0x46b388(0x107)];[_0x46b388(0x16b)]=new Set();[_0x46b388(0x170)](_0x2ed94b,_0x2ce587){const _0x8c3370={_0x1ca895:0x15b,_0x2bde07:0x142},_0x74a83a=_0x46b388;this[_0x74a83a(_0x8c3370._0x1ca895)][_0x74a83a(0x157)]({'scope':this[_0x74a83a(_0x8c3370._0x2bde07)],'method':_0x2ed94b,'args':_0x2ce587});}[_0x46b388(0x120)](){const _0x59dcfc=_0x46b388;return this[_0x59dcfc(0x164)];}['activePage'](){const _0x393ae3={_0xda6ae0:0x10e,_0x4b3b85:0x10e},_0x2c2000=_0x46b388,_0x5c373f=this[_0x2c2000(0x164)][this[_0x2c2000(_0x393ae3._0xda6ae0)]];if(!_0x5c373f)throw new DriverError(_0x2c2000(0x154),{'activeIdx':this[_0x2c2000(_0x393ae3._0x4b3b85)]});return _0x5c373f;}['consoleEntries'](){const _0x1185ca={_0x5776fb:0x132,_0x5436ca:0x166},_0x478c21=_0x46b388;return this[_0x478c21(_0x1185ca._0x5776fb)][_0x478c21(_0x1185ca._0x5436ca)]??[];}[_0x46b388(0x130)](){const _0x518a1b={_0x3fa7cd:0x130},_0x36fa14=_0x46b388;return this[_0x36fa14(0x132)][_0x36fa14(_0x518a1b._0x3fa7cd)]??[];}async[_0x46b388(0x148)](_0x510b91){const _0x4e93a6={_0x259440:0x170,_0x2602d5:0x148,_0x3f8b6f:0x12b},_0xab73f2=_0x46b388;this[_0xab73f2(_0x4e93a6._0x259440)](_0xab73f2(_0x4e93a6._0x2602d5),[_0x510b91]);if(_0x510b91<0x0||_0x510b91>=this[_0xab73f2(0x164)]['length'])throw new DriverError(_0xab73f2(_0x4e93a6._0x3f8b6f),{'index':_0x510b91,'available':this['pageList']['length']});this[_0xab73f2(0x10e)]=_0x510b91,this[_0xab73f2(0x13d)]['length']=0x0;}['onNewPage'](_0x40c4ed){const _0x263117=_0x46b388;return subscribe(this[_0x263117(0x16b)],_0x40c4ed);}[_0x46b388(0x122)](_0x4c391c){const _0x28d0bf={_0x5f4018:0x142,_0x47b171:0xf9,_0x40e6a7:0x12c,_0xa435f8:0x15b,_0xf52e43:0x157},_0x615e61=_0x46b388,_0x51ff04=this[_0x615e61(_0x28d0bf._0x5f4018)]+_0x615e61(_0x28d0bf._0x47b171)+this['pageList'][_0x615e61(_0x28d0bf._0x40e6a7)],_0x33111a=new FakePage(this[_0x615e61(_0x28d0bf._0xa435f8)],this[_0x615e61(0x132)],_0x51ff04,_0x4c391c);this[_0x615e61(0x164)][_0x615e61(_0x28d0bf._0xf52e43)](_0x33111a);const _0x366d85=this[_0x615e61(0x164)][_0x615e61(0x12c)]-0x1;for(const _0x5caf51 of this[_0x615e61(0x16b)]){try{_0x5caf51({'index':_0x366d85,'url':_0x4c391c});}catch{}}return _0x366d85;}[_0x46b388(0x158)](_0x4d7635){const _0x24ad54={_0xbe472c:0x164,_0x1caf0f:0x12c},_0x35fc9b=_0x46b388;if(_0x4d7635<0x0||_0x4d7635>=this[_0x35fc9b(_0x24ad54._0xbe472c)][_0x35fc9b(_0x24ad54._0x1caf0f)])throw new DriverError(_0x35fc9b(0x12b),{'index':_0x4d7635,'available':this[_0x35fc9b(_0x24ad54._0xbe472c)][_0x35fc9b(0x12c)]});this[_0x35fc9b(0x164)][_0x35fc9b(0x140)](_0x4d7635,0x1);}async[_0x46b388(0x153)](_0x39f4b4){const _0x5eb83a={_0x452cf7:0x153,_0x3ed154:0xfe},_0x1026d3=_0x46b388;this['record'](_0x1026d3(_0x5eb83a._0x452cf7),[_0x39f4b4]);if(!_0x39f4b4[_0x1026d3(_0x5eb83a._0x3ed154)]['length'])throw new LocatorError('enterFrame\x20called\x20with\x20empty\x20locator',{'locator':_0x39f4b4});this['frameStack'][_0x1026d3(0x157)](_0x39f4b4);}async['exitFrame'](){const _0x36d96b={_0x54752a:0x100,_0x36aaae:0x13d},_0x39b16c=_0x46b388;this[_0x39b16c(0x170)](_0x39b16c(_0x36d96b._0x54752a),[]);if(this[_0x39b16c(0x13d)]['length']===0x0)throw new DriverError('exitFrame\x20called\x20with\x20no\x20frame\x20on\x20the\x20stack',{});this[_0x39b16c(_0x36d96b._0x36aaae)][_0x39b16c(0x14d)]();}async[_0x46b388(0x10a)](_0x59057c,_0x156647){const _0x124a0e=_0x46b388;this[_0x124a0e(0x170)]('setLocalStorage',[_0x59057c,_0x156647]),this[_0x124a0e(0x126)][_0x59057c]=_0x156647;}async['getLocalStorage'](_0x222a65){const _0x1945d5={_0x31da6e:0x126},_0x33b51a=_0x46b388;return this['record'](_0x33b51a(0x102),[_0x222a65]),this[_0x33b51a(_0x1945d5._0x31da6e)][_0x222a65]??null;}async[_0x46b388(0x103)](_0x3d497e,_0x59281d,_0x335302){const _0xffd692={_0x3e2728:0x103},_0x4f60e6=_0x46b388;this[_0x4f60e6(0x170)](_0x4f60e6(_0xffd692._0x3e2728),[_0x3d497e,_0x59281d,_0x335302]),this[_0x4f60e6(0x107)][_0x3d497e]=_0x59281d;}async[_0x46b388(0x14c)](_0x53ea6d){const _0xe2e1f0={_0x437b9a:0x107},_0x356815=_0x46b388;return this[_0x356815(0x170)]('getCookie',[_0x53ea6d]),this[_0x356815(_0xe2e1f0._0x437b9a)][_0x53ea6d]??null;}async['saveStorageState'](_0x3176be){const _0x2b50a0={_0x1baed8:0x12d},_0x25503e=_0x46b388;this[_0x25503e(0x170)](_0x25503e(_0x2b50a0._0x1baed8),[_0x3176be]);}async[_0x46b388(0xf8)](_0x24f6f4){const _0x1da5d6={_0x6d96b2:0x170,_0x3b5f8e:0xf8},_0x54108e=_0x46b388;return this[_0x54108e(_0x1da5d6._0x6d96b2)](_0x54108e(_0x1da5d6._0x3b5f8e),[_0x24f6f4]),void 0x0;}async[_0x46b388(0x105)](){const _0x4fd6e4=_0x46b388;this[_0x4fd6e4(0x170)]('close',[]);}['frameDepth'](){const _0x43db74={_0x312194:0x12c},_0x425909=_0x46b388;return this[_0x425909(0x13d)][_0x425909(_0x43db74._0x312194)];}},FakeWebDriver=class{constructor(_0x5cf2e3={}){const _0x48def5={_0x1f022f:0x15b},_0x310e41=_0x46b388;this[_0x310e41(0x132)]=_0x5cf2e3,this[_0x310e41(_0x48def5._0x1f022f)]=createRecorder();}['behavior'];static{__name(this,_0x46b388(0x110));}[_0x46b388(0x121)]=![];[_0x46b388(0x15b)];[_0x46b388(0x161)]=[];async[_0x46b388(0x137)](_0x1d6eaa){const _0x5bee0f={_0x380271:0x15b,_0x3b177d:0x157,_0x20ebe7:0xff},_0x12f900=_0x46b388;this[_0x12f900(_0x5bee0f._0x380271)][_0x12f900(_0x5bee0f._0x3b177d)]({'scope':_0x12f900(_0x5bee0f._0x20ebe7),'method':'launch','args':[_0x1d6eaa]}),this['launched']=!![];}async[_0x46b388(0x14f)](_0xa248f9){const _0xd2f275={_0x1848f4:0x14f,_0x14a146:0x16f,_0x299c51:0x162,_0x5ab702:0x161},_0x1664a1=_0x46b388;this[_0x1664a1(0x15b)][_0x1664a1(0x157)]({'scope':_0x1664a1(0xff),'method':_0x1664a1(_0xd2f275._0x1848f4),'args':[_0xa248f9]});if(!this[_0x1664a1(0x121)])throw new DriverError(_0x1664a1(_0xd2f275._0x14a146),{});const _0x200772=new FakeContext(this[_0x1664a1(0x15b)],this[_0x1664a1(0x132)],_0x1664a1(_0xd2f275._0x299c51)+this[_0x1664a1(_0xd2f275._0x5ab702)][_0x1664a1(0x12c)]);return this[_0x1664a1(_0xd2f275._0x5ab702)][_0x1664a1(0x157)](_0x200772),_0x200772;}async[_0x46b388(0x105)](){const _0x5a6c8b={_0x38c232:0x15b,_0x83487b:0x105},_0x1b3e49=_0x46b388;this[_0x1b3e49(_0x5a6c8b._0x38c232)]['push']({'scope':'driver','method':_0x1b3e49(_0x5a6c8b._0x83487b),'args':[]}),this[_0x1b3e49(0x121)]=![];}['wsEndpoint'](){return void 0x0;}async[_0x46b388(0x165)](){const _0x5c88a9=_0x46b388;throw new DriverError(_0x5c88a9(0x117),{});}[_0x46b388(0x11c)](_0x3e263f){throw new DriverError('attachExisting\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x46b388(0x109)](){return this['recorder']['calls']();}[_0x46b388(0x124)](_0x5a0361){const _0x12a49f={_0x377218:0x109},_0x1ae154=_0x46b388;return this[_0x1ae154(0x15b)][_0x1ae154(_0x12a49f._0x377218)]()[_0x1ae154(0x106)](_0x26b38d=>_0x26b38d[_0x1ae154(0x160)]===_0x5a0361);}};export{FakeWebDriver};
|
|
1
|
+
const _0x5c6c84=_0xb7a9;(function(_0x51e34e,_0x3f992e){const _0x6fcf81={_0x572cea:0x18b,_0x4eb11e:0x186},_0x16cd2f=_0xb7a9,_0x349721=_0x51e34e();while(!![]){try{const _0x44ee88=-parseInt(_0x16cd2f(0x161))/0x1+parseInt(_0x16cd2f(0x173))/0x2*(parseInt(_0x16cd2f(0x16e))/0x3)+parseInt(_0x16cd2f(_0x6fcf81._0x572cea))/0x4+parseInt(_0x16cd2f(_0x6fcf81._0x4eb11e))/0x5*(parseInt(_0x16cd2f(0x13a))/0x6)+-parseInt(_0x16cd2f(0x12e))/0x7*(-parseInt(_0x16cd2f(0x13f))/0x8)+-parseInt(_0x16cd2f(0x159))/0x9+parseInt(_0x16cd2f(0x150))/0xa;if(_0x44ee88===_0x3f992e)break;else _0x349721['push'](_0x349721['shift']());}catch(_0x431f25){_0x349721['push'](_0x349721['shift']());}}}(_0x4173,0x493d3));function _0xb7a9(_0xe70991,_0x492c2f){_0xe70991=_0xe70991-0x11a;const _0x417371=_0x4173();let _0xb7a921=_0x417371[_0xe70991];if(_0xb7a9['AxfAVi']===undefined){var _0x4490bc=function(_0x561c7d){const _0x4dcaf0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ed2c1='',_0x2e8c2c='';for(let _0x55c5ad=0x0,_0x462187,_0x6c9867,_0x1ba077=0x0;_0x6c9867=_0x561c7d['charAt'](_0x1ba077++);~_0x6c9867&&(_0x462187=_0x55c5ad%0x4?_0x462187*0x40+_0x6c9867:_0x6c9867,_0x55c5ad++%0x4)?_0x3ed2c1+=String['fromCharCode'](0xff&_0x462187>>(-0x2*_0x55c5ad&0x6)):0x0){_0x6c9867=_0x4dcaf0['indexOf'](_0x6c9867);}for(let _0x4b89a6=0x0,_0x2f23b6=_0x3ed2c1['length'];_0x4b89a6<_0x2f23b6;_0x4b89a6++){_0x2e8c2c+='%'+('00'+_0x3ed2c1['charCodeAt'](_0x4b89a6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e8c2c);};_0xb7a9['zibEsP']=_0x4490bc,_0xb7a9['bOFLuq']={},_0xb7a9['AxfAVi']=!![];}const _0x256b91=_0x417371[0x0],_0x460db5=_0xe70991+_0x256b91,_0x1a81cb=_0xb7a9['bOFLuq'][_0x460db5];return!_0x1a81cb?(_0xb7a921=_0xb7a9['zibEsP'](_0xb7a921),_0xb7a9['bOFLuq'][_0x460db5]=_0xb7a921):_0xb7a921=_0x1a81cb,_0xb7a921;}var __defProp=Object[_0x5c6c84(0x11d)],__name=(_0x3ed2c1,_0x2e8c2c)=>__defProp(_0x3ed2c1,_0x5c6c84(0x134),{'value':_0x2e8c2c,'configurable':!![]});function subscribe(_0x55c5ad,_0x462187){const _0x1e2a14=_0x5c6c84;return _0x55c5ad[_0x1e2a14(0x174)](_0x462187),()=>{const _0xe473c2=_0x1e2a14;_0x55c5ad[_0xe473c2(0x11f)](_0x462187);};}__name(subscribe,_0x5c6c84(0x17b));import{UnotestError}from'@unotest/core';var DriverError=class extends UnotestError{static{__name(this,_0x5c6c84(0x15d));}},LocatorError=class extends UnotestError{static{__name(this,'LocatorError');}};function _0x4173(){const _0x1e91a0=['y2XVC2u','y29VA2LLu3rHDgu','iJ48l2rPDJ4','zw50zxjgCMfTzsbJywXSzwqGD2L0AcbLBxb0EsbSB2nHDg9Y','mtq1oteXmNjfzejHsG','z2v0qxr0CMLIDxrL','Bgf1BMnOzwq','y291BNrcEurLzMf1Bhq','zhjPDMvY','zxjYB3jpBK5LEhrby3rPB24','y2XPCgjVyxjKugfZDgu','CMvJB3jKzxi','CgfNzsbPBMrLEcbVDxqGB2yGCMfUz2u','A2LUza','BgvUz3rO','zw1PDezHA2vqB3b1Ca','CgfNzxm','Cg9W','zxHPDezYyw1L','BMv3q29UDgv4Da','z29gB3j3yxjK','C2f2zvn0B3jHz2vtDgf0zq','zgvMAw5LuhjVCgvYDhK','z2v0q29VA2LL','zgvSzxrL','Bgf1BMnO','y2fSBhm','Cg9WDxbpBKnSAwnR','Aw5WDxrwywX1zq','y2XVC2vgywTLugfNzq','zNjHBwvtDgfJAW','y3vYCMvUDfvYBa','pgrPDIbKyxrHlxvUB3rLC3qTCMvMpsi','CMvSB2fK','z2v0tg9JywXtDg9YywDL','yxr0ywnOrxHPC3rPBMC','zxHPDezYyw1LignHBgXLzcb3AxrOig5VigzYyw1Lig9UihrOzsbZDgfJAW','zMLSBa','zNvUy3rPB24','mJqXnZi0uM5LvuXe','CgfNzuXPC3q','y291BNq','D2fPDezVCKXVywrtDgf0zq','Dgv4DenVBNrLBNrcEurLzMf1Bhq','zg91yMXLq2XPy2S','BMfTzq','zMLSDgvY','BMv0D29YA0vUDhjPzxm','BMv3q29UDgv4DcbJywXSzwqGyMvMB3jLigXHDw5JAcGP','Dw5JAgvJAW','Bg9JywXtDg9YywDLu3rHDgu','mJK0nLDuy3veqW','zhjHz0fUzerYB3a','B25ozxDqywDL','pgrPDJ48l2rPDJ4','DgL0Bgu','mZjiDg5lyuG','ywn0AxzLswr4','C3rLChm','D2fPDezVCLrLEhq','yxr0ywnOrxHPC3rPBMCGBM90ihn1ChbVCNrLzcbIEsbgywTLv2vIrhjPDMvY','y29UDgv4Dhm','y2HLy2S','zw50zxjgCMfTzq','y2HLy2TLzfn0yxrL','rMfRzunVBNrLEhq','z29cywnR','C2v0q29VA2LL','BM8Gywn0AxzLihbHz2uGAw4Gy29UDgv4Da','Aw5UzxjuzxH0','ChvZAa','C2nYzwvUC2HVDa','yMvOyxzPB3i','mtmYmtu5mfjcD0nWuW','B25bzNrLCKnSAwnR','D2fPDezVCLvYBa','C2nVCgu','C2v0qwn0AxzLugfNzq','zNjVBq','D2fPDezVCG','AxnwAxnPyMXL','zMfRzs1WBMC','nde2ota1mMDOvNDpAq','C2vSzwn0t3b0Aw9U','y2XPy2S','C3bSAwnL','rhjPDMvYrxjYB3i','B3v0zxjiDg1SqNLszwy','zwXLBwvUDeHPBNrcEvjLzG','AxneAxnHyMXLza','ndG2ode4Bgn3q2Tj','Aw5WDxrwywX1zuj5rgvMyxvSDa','y3r4','y2fSBhngB3i','C2nYB2XSsw50B1zPzxC','Bwf5yMvuAhjVDW','BMv3ugfNzuXPC3rLBMvYCW','C2nYzwvUC2HVDevSzw1LBNq','lNbHz2u','ywn0AxzLugfNzq','AxnwAxnPyMXLqNLezwzHDwX0','DhLWzq','D3nfBMrWB2LUDa','mJDrtKD5AeC','zNjHBwvezxb0Aa','CMvM','y2HLy2TLzfn0yxrLqNLezwzHDwX0','rMfRzvbHz2u','odq1ne9tB3DNyq','ywrK','y29UBMvJDfnOyxjLza','y29UC29SzuvUDhjPzxm','Aw5ZCgvJDevSzw1LBNq','Aw5UzxjuzxH0qNLezwzHDwX0','Bg9JywXtDg9YywDL','z290BW','C3vIC2nYAwjL','Aw5PDgLHBfvYBa','CMvJB3jK','zxzHBhvHDgvszxn1Bhq','zxzHBhvHDgvpBKXVy2f0B3i','AxneAxnHyMXLzej5rgvMyxvSDa','Bwv0Ag9K','C2v0tg9JywXtDg9YywDL','zxzHBhvHDgu','Ag92zxi','yxr0CMLIDxrLC0j5rgvMyxvSDa','ntG3nxbgsMHkEa'];_0x4173=function(){return _0x1e91a0;};return _0x4173();}function createRecorder(){const _0x261447={_0x1f8cb1:0x14d,_0x3f84ee:0x121},_0x113a07=_0x5c6c84,_0x6c9867=[];let _0x1ba077=0x0;return{'push':__name(_0x4b89a6=>_0x6c9867[_0x113a07(0x14d)]({..._0x4b89a6,'seq':_0x1ba077++}),_0x113a07(_0x261447._0x1f8cb1)),'calls':__name(()=>_0x6c9867,_0x113a07(_0x261447._0x3f84ee))};}__name(createRecorder,'createRecorder');var FakePage=class{constructor(_0x2f23b6,_0x1d667f,_0x24122d,_0x241d22){const _0x40a69e={_0xd668af:0x153,_0x28be81:0x126},_0x417068=_0x5c6c84;this['recorder']=_0x2f23b6,this['behavior']=_0x1d667f,this[_0x417068(_0x40a69e._0xd668af)]=_0x24122d,this[_0x417068(_0x40a69e._0x28be81)]=_0x241d22;}[_0x5c6c84(0x192)];['behavior'];['scope'];static{__name(this,_0x5c6c84(0x172));}['currentUrl'];[_0x5c6c84(0x151)];[_0x5c6c84(0x17d)](_0x57f97f,_0x4a1c52){const _0x1869d0={_0x5ce0a5:0x192,_0x18eac8:0x153},_0x39d416=_0x5c6c84;this[_0x39d416(_0x1869d0._0x5ce0a5)]['push']({'scope':this[_0x39d416(_0x1869d0._0x18eac8)],'method':_0x57f97f,'args':_0x4a1c52});}[_0x5c6c84(0x166)](){const _0x192056={_0x4a02d0:0x190,_0x4888d0:0x14f,_0x123523:0x190},_0x2f2ab5=_0x5c6c84;if(this[_0x2f2ab5(0x14f)][_0x2f2ab5(_0x192056._0x4a02d0)]){const _0x258d26=this[_0x2f2ab5(_0x192056._0x4888d0)][_0x2f2ab5(_0x192056._0x123523)];this['behavior']['errorOnNextAction']=void 0x0;throw _0x258d26;}}['url'](){const _0x420ce5=_0x5c6c84;return this[_0x420ce5(0x126)];}async[_0x5c6c84(0x13e)](){const _0x596cf8=_0x5c6c84;return this[_0x596cf8(0x17d)]('title',[]),'fake\x20title';}async[_0x5c6c84(0x15b)](_0x163e94,_0x28edac){const _0x5e634a={_0x5c7118:0x15b},_0x341cca=_0x5c6c84;this['record'](_0x341cca(_0x5e634a._0x5c7118),[_0x163e94,_0x28edac]),this[_0x341cca(0x166)](),this[_0x341cca(0x151)]?.();}async[_0x5c6c84(0x133)](_0x243593,_0x240c96){const _0x242c42={_0x525193:0x166},_0x538cee=_0x5c6c84;this[_0x538cee(0x17d)](_0x538cee(0x133),[_0x243593,_0x240c96]),this[_0x538cee(_0x242c42._0x525193)]();}async['fill'](_0x4e8d11,_0x318a2c,_0x2fcf59){const _0x5e5a37={_0x13698b:0x12c},_0x38bd64=_0x5c6c84;this['record'](_0x38bd64(_0x5e5a37._0x13698b),[_0x4e8d11,_0x318a2c,_0x2fcf59]),this[_0x38bd64(0x166)]();}async['press'](_0x45eeec,_0x1e2dfc,_0x3b8d04){const _0x508a13=_0x5c6c84;this[_0x508a13(0x17d)]('press',[_0x45eeec,_0x1e2dfc,_0x3b8d04]),this[_0x508a13(0x166)]();}async[_0x5c6c84(0x145)](_0x7a5590,_0x3f62b1){const _0x5debd4={_0x539b29:0x145},_0xfef888=_0x5c6c84;this['record'](_0xfef888(_0x5debd4._0x539b29),[_0x7a5590,_0x3f62b1]),this[_0xfef888(0x166)]();}async[_0x5c6c84(0x138)](_0x49f86f,_0x45971f){const _0x241a38={_0x2a639d:0x17d},_0x17a45e=_0x5c6c84;this[_0x17a45e(_0x241a38._0x2a639d)](_0x17a45e(0x138),[_0x49f86f,_0x45971f]),this[_0x17a45e(0x166)]();}async[_0x5c6c84(0x15a)](_0x349e8c,_0x5101a2,_0x266ff3){const _0x3ae0a0=_0x5c6c84;this[_0x3ae0a0(0x17d)]('selectOption',[_0x349e8c,_0x5101a2,_0x266ff3]),this[_0x3ae0a0(0x166)]();}async['hover'](_0x356e1d,_0x46e804){const _0x2e99e7=_0x5c6c84;this[_0x2e99e7(0x17d)](_0x2e99e7(0x184),[_0x356e1d,_0x46e804]),this[_0x2e99e7(0x166)]();}async[_0x5c6c84(0x165)](_0x882562){const _0x41a6e8={_0x5dc9d5:0x166},_0x463fd5=_0x5c6c84;this[_0x463fd5(0x17d)](_0x463fd5(0x165),[_0x882562]),this[_0x463fd5(_0x41a6e8._0x5dc9d5)]();}async[_0x5c6c84(0x13b)](_0x41da1a,_0x7f283d,_0x5dc78b){const _0x25b66d=_0x5c6c84;this[_0x25b66d(0x17d)](_0x25b66d(0x13b),[_0x41da1a,_0x7f283d,_0x5dc78b]),this['maybeThrow']();}async['uploadFile'](_0x1baefc,_0x5ce88a){const _0x46e94c={_0x55b7b0:0x17d},_0x4edf46=_0x5c6c84;this[_0x4edf46(_0x46e94c._0x55b7b0)]('uploadFile',[_0x1baefc,_0x5ce88a]),this['maybeThrow']();}async[_0x5c6c84(0x191)](_0x1843df,_0x53c1e9){const _0x170d81={_0x53f23b:0x166},_0x5d8029=_0x5c6c84;this[_0x5d8029(0x17d)]('clipboardPaste',[_0x1843df,_0x53c1e9]),this[_0x5d8029(_0x170d81._0x53f23b)]();}async[_0x5c6c84(0x130)](_0x87713e){const _0x5c1a19=_0x5c6c84;return this[_0x5c1a19(0x17d)](_0x5c1a19(0x130),[_0x87713e]),this[_0x5c1a19(0x14f)][_0x5c1a19(0x18e)]??0x1;}async['textContent'](_0x2202e9){const _0x48ab86={_0x260807:0x14f},_0x177732=_0x5c6c84;return this[_0x177732(0x17d)]('textContent',[_0x2202e9]),this[_0x177732(_0x48ab86._0x260807)][_0x177732(0x132)]??'';}async[_0x5c6c84(0x14c)](_0x3f25c3){const _0x4d2148={_0x514cae:0x17d,_0x2da561:0x14f,_0x176db2:0x178},_0xec864=_0x5c6c84;return this[_0xec864(_0x4d2148._0x514cae)](_0xec864(0x14c),[_0x3f25c3]),this[_0xec864(_0x4d2148._0x2da561)][_0xec864(_0x4d2148._0x176db2)]??this[_0xec864(_0x4d2148._0x2da561)][_0xec864(0x132)]??'';}async['inputValue'](_0x2cd04b){const _0x44b0b2={_0x324b91:0x17d,_0x2b6d72:0x123,_0x56b3b6:0x162},_0x3cdc33=_0x5c6c84;return this[_0x3cdc33(_0x44b0b2._0x324b91)](_0x3cdc33(_0x44b0b2._0x2b6d72),[_0x2cd04b]),this[_0x3cdc33(0x14f)][_0x3cdc33(_0x44b0b2._0x56b3b6)]??'';}async[_0x5c6c84(0x147)](_0x54d505){const _0x27e38e={_0x1b4434:0x17d,_0x2c64a8:0x14f},_0xd751ae=_0x5c6c84;return this[_0xd751ae(_0x27e38e._0x1b4434)](_0xd751ae(0x147),[_0x54d505]),this[_0xd751ae(_0x27e38e._0x2c64a8)][_0xd751ae(0x171)]??null;}async[_0x5c6c84(0x157)](_0x48781f){const _0x3b9c47={_0xbf7d9c:0x157,_0x5b71f5:0x14f},_0x3ea44a=_0x5c6c84;return this[_0x3ea44a(0x17d)](_0x3ea44a(_0x3b9c47._0xbf7d9c),[_0x48781f]),this[_0x3ea44a(_0x3b9c47._0x5b71f5)][_0x3ea44a(0x16b)]??!![];}async[_0x5c6c84(0x160)](_0x22a4da){const _0x322bd6={_0x51897f:0x17d,_0x3fb121:0x14f},_0xe1da4d=_0x5c6c84;return this[_0xe1da4d(_0x322bd6._0x51897f)](_0xe1da4d(0x160),[_0x22a4da]),this[_0xe1da4d(_0x322bd6._0x3fb121)][_0xe1da4d(0x180)]??![];}async[_0x5c6c84(0x18c)](_0x194701,_0x3be05e){const _0x12eae8={_0x2e83c4:0x18c},_0x5205fb=_0x5c6c84;return this['record'](_0x5205fb(_0x12eae8._0x2e83c4),[_0x194701,_0x3be05e]),this['behavior'][_0x5205fb(0x185)]?.[_0x3be05e]??null;}async[_0x5c6c84(0x156)](_0x55499c,_0x26b0b4){this['record']('waitFor',[_0x55499c,_0x26b0b4]);}async[_0x5c6c84(0x152)](_0x801601,_0x7d8e40){const _0x1d2ac1={_0xd8a600:0x17d,_0x42e0c5:0x152},_0x3cf77f=_0x5c6c84;this[_0x3cf77f(_0x1d2ac1._0xd8a600)](_0x3cf77f(_0x1d2ac1._0x42e0c5),[_0x801601,_0x7d8e40]);}async[_0x5c6c84(0x142)](_0x7a0fd8,_0x229135){const _0x8d7ff2=_0x5c6c84;this['record'](_0x8d7ff2(0x142),[_0x7a0fd8,_0x229135]);}async['waitForNavigation'](_0x32c49d){const _0x45e640=_0x5c6c84;this[_0x45e640(0x17d)]('waitForNavigation',[_0x32c49d]);}async[_0x5c6c84(0x131)](_0x590df8,_0x20ff23){const _0x24cab1=_0x5c6c84;this['record'](_0x24cab1(0x131),[_0x590df8,_0x20ff23]);}async['goto'](_0x389b74,_0x52d58a){const _0x17d9c6={_0x599aa3:0x17a},_0xce0f18=_0x5c6c84;this['record'](_0xce0f18(_0x17d9c6._0x599aa3),[_0x389b74,_0x52d58a]),this['currentUrl']=_0x389b74;}async[_0x5c6c84(0x128)](_0x277a8b){const _0x1c6530=_0x5c6c84;this[_0x1c6530(0x17d)](_0x1c6530(0x128),[_0x277a8b]);}async[_0x5c6c84(0x149)](_0x23c4e6){const _0x5b49df={_0x3f7567:0x149},_0x190113=_0x5c6c84;this[_0x190113(0x17d)](_0x190113(_0x5b49df._0x3f7567),[_0x23c4e6]);}async[_0x5c6c84(0x11b)](_0x3dc137){const _0x216f43=_0x5c6c84;this['record'](_0x216f43(0x11b),[_0x3dc137]);}async[_0x5c6c84(0x183)](_0x295681){const _0x4e27e6={_0x264adc:0x17e},_0x3e81b5=_0x5c6c84;return this[_0x3e81b5(0x17d)]('evaluate',[_0x295681]),this['behavior'][_0x3e81b5(_0x4e27e6._0x264adc)];}async[_0x5c6c84(0x17f)](_0x47f825,_0x15687a){const _0x584b62={_0x32d48e:0x17d,_0x311915:0x17f},_0x1d9ccb=_0x5c6c84;return this[_0x1d9ccb(_0x584b62._0x32d48e)](_0x1d9ccb(_0x584b62._0x311915),[_0x47f825,_0x15687a]),void 0x0;}async[_0x5c6c84(0x177)](_0x10e117){const _0x443432={_0x394364:0x141,_0x14ac83:0x170,_0x7382ea:0x141,_0x2e1523:0x14f,_0x1ce18c:0x15f},_0x50e531=_0x5c6c84;this['record'](_0x50e531(0x177),[_0x10e117]);if(_0x10e117[_0x50e531(0x141)][_0x50e531(0x195)]!==0x1||_0x10e117[_0x50e531(_0x443432._0x394364)][0x0]['kind']!==_0x50e531(_0x443432._0x14ac83))return null;const _0x40ac27=_0x10e117[_0x50e531(_0x443432._0x7382ea)][0x0]['ref'],_0x21e18d=this[_0x50e531(_0x443432._0x2e1523)][_0x50e531(_0x443432._0x1ce18c)]?.[_0x40ac27];return _0x21e18d??null;}async[_0x5c6c84(0x14e)](_0x23c472){const _0x34181e={_0x43fad5:0x17d,_0x42eb50:0x16c},_0x196e52=_0x5c6c84;return this[_0x196e52(_0x34181e._0x43fad5)](_0x196e52(0x14e),[_0x23c472]),this['screenshotBytes'](_0x23c472?.[_0x196e52(_0x34181e._0x42eb50)]);}async[_0x5c6c84(0x168)](_0x3472c9,_0x1d59da){const _0x74b4b3=_0x5c6c84;return this[_0x74b4b3(0x17d)](_0x74b4b3(0x168),[_0x3472c9,_0x1d59da]),this['screenshotBytes'](_0x1d59da?.[_0x74b4b3(0x16c)]);}['screenshotBytes'](_0x5ea5d5){const _0x263580={_0x278bbb:0x158,_0x347b2b:0x12d},_0x11b53b=_0x5c6c84,_0x7e2f25=this[_0x11b53b(0x14f)]['screenshotBytes'];if(_0x7e2f25===void 0x0)return Buffer[_0x11b53b(0x155)](_0x11b53b(_0x263580._0x278bbb));return typeof _0x7e2f25===_0x11b53b(_0x263580._0x347b2b)?_0x7e2f25(_0x5ea5d5):_0x7e2f25;}async['outerHTML'](_0x2ca328){const _0x1e0098={_0x50d088:0x15e,_0x453a98:0x189},_0x441826=_0x5c6c84;this[_0x441826(0x17d)]('outerHTML',[_0x2ca328]);if(_0x2ca328[_0x441826(0x141)]['length']===0x1&&_0x2ca328[_0x441826(0x141)][0x0][_0x441826(0x194)]===_0x441826(0x170)){const _0x487d0b=_0x2ca328[_0x441826(0x141)][0x0]['ref'];return this[_0x441826(0x14f)][_0x441826(_0x1e0098._0x50d088)]?.[_0x487d0b]??_0x441826(0x127)+_0x487d0b+_0x441826(_0x1e0098._0x453a98);}return _0x441826(0x13d);}},FakeContext=class{constructor(_0x20b584,_0x345ab6,_0x35b119){const _0x40c520={_0x47a423:0x122,_0x59a3d0:0x139,_0x2727ac:0x179},_0x18b193=_0x5c6c84;this['recorder']=_0x20b584,this[_0x18b193(0x14f)]=_0x345ab6,this['scope']=_0x35b119;const _0x22bb65=new FakePage(_0x20b584,_0x345ab6,_0x35b119+'.page0',_0x345ab6[_0x18b193(0x17c)]??'about:blank');_0x345ab6[_0x18b193(_0x40c520._0x47a423)]&&(_0x22bb65[_0x18b193(0x151)]=()=>{const _0x43b74f=_0x18b193;this[_0x43b74f(0x196)](_0x345ab6[_0x43b74f(0x122)]);}),this['pageList']=[_0x22bb65],this[_0x18b193(_0x40c520._0x59a3d0)]={..._0x345ab6[_0x18b193(_0x40c520._0x2727ac)]??{}},this['cookieState']={..._0x345ab6['cookies']??{}};}['recorder'];[_0x5c6c84(0x14f)];[_0x5c6c84(0x153)];static{__name(this,_0x5c6c84(0x148));}[_0x5c6c84(0x12f)];[_0x5c6c84(0x140)]=0x0;[_0x5c6c84(0x125)]=[];[_0x5c6c84(0x139)];[_0x5c6c84(0x188)];[_0x5c6c84(0x167)]=new Set();[_0x5c6c84(0x17d)](_0x39246f,_0x20d11a){const _0x1dd474=_0x5c6c84;this[_0x1dd474(0x192)]['push']({'scope':this[_0x1dd474(0x153)],'method':_0x39246f,'args':_0x20d11a});}[_0x5c6c84(0x197)](){const _0x5c53e1={_0x308efb:0x12f},_0x4f7692=_0x5c6c84;return this[_0x4f7692(_0x5c53e1._0x308efb)];}[_0x5c6c84(0x16a)](){const _0x1b720c={_0x3511e6:0x14b},_0x2e3a75=_0x5c6c84,_0x256efd=this[_0x2e3a75(0x12f)][this['activeIdx']];if(!_0x256efd)throw new DriverError(_0x2e3a75(_0x1b720c._0x3511e6),{'activeIdx':this[_0x2e3a75(0x140)]});return _0x256efd;}[_0x5c6c84(0x176)](){const _0x216dc1={_0x394366:0x176},_0x5221da=_0x5c6c84;return this[_0x5221da(0x14f)][_0x5221da(_0x216dc1._0x394366)]??[];}[_0x5c6c84(0x136)](){const _0x41e56a={_0x3c7c65:0x136},_0xc8679c=_0x5c6c84;return this[_0xc8679c(0x14f)][_0xc8679c(_0x41e56a._0x3c7c65)]??[];}async[_0x5c6c84(0x154)](_0xf84794){const _0x8e1b63={_0x4f92f5:0x17d,_0xee47d8:0x154,_0x10dc5a:0x12f,_0x58b58a:0x193,_0x1bb85d:0x195,_0x51c187:0x140,_0x26e589:0x195},_0x996cb3=_0x5c6c84;this[_0x996cb3(_0x8e1b63._0x4f92f5)](_0x996cb3(_0x8e1b63._0xee47d8),[_0xf84794]);if(_0xf84794<0x0||_0xf84794>=this[_0x996cb3(_0x8e1b63._0x10dc5a)][_0x996cb3(0x195)])throw new DriverError(_0x996cb3(_0x8e1b63._0x58b58a),{'index':_0xf84794,'available':this['pageList'][_0x996cb3(_0x8e1b63._0x1bb85d)]});this[_0x996cb3(_0x8e1b63._0x51c187)]=_0xf84794,this['frameStack'][_0x996cb3(_0x8e1b63._0x26e589)]=0x0;}[_0x5c6c84(0x13c)](_0x30932a){const _0x4929c7=_0x5c6c84;return subscribe(this[_0x4929c7(0x167)],_0x30932a);}['emitFakePopup'](_0x5aec9c){const _0x4839b3={_0x4da35b:0x192,_0x576f0b:0x14f,_0x1aaae2:0x195},_0x133628=_0x5c6c84,_0x2cdafa=this[_0x133628(0x153)]+_0x133628(0x169)+this['pageList'][_0x133628(0x195)],_0x4b6303=new FakePage(this[_0x133628(_0x4839b3._0x4da35b)],this[_0x133628(_0x4839b3._0x576f0b)],_0x2cdafa,_0x5aec9c);this['pageList'][_0x133628(0x14d)](_0x4b6303);const _0x52eedf=this['pageList'][_0x133628(_0x4839b3._0x1aaae2)]-0x1;for(const _0x3a7161 of this['newPageListeners']){try{_0x3a7161({'index':_0x52eedf,'url':_0x5aec9c});}catch{}}return _0x52eedf;}[_0x5c6c84(0x124)](_0x1f346d){const _0x5c90d7={_0x897be2:0x12f,_0x511229:0x12f,_0x3541a2:0x15c},_0x5d7969=_0x5c6c84;if(_0x1f346d<0x0||_0x1f346d>=this[_0x5d7969(0x12f)][_0x5d7969(0x195)])throw new DriverError(_0x5d7969(0x193),{'index':_0x1f346d,'available':this[_0x5d7969(_0x5c90d7._0x897be2)][_0x5d7969(0x195)]});this[_0x5d7969(_0x5c90d7._0x511229)][_0x5d7969(_0x5c90d7._0x3541a2)](_0x1f346d,0x1);}async[_0x5c6c84(0x146)](_0x46081f){const _0x365f93={_0x26b834:0x141,_0x1a679f:0x18a,_0x4e44e5:0x125},_0x24ea9b=_0x5c6c84;this['record'](_0x24ea9b(0x146),[_0x46081f]);if(!_0x46081f[_0x24ea9b(_0x365f93._0x26b834)]['length'])throw new LocatorError(_0x24ea9b(_0x365f93._0x1a679f),{'locator':_0x46081f});this[_0x24ea9b(_0x365f93._0x4e44e5)][_0x24ea9b(0x14d)](_0x46081f);}async[_0x5c6c84(0x199)](){const _0x4a56ea={_0x4ccf4b:0x199,_0x3c915e:0x12b,_0x34b6e6:0x198},_0x93bc66=_0x5c6c84;this['record'](_0x93bc66(_0x4a56ea._0x4ccf4b),[]);if(this['frameStack'][_0x93bc66(0x195)]===0x0)throw new DriverError(_0x93bc66(_0x4a56ea._0x3c915e),{});this['frameStack'][_0x93bc66(_0x4a56ea._0x34b6e6)]();}async[_0x5c6c84(0x182)](_0x36a945,_0x2f0d7e){const _0xd1a0a3=_0x5c6c84;this[_0xd1a0a3(0x17d)]('setLocalStorage',[_0x36a945,_0x2f0d7e]),this[_0xd1a0a3(0x139)][_0x36a945]=_0x2f0d7e;}async[_0x5c6c84(0x129)](_0x3ac7a0){const _0x2ef1a9={_0x7b95c5:0x17d},_0x5188d4=_0x5c6c84;return this[_0x5188d4(_0x2ef1a9._0x7b95c5)](_0x5188d4(0x129),[_0x3ac7a0]),this[_0x5188d4(0x139)][_0x3ac7a0]??null;}async[_0x5c6c84(0x14a)](_0x2b83cf,_0x2ac82a,_0x5cc8f4){const _0x165451={_0x247f47:0x17d,_0x5869df:0x14a,_0x10003:0x188},_0x13091d=_0x5c6c84;this[_0x13091d(_0x165451._0x247f47)](_0x13091d(_0x165451._0x5869df),[_0x2b83cf,_0x2ac82a,_0x5cc8f4]),this[_0x13091d(_0x165451._0x10003)][_0x2b83cf]=_0x2ac82a;}async[_0x5c6c84(0x11e)](_0x3a5b9a){const _0x581df2={_0x45f654:0x188},_0x3d4d77=_0x5c6c84;return this[_0x3d4d77(0x17d)](_0x3d4d77(0x11e),[_0x3a5b9a]),this[_0x3d4d77(_0x581df2._0x45f654)][_0x3a5b9a]??null;}async[_0x5c6c84(0x11c)](_0x3e3d1e){const _0x511acf=_0x5c6c84;this[_0x511acf(0x17d)]('saveStorageState',[_0x3e3d1e]);}async['evaluate'](_0x5c18c4){const _0x172a25={_0xf1265e:0x17d,_0x43d0fe:0x183},_0x4d39df=_0x5c6c84;return this[_0x4d39df(_0x172a25._0xf1265e)](_0x4d39df(_0x172a25._0x43d0fe),[_0x5c18c4]),void 0x0;}async[_0x5c6c84(0x187)](){const _0x133970={_0x16abfe:0x187},_0x12c4f3=_0x5c6c84;this['record'](_0x12c4f3(_0x133970._0x16abfe),[]);}[_0x5c6c84(0x16f)](){const _0x4d0d3a={_0x418c78:0x195},_0x51c19a=_0x5c6c84;return this[_0x51c19a(0x125)][_0x51c19a(_0x4d0d3a._0x418c78)];}},FakeWebDriver=class{constructor(_0x2b2d70={}){const _0x4234cd={_0x56efc4:0x192},_0x19188e=_0x5c6c84;this[_0x19188e(0x14f)]=_0x2b2d70,this[_0x19188e(_0x4234cd._0x56efc4)]=createRecorder();}[_0x5c6c84(0x14f)];static{__name(this,'FakeWebDriver');}[_0x5c6c84(0x18d)]=![];[_0x5c6c84(0x192)];['contexts']=[];async[_0x5c6c84(0x120)](_0x199813){const _0x321f00={_0x4df0a4:0x14d,_0x2f5a00:0x120,_0x4856d7:0x18d},_0x48a654=_0x5c6c84;this[_0x48a654(0x192)][_0x48a654(_0x321f00._0x4df0a4)]({'scope':'driver','method':_0x48a654(_0x321f00._0x2f5a00),'args':[_0x199813]}),this[_0x48a654(_0x321f00._0x4856d7)]=!![];}async[_0x5c6c84(0x11a)](_0x257b11){const _0x754b11={_0x310957:0x192,_0x4b77cd:0x18f,_0x25286e:0x11a,_0x45f584:0x14f,_0x4e2281:0x144,_0x5ac335:0x14d},_0x1a80a8=_0x5c6c84;this[_0x1a80a8(_0x754b11._0x310957)]['push']({'scope':_0x1a80a8(_0x754b11._0x4b77cd),'method':_0x1a80a8(_0x754b11._0x25286e),'args':[_0x257b11]});if(!this['launched'])throw new DriverError(_0x1a80a8(0x137),{});const _0x2e566e=new FakeContext(this[_0x1a80a8(0x192)],this[_0x1a80a8(_0x754b11._0x45f584)],_0x1a80a8(0x163)+this['contexts']['length']);return this[_0x1a80a8(_0x754b11._0x4e2281)][_0x1a80a8(_0x754b11._0x5ac335)](_0x2e566e),_0x2e566e;}async[_0x5c6c84(0x187)](){const _0x3e1986={_0x32ad2b:0x192,_0x37f10e:0x187},_0x32ed86=_0x5c6c84;this[_0x32ed86(_0x3e1986._0x32ad2b)]['push']({'scope':_0x32ed86(0x18f),'method':_0x32ed86(_0x3e1986._0x37f10e),'args':[]}),this['launched']=![];}[_0x5c6c84(0x16d)](){return void 0x0;}async[_0x5c6c84(0x175)](){throw new DriverError('connectShared\x20not\x20supported\x20by\x20FakeWebDriver',{});}[_0x5c6c84(0x12a)](_0x2e6be5){const _0xdec9de=_0x5c6c84;throw new DriverError(_0xdec9de(0x143),{});}[_0x5c6c84(0x121)](){const _0xb42520={_0x463024:0x121},_0x444f8d=_0x5c6c84;return this[_0x444f8d(0x192)][_0x444f8d(_0xb42520._0x463024)]();}[_0x5c6c84(0x164)](_0x6319eb){const _0x1d209a={_0x418025:0x135},_0x33401e=_0x5c6c84;return this[_0x33401e(0x192)]['calls']()[_0x33401e(_0x1d209a._0x418025)](_0x2ad9ae=>_0x2ad9ae[_0x33401e(0x181)]===_0x6319eb);}};export{FakeWebDriver};
|