@webspatial/builder 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/lib/cmds/build.js +1 -1
- package/dist/lib/cmds/check.js +1 -1
- package/dist/lib/cmds/help.js +1 -1
- package/dist/lib/cmds/launch.js +1 -1
- package/dist/lib/cmds/shutdown.js +1 -1
- package/dist/lib/cmds/version.js +1 -1
- package/dist/lib/pwa/config.js +1 -1
- package/dist/lib/pwa/index.js +1 -1
- package/dist/lib/pwa/validate.js +1 -1
- package/dist/lib/resource/file.js +1 -1
- package/dist/lib/resource/imageHelper.js +1 -1
- package/dist/lib/resource/index.js +1 -1
- package/dist/lib/resource/load.js +1 -1
- package/dist/lib/types.js +1 -1
- package/dist/lib/utils/CustomError.js +1 -1
- package/dist/lib/utils/FetchUtils-1.js +1 -1
- package/dist/lib/utils/Log.js +1 -1
- package/dist/lib/utils/fetch.js +1 -1
- package/dist/lib/utils/history.js +1 -1
- package/dist/lib/utils/messages.js +1 -1
- package/dist/lib/utils/utils.js +1 -1
- package/dist/lib/xcode/index.js +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
- package/dist/lib/xcode/xcodebuild.js +1 -1
- package/dist/lib/xcode/xcodeproject.js +1 -1
- package/dist/lib/xcode/xcrun.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5ae9b3=_0x2625;(function(_0x53317a,_0x17ad3f){const _0x108aa2=_0x2625,_0x29d444=_0x53317a();while(!![]){try{const _0x143543=-parseInt(_0x108aa2(0x15a))/0x1+-parseInt(_0x108aa2(0x13f))/0x2*(parseInt(_0x108aa2(0x15f))/0x3)+parseInt(_0x108aa2(0x159))/0x4*(-parseInt(_0x108aa2(0x174))/0x5)+-parseInt(_0x108aa2(0x175))/0x6+parseInt(_0x108aa2(0x16a))/0x7+-parseInt(_0x108aa2(0x140))/0x8*(-parseInt(_0x108aa2(0x148))/0x9)+parseInt(_0x108aa2(0x131))/0xa;if(_0x143543===_0x17ad3f)break;else _0x29d444['push'](_0x29d444['shift']());}catch(_0x431eda){_0x29d444['push'](_0x29d444['shift']());}}}(_0x335b,0xdfb62));function _0x2625(_0x1d8cd9,_0x4c863b){const _0x335ba3=_0x335b();return _0x2625=function(_0x26253e,_0xe58b99){_0x26253e=_0x26253e-0x12f;let _0x1a27f6=_0x335ba3[_0x26253e];return _0x1a27f6;},_0x2625(_0x1d8cd9,_0x4c863b);}function _0x335b(){const _0x4940cb=['manifest\x20path','configureHelp','build','__esModule','By\x20compiling\x20or\x20running\x20directly\x20on\x20the\x20simulator\x20the\x20WebSpatial\x20App','command','requiredOption','--manifest\x20<manifest>','Publish\x20WebSpatial\x20App','username','4211992NIZFDM','379904XQEeDq','name','store','setDecompressResponseBuffer','./lib/cmds/version','152049TKWyPq','defineProperty','Shutdown\x20Simulator','export\x20path','downloadFile','fetch','Command','manifest\x20url','app\x20version','bundle\x20id','./lib/cmds/build','5010936EwVPWB','--manifest-url\x20<manifestUrl>','option','./lib/cmds/shutdown','log','--base\x20<base>','-v,\x20--version','action','major','run','5bnUNuh','9072900LmBmzp','--tryWithoutBuild\x20<tryWithoutBuild>','run\x20without\x20build','--manifest-url\x20<manifest-url>','./lib/cmds/launch','setFetch','exports','--export\x20<export>','19087840mXSqcv','xr\x20platform','publish','team\x20id','decompressResponseBuffer','webspatial-builder','parseAsync','app\x20build\x20type','--u\x20<username>','launch','--teamId\x20<teamId>','./lib/utils/fetch','shutdown','base\x20path','12hozVSf','32jtiHjl','password','argv','--bundle-id\x20<bundleId>','setDownloadFile','--version\x20<version>','project\x20path','--platform\x20<platform>','3466890VZtSBD','description','--buildType\x20<buildType>','fetchUtils','node','Current\x20Node.js\x20version\x20is\x20','getVersion'];_0x335b=function(){return _0x4940cb;};return _0x335b();}Object[_0x5ae9b3(0x160)](exports,_0x5ae9b3(0x152),{'value':!![]});const commander_1=require('commander'),semver_1=require('semver'),FetchUtils_1_1=require('./lib/utils/FetchUtils-1'),build_1=require(_0x5ae9b3(0x169)),version_1=require(_0x5ae9b3(0x15e)),fetch_1=require(_0x5ae9b3(0x13c)),launch_1=require(_0x5ae9b3(0x179)),shutdown_1=require(_0x5ae9b3(0x16d));module[_0x5ae9b3(0x12f)]=async()=>{const _0x454c1e=_0x5ae9b3;if((0x0,semver_1[_0x454c1e(0x172)])(process['versions'][_0x454c1e(0x14c)])<0xe)throw new Error(_0x454c1e(0x14d)+process['versions'][_0x454c1e(0x14c)]+'.'+'\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.');const _0x18d874=new commander_1[(_0x454c1e(0x165))]();FetchUtils_1_1[_0x454c1e(0x14b)][_0x454c1e(0x17a)](fetch_1[_0x454c1e(0x164)]),FetchUtils_1_1[_0x454c1e(0x14b)][_0x454c1e(0x144)](fetch_1[_0x454c1e(0x163)]),FetchUtils_1_1[_0x454c1e(0x14b)][_0x454c1e(0x15d)](fetch_1[_0x454c1e(0x135)]),await setupCommands(_0x18d874),await _0x18d874[_0x454c1e(0x137)](process[_0x454c1e(0x142)]);};async function setupCommands(_0x2dc774){const _0x2c67f6=_0x5ae9b3,_0x2343f3=await(0x0,version_1[_0x2c67f6(0x14e)])();_0x2dc774[_0x2c67f6(0x15b)](_0x2c67f6(0x136))[_0x2c67f6(0x149)]('WebSpatial\x20Builder\x20is\x20a\x20client-side\x20CLI\x20tool\x20used\x20to\x20generate\x20cross\x20platform\x20XRApp\x20projects.')['version'](_0x2343f3,_0x2c67f6(0x170))[_0x2c67f6(0x150)]({'showGlobalOptions':!![]}),_0x2dc774[_0x2c67f6(0x154)](_0x2c67f6(0x173))[_0x2c67f6(0x149)](_0x2c67f6(0x153))[_0x2c67f6(0x16c)](_0x2c67f6(0x156),'manifest\x20path')[_0x2c67f6(0x16c)]('--project\x20<project>',_0x2c67f6(0x146))[_0x2c67f6(0x16c)](_0x2c67f6(0x16b),_0x2c67f6(0x166))[_0x2c67f6(0x16c)](_0x2c67f6(0x147),_0x2c67f6(0x132))[_0x2c67f6(0x16c)](_0x2c67f6(0x16f),_0x2c67f6(0x13e))[_0x2c67f6(0x16c)](_0x2c67f6(0x143),_0x2c67f6(0x168))[_0x2c67f6(0x16c)](_0x2c67f6(0x176),_0x2c67f6(0x177))['action'](async _0x1e054e=>{await(0x0,build_1['run'])(_0x1e054e);}),_0x2dc774[_0x2c67f6(0x154)](_0x2c67f6(0x151))['description']('Build\x20WebSpatial\x20App')[_0x2c67f6(0x16c)]('--manifest\x20<manifest>',_0x2c67f6(0x14f))['option']('--project\x20<project>',_0x2c67f6(0x146))[_0x2c67f6(0x16c)](_0x2c67f6(0x178),_0x2c67f6(0x166))['option']('--platform\x20<platform>',_0x2c67f6(0x132))[_0x2c67f6(0x16c)]('--version\x20<version>',_0x2c67f6(0x167))[_0x2c67f6(0x16c)](_0x2c67f6(0x14a),_0x2c67f6(0x138))['option'](_0x2c67f6(0x130),_0x2c67f6(0x162))['option'](_0x2c67f6(0x143),_0x2c67f6(0x168))[_0x2c67f6(0x155)]('--base\x20<base>',_0x2c67f6(0x13e))['requiredOption'](_0x2c67f6(0x13b),'team\x20id')[_0x2c67f6(0x171)](async _0x51413a=>{const _0x3bfac9=_0x2c67f6;console[_0x3bfac9(0x16e)](_0x51413a),await(0x0,build_1['build'])(_0x51413a);}),_0x2dc774['command'](_0x2c67f6(0x133))[_0x2c67f6(0x149)](_0x2c67f6(0x157))[_0x2c67f6(0x16c)](_0x2c67f6(0x156),_0x2c67f6(0x14f))['option']('--project\x20<project>',_0x2c67f6(0x146))[_0x2c67f6(0x16c)](_0x2c67f6(0x16b),_0x2c67f6(0x166))['option'](_0x2c67f6(0x147),_0x2c67f6(0x132))['option'](_0x2c67f6(0x14a),_0x2c67f6(0x138))[_0x2c67f6(0x16c)](_0x2c67f6(0x130),_0x2c67f6(0x162))[_0x2c67f6(0x16c)](_0x2c67f6(0x143),_0x2c67f6(0x168))[_0x2c67f6(0x155)](_0x2c67f6(0x16f),_0x2c67f6(0x13e))[_0x2c67f6(0x155)](_0x2c67f6(0x13b),_0x2c67f6(0x134))[_0x2c67f6(0x155)](_0x2c67f6(0x145),'app\x20version')['requiredOption'](_0x2c67f6(0x139),_0x2c67f6(0x158))[_0x2c67f6(0x155)]('--p\x20<password>',_0x2c67f6(0x141))[_0x2c67f6(0x171)](async _0x21b237=>{const _0x4d8466=_0x2c67f6;console[_0x4d8466(0x16e)](_0x21b237),await(0x0,build_1[_0x4d8466(0x15c)])(_0x21b237);}),_0x2dc774[_0x2c67f6(0x154)](_0x2c67f6(0x13a))[_0x2c67f6(0x149)]('Launch\x20WebSpatial\x20App')['option'](_0x2c67f6(0x143),_0x2c67f6(0x168))[_0x2c67f6(0x171)](async _0x453484=>{console['log'](_0x453484),await(0x0,launch_1['launch'])(_0x453484);}),_0x2dc774[_0x2c67f6(0x154)](_0x2c67f6(0x13d))[_0x2c67f6(0x149)](_0x2c67f6(0x161))[_0x2c67f6(0x171)](async _0x24bbf6=>{const _0x104c48=_0x2c67f6;console[_0x104c48(0x16e)](_0x24bbf6),await(0x0,shutdown_1['shutdown'])(_0x24bbf6);});}
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x10fb9d=_0x17d5;(function(_0x37336b,_0x3f2ea4){const _0x2930c7=_0x17d5,_0x393f34=_0x37336b();while(!![]){try{const _0x4670fd=-parseInt(_0x2930c7(0x1fc))/0x1+parseInt(_0x2930c7(0x1fd))/0x2+parseInt(_0x2930c7(0x200))/0x3+-parseInt(_0x2930c7(0x210))/0x4+parseInt(_0x2930c7(0x20f))/0x5*(parseInt(_0x2930c7(0x20a))/0x6)+parseInt(_0x2930c7(0x20c))/0x7+parseInt(_0x2930c7(0x216))/0x8*(-parseInt(_0x2930c7(0x217))/0x9);if(_0x4670fd===_0x3f2ea4)break;else _0x393f34['push'](_0x393f34['shift']());}catch(_0x33c1de){_0x393f34['push'](_0x393f34['shift']());}}}(_0x38f7,0x9a77d));Object['defineProperty'](exports,_0x10fb9d(0x207),{'value':!![]}),exports[_0x10fb9d(0x1f7)]=build,exports['store']=store,exports[_0x10fb9d(0x20b)]=run;const pwa_1=require(_0x10fb9d(0x1f3)),resource_1=require(_0x10fb9d(0x219)),xcode_1=require(_0x10fb9d(0x1ff)),check_1=require(_0x10fb9d(0x21c)),history_1=require(_0x10fb9d(0x215));async function build(_0x4ac952){const _0xc59367=_0x10fb9d;var _0x34acd2;console[_0xc59367(0x21a)](_0xc59367(0x21b)),resource_1[_0xc59367(0x208)]['checkPlatformPath'](_0x4ac952[_0xc59367(0x1f8)]);const _0x4d50e7=await doPwa(_0x4ac952),_0x4dd485=await doReadyProject((_0x34acd2=_0x4ac952['project'])!==null&&_0x34acd2!==void 0x0?_0x34acd2:_0xc59367(0x1f5),_0x4d50e7);return await doXcode(_0x4ac952,_0x4dd485,_0x4d50e7),console[_0xc59367(0x21a)](_0xc59367(0x1fa)),await xcode_1[_0xc59367(0x206)][_0xc59367(0x1f7)](_0x4ac952['export']),_0x4d50e7;}async function store(_0x42a34b){const _0x8a0148=_0x10fb9d;resource_1['ResourceManager'][_0x8a0148(0x20e)](_0x42a34b['platform']),(0x0,check_1[_0x8a0148(0x212)])(_0x42a34b);let _0x4fff94={'name':_0x8a0148(0x1f4)};_0x42a34b['buildType']=_0x8a0148(0x203);if(_0x42a34b['name'])_0x4fff94[_0x8a0148(0x1f2)]=_0x42a34b[_0x8a0148(0x1f2)];else{const _0xb666df=await build(_0x42a34b);_0x4fff94[_0x8a0148(0x1f2)]=_0xb666df[_0x8a0148(0x211)][_0x8a0148(0x1f2)];}await xcode_1[_0x8a0148(0x206)][_0x8a0148(0x1fb)](_0x42a34b,_0x4fff94);}async function run(_0x793ffa){const _0x556d05=_0x10fb9d;var _0x29691a;const _0x19c40b=JSON[_0x556d05(0x1f9)](_0x793ffa);history_1[_0x556d05(0x213)]['init'](_0x19c40b),console[_0x556d05(0x21a)]('-------------------\x20parse\x20start\x20-------------------'),resource_1[_0x556d05(0x208)][_0x556d05(0x20e)](_0x793ffa['platform']);const _0x40ea72=await doPwa(_0x793ffa,!![]);history_1['default'][_0x556d05(0x1ef)](_0x40ea72[_0x556d05(0x211)]);if(_0x40ea72[_0x556d05(0x1f0)]||_0x793ffa[_0x556d05(0x204)]===_0x556d05(0x209)){if(history_1[_0x556d05(0x213)][_0x556d05(0x1f1)](_0x40ea72[_0x556d05(0x211)])){console[_0x556d05(0x21a)]('Same\x20as\x20the\x20previous\x20record'),await xcode_1['XcodeManager'][_0x556d05(0x1f6)]();return;}}const _0x3f0a76=await doReadyProject((_0x29691a=_0x793ffa[_0x556d05(0x214)])!==null&&_0x29691a!==void 0x0?_0x29691a:_0x556d05(0x1f5),_0x40ea72);await doXcode(_0x793ffa,_0x3f0a76,_0x40ea72,!![]),console[_0x556d05(0x21a)](_0x556d05(0x1fa)),await xcode_1[_0x556d05(0x206)]['runWithSimulator']();}function _0x17d5(_0x38942d,_0x4bebff){const _0x38f735=_0x38f7();return _0x17d5=function(_0x17d5c4,_0x2d024d){_0x17d5c4=_0x17d5c4-0x1ef;let _0x4a32b9=_0x38f735[_0x17d5c4];return _0x4a32b9;},_0x17d5(_0x38942d,_0x4bebff);}async function doPwa(_0x4a02ff,_0x84cc8c=![]){const _0x5a37cf=_0x10fb9d;return(0x0,check_1[_0x5a37cf(0x1fe)])(_0x4a02ff,_0x84cc8c),await pwa_1[_0x5a37cf(0x218)]['generator'](_0x4a02ff,_0x84cc8c);}async function doReadyProject(_0x545dd0,_0x4ba58b){const _0x534d6c=_0x10fb9d;return!_0x4ba58b['fromNet']&&(await resource_1[_0x534d6c(0x208)][_0x534d6c(0x205)](_0x545dd0),console[_0x534d6c(0x21a)]('move\x20web\x20project:\x20ok')),await resource_1[_0x534d6c(0x208)]['generateIcon'](_0x4ba58b);}function _0x38f7(){const _0x1f65c5=['2136252gJPnge','run','4589823YdpGAq','version','checkPlatformPath','15AfYjnJ','3112592NWbeLr','json','checkStoreParams','default','project','../utils/history','2221256obUEEa','18ozMoIx','PWAGenerator','../resource','log','-------------------\x20parse\x20start\x20-------------------','./check','recordManifest','fromNet','checkManifest','name','../pwa','WebSpatialTest','dist','runWithHistory','build','platform','stringify','-------------------\x20parse\x20end\x20-------------------','upload','192006mYgZaT','384898msRonp','checkBuildParams','../xcode','725715IOSYNH','export','parseProject','app-store-connect','tryWithoutBuild','moveProjectFrom','XcodeManager','__esModule','ResourceManager','true'];_0x38f7=function(){return _0x1f65c5;};return _0x38f7();}async function doXcode(_0x529c3c,_0x406792,_0xca4ca6,_0x30c78d=![]){const _0x3473d0=_0x10fb9d;await xcode_1['XcodeManager'][_0x3473d0(0x202)]({'icon':_0x406792,'manifestInfo':_0xca4ca6,'teamId':_0x529c3c['teamId'],'version':_0x529c3c[_0x3473d0(0x20d)],'buildType':_0x529c3c['buildType'],'export':_0x529c3c[_0x3473d0(0x201)]},_0x30c78d);}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3fcb8c=_0x1b91;(function(_0xddda89,_0x2911e4){const _0x398225=_0x1b91,_0x14616f=_0xddda89();while(!![]){try{const _0x12a2b0=-parseInt(_0x398225(0x149))/0x1+parseInt(_0x398225(0x13f))/0x2*(parseInt(_0x398225(0x136))/0x3)+-parseInt(_0x398225(0x13e))/0x4*(-parseInt(_0x398225(0x12f))/0x5)+-parseInt(_0x398225(0x13b))/0x6+parseInt(_0x398225(0x134))/0x7+-parseInt(_0x398225(0x145))/0x8*(parseInt(_0x398225(0x138))/0x9)+-parseInt(_0x398225(0x147))/0xa*(-parseInt(_0x398225(0x140))/0xb);if(_0x12a2b0===_0x2911e4)break;else _0x14616f['push'](_0x14616f['shift']());}catch(_0x127022){_0x14616f['push'](_0x14616f['shift']());}}}(_0x2aa4,0x8609d));Object[_0x3fcb8c(0x146)](exports,_0x3fcb8c(0x13d),{'value':!![]}),exports['checkBuildParams']=checkBuildParams,exports[_0x3fcb8c(0x142)]=checkStoreParams;const validate_1=require(_0x3fcb8c(0x133));function _0x1b91(_0x2d9e36,_0x17f60f){const _0x2aa411=_0x2aa4();return _0x1b91=function(_0x1b91ca,_0x1a0ec5){_0x1b91ca=_0x1b91ca-0x12e;let _0x3c6ca9=_0x2aa411[_0x1b91ca];return _0x3c6ca9;},_0x1b91(_0x2d9e36,_0x17f60f);}function checkBuildParams(_0x1b4909,_0x128fb7=![]){const _0x16b114=_0x3fcb8c;if(_0x1b4909[_0x16b114(0x13a)]&&_0x1b4909[_0x16b114(0x141)])throw new Error(_0x16b114(0x13c));if(!_0x1b4909[_0x16b114(0x143)]&&!_0x128fb7)throw new Error(_0x16b114(0x132));if(_0x1b4909[_0x16b114(0x135)]){if((0x0,validate_1[_0x16b114(0x14a)])(_0x1b4909['base']))try{const _0x7296a5=new URL(_0x1b4909[_0x16b114(0x135)]);if(_0x7296a5[_0x16b114(0x144)]||_0x7296a5[_0x16b114(0x137)])throw new Error(_0x16b114(0x148));}catch(_0x4e912a){throw new Error('The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.');}else{const _0x20c580=/(\?.*|\.\w+|#.*)$/,_0x2d870f=_0x1b4909[_0x16b114(0x135)][_0x16b114(0x130)]('/')['pop']()||'';if(_0x20c580['test'](_0x2d870f))throw new Error(_0x16b114(0x148));}}}function checkStoreParams(_0x43a901){const _0xabc42b=_0x3fcb8c;if(!(_0x43a901['u']&&_0x43a901['p']))throw new Error(_0xabc42b(0x12e));if(!_0x43a901[_0xabc42b(0x131)])throw new Error(_0xabc42b(0x139));}function _0x2aa4(){const _0x25eadf=['1671285JsPzaK','base','21FtwOFy','hash','495KFbHOI','version\x20is\x20required','manifest','6535788GCgkWa','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','__esModule','969692PDowCf','98792gAjKtB','237303snsiDl','manifest-url','checkStoreParams','teamId','search','158968ozfdyX','defineProperty','890gCiJoy','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','258146SpWbRZ','validateURL','--u\x20and\x20--p\x20is\x20required','10NEpJAd','split','version','--teamId\x20is\x20required','../pwa/validate'];_0x2aa4=function(){return _0x25eadf;};return _0x2aa4();}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x1a5403=_0x5d84;function _0x2a52(){const _0x210760=['webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','get','80628yBGINZ','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','help','133299ZUNzMK','../utils/Log','__esModule','562520mvIIzA','82046GPIpJf','6PyOiCw','main','322521AeWZtI','help\x20................\x20shows\x20this\x20menu','895993QEjTjm','publish','33220SQkrMH','Usage:','270aDatOo','join','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','dev','build','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','150XnsACm','8HycPhj','3540JtEsvU','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','info','ConsoleLog','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>','defineProperty'];_0x2a52=function(){return _0x210760;};return _0x2a52();}(function(_0x451022,_0x29c6bc){const _0xe8ab1f=_0x5d84,_0x2f67cd=_0x451022();while(!![]){try{const _0x4c8a44=-parseInt(_0xe8ab1f(0x108))/0x1+parseInt(_0xe8ab1f(0x109))/0x2*(-parseInt(_0xe8ab1f(0x10b))/0x3)+-parseInt(_0xe8ab1f(0x107))/0x4+-parseInt(_0xe8ab1f(0x117))/0x5*(-parseInt(_0xe8ab1f(0x121))/0x6)+parseInt(_0xe8ab1f(0x10d))/0x7*(-parseInt(_0xe8ab1f(0x118))/0x8)+-parseInt(_0xe8ab1f(0x104))/0x9*(parseInt(_0xe8ab1f(0x111))/0xa)+-parseInt(_0xe8ab1f(0x10f))/0xb*(-parseInt(_0xe8ab1f(0x119))/0xc);if(_0x4c8a44===_0x29c6bc)break;else _0x2f67cd['push'](_0x2f67cd['shift']());}catch(_0x5e0b26){_0x2f67cd['push'](_0x2f67cd['shift']());}}}(_0x2a52,0x35f13));function _0x5d84(_0x1e6edd,_0x187d7e){const _0x2a5288=_0x2a52();return _0x5d84=function(_0x5d846a,_0x2d862e){_0x5d846a=_0x5d846a-0x104;let _0x948243=_0x2a5288[_0x5d846a];return _0x948243;},_0x5d84(_0x1e6edd,_0x187d7e);}Object[_0x1a5403(0x11e)](exports,_0x1a5403(0x106),{'value':!![]}),exports[_0x1a5403(0x123)]=help;const Log_1=require(_0x1a5403(0x105)),HELP_MESSAGES=new Map([[_0x1a5403(0x10a),['webspatial\x20[command]\x20<options>','','',_0x1a5403(0x10c),_0x1a5403(0x116)+'\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect'][_0x1a5403(0x112)]('\x0a')],[_0x1a5403(0x115),[_0x1a5403(0x110),'','',_0x1a5403(0x122),'','','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]'][_0x1a5403(0x112)]('\x0a')],[_0x1a5403(0x114),['Usage:','','',_0x1a5403(0x11f),'','','webspatial\x20dev\x20--manifest-url=<net-manifest-url>'][_0x1a5403(0x112)]('\x0a')],[_0x1a5403(0x10e),[_0x1a5403(0x110),'','',_0x1a5403(0x11d),'','',_0x1a5403(0x113),'','',_0x1a5403(0x11a)][_0x1a5403(0x112)]('\x0a')]]);async function help(_0x2fbe13,_0x5f1f54=new Log_1[(_0x1a5403(0x11c))]('help')){const _0x5c95ec=_0x1a5403,_0x17eca7=_0x2fbe13['_'][0x1],_0x396ca5=HELP_MESSAGES[_0x5c95ec(0x120)](_0x17eca7)||HELP_MESSAGES['get'](_0x5c95ec(0x10a));return _0x5f1f54[_0x5c95ec(0x11b)](_0x396ca5),!![];}
|
package/dist/lib/cmds/launch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x449074=_0x2236;(function(_0x4df0b4,_0x5b3849){const _0x16fe27=_0x2236,_0x5c3ee5=_0x4df0b4();while(!![]){try{const _0x391aee=parseInt(_0x16fe27(0x108))/0x1*(-parseInt(_0x16fe27(0x113))/0x2)+parseInt(_0x16fe27(0x110))/0x3*(parseInt(_0x16fe27(0x107))/0x4)+parseInt(_0x16fe27(0x109))/0x5+-parseInt(_0x16fe27(0x10c))/0x6*(-parseInt(_0x16fe27(0x10a))/0x7)+parseInt(_0x16fe27(0x10e))/0x8+parseInt(_0x16fe27(0x10b))/0x9+parseInt(_0x16fe27(0x10f))/0xa*(-parseInt(_0x16fe27(0x115))/0xb);if(_0x391aee===_0x5b3849)break;else _0x5c3ee5['push'](_0x5c3ee5['shift']());}catch(_0x3f36d6){_0x5c3ee5['push'](_0x5c3ee5['shift']());}}}(_0x331e,0x4ef00));function _0x331e(){const _0x245adb=['733545kzdgOj','1141DMRWTm','1321371FIJEvp','20766YcKteA','bundle-id','116648eigIri','873640cppsAh','20319xevPwR','launchWithSimulator','defineProperty','6850BClgvS','default','55UGcdVV','com.webspatial.test','../xcode/xcrun','__esModule','308JdLbZf','185UNdhtg'];_0x331e=function(){return _0x245adb;};return _0x331e();}function _0x2236(_0x365890,_0x137d2d){const _0x331e11=_0x331e();return _0x2236=function(_0x223690,_0x28ad4a){_0x223690=_0x223690-0x104;let _0x575b21=_0x331e11[_0x223690];return _0x575b21;},_0x2236(_0x365890,_0x137d2d);}Object[_0x449074(0x112)](exports,_0x449074(0x106),{'value':!![]}),exports['launch']=launch;const xcrun_1=require(_0x449074(0x105));async function launch(_0x2a5563){const _0x233263=_0x449074;var _0x5c8676;const _0x6361f4=(_0x5c8676=_0x2a5563[_0x233263(0x10d)])!==null&&_0x5c8676!==void 0x0?_0x5c8676:_0x233263(0x104),_0x368a08={'name':'','id':_0x6361f4};return xcrun_1[_0x233263(0x114)][_0x233263(0x111)](_0x368a08),!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x510643=_0x5356;(function(_0x39008f,_0x3567e3){const _0x486512=_0x5356,_0x360e21=_0x39008f();while(!![]){try{const _0x3f41ba=parseInt(_0x486512(0xc5))/0x1*(-parseInt(_0x486512(0xc2))/0x2)+parseInt(_0x486512(0xce))/0x3*(parseInt(_0x486512(0xcd))/0x4)+-parseInt(_0x486512(0xc9))/0x5+parseInt(_0x486512(0xc8))/0x6+parseInt(_0x486512(0xca))/0x7+-parseInt(_0x486512(0xc4))/0x8*(parseInt(_0x486512(0xcf))/0x9)+-parseInt(_0x486512(0xc3))/0xa*(-parseInt(_0x486512(0xc7))/0xb);if(_0x3f41ba===_0x3567e3)break;else _0x360e21['push'](_0x360e21['shift']());}catch(_0x16ba9f){_0x360e21['push'](_0x360e21['shift']());}}}(_0x35b0,0xf173f));function _0x5356(_0x33f143,_0x42c29d){const _0x35b0d3=_0x35b0();return _0x5356=function(_0x5356b2,_0x26e918){_0x5356b2=_0x5356b2-0xc2;let _0x449e7b=_0x35b0d3[_0x5356b2];return _0x449e7b;},_0x5356(_0x33f143,_0x42c29d);}Object[_0x510643(0xc6)](exports,_0x510643(0xd0),{'value':!![]}),exports[_0x510643(0xcb)]=shutdown;function _0x35b0(){const _0x878cc1=['6zZYnZD','72ZRemdI','__esModule','1182sofXeh','30nHmGNg','1349392gljxgL','1091qbxhqo','defineProperty','1473791cpWqph','5545950YdxfWz','4572385MXOxbi','7431543gWeBhz','shutdown','../xcode/xcrun','3019448WZFqGR'];_0x35b0=function(){return _0x878cc1;};return _0x35b0();}const xcrun_1=require(_0x510643(0xcc));async function shutdown(_0x3e9bda){return xcrun_1['default']['shutdownSimulator'](),!![];}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x69e615=_0x467d;(function(_0x57ccc1,_0x1d7cf1){const _0x33a591=_0x467d,_0x701f77=_0x57ccc1();while(!![]){try{const _0x39f3b5=parseInt(_0x33a591(0x12d))/0x1*(-parseInt(_0x33a591(0x138))/0x2)+parseInt(_0x33a591(0x12e))/0x3+parseInt(_0x33a591(0x132))/0x4*(-parseInt(_0x33a591(0x136))/0x5)+parseInt(_0x33a591(0x133))/0x6+parseInt(_0x33a591(0x135))/0x7*(parseInt(_0x33a591(0x130))/0x8)+-parseInt(_0x33a591(0x139))/0x9+-parseInt(_0x33a591(0x12f))/0xa;if(_0x39f3b5===_0x1d7cf1)break;else _0x701f77['push'](_0x701f77['shift']());}catch(_0x27a327){_0x701f77['push'](_0x701f77['shift']());}}}(_0x4598,0xc86db));Object[_0x69e615(0x134)](exports,_0x69e615(0x13b),{'value':!![]}),exports['getVersion']=getVersion;const fs=require('fs'),path=require(_0x69e615(0x12a));function _0x467d(_0x73639b,_0xc78254){const _0x4598c7=_0x4598();return _0x467d=function(_0x467d30,_0x347801){_0x467d30=_0x467d30-0x12a;let _0x3bb372=_0x4598c7[_0x467d30];return _0x3bb372;},_0x467d(_0x73639b,_0xc78254);}async function getVersion(){const _0x2ff6f0=_0x69e615,_0x41f172=path[_0x2ff6f0(0x137)](__dirname,_0x2ff6f0(0x13a)),_0x552f6d=await(await fs[_0x2ff6f0(0x12b)][_0x2ff6f0(0x12c)](_0x41f172))['toString'](),_0x5031d7=JSON['parse'](_0x552f6d);return _0x5031d7[_0x2ff6f0(0x131)];}function _0x4598(){const _0x313ced=['join','2jDYKGr','13057668cTlGKB','../../../package.json','__esModule','path','promises','readFile','89633TRjUiq','2631114BuuIWk','8377450LGlmdj','760rWznlF','version','27712cxJfKB','6698106GsOKBi','defineProperty','92932glveik','40THUBsc'];_0x4598=function(){return _0x313ced;};return _0x4598();}
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5ddbb7=_0x2a3d;(function(_0x5aa333,_0x3e4c66){const _0x1564ef=_0x2a3d,_0x53ed58=_0x5aa333();while(!![]){try{const _0x25d156=parseInt(_0x1564ef(0x119))/0x1+-parseInt(_0x1564ef(0x160))/0x2+-parseInt(_0x1564ef(0x16d))/0x3+-parseInt(_0x1564ef(0x124))/0x4+-parseInt(_0x1564ef(0x13d))/0x5*(-parseInt(_0x1564ef(0x11d))/0x6)+-parseInt(_0x1564ef(0x146))/0x7*(-parseInt(_0x1564ef(0x12d))/0x8)+parseInt(_0x1564ef(0x167))/0x9*(parseInt(_0x1564ef(0x159))/0xa);if(_0x25d156===_0x3e4c66)break;else _0x53ed58['push'](_0x53ed58['shift']());}catch(_0x3446d6){_0x53ed58['push'](_0x53ed58['shift']());}}}(_0x40f0,0xa8a4a));Object[_0x5ddbb7(0x149)](exports,_0x5ddbb7(0x16a),{'value':!![]}),exports[_0x5ddbb7(0x13e)]=void 0x0,exports[_0x5ddbb7(0x134)]=configId,exports[_0x5ddbb7(0x12b)]=configStartUrl,exports[_0x5ddbb7(0x139)]=configScope,exports[_0x5ddbb7(0x164)]=configDisplay,exports['configMainScene']=configMainScene,exports[_0x5ddbb7(0x133)]=configDeeplink;const utils_1=require('../utils/utils'),validate_1=require(_0x5ddbb7(0x12c)),path_1=require(_0x5ddbb7(0x162));function _0x40f0(){const _0x1fc3a5=['configStartUrl','./validate','8sJbEse','normalize','height','resolve','standalone','relative','configDeeplink','configId','href','includes','length','startsWith','configScope','sftp','xmpp','mode','1855585NygZQp','safelist','contentSize','parseRouter','width','scope','sip','url','host','620963LquMfm','irc','smsto','defineProperty','ircs','magnet','automatic','news','mms','webcal','mainScene','string','protocol_handlers','object','./static-web','reverse','sms','urn','ftps','88330GWjKpW','display','origin','display_override','indexOf','index','map','2722160rBqpoC','replace','path','ftp','configDisplay','join','split','765bLCSzr','defaultSize','mailto','__esModule','validateURL','contentMinSize','340920NzELev','wtai','web+','982260yztaJM','start_url','\x20\x20is\x20not\x20a\x20valid\x20url','openpgp4fpr','6efBzcU','splice','cwd','hash','sort','nntp','xr_main_scene','109636kfJkge','fullscreen','pathname','search','resizability','default_size','filter'];_0x40f0=function(){return _0x1fc3a5;};return _0x40f0();}function configId(_0x87cfef,_0x24a122){const _0x3894ac=_0x5ddbb7;if(_0x24a122)_0x87cfef['id']=_0x24a122;else try{const _0x19b4be=new URL(_0x87cfef['id']);let _0x6755db=_0x19b4be[_0x3894ac(0x145)][_0x3894ac(0x166)]('.')[_0x3894ac(0x155)]();_0x87cfef['id']=_0x6755db[_0x3894ac(0x165)]('.');}catch(_0x208ffe){throw new Error('id:'+_0x87cfef['id']+_0x3894ac(0x11b));}}function configStartUrl(_0x345577,_0x1d9ab4,_0x15fcfa,_0x4eee3c){const _0x25165f=_0x5ddbb7;var _0x149876;let _0x32c97b=(_0x149876=_0x345577['start_url'])!==null&&_0x149876!==void 0x0?_0x149876:'/';const _0x3cefe4=(0x0,validate_1['validateURL'])(_0x32c97b),_0x2efbb9=_0x1d9ab4[_0x25165f(0x137)]>0x0;if(_0x2efbb9){const _0x3572d6=(0x0,validate_1['validateURL'])(_0x1d9ab4);if(!_0x3cefe4&&!_0x3572d6){const _0xed8319=(0x0,path_1[_0x25165f(0x130)])(_0x25165f(0x154)),_0x49e09d=(0x0,path_1[_0x25165f(0x130)])(_0xed8319,_0x1d9ab4,_0x32c97b),_0x56582f=(0x0,path_1['normalize'])(_0x49e09d),_0x4068dd=(0x0,path_1['join'])(_0xed8319,_0x56582f);_0x32c97b=(0x0,path_1['relative'])(process[_0x25165f(0x11f)](),_0x4068dd)[_0x25165f(0x161)](/^(\.\.\/)+/,'./')[_0x25165f(0x161)](/\/$/,'');}else{if(_0x3cefe4&&!_0x3572d6){const _0x1ac2f2=new URL(_0x32c97b),_0x100a86=_0x1ac2f2[_0x25165f(0x126)]+_0x1ac2f2['search']+_0x1ac2f2[_0x25165f(0x120)];let _0x4ae894=new URL(_0x1d9ab4,_0x1ac2f2['origin']);_0x32c97b=new URL(_0x100a86,_0x4ae894)[_0x25165f(0x135)];}else{if(!_0x3cefe4&&_0x3572d6){if(_0x32c97b[_0x25165f(0x138)]('/')){const _0x2c1069=new URL(_0x1d9ab4);_0x32c97b=_0x2c1069[_0x25165f(0x15b)]+(0x0,path_1[_0x25165f(0x165)])(_0x2c1069[_0x25165f(0x126)],_0x32c97b);}else _0x32c97b=new URL(_0x32c97b,_0x1d9ab4)['href'];}else{if(_0x3cefe4&&_0x3572d6){const _0x4daffe=new URL(_0x32c97b),_0x678de2=new URL(_0x1d9ab4),_0x225920=_0x4daffe[_0x25165f(0x126)]+_0x4daffe[_0x25165f(0x127)]+_0x4daffe[_0x25165f(0x120)];_0x32c97b=new URL(_0x225920,_0x678de2['origin']+_0x678de2['pathname'])[_0x25165f(0x135)];}}}}}else{if(_0x4eee3c){const _0x4501c7=new URL(_0x15fcfa);if(!_0x3cefe4){const _0x5cc720=new URL(_0x32c97b,_0x4501c7['origin']);_0x32c97b=_0x5cc720[_0x25165f(0x135)];}else{const _0x38fd51=new URL(_0x32c97b);_0x32c97b=_0x4501c7[_0x25165f(0x15b)]+_0x38fd51[_0x25165f(0x126)]+_0x38fd51['search']+_0x38fd51[_0x25165f(0x120)];}}else{if(!_0x3cefe4){const _0x5898a2=(0x0,path_1[_0x25165f(0x130)])(_0x25165f(0x154)),_0x3db9b0=(0x0,path_1[_0x25165f(0x130)])(_0x5898a2,_0x32c97b),_0x4d8479=(0x0,path_1[_0x25165f(0x12e)])(_0x3db9b0),_0x1b9326=(0x0,path_1[_0x25165f(0x165)])(_0x5898a2,_0x4d8479);_0x32c97b=(0x0,path_1[_0x25165f(0x132)])(process['cwd'](),_0x1b9326)[_0x25165f(0x161)](/^(\.\.\/)+/,'./')[_0x25165f(0x161)](/\/$/,'');}}}return _0x32c97b;}function _0x2a3d(_0xea70f5,_0x490d68){const _0x40f0c6=_0x40f0();return _0x2a3d=function(_0x2a3d84,_0x28464f){_0x2a3d84=_0x2a3d84-0x117;let _0xa1e030=_0x40f0c6[_0x2a3d84];return _0xa1e030;},_0x2a3d(_0xea70f5,_0x490d68);}function configScope(_0x1196c9){const _0x8ea497=_0x5ddbb7;var _0x1d7312;let _0x440459=(_0x1d7312=_0x1196c9['scope'])!==null&&_0x1d7312!==void 0x0?_0x1d7312:'/';const _0x2ef073=(0x0,validate_1[_0x8ea497(0x16b)])(_0x1196c9['start_url']),_0x73abda=(0x0,validate_1[_0x8ea497(0x16b)])(_0x440459);if(_0x2ef073&&_0x73abda){const _0xefe19a=new URL(_0x440459),_0x3dbf98=new URL(_0x1196c9['start_url']);(_0xefe19a[_0x8ea497(0x145)]!==_0x3dbf98['host']||_0x1196c9[_0x8ea497(0x11a)][_0x8ea497(0x15d)](_0x440459)!==0x0)&&(_0x440459=(0x0,utils_1[_0x8ea497(0x140)])(_0x1196c9[_0x8ea497(0x11a)]));}else{if(_0x2ef073&&!_0x73abda)_0x440459=new URL(_0x440459,_0x1196c9[_0x8ea497(0x11a)])[_0x8ea497(0x135)];else{if(!_0x2ef073&&_0x73abda){const _0xb05cb7=_0x1196c9[_0x8ea497(0x11a)]['replace'](/\/[^\/]+$/,'');_0x440459=(0x0,path_1['normalize'])(_0xb05cb7+'/');}else _0x440459=(0x0,path_1[_0x8ea497(0x165)])((0x0,utils_1[_0x8ea497(0x140)])(_0x1196c9[_0x8ea497(0x11a)]),_0x440459);}}_0x1196c9['scope']=_0x440459;}function configDisplay(_0xac2bc){const _0x1e5b45=_0x5ddbb7;let _0xb9a576=_0xac2bc['display'];const _0x2569c1=['minimal-ui',_0x1e5b45(0x131),_0x1e5b45(0x125)];!_0x2569c1[_0x1e5b45(0x136)](_0xb9a576)&&(_0xb9a576=_0x1e5b45(0x131));if(_0xac2bc['display_override']&&_0xac2bc[_0x1e5b45(0x15c)][_0x1e5b45(0x137)]>0x0){const _0x16f1a0=_0xac2bc['display_override'][_0x1e5b45(0x15f)]((_0x40cabe,_0x4a3add)=>({'mode':_0x40cabe,'index':_0x4a3add}))[_0x1e5b45(0x12a)](({mode:_0x489f28})=>_0x2569c1[_0x1e5b45(0x136)](_0x489f28))[_0x1e5b45(0x121)]((_0x4fa230,_0xf99863)=>_0x4fa230[_0x1e5b45(0x15e)]-_0xf99863['index']);_0x16f1a0['length']>0x0&&(_0xb9a576=_0x16f1a0[0x0][_0x1e5b45(0x13c)]);}_0xac2bc[_0x1e5b45(0x15a)]=_0xb9a576;}function configMainScene(_0x28e81f){const _0x20def4=_0x5ddbb7;var _0x2f05f5,_0x391056;const _0x15703c=['automatic',_0x20def4(0x16c),_0x20def4(0x13f)];let _0x454fd1={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x20def4(0x14c)};if(_0x28e81f[_0x20def4(0x123)]){if(typeof _0x28e81f[_0x20def4(0x123)]===_0x20def4(0x153))_0x454fd1[_0x20def4(0x168)][_0x20def4(0x141)]=Number((_0x2f05f5=_0x28e81f['xr_main_scene'][_0x20def4(0x129)])===null||_0x2f05f5===void 0x0?void 0x0:_0x2f05f5[_0x20def4(0x141)])>0x0?_0x28e81f[_0x20def4(0x123)][_0x20def4(0x129)][_0x20def4(0x141)]:0x500,_0x454fd1['defaultSize'][_0x20def4(0x12f)]=Number((_0x391056=_0x28e81f[_0x20def4(0x123)][_0x20def4(0x129)])===null||_0x391056===void 0x0?void 0x0:_0x391056[_0x20def4(0x12f)])>0x0?_0x28e81f[_0x20def4(0x123)][_0x20def4(0x129)][_0x20def4(0x12f)]:0x500,_0x454fd1[_0x20def4(0x128)]=_0x15703c['includes'](_0x28e81f[_0x20def4(0x123)][_0x20def4(0x128)])?_0x28e81f[_0x20def4(0x123)][_0x20def4(0x128)]:'automatic',_0x28e81f[_0x20def4(0x150)]=_0x454fd1;else typeof _0x28e81f[_0x20def4(0x123)]===_0x20def4(0x151)&&(_0x28e81f['mainScene']='dynamic');}}function configDeeplink(_0x303196){const _0x57f591=_0x5ddbb7;if(_0x303196[_0x57f591(0x152)]&&_0x303196[_0x57f591(0x152)][_0x57f591(0x137)]>0x0)for(var _0x42d30c=0x0;_0x42d30c<_0x303196[_0x57f591(0x152)][_0x57f591(0x137)];_0x42d30c++){const _0x212dca=_0x303196[_0x57f591(0x152)][_0x42d30c];if(_0x212dca['protocol']&&(exports[_0x57f591(0x13e)][_0x57f591(0x136)](_0x212dca['protocol'])||_0x212dca['protocol'][_0x57f591(0x15d)](_0x57f591(0x118))===0x0)){if(!((0x0,validate_1[_0x57f591(0x16b)])(_0x212dca[_0x57f591(0x144)])&&_0x212dca[_0x57f591(0x144)][_0x57f591(0x15d)](_0x303196[_0x57f591(0x142)])<0x0))continue;}_0x303196[_0x57f591(0x152)][_0x57f591(0x11e)](_0x42d30c,0x1),_0x42d30c--;}}exports[_0x5ddbb7(0x13e)]=['bitcoin',_0x5ddbb7(0x163),_0x5ddbb7(0x158),'geo','im',_0x5ddbb7(0x147),_0x5ddbb7(0x14a),_0x5ddbb7(0x14b),_0x5ddbb7(0x169),'matrix',_0x5ddbb7(0x14e),_0x5ddbb7(0x14d),_0x5ddbb7(0x122),_0x5ddbb7(0x11c),_0x5ddbb7(0x13a),_0x5ddbb7(0x143),_0x5ddbb7(0x156),_0x5ddbb7(0x148),'ssh','tel',_0x5ddbb7(0x157),_0x5ddbb7(0x14f),_0x5ddbb7(0x117),_0x5ddbb7(0x13b)];
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x22dc(){const _0x35e558=['4433MtlrXc','configId','checkManifestJson','loadJsonFromNet','__esModule','check\x20manifest.json:\x20ok','1048576tvGDYn','configDisplay','configMainScene','join','8427430OikYWV','com.webspatial.test','public/manifest.webmanifest','54NskXND','8WqQmKS','standalone','configScope','minimal-ui','manifest','bundle-id','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','json','useDefaultManifestJson','PWAGenerator','52vbRcjH','manifest-url','6UjpOaK','35678bIWGVn','../utils/utils','configDeeplink','reset\x20manifest.json:\x20ok','13848hsXJDR','./validate','existsSync','defaultBundleId','log','config','../resource/load','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found','start_url','public/manifest.json','validate','1037232MHkbgU','cwd','1313367TOGNmh','checkId','3729995EyMtjN','generator'];_0x22dc=function(){return _0x35e558;};return _0x22dc();}const _0x50f9ba=_0x1736;(function(_0x52e308,_0x1cd2a8){const _0x537d3f=_0x1736,_0x189a89=_0x52e308();while(!![]){try{const _0x196049=-parseInt(_0x537d3f(0x17d))/0x1*(-parseInt(_0x537d3f(0x180))/0x2)+parseInt(_0x537d3f(0x161))/0x3*(parseInt(_0x537d3f(0x173))/0x4)+parseInt(_0x537d3f(0x163))/0x5*(-parseInt(_0x537d3f(0x17f))/0x6)+-parseInt(_0x537d3f(0x15f))/0x7+parseInt(_0x537d3f(0x16b))/0x8*(-parseInt(_0x537d3f(0x172))/0x9)+parseInt(_0x537d3f(0x16f))/0xa+parseInt(_0x537d3f(0x165))/0xb*(-parseInt(_0x537d3f(0x184))/0xc);if(_0x196049===_0x1cd2a8)break;else _0x189a89['push'](_0x189a89['shift']());}catch(_0x389b09){_0x189a89['push'](_0x189a89['shift']());}}}(_0x22dc,0x7a238));Object['defineProperty'](exports,_0x50f9ba(0x169),{'value':!![]}),exports[_0x50f9ba(0x17c)]=void 0x0;const path_1=require('path'),config_1=require('./config'),load_1=require(_0x50f9ba(0x15a)),validate_1=require(_0x50f9ba(0x155)),fs=require('fs'),utils_1=require(_0x50f9ba(0x181));function _0x1736(_0x5505c2,_0x313ce1){const _0x22dc15=_0x22dc();return _0x1736=function(_0x173652,_0x340cf8){_0x173652=_0x173652-0x155;let _0xd7035=_0x22dc15[_0x173652];return _0xd7035;},_0x1736(_0x5505c2,_0x313ce1);}class PWAGenerator{static async[_0x50f9ba(0x164)](_0x426c07,_0x2a839d=![]){const _0x562780=_0x50f9ba;let _0x193b0d=await this[_0x562780(0x15e)](_0x426c07,_0x2a839d);return console['log'](_0x562780(0x16a)),await this['config'](_0x193b0d,_0x426c07,_0x2a839d),console[_0x562780(0x158)](_0x562780(0x183)),_0x193b0d;}static async[_0x50f9ba(0x15e)](_0x3b217c,_0x22b51a=![]){const _0x54f723=_0x50f9ba;var _0x526b1f,_0x570250;let _0x20905f={},_0xef61ca='',_0x576cfc=![],_0xd25c54=![];if(_0x3b217c[_0x54f723(0x17e)])_0xef61ca=_0x3b217c[_0x54f723(0x17e)],_0x576cfc=!![],_0x20905f=await(0x0,load_1[_0x54f723(0x168)])(_0x3b217c[_0x54f723(0x17e)]);else{_0x3b217c[_0x54f723(0x177)]?_0xef61ca=(0x0,path_1[_0x54f723(0x16e)])(process[_0x54f723(0x160)](),_0x3b217c['manifest']):(_0xef61ca=(0x0,path_1[_0x54f723(0x16e)])(process['cwd'](),_0x54f723(0x15d)),!fs[_0x54f723(0x156)](_0xef61ca)&&(_0xef61ca=(0x0,path_1[_0x54f723(0x16e)])(process[_0x54f723(0x160)](),_0x54f723(0x171))));if(!fs[_0x54f723(0x156)](_0xef61ca)){if(_0x22b51a)_0xd25c54=!![],utils_1['CliLog']['warn'](_0x54f723(0x179));else throw new Error(_0x54f723(0x15b));}_0x20905f=_0xd25c54?this['defaultManifestJson']:await(0x0,load_1['loadJsonFromDisk'])(_0xef61ca),this[_0x54f723(0x17b)]=_0xd25c54;}(0x0,validate_1[_0x54f723(0x167)])(_0x20905f,_0x22b51a);let _0x28e325=(0x0,config_1['configStartUrl'])(_0x20905f,(_0x526b1f=_0x3b217c['base'])!==null&&_0x526b1f!==void 0x0?_0x526b1f:'',_0xef61ca,_0x576cfc);var _0x1efd2f=(0x0,validate_1['checkStartUrl'])(_0x28e325,_0xef61ca,_0x576cfc,_0x22b51a);_0x20905f[_0x54f723(0x15c)]=_0x28e325;if(!_0x22b51a)(0x0,validate_1[_0x54f723(0x162)])(_0x20905f,(_0x570250=_0x3b217c[_0x54f723(0x178)])!==null&&_0x570250!==void 0x0?_0x570250:'');return await(0x0,validate_1['checkIcons'])(_0x20905f,_0xef61ca,_0x22b51a),{'json':_0x20905f,'url':_0xef61ca,'fromNet':_0x1efd2f};}static[_0x50f9ba(0x159)](_0x28c6c0,_0x54c77b,_0x5c0299){const _0x3b998b=_0x50f9ba;var _0x3d7095;let _0x1e5198=(_0x3d7095=_0x54c77b[_0x3b998b(0x178)])!==null&&_0x3d7095!==void 0x0?_0x3d7095:'';_0x5c0299&&!_0x28c6c0[_0x3b998b(0x17a)]['id']&&(_0x1e5198=this[_0x3b998b(0x157)]),(0x0,config_1[_0x3b998b(0x166)])(_0x28c6c0[_0x3b998b(0x17a)],_0x1e5198),(0x0,config_1[_0x3b998b(0x175)])(_0x28c6c0[_0x3b998b(0x17a)]),(0x0,config_1[_0x3b998b(0x16c)])(_0x28c6c0['json']),(0x0,config_1[_0x3b998b(0x182)])(_0x28c6c0['json']),(0x0,config_1[_0x3b998b(0x16d)])(_0x28c6c0['json']);}}exports[_0x50f9ba(0x17c)]=PWAGenerator,PWAGenerator['DisplayModes']=[_0x50f9ba(0x174),_0x50f9ba(0x176)],PWAGenerator[_0x50f9ba(0x157)]=_0x50f9ba(0x170),PWAGenerator['defaultManifestJson']={'name':'WebSpatialTest','display':_0x50f9ba(0x176),'start_url':'/','scope':'/'},PWAGenerator[_0x50f9ba(0x17b)]=![];
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5346c4=_0x5f77;(function(_0x5311bd,_0x1d2c3b){const _0x46357d=_0x5f77,_0x3c1cb9=_0x5311bd();while(!![]){try{const _0x3e7e3f=parseInt(_0x46357d(0x11f))/0x1*(-parseInt(_0x46357d(0x125))/0x2)+-parseInt(_0x46357d(0x11a))/0x3+parseInt(_0x46357d(0x102))/0x4*(parseInt(_0x46357d(0xf6))/0x5)+parseInt(_0x46357d(0x109))/0x6*(-parseInt(_0x46357d(0x10a))/0x7)+parseInt(_0x46357d(0xf8))/0x8+parseInt(_0x46357d(0x10f))/0x9+-parseInt(_0x46357d(0x103))/0xa;if(_0x3e7e3f===_0x1d2c3b)break;else _0x3c1cb9['push'](_0x3c1cb9['shift']());}catch(_0x362429){_0x3c1cb9['push'](_0x3c1cb9['shift']());}}}(_0x26f8,0xd26b2));Object[_0x5346c4(0x100)](exports,_0x5346c4(0x10d),{'value':!![]}),exports[_0x5346c4(0xf9)]=checkManifestJson,exports[_0x5346c4(0x101)]=checkStartUrl,exports[_0x5346c4(0x112)]=checkIcons,exports[_0x5346c4(0x121)]=checkId,exports[_0x5346c4(0x120)]=validateBundleId,exports[_0x5346c4(0x104)]=validateURL;const path_1=require(_0x5346c4(0x117)),CustomError_1=require(_0x5346c4(0x124)),utils_1=require(_0x5346c4(0xfc)),imageHelper_1=require('../resource/imageHelper'),load_1=require(_0x5346c4(0x119)),utils_2=require('../utils/utils');function _0x5f77(_0x4e54a1,_0x53b549){const _0x26f8d7=_0x26f8();return _0x5f77=function(_0x5f77bb,_0x5c7943){_0x5f77bb=_0x5f77bb-0xf4;let _0x270ec4=_0x26f8d7[_0x5f77bb];return _0x270ec4;},_0x5f77(_0x4e54a1,_0x53b549);}function _0x26f8(){const _0x28b3f5=['In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','1243128nqUgSq','checkManifestJson','src','icons','../utils/utils','icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','http','forEach','defineProperty','checkStartUrl','531644wMokVd','11750230AqbiwD','validateURL','getWidth','purpose','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','../../assets/icon-default.png','348FwSboB','16765ZGTCsF','CliLog','split','__esModule','start_url','8935299GFCoTe','join','startsWith','checkIcons','getHeight','loadImageFromDisk','sizes','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','path','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','../resource/load','899205nxeRXk','indexOf','maskable','warn','1024x1024','134681kZtARP','validateBundleId','checkId','name','CustomError','../utils/CustomError','2OsvWKH','length','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','Local\x20manifest\x20cannot\x20package\x20network\x20project','https://','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','loadImageFromNet','test','http://','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','push','55WCiCSp'];_0x26f8=function(){return _0x28b3f5;};return _0x26f8();}function checkManifestJson(_0x4dedd9,_0x2cd5ae=![]){const _0x4c197e=_0x5346c4;var _0xdaff02;const _0x9f925=[];!_0x4dedd9[_0x4c197e(0x122)]&&!_0x4dedd9['short_name']&&!_0x2cd5ae&&_0x9f925['push']({'code':0xbbe,'message':_0x4c197e(0x127),'message_staring_params':{}});!((_0xdaff02=_0x4dedd9[_0x4c197e(0xfb)])===null||_0xdaff02===void 0x0?void 0x0:_0xdaff02['length'])&&!_0x2cd5ae&&_0x9f925[_0x4c197e(0xf5)]({'code':0xbbf,'message':_0x4c197e(0x107),'message_staring_params':{}});!_0x4dedd9[_0x4c197e(0x10e)]&&!_0x2cd5ae&&_0x9f925[_0x4c197e(0xf5)]({'code':0xbc0,'message':_0x4c197e(0xf7),'message_staring_params':{}});if(_0x9f925[_0x4c197e(0x126)])throw new CustomError_1[(_0x4c197e(0x123))](_0x9f925);}function checkStartUrl(_0x312a27,_0x13ba4d,_0x32ed8a,_0x368149=![]){const _0x411759=_0x5346c4;var _0x35cb38=![];if(_0x368149)return _0x312a27[_0x411759(0x111)](_0x411759(0x129))||_0x312a27[_0x411759(0x111)](_0x411759(0x12d));if(_0x32ed8a){if(_0x312a27[_0x411759(0x111)](_0x411759(0x129))){const _0x1d4fc2=new URL(_0x312a27),_0x2575c8=new URL(_0x13ba4d);if(_0x1d4fc2['host']!==_0x2575c8['host'])throw new CustomError_1[(_0x411759(0x123))]({'code':0xfa0,'message':'In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','message_staring_params':{}});}else{if(_0x312a27['startsWith'](_0x411759(0x12d)))throw new CustomError_1[(_0x411759(0x123))]({'code':0xfa0,'message':_0x411759(0x116),'message_staring_params':{}});}}else{if(_0x312a27[_0x411759(0x111)](_0x411759(0x129))||_0x312a27['startsWith'](_0x411759(0x12d)))throw new CustomError_1[(_0x411759(0x123))]({'code':0xfa0,'message':_0x411759(0x128),'message_staring_params':{}});}return _0x35cb38;}async function checkIcons(_0x115018,_0x567841,_0x29dce6=![]){const _0x1640ac=_0x5346c4;var _0x1e33aa,_0x3ec758;if(!((_0x1e33aa=_0x115018[_0x1640ac(0xfb)])===null||_0x1e33aa===void 0x0?void 0x0:_0x1e33aa[_0x1640ac(0x126)])&&_0x29dce6){_0x115018['icons']=[{'src':(0x0,path_1[_0x1640ac(0x110)])(__dirname,_0x1640ac(0x108)),'sizes':'1024x1024','purpose':_0x1640ac(0x11c)}],utils_2[_0x1640ac(0x10b)][_0x1640ac(0x11d)](_0x1640ac(0xfd));return;}const _0x3d8e10=(0x0,utils_1['parseRouter'])(_0x567841);let _0x55b0cd,_0x20e777,_0x44c9f1,_0xfba592=0x0;for(var _0x112223=0x0;_0x112223<_0x115018[_0x1640ac(0xfb)][_0x1640ac(0x126)];_0x112223++){const _0x2074df=_0x115018[_0x1640ac(0xfb)][_0x112223];let _0x569bfc=((_0x3ec758=_0x2074df['purpose'])===null||_0x3ec758===void 0x0?void 0x0:_0x3ec758[_0x1640ac(0x11b)]('maskable'))>=0x0;if(!_0x569bfc)continue;let _0xe59e82=![],_0xa3fd0c=_0x2074df[_0x1640ac(0xfa)],_0x1b5c0b,_0x488523=0x0;!validateURL(_0xa3fd0c)&&(_0xa3fd0c=(0x0,path_1[_0x1640ac(0x110)])(_0x3d8e10,_0xa3fd0c));if(_0x2074df[_0x1640ac(0x115)]){const _0x55a2a6=_0x2074df[_0x1640ac(0x115)][_0x1640ac(0x10c)]('\x20');_0x55a2a6[_0x1640ac(0xff)](_0x5a20e2=>{const _0x18d11e=_0x1640ac;let _0x2af879=_0x5a20e2[_0x18d11e(0x10c)]('x');Number(_0x2af879[0x0])>=0x400&&Number(_0x2af879[0x1])>=0x400&&(_0xe59e82=!![],Number(_0x2af879[0x0])>_0x488523&&(_0x488523=Number(_0x2af879[0x0])));});}else _0x1b5c0b=!_0xa3fd0c[_0x1640ac(0x111)](_0x1640ac(0xfe))?await(0x0,load_1[_0x1640ac(0x114)])(_0xa3fd0c):await(0x0,load_1[_0x1640ac(0x12b)])(_0xa3fd0c),_0x1b5c0b[_0x1640ac(0x105)]()>=0x400&&_0x1b5c0b[_0x1640ac(0x113)]()>=0x400&&(_0xe59e82=!![],_0x1b5c0b[_0x1640ac(0x105)]()>_0x488523&&(_0x488523=_0x1b5c0b[_0x1640ac(0x105)]()));_0xe59e82&&_0x569bfc&&(_0x488523>_0xfba592&&(_0xfba592=_0x488523,_0x55b0cd=_0x1b5c0b,_0x20e777=_0xa3fd0c,_0x44c9f1=_0x2074df[_0x1640ac(0x106)]));}if(_0xfba592===0x0){if(_0x29dce6){_0x115018[_0x1640ac(0xfb)]=[{'src':(0x0,path_1['join'])(__dirname,'../../assets/icon-default.png'),'sizes':_0x1640ac(0x11e),'purpose':'maskable'}],utils_2[_0x1640ac(0x10b)][_0x1640ac(0x11d)](_0x1640ac(0x12a)),utils_2[_0x1640ac(0x10b)]['warn']('icon\x20does\x20not\x20meet\x20the\x20standard,\x20use\x20default\x20icon\x20in\x20run\x20mode');return;}throw new CustomError_1[(_0x1640ac(0x123))]({'code':0xfa0,'message':_0x1640ac(0x12a),'message_staring_params':{}});}else _0x20e777&&(_0x55b0cd=!_0x20e777['startsWith'](_0x1640ac(0xfe))?await(0x0,load_1[_0x1640ac(0x114)])(_0x20e777):await(0x0,load_1[_0x1640ac(0x12b)])(_0x20e777));if(_0x55b0cd&&!imageHelper_1['ImageHelper']['isFullyOpaque'](_0x55b0cd)){if(_0x29dce6){utils_2[_0x1640ac(0x10b)][_0x1640ac(0x11d)](_0x1640ac(0x12a));return;}throw new CustomError_1[(_0x1640ac(0x123))]({'code':0xfa0,'message':_0x1640ac(0x118),'message_staring_params':{}});}_0x115018[_0x1640ac(0xfb)]=[{'src':_0x20e777,'sizes':_0xfba592+'x'+_0xfba592,'purpose':_0x44c9f1}];}function checkId(_0x4cdb5d,_0x43cb19){const _0x2d381c=_0x5346c4;if(_0x43cb19){if(!validateBundleId(_0x43cb19))throw new CustomError_1[(_0x2d381c(0x123))]({'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;}!_0x4cdb5d['id']&&(_0x4cdb5d['id']=_0x4cdb5d[_0x2d381c(0x10e)]);if(!validateURL(_0x4cdb5d['id'])&&!_0x43cb19)throw new CustomError_1[(_0x2d381c(0x123))]({'code':0xfa0,'message':_0x2d381c(0xf4),'message_staring_params':{}});}function validateBundleId(_0x4eaff4){const _0x551765=_0x5346c4,_0x3c6ffc=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x3c6ffc[_0x551765(0x12c)](_0x4eaff4);}function validateURL(_0x48da53){try{return new URL(_0x48da53),!![];}catch(_0x2158ee){return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';const _0x4e20f6=_0x2392;(function(_0x5eee80,_0x179f7e){const _0x324bc4=_0x2392,_0x594d65=_0x5eee80();while(!![]){try{const _0x4048d2=-parseInt(_0x324bc4(0x18c))/0x1*(-parseInt(_0x324bc4(0x18f))/0x2)+parseInt(_0x324bc4(0x182))/0x3+parseInt(_0x324bc4(0x18b))/0x4*(-parseInt(_0x324bc4(0x185))/0x5)+-parseInt(_0x324bc4(0x197))/0x6*(parseInt(_0x324bc4(0x184))/0x7)+-parseInt(_0x324bc4(0x190))/0x8+parseInt(_0x324bc4(0x191))/0x9+-parseInt(_0x324bc4(0x17f))/0xa*(-parseInt(_0x324bc4(0x196))/0xb);if(_0x4048d2===_0x179f7e)break;else _0x594d65['push'](_0x594d65['shift']());}catch(_0x40bd44){_0x594d65['push'](_0x594d65['shift']());}}}(_0x59a8,0x70d97));function _0x2392(_0xcb2c1d,_0x2afd09){const _0x59a8d8=_0x59a8();return _0x2392=function(_0x239216,_0xfc6d67){_0x239216=_0x239216-0x17f;let _0x4531eb=_0x59a8d8[_0x239216];return _0x4531eb;},_0x2392(_0xcb2c1d,_0x2afd09);}Object['defineProperty'](exports,_0x4e20f6(0x194),{'value':!![]}),exports[_0x4e20f6(0x188)]=copyDir,exports[_0x4e20f6(0x193)]=clearDir;function _0x59a8(){const _0x428a95=['isDirectory','4216652TAaoFH','2208GNrGff','10BEfFsF','forEach','statSync','2018490fFtzcv','unlinkSync','12131YiDogk','119445zVzDtt','mkdirSync','readFileSync','copyDir','existsSync','readdirSync','16gytTHr','1zNxqGH','isFile','writeFileSync','532994fHPGnF','6449880RLhvJQ','6111963yFTWek','log','clearDir','__esModule'];_0x59a8=function(){return _0x428a95;};return _0x59a8();}const fs=require('fs');function copyDir(_0x37c266,_0x3b1700){const _0x41cf24=_0x4e20f6,_0x5926c4=fs[_0x41cf24(0x18a)](_0x37c266);_0x5926c4[_0x41cf24(0x180)](_0x17c51c=>{const _0x3850d4=_0x41cf24,_0x2269f7=_0x37c266+'/'+_0x17c51c,_0x40868d=_0x3b1700+'/'+_0x17c51c,_0x41bd04=fs['statSync'](_0x2269f7);if(_0x41bd04[_0x3850d4(0x18d)]())try{fs[_0x3850d4(0x18e)](_0x40868d,fs[_0x3850d4(0x187)](_0x2269f7));}catch(_0x540ac2){console[_0x3850d4(0x192)](_0x540ac2);}else _0x41bd04['isDirectory']()&&(!fs[_0x3850d4(0x189)](_0x40868d)&&fs[_0x3850d4(0x186)](_0x40868d,{'recursive':!![]}),copyDir(_0x2269f7,_0x40868d));});}function clearDir(_0x47097a){const _0x3ec8d3=_0x4e20f6,_0x2d8101=fs[_0x3ec8d3(0x18a)](_0x47097a);_0x2d8101[_0x3ec8d3(0x180)](_0x2fbee2=>{const _0x426d5d=_0x3ec8d3,_0x57a024=_0x47097a+'/'+_0x2fbee2,_0x15eee2=fs[_0x426d5d(0x181)](_0x57a024);if(_0x15eee2[_0x426d5d(0x18d)]())try{fs[_0x426d5d(0x183)](_0x57a024);}catch(_0xfe6062){console['log'](_0xfe6062);}else _0x15eee2[_0x426d5d(0x195)]()&&clearDir(_0x57a024);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xaaff49=_0x9632;function _0x4051(){const _0x288280=['3288324uTrqEW','svg2img','bitmap','defineProperty','3429920MOrZnj','getWidth','__esModule','1745160HhfACE','createImg','jimp','ImageHelper','getHeight','isFullyOpaque','webp2PngBuffer','data','1861644LRGmiC','@resvg/resvg-js','sharp','width','toFormat','42166MsQreG','2360721GBGgCl','asPng','14XlsdeU','2uCgwNY','Resvg','png','16286490ULZqVu'];_0x4051=function(){return _0x288280;};return _0x4051();}(function(_0xa1c1fb,_0x28d130){const _0x494928=_0x9632,_0x4f808e=_0xa1c1fb();while(!![]){try{const _0x16e2d5=parseInt(_0x494928(0x184))/0x1+-parseInt(_0x494928(0x16c))/0x2*(parseInt(_0x494928(0x185))/0x3)+parseInt(_0x494928(0x170))/0x4+-parseInt(_0x494928(0x174))/0x5+-parseInt(_0x494928(0x17f))/0x6+-parseInt(_0x494928(0x187))/0x7*(parseInt(_0x494928(0x177))/0x8)+parseInt(_0x494928(0x16f))/0x9;if(_0x16e2d5===_0x28d130)break;else _0x4f808e['push'](_0x4f808e['shift']());}catch(_0x3ef674){_0x4f808e['push'](_0x4f808e['shift']());}}}(_0x4051,0x6ef02));function _0x9632(_0x1d103f,_0x422567){const _0x40512d=_0x4051();return _0x9632=function(_0x96325f,_0x53d8ad){_0x96325f=_0x96325f-0x16c;let _0x4ace38=_0x40512d[_0x96325f];return _0x4ace38;},_0x9632(_0x1d103f,_0x422567);}Object[_0xaaff49(0x173)](exports,_0xaaff49(0x176),{'value':!![]}),exports['ImageHelper']=void 0x0;const Jimp=require(_0xaaff49(0x179)),sharp=require(_0xaaff49(0x181)),resvg_js_1=require(_0xaaff49(0x180));class ImageHelper{static[_0xaaff49(0x178)](_0x49b7bd){return new Jimp(_0x49b7bd,_0x49b7bd,0x0);}static async[_0xaaff49(0x17d)](_0x4fecba){const _0x5e7190=_0xaaff49;return await sharp(_0x4fecba)[_0x5e7190(0x183)](_0x5e7190(0x16e))['toBuffer']();}static async[_0xaaff49(0x171)](_0x42b25a){const _0x46c661=_0xaaff49,_0x2f5f9f={'fitTo':{'mode':_0x46c661(0x182),'value':0x400}},_0x2e05e9=new resvg_js_1[(_0x46c661(0x16d))](_0x42b25a,_0x2f5f9f),_0x3cce55=_0x2e05e9['render'](),_0x596c2e=_0x3cce55[_0x46c661(0x186)]();return _0x596c2e;}static[_0xaaff49(0x17c)](_0x19b990){const _0x1cb519=_0xaaff49,_0x4f2380=_0x19b990[_0x1cb519(0x175)]()*_0x19b990[_0x1cb519(0x17b)]();for(var _0x1b2543=0x0;_0x1b2543<_0x4f2380;_0x1b2543++){const _0x16b233=_0x1b2543*0x4+0x3;if(_0x19b990[_0x1cb519(0x172)][_0x1cb519(0x17e)][_0x16b233]<0xff)return![];}return!![];}}exports[_0xaaff49(0x17a)]=ImageHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4d263e=_0x54ab;function _0x54ab(_0x29cc91,_0x2bb464){const _0xe703f3=_0xe703();return _0x54ab=function(_0x54ab81,_0x5077df){_0x54ab81=_0x54ab81-0x98;let _0x5340e0=_0xe703f3[_0x54ab81];return _0x5340e0;},_0x54ab(_0x29cc91,_0x2bb464);}(function(_0x1884c5,_0xd4716d){const _0x3f49bd=_0x54ab,_0x2bcb0d=_0x1884c5();while(!![]){try{const _0x49315c=-parseInt(_0x3f49bd(0xb9))/0x1*(parseInt(_0x3f49bd(0x9c))/0x2)+parseInt(_0x3f49bd(0xae))/0x3*(parseInt(_0x3f49bd(0xad))/0x4)+parseInt(_0x3f49bd(0xa0))/0x5+-parseInt(_0x3f49bd(0xc9))/0x6*(parseInt(_0x3f49bd(0xaf))/0x7)+parseInt(_0x3f49bd(0xa2))/0x8*(parseInt(_0x3f49bd(0xba))/0x9)+-parseInt(_0x3f49bd(0xaa))/0xa+parseInt(_0x3f49bd(0xc4))/0xb;if(_0x49315c===_0xd4716d)break;else _0x2bcb0d['push'](_0x2bcb0d['shift']());}catch(_0x19b824){_0x2bcb0d['push'](_0x2bcb0d['shift']());}}}(_0xe703,0x79b04));Object[_0x4d263e(0xbb)](exports,_0x4d263e(0xc2),{'value':!![]}),exports[_0x4d263e(0xa5)]=exports['MIDDLE_APPICON_DIRECTORY']=exports[_0x4d263e(0xc8)]=exports[_0x4d263e(0x9e)]=exports[_0x4d263e(0xb4)]=exports['PROJECT_TEST_DIRECTORY']=exports['PROJECT_EXPORT_DIRECTORY']=exports[_0x4d263e(0xca)]=exports[_0x4d263e(0xa6)]=void 0x0;const fs=require('fs'),path_1=require('path'),file_1=require(_0x4d263e(0xac)),load_1=require(_0x4d263e(0xa9)),child_process_1=require(_0x4d263e(0xb8));function _0xe703(){const _0x21d4b2=['resize','ASSET_DIRECTORY','checkPlatformPath','3646010aWlYJd','generateIcon','26776CaCJge','copyDir','json','ResourceManager','PROJECT_DIRECTORY','icons','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','./load','8719480RLrDfR','loadImageFromNet','./file','428MZViBA','8082gdhFXM','36071GxorMt','../../../','moveProjectFrom','web-spatial/Assets.xcassets',',\x20now\x20WebSpatial\x20only\x20support\x20','WEB_PROJECT_DIRECTORY','PROJECT_TEST_DIRECTORY','PROJECT_EXPORT_DIRECTORY','existsSync','child_process','97511gpLUtn','1377SPwrqd','defineProperty','loadImageFromDisk','not\x20support\x20platform\x20','cwd','includes','rm\x20-rf\x20','execSync','__esModule','web-spatial/static-web','15947382FjTZyf','join','mkdirSync','visionos','BACK_APPICON_DIRECTORY','738SQWYhT','PROJECT_BUILD_DIRECTORY','log','startsWith','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','./build','cd\x20','node_modules/@webspatial/platform-','platform-','20iYjkDR'];_0xe703=function(){return _0x21d4b2;};return _0xe703();}exports['PROJECT_DIRECTORY']='',exports[_0x4d263e(0xca)]='',exports['PROJECT_EXPORT_DIRECTORY']='',exports[_0x4d263e(0xb5)]='',exports[_0x4d263e(0xb4)]=_0x4d263e(0xc3),exports[_0x4d263e(0x9e)]=_0x4d263e(0xb2),exports[_0x4d263e(0xc8)]=exports[_0x4d263e(0x9e)]+_0x4d263e(0xa8),exports['MIDDLE_APPICON_DIRECTORY']=exports[_0x4d263e(0x9e)]+'/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset';const supportPlatform=[_0x4d263e(0xc7)];class ResourceManager{static async[_0x4d263e(0xb1)](_0x4e3c16){const _0x25c98d=_0x4d263e,_0x1b3cc0=(0x0,path_1[_0x25c98d(0xc5)])(process[_0x25c98d(0xbe)](),_0x4e3c16),_0x2c2cab=(0x0,path_1[_0x25c98d(0xc5)])(exports[_0x25c98d(0xa6)],exports['WEB_PROJECT_DIRECTORY']);!fs[_0x25c98d(0xb7)](_0x2c2cab)?fs[_0x25c98d(0xc6)](_0x2c2cab,{'recursive':!![]}):(0x0,file_1['clearDir'])(_0x2c2cab);try{(0x0,file_1[_0x25c98d(0xa3)])(_0x1b3cc0,_0x2c2cab);}catch(_0x5b2739){console[_0x25c98d(0xcb)](_0x5b2739);}}static async[_0x4d263e(0xa1)](_0x134b36){const _0x130ec5=_0x4d263e,_0x1f17d1=_0x134b36[_0x130ec5(0xa4)],_0x3d12ff=_0x1f17d1[_0x130ec5(0xa7)][0x0]['src'],_0x3a95d1=!_0x3d12ff[_0x130ec5(0xcc)]('http')?await(0x0,load_1[_0x130ec5(0xbc)])(_0x3d12ff):await(0x0,load_1[_0x130ec5(0xab)])(_0x3d12ff);return _0x3a95d1[_0x130ec5(0x9d)](0x400,0x400),_0x3a95d1;}static[_0x4d263e(0x9f)](_0x283074){const _0x53afcb=_0x4d263e,_0x901326=_0x283074!==null&&_0x283074!==void 0x0?_0x283074:supportPlatform[0x0];if(!supportPlatform[_0x53afcb(0xbf)](_0x901326))throw new Error(_0x53afcb(0xbd)+_0x901326+_0x53afcb(0xb3)+supportPlatform['join'](','));let _0x3cb872=(0x0,path_1[_0x53afcb(0xc5)])(process['cwd'](),_0x53afcb(0x9a)+_0x901326);!fs['existsSync'](_0x3cb872)&&(_0x3cb872=(0x0,path_1[_0x53afcb(0xc5)])(__dirname,'../../../node_modules/@webspatial/platform-'+_0x901326));const _0x5071c8=fs[_0x53afcb(0xb7)](_0x3cb872);!_0x5071c8&&(0x0,child_process_1['execSync'])(_0x53afcb(0x99)+(0x0,path_1['join'])(__dirname,_0x53afcb(0xb0))+_0x53afcb(0xcd)+_0x901326);let _0x359211=(0x0,path_1[_0x53afcb(0xc5)])(__dirname,'../../temp'),_0x2bae05=(0x0,path_1['join'])(_0x359211,_0x53afcb(0x9b)+_0x901326);fs[_0x53afcb(0xb7)](_0x359211)&&(0x0,child_process_1[_0x53afcb(0xc1)])(_0x53afcb(0xc0)+_0x359211),fs[_0x53afcb(0xc6)](_0x359211),fs[_0x53afcb(0xc6)](_0x2bae05),(0x0,file_1['copyDir'])(_0x3cb872,_0x2bae05),exports['PROJECT_DIRECTORY']=_0x2bae05,exports[_0x53afcb(0xca)]=(0x0,path_1[_0x53afcb(0xc5)])(exports[_0x53afcb(0xa6)],_0x53afcb(0x98)),exports[_0x53afcb(0xb6)]=(0x0,path_1[_0x53afcb(0xc5)])(exports[_0x53afcb(0xa6)],'./export'),exports[_0x53afcb(0xb5)]=(0x0,path_1[_0x53afcb(0xc5)])(exports[_0x53afcb(0xca)],'./test');}}exports[_0x4d263e(0xa5)]=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x412202=_0x2a20;(function(_0x1d5120,_0x242393){const _0x43d2c2=_0x2a20,_0x4450f5=_0x1d5120();while(!![]){try{const _0x350e05=-parseInt(_0x43d2c2(0x11e))/0x1+-parseInt(_0x43d2c2(0x122))/0x2+-parseInt(_0x43d2c2(0x131))/0x3*(-parseInt(_0x43d2c2(0x121))/0x4)+-parseInt(_0x43d2c2(0x130))/0x5+parseInt(_0x43d2c2(0x12b))/0x6*(-parseInt(_0x43d2c2(0x11f))/0x7)+parseInt(_0x43d2c2(0x128))/0x8+parseInt(_0x43d2c2(0x11b))/0x9;if(_0x350e05===_0x242393)break;else _0x4450f5['push'](_0x4450f5['shift']());}catch(_0x392f8e){_0x4450f5['push'](_0x4450f5['shift']());}}}(_0x595c,0xe8bb9));Object[_0x412202(0x12d)](exports,_0x412202(0x10f),{'value':!![]}),exports[_0x412202(0x125)]=loadJsonFromNet,exports[_0x412202(0x117)]=loadJsonFromDisk,exports[_0x412202(0x10a)]=loadImageFromNet,exports[_0x412202(0x124)]=loadImageFromDisk,exports[_0x412202(0x127)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require('../utils/FetchUtils-1'),CustomError_1=require('../utils/CustomError'),Jimp=require(_0x412202(0x123)),imageHelper_1=require(_0x412202(0x120));function _0x2a20(_0x52aa64,_0x381d2c){const _0x595ced=_0x595c();return _0x2a20=function(_0x2a2014,_0x4f51a7){_0x2a2014=_0x2a2014-0x10a;let _0x5ceec3=_0x595ced[_0x2a2014];return _0x5ceec3;},_0x2a20(_0x52aa64,_0x381d2c);}async function loadJsonFromNet(_0xe33a4){const _0x280977=_0x412202,_0x169b62=await FetchUtils_1_1['fetchUtils'][_0x280977(0x113)](_0xe33a4,{'encoding':_0x280977(0x132)});if(_0x169b62[_0x280977(0x111)]!==0xc8)throw new CustomError_1[(_0x280977(0x11a))]({'code':0xbbc,'message':'Failed\x20to\x20download\x20Web\x20Manifest\x20'+_0xe33a4+'.'+(_0x280977(0x10e)+_0x169b62[_0x280977(0x111)]+_0x280977(0x12a)),'message_staring_params':{'web_manifest_url':_0xe33a4,'status':_0x169b62['status']}});try{let _0xefdf8;return _0x169b62[_0x280977(0x114)]?_0xefdf8=await _0x169b62[_0x280977(0x114)]():[_0x280977(0x10d),'deflate','br'][_0x280977(0x118)](_0x169b62[_0x280977(0x11c)][_0x280977(0x10c)])?_0xefdf8=FetchUtils_1_1[_0x280977(0x13a)]['decompressResponseBuffer'](Buffer[_0x280977(0x137)](_0x169b62[_0x280977(0x135)],_0x280977(0x132)),_0x169b62[_0x280977(0x11c)][_0x280977(0x10c)])['toString']():_0xefdf8=Buffer[_0x280977(0x137)](_0x169b62['data'],'binary')['toString'](),JSON[_0x280977(0x134)](_0xefdf8[_0x280977(0x12f)]());}catch(_0x3a0641){throw new CustomError_1['CustomError']({'code':0xbbd,'message':_0x280977(0x12e),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x5b4445){const _0x384d52=_0x412202,_0x18aac7=await loadFileString(_0x5b4445[_0x384d52(0x126)]());return JSON[_0x384d52(0x134)](_0x18aac7);}async function loadImageFromNet(_0x5915c7){const _0x34e16e=_0x412202,_0x5dcc2b=await FetchUtils_1_1[_0x34e16e(0x13a)][_0x34e16e(0x113)](_0x5915c7,{'encoding':_0x34e16e(0x132)});if(_0x5dcc2b[_0x34e16e(0x111)]!==0xc8)throw new CustomError_1[(_0x34e16e(0x11a))]({'code':0x7d2,'message':_0x34e16e(0x115)+_0x5dcc2b['status'],'message_staring_params':{'icon_url':_0x5915c7,'status':_0x5dcc2b[_0x34e16e(0x111)]}});const _0x3880f7=_0x5dcc2b[_0x34e16e(0x11c)]['get']?_0x5dcc2b[_0x34e16e(0x11c)][_0x34e16e(0x11d)](_0x34e16e(0x110)):_0x5dcc2b['headers']['content-type'];if(!(_0x3880f7===null||_0x3880f7===void 0x0?void 0x0:_0x3880f7[_0x34e16e(0x119)](_0x34e16e(0x139))))throw new CustomError_1[(_0x34e16e(0x11a))]({'code':0x7d3,'message':_0x34e16e(0x129)+(_0x34e16e(0x138)+_0x3880f7+'\x22'),'message_staring_params':{'icon_url':_0x5915c7,'contentType':_0x3880f7}});let _0x4ceeb1;_0x5dcc2b['arrayBuffer']?_0x4ceeb1=await _0x5dcc2b['arrayBuffer']():[_0x34e16e(0x10d),_0x34e16e(0x10b),'br'][_0x34e16e(0x118)](_0x5dcc2b[_0x34e16e(0x11c)][_0x34e16e(0x10c)])?_0x4ceeb1=FetchUtils_1_1[_0x34e16e(0x13a)][_0x34e16e(0x12c)](Buffer[_0x34e16e(0x137)](_0x5dcc2b[_0x34e16e(0x135)],_0x34e16e(0x132)),_0x5dcc2b[_0x34e16e(0x11c)][_0x34e16e(0x10c)]):_0x4ceeb1=Buffer[_0x34e16e(0x137)](_0x5dcc2b[_0x34e16e(0x135)],'binary');if(_0x3880f7[_0x34e16e(0x119)](_0x34e16e(0x133))){const _0x45ba99=new TextDecoder();try{_0x4ceeb1=await imageHelper_1[_0x34e16e(0x112)]['svg2img'](_0x45ba99['decode'](_0x4ceeb1));}catch(_0x2fa5b9){throw new CustomError_1['CustomError']({'code':0x7d4,'message':'Problem\x20reading\x20'+_0x5915c7+':\x20'+_0x2fa5b9,'message_staring_params':{'icon_url':_0x5915c7,'error':_0x2fa5b9}});}}return _0x3880f7[_0x34e16e(0x119)](_0x34e16e(0x116))&&(_0x4ceeb1=await imageHelper_1['ImageHelper']['webp2PngBuffer'](_0x4ceeb1)),await Jimp[_0x34e16e(0x136)](Buffer[_0x34e16e(0x137)](_0x4ceeb1));}function _0x595c(){const _0x4b29fc=['loadImageFromDisk','loadJsonFromNet','toString','loadFileString','1900624LlZzZN','Received\x20icon\x20with\x20invalid\x20Content-Type.',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','12XpDace','decompressResponseBuffer','defineProperty','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','trim','1925080fdftlV','6rWZElU','binary','image/svg','parse','data','read','from','\x20Responded\x20with\x20Content-Type\x20\x22','image/','fetchUtils','loadImageFromNet','deflate','content-encoding','gzip','The\x20response\x20status\x20is\x20','__esModule','content-type','status','ImageHelper','fetch','text','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','image/webp','loadJsonFromDisk','includes','startsWith','CustomError','30371058dOVEKD','headers','get','633421wflrlG','5036591zowQhe','./imageHelper','2272476RSfbmK','2675284KKVZUr','jimp'];_0x595c=function(){return _0x4b29fc;};return _0x595c();}async function loadImageFromDisk(_0x1362b5){const _0x15ef22=_0x412202;return await Jimp[_0x15ef22(0x136)](_0x1362b5);}async function loadFileString(_0x4c44cb){const _0x28d6ea=_0x412202;let _0x4e24d4=await fs['promises']['readFile'](_0x4c44cb['toString']());return _0x4e24d4[_0x28d6ea(0x126)]();}
|
package/dist/lib/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x1a61(_0x1bff02,_0x34859b){var _0x56b672=_0x56b6();return _0x1a61=function(_0x1a6166,_0x5e5502){_0x1a6166=_0x1a6166-0x116;var _0x140e5c=_0x56b672[_0x1a6166];return _0x140e5c;},_0x1a61(_0x1bff02,_0x34859b);}var _0x5afae7=_0x1a61;(function(_0x5b0a7e,_0x43f965){var _0xd8ad69=_0x1a61,_0x493ffa=_0x5b0a7e();while(!![]){try{var _0x3727c2=parseInt(_0xd8ad69(0x117))/0x1*(parseInt(_0xd8ad69(0x120))/0x2)+parseInt(_0xd8ad69(0x11e))/0x3*(-parseInt(_0xd8ad69(0x11c))/0x4)+-parseInt(_0xd8ad69(0x119))/0x5+parseInt(_0xd8ad69(0x11f))/0x6+parseInt(_0xd8ad69(0x118))/0x7*(-parseInt(_0xd8ad69(0x11d))/0x8)+-parseInt(_0xd8ad69(0x11b))/0x9*(-parseInt(_0xd8ad69(0x121))/0xa)+-parseInt(_0xd8ad69(0x122))/0xb;if(_0x3727c2===_0x43f965)break;else _0x493ffa['push'](_0x493ffa['shift']());}catch(_0x3dd899){_0x493ffa['push'](_0x493ffa['shift']());}}}(_0x56b6,0xb3852));Object[_0x5afae7(0x11a)](exports,_0x5afae7(0x116),{'value':!![]});function _0x56b6(){var _0x1545a7=['19467195rSPcAE','__esModule','646815TtDlhc','187558HLMdvW','310690EUxXRh','defineProperty','12013623UhYnXt','339548jHKGpE','136sXYVXg','9HXZlzj','7774164jAdtnx','2CBTutB','10ZjtcxM'];_0x56b6=function(){return _0x1545a7;};return _0x56b6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x465331=_0x1316;(function(_0x5e4a2f,_0x21c326){var _0x22719f=_0x1316,_0x4b05af=_0x5e4a2f();while(!![]){try{var _0x486c55=-parseInt(_0x22719f(0x72))/0x1*(parseInt(_0x22719f(0x7a))/0x2)+-parseInt(_0x22719f(0x75))/0x3+parseInt(_0x22719f(0x71))/0x4+-parseInt(_0x22719f(0x74))/0x5*(-parseInt(_0x22719f(0x7b))/0x6)+-parseInt(_0x22719f(0x73))/0x7*(-parseInt(_0x22719f(0x7e))/0x8)+parseInt(_0x22719f(0x79))/0x9+-parseInt(_0x22719f(0x76))/0xa*(parseInt(_0x22719f(0x77))/0xb);if(_0x486c55===_0x21c326)break;else _0x4b05af['push'](_0x4b05af['shift']());}catch(_0x418129){_0x4b05af['push'](_0x4b05af['shift']());}}}(_0x1112,0x19931));function _0x1316(_0x317a1a,_0x52ea75){var _0x11127a=_0x1112();return _0x1316=function(_0x131687,_0x2f80a3){_0x131687=_0x131687-0x71;var _0xbbb44d=_0x11127a[_0x131687];return _0xbbb44d;},_0x1316(_0x317a1a,_0x52ea75);}Object[_0x465331(0x7c)](exports,'__esModule',{'value':!![]}),exports['CustomError']=void 0x0;class CustomError extends Error{constructor(_0x34b546,_0x42073a){var _0x268920=_0x465331;super(JSON['stringify'](_0x34b546)),this[_0x268920(0x78)]=_0x34b546,this[_0x268920(0x7f)]=_0x42073a||_0x268920(0x7d);}}function _0x1112(){var _0x408bfc=['10cEFTdw','66wPdYWZ','defineProperty','info','17160okCXrg','type','367468xIkxuR','34419ojBaCe','532aEUSPO','19385SMlJKm','98826OPdvTU','10NFtWVu','1214444fVDSnf','customMessage','1103940lNtsGj'];_0x1112=function(){return _0x408bfc;};return _0x1112();}exports['CustomError']=CustomError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0xf659(_0x177ebc,_0x57be84){const _0x2d4d51=_0x2d4d();return _0xf659=function(_0xf6592a,_0x45a5b2){_0xf6592a=_0xf6592a-0xda;let _0x586768=_0x2d4d51[_0xf6592a];return _0x586768;},_0xf659(_0x177ebc,_0x57be84);}const _0x1e181f=_0xf659;(function(_0x46ad35,_0x2f536d){const _0x3986ce=_0xf659,_0x2697fa=_0x46ad35();while(!![]){try{const _0x25e875=parseInt(_0x3986ce(0xda))/0x1*(parseInt(_0x3986ce(0xee))/0x2)+parseInt(_0x3986ce(0xe3))/0x3*(-parseInt(_0x3986ce(0xea))/0x4)+-parseInt(_0x3986ce(0xed))/0x5*(parseInt(_0x3986ce(0xe7))/0x6)+parseInt(_0x3986ce(0xe2))/0x7*(parseInt(_0x3986ce(0xe9))/0x8)+-parseInt(_0x3986ce(0xdf))/0x9+-parseInt(_0x3986ce(0xec))/0xa*(parseInt(_0x3986ce(0xdc))/0xb)+parseInt(_0x3986ce(0xe8))/0xc*(parseInt(_0x3986ce(0xe6))/0xd);if(_0x25e875===_0x2f536d)break;else _0x2697fa['push'](_0x2697fa['shift']());}catch(_0x445449){_0x2697fa['push'](_0x2697fa['shift']());}}}(_0x2d4d,0x9eaa3));Object[_0x1e181f(0xe0)](exports,_0x1e181f(0xe5),{'value':!![]}),exports[_0x1e181f(0xdd)]=void 0x0;class FetchUtils{constructor(){const _0x3544e1=_0x1e181f;this['fetchEngine']=null,this['fetch']=null,this[_0x3544e1(0xef)]=null,this['decompressResponseBuffer']=null;}[_0x1e181f(0xe1)](_0x19c3a6){this['fetchEngine']=_0x19c3a6;}[_0x1e181f(0xf0)](_0x48390d){const _0x1d78ba=_0x1e181f;this[_0x1d78ba(0xdb)]=_0x48390d;}[_0x1e181f(0xeb)](_0x265be1){this['downloadFile']=_0x265be1;}[_0x1e181f(0xe4)](_0x5d6cbb){const _0x393a8e=_0x1e181f;this[_0x393a8e(0xde)]=_0x5d6cbb;}}const fetchUtils=new FetchUtils();exports[_0x1e181f(0xdd)]=fetchUtils;function _0x2d4d(){const _0x1d5f12=['__esModule','127309TXlNIx','12xQEAFE','2220duOOgk','40ebOCho','132SqCVLf','setDownloadFile','842360LHbTBd','1608645vAOJfS','2JXPwda','downloadFile','setFetch','714874zFjVYB','fetch','11ZBVNSu','fetchUtils','decompressResponseBuffer','7517484gwQsvk','defineProperty','setFetchEngine','825335BUbWxq','82113eTjQFJ','setDecompressResponseBuffer'];_0x2d4d=function(){return _0x1d5f12;};return _0x2d4d();}
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x266923=_0x3eaa;(function(_0x8c73e5,_0x428b31){var _0x17bc62=_0x3eaa,_0x32c5ef=_0x8c73e5();while(!![]){try{var _0x169f80=-parseInt(_0x17bc62(0x149))/0x1+-parseInt(_0x17bc62(0x14c))/0x2*(-parseInt(_0x17bc62(0x165))/0x3)+parseInt(_0x17bc62(0x15d))/0x4*(parseInt(_0x17bc62(0x167))/0x5)+parseInt(_0x17bc62(0x14f))/0x6+parseInt(_0x17bc62(0x154))/0x7+parseInt(_0x17bc62(0x157))/0x8+parseInt(_0x17bc62(0x159))/0x9;if(_0x169f80===_0x428b31)break;else _0x32c5ef['push'](_0x32c5ef['shift']());}catch(_0x3c7618){_0x32c5ef['push'](_0x32c5ef['shift']());}}}(_0x595f,0xc5c0b));function _0x595f(){var _0x5f212b=['log','430884rulcmS','__esModule','\x1b[0m','setVerbose','prefix','inverse','ERROR\x20','red','3PzcpmL','output','5VlwsCB','warn','700397qMUTRa','\x1b[36m','verbose','221474bABtnl','newLog','info','4357140pjKhlO','tag','WARNING\x20','ConsoleLog','yellow','1641276IjxxjQ','defineProperty','dim','289200hzIjqb','error','2656134sMObYy','concat','\x1b[31m'];_0x595f=function(){return _0x5f212b;};return _0x595f();}function _0x3eaa(_0x5e5ce0,_0x2bc479){var _0x595f23=_0x595f();return _0x3eaa=function(_0x3eaa9c,_0x4fc847){_0x3eaa9c=_0x3eaa9c-0x148;var _0xfa59bc=_0x595f23[_0x3eaa9c];return _0xfa59bc;},_0x3eaa(_0x5e5ce0,_0x2bc479);}Object[_0x266923(0x155)](exports,_0x266923(0x15e),{'value':!![]}),exports[_0x266923(0x152)]=void 0x0;class ConsoleLog{constructor(_0x4b1ef3='',_0x22be61=![],_0x3ee38c=console){var _0x2097ed=_0x266923;this[_0x2097ed(0x150)]=_0x4b1ef3,this['verbose']=_0x22be61,this['prefix']=this[_0x2097ed(0x162)](_0x4b1ef3),this[_0x2097ed(0x166)]=_0x3ee38c;}['debug'](_0x1346dd,..._0x382156){var _0x332823=_0x266923;if(!this[_0x332823(0x14b)])return;this[_0x332823(0x15c)](this[_0x332823(0x166)][_0x332823(0x15c)],this[_0x332823(0x156)](_0x1346dd),..._0x382156);}[_0x266923(0x14e)](_0xa0473c,..._0x132244){var _0x4c7d81=_0x266923;this['log'](this[_0x4c7d81(0x166)][_0x4c7d81(0x15c)],_0xa0473c,..._0x132244);}[_0x266923(0x148)](_0x11da2a,..._0x44c687){var _0x3b6b32=_0x266923;this['log'](this[_0x3b6b32(0x166)][_0x3b6b32(0x148)],this['yellow'](_0x3b6b32(0x151)+_0x11da2a),..._0x44c687);}[_0x266923(0x158)](_0x325bc5,..._0x101834){var _0x3768ac=_0x266923;this[_0x3768ac(0x166)]['error']('\x0a'),this['log'](this[_0x3768ac(0x166)][_0x3768ac(0x158)],this['red'](_0x3768ac(0x163)+_0x325bc5),..._0x101834),this[_0x3768ac(0x166)][_0x3768ac(0x158)]('\x0a');}[_0x266923(0x160)](_0x2084ce){var _0x57b4bf=_0x266923;this[_0x57b4bf(0x14b)]=_0x2084ce;}[_0x266923(0x14d)](_0xaf5348){var _0x57e7e0=_0x266923;return this[_0x57e7e0(0x150)]&&(_0xaf5348=this[_0x57e7e0(0x150)]+'\x20'+_0xaf5348),new ConsoleLog(_0xaf5348,this[_0x57e7e0(0x14b)],this['output']);}[_0x266923(0x15c)](_0x2ebedb,_0x308117,..._0x34452f){var _0x5814c4=_0x266923;this[_0x5814c4(0x161)]&&(_0x308117=this[_0x5814c4(0x161)]+'\x20'+_0x308117),_0x34452f?_0x2ebedb(...[_0x308117][_0x5814c4(0x15a)](_0x34452f)):_0x2ebedb(_0x308117);}[_0x266923(0x162)](_0x47ca6f){return'\x1b[7m'+_0x47ca6f+'\x1b[0m';}['dim'](_0x8c97c9){var _0x510fe0=_0x266923;return _0x510fe0(0x14a)+_0x8c97c9+'\x1b[0m';}[_0x266923(0x153)](_0x433cbe){return'\x1b[33m'+_0x433cbe+'\x1b[0m';}[_0x266923(0x164)](_0x5bb7d8){var _0x502f35=_0x266923;return _0x502f35(0x15b)+_0x5bb7d8+_0x502f35(0x15f);}}exports[_0x266923(0x152)]=ConsoleLog;
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4a2536=_0xcc7f;(function(_0x19b3e5,_0x4eb197){const _0x2ed957=_0xcc7f,_0x50b293=_0x19b3e5();while(!![]){try{const _0x449019=-parseInt(_0x2ed957(0x1c9))/0x1*(parseInt(_0x2ed957(0x1b4))/0x2)+parseInt(_0x2ed957(0x1c1))/0x3+parseInt(_0x2ed957(0x1b2))/0x4*(-parseInt(_0x2ed957(0x1bb))/0x5)+parseInt(_0x2ed957(0x1b9))/0x6+parseInt(_0x2ed957(0x1ce))/0x7+parseInt(_0x2ed957(0x1b5))/0x8*(-parseInt(_0x2ed957(0x1b0))/0x9)+-parseInt(_0x2ed957(0x1b8))/0xa*(parseInt(_0x2ed957(0x1c4))/0xb);if(_0x449019===_0x4eb197)break;else _0x50b293['push'](_0x50b293['shift']());}catch(_0x39cdb0){_0x50b293['push'](_0x50b293['shift']());}}}(_0x3faa,0x7edbf));Object['defineProperty'](exports,_0x4a2536(0x1bc),{'value':!![]}),exports[_0x4a2536(0x1be)]=fetch,exports['downloadFile']=downloadFile,exports[_0x4a2536(0x1cc)]=decompressResponseBuffer;function _0x3faa(){const _0x1fc2cf=['Z_SYNC_FLUSH','388998kruSKL','Content-Length','186376aChSkJ','unzipSync','6NtlJmX','32qPrRlu','constants','length','6400jQwwls','4375116DLvWlU','finish','20ZTqbsu','__esModule','createWriteStream','fetch','Mozilla/5.0\x20(X11;\x20Linux\x20x86_64;\x20PICO\x204\x20OS5.5.0\x20like\x20Quest)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20PicoBrowser/3.3.24\x20Chrome/105.0.5195.68\x20VR\x20Safari/537.36\x20\x20OculusBrowser/7.0','test','2771625uhXAOa','headers','follow','14069kdXsKa','error','get','brotliDecompressSync','data','247519hmbKWW','pipe','fetch-h2','decompressResponseBuffer','readable','5508545tpeaLs'];_0x3faa=function(){return _0x1fc2cf;};return _0x3faa();}const fetch_h2_1=require(_0x4a2536(0x1cb)),fs=require('fs'),zlib=require('zlib'),userAgent=_0x4a2536(0x1bf),fetchh2Ctx=(0x0,fetch_h2_1['context'])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx['fetch'];async function fetch(_0x5b6294,_0x1ea635){const _0x406741=_0x4a2536;return await fetchh2(_0x5b6294,_0x1ea635?{'redirect':_0x406741(0x1c3),..._0x1ea635}:{'redirect':_0x406741(0x1c3)});}async function downloadFile(_0x34f418,_0x50c06a,_0x1bd227){const _0x42fdfa=_0x4a2536;let _0x409aa0,_0x291725;_0x409aa0=await fetchh2(_0x34f418,{'redirect':_0x42fdfa(0x1c3)}),_0x291725=await _0x409aa0[_0x42fdfa(0x1cd)]();const _0x1ec1a7=_0x409aa0[_0x42fdfa(0x1c2)][_0x42fdfa(0x1c6)](_0x42fdfa(0x1b1)),_0x1c3d98=_0x1ec1a7?parseInt(_0x1ec1a7):-0x1,_0x4e1350=fs[_0x42fdfa(0x1bd)](_0x50c06a);let _0x312916=0x0;await new Promise((_0x223602,_0x4f25ae)=>{const _0x190c94=_0x42fdfa;_0x291725[_0x190c94(0x1ca)](_0x4e1350),_0x1bd227&&_0x291725['on'](_0x190c94(0x1c8),_0x275ab8=>{const _0x5bbe97=_0x190c94;_0x312916=_0x312916+_0x275ab8[_0x5bbe97(0x1b7)],_0x1bd227(_0x312916,_0x1c3d98);}),_0x291725['on'](_0x190c94(0x1c5),_0xae8774=>{_0x4f25ae(_0xae8774);}),_0x4e1350['on'](_0x190c94(0x1ba),()=>{_0x223602();});});}function _0xcc7f(_0x1d30fd,_0x13c78b){const _0x3faa26=_0x3faa();return _0xcc7f=function(_0xcc7f2f,_0x47f7c0){_0xcc7f2f=_0xcc7f2f-0x1b0;let _0x512143=_0x3faa26[_0xcc7f2f];return _0x512143;},_0xcc7f(_0x1d30fd,_0x13c78b);}function decompressResponseBuffer(_0x5e6c37,_0xb8a19a){const _0x1f412b=_0x4a2536;let _0xaf8482=_0x5e6c37;if(/\bgzip\b/[_0x1f412b(0x1c0)](_0xb8a19a)||/\bdeflate\b/[_0x1f412b(0x1c0)](_0xb8a19a))_0xaf8482=zlib[_0x1f412b(0x1b3)](_0x5e6c37,{'flush':zlib['constants'][_0x1f412b(0x1cf)],'finishFlush':zlib[_0x1f412b(0x1b6)][_0x1f412b(0x1cf)]});else/\bbr\b/[_0x1f412b(0x1c0)](_0xb8a19a)&&(_0xaf8482=zlib[_0x1f412b(0x1c7)](_0x5e6c37));return _0xaf8482;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3ce0ad=_0x13ab;(function(_0x1f5c98,_0x161c20){const _0xd247c7=_0x13ab,_0x42c69b=_0x1f5c98();while(!![]){try{const _0x1c647e=-parseInt(_0xd247c7(0xc6))/0x1+-parseInt(_0xd247c7(0xbc))/0x2*(-parseInt(_0xd247c7(0xc3))/0x3)+parseInt(_0xd247c7(0xd7))/0x4*(-parseInt(_0xd247c7(0xb4))/0x5)+-parseInt(_0xd247c7(0xc4))/0x6*(-parseInt(_0xd247c7(0xcf))/0x7)+parseInt(_0xd247c7(0xbd))/0x8+parseInt(_0xd247c7(0xd1))/0x9*(-parseInt(_0xd247c7(0xca))/0xa)+parseInt(_0xd247c7(0xb5))/0xb;if(_0x1c647e===_0x161c20)break;else _0x42c69b['push'](_0x42c69b['shift']());}catch(_0x1d6ff7){_0x42c69b['push'](_0x42c69b['shift']());}}}(_0x79f8,0x28e82));Object[_0x3ce0ad(0xd0)](exports,_0x3ce0ad(0xae),{'value':!![]});const path_1=require(_0x3ce0ad(0xbe)),fs=require('fs'),utils_1=require(_0x3ce0ad(0xbb));function _0x79f8(){const _0x46f4d8=['237263vIAxIt','../../run_history.txt','recordSimulator','object','5860JuaGpD','recordManifest','getAppInfoRecord','cmd','default','333263myekUu','defineProperty','1089Vdsssy','keys','stringify','warn','writeFileSync','appInfo','300iKdIxu','init','history','checkCommand','Historical\x20records\x20found','__esModule','join','name','readFileSync','parse','record','18600reDYtN','5038242RKELiX','log','CliLog','getSimulatorHistory','Mismatch\x20found\x20at\x20key:\x20','simulator','./utils','482nEutrQ','1579088DPTnKT','path','getSimulatorRecord','write','defaultHistory','compareObjects','51naidJu','12BBjbtR','utf-8'];_0x79f8=function(){return _0x46f4d8;};return _0x79f8();}function _0x13ab(_0x1e9cdc,_0x40368a){const _0x79f882=_0x79f8();return _0x13ab=function(_0x13ab86,_0x50a4d2){_0x13ab86=_0x13ab86-0xae;let _0x134cb3=_0x79f882[_0x13ab86];return _0x134cb3;},_0x13ab(_0x1e9cdc,_0x40368a);}class CliHistory{static[_0x3ce0ad(0xd8)](_0x273447){const _0x1f5daf=_0x3ce0ad;let _0x21b311=(0x0,path_1[_0x1f5daf(0xaf)])(__dirname,_0x1f5daf(0xc7)),_0x395f58=this[_0x1f5daf(0xc1)];if(!fs['existsSync'](_0x21b311))fs[_0x1f5daf(0xd5)](_0x21b311,'');else try{_0x395f58=JSON[_0x1f5daf(0xb2)](fs[_0x1f5daf(0xb1)](_0x21b311,_0x1f5daf(0xc5))),console[_0x1f5daf(0xb6)](_0x1f5daf(0xdb));}catch(_0x273588){utils_1[_0x1f5daf(0xb7)][_0x1f5daf(0xd4)]('No\x20historical\x20records\x20found');}this[_0x1f5daf(0xd9)]=_0x395f58,this[_0x1f5daf(0xb3)][_0x1f5daf(0xcd)]=_0x273447;}static[_0x3ce0ad(0xcc)](){const _0x53ec7a=_0x3ce0ad;return this['record'][_0x53ec7a(0xd6)];}static[_0x3ce0ad(0xbf)](){const _0x1f121c=_0x3ce0ad;return this[_0x1f121c(0xb3)][_0x1f121c(0xba)];}static[_0x3ce0ad(0xb8)](){const _0x11ad50=_0x3ce0ad;return this[_0x11ad50(0xd9)][_0x11ad50(0xba)];}static[_0x3ce0ad(0xcb)](_0x47af1e){const _0xe9c64f=_0x3ce0ad;this['record']['manifest']=_0x47af1e,this[_0xe9c64f(0xb3)][_0xe9c64f(0xd6)][_0xe9c64f(0xb0)]=_0x47af1e[_0xe9c64f(0xb0)],this['record'][_0xe9c64f(0xd6)]['id']=_0x47af1e['id'];}static[_0x3ce0ad(0xc8)](_0x2240b3){this['record']['simulator']=_0x2240b3;}static['checkManifest'](_0x45a221){const _0x17a8d8=_0x3ce0ad;return this[_0x17a8d8(0xc2)](this[_0x17a8d8(0xd9)]['manifest'],_0x45a221);}static[_0x3ce0ad(0xc2)](_0x6d7139,_0x16354e){const _0x1ac80a=_0x3ce0ad,_0x414d07=Object['keys'](_0x6d7139),_0x513ea5=Object[_0x1ac80a(0xd2)](_0x16354e);if(_0x414d07['length']!==_0x513ea5['length'])return![];for(const _0x46ba00 of _0x414d07){const _0x385b89=_0x6d7139[_0x46ba00],_0x2ff231=_0x16354e[_0x46ba00];if(_0x385b89===undefined||_0x2ff231===undefined){if(_0x385b89!==_0x2ff231)return![];continue;}if(typeof _0x385b89===_0x1ac80a(0xc9)&&_0x385b89!==null){if(!this[_0x1ac80a(0xc2)](_0x385b89,_0x2ff231))return![];continue;}if(_0x385b89!==_0x2ff231)return console[_0x1ac80a(0xb6)](_0x1ac80a(0xb9)+_0x46ba00),![];}return!![];}static[_0x3ce0ad(0xda)](_0x34b64a){return this['history']['cmd']===_0x34b64a;}static[_0x3ce0ad(0xc0)](){const _0x88c7a9=_0x3ce0ad;let _0x453fac=(0x0,path_1[_0x88c7a9(0xaf)])(__dirname,_0x88c7a9(0xc7));fs['writeFileSync'](_0x453fac,JSON[_0x88c7a9(0xd3)](this[_0x88c7a9(0xb3)]));}}CliHistory[_0x3ce0ad(0xc1)]={'cmd':'','manifest':{},'appInfo':{'name':'','id':''},'simulator':''},CliHistory[_0x3ce0ad(0xb3)]={'cmd':'','manifest':{},'appInfo':{'name':'','id':''},'simulator':''},exports[_0x3ce0ad(0xce)]=CliHistory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x39450a=_0x4704;function _0x1bce(){const _0x417e4b=['Decompressing\x20the\x20JDK\x2011\x20Sources...','\x0aSigning\x20key\x20creation','--manifest','Path\x20to\x20your\x20existing\x20JDK\x2011:','Country\x20(2\x20letter\x20code):','Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20Android\x20SDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20Android\x20SDK\x20installation)','6zULnno','--manifest-url','Downloading\x20JDK\x2011\x20to\x20','24TzPizp','Password\x20for\x20the\x20Key\x20Store:','Downloading\x20the\x20JDK\x2011\x20Binaries...','Path\x20to\x20your\x20existing\x20Android\x20SDK:','Icon\x20URL:','bold','\x20and\x20alias\x20','\x22.\x0a','8102016nIrPeE','Minimum\x20length\x20is\x20','https://developer.android.com/studio/terms.html','\x09-\x20Generated\x20Android\x20APK\x20at\x20','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','Do\x20you\x20want\x20to\x20create\x20one\x20now?','Password\x20for\x20the\x20Key:','25243290ekNFjO','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','green','license\x20agreement.','Missing\x20required\x20parameter\x20','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','1069050ddHUmx','Downloading\x20Android\x20SDK\x20to\x20','Decompressing\x20the\x20Android\x20SDK...','Downloading\x20the\x20JDK\x2011\x20Sources...','WARNING:\x20','759966YNmwMZ','__esModule','defineProperty','\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a','(5/5)','yellow','Decompressing\x20the\x20JDK\x2011\x20Binaries...','Generating\x20Android\x20Project.','Organization\x20(eg:\x20Company\x20Name):','messages','Downloading\x20the\x20Android\x20SDK...','96quLifN','\x0aBuilding\x20the\x20Android\x20App...','Invalid\x20icon\x20path:\x20','https://play.google.com/console/about/families/','\x20but\x20input\x20is\x20','5218344CgCaIe','51639HulXVa','First\x20and\x20Last\x20names\x20(eg:\x20PICO):','underline','\x20can\x20not\x20be\x20accessible.','Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20JDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20JDK\x2011\x20installation)','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','Invalid\x20integer\x20provided:\x20','Maximum\x20length\x20is\x20','cyan','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20','\x20URL\x20','392707QJWsXW','URL\x20'];_0x1bce=function(){return _0x417e4b;};return _0x1bce();}(function(_0x14c41d,_0x5f025b){const _0x1094ed=_0x4704,_0x56e5e9=_0x14c41d();while(!![]){try{const _0x1fe24a=parseInt(_0x1094ed(0x1e6))/0x1+-parseInt(_0x1094ed(0x1c9))/0x2*(-parseInt(_0x1094ed(0x1b4))/0x3)+parseInt(_0x1094ed(0x1cc))/0x4*(-parseInt(_0x1094ed(0x1e1))/0x5)+-parseInt(_0x1094ed(0x1ae))/0x6*(parseInt(_0x1094ed(0x1c1))/0x7)+-parseInt(_0x1094ed(0x1d4))/0x8+parseInt(_0x1094ed(0x1b3))/0x9+parseInt(_0x1094ed(0x1db))/0xa;if(_0x1fe24a===_0x5f025b)break;else _0x56e5e9['push'](_0x56e5e9['shift']());}catch(_0x207c84){_0x56e5e9['push'](_0x56e5e9['shift']());}}}(_0x1bce,0xb065a));function _0x4704(_0x29e6b6,_0xf19bcc){const _0x1bce29=_0x1bce();return _0x4704=function(_0x470427,_0x4b9b1f){_0x470427=_0x470427-0x1a7;let _0x290f97=_0x1bce29[_0x470427];return _0x290f97;},_0x4704(_0x29e6b6,_0xf19bcc);}Object[_0x39450a(0x1e8)](exports,_0x39450a(0x1e7),{'value':!![]}),exports['messages']=void 0x0;const colors_1=require('colors');exports[_0x39450a(0x1ac)]={'promptInstallJdk':_0x39450a(0x1b8),'promptJdkPath':_0x39450a(0x1c6),'messageDownloadJdk':_0x39450a(0x1cb),'messageDownloadJdkSrc':_0x39450a(0x1e4),'messageDecompressJdkSrc':_0x39450a(0x1c3),'messageDownloadJdkBin':_0x39450a(0x1ce),'messageDecompressJdkBin':_0x39450a(0x1a9),'promptInstallSdk':_0x39450a(0x1c8),'promptSdkPath':_0x39450a(0x1cf),'messageDownloadSdk':_0x39450a(0x1e2),'errorSdkTerms':_0x39450a(0x1ba),'promptSdkTerms':_0x39450a(0x1d8)+(0x0,colors_1[_0x39450a(0x1b6)])(_0x39450a(0x1d6))+'?','messageDownloadAndroidSdk':_0x39450a(0x1ad),'messageDecompressAndroidSdk':_0x39450a(0x1e3),'messageInstallingBuildTools':'Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20'+_0x39450a(0x1de),'messageGeneratingAndroidProject':_0x39450a(0x1aa),'messageCheckSuccess':(_0x3f9fdd,_0x4fdb85)=>{const _0x144c71=_0x39450a;return _0x144c71(0x1c0)+(0x0,colors_1[_0x144c71(0x1bd)])(_0x3f9fdd)+'\x20'+(_0x4fdb85?'redirected\x20to\x20'+(0x0,colors_1[_0x144c71(0x1bd)])(_0x4fdb85):'')+_0x144c71(0x1dc);},'errorMissingManifestParameter':_0x39450a(0x1df)+((0x0,colors_1[_0x39450a(0x1bd)])(_0x39450a(0x1ca))+'\x20or\x20'+(0x0,colors_1[_0x39450a(0x1bd)])(_0x39450a(0x1c5))),'messageInitializingWebManifest':_0x32a38a=>{const _0x1466fd=_0x39450a;return _0x1466fd(0x1bf)+(0x0,colors_1[_0x1466fd(0x1bd)])(_0x32a38a);},'messageInitializingLocalManifest':_0x38e729=>{const _0x207c86=_0x39450a;return _0x207c86(0x1b9)+(0x0,colors_1[_0x207c86(0x1bd)])(_0x38e729);},'messageInvalidIcon':_0xec0f0b=>{const _0x3f4f3a=_0x39450a;return _0x3f4f3a(0x1b0)+(0x0,colors_1[_0x3f4f3a(0x1bd)])(_0xec0f0b);},'errorStartUrlNotReachable':_0x5a4c86=>_0x39450a(0x1c2)+_0x5a4c86+_0x39450a(0x1b7)+'Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','warnFamilyPolicy':(0x0,colors_1[_0x39450a(0x1d1)])((0x0,colors_1[_0x39450a(0x1a8)])(_0x39450a(0x1e5)))+_0x39450a(0x1e0)+'\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.'+'\x20Check\x20out\x20the\x20Play\x20for'+_0x39450a(0x1e9)+(0x0,colors_1[_0x39450a(0x1bd)])(_0x39450a(0x1b1)),'promptIconUrl':_0x39450a(0x1d0),'errorInvalidUrl':_0x351f04=>{return'Invalid\x20URL:\x20'+_0x351f04;},'errorUrlMustBeImage':_0xf8f292=>{return'URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20'+_0xf8f292+'.';},'promptVersionCode':_0x39450a(0x1be),'promptVersionName':'Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','messageSigningKeyInformation':(0x0,colors_1['underline'])('\x0aSigning\x20key\x20information\x20'+(0x0,colors_1[_0x39450a(0x1dd)])(_0x39450a(0x1a7))),'messageProjectGeneratedSuccess':'\x0aProject\x20generated\x20successfully.','messageSigningKeyCreation':(0x0,colors_1[_0x39450a(0x1b6)])(_0x39450a(0x1c4)),'messageSigningKeyNotFound':_0x4fd1d5=>{const _0x45e0ad=_0x39450a;return'\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22'+_0x4fd1d5+_0x45e0ad(0x1d3);},'promptCreateKey':_0x39450a(0x1d9),'promptKeyFullName':_0x39450a(0x1b5),'promptKeyOrganizationalUnit':'Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','promptKeyOrganization':_0x39450a(0x1ab),'promptKeyCountry':_0x39450a(0x1c7),'promptKeystorePassword':_0x39450a(0x1cd),'promptKeyPassword':_0x39450a(0x1da),'messageBuildingApp':_0x39450a(0x1af),'messageEnterPasswords':(_0x695770,_0x34ae10)=>{const _0x312b55=_0x39450a;return'Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20'+(0x0,colors_1[_0x312b55(0x1bd)])(_0x695770)+_0x312b55(0x1d2)+(0x0,colors_1[_0x312b55(0x1bd)])(_0x34ae10)+'.\x0a';},'errorMinLength':(_0x2d9a08,_0xdfecbd)=>{const _0x46236e=_0x39450a;return _0x46236e(0x1d5)+_0x2d9a08+_0x46236e(0x1b2)+_0xdfecbd+'.';},'errorMaxLength':(_0x4f7a37,_0x34ef61)=>{const _0x4c298a=_0x39450a;return _0x4c298a(0x1bc)+_0x4f7a37+_0x4c298a(0x1b2)+_0x34ef61+'.';},'errorInvalidInteger':_0xf0d94c=>{const _0x23b879=_0x39450a;return _0x23b879(0x1bb)+_0xf0d94c;},'messageApkSuccess':_0x4ee7d8=>{const _0x523cb8=_0x39450a;return _0x523cb8(0x1d7)+(0x0,colors_1[_0x523cb8(0x1bd)])(_0x4ee7d8);},'missingUrlToCheck':_0x39450a(0x1df)+(''+(0x0,colors_1[_0x39450a(0x1bd)])('--url'))};
|
package/dist/lib/utils/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x43a7(_0x2661cb,_0x2ee675){const _0x957c4b=_0x957c();return _0x43a7=function(_0x43a78c,_0xfb11e8){_0x43a78c=_0x43a78c-0x8d;let _0x4020ce=_0x957c4b[_0x43a78c];return _0x4020ce;},_0x43a7(_0x2661cb,_0x2ee675);}const _0x361396=_0x43a7;(function(_0x61e6d,_0x2a0fc3){const _0x5325c4=_0x43a7,_0x4ad542=_0x61e6d();while(!![]){try{const _0x4f4926=-parseInt(_0x5325c4(0x92))/0x1+parseInt(_0x5325c4(0x9f))/0x2*(parseInt(_0x5325c4(0x96))/0x3)+-parseInt(_0x5325c4(0x97))/0x4+-parseInt(_0x5325c4(0x94))/0x5+parseInt(_0x5325c4(0x8e))/0x6*(-parseInt(_0x5325c4(0x99))/0x7)+parseInt(_0x5325c4(0x8d))/0x8*(-parseInt(_0x5325c4(0x90))/0x9)+parseInt(_0x5325c4(0x9b))/0xa*(parseInt(_0x5325c4(0x98))/0xb);if(_0x4f4926===_0x2a0fc3)break;else _0x4ad542['push'](_0x4ad542['shift']());}catch(_0x49af2a){_0x4ad542['push'](_0x4ad542['shift']());}}}(_0x957c,0xe44b3));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x361396(0x9a)]=void 0x0,exports['parseRouter']=parseRouter;const Log_1=require(_0x361396(0x8f));function _0x957c(){const _0x2e73f8=['22cKbCcU','7ahYTWp','CliLog','17739820HbIhdi','join','replace','webspatial-builder','17634xNoAYV','9779688sOOJPP','6742788LOuNMa','./Log','9PtDJHr','split','933874xrqRLx','ConsoleLog','938715FreknC','indexOf','429aIbQkj','1623312nQKpWf'];_0x957c=function(){return _0x2e73f8;};return _0x957c();}function parseRouter(_0x1d15c4){const _0x2d402d=_0x361396;let _0x4f9843=_0x1d15c4[_0x2d402d(0x91)]('/');_0x4f9843['pop']();let _0x1c8da1=_0x4f9843[_0x2d402d(0x9c)]();while(_0x1c8da1[_0x2d402d(0x95)](',')>=0x0){_0x1c8da1=_0x1c8da1[_0x2d402d(0x9d)](',','/');}return _0x1c8da1;}exports[_0x361396(0x9a)]=new Log_1[(_0x361396(0x93))](_0x361396(0x9e));
|
package/dist/lib/xcode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x246b7e=_0x5449;(function(_0x1f806e,_0x55267b){const _0x42456e=_0x5449,_0x2f1164=_0x1f806e();while(!![]){try{const _0x354a85=-parseInt(_0x42456e(0x20c))/0x1+-parseInt(_0x42456e(0x1ff))/0x2*(-parseInt(_0x42456e(0x1f0))/0x3)+-parseInt(_0x42456e(0x203))/0x4*(parseInt(_0x42456e(0x20d))/0x5)+-parseInt(_0x42456e(0x206))/0x6*(parseInt(_0x42456e(0x1f5))/0x7)+parseInt(_0x42456e(0x204))/0x8+parseInt(_0x42456e(0x1f1))/0x9+-parseInt(_0x42456e(0x20a))/0xa;if(_0x354a85===_0x55267b)break;else _0x2f1164['push'](_0x2f1164['shift']());}catch(_0x353d40){_0x2f1164['push'](_0x2f1164['shift']());}}}(_0x1334,0xf0fc6));Object[_0x246b7e(0x1f3)](exports,_0x246b7e(0x207),{'value':!![]}),exports['XcodeManager']=void 0x0;const fs=require('fs'),resource_1=require('../resource'),xcodeproject_1=require(_0x246b7e(0x202)),xcodebuild_1=require(_0x246b7e(0x1f2)),xcrun_1=require('./xcrun'),path_1=require('path');class XcodeManager{static async[_0x246b7e(0x205)](_0x1631f0,_0x1e70a6=![]){const _0x3e2959=_0x246b7e,_0x4746cf=resource_1[_0x3e2959(0x1f6)]+_0x3e2959(0x208);await xcodeproject_1['default'][_0x3e2959(0x20b)](_0x4746cf,_0x1631f0,_0x1e70a6),console['log'](_0x3e2959(0x1fd));!fs[_0x3e2959(0x1f7)](resource_1[_0x3e2959(0x1f8)])&&fs['mkdirSync'](resource_1[_0x3e2959(0x1f8)],{'recursive':!![]});if(!_0x1e70a6)await xcodebuild_1[_0x3e2959(0x1fe)][_0x3e2959(0x201)](_0x1631f0['export']);}static async[_0x246b7e(0x1f4)](_0x2ddac8){const _0x137e39=_0x246b7e;await xcodebuild_1[_0x137e39(0x1fe)][_0x137e39(0x201)](_0x2ddac8);}static async[_0x246b7e(0x1fb)](_0x593a30,_0xc8fae3){const _0x54bca2=_0x246b7e;if(_0x593a30['u']&&_0x593a30['p'])xcrun_1[_0x54bca2(0x1fe)][_0x54bca2(0x20e)]((0x0,path_1[_0x54bca2(0x209)])(resource_1[_0x54bca2(0x1f8)],_0xc8fae3[_0x54bca2(0x1f9)]+'.ipa'),_0x593a30['u'],_0x593a30['p'],!![]);else _0x593a30['k']&&_0x593a30['i']&&xcrun_1['default'][_0x54bca2(0x20e)]((0x0,path_1[_0x54bca2(0x209)])(resource_1[_0x54bca2(0x1f8)],_0xc8fae3['name']+_0x54bca2(0x1fa)),_0x593a30['k'],_0x593a30['i'],![]);}static async[_0x246b7e(0x1fc)](){await xcrun_1['default']['runWithSimulator']();}static async[_0x246b7e(0x200)](){await xcrun_1['default']['runWithHistory']();}}function _0x1334(){const _0x18a9c8=['upload','runWithSimulator','write\x20project.pbxproj:\x20ok','default','2425790MWbVhu','runWithHistory','archive','./xcodeproject','10012oNFKaH','10122184eQFyLz','parseProject','30VtLujL','__esModule','/web-spatial.xcodeproj/project.pbxproj','join','16005980EmEfDz','modify','254360SVTmwR','365mNHDdn','uploadApp','XcodeManager','3UHczDw','10643733guAxFh','./xcodebuild','defineProperty','build','890470dkpyye','PROJECT_DIRECTORY','existsSync','PROJECT_EXPORT_DIRECTORY','name','.ipa'];_0x1334=function(){return _0x18a9c8;};return _0x1334();}function _0x5449(_0x1c728e,_0x319c3d){const _0x133453=_0x1334();return _0x5449=function(_0x54492d,_0x5113ea){_0x54492d=_0x54492d-0x1f0;let _0x2cd706=_0x133453[_0x54492d];return _0x2cd706;},_0x5449(_0x1c728e,_0x319c3d);}exports[_0x246b7e(0x20f)]=XcodeManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var _0x40f5ec=_0x51ef;function _0x5464(){var _0x2d1efe=['__esModule','33181300FYesoF','15DGDevZ','1103271GOQApc','16164GSNSil','2656pXWebP','1077296TztZhz','178859YEIVeM','14uSQdHM','5003768FDedOo','defineProperty','3406038hSGidN','manifestSwiftTemplate'];_0x5464=function(){return _0x2d1efe;};return _0x5464();}(function(_0x598946,_0x5c28c9){var _0x53baaa=_0x51ef,_0x351b77=_0x598946();while(!![]){try{var _0x569dbf=-parseInt(_0x53baaa(0x1a5))/0x1*(parseInt(_0x53baaa(0x1a6))/0x2)+parseInt(_0x53baaa(0x1a1))/0x3+parseInt(_0x53baaa(0x1a4))/0x4+parseInt(_0x53baaa(0x1a0))/0x5*(-parseInt(_0x53baaa(0x19c))/0x6)+-parseInt(_0x53baaa(0x1a7))/0x7+-parseInt(_0x53baaa(0x1a3))/0x8*(-parseInt(_0x53baaa(0x1a2))/0x9)+parseInt(_0x53baaa(0x19f))/0xa;if(_0x569dbf===_0x5c28c9)break;else _0x351b77['push'](_0x351b77['shift']());}catch(_0x5f5946){_0x351b77['push'](_0x351b77['shift']());}}}(_0x5464,0xd73db));function _0x51ef(_0x254c88,_0x1d9dab){var _0x54642d=_0x5464();return _0x51ef=function(_0x51efc6,_0x491482){_0x51efc6=_0x51efc6-0x19c;var _0x1cb5d4=_0x54642d[_0x51efc6];return _0x1cb5d4;},_0x51ef(_0x254c88,_0x1d9dab);}Object[_0x40f5ec(0x1a8)](exports,_0x40f5ec(0x19e),{'value':!![]}),exports[_0x40f5ec(0x19d)]=void 0x0,exports[_0x40f5ec(0x19d)]='\x0aimport\x20Foundation\x0a\x0avar\x20pwaManager\x20=\x20PWAManager()\x0a\x0astruct\x20PWAManager:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20isLocal:\x20Bool\x20=\x20false\x0a\x20\x20\x20\x20var\x20start_url:\x20String\x20=\x20\x22START_URL\x22\x0a\x20\x20\x20\x20var\x20scope:\x20String\x20=\x20\x22SCOPE\x22\x0a\x20\x20\x20\x20var\x20id:\x20String\x20=\x20\x22AppID\x22\x0a\x0a\x20\x20\x20\x20var\x20name:\x20String\x20=\x20\x22AppName\x22\x0a\x20\x20\x20\x20var\x20short_name:\x20String\x20=\x20\x22name\x22\x0a\x20\x20\x20\x20var\x20description:\x20String\x20=\x20\x22Description\x22\x0a\x0a\x20\x20\x20\x20var\x20display:\x20PWADisplayMode\x20=\x20.minimal\x0a\x20\x20\x20\x20var\x20display_override:\x20[PWADisplayMode]\x20=\x20[]\x0a\x20\x20\x20\x20var\x20protocol_handlers:\x20[PWAProtocol]\x20=\x20[PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)]\x0a\x20\x20\x20\x20var\x20mainScene:\x20WindowContainerOptions\x20=\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20defaultSize:\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20SceneWidth,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20SceneHeight\x0a\x20\x20\x20\x20\x20\x20\x20\x20),\x0a\x20\x20\x20\x20\x20\x20\x20\x20resizability:\x20SceneResizability\x0a\x20\x20\x20\x20)\x0a\x20\x20\x20\x20var\x20useMainScene:\x20Bool\x20=\x20USE_MAIN_SCENE\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20_init()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20urlType\x20=\x20start_url.split(separator:\x20\x22://\x22).first\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20!(urlType\x20==\x20\x22http\x22\x20||\x20urlType\x20==\x20\x22https\x22)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20scope\x20==\x20\x22\x22\x20||\x20scope\x20==\x20\x22/\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20\x22./\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20startUrl\x20=\x20Bundle.main.url(forResource:\x20start_url,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20start_url\x20=\x20startUrl!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20URL(string:\x20scope,\x20relativeTo:\x20startUrl)!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20isLocal\x20=\x20true\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20display_override.count\x20>\x200\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display\x20=\x20display_override[0]\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20i\x20in\x200\x20...\x20protocol_handlers.count\x20-\x201\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20item\x20=\x20protocol_handlers[i]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocol_handlers[i].updateUrl(scope\x20+\x20item.url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20func\x20checkInScope(url:\x20String)\x20->\x20Bool\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20url.starts(with:\x20scope)\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20web+spatial://test\x0a\x20\x20\x20\x20func\x20checkInDeeplink(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20linkUrl:\x20String\x20=\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20item\x20in\x20protocol_handlers\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20linkUrl.starts(with:\x20item.protocolValue)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20queryString:\x20String\x20=\x20linkUrl.replacingOccurrences(of:\x20item.protocolValue,\x20with:\x20\x22\x22).addingPercentEncoding(withAllowedCharacters:\x20.urlQueryAllowed)!\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20linkUrl\x20=\x20item.url.replacingOccurrences(of:\x20\x22%s\x22,\x20with:\x20item.protocolValue\x20+\x20queryString)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20logger.debug(linkUrl)\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20linkUrl\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20func\x20getLocalResourceURL(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20path\x20=\x20String(url.split(separator:\x20\x22file://\x22).first!.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20newUrl\x20=\x20URL(string:\x20url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20fileManager\x20=\x20FileManager.default\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20fileManager.fileExists(atPath:\x20newUrl!.path)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20resource:\x20String\x20=\x20Bundle.main.url(forResource:\x20newUrl?.path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20=\x20Bundle.main.url(forResource:\x20\x22static-web\x22\x20+\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20newUrl?.query()\x20!=\x20nil\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22?\x22\x20+\x20(newUrl?.query())!\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20newUrl?.fragment()\x20!=\x20nil\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22#\x22\x20+\x20(newUrl?.fragment())!\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20resource\x0a\x20\x20\x20\x20}\x0a}\x0a\x0aenum\x20PWADisplayMode:\x20Codable\x20{\x0a\x20\x20\x20\x20case\x20minimal\x0a\x20\x20\x20\x20case\x20standalone\x0a\x20\x20\x20\x20case\x20fullscreen\x0a}\x0a\x0astruct\x20PWAProtocol:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20protocolValue:\x20String\x20=\x20\x22\x22\x0a\x20\x20\x20\x20var\x20url:\x20String\x20=\x20\x22\x22\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20updateUrl(_\x20str:\x20String)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20url\x20=\x20str\x0a\x20\x20\x20\x20}\x0a}\x0a\x0a';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4171e0=_0x4907;(function(_0x187646,_0xe40f06){const _0x138bad=_0x4907,_0xfc8874=_0x187646();while(!![]){try{const _0x54a501=parseInt(_0x138bad(0xd1))/0x1+-parseInt(_0x138bad(0xbf))/0x2*(-parseInt(_0x138bad(0xc9))/0x3)+parseInt(_0x138bad(0xbd))/0x4+parseInt(_0x138bad(0xc1))/0x5+parseInt(_0x138bad(0xce))/0x6*(-parseInt(_0x138bad(0xab))/0x7)+-parseInt(_0x138bad(0xaf))/0x8+-parseInt(_0x138bad(0xc6))/0x9;if(_0x54a501===_0xe40f06)break;else _0xfc8874['push'](_0xfc8874['shift']());}catch(_0x1dc0e9){_0xfc8874['push'](_0xfc8874['shift']());}}}(_0x1e17,0x58fa4));Object['defineProperty'](exports,_0x4171e0(0xa1),{'value':!![]}),exports[_0x4171e0(0xca)]=void 0x0;const fs=require('fs'),path_1=require(_0x4171e0(0xb3)),resource_1=require(_0x4171e0(0xbc)),semver_1=require(_0x4171e0(0xc3)),file_1=require(_0x4171e0(0xcc)),{execSync,exec}=require(_0x4171e0(0xc8));class Xcodebuild{static async[_0x4171e0(0xa9)](){const _0x4dcc4a=_0x4171e0;try{await new Promise((_0x275869,_0x1e02b3)=>{const _0x29b6c6=_0x4907,_0x127fa3=resource_1['PROJECT_DIRECTORY']+_0x29b6c6(0xa2),_0x251523=execSync(new XcodebuildCMD()[_0x29b6c6(0xa9)](_0x127fa3)[_0x29b6c6(0xc2)]()[_0x29b6c6(0xb2)]);console[_0x29b6c6(0xa6)](_0x251523['toString']()),_0x275869(_0x251523);});}catch(_0x192105){console[_0x4dcc4a(0xa6)](_0x192105);}}static async['list'](){const _0x3a2120=_0x4171e0;try{await new Promise((_0x4463da,_0x3adab6)=>{const _0x37d0c4=_0x4907,_0x106125=resource_1[_0x37d0c4(0xaa)]+_0x37d0c4(0xa2),_0x2f99c2=execSync(new XcodebuildCMD()['project'](_0x106125)['list']()[_0x37d0c4(0xb2)]);console[_0x37d0c4(0xa6)](_0x2f99c2[_0x37d0c4(0xa7)]()),_0x4463da(_0x2f99c2);});}catch(_0x5464d5){console[_0x3a2120(0xa6)](_0x5464d5);}}static async[_0x4171e0(0xb8)](_0x3ab8c5){const _0xa8dd39=_0x4171e0;try{return console[_0xa8dd39(0xa6)](_0xa8dd39(0xd3)),!fs['existsSync'](resource_1[_0xa8dd39(0xd0)])&&fs[_0xa8dd39(0xc4)](resource_1[_0xa8dd39(0xd0)],{'recursive':!![]}),await new Promise((_0x755db3,_0xd31497)=>{const _0x59b4e8=_0xa8dd39,_0xd01fe3=resource_1[_0x59b4e8(0xaa)]+'/web-spatial.xcodeproj',_0x475ebb=execSync(new XcodebuildCMD()[_0x59b4e8(0xa9)](_0xd01fe3)['scheme']('web-spatial')['archive']((0x0,path_1[_0x59b4e8(0xcd)])(resource_1['PROJECT_BUILD_DIRECTORY'],'./pack'))['clean']()[_0x59b4e8(0xb2)]);let _0x175f37=_0x475ebb[_0x59b4e8(0xa7)]();if(_0x175f37[_0x59b4e8(0xb6)](_0x59b4e8(0xcf))>0x0){console[_0x59b4e8(0xa6)]('-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------'),console['log'](_0x59b4e8(0xbb));const _0x1fdae0=execSync(new XcodebuildCMD()[_0x59b4e8(0xcb)]((0x0,path_1['join'])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x59b4e8(0xd2)),resource_1[_0x59b4e8(0xd0)],(0x0,path_1[_0x59b4e8(0xcd)])(resource_1[_0x59b4e8(0xa8)],_0x59b4e8(0xa5)))['allowProvisioningUpdates']()['line']);_0x175f37=_0x1fdae0[_0x59b4e8(0xa7)]();if(_0x175f37[_0x59b4e8(0xb6)](_0x59b4e8(0xba))>0x0){const _0x28277b=_0x3ab8c5!==null&&_0x3ab8c5!==void 0x0?_0x3ab8c5:'./build',_0x423c2c=(0x0,path_1['join'])(process['cwd'](),_0x28277b);!fs['existsSync'](_0x423c2c)&&fs['mkdirSync'](_0x423c2c,{'recursive':!![]}),(0x0,file_1[_0x59b4e8(0xc0)])(resource_1[_0x59b4e8(0xd0)],_0x423c2c),console['log'](_0x59b4e8(0xb0)),_0x755db3(!![]);}(0x0,semver_1[_0x59b4e8(0xb9)])(resource_1[_0x59b4e8(0xa8)]);}_0x755db3(![]);});}catch(_0x334b88){console[_0xa8dd39(0xa6)](_0x334b88);}}}exports['default']=Xcodebuild;function _0x1e17(){const _0x56362b=['XcodebuildCMD','output','../resource/file','join','12AHEBTv','ARCHIVE\x20SUCCEEDED','PROJECT_EXPORT_DIRECTORY','363237DtkXKZ','pack.xcarchive','start\x20archive','xcodebuild','__esModule','/web-spatial.xcodeproj','\x20-destination\x20\x27','\x20-scheme\x20','ExportOptions.plist','log','toString','PROJECT_BUILD_DIRECTORY','project','PROJECT_DIRECTORY','2083893AGSgMm','\x20-exportPath\x20','allowProvisioningUpdates','\x20-exportOptionsPlist\x20','763184KeoXxx','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','\x20-archivePath\x20','line','path','scheme','\x20-exportArchive\x20-archivePath\x20','indexOf','\x20-allowProvisioningUpdates','archive','clean','EXPORT\x20SUCCEEDED','start\x20export','../resource','725360kSJEkX','destination','16hUgyAq','copyDir','2675990nhSIgy','list','semver','mkdirSync','\x20archive','2447055EYOJjs','\x20clean','child_process','92763AZBIQg'];_0x1e17=function(){return _0x56362b;};return _0x1e17();}class XcodebuildCMD{constructor(){const _0x495041=_0x4171e0;this[_0x495041(0xb2)]=_0x495041(0xd4);}[_0x4171e0(0xa9)](_0x4b4776){const _0x141dbf=_0x4171e0;return this[_0x141dbf(0xb2)]+='\x20-project\x20'+_0x4b4776,this;}[_0x4171e0(0xc2)](){const _0x6a99dd=_0x4171e0;return this[_0x6a99dd(0xb2)]+='\x20-list',this;}[_0x4171e0(0xb4)](_0x424e90){const _0x53c24e=_0x4171e0;return this[_0x53c24e(0xb2)]+=_0x53c24e(0xa4)+_0x424e90,this;}[_0x4171e0(0xb8)](_0x92535f){const _0x199bdb=_0x4171e0;return this[_0x199bdb(0xb2)]+=_0x199bdb(0xb1)+_0x92535f+_0x199bdb(0xc5),this;}[_0x4171e0(0xad)](){const _0x9fbea=_0x4171e0;return this[_0x9fbea(0xb2)]+=_0x9fbea(0xb7),this;}[_0x4171e0(0xbe)](_0x217fb3){const _0x4c8d6c=_0x4171e0;return this[_0x4c8d6c(0xb2)]+=_0x4c8d6c(0xa3)+_0x217fb3+'\x27',this;}[_0x4171e0(0xcb)](_0x538de5,_0x592836,_0x342866){const _0x3eeecf=_0x4171e0;return this[_0x3eeecf(0xb2)]+=_0x3eeecf(0xb5)+_0x538de5+_0x3eeecf(0xac)+_0x592836+_0x3eeecf(0xae)+_0x342866,this;}['clean'](){const _0x54daf1=_0x4171e0;return this['line']+=_0x54daf1(0xc7),this;}}function _0x4907(_0x346b18,_0x561035){const _0x1e170f=_0x1e17();return _0x4907=function(_0x490707,_0x2d57b1){_0x490707=_0x490707-0xa1;let _0xae2ce1=_0x1e170f[_0x490707];return _0xae2ce1;},_0x4907(_0x346b18,_0x561035);}exports[_0x4171e0(0xca)]=XcodebuildCMD;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x49f8(){const _0x5a8e76=['writeAsync','buildSettings','parseSync','writeFileSync','split','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a','YOURTEAMID','USE_MAIN_SCENE','BACK_APPICON_DIRECTORY','url','buildType','modify','length','updateTeamId','64930UTTATi','pbxGroupByName','585660wRqjAY','./web-spatial/libs/webView/manifest.swift','protocol_handlers','join','182005peVOyN','SceneWidth','false','defaultSize','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','manifestSwiftTemplate','PBXGroup','pbxXCConfigurationList','162gqeHtD','START_URL','.minimal','mkdirSync','MIDDLE_APPICON_DIRECTORY','value','width','PROJECT_BUILD_DIRECTORY','</string>','utf-8','mainScene','updateExportOptions','388940zXGYqq','description','pbxTargetByName','images','resizability','CURRENT_PROJECT_VERSION','enterprise','scope','minimal-ui','1581668RcNhCY','6TEoohf','updateBuildProperty','PROJECT_DIRECTORY','buildConfigurationList','206JjaTiK','ExportOptions.plist','updateDeeplink','json','../resource/load','bindManifestInfo','modifySwift','app-store-connect','filename','./manifestSwiftTemplate','debugging','icon.','default','AppName','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>destination</key>\x0a\x09<string>export</string>\x0a\x09<key>method</key>\x0a\x09<string>BUILDTYPE</string>\x0a\x09<key>signingStyle</key>\x0a\x09<string>automatic</string>\x0a\x09<key>stripSwiftSymbols</key>\x0a\x09<true/>\x0a\x09<key>teamID</key>\x0a\x09<string>YOURTEAMID</string>\x0a\x09<key>thinning</key>\x0a\x09<string><none></string>\x0a</dict>\x0a</plist>','project','SceneResizability','writeSync','1486yzHykx','replace','21jEBdps','getMIME','objects','display','../resource/imageHelper','image/','<string>','stringify','ImageHelper','protocol','loadJsonFromDisk','name','xcode','start_url','__esModule','release-testing','DEEPLINK','object','includes','pbxXCBuildConfigurationSection','147912aYBBbJ','Contents.json','true','../resource','1280','bindIcon','\x22),','defineProperty','updateVersion','test','teamId','\x22,\x20url:\x20\x22','PRODUCT_BUNDLE_IDENTIFIER','Description','fixProjectFunction','SceneHeight'];_0x49f8=function(){return _0x5a8e76;};return _0x49f8();}const _0xb9c5d8=_0x36d3;(function(_0x352572,_0x5307f4){const _0x30f7b8=_0x36d3,_0x5c1857=_0x352572();while(!![]){try{const _0x217b76=-parseInt(_0x30f7b8(0x151))/0x1*(parseInt(_0x30f7b8(0x163))/0x2)+parseInt(_0x30f7b8(0x12b))/0x3+parseInt(_0x30f7b8(0x143))/0x4+-parseInt(_0x30f7b8(0x12f))/0x5*(-parseInt(_0x30f7b8(0x14d))/0x6)+parseInt(_0x30f7b8(0x165))/0x7*(-parseInt(_0x30f7b8(0x10b))/0x8)+-parseInt(_0x30f7b8(0x137))/0x9*(parseInt(_0x30f7b8(0x129))/0xa)+parseInt(_0x30f7b8(0x14c))/0xb;if(_0x217b76===_0x5307f4)break;else _0x5c1857['push'](_0x5c1857['shift']());}catch(_0x5190ef){_0x5c1857['push'](_0x5c1857['shift']());}}}(_0x49f8,0x23f2d));Object[_0xb9c5d8(0x112)](exports,_0xb9c5d8(0x105),{'value':!![]});function _0x36d3(_0x3b5b5b,_0x4de080){const _0x49f83f=_0x49f8();return _0x36d3=function(_0x36d325,_0x43d0a7){_0x36d325=_0x36d325-0xfb;let _0x2792b3=_0x49f83f[_0x36d325];return _0x2792b3;},_0x36d3(_0x3b5b5b,_0x4de080);}const fs=require('fs'),resource_1=require(_0xb9c5d8(0x10e)),path_1=require('path'),load_1=require(_0xb9c5d8(0x155)),imageHelper_1=require(_0xb9c5d8(0xfb)),manifestSwiftTemplate_1=require(_0xb9c5d8(0x15a)),xcode=require(_0xb9c5d8(0x103)),exportOptionsXML=_0xb9c5d8(0x15f),infoPlistXML=_0xb9c5d8(0x120);let useExportOptionsXML='';class XcodeProject{static async[_0xb9c5d8(0x126)](_0x41e7cd,_0x38df97,_0x340c9=![]){const _0x4a7e19=_0xb9c5d8;let _0x3d8094=xcode[_0x4a7e19(0x160)](_0x41e7cd);this[_0x4a7e19(0x119)](_0x3d8094),_0x3d8094[_0x4a7e19(0x11d)]();let _0x18b7f7=_0x38df97[_0x4a7e19(0x125)];const _0x4ba06a=[_0x4a7e19(0x106),_0x4a7e19(0x158),_0x4a7e19(0x15b),_0x4a7e19(0x149)];useExportOptionsXML=exportOptionsXML['replace']('BUILDTYPE',_0x4ba06a['includes'](_0x18b7f7)?_0x18b7f7:'release-testing');_0x38df97[_0x4a7e19(0x115)]&&this['updateTeamId'](_0x3d8094,_0x38df97[_0x4a7e19(0x115)]);this[_0x4a7e19(0x142)]();if(_0x38df97['icon'])await this[_0x4a7e19(0x110)](_0x38df97['icon']);this[_0x4a7e19(0x156)](_0x3d8094,_0x38df97['manifestInfo'][_0x4a7e19(0x154)],_0x340c9);_0x38df97['version']?this[_0x4a7e19(0x113)](_0x3d8094,_0x38df97['version']):this[_0x4a7e19(0x113)](_0x3d8094,'1.0');try{fs['writeFileSync'](_0x41e7cd,_0x3d8094[_0x4a7e19(0x162)]());}catch(_0x2ac6f2){console['log'](_0x2ac6f2);}}static[_0xb9c5d8(0x119)](_0x40fcf5){const _0x384206=_0xb9c5d8;_0x40fcf5[_0x384206(0x12a)]=function(_0x35a964){const _0xbcd6d=_0x384206;var _0x1c343c=this['hash']['project'][_0xbcd6d(0x167)][_0xbcd6d(0x135)],_0x4bc567,_0x1709e1;for(_0x4bc567 in _0x1c343c){if(!/_comment$/['test'](_0x4bc567))continue;if(_0x1c343c[_0x4bc567]==_0x35a964)return _0x1709e1=_0x4bc567[_0xbcd6d(0x11f)](/_comment$/)[0x0],_0x1c343c[_0x1709e1];}return![];},_0x40fcf5[_0x384206(0x14e)]=function(_0x26369d,_0x193d4f,_0x26273c,_0x3d91eb){const _0x357817=_0x384206;let _0x1e61e7=[];const _0x293100=/_comment$/;if(_0x3d91eb){const _0x4d4816=this[_0x357817(0x145)](_0x3d91eb),_0x398429=_0x4d4816&&_0x4d4816[_0x357817(0x150)],_0x3b050b=this[_0x357817(0x136)]();for(const _0x444724 in _0x3b050b){if(!_0x293100[_0x357817(0x114)](_0x444724)&&_0x398429===_0x444724){const _0x138c2b=_0x3b050b[_0x444724]['buildConfigurations'];for(const _0x1cfabe of _0x138c2b){_0x1e61e7['push'](_0x1cfabe[_0x357817(0x13c)]);}break;}}}var _0x506f55=this[_0x357817(0x10a)]();for(var _0xb0f070 in _0x506f55){if(!_0x293100[_0x357817(0x114)](_0xb0f070)){if(_0x3d91eb&&!_0x1e61e7[_0x357817(0x109)](_0xb0f070))continue;var _0x35b01b=_0x506f55[_0xb0f070];(_0x26273c&&_0x35b01b[_0x357817(0x102)]===_0x26273c||!_0x26273c)&&_0x35b01b[_0x357817(0x11c)][_0x26369d]&&(_0x35b01b[_0x357817(0x11c)][_0x26369d]=_0x193d4f);}}};}static async[_0xb9c5d8(0x110)](_0x18ba60){const _0x41f2ef=_0xb9c5d8;if(_0x18ba60){const _0x438838=(0x0,path_1[_0x41f2ef(0x12e)])(resource_1['PROJECT_DIRECTORY'],resource_1[_0x41f2ef(0x123)]),_0xa150a5=(0x0,path_1[_0x41f2ef(0x12e)])(_0x438838,_0x41f2ef(0x10c)),_0x3dd7f7=_0x41f2ef(0x15c)+_0x18ba60[_0x41f2ef(0x166)]()['replace'](_0x41f2ef(0xfc),''),_0x204552=(0x0,path_1['join'])(_0x438838,_0x3dd7f7);let _0x443af3=await(0x0,load_1[_0x41f2ef(0x101)])(_0xa150a5);_0x443af3[_0x41f2ef(0x146)][0x0][_0x41f2ef(0x159)]=_0x3dd7f7,await _0x18ba60[_0x41f2ef(0x11b)](_0x204552),await fs[_0x41f2ef(0x11e)](_0xa150a5,JSON[_0x41f2ef(0xfe)](_0x443af3));const _0x516901=(0x0,path_1['join'])(resource_1[_0x41f2ef(0x14f)],resource_1[_0x41f2ef(0x13b)]),_0x4f9433=(0x0,path_1[_0x41f2ef(0x12e)])(_0x516901,_0x41f2ef(0x10c)),_0x55336f='icon.png',_0x3021e1=(0x0,path_1[_0x41f2ef(0x12e)])(_0x516901,_0x55336f);let _0x2aa87d=await(0x0,load_1[_0x41f2ef(0x101)])(_0x4f9433),_0x565e9d=imageHelper_1[_0x41f2ef(0xff)]['createImg'](0x200);_0x2aa87d[_0x41f2ef(0x146)][0x0]['filename']=_0x55336f,await _0x565e9d[_0x41f2ef(0x11b)](_0x3021e1),await fs[_0x41f2ef(0x11e)](_0x4f9433,JSON[_0x41f2ef(0xfe)](_0x2aa87d));}}static[_0xb9c5d8(0x128)](_0x4725cb,_0x33a9b4){const _0x58d45c=_0xb9c5d8;_0x4725cb['updateBuildProperty']('DEVELOPMENT_TEAM',_0x33a9b4),useExportOptionsXML=useExportOptionsXML[_0x58d45c(0x164)](_0x58d45c(0x121),_0x33a9b4);}static['updateExportOptions'](){const _0x4a51b2=_0xb9c5d8;!fs['existsSync'](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0x4a51b2(0x13a)](resource_1[_0x4a51b2(0x13e)],{'recursive':!![]}),fs['writeFileSync']((0x0,path_1['join'])(resource_1[_0x4a51b2(0x13e)],_0x4a51b2(0x152)),useExportOptionsXML);}static['bindManifestInfo'](_0xcbed67,_0x54cab9,_0x10db5b=![]){const _0x42918f=_0xb9c5d8;var _0x4bef20;_0xcbed67['updateProductName'](_0x54cab9[_0x42918f(0x102)]),_0x54cab9['id']&&!_0x10db5b&&_0xcbed67['updateBuildProperty'](_0x42918f(0x117),'\x22'+_0x54cab9['id']+'\x22'),this[_0x42918f(0x153)]((_0x4bef20=_0x54cab9['protocol_handlers'])!==null&&_0x4bef20!==void 0x0?_0x4bef20:[]),this[_0x42918f(0x157)](_0x54cab9);}static['updateVersion'](_0x112dad,_0x192c25){const _0x4b10e9=_0xb9c5d8;_0x112dad[_0x4b10e9(0x14e)](_0x4b10e9(0x148),_0x192c25);}static['updateDeeplink'](_0x3fb742){const _0x452fdb=_0xb9c5d8;let _0x1a402b=(0x0,path_1['join'])(resource_1[_0x452fdb(0x14f)],'./web-spatial/Info.plist'),_0x3e3814='';for(let _0xc62497=0x0;_0xc62497<_0x3fb742[_0x452fdb(0x127)];_0xc62497++){_0x3e3814+=_0x452fdb(0xfd)+_0x3fb742[_0xc62497][_0x452fdb(0x100)]+_0x452fdb(0x13f);}const _0x2bdd93=infoPlistXML[_0x452fdb(0x164)](_0x452fdb(0x107),_0x3e3814);fs[_0x452fdb(0x11e)](_0x1a402b,_0x2bdd93);}static['modifySwift'](_0x113014){const _0x3b3272=_0xb9c5d8,_0x44836d=(0x0,path_1[_0x3b3272(0x12e)])(resource_1[_0x3b3272(0x14f)],_0x3b3272(0x12c));let _0x4f0e54=manifestSwiftTemplate_1[_0x3b3272(0x134)];_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x138),_0x113014[_0x3b3272(0x104)]),_0x4f0e54=_0x4f0e54['replace']('SCOPE',_0x113014[_0x3b3272(0x14a)]),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x15e),_0x113014['name']),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x118),_0x113014[_0x3b3272(0x144)]),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)]('AppID',_0x113014['id']),_0x4f0e54=_0x4f0e54['replace']('.minimal',_0x113014[_0x3b3272(0x168)]==_0x3b3272(0x14b)?_0x3b3272(0x139):'.'+_0x113014['display']);if(_0x113014[_0x3b3272(0x12d)]){let _0x2b99b9='';for(let _0x2952cb=0x0;_0x2952cb<_0x113014[_0x3b3272(0x12d)]['length'];_0x2952cb++){_0x2b99b9+='PWAProtocol(protocolValue:\x20\x22'+_0x113014[_0x3b3272(0x12d)][_0x2952cb][_0x3b3272(0x100)]+_0x3b3272(0x116)+_0x113014[_0x3b3272(0x12d)][_0x2952cb][_0x3b3272(0x124)]+_0x3b3272(0x111);}_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x133),_0x2b99b9);}typeof _0x113014[_0x3b3272(0x141)]===_0x3b3272(0x108)?(_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)]('SceneWidth',_0x113014[_0x3b3272(0x141)][_0x3b3272(0x132)][_0x3b3272(0x13d)]),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x11a),_0x113014[_0x3b3272(0x141)]['defaultSize']['height']),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x161),'\x22'+_0x113014['mainScene'][_0x3b3272(0x147)]+'\x22'),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)]('USE_MAIN_SCENE',_0x3b3272(0x10d))):(_0x4f0e54=_0x4f0e54['replace'](_0x3b3272(0x130),_0x3b3272(0x10f)),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)]('SceneHeight',_0x3b3272(0x10f)),_0x4f0e54=_0x4f0e54['replace'](_0x3b3272(0x161),'\x22automatic\x22'),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x122),_0x3b3272(0x131))),fs['writeFileSync'](_0x44836d,_0x4f0e54,_0x3b3272(0x140));}}exports[_0xb9c5d8(0x15d)]=XcodeProject;
|
|
1
|
+
'use strict';function _0x1916(_0x18a5eb,_0x5e069c){const _0x198373=_0x1983();return _0x1916=function(_0x19167a,_0x400c65){_0x19167a=_0x19167a-0x10f;let _0x10d710=_0x198373[_0x19167a];return _0x10d710;},_0x1916(_0x18a5eb,_0x5e069c);}const _0x4ef98a=_0x1916;(function(_0x2d0c03,_0x421f5c){const _0x50de9f=_0x1916,_0x2aa97a=_0x2d0c03();while(!![]){try{const _0x4a792d=parseInt(_0x50de9f(0x13f))/0x1*(-parseInt(_0x50de9f(0x173))/0x2)+-parseInt(_0x50de9f(0x110))/0x3+parseInt(_0x50de9f(0x179))/0x4+-parseInt(_0x50de9f(0x153))/0x5*(parseInt(_0x50de9f(0x146))/0x6)+-parseInt(_0x50de9f(0x160))/0x7*(parseInt(_0x50de9f(0x13a))/0x8)+parseInt(_0x50de9f(0x158))/0x9+parseInt(_0x50de9f(0x119))/0xa;if(_0x4a792d===_0x421f5c)break;else _0x2aa97a['push'](_0x2aa97a['shift']());}catch(_0x528321){_0x2aa97a['push'](_0x2aa97a['shift']());}}}(_0x1983,0xd63a5));function _0x1983(){const _0x295b9b=['14mWTNSz','\x22,\x20url:\x20\x22','default','mainScene','../resource/load','split','updateBuildProperty','height','bindIcon','../resource','release-testing','MIDDLE_APPICON_DIRECTORY','PRODUCT_BUNDLE_IDENTIFIER','display','fixProjectFunction','version','SceneWidth','description','updateProductName','321228uRbUXq','minimal-ui','modify','PROJECT_BUILD_DIRECTORY','test','false','2403464tkUFAu','value','images','protocol_handlers','Description','loadJsonFromDisk','PROJECT_DIRECTORY','3709125aaawCC','image/','Contents.json','writeAsync','name','DEEPLINK','icon.','SceneHeight','app-store-connect','24412280bnwVQa','updateVersion','manifestSwiftTemplate','buildConfigurations','join','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>destination</key>\x0a\x09<string>export</string>\x0a\x09<key>method</key>\x0a\x09<string>BUILDTYPE</string>\x0a\x09<key>signingStyle</key>\x0a\x09<string>automatic</string>\x0a\x09<key>stripSwiftSymbols</key>\x0a\x09<true/>\x0a\x09<key>teamID</key>\x0a\x09<string>YOURTEAMID</string>\x0a\x09<key>thinning</key>\x0a\x09<string><none></string>\x0a</dict>\x0a</plist>','createImg','getMIME','debugging','./manifestSwiftTemplate','replace','path','pbxGroupByName','buildType','updateDeeplink','writeFileSync','stringify','pbxXCConfigurationList','../resource/imageHelper','width','1280','__esModule','project','./web-spatial/Info.plist','modifySwift','icon.png','true','updateExportOptions','ExportOptions.plist','BACK_APPICON_DIRECTORY','start_url','objects','\x22automatic\x22','1711664TUGoDe','.minimal','defaultSize','filename','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','1mXhhIE','ImageHelper','defineProperty','teamId','protocol','hash','enterprise','4092qFpuOD','DEVELOPMENT_TEAM','USE_MAIN_SCENE','BUILDTYPE','CURRENT_PROJECT_VERSION','SCOPE','1.0','scope','START_URL','existsSync','SceneResizability','AppName','updateTeamId','2955iFMAEB','\x22),','manifestInfo','YOURTEAMID','</string>','570150mZpbiR','xcode','mkdirSync','length','PBXGroup','buildSettings','includes','parseSync'];_0x1983=function(){return _0x295b9b;};return _0x1983();}Object[_0x4ef98a(0x141)](exports,_0x4ef98a(0x12e),{'value':!![]});const fs=require('fs'),resource_1=require(_0x4ef98a(0x169)),path_1=require(_0x4ef98a(0x124)),load_1=require(_0x4ef98a(0x164)),imageHelper_1=require(_0x4ef98a(0x12b)),manifestSwiftTemplate_1=require(_0x4ef98a(0x122)),xcode=require(_0x4ef98a(0x159)),exportOptionsXML=_0x4ef98a(0x11e),infoPlistXML='<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a';let useExportOptionsXML='';class XcodeProject{static async[_0x4ef98a(0x175)](_0x4b009c,_0x186d09,_0x35f587=![]){const _0xe98e72=_0x4ef98a;let _0x3c6cb3=xcode[_0xe98e72(0x12f)](_0x4b009c);this[_0xe98e72(0x16e)](_0x3c6cb3),_0x3c6cb3[_0xe98e72(0x15f)]();let _0x34227f=_0x186d09[_0xe98e72(0x126)];const _0x54f1da=[_0xe98e72(0x16a),_0xe98e72(0x118),_0xe98e72(0x121),_0xe98e72(0x145)];useExportOptionsXML=exportOptionsXML['replace'](_0xe98e72(0x149),_0x54f1da[_0xe98e72(0x15e)](_0x34227f)?_0x34227f:_0xe98e72(0x16a));_0x186d09[_0xe98e72(0x142)]&&this[_0xe98e72(0x152)](_0x3c6cb3,_0x186d09[_0xe98e72(0x142)]);this[_0xe98e72(0x134)]();if(_0x186d09['icon'])await this[_0xe98e72(0x168)](_0x186d09['icon']);this['bindManifestInfo'](_0x3c6cb3,_0x186d09[_0xe98e72(0x155)]['json'],_0x35f587);_0x186d09[_0xe98e72(0x16f)]?this[_0xe98e72(0x11a)](_0x3c6cb3,_0x186d09[_0xe98e72(0x16f)]):this[_0xe98e72(0x11a)](_0x3c6cb3,_0xe98e72(0x14c));try{fs[_0xe98e72(0x128)](_0x4b009c,_0x3c6cb3['writeSync']());}catch(_0x1b847f){console['log'](_0x1b847f);}}static[_0x4ef98a(0x16e)](_0xd1f8df){const _0x578029=_0x4ef98a;_0xd1f8df[_0x578029(0x125)]=function(_0x2066da){const _0x4c0bd5=_0x578029;var _0x3d5d19=this[_0x4c0bd5(0x144)][_0x4c0bd5(0x12f)][_0x4c0bd5(0x138)][_0x4c0bd5(0x15c)],_0x89bcab,_0x5073d7;for(_0x89bcab in _0x3d5d19){if(!/_comment$/[_0x4c0bd5(0x177)](_0x89bcab))continue;if(_0x3d5d19[_0x89bcab]==_0x2066da)return _0x5073d7=_0x89bcab[_0x4c0bd5(0x165)](/_comment$/)[0x0],_0x3d5d19[_0x5073d7];}return![];},_0xd1f8df['updateBuildProperty']=function(_0x1be9d9,_0x2f54c0,_0x1499b9,_0x2a6c87){const _0x32cf7b=_0x578029;let _0x49362c=[];const _0x42a34e=/_comment$/;if(_0x2a6c87){const _0x11b991=this['pbxTargetByName'](_0x2a6c87),_0x4eae1d=_0x11b991&&_0x11b991['buildConfigurationList'],_0x364303=this[_0x32cf7b(0x12a)]();for(const _0x26b091 in _0x364303){if(!_0x42a34e['test'](_0x26b091)&&_0x4eae1d===_0x26b091){const _0x4fe99d=_0x364303[_0x26b091][_0x32cf7b(0x11c)];for(const _0x43d9 of _0x4fe99d){_0x49362c['push'](_0x43d9[_0x32cf7b(0x17a)]);}break;}}}var _0x186539=this['pbxXCBuildConfigurationSection']();for(var _0x1dbe43 in _0x186539){if(!_0x42a34e[_0x32cf7b(0x177)](_0x1dbe43)){if(_0x2a6c87&&!_0x49362c[_0x32cf7b(0x15e)](_0x1dbe43))continue;var _0x49e4e5=_0x186539[_0x1dbe43];(_0x1499b9&&_0x49e4e5[_0x32cf7b(0x114)]===_0x1499b9||!_0x1499b9)&&_0x49e4e5[_0x32cf7b(0x15d)][_0x1be9d9]&&(_0x49e4e5[_0x32cf7b(0x15d)][_0x1be9d9]=_0x2f54c0);}}};}static async[_0x4ef98a(0x168)](_0x2bd54c){const _0x4b632d=_0x4ef98a;if(_0x2bd54c){const _0xa8621c=(0x0,path_1[_0x4b632d(0x11d)])(resource_1[_0x4b632d(0x10f)],resource_1[_0x4b632d(0x136)]),_0x3b3472=(0x0,path_1[_0x4b632d(0x11d)])(_0xa8621c,_0x4b632d(0x112)),_0xcac5d7=_0x4b632d(0x116)+_0x2bd54c[_0x4b632d(0x120)]()[_0x4b632d(0x123)](_0x4b632d(0x111),''),_0x3afe0e=(0x0,path_1[_0x4b632d(0x11d)])(_0xa8621c,_0xcac5d7);let _0x4e0b6e=await(0x0,load_1[_0x4b632d(0x17e)])(_0x3b3472);_0x4e0b6e[_0x4b632d(0x17b)][0x0]['filename']=_0xcac5d7,await _0x2bd54c['writeAsync'](_0x3afe0e),await fs[_0x4b632d(0x128)](_0x3b3472,JSON[_0x4b632d(0x129)](_0x4e0b6e));const _0x1d0f95=(0x0,path_1[_0x4b632d(0x11d)])(resource_1[_0x4b632d(0x10f)],resource_1[_0x4b632d(0x16b)]),_0x4704e6=(0x0,path_1[_0x4b632d(0x11d)])(_0x1d0f95,_0x4b632d(0x112)),_0x727afe=_0x4b632d(0x132),_0x13c5f0=(0x0,path_1['join'])(_0x1d0f95,_0x727afe);let _0xd9613a=await(0x0,load_1[_0x4b632d(0x17e)])(_0x4704e6),_0x425ab0=imageHelper_1[_0x4b632d(0x140)][_0x4b632d(0x11f)](0x200);_0xd9613a[_0x4b632d(0x17b)][0x0][_0x4b632d(0x13d)]=_0x727afe,await _0x425ab0[_0x4b632d(0x113)](_0x13c5f0),await fs[_0x4b632d(0x128)](_0x4704e6,JSON[_0x4b632d(0x129)](_0xd9613a));}}static['updateTeamId'](_0x475fe2,_0x45ebeb){const _0x6cd130=_0x4ef98a;_0x475fe2['updateBuildProperty'](_0x6cd130(0x147),_0x45ebeb),useExportOptionsXML=useExportOptionsXML[_0x6cd130(0x123)](_0x6cd130(0x156),_0x45ebeb);}static[_0x4ef98a(0x134)](){const _0x38cc09=_0x4ef98a;!fs[_0x38cc09(0x14f)](resource_1[_0x38cc09(0x176)])&&fs[_0x38cc09(0x15a)](resource_1[_0x38cc09(0x176)],{'recursive':!![]}),fs[_0x38cc09(0x128)]((0x0,path_1[_0x38cc09(0x11d)])(resource_1[_0x38cc09(0x176)],_0x38cc09(0x135)),useExportOptionsXML);}static['bindManifestInfo'](_0x172af3,_0x5dfb8f,_0x4c562e=![]){const _0x26c333=_0x4ef98a;var _0x4c73bd;_0x172af3[_0x26c333(0x172)](_0x5dfb8f[_0x26c333(0x114)]),_0x5dfb8f['id']&&!_0x4c562e&&_0x172af3[_0x26c333(0x166)](_0x26c333(0x16c),'\x22'+_0x5dfb8f['id']+'\x22'),this[_0x26c333(0x127)]((_0x4c73bd=_0x5dfb8f[_0x26c333(0x17c)])!==null&&_0x4c73bd!==void 0x0?_0x4c73bd:[]),this[_0x26c333(0x131)](_0x5dfb8f);}static['updateVersion'](_0x3b4beb,_0x53e4f9){const _0x3d8adb=_0x4ef98a;_0x3b4beb['updateBuildProperty'](_0x3d8adb(0x14a),_0x53e4f9);}static['updateDeeplink'](_0x144c3c){const _0x2c3e78=_0x4ef98a;let _0x3b21b7=(0x0,path_1['join'])(resource_1['PROJECT_DIRECTORY'],_0x2c3e78(0x130)),_0x3e8ad5='';for(let _0x10b713=0x0;_0x10b713<_0x144c3c[_0x2c3e78(0x15b)];_0x10b713++){_0x3e8ad5+='<string>'+_0x144c3c[_0x10b713][_0x2c3e78(0x143)]+_0x2c3e78(0x157);}const _0x45ccb5=infoPlistXML[_0x2c3e78(0x123)](_0x2c3e78(0x115),_0x3e8ad5);fs['writeFileSync'](_0x3b21b7,_0x45ccb5);}static[_0x4ef98a(0x131)](_0xbe4613){const _0x85c92f=_0x4ef98a,_0x189e2a=(0x0,path_1['join'])(resource_1[_0x85c92f(0x10f)],'./web-spatial/libs/webView/manifest.swift');let _0x37354a=manifestSwiftTemplate_1[_0x85c92f(0x11b)];_0x37354a=_0x37354a[_0x85c92f(0x123)](_0x85c92f(0x14e),_0xbe4613[_0x85c92f(0x137)]),_0x37354a=_0x37354a['replace'](_0x85c92f(0x14b),_0xbe4613[_0x85c92f(0x14d)]),_0x37354a=_0x37354a[_0x85c92f(0x123)](_0x85c92f(0x151),_0xbe4613[_0x85c92f(0x114)]),_0x37354a=_0x37354a[_0x85c92f(0x123)](_0x85c92f(0x17d),_0xbe4613[_0x85c92f(0x171)]),_0x37354a=_0x37354a[_0x85c92f(0x123)]('AppID',_0xbe4613['id']),_0x37354a=_0x37354a[_0x85c92f(0x123)](_0x85c92f(0x13b),_0xbe4613[_0x85c92f(0x16d)]==_0x85c92f(0x174)?_0x85c92f(0x13b):'.'+_0xbe4613[_0x85c92f(0x16d)]);if(_0xbe4613['protocol_handlers']){let _0x1a580d='';for(let _0xd1d6b8=0x0;_0xd1d6b8<_0xbe4613[_0x85c92f(0x17c)]['length'];_0xd1d6b8++){_0x1a580d+='PWAProtocol(protocolValue:\x20\x22'+_0xbe4613[_0x85c92f(0x17c)][_0xd1d6b8][_0x85c92f(0x143)]+_0x85c92f(0x161)+_0xbe4613['protocol_handlers'][_0xd1d6b8]['url']+_0x85c92f(0x154);}_0x37354a=_0x37354a[_0x85c92f(0x123)](_0x85c92f(0x13e),_0x1a580d);}typeof _0xbe4613['mainScene']==='object'?(_0x37354a=_0x37354a[_0x85c92f(0x123)](_0x85c92f(0x170),_0xbe4613[_0x85c92f(0x163)]['defaultSize'][_0x85c92f(0x12c)]),_0x37354a=_0x37354a[_0x85c92f(0x123)](_0x85c92f(0x117),_0xbe4613[_0x85c92f(0x163)][_0x85c92f(0x13c)][_0x85c92f(0x167)]),_0x37354a=_0x37354a[_0x85c92f(0x123)](_0x85c92f(0x150),'\x22'+_0xbe4613['mainScene']['resizability']+'\x22'),_0x37354a=_0x37354a[_0x85c92f(0x123)](_0x85c92f(0x148),_0x85c92f(0x133))):(_0x37354a=_0x37354a[_0x85c92f(0x123)](_0x85c92f(0x170),_0x85c92f(0x12d)),_0x37354a=_0x37354a[_0x85c92f(0x123)](_0x85c92f(0x117),'1280'),_0x37354a=_0x37354a[_0x85c92f(0x123)](_0x85c92f(0x150),_0x85c92f(0x139)),_0x37354a=_0x37354a[_0x85c92f(0x123)](_0x85c92f(0x148),_0x85c92f(0x178))),fs[_0x85c92f(0x128)](_0x189e2a,_0x37354a,'utf-8');}}exports[_0x4ef98a(0x162)]=XcodeProject;
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xf1c517=_0x1511;(function(_0x119008,_0x1e3ec5){const _0x551256=_0x1511,_0x448a81=_0x119008();while(!![]){try{const _0x6ead40=-parseInt(_0x551256(0x1b4))/0x1+-parseInt(_0x551256(0x1c5))/0x2+parseInt(_0x551256(0x16e))/0x3*(-parseInt(_0x551256(0x198))/0x4)+parseInt(_0x551256(0x1bf))/0x5+parseInt(_0x551256(0x1bb))/0x6*(parseInt(_0x551256(0x171))/0x7)+parseInt(_0x551256(0x1c2))/0x8*(-parseInt(_0x551256(0x167))/0x9)+-parseInt(_0x551256(0x149))/0xa*(-parseInt(_0x551256(0x19e))/0xb);if(_0x6ead40===_0x1e3ec5)break;else _0x448a81['push'](_0x448a81['shift']());}catch(_0x576628){_0x448a81['push'](_0x448a81['shift']());}}}(_0x52e0,0xc37c1));function _0x52e0(){const _0x5c7ca1=['../utils/utils','listSimulator','no\x20visionOS\x20simulator\x20found','\x20--validate-app\x20-f\x20','launchWithSimulator','\x27\x20-derivedDataPath\x20','973350JKgMLD','shutdownSimulator','write','verbose','parseSupportRuntimes','\x20--apiKey\x20','listDeviceTypes','3030uLvTWV','listDevices','No\x20visionOS\x20rumtime\x20found!\x20Please\x20go\x20to\x20Xcode\x20to\x20download\x20the\x20Apple\x20Vision\x20Pro\x20simulator','replace','7860585WNXOBh','project','create\x20visionOS\x20simulator:\x20','24MZDxVQ','\x20and\x20','No\x20Apple\x20Vision\x20Pro\x20simulator\x20found!\x20Please\x20go\x20to\x20Xcode\x20to\x20download\x20the\x20Apple\x20Vision\x20Pro\x20simulator','1438258bljeDf','Shutdown','visionos','\x20&&\x20xcodebuild\x20-showdestinations\x20-scheme\x20web-spatial','\x20--verbose','state','terminate','listRuntimes','\x20--bundle-version\x20','\x20--apiIssuer\x20','validate','../utils/history','\x20simctl','buildTestApp','line','find\x20simulators:','\x20boot\x20\x22','shutdown','15009020aXqHTu','install','uploadApp','altool','no\x20simulator\x20available','execSync','../resource','mkdirSync','cd\x20','appleId',',\x20try\x20next\x20device','getSimulatorHistory','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','runWithSimulator','createSimulator','xcrun','--\x20','findSimulator','__esModule','parseDeviceInfo','com','version','installApp','PROJECT_DIRECTORY','authApi','log','\x22\x20\x22','create','info','simctl','1106514atgaHU','**\x20BUILD\x20FAILED\x20**','error','runWithHistory','uploadPackage','split','indexOf','23367oWvjHa','\x20launch\x20\x22','PROJECT_BUILD_DIRECTORY','4417iDizCk','try\x20create\x20a\x20visionOS\x20simulator','\x20to\x20create\x20visionOS\x20simulator','\x20list\x20runtimes','installing\x20app','platform','includes','PROJECT_TEST_DIRECTORY','test','platform:visionOS\x20Simulator','join','----\x20build\x20start\x20on\x20','existsSync','trim','Build/Products/Debug-xrsimulator/','--\x20visionOS','install\x20success',',\x20name','launchApp','authAccount','toString','length','deviceId','default','launch','push','parseDestinationDevices','-------------------\x20build\x20end\x20-------------------','\x20list','visionOS','launchSimulator','id:','warn','../resource/file','find\x20simulator:\x20','getAppInfoRecord','parseListDevices','open\x20-a\x20Simulator\x20--args\x20-CurrentDeviceUDID\x20','\x20--apple-id\x20','272lKcAOl','\x20-p\x20','/web-spatial.xcodeproj','sleep\x2010','Apple\x20Vision\x20Pro','XcodebuildCMD','11NOmpUD','use\x20','\x20--upload-app\x20-f\x20','list','parseSupportDevices','CliLog','recordSimulator','simulator\x20is\x20already\x20shutdown','find\x20destination\x20device:\x20','.app','slice','use\x20simulator:\x20','boot','\x20----','./xcodebuild','name'];_0x52e0=function(){return _0x5c7ca1;};return _0x52e0();}Object['defineProperty'](exports,_0xf1c517(0x15b),{'value':!![]});const child_process_1=require('child_process'),resource_1=require(_0xf1c517(0x14f)),path_1=require('path'),fs=require('fs'),xcodebuild_1=require(_0xf1c517(0x1ac)),file_1=require(_0xf1c517(0x192)),utils_1=require(_0xf1c517(0x1ae)),history_1=require(_0xf1c517(0x1d0));function _0x1511(_0x135d46,_0x1f8d86){const _0x52e075=_0x52e0();return _0x1511=function(_0x1511a6,_0x2760ca){_0x1511a6=_0x1511a6-0x144;let _0x70a3d5=_0x52e075[_0x1511a6];return _0x70a3d5;},_0x1511(_0x135d46,_0x1f8d86);}class Xcrun{static async['validate'](_0x22c531,_0x1c4fb3,_0x7f3d71,_0x28616f){const _0x1650d1=_0xf1c517,_0x1f2519=new XcrunCMD()[_0x1650d1(0x14c)]();_0x1f2519[_0x1650d1(0x1cf)](_0x22c531);_0x28616f?_0x1f2519[_0x1650d1(0x184)](_0x1c4fb3,_0x7f3d71):_0x1f2519[_0x1650d1(0x161)](_0x1c4fb3,_0x7f3d71);_0x1f2519[_0x1650d1(0x176)](_0x1650d1(0x1c7));const _0x3af795=(0x0,child_process_1[_0x1650d1(0x14e)])(_0x1f2519[_0x1650d1(0x145)]);return _0x3af795['toString']();}static async[_0xf1c517(0x16b)](_0x5bd2f1,_0x3cc021,_0x5eb053,_0x5b5684,_0x394e42){const _0x2e5391=_0xf1c517,_0x59fcb7=new XcrunCMD()[_0x2e5391(0x14c)]();_0x59fcb7['uploadPackage'](_0x5bd2f1);_0x394e42?_0x59fcb7['authAccount'](_0x3cc021,_0x5eb053):_0x59fcb7[_0x2e5391(0x161)](_0x3cc021,_0x5eb053);_0x59fcb7['platform'](_0x2e5391(0x1c7)),_0x59fcb7['appleId'](_0x5b5684);const _0x2390a4=(0x0,child_process_1[_0x2e5391(0x14e)])(_0x59fcb7['line']);return _0x2390a4[_0x2e5391(0x185)]();}static async[_0xf1c517(0x14b)](_0x3aa21c,_0x4030b0,_0x42a358,_0x22f0f4){const _0xa311c9=_0xf1c517,_0x52ad94=new XcrunCMD()[_0xa311c9(0x14c)]();_0x52ad94[_0xa311c9(0x14b)](_0x3aa21c);_0x22f0f4?_0x52ad94[_0xa311c9(0x184)](_0x4030b0,_0x42a358):_0x52ad94[_0xa311c9(0x161)](_0x4030b0,_0x42a358);_0x52ad94[_0xa311c9(0x176)](_0xa311c9(0x1c7));const _0x160758=(0x0,child_process_1['execSync'])(_0x52ad94[_0xa311c9(0x145)]);return _0x160758[_0xa311c9(0x185)]();}static async[_0xf1c517(0x156)](){const _0x13b494=_0xf1c517;let _0x1d52e7=this['findSimulator']();!_0x1d52e7[0x0]&&(_0x1d52e7=[this[_0x13b494(0x157)]()]);const _0x9d4d04=history_1[_0x13b494(0x188)][_0x13b494(0x194)]();for(var _0x51488d=0x0;_0x51488d<_0x1d52e7[_0x13b494(0x186)];_0x51488d++){if(this[_0x13b494(0x144)](_0x1d52e7[_0x51488d][_0x13b494(0x187)])){const _0x260f04=this[_0x13b494(0x1b2)](_0x9d4d04,_0x1d52e7[_0x51488d][_0x13b494(0x187)],!![],![]);history_1[_0x13b494(0x188)][_0x13b494(0x1a4)](_0x260f04),history_1[_0x13b494(0x188)][_0x13b494(0x1b6)]();return;}else utils_1[_0x13b494(0x1a3)][_0x13b494(0x169)]('build\x20failed\x20on\x20'+_0x1d52e7[_0x51488d][_0x13b494(0x187)]+_0x13b494(0x153));}utils_1[_0x13b494(0x1a3)][_0x13b494(0x169)](_0x13b494(0x14d));}static async[_0xf1c517(0x16a)](){const _0x2b5e0d=_0xf1c517,_0x299a4a=history_1[_0x2b5e0d(0x188)][_0x2b5e0d(0x154)](),_0x1b03a4=history_1[_0x2b5e0d(0x188)][_0x2b5e0d(0x194)](),_0x3456ec=this['launchWithSimulator'](_0x1b03a4,_0x299a4a);history_1[_0x2b5e0d(0x188)][_0x2b5e0d(0x1a4)](_0x3456ec),history_1['default'][_0x2b5e0d(0x1b6)]();}static[_0xf1c517(0x1b2)](_0xb67382,_0x3512b5='',_0x556fe2=![],_0x12224f=!![]){const _0x41b0d2=_0xf1c517;let _0x104607,_0x1a11c0=![];return _0x12224f?_0x104607=this[_0x41b0d2(0x15a)](_0x3512b5)[0x0]:_0x104607=this['searchSimulator'](_0x3512b5),(!_0x104607||_0x104607[_0x41b0d2(0x187)]==='')&&(_0x104607=this[_0x41b0d2(0x157)](),_0x1a11c0=!![]),console[_0x41b0d2(0x162)](_0x41b0d2(0x1a9)+_0x104607[_0x41b0d2(0x187)]),this[_0x41b0d2(0x18f)](_0x104607),(_0x556fe2||_0x1a11c0)&&(console[_0x41b0d2(0x162)](_0x41b0d2(0x175)),this[_0x41b0d2(0x15f)](resource_1[_0x41b0d2(0x178)],_0x104607[_0x41b0d2(0x187)],_0xb67382[_0x41b0d2(0x1ad)]),console['log'](_0x41b0d2(0x181))),console[_0x41b0d2(0x162)]('launch\x20app'),this[_0x41b0d2(0x183)](_0x104607[_0x41b0d2(0x187)],_0xb67382['id']),_0x104607['deviceId'];}static async[_0xf1c517(0x1b5)](){const _0x33401f=_0xf1c517;let _0x43ec5c=this[_0x33401f(0x15a)]()[0x0];console[_0x33401f(0x162)](_0x33401f(0x193)+_0x43ec5c[_0x33401f(0x187)]);if(_0x43ec5c[_0x33401f(0x1ca)]!==_0x33401f(0x1c6)){let _0x3aa323=new XcrunCMD()[_0x33401f(0x166)]();_0x3aa323[_0x33401f(0x148)](_0x43ec5c[_0x33401f(0x187)]),(0x0,child_process_1['execSync'])(_0x3aa323[_0x33401f(0x145)]);}else console[_0x33401f(0x162)](_0x33401f(0x1a5));}static[_0xf1c517(0x18f)](_0x32adfe){const _0x19210=_0xf1c517;if(_0x32adfe[_0x19210(0x1ca)]===_0x19210(0x1c6)){let _0x269bbc=new XcrunCMD()[_0x19210(0x166)]();_0x269bbc[_0x19210(0x1aa)](_0x32adfe[_0x19210(0x187)]),(0x0,child_process_1[_0x19210(0x14e)])(_0x269bbc[_0x19210(0x145)]),(0x0,child_process_1[_0x19210(0x14e)])(_0x19210(0x19b));}(0x0,child_process_1[_0x19210(0x14e)])(_0x19210(0x196)+_0x32adfe['deviceId']);}static['buildTestApp'](_0x9d1286){const _0x51f320=_0xf1c517,_0xe49ee4=resource_1[_0x51f320(0x160)]+_0x51f320(0x19a);!fs[_0x51f320(0x17d)](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0x51f320(0x150)](resource_1[_0x51f320(0x170)],{'recursive':!![]});!fs[_0x51f320(0x17d)](resource_1['PROJECT_TEST_DIRECTORY'])&&fs[_0x51f320(0x150)](resource_1[_0x51f320(0x178)],{'recursive':!![]});(0x0,file_1['clearDir'])(resource_1[_0x51f320(0x178)]);const _0x234c57=new xcodebuild_1[(_0x51f320(0x19d))]()[_0x51f320(0x1c0)](_0xe49ee4)[_0x51f320(0x145)]+(_0x51f320(0x155)+_0x9d1286+_0x51f320(0x1b3)+resource_1['PROJECT_TEST_DIRECTORY']);console[_0x51f320(0x162)](_0x51f320(0x17c)+_0x9d1286+_0x51f320(0x1ab));try{const _0x5ad480=(0x0,child_process_1[_0x51f320(0x14e)])(_0x234c57);if(_0x5ad480['toString']()['includes'](_0x51f320(0x168)))return![];}catch(_0x4fc10e){}return console[_0x51f320(0x162)](_0x51f320(0x18c)),!![];}static[_0xf1c517(0x15f)](_0xe8043c,_0x46614a,_0x42d219){const _0x33179a=_0xf1c517,_0x26783c=(0x0,path_1[_0x33179a(0x17b)])(_0xe8043c,_0x33179a(0x17f)+_0x42d219+_0x33179a(0x1a7));let _0x1b644a=new XcrunCMD()[_0x33179a(0x166)]();_0x1b644a[_0x33179a(0x14a)](_0x46614a,_0x26783c),(0x0,child_process_1[_0x33179a(0x14e)])(_0x1b644a[_0x33179a(0x145)]);}static['launchApp'](_0x19c0af,_0x3ec0be){const _0x4774d4=_0xf1c517;try{(0x0,child_process_1[_0x4774d4(0x14e)])(new XcrunCMD()[_0x4774d4(0x166)]()[_0x4774d4(0x1cb)](_0x19c0af,_0x3ec0be)[_0x4774d4(0x145)]);}catch(_0x55d8b9){}(0x0,child_process_1[_0x4774d4(0x14e)])(new XcrunCMD()[_0x4774d4(0x166)]()[_0x4774d4(0x189)](_0x19c0af,_0x3ec0be)[_0x4774d4(0x145)]);}static[_0xf1c517(0x18b)](_0x172394){const _0x11be7b=_0xf1c517;let _0x2982f8=_0x172394['split']('\x0a');const _0x77cef=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/;let _0x433108=[];for(let _0x426ae4=0x0;_0x426ae4<_0x2982f8[_0x11be7b(0x186)];_0x426ae4++){if(_0x2982f8[_0x426ae4][_0x11be7b(0x177)](_0x11be7b(0x17a))){const _0x489d68=_0x2982f8[_0x426ae4][_0x11be7b(0x1a8)](_0x2982f8[_0x426ae4][_0x11be7b(0x16d)](_0x11be7b(0x190))+0x3,_0x2982f8[_0x426ae4][_0x11be7b(0x16d)](_0x11be7b(0x182)));_0x77cef[_0x11be7b(0x179)](_0x489d68)&&(_0x433108['push'](_0x489d68),console[_0x11be7b(0x162)](_0x11be7b(0x1a6)+_0x2982f8[_0x426ae4]+')'));}}return _0x433108;}static[_0xf1c517(0x1a2)](_0x3104ca){const _0x31a8d0=_0xf1c517;let _0xb1d50e=_0x3104ca[_0x31a8d0(0x16c)]('\x0a');for(let _0x4b06a6=0x0;_0x4b06a6<_0xb1d50e[_0x31a8d0(0x186)];_0x4b06a6++){if(_0xb1d50e[_0x4b06a6][_0x31a8d0(0x177)](_0x31a8d0(0x19c)))return _0xb1d50e[_0x4b06a6]=_0xb1d50e[_0x4b06a6][_0x31a8d0(0x1be)](_0x31a8d0(0x19c),'')['trim'](),_0xb1d50e[_0x4b06a6]=_0xb1d50e[_0x4b06a6][_0x31a8d0(0x1be)]('(',''),_0xb1d50e[_0x4b06a6]=_0xb1d50e[_0x4b06a6][_0x31a8d0(0x1be)](')',''),_0xb1d50e[_0x4b06a6];}throw new Error(_0x31a8d0(0x1c4));}static['parseSupportRuntimes'](_0x5bb450){const _0x34b5d0=_0xf1c517;let _0x119094=_0x5bb450[_0x34b5d0(0x16c)]('\x0a');for(let _0x4e79d2=0x0;_0x4e79d2<_0x119094[_0x34b5d0(0x186)];_0x4e79d2++){if(_0x119094[_0x4e79d2][_0x34b5d0(0x177)](_0x34b5d0(0x18e)))return _0x119094[_0x4e79d2][_0x34b5d0(0x1a8)](_0x119094[_0x4e79d2]['indexOf'](_0x34b5d0(0x15d)))[_0x34b5d0(0x17e)]();}throw new Error(_0x34b5d0(0x1bd));}static[_0xf1c517(0x195)](_0x487406){const _0x3d4022=_0xf1c517;let _0x18cda3=_0x487406[_0x3d4022(0x16c)]('\x0a'),_0x44a587=[],_0x1c6eae=-0x1;for(let _0x10417b=0x0;_0x10417b<_0x18cda3[_0x3d4022(0x186)];_0x10417b++){if(_0x18cda3[_0x10417b][_0x3d4022(0x177)](_0x3d4022(0x180)))_0x1c6eae=_0x10417b;else{if(_0x1c6eae>0x0){if(_0x18cda3[_0x10417b][_0x3d4022(0x177)](_0x3d4022(0x159)))break;_0x18cda3[_0x10417b]['length']>0x0&&_0x44a587[_0x3d4022(0x18a)](this[_0x3d4022(0x15c)](_0x18cda3[_0x10417b]));}}}return _0x44a587;}static['parseDeviceInfo'](_0x2f1d78){const _0x5c23b7=_0xf1c517,_0x40ff26=_0x2f1d78[_0x5c23b7(0x16c)]('('),_0x2da8aa={'name':_0x40ff26[0x0]['trim'](),'deviceId':_0x40ff26[0x1]['split'](')')[0x0]['trim'](),'state':_0x40ff26[0x2][_0x5c23b7(0x16c)](')')[0x0]['trim']()};return _0x2da8aa;}static[_0xf1c517(0x15a)](_0x23cd3c){const _0x2fb24f=_0xf1c517;let _0x5c17fd=[_0x23cd3c!==null&&_0x23cd3c!==void 0x0?_0x23cd3c:''];const _0x56bb91=(0x0,child_process_1[_0x2fb24f(0x14e)])(_0x2fb24f(0x151)+resource_1[_0x2fb24f(0x160)]+_0x2fb24f(0x1c8)),_0x54cb70=this['parseDestinationDevices'](_0x56bb91[_0x2fb24f(0x185)]());_0x5c17fd=[..._0x5c17fd,..._0x54cb70];let _0x24dbba=this['listSimulator']();return _0x24dbba['sort']((_0x9c0a45,_0x54d16c)=>{const _0xfcf420=_0x2fb24f,_0x1a3432=_0x5c17fd['indexOf'](_0x9c0a45[_0xfcf420(0x187)]),_0x4f6829=_0x5c17fd[_0xfcf420(0x16d)](_0x54d16c[_0xfcf420(0x187)]);if(_0x1a3432!==-0x1&&_0x4f6829!==-0x1)return _0x1a3432-_0x4f6829;else{if(_0x1a3432!==-0x1)return-0x1;else{if(_0x4f6829!==-0x1)return 0x1;}}return 0x0;}),console[_0x2fb24f(0x162)](_0x2fb24f(0x146)),console[_0x2fb24f(0x162)](_0x24dbba),_0x24dbba;}static['searchSimulator'](_0x1eed75){const _0x3f78e2=_0xf1c517,_0x4d917a=new XcrunCMD()[_0x3f78e2(0x166)]()[_0x3f78e2(0x1bc)]('Apple\x20Vision\x20Pro')['line']+('\x20|\x20grep\x20'+_0x1eed75);console['log'](_0x4d917a);let _0x579921=(0x0,child_process_1['execSync'])(_0x4d917a);return console[_0x3f78e2(0x162)](_0x579921['toString']()),this[_0x3f78e2(0x15c)](_0x579921[_0x3f78e2(0x185)]());}static['createSimulator'](){const _0x340206=_0xf1c517;utils_1[_0x340206(0x1a3)][_0x340206(0x191)](_0x340206(0x1b0)),utils_1[_0x340206(0x1a3)]['warn'](_0x340206(0x172));let _0x444bb8=(0x0,child_process_1['execSync'])(new XcrunCMD()[_0x340206(0x166)]()['listDeviceTypes']()[_0x340206(0x145)]);const _0x3a599b=this[_0x340206(0x1a2)](_0x444bb8['toString']());_0x444bb8=(0x0,child_process_1['execSync'])(new XcrunCMD()[_0x340206(0x166)]()[_0x340206(0x1cc)]()[_0x340206(0x145)]);const _0x351dec=this[_0x340206(0x1b8)](_0x444bb8[_0x340206(0x185)]());utils_1[_0x340206(0x1a3)][_0x340206(0x165)](_0x340206(0x19f)+_0x3a599b+_0x340206(0x1c3)+_0x351dec+_0x340206(0x173)),_0x444bb8=(0x0,child_process_1[_0x340206(0x14e)])(new XcrunCMD()[_0x340206(0x166)]()[_0x340206(0x164)](_0x3a599b,_0x351dec)[_0x340206(0x145)]);const _0x221837=_0x444bb8[_0x340206(0x185)]()[_0x340206(0x17e)]();return console['log'](_0x340206(0x1c1)+_0x221837),{'name':'WebSpatial\x20Simulator','deviceId':_0x221837,'state':'Shutdown'};}static[_0xf1c517(0x1af)](){const _0x3f38ff=_0xf1c517;let _0x3540bb=(0x0,child_process_1[_0x3f38ff(0x14e)])(new XcrunCMD()[_0x3f38ff(0x166)]()[_0x3f38ff(0x1bc)](_0x3f38ff(0x19c))['line']);return this[_0x3f38ff(0x195)](_0x3540bb[_0x3f38ff(0x185)]());}}exports['default']=Xcrun;class XcrunCMD{constructor(){const _0x169df3=_0xf1c517;this[_0x169df3(0x145)]=_0x169df3(0x158);}[_0xf1c517(0x14c)](){const _0x29ebcb=_0xf1c517;return this[_0x29ebcb(0x145)]+='\x20altool',this;}[_0xf1c517(0x166)](){const _0x3be64a=_0xf1c517;return this[_0x3be64a(0x145)]+=_0x3be64a(0x1d1),this;}[_0xf1c517(0x1a1)](){const _0x3dd623=_0xf1c517;return this[_0x3dd623(0x145)]+=_0x3dd623(0x18d),this;}[_0xf1c517(0x1bc)](_0x10eef8){const _0x1eb56c=_0xf1c517;return this[_0x1eb56c(0x145)]+='\x20list\x20devices\x20\x22'+_0x10eef8+'\x22',this;}[_0xf1c517(0x1ba)](){return this['line']+='\x20list\x20devicetypes',this;}[_0xf1c517(0x1cc)](){const _0x15f3e3=_0xf1c517;return this[_0x15f3e3(0x145)]+=_0x15f3e3(0x174),this;}[_0xf1c517(0x1cf)](_0x519a56){const _0x186071=_0xf1c517;return this['line']+=_0x186071(0x1b1)+_0x519a56,this;}['uploadApp'](_0x4f7451){const _0x3c7512=_0xf1c517;return this[_0x3c7512(0x145)]+=_0x3c7512(0x1a0)+_0x4f7451,this;}['uploadPackage'](_0x2a9cb){const _0x128198=_0xf1c517;return this[_0x128198(0x145)]+='\x20--upload-package\x20'+_0x2a9cb,this;}[_0xf1c517(0x184)](_0x214381,_0x83a9f8){const _0x82c84a=_0xf1c517;return this[_0x82c84a(0x145)]+='\x20-u\x20'+_0x214381+_0x82c84a(0x199)+_0x83a9f8,this;}[_0xf1c517(0x161)](_0x1d5243,_0x457f73){const _0x4e6a2b=_0xf1c517;return this[_0x4e6a2b(0x145)]+=_0x4e6a2b(0x1b9)+_0x1d5243+_0x4e6a2b(0x1ce)+_0x457f73,this;}[_0xf1c517(0x152)](_0x420d1e){const _0x1dda06=_0xf1c517;return this[_0x1dda06(0x145)]+=_0x1dda06(0x197)+_0x420d1e,this;}[_0xf1c517(0x176)](_0x88dfc2){const _0x1a9dc7=_0xf1c517;return this[_0x1a9dc7(0x145)]+='\x20-t\x20'+_0x88dfc2,this;}[_0xf1c517(0x15e)](_0x35b3e7){const _0x1dc932=_0xf1c517;return this['line']+=_0x1dc932(0x1cd)+_0x35b3e7,this;}[_0xf1c517(0x1b7)](){const _0x4fcd47=_0xf1c517;return this['line']+=_0x4fcd47(0x1c9),this;}['create'](_0x2453b6,_0x155f69){const _0x1b5d5a=_0xf1c517;return this['line']+='\x20create\x20\x22WebSpatialSimulator\x22\x20\x22'+_0x2453b6+_0x1b5d5a(0x163)+_0x155f69+'\x22',this;}[_0xf1c517(0x148)](_0x5329e7){const _0xaa1361=_0xf1c517;return this[_0xaa1361(0x145)]+='\x20shutdown\x20\x22'+_0x5329e7+'\x22',this;}['boot'](_0x33e5ba){const _0x1aea0c=_0xf1c517;return this[_0x1aea0c(0x145)]+=_0x1aea0c(0x147)+_0x33e5ba+'\x22',this;}[_0xf1c517(0x14a)](_0xe30f1e,_0x5b91ca){const _0x5d2fb5=_0xf1c517;return this[_0x5d2fb5(0x145)]+='\x20install\x20\x22'+_0xe30f1e+_0x5d2fb5(0x163)+_0x5b91ca+'\x22',this;}['launch'](_0x595049,_0x51ed4b){const _0x4b9a1e=_0xf1c517;return this['line']+=_0x4b9a1e(0x16f)+_0x595049+_0x4b9a1e(0x163)+_0x51ed4b+'\x22',this;}[_0xf1c517(0x1cb)](_0x100995,_0x437d0a){const _0x1c23d7=_0xf1c517;return this[_0x1c23d7(0x145)]+='\x20terminate\x20\x22'+_0x100995+_0x1c23d7(0x163)+_0x437d0a+'\x22',this;}}
|
|
1
|
+
'use strict';const _0xd61acb=_0x4e80;(function(_0x20be87,_0x1944a6){const _0x1f520e=_0x4e80,_0x510d57=_0x20be87();while(!![]){try{const _0x3265aa=-parseInt(_0x1f520e(0xf3))/0x1+parseInt(_0x1f520e(0xab))/0x2+parseInt(_0x1f520e(0x78))/0x3*(-parseInt(_0x1f520e(0x98))/0x4)+parseInt(_0x1f520e(0xce))/0x5*(-parseInt(_0x1f520e(0xbf))/0x6)+-parseInt(_0x1f520e(0x9a))/0x7+parseInt(_0x1f520e(0xbd))/0x8+parseInt(_0x1f520e(0x84))/0x9*(parseInt(_0x1f520e(0xea))/0xa);if(_0x3265aa===_0x1944a6)break;else _0x510d57['push'](_0x510d57['shift']());}catch(_0x30c26d){_0x510d57['push'](_0x510d57['shift']());}}}(_0x3f67,0xdfc7d));function _0x3f67(){const _0x2dc6c2=['\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','\x20--apple-id\x20','\x20shutdown\x20\x22','indexOf','log','\x20list','appleId','60210PKOZhS','uploadPackage','getSimulatorHistory','buildTestApp','\x20altool','\x20--upload-package\x20','error','\x20--apiIssuer\x20','authApi','301816cfSpdr','../resource','No\x20visionOS\x20rumtime\x20found!\x20Please\x20go\x20to\x20Xcode\x20to\x20download\x20the\x20Apple\x20Vision\x20Pro\x20simulator','\x20list\x20devicetypes','mkdirSync','\x20--validate-app\x20-f\x20','--\x20visionOS','\x20--bundle-version\x20','\x20list\x20devices\x20\x22','/web-spatial.xcodeproj','getAppInfoRecord','try\x20create\x20a\x20visionOS\x20simulator','xcrun',',\x20name','3YWNOFl','\x20-t\x20','\x20|\x20grep\x20','path','test','length','slice','uploadApp','__esModule','parseDeviceInfo','\x20--apiKey\x20','PROJECT_DIRECTORY','4698TfwDlC','listDevices','cd\x20','PROJECT_BUILD_DIRECTORY','Build/Products/Debug-xrsimulator/','no\x20visionOS\x20simulator\x20found','\x20and\x20','launch','Apple\x20Vision\x20Pro','includes','\x20boot\x20\x22','version','parseDestinationDevices','\x22\x20\x22','\x20simctl','listSimulator','Shutdown','platform:visionOS\x20Simulator','simctl','create','350156RohOHE','existsSync','9605540rCWEDZ','runWithSimulator','No\x20Apple\x20Vision\x20Pro\x20simulator\x20found!\x20Please\x20go\x20to\x20Xcode\x20to\x20download\x20the\x20Apple\x20Vision\x20Pro\x20simulator','use\x20simulator:\x20','terminate','write','altool','\x20-u\x20','findSimulator','project','visionOS','child_process','push','launchSimulator','listDeviceTypes','execSync','installing\x20app','1248804iBPBuG','parseSupportDevices','com','id:','line','use\x20','.app','validate','\x27\x20-derivedDataPath\x20','./xcodebuild','simulator\x20is\x20already\x20shutdown','../utils/utils','parseSupportRuntimes','build\x20failed\x20on\x20','warn','launchApp','no\x20simulator\x20available','-------------------\x20build\x20end\x20-------------------','3632760iwCoYG','visionos','9259674ntDDqT','deviceId','createSimulator','find\x20simulators:',',\x20try\x20next\x20device','sort','trim','create\x20visionOS\x20simulator:\x20','join','install','\x20&&\x20xcodebuild\x20-showdestinations\x20-scheme\x20web-spatial','defineProperty','\x20list\x20runtimes','\x20----','listRuntimes','5SKAIEQ','boot','shutdownSimulator','find\x20destination\x20device:\x20','searchSimulator','recordSimulator','authAccount','default','runWithHistory','toString','\x20create\x20\x22WebSpatialSimulator\x22\x20\x22','launchWithSimulator','XcodebuildCMD','----\x20build\x20start\x20on\x20','replace','open\x20-a\x20Simulator\x20--args\x20-CurrentDeviceUDID\x20','split','\x20--verbose','platform','PROJECT_TEST_DIRECTORY','CliLog'];_0x3f67=function(){return _0x2dc6c2;};return _0x3f67();}function _0x4e80(_0x143f95,_0x3eae63){const _0x3f675a=_0x3f67();return _0x4e80=function(_0x4e8091,_0x28612f){_0x4e8091=_0x4e8091-0x6b;let _0x1a6a47=_0x3f675a[_0x4e8091];return _0x1a6a47;},_0x4e80(_0x143f95,_0x3eae63);}Object[_0xd61acb(0xca)](exports,_0xd61acb(0x80),{'value':!![]});const child_process_1=require(_0xd61acb(0xa5)),resource_1=require(_0xd61acb(0x6b)),path_1=require(_0xd61acb(0x7b)),fs=require('fs'),xcodebuild_1=require(_0xd61acb(0xb4)),file_1=require('../resource/file'),utils_1=require(_0xd61acb(0xb6)),history_1=require('../utils/history');class Xcrun{static async[_0xd61acb(0xb2)](_0x53bf46,_0x5038f2,_0x3a2ef2,_0x1ec471){const _0x15c93c=_0xd61acb,_0x506428=new XcrunCMD()[_0x15c93c(0xa0)]();_0x506428[_0x15c93c(0xb2)](_0x53bf46);_0x1ec471?_0x506428[_0x15c93c(0xd4)](_0x5038f2,_0x3a2ef2):_0x506428[_0x15c93c(0xf2)](_0x5038f2,_0x3a2ef2);_0x506428[_0x15c93c(0xe0)](_0x15c93c(0xbe));const _0x31423f=(0x0,child_process_1[_0x15c93c(0xa9)])(_0x506428[_0x15c93c(0xaf)]);return _0x31423f[_0x15c93c(0xd7)]();}static async[_0xd61acb(0xeb)](_0x245a47,_0x1e2d20,_0x4a4f74,_0x1b8378,_0x331cc0){const _0x411f9f=_0xd61acb,_0x519f0f=new XcrunCMD()['altool']();_0x519f0f[_0x411f9f(0xeb)](_0x245a47);_0x331cc0?_0x519f0f['authAccount'](_0x1e2d20,_0x4a4f74):_0x519f0f[_0x411f9f(0xf2)](_0x1e2d20,_0x4a4f74);_0x519f0f[_0x411f9f(0xe0)](_0x411f9f(0xbe)),_0x519f0f['appleId'](_0x1b8378);const _0x38f073=(0x0,child_process_1[_0x411f9f(0xa9)])(_0x519f0f[_0x411f9f(0xaf)]);return _0x38f073['toString']();}static async[_0xd61acb(0x7f)](_0x101a93,_0x5eaf62,_0x11ff47,_0x3fc336){const _0x39efa9=_0xd61acb,_0x59219a=new XcrunCMD()[_0x39efa9(0xa0)]();_0x59219a[_0x39efa9(0x7f)](_0x101a93);_0x3fc336?_0x59219a[_0x39efa9(0xd4)](_0x5eaf62,_0x11ff47):_0x59219a[_0x39efa9(0xf2)](_0x5eaf62,_0x11ff47);_0x59219a[_0x39efa9(0xe0)](_0x39efa9(0xbe));const _0x24e1ed=(0x0,child_process_1[_0x39efa9(0xa9)])(_0x59219a[_0x39efa9(0xaf)]);return _0x24e1ed[_0x39efa9(0xd7)]();}static async[_0xd61acb(0x9b)](){const _0x105530=_0xd61acb;let _0x1368c9=this['findSimulator']();!_0x1368c9[0x0]&&(_0x1368c9=[this[_0x105530(0xc1)]()]);const _0x10f53b=history_1[_0x105530(0xd5)]['getAppInfoRecord']();for(var _0x2b7c9e=0x0;_0x2b7c9e<_0x1368c9[_0x105530(0x7d)];_0x2b7c9e++){if(this['buildTestApp'](_0x1368c9[_0x2b7c9e][_0x105530(0xc0)])){const _0x30e1fd=this[_0x105530(0xd9)](_0x10f53b,_0x1368c9[_0x2b7c9e][_0x105530(0xc0)],!![],![]);history_1['default'][_0x105530(0xd3)](_0x30e1fd),history_1[_0x105530(0xd5)]['write']();return;}else utils_1[_0x105530(0xe2)][_0x105530(0xf0)](_0x105530(0xb8)+_0x1368c9[_0x2b7c9e][_0x105530(0xc0)]+_0x105530(0xc3));}utils_1[_0x105530(0xe2)]['error'](_0x105530(0xbb));}static async[_0xd61acb(0xd6)](){const _0x4190a9=_0xd61acb,_0x3d782e=history_1[_0x4190a9(0xd5)][_0x4190a9(0xec)](),_0x17f65c=history_1[_0x4190a9(0xd5)][_0x4190a9(0x74)](),_0x1e1099=this['launchWithSimulator'](_0x17f65c,_0x3d782e);history_1[_0x4190a9(0xd5)][_0x4190a9(0xd3)](_0x1e1099),history_1[_0x4190a9(0xd5)][_0x4190a9(0x9f)]();}static[_0xd61acb(0xd9)](_0x4ad7aa,_0x26803e='',_0x23e707=![],_0x225ea3=!![]){const _0x4ab596=_0xd61acb;let _0x393250,_0x17f586=![];return _0x225ea3?_0x393250=this[_0x4ab596(0xa2)](_0x26803e)[0x0]:_0x393250=this['searchSimulator'](_0x26803e),(!_0x393250||_0x393250['deviceId']==='')&&(_0x393250=this['createSimulator'](),_0x17f586=!![]),console[_0x4ab596(0xe7)](_0x4ab596(0x9d)+_0x393250['deviceId']),this[_0x4ab596(0xa7)](_0x393250),(_0x23e707||_0x17f586)&&(console[_0x4ab596(0xe7)](_0x4ab596(0xaa)),this['installApp'](resource_1['PROJECT_TEST_DIRECTORY'],_0x393250['deviceId'],_0x4ad7aa['name']),console[_0x4ab596(0xe7)]('install\x20success')),console[_0x4ab596(0xe7)]('launch\x20app'),this[_0x4ab596(0xba)](_0x393250['deviceId'],_0x4ad7aa['id']),_0x393250[_0x4ab596(0xc0)];}static async[_0xd61acb(0xd0)](){const _0x3bb944=_0xd61acb;let _0x3dab08=this[_0x3bb944(0xa2)]()[0x0];console[_0x3bb944(0xe7)]('find\x20simulator:\x20'+_0x3dab08['deviceId']);if(_0x3dab08['state']!=='Shutdown'){let _0x21c73e=new XcrunCMD()[_0x3bb944(0x96)]();_0x21c73e['shutdown'](_0x3dab08[_0x3bb944(0xc0)]),(0x0,child_process_1[_0x3bb944(0xa9)])(_0x21c73e['line']);}else console[_0x3bb944(0xe7)](_0x3bb944(0xb5));}static[_0xd61acb(0xa7)](_0x71f4d){const _0x2c28a0=_0xd61acb;if(_0x71f4d['state']===_0x2c28a0(0x94)){let _0x3d9d7c=new XcrunCMD()['simctl']();_0x3d9d7c[_0x2c28a0(0xcf)](_0x71f4d[_0x2c28a0(0xc0)]),(0x0,child_process_1['execSync'])(_0x3d9d7c[_0x2c28a0(0xaf)]),(0x0,child_process_1[_0x2c28a0(0xa9)])('sleep\x2010');}(0x0,child_process_1[_0x2c28a0(0xa9)])(_0x2c28a0(0xdd)+_0x71f4d['deviceId']);}static[_0xd61acb(0xed)](_0x5d2995){const _0x1dd82f=_0xd61acb,_0x52f627=resource_1[_0x1dd82f(0x83)]+_0x1dd82f(0x73);!fs[_0x1dd82f(0x99)](resource_1[_0x1dd82f(0x87)])&&fs[_0x1dd82f(0x6e)](resource_1[_0x1dd82f(0x87)],{'recursive':!![]});!fs[_0x1dd82f(0x99)](resource_1[_0x1dd82f(0xe1)])&&fs['mkdirSync'](resource_1[_0x1dd82f(0xe1)],{'recursive':!![]});(0x0,file_1['clearDir'])(resource_1[_0x1dd82f(0xe1)]);const _0x4ce3da=new xcodebuild_1[(_0x1dd82f(0xda))]()[_0x1dd82f(0xa3)](_0x52f627)['line']+(_0x1dd82f(0xe3)+_0x5d2995+_0x1dd82f(0xb3)+resource_1[_0x1dd82f(0xe1)]);console[_0x1dd82f(0xe7)](_0x1dd82f(0xdb)+_0x5d2995+_0x1dd82f(0xcc));try{const _0x27c50b=(0x0,child_process_1[_0x1dd82f(0xa9)])(_0x4ce3da);if(_0x27c50b[_0x1dd82f(0xd7)]()[_0x1dd82f(0x8d)]('**\x20BUILD\x20FAILED\x20**'))return![];}catch(_0x289946){}return console[_0x1dd82f(0xe7)](_0x1dd82f(0xbc)),!![];}static['installApp'](_0x2bfd93,_0x5cd157,_0x5834a8){const _0x4d7de4=_0xd61acb,_0x59610c=(0x0,path_1[_0x4d7de4(0xc7)])(_0x2bfd93,_0x4d7de4(0x88)+_0x5834a8+_0x4d7de4(0xb1));let _0x23449e=new XcrunCMD()[_0x4d7de4(0x96)]();_0x23449e['install'](_0x5cd157,_0x59610c),(0x0,child_process_1[_0x4d7de4(0xa9)])(_0x23449e[_0x4d7de4(0xaf)]);}static[_0xd61acb(0xba)](_0x50b6c3,_0xcc3f1a){const _0x17f830=_0xd61acb;try{(0x0,child_process_1[_0x17f830(0xa9)])(new XcrunCMD()[_0x17f830(0x96)]()['terminate'](_0x50b6c3,_0xcc3f1a)[_0x17f830(0xaf)]);}catch(_0x156c25){}(0x0,child_process_1[_0x17f830(0xa9)])(new XcrunCMD()[_0x17f830(0x96)]()[_0x17f830(0x8b)](_0x50b6c3,_0xcc3f1a)[_0x17f830(0xaf)]);}static[_0xd61acb(0x90)](_0xcbf254){const _0x2e9ebf=_0xd61acb;let _0x487b96=_0xcbf254[_0x2e9ebf(0xde)]('\x0a');const _0x2dc851=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/;let _0x5a02a1=[];for(let _0x3bb9c3=0x0;_0x3bb9c3<_0x487b96[_0x2e9ebf(0x7d)];_0x3bb9c3++){if(_0x487b96[_0x3bb9c3][_0x2e9ebf(0x8d)](_0x2e9ebf(0x95))){const _0x373307=_0x487b96[_0x3bb9c3][_0x2e9ebf(0x7e)](_0x487b96[_0x3bb9c3][_0x2e9ebf(0xe6)](_0x2e9ebf(0xae))+0x3,_0x487b96[_0x3bb9c3][_0x2e9ebf(0xe6)](_0x2e9ebf(0x77)));_0x2dc851[_0x2e9ebf(0x7c)](_0x373307)&&(_0x5a02a1['push'](_0x373307),console['log'](_0x2e9ebf(0xd1)+_0x487b96[_0x3bb9c3]+')'));}}return _0x5a02a1;}static[_0xd61acb(0xac)](_0x579c01){const _0x2e6d9b=_0xd61acb;let _0x57b120=_0x579c01['split']('\x0a');for(let _0x685f00=0x0;_0x685f00<_0x57b120[_0x2e6d9b(0x7d)];_0x685f00++){if(_0x57b120[_0x685f00]['includes']('Apple\x20Vision\x20Pro'))return _0x57b120[_0x685f00]=_0x57b120[_0x685f00][_0x2e6d9b(0xdc)](_0x2e6d9b(0x8c),'')['trim'](),_0x57b120[_0x685f00]=_0x57b120[_0x685f00][_0x2e6d9b(0xdc)]('(',''),_0x57b120[_0x685f00]=_0x57b120[_0x685f00][_0x2e6d9b(0xdc)](')',''),_0x57b120[_0x685f00];}throw new Error(_0x2e6d9b(0x9c));}static[_0xd61acb(0xb7)](_0x14e2a4){const _0xf453f1=_0xd61acb;let _0x36864a=_0x14e2a4[_0xf453f1(0xde)]('\x0a');for(let _0x395cb6=0x0;_0x395cb6<_0x36864a[_0xf453f1(0x7d)];_0x395cb6++){if(_0x36864a[_0x395cb6][_0xf453f1(0x8d)](_0xf453f1(0xa4)))return _0x36864a[_0x395cb6][_0xf453f1(0x7e)](_0x36864a[_0x395cb6][_0xf453f1(0xe6)](_0xf453f1(0xad)))['trim']();}throw new Error(_0xf453f1(0x6c));}static['parseListDevices'](_0x20652f){const _0x47860b=_0xd61acb;let _0x4c4735=_0x20652f[_0x47860b(0xde)]('\x0a'),_0xd4f521=[],_0x1f315a=-0x1;for(let _0x197059=0x0;_0x197059<_0x4c4735['length'];_0x197059++){if(_0x4c4735[_0x197059][_0x47860b(0x8d)](_0x47860b(0x70)))_0x1f315a=_0x197059;else{if(_0x1f315a>0x0){if(_0x4c4735[_0x197059]['includes']('--\x20'))break;_0x4c4735[_0x197059][_0x47860b(0x7d)]>0x0&&_0xd4f521[_0x47860b(0xa6)](this[_0x47860b(0x81)](_0x4c4735[_0x197059]));}}}return _0xd4f521;}static[_0xd61acb(0x81)](_0x1092c){const _0x566781=_0xd61acb,_0xc3c966=_0x1092c[_0x566781(0xde)]('('),_0xfe9ba2={'name':_0xc3c966[0x0]['trim'](),'deviceId':_0xc3c966[0x1][_0x566781(0xde)](')')[0x0][_0x566781(0xc5)](),'state':_0xc3c966[0x2][_0x566781(0xde)](')')[0x0][_0x566781(0xc5)]()};return _0xfe9ba2;}static[_0xd61acb(0xa2)](_0x2d9d38){const _0xfcf48f=_0xd61acb;let _0x58802c=[_0x2d9d38!==null&&_0x2d9d38!==void 0x0?_0x2d9d38:''];const _0x5dafac=(0x0,child_process_1[_0xfcf48f(0xa9)])(_0xfcf48f(0x86)+resource_1['PROJECT_DIRECTORY']+_0xfcf48f(0xc9)),_0x1126f2=this['parseDestinationDevices'](_0x5dafac[_0xfcf48f(0xd7)]());_0x58802c=[..._0x58802c,..._0x1126f2];let _0x17b803=this[_0xfcf48f(0x93)]();return _0x17b803[_0xfcf48f(0xc4)]((_0x172a0e,_0x44510f)=>{const _0x4dadec=_0xfcf48f,_0x4452f8=_0x58802c[_0x4dadec(0xe6)](_0x172a0e[_0x4dadec(0xc0)]),_0x3125bd=_0x58802c[_0x4dadec(0xe6)](_0x44510f['deviceId']);if(_0x4452f8!==-0x1&&_0x3125bd!==-0x1)return _0x4452f8-_0x3125bd;else{if(_0x4452f8!==-0x1)return-0x1;else{if(_0x3125bd!==-0x1)return 0x1;}}return 0x0;}),console['log'](_0xfcf48f(0xc2)),console[_0xfcf48f(0xe7)](_0x17b803),_0x17b803;}static[_0xd61acb(0xd2)](_0x44c25d){const _0x410e28=_0xd61acb,_0x157702=new XcrunCMD()[_0x410e28(0x96)]()[_0x410e28(0x85)](_0x410e28(0x8c))['line']+(_0x410e28(0x7a)+_0x44c25d);console['log'](_0x157702);let _0x3af0bf=(0x0,child_process_1['execSync'])(_0x157702);return console[_0x410e28(0xe7)](_0x3af0bf[_0x410e28(0xd7)]()),this[_0x410e28(0x81)](_0x3af0bf['toString']());}static[_0xd61acb(0xc1)](){const _0x32b850=_0xd61acb;utils_1[_0x32b850(0xe2)][_0x32b850(0xb9)](_0x32b850(0x89)),utils_1[_0x32b850(0xe2)][_0x32b850(0xb9)](_0x32b850(0x75));let _0x540a51=(0x0,child_process_1[_0x32b850(0xa9)])(new XcrunCMD()[_0x32b850(0x96)]()[_0x32b850(0xa8)]()['line']);const _0x25d365=this[_0x32b850(0xac)](_0x540a51[_0x32b850(0xd7)]());_0x540a51=(0x0,child_process_1['execSync'])(new XcrunCMD()[_0x32b850(0x96)]()[_0x32b850(0xcd)]()['line']);const _0x4e0e9b=this['parseSupportRuntimes'](_0x540a51[_0x32b850(0xd7)]());utils_1[_0x32b850(0xe2)]['info'](_0x32b850(0xb0)+_0x25d365+_0x32b850(0x8a)+_0x4e0e9b+'\x20to\x20create\x20visionOS\x20simulator'),_0x540a51=(0x0,child_process_1[_0x32b850(0xa9)])(new XcrunCMD()[_0x32b850(0x96)]()[_0x32b850(0x97)](_0x25d365,_0x4e0e9b)[_0x32b850(0xaf)]);const _0x46f17a=_0x540a51[_0x32b850(0xd7)]()[_0x32b850(0xc5)]();return console['log'](_0x32b850(0xc6)+_0x46f17a),{'name':'WebSpatial\x20Simulator','deviceId':_0x46f17a,'state':_0x32b850(0x94)};}static['listSimulator'](){const _0x4b81c2=_0xd61acb;let _0x37ae0c=(0x0,child_process_1[_0x4b81c2(0xa9)])(new XcrunCMD()[_0x4b81c2(0x96)]()[_0x4b81c2(0x85)]('Apple\x20Vision\x20Pro')[_0x4b81c2(0xaf)]);return this['parseListDevices'](_0x37ae0c[_0x4b81c2(0xd7)]());}}exports[_0xd61acb(0xd5)]=Xcrun;class XcrunCMD{constructor(){const _0x56d6d5=_0xd61acb;this[_0x56d6d5(0xaf)]=_0x56d6d5(0x76);}['altool'](){const _0x463ba0=_0xd61acb;return this['line']+=_0x463ba0(0xee),this;}[_0xd61acb(0x96)](){const _0x2a8e46=_0xd61acb;return this[_0x2a8e46(0xaf)]+=_0x2a8e46(0x92),this;}['list'](){const _0x4eb5fe=_0xd61acb;return this['line']+=_0x4eb5fe(0xe8),this;}['listDevices'](_0x5a23be){const _0x50c17e=_0xd61acb;return this[_0x50c17e(0xaf)]+=_0x50c17e(0x72)+_0x5a23be+'\x22',this;}[_0xd61acb(0xa8)](){const _0x563b96=_0xd61acb;return this[_0x563b96(0xaf)]+=_0x563b96(0x6d),this;}['listRuntimes'](){const _0x406b06=_0xd61acb;return this[_0x406b06(0xaf)]+=_0x406b06(0xcb),this;}[_0xd61acb(0xb2)](_0x368fce){const _0x53e96c=_0xd61acb;return this['line']+=_0x53e96c(0x6f)+_0x368fce,this;}[_0xd61acb(0x7f)](_0x5b0c95){return this['line']+='\x20--upload-app\x20-f\x20'+_0x5b0c95,this;}[_0xd61acb(0xeb)](_0x96b5ee){const _0xbbb83=_0xd61acb;return this['line']+=_0xbbb83(0xef)+_0x96b5ee,this;}['authAccount'](_0x1299b6,_0x4e8072){const _0x120760=_0xd61acb;return this[_0x120760(0xaf)]+=_0x120760(0xa1)+_0x1299b6+'\x20-p\x20'+_0x4e8072,this;}[_0xd61acb(0xf2)](_0x3965d8,_0x3502a5){const _0x1a2567=_0xd61acb;return this['line']+=_0x1a2567(0x82)+_0x3965d8+_0x1a2567(0xf1)+_0x3502a5,this;}[_0xd61acb(0xe9)](_0x5588d1){const _0x3f5504=_0xd61acb;return this['line']+=_0x3f5504(0xe4)+_0x5588d1,this;}['platform'](_0x49c4cb){const _0x2e7c42=_0xd61acb;return this['line']+=_0x2e7c42(0x79)+_0x49c4cb,this;}[_0xd61acb(0x8f)](_0x46f80e){const _0x12da92=_0xd61acb;return this[_0x12da92(0xaf)]+=_0x12da92(0x71)+_0x46f80e,this;}['verbose'](){const _0x5f28a0=_0xd61acb;return this[_0x5f28a0(0xaf)]+=_0x5f28a0(0xdf),this;}['create'](_0x23f3d1,_0x57f228){const _0x4c76b3=_0xd61acb;return this[_0x4c76b3(0xaf)]+=_0x4c76b3(0xd8)+_0x23f3d1+_0x4c76b3(0x91)+_0x57f228+'\x22',this;}['shutdown'](_0xfddc45){const _0xa02873=_0xd61acb;return this[_0xa02873(0xaf)]+=_0xa02873(0xe5)+_0xfddc45+'\x22',this;}[_0xd61acb(0xcf)](_0x12df37){const _0x1002a8=_0xd61acb;return this[_0x1002a8(0xaf)]+=_0x1002a8(0x8e)+_0x12df37+'\x22',this;}[_0xd61acb(0xc8)](_0x2dd1c4,_0x396b45){const _0x5bc12a=_0xd61acb;return this[_0x5bc12a(0xaf)]+='\x20install\x20\x22'+_0x2dd1c4+_0x5bc12a(0x91)+_0x396b45+'\x22',this;}[_0xd61acb(0x8b)](_0xac48f5,_0x4583ac){const _0x3b5ecb=_0xd61acb;return this['line']+='\x20launch\x20\x22'+_0xac48f5+_0x3b5ecb(0x91)+_0x4583ac+'\x22',this;}[_0xd61acb(0x9e)](_0x566c6a,_0x1ec284){const _0x54c6d5=_0xd61acb;return this[_0x54c6d5(0xaf)]+='\x20terminate\x20\x22'+_0x566c6a+_0x54c6d5(0x91)+_0x1ec284+'\x22',this;}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webspatial/builder",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "Client CLI tool to Generate XRApp project for Apple Vision Pro",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"engines": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"sharp": "^0.33.5",
|
|
40
40
|
"valid-url": "^1.0.9",
|
|
41
41
|
"xcode": "^3.0.1",
|
|
42
|
-
"@webspatial/platform-visionos": "^0.1.
|
|
42
|
+
"@webspatial/platform-visionos": "^0.1.15"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@rollup/plugin-terser": "^0.4.3",
|