@webspatial/builder 0.1.11 → 0.1.14

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.
Files changed (43) hide show
  1. package/README.md +57 -52
  2. package/dist/index.js +1 -1
  3. package/dist/lib/cmds/build.d.ts +4 -4
  4. package/dist/lib/cmds/build.js +1 -1
  5. package/dist/lib/cmds/check.d.ts +2 -3
  6. package/dist/lib/cmds/check.js +1 -1
  7. package/dist/lib/cmds/help.js +1 -1
  8. package/dist/lib/cmds/launch.d.ts +2 -0
  9. package/dist/lib/cmds/launch.js +1 -0
  10. package/dist/lib/cmds/shutdown.d.ts +2 -0
  11. package/dist/lib/cmds/shutdown.js +1 -0
  12. package/dist/lib/cmds/version.d.ts +1 -2
  13. package/dist/lib/cmds/version.js +1 -1
  14. package/dist/lib/pwa/config.js +1 -1
  15. package/dist/lib/pwa/index.d.ts +5 -15
  16. package/dist/lib/pwa/index.js +1 -1
  17. package/dist/lib/pwa/validate.js +1 -1
  18. package/dist/lib/resource/file.js +1 -1
  19. package/dist/lib/resource/imageHelper.js +1 -1
  20. package/dist/lib/resource/index.d.ts +2 -1
  21. package/dist/lib/resource/index.js +1 -1
  22. package/dist/lib/resource/load.js +1 -1
  23. package/dist/lib/types.d.ts +27 -0
  24. package/dist/lib/types.js +1 -0
  25. package/dist/lib/utils/CustomError.js +1 -1
  26. package/dist/lib/utils/FetchUtils-1.js +1 -1
  27. package/dist/lib/utils/Log.js +1 -1
  28. package/dist/lib/utils/fetch.js +1 -1
  29. package/dist/lib/utils/history.d.ts +15 -0
  30. package/dist/lib/utils/history.js +1 -0
  31. package/dist/lib/utils/messages.js +1 -1
  32. package/dist/lib/utils/utils.d.ts +2 -0
  33. package/dist/lib/utils/utils.js +1 -1
  34. package/dist/lib/xcode/index.d.ts +3 -1
  35. package/dist/lib/xcode/index.js +1 -1
  36. package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
  37. package/dist/lib/xcode/xcodebuild.js +1 -1
  38. package/dist/lib/xcode/xcodeproject.js +1 -1
  39. package/dist/lib/xcode/xcrun.d.ts +42 -1
  40. package/dist/lib/xcode/xcrun.js +1 -1
  41. package/package.json +4 -3
  42. package/dist/lib/Cli.d.ts +0 -5
  43. package/dist/lib/Cli.js +0 -1
package/README.md CHANGED
@@ -12,64 +12,69 @@ If you wish to package an IPA file or publish it to App Store Connect, you need
12
12
  `pnpm i @webspatial/builder`
13
13
 
14
14
  ## **Usage**
15
- Build and run local WebSpatial project on Apple Vision Pro simulator.
15
+ 1. Build and run local WebSpatial project on Apple Vision Pro simulator.
16
16
 
17
- `webspatial-builder run --manifest=public/manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos --bundle-id=com.webspatial.test`
17
+ `webspatial-builder run --manifest=public/manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos --bundle-id=com.webspatial.test`
18
18
 
19
- - Default parameters
20
- - --manifest=public/manifest.json or --manifest=manifest.webmanifest
21
- - --project=dist
22
- - --platform=visionos
23
- - --base=/
19
+ - Default parameters
20
+ - --manifest=public/manifest.json or --manifest=manifest.webmanifest
21
+ - --project=dist
22
+ - --platform=visionos
23
+ - --bundle-id=com.webspatial.test
24
+ - --base=/
25
+ - If you don't have a manifest file, CLI will use the default configuration
26
+ ```json
27
+ {
28
+ name: 'WebSpatialTest',
29
+ display: 'minimal-ui',
30
+ start_url: '/',
31
+ scope: '/',
32
+ }
33
+ ```
34
+
35
+ - The --base is the root path to the project. It will be combined with start_url in the manifest.json file to generate the final URL.
36
+ ```
37
+ Example 1:
38
+ start_url:./a/index.html
39
+ --base:dist/webspatial/avp
40
+ final url:dist/webspatial/avp/a/index.html
24
41
 
25
- >
26
- > 1. If you don't have a manifest file, CLI will use the default configuration
27
- > ```json
28
- > {
29
- > id: 'com.webspatial.test',
30
- > name: 'WebSpatialTest',
31
- > display: 'minimal-ui',
32
- > start_url: '/',
33
- > scope: '/',
34
- > }
35
- > ```
36
- >
37
- >2. The --base is the root path to the project. It will be combined with start_url in the manifest.json file to generate the final URL.
38
- >
39
- > 3. The --bundle-id is the bundle identifier of the app.
40
- >**For example:**
41
- >```
42
- >Example 1:
43
- >start_url:./a/index.html
44
- >--base:dist/webspatial/avp
45
- >final url:dist/webspatial/avp/a/index.html
46
- >
47
- >Example 2:
48
- >start_url:https://www.domain1.com/a/index.html
49
- >--base:http://localhost:5173
50
- >final url:http://localhost:5173/a/index.html
51
- >
52
- >Example 3:
53
- >start_url:https://www.domain1.com/a/index.html
54
- >--base:dist/webspatial/avp
55
- >final url:dist/webspatial/avp/index.html
56
- >```
42
+ Example 2:
43
+ start_url:https://www.domain1.com/a/index.html
44
+ --base:http://localhost:5173
45
+ final url:http://localhost:5173/a/index.html
46
+
47
+ Example 3:
48
+ start_url:https://www.domain1.com/a/index.html
49
+ --base:dist/webspatial/avp
50
+ final url:dist/webspatial/avp/index.html
51
+ ```
52
+ - The --bundle-id is the bundle identifier of the app.
53
+ **For example:**
57
54
 
58
- Package an IPA file.
55
+ 2. Package an IPA file.
59
56
 
60
- `webspatial-builder build --manifest=manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos --teamId=yourTeamId --bundle-id=com.webspatial.test`
57
+ `webspatial-builder build --manifest=manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos --teamId=yourTeamId --bundle-id=com.webspatial.test`
61
58
 
62
- - Necessary parameters
63
- - --base
64
- - --teamId
59
+ - Necessary parameters
60
+ - --base
61
+ - --teamId
65
62
 
66
63
 
67
- Publish to App Store Connect.
68
- `webspatial-builder publish --manifest=manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos --teamId=yourTeamId --version=projectVersion --u=yourAppleId --p=yourAppSpecificCode --bundle-id=com.webspatial.test`
64
+ 3. Publish to App Store Connect.
65
+ `webspatial-builder publish --manifest=manifest.json --project=dist --base=dist/webspatial/avp --platform=visionos --teamId=yourTeamId --version=projectVersion --u=yourAppleId --p=yourAppSpecificCode --bundle-id=com.webspatial.test`
69
66
 
