create-yoya-ui 0.2.2 → 0.3.3

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 (877) hide show
  1. package/bin/create-yoya-ui.js +3 -1
  2. package/package.json +1 -1
  3. package/templates/admin/README.md +10 -0
  4. package/templates/admin/RULES.md +11 -2
  5. package/templates/admin/node_modules/.vite/deps/_metadata.json +5 -12
  6. package/templates/admin/package.json +1 -1
  7. package/templates/admin/src/features/dashboard/overview/components/dashboard-chart.js +7 -1
  8. package/templates/admin/src/features/dashboard/overview/pages/dashboard-overview-page.js +9 -5
  9. package/templates/admin/src/features/system/dicts/api/dict.mgr.d.ts +48 -21
  10. package/templates/admin/src/features/system/dicts/components/dict-editor-dialog.js +13 -20
  11. package/templates/admin/src/features/system/dicts/components/dict-item-form-dialog.js +5 -1
  12. package/templates/admin/src/features/system/dicts/pages/dict-list-page.js +12 -19
  13. package/templates/admin/src/features/system/members/api/member.mgr.d.ts +8 -6
  14. package/templates/admin/src/features/system/members/components/member-form-dialog.js +5 -1
  15. package/templates/admin/src/features/system/members/components/member-table.js +7 -1
  16. package/templates/admin/src/features/system/members/components/member-toolbar.js +2 -3
  17. package/templates/admin/src/features/system/permissions/api/permission.mgr.d.ts +35 -13
  18. package/templates/admin/src/features/system/permissions/api/permission.mgr.js +7 -1
  19. package/templates/admin/src/features/system/permissions/api/permission.mock.js +24 -3
  20. package/templates/admin/src/features/system/permissions/api/permission.views.js +9 -1
  21. package/templates/admin/src/features/system/permissions/pages/permission-list-page.js +12 -19
  22. package/templates/admin/src/features/system/roles/api/role.mgr.d.ts +24 -26
  23. package/templates/admin/src/features/system/roles/api/role.mock.js +9 -4
  24. package/templates/admin/src/features/system/roles/components/role-form-dialog.js +6 -4
  25. package/templates/admin/src/features/system/roles/components/role-toolbar.js +1 -3
  26. package/templates/admin/src/features/system/roles/pages/role-list-page.js +12 -19
  27. package/templates/admin/src/main.js +2 -0
  28. package/templates/admin/src/shell/api/auth.mock.js +23 -0
  29. package/templates/admin/src/shell/api/shell.mock.js +48 -8
  30. package/templates/admin/src/shell/api/shell.req.js +8 -1
  31. package/templates/admin/src/shell/api/shell.state.js +48 -8
  32. package/templates/admin/src/shell/api/shell.views.js +2 -1
  33. package/templates/admin/src/shell/router.js +4 -1
  34. package/templates/admin/vite.config.js +16 -0
  35. package/templates/basic/package.json +1 -1
  36. package/templates/basic/src/main.js +1 -1
  37. package/templates/ssr/package.json +1 -1
  38. package/templates/admin/dist/assets/index-C9C1xRte.js +0 -35
  39. package/templates/admin/dist/assets/index-Dh32qJDx.css +0 -1
  40. package/templates/admin/dist/index.html +0 -13
  41. package/templates/admin/node_modules/.bin/nanoid +0 -16
  42. package/templates/admin/node_modules/.bin/nanoid.cmd +0 -17
  43. package/templates/admin/node_modules/.bin/nanoid.ps1 +0 -28
  44. package/templates/admin/node_modules/.bin/rolldown +0 -16
  45. package/templates/admin/node_modules/.bin/rolldown.cmd +0 -17
  46. package/templates/admin/node_modules/.bin/rolldown.ps1 +0 -28
  47. package/templates/admin/node_modules/.bin/tsc +0 -16
  48. package/templates/admin/node_modules/.bin/tsc.cmd +0 -17
  49. package/templates/admin/node_modules/.bin/tsc.ps1 +0 -28
  50. package/templates/admin/node_modules/.bin/vite +0 -16
  51. package/templates/admin/node_modules/.bin/vite.cmd +0 -17
  52. package/templates/admin/node_modules/.bin/vite.ps1 +0 -28
  53. package/templates/admin/node_modules/.package-lock.json +0 -389
  54. package/templates/admin/node_modules/.vite/deps/@yoyaflow_yoya-ui.js +0 -13116
  55. package/templates/admin/node_modules/.vite/deps/@yoyaflow_yoya-ui.js.map +0 -1
  56. package/templates/admin/node_modules/@oxc-project/types/LICENSE +0 -22
  57. package/templates/admin/node_modules/@oxc-project/types/README.md +0 -3
  58. package/templates/admin/node_modules/@oxc-project/types/package.json +0 -26
  59. package/templates/admin/node_modules/@oxc-project/types/types.d.ts +0 -1912
  60. package/templates/admin/node_modules/@rolldown/binding-win32-x64-msvc/README.md +0 -3
  61. package/templates/admin/node_modules/@rolldown/binding-win32-x64-msvc/package.json +0 -37
  62. package/templates/admin/node_modules/@rolldown/binding-win32-x64-msvc/rolldown-binding.win32-x64-msvc.node +0 -0
  63. package/templates/admin/node_modules/@rolldown/pluginutils/LICENSE +0 -21
  64. package/templates/admin/node_modules/@rolldown/pluginutils/README.md +0 -145
  65. package/templates/admin/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts +0 -194
  66. package/templates/admin/node_modules/@rolldown/pluginutils/dist/filter/index.mjs +0 -2
  67. package/templates/admin/node_modules/@rolldown/pluginutils/dist/filter-B_mD-HGz.mjs +0 -323
  68. package/templates/admin/node_modules/@rolldown/pluginutils/dist/index.d.mts +0 -2
  69. package/templates/admin/node_modules/@rolldown/pluginutils/dist/index.mjs +0 -2
  70. package/templates/admin/node_modules/@rolldown/pluginutils/package.json +0 -40
  71. package/templates/admin/node_modules/@typescript/typescript-win32-x64/LICENSE +0 -55
  72. package/templates/admin/node_modules/@typescript/typescript-win32-x64/NOTICE.txt +0 -436
  73. package/templates/admin/node_modules/@typescript/typescript-win32-x64/README.md +0 -3
  74. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.d.ts +0 -20
  75. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.decorators.d.ts +0 -382
  76. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.decorators.legacy.d.ts +0 -20
  77. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.dom.asynciterable.d.ts +0 -18
  78. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.dom.d.ts +0 -45125
  79. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.dom.iterable.d.ts +0 -18
  80. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.collection.d.ts +0 -159
  81. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.core.d.ts +0 -595
  82. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.d.ts +0 -26
  83. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.generator.d.ts +0 -75
  84. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.iterable.d.ts +0 -603
  85. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.promise.d.ts +0 -79
  86. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.proxy.d.ts +0 -126
  87. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.reflect.d.ts +0 -142
  88. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.symbol.d.ts +0 -44
  89. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2015.symbol.wellknown.d.ts +0 -324
  90. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.array.include.d.ts +0 -114
  91. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.d.ts +0 -19
  92. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.full.d.ts +0 -21
  93. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2016.intl.d.ts +0 -29
  94. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.arraybuffer.d.ts +0 -19
  95. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.d.ts +0 -24
  96. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.date.d.ts +0 -29
  97. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.full.d.ts +0 -21
  98. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.intl.d.ts +0 -42
  99. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.object.d.ts +0 -47
  100. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.sharedmemory.d.ts +0 -133
  101. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.string.d.ts +0 -47
  102. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2017.typedarrays.d.ts +0 -51
  103. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.asyncgenerator.d.ts +0 -75
  104. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.asynciterable.d.ts +0 -51
  105. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.d.ts +0 -22
  106. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.full.d.ts +0 -22
  107. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.intl.d.ts +0 -81
  108. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.promise.d.ts +0 -28
  109. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2018.regexp.d.ts +0 -35
  110. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.array.d.ts +0 -77
  111. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.d.ts +0 -22
  112. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.full.d.ts +0 -22
  113. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.intl.d.ts +0 -21
  114. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.object.d.ts +0 -31
  115. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.string.d.ts +0 -35
  116. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2019.symbol.d.ts +0 -22
  117. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.bigint.d.ts +0 -763
  118. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.d.ts +0 -25
  119. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.date.d.ts +0 -40
  120. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.full.d.ts +0 -22
  121. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.intl.d.ts +0 -472
  122. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.number.d.ts +0 -26
  123. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.promise.d.ts +0 -45
  124. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.sharedmemory.d.ts +0 -97
  125. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.string.d.ts +0 -42
  126. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2020.symbol.wellknown.d.ts +0 -39
  127. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.d.ts +0 -21
  128. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.full.d.ts +0 -22
  129. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.intl.d.ts +0 -164
  130. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.promise.d.ts +0 -46
  131. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.string.d.ts +0 -31
  132. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2021.weakref.d.ts +0 -76
  133. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.array.d.ts +0 -119
  134. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.d.ts +0 -23
  135. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.error.d.ts +0 -73
  136. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.full.d.ts +0 -22
  137. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.intl.d.ts +0 -143
  138. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.object.d.ts +0 -24
  139. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.regexp.d.ts +0 -37
  140. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2022.string.d.ts +0 -23
  141. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.array.d.ts +0 -922
  142. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.collection.d.ts +0 -19
  143. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.d.ts +0 -20
  144. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.full.d.ts +0 -22
  145. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2023.intl.d.ts +0 -62
  146. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.arraybuffer.d.ts +0 -63
  147. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.collection.d.ts +0 -27
  148. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.d.ts +0 -24
  149. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.full.d.ts +0 -22
  150. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.object.d.ts +0 -27
  151. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.promise.d.ts +0 -33
  152. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.regexp.d.ts +0 -23
  153. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.sharedmemory.d.ts +0 -66
  154. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2024.string.d.ts +0 -27
  155. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.collection.d.ts +0 -94
  156. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.d.ts +0 -23
  157. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.float16.d.ts +0 -443
  158. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.full.d.ts +0 -22
  159. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.intl.d.ts +0 -200
  160. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.iterator.d.ts +0 -146
  161. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.promise.d.ts +0 -32
  162. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es2025.regexp.d.ts +0 -30
  163. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es5.d.ts +0 -4599
  164. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.es6.d.ts +0 -21
  165. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.array.d.ts +0 -33
  166. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.collection.d.ts +0 -47
  167. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.d.ts +0 -27
  168. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.date.d.ts +0 -21
  169. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.decorators.d.ts +0 -26
  170. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.disposable.d.ts +0 -191
  171. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.error.d.ts +0 -22
  172. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.full.d.ts +0 -22
  173. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.intl.d.ts +0 -107
  174. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.sharedmemory.d.ts +0 -23
  175. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.temporal.d.ts +0 -485
  176. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.esnext.typedarrays.d.ts +0 -90
  177. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.scripthost.d.ts +0 -320
  178. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.asynciterable.d.ts +0 -18
  179. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.d.ts +0 -15606
  180. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.importscripts.d.ts +0 -21
  181. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/lib.webworker.iterable.d.ts +0 -18
  182. package/templates/admin/node_modules/@typescript/typescript-win32-x64/lib/tsc.exe +0 -0
  183. package/templates/admin/node_modules/@typescript/typescript-win32-x64/package.json +0 -45
  184. package/templates/admin/node_modules/@yoyaflow/yoya-ui/LICENSE +0 -21
  185. package/templates/admin/node_modules/@yoyaflow/yoya-ui/README.md +0 -271
  186. package/templates/admin/node_modules/@yoyaflow/yoya-ui/README.zh-CN.md +0 -272
  187. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/echarts.min.js +0 -45
  188. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya-ui.umd.js +0 -35
  189. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.core.js +0 -1779
  190. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.echart.js +0 -643
  191. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.ssr.js +0 -2856
  192. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.ui.css +0 -2289
  193. package/templates/admin/node_modules/@yoyaflow/yoya-ui/dist/yoya.ui.js +0 -13174
  194. package/templates/admin/node_modules/@yoyaflow/yoya-ui/package.json +0 -94
  195. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/actions.d.ts +0 -166
  196. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/async.d.ts +0 -108
  197. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/chart.d.ts +0 -40
  198. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/core.d.ts +0 -582
  199. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/css.d.ts +0 -5
  200. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/data-display.d.ts +0 -620
  201. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/effects.d.ts +0 -64
  202. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/feedback.d.ts +0 -119
  203. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/form.d.ts +0 -507
  204. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/html.d.ts +0 -288
  205. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/i18n.d.ts +0 -56
  206. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/index.d.ts +0 -4
  207. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/layout.d.ts +0 -444
  208. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/navigation.d.ts +0 -275
  209. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/router.d.ts +0 -123
  210. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/ssr.d.ts +0 -124
  211. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/svg.d.ts +0 -159
  212. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/theme.d.ts +0 -40
  213. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.core.d.ts +0 -7
  214. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.echart.d.ts +0 -4
  215. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.ssr.d.ts +0 -9
  216. package/templates/admin/node_modules/@yoyaflow/yoya-ui/types/yoya.ui.d.ts +0 -19
  217. package/templates/admin/node_modules/detect-libc/LICENSE +0 -201
  218. package/templates/admin/node_modules/detect-libc/README.md +0 -163
  219. package/templates/admin/node_modules/detect-libc/index.d.ts +0 -14
  220. package/templates/admin/node_modules/detect-libc/lib/detect-libc.js +0 -313
  221. package/templates/admin/node_modules/detect-libc/lib/elf.js +0 -39
  222. package/templates/admin/node_modules/detect-libc/lib/filesystem.js +0 -51
  223. package/templates/admin/node_modules/detect-libc/lib/process.js +0 -24
  224. package/templates/admin/node_modules/detect-libc/package.json +0 -44
  225. package/templates/admin/node_modules/fdir/LICENSE +0 -7
  226. package/templates/admin/node_modules/fdir/README.md +0 -91
  227. package/templates/admin/node_modules/fdir/dist/index.cjs +0 -588
  228. package/templates/admin/node_modules/fdir/dist/index.d.cts +0 -155
  229. package/templates/admin/node_modules/fdir/dist/index.d.mts +0 -155
  230. package/templates/admin/node_modules/fdir/dist/index.mjs +0 -570
  231. package/templates/admin/node_modules/fdir/package.json +0 -103
  232. package/templates/admin/node_modules/lightningcss/LICENSE +0 -373
  233. package/templates/admin/node_modules/lightningcss/README.md +0 -105
  234. package/templates/admin/node_modules/lightningcss/node/ast.d.ts +0 -9965
  235. package/templates/admin/node_modules/lightningcss/node/ast.js.flow +0 -10615
  236. package/templates/admin/node_modules/lightningcss/node/browserslistToTargets.js +0 -48
  237. package/templates/admin/node_modules/lightningcss/node/composeVisitors.js +0 -450
  238. package/templates/admin/node_modules/lightningcss/node/flags.js +0 -28
  239. package/templates/admin/node_modules/lightningcss/node/index.d.ts +0 -501
  240. package/templates/admin/node_modules/lightningcss/node/index.js +0 -59
  241. package/templates/admin/node_modules/lightningcss/node/index.js.flow +0 -854
  242. package/templates/admin/node_modules/lightningcss/node/index.mjs +0 -4
  243. package/templates/admin/node_modules/lightningcss/node/targets.d.ts +0 -40
  244. package/templates/admin/node_modules/lightningcss/node/targets.js.flow +0 -39
  245. package/templates/admin/node_modules/lightningcss/package.json +0 -110
  246. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/LICENSE +0 -373
  247. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/README.md +0 -1
  248. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/lightningcss.win32-x64-msvc.node +0 -0
  249. package/templates/admin/node_modules/lightningcss-win32-x64-msvc/package.json +0 -34
  250. package/templates/admin/node_modules/nanoid/LICENSE +0 -20
  251. package/templates/admin/node_modules/nanoid/README.md +0 -39
  252. package/templates/admin/node_modules/nanoid/async/index.browser.cjs +0 -43
  253. package/templates/admin/node_modules/nanoid/async/index.browser.js +0 -43
  254. package/templates/admin/node_modules/nanoid/async/index.cjs +0 -47
  255. package/templates/admin/node_modules/nanoid/async/index.d.ts +0 -56
  256. package/templates/admin/node_modules/nanoid/async/index.js +0 -47
  257. package/templates/admin/node_modules/nanoid/async/index.native.js +0 -38
  258. package/templates/admin/node_modules/nanoid/async/package.json +0 -12
  259. package/templates/admin/node_modules/nanoid/bin/nanoid.cjs +0 -55
  260. package/templates/admin/node_modules/nanoid/index.browser.cjs +0 -45
  261. package/templates/admin/node_modules/nanoid/index.browser.js +0 -45
  262. package/templates/admin/node_modules/nanoid/index.cjs +0 -58
  263. package/templates/admin/node_modules/nanoid/index.d.cts +0 -91
  264. package/templates/admin/node_modules/nanoid/index.d.ts +0 -91
  265. package/templates/admin/node_modules/nanoid/index.js +0 -63
  266. package/templates/admin/node_modules/nanoid/nanoid.js +0 -1
  267. package/templates/admin/node_modules/nanoid/non-secure/index.cjs +0 -24
  268. package/templates/admin/node_modules/nanoid/non-secure/index.d.ts +0 -33
  269. package/templates/admin/node_modules/nanoid/non-secure/index.js +0 -24
  270. package/templates/admin/node_modules/nanoid/non-secure/package.json +0 -6
  271. package/templates/admin/node_modules/nanoid/package.json +0 -89
  272. package/templates/admin/node_modules/nanoid/url-alphabet/index.cjs +0 -4
  273. package/templates/admin/node_modules/nanoid/url-alphabet/index.js +0 -4
  274. package/templates/admin/node_modules/nanoid/url-alphabet/package.json +0 -6
  275. package/templates/admin/node_modules/picocolors/LICENSE +0 -15
  276. package/templates/admin/node_modules/picocolors/README.md +0 -21
  277. package/templates/admin/node_modules/picocolors/package.json +0 -25
  278. package/templates/admin/node_modules/picocolors/picocolors.browser.js +0 -4
  279. package/templates/admin/node_modules/picocolors/picocolors.d.ts +0 -5
  280. package/templates/admin/node_modules/picocolors/picocolors.js +0 -75
  281. package/templates/admin/node_modules/picocolors/types.d.ts +0 -51
  282. package/templates/admin/node_modules/picomatch/LICENSE +0 -21
  283. package/templates/admin/node_modules/picomatch/README.md +0 -743
  284. package/templates/admin/node_modules/picomatch/index.js +0 -17
  285. package/templates/admin/node_modules/picomatch/lib/constants.js +0 -184
  286. package/templates/admin/node_modules/picomatch/lib/parse.js +0 -1425
  287. package/templates/admin/node_modules/picomatch/lib/picomatch.js +0 -361
  288. package/templates/admin/node_modules/picomatch/lib/scan.js +0 -403
  289. package/templates/admin/node_modules/picomatch/lib/utils.js +0 -72
  290. package/templates/admin/node_modules/picomatch/package.json +0 -83
  291. package/templates/admin/node_modules/picomatch/posix.js +0 -3
  292. package/templates/admin/node_modules/postcss/LICENSE +0 -20
  293. package/templates/admin/node_modules/postcss/README.md +0 -27
  294. package/templates/admin/node_modules/postcss/lib/at-rule.d.ts +0 -139
  295. package/templates/admin/node_modules/postcss/lib/at-rule.js +0 -25
  296. package/templates/admin/node_modules/postcss/lib/comment.d.ts +0 -67
  297. package/templates/admin/node_modules/postcss/lib/comment.js +0 -13
  298. package/templates/admin/node_modules/postcss/lib/container.d.ts +0 -478
  299. package/templates/admin/node_modules/postcss/lib/container.js +0 -494
  300. package/templates/admin/node_modules/postcss/lib/css-syntax-error.d.ts +0 -247
  301. package/templates/admin/node_modules/postcss/lib/css-syntax-error.js +0 -133
  302. package/templates/admin/node_modules/postcss/lib/declaration.d.ts +0 -150
  303. package/templates/admin/node_modules/postcss/lib/declaration.js +0 -24
  304. package/templates/admin/node_modules/postcss/lib/document.d.ts +0 -68
  305. package/templates/admin/node_modules/postcss/lib/document.js +0 -33
  306. package/templates/admin/node_modules/postcss/lib/fromJSON.d.ts +0 -9
  307. package/templates/admin/node_modules/postcss/lib/fromJSON.js +0 -107
  308. package/templates/admin/node_modules/postcss/lib/input.d.ts +0 -226
  309. package/templates/admin/node_modules/postcss/lib/input.js +0 -282
  310. package/templates/admin/node_modules/postcss/lib/lazy-result.d.ts +0 -189
  311. package/templates/admin/node_modules/postcss/lib/lazy-result.js +0 -626
  312. package/templates/admin/node_modules/postcss/lib/list.d.ts +0 -60
  313. package/templates/admin/node_modules/postcss/lib/list.js +0 -59
  314. package/templates/admin/node_modules/postcss/lib/map-generator.js +0 -376
  315. package/templates/admin/node_modules/postcss/lib/no-work-result.d.ts +0 -45
  316. package/templates/admin/node_modules/postcss/lib/no-work-result.js +0 -137
  317. package/templates/admin/node_modules/postcss/lib/node.d.ts +0 -555
  318. package/templates/admin/node_modules/postcss/lib/node.js +0 -494
  319. package/templates/admin/node_modules/postcss/lib/parse.d.ts +0 -9
  320. package/templates/admin/node_modules/postcss/lib/parse.js +0 -42
  321. package/templates/admin/node_modules/postcss/lib/parser.js +0 -618
  322. package/templates/admin/node_modules/postcss/lib/postcss.d.mts +0 -66
  323. package/templates/admin/node_modules/postcss/lib/postcss.d.ts +0 -464
  324. package/templates/admin/node_modules/postcss/lib/postcss.js +0 -101
  325. package/templates/admin/node_modules/postcss/lib/postcss.mjs +0 -30
  326. package/templates/admin/node_modules/postcss/lib/previous-map.d.ts +0 -80
  327. package/templates/admin/node_modules/postcss/lib/previous-map.js +0 -176
  328. package/templates/admin/node_modules/postcss/lib/processor.d.ts +0 -114
  329. package/templates/admin/node_modules/postcss/lib/processor.js +0 -67
  330. package/templates/admin/node_modules/postcss/lib/result.d.ts +0 -204
  331. package/templates/admin/node_modules/postcss/lib/result.js +0 -42
  332. package/templates/admin/node_modules/postcss/lib/root.d.ts +0 -86
  333. package/templates/admin/node_modules/postcss/lib/root.js +0 -76
  334. package/templates/admin/node_modules/postcss/lib/rule.d.ts +0 -126
  335. package/templates/admin/node_modules/postcss/lib/rule.js +0 -27
  336. package/templates/admin/node_modules/postcss/lib/stringifier.d.ts +0 -45
  337. package/templates/admin/node_modules/postcss/lib/stringifier.js +0 -461
  338. package/templates/admin/node_modules/postcss/lib/stringify.d.ts +0 -9
  339. package/templates/admin/node_modules/postcss/lib/stringify.js +0 -11
  340. package/templates/admin/node_modules/postcss/lib/symbols.js +0 -5
  341. package/templates/admin/node_modules/postcss/lib/terminal-highlight.js +0 -70
  342. package/templates/admin/node_modules/postcss/lib/tokenize.js +0 -270
  343. package/templates/admin/node_modules/postcss/lib/warn-once.js +0 -13
  344. package/templates/admin/node_modules/postcss/lib/warning.d.ts +0 -146
  345. package/templates/admin/node_modules/postcss/lib/warning.js +0 -47
  346. package/templates/admin/node_modules/postcss/package.json +0 -88
  347. package/templates/admin/node_modules/rolldown/LICENSE +0 -25
  348. package/templates/admin/node_modules/rolldown/README.md +0 -11
  349. package/templates/admin/node_modules/rolldown/THIRD-PARTY-LICENSE +0 -33
  350. package/templates/admin/node_modules/rolldown/bin/cli.mjs +0 -11
  351. package/templates/admin/node_modules/rolldown/dist/cli.d.mts +0 -1
  352. package/templates/admin/node_modules/rolldown/dist/cli.mjs +0 -1208
  353. package/templates/admin/node_modules/rolldown/dist/config.d.mts +0 -26
  354. package/templates/admin/node_modules/rolldown/dist/config.mjs +0 -4
  355. package/templates/admin/node_modules/rolldown/dist/experimental-default-runtime.mjs +0 -116
  356. package/templates/admin/node_modules/rolldown/dist/experimental-index.d.mts +0 -324
  357. package/templates/admin/node_modules/rolldown/dist/experimental-index.mjs +0 -383
  358. package/templates/admin/node_modules/rolldown/dist/experimental-runtime-base.mjs +0 -95
  359. package/templates/admin/node_modules/rolldown/dist/experimental-runtime-types.d.ts +0 -177
  360. package/templates/admin/node_modules/rolldown/dist/experimental-runtime.d.ts +0 -177
  361. package/templates/admin/node_modules/rolldown/dist/experimental-runtime.mjs +0 -257
  362. package/templates/admin/node_modules/rolldown/dist/filter-index.d.mts +0 -196
  363. package/templates/admin/node_modules/rolldown/dist/filter-index.mjs +0 -376
  364. package/templates/admin/node_modules/rolldown/dist/get-log-filter.d.mts +0 -3
  365. package/templates/admin/node_modules/rolldown/dist/get-log-filter.mjs +0 -68
  366. package/templates/admin/node_modules/rolldown/dist/index.d.mts +0 -4
  367. package/templates/admin/node_modules/rolldown/dist/index.mjs +0 -56
  368. package/templates/admin/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +0 -1
  369. package/templates/admin/node_modules/rolldown/dist/parallel-plugin-worker.mjs +0 -29
  370. package/templates/admin/node_modules/rolldown/dist/parallel-plugin.d.mts +0 -12
  371. package/templates/admin/node_modules/rolldown/dist/parallel-plugin.mjs +0 -6
  372. package/templates/admin/node_modules/rolldown/dist/parse-ast-index.d.mts +0 -30
  373. package/templates/admin/node_modules/rolldown/dist/parse-ast-index.mjs +0 -60
  374. package/templates/admin/node_modules/rolldown/dist/plugins-index.d.mts +0 -32
  375. package/templates/admin/node_modules/rolldown/dist/plugins-index.mjs +0 -40
  376. package/templates/admin/node_modules/rolldown/dist/shared/binding-CtPG-2KR.mjs +0 -675
  377. package/templates/admin/node_modules/rolldown/dist/shared/binding-Og__jmUi.d.mts +0 -2065
  378. package/templates/admin/node_modules/rolldown/dist/shared/bindingify-input-options-4JJxbZl2.mjs +0 -2416
  379. package/templates/admin/node_modules/rolldown/dist/shared/constructors-Qrp2Xr6w.d.mts +0 -35
  380. package/templates/admin/node_modules/rolldown/dist/shared/constructors-ltBDfHX1.mjs +0 -69
  381. package/templates/admin/node_modules/rolldown/dist/shared/create-bundler-option-DSPiA5F7.mjs +0 -3220
  382. package/templates/admin/node_modules/rolldown/dist/shared/define-config-Demdg3_4.mjs +0 -6
  383. package/templates/admin/node_modules/rolldown/dist/shared/define-config-Nbz-lniw.d.mts +0 -4101
  384. package/templates/admin/node_modules/rolldown/dist/shared/dist-DKbukT1H.mjs +0 -154
  385. package/templates/admin/node_modules/rolldown/dist/shared/error-HDibX49O.mjs +0 -85
  386. package/templates/admin/node_modules/rolldown/dist/shared/get-log-filter-AjBknEEO.d.mts +0 -34
  387. package/templates/admin/node_modules/rolldown/dist/shared/load-config-BMUrE9HH.mjs +0 -137
  388. package/templates/admin/node_modules/rolldown/dist/shared/logging-xuHO4mAy.d.mts +0 -50
  389. package/templates/admin/node_modules/rolldown/dist/shared/logs-DmYCAKcW.mjs +0 -192
  390. package/templates/admin/node_modules/rolldown/dist/shared/misc-DOSKtd97.mjs +0 -29
  391. package/templates/admin/node_modules/rolldown/dist/shared/normalize-string-or-regex-DWz4it3p.mjs +0 -68
  392. package/templates/admin/node_modules/rolldown/dist/shared/parse-D0g29RgN.mjs +0 -74
  393. package/templates/admin/node_modules/rolldown/dist/shared/prompt-CH6TK0bC.mjs +0 -885
  394. package/templates/admin/node_modules/rolldown/dist/shared/resolve-tsconfig-CLYpUIZC.mjs +0 -128
  395. package/templates/admin/node_modules/rolldown/dist/shared/rolldown-C9Hfg50O.mjs +0 -179
  396. package/templates/admin/node_modules/rolldown/dist/shared/transform-DR4CXeQm.d.mts +0 -152
  397. package/templates/admin/node_modules/rolldown/dist/shared/watch-UbzgabQn.mjs +0 -377
  398. package/templates/admin/node_modules/rolldown/dist/utils-index.d.mts +0 -375
  399. package/templates/admin/node_modules/rolldown/dist/utils-index.mjs +0 -2416
  400. package/templates/admin/node_modules/rolldown/package.json +0 -164
  401. package/templates/admin/node_modules/source-map-js/LICENSE +0 -28
  402. package/templates/admin/node_modules/source-map-js/README.md +0 -765
  403. package/templates/admin/node_modules/source-map-js/lib/array-set.js +0 -121
  404. package/templates/admin/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  405. package/templates/admin/node_modules/source-map-js/lib/base64.js +0 -67
  406. package/templates/admin/node_modules/source-map-js/lib/binary-search.js +0 -111
  407. package/templates/admin/node_modules/source-map-js/lib/mapping-list.js +0 -79
  408. package/templates/admin/node_modules/source-map-js/lib/quick-sort.js +0 -132
  409. package/templates/admin/node_modules/source-map-js/lib/source-map-consumer.d.ts +0 -1
  410. package/templates/admin/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  411. package/templates/admin/node_modules/source-map-js/lib/source-map-generator.d.ts +0 -1
  412. package/templates/admin/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  413. package/templates/admin/node_modules/source-map-js/lib/source-node.d.ts +0 -1
  414. package/templates/admin/node_modules/source-map-js/lib/source-node.js +0 -413
  415. package/templates/admin/node_modules/source-map-js/lib/util.js +0 -594
  416. package/templates/admin/node_modules/source-map-js/package.json +0 -71
  417. package/templates/admin/node_modules/source-map-js/source-map.d.ts +0 -104
  418. package/templates/admin/node_modules/source-map-js/source-map.js +0 -8
  419. package/templates/admin/node_modules/tinyglobby/LICENSE +0 -21
  420. package/templates/admin/node_modules/tinyglobby/README.md +0 -25
  421. package/templates/admin/node_modules/tinyglobby/dist/index.cjs +0 -335
  422. package/templates/admin/node_modules/tinyglobby/dist/index.d.cts +0 -148
  423. package/templates/admin/node_modules/tinyglobby/dist/index.d.mts +0 -148
  424. package/templates/admin/node_modules/tinyglobby/dist/index.mjs +0 -307
  425. package/templates/admin/node_modules/tinyglobby/package.json +0 -70
  426. package/templates/admin/node_modules/typescript/LICENSE +0 -55
  427. package/templates/admin/node_modules/typescript/NOTICE.txt +0 -436
  428. package/templates/admin/node_modules/typescript/README.md +0 -49
  429. package/templates/admin/node_modules/typescript/bin/tsc +0 -2
  430. package/templates/admin/node_modules/typescript/dist/api/async/api.d.ts +0 -529
  431. package/templates/admin/node_modules/typescript/dist/api/async/api.d.ts.map +0 -1
  432. package/templates/admin/node_modules/typescript/dist/api/async/api.js +0 -1657
  433. package/templates/admin/node_modules/typescript/dist/api/async/api.js.map +0 -1
  434. package/templates/admin/node_modules/typescript/dist/api/async/client.d.ts +0 -39
  435. package/templates/admin/node_modules/typescript/dist/api/async/client.d.ts.map +0 -1
  436. package/templates/admin/node_modules/typescript/dist/api/async/client.js +0 -211
  437. package/templates/admin/node_modules/typescript/dist/api/async/client.js.map +0 -1
  438. package/templates/admin/node_modules/typescript/dist/api/async/types.d.ts +0 -310
  439. package/templates/admin/node_modules/typescript/dist/api/async/types.d.ts.map +0 -1
  440. package/templates/admin/node_modules/typescript/dist/api/async/types.js +0 -2
  441. package/templates/admin/node_modules/typescript/dist/api/async/types.js.map +0 -1
  442. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.d.ts +0 -109
  443. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.d.ts.map +0 -1
  444. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.js +0 -2
  445. package/templates/admin/node_modules/typescript/dist/api/compilerOptions.js.map +0 -1
  446. package/templates/admin/node_modules/typescript/dist/api/fs.d.ts +0 -23
  447. package/templates/admin/node_modules/typescript/dist/api/fs.d.ts.map +0 -1
  448. package/templates/admin/node_modules/typescript/dist/api/fs.js +0 -109
  449. package/templates/admin/node_modules/typescript/dist/api/fs.js.map +0 -1
  450. package/templates/admin/node_modules/typescript/dist/api/node/encoder.d.ts +0 -15
  451. package/templates/admin/node_modules/typescript/dist/api/node/encoder.d.ts.map +0 -1
  452. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.d.ts +0 -5
  453. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.d.ts.map +0 -1
  454. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.js +0 -74
  455. package/templates/admin/node_modules/typescript/dist/api/node/encoder.generated.js.map +0 -1
  456. package/templates/admin/node_modules/typescript/dist/api/node/encoder.js +0 -287
  457. package/templates/admin/node_modules/typescript/dist/api/node/encoder.js.map +0 -1
  458. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.d.ts +0 -32
  459. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.d.ts.map +0 -1
  460. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.js +0 -213
  461. package/templates/admin/node_modules/typescript/dist/api/node/msgpack.js.map +0 -1
  462. package/templates/admin/node_modules/typescript/dist/api/node/node.d.ts +0 -76
  463. package/templates/admin/node_modules/typescript/dist/api/node/node.d.ts.map +0 -1
  464. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.d.ts +0 -182
  465. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.d.ts.map +0 -1
  466. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.js +0 -835
  467. package/templates/admin/node_modules/typescript/dist/api/node/node.generated.js.map +0 -1
  468. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.d.ts +0 -62
  469. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.d.ts.map +0 -1
  470. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.js +0 -122
  471. package/templates/admin/node_modules/typescript/dist/api/node/node.infrastructure.js.map +0 -1
  472. package/templates/admin/node_modules/typescript/dist/api/node/node.js +0 -298
  473. package/templates/admin/node_modules/typescript/dist/api/node/node.js.map +0 -1
  474. package/templates/admin/node_modules/typescript/dist/api/node/protocol.d.ts +0 -29
  475. package/templates/admin/node_modules/typescript/dist/api/node/protocol.d.ts.map +0 -1
  476. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.d.ts +0 -4
  477. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.d.ts.map +0 -1
  478. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.js +0 -241
  479. package/templates/admin/node_modules/typescript/dist/api/node/protocol.generated.js.map +0 -1
  480. package/templates/admin/node_modules/typescript/dist/api/node/protocol.js +0 -30
  481. package/templates/admin/node_modules/typescript/dist/api/node/protocol.js.map +0 -1
  482. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.d.ts +0 -6
  483. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.d.ts.map +0 -1
  484. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.js +0 -61
  485. package/templates/admin/node_modules/typescript/dist/api/node/wtf8.js.map +0 -1
  486. package/templates/admin/node_modules/typescript/dist/api/options.d.ts +0 -32
  487. package/templates/admin/node_modules/typescript/dist/api/options.d.ts.map +0 -1
  488. package/templates/admin/node_modules/typescript/dist/api/options.js +0 -11
  489. package/templates/admin/node_modules/typescript/dist/api/options.js.map +0 -1
  490. package/templates/admin/node_modules/typescript/dist/api/path.d.ts +0 -110
  491. package/templates/admin/node_modules/typescript/dist/api/path.d.ts.map +0 -1
  492. package/templates/admin/node_modules/typescript/dist/api/path.js +0 -508
  493. package/templates/admin/node_modules/typescript/dist/api/path.js.map +0 -1
  494. package/templates/admin/node_modules/typescript/dist/api/proto.d.ts +0 -239
  495. package/templates/admin/node_modules/typescript/dist/api/proto.d.ts.map +0 -1
  496. package/templates/admin/node_modules/typescript/dist/api/proto.js +0 -37
  497. package/templates/admin/node_modules/typescript/dist/api/proto.js.map +0 -1
  498. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.d.ts +0 -79
  499. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.d.ts.map +0 -1
  500. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.js +0 -169
  501. package/templates/admin/node_modules/typescript/dist/api/sourceFileCache.js.map +0 -1
  502. package/templates/admin/node_modules/typescript/dist/api/sync/api.d.ts +0 -529
  503. package/templates/admin/node_modules/typescript/dist/api/sync/api.d.ts.map +0 -1
  504. package/templates/admin/node_modules/typescript/dist/api/sync/api.js +0 -1665
  505. package/templates/admin/node_modules/typescript/dist/api/sync/api.js.map +0 -1
  506. package/templates/admin/node_modules/typescript/dist/api/sync/client.d.ts +0 -30
  507. package/templates/admin/node_modules/typescript/dist/api/sync/client.d.ts.map +0 -1
  508. package/templates/admin/node_modules/typescript/dist/api/sync/client.js +0 -124
  509. package/templates/admin/node_modules/typescript/dist/api/sync/client.js.map +0 -1
  510. package/templates/admin/node_modules/typescript/dist/api/sync/types.d.ts +0 -310
  511. package/templates/admin/node_modules/typescript/dist/api/sync/types.d.ts.map +0 -1
  512. package/templates/admin/node_modules/typescript/dist/api/sync/types.js +0 -2
  513. package/templates/admin/node_modules/typescript/dist/api/sync/types.js.map +0 -1
  514. package/templates/admin/node_modules/typescript/dist/api/syncChannel.d.ts +0 -114
  515. package/templates/admin/node_modules/typescript/dist/api/syncChannel.d.ts.map +0 -1
  516. package/templates/admin/node_modules/typescript/dist/api/syncChannel.js +0 -508
  517. package/templates/admin/node_modules/typescript/dist/api/syncChannel.js.map +0 -1
  518. package/templates/admin/node_modules/typescript/dist/api/timing.d.ts +0 -175
  519. package/templates/admin/node_modules/typescript/dist/api/timing.d.ts.map +0 -1
  520. package/templates/admin/node_modules/typescript/dist/api/timing.js +0 -149
  521. package/templates/admin/node_modules/typescript/dist/api/timing.js.map +0 -1
  522. package/templates/admin/node_modules/typescript/dist/ast/ast.d.ts +0 -100
  523. package/templates/admin/node_modules/typescript/dist/ast/ast.d.ts.map +0 -1
  524. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.d.ts +0 -1161
  525. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.d.ts.map +0 -1
  526. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.js +0 -4
  527. package/templates/admin/node_modules/typescript/dist/ast/ast.generated.js.map +0 -1
  528. package/templates/admin/node_modules/typescript/dist/ast/ast.js +0 -7
  529. package/templates/admin/node_modules/typescript/dist/ast/ast.js.map +0 -1
  530. package/templates/admin/node_modules/typescript/dist/ast/astnav.d.ts +0 -19
  531. package/templates/admin/node_modules/typescript/dist/ast/astnav.d.ts.map +0 -1
  532. package/templates/admin/node_modules/typescript/dist/ast/astnav.js +0 -596
  533. package/templates/admin/node_modules/typescript/dist/ast/astnav.js.map +0 -1
  534. package/templates/admin/node_modules/typescript/dist/ast/clone.d.ts +0 -16
  535. package/templates/admin/node_modules/typescript/dist/ast/clone.d.ts.map +0 -1
  536. package/templates/admin/node_modules/typescript/dist/ast/clone.js +0 -104
  537. package/templates/admin/node_modules/typescript/dist/ast/clone.js.map +0 -1
  538. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.d.ts +0 -520
  539. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.d.ts.map +0 -1
  540. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.js +0 -3057
  541. package/templates/admin/node_modules/typescript/dist/ast/factory.generated.js.map +0 -1
  542. package/templates/admin/node_modules/typescript/dist/ast/index.d.ts +0 -20
  543. package/templates/admin/node_modules/typescript/dist/ast/index.d.ts.map +0 -1
  544. package/templates/admin/node_modules/typescript/dist/ast/index.js +0 -20
  545. package/templates/admin/node_modules/typescript/dist/ast/index.js.map +0 -1
  546. package/templates/admin/node_modules/typescript/dist/ast/is.d.ts +0 -35
  547. package/templates/admin/node_modules/typescript/dist/ast/is.d.ts.map +0 -1
  548. package/templates/admin/node_modules/typescript/dist/ast/is.generated.d.ts +0 -329
  549. package/templates/admin/node_modules/typescript/dist/ast/is.generated.d.ts.map +0 -1
  550. package/templates/admin/node_modules/typescript/dist/ast/is.generated.js +0 -1103
  551. package/templates/admin/node_modules/typescript/dist/ast/is.generated.js.map +0 -1
  552. package/templates/admin/node_modules/typescript/dist/ast/is.js +0 -233
  553. package/templates/admin/node_modules/typescript/dist/ast/is.js.map +0 -1
  554. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.d.ts +0 -11
  555. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.d.ts.map +0 -1
  556. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.js +0 -202
  557. package/templates/admin/node_modules/typescript/dist/ast/jsdoc.js.map +0 -1
  558. package/templates/admin/node_modules/typescript/dist/ast/scanner.d.ts +0 -97
  559. package/templates/admin/node_modules/typescript/dist/ast/scanner.d.ts.map +0 -1
  560. package/templates/admin/node_modules/typescript/dist/ast/scanner.js +0 -2230
  561. package/templates/admin/node_modules/typescript/dist/ast/scanner.js.map +0 -1
  562. package/templates/admin/node_modules/typescript/dist/ast/utils.d.ts +0 -17
  563. package/templates/admin/node_modules/typescript/dist/ast/utils.d.ts.map +0 -1
  564. package/templates/admin/node_modules/typescript/dist/ast/utils.js +0 -67
  565. package/templates/admin/node_modules/typescript/dist/ast/utils.js.map +0 -1
  566. package/templates/admin/node_modules/typescript/dist/ast/visitor.d.ts +0 -14
  567. package/templates/admin/node_modules/typescript/dist/ast/visitor.d.ts.map +0 -1
  568. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.d.ts +0 -50
  569. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.d.ts.map +0 -1
  570. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.js +0 -978
  571. package/templates/admin/node_modules/typescript/dist/ast/visitor.generated.js.map +0 -1
  572. package/templates/admin/node_modules/typescript/dist/ast/visitor.js +0 -47
  573. package/templates/admin/node_modules/typescript/dist/ast/visitor.js.map +0 -1
  574. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.d.ts +0 -2
  575. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.d.ts.map +0 -1
  576. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.d.ts +0 -129
  577. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.d.ts.map +0 -1
  578. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.js +0 -132
  579. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.enum.js.map +0 -1
  580. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.js +0 -130
  581. package/templates/admin/node_modules/typescript/dist/enums/characterCodes.js.map +0 -1
  582. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.d.ts +0 -2
  583. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.d.ts.map +0 -1
  584. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts +0 -5
  585. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts.map +0 -1
  586. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.js +0 -6
  587. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.enum.js.map +0 -1
  588. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.js +0 -6
  589. package/templates/admin/node_modules/typescript/dist/enums/commentDirectiveType.js.map +0 -1
  590. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.d.ts +0 -2
  591. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.d.ts.map +0 -1
  592. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts +0 -28
  593. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts.map +0 -1
  594. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.js +0 -30
  595. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.enum.js.map +0 -1
  596. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.js +0 -30
  597. package/templates/admin/node_modules/typescript/dist/enums/completionItemKind.js.map +0 -1
  598. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.d.ts +0 -2
  599. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.d.ts.map +0 -1
  600. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts +0 -7
  601. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts.map +0 -1
  602. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.js +0 -9
  603. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.enum.js.map +0 -1
  604. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.js +0 -9
  605. package/templates/admin/node_modules/typescript/dist/enums/diagnosticCategory.js.map +0 -1
  606. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.d.ts +0 -2
  607. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.d.ts.map +0 -1
  608. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.d.ts +0 -12
  609. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.d.ts.map +0 -1
  610. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.js +0 -14
  611. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.enum.js.map +0 -1
  612. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.js +0 -14
  613. package/templates/admin/node_modules/typescript/dist/enums/elementFlags.js.map +0 -1
  614. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.d.ts +0 -2
  615. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.d.ts.map +0 -1
  616. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts +0 -23
  617. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts.map +0 -1
  618. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.js +0 -25
  619. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.enum.js.map +0 -1
  620. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.js +0 -25
  621. package/templates/admin/node_modules/typescript/dist/enums/internalSymbolName.js.map +0 -1
  622. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.d.ts +0 -2
  623. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.d.ts.map +0 -1
  624. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts +0 -9
  625. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts.map +0 -1
  626. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.js +0 -11
  627. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.enum.js.map +0 -1
  628. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.js +0 -11
  629. package/templates/admin/node_modules/typescript/dist/enums/jsxEmit.js.map +0 -1
  630. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.d.ts +0 -2
  631. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.d.ts.map +0 -1
  632. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.d.ts +0 -5
  633. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.d.ts.map +0 -1
  634. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.js +0 -6
  635. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.enum.js.map +0 -1
  636. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.js +0 -6
  637. package/templates/admin/node_modules/typescript/dist/enums/languageVariant.js.map +0 -1
  638. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.d.ts +0 -2
  639. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.d.ts.map +0 -1
  640. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts +0 -42
  641. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts.map +0 -1
  642. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.js +0 -44
  643. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.enum.js.map +0 -1
  644. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.js +0 -44
  645. package/templates/admin/node_modules/typescript/dist/enums/modifierFlags.js.map +0 -1
  646. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts +0 -2
  647. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts.map +0 -1
  648. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts +0 -7
  649. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts.map +0 -1
  650. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js +0 -9
  651. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js.map +0 -1
  652. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.js +0 -9
  653. package/templates/admin/node_modules/typescript/dist/enums/moduleDetectionKind.js.map +0 -1
  654. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.d.ts +0 -2
  655. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.d.ts.map +0 -1
  656. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.d.ts +0 -17
  657. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.d.ts.map +0 -1
  658. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.js +0 -19
  659. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.enum.js.map +0 -1
  660. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.js +0 -19
  661. package/templates/admin/node_modules/typescript/dist/enums/moduleKind.js.map +0 -1
  662. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts +0 -2
  663. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts.map +0 -1
  664. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts +0 -9
  665. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts.map +0 -1
  666. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js +0 -11
  667. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js.map +0 -1
  668. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.js +0 -11
  669. package/templates/admin/node_modules/typescript/dist/enums/moduleResolutionKind.js.map +0 -1
  670. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.d.ts +0 -2
  671. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.d.ts.map +0 -1
  672. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.d.ts +0 -6
  673. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.d.ts.map +0 -1
  674. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.js +0 -8
  675. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.enum.js.map +0 -1
  676. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.js +0 -8
  677. package/templates/admin/node_modules/typescript/dist/enums/newLineKind.js.map +0 -1
  678. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts +0 -2
  679. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts.map +0 -1
  680. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts +0 -36
  681. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts.map +0 -1
  682. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js +0 -38
  683. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js.map +0 -1
  684. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.js +0 -38
  685. package/templates/admin/node_modules/typescript/dist/enums/nodeBuilderFlags.js.map +0 -1
  686. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.d.ts +0 -2
  687. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.d.ts.map +0 -1
  688. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts +0 -44
  689. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts.map +0 -1
  690. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.js +0 -46
  691. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.enum.js.map +0 -1
  692. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.js +0 -46
  693. package/templates/admin/node_modules/typescript/dist/enums/nodeFlags.js.map +0 -1
  694. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.d.ts +0 -2
  695. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.d.ts.map +0 -1
  696. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.d.ts +0 -50
  697. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.d.ts.map +0 -1
  698. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.js +0 -52
  699. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.enum.js.map +0 -1
  700. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.js +0 -52
  701. package/templates/admin/node_modules/typescript/dist/enums/objectFlags.js.map +0 -1
  702. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts +0 -2
  703. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts.map +0 -1
  704. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts +0 -16
  705. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts.map +0 -1
  706. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js +0 -18
  707. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js.map +0 -1
  708. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.js +0 -18
  709. package/templates/admin/node_modules/typescript/dist/enums/outerExpressionKinds.js.map +0 -1
  710. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts +0 -2
  711. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts.map +0 -1
  712. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts +0 -13
  713. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts.map +0 -1
  714. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js +0 -14
  715. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js.map +0 -1
  716. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.js +0 -14
  717. package/templates/admin/node_modules/typescript/dist/enums/regularExpressionFlags.js.map +0 -1
  718. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.d.ts +0 -2
  719. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.d.ts.map +0 -1
  720. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.d.ts +0 -11
  721. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.d.ts.map +0 -1
  722. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.js +0 -12
  723. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.enum.js.map +0 -1
  724. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.js +0 -12
  725. package/templates/admin/node_modules/typescript/dist/enums/scriptKind.js.map +0 -1
  726. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.d.ts +0 -2
  727. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.d.ts.map +0 -1
  728. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts +0 -17
  729. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts.map +0 -1
  730. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.js +0 -18
  731. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.enum.js.map +0 -1
  732. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.js +0 -18
  733. package/templates/admin/node_modules/typescript/dist/enums/scriptTarget.js.map +0 -1
  734. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.d.ts +0 -2
  735. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.d.ts.map +0 -1
  736. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts +0 -15
  737. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts.map +0 -1
  738. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.js +0 -17
  739. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.enum.js.map +0 -1
  740. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.js +0 -17
  741. package/templates/admin/node_modules/typescript/dist/enums/signatureFlags.js.map +0 -1
  742. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.d.ts +0 -2
  743. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.d.ts.map +0 -1
  744. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.d.ts +0 -5
  745. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.d.ts.map +0 -1
  746. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.js +0 -7
  747. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.enum.js.map +0 -1
  748. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.js +0 -7
  749. package/templates/admin/node_modules/typescript/dist/enums/signatureKind.js.map +0 -1
  750. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.d.ts +0 -2
  751. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.d.ts.map +0 -1
  752. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts +0 -71
  753. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts.map +0 -1
  754. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.js +0 -73
  755. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.enum.js.map +0 -1
  756. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.js +0 -73
  757. package/templates/admin/node_modules/typescript/dist/enums/symbolFlags.js.map +0 -1
  758. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.d.ts +0 -2
  759. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.d.ts.map +0 -1
  760. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts +0 -389
  761. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts.map +0 -1
  762. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.js +0 -391
  763. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.enum.js.map +0 -1
  764. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.js +0 -391
  765. package/templates/admin/node_modules/typescript/dist/enums/syntaxKind.js.map +0 -1
  766. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.d.ts +0 -2
  767. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.d.ts.map +0 -1
  768. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts +0 -30
  769. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts.map +0 -1
  770. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.js +0 -32
  771. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.enum.js.map +0 -1
  772. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.js +0 -32
  773. package/templates/admin/node_modules/typescript/dist/enums/tokenFlags.js.map +0 -1
  774. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.d.ts +0 -2
  775. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.d.ts.map +0 -1
  776. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.d.ts +0 -76
  777. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.d.ts.map +0 -1
  778. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.js +0 -78
  779. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.enum.js.map +0 -1
  780. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.js +0 -78
  781. package/templates/admin/node_modules/typescript/dist/enums/typeFlags.js.map +0 -1
  782. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.d.ts +0 -2
  783. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.d.ts.map +0 -1
  784. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts +0 -7
  785. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts.map +0 -1
  786. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.js +0 -9
  787. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.enum.js.map +0 -1
  788. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.js +0 -9
  789. package/templates/admin/node_modules/typescript/dist/enums/typePredicateKind.js.map +0 -1
  790. package/templates/admin/node_modules/typescript/dist/internal/utils.d.ts +0 -23
  791. package/templates/admin/node_modules/typescript/dist/internal/utils.d.ts.map +0 -1
  792. package/templates/admin/node_modules/typescript/dist/internal/utils.js +0 -25
  793. package/templates/admin/node_modules/typescript/dist/internal/utils.js.map +0 -1
  794. package/templates/admin/node_modules/typescript/lib/getExePath.d.ts +0 -2
  795. package/templates/admin/node_modules/typescript/lib/getExePath.js +0 -70
  796. package/templates/admin/node_modules/typescript/lib/tsc.js +0 -28
  797. package/templates/admin/node_modules/typescript/lib/version.cjs +0 -3
  798. package/templates/admin/node_modules/typescript/lib/version.d.cts +0 -2
  799. package/templates/admin/node_modules/typescript/package.json +0 -87
  800. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/License.txt +0 -11
  801. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/README.md +0 -54
  802. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.d.ts +0 -17
  803. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.js +0 -83
  804. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +0 -22
  805. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.js +0 -210
  806. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.d.ts +0 -14
  807. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.js +0 -87
  808. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +0 -32
  809. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.js +0 -132
  810. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.d.ts +0 -367
  811. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.js +0 -1271
  812. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +0 -9
  813. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.js +0 -16
  814. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +0 -52
  815. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.js +0 -70
  816. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.d.ts +0 -39
  817. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.js +0 -135
  818. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.d.ts +0 -7
  819. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.js +0 -34
  820. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +0 -55
  821. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.js +0 -412
  822. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +0 -18
  823. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +0 -155
  824. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +0 -77
  825. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.js +0 -246
  826. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +0 -60
  827. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.js +0 -157
  828. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.d.ts +0 -369
  829. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.js +0 -436
  830. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.d.ts +0 -74
  831. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.js +0 -23
  832. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +0 -10
  833. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.js +0 -74
  834. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +0 -15
  835. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -77
  836. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.d.ts +0 -58
  837. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.js +0 -289
  838. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.d.ts +0 -12
  839. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.js +0 -163
  840. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/package.json +0 -54
  841. package/templates/admin/node_modules/typescript/vendor/vscode-jsonrpc/typings/thenable.d.ts +0 -5
  842. package/templates/admin/node_modules/vite/LICENSE.md +0 -2322
  843. package/templates/admin/node_modules/vite/README.md +0 -20
  844. package/templates/admin/node_modules/vite/bin/openChrome.js +0 -68
  845. package/templates/admin/node_modules/vite/bin/vite.js +0 -79
  846. package/templates/admin/node_modules/vite/client.d.ts +0 -285
  847. package/templates/admin/node_modules/vite/dist/client/bundledDevClient.mjs +0 -1829
  848. package/templates/admin/node_modules/vite/dist/client/client.mjs +0 -1244
  849. package/templates/admin/node_modules/vite/dist/client/env.mjs +0 -18
  850. package/templates/admin/node_modules/vite/dist/node/chunks/build.js +0 -5494
  851. package/templates/admin/node_modules/vite/dist/node/chunks/dist.js +0 -6732
  852. package/templates/admin/node_modules/vite/dist/node/chunks/lib.js +0 -371
  853. package/templates/admin/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +0 -95
  854. package/templates/admin/node_modules/vite/dist/node/chunks/node.js +0 -37269
  855. package/templates/admin/node_modules/vite/dist/node/chunks/postcss-import.js +0 -465
  856. package/templates/admin/node_modules/vite/dist/node/cli.js +0 -835
  857. package/templates/admin/node_modules/vite/dist/node/index.d.ts +0 -4069
  858. package/templates/admin/node_modules/vite/dist/node/index.js +0 -2
  859. package/templates/admin/node_modules/vite/dist/node/internal.d.ts +0 -2
  860. package/templates/admin/node_modules/vite/dist/node/internal.js +0 -2
  861. package/templates/admin/node_modules/vite/dist/node/module-runner.d.ts +0 -313
  862. package/templates/admin/node_modules/vite/dist/node/module-runner.js +0 -1288
  863. package/templates/admin/node_modules/vite/misc/false.js +0 -1
  864. package/templates/admin/node_modules/vite/misc/true.js +0 -1
  865. package/templates/admin/node_modules/vite/package.json +0 -194
  866. package/templates/admin/node_modules/vite/types/customEvent.d.ts +0 -81
  867. package/templates/admin/node_modules/vite/types/hmrPayload.d.ts +0 -94
  868. package/templates/admin/node_modules/vite/types/hot.d.ts +0 -39
  869. package/templates/admin/node_modules/vite/types/import-meta.d.ts +0 -5
  870. package/templates/admin/node_modules/vite/types/importGlob.d.ts +0 -131
  871. package/templates/admin/node_modules/vite/types/importMeta.d.ts +0 -30
  872. package/templates/admin/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +0 -44
  873. package/templates/admin/node_modules/vite/types/internal/esbuildOptions.d.ts +0 -28
  874. package/templates/admin/node_modules/vite/types/internal/lightningcssOptions.d.ts +0 -18
  875. package/templates/admin/node_modules/vite/types/internal/rollupTypeCompat.d.ts +0 -24
  876. package/templates/admin/node_modules/vite/types/internal/terserOptions.d.ts +0 -11
  877. package/templates/admin/node_modules/vite/types/metadata.d.ts +0 -47
