@lovrabet/rabetbase-cli 2.0.2-beta.8 → 2.0.2-beta.9

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 (133) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/app.js +1 -1
  18. package/lib/commands/auth.js +1 -1
  19. package/lib/commands/bff/delete.js +1 -1
  20. package/lib/commands/bff/detail.js +1 -1
  21. package/lib/commands/bff/index.js +1 -1
  22. package/lib/commands/bff/list.js +1 -1
  23. package/lib/commands/bff/new.js +1 -1
  24. package/lib/commands/bff/pull.js +1 -1
  25. package/lib/commands/bff/push.js +1 -1
  26. package/lib/commands/bff/status.js +1 -1
  27. package/lib/commands/build.js +1 -1
  28. package/lib/commands/cli-update.js +1 -1
  29. package/lib/commands/codegen/index.js +1 -1
  30. package/lib/commands/codegen/sdk.js +1 -1
  31. package/lib/commands/codegen/sql.js +1 -1
  32. package/lib/commands/common/flags.js +1 -1
  33. package/lib/commands/config.js +1 -1
  34. package/lib/commands/create.js +1 -1
  35. package/lib/commands/dataset/detail.js +1 -1
  36. package/lib/commands/dataset/index.js +1 -1
  37. package/lib/commands/dataset/links.js +1 -1
  38. package/lib/commands/dataset/list.js +1 -1
  39. package/lib/commands/dataset/operations.js +1 -1
  40. package/lib/commands/doctor.js +1 -1
  41. package/lib/commands/init.js +1 -1
  42. package/lib/commands/logout.js +1 -1
  43. package/lib/commands/logs.js +1 -1
  44. package/lib/commands/menu/index.js +1 -1
  45. package/lib/commands/menu/shared/compare-table.js +1 -1
  46. package/lib/commands/menu/shared/index.js +1 -1
  47. package/lib/commands/menu/shared/inquirer.js +1 -1
  48. package/lib/commands/menu/shared/local-pages.js +1 -1
  49. package/lib/commands/menu/shared/logic.js +1 -1
  50. package/lib/commands/menu/shared/service.js +1 -1
  51. package/lib/commands/menu/shared/sync-core.js +1 -1
  52. package/lib/commands/menu/shared/update-core.js +1 -1
  53. package/lib/commands/menu/shared/valid-url.js +1 -1
  54. package/lib/commands/menu/sync.js +1 -1
  55. package/lib/commands/menu/update.js +1 -1
  56. package/lib/commands/preview.js +1 -1
  57. package/lib/commands/project-upgrade.js +1 -1
  58. package/lib/commands/registry.js +1 -1
  59. package/lib/commands/run.js +1 -1
  60. package/lib/commands/skill.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/sql/list.js +1 -1
  65. package/lib/commands/sql/save.js +1 -1
  66. package/lib/commands/sql/validate.js +1 -1
  67. package/lib/commands/start.js +1 -1
  68. package/lib/config/config-help.js +1 -1
  69. package/lib/config/main.js +1 -1
  70. package/lib/constant/cli.js +1 -1
  71. package/lib/constant/domain.js +1 -1
  72. package/lib/constant/env.js +1 -1
  73. package/lib/context.js +1 -1
  74. package/lib/core/alias-resolver.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/bff/config.js +1 -1
  77. package/lib/core/bff/file-system.js +1 -1
  78. package/lib/core/bff/hash.js +1 -1
  79. package/lib/core/bff/lock.js +1 -1
  80. package/lib/core/bff/utils.js +1 -1
  81. package/lib/core/db-resolver.js +1 -1
  82. package/lib/core/sql-validator.js +1 -1
  83. package/lib/create-app/enhanced-guided-create.js +1 -1
  84. package/lib/create-app/format-elapsed.js +1 -1
  85. package/lib/create-app/main.js +1 -1
  86. package/lib/create-app/non-interactive.js +1 -1
  87. package/lib/create-app/task-finished.js +1 -1
  88. package/lib/create-app/task-loading.js +1 -1
  89. package/lib/create-app/task-running.js +1 -1
  90. package/lib/create-app/task-time.js +1 -1
  91. package/lib/create-app/use-copy-project-template.js +1 -1
  92. package/lib/create-app/use-format-code.js +1 -1
  93. package/lib/create-app/use-install-dependencies.js +1 -1
  94. package/lib/errors.js +1 -1
  95. package/lib/framework/flags.js +1 -1
  96. package/lib/framework/help.js +1 -1
  97. package/lib/framework/index.js +1 -1
  98. package/lib/framework/output.js +1 -1
  99. package/lib/framework/response.js +1 -1
  100. package/lib/framework/runner.js +1 -1
  101. package/lib/generated/build-info.js +1 -1
  102. package/lib/help.js +1 -1
  103. package/lib/init/main.js +1 -1
  104. package/lib/skills/main.js +1 -1
  105. package/lib/skills/npx-skills-add.js +1 -1
  106. package/lib/telemetry/cli-help-trace.js +1 -1
  107. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  108. package/lib/utils/ai_config.js +1 -1
  109. package/lib/utils/cdn-config.js +1 -1
  110. package/lib/utils/check-sdk-version.js +1 -1
  111. package/lib/utils/cli-version-check.js +1 -1
  112. package/lib/utils/config.js +1 -1
  113. package/lib/utils/copy-directory.js +1 -1
  114. package/lib/utils/file-utils.js +1 -1
  115. package/lib/utils/guides-cdn.js +1 -1
  116. package/lib/utils/http-client.js +1 -1
  117. package/lib/utils/logger.js +1 -1
  118. package/lib/utils/platform.js +1 -0
  119. package/lib/utils/rules-cdn.js +1 -1
  120. package/lib/utils/sleep.js +1 -1
  121. package/lib/utils/template-replacer.js +1 -1
  122. package/package.json +2 -2
  123. package/lib/ai-setup/config.js +0 -1
  124. package/lib/commands/mcp.js +0 -1
  125. package/lib/mcp/McpInstallUI.js +0 -1
  126. package/lib/mcp/claude.js +0 -1
  127. package/lib/mcp/cursor.js +0 -1
  128. package/lib/mcp/main.js +0 -1
  129. package/lib/mcp/mcp-install-non-interactive.js +0 -1
  130. package/lib/mcp/mcp-installer.js +0 -1
  131. package/lib/telemetry/otel-logger-version.js +0 -1
  132. package/lib/ui/IDESelector.js +0 -1
  133. package/lib/ui/useIDESelection.js +0 -1