70
- - Necessary parameters
71
- - --base
72
- - --teamId
73
- - --version
74
- - --u
75
- - --p
67
+ - Necessary parameters
68
+ - --base
69
+ - --teamId
70
+ - --version
71
+ - --u
72
+ - --p
73
+
74
+ 4. Launch the app in the simulator without building.
75
+ >When the simulator is shut down, cli will automatically launch the simulator.
76
+
77
+ `webspatial-builder launch [--bundle-id=]`
78
+
79
+ 5. Shutdown the simulator.
80
+ `webspatial-builder shutdown`
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x31b017=_0x4b16;(function(_0x5874bd,_0x4b338f){const _0x4df770=_0x4b16,_0x54a34d=_0x5874bd();while(!![]){try{const _0x36e12b=-parseInt(_0x4df770(0x1f9))/0x1*(-parseInt(_0x4df770(0x1e1))/0x2)+-parseInt(_0x4df770(0x1ea))/0x3*(-parseInt(_0x4df770(0x1f3))/0x4)+-parseInt(_0x4df770(0x1e2))/0x5+parseInt(_0x4df770(0x1f7))/0x6+parseInt(_0x4df770(0x1e6))/0x7*(parseInt(_0x4df770(0x1f8))/0x8)+parseInt(_0x4df770(0x1e3))/0x9*(-parseInt(_0x4df770(0x1e4))/0xa)+-parseInt(_0x4df770(0x1eb))/0xb;if(_0x36e12b===_0x4b338f)break;else _0x54a34d['push'](_0x54a34d['shift']());}catch(_0x306cc0){_0x54a34d['push'](_0x54a34d['shift']());}}}(_0x561c,0x92ba2));Object['defineProperty'](exports,_0x31b017(0x1f0),{'value':!![]});const Cli_1=require(_0x31b017(0x1e7)),CustomError_1=require(_0x31b017(0x1f5));module[_0x31b017(0x1e0)]=async()=>{const _0x2aed76=_0x31b017,_0x287e42=new Cli_1[(_0x2aed76(0x1f2))](),_0x5bd04d=Cli_1['Cli'][_0x2aed76(0x1ec)],_0x116ec0=process[_0x2aed76(0x1ed)]['slice'](0x2);let _0x591f0c;try{_0x591f0c=await _0x287e42[_0x2aed76(0x1e5)](_0x116ec0);}catch(_0x224181){if(_0x224181 instanceof CustomError_1[_0x2aed76(0x1f1)]){const _0x471c1b=_0x224181[_0x2aed76(0x1ef)];Array[_0x2aed76(0x1f6)](_0x471c1b)?_0x471c1b['forEach'](_0x23c40a=>{const _0x2d0f54=_0x2aed76;_0x5bd04d[_0x2d0f54(0x1f4)](_0x23c40a[_0x2d0f54(0x1e8)]+':\x20'+_0x23c40a[_0x2d0f54(0x1e9)]);}):_0x5bd04d[_0x2aed76(0x1f4)](_0x471c1b[_0x2aed76(0x1e8)]+':\x20'+_0x471c1b[_0x2aed76(0x1e9)]);}else _0x5bd04d[_0x2aed76(0x1f4)](_0x224181[_0x2aed76(0x1e9)]);_0x591f0c=![];}!_0x591f0c?process[_0x2aed76(0x1ee)](0x1):process[_0x2aed76(0x1ee)](0x0);};function _0x4b16(_0xc8261d,_0xd2d8a9){const _0x561c31=_0x561c();return _0x4b16=function(_0x4b1632,_0x398805){_0x4b1632=_0x4b1632-0x1e0;let _0x399e02=_0x561c31[_0x4b1632];return _0x399e02;},_0x4b16(_0xc8261d,_0xd2d8a9);}function _0x561c(){const _0xaf5e86=['isArray','6345996HXdEUH','688gaMwUm','203909JxdDkI','exports','10SenOZZ','534820khGlVn','25749MYEtoz','2630jrZhMA','run','35385DMiLdn','./lib/Cli','code','message','363567eDnoAS','14233098QqraoY','log','argv','exit','customMessage','__esModule','CustomError','Cli','8zcamHy','error','./lib/utils/CustomError'];_0x561c=function(){return _0xaf5e86;};return _0x561c();}
1
+ 'use strict';const _0x263fe5=_0x4ad4;(function(_0x59abef,_0x2eb92b){const _0x22859d=_0x4ad4,_0x299b2f=_0x59abef();while(!![]){try{const _0x3a7c84=-parseInt(_0x22859d(0x1c4))/0x1*(parseInt(_0x22859d(0x1fd))/0x2)+parseInt(_0x22859d(0x1b6))/0x3+parseInt(_0x22859d(0x1bf))/0x4+parseInt(_0x22859d(0x1f2))/0x5+parseInt(_0x22859d(0x1c1))/0x6*(-parseInt(_0x22859d(0x1f4))/0x7)+-parseInt(_0x22859d(0x1ce))/0x8+-parseInt(_0x22859d(0x1f6))/0x9*(-parseInt(_0x22859d(0x1e2))/0xa);if(_0x3a7c84===_0x2eb92b)break;else _0x299b2f['push'](_0x299b2f['shift']());}catch(_0x36b0f6){_0x299b2f['push'](_0x299b2f['shift']());}}}(_0x2f05,0xa85f3));Object[_0x263fe5(0x1d5)](exports,_0x263fe5(0x1ca),{'value':!![]});const commander_1=require(_0x263fe5(0x1c0)),semver_1=require(_0x263fe5(0x1e6)),FetchUtils_1_1=require(_0x263fe5(0x1eb)),build_1=require(_0x263fe5(0x1e4)),version_1=require(_0x263fe5(0x1de)),fetch_1=require('./lib/utils/fetch'),launch_1=require('./lib/cmds/launch'),shutdown_1=require('./lib/cmds/shutdown');function _0x2f05(){const _0x3fee88=['./lib/cmds/version','bundle\x20id','getVersion','--manifest\x20<manifest>','243850DfSdVV','manifest\x20url','./lib/cmds/build','Shutdown\x20Simulator','semver','node','username','--project\x20<project>','--bundle-id\x20<bundleId>','./lib/utils/FetchUtils-1','argv','name','Command','app\x20build\x20type','\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.','--manifest-url\x20<manifest-url>','2786475sVQYJI','webspatial-builder','7ONHbEv','--export\x20<export>','459aIIOWq','exports','--buildType\x20<buildType>','log','option','fetchUtils','run\x20without\x20build','2tRAZkx','2004600hozmBp','setDecompressResponseBuffer','Launch\x20WebSpatial\x20App','team\x20id','--teamId\x20<teamId>','requiredOption','--u\x20<username>','action','--tryWithoutBuild\x20<tryWithoutBuild>','1102156wydgdl','commander','5975418ExHCOi','build','run','599759WLBtYM','project\x20path','description','parseAsync','--base\x20<base>','--platform\x20<platform>','__esModule','configureHelp','setDownloadFile','fetch','3674848FSQjDA','base\x20path','command','Publish\x20WebSpatial\x20App','app\x20version','--manifest-url\x20<manifestUrl>','export\x20path','defineProperty','version','xr\x20platform','store','manifest\x20path','versions','--version\x20<version>','shutdown','launch'];_0x2f05=function(){return _0x3fee88;};return _0x2f05();}module[_0x263fe5(0x1f7)]=async()=>{const _0x3d385b=_0x263fe5;if((0x0,semver_1['major'])(process[_0x3d385b(0x1da)]['node'])<0xe)throw new Error('Current\x20Node.js\x20version\x20is\x20'+process['versions'][_0x3d385b(0x1e7)]+'.'+_0x3d385b(0x1f0));const _0x5afc67=new commander_1[(_0x3d385b(0x1ee))]();FetchUtils_1_1[_0x3d385b(0x1fb)]['setFetch'](fetch_1[_0x3d385b(0x1cd)]),FetchUtils_1_1[_0x3d385b(0x1fb)][_0x3d385b(0x1cc)](fetch_1['downloadFile']),FetchUtils_1_1['fetchUtils'][_0x3d385b(0x1b7)](fetch_1['decompressResponseBuffer']),await setupCommands(_0x5afc67),await _0x5afc67[_0x3d385b(0x1c7)](process[_0x3d385b(0x1ec)]);};function _0x4ad4(_0x96da52,_0x3d1227){const _0x2f0585=_0x2f05();return _0x4ad4=function(_0x4ad43a,_0x12e14b){_0x4ad43a=_0x4ad43a-0x1b6;let _0x4c1ef7=_0x2f0585[_0x4ad43a];return _0x4c1ef7;},_0x4ad4(_0x96da52,_0x3d1227);}async function setupCommands(_0x530af2){const _0x3def37=_0x263fe5,_0x24a66f=await(0x0,version_1[_0x3def37(0x1e0)])();_0x530af2[_0x3def37(0x1ed)](_0x3def37(0x1f3))[_0x3def37(0x1c6)]('WebSpatial\x20Builder\x20is\x20a\x20client-side\x20CLI\x20tool\x20used\x20to\x20generate\x20cross\x20platform\x20XRApp\x20projects.')[_0x3def37(0x1d6)](_0x24a66f,'-v,\x20--version')[_0x3def37(0x1cb)]({'showGlobalOptions':!![]}),_0x530af2[_0x3def37(0x1d0)](_0x3def37(0x1c3))[_0x3def37(0x1c6)]('By\x20compiling\x20or\x20running\x20directly\x20on\x20the\x20simulator\x20the\x20WebSpatial\x20App')['option'](_0x3def37(0x1e1),_0x3def37(0x1d9))[_0x3def37(0x1fa)](_0x3def37(0x1e9),'project\x20path')[_0x3def37(0x1fa)](_0x3def37(0x1d3),_0x3def37(0x1e3))[_0x3def37(0x1fa)](_0x3def37(0x1c9),'xr\x20platform')[_0x3def37(0x1fa)](_0x3def37(0x1c8),_0x3def37(0x1cf))['option'](_0x3def37(0x1ea),_0x3def37(0x1df))[_0x3def37(0x1fa)](_0x3def37(0x1be),_0x3def37(0x1fc))['action'](async _0x1f7db8=>{const _0x513b79=_0x3def37;await(0x0,build_1[_0x513b79(0x1c3)])(_0x1f7db8);}),_0x530af2[_0x3def37(0x1d0)]('build')[_0x3def37(0x1c6)]('Build\x20WebSpatial\x20App')[_0x3def37(0x1fa)](_0x3def37(0x1e1),_0x3def37(0x1d9))[_0x3def37(0x1fa)]('--project\x20<project>',_0x3def37(0x1c5))[_0x3def37(0x1fa)](_0x3def37(0x1f1),_0x3def37(0x1e3))[_0x3def37(0x1fa)](_0x3def37(0x1c9),_0x3def37(0x1d7))[_0x3def37(0x1fa)](_0x3def37(0x1db),'app\x20version')['option'](_0x3def37(0x1f8),_0x3def37(0x1ef))[_0x3def37(0x1fa)]('--export\x20<export>',_0x3def37(0x1d4))[_0x3def37(0x1fa)](_0x3def37(0x1ea),_0x3def37(0x1df))[_0x3def37(0x1bb)]('--base\x20<base>',_0x3def37(0x1cf))['requiredOption'](_0x3def37(0x1ba),_0x3def37(0x1b9))[_0x3def37(0x1bd)](async _0x2a560a=>{const _0x2e16a2=_0x3def37;console[_0x2e16a2(0x1f9)](_0x2a560a),await(0x0,build_1[_0x2e16a2(0x1c2)])(_0x2a560a);}),_0x530af2[_0x3def37(0x1d0)]('publish')[_0x3def37(0x1c6)](_0x3def37(0x1d1))['option'](_0x3def37(0x1e1),'manifest\x20path')[_0x3def37(0x1fa)](_0x3def37(0x1e9),'project\x20path')[_0x3def37(0x1fa)]('--manifest-url\x20<manifestUrl>',_0x3def37(0x1e3))['option'](_0x3def37(0x1c9),_0x3def37(0x1d7))['option'](_0x3def37(0x1f8),'app\x20build\x20type')[_0x3def37(0x1fa)](_0x3def37(0x1f5),_0x3def37(0x1d4))[_0x3def37(0x1fa)](_0x3def37(0x1ea),_0x3def37(0x1df))[_0x3def37(0x1bb)](_0x3def37(0x1c8),_0x3def37(0x1cf))[_0x3def37(0x1bb)](_0x3def37(0x1ba),_0x3def37(0x1b9))[_0x3def37(0x1bb)]('--version\x20<version>',_0x3def37(0x1d2))[_0x3def37(0x1bb)](_0x3def37(0x1bc),_0x3def37(0x1e8))[_0x3def37(0x1bb)]('--p\x20<password>','password')[_0x3def37(0x1bd)](async _0x5d2d74=>{const _0x5eb10c=_0x3def37;console[_0x5eb10c(0x1f9)](_0x5d2d74),await(0x0,build_1[_0x5eb10c(0x1d8)])(_0x5d2d74);}),_0x530af2[_0x3def37(0x1d0)]('launch')[_0x3def37(0x1c6)](_0x3def37(0x1b8))[_0x3def37(0x1fa)](_0x3def37(0x1ea),'bundle\x20id')[_0x3def37(0x1bd)](async _0x549555=>{const _0x452354=_0x3def37;console[_0x452354(0x1f9)](_0x549555),await(0x0,launch_1[_0x452354(0x1dd)])(_0x549555);}),_0x530af2[_0x3def37(0x1d0)](_0x3def37(0x1dc))['description'](_0x3def37(0x1e5))[_0x3def37(0x1bd)](async _0xc6432d=>{const _0x30381e=_0x3def37;console[_0x30381e(0x1f9)](_0xc6432d),await(0x0,shutdown_1[_0x30381e(0x1dc)])(_0xc6432d);});}
@@ -1,4 +1,4 @@
1
- import { ParsedArgs } from 'minimist';
2
- export declare function start(args: ParsedArgs, isDev?: boolean): Promise<any>;
3
- export declare function store(args: ParsedArgs): Promise<boolean>;
4
- export declare function run(args: ParsedArgs): Promise<boolean>;
1
+ import { ManifestInfo } from '../types';
2
+ export declare function build(args: any): Promise<ManifestInfo>;
3
+ export declare function store(args: any): Promise<void>;
4
+ export declare function run(args: any): Promise<void>;
@@ -1 +1 @@
1
- 'use strict';const _0x3e0efe=_0x5473;(function(_0x50c399,_0x4ce39c){const _0x117683=_0x5473,_0x436b8d=_0x50c399();while(!![]){try{const _0x15e728=-parseInt(_0x117683(0x1ef))/0x1+-parseInt(_0x117683(0x1db))/0x2*(-parseInt(_0x117683(0x1f1))/0x3)+-parseInt(_0x117683(0x1ea))/0x4+-parseInt(_0x117683(0x1f5))/0x5+-parseInt(_0x117683(0x1f6))/0x6*(-parseInt(_0x117683(0x1da))/0x7)+-parseInt(_0x117683(0x1fe))/0x8*(parseInt(_0x117683(0x1e6))/0x9)+parseInt(_0x117683(0x1e4))/0xa;if(_0x15e728===_0x4ce39c)break;else _0x436b8d['push'](_0x436b8d['shift']());}catch(_0x1bd67f){_0x436b8d['push'](_0x436b8d['shift']());}}}(_0x585b,0x76b7b));function _0x5473(_0x51fb87,_0x20a2b1){const _0x585bd2=_0x585b();return _0x5473=function(_0x5473ae,_0x526ed){_0x5473ae=_0x5473ae-0x1da;let _0x52dd60=_0x585bd2[_0x5473ae];return _0x52dd60;},_0x5473(_0x51fb87,_0x20a2b1);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['start']=start,exports[_0x3e0efe(0x1ed)]=store,exports['run']=run;const pwa_1=require(_0x3e0efe(0x1fc)),resource_1=require(_0x3e0efe(0x1e9)),xcode_1=require(_0x3e0efe(0x1fd)),check_1=require('./check');function _0x585b(){const _0x3c2d18=['1947463AhWzeO','214xwiRcJ','upload','name','runWithSimulator','teamId','move\x20web\x20project:\x20ok','buildType','checkPlatformPath','app-store-connect','13094610hSQEYS','XcodeManager','27fZflVo','moveProjectFrom','generator','../resource','2762600uEqSKL','WebSpatialTest','log','store','generate\x20icon:\x20ok','222177rBKFhi','checkBuildParams','2181AuqsOb','platform','generateIcon','version','4063530VWuxvS','18ptWHry','parseProject','PWAGenerator','project','json','export','../pwa','../xcode','26872MtekPc','ResourceManager'];_0x585b=function(){return _0x3c2d18;};return _0x585b();}async function start(_0x319866,_0x3ff379=![]){const _0x3c8ae8=_0x3e0efe;var _0x1449ba;(0x0,check_1[_0x3c8ae8(0x1f0)])(_0x319866,_0x3ff379),resource_1[_0x3c8ae8(0x1ff)]['checkPlatformPath'](_0x319866[_0x3c8ae8(0x1f2)]),console[_0x3c8ae8(0x1ec)]('-------------------\x20build\x20start\x20-------------------');let _0x529f29=await pwa_1[_0x3c8ae8(0x1f8)][_0x3c8ae8(0x1e8)](_0x319866,_0x3ff379);!_0x529f29['fromNet']&&(await resource_1[_0x3c8ae8(0x1ff)][_0x3c8ae8(0x1e7)]((_0x1449ba=_0x319866[_0x3c8ae8(0x1f9)])!==null&&_0x1449ba!==void 0x0?_0x1449ba:'dist'),console[_0x3c8ae8(0x1ec)](_0x3c8ae8(0x1e0)));let _0x3efb3d=await resource_1['ResourceManager'][_0x3c8ae8(0x1f3)](_0x529f29);return console['log'](_0x3c8ae8(0x1ee)),await xcode_1[_0x3c8ae8(0x1e5)][_0x3c8ae8(0x1f7)]({'icon':_0x3efb3d,'manifestInfo':_0x529f29,'teamId':_0x319866[_0x3c8ae8(0x1df)],'version':_0x319866[_0x3c8ae8(0x1f4)],'buildType':_0x319866[_0x3c8ae8(0x1e1)],'export':_0x319866[_0x3c8ae8(0x1fb)]},_0x3ff379),console[_0x3c8ae8(0x1ec)]('-------------------\x20build\x20end\x20-------------------'),_0x529f29;}async function store(_0x2259ef){const _0x4e2189=_0x3e0efe;resource_1['ResourceManager'][_0x4e2189(0x1e2)](_0x2259ef[_0x4e2189(0x1f2)]),(0x0,check_1['checkStoreParams'])(_0x2259ef);let _0x4c5a35={'name':'WebSpatialTest'};_0x2259ef[_0x4e2189(0x1e1)]=_0x4e2189(0x1e3);if(_0x2259ef[_0x4e2189(0x1dd)])_0x4c5a35[_0x4e2189(0x1dd)]=_0x2259ef['name'];else{const _0x275ee0=await start(_0x2259ef);if(!_0x275ee0)return![];_0x4c5a35['name']=_0x275ee0[_0x4e2189(0x1fa)][_0x4e2189(0x1dd)];}return await xcode_1[_0x4e2189(0x1e5)][_0x4e2189(0x1dc)](_0x2259ef,_0x4c5a35),!![];}async function run(_0x3daf81){const _0xe8ed14=_0x3e0efe;let _0x1d737d={'name':_0xe8ed14(0x1eb),'id':''};const _0x27821e=await start(_0x3daf81,!![]);if(!_0x27821e)return![];return _0x1d737d[_0xe8ed14(0x1dd)]=_0x27821e[_0xe8ed14(0x1fa)][_0xe8ed14(0x1dd)],_0x1d737d['id']=_0x27821e[_0xe8ed14(0x1fa)]['id'],await xcode_1[_0xe8ed14(0x1e5)][_0xe8ed14(0x1de)](_0x1d737d),!![];}
1
+ 'use strict';function _0x2629(){const _0x210f6a=['1012602NLtHgL','json','111464WSEidw','checkStoreParams','__esModule','stringify','./check','640450HyVQuX','35uYnEGh','export','fromNet','buildType','-------------------\x20parse\x20start\x20-------------------','checkManifest','XcodeManager','3950710iROcHW','platform','ResourceManager','-------------------\x20parse\x20end\x20-------------------','generator','parseProject','project','6546276RoQLyz','1464876rUpPrJ','../pwa','recordManifest','../utils/history','runWithHistory','dist','store','runWithSimulator','upload','../xcode','true','WebSpatialTest','name','default','teamId','22UztAVM','build','285HoaFDG','log','1GmRWXk','7602DFcDhH','PWAGenerator','checkPlatformPath'];_0x2629=function(){return _0x210f6a;};return _0x2629();}const _0x359a3f=_0x5afc;function _0x5afc(_0x473287,_0x1de42f){const _0x262978=_0x2629();return _0x5afc=function(_0x5afc02,_0x4ebb62){_0x5afc02=_0x5afc02-0x75;let _0x2c8d7a=_0x262978[_0x5afc02];return _0x2c8d7a;},_0x5afc(_0x473287,_0x1de42f);}(function(_0x294e08,_0x59bd14){const _0x103963=_0x5afc,_0x5abf8b=_0x294e08();while(!![]){try{const _0x2f2518=-parseInt(_0x103963(0x7b))/0x1*(-parseInt(_0x103963(0x86))/0x2)+-parseInt(_0x103963(0x7f))/0x3+parseInt(_0x103963(0x96))/0x4+-parseInt(_0x103963(0x79))/0x5*(-parseInt(_0x103963(0x7c))/0x6)+parseInt(_0x103963(0x87))/0x7*(parseInt(_0x103963(0x81))/0x8)+parseInt(_0x103963(0x95))/0x9+parseInt(_0x103963(0x8e))/0xa*(-parseInt(_0x103963(0x77))/0xb);if(_0x2f2518===_0x59bd14)break;else _0x5abf8b['push'](_0x5abf8b['shift']());}catch(_0x5d19bc){_0x5abf8b['push'](_0x5abf8b['shift']());}}}(_0x2629,0x687f0));Object['defineProperty'](exports,_0x359a3f(0x83),{'value':!![]}),exports[_0x359a3f(0x78)]=build,exports[_0x359a3f(0x9c)]=store,exports['run']=run;const pwa_1=require(_0x359a3f(0x97)),resource_1=require('../resource'),xcode_1=require(_0x359a3f(0x9f)),check_1=require(_0x359a3f(0x85)),history_1=require(_0x359a3f(0x99));async function build(_0x2604a7){const _0x4275c6=_0x359a3f;var _0x492850;console[_0x4275c6(0x7a)]('-------------------\x20parse\x20start\x20-------------------'),resource_1['ResourceManager']['checkPlatformPath'](_0x2604a7[_0x4275c6(0x8f)]);const _0x164989=await doPwa(_0x2604a7),_0x59998c=await doReadyProject((_0x492850=_0x2604a7[_0x4275c6(0x94)])!==null&&_0x492850!==void 0x0?_0x492850:_0x4275c6(0x9b),_0x164989);return await doXcode(_0x2604a7,_0x59998c,_0x164989),console[_0x4275c6(0x7a)](_0x4275c6(0x91)),await xcode_1[_0x4275c6(0x8d)]['build'](_0x2604a7[_0x4275c6(0x88)]),_0x164989;}async function store(_0x227eb1){const _0x13a689=_0x359a3f;resource_1[_0x13a689(0x90)]['checkPlatformPath'](_0x227eb1[_0x13a689(0x8f)]),(0x0,check_1[_0x13a689(0x82)])(_0x227eb1);let _0x5f067c={'name':_0x13a689(0xa1)};_0x227eb1['buildType']='app-store-connect';if(_0x227eb1[_0x13a689(0xa2)])_0x5f067c[_0x13a689(0xa2)]=_0x227eb1['name'];else{const _0x5b9003=await build(_0x227eb1);_0x5f067c[_0x13a689(0xa2)]=_0x5b9003[_0x13a689(0x80)][_0x13a689(0xa2)];}await xcode_1[_0x13a689(0x8d)][_0x13a689(0x9e)](_0x227eb1,_0x5f067c);}async function run(_0x364ebf){const _0x2440cc=_0x359a3f;var _0x3cddcf;const _0x407334=JSON[_0x2440cc(0x84)](_0x364ebf);history_1[_0x2440cc(0x75)]['init'](_0x407334),console[_0x2440cc(0x7a)](_0x2440cc(0x8b)),resource_1[_0x2440cc(0x90)][_0x2440cc(0x7e)](_0x364ebf[_0x2440cc(0x8f)]);const _0x17fb5d=await doPwa(_0x364ebf,!![]);history_1['default'][_0x2440cc(0x98)](_0x17fb5d[_0x2440cc(0x80)]);if(_0x17fb5d[_0x2440cc(0x89)]||_0x364ebf['tryWithoutBuild']===_0x2440cc(0xa0)){if(history_1['default'][_0x2440cc(0x8c)](_0x17fb5d[_0x2440cc(0x80)])){console[_0x2440cc(0x7a)]('Same\x20as\x20the\x20previous\x20record'),await xcode_1[_0x2440cc(0x8d)][_0x2440cc(0x9a)]();return;}}const _0xccabe1=await doReadyProject((_0x3cddcf=_0x364ebf[_0x2440cc(0x94)])!==null&&_0x3cddcf!==void 0x0?_0x3cddcf:_0x2440cc(0x9b),_0x17fb5d);await doXcode(_0x364ebf,_0xccabe1,_0x17fb5d,!![]),console['log'](_0x2440cc(0x91)),await xcode_1[_0x2440cc(0x8d)][_0x2440cc(0x9d)]();}async function doPwa(_0x23f4fd,_0x2122c1=![]){const _0x3851a3=_0x359a3f;return(0x0,check_1['checkBuildParams'])(_0x23f4fd,_0x2122c1),await pwa_1[_0x3851a3(0x7d)][_0x3851a3(0x92)](_0x23f4fd,_0x2122c1);}async function doReadyProject(_0x55d9a4,_0x8e232f){const _0x3d6c4d=_0x359a3f;return!_0x8e232f[_0x3d6c4d(0x89)]&&(await resource_1[_0x3d6c4d(0x90)]['moveProjectFrom'](_0x55d9a4),console[_0x3d6c4d(0x7a)]('move\x20web\x20project:\x20ok')),await resource_1['ResourceManager']['generateIcon'](_0x8e232f);}async function doXcode(_0x3ff0e9,_0x11b71e,_0x5111a6,_0x57063b=![]){const _0x73fb9=_0x359a3f;await xcode_1['XcodeManager'][_0x73fb9(0x93)]({'icon':_0x11b71e,'manifestInfo':_0x5111a6,'teamId':_0x3ff0e9[_0x73fb9(0x76)],'version':_0x3ff0e9['version'],'buildType':_0x3ff0e9[_0x73fb9(0x8a)],'export':_0x3ff0e9[_0x73fb9(0x88)]},_0x57063b);}
@@ -1,3 +1,2 @@
1
- import { ParsedArgs } from 'minimist';
2
- export declare function checkBuildParams(args: ParsedArgs, isDev?: boolean): void;
3
- export declare function checkStoreParams(args: ParsedArgs): void;
1
+ export declare function checkBuildParams(args: any, isDev?: boolean): void;
2
+ export declare function checkStoreParams(args: any): void;
@@ -1 +1 @@
1
- 'use strict';const _0x6500ff=_0x9425;(function(_0x3762ff,_0x3789e2){const _0x3f1c97=_0x9425,_0x407a43=_0x3762ff();while(!![]){try{const _0x8ab1fc=-parseInt(_0x3f1c97(0x8f))/0x1+parseInt(_0x3f1c97(0x81))/0x2+-parseInt(_0x3f1c97(0x91))/0x3*(parseInt(_0x3f1c97(0x77))/0x4)+-parseInt(_0x3f1c97(0x7f))/0x5*(parseInt(_0x3f1c97(0x8b))/0x6)+parseInt(_0x3f1c97(0x93))/0x7*(-parseInt(_0x3f1c97(0x90))/0x8)+parseInt(_0x3f1c97(0x86))/0x9*(-parseInt(_0x3f1c97(0x8e))/0xa)+-parseInt(_0x3f1c97(0x7c))/0xb*(-parseInt(_0x3f1c97(0x79))/0xc);if(_0x8ab1fc===_0x3789e2)break;else _0x407a43['push'](_0x407a43['shift']());}catch(_0x5b54ce){_0x407a43['push'](_0x407a43['shift']());}}}(_0x5896,0x649b4));function _0x9425(_0x26c268,_0x471575){const _0x589674=_0x5896();return _0x9425=function(_0x9425a5,_0x9d3fbb){_0x9425a5=_0x9425a5-0x77;let _0x40aea6=_0x589674[_0x9425a5];return _0x40aea6;},_0x9425(_0x26c268,_0x471575);}Object[_0x6500ff(0x80)](exports,_0x6500ff(0x8c),{'value':!![]}),exports[_0x6500ff(0x8a)]=checkBuildParams,exports[_0x6500ff(0x8d)]=checkStoreParams;function _0x5896(){const _0x3e1b84=['87750cDJbJh','../pwa/validate','test','base','version\x20is\x20required','1360494QrwiJi','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','version','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','checkBuildParams','12AaSHRJ','__esModule','checkStoreParams','10UXJdVL','802227NmjmwU','88qgzTFX','153054aAHEGT','--teamId\x20is\x20required','312599IKwDpf','24EBIgIf','validateURL','441948vlroSI','split','search','825FSQATy','manifest','--u\x20and\x20--p\x20is\x20required','1608095JuwdmU','defineProperty'];_0x5896=function(){return _0x3e1b84;};return _0x5896();}const validate_1=require(_0x6500ff(0x82));function checkBuildParams(_0x75cd80,_0x2a72d0=![]){const _0x52b9d1=_0x6500ff;if(_0x75cd80[_0x52b9d1(0x7d)]&&_0x75cd80['manifest-url'])throw new Error(_0x52b9d1(0x87));if(!_0x75cd80['teamId']&&!_0x2a72d0)throw new Error(_0x52b9d1(0x92));if(_0x75cd80[_0x52b9d1(0x84)]){if((0x0,validate_1[_0x52b9d1(0x78)])(_0x75cd80[_0x52b9d1(0x84)]))try{const _0x2e92cc=new URL(_0x75cd80[_0x52b9d1(0x84)]);if(_0x2e92cc[_0x52b9d1(0x7b)]||_0x2e92cc['hash'])throw new Error(_0x52b9d1(0x89));}catch(_0x5107b0){throw new Error(_0x52b9d1(0x89));}else{const _0x58820d=/(\?.*|\.\w+|#.*)$/,_0x5c9b6a=_0x75cd80[_0x52b9d1(0x84)][_0x52b9d1(0x7a)]('/')['pop']()||'';if(_0x58820d[_0x52b9d1(0x83)](_0x5c9b6a))throw new Error(_0x52b9d1(0x89));}}}function checkStoreParams(_0x26c85a){const _0x25c249=_0x6500ff;if(!(_0x26c85a['u']&&_0x26c85a['p']))throw new Error(_0x25c249(0x7e));if(!_0x26c85a[_0x25c249(0x88)])throw new Error(_0x25c249(0x85));}
1
+ 'use strict';const _0x3bb6a6=_0x22a8;(function(_0x3a1af6,_0x1fa67f){const _0x544f8c=_0x22a8,_0x5ad900=_0x3a1af6();while(!![]){try{const _0x5cebb8=-parseInt(_0x544f8c(0xd8))/0x1+-parseInt(_0x544f8c(0xe0))/0x2*(parseInt(_0x544f8c(0xe4))/0x3)+-parseInt(_0x544f8c(0xd2))/0x4*(-parseInt(_0x544f8c(0xe9))/0x5)+-parseInt(_0x544f8c(0xdb))/0x6*(parseInt(_0x544f8c(0xeb))/0x7)+-parseInt(_0x544f8c(0xe5))/0x8*(-parseInt(_0x544f8c(0xd6))/0x9)+parseInt(_0x544f8c(0xec))/0xa*(parseInt(_0x544f8c(0xdf))/0xb)+parseInt(_0x544f8c(0xe1))/0xc*(parseInt(_0x544f8c(0xe6))/0xd);if(_0x5cebb8===_0x1fa67f)break;else _0x5ad900['push'](_0x5ad900['shift']());}catch(_0x26f1e2){_0x5ad900['push'](_0x5ad900['shift']());}}}(_0x5301,0x57eb4));function _0x5301(){const _0x55f21a=['--teamId\x20is\x20required','228126wpPhok','version\x20is\x20required','--u\x20and\x20--p\x20is\x20required','51762bvCuFU','defineProperty','pop','base','55xwMrwH','10nUIZLX','48VBaJCH','teamId','../pwa/validate','370725nzHVLi','8naLpLN','198146wcyzjC','version','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','899785aeDBzE','manifest','42Cntgab','922270MjwWqt','test','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','checkStoreParams','16UkurEl','checkBuildParams','search','manifest-url','143532SDxAIc'];_0x5301=function(){return _0x55f21a;};return _0x5301();}function _0x22a8(_0x1b4771,_0x54dab2){const _0x530159=_0x5301();return _0x22a8=function(_0x22a831,_0x1fa1d9){_0x22a831=_0x22a831-0xcf;let _0xbe6f94=_0x530159[_0x22a831];return _0xbe6f94;},_0x22a8(_0x1b4771,_0x54dab2);}Object[_0x3bb6a6(0xdc)](exports,'__esModule',{'value':!![]}),exports[_0x3bb6a6(0xd3)]=checkBuildParams,exports[_0x3bb6a6(0xd1)]=checkStoreParams;const validate_1=require(_0x3bb6a6(0xe3));function checkBuildParams(_0x51b951,_0x4b74fd=![]){const _0x12753a=_0x3bb6a6;if(_0x51b951[_0x12753a(0xea)]&&_0x51b951[_0x12753a(0xd5)])throw new Error(_0x12753a(0xd0));if(!_0x51b951[_0x12753a(0xe2)]&&!_0x4b74fd)throw new Error(_0x12753a(0xd7));if(_0x51b951[_0x12753a(0xde)]){if((0x0,validate_1['validateURL'])(_0x51b951[_0x12753a(0xde)]))try{const _0x2b18c3=new URL(_0x51b951[_0x12753a(0xde)]);if(_0x2b18c3[_0x12753a(0xd4)]||_0x2b18c3['hash'])throw new Error(_0x12753a(0xe8));}catch(_0x28fe0){throw new Error(_0x12753a(0xe8));}else{const _0x3e2f2a=/(\?.*|\.\w+|#.*)$/,_0x5919ab=_0x51b951[_0x12753a(0xde)]['split']('/')[_0x12753a(0xdd)]()||'';if(_0x3e2f2a[_0x12753a(0xcf)](_0x5919ab))throw new Error(_0x12753a(0xe8));}}}function checkStoreParams(_0x1443e1){const _0x3dcaa6=_0x3bb6a6;if(!(_0x1443e1['u']&&_0x1443e1['p']))throw new Error(_0x3dcaa6(0xda));if(!_0x1443e1[_0x3dcaa6(0xe7)])throw new Error(_0x3dcaa6(0xd9));}
@@ -1 +1 @@
1
- 'use strict';const _0x423c87=_0x2a38;(function(_0x39cf68,_0x16db68){const _0x53c106=_0x2a38,_0x13541b=_0x39cf68();while(!![]){try{const _0x53a846=parseInt(_0x53c106(0x6a))/0x1*(parseInt(_0x53c106(0x72))/0x2)+-parseInt(_0x53c106(0x82))/0x3*(-parseInt(_0x53c106(0x6f))/0x4)+-parseInt(_0x53c106(0x6e))/0x5+parseInt(_0x53c106(0x70))/0x6+parseInt(_0x53c106(0x66))/0x7*(parseInt(_0x53c106(0x65))/0x8)+parseInt(_0x53c106(0x76))/0x9+parseInt(_0x53c106(0x69))/0xa;if(_0x53a846===_0x16db68)break;else _0x13541b['push'](_0x13541b['shift']());}catch(_0x204bac){_0x13541b['push'](_0x13541b['shift']());}}}(_0x3e7e,0x71a6b));function _0x2a38(_0x396542,_0x24e5c2){const _0x3e7eec=_0x3e7e();return _0x2a38=function(_0x2a3886,_0x54d6e4){_0x2a3886=_0x2a3886-0x65;let _0x28cbaa=_0x3e7eec[_0x2a3886];return _0x28cbaa;},_0x2a38(_0x396542,_0x24e5c2);}function _0x3e7e(){const _0xc59d10=['webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','publish','get','main','join','webspatial\x20[command]\x20<options>','help\x20................\x20shows\x20this\x20menu','587721OTqwyu','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','40aWAYAP','503629wNlGxN','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','__esModule','764120oKRVuC','32051eyqfmQ','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','Usage:','4085295zdhrzq','8QwNEbY','1381584iPMFle','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','2nxCirh','dev','ConsoleLog','defineProperty','1730682ISbLaI','webspatial\x20publish\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','help','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','info'];_0x3e7e=function(){return _0xc59d10;};return _0x3e7e();}Object[_0x423c87(0x75)](exports,_0x423c87(0x68),{'value':!![]}),exports['help']=help;const Log_1=require('../utils/Log'),HELP_MESSAGES=new Map([[_0x423c87(0x7e),[_0x423c87(0x80),'','',_0x423c87(0x81),_0x423c87(0x6b)+_0x423c87(0x79),_0x423c87(0x71),_0x423c87(0x84)]['join']('\x0a')],['build',[_0x423c87(0x6d),'','','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','','',_0x423c87(0x67)][_0x423c87(0x7f)]('\x0a')],[_0x423c87(0x73),[_0x423c87(0x6d),'','',_0x423c87(0x6c),'','','webspatial\x20dev\x20--manifest-url=<net-manifest-url>'][_0x423c87(0x7f)]('\x0a')],[_0x423c87(0x7c),[_0x423c87(0x6d),'','',_0x423c87(0x77),'','',_0x423c87(0x7b),'','',_0x423c87(0x83)][_0x423c87(0x7f)]('\x0a')]]);async function help(_0x492f46,_0x2204da=new Log_1[(_0x423c87(0x74))](_0x423c87(0x78))){const _0x32b617=_0x423c87,_0x5c5b22=_0x492f46['_'][0x1],_0xf9782=HELP_MESSAGES[_0x32b617(0x7d)](_0x5c5b22)||HELP_MESSAGES[_0x32b617(0x7d)]('main');return _0x2204da[_0x32b617(0x7a)](_0xf9782),!![];}
1
+ 'use strict';function _0xd377(){const _0x3d0687=['ConsoleLog','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','9RJxoEC','dev','help','1943416BIOUsw','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','429736YVziiX','help\x20................\x20shows\x20this\x20menu','build','info','join','1330235TSUXfK','1227484KZCFep','9187724RGgsqs','../utils/Log','1133ZRozFR','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','publish','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','1RXCSAT','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','__esModule','webspatial\x20[command]\x20<options>','main','Usage:','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','webspatial\x20publish\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','175gEblJw','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','18zFoddm','defineProperty','6EdwQwM','112260LvdAGY','11542460MbyAqw','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project'];_0xd377=function(){return _0x3d0687;};return _0xd377();}const _0x1947af=_0x3ad9;(function(_0x2f6c30,_0x176bd1){const _0x5da323=_0x3ad9,_0x3d8910=_0x2f6c30();while(!![]){try{const _0x3a8cf3=-parseInt(_0x5da323(0x14c))/0x1*(-parseInt(_0x5da323(0x161))/0x2)+-parseInt(_0x5da323(0x158))/0x3*(-parseInt(_0x5da323(0x145))/0x4)+parseInt(_0x5da323(0x144))/0x5*(-parseInt(_0x5da323(0x156))/0x6)+-parseInt(_0x5da323(0x154))/0x7*(-parseInt(_0x5da323(0x13f))/0x8)+-parseInt(_0x5da323(0x15e))/0x9*(parseInt(_0x5da323(0x15a))/0xa)+parseInt(_0x5da323(0x148))/0xb*(-parseInt(_0x5da323(0x159))/0xc)+parseInt(_0x5da323(0x146))/0xd;if(_0x3a8cf3===_0x176bd1)break;else _0x3d8910['push'](_0x3d8910['shift']());}catch(_0x3880c0){_0x3d8910['push'](_0x3d8910['shift']());}}}(_0xd377,0xaf943));Object[_0x1947af(0x157)](exports,_0x1947af(0x14e),{'value':!![]}),exports[_0x1947af(0x160)]=help;const Log_1=require(_0x1947af(0x147)),HELP_MESSAGES=new Map([[_0x1947af(0x150),[_0x1947af(0x14f),'','',_0x1947af(0x140),_0x1947af(0x15b)+_0x1947af(0x149),_0x1947af(0x152),_0x1947af(0x162)][_0x1947af(0x143)]('\x0a')],[_0x1947af(0x141),[_0x1947af(0x151),'','','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','','',_0x1947af(0x14b)]['join']('\x0a')],[_0x1947af(0x15f),[_0x1947af(0x151),'','','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','','',_0x1947af(0x155)][_0x1947af(0x143)]('\x0a')],[_0x1947af(0x14a),[_0x1947af(0x151),'','',_0x1947af(0x153),'','',_0x1947af(0x15d),'','',_0x1947af(0x14d)]['join']('\x0a')]]);function _0x3ad9(_0xe37f1f,_0x58a863){const _0xd377c0=_0xd377();return _0x3ad9=function(_0x3ad965,_0x37276f){_0x3ad965=_0x3ad965-0x13f;let _0x1a6db5=_0xd377c0[_0x3ad965];return _0x1a6db5;},_0x3ad9(_0xe37f1f,_0x58a863);}async function help(_0x22e15d,_0x1d8375=new Log_1[(_0x1947af(0x15c))](_0x1947af(0x160))){const _0x2b2362=_0x1947af,_0x120786=_0x22e15d['_'][0x1],_0x374a8f=HELP_MESSAGES['get'](_0x120786)||HELP_MESSAGES['get'](_0x2b2362(0x150));return _0x1d8375[_0x2b2362(0x142)](_0x374a8f),!![];}
@@ -0,0 +1,2 @@
1
+ import { ParsedArgs } from 'minimist';
2
+ export declare function launch(args: ParsedArgs): Promise<boolean>;
@@ -0,0 +1 @@
1
+ 'use strict';function _0x426a(_0xed93c6,_0x237b55){const _0x5a5708=_0x5a57();return _0x426a=function(_0x426a1e,_0x2133cf){_0x426a1e=_0x426a1e-0xe6;let _0x1fca57=_0x5a5708[_0x426a1e];return _0x1fca57;},_0x426a(_0xed93c6,_0x237b55);}const _0x3860cd=_0x426a;(function(_0x1880b6,_0x6a099e){const _0x166979=_0x426a,_0x3c008e=_0x1880b6();while(!![]){try{const _0xf604b4=-parseInt(_0x166979(0xe7))/0x1*(-parseInt(_0x166979(0xec))/0x2)+parseInt(_0x166979(0xf2))/0x3*(-parseInt(_0x166979(0xea))/0x4)+parseInt(_0x166979(0xf4))/0x5+-parseInt(_0x166979(0xe8))/0x6+-parseInt(_0x166979(0xe6))/0x7+parseInt(_0x166979(0xe9))/0x8+parseInt(_0x166979(0xf0))/0x9*(parseInt(_0x166979(0xf5))/0xa);if(_0xf604b4===_0x6a099e)break;else _0x3c008e['push'](_0x3c008e['shift']());}catch(_0x4ede16){_0x3c008e['push'](_0x3c008e['shift']());}}}(_0x5a57,0x72f29));function _0x5a57(){const _0x319576=['710tXGGqg','365232DucRbm','2304464InJOnd','804748QgaJey','launch','1306RkLRJk','defineProperty','com.webspatial.test','default','32607gzuLhb','launchWithSimulator','6lCTQvZ','bundle-id','1631630mfWlQJ','1610lkNAnv','../xcode/xcrun','5090722ZNXPWm'];_0x5a57=function(){return _0x319576;};return _0x5a57();}Object[_0x3860cd(0xed)](exports,'__esModule',{'value':!![]}),exports[_0x3860cd(0xeb)]=launch;const xcrun_1=require(_0x3860cd(0xf6));async function launch(_0x36c79e){const _0x820a9b=_0x3860cd;var _0x5abecb;const _0x4143f8=(_0x5abecb=_0x36c79e[_0x820a9b(0xf3)])!==null&&_0x5abecb!==void 0x0?_0x5abecb:_0x820a9b(0xee),_0xb33010={'name':'','id':_0x4143f8};return xcrun_1[_0x820a9b(0xef)][_0x820a9b(0xf1)](_0xb33010),!![];}
@@ -0,0 +1,2 @@
1
+ import { ParsedArgs } from 'minimist';
2
+ export declare function shutdown(args: ParsedArgs): Promise<boolean>;
@@ -0,0 +1 @@
1
+ 'use strict';function _0x1f6a(_0x52ca7c,_0x3a827b){const _0x522f6d=_0x522f();return _0x1f6a=function(_0x1f6a52,_0x29c0b7){_0x1f6a52=_0x1f6a52-0x1dd;let _0x4f1abf=_0x522f6d[_0x1f6a52];return _0x4f1abf;},_0x1f6a(_0x52ca7c,_0x3a827b);}const _0x175dbb=_0x1f6a;function _0x522f(){const _0xe0b8b2=['defineProperty','14QXrQms','5661184KTftyx','__esModule','37707xkEjfc','497871aVjhBo','3574800WxHMqZ','default','2201595vIOIUX','114PrDbEj','24302124iiZAnz','shutdown','../xcode/xcrun','5041016kYKAia'];_0x522f=function(){return _0xe0b8b2;};return _0x522f();}(function(_0x7d32ef,_0x3000fe){const _0x4e104c=_0x1f6a,_0x197927=_0x7d32ef();while(!![]){try{const _0x5042cb=parseInt(_0x4e104c(0x1e3))/0x1+-parseInt(_0x4e104c(0x1e7))/0x2*(parseInt(_0x4e104c(0x1e2))/0x3)+-parseInt(_0x4e104c(0x1dd))/0x4+parseInt(_0x4e104c(0x1e6))/0x5+parseInt(_0x4e104c(0x1e4))/0x6+parseInt(_0x4e104c(0x1df))/0x7*(-parseInt(_0x4e104c(0x1e0))/0x8)+parseInt(_0x4e104c(0x1e8))/0x9;if(_0x5042cb===_0x3000fe)break;else _0x197927['push'](_0x197927['shift']());}catch(_0x30989a){_0x197927['push'](_0x197927['shift']());}}}(_0x522f,0xcda03));Object[_0x175dbb(0x1de)](exports,_0x175dbb(0x1e1),{'value':!![]}),exports[_0x175dbb(0x1e9)]=shutdown;const xcrun_1=require(_0x175dbb(0x1ea));async function shutdown(_0x1ccea7){const _0x1f5cb7=_0x175dbb;return xcrun_1[_0x1f5cb7(0x1e5)]['shutdownSimulator'](),!![];}
@@ -1,2 +1 @@
1
- import { Log } from '../utils/Log';
2
- export declare function version(log?: Log): Promise<boolean>;
1
+ export declare function getVersion(): Promise<string>;
@@ -1 +1 @@
1
- 'use strict';function _0x3958(){const _0x4c1a4d=['441YTuvPm','880197nWdIOJ','path','toString','33438sdTkVf','info','../../../package.json','1036735mqbKhx','2205135aQOdZr','18210800uDCGEd','1110EbTUPv','join','parse','4jpUwnY','481184rNopcK','895qaCYvq','version','ConsoleLog'];_0x3958=function(){return _0x4c1a4d;};return _0x3958();}function _0x48e2(_0x2954fd,_0x26db33){const _0x3958a0=_0x3958();return _0x48e2=function(_0x48e236,_0x40cae2){_0x48e236=_0x48e236-0xb4;let _0x4cf6fa=_0x3958a0[_0x48e236];return _0x4cf6fa;},_0x48e2(_0x2954fd,_0x26db33);}const _0x26b4fa=_0x48e2;(function(_0x6b3770,_0x35a086){const _0x529f7d=_0x48e2,_0x3c44ec=_0x6b3770();while(!![]){try{const _0x42666a=-parseInt(_0x529f7d(0xb6))/0x1*(parseInt(_0x529f7d(0xc3))/0x2)+-parseInt(_0x529f7d(0xba))/0x3*(parseInt(_0x529f7d(0xb4))/0x4)+-parseInt(_0x529f7d(0xc0))/0x5+-parseInt(_0x529f7d(0xbd))/0x6*(-parseInt(_0x529f7d(0xb9))/0x7)+-parseInt(_0x529f7d(0xb5))/0x8+-parseInt(_0x529f7d(0xc1))/0x9+parseInt(_0x529f7d(0xc2))/0xa;if(_0x42666a===_0x35a086)break;else _0x3c44ec['push'](_0x3c44ec['shift']());}catch(_0x313bc2){_0x3c44ec['push'](_0x3c44ec['shift']());}}}(_0x3958,0xd44a9));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x26b4fa(0xb7)]=version;const fs=require('fs'),path=require(_0x26b4fa(0xbb)),Log_1=require('../utils/Log');async function version(_0x10d1d6=new Log_1[(_0x26b4fa(0xb8))](_0x26b4fa(0xb7))){const _0x5798f5=_0x26b4fa,_0x4cc55c=path[_0x5798f5(0xc4)](__dirname,_0x5798f5(0xbf)),_0xfb3670=await(await fs['promises']['readFile'](_0x4cc55c))[_0x5798f5(0xbc)](),_0x956414=JSON[_0x5798f5(0xc5)](_0xfb3670);return _0x10d1d6[_0x5798f5(0xbe)](_0x956414['version']),!![];}
1
+ 'use strict';const _0x4a208d=_0x1f0c;(function(_0x9f9f6b,_0x2247f7){const _0x4b9746=_0x1f0c,_0x4da26a=_0x9f9f6b();while(!![]){try{const _0x30f5ef=-parseInt(_0x4b9746(0x135))/0x1+parseInt(_0x4b9746(0x136))/0x2*(-parseInt(_0x4b9746(0x138))/0x3)+parseInt(_0x4b9746(0x13b))/0x4+parseInt(_0x4b9746(0x137))/0x5*(-parseInt(_0x4b9746(0x144))/0x6)+parseInt(_0x4b9746(0x134))/0x7+-parseInt(_0x4b9746(0x143))/0x8+parseInt(_0x4b9746(0x140))/0x9*(parseInt(_0x4b9746(0x13f))/0xa);if(_0x30f5ef===_0x2247f7)break;else _0x4da26a['push'](_0x4da26a['shift']());}catch(_0x1379ae){_0x4da26a['push'](_0x4da26a['shift']());}}}(_0xf8a1,0xa760d));function _0xf8a1(){const _0x473dc3=['34ikYWNd','1353110vuzxSV','3759IWUNYH','promises','defineProperty','3787652gUgNgG','version','join','path','3130ywCJOA','42741HjMgHl','readFile','parse','7341680cLRlJH','30ZtywKp','getVersion','8120812azbbUv','615764QLydBR'];_0xf8a1=function(){return _0x473dc3;};return _0xf8a1();}Object[_0x4a208d(0x13a)](exports,'__esModule',{'value':!![]}),exports[_0x4a208d(0x133)]=getVersion;const fs=require('fs'),path=require(_0x4a208d(0x13e));function _0x1f0c(_0x7c0499,_0x35469b){const _0xf8a1ca=_0xf8a1();return _0x1f0c=function(_0x1f0c09,_0xf4554a){_0x1f0c09=_0x1f0c09-0x133;let _0x2c13c0=_0xf8a1ca[_0x1f0c09];return _0x2c13c0;},_0x1f0c(_0x7c0499,_0x35469b);}async function getVersion(){const _0xffba59=_0x4a208d,_0x185a05=path[_0xffba59(0x13d)](__dirname,'../../../package.json'),_0x3a5773=await(await fs[_0xffba59(0x139)][_0xffba59(0x141)](_0x185a05))['toString'](),_0x3491fa=JSON[_0xffba59(0x142)](_0x3a5773);return _0x3491fa[_0xffba59(0x13c)];}
@@ -1 +1 @@
1
- 'use strict';const _0x27cb2a=_0x4dab;(function(_0x5c907b,_0x459347){const _0x3344de=_0x4dab,_0x270301=_0x5c907b();while(!![]){try{const _0x398bb6=parseInt(_0x3344de(0x17b))/0x1+-parseInt(_0x3344de(0x15a))/0x2+-parseInt(_0x3344de(0x14f))/0x3+-parseInt(_0x3344de(0x16d))/0x4*(-parseInt(_0x3344de(0x177))/0x5)+parseInt(_0x3344de(0x156))/0x6+parseInt(_0x3344de(0x134))/0x7*(parseInt(_0x3344de(0x183))/0x8)+-parseInt(_0x3344de(0x162))/0x9;if(_0x398bb6===_0x459347)break;else _0x270301['push'](_0x270301['shift']());}catch(_0xce732){_0x270301['push'](_0x270301['shift']());}}}(_0x9c36,0x3f05d));Object['defineProperty'](exports,_0x27cb2a(0x170),{'value':!![]}),exports[_0x27cb2a(0x158)]=void 0x0,exports['configId']=configId,exports[_0x27cb2a(0x17f)]=configStartUrl,exports[_0x27cb2a(0x160)]=configScope,exports[_0x27cb2a(0x176)]=configDisplay,exports['configMainScene']=configMainScene,exports['configDeeplink']=configDeeplink;const utils_1=require(_0x27cb2a(0x181)),validate_1=require(_0x27cb2a(0x154)),path_1=require('path');function configId(_0xd95113,_0xf2ec6b){const _0x3f79b9=_0x27cb2a;if(_0xf2ec6b)_0xd95113['id']=_0xf2ec6b;else try{const _0x28da66=new URL(_0xd95113['id']);let _0x250264=_0x28da66['host'][_0x3f79b9(0x16c)]('.')[_0x3f79b9(0x166)]();_0xd95113['id']=_0x250264[_0x3f79b9(0x178)]('.');}catch(_0x1094c7){throw new Error('id\x20is\x20not\x20a\x20valid\x20url');}}function configStartUrl(_0x5f4203,_0x4ec523,_0x411f5d,_0x243e2d){const _0x3adb48=_0x27cb2a;var _0x3c61e0;let _0x9cb71d=(_0x3c61e0=_0x5f4203['start_url'])!==null&&_0x3c61e0!==void 0x0?_0x3c61e0:'/';const _0x206571=(0x0,validate_1[_0x3adb48(0x13c)])(_0x9cb71d),_0x42debd=_0x4ec523[_0x3adb48(0x138)]>0x0;if(_0x42debd){const _0x41be69=(0x0,validate_1[_0x3adb48(0x13c)])(_0x4ec523);if(!_0x206571&&!_0x41be69){const _0xb65c29=(0x0,path_1['resolve'])('./static-web'),_0x350736=(0x0,path_1[_0x3adb48(0x167)])(_0xb65c29,_0x4ec523,_0x9cb71d),_0x273a16=(0x0,path_1['normalize'])(_0x350736),_0x594689=(0x0,path_1[_0x3adb48(0x178)])(_0xb65c29,_0x273a16);_0x9cb71d=(0x0,path_1[_0x3adb48(0x145)])(process['cwd'](),_0x594689)[_0x3adb48(0x13e)](/^(\.\.\/)+/,'./')[_0x3adb48(0x13e)](/\/$/,'');}else{if(_0x206571&&!_0x41be69){const _0x1b130b=new URL(_0x9cb71d),_0x26e31d=_0x1b130b['pathname']+_0x1b130b['search']+_0x1b130b['hash'];let _0x503b13=new URL(_0x4ec523,_0x1b130b[_0x3adb48(0x13d)]);_0x9cb71d=new URL(_0x26e31d,_0x503b13)[_0x3adb48(0x14d)];}else{if(!_0x206571&&_0x41be69){if(_0x9cb71d[_0x3adb48(0x184)]('/')){const _0x3a415e=new URL(_0x4ec523);_0x9cb71d=_0x3a415e[_0x3adb48(0x13d)]+(0x0,path_1['join'])(_0x3a415e[_0x3adb48(0x150)],_0x9cb71d);}else _0x9cb71d=new URL(_0x9cb71d,_0x4ec523)[_0x3adb48(0x14d)];}else{if(_0x206571&&_0x41be69){const _0x41ec1f=new URL(_0x9cb71d),_0x56309c=new URL(_0x4ec523),_0x55bac9=_0x41ec1f[_0x3adb48(0x150)]+_0x41ec1f[_0x3adb48(0x17a)]+_0x41ec1f[_0x3adb48(0x180)];_0x9cb71d=new URL(_0x55bac9,_0x56309c[_0x3adb48(0x13d)]+_0x56309c[_0x3adb48(0x150)])[_0x3adb48(0x14d)];}}}}}else{if(_0x243e2d){const _0x5d70bc=new URL(_0x411f5d);if(!_0x206571){const _0x5d5bb7=new URL(_0x9cb71d,_0x5d70bc[_0x3adb48(0x13d)]);_0x9cb71d=_0x5d5bb7['href'];}else{const _0x55feb0=new URL(_0x9cb71d);_0x9cb71d=_0x5d70bc['origin']+_0x55feb0[_0x3adb48(0x150)]+_0x55feb0[_0x3adb48(0x17a)]+_0x55feb0[_0x3adb48(0x180)];}}else{if(!_0x206571){const _0x122850=(0x0,path_1[_0x3adb48(0x167)])(_0x3adb48(0x164)),_0x20d19c=(0x0,path_1['resolve'])(_0x122850,_0x9cb71d),_0x88b77e=(0x0,path_1[_0x3adb48(0x161)])(_0x20d19c),_0x310744=(0x0,path_1[_0x3adb48(0x178)])(_0x122850,_0x88b77e);_0x9cb71d=(0x0,path_1[_0x3adb48(0x145)])(process['cwd'](),_0x310744)[_0x3adb48(0x13e)](/^(\.\.\/)+/,'./')[_0x3adb48(0x13e)](/\/$/,'');}}}return _0x9cb71d;}function configScope(_0x58733f){const _0x57203b=_0x27cb2a;var _0x49cee7;let _0x5126b9=(_0x49cee7=_0x58733f[_0x57203b(0x172)])!==null&&_0x49cee7!==void 0x0?_0x49cee7:'/';const _0x2b1933=(0x0,validate_1['validateURL'])(_0x58733f[_0x57203b(0x14c)]),_0x1b07f3=(0x0,validate_1['validateURL'])(_0x5126b9);if(_0x2b1933&&_0x1b07f3){const _0xb7fb5d=new URL(_0x5126b9),_0x2752d6=new URL(_0x58733f[_0x57203b(0x14c)]);(_0xb7fb5d[_0x57203b(0x14a)]!==_0x2752d6[_0x57203b(0x14a)]||_0x58733f['start_url'][_0x57203b(0x179)](_0x5126b9)!==0x0)&&(_0x5126b9=(0x0,utils_1[_0x57203b(0x151)])(_0x58733f[_0x57203b(0x14c)]));}else{if(_0x2b1933&&!_0x1b07f3)_0x5126b9=new URL(_0x5126b9,_0x58733f['start_url'])[_0x57203b(0x14d)];else{if(!_0x2b1933&&_0x1b07f3){const _0x365288=_0x58733f[_0x57203b(0x14c)][_0x57203b(0x13e)](/\/[^\/]+$/,'');_0x5126b9=(0x0,path_1[_0x57203b(0x161)])(_0x365288+'/');}else _0x5126b9=(0x0,path_1[_0x57203b(0x178)])((0x0,utils_1[_0x57203b(0x151)])(_0x58733f[_0x57203b(0x14c)]),_0x5126b9);}}_0x58733f['scope']=_0x5126b9;}function _0x4dab(_0x5c7fb3,_0xc754be){const _0x9c3630=_0x9c36();return _0x4dab=function(_0x4dabab,_0x4f5c0d){_0x4dabab=_0x4dabab-0x134;let _0xbb80c0=_0x9c3630[_0x4dabab];return _0xbb80c0;},_0x4dab(_0x5c7fb3,_0xc754be);}function configDisplay(_0x2459c7){const _0x2bbd72=_0x27cb2a;let _0x490677=_0x2459c7[_0x2bbd72(0x169)];const _0x586ac4=[_0x2bbd72(0x171),'standalone',_0x2bbd72(0x16f)];!_0x586ac4['includes'](_0x490677)&&(_0x490677=_0x2bbd72(0x17e));if(_0x2459c7[_0x2bbd72(0x168)]&&_0x2459c7[_0x2bbd72(0x168)][_0x2bbd72(0x138)]>0x0){const _0x5f026c=_0x2459c7[_0x2bbd72(0x168)][_0x2bbd72(0x141)]((_0x387752,_0x80bcbc)=>({'mode':_0x387752,'index':_0x80bcbc}))[_0x2bbd72(0x13a)](({mode:_0x5211c0})=>_0x586ac4[_0x2bbd72(0x174)](_0x5211c0))[_0x2bbd72(0x143)]((_0x1c36f1,_0x142893)=>_0x1c36f1[_0x2bbd72(0x14b)]-_0x142893[_0x2bbd72(0x14b)]);_0x5f026c[_0x2bbd72(0x138)]>0x0&&(_0x490677=_0x5f026c[0x0][_0x2bbd72(0x186)]);}_0x2459c7[_0x2bbd72(0x169)]=_0x490677;}function configMainScene(_0x120d46){const _0x5814fc=_0x27cb2a;var _0x2e8b51,_0x2e4c69;const _0x2d3e64=['automatic','contentMinSize',_0x5814fc(0x147)];let _0x463413={'defaultSize':{'width':0x500,'height':0x500},'resizability':'automatic'};if(_0x120d46[_0x5814fc(0x15b)]){if(typeof _0x120d46[_0x5814fc(0x15b)]===_0x5814fc(0x17d))_0x463413['defaultSize'][_0x5814fc(0x182)]=Number((_0x2e8b51=_0x120d46[_0x5814fc(0x15b)][_0x5814fc(0x142)])===null||_0x2e8b51===void 0x0?void 0x0:_0x2e8b51[_0x5814fc(0x182)])>0x0?_0x120d46[_0x5814fc(0x15b)][_0x5814fc(0x142)][_0x5814fc(0x182)]:0x500,_0x463413[_0x5814fc(0x137)][_0x5814fc(0x15c)]=Number((_0x2e4c69=_0x120d46[_0x5814fc(0x15b)][_0x5814fc(0x142)])===null||_0x2e4c69===void 0x0?void 0x0:_0x2e4c69[_0x5814fc(0x15c)])>0x0?_0x120d46[_0x5814fc(0x15b)]['default_size'][_0x5814fc(0x15c)]:0x500,_0x463413['resizability']=_0x2d3e64['includes'](_0x120d46[_0x5814fc(0x15b)][_0x5814fc(0x173)])?_0x120d46[_0x5814fc(0x15b)][_0x5814fc(0x173)]:_0x5814fc(0x155),_0x120d46[_0x5814fc(0x13f)]=_0x463413;else typeof _0x120d46[_0x5814fc(0x15b)]===_0x5814fc(0x15d)&&(_0x120d46[_0x5814fc(0x13f)]=_0x5814fc(0x165));}}function configDeeplink(_0x3983c0){const _0x239a5c=_0x27cb2a;if(_0x3983c0[_0x239a5c(0x185)]&&_0x3983c0[_0x239a5c(0x185)][_0x239a5c(0x138)]>0x0)for(var _0xc9f3f=0x0;_0xc9f3f<_0x3983c0[_0x239a5c(0x185)]['length'];_0xc9f3f++){const _0x2b2d27=_0x3983c0[_0x239a5c(0x185)][_0xc9f3f];if(_0x2b2d27[_0x239a5c(0x15f)]&&(exports[_0x239a5c(0x158)][_0x239a5c(0x174)](_0x2b2d27[_0x239a5c(0x15f)])||_0x2b2d27[_0x239a5c(0x15f)][_0x239a5c(0x179)](_0x239a5c(0x175))===0x0)){if(!((0x0,validate_1['validateURL'])(_0x2b2d27[_0x239a5c(0x148)])&&_0x2b2d27[_0x239a5c(0x148)]['indexOf'](_0x3983c0[_0x239a5c(0x172)])<0x0))continue;}_0x3983c0[_0x239a5c(0x185)]['splice'](_0xc9f3f,0x1),_0xc9f3f--;}}function _0x9c36(){const _0x833127=['length','news','filter','bitcoin','validateURL','origin','replace','mainScene','geo','map','default_size','sort','mms','relative','urn','contentSize','url','wtai','host','index','start_url','href','ssh','754080JKFlzP','pathname','parseRouter','matrix','magnet','./validate','automatic','2743668enWHWM','sip','safelist','xmpp','779774BBPSlJ','xr_main_scene','height','string','ftps','protocol','configScope','normalize','3915351hKyTNd','ftp','./static-web','dynamic','reverse','resolve','display_override','display','mailto','nntp','split','1305028Dqhmgx','sms','fullscreen','__esModule','minimal-ui','scope','resizability','includes','web+','configDisplay','5yTuPxW','join','indexOf','search','310102koFdkA','openpgp4fpr','object','standalone','configStartUrl','hash','../utils/utils','width','8kOLraM','startsWith','protocol_handlers','mode','1685530AzNIxF','ircs','smsto','defaultSize'];_0x9c36=function(){return _0x833127;};return _0x9c36();}exports[_0x27cb2a(0x158)]=[_0x27cb2a(0x13b),_0x27cb2a(0x163),_0x27cb2a(0x15e),_0x27cb2a(0x140),'im','irc',_0x27cb2a(0x135),_0x27cb2a(0x153),_0x27cb2a(0x16a),_0x27cb2a(0x152),_0x27cb2a(0x144),_0x27cb2a(0x139),_0x27cb2a(0x16b),_0x27cb2a(0x17c),'sftp',_0x27cb2a(0x157),_0x27cb2a(0x16e),_0x27cb2a(0x136),_0x27cb2a(0x14e),'tel',_0x27cb2a(0x146),'webcal',_0x27cb2a(0x149),_0x27cb2a(0x159)];
1
+ 'use strict';const _0x1f0a40=_0x802b;(function(_0x1e2de0,_0x42c736){const _0x983f30=_0x802b,_0x354264=_0x1e2de0();while(!![]){try{const _0x408224=-parseInt(_0x983f30(0x1d8))/0x1+-parseInt(_0x983f30(0x1ed))/0x2*(-parseInt(_0x983f30(0x1f6))/0x3)+-parseInt(_0x983f30(0x1be))/0x4+-parseInt(_0x983f30(0x1f5))/0x5*(-parseInt(_0x983f30(0x1c3))/0x6)+parseInt(_0x983f30(0x1b8))/0x7*(parseInt(_0x983f30(0x1cf))/0x8)+parseInt(_0x983f30(0x1db))/0x9*(parseInt(_0x983f30(0x1ff))/0xa)+-parseInt(_0x983f30(0x1d7))/0xb*(parseInt(_0x983f30(0x1d6))/0xc);if(_0x408224===_0x42c736)break;else _0x354264['push'](_0x354264['shift']());}catch(_0xabf5af){_0x354264['push'](_0x354264['shift']());}}}(_0x4d2a,0x7a6fa));Object[_0x1f0a40(0x1ef)](exports,'__esModule',{'value':!![]}),exports[_0x1f0a40(0x1c9)]=void 0x0,exports[_0x1f0a40(0x1c1)]=configId,exports[_0x1f0a40(0x1c7)]=configStartUrl,exports['configScope']=configScope,exports['configDisplay']=configDisplay,exports['configMainScene']=configMainScene,exports['configDeeplink']=configDeeplink;const utils_1=require(_0x1f0a40(0x205)),validate_1=require(_0x1f0a40(0x1fa)),path_1=require('path');function configId(_0xb0c7ef,_0x30f39d){const _0x5144ad=_0x1f0a40;if(_0x30f39d)_0xb0c7ef['id']=_0x30f39d;else try{const _0x1bda12=new URL(_0xb0c7ef['id']);let _0x589842=_0x1bda12[_0x5144ad(0x1ce)][_0x5144ad(0x1ee)]('.')[_0x5144ad(0x1dd)]();_0xb0c7ef['id']=_0x589842[_0x5144ad(0x1ba)]('.');}catch(_0x493df6){throw new Error(_0x5144ad(0x1e6)+_0xb0c7ef['id']+'\x20\x20is\x20not\x20a\x20valid\x20url');}}function configStartUrl(_0x3706ae,_0x5b2b36,_0x654607,_0x270027){const _0x4092ff=_0x1f0a40;var _0x7fae3b;let _0x2a0b95=(_0x7fae3b=_0x3706ae[_0x4092ff(0x1c6)])!==null&&_0x7fae3b!==void 0x0?_0x7fae3b:'/';const _0x3a2f91=(0x0,validate_1[_0x4092ff(0x1f4)])(_0x2a0b95),_0x468a5d=_0x5b2b36[_0x4092ff(0x1fc)]>0x0;if(_0x468a5d){const _0x3a845f=(0x0,validate_1[_0x4092ff(0x1f4)])(_0x5b2b36);if(!_0x3a2f91&&!_0x3a845f){const _0x3fc011=(0x0,path_1[_0x4092ff(0x1d4)])(_0x4092ff(0x1bb)),_0x5400e7=(0x0,path_1[_0x4092ff(0x1d4)])(_0x3fc011,_0x5b2b36,_0x2a0b95),_0x1ee035=(0x0,path_1['normalize'])(_0x5400e7),_0xc90739=(0x0,path_1['join'])(_0x3fc011,_0x1ee035);_0x2a0b95=(0x0,path_1['relative'])(process['cwd'](),_0xc90739)[_0x4092ff(0x1bd)](/^(\.\.\/)+/,'./')['replace'](/\/$/,'');}else{if(_0x3a2f91&&!_0x3a845f){const _0x53d79f=new URL(_0x2a0b95),_0x32e41b=_0x53d79f[_0x4092ff(0x1b6)]+_0x53d79f[_0x4092ff(0x1b9)]+_0x53d79f[_0x4092ff(0x1e4)];let _0xd11e4d=new URL(_0x5b2b36,_0x53d79f[_0x4092ff(0x1e9)]);_0x2a0b95=new URL(_0x32e41b,_0xd11e4d)['href'];}else{if(!_0x3a2f91&&_0x3a845f){if(_0x2a0b95[_0x4092ff(0x1f1)]('/')){const _0x37a201=new URL(_0x5b2b36);_0x2a0b95=_0x37a201[_0x4092ff(0x1e9)]+(0x0,path_1[_0x4092ff(0x1ba)])(_0x37a201[_0x4092ff(0x1b6)],_0x2a0b95);}else _0x2a0b95=new URL(_0x2a0b95,_0x5b2b36)[_0x4092ff(0x1eb)];}else{if(_0x3a2f91&&_0x3a845f){const _0x203559=new URL(_0x2a0b95),_0x5f2fd7=new URL(_0x5b2b36),_0x40ca22=_0x203559[_0x4092ff(0x1b6)]+_0x203559[_0x4092ff(0x1b9)]+_0x203559[_0x4092ff(0x1e4)];_0x2a0b95=new URL(_0x40ca22,_0x5f2fd7[_0x4092ff(0x1e9)]+_0x5f2fd7[_0x4092ff(0x1b6)])[_0x4092ff(0x1eb)];}}}}}else{if(_0x270027){const _0x5739c5=new URL(_0x654607);if(!_0x3a2f91){const _0x292585=new URL(_0x2a0b95,_0x5739c5['origin']);_0x2a0b95=_0x292585[_0x4092ff(0x1eb)];}else{const _0x403c96=new URL(_0x2a0b95);_0x2a0b95=_0x5739c5['origin']+_0x403c96[_0x4092ff(0x1b6)]+_0x403c96['search']+_0x403c96[_0x4092ff(0x1e4)];}}else{if(!_0x3a2f91){const _0x3b8a5b=(0x0,path_1[_0x4092ff(0x1d4)])(_0x4092ff(0x1bb)),_0x58a4c7=(0x0,path_1['resolve'])(_0x3b8a5b,_0x2a0b95),_0x99820b=(0x0,path_1[_0x4092ff(0x1e3)])(_0x58a4c7),_0x2a755a=(0x0,path_1[_0x4092ff(0x1ba)])(_0x3b8a5b,_0x99820b);_0x2a0b95=(0x0,path_1[_0x4092ff(0x203)])(process[_0x4092ff(0x1c2)](),_0x2a755a)['replace'](/^(\.\.\/)+/,'./')['replace'](/\/$/,'');}}}return _0x2a0b95;}function configScope(_0x412fa3){const _0x57e99e=_0x1f0a40;var _0x190d69;let _0x3afe00=(_0x190d69=_0x412fa3[_0x57e99e(0x1cd)])!==null&&_0x190d69!==void 0x0?_0x190d69:'/';const _0x3016ab=(0x0,validate_1['validateURL'])(_0x412fa3['start_url']),_0x74218e=(0x0,validate_1[_0x57e99e(0x1f4)])(_0x3afe00);if(_0x3016ab&&_0x74218e){const _0x344e07=new URL(_0x3afe00),_0x1a7537=new URL(_0x412fa3[_0x57e99e(0x1c6)]);(_0x344e07[_0x57e99e(0x1ce)]!==_0x1a7537[_0x57e99e(0x1ce)]||_0x412fa3[_0x57e99e(0x1c6)][_0x57e99e(0x1bc)](_0x3afe00)!==0x0)&&(_0x3afe00=(0x0,utils_1[_0x57e99e(0x1f0)])(_0x412fa3['start_url']));}else{if(_0x3016ab&&!_0x74218e)_0x3afe00=new URL(_0x3afe00,_0x412fa3[_0x57e99e(0x1c6)])[_0x57e99e(0x1eb)];else{if(!_0x3016ab&&_0x74218e){const _0x2ccbce=_0x412fa3[_0x57e99e(0x1c6)]['replace'](/\/[^\/]+$/,'');_0x3afe00=(0x0,path_1[_0x57e99e(0x1e3)])(_0x2ccbce+'/');}else _0x3afe00=(0x0,path_1['join'])((0x0,utils_1['parseRouter'])(_0x412fa3['start_url']),_0x3afe00);}}_0x412fa3[_0x57e99e(0x1cd)]=_0x3afe00;}function _0x4d2a(){const _0x451d2d=['91pPBYOr','search','join','./static-web','indexOf','replace','2606576GFnAjT','magnet','display_override','configId','cwd','12fAKeoJ','index','wtai','start_url','configStartUrl','sftp','safelist','mainScene','height','ftp','scope','host','615416CdfSTS','matrix','mailto','width','nntp','resolve','ftps','202668uYkNOs','451JiviwJ','676727PYWZrG','ssh','protocol_handlers','4239BPZbkH','default_size','reverse','contentSize','openpgp4fpr','irc','sort','display','normalize','hash','minimal-ui','id:','mms','dynamic','origin','bitcoin','href','resizability','5702TOFRsQ','split','defineProperty','parseRouter','startsWith','fullscreen','standalone','validateURL','745955rLbobk','762DIVSOf','string','map','defaultSize','./validate','mode','length','automatic','news','10610Kaumfd','ircs','web+','urn','relative','xr_main_scene','../utils/utils','includes','pathname','protocol'];_0x4d2a=function(){return _0x451d2d;};return _0x4d2a();}function configDisplay(_0x19d553){const _0x25c0ba=_0x1f0a40;let _0x3ece8d=_0x19d553[_0x25c0ba(0x1e2)];const _0x206697=[_0x25c0ba(0x1e5),_0x25c0ba(0x1f3),_0x25c0ba(0x1f2)];!_0x206697[_0x25c0ba(0x1b5)](_0x3ece8d)&&(_0x3ece8d=_0x25c0ba(0x1f3));if(_0x19d553[_0x25c0ba(0x1c0)]&&_0x19d553[_0x25c0ba(0x1c0)]['length']>0x0){const _0x38543b=_0x19d553[_0x25c0ba(0x1c0)][_0x25c0ba(0x1f8)]((_0x4d9307,_0x2645c8)=>({'mode':_0x4d9307,'index':_0x2645c8}))['filter'](({mode:_0x318c3d})=>_0x206697['includes'](_0x318c3d))[_0x25c0ba(0x1e1)]((_0x45b04f,_0x2652d9)=>_0x45b04f[_0x25c0ba(0x1c4)]-_0x2652d9[_0x25c0ba(0x1c4)]);_0x38543b[_0x25c0ba(0x1fc)]>0x0&&(_0x3ece8d=_0x38543b[0x0][_0x25c0ba(0x1fb)]);}_0x19d553[_0x25c0ba(0x1e2)]=_0x3ece8d;}function configMainScene(_0x1c01ab){const _0x34fe12=_0x1f0a40;var _0x4ad8b8,_0x4a3b02;const _0x534b98=['automatic','contentMinSize',_0x34fe12(0x1de)];let _0x342b43={'defaultSize':{'width':0x500,'height':0x500},'resizability':'automatic'};if(_0x1c01ab['xr_main_scene']){if(typeof _0x1c01ab[_0x34fe12(0x204)]==='object')_0x342b43[_0x34fe12(0x1f9)][_0x34fe12(0x1d2)]=Number((_0x4ad8b8=_0x1c01ab[_0x34fe12(0x204)][_0x34fe12(0x1dc)])===null||_0x4ad8b8===void 0x0?void 0x0:_0x4ad8b8[_0x34fe12(0x1d2)])>0x0?_0x1c01ab['xr_main_scene'][_0x34fe12(0x1dc)]['width']:0x500,_0x342b43['defaultSize'][_0x34fe12(0x1cb)]=Number((_0x4a3b02=_0x1c01ab[_0x34fe12(0x204)][_0x34fe12(0x1dc)])===null||_0x4a3b02===void 0x0?void 0x0:_0x4a3b02['height'])>0x0?_0x1c01ab[_0x34fe12(0x204)][_0x34fe12(0x1dc)][_0x34fe12(0x1cb)]:0x500,_0x342b43['resizability']=_0x534b98[_0x34fe12(0x1b5)](_0x1c01ab[_0x34fe12(0x204)][_0x34fe12(0x1ec)])?_0x1c01ab['xr_main_scene'][_0x34fe12(0x1ec)]:_0x34fe12(0x1fd),_0x1c01ab[_0x34fe12(0x1ca)]=_0x342b43;else typeof _0x1c01ab[_0x34fe12(0x204)]===_0x34fe12(0x1f7)&&(_0x1c01ab[_0x34fe12(0x1ca)]=_0x34fe12(0x1e8));}}function _0x802b(_0x4b3cd7,_0x35ed6d){const _0x4d2a8f=_0x4d2a();return _0x802b=function(_0x802b82,_0x4aa1c5){_0x802b82=_0x802b82-0x1b5;let _0x4ffb1d=_0x4d2a8f[_0x802b82];return _0x4ffb1d;},_0x802b(_0x4b3cd7,_0x35ed6d);}function configDeeplink(_0x479523){const _0x5026b5=_0x1f0a40;if(_0x479523[_0x5026b5(0x1da)]&&_0x479523[_0x5026b5(0x1da)][_0x5026b5(0x1fc)]>0x0)for(var _0x4f3a19=0x0;_0x4f3a19<_0x479523[_0x5026b5(0x1da)][_0x5026b5(0x1fc)];_0x4f3a19++){const _0x315401=_0x479523[_0x5026b5(0x1da)][_0x4f3a19];if(_0x315401[_0x5026b5(0x1b7)]&&(exports[_0x5026b5(0x1c9)]['includes'](_0x315401[_0x5026b5(0x1b7)])||_0x315401[_0x5026b5(0x1b7)]['indexOf'](_0x5026b5(0x201))===0x0)){if(!((0x0,validate_1[_0x5026b5(0x1f4)])(_0x315401['url'])&&_0x315401['url'][_0x5026b5(0x1bc)](_0x479523[_0x5026b5(0x1cd)])<0x0))continue;}_0x479523['protocol_handlers']['splice'](_0x4f3a19,0x1),_0x4f3a19--;}}exports['safelist']=[_0x1f0a40(0x1ea),_0x1f0a40(0x1cc),_0x1f0a40(0x1d5),'geo','im',_0x1f0a40(0x1e0),_0x1f0a40(0x200),_0x1f0a40(0x1bf),_0x1f0a40(0x1d1),_0x1f0a40(0x1d0),_0x1f0a40(0x1e7),_0x1f0a40(0x1fe),_0x1f0a40(0x1d3),_0x1f0a40(0x1df),_0x1f0a40(0x1c8),'sip','sms','smsto',_0x1f0a40(0x1d9),'tel',_0x1f0a40(0x202),'webcal',_0x1f0a40(0x1c5),'xmpp'];
@@ -1,20 +1,10 @@
1
- export interface InitArgs {
2
- 'manifest-url'?: string;
3
- manifest?: string;
4
- project?: string;
5
- base: string;
6
- 'bundle-id'?: string;
7
- }
8
- export interface ManifestInfo {
9
- json: Record<string, any>;
10
- url: string;
11
- fromNet: boolean;
12
- }
1
+ import { ManifestInfo, PWAInitArgs } from '../types';
13
2
  export declare class PWAGenerator {
14
3
  static DisplayModes: string[];
4
+ private static defaultBundleId;
15
5
  private static defaultManifestJson;
16
6
  private static useDefaultManifestJson;
17
- static generator(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
18
- static validate(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
19
- static config(manifestInfo: ManifestInfo, args: InitArgs, isDev: boolean): void;
7
+ static generator(args: PWAInitArgs, isDev?: boolean): Promise<ManifestInfo>;
8
+ static validate(args: PWAInitArgs, isDev?: boolean): Promise<ManifestInfo>;
9
+ static config(manifestInfo: ManifestInfo, args: PWAInitArgs, isDev: boolean): void;
20
10
  }
@@ -1 +1 @@
1
- 'use strict';const _0x4aaf92=_0x37fc;(function(_0x47a100,_0x20425a){const _0x5c452f=_0x37fc,_0x410d1b=_0x47a100();while(!![]){try{const _0x457854=parseInt(_0x5c452f(0x1cd))/0x1+parseInt(_0x5c452f(0x1be))/0x2+parseInt(_0x5c452f(0x1b4))/0x3*(parseInt(_0x5c452f(0x1bd))/0x4)+-parseInt(_0x5c452f(0x1b0))/0x5+-parseInt(_0x5c452f(0x1b7))/0x6*(-parseInt(_0x5c452f(0x1c5))/0x7)+parseInt(_0x5c452f(0x1cb))/0x8+-parseInt(_0x5c452f(0x1d5))/0x9*(parseInt(_0x5c452f(0x1bf))/0xa);if(_0x457854===_0x20425a)break;else _0x410d1b['push'](_0x410d1b['shift']());}catch(_0x111375){_0x410d1b['push'](_0x410d1b['shift']());}}}(_0x587e,0x819d6));Object[_0x4aaf92(0x1d0)](exports,'__esModule',{'value':!![]}),exports[_0x4aaf92(0x1b2)]=void 0x0;function _0x587e(){const _0x38f03a=['useDefaultManifestJson','defineProperty','start_url','configMainScene','configScope','validate','117uQxYqU','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','existsSync','defaultManifestJson','./config','join','DisplayModes','manifest-url','bundle-id','public/manifest.webmanifest','standalone','4694140vkWiJT','loadJsonFromDisk','PWAGenerator','public/manifest.json','132JeLUmG','log','../resource/load','6PZiKjh','base','checkStartUrl','check\x20manifest.json:\x20ok','configStartUrl','Cli','19012qsbUtP','1186326xxShiP','188240nQpoVf','configId','com.webspatial.test','json','config','loadJsonFromNet','975058haLztT','configDisplay','../Cli','manifest','generator','cwd','6147776TGzUSO','reset\x20manifest.json:\x20ok','4381PlrodO','warn'];_0x587e=function(){return _0x38f03a;};return _0x587e();}const path_1=require('path'),config_1=require(_0x4aaf92(0x1d9)),load_1=require(_0x4aaf92(0x1b6)),validate_1=require('./validate'),fs=require('fs'),Cli_1=require(_0x4aaf92(0x1c7));class PWAGenerator{static async[_0x4aaf92(0x1c9)](_0x294ef1,_0x4c618b=![]){const _0x9d9f7=_0x4aaf92;let _0x3a2960=await this[_0x9d9f7(0x1d4)](_0x294ef1,_0x4c618b);return console['log'](_0x9d9f7(0x1ba)),await this[_0x9d9f7(0x1c3)](_0x3a2960,_0x294ef1,_0x4c618b),console[_0x9d9f7(0x1b5)](_0x9d9f7(0x1cc)),_0x3a2960;}static async[_0x4aaf92(0x1d4)](_0x191ea4,_0x3b3ee0=![]){const _0xf6b0e1=_0x4aaf92;var _0x58cc98,_0x3cc1ea;let _0x3176d5={},_0x1a400b='',_0x265cea=![],_0x23f25d=![];if(_0x191ea4[_0xf6b0e1(0x1dc)])_0x1a400b=_0x191ea4[_0xf6b0e1(0x1dc)],_0x265cea=!![],_0x3176d5=await(0x0,load_1[_0xf6b0e1(0x1c4)])(_0x191ea4[_0xf6b0e1(0x1dc)]);else{_0x191ea4[_0xf6b0e1(0x1c8)]?_0x1a400b=(0x0,path_1['join'])(process['cwd'](),_0x191ea4[_0xf6b0e1(0x1c8)]):(_0x1a400b=(0x0,path_1[_0xf6b0e1(0x1da)])(process[_0xf6b0e1(0x1ca)](),_0xf6b0e1(0x1b3)),!fs[_0xf6b0e1(0x1d7)](_0x1a400b)&&(_0x1a400b=(0x0,path_1['join'])(process[_0xf6b0e1(0x1ca)](),_0xf6b0e1(0x1de))));if(!fs[_0xf6b0e1(0x1d7)](_0x1a400b)){if(_0x3b3ee0)_0x23f25d=!![],Cli_1[_0xf6b0e1(0x1bc)][_0xf6b0e1(0x1b5)][_0xf6b0e1(0x1ce)](_0xf6b0e1(0x1d6));else throw new Error('manifest.json\x20or\x20manifest.webmanifest\x20not\x20found');}_0x3176d5=_0x23f25d?this[_0xf6b0e1(0x1d8)]:await(0x0,load_1[_0xf6b0e1(0x1b1)])(_0x1a400b),this[_0xf6b0e1(0x1cf)]=_0x23f25d;}(0x0,validate_1['checkManifestJson'])(_0x3176d5,_0x3b3ee0);let _0x257001=(0x0,config_1[_0xf6b0e1(0x1bb)])(_0x3176d5,(_0x58cc98=_0x191ea4[_0xf6b0e1(0x1b8)])!==null&&_0x58cc98!==void 0x0?_0x58cc98:'',_0x1a400b,_0x265cea);var _0x28f7af=(0x0,validate_1[_0xf6b0e1(0x1b9)])(_0x257001,_0x1a400b,_0x265cea,_0x3b3ee0);_0x3176d5[_0xf6b0e1(0x1d1)]=_0x257001;if(!_0x3b3ee0)(0x0,validate_1['checkId'])(_0x3176d5,(_0x3cc1ea=_0x191ea4['bundle-id'])!==null&&_0x3cc1ea!==void 0x0?_0x3cc1ea:'');return await(0x0,validate_1['checkIcons'])(_0x3176d5,_0x1a400b,_0x3b3ee0),{'json':_0x3176d5,'url':_0x1a400b,'fromNet':_0x28f7af};}static[_0x4aaf92(0x1c3)](_0x14cb3b,_0x3ec9df,_0x38f24e){const _0x4d7773=_0x4aaf92;var _0x282e6c;let _0x46c8f8=(_0x282e6c=_0x3ec9df[_0x4d7773(0x1dd)])!==null&&_0x282e6c!==void 0x0?_0x282e6c:'';_0x38f24e&&!_0x14cb3b[_0x4d7773(0x1c2)]['id']&&(_0x46c8f8=this[_0x4d7773(0x1d8)]['id']),(0x0,config_1[_0x4d7773(0x1c0)])(_0x14cb3b[_0x4d7773(0x1c2)],_0x46c8f8),(0x0,config_1[_0x4d7773(0x1d3)])(_0x14cb3b[_0x4d7773(0x1c2)]),(0x0,config_1[_0x4d7773(0x1c6)])(_0x14cb3b[_0x4d7773(0x1c2)]),(0x0,config_1['configDeeplink'])(_0x14cb3b[_0x4d7773(0x1c2)]),(0x0,config_1[_0x4d7773(0x1d2)])(_0x14cb3b[_0x4d7773(0x1c2)]);}}function _0x37fc(_0x3826f3,_0x1c5e18){const _0x587e04=_0x587e();return _0x37fc=function(_0x37fc70,_0xe1a94e){_0x37fc70=_0x37fc70-0x1af;let _0x3e32c4=_0x587e04[_0x37fc70];return _0x3e32c4;},_0x37fc(_0x3826f3,_0x1c5e18);}exports[_0x4aaf92(0x1b2)]=PWAGenerator,PWAGenerator[_0x4aaf92(0x1db)]=[_0x4aaf92(0x1af),'minimal-ui'],PWAGenerator[_0x4aaf92(0x1d8)]={'id':_0x4aaf92(0x1c1),'name':'WebSpatialTest','display':'minimal-ui','start_url':'/','scope':'/'},PWAGenerator['useDefaultManifestJson']=![];
1
+ 'use strict';const _0x30a875=_0x1de9;(function(_0x277235,_0x13914a){const _0x3d0fe7=_0x1de9,_0x43dadd=_0x277235();while(!![]){try{const _0x2e0c00=-parseInt(_0x3d0fe7(0x17b))/0x1+-parseInt(_0x3d0fe7(0x163))/0x2*(-parseInt(_0x3d0fe7(0x156))/0x3)+-parseInt(_0x3d0fe7(0x175))/0x4*(parseInt(_0x3d0fe7(0x161))/0x5)+parseInt(_0x3d0fe7(0x15b))/0x6*(parseInt(_0x3d0fe7(0x177))/0x7)+-parseInt(_0x3d0fe7(0x16b))/0x8*(-parseInt(_0x3d0fe7(0x16e))/0x9)+parseInt(_0x3d0fe7(0x16a))/0xa+parseInt(_0x3d0fe7(0x152))/0xb*(-parseInt(_0x3d0fe7(0x170))/0xc);if(_0x2e0c00===_0x13914a)break;else _0x43dadd['push'](_0x43dadd['shift']());}catch(_0x1eb2cc){_0x43dadd['push'](_0x43dadd['shift']());}}}(_0x45c1,0xa4b9a));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x30a875(0x16f)]=void 0x0;const path_1=require(_0x30a875(0x172)),config_1=require('./config'),load_1=require(_0x30a875(0x179)),validate_1=require(_0x30a875(0x154)),fs=require('fs'),utils_1=require(_0x30a875(0x174));class PWAGenerator{static async['generator'](_0x492da7,_0x386951=![]){const _0x30e5ca=_0x30a875;let _0x4fbab9=await this[_0x30e5ca(0x166)](_0x492da7,_0x386951);return console[_0x30e5ca(0x157)](_0x30e5ca(0x153)),await this['config'](_0x4fbab9,_0x492da7,_0x386951),console[_0x30e5ca(0x157)]('reset\x20manifest.json:\x20ok'),_0x4fbab9;}static async['validate'](_0x4fc52f,_0x116f89=![]){const _0x2763b2=_0x30a875;var _0x14451c,_0x278be2;let _0x447d2d={},_0x2b4808='',_0x3d9357=![],_0x197d60=![];if(_0x4fc52f[_0x2763b2(0x164)])_0x2b4808=_0x4fc52f[_0x2763b2(0x164)],_0x3d9357=!![],_0x447d2d=await(0x0,load_1[_0x2763b2(0x17c)])(_0x4fc52f[_0x2763b2(0x164)]);else{_0x4fc52f[_0x2763b2(0x178)]?_0x2b4808=(0x0,path_1[_0x2763b2(0x17e)])(process[_0x2763b2(0x159)](),_0x4fc52f[_0x2763b2(0x178)]):(_0x2b4808=(0x0,path_1[_0x2763b2(0x17e)])(process[_0x2763b2(0x159)](),_0x2763b2(0x15d)),!fs[_0x2763b2(0x16d)](_0x2b4808)&&(_0x2b4808=(0x0,path_1[_0x2763b2(0x17e)])(process[_0x2763b2(0x159)](),_0x2763b2(0x15c))));if(!fs[_0x2763b2(0x16d)](_0x2b4808)){if(_0x116f89)_0x197d60=!![],utils_1[_0x2763b2(0x17a)][_0x2763b2(0x176)](_0x2763b2(0x162));else throw new Error('manifest.json\x20or\x20manifest.webmanifest\x20not\x20found');}_0x447d2d=_0x197d60?this['defaultManifestJson']:await(0x0,load_1[_0x2763b2(0x165)])(_0x2b4808),this['useDefaultManifestJson']=_0x197d60;}(0x0,validate_1[_0x2763b2(0x15a)])(_0x447d2d,_0x116f89);let _0x3210ad=(0x0,config_1['configStartUrl'])(_0x447d2d,(_0x14451c=_0x4fc52f[_0x2763b2(0x173)])!==null&&_0x14451c!==void 0x0?_0x14451c:'',_0x2b4808,_0x3d9357);var _0x5effe5=(0x0,validate_1['checkStartUrl'])(_0x3210ad,_0x2b4808,_0x3d9357,_0x116f89);_0x447d2d[_0x2763b2(0x160)]=_0x3210ad;if(!_0x116f89)(0x0,validate_1[_0x2763b2(0x15f)])(_0x447d2d,(_0x278be2=_0x4fc52f[_0x2763b2(0x17d)])!==null&&_0x278be2!==void 0x0?_0x278be2:'');return await(0x0,validate_1[_0x2763b2(0x171)])(_0x447d2d,_0x2b4808,_0x116f89),{'json':_0x447d2d,'url':_0x2b4808,'fromNet':_0x5effe5};}static[_0x30a875(0x16c)](_0x31a34f,_0x50e85c,_0x13d695){const _0x46851e=_0x30a875;var _0x160ad3;let _0x55d048=(_0x160ad3=_0x50e85c['bundle-id'])!==null&&_0x160ad3!==void 0x0?_0x160ad3:'';_0x13d695&&!_0x31a34f[_0x46851e(0x168)]['id']&&(_0x55d048=this['defaultBundleId']),(0x0,config_1['configId'])(_0x31a34f['json'],_0x55d048),(0x0,config_1['configScope'])(_0x31a34f[_0x46851e(0x168)]),(0x0,config_1[_0x46851e(0x169)])(_0x31a34f['json']),(0x0,config_1['configDeeplink'])(_0x31a34f[_0x46851e(0x168)]),(0x0,config_1[_0x46851e(0x158)])(_0x31a34f[_0x46851e(0x168)]);}}function _0x1de9(_0xc96dea,_0x3f092a){const _0x45c13c=_0x45c1();return _0x1de9=function(_0x1de9dd,_0x4d81e4){_0x1de9dd=_0x1de9dd-0x152;let _0x575c48=_0x45c13c[_0x1de9dd];return _0x575c48;},_0x1de9(_0xc96dea,_0x3f092a);}function _0x45c1(){const _0xc91ec6=['path','base','../utils/utils','4508596traUFQ','warn','21muDaXC','manifest','../resource/load','CliLog','136770mSkyqu','loadJsonFromNet','bundle-id','join','1551BPVFUh','check\x20manifest.json:\x20ok','./validate','minimal-ui','3WQjPQg','log','configMainScene','cwd','checkManifestJson','2659938uqUkVT','public/manifest.webmanifest','public/manifest.json','useDefaultManifestJson','checkId','start_url','5EfguVN','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','2277778NaFaYt','manifest-url','loadJsonFromDisk','validate','defaultBundleId','json','configDisplay','4299860fkMBIl','69064ekWgLw','config','existsSync','198bWjwEt','PWAGenerator','97884zWdvcw','checkIcons'];_0x45c1=function(){return _0xc91ec6;};return _0x45c1();}exports[_0x30a875(0x16f)]=PWAGenerator,PWAGenerator['DisplayModes']=['standalone',_0x30a875(0x155)],PWAGenerator[_0x30a875(0x167)]='com.webspatial.test',PWAGenerator['defaultManifestJson']={'name':'WebSpatialTest','display':_0x30a875(0x155),'start_url':'/','scope':'/'},PWAGenerator[_0x30a875(0x15e)]=![];
@@ -1 +1 @@
1
- 'use strict';const _0x10346b=_0x5f46;(function(_0x50f713,_0x25a0ae){const _0x513690=_0x5f46,_0x5bfce4=_0x50f713();while(!![]){try{const _0x3c57dc=-parseInt(_0x513690(0x144))/0x1+-parseInt(_0x513690(0x132))/0x2+-parseInt(_0x513690(0x128))/0x3+parseInt(_0x513690(0x15f))/0x4+-parseInt(_0x513690(0x13f))/0x5*(-parseInt(_0x513690(0x141))/0x6)+-parseInt(_0x513690(0x13c))/0x7*(parseInt(_0x513690(0x15b))/0x8)+parseInt(_0x513690(0x12e))/0x9*(parseInt(_0x513690(0x13d))/0xa);if(_0x3c57dc===_0x25a0ae)break;else _0x5bfce4['push'](_0x5bfce4['shift']());}catch(_0x15a2d6){_0x5bfce4['push'](_0x5bfce4['shift']());}}}(_0x2fcd,0xe346b));Object[_0x10346b(0x160)](exports,'__esModule',{'value':!![]}),exports['checkManifestJson']=checkManifestJson,exports[_0x10346b(0x149)]=checkStartUrl,exports['checkIcons']=checkIcons,exports[_0x10346b(0x150)]=checkId,exports[_0x10346b(0x155)]=validateBundleId,exports['validateURL']=validateURL;const path_1=require(_0x10346b(0x12d)),CustomError_1=require(_0x10346b(0x14d)),utils_1=require(_0x10346b(0x14f)),imageHelper_1=require(_0x10346b(0x159)),load_1=require(_0x10346b(0x14c)),Cli_1=require(_0x10346b(0x12f));function checkManifestJson(_0x1f4678,_0x11359f=![]){const _0x5cfce3=_0x10346b;var _0x5afc87;const _0xe2bb99=[];!_0x1f4678[_0x5cfce3(0x131)]&&!_0x1f4678[_0x5cfce3(0x134)]&&!_0x11359f&&_0xe2bb99['push']({'code':0xbbe,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','message_staring_params':{}});!((_0x5afc87=_0x1f4678[_0x5cfce3(0x146)])===null||_0x5afc87===void 0x0?void 0x0:_0x5afc87['length'])&&!_0x11359f&&_0xe2bb99[_0x5cfce3(0x127)]({'code':0xbbf,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','message_staring_params':{}});!_0x1f4678[_0x5cfce3(0x154)]&&!_0x11359f&&_0xe2bb99[_0x5cfce3(0x127)]({'code':0xbc0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','message_staring_params':{}});if(_0xe2bb99[_0x5cfce3(0x147)])throw new CustomError_1['CustomError'](_0xe2bb99);}function _0x5f46(_0x3b5c46,_0x223c42){const _0x2fcdee=_0x2fcd();return _0x5f46=function(_0x5f462b,_0x484d38){_0x5f462b=_0x5f462b-0x127;let _0x547812=_0x2fcdee[_0x5f462b];return _0x547812;},_0x5f46(_0x3b5c46,_0x223c42);}function checkStartUrl(_0xdc5a73,_0x210b8e,_0x484dec,_0x3e3f12=![]){const _0x460cba=_0x10346b;var _0x460999=![];if(_0x3e3f12)return _0xdc5a73['startsWith'](_0x460cba(0x13e))||_0xdc5a73[_0x460cba(0x13b)]('http://');if(_0x484dec){if(_0xdc5a73[_0x460cba(0x13b)](_0x460cba(0x13e))){const _0x1f71bc=new URL(_0xdc5a73),_0x82b58a=new URL(_0x210b8e);if(_0x1f71bc[_0x460cba(0x136)]!==_0x82b58a['host'])throw new CustomError_1[(_0x460cba(0x138))]({'code':0xfa0,'message':_0x460cba(0x130),'message_staring_params':{}});}else{if(_0xdc5a73[_0x460cba(0x13b)]('http://'))throw new CustomError_1[(_0x460cba(0x138))]({'code':0xfa0,'message':_0x460cba(0x133),'message_staring_params':{}});}}else{if(_0xdc5a73[_0x460cba(0x13b)](_0x460cba(0x13e))||_0xdc5a73[_0x460cba(0x13b)](_0x460cba(0x12c)))throw new CustomError_1[(_0x460cba(0x138))]({'code':0xfa0,'message':_0x460cba(0x14a),'message_staring_params':{}});}return _0x460999;}async function checkIcons(_0x543ae5,_0x1fa4e9,_0x39c35d=![]){const _0x2bd417=_0x10346b;var _0x49611a,_0x1bdca8;if(!((_0x49611a=_0x543ae5[_0x2bd417(0x146)])===null||_0x49611a===void 0x0?void 0x0:_0x49611a['length'])&&_0x39c35d){_0x543ae5[_0x2bd417(0x146)]=[{'src':(0x0,path_1['join'])(__dirname,_0x2bd417(0x12b)),'sizes':_0x2bd417(0x14e),'purpose':_0x2bd417(0x156)}],Cli_1[_0x2bd417(0x157)]['log'][_0x2bd417(0x135)](_0x2bd417(0x12a));return;}const _0x18a6f8=(0x0,utils_1[_0x2bd417(0x13a)])(_0x1fa4e9);let _0x9c35ed,_0x4494a1,_0x5cbce7,_0xacadfc=0x0;for(var _0x267e13=0x0;_0x267e13<_0x543ae5['icons']['length'];_0x267e13++){const _0x316bb3=_0x543ae5[_0x2bd417(0x146)][_0x267e13];let _0x22740f=((_0x1bdca8=_0x316bb3['purpose'])===null||_0x1bdca8===void 0x0?void 0x0:_0x1bdca8[_0x2bd417(0x15e)]('maskable'))>=0x0;if(!_0x22740f)continue;let _0x5d6c2d=![],_0x156f2d=_0x316bb3[_0x2bd417(0x145)],_0x59bdec,_0x1271bc=0x0;!validateURL(_0x156f2d)&&(_0x156f2d=(0x0,path_1[_0x2bd417(0x151)])(_0x18a6f8,_0x156f2d));if(_0x316bb3[_0x2bd417(0x139)]){const _0x11ee38=_0x316bb3[_0x2bd417(0x139)]['split']('\x20');_0x11ee38['forEach'](_0x80b443=>{const _0x1d3ba2=_0x2bd417;let _0x5d926=_0x80b443[_0x1d3ba2(0x129)]('x');Number(_0x5d926[0x0])>=0x400&&Number(_0x5d926[0x1])>=0x400&&(_0x5d6c2d=!![],Number(_0x5d926[0x0])>_0x1271bc&&(_0x1271bc=Number(_0x5d926[0x0])));});}else _0x59bdec=!_0x156f2d[_0x2bd417(0x13b)]('http')?await(0x0,load_1['loadImageFromDisk'])(_0x156f2d):await(0x0,load_1['loadImageFromNet'])(_0x156f2d),_0x59bdec[_0x2bd417(0x142)]()>=0x400&&_0x59bdec[_0x2bd417(0x14b)]()>=0x400&&(_0x5d6c2d=!![],_0x59bdec['getWidth']()>_0x1271bc&&(_0x1271bc=_0x59bdec[_0x2bd417(0x142)]()));_0x5d6c2d&&_0x22740f&&(_0x1271bc>_0xacadfc&&(_0xacadfc=_0x1271bc,_0x9c35ed=_0x59bdec,_0x4494a1=_0x156f2d,_0x5cbce7=_0x316bb3[_0x2bd417(0x153)]));}if(_0xacadfc===0x0){if(_0x39c35d){_0x543ae5['icons']=[{'src':(0x0,path_1[_0x2bd417(0x151)])(__dirname,'../../assets/icon-default.png'),'sizes':_0x2bd417(0x14e),'purpose':_0x2bd417(0x156)}],Cli_1[_0x2bd417(0x157)][_0x2bd417(0x15d)][_0x2bd417(0x135)]('In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable'),Cli_1[_0x2bd417(0x157)]['log'][_0x2bd417(0x135)](_0x2bd417(0x15a));return;}throw new CustomError_1[(_0x2bd417(0x138))]({'code':0xfa0,'message':_0x2bd417(0x15c),'message_staring_params':{}});}else _0x4494a1&&(_0x9c35ed=!_0x4494a1[_0x2bd417(0x13b)](_0x2bd417(0x137))?await(0x0,load_1[_0x2bd417(0x143)])(_0x4494a1):await(0x0,load_1['loadImageFromNet'])(_0x4494a1));if(_0x9c35ed&&!imageHelper_1[_0x2bd417(0x158)][_0x2bd417(0x161)](_0x9c35ed)){if(_0x39c35d){Cli_1[_0x2bd417(0x157)]['log'][_0x2bd417(0x135)]('In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable');return;}throw new CustomError_1[(_0x2bd417(0x138))]({'code':0xfa0,'message':_0x2bd417(0x140),'message_staring_params':{}});}_0x543ae5[_0x2bd417(0x146)]=[{'src':_0x4494a1,'sizes':_0xacadfc+'x'+_0xacadfc,'purpose':_0x5cbce7}];}function checkId(_0xbb4513,_0x37097f){const _0x330c71=_0x10346b;if(_0x37097f){if(!validateBundleId(_0x37097f))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x330c71(0x148),'message_staring_params':{}});return;}!_0xbb4513['id']&&(_0xbb4513['id']=_0xbb4513[_0x330c71(0x154)]);if(!validateURL(_0xbb4513['id'])&&!_0x37097f)throw new CustomError_1[(_0x330c71(0x138))]({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','message_staring_params':{}});}function validateBundleId(_0x22abae){const _0x975e2f=_0x10346b,_0x58cc76=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x58cc76[_0x975e2f(0x152)](_0x22abae);}function validateURL(_0x107d7a){try{return new URL(_0x107d7a),!![];}catch(_0x1b0763){return![];}}function _0x2fcd(){const _0x1495f2=['http','CustomError','sizes','parseRouter','startsWith','2849469EKZJzj','1126720BiQduP','https://','2665185zPKJeu','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','6SZQDcJ','getWidth','loadImageFromDisk','675902QtMwyD','src','icons','length','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20bundle\x20ID\x20must\x20be\x20in\x20reverse\x20domain\x20format\x20(e.g.\x20com.example.app)\x20and\x20no\x20longer\x20than\x20128\x20characters','checkStartUrl','Local\x20manifest\x20cannot\x20package\x20network\x20project','getHeight','../resource/load','../utils/CustomError','1024x1024','../utils/utils','checkId','join','test','purpose','start_url','validateBundleId','maskable','Cli','ImageHelper','../resource/imageHelper','icon\x20does\x20not\x20meet\x20the\x20standard,\x20use\x20default\x20icon\x20in\x20run\x20mode','8WTfpAC','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','log','indexOf','6477452PhFLpv','defineProperty','isFullyOpaque','push','2132100UsFiVs','split','icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','../../assets/icon-default.png','http://','path','99TLEBma','../Cli','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','name','1334400WmsDOy','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','short_name','warn','host'];_0x2fcd=function(){return _0x1495f2;};return _0x2fcd();}
1
+ 'use strict';const _0x2b6909=_0x3cbb;(function(_0x38f8f3,_0x2c12c4){const _0x200f88=_0x3cbb,_0x407baf=_0x38f8f3();while(!![]){try{const _0x3fce49=parseInt(_0x200f88(0x95))/0x1*(-parseInt(_0x200f88(0xa5))/0x2)+-parseInt(_0x200f88(0x9a))/0x3+parseInt(_0x200f88(0x82))/0x4+-parseInt(_0x200f88(0xaa))/0x5+parseInt(_0x200f88(0x80))/0x6+-parseInt(_0x200f88(0xac))/0x7+parseInt(_0x200f88(0x92))/0x8*(parseInt(_0x200f88(0xad))/0x9);if(_0x3fce49===_0x2c12c4)break;else _0x407baf['push'](_0x407baf['shift']());}catch(_0x3c0c51){_0x407baf['push'](_0x407baf['shift']());}}}(_0x4368,0x6561e));Object[_0x2b6909(0x97)](exports,_0x2b6909(0xa4),{'value':!![]}),exports['checkManifestJson']=checkManifestJson,exports[_0x2b6909(0x96)]=checkStartUrl,exports[_0x2b6909(0x88)]=checkIcons,exports['checkId']=checkId,exports[_0x2b6909(0x98)]=validateBundleId,exports['validateURL']=validateURL;function _0x3cbb(_0x192c3d,_0x47d56f){const _0x4368c4=_0x4368();return _0x3cbb=function(_0x3cbb3d,_0x3c4977){_0x3cbb3d=_0x3cbb3d-0x76;let _0x2d2e20=_0x4368c4[_0x3cbb3d];return _0x2d2e20;},_0x3cbb(_0x192c3d,_0x47d56f);}const path_1=require(_0x2b6909(0x84)),CustomError_1=require(_0x2b6909(0x85)),utils_1=require(_0x2b6909(0x9b)),imageHelper_1=require(_0x2b6909(0x7d)),load_1=require(_0x2b6909(0xab)),utils_2=require(_0x2b6909(0x9b));function checkManifestJson(_0x29f921,_0x5694bd=![]){const _0x498cfb=_0x2b6909;var _0x610698;const _0x51679c=[];!_0x29f921[_0x498cfb(0x90)]&&!_0x29f921[_0x498cfb(0xa9)]&&!_0x5694bd&&_0x51679c[_0x498cfb(0x9c)]({'code':0xbbe,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','message_staring_params':{}});!((_0x610698=_0x29f921[_0x498cfb(0xa8)])===null||_0x610698===void 0x0?void 0x0:_0x610698['length'])&&!_0x5694bd&&_0x51679c[_0x498cfb(0x9c)]({'code':0xbbf,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','message_staring_params':{}});!_0x29f921[_0x498cfb(0x8b)]&&!_0x5694bd&&_0x51679c[_0x498cfb(0x9c)]({'code':0xbc0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','message_staring_params':{}});if(_0x51679c[_0x498cfb(0xa7)])throw new CustomError_1[(_0x498cfb(0x93))](_0x51679c);}function checkStartUrl(_0x277d11,_0x3aeb84,_0x28fa50,_0x2ac179=![]){const _0x5a8f9a=_0x2b6909;var _0x450f6f=![];if(_0x2ac179)return _0x277d11[_0x5a8f9a(0xa3)]('https://')||_0x277d11[_0x5a8f9a(0xa3)](_0x5a8f9a(0x76));if(_0x28fa50){if(_0x277d11['startsWith']('https://')){const _0xc9d909=new URL(_0x277d11),_0xd19eab=new URL(_0x3aeb84);if(_0xc9d909['host']!==_0xd19eab[_0x5a8f9a(0x8e)])throw new CustomError_1[(_0x5a8f9a(0x93))]({'code':0xfa0,'message':_0x5a8f9a(0x91),'message_staring_params':{}});}else{if(_0x277d11['startsWith']('http://'))throw new CustomError_1[(_0x5a8f9a(0x93))]({'code':0xfa0,'message':_0x5a8f9a(0x99),'message_staring_params':{}});}}else{if(_0x277d11[_0x5a8f9a(0xa3)](_0x5a8f9a(0xa6))||_0x277d11[_0x5a8f9a(0xa3)](_0x5a8f9a(0x76)))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x5a8f9a(0xa1),'message_staring_params':{}});}return _0x450f6f;}async function checkIcons(_0x51002d,_0x175b66,_0x5d80ab=![]){const _0x3398ac=_0x2b6909;var _0x1d8ab6,_0x3a0d9c;if(!((_0x1d8ab6=_0x51002d[_0x3398ac(0xa8)])===null||_0x1d8ab6===void 0x0?void 0x0:_0x1d8ab6['length'])&&_0x5d80ab){_0x51002d[_0x3398ac(0xa8)]=[{'src':(0x0,path_1[_0x3398ac(0x9d)])(__dirname,_0x3398ac(0xa2)),'sizes':_0x3398ac(0x86),'purpose':_0x3398ac(0x8f)}],utils_2[_0x3398ac(0x7e)]['warn'](_0x3398ac(0x77));return;}const _0x21983e=(0x0,utils_1[_0x3398ac(0x8c)])(_0x175b66);let _0x5509d,_0x3b083b,_0x4a8121,_0x42e1ec=0x0;for(var _0x2aba27=0x0;_0x2aba27<_0x51002d[_0x3398ac(0xa8)][_0x3398ac(0xa7)];_0x2aba27++){const _0x319182=_0x51002d[_0x3398ac(0xa8)][_0x2aba27];let _0x2f19de=((_0x3a0d9c=_0x319182[_0x3398ac(0x83)])===null||_0x3a0d9c===void 0x0?void 0x0:_0x3a0d9c['indexOf']('maskable'))>=0x0;if(!_0x2f19de)continue;let _0xb0f2f9=![],_0x3341aa=_0x319182['src'],_0x5ef6d7,_0x434a1b=0x0;!validateURL(_0x3341aa)&&(_0x3341aa=(0x0,path_1[_0x3398ac(0x9d)])(_0x21983e,_0x3341aa));if(_0x319182[_0x3398ac(0x7b)]){const _0xde76c5=_0x319182[_0x3398ac(0x7b)][_0x3398ac(0x9e)]('\x20');_0xde76c5[_0x3398ac(0x7c)](_0x5b1625=>{const _0x42a4ae=_0x3398ac;let _0xb973b2=_0x5b1625[_0x42a4ae(0x9e)]('x');Number(_0xb973b2[0x0])>=0x400&&Number(_0xb973b2[0x1])>=0x400&&(_0xb0f2f9=!![],Number(_0xb973b2[0x0])>_0x434a1b&&(_0x434a1b=Number(_0xb973b2[0x0])));});}else _0x5ef6d7=!_0x3341aa[_0x3398ac(0xa3)](_0x3398ac(0x78))?await(0x0,load_1['loadImageFromDisk'])(_0x3341aa):await(0x0,load_1[_0x3398ac(0x9f)])(_0x3341aa),_0x5ef6d7[_0x3398ac(0x94)]()>=0x400&&_0x5ef6d7['getHeight']()>=0x400&&(_0xb0f2f9=!![],_0x5ef6d7['getWidth']()>_0x434a1b&&(_0x434a1b=_0x5ef6d7[_0x3398ac(0x94)]()));_0xb0f2f9&&_0x2f19de&&(_0x434a1b>_0x42e1ec&&(_0x42e1ec=_0x434a1b,_0x5509d=_0x5ef6d7,_0x3b083b=_0x3341aa,_0x4a8121=_0x319182[_0x3398ac(0x83)]));}if(_0x42e1ec===0x0){if(_0x5d80ab){_0x51002d['icons']=[{'src':(0x0,path_1[_0x3398ac(0x9d)])(__dirname,'../../assets/icon-default.png'),'sizes':_0x3398ac(0x86),'purpose':_0x3398ac(0x8f)}],utils_2[_0x3398ac(0x7e)][_0x3398ac(0x89)](_0x3398ac(0x8d)),utils_2[_0x3398ac(0x7e)][_0x3398ac(0x89)](_0x3398ac(0x8a));return;}throw new CustomError_1[(_0x3398ac(0x93))]({'code':0xfa0,'message':_0x3398ac(0x8d),'message_staring_params':{}});}else _0x3b083b&&(_0x5509d=!_0x3b083b[_0x3398ac(0xa3)]('http')?await(0x0,load_1[_0x3398ac(0x81)])(_0x3b083b):await(0x0,load_1[_0x3398ac(0x9f)])(_0x3b083b));if(_0x5509d&&!imageHelper_1[_0x3398ac(0x79)][_0x3398ac(0xa0)](_0x5509d)){if(_0x5d80ab){utils_2[_0x3398ac(0x7e)][_0x3398ac(0x89)](_0x3398ac(0x8d));return;}throw new CustomError_1[(_0x3398ac(0x93))]({'code':0xfa0,'message':_0x3398ac(0x87),'message_staring_params':{}});}_0x51002d[_0x3398ac(0xa8)]=[{'src':_0x3b083b,'sizes':_0x42e1ec+'x'+_0x42e1ec,'purpose':_0x4a8121}];}function checkId(_0x31bd2c,_0x206b02){const _0x385430=_0x2b6909;if(_0x206b02){if(!validateBundleId(_0x206b02))throw new CustomError_1[(_0x385430(0x93))]({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20bundle\x20ID\x20must\x20be\x20in\x20reverse\x20domain\x20format\x20(e.g.\x20com.example.app)\x20and\x20no\x20longer\x20than\x20128\x20characters','message_staring_params':{}});return;}!_0x31bd2c['id']&&(_0x31bd2c['id']=_0x31bd2c['start_url']);if(!validateURL(_0x31bd2c['id'])&&!_0x206b02)throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x385430(0x7f),'message_staring_params':{}});}function validateBundleId(_0x2405d2){const _0x3ca8e1=_0x2b6909,_0x300ee9=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x300ee9[_0x3ca8e1(0x7a)](_0x2405d2);}function _0x4368(){const _0x22145a=['http','ImageHelper','test','sizes','forEach','../resource/imageHelper','CliLog','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','2687760YGUQfs','loadImageFromDisk','2478776IjHexp','purpose','path','../utils/CustomError','1024x1024','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','checkIcons','warn','icon\x20does\x20not\x20meet\x20the\x20standard,\x20use\x20default\x20icon\x20in\x20run\x20mode','start_url','parseRouter','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','host','maskable','name','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','16KXpYrP','CustomError','getWidth','1isqzfv','checkStartUrl','defineProperty','validateBundleId','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','2012637kLIsCQ','../utils/utils','push','join','split','loadImageFromNet','isFullyOpaque','Local\x20manifest\x20cannot\x20package\x20network\x20project','../../assets/icon-default.png','startsWith','__esModule','346218QwLZWv','https://','length','icons','short_name','2232895fJUUxG','../resource/load','1263689ycJFCl','3684159oVslFu','http://','icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode'];_0x4368=function(){return _0x22145a;};return _0x4368();}function validateURL(_0x3cae20){try{return new URL(_0x3cae20),!![];}catch(_0x4b606f){return![];}}
@@ -1 +1 @@
1
- 'use strict';const _0x356e63=_0x37d2;(function(_0x1e3fd2,_0x52e361){const _0x207636=_0x37d2,_0x487ed6=_0x1e3fd2();while(!![]){try{const _0x4da4d0=-parseInt(_0x207636(0xe6))/0x1+parseInt(_0x207636(0xdf))/0x2+parseInt(_0x207636(0xe2))/0x3*(parseInt(_0x207636(0xe3))/0x4)+-parseInt(_0x207636(0xf2))/0x5+parseInt(_0x207636(0xf0))/0x6*(-parseInt(_0x207636(0xf3))/0x7)+-parseInt(_0x207636(0xe5))/0x8*(-parseInt(_0x207636(0xeb))/0x9)+parseInt(_0x207636(0xef))/0xa*(parseInt(_0x207636(0xe4))/0xb);if(_0x4da4d0===_0x52e361)break;else _0x487ed6['push'](_0x487ed6['shift']());}catch(_0x31e23c){_0x487ed6['push'](_0x487ed6['shift']());}}}(_0x240c,0xe3910));Object[_0x356e63(0xed)](exports,_0x356e63(0xe9),{'value':!![]}),exports[_0x356e63(0xee)]=copyDir,exports[_0x356e63(0xe7)]=clearDir;const fs=require('fs');function copyDir(_0x256493,_0x57ff8d){const _0x2aea30=_0x356e63,_0x22dcdd=fs[_0x2aea30(0xec)](_0x256493);_0x22dcdd['forEach'](_0x3936da=>{const _0x3eaf02=_0x2aea30,_0x45f332=_0x256493+'/'+_0x3936da,_0x22a11a=_0x57ff8d+'/'+_0x3936da,_0x3a0a6a=fs[_0x3eaf02(0xea)](_0x45f332);if(_0x3a0a6a[_0x3eaf02(0xe0)]())try{fs['writeFileSync'](_0x22a11a,fs[_0x3eaf02(0xf5)](_0x45f332));}catch(_0x5baabf){console['log'](_0x5baabf);}else _0x3a0a6a[_0x3eaf02(0xf1)]()&&(!fs[_0x3eaf02(0xf7)](_0x22a11a)&&fs[_0x3eaf02(0xe8)](_0x22a11a,{'recursive':!![]}),copyDir(_0x45f332,_0x22a11a));});}function _0x37d2(_0x242cf8,_0x54c64b){const _0x240cf6=_0x240c();return _0x37d2=function(_0x37d254,_0x4a0af4){_0x37d254=_0x37d254-0xdf;let _0x5068e4=_0x240cf6[_0x37d254];return _0x5068e4;},_0x37d2(_0x242cf8,_0x54c64b);}function _0x240c(){const _0x4942d5=['5071wBcTZn','4511112EFjplX','311613XUlBHo','clearDir','mkdirSync','__esModule','statSync','9zMRqoh','readdirSync','defineProperty','copyDir','8640yTiTAY','114EWBezA','isDirectory','2074330LYaWIY','601461yQBvJd','unlinkSync','readFileSync','log','existsSync','1065430uZYbLy','isFile','forEach','316980IAjBIA','68qTvcGl'];_0x240c=function(){return _0x4942d5;};return _0x240c();}function clearDir(_0x11a9da){const _0x2d6cce=_0x356e63,_0x54acc4=fs[_0x2d6cce(0xec)](_0x11a9da);_0x54acc4[_0x2d6cce(0xe1)](_0x4e43f5=>{const _0x21a0c7=_0x2d6cce,_0x2e038d=_0x11a9da+'/'+_0x4e43f5,_0x1ef8a4=fs['statSync'](_0x2e038d);if(_0x1ef8a4[_0x21a0c7(0xe0)]())try{fs[_0x21a0c7(0xf4)](_0x2e038d);}catch(_0xd9c357){console[_0x21a0c7(0xf6)](_0xd9c357);}else _0x1ef8a4[_0x21a0c7(0xf1)]()&&clearDir(_0x2e038d);});}
1
+ 'use strict';(function(_0x4f9971,_0x423292){const _0x5c86f1=_0x7ec7,_0x2c39db=_0x4f9971();while(!![]){try{const _0x2f6755=parseInt(_0x5c86f1(0x113))/0x1*(-parseInt(_0x5c86f1(0x10e))/0x2)+parseInt(_0x5c86f1(0x116))/0x3+-parseInt(_0x5c86f1(0x11e))/0x4+-parseInt(_0x5c86f1(0x118))/0x5*(-parseInt(_0x5c86f1(0x10f))/0x6)+-parseInt(_0x5c86f1(0x114))/0x7+-parseInt(_0x5c86f1(0x110))/0x8+parseInt(_0x5c86f1(0x115))/0x9;if(_0x2f6755===_0x423292)break;else _0x2c39db['push'](_0x2c39db['shift']());}catch(_0xdcd263){_0x2c39db['push'](_0x2c39db['shift']());}}}(_0x35f8,0xa3b09));function _0x35f8(){const _0xbc8bbf=['readdirSync','isDirectory','18EGcEFs','4911844JqIxta','23062923vhQoUP','2716506TDRCxs','existsSync','184310VYDJFr','statSync','readFileSync','isFile','unlinkSync','writeFileSync','3887648rQaFGL','forEach','log','119752gSSiEK','42BsePAV','2433904PZYwOH'];_0x35f8=function(){return _0xbc8bbf;};return _0x35f8();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['copyDir']=copyDir,exports['clearDir']=clearDir;const fs=require('fs');function copyDir(_0x2a35af,_0x37fa0b){const _0x5bc53d=_0x7ec7,_0x5c4986=fs[_0x5bc53d(0x111)](_0x2a35af);_0x5c4986[_0x5bc53d(0x11f)](_0x15a274=>{const _0x18baa0=_0x5bc53d,_0x1bc2a5=_0x2a35af+'/'+_0x15a274,_0x13825e=_0x37fa0b+'/'+_0x15a274,_0x1a7144=fs[_0x18baa0(0x119)](_0x1bc2a5);if(_0x1a7144[_0x18baa0(0x11b)]())try{fs[_0x18baa0(0x11d)](_0x13825e,fs[_0x18baa0(0x11a)](_0x1bc2a5));}catch(_0x4779ce){console[_0x18baa0(0x120)](_0x4779ce);}else _0x1a7144[_0x18baa0(0x112)]()&&(!fs[_0x18baa0(0x117)](_0x13825e)&&fs['mkdirSync'](_0x13825e,{'recursive':!![]}),copyDir(_0x1bc2a5,_0x13825e));});}function _0x7ec7(_0x2fe917,_0x3e82b4){const _0x35f8fb=_0x35f8();return _0x7ec7=function(_0x7ec7b8,_0x2cf45d){_0x7ec7b8=_0x7ec7b8-0x10e;let _0x43ebab=_0x35f8fb[_0x7ec7b8];return _0x43ebab;},_0x7ec7(_0x2fe917,_0x3e82b4);}function clearDir(_0x45cbc8){const _0x1b1ea2=fs['readdirSync'](_0x45cbc8);_0x1b1ea2['forEach'](_0x170dd0=>{const _0x40b333=_0x7ec7,_0x5c6713=_0x45cbc8+'/'+_0x170dd0,_0x1ed787=fs[_0x40b333(0x119)](_0x5c6713);if(_0x1ed787['isFile']())try{fs[_0x40b333(0x11c)](_0x5c6713);}catch(_0x21b90f){console[_0x40b333(0x120)](_0x21b90f);}else _0x1ed787[_0x40b333(0x112)]()&&clearDir(_0x5c6713);});}
@@ -1 +1 @@
1
- 'use strict';const _0x3068c3=_0x4b5c;function _0x13c3(){const _0x6677d=['png','9MzDAMT','1633060UIrOJY','toFormat','isFullyOpaque','ImageHelper','createImg','defineProperty','svg2img','__esModule','jimp','1bNFpFE','2196TkdUFp','sharp','bitmap','29244tWZwIr','toBuffer','render','getHeight','1365SFEzUt','270968DIEVhA','asPng','161nIhNsQ','5298293MWrUuX','width','data','webp2PngBuffer','972145dcPqoG','823018VoIGef'];_0x13c3=function(){return _0x6677d;};return _0x13c3();}function _0x4b5c(_0x1591cb,_0xed703e){const _0x13c320=_0x13c3();return _0x4b5c=function(_0x4b5cfe,_0x55757b){_0x4b5cfe=_0x4b5cfe-0x13f;let _0x56158a=_0x13c320[_0x4b5cfe];return _0x56158a;},_0x4b5c(_0x1591cb,_0xed703e);}(function(_0x4558db,_0x27c0b1){const _0x5b5ba8=_0x4b5c,_0x5e2182=_0x4558db();while(!![]){try{const _0x131b01=-parseInt(_0x5b5ba8(0x159))/0x1*(-parseInt(_0x5b5ba8(0x14d))/0x2)+parseInt(_0x5b5ba8(0x144))/0x3*(-parseInt(_0x5b5ba8(0x15a))/0x4)+-parseInt(_0x5b5ba8(0x14c))/0x5+-parseInt(_0x5b5ba8(0x140))/0x6*(-parseInt(_0x5b5ba8(0x147))/0x7)+-parseInt(_0x5b5ba8(0x145))/0x8*(parseInt(_0x5b5ba8(0x14f))/0x9)+-parseInt(_0x5b5ba8(0x150))/0xa+parseInt(_0x5b5ba8(0x148))/0xb;if(_0x131b01===_0x27c0b1)break;else _0x5e2182['push'](_0x5e2182['shift']());}catch(_0x2d5a3d){_0x5e2182['push'](_0x5e2182['shift']());}}}(_0x13c3,0x58d61));Object[_0x3068c3(0x155)](exports,_0x3068c3(0x157),{'value':!![]}),exports[_0x3068c3(0x153)]=void 0x0;const Jimp=require(_0x3068c3(0x158)),sharp=require(_0x3068c3(0x15b)),resvg_js_1=require('@resvg/resvg-js');class ImageHelper{static[_0x3068c3(0x154)](_0x5c2190){return new Jimp(_0x5c2190,_0x5c2190,0x0);}static async[_0x3068c3(0x14b)](_0x3df4c2){const _0x941ad3=_0x3068c3;return await sharp(_0x3df4c2)[_0x941ad3(0x151)](_0x941ad3(0x14e))[_0x941ad3(0x141)]();}static async[_0x3068c3(0x156)](_0x1c617e){const _0x2c4129=_0x3068c3,_0x868004={'fitTo':{'mode':_0x2c4129(0x149),'value':0x400}},_0x3bc6da=new resvg_js_1['Resvg'](_0x1c617e,_0x868004),_0x3297a7=_0x3bc6da[_0x2c4129(0x142)](),_0x5e89b7=_0x3297a7[_0x2c4129(0x146)]();return _0x5e89b7;}static[_0x3068c3(0x152)](_0x3d1b9b){const _0x24b2db=_0x3068c3,_0x52fb5d=_0x3d1b9b['getWidth']()*_0x3d1b9b[_0x24b2db(0x143)]();for(var _0x302bd6=0x0;_0x302bd6<_0x52fb5d;_0x302bd6++){const _0xb99a2=_0x302bd6*0x4+0x3;if(_0x3d1b9b[_0x24b2db(0x13f)][_0x24b2db(0x14a)][_0xb99a2]<0xff)return![];}return!![];}}exports[_0x3068c3(0x153)]=ImageHelper;
1
+ 'use strict';const _0x4fc19d=_0x154b;(function(_0x30c10d,_0x33f952){const _0x2fd44f=_0x154b,_0x461b71=_0x30c10d();while(!![]){try{const _0x118a84=-parseInt(_0x2fd44f(0xf3))/0x1*(parseInt(_0x2fd44f(0xe6))/0x2)+parseInt(_0x2fd44f(0xef))/0x3+-parseInt(_0x2fd44f(0xed))/0x4*(parseInt(_0x2fd44f(0xe1))/0x5)+parseInt(_0x2fd44f(0xec))/0x6+parseInt(_0x2fd44f(0xe2))/0x7*(-parseInt(_0x2fd44f(0xe9))/0x8)+parseInt(_0x2fd44f(0xdb))/0x9+parseInt(_0x2fd44f(0xe5))/0xa;if(_0x118a84===_0x33f952)break;else _0x461b71['push'](_0x461b71['shift']());}catch(_0x3df5f6){_0x461b71['push'](_0x461b71['shift']());}}}(_0x372d,0x44abb));function _0x154b(_0x18583b,_0x44e351){const _0x372d79=_0x372d();return _0x154b=function(_0x154ba0,_0x229932){_0x154ba0=_0x154ba0-0xdb;let _0x23275f=_0x372d79[_0x154ba0];return _0x23275f;},_0x154b(_0x18583b,_0x44e351);}Object['defineProperty'](exports,_0x4fc19d(0xf0),{'value':!![]}),exports[_0x4fc19d(0xdf)]=void 0x0;function _0x372d(){const _0x3b4612=['render','Resvg','8194790Hyhfyx','2fVetMh','jimp','sharp','455368GhyCdI','toFormat','bitmap','159348RfRWuU','908LhDIjC','webp2PngBuffer','707175OIbGSV','__esModule','getWidth','data','149867QWkBMg','1631538NoJuma','png','isFullyOpaque','asPng','ImageHelper','width','12055DWJnnx','35IiilnL'];_0x372d=function(){return _0x3b4612;};return _0x372d();}const Jimp=require(_0x4fc19d(0xe7)),sharp=require(_0x4fc19d(0xe8)),resvg_js_1=require('@resvg/resvg-js');class ImageHelper{static['createImg'](_0x43f206){return new Jimp(_0x43f206,_0x43f206,0x0);}static async[_0x4fc19d(0xee)](_0x13b85b){const _0x52a6f1=_0x4fc19d;return await sharp(_0x13b85b)[_0x52a6f1(0xea)](_0x52a6f1(0xdc))['toBuffer']();}static async['svg2img'](_0x2fb10f){const _0x37d16f=_0x4fc19d,_0xdfabc6={'fitTo':{'mode':_0x37d16f(0xe0),'value':0x400}},_0x25b491=new resvg_js_1[(_0x37d16f(0xe4))](_0x2fb10f,_0xdfabc6),_0x5cae12=_0x25b491[_0x37d16f(0xe3)](),_0x4cfbca=_0x5cae12[_0x37d16f(0xde)]();return _0x4cfbca;}static[_0x4fc19d(0xdd)](_0x358cde){const _0x59c35c=_0x4fc19d,_0x1f6054=_0x358cde[_0x59c35c(0xf1)]()*_0x358cde['getHeight']();for(var _0x159e7c=0x0;_0x159e7c<_0x1f6054;_0x159e7c++){const _0x267db5=_0x159e7c*0x4+0x3;if(_0x358cde[_0x59c35c(0xeb)][_0x59c35c(0xf2)][_0x267db5]<0xff)return![];}return!![];}}exports[_0x4fc19d(0xdf)]=ImageHelper;
@@ -1,8 +1,9 @@
1
- import { ManifestInfo } from '../pwa';
1
+ import { ManifestInfo } from '../types';
2
2
  import * as Jimp from 'jimp';
3
3
  export declare let PROJECT_DIRECTORY: string;
4
4
  export declare let PROJECT_BUILD_DIRECTORY: string;
5
5
  export declare let PROJECT_EXPORT_DIRECTORY: string;
6
+ export declare let PROJECT_TEST_DIRECTORY: string;
6
7
  export declare const WEB_PROJECT_DIRECTORY = "web-spatial/static-web";
7
8
  export declare const ASSET_DIRECTORY = "web-spatial/Assets.xcassets";
8
9
  export declare const BACK_APPICON_DIRECTORY: string;