@sava-info-systems/api-maker-with-extensions 1.19.5 → 1.19.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/3081.dd32ee0f5db41577.js +1 -0
  2. package/dist/5249.73e35de880a7af92.js +1 -0
  3. package/dist/5765.2b385a8405d8e7b2.js +1 -0
  4. package/dist/913.e60cadd27b99097f.js +1 -0
  5. package/dist/assets/monaco-assets/grammars/javascript.tmLanguage.json +3574 -5913
  6. package/dist/assets/monaco-assets/grammars/magicpython.tmLanguage.json +3437 -4212
  7. package/dist/assets/monaco-assets/grammars/rust.tmLanguage.json +89 -72
  8. package/dist/assets/monaco-assets/grammars/typescript.tmLanguage.json +3302 -5664
  9. package/dist/assets/monaco-assets/grammars/xml.tmLanguage.json +1 -1
  10. package/dist/assets/monaco-assets/onig.wasm +0 -0
  11. package/dist/assets/primeng-theme/primeng-theme-overrides.scss +1 -1
  12. package/dist/assets/schema-types/types.ts +21 -2
  13. package/dist/assets/styles/out/styles.css +1 -1
  14. package/dist/assets/styles/styles.scss +2 -1
  15. package/dist/index.html +14 -6
  16. package/dist/main.45d0e6ca86c448ba.js +1 -0
  17. package/dist/runtime.662c613ba3c97743.js +1 -0
  18. package/dist/{styles.1764f1e35ed631e4.css → styles.242217e145c3f7ab.css} +1 -1
  19. package/main.js +1 -1
  20. package/package.json +4 -4
  21. package/sandbox/sandbox.js +1 -1
  22. package/src/assets/schema-types/types.ts +21 -2
  23. package/src/public/dist-db-masters/browser/index.html +1 -1
  24. package/src/public/dist-db-masters/browser/main-ANQDJFEO.js +139 -0
  25. package/src/tools/local-client.js +1 -1
  26. package/dist/3081.e470a8aeed4a7745.js +0 -1
  27. package/dist/5249.52aa732ef6a173c5.js +0 -1
  28. package/dist/5765.e70cd773673bfe27.js +0 -1
  29. package/dist/913.7d41933171ab9fbe.js +0 -1
  30. package/dist/assets/styles/out/bootstrap-overrides.css.map +0 -1
  31. package/dist/assets/styles/out/colors-dark.css.map +0 -1
  32. package/dist/assets/styles/out/colors-light.css.map +0 -1
  33. package/dist/assets/styles/out/monaco-editor-overrides.css.map +0 -1
  34. package/dist/assets/styles/out/styles.css.map +0 -1
  35. package/dist/assets/styles/out/variables.css.map +0 -1
  36. package/dist/main.9630ecd9c9613e82.js +0 -1
  37. package/dist/runtime.21919a870e05d69b.js +0 -1