@@ -1,2856 +0,0 @@
1
- //#region src/core/node.js
2
- var e = /* @__PURE__ */ new Set([
3
- "checked",
4
- "disabled",
5
- "readonly",
6
- "selected"
7
- ]), t = /* @__PURE__ */ new Set([
8
- "area",
9
- "base",
10
- "br",
11
- "col",
12
- "embed",
13
- "hr",
14
- "img",
15
- "input",
16
- "link",
17
- "meta",
18
- "param",
19
- "source",
20
- "track",
21
- "wbr"
22
- ]);
23
- function n(e) {
24
- return typeof e == "string" ? document.querySelector(e) : e;
25
- }
26
- function r(e) {
27
- return String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
28
- }
29
- function i(t) {
30
- return e.has(t);
31
- }
32
- function a(e, t, n) {
33
- if (n == null || n === !1) {
34
- if (e.removeAttribute(t), t in e) try {
35
- e[t] = !1;
36
- } catch {}
37
- return;
38
- }
39
- if (n === !0 || i(t)) {
40
- if (e.setAttribute(t, t), t in e) try {
41
- e[t] = !0;
42
- } catch {}
43
- return;
44
- }
45
- if (e.setAttribute(t, String(n)), t in e) try {
46
- e[t] = n;
47
- } catch {}
48
- }
49
- function o(e) {
50
- return Object.entries(e).filter(([, e]) => e != null && e !== "").map(([e, t]) => `${s(e)}:${r(t)}`).join("; ");
51
- }
52
- function s(e) {
53
- return String(e).replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
54
- }
55
- var c = class e {
56
- constructor(e = null) {
57
- this._children = [], this._events = /* @__PURE__ */ new Map(), this._cleanup = [], this._states = {}, this._stateTypes = {}, this._stateHandlers = /* @__PURE__ */ new Map(), this._pendingRemovals = /* @__PURE__ */ new Set(), this._childrenDirty = !1, this._deleted = !1, e !== null && this.setup(e);
58
- }
59
- setup(t) {
60
- return typeof t == "function" ? t(this) : t instanceof e ? this.child(t) : typeof t == "string" || typeof t == "number" ? this.text(t) : t && typeof t == "object" && this._setupObject(t), this;
61
- }
62
- _setupObject(e) {
63
- e.children && this.child(e.children);
64
- }
65
- children() {
66
- return [...this._children];
67
- }
68
- clearChildren() {
69
- return this._children.forEach((e) => {
70
- this._pendingRemovals.add(e);
71
- }), this._children = [], this._childrenDirty = !0, this;
72
- }
73
- child(...e) {
74
- return e.flat(Infinity).forEach((e) => {
75
- if (e == null) return;
76
- let t = f(e);
77
- this._pendingRemovals.delete(t), this._children.push(t), this._childrenDirty = !0;
78
- }), this;
79
- }
80
- text(e) {
81
- return this.child(new l(e));
82
- }
83
- on(e, t, n) {
84
- return this._events.has(e) || this._events.set(e, []), this._events.get(e).push({
85
- handler: t,
86
- options: n
87
- }), this._el && (this._el.addEventListener(e, t, n), this._cleanup.push(() => this._el.removeEventListener(e, t, n))), this;
88
- }
89
- registerStateAttrs(...e) {
90
- return e.forEach((e) => {
91
- if (typeof e == "string") {
92
- this._stateTypes[e] = "boolean";
93
- return;
94
- }
95
- e && typeof e == "object" && Object.entries(e).forEach(([e, t]) => {
96
- this._stateTypes[e] = t || "boolean";
97
- });
98
- }), this;
99
- }
100
- registerStateHandler(e, t) {
101
- return this._stateHandlers.has(e) || this._stateHandlers.set(e, []), this._stateHandlers.get(e).push(t), this;
102
- }
103
- setState(e, t = !0) {
104
- let n = this._states[e];
105
- return this._states[e] = t, (this._stateHandlers.get(e) || []).forEach((e) => e(t, this, n)), this;
106
- }
107
- getState(e) {
108
- return this._states[e];
109
- }
110
- getBooleanState(e) {
111
- return !!this.getState(e);
112
- }
113
- getStringState(e) {
114
- let t = this.getState(e);
115
- return t == null ? "" : String(t);
116
- }
117
- getNumberState(e) {
118
- return Number(this.getState(e) || 0);
119
- }
120
- renderDom() {
121
- return null;
122
- }
123
- commit() {
124
- return this.renderDom();
125
- }
126
- _commitChildren() {
127
- this._pendingRemovals.forEach((e) => e.destroy()), this._pendingRemovals.clear(), this._childrenDirty = !1;
128
- }
129
- bindTo(e) {
130
- let t = n(e), r = this.renderDom();
131
- return t && r && t.appendChild(r), this;
132
- }
133
- destroy() {
134
- return this._deleted = !0, this._cleanup.forEach((e) => e()), this._cleanup = [], this._children.forEach((e) => e.destroy()), this._pendingRemovals.forEach((e) => e.destroy()), this._pendingRemovals.clear(), this._children = [], this._el?.parentNode && this._el.parentNode.removeChild(this._el), this;
135
- }
136
- toHTML() {
137
- return "";
138
- }
139
- hydrateSnapshot() {
140
- return this;
141
- }
142
- }, l = class extends c {
143
- constructor(e = "") {
144
- super(null), this._content = String(e), this._textNode = null;
145
- }
146
- textContent(e) {
147
- return e === void 0 ? this._content : (this._content = String(e), this._textNode && (this._textNode.textContent = this._content), this);
148
- }
149
- renderDom() {
150
- return this._deleted ? null : (this._textNode || (this._textNode = document.createTextNode(this._content), this._el = this._textNode), this._textNode);
151
- }
152
- toHTML() {
153
- return this._deleted ? "" : r(this._content);
154
- }
155
- }, u = class extends c {
156
- constructor(e) {
157
- super(null), this._component = e, this._resolved = null;
158
- }
159
- _resolve() {
160
- if (this._resolved) return this._resolved;
161
- let e = typeof this._component == "function" ? this._component() : this._component.render();
162
- if (!(e instanceof c)) throw TypeError("Component render must return a ViewNode");
163
- return this._resolved = e, e;
164
- }
165
- children() {
166
- return this._resolved ? this._resolved.children() : [];
167
- }
168
- textContent() {
169
- let e = this._resolve();
170
- return typeof e.textContent == "function" ? e.textContent() : "";
171
- }
172
- renderDom() {
173
- if (this._deleted) return null;
174
- let e = this._resolve().renderDom();
175
- return this._el = e, e;
176
- }
177
- toHTML() {
178
- return this._deleted ? "" : this._resolve().toHTML();
179
- }
180
- destroy() {
181
- return this._resolved && this._resolved.destroy(), super.destroy();
182
- }
183
- };
184
- function d(e = "") {
185
- return new l(e);
186
- }
187
- function f(e) {
188
- if (e instanceof c) return e;
189
- if (typeof e == "function" || e && typeof e == "object" && typeof e.render == "function") return new u(e);
190
- if (typeof e == "string" || typeof e == "number") return new l(e);
191
- throw TypeError("ViewNode child must be a ViewNode, component, string, or number");
192
- }
193
- function p(e = null, t = null, n = null) {
194
- return typeof t == "function" && n == null ? {
195
- first: e,
196
- options: null,
197
- callback: t
198
- } : {
199
- first: e,
200
- options: t,
201
- callback: n
202
- };
203
- }
204
- function m(e, t) {
205
- return !t || typeof t != "object" || Array.isArray(t) ? e : (t.attrs && typeof e.attr == "function" && e.attr(t.attrs), t.style && typeof e.styles == "function" && e.styles(t.style), e);
206
- }
207
- var h = class extends c {
208
- constructor(e, t = null) {
209
- super(null), this._tagName = e, this._attrs = {}, this._styles = {}, this._classes = /* @__PURE__ */ new Set(), this._el = null, t !== null && this.setup(t);
210
- }
211
- _setupObject(e) {
212
- Object.entries(e).forEach(([e, t]) => {
213
- if (e === "class" || e === "className") {
214
- this.className(t);
215
- return;
216
- }
217
- if (e === "attrs") {
218
- this.attr(t);
219
- return;
220
- }
221
- if (e === "style") {
222
- this.styles(t);
223
- return;
224
- }
225
- if (e === "children") {
226
- this.child(t);
227
- return;
228
- }
229
- if (e.startsWith("on") && typeof t == "function") {
230
- this.on(e.slice(2).toLowerCase(), t);
231
- return;
232
- }
233
- if (typeof this[e] == "function") {
234
- this[e](t);
235
- return;
236
- }
237
- typeof t != "function" && this.attr(e, t);
238
- });
239
- }
240
- tagName() {
241
- return this._tagName;
242
- }
243
- textContent() {
244
- return this._children.map((e) => typeof e.textContent == "function" ? e.textContent() : "").join("");
245
- }
246
- attr(e, t) {
247
- return t === void 0 && typeof e == "string" ? this._attrs[e] : e && typeof e == "object" ? (Object.entries(e).forEach(([e, t]) => this.attr(e, t)), this) : (t == null || t === !1 ? delete this._attrs[e] : this._attrs[e] = t, this._el && a(this._el, e, t), this);
248
- }
249
- id(e) {
250
- return e === void 0 ? this.attr("id") : this.attr("id", e);
251
- }
252
- name(e) {
253
- return e === void 0 ? this.attr("name") : this.attr("name", e);
254
- }
255
- className(...e) {
256
- return e.length === 0 ? [...this._classes].join(" ") : (e.flat(Infinity).forEach((e) => {
257
- e && String(e).split(/\s+/).filter(Boolean).forEach((e) => this._classes.add(e));
258
- }), this._syncClassName(), this);
259
- }
260
- class(...e) {
261
- return this.className(...e);
262
- }
263
- replaceClassName(e, t, n = !1) {
264
- return !e || !t || e === t ? this : this._classes.has(e) ? (this._classes.delete(e), this.className(t)) : n ? this.className(t) : this;
265
- }
266
- style(e, t) {
267
- return t === void 0 && typeof e == "string" ? this._styles[e] : e && typeof e == "object" ? this.styles(e) : (t == null || t === "" ? delete this._styles[e] : this._styles[e] = t, this._el && (this._el.style[e] = t || ""), this);
268
- }
269
- styles(e) {
270
- return Object.entries(e || {}).forEach(([e, t]) => this.style(e, t)), this;
271
- }
272
- child(...e) {
273
- return e.flat(Infinity).forEach((e) => {
274
- if (e == null) return;
275
- let t = f(e);
276
- if (this._pendingRemovals.delete(t), this._children.push(t), this._childrenDirty = !0, this._el) {
277
- let e = t.renderDom();
278
- e && e.parentNode !== this._el && this._el.appendChild(e);
279
- }
280
- }), this;
281
- }
282
- renderDom() {
283
- return this._deleted ? null : (this._el || (this._el = document.createElement(this._tagName), this._applySnapshotToElement()), this._commitChildren(), this._children.forEach((e) => {
284
- let t = e.renderDom();
285
- t && t.parentNode !== this._el && this._el.appendChild(t);
286
- }), this._el);
287
- }
288
- toHTML() {
289
- if (this._deleted) return "";
290
- let e = this._serializeAttributes(), n = e ? `<${this._tagName} ${e}>` : `<${this._tagName}>`;
291
- return t.has(this._tagName) ? n : `${n}${this._children.map((e) => e.toHTML()).join("")}</${this._tagName}>`;
292
- }
293
- _applyBindingsToElement() {
294
- Object.entries(this._attrs).forEach(([e, t]) => a(this._el, e, t)), this._syncClassName(), Object.entries(this._styles).forEach(([e, t]) => {
295
- this._el.style[e] = t;
296
- }), this._events.forEach((e, t) => {
297
- e.forEach(({ handler: e, options: n }) => {
298
- this._el.addEventListener(t, e, n), this._cleanup.push(() => this._el.removeEventListener(t, e, n));
299
- });
300
- });
301
- }
302
- _applySnapshotToElement() {
303
- this._applyBindingsToElement(), this._children.forEach((e) => {
304
- let t = e.renderDom();
305
- t && this._el.appendChild(t);
306
- });
307
- }
308
- _syncClassName() {
309
- let e = [...this._classes].join(" ");
310
- e ? this._attrs.class = e : delete this._attrs.class, this._el && (e ? this._el.className = e : this._el.removeAttribute("class"));
311
- }
312
- _serializeAttributes() {
313
- let e = { ...this._attrs }, t = this._serializeStyles();
314
- return t && (e.style = e.style ? `${e.style}; ${t}` : t), Object.entries(e).filter(([, e]) => e != null && e !== !1).map(([e, t]) => t === !0 || i(e) ? `${e}="${e}"` : `${e}="${r(t)}"`).join(" ");
315
- }
316
- _serializeStyles() {
317
- return o(this._styles);
318
- }
319
- };
320
- function g(e, t = h) {
321
- return function(n = null, r = null, i = null) {
322
- let a = p(n, r, i), o = new t(e, a.first);
323
- return m(o, a.options), typeof a.callback == "function" && a.callback(o), o;
324
- };
325
- }
326
- function _(e, t, n = {}) {
327
- let { override: r = !1 } = n;
328
- Object.entries(t).forEach(([t, n]) => {
329
- !r && e.prototype[t] || (e.prototype[t] = function(...e) {
330
- return this.child(n(...e));
331
- });
332
- });
333
- }
334
- //#endregion
335
- //#region src/html/index.js
336
- var v = class extends h {}, y = [
337
- "a",
338
- "abbr",
339
- "address",
340
- "area",
341
- "article",
342
- "aside",
343
- "audio",
344
- "b",
345
- "base",
346
- "bdi",
347
- "bdo",
348
- "blockquote",
349
- "body",
350
- "br",
351
- "button",
352
- "canvas",
353
- "caption",
354
- "cite",
355
- "code",
356
- "col",
357
- "colgroup",
358
- "data",
359
- "datalist",
360
- "dd",
361
- "del",
362
- "details",
363
- "dfn",
364
- "dialog",
365
- "div",
366
- "dl",
367
- "dt",
368
- "em",
369
- "embed",
370
- "fieldset",
371
- "figcaption",
372
- "figure",
373
- "footer",
374
- "form",
375
- "h1",
376
- "h2",
377
- "h3",
378
- "h4",
379
- "h5",
380
- "h6",
381
- "head",
382
- "header",
383
- "hgroup",
384
- "hr",
385
- "html",
386
- "i",
387
- "iframe",
388
- "img",
389
- "input",
390
- "ins",
391
- "kbd",
392
- "label",
393
- "legend",
394
- "li",
395
- "link",
396
- "main",
397
- "map",
398
- "mark",
399
- "menu",
400
- "meta",
401
- "meter",
402
- "nav",
403
- "noscript",
404
- "object",
405
- "ol",
406
- "optgroup",
407
- "option",
408
- "output",
409
- "p",
410
- "picture",
411
- "pre",
412
- "progress",
413
- "q",
414
- "rp",
415
- "rt",
416
- "ruby",
417
- "s",
418
- "samp",
419
- "script",
420
- "search",
421
- "section",
422
- "select",
423
- "selectedcontent",
424
- "slot",
425
- "small",
426
- "source",
427
- "span",
428
- "strong",
429
- {
430
- name: "style",
431
- tagName: "style",
432
- aliases: ["styleTag"]
433
- },
434
- "sub",
435
- "summary",
436
- "sup",
437
- "table",
438
- "tbody",
439
- "td",
440
- "template",
441
- "textarea",
442
- "tfoot",
443
- "th",
444
- "thead",
445
- "time",
446
- "title",
447
- "tr",
448
- "track",
449
- "u",
450
- "ul",
451
- {
452
- name: "varTag",
453
- tagName: "var"
454
- },
455
- "video",
456
- "wbr"
457
- ];
458
- function b() {
459
- return y.reduce((e, t) => {
460
- let { aliases: n = [], name: r, tagName: i } = tn(t), a = g(i, v);
461
- return e[r] = a, n.forEach((t) => {
462
- e[t] = a;
463
- }), e;
464
- }, {});
465
- }
466
- var x = b();
467
- _(v, x);
468
- var { a: S, abbr: ee, address: te, area: ne, article: C, aside: re, audio: w, b: T, base: ie, bdi: ae, bdo: E, blockquote: oe, body: se, br: ce, button: le, canvas: ue, caption: de, cite: fe, code: pe, col: me, colgroup: he, data: ge, datalist: _e, dd: ve, del: ye, details: be, dfn: xe, dialog: Se, div: Ce, dl: we, dt: Te, em: Ee, embed: De, fieldset: Oe, figcaption: ke, figure: Ae, footer: je, form: Me, h1: Ne, h2: Pe, h3: Fe, h4: Ie, h5: Le, h6: Re, head: ze, header: Be, hgroup: Ve, hr: He, html: Ue, i: We, iframe: Ge, img: Ke, input: qe, ins: Je, kbd: Ye, label: Xe, legend: Ze, li: Qe, link: $e, main: et, map: tt, mark: nt, menu: rt, meta: it, meter: at, nav: ot, noscript: st, object: ct, ol: lt, optgroup: ut, option: dt, output: ft, p: pt, picture: mt, pre: ht, progress: gt, q: _t, rp: vt, rt: yt, ruby: bt, s: xt, samp: St, script: Ct, search: wt, section: Tt, select: Et, selectedcontent: Dt, slot: Ot, small: kt, source: At, span: jt, strong: Mt, style: Nt, styleTag: Pt, sub: Ft, summary: It, sup: Lt, table: Rt, tbody: zt, td: Bt, template: Vt, textarea: Ht, tfoot: Ut, th: Wt, thead: Gt, time: Kt, title: qt, tr: Jt, track: Yt, u: Xt, ul: Zt, varTag: Qt, video: $t, wbr: en } = x;
469
- function tn(e) {
470
- return typeof e == "string" ? {
471
- name: e,
472
- tagName: e
473
- } : e;
474
- }
475
- //#endregion
476
- //#region src/core/document-events.js
477
- function D(e, t, n = void 0) {
478
- return typeof document > "u" ? () => {} : (document.addEventListener(e, t, n), () => {
479
- document.removeEventListener(e, t, n);
480
- });
481
- }
482
- function nn(e, t, n = void 0) {
483
- typeof document > "u" || document.removeEventListener(e, t, n);
484
- }
485
- function O(e, t, n = void 0) {
486
- return typeof window > "u" ? () => {} : (window.addEventListener(e, t, n), () => {
487
- window.removeEventListener(e, t, n);
488
- });
489
- }
490
- function rn(e, t = null) {
491
- if (typeof document > "u") return null;
492
- if (t) {
493
- let e = document.querySelector(`[${t}]`);
494
- if (e) return e;
495
- }
496
- let n = document.createElement("style");
497
- return t && n.setAttribute(t, ""), n.textContent = e, document.head?.appendChild(n), n;
498
- }
499
- //#endregion
500
- //#region src/svg/index.js
501
- var an = "http://www.w3.org/2000/svg", on = /* @__PURE__ */ new Set([
502
- "desc",
503
- "metadata",
504
- "text",
505
- "textPath",
506
- "title",
507
- "tspan"
508
- ]), sn = class e extends h {
509
- setup(e) {
510
- return typeof e == "string" || typeof e == "number" ? this.child(e) : super.setup(e);
511
- }
512
- text(...e) {
513
- if (on.has(this._tagName)) {
514
- let [t, n] = e;
515
- return e.length > 0 && this.child(t), n != null && this.setup(n), this;
516
- }
517
- return this._svgChild("text", ...e);
518
- }
519
- style(...e) {
520
- let [t, n] = e;
521
- return this._tagName === "style" && e.length <= 1 ? (e.length === 1 && this.child(t), this) : e.length <= 1 && cn(t) ? this._svgChild("style", t) : super.style(t, n);
522
- }
523
- renderDom() {
524
- return this._deleted ? null : (this._el || (this._el = document.createElementNS(an, this._tagName), this._applySnapshotToElement()), this._el);
525
- }
526
- _syncClassName() {
527
- let e = [...this._classes].join(" ");
528
- e ? this._attrs.class = e : delete this._attrs.class, this._el && (e ? this._el.setAttribute("class", e) : this._el.removeAttribute("class"));
529
- }
530
- _svgChild(t, ...n) {
531
- let r = new e(t);
532
- return n.forEach((e) => {
533
- e != null && r.setup(e);
534
- }), this.child(r);
535
- }
536
- };
537
- function cn(e) {
538
- return e == null || typeof e == "function" || typeof e == "string" || typeof e == "number" || Array.isArray(e);
539
- }
540
- var ln = /* @__PURE__ */ "animate.animateMotion.animateTransform.circle.clipPath.defs.desc.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.foreignObject.g.image.line.linearGradient.marker.mask.metadata.mpath.path.pattern.polygon.polyline.radialGradient.rect.set.stop.a.script.style.switch.text.title.symbol.textPath.tspan.use.view".split(".");
541
- function un(e) {
542
- return function(...t) {
543
- let n = new sn(e);
544
- return e === "svg" && n.style("display", "block"), t.forEach((e) => {
545
- e != null && n.setup(e);
546
- }), n;
547
- };
548
- }
549
- function dn() {
550
- return ln.reduce((e, t) => {
551
- let { aliases: n = [], name: r, tagName: i } = mn(t), a = un(i);
552
- return e[r] = a, n.forEach((t) => {
553
- e[t] = a;
554
- }), e;
555
- }, {});
556
- }
557
- var fn = un("svg"), pn = dn();
558
- _(v, { svg: fn }), _(sn, {
559
- svg: fn,
560
- ...pn
561
- });
562
- function mn(e) {
563
- return typeof e == "string" ? {
564
- name: e,
565
- tagName: e
566
- } : e;
567
- }
568
- //#endregion
569
- //#region src/svg/icons.js
570
- function hn() {
571
- return fn((e) => {
572
- e.className("yoya-icon").attr({
573
- "aria-hidden": "true",
574
- fill: "none",
575
- stroke: "currentColor",
576
- "stroke-linecap": "round",
577
- "stroke-linejoin": "round",
578
- "stroke-width": "2",
579
- viewBox: "0 0 24 24"
580
- }).styles({
581
- height: "24px",
582
- width: "24px"
583
- }), e.path({ d: "M4 6h16" }), e.path({ d: "M4 12h16" }), e.path({ d: "M4 18h16" });
584
- });
585
- }
586
- //#endregion
587
- //#region src/components/shared.js
588
- var gn = "yoya-component";
589
- function k(e, t) {
590
- return `var(--yoya-${e}, ${t})`;
591
- }
592
- function A(e, t, n = "1px") {
593
- return `${n} solid ${k(e, t)}`;
594
- }
595
- function j(e = null, t = null, n = null) {
596
- return p(e, t, n);
597
- }
598
- function _n(e, t) {
599
- return typeof e.attr == "function" || typeof e.styles == "function" ? m(e, t) : (typeof e.render == "function" && m(e.render(), t), e);
600
- }
601
- function M(e, t = null, n = null) {
602
- return _n(e, t), typeof n == "function" && n(e), e;
603
- }
604
- function vn(e, t = null, n = null, r = null) {
605
- let { first: i, options: a, callback: o } = j(t, n, r);
606
- return M(i instanceof e ? i : new e(i), a, o);
607
- }
608
- function yn(e, t) {
609
- return t == null ? e : typeof t == "function" ? (t(e), e) : t instanceof c || Array.isArray(t) || typeof t == "string" || typeof t == "number" ? (e.child(t), e) : (xn(t) && e.setup(t), e);
610
- }
611
- function bn(e) {
612
- return e == null ? [] : Array.isArray(e) ? e : [e];
613
- }
614
- function N(e, t) {
615
- return e.children().forEach((e) => e.destroy()), e._children = [], e._el && e._el.replaceChildren(), t.length > 0 && e.child(t), e;
616
- }
617
- function xn(e) {
618
- if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
619
- let t = Object.getPrototypeOf(e);
620
- return t === Object.prototype || t === null;
621
- }
622
- //#endregion
623
- //#region src/layout/split-panel.js
624
- var Sn = class extends v {
625
- constructor(e = null, t = null, n = null) {
626
- super("div", null), this.className(gn, "yoya-vsplit-panel"), this.styles({
627
- boxSizing: "border-box",
628
- display: "flex",
629
- minHeight: "0",
630
- minWidth: "0",
631
- overflow: "hidden",
632
- width: "100%"
633
- }), this._direction = "horizontal", this._firstSize = "50%", this._minSize = 40, this._drag = null, this._dragMove = null, this._dragUp = null, this._first = new v("div").className("yoya-vsplit-panel-first").attr("data-vsplit-first", "true").styles({
634
- boxSizing: "border-box",
635
- minHeight: "0",
636
- minWidth: "0",
637
- overflow: "auto"
638
- }), this._second = new v("div").className("yoya-vsplit-panel-second").attr("data-vsplit-second", "true").styles({
639
- boxSizing: "border-box",
640
- flex: "1 1 auto",
641
- minHeight: "0",
642
- minWidth: "0",
643
- overflow: "auto"
644
- }), this._divider = new v("div").className("yoya-vsplit-panel-divider").attr({
645
- "aria-orientation": "horizontal",
646
- "data-vsplit-divider": "true",
647
- role: "separator",
648
- tabindex: "0",
649
- title: "拖拽调整面板大小,双击恢复 50%"
650
- }).styles({
651
- background: "transparent",
652
- boxSizing: "border-box",
653
- flex: "0 0 auto"
654
- }).on("mousedown", (e) => this._startDrag(e)).on("dblclick", () => this.reset()).on("keydown", (e) => this._handleKeydown(e)).on("mouseenter", () => this._hoverDivider(!0)).on("mouseleave", () => this._hoverDivider(!1)), this.child(this._first, this._divider, this._second), this._sync(), this._setupSplitPanel(e), M(this, t, n);
655
- }
656
- direction(e) {
657
- return e === void 0 ? this._direction : (this._direction = e === "vertical" ? "vertical" : "horizontal", this._sync(), this);
658
- }
659
- size(e) {
660
- return e === void 0 ? this._firstSize : (this._firstSize = wn(e), this._sync(), this);
661
- }
662
- minSize(e) {
663
- if (e === void 0) return this._minSize;
664
- let t = Number(e);
665
- return this._minSize = Number.isFinite(t) ? Math.max(0, t) : this._minSize, this;
666
- }
667
- reset() {
668
- return this.size("50%");
669
- }
670
- first(e) {
671
- return N(this._first, []), typeof e == "function" ? e(this._first) : N(this._first, bn(e)), this;
672
- }
673
- second(e) {
674
- return N(this._second, []), typeof e == "function" ? e(this._second) : N(this._second, bn(e)), this;
675
- }
676
- destroy() {
677
- return this._endDrag(), super.destroy();
678
- }
679
- _sync() {
680
- let e = this._direction === "horizontal";
681
- return this.style("flexDirection", e ? "row" : "column"), this._first.styles({
682
- flex: "0 0 auto",
683
- height: e ? "100%" : this._firstSize,
684
- width: e ? this._firstSize : "100%"
685
- }), this._divider.styles(e ? {
686
- cursor: "col-resize",
687
- height: "100%",
688
- width: "6px"
689
- } : {
690
- cursor: "row-resize",
691
- height: "6px",
692
- width: "100%"
693
- }), this._divider.attr("aria-orientation", e ? "horizontal" : "vertical"), this;
694
- }
695
- _hoverDivider(e) {
696
- this._divider.style("background", e ? k("color-primary-subtle", "#eff6ff") : "var(--yoya-color-border-faint, #efefef)");
697
- }
698
- _startDrag(e) {
699
- if (e.button !== 0 || !this._el) return;
700
- e.preventDefault();
701
- let t = this._direction === "horizontal", n = this._first._el.getBoundingClientRect(), r = t ? e.clientX : e.clientY, i = t ? n.width : n.height, a = t ? this._el.offsetWidth : this._el.offsetHeight;
702
- this._drag = {
703
- containerSize: a,
704
- start: r,
705
- startSize: i
706
- }, this._dragMove = (e) => this._onDrag(e), this._dragUp = () => this._endDrag(), this._dragUnbindMove = D("mousemove", this._dragMove), this._dragUnbindUp = D("mouseup", this._dragUp);
707
- }
708
- _onDrag(e) {
709
- if (!this._drag) return;
710
- let t = (this._direction === "horizontal" ? e.clientX : e.clientY) - this._drag.start, n = Tn(this._drag.startSize + t, this._minSize, this._drag.containerSize - this._minSize);
711
- this._firstSize = `${Math.round(n)}px`, this._sync();
712
- }
713
- _handleKeydown(e) {
714
- let t = e.key === "ArrowLeft" || e.key === "ArrowUp" ? -16 : e.key === "ArrowRight" || e.key === "ArrowDown" ? 16 : 0;
715
- if (!t || !this._el) return;
716
- e.preventDefault();
717
- let n = this._direction === "horizontal" ? this._el.offsetWidth : this._el.offsetHeight, r = Tn((Number.parseFloat(this._firstSize) || 0) + t, this._minSize, n - this._minSize);
718
- this._firstSize = `${Math.round(r)}px`, this._sync();
719
- }
720
- _endDrag() {
721
- this._dragMove && (this._dragUnbindMove?.(), this._dragMove = null, this._dragUnbindMove = null), this._dragUp && (this._dragUnbindUp?.(), this._dragUp = null, this._dragUnbindUp = null), this._drag = null;
722
- }
723
- _setupSplitPanel(e) {
724
- if (e != null) {
725
- if (typeof e == "function") {
726
- e(this);
727
- return;
728
- }
729
- if (xn(e)) {
730
- let { direction: t, first: n, minSize: r, second: i, size: a, ...o } = e;
731
- Object.keys(o).length > 0 && this.setup(o), t !== void 0 && this.direction(t), a !== void 0 && this.size(a), r !== void 0 && this.minSize(r), n !== void 0 && this.first(n), i !== void 0 && this.second(i);
732
- return;
733
- }
734
- this.first(e);
735
- }
736
- }
737
- };
738
- function Cn(e = null, t = null, n = null) {
739
- return vn(Sn, e, t, n);
740
- }
741
- _(v, { vSplitPanel: Cn });
742
- function wn(e) {
743
- return typeof e == "number" ? `${e}px` : e;
744
- }
745
- function Tn(e, t, n) {
746
- return Number.isNaN(e) ? t : Math.min(Math.max(e, t), Math.max(n, t));
747
- }
748
- //#endregion
749
- //#region src/layout/masonry.js
750
- var En = class extends v {
751
- constructor(e = null) {
752
- super("div", null), this._columns = 3, this._gap = 16, this._minColumnWidth = null, this.className(gn, "yoya-vmasonry"), this.attr({ "data-columns": "3" }), this.styles({
753
- boxSizing: "border-box",
754
- columnCount: "3",
755
- columnGap: "16px",
756
- width: "100%"
757
- }), this._setupMasonry(e), this._syncLayout();
758
- }
759
- columns(e) {
760
- if (e === void 0) return this._columns;
761
- let t = Math.floor(Number(e));
762
- return this._columns = Number.isFinite(t) && t >= 1 ? t : 3, this.attr("data-columns", String(this._columns)), this._syncLayout(), this;
763
- }
764
- gap(e) {
765
- if (e === void 0) return this._gap;
766
- let t = Number(e);
767
- return this._gap = Number.isFinite(t) && t >= 0 ? t : 16, this._syncLayout(), this;
768
- }
769
- minColumnWidth(e) {
770
- if (e === void 0) return this._minColumnWidth;
771
- let t = Number(e);
772
- return this._minColumnWidth = Number.isFinite(t) && t > 0 ? t : null, this._syncLayout(), this;
773
- }
774
- _syncLayout() {
775
- this._minColumnWidth ? (this.style("columnCount", "auto"), this.style("columnWidth", `${this._minColumnWidth}px`), this.attr("data-column-mode", "responsive")) : (this.style("columnCount", String(this._columns)), this.style("columnWidth", "auto"), this.attr("data-column-mode", null)), this.style("columnGap", `${this._gap}px`), this.style("--yoya-masonry-gap", `${this._gap}px`);
776
- }
777
- _setupMasonry(e) {
778
- if (e != null) {
779
- if (typeof e == "function") {
780
- e(this);
781
- return;
782
- }
783
- if (xn(e)) {
784
- let { columns: t, gap: n, minColumnWidth: r, ...i } = e;
785
- Object.keys(i).length > 0 && this.setup(i), t !== void 0 && this.columns(t), n !== void 0 && this.gap(n), r !== void 0 && this.minColumnWidth(r);
786
- }
787
- }
788
- }
789
- };
790
- function Dn(e = null, t = null, n = null) {
791
- return vn(En, e, t, n);
792
- }
793
- //#endregion
794
- //#region src/layout/theme-shell.js
795
- var On = class extends v {
796
- constructor(e = null) {
797
- super("div", null), this.className("yoya-component", "yoya-vtheme-shell"), this.styles({
798
- background: k("color-surface", "#ffffff"),
799
- border: `1px solid ${k("color-border", "#d8dee8")}`,
800
- borderRadius: k("radius-md", "6px"),
801
- boxSizing: "border-box",
802
- color: k("color-text", "#172033"),
803
- minWidth: "0"
804
- }), yn(this, e);
805
- }
806
- _requireSingleShellChild() {
807
- let e = this.children();
808
- if (e.length !== 1) throw TypeError("vThemeShell virtual mode requires exactly one child");
809
- return e[0];
810
- }
811
- _virtualTarget() {
812
- let e = this._requireSingleShellChild();
813
- return typeof e._resolve == "function" ? e._resolve() : e;
814
- }
815
- _syncShellStyles(e) {
816
- !e || typeof e.styles != "function" || e.styles({
817
- background: this._styles.background,
818
- border: this._styles.border,
819
- borderColor: this._styles.borderColor,
820
- borderRadius: this._styles.borderRadius,
821
- boxSizing: this._styles.boxSizing,
822
- color: this._styles.color,
823
- minWidth: this._styles.minWidth,
824
- overflow: this._styles.overflow
825
- });
826
- }
827
- virtual(e = !0) {
828
- return this._virtualMode = !!e, this;
829
- }
830
- renderDom() {
831
- if (this._deleted) return null;
832
- if (this._virtualMode) {
833
- let e = this._requireSingleShellChild(), t = this._virtualTarget();
834
- return this._syncShellStyles(t), e.renderDom();
835
- }
836
- return super.renderDom();
837
- }
838
- toHTML() {
839
- return this._deleted ? "" : this._virtualMode ? this._requireSingleShellChild().toHTML() : super.toHTML();
840
- }
841
- background(e) {
842
- return e === void 0 ? this._styles.background : e === null ? this : (this._styles.background = String(e), this._el && (this._el.style.background = String(e)), this);
843
- }
844
- backgroundOpacity(e) {
845
- let t = this.background() || k("color-surface", "#ffffff"), n = Math.max(0, Math.min(1, Number(e) || 0));
846
- return this.background(`color-mix(in srgb, ${t} ${Math.round(n * 100)}%, transparent)`);
847
- }
848
- radius(e) {
849
- return e === void 0 ? this._styles.borderRadius : this.styles({ borderRadius: e === null ? void 0 : String(e) });
850
- }
851
- border(e) {
852
- return e === void 0 ? this._styles.border : this.styles({ border: e === null ? void 0 : String(e) });
853
- }
854
- borderColor(e) {
855
- return e === void 0 ? this._styles.borderColor : this.styles({ borderColor: e === null ? void 0 : String(e) });
856
- }
857
- scrollable(e = !0) {
858
- return this.styles({ overflow: e ? "auto" : "visible" });
859
- }
860
- };
861
- function kn(e = null, t = null, n = null) {
862
- return vn(On, e, t, n);
863
- }
864
- _(h, { vThemeShell: kn });
865
- //#endregion
866
- //#region src/layout/index.js
867
- var An = /* @__PURE__ */ new Set(/* @__PURE__ */ "align.areas.asideWidth.autoFlow.breakpoint.columns.direction.drawer.gutter.offset.pull.push.span.xs.sm.md.lg.xl.gap.justify.maxWidth.minColumnWidth.mobileDirection.mobileGap.orientation.padding.paddingInline.rows.safeArea.size.breakpoints.viewport.wrap".split(".")), jn = /* @__PURE__ */ new Set(["height", "width"]);
868
- function Mn(e = null, t = null, n = null) {
869
- return P("flex", { display: "flex" }, e, I, t, n);
870
- }
871
- function Nn(e = null, t = null, n = null) {
872
- return P("stack", {
873
- display: "flex",
874
- flexDirection: "column"
875
- }, e, I, t, n);
876
- }
877
- function Pn(e = null, t = null, n = null) {
878
- return P("vstack", {
879
- display: "flex",
880
- flexDirection: "column"
881
- }, e, I, t, n);
882
- }
883
- function Fn(e = null, t = null, n = null) {
884
- return P("hstack", {
885
- display: "flex",
886
- flexDirection: "row"
887
- }, e, I, t, n);
888
- }
889
- function In(e = null, t = null, n = null) {
890
- return P("center", {
891
- display: "flex",
892
- alignItems: "center",
893
- justifyContent: "center"
894
- }, e, I, t, n);
895
- }
896
- function Ln(e = null, t = null, n = null) {
897
- let r = j(e, t, n), i = new v("div");
898
- i.className("yoya-layout", "yoya-vrow"), i.styles({
899
- boxSizing: "border-box",
900
- display: "flex",
901
- flexWrap: "wrap",
902
- width: "100%"
903
- }), i._gutter = null, i.gutter = (e) => e === void 0 ? i._gutter : (i._gutter = B(e), cr(i), i), i.justify = (e) => e === void 0 ? i.style("justifyContent") : (i.style("justifyContent", e), i), i.align = (e) => e === void 0 ? i.style("alignItems") : (i.style("alignItems", e), i), i.wrap = (e) => e === void 0 ? i.style("flexWrap") : (i.style("flexWrap", e === !1 ? "nowrap" : V(e ?? !0)), i);
904
- let a = i.child.bind(i);
905
- return i.child = (...e) => (a(...e), cr(i), i), F(i, r.first, lr), cr(i), M(i, r.options, r.callback);
906
- }
907
- function Rn(e = null, t = null, n = null) {
908
- let r = j(e, t, n), i = new v("div");
909
- return i.className("yoya-layout", "yoya-vcol"), i.styles({
910
- boxSizing: "border-box",
911
- minWidth: "0"
912
- }), i._baseCol = L({}), i._responsiveCols = [], i._gutter = null, i.refresh = i._refreshCol = () => {
913
- let e = typeof window > "u" ? null : window.innerWidth, t = (e === null ? null : i._responsiveCols.filter((t) => e >= t.minWidth).at(-1))?.props ?? i._baseCol;
914
- return i.style("boxSizing", "border-box"), i.style("flex", "0 0 auto"), i.style("left", t.push ? `${z(t.push)}%` : null), i.style("marginLeft", t.offset ? `${z(t.offset)}%` : null), i.style("paddingLeft", i._gutter ? mr(i._gutter) : null), i.style("paddingRight", i._gutter ? mr(i._gutter) : null), i.style("position", t.push || t.pull ? "relative" : null), i.style("right", t.pull ? `${z(t.pull)}%` : null), i.style("width", `${z(t.span)}%`), i;
915
- }, i.span = (e) => e === void 0 ? i._baseCol.span : (i._baseCol.span = R(e), i._refreshCol(), i), i.offset = (e) => e === void 0 ? i._baseCol.offset : (i._baseCol.offset = R(e), i._refreshCol(), i), i.push = (e) => e === void 0 ? i._baseCol.push : (i._baseCol.push = R(e), i._refreshCol(), i), i.pull = (e) => e === void 0 ? i._baseCol.pull : (i._baseCol.pull = R(e), i._refreshCol(), i), i.gutter = (e) => e === void 0 ? i._gutter : (i._gutter = B(e), i._refreshCol(), i), F(i, r.first, ur), i._refreshCol(), i._responsiveCols.length && (i._colResize = () => i._refreshCol(), i._colResizeUnbind = O("resize", i._colResize), hr(i)), M(i, r.options, r.callback);
916
- }
917
- function zn(e = null, t = null, n = null) {
918
- return P("grid", { display: "grid" }, e, nr, t, n);
919
- }
920
- function Bn(e = null, t = null, n = null) {
921
- let r = j(e, t, n), i = P("responsive-grid", { display: "grid" }, r.first, rr, r.options, r.callback), a = U(r.first) ? r.first : {};
922
- return i._responsiveGridBreakpoints = Or(a.breakpoints), i._responsiveGridMinColumnWidth = Dr(a.minColumnWidth), i._responsiveGridRefresh = () => {
923
- let e = typeof window > "u" ? null : window.innerWidth, t = e === null ? null : i._responsiveGridBreakpoints.filter((t) => e >= t.minWidth).at(-1);
924
- return i.style("gridTemplateColumns", t ? `repeat(${t.columns}, minmax(0, 1fr))` : `repeat(auto-fit, minmax(${i._responsiveGridMinColumnWidth}, 1fr))`), i;
925
- }, i.refresh = i._responsiveGridRefresh, i.minColumnWidth = (e) => e === void 0 ? i._responsiveGridMinColumnWidth : (i._responsiveGridMinColumnWidth = Dr(e), i._responsiveGridRefresh(), i), i.breakpoints = (e) => e === void 0 ? i._responsiveGridBreakpoints : (i._responsiveGridBreakpoints = Or(e), i._responsiveGridBreakpoints.length && !i._responsiveGridResize && !i._responsiveGridResizeUnbind && (i._responsiveGridResize = () => i._responsiveGridRefresh(), i._responsiveGridResizeUnbind = O("resize", i._responsiveGridResize), Un(i)), i._responsiveGridRefresh(), i), i._responsiveGridRefresh(), i._responsiveGridBreakpoints.length && (i._responsiveGridResize = () => i._responsiveGridRefresh(), i._responsiveGridResizeUnbind = O("resize", i._responsiveGridResize), Un(i)), i;
926
- }
927
- function Vn(e = null, t = null, n = null) {
928
- let r = j(e, t, n), i = new v("div"), a = new v("div").className("yoya-vbody-content"), o = i.child.bind(i);
929
- return i.className("yoya-layout", "yoya-vbody"), i.attr("data-page-body", "true"), i.styles({
930
- background: k("color-bg", "#f9f9f9"),
931
- boxSizing: "border-box",
932
- color: k("color-text", "#0d0d0d"),
933
- fontFamily: k("font-family", "ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif"),
934
- fontSize: k("font-size", "14px"),
935
- lineHeight: k("line-height", "1.5"),
936
- minHeight: "100%",
937
- padding: "clamp(16px, 3vw, 32px)",
938
- width: "100%"
939
- }), a.styles({
940
- display: "grid",
941
- gap: "24px",
942
- marginLeft: "auto",
943
- marginRight: "auto",
944
- maxWidth: "1120px",
945
- width: "100%"
946
- }), o(a), i.background = (e) => e === void 0 ? i.style("background") : (i.style("background", e), i), i.maxWidth = (e) => e === void 0 ? a.style("maxWidth") : (a.style("maxWidth", B(e)), i), i.padding = (e) => e === void 0 ? i.style("padding") : (i.style("padding", B(e)), i), i.gap = (e) => e === void 0 ? a.style("gap") : (a.style("gap", B(e)), i), i.minHeight = (e) => e === void 0 ? i.style("minHeight") : (i.style("minHeight", B(e)), i), i.content = (e) => e === void 0 ? a : (typeof e == "function" ? e(a) : a.child(e), i), i.child = (...e) => (a.child(...e), i), ir(i, r.first), M(i, r.options, r.callback);
947
- }
948
- function Hn(e = null, t = null) {
949
- let n = Vn(e);
950
- return typeof document < "u" && n.bindTo(t || document.body), n;
951
- }
952
- function Un(e) {
953
- if (e._responsiveGridDestroyWrapped) return;
954
- e._responsiveGridDestroyWrapped = !0;
955
- let t = e.destroy.bind(e);
956
- e.destroy = () => (e._responsiveGridResizeUnbind?.(), t());
957
- }
958
- function Wn(e = null, t = null, n = null) {
959
- return P("container", {
960
- width: "100%",
961
- maxWidth: "1120px",
962
- marginLeft: "auto",
963
- marginRight: "auto",
964
- paddingLeft: "16px",
965
- paddingRight: "16px"
966
- }, e, ar, t, n);
967
- }
968
- function Gn(e = null, t = null, n = null) {
969
- let r = j(e, t, n), i = new v("div");
970
- i.className("yoya-layout", "yoya-vcontainer"), i.styles({
971
- boxSizing: "border-box",
972
- display: "flex",
973
- minWidth: "0",
974
- width: "100%"
975
- }), i._direction = null, i._viewport = !1, i._fill = !1, i._scrollable = !1, i.viewport = (e = !0) => e === void 0 ? i._viewport : (i._viewport = !!e, i.styles({
976
- height: i._viewport ? "100dvh" : null,
977
- minHeight: i._viewport ? "100vh" : null,
978
- overflow: i._viewport ? "hidden" : null
979
- }), i), i.fill = (e = !0) => e === void 0 ? i._fill : (i._fill = !!e, i.styles({
980
- flex: i._fill ? "1 1 auto" : null,
981
- height: i._fill ? "auto" : null,
982
- minHeight: i._fill ? "0" : null,
983
- minWidth: i._fill ? "0" : null,
984
- overflow: i._fill ? "hidden" : null
985
- }), i), i.scrollable = (e = !0) => e === void 0 ? i._scrollable : (i._scrollable = !!e, i.styles({
986
- height: i._scrollable ? "100%" : null,
987
- minHeight: i._scrollable ? "0" : null,
988
- overflow: i._scrollable ? "auto" : null,
989
- overscrollBehavior: i._scrollable ? "contain" : null
990
- }), i), i._autoDirection = () => i.children().some((e) => br(e)) ? "column" : "row", i._syncContainerDirection = () => (i.style("flexDirection", i._direction || i._autoDirection()), i), i.direction = (e) => e === void 0 ? i._direction || i._autoDirection() : (i._direction = e, i._syncContainerDirection(), i);
991
- let a = i.child.bind(i);
992
- return i.child = (...e) => (a(...e), i._syncContainerDirection(), i), F(i, r.first, xr), i._syncContainerDirection(), M(i, r.options, r.callback);
993
- }
994
- function Kn(e = null, t = null, n = null) {
995
- let r = j(e, t, n), i = new v("div");
996
- i.className("yoya-layout", "yoya-mobile-layout", "yoya-vmobile-layout"), i.attr("data-mobile-layout", "false"), i.styles({
997
- boxSizing: "border-box",
998
- display: "flex",
999
- minWidth: "0",
1000
- width: "100%"
1001
- }), i._breakpoint = 768, i._desktopDirection = "row", i._mobileDirection = "column", i._desktopGap = 0, i._mobileGap = 12, i._asideWidth = 280, i._safeArea = !1, i._safeAreaApplied = !1, i._viewport = !1, i._mobile = !1, i._drawerEnabled = !0, i._asideOpen = !1, i._asideBackdrop = new v("div").className("yoya-vmobile-layout-backdrop").attr("aria-hidden", "true").style("display", "none").on("click", () => i.closeAside()), i._asideToggle = new v("button").className("yoya-vmobile-layout-toggle").attr({
1002
- type: "button",
1003
- "aria-label": "打开导航",
1004
- "aria-expanded": "false"
1005
- }).style("display", "none").child(hn().styles({
1006
- height: "18px",
1007
- width: "18px"
1008
- })).on("click", () => i.toggleAside()), i._refreshMobileLayout = () => {
1009
- let e = typeof window > "u" ? null : window.innerWidth, t = e !== null && e <= i._breakpoint;
1010
- return i._mobile = t, t || (i._asideOpen = !1), i.attr("data-mobile-layout", t ? "true" : "false"), i.attr("data-aside-open", t && i._asideOpen ? "true" : null), i.styles({
1011
- flexDirection: t ? i._mobileDirection : i._desktopDirection,
1012
- gap: t ? i._mobileGap : i._desktopGap,
1013
- height: i._viewport ? "100dvh" : null,
1014
- minHeight: i._viewport ? "100vh" : null,
1015
- overflow: i._viewport ? "hidden" : null
1016
- }), i._safeArea ? (i._safeAreaApplied = !0, i.style("paddingLeft", t ? "max(env(safe-area-inset-left), 0px)" : null), i.style("paddingRight", t ? "max(env(safe-area-inset-right), 0px)" : null), i.style("paddingTop", t ? "max(env(safe-area-inset-top), 0px)" : null), i.style("paddingBottom", t ? "max(env(safe-area-inset-bottom), 0px)" : null)) : i._safeAreaApplied && (i._safeAreaApplied = !1, i.style("paddingLeft", null), i.style("paddingRight", null), i.style("paddingTop", null), i.style("paddingBottom", null)), i.children().forEach((e) => _r(i, e)), vr(i), i;
1017
- }, i.refresh = i._refreshMobileLayout, i.breakpoint = (e) => e === void 0 ? i._breakpoint : (i._breakpoint = Number(e), (!Number.isFinite(i._breakpoint) || i._breakpoint <= 0) && (i._breakpoint = 768), i._refreshMobileLayout(), i), i.direction = (e, t) => e === void 0 ? i._desktopDirection : (i._desktopDirection = e || "row", t !== void 0 && (i._mobileDirection = t || "column"), i._refreshMobileLayout(), i), i.mobileDirection = (e) => e === void 0 ? i._mobileDirection : (i._mobileDirection = e || "column", i._refreshMobileLayout(), i), i.gap = (e, t) => e === void 0 ? i._desktopGap : (i._desktopGap = B(e), t !== void 0 && (i._mobileGap = B(t)), i._refreshMobileLayout(), i), i.mobileGap = (e) => e === void 0 ? i._mobileGap : (i._mobileGap = B(e), i._refreshMobileLayout(), i), i.asideWidth = (e) => e === void 0 ? i._asideWidth : (i._asideWidth = B(e), i._refreshMobileLayout(), i), i.viewport = (e = !0) => e === void 0 ? i._viewport : (i._viewport = !!e, i._refreshMobileLayout(), i), i.safeArea = (e = !0) => e === void 0 ? i._safeArea : (i._safeArea = !!e, i._refreshMobileLayout(), i), i.drawer = (e = !0) => e === void 0 ? i._drawerEnabled : (i._drawerEnabled = !!e, i._drawerEnabled || (i._asideOpen = !1), i._refreshMobileLayout(), i), i.asideOpen = (e) => e === void 0 ? i._asideOpen : (i._asideOpen = !!e, i._refreshMobileLayout(), i), i.openAside = () => i.asideOpen(!0), i.closeAside = () => i.asideOpen(!1), i.toggleAside = () => i.asideOpen(!i._asideOpen), i.mobile = () => i._mobile;
1018
- let a = i.child.bind(i);
1019
- return i.child = (...e) => (a(...e), i._refreshMobileLayout(), i), F(i, r.first, Sr), i.child(i._asideBackdrop, i._asideToggle), i._mobileLayoutResize = () => i._refreshMobileLayout(), i._mobileLayoutResizeUnbind = O("resize", i._mobileLayoutResize), gr(i), i._refreshMobileLayout(), M(i, r.options, r.callback);
1020
- }
1021
- var qn = Kn;
1022
- function Jn(e = null, t = null, n = null) {
1023
- return P("vheader", {
1024
- boxSizing: "border-box",
1025
- flex: "0 0 auto",
1026
- height: "60px",
1027
- width: "100%"
1028
- }, e, Cr, t, n, "header", jn, er);
1029
- }
1030
- function Yn(e = null, t = null, n = null) {
1031
- return P("vaside", {
1032
- boxSizing: "border-box",
1033
- flex: "0 0 auto",
1034
- minWidth: "0",
1035
- width: "300px"
1036
- }, e, wr, t, n, "aside", jn, tr);
1037
- }
1038
- function Xn(e = null, t = null, n = null) {
1039
- return P("vmain", {
1040
- boxSizing: "border-box",
1041
- flex: "1 1 auto",
1042
- minHeight: "0",
1043
- minWidth: "0",
1044
- overflow: "auto"
1045
- }, e, Tr, t, n, "main", jn, tr);
1046
- }
1047
- function Zn(e = null, t = null, n = null) {
1048
- return P("vfooter", {
1049
- boxSizing: "border-box",
1050
- flex: "0 0 auto",
1051
- height: "60px",
1052
- width: "100%"
1053
- }, e, Cr, t, n, "footer", jn, er);
1054
- }
1055
- function Qn(e = null, t = null, n = null) {
1056
- let r = P("spacer", {
1057
- flexGrow: 1,
1058
- minWidth: 0,
1059
- minHeight: 0
1060
- }, e, or, t, n);
1061
- return r.attr("aria-hidden", "true"), r;
1062
- }
1063
- function $n(e = null, t = null, n = null) {
1064
- let r = P("divider", {}, e, sr, t, n);
1065
- return r.attr("role", "separator"), r.attr("aria-orientation") || r.attr("aria-orientation", "horizontal"), r;
1066
- }
1067
- _(v, {
1068
- vAside: Yn,
1069
- vCol: Rn,
1070
- vContainer: Gn,
1071
- vFooter: Zn,
1072
- vHeader: Jn,
1073
- vMain: Xn,
1074
- vMasonry: Dn,
1075
- vRow: Ln,
1076
- vSplitPanel: Cn,
1077
- center: In,
1078
- container: Wn,
1079
- divider: $n,
1080
- flex: Mn,
1081
- grid: zn,
1082
- mobileLayout: Kn,
1083
- responsiveGrid: Bn,
1084
- vMobileLayout: qn,
1085
- vBody: Vn,
1086
- hstack: Fn,
1087
- spacer: Qn,
1088
- stack: Nn,
1089
- vstack: Pn
1090
- });
1091
- function P(e, t, n, r, i, a, o = "div", s = null, c = null) {
1092
- let l = j(n, i, a), u = new v(o);
1093
- return u.className("yoya-layout", `yoya-${e}`), u.styles(t), c && c(u), F(u, l.first, r, s), M(u, l.options, l.callback);
1094
- }
1095
- function er(e) {
1096
- e.sticky = (t = !0) => {
1097
- if (t === void 0) return e.style("position") === "sticky";
1098
- let n = !!t;
1099
- return e.styles({
1100
- position: n ? "sticky" : null,
1101
- top: n ? "0" : null,
1102
- zIndex: n ? "20" : null
1103
- }), e;
1104
- };
1105
- }
1106
- function tr(e) {
1107
- e.scrollable = (t = !0) => {
1108
- if (t === void 0) return e.style("overflow") === "auto";
1109
- let n = !!t;
1110
- return e.styles({
1111
- height: n ? "100%" : null,
1112
- minHeight: n ? "0" : null,
1113
- overflow: n ? "auto" : null,
1114
- overscrollBehavior: n ? "contain" : null
1115
- }), e;
1116
- };
1117
- }
1118
- function F(e, t, n, r = null) {
1119
- if (t == null) return n(e, {}), e;
1120
- if (!U(t)) return n(e, {}), e.setup(t);
1121
- n(e, t);
1122
- let i = kr(t, r);
1123
- return Object.keys(i).length > 0 && e.setup(i), e;
1124
- }
1125
- function I(e, t) {
1126
- e.styles(H({
1127
- alignItems: t.align,
1128
- flexDirection: t.direction,
1129
- flexWrap: V(t.wrap),
1130
- gap: t.gap,
1131
- justifyContent: t.justify
1132
- }));
1133
- }
1134
- function nr(e, t) {
1135
- e.styles(H({
1136
- gap: t.gap,
1137
- gridAutoFlow: t.autoFlow,
1138
- gridTemplateAreas: t.areas,
1139
- gridTemplateColumns: Er(t.columns),
1140
- gridTemplateRows: Er(t.rows)
1141
- }));
1142
- }
1143
- function rr(e, t) {
1144
- e.style("gap", t.gap), e.style("gridTemplateColumns", `repeat(auto-fit, minmax(${Dr(t.minColumnWidth)}, 1fr))`);
1145
- }
1146
- function ir(e, t) {
1147
- if (t == null) return e;
1148
- if (typeof t == "function") return t(e), e;
1149
- if (!U(t)) return e.child(t), e;
1150
- let { background: n, children: r, content: i, gap: a, maxWidth: o, minHeight: s, padding: c, ...l } = t;
1151
- Object.keys(l).length && e.setup(l), n !== void 0 && e.background(n), o !== void 0 && e.maxWidth(o), c !== void 0 && e.padding(c), a !== void 0 && e.gap(a), s !== void 0 && e.minHeight(s);
1152
- let u = i ?? r;
1153
- return u !== void 0 && e.content(u), e;
1154
- }
1155
- function ar(e, t) {
1156
- let n = t.paddingInline ?? t.padding;
1157
- e.styles(H({
1158
- maxWidth: t.maxWidth,
1159
- paddingLeft: n,
1160
- paddingRight: n
1161
- }));
1162
- }
1163
- function or(e, t) {
1164
- e.styles(H({
1165
- flexBasis: t.size,
1166
- height: t.orientation === "vertical" ? t.size : void 0,
1167
- width: t.orientation === "horizontal" ? t.size : void 0
1168
- }));
1169
- }
1170
- function sr(e, t) {
1171
- let n = t.orientation === "vertical" ? "vertical" : "horizontal";
1172
- if (e.attr("aria-orientation", n), n === "vertical") {
1173
- e.styles({
1174
- alignSelf: "stretch",
1175
- background: "currentColor",
1176
- opacity: .2,
1177
- width: "1px"
1178
- });
1179
- return;
1180
- }
1181
- e.styles({
1182
- background: "currentColor",
1183
- height: "1px",
1184
- opacity: .2,
1185
- width: "100%"
1186
- });
1187
- }
1188
- function cr(e) {
1189
- e.children().forEach((t) => {
1190
- let n = t?._resolved ?? t?._resolve?.() ?? t;
1191
- n && typeof n.gutter == "function" && n.gutter(e._gutter);
1192
- });
1193
- }
1194
- function lr(e, t) {
1195
- t.gutter !== void 0 && e.gutter(t.gutter), e.styles(H({
1196
- alignItems: t.align,
1197
- flexWrap: t.wrap === void 0 || t.wrap === null ? "wrap" : t.wrap === !1 ? "nowrap" : V(t.wrap),
1198
- justifyContent: t.justify
1199
- }));
1200
- }
1201
- function ur(e, t) {
1202
- e._baseCol = L(t), e._responsiveCols = fr(t), t.gutter !== void 0 && e.gutter(t.gutter);
1203
- }
1204
- var dr = [
1205
- ["xs", 0],
1206
- ["sm", 768],
1207
- ["md", 992],
1208
- ["lg", 1200],
1209
- ["xl", 1920]
1210
- ];
1211
- function L(e = {}) {
1212
- return {
1213
- span: R(e.span ?? 24),
1214
- offset: R(e.offset ?? 0),
1215
- push: R(e.push ?? 0),
1216
- pull: R(e.pull ?? 0)
1217
- };
1218
- }
1219
- function fr(e = {}) {
1220
- return dr.filter(([t]) => e[t] !== void 0).map(([t, n]) => ({
1221
- minWidth: n,
1222
- props: pr(e[t])
1223
- }));
1224
- }
1225
- function pr(e) {
1226
- return typeof e == "number" ? L({ span: e }) : U(e) ? L(e) : L({});
1227
- }
1228
- function R(e) {
1229
- let t = Number(e);
1230
- return Number.isFinite(t) ? Math.min(24, Math.max(0, Math.round(t))) : 0;
1231
- }
1232
- function z(e) {
1233
- return e / 24 * 100;
1234
- }
1235
- function mr(e) {
1236
- if (typeof e == "number") return `${e / 2}px`;
1237
- let t = String(e).match(/^(-?(?:\d+\.?\d*|\.\d+))([a-z%]+)$/i);
1238
- return t ? `${Number(t[1]) / 2}${t[2]}` : `calc(${e} * 0.5)`;
1239
- }
1240
- function hr(e) {
1241
- if (e._colDestroyWrapped) return;
1242
- e._colDestroyWrapped = !0;
1243
- let t = e.destroy.bind(e);
1244
- e.destroy = () => (e._colResizeUnbind?.(), t());
1245
- }
1246
- function gr(e) {
1247
- if (e._mobileLayoutDestroyWrapped) return;
1248
- e._mobileLayoutDestroyWrapped = !0;
1249
- let t = e.destroy.bind(e);
1250
- e.destroy = () => (e._mobileLayoutResizeUnbind?.(), t());
1251
- }
1252
- function _r(e, t) {
1253
- let n = t?._resolved ?? t?._resolve?.() ?? t;
1254
- if (!n || typeof n.styles != "function") return;
1255
- let r = n._classes;
1256
- if (r?.has("yoya-vaside") && e._mobile && e._drawerEnabled) {
1257
- n.styles({
1258
- bottom: "0",
1259
- boxShadow: e._asideOpen ? "0 12px 36px rgba(15, 23, 42, 0.28)" : "none",
1260
- display: "flex",
1261
- flexDirection: "column",
1262
- height: "100dvh",
1263
- left: "0",
1264
- maxWidth: "84vw",
1265
- minHeight: "100vh",
1266
- minWidth: "0",
1267
- pointerEvents: e._asideOpen ? "auto" : "none",
1268
- position: "fixed",
1269
- top: "0",
1270
- transform: e._asideOpen ? "translateX(0)" : "translateX(-100%)",
1271
- transition: "transform 180ms ease, box-shadow 180ms ease, visibility 180ms ease",
1272
- visibility: e._asideOpen ? "visible" : "hidden",
1273
- width: "320px",
1274
- zIndex: "40"
1275
- }), n.attr("aria-hidden", e._asideOpen ? null : "true"), n._mobileDrawerAriaHiddenApplied = !0, n._mobileDrawerStylesApplied = !0, n._mobileDrawerClickBound || (n._mobileDrawerClickBound = !0, n.on("click", (t) => {
1276
- t.target?.closest?.(".yoya-vmenu-item") && !t.target.closest?.(".yoya-vsubmenu-trigger") && e.closeAside();
1277
- }));
1278
- return;
1279
- }
1280
- if (r?.has("yoya-vaside")) {
1281
- n._mobileDrawerStylesApplied && (n._mobileDrawerStylesApplied = !1, n.styles({
1282
- bottom: null,
1283
- boxShadow: null,
1284
- display: null,
1285
- height: null,
1286
- left: null,
1287
- minHeight: null,
1288
- minWidth: null,
1289
- pointerEvents: null,
1290
- position: null,
1291
- top: null,
1292
- transform: null,
1293
- transition: null,
1294
- visibility: null,
1295
- zIndex: null
1296
- })), n._mobileDrawerAriaHiddenApplied && (n._mobileDrawerAriaHiddenApplied = !1, n.attr("aria-hidden", null));
1297
- let t = e._mobile ? "100%" : B(e._asideWidth);
1298
- n.styles({
1299
- flex: "0 0 auto",
1300
- maxWidth: t,
1301
- width: t
1302
- });
1303
- return;
1304
- }
1305
- r?.has("yoya-vmain") && (n.styles({
1306
- flex: "1 1 auto",
1307
- minHeight: "0",
1308
- minWidth: "0"
1309
- }), e._mobile && e._drawerEnabled ? (n.styles({
1310
- maxWidth: "100%",
1311
- width: "100%"
1312
- }), n._mobileDrawerMainStylesApplied = !0) : n._mobileDrawerMainStylesApplied && (n._mobileDrawerMainStylesApplied = !1, n.styles({
1313
- maxWidth: null,
1314
- width: null
1315
- })));
1316
- }
1317
- function vr(e) {
1318
- let t = e._mobile && e._drawerEnabled && yr(e), n = t && e._asideOpen, r = e._asideBackdrop, i = e._asideToggle;
1319
- i && i.attr("aria-expanded", n ? "true" : "false").attr("aria-label", n ? "关闭导航" : "打开导航").styles({
1320
- alignItems: "center",
1321
- background: "var(--yoya-color-surface, #ffffff)",
1322
- border: "0",
1323
- borderRadius: "10px",
1324
- boxShadow: t ? "0 2px 10px rgba(15, 23, 42, 0.18)" : "none",
1325
- color: "#172033",
1326
- cursor: "pointer",
1327
- display: t ? "inline-flex" : "none",
1328
- height: "38px",
1329
- justifyContent: "center",
1330
- left: "12px",
1331
- padding: "0",
1332
- position: "fixed",
1333
- top: "max(env(safe-area-inset-top), 10px)",
1334
- width: "38px",
1335
- zIndex: "45"
1336
- }), r && r.styles({
1337
- background: n ? "rgba(15, 23, 42, 0.42)" : null,
1338
- display: n ? "block" : "none",
1339
- inset: "0",
1340
- position: "fixed",
1341
- zIndex: n ? "35" : null
1342
- });
1343
- }
1344
- function yr(e) {
1345
- return e.children().some((e) => !!(e?._resolved ?? e?._resolve?.() ?? e)?._classes?.has("yoya-vaside"));
1346
- }
1347
- function br(e) {
1348
- let t = (e?._resolved ?? e?._resolve?.() ?? e)?._classes;
1349
- return !!(t?.has("yoya-vheader") || t?.has("yoya-vfooter"));
1350
- }
1351
- function xr(e, t) {
1352
- t.direction !== void 0 && e.direction(t.direction), e.styles(H({ gap: t.gap }));
1353
- }
1354
- function Sr(e, t) {
1355
- e.styles(H({
1356
- alignItems: t.align,
1357
- flexWrap: V(t.wrap),
1358
- justifyContent: t.justify
1359
- })), t.direction === void 0 ? t.mobileDirection !== void 0 && e.mobileDirection(t.mobileDirection) : e.direction(t.direction, t.mobileDirection), t.gap === void 0 ? t.mobileGap !== void 0 && e.mobileGap(t.mobileGap) : e.gap(t.gap, t.mobileGap), t.breakpoint !== void 0 && e.breakpoint(t.breakpoint), t.asideWidth !== void 0 && e.asideWidth(t.asideWidth), t.drawer !== void 0 && e.drawer(t.drawer), t.viewport !== void 0 && e.viewport(t.viewport), t.safeArea !== void 0 && e.safeArea(t.safeArea);
1360
- }
1361
- function Cr(e, t) {
1362
- e.style("height", B(t.height ?? t.size ?? 60)), e.style("width", "100%");
1363
- }
1364
- function wr(e, t) {
1365
- e.style("width", B(t.width ?? t.size ?? 300));
1366
- }
1367
- function Tr(e, t = {}) {
1368
- t.height !== void 0 && e.style("height", B(t.height));
1369
- }
1370
- function Er(e) {
1371
- if (e != null && e !== !1) return typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : String(e);
1372
- }
1373
- function Dr(e) {
1374
- return typeof e == "number" ? `${e}px` : e || "240px";
1375
- }
1376
- function B(e) {
1377
- return typeof e == "number" ? `${e}px` : e;
1378
- }
1379
- function Or(e) {
1380
- return e ? (Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => ({
1381
- minWidth: e,
1382
- columns: t
1383
- }))).map((e) => ({
1384
- columns: Number(e.columns),
1385
- minWidth: Number.parseInt(e.minWidth, 10)
1386
- })).filter(({ columns: e, minWidth: t }) => Number.isFinite(t) && e > 0).sort((e, t) => e.minWidth - t.minWidth) : [];
1387
- }
1388
- function V(e) {
1389
- if (e === !0) return "wrap";
1390
- if (e !== !1 && e != null) return String(e);
1391
- }
1392
- function kr(e, t = null) {
1393
- let n = t || An;
1394
- return Object.fromEntries(Object.entries(e).filter(([e]) => !n.has(e)));
1395
- }
1396
- function H(e) {
1397
- return Object.fromEntries(Object.entries(e).filter(([, e]) => e != null && e !== !1));
1398
- }
1399
- function U(e) {
1400
- return Object.prototype.toString.call(e) === "[object Object]";
1401
- }
1402
- //#endregion
1403
- //#region src/core/client-only.js
1404
- var Ar = class extends c {
1405
- constructor(e) {
1406
- super(null), this._loader = e, this._resolved = null;
1407
- }
1408
- _resolve() {
1409
- return this._resolved ||= Mr(this._loader), this._resolved;
1410
- }
1411
- toHTML() {
1412
- return this._deleted ? "" : "<div class=\"yoya-client-only\" data-client-only=\"true\"></div>";
1413
- }
1414
- renderDom() {
1415
- if (this._deleted) return null;
1416
- let e = this._resolve().renderDom();
1417
- return this._el && this._el !== e && this._el.parentNode && this._el.parentNode.replaceChild(e, this._el), this._el = e, e;
1418
- }
1419
- children() {
1420
- return this._resolved ? this._resolved.children() : [];
1421
- }
1422
- textContent() {
1423
- return this._resolved && typeof this._resolved.textContent == "function" ? this._resolved.textContent() : "";
1424
- }
1425
- destroy() {
1426
- return this._resolved && this._resolved.destroy(), super.destroy();
1427
- }
1428
- };
1429
- function jr(e) {
1430
- return new Ar(e);
1431
- }
1432
- function Mr(e) {
1433
- if (e instanceof c) return e;
1434
- if (typeof e == "function") return Mr(e());
1435
- if (e && typeof e.render == "function") return Mr(e.render());
1436
- throw TypeError("vClientOnly loader must return a ViewNode or a component object");
1437
- }
1438
- //#endregion
1439
- //#region src/core/i18n.js
1440
- var Nr = "yoya-ui:i18n", W = /* @__PURE__ */ new Map(), Pr = class {
1441
- constructor(e = {}) {
1442
- let t = e.language || "zh-CN";
1443
- this._key = e.key || null, this._storage = ei(e.storage), this._storageKey = e.storageKey || null, this._sharedStorageKey = this._key ? Nr : null, this._fallbackLanguage = e.fallbackLanguage || t, this._language = this._readStoredLanguage(t), this._messages = {}, this._listeners = /* @__PURE__ */ new Set(), this.registerMessages(e.messages || {}), this._key && Vr(this);
1444
- }
1445
- key() {
1446
- return this._key;
1447
- }
1448
- getLanguage() {
1449
- return this._language;
1450
- }
1451
- setLanguage(e) {
1452
- return !e || e === this._language ? this : (this._language = e, this._persistLanguage(), this._notify(), this);
1453
- }
1454
- getFallbackLanguage() {
1455
- return this._fallbackLanguage;
1456
- }
1457
- setFallbackLanguage(e) {
1458
- return e ? (this._fallbackLanguage = e, this._notify(), this) : this;
1459
- }
1460
- clearPersistedLanguage() {
1461
- if (!this._storageKey) {
1462
- if (!this._sharedStorageKey) return this;
1463
- let e = Kr(this._storage, this._sharedStorageKey);
1464
- return delete e[this._key], qr(this._storage, this._sharedStorageKey, e), this;
1465
- }
1466
- try {
1467
- this._storage.removeItem(this._storageKey);
1468
- } catch {}
1469
- return this;
1470
- }
1471
- register(e, t = {}) {
1472
- return e ? ($r(t).forEach((t) => {
1473
- this._messages[e] = Xr(this._messages[e] || {}, t);
1474
- }), this._notify(), this) : this;
1475
- }
1476
- registerMessages(e = {}) {
1477
- return Qr(e).forEach((e) => {
1478
- if (e.language) {
1479
- this.register(e.language, e.messages || {});
1480
- return;
1481
- }
1482
- Object.entries(e).forEach(([e, t]) => {
1483
- this.register(e, t);
1484
- });
1485
- }), this;
1486
- }
1487
- t(e, t = {}, n = void 0) {
1488
- let r = Jr(this._messages[this._language], e) ?? Jr(this._messages[this._fallbackLanguage], e) ?? n ?? e;
1489
- return Yr(typeof r == "function" ? r(t, this) : r, t);
1490
- }
1491
- text(e, t = {}, n = void 0) {
1492
- return new Fr(this, e, t, n);
1493
- }
1494
- subscribe(e) {
1495
- return this._listeners.add(e), () => {
1496
- this._listeners.delete(e);
1497
- };
1498
- }
1499
- _readStoredLanguage(e) {
1500
- if (this._storageKey) try {
1501
- return this._storage.getItem(this._storageKey) || e;
1502
- } catch {
1503
- return e;
1504
- }
1505
- return this._sharedStorageKey && Kr(this._storage, this._sharedStorageKey)[this._key] || e;
1506
- }
1507
- _persistLanguage() {
1508
- if (this._storageKey) {
1509
- try {
1510
- this._storage.setItem(this._storageKey, this._language);
1511
- } catch {}
1512
- return;
1513
- }
1514
- if (this._sharedStorageKey) {
1515
- let e = Kr(this._storage, this._sharedStorageKey);
1516
- e[this._key] = this._language, qr(this._storage, this._sharedStorageKey, e);
1517
- }
1518
- }
1519
- _notify() {
1520
- this._listeners.forEach((e) => e(this));
1521
- }
1522
- }, Fr = class extends l {
1523
- constructor(e, t, n = {}, r = void 0) {
1524
- super(e.t(t, n, r)), this._i18n = e, this._key = t, this._params = n || {}, this._defaultValue = r, this._unsubscribe = e.subscribe(() => this.refresh());
1525
- }
1526
- key(e) {
1527
- return e === void 0 ? this._key : (this._key = e, this.refresh());
1528
- }
1529
- params(e) {
1530
- return e === void 0 ? { ...this._params } : (this._params = e || {}, this.refresh());
1531
- }
1532
- defaultValue(e) {
1533
- return e === void 0 ? this._defaultValue : (this._defaultValue = e, this.refresh());
1534
- }
1535
- refresh() {
1536
- return this.textContent(this._i18n.t(this._key, this._params, this._defaultValue)), this;
1537
- }
1538
- destroy() {
1539
- return this._unsubscribe &&= (this._unsubscribe(), null), super.destroy();
1540
- }
1541
- };
1542
- function Ir(e = {}) {
1543
- return new Pr(e);
1544
- }
1545
- var G = Ir();
1546
- function Lr(e, t = {}) {
1547
- return G.text(e, t);
1548
- }
1549
- var K = G;
1550
- function Rr(e = G) {
1551
- return K = e, String.prototype._yoyaUiStringShortcutInstalled ? e : (Object.defineProperty(String.prototype, "_yoyaUiStringShortcutInstalled", {
1552
- configurable: !0,
1553
- enumerable: !1,
1554
- value: !0
1555
- }), Object.defineProperty(String.prototype, "s", {
1556
- configurable: !0,
1557
- enumerable: !1,
1558
- value: function(e, t, n) {
1559
- let r = String(this), i = {}, a = K;
1560
- return Br(t) ? a = t : typeof t == "string" ? a = Ur(t) || K : (i = t || {}, Br(n) ? a = n : typeof n == "string" && (a = Ur(n) || K)), a.text(e || r, i, r);
1561
- }
1562
- }), e);
1563
- }
1564
- function zr(e, t) {
1565
- let n = K;
1566
- K = e || n;
1567
- try {
1568
- return t();
1569
- } finally {
1570
- K = n;
1571
- }
1572
- }
1573
- function Br(e) {
1574
- return !!(e && typeof e.text == "function");
1575
- }
1576
- function Vr(e) {
1577
- let t = e?.key?.();
1578
- return t ? (W.set(t, e), () => {
1579
- W.get(t) === e && W.delete(t);
1580
- }) : () => {};
1581
- }
1582
- function Hr(e) {
1583
- let t = typeof e == "string" ? e : e?.key?.();
1584
- return t && W.delete(t), t;
1585
- }
1586
- function Ur(e) {
1587
- return e && W.get(e) || null;
1588
- }
1589
- function Wr() {
1590
- return new Map(W);
1591
- }
1592
- function Gr(e) {
1593
- return Kr(e || ei(), Nr);
1594
- }
1595
- function Kr(e, t) {
1596
- if (!e) return {};
1597
- try {
1598
- let n = e.getItem(t);
1599
- if (!n) return {};
1600
- let r = JSON.parse(n);
1601
- return r && typeof r == "object" ? r : {};
1602
- } catch {
1603
- return {};
1604
- }
1605
- }
1606
- function qr(e, t, n) {
1607
- if (e) try {
1608
- e.setItem(t, JSON.stringify(n));
1609
- } catch {}
1610
- }
1611
- Rr(G);
1612
- function Jr(e, t) {
1613
- if (!(!e || !t)) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : String(t).split(".").reduce((e, t) => {
1614
- if (e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, t)) return e[t];
1615
- }, e);
1616
- }
1617
- function Yr(e, t) {
1618
- return String(e).replace(/\{([^{}]+)\}/g, (e, n) => {
1619
- let r = t?.[n.trim()];
1620
- return r == null ? e : String(r);
1621
- });
1622
- }
1623
- function Xr(e, t) {
1624
- let n = { ...e };
1625
- return Object.entries(t || {}).forEach(([e, t]) => {
1626
- Zr(t) && Zr(n[e]) ? n[e] = Xr(n[e], t) : n[e] = t;
1627
- }), n;
1628
- }
1629
- function Zr(e) {
1630
- return Object.prototype.toString.call(e) === "[object Object]";
1631
- }
1632
- function Qr(e) {
1633
- return Array.isArray(e) ? e.flatMap((e) => Qr(e)) : [e || {}];
1634
- }
1635
- function $r(e) {
1636
- return Array.isArray(e) ? e.flatMap((e) => $r(e)) : [e || {}];
1637
- }
1638
- function ei(e) {
1639
- if (e) return e;
1640
- try {
1641
- if (typeof globalThis < "u" && globalThis.localStorage) return globalThis.localStorage;
1642
- } catch {}
1643
- return ni();
1644
- }
1645
- var ti = /* @__PURE__ */ new Map();
1646
- function ni() {
1647
- return {
1648
- getItem(e) {
1649
- return ti.has(e) ? ti.get(e) : null;
1650
- },
1651
- setItem(e, t) {
1652
- ti.set(e, String(t));
1653
- },
1654
- removeItem(e) {
1655
- ti.delete(e);
1656
- }
1657
- };
1658
- }
1659
- //#endregion
1660
- //#region src/core/state-node.js
1661
- var ri = /* @__PURE__ */ new Set([
1662
- "state",
1663
- "render",
1664
- "update"
1665
- ]), ii = /* @__PURE__ */ new Set([
1666
- "destroy",
1667
- "getState",
1668
- "setState",
1669
- "subscribe"
1670
- ]);
1671
- function ai(e = {}) {
1672
- if (typeof e.render != "function") throw TypeError("vStateNode requires a render function");
1673
- let t = typeof e.state == "function" ? e.state() : { ...e.state || {} }, n = /* @__PURE__ */ new Set(), r = !1, i = null, a = {
1674
- destroy() {
1675
- return r ? a : (r = !0, n.clear(), i && i.destroy(), a);
1676
- },
1677
- getState() {
1678
- return a.state();
1679
- },
1680
- render() {
1681
- if (r) return i;
1682
- if (!i) {
1683
- i = new h("div");
1684
- let e = i.destroy.bind(i);
1685
- i.destroy = () => (n.clear(), e()), o();
1686
- }
1687
- return i;
1688
- },
1689
- setState(e) {
1690
- if (r || e == null) return a;
1691
- let o = typeof e == "function" ? e({ ...t }) : e;
1692
- if (!o || typeof o != "object") return a;
1693
- let c = /* @__PURE__ */ new Set();
1694
- return Object.entries(o).forEach(([e, n]) => {
1695
- t[e] !== n && (t[e] = n, c.add(e));
1696
- }), c.size > 0 && (i && s(c), n.forEach((e) => e(t, a))), a;
1697
- },
1698
- state() {
1699
- return { ...t };
1700
- },
1701
- subscribe(e) {
1702
- if (typeof e != "function") throw TypeError("vStateNode subscriber must be a function");
1703
- return n.add(e), () => n.delete(e);
1704
- }
1705
- };
1706
- for (let t of Object.keys(e)) if (!(ri.has(t) || typeof e[t] != "function")) {
1707
- if (ii.has(t)) throw TypeError(`vStateNode config key "${t}" conflicts with the built-in API`);
1708
- a[t] = e[t];
1709
- }
1710
- return a;
1711
- function o() {
1712
- let n = e.render.call(a, t, a);
1713
- i.clearChildren().child(n), i._el && i.commit();
1714
- }
1715
- function s(n) {
1716
- if (typeof e.update == "function") {
1717
- e.update.call(a, t, a, n) === !0 && o();
1718
- return;
1719
- }
1720
- o();
1721
- }
1722
- }
1723
- _(h, { vStateNode: ai });
1724
- //#endregion
1725
- //#region src/core/theme.js
1726
- var oi = [
1727
- "light",
1728
- "dark",
1729
- "system"
1730
- ], si = "yoya-theme-mode", ci = "yoya-theme-name";
1731
- function li() {
1732
- return typeof document > "u" ? null : document.documentElement;
1733
- }
1734
- function q() {
1735
- try {
1736
- return typeof localStorage < "u" && localStorage !== null;
1737
- } catch {
1738
- return !1;
1739
- }
1740
- }
1741
- function ui(e = "light", t = {}) {
1742
- let n = oi.includes(e) ? e : "light", r = li();
1743
- if (r && (r.dataset.yoyaMode = n), t.persist && q()) try {
1744
- localStorage.setItem(si, n);
1745
- } catch {}
1746
- return n;
1747
- }
1748
- function di() {
1749
- let e = li(), t = e && e.dataset.yoyaMode;
1750
- return oi.includes(t) ? t : "light";
1751
- }
1752
- function fi() {
1753
- let e = di();
1754
- return e === "system" ? typeof window > "u" || typeof window.matchMedia != "function" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e;
1755
- }
1756
- function pi(e = "", t = {}) {
1757
- let n = li();
1758
- if (!e) {
1759
- if (n && delete n.dataset.yoyaTheme, t.persist && q()) try {
1760
- localStorage.removeItem(ci);
1761
- } catch {}
1762
- return "";
1763
- }
1764
- if (n && (n.dataset.yoyaTheme = e), t.persist && q()) try {
1765
- localStorage.setItem(ci, e);
1766
- } catch {}
1767
- return e;
1768
- }
1769
- function mi() {
1770
- let e = li();
1771
- return e && e.dataset.yoyaTheme || "";
1772
- }
1773
- function hi(e = {}) {
1774
- let t = e.mode, n = e.theme;
1775
- if (t === void 0 && q()) {
1776
- let e = localStorage.getItem(si);
1777
- oi.includes(e) && (t = e);
1778
- }
1779
- return n === void 0 && q() && (n = localStorage.getItem(ci) || ""), t !== void 0 && ui(t, { persist: e.persist }), n !== void 0 && pi(n, { persist: e.persist }), {
1780
- mode: di(),
1781
- theme: mi()
1782
- };
1783
- }
1784
- //#endregion
1785
- //#region src/core/request.js
1786
- var gi = null;
1787
- function _i({ submit: e } = {}) {
1788
- return gi = typeof e == "function" ? e : null, gi;
1789
- }
1790
- var vi = class {
1791
- method() {
1792
- return "GET";
1793
- }
1794
- headers() {
1795
- return {};
1796
- }
1797
- cookies() {
1798
- return null;
1799
- }
1800
- body() {
1801
- return null;
1802
- }
1803
- params() {
1804
- return {};
1805
- }
1806
- address() {
1807
- return "";
1808
- }
1809
- submit() {
1810
- if (typeof gi != "function") throw Error("RequestBase: 未注册请求传输,请先 configureRequest({ submit })");
1811
- return gi(this);
1812
- }
1813
- }, yi = class e {
1814
- constructor({ ok: e = !0, code: t = "0", msg: n = null, showType: r = 0, data: i = null, kind: a = "detail", pageNum: o = null, pageSize: s = null, total: c = null } = {}) {
1815
- this.ok = e, this.code = t, this.msg = n, this.showType = r, this.data = i, this.kind = a, this.pageNum = o, this.pageSize = s, this.total = c;
1816
- }
1817
- get isSuccess() {
1818
- return !!this.ok;
1819
- }
1820
- get pages() {
1821
- return this.pageSize > 0 ? Math.ceil((this.total ?? 0) / this.pageSize) : 0;
1822
- }
1823
- static from(t, n = {}) {
1824
- if (!t || t.ok === !1) {
1825
- let e = Error(t?.msg || "请求失败");
1826
- throw e.code = t?.code, e.showType = t?.showType, e;
1827
- }
1828
- let r = t.data, i = Array.isArray(r) && t.pageNum != null, a = Array.isArray(r);
1829
- return new e({
1830
- ok: t.ok,
1831
- code: t.code,
1832
- msg: t.msg,
1833
- showType: t.showType,
1834
- kind: i ? "page" : a ? "list" : "detail",
1835
- data: i || a ? (r ?? []).map((e) => n.toItem ? n.toItem(e) : e) : n.toDetail ? n.toDetail(r) : r,
1836
- pageNum: t.pageNum,
1837
- pageSize: t.pageSize,
1838
- total: t.total
1839
- });
1840
- }
1841
- }, J = 8, bi = null;
1842
- function xi() {
1843
- bi ||= rn(".yoya-vrouter-views-titlebar,\n.yoya-vrouter-views-popup {\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n.yoya-vrouter-views-titlebar::-webkit-scrollbar,\n.yoya-vrouter-views-popup::-webkit-scrollbar {\n display: none;\n height: 0;\n width: 0;\n}\n.yoya-vrouter-views-popup-item:hover {\n background: var(--yoya-color-surface-hover, #eef3f9);\n}\n.yoya-vrouter-views-popup-item[aria-current='true'] {\n background: var(--yoya-color-primary-subtle, #e8f0fe);\n color: var(--yoya-color-primary, #1f6feb);\n}\n.yoya-vrouter-views-popup-close {\n color: var(--yoya-color-text-secondary, #57606a);\n opacity: 0.65;\n}\n.yoya-vrouter-views-popup-item:hover .yoya-vrouter-views-popup-close,\n.yoya-vrouter-views-popup-close:hover {\n color: var(--yoya-color-text-danger, #b91c1c);\n opacity: 1;\n}\n.yoya-vrouter-views-context-item:hover {\n background: var(--yoya-color-surface-hover, #f6f8fa);\n}\n.yoya-vrouter-views-context-separator {\n background: var(--yoya-color-border, #d0d7de);\n height: 1px;\n margin: 4px 6px;\n}", "data-yoya-vrouter-views-popup-style");
1844
- }
1845
- function Si(e) {
1846
- let t = [e._defaultPath || "/", e._routes.map((e) => e.pattern).join("|")].join("::"), n = 0;
1847
- for (let e = 0; e < t.length; e += 1) n = n * 31 + t.charCodeAt(e) | 0;
1848
- return `yoya-ui:router-views:${(n >>> 0).toString(36)}`;
1849
- }
1850
- function Ci(e) {
1851
- if (typeof localStorage > "u") return null;
1852
- try {
1853
- let t = JSON.parse(localStorage.getItem(e) || "null");
1854
- return Array.isArray(t?.paths) ? t : null;
1855
- } catch {
1856
- return null;
1857
- }
1858
- }
1859
- var wi = class extends h {
1860
- constructor(e = null) {
1861
- super("div"), this._routes = [], this._defaultPath = null, this._notFoundView = null, this._beforeEach = null, this._currentPath = "/", this._currentParams = {}, this._currentQuery = {}, this._currentRoute = null, this._currentView = null, this._loadingView = null, this._errorView = null, this._navigationGeneration = 0, this._outlet = this, this._subscribers = /* @__PURE__ */ new Set(), this._ignoreNextHashPath = null, this._mode = "hash", this._started = !1, this._onHashChange = () => this._handleHashChange(), this._onPopState = () => this._handlePopState(), this.attr("data-yoya-router", ""), e !== null && this.setup(e);
1862
- }
1863
- setup(e) {
1864
- return typeof e == "function" ? (e(this), this) : super.setup(e);
1865
- }
1866
- default(e) {
1867
- return this._defaultPath = Z(e), this;
1868
- }
1869
- mode(e) {
1870
- if (e === void 0) return this._mode;
1871
- let t = e === "history" ? "history" : "hash";
1872
- if (t === this._mode) return this;
1873
- let n = this._started;
1874
- return n && this.stop(), this._mode = t, n && this.start(), this;
1875
- }
1876
- route(e, t) {
1877
- let n = Mi(e, t);
1878
- return this._routes.push(n), this;
1879
- }
1880
- notFound(e) {
1881
- return this._notFoundView = e, this;
1882
- }
1883
- loading(e) {
1884
- return this._loadingView = e, this;
1885
- }
1886
- error(e) {
1887
- return this._errorView = e, this;
1888
- }
1889
- beforeEach(e) {
1890
- return this._beforeEach = e, this;
1891
- }
1892
- start() {
1893
- this._started ||= (this._stopListening = this._mode === "history" ? O("popstate", this._onPopState) : O("hashchange", this._onHashChange), !0);
1894
- let e = Ji(this._mode);
1895
- return (this._mode === "history" ? e === "/" || e === "/index.html" : !window.location.hash) && this._defaultPath ? this.navigate(this._defaultPath, { replace: !0 }) : this.refresh();
1896
- }
1897
- stop() {
1898
- return this._started &&= (this._stopListening?.(), this._stopListening = null, !1), this;
1899
- }
1900
- navigate(e, t = {}) {
1901
- let n = Z(e), r = this._resolve(n);
1902
- return this._canEnter(r.context) ? (Xi(n, t, this._mode) && !t.replace && this._mode === "hash" && (this._ignoreNextHashPath = n), this._renderResolved(r), this) : this;
1903
- }
1904
- refresh() {
1905
- let e = Ji(this._mode), t = this._resolve(e);
1906
- return this._canEnter(t.context) && this._renderResolved(t), this;
1907
- }
1908
- renderPath(e) {
1909
- let t = this._resolve(e);
1910
- return this._canEnter(t.context) && this._renderResolved(t), this;
1911
- }
1912
- currentPath() {
1913
- return this._currentPath;
1914
- }
1915
- currentParams() {
1916
- return { ...this._currentParams };
1917
- }
1918
- currentQuery() {
1919
- return { ...this._currentQuery };
1920
- }
1921
- currentRoute() {
1922
- return this._currentRoute;
1923
- }
1924
- currentView() {
1925
- return this._currentView;
1926
- }
1927
- outlet(e) {
1928
- if (e === void 0) return this._outlet;
1929
- if (!(e instanceof h)) throw TypeError("Router outlet must be an ElementNode");
1930
- return this._outlet = e, this;
1931
- }
1932
- subscribe(e) {
1933
- if (typeof e != "function") throw TypeError("Router subscriber must be a function");
1934
- return this._subscribers.add(e), () => this._subscribers.delete(e);
1935
- }
1936
- go(e) {
1937
- return window.history.go(e), this;
1938
- }
1939
- back() {
1940
- return this.go(-1);
1941
- }
1942
- forward() {
1943
- return this.go(1);
1944
- }
1945
- destroy() {
1946
- return this.stop(), this._navigationGeneration += 1, this._destroyCurrentView(), this._subscribers.clear(), super.destroy();
1947
- }
1948
- _resolve(e) {
1949
- let t = this._routes.map((t) => ({
1950
- route: t,
1951
- match: Gi(t.pattern, e)
1952
- })).find(({ match: e }) => e);
1953
- if (t) return {
1954
- context: Ki(this, e, t.route, t.match),
1955
- route: t.route,
1956
- view: t.route.view
1957
- };
1958
- let n = Q(e);
1959
- return {
1960
- context: Ki(this, e, null, {
1961
- params: {},
1962
- pathname: n.pathname,
1963
- query: n.query
1964
- }),
1965
- route: null,
1966
- view: this._notFoundView
1967
- };
1968
- }
1969
- _handleHashChange() {
1970
- let e = qi();
1971
- return this._ignoreNextHashPath === e ? (this._ignoreNextHashPath = null, this) : (this._ignoreNextHashPath = null, e === this._currentPath ? this : this.refresh());
1972
- }
1973
- _handlePopState() {
1974
- return this._ignoreNextHashPath = null, this.refresh();
1975
- }
1976
- _canEnter(e) {
1977
- let t = {
1978
- params: this.currentParams(),
1979
- path: this._currentPath,
1980
- query: this.currentQuery(),
1981
- route: this._currentRoute
1982
- };
1983
- return !(this._beforeEach && this._beforeEach(e, t, this) === !1 || e.route?.beforeEnter && e.route.beforeEnter(e, t, this) === !1);
1984
- }
1985
- _renderResolved(e) {
1986
- let { context: t, route: n, view: r } = e, i = typeof r == "function" ? r(t) : r;
1987
- if (this._navigationGeneration += 1, !Ui(i)) {
1988
- this._commitView(e, X(i, t));
1989
- return;
1990
- }
1991
- let a = this._navigationGeneration;
1992
- this._commitView(e, this._buildLoadingView(n, t)), Promise.resolve(i).then((r) => {
1993
- if (a !== this._navigationGeneration || this._deleted) return r;
1994
- let i;
1995
- try {
1996
- i = X(r, t);
1997
- } catch (i) {
1998
- return this._commitView(e, this._buildErrorView(n, t, i)), r;
1999
- }
2000
- return this._commitView(e, i), r;
2001
- }, (r) => (a !== this._navigationGeneration || this._deleted || this._commitView(e, this._buildErrorView(n, t, r)), r));
2002
- }
2003
- _commitView(e, t) {
2004
- let { context: n, route: r } = e, i = this._outlet;
2005
- this._destroyCurrentView(), i._children = [], i._el && i._el.replaceChildren(), i.child(t), this._currentPath = n.path, this._currentParams = n.params, this._currentQuery = n.query, this._currentRoute = r, this._currentView = t, this._subscribers.forEach((e) => e(n, this));
2006
- }
2007
- _buildLoadingView(e, t) {
2008
- return Wi(e?.loading ?? this._loadingView ?? Vi, [t]);
2009
- }
2010
- _buildErrorView(e, t, n) {
2011
- return Wi(e?.error ?? this._errorView ?? Hi, [n, t]);
2012
- }
2013
- _destroyCurrentView() {
2014
- this._currentView?.destroy && this._currentView.destroy(), this._currentView = null;
2015
- }
2016
- };
2017
- function Ti(e = null, t = null, n = null) {
2018
- let r = p(e, t, n), i = new wi(r.first);
2019
- return m(i, r.options), typeof r.callback == "function" && r.callback(i), i;
2020
- }
2021
- var Ei = Ti;
2022
- function Di(e, t) {
2023
- return {
2024
- config: t,
2025
- pattern: e
2026
- };
2027
- }
2028
- function Oi(e = null, t = null, n = null) {
2029
- let r = p(e, t, n), i = new wi();
2030
- return i.vRoute = (e, t) => (i.route(e, t), i), Fi(i, r.first), m(i, r.options), typeof r.callback == "function" && r.callback(i), i;
2031
- }
2032
- function ki(e, t = null, n = null) {
2033
- Ni(e);
2034
- let r = new h("a"), i = {
2035
- exact: !0,
2036
- label: null,
2037
- params: {},
2038
- query: {},
2039
- replace: !1,
2040
- to: "/"
2041
- }, a = new h("span").className("yoya-vlink-label");
2042
- r.className("yoya-vlink"), r.attr("data-router-link", "true"), r.child(a), r.to = (e) => Y(r, i, "to", e), r.params = (e) => Y(r, i, "params", e || {}), r.query = (e) => Y(r, i, "query", e || {}), r.replace = (e) => Y(r, i, "replace", !!e), r.exact = (e) => Y(r, i, "exact", !!e), r.label = (e) => e === void 0 ? i.label : (i.label = e, N(a, bn(e)), r), Ii(r, i, t), Li(r, i, e), r.on("click", (t) => {
2043
- Bi(t, r) && (t.preventDefault(), e.navigate(Ri(i.to, i.params, i.query), { replace: i.replace }));
2044
- });
2045
- let o = e.subscribe(() => Li(r, i, e)), s = r.destroy.bind(r);
2046
- return r.destroy = () => (o(), s()), typeof n == "function" && n(r), r;
2047
- }
2048
- function Ai(e, t = null, n = null) {
2049
- Ni(e);
2050
- let r = new h("div");
2051
- r.className("yoya-vrouter-view"), r.attr("data-router-view", "true"), typeof t == "function" ? t(r) : t && r.setup(t), e.outlet(r);
2052
- let i = r.destroy.bind(r);
2053
- return r.destroy = () => (e.outlet() === r && e.outlet(e), i()), typeof n == "function" && n(r), r;
2054
- }
2055
- function ji(e, t = null, n = null) {
2056
- Ni(e);
2057
- let r = new h("div"), i = new h("header").className("yoya-vrouter-views-titlebar").attr({
2058
- role: "tablist",
2059
- "aria-label": "已打开页面"
2060
- }), a = new h("div").className("yoya-vrouter-views-content"), o = d("⋯"), s = new h("button").className("yoya-vrouter-views-expand").attr({
2061
- type: "button",
2062
- "aria-expanded": "false",
2063
- "aria-label": "展开全部标签"
2064
- }).styles({
2065
- alignItems: "center",
2066
- background: "transparent",
2067
- border: "0",
2068
- color: k("color-text-secondary", "#57606a"),
2069
- cursor: "pointer",
2070
- display: "none",
2071
- flexShrink: "0",
2072
- font: "inherit",
2073
- gap: "6px",
2074
- height: "24px",
2075
- justifyContent: "center",
2076
- lineHeight: "1",
2077
- marginBottom: "0",
2078
- marginLeft: "auto",
2079
- minWidth: "24px",
2080
- padding: "0",
2081
- position: "sticky",
2082
- right: "8px",
2083
- zIndex: "2"
2084
- }).child(o), c = new h("div").className("yoya-vrouter-views-popup").attr({
2085
- role: "menu",
2086
- "aria-label": "已打开页面"
2087
- }).styles({
2088
- background: k("color-surface", "#ffffff"),
2089
- border: A("color-border", "#d0d7de"),
2090
- borderRadius: "8px",
2091
- boxShadow: "0 12px 28px rgba(15, 23, 42, 0.18)",
2092
- display: "none",
2093
- maxHeight: "280px",
2094
- maxWidth: "260px",
2095
- minWidth: "180px",
2096
- msOverflowStyle: "none",
2097
- overflowY: "auto",
2098
- padding: "6px",
2099
- position: "fixed",
2100
- scrollbarWidth: "none",
2101
- zIndex: "100"
2102
- }), l = {
2103
- lockTitle: !1,
2104
- overflow: !1,
2105
- persist: !0,
2106
- popupOpen: !1,
2107
- storageKey: Si(e),
2108
- suppressPersist: !1,
2109
- tabs: /* @__PURE__ */ new Map(),
2110
- title: "工作区",
2111
- titleResolver: null,
2112
- titlePosition: "top"
2113
- };
2114
- r.className("yoya-vrouter-views"), r.styles({
2115
- border: A("color-border", "#d0d7de"),
2116
- boxSizing: "border-box",
2117
- overflow: "hidden"
2118
- }), i.styles({
2119
- background: k("color-surface-hover", "#f6f8fa"),
2120
- borderBottom: A("color-border", "#d0d7de"),
2121
- boxSizing: "border-box",
2122
- color: k("color-text-secondary", "#57606a"),
2123
- display: "flex",
2124
- flexWrap: "nowrap",
2125
- fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
2126
- fontSize: "13px",
2127
- gap: "0px",
2128
- msOverflowStyle: "none",
2129
- overflowX: "auto",
2130
- overflowY: "hidden",
2131
- padding: "0px 0px",
2132
- scrollbarWidth: "none",
2133
- width: "100%"
2134
- }), a.className("yoya-vrouter-views-content"), a.styles({
2135
- minHeight: "120px",
2136
- padding: "16px"
2137
- }), r.child(i, a, c);
2138
- let u = () => {
2139
- let e = l.titlePosition !== "top";
2140
- if (l.lockTitle) {
2141
- r.styles({
2142
- display: "flex",
2143
- flexDirection: e ? "row" : "column",
2144
- height: "100%",
2145
- minHeight: "0",
2146
- overflow: "hidden"
2147
- }), i.style("flex", "0 0 auto"), a.styles({
2148
- flex: "1 1 auto",
2149
- minHeight: "0",
2150
- minWidth: "0",
2151
- overflow: "auto"
2152
- });
2153
- return;
2154
- }
2155
- r.styles({
2156
- flexDirection: null,
2157
- height: null,
2158
- minHeight: null,
2159
- overflow: "hidden"
2160
- }), i.style("flex", null), a.styles({
2161
- flex: e ? "1 1 auto" : null,
2162
- minHeight: "120px",
2163
- minWidth: e ? "0" : null,
2164
- overflow: null
2165
- });
2166
- }, f = (e) => {
2167
- let t = e !== "top";
2168
- r.styles({
2169
- alignItems: t ? "stretch" : null,
2170
- display: t ? "flex" : null
2171
- }), i.styles({
2172
- background: k("color-surface-hover", "#f6f8fa"),
2173
- borderBottom: t ? null : A("color-border", "#d0d7de"),
2174
- borderLeft: e === "right" ? "1px solid" : null,
2175
- borderLeftColor: e === "right" ? k("color-border", "#d0d7de") : null,
2176
- borderLeftStyle: e === "right" ? "solid" : null,
2177
- borderLeftWidth: e === "right" ? "1px" : null,
2178
- borderRight: e === "left" ? "1px solid" : null,
2179
- borderRightColor: e === "left" ? k("color-border", "#d0d7de") : null,
2180
- borderRightStyle: e === "left" ? "solid" : null,
2181
- borderRightWidth: e === "left" ? "1px" : null,
2182
- boxSizing: "border-box",
2183
- color: k("color-text-secondary", "#57606a"),
2184
- display: "flex",
2185
- flexDirection: t ? "column" : "row",
2186
- flexShrink: t ? "0" : null,
2187
- flexWrap: "nowrap",
2188
- fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
2189
- fontSize: "13px",
2190
- gap: "0px",
2191
- msOverflowStyle: "none",
2192
- overflowX: t ? "hidden" : "auto",
2193
- overflowY: t ? "auto" : "hidden",
2194
- padding: t ? "10px 8px" : "0px 0px",
2195
- scrollbarWidth: "none",
2196
- width: t ? null : "100%"
2197
- }), a.styles({
2198
- flex: t ? "1 1 auto" : null,
2199
- minWidth: t ? "0" : null
2200
- });
2201
- let n = e === "right" ? [
2202
- a,
2203
- i,
2204
- c
2205
- ] : [
2206
- i,
2207
- a,
2208
- c
2209
- ];
2210
- r.clearChildren().child(n), r._el && n.forEach((e) => {
2211
- let t = e.renderDom();
2212
- t && r._el.appendChild(t);
2213
- }), u();
2214
- }, p = (e = {}) => {
2215
- let t = l.title, n = e.route?.title;
2216
- if (n !== void 0 && (t = typeof n == "function" ? n(e) : n), l.titleResolver) {
2217
- let n = l.titleResolver(e);
2218
- n != null && (t = typeof n == "function" ? n(e) : n);
2219
- }
2220
- return t ?? "";
2221
- }, m = (e, t) => {
2222
- let n = e.tab, r = l.titlePosition, i = r !== "top";
2223
- e.label.attr("aria-selected", String(t)), n.styles({
2224
- background: t ? k("color-surface", "#ffffff") : k("color-surface-active", "#eaeef2"),
2225
- border: A("color-border", "#d0d7de"),
2226
- borderBottomColor: r === "top" && t ? k("color-surface", "#ffffff") : k("color-border", "#d0d7de"),
2227
- borderLeftColor: "transparent",
2228
- borderRightColor: r === "left" && t ? k("color-surface", "#ffffff") : k("color-border", "#d0d7de"),
2229
- color: t ? k("color-text", "#24292f") : k("color-text-secondary", "#57606a"),
2230
- fontWeight: t ? "600" : "400",
2231
- marginBottom: r === "top" ? "-9px" : "0",
2232
- marginLeft: r === "right" ? "-9px" : "0",
2233
- marginRight: r === "left" ? "-9px" : "0",
2234
- padding: i ? "8px 10px" : "7px 14px 8px"
2235
- });
2236
- }, g = (e) => {
2237
- l.overflow = !!e, r.attr("data-title-overflow", l.overflow ? "true" : null), s.style("display", l.overflow ? "inline-flex" : "none");
2238
- }, _ = () => {
2239
- if (l.titlePosition !== "top" || l.tabs.size <= J) {
2240
- g(!1);
2241
- return;
2242
- }
2243
- g(!0);
2244
- }, v = () => {
2245
- let e = Array.from(l.tabs.entries()), t = e.slice(0, J).map(([, e]) => e.tab).filter((e) => e !== s);
2246
- if (!(e.length > J && l.titlePosition === "top")) {
2247
- l.popupOpen && x(), i._children = t, i._childrenDirty = !0, i._el ? i._el.replaceChildren(...t.map((e) => e.renderDom()).filter(Boolean)) : s._el?.remove(), g(!1);
2248
- return;
2249
- }
2250
- if (i._children = [...t, s], i._childrenDirty = !0, i._el) {
2251
- let e = t.map((e) => e.renderDom()).filter(Boolean);
2252
- i._el.replaceChildren(...e, s.renderDom());
2253
- }
2254
- _();
2255
- }, y = () => {
2256
- if (!(!l.persist || l.suppressPersist || typeof localStorage > "u")) try {
2257
- localStorage.setItem(l.storageKey, JSON.stringify({
2258
- activePath: e.currentPath(),
2259
- paths: Array.from(l.tabs.keys())
2260
- }));
2261
- } catch {}
2262
- }, b = null, x = () => {
2263
- l.popupOpen = !1, r.attr("data-title-popup", null), s.attr("aria-expanded", "false"), c.style("display", "none"), b &&= (b(), null);
2264
- }, S = () => {
2265
- c.clearChildren(), c._el && c._el.replaceChildren(), Array.from(l.tabs.entries()).slice(J).forEach(([t, n]) => {
2266
- let r = n.text.textContent(), i = new h("div").className("yoya-vrouter-views-popup-item").attr({
2267
- role: "menuitem",
2268
- tabIndex: "0",
2269
- "data-router-view-path": t
2270
- }).styles({
2271
- alignItems: "center",
2272
- borderRadius: "6px",
2273
- color: k("color-text", "#24292f"),
2274
- cursor: "pointer",
2275
- display: "flex",
2276
- fontSize: "13px",
2277
- gap: "8px",
2278
- padding: "7px 8px",
2279
- width: "100%"
2280
- }), a = new h("span").className("yoya-vrouter-views-popup-title").styles({
2281
- flex: "1",
2282
- minWidth: "0",
2283
- overflow: "hidden",
2284
- textOverflow: "ellipsis",
2285
- whiteSpace: "nowrap"
2286
- }).text(r), o = new h("button").className("yoya-vrouter-views-popup-close").attr({
2287
- type: "button",
2288
- "aria-label": `关闭 ${r}`
2289
- }).styles({
2290
- background: "transparent",
2291
- border: "0",
2292
- color: "inherit",
2293
- cursor: "pointer",
2294
- flexShrink: "0",
2295
- font: "inherit",
2296
- lineHeight: "1",
2297
- padding: "2px 4px"
2298
- }).text("×");
2299
- t === e.currentPath() && (i.attr("aria-current", "true"), i.styles({
2300
- background: k("color-primary-subtle", "#e8f0fe"),
2301
- color: k("color-primary", "#1f6feb")
2302
- }));
2303
- let s = () => {
2304
- x(), e.navigate(t);
2305
- };
2306
- i.on("click", s), i.on("keydown", (e) => {
2307
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), s());
2308
- }), o.on("click", (e) => {
2309
- e.stopPropagation(), ne(t, e), l.popupOpen && S();
2310
- }), i.child(a, o), c.child(i);
2311
- });
2312
- }, ee = () => {
2313
- if (l.tabs.size === 0) return;
2314
- xi(), S(), l.popupOpen = !0, r.attr("data-title-popup", "true"), s.attr("aria-expanded", "true"), c.styles({ display: "block" }), f();
2315
- let e = (e) => {
2316
- !c._el?.contains(e.target) && !s._el?.contains(e.target) && x();
2317
- }, t = (e) => {
2318
- e.key === "Escape" && x();
2319
- }, n = () => f(), i = () => f(), a = D("click", e), o = D("keydown", t), u = O("scroll", n, !0), d = O("resize", i);
2320
- b = () => {
2321
- a(), o(), u(), d();
2322
- };
2323
- function f() {
2324
- let e = s._el?.getBoundingClientRect(), t = c._el?.getBoundingClientRect();
2325
- if (!e || !t) return;
2326
- let n = window.innerWidth || document.documentElement?.clientWidth || 0, r = window.innerHeight || document.documentElement?.clientHeight || 0, i = e.right - t.width;
2327
- i = Math.max(8, Math.min(i, n - t.width - 8));
2328
- let a = e.bottom + 4;
2329
- a + t.height + 8 > r && (a = Math.max(8, e.top - t.height - 4)), c.styles({
2330
- left: `${i}px`,
2331
- top: `${a}px`
2332
- });
2333
- }
2334
- };
2335
- s.on("click", () => {
2336
- l.popupOpen ? x() : ee();
2337
- });
2338
- let te = r.renderDom.bind(r);
2339
- r.renderDom = () => {
2340
- xi();
2341
- let e = te();
2342
- return _(), e;
2343
- }, r.updateOverflow = _, r.titlePosition = (t) => {
2344
- if (t === void 0) return l.titlePosition;
2345
- let n = Pi(t);
2346
- return l.titlePosition = n, n !== "top" && l.popupOpen && x(), r.attr("data-title-position", l.titlePosition), i.attr("aria-orientation", l.titlePosition === "top" ? "horizontal" : "vertical"), f(l.titlePosition), v(), l.tabs.forEach((t, n) => {
2347
- m(t, n === e.currentPath());
2348
- }), _(), r;
2349
- }, r.titlePosition(l.titlePosition), r.lockTitle = (e = !0) => e === void 0 ? l.lockTitle : (l.lockTitle = !!e, r.attr("data-title-locked", l.lockTitle ? "true" : null), f(l.titlePosition), _(), r), r.titleLocked = r.lockTitle;
2350
- let ne = (t, n = null) => {
2351
- n && n.stopPropagation();
2352
- let r = Array.from(l.tabs.entries()).findIndex(([e]) => e === t), o = l.tabs.get(t);
2353
- if (!o) return;
2354
- let s = o.label.attr("aria-selected") === "true";
2355
- if (l.tabs.delete(t), i._children = i.children().filter((e) => e !== o.tab), i._childrenDirty = !0, o.tab.destroy(), v(), y(), !s) return;
2356
- let c = Array.from(l.tabs.keys());
2357
- if (c.length > 0) {
2358
- let t = c[Math.min(r, c.length - 1)];
2359
- e.navigate(t, { replace: !0 });
2360
- return;
2361
- }
2362
- a.clearChildren().commit(), e._navigationGeneration += 1, e._currentView = null;
2363
- }, C = new h("div").className("yoya-vrouter-views-context").attr({
2364
- role: "menu",
2365
- "aria-label": "标签页操作"
2366
- }).styles({
2367
- background: k("color-surface", "#ffffff"),
2368
- border: A("color-border", "#d0d7de"),
2369
- borderRadius: "8px",
2370
- boxShadow: "0 12px 28px rgba(15, 23, 42, 0.18)",
2371
- display: "none",
2372
- minWidth: "180px",
2373
- padding: "6px",
2374
- position: "fixed",
2375
- zIndex: "100"
2376
- }), re = null, w = () => {
2377
- C.styles({ display: "none" }), C.clearChildren(), C._el?.remove(), re &&= (re(), null);
2378
- }, T = (t, n = null) => {
2379
- let r = new Set(t), o = Array.from(l.tabs.entries()), s = o.findIndex(([e]) => r.has(e));
2380
- if (o.forEach(([e, t]) => {
2381
- r.has(e) && (l.tabs.delete(e), i._children = i.children().filter((e) => e !== t.tab), i._childrenDirty = !0, t.tab.destroy());
2382
- }), v(), y(), l.popupOpen && S(), !r.has(e.currentPath())) return;
2383
- let c = Array.from(l.tabs.keys());
2384
- if (c.length === 0) {
2385
- a.clearChildren().commit(), e._navigationGeneration += 1, e._currentView = null;
2386
- return;
2387
- }
2388
- let u = n && l.tabs.has(n) ? n : c[Math.min(Math.max(s, 0), c.length - 1)];
2389
- e.navigate(u, { replace: !0 });
2390
- }, ie = (t) => {
2391
- if (typeof navigator > "u" || !navigator.clipboard) return;
2392
- let n = typeof window > "u" ? "" : window.location.origin, r = typeof window > "u" ? "" : window.location.pathname, i = e.mode() === "history" ? `${n}${r}${t}` : `${n}${r}#${t}`;
2393
- navigator.clipboard.writeText(i).catch(() => {});
2394
- }, ae = (t, n) => {
2395
- l.popupOpen && x(), w();
2396
- let r = Array.from(l.tabs.entries()), i = r.findIndex(([e]) => e === t), a = () => T(r.filter(([e]) => e !== t).map(([e]) => e), t), o = () => T(r.slice(0, i).map(([e]) => e), t), s = () => T(r.slice(i + 1).map(([e]) => e), t), c = () => T(r.map(([e]) => e)), u = (e, t, n = !1, r = !1) => {
2397
- let i = new h("div").className("yoya-vrouter-views-context-item").attr({
2398
- role: "menuitem",
2399
- tabIndex: "0"
2400
- }).text(e).styles({
2401
- alignItems: "center",
2402
- borderRadius: "6px",
2403
- color: n ? k("color-text-danger", "#b91c1c") : k("color-text", "#24292f"),
2404
- cursor: r ? "default" : "pointer",
2405
- display: "flex",
2406
- fontSize: "13px",
2407
- gap: "8px",
2408
- padding: "7px 10px",
2409
- width: "100%"
2410
- });
2411
- return r ? (i.attr("aria-disabled", "true"), i.styles({ opacity: "0.4" })) : i.on("click", () => {
2412
- w(), t();
2413
- }), C.child(i), i;
2414
- }, d = () => C.child(new h("div").className("yoya-vrouter-views-context-separator"));
2415
- u("刷新", () => e.navigate(t, { replace: !0 })), u("复制链接", () => ie(t)), d(), u("关闭", () => ne(t), !0), u("关闭其他", a, !1, r.length <= 1), u("关闭左侧", o, !1, i <= 0), u("关闭右侧", s, !1, i === r.length - 1), d(), u("关闭全部", c, !0, r.length === 0), C.bindTo(document.body), C.styles({ display: "block" });
2416
- let f = C._el.getBoundingClientRect(), p = typeof window > "u" ? 0 : window.innerWidth || 0, m = typeof window > "u" ? 0 : window.innerHeight || 0, g = Math.max(8, Math.min(n.clientX || 0, p - f.width - 8)), _ = Math.max(8, Math.min(n.clientY || 0, m - f.height - 8));
2417
- C.styles({
2418
- left: `${g}px`,
2419
- top: `${_}px`
2420
- });
2421
- let v = (e) => {
2422
- C._el?.contains(e.target) || w();
2423
- }, y = (e) => {
2424
- e.key === "Escape" && w();
2425
- }, b = () => w(), S = D("mousedown", v), ee = D("keydown", y), te = O("scroll", b, !0), ae = O("resize", b);
2426
- re = () => {
2427
- S(), ee(), te(), ae();
2428
- };
2429
- }, E = (t = {}) => {
2430
- let n = t.path || e.currentPath(), r = new Set(l.titlePosition === "top" ? Array.from(l.tabs.keys()).slice(0, J) : Array.from(l.tabs.keys())), a = l.tabs.get(n);
2431
- if (a) {
2432
- let e = p(t);
2433
- a.text.textContent(e), a.closeButton.attr("aria-label", `关闭 ${e}`);
2434
- } else {
2435
- let r = new h("div").className("yoya-vrouter-views-title"), o = d(p(t)), s = new h("button").className("yoya-vrouter-views-label").child(o), c = new h("button").className("yoya-vrouter-views-close");
2436
- r.attr({ "data-router-view-path": n }), r.styles({
2437
- alignItems: "center",
2438
- cursor: "pointer",
2439
- display: "inline-flex",
2440
- font: "inherit",
2441
- gap: "8px",
2442
- whiteSpace: "nowrap"
2443
- }), s.attr({
2444
- role: "tab",
2445
- type: "button"
2446
- }), s.styles({
2447
- background: "transparent",
2448
- border: "0",
2449
- color: "inherit",
2450
- cursor: "pointer",
2451
- font: "inherit",
2452
- padding: "0"
2453
- }), s.on("click", () => e.navigate(n)), c.attr({
2454
- type: "button",
2455
- "aria-label": `关闭 ${p(t)}`
2456
- }), c.styles({
2457
- background: "transparent",
2458
- border: "0",
2459
- color: "inherit",
2460
- cursor: "pointer",
2461
- font: "inherit",
2462
- lineHeight: "1",
2463
- padding: "0"
2464
- }), c.text("×"), c.on("click", (e) => ne(n, e)), r.on("contextmenu", (e) => {
2465
- e.preventDefault(), e.stopPropagation(), ae(n, e);
2466
- }), r.child(s, c), i.child(r), a = {
2467
- closeButton: c,
2468
- label: s,
2469
- tab: r,
2470
- text: o
2471
- }, l.tabs.set(n, a), m(a, !1);
2472
- }
2473
- r.has(n) || (l.tabs.delete(n), l.tabs = new Map([[n, a], ...l.tabs])), l.tabs.forEach((e, t) => m(e, t === n)), v(), l.popupOpen && S(), y();
2474
- }, oe = () => {
2475
- if (!l.persist) return;
2476
- let t = Ci(l.storageKey);
2477
- if (t) {
2478
- l.suppressPersist = !0;
2479
- try {
2480
- t.paths.slice().reverse().forEach((t) => {
2481
- let n = e._resolve(t);
2482
- E({
2483
- ...n.context,
2484
- path: t
2485
- });
2486
- });
2487
- } finally {
2488
- l.suppressPersist = !1, y();
2489
- }
2490
- }
2491
- };
2492
- if (typeof t == "function") t(r);
2493
- else if (t && typeof t == "object") {
2494
- let { persist: e, storageKey: n, title: i, titlePosition: a, titleResolver: o, ...s } = t;
2495
- i !== void 0 && (l.title = i), e !== void 0 && (l.persist = !!e), n !== void 0 && (l.storageKey = n), a !== void 0 && r.titlePosition(a), typeof o == "function" && (l.titleResolver = o), Object.keys(s).length > 0 && r.setup(s);
2496
- }
2497
- e.outlet(a), oe(), (e.currentRoute() || e.currentPath() !== "/") && E({
2498
- params: e.currentParams(),
2499
- path: e.currentPath(),
2500
- query: e.currentQuery(),
2501
- route: e.currentRoute(),
2502
- router: e
2503
- });
2504
- let se = e.subscribe((e) => E(e)), ce = O("resize", () => _()), le = r.destroy.bind(r);
2505
- return r.destroy = () => (l.popupOpen && x(), w(), ce(), se(), e.outlet() === a && e.outlet(e), le()), typeof n == "function" && n(r), r;
2506
- }
2507
- _(h, {
2508
- vLink: ki,
2509
- vRouter: Oi,
2510
- vRouterView: Ai,
2511
- vRouterViews: ji
2512
- });
2513
- function Mi(e, t) {
2514
- let n = {
2515
- beforeEnter: null,
2516
- error: null,
2517
- loading: null,
2518
- pattern: Zi(e),
2519
- title: null,
2520
- view: null
2521
- };
2522
- return typeof t == "function" || t instanceof c || $i(t) ? (n.view = t, n) : (t && typeof t == "object" && (n.beforeEnter = t.beforeEnter || null, n.error = t.error ?? null, n.loading = t.loading ?? null, n.title = t.title ?? null, n.view = t.view || t.component || null), n);
2523
- }
2524
- function Ni(e) {
2525
- if (!(e instanceof wi)) throw TypeError("vLink and vRouterView require a Router instance");
2526
- }
2527
- function Pi(e) {
2528
- return e === "left" || e === "right" ? e : "top";
2529
- }
2530
- function Fi(e, t) {
2531
- if (typeof t == "function") return t(e), e;
2532
- if (!t || typeof t != "object") return e;
2533
- let { beforeEach: n, default: r, error: i, loading: a, notFound: o, routes: s = [], ...c } = t;
2534
- return Object.keys(c).length && e.setup(c), r !== void 0 && e.default(r), n && e.beforeEach(n), a !== void 0 && e.loading(a), i !== void 0 && e.error(i), s.forEach((t) => {
2535
- t?.pattern !== void 0 && e.vRoute(t.pattern, t.config);
2536
- }), o !== void 0 && e.notFound(o), e;
2537
- }
2538
- function Ii(e, t, n) {
2539
- if (typeof n == "function") {
2540
- n(e);
2541
- return;
2542
- }
2543
- if (typeof n == "string") {
2544
- e.to(n), e.label(n);
2545
- return;
2546
- }
2547
- if (!n) return;
2548
- let { exact: r, label: i, params: a, query: o, replace: s, to: c, ...l } = n;
2549
- Object.keys(l).length && e.setup(l), c !== void 0 && (t.to = c), a !== void 0 && (t.params = a || {}), o !== void 0 && (t.query = o || {}), s !== void 0 && (t.replace = !!s), r !== void 0 && (t.exact = !!r), t.label = i ?? t.to, e.label(t.label);
2550
- }
2551
- function Y(e, t, n, r) {
2552
- if (r === void 0) return t[n];
2553
- t[n] = r, n === "to" && t.label === null && N(e.children()[0], bn(r));
2554
- let i = e._routerInstance;
2555
- return i && Li(e, t, i), e;
2556
- }
2557
- function Li(e, t, n) {
2558
- e._routerInstance = n;
2559
- let r = Ri(t.to, t.params, t.query), i = zi(n.currentPath(), r, t.exact), a = new Set(String(e.attr("class") || "").split(/\s+/).filter(Boolean));
2560
- return a.add("yoya-vlink"), i ? a.add("is-active") : a.delete("is-active"), e.attr({
2561
- "aria-current": i ? "page" : null,
2562
- class: [...a].join(" "),
2563
- href: n.mode() === "history" ? r : `#${r}`
2564
- }), e;
2565
- }
2566
- function Ri(e, t, n) {
2567
- let [r, i = ""] = Z(e).split("?"), a = r.replace(/:([A-Za-z0-9_]+)/g, (e, n) => t[n] === void 0 ? e : encodeURIComponent(t[n])), o = new URLSearchParams(i);
2568
- Object.entries(n || {}).forEach(([e, t]) => {
2569
- o.delete(e), Array.isArray(t) ? t.forEach((t) => o.append(e, t)) : t != null && o.set(e, t);
2570
- });
2571
- let s = o.toString();
2572
- return s ? `${a}?${s}` : a;
2573
- }
2574
- function zi(e, t, n) {
2575
- let r = Z(e), i = Z(t);
2576
- if (n) return r === i;
2577
- let a = Q(r).pathname, o = Q(i).pathname;
2578
- return a === o || a.startsWith(`${o}/`);
2579
- }
2580
- function Bi(e, t) {
2581
- return !e.defaultPrevented && e.button === 0 && !e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey && (!t.attr("target") || t.attr("target") === "_self");
2582
- }
2583
- function X(e, t) {
2584
- if (e instanceof c) return e;
2585
- if (e == null) return d("");
2586
- if ($i(e)) return d(e);
2587
- if (typeof e == "object" && e && e.default !== void 0 && typeof e.render != "function") return X(e.default, t);
2588
- if (typeof e == "function") return X(e(t), t);
2589
- if (typeof e == "object" && typeof e.render == "function") return X(e.render(), t);
2590
- throw TypeError("Router route view must be a ViewNode, string, number, null, undefined, a render() component object, a factory returning one, or a module with a default export");
2591
- }
2592
- var Vi = () => "加载中…", Hi = (e) => `加载失败:${e?.message ?? String(e)}`;
2593
- function Ui(e) {
2594
- return e !== null && (typeof e == "object" || typeof e == "function") && typeof e.then == "function";
2595
- }
2596
- function Wi(e, t) {
2597
- return X(typeof e == "function" ? e(...t) : e, t[t.length - 1]);
2598
- }
2599
- function Gi(e, t) {
2600
- let n = Q(e), r = Q(t), i = Qi(n.pathname), a = Qi(r.pathname);
2601
- if (i.length !== a.length) return null;
2602
- let o = {};
2603
- for (let e = 0; e < i.length; e += 1) {
2604
- let t = i[e], n = a[e];
2605
- if (t.startsWith(":")) {
2606
- o[t.slice(1)] = decodeURIComponent(n);
2607
- continue;
2608
- }
2609
- if (t !== n) return null;
2610
- }
2611
- return {
2612
- params: o,
2613
- pathname: r.pathname,
2614
- query: r.query
2615
- };
2616
- }
2617
- function Ki(e, t, n, r) {
2618
- return {
2619
- params: { ...r.params },
2620
- path: t,
2621
- pathname: r.pathname,
2622
- query: { ...r.query },
2623
- route: n,
2624
- router: e
2625
- };
2626
- }
2627
- function qi() {
2628
- return typeof window > "u" ? "/" : Z(window.location.hash.replace(/^#/, "") || "/");
2629
- }
2630
- function Ji(e = "hash") {
2631
- return typeof window > "u" ? "/" : e === "history" ? Z(`${window.location.pathname}${window.location.search}`) : qi();
2632
- }
2633
- function Yi(e, t = {}) {
2634
- if (typeof window > "u") return !1;
2635
- let n = `#${e}`;
2636
- return t.replace ? (window.history.replaceState(null, "", n), !0) : window.location.hash !== n && (window.location.hash = n, !0);
2637
- }
2638
- function Xi(e, t = {}, n = "hash") {
2639
- if (typeof window > "u") return !1;
2640
- if (n !== "history") return Yi(e, t);
2641
- let r = Z(e), i = Ji("history");
2642
- return !t.replace && i === r ? !1 : (t.replace ? window.history.replaceState(null, "", r) : window.history.pushState(null, "", r), !0);
2643
- }
2644
- function Zi(e) {
2645
- return Z(e).split("?")[0] || "/";
2646
- }
2647
- function Z(e) {
2648
- let [t, n = ""] = String(e || "/").replace(/^#/, "").split("?"), r = t.startsWith("/") ? t : `/${t}`, i = r.length > 1 ? r.replace(/\/+$/, "") : r;
2649
- return n ? `${i}?${n}` : i;
2650
- }
2651
- function Q(e) {
2652
- let [t, n = ""] = Z(e).split("?");
2653
- return {
2654
- pathname: t,
2655
- query: Object.fromEntries(new URLSearchParams(n))
2656
- };
2657
- }
2658
- function Qi(e) {
2659
- return e.split("/").filter(Boolean);
2660
- }
2661
- function $i(e) {
2662
- return typeof e == "string" || typeof e == "number";
2663
- }
2664
- //#endregion
2665
- //#region src/core/id.js
2666
- var ea = null;
2667
- function ta() {
2668
- let e = 0;
2669
- return { next() {
2670
- return e += 1, e;
2671
- } };
2672
- }
2673
- function na(e, t) {
2674
- let n = ea;
2675
- ea = e;
2676
- try {
2677
- return t();
2678
- } finally {
2679
- ea = n;
2680
- }
2681
- }
2682
- //#endregion
2683
- //#region src/core/ssr.js
2684
- function ra(e = {}, t = {}) {
2685
- let { cookie: n = "", url: r = "", acceptLanguage: i = "" } = e || {}, { cookieKey: a = "yoya-lang", queryKey: o = "locale", defaultLanguage: s = "zh-CN" } = t;
2686
- return ia(n, a) || aa(r, o) || oa(i) || s;
2687
- }
2688
- function ia(e, t) {
2689
- if (!e || !t) return null;
2690
- for (let n of String(e).split(";")) {
2691
- let e = n.indexOf("=");
2692
- if (e === -1 || n.slice(0, e).trim() !== t) continue;
2693
- let r = n.slice(e + 1).trim();
2694
- if (!r) return null;
2695
- try {
2696
- return decodeURIComponent(r);
2697
- } catch {
2698
- return r;
2699
- }
2700
- }
2701
- return null;
2702
- }
2703
- function aa(e, t) {
2704
- if (!e || !t) return null;
2705
- let n = String(e).indexOf("?");
2706
- return n === -1 ? null : new URLSearchParams(String(e).slice(n + 1)).get(t) || null;
2707
- }
2708
- function oa(e) {
2709
- if (!e) return null;
2710
- let t = String(e).split(",")[0];
2711
- return t && t.split(";")[0].trim() || null;
2712
- }
2713
- function sa(e, t, n) {
2714
- return e ? zr(typeof e == "function" ? e(t) : e, n) : n();
2715
- }
2716
- function $(e, t = null) {
2717
- if (e instanceof c) return e;
2718
- if (typeof e == "function") return $(e(t), t);
2719
- if (e && typeof e.render == "function") return $(e.render(), t);
2720
- throw TypeError("renderToString/mount requires a ViewNode, a component object with render(), or a factory function");
2721
- }
2722
- function ca(e) {
2723
- let t = 1;
2724
- return typeof e.children == "function" && e.children().forEach((e) => {
2725
- t += ca(e instanceof u ? e._resolve() : e);
2726
- }), t;
2727
- }
2728
- function la(e, t = {}) {
2729
- let { maxNodes: n = Infinity, state: r = null, i18n: i = null } = t || {}, a = ma(r);
2730
- return na(ta(), () => sa(i, r, () => {
2731
- let t = typeof e == "function", i = $(e, r), o;
2732
- try {
2733
- o = ca(i) > n ? {
2734
- exceeded: !0,
2735
- html: "",
2736
- state: a
2737
- } : {
2738
- exceeded: !1,
2739
- html: i.toHTML(),
2740
- state: a
2741
- };
2742
- } finally {
2743
- t && i.destroy();
2744
- }
2745
- return o;
2746
- }));
2747
- }
2748
- var ua = class extends v {
2749
- constructor() {
2750
- super("html", null), this._headCallback = null, this._bodyCallback = null;
2751
- }
2752
- head(e) {
2753
- return this._headCallback = typeof e == "function" ? e : null, this;
2754
- }
2755
- body(e) {
2756
- return this._bodyCallback = typeof e == "function" ? e : null, this;
2757
- }
2758
- vBody(...e) {
2759
- return this.body((t) => t.vBody(...e));
2760
- }
2761
- };
2762
- function da(e) {
2763
- return String(e ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;");
2764
- }
2765
- function fa(e, t = {}, n = {}) {
2766
- let { client: r = "/client.js", containerId: i = "app", i18n: a = null, maxNodes: o = Infinity, messages: s, stateId: c = "__YOYA_DATA__" } = n || {}, l = t || {};
2767
- if (!e || typeof e.page != "function") throw TypeError("renderPage requires { page: (page, state) => {} }");
2768
- let u = a || (s ? () => Ir({
2769
- language: l.lang || "zh-CN",
2770
- messages: s
2771
- }) : null), d = ma(l);
2772
- return na(ta(), () => sa(u, l, () => {
2773
- let t = new ua();
2774
- e.page(t, l);
2775
- let n = new v("head");
2776
- t._headCallback && t._headCallback(n, l);
2777
- let a = new v("body");
2778
- t._bodyCallback && t._bodyCallback(a, l);
2779
- let s = ca(a) > o, u = n.toHTML(), f = `<div id="${da(i)}">`, p = s ? `${f}</div>` : `${f}${a.toHTML()}</div>`, m = `<script type="application/json" id="${da(c)}">${d}<\/script>`, h = `<script type="module" src="${da(r)}"><\/script>`;
2780
- return n.destroy(), a.destroy(), `<!doctype html>
2781
- <html lang="${da(l.lang || "zh-CN")}">
2782
- ${u}
2783
- <body>
2784
- ${p}
2785
- ${m}
2786
- ${h}
2787
- </body>
2788
- </html>`;
2789
- }));
2790
- }
2791
- function pa(e, t = {}) {
2792
- if (typeof document > "u") return null;
2793
- let { messages: r, i18n: i = null, stateId: a = "__YOYA_DATA__", target: o = "#app" } = t || {}, s = document.getElementById(a), c = ha(s ? s.textContent : ""), l = i || (r ? () => Ir({
2794
- language: c?.lang || "zh-CN",
2795
- messages: r
2796
- }) : null), u = n(o);
2797
- return u && u.firstElementChild ? _a(e, o, c, { i18n: l }) : ga(e, o, c, { i18n: l });
2798
- }
2799
- function ma(e) {
2800
- return e == null ? null : JSON.stringify(e).replace(/</g, "\\u003c");
2801
- }
2802
- function ha(e) {
2803
- return e == null || e === "" ? null : JSON.parse(e);
2804
- }
2805
- function ga(e, t, r = null, i = {}) {
2806
- return na(ta(), () => sa(i.i18n, r, () => {
2807
- let i = $(e, r), a = n(t);
2808
- return a && (a.replaceChildren(), a.appendChild(i.renderDom())), i;
2809
- }));
2810
- }
2811
- function _a(e, t, r = null, i = {}) {
2812
- return na(ta(), () => sa(i.i18n, r, () => {
2813
- let i = $(e, r), a = n(t);
2814
- if (a) {
2815
- let e = a.firstElementChild;
2816
- e ? (va(i, e), ba(i), ya(i), i.renderDom()) : a.appendChild(i.renderDom());
2817
- }
2818
- return i;
2819
- }));
2820
- }
2821
- function va(e, t) {
2822
- if (e instanceof u) {
2823
- va(e._resolve(), t);
2824
- return;
2825
- }
2826
- if (e instanceof l) {
2827
- t && t.nodeType === 3 ? (e._textNode = t, e._el = t, t.textContent !== e._content && (t.textContent = e._content)) : xa(t, e.renderDom());
2828
- return;
2829
- }
2830
- if (t && t.nodeType === 1 && t.tagName.toLowerCase() === e._tagName) {
2831
- e._el = t, e._hydrated = !0;
2832
- let n = Array.from(t.childNodes);
2833
- e.children().forEach((e, t) => va(e, n[t]));
2834
- return;
2835
- }
2836
- xa(t, e.renderDom());
2837
- }
2838
- function ya(e) {
2839
- if (e instanceof u) {
2840
- ya(e._resolve());
2841
- return;
2842
- }
2843
- e instanceof l || (e._el && e._hydrated && e._applyBindingsToElement(), e.children().forEach(ya));
2844
- }
2845
- function ba(e) {
2846
- if (e instanceof u) {
2847
- ba(e._resolve());
2848
- return;
2849
- }
2850
- e instanceof l || (e.children().forEach(ba), typeof e.hydrateSnapshot == "function" && e.hydrateSnapshot());
2851
- }
2852
- function xa(e, t) {
2853
- e && e.parentNode && e.parentNode.replaceChild(t, e);
2854
- }
2855
- //#endregion
2856
- export { Ar as ClientOnlyNode, u as ComponentNode, h as ElementNode, v as HtmlElementNode, Pr as I18n, Fr as I18nTextNode, ua as PageDocumentNode, vi as RequestBase, yi as Result, wi as Router, l as TextNode, l as VTextNode, l as ViewTextNode, En as VMasonry, Sn as VSplitPanel, On as VThemeShell, c as ViewNode, S as a, ee as abbr, te as address, m as applyElementOptions, ne as area, C as article, re as aside, w as audio, T as b, ie as base, ae as bdi, E as bdo, D as bindDocumentEvent, O as bindWindowEvent, oe as blockquote, se as body, ce as br, le as button, ue as canvas, de as caption, In as center, fe as cite, pe as code, me as col, he as colgroup, _i as configureRequest, Wn as container, g as createElementFactory, b as createHtmlFactories, Ir as createI18n, Ti as createRouter, Hn as createVBodyPage, ge as data, _e as datalist, ve as dd, ye as del, be as details, xe as dfn, Se as dialog, Ce as div, $n as divider, we as dl, Te as dt, Ee as em, De as embed, r as escapeHtml, Oe as fieldset, ke as figcaption, Ae as figure, Mn as flex, je as footer, Me as form, Ur as getI18n, Gr as getPersistedI18nLocales, di as getYoyaMode, mi as getYoyaTheme, zn as grid, Ne as h1, Pe as h2, Fe as h3, Ie as h4, Le as h5, Re as h6, ze as head, Be as header, Ve as hgroup, He as hr, Fn as hstack, Ue as html, _a as hydrate, pa as hydrateOrMount, We as i, G as i18n, Lr as i18nText, Ge as iframe, Ke as img, hi as initYoyaTheme, rn as injectDocumentStyle, qe as input, Je as ins, Rr as installI18nStringShortcut, Ye as kbd, Xe as label, Ze as legend, Qe as li, $e as link, Wr as listI18n, et as main, tt as map, nt as mark, rt as menu, it as meta, at as meter, Kn as mobileLayout, ga as mount, ot as nav, f as normalizeChild, p as normalizeSetupArguments, st as noscript, ct as object, lt as ol, ut as optgroup, dt as option, ft as output, pt as p, ha as parseState, mt as picture, ht as pre, gt as progress, _t as q, _ as registerChildFactories, Vr as registerI18n, fa as renderPage, la as renderToString, ra as resolveLocale, n as resolveTarget, fi as resolveYoyaMode, Bn as responsiveGrid, Ei as router, vt as rp, yt as rt, bt as ruby, xt as s, St as samp, Ct as script, wt as search, Tt as section, Et as select, Dt as selectedcontent, ma as serializeState, ui as setYoyaMode, pi as setYoyaTheme, Ot as slot, kt as small, At as source, Qn as spacer, jt as span, Nn as stack, Mt as strong, Nt as style, Pt as styleTag, Ft as sub, It as summary, Lt as sup, Rt as table, zt as tbody, Bt as td, Vt as template, d as text, d as vText, Ht as textarea, Ut as tfoot, Wt as th, Gt as thead, Kt as time, qt as title, Jt as tr, Yt as track, Xt as u, Zt as ul, nn as unbindDocumentEvent, Hr as unregisterI18n, Yn as vAside, Vn as vBody, jr as vClientOnly, Rn as vCol, Gn as vContainer, Zn as vFooter, Jn as vHeader, ki as vLink, Xn as vMain, Dn as vMasonry, qn as vMobileLayout, Di as vRoute, Oi as vRouter, Ai as vRouterView, ji as vRouterViews, Ln as vRow, Cn as vSplitPanel, ai as vStateNode, kn as vThemeShell, Qt as varTag, $t as video, Pn as vstack, en as wbr, zr as withI18nStringShortcut };