@@ -1 +1 @@
1
- const a35_0x4e7486=a35_0x37eb;function a35_0x37eb(_0x25073f,_0x59ae4d){_0x25073f=_0x25073f-0x14e;const _0x2366a6=a35_0x2366();let _0x37eb73=_0x2366a6[_0x25073f];return _0x37eb73;}(function(_0x3bc237,_0x3b255a){const _0x28ac87=a35_0x37eb,_0x509be8=_0x3bc237();while(!![]){try{const _0x136a71=parseInt(_0x28ac87(0x157))/0x1*(parseInt(_0x28ac87(0x17e))/0x2)+parseInt(_0x28ac87(0x16c))/0x3*(parseInt(_0x28ac87(0x158))/0x4)+parseInt(_0x28ac87(0x180))/0x5+-parseInt(_0x28ac87(0x186))/0x6+parseInt(_0x28ac87(0x178))/0x7+-parseInt(_0x28ac87(0x17d))/0x8*(-parseInt(_0x28ac87(0x151))/0x9)+-parseInt(_0x28ac87(0x173))/0xa;if(_0x136a71===_0x3b255a)break;else _0x509be8['push'](_0x509be8['shift']());}catch(_0x701dfb){_0x509be8['push'](_0x509be8['shift']());}}}(a35_0x2366,0x1f1d9));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../common/flags.js';function normalizeField(_0x4be2d2){const _0x18585b=a35_0x37eb;if(_0x4be2d2[_0x18585b(0x187)])return null;const _0x305afa=Boolean(_0x4be2d2['displayName']!==undefined||_0x4be2d2[_0x18585b(0x15e)]!==undefined);let _0x84fbf1={};if(!_0x305afa&&typeof _0x4be2d2[_0x18585b(0x160)]===_0x18585b(0x16b))try{_0x84fbf1=JSON[_0x18585b(0x175)](_0x4be2d2[_0x18585b(0x160)]);}catch{}const _0x3e8fac=_0x305afa?_0x4be2d2[_0x18585b(0x174)]:_0x4be2d2[_0x18585b(0x14e)],_0x2d050d=_0x305afa?_0x4be2d2[_0x18585b(0x150)]:_0x4be2d2[_0x18585b(0x174)],_0x2adae2=_0x305afa?_0x4be2d2[_0x18585b(0x15e)]:_0x4be2d2[_0x18585b(0x16d)]||_0x4be2d2[_0x18585b(0x15c)],_0x5389da=_0x305afa?_0x4be2d2[_0x18585b(0x17b)]===!![]:_0x84fbf1[_0x18585b(0x17b)]===!![],_0x2fa82a=_0x305afa?_0x4be2d2[_0x18585b(0x16f)]===!![]:_0x84fbf1[_0x18585b(0x16f)]===!![],_0x18425b=_0x305afa?_0x4be2d2[_0x18585b(0x172)]??null:_0x84fbf1[_0x18585b(0x172)]??null,_0x151b3f={'name':_0x3e8fac,'displayName':_0x2d050d||_0x3e8fac,'type':_0x2adae2,'dbType':_0x4be2d2[_0x18585b(0x16a)],'pk':_0x5389da,'required':_0x2fa82a,'description':_0x4be2d2[_0x18585b(0x182)]||undefined};return Array[_0x18585b(0x166)](_0x18425b)&&_0x18425b['length']>0x0&&(_0x151b3f[_0x18585b(0x172)]=_0x18425b),_0x151b3f;}function a35_0x2366(){const _0x1fe4d5=['properties','1195572YxyxwE','toDatasetCode','fields','pkField','datasetKey','8tXUeYi','26bykIpn','fromField','268900frnrjR','detail','description','indexes','path','toFieldLabel','279240KmIhuA','deleted','verbose','code','toDatasetName','displayName','559377YOeaVr','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','map','entries','push','method','8429kSORJb','16RQQKUQ','dataset','object','boolean','dataType','tableComment','doType','operations','extend','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','sourceType','source','bool','filter','isArray','tableName','Return\x20full\x20raw\x20detail\x20object','modelId','dbType','string','188184zmFCXo','type','length','required','relations','alias','options','4732290LszLxt','name','parse','read'];a35_0x2366=function(){return _0x1fe4d5;};return a35_0x2366();}export const datasetDetail={'service':a35_0x4e7486(0x159),'command':a35_0x4e7486(0x181),'description':a35_0x4e7486(0x152),'risk':a35_0x4e7486(0x176),'flags':[CODE_FLAG,{'name':a35_0x4e7486(0x171),'type':a35_0x4e7486(0x16b),'description':a35_0x4e7486(0x161)},{'name':a35_0x4e7486(0x188),'type':a35_0x4e7486(0x15b),'description':a35_0x4e7486(0x168)}],async 'execute'(_0x4e9550){const _0x3060a3=a35_0x4e7486,_0x4f31c1=await getDatasetDetail(_0x4e9550['str'](_0x3060a3(0x14e))),_0x25efb1=_0x4e9550[_0x3060a3(0x164)](_0x3060a3(0x188));if(_0x25efb1)return{'ok':!![],'data':_0x4f31c1};const _0x5f08cb=Array[_0x3060a3(0x166)](_0x4f31c1[_0x3060a3(0x17a)])?_0x4f31c1['fields']:Array[_0x3060a3(0x166)](_0x4f31c1[_0x3060a3(0x177)])?_0x4f31c1[_0x3060a3(0x177)]:[],_0x5dc95f=_0x5f08cb['map'](_0x3e5ce6=>normalizeField(_0x3e5ce6))[_0x3060a3(0x165)](_0x1f2ba1=>_0x1f2ba1!==null),_0x27c409=_0x4f31c1[_0x3060a3(0x15f)]??{},_0x36dc9c=[];for(const [_0x5d1b7b,_0x1b8bab]of Object[_0x3060a3(0x154)](_0x27c409)){if(_0x1b8bab&&typeof _0x1b8bab===_0x3060a3(0x15a)){const _0x450ceb=_0x1b8bab;_0x450ceb[_0x3060a3(0x156)]&&_0x450ceb['path']&&_0x36dc9c[_0x3060a3(0x155)]({'name':_0x5d1b7b,'method':_0x450ceb[_0x3060a3(0x156)],'path':_0x450ceb[_0x3060a3(0x184)]});}}const _0x25fc80=_0x4f31c1['dbtableConfig']??{},_0x393bf3=_0x4f31c1[_0x3060a3(0x159)]??{};return{'ok':!![],'data':{'id':_0x4f31c1[_0x3060a3(0x169)]??_0x4f31c1['id'],'name':_0x4f31c1[_0x3060a3(0x174)],'code':_0x4f31c1['modelCode']||_0x4f31c1[_0x3060a3(0x14e)],'description':_0x4f31c1[_0x3060a3(0x182)]||_0x393bf3[_0x3060a3(0x15d)]||undefined,'source':_0x4f31c1[_0x3060a3(0x163)]||_0x393bf3[_0x3060a3(0x162)],'table':_0x25fc80[_0x3060a3(0x167)]||_0x393bf3[_0x3060a3(0x167)],'datasetKey':_0x25fc80[_0x3060a3(0x17c)],'pk':_0x25fc80[_0x3060a3(0x17b)],'fields':_0x5dc95f,'operations':_0x36dc9c,'indexes':Array[_0x3060a3(0x166)](_0x393bf3[_0x3060a3(0x183)])?_0x393bf3[_0x3060a3(0x183)]:[],'relations':Array[_0x3060a3(0x166)](_0x4f31c1['relations'])?_0x4f31c1[_0x3060a3(0x170)][_0x3060a3(0x153)](_0x5bee7e=>({'fromField':_0x5bee7e[_0x3060a3(0x17f)],'toDataset':_0x5bee7e[_0x3060a3(0x14f)],'toCode':_0x5bee7e[_0x3060a3(0x179)],'toTable':_0x5bee7e['toTableName'],'toField':_0x5bee7e['toField'],'labelField':_0x5bee7e[_0x3060a3(0x185)]||undefined})):[],'stats':{'fieldCount':_0x5dc95f[_0x3060a3(0x16e)],'operationCount':_0x36dc9c[_0x3060a3(0x16e)]}}};}};
1
+ const a34_0x20438e=a34_0x203c;(function(_0x48bd0b,_0x43c320){const _0x57de1a=a34_0x203c,_0x3e1994=_0x48bd0b();while(!![]){try{const _0x4f2ad7=parseInt(_0x57de1a(0x95))/0x1+-parseInt(_0x57de1a(0xba))/0x2+-parseInt(_0x57de1a(0xb2))/0x3+parseInt(_0x57de1a(0xbf))/0x4*(parseInt(_0x57de1a(0x91))/0x5)+-parseInt(_0x57de1a(0xb0))/0x6+parseInt(_0x57de1a(0x96))/0x7*(-parseInt(_0x57de1a(0xa6))/0x8)+parseInt(_0x57de1a(0xa3))/0x9*(parseInt(_0x57de1a(0xbe))/0xa);if(_0x4f2ad7===_0x43c320)break;else _0x3e1994['push'](_0x3e1994['shift']());}catch(_0x59131d){_0x3e1994['push'](_0x3e1994['shift']());}}}(a34_0x49f7,0x19865));function a34_0x203c(_0x1cc6b0,_0x20e9b2){_0x1cc6b0=_0x1cc6b0-0x8f;const _0x49f7a6=a34_0x49f7();let _0x203c20=_0x49f7a6[_0x1cc6b0];return _0x203c20;}function a34_0x49f7(){const _0x5cc8ec=['isArray','dbType','467520aajBLG','dataType','302145SByCCD','string','relations','tableName','verbose','read','entries','filter','113532vlKkpd','indexes','deleted','fields','1935390NDXZBI','639484TUJLen','source','toDatasetName','properties','5XThWEP','path','alias','toTableName','162147BpXaxp','1229249DKhLHq','displayName','pkField','modelId','type','toFieldLabel','toField','options','description','tableComment','parse','object','dataset','9hTgWKm','fromField','code','8OuAeJH','required','length','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','detail','extend','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','name'];a34_0x49f7=function(){return _0x5cc8ec;};return a34_0x49f7();}import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../common/flags.js';function normalizeField(_0x1a6c7b){const _0x528a73=a34_0x203c;if(_0x1a6c7b[_0x528a73(0xbc)])return null;const _0xa6eba4=Boolean(_0x1a6c7b[_0x528a73(0x97)]!==undefined||_0x1a6c7b['doType']!==undefined);let _0x562f7d={};if(!_0xa6eba4&&typeof _0x1a6c7b[_0x528a73(0xab)]===_0x528a73(0xb3))try{_0x562f7d=JSON[_0x528a73(0xa0)](_0x1a6c7b['extend']);}catch{}const _0x5cb4c4=_0xa6eba4?_0x1a6c7b[_0x528a73(0xad)]:_0x1a6c7b[_0x528a73(0xa5)],_0x142553=_0xa6eba4?_0x1a6c7b[_0x528a73(0x97)]:_0x1a6c7b[_0x528a73(0xad)],_0x3721e7=_0xa6eba4?_0x1a6c7b['doType']:_0x1a6c7b[_0x528a73(0x9a)]||_0x1a6c7b[_0x528a73(0xb1)],_0x282906=_0xa6eba4?_0x1a6c7b[_0x528a73(0x98)]===!![]:_0x562f7d[_0x528a73(0x98)]===!![],_0x40656c=_0xa6eba4?_0x1a6c7b[_0x528a73(0xa7)]===!![]:_0x562f7d[_0x528a73(0xa7)]===!![],_0x1e176d=_0xa6eba4?_0x1a6c7b[_0x528a73(0x9d)]??null:_0x562f7d['options']??null,_0x4658e2={'name':_0x5cb4c4,'displayName':_0x142553||_0x5cb4c4,'type':_0x3721e7,'dbType':_0x1a6c7b[_0x528a73(0xaf)],'pk':_0x282906,'required':_0x40656c,'description':_0x1a6c7b[_0x528a73(0x9e)]||undefined};return Array['isArray'](_0x1e176d)&&_0x1e176d['length']>0x0&&(_0x4658e2['options']=_0x1e176d),_0x4658e2;}export const datasetDetail={'service':a34_0x20438e(0xa2),'command':a34_0x20438e(0xaa),'description':a34_0x20438e(0xac),'risk':a34_0x20438e(0xb7),'flags':[CODE_FLAG,{'name':a34_0x20438e(0x93),'type':a34_0x20438e(0xb3),'description':a34_0x20438e(0xa9)},{'name':a34_0x20438e(0xb6),'type':'boolean','description':'Return\x20full\x20raw\x20detail\x20object'}],async 'execute'(_0xa5594){const _0x498450=a34_0x20438e,_0xe71186=await getDatasetDetail(_0xa5594['str']('code')),_0x615d75=_0xa5594['bool']('verbose');if(_0x615d75)return{'ok':!![],'data':_0xe71186};const _0x10beb3=Array[_0x498450(0xae)](_0xe71186[_0x498450(0xbd)])?_0xe71186[_0x498450(0xbd)]:Array[_0x498450(0xae)](_0xe71186[_0x498450(0x90)])?_0xe71186[_0x498450(0x90)]:[],_0x44e732=_0x10beb3['map'](_0xf5c2f5=>normalizeField(_0xf5c2f5))[_0x498450(0xb9)](_0x9019d3=>_0x9019d3!==null),_0x20da7b=_0xe71186['operations']??{},_0x3b5015=[];for(const [_0x34741c,_0x546b55]of Object[_0x498450(0xb8)](_0x20da7b)){if(_0x546b55&&typeof _0x546b55===_0x498450(0xa1)){const _0x32275c=_0x546b55;_0x32275c['method']&&_0x32275c[_0x498450(0x92)]&&_0x3b5015['push']({'name':_0x34741c,'method':_0x32275c['method'],'path':_0x32275c[_0x498450(0x92)]});}}const _0x19ed5f=_0xe71186['dbtableConfig']??{},_0x43cf66=_0xe71186[_0x498450(0xa2)]??{};return{'ok':!![],'data':{'id':_0xe71186[_0x498450(0x99)]??_0xe71186['id'],'name':_0xe71186['name'],'code':_0xe71186['modelCode']||_0xe71186[_0x498450(0xa5)],'description':_0xe71186[_0x498450(0x9e)]||_0x43cf66[_0x498450(0x9f)]||undefined,'source':_0xe71186[_0x498450(0xc0)]||_0x43cf66['sourceType'],'table':_0x19ed5f[_0x498450(0xb5)]||_0x43cf66[_0x498450(0xb5)],'datasetKey':_0x19ed5f['datasetKey'],'pk':_0x19ed5f[_0x498450(0x98)],'fields':_0x44e732,'operations':_0x3b5015,'indexes':Array['isArray'](_0x43cf66[_0x498450(0xbb)])?_0x43cf66[_0x498450(0xbb)]:[],'relations':Array['isArray'](_0xe71186['relations'])?_0xe71186[_0x498450(0xb4)]['map'](_0x4918a6=>({'fromField':_0x4918a6[_0x498450(0xa4)],'toDataset':_0x4918a6[_0x498450(0x8f)],'toCode':_0x4918a6['toDatasetCode'],'toTable':_0x4918a6[_0x498450(0x94)],'toField':_0x4918a6[_0x498450(0x9c)],'labelField':_0x4918a6[_0x498450(0x9b)]||undefined})):[],'stats':{'fieldCount':_0x44e732[_0x498450(0xa8)],'operationCount':_0x3b5015[_0x498450(0xa8)]}}};}};
@@ -1 +1 @@
1
- (function(_0x2dc964,_0xe56d25){const _0x127534=a36_0x3abd,_0x48c85c=_0x2dc964();while(!![]){try{const _0x4cb7e5=parseInt(_0x127534(0x18d))/0x1*(-parseInt(_0x127534(0x188))/0x2)+-parseInt(_0x127534(0x192))/0x3*(-parseInt(_0x127534(0x18b))/0x4)+parseInt(_0x127534(0x189))/0x5*(-parseInt(_0x127534(0x190))/0x6)+-parseInt(_0x127534(0x191))/0x7+parseInt(_0x127534(0x18f))/0x8+parseInt(_0x127534(0x18a))/0x9*(-parseInt(_0x127534(0x18e))/0xa)+parseInt(_0x127534(0x18c))/0xb;if(_0x4cb7e5===_0xe56d25)break;else _0x48c85c['push'](_0x48c85c['shift']());}catch(_0x1e8159){_0x48c85c['push'](_0x48c85c['shift']());}}}(a36_0x1d60,0xa30db));import{datasetList}from'./list.js';function a36_0x1d60(){const _0x3d5e89=['2hnARfC','13855hakQdU','9RWYddZ','1196UEviJM','8145775ynNjQo','747910qLQCcU','416940IBuWps','6983272tELGxa','1662PJRfDJ','5047273DEXoDk','13371HUEgod'];a36_0x1d60=function(){return _0x3d5e89;};return a36_0x1d60();}import{datasetDetail}from'./detail.js';function a36_0x3abd(_0xc6edd6,_0xd62002){_0xc6edd6=_0xc6edd6-0x188;const _0x1d60d1=a36_0x1d60();let _0x3abd3a=_0x1d60d1[_0xc6edd6];return _0x3abd3a;}import{datasetOperations}from'./operations.js';import{datasetLinks}from'./links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ (function(_0x1a0e69,_0x2691e6){const _0x38d612=a35_0x3234,_0xdb1f23=_0x1a0e69();while(!![]){try{const _0x2e4cea=parseInt(_0x38d612(0x1c7))/0x1+parseInt(_0x38d612(0x1c8))/0x2*(parseInt(_0x38d612(0x1c9))/0x3)+-parseInt(_0x38d612(0x1c0))/0x4*(parseInt(_0x38d612(0x1c4))/0x5)+parseInt(_0x38d612(0x1c1))/0x6*(-parseInt(_0x38d612(0x1c5))/0x7)+-parseInt(_0x38d612(0x1c3))/0x8*(-parseInt(_0x38d612(0x1c2))/0x9)+parseInt(_0x38d612(0x1bf))/0xa*(parseInt(_0x38d612(0x1c6))/0xb)+-parseInt(_0x38d612(0x1be))/0xc;if(_0x2e4cea===_0x2691e6)break;else _0xdb1f23['push'](_0xdb1f23['shift']());}catch(_0x4f908d){_0xdb1f23['push'](_0xdb1f23['shift']());}}}(a35_0x270b,0x3e827));import{datasetList}from'./list.js';import{datasetDetail}from'./detail.js';import{datasetOperations}from'./operations.js';function a35_0x270b(){const _0x3da985=['3924228xhJqAd','208230TbVcke','596ubIVAC','42QvQzaU','603YmvzbR','1816OZzmLo','4145cEZxjf','412349HGjvbh','165ewVeac','297099jVYkkj','11630zSaZdr','255PhyYNU'];a35_0x270b=function(){return _0x3da985;};return a35_0x270b();}function a35_0x3234(_0x2cf45a,_0x27c13e){_0x2cf45a=_0x2cf45a-0x1be;const _0x270b59=a35_0x270b();let _0x323497=_0x270b59[_0x2cf45a];return _0x323497;}import{datasetLinks}from'./links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- const a37_0x2d756b=a37_0x1ee5;(function(_0x83f359,_0xefb4b7){const _0x6c92ed=a37_0x1ee5,_0x410fce=_0x83f359();while(!![]){try{const _0x6d360b=-parseInt(_0x6c92ed(0xc9))/0x1*(-parseInt(_0x6c92ed(0xd1))/0x2)+-parseInt(_0x6c92ed(0xc4))/0x3+-parseInt(_0x6c92ed(0xe0))/0x4*(parseInt(_0x6c92ed(0xb8))/0x5)+-parseInt(_0x6c92ed(0xe6))/0x6+parseInt(_0x6c92ed(0xbd))/0x7+-parseInt(_0x6c92ed(0xcd))/0x8*(-parseInt(_0x6c92ed(0xc1))/0x9)+parseInt(_0x6c92ed(0xd2))/0xa*(parseInt(_0x6c92ed(0xdd))/0xb);if(_0x6d360b===_0xefb4b7)break;else _0x410fce['push'](_0x410fce['shift']());}catch(_0x2e39b5){_0x410fce['push'](_0x410fce['shift']());}}}(a37_0x29f7,0x7d5bf));function a37_0x1ee5(_0x2a2312,_0x52917f){_0x2a2312=_0x2a2312-0xb6;const _0x29f75b=a37_0x29f7();let _0x1ee5ab=_0x29f75b[_0x2a2312];return _0x1ee5ab;}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';export const datasetLinks={'service':a37_0x2d756b(0xe9),'command':a37_0x2d756b(0xb7),'description':'Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20'+'Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20'+'Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','risk':a37_0x2d756b(0xde),'flags':[{'name':'db','type':a37_0x2d756b(0xe5),'description':a37_0x2d756b(0xd8)+a37_0x2d756b(0xbe)},{'name':a37_0x2d756b(0xb6),'type':a37_0x2d756b(0xdb),'description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x478246){const _0x135180=a37_0x2d756b,_0x1b1c83=_0x478246[_0x135180(0xdf)]('verbose'),{resolved:_0x50e161,error:_0x1ccd8f}=await resolveDb(_0x478246[_0x135180(0xbf)],_0x478246[_0x135180(0xcc)]('db')||undefined);if(_0x1ccd8f)return{'ok':![],'message':_0x1ccd8f};const _0x20d4e3=_0x50e161[_0x135180(0xcb)](_0x2e669e=>_0x2e669e[_0x135180(0xd7)]),_0x44f170=await Promise[_0x135180(0xe3)](_0x20d4e3[_0x135180(0xcb)](_0x389a16=>getErConfig(_0x478246[_0x135180(0xbf)],_0x389a16)));if(_0x1b1c83)return{'ok':!![],'data':_0x44f170[_0x135180(0xda)]===0x1?_0x44f170[0x0]:_0x44f170,'message':'Fetched\x20link\x20graph\x20for\x20'+_0x20d4e3[_0x135180(0xda)]+_0x135180(0xe7)};const _0x4e04b4=_0x44f170[_0x135180(0xcb)](_0x522c77=>{const _0xc1f609=_0x135180,_0xf2dad5=(_0x522c77[_0xc1f609(0xd0)]??[])[_0xc1f609(0xcb)](_0x21c6c0=>{const _0x361177=_0xc1f609,_0x1c72b0=_0x21c6c0['fields']?.[_0x361177(0xc6)](_0x48afea=>_0x48afea[_0x361177(0xbb)])[_0x361177(0xcb)](_0x4088b1=>_0x4088b1[_0x361177(0xc7)])??[],_0x300c9a=_0x21c6c0['fields']?.[_0x361177(0xc6)](_0x570a11=>_0x570a11[_0x361177(0xbc)])['map'](_0x1d7f13=>_0x1d7f13[_0x361177(0xc7)])??[];return{'id':_0x21c6c0[_0x361177(0xb9)],'name':_0x21c6c0[_0x361177(0xc0)],'code':_0x21c6c0[_0x361177(0xdc)],'table':_0x21c6c0[_0x361177(0xd5)],'comment':_0x21c6c0['tableComment']||undefined,'fields':(_0x21c6c0[_0x361177(0xd4)]??[])[_0x361177(0xcb)](_0x32c6e6=>({'name':_0x32c6e6[_0x361177(0xc7)],'displayName':_0x32c6e6[_0x361177(0xd3)],'type':_0x32c6e6[_0x361177(0xd9)],'pk':_0x32c6e6[_0x361177(0xbb)],'fk':_0x32c6e6['isForeignKey']})),'relations':(_0x21c6c0[_0x361177(0xd6)]??[])['filter'](_0x2cc60a=>_0x2cc60a[_0x361177(0xc8)]&&_0x2cc60a[_0x361177(0xc2)])['map'](_0x31bccf=>({'from':_0x31bccf['fromField'],'toDataset':_0x31bccf[_0x361177(0xba)],'toCode':_0x31bccf[_0x361177(0xc2)],'toField':_0x31bccf[_0x361177(0xe2)],'joinType':_0x31bccf['joinType']||'LEFT'})),'stats':{'fieldCount':_0x21c6c0[_0x361177(0xd4)]?.[_0x361177(0xda)]??0x0,'pkCount':_0x1c72b0[_0x361177(0xda)],'fkCount':_0x300c9a['length'],'relationCount':_0x21c6c0['relations']?.[_0x361177(0xda)]??0x0}};}),_0x98d75d=_0xf2dad5[_0xc1f609(0xc6)](_0x19ec85=>_0x19ec85['stats'][_0xc1f609(0xcf)]>0x0)[_0xc1f609(0xcb)](_0x2cb151=>_0x2cb151[_0xc1f609(0xc7)]);return{'db':_0x522c77[_0xc1f609(0xe1)]?.['dbName'],'dbId':_0x522c77[_0xc1f609(0xe1)]?.['dbId'],'appCode':_0x522c77[_0xc1f609(0xe1)]?.['appCode'],'datasetCount':_0xf2dad5['length'],'connectedDatasets':_0x98d75d,'datasets':_0xf2dad5};}),_0x42e215=_0x4e04b4[_0x135180(0xca)]((_0x5ebc50,_0x31c980)=>_0x5ebc50+_0x31c980[_0x135180(0xc5)],0x0),_0xecad48=_0x4e04b4[_0x135180(0xca)]((_0x2e4f0b,_0x3ab5bc)=>_0x2e4f0b+_0x3ab5bc[_0x135180(0xd0)][_0x135180(0xca)]((_0x3f4645,_0xf085c5)=>_0x3f4645+_0xf085c5[_0x135180(0xe8)][_0x135180(0xcf)],0x0),0x0);return{'ok':!![],'data':_0x4e04b4['length']===0x1?_0x4e04b4[0x0]:{'databases':_0x4e04b4},'message':_0x135180(0xc3)+_0x4e04b4[_0x135180(0xda)]+_0x135180(0xe4)+_0x42e215+'\x20dataset(s),\x20'+_0xecad48+_0x135180(0xce)};}};function a37_0x29f7(){const _0x5a5e5f=['4grEjGK','4380yhxKSX','displayName','fields','tableName','relations','dbId','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','dbType','length','boolean','datasetCode','9966oDZrZe','read','bool','249836LjNxTS','meta','toField','all','\x20database(s),\x20','string','3826950LhObXB','\x20database(s)','stats','dataset','verbose','links','5cHsIps','datasetId','toDatasetName','isPrimaryKey','isForeignKey','1875083CSExOM','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','appCode','datasetName','333orKYXz','toDataset','Link\x20graph:\x20','865056UgUIMO','datasetCount','filter','name','fromField','255572qtGLkR','reduce','map','str','70544hPJrKO','\x20relation(s)','relationCount','datasets'];a37_0x29f7=function(){return _0x5a5e5f;};return a37_0x29f7();}
1
+ const a36_0x1febda=a36_0x31bf;(function(_0x3fbb0a,_0x207476){const _0x306c2d=a36_0x31bf,_0x487efe=_0x3fbb0a();while(!![]){try{const _0x1b181a=parseInt(_0x306c2d(0xda))/0x1+-parseInt(_0x306c2d(0xc8))/0x2*(parseInt(_0x306c2d(0xd3))/0x3)+-parseInt(_0x306c2d(0xb7))/0x4+-parseInt(_0x306c2d(0xc7))/0x5+-parseInt(_0x306c2d(0xdc))/0x6+parseInt(_0x306c2d(0xbc))/0x7+parseInt(_0x306c2d(0xcf))/0x8*(parseInt(_0x306c2d(0xdd))/0x9);if(_0x1b181a===_0x207476)break;else _0x487efe['push'](_0x487efe['shift']());}catch(_0x1ce9f4){_0x487efe['push'](_0x487efe['shift']());}}}(a36_0x2ec2,0x9320c));function a36_0x31bf(_0x1667fa,_0x31daf8){_0x1667fa=_0x1667fa-0xa9;const _0x2ec220=a36_0x2ec2();let _0x31bfc5=_0x2ec220[_0x1667fa];return _0x31bfc5;}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';export const datasetLinks={'service':a36_0x1febda(0xba),'command':a36_0x1febda(0xc2),'description':a36_0x1febda(0xd1)+'Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20'+a36_0x1febda(0xce),'risk':a36_0x1febda(0xc5),'flags':[{'name':'db','type':a36_0x1febda(0xb2),'description':a36_0x1febda(0xc4)+a36_0x1febda(0xb9)},{'name':a36_0x1febda(0xd0),'type':a36_0x1febda(0xd5),'description':a36_0x1febda(0xb3)}],async 'execute'(_0x1ea3b5){const _0x3e3430=a36_0x1febda,_0x576948=_0x1ea3b5['bool'](_0x3e3430(0xd0)),{resolved:_0xc36de5,error:_0x594e02}=await resolveDb(_0x1ea3b5[_0x3e3430(0xa9)],_0x1ea3b5['str']('db')||undefined);if(_0x594e02)return{'ok':![],'message':_0x594e02};const _0x58b5f2=_0xc36de5[_0x3e3430(0xbd)](_0x2a7390=>_0x2a7390[_0x3e3430(0xcb)]),_0x21b57d=await Promise[_0x3e3430(0xac)](_0x58b5f2[_0x3e3430(0xbd)](_0x320e8f=>getErConfig(_0x1ea3b5[_0x3e3430(0xa9)],_0x320e8f)));if(_0x576948)return{'ok':!![],'data':_0x21b57d[_0x3e3430(0xbf)]===0x1?_0x21b57d[0x0]:_0x21b57d,'message':_0x3e3430(0xc9)+_0x58b5f2[_0x3e3430(0xbf)]+'\x20database(s)'};const _0x4bcc28=_0x21b57d[_0x3e3430(0xbd)](_0x142411=>{const _0x281706=_0x3e3430,_0x44100e=(_0x142411[_0x281706(0xd9)]??[])[_0x281706(0xbd)](_0x2bce13=>{const _0x35525f=_0x281706,_0x3f1ee4=_0x2bce13[_0x35525f(0xd4)]?.[_0x35525f(0xae)](_0x44413e=>_0x44413e[_0x35525f(0xb5)])[_0x35525f(0xbd)](_0x448ce4=>_0x448ce4[_0x35525f(0xb6)])??[],_0x4efe50=_0x2bce13[_0x35525f(0xd4)]?.[_0x35525f(0xae)](_0x4432e7=>_0x4432e7[_0x35525f(0xbe)])[_0x35525f(0xbd)](_0x509b21=>_0x509b21[_0x35525f(0xb6)])??[];return{'id':_0x2bce13[_0x35525f(0xc1)],'name':_0x2bce13[_0x35525f(0xaf)],'code':_0x2bce13[_0x35525f(0xad)],'table':_0x2bce13[_0x35525f(0xcd)],'comment':_0x2bce13['tableComment']||undefined,'fields':(_0x2bce13[_0x35525f(0xd4)]??[])['map'](_0x4037e6=>({'name':_0x4037e6['name'],'displayName':_0x4037e6[_0x35525f(0xca)],'type':_0x4037e6[_0x35525f(0xab)],'pk':_0x4037e6[_0x35525f(0xb5)],'fk':_0x4037e6[_0x35525f(0xbe)]})),'relations':(_0x2bce13[_0x35525f(0xd8)]??[])['filter'](_0x5e778=>_0x5e778[_0x35525f(0xd6)]&&_0x5e778[_0x35525f(0xcc)])[_0x35525f(0xbd)](_0x3a41f2=>({'from':_0x3a41f2['fromField'],'toDataset':_0x3a41f2[_0x35525f(0xb8)],'toCode':_0x3a41f2[_0x35525f(0xcc)],'toField':_0x3a41f2[_0x35525f(0xd7)],'joinType':_0x3a41f2[_0x35525f(0xb1)]||_0x35525f(0xc3)})),'stats':{'fieldCount':_0x2bce13[_0x35525f(0xd4)]?.[_0x35525f(0xbf)]??0x0,'pkCount':_0x3f1ee4['length'],'fkCount':_0x4efe50[_0x35525f(0xbf)],'relationCount':_0x2bce13[_0x35525f(0xd8)]?.[_0x35525f(0xbf)]??0x0}};}),_0x169c39=_0x44100e[_0x281706(0xae)](_0x1b945b=>_0x1b945b[_0x281706(0xaa)]['relationCount']>0x0)[_0x281706(0xbd)](_0x1548f9=>_0x1548f9[_0x281706(0xb6)]);return{'db':_0x142411[_0x281706(0xdb)]?.[_0x281706(0xb4)],'dbId':_0x142411[_0x281706(0xdb)]?.[_0x281706(0xcb)],'appCode':_0x142411[_0x281706(0xdb)]?.['appCode'],'datasetCount':_0x44100e[_0x281706(0xbf)],'connectedDatasets':_0x169c39,'datasets':_0x44100e};}),_0x50f408=_0x4bcc28[_0x3e3430(0xd2)]((_0x1f5d48,_0x22c36c)=>_0x1f5d48+_0x22c36c[_0x3e3430(0xb0)],0x0),_0xbddac5=_0x4bcc28[_0x3e3430(0xd2)]((_0x2ccafd,_0x24d091)=>_0x2ccafd+_0x24d091['datasets']['reduce']((_0x124652,_0x4bbaf9)=>_0x124652+_0x4bbaf9['stats'][_0x3e3430(0xbb)],0x0),0x0);return{'ok':!![],'data':_0x4bcc28[_0x3e3430(0xbf)]===0x1?_0x4bcc28[0x0]:{'databases':_0x4bcc28},'message':_0x3e3430(0xc6)+_0x4bcc28['length']+'\x20database(s),\x20'+_0x50f408+'\x20dataset(s),\x20'+_0xbddac5+_0x3e3430(0xc0)};}};function a36_0x2ec2(){const _0x1112b9=['datasetId','links','LEFT','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','read','Link\x20graph:\x20','941650KvijDK','311414lPozLf','Fetched\x20link\x20graph\x20for\x20','displayName','dbId','toDataset','tableName','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','88nFniXi','verbose','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','reduce','3PpDVof','fields','boolean','fromField','toField','relations','datasets','669488gwPSKM','meta','3648636FDeGmu','542151RuSuuq','appCode','stats','dbType','all','datasetCode','filter','datasetName','datasetCount','joinType','string','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','dbName','isPrimaryKey','name','3621564QDuNLD','toDatasetName','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','dataset','relationCount','7896371jdJiDE','map','isForeignKey','length','\x20relation(s)'];a36_0x2ec2=function(){return _0x1112b9;};return a36_0x2ec2();}
@@ -1 +1 @@
1
- const a38_0xbdb453=a38_0x20ec;(function(_0x495c98,_0x2d6fe0){const _0x545a07=a38_0x20ec,_0x498a98=_0x495c98();while(!![]){try{const _0x3a5963=parseInt(_0x545a07(0x8c))/0x1+-parseInt(_0x545a07(0x88))/0x2*(parseInt(_0x545a07(0x8d))/0x3)+-parseInt(_0x545a07(0x93))/0x4+-parseInt(_0x545a07(0x82))/0x5*(parseInt(_0x545a07(0x99))/0x6)+-parseInt(_0x545a07(0x91))/0x7*(-parseInt(_0x545a07(0x81))/0x8)+-parseInt(_0x545a07(0x7c))/0x9*(parseInt(_0x545a07(0x78))/0xa)+parseInt(_0x545a07(0x94))/0xb*(parseInt(_0x545a07(0x8f))/0xc);if(_0x3a5963===_0x2d6fe0)break;else _0x498a98['push'](_0x498a98['shift']());}catch(_0x23577){_0x498a98['push'](_0x498a98['shift']());}}}(a38_0x4c43,0xa267c));function a38_0x20ec(_0x2674a1,_0x2ae202){_0x2674a1=_0x2674a1-0x74;const _0x4c43b3=a38_0x4c43();let _0x20ec34=_0x4c43b3[_0x2674a1];return _0x20ec34;}import{listDatasets}from'../../core/api-client.js';function a38_0x4c43(){const _0x26fca8=['1659287oRlPmp','trim','1638664siMQDR','19261gVmZqd','name','List\x20all\x20datasets\x20with\x20metadata','code','allFields','370482gNxrfX','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','dataset','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','appCode','170bhFJud','datasetKey','bool','read','570447KOIgWu','source','split','pkField','\x20dataset(s)','40umLdrN','80kCiamo','boolean','map','verbose','length','Found\x20','2VARIDY','list','string','description','654768gPUjUl','2097822WzvwtR','str','13704aNkqfx','tableName'];a38_0x4c43=function(){return _0x26fca8;};return a38_0x4c43();}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetList={'service':a38_0xbdb453(0x75),'command':a38_0xbdb453(0x89),'description':a38_0xbdb453(0x96),'risk':a38_0xbdb453(0x7b),'flags':[{'name':a38_0xbdb453(0x95),'type':a38_0xbdb453(0x8a),'description':a38_0xbdb453(0x74)},CODE_FLAG_OPTIONAL,{'name':a38_0xbdb453(0x85),'type':a38_0xbdb453(0x83),'description':a38_0xbdb453(0x76)}],async 'execute'(_0x4e251b){const _0x4cea5f=a38_0xbdb453,_0x226192=_0x4e251b[_0x4cea5f(0x8e)]('name'),_0x3d87c4=_0x4e251b[_0x4cea5f(0x8e)](_0x4cea5f(0x97)),_0x9a0dcf=_0x4e251b[_0x4cea5f(0x7a)](_0x4cea5f(0x85)),_0xd8c531=await listDatasets(_0x4e251b[_0x4cea5f(0x77)],{..._0x226192&&{'name':_0x226192},..._0x3d87c4&&{'code':_0x3d87c4}}),_0x2a51ca=_0x9a0dcf?_0xd8c531:_0xd8c531[_0x4cea5f(0x84)](_0x56e44c=>{const _0x279a0c=_0x4cea5f,_0x52c1ae=_0x56e44c['dbtableConfig']??{};return{'id':_0x56e44c['id'],'name':_0x56e44c[_0x279a0c(0x95)],'code':_0x56e44c[_0x279a0c(0x97)],'description':_0x56e44c[_0x279a0c(0x8b)],'source':_0x56e44c[_0x279a0c(0x7d)],'db':_0x52c1ae['dbName'],'table':_0x52c1ae[_0x279a0c(0x90)],'datasetKey':_0x52c1ae[_0x279a0c(0x79)],'pk':_0x52c1ae[_0x279a0c(0x7f)],'fields':_0x52c1ae[_0x279a0c(0x98)]?_0x52c1ae[_0x279a0c(0x98)][_0x279a0c(0x7e)](',')[_0x279a0c(0x84)](_0x1b14c1=>_0x1b14c1[_0x279a0c(0x92)]()):[]};});return{'ok':!![],'data':{'total':_0x2a51ca[_0x4cea5f(0x86)],'datasets':_0x2a51ca},'message':_0x4cea5f(0x87)+_0x2a51ca[_0x4cea5f(0x86)]+_0x4cea5f(0x80)};}};
1
+ const a37_0x5a748c=a37_0x5233;(function(_0x31a187,_0x35200f){const _0x2a2714=a37_0x5233,_0x5b5837=_0x31a187();while(!![]){try{const _0x434699=parseInt(_0x2a2714(0x184))/0x1+parseInt(_0x2a2714(0x180))/0x2+parseInt(_0x2a2714(0x186))/0x3+-parseInt(_0x2a2714(0x17f))/0x4+-parseInt(_0x2a2714(0x177))/0x5+-parseInt(_0x2a2714(0x188))/0x6+parseInt(_0x2a2714(0x170))/0x7;if(_0x434699===_0x35200f)break;else _0x5b5837['push'](_0x5b5837['shift']());}catch(_0x1814f1){_0x5b5837['push'](_0x5b5837['shift']());}}}(a37_0x2efc,0x6593c));import{listDatasets}from'../../core/api-client.js';function a37_0x2efc(){const _0x239c57=['name','1659327GcYvnL','datasetKey','3484848WKZGKU','code','bool','length','appCode','split','source','9829085umUXtC','tableName','Found\x20','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','dbName','boolean','dbtableConfig','3514740vScMKf','str','map','pkField','dataset','read','\x20dataset(s)','trim','2825964BujSVJ','302392EeJbeM','verbose','List\x20all\x20datasets\x20with\x20metadata','list','297847Malwfn'];a37_0x2efc=function(){return _0x239c57;};return a37_0x2efc();}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';function a37_0x5233(_0x4ccacd,_0x12a236){_0x4ccacd=_0x4ccacd-0x16f;const _0x2efc89=a37_0x2efc();let _0x52338b=_0x2efc89[_0x4ccacd];return _0x52338b;}export const datasetList={'service':a37_0x5a748c(0x17b),'command':a37_0x5a748c(0x183),'description':a37_0x5a748c(0x182),'risk':a37_0x5a748c(0x17c),'flags':[{'name':a37_0x5a748c(0x185),'type':'string','description':'Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)'},CODE_FLAG_OPTIONAL,{'name':a37_0x5a748c(0x181),'type':a37_0x5a748c(0x175),'description':a37_0x5a748c(0x173)}],async 'execute'(_0x569aa6){const _0xcdc09a=a37_0x5a748c,_0x4019bd=_0x569aa6[_0xcdc09a(0x178)](_0xcdc09a(0x185)),_0x39ddc4=_0x569aa6[_0xcdc09a(0x178)](_0xcdc09a(0x189)),_0x539e63=_0x569aa6[_0xcdc09a(0x18a)](_0xcdc09a(0x181)),_0x590bd8=await listDatasets(_0x569aa6[_0xcdc09a(0x18c)],{..._0x4019bd&&{'name':_0x4019bd},..._0x39ddc4&&{'code':_0x39ddc4}}),_0x532dd5=_0x539e63?_0x590bd8:_0x590bd8[_0xcdc09a(0x179)](_0x3af04b=>{const _0x1a0c4c=_0xcdc09a,_0x5b01d4=_0x3af04b[_0x1a0c4c(0x176)]??{};return{'id':_0x3af04b['id'],'name':_0x3af04b[_0x1a0c4c(0x185)],'code':_0x3af04b['code'],'description':_0x3af04b['description'],'source':_0x3af04b[_0x1a0c4c(0x16f)],'db':_0x5b01d4[_0x1a0c4c(0x174)],'table':_0x5b01d4[_0x1a0c4c(0x171)],'datasetKey':_0x5b01d4[_0x1a0c4c(0x187)],'pk':_0x5b01d4[_0x1a0c4c(0x17a)],'fields':_0x5b01d4['allFields']?_0x5b01d4['allFields'][_0x1a0c4c(0x18d)](',')[_0x1a0c4c(0x179)](_0x6b4b8e=>_0x6b4b8e[_0x1a0c4c(0x17e)]()):[]};});return{'ok':!![],'data':{'total':_0x532dd5[_0xcdc09a(0x18b)],'datasets':_0x532dd5},'message':_0xcdc09a(0x172)+_0x532dd5[_0xcdc09a(0x18b)]+_0xcdc09a(0x17d)};}};
@@ -1 +1 @@
1
- const a39_0x252abf=a39_0x5557;(function(_0x5d2548,_0x4346aa){const _0x51923a=a39_0x5557,_0x46f9dd=_0x5d2548();while(!![]){try{const _0x53d7df=-parseInt(_0x51923a(0xbe))/0x1+parseInt(_0x51923a(0xb3))/0x2+-parseInt(_0x51923a(0xc7))/0x3*(-parseInt(_0x51923a(0xbb))/0x4)+-parseInt(_0x51923a(0xc3))/0x5+-parseInt(_0x51923a(0xc5))/0x6+-parseInt(_0x51923a(0xcd))/0x7+parseInt(_0x51923a(0xb6))/0x8;if(_0x53d7df===_0x4346aa)break;else _0x46f9dd['push'](_0x46f9dd['shift']());}catch(_0x77aa04){_0x46f9dd['push'](_0x46f9dd['shift']());}}}(a39_0xf7e6,0x42a7a));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a39_0x5557(_0x59f03c,_0x47e2d3){_0x59f03c=_0x59f03c-0xb2;const _0xf7e65a=a39_0xf7e6();let _0x5557f9=_0xf7e65a[_0x59f03c];return _0x5557f9;}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a39_0x252abf(0xb4),'command':a39_0x252abf(0xc1),'description':a39_0x252abf(0xc2),'risk':a39_0x252abf(0xbf),'flags':[CODE_FLAG_OPTIONAL,{'name':a39_0x252abf(0xca),'type':a39_0x252abf(0xc9),'description':a39_0x252abf(0xc0)},{'name':a39_0x252abf(0xcb),'type':a39_0x252abf(0xc9),'description':'Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)'},{'name':a39_0x252abf(0xb8),'type':a39_0x252abf(0xcc),'description':a39_0x252abf(0xc4)}],async 'execute'(_0x4bf8d1){const _0x2d43ae=a39_0x252abf,_0x1d83e3=_0x4bf8d1[_0x2d43ae(0xba)](_0x2d43ae(0xc6)),_0x2a19a9=_0x4bf8d1[_0x2d43ae(0xba)]('operation'),_0x324207=_0x4bf8d1[_0x2d43ae(0xbd)](_0x2d43ae(0xb8));if(_0x2a19a9){const {dataset:_0xbc30a8,operation:_0x1db209}=await getOperationDetail(_0x4bf8d1[_0x2d43ae(0xb5)],_0x1d83e3,_0x2a19a9);return{'ok':!![],'data':{'dataset':_0xbc30a8,'operation':_0x1db209}};}const {dataset:_0x5fa0fd,operations:_0x4e09ad}=await getDatasetOperations(_0x1d83e3);return{'ok':!![],'data':{'dataset':_0x5fa0fd,'total':_0x4e09ad[_0x2d43ae(0xbc)],'operations':_0x324207?_0x4e09ad:_0x4e09ad[_0x2d43ae(0xb7)](_0x49890e=>({'name':_0x49890e['name'],'displayName':_0x49890e[_0x2d43ae(0xb9)],'type':_0x49890e[_0x2d43ae(0xb2)],'method':_0x49890e['method'],'enabled':_0x49890e[_0x2d43ae(0xc8)]}))}};}};function a39_0xf7e6(){const _0xc39152=['string','alias','operation','boolean','2391949zNYmQy','type','447436lhbEjq','dataset','appCode','5840824RZotJt','map','verbose','displayName','str','1375732ATpiYN','length','bool','107312qZrabj','read','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','operations','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','1384600cazATJ','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','1792782GFjYHE','code','3uWcybD','enabled'];a39_0xf7e6=function(){return _0xc39152;};return a39_0xf7e6();}
1
+ function a38_0x36fc(){const _0x2ece33=['30YKyYpi','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','5748cldVLX','name','string','boolean','276518OYqixe','20086sIlduY','length','854608yLJXXp','map','verbose','code','method','str','3tIOLqW','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','displayName','3632jYSdHo','5998566mSDjcP','62150hZZeJJ','24nHKqCw','1915641CyVzQK','bool','234MAkgvs','operation'];a38_0x36fc=function(){return _0x2ece33;};return a38_0x36fc();}const a38_0x303839=a38_0x29c6;(function(_0x40e2a9,_0x42ea2c){const _0x5ce78e=a38_0x29c6,_0x37a162=_0x40e2a9();while(!![]){try{const _0x9d2ae=parseInt(_0x5ce78e(0xb4))/0x1*(parseInt(_0x5ce78e(0xab))/0x2)+-parseInt(_0x5ce78e(0x9f))/0x3*(-parseInt(_0x5ce78e(0x9c))/0x4)+parseInt(_0x5ce78e(0x9e))/0x5*(-parseInt(_0x5ce78e(0xa2))/0x6)+parseInt(_0x5ce78e(0x9d))/0x7+-parseInt(_0x5ce78e(0xae))/0x8+-parseInt(_0x5ce78e(0xa0))/0x9*(-parseInt(_0x5ce78e(0xa4))/0xa)+-parseInt(_0x5ce78e(0xac))/0xb*(parseInt(_0x5ce78e(0xa7))/0xc);if(_0x9d2ae===_0x42ea2c)break;else _0x37a162['push'](_0x37a162['shift']());}catch(_0x215480){_0x37a162['push'](_0x37a162['shift']());}}}(a38_0x36fc,0x6e2cc));function a38_0x29c6(_0x20b89f,_0x2fc545){_0x20b89f=_0x20b89f-0x9b;const _0x36fcb7=a38_0x36fc();let _0x29c67e=_0x36fcb7[_0x20b89f];return _0x29c67e;}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':'dataset','command':'operations','description':a38_0x303839(0xa5),'risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a38_0x303839(0xa9),'description':a38_0x303839(0xb5)},{'name':a38_0x303839(0xa3),'type':a38_0x303839(0xa9),'description':a38_0x303839(0xa6)},{'name':a38_0x303839(0xb0),'type':a38_0x303839(0xaa),'description':'Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields'}],async 'execute'(_0x4eb1a8){const _0x118684=a38_0x303839,_0x307168=_0x4eb1a8[_0x118684(0xb3)](_0x118684(0xb1)),_0x2d723e=_0x4eb1a8[_0x118684(0xb3)](_0x118684(0xa3)),_0x33a23e=_0x4eb1a8[_0x118684(0xa1)]('verbose');if(_0x2d723e){const {dataset:_0x59614c,operation:_0xab4a5e}=await getOperationDetail(_0x4eb1a8['appCode'],_0x307168,_0x2d723e);return{'ok':!![],'data':{'dataset':_0x59614c,'operation':_0xab4a5e}};}const {dataset:_0x11d966,operations:_0x279007}=await getDatasetOperations(_0x307168);return{'ok':!![],'data':{'dataset':_0x11d966,'total':_0x279007[_0x118684(0xad)],'operations':_0x33a23e?_0x279007:_0x279007[_0x118684(0xaf)](_0x5fa090=>({'name':_0x5fa090[_0x118684(0xa8)],'displayName':_0x5fa090[_0x118684(0x9b)],'type':_0x5fa090['type'],'method':_0x5fa090[_0x118684(0xb2)],'enabled':_0x5fa090['enabled']}))}};}};
@@ -1 +1 @@
1
- const a40_0x391a9c=a40_0x190e;(function(_0x55c116,_0x2685e3){const _0x3647c0=a40_0x190e,_0x211b59=_0x55c116();while(!![]){try{const _0x1cceaa=parseInt(_0x3647c0(0xe9))/0x1*(-parseInt(_0x3647c0(0x123))/0x2)+-parseInt(_0x3647c0(0x10a))/0x3+parseInt(_0x3647c0(0x12f))/0x4+parseInt(_0x3647c0(0x105))/0x5*(-parseInt(_0x3647c0(0xfb))/0x6)+-parseInt(_0x3647c0(0x128))/0x7+parseInt(_0x3647c0(0x107))/0x8+parseInt(_0x3647c0(0xed))/0x9;if(_0x1cceaa===_0x2685e3)break;else _0x211b59['push'](_0x211b59['shift']());}catch(_0x1ba39c){_0x211b59['push'](_0x211b59['shift']());}}}(a40_0x4991,0xe7ad2));import a40_0x5b426d from'chalk';import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import{CLI_BIN_NAME}from'../constant/cli.js';import{BUILD_NUMBER}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';async function runDoctor(_0x12f3d6,_0x5e42db,_0x17c6f7){const _0x68a4b4=a40_0x190e,_0x3b9845=_0x12f3d6[_0x68a4b4(0xf1)];let _0xd412b3=_0x68a4b4(0x10b);try{const _0x367ea4=resolve(dirname(fileURLToPath(import.meta.url)),'..'),_0xce4950=JSON[_0x68a4b4(0x11c)](readFileSync(resolve(_0x367ea4,'package.json'),_0x68a4b4(0x10c)));_0xd412b3=_0xce4950[_0x68a4b4(0x117)]||_0x68a4b4(0x10b);}catch{}const _0x22326e=BUILD_NUMBER?_0xd412b3+'+'+BUILD_NUMBER:_0xd412b3;console[_0x68a4b4(0x112)](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](CLI_BIN_NAME+_0x68a4b4(0x100))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)]('─'[_0x68a4b4(0x104)](0x32))),console[_0x68a4b4(0x112)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x22326e),console[_0x68a4b4(0x112)](_0x68a4b4(0x127)+process[_0x68a4b4(0x117)]),console['log'](_0x68a4b4(0x11a)+process[_0x68a4b4(0xfe)]+'\x20'+process[_0x68a4b4(0x12e)]),console['log'](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](_0x68a4b4(0xf8))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)]('\x20\x20─'[_0x68a4b4(0x104)](0x1e)));const _0x47c7e6=getGlobalConfigPath(),_0x253193=getProjectConfigPath();console[_0x68a4b4(0x112)](_0x68a4b4(0x111)+(_0x47c7e6||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11e)))),console[_0x68a4b4(0x112)](_0x68a4b4(0xf5)+(_0x253193||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11e)))),console[_0x68a4b4(0x112)](),console[_0x68a4b4(0x112)](a40_0x5b426d['bold']('\x20\x20Merged\x20Config')),console[_0x68a4b4(0x112)](a40_0x5b426d['gray']('\x20\x20─'[_0x68a4b4(0x104)](0x1e)));const _0x523400=buildConfigFromFlags(_0x17c6f7);console[_0x68a4b4(0x112)](_0x68a4b4(0x101)+(_0x523400[_0x68a4b4(0x12a)]||a40_0x5b426d['red']('(not\x20set)'))),console[_0x68a4b4(0x112)](_0x68a4b4(0xec)+_0x523400[_0x68a4b4(0x108)]),console[_0x68a4b4(0x112)](_0x68a4b4(0x12d)+_0x523400[_0x68a4b4(0xfc)]),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x523400['apiDir']),console['log'](_0x68a4b4(0x129)+(_0x523400[_0x68a4b4(0x115)]||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d)))),console[_0x68a4b4(0x112)](_0x68a4b4(0x102)+(_0x523400['currentApp']||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d)))),console[_0x68a4b4(0x112)](_0x68a4b4(0x106)+(_0x523400[_0x68a4b4(0xf9)]||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d)))),console[_0x68a4b4(0x112)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x523400[_0x68a4b4(0x114)]||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x113)))),console[_0x68a4b4(0x112)](_0x68a4b4(0xff)+(_0x523400['pageSize']??a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x126)))),console[_0x68a4b4(0x112)](_0x68a4b4(0xf7)+_0x523400['riskLevel']),console['log'](_0x68a4b4(0x10e)+_0x523400[_0x68a4b4(0xfd)]),console['log'](_0x68a4b4(0x11b)+(_0x523400[_0x68a4b4(0x122)]?a40_0x5b426d[_0x68a4b4(0x121)](_0x68a4b4(0x12c)+_0x523400[_0x68a4b4(0x122)][_0x68a4b4(0xf4)]+')'):a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d))));const _0x5cc382=Object['keys'](_0x523400[_0x68a4b4(0x110)]);if(_0x5cc382[_0x68a4b4(0xf4)]>0x0){console['log'](),console[_0x68a4b4(0x112)](a40_0x5b426d['bold'](_0x68a4b4(0x124))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0xea)[_0x68a4b4(0x104)](0x1e)));for(const _0x25607a of _0x5cc382){const _0x4d3170=_0x523400[_0x68a4b4(0x110)][_0x25607a],_0x3f3e71=_0x25607a===_0x523400[_0x68a4b4(0x115)],_0x5ef2f0=_0x25607a===_0x523400['currentApp'],_0x5a0b69=_0x5ef2f0?a40_0x5b426d[_0x68a4b4(0x121)](_0x68a4b4(0xf6)):'',_0x933a04=_0x3f3e71?_0x68a4b4(0x125):'';console['log']('\x20\x20'+_0x25607a+_0x933a04+_0x5a0b69),console[_0x68a4b4(0x112)](_0x68a4b4(0xf3)+_0x4d3170[_0x68a4b4(0x103)]),console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x4d3170[_0x68a4b4(0x108)]||a40_0x5b426d[_0x68a4b4(0x11f)]('(inherit)'))),console[_0x68a4b4(0x112)](_0x68a4b4(0x118)+(_0x4d3170[_0x68a4b4(0xee)]||a40_0x5b426d['gray'](_0x68a4b4(0x12b)))),console['log'](_0x68a4b4(0xf0)+(_0x4d3170[_0x68a4b4(0x122)]?a40_0x5b426d[_0x68a4b4(0x121)](_0x68a4b4(0xeb)):a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x12b))));}}console['log'](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](_0x68a4b4(0xef))),console[_0x68a4b4(0x112)](a40_0x5b426d['gray'](_0x68a4b4(0xea)[_0x68a4b4(0x104)](0x1e))),console[_0x68a4b4(0x112)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x68a4b4(0x112)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x68a4b4(0x112)](_0x68a4b4(0x109)+getRuntimeDomain()),console[_0x68a4b4(0x112)](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](_0x68a4b4(0xfa))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0xea)[_0x68a4b4(0x104)](0x1e)));const _0x317f65=_0x523400['cookie']||_0x12f3d6['auth'][_0x68a4b4(0x122)];if(_0x317f65){const _0x5aab33=await getIsSessionValid();console['log'](_0x68a4b4(0x10d)+(_0x5aab33?a40_0x5b426d['green']('✓\x20Valid'):a40_0x5b426d[_0x68a4b4(0x10f)](_0x68a4b4(0x116))));}else console[_0x68a4b4(0x112)](_0x68a4b4(0x10d)+a40_0x5b426d[_0x68a4b4(0x10f)](_0x68a4b4(0x120)));console[_0x68a4b4(0x112)]();}function a40_0x190e(_0x2d3e8f,_0x4516c7){_0x2d3e8f=_0x2d3e8f-0xe9;const _0x499163=a40_0x4991();let _0x190eb4=_0x499163[_0x2d3e8f];return _0x190eb4;}export const doctorCommand={'name':a40_0x391a9c(0xf2),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity',async 'run'(_0x224a3f,_0x1ddaf3,_0x51185a){await runDoctor(_0x224a3f,_0x1ddaf3,_0x51185a);}};function a40_0x4991(){const _0x56f7ba=['length','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','explicitAppName','\x20\x20Auth','6921522ptYvgN','locale','verbose','platform','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','appcode','repeat','5mRsXbL','\x20\x20explicitAppName:\x20','3112432iKBiBA','env','\x20\x20runtimeDomain:\x20\x20\x20','1974777uFSQlz','0.0.0','utf-8','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','apps','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','(default:\x20pretty)','format','defaultApp','✗\x20Expired','version','\x20\x20\x20\x20apiDir:\x20\x20\x20','bold','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','parse','(none)','(not\x20found)','gray','✗\x20Not\x20logged\x20in','green','cookie','1004214Xllvgd','\x20\x20Apps','\x20(default)','(default)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','959651spVgbT','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','appCode','(inherit)','(set,\x20length=','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','6194976JbRhlD','1jXlLIT','\x20\x20─','(set)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','13159746cviyVk','apiDir','\x20\x20API\x20Endpoints','\x20\x20\x20\x20cookie:\x20\x20\x20','config','doctor','\x20\x20\x20\x20appcode:\x20\x20'];a40_0x4991=function(){return _0x56f7ba;};return a40_0x4991();}
1
+ const a39_0x2fe98c=a39_0x2397;(function(_0x1aadd9,_0x6c4471){const _0x20bde5=a39_0x2397,_0x520789=_0x1aadd9();while(!![]){try{const _0x13260d=parseInt(_0x20bde5(0x16b))/0x1+parseInt(_0x20bde5(0x195))/0x2+parseInt(_0x20bde5(0x17b))/0x3+parseInt(_0x20bde5(0x16e))/0x4+parseInt(_0x20bde5(0x186))/0x5*(parseInt(_0x20bde5(0x157))/0x6)+-parseInt(_0x20bde5(0x15c))/0x7+-parseInt(_0x20bde5(0x184))/0x8;if(_0x13260d===_0x6c4471)break;else _0x520789['push'](_0x520789['shift']());}catch(_0x1035a9){_0x520789['push'](_0x520789['shift']());}}}(a39_0x3bd9,0x5fa69));import a39_0xcb6a32 from'chalk';import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a39_0x2397(_0x5c75a2,_0x3f643b){_0x5c75a2=_0x5c75a2-0x154;const _0x3bd9fe=a39_0x3bd9();let _0x23974a=_0x3bd9fe[_0x5c75a2];return _0x23974a;}import{CLI_BIN_NAME}from'../constant/cli.js';import{BUILD_NUMBER}from'../generated/build-info.js';function a39_0x3bd9(){const _0x20340b=['utf-8','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','package.json','bold','1131728tOgmJa','\x20(default)','../..','keys','9042GxlqLJ','env','green','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','1823472lqWeIj','appcode','(inherit)','(set,\x20length=','\x20\x20─','apiDir','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','log','(default:\x20pretty)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20','\x20\x20Config\x20Files','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','589328XwqKxu','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','2156892qeQgab','parse','✗\x20Not\x20logged\x20in','\x20doctor','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','defaultApp','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','red','riskLevel','platform','✗\x20Expired','repeat','2204928oWTxkj','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20←\x20current','(none)','length','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','15386312cuWfJU','version','485kOZctl','format','appCode','(default)','verbose','locale','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','doctor'];a39_0x3bd9=function(){return _0x20340b;};return a39_0x3bd9();}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';async function runDoctor(_0x36e4c0,_0x320221,_0x198c60){const _0x47d586=a39_0x2397,_0x110688=_0x36e4c0['config'];let _0x2052d4='0.0.0';try{const _0x5da431=resolve(dirname(fileURLToPath(import.meta.url)),_0x47d586(0x155)),_0x26457f=JSON[_0x47d586(0x16f)](readFileSync(resolve(_0x5da431,_0x47d586(0x193)),_0x47d586(0x18e)));_0x2052d4=_0x26457f[_0x47d586(0x185)]||'0.0.0';}catch{}const _0x4fe06c=BUILD_NUMBER?_0x2052d4+'+'+BUILD_NUMBER:_0x2052d4;console[_0x47d586(0x164)](),console['log'](a39_0xcb6a32[_0x47d586(0x194)](CLI_BIN_NAME+_0x47d586(0x171))),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x15b)]('─'[_0x47d586(0x17a)](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x4fe06c),console[_0x47d586(0x164)](_0x47d586(0x190)+process[_0x47d586(0x185)]),console[_0x47d586(0x164)](_0x47d586(0x16a)+process[_0x47d586(0x178)]+'\x20'+process['arch']),console[_0x47d586(0x164)](),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x194)](_0x47d586(0x168))),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x160)[_0x47d586(0x17a)](0x1e)));const _0x2da3e5=getGlobalConfigPath(),_0x4c356d=getProjectConfigPath();console[_0x47d586(0x164)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2da3e5||a39_0xcb6a32[_0x47d586(0x15b)]('(not\x20found)'))),console[_0x47d586(0x164)](_0x47d586(0x17c)+(_0x4c356d||a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x16d)))),console[_0x47d586(0x164)](),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x194)]('\x20\x20Merged\x20Config')),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x160)[_0x47d586(0x17a)](0x1e)));const _0x5e1a30=buildConfigFromFlags(_0x198c60);console[_0x47d586(0x164)](_0x47d586(0x172)+(_0x5e1a30[_0x47d586(0x188)]||a39_0xcb6a32[_0x47d586(0x176)](_0x47d586(0x173)))),console[_0x47d586(0x164)](_0x47d586(0x169)+_0x5e1a30[_0x47d586(0x158)]),console[_0x47d586(0x164)](_0x47d586(0x191)+_0x5e1a30[_0x47d586(0x18b)]),console['log'](_0x47d586(0x183)+_0x5e1a30['apiDir']),console[_0x47d586(0x164)](_0x47d586(0x175)+(_0x5e1a30['defaultApp']||a39_0xcb6a32['gray'](_0x47d586(0x181)))),console[_0x47d586(0x164)](_0x47d586(0x18f)+(_0x5e1a30['currentApp']||a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x181)))),console[_0x47d586(0x164)]('\x20\x20explicitAppName:\x20'+(_0x5e1a30['explicitAppName']||a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x181)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5e1a30[_0x47d586(0x187)]||a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x165)))),console[_0x47d586(0x164)](_0x47d586(0x16c)+(_0x5e1a30['pageSize']??a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x189)))),console[_0x47d586(0x164)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x5e1a30[_0x47d586(0x177)]),console[_0x47d586(0x164)](_0x47d586(0x15a)+_0x5e1a30[_0x47d586(0x18a)]),console[_0x47d586(0x164)](_0x47d586(0x162)+(_0x5e1a30['cookie']?a39_0xcb6a32['green'](_0x47d586(0x15f)+_0x5e1a30[_0x47d586(0x17d)][_0x47d586(0x182)]+')'):a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x181))));const _0x873e63=Object[_0x47d586(0x156)](_0x5e1a30['apps']);if(_0x873e63[_0x47d586(0x182)]>0x0){console[_0x47d586(0x164)](),console['log'](a39_0xcb6a32['bold']('\x20\x20Apps')),console['log'](a39_0xcb6a32['gray'](_0x47d586(0x160)['repeat'](0x1e)));for(const _0x210def of _0x873e63){const _0x510a7a=_0x5e1a30[_0x47d586(0x163)][_0x210def],_0x72e1a2=_0x210def===_0x5e1a30[_0x47d586(0x174)],_0xcf240b=_0x210def===_0x5e1a30['currentApp'],_0x1944d9=_0xcf240b?a39_0xcb6a32[_0x47d586(0x159)](_0x47d586(0x180)):'',_0x41b4b6=_0x72e1a2?_0x47d586(0x154):'';console[_0x47d586(0x164)]('\x20\x20'+_0x210def+_0x41b4b6+_0x1944d9),console[_0x47d586(0x164)](_0x47d586(0x167)+_0x510a7a[_0x47d586(0x15d)]),console[_0x47d586(0x164)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x510a7a[_0x47d586(0x158)]||a39_0xcb6a32[_0x47d586(0x15b)]('(inherit)'))),console[_0x47d586(0x164)]('\x20\x20\x20\x20apiDir:\x20\x20\x20'+(_0x510a7a[_0x47d586(0x161)]||a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x15e)))),console[_0x47d586(0x164)]('\x20\x20\x20\x20cookie:\x20\x20\x20'+(_0x510a7a[_0x47d586(0x17d)]?a39_0xcb6a32[_0x47d586(0x159)]('(set)'):a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x15e))));}}console[_0x47d586(0x164)](),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x194)](_0x47d586(0x17f))),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x160)[_0x47d586(0x17a)](0x1e))),console[_0x47d586(0x164)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x47d586(0x164)](_0x47d586(0x166)+getUserDomain()),console[_0x47d586(0x164)](_0x47d586(0x192)+getRuntimeDomain()),console[_0x47d586(0x164)](),console['log'](a39_0xcb6a32[_0x47d586(0x194)]('\x20\x20Auth')),console[_0x47d586(0x164)](a39_0xcb6a32[_0x47d586(0x15b)](_0x47d586(0x160)['repeat'](0x1e)));const _0x116d3c=_0x5e1a30[_0x47d586(0x17d)]||_0x36e4c0['auth'][_0x47d586(0x17d)];if(_0x116d3c){const _0x5766cd=await getIsSessionValid();console[_0x47d586(0x164)](_0x47d586(0x17e)+(_0x5766cd?a39_0xcb6a32[_0x47d586(0x159)]('✓\x20Valid'):a39_0xcb6a32['red'](_0x47d586(0x179))));}else console[_0x47d586(0x164)](_0x47d586(0x17e)+a39_0xcb6a32[_0x47d586(0x176)](_0x47d586(0x170)));console['log']();}export const doctorCommand={'name':a39_0x2fe98c(0x18d),'description':a39_0x2fe98c(0x18c),async 'run'(_0xcae3e7,_0x35b47e,_0x40427d){await runDoctor(_0xcae3e7,_0x35b47e,_0x40427d);}};
@@ -1 +1 @@
1
- const a41_0x385147=a41_0x258d;(function(_0x5a8ce0,_0x50c6e3){const _0x1a3e4f=a41_0x258d,_0x43d166=_0x5a8ce0();while(!![]){try{const _0x3cbbfb=parseInt(_0x1a3e4f(0x179))/0x1*(parseInt(_0x1a3e4f(0x16d))/0x2)+parseInt(_0x1a3e4f(0x17d))/0x3+parseInt(_0x1a3e4f(0x17e))/0x4*(parseInt(_0x1a3e4f(0x17b))/0x5)+parseInt(_0x1a3e4f(0x176))/0x6+-parseInt(_0x1a3e4f(0x16e))/0x7*(-parseInt(_0x1a3e4f(0x171))/0x8)+parseInt(_0x1a3e4f(0x17a))/0x9*(parseInt(_0x1a3e4f(0x175))/0xa)+-parseInt(_0x1a3e4f(0x17c))/0xb*(parseInt(_0x1a3e4f(0x172))/0xc);if(_0x3cbbfb===_0x50c6e3)break;else _0x43d166['push'](_0x43d166['shift']());}catch(_0x315353){_0x43d166['push'](_0x43d166['shift']());}}}(a41_0x27ae,0x38f4d));function a41_0x258d(_0x5af3a1,_0x4403d8){_0x5af3a1=_0x5af3a1-0x16d;const _0x27aecd=a41_0x27ae();let _0x258dcd=_0x27aecd[_0x5af3a1];return _0x258dcd;}function a41_0x27ae(){const _0x3d432e=['6358inciCr','687444vgAogv','36uejsHZ','yes','1146BqpOQO','11228DZPPLw','info','appcode','96BhHWIr','21036VBobeZ','init','logger','520JZXWEz','2717442ZSYbiT','env','Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','82DAjuXR','7056QJQYLi','254150zkhAVm'];a41_0x27ae=function(){return _0x3d432e;};return a41_0x27ae();}import{jsx as a41_0x570192}from'react/jsx-runtime';import{render}from'ink';import{Init}from'../init/main.js';export const initCommand={'name':a41_0x385147(0x173),'description':a41_0x385147(0x178),async 'run'(_0x4151cf,_0x530de1,_0x1e2205){const _0x5c22f0=a41_0x385147;_0x4151cf[_0x5c22f0(0x174)][_0x5c22f0(0x16f)]('init','执行初始化配置命令');const _0x351c04=_0x1e2205[_0x5c22f0(0x170)],_0x48d0d2=_0x1e2205[_0x5c22f0(0x177)];render(a41_0x570192(Init,{'appcode':_0x351c04,'env':_0x48d0d2,'autoYes':_0x1e2205[_0x5c22f0(0x17f)]}));}};
1
+ (function(_0x398c29,_0x1037aa){const _0x501042=a40_0x5ee2,_0x1de171=_0x398c29();while(!![]){try{const _0x25189f=parseInt(_0x501042(0xff))/0x1+parseInt(_0x501042(0x106))/0x2+-parseInt(_0x501042(0xfd))/0x3+parseInt(_0x501042(0x105))/0x4+-parseInt(_0x501042(0x104))/0x5*(-parseInt(_0x501042(0xfa))/0x6)+-parseInt(_0x501042(0x101))/0x7*(parseInt(_0x501042(0xfb))/0x8)+-parseInt(_0x501042(0x107))/0x9;if(_0x25189f===_0x1037aa)break;else _0x1de171['push'](_0x1de171['shift']());}catch(_0x794b12){_0x1de171['push'](_0x1de171['shift']());}}}(a40_0x4786,0x93fb3));function a40_0x5ee2(_0x592374,_0x23b515){_0x592374=_0x592374-0xf8;const _0x478601=a40_0x4786();let _0x5ee2b5=_0x478601[_0x592374];return _0x5ee2b5;}import{jsx as a40_0x4cefbd}from'react/jsx-runtime';function a40_0x4786(){const _0x5ed42b=['env','appcode','24YAJIMF','16yCYyGE','init','2766207brqQLq','info','436071OTlkSL','执行初始化配置命令','1866844OiueMY','yes','logger','242485ZeBumm','3878776DGFWXT','1100362ElwlLw','795150ZEsEVJ'];a40_0x4786=function(){return _0x5ed42b;};return a40_0x4786();}import{render}from'ink';import{Init}from'../init/main.js';export const initCommand={'name':'init','description':'Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project',async 'run'(_0x1608c0,_0x5e8d03,_0x4ecc8e){const _0x548a70=a40_0x5ee2;_0x1608c0[_0x548a70(0x103)][_0x548a70(0xfe)](_0x548a70(0xfc),_0x548a70(0x100));const _0x4c3778=_0x4ecc8e[_0x548a70(0xf9)],_0x3335cf=_0x4ecc8e[_0x548a70(0xf8)];render(a40_0x4cefbd(Init,{'appcode':_0x4c3778,'env':_0x3335cf,'autoYes':_0x4ecc8e[_0x548a70(0x102)]}));}};
@@ -1 +1 @@
1
- const a42_0x56cf26=a42_0x1496;(function(_0x56affd,_0x1379f5){const _0x1cb462=a42_0x1496,_0xdbc665=_0x56affd();while(!![]){try{const _0x251799=-parseInt(_0x1cb462(0x19b))/0x1*(-parseInt(_0x1cb462(0x19a))/0x2)+-parseInt(_0x1cb462(0x19f))/0x3*(parseInt(_0x1cb462(0x19e))/0x4)+-parseInt(_0x1cb462(0x197))/0x5*(parseInt(_0x1cb462(0x1a1))/0x6)+-parseInt(_0x1cb462(0x1a4))/0x7+-parseInt(_0x1cb462(0x19c))/0x8*(parseInt(_0x1cb462(0x1a2))/0x9)+parseInt(_0x1cb462(0x198))/0xa+parseInt(_0x1cb462(0x1a0))/0xb;if(_0x251799===_0x1379f5)break;else _0xdbc665['push'](_0xdbc665['shift']());}catch(_0x53f2a5){_0xdbc665['push'](_0xdbc665['shift']());}}}(a42_0xa5b6,0x814ef));function a42_0xa5b6(){const _0x240bf9=['log','7176792SIbgHd','46975Wopmrz','10128630XylENG','!\x20Not\x20logged\x20in','43916NmSYuc','27jNbrzC','8CvSMgR','Logout\x20from\x20rabetbase','1049556oYFgRI','3pMGvIy','18171659etHPdQ','246eCwxZp','9496899LApmkg'];a42_0xa5b6=function(){return _0x240bf9;};return a42_0xa5b6();}import{unlinkSync,existsSync}from'node:fs';function a42_0x1496(_0x5d9a25,_0x6a0caf){_0x5d9a25=_0x5d9a25-0x197;const _0xa5b6de=a42_0xa5b6();let _0x14962f=_0xa5b6de[_0x5d9a25];return _0x14962f;}import{cookieFile}from'../auth/constant.js';export const logoutCommand={'name':'logout','description':a42_0x56cf26(0x19d),async 'run'(_0x21e3e2,_0x287c23,_0x549a64){const _0x1167be=a42_0x56cf26;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x1167be(0x1a3)]('✓\x20Logged\x20out')):console[_0x1167be(0x1a3)](_0x1167be(0x199));}};
1
+ const a41_0x22a763=a41_0x218f;(function(_0x3fc543,_0x536eb9){const _0x1d2f39=a41_0x218f,_0x27dcd7=_0x3fc543();while(!![]){try{const _0x382021=-parseInt(_0x1d2f39(0x1b9))/0x1+parseInt(_0x1d2f39(0x1ba))/0x2+parseInt(_0x1d2f39(0x1b4))/0x3+parseInt(_0x1d2f39(0x1b6))/0x4+parseInt(_0x1d2f39(0x1bb))/0x5*(parseInt(_0x1d2f39(0x1bd))/0x6)+-parseInt(_0x1d2f39(0x1bf))/0x7+-parseInt(_0x1d2f39(0x1bc))/0x8*(parseInt(_0x1d2f39(0x1b5))/0x9);if(_0x382021===_0x536eb9)break;else _0x27dcd7['push'](_0x27dcd7['shift']());}catch(_0x127fc7){_0x27dcd7['push'](_0x27dcd7['shift']());}}}(a41_0x4a48,0x75d54));function a41_0x4a48(){const _0x33ca83=['1707688DPzoRE','4170qAmwMB','Logout\x20from\x20rabetbase','1017149nwWnzg','!\x20Not\x20logged\x20in','log','2455542eHDMtv','54gaHyrH','712984juEfsT','logout','✓\x20Logged\x20out','481925MnhTdI','1307414VtbPec','5325lGPGHZ'];a41_0x4a48=function(){return _0x33ca83;};return a41_0x4a48();}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a41_0x218f(_0x4dd854,_0x14147f){_0x4dd854=_0x4dd854-0x1b2;const _0x4a48bc=a41_0x4a48();let _0x218f34=_0x4a48bc[_0x4dd854];return _0x218f34;}export const logoutCommand={'name':a41_0x22a763(0x1b7),'description':a41_0x22a763(0x1be),async 'run'(_0x2207b1,_0x5ae54c,_0x538739){const _0x5b672f=a41_0x22a763;existsSync(cookieFile)?(unlinkSync(cookieFile),console['log'](_0x5b672f(0x1b8))):console[_0x5b672f(0x1b3)](_0x5b672f(0x1b2));}};
@@ -1 +1 @@
1
- const a43_0xc46499=a43_0x308c;(function(_0x3dad49,_0xed101b){const _0xab1561=a43_0x308c,_0x281c4b=_0x3dad49();while(!![]){try{const _0x467f97=parseInt(_0xab1561(0x138))/0x1+-parseInt(_0xab1561(0x139))/0x2+parseInt(_0xab1561(0x12a))/0x3+-parseInt(_0xab1561(0x148))/0x4*(-parseInt(_0xab1561(0x13e))/0x5)+parseInt(_0xab1561(0x131))/0x6*(-parseInt(_0xab1561(0x141))/0x7)+-parseInt(_0xab1561(0x142))/0x8*(parseInt(_0xab1561(0x13c))/0x9)+parseInt(_0xab1561(0x12f))/0xa;if(_0x467f97===_0xed101b)break;else _0x281c4b['push'](_0x281c4b['shift']());}catch(_0x1c405d){_0x281c4b['push'](_0x281c4b['shift']());}}}(a43_0x12c2,0xf17bb));function showLogs(_0x1c01d5){const _0x345205=a43_0x308c,_0x588fb8=_0x1c01d5[_0x345205(0x144)][_0x345205(0x145)]();if(_0x588fb8[_0x345205(0x146)]===0x0){console['log'](_0x345205(0x133));return;}console[_0x345205(0x132)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x588fb8[_0x345205(0x135)]((_0x343bd2,_0x5a5311)=>{const _0x3132b5=_0x345205,_0xdbc9bd=new Date(_0x343bd2[_0x3132b5(0x12e)])[_0x3132b5(0x137)](_0x3132b5(0x13d)),_0x2f12da=_0x343bd2[_0x3132b5(0x12d)]==='success'?'√':_0x343bd2['level']===_0x3132b5(0x149)?'×':_0x343bd2['level']===_0x3132b5(0x12c)?'!':'i';console[_0x3132b5(0x132)](_0x5a5311+0x1+'.\x20'+_0x2f12da+'\x20['+_0x343bd2[_0x3132b5(0x136)]+']\x20'+_0x343bd2['message']),console['log'](_0x3132b5(0x143)+_0xdbc9bd),_0x343bd2['duration']&&console['log'](_0x3132b5(0x12b)+_0x343bd2[_0x3132b5(0x140)]+'ms'),_0x343bd2[_0x3132b5(0x134)]&&Object[_0x3132b5(0x13b)](_0x343bd2[_0x3132b5(0x134)])[_0x3132b5(0x146)]>0x0&&console[_0x3132b5(0x132)](_0x3132b5(0x13f)+JSON['stringify'](_0x343bd2[_0x3132b5(0x134)],null,0x2)),console['log']('');});}function clearLogs(_0x28c03c){const _0x4dcbf1=a43_0x308c;_0x28c03c[_0x4dcbf1(0x144)][_0x4dcbf1(0x147)](),console[_0x4dcbf1(0x132)](_0x4dcbf1(0x130));}function a43_0x12c2(){const _0x1f36a7=['en-US','15sGNXwg','\x20\x20\x20Details:\x20','duration','7gARdfq','10910888OZSAni','\x20\x20\x20Time:\x20','logger','readLogs','length','clearLogs','253212KtcbvT','error','4021566DMwhvi','\x20\x20\x20Duration:\x20','warn','level','timestamp','17605910xomQDh','*\x20Logs\x20cleared','6788706HgwAZM','log','*\x20No\x20logs\x20found','details','forEach','command','toLocaleString','1311980AugroK','2237150cKYcAH','logs','keys','9silIZn'];a43_0x12c2=function(){return _0x1f36a7;};return a43_0x12c2();}function a43_0x308c(_0x169424,_0x1977e2){_0x169424=_0x169424-0x12a;const _0x12c215=a43_0x12c2();let _0x308ceb=_0x12c215[_0x169424];return _0x308ceb;}export const logsCommand={'name':a43_0xc46499(0x13a),'description':'View\x20or\x20clear\x20CLI\x20logs',async 'run'(_0x385e6c,_0x471157,_0x1eb135){_0x1eb135['clear']?clearLogs(_0x385e6c):showLogs(_0x385e6c);}};
1
+ const a42_0x508e09=a42_0x5d4f;(function(_0x3f7da9,_0x29111b){const _0x2d7b6a=a42_0x5d4f,_0x213c18=_0x3f7da9();while(!![]){try{const _0x1bc602=-parseInt(_0x2d7b6a(0x1e3))/0x1*(parseInt(_0x2d7b6a(0x1cf))/0x2)+parseInt(_0x2d7b6a(0x1c2))/0x3+-parseInt(_0x2d7b6a(0x1ca))/0x4*(parseInt(_0x2d7b6a(0x1d0))/0x5)+parseInt(_0x2d7b6a(0x1cb))/0x6*(-parseInt(_0x2d7b6a(0x1e2))/0x7)+parseInt(_0x2d7b6a(0x1dd))/0x8*(parseInt(_0x2d7b6a(0x1cc))/0x9)+parseInt(_0x2d7b6a(0x1e1))/0xa*(-parseInt(_0x2d7b6a(0x1e0))/0xb)+parseInt(_0x2d7b6a(0x1c5))/0xc;if(_0x1bc602===_0x29111b)break;else _0x213c18['push'](_0x213c18['shift']());}catch(_0x53f079){_0x213c18['push'](_0x213c18['shift']());}}}(a42_0x3631,0xe6d88));function showLogs(_0x3a4f72){const _0xbea2ba=a42_0x5d4f,_0x53aa3a=_0x3a4f72['logger']['readLogs']();if(_0x53aa3a['length']===0x0){console['log'](_0xbea2ba(0x1d3));return;}console[_0xbea2ba(0x1c9)](_0xbea2ba(0x1cd)),_0x53aa3a[_0xbea2ba(0x1c7)]((_0x49bb8d,_0x4dac4d)=>{const _0x565ff1=_0xbea2ba,_0x1d6d25=new Date(_0x49bb8d[_0x565ff1(0x1d4)])[_0x565ff1(0x1db)]('en-US'),_0x36f534=_0x49bb8d[_0x565ff1(0x1c3)]===_0x565ff1(0x1d1)?'√':_0x49bb8d['level']===_0x565ff1(0x1dc)?'×':_0x49bb8d['level']==='warn'?'!':'i';console[_0x565ff1(0x1c9)](_0x4dac4d+0x1+'.\x20'+_0x36f534+'\x20['+_0x49bb8d[_0x565ff1(0x1df)]+']\x20'+_0x49bb8d[_0x565ff1(0x1d2)]),console[_0x565ff1(0x1c9)](_0x565ff1(0x1c1)+_0x1d6d25),_0x49bb8d[_0x565ff1(0x1e4)]&&console[_0x565ff1(0x1c9)](_0x565ff1(0x1ce)+_0x49bb8d['duration']+'ms'),_0x49bb8d['details']&&Object[_0x565ff1(0x1c8)](_0x49bb8d[_0x565ff1(0x1c4)])['length']>0x0&&console[_0x565ff1(0x1c9)](_0x565ff1(0x1d9)+JSON[_0x565ff1(0x1d6)](_0x49bb8d['details'],null,0x2)),console[_0x565ff1(0x1c9)]('');});}function a42_0x5d4f(_0x4e3fc0,_0x107710){_0x4e3fc0=_0x4e3fc0-0x1c1;const _0x363192=a42_0x3631();let _0x5d4f08=_0x363192[_0x4e3fc0];return _0x5d4f08;}function clearLogs(_0x395210){const _0x5546cf=a42_0x5d4f;_0x395210[_0x5546cf(0x1d5)][_0x5546cf(0x1d7)](),console['log'](_0x5546cf(0x1da));}export const logsCommand={'name':a42_0x508e09(0x1d8),'description':a42_0x508e09(0x1de),async 'run'(_0x34892e,_0x4062fc,_0x53b96e){const _0x46b59a=a42_0x508e09;_0x53b96e[_0x46b59a(0x1c6)]?clearLogs(_0x34892e):showLogs(_0x34892e);}};function a42_0x3631(){const _0x3b0b24=['42qDZlmE','1395fYgZyE','*\x20Lovrabet\x20CLI\x20logs:\x0a','\x20\x20\x20Duration:\x20','2qzVcfs','320dudHNt','success','message','*\x20No\x20logs\x20found','timestamp','logger','stringify','clearLogs','logs','\x20\x20\x20Details:\x20','*\x20Logs\x20cleared','toLocaleString','error','71472eccibb','View\x20or\x20clear\x20CLI\x20logs','command','33LJmlFJ','3350810bIIuZJ','1005557ZYBwOz','430868fwRRIQ','duration','\x20\x20\x20Time:\x20','2596110KfLMdE','level','details','14534208JqZcuF','clear','forEach','keys','log','4632bcTbeo'];a42_0x3631=function(){return _0x3b0b24;};return a42_0x3631();}
@@ -1 +1 @@
1
- function a45_0x48ca(){const _0x5a08a3=['2922372eFElBO','284720syBKDa','30CUYrgF','96230DVcKbQ','2817gmWVse','3xizDJo','1783890UXJjww','116980EQyqMz','10641264vYmvIO','1490167zKKeLr'];a45_0x48ca=function(){return _0x5a08a3;};return a45_0x48ca();}(function(_0x168593,_0x155e19){const _0x5232f2=a45_0x4e14,_0x5306ba=_0x168593();while(!![]){try{const _0x35f105=parseInt(_0x5232f2(0x1c1))/0x1+-parseInt(_0x5232f2(0x1bb))/0x2+parseInt(_0x5232f2(0x1c0))/0x3*(parseInt(_0x5232f2(0x1c2))/0x4)+-parseInt(_0x5232f2(0x1bc))/0x5+parseInt(_0x5232f2(0x1bd))/0x6*(-parseInt(_0x5232f2(0x1c4))/0x7)+-parseInt(_0x5232f2(0x1c3))/0x8+-parseInt(_0x5232f2(0x1bf))/0x9*(-parseInt(_0x5232f2(0x1be))/0xa);if(_0x35f105===_0x155e19)break;else _0x5306ba['push'](_0x5306ba['shift']());}catch(_0x3f2388){_0x5306ba['push'](_0x5306ba['shift']());}}}(a45_0x48ca,0xdec39));import{menuSync}from'./sync.js';import{menuUpdate}from'./update.js';function a45_0x4e14(_0x264885,_0x475299){_0x264885=_0x264885-0x1bb;const _0x48cade=a45_0x48ca();let _0x4e14e8=_0x48cade[_0x264885];return _0x4e14e8;}export const menuDefinitions=[menuSync,menuUpdate];
1
+ (function(_0x4f7a02,_0x455bb9){const _0x45aeaa=a43_0x5541,_0xecfbcc=_0x4f7a02();while(!![]){try{const _0x3d819c=-parseInt(_0x45aeaa(0x146))/0x1*(-parseInt(_0x45aeaa(0x140))/0x2)+parseInt(_0x45aeaa(0x13c))/0x3*(parseInt(_0x45aeaa(0x142))/0x4)+parseInt(_0x45aeaa(0x141))/0x5*(parseInt(_0x45aeaa(0x147))/0x6)+parseInt(_0x45aeaa(0x13e))/0x7*(parseInt(_0x45aeaa(0x13d))/0x8)+-parseInt(_0x45aeaa(0x13f))/0x9+-parseInt(_0x45aeaa(0x145))/0xa*(-parseInt(_0x45aeaa(0x144))/0xb)+-parseInt(_0x45aeaa(0x143))/0xc;if(_0x3d819c===_0x455bb9)break;else _0xecfbcc['push'](_0xecfbcc['shift']());}catch(_0x36ccfc){_0xecfbcc['push'](_0xecfbcc['shift']());}}}(a43_0xce28,0xc3f43));import{menuSync}from'./sync.js';function a43_0xce28(){const _0x369765=['17382iFfPSm','8iMRvoD','68719AJlGJH','8988354sietpv','806secdYJ','25dvOUso','308sclaEM','13373784kdsSJP','182908NLqXUL','570vaSOcU','1718qvSvpP','983652xKJrBF'];a43_0xce28=function(){return _0x369765;};return a43_0xce28();}function a43_0x5541(_0x1a56f4,_0x5dd774){_0x1a56f4=_0x1a56f4-0x13c;const _0xce28ea=a43_0xce28();let _0x5541a6=_0xce28ea[_0x1a56f4];return _0x5541a6;}import{menuUpdate}from'./update.js';export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- function a46_0x17e7(_0x28f512,_0x473f7a){_0x28f512=_0x28f512-0x6c;const _0x407178=a46_0x4071();let _0x17e73f=_0x407178[_0x28f512];return _0x17e73f;}(function(_0x148763,_0x2a9dc2){const _0x1bc33a=a46_0x17e7,_0x53a2e6=_0x148763();while(!![]){try{const _0x4042fc=-parseInt(_0x1bc33a(0x75))/0x1*(parseInt(_0x1bc33a(0x89))/0x2)+parseInt(_0x1bc33a(0x86))/0x3*(parseInt(_0x1bc33a(0x77))/0x4)+-parseInt(_0x1bc33a(0x7a))/0x5*(parseInt(_0x1bc33a(0x7e))/0x6)+parseInt(_0x1bc33a(0x79))/0x7*(-parseInt(_0x1bc33a(0x7f))/0x8)+-parseInt(_0x1bc33a(0x6f))/0x9*(-parseInt(_0x1bc33a(0x85))/0xa)+parseInt(_0x1bc33a(0x8b))/0xb*(-parseInt(_0x1bc33a(0x74))/0xc)+parseInt(_0x1bc33a(0x6c))/0xd;if(_0x4042fc===_0x2a9dc2)break;else _0x53a2e6['push'](_0x53a2e6['shift']());}catch(_0x2a1c1b){_0x53a2e6['push'](_0x53a2e6['shift']());}}}(a46_0x4071,0x9c368));function strWidth(_0x195342){let _0x320945=0x0;for(const _0xdf92fe of _0x195342){_0x320945+=/[\u4e00-\u9fa5]/['test'](_0xdf92fe)?0x2:0x1;}return _0x320945;}function a46_0x4071(){const _0x2f1c7a=['110cJKTPT','253335fivzyw','\x20\x20Affected\x20menus:\x20','push','2241164mcTXep','\x20\x20\x20\x20•\x20','11KpQfbm','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','path','45319703XHwVOJ','max','local','70317SINGdL','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','join','Platform','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','9809256UBBNdI','1OwWjvl','Menu\x20Name','20ZcgjvU','length','7sVSSWK','1282075gXUWLI','(unchanged)','\x20\x20\x20\x20JS:\x20\x20','Local','18bZPJvr','5177488AUnMEa','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','label','\x20\x20No\x20pages\x20to\x20sync.','repeat','map'];a46_0x4071=function(){return _0x2f1c7a;};return a46_0x4071();}function padRight(_0x54b4f4,_0x2f34a5){const _0x20760e=strWidth(_0x54b4f4);return _0x54b4f4+'\x20'['repeat'](Math['max'](0x0,_0x2f34a5-_0x20760e));}export function renderCompareTable(_0x2a5952,_0x5c323c={}){const _0x34181a=a46_0x17e7;if(_0x2a5952[_0x34181a(0x78)]===0x0)return'';const _0xddf87c=_0x5c323c['showOnline']??!![],_0x3f7764=Math[_0x34181a(0x6d)](0x1e,..._0x2a5952[_0x34181a(0x84)](_0x5d7de7=>strWidth(_0x5d7de7[_0x34181a(0x81)]))),_0x9b127e=0x4,_0x40d032=[],_0x42b7da='\x20\x20'+padRight(_0x34181a(0x76),_0x3f7764),_0x1aea44=padRight(_0x34181a(0x7d),_0x9b127e),_0x1d73ae=_0xddf87c?'\x20\x20'+padRight(_0x34181a(0x72),_0x9b127e):'';_0x40d032[_0x34181a(0x88)](_0x42b7da+'\x20\x20'+_0x1aea44+(_0xddf87c?_0x1d73ae:'')),_0x40d032[_0x34181a(0x88)]('\x20\x20'+'─'[_0x34181a(0x83)](_0x3f7764)+'\x20\x20'+'─'[_0x34181a(0x83)](_0x9b127e)+(_0xddf87c?'\x20\x20'+'─'[_0x34181a(0x83)](_0x9b127e):''));for(const _0x429010 of _0x2a5952){const _0x110648=padRight(_0x429010[_0x34181a(0x81)],_0x3f7764),_0x3d0be3=_0x429010[_0x34181a(0x6e)]?'✓':'✗',_0x218a49=padRight(_0x3d0be3,_0x9b127e);let _0x99b677='\x20\x20'+_0x110648+'\x20\x20'+_0x218a49;if(_0xddf87c){const _0x31a5f2=_0x429010['online']?'✓':'✗';_0x99b677+='\x20\x20'+padRight(_0x31a5f2,_0x9b127e);}_0x40d032[_0x34181a(0x88)](_0x99b677);}return _0x40d032[_0x34181a(0x71)]('\x0a');}export function renderSyncSummary(_0x437617,_0x22b6b3){const _0x88442=a46_0x17e7;if(_0x437617[_0x88442(0x78)]===0x0)return _0x22b6b3?_0x88442(0x80):_0x88442(0x82);const _0x4d8cf8=['\x20\x20'+_0x437617[_0x88442(0x78)]+_0x88442(0x73)];for(const _0x32923a of _0x437617){_0x4d8cf8[_0x88442(0x88)](_0x88442(0x8a)+_0x32923a[_0x88442(0x81)]+'\x20('+_0x32923a[_0x88442(0x8d)]+')');}return _0x4d8cf8['join']('\x0a');}export function renderUpdateSummary(_0x39f397,_0x113b53){const _0x5f15f4=a46_0x17e7;if(_0x39f397[_0x5f15f4(0x78)]===0x0)return _0x5f15f4(0x70);const _0x575fb4=['\x20\x20'+_0x39f397['length']+_0x5f15f4(0x8c),_0x5f15f4(0x7c)+(_0x113b53[0x0]??_0x5f15f4(0x7b)),'\x20\x20\x20\x20CSS:\x20'+(_0x113b53[0x1]??_0x5f15f4(0x7b)),'',_0x5f15f4(0x87)+_0x39f397[_0x5f15f4(0x71)](',\x20')];return _0x575fb4[_0x5f15f4(0x71)]('\x0a');}
1
+ (function(_0x321c09,_0x4dbae9){const _0x4f2dd3=a44_0x4f5c,_0x3be823=_0x321c09();while(!![]){try{const _0xfc9a3a=-parseInt(_0x4f2dd3(0x1a8))/0x1+-parseInt(_0x4f2dd3(0x1bb))/0x2*(-parseInt(_0x4f2dd3(0x1a0))/0x3)+parseInt(_0x4f2dd3(0x1b0))/0x4*(parseInt(_0x4f2dd3(0x1ab))/0x5)+-parseInt(_0x4f2dd3(0x1a7))/0x6*(-parseInt(_0x4f2dd3(0x1b6))/0x7)+-parseInt(_0x4f2dd3(0x1a2))/0x8+parseInt(_0x4f2dd3(0x1a9))/0x9*(parseInt(_0x4f2dd3(0x1b3))/0xa)+-parseInt(_0x4f2dd3(0x1ba))/0xb;if(_0xfc9a3a===_0x4dbae9)break;else _0x3be823['push'](_0x3be823['shift']());}catch(_0x49d82d){_0x3be823['push'](_0x3be823['shift']());}}}(a44_0x27e2,0x86313));function strWidth(_0x2c6098){const _0x289ce9=a44_0x4f5c;let _0xf601af=0x0;for(const _0x1cc715 of _0x2c6098){_0xf601af+=/[\u4e00-\u9fa5]/[_0x289ce9(0x19c)](_0x1cc715)?0x2:0x1;}return _0xf601af;}function padRight(_0x18d388,_0x47f3da){const _0x5caac7=a44_0x4f5c,_0x4dc838=strWidth(_0x18d388);return _0x18d388+'\x20'[_0x5caac7(0x1ac)](Math[_0x5caac7(0x1b9)](0x0,_0x47f3da-_0x4dc838));}export function renderCompareTable(_0x1446ef,_0x2c69ec={}){const _0x50d810=a44_0x4f5c;if(_0x1446ef[_0x50d810(0x1b7)]===0x0)return'';const _0xd4e355=_0x2c69ec[_0x50d810(0x1a5)]??!![],_0x4037f0=Math[_0x50d810(0x1b9)](0x1e,..._0x1446ef[_0x50d810(0x1b8)](_0x99ad9d=>strWidth(_0x99ad9d[_0x50d810(0x1a4)]))),_0x59ed30=0x4,_0x1c8676=[],_0x598201='\x20\x20'+padRight(_0x50d810(0x1b1),_0x4037f0),_0x478187=padRight(_0x50d810(0x19b),_0x59ed30),_0x3f9376=_0xd4e355?'\x20\x20'+padRight(_0x50d810(0x1b5),_0x59ed30):'';_0x1c8676[_0x50d810(0x19e)](_0x598201+'\x20\x20'+_0x478187+(_0xd4e355?_0x3f9376:'')),_0x1c8676[_0x50d810(0x19e)]('\x20\x20'+'─'[_0x50d810(0x1ac)](_0x4037f0)+'\x20\x20'+'─'[_0x50d810(0x1ac)](_0x59ed30)+(_0xd4e355?'\x20\x20'+'─'['repeat'](_0x59ed30):''));for(const _0x30755f of _0x1446ef){const _0x1cf7bf=padRight(_0x30755f[_0x50d810(0x1a4)],_0x4037f0),_0x35de35=_0x30755f[_0x50d810(0x1a6)]?'✓':'✗',_0x348361=padRight(_0x35de35,_0x59ed30);let _0x534bee='\x20\x20'+_0x1cf7bf+'\x20\x20'+_0x348361;if(_0xd4e355){const _0x1d4ac9=_0x30755f[_0x50d810(0x1aa)]?'✓':'✗';_0x534bee+='\x20\x20'+padRight(_0x1d4ac9,_0x59ed30);}_0x1c8676[_0x50d810(0x19e)](_0x534bee);}return _0x1c8676['join']('\x0a');}function a44_0x27e2(){const _0x247bc6=['\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','147219CQAEnI','join','7696144mKBbed','\x20\x20\x20\x20•\x20','label','showOnline','local','6hvwtSz','870014qrXBNo','9Qyouee','online','8045TWgAOd','repeat','(unchanged)','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20\x20\x20JS:\x20\x20','2624EGzVqq','Menu\x20Name','\x20\x20\x20\x20CSS:\x20','9435450iGRUje','\x20\x20Affected\x20menus:\x20','Platform','4243281ObQlCd','length','map','max','5158054EDSTTc','10cNvfSG','path','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Local','test','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','push'];a44_0x27e2=function(){return _0x247bc6;};return a44_0x27e2();}function a44_0x4f5c(_0xc9867,_0xe4d274){_0xc9867=_0xc9867-0x19a;const _0x27e2ff=a44_0x27e2();let _0x4f5c78=_0x27e2ff[_0xc9867];return _0x4f5c78;}export function renderSyncSummary(_0x39bff0,_0x2a21fe){const _0x18b327=a44_0x4f5c;if(_0x39bff0[_0x18b327(0x1b7)]===0x0)return _0x2a21fe?_0x18b327(0x19a):'\x20\x20No\x20pages\x20to\x20sync.';const _0x24a41d=['\x20\x20'+_0x39bff0[_0x18b327(0x1b7)]+_0x18b327(0x19d)];for(const _0x2a83a3 of _0x39bff0){_0x24a41d[_0x18b327(0x19e)](_0x18b327(0x1a3)+_0x2a83a3[_0x18b327(0x1a4)]+'\x20('+_0x2a83a3[_0x18b327(0x1bc)]+')');}return _0x24a41d[_0x18b327(0x1a1)]('\x0a');}export function renderUpdateSummary(_0x2b221f,_0x289692){const _0x2925d8=a44_0x4f5c;if(_0x2b221f[_0x2925d8(0x1b7)]===0x0)return _0x2925d8(0x19f);const _0x4edac0=['\x20\x20'+_0x2b221f['length']+_0x2925d8(0x1ae),_0x2925d8(0x1af)+(_0x289692[0x0]??_0x2925d8(0x1ad)),_0x2925d8(0x1b2)+(_0x289692[0x1]??'(unchanged)'),'',_0x2925d8(0x1b4)+_0x2b221f[_0x2925d8(0x1a1)](',\x20')];return _0x4edac0[_0x2925d8(0x1a1)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x3a7b6c,_0x4b3512){var _0x1d9d42=a47_0x24b6,_0x420960=_0x3a7b6c();while(!![]){try{var _0x510738=parseInt(_0x1d9d42(0x188))/0x1+parseInt(_0x1d9d42(0x18a))/0x2*(parseInt(_0x1d9d42(0x18e))/0x3)+-parseInt(_0x1d9d42(0x190))/0x4+parseInt(_0x1d9d42(0x18c))/0x5*(parseInt(_0x1d9d42(0x18d))/0x6)+-parseInt(_0x1d9d42(0x189))/0x7+-parseInt(_0x1d9d42(0x191))/0x8*(parseInt(_0x1d9d42(0x187))/0x9)+parseInt(_0x1d9d42(0x18b))/0xa*(parseInt(_0x1d9d42(0x18f))/0xb);if(_0x510738===_0x4b3512)break;else _0x420960['push'](_0x420960['shift']());}catch(_0x2e17b7){_0x420960['push'](_0x420960['shift']());}}}(a47_0x1fac,0xb7eb3));export*from'./types.js';export*from'./logic.js';export*from'./compare-table.js';export*from'./inquirer.js';function a47_0x24b6(_0x41a259,_0x203c02){_0x41a259=_0x41a259-0x187;var _0x1fac68=a47_0x1fac();var _0x24b60d=_0x1fac68[_0x41a259];return _0x24b60d;}export*from'./valid-url.js';export*from'./local-pages.js';export*from'./service.js';export*from'./sync-core.js';function a47_0x1fac(){var _0x52f044=['4416528xeJume','16XUCOcz','428751rVTTVl','619585NMCJEG','10026212DJvmUs','5542NsGlIX','9009430AwuDls','10IxUppi','2260074DbWpeA','1203OvQWVP','11wjKbEB'];a47_0x1fac=function(){return _0x52f044;};return a47_0x1fac();}export*from'./update-core.js';
1
+ (function(_0x3b958b,_0x2258b3){var _0x58a4b4=a45_0x10f2,_0x356725=_0x3b958b();while(!![]){try{var _0xecccc1=parseInt(_0x58a4b4(0x12c))/0x1+-parseInt(_0x58a4b4(0x125))/0x2*(-parseInt(_0x58a4b4(0x12a))/0x3)+parseInt(_0x58a4b4(0x123))/0x4*(-parseInt(_0x58a4b4(0x127))/0x5)+-parseInt(_0x58a4b4(0x126))/0x6*(parseInt(_0x58a4b4(0x128))/0x7)+parseInt(_0x58a4b4(0x129))/0x8*(-parseInt(_0x58a4b4(0x122))/0x9)+parseInt(_0x58a4b4(0x12b))/0xa+-parseInt(_0x58a4b4(0x124))/0xb;if(_0xecccc1===_0x2258b3)break;else _0x356725['push'](_0x356725['shift']());}catch(_0x56e0b5){_0x356725['push'](_0x356725['shift']());}}}(a45_0x4131,0x37f64));export*from'./types.js';export*from'./logic.js';function a45_0x4131(){var _0x1e9f98=['58785YpKlfc','3191550GKotvN','82152STayQt','62064SEFZLp','244PSQeKf','3049519MZpWGb','30bSKbSn','8646FYqEYJ','12150VimDri','63TijDWY','32PhQkVJ'];a45_0x4131=function(){return _0x1e9f98;};return a45_0x4131();}export*from'./compare-table.js';export*from'./inquirer.js';export*from'./valid-url.js';function a45_0x10f2(_0x2668c7,_0x33ae7a){_0x2668c7=_0x2668c7-0x122;var _0x4131d0=a45_0x4131();var _0x10f2fe=_0x4131d0[_0x2668c7];return _0x10f2fe;}export*from'./local-pages.js';export*from'./service.js';export*from'./sync-core.js';export*from'./update-core.js';
@@ -1 +1 @@
1
- function a48_0x1591(){const _0x54864e=['map','JS\x20URL\x20check\x20failed','catch','fail','\x20\x20JS\x20URL:','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','has','start','red','filter','test','isTTY','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','No\x20menus\x20selected.','path','\x20\x20Checking\x20JS\x20URL\x20reachability...','includes','CANCEL','green','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','succeed','error','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','\x20\x20Checking\x20CSS\x20URL\x20reachability...','ExitPromptError','stdin','1688218nwtfoB','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','[already\x20on\x20platform]','[new]','16RjZwna','5049ZCIhsy','length','trim','454220XVQrqu','157744lgifIr','CSS\x20URL\x20check\x20failed','label','cyan','196RiMLCi','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20CSS\x20URL:','CSS\x20URL\x20checked','JS\x20URL\x20checked','4921pFUErS','33XcfptP','10432220LNOwna','2733720qLRMRz','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'];a48_0x1591=function(){return _0x54864e;};return a48_0x1591();}function a48_0x1376(_0x116fa5,_0x5585bf){_0x116fa5=_0x116fa5-0x1c8;const _0x159116=a48_0x1591();let _0x1376ce=_0x159116[_0x116fa5];return _0x1376ce;}(function(_0x34b7be,_0x21c385){const _0x4cb6fc=a48_0x1376,_0x59ee09=_0x34b7be();while(!![]){try{const _0x24ea3c=parseInt(_0x4cb6fc(0x1d5))/0x1*(-parseInt(_0x4cb6fc(0x1d0))/0x2)+-parseInt(_0x4cb6fc(0x1d6))/0x3*(parseInt(_0x4cb6fc(0x1cc))/0x4)+parseInt(_0x4cb6fc(0x1cb))/0x5+-parseInt(_0x4cb6fc(0x1d8))/0x6+-parseInt(_0x4cb6fc(0x1f4))/0x7*(-parseInt(_0x4cb6fc(0x1f8))/0x8)+-parseInt(_0x4cb6fc(0x1c8))/0x9+parseInt(_0x4cb6fc(0x1d7))/0xa;if(_0x24ea3c===_0x21c385)break;else _0x59ee09['push'](_0x59ee09['shift']());}catch(_0x2c3724){_0x59ee09['push'](_0x59ee09['shift']());}}}(a48_0x1591,0x3b9d3));import a48_0xfe8f10 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a48_0x18aed8 from'ora';import{isUrlReachable}from'./valid-url.js';function onCancel(_0x4bc953){const _0x2b090e=a48_0x1376;return _0x4bc953[_0x2b090e(0x1dc)](_0x5e0741=>{const _0x3292b2=_0x2b090e;if(_0x5e0741?.['name']===_0x3292b2(0x1f2))throw new Error(_0x3292b2(0x1eb));throw _0x5e0741;});}export function startSpinner(_0x56f953){const _0x43f21a=a48_0x1376;return a48_0x18aed8({'text':_0x56f953,'color':_0x43f21a(0x1cf)})[_0x43f21a(0x1e1)]();}export function stopSpinner(_0x35800f,_0x4fa1f6,_0x565919){const _0x1b03ef=a48_0x1376;_0x565919?_0x35800f[_0x1b03ef(0x1ee)](_0x4fa1f6):_0x35800f[_0x1b03ef(0x1dd)](_0x4fa1f6);}export async function askConfirm(_0x435a15){return onCancel(confirm({'message':_0x435a15,'theme':{'prefix':''}}));}export async function askJsUrl(_0x1b48af){const _0x3ff832=a48_0x1376;while(!![]){const _0x199551=await onCancel(input({'message':_0x3ff832(0x1de),'default':_0x1b48af,'theme':{'prefix':''}}));if(_0x199551['trim']()==='')throw new Error('CANCEL');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x3ff832(0x1e4)](_0x199551[_0x3ff832(0x1ca)]())){console[_0x3ff832(0x1ef)](a48_0xfe8f10[_0x3ff832(0x1e2)](_0x3ff832(0x1f5)));continue;}const _0x213466=startSpinner(_0x3ff832(0x1e9));try{const _0x53e262=await isUrlReachable(_0x199551[_0x3ff832(0x1ca)]());stopSpinner(_0x213466,_0x3ff832(0x1d4),_0x53e262);if(!_0x53e262){console[_0x3ff832(0x1ef)](a48_0xfe8f10[_0x3ff832(0x1e2)](_0x3ff832(0x1d1)));continue;}return _0x199551[_0x3ff832(0x1ca)]();}catch(_0x355656){stopSpinner(_0x213466,_0x3ff832(0x1db),![]);throw _0x355656;}}}export async function askCssUrl(_0x101ff2){const _0x6ea514=a48_0x1376;while(!![]){const _0x45cfd3=await onCancel(input({'message':_0x6ea514(0x1d2),'default':_0x101ff2,'theme':{'prefix':''}}));if(_0x45cfd3['trim']()==='')throw new Error(_0x6ea514(0x1eb));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x45cfd3[_0x6ea514(0x1ca)]())){console[_0x6ea514(0x1ef)](a48_0xfe8f10[_0x6ea514(0x1e2)](_0x6ea514(0x1f0)));continue;}const _0x4dc2da=startSpinner(_0x6ea514(0x1f1));try{const _0x4fb5b2=await isUrlReachable(_0x45cfd3[_0x6ea514(0x1ca)]());stopSpinner(_0x4dc2da,_0x6ea514(0x1d3),_0x4fb5b2);if(!_0x4fb5b2){console[_0x6ea514(0x1ef)](a48_0xfe8f10[_0x6ea514(0x1e2)](_0x6ea514(0x1e6)));continue;}return _0x45cfd3[_0x6ea514(0x1ca)]();}catch(_0x53b5ca){stopSpinner(_0x4dc2da,_0x6ea514(0x1cd),![]);throw _0x53b5ca;}}}export async function selectPages(_0x919f7c,_0x311155,_0x2a2062){const _0x19ee30=a48_0x1376,_0x395ee5=_0x919f7c[_0x19ee30(0x1da)](_0x4b8056=>({'name':_0x4b8056['label']+'\x20\x20'+(_0x311155['has'](_0x4b8056[_0x19ee30(0x1e8)])?a48_0xfe8f10['gray'](_0x19ee30(0x1f6)):a48_0xfe8f10[_0x19ee30(0x1ec)](_0x19ee30(0x1f7))),'value':_0x4b8056[_0x19ee30(0x1ce)],'checked':_0x2a2062?_0x2a2062[_0x19ee30(0x1ea)](_0x4b8056[_0x19ee30(0x1ce)]):!_0x311155[_0x19ee30(0x1e0)](_0x4b8056[_0x19ee30(0x1e8)])}));if(_0x395ee5[_0x19ee30(0x1c9)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x4bc8cd=await onCancel(checkbox({'message':_0x19ee30(0x1df),'choices':_0x395ee5,'loop':![],'theme':{'prefix':''}}));if(_0x4bc8cd['length']===0x0)throw new Error(_0x19ee30(0x1e7));return _0x919f7c[_0x19ee30(0x1e3)](_0x5375bb=>_0x4bc8cd[_0x19ee30(0x1ea)](_0x5375bb['label']));}export function isInteractive(){const _0x1e23ea=a48_0x1376;return process[_0x1e23ea(0x1f3)][_0x1e23ea(0x1e5)]===!![];}export function requireInteractive(){const _0xb23713=a48_0x1376;if(!isInteractive())throw new Error(_0xb23713(0x1d9)+_0xb23713(0x1ed));}
1
+ (function(_0x116beb,_0x1ba36a){const _0x423aad=a46_0x40d9,_0x24ff5c=_0x116beb();while(!![]){try{const _0x402f6a=parseInt(_0x423aad(0x18b))/0x1+-parseInt(_0x423aad(0x1a4))/0x2*(-parseInt(_0x423aad(0x1a1))/0x3)+parseInt(_0x423aad(0x1a5))/0x4+-parseInt(_0x423aad(0x184))/0x5+-parseInt(_0x423aad(0x195))/0x6+parseInt(_0x423aad(0x186))/0x7+-parseInt(_0x423aad(0x18d))/0x8;if(_0x402f6a===_0x1ba36a)break;else _0x24ff5c['push'](_0x24ff5c['shift']());}catch(_0x46cde4){_0x24ff5c['push'](_0x24ff5c['shift']());}}}(a46_0x2907,0x51c12));import a46_0x5cbd9f from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a46_0x240248 from'ora';function a46_0x40d9(_0x328b70,_0x2f4cdb){_0x328b70=_0x328b70-0x181;const _0x2907fe=a46_0x2907();let _0x40d9a9=_0x2907fe[_0x328b70];return _0x40d9a9;}import{isUrlReachable}from'./valid-url.js';function onCancel(_0x34eace){const _0x5b8977=a46_0x40d9;return _0x34eace[_0x5b8977(0x181)](_0x4f06d1=>{const _0x4aaa87=_0x5b8977;if(_0x4f06d1?.[_0x4aaa87(0x188)]===_0x4aaa87(0x196))throw new Error(_0x4aaa87(0x19c));throw _0x4f06d1;});}export function startSpinner(_0x23eba6){const _0xc97609=a46_0x40d9;return a46_0x240248({'text':_0x23eba6,'color':_0xc97609(0x193)})['start']();}export function stopSpinner(_0x118911,_0x4546ab,_0x42ddd8){const _0x42489e=a46_0x40d9;_0x42ddd8?_0x118911[_0x42489e(0x1a7)](_0x4546ab):_0x118911[_0x42489e(0x183)](_0x4546ab);}function a46_0x2907(){const _0x35c637=['name','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','length','406098PPHGZJ','green','6139376RtxvrA','[already\x20on\x20platform]','gray','has','error','red','cyan','label','468042cSlTgK','ExitPromptError','\x20\x20Checking\x20CSS\x20URL\x20reachability...','\x20\x20CSS\x20URL:','filter','trim','CSS\x20URL\x20checked','CANCEL','No\x20local\x20pages\x20found.','path','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','map','723nWcQmH','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20JS\x20URL:','2210DAjIkw','2259244CFZhac','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','succeed','\x20\x20Checking\x20JS\x20URL\x20reachability...','includes','CSS\x20URL\x20check\x20failed','JS\x20URL\x20check\x20failed','catch','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','fail','3321620jmcSWU','No\x20menus\x20selected.','4251835lesujA','[new]'];a46_0x2907=function(){return _0x35c637;};return a46_0x2907();}export async function askConfirm(_0x53aff4){return onCancel(confirm({'message':_0x53aff4,'theme':{'prefix':''}}));}export async function askJsUrl(_0x11f097){const _0x6b1c03=a46_0x40d9;while(!![]){const _0x292bb5=await onCancel(input({'message':_0x6b1c03(0x1a3),'default':_0x11f097,'theme':{'prefix':''}}));if(_0x292bb5[_0x6b1c03(0x19a)]()==='')throw new Error(_0x6b1c03(0x19c));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x292bb5[_0x6b1c03(0x19a)]())){console[_0x6b1c03(0x191)](a46_0x5cbd9f[_0x6b1c03(0x192)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0xdcd9a4=startSpinner(_0x6b1c03(0x1a8));try{const _0x9cce9c=await isUrlReachable(_0x292bb5[_0x6b1c03(0x19a)]());stopSpinner(_0xdcd9a4,'JS\x20URL\x20checked',_0x9cce9c);if(!_0x9cce9c){console[_0x6b1c03(0x191)](a46_0x5cbd9f[_0x6b1c03(0x192)](_0x6b1c03(0x1a6)));continue;}return _0x292bb5[_0x6b1c03(0x19a)]();}catch(_0x485048){stopSpinner(_0xdcd9a4,_0x6b1c03(0x1ab),![]);throw _0x485048;}}}export async function askCssUrl(_0xfb0655){const _0x3afe5e=a46_0x40d9;while(!![]){const _0x1539a9=await onCancel(input({'message':_0x3afe5e(0x198),'default':_0xfb0655,'theme':{'prefix':''}}));if(_0x1539a9[_0x3afe5e(0x19a)]()==='')throw new Error('CANCEL');if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x1539a9[_0x3afe5e(0x19a)]())){console[_0x3afe5e(0x191)](a46_0x5cbd9f[_0x3afe5e(0x192)](_0x3afe5e(0x182)));continue;}const _0x2dc794=startSpinner(_0x3afe5e(0x197));try{const _0x2cfaf7=await isUrlReachable(_0x1539a9[_0x3afe5e(0x19a)]());stopSpinner(_0x2dc794,_0x3afe5e(0x19b),_0x2cfaf7);if(!_0x2cfaf7){console[_0x3afe5e(0x191)](a46_0x5cbd9f['red'](_0x3afe5e(0x1a2)));continue;}return _0x1539a9[_0x3afe5e(0x19a)]();}catch(_0x32f0db){stopSpinner(_0x2dc794,_0x3afe5e(0x1aa),![]);throw _0x32f0db;}}}export async function selectPages(_0x25ddc1,_0x238097,_0x427058){const _0x365505=a46_0x40d9,_0x4ed64e=_0x25ddc1[_0x365505(0x1a0)](_0x5f01b1=>({'name':_0x5f01b1[_0x365505(0x194)]+'\x20\x20'+(_0x238097[_0x365505(0x190)](_0x5f01b1['path'])?a46_0x5cbd9f[_0x365505(0x18f)](_0x365505(0x18e)):a46_0x5cbd9f[_0x365505(0x18c)](_0x365505(0x187))),'value':_0x5f01b1[_0x365505(0x194)],'checked':_0x427058?_0x427058[_0x365505(0x1a9)](_0x5f01b1[_0x365505(0x194)]):!_0x238097[_0x365505(0x190)](_0x5f01b1[_0x365505(0x19e)])}));if(_0x4ed64e[_0x365505(0x18a)]===0x0)throw new Error(_0x365505(0x19d));const _0x367ccc=await onCancel(checkbox({'message':_0x365505(0x19f),'choices':_0x4ed64e,'loop':![],'theme':{'prefix':''}}));if(_0x367ccc['length']===0x0)throw new Error(_0x365505(0x185));return _0x25ddc1[_0x365505(0x199)](_0x21ea33=>_0x367ccc[_0x365505(0x1a9)](_0x21ea33['label']));}export function isInteractive(){return process['stdin']['isTTY']===!![];}export function requireInteractive(){const _0x5295de=a46_0x40d9;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x5295de(0x189));}
@@ -1 +1 @@
1
- const a49_0xef5bf1=a49_0x32a0;(function(_0xaea216,_0x182b93){const _0x2bcc1a=a49_0x32a0,_0x4a2cfb=_0xaea216();while(!![]){try{const _0x51ae3c=-parseInt(_0x2bcc1a(0x1a7))/0x1*(-parseInt(_0x2bcc1a(0x1a4))/0x2)+parseInt(_0x2bcc1a(0x19d))/0x3+-parseInt(_0x2bcc1a(0x1a2))/0x4+-parseInt(_0x2bcc1a(0x1aa))/0x5*(-parseInt(_0x2bcc1a(0x1a3))/0x6)+-parseInt(_0x2bcc1a(0x19b))/0x7+parseInt(_0x2bcc1a(0x1b1))/0x8+parseInt(_0x2bcc1a(0x1ac))/0x9;if(_0x51ae3c===_0x182b93)break;else _0x4a2cfb['push'](_0x4a2cfb['shift']());}catch(_0x261bb1){_0x4a2cfb['push'](_0x4a2cfb['shift']());}}}(a49_0x2f72,0x32eb0));function a49_0x2f72(){const _0x3ff676=['cwd','filter','10coXXOR','path','1579653FJlsKt','match','endsWith','trim','isDirectory','517600PAyTjw','2276757EpGuJF','concat','110844fjnLEn','replace','push','index.tsx','slice','30716wmVtGW','742572EcnCkR','634cZIctx','.tsx','src/pages','53qmSOOg'];a49_0x2f72=function(){return _0x3ff676;};return a49_0x2f72();}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve}from'path';function a49_0x32a0(_0x2f58e4,_0x4ac353){_0x2f58e4=_0x2f58e4-0x19b;const _0x2f72dd=a49_0x2f72();let _0x32a03f=_0x2f72dd[_0x2f58e4];return _0x32a03f;}const pagesDir=resolve(process[a49_0xef5bf1(0x1a8)](),a49_0xef5bf1(0x1a6));export function extractTitleFromComment(_0x359202){const _0x5353dd=a49_0xef5bf1;try{const _0x54f74d=readFileSync(_0x359202,'utf-8'),_0x200e22=_0x54f74d[_0x5353dd(0x1ad)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x200e22&&_0x200e22[0x1]){const _0xccbec7=_0x200e22[0x1],_0x239d7c=_0xccbec7[_0x5353dd(0x1ad)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x239d7c&&_0x239d7c[0x1])return _0x239d7c[0x1][_0x5353dd(0x1af)]();}let _0x568ca2=null;const _0x3cc9fe=_0x54f74d[_0x5353dd(0x1ad)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x3cc9fe&&_0x3cc9fe[0x1]&&(_0x568ca2=_0x3cc9fe[0x1]);if(!_0x568ca2){const _0x5aae78=_0x54f74d['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x5aae78&&_0x5aae78[0x1]&&(_0x568ca2=_0x5aae78[0x1]);}if(_0x568ca2){const _0x1b89e8=new RegExp('\x5cb'+_0x568ca2+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x2f19fe=_0x54f74d[_0x5353dd(0x1ad)](_0x1b89e8);if(_0x2f19fe&&_0x2f19fe[0x1])return _0x2f19fe[0x1];return _0x568ca2;}return null;}catch(_0xdcae8f){return null;}}export function getLocalPages(_0x59591a=pagesDir,_0x56aba0=pagesDir){const _0x2945cd=a49_0xef5bf1;let _0xce1c83=[];const _0x5b4656=readdirSync(_0x59591a);return _0x5b4656['forEach'](_0x4c0e64=>{const _0x504325=a49_0x32a0,_0x5e75f5=join(_0x59591a,_0x4c0e64),_0x52c502=statSync(_0x5e75f5);if(_0x52c502&&_0x52c502[_0x504325(0x1b0)]())_0xce1c83=_0xce1c83[_0x504325(0x19c)](getLocalPages(_0x5e75f5,_0x56aba0));else{if(_0x4c0e64[_0x504325(0x1ae)](_0x504325(0x1a5))){let _0x1644a4=relative(_0x56aba0,_0x5e75f5);_0x1644a4[_0x504325(0x1ae)](_0x504325(0x1a0))?_0x1644a4=_0x1644a4[_0x504325(0x19e)](/index\.tsx$/,''):_0x1644a4=_0x1644a4[_0x504325(0x19e)](/\.tsx$/,'');_0x1644a4[_0x504325(0x1ae)]('/')&&(_0x1644a4=_0x1644a4[_0x504325(0x1a1)](0x0,-0x1));const _0xc62b6c=extractTitleFromComment(_0x5e75f5),_0x1fdb4b=_0xc62b6c||_0x1644a4;_0xce1c83[_0x504325(0x19f)]({'path':_0x1644a4['replaceAll']('$',':'),'label':_0x1fdb4b});}}}),_0xce1c83[_0x2945cd(0x1a9)](_0x5f3278=>_0x5f3278[_0x2945cd(0x1ab)]!=='');}
1
+ const a47_0x5e5055=a47_0x3ddf;(function(_0x1944a5,_0x4f9be9){const _0x383f71=a47_0x3ddf,_0x260697=_0x1944a5();while(!![]){try{const _0x1984cd=-parseInt(_0x383f71(0x9f))/0x1+-parseInt(_0x383f71(0xa2))/0x2*(-parseInt(_0x383f71(0xaf))/0x3)+-parseInt(_0x383f71(0x97))/0x4*(parseInt(_0x383f71(0xae))/0x5)+parseInt(_0x383f71(0xa1))/0x6+parseInt(_0x383f71(0x9e))/0x7*(-parseInt(_0x383f71(0xa4))/0x8)+-parseInt(_0x383f71(0xa0))/0x9*(-parseInt(_0x383f71(0xa5))/0xa)+parseInt(_0x383f71(0xaa))/0xb*(parseInt(_0x383f71(0xa8))/0xc);if(_0x1984cd===_0x4f9be9)break;else _0x260697['push'](_0x260697['shift']());}catch(_0xb19430){_0x260697['push'](_0x260697['shift']());}}}(a47_0x9155,0x4e011));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a47_0x5e5055(0xad)](),a47_0x5e5055(0x98));export function extractTitleFromComment(_0xe00d9b){const _0x3cfd20=a47_0x5e5055;try{const _0x46c3b7=readFileSync(_0xe00d9b,_0x3cfd20(0x9c)),_0x237a9f=_0x46c3b7[_0x3cfd20(0xa7)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x237a9f&&_0x237a9f[0x1]){const _0x3904d0=_0x237a9f[0x1],_0x25f84d=_0x3904d0['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x25f84d&&_0x25f84d[0x1])return _0x25f84d[0x1][_0x3cfd20(0xac)]();}let _0x3e866c=null;const _0x4219e7=_0x46c3b7[_0x3cfd20(0xa7)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x4219e7&&_0x4219e7[0x1]&&(_0x3e866c=_0x4219e7[0x1]);if(!_0x3e866c){const _0xc57623=_0x46c3b7['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0xc57623&&_0xc57623[0x1]&&(_0x3e866c=_0xc57623[0x1]);}if(_0x3e866c){const _0x2c40af=new RegExp('\x5cb'+_0x3e866c+_0x3cfd20(0xb1)),_0xbc60f4=_0x46c3b7[_0x3cfd20(0xa7)](_0x2c40af);if(_0xbc60f4&&_0xbc60f4[0x1])return _0xbc60f4[0x1];return _0x3e866c;}return null;}catch(_0x374af8){return null;}}export function getLocalPages(_0x2ed188=pagesDir,_0x179ede=pagesDir){let _0x13cfe8=[];const _0x4cf0f9=readdirSync(_0x2ed188);return _0x4cf0f9['forEach'](_0x4720a6=>{const _0x293da9=a47_0x3ddf,_0x1e1d60=join(_0x2ed188,_0x4720a6),_0x1202dc=statSync(_0x1e1d60);if(_0x1202dc&&_0x1202dc['isDirectory']())_0x13cfe8=_0x13cfe8[_0x293da9(0x9a)](getLocalPages(_0x1e1d60,_0x179ede));else{if(_0x4720a6[_0x293da9(0x9d)](_0x293da9(0xb2))){let _0x45d0a1=relative(_0x179ede,_0x1e1d60);_0x45d0a1[_0x293da9(0x9d)](_0x293da9(0xa3))?_0x45d0a1=_0x45d0a1['replace'](/index\.tsx$/,''):_0x45d0a1=_0x45d0a1[_0x293da9(0xa9)](/\.tsx$/,'');_0x45d0a1[_0x293da9(0x9d)](sep)&&(_0x45d0a1=_0x45d0a1[_0x293da9(0x9b)](0x0,-0x1));const _0x1076ae=_0x45d0a1[_0x293da9(0x99)](sep)[_0x293da9(0xa6)]('/'),_0x52c15b=extractTitleFromComment(_0x1e1d60),_0x573f8b=_0x52c15b||_0x1076ae;_0x13cfe8[_0x293da9(0xab)]({'path':_0x1076ae[_0x293da9(0xb0)]('$',':'),'label':_0x573f8b});}}}),_0x13cfe8['filter'](_0x35f78c=>_0x35f78c['path']!=='');}function a47_0x3ddf(_0x2cf4aa,_0x27b055){_0x2cf4aa=_0x2cf4aa-0x97;const _0x915517=a47_0x9155();let _0x3ddf1a=_0x915517[_0x2cf4aa];return _0x3ddf1a;}function a47_0x9155(){const _0x4815f9=['119pLAFKt','513973wXsRzi','1107756YHsUcF','3447312yMmLVq','32MbbrNG','index.tsx','22936mIoAGm','30fFWOzm','join','match','156zajlwZ','replace','8404YnUnSf','push','trim','cwd','525bfQGxi','69573TzoRpk','replaceAll','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','.tsx','16860GkpKhz','src/pages','split','concat','slice','utf-8','endsWith'];a47_0x9155=function(){return _0x4815f9;};return a47_0x9155();}
@@ -1 +1 @@
1
- (function(_0x32b702,_0x2a0742){const _0x39d67b=a50_0x4cb1,_0x283abd=_0x32b702();while(!![]){try{const _0x5713d5=parseInt(_0x39d67b(0x17b))/0x1*(-parseInt(_0x39d67b(0x169))/0x2)+-parseInt(_0x39d67b(0x178))/0x3*(parseInt(_0x39d67b(0x165))/0x4)+parseInt(_0x39d67b(0x16c))/0x5+parseInt(_0x39d67b(0x174))/0x6*(parseInt(_0x39d67b(0x17f))/0x7)+parseInt(_0x39d67b(0x170))/0x8*(parseInt(_0x39d67b(0x176))/0x9)+parseInt(_0x39d67b(0x172))/0xa*(parseInt(_0x39d67b(0x17a))/0xb)+-parseInt(_0x39d67b(0x166))/0xc*(parseInt(_0x39d67b(0x16b))/0xd);if(_0x5713d5===_0x2a0742)break;else _0x283abd['push'](_0x283abd['shift']());}catch(_0x54a346){_0x283abd['push'](_0x283abd['shift']());}}}(a50_0x497d,0x91175));import{getLocalPages}from'./local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'./service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'./valid-url.js';export function validateJsUrl(_0x36aeec){const _0x183e27=a50_0x4cb1,_0xead30b=[];return!isValidJsHttpsUrl(_0x36aeec)&&_0xead30b['push'](_0x183e27(0x171)),{'ok':_0xead30b[_0x183e27(0x17d)]===0x0,'errors':_0xead30b};}export function validateCssUrl(_0x735605){const _0x2d105e=a50_0x4cb1,_0x54924a=[];return!isValidCssHttpsUrl(_0x735605)&&_0x54924a[_0x2d105e(0x180)](_0x2d105e(0x16d)),{'ok':_0x54924a['length']===0x0,'errors':_0x54924a};}export async function validateJsUrlReachable(_0x52c2d8){const _0x183106=a50_0x4cb1,_0x39f383=validateJsUrl(_0x52c2d8);if(!_0x39f383['ok'])return _0x39f383;const _0x4509ac=await isUrlReachable(_0x52c2d8);if(!_0x4509ac)_0x39f383['errors']['push']('JS\x20URL\x20is\x20unreachable');return{'ok':_0x39f383['errors'][_0x183106(0x17d)]===0x0,'errors':_0x39f383['errors']};}export async function validateCssUrlReachable(_0x3c1cd5){const _0x3e7864=a50_0x4cb1,_0x3fef80=validateCssUrl(_0x3c1cd5);if(!_0x3fef80['ok'])return _0x3fef80;const _0x53e93b=await isUrlReachable(_0x3c1cd5);if(!_0x53e93b)_0x3fef80[_0x3e7864(0x181)][_0x3e7864(0x180)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x3fef80[_0x3e7864(0x181)][_0x3e7864(0x17d)]===0x0,'errors':_0x3fef80[_0x3e7864(0x181)]};}export function buildCompareRows(_0x3316eb,_0x11c275){const _0xbd79ac=a50_0x4cb1;return _0x3316eb[_0xbd79ac(0x175)](_0xec715f=>({'label':_0xec715f[_0xbd79ac(0x17c)],'path':_0xec715f[_0xbd79ac(0x177)],'local':!![],'online':_0x11c275[_0xbd79ac(0x16f)](_0xec715f[_0xbd79ac(0x177)])}));}function a50_0x497d(){const _0x19d6c5=['resources','1934IdDVgE','No\x20local\x20pages\x20matched\x20labels:\x20','1299649miTXCx','4944840btVFTv','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','filter','has','163544voLOdy','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','2224560gCmpFD','allSettled','162FdIYek','map','189rGhASp','path','7071ASSRwj','find','44TtPwgj','1019oZUgzh','label','length','status','279475DfXGRV','push','errors','trim','860RUelxP','156SxSiId','rejected'];a50_0x497d=function(){return _0x19d6c5;};return a50_0x497d();}export function filterNewPages(_0x510bed,_0x605b63,_0x56b1a1){const _0xd10431=a50_0x4cb1;if(_0x56b1a1&&_0x56b1a1['length']>0x0){const _0x40eac5=new Set(_0x56b1a1[_0xd10431(0x175)](_0x160108=>_0x160108[_0xd10431(0x182)]())),_0x5eb965=_0x510bed[_0xd10431(0x16e)](_0x436765=>_0x40eac5['has'](_0x436765[_0xd10431(0x17c)]));if(_0x5eb965[_0xd10431(0x17d)]===0x0)throw new Error(_0xd10431(0x16a)+[..._0x40eac5]['join'](',\x20'));return _0x5eb965;}return _0x510bed[_0xd10431(0x16e)](_0xe3b680=>!_0x605b63[_0xd10431(0x16f)](_0xe3b680[_0xd10431(0x177)]));}export function filterPagesByLabels(_0x504975,_0x24add1){const _0x5ffeff=a50_0x4cb1,_0x57c3e5=[],_0x16069f=[];for(const _0x3bf9ce of _0x24add1){const _0x1f8375=_0x3bf9ce['trim'](),_0x50c15b=_0x504975[_0x5ffeff(0x179)](_0x1058a2=>_0x1058a2[_0x5ffeff(0x17c)]===_0x1f8375);if(_0x50c15b)_0x57c3e5['push'](_0x50c15b);else _0x16069f[_0x5ffeff(0x180)](_0x3bf9ce);}return{'matched':_0x57c3e5,'unmatched':_0x16069f};}function a50_0x4cb1(_0x2ce52a,_0x5c0ecc){_0x2ce52a=_0x2ce52a-0x165;const _0x497d1e=a50_0x497d();let _0x4cb1fd=_0x497d1e[_0x2ce52a];return _0x4cb1fd;}export async function doCreateMenus(_0x57700f,_0x438973,_0x498ec0,_0x59435d){const _0x3293de=a50_0x4cb1;return await createMenus(_0x57700f,_0x438973,_0x498ec0,_0x59435d),{'created':_0x498ec0[_0x3293de(0x17d)],'failed':0x0,'labels':_0x498ec0[_0x3293de(0x175)](_0x5b4663=>_0x5b4663[_0x3293de(0x17c)])};}export function filterMenusWithResources(_0x53b84b){const _0x3679c1=a50_0x4cb1;return _0x53b84b[_0x3679c1(0x16e)](_0x2a8b82=>_0x2a8b82['resources'][_0x3679c1(0x17d)]>0x0);}export async function doUpdateCdnUrls(_0x114d4b,_0x4afbce,_0x1446b3,_0x3f172c){const _0x5280ae=a50_0x4cb1,_0x1c68cd=_0x1446b3[_0x5280ae(0x16e)](_0x53b211=>_0x53b211[_0x5280ae(0x168)]['length']>0x0),_0x49008d=await Promise[_0x5280ae(0x173)](_0x1c68cd[_0x5280ae(0x175)](_0x25ca84=>updateMenuCdnUrl(_0x114d4b,_0x4afbce,{'id':_0x25ca84['id'],'label':_0x25ca84[_0x5280ae(0x17c)],'path':_0x25ca84[_0x5280ae(0x177)],'resources':_0x3f172c}))),_0x46dc28=_0x49008d['filter'](_0x55c847=>_0x55c847[_0x5280ae(0x17e)]===_0x5280ae(0x167))['length'];return{'updated':_0x1c68cd[_0x5280ae(0x17d)]-_0x46dc28,'failed':_0x46dc28};}export async function fetchMenuData(_0x5a533f,_0x1c0278){const _0x449286=a50_0x4cb1,_0x44d4ab=getLocalPages(),_0x42de52=await getOnlineMenuList(_0x5a533f,_0x1c0278),_0x222c23=new Set(_0x42de52[_0x449286(0x175)](_0x1c32f3=>_0x1c32f3[_0x449286(0x177)]));return{'localPages':_0x44d4ab,'onlineMenuList':_0x42de52,'onlinePaths':_0x222c23};}export async function fetchOnlineMenuList(_0x581c74,_0x43eace){return getOnlineMenuList(_0x581c74,_0x43eace);}
1
+ (function(_0x347fd2,_0x5c7c5c){const _0x318f8e=a48_0x2ffa,_0x3edb80=_0x347fd2();while(!![]){try{const _0x5d19cb=-parseInt(_0x318f8e(0x14b))/0x1+parseInt(_0x318f8e(0x15a))/0x2+-parseInt(_0x318f8e(0x157))/0x3+-parseInt(_0x318f8e(0x15d))/0x4+parseInt(_0x318f8e(0x15c))/0x5*(-parseInt(_0x318f8e(0x155))/0x6)+parseInt(_0x318f8e(0x153))/0x7+parseInt(_0x318f8e(0x151))/0x8;if(_0x5d19cb===_0x5c7c5c)break;else _0x3edb80['push'](_0x3edb80['shift']());}catch(_0x53c874){_0x3edb80['push'](_0x3edb80['shift']());}}}(a48_0x1def,0x67142));import{getLocalPages}from'./local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'./service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'./valid-url.js';export function validateJsUrl(_0x59b877){const _0x4d9325=a48_0x2ffa,_0x2731a0=[];return!isValidJsHttpsUrl(_0x59b877)&&_0x2731a0[_0x4d9325(0x14d)]('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x2731a0[_0x4d9325(0x14f)]===0x0,'errors':_0x2731a0};}export function validateCssUrl(_0x55196b){const _0x4172af=a48_0x2ffa,_0x56ae15=[];return!isValidCssHttpsUrl(_0x55196b)&&_0x56ae15[_0x4172af(0x14d)](_0x4172af(0x156)),{'ok':_0x56ae15[_0x4172af(0x14f)]===0x0,'errors':_0x56ae15};}export async function validateJsUrlReachable(_0x3066da){const _0x42be6c=a48_0x2ffa,_0x13e1f6=validateJsUrl(_0x3066da);if(!_0x13e1f6['ok'])return _0x13e1f6;const _0x40f28d=await isUrlReachable(_0x3066da);if(!_0x40f28d)_0x13e1f6[_0x42be6c(0x152)][_0x42be6c(0x14d)](_0x42be6c(0x14a));return{'ok':_0x13e1f6[_0x42be6c(0x152)][_0x42be6c(0x14f)]===0x0,'errors':_0x13e1f6[_0x42be6c(0x152)]};}function a48_0x2ffa(_0x3ae648,_0x1f4706){_0x3ae648=_0x3ae648-0x149;const _0x1def73=a48_0x1def();let _0x2ffaf4=_0x1def73[_0x3ae648];return _0x2ffaf4;}export async function validateCssUrlReachable(_0x1bcecc){const _0x5bc0e8=a48_0x2ffa,_0x922e5f=validateCssUrl(_0x1bcecc);if(!_0x922e5f['ok'])return _0x922e5f;const _0x48bb51=await isUrlReachable(_0x1bcecc);if(!_0x48bb51)_0x922e5f[_0x5bc0e8(0x152)][_0x5bc0e8(0x14d)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x922e5f[_0x5bc0e8(0x152)][_0x5bc0e8(0x14f)]===0x0,'errors':_0x922e5f[_0x5bc0e8(0x152)]};}export function buildCompareRows(_0x39ff0d,_0x583264){const _0x200e8f=a48_0x2ffa;return _0x39ff0d[_0x200e8f(0x160)](_0x2adb8c=>({'label':_0x2adb8c['label'],'path':_0x2adb8c[_0x200e8f(0x14c)],'local':!![],'online':_0x583264[_0x200e8f(0x15f)](_0x2adb8c['path'])}));}export function filterNewPages(_0x502e84,_0x3b3657,_0x524a8e){const _0x267d73=a48_0x2ffa;if(_0x524a8e&&_0x524a8e[_0x267d73(0x14f)]>0x0){const _0x459d86=new Set(_0x524a8e[_0x267d73(0x160)](_0x48ceb4=>_0x48ceb4[_0x267d73(0x14e)]())),_0x54c514=_0x502e84['filter'](_0x27a248=>_0x459d86[_0x267d73(0x15f)](_0x27a248['label']));if(_0x54c514[_0x267d73(0x14f)]===0x0)throw new Error(_0x267d73(0x15e)+[..._0x459d86][_0x267d73(0x149)](',\x20'));return _0x54c514;}return _0x502e84[_0x267d73(0x150)](_0x2c5fe1=>!_0x3b3657[_0x267d73(0x15f)](_0x2c5fe1[_0x267d73(0x14c)]));}export function filterPagesByLabels(_0xdaba6,_0x3ac45d){const _0x575bc6=a48_0x2ffa,_0x57e824=[],_0x784e25=[];for(const _0x22b18a of _0x3ac45d){const _0x265089=_0x22b18a[_0x575bc6(0x14e)](),_0x105807=_0xdaba6[_0x575bc6(0x158)](_0x5ca231=>_0x5ca231['label']===_0x265089);if(_0x105807)_0x57e824[_0x575bc6(0x14d)](_0x105807);else _0x784e25[_0x575bc6(0x14d)](_0x22b18a);}return{'matched':_0x57e824,'unmatched':_0x784e25};}export async function doCreateMenus(_0x3b79e2,_0x123417,_0x3419d2,_0x8b269){const _0x380a52=a48_0x2ffa;return await createMenus(_0x3b79e2,_0x123417,_0x3419d2,_0x8b269),{'created':_0x3419d2[_0x380a52(0x14f)],'failed':0x0,'labels':_0x3419d2[_0x380a52(0x160)](_0x37d386=>_0x37d386[_0x380a52(0x154)])};}export function filterMenusWithResources(_0x19931a){const _0x1aa919=a48_0x2ffa;return _0x19931a[_0x1aa919(0x150)](_0x49f6b0=>_0x49f6b0[_0x1aa919(0x159)][_0x1aa919(0x14f)]>0x0);}export async function doUpdateCdnUrls(_0x320079,_0x491f12,_0x38db47,_0x3eadeb){const _0x310d37=a48_0x2ffa,_0x23a90b=_0x38db47[_0x310d37(0x150)](_0xd08baa=>_0xd08baa[_0x310d37(0x159)]['length']>0x0),_0x2a511e=await Promise['allSettled'](_0x23a90b['map'](_0x15218e=>updateMenuCdnUrl(_0x320079,_0x491f12,{'id':_0x15218e['id'],'label':_0x15218e['label'],'path':_0x15218e[_0x310d37(0x14c)],'resources':_0x3eadeb}))),_0x279285=_0x2a511e[_0x310d37(0x150)](_0x161ec6=>_0x161ec6[_0x310d37(0x15b)]==='rejected')[_0x310d37(0x14f)];return{'updated':_0x23a90b[_0x310d37(0x14f)]-_0x279285,'failed':_0x279285};}export async function fetchMenuData(_0x8fd0da,_0x578b7e){const _0x46f4ec=a48_0x2ffa,_0x593a38=getLocalPages(),_0x1facc8=await getOnlineMenuList(_0x8fd0da,_0x578b7e),_0x18a341=new Set(_0x1facc8[_0x46f4ec(0x160)](_0x3586f8=>_0x3586f8[_0x46f4ec(0x14c)]));return{'localPages':_0x593a38,'onlineMenuList':_0x1facc8,'onlinePaths':_0x18a341};}function a48_0x1def(){const _0x26b426=['join','JS\x20URL\x20is\x20unreachable','717849xgBgYo','path','push','trim','length','filter','17048056bubflI','errors','643258fLPcpX','label','753402VgTOln','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','2119059HBNsZb','find','resources','1364584SWuvDJ','status','15pqhYNW','2728320oOcsGY','No\x20local\x20pages\x20matched\x20labels:\x20','has','map'];a48_0x1def=function(){return _0x26b426;};return a48_0x1def();}export async function fetchOnlineMenuList(_0x511df2,_0x3de28e){return getOnlineMenuList(_0x511df2,_0x3de28e);}
@@ -1 +1 @@
1
- (function(_0xbfd956,_0x10a42e){const _0x4eec72=a51_0x632c,_0x459203=_0xbfd956();while(!![]){try{const _0x1acd4d=parseInt(_0x4eec72(0x20a))/0x1*(-parseInt(_0x4eec72(0x209))/0x2)+-parseInt(_0x4eec72(0x210))/0x3*(-parseInt(_0x4eec72(0x1f6))/0x4)+-parseInt(_0x4eec72(0x20b))/0x5*(-parseInt(_0x4eec72(0x206))/0x6)+parseInt(_0x4eec72(0x1fc))/0x7*(-parseInt(_0x4eec72(0x20f))/0x8)+-parseInt(_0x4eec72(0x200))/0x9*(-parseInt(_0x4eec72(0x21f))/0xa)+-parseInt(_0x4eec72(0x20d))/0xb+parseInt(_0x4eec72(0x204))/0xc*(parseInt(_0x4eec72(0x1eb))/0xd);if(_0x1acd4d===_0x10a42e)break;else _0x459203['push'](_0x459203['shift']());}catch(_0x13e16e){_0x459203['push'](_0x459203['shift']());}}}(a51_0x46bc,0xc0cda));import{getApiDomain}from'../../../constant/domain.js';import{getEnv}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';export async function getOnlineMenuList(_0x519d0a,_0x3b0bde){const _0x45bc48=a51_0x632c,_0x57c85b=getEnv();logger[_0x45bc48(0x215)](_0x45bc48(0x1fe),_0x57c85b===_0x45bc48(0x224)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x519d0a+')':_0x45bc48(0x208)+_0x519d0a+')');const _0x4822ee=await fetch(getApiDomain()+_0x45bc48(0x20c)+_0x519d0a,{'method':'GET','headers':{'Content-Type':'application/json','Cookie':_0x3b0bde}});if(!_0x4822ee['ok']){if(_0x4822ee['status']===0x191){const _0x537d78=_0x45bc48(0x217);logger[_0x45bc48(0x221)]('get-online-menu-list',_0x537d78,{'status':_0x4822ee[_0x45bc48(0x1f0)]});throw new Error(_0x537d78);}const _0x42b13b=_0x45bc48(0x1f7)+_0x4822ee[_0x45bc48(0x1f0)];logger['error'](_0x45bc48(0x1fe),_0x42b13b);throw new Error(_0x42b13b);}const _0x431508=await _0x4822ee['json']();if(!_0x431508[_0x45bc48(0x202)]){const _0x3e0e31=_0x45bc48(0x1ff)+(_0x431508['errorMsg']||'Error');logger[_0x45bc48(0x221)](_0x45bc48(0x1fe),_0x3e0e31,{'errorCode':_0x431508[_0x45bc48(0x1ec)],'errorMsg':_0x431508[_0x45bc48(0x1ef)]});throw new Error(_0x3e0e31);}if(!_0x431508[_0x45bc48(0x1fb)])return logger[_0x45bc48(0x215)]('get-online-menu-list','Server\x20returned\x20empty\x20menu\x20list'),[];return logger[_0x45bc48(0x215)](_0x45bc48(0x1fe),_0x45bc48(0x21c)+_0x431508[_0x45bc48(0x1fb)][_0x45bc48(0x203)]+_0x45bc48(0x21b)),_0x431508['data'][_0x45bc48(0x1f3)](flattenMenuItem)[_0x45bc48(0x205)]();}function flattenMenuItem(_0x3baee0){const _0x3758ac=a51_0x632c;let _0x302ebf=[];try{if(_0x3baee0['extend']?.['resources']){const _0x5a5a55=JSON[_0x3758ac(0x225)](_0x3baee0['extend'][_0x3758ac(0x219)]);Array['isArray'](_0x5a5a55)&&(_0x302ebf=_0x5a5a55);}}catch(_0x44b014){}const _0x5edc85=[{'id':_0x3baee0['id'],'path':_0x3baee0[_0x3758ac(0x223)],'label':_0x3baee0[_0x3758ac(0x1fd)],'resources':_0x302ebf}];if(_0x3baee0[_0x3758ac(0x20e)]&&_0x3baee0[_0x3758ac(0x20e)][_0x3758ac(0x203)]>0x0)for(const _0x2bf112 of _0x3baee0[_0x3758ac(0x20e)]){_0x5edc85[_0x3758ac(0x1ee)](...flattenMenuItem(_0x2bf112));}return _0x5edc85;}export async function createMenu(_0x31f729,_0x216bf9,_0x4ce557){const _0x181f39=a51_0x632c;logger[_0x181f39(0x215)](_0x181f39(0x1f2),_0x181f39(0x213)+_0x4ce557['label']+'\x20('+_0x4ce557[_0x181f39(0x223)]+')');const _0x479d43={'appCode':_0x31f729,'type':_0x181f39(0x21d),'sort':0x0,'extend':{'loadScriptMode':_0x181f39(0x1ed),'resources':_0x4ce557['resources']?JSON[_0x181f39(0x21e)](_0x4ce557[_0x181f39(0x219)]):undefined},..._0x4ce557},_0x515122=await fetch(getApiDomain()+_0x181f39(0x226),{'method':_0x181f39(0x1f9),'body':JSON[_0x181f39(0x21e)](_0x479d43),'headers':{'Content-Type':_0x181f39(0x214),'Cookie':_0x216bf9}});if(!_0x515122['ok']){if(_0x515122[_0x181f39(0x1f0)]===0x191){const _0xce165c=_0x181f39(0x217);logger['error'](_0x181f39(0x1f2),_0xce165c,{'status':_0x515122['status'],'menu':_0x4ce557[_0x181f39(0x1fd)]});throw new Error(_0xce165c);}const _0x30e410=_0x181f39(0x1f8)+_0x515122[_0x181f39(0x1f0)];logger[_0x181f39(0x221)](_0x181f39(0x1f2),_0x30e410,{'menu':_0x4ce557[_0x181f39(0x1fd)]});throw new Error(_0x30e410);}const _0x1076de=await _0x515122[_0x181f39(0x1f1)]();if(!_0x1076de['success']){const _0x45e4de=_0x181f39(0x207)+(_0x1076de[_0x181f39(0x1ef)]||_0x181f39(0x218));logger[_0x181f39(0x221)]('create-menu',_0x45e4de,{'errorCode':_0x1076de['errorCode'],'errorMsg':_0x1076de[_0x181f39(0x1ef)],'menu':_0x4ce557[_0x181f39(0x1fd)]});throw new Error(_0x45e4de);}logger['info'](_0x181f39(0x1f2),_0x181f39(0x1fa)+_0x4ce557[_0x181f39(0x1fd)],_0x1076de[_0x181f39(0x1fb)]);}async function createSingleMenu(_0x86ac32,_0x5be213,_0x287c0c,_0x4aeea8){const _0x2ae819=a51_0x632c,_0x2b8bf7={'appCode':_0x86ac32,'type':_0x2ae819(0x21d),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x4aeea8?JSON[_0x2ae819(0x21e)](_0x4aeea8):undefined},'label':_0x287c0c[_0x2ae819(0x1fd)],'path':_0x287c0c[_0x2ae819(0x223)]},_0x10e5ef=await fetch(getApiDomain()+_0x2ae819(0x226),{'method':_0x2ae819(0x1f9),'body':JSON[_0x2ae819(0x21e)](_0x2b8bf7),'headers':{'Content-Type':_0x2ae819(0x214),'Cookie':_0x5be213}});if(!_0x10e5ef['ok']){if(_0x10e5ef[_0x2ae819(0x1f0)]===0x191){const _0x5b05d6='Authentication\x20failed,\x20session\x20expired.\x20Please\x20use\x20rabetbase\x20auth\x20to\x20login\x20again';logger[_0x2ae819(0x221)]('create-menu',_0x5b05d6,{'status':_0x10e5ef[_0x2ae819(0x1f0)],'menu':_0x287c0c[_0x2ae819(0x1fd)]});throw new Error(_0x5b05d6);}const _0x1e4d9f=_0x2ae819(0x1f8)+_0x10e5ef['status'];logger[_0x2ae819(0x221)](_0x2ae819(0x1f2),_0x1e4d9f,{'menu':_0x287c0c[_0x2ae819(0x1fd)]});throw new Error(_0x1e4d9f);}const _0x3364ac=await _0x10e5ef['json']();if(!_0x3364ac[_0x2ae819(0x202)]){if(_0x3364ac[_0x2ae819(0x1ec)]==='0011'||_0x3364ac[_0x2ae819(0x1ef)]?.[_0x2ae819(0x1f5)]('登录')){const _0x2c43b4=_0x2ae819(0x21a);logger[_0x2ae819(0x221)](_0x2ae819(0x1f2),_0x2c43b4,{'errorCode':_0x3364ac[_0x2ae819(0x1ec)],'errorMsg':_0x3364ac[_0x2ae819(0x1ef)],'menu':_0x287c0c[_0x2ae819(0x1fd)]});throw new Error(_0x2c43b4);}const _0x183086=_0x2ae819(0x207)+(_0x3364ac[_0x2ae819(0x1ef)]||'Error');logger[_0x2ae819(0x221)](_0x2ae819(0x1f2),_0x183086,{'errorCode':_0x3364ac[_0x2ae819(0x1ec)],'errorMsg':_0x3364ac['errorMsg'],'menu':_0x287c0c[_0x2ae819(0x1fd)]});throw new Error(_0x183086);}logger[_0x2ae819(0x215)]('create-menu',_0x2ae819(0x1fa)+_0x287c0c[_0x2ae819(0x1fd)]);}function a51_0x46bc(){const _0x4fd2da=['Authentication\x20failed,\x20session\x20expired.\x20Please\x20use\x20rabetbase\x20auth\x20to\x20login\x20again','Error','resources','Auth\x20validation\x20failed.\x20Please\x20use\x20rabetbase\x20auth\x20to\x20login\x20again','\x20online\x20menus\x20successfully','Fetched\x20','procode','stringify','9168190gJnpMA','update-menu-cdn-url','error','Batch\x20menu\x20creation\x20completed,\x20total\x20','path','online','parse','/smartapi/menu/create','117ZyGlYh','errorCode','import','push','errorMsg','status','json','create-menu','map','Failed\x20to\x20update\x20menu\x20assets:\x20','includes','12EjuDEI','Failed\x20to\x20fetch\x20menu\x20list,\x20HTTP\x20status:\x20','Failed\x20to\x20create\x20menu,\x20HTTP\x20status:\x20','POST','Menu\x20created\x20successfully:\x20','data','99414dgiHOk','label','get-online-menu-list','Failed\x20to\x20fetch\x20menu\x20list:\x20','9dCSRhl','Menu\x20assets\x20synced:\x20','success','length','532524sLJArh','flat','1050114uLjOYa','Failed\x20to\x20create\x20menu:\x20','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','172TGfvbE','13375cDCZoS','5FuNobH','/smartapi/menu/find?appCode=','7095451IGnWBm','children','80mvtaVa','1235802greryJ','all','/smartapi/menu/update','Creating\x20menu:\x20','application/json','info','create-menus'];a51_0x46bc=function(){return _0x4fd2da;};return a51_0x46bc();}function a51_0x632c(_0x383e7a,_0x92cd22){_0x383e7a=_0x383e7a-0x1eb;const _0x46bcc3=a51_0x46bc();let _0x632ceb=_0x46bcc3[_0x383e7a];return _0x632ceb;}export async function createMenus(_0x1a80ae,_0x2f4da1,_0x359ac8,_0x3941b7){const _0x5536b4=a51_0x632c;logger[_0x5536b4(0x215)](_0x5536b4(0x216),'Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x359ac8[_0x5536b4(0x203)]),await Promise[_0x5536b4(0x211)](_0x359ac8[_0x5536b4(0x1f3)](async _0x45c6b1=>{await createSingleMenu(_0x1a80ae,_0x2f4da1,_0x45c6b1,_0x3941b7);})),logger[_0x5536b4(0x215)]('create-menus',_0x5536b4(0x222)+_0x359ac8[_0x5536b4(0x203)]);}export async function updateMenuCdnUrl(_0x1f3630,_0x1ddd77,_0x40bb33){const _0x200596=a51_0x632c;logger[_0x200596(0x215)](_0x200596(0x220),'Updating\x20menu\x20asset\x20links:\x20'+_0x40bb33[_0x200596(0x1fd)]+'\x20('+_0x40bb33[_0x200596(0x223)]+')');const _0xc07e86={'id':_0x40bb33['id'],'appCode':_0x1f3630,'extend':{'loadScriptMode':_0x200596(0x1ed),'resources':_0x40bb33[_0x200596(0x219)]?JSON[_0x200596(0x21e)](_0x40bb33[_0x200596(0x219)]):undefined}},_0x23db16=await fetch(getApiDomain()+_0x200596(0x212),{'method':_0x200596(0x1f9),'body':JSON[_0x200596(0x21e)](_0xc07e86),'headers':{'Content-Type':_0x200596(0x214),'Cookie':_0x1ddd77}});if(!_0x23db16['ok']){if(_0x23db16[_0x200596(0x1f0)]===0x191){const _0x75342c=_0x200596(0x217);logger['error']('update-menu-cdn-url',_0x75342c,{'status':_0x23db16[_0x200596(0x1f0)],'menu':_0x40bb33[_0x200596(0x1fd)]});throw new Error(_0x75342c);}const _0xbe26ff=_0x200596(0x1f4)+_0x23db16[_0x200596(0x1f0)];logger[_0x200596(0x221)](_0x200596(0x220),_0xbe26ff,{'menu':_0x40bb33[_0x200596(0x1fd)]});throw new Error(_0xbe26ff);}const _0x385099=await _0x23db16[_0x200596(0x1f1)]();if(!_0x385099[_0x200596(0x202)]){const _0x1b463c=_0x200596(0x1f4)+(_0x385099[_0x200596(0x1ef)]||_0x200596(0x218));logger['error'](_0x200596(0x220),_0x1b463c,{'errorCode':_0x385099[_0x200596(0x1ec)],'errorMsg':_0x385099[_0x200596(0x1ef)],'menu':_0x40bb33[_0x200596(0x1fd)]});throw new Error(_0x1b463c);}logger[_0x200596(0x215)](_0x200596(0x220),_0x200596(0x201)+_0x40bb33['label'],_0x385099[_0x200596(0x1fb)]);}
1
+ (function(_0x3e1446,_0x9a995c){const _0x4c0f8c=a49_0xc8e6,_0x37f4d6=_0x3e1446();while(!![]){try{const _0x987765=parseInt(_0x4c0f8c(0x182))/0x1+parseInt(_0x4c0f8c(0x186))/0x2+parseInt(_0x4c0f8c(0x17f))/0x3*(-parseInt(_0x4c0f8c(0x17e))/0x4)+parseInt(_0x4c0f8c(0x17d))/0x5+parseInt(_0x4c0f8c(0x183))/0x6*(parseInt(_0x4c0f8c(0x19d))/0x7)+-parseInt(_0x4c0f8c(0x19b))/0x8*(-parseInt(_0x4c0f8c(0x185))/0x9)+-parseInt(_0x4c0f8c(0x191))/0xa*(parseInt(_0x4c0f8c(0x1a6))/0xb);if(_0x987765===_0x9a995c)break;else _0x37f4d6['push'](_0x37f4d6['shift']());}catch(_0x264fac){_0x37f4d6['push'](_0x37f4d6['shift']());}}}(a49_0x2aba,0x3897e));import{getApiDomain}from'../../../constant/domain.js';import{getEnv}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';export async function getOnlineMenuList(_0x5881f4,_0x21234d){const _0x28edcc=a49_0xc8e6,_0xb5cae9=getEnv();logger[_0x28edcc(0x192)]('get-online-menu-list',_0xb5cae9==='online'?_0x28edcc(0x19e)+_0x5881f4+')':'Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20'+_0x5881f4+')');const _0x235404=await fetch(getApiDomain()+_0x28edcc(0x1a5)+_0x5881f4,{'method':_0x28edcc(0x196),'headers':{'Content-Type':_0x28edcc(0x1ab),'Cookie':_0x21234d}});if(!_0x235404['ok']){if(_0x235404[_0x28edcc(0x17c)]===0x191){const _0x2a4c81=_0x28edcc(0x19a);logger[_0x28edcc(0x1aa)]('get-online-menu-list',_0x2a4c81,{'status':_0x235404['status']});throw new Error(_0x2a4c81);}const _0x43a831=_0x28edcc(0x17b)+_0x235404[_0x28edcc(0x17c)];logger[_0x28edcc(0x1aa)](_0x28edcc(0x18a),_0x43a831);throw new Error(_0x43a831);}const _0x38c52c=await _0x235404['json']();if(!_0x38c52c['success']){const _0x3949cd='Failed\x20to\x20fetch\x20menu\x20list:\x20'+(_0x38c52c['errorMsg']||_0x28edcc(0x18d));logger[_0x28edcc(0x1aa)](_0x28edcc(0x18a),_0x3949cd,{'errorCode':_0x38c52c['errorCode'],'errorMsg':_0x38c52c[_0x28edcc(0x177)]});throw new Error(_0x3949cd);}if(!_0x38c52c['data'])return logger[_0x28edcc(0x192)]('get-online-menu-list','Server\x20returned\x20empty\x20menu\x20list'),[];return logger['info'](_0x28edcc(0x18a),_0x28edcc(0x17a)+_0x38c52c[_0x28edcc(0x18f)][_0x28edcc(0x184)]+'\x20online\x20menus\x20successfully'),_0x38c52c['data'][_0x28edcc(0x18c)](flattenMenuItem)['flat']();}function a49_0xc8e6(_0x209c05,_0x18e482){_0x209c05=_0x209c05-0x177;const _0x2aba41=a49_0x2aba();let _0xc8e653=_0x2aba41[_0x209c05];return _0xc8e653;}function flattenMenuItem(_0x270c37){const _0x1ab691=a49_0xc8e6;let _0x59a76e=[];try{if(_0x270c37[_0x1ab691(0x1ac)]?.[_0x1ab691(0x1a3)]){const _0x8548c5=JSON[_0x1ab691(0x194)](_0x270c37[_0x1ab691(0x1ac)][_0x1ab691(0x1a3)]);Array['isArray'](_0x8548c5)&&(_0x59a76e=_0x8548c5);}}catch(_0x6b693b){}const _0x1d5d07=[{'id':_0x270c37['id'],'path':_0x270c37[_0x1ab691(0x187)],'label':_0x270c37[_0x1ab691(0x18b)],'resources':_0x59a76e}];if(_0x270c37[_0x1ab691(0x179)]&&_0x270c37['children'][_0x1ab691(0x184)]>0x0)for(const _0xe2cd95 of _0x270c37['children']){_0x1d5d07[_0x1ab691(0x1a7)](...flattenMenuItem(_0xe2cd95));}return _0x1d5d07;}export async function createMenu(_0xd2b54d,_0x39e9b2,_0x58c919){const _0x3e7c7c=a49_0xc8e6;logger[_0x3e7c7c(0x192)](_0x3e7c7c(0x1a2),'Creating\x20menu:\x20'+_0x58c919[_0x3e7c7c(0x18b)]+'\x20('+_0x58c919[_0x3e7c7c(0x187)]+')');const _0x2405b3={'appCode':_0xd2b54d,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0x3e7c7c(0x1a4),'resources':_0x58c919[_0x3e7c7c(0x1a3)]?JSON['stringify'](_0x58c919[_0x3e7c7c(0x1a3)]):undefined},..._0x58c919},_0x4211b5=await fetch(getApiDomain()+_0x3e7c7c(0x181),{'method':_0x3e7c7c(0x1a8),'body':JSON[_0x3e7c7c(0x1a1)](_0x2405b3),'headers':{'Content-Type':_0x3e7c7c(0x1ab),'Cookie':_0x39e9b2}});if(!_0x4211b5['ok']){if(_0x4211b5[_0x3e7c7c(0x17c)]===0x191){const _0x27d351='Authentication\x20failed,\x20session\x20expired.\x20Please\x20use\x20rabetbase\x20auth\x20to\x20login\x20again';logger[_0x3e7c7c(0x1aa)](_0x3e7c7c(0x1a2),_0x27d351,{'status':_0x4211b5[_0x3e7c7c(0x17c)],'menu':_0x58c919['label']});throw new Error(_0x27d351);}const _0x2cfa78=_0x3e7c7c(0x199)+_0x4211b5[_0x3e7c7c(0x17c)];logger['error'](_0x3e7c7c(0x1a2),_0x2cfa78,{'menu':_0x58c919[_0x3e7c7c(0x18b)]});throw new Error(_0x2cfa78);}const _0x3c7489=await _0x4211b5['json']();if(!_0x3c7489[_0x3e7c7c(0x178)]){const _0x2bba1e=_0x3e7c7c(0x198)+(_0x3c7489[_0x3e7c7c(0x177)]||'Error');logger['error'](_0x3e7c7c(0x1a2),_0x2bba1e,{'errorCode':_0x3c7489[_0x3e7c7c(0x180)],'errorMsg':_0x3c7489[_0x3e7c7c(0x177)],'menu':_0x58c919['label']});throw new Error(_0x2bba1e);}logger[_0x3e7c7c(0x192)](_0x3e7c7c(0x1a2),_0x3e7c7c(0x1a0)+_0x58c919[_0x3e7c7c(0x18b)],_0x3c7489[_0x3e7c7c(0x18f)]);}async function createSingleMenu(_0x5abcad,_0x5c1a78,_0x1d8246,_0x2d0afe){const _0xf7f2e=a49_0xc8e6,_0x388b7a={'appCode':_0x5abcad,'type':_0xf7f2e(0x1a9),'sort':0x0,'extend':{'loadScriptMode':_0xf7f2e(0x1a4),'resources':_0x2d0afe?JSON[_0xf7f2e(0x1a1)](_0x2d0afe):undefined},'label':_0x1d8246[_0xf7f2e(0x18b)],'path':_0x1d8246[_0xf7f2e(0x187)]},_0x338bee=await fetch(getApiDomain()+_0xf7f2e(0x181),{'method':_0xf7f2e(0x1a8),'body':JSON['stringify'](_0x388b7a),'headers':{'Content-Type':_0xf7f2e(0x1ab),'Cookie':_0x5c1a78}});if(!_0x338bee['ok']){if(_0x338bee[_0xf7f2e(0x17c)]===0x191){const _0x1f5bf5=_0xf7f2e(0x19a);logger[_0xf7f2e(0x1aa)](_0xf7f2e(0x1a2),_0x1f5bf5,{'status':_0x338bee[_0xf7f2e(0x17c)],'menu':_0x1d8246['label']});throw new Error(_0x1f5bf5);}const _0x20ec97=_0xf7f2e(0x199)+_0x338bee[_0xf7f2e(0x17c)];logger[_0xf7f2e(0x1aa)](_0xf7f2e(0x1a2),_0x20ec97,{'menu':_0x1d8246[_0xf7f2e(0x18b)]});throw new Error(_0x20ec97);}const _0x32e5b8=await _0x338bee[_0xf7f2e(0x195)]();if(!_0x32e5b8[_0xf7f2e(0x178)]){if(_0x32e5b8[_0xf7f2e(0x180)]===_0xf7f2e(0x19f)||_0x32e5b8['errorMsg']?.[_0xf7f2e(0x190)]('登录')){const _0x5c4429='Auth\x20validation\x20failed.\x20Please\x20use\x20rabetbase\x20auth\x20to\x20login\x20again';logger[_0xf7f2e(0x1aa)](_0xf7f2e(0x1a2),_0x5c4429,{'errorCode':_0x32e5b8[_0xf7f2e(0x180)],'errorMsg':_0x32e5b8[_0xf7f2e(0x177)],'menu':_0x1d8246[_0xf7f2e(0x18b)]});throw new Error(_0x5c4429);}const _0x33fa38='Failed\x20to\x20create\x20menu:\x20'+(_0x32e5b8['errorMsg']||_0xf7f2e(0x18d));logger['error'](_0xf7f2e(0x1a2),_0x33fa38,{'errorCode':_0x32e5b8[_0xf7f2e(0x180)],'errorMsg':_0x32e5b8[_0xf7f2e(0x177)],'menu':_0x1d8246[_0xf7f2e(0x18b)]});throw new Error(_0x33fa38);}logger['info'](_0xf7f2e(0x1a2),_0xf7f2e(0x1a0)+_0x1d8246[_0xf7f2e(0x18b)]);}function a49_0x2aba(){const _0x553e0e=['Authentication\x20failed,\x20session\x20expired.\x20Please\x20use\x20rabetbase\x20auth\x20to\x20login\x20again','2902536NXYgMD','Batch\x20menu\x20creation\x20completed,\x20total\x20','54348vJHNvh','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','0011','Menu\x20created\x20successfully:\x20','stringify','create-menu','resources','import','/smartapi/menu/find?appCode=','66ipAIsv','push','POST','procode','error','application/json','extend','errorMsg','success','children','Fetched\x20','Failed\x20to\x20fetch\x20menu\x20list,\x20HTTP\x20status:\x20','status','588015rIwgPj','4TlEPLt','541875nEdfxd','errorCode','/smartapi/menu/create','381210esRHlI','342pvAKnl','length','9aARLqS','636930FjoPxZ','path','Start\x20batch\x20menu\x20creation,\x20total\x20','update-menu-cdn-url','get-online-menu-list','label','map','Error','Menu\x20assets\x20synced:\x20','data','includes','2017020sdefOG','info','Failed\x20to\x20update\x20menu\x20assets:\x20','parse','json','GET','/smartapi/menu/update','Failed\x20to\x20create\x20menu:\x20','Failed\x20to\x20create\x20menu,\x20HTTP\x20status:\x20'];a49_0x2aba=function(){return _0x553e0e;};return a49_0x2aba();}export async function createMenus(_0x5375c6,_0x330064,_0x35c2e4,_0x49e1bd){const _0x2e0818=a49_0xc8e6;logger[_0x2e0818(0x192)]('create-menus',_0x2e0818(0x188)+_0x35c2e4[_0x2e0818(0x184)]),await Promise['all'](_0x35c2e4[_0x2e0818(0x18c)](async _0x5495f6=>{await createSingleMenu(_0x5375c6,_0x330064,_0x5495f6,_0x49e1bd);})),logger['info']('create-menus',_0x2e0818(0x19c)+_0x35c2e4[_0x2e0818(0x184)]);}export async function updateMenuCdnUrl(_0x309799,_0x54840a,_0x547d8a){const _0x200a72=a49_0xc8e6;logger[_0x200a72(0x192)]('update-menu-cdn-url','Updating\x20menu\x20asset\x20links:\x20'+_0x547d8a[_0x200a72(0x18b)]+'\x20('+_0x547d8a[_0x200a72(0x187)]+')');const _0x4c0576={'id':_0x547d8a['id'],'appCode':_0x309799,'extend':{'loadScriptMode':'import','resources':_0x547d8a[_0x200a72(0x1a3)]?JSON[_0x200a72(0x1a1)](_0x547d8a['resources']):undefined}},_0x2205e6=await fetch(getApiDomain()+_0x200a72(0x197),{'method':_0x200a72(0x1a8),'body':JSON[_0x200a72(0x1a1)](_0x4c0576),'headers':{'Content-Type':_0x200a72(0x1ab),'Cookie':_0x54840a}});if(!_0x2205e6['ok']){if(_0x2205e6['status']===0x191){const _0xf56640=_0x200a72(0x19a);logger[_0x200a72(0x1aa)](_0x200a72(0x189),_0xf56640,{'status':_0x2205e6[_0x200a72(0x17c)],'menu':_0x547d8a[_0x200a72(0x18b)]});throw new Error(_0xf56640);}const _0x1f2e22=_0x200a72(0x193)+_0x2205e6[_0x200a72(0x17c)];logger[_0x200a72(0x1aa)](_0x200a72(0x189),_0x1f2e22,{'menu':_0x547d8a[_0x200a72(0x18b)]});throw new Error(_0x1f2e22);}const _0x202476=await _0x2205e6[_0x200a72(0x195)]();if(!_0x202476[_0x200a72(0x178)]){const _0x51b540=_0x200a72(0x193)+(_0x202476[_0x200a72(0x177)]||_0x200a72(0x18d));logger[_0x200a72(0x1aa)](_0x200a72(0x189),_0x51b540,{'errorCode':_0x202476[_0x200a72(0x180)],'errorMsg':_0x202476[_0x200a72(0x177)],'menu':_0x547d8a['label']});throw new Error(_0x51b540);}logger['info'](_0x200a72(0x189),_0x200a72(0x18e)+_0x547d8a[_0x200a72(0x18b)],_0x202476[_0x200a72(0x18f)]);}