@@ -1 +1 @@
1
- function a0_0x5d6f(_0x255b9a,_0x1d5411){const _0x21ff94=a0_0x21ff();return a0_0x5d6f=function(_0x5d6f9c,_0x2f2e44){_0x5d6f9c=_0x5d6f9c-0x177;let _0x470ee3=_0x21ff94[_0x5d6f9c];return _0x470ee3;},a0_0x5d6f(_0x255b9a,_0x1d5411);}function a0_0x21ff(){const _0x1e8317=['am_i18ns','UI\x20maker\x20styles','db-migrations','System\x20API\x20hooks','tsconfig.json','pre-hooks','SIGINT\x20received\x20—\x20shutting\x20down','.gitignore','base64','Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20','am_tp_api_settings','——————————————————————————————————————\x20Note\x20——————————————————————————————————————','cpSync','folderPath','onmessage','length','validOnEvents','chokidar@4.0.3','customApiName','\x1b[36m','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','Failed\x20to\x20start\x20the\x20npm\x20process:\x20','Test\x20cases','ThirdPartyApiWriteF','copyInstanceApiHooksToAnotherDir','onclose','sep','eventListeners','preHooks','⏳\x20node_modules\x20installation\x20process\x20started','connectToServerViaWS','listeners','am_custom_apis','addProcessHooks','LC_DATA_MODIFIED_IN_DATABASE','1763887IRKwjq','fsWriteFile','events','am_database_migrations','colorEnd','DB\x20masters','EventsReadF','apis','push','fsReadDir','instanceApiName','debounce','toString','--force','unlink','package.json','webSocketURL','CustomApiReadF','instances','startsWith','instance-hooks','projectDirectory','TestCasesWriteF',']\x20:\x20','\x1b[0m','DELETE','fsReadFile','collection-hooks','schemas','endsWith','entries','DB\x20master\x20utils','skipWatchInputs','54147120qTgAIU','\x20Please\x20provide\x20settings\x20in\x20:\x20','schedulers','copyDatabaseHooksToAnotherDir','am_tp_api_versions','createLCProjectDirectory','Database\x20hooks','SIGTERM','installRequiredPackages','1776140sbNGVu','error','message','readdir','getHours','amTypes','serializeFolderWithBinary','am_ui_maker_styles','start','third-party-apis','mkdir','Schemas','slice','Watcher\x20error:','data','9121707voXXTM','getChangedFolderForDeleted','am_database_hooks','spawn','printNotesToProvideLocalClient','DatabaseHooksWriteF','config','appRoot','LOCAL_CLIENT_SYNC_EVENTS','getChangedFolder','.css','DELETE_ALL','am_system_api_hooks','dbInterfacesFile','apiCategory','Schedulers','20ZDybDD','LC_DATA_REQ_RES','.js','copyCollectionHooksToAnotherDir','Instance\x20hooks','4239594yvhAoH','path','./src','AmTestCases','addDir','✳️\x20Open\x20folder\x20in\x20IDE\x20:\x20','WebSocket\x20events','paths','exports','isWSConnectedFirstTime','CustomApisWriteF','eventType','fsMkDirSync','am_ui_maker_utils','DBMasterUtilsReadF','Events','SYSTEM_API_HOOKS','INSTANCES','close','post-hooks','./local-client.config','copyDBMigrationsToAnotherDir','SCHEMAS','printNotes','⏳\x20Connecting\x20to\x20server...','relative','instanceName','THIRD_PARTY_API_SETTINGS','copyTestCasesToAnotherDir','THIRD_PARTY_APIS','SystemApiHooksWriteF','rmSync','✅\x20dependencies\x20installed','DBMastersReadF','custom-apis','system-apis','tpInstalledApiName','sendDeletedEventToServerInternal','cyanStart','content','executeNpmRun','skipFileWritingForLocal','ProcessInitializersWriteF','copyThirdPartyApisToAnotherDir','instance-api-hooks','✓\x20Receive\x20:\x20[','copyUtilityClassesToAnotherDir','copyWebSocketEventsToAnotherDir','am_utility_classes','change','242538fStNYi','web-socket-events','js-yaml','normalize','fsExistsSync','eventData','ProcessInitializersReadF','chokidar','copyInstanceHooksToAnotherDir','INSTANCE_HOOKS','SCHEDULERS','compilerOptions','copyCustomApisToAnotherDir','✅\x20node_modules\x20installed','.yaml','bind','statSync','adminUserPath','tpInstalledApiBundleName','SchedulersWriteF','UtilityClasses','sendDeletedEventToServerDebounce','DBMasterStylesReadF','fsLink','EventsWriteF','Collection\x20hooks','CustomApis','NOTIFICATION','apply','types','Instance\x20API\x20hooks','am_web_socket_events','link','filter','SIGTERM\x20received\x20—\x20shutting\x20down','copyDBMasterStylesToAnotherDir','SIGINT','collectionName','Third\x20party\x20APIs','Process\x20initializers','database-hooks','child_process','ui-maker-pages','⏳\x20dependencies\x20installation\x20process\x20started','14121064gEHdys','copyFilesToProjectDir','TestCasesReadF','copyDBMastersToAnotherDir','SchedulersReadF','InstanceApiHooksWriteF','package-lock.json','am_instance_hooks','InstanceHooksWriteF','promises','DBMasterUtilsWriteF','existsSync','dirname','errors','TEST_CASES','watcher','localClientPath','DBMasters','readFileSync','i18ns','?authTokenInfo=ws-local-client-sync&authorization=','nodeModulesCopied','WEB_SOCKET_EVENT','type','DBMastersWriteF','add','am_process_initializers','node_modules','Database\x20migrations','System\x20API\x20settings','utf8','getCategoryOfPath','copyDBMasterUtilsToAnotherDir','ProcessI18NReadF','CollectionHooksWriteF','join','npm','name','DatabasesMigrations','getCurrentTime','unlinkSync','am_system_api_settings','InstanceApiHooks','databaseName','connected','ProcessInitializers','parseYaml','Connection\x20closed.','syncToken','parse','isActive','am-types','response','log','copyI18NToAnotherDir','tests','SchemaWriteF','✓\x20Send\x20:\x20[','\x1b[38;2;255;165;0m','onopen','copySystemApiHooksToAnotherDir','SYSTEM_APIS','ProcessI18NWriteF','UNREGISTER','getMinutes','writeMemfsJsonToDisk','INSTANCE_API_HOOKS','startWatch','watch\x20handler\x20error','readdirSync','apiId','readDirCustom','sendToServer','syncAllDataWithServer','beforeExit','fsMkDir','onerror','unlinkDir','DBMasterStylesWriteF','exit','PUT_REPLACE','DBMigrationsReadF','shuttingDown','SystemApiHooks','uncaughtException','stringify','am_test_cases','UI_MAKER_STYLES','orangeStart','CONNECTED','7MMZXLN','SYSTEM_API_SETTINGS','padStart','UI_MAKER_UTILITY_CLASS','rmdirSync','copyProcessInitializersToAnotherDir','InstanceHooksReadF','AmEvents','then','split','CollectionHooks','src','replace','InstanceApiHooksReadF','removeEmptyDirsSync','UTILITY_CLASSES','unhandledRejection','processReceivedEvent','5LOrOcX','shutdownAndExit','Custom\x20APIs','getSeconds','CUSTOM_APIS','REGISTER','checkForNodeVersion','UIMakerStyles','copySchedulersToAnotherDir','db-interfaces.d.ts','copySchemasToAnotherDir','isDirectory','SchemaReadF','LC_SEND_ALL_DATA','——————————————————————————————————————————————————————————————————————————————————','EVENTS_WS','readFile','copyEventsToAnotherDir','am_schemas','posix','repo','PUT','js-yaml@4.1.0','versions','SystemApiSettings','am_events','.config.ts','postHooks','am_collection_hooks','UNKNOWN','DB_MIGRATIONS','toLowerCase','CollectionHooksReadF','COLLECTION_HOOKS','--no-save','TOKEN_VALIDATION','version','invalidOnEvents','InstanceApiSettings','.ts'];a0_0x21ff=function(){return _0x1e8317;};return a0_0x21ff();}(function(_0x13023e,_0x568a12){const _0x23b8e6=a0_0x5d6f,_0x136b12=_0x13023e();while(!![]){try{const _0x5195f9=-parseInt(_0x23b8e6(0x227))/0x1+-parseInt(_0x23b8e6(0x270))/0x2*(parseInt(_0x23b8e6(0x2a7))/0x3)+-parseInt(_0x23b8e6(0x251))/0x4*(parseInt(_0x23b8e6(0x1dc))/0x5)+-parseInt(_0x23b8e6(0x275))/0x6*(parseInt(_0x23b8e6(0x1ca))/0x7)+-parseInt(_0x23b8e6(0x2d3))/0x8+parseInt(_0x23b8e6(0x260))/0x9+parseInt(_0x23b8e6(0x248))/0xa;if(_0x5195f9===_0x568a12)break;else _0x136b12['push'](_0x136b12['shift']());}catch(_0x5e03c3){_0x136b12['push'](_0x136b12['shift']());}}}(a0_0x21ff,0xe5859),((()=>{'use strict';var _0x4afd5c={0x11f:(_0x173785,_0x48500d,_0x132f90)=>{const _0xa0c3f=a0_0x5d6f;_0x48500d['_6']=_0x48500d['EN']=_0x48500d['Yl']=_0x48500d['QX']=void 0x0;const _0x4de93c=_0x132f90(0x3a),_0x4accb1=_0x132f90(0x2a0),_0x38d9e1=_0x132f90(0x170);var _0x4e8d00,_0x287e75,_0x3a66f8,_0x9fe768,_0x26e721,_0x3d8d8e;new class{constructor(){const _0x388376=a0_0x5d6f;this['EL']=!0x1,this[_0x388376(0x267)]=_0x4accb1['resolve'](''),this[_0x388376(0x23c)]='',this['C']={'localClientPath':_0x388376(0x289),'src':_0x388376(0x1d5),'repo':_0x388376(0x1f0),'types':'types','amTypes':_0x388376(0x1a3),'versions':_0x388376(0x1f3),'apis':_0x388376(0x22e),'listeners':_0x388376(0x223),'postHooks':_0x388376(0x288),'preHooks':_0x388376(0x209),'dbInterfacesFile':_0x388376(0x1e5),'UtilityClassesReadF':'Utility\x20classes','CustomApiReadF':_0x388376(0x1de),'SchedulersReadF':'Schedulers','WebSocketEventsReadF':_0x388376(0x27b),'SchemaReadF':_0x388376(0x25c),'DBMigrationsReadF':'Database\x20migrations','ProcessInitializersReadF':_0x388376(0x2ce),'ProcessI18NReadF':'i18ns','DBMastersReadF':_0x388376(0x22c),'DBMasterStylesReadF':'UI\x20maker\x20styles','DBMasterUtilsReadF':_0x388376(0x246),'TestCasesReadF':_0x388376(0x21a),'ThirdPartyApiReadF':_0x388376(0x2cd),'EventsReadF':'Events','InstanceApiHooksReadF':_0x388376(0x2c5),'SystemApiHooksReadF':_0x388376(0x207),'CollectionHooksReadF':'Collection\x20hooks','DatabaseHooksReadF':_0x388376(0x24e),'InstanceHooksReadF':'Instance\x20hooks','CustomApisWriteF':_0x388376(0x297),'SchedulersWriteF':_0x388376(0x24a),'WebSocketEventsWriteF':_0x388376(0x2a8),'SchemaWriteF':_0x388376(0x243),'DBMigrationsWriteF':_0x388376(0x206),'ProcessInitializersWriteF':'process-initializers','ProcessI18NWriteF':_0x388376(0x183),'DBMastersWriteF':_0x388376(0x2d1),'DBMasterStylesWriteF':'ui-maker-styles','DBMasterUtilsWriteF':'ui-maker-utils','TestCasesWriteF':_0x388376(0x1a7),'ThirdPartyApiWriteF':_0x388376(0x25a),'EventsWriteF':_0x388376(0x229),'InstanceApiHooksWriteF':_0x388376(0x2a1),'SystemApiHooksWriteF':'system-api-hooks','CollectionHooksWriteF':_0x388376(0x242),'DatabaseHooksWriteF':_0x388376(0x2cf),'InstanceHooksWriteF':_0x388376(0x23b)},this[_0x388376(0x247)]=!0x1,this[_0x388376(0x29e)]={},this[_0x388376(0x185)]=!0x1,this['orangeStart']=_0x388376(0x1aa),this[_0x388376(0x29b)]=_0x388376(0x217),this[_0x388376(0x22b)]=_0x388376(0x23f),this[_0x388376(0x27e)]=!0x1,this[_0x388376(0x2bc)]=this['debounce'](this[_0x388376(0x29a)],0x1f4);}async['start'](){const _0x9afbe5=a0_0x5d6f;this[_0x9afbe5(0x225)](),this['checkForNodeVersion'](),this[_0x9afbe5(0x2ab)](this['C'][_0x9afbe5(0x180)]+_0x9afbe5(0x272))||(this[_0x9afbe5(0x264)](),this[_0x9afbe5(0x1dd)](0x1)['then']()),this[_0x9afbe5(0x266)]=require(this['C'][_0x9afbe5(0x180)])(),await this[_0x9afbe5(0x28c)](),this[_0x9afbe5(0x1d8)](_0x4accb1[_0x9afbe5(0x193)](this[_0x9afbe5(0x267)],this['C'][_0x9afbe5(0x1d5)])),await this[_0x9afbe5(0x24d)](),await this[_0x9afbe5(0x250)](),await this[_0x9afbe5(0x222)]();}[_0xa0c3f(0x1e2)](){const _0x58e1ae=_0xa0c3f,_0x2eae97=process['version'];parseInt(_0x2eae97[_0x58e1ae(0x1d3)]('.')[0x0]['replace']('v',''),0xa)<0x16&&(console[_0x58e1ae(0x252)](this[_0x58e1ae(0x1c8)]+_0x58e1ae(0x20d)+_0x2eae97+this[_0x58e1ae(0x22b)]),this[_0x58e1ae(0x1dd)](0x1)['then']());}async['printNotes'](){const _0x2400cb=_0xa0c3f;console[_0x2400cb(0x1a5)](this[_0x2400cb(0x1c8)]),console['log'](_0x2400cb(0x20f)),console['log']('\x20Local\x20client\x20will\x20pull\x20your\x20server\x20changes\x20to\x20local\x20&\x20perform\x20sync\x20between\x20them.'),console[_0x2400cb(0x1a5)]('\x20Current\x20Dir\x20:\x20'+this[_0x2400cb(0x267)]),console['log'](_0x2400cb(0x1ea)),console[_0x2400cb(0x1a5)](this[_0x2400cb(0x22b)]),console[_0x2400cb(0x1a5)]('');}[_0xa0c3f(0x264)](){const _0x568d9d=_0xa0c3f;console['log'](_0x568d9d(0x1aa)),console[_0x568d9d(0x1a5)](_0x568d9d(0x249)+this['C'][_0x568d9d(0x180)]+_0x568d9d(0x272)),console['log']('\x1b[0m'),console['log']('');}async[_0xa0c3f(0x24d)](){const _0x19bb94=_0xa0c3f,_0x3efbc7=_0x4accb1['basename'](this[_0x19bb94(0x267)]),_0x860d56=_0x4accb1['join'](this[_0x19bb94(0x267)],'..',_0x3efbc7+'-lc');this[_0x19bb94(0x23c)]=_0x860d56,_0x4de93c[_0x19bb94(0x294)](_0x860d56,{'recursive':!0x0,'force':!0x0}),await this[_0x19bb94(0x1bb)](_0x860d56,{'recursive':!0x0});}async[_0xa0c3f(0x2d4)](_0x2a19f9){const _0x5b4a2e=_0xa0c3f;await this['createLCProjectDirectory'](),this['fsMkDirSync'](_0x4accb1['join'](this[_0x5b4a2e(0x23c)],this['C'][_0x5b4a2e(0x1d5)]),{'recursive':!0x0}),_0x4de93c[_0x5b4a2e(0x210)](_0x4accb1[_0x5b4a2e(0x193)](this[_0x5b4a2e(0x267)],_0x5b4a2e(0x236)),_0x4accb1[_0x5b4a2e(0x193)](this[_0x5b4a2e(0x23c)],'package.json')),_0x4de93c[_0x5b4a2e(0x210)](_0x4accb1[_0x5b4a2e(0x193)](this['appRoot'],_0x5b4a2e(0x20b)),_0x4accb1['join'](this[_0x5b4a2e(0x23c)],_0x5b4a2e(0x20b)));const _0x2549bb=_0x4accb1[_0x5b4a2e(0x193)](this[_0x5b4a2e(0x267)],_0x5b4a2e(0x208)),_0x853aa8=JSON['parse'](await this[_0x5b4a2e(0x241)](_0x2549bb,{'encoding':_0x5b4a2e(0x18e)}));_0x853aa8[_0x5b4a2e(0x2b2)]['baseUrl']=_0x5b4a2e(0x277),_0x853aa8['compilerOptions'][_0x5b4a2e(0x27c)]['*'][_0x5b4a2e(0x22f)]('*'),await this[_0x5b4a2e(0x228)](_0x4accb1[_0x5b4a2e(0x193)](this[_0x5b4a2e(0x23c)],_0x5b4a2e(0x208)),JSON[_0x5b4a2e(0x1c5)](_0x853aa8,null,0x4),{'encoding':_0x5b4a2e(0x18e)}),await _0x4de93c['promises']['cp'](_0x4accb1['join'](this['appRoot'],this['C'][_0x5b4a2e(0x256)]),_0x4accb1['join'](this[_0x5b4a2e(0x23c)],this['C']['src'],this['C'][_0x5b4a2e(0x256)]),{'recursive':!0x0}),await _0x4de93c[_0x5b4a2e(0x179)]['cp'](_0x4accb1[_0x5b4a2e(0x193)](this['appRoot'],this['C'][_0x5b4a2e(0x1d5)],this['config'][_0x5b4a2e(0x2b8)],this['C'][_0x5b4a2e(0x2c4)],this['C'][_0x5b4a2e(0x26d)]),_0x4accb1[_0x5b4a2e(0x193)](this[_0x5b4a2e(0x23c)],this['C'][_0x5b4a2e(0x1d5)],this['C'][_0x5b4a2e(0x256)],this['C'][_0x5b4a2e(0x26d)]),{'recursive':!0x0}),await this[_0x5b4a2e(0x2a3)](),await this['copyCustomApisToAnotherDir'](),await this[_0x5b4a2e(0x1e4)](),await this[_0x5b4a2e(0x1e6)](),await this[_0x5b4a2e(0x28a)](),await this[_0x5b4a2e(0x1cf)](),await this[_0x5b4a2e(0x1a6)](),await this['copyTestCasesToAnotherDir'](),await this[_0x5b4a2e(0x2a0)](),await this[_0x5b4a2e(0x1ed)](),await this[_0x5b4a2e(0x21c)](),await this[_0x5b4a2e(0x1ac)](),await this[_0x5b4a2e(0x2a4)](),await this[_0x5b4a2e(0x273)](),await this['copyDatabaseHooksToAnotherDir'](),await this[_0x5b4a2e(0x2af)](),await this[_0x5b4a2e(0x2d6)](),await this[_0x5b4a2e(0x2ca)](),await this[_0x5b4a2e(0x190)](),_0x2a19f9&&(console['log'](_0x5b4a2e(0x221)),await this[_0x5b4a2e(0x29d)](_0x5b4a2e(0x194),['install',_0x5b4a2e(0x234)]),console[_0x5b4a2e(0x1a5)](_0x5b4a2e(0x2b4)));try{_0x4de93c['symlinkSync'](_0x4accb1['join'](this[_0x5b4a2e(0x267)],_0x5b4a2e(0x18b)),_0x4accb1['join'](this[_0x5b4a2e(0x23c)],_0x5b4a2e(0x18b)),'dir');}catch(_0x1a98ed){console['log']('Please\x20run\x20using\x20administrator\x20privileges.'),console[_0x5b4a2e(0x1a5)](_0x1a98ed),await this[_0x5b4a2e(0x1dd)](0x1);}}async[_0xa0c3f(0x250)](){const _0x2c5113=_0xa0c3f;console['log'](_0x2c5113(0x2d2));try{_0x4de93c[_0x2c5113(0x198)](_0x4accb1['join'](this[_0x2c5113(0x267)],_0x2c5113(0x2d9)));}catch(_0x2c85f0){}await this[_0x2c5113(0x29d)](_0x2c5113(0x194),['install',_0x2c5113(0x1fe),_0x2c5113(0x215),_0x2c5113(0x1f2)]),console['log'](_0x2c5113(0x295));}async[_0xa0c3f(0x2a3)](){const _0xcbdab0=_0xa0c3f,_0x339248=this['C']['UtilityClassesReadF'],_0x2e1524=_0x4accb1['join'](this[_0xcbdab0(0x267)],this['C']['src'],this[_0xcbdab0(0x266)][_0xcbdab0(0x2b8)],_0x339248),_0x1a572b=await this['readDirCustom'](_0x2e1524,null);for(const _0x28c038 of _0x1a572b){const _0xff549c=_0x4accb1[_0xcbdab0(0x193)](_0x2e1524,_0x28c038,_0x28c038+_0xcbdab0(0x2b5));if(!this[_0xcbdab0(0x2ab)](_0xff549c))continue;const _0x1529b3=await this[_0xcbdab0(0x241)](_0xff549c,{'encoding':_0xcbdab0(0x18e)}),_0x266062=await this[_0xcbdab0(0x19e)](_0x1529b3);for(const _0x177f26 of _0x266062[_0xcbdab0(0x1f3)]||[])if(!0x0===_0x177f26[_0xcbdab0(0x1a2)]){const _0x311f4c=_0x4accb1[_0xcbdab0(0x193)](_0x2e1524,_0x28c038,this['C'][_0xcbdab0(0x1f3)],_0x177f26['version'],_0x177f26[_0xcbdab0(0x195)]+'.ts'),_0x4e8d51=_0x4accb1['join'](this[_0xcbdab0(0x23c)],this['C'][_0xcbdab0(0x1d5)],_0x266062[_0xcbdab0(0x211)],_0x266062['name']+'.ts');await this[_0xcbdab0(0x1bb)](_0x4accb1['dirname'](_0x4e8d51),{'recursive':!0x0}),await this[_0xcbdab0(0x2be)](_0x311f4c,_0x4e8d51);}}}async[_0xa0c3f(0x2b3)](){const _0x35b6cc=_0xa0c3f,_0x4dde22=this['C'][_0x35b6cc(0x238)],_0x51e2cd=this['C'][_0x35b6cc(0x27f)],_0x8d463d=_0x4accb1[_0x35b6cc(0x193)](this[_0x35b6cc(0x267)],this['C'][_0x35b6cc(0x1d5)],this['config']['adminUserPath'],_0x4dde22),_0x5609f6=await this[_0x35b6cc(0x1b7)](_0x8d463d,null);for(const _0x28c6f4 of _0x5609f6){const _0x3de18f=_0x4accb1[_0x35b6cc(0x193)](_0x8d463d,_0x28c6f4,_0x28c6f4+_0x35b6cc(0x2b5));if(!this['fsExistsSync'](_0x3de18f))continue;const _0x4007e0=await this[_0x35b6cc(0x241)](_0x3de18f,{'encoding':_0x35b6cc(0x18e)}),_0x2e7b10=await this[_0x35b6cc(0x19e)](_0x4007e0);for(const _0x2e4dfa of _0x2e7b10[_0x35b6cc(0x1f3)]||[])if(!0x0===_0x2e4dfa[_0x35b6cc(0x1a2)]){const _0x1114db=_0x4accb1['join'](_0x8d463d,_0x28c6f4,this['C']['versions'],_0x2e4dfa[_0x35b6cc(0x200)]),_0x2d5b8e=_0x4accb1[_0x35b6cc(0x193)](_0x1114db,_0x2e4dfa[_0x35b6cc(0x195)]+_0x35b6cc(0x203)),_0x1bc219=_0x4accb1[_0x35b6cc(0x193)](this[_0x35b6cc(0x23c)],this['C'][_0x35b6cc(0x1d5)],_0x51e2cd,_0x2e7b10[_0x35b6cc(0x276)],_0x2e7b10[_0x35b6cc(0x195)]+_0x35b6cc(0x203));await this['fsMkDir'](_0x4accb1[_0x35b6cc(0x17c)](_0x1bc219),{'recursive':!0x0}),await this[_0x35b6cc(0x2be)](_0x2d5b8e,_0x1bc219);const _0x573b9a=_0x4accb1[_0x35b6cc(0x193)](_0x8d463d,_0x28c6f4,_0x28c6f4+_0x35b6cc(0x1f6)),_0x5812d6=_0x4accb1[_0x35b6cc(0x193)](this[_0x35b6cc(0x23c)],this['C'][_0x35b6cc(0x1d5)],_0x51e2cd,_0x2e7b10['path'],_0x2e7b10['name']+_0x35b6cc(0x1f6));await this['fsLink'](_0x573b9a,_0x5812d6);for(const _0x4c7a46 of _0x2e4dfa[_0x35b6cc(0x220)]){const _0x311eb3=_0x4accb1['join'](_0x1114db,this['C'][_0x35b6cc(0x220)],_0x4c7a46['name']+_0x35b6cc(0x203)),_0xf6d5bc=_0x4accb1[_0x35b6cc(0x193)](this['projectDirectory'],this['C']['src'],_0x51e2cd,_0x2e7b10[_0x35b6cc(0x276)],this['C']['preHooks'],_0x4c7a46['name']+_0x35b6cc(0x203));await this[_0x35b6cc(0x1bb)](_0x4accb1['dirname'](_0xf6d5bc),{'recursive':!0x0}),await this[_0x35b6cc(0x2be)](_0x311eb3,_0xf6d5bc);}for(const _0x1c3b1c of _0x2e4dfa['postHooks']){const _0x32e345=_0x4accb1[_0x35b6cc(0x193)](_0x1114db,this['C'][_0x35b6cc(0x1f7)],_0x1c3b1c[_0x35b6cc(0x195)]+_0x35b6cc(0x203)),_0x38436a=_0x4accb1[_0x35b6cc(0x193)](this['projectDirectory'],this['C'][_0x35b6cc(0x1d5)],_0x51e2cd,_0x2e7b10['path'],this['C'][_0x35b6cc(0x1f7)],_0x1c3b1c[_0x35b6cc(0x195)]+'.ts');await this[_0x35b6cc(0x1bb)](_0x4accb1[_0x35b6cc(0x17c)](_0x38436a),{'recursive':!0x0}),await this[_0x35b6cc(0x2be)](_0x32e345,_0x38436a);}}}}async[_0xa0c3f(0x1e4)](){const _0x3271a2=_0xa0c3f,_0x2f11eb=this['C'][_0x3271a2(0x2d7)],_0x3b045e=this['C'][_0x3271a2(0x2ba)],_0x12d203=_0x4accb1[_0x3271a2(0x193)](this[_0x3271a2(0x267)],this['C'][_0x3271a2(0x1d5)],this['config']['adminUserPath'],_0x2f11eb),_0x5344fd=await this[_0x3271a2(0x1b7)](_0x12d203,null);for(const _0x1c0a70 of _0x5344fd){const _0x7db6b4=_0x4accb1[_0x3271a2(0x193)](_0x12d203,_0x1c0a70,_0x1c0a70+'.yaml');if(!this['fsExistsSync'](_0x7db6b4))continue;const _0x2ec73d=await this[_0x3271a2(0x241)](_0x7db6b4,{'encoding':'utf8'}),_0x23d025=await this[_0x3271a2(0x19e)](_0x2ec73d);for(const _0x3ee987 of _0x23d025[_0x3271a2(0x1f3)]||[])if(!0x0===_0x3ee987['isActive']){const _0x4d5ddd=_0x4accb1[_0x3271a2(0x193)](_0x12d203,_0x1c0a70,this['C'][_0x3271a2(0x1f3)],_0x3ee987[_0x3271a2(0x200)],_0x3ee987['name']+_0x3271a2(0x203)),_0x44efc9=_0x4accb1[_0x3271a2(0x193)](this[_0x3271a2(0x23c)],this['C'][_0x3271a2(0x1d5)],_0x3b045e,_0x23d025[_0x3271a2(0x195)]+_0x3271a2(0x203));await this[_0x3271a2(0x1bb)](_0x4accb1[_0x3271a2(0x17c)](_0x44efc9),{'recursive':!0x0}),await this[_0x3271a2(0x2be)](_0x4d5ddd,_0x44efc9);}}}async[_0xa0c3f(0x1e6)](){const _0x481b79=_0xa0c3f,_0x1ca903=this['C'][_0x481b79(0x1e8)],_0x2fecb7=this['C'][_0x481b79(0x1a8)],_0x5337f5=_0x4accb1['join'](this[_0x481b79(0x267)],this['C'][_0x481b79(0x1d5)],this['config'][_0x481b79(0x2b8)],_0x1ca903),_0x500391=await this[_0x481b79(0x1b7)](_0x5337f5,null);for(const _0x28596a of _0x500391){const _0x5acf6f=_0x4accb1[_0x481b79(0x193)](_0x5337f5,_0x28596a,_0x28596a+'.yaml');if(!this[_0x481b79(0x2ab)](_0x5acf6f))continue;const _0x112f5d=await this[_0x481b79(0x241)](_0x5acf6f,{'encoding':_0x481b79(0x18e)}),_0x2402c9=await this[_0x481b79(0x19e)](_0x112f5d),_0x3b127f=_0x4accb1[_0x481b79(0x193)](this[_0x481b79(0x23c)],this['C']['src'],_0x2fecb7,_0x2402c9[_0x481b79(0x28f)],_0x2402c9[_0x481b79(0x19b)]);await this[_0x481b79(0x1bb)](_0x3b127f,{'recursive':!0x0});const _0x48463f=_0x4accb1[_0x481b79(0x193)](_0x5337f5,_0x28596a,_0x2402c9['collectionName']+'.config.ts'),_0x1e4c97=_0x4accb1[_0x481b79(0x193)](_0x3b127f,_0x2402c9[_0x481b79(0x2cc)]+_0x481b79(0x1f6));await this['fsLink'](_0x48463f,_0x1e4c97);}}async[_0xa0c3f(0x28a)](){const _0x784be1=_0xa0c3f,_0x142977=this['C'][_0x784be1(0x1c1)],_0x567e97=this['C']['DBMigrationsWriteF'],_0xe1de0d=_0x4accb1[_0x784be1(0x193)](this[_0x784be1(0x267)],this['C']['src'],this['config']['adminUserPath'],_0x142977),_0x11c45d=await this['readDirCustom'](_0xe1de0d,null);for(const _0x440d0f of _0x11c45d){const _0x1bba4f=_0x4accb1[_0x784be1(0x193)](_0xe1de0d,_0x440d0f,_0x440d0f+'.yaml');if(!this['fsExistsSync'](_0x1bba4f))continue;const _0x481f1c=await this[_0x784be1(0x241)](_0x1bba4f,{'encoding':_0x784be1(0x18e)}),_0x1b624f=await this[_0x784be1(0x19e)](_0x481f1c),_0x143496=_0x4accb1[_0x784be1(0x193)](this[_0x784be1(0x23c)],this['C']['src'],_0x567e97);await this[_0x784be1(0x1bb)](_0x143496,{'recursive':!0x0});const _0x206b77=_0x4accb1[_0x784be1(0x193)](_0xe1de0d,_0x440d0f,_0x1b624f['name']+'.ts'),_0x1b71ce=_0x4accb1[_0x784be1(0x193)](_0x143496,_0x1b624f['name']+_0x784be1(0x203));await this['fsLink'](_0x206b77,_0x1b71ce);}}async[_0xa0c3f(0x1cf)](){const _0x243afa=_0xa0c3f,_0x78e6ad=this['C'][_0x243afa(0x2ad)],_0x38d162=this['C'][_0x243afa(0x29f)],_0x9301c4=_0x4accb1[_0x243afa(0x193)](this['appRoot'],this['C'][_0x243afa(0x1d5)],this[_0x243afa(0x266)][_0x243afa(0x2b8)],_0x78e6ad),_0x11c052=await this[_0x243afa(0x1b7)](_0x9301c4,null);for(const _0x4e25e4 of _0x11c052){const _0x308f59=_0x4accb1[_0x243afa(0x193)](_0x9301c4,_0x4e25e4,_0x4e25e4+'.yaml');if(!this[_0x243afa(0x2ab)](_0x308f59))continue;const _0x2f4d18=await this['fsReadFile'](_0x308f59,{'encoding':_0x243afa(0x18e)}),_0x3affaa=await this[_0x243afa(0x19e)](_0x2f4d18),_0x36bedb=_0x4accb1[_0x243afa(0x193)](this[_0x243afa(0x23c)],this['C']['src'],_0x38d162);await this['fsMkDir'](_0x36bedb,{'recursive':!0x0});const _0x12c37c=_0x4accb1[_0x243afa(0x193)](_0x9301c4,_0x4e25e4,_0x3affaa[_0x243afa(0x195)]+'.ts'),_0x59878d=_0x4accb1['join'](_0x36bedb,_0x3affaa[_0x243afa(0x195)]+_0x243afa(0x203));await this[_0x243afa(0x2be)](_0x12c37c,_0x59878d);}}async[_0xa0c3f(0x1a6)](){const _0x2fe0a3=_0xa0c3f,_0x3a8fc1=this['C'][_0x2fe0a3(0x191)],_0x2fee6b=this['C'][_0x2fe0a3(0x1ae)],_0x5946b5=_0x4accb1[_0x2fe0a3(0x193)](this[_0x2fe0a3(0x267)],this['C'][_0x2fe0a3(0x1d5)],this[_0x2fe0a3(0x266)][_0x2fe0a3(0x2b8)],_0x3a8fc1),_0x2b58cb=await this[_0x2fe0a3(0x1b7)](_0x5946b5,null);for(const _0x4b730e of _0x2b58cb){const _0x29b859=_0x4accb1[_0x2fe0a3(0x193)](_0x5946b5,_0x4b730e,_0x4b730e+'.yaml');if(!this[_0x2fe0a3(0x2ab)](_0x29b859))continue;const _0x36274d=await this[_0x2fe0a3(0x241)](_0x29b859,{'encoding':_0x2fe0a3(0x18e)}),_0x4ff082=await this[_0x2fe0a3(0x19e)](_0x36274d),_0x2bc522=_0x4accb1[_0x2fe0a3(0x193)](this[_0x2fe0a3(0x23c)],this['C'][_0x2fe0a3(0x1d5)],_0x2fee6b);await this[_0x2fe0a3(0x1bb)](_0x2bc522,{'recursive':!0x0});const _0x1540d3=_0x4accb1[_0x2fe0a3(0x193)](_0x5946b5,_0x4b730e,_0x4ff082[_0x2fe0a3(0x195)]+_0x2fe0a3(0x203)),_0x51be7b=_0x4accb1['join'](_0x2bc522,_0x4ff082[_0x2fe0a3(0x195)]+_0x2fe0a3(0x203));await this[_0x2fe0a3(0x2be)](_0x1540d3,_0x51be7b);}}async[_0xa0c3f(0x2d6)](){const _0x516113=_0xa0c3f,_0x190743=this['C'][_0x516113(0x296)],_0x590015=this['C'][_0x516113(0x188)],_0x7e1e71=_0x4accb1[_0x516113(0x193)](this['appRoot'],this['C'][_0x516113(0x1d5)],this['config']['adminUserPath'],_0x190743),_0x17c7d0=await this[_0x516113(0x1b7)](_0x7e1e71,null);for(const _0x13a6e8 of _0x17c7d0){const _0x3ea88e=_0x4accb1['join'](_0x7e1e71,_0x13a6e8,_0x13a6e8+'.yaml');if(!this[_0x516113(0x2ab)](_0x3ea88e))continue;const _0x2a7121=await this['fsReadFile'](_0x3ea88e,{'encoding':_0x516113(0x18e)}),_0x35cff4=await this['parseYaml'](_0x2a7121),_0x2e5cc6=_0x4accb1[_0x516113(0x193)](this['projectDirectory'],this['C']['src'],_0x590015,_0x35cff4[_0x516113(0x195)]);await this['fsMkDir'](_0x2e5cc6,{'recursive':!0x0});const _0x42a1c4=_0x4accb1[_0x516113(0x193)](_0x7e1e71,_0x13a6e8,_0x35cff4[_0x516113(0x195)]+_0x516113(0x203)),_0x48f0cc=_0x4accb1[_0x516113(0x193)](_0x2e5cc6,_0x35cff4[_0x516113(0x195)]+'.ts');await this[_0x516113(0x2be)](_0x42a1c4,_0x48f0cc);const _0x5db37e=_0x4accb1[_0x516113(0x193)](_0x7e1e71,_0x13a6e8,_0x35cff4[_0x516113(0x195)]+_0x516113(0x1f6)),_0x2a1dc3=_0x4accb1[_0x516113(0x193)](_0x2e5cc6,_0x35cff4[_0x516113(0x195)]+'.config.ts');await this[_0x516113(0x2be)](_0x5db37e,_0x2a1dc3);}}async['copyDBMasterStylesToAnotherDir'](){const _0x5ebb4a=_0xa0c3f,_0x5f059e=this['C'][_0x5ebb4a(0x2bd)],_0x476bab=this['C'][_0x5ebb4a(0x1be)],_0xd530c5=_0x4accb1[_0x5ebb4a(0x193)](this['appRoot'],this['C'][_0x5ebb4a(0x1d5)],this['config'][_0x5ebb4a(0x2b8)],_0x5f059e),_0x1fd209=await this[_0x5ebb4a(0x1b7)](_0xd530c5,null);for(const _0x182a0a of _0x1fd209){const _0x5a13e5=_0x4accb1[_0x5ebb4a(0x193)](_0xd530c5,_0x182a0a,_0x182a0a+_0x5ebb4a(0x2b5));if(!this[_0x5ebb4a(0x2ab)](_0x5a13e5))continue;const _0x2ddbe6=await this['fsReadFile'](_0x5a13e5,{'encoding':_0x5ebb4a(0x18e)}),_0x5ab956=await this[_0x5ebb4a(0x19e)](_0x2ddbe6),_0xa111a5=_0x4accb1[_0x5ebb4a(0x193)](this[_0x5ebb4a(0x23c)],this['C'][_0x5ebb4a(0x1d5)],_0x476bab);await this['fsMkDir'](_0xa111a5,{'recursive':!0x0});const _0x51fc95=_0x4accb1['join'](_0xd530c5,_0x182a0a,_0x5ab956[_0x5ebb4a(0x195)]+_0x5ebb4a(0x26a)),_0x5ea3f6=_0x4accb1['join'](_0xa111a5,_0x5ab956[_0x5ebb4a(0x195)]+_0x5ebb4a(0x26a));await this[_0x5ebb4a(0x2be)](_0x51fc95,_0x5ea3f6);}}async[_0xa0c3f(0x190)](){const _0x15d5b6=_0xa0c3f,_0x5088cf=this['C'][_0x15d5b6(0x283)],_0x3503d3=this['C'][_0x15d5b6(0x17a)],_0x4f5a4a=_0x4accb1[_0x15d5b6(0x193)](this['appRoot'],this['C'][_0x15d5b6(0x1d5)],this['config'][_0x15d5b6(0x2b8)],_0x5088cf),_0x2d2d38=await this['readDirCustom'](_0x4f5a4a,null);for(const _0x39fba6 of _0x2d2d38){const _0x151f72=_0x4accb1[_0x15d5b6(0x193)](_0x4f5a4a,_0x39fba6,_0x39fba6+_0x15d5b6(0x2b5));if(!this[_0x15d5b6(0x2ab)](_0x151f72))continue;const _0x575779=await this[_0x15d5b6(0x241)](_0x151f72,{'encoding':_0x15d5b6(0x18e)}),_0x3d3888=await this[_0x15d5b6(0x19e)](_0x575779),_0x24a38e=_0x4accb1[_0x15d5b6(0x193)](this[_0x15d5b6(0x23c)],this['C']['src'],_0x3503d3);await this[_0x15d5b6(0x1bb)](_0x24a38e,{'recursive':!0x0});const _0x597f7d=_0x4accb1['join'](_0x4f5a4a,_0x39fba6,_0x3d3888['name']+_0x15d5b6(0x203)),_0x314fac=_0x4accb1['join'](_0x24a38e,_0x3d3888[_0x15d5b6(0x195)]+_0x15d5b6(0x203));await this[_0x15d5b6(0x2be)](_0x597f7d,_0x314fac);}}async[_0xa0c3f(0x291)](){const _0x233ad1=_0xa0c3f,_0x4da2cf=this['C'][_0x233ad1(0x2d5)],_0x5e9eb6=this['C'][_0x233ad1(0x23d)],_0x544f12=_0x4accb1['join'](this[_0x233ad1(0x267)],this['C']['src'],this[_0x233ad1(0x266)]['adminUserPath'],_0x4da2cf),_0x5a4653=await this[_0x233ad1(0x1b7)](_0x544f12,null);for(const _0xdd7e8a of _0x5a4653){const _0x5726eb=_0x4accb1[_0x233ad1(0x193)](_0x544f12,_0xdd7e8a,_0xdd7e8a+_0x233ad1(0x2b5));if(!this['fsExistsSync'](_0x5726eb))continue;const _0x179889=await this[_0x233ad1(0x241)](_0x5726eb,{'encoding':'utf8'}),_0xb8512e=await this[_0x233ad1(0x19e)](_0x179889),_0x36aa2c=_0x4accb1[_0x233ad1(0x193)](this[_0x233ad1(0x23c)],this['C'][_0x233ad1(0x1d5)],_0x5e9eb6);await this[_0x233ad1(0x1bb)](_0x36aa2c,{'recursive':!0x0});const _0x423765=_0x4accb1[_0x233ad1(0x193)](_0x544f12,_0xdd7e8a,_0xb8512e[_0x233ad1(0x195)]+_0x233ad1(0x203)),_0x293595=_0x4accb1[_0x233ad1(0x193)](_0x36aa2c,_0xb8512e[_0x233ad1(0x195)]+_0x233ad1(0x203));await this['fsLink'](_0x423765,_0x293595);}}async[_0xa0c3f(0x2a0)](){const _0x1f4a27=_0xa0c3f,_0x3499e7=this['C']['ThirdPartyApiReadF'],_0x4498d5=this['C'][_0x1f4a27(0x21b)],_0xb9a202=_0x4accb1[_0x1f4a27(0x193)](this[_0x1f4a27(0x267)],this['C'][_0x1f4a27(0x1d5)],this[_0x1f4a27(0x266)][_0x1f4a27(0x2b8)],_0x3499e7);if(!this['fsExistsSync'](_0xb9a202))return;const _0x378feb=await this['readDirCustom'](_0xb9a202,null);for(const _0x4c4455 of _0x378feb){const _0x1f1537=_0x4accb1['join'](_0xb9a202,_0x4c4455,this['C']['apis']),_0x20e623=await this[_0x1f4a27(0x1b7)](_0x1f1537,null);for(const _0x219da4 of _0x20e623){const _0x292ef4=_0x4accb1[_0x1f4a27(0x193)](_0x1f1537,_0x219da4,_0x219da4+_0x1f4a27(0x2b5));if(!this[_0x1f4a27(0x2ab)](_0x292ef4))continue;const _0x1ea6ec=await this[_0x1f4a27(0x241)](_0x292ef4,{'encoding':'utf8'}),_0x1aa0dd=await this[_0x1f4a27(0x19e)](_0x1ea6ec);for(const _0x11e228 of _0x1aa0dd['versions']||[])if(!0x0===_0x11e228['isActive']){const _0xeeff61=_0x4accb1['join'](_0x1f1537,_0x219da4,this['C'][_0x1f4a27(0x1f3)],_0x11e228[_0x1f4a27(0x200)]),_0x5aec96=_0x4accb1[_0x1f4a27(0x193)](_0xeeff61,_0x11e228[_0x1f4a27(0x195)]+'.ts'),_0x15a5fd=_0x4accb1['join'](this[_0x1f4a27(0x23c)],this['C']['src'],_0x4498d5,_0x4c4455,_0x1aa0dd[_0x1f4a27(0x276)],_0x1aa0dd[_0x1f4a27(0x195)]+_0x1f4a27(0x203));await this[_0x1f4a27(0x1bb)](_0x4accb1[_0x1f4a27(0x17c)](_0x15a5fd),{'recursive':!0x0}),await this['fsLink'](_0x5aec96,_0x15a5fd);const _0x5b39ce=_0x4accb1['join'](_0x1f1537,_0x219da4,_0x219da4+_0x1f4a27(0x1f6)),_0x25ba95=_0x4accb1['join'](this[_0x1f4a27(0x23c)],this['C'][_0x1f4a27(0x1d5)],_0x4498d5,_0x4c4455,_0x1aa0dd[_0x1f4a27(0x276)],_0x1aa0dd['name']+_0x1f4a27(0x1f6));await this[_0x1f4a27(0x2be)](_0x5b39ce,_0x25ba95);for(const _0x4f212e of _0x11e228[_0x1f4a27(0x220)]){const _0x43f484=_0x4accb1[_0x1f4a27(0x193)](_0xeeff61,this['C']['preHooks'],_0x4f212e[_0x1f4a27(0x195)]+_0x1f4a27(0x203)),_0x4bb29f=_0x4accb1['join'](this[_0x1f4a27(0x23c)],this['C'][_0x1f4a27(0x1d5)],_0x4498d5,_0x4c4455,_0x1aa0dd[_0x1f4a27(0x276)],this['C'][_0x1f4a27(0x220)],_0x4f212e['name']+_0x1f4a27(0x203));await this['fsMkDir'](_0x4accb1[_0x1f4a27(0x17c)](_0x4bb29f),{'recursive':!0x0}),await this[_0x1f4a27(0x2be)](_0x43f484,_0x4bb29f);}for(const _0x414dc5 of _0x11e228[_0x1f4a27(0x1f7)]){const _0x3acff6=_0x4accb1[_0x1f4a27(0x193)](_0xeeff61,this['C'][_0x1f4a27(0x1f7)],_0x414dc5[_0x1f4a27(0x195)]+_0x1f4a27(0x203)),_0x35b712=_0x4accb1['join'](this[_0x1f4a27(0x23c)],this['C'][_0x1f4a27(0x1d5)],_0x4498d5,_0x4c4455,_0x1aa0dd[_0x1f4a27(0x276)],this['C'][_0x1f4a27(0x1f7)],_0x414dc5[_0x1f4a27(0x195)]+'.ts');await this[_0x1f4a27(0x1bb)](_0x4accb1[_0x1f4a27(0x17c)](_0x35b712),{'recursive':!0x0}),await this[_0x1f4a27(0x2be)](_0x3acff6,_0x35b712);}}}}}async[_0xa0c3f(0x1ed)](){const _0x317011=_0xa0c3f,_0x4d1ee7=this['C'][_0x317011(0x22d)],_0x7b1861=this['C'][_0x317011(0x2bf)],_0x4564f8=_0x4accb1['join'](this[_0x317011(0x267)],this['C'][_0x317011(0x1d5)],this[_0x317011(0x266)]['adminUserPath'],_0x4d1ee7),_0x224b92=await this[_0x317011(0x1b7)](_0x4564f8,null);for(const _0x56416d of _0x224b92){const _0x149fb5=_0x4accb1[_0x317011(0x193)](_0x4564f8,_0x56416d,_0x56416d+'.yaml');if(!this[_0x317011(0x2ab)](_0x149fb5))continue;const _0x316c6e=await this[_0x317011(0x241)](_0x149fb5,{'encoding':'utf8'}),_0x47e953=await this[_0x317011(0x19e)](_0x316c6e),_0x5b8fc3=_0x4accb1[_0x317011(0x193)](_0x4564f8,_0x56416d,this['C'][_0x317011(0x223)]);for(const _0x4dc5ea of _0x47e953[_0x317011(0x21f)])for(const _0xd263b9 of _0x4dc5ea['versions']||[])if(!0x0===_0xd263b9[_0x317011(0x1a2)]){const _0x27b2a2=_0x4accb1[_0x317011(0x193)](_0x5b8fc3,_0x4dc5ea['name'],this['C']['versions'],_0xd263b9[_0x317011(0x200)],_0xd263b9[_0x317011(0x195)]+_0x317011(0x203)),_0x420796=_0x4accb1[_0x317011(0x193)](this[_0x317011(0x23c)],this['C'][_0x317011(0x1d5)],_0x7b1861,_0x47e953[_0x317011(0x195)],_0x4dc5ea['name']+_0x317011(0x203));await this[_0x317011(0x1bb)](_0x4accb1['dirname'](_0x420796),{'recursive':!0x0}),await this[_0x317011(0x2be)](_0x27b2a2,_0x420796);}}}async[_0xa0c3f(0x21c)](){const _0x3842a0=_0xa0c3f,_0x45dea3=this['C'][_0x3842a0(0x1d7)],_0x4b5bbb=this['C'][_0x3842a0(0x2d8)],_0x1634c2=_0x4accb1[_0x3842a0(0x193)](this[_0x3842a0(0x267)],this['C'][_0x3842a0(0x1d5)],this[_0x3842a0(0x266)][_0x3842a0(0x2b8)],_0x45dea3),_0x1a6ea2=await this[_0x3842a0(0x1b7)](_0x1634c2,null);for(const _0x4331fd of _0x1a6ea2){const _0x4886bb=_0x4accb1[_0x3842a0(0x193)](_0x1634c2,_0x4331fd,_0x4331fd+'.yaml');if(!this[_0x3842a0(0x2ab)](_0x4886bb))continue;const _0x5e95d8=await this[_0x3842a0(0x241)](_0x4886bb,{'encoding':_0x3842a0(0x18e)}),_0x150389=await this[_0x3842a0(0x19e)](_0x5e95d8),_0xd344e3=_0x4accb1[_0x3842a0(0x193)](_0x1634c2,_0x4331fd),_0xa9a0d7=_0x150389['instanceName']+'/'+_0x150389[_0x3842a0(0x19b)]+'/'+_0x150389['collectionName']+'/'+_0x150389[_0x3842a0(0x1b6)]['toLowerCase']();for(const _0x5e44e5 of _0x150389[_0x3842a0(0x220)]){const _0x185e29=_0x4accb1['join'](_0xd344e3,this['C'][_0x3842a0(0x220)],_0x5e44e5['name']+_0x3842a0(0x203)),_0x2dd993=_0x4accb1['join'](this['projectDirectory'],this['C'][_0x3842a0(0x1d5)],_0x4b5bbb,_0xa9a0d7,this['C'][_0x3842a0(0x220)],_0x5e44e5['name']+_0x3842a0(0x203));await this[_0x3842a0(0x1bb)](_0x4accb1[_0x3842a0(0x17c)](_0x2dd993),{'recursive':!0x0}),await this['fsLink'](_0x185e29,_0x2dd993);}for(const _0x3b3815 of _0x150389[_0x3842a0(0x1f7)]){const _0x1e94a4=_0x4accb1['join'](_0xd344e3,this['C'][_0x3842a0(0x1f7)],_0x3b3815[_0x3842a0(0x195)]+_0x3842a0(0x203)),_0x1434c2=_0x4accb1[_0x3842a0(0x193)](this[_0x3842a0(0x23c)],this['C'][_0x3842a0(0x1d5)],_0x4b5bbb,_0xa9a0d7,this['C'][_0x3842a0(0x1f7)],_0x3b3815['name']+_0x3842a0(0x203));await this[_0x3842a0(0x1bb)](_0x4accb1['dirname'](_0x1434c2),{'recursive':!0x0}),await this[_0x3842a0(0x2be)](_0x1e94a4,_0x1434c2);}}}async[_0xa0c3f(0x1ac)](){const _0x301a3f=_0xa0c3f,_0x1c6d43=this['C']['SystemApiHooksReadF'],_0x11bc3d=this['C'][_0x301a3f(0x293)],_0x4567ad=_0x4accb1[_0x301a3f(0x193)](this[_0x301a3f(0x267)],this['C'][_0x301a3f(0x1d5)],this[_0x301a3f(0x266)][_0x301a3f(0x2b8)],_0x1c6d43),_0x594a97=await this[_0x301a3f(0x1b7)](_0x4567ad,null);for(const _0x39f81f of _0x594a97){const _0x3299e0=_0x4accb1[_0x301a3f(0x193)](_0x4567ad,_0x39f81f,_0x39f81f+_0x301a3f(0x2b5));if(!this['fsExistsSync'](_0x3299e0))continue;const _0x3c3707=await this[_0x301a3f(0x241)](_0x3299e0,{'encoding':'utf8'}),_0x4b3e48=await this[_0x301a3f(0x19e)](_0x3c3707),_0x575180=_0x4accb1['join'](_0x4567ad,_0x39f81f),_0x2e5162=_0x4b3e48[_0x301a3f(0x1b6)][_0x301a3f(0x1fb)]();for(const _0x274cf5 of _0x4b3e48[_0x301a3f(0x220)]){const _0x2fa86d=_0x4accb1[_0x301a3f(0x193)](_0x575180,this['C']['preHooks'],_0x274cf5[_0x301a3f(0x195)]+_0x301a3f(0x203)),_0x4881a7=_0x4accb1['join'](this[_0x301a3f(0x23c)],this['C'][_0x301a3f(0x1d5)],_0x11bc3d,_0x2e5162,this['C']['preHooks'],_0x274cf5[_0x301a3f(0x195)]+_0x301a3f(0x203));await this['fsMkDir'](_0x4accb1[_0x301a3f(0x17c)](_0x4881a7),{'recursive':!0x0}),await this[_0x301a3f(0x2be)](_0x2fa86d,_0x4881a7);}for(const _0x5b0fc8 of _0x4b3e48[_0x301a3f(0x1f7)]){const _0x42f4df=_0x4accb1[_0x301a3f(0x193)](_0x575180,this['C'][_0x301a3f(0x1f7)],_0x5b0fc8[_0x301a3f(0x195)]+_0x301a3f(0x203)),_0x42a89d=_0x4accb1['join'](this[_0x301a3f(0x23c)],this['C'][_0x301a3f(0x1d5)],_0x11bc3d,_0x2e5162,this['C'][_0x301a3f(0x1f7)],_0x5b0fc8[_0x301a3f(0x195)]+'.ts');await this[_0x301a3f(0x1bb)](_0x4accb1[_0x301a3f(0x17c)](_0x42a89d),{'recursive':!0x0}),await this['fsLink'](_0x42f4df,_0x42a89d);}}}async[_0xa0c3f(0x2a4)](){const _0x971bc3=_0xa0c3f,_0x1f145a=this['C']['WebSocketEventsReadF'],_0x4686a9=this['C']['WebSocketEventsWriteF'],_0x331dfc=_0x4accb1[_0x971bc3(0x193)](this[_0x971bc3(0x267)],this['C'][_0x971bc3(0x1d5)],this[_0x971bc3(0x266)][_0x971bc3(0x2b8)],_0x1f145a),_0xccb6b7=await this[_0x971bc3(0x1b7)](_0x331dfc,null);for(const _0x400816 of _0xccb6b7){const _0x1f4d52=_0x4accb1['join'](_0x331dfc,_0x400816,_0x400816+_0x971bc3(0x2b5));if(!this[_0x971bc3(0x2ab)](_0x1f4d52))continue;const _0x3c779a=await this[_0x971bc3(0x241)](_0x1f4d52,{'encoding':'utf8'}),_0x33e051=await this[_0x971bc3(0x19e)](_0x3c779a);for(const _0x3e6d6d of _0x33e051[_0x971bc3(0x1f3)]||[])if(!0x0===_0x3e6d6d[_0x971bc3(0x1a2)]){const _0x5f20d5=_0x4accb1[_0x971bc3(0x193)](_0x331dfc,_0x400816,this['C'][_0x971bc3(0x1f3)],_0x3e6d6d[_0x971bc3(0x200)],_0x3e6d6d['name']+_0x971bc3(0x203));let _0x303b15='',_0x5133d5='';_0x33e051[_0x971bc3(0x26e)]===_0x4e8d00['INSTANCES']?(_0x5133d5=_0x971bc3(0x239),_0x303b15=_0x33e051[_0x971bc3(0x28f)]+'/'+_0x33e051[_0x971bc3(0x19b)]+'/'+_0x33e051[_0x971bc3(0x2cc)]+'/'+_0x33e051[_0x971bc3(0x231)][_0x971bc3(0x1fb)]()):_0x33e051[_0x971bc3(0x26e)]===_0x4e8d00[_0x971bc3(0x292)]?(_0x5133d5=_0x971bc3(0x25a),_0x303b15=_0x33e051[_0x971bc3(0x2b9)]+'/'+_0x33e051[_0x971bc3(0x299)]):_0x33e051[_0x971bc3(0x26e)]===_0x4e8d00[_0x971bc3(0x1e0)]?(_0x5133d5=_0x971bc3(0x297),_0x303b15=_0x33e051[_0x971bc3(0x216)]):_0x33e051[_0x971bc3(0x26e)]===_0x4e8d00[_0x971bc3(0x1ad)]?(_0x5133d5=_0x971bc3(0x298),_0x303b15=_0x33e051['systemApiName']['toLowerCase']()):_0x33e051[_0x971bc3(0x26e)]===_0x4e8d00[_0x971bc3(0x186)]&&(_0x5133d5='ws-events',_0x303b15=_0x33e051[_0x971bc3(0x195)]);const _0x22ed6c=_0x4accb1[_0x971bc3(0x193)](this[_0x971bc3(0x23c)],this['C'][_0x971bc3(0x1d5)],_0x4686a9,_0x5133d5,_0x303b15+_0x971bc3(0x203));await this[_0x971bc3(0x1bb)](_0x4accb1[_0x971bc3(0x17c)](_0x22ed6c),{'recursive':!0x0}),await this[_0x971bc3(0x2be)](_0x5f20d5,_0x22ed6c);}}}async[_0xa0c3f(0x273)](){const _0x46d0ff=_0xa0c3f,_0xfb2af8=this['C'][_0x46d0ff(0x1fc)],_0x7465f0=this['C'][_0x46d0ff(0x192)],_0x4e6857=_0x4accb1['join'](this[_0x46d0ff(0x267)],this['C'][_0x46d0ff(0x1d5)],this['config']['adminUserPath'],_0xfb2af8),_0x16ee19=await this[_0x46d0ff(0x1b7)](_0x4e6857,null);for(const _0x32f812 of _0x16ee19){const _0x5ce760=_0x4accb1[_0x46d0ff(0x193)](_0x4e6857,_0x32f812,_0x32f812+_0x46d0ff(0x2b5));if(!this[_0x46d0ff(0x2ab)](_0x5ce760))continue;const _0x178bd7=await this['fsReadFile'](_0x5ce760,{'encoding':'utf8'}),_0x3cd342=await this[_0x46d0ff(0x19e)](_0x178bd7),_0x3171e6=_0x4accb1[_0x46d0ff(0x193)](_0x4e6857,_0x32f812),_0x355e54=_0x3cd342[_0x46d0ff(0x28f)]+'/'+_0x3cd342[_0x46d0ff(0x19b)]+'/'+_0x3cd342[_0x46d0ff(0x2cc)];for(const _0x1d8767 of _0x3cd342['preHooks']){const _0x4c3b0a=_0x4accb1[_0x46d0ff(0x193)](_0x3171e6,this['C'][_0x46d0ff(0x220)],_0x1d8767['name']+'.ts'),_0x5cabad=_0x4accb1['join'](this[_0x46d0ff(0x23c)],this['C'][_0x46d0ff(0x1d5)],_0x7465f0,_0x355e54,this['C'][_0x46d0ff(0x220)],_0x1d8767[_0x46d0ff(0x195)]+_0x46d0ff(0x203));await this['fsMkDir'](_0x4accb1[_0x46d0ff(0x17c)](_0x5cabad),{'recursive':!0x0}),await this[_0x46d0ff(0x2be)](_0x4c3b0a,_0x5cabad);}for(const _0x140d42 of _0x3cd342[_0x46d0ff(0x1f7)]){const _0x5a1d10=_0x4accb1[_0x46d0ff(0x193)](_0x3171e6,this['C']['postHooks'],_0x140d42[_0x46d0ff(0x195)]+_0x46d0ff(0x203)),_0x2e2bd6=_0x4accb1['join'](this['projectDirectory'],this['C']['src'],_0x7465f0,_0x355e54,this['C']['postHooks'],_0x140d42[_0x46d0ff(0x195)]+_0x46d0ff(0x203));await this[_0x46d0ff(0x1bb)](_0x4accb1[_0x46d0ff(0x17c)](_0x2e2bd6),{'recursive':!0x0}),await this['fsLink'](_0x5a1d10,_0x2e2bd6);}}}async[_0xa0c3f(0x24b)](){const _0x8638df=_0xa0c3f,_0x1717c5=this['C']['DatabaseHooksReadF'],_0x20d975=this['C'][_0x8638df(0x265)],_0x19c38f=_0x4accb1[_0x8638df(0x193)](this[_0x8638df(0x267)],this['C'][_0x8638df(0x1d5)],this['config'][_0x8638df(0x2b8)],_0x1717c5),_0x54ca7c=await this[_0x8638df(0x1b7)](_0x19c38f,null);for(const _0x37acfe of _0x54ca7c){const _0x4fddcb=_0x4accb1[_0x8638df(0x193)](_0x19c38f,_0x37acfe,_0x37acfe+_0x8638df(0x2b5));if(!this[_0x8638df(0x2ab)](_0x4fddcb))continue;const _0x3fa62e=await this['fsReadFile'](_0x4fddcb,{'encoding':'utf8'}),_0x411f6e=await this[_0x8638df(0x19e)](_0x3fa62e),_0x472cc2=_0x4accb1['join'](_0x19c38f,_0x37acfe),_0x501316=_0x411f6e[_0x8638df(0x28f)]+'/'+_0x411f6e[_0x8638df(0x19b)];for(const _0x23d22d of _0x411f6e[_0x8638df(0x220)]){const _0x384643=_0x4accb1[_0x8638df(0x193)](_0x472cc2,this['C']['preHooks'],_0x23d22d[_0x8638df(0x195)]+'.ts'),_0x39f44a=_0x4accb1[_0x8638df(0x193)](this['projectDirectory'],this['C'][_0x8638df(0x1d5)],_0x20d975,_0x501316,this['C']['preHooks'],_0x23d22d[_0x8638df(0x195)]+'.ts');await this[_0x8638df(0x1bb)](_0x4accb1[_0x8638df(0x17c)](_0x39f44a),{'recursive':!0x0}),await this[_0x8638df(0x2be)](_0x384643,_0x39f44a);}for(const _0x59d5d1 of _0x411f6e[_0x8638df(0x1f7)]){const _0x279e5=_0x4accb1[_0x8638df(0x193)](_0x472cc2,this['C'][_0x8638df(0x1f7)],_0x59d5d1['name']+_0x8638df(0x203)),_0x5bb9e1=_0x4accb1[_0x8638df(0x193)](this[_0x8638df(0x23c)],this['C']['src'],_0x20d975,_0x501316,this['C']['postHooks'],_0x59d5d1[_0x8638df(0x195)]+_0x8638df(0x203));await this[_0x8638df(0x1bb)](_0x4accb1[_0x8638df(0x17c)](_0x5bb9e1),{'recursive':!0x0}),await this[_0x8638df(0x2be)](_0x279e5,_0x5bb9e1);}}}async[_0xa0c3f(0x2af)](){const _0x445116=_0xa0c3f,_0x3fb285=this['C'][_0x445116(0x1d0)],_0x778822=this['C'][_0x445116(0x178)],_0x231be7=_0x4accb1[_0x445116(0x193)](this[_0x445116(0x267)],this['C'][_0x445116(0x1d5)],this[_0x445116(0x266)][_0x445116(0x2b8)],_0x3fb285),_0x25ec3b=await this[_0x445116(0x1b7)](_0x231be7,null);for(const _0x34c643 of _0x25ec3b){const _0x4d9d2e=_0x4accb1['join'](_0x231be7,_0x34c643,_0x34c643+_0x445116(0x2b5));if(!this[_0x445116(0x2ab)](_0x4d9d2e))continue;const _0xa0cd18=await this[_0x445116(0x241)](_0x4d9d2e,{'encoding':_0x445116(0x18e)}),_0x3ff258=await this[_0x445116(0x19e)](_0xa0cd18),_0x530222=_0x4accb1[_0x445116(0x193)](_0x231be7,_0x34c643),_0x349c19=''+_0x3ff258[_0x445116(0x28f)];for(const _0x29ca4d of _0x3ff258[_0x445116(0x220)]){const _0x23a152=_0x4accb1[_0x445116(0x193)](_0x530222,this['C'][_0x445116(0x220)],_0x29ca4d[_0x445116(0x195)]+_0x445116(0x203)),_0x7e3a0d=_0x4accb1[_0x445116(0x193)](this[_0x445116(0x23c)],this['C'][_0x445116(0x1d5)],_0x778822,_0x349c19,this['C'][_0x445116(0x220)],_0x29ca4d[_0x445116(0x195)]+_0x445116(0x203));await this[_0x445116(0x1bb)](_0x4accb1[_0x445116(0x17c)](_0x7e3a0d),{'recursive':!0x0}),await this['fsLink'](_0x23a152,_0x7e3a0d);}for(const _0x386716 of _0x3ff258['postHooks']){const _0x442081=_0x4accb1[_0x445116(0x193)](_0x530222,this['C'][_0x445116(0x1f7)],_0x386716['name']+_0x445116(0x203)),_0x175844=_0x4accb1['join'](this[_0x445116(0x23c)],this['C']['src'],_0x778822,_0x349c19,this['C']['postHooks'],_0x386716['name']+_0x445116(0x203));await this['fsMkDir'](_0x4accb1[_0x445116(0x17c)](_0x175844),{'recursive':!0x0}),await this[_0x445116(0x2be)](_0x442081,_0x175844);}}}async[_0xa0c3f(0x29d)](_0x25e0ec,_0x41bb26){return new Promise((_0x3cd4e4,_0x537111)=>{const _0x599e63=a0_0x5d6f,_0x2f2ee9=(0x0,_0x38d9e1[_0x599e63(0x263)])(_0x25e0ec,_0x41bb26,{'shell':!0x0,'cwd':this[_0x599e63(0x267)]});_0x2f2ee9['on'](_0x599e63(0x287),_0x457568=>{const _0x2ee5aa=_0x599e63;if(0x0===_0x457568)setTimeout(_0x3cd4e4,0x1f4);else{const _0x3562ee='\x27'+_0x25e0ec+'\x20'+_0x41bb26[_0x2ee5aa(0x193)]('\x20')+'\x27\x20exited\x20with\x20code\x20'+_0x457568+'.';_0x537111(new Error(_0x3562ee));}}),_0x2f2ee9['on'](_0x599e63(0x252),_0xa876f8=>{const _0x5b6ef2=_0x599e63;console['error'](_0x5b6ef2(0x219)+_0xa876f8[_0x5b6ef2(0x253)]),_0x537111(_0xa876f8);});});}async[_0xa0c3f(0x19e)](_0x4549a4){return _0x132f90(0x2f8)['load'](_0x4549a4);}[_0xa0c3f(0x1b3)](){const _0x25c7dc=_0xa0c3f,_0x1f12f1=_0x132f90(0x274),_0x4a486b=_0x4accb1[_0x25c7dc(0x193)](this['appRoot']),_0xe2b16d=_0x4accb1[_0x25c7dc(0x193)](this['appRoot'],this['C'][_0x25c7dc(0x1d5)]),_0x3f3b86=_0x52303a=>{const _0x185b0b=_0x25c7dc,_0x3d8320=_0x4accb1[_0x185b0b(0x28e)](_0x4a486b,_0x52303a);return!(_0x3d8320&&!_0x3d8320[_0x185b0b(0x23a)]('.')&&!_0x3d8320[_0x185b0b(0x244)]('~')&&_0x3d8320[_0x185b0b(0x23a)](this['C'][_0x185b0b(0x1d5)]));},_0x2fc6f9=_0x1f12f1['watch'](_0xe2b16d,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0x170688=async(_0x221ccd,_0x3a372e)=>{const _0x438e35=_0x25c7dc;try{if(this[_0x438e35(0x247)])return;const _0x7e1e24=_0x4accb1[_0x438e35(0x28e)](_0x4a486b,_0x3a372e);if(!_0x3a372e||_0x3f3b86(_0x3a372e))return;console[_0x438e35(0x1a5)](_0x438e35(0x1a9)+this[_0x438e35(0x197)]()+']\x20:\x20['+_0x221ccd+_0x438e35(0x23e)+_0x7e1e24);const _0x3979c4=this[_0x438e35(0x18f)](_0x7e1e24),_0x5c57f4=this[_0x438e35(0x269)](_0x3979c4,_0x7e1e24);if(!_0x5c57f4)return;let _0x415358,_0xef265b=!0x1;if(this[_0x438e35(0x2ab)](_0x5c57f4)){if(this['fsExistsSync'](_0x4accb1[_0x438e35(0x193)](_0x4a486b,_0x7e1e24))){const _0x46b259=_0x4accb1[_0x438e35(0x193)](_0x4accb1[_0x438e35(0x21e)]+this['C'][_0x438e35(0x1f0)],_0x5c57f4);_0x415358=await this[_0x438e35(0x257)](_0x5c57f4,_0x46b259),this[_0x438e35(0x1b8)]({'objType':_0x287e75[_0x438e35(0x271)],'localClientWSReqRes':{'eventType':_0x3a66f8[_0x438e35(0x218)],'folderChangedOnLocalSystem':_0x415358,'category':_0x3979c4,'shouldReplaceAllItemsOfCategory':_0xef265b}});}else this[_0x438e35(0x1b9)]();}else{const _0xfa5dfb=this['getChangedFolderForDeleted'](_0x3979c4,_0x7e1e24),_0x14353f=_0x4accb1[_0x438e35(0x193)](_0x4accb1[_0x438e35(0x21e)]+this['C'][_0x438e35(0x1f0)],_0xfa5dfb);_0x415358=await this[_0x438e35(0x257)](_0xfa5dfb,_0x14353f),_0xef265b=!0x0,this[_0x438e35(0x2bc)](_0x415358,_0x3979c4,_0xef265b);}}catch(_0x597229){console['error'](_0x438e35(0x1b4),_0x597229);}};_0x2fc6f9['on']('add',_0x52278e=>_0x170688(_0x25c7dc(0x189),_0x52278e))['on'](_0x25c7dc(0x2a6),_0x48bcab=>_0x170688(_0x25c7dc(0x2a6),_0x48bcab))['on'](_0x25c7dc(0x235),_0x4806a5=>_0x170688('unlink',_0x4806a5))['on'](_0x25c7dc(0x279),_0x19acb0=>_0x170688(_0x25c7dc(0x279),_0x19acb0))['on'](_0x25c7dc(0x1bd),_0x4507b1=>_0x170688(_0x25c7dc(0x1bd),_0x4507b1))['on']('error',_0x187d0a=>console[_0x25c7dc(0x252)](_0x25c7dc(0x25e),_0x187d0a)),this[_0x25c7dc(0x17f)]=_0x2fc6f9,console[_0x25c7dc(0x1a5)]('✅\x20Local\x20client\x20started...');}[_0xa0c3f(0x197)](){const _0x512eec=_0xa0c3f,_0x554875=new Date();return String(_0x554875[_0x512eec(0x255)]())[_0x512eec(0x1cc)](0x2,'0')+':'+String(_0x554875[_0x512eec(0x1b0)]())[_0x512eec(0x1cc)](0x2,'0')+':'+String(_0x554875[_0x512eec(0x1df)]())[_0x512eec(0x1cc)](0x2,'0');}[_0xa0c3f(0x29a)](_0x13718e,_0x4f5e65,_0x1f6eaf){const _0x94bdb5=_0xa0c3f;this[_0x94bdb5(0x1b8)]({'objType':_0x287e75[_0x94bdb5(0x271)],'localClientWSReqRes':{'eventType':_0x3a66f8[_0x94bdb5(0x218)],'folderChangedOnLocalSystem':_0x13718e,'category':_0x4f5e65,'shouldReplaceAllItemsOfCategory':_0x1f6eaf}});}[_0xa0c3f(0x232)](_0x26f8e5,_0x57a679){let _0x2ddd19=null;return function(..._0x12a3d1){clearTimeout(_0x2ddd19),_0x2ddd19=setTimeout(()=>{const _0x48afac=a0_0x5d6f;_0x26f8e5[_0x48afac(0x2c3)](this,_0x12a3d1);},_0x57a679);};}['getCategoryOfPath'](_0x11db23){const _0x5de5d9=_0xa0c3f,_0x36959f=_0x4accb1['join'](this['C']['src'],this[_0x5de5d9(0x266)][_0x5de5d9(0x2b8)]);if(!_0x11db23['startsWith'](_0x36959f))return;const _0x426be3=_0x11db23['split'](_0x4accb1[_0x5de5d9(0x21e)])[_0x5de5d9(0x2c8)](_0x13ba01=>!!_0x13ba01)[0x2];for(const _0x48d328 in _0x9fe768)if(_0x9fe768[_0x48d328]===_0x426be3)return _0x426be3;}[_0xa0c3f(0x269)](_0x3228c2,_0x5865e1){const _0x2d8ad3=_0xa0c3f,_0x58f7ff=_0x5865e1[_0x2d8ad3(0x1d3)](_0x4accb1[_0x2d8ad3(0x21e)]);let _0x12680a='';return _0x12680a=_0x3228c2===_0x9fe768[_0x2d8ad3(0x292)]?_0x58f7ff['slice'](0x0,0x6)[_0x2d8ad3(0x193)](_0x4accb1[_0x2d8ad3(0x21e)]):_0x58f7ff['slice'](0x0,0x4)[_0x2d8ad3(0x193)](_0x4accb1['sep']),_0x12680a;}[_0xa0c3f(0x261)](_0x4d4bd8,_0x556689){const _0x5d3f50=_0xa0c3f;return _0x556689[_0x5d3f50(0x1d3)](_0x4accb1[_0x5d3f50(0x21e)])[_0x5d3f50(0x25d)](0x0,0x3)[_0x5d3f50(0x193)](_0x4accb1[_0x5d3f50(0x21e)]);}async[_0xa0c3f(0x257)](_0x1a6eb4,_0x847f11){const _0x457cee={},_0x3b90f8=this;return await async function _0xfd8fce(_0xad34e5){const _0x1b4aed=a0_0x5d6f,_0x57a66f=await _0x3b90f8['readDirCustom'](_0xad34e5,{'withFileTypes':!0x0});for(const _0x28afb9 of _0x57a66f){const _0x2787e6=_0x4accb1['join'](_0xad34e5,_0x28afb9[_0x1b4aed(0x195)]),_0xebadd=_0x4accb1[_0x1b4aed(0x2aa)](_0x2787e6);if(_0x28afb9[_0x1b4aed(0x1e7)]())await _0xfd8fce(_0xebadd);else{const _0x426703=_0x4de93c[_0x1b4aed(0x182)](_0xebadd),_0x183d31=_0x4accb1[_0x1b4aed(0x28e)](_0x1a6eb4,_0xebadd),_0x17ca1b=_0x4accb1[_0x1b4aed(0x193)](_0x847f11,_0x183d31)[_0x1b4aed(0x1d3)](_0x4accb1['sep'])[_0x1b4aed(0x193)](_0x4accb1[_0x1b4aed(0x1ef)][_0x1b4aed(0x21e)]);_0x457cee[_0x17ca1b]={'encoding':_0x1b4aed(0x20c),'content':_0x426703[_0x1b4aed(0x233)](_0x1b4aed(0x20c))};}}}(_0x1a6eb4),_0x457cee;}[_0xa0c3f(0x1b8)](_0x496365){const _0x551553=_0xa0c3f;try{this['ws']['send'](JSON[_0x551553(0x1c5)](_0x496365));}catch(_0x5d18b1){console['log'](_0x5d18b1);}}async[_0xa0c3f(0x222)](){const _0x4d5681=_0xa0c3f;console[_0x4d5681(0x1a5)](_0x4d5681(0x28d));const _0x332295=this['config'][_0x4d5681(0x1a0)],_0x287642=this[_0x4d5681(0x266)][_0x4d5681(0x2b8)],_0x466d8a=this['config'][_0x4d5681(0x237)];this['ws']=new WebSocket(_0x466d8a+_0x4d5681(0x184)+_0x332295+'&user-path='+_0x287642);const _0x49c0a9=[],_0x3c9812=()=>{const _0x3c568b=_0x4d5681;this[_0x3c568b(0x1b8)]({'objType':_0x287e75[_0x3c568b(0x1e1)],'onEvents':[{'eventType':_0x3c568b(0x268)}]});};function _0x42246b(_0x40af78){const _0x34c1b1=_0x4d5681;_0x40af78[_0x34c1b1(0x1ab)]=null,_0x40af78[_0x34c1b1(0x212)]=null,_0x40af78['onerror']=null,_0x40af78[_0x34c1b1(0x21d)]=null,_0x40af78['close']();}this['ws'][_0x4d5681(0x212)]=async _0x37b404=>{const _0x564ece=_0x4d5681,_0xff12eb=JSON[_0x564ece(0x1a1)](_0x37b404[_0x564ece(0x25f)]);if(_0xff12eb['type']===_0x287e75[_0x564ece(0x1c9)]&&_0xff12eb[_0x564ece(0x1a4)][_0x564ece(0x19c)])_0x3c9812();else{if(_0xff12eb['type']===_0x287e75[_0x564ece(0x1e1)]){if(_0xff12eb?.[_0x564ece(0x1a4)]?.[_0x564ece(0x214)]?.[_0x564ece(0x213)]){for(const _0x4d1c02 of _0xff12eb[_0x564ece(0x1a4)][_0x564ece(0x214)])_0x49c0a9[_0x564ece(0x22f)](_0x4d1c02);console[_0x564ece(0x1a5)]('✅\x20Connected\x20to\x20server\x20via\x20WS'),!0x1===this[_0x564ece(0x27e)]&&(this[_0x564ece(0x27e)]=!0x0,console[_0x564ece(0x1a5)](this['cyanStart']+_0x564ece(0x27a)+this['projectDirectory']+this[_0x564ece(0x22b)])),this[_0x564ece(0x1b9)]();}else{const _0x333d08=_0xff12eb[_0x564ece(0x1a4)]?.[_0x564ece(0x201)]?.[0x0]?.[_0x564ece(0x17d)]?.[0x0]?.[_0x564ece(0x253)]||'Error\x20while\x20connecting\x20to\x20WS\x20server.';console[_0x564ece(0x1a5)]('❌\x20'+_0x333d08),await this['shutdownAndExit'](0x1);}}else await this[_0x564ece(0x1db)](_0xff12eb);}},this['ws']['onclose']=_0x42adda=>{const _0x5b686d=_0x4d5681;console[_0x5b686d(0x1a5)](_0x5b686d(0x19f)),_0x42246b(this['ws']),setTimeout(this['connectToServerViaWS'][_0x5b686d(0x2b6)](this),0xbb8);},this['ws'][_0x4d5681(0x1bc)]=()=>{const _0x3575b9=_0x4d5681;_0x42246b(this['ws']),setTimeout(this[_0x3575b9(0x222)][_0x3575b9(0x2b6)](this),0xbb8);};}[_0xa0c3f(0x1b9)](){const _0xcdc298=_0xa0c3f;this['sendToServer']({'objType':_0x287e75[_0xcdc298(0x271)],'localClientWSReqRes':{'eventType':_0x3a66f8['LC_SEND_ALL_DATA']}});}async[_0xa0c3f(0x1db)](_0x319b9f){const _0x153dc8=_0xa0c3f;if(this['EL']&&_0x319b9f[_0x153dc8(0x1a4)][_0x153dc8(0x280)]!==_0x3a66f8[_0x153dc8(0x1e9)]&&console[_0x153dc8(0x1a5)](_0x319b9f),_0x319b9f[_0x153dc8(0x187)]===_0x287e75[_0x153dc8(0x271)]){if(_0x319b9f['errors']?.[_0x153dc8(0x213)])return void console[_0x153dc8(0x252)](_0x319b9f['errors']);if(_0x319b9f[_0x153dc8(0x1a4)]['eventType']===_0x3a66f8[_0x153dc8(0x1e9)]){_0x4de93c[_0x153dc8(0x294)](_0x4accb1[_0x153dc8(0x193)](this[_0x153dc8(0x267)],this['C'][_0x153dc8(0x1d5)]),{'recursive':!0x0,'force':!0x0}),this[_0x153dc8(0x281)](_0x4accb1[_0x153dc8(0x193)](this[_0x153dc8(0x267)],this['C'][_0x153dc8(0x1d5)]),{'recursive':!0x0});const _0x38e217=_0x319b9f[_0x153dc8(0x1a4)][_0x153dc8(0x2ac)];await this[_0x153dc8(0x1b1)](_0x38e217,this[_0x153dc8(0x267)]),this['watcher']||setTimeout(this[_0x153dc8(0x1b3)][_0x153dc8(0x2b6)](this),0x1388);}else{if(_0x319b9f[_0x153dc8(0x1a4)][_0x153dc8(0x280)]===_0x3a66f8[_0x153dc8(0x226)]){const _0x13c74b=_0x319b9f[_0x153dc8(0x1a4)][_0x153dc8(0x2ac)];await this[_0x153dc8(0x1b1)](_0x13c74b['data'],this[_0x153dc8(0x267)]);}}!0x0===this[_0x153dc8(0x185)]?await this[_0x153dc8(0x2d4)](!0x1):(await this['copyFilesToProjectDir'](!0x0),this[_0x153dc8(0x185)]=!0x0);}}async[_0xa0c3f(0x1b1)](_0x21dcee,_0x586d1d){const _0x599510=_0xa0c3f;this[_0x599510(0x247)]=!0x0;let _0x3c5b6a=[];const _0x1dfb82=async()=>{_0x3c5b6a['length']>0x0&&(await Promise['all'](_0x3c5b6a),_0x3c5b6a=[]);};for(const [_0x4649df,_0x4edb96]of Object[_0x599510(0x245)](_0x21dcee)){if(!_0x4649df['startsWith']('/'+this['C'][_0x599510(0x1f0)]+'/'+this['C'][_0x599510(0x1d5)]))continue;const _0x2dff41=_0x4edb96,_0x2c3b6d=_0x4649df[_0x599510(0x1d6)]('/'+this['C'][_0x599510(0x1f0)],'');if(this[_0x599510(0x29e)][_0x2c3b6d])continue;const _0x1963b4=_0x4accb1[_0x599510(0x193)](_0x586d1d,_0x2c3b6d['replace'](/^\//,'')),_0x1c88ba=_0x4accb1[_0x599510(0x17c)](_0x1963b4),_0x4bf218=async()=>{const _0x3f28ae=_0x599510;await this[_0x3f28ae(0x1bb)](_0x1c88ba,{'recursive':!0x0}),await this[_0x3f28ae(0x228)](_0x1963b4,_0x2dff41[_0x3f28ae(0x29c)],{'encoding':_0x3f28ae(0x20c)}),this['EL']&&console[_0x3f28ae(0x1a5)](_0x3f28ae(0x2a2)+this[_0x3f28ae(0x197)]()+_0x3f28ae(0x23e)+_0x1963b4['replace'](_0x586d1d,''));};_0x3c5b6a['push'](_0x4bf218()),_0x3c5b6a['length']>=0x3e8&&await _0x1dfb82();}await _0x1dfb82(),setTimeout(()=>{const _0x366391=_0x599510;this[_0x366391(0x247)]=!0x1;},0x3e8);}[_0xa0c3f(0x1d8)](_0x541df7){const _0x3ff6e5=_0xa0c3f,_0x166538=this['normalizePath'](_0x541df7);if(!this[_0x3ff6e5(0x2ab)](_0x166538))return!0x1;const _0x77c1a7=_0x4de93c[_0x3ff6e5(0x1b5)](_0x166538);let _0x388a94=!0x0;for(const _0x388a40 of _0x77c1a7){const _0x1fd3fe=_0x4accb1[_0x3ff6e5(0x193)](_0x166538,_0x388a40);_0x4de93c[_0x3ff6e5(0x2b7)](_0x1fd3fe)[_0x3ff6e5(0x1e7)]()&&this['removeEmptyDirsSync'](_0x1fd3fe)||(_0x388a94=!0x1);}return!!_0x388a94&&(_0x4de93c[_0x3ff6e5(0x1ce)](_0x166538),!0x0);}async[_0xa0c3f(0x1b7)](_0x108997,_0x65c02e){const _0x57e960=_0xa0c3f;return this[_0x57e960(0x2ab)](_0x108997)?await this['fsReadDir'](_0x108997,_0x65c02e):[];}['normalizePath'](_0x19cb8c){const _0x4f1e74=_0xa0c3f;return _0x4accb1[_0x4f1e74(0x2aa)](_0x19cb8c);}[_0xa0c3f(0x2ab)](_0x4e678c){const _0x5115e0=_0xa0c3f,_0x521630=_0x4accb1[_0x5115e0(0x2aa)](_0x4e678c);return _0x4de93c[_0x5115e0(0x17b)](_0x521630);}async[_0xa0c3f(0x230)](_0x513edf,_0x237313){const _0x3cfd49=_0xa0c3f,_0x5234fc=_0x4accb1[_0x3cfd49(0x2aa)](_0x513edf);return await _0x4de93c[_0x3cfd49(0x179)][_0x3cfd49(0x254)](_0x5234fc,_0x237313);}async[_0xa0c3f(0x1bb)](_0x393e6b,_0xe22d37){const _0x58f2f5=_0xa0c3f,_0x5c8d93=_0x4accb1[_0x58f2f5(0x2aa)](_0x393e6b);return await _0x4de93c[_0x58f2f5(0x179)][_0x58f2f5(0x25b)](_0x5c8d93,_0xe22d37);}[_0xa0c3f(0x281)](_0x3d3d17,_0xb8f7e4){const _0x57b183=_0xa0c3f,_0x3e3754=_0x4accb1[_0x57b183(0x2aa)](_0x3d3d17);return _0x4de93c['mkdirSync'](_0x3e3754,_0xb8f7e4);}async['fsReadFile'](_0x305879,_0x415242){const _0x1f801b=_0xa0c3f,_0x95218f=_0x4accb1[_0x1f801b(0x2aa)](_0x305879);return await _0x4de93c[_0x1f801b(0x179)][_0x1f801b(0x1ec)](_0x95218f,_0x415242);}async[_0xa0c3f(0x228)](_0x10a145,_0x4f18ca,_0x3deb3c){const _0x44fce6=_0x4accb1['normalize'](_0x10a145);return await _0x4de93c['promises']['writeFile'](_0x44fce6,_0x4f18ca,_0x3deb3c);}async['fsLink'](_0x1a54d9,_0xbb4dff){const _0x5bf1db=_0xa0c3f,_0x599a2f=_0x4accb1[_0x5bf1db(0x2aa)](_0x1a54d9),_0x497651=_0x4accb1[_0x5bf1db(0x2aa)](_0xbb4dff);return await _0x4de93c[_0x5bf1db(0x179)][_0x5bf1db(0x2c7)](_0x599a2f,_0x497651);}async['shutdownAndExit'](_0x29c3b6=0x0){const _0x1d7a85=_0xa0c3f;if(!this['shuttingDown']){this[_0x1d7a85(0x1c2)]=!0x0;try{this[_0x1d7a85(0x17f)]&&await this[_0x1d7a85(0x17f)]['close']();}catch(_0x24e12e){console[_0x1d7a85(0x252)]('Error\x20during\x20shutdown',_0x24e12e);}finally{setTimeout(()=>process[_0x1d7a85(0x1bf)](_0x29c3b6),0xc8);}}}[_0xa0c3f(0x225)](){const _0x573cb5=_0xa0c3f;process['on'](_0x573cb5(0x2cb),()=>{const _0x4c9b2f=_0x573cb5;console[_0x4c9b2f(0x1a5)](_0x4c9b2f(0x20a)),this['shutdownAndExit'](0x0);}),process['on'](_0x573cb5(0x24f),()=>{const _0x234782=_0x573cb5;console[_0x234782(0x1a5)](_0x234782(0x2c9)),this[_0x234782(0x1dd)](0x0);}),process['on'](_0x573cb5(0x1ba),_0x3e6ff5=>{console['log']('beforeExit',_0x3e6ff5);}),process['on'](_0x573cb5(0x1bf),_0x4b4d13=>{const _0x5a566d=_0x573cb5;console[_0x5a566d(0x1a5)]('exit',_0x4b4d13);}),process['on'](_0x573cb5(0x1c4),_0x2dbf82=>{const _0x410120=_0x573cb5;console['error'](_0x410120(0x1c4),_0x2dbf82),this[_0x410120(0x1dd)](0x1);}),process['on'](_0x573cb5(0x1da),_0x52500a=>{const _0x5d138f=_0x573cb5;console[_0x5d138f(0x252)](_0x5d138f(0x1da),_0x52500a),this['shutdownAndExit'](0x1);});}}()[_0xa0c3f(0x259)]()[_0xa0c3f(0x1d2)](),function(_0x562a31){const _0x7a2da3=_0xa0c3f;_0x562a31[_0x7a2da3(0x286)]=_0x7a2da3(0x286),_0x562a31[_0x7a2da3(0x292)]=_0x7a2da3(0x292),_0x562a31['CUSTOM_APIS']='CUSTOM_APIS',_0x562a31[_0x7a2da3(0x1ad)]=_0x7a2da3(0x1ad),_0x562a31[_0x7a2da3(0x186)]='WEB_SOCKET_EVENT';}(_0x4e8d00=_0x48500d['QX']||(_0x48500d['QX']={})),function(_0x580acb){const _0x2f5ca3=_0xa0c3f;_0x580acb[_0x2f5ca3(0x1e1)]=_0x2f5ca3(0x1e1),_0x580acb[_0x2f5ca3(0x1af)]=_0x2f5ca3(0x1af),_0x580acb[_0x2f5ca3(0x1c9)]=_0x2f5ca3(0x1c9),_0x580acb[_0x2f5ca3(0x1f9)]='UNKNOWN',_0x580acb[_0x2f5ca3(0x1ff)]='TOKEN_VALIDATION',_0x580acb[_0x2f5ca3(0x2c2)]=_0x2f5ca3(0x2c2),_0x580acb[_0x2f5ca3(0x271)]='LC_DATA_REQ_RES';}(_0x287e75||(_0x287e75={})),function(_0x1e9f55){const _0xe6280d=_0xa0c3f;_0x1e9f55[_0xe6280d(0x1e9)]=_0xe6280d(0x1e9),_0x1e9f55[_0xe6280d(0x226)]='LC_DATA_MODIFIED_IN_DATABASE',_0x1e9f55['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM']=_0xe6280d(0x218);}(_0x3a66f8||(_0x3a66f8={})),(_0x3d8d8e=_0x48500d['Yl']||(_0x48500d['Yl']={}))['POST']='POST',_0x3d8d8e['PUT']=_0xa0c3f(0x1f1),_0x3d8d8e[_0xa0c3f(0x1c0)]='PUT_REPLACE',_0x3d8d8e[_0xa0c3f(0x240)]='DELETE',_0x3d8d8e[_0xa0c3f(0x26b)]=_0xa0c3f(0x26b),(_0x26e721=_0x48500d['EN']||(_0x48500d['EN']={}))[_0xa0c3f(0x1d1)]=_0xa0c3f(0x1f5),_0x26e721['WebSocketEvents']=_0xa0c3f(0x2c6),_0x26e721[_0xa0c3f(0x181)]='am_db_masters',_0x26e721[_0xa0c3f(0x2c1)]=_0xa0c3f(0x224),_0x26e721[_0xa0c3f(0x202)]='am_instance_api_settings',_0x26e721[_0xa0c3f(0x19a)]='am_instance_api_hooks',_0x26e721['InstanceHooks']=_0xa0c3f(0x177),_0x26e721['DatabaseHooks']=_0xa0c3f(0x262),_0x26e721[_0xa0c3f(0x1d4)]=_0xa0c3f(0x1f8),_0x26e721['Schedulers']='am_schedulers',_0x26e721[_0xa0c3f(0x25c)]=_0xa0c3f(0x1ee),_0x26e721['I18Ns']=_0xa0c3f(0x204),_0x26e721[_0xa0c3f(0x1f4)]=_0xa0c3f(0x199),_0x26e721[_0xa0c3f(0x1c3)]=_0xa0c3f(0x26c),_0x26e721['am_tp_api_settings']=_0xa0c3f(0x20e),_0x26e721['am_tp_installed_apis']='am_tp_installed_apis',_0x26e721['am_tp_api_versions']=_0xa0c3f(0x24c),_0x26e721[_0xa0c3f(0x2bb)]=_0xa0c3f(0x2a5),_0x26e721[_0xa0c3f(0x196)]=_0xa0c3f(0x22a),_0x26e721[_0xa0c3f(0x19d)]=_0xa0c3f(0x18a),_0x26e721['UIMakerUtils']=_0xa0c3f(0x282),_0x26e721[_0xa0c3f(0x1e3)]=_0xa0c3f(0x258),_0x26e721[_0xa0c3f(0x278)]=_0xa0c3f(0x1c6),function(_0x51ff17){const _0x138acd=_0xa0c3f;_0x51ff17['CUSTOM_APIS']=_0x138acd(0x1de),_0x51ff17[_0x138acd(0x1fa)]=_0x138acd(0x18c),_0x51ff17['PROCESS_INITIALIZERS']=_0x138acd(0x2ce),_0x51ff17['EVENTS']=_0x138acd(0x284),_0x51ff17['I18NS']=_0x138acd(0x183),_0x51ff17[_0x138acd(0x1b2)]=_0x138acd(0x2c5),_0x51ff17[_0x138acd(0x2b0)]=_0x138acd(0x274),_0x51ff17['DATABASE_HOOKS']=_0x138acd(0x24e),_0x51ff17[_0x138acd(0x1fd)]=_0x138acd(0x2c0),_0x51ff17['INSTANCE_API_SETTINGS']='Instance\x20API\x20settings',_0x51ff17[_0x138acd(0x2b1)]=_0x138acd(0x26f),_0x51ff17[_0x138acd(0x28b)]=_0x138acd(0x25c),_0x51ff17[_0x138acd(0x285)]='System\x20API\x20hooks',_0x51ff17[_0x138acd(0x1cb)]=_0x138acd(0x18d),_0x51ff17[_0x138acd(0x17e)]=_0x138acd(0x21a),_0x51ff17[_0x138acd(0x292)]=_0x138acd(0x2cd),_0x51ff17[_0x138acd(0x290)]='Third\x20party\x20API\x20settings',_0x51ff17[_0x138acd(0x1d9)]='Utility\x20classes',_0x51ff17[_0x138acd(0x1eb)]=_0x138acd(0x27b),_0x51ff17['DB_MASTERS']=_0x138acd(0x22c),_0x51ff17[_0x138acd(0x1cd)]=_0x138acd(0x246),_0x51ff17[_0x138acd(0x1c7)]=_0x138acd(0x205);}(_0x9fe768=_0x48500d['_6']||(_0x48500d['_6']={}));},0x274:_0x28cc4d=>{const _0x3ae81f=a0_0x5d6f;_0x28cc4d['exports']=require(_0x3ae81f(0x2ae));},0x2f8:_0xfa04f7=>{const _0x1bb550=a0_0x5d6f;_0xfa04f7['exports']=require(_0x1bb550(0x2a9));},0x2a0:_0x59b4d3=>{const _0x58f403=a0_0x5d6f;_0x59b4d3[_0x58f403(0x27d)]=require(_0x58f403(0x276));},0x170:_0x11f367=>{const _0x5828ef=a0_0x5d6f;_0x11f367[_0x5828ef(0x27d)]=require(_0x5828ef(0x2d0));},0x3a:_0x1e1844=>{const _0x3f701b=a0_0x5d6f;_0x1e1844[_0x3f701b(0x27d)]=require('fs');}},_0x472a45={};!function _0x299a40(_0xbc7ec1){const _0x37089a=a0_0x5d6f;var _0x578d2b=_0x472a45[_0xbc7ec1];if(void 0x0!==_0x578d2b)return _0x578d2b[_0x37089a(0x27d)];var _0x41c404=_0x472a45[_0xbc7ec1]={'exports':{}};return _0x4afd5c[_0xbc7ec1](_0x41c404,_0x41c404['exports'],_0x299a40),_0x41c404[_0x37089a(0x27d)];}(0x11f);})()));
1
+ (function(_0x2c7072,_0x7df277){const _0x2ed054=a0_0x48be,_0x226706=_0x2c7072();while(!![]){try{const _0x31c7a1=parseInt(_0x2ed054(0x219))/0x1*(parseInt(_0x2ed054(0x190))/0x2)+parseInt(_0x2ed054(0x1cd))/0x3*(-parseInt(_0x2ed054(0x1a7))/0x4)+parseInt(_0x2ed054(0x161))/0x5*(parseInt(_0x2ed054(0x1fb))/0x6)+-parseInt(_0x2ed054(0x21b))/0x7+-parseInt(_0x2ed054(0x169))/0x8*(parseInt(_0x2ed054(0x18e))/0x9)+parseInt(_0x2ed054(0x1d7))/0xa+parseInt(_0x2ed054(0x191))/0xb*(parseInt(_0x2ed054(0x106))/0xc);if(_0x31c7a1===_0x7df277)break;else _0x226706['push'](_0x226706['shift']());}catch(_0x3dce9c){_0x226706['push'](_0x226706['shift']());}}}(a0_0x35eb,0x9a5da),((()=>{'use strict';var _0x328651={0x11f:(_0x5692e7,_0x47e57c,_0x3f058b)=>{const _0xbe8f9c=a0_0x48be;_0x47e57c['_6']=_0x47e57c['EN']=_0x47e57c['Yl']=_0x47e57c['QX']=void 0x0;const _0x4bb96a=_0x3f058b(0x3a),_0x5fcc63=_0x3f058b(0x2a0),_0x5930c2=_0x3f058b(0x170);var _0x3731f8,_0x13ccf5,_0x210f3b,_0xd1099e,_0x12d374,_0x45dec7;new class{constructor(){const _0x259be2=a0_0x48be;this['EL']=!0x1,this[_0x259be2(0x17d)]=_0x5fcc63[_0x259be2(0x268)](''),this['projectDirectory']='',this['C']={'localClientPath':_0x259be2(0x23c),'src':'src','repo':_0x259be2(0x1e0),'types':'types','amTypes':_0x259be2(0x1bd),'versions':_0x259be2(0x16f),'apis':_0x259be2(0x107),'listeners':_0x259be2(0x19d),'postHooks':_0x259be2(0x1d4),'preHooks':'pre-hooks','dbInterfacesFile':'db-interfaces.d.ts','UtilityClassesReadF':_0x259be2(0x109),'CustomApiReadF':_0x259be2(0x212),'SchedulersReadF':_0x259be2(0x174),'WebSocketEventsReadF':_0x259be2(0x25f),'SchemaReadF':_0x259be2(0x112),'DBMigrationsReadF':_0x259be2(0x19e),'ProcessInitializersReadF':_0x259be2(0x11b),'ProcessI18NReadF':_0x259be2(0x246),'DBMastersReadF':_0x259be2(0x1a8),'DBMasterStylesReadF':_0x259be2(0x1ed),'DBMasterUtilsReadF':_0x259be2(0x1e7),'TestCasesReadF':_0x259be2(0x113),'ThirdPartyApiReadF':'Third\x20party\x20APIs','EventsReadF':_0x259be2(0x1cc),'InstanceApiHooksReadF':'Instance\x20API\x20hooks','SystemApiHooksReadF':_0x259be2(0x181),'CollectionHooksReadF':_0x259be2(0x24c),'DatabaseHooksReadF':_0x259be2(0x237),'InstanceHooksReadF':_0x259be2(0x1c4),'CustomApisWriteF':'custom-apis','SchedulersWriteF':'schedulers','WebSocketEventsWriteF':'web-socket-events','SchemaWriteF':_0x259be2(0x247),'DBMigrationsWriteF':_0x259be2(0x15b),'ProcessInitializersWriteF':_0x259be2(0x240),'ProcessI18NWriteF':_0x259be2(0x246),'DBMastersWriteF':_0x259be2(0x18b),'DBMasterStylesWriteF':_0x259be2(0x1e3),'DBMasterUtilsWriteF':_0x259be2(0x163),'TestCasesWriteF':_0x259be2(0x13d),'ThirdPartyApiWriteF':_0x259be2(0x232),'EventsWriteF':_0x259be2(0x241),'InstanceApiHooksWriteF':'instance-api-hooks','SystemApiHooksWriteF':_0x259be2(0x12a),'CollectionHooksWriteF':_0x259be2(0x1ce),'DatabaseHooksWriteF':_0x259be2(0x166),'InstanceHooksWriteF':'instance-hooks'},this[_0x259be2(0x187)]=!0x1,this[_0x259be2(0x1c0)]={},this['nodeModulesInstalled']=!0x1,this['orangeStart']='\x1b[38;2;255;165;0m',this['cyanStart']=_0x259be2(0x110),this[_0x259be2(0x121)]='\x1b[0m',this[_0x259be2(0x258)]=!0x1,this[_0x259be2(0x1fc)]=this[_0x259be2(0x132)](this[_0x259be2(0x225)],0x1f4);}async['start'](){const _0x5ee133=a0_0x48be;this[_0x5ee133(0x261)](),this[_0x5ee133(0x126)](),this[_0x5ee133(0x248)](this['C'][_0x5ee133(0x25c)]+_0x5ee133(0x182))||(this[_0x5ee133(0x120)](),this[_0x5ee133(0x265)](0x1)[_0x5ee133(0x145)]()),this[_0x5ee133(0x267)]=require(this['C'][_0x5ee133(0x25c)])(),await this['printNotes'](),this['removeEmptyDirsSync'](_0x5fcc63[_0x5ee133(0x205)](this[_0x5ee133(0x17d)],this['C'][_0x5ee133(0x251)])),await this[_0x5ee133(0x264)](),await this[_0x5ee133(0x199)]();}[_0xbe8f9c(0x126)](){const _0x264594=_0xbe8f9c,_0x6b7ec0=process[_0x264594(0x1f1)];parseInt(_0x6b7ec0['split']('.')[0x0][_0x264594(0x195)]('v',''),0xa)<0x16&&(console['error'](this[_0x264594(0x214)]+_0x264594(0x184)+_0x6b7ec0+this['colorEnd']),this[_0x264594(0x265)](0x1)[_0x264594(0x145)]());}async[_0xbe8f9c(0x18f)](){const _0x5917e3=_0xbe8f9c;console[_0x5917e3(0x1b2)](this[_0x5917e3(0x214)]),console[_0x5917e3(0x1b2)](_0x5917e3(0x151)),console['log'](_0x5917e3(0x11c)),console[_0x5917e3(0x1b2)](_0x5917e3(0x1af)+this[_0x5917e3(0x17d)]),console[_0x5917e3(0x1b2)](_0x5917e3(0x158)),console['log'](this[_0x5917e3(0x121)]),console[_0x5917e3(0x1b2)]('');}[_0xbe8f9c(0x120)](){const _0xb9e36f=_0xbe8f9c;console['log'](_0xb9e36f(0x125)),console['log'](_0xb9e36f(0x250)+this['C'][_0xb9e36f(0x25c)]+'.js'),console[_0xb9e36f(0x1b2)](_0xb9e36f(0x129)),console['log']('');}async[_0xbe8f9c(0x264)](){const _0x412d68=_0xbe8f9c,_0x48127d=_0x5fcc63['basename'](this[_0x412d68(0x17d)]),_0x4efda4=_0x5fcc63[_0x412d68(0x205)](this['appRoot'],'..',_0x48127d+_0x412d68(0x216));this['projectDirectory']=_0x4efda4,_0x4bb96a[_0x412d68(0x266)](_0x4efda4,{'recursive':!0x0,'force':!0x0}),await this['fsMkDir'](_0x4efda4,{'recursive':!0x0});}async[_0xbe8f9c(0x170)](_0x433aff){const _0x2abd88=_0xbe8f9c;await this['createLCProjectDirectory'](),this[_0x2abd88(0x245)](_0x5fcc63[_0x2abd88(0x205)](this[_0x2abd88(0x1f0)],this['C']['src']),{'recursive':!0x0}),_0x4bb96a[_0x2abd88(0x1fe)](_0x5fcc63[_0x2abd88(0x205)](this[_0x2abd88(0x17d)],_0x2abd88(0x154)),_0x5fcc63[_0x2abd88(0x205)](this[_0x2abd88(0x1f0)],'package.json')),_0x4bb96a[_0x2abd88(0x1fe)](_0x5fcc63[_0x2abd88(0x205)](this[_0x2abd88(0x17d)],_0x2abd88(0x21d)),_0x5fcc63[_0x2abd88(0x205)](this[_0x2abd88(0x1f0)],_0x2abd88(0x21d)));const _0x5b2188=_0x5fcc63[_0x2abd88(0x205)](this['appRoot'],'tsconfig.json'),_0x5a8ede=JSON[_0x2abd88(0x177)](await this[_0x2abd88(0x217)](_0x5b2188,{'encoding':_0x2abd88(0x1a2)}));_0x5a8ede[_0x2abd88(0x1ca)][_0x2abd88(0x236)]=_0x2abd88(0x159),_0x5a8ede[_0x2abd88(0x1ca)][_0x2abd88(0x1e2)]['*']['push']('*'),await this['fsWriteFile'](_0x5fcc63[_0x2abd88(0x205)](this['projectDirectory'],'tsconfig.json'),JSON[_0x2abd88(0x22f)](_0x5a8ede,null,0x4),{'encoding':'utf8'}),await _0x4bb96a[_0x2abd88(0x128)]['cp'](_0x5fcc63[_0x2abd88(0x205)](this[_0x2abd88(0x17d)],this['C'][_0x2abd88(0x147)]),_0x5fcc63[_0x2abd88(0x205)](this['projectDirectory'],this['C'][_0x2abd88(0x251)],this['C'][_0x2abd88(0x147)]),{'recursive':!0x0}),await _0x4bb96a[_0x2abd88(0x128)]['cp'](_0x5fcc63[_0x2abd88(0x205)](this['appRoot'],this['C'][_0x2abd88(0x251)],this[_0x2abd88(0x267)]['adminUserPath'],this['C'][_0x2abd88(0x17c)],this['C'][_0x2abd88(0x234)]),_0x5fcc63[_0x2abd88(0x205)](this[_0x2abd88(0x1f0)],this['C'][_0x2abd88(0x251)],this['C'][_0x2abd88(0x147)],this['C'][_0x2abd88(0x234)]),{'recursive':!0x0}),await this['copyUtilityClassesToAnotherDir'](),await this[_0x2abd88(0x1df)](),await this[_0x2abd88(0x13e)](),await this['copySchemasToAnotherDir'](),await this['copyDBMigrationsToAnotherDir'](),await this['copyProcessInitializersToAnotherDir'](),await this[_0x2abd88(0x204)](),await this[_0x2abd88(0x13a)](),await this[_0x2abd88(0x1b1)](),await this[_0x2abd88(0x21e)](),await this[_0x2abd88(0x1f2)](),await this[_0x2abd88(0x20c)](),await this[_0x2abd88(0x19f)](),await this[_0x2abd88(0x1c7)](),await this[_0x2abd88(0x222)](),await this[_0x2abd88(0x25a)](),await this[_0x2abd88(0x155)](),await this['copyDBMasterStylesToAnotherDir'](),await this[_0x2abd88(0x1a4)](),_0x433aff&&(console['log'](_0x2abd88(0x206)),await this[_0x2abd88(0x14f)](_0x2abd88(0x1b4),[_0x2abd88(0x23d),_0x2abd88(0x18c)]),console['log']('✅\x20node_modules\x20installed'));try{_0x4bb96a[_0x2abd88(0x131)](_0x5fcc63['join'](this[_0x2abd88(0x17d)],_0x2abd88(0x21f)),_0x5fcc63['join'](this['projectDirectory'],_0x2abd88(0x21f)),_0x2abd88(0x223));}catch(_0x1a1b69){console['log']('Please\x20run\x20using\x20administrator\x20privileges.'),console[_0x2abd88(0x1b2)](_0x1a1b69),await this['shutdownAndExit'](0x1);}}async[_0xbe8f9c(0x15e)](){const _0x12cffb=_0xbe8f9c;console[_0x12cffb(0x1b2)](_0x12cffb(0x22d));try{_0x4bb96a[_0x12cffb(0x164)](_0x5fcc63['join'](this['appRoot'],_0x12cffb(0x220)));}catch(_0x2bb351){}await this['executeNpmRun']('npm',[_0x12cffb(0x23d),'--no-save',_0x12cffb(0x18a),'js-yaml@4.1.0']),console[_0x12cffb(0x1b2)](_0x12cffb(0x10d));}async[_0xbe8f9c(0x14a)](){const _0x4ff44d=_0xbe8f9c,_0x211c8e=this['C']['UtilityClassesReadF'],_0x49785a=_0x5fcc63[_0x4ff44d(0x205)](this[_0x4ff44d(0x17d)],this['C'][_0x4ff44d(0x251)],this[_0x4ff44d(0x267)][_0x4ff44d(0x1f5)],_0x211c8e),_0x4b75ad=await this['readDirCustom'](_0x49785a,null);for(const _0x3629a5 of _0x4b75ad){const _0x5b551d=_0x5fcc63[_0x4ff44d(0x205)](_0x49785a,_0x3629a5,_0x3629a5+_0x4ff44d(0x127));if(!this[_0x4ff44d(0x248)](_0x5b551d))continue;const _0x4491f6=await this[_0x4ff44d(0x217)](_0x5b551d,{'encoding':_0x4ff44d(0x1a2)}),_0xfa6205=await this[_0x4ff44d(0x260)](_0x4491f6);for(const _0x6f3b1e of _0xfa6205['versions']||[])if(!0x0===_0x6f3b1e[_0x4ff44d(0x22a)]){const _0x154921=_0x5fcc63[_0x4ff44d(0x205)](_0x49785a,_0x3629a5,this['C'][_0x4ff44d(0x16f)],_0x6f3b1e[_0x4ff44d(0x1f1)],_0x6f3b1e[_0x4ff44d(0x255)]+_0x4ff44d(0x12c)),_0x474465=_0x5fcc63[_0x4ff44d(0x205)](this[_0x4ff44d(0x1f0)],this['C']['src'],_0xfa6205[_0x4ff44d(0x1be)],_0xfa6205['name']+'.ts');await this['fsMkDir'](_0x5fcc63[_0x4ff44d(0x1cf)](_0x474465),{'recursive':!0x0}),await this[_0x4ff44d(0x211)](_0x154921,_0x474465);}}}async['copyCustomApisToAnotherDir'](){const _0xc4b627=_0xbe8f9c,_0x301deb=this['C'][_0xc4b627(0x25d)],_0x363566=this['C'][_0xc4b627(0x24b)],_0x981c80=_0x5fcc63[_0xc4b627(0x205)](this[_0xc4b627(0x17d)],this['C']['src'],this[_0xc4b627(0x267)]['adminUserPath'],_0x301deb),_0x1780a4=await this[_0xc4b627(0x1dc)](_0x981c80,null);for(const _0x190457 of _0x1780a4){const _0x10b812=_0x5fcc63[_0xc4b627(0x205)](_0x981c80,_0x190457,_0x190457+_0xc4b627(0x127));if(!this[_0xc4b627(0x248)](_0x10b812))continue;const _0x28cf53=await this[_0xc4b627(0x217)](_0x10b812,{'encoding':_0xc4b627(0x1a2)}),_0x4ad353=await this[_0xc4b627(0x260)](_0x28cf53);for(const _0x122b3b of _0x4ad353['versions']||[])if(!0x0===_0x122b3b[_0xc4b627(0x22a)]){const _0x16478a=_0x5fcc63['join'](_0x981c80,_0x190457,this['C'][_0xc4b627(0x16f)],_0x122b3b[_0xc4b627(0x1f1)]),_0x3c0177=_0x5fcc63[_0xc4b627(0x205)](_0x16478a,_0x122b3b['name']+'.ts'),_0x4df254=_0x5fcc63['join'](this[_0xc4b627(0x1f0)],this['C'][_0xc4b627(0x251)],_0x363566,_0x4ad353[_0xc4b627(0x173)],_0x4ad353[_0xc4b627(0x255)]+'.ts');await this['fsMkDir'](_0x5fcc63[_0xc4b627(0x1cf)](_0x4df254),{'recursive':!0x0}),await this[_0xc4b627(0x211)](_0x3c0177,_0x4df254);const _0x2f3a14=_0x5fcc63['join'](_0x981c80,_0x190457,_0x190457+_0xc4b627(0x233)),_0x55ea22=_0x5fcc63['join'](this[_0xc4b627(0x1f0)],this['C'][_0xc4b627(0x251)],_0x363566,_0x4ad353['path'],_0x4ad353[_0xc4b627(0x255)]+_0xc4b627(0x233));await this[_0xc4b627(0x211)](_0x2f3a14,_0x55ea22);for(const _0xef36da of _0x122b3b[_0xc4b627(0x104)]){const _0x5726c1=_0x5fcc63[_0xc4b627(0x205)](_0x16478a,this['C'][_0xc4b627(0x104)],_0xef36da['name']+'.ts'),_0x61fac0=_0x5fcc63[_0xc4b627(0x205)](this[_0xc4b627(0x1f0)],this['C']['src'],_0x363566,_0x4ad353[_0xc4b627(0x173)],this['C'][_0xc4b627(0x104)],_0xef36da[_0xc4b627(0x255)]+_0xc4b627(0x12c));await this[_0xc4b627(0x249)](_0x5fcc63['dirname'](_0x61fac0),{'recursive':!0x0}),await this[_0xc4b627(0x211)](_0x5726c1,_0x61fac0);}for(const _0x341d34 of _0x122b3b['postHooks']){const _0x4b0887=_0x5fcc63['join'](_0x16478a,this['C'][_0xc4b627(0x1ea)],_0x341d34[_0xc4b627(0x255)]+'.ts'),_0x3d0d1f=_0x5fcc63[_0xc4b627(0x205)](this[_0xc4b627(0x1f0)],this['C']['src'],_0x363566,_0x4ad353['path'],this['C'][_0xc4b627(0x1ea)],_0x341d34[_0xc4b627(0x255)]+_0xc4b627(0x12c));await this['fsMkDir'](_0x5fcc63[_0xc4b627(0x1cf)](_0x3d0d1f),{'recursive':!0x0}),await this[_0xc4b627(0x211)](_0x4b0887,_0x3d0d1f);}}}}async['copySchedulersToAnotherDir'](){const _0x14478f=_0xbe8f9c,_0x374da8=this['C'][_0x14478f(0x22c)],_0x523ed1=this['C'][_0x14478f(0x143)],_0x26c155=_0x5fcc63[_0x14478f(0x205)](this[_0x14478f(0x17d)],this['C'][_0x14478f(0x251)],this[_0x14478f(0x267)][_0x14478f(0x1f5)],_0x374da8),_0x3b7a24=await this[_0x14478f(0x1dc)](_0x26c155,null);for(const _0x35ff88 of _0x3b7a24){const _0xeb5330=_0x5fcc63['join'](_0x26c155,_0x35ff88,_0x35ff88+_0x14478f(0x127));if(!this[_0x14478f(0x248)](_0xeb5330))continue;const _0x54c539=await this['fsReadFile'](_0xeb5330,{'encoding':_0x14478f(0x1a2)}),_0x267b5b=await this['parseYaml'](_0x54c539);for(const _0x3747ae of _0x267b5b['versions']||[])if(!0x0===_0x3747ae[_0x14478f(0x22a)]){const _0x324021=_0x5fcc63[_0x14478f(0x205)](_0x26c155,_0x35ff88,this['C'][_0x14478f(0x16f)],_0x3747ae['version'],_0x3747ae[_0x14478f(0x255)]+_0x14478f(0x12c)),_0x192582=_0x5fcc63[_0x14478f(0x205)](this[_0x14478f(0x1f0)],this['C'][_0x14478f(0x251)],_0x523ed1,_0x267b5b[_0x14478f(0x255)]+_0x14478f(0x12c));await this[_0x14478f(0x249)](_0x5fcc63[_0x14478f(0x1cf)](_0x192582),{'recursive':!0x0}),await this[_0x14478f(0x211)](_0x324021,_0x192582);}}}async['copySchemasToAnotherDir'](){const _0x1b0c0a=_0xbe8f9c,_0x896ea3=this['C'][_0x1b0c0a(0x10a)],_0x4cb31f=this['C'][_0x1b0c0a(0x1ad)],_0x475ade=_0x5fcc63[_0x1b0c0a(0x205)](this[_0x1b0c0a(0x17d)],this['C'][_0x1b0c0a(0x251)],this[_0x1b0c0a(0x267)][_0x1b0c0a(0x1f5)],_0x896ea3),_0xb2b22b=await this[_0x1b0c0a(0x1dc)](_0x475ade,null);for(const _0x1c74f1 of _0xb2b22b){const _0x54bc4d=_0x5fcc63['join'](_0x475ade,_0x1c74f1,_0x1c74f1+_0x1b0c0a(0x127));if(!this[_0x1b0c0a(0x248)](_0x54bc4d))continue;const _0x20456b=await this[_0x1b0c0a(0x217)](_0x54bc4d,{'encoding':_0x1b0c0a(0x1a2)}),_0x141698=await this[_0x1b0c0a(0x260)](_0x20456b),_0x2159eb=_0x5fcc63[_0x1b0c0a(0x205)](this[_0x1b0c0a(0x1f0)],this['C']['src'],_0x4cb31f,_0x141698[_0x1b0c0a(0x140)],_0x141698[_0x1b0c0a(0x168)]);await this[_0x1b0c0a(0x249)](_0x2159eb,{'recursive':!0x0});const _0x718ee9=_0x5fcc63[_0x1b0c0a(0x205)](_0x475ade,_0x1c74f1,_0x141698[_0x1b0c0a(0x1c5)]+'.config.ts'),_0x48067e=_0x5fcc63[_0x1b0c0a(0x205)](_0x2159eb,_0x141698[_0x1b0c0a(0x1c5)]+_0x1b0c0a(0x233));await this[_0x1b0c0a(0x211)](_0x718ee9,_0x48067e);}}async[_0xbe8f9c(0x144)](){const _0x5b743d=_0xbe8f9c,_0x5d1558=this['C'][_0x5b743d(0x133)],_0x504c39=this['C'][_0x5b743d(0x122)],_0x1699ad=_0x5fcc63[_0x5b743d(0x205)](this[_0x5b743d(0x17d)],this['C']['src'],this['config'][_0x5b743d(0x1f5)],_0x5d1558),_0x108beb=await this['readDirCustom'](_0x1699ad,null);for(const _0x42a450 of _0x108beb){const _0x354b35=_0x5fcc63['join'](_0x1699ad,_0x42a450,_0x42a450+_0x5b743d(0x127));if(!this['fsExistsSync'](_0x354b35))continue;const _0x2377d5=await this['fsReadFile'](_0x354b35,{'encoding':_0x5b743d(0x1a2)}),_0x3afbbf=await this[_0x5b743d(0x260)](_0x2377d5),_0x4c5ce1=_0x5fcc63[_0x5b743d(0x205)](this[_0x5b743d(0x1f0)],this['C'][_0x5b743d(0x251)],_0x504c39);await this[_0x5b743d(0x249)](_0x4c5ce1,{'recursive':!0x0});const _0x5d4cbd=_0x5fcc63[_0x5b743d(0x205)](_0x1699ad,_0x42a450,_0x3afbbf['name']+'.ts'),_0x536bb4=_0x5fcc63[_0x5b743d(0x205)](_0x4c5ce1,_0x3afbbf['name']+_0x5b743d(0x12c));await this[_0x5b743d(0x211)](_0x5d4cbd,_0x536bb4);}}async[_0xbe8f9c(0x1f7)](){const _0x2c5cf9=_0xbe8f9c,_0x51e905=this['C'][_0x2c5cf9(0x226)],_0x1c7e09=this['C'][_0x2c5cf9(0x1b5)],_0x3498c7=_0x5fcc63['join'](this[_0x2c5cf9(0x17d)],this['C'][_0x2c5cf9(0x251)],this[_0x2c5cf9(0x267)][_0x2c5cf9(0x1f5)],_0x51e905),_0x59c020=await this[_0x2c5cf9(0x1dc)](_0x3498c7,null);for(const _0x322744 of _0x59c020){const _0x3a6254=_0x5fcc63['join'](_0x3498c7,_0x322744,_0x322744+_0x2c5cf9(0x127));if(!this['fsExistsSync'](_0x3a6254))continue;const _0x273008=await this[_0x2c5cf9(0x217)](_0x3a6254,{'encoding':_0x2c5cf9(0x1a2)}),_0x3359c7=await this[_0x2c5cf9(0x260)](_0x273008),_0x2c1694=_0x5fcc63[_0x2c5cf9(0x205)](this[_0x2c5cf9(0x1f0)],this['C'][_0x2c5cf9(0x251)],_0x1c7e09);await this[_0x2c5cf9(0x249)](_0x2c1694,{'recursive':!0x0});const _0x4dce28=_0x5fcc63[_0x2c5cf9(0x205)](_0x3498c7,_0x322744,_0x3359c7['name']+_0x2c5cf9(0x12c)),_0x274e48=_0x5fcc63[_0x2c5cf9(0x205)](_0x2c1694,_0x3359c7[_0x2c5cf9(0x255)]+'.ts');await this['fsLink'](_0x4dce28,_0x274e48);}}async['copyI18NToAnotherDir'](){const _0x26522e=_0xbe8f9c,_0x59883f=this['C'][_0x26522e(0x149)],_0x198a65=this['C'][_0x26522e(0x15c)],_0x395a54=_0x5fcc63['join'](this[_0x26522e(0x17d)],this['C'][_0x26522e(0x251)],this[_0x26522e(0x267)]['adminUserPath'],_0x59883f),_0x603f7f=await this[_0x26522e(0x1dc)](_0x395a54,null);for(const _0x4adc88 of _0x603f7f){const _0x17a164=_0x5fcc63[_0x26522e(0x205)](_0x395a54,_0x4adc88,_0x4adc88+_0x26522e(0x127));if(!this[_0x26522e(0x248)](_0x17a164))continue;const _0x1b609d=await this[_0x26522e(0x217)](_0x17a164,{'encoding':_0x26522e(0x1a2)}),_0x359e4d=await this[_0x26522e(0x260)](_0x1b609d),_0x10e4b5=_0x5fcc63['join'](this['projectDirectory'],this['C'][_0x26522e(0x251)],_0x198a65);await this[_0x26522e(0x249)](_0x10e4b5,{'recursive':!0x0});const _0x407fa6=_0x5fcc63[_0x26522e(0x205)](_0x395a54,_0x4adc88,_0x359e4d[_0x26522e(0x255)]+_0x26522e(0x12c)),_0x8305de=_0x5fcc63[_0x26522e(0x205)](_0x10e4b5,_0x359e4d[_0x26522e(0x255)]+_0x26522e(0x12c));await this[_0x26522e(0x211)](_0x407fa6,_0x8305de);}}async[_0xbe8f9c(0x155)](){const _0x5c610d=_0xbe8f9c,_0x3840ce=this['C']['DBMastersReadF'],_0x326bbc=this['C']['DBMastersWriteF'],_0x3f850f=_0x5fcc63[_0x5c610d(0x205)](this[_0x5c610d(0x17d)],this['C'][_0x5c610d(0x251)],this['config'][_0x5c610d(0x1f5)],_0x3840ce),_0xaaba62=await this[_0x5c610d(0x1dc)](_0x3f850f,null);for(const _0x374fb2 of _0xaaba62){const _0x5dce9b=_0x5fcc63[_0x5c610d(0x205)](_0x3f850f,_0x374fb2,_0x374fb2+_0x5c610d(0x127));if(!this['fsExistsSync'](_0x5dce9b))continue;const _0x2d9481=await this[_0x5c610d(0x217)](_0x5dce9b,{'encoding':_0x5c610d(0x1a2)}),_0x34b5a7=await this[_0x5c610d(0x260)](_0x2d9481),_0x2b216b=_0x5fcc63[_0x5c610d(0x205)](this[_0x5c610d(0x1f0)],this['C'][_0x5c610d(0x251)],_0x326bbc,_0x34b5a7['name']);await this[_0x5c610d(0x249)](_0x2b216b,{'recursive':!0x0});const _0x2be222=_0x5fcc63[_0x5c610d(0x205)](_0x3f850f,_0x374fb2,_0x34b5a7[_0x5c610d(0x255)]+_0x5c610d(0x12c)),_0x3baa2c=_0x5fcc63[_0x5c610d(0x205)](_0x2b216b,_0x34b5a7[_0x5c610d(0x255)]+_0x5c610d(0x12c));await this['fsLink'](_0x2be222,_0x3baa2c);const _0x41e7b9=_0x5fcc63[_0x5c610d(0x205)](_0x3f850f,_0x374fb2,_0x34b5a7['name']+_0x5c610d(0x233)),_0x41a714=_0x5fcc63['join'](_0x2b216b,_0x34b5a7[_0x5c610d(0x255)]+_0x5c610d(0x233));await this[_0x5c610d(0x211)](_0x41e7b9,_0x41a714);}}async[_0xbe8f9c(0x152)](){const _0x4e5513=_0xbe8f9c,_0x52453e=this['C'][_0x4e5513(0x116)],_0x377c80=this['C'][_0x4e5513(0x208)],_0x24d4cc=_0x5fcc63[_0x4e5513(0x205)](this[_0x4e5513(0x17d)],this['C']['src'],this[_0x4e5513(0x267)][_0x4e5513(0x1f5)],_0x52453e),_0x12a210=await this[_0x4e5513(0x1dc)](_0x24d4cc,null);for(const _0x441730 of _0x12a210){const _0x28921a=_0x5fcc63[_0x4e5513(0x205)](_0x24d4cc,_0x441730,_0x441730+_0x4e5513(0x127));if(!this[_0x4e5513(0x248)](_0x28921a))continue;const _0xb44b6d=await this[_0x4e5513(0x217)](_0x28921a,{'encoding':_0x4e5513(0x1a2)}),_0x2eb481=await this[_0x4e5513(0x260)](_0xb44b6d),_0x5565dc=_0x5fcc63['join'](this[_0x4e5513(0x1f0)],this['C'][_0x4e5513(0x251)],_0x377c80);await this[_0x4e5513(0x249)](_0x5565dc,{'recursive':!0x0});const _0x4b11b6=_0x5fcc63[_0x4e5513(0x205)](_0x24d4cc,_0x441730,_0x2eb481[_0x4e5513(0x255)]+_0x4e5513(0x201)),_0x5f2181=_0x5fcc63['join'](_0x5565dc,_0x2eb481[_0x4e5513(0x255)]+_0x4e5513(0x201));await this['fsLink'](_0x4b11b6,_0x5f2181);}}async[_0xbe8f9c(0x1a4)](){const _0x493d9b=_0xbe8f9c,_0x2c6abc=this['C']['DBMasterUtilsReadF'],_0x4ce748=this['C'][_0x493d9b(0x209)],_0x46bf5a=_0x5fcc63[_0x493d9b(0x205)](this[_0x493d9b(0x17d)],this['C']['src'],this['config'][_0x493d9b(0x1f5)],_0x2c6abc),_0x282c6e=await this['readDirCustom'](_0x46bf5a,null);for(const _0x2f584e of _0x282c6e){const _0x1aaa70=_0x5fcc63['join'](_0x46bf5a,_0x2f584e,_0x2f584e+_0x493d9b(0x127));if(!this[_0x493d9b(0x248)](_0x1aaa70))continue;const _0x2b6dfb=await this[_0x493d9b(0x217)](_0x1aaa70,{'encoding':_0x493d9b(0x1a2)}),_0x5d4646=await this[_0x493d9b(0x260)](_0x2b6dfb),_0x59aba2=_0x5fcc63['join'](this[_0x493d9b(0x1f0)],this['C']['src'],_0x4ce748);await this[_0x493d9b(0x249)](_0x59aba2,{'recursive':!0x0});const _0x2d965d=_0x5fcc63['join'](_0x46bf5a,_0x2f584e,_0x5d4646[_0x493d9b(0x255)]+'.ts'),_0x375cd9=_0x5fcc63[_0x493d9b(0x205)](_0x59aba2,_0x5d4646[_0x493d9b(0x255)]+_0x493d9b(0x12c));await this[_0x493d9b(0x211)](_0x2d965d,_0x375cd9);}}async[_0xbe8f9c(0x13a)](){const _0x6ee6c6=_0xbe8f9c,_0x44f4fb=this['C'][_0x6ee6c6(0x12d)],_0x134047=this['C'][_0x6ee6c6(0x1d2)],_0x222f0f=_0x5fcc63[_0x6ee6c6(0x205)](this['appRoot'],this['C'][_0x6ee6c6(0x251)],this[_0x6ee6c6(0x267)][_0x6ee6c6(0x1f5)],_0x44f4fb),_0x5d8647=await this['readDirCustom'](_0x222f0f,null);for(const _0x137aa8 of _0x5d8647){const _0x2443da=_0x5fcc63[_0x6ee6c6(0x205)](_0x222f0f,_0x137aa8,_0x137aa8+_0x6ee6c6(0x127));if(!this[_0x6ee6c6(0x248)](_0x2443da))continue;const _0x362259=await this['fsReadFile'](_0x2443da,{'encoding':'utf8'}),_0x3687c2=await this[_0x6ee6c6(0x260)](_0x362259),_0x280fb9=_0x5fcc63['join'](this['projectDirectory'],this['C'][_0x6ee6c6(0x251)],_0x134047);await this[_0x6ee6c6(0x249)](_0x280fb9,{'recursive':!0x0});const _0x546f81=_0x5fcc63[_0x6ee6c6(0x205)](_0x222f0f,_0x137aa8,_0x3687c2[_0x6ee6c6(0x255)]+_0x6ee6c6(0x12c)),_0x557568=_0x5fcc63[_0x6ee6c6(0x205)](_0x280fb9,_0x3687c2[_0x6ee6c6(0x255)]+'.ts');await this[_0x6ee6c6(0x211)](_0x546f81,_0x557568);}}async['copyThirdPartyApisToAnotherDir'](){const _0x997551=_0xbe8f9c,_0x450485=this['C'][_0x997551(0x20e)],_0x239081=this['C'][_0x997551(0x221)],_0x2ea6c2=_0x5fcc63[_0x997551(0x205)](this[_0x997551(0x17d)],this['C'][_0x997551(0x251)],this[_0x997551(0x267)][_0x997551(0x1f5)],_0x450485);if(!this['fsExistsSync'](_0x2ea6c2))return;const _0x206a8d=await this[_0x997551(0x1dc)](_0x2ea6c2,null);for(const _0x45d393 of _0x206a8d){const _0x2a52bd=_0x5fcc63[_0x997551(0x205)](_0x2ea6c2,_0x45d393,this['C'][_0x997551(0x107)]),_0x59fc1c=await this[_0x997551(0x1dc)](_0x2a52bd,null);for(const _0x21c501 of _0x59fc1c){const _0xa217cb=_0x5fcc63[_0x997551(0x205)](_0x2a52bd,_0x21c501,_0x21c501+_0x997551(0x127));if(!this[_0x997551(0x248)](_0xa217cb))continue;const _0x22b930=await this[_0x997551(0x217)](_0xa217cb,{'encoding':_0x997551(0x1a2)}),_0x37a8de=await this['parseYaml'](_0x22b930);for(const _0x548bc6 of _0x37a8de[_0x997551(0x16f)]||[])if(!0x0===_0x548bc6[_0x997551(0x22a)]){const _0x2d67c1=_0x5fcc63['join'](_0x2a52bd,_0x21c501,this['C'][_0x997551(0x16f)],_0x548bc6['version']),_0x548526=_0x5fcc63['join'](_0x2d67c1,_0x548bc6['name']+_0x997551(0x12c)),_0x3f51e6=_0x5fcc63[_0x997551(0x205)](this['projectDirectory'],this['C']['src'],_0x239081,_0x45d393,_0x37a8de[_0x997551(0x173)],_0x37a8de[_0x997551(0x255)]+'.ts');await this[_0x997551(0x249)](_0x5fcc63[_0x997551(0x1cf)](_0x3f51e6),{'recursive':!0x0}),await this[_0x997551(0x211)](_0x548526,_0x3f51e6);const _0x2c132c=_0x5fcc63[_0x997551(0x205)](_0x2a52bd,_0x21c501,_0x21c501+_0x997551(0x233)),_0x1e0d37=_0x5fcc63[_0x997551(0x205)](this['projectDirectory'],this['C'][_0x997551(0x251)],_0x239081,_0x45d393,_0x37a8de['path'],_0x37a8de[_0x997551(0x255)]+_0x997551(0x233));await this[_0x997551(0x211)](_0x2c132c,_0x1e0d37);for(const _0x32ac7b of _0x548bc6[_0x997551(0x104)]){const _0x1c82dd=_0x5fcc63[_0x997551(0x205)](_0x2d67c1,this['C']['preHooks'],_0x32ac7b[_0x997551(0x255)]+_0x997551(0x12c)),_0x3df65d=_0x5fcc63[_0x997551(0x205)](this[_0x997551(0x1f0)],this['C'][_0x997551(0x251)],_0x239081,_0x45d393,_0x37a8de[_0x997551(0x173)],this['C']['preHooks'],_0x32ac7b[_0x997551(0x255)]+_0x997551(0x12c));await this[_0x997551(0x249)](_0x5fcc63[_0x997551(0x1cf)](_0x3df65d),{'recursive':!0x0}),await this[_0x997551(0x211)](_0x1c82dd,_0x3df65d);}for(const _0x4f4a10 of _0x548bc6['postHooks']){const _0x105096=_0x5fcc63[_0x997551(0x205)](_0x2d67c1,this['C'][_0x997551(0x1ea)],_0x4f4a10[_0x997551(0x255)]+_0x997551(0x12c)),_0x2b5267=_0x5fcc63['join'](this[_0x997551(0x1f0)],this['C']['src'],_0x239081,_0x45d393,_0x37a8de[_0x997551(0x173)],this['C'][_0x997551(0x1ea)],_0x4f4a10[_0x997551(0x255)]+_0x997551(0x12c));await this[_0x997551(0x249)](_0x5fcc63[_0x997551(0x1cf)](_0x2b5267),{'recursive':!0x0}),await this[_0x997551(0x211)](_0x105096,_0x2b5267);}}}}}async[_0xbe8f9c(0x21e)](){const _0x56c82d=_0xbe8f9c,_0x416661=this['C'][_0x56c82d(0x24d)],_0x5241c0=this['C'][_0x56c82d(0x256)],_0x1d42d2=_0x5fcc63[_0x56c82d(0x205)](this[_0x56c82d(0x17d)],this['C'][_0x56c82d(0x251)],this['config']['adminUserPath'],_0x416661),_0xdb7e1a=await this[_0x56c82d(0x1dc)](_0x1d42d2,null);for(const _0x4dc047 of _0xdb7e1a){const _0x4b404e=_0x5fcc63[_0x56c82d(0x205)](_0x1d42d2,_0x4dc047,_0x4dc047+_0x56c82d(0x127));if(!this[_0x56c82d(0x248)](_0x4b404e))continue;const _0x5047ff=await this[_0x56c82d(0x217)](_0x4b404e,{'encoding':_0x56c82d(0x1a2)}),_0x493b8d=await this[_0x56c82d(0x260)](_0x5047ff),_0x2450e0=_0x5fcc63['join'](_0x1d42d2,_0x4dc047,this['C']['listeners']);for(const _0xa5f38b of _0x493b8d['eventListeners'])for(const _0x42ed02 of _0xa5f38b['versions']||[])if(!0x0===_0x42ed02['isActive']){const _0x31c185=_0x5fcc63[_0x56c82d(0x205)](_0x2450e0,_0xa5f38b['name'],this['C'][_0x56c82d(0x16f)],_0x42ed02[_0x56c82d(0x1f1)],_0x42ed02[_0x56c82d(0x255)]+_0x56c82d(0x12c)),_0x4f8f11=_0x5fcc63[_0x56c82d(0x205)](this[_0x56c82d(0x1f0)],this['C'][_0x56c82d(0x251)],_0x5241c0,_0x493b8d[_0x56c82d(0x255)],_0xa5f38b[_0x56c82d(0x255)]+_0x56c82d(0x12c));await this[_0x56c82d(0x249)](_0x5fcc63['dirname'](_0x4f8f11),{'recursive':!0x0}),await this[_0x56c82d(0x211)](_0x31c185,_0x4f8f11);}}}async[_0xbe8f9c(0x1f2)](){const _0x49a8e8=_0xbe8f9c,_0x3e0304=this['C'][_0x49a8e8(0x203)],_0x4e5d6d=this['C'][_0x49a8e8(0x1ff)],_0x4a2ea1=_0x5fcc63['join'](this[_0x49a8e8(0x17d)],this['C'][_0x49a8e8(0x251)],this['config'][_0x49a8e8(0x1f5)],_0x3e0304),_0x7fab9f=await this[_0x49a8e8(0x1dc)](_0x4a2ea1,null);for(const _0x239193 of _0x7fab9f){const _0x10d93b=_0x5fcc63[_0x49a8e8(0x205)](_0x4a2ea1,_0x239193,_0x239193+_0x49a8e8(0x127));if(!this[_0x49a8e8(0x248)](_0x10d93b))continue;const _0x2e4980=await this[_0x49a8e8(0x217)](_0x10d93b,{'encoding':'utf8'}),_0x3b3765=await this[_0x49a8e8(0x260)](_0x2e4980),_0x9afe81=_0x5fcc63['join'](_0x4a2ea1,_0x239193),_0x1fdf78=_0x3b3765[_0x49a8e8(0x140)]+'/'+_0x3b3765[_0x49a8e8(0x168)]+'/'+_0x3b3765['collectionName']+'/'+_0x3b3765[_0x49a8e8(0x20a)][_0x49a8e8(0x23a)]();for(const _0x9661d0 of _0x3b3765[_0x49a8e8(0x104)]){const _0x101070=_0x5fcc63['join'](_0x9afe81,this['C'][_0x49a8e8(0x104)],_0x9661d0[_0x49a8e8(0x255)]+_0x49a8e8(0x12c)),_0x34735b=_0x5fcc63[_0x49a8e8(0x205)](this[_0x49a8e8(0x1f0)],this['C'][_0x49a8e8(0x251)],_0x4e5d6d,_0x1fdf78,this['C'][_0x49a8e8(0x104)],_0x9661d0[_0x49a8e8(0x255)]+'.ts');await this[_0x49a8e8(0x249)](_0x5fcc63[_0x49a8e8(0x1cf)](_0x34735b),{'recursive':!0x0}),await this[_0x49a8e8(0x211)](_0x101070,_0x34735b);}for(const _0x192318 of _0x3b3765[_0x49a8e8(0x1ea)]){const _0xa5bb7b=_0x5fcc63[_0x49a8e8(0x205)](_0x9afe81,this['C'][_0x49a8e8(0x1ea)],_0x192318[_0x49a8e8(0x255)]+_0x49a8e8(0x12c)),_0x32fec9=_0x5fcc63['join'](this['projectDirectory'],this['C'][_0x49a8e8(0x251)],_0x4e5d6d,_0x1fdf78,this['C'][_0x49a8e8(0x1ea)],_0x192318['name']+_0x49a8e8(0x12c));await this[_0x49a8e8(0x249)](_0x5fcc63[_0x49a8e8(0x1cf)](_0x32fec9),{'recursive':!0x0}),await this[_0x49a8e8(0x211)](_0xa5bb7b,_0x32fec9);}}}async[_0xbe8f9c(0x20c)](){const _0x335464=_0xbe8f9c,_0x327a5e=this['C'][_0x335464(0x227)],_0x26f71f=this['C'][_0x335464(0x20d)],_0x3cde15=_0x5fcc63[_0x335464(0x205)](this[_0x335464(0x17d)],this['C'][_0x335464(0x251)],this[_0x335464(0x267)][_0x335464(0x1f5)],_0x327a5e),_0x162d7c=await this[_0x335464(0x1dc)](_0x3cde15,null);for(const _0x869fee of _0x162d7c){const _0x48b18f=_0x5fcc63[_0x335464(0x205)](_0x3cde15,_0x869fee,_0x869fee+_0x335464(0x127));if(!this[_0x335464(0x248)](_0x48b18f))continue;const _0x3f01a3=await this[_0x335464(0x217)](_0x48b18f,{'encoding':_0x335464(0x1a2)}),_0x1b1f72=await this[_0x335464(0x260)](_0x3f01a3),_0x309164=_0x5fcc63[_0x335464(0x205)](_0x3cde15,_0x869fee),_0x58e40e=_0x1b1f72[_0x335464(0x20a)][_0x335464(0x23a)]();for(const _0x3b19bf of _0x1b1f72[_0x335464(0x104)]){const _0x3711b5=_0x5fcc63[_0x335464(0x205)](_0x309164,this['C']['preHooks'],_0x3b19bf[_0x335464(0x255)]+_0x335464(0x12c)),_0xf3b73=_0x5fcc63[_0x335464(0x205)](this[_0x335464(0x1f0)],this['C'][_0x335464(0x251)],_0x26f71f,_0x58e40e,this['C'][_0x335464(0x104)],_0x3b19bf['name']+_0x335464(0x12c));await this[_0x335464(0x249)](_0x5fcc63[_0x335464(0x1cf)](_0xf3b73),{'recursive':!0x0}),await this[_0x335464(0x211)](_0x3711b5,_0xf3b73);}for(const _0x867e9c of _0x1b1f72['postHooks']){const _0x78db23=_0x5fcc63[_0x335464(0x205)](_0x309164,this['C'][_0x335464(0x1ea)],_0x867e9c['name']+_0x335464(0x12c)),_0x11dd89=_0x5fcc63[_0x335464(0x205)](this['projectDirectory'],this['C'][_0x335464(0x251)],_0x26f71f,_0x58e40e,this['C'][_0x335464(0x1ea)],_0x867e9c[_0x335464(0x255)]+_0x335464(0x12c));await this['fsMkDir'](_0x5fcc63['dirname'](_0x11dd89),{'recursive':!0x0}),await this[_0x335464(0x211)](_0x78db23,_0x11dd89);}}}async['copyWebSocketEventsToAnotherDir'](){const _0x25bccc=_0xbe8f9c,_0x1a8f3c=this['C']['WebSocketEventsReadF'],_0x23d1f1=this['C'][_0x25bccc(0x1d3)],_0x1f5d7a=_0x5fcc63['join'](this[_0x25bccc(0x17d)],this['C']['src'],this[_0x25bccc(0x267)][_0x25bccc(0x1f5)],_0x1a8f3c),_0x1eb31d=await this['readDirCustom'](_0x1f5d7a,null);for(const _0x5edf78 of _0x1eb31d){const _0xb5c53e=_0x5fcc63[_0x25bccc(0x205)](_0x1f5d7a,_0x5edf78,_0x5edf78+_0x25bccc(0x127));if(!this[_0x25bccc(0x248)](_0xb5c53e))continue;const _0x34dd60=await this[_0x25bccc(0x217)](_0xb5c53e,{'encoding':_0x25bccc(0x1a2)}),_0x2344a4=await this[_0x25bccc(0x260)](_0x34dd60);for(const _0x5bbc0d of _0x2344a4[_0x25bccc(0x16f)]||[])if(!0x0===_0x5bbc0d[_0x25bccc(0x22a)]){const _0x705d55=_0x5fcc63['join'](_0x1f5d7a,_0x5edf78,this['C']['versions'],_0x5bbc0d['version'],_0x5bbc0d[_0x25bccc(0x255)]+'.ts');let _0x4bcc8c='',_0x104acc='';_0x2344a4[_0x25bccc(0x262)]===_0x3731f8[_0x25bccc(0x1ac)]?(_0x104acc=_0x25bccc(0x1c9),_0x4bcc8c=_0x2344a4[_0x25bccc(0x140)]+'/'+_0x2344a4['databaseName']+'/'+_0x2344a4[_0x25bccc(0x1c5)]+'/'+_0x2344a4[_0x25bccc(0x1a1)]['toLowerCase']()):_0x2344a4[_0x25bccc(0x262)]===_0x3731f8['THIRD_PARTY_APIS']?(_0x104acc=_0x25bccc(0x232),_0x4bcc8c=_0x2344a4['tpInstalledApiBundleName']+'/'+_0x2344a4[_0x25bccc(0x231)]):_0x2344a4[_0x25bccc(0x262)]===_0x3731f8['CUSTOM_APIS']?(_0x104acc=_0x25bccc(0x134),_0x4bcc8c=_0x2344a4[_0x25bccc(0x192)]):_0x2344a4[_0x25bccc(0x262)]===_0x3731f8[_0x25bccc(0x175)]?(_0x104acc='system-apis',_0x4bcc8c=_0x2344a4[_0x25bccc(0x130)]['toLowerCase']()):_0x2344a4[_0x25bccc(0x262)]===_0x3731f8[_0x25bccc(0x1ab)]&&(_0x104acc='ws-events',_0x4bcc8c=_0x2344a4[_0x25bccc(0x255)]);const _0x143119=_0x5fcc63['join'](this['projectDirectory'],this['C']['src'],_0x23d1f1,_0x104acc,_0x4bcc8c+_0x25bccc(0x12c));await this['fsMkDir'](_0x5fcc63['dirname'](_0x143119),{'recursive':!0x0}),await this[_0x25bccc(0x211)](_0x705d55,_0x143119);}}}async[_0xbe8f9c(0x1c7)](){const _0x452b2d=_0xbe8f9c,_0x2c0228=this['C'][_0x452b2d(0x194)],_0x30a0d3=this['C'][_0x452b2d(0x1b9)],_0x34ba9c=_0x5fcc63[_0x452b2d(0x205)](this[_0x452b2d(0x17d)],this['C'][_0x452b2d(0x251)],this[_0x452b2d(0x267)][_0x452b2d(0x1f5)],_0x2c0228),_0x560f71=await this[_0x452b2d(0x1dc)](_0x34ba9c,null);for(const _0x2fe872 of _0x560f71){const _0x18eb7b=_0x5fcc63['join'](_0x34ba9c,_0x2fe872,_0x2fe872+_0x452b2d(0x127));if(!this[_0x452b2d(0x248)](_0x18eb7b))continue;const _0x178032=await this[_0x452b2d(0x217)](_0x18eb7b,{'encoding':_0x452b2d(0x1a2)}),_0x4d4f02=await this['parseYaml'](_0x178032),_0x345ffd=_0x5fcc63[_0x452b2d(0x205)](_0x34ba9c,_0x2fe872),_0x12f8fe=_0x4d4f02[_0x452b2d(0x140)]+'/'+_0x4d4f02[_0x452b2d(0x168)]+'/'+_0x4d4f02[_0x452b2d(0x1c5)];for(const _0x7080ba of _0x4d4f02[_0x452b2d(0x104)]){const _0x4540ce=_0x5fcc63[_0x452b2d(0x205)](_0x345ffd,this['C'][_0x452b2d(0x104)],_0x7080ba[_0x452b2d(0x255)]+'.ts'),_0x295c2b=_0x5fcc63['join'](this['projectDirectory'],this['C']['src'],_0x30a0d3,_0x12f8fe,this['C'][_0x452b2d(0x104)],_0x7080ba[_0x452b2d(0x255)]+_0x452b2d(0x12c));await this[_0x452b2d(0x249)](_0x5fcc63[_0x452b2d(0x1cf)](_0x295c2b),{'recursive':!0x0}),await this[_0x452b2d(0x211)](_0x4540ce,_0x295c2b);}for(const _0x324d3f of _0x4d4f02[_0x452b2d(0x1ea)]){const _0x3f3dac=_0x5fcc63['join'](_0x345ffd,this['C'][_0x452b2d(0x1ea)],_0x324d3f[_0x452b2d(0x255)]+_0x452b2d(0x12c)),_0x525cde=_0x5fcc63['join'](this[_0x452b2d(0x1f0)],this['C']['src'],_0x30a0d3,_0x12f8fe,this['C'][_0x452b2d(0x1ea)],_0x324d3f['name']+'.ts');await this[_0x452b2d(0x249)](_0x5fcc63[_0x452b2d(0x1cf)](_0x525cde),{'recursive':!0x0}),await this['fsLink'](_0x3f3dac,_0x525cde);}}}async[_0xbe8f9c(0x222)](){const _0x175c7b=_0xbe8f9c,_0x251c44=this['C'][_0x175c7b(0x1e8)],_0x1c5af9=this['C'][_0x175c7b(0x1db)],_0x19d6c3=_0x5fcc63[_0x175c7b(0x205)](this[_0x175c7b(0x17d)],this['C'][_0x175c7b(0x251)],this[_0x175c7b(0x267)][_0x175c7b(0x1f5)],_0x251c44),_0x293394=await this[_0x175c7b(0x1dc)](_0x19d6c3,null);for(const _0x47505c of _0x293394){const _0x2fca8c=_0x5fcc63[_0x175c7b(0x205)](_0x19d6c3,_0x47505c,_0x47505c+_0x175c7b(0x127));if(!this[_0x175c7b(0x248)](_0x2fca8c))continue;const _0x171938=await this[_0x175c7b(0x217)](_0x2fca8c,{'encoding':_0x175c7b(0x1a2)}),_0xdc4ba7=await this['parseYaml'](_0x171938),_0x62b016=_0x5fcc63[_0x175c7b(0x205)](_0x19d6c3,_0x47505c),_0x399fcb=_0xdc4ba7[_0x175c7b(0x140)]+'/'+_0xdc4ba7[_0x175c7b(0x168)];for(const _0x57adc4 of _0xdc4ba7['preHooks']){const _0x429333=_0x5fcc63[_0x175c7b(0x205)](_0x62b016,this['C']['preHooks'],_0x57adc4['name']+'.ts'),_0x1bd775=_0x5fcc63[_0x175c7b(0x205)](this['projectDirectory'],this['C'][_0x175c7b(0x251)],_0x1c5af9,_0x399fcb,this['C'][_0x175c7b(0x104)],_0x57adc4['name']+_0x175c7b(0x12c));await this[_0x175c7b(0x249)](_0x5fcc63[_0x175c7b(0x1cf)](_0x1bd775),{'recursive':!0x0}),await this['fsLink'](_0x429333,_0x1bd775);}for(const _0x445585 of _0xdc4ba7['postHooks']){const _0x1febcb=_0x5fcc63[_0x175c7b(0x205)](_0x62b016,this['C'][_0x175c7b(0x1ea)],_0x445585[_0x175c7b(0x255)]+'.ts'),_0x5c6600=_0x5fcc63[_0x175c7b(0x205)](this[_0x175c7b(0x1f0)],this['C'][_0x175c7b(0x251)],_0x1c5af9,_0x399fcb,this['C']['postHooks'],_0x445585['name']+_0x175c7b(0x12c));await this['fsMkDir'](_0x5fcc63['dirname'](_0x5c6600),{'recursive':!0x0}),await this[_0x175c7b(0x211)](_0x1febcb,_0x5c6600);}}}async[_0xbe8f9c(0x25a)](){const _0x4b22c6=_0xbe8f9c,_0x3f64ac=this['C'][_0x4b22c6(0x11e)],_0x3b3ce2=this['C']['InstanceHooksWriteF'],_0x4a5d8a=_0x5fcc63[_0x4b22c6(0x205)](this[_0x4b22c6(0x17d)],this['C']['src'],this[_0x4b22c6(0x267)][_0x4b22c6(0x1f5)],_0x3f64ac),_0x79bdb7=await this[_0x4b22c6(0x1dc)](_0x4a5d8a,null);for(const _0xea85af of _0x79bdb7){const _0x278193=_0x5fcc63[_0x4b22c6(0x205)](_0x4a5d8a,_0xea85af,_0xea85af+_0x4b22c6(0x127));if(!this['fsExistsSync'](_0x278193))continue;const _0x1ddd13=await this['fsReadFile'](_0x278193,{'encoding':_0x4b22c6(0x1a2)}),_0x193d8b=await this['parseYaml'](_0x1ddd13),_0x52d832=_0x5fcc63[_0x4b22c6(0x205)](_0x4a5d8a,_0xea85af),_0x363c7e=''+_0x193d8b[_0x4b22c6(0x140)];for(const _0x40cbf4 of _0x193d8b[_0x4b22c6(0x104)]){const _0xfe698d=_0x5fcc63[_0x4b22c6(0x205)](_0x52d832,this['C'][_0x4b22c6(0x104)],_0x40cbf4[_0x4b22c6(0x255)]+_0x4b22c6(0x12c)),_0x550cdf=_0x5fcc63['join'](this['projectDirectory'],this['C'][_0x4b22c6(0x251)],_0x3b3ce2,_0x363c7e,this['C'][_0x4b22c6(0x104)],_0x40cbf4[_0x4b22c6(0x255)]+_0x4b22c6(0x12c));await this['fsMkDir'](_0x5fcc63['dirname'](_0x550cdf),{'recursive':!0x0}),await this['fsLink'](_0xfe698d,_0x550cdf);}for(const _0x725c71 of _0x193d8b[_0x4b22c6(0x1ea)]){const _0x2fe325=_0x5fcc63[_0x4b22c6(0x205)](_0x52d832,this['C'][_0x4b22c6(0x1ea)],_0x725c71[_0x4b22c6(0x255)]+_0x4b22c6(0x12c)),_0x1927be=_0x5fcc63[_0x4b22c6(0x205)](this[_0x4b22c6(0x1f0)],this['C'][_0x4b22c6(0x251)],_0x3b3ce2,_0x363c7e,this['C'][_0x4b22c6(0x1ea)],_0x725c71[_0x4b22c6(0x255)]+_0x4b22c6(0x12c));await this[_0x4b22c6(0x249)](_0x5fcc63[_0x4b22c6(0x1cf)](_0x1927be),{'recursive':!0x0}),await this[_0x4b22c6(0x211)](_0x2fe325,_0x1927be);}}}async[_0xbe8f9c(0x14f)](_0x52f476,_0x563511){return new Promise((_0x50e86b,_0x5274a8)=>{const _0x2f8358=a0_0x48be,_0x28e3d7=(0x0,_0x5930c2['spawn'])(_0x52f476,_0x563511,{'shell':!0x0,'cwd':this[_0x2f8358(0x17d)]});_0x28e3d7['on']('close',_0x4a2fd5=>{const _0x3d9a66=_0x2f8358;if(0x0===_0x4a2fd5)setTimeout(_0x50e86b,0x3e8);else{const _0x26a0a7='\x27'+_0x52f476+'\x20'+_0x563511[_0x3d9a66(0x205)]('\x20')+_0x3d9a66(0x14d)+_0x4a2fd5+'.';_0x5274a8(new Error(_0x26a0a7));}}),_0x28e3d7['on'](_0x2f8358(0x1ef),_0x5e7c26=>{const _0x5398f3=_0x2f8358;console[_0x5398f3(0x1ef)](_0x5398f3(0x196)+_0x5e7c26['message']),_0x5274a8(_0x5e7c26);});});}async[_0xbe8f9c(0x260)](_0x1b3009){const _0x592309=_0xbe8f9c;return(await Promise['resolve']()['then'](()=>_0x3f058b(0x2f8)))[_0x592309(0x178)](_0x1b3009);}async[_0xbe8f9c(0x24a)](){const _0x3d54e1=_0xbe8f9c;await this[_0x3d54e1(0x15e)]();const _0x1e9752=await Promise[_0x3d54e1(0x268)]()[_0x3d54e1(0x145)](()=>_0x3f058b(0x274)),_0x305cdd=_0x5fcc63[_0x3d54e1(0x205)](this[_0x3d54e1(0x17d)]),_0x358025=_0x5fcc63[_0x3d54e1(0x205)](this[_0x3d54e1(0x17d)],this['C'][_0x3d54e1(0x251)]),_0x180c37=_0x1f71a9=>{const _0x4918dc=_0x3d54e1,_0x192b11=_0x5fcc63['relative'](_0x305cdd,_0x1f71a9);return!(_0x192b11&&!_0x192b11[_0x4918dc(0x1bc)]('.')&&!_0x192b11[_0x4918dc(0x11d)]('~')&&_0x192b11[_0x4918dc(0x1bc)](this['C'][_0x4918dc(0x251)]));},_0x16f9ca=_0x1e9752[_0x3d54e1(0x213)](_0x358025,{'persistent':!0x0,'ignoreInitial':!0x0,'depth':0x1/0x0,'awaitWriteFinish':{'stabilityThreshold':0xc8,'pollInterval':0x64}}),_0x3a4b57=async(_0x272617,_0x28faf9)=>{const _0xd4b957=_0x3d54e1;try{if(this[_0xd4b957(0x187)])return;const _0x1ec5ed=_0x5fcc63[_0xd4b957(0x22b)](_0x305cdd,_0x28faf9);if(!_0x28faf9||_0x180c37(_0x28faf9))return;console[_0xd4b957(0x1b2)](_0xd4b957(0x17a)+this[_0xd4b957(0x12b)]()+']\x20:\x20['+_0x272617+_0xd4b957(0x25e)+_0x1ec5ed);const _0x47355f=this[_0xd4b957(0x10b)](_0x1ec5ed),_0x19d795=this['getChangedFolder'](_0x47355f,_0x1ec5ed);if(!_0x19d795)return;let _0x59da2f,_0x1f89ba=!0x1;if(this[_0xd4b957(0x248)](_0x19d795)){if(this[_0xd4b957(0x248)](_0x5fcc63[_0xd4b957(0x205)](_0x305cdd,_0x1ec5ed))){const _0xb79099=_0x5fcc63['join'](_0x5fcc63['sep']+this['C'][_0xd4b957(0x1e0)],_0x19d795);_0x59da2f=await this['serializeFolderWithBinary'](_0x19d795,_0xb79099),this[_0xd4b957(0x1dd)]({'objType':_0x13ccf5['LC_DATA_REQ_RES'],'localClientWSReqRes':{'eventType':_0x210f3b[_0xd4b957(0x1c1)],'folderChangedOnLocalSystem':_0x59da2f,'category':_0x47355f,'shouldReplaceAllItemsOfCategory':_0x1f89ba}});}else this[_0xd4b957(0x15d)]();}else{const _0x51206c=this[_0xd4b957(0x1e5)](_0x47355f,_0x1ec5ed),_0x3eddcf=_0x5fcc63['join'](_0x5fcc63[_0xd4b957(0x139)]+this['C'][_0xd4b957(0x1e0)],_0x51206c);_0x59da2f=await this[_0xd4b957(0x13f)](_0x51206c,_0x3eddcf),_0x1f89ba=!0x0,this[_0xd4b957(0x1fc)](_0x59da2f,_0x47355f,_0x1f89ba);}}catch(_0x101fd8){console[_0xd4b957(0x1ef)]('watch\x20handler\x20error',_0x101fd8);}};_0x16f9ca['on'](_0x3d54e1(0x171),_0x421a6c=>_0x3a4b57(_0x3d54e1(0x171),_0x421a6c))['on'](_0x3d54e1(0x200),_0x28c6ad=>_0x3a4b57(_0x3d54e1(0x200),_0x28c6ad))['on'](_0x3d54e1(0x160),_0xdb277d=>_0x3a4b57(_0x3d54e1(0x160),_0xdb277d))['on'](_0x3d54e1(0x257),_0x2aae19=>_0x3a4b57('addDir',_0x2aae19))['on'](_0x3d54e1(0x1e6),_0x404404=>_0x3a4b57(_0x3d54e1(0x1e6),_0x404404))['on'](_0x3d54e1(0x1ef),_0x4756ec=>console[_0x3d54e1(0x1ef)](_0x3d54e1(0x25b),_0x4756ec)),this[_0x3d54e1(0x1ee)]=_0x16f9ca,console[_0x3d54e1(0x1b2)](_0x3d54e1(0x189));}[_0xbe8f9c(0x12b)](){const _0x1bc1e7=_0xbe8f9c,_0x5abfb5=new Date();return String(_0x5abfb5[_0x1bc1e7(0x1aa)]())[_0x1bc1e7(0x188)](0x2,'0')+':'+String(_0x5abfb5[_0x1bc1e7(0x254)]())[_0x1bc1e7(0x188)](0x2,'0')+':'+String(_0x5abfb5[_0x1bc1e7(0x150)]())[_0x1bc1e7(0x188)](0x2,'0');}[_0xbe8f9c(0x225)](_0x32bb81,_0x33ec62,_0x130d39){const _0x335d25=_0xbe8f9c;this['sendToServer']({'objType':_0x13ccf5[_0x335d25(0x243)],'localClientWSReqRes':{'eventType':_0x210f3b['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM'],'folderChangedOnLocalSystem':_0x32bb81,'category':_0x33ec62,'shouldReplaceAllItemsOfCategory':_0x130d39}});}[_0xbe8f9c(0x132)](_0x233380,_0x496d41){let _0x366be4=null;return function(..._0x3b2deb){clearTimeout(_0x366be4),_0x366be4=setTimeout(()=>{_0x233380['apply'](this,_0x3b2deb);},_0x496d41);};}[_0xbe8f9c(0x10b)](_0x303478){const _0x2f32db=_0xbe8f9c,_0x2c707f=_0x5fcc63[_0x2f32db(0x205)](this['C'][_0x2f32db(0x251)],this[_0x2f32db(0x267)][_0x2f32db(0x1f5)]);if(!_0x303478[_0x2f32db(0x1bc)](_0x2c707f))return;const _0x4687b5=_0x303478[_0x2f32db(0x1e4)](_0x5fcc63[_0x2f32db(0x139)])[_0x2f32db(0x12e)](_0x89a5a0=>!!_0x89a5a0)[0x2];for(const _0x39bcf8 in _0xd1099e)if(_0xd1099e[_0x39bcf8]===_0x4687b5)return _0x4687b5;}[_0xbe8f9c(0x20b)](_0x1c3e6e,_0x1d1710){const _0x249a0d=_0xbe8f9c,_0x1fc097=_0x1d1710[_0x249a0d(0x1e4)](_0x5fcc63['sep']);let _0x4270a7='';return _0x4270a7=_0x1c3e6e===_0xd1099e['THIRD_PARTY_APIS']?_0x1fc097[_0x249a0d(0x102)](0x0,0x6)[_0x249a0d(0x205)](_0x5fcc63[_0x249a0d(0x139)]):_0x1fc097['slice'](0x0,0x4)['join'](_0x5fcc63[_0x249a0d(0x139)]),_0x4270a7;}[_0xbe8f9c(0x1e5)](_0x19b358,_0x3aaccd){const _0x52cdfa=_0xbe8f9c;return _0x3aaccd[_0x52cdfa(0x1e4)](_0x5fcc63['sep'])[_0x52cdfa(0x102)](0x0,0x3)[_0x52cdfa(0x205)](_0x5fcc63[_0x52cdfa(0x139)]);}async['serializeFolderWithBinary'](_0x18c450,_0x25d405){const _0x1798cc={},_0x1a337a=this;return await async function _0x4baf7d(_0x57d680){const _0x350e3d=a0_0x48be,_0x15686f=await _0x1a337a['readDirCustom'](_0x57d680,{'withFileTypes':!0x0});for(const _0x120487 of _0x15686f){const _0x4ae648=_0x5fcc63[_0x350e3d(0x205)](_0x57d680,_0x120487[_0x350e3d(0x255)]),_0x1b2633=_0x5fcc63[_0x350e3d(0x1c8)](_0x4ae648);if(_0x120487[_0x350e3d(0x1b8)]())await _0x4baf7d(_0x1b2633);else{const _0x4a8ee8=_0x4bb96a[_0x350e3d(0x23f)](_0x1b2633),_0x585ab6=_0x5fcc63['relative'](_0x18c450,_0x1b2633),_0xa823db=_0x5fcc63['join'](_0x25d405,_0x585ab6)[_0x350e3d(0x1e4)](_0x5fcc63[_0x350e3d(0x139)])[_0x350e3d(0x205)](_0x5fcc63[_0x350e3d(0x119)]['sep']);_0x1798cc[_0xa823db]={'encoding':_0x350e3d(0x16c),'content':_0x4a8ee8['toString'](_0x350e3d(0x16c))};}}}(_0x18c450),_0x1798cc;}['sendToServer'](_0x24445f){const _0x10b988=_0xbe8f9c;try{this['ws'][_0x10b988(0x24e)](JSON['stringify'](_0x24445f));}catch(_0x3498bb){console[_0x10b988(0x1b2)](_0x3498bb);}}async[_0xbe8f9c(0x199)](){const _0x366f2a=_0xbe8f9c;console[_0x366f2a(0x1b2)](_0x366f2a(0x123));const _0x23165a=this[_0x366f2a(0x267)]['syncToken'],_0x595db9=this[_0x366f2a(0x267)]['adminUserPath'],_0x2eb3eb=this[_0x366f2a(0x267)][_0x366f2a(0x10f)];this['ws']=new WebSocket(_0x2eb3eb+_0x366f2a(0x103)+_0x23165a+'&user-path='+_0x595db9);const _0x28f165=[],_0x4f1b5c=()=>{const _0x26ee9a=_0x366f2a;this[_0x26ee9a(0x1dd)]({'objType':_0x13ccf5[_0x26ee9a(0x180)],'onEvents':[{'eventType':_0x26ee9a(0x157)}]});};function _0xb3439a(_0x453797){const _0x5cf195=_0x366f2a;_0x453797[_0x5cf195(0x19a)]=null,_0x453797[_0x5cf195(0x218)]=null,_0x453797['onerror']=null,_0x453797[_0x5cf195(0x23e)]=null,_0x453797[_0x5cf195(0x148)]();}this['ws'][_0x366f2a(0x218)]=async _0x40cfda=>{const _0x1afbd7=_0x366f2a,_0x5708db=JSON[_0x1afbd7(0x177)](_0x40cfda[_0x1afbd7(0x1e1)]);if(_0x5708db['type']===_0x13ccf5[_0x1afbd7(0x105)]&&_0x5708db[_0x1afbd7(0x176)]['connected'])_0x4f1b5c();else{if(_0x5708db[_0x1afbd7(0x14b)]===_0x13ccf5[_0x1afbd7(0x180)]){if(_0x5708db?.[_0x1afbd7(0x176)]?.[_0x1afbd7(0x18d)]?.[_0x1afbd7(0x17b)]){for(const _0xfce920 of _0x5708db['response'][_0x1afbd7(0x18d)])_0x28f165[_0x1afbd7(0x16e)](_0xfce920);console[_0x1afbd7(0x1b2)](_0x1afbd7(0x172)),!0x1===this['isWSConnectedFirstTime']&&(this['isWSConnectedFirstTime']=!0x0,console[_0x1afbd7(0x1b2)](this[_0x1afbd7(0x1a6)]+'✳️\x20Open\x20folder\x20in\x20IDE\x20:\x20'+this['projectDirectory']+this[_0x1afbd7(0x121)])),this[_0x1afbd7(0x1ee)]||await this[_0x1afbd7(0x24a)](),this['syncAllDataWithServer']();}else{const _0x1191ee=_0x5708db[_0x1afbd7(0x176)]?.[_0x1afbd7(0x14c)]?.[0x0]?.['errors']?.[0x0]?.[_0x1afbd7(0x1da)]||_0x1afbd7(0x1bb);console[_0x1afbd7(0x1b2)]('❌\x20'+_0x1191ee),await this[_0x1afbd7(0x265)](0x1);}}else await this[_0x1afbd7(0x10c)](_0x5708db);}},this['ws'][_0x366f2a(0x23e)]=_0x331996=>{const _0x20a0b6=_0x366f2a;console['log'](_0x20a0b6(0x138)),_0xb3439a(this['ws']),setTimeout(this[_0x20a0b6(0x199)][_0x20a0b6(0x238)](this),0xbb8);},this['ws'][_0x366f2a(0x16d)]=()=>{const _0x326433=_0x366f2a;_0xb3439a(this['ws']),setTimeout(this[_0x326433(0x199)][_0x326433(0x238)](this),0xbb8);};}['syncAllDataWithServer'](){const _0x2b3b8f=_0xbe8f9c;this[_0x2b3b8f(0x1dd)]({'objType':_0x13ccf5['LC_DATA_REQ_RES'],'localClientWSReqRes':{'eventType':_0x210f3b[_0x2b3b8f(0x253)]}});}async[_0xbe8f9c(0x10c)](_0x3b9fad){const _0x2a6aa2=_0xbe8f9c;if(this['EL']&&_0x3b9fad[_0x2a6aa2(0x176)][_0x2a6aa2(0x183)]!==_0x210f3b['LC_SEND_ALL_DATA']&&console[_0x2a6aa2(0x1b2)](_0x3b9fad),_0x3b9fad[_0x2a6aa2(0x14b)]===_0x13ccf5[_0x2a6aa2(0x243)]){if(_0x3b9fad['errors']?.['length'])return void console[_0x2a6aa2(0x1ef)](_0x3b9fad[_0x2a6aa2(0x15f)]);if(_0x3b9fad['response'][_0x2a6aa2(0x183)]===_0x210f3b[_0x2a6aa2(0x253)]){console[_0x2a6aa2(0x1b2)](_0x2a6aa2(0x228)+this[_0x2a6aa2(0x12b)]()+']'),_0x4bb96a['rmSync'](_0x5fcc63[_0x2a6aa2(0x205)](this[_0x2a6aa2(0x17d)],this['C']['src']),{'recursive':!0x0,'force':!0x0}),this[_0x2a6aa2(0x245)](_0x5fcc63[_0x2a6aa2(0x205)](this[_0x2a6aa2(0x17d)],this['C'][_0x2a6aa2(0x251)]),{'recursive':!0x0});const _0x2f1783=_0x3b9fad[_0x2a6aa2(0x176)]['eventData'];await this[_0x2a6aa2(0x1a3)](_0x2f1783,this[_0x2a6aa2(0x17d)]);}else{if(_0x3b9fad[_0x2a6aa2(0x176)][_0x2a6aa2(0x183)]===_0x210f3b[_0x2a6aa2(0x12f)]){const _0x20210c=_0x3b9fad[_0x2a6aa2(0x176)]['eventData'];await this['writeMemfsJsonToDisk'](_0x20210c[_0x2a6aa2(0x1e1)],this[_0x2a6aa2(0x17d)]);}}!0x0===this[_0x2a6aa2(0x1f9)]?await this[_0x2a6aa2(0x170)](!0x1):(await this['copyFilesToProjectDir'](!0x0),this[_0x2a6aa2(0x1f9)]=!0x0);}}async['writeMemfsJsonToDisk'](_0x3b43e0,_0x540832){const _0x42ac14=_0xbe8f9c;this['skipWatchInputs']=!0x0;let _0x491b71=[];const _0x4c7207=async()=>{const _0x4f6ca3=a0_0x48be;_0x491b71[_0x4f6ca3(0x17b)]>0x0&&(await Promise[_0x4f6ca3(0x17f)](_0x491b71),_0x491b71=[]);};for(const [_0x5359a5,_0xbeedba]of Object[_0x42ac14(0x136)](_0x3b43e0)){if(!_0x5359a5['startsWith']('/'+this['C'][_0x42ac14(0x1e0)]+'/'+this['C'][_0x42ac14(0x251)]))continue;const _0xb98ebf=_0xbeedba,_0x3c4222=_0x5359a5[_0x42ac14(0x195)]('/'+this['C']['repo'],'');if(this[_0x42ac14(0x1c0)][_0x3c4222])continue;const _0x4a0e38=_0x5fcc63[_0x42ac14(0x205)](_0x540832,_0x3c4222[_0x42ac14(0x195)](/^\//,'')),_0x48b1a2=_0x5fcc63['dirname'](_0x4a0e38),_0x21a54d=async()=>{const _0x54ddb6=_0x42ac14;await this[_0x54ddb6(0x249)](_0x48b1a2,{'recursive':!0x0}),await this[_0x54ddb6(0x193)](_0x4a0e38,_0xb98ebf['content'],{'encoding':_0x54ddb6(0x16c)}),this['EL']&&console['log']('✓\x20Receive\x20:\x20['+this[_0x54ddb6(0x12b)]()+_0x54ddb6(0x25e)+_0x4a0e38[_0x54ddb6(0x195)](_0x540832,''));};_0x491b71[_0x42ac14(0x16e)](_0x21a54d()),_0x491b71['length']>=0x3e8&&await _0x4c7207();}await _0x4c7207(),setTimeout(()=>{const _0x49185d=_0x42ac14;this[_0x49185d(0x187)]=!0x1;},0x3e8);}['removeEmptyDirsSync'](_0x512d9a){const _0x5316d1=_0xbe8f9c,_0x17d9ec=this[_0x5316d1(0x101)](_0x512d9a);if(!this[_0x5316d1(0x248)](_0x17d9ec))return!0x1;const _0x30d4fc=_0x4bb96a[_0x5316d1(0x224)](_0x17d9ec);let _0x3b78e7=!0x0;for(const _0x45a767 of _0x30d4fc){const _0x147ec0=_0x5fcc63['join'](_0x17d9ec,_0x45a767);_0x4bb96a[_0x5316d1(0x1fa)](_0x147ec0)['isDirectory']()&&this[_0x5316d1(0x146)](_0x147ec0)||(_0x3b78e7=!0x1);}return!!_0x3b78e7&&(_0x4bb96a[_0x5316d1(0x186)](_0x17d9ec),!0x0);}async[_0xbe8f9c(0x1dc)](_0x245a34,_0x5cc868){const _0x2de8c9=_0xbe8f9c;return this['fsExistsSync'](_0x245a34)?await this[_0x2de8c9(0x1ec)](_0x245a34,_0x5cc868):[];}[_0xbe8f9c(0x101)](_0x364615){const _0x34910e=_0xbe8f9c;return _0x5fcc63[_0x34910e(0x1c8)](_0x364615);}['fsExistsSync'](_0x39816a){const _0x2d71b5=_0xbe8f9c,_0x186055=_0x5fcc63[_0x2d71b5(0x1c8)](_0x39816a);return _0x4bb96a['existsSync'](_0x186055);}async[_0xbe8f9c(0x1ec)](_0x32b5f1,_0x451894){const _0x12068f=_0xbe8f9c,_0x363159=_0x5fcc63[_0x12068f(0x1c8)](_0x32b5f1);return await _0x4bb96a[_0x12068f(0x128)][_0x12068f(0x1eb)](_0x363159,_0x451894);}async['fsMkDir'](_0x116cab,_0x2a9c80){const _0x3875b4=_0xbe8f9c,_0x423e59=_0x5fcc63[_0x3875b4(0x1c8)](_0x116cab);return await _0x4bb96a[_0x3875b4(0x128)][_0x3875b4(0x15a)](_0x423e59,_0x2a9c80);}[_0xbe8f9c(0x245)](_0x2e5d03,_0x1fb351){const _0xa841f4=_0xbe8f9c,_0x16be00=_0x5fcc63[_0xa841f4(0x1c8)](_0x2e5d03);return _0x4bb96a[_0xa841f4(0x263)](_0x16be00,_0x1fb351);}async['fsReadFile'](_0x1b5c56,_0x576be4){const _0x5170c1=_0xbe8f9c,_0x405fc1=_0x5fcc63[_0x5170c1(0x1c8)](_0x1b5c56);return await _0x4bb96a['promises'][_0x5170c1(0x108)](_0x405fc1,_0x576be4);}async['fsWriteFile'](_0x48079b,_0x5e8f0d,_0x44be76){const _0x4890d5=_0xbe8f9c,_0x7a92a6=_0x5fcc63[_0x4890d5(0x1c8)](_0x48079b);return await _0x4bb96a[_0x4890d5(0x128)][_0x4890d5(0x259)](_0x7a92a6,_0x5e8f0d,_0x44be76);}async[_0xbe8f9c(0x211)](_0x14bbb8,_0x358bf4){const _0x1c4f7b=_0xbe8f9c,_0x34a29e=_0x5fcc63[_0x1c4f7b(0x1c8)](_0x14bbb8),_0x2dd333=_0x5fcc63[_0x1c4f7b(0x1c8)](_0x358bf4);try{return await _0x4bb96a[_0x1c4f7b(0x128)][_0x1c4f7b(0x19c)](_0x34a29e,_0x2dd333);}catch(_0x2b4260){console[_0x1c4f7b(0x1d0)](_0x2b4260);}}async[_0xbe8f9c(0x265)](_0x8474c6=0x0){const _0x4c4419=_0xbe8f9c;if(!this[_0x4c4419(0x117)]){this[_0x4c4419(0x117)]=!0x0;try{this['watcher']&&await this['watcher']['close']();}catch(_0xc2923e){console[_0x4c4419(0x1ef)]('Error\x20during\x20shutdown',_0xc2923e);}finally{setTimeout(()=>process['exit'](_0x8474c6),0xc8);}}}[_0xbe8f9c(0x261)](){const _0x296808=_0xbe8f9c;process['on'](_0x296808(0x111),()=>{const _0x24a9c2=_0x296808;console[_0x24a9c2(0x1b2)](_0x24a9c2(0x13b)),this['shutdownAndExit'](0x0);}),process['on'](_0x296808(0x1f3),()=>{const _0x53d434=_0x296808;console[_0x53d434(0x1b2)](_0x53d434(0x185)),this[_0x53d434(0x265)](0x0);}),process['on'](_0x296808(0x1b0),_0x561d95=>{const _0x2fb73f=_0x296808;console[_0x2fb73f(0x1b2)]('beforeExit',_0x561d95);}),process['on'](_0x296808(0x1d5),_0x379782=>{const _0x38cd92=_0x296808;console[_0x38cd92(0x1b2)](_0x38cd92(0x1d5),_0x379782);}),process['on'](_0x296808(0x141),_0x3daa21=>{const _0x50fdde=_0x296808;console['error'](_0x50fdde(0x141),_0x3daa21),this['shutdownAndExit'](0x1);}),process['on'](_0x296808(0x1c3),_0x581594=>{const _0xc5be2a=_0x296808;console[_0xc5be2a(0x1ef)](_0xc5be2a(0x1c3),_0x581594),this[_0xc5be2a(0x265)](0x1);});}}()['start']()[_0xbe8f9c(0x145)](),function(_0x156c1d){const _0x232995=_0xbe8f9c;_0x156c1d[_0x232995(0x1ac)]=_0x232995(0x1ac),_0x156c1d[_0x232995(0x124)]=_0x232995(0x124),_0x156c1d[_0x232995(0x1bf)]=_0x232995(0x1bf),_0x156c1d[_0x232995(0x175)]=_0x232995(0x175),_0x156c1d[_0x232995(0x1ab)]=_0x232995(0x1ab);}(_0x3731f8=_0x47e57c['QX']||(_0x47e57c['QX']={})),function(_0x2ef855){const _0x534d69=_0xbe8f9c;_0x2ef855[_0x534d69(0x180)]='REGISTER',_0x2ef855[_0x534d69(0x11a)]=_0x534d69(0x11a),_0x2ef855[_0x534d69(0x105)]=_0x534d69(0x105),_0x2ef855[_0x534d69(0x162)]='UNKNOWN',_0x2ef855[_0x534d69(0x1ba)]=_0x534d69(0x1ba),_0x2ef855[_0x534d69(0x252)]='NOTIFICATION',_0x2ef855['LC_DATA_REQ_RES']=_0x534d69(0x243);}(_0x13ccf5||(_0x13ccf5={})),function(_0x54ffb9){const _0x47de7d=_0xbe8f9c;_0x54ffb9[_0x47de7d(0x253)]=_0x47de7d(0x253),_0x54ffb9[_0x47de7d(0x12f)]=_0x47de7d(0x12f),_0x54ffb9['LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM']=_0x47de7d(0x1c1);}(_0x210f3b||(_0x210f3b={})),(_0x45dec7=_0x47e57c['Yl']||(_0x47e57c['Yl']={}))[_0xbe8f9c(0x142)]=_0xbe8f9c(0x142),_0x45dec7[_0xbe8f9c(0x17e)]='PUT',_0x45dec7[_0xbe8f9c(0x21c)]=_0xbe8f9c(0x21c),_0x45dec7[_0xbe8f9c(0x153)]=_0xbe8f9c(0x153),_0x45dec7[_0xbe8f9c(0x230)]=_0xbe8f9c(0x230),(_0x12d374=_0x47e57c['EN']||(_0x47e57c['EN']={}))[_0xbe8f9c(0x235)]=_0xbe8f9c(0x1d9),_0x12d374[_0xbe8f9c(0x179)]='am_web_socket_events',_0x12d374[_0xbe8f9c(0x1a5)]=_0xbe8f9c(0x19b),_0x12d374[_0xbe8f9c(0x13c)]='am_custom_apis',_0x12d374['InstanceApiSettings']=_0xbe8f9c(0x202),_0x12d374['InstanceApiHooks']=_0xbe8f9c(0x167),_0x12d374[_0xbe8f9c(0x1d1)]=_0xbe8f9c(0x1fd),_0x12d374['DatabaseHooks']=_0xbe8f9c(0x1f6),_0x12d374['CollectionHooks']=_0xbe8f9c(0x16a),_0x12d374['Schedulers']='am_schedulers',_0x12d374[_0xbe8f9c(0x112)]=_0xbe8f9c(0x20f),_0x12d374[_0xbe8f9c(0x22e)]=_0xbe8f9c(0x210),_0x12d374[_0xbe8f9c(0x1d6)]=_0xbe8f9c(0x115),_0x12d374['SystemApiHooks']=_0xbe8f9c(0x229),_0x12d374['am_tp_api_settings']=_0xbe8f9c(0x21a),_0x12d374[_0xbe8f9c(0x165)]='am_tp_installed_apis',_0x12d374[_0xbe8f9c(0x1e9)]='am_tp_api_versions',_0x12d374[_0xbe8f9c(0x197)]=_0xbe8f9c(0x23b),_0x12d374[_0xbe8f9c(0x135)]=_0xbe8f9c(0x1b6),_0x12d374['ProcessInitializers']='am_process_initializers',_0x12d374['UIMakerUtils']=_0xbe8f9c(0x1f8),_0x12d374['UIMakerStyles']=_0xbe8f9c(0x10e),_0x12d374[_0xbe8f9c(0x207)]=_0xbe8f9c(0x24f),function(_0x3703b3){const _0x2548d9=_0xbe8f9c;_0x3703b3['CUSTOM_APIS']='Custom\x20APIs',_0x3703b3[_0x2548d9(0x239)]=_0x2548d9(0x19e),_0x3703b3[_0x2548d9(0x14e)]=_0x2548d9(0x11b),_0x3703b3['EVENTS']=_0x2548d9(0x1cc),_0x3703b3['I18NS']=_0x2548d9(0x246),_0x3703b3[_0x2548d9(0x11f)]=_0x2548d9(0x1f4),_0x3703b3[_0x2548d9(0x244)]=_0x2548d9(0x1c4),_0x3703b3[_0x2548d9(0x118)]=_0x2548d9(0x237),_0x3703b3[_0x2548d9(0x242)]='Collection\x20hooks',_0x3703b3['INSTANCE_API_SETTINGS']=_0x2548d9(0x1c6),_0x3703b3['SCHEDULERS']=_0x2548d9(0x174),_0x3703b3[_0x2548d9(0x137)]=_0x2548d9(0x112),_0x3703b3[_0x2548d9(0x1b7)]=_0x2548d9(0x181),_0x3703b3[_0x2548d9(0x16b)]=_0x2548d9(0x114),_0x3703b3[_0x2548d9(0x1a9)]='Test\x20cases',_0x3703b3[_0x2548d9(0x124)]=_0x2548d9(0x1b3),_0x3703b3[_0x2548d9(0x1c2)]=_0x2548d9(0x215),_0x3703b3[_0x2548d9(0x1d8)]=_0x2548d9(0x109),_0x3703b3[_0x2548d9(0x1de)]=_0x2548d9(0x25f),_0x3703b3[_0x2548d9(0x198)]=_0x2548d9(0x1a8),_0x3703b3['UI_MAKER_UTILITY_CLASS']='DB\x20master\x20utils',_0x3703b3[_0x2548d9(0x156)]='UI\x20maker\x20styles';}(_0xd1099e=_0x47e57c['_6']||(_0x47e57c['_6']={}));},0x274:_0x54fc2d=>{const _0x186778=a0_0x48be;_0x54fc2d['exports']=require(_0x186778(0x1ae));},0x2f8:_0xc45704=>{const _0x190019=a0_0x48be;_0xc45704[_0x190019(0x1cb)]=require('js-yaml');},0x2a0:_0x3626ee=>{const _0x1afdc7=a0_0x48be;_0x3626ee['exports']=require(_0x1afdc7(0x173));},0x170:_0x5a3859=>{const _0x3dc021=a0_0x48be;_0x5a3859[_0x3dc021(0x1cb)]=require(_0x3dc021(0x1a0));},0x3a:_0x327423=>{const _0x99eee7=a0_0x48be;_0x327423[_0x99eee7(0x1cb)]=require('fs');}},_0x59270a={};!function _0x5e549a(_0x15cceb){const _0x33c505=a0_0x48be;var _0x2aa81e=_0x59270a[_0x15cceb];if(void 0x0!==_0x2aa81e)return _0x2aa81e['exports'];var _0x3b3195=_0x59270a[_0x15cceb]={'exports':{}};return _0x328651[_0x15cceb](_0x3b3195,_0x3b3195[_0x33c505(0x1cb)],_0x5e549a),_0x3b3195[_0x33c505(0x1cb)];}(0x11f);})()));function a0_0x48be(_0x283cda,_0x5bc228){const _0x35ebec=a0_0x35eb();return a0_0x48be=function(_0x48be65,_0x1d14f6){_0x48be65=_0x48be65-0x101;let _0x57af07=_0x35ebec[_0x48be65];return _0x57af07;},a0_0x48be(_0x283cda,_0x5bc228);}function a0_0x35eb(){const _0x190712=['readdir','fsReadDir','UI\x20maker\x20styles','watcher','error','projectDirectory','version','copyInstanceApiHooksToAnotherDir','SIGTERM','Instance\x20API\x20hooks','adminUserPath','am_database_hooks','copyProcessInitializersToAnotherDir','am_ui_maker_utils','nodeModulesInstalled','statSync','234qxHGAY','sendDeletedEventToServerDebounce','am_instance_hooks','cpSync','InstanceApiHooksWriteF','change','.css','am_instance_api_settings','InstanceApiHooksReadF','copyI18NToAnotherDir','join','⏳\x20node_modules\x20installation\x20process\x20started','AmTestCases','DBMasterStylesWriteF','DBMasterUtilsWriteF','apiId','getChangedFolder','copySystemApiHooksToAnotherDir','SystemApiHooksWriteF','ThirdPartyApiReadF','am_schemas','am_i18ns','fsLink','Custom\x20APIs','watch','orangeStart','Third\x20party\x20API\x20settings','-lc','fsReadFile','onmessage','820047CXaekF','am_tp_api_settings','2642255qhOFfB','PUT_REPLACE','.gitignore','copyEventsToAnotherDir','node_modules','package-lock.json','ThirdPartyApiWriteF','copyDatabaseHooksToAnotherDir','dir','readdirSync','sendDeletedEventToServerInternal','ProcessInitializersReadF','SystemApiHooksReadF','✅\x20Full\x20Sync\x20:\x20[','am_system_api_hooks','isActive','relative','SchedulersReadF','⏳\x20Dependencies\x20installation\x20process\x20started','I18Ns','stringify','DELETE_ALL','tpInstalledApiName','third-party-apis','.config.ts','dbInterfacesFile','AmEvents','baseUrl','Database\x20hooks','bind','DB_MIGRATIONS','toLowerCase','am_utility_classes','./local-client.config','install','onclose','readFileSync','process-initializers','events','COLLECTION_HOOKS','LC_DATA_REQ_RES','INSTANCE_HOOKS','fsMkDirSync','i18ns','schemas','fsExistsSync','fsMkDir','startWatch','CustomApisWriteF','Collection\x20hooks','EventsReadF','send','am_test_cases','\x20Please\x20provide\x20settings\x20in\x20:\x20','src','NOTIFICATION','LC_SEND_ALL_DATA','getMinutes','name','EventsWriteF','addDir','isWSConnectedFirstTime','writeFile','copyInstanceHooksToAnotherDir','Watcher\x20error:','localClientPath','CustomApiReadF',']\x20:\x20','WebSocket\x20events','parseYaml','addProcessHooks','apiCategory','mkdirSync','createLCProjectDirectory','shutdownAndExit','rmSync','config','resolve','normalizePath','slice','?authTokenInfo=ws-local-client-sync&authorization=','preHooks','CONNECTED','12GPMmTa','apis','readFile','Utility\x20classes','SchemaReadF','getCategoryOfPath','processReceivedEvent','✅\x20Dependencies\x20installed','am_ui_maker_styles','webSocketURL','\x1b[36m','SIGINT','Schemas','Test\x20cases','System\x20API\x20settings','am_system_api_settings','DBMasterStylesReadF','shuttingDown','DATABASE_HOOKS','posix','UNREGISTER','Process\x20initializers','\x20Local\x20client\x20will\x20pull\x20your\x20server\x20changes\x20to\x20local\x20&\x20perform\x20sync\x20between\x20them.','endsWith','InstanceHooksReadF','INSTANCE_API_HOOKS','printNotesToProvideLocalClient','colorEnd','DBMigrationsWriteF','⏳\x20Connecting\x20to\x20server...','THIRD_PARTY_APIS','\x1b[38;2;255;165;0m','checkForNodeVersion','.yaml','promises','\x1b[0m','system-api-hooks','getCurrentTime','.ts','TestCasesReadF','filter','LC_DATA_MODIFIED_IN_DATABASE','systemApiName','symlinkSync','debounce','DBMigrationsReadF','custom-apis','DatabasesMigrations','entries','SCHEMAS','Connection\x20closed.','sep','copyTestCasesToAnotherDir','SIGINT\x20received\x20—\x20shutting\x20down','CustomApis','tests','copySchedulersToAnotherDir','serializeFolderWithBinary','instanceName','uncaughtException','POST','SchedulersWriteF','copyDBMigrationsToAnotherDir','then','removeEmptyDirsSync','amTypes','close','ProcessI18NReadF','copyUtilityClassesToAnotherDir','type','invalidOnEvents','\x27\x20exited\x20with\x20code\x20','PROCESS_INITIALIZERS','executeNpmRun','getSeconds','——————————————————————————————————————\x20Note\x20——————————————————————————————————————','copyDBMasterStylesToAnotherDir','DELETE','package.json','copyDBMastersToAnotherDir','UI_MAKER_STYLES','LOCAL_CLIENT_SYNC_EVENTS','——————————————————————————————————————————————————————————————————————————————————','./src','mkdir','db-migrations','ProcessI18NWriteF','syncAllDataWithServer','installRequiredPackages','errors','unlink','6130tKXtEH','UNKNOWN','ui-maker-utils','unlinkSync','am_tp_installed_apis','database-hooks','am_instance_api_hooks','databaseName','24duvapq','am_collection_hooks','SYSTEM_API_SETTINGS','base64','onerror','push','versions','copyFilesToProjectDir','add','✅\x20Connected\x20to\x20server\x20via\x20WS','path','Schedulers','SYSTEM_APIS','response','parse','load','WebSocketEvents','✓\x20Send\x20:\x20[','length','types','appRoot','PUT','all','REGISTER','System\x20API\x20hooks','.js','eventType','Node.js\x2022+\x20is\x20required.\x20Current\x20version:\x20','SIGTERM\x20received\x20—\x20shutting\x20down','rmdirSync','skipWatchInputs','padStart','✅\x20Local\x20client\x20started...','chokidar@4.0.3','ui-maker-pages','--force','validOnEvents','3190995bjGNOH','printNotes','2CfdkMo','13745314yNLrLM','customApiName','fsWriteFile','CollectionHooksReadF','replace','Failed\x20to\x20start\x20the\x20npm\x20process:\x20','UtilityClasses','DB_MASTERS','connectToServerViaWS','onopen','am_db_masters','link','listeners','Database\x20migrations','copyWebSocketEventsToAnotherDir','child_process','instanceApiName','utf8','writeMemfsJsonToDisk','copyDBMasterUtilsToAnotherDir','DBMasters','cyanStart','2424928zJzPfA','DB\x20masters','TEST_CASES','getHours','WEB_SOCKET_EVENT','INSTANCES','SchemaWriteF','chokidar','\x20Current\x20Dir\x20:\x20','beforeExit','copyThirdPartyApisToAnotherDir','log','Third\x20party\x20APIs','npm','ProcessInitializersWriteF','am_database_migrations','SYSTEM_API_HOOKS','isDirectory','CollectionHooksWriteF','TOKEN_VALIDATION','Error\x20while\x20connecting\x20to\x20WS\x20server.','startsWith','am-types','folderPath','CUSTOM_APIS','skipFileWritingForLocal','LC_FOLDER_CHANGED_ON_LOCAL_SYSTEM','THIRD_PARTY_API_SETTINGS','unhandledRejection','Instance\x20hooks','collectionName','Instance\x20API\x20settings','copyCollectionHooksToAnotherDir','normalize','instances','compilerOptions','exports','Events','6tevjHK','collection-hooks','dirname','warn','InstanceHooks','TestCasesWriteF','WebSocketEventsWriteF','post-hooks','exit','SystemApiSettings','11684410MiyjaV','UTILITY_CLASSES','am_events','message','DatabaseHooksWriteF','readDirCustom','sendToServer','EVENTS_WS','copyCustomApisToAnotherDir','repo','data','paths','ui-maker-styles','split','getChangedFolderForDeleted','unlinkDir','DB\x20master\x20utils','DatabaseHooksReadF','am_tp_api_versions','postHooks'];a0_0x35eb=function(){return _0x190712;};return a0_0x35eb();}
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkapi_maker_fe=self.webpackChunkapi_maker_fe||[]).push([[3081],{3081:(Jt,C,l)=>{l.r(C),l.d(C,{DeployApiMakerM:()=>Mt});var Q=l(7664),c=l(6814),_=l(9862),e=l(4946),p=l(5219),g=l(707),x=l(2076),T=l(3983),f=l(7778),I=l(4713),b=l(2332);let y=(()=>{class i extends I.s{pathId;ngOnInit(){this.pathId="url(#"+(0,b.Th)()+")"}static \u0275fac=function(){let t;return function(s){return(t||(t=e.n5z(i)))(s||i)}}();static \u0275cmp=e.Xpm({type:i,selectors:[["UploadIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,s){1&n&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1),e.qZA(),e.TgZ(3,"defs")(4,"clipPath",2),e._UZ(5,"rect",3),e.qZA()()()),2&n&&(e.Tol(s.getClassNames()),e.uIk("aria-label",s.ariaLabel)("aria-hidden",s.ariaHidden)("role",s.role),e.xp6(1),e.uIk("clip-path",s.pathId),e.xp6(3),e.Q6J("id",s.pathId))},encapsulation:2})}return i})();var d=l(6825),F=l(2591);let w=(()=>{class i extends I.s{pathId;ngOnInit(){this.pathId="url(#"+(0,b.Th)()+")"}static \u0275fac=function(){let t;return function(s){return(t||(t=e.n5z(i)))(s||i)}}();static \u0275cmp=e.Xpm({type:i,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,s){1&n&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1)(3,"path",2)(4,"path",3),e.qZA(),e.TgZ(5,"defs")(6,"clipPath",4),e._UZ(7,"rect",5),e.qZA()()()),2&n&&(e.Tol(s.getClassNames()),e.uIk("aria-label",s.ariaLabel)("aria-hidden",s.ariaHidden)("role",s.role),e.xp6(1),e.uIk("clip-path",s.pathId),e.xp6(5),e.Q6J("id",s.pathId))},encapsulation:2})}return i})(),U=(()=>{class i extends I.s{pathId;ngOnInit(){this.pathId="url(#"+(0,b.Th)()+")"}static \u0275fac=function(){let t;return function(s){return(t||(t=e.n5z(i)))(s||i)}}();static \u0275cmp=e.Xpm({type:i,selectors:[["InfoCircleIcon"]],standalone:!0,features:[e.qOj,e.jDz],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,s){1&n&&(e.O4$(),e.TgZ(0,"svg",0)(1,"g"),e._UZ(2,"path",1),e.qZA(),e.TgZ(3,"defs")(4,"clipPath",2),e._UZ(5,"rect",3),e.qZA()()()),2&n&&(e.Tol(s.getClassNames()),e.uIk("aria-label",s.ariaLabel)("aria-hidden",s.ariaHidden)("role",s.role),e.xp6(1),e.uIk("clip-path",s.pathId),e.xp6(3),e.Q6J("id",s.pathId))},encapsulation:2})}return i})();var k=l(8468),m=l(4480),A=l(5592),E=l(4352),N=l(671);function D(i,a){if(1&i&&e._UZ(0,"span"),2&i){const t=e.oxw().$implicit;e.Tol("p-message-icon pi "+t.icon),e.uIk("data-pc-section","icon")}}function B(i,a){1&i&&e._UZ(0,"CheckIcon"),2&i&&e.uIk("data-pc-section","icon")}function P(i,a){1&i&&e._UZ(0,"InfoCircleIcon"),2&i&&e.uIk("data-pc-section","icon")}function z(i,a){1&i&&e._UZ(0,"TimesCircleIcon"),2&i&&e.uIk("data-pc-section","icon")}function H(i,a){1&i&&e._UZ(0,"ExclamationTriangleIcon"),2&i&&e.uIk("data-pc-section","icon")}function R(i,a){if(1&i&&(e.TgZ(0,"span",10),e.ynx(1),e.YNc(2,B,1,1,"CheckIcon",11),e.YNc(3,P,1,1,"InfoCircleIcon",11),e.YNc(4,z,1,1,"TimesCircleIcon",11),e.YNc(5,H,1,1,"ExclamationTriangleIcon",11),e.BQk(),e.qZA()),2&i){const t=e.oxw().$implicit;e.xp6(2),e.Q6J("ngIf","success"===t.severity),e.xp6(1),e.Q6J("ngIf","info"===t.severity),e.xp6(1),e.Q6J("ngIf","error"===t.severity),e.xp6(1),e.Q6J("ngIf","warn"===t.severity)}}function V(i,a){if(1&i&&e._UZ(0,"span",14),2&i){const t=e.oxw(2).$implicit;e.Q6J("innerHTML",t.summary,e.oJD),e.uIk("data-pc-section","summary")}}function q(i,a){if(1&i&&e._UZ(0,"span",15),2&i){const t=e.oxw(2).$implicit;e.Q6J("innerHTML",t.detail,e.oJD),e.uIk("data-pc-section","detail")}}function G(i,a){if(1&i&&(e.ynx(0),e.YNc(1,V,1,2,"span",12),e.YNc(2,q,1,2,"span",13),e.BQk()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",t.summary),e.xp6(1),e.Q6J("ngIf",t.detail)}}function j(i,a){if(1&i&&(e.TgZ(0,"span",18),e._uU(1),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.uIk("data-pc-section","summary"),e.xp6(1),e.Oqu(t.summary)}}function K(i,a){if(1&i&&(e.TgZ(0,"span",19),e._uU(1),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.uIk("data-pc-section","detail"),e.xp6(1),e.Oqu(t.detail)}}function $(i,a){if(1&i&&(e.YNc(0,j,2,2,"span",16),e.YNc(1,K,2,2,"span",17)),2&i){const t=e.oxw().$implicit;e.Q6J("ngIf",t.summary),e.xp6(1),e.Q6J("ngIf",t.detail)}}function W(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(t);const s=e.oxw().index,o=e.oxw(2);return e.KtG(o.removeMessage(s))}),e._UZ(1,"TimesIcon",21),e.qZA()}2&i&&(e.uIk("aria-label","Close")("data-pc-section","closebutton"),e.xp6(1),e.Q6J("styleClass","p-message-close-icon"),e.uIk("data-pc-section","closeicon"))}const X=function(i,a){return{showTransitionParams:i,hideTransitionParams:a}},ee=function(i){return{value:"visible",params:i}};function te(i,a){if(1&i&&(e.TgZ(0,"div",4)(1,"div",5),e.YNc(2,D,1,3,"span",6),e.YNc(3,R,6,4,"span",7),e.YNc(4,G,3,2,"ng-container",1),e.YNc(5,$,2,2,"ng-template",null,8,e.W1O),e.YNc(7,W,2,4,"button",9),e.qZA()()),2&i){const t=a.$implicit,n=e.MAs(6),s=e.oxw(2);e.Tol("p-message p-message-"+t.severity),e.Q6J("@messageAnimation",e.VKq(12,ee,e.WLB(9,X,s.showTransitionOptions,s.hideTransitionOptions))),e.xp6(1),e.uIk("data-pc-section","wrapper"),e.xp6(1),e.Q6J("ngIf",t.icon),e.xp6(1),e.Q6J("ngIf",!t.icon),e.xp6(1),e.Q6J("ngIf",!s.escape)("ngIfElse",n),e.xp6(3),e.Q6J("ngIf",s.closable)}}function ie(i,a){if(1&i&&(e.ynx(0),e.YNc(1,te,8,14,"div",3),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.messages)}}function ne(i,a){1&i&&e.GkF(0)}function se(i,a){if(1&i&&(e.TgZ(0,"div",22)(1,"div",5),e.YNc(2,ne,1,0,"ng-container",23),e.qZA()()),2&i){const t=e.oxw();e.Q6J("ngClass","p-message p-message-"+t.severity),e.xp6(2),e.Q6J("ngTemplateOutlet",t.contentTemplate)}}let ae=(()=>{class i{messageService;el;cd;set value(t){this.messages=t,this.startMessageLifes(this.messages)}closable=!0;style;styleClass;enableService=!0;key;escape=!0;severity;showTransitionOptions="300ms ease-out";hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)";valueChange=new e.vpe;templates;messages;messageSubscription;clearSubscription;timerSubscriptions=[];contentTemplate;constructor(t,n,s){this.messageService=t,this.el=n,this.cd=s}ngAfterContentInit(){this.templates?.forEach(t=>{t.getType(),this.contentTemplate=t.template}),this.messageService&&this.enableService&&!this.contentTemplate&&(this.messageSubscription=this.messageService.messageObserver.subscribe(t=>{if(t){Array.isArray(t)||(t=[t]);const n=t.filter(s=>this.key===s.key);this.messages=this.messages?[...this.messages,...n]:[...n],this.startMessageLifes(n),this.cd.markForCheck()}}),this.clearSubscription=this.messageService.clearObserver.subscribe(t=>{t?this.key===t&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}hasMessages(){let t=this.el.nativeElement.parentElement;return!(!t||!t.offsetParent)&&(null!=this.contentTemplate||this.messages&&this.messages.length>0)}clear(){this.messages=[],this.valueChange.emit(this.messages)}removeMessage(t){this.messages=this.messages?.filter((n,s)=>s!==t),this.valueChange.emit(this.messages)}get icon(){const t=this.severity||(this.hasMessages()?this.messages[0].severity:null);if(this.hasMessages())switch(t){case"success":return"pi-check";case"info":default:return"pi-info-circle";case"error":return"pi-times";case"warn":return"pi-exclamation-triangle"}return null}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.timerSubscriptions?.forEach(t=>t.unsubscribe())}startMessageLifes(t){t?.forEach(n=>n.life&&this.startMessageLife(n))}startMessageLife(t){const n=function O(i=0,a,t=E.P){let n=-1;return null!=a&&((0,N.K)(a)?t=a:n=a),new A.y(s=>{let o=function Y(i){return i instanceof Date&&!isNaN(i)}(i)?+i-t.now():i;o<0&&(o=0);let r=0;return t.schedule(function(){s.closed||(s.next(r++),0<=n?this.schedule(void 0,n):s.complete())},o)})}(t.life).subscribe(()=>{this.messages=this.messages?.filter(s=>s!==t),this.timerSubscriptions=this.timerSubscriptions?.filter(s=>s!==n),this.valueChange.emit(this.messages),this.cd.markForCheck()});this.timerSubscriptions.push(n)}static \u0275fac=function(n){return new(n||i)(e.Y36(p.ez,8),e.Y36(e.SBq),e.Y36(e.sBO))};static \u0275cmp=e.Xpm({type:i,selectors:[["p-messages"]],contentQueries:function(n,s,o){if(1&n&&e.Suo(o,p.jx,4),2&n){let r;e.iGM(r=e.CRH())&&(s.templates=r)}},hostAttrs:[1,"p-element"],inputs:{value:"value",closable:"closable",style:"style",styleClass:"styleClass",enableService:"enableService",key:"key",escape:"escape",severity:"severity",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{valueChange:"valueChange"},decls:4,vars:8,consts:[["role","alert",1,"p-messages","p-component",3,"ngStyle"],[4,"ngIf","ngIfElse"],["staticMessage",""],["role","alert",3,"class",4,"ngFor","ngForOf"],["role","alert"],[1,"p-message-wrapper"],[3,"class",4,"ngIf"],["class","p-message-icon",4,"ngIf"],["escapeOut",""],["class","p-message-close p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-message-icon"],[4,"ngIf"],["class","p-message-summary",3,"innerHTML",4,"ngIf"],["class","p-message-detail",3,"innerHTML",4,"ngIf"],[1,"p-message-summary",3,"innerHTML"],[1,"p-message-detail",3,"innerHTML"],["class","p-message-summary",4,"ngIf"],["class","p-message-detail",4,"ngIf"],[1,"p-message-summary"],[1,"p-message-detail"],["type","button","pRipple","",1,"p-message-close","p-link",3,"click"],[3,"styleClass"],["role","alert",3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(n,s){if(1&n&&(e.TgZ(0,"div",0),e.YNc(1,ie,2,1,"ng-container",1),e.YNc(2,se,3,2,"ng-template",null,2,e.W1O),e.qZA()),2&n){const o=e.MAs(3);e.Tol(s.styleClass),e.Q6J("ngStyle",s.style),e.uIk("aria-atomic",!0)("aria-live","assertive")("data-pc-name","message"),e.xp6(1),e.Q6J("ngIf",!s.contentTemplate)("ngIfElse",o)}},dependencies:function(){return[c.mk,c.sg,c.O5,c.tP,c.PC,m.H,F.n,U,k.x,w,f.q]},styles:["@layer primeng{.p-message-wrapper{display:flex;align-items:center}.p-message-close{display:flex;align-items:center;justify-content:center;flex:none}.p-message-close.p-link{margin-left:auto;overflow:hidden;position:relative}.p-messages .p-message.ng-animating{overflow:hidden}}\n"],encapsulation:2,data:{animation:[(0,d.X$)("messageAnimation",[(0,d.eR)(":enter",[(0,d.oB)({opacity:0,transform:"translateY(-25%)"}),(0,d.jt)("{{showTransitionParams}}")]),(0,d.eR)(":leave",[(0,d.jt)("{{hideTransitionParams}}",(0,d.oB)({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0})}return i})(),M=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[c.ez,m.T,F.n,U,k.x,w,f.q]})}return i})();function oe(i,a){if(1&i&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.Udp("display",null!=t.value&&0!==t.value?"flex":"none"),e.uIk("data-pc-section","label"),e.xp6(1),e.AsE("",t.value,"",t.unit,"")}}function le(i,a){if(1&i&&(e.TgZ(0,"div",3),e.YNc(1,oe,2,5,"div",4),e.qZA()),2&i){const t=e.oxw();e.Udp("width",t.value+"%")("background",t.color),e.uIk("data-pc-section","value"),e.xp6(1),e.Q6J("ngIf",t.showValue)}}function re(i,a){if(1&i&&(e.TgZ(0,"div",6),e._UZ(1,"div",7),e.qZA()),2&i){const t=e.oxw();e.uIk("data-pc-section","container"),e.xp6(1),e.Udp("background",t.color),e.uIk("data-pc-section","value")}}const ce=function(i,a){return{"p-progressbar p-component":!0,"p-progressbar-determinate":i,"p-progressbar-indeterminate":a}};let S=(()=>{class i{value;showValue=!0;styleClass;style;unit="%";mode="determinate";color;static \u0275fac=function(n){return new(n||i)};static \u0275cmp=e.Xpm({type:i,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",styleClass:"styleClass",style:"style",unit:"unit",mode:"mode",color:"color"},decls:3,vars:14,consts:[["role","progressbar",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width","background",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0),e.YNc(1,le,2,6,"div",1),e.YNc(2,re,2,4,"div",2),e.qZA()),2&n&&(e.Tol(s.styleClass),e.Q6J("ngStyle",s.style)("ngClass",e.WLB(11,ce,"determinate"===s.mode,"indeterminate"===s.mode)),e.uIk("aria-valuemin",0)("aria-valuenow",s.value)("aria-valuemax",100)("data-pc-name","progressbar")("data-pc-section","root"),e.xp6(1),e.Q6J("ngIf","determinate"===s.mode),e.xp6(1),e.Q6J("ngIf","indeterminate"===s.mode))},dependencies:[c.mk,c.O5,c.PC],styles:['@layer primeng{.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0})}return i})(),Z=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[c.ez]})}return i})();var pe=l(6593);const de=["advancedfileinput"],ue=["basicfileinput"],_e=["content"];function ge(i,a){if(1&i&&e._UZ(0,"span",18),2&i){const t=e.oxw(2);e.Tol(t.chooseIcon),e.Q6J("ngClass","p-button-icon p-button-icon-left"),e.uIk("aria-label",!0)("data-pc-section","chooseicon")}}function fe(i,a){1&i&&e._UZ(0,"PlusIcon",21),2&i&&(e.Q6J("styleClass","p-button-icon p-button-icon-left"),e.uIk("aria-label",!0)("data-pc-section","chooseicon"))}function me(i,a){}function he(i,a){1&i&&e.YNc(0,me,0,0,"ng-template")}function ve(i,a){if(1&i&&(e.TgZ(0,"span",22),e.YNc(1,he,1,0,null,11),e.qZA()),2&i){const t=e.oxw(3);e.uIk("aria-label",!0)("data-pc-section","chooseicon"),e.xp6(1),e.Q6J("ngTemplateOutlet",t.chooseIconTemplate)}}function xe(i,a){if(1&i&&(e.ynx(0),e.YNc(1,fe,1,3,"PlusIcon",19),e.YNc(2,ve,2,3,"span",20),e.BQk()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.chooseIconTemplate),e.xp6(1),e.Q6J("ngIf",t.chooseIconTemplate)}}function Ie(i,a){if(1&i&&e._UZ(0,"span",25),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.uploadIcon),e.uIk("aria-hidden",!0)}}function be(i,a){1&i&&e._UZ(0,"UploadIcon",21),2&i&&e.Q6J("styleClass","p-button-icon p-button-icon-left")}function Ce(i,a){}function Te(i,a){1&i&&e.YNc(0,Ce,0,0,"ng-template")}function ye(i,a){if(1&i&&(e.TgZ(0,"span",22),e.YNc(1,Te,1,0,null,11),e.qZA()),2&i){const t=e.oxw(4);e.uIk("aria-hidden",!0),e.xp6(1),e.Q6J("ngTemplateOutlet",t.uploadIconTemplate)}}function Fe(i,a){if(1&i&&(e.ynx(0),e.YNc(1,be,1,1,"UploadIcon",19),e.YNc(2,ye,2,2,"span",20),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!t.uploadIconTemplate),e.xp6(1),e.Q6J("ngIf",t.uploadIconTemplate)}}function we(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"p-button",23),e.NdJ("onClick",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.upload())}),e.YNc(1,Ie,1,2,"span",24),e.YNc(2,Fe,3,2,"ng-container",8),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("label",t.uploadButtonLabel)("disabled",!t.hasFiles()||t.isFileLimitExceeded())("styleClass",t.uploadStyleClass),e.xp6(1),e.Q6J("ngIf",t.uploadIcon),e.xp6(1),e.Q6J("ngIf",!t.uploadIcon)}}function Ue(i,a){if(1&i&&e._UZ(0,"span",25),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.cancelIcon)}}function ke(i,a){1&i&&e._UZ(0,"TimesIcon",21),2&i&&(e.Q6J("styleClass","p-button-icon p-button-icon-left"),e.uIk("aria-hidden",!0))}function Me(i,a){}function Se(i,a){1&i&&e.YNc(0,Me,0,0,"ng-template")}function Ze(i,a){if(1&i&&(e.TgZ(0,"span",22),e.YNc(1,Se,1,0,null,11),e.qZA()),2&i){const t=e.oxw(4);e.uIk("aria-hidden",!0),e.xp6(1),e.Q6J("ngTemplateOutlet",t.cancelIconTemplate)}}function Je(i,a){if(1&i&&(e.ynx(0),e.YNc(1,ke,1,2,"TimesIcon",19),e.YNc(2,Ze,2,2,"span",20),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!t.cancelIconTemplate),e.xp6(1),e.Q6J("ngIf",t.cancelIconTemplate)}}function Le(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"p-button",23),e.NdJ("onClick",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.clear())}),e.YNc(1,Ue,1,1,"span",24),e.YNc(2,Je,3,2,"ng-container",8),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("label",t.cancelButtonLabel)("disabled",!t.hasFiles()||t.uploading)("styleClass",t.cancelStyleClass),e.xp6(1),e.Q6J("ngIf",t.cancelIcon),e.xp6(1),e.Q6J("ngIf",!t.cancelIcon)}}function Qe(i,a){1&i&&e.GkF(0)}function Ae(i,a){if(1&i&&e._UZ(0,"p-progressBar",26),2&i){const t=e.oxw(2);e.Q6J("value",t.progress)("showValue",!1)}}function Ee(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"img",33),e.NdJ("error",function(s){e.CHM(t);const o=e.oxw(5);return e.KtG(o.imageError(s))}),e.qZA()}if(2&i){const t=e.oxw().$implicit,n=e.oxw(4);e.Q6J("src",t.objectURL,e.LSH)("width",n.previewWidth)}}function Ne(i,a){1&i&&e._UZ(0,"TimesIcon")}function Ye(i,a){}function Oe(i,a){1&i&&e.YNc(0,Ye,0,0,"ng-template")}function De(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",29)(1,"div"),e.YNc(2,Ee,1,2,"img",30),e.qZA(),e.TgZ(3,"div",31),e._uU(4),e.qZA(),e.TgZ(5,"div"),e._uU(6),e.qZA(),e.TgZ(7,"div")(8,"button",32),e.NdJ("click",function(s){const r=e.CHM(t).index,u=e.oxw(4);return e.KtG(u.remove(s,r))}),e.YNc(9,Ne,1,0,"TimesIcon",8),e.YNc(10,Oe,1,0,null,11),e.qZA()()()}if(2&i){const t=a.$implicit,n=e.oxw(4);e.xp6(2),e.Q6J("ngIf",n.isImage(t)),e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Oqu(n.formatSize(t.size)),e.xp6(2),e.Tol(n.removeStyleClass),e.Q6J("disabled",n.uploading),e.xp6(1),e.Q6J("ngIf",!n.cancelIconTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",n.cancelIconTemplate)}}function Be(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,De,11,8,"div",28),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.files)}}function Pe(i,a){}function ze(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Pe,0,0,"ng-template",34),e.qZA()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.files)("ngForTemplate",t.fileTemplate)}}function He(i,a){if(1&i&&(e.TgZ(0,"div",27),e.YNc(1,Be,2,1,"div",8),e.YNc(2,ze,2,2,"div",8),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!t.fileTemplate),e.xp6(1),e.Q6J("ngIf",t.fileTemplate)}}function Re(i,a){1&i&&e.GkF(0)}const Ve=function(i,a){return{"p-focus":i,"p-disabled":a}},qe=function(i){return{$implicit:i}};function Ge(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"span",4),e.NdJ("focus",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.onFocus())})("blur",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.onBlur())})("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.choose())})("keydown.enter",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.choose())}),e.TgZ(3,"input",5,6),e.NdJ("change",function(s){e.CHM(t);const o=e.oxw();return e.KtG(o.onFileSelect(s))}),e.qZA(),e.YNc(5,ge,1,5,"span",7),e.YNc(6,xe,3,2,"ng-container",8),e.TgZ(7,"span",9),e._uU(8),e.qZA()(),e.YNc(9,we,3,5,"p-button",10),e.YNc(10,Le,3,5,"p-button",10),e.YNc(11,Qe,1,0,"ng-container",11),e.qZA(),e.TgZ(12,"div",12,13),e.NdJ("dragenter",function(s){e.CHM(t);const o=e.oxw();return e.KtG(o.onDragEnter(s))})("dragleave",function(s){e.CHM(t);const o=e.oxw();return e.KtG(o.onDragLeave(s))})("drop",function(s){e.CHM(t);const o=e.oxw();return e.KtG(o.onDrop(s))}),e.YNc(14,Ae,1,2,"p-progressBar",14),e._UZ(15,"p-messages",15),e.YNc(16,He,3,2,"div",16),e.YNc(17,Re,1,0,"ng-container",17),e.qZA()()}if(2&i){const t=e.oxw();e.Tol(t.styleClass),e.Q6J("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",t.style),e.uIk("data-pc-name","fileupload")("data-pc-section","root"),e.xp6(1),e.uIk("data-pc-section","buttonbar"),e.xp6(1),e.Tol(t.chooseStyleClass),e.Q6J("ngClass",e.WLB(30,Ve,t.focus,t.disabled||t.isChooseDisabled())),e.uIk("data-pc-section","choosebutton"),e.xp6(1),e.Q6J("multiple",t.multiple)("accept",t.accept)("disabled",t.disabled||t.isChooseDisabled()),e.uIk("title","")("data-pc-section","input"),e.xp6(2),e.Q6J("ngIf",t.chooseIcon),e.xp6(1),e.Q6J("ngIf",!t.chooseIcon),e.xp6(1),e.uIk("data-pc-section","choosebuttonlabel"),e.xp6(1),e.Oqu(t.chooseButtonLabel),e.xp6(1),e.Q6J("ngIf",!t.auto&&t.showUploadButton),e.xp6(1),e.Q6J("ngIf",!t.auto&&t.showCancelButton),e.xp6(1),e.Q6J("ngTemplateOutlet",t.toolbarTemplate),e.xp6(1),e.uIk("data-pc-section","content"),e.xp6(2),e.Q6J("ngIf",t.hasFiles()),e.xp6(1),e.Q6J("value",t.msgs)("enableService",!1),e.xp6(1),e.Q6J("ngIf",t.hasFiles()),e.xp6(1),e.Q6J("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",e.VKq(33,qe,t.files))}}function je(i,a){if(1&i&&e._UZ(0,"span",25),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.uploadIcon)}}function Ke(i,a){1&i&&e._UZ(0,"UploadIcon",21),2&i&&e.Q6J("styleClass","p-button-icon p-button-icon-left")}function $e(i,a){}function We(i,a){1&i&&e.YNc(0,$e,0,0,"ng-template")}function Xe(i,a){if(1&i&&(e.TgZ(0,"span",22),e.YNc(1,We,1,0,null,11),e.qZA()),2&i){const t=e.oxw(4);e.xp6(1),e.Q6J("ngTemplateOutlet",t.uploadIconTemplate)}}function et(i,a){if(1&i&&(e.ynx(0),e.YNc(1,Ke,1,1,"UploadIcon",19),e.YNc(2,Xe,2,1,"span",20),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!t.uploadIconTemplate),e.xp6(1),e.Q6J("ngIf",t.uploadIconTemplate)}}function tt(i,a){if(1&i&&(e.ynx(0),e.YNc(1,je,1,1,"span",24),e.YNc(2,et,3,2,"ng-container",8),e.BQk()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.uploadIcon),e.xp6(1),e.Q6J("ngIf",!t.uploadIcon)}}function it(i,a){if(1&i&&e._UZ(0,"span",42),2&i){const t=e.oxw(3);e.Q6J("ngClass",t.chooseIcon)}}function nt(i,a){1&i&&e._UZ(0,"PlusIcon",21),2&i&&(e.Q6J("styleClass","p-button-icon p-button-icon-left pi"),e.uIk("aria-hidden",!0)("data-pc-section","uploadicon"))}function st(i,a){}function at(i,a){1&i&&e.YNc(0,st,0,0,"ng-template")}function ot(i,a){if(1&i&&(e.TgZ(0,"span",44),e.YNc(1,at,1,0,null,11),e.qZA()),2&i){const t=e.oxw(4);e.uIk("aria-hidden",!0)("data-pc-section","uploadicon"),e.xp6(1),e.Q6J("ngTemplateOutlet",t.chooseIconTemplate)}}function lt(i,a){if(1&i&&(e.ynx(0),e.YNc(1,nt,1,3,"PlusIcon",19),e.YNc(2,ot,2,3,"span",43),e.BQk()),2&i){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!t.chooseIconTemplate),e.xp6(1),e.Q6J("ngIf",t.chooseIconTemplate)}}function rt(i,a){if(1&i&&(e.YNc(0,it,1,1,"span",41),e.YNc(1,lt,3,2,"ng-container",8)),2&i){const t=e.oxw(2);e.Q6J("ngIf",t.chooseIcon),e.xp6(1),e.Q6J("ngIf",!t.chooseIcon)}}function ct(i,a){if(1&i&&(e.TgZ(0,"span",9),e._uU(1),e.qZA()),2&i){const t=e.oxw(2);e.uIk("data-pc-section","label"),e.xp6(1),e.Oqu(t.basicButtonLabel)}}function pt(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"input",45,46),e.NdJ("change",function(s){e.CHM(t);const o=e.oxw(2);return e.KtG(o.onFileSelect(s))})("focus",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.onFocus())})("blur",function(){e.CHM(t);const s=e.oxw(2);return e.KtG(s.onBlur())}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("accept",t.accept)("multiple",t.multiple)("disabled",t.disabled),e.uIk("data-pc-section","input")}}const dt=function(i,a,t,n){return{"p-button p-component p-fileupload-choose":!0,"p-button-icon-only":i,"p-fileupload-choose-selected":a,"p-focus":t,"p-disabled":n}};function ut(i,a){if(1&i){const t=e.EpF();e.TgZ(0,"div",35),e._UZ(1,"p-messages",15),e.TgZ(2,"span",36),e.NdJ("click",function(){e.CHM(t);const s=e.oxw();return e.KtG(s.onBasicUploaderClick())})("keydown",function(s){e.CHM(t);const o=e.oxw();return e.KtG(o.onBasicKeydown(s))}),e.YNc(3,tt,3,2,"ng-container",37),e.YNc(4,rt,2,2,"ng-template",null,38,e.W1O),e.YNc(6,ct,2,2,"span",39),e.YNc(7,pt,2,4,"input",40),e.qZA()()}if(2&i){const t=e.MAs(5),n=e.oxw();e.uIk("data-pc-name","fileupload"),e.xp6(1),e.Q6J("value",n.msgs)("enableService",!1),e.xp6(1),e.Tol(n.styleClass),e.Q6J("ngClass",e.l5B(12,dt,!n.basicButtonLabel,n.hasFiles(),n.focus,n.disabled))("ngStyle",n.style),e.uIk("data-pc-section","choosebutton"),e.xp6(1),e.Q6J("ngIf",n.hasFiles()&&!n.auto)("ngIfElse",t),e.xp6(3),e.Q6J("ngIf",n.basicButtonLabel),e.xp6(1),e.Q6J("ngIf",!n.hasFiles())}}let _t=(()=>{class i{document;platformId;renderer;el;sanitizer;zone;http;cd;config;name;url;method="post";multiple;accept;disabled;auto;withCredentials;maxFileSize;invalidFileSizeMessageSummary="{0}: Invalid file size, ";invalidFileSizeMessageDetail="maximum upload size is {0}.";invalidFileTypeMessageSummary="{0}: Invalid file type, ";invalidFileTypeMessageDetail="allowed file types: {0}.";invalidFileLimitMessageDetail="limit is {0} at most.";invalidFileLimitMessageSummary="Maximum number of files exceeded, ";style;styleClass;previewWidth=50;chooseLabel;uploadLabel;cancelLabel;chooseIcon;uploadIcon;cancelIcon;showUploadButton=!0;showCancelButton=!0;mode="advanced";headers;customUpload;fileLimit;uploadStyleClass;cancelStyleClass;removeStyleClass;chooseStyleClass;onBeforeUpload=new e.vpe;onSend=new e.vpe;onUpload=new e.vpe;onError=new e.vpe;onClear=new e.vpe;onRemove=new e.vpe;onSelect=new e.vpe;onProgress=new e.vpe;uploadHandler=new e.vpe;onImageError=new e.vpe;templates;advancedFileInput;basicFileInput;content;set files(t){this._files=[];for(let n=0;n<t.length;n++){let s=t[n];this.validate(s)&&(this.isImage(s)&&(s.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(t[n]))),this._files.push(t[n]))}}get files(){return this._files}get basicButtonLabel(){return this.auto||!this.hasFiles()?this.chooseLabel:this.uploadLabel??this.files[0].name}_files=[];progress=0;dragHighlight;msgs;fileTemplate;contentTemplate;toolbarTemplate;chooseIconTemplate;uploadIconTemplate;cancelIconTemplate;uploadedFileCount=0;focus;uploading;duplicateIEEvent;translationSubscription;dragOverListener;constructor(t,n,s,o,r,u,v,St,Zt){this.document=t,this.platformId=n,this.renderer=s,this.el=o,this.sanitizer=r,this.zone=u,this.http=v,this.cd=St,this.config=Zt}ngAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"file":default:this.fileTemplate=t.template;break;case"content":this.contentTemplate=t.template;break;case"toolbar":this.toolbarTemplate=t.template;break;case"chooseicon":this.chooseIconTemplate=t.template;break;case"uploadicon":this.uploadIconTemplate=t.template;break;case"cancelicon":this.cancelIconTemplate=t.template}})}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){(0,c.NF)(this.platformId)&&"advanced"===this.mode&&this.zone.runOutsideAngular(()=>{this.content&&(this.dragOverListener=this.renderer.listen(this.content.nativeElement,"dragover",this.onDragOver.bind(this)))})}getTranslation(t){return this.config.getTranslation(t)}choose(){this.advancedFileInput?.nativeElement.click()}onFileSelect(t){if("drop"!==t.type&&this.isIE11()&&this.duplicateIEEvent)return void(this.duplicateIEEvent=!1);this.msgs=[],this.multiple||(this.files=[]);let n=t.dataTransfer?t.dataTransfer.files:t.target.files;for(let s=0;s<n.length;s++){let o=n[s];this.isFileSelected(o)||this.validate(o)&&(this.isImage(o)&&(o.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(n[s]))),this.files.push(n[s]))}this.onSelect.emit({originalEvent:t,files:n,currentFiles:this.files}),this.fileLimit&&this.checkFileLimit(),this.hasFiles()&&this.auto&&("advanced"!==this.mode||!this.isFileLimitExceeded())&&this.upload(),"drop"!==t.type&&this.isIE11()?this.clearIEInput():this.clearInputElement()}isFileSelected(t){for(let n of this.files)if(n.name+n.type+n.size===t.name+t.type+t.size)return!0;return!1}isIE11(){if((0,c.NF)(this.platformId))return!!this.document.defaultView.MSInputMethodContext&&!!this.document.documentMode}validate(t){return this.msgs=this.msgs||[],this.accept&&!this.isFileTypeValid(t)?(this.msgs.push({severity:"error",summary:this.invalidFileTypeMessageSummary.replace("{0}",t.name),detail:this.invalidFileTypeMessageDetail.replace("{0}",this.accept)}),!1):!(this.maxFileSize&&t.size>this.maxFileSize&&(this.msgs.push({severity:"error",summary:this.invalidFileSizeMessageSummary.replace("{0}",t.name),detail:this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}),1))}isFileTypeValid(t){let n=this.accept?.split(",").map(s=>s.trim());for(let s of n)if(this.isWildcard(s)?this.getTypeClass(t.type)===this.getTypeClass(s):t.type==s||this.getFileExtension(t).toLowerCase()===s.toLowerCase())return!0;return!1}getTypeClass(t){return t.substring(0,t.indexOf("/"))}isWildcard(t){return-1!==t.indexOf("*")}getFileExtension(t){return"."+t.name.split(".").pop()}isImage(t){return/^image\//.test(t.type)}onImageLoad(t){window.URL.revokeObjectURL(t.src)}upload(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let t=new FormData;this.onBeforeUpload.emit({formData:t});for(let n=0;n<this.files.length;n++)t.append(this.name,this.files[n],this.files[n].name);this.http.request(this.method,this.url,{body:t,headers:this.headers,reportProgress:!0,observe:"events",withCredentials:this.withCredentials}).subscribe(n=>{switch(n.type){case _.dt.Sent:this.onSend.emit({originalEvent:n,formData:t});break;case _.dt.Response:this.uploading=!1,this.progress=0,n.status>=200&&n.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:n,files:this.files})):this.onError.emit({files:this.files}),this.clear();break;case _.dt.UploadProgress:n.loaded&&(this.progress=Math.round(100*n.loaded/n.total)),this.onProgress.emit({originalEvent:n,progress:this.progress})}this.cd.markForCheck()},n=>{this.uploading=!1,this.onError.emit({files:this.files,error:n})})}}clear(){this.files=[],this.uploadedFileCount=0,this.onClear.emit(),this.clearInputElement(),this.cd.markForCheck()}remove(t,n){this.clearInputElement(),this.onRemove.emit({originalEvent:t,file:this.files[n]}),this.files.splice(n,1),this.checkFileLimit()}isFileLimitExceeded(){const n=this.auto?this.files.length:this.files.length+this.uploadedFileCount;return this.fileLimit&&this.fileLimit<=n&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit<n}isChooseDisabled(){return this.auto?this.fileLimit&&this.fileLimit<=this.files.length:this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount}checkFileLimit(){this.msgs??=[],this.isFileLimitExceeded()&&this.msgs.push({severity:"error",summary:this.invalidFileLimitMessageSummary.replace("{0}",this.fileLimit.toString()),detail:this.invalidFileLimitMessageDetail.replace("{0}",this.fileLimit.toString())})}clearInputElement(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.advancedFileInput.nativeElement.value=""),this.basicFileInput&&this.basicFileInput.nativeElement&&(this.basicFileInput.nativeElement.value="")}clearIEInput(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.duplicateIEEvent=!0,this.advancedFileInput.nativeElement.value="")}hasFiles(){return this.files&&this.files.length>0}onDragEnter(t){this.disabled||(t.stopPropagation(),t.preventDefault())}onDragOver(t){this.disabled||(x.p.addClass(this.content?.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,t.stopPropagation(),t.preventDefault())}onDragLeave(t){this.disabled||x.p.removeClass(this.content?.nativeElement,"p-fileupload-highlight")}onDrop(t){if(!this.disabled){x.p.removeClass(this.content?.nativeElement,"p-fileupload-highlight"),t.stopPropagation(),t.preventDefault();let n=t.dataTransfer?t.dataTransfer.files:t.target.files;(this.multiple||n&&1===n.length)&&this.onFileSelect(t)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(t){const o=this.getTranslation(p.ws.FILE_SIZE_TYPES);if(0===t)return`0 ${o[0]}`;const r=Math.floor(Math.log(t)/Math.log(1024));return`${(t/Math.pow(1024,r)).toFixed(3)} ${o[r]}`}onBasicUploaderClick(){this.hasFiles()?this.upload():this.basicFileInput?.nativeElement.click()}onBasicKeydown(t){switch(t.code){case"Space":case"Enter":this.onBasicUploaderClick(),t.preventDefault()}}imageError(t){this.onImageError.emit(t)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(p.ws.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(p.ws.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(p.ws.CANCEL)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.dragOverListener&&(this.dragOverListener(),this.dragOverListener=null),this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||i)(e.Y36(c.K0),e.Y36(e.Lbi),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(pe.H7),e.Y36(e.R0b),e.Y36(_.eN),e.Y36(e.sBO),e.Y36(p.b4))};static \u0275cmp=e.Xpm({type:i,selectors:[["p-fileUpload"]],contentQueries:function(n,s,o){if(1&n&&e.Suo(o,p.jx,4),2&n){let r;e.iGM(r=e.CRH())&&(s.templates=r)}},viewQuery:function(n,s){if(1&n&&(e.Gf(de,5),e.Gf(ue,5),e.Gf(_e,5)),2&n){let o;e.iGM(o=e.CRH())&&(s.advancedFileInput=o.first),e.iGM(o=e.CRH())&&(s.basicFileInput=o.first),e.iGM(o=e.CRH())&&(s.content=o.first)}},hostAttrs:[1,"p-element"],inputs:{name:"name",url:"url",method:"method",multiple:"multiple",accept:"accept",disabled:"disabled",auto:"auto",withCredentials:"withCredentials",maxFileSize:"maxFileSize",invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:"previewWidth",chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:"showUploadButton",showCancelButton:"showCancelButton",mode:"mode",headers:"headers",customUpload:"customUpload",fileLimit:"fileLimit",uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError"},decls:2,vars:2,consts:[[3,"ngClass","ngStyle","class",4,"ngIf"],["class","p-fileupload p-fileupload-basic p-component",4,"ngIf"],[3,"ngClass","ngStyle"],[1,"p-fileupload-buttonbar"],["pRipple","","tabindex","0",1,"p-button","p-component","p-fileupload-choose",3,"ngClass","focus","blur","click","keydown.enter"],["type","file",3,"multiple","accept","disabled","change"],["advancedfileinput",""],[3,"ngClass","class",4,"ngIf"],[4,"ngIf"],[1,"p-button-label"],["type","button",3,"label","disabled","styleClass","onClick",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],["content",""],[3,"value","showValue",4,"ngIf"],[3,"value","enableService"],["class","p-fileupload-files",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-button-icon p-button-icon-left",4,"ngIf"],[3,"styleClass"],[1,"p-button-icon","p-button-icon-left"],["type","button",3,"label","disabled","styleClass","onClick"],["class","p-button-icon p-button-icon-left",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left",3,"ngClass"],[3,"value","showValue"],[1,"p-fileupload-files"],["class","p-fileupload-row",4,"ngFor","ngForOf"],[1,"p-fileupload-row"],[3,"src","width","error",4,"ngIf"],[1,"p-fileupload-filename"],["type","button","pButton","",1,"p-button-icon-only",3,"disabled","click"],[3,"src","width","error"],["ngFor","",3,"ngForOf","ngForTemplate"],[1,"p-fileupload","p-fileupload-basic","p-component"],["tabindex","0","pRipple","",3,"ngClass","ngStyle","click","keydown"],[4,"ngIf","ngIfElse"],["chooseSection",""],["class","p-button-label",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur",4,"ngIf"],["class","p-button-icon p-button-icon-left pi",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],["class","p-button-icon p-button-icon-left pi",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi"],["type","file",3,"accept","multiple","disabled","change","focus","blur"],["basicfileinput",""]],template:function(n,s){1&n&&(e.YNc(0,Ge,18,35,"div",0),e.YNc(1,ut,8,17,"div",1)),2&n&&(e.Q6J("ngIf","advanced"===s.mode),e.xp6(1),e.Q6J("ngIf","basic"===s.mode))},dependencies:function(){return[c.mk,c.sg,c.O5,c.tP,c.PC,g.Hq,g.zx,S,ae,m.H,T.p,y,f.q]},styles:["@layer primeng{.p-fileupload-content{position:relative}.p-fileupload-row{display:flex;align-items:center}.p-fileupload-row>div{flex:1 1 auto;width:25%}.p-fileupload-row>div:last-child{text-align:right}.p-fileupload-content .p-progressbar{width:100%;position:absolute;top:0;left:0}.p-button.p-fileupload-choose{position:relative;overflow:hidden}.p-button.p-fileupload-choose input[type=file],.p-fileupload-choose.p-fileupload-choose-selected input[type=file]{display:none}.p-fluid .p-fileupload .p-button{width:auto}.p-fileupload-filename{word-break:break-all}}\n"],encapsulation:2,changeDetection:0})}return i})(),gt=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[c.ez,_.JF,p.m8,g.hJ,Z,M,m.T,T.p,y,f.q,p.m8,g.hJ,Z,M]})}return i})();var ft=l(7017),mt=l(3726),h=l(5861),J=l(553),ht=l(3429),vt=l(9961),xt=l(7240),It=l(1344),bt=l(4795),L=l(95),Ct=l(2660),Tt=l(7680),yt=l(3965);function Ft(i,a){1&i&&e._UZ(0,"p-progressSpinner",18)}function wt(i,a){if(1&i&&(e.TgZ(0,"div",19)(1,"span",20)(2,"span",21),e._uU(3,"Installing..."),e.qZA(),e._UZ(4,"p-progressBar",22),e.qZA()()),2&i){const t=e.oxw();e.xp6(4),e.Q6J("value",t.progressValue)}}const Ut=function(){return{width:"200px"}},kt=[{path:"",component:(()=>{class i{instanceS;ns;generalS;feStoreCS;authS;loading={grid:!1};uploadedFiles=[];tarFile;uploadTarURL;version="";versions=[];selectedVersion;STORE_BE_HOST_PORT=J.N.STORE_BE_HOST_PORT;progressValue=0;intervalRef;constructor(t,n,s,o,r){this.instanceS=t,this.ns=n,this.generalS=s,this.feStoreCS=o,this.authS=r}ngOnInit(){this.version=J.N.VERSION,this.uploadTarURL=this.instanceS.deployAPIMakerURLString(),this.loadAPIMakerVersions().then(),this.generalS.setNewTitle("API Maker - Deploy"),this.startIncrementInterval()}startIncrementInterval(){this.intervalRef=setInterval(()=>{this.progressValue++},2500)}onUploadSuccess(){var t=this;return(0,h.Z)(function*(){t.ns.showSuccess("Your API Maker bundle uploaded successfully. System will restart"),yield t.instanceS.restartAPICallAndUILoadingAndReloadPage(),t.loading.grid=!1})()}onBeforeUpload(){this.loading.grid=!0,this.progressValue=0}onUploadError(){this.loading.grid=!1,this.ns.showError("File upload failed!")}tarFileSelected(t){var n=this;return(0,h.Z)(function*(){n.tarFile=t.currentFiles[0],n.ns.showInfo("Click on upload button to start deployment.")})()}loadAPIMakerVersions(){var t=this;return(0,h.Z)(function*(){let n="@sava-info-systems/api-maker";t.authS.backendSettings?.extensions&&(n="@sava-info-systems/api-maker-with-extensions");try{const s=yield t.feStoreCS.getNpmPackageVersions(t.STORE_BE_HOST_PORT,n);s.success?t.versions=s.data.map(o=>({name:o})).reverse():t.ns.showError(s.message)}catch(s){t.ns.showErrorFromResponse(s.error||s,"Unable to get list of API Maker versions.")}})()}deployAPIMakerVersionFromNPM(){var t=this;return(0,h.Z)(function*(){if(!t.selectedVersion)return void t.ns.showError("Please selection version to deploy");const n=t.selectedVersion.name;t.loading.grid=!0,t.progressValue=0;let s=`https://registry.npmjs.org/@sava-info-systems/api-maker/-/api-maker-${n}.tgz`;t.authS.backendSettings?.extensions&&(s=`https://registry.npmjs.org/@sava-info-systems/api-maker-with-extensions/-/api-maker-with-extensions-${n}.tgz`);try{const o=yield t.instanceS.deployAPIMakerAPICall({tarPath:s});let r;if(o.success){const u=o.data;for(const v of u)if(v.error){r=v.error.message;break}r?t.ns.showError(r):(t.ns.showSuccess("Your API Maker bundle uploaded successfully. System will restart"),yield t.instanceS.restartAPICallAndUILoadingAndReloadPage())}}catch(o){t.ns.showErrorFromResponse(o.error||o,"Unable to install API Maker version "+n)}t.loading.grid=!1})()}ngOnDestroy(){clearInterval(this.intervalRef)}static \u0275fac=function(n){return new(n||i)(e.Y36(ht.E),e.Y36(vt.W),e.Y36(xt.b),e.Y36(It.e),e.Y36(bt.e))};static \u0275cmp=e.Xpm({type:i,selectors:[["app-deploy-api-maker"]],decls:23,vars:11,consts:[["id","about",1,"mt-3"],[1,"container"],[1,"row"],[1,"col-lg-8","mx-auto"],[1,"text-center","mb-3","mt-3"],["src","/assets/images/icons/api-maker-deployment.svg","alt","Deploy API Maker icon",1,"fa-fw","mr-1"],[1,"text-muted","text-center"],[1,"mt-3"],[1,"card-body","p-0","h-100","overflow-hidden"],[1,"row","m-0",2,"position","relative","padding","60px 0"],[1,"col-6","p-0","text-center"],["name","files","chooseIcon","pi pi-upload","accept",".tgz,.gz,.tar.gz","maxFileSize","100000000","chooseLabel","Select API Maker .tgz file",1,"d-inline-block",3,"id","url","multiple","onBeforeUpload","onUpload","onError","onSelect"],[2,"margin-top","28px"],["appendTo","body","optionLabel","name","filterBy","name","placeholder","Select a version",3,"options","ngModel","ngModelChange"],["sava-no-dbl-click","","type","button",1,"btn","btn-primary","btn-sm",3,"click"],[1,"fas","fa-upload","fa-fw","mr-1"],["styleClass","w-4rem h-4rem","strokeWidth","0","animationDuration",".5s",4,"ngIf"],["class","text-center mt-5",4,"ngIf"],["styleClass","w-4rem h-4rem","strokeWidth","0","animationDuration",".5s"],[1,"text-center","mt-5"],[2,"display","inline-block","width","70%"],[1,"d-inline-block","mb-1"],["color","#057d05",3,"value"]],template:function(n,s){1&n&&(e.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h3",4),e._UZ(5,"img",5),e._uU(6," Deploy API Maker"),e.qZA(),e.TgZ(7,"div",6)(8,"span"),e._uU(9),e.qZA()()()()()(),e.TgZ(10,"section",7)(11,"div",8)(12,"div",9)(13,"div",10)(14,"p-fileUpload",11),e.NdJ("onBeforeUpload",function(){return s.onBeforeUpload()})("onUpload",function(){return s.onUploadSuccess()})("onError",function(){return s.onUploadError()})("onSelect",function(r){return s.tarFileSelected(r)}),e.qZA()(),e.TgZ(15,"div",10)(16,"div",12)(17,"p-dropdown",13),e.NdJ("ngModelChange",function(r){return s.selectedVersion=r}),e.qZA(),e.TgZ(18,"button",14),e.NdJ("click",function(){return s.deployAPIMakerVersionFromNPM()}),e._UZ(19,"i",15),e._uU(20," Deploy From NPM "),e.qZA()()(),e.YNc(21,Ft,1,0,"p-progressSpinner",16),e.qZA(),e.YNc(22,wt,5,1,"div",17),e.qZA()()),2&n&&(e.xp6(9),e.hij("Current Version : ",s.version,""),e.xp6(5),e.Q6J("id","id_api_maker_deploy_file_upload")("url",s.uploadTarURL)("multiple",!1),e.xp6(3),e.Akn(e.DdM(10,Ut)),e.Q6J("options",s.versions)("ngModel",s.selectedVersion),e.xp6(4),e.Q6J("ngIf",s.loading.grid),e.xp6(1),e.Q6J("ngIf",s.loading.grid))},dependencies:[L.JJ,L.On,c.O5,Ct.y,Tt.G,yt.Lt,_t,S]})}return i})(),canActivate:[mt.P]}];let Mt=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=e.oAB({type:i});static \u0275inj=e.cJS({imports:[Q.Bz.forChild(kt),ft.u,gt]})}return i})()}}]);