@enhance-eng/sandbox 0.3.10 → 0.3.17-dev.test789
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/README.md +44 -0
- package/dist/assets/enhance-runtime.js +1 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +73 -91
- package/dist/index.js +1 -1
- package/dist/sw-enhance.js +1 -1
- package/dist/vite/index.d.ts +14 -0
- package/dist/vite/index.js +1 -0
- package/package.json +14 -12
- package/bin/enhance-sandbox.js +0 -2
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +0 -121
- package/dist/manifest.json +0 -7
- package/dist/postinstall.js +0 -1
- package/enhance.config.sample.json +0 -4
package/dist/index.d.cts
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
interface WorkerHmrConfiguration {
|
|
4
|
-
protocols?: string[];
|
|
5
|
-
pathHints?: string[];
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
declare const optionsSchema: z.ZodObject<{
|
|
9
|
-
sandboxBaseURL: z.ZodOptional<z.ZodString>;
|
|
10
|
-
callbackBypass: z.ZodArray<z.ZodString, "many">;
|
|
11
|
-
assetHosts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
-
overlay: z.ZodOptional<z.ZodObject<{
|
|
13
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
position: z.ZodOptional<z.ZodEnum<["top-left", "top-right", "bottom-left", "bottom-right"]>>;
|
|
15
|
-
enableViteHmr: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
enabled?: boolean | undefined;
|
|
18
|
-
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
19
|
-
enableViteHmr?: boolean | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
enabled?: boolean | undefined;
|
|
22
|
-
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
23
|
-
enableViteHmr?: boolean | undefined;
|
|
24
|
-
}>>;
|
|
25
|
-
hmr: z.ZodOptional<z.ZodObject<{
|
|
26
|
-
protocols: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
27
|
-
pathHints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
protocols?: string[] | undefined;
|
|
30
|
-
pathHints?: string[] | undefined;
|
|
31
|
-
}, {
|
|
32
|
-
protocols?: string[] | undefined;
|
|
33
|
-
pathHints?: string[] | undefined;
|
|
34
|
-
}>>;
|
|
35
|
-
logLevel: z.ZodOptional<z.ZodEnum<["silent", "info", "debug"]>>;
|
|
36
|
-
swPath: z.ZodOptional<z.ZodString>;
|
|
37
|
-
overlayPath: z.ZodOptional<z.ZodString>;
|
|
38
|
-
runtimeScriptPath: z.ZodOptional<z.ZodString>;
|
|
39
|
-
storageKeysOverride: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40
|
-
security: z.ZodOptional<z.ZodEnum<["permissive", "custom"]>>;
|
|
41
|
-
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
callbackBypass: string[];
|
|
43
|
-
sandboxBaseURL?: string | undefined;
|
|
44
|
-
assetHosts?: string[] | undefined;
|
|
45
|
-
overlay?: {
|
|
46
|
-
enabled?: boolean | undefined;
|
|
47
|
-
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
48
|
-
enableViteHmr?: boolean | undefined;
|
|
49
|
-
} | undefined;
|
|
50
|
-
hmr?: {
|
|
51
|
-
protocols?: string[] | undefined;
|
|
52
|
-
pathHints?: string[] | undefined;
|
|
53
|
-
} | undefined;
|
|
54
|
-
logLevel?: "silent" | "info" | "debug" | undefined;
|
|
55
|
-
swPath?: string | undefined;
|
|
56
|
-
overlayPath?: string | undefined;
|
|
57
|
-
runtimeScriptPath?: string | undefined;
|
|
58
|
-
storageKeysOverride?: Record<string, string> | undefined;
|
|
59
|
-
security?: "custom" | "permissive" | undefined;
|
|
60
|
-
}, {
|
|
61
|
-
callbackBypass: string[];
|
|
62
|
-
sandboxBaseURL?: string | undefined;
|
|
63
|
-
assetHosts?: string[] | undefined;
|
|
64
|
-
overlay?: {
|
|
65
|
-
enabled?: boolean | undefined;
|
|
66
|
-
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
67
|
-
enableViteHmr?: boolean | undefined;
|
|
68
|
-
} | undefined;
|
|
69
|
-
hmr?: {
|
|
70
|
-
protocols?: string[] | undefined;
|
|
71
|
-
pathHints?: string[] | undefined;
|
|
72
|
-
} | undefined;
|
|
73
|
-
logLevel?: "silent" | "info" | "debug" | undefined;
|
|
74
|
-
swPath?: string | undefined;
|
|
75
|
-
overlayPath?: string | undefined;
|
|
76
|
-
runtimeScriptPath?: string | undefined;
|
|
77
|
-
storageKeysOverride?: Record<string, string> | undefined;
|
|
78
|
-
security?: "custom" | "permissive" | undefined;
|
|
79
|
-
}>;
|
|
80
|
-
type RawOptions = z.input<typeof optionsSchema>;
|
|
81
|
-
declare global {
|
|
82
|
-
interface Window {
|
|
83
|
-
__enhanceSandboxHmr?: WorkerHmrConfiguration | (() => WorkerHmrConfiguration | undefined);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
interface EnhanceInitOptions extends RawOptions {
|
|
88
|
-
}
|
|
89
|
-
interface EnhanceStatus {
|
|
90
|
-
enabled: boolean;
|
|
91
|
-
controlled: boolean;
|
|
92
|
-
version: string;
|
|
93
|
-
sandboxHits: number;
|
|
94
|
-
sandboxFallbacks: number;
|
|
95
|
-
}
|
|
96
|
-
interface EnhanceController {
|
|
97
|
-
enable(token?: string): void;
|
|
98
|
-
disable(): void;
|
|
99
|
-
status(): EnhanceStatus;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
type EnhanceOptions = EnhanceInitOptions;
|
|
103
|
-
interface EnhanceAssetManifest {
|
|
104
|
-
serviceWorker: string;
|
|
105
|
-
runtime: string;
|
|
106
|
-
version: string;
|
|
107
|
-
serviceWorkerDigest: string | null;
|
|
108
|
-
runtimeDigest: string | null;
|
|
109
|
-
}
|
|
110
|
-
declare const Enhance: {
|
|
111
|
-
init(options: EnhanceInitOptions): EnhanceController;
|
|
112
|
-
serviceWorkerURL(): string;
|
|
113
|
-
runtimeURL(): string;
|
|
114
|
-
assetManifest(): EnhanceAssetManifest;
|
|
115
|
-
};
|
|
116
|
-
declare function getAssetManifest(): EnhanceAssetManifest;
|
|
117
|
-
declare function resolveServiceWorkerPath(): string;
|
|
118
|
-
declare function serviceWorkerURL(): string;
|
|
119
|
-
declare function runtimeURL(): string;
|
|
120
|
-
|
|
121
|
-
export { Enhance, type EnhanceAssetManifest, type EnhanceController, type EnhanceOptions, type EnhanceStatus, getAssetManifest, resolveServiceWorkerPath, runtimeURL, serviceWorkerURL };
|
package/dist/manifest.json
DELETED
package/dist/postinstall.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const _0x5603ab=_0x18b3;(function(_0x284c37,_0x25d96b){const _0xe46c5e=_0x18b3,_0x3c0e1c=_0x284c37();while(!![]){try{const _0x124607=-parseInt(_0xe46c5e(0x171))/(-0x369*0x4+0x2011*-0x1+-0x2*-0x16db)*(parseInt(_0xe46c5e(0x193))/(0x2129+-0x10d7+-0x1050))+-parseInt(_0xe46c5e(0x16a))/(-0x1374+-0xe*-0x1fb+-0x843)+parseInt(_0xe46c5e(0x17b))/(0x22*0x67+0x1c19+-0x1*0x29c3)+parseInt(_0xe46c5e(0x169))/(-0x1*0x148d+0x1f73+-0x22d*0x5)*(parseInt(_0xe46c5e(0x172))/(-0x3cb*0x5+0x47*-0x1+0x1344))+-parseInt(_0xe46c5e(0x18a))/(0x21cf+0x61*-0x3+-0x20a5)+-parseInt(_0xe46c5e(0x168))/(-0x1171+0x263*-0x1+0x13dc)*(-parseInt(_0xe46c5e(0x182))/(0x7*0x13c+-0x1*-0x26b4+0x1*-0x2f4f))+-parseInt(_0xe46c5e(0x18e))/(0x23e2+-0x21*0xf1+-0x4c7)*(parseInt(_0xe46c5e(0x178))/(-0x144c+-0x1*-0x1d35+-0x8de));if(_0x124607===_0x25d96b)break;else _0x3c0e1c['push'](_0x3c0e1c['shift']());}catch(_0x94fa05){_0x3c0e1c['push'](_0x3c0e1c['shift']());}}}(_0x180d,0x17d*-0x17f+-0x4162*-0x3+-0x2*-0x192b7));import{relative,resolve}from'\x70\x61\x74\x68';function _0x180d(){const _0x326f2f=['\x72\x4d\x66\x50\x42\x67\x76\x4b\x69\x68\x72\x56\x69\x68\x6a\x4c\x79\x77\x71\x47','\x6e\x74\x61\x30\x6e\x5a\x69\x35\x43\x66\x62\x6c\x72\x4e\x7a\x51','\x43\x77\x44\x53\x45\x76\x43','\x43\x4e\x76\x55\x44\x67\x4c\x54\x7a\x75\x72\x50\x7a\x32\x76\x5a\x44\x61','\x45\x77\x35\x72\x7a\x65\x38','\x73\x77\x35\x32\x79\x77\x58\x50\x7a\x63\x62\x6b\x75\x30\x39\x6f\x69\x67\x4c\x55\x69\x61','\x43\x68\x76\x5a\x41\x61','\x74\x4d\x38\x47\x42\x33\x7a\x4c\x43\x4d\x58\x48\x45\x73\x62\x48\x43\x33\x6e\x4c\x44\x63\x62\x4d\x42\x33\x76\x55\x7a\x63\x62\x50\x42\x49\x62\x54\x79\x77\x35\x50\x7a\x4d\x76\x5a\x44\x61','\x69\x67\x48\x48\x43\x59\x62\x48\x42\x49\x62\x50\x42\x4e\x7a\x48\x42\x67\x4c\x4b\x69\x63\x6a\x5a\x44\x30\x7a\x50\x42\x67\x76\x55\x79\x77\x31\x4c\x69\x4a\x53\x47\x7a\x78\x48\x57\x7a\x77\x6e\x30\x7a\x77\x71\x47\x79\x73\x62\x55\x42\x32\x34\x54\x7a\x77\x31\x57\x44\x68\x4b\x47\x43\x33\x72\x59\x41\x77\x35\x4e','\x6d\x74\x79\x30\x6f\x64\x65\x31\x45\x76\x7a\x31\x43\x4d\x35\x66','\x43\x32\x54\x50\x43\x68\x62\x4c\x7a\x61','\x42\x77\x76\x5a\x43\x32\x66\x4e\x7a\x71','\x79\x32\x66\x30\x79\x32\x47','\x6e\x4a\x61\x59\x6e\x74\x4b\x57\x71\x4c\x6a\x4c\x42\x4b\x50\x55','\x42\x65\x76\x66\x41\x65\x65','\x43\x68\x76\x49\x42\x67\x4c\x4a\x72\x67\x4c\x59','\x41\x5a\x69\x32\x72\x68\x66\x77\x44\x4c\x76\x76\x42\x4b\x54\x74\x6e\x4b\x76\x31\x42\x64\x43\x56\x72\x65\x72\x4b\x6d\x31\x66\x71\x76\x65\x6a\x63\x41\x31\x6e\x4a\x73\x65\x58\x78\x77\x75\x58\x49\x43\x67\x71\x57\x44\x74\x48\x78\x6d\x64\x30','\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x67\x75','\x6e\x64\x75\x59\x6d\x4d\x6a\x58\x73\x32\x44\x4b\x43\x57','\x42\x33\x7a\x4c\x43\x4d\x58\x48\x45\x75\x72\x50\x7a\x32\x76\x5a\x44\x61','\x74\x77\x31\x4d\x74\x4b\x30','\x77\x32\x76\x55\x41\x67\x66\x55\x79\x32\x75\x54\x43\x32\x66\x55\x7a\x67\x6a\x56\x45\x66\x30\x47\x71\x32\x39\x57\x41\x77\x76\x4b\x69\x61','\x79\x33\x44\x4b','\x7a\x67\x4c\x4e\x7a\x78\x6e\x30','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x43\x33\x44\x67\x41\x77\x58\x4c\x42\x4d\x66\x54\x7a\x71','\x77\x32\x76\x55\x41\x67\x66\x55\x79\x32\x75\x54\x43\x32\x66\x55\x7a\x67\x6a\x56\x45\x66\x30\x47\x75\x32\x54\x50\x43\x68\x62\x4c\x7a\x63\x61','\x77\x32\x76\x55\x41\x67\x66\x55\x79\x32\x75\x54\x43\x32\x66\x55\x7a\x67\x6a\x56\x45\x66\x30\x47\x72\x4d\x66\x50\x42\x67\x76\x4b\x69\x68\x72\x56\x69\x68\x6e\x35\x42\x4d\x6d\x47\x79\x78\x6e\x5a\x7a\x78\x72\x5a\x69\x67\x72\x31\x43\x4d\x4c\x55\x7a\x59\x62\x57\x42\x33\x6e\x30\x41\x77\x35\x5a\x44\x67\x66\x53\x42\x61','\x69\x6f\x6b\x67\x4b\x49\x61','\x6c\x49\x39\x48\x43\x33\x6e\x4c\x44\x68\x6d\x56\x7a\x77\x35\x4f\x79\x77\x35\x4a\x7a\x73\x31\x59\x44\x77\x35\x30\x41\x77\x31\x4c\x6c\x4d\x50\x5a','\x7a\x66\x4c\x67\x76\x76\x71','\x44\x78\x62\x4b\x79\x78\x72\x4c','\x42\x77\x66\x55\x41\x77\x7a\x4c\x43\x33\x72\x71\x79\x78\x72\x4f','\x7a\x77\x35\x4f\x79\x77\x35\x4a\x7a\x73\x35\x4a\x42\x32\x35\x4d\x41\x77\x43\x55\x41\x4e\x6e\x56\x42\x47','\x7a\x78\x48\x50\x44\x61','\x42\x33\x7a\x4c\x43\x4d\x58\x48\x45\x71','\x79\x32\x39\x57\x45\x75\x7a\x50\x42\x67\x75','\x75\x65\x4c\x55\x75\x78\x43','\x6d\x63\x34\x5a\x6c\x4a\x65','\x43\x33\x72\x59\x41\x77\x35\x4e','\x43\x33\x72\x48\x44\x68\x76\x5a','\x43\x32\x76\x59\x44\x4d\x4c\x4a\x7a\x76\x44\x56\x43\x4d\x54\x4c\x43\x47','\x42\x32\x6a\x51\x7a\x77\x6e\x30','\x6c\x49\x39\x5a\x44\x59\x31\x4c\x42\x4d\x48\x48\x42\x4d\x6e\x4c\x6c\x4d\x50\x5a','\x43\x32\x76\x59\x44\x4d\x4c\x4a\x7a\x76\x44\x56\x43\x4d\x54\x4c\x43\x4b\x72\x50\x7a\x32\x76\x5a\x44\x61','\x7a\x67\x76\x5a\x44\x67\x4c\x55\x79\x78\x72\x50\x42\x32\x35\x71\x79\x78\x72\x4f','\x6f\x66\x66\x55\x44\x67\x66\x72\x77\x65\x35\x6e\x7a\x4b\x69\x33\x43\x63\x39\x6b\x44\x4b\x6d\x34\x7a\x77\x4c\x70\x79\x78\x6e\x41\x43\x4a\x48\x48\x41\x32\x7a\x34\x75\x64\x7a\x5a\x75\x65\x44\x6f\x44\x30\x76\x31\x45\x4e\x6e\x4d\x6e\x64\x30','\x43\x67\x66\x59\x43\x32\x75','\x44\x78\x72\x4d\x6f\x61','\x43\x4d\x76\x53\x79\x78\x72\x50\x44\x4d\x76\x65\x7a\x78\x6e\x30\x41\x77\x35\x48\x44\x67\x4c\x56\x42\x47','\x43\x32\x48\x48\x6d\x4a\x75\x32','\x77\x32\x76\x55\x41\x67\x66\x55\x79\x32\x75\x54\x43\x32\x66\x55\x7a\x67\x6a\x56\x45\x66\x30\x47','\x79\x32\x39\x57\x41\x77\x76\x4b','\x41\x77\x35\x4d\x42\x57','\x6f\x68\x50\x32\x71\x4d\x76\x58\x42\x57','\x6e\x74\x65\x31\x44\x77\x6e\x52\x42\x31\x6e\x59','\x6d\x74\x47\x59\x6d\x4a\x71\x33\x42\x75\x54\x34\x73\x67\x58\x55','\x43\x4d\x76\x48\x7a\x65\x7a\x50\x42\x67\x75','\x42\x77\x54\x4b\x41\x78\x69','\x6c\x49\x34\x56\x7a\x67\x4c\x5a\x44\x63\x39\x50\x42\x4d\x72\x4c\x45\x63\x35\x51\x43\x57','\x43\x4e\x76\x55\x44\x67\x4c\x54\x7a\x71','\x69\x63\x48\x48\x42\x68\x6a\x4c\x79\x77\x72\x35\x69\x67\x6e\x31\x43\x4e\x6a\x4c\x42\x4e\x71\x50\x69\x66\x53','\x79\x32\x39\x4b\x7a\x71','\x6f\x78\x72\x53\x44\x33\x66\x62\x42\x47','\x6e\x64\x65\x30\x6d\x68\x62\x4d\x43\x4b\x58\x74\x41\x61','\x44\x78\x6a\x53','\x44\x68\x6a\x50\x42\x71','\x72\x75\x35\x70\x72\x75\x35\x75','\x43\x4d\x76\x57\x42\x67\x66\x4a\x7a\x71','\x69\x67\x35\x56\x44\x63\x62\x4d\x42\x33\x76\x55\x7a\x64\x53\x47\x43\x32\x54\x50\x43\x68\x62\x50\x42\x4d\x43\x47\x79\x78\x6e\x5a\x7a\x78\x71\x47\x43\x33\x4c\x55\x79\x57','\x6d\x4a\x6a\x67\x43\x4d\x4c\x5a\x76\x4c\x61','\x7a\x78\x6a\x59\x42\x33\x69','\x72\x32\x6a\x58\x74\x4d\x43','\x6f\x64\x6d\x5a\x6f\x74\x79\x30\x77\x4e\x72\x55\x76\x76\x62\x31','\x69\x67\x31\x31\x43\x33\x71\x47\x79\x32\x39\x55\x44\x67\x66\x50\x42\x49\x62\x48\x42\x49\x62\x56\x79\x4d\x50\x4c\x79\x33\x71','\x74\x75\x76\x72\x73\x65\x6d','\x44\x4d\x39\x65\x71\x75\x6d','\x79\x4d\x66\x5a\x7a\x74\x79\x30','\x69\x67\x4c\x5a\x69\x67\x31\x50\x43\x33\x6e\x50\x42\x4d\x43\x47\x79\x73\x62\x55\x42\x32\x34\x54\x7a\x77\x31\x57\x44\x68\x4b\x47\x69\x4e\x62\x31\x79\x4d\x58\x50\x79\x30\x72\x50\x43\x49\x69\x47\x43\x33\x72\x59\x41\x77\x35\x4e'];_0x180d=function(){return _0x326f2f;};return _0x180d();}import{promises as _0x3c7d09}from'\x66\x73';import{join}from'\x70\x61\x74\x68';var CONFIG_FILENAME=_0x5603ab(0x1a2);async function loadEnhanceConfig(_0x2a1b9c=process[_0x5603ab(0x197)]()){const _0x11f7ed=_0x5603ab,_0x345392={'\x76\x6f\x44\x41\x43':function(_0x202a82,_0xd6bb0a){return _0x202a82!==_0xd6bb0a;},'\x79\x6e\x51\x64\x4f':_0x11f7ed(0x1a8),'\x64\x59\x46\x55\x54':function(_0x286e69,_0x18ab05){return _0x286e69!=_0x18ab05;}},_0xe587f=join(_0x2a1b9c,CONFIG_FILENAME);let _0x1a5a8f;try{_0x1a5a8f=await _0x3c7d09[_0x11f7ed(0x16b)](_0xe587f,_0x11f7ed(0x162));}catch(_0x4723ba){if(_0x4723ba[_0x11f7ed(0x170)]===_0x11f7ed(0x175))return null;throw new Error(_0x11f7ed(0x181)+CONFIG_FILENAME+'\x3a\x20'+_0x4723ba[_0x11f7ed(0x18c)]);}let _0xb82f10;try{_0xb82f10=JSON[_0x11f7ed(0x161)](_0x1a5a8f);}catch(_0x547e12){throw new Error(_0x11f7ed(0x186)+CONFIG_FILENAME+'\x3a\x20'+_0x547e12[_0x11f7ed(0x18c)]);}if(!_0xb82f10||typeof _0xb82f10!==_0x11f7ed(0x15c))throw new Error(CONFIG_FILENAME+_0x11f7ed(0x17c));const {publicDir:_0x3f8a63,swFilename:_0x189348}=_0xb82f10;if(_0x345392[_0x11f7ed(0x17e)](typeof _0x3f8a63,_0x345392[_0x11f7ed(0x185)])||_0x3f8a63[_0x11f7ed(0x174)]()[_0x11f7ed(0x199)]===-0xa6b+-0x11*-0x8d+-0x1*-0x10e)throw new Error(CONFIG_FILENAME+_0x11f7ed(0x180));if(_0x345392[_0x11f7ed(0x19f)](_0x189348,null)&&(typeof _0x189348!==_0x11f7ed(0x1a8)||_0x189348[_0x11f7ed(0x174)]()[_0x11f7ed(0x199)]===0x14*0xbf+0x2363+0x51*-0x9f))throw new Error(CONFIG_FILENAME+_0x11f7ed(0x189));return{'\x70\x75\x62\x6c\x69\x63\x44\x69\x72':_0x3f8a63[_0x11f7ed(0x174)](),'\x73\x77\x46\x69\x6c\x65\x6e\x61\x6d\x65':typeof _0x189348===_0x11f7ed(0x1a8)?_0x189348[_0x11f7ed(0x174)]():void(-0xe4f+0x5*-0x307+0x1*0x1d72)};}import{promises as _0x82c315}from'\x66\x73';function _0x18b3(_0x4f46ea,_0x5e602c){const _0x28302e=_0x180d();return _0x18b3=function(_0x1fa99b,_0x42f5ff){_0x1fa99b=_0x1fa99b-(0x3a5+-0x1082+0xe39);let _0x4760c2=_0x28302e[_0x1fa99b];if(_0x18b3['\x56\x47\x47\x4c\x43\x53']===undefined){var _0x4495b7=function(_0x373423){const _0x4d9ec0='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x3da7ee='',_0x34e842='';for(let _0x36ebcb=-0x6af+0x449+0x266*0x1,_0x2f3706,_0x3bd898,_0x288772=0x1*-0x1837+-0x1930+0x3167;_0x3bd898=_0x373423['\x63\x68\x61\x72\x41\x74'](_0x288772++);~_0x3bd898&&(_0x2f3706=_0x36ebcb%(-0x22e2+0x1cc1+0x625)?_0x2f3706*(-0x151a+0xe2+0x1478)+_0x3bd898:_0x3bd898,_0x36ebcb++%(0xa9*0x37+0x237+0x35*-0xba))?_0x3da7ee+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](-0x1308+-0x3*-0x405+0x7f8&_0x2f3706>>(-(-0x58f*-0x1+-0x1*-0x6+-0x593)*_0x36ebcb&-0x1*-0x1989+0x6bd*-0x5+-0x82e*-0x1)):0x8*-0x2d9+0x227f*-0x1+-0x1*-0x3947){_0x3bd898=_0x4d9ec0['\x69\x6e\x64\x65\x78\x4f\x66'](_0x3bd898);}for(let _0x1e32ea=-0x2*-0x2fb+-0x2bf*-0xe+-0x2c68,_0x490c64=_0x3da7ee['\x6c\x65\x6e\x67\x74\x68'];_0x1e32ea<_0x490c64;_0x1e32ea++){_0x34e842+='\x25'+('\x30\x30'+_0x3da7ee['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x1e32ea)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](-0x8a*0x3+-0x78d+0x93b))['\x73\x6c\x69\x63\x65'](-(0x2dd*-0x6+0xaf2+0x31f*0x2));}return decodeURIComponent(_0x34e842);};_0x18b3['\x49\x64\x6c\x70\x76\x62']=_0x4495b7,_0x4f46ea=arguments,_0x18b3['\x56\x47\x47\x4c\x43\x53']=!![];}const _0xaccfd1=_0x28302e[0x19de+-0x19*0xfd+-0x129],_0x18a5c7=_0x1fa99b+_0xaccfd1,_0x468bb4=_0x4f46ea[_0x18a5c7];return!_0x468bb4?(_0x4760c2=_0x18b3['\x49\x64\x6c\x70\x76\x62'](_0x4760c2),_0x4f46ea[_0x18a5c7]=_0x4760c2):_0x4760c2=_0x468bb4,_0x4760c2;},_0x18b3(_0x4f46ea,_0x5e602c);}import{createHash}from'\x63\x72\x79\x70\x74\x6f';import{dirname,join as _0x4daff2}from'\x70\x61\x74\x68';import{fileURLToPath}from'\x75\x72\x6c';var manifest={'\x76\x65\x72\x73\x69\x6f\x6e':_0x5603ab(0x1a7),'\x73\x65\x72\x76\x69\x63\x65\x57\x6f\x72\x6b\x65\x72':_0x5603ab(0x15d),'\x72\x75\x6e\x74\x69\x6d\x65':_0x5603ab(0x19e),'\x72\x75\x6e\x74\x69\x6d\x65\x44\x69\x67\x65\x73\x74':_0x5603ab(0x160),'\x73\x65\x72\x76\x69\x63\x65\x57\x6f\x72\x6b\x65\x72\x44\x69\x67\x65\x73\x74':_0x5603ab(0x191)},distDir=dirname(fileURLToPath(new URL(_0x5603ab(0x16d),import.meta[_0x5603ab(0x173)])));async function syncAssets(_0x26c614){const _0xafa809=_0x5603ab,_0x26d5d1={'\x4d\x45\x51\x48\x43':_0xafa809(0x188),'\x47\x62\x71\x4e\x67':function(_0x36f167,_0x59c90b){return _0x36f167(_0x59c90b);},'\x50\x49\x6e\x51\x77':function(_0x29ec7f,_0x37f8ba,_0x5e4588){return _0x29ec7f(_0x37f8ba,_0x5e4588);}},_0x51ba82=[];manifest[_0xafa809(0x1aa)]&&_0x51ba82[_0xafa809(0x187)]({'\x6d\x61\x6e\x69\x66\x65\x73\x74\x50\x61\x74\x68':manifest[_0xafa809(0x1aa)],'\x64\x69\x67\x65\x73\x74':manifest[_0xafa809(0x15e)],'\x6f\x76\x65\x72\x72\x69\x64\x65':_0x26c614[_0xafa809(0x19a)]?'\x2e\x2f'+_0x26c614[_0xafa809(0x19a)]:void(0xc7c+-0x1333+0x6b7)});manifest[_0xafa809(0x16e)]&&_0x51ba82[_0xafa809(0x187)]({'\x6d\x61\x6e\x69\x66\x65\x73\x74\x50\x61\x74\x68':manifest[_0xafa809(0x16e)],'\x64\x69\x67\x65\x73\x74':manifest[_0xafa809(0x184)]});if(_0xafa809(0x1a4)in manifest&&manifest[_0xafa809(0x1a4)])_0x51ba82[_0xafa809(0x187)]({'\x6d\x61\x6e\x69\x66\x65\x73\x74\x50\x61\x74\x68':manifest[_0xafa809(0x1a4)],'\x64\x69\x67\x65\x73\x74':_0xafa809(0x194)in manifest?manifest[_0xafa809(0x194)]:void(0x641+-0xd*0x2a7+0x1c3a)});else throw new Error(_0x26d5d1[_0xafa809(0x17d)]);const _0xe07e=[];for(const _0x1918e0 of _0x51ba82){const _0x362920=_0x26d5d1[_0xafa809(0x17a)](cleanRelativePath,_0x1918e0[_0xafa809(0x192)]??_0x1918e0[_0xafa809(0x1a1)]),_0x54a3eb=_0x26d5d1[_0xafa809(0x1a6)](_0x4daff2,distDir,cleanRelativePath(_0x1918e0[_0xafa809(0x1a1)])),_0x52db1f=_0x4daff2(_0x26c614[_0xafa809(0x190)],_0x362920),_0x4f038d=await readDigest(_0x52db1f);if(_0x4f038d&&_0x1918e0[_0xafa809(0x198)]&&_0x4f038d===_0x1918e0[_0xafa809(0x198)]){_0xe07e[_0xafa809(0x187)]({'\x73\x6f\x75\x72\x63\x65\x50\x61\x74\x68':_0x54a3eb,'\x64\x65\x73\x74\x69\x6e\x61\x74\x69\x6f\x6e\x50\x61\x74\x68':_0x52db1f,'\x72\x65\x6c\x61\x74\x69\x76\x65\x44\x65\x73\x74\x69\x6e\x61\x74\x69\x6f\x6e':_0x362920,'\x73\x74\x61\x74\x75\x73':_0xafa809(0x18b)});continue;}await _0x82c315[_0xafa809(0x16c)](dirname(_0x52db1f),{'\x72\x65\x63\x75\x72\x73\x69\x76\x65':!![]}),await _0x82c315[_0xafa809(0x1a5)](_0x54a3eb,_0x52db1f),_0xe07e[_0xafa809(0x187)]({'\x73\x6f\x75\x72\x63\x65\x50\x61\x74\x68':_0x54a3eb,'\x64\x65\x73\x74\x69\x6e\x61\x74\x69\x6f\x6e\x50\x61\x74\x68':_0x52db1f,'\x72\x65\x6c\x61\x74\x69\x76\x65\x44\x65\x73\x74\x69\x6e\x61\x74\x69\x6f\x6e':_0x362920,'\x73\x74\x61\x74\x75\x73':_0xafa809(0x166)});}return _0xe07e;}function cleanRelativePath(_0x50bc1c){const _0x4b2631=_0x5603ab;return _0x50bc1c[_0x4b2631(0x176)](/^[./]+/,'');}async function readDigest(_0x356b25){const _0xb88d29=_0x5603ab,_0xa4632={'\x4d\x6d\x66\x4e\x4d':_0xb88d29(0x164),'\x6c\x45\x45\x68\x41':_0xb88d29(0x17f),'\x71\x67\x6c\x79\x57':function(_0x545ed2,_0x2b675b){return _0x545ed2===_0x2b675b;}};try{const _0x38a3fc=await _0x82c315[_0xb88d29(0x16b)](_0x356b25);return createHash(_0xa4632[_0xb88d29(0x195)])[_0xb88d29(0x1a0)](_0x38a3fc)[_0xb88d29(0x198)](_0xa4632[_0xb88d29(0x18f)]);}catch(_0x585bbb){if(_0xa4632[_0xb88d29(0x183)](_0x585bbb[_0xb88d29(0x170)],_0xb88d29(0x175)))return null;throw _0x585bbb;}}async function main(){const _0x23820a=_0x5603ab,_0x1a05a4=await loadEnhanceConfig();if(!_0x1a05a4){console[_0x23820a(0x167)](_0x23820a(0x165)+CONFIG_FILENAME+_0x23820a(0x177));return;}const _0x25bff1=resolve(process[_0x23820a(0x197)](),_0x1a05a4[_0x23820a(0x190)]),_0x434013=await syncAssets({'\x70\x75\x62\x6c\x69\x63\x44\x69\x72':_0x25bff1,'\x73\x77\x46\x69\x6c\x65\x6e\x61\x6d\x65':_0x1a05a4[_0x23820a(0x19a)]});for(const _0x73cd7a of _0x434013){const _0x3ef117=relative(process[_0x23820a(0x197)](),_0x73cd7a[_0x23820a(0x15f)]);_0x73cd7a[_0x23820a(0x1a9)]===_0x23820a(0x18b)?console[_0x23820a(0x167)](_0x23820a(0x19b)+_0x73cd7a[_0x23820a(0x163)]+_0x23820a(0x16f)+_0x3ef117+'\x5d'):console[_0x23820a(0x167)](_0x23820a(0x196)+_0x73cd7a[_0x23820a(0x163)]+_0x23820a(0x19d)+_0x3ef117);}}main()[_0x5603ab(0x18d)](_0x123f31=>{const _0x3f3213=_0x5603ab;console[_0x3f3213(0x179)](_0x3f3213(0x19c)),console[_0x3f3213(0x179)](_0x123f31),process[_0x3f3213(0x1a3)](0x543*-0x3+0x12c1+-0x2f7);});
|