@webspatial/builder 0.0.9 → 0.0.11
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/Cli.js +1 -1
- package/dist/lib/cmds/build.d.ts +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/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.d.ts +10 -3
- package/dist/lib/resource/index.js +1 -1
- package/dist/lib/resource/load.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/messages.js +1 -1
- package/dist/lib/utils/utils.d.ts +9 -0
- package/dist/lib/utils/utils.js +1 -1
- package/dist/lib/xcode/index.js +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.d.ts +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 +3 -2
- package/template/visionOSApp/Packages/RealityKitContent/.build/workspace-state.json +0 -7
- package/template/visionOSApp/Packages/RealityKitContent/.swiftpm/xcode/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/ProjectData/main.json +0 -11
- package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/SceneMetadataList.json +0 -112
- package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/Settings.rcprojectdata +0 -17
- package/template/visionOSApp/Packages/RealityKitContent/Package.swift +0 -27
- package/template/visionOSApp/Packages/RealityKitContent/README.md +0 -3
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Immersive.usda +0 -50
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Materials/GridMaterial.usda +0 -216
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Scene.usda +0 -59
- package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.swift +0 -4
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/Contents.json +0 -12
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Contents.json +0 -6
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Contents.json +0 -17
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/Contents.json +0 -12
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Contents.json +0 -6
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset/Contents.json +0 -12
- package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Contents.json +0 -6
- package/template/visionOSApp/web-spatial/Assets.xcassets/Contents.json +0 -6
- package/template/visionOSApp/web-spatial/Info.plist +0 -33
- package/template/visionOSApp/web-spatial/Preview Content/Preview Assets.xcassets/Contents.json +0 -6
- package/template/visionOSApp/web-spatial/libs/EventEmitter.swift +0 -32
- package/template/visionOSApp/web-spatial/libs/SpatialComponent.swift +0 -31
- package/template/visionOSApp/web-spatial/libs/SpatialEntity.swift +0 -179
- package/template/visionOSApp/web-spatial/libs/SpatialInputComponent.swift +0 -26
- package/template/visionOSApp/web-spatial/libs/SpatialMeshResource.swift +0 -19
- package/template/visionOSApp/web-spatial/libs/SpatialModel3DComponent.swift +0 -51
- package/template/visionOSApp/web-spatial/libs/SpatialModelComponent.swift +0 -32
- package/template/visionOSApp/web-spatial/libs/SpatialObject.swift +0 -144
- package/template/visionOSApp/web-spatial/libs/SpatialPhysicallyBasedMaterial.swift +0 -19
- package/template/visionOSApp/web-spatial/libs/SpatialViewComponent.swift +0 -15
- package/template/visionOSApp/web-spatial/libs/SpatialWindowComponent.swift +0 -420
- package/template/visionOSApp/web-spatial/libs/SpatialWindowContainer.swift +0 -149
- package/template/visionOSApp/web-spatial/libs/Utils/CommandManager.swift +0 -800
- package/template/visionOSApp/web-spatial/libs/Utils/Logger.swift +0 -36
- package/template/visionOSApp/web-spatial/libs/Utils/SceneManager.swift +0 -108
- package/template/visionOSApp/web-spatial/libs/Utils/WindowContainerMgr.swift +0 -113
- package/template/visionOSApp/web-spatial/libs/json/JsonParser.swift +0 -52
- package/template/visionOSApp/web-spatial/libs/uiKitDelegate/Window.swift +0 -34
- package/template/visionOSApp/web-spatial/libs/webView/UpdateSystem.swift +0 -33
- package/template/visionOSApp/web-spatial/libs/webView/backend/NativeWebView.swift +0 -319
- package/template/visionOSApp/web-spatial/libs/webView/manifest.swift +0 -92
- package/template/visionOSApp/web-spatial/static-web/index.html +0 -9
- package/template/visionOSApp/web-spatial/views/HideViewModifier.swift +0 -17
- package/template/visionOSApp/web-spatial/views/ImmersiveView.swift +0 -24
- package/template/visionOSApp/web-spatial/views/LoadingView.swift +0 -25
- package/template/visionOSApp/web-spatial/views/MaterialWithBorderCornerModifier.swift +0 -82
- package/template/visionOSApp/web-spatial/views/OpenDismissHandlerUI.swift +0 -52
- package/template/visionOSApp/web-spatial/views/PlainWindowContainerView.swift +0 -84
- package/template/visionOSApp/web-spatial/views/SpatialModel3DView.swift +0 -193
- package/template/visionOSApp/web-spatial/views/SpatialViewUI.swift +0 -168
- package/template/visionOSApp/web-spatial/views/SpatialWebViewUI.swift +0 -186
- package/template/visionOSApp/web-spatial/views/VolumetricWindowContainerView.swift +0 -38
- package/template/visionOSApp/web-spatial/views/ui/NavView.swift +0 -125
- package/template/visionOSApp/web-spatial/web_spatialApp.swift +0 -158
- package/template/visionOSApp/web-spatial.xcodeproj/project.pbxproj +0 -686
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -5
- package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcuserdata/bytedance.xcuserdatad/WorkspaceSettings.xcsettings +0 -14
- package/template/visionOSApp/web-spatial.xcodeproj/xcshareddata/xcschemes/web-spatial.xcscheme +0 -115
- package/template/visionOSApp/web-spatial.xcodeproj/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +0 -27
- package/template/visionOSApp/web-spatialTests/web_spatialTests.swift +0 -34
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x46074b=_0x999d;function _0x999d(_0x1e75be,_0x2e0067){const _0x5f21eb=_0x5f21();return _0x999d=function(_0x999d4f,_0x190a8c){_0x999d4f=_0x999d4f-0x1ba;let _0x1f82cf=_0x5f21eb[_0x999d4f];return _0x1f82cf;},_0x999d(_0x1e75be,_0x2e0067);}function _0x5f21(){const _0x48b48b=['./lib/Cli','87374jIEruu','exit','ConsoleLog','error','1192270pzrqFE','./lib/utils/CustomError','Cli','isArray','303XAxhmC','432690NpBVFX','726640LSJJDc','570388fjRrIJ','message','forEach','224gOgAmB','code','17396fxoyBN','CustomError','9cdhQJm','customMessage','exports','argv','1582572mQOXql'];_0x5f21=function(){return _0x48b48b;};return _0x5f21();}(function(_0x4bb469,_0x3ca1fd){const _0x56c293=_0x999d,_0x45647f=_0x4bb469();while(!![]){try{const _0x782f65=-parseInt(_0x56c293(0x1cf))/0x1+-parseInt(_0x56c293(0x1d1))/0x2+parseInt(_0x56c293(0x1ce))/0x3*(parseInt(_0x56c293(0x1be))/0x4)+parseInt(_0x56c293(0x1d0))/0x5+parseInt(_0x56c293(0x1c4))/0x6+parseInt(_0x56c293(0x1c6))/0x7*(parseInt(_0x56c293(0x1bc))/0x8)+parseInt(_0x56c293(0x1c0))/0x9*(-parseInt(_0x56c293(0x1ca))/0xa);if(_0x782f65===_0x3ca1fd)break;else _0x45647f['push'](_0x45647f['shift']());}catch(_0x3e7cfb){_0x45647f['push'](_0x45647f['shift']());}}}(_0x5f21,0x58114));Object['defineProperty'](exports,'__esModule',{'value':!![]});const Cli_1=require(_0x46074b(0x1c5)),Log_1=require('./lib/utils/Log'),CustomError_1=require(_0x46074b(0x1cb));module[_0x46074b(0x1c2)]=async()=>{const _0x53a456=_0x46074b,_0x5979e4=new Cli_1[(_0x53a456(0x1cc))](),_0xe863cc=new Log_1[(_0x53a456(0x1c8))]('cli'),_0x3e2148=process[_0x53a456(0x1c3)]['slice'](0x2);let _0x8eafed;try{_0x8eafed=await _0x5979e4['run'](_0x3e2148);}catch(_0xe5b4ce){if(_0xe5b4ce instanceof CustomError_1[_0x53a456(0x1bf)]){const _0x4ee7b1=_0xe5b4ce[_0x53a456(0x1c1)];Array[_0x53a456(0x1cd)](_0x4ee7b1)?_0x4ee7b1[_0x53a456(0x1bb)](_0x5964de=>{const _0x1778cf=_0x53a456;_0xe863cc[_0x1778cf(0x1c9)](_0x5964de[_0x1778cf(0x1bd)]+':\x20'+_0x5964de[_0x1778cf(0x1ba)]);}):_0xe863cc[_0x53a456(0x1c9)](_0x4ee7b1[_0x53a456(0x1bd)]+':\x20'+_0x4ee7b1[_0x53a456(0x1ba)]);}else _0xe863cc[_0x53a456(0x1c9)](_0xe5b4ce[_0x53a456(0x1ba)]);_0x8eafed=![];}!_0x8eafed?process[_0x53a456(0x1c7)](0x1):process[_0x53a456(0x1c7)](0x0);};
|
package/dist/lib/Cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x316aa5=_0x527e;function _0x527e(_0x1b263d,_0x483045){const _0x32d383=_0x32d3();return _0x527e=function(_0x527e9f,_0x7a0bd5){_0x527e9f=_0x527e9f-0xba;let _0x5e5e5a=_0x32d383[_0x527e9f];return _0x5e5e5a;},_0x527e(_0x1b263d,_0x483045);}(function(_0x1a7c46,_0x565316){const _0x1f17c6=_0x527e,_0x3693bd=_0x1a7c46();while(!![]){try{const _0x1a7368=parseInt(_0x1f17c6(0xbd))/0x1*(-parseInt(_0x1f17c6(0xd5))/0x2)+-parseInt(_0x1f17c6(0xbc))/0x3*(-parseInt(_0x1f17c6(0xbb))/0x4)+-parseInt(_0x1f17c6(0xd6))/0x5+parseInt(_0x1f17c6(0xce))/0x6*(parseInt(_0x1f17c6(0xc8))/0x7)+-parseInt(_0x1f17c6(0xd0))/0x8*(-parseInt(_0x1f17c6(0xc4))/0x9)+-parseInt(_0x1f17c6(0xc3))/0xa+parseInt(_0x1f17c6(0xc9))/0xb*(parseInt(_0x1f17c6(0xdb))/0xc);if(_0x1a7368===_0x565316)break;else _0x3693bd['push'](_0x3693bd['shift']());}catch(_0x483b01){_0x3693bd['push'](_0x3693bd['shift']());}}}(_0x32d3,0xdfaf1));Object[_0x316aa5(0xd7)](exports,_0x316aa5(0xc7),{'value':!![]}),exports['Cli']=void 0x0;const minimist=require('minimist'),semver_1=require(_0x316aa5(0xd8)),FetchUtils_1_1=require('./utils/FetchUtils-1'),help_1=require(_0x316aa5(0xbf)),build_1=require('./cmds/build'),version_1=require(_0x316aa5(0xba)),fetch_1=require(_0x316aa5(0xd2));class Cli{async[_0x316aa5(0xcd)](_0x52cf97){const _0x4d8270=_0x316aa5;if((0x0,semver_1[_0x4d8270(0xc2)])(process[_0x4d8270(0xd9)][_0x4d8270(0xc6)])<0xe)throw new Error(_0x4d8270(0xc1)+process['versions'][_0x4d8270(0xc6)]+'.'+_0x4d8270(0xcf));FetchUtils_1_1[_0x4d8270(0xc5)][_0x4d8270(0xd3)](fetch_1['fetch']),FetchUtils_1_1[_0x4d8270(0xc5)][_0x4d8270(0xca)](fetch_1['downloadFile']),FetchUtils_1_1['fetchUtils'][_0x4d8270(0xd1)](fetch_1['decompressResponseBuffer']);const _0x3e3803=minimist(_0x52cf97);let _0x49bf60=undefined;if(_0x3e3803['_']['length']===0x0){if(_0x3e3803[_0x4d8270(0xc0)])_0x49bf60=_0x4d8270(0xc0);else _0x3e3803[_0x4d8270(0xda)]&&(_0x49bf60=_0x4d8270(0xda));}else _0x49bf60=_0x3e3803['_'][0x0];!_0x49bf60&&(_0x49bf60='help');switch(_0x49bf60){case _0x4d8270(0xda):case'h':return await(0x0,help_1[_0x4d8270(0xda)])(_0x3e3803);case'build':return await(0x0,build_1[_0x4d8270(0xd4)])(_0x3e3803);case _0x4d8270(0xbe):return await(0x0,build_1[_0x4d8270(0xcc)])(_0x3e3803);case _0x4d8270(0xcd):return await(0x0,build_1['run'])(_0x3e3803);case'version':{return await(0x0,version_1[_0x4d8270(0xc0)])();}default:throw new Error('\x22'+_0x49bf60+_0x4d8270(0xcb));}}}exports['Cli']=Cli;function _0x32d3(){const _0x2f959f=['12fjuwiN','./cmds/version','1325892LqNMrB','3gsQRWv','16190tbGVkc','publish','./cmds/help','version','Current\x20Node.js\x20version\x20is\x20','major','744840GGRfRu','9IRGNwT','fetchUtils','node','__esModule','7833686IihmjM','8463334oVVXUZ','setDownloadFile','\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','store','run','6iispDy','\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.','9338072MxJctg','setDecompressResponseBuffer','./utils/fetch','setFetch','start','82DMeyuJ','8663705kaoQAJ','defineProperty','semver','versions','help'];_0x32d3=function(){return _0x2f959f;};return _0x32d3();}
|
package/dist/lib/cmds/build.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ParsedArgs } from 'minimist';
|
|
2
2
|
export declare function start(args: ParsedArgs, isDev?: boolean): Promise<any>;
|
|
3
3
|
export declare function store(args: ParsedArgs): Promise<boolean>;
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function run(args: ParsedArgs): Promise<boolean>;
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x3bfad=_0x5e80;function _0x37e5(){const _0x2f9512=['161602WVEEIC','runWithSimulator','upload','8961016TJGbMD','10NJKqbJ','PWAGenerator','11838PtLJdt','checkStoreParams','fromNet','./check','SpatialWebTest','__esModule','44mWXKGW','1830668dAkPYq','platform','generate\x20icon:\x20ok','move\x20web\x20project:\x20ok','generator','-------------------\x20build\x20end\x20-------------------','teamId','version','checkPlatformPath','4335DgMvkb','5373261OhVEww','start','generateIcon','938anXkPI','log','../resource','1375404YUiany','parseProject','-------------------\x20build\x20start\x20-------------------','ResourceManager','../pwa','../xcode','buildType','2359hQgiNO','store','XcodeManager','com.SpatialWeb.test','10CvCssU','moveProjectFrom','run','json','name'];_0x37e5=function(){return _0x2f9512;};return _0x37e5();}function _0x5e80(_0xcef394,_0x4619a9){const _0x37e533=_0x37e5();return _0x5e80=function(_0x5e804e,_0x522921){_0x5e804e=_0x5e804e-0x74;let _0xb9daae=_0x37e533[_0x5e804e];return _0xb9daae;},_0x5e80(_0xcef394,_0x4619a9);}(function(_0x19c478,_0x21dd5c){const _0x4ba03f=_0x5e80,_0x165149=_0x19c478();while(!![]){try{const _0x1d1c08=-parseInt(_0x4ba03f(0x9d))/0x1+-parseInt(_0x4ba03f(0x8a))/0x2*(parseInt(_0x4ba03f(0x86))/0x3)+parseInt(_0x4ba03f(0x7d))/0x4*(parseInt(_0x4ba03f(0x74))/0x5)+-parseInt(_0x4ba03f(0x76))/0x6*(-parseInt(_0x4ba03f(0x94))/0x7)+-parseInt(_0x4ba03f(0xa0))/0x8+-parseInt(_0x4ba03f(0x87))/0x9*(-parseInt(_0x4ba03f(0x98))/0xa)+parseInt(_0x4ba03f(0x7c))/0xb*(parseInt(_0x4ba03f(0x8d))/0xc);if(_0x1d1c08===_0x21dd5c)break;else _0x165149['push'](_0x165149['shift']());}catch(_0x293ffd){_0x165149['push'](_0x165149['shift']());}}}(_0x37e5,0xa51ca));Object['defineProperty'](exports,_0x3bfad(0x7b),{'value':!![]}),exports[_0x3bfad(0x88)]=start,exports[_0x3bfad(0x95)]=store,exports[_0x3bfad(0x9a)]=run;const pwa_1=require(_0x3bfad(0x91)),resource_1=require(_0x3bfad(0x8c)),xcode_1=require(_0x3bfad(0x92)),check_1=require(_0x3bfad(0x79));async function start(_0x33d1cc,_0x48e98f=![]){const _0x209342=_0x3bfad;resource_1[_0x209342(0x90)][_0x209342(0x85)](_0x33d1cc[_0x209342(0x7e)]),(0x0,check_1['checkBuildParams'])(_0x33d1cc,_0x48e98f),console[_0x209342(0x8b)](_0x209342(0x8f));let _0x287a84=await pwa_1[_0x209342(0x75)][_0x209342(0x81)](_0x33d1cc,_0x48e98f);!_0x287a84[_0x209342(0x78)]&&(await resource_1['ResourceManager'][_0x209342(0x99)](_0x33d1cc['project']),console[_0x209342(0x8b)](_0x209342(0x80)));const _0x3c4e3a=await resource_1[_0x209342(0x90)][_0x209342(0x89)](_0x287a84);return console[_0x209342(0x8b)](_0x209342(0x7f)),await xcode_1[_0x209342(0x96)][_0x209342(0x8e)]({'icon':_0x3c4e3a,'manifestInfo':_0x287a84,'teamId':_0x33d1cc[_0x209342(0x83)],'version':_0x33d1cc[_0x209342(0x84)],'buildType':_0x33d1cc[_0x209342(0x93)],'export':_0x33d1cc['export']},_0x48e98f),console[_0x209342(0x8b)](_0x209342(0x82)),_0x287a84;}async function store(_0x1ecaf1){const _0x3304bc=_0x3bfad;resource_1[_0x3304bc(0x90)][_0x3304bc(0x85)](_0x1ecaf1['platform']),(0x0,check_1[_0x3304bc(0x77)])(_0x1ecaf1);let _0x4fe1a7={'name':_0x3304bc(0x7a)};_0x1ecaf1[_0x3304bc(0x93)]='app-store-connect';if(_0x1ecaf1[_0x3304bc(0x9c)])_0x4fe1a7['name']=_0x1ecaf1[_0x3304bc(0x9c)];else{const _0x2f69a5=await start(_0x1ecaf1);if(!_0x2f69a5)return![];_0x4fe1a7[_0x3304bc(0x9c)]=_0x2f69a5['json'][_0x3304bc(0x9c)];}return await xcode_1[_0x3304bc(0x96)][_0x3304bc(0x9f)](_0x1ecaf1,_0x4fe1a7),!![];}async function run(_0x4c3fd8){const _0x17f5a8=_0x3bfad;resource_1[_0x17f5a8(0x90)]['checkPlatformPath'](_0x4c3fd8[_0x17f5a8(0x7e)]);let _0x2aa71c={'name':'SpatialWebTest','id':_0x17f5a8(0x97)};const _0x5480d1=await start(_0x4c3fd8,!![]);if(!_0x5480d1)return![];return _0x2aa71c[_0x17f5a8(0x9c)]=_0x5480d1['json'][_0x17f5a8(0x9c)],_0x2aa71c['id']=_0x5480d1[_0x17f5a8(0x9b)]['id'],await xcode_1[_0x17f5a8(0x96)][_0x17f5a8(0x9e)](_0x2aa71c),!![];}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var _0x2e1c5a=_0x3b25;function _0x5910(){var _0x24b9cb=['1018032BSnemN','935475xSVjQr','manifest\x20and\x20manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','171136IuMsqZ','16wYmapD','teamId','225999cnTOHq','2144ADHpRR','teamId\x20is\x20required','version\x20is\x20required','u\x20and\x20p\x20or\x20k\x20and\x20i\x20is\x20required','manifest-url','checkBuildParams','597303CFxhGN','manifest\x20or\x20manifest-url\x20is\x20required','version','manifest','542808BToqqY'];_0x5910=function(){return _0x24b9cb;};return _0x5910();}(function(_0x457275,_0x1e04a1){var _0x3bcdd5=_0x3b25,_0xca78ba=_0x457275();while(!![]){try{var _0x2251ba=parseInt(_0x3bcdd5(0x16a))/0x1*(-parseInt(_0x3bcdd5(0x179))/0x2)+parseInt(_0x3bcdd5(0x17b))/0x3+parseInt(_0x3bcdd5(0x178))/0x4+parseInt(_0x3bcdd5(0x176))/0x5+-parseInt(_0x3bcdd5(0x174))/0x6+parseInt(_0x3bcdd5(0x170))/0x7+-parseInt(_0x3bcdd5(0x175))/0x8;if(_0x2251ba===_0x1e04a1)break;else _0xca78ba['push'](_0xca78ba['shift']());}catch(_0x2acf38){_0xca78ba['push'](_0xca78ba['shift']());}}}(_0x5910,0x26013));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x2e1c5a(0x16f)]=checkBuildParams,exports['checkStoreParams']=checkStoreParams;function _0x3b25(_0x31ff3d,_0x57dbca){var _0x591049=_0x5910();return _0x3b25=function(_0x3b258a,_0xe8248e){_0x3b258a=_0x3b258a-0x16a;var _0x40bd28=_0x591049[_0x3b258a];return _0x40bd28;},_0x3b25(_0x31ff3d,_0x57dbca);}function checkBuildParams(_0x215a64,_0x4b500d=![]){var _0x3c12c1=_0x2e1c5a;if(!_0x215a64['manifest']&&!_0x215a64[_0x3c12c1(0x16e)])throw new Error(_0x3c12c1(0x171));if(_0x215a64[_0x3c12c1(0x173)]&&_0x215a64[_0x3c12c1(0x16e)])throw new Error(_0x3c12c1(0x177));if(!_0x215a64[_0x3c12c1(0x17a)]&&!_0x4b500d)throw new Error(_0x3c12c1(0x16b));}function checkStoreParams(_0x518069){var _0x47ac9f=_0x2e1c5a;if(!(_0x518069['u']&&_0x518069['p'])&&!(_0x518069['k']&&_0x518069['i']))throw new Error(_0x47ac9f(0x16d));if(!_0x518069[_0x47ac9f(0x172)])throw new Error(_0x47ac9f(0x16c));}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x528c18=_0x1971;function _0x212c(){const _0x155fab=['81biHkVy','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','5vqLbyW','2972812omhkxu','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','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>','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','publish','980690clnBTK','help','join','1649616xipzWs','webspatial\x20[command]\x20<options>','659404sEGICe','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','246997MwQZir','210kxpjYN','Usage:','1290648pRNFgH','dev','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','main','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','build','defineProperty','../utils/Log','ConsoleLog','55338UbXQfC'];_0x212c=function(){return _0x155fab;};return _0x212c();}function _0x1971(_0x1ff044,_0x19ce3f){const _0x212c3a=_0x212c();return _0x1971=function(_0x1971a8,_0xd29f1e){_0x1971a8=_0x1971a8-0x119;let _0x4b2999=_0x212c3a[_0x1971a8];return _0x4b2999;},_0x1971(_0x1ff044,_0x19ce3f);}(function(_0x3cd0dc,_0x1ede1b){const _0x39fb=_0x1971,_0x1fb563=_0x3cd0dc();while(!![]){try{const _0x24f9bc=parseInt(_0x39fb(0x125))/0x1+parseInt(_0x39fb(0x123))/0x2+parseInt(_0x39fb(0x128))/0x3+parseInt(_0x39fb(0x119))/0x4*(parseInt(_0x39fb(0x134))/0x5)+-parseInt(_0x39fb(0x131))/0x6*(parseInt(_0x39fb(0x126))/0x7)+-parseInt(_0x39fb(0x121))/0x8+parseInt(_0x39fb(0x132))/0x9*(-parseInt(_0x39fb(0x11e))/0xa);if(_0x24f9bc===_0x1ede1b)break;else _0x1fb563['push'](_0x1fb563['shift']());}catch(_0x1ce1ea){_0x1fb563['push'](_0x1fb563['shift']());}}}(_0x212c,0x5de5d));Object[_0x528c18(0x12e)](exports,'__esModule',{'value':!![]}),exports['help']=help;const Log_1=require(_0x528c18(0x12f)),HELP_MESSAGES=new Map([[_0x528c18(0x12b),[_0x528c18(0x122),'','','help\x20................\x20shows\x20this\x20menu',_0x528c18(0x12a)+'\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','dev\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator',_0x528c18(0x133)][_0x528c18(0x120)]('\x0a')],[_0x528c18(0x12d),[_0x528c18(0x127),'','','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','','',_0x528c18(0x12c)][_0x528c18(0x120)]('\x0a')],[_0x528c18(0x129),[_0x528c18(0x127),'','',_0x528c18(0x11c),'','',_0x528c18(0x124)][_0x528c18(0x120)]('\x0a')],[_0x528c18(0x11d),[_0x528c18(0x127),'','',_0x528c18(0x11b),'','','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','','',_0x528c18(0x11a)][_0x528c18(0x120)]('\x0a')]]);async function help(_0x51d2b1,_0x1a48a7=new Log_1[(_0x528c18(0x130))](_0x528c18(0x11f))){const _0x2f2110=_0x528c18,_0x234d7b=_0x51d2b1['_'][0x1],_0x20db68=HELP_MESSAGES['get'](_0x234d7b)||HELP_MESSAGES['get'](_0x2f2110(0x12b));return _0x1a48a7['info'](_0x20db68),!![];}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x13fd(_0x55a0ed,_0x17f30a){const _0xbf2783=_0xbf27();return _0x13fd=function(_0x13fd7e,_0x160aa3){_0x13fd7e=_0x13fd7e-0xf1;let _0x5d8523=_0xbf2783[_0x13fd7e];return _0x5d8523;},_0x13fd(_0x55a0ed,_0x17f30a);}function _0xbf27(){const _0x297e90=['__esModule','4712253kEZDfS','474128fJWnAM','6699650rWpwKT','toString','info','defineProperty','52fNekQN','3471978VyCAnn','220423FejRxZ','path','77397qcTMyR','version','243MfeLBl','2989584TTfHjq','../../../package.json','../utils/Log','ConsoleLog','join','promises'];_0xbf27=function(){return _0x297e90;};return _0xbf27();}const _0x5d1c71=_0x13fd;(function(_0x5d09f9,_0x15c832){const _0x49cfbb=_0x13fd,_0x378adb=_0x5d09f9();while(!![]){try{const _0x4c0b28=-parseInt(_0x49cfbb(0xf5))/0x1+parseInt(_0x49cfbb(0xf3))/0x2*(parseInt(_0x49cfbb(0xf7))/0x3)+-parseInt(_0x49cfbb(0xfa))/0x4+parseInt(_0x49cfbb(0x103))/0x5+parseInt(_0x49cfbb(0xf4))/0x6+parseInt(_0x49cfbb(0x101))/0x7+parseInt(_0x49cfbb(0x102))/0x8*(-parseInt(_0x49cfbb(0xf9))/0x9);if(_0x4c0b28===_0x15c832)break;else _0x378adb['push'](_0x378adb['shift']());}catch(_0x30afa2){_0x378adb['push'](_0x378adb['shift']());}}}(_0xbf27,0xa9911));Object[_0x5d1c71(0xf2)](exports,_0x5d1c71(0x100),{'value':!![]}),exports[_0x5d1c71(0xf8)]=version;const fs=require('fs'),path=require(_0x5d1c71(0xf6)),Log_1=require(_0x5d1c71(0xfc));async function version(_0x51cdd7=new Log_1[(_0x5d1c71(0xfd))](_0x5d1c71(0xf8))){const _0x2b8679=_0x5d1c71,_0x67a047=path[_0x2b8679(0xfe)](__dirname,_0x2b8679(0xfb)),_0x34e9eb=await(await fs[_0x2b8679(0xff)]['readFile'](_0x67a047))[_0x2b8679(0x104)](),_0x19ffb5=JSON['parse'](_0x34e9eb);return _0x51cdd7[_0x2b8679(0xf1)](_0x19ffb5[_0x2b8679(0xf8)]),!![];}
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2040bb=_0x48ac;(function(_0x597ae7,_0x5683f4){const _0x1d49e6=_0x48ac,_0x4dd767=_0x597ae7();while(!![]){try{const _0x393ae1=-parseInt(_0x1d49e6(0x1ef))/0x1+-parseInt(_0x1d49e6(0x1f9))/0x2*(parseInt(_0x1d49e6(0x1e3))/0x3)+parseInt(_0x1d49e6(0x1f1))/0x4+-parseInt(_0x1d49e6(0x1c9))/0x5+parseInt(_0x1d49e6(0x1d3))/0x6+-parseInt(_0x1d49e6(0x1c7))/0x7+parseInt(_0x1d49e6(0x1d5))/0x8;if(_0x393ae1===_0x5683f4)break;else _0x4dd767['push'](_0x4dd767['shift']());}catch(_0x299af2){_0x4dd767['push'](_0x4dd767['shift']());}}}(_0x4d57,0x4f9a7));Object[_0x2040bb(0x1da)](exports,_0x2040bb(0x1c5),{'value':!![]}),exports[_0x2040bb(0x1c6)]=void 0x0,exports[_0x2040bb(0x1f2)]=configId,exports['configStartUrl']=configStartUrl,exports['configScope']=configScope,exports['configDisplay']=configDisplay,exports['configMainScene']=configMainScene,exports[_0x2040bb(0x1de)]=configDeeplink;const utils_1=require(_0x2040bb(0x1dc)),validate_1=require('./validate'),path_1=require(_0x2040bb(0x1d8));function configId(_0x157b3b){const _0x59d0ae=_0x2040bb,_0x26100b=new URL(_0x157b3b['id']);let _0x36b4db=_0x26100b[_0x59d0ae(0x1ee)][_0x59d0ae(0x207)]('.')[_0x59d0ae(0x1e6)]();_0x157b3b['id']=_0x36b4db[_0x59d0ae(0x1cd)]('.');}function configStartUrl(_0x2b201c,_0x448259,_0x33d587){const _0x4e9240=_0x2040bb,_0x3bfd90=(0x0,validate_1['validateURL'])(_0x2b201c[_0x4e9240(0x1d4)]);let _0x45bbeb=_0x2b201c[_0x4e9240(0x1d4)];_0x33d587?!_0x3bfd90&&(_0x45bbeb=(0x0,path_1[_0x4e9240(0x1cd)])((0x0,utils_1['parseRouter'])(_0x448259),_0x2b201c[_0x4e9240(0x1d4)])):!_0x3bfd90&&(_0x45bbeb=(0x0,path_1['join'])(_0x4e9240(0x1d7),_0x2b201c[_0x4e9240(0x1d4)])),_0x45bbeb=(0x0,utils_1['getAVPVersionUrl'])(_0x45bbeb),_0x2b201c[_0x4e9240(0x1d4)]=_0x45bbeb;}function _0x48ac(_0x1e3fb4,_0x4b344e){const _0x4d5794=_0x4d57();return _0x48ac=function(_0x48ac60,_0x5722d5){_0x48ac60=_0x48ac60-0x1c5;let _0x4bf43a=_0x4d5794[_0x48ac60];return _0x4bf43a;},_0x48ac(_0x1e3fb4,_0x4b344e);}function configScope(_0xf28db0,_0x20afe9){const _0x3695ba=_0x2040bb;var _0x2160f3,_0x1888d5,_0x4f15dd;let _0x4308d9='';const _0x2ea368=(0x0,validate_1['validateURL'])(_0xf28db0[_0x3695ba(0x1cc)]);if(_0x20afe9&&_0x2ea368){const _0x205be4=new URL((_0x2160f3=_0xf28db0[_0x3695ba(0x1cc)])!==null&&_0x2160f3!==void 0x0?_0x2160f3:''),_0x53c704=new URL(_0xf28db0[_0x3695ba(0x1d4)]);(_0x205be4['host']!==_0x53c704[_0x3695ba(0x1ee)]||_0xf28db0[_0x3695ba(0x1d4)]['indexOf'](_0x4308d9)!==0x0)&&(_0x4308d9=(0x0,utils_1[_0x3695ba(0x205)])(_0xf28db0[_0x3695ba(0x1d4)]));}else{if(_0x20afe9&&!_0x2ea368){const _0x34c83e=_0xf28db0[_0x3695ba(0x1d4)][_0x3695ba(0x1f7)](_0x3695ba(0x1e2))===0x0?_0x3695ba(0x1e2):_0x3695ba(0x1e5);_0x4308d9=(0x0,path_1[_0x3695ba(0x1cd)])(_0xf28db0[_0x3695ba(0x1d4)][_0x3695ba(0x204)](_0x34c83e,''),(_0x1888d5=_0xf28db0[_0x3695ba(0x1cc)])!==null&&_0x1888d5!==void 0x0?_0x1888d5:''),_0x4308d9=_0x34c83e+_0x4308d9;}else _0x4308d9=(0x0,path_1[_0x3695ba(0x1cd)])((0x0,utils_1[_0x3695ba(0x205)])(_0xf28db0[_0x3695ba(0x1d4)]),(_0x4f15dd=_0xf28db0[_0x3695ba(0x1cc)])!==null&&_0x4f15dd!==void 0x0?_0x4f15dd:'');}_0xf28db0[_0x3695ba(0x1cc)]=_0x4308d9;}function configDisplay(_0xfd40e4){const _0x20384c=_0x2040bb;let _0x28f588=_0xfd40e4['display'];_0x28f588!==_0x20384c(0x1e0)&&_0x28f588!==_0x20384c(0x1e8)&&(_0x28f588=_0x20384c(0x1e8));if(_0xfd40e4[_0x20384c(0x208)]&&_0xfd40e4[_0x20384c(0x208)][_0x20384c(0x1f8)]>0x0){const _0x294b88=_0xfd40e4['display_override'][_0x20384c(0x1f7)]('minimal-ui'),_0x186268=_0xfd40e4[_0x20384c(0x208)][_0x20384c(0x1f7)]('standalone');if(_0x294b88>=0x0&&_0x186268>=0x0)_0x28f588=_0x186268>_0x294b88?_0x20384c(0x1e8):_0x20384c(0x1e0);else{if(_0x294b88>=0x0)_0x28f588='minimal-ui';else _0x186268>=0x0&&(_0x28f588=_0x20384c(0x1e8));}}}function configMainScene(_0x35e080){const _0x3f6e14=_0x2040bb;var _0x4bf755,_0x4da810;const _0x37097e=[_0x3f6e14(0x1f4),'contentMinSize',_0x3f6e14(0x1f3)];let _0x4e6820={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x3f6e14(0x1f4)};if(_0x35e080[_0x3f6e14(0x203)]){if(typeof _0x35e080[_0x3f6e14(0x203)]===_0x3f6e14(0x1fb))_0x4e6820['defaultSize'][_0x3f6e14(0x1fd)]=Number((_0x4bf755=_0x35e080['xr_main_scene'][_0x3f6e14(0x1f5)])===null||_0x4bf755===void 0x0?void 0x0:_0x4bf755[_0x3f6e14(0x1fd)])>0x0?_0x35e080[_0x3f6e14(0x203)][_0x3f6e14(0x1f5)][_0x3f6e14(0x1fd)]:0x500,_0x4e6820[_0x3f6e14(0x1ff)][_0x3f6e14(0x1df)]=Number((_0x4da810=_0x35e080['xr_main_scene']['default_size'])===null||_0x4da810===void 0x0?void 0x0:_0x4da810['height'])>0x0?_0x35e080['xr_main_scene'][_0x3f6e14(0x1f5)][_0x3f6e14(0x1df)]:0x500,_0x4e6820['resizability']=_0x37097e[_0x3f6e14(0x1d9)](_0x35e080[_0x3f6e14(0x203)][_0x3f6e14(0x1c8)])?_0x35e080[_0x3f6e14(0x203)]['resizability']:_0x3f6e14(0x1f4),_0x35e080['mainScene']=_0x4e6820;else typeof _0x35e080[_0x3f6e14(0x203)]==='string'&&(_0x35e080[_0x3f6e14(0x1cb)]=_0x3f6e14(0x1e9));}}function configDeeplink(_0x2ca949){const _0x2e707a=_0x2040bb;if(_0x2ca949[_0x2e707a(0x1d0)]&&_0x2ca949[_0x2e707a(0x1d0)]['length']>0x0)for(var _0x4aeb40=0x0;_0x4aeb40<_0x2ca949[_0x2e707a(0x1d0)]['length'];_0x4aeb40++){const _0xd7113d=_0x2ca949[_0x2e707a(0x1d0)][_0x4aeb40];if(_0xd7113d['protocol']&&(exports[_0x2e707a(0x1c6)]['includes'](_0xd7113d[_0x2e707a(0x1d1)])||_0xd7113d[_0x2e707a(0x1d1)]['indexOf'](_0x2e707a(0x1e7))===0x0)){if(!((0x0,validate_1[_0x2e707a(0x1e1)])(_0xd7113d[_0x2e707a(0x206)])&&_0xd7113d[_0x2e707a(0x206)][_0x2e707a(0x1f7)](_0x2ca949['scope'])<0x0))continue;}_0x2ca949['protocol_handlers'][_0x2e707a(0x1db)](_0x4aeb40,0x1),_0x4aeb40--;}}function _0x4d57(){const _0x5758fe=['__esModule','safelist','1932273SmoRyr','resizability','80430OgOVgs','news','mainScene','scope','join','smsto','xmpp','protocol_handlers','protocol','nntp','2845932LTdbJR','start_url','5454912RaMpjG','matrix','./static-web','path','includes','defineProperty','splice','../utils/utils','bitcoin','configDeeplink','height','minimal-ui','validateURL','http://','4869RzJvRV','sms','https://','reverse','web+','standalone','dynamic','wtai','openpgp4fpr','irc','mms','host','624986CXwqRp','urn','977644gLkZfh','configId','contentSize','automatic','default_size','ftp','indexOf','length','194txKydn','ircs','object','geo','width','ssh','defaultSize','tel','sftp','webcal','xr_main_scene','replace','parseRouter','url','split','display_override'];_0x4d57=function(){return _0x5758fe;};return _0x4d57();}exports[_0x2040bb(0x1c6)]=[_0x2040bb(0x1dd),_0x2040bb(0x1f6),'ftps',_0x2040bb(0x1fc),'im',_0x2040bb(0x1ec),_0x2040bb(0x1fa),'magnet','mailto',_0x2040bb(0x1d6),_0x2040bb(0x1ed),_0x2040bb(0x1ca),_0x2040bb(0x1d2),_0x2040bb(0x1eb),_0x2040bb(0x201),'sip',_0x2040bb(0x1e4),_0x2040bb(0x1ce),_0x2040bb(0x1fe),_0x2040bb(0x200),_0x2040bb(0x1f0),_0x2040bb(0x202),_0x2040bb(0x1ea),_0x2040bb(0x1cf)];
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x212496=_0x3277;(function(_0x3405ab,_0x1a3cae){const _0x335ad4=_0x3277,_0x1e4c52=_0x3405ab();while(!![]){try{const _0x49ed20=parseInt(_0x335ad4(0xf8))/0x1*(parseInt(_0x335ad4(0xed))/0x2)+-parseInt(_0x335ad4(0xe8))/0x3*(-parseInt(_0x335ad4(0xf4))/0x4)+parseInt(_0x335ad4(0xfb))/0x5+parseInt(_0x335ad4(0xda))/0x6*(-parseInt(_0x335ad4(0xe1))/0x7)+parseInt(_0x335ad4(0xf0))/0x8+-parseInt(_0x335ad4(0xdc))/0x9+-parseInt(_0x335ad4(0xe7))/0xa;if(_0x49ed20===_0x1a3cae)break;else _0x1e4c52['push'](_0x1e4c52['shift']());}catch(_0x22c068){_0x1e4c52['push'](_0x1e4c52['shift']());}}}(_0x4c8f,0xb1560));function _0x3277(_0x48e410,_0x37ba82){const _0x4c8f53=_0x4c8f();return _0x3277=function(_0x32773f,_0x3cd848){_0x32773f=_0x32773f-0xd7;let _0x1832fd=_0x4c8f53[_0x32773f];return _0x1832fd;},_0x3277(_0x48e410,_0x37ba82);}Object[_0x212496(0xd8)](exports,_0x212496(0xdf),{'value':!![]}),exports[_0x212496(0xfa)]=void 0x0;function _0x4c8f(){const _0x4b7e5f=['569310SsZGrM','configDisplay','12137049KhuQQu','fromNet','join','__esModule','minimal-ui','35OmcqYf','validate','generator','DisplayModes','configScope','standalone','15481880JyQbOy','92355Rficwm','configId','./config','configMainScene','json','335524GmjyvJ','checkIcons','path','5665056arcMaS','checkStartUrl','manifest-url','reset\x20manifest.json:\x20ok','184oePeAD','../resource/load','cwd','log','4YTSkxs','loadJsonFromNet','PWAGenerator','6511260LcNKJc','manifest','defineProperty','checkManifestJson'];_0x4c8f=function(){return _0x4b7e5f;};return _0x4c8f();}const path_1=require(_0x212496(0xef)),config_1=require(_0x212496(0xea)),load_1=require(_0x212496(0xf5)),validate_1=require('./validate');class PWAGenerator{static async[_0x212496(0xe3)](_0xec4cb7,_0x4dfe06=![]){const _0x370a7a=_0x212496;let _0x4719df=await this[_0x370a7a(0xe2)](_0xec4cb7,_0x4dfe06);return console[_0x370a7a(0xf7)]('check\x20manifest.json:\x20ok'),await this['config'](_0x4719df,_0x4dfe06),console['log'](_0x370a7a(0xf3)),_0x4719df;}static async[_0x212496(0xe2)](_0x475d74,_0x51e90f=![]){const _0xe533e6=_0x212496;let _0x3dd00f={},_0x29a899='',_0x4089b5=![];if(_0x475d74[_0xe533e6(0xf2)])_0x29a899=_0x475d74[_0xe533e6(0xf2)],_0x4089b5=!![],_0x3dd00f=await(0x0,load_1[_0xe533e6(0xf9)])(_0x475d74[_0xe533e6(0xf2)]);else _0x475d74[_0xe533e6(0xd7)]&&(_0x29a899=(0x0,path_1[_0xe533e6(0xde)])(process[_0xe533e6(0xf6)](),_0x475d74[_0xe533e6(0xd7)]),_0x3dd00f=await(0x0,load_1['loadJsonFromDisk'])(_0x475d74['manifest']));(0x0,validate_1[_0xe533e6(0xd9)])(_0x3dd00f);var _0x4d80a6=(0x0,validate_1[_0xe533e6(0xf1)])(_0x3dd00f,_0x29a899,_0x4089b5,_0x51e90f);if(!_0x51e90f)(0x0,validate_1['checkId'])(_0x3dd00f);return await(0x0,validate_1[_0xe533e6(0xee)])(_0x3dd00f,_0x29a899),{'json':_0x3dd00f,'url':_0x29a899,'fromNet':_0x4d80a6};}static['config'](_0x334553,_0x42b222){const _0x2f9325=_0x212496;(0x0,config_1['configStartUrl'])(_0x334553[_0x2f9325(0xec)],_0x334553['url'],_0x334553[_0x2f9325(0xdd)]);if(!_0x42b222)(0x0,config_1[_0x2f9325(0xe9)])(_0x334553[_0x2f9325(0xec)]);(0x0,config_1[_0x2f9325(0xe5)])(_0x334553[_0x2f9325(0xec)],_0x334553[_0x2f9325(0xdd)]),(0x0,config_1[_0x2f9325(0xdb)])(_0x334553[_0x2f9325(0xec)]),(0x0,config_1['configDeeplink'])(_0x334553[_0x2f9325(0xec)]),(0x0,config_1[_0x2f9325(0xeb)])(_0x334553[_0x2f9325(0xec)]);}}exports['PWAGenerator']=PWAGenerator,PWAGenerator[_0x212496(0xe4)]=[_0x212496(0xe6),_0x212496(0xe0)];
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x251cb7=_0x5a60;function _0x1638(){const _0x599f29=['\x20can\x20only\x20be\x20one\x20of\x20\x22minimal-ui\x22\x20or\x20\x22standalone\x22\x20(your\x20current\x20configuration\x20is\x20','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','Local\x20manifest\x20cannot\x20package\x20network\x20project','165252JmffkR','validateURL','short_name','display','ImageHelper','checkStartUrl','defineProperty','split','https://','http://','2OkPfoK','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20display\x20property\x20must\x20be\x20provided,\x20and\x20its\x20value','1492536YXIKjX','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','getWidth','purpose','707763HgMFni','CustomError','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','../utils/CustomError','length','3mZaDER','loadImageFromDisk','485710NYwhBK','name','loadImageFromNet','12PrWpqs','host','http','start_url','745768kGYRGa','startsWith','isFullyOpaque','maskable','../resource/load','src','__esModule','2663622uMhtzL','icons','getHeight','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','push','sizes','checkId','../utils/utils','checkIcons','checkManifestJson','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL','../resource/imageHelper','10FaLfus','indexOf','DisplayModes','7939569JZghrN','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','path','parseRouter','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.'];_0x1638=function(){return _0x599f29;};return _0x1638();}(function(_0x46b957,_0x3de4f8){const _0x30875a=_0x5a60,_0x2da992=_0x46b957();while(!![]){try{const _0x41c4ba=-parseInt(_0x30875a(0xb7))/0x1*(parseInt(_0x30875a(0x85))/0x2)+parseInt(_0x30875a(0x90))/0x3*(-parseInt(_0x30875a(0x99))/0x4)+-parseInt(_0x30875a(0x92))/0x5*(parseInt(_0x30875a(0x95))/0x6)+-parseInt(_0x30875a(0x8b))/0x7+-parseInt(_0x30875a(0x87))/0x8+-parseInt(_0x30875a(0xa0))/0x9*(-parseInt(_0x30875a(0xac))/0xa)+parseInt(_0x30875a(0xaf))/0xb;if(_0x41c4ba===_0x3de4f8)break;else _0x2da992['push'](_0x2da992['shift']());}catch(_0x2186bd){_0x2da992['push'](_0x2da992['shift']());}}}(_0x1638,0x2cf13));function _0x5a60(_0x43e2c5,_0x3b2c1c){const _0x163867=_0x1638();return _0x5a60=function(_0x5a60b9,_0x5704e9){_0x5a60b9=_0x5a60b9-0x7f;let _0x27c3a2=_0x163867[_0x5a60b9];return _0x27c3a2;},_0x5a60(_0x43e2c5,_0x3b2c1c);}Object[_0x251cb7(0x81)](exports,_0x251cb7(0x9f),{'value':!![]}),exports[_0x251cb7(0xa9)]=checkManifestJson,exports[_0x251cb7(0x80)]=checkStartUrl,exports[_0x251cb7(0xa8)]=checkIcons,exports[_0x251cb7(0xa6)]=checkId,exports[_0x251cb7(0xb8)]=validateURL;const path_1=require(_0x251cb7(0xb1)),_1=require('.'),CustomError_1=require(_0x251cb7(0x8e)),utils_1=require(_0x251cb7(0xa7)),imageHelper_1=require(_0x251cb7(0xab)),load_1=require(_0x251cb7(0x9d));function checkManifestJson(_0x5ba60a){const _0x58fd21=_0x251cb7;var _0x2f3f88;const _0x1fe5e3=[];!_0x5ba60a[_0x58fd21(0x93)]&&!_0x5ba60a[_0x58fd21(0xb9)]&&_0x1fe5e3['push']({'code':0xbbe,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','message_staring_params':{}});!((_0x2f3f88=_0x5ba60a['icons'])===null||_0x2f3f88===void 0x0?void 0x0:_0x2f3f88[_0x58fd21(0x8f)])&&_0x1fe5e3[_0x58fd21(0xa4)]({'code':0xbbf,'message':_0x58fd21(0xb0),'message_staring_params':{}});!_0x5ba60a[_0x58fd21(0x98)]&&_0x1fe5e3[_0x58fd21(0xa4)]({'code':0xbc0,'message':_0x58fd21(0x88),'message_staring_params':{}});!_1['PWAGenerator'][_0x58fd21(0xae)]['includes'](_0x5ba60a[_0x58fd21(0xba)])&&_0x1fe5e3['push']({'code':0xbc1,'message':_0x58fd21(0x86)+(_0x58fd21(0xb4)+_0x5ba60a[_0x58fd21(0xba)]+')'),'message_staring_params':{'display':_0x5ba60a[_0x58fd21(0xba)]}});if(_0x1fe5e3[_0x58fd21(0x8f)])throw new CustomError_1['CustomError'](_0x1fe5e3);}function checkStartUrl(_0x322a99,_0x35f1df,_0x2e7241,_0x514e9f=![]){const _0x178710=_0x251cb7;var _0x1a7901=![];if(_0x514e9f)return _0x1a7901=_0x322a99[_0x178710(0x98)][_0x178710(0xad)]('https://')===0x0||_0x322a99[_0x178710(0x98)][_0x178710(0xad)](_0x178710(0x84))===0x0,_0x1a7901;if(_0x2e7241){if(_0x322a99[_0x178710(0x98)]['indexOf']('https://')==0x0){const _0x5d3c12=new URL(_0x322a99[_0x178710(0x98)]),_0x271118=new URL(_0x35f1df);if(_0x5d3c12[_0x178710(0x96)]!==_0x271118[_0x178710(0x96)])throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x178710(0xa3),'message_staring_params':{}});}else{if(_0x322a99[_0x178710(0x98)]['indexOf'](_0x178710(0x84))==0x0)throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x178710(0xb5),'message_staring_params':{}});}}else{if(_0x322a99['start_url'][_0x178710(0xad)](_0x178710(0x83))==0x0||_0x322a99['start_url']['indexOf'](_0x178710(0x84))==0x0)throw new CustomError_1[(_0x178710(0x8c))]({'code':0xfa0,'message':_0x178710(0xb6),'message_staring_params':{}});}return _0x1a7901;}async function checkIcons(_0x23bc2c,_0x1463ed){const _0x34ded2=_0x251cb7;var _0x173b10;const _0x235077=(0x0,utils_1[_0x34ded2(0xb2)])(_0x1463ed);let _0x547e88,_0x4834d0,_0x12005a,_0x13187a=0x0;for(var _0x1966b1=0x0;_0x1966b1<_0x23bc2c[_0x34ded2(0xa1)][_0x34ded2(0x8f)];_0x1966b1++){const _0x81226f=_0x23bc2c[_0x34ded2(0xa1)][_0x1966b1];let _0x28ca69=((_0x173b10=_0x81226f[_0x34ded2(0x8a)])===null||_0x173b10===void 0x0?void 0x0:_0x173b10[_0x34ded2(0xad)](_0x34ded2(0x9c)))>=0x0;if(!_0x28ca69)continue;let _0x7a872a=![],_0x35a16f=_0x81226f[_0x34ded2(0x9e)],_0x232693,_0xacab8=0x0;!validateURL(_0x35a16f)&&(_0x35a16f=(0x0,path_1['join'])(_0x235077,_0x35a16f));if(_0x81226f[_0x34ded2(0xa5)]){const _0x3d5cf1=_0x81226f[_0x34ded2(0xa5)][_0x34ded2(0x82)]('\x20');_0x3d5cf1['forEach'](_0x5c4c97=>{const _0x34dcac=_0x34ded2;let _0x31ef55=_0x5c4c97[_0x34dcac(0x82)]('x');Number(_0x31ef55[0x0])>=0x400&&Number(_0x31ef55[0x1])>=0x400&&(_0x7a872a=!![],Number(_0x31ef55[0x0])>_0xacab8&&(_0xacab8=Number(_0x31ef55[0x0])));});}else _0x232693=!_0x35a16f[_0x34ded2(0x9a)](_0x34ded2(0x97))?await(0x0,load_1[_0x34ded2(0x91)])(_0x35a16f):await(0x0,load_1[_0x34ded2(0x94)])(_0x35a16f),_0x232693['getWidth']()>=0x400&&_0x232693[_0x34ded2(0xa2)]()>=0x400&&(_0x7a872a=!![],_0x232693[_0x34ded2(0x89)]()>_0xacab8&&(_0xacab8=_0x232693[_0x34ded2(0x89)]()));_0x7a872a&&_0x28ca69&&(_0xacab8>_0x13187a&&(_0x13187a=_0xacab8,_0x547e88=_0x232693,_0x4834d0=_0x35a16f,_0x12005a=_0x81226f[_0x34ded2(0x8a)]));}if(_0x13187a===0x0)throw new CustomError_1[(_0x34ded2(0x8c))]({'code':0xfa0,'message':_0x34ded2(0x8d),'message_staring_params':{}});else _0x4834d0&&(_0x547e88=!_0x4834d0[_0x34ded2(0x9a)]('http')?await(0x0,load_1[_0x34ded2(0x91)])(_0x4834d0):await(0x0,load_1[_0x34ded2(0x94)])(_0x4834d0));if(_0x547e88&&!imageHelper_1[_0x34ded2(0x7f)][_0x34ded2(0x9b)](_0x547e88))throw new CustomError_1[(_0x34ded2(0x8c))]({'code':0xfa0,'message':_0x34ded2(0xb3),'message_staring_params':{}});_0x23bc2c[_0x34ded2(0xa1)]=[{'src':_0x4834d0,'sizes':_0x13187a+'x'+_0x13187a,'purpose':_0x12005a}];}function checkId(_0x198d48){const _0x5dd8c4=_0x251cb7;!_0x198d48['id']&&(_0x198d48['id']=_0x198d48['start_url']);if(!validateURL(_0x198d48['id']))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x5dd8c4(0xaa),'message_staring_params':{}});}function validateURL(_0x1ee91c){try{return new URL(_0x1ee91c),!![];}catch(_0x1fc5e9){return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x13b75d=_0x4375;(function(_0x1cb32c,_0x9a94e2){const _0x5e5222=_0x4375,_0x572cb2=_0x1cb32c();while(!![]){try{const _0x12a539=parseInt(_0x5e5222(0x11d))/0x1*(-parseInt(_0x5e5222(0x11b))/0x2)+-parseInt(_0x5e5222(0x122))/0x3*(-parseInt(_0x5e5222(0x123))/0x4)+parseInt(_0x5e5222(0x134))/0x5*(parseInt(_0x5e5222(0x135))/0x6)+parseInt(_0x5e5222(0x125))/0x7*(parseInt(_0x5e5222(0x11e))/0x8)+-parseInt(_0x5e5222(0x120))/0x9*(-parseInt(_0x5e5222(0x12f))/0xa)+parseInt(_0x5e5222(0x121))/0xb*(-parseInt(_0x5e5222(0x12a))/0xc)+parseInt(_0x5e5222(0x127))/0xd;if(_0x12a539===_0x9a94e2)break;else _0x572cb2['push'](_0x572cb2['shift']());}catch(_0x1147ea){_0x572cb2['push'](_0x572cb2['shift']());}}}(_0xa66e,0x1f5dd));Object[_0x13b75d(0x12d)](exports,_0x13b75d(0x132),{'value':!![]}),exports[_0x13b75d(0x128)]=copyDir,exports[_0x13b75d(0x11f)]=clearDir;const fs=require('fs');function _0xa66e(){const _0x3458b2=['readdirSync','1364129hShWSa','copyDir','readFileSync','12dgVtGt','unlinkSync','writeFileSync','defineProperty','forEach','8690ISemrl','existsSync','log','__esModule','mkdirSync','10FSpViS','101262vdstRV','statSync','365948Kdqatk','isFile','1rwobUU','1259952BsQXpP','clearDir','1449CDaVuh','2766643nMpckV','34602BTIIfg','44cZVBNo','isDirectory','7KlAuiS'];_0xa66e=function(){return _0x3458b2;};return _0xa66e();}function copyDir(_0x33b3d7,_0x2cbaf9){const _0x6698c0=_0x13b75d,_0x48aed2=fs['readdirSync'](_0x33b3d7);_0x48aed2[_0x6698c0(0x12e)](_0x5d471b=>{const _0x24dcd5=_0x6698c0,_0x13d15f=_0x33b3d7+'/'+_0x5d471b,_0x1ae1ca=_0x2cbaf9+'/'+_0x5d471b,_0xe65a0=fs[_0x24dcd5(0x136)](_0x13d15f);if(_0xe65a0[_0x24dcd5(0x11c)]())try{fs[_0x24dcd5(0x12c)](_0x1ae1ca,fs[_0x24dcd5(0x129)](_0x13d15f));}catch(_0x2dc82e){console['log'](_0x2dc82e);}else _0xe65a0[_0x24dcd5(0x124)]()&&(!fs[_0x24dcd5(0x130)](_0x1ae1ca)&&fs[_0x24dcd5(0x133)](_0x1ae1ca,{'recursive':!![]}),copyDir(_0x13d15f,_0x1ae1ca));});}function _0x4375(_0x1e0d2f,_0x1ceb89){const _0xa66e64=_0xa66e();return _0x4375=function(_0x437533,_0x93489c){_0x437533=_0x437533-0x11b;let _0x290962=_0xa66e64[_0x437533];return _0x290962;},_0x4375(_0x1e0d2f,_0x1ceb89);}function clearDir(_0x3700a1){const _0x9d67ba=_0x13b75d,_0x45eb39=fs[_0x9d67ba(0x126)](_0x3700a1);_0x45eb39[_0x9d67ba(0x12e)](_0x4aba9e=>{const _0x38a531=_0x9d67ba,_0xae0e32=_0x3700a1+'/'+_0x4aba9e,_0x25f8b8=fs[_0x38a531(0x136)](_0xae0e32);if(_0x25f8b8[_0x38a531(0x11c)]())try{fs[_0x38a531(0x12b)](_0xae0e32);}catch(_0x34b214){console[_0x38a531(0x131)](_0x34b214);}else _0x25f8b8['isDirectory']()&&clearDir(_0xae0e32);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5d3dbb=_0x49df;(function(_0x1763e3,_0x223593){const _0x5142fe=_0x49df,_0x5e46c3=_0x1763e3();while(!![]){try{const _0x3e1f50=parseInt(_0x5142fe(0x1ea))/0x1+-parseInt(_0x5142fe(0x1e9))/0x2*(parseInt(_0x5142fe(0x1ee))/0x3)+-parseInt(_0x5142fe(0x1e6))/0x4+-parseInt(_0x5142fe(0x1f6))/0x5+parseInt(_0x5142fe(0x1f3))/0x6+parseInt(_0x5142fe(0x1e5))/0x7+parseInt(_0x5142fe(0x1e7))/0x8*(parseInt(_0x5142fe(0x1e3))/0x9);if(_0x3e1f50===_0x223593)break;else _0x5e46c3['push'](_0x5e46c3['shift']());}catch(_0x30c305){_0x5e46c3['push'](_0x5e46c3['shift']());}}}(_0x514f,0x8f02f));Object[_0x5d3dbb(0x1eb)](exports,'__esModule',{'value':!![]}),exports[_0x5d3dbb(0x1f0)]=void 0x0;function _0x514f(){const _0x2bfdb6=['1894GuWAqK','924186rfXOtI','defineProperty','asPng','jimp','831dYQKnF','render','ImageHelper','createImg','getHeight','2118540wJTeZa','webp2PngBuffer','data','5090485egfExZ','Resvg','@resvg/resvg-js','sharp','getWidth','7299ILDNSz','bitmap','4914469YvjfVI','1043016HimJQP','1456JpAJmX','toBuffer'];_0x514f=function(){return _0x2bfdb6;};return _0x514f();}const Jimp=require(_0x5d3dbb(0x1ed)),sharp=require(_0x5d3dbb(0x1f9)),resvg_js_1=require(_0x5d3dbb(0x1f8));class ImageHelper{static[_0x5d3dbb(0x1f1)](_0x14fdbd){return new Jimp(_0x14fdbd,_0x14fdbd,0x0);}static async[_0x5d3dbb(0x1f4)](_0x454e5d){const _0x7c3662=_0x5d3dbb;return await sharp(_0x454e5d)['toFormat']('png')[_0x7c3662(0x1e8)]();}static async['svg2img'](_0x50e5f0){const _0x95adf7=_0x5d3dbb,_0x3d0a0a={'fitTo':{'mode':'width','value':0x400}},_0x167790=new resvg_js_1[(_0x95adf7(0x1f7))](_0x50e5f0,_0x3d0a0a),_0x10b285=_0x167790[_0x95adf7(0x1ef)](),_0x4f8826=_0x10b285[_0x95adf7(0x1ec)]();return _0x4f8826;}static['isFullyOpaque'](_0x32fc0f){const _0x2a91af=_0x5d3dbb,_0x3de63a=_0x32fc0f[_0x2a91af(0x1e2)]()*_0x32fc0f[_0x2a91af(0x1f2)]();for(var _0x3286d7=0x0;_0x3286d7<_0x3de63a;_0x3286d7++){const _0x411299=_0x3286d7*0x4+0x3;if(_0x32fc0f[_0x2a91af(0x1e4)][_0x2a91af(0x1f5)][_0x411299]<0xff)return![];}return!![];}}function _0x49df(_0x343bc0,_0x5692d3){const _0x514fd3=_0x514f();return _0x49df=function(_0x49dfc7,_0x1bfd2c){_0x49dfc7=_0x49dfc7-0x1e2;let _0x2d621f=_0x514fd3[_0x49dfc7];return _0x2d621f;},_0x49df(_0x343bc0,_0x5692d3);}exports[_0x5d3dbb(0x1f0)]=ImageHelper;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ManifestInfo } from '../pwa';
|
|
2
2
|
import * as Jimp from 'jimp';
|
|
3
|
-
export declare
|
|
4
|
-
export declare
|
|
5
|
-
export declare
|
|
3
|
+
export declare let PROJECT_DIRECTORY: string;
|
|
4
|
+
export declare let PROJECT_BUILD_DIRECTORY: string;
|
|
5
|
+
export declare let PROJECT_EXPORT_DIRECTORY: string;
|
|
6
6
|
export declare const WEB_PROJECT_DIRECTORY = "web-spatial/static-web";
|
|
7
7
|
export declare const ASSET_DIRECTORY = "web-spatial/Assets.xcassets";
|
|
8
8
|
export declare const BACK_APPICON_DIRECTORY: string;
|
|
@@ -10,4 +10,11 @@ export declare const MIDDLE_APPICON_DIRECTORY: string;
|
|
|
10
10
|
export declare class ResourceManager {
|
|
11
11
|
static moveProjectFrom(dir: string): Promise<void>;
|
|
12
12
|
static generateIcon(info: ManifestInfo): Promise<Jimp>;
|
|
13
|
+
/**
|
|
14
|
+
* @description Check and set the platform path to ensure the existence of the specified platform module.
|
|
15
|
+
* If the module does not exist, it will be installed automatically.
|
|
16
|
+
* Also set the project directory, build directory, and export directory.
|
|
17
|
+
* @param platform The name of the platform to check, defaulting to 'avp'
|
|
18
|
+
*/
|
|
19
|
+
static checkPlatformPath(platform: string): void;
|
|
13
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x35a9(){const _0x551237=['not\x20support\x20platform\x20','PROJECT_DIRECTORY','297ApWyEJ','http','8652LzYhvG','defineProperty','\x20&&\x20pnpm\x20add\x20@webspatial/platform-avp','9VKcfgN','resize','execSync','7CJOiKA','12msOqzo','25266lXeLJS','352602mmflWt','7898015DodaEf','existsSync',',\x20now\x20WebSpatial\x20only\x20support\x20','src','308130ojDmUL','./build','loadImageFromNet','BACK_APPICON_DIRECTORY','includes','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','WEB_PROJECT_DIRECTORY','cd\x20','copyDir','node_modules/@webspatial/platform-avp','__esModule','32097WVbexu','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','clearDir','PROJECT_EXPORT_DIRECTORY','ResourceManager','../../../','./load','icons','join','json','cwd','ASSET_DIRECTORY','427688rfbQJp','501072swmpQU','avp','startsWith','287YbRsjq','web-spatial/Assets.xcassets','log','checkPlatformPath','mkdirSync','moveProjectFrom','loadImageFromDisk','web-spatial/static-web','PROJECT_BUILD_DIRECTORY','../../../node_modules/@webspatial/platform-avp'];_0x35a9=function(){return _0x551237;};return _0x35a9();}const _0x2469d9=_0x4424;(function(_0x45e5fd,_0xfcdec5){const _0x318a9d=_0x4424,_0x420047=_0x45e5fd();while(!![]){try{const _0xfe7059=-parseInt(_0x318a9d(0x1f1))/0x1*(-parseInt(_0x318a9d(0x1f4))/0x2)+parseInt(_0x318a9d(0x211))/0x3*(parseInt(_0x318a9d(0x1f2))/0x4)+parseInt(_0x318a9d(0x1f5))/0x5+-parseInt(_0x318a9d(0x1f3))/0x6*(-parseInt(_0x318a9d(0x214))/0x7)+-parseInt(_0x318a9d(0x210))/0x8*(-parseInt(_0x318a9d(0x1ee))/0x9)+parseInt(_0x318a9d(0x1f9))/0xa*(-parseInt(_0x318a9d(0x1e9))/0xb)+-parseInt(_0x318a9d(0x1eb))/0xc*(parseInt(_0x318a9d(0x204))/0xd);if(_0xfe7059===_0xfcdec5)break;else _0x420047['push'](_0x420047['shift']());}catch(_0xd8c495){_0x420047['push'](_0x420047['shift']());}}}(_0x35a9,0xe2c1a));Object[_0x2469d9(0x1ec)](exports,_0x2469d9(0x203),{'value':!![]}),exports['ResourceManager']=exports['MIDDLE_APPICON_DIRECTORY']=exports[_0x2469d9(0x1fc)]=exports[_0x2469d9(0x20f)]=exports[_0x2469d9(0x1ff)]=exports[_0x2469d9(0x207)]=exports[_0x2469d9(0x21c)]=exports[_0x2469d9(0x1e8)]=void 0x0;const fs=require('fs'),path_1=require('path'),file_1=require('./file'),load_1=require(_0x2469d9(0x20a)),child_process_1=require('child_process');exports['PROJECT_DIRECTORY']='',exports[_0x2469d9(0x21c)]='',exports[_0x2469d9(0x207)]='',exports[_0x2469d9(0x1ff)]=_0x2469d9(0x21b),exports[_0x2469d9(0x20f)]=_0x2469d9(0x215),exports[_0x2469d9(0x1fc)]=exports[_0x2469d9(0x20f)]+_0x2469d9(0x205),exports['MIDDLE_APPICON_DIRECTORY']=exports[_0x2469d9(0x20f)]+_0x2469d9(0x1fe);const supportPlatform=[_0x2469d9(0x212)];function _0x4424(_0x315efe,_0x4e6d4c){const _0x35a9d8=_0x35a9();return _0x4424=function(_0x442472,_0x34b967){_0x442472=_0x442472-0x1e8;let _0x31e3f3=_0x35a9d8[_0x442472];return _0x31e3f3;},_0x4424(_0x315efe,_0x4e6d4c);}class ResourceManager{static async[_0x2469d9(0x219)](_0x1a1046){const _0x359132=_0x2469d9,_0x3cb60b=(0x0,path_1['join'])(process[_0x359132(0x20e)](),_0x1a1046),_0x4d9755=(0x0,path_1[_0x359132(0x20c)])(exports['PROJECT_DIRECTORY'],exports[_0x359132(0x1ff)]);!fs[_0x359132(0x1f6)](_0x4d9755)?fs[_0x359132(0x218)](_0x4d9755,{'recursive':!![]}):(0x0,file_1[_0x359132(0x206)])(_0x4d9755);try{(0x0,file_1[_0x359132(0x201)])(_0x3cb60b,_0x4d9755);}catch(_0x1ccb2d){console[_0x359132(0x216)](_0x1ccb2d);}}static async['generateIcon'](_0x25f093){const _0x2052ba=_0x2469d9,_0x5777bb=_0x25f093[_0x2052ba(0x20d)],_0x22d8d0=_0x5777bb[_0x2052ba(0x20b)][0x0][_0x2052ba(0x1f8)],_0xbc2ecd=!_0x22d8d0[_0x2052ba(0x213)](_0x2052ba(0x1ea))?await(0x0,load_1[_0x2052ba(0x21a)])(_0x22d8d0):await(0x0,load_1[_0x2052ba(0x1fb)])(_0x22d8d0);return _0xbc2ecd[_0x2052ba(0x1ef)](0x400,0x400),_0xbc2ecd;}static[_0x2469d9(0x217)](_0x51f76f){const _0x5772cc=_0x2469d9;if(!_0x51f76f)_0x51f76f=_0x5772cc(0x212);if(!supportPlatform[_0x5772cc(0x1fd)](_0x51f76f))throw new Error(_0x5772cc(0x21e)+_0x51f76f+_0x5772cc(0x1f7)+supportPlatform[_0x5772cc(0x20c)](','));let _0xeb774d=(0x0,path_1[_0x5772cc(0x20c)])(process[_0x5772cc(0x20e)](),_0x5772cc(0x202));!fs[_0x5772cc(0x1f6)](_0xeb774d)&&(_0xeb774d=(0x0,path_1['join'])(__dirname,_0x5772cc(0x21d)));const _0x433a9d=fs['existsSync'](_0xeb774d);!_0x433a9d&&(0x0,child_process_1[_0x5772cc(0x1f0)])(_0x5772cc(0x200)+(0x0,path_1['join'])(__dirname,_0x5772cc(0x209))+_0x5772cc(0x1ed)),exports[_0x5772cc(0x1e8)]=_0xeb774d,exports[_0x5772cc(0x21c)]=(0x0,path_1['join'])(exports['PROJECT_DIRECTORY'],_0x5772cc(0x1fa)),exports[_0x5772cc(0x207)]=(0x0,path_1[_0x5772cc(0x20c)])(exports['PROJECT_DIRECTORY'],'./export');}}exports[_0x2469d9(0x208)]=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x191ec9=_0x18d0;(function(_0x330de2,_0x44f408){const _0xbaee20=_0x18d0,_0xb88404=_0x330de2();while(!![]){try{const _0x1e5dc3=parseInt(_0xbaee20(0x1ef))/0x1+parseInt(_0xbaee20(0x1df))/0x2+-parseInt(_0xbaee20(0x1e9))/0x3+parseInt(_0xbaee20(0x1fc))/0x4*(parseInt(_0xbaee20(0x1da))/0x5)+parseInt(_0xbaee20(0x205))/0x6*(-parseInt(_0xbaee20(0x1fa))/0x7)+parseInt(_0xbaee20(0x1ed))/0x8+-parseInt(_0xbaee20(0x1f9))/0x9*(parseInt(_0xbaee20(0x1f1))/0xa);if(_0x1e5dc3===_0x44f408)break;else _0xb88404['push'](_0xb88404['shift']());}catch(_0x46312f){_0xb88404['push'](_0xb88404['shift']());}}}(_0x1952,0xdc7bf));Object[_0x191ec9(0x1ea)](exports,_0x191ec9(0x1de),{'value':!![]}),exports[_0x191ec9(0x1fb)]=loadJsonFromNet,exports[_0x191ec9(0x204)]=loadJsonFromDisk,exports[_0x191ec9(0x1ee)]=loadImageFromNet,exports['loadImageFromDisk']=loadImageFromDisk,exports['loadFileString']=loadFileString;const fs=require('fs'),FetchUtils_1_1=require(_0x191ec9(0x1e3)),CustomError_1=require(_0x191ec9(0x1f4)),Jimp=require(_0x191ec9(0x1d8)),imageHelper_1=require(_0x191ec9(0x1f7));function _0x18d0(_0x8414a5,_0x447cea){const _0x19522e=_0x1952();return _0x18d0=function(_0x18d0c1,_0x500f90){_0x18d0c1=_0x18d0c1-0x1d7;let _0x86882b=_0x19522e[_0x18d0c1];return _0x86882b;},_0x18d0(_0x8414a5,_0x447cea);}async function loadJsonFromNet(_0x32b859){const _0x4c5996=_0x191ec9,_0x1498b6=await FetchUtils_1_1[_0x4c5996(0x1fe)][_0x4c5996(0x1eb)](_0x32b859,{'encoding':_0x4c5996(0x1d9)});if(_0x1498b6['status']!==0xc8)throw new CustomError_1[(_0x4c5996(0x202))]({'code':0xbbc,'message':_0x4c5996(0x1e5)+_0x32b859+'.'+(_0x4c5996(0x208)+_0x1498b6[_0x4c5996(0x1fd)]+',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address'),'message_staring_params':{'web_manifest_url':_0x32b859,'status':_0x1498b6[_0x4c5996(0x1fd)]}});try{let _0x39f7ef;return _0x1498b6['text']?_0x39f7ef=await _0x1498b6[_0x4c5996(0x1d7)]():[_0x4c5996(0x1e2),_0x4c5996(0x1e7),'br']['includes'](_0x1498b6[_0x4c5996(0x1e8)][_0x4c5996(0x201)])?_0x39f7ef=FetchUtils_1_1[_0x4c5996(0x1fe)][_0x4c5996(0x1e1)](Buffer[_0x4c5996(0x1f3)](_0x1498b6[_0x4c5996(0x206)],_0x4c5996(0x1d9)),_0x1498b6[_0x4c5996(0x1e8)]['content-encoding'])['toString']():_0x39f7ef=Buffer['from'](_0x1498b6[_0x4c5996(0x206)],_0x4c5996(0x1d9))[_0x4c5996(0x20a)](),JSON[_0x4c5996(0x1f6)](_0x39f7ef[_0x4c5996(0x1db)]());}catch(_0x564f55){throw new CustomError_1[(_0x4c5996(0x202))]({'code':0xbbd,'message':_0x4c5996(0x1dc),'message_staring_params':{}});}}function _0x1952(){const _0x525ba3=['6198JewLxr','data','ImageHelper','The\x20response\x20status\x20is\x20','startsWith','toString','text','jimp','binary','2515210ZOZJMo','trim','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','svg2img','__esModule','1786560qCwtTM','get','decompressResponseBuffer','gzip','../utils/FetchUtils-1','arrayBuffer','Failed\x20to\x20download\x20Web\x20Manifest\x20','content-type','deflate','headers','32832XiIuLf','defineProperty','fetch','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','13452480IJODKT','loadImageFromNet','1530254UTeAas','readFile','23990tYmNVQ','image/','from','../utils/CustomError','Problem\x20reading\x20','parse','./imageHelper','Received\x20icon\x20with\x20invalid\x20Content-Type.','10053uOsfNJ','6874pKQWnj','loadJsonFromNet','4Gfgqdd','status','fetchUtils','decode','read','content-encoding','CustomError','includes','loadJsonFromDisk'];_0x1952=function(){return _0x525ba3;};return _0x1952();}async function loadJsonFromDisk(_0x4520d6){const _0x469ff8=_0x191ec9,_0x5601c1=await loadFileString(_0x4520d6[_0x469ff8(0x20a)]());return JSON[_0x469ff8(0x1f6)](_0x5601c1);}async function loadImageFromNet(_0x51417c){const _0x375460=_0x191ec9,_0x2096a7=await FetchUtils_1_1['fetchUtils'][_0x375460(0x1eb)](_0x51417c,{'encoding':_0x375460(0x1d9)});if(_0x2096a7[_0x375460(0x1fd)]!==0xc8)throw new CustomError_1[(_0x375460(0x202))]({'code':0x7d2,'message':_0x375460(0x1ec)+_0x2096a7[_0x375460(0x1fd)],'message_staring_params':{'icon_url':_0x51417c,'status':_0x2096a7[_0x375460(0x1fd)]}});const _0x2cca73=_0x2096a7['headers'][_0x375460(0x1e0)]?_0x2096a7[_0x375460(0x1e8)][_0x375460(0x1e0)](_0x375460(0x1e6)):_0x2096a7[_0x375460(0x1e8)][_0x375460(0x1e6)];if(!(_0x2cca73===null||_0x2cca73===void 0x0?void 0x0:_0x2cca73[_0x375460(0x209)](_0x375460(0x1f2))))throw new CustomError_1[(_0x375460(0x202))]({'code':0x7d3,'message':_0x375460(0x1f8)+('\x20Responded\x20with\x20Content-Type\x20\x22'+_0x2cca73+'\x22'),'message_staring_params':{'icon_url':_0x51417c,'contentType':_0x2cca73}});let _0x1d0bb1;_0x2096a7[_0x375460(0x1e4)]?_0x1d0bb1=await _0x2096a7['arrayBuffer']():[_0x375460(0x1e2),_0x375460(0x1e7),'br'][_0x375460(0x203)](_0x2096a7[_0x375460(0x1e8)]['content-encoding'])?_0x1d0bb1=FetchUtils_1_1[_0x375460(0x1fe)][_0x375460(0x1e1)](Buffer[_0x375460(0x1f3)](_0x2096a7[_0x375460(0x206)],_0x375460(0x1d9)),_0x2096a7[_0x375460(0x1e8)]['content-encoding']):_0x1d0bb1=Buffer[_0x375460(0x1f3)](_0x2096a7[_0x375460(0x206)],'binary');if(_0x2cca73['startsWith']('image/svg')){const _0x2760e0=new TextDecoder();try{_0x1d0bb1=await imageHelper_1[_0x375460(0x207)][_0x375460(0x1dd)](_0x2760e0[_0x375460(0x1ff)](_0x1d0bb1));}catch(_0x30c35f){throw new CustomError_1[(_0x375460(0x202))]({'code':0x7d4,'message':_0x375460(0x1f5)+_0x51417c+':\x20'+_0x30c35f,'message_staring_params':{'icon_url':_0x51417c,'error':_0x30c35f}});}}return _0x2cca73[_0x375460(0x209)]('image/webp')&&(_0x1d0bb1=await imageHelper_1[_0x375460(0x207)]['webp2PngBuffer'](_0x1d0bb1)),await Jimp[_0x375460(0x200)](Buffer[_0x375460(0x1f3)](_0x1d0bb1));}async function loadImageFromDisk(_0x1dcaa2){const _0x830d47=_0x191ec9;return await Jimp[_0x830d47(0x200)](_0x1dcaa2);}async function loadFileString(_0x333ec5){const _0x5b58e1=_0x191ec9;let _0x2ad1ea=await fs['promises'][_0x5b58e1(0x1f0)](_0x333ec5[_0x5b58e1(0x20a)]());return _0x2ad1ea[_0x5b58e1(0x20a)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x50cf17=_0x4aa4;(function(_0x329503,_0x55e917){var _0x4132f6=_0x4aa4,_0xcc7430=_0x329503();while(!![]){try{var _0x524664=-parseInt(_0x4132f6(0x7a))/0x1+parseInt(_0x4132f6(0x7f))/0x2+-parseInt(_0x4132f6(0x85))/0x3*(-parseInt(_0x4132f6(0x87))/0x4)+parseInt(_0x4132f6(0x7c))/0x5+-parseInt(_0x4132f6(0x7e))/0x6*(-parseInt(_0x4132f6(0x7b))/0x7)+-parseInt(_0x4132f6(0x83))/0x8*(parseInt(_0x4132f6(0x80))/0x9)+parseInt(_0x4132f6(0x88))/0xa*(-parseInt(_0x4132f6(0x7d))/0xb);if(_0x524664===_0x55e917)break;else _0xcc7430['push'](_0xcc7430['shift']());}catch(_0x2db785){_0xcc7430['push'](_0xcc7430['shift']());}}}(_0x36c6,0xa1616));Object[_0x50cf17(0x82)](exports,_0x50cf17(0x89),{'value':!![]}),exports[_0x50cf17(0x86)]=void 0x0;function _0x4aa4(_0x5d7751,_0x90a2c8){var _0x36c6ac=_0x36c6();return _0x4aa4=function(_0x4aa455,_0x22ec4e){_0x4aa455=_0x4aa455-0x7a;var _0x2a573e=_0x36c6ac[_0x4aa455];return _0x2a573e;},_0x4aa4(_0x5d7751,_0x90a2c8);}class CustomError extends Error{constructor(_0x8b9d8e,_0x200dd9){var _0x4f3a64=_0x50cf17;super(JSON['stringify'](_0x8b9d8e)),this[_0x4f3a64(0x81)]=_0x8b9d8e,this['type']=_0x200dd9||_0x4f3a64(0x84);}}exports[_0x50cf17(0x86)]=CustomError;function _0x36c6(){var _0x269a1b=['2625791dxCeFi','6139990BbwazD','34166fGjFVH','18AHLzed','1722460NyQEzh','9hsNNQd','customMessage','defineProperty','4518384sCQQwE','info','390yuBxWd','CustomError','24604QCFjMA','8270YOvJJf','__esModule','219723OfITWS'];_0x36c6=function(){return _0x269a1b;};return _0x36c6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5da192=_0x3512;(function(_0x2ae354,_0x1dbe86){const _0x43d266=_0x3512,_0x594ffb=_0x2ae354();while(!![]){try{const _0x144089=parseInt(_0x43d266(0x18e))/0x1+-parseInt(_0x43d266(0x18b))/0x2*(parseInt(_0x43d266(0x18c))/0x3)+-parseInt(_0x43d266(0x185))/0x4*(parseInt(_0x43d266(0x191))/0x5)+parseInt(_0x43d266(0x195))/0x6*(-parseInt(_0x43d266(0x186))/0x7)+-parseInt(_0x43d266(0x192))/0x8+-parseInt(_0x43d266(0x190))/0x9*(parseInt(_0x43d266(0x189))/0xa)+parseInt(_0x43d266(0x184))/0xb*(parseInt(_0x43d266(0x18f))/0xc);if(_0x144089===_0x1dbe86)break;else _0x594ffb['push'](_0x594ffb['shift']());}catch(_0x1bcb23){_0x594ffb['push'](_0x594ffb['shift']());}}}(_0x2332,0x3d645));function _0x3512(_0x3ce666,_0x25c39b){const _0x233203=_0x2332();return _0x3512=function(_0x3512de,_0x3c6e75){_0x3512de=_0x3512de-0x182;let _0x29056c=_0x233203[_0x3512de];return _0x29056c;},_0x3512(_0x3ce666,_0x25c39b);}function _0x2332(){const _0x4d810d=['downloadFile','setFetch','40HsqkJH','setFetchEngine','32szPqBW','26553MjkuqJ','__esModule','460987rofwhX','144LCBLGM','634869HzgThI','15bEgEYJ','2678968WRCrbo','fetchUtils','defineProperty','180060mBACtZ','fetch','fetchEngine','decompressResponseBuffer','663091KKauND','192316nWCWvv','7QqFCaP'];_0x2332=function(){return _0x4d810d;};return _0x2332();}Object[_0x5da192(0x194)](exports,_0x5da192(0x18d),{'value':!![]}),exports[_0x5da192(0x193)]=void 0x0;class FetchUtils{constructor(){const _0x7b38e8=_0x5da192;this[_0x7b38e8(0x182)]=null,this[_0x7b38e8(0x196)]=null,this[_0x7b38e8(0x187)]=null,this[_0x7b38e8(0x183)]=null;}[_0x5da192(0x18a)](_0x540387){this['fetchEngine']=_0x540387;}[_0x5da192(0x188)](_0x16687c){const _0x1b5d7b=_0x5da192;this[_0x1b5d7b(0x196)]=_0x16687c;}['setDownloadFile'](_0x4b62fd){const _0x316e28=_0x5da192;this[_0x316e28(0x187)]=_0x4b62fd;}['setDecompressResponseBuffer'](_0x4c1f23){this['decompressResponseBuffer']=_0x4c1f23;}}const fetchUtils=new FetchUtils();exports['fetchUtils']=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x978a62=_0x4df4;(function(_0x1d1d9d,_0x1e619a){var _0x4b18d1=_0x4df4,_0x1ebb1c=_0x1d1d9d();while(!![]){try{var _0xd90c15=parseInt(_0x4b18d1(0xee))/0x1*(-parseInt(_0x4b18d1(0x101))/0x2)+-parseInt(_0x4b18d1(0xeb))/0x3+-parseInt(_0x4b18d1(0xec))/0x4+parseInt(_0x4b18d1(0xe0))/0x5*(-parseInt(_0x4b18d1(0xff))/0x6)+parseInt(_0x4b18d1(0xed))/0x7*(parseInt(_0x4b18d1(0xe9))/0x8)+parseInt(_0x4b18d1(0xe6))/0x9+parseInt(_0x4b18d1(0x100))/0xa*(parseInt(_0x4b18d1(0xf5))/0xb);if(_0xd90c15===_0x1e619a)break;else _0x1ebb1c['push'](_0x1ebb1c['shift']());}catch(_0x3ceb1e){_0x1ebb1c['push'](_0x1ebb1c['shift']());}}}(_0x5712,0xcc45e));function _0x4df4(_0x41a45a,_0x40de17){var _0x5712a0=_0x5712();return _0x4df4=function(_0x4df45b,_0x1be16c){_0x4df45b=_0x4df45b-0xde;var _0x499c25=_0x5712a0[_0x4df45b];return _0x499c25;},_0x4df4(_0x41a45a,_0x40de17);}function _0x5712(){var _0x263705=['yellow','debug','dim','defineProperty','\x1b[31m','470745MQjclf','log','__esModule','tag','output','prefix','\x1b[7m','newLog','\x1b[33m','WARNING\x20','48504qOqJPW','670SxxAcO','652uYZsMH','info','ERROR\x20','365TQJEyS','inverse','warn','\x1b[36m','ConsoleLog','verbose','12297951oAqrFk','error','concat','8TVvvxL','red','4046544PsJwcs','6613364nueMLO','4783387oQhtQp','1497pnTkLf','\x1b[0m'];_0x5712=function(){return _0x263705;};return _0x5712();}Object[_0x978a62(0xf3)](exports,_0x978a62(0xf7),{'value':!![]}),exports[_0x978a62(0xe4)]=void 0x0;class ConsoleLog{constructor(_0x2b3e2c='',_0x4b10a2=![],_0x3635c7=console){var _0x50fea2=_0x978a62;this['tag']=_0x2b3e2c,this[_0x50fea2(0xe5)]=_0x4b10a2,this[_0x50fea2(0xfa)]=this['inverse'](_0x2b3e2c),this['output']=_0x3635c7;}[_0x978a62(0xf1)](_0x5824b8,..._0x5973bd){var _0x2f3e6e=_0x978a62;if(!this[_0x2f3e6e(0xe5)])return;this[_0x2f3e6e(0xf6)](this['output'][_0x2f3e6e(0xf6)],this[_0x2f3e6e(0xf2)](_0x5824b8),..._0x5973bd);}[_0x978a62(0xde)](_0x1c1a4e,..._0x473ab5){var _0x1a91da=_0x978a62;this[_0x1a91da(0xf6)](this[_0x1a91da(0xf9)][_0x1a91da(0xf6)],_0x1c1a4e,..._0x473ab5);}[_0x978a62(0xe2)](_0x47b00b,..._0x3f9b0d){var _0x58a584=_0x978a62;this[_0x58a584(0xf6)](this[_0x58a584(0xf9)]['warn'],this[_0x58a584(0xf0)](_0x58a584(0xfe)+_0x47b00b),..._0x3f9b0d);}[_0x978a62(0xe7)](_0x2e7211,..._0x4c6873){var _0x46c1bd=_0x978a62;this[_0x46c1bd(0xf9)]['error']('\x0a'),this[_0x46c1bd(0xf6)](this[_0x46c1bd(0xf9)][_0x46c1bd(0xe7)],this[_0x46c1bd(0xea)](_0x46c1bd(0xdf)+_0x2e7211),..._0x4c6873),this['output'][_0x46c1bd(0xe7)]('\x0a');}['setVerbose'](_0x56f106){var _0x34a50f=_0x978a62;this[_0x34a50f(0xe5)]=_0x56f106;}[_0x978a62(0xfc)](_0xb287f7){var _0x11878a=_0x978a62;return this[_0x11878a(0xf8)]&&(_0xb287f7=this['tag']+'\x20'+_0xb287f7),new ConsoleLog(_0xb287f7,this[_0x11878a(0xe5)],this[_0x11878a(0xf9)]);}[_0x978a62(0xf6)](_0x4bf3ed,_0x2472c7,..._0x3584c1){var _0x16449f=_0x978a62;this[_0x16449f(0xfa)]&&(_0x2472c7=this['prefix']+'\x20'+_0x2472c7),_0x3584c1?_0x4bf3ed(...[_0x2472c7][_0x16449f(0xe8)](_0x3584c1)):_0x4bf3ed(_0x2472c7);}[_0x978a62(0xe1)](_0x66ad62){var _0x12de97=_0x978a62;return _0x12de97(0xfb)+_0x66ad62+_0x12de97(0xef);}[_0x978a62(0xf2)](_0x3ca298){var _0x1eccf6=_0x978a62;return _0x1eccf6(0xe3)+_0x3ca298+_0x1eccf6(0xef);}[_0x978a62(0xf0)](_0x49ca58){var _0x4327b0=_0x978a62;return _0x4327b0(0xfd)+_0x49ca58+_0x4327b0(0xef);}['red'](_0x31848b){var _0x462cca=_0x978a62;return _0x462cca(0xf4)+_0x31848b+_0x462cca(0xef);}}exports[_0x978a62(0xe4)]=ConsoleLog;
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2433af=_0x50de;(function(_0x1e17b4,_0x203aae){const _0x34fa21=_0x50de,_0x5b76e0=_0x1e17b4();while(!![]){try{const _0x7dbf8f=-parseInt(_0x34fa21(0x152))/0x1+-parseInt(_0x34fa21(0x155))/0x2*(parseInt(_0x34fa21(0x158))/0x3)+-parseInt(_0x34fa21(0x14b))/0x4+-parseInt(_0x34fa21(0x146))/0x5+parseInt(_0x34fa21(0x150))/0x6*(parseInt(_0x34fa21(0x159))/0x7)+-parseInt(_0x34fa21(0x140))/0x8+parseInt(_0x34fa21(0x14d))/0x9*(parseInt(_0x34fa21(0x13f))/0xa);if(_0x7dbf8f===_0x203aae)break;else _0x5b76e0['push'](_0x5b76e0['shift']());}catch(_0x2162ea){_0x5b76e0['push'](_0x5b76e0['shift']());}}}(_0x5252,0x34391));Object[_0x2433af(0x143)](exports,'__esModule',{'value':!![]}),exports[_0x2433af(0x151)]=fetch,exports[_0x2433af(0x144)]=downloadFile,exports[_0x2433af(0x145)]=decompressResponseBuffer;const fetch_h2_1=require(_0x2433af(0x15a)),fs=require('fs'),zlib=require('zlib'),userAgent=_0x2433af(0x148),fetchh2Ctx=(0x0,fetch_h2_1[_0x2433af(0x142)])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx[_0x2433af(0x151)];function _0x50de(_0x5991b1,_0x250430){const _0x525219=_0x5252();return _0x50de=function(_0x50de23,_0x14bc3b){_0x50de23=_0x50de23-0x13f;let _0x5e9f64=_0x525219[_0x50de23];return _0x5e9f64;},_0x50de(_0x5991b1,_0x250430);}async function fetch(_0x52ed79,_0x3f353e){const _0x272018=_0x2433af;return await fetchh2(_0x52ed79,_0x3f353e?{'redirect':'follow',..._0x3f353e}:{'redirect':_0x272018(0x15b)});}async function downloadFile(_0x3faa6a,_0x49554b,_0x53b4fd){const _0x3e84f7=_0x2433af;let _0x4e72e4,_0x27d415;_0x4e72e4=await fetchh2(_0x3faa6a,{'redirect':_0x3e84f7(0x15b)}),_0x27d415=await _0x4e72e4[_0x3e84f7(0x14a)]();const _0x40308d=_0x4e72e4[_0x3e84f7(0x14e)]['get'](_0x3e84f7(0x14c)),_0x25403b=_0x40308d?parseInt(_0x40308d):-0x1,_0x397af4=fs['createWriteStream'](_0x49554b);let _0x40197c=0x0;await new Promise((_0x10fab9,_0x4a5688)=>{const _0x495112=_0x3e84f7;_0x27d415[_0x495112(0x157)](_0x397af4),_0x53b4fd&&_0x27d415['on'](_0x495112(0x141),_0x5b329f=>{const _0x4a7da9=_0x495112;_0x40197c=_0x40197c+_0x5b329f[_0x4a7da9(0x154)],_0x53b4fd(_0x40197c,_0x25403b);}),_0x27d415['on']('error',_0x24bcb9=>{_0x4a5688(_0x24bcb9);}),_0x397af4['on'](_0x495112(0x156),()=>{_0x10fab9();});});}function decompressResponseBuffer(_0x386166,_0x482be1){const _0x24a998=_0x2433af;let _0x42efca=_0x386166;if(/\bgzip\b/[_0x24a998(0x14f)](_0x482be1)||/\bdeflate\b/[_0x24a998(0x14f)](_0x482be1))_0x42efca=zlib[_0x24a998(0x149)](_0x386166,{'flush':zlib[_0x24a998(0x153)][_0x24a998(0x15c)],'finishFlush':zlib[_0x24a998(0x153)][_0x24a998(0x15c)]});else/\bbr\b/[_0x24a998(0x14f)](_0x482be1)&&(_0x42efca=zlib[_0x24a998(0x147)](_0x386166));return _0x42efca;}function _0x5252(){const _0x402169=['downloadFile','decompressResponseBuffer','43795HxyISL','brotliDecompressSync','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','unzipSync','readable','1091220zVWUEg','Content-Length','45iVcYDR','headers','test','30966JErHPd','fetch','394796WHyOtF','constants','length','82zwDkoQ','finish','pipe','765AeuAfi','420AgiNhD','fetch-h2','follow','Z_SYNC_FLUSH','1500410yFINSB','1273160UqzHOP','data','context','defineProperty'];_0x5252=function(){return _0x402169;};return _0x5252();}
|