@baskerhq/localstage 1.0.1-beta.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/README.md +56 -0
- package/dist/basker.d.ts +1 -0
- package/dist/basker.js +2 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +2 -0
- package/dist/commands/theme/check.d.ts +19 -0
- package/dist/commands/theme/check.js +1 -0
- package/dist/commands/theme/dev.d.ts +28 -0
- package/dist/commands/theme/dev.js +1 -0
- package/dist/commands/theme/pull.d.ts +10 -0
- package/dist/commands/theme/pull.js +1 -0
- package/dist/commands/theme/set.d.ts +19 -0
- package/dist/commands/theme/set.js +1 -0
- package/dist/config/defaults.json +3 -0
- package/dist/index.d.ts +126 -0
- package/dist/index.js +1 -0
- package/dist/livereload/client.js +205 -0
- package/package.json +102 -0
package/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# LocalStage
|
|
2
|
+
|
|
3
|
+
LocalStage is a local development server and CLI for Basker themes. Run a theme locally while using live data from a Basker CMS environment.
|
|
4
|
+
|
|
5
|
+
## Install (local repo)
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm localstage:install
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This installs a wrapper in `~/.local/bin` that points at your local build.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
From a theme directory:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
basker theme dev
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Or run it with a specific CMS URL and theme path:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
BASKER_CMS_URL=https://beta.basker.net LOCALSTAGE_THEME_PATH=/path/to/theme basker theme dev
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Open http://localhost:9292 and sign in.
|
|
28
|
+
|
|
29
|
+
## Theme Structure
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
your_theme/
|
|
33
|
+
├── layouts/
|
|
34
|
+
│ └── default.liquid
|
|
35
|
+
├── templates/
|
|
36
|
+
│ ├── page.liquid
|
|
37
|
+
│ ├── post.liquid
|
|
38
|
+
│ └── 404.liquid
|
|
39
|
+
├── snippets/
|
|
40
|
+
└── assets/
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Environment Variables
|
|
44
|
+
|
|
45
|
+
- `BASKER_CMS_URL` or `PAYLOAD_URL` - CMS base URL (default: `http://localhost:3000`)
|
|
46
|
+
- `LOCALSTAGE_THEME_PATH` - path to a theme directory
|
|
47
|
+
|
|
48
|
+
## Commands
|
|
49
|
+
|
|
50
|
+
- `basker theme dev` - start the local dev server
|
|
51
|
+
- `basker theme check` - validate theme structure
|
|
52
|
+
|
|
53
|
+
## Troubleshooting
|
|
54
|
+
|
|
55
|
+
- Ensure your CMS URL is reachable and your account can access the target tenant.
|
|
56
|
+
- Verify the theme path exists and contains `layouts/` and `templates/`.
|
package/dist/basker.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
package/dist/basker.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const _0x58a3a8=_0x2799;(function(_0xe4a0e,_0x5e6a58){const _0x1c89be=_0x2799,_0x65f9c8=_0xe4a0e();while(!![]){try{const _0xd4e97=-parseInt(_0x1c89be(0x15c))/0x1+-parseInt(_0x1c89be(0x161))/0x2*(-parseInt(_0x1c89be(0x16c))/0x3)+parseInt(_0x1c89be(0x157))/0x4+-parseInt(_0x1c89be(0x170))/0x5*(parseInt(_0x1c89be(0x16d))/0x6)+-parseInt(_0x1c89be(0x166))/0x7+parseInt(_0x1c89be(0x15d))/0x8*(-parseInt(_0x1c89be(0x16e))/0x9)+parseInt(_0x1c89be(0x173))/0xa;if(_0xd4e97===_0x5e6a58)break;else _0x65f9c8['push'](_0x65f9c8['shift']());}catch(_0x4aab26){_0x65f9c8['push'](_0x65f9c8['shift']());}}}(_0x14cf,0x2782b));import{run}from'\x40\x6f\x63\x6c\x69\x66\x2f\x63\x6f\x72\x65';import{basename}from'\x70\x61\x74\x68';var n=(_0x4bc2ce,_0x30c4de)=>()=>(_0x4bc2ce&&(_0x30c4de=_0x4bc2ce(_0x4bc2ce=0x0)),_0x30c4de),c,l,o,t=n(()=>{const _0x1bd128=_0x2799;c=[_0x1bd128(0x171),_0x1bd128(0x15e)],l=_0x348e5a=>typeof _0x348e5a!=_0x1bd128(0x16a)||_0x348e5a[_0x1bd128(0x163)]()[_0x1bd128(0x15b)]===0x0,o=_0x3b830b=>{const _0x3840a3=_0x1bd128;if(_0x3b830b[_0x3840a3(0x15b)]===0x0||_0x3b830b[_0x3840a3(0x159)](l))return[...c];if(_0x3b830b['\x6c\x65\x6e\x67\x74\x68']===0x1){let _0x5928a2=_0x3b830b[0x0]?.[_0x3840a3(0x163)]();if(_0x5928a2&&_0x5928a2[_0x3840a3(0x164)]('\x3a')){let _0x132a97=_0x5928a2[_0x3840a3(0x15f)]('\x3a')[_0x3840a3(0x167)](Boolean);if(_0x132a97[_0x3840a3(0x15b)]>0x0)return _0x132a97;}}return[..._0x3b830b];};}),p,g,i=n(()=>{t(),(p=()=>{const _0x11b1c3=_0x2799;if(process[_0x11b1c3(0x158)][_0x11b1c3(0x169)])return process['\x65\x6e\x76'][_0x11b1c3(0x169)];let _0x1283dc=basename(process[_0x11b1c3(0x16b)][0x1]??'');return _0x1283dc===_0x11b1c3(0x16f)||_0x1283dc===_0x11b1c3(0x172)?_0x11b1c3(0x16f):_0x11b1c3(0x15a);},g=async()=>{const _0x39e489=_0x2799;process[_0x39e489(0x158)][_0x39e489(0x169)]=p();let _0xd216d=o(process[_0x39e489(0x16b)][_0x39e489(0x168)](0x2));try{await run(_0xd216d,import.meta.url);}catch(_0x181e16){console[_0x39e489(0x160)](_0x181e16),process[_0x39e489(0x162)](0x1);}}),g();});function _0x14cf(){const _0x59a7db=['\x62\x61\x73\x6b\x65\x72\x2e\x6a\x73','\x38\x31\x33\x38\x32\x37\x30\x74\x45\x4d\x4d\x54\x51','\x74\x68\x65\x6e','\x34\x31\x34\x36\x33\x32\x6e\x65\x56\x58\x76\x51','\x65\x6e\x76','\x65\x76\x65\x72\x79','\x6c\x6f\x63\x61\x6c\x73\x74\x61\x67\x65','\x6c\x65\x6e\x67\x74\x68','\x32\x35\x33\x37\x37\x35\x66\x48\x4a\x44\x44\x55','\x32\x38\x38\x35\x36\x7a\x44\x6d\x69\x42\x79','\x64\x65\x76','\x73\x70\x6c\x69\x74','\x65\x72\x72\x6f\x72','\x31\x35\x34\x37\x35\x34\x4d\x4a\x6c\x51\x6d\x7a','\x65\x78\x69\x74','\x74\x72\x69\x6d','\x69\x6e\x63\x6c\x75\x64\x65\x73','\x72\x65\x73\x6f\x6c\x76\x65','\x32\x31\x33\x31\x39\x37\x36\x49\x62\x4c\x70\x4e\x67','\x66\x69\x6c\x74\x65\x72','\x73\x6c\x69\x63\x65','\x4f\x43\x4c\x49\x46\x5f\x42\x49\x4e','\x73\x74\x72\x69\x6e\x67','\x61\x72\x67\x76','\x36\x41\x4f\x66\x6d\x52\x65','\x31\x30\x36\x35\x30\x30\x6d\x7a\x6d\x57\x44\x61','\x36\x35\x37\x50\x64\x54\x55\x48\x41','\x62\x61\x73\x6b\x65\x72','\x32\x35\x49\x50\x55\x6c\x73\x4d','\x74\x68\x65\x6d\x65'];_0x14cf=function(){return _0x59a7db;};return _0x14cf();}function _0x2799(_0x5bb371,_0x5088b7){_0x5bb371=_0x5bb371-0x157;const _0x14cff2=_0x14cf();let _0x27992c=_0x14cff2[_0x5bb371];return _0x27992c;}process[_0x58a3a8(0x158)]['\x42\x41\x53\x4b\x45\x52\x5f\x43\x4c\x49\x5f\x4d\x4f\x44\x45']=_0x58a3a8(0x16f),process[_0x58a3a8(0x158)][_0x58a3a8(0x169)]=_0x58a3a8(0x16f),Promise[_0x58a3a8(0x165)]()[_0x58a3a8(0x174)](()=>i());
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
function _0x112a(_0x5b9f85,_0x50c50e){_0x5b9f85=_0x5b9f85-0x106;const _0x15773a=_0x1577();let _0x112a1a=_0x15773a[_0x5b9f85];return _0x112a1a;}const _0x4fdf92=_0x112a;(function(_0x4ee4ed,_0x476dbc){const _0x249a1e=_0x112a,_0x5807dc=_0x4ee4ed();while(!![]){try{const _0x4186c3=-parseInt(_0x249a1e(0x114))/0x1+-parseInt(_0x249a1e(0x107))/0x2+-parseInt(_0x249a1e(0x118))/0x3+parseInt(_0x249a1e(0x11a))/0x4*(parseInt(_0x249a1e(0x116))/0x5)+-parseInt(_0x249a1e(0x119))/0x6*(-parseInt(_0x249a1e(0x109))/0x7)+parseInt(_0x249a1e(0x10e))/0x8*(parseInt(_0x249a1e(0x11b))/0x9)+parseInt(_0x249a1e(0x117))/0xa;if(_0x4186c3===_0x476dbc)break;else _0x5807dc['push'](_0x5807dc['shift']());}catch(_0x3306dd){_0x5807dc['push'](_0x5807dc['shift']());}}}(_0x1577,0x778f0));import{run}from'\x40\x6f\x63\x6c\x69\x66\x2f\x63\x6f\x72\x65';import{basename}from'\x70\x61\x74\x68';var t=[_0x4fdf92(0x10f),_0x4fdf92(0x10d)],o=_0x452983=>typeof _0x452983!='\x73\x74\x72\x69\x6e\x67'||_0x452983['\x74\x72\x69\x6d']()[_0x4fdf92(0x10c)]===0x0,n=_0x26f6cc=>{const _0x33d8b8=_0x4fdf92;if(_0x26f6cc[_0x33d8b8(0x10c)]===0x0||_0x26f6cc[_0x33d8b8(0x112)](o))return[...t];if(_0x26f6cc['\x6c\x65\x6e\x67\x74\x68']===0x1){let _0x4426b8=_0x26f6cc[0x0]?.[_0x33d8b8(0x10a)]();if(_0x4426b8&&_0x4426b8['\x69\x6e\x63\x6c\x75\x64\x65\x73']('\x3a')){let _0x1df457=_0x4426b8['\x73\x70\x6c\x69\x74']('\x3a')[_0x33d8b8(0x11c)](Boolean);if(_0x1df457[_0x33d8b8(0x10c)]>0x0)return _0x1df457;}}return[..._0x26f6cc];},l=()=>{const _0x559ca3=_0x4fdf92;if(process[_0x559ca3(0x10b)][_0x559ca3(0x111)])return process[_0x559ca3(0x10b)][_0x559ca3(0x111)];let _0x35dab3=basename(process[_0x559ca3(0x113)][0x1]??'');return _0x35dab3===_0x559ca3(0x115)||_0x35dab3===_0x559ca3(0x108)?_0x559ca3(0x115):_0x559ca3(0x11d);},a=async()=>{const _0x38172c=_0x4fdf92;process['\x65\x6e\x76'][_0x38172c(0x111)]=l();let _0x68a100=n(process['\x61\x72\x67\x76'][_0x38172c(0x106)](0x2));try{await run(_0x68a100,import.meta.url);}catch(_0x51f821){console['\x65\x72\x72\x6f\x72'](_0x51f821),process[_0x38172c(0x110)](0x1);}};function _0x1577(){const _0x48f0c4=['\x37\x62\x6a\x4d\x4f\x6d\x6c','\x74\x72\x69\x6d','\x65\x6e\x76','\x6c\x65\x6e\x67\x74\x68','\x64\x65\x76','\x31\x30\x30\x39\x37\x30\x34\x6a\x53\x76\x69\x44\x53','\x74\x68\x65\x6d\x65','\x65\x78\x69\x74','\x4f\x43\x4c\x49\x46\x5f\x42\x49\x4e','\x65\x76\x65\x72\x79','\x61\x72\x67\x76','\x34\x36\x36\x34\x31\x49\x57\x47\x70\x44\x49','\x62\x61\x73\x6b\x65\x72','\x38\x39\x37\x32\x35\x35\x54\x5a\x46\x57\x4a\x68','\x31\x30\x37\x34\x34\x37\x35\x30\x46\x48\x4d\x4c\x49\x75','\x32\x32\x32\x37\x30\x39\x32\x78\x6b\x7a\x58\x4a\x4b','\x31\x39\x30\x30\x33\x37\x34\x61\x43\x50\x54\x4a\x6b','\x34\x70\x65\x65\x46\x59\x53','\x32\x37\x62\x64\x44\x47\x5a\x4c','\x66\x69\x6c\x74\x65\x72','\x6c\x6f\x63\x61\x6c\x73\x74\x61\x67\x65','\x73\x6c\x69\x63\x65','\x31\x33\x34\x31\x31\x35\x34\x46\x6d\x46\x48\x56\x57','\x62\x61\x73\x6b\x65\x72\x2e\x6a\x73'];_0x1577=function(){return _0x48f0c4;};return _0x1577();}a();
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as _oclif_core_interfaces from '@oclif/core/interfaces';
|
|
2
|
+
import { Command } from '@oclif/core';
|
|
3
|
+
|
|
4
|
+
declare class ThemeCheck extends Command {
|
|
5
|
+
static aliases: string[];
|
|
6
|
+
static description: string;
|
|
7
|
+
static args: {
|
|
8
|
+
themePath: _oclif_core_interfaces.Arg<string | undefined, Record<string, unknown>>;
|
|
9
|
+
};
|
|
10
|
+
static flags: {
|
|
11
|
+
theme: _oclif_core_interfaces.OptionFlag<string | undefined, _oclif_core_interfaces.CustomOptions>;
|
|
12
|
+
format: _oclif_core_interfaces.OptionFlag<string, _oclif_core_interfaces.CustomOptions>;
|
|
13
|
+
json: _oclif_core_interfaces.BooleanFlag<boolean>;
|
|
14
|
+
"fail-level": _oclif_core_interfaces.OptionFlag<string, _oclif_core_interfaces.CustomOptions>;
|
|
15
|
+
};
|
|
16
|
+
run(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { ThemeCheck as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x51b4(_0x45dac9,_0xf8720b){_0x45dac9=_0x45dac9-0xb3;const _0x48fbe8=_0x48fb();let _0x51b4a1=_0x48fbe8[_0x45dac9];return _0x51b4a1;}function _0x48fb(){const _0x3c8b21=['\x56\x61\x6c\x69\x64\x61\x74\x65\x20\x74\x68\x65\x6d\x65\x20\x73\x74\x72\x75\x63\x74\x75\x72\x65\x20\x61\x6e\x64\x20\x73\x63\x68\x65\x6d\x61\x2e','\x74\x65\x6d\x70\x6c\x61\x74\x65\x73\x2f','\x74\x65\x6d\x70\x6c\x61\x74\x65\x73','\x62\x6c\x6f\x63\x6b\x2d\x6d\x75\x6c\x74\x69\x70\x6c\x65\x2d\x73\x63\x68\x65\x6d\x61','\x32\x31\x78\x76\x43\x43\x75\x72','\x68\x61\x73','\x73\x65\x76\x65\x72\x69\x74\x79','\x35\x33\x39\x32\x30\x36\x35\x76\x46\x42\x4a\x51\x79','\x42\x6c\x6f\x63\x6b\x20\x68\x61\x73\x20\x6d\x75\x6c\x74\x69\x70\x6c\x65\x20\x73\x63\x68\x65\x6d\x61\x20\x74\x61\x67\x73\x3b\x20\x6f\x6e\x6c\x79\x20\x74\x68\x65\x20\x66\x69\x72\x73\x74\x20\x77\x69\x6c\x6c\x20\x62\x65\x20\x75\x73\x65\x64\x2e','\x20\x65\x72\x72\x6f\x72\x73\x2c\x20','\x75\x74\x66\x2d\x38','\x6d\x69\x73\x73\x69\x6e\x67\x2d\x6c\x61\x79\x6f\x75\x74\x73','\x62\x75\x69\x6c\x64','\x32\x58\x59\x47\x6f\x72\x4b','\x6d\x65\x73\x73\x61\x67\x65','\x54\x68\x65\x6d\x65\x20\x63\x68\x65\x63\x6b\x3a\x20','\x73\x74\x72\x69\x6e\x67\x69\x66\x79','\x36\x7a\x58\x79\x4f\x66\x63','\x27\x20\x62\x75\x74\x20\x6e\x6f\x20\x6d\x61\x74\x63\x68\x69\x6e\x67\x20\x62\x6c\x6f\x63\x6b\x20\x73\x63\x68\x65\x6d\x61\x20\x77\x61\x73\x20\x66\x6f\x75\x6e\x64\x2e','\x4d\x69\x6e\x69\x6d\x75\x6d\x20\x73\x65\x76\x65\x72\x69\x74\x79\x20\x74\x68\x61\x74\x20\x73\x68\x6f\x75\x6c\x64\x20\x66\x61\x69\x6c\x20\x28\x65\x72\x72\x6f\x72\x2c\x20\x77\x61\x72\x6e\x69\x6e\x67\x2c\x20\x69\x6e\x66\x6f\x29','\x6c\x65\x6e\x67\x74\x68','\x74\x72\x69\x6d','\x64\x69\x73\x74','\x66\x6c\x61\x67\x73','\x4c\x4f\x43\x41\x4c\x53\x54\x41\x47\x45\x5f\x54\x48\x45\x4d\x45\x5f\x50\x41\x54\x48','\x6d\x69\x73\x73\x69\x6e\x67\x2d\x64\x65\x66\x61\x75\x6c\x74\x2d\x6c\x61\x79\x6f\x75\x74','\x44\x75\x70\x6c\x69\x63\x61\x74\x65\x20\x62\x6c\x6f\x63\x6b\x20\x6e\x61\x6d\x65\x20\x27','\x69\x6e\x64\x65\x78','\x4f\x75\x74\x70\x75\x74\x20\x4a\x53\x4f\x4e\x20\x72\x65\x70\x6f\x72\x74','\x65\x78\x69\x74','\x33\x37\x34\x38\x39\x35\x41\x4d\x7a\x57\x76\x44','\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e','\x31\x33\x32\x35\x33\x35\x32\x49\x41\x78\x4b\x4f\x68','\x6c\x61\x79\x6f\x75\x74\x73\x2f','\x73\x74\x72\x69\x6e\x67','\x74\x68\x65\x6d\x65','\x6a\x73\x6f\x6e','\x54\x65\x6d\x70\x6c\x61\x74\x65\x20\x73\x63\x68\x65\x6d\x61\x20\x27\x62\x6c\x6f\x63\x6b\x73\x27\x20\x73\x68\x6f\x75\x6c\x64\x20\x62\x65\x20\x61\x6e\x20\x61\x72\x72\x61\x79\x20\x6f\x66\x20\x62\x6c\x6f\x63\x6b\x20\x6e\x61\x6d\x65\x73\x2e','\x31\x39\x33\x30\x32\x36\x34\x4a\x77\x51\x62\x51\x6a','\x73\x63\x68\x65\x6d\x61\x2d\x69\x6e\x76\x61\x6c\x69\x64\x2d\x6a\x73\x6f\x6e','\x50\x61\x74\x68\x20\x74\x6f\x20\x74\x68\x65\x20\x74\x68\x65\x6d\x65\x20\x64\x69\x72\x65\x63\x74\x6f\x72\x79','\x62\x6c\x6f\x63\x6b\x2d\x73\x65\x74\x74\x69\x6e\x67\x73\x2d\x69\x6e\x76\x61\x6c\x69\x64','\x64\x65\x66\x61\x75\x6c\x74\x2e\x6c\x69\x71\x75\x69\x64','\x63\x68\x65\x63\x6b','\x69\x73\x41\x72\x72\x61\x79','\x73\x65\x74','\x74\x65\x6d\x70\x6c\x61\x74\x65\x2d\x62\x6c\x6f\x63\x6b\x73\x2d\x69\x6e\x76\x61\x6c\x69\x64','\x73\x63\x68\x65\x6d\x61\x2d\x65\x6d\x70\x74\x79','\x63\x6f\x64\x65','\x4d\x69\x73\x73\x69\x6e\x67\x20\x74\x65\x6d\x70\x6c\x61\x74\x65\x73\x20\x64\x69\x72\x65\x63\x74\x6f\x72\x79\x2e','\x54\x65\x6d\x70\x6c\x61\x74\x65\x20\x73\x63\x68\x65\x6d\x61\x20\x27\x62\x6c\x6f\x63\x6b\x73\x27\x20\x65\x6e\x74\x72\x69\x65\x73\x20\x73\x68\x6f\x75\x6c\x64\x20\x62\x65\x20\x73\x74\x72\x69\x6e\x67\x73\x2e','\x66\x6f\x72\x6d\x61\x74','\x53\x63\x68\x65\x6d\x61\x20\x74\x61\x67\x20\x69\x73\x20\x65\x6d\x70\x74\x79\x2e','\x74\x65\x6d\x70\x6c\x61\x74\x65\x2d\x73\x65\x74\x74\x69\x6e\x67\x73\x2d\x69\x6e\x76\x61\x6c\x69\x64','\x62\x6c\x6f\x63\x6b\x2d\x64\x75\x70\x6c\x69\x63\x61\x74\x65\x2d\x6e\x61\x6d\x65','\x4e\x6f\x20\x4c\x69\x71\x75\x69\x64\x20\x74\x65\x6d\x70\x6c\x61\x74\x65\x73\x20\x66\x6f\x75\x6e\x64\x20\x69\x6e\x20\x74\x65\x6d\x70\x6c\x61\x74\x65\x73\x2f\x2e','\x70\x75\x73\x68','\x31\x32\x41\x56\x58\x64\x6a\x4b','\x62\x6c\x6f\x63\x6b\x2d\x6d\x69\x73\x73\x69\x6e\x67\x2d\x73\x63\x68\x65\x6d\x61','\x66\x69\x6c\x65','\x54\x68\x65\x6d\x65\x20\x70\x61\x74\x68\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x3a\x20','\x66\x61\x69\x6c\x2d\x6c\x65\x76\x65\x6c','\u2705\x20\x4e\x6f\x20\x69\x73\x73\x75\x65\x73\x20\x66\x6f\x75\x6e\x64\x2e','\x70\x61\x72\x73\x65','\x54\x65\x6d\x70\x6c\x61\x74\x65\x20\x68\x61\x73\x20\x6d\x75\x6c\x74\x69\x70\x6c\x65\x20\x73\x63\x68\x65\x6d\x61\x20\x74\x61\x67\x73\x3b\x20\x6f\x6e\x6c\x79\x20\x74\x68\x65\x20\x66\x69\x72\x73\x74\x20\x77\x69\x6c\x6c\x20\x62\x65\x20\x75\x73\x65\x64\x2e','\x2d\x2d\x66\x61\x69\x6c\x2d\x6c\x65\x76\x65\x6c\x20\x6d\x75\x73\x74\x20\x62\x65\x20\x27\x65\x72\x72\x6f\x72\x27\x2c\x20\x27\x77\x61\x72\x6e\x69\x6e\x67\x27\x2c\x20\x6f\x72\x20\x27\x69\x6e\x66\x6f\x27\x2e','\x35\x34\x34\x38\x32\x32\x67\x4e\x54\x64\x45\x57','\x42\x6c\x6f\x63\x6b\x20\x69\x73\x20\x6d\x69\x73\x73\x69\x6e\x67\x20\x61\x20\x73\x63\x68\x65\x6d\x61\x20\x74\x61\x67\x2e','\x4d\x69\x73\x73\x69\x6e\x67\x20\x6c\x61\x79\x6f\x75\x74\x73\x2f\x64\x65\x66\x61\x75\x6c\x74\x2e\x6c\x69\x71\x75\x69\x64\x2e','\x45\x6e\x76\x69\x72\x6f\x6e\x6d\x65\x6e\x74\x20\x74\x68\x65\x6d\x65\x20\x70\x61\x74\x68\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x3a\x20','\x74\x65\x6d\x70\x6c\x61\x74\x65\x2d\x62\x6c\x6f\x63\x6b\x2d\x6d\x69\x73\x73\x69\x6e\x67','\x31\x30\x50\x6b\x6c\x63\x7a\x66','\x2d\x20\x5b','\x62\x6c\x6f\x63\x6b\x73','\x65\x6e\x64\x73\x57\x69\x74\x68','\x4e\x6f\x20\x74\x68\x65\x6d\x65\x20\x66\x69\x6c\x65\x73\x20\x64\x65\x74\x65\x63\x74\x65\x64\x20\x69\x6e\x20\x63\x75\x72\x72\x65\x6e\x74\x20\x64\x69\x72\x65\x63\x74\x6f\x72\x79\x2e\x20\x45\x78\x70\x65\x63\x74\x65\x64\x20\x74\x6f\x20\x66\x69\x6e\x64\x3a\x20\x6c\x61\x79\x6f\x75\x74\x73\x2f\x20\x6f\x72\x20\x74\x65\x6d\x70\x6c\x61\x74\x65\x73\x2f\x2e','\x27\x20\x28\x61\x6c\x73\x6f\x20\x69\x6e\x20','\x67\x65\x74','\x62\x6f\x6f\x6c\x65\x61\x6e','\x6c\x69\x6e\x65','\x2e\x67\x69\x74','\x61\x6c\x69\x61\x73\x65\x73','\x74\x65\x78\x74','\x2e\x62\x61\x73\x6b\x65\x72','\x72\x61\x77','\x54\x65\x6d\x70\x6c\x61\x74\x65\x20\x73\x63\x68\x65\x6d\x61\x20\x27\x73\x65\x74\x74\x69\x6e\x67\x73\x27\x20\x73\x68\x6f\x75\x6c\x64\x20\x62\x65\x20\x61\x6e\x20\x61\x72\x72\x61\x79\x2e','\x73\x6f\x72\x74','\x2e\x6c\x69\x71\x75\x69\x64','\x54\x65\x6d\x70\x6c\x61\x74\x65\x20\x69\x73\x20\x6d\x69\x73\x73\x69\x6e\x67\x20\x61\x20\x73\x63\x68\x65\x6d\x61\x20\x74\x61\x67\x2e','\x42\x6c\x6f\x63\x6b\x20\x73\x63\x68\x65\x6d\x61\x20\x69\x73\x20\x6d\x69\x73\x73\x69\x6e\x67\x20\x72\x65\x71\x75\x69\x72\x65\x64\x20\x27\x6e\x61\x6d\x65\x27\x20\x66\x69\x65\x6c\x64\x2e','\x4f\x75\x74\x70\x75\x74\x20\x66\x6f\x72\x6d\x61\x74\x20\x28\x74\x65\x78\x74\x20\x6f\x72\x20\x6a\x73\x6f\x6e\x29','\x6d\x61\x74\x63\x68\x41\x6c\x6c','\x72\x75\x6e','\x42\x6c\x6f\x63\x6b\x20\x73\x63\x68\x65\x6d\x61\x20\x27\x73\x65\x74\x74\x69\x6e\x67\x73\x27\x20\x6d\x75\x73\x74\x20\x62\x65\x20\x61\x6e\x20\x61\x72\x72\x61\x79\x2e','\x49\x6e\x76\x61\x6c\x69\x64\x20\x4a\x53\x4f\x4e','\x66\x69\x6c\x74\x65\x72','\x61\x72\x67\x73','\x69\x6e\x66\x6f','\x6c\x6f\x67','\x6d\x69\x73\x73\x69\x6e\x67\x2d\x74\x65\x6d\x70\x6c\x61\x74\x65\x73','\x32\x34\x39\x35\x33\x31\x36\x4c\x56\x49\x65\x55\x49','\x2e\x73\x73\x74','\x65\x72\x72\x6f\x72','\x6e\x6f\x64\x65\x5f\x6d\x6f\x64\x75\x6c\x65\x73','\x38\x38\x33\x32\x30\x34\x33\x45\x56\x69\x70\x76\x4d','\x73\x6c\x69\x63\x65','\x77\x61\x72\x6e\x69\x6e\x67','\x53\x63\x68\x65\x6d\x61\x20\x4a\x53\x4f\x4e\x20\x70\x61\x72\x73\x65\x20\x65\x72\x72\x6f\x72\x3a\x20','\x69\x73\x44\x69\x72\x65\x63\x74\x6f\x72\x79','\x4d\x69\x73\x73\x69\x6e\x67\x20\x6c\x61\x79\x6f\x75\x74\x73\x20\x64\x69\x72\x65\x63\x74\x6f\x72\x79\x2e','\x73\x6f\x6d\x65','\x6e\x61\x6d\x65'];_0x48fb=function(){return _0x3c8b21;};return _0x48fb();}const _0x4eebd8=_0x51b4;(function(_0x55f339,_0x57bfed){const _0x404c4d=_0x51b4,_0x321ad8=_0x55f339();while(!![]){try{const _0x4f2e5d=-parseInt(_0x404c4d(0xd6))/0x1*(-parseInt(_0x404c4d(0x111))/0x2)+parseInt(_0x404c4d(0xb4))/0x3*(parseInt(_0x404c4d(0xcd))/0x4)+parseInt(_0x404c4d(0x10b))/0x5*(-parseInt(_0x404c4d(0x115))/0x6)+parseInt(_0x404c4d(0x108))/0x7*(parseInt(_0x404c4d(0xba))/0x8)+-parseInt(_0x404c4d(0x122))/0x9+-parseInt(_0x404c4d(0xdb))/0xa*(parseInt(_0x404c4d(0xfc))/0xb)+parseInt(_0x404c4d(0xf8))/0xc;if(_0x4f2e5d===_0x57bfed)break;else _0x321ad8['push'](_0x321ad8['shift']());}catch(_0x198721){_0x321ad8['push'](_0x321ad8['shift']());}}}(_0x48fb,0xd6989));import{Command,Args,Flags}from'\x40\x6f\x63\x6c\x69\x66\x2f\x63\x6f\x72\x65';import{existsSync,readFileSync,readdirSync}from'\x66\x73';import{resolve,join,relative}from'\x70\x61\x74\x68';var k=_0x120c22=>typeof _0x120c22=='\x6f\x62\x6a\x65\x63\x74'&&_0x120c22!==null,C=(_0x55ed1f,_0x3cad97)=>{const _0xb672ad=_0x51b4;if(!k(_0x55ed1f))return null;let _0x28164e=_0x55ed1f[_0x3cad97];return typeof _0x28164e==_0xb672ad(0xb6)?_0x28164e:null;},v={'\x69\x6e\x66\x6f':0x1,'\x77\x61\x72\x6e\x69\x6e\x67':0x2,'\x65\x72\x72\x6f\x72':0x3},q=new Set([_0x4eebd8(0xe4),_0x4eebd8(0xfb),_0x4eebd8(0x11a),_0x4eebd8(0x110),_0x4eebd8(0xe7),_0x4eebd8(0xf9)]),P=_0x145030=>{const _0x1ab6b9=_0x4eebd8;let _0x3e7e23=[],_0x3cbe4e=join(_0x145030,'\x6c\x61\x79\x6f\x75\x74\x73'),_0x3277cd=join(_0x145030,_0x1ab6b9(0x106)),_0x5c8770=join(_0x145030,_0x1ab6b9(0xdd));existsSync(_0x3cbe4e)||_0x3e7e23[_0x1ab6b9(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x1ab6b9(0xfa),'\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0x101),'\x66\x69\x6c\x65':_0x1ab6b9(0xb5),'\x63\x6f\x64\x65':_0x1ab6b9(0x10f)}),existsSync(_0x3277cd)||_0x3e7e23[_0x1ab6b9(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x1ab6b9(0xfa),'\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0xc5),'\x66\x69\x6c\x65':_0x1ab6b9(0x105),'\x63\x6f\x64\x65':_0x1ab6b9(0xf7)}),existsSync(_0x3cbe4e)&&!existsSync(join(_0x3cbe4e,_0x1ab6b9(0xbe)))&&_0x3e7e23['\x70\x75\x73\x68']({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x1ab6b9(0xfe),'\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0xd8),'\x66\x69\x6c\x65':'\x6c\x61\x79\x6f\x75\x74\x73\x2f\x64\x65\x66\x61\x75\x6c\x74\x2e\x6c\x69\x71\x75\x69\x64','\x63\x6f\x64\x65':_0x1ab6b9(0x11d)});let _0x2e3a7f=F(_0x3277cd);existsSync(_0x3277cd)&&_0x2e3a7f['\x6c\x65\x6e\x67\x74\x68']===0x0&&_0x3e7e23['\x70\x75\x73\x68']({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x1ab6b9(0xfe),'\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0xcb),'\x66\x69\x6c\x65':_0x1ab6b9(0x105),'\x63\x6f\x64\x65':'\x65\x6d\x70\x74\x79\x2d\x74\x65\x6d\x70\x6c\x61\x74\x65\x73'});let _0x3bb729=F(_0x5c8770),_0x9e2561=new Map();for(let _0x1328f8 of _0x3bb729){let _0x2c0701=readFileSync(_0x1328f8,_0x1ab6b9(0x10e)),_0x1752bd=$(_0x2c0701),_0x44bd22=relative(_0x145030,_0x1328f8);if(_0x1752bd[_0x1ab6b9(0x118)]===0x0){_0x3e7e23[_0x1ab6b9(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x1ab6b9(0xfe),'\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0xd7),'\x66\x69\x6c\x65':_0x44bd22,'\x63\x6f\x64\x65':_0x1ab6b9(0xce)});continue;}_0x1752bd[_0x1ab6b9(0x118)]>0x1&&_0x3e7e23[_0x1ab6b9(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x1ab6b9(0xfe),'\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0x10c),'\x66\x69\x6c\x65':_0x44bd22,'\x63\x6f\x64\x65':_0x1ab6b9(0x107)});let _0x17af07=I(_0x1752bd[0x0],_0x44bd22,_0x3e7e23);if(!_0x17af07||!k(_0x17af07))continue;let _0x1629df=C(_0x17af07,_0x1ab6b9(0x103));if(!_0x1629df)_0x3e7e23[_0x1ab6b9(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x1ab6b9(0xfa),'\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0xed),'\x66\x69\x6c\x65':_0x44bd22,'\x6c\x69\x6e\x65':_0x1752bd[0x0][_0x1ab6b9(0xe3)],'\x63\x6f\x64\x65':'\x62\x6c\x6f\x63\x6b\x2d\x6d\x69\x73\x73\x69\x6e\x67\x2d\x6e\x61\x6d\x65'});else{let _0x2e0a44=_0x9e2561[_0x1ab6b9(0xe1)](_0x1629df);_0x2e0a44?_0x3e7e23[_0x1ab6b9(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x1ab6b9(0xfe),'\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0x11e)+_0x1629df+_0x1ab6b9(0xe0)+_0x2e0a44+'\x29\x2e','\x66\x69\x6c\x65':_0x44bd22,'\x6c\x69\x6e\x65':_0x1752bd[0x0][_0x1ab6b9(0xe3)],'\x63\x6f\x64\x65':_0x1ab6b9(0xca)}):_0x9e2561[_0x1ab6b9(0xc1)](_0x1629df,_0x44bd22);}let _0x2da74b=_0x17af07['\x73\x65\x74\x74\x69\x6e\x67\x73'];Array[_0x1ab6b9(0xc0)](_0x2da74b)||_0x3e7e23[_0x1ab6b9(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x1ab6b9(0xfa),'\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0xf1),'\x66\x69\x6c\x65':_0x44bd22,'\x6c\x69\x6e\x65':_0x1752bd[0x0][_0x1ab6b9(0xe3)],'\x63\x6f\x64\x65':_0x1ab6b9(0xbd)});}for(let _0x45aee8 of _0x2e3a7f){let _0x221b8d=readFileSync(_0x45aee8,_0x1ab6b9(0x10e)),_0x2ef000=$(_0x221b8d),_0x4728e2=relative(_0x145030,_0x45aee8);if(_0x2ef000[_0x1ab6b9(0x118)]===0x0){_0x3e7e23[_0x1ab6b9(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':'\x77\x61\x72\x6e\x69\x6e\x67','\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0xec),'\x66\x69\x6c\x65':_0x4728e2,'\x63\x6f\x64\x65':'\x74\x65\x6d\x70\x6c\x61\x74\x65\x2d\x6d\x69\x73\x73\x69\x6e\x67\x2d\x73\x63\x68\x65\x6d\x61'});continue;}_0x2ef000['\x6c\x65\x6e\x67\x74\x68']>0x1&&_0x3e7e23[_0x1ab6b9(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x1ab6b9(0xfe),'\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0xd4),'\x66\x69\x6c\x65':_0x4728e2,'\x63\x6f\x64\x65':'\x74\x65\x6d\x70\x6c\x61\x74\x65\x2d\x6d\x75\x6c\x74\x69\x70\x6c\x65\x2d\x73\x63\x68\x65\x6d\x61'});let _0x1bb8f8=I(_0x2ef000[0x0],_0x4728e2,_0x3e7e23);if(!_0x1bb8f8||!k(_0x1bb8f8))continue;let _0x249231=_0x1bb8f8['\x73\x65\x74\x74\x69\x6e\x67\x73'];_0x249231!==void 0x0&&!Array['\x69\x73\x41\x72\x72\x61\x79'](_0x249231)&&_0x3e7e23[_0x1ab6b9(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x1ab6b9(0xfe),'\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0xe9),'\x66\x69\x6c\x65':_0x4728e2,'\x6c\x69\x6e\x65':_0x2ef000[0x0]['\x6c\x69\x6e\x65'],'\x63\x6f\x64\x65':_0x1ab6b9(0xc9)});let _0x1feae2=_0x1bb8f8['\x62\x6c\x6f\x63\x6b\x73'];if(_0x1feae2!==void 0x0&&!Array[_0x1ab6b9(0xc0)](_0x1feae2)){_0x3e7e23[_0x1ab6b9(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x1ab6b9(0xfe),'\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0xb9),'\x66\x69\x6c\x65':_0x4728e2,'\x6c\x69\x6e\x65':_0x2ef000[0x0][_0x1ab6b9(0xe3)],'\x63\x6f\x64\x65':_0x1ab6b9(0xc2)});continue;}if(Array['\x69\x73\x41\x72\x72\x61\x79'](_0x1feae2))for(let _0x4afe9c of _0x1feae2){if(typeof _0x4afe9c!='\x73\x74\x72\x69\x6e\x67'){_0x3e7e23[_0x1ab6b9(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':'\x77\x61\x72\x6e\x69\x6e\x67','\x6d\x65\x73\x73\x61\x67\x65':_0x1ab6b9(0xc6),'\x66\x69\x6c\x65':_0x4728e2,'\x6c\x69\x6e\x65':_0x2ef000[0x0][_0x1ab6b9(0xe3)],'\x63\x6f\x64\x65':'\x74\x65\x6d\x70\x6c\x61\x74\x65\x2d\x62\x6c\x6f\x63\x6b\x73\x2d\x65\x6e\x74\x72\x79\x2d\x69\x6e\x76\x61\x6c\x69\x64'});continue;}_0x9e2561[_0x1ab6b9(0x109)](_0x4afe9c)||_0x3e7e23['\x70\x75\x73\x68']({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x1ab6b9(0xfe),'\x6d\x65\x73\x73\x61\x67\x65':'\x54\x65\x6d\x70\x6c\x61\x74\x65\x20\x61\x6c\x6c\x6f\x77\x73\x20\x62\x6c\x6f\x63\x6b\x20\x27'+_0x4afe9c+_0x1ab6b9(0x116),'\x66\x69\x6c\x65':_0x4728e2,'\x6c\x69\x6e\x65':_0x2ef000[0x0][_0x1ab6b9(0xe3)],'\x63\x6f\x64\x65':_0x1ab6b9(0xda)});}}return _0x3e7e23;},R=(_0x5e2d6c,_0x1a8d9c)=>({'\x65\x72\x72\x6f\x72\x73':_0x5e2d6c[_0x4eebd8(0xf3)](_0xde28b3=>_0xde28b3[_0x4eebd8(0x10a)]===_0x4eebd8(0xfa))[_0x4eebd8(0x118)],'\x77\x61\x72\x6e\x69\x6e\x67\x73':_0x5e2d6c[_0x4eebd8(0xf3)](_0x59144d=>_0x59144d[_0x4eebd8(0x10a)]==='\x77\x61\x72\x6e\x69\x6e\x67')[_0x4eebd8(0x118)],'\x69\x6e\x66\x6f':_0x5e2d6c[_0x4eebd8(0xf3)](_0x5e20a8=>_0x5e20a8[_0x4eebd8(0x10a)]==='\x69\x6e\x66\x6f')[_0x4eebd8(0x118)],'\x66\x61\x69\x6c\x4c\x65\x76\x65\x6c':_0x1a8d9c,'\x66\x61\x69\x6c\x65\x64':T(_0x5e2d6c,_0x1a8d9c)}),T=(_0x1299e9,_0x3a207b)=>{const _0x4f5825=_0x4eebd8;let _0x183e0f=v[_0x3a207b];return _0x1299e9[_0x4f5825(0x102)](_0x4a55c0=>v[_0x4a55c0[_0x4f5825(0x10a)]]>=_0x183e0f);},N=(_0xd759a1,_0x301884)=>{const _0x10f1b0=_0x4eebd8;let _0x487a43=_0x301884[_0x10f1b0(0xf3)](_0x575519=>_0x575519[_0x10f1b0(0x10a)]===_0x10f1b0(0xfa)),_0x429d8b=_0x301884[_0x10f1b0(0xf3)](_0x4614fc=>_0x4614fc['\x73\x65\x76\x65\x72\x69\x74\x79']===_0x10f1b0(0xfe)),_0x1f05cd=_0x301884[_0x10f1b0(0xf3)](_0x11c576=>_0x11c576[_0x10f1b0(0x10a)]==='\x69\x6e\x66\x6f');if(console[_0x10f1b0(0xf6)](_0x10f1b0(0x113)+_0x487a43[_0x10f1b0(0x118)]+_0x10f1b0(0x10d)+_0x429d8b[_0x10f1b0(0x118)]+'\x20\x77\x61\x72\x6e\x69\x6e\x67\x73\x2c\x20'+_0x1f05cd[_0x10f1b0(0x118)]+'\x20\x69\x6e\x66\x6f'),_0x301884[_0x10f1b0(0x118)]===0x0){console[_0x10f1b0(0xf6)](_0x10f1b0(0xd2));return;}let _0x39ec2a=[..._0x301884][_0x10f1b0(0xea)]((_0x32bc3d,_0x4b6178)=>v[_0x4b6178[_0x10f1b0(0x10a)]]-v[_0x32bc3d[_0x10f1b0(0x10a)]]);for(let _0x33aa5b of _0x39ec2a){let _0x98c49c=_0x33aa5b[_0x10f1b0(0xcf)]?''+_0x33aa5b[_0x10f1b0(0xcf)]+(_0x33aa5b[_0x10f1b0(0xe3)]?'\x3a'+_0x33aa5b[_0x10f1b0(0xe3)]:''):_0xd759a1,_0x548e61=_0x33aa5b[_0x10f1b0(0xc4)]?'\x20\x28'+_0x33aa5b[_0x10f1b0(0xc4)]+'\x29':'';console[_0x10f1b0(0xf6)](_0x10f1b0(0xdc)+_0x33aa5b[_0x10f1b0(0x10a)]+'\x5d\x20'+_0x98c49c+'\x3a\x20'+_0x33aa5b[_0x10f1b0(0x112)]+_0x548e61);}},j=_0x202016=>_0x202016===_0x4eebd8(0xfa)||_0x202016===_0x4eebd8(0xfe)||_0x202016===_0x4eebd8(0xf5),L=_0x2178c0=>_0x2178c0===_0x4eebd8(0xe6)||_0x2178c0===_0x4eebd8(0xb8),F=_0xc14e0f=>{if(!existsSync(_0xc14e0f))return[];let _0x354254=[];return _(_0xc14e0f,_0x354254),_0x354254;},_=(_0x247e50,_0x14508c)=>{const _0x4377ca=_0x4eebd8;let _0x1a00cf=readdirSync(_0x247e50,{'\x77\x69\x74\x68\x46\x69\x6c\x65\x54\x79\x70\x65\x73':!![]});for(let _0xd1aee1 of _0x1a00cf)if(_0xd1aee1[_0x4377ca(0x100)]()){if(q[_0x4377ca(0x109)](_0xd1aee1['\x6e\x61\x6d\x65']))continue;_(join(_0x247e50,_0xd1aee1[_0x4377ca(0x103)]),_0x14508c);}else _0xd1aee1['\x69\x73\x46\x69\x6c\x65']()&&_0xd1aee1[_0x4377ca(0x103)][_0x4377ca(0xde)](_0x4377ca(0xeb))&&_0x14508c[_0x4377ca(0xcc)](join(_0x247e50,_0xd1aee1[_0x4377ca(0x103)]));},$=_0x585112=>{const _0x30c146=_0x4eebd8;let _0x547ac5=/\{%\s*schema\s*%\}([\s\S]*?)\{%\s*endschema\s*%\}/g,_0x14ef33=[];for(let _0x27f0a7 of _0x585112[_0x30c146(0xef)](_0x547ac5)){let _0x559fe6=typeof _0x27f0a7[0x1]==_0x30c146(0xb6)?_0x27f0a7[0x1][_0x30c146(0x119)]():'',_0x32697e=typeof _0x27f0a7[_0x30c146(0x11f)]=='\x6e\x75\x6d\x62\x65\x72'?_0x27f0a7[_0x30c146(0x11f)]:0x0,_0x1471f5=_0x585112[_0x30c146(0xfd)](0x0,_0x32697e)['\x73\x70\x6c\x69\x74']('\x0a')[_0x30c146(0x118)];_0x14ef33['\x70\x75\x73\x68']({'\x72\x61\x77':_0x559fe6,'\x6c\x69\x6e\x65':_0x1471f5});}return _0x14ef33;},I=(_0x4a2f0d,_0xd905f9,_0x24a5bc)=>{const _0x172f18=_0x4eebd8;if(!_0x4a2f0d[_0x172f18(0xe8)])return _0x24a5bc[_0x172f18(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x172f18(0xfa),'\x6d\x65\x73\x73\x61\x67\x65':_0x172f18(0xc8),'\x66\x69\x6c\x65':_0xd905f9,'\x6c\x69\x6e\x65':_0x4a2f0d[_0x172f18(0xe3)],'\x63\x6f\x64\x65':_0x172f18(0xc3)}),null;try{return JSON[_0x172f18(0xd3)](_0x4a2f0d['\x72\x61\x77']);}catch(_0x23434e){let _0x2626ea=_0x23434e instanceof Error?_0x23434e[_0x172f18(0x112)]:_0x172f18(0xf2);return _0x24a5bc[_0x172f18(0xcc)]({'\x73\x65\x76\x65\x72\x69\x74\x79':_0x172f18(0xfa),'\x6d\x65\x73\x73\x61\x67\x65':_0x172f18(0xff)+_0x2626ea,'\x66\x69\x6c\x65':_0xd905f9,'\x6c\x69\x6e\x65':_0x4a2f0d[_0x172f18(0xe3)],'\x63\x6f\x64\x65':_0x172f18(0xbb)}),null;}},D=_0x22b585=>{const _0x535c8e=_0x4eebd8;let _0x2aa726=process['\x65\x6e\x76'][_0x535c8e(0x11c)];if(_0x2aa726&&!_0x22b585){let _0x29d942=resolve(_0x2aa726);if(!existsSync(_0x29d942))throw new Error(_0x535c8e(0xd9)+_0x29d942);return _0x29d942;}if(_0x22b585){let _0x33a3a8=resolve(_0x22b585);if(!existsSync(_0x33a3a8))throw new Error(_0x535c8e(0xd0)+_0x33a3a8);return _0x33a3a8;}let _0x5347ad=process['\x63\x77\x64']();if(['\x6c\x61\x79\x6f\x75\x74\x73','\x74\x65\x6d\x70\x6c\x61\x74\x65\x73'][_0x535c8e(0x102)](_0x340741=>existsSync(resolve(_0x5347ad,_0x340741))))return _0x5347ad;throw new Error(_0x535c8e(0xdf));},U=_0x4eebd8(0xfa),S=class e extends Command{static [_0x4eebd8(0xe5)]=[_0x4eebd8(0xbf)];static [_0x4eebd8(0xb3)]=_0x4eebd8(0x104);static [_0x4eebd8(0xf4)]={'\x74\x68\x65\x6d\x65\x50\x61\x74\x68':Args[_0x4eebd8(0xb6)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x4eebd8(0xbc),'\x72\x65\x71\x75\x69\x72\x65\x64':![]})};static [_0x4eebd8(0x11b)]={'\x74\x68\x65\x6d\x65':Flags[_0x4eebd8(0xb6)]({'\x63\x68\x61\x72':'\x74','\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x4eebd8(0xbc)}),'\x66\x6f\x72\x6d\x61\x74':Flags[_0x4eebd8(0xb6)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x4eebd8(0xee),'\x64\x65\x66\x61\x75\x6c\x74':_0x4eebd8(0xe6)}),'\x6a\x73\x6f\x6e':Flags[_0x4eebd8(0xe2)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x4eebd8(0x120),'\x64\x65\x66\x61\x75\x6c\x74':![]}),'\x66\x61\x69\x6c\x2d\x6c\x65\x76\x65\x6c':Flags[_0x4eebd8(0xb6)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x4eebd8(0x117),'\x64\x65\x66\x61\x75\x6c\x74':U})};async[_0x4eebd8(0xf0)](){const _0x342bf5=_0x4eebd8;let {args:_0x57cb38,flags:_0x337695}=await this[_0x342bf5(0xd3)](e),_0x39ca14=_0x337695[_0x342bf5(0xb7)]??_0x57cb38['\x74\x68\x65\x6d\x65\x50\x61\x74\x68']??null,_0x811ba;try{_0x811ba=D(_0x39ca14);}catch(_0x566208){this[_0x342bf5(0xfa)](_0x566208 instanceof Error?_0x566208[_0x342bf5(0x112)]:'\x46\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x6c\x6f\x63\x61\x74\x65\x20\x74\x68\x65\x6d\x65\x2e');return;}let _0x5f10dc=_0x337695[_0x342bf5(0xb8)]?_0x342bf5(0xb8):_0x337695[_0x342bf5(0xc7)];if(!L(_0x5f10dc)){this[_0x342bf5(0xfa)]('\x2d\x2d\x66\x6f\x72\x6d\x61\x74\x20\x6d\x75\x73\x74\x20\x62\x65\x20\x27\x74\x65\x78\x74\x27\x20\x6f\x72\x20\x27\x6a\x73\x6f\x6e\x27\x2e');return;}let _0x36cda1=_0x337695[_0x342bf5(0xd1)];if(!j(_0x36cda1)){this[_0x342bf5(0xfa)](_0x342bf5(0xd5));return;}let _0x5cf539=P(_0x811ba);if(_0x5f10dc===_0x342bf5(0xb8)){let _0xb2d05={'\x73\x75\x6d\x6d\x61\x72\x79':R(_0x5cf539,_0x36cda1),'\x69\x73\x73\x75\x65\x73':_0x5cf539};this[_0x342bf5(0xf6)](JSON[_0x342bf5(0x114)](_0xb2d05,null,0x2));}else N(_0x811ba,_0x5cf539);let _0x121270=T(_0x5cf539,_0x36cda1)?0x1:0x0;_0x121270!==0x0&&this[_0x342bf5(0x121)](_0x121270);}};export{S as default};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as _oclif_core_interfaces from '@oclif/core/interfaces';
|
|
2
|
+
import { Command } from '@oclif/core';
|
|
3
|
+
|
|
4
|
+
declare class ThemeDev extends Command {
|
|
5
|
+
static aliases: string[];
|
|
6
|
+
static description: string;
|
|
7
|
+
static args: {
|
|
8
|
+
themePath: _oclif_core_interfaces.Arg<string | undefined, Record<string, unknown>>;
|
|
9
|
+
};
|
|
10
|
+
static flags: {
|
|
11
|
+
port: _oclif_core_interfaces.OptionFlag<number, _oclif_core_interfaces.CustomOptions>;
|
|
12
|
+
theme: _oclif_core_interfaces.OptionFlag<string | undefined, _oclif_core_interfaces.CustomOptions>;
|
|
13
|
+
"payload-url": _oclif_core_interfaces.OptionFlag<string, _oclif_core_interfaces.CustomOptions>;
|
|
14
|
+
livereload: _oclif_core_interfaces.BooleanFlag<boolean>;
|
|
15
|
+
debug: _oclif_core_interfaces.BooleanFlag<boolean>;
|
|
16
|
+
};
|
|
17
|
+
private shuttingDown;
|
|
18
|
+
private keypressStop;
|
|
19
|
+
private promptActive;
|
|
20
|
+
run(): Promise<void>;
|
|
21
|
+
private registerSignalHandlers;
|
|
22
|
+
private startKeypressLoop;
|
|
23
|
+
private openInBrowser;
|
|
24
|
+
private runThemeCheck;
|
|
25
|
+
private promptForThemeId;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { ThemeDev as default };
|