@echolab-auto/echo-prodoc 0.1.0

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 (370) hide show
  1. package/README.md +56 -0
  2. package/bin/echo-prodoc.js +2 -0
  3. package/package.json +49 -0
  4. package/packages/prodoc-cli/dist/index.d.ts +10 -0
  5. package/packages/prodoc-cli/dist/index.d.ts.map +1 -0
  6. package/packages/prodoc-cli/dist/index.js +251 -0
  7. package/packages/prodoc-cli/dist/index.js.map +1 -0
  8. package/packages/prodoc-cli/dist/server.d.ts +13 -0
  9. package/packages/prodoc-cli/dist/server.d.ts.map +1 -0
  10. package/packages/prodoc-cli/package.json +39 -0
  11. package/packages/prodoc-core/dist/index.cjs +1 -0
  12. package/packages/prodoc-core/dist/index.d.ts +12 -0
  13. package/packages/prodoc-core/dist/index.d.ts.map +1 -0
  14. package/packages/prodoc-core/dist/index.js +2 -0
  15. package/packages/prodoc-core/package.json +30 -0
  16. package/packages/prodoc-editor/dist/index.cjs +1 -0
  17. package/packages/prodoc-editor/dist/index.css +2 -0
  18. package/packages/prodoc-editor/dist/index.d.ts +10 -0
  19. package/packages/prodoc-editor/dist/index.d.ts.map +1 -0
  20. package/packages/prodoc-editor/dist/index.js +3 -0
  21. package/packages/prodoc-editor/package.json +40 -0
  22. package/packages/prodoc-renderer/dist/index.cjs +1 -0
  23. package/packages/prodoc-renderer/dist/index.css +2 -0
  24. package/packages/prodoc-renderer/dist/index.d.ts +11 -0
  25. package/packages/prodoc-renderer/dist/index.d.ts.map +1 -0
  26. package/packages/prodoc-renderer/dist/index.js +3 -0
  27. package/packages/prodoc-renderer/package.json +38 -0
  28. package/scripts/build-if-needed.js +37 -0
  29. package/scripts/install-ui-frame.js +269 -0
  30. package/scripts/link-system-bin.js +82 -0
  31. package/scripts/publish.sh +64 -0
  32. package/vendor/@echolab/ui-frame/dist/NeumorphismAlert.css +1 -0
  33. package/vendor/@echolab/ui-frame/dist/NeumorphismAutoComplete.css +1 -0
  34. package/vendor/@echolab/ui-frame/dist/NeumorphismAvatar.css +1 -0
  35. package/vendor/@echolab/ui-frame/dist/NeumorphismBadge.css +1 -0
  36. package/vendor/@echolab/ui-frame/dist/NeumorphismBreadcrumb.css +1 -0
  37. package/vendor/@echolab/ui-frame/dist/NeumorphismButton.css +1 -0
  38. package/vendor/@echolab/ui-frame/dist/NeumorphismCanvas.css +1 -0
  39. package/vendor/@echolab/ui-frame/dist/NeumorphismCard.css +1 -0
  40. package/vendor/@echolab/ui-frame/dist/NeumorphismCheckbox.css +1 -0
  41. package/vendor/@echolab/ui-frame/dist/NeumorphismCol.css +1 -0
  42. package/vendor/@echolab/ui-frame/dist/NeumorphismCollapse.css +1 -0
  43. package/vendor/@echolab/ui-frame/dist/NeumorphismContainer.css +1 -0
  44. package/vendor/@echolab/ui-frame/dist/NeumorphismDatePicker.css +1 -0
  45. package/vendor/@echolab/ui-frame/dist/NeumorphismDivider.css +1 -0
  46. package/vendor/@echolab/ui-frame/dist/NeumorphismDrawer.css +1 -0
  47. package/vendor/@echolab/ui-frame/dist/NeumorphismDropdown.css +1 -0
  48. package/vendor/@echolab/ui-frame/dist/NeumorphismEmpty.css +1 -0
  49. package/vendor/@echolab/ui-frame/dist/NeumorphismFieldError.css +1 -0
  50. package/vendor/@echolab/ui-frame/dist/NeumorphismFieldLabel.css +1 -0
  51. package/vendor/@echolab/ui-frame/dist/NeumorphismFormItem.css +1 -0
  52. package/vendor/@echolab/ui-frame/dist/NeumorphismInput.css +1 -0
  53. package/vendor/@echolab/ui-frame/dist/NeumorphismInputNumber.css +1 -0
  54. package/vendor/@echolab/ui-frame/dist/NeumorphismLayout.css +1 -0
  55. package/vendor/@echolab/ui-frame/dist/NeumorphismList.css +1 -0
  56. package/vendor/@echolab/ui-frame/dist/NeumorphismMenu.css +1 -0
  57. package/vendor/@echolab/ui-frame/dist/NeumorphismModal.css +1 -0
  58. package/vendor/@echolab/ui-frame/dist/NeumorphismNavMenu.css +1 -0
  59. package/vendor/@echolab/ui-frame/dist/NeumorphismPagination.css +1 -0
  60. package/vendor/@echolab/ui-frame/dist/NeumorphismPopover.css +1 -0
  61. package/vendor/@echolab/ui-frame/dist/NeumorphismProgress.css +1 -0
  62. package/vendor/@echolab/ui-frame/dist/NeumorphismRadioGroup.css +1 -0
  63. package/vendor/@echolab/ui-frame/dist/NeumorphismSelect.css +1 -0
  64. package/vendor/@echolab/ui-frame/dist/NeumorphismSkeleton.css +1 -0
  65. package/vendor/@echolab/ui-frame/dist/NeumorphismSlider.css +1 -0
  66. package/vendor/@echolab/ui-frame/dist/NeumorphismSteps.css +1 -0
  67. package/vendor/@echolab/ui-frame/dist/NeumorphismSwitch.css +1 -0
  68. package/vendor/@echolab/ui-frame/dist/NeumorphismTable.css +1 -0
  69. package/vendor/@echolab/ui-frame/dist/NeumorphismTabs.css +1 -0
  70. package/vendor/@echolab/ui-frame/dist/NeumorphismTag.css +1 -0
  71. package/vendor/@echolab/ui-frame/dist/NeumorphismTextarea.css +1 -0
  72. package/vendor/@echolab/ui-frame/dist/NeumorphismThemeToggle.css +1 -0
  73. package/vendor/@echolab/ui-frame/dist/NeumorphismToastProvider.css +1 -0
  74. package/vendor/@echolab/ui-frame/dist/NeumorphismTooltip.css +1 -0
  75. package/vendor/@echolab/ui-frame/dist/NeumorphismTree.css +1 -0
  76. package/vendor/@echolab/ui-frame/dist/NeumorphismUpload.css +1 -0
  77. package/vendor/@echolab/ui-frame/dist/NeumorphismVirtualList.css +1 -0
  78. package/vendor/@echolab/ui-frame/dist/ThemeProvider.css +1 -0
  79. package/vendor/@echolab/ui-frame/dist/base.css +1 -0
  80. package/vendor/@echolab/ui-frame/dist/base.d.ts +1 -0
  81. package/vendor/@echolab/ui-frame/dist/base.js +1 -0
  82. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismAlert-C8gUjcJ9.js +130 -0
  83. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismAutoComplete-DI9cIsCr.js +255 -0
  84. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismAvatar-D7pr7n61.js +65 -0
  85. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismBadge-Br8ESUFf.js +64 -0
  86. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismBreadcrumb-PeUQHAqO.js +58 -0
  87. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismButton-CiIrdqlV.js +81 -0
  88. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCanvas-CBLkbovI.js +176 -0
  89. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCard-Cgy4dCPE.js +66 -0
  90. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCheckbox-Bo5Q7yC_.js +114 -0
  91. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCol-DwoaSc5J.js +117 -0
  92. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismCollapse-BLSShHjJ.js +95 -0
  93. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismContainer-B1g0c9Ps.js +32 -0
  94. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismDatePicker-TLkTC22A.js +315 -0
  95. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismDivider-CjDyku2C.js +56 -0
  96. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismDrawer-BmpGyAlZ.js +133 -0
  97. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismDropdown-B_cuLYvV.js +120 -0
  98. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismEmpty-DAsVUAXw.js +49 -0
  99. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismFieldError-BxamHjhs.js +20 -0
  100. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismFieldLabel-CBF1nZs1.js +26 -0
  101. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismFormItem-DjtFqfsK.js +149 -0
  102. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismInput-CV0AQcff.js +121 -0
  103. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismInputNumber-BLSDUrG2.js +119 -0
  104. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismLayout-C7hoaRIo.js +155 -0
  105. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismList-BPjiY2ok.js +106 -0
  106. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismMenu-xfgTqwex.js +294 -0
  107. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismModal-BejbU5Uw.js +139 -0
  108. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismNavMenu-D_aeJ9zj.js +297 -0
  109. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismPagination-Dj-JuN7F.js +162 -0
  110. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismPopover-RB48cpPq.js +197 -0
  111. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismProgress-jGoOJqN4.js +72 -0
  112. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismRadioGroup-BC-NFcXF.js +122 -0
  113. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSelect-D57-kOit.js +200 -0
  114. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSkeleton-CIBufbBR.js +56 -0
  115. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSlider-CJGJhgAY.js +163 -0
  116. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSteps-Eq8pY0Yo.js +147 -0
  117. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismSwitch-HSJ9_0Zq.js +76 -0
  118. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTable-BEcMl0Sh.js +189 -0
  119. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTabs-DhV7RpfS.js +98 -0
  120. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTag-D-HO-n7l.js +83 -0
  121. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTextarea-hf4f9EM1.js +126 -0
  122. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismThemeToggle-B-lky48G.js +144 -0
  123. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismToastProvider-CJvxNDwJ.js +132 -0
  124. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTooltip-DEac8yVH.js +116 -0
  125. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismTree-C5jKWadX.js +302 -0
  126. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismUpload-CK8GutG5.js +584 -0
  127. package/vendor/@echolab/ui-frame/dist/chunks/NeumorphismVirtualList-BI322-e4.js +55 -0
  128. package/vendor/@echolab/ui-frame/dist/chunks/ThemeProvider-CCR_TjUs.js +30 -0
  129. package/vendor/@echolab/ui-frame/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  130. package/vendor/@echolab/ui-frame/dist/chunks/componentRegistry-XcPWEoEL.js +48 -0
  131. package/vendor/@echolab/ui-frame/dist/chunks/createComponent-jnXBYqCm.js +11 -0
  132. package/vendor/@echolab/ui-frame/dist/components/NeumorphismAlert/NeumorphismAlert.d.ts +78 -0
  133. package/vendor/@echolab/ui-frame/dist/components/NeumorphismAlert/index.d.ts +2 -0
  134. package/vendor/@echolab/ui-frame/dist/components/NeumorphismAlert/index.js +4 -0
  135. package/vendor/@echolab/ui-frame/dist/components/NeumorphismAutoComplete/NeumorphismAutoComplete.d.ts +83 -0
  136. package/vendor/@echolab/ui-frame/dist/components/NeumorphismAutoComplete/index.d.ts +2 -0
  137. package/vendor/@echolab/ui-frame/dist/components/NeumorphismAutoComplete/index.js +4 -0
  138. package/vendor/@echolab/ui-frame/dist/components/NeumorphismAvatar/NeumorphismAvatar.d.ts +50 -0
  139. package/vendor/@echolab/ui-frame/dist/components/NeumorphismAvatar/index.d.ts +2 -0
  140. package/vendor/@echolab/ui-frame/dist/components/NeumorphismAvatar/index.js +4 -0
  141. package/vendor/@echolab/ui-frame/dist/components/NeumorphismBadge/NeumorphismBadge.d.ts +47 -0
  142. package/vendor/@echolab/ui-frame/dist/components/NeumorphismBadge/index.d.ts +2 -0
  143. package/vendor/@echolab/ui-frame/dist/components/NeumorphismBadge/index.js +4 -0
  144. package/vendor/@echolab/ui-frame/dist/components/NeumorphismBreadcrumb/NeumorphismBreadcrumb.d.ts +45 -0
  145. package/vendor/@echolab/ui-frame/dist/components/NeumorphismBreadcrumb/index.d.ts +2 -0
  146. package/vendor/@echolab/ui-frame/dist/components/NeumorphismBreadcrumb/index.js +4 -0
  147. package/vendor/@echolab/ui-frame/dist/components/NeumorphismButton/NeumorphismButton.d.ts +74 -0
  148. package/vendor/@echolab/ui-frame/dist/components/NeumorphismButton/index.d.ts +2 -0
  149. package/vendor/@echolab/ui-frame/dist/components/NeumorphismButton/index.js +4 -0
  150. package/vendor/@echolab/ui-frame/dist/components/NeumorphismCanvas/NeumorphismCanvas.d.ts +85 -0
  151. package/vendor/@echolab/ui-frame/dist/components/NeumorphismCanvas/index.d.ts +2 -0
  152. package/vendor/@echolab/ui-frame/dist/components/NeumorphismCanvas/index.js +4 -0
  153. package/vendor/@echolab/ui-frame/dist/components/NeumorphismCard/NeumorphismCard.d.ts +83 -0
  154. package/vendor/@echolab/ui-frame/dist/components/NeumorphismCard/index.d.ts +2 -0
  155. package/vendor/@echolab/ui-frame/dist/components/NeumorphismCard/index.js +4 -0
  156. package/vendor/@echolab/ui-frame/dist/components/NeumorphismCheckbox/NeumorphismCheckbox.d.ts +58 -0
  157. package/vendor/@echolab/ui-frame/dist/components/NeumorphismCheckbox/index.d.ts +2 -0
  158. package/vendor/@echolab/ui-frame/dist/components/NeumorphismCheckbox/index.js +4 -0
  159. package/vendor/@echolab/ui-frame/dist/components/NeumorphismCollapse/NeumorphismCollapse.d.ts +59 -0
  160. package/vendor/@echolab/ui-frame/dist/components/NeumorphismCollapse/index.d.ts +2 -0
  161. package/vendor/@echolab/ui-frame/dist/components/NeumorphismCollapse/index.js +4 -0
  162. package/vendor/@echolab/ui-frame/dist/components/NeumorphismContainer/NeumorphismContainer.d.ts +48 -0
  163. package/vendor/@echolab/ui-frame/dist/components/NeumorphismContainer/index.d.ts +2 -0
  164. package/vendor/@echolab/ui-frame/dist/components/NeumorphismContainer/index.js +4 -0
  165. package/vendor/@echolab/ui-frame/dist/components/NeumorphismDatePicker/NeumorphismDatePicker.d.ts +69 -0
  166. package/vendor/@echolab/ui-frame/dist/components/NeumorphismDatePicker/index.d.ts +2 -0
  167. package/vendor/@echolab/ui-frame/dist/components/NeumorphismDatePicker/index.js +4 -0
  168. package/vendor/@echolab/ui-frame/dist/components/NeumorphismDivider/NeumorphismDivider.d.ts +51 -0
  169. package/vendor/@echolab/ui-frame/dist/components/NeumorphismDivider/index.d.ts +2 -0
  170. package/vendor/@echolab/ui-frame/dist/components/NeumorphismDivider/index.js +4 -0
  171. package/vendor/@echolab/ui-frame/dist/components/NeumorphismDrawer/NeumorphismDrawer.d.ts +71 -0
  172. package/vendor/@echolab/ui-frame/dist/components/NeumorphismDrawer/index.d.ts +2 -0
  173. package/vendor/@echolab/ui-frame/dist/components/NeumorphismDrawer/index.js +4 -0
  174. package/vendor/@echolab/ui-frame/dist/components/NeumorphismDropdown/NeumorphismDropdown.d.ts +75 -0
  175. package/vendor/@echolab/ui-frame/dist/components/NeumorphismDropdown/index.d.ts +2 -0
  176. package/vendor/@echolab/ui-frame/dist/components/NeumorphismDropdown/index.js +4 -0
  177. package/vendor/@echolab/ui-frame/dist/components/NeumorphismEmpty/NeumorphismEmpty.d.ts +41 -0
  178. package/vendor/@echolab/ui-frame/dist/components/NeumorphismEmpty/index.d.ts +2 -0
  179. package/vendor/@echolab/ui-frame/dist/components/NeumorphismEmpty/index.js +4 -0
  180. package/vendor/@echolab/ui-frame/dist/components/NeumorphismField/NeumorphismFieldError.d.ts +17 -0
  181. package/vendor/@echolab/ui-frame/dist/components/NeumorphismField/NeumorphismFieldLabel.d.ts +19 -0
  182. package/vendor/@echolab/ui-frame/dist/components/NeumorphismField/index.d.ts +2 -0
  183. package/vendor/@echolab/ui-frame/dist/components/NeumorphismField/index.js +6 -0
  184. package/vendor/@echolab/ui-frame/dist/components/NeumorphismForm/NeumorphismForm.d.ts +67 -0
  185. package/vendor/@echolab/ui-frame/dist/components/NeumorphismForm/NeumorphismFormItem.d.ts +54 -0
  186. package/vendor/@echolab/ui-frame/dist/components/NeumorphismForm/index.d.ts +4 -0
  187. package/vendor/@echolab/ui-frame/dist/components/NeumorphismForm/index.js +5 -0
  188. package/vendor/@echolab/ui-frame/dist/components/NeumorphismGrid/NeumorphismCol.d.ts +54 -0
  189. package/vendor/@echolab/ui-frame/dist/components/NeumorphismGrid/NeumorphismRow.d.ts +51 -0
  190. package/vendor/@echolab/ui-frame/dist/components/NeumorphismGrid/index.d.ts +4 -0
  191. package/vendor/@echolab/ui-frame/dist/components/NeumorphismGrid/index.js +5 -0
  192. package/vendor/@echolab/ui-frame/dist/components/NeumorphismInput/NeumorphismInput.d.ts +87 -0
  193. package/vendor/@echolab/ui-frame/dist/components/NeumorphismInput/index.d.ts +2 -0
  194. package/vendor/@echolab/ui-frame/dist/components/NeumorphismInput/index.js +4 -0
  195. package/vendor/@echolab/ui-frame/dist/components/NeumorphismInputNumber/NeumorphismInputNumber.d.ts +85 -0
  196. package/vendor/@echolab/ui-frame/dist/components/NeumorphismInputNumber/index.d.ts +2 -0
  197. package/vendor/@echolab/ui-frame/dist/components/NeumorphismInputNumber/index.js +4 -0
  198. package/vendor/@echolab/ui-frame/dist/components/NeumorphismLayout/NeumorphismLayout.d.ts +79 -0
  199. package/vendor/@echolab/ui-frame/dist/components/NeumorphismLayout/index.d.ts +2 -0
  200. package/vendor/@echolab/ui-frame/dist/components/NeumorphismLayout/index.js +4 -0
  201. package/vendor/@echolab/ui-frame/dist/components/NeumorphismList/NeumorphismList.d.ts +74 -0
  202. package/vendor/@echolab/ui-frame/dist/components/NeumorphismList/index.d.ts +2 -0
  203. package/vendor/@echolab/ui-frame/dist/components/NeumorphismList/index.js +4 -0
  204. package/vendor/@echolab/ui-frame/dist/components/NeumorphismMenu/NeumorphismMenu.d.ts +73 -0
  205. package/vendor/@echolab/ui-frame/dist/components/NeumorphismMenu/index.d.ts +2 -0
  206. package/vendor/@echolab/ui-frame/dist/components/NeumorphismMenu/index.js +4 -0
  207. package/vendor/@echolab/ui-frame/dist/components/NeumorphismModal/NeumorphismModal.d.ts +88 -0
  208. package/vendor/@echolab/ui-frame/dist/components/NeumorphismModal/index.d.ts +2 -0
  209. package/vendor/@echolab/ui-frame/dist/components/NeumorphismModal/index.js +4 -0
  210. package/vendor/@echolab/ui-frame/dist/components/NeumorphismNavMenu/NeumorphismNavMenu.d.ts +63 -0
  211. package/vendor/@echolab/ui-frame/dist/components/NeumorphismNavMenu/index.d.ts +2 -0
  212. package/vendor/@echolab/ui-frame/dist/components/NeumorphismNavMenu/index.js +4 -0
  213. package/vendor/@echolab/ui-frame/dist/components/NeumorphismPagination/NeumorphismPagination.d.ts +87 -0
  214. package/vendor/@echolab/ui-frame/dist/components/NeumorphismPagination/index.d.ts +2 -0
  215. package/vendor/@echolab/ui-frame/dist/components/NeumorphismPagination/index.js +4 -0
  216. package/vendor/@echolab/ui-frame/dist/components/NeumorphismPopover/NeumorphismPopover.d.ts +78 -0
  217. package/vendor/@echolab/ui-frame/dist/components/NeumorphismPopover/index.d.ts +2 -0
  218. package/vendor/@echolab/ui-frame/dist/components/NeumorphismPopover/index.js +4 -0
  219. package/vendor/@echolab/ui-frame/dist/components/NeumorphismProgress/NeumorphismProgress.d.ts +53 -0
  220. package/vendor/@echolab/ui-frame/dist/components/NeumorphismProgress/index.d.ts +2 -0
  221. package/vendor/@echolab/ui-frame/dist/components/NeumorphismProgress/index.js +4 -0
  222. package/vendor/@echolab/ui-frame/dist/components/NeumorphismRadio/NeumorphismRadio.d.ts +52 -0
  223. package/vendor/@echolab/ui-frame/dist/components/NeumorphismRadio/NeumorphismRadioGroup.d.ts +53 -0
  224. package/vendor/@echolab/ui-frame/dist/components/NeumorphismRadio/index.d.ts +4 -0
  225. package/vendor/@echolab/ui-frame/dist/components/NeumorphismRadio/index.js +5 -0
  226. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSelect/NeumorphismSelect.d.ts +96 -0
  227. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSelect/index.d.ts +2 -0
  228. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSelect/index.js +4 -0
  229. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSkeleton/NeumorphismSkeleton.d.ts +38 -0
  230. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSkeleton/index.d.ts +2 -0
  231. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSkeleton/index.js +4 -0
  232. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSlider/NeumorphismSlider.d.ts +76 -0
  233. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSlider/index.d.ts +2 -0
  234. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSlider/index.js +4 -0
  235. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSteps/NeumorphismSteps.d.ts +69 -0
  236. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSteps/index.d.ts +2 -0
  237. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSteps/index.js +4 -0
  238. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSwitch/NeumorphismSwitch.d.ts +64 -0
  239. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSwitch/index.d.ts +2 -0
  240. package/vendor/@echolab/ui-frame/dist/components/NeumorphismSwitch/index.js +4 -0
  241. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTable/NeumorphismTable.d.ts +99 -0
  242. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTable/index.d.ts +2 -0
  243. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTable/index.js +4 -0
  244. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTabs/NeumorphismTabs.d.ts +71 -0
  245. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTabs/index.d.ts +2 -0
  246. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTabs/index.js +4 -0
  247. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTag/NeumorphismTag.d.ts +65 -0
  248. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTag/index.d.ts +2 -0
  249. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTag/index.js +4 -0
  250. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTextarea/NeumorphismTextarea.d.ts +80 -0
  251. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTextarea/index.d.ts +2 -0
  252. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTextarea/index.js +4 -0
  253. package/vendor/@echolab/ui-frame/dist/components/NeumorphismThemeToggle/NeumorphismThemeToggle.d.ts +52 -0
  254. package/vendor/@echolab/ui-frame/dist/components/NeumorphismThemeToggle/index.d.ts +2 -0
  255. package/vendor/@echolab/ui-frame/dist/components/NeumorphismThemeToggle/index.js +4 -0
  256. package/vendor/@echolab/ui-frame/dist/components/NeumorphismToast/NeumorphismToastProvider.d.ts +57 -0
  257. package/vendor/@echolab/ui-frame/dist/components/NeumorphismToast/index.d.ts +2 -0
  258. package/vendor/@echolab/ui-frame/dist/components/NeumorphismToast/index.js +4 -0
  259. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTooltip/NeumorphismTooltip.d.ts +58 -0
  260. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTooltip/index.d.ts +2 -0
  261. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTooltip/index.js +4 -0
  262. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTree/NeumorphismTree.d.ts +58 -0
  263. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTree/NeumorphismTreeNode.d.ts +59 -0
  264. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTree/index.d.ts +4 -0
  265. package/vendor/@echolab/ui-frame/dist/components/NeumorphismTree/index.js +5 -0
  266. package/vendor/@echolab/ui-frame/dist/components/NeumorphismUpload/NeumorphismUpload.d.ts +126 -0
  267. package/vendor/@echolab/ui-frame/dist/components/NeumorphismUpload/index.d.ts +2 -0
  268. package/vendor/@echolab/ui-frame/dist/components/NeumorphismUpload/index.js +4 -0
  269. package/vendor/@echolab/ui-frame/dist/components/NeumorphismVirtualList/NeumorphismVirtualList.d.ts +59 -0
  270. package/vendor/@echolab/ui-frame/dist/components/NeumorphismVirtualList/index.d.ts +2 -0
  271. package/vendor/@echolab/ui-frame/dist/components/NeumorphismVirtualList/index.js +4 -0
  272. package/vendor/@echolab/ui-frame/dist/components/ThemeProvider/ThemeProvider.d.ts +56 -0
  273. package/vendor/@echolab/ui-frame/dist/components/ThemeProvider/index.d.ts +2 -0
  274. package/vendor/@echolab/ui-frame/dist/components/ThemeProvider/index.js +4 -0
  275. package/vendor/@echolab/ui-frame/dist/components/index.d.ts +92 -0
  276. package/vendor/@echolab/ui-frame/dist/composables/injectionKeys.d.ts +27 -0
  277. package/vendor/@echolab/ui-frame/dist/composables/injectionKeys.js +6 -0
  278. package/vendor/@echolab/ui-frame/dist/composables/useAlert.d.ts +30 -0
  279. package/vendor/@echolab/ui-frame/dist/composables/useAlert.js +25 -0
  280. package/vendor/@echolab/ui-frame/dist/composables/useAutoComplete.d.ts +50 -0
  281. package/vendor/@echolab/ui-frame/dist/composables/useAutoComplete.js +118 -0
  282. package/vendor/@echolab/ui-frame/dist/composables/useCheckable.d.ts +17 -0
  283. package/vendor/@echolab/ui-frame/dist/composables/useCheckable.js +17 -0
  284. package/vendor/@echolab/ui-frame/dist/composables/useCollapse.d.ts +26 -0
  285. package/vendor/@echolab/ui-frame/dist/composables/useCollapse.js +25 -0
  286. package/vendor/@echolab/ui-frame/dist/composables/useConfig.d.ts +243 -0
  287. package/vendor/@echolab/ui-frame/dist/composables/useConfig.js +12 -0
  288. package/vendor/@echolab/ui-frame/dist/composables/useDatePicker.d.ts +73 -0
  289. package/vendor/@echolab/ui-frame/dist/composables/useDatePicker.js +118 -0
  290. package/vendor/@echolab/ui-frame/dist/composables/useDrawer.d.ts +34 -0
  291. package/vendor/@echolab/ui-frame/dist/composables/useDrawer.js +97 -0
  292. package/vendor/@echolab/ui-frame/dist/composables/useFormField.d.ts +24 -0
  293. package/vendor/@echolab/ui-frame/dist/composables/useFormField.js +34 -0
  294. package/vendor/@echolab/ui-frame/dist/composables/useFormValidation.d.ts +18 -0
  295. package/vendor/@echolab/ui-frame/dist/composables/useFormValidation.js +44 -0
  296. package/vendor/@echolab/ui-frame/dist/composables/useLocale.d.ts +38 -0
  297. package/vendor/@echolab/ui-frame/dist/composables/useLocale.js +34 -0
  298. package/vendor/@echolab/ui-frame/dist/composables/useMenu.d.ts +55 -0
  299. package/vendor/@echolab/ui-frame/dist/composables/useMenu.js +218 -0
  300. package/vendor/@echolab/ui-frame/dist/composables/useModal.d.ts +31 -0
  301. package/vendor/@echolab/ui-frame/dist/composables/useModal.js +93 -0
  302. package/vendor/@echolab/ui-frame/dist/composables/useNumberInput.d.ts +52 -0
  303. package/vendor/@echolab/ui-frame/dist/composables/useNumberInput.js +100 -0
  304. package/vendor/@echolab/ui-frame/dist/composables/usePagination.d.ts +37 -0
  305. package/vendor/@echolab/ui-frame/dist/composables/usePagination.js +40 -0
  306. package/vendor/@echolab/ui-frame/dist/composables/usePopover.d.ts +38 -0
  307. package/vendor/@echolab/ui-frame/dist/composables/usePopover.js +54 -0
  308. package/vendor/@echolab/ui-frame/dist/composables/useSelect.d.ts +30 -0
  309. package/vendor/@echolab/ui-frame/dist/composables/useSelect.js +76 -0
  310. package/vendor/@echolab/ui-frame/dist/composables/useSlider.d.ts +39 -0
  311. package/vendor/@echolab/ui-frame/dist/composables/useSlider.js +79 -0
  312. package/vendor/@echolab/ui-frame/dist/composables/useSteps.d.ts +54 -0
  313. package/vendor/@echolab/ui-frame/dist/composables/useSteps.js +26 -0
  314. package/vendor/@echolab/ui-frame/dist/composables/useTable.d.ts +78 -0
  315. package/vendor/@echolab/ui-frame/dist/composables/useTable.js +103 -0
  316. package/vendor/@echolab/ui-frame/dist/composables/useTabs.d.ts +33 -0
  317. package/vendor/@echolab/ui-frame/dist/composables/useTabs.js +43 -0
  318. package/vendor/@echolab/ui-frame/dist/composables/useTheme.d.ts +40 -0
  319. package/vendor/@echolab/ui-frame/dist/composables/useTheme.js +81 -0
  320. package/vendor/@echolab/ui-frame/dist/composables/useToast.d.ts +44 -0
  321. package/vendor/@echolab/ui-frame/dist/composables/useToast.js +57 -0
  322. package/vendor/@echolab/ui-frame/dist/composables/useTooltip.d.ts +29 -0
  323. package/vendor/@echolab/ui-frame/dist/composables/useTooltip.js +27 -0
  324. package/vendor/@echolab/ui-frame/dist/composables/useTouchDevice.d.ts +7 -0
  325. package/vendor/@echolab/ui-frame/dist/composables/useTouchDevice.js +25 -0
  326. package/vendor/@echolab/ui-frame/dist/composables/useTree.d.ts +50 -0
  327. package/vendor/@echolab/ui-frame/dist/composables/useTree.js +219 -0
  328. package/vendor/@echolab/ui-frame/dist/composables/useUpload.d.ts +81 -0
  329. package/vendor/@echolab/ui-frame/dist/composables/useUpload.js +169 -0
  330. package/vendor/@echolab/ui-frame/dist/composables/useVirtualList.d.ts +59 -0
  331. package/vendor/@echolab/ui-frame/dist/composables/useVirtualList.js +107 -0
  332. package/vendor/@echolab/ui-frame/dist/doc/DocEditor.d.ts +41 -0
  333. package/vendor/@echolab/ui-frame/dist/doc/DocViewer.d.ts +39 -0
  334. package/vendor/@echolab/ui-frame/dist/doc/MarkdownEditor.d.ts +37 -0
  335. package/vendor/@echolab/ui-frame/dist/doc/MarkdownRenderer.d.ts +42 -0
  336. package/vendor/@echolab/ui-frame/dist/doc/doc-tree.d.ts +8 -0
  337. package/vendor/@echolab/ui-frame/dist/doc/index.d.ts +27 -0
  338. package/vendor/@echolab/ui-frame/dist/doc/index.js +1055 -0
  339. package/vendor/@echolab/ui-frame/dist/doc/parser.d.ts +15 -0
  340. package/vendor/@echolab/ui-frame/dist/doc/tree-utils.d.ts +22 -0
  341. package/vendor/@echolab/ui-frame/dist/doc/types.d.ts +42 -0
  342. package/vendor/@echolab/ui-frame/dist/doc/useDocLayout.d.ts +38 -0
  343. package/vendor/@echolab/ui-frame/dist/extensions/componentRegistry.d.ts +39 -0
  344. package/vendor/@echolab/ui-frame/dist/extensions/createComponent.d.ts +43 -0
  345. package/vendor/@echolab/ui-frame/dist/extensions/index.d.ts +4 -0
  346. package/vendor/@echolab/ui-frame/dist/extensions/index.js +6 -0
  347. package/vendor/@echolab/ui-frame/dist/extensions/types.d.ts +56 -0
  348. package/vendor/@echolab/ui-frame/dist/index.css +1 -0
  349. package/vendor/@echolab/ui-frame/dist/index.d.ts +80 -0
  350. package/vendor/@echolab/ui-frame/dist/locales/en-US.d.ts +3 -0
  351. package/vendor/@echolab/ui-frame/dist/locales/index.d.ts +3 -0
  352. package/vendor/@echolab/ui-frame/dist/locales/index.js +171 -0
  353. package/vendor/@echolab/ui-frame/dist/locales/types.d.ts +89 -0
  354. package/vendor/@echolab/ui-frame/dist/locales/zh-CN.d.ts +3 -0
  355. package/vendor/@echolab/ui-frame/dist/style.css +1 -0
  356. package/vendor/@echolab/ui-frame/dist/styles/base.d.ts +1 -0
  357. package/vendor/@echolab/ui-frame/dist/styles/tokens.d.ts +1 -0
  358. package/vendor/@echolab/ui-frame/dist/tokens.css +1 -0
  359. package/vendor/@echolab/ui-frame/dist/tokens.d.ts +1 -0
  360. package/vendor/@echolab/ui-frame/dist/tokens.js +1 -0
  361. package/vendor/@echolab/ui-frame/dist/ui-frame.css +1 -0
  362. package/vendor/@echolab/ui-frame/dist/ui-frame.d.ts +3 -0
  363. package/vendor/@echolab/ui-frame/dist/ui-frame.js +247 -0
  364. package/vendor/@echolab/ui-frame/dist/ui-frame.umd.cjs +3 -0
  365. package/vendor/@echolab/ui-frame/dist/utils/index.d.ts +14 -0
  366. package/vendor/@echolab/ui-frame/dist/utils/index.js +20 -0
  367. package/vendor/@echolab/ui-frame/package.json +131 -0
  368. package/vendor/fsevents-stub/index.d.ts +2 -0
  369. package/vendor/fsevents-stub/index.js +3 -0
  370. package/vendor/fsevents-stub/package.json +8 -0
@@ -0,0 +1,3 @@
1
+ (function(M,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(M=typeof globalThis<"u"?globalThis:M||self,e(M.NeumorphismUI={},M.Vue))})(this,function(M,e){"use strict";var ui=Object.defineProperty;var fi=(M,e,Z)=>e in M?ui(M,e,{enumerable:!0,configurable:!0,writable:!0,value:Z}):M[e]=Z;var rn=(M,e,Z)=>fi(M,typeof e!="symbol"?e+"":e,Z);const Z=Symbol("nm-global-config"),sn={};function J(){return e.inject(Z,e.computed(()=>sn))}const cn=["type","form","disabled","aria-label","aria-busy"],dn={key:0,class:"nm-button__spinner"},mn=e.defineComponent({__name:"NeumorphismButton",props:{variant:{default:"raised"},size:{default:"medium"},shape:{default:"rounded"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{default:"button"},form:{},ariaLabel:{}},emits:["click"],setup(n,{emit:l}){const t=n,o=J(),a=e.computed(()=>{var k;return t.variant??((k=o.value.button)==null?void 0:k.variant)??"raised"}),r=e.computed(()=>{var k;return t.size??((k=o.value.button)==null?void 0:k.size)??"medium"}),s=e.computed(()=>{var k;return t.shape??((k=o.value.button)==null?void 0:k.shape)??"rounded"}),c=l,u=e.computed(()=>t.disabled||t.loading),i=e.computed(()=>["nm-button",`nm-button--${a.value}`,`nm-button--${r.value}`,`nm-button--${s.value}`,{"nm-button--disabled":u.value,"nm-button--loading":t.loading}]);function d(k){u.value||c("click",k)}return(k,b)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(i.value),type:n.type,form:n.form,disabled:u.value,"aria-label":n.ariaLabel,"aria-busy":n.loading?!0:void 0,onClick:d},[n.loading?(e.openBlock(),e.createElementBlock("span",dn,[b[0]||(e.setBlockTracking(-1,!0),(b[0]=(e.openBlock(),e.createElementBlock("svg",{class:"nm-button__spinner-svg",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[b[1]||(b[1]=e.createElementVNode("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"31.42","stroke-dashoffset":"10"},null,-1))]))).cacheIndex=0,e.setBlockTracking(1),b[0])])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(["nm-button__content",{"nm-button__content--hidden":n.loading}])},[e.renderSlot(k.$slots,"default",{},void 0,!0)],2)],10,cn))}}),R=(n,l)=>{const t=n.__vccOpts||n;for(const[o,a]of l)t[o]=a;return t},xe=R(mn,[["__scopeId","data-v-14c068f1"]]),un={key:0,class:"nm-switch__label nm-switch__label--inactive"},fn={class:"nm-switch__wrapper"},pn=["checked","disabled"],hn={class:"nm-switch__thumb"},kn={key:1,class:"nm-switch__label nm-switch__label--active"},Se=R(e.defineComponent({__name:"NeumorphismSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},activeText:{},inactiveText:{},activeColor:{},inactiveColor:{},size:{default:"medium"}},emits:["update:modelValue","change"],setup(n,{emit:l}){const t=n,o=J(),a=e.computed(()=>{var d;return t.size??((d=o.value.switch)==null?void 0:d.size)??"medium"}),r=l,s=e.computed({get:()=>t.modelValue,set:d=>{r("update:modelValue",d),r("change",d)}}),c=e.computed(()=>["nm-switch",`nm-switch--${a.value}`,{"nm-switch--checked":s.value,"nm-switch--disabled":t.disabled}]),u=e.computed(()=>{const d={};return t.activeColor&&(d["--nm-switch-active-color"]=t.activeColor),t.inactiveColor&&(d["--nm-switch-inactive-color"]=t.inactiveColor),Object.keys(d).length?d:void 0});function i(d){const k=d.target;s.value=k.checked}return(d,k)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(c.value)},[n.inactiveText?(e.openBlock(),e.createElementBlock("span",un,e.toDisplayString(n.inactiveText),1)):e.createCommentVNode("",!0),e.createElementVNode("span",fn,[e.createElementVNode("input",{type:"checkbox",class:"nm-switch__input",checked:s.value,disabled:n.disabled,onChange:i},null,40,pn),e.createElementVNode("span",{class:"nm-switch__track","aria-hidden":"true",style:e.normalizeStyle(u.value)},[e.createElementVNode("span",hn,[e.renderSlot(d.$slots,"thumb",{checked:s.value},()=>[k[0]||(k[0]=e.createElementVNode("span",{class:"nm-switch__thumb-dot"},null,-1))],!0)])],4)]),n.activeText?(e.openBlock(),e.createElementBlock("span",kn,e.toDisplayString(n.activeText),1)):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-6de237fe"]]);function O(){const n=J();function l(t,o,a){return t??o??a}return{config:n,resolveProp:l}}const gn={key:0,class:"nm-card__header"},yn={class:"nm-card__body"},bn={key:1,class:"nm-card__footer"},ze=R(e.defineComponent({__name:"NeumorphismCard",props:{elevation:{},variant:{},depth:{},radius:{default:"large"},noPadding:{type:Boolean,default:!1},hoverable:{type:[Boolean,String],default:!1}},setup(n){const l={shallow:1,medium:2,deep:3,"very-deep":4},t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var i;return a(t.radius,(i=o.value.card)==null?void 0:i.radius,"large")}),s=e.computed(()=>{var i;return a(t.hoverable,(i=o.value.card)==null?void 0:i.hoverable,!1)}),c=e.computed(()=>{if(t.elevation!==void 0)return t.elevation;const i=l[t.depth??"medium"];return t.variant==="pressed"?-i:i}),u=e.computed(()=>["nm-card",`nm-card--elevation-${c.value}`,`nm-card--radius-${r.value}`,{"nm-card--no-padding":t.noPadding,"nm-card--hoverable":!!s.value,"nm-card--hover-bulge":s.value===!0||s.value==="bulge","nm-card--hover-sink":s.value==="sink"}]);return(i,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(u.value)},[i.$slots.header?(e.openBlock(),e.createElementBlock("div",gn,[e.renderSlot(i.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",yn,[e.renderSlot(i.$slots,"default",{},void 0,!0)]),i.$slots.footer?(e.openBlock(),e.createElementBlock("div",bn,[e.renderSlot(i.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-af9ed606"]]);function Y(n="nm"){return`${n}-${Math.random().toString(36).slice(2,9)}`}function _n(n,l){let t=null;const o=(...a)=>{t&&clearTimeout(t),t=setTimeout(()=>n(...a),l)};return o.cancel=()=>{t&&(clearTimeout(t),t=null)},o}function wn(n){return n==null?!0:typeof n=="string"?n.trim()==="":Array.isArray(n)?n.length===0:typeof n=="object"?Object.keys(n).length===0:!1}function oe(n){const l=e.ref(!1),t=e.computed(n),o=n(),a=o.id||Y(`nm-${o.prefix}`),r=e.computed(()=>typeof t.value.error=="string"?t.value.error:""),s=e.computed(()=>!!t.value.error);function c(d){return e.computed(()=>[d,`${d}--${t.value.size}`,{[`${d}--focused`]:l.value,[`${d}--disabled`]:t.value.disabled,[`${d}--error`]:s.value}])}function u(d,k){l.value=!0,k("focus",d)}function i(d,k){l.value=!1,k("blur",d)}return{isFocused:l,fieldId:a,errorMessage:r,hasError:s,baseClassList:c,handleFocus:u,handleBlur:i}}const Bn=["for"],Cn={key:0,class:"nm-field__required"},X=R(e.defineComponent({__name:"NeumorphismFieldLabel",props:{label:{},required:{type:Boolean},forId:{}},setup(n){return(l,t)=>n.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:n.forId,class:"nm-field__label"},[e.createTextVNode(e.toDisplayString(n.label)+" ",1),n.required?(e.openBlock(),e.createElementBlock("span",Cn,"*")):e.createCommentVNode("",!0)],8,Bn)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-0594a3a1"]]),En=["id"],te=R(e.defineComponent({__name:"NeumorphismFieldError",props:{id:{},message:{}},setup(n){return(l,t)=>n.message?(e.openBlock(),e.createElementBlock("div",{key:0,id:n.id,class:"nm-field__error",role:"alert"},e.toDisplayString(n.message),9,En)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-fade598e"]]),$n={key:0,class:"nm-input__prefix"},Nn=["id","type","value","placeholder","disabled","readonly","required","maxlength","minlength","name","autocomplete","inputmode","aria-invalid","aria-errormessage","aria-describedby"],Vn={key:1,class:"nm-input__suffix"},fe=R(e.defineComponent({inheritAttrs:!1,__name:"NeumorphismInput",props:{modelValue:{default:""},type:{default:"text"},placeholder:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},size:{default:"medium"},maxlength:{},minlength:{},name:{},id:{},autocomplete:{default:"off"},inputmode:{},error:{type:[String,Boolean]},label:{}},emits:["update:modelValue","focus","blur","input","change","keydown","enter"],setup(n,{emit:l}){const t=n,o=J(),a=e.computed(()=>{var y;return t.size??((y=o.value.input)==null?void 0:y.size)??"medium"}),r=l,s=e.useSlots(),c=e.useAttrs(),u=e.computed(()=>{const y={};for(const B of Object.keys(c))B!=="class"&&B!=="style"&&(y[B]=c[B]);return y}),{fieldId:i,errorMessage:d,baseClassList:k,handleFocus:b,handleBlur:w}=oe(()=>({id:t.id,size:a.value,disabled:t.disabled,error:t.error,prefix:"input"})),g=e.computed(()=>t.modelValue.length>0),f=e.computed(()=>[...k("nm-input").value,{"nm-input--readonly":t.readonly,"nm-input--has-prefix":!!s.prefix,"nm-input--has-suffix":!!s.suffix,"nm-input--has-label":!!t.label,"nm-input--filled":g.value}]);function p(y){const B=y.target;r("update:modelValue",B.value),r("input",y)}function m(y){r("change",y)}function _(y){r("keydown",y),y.key==="Enter"&&r("enter",t.modelValue)}return(y,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["nm-input__wrapper",e.unref(c).class]),style:e.normalizeStyle(e.unref(c).style)},[e.createVNode(X,{label:n.label,required:n.required,"for-id":e.unref(i)},null,8,["label","required","for-id"]),e.createElementVNode("div",{class:e.normalizeClass(f.value)},[y.$slots.prefix?(e.openBlock(),e.createElementBlock("div",$n,[e.renderSlot(y.$slots,"prefix",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("input",e.mergeProps({id:e.unref(i),type:n.type,value:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,readonly:n.readonly,required:n.required,maxlength:n.maxlength,minlength:n.minlength,name:n.name,autocomplete:n.autocomplete,inputmode:n.inputmode,"aria-invalid":!!n.error,"aria-errormessage":e.unref(d)?`${e.unref(i)}-error`:void 0,"aria-describedby":e.unref(d)?`${e.unref(i)}-error`:void 0,class:"nm-input__field"},u.value,{onInput:p,onChange:m,onFocus:B[0]||(B[0]=$=>e.unref(b)($,r)),onBlur:B[1]||(B[1]=$=>e.unref(w)($,r)),onKeydown:_}),null,16,Nn),y.$slots.suffix?(e.openBlock(),e.createElementBlock("div",Vn,[e.renderSlot(y.$slots,"suffix",{},void 0,!0)])):e.createCommentVNode("",!0)],2),e.createVNode(te,{id:`${e.unref(i)}-error`,message:e.unref(d)},null,8,["id","message"])],6))}}),[["__scopeId","data-v-5cc66d54"]]),Te=Symbol("neumorphism-theme"),xn="nm-theme-preference";function Le(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Sn(n){if(typeof window>"u")return null;try{return localStorage.getItem(n)}catch{return null}}function zn(n,l){if(!(typeof window>"u"))try{localStorage.setItem(l,n)}catch{}}function Me(n){if(typeof document>"u")return;const l=document.documentElement;n?l.setAttribute("data-theme","dark"):l.removeAttribute("data-theme")}function pe(n={}){const{defaultTheme:l="auto",storageKey:t=xn,followSystem:o=!0}=n,a=Sn(t),r=e.ref(a||l),s=e.computed(()=>r.value==="auto"?Le():r.value),c=e.computed(()=>s.value==="dark");e.watch(c,w=>{Me(w)},{immediate:!0});let u,i;o&&typeof window<"u"&&(u=window.matchMedia("(prefers-color-scheme: dark)"),i=()=>{r.value==="auto"&&Me(Le()==="dark")},u.addEventListener("change",i));const d=w=>{r.value=w,zn(w,t)};return{theme:r,currentTheme:s,isDark:c,setTheme:d,toggleTheme:()=>{const w=c.value?"light":"dark";d(w)},dispose:()=>{u&&i&&u.removeEventListener("change",i)}}}function De(n={}){const l=pe(e.unref(n));return e.provide(Te,l),e.isRef(n)&&e.watch(()=>n.value.defaultTheme,t=>{t!==void 0&&l.setTheme(t)}),e.onBeforeUnmount(()=>{l.dispose()}),l}function re(){const n=e.inject(Te,null);if(!n){const l=pe();return e.onBeforeUnmount(()=>{l.dispose()}),l}return n}const Tn={class:"nm-theme-provider nm-root"},ve=R(e.defineComponent({__name:"ThemeProvider",props:{defaultTheme:{default:"auto"},storageKey:{default:"nm-theme-preference"},followSystem:{type:Boolean,default:!0}},setup(n){const l=n,t=e.computed(()=>({defaultTheme:l.defaultTheme,storageKey:l.storageKey,followSystem:l.followSystem})),o=De(t);return(a,r)=>(e.openBlock(),e.createElementBlock("div",Tn,[e.renderSlot(a.$slots,"default",{theme:e.unref(o).theme,currentTheme:e.unref(o).currentTheme,isDark:e.unref(o).isDark,setTheme:e.unref(o).setTheme,toggleTheme:e.unref(o).toggleTheme},void 0,!0)]))}}),[["__scopeId","data-v-4d385e26"]]);function he(n){const l=e.computed(n),t=n(),o=Y(`nm-${t.prefix}`),a=e.computed(()=>[`nm-${l.value.prefix}`,`nm-${l.value.prefix}--${l.value.size}`,{[`nm-${l.value.prefix}--checked`]:l.value.isChecked,[`nm-${l.value.prefix}--disabled`]:l.value.isDisabled,...l.value.extraClasses}]);return{inputId:o,classList:a}}const Ln=["for"],Mn={class:"nm-checkbox__input-wrapper"},Dn=["id","checked","disabled","name"],vn={class:"nm-checkbox__box","aria-hidden":"true"},Pn={key:0,class:"nm-checkbox__icon",viewBox:"0 0 24 24",fill:"none"},In={key:1,class:"nm-checkbox__icon",viewBox:"0 0 24 24",fill:"none"},Kn={key:0,class:"nm-checkbox__label"},se=R(e.defineComponent({inheritAttrs:!1,__name:"NeumorphismCheckbox",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{},size:{default:"medium"},name:{},id:{},indeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(n,{emit:l}){const t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var g;return a(t.size,(g=o.value.checkbox)==null?void 0:g.size,"medium")}),s=l,c=e.computed({get:()=>t.modelValue,set:g=>{t.disabled||(s("update:modelValue",g),s("change",g))}}),u=e.useAttrs(),i=e.ref(),d=e.computed(()=>{const g={};for(const f of Object.keys(u))f!=="class"&&f!=="style"&&(g[f]=u[f]);return g}),{inputId:k,classList:b}=he(()=>({prefix:"checkbox",isChecked:c.value,isDisabled:t.disabled,size:r.value,extraClasses:{"nm-checkbox--indeterminate":t.indeterminate}}));e.watch(()=>t.indeterminate,g=>{i.value&&(i.value.indeterminate=g)},{immediate:!0});function w(g){if(t.disabled){g.preventDefault();return}c.value=g.target.checked}return(g,f)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(b),e.unref(u).class]),style:e.normalizeStyle(e.unref(u).style),for:e.unref(k)},[e.createElementVNode("span",Mn,[e.createElementVNode("input",e.mergeProps({id:e.unref(k),ref_key:"inputRef",ref:i,type:"checkbox",class:"nm-checkbox__input",checked:c.value,disabled:n.disabled,name:n.name},d.value,{onChange:w}),null,16,Dn),e.createElementVNode("span",vn,[n.indeterminate?(e.openBlock(),e.createElementBlock("svg",Pn,[...f[0]||(f[0]=[e.createElementVNode("path",{d:"M5 12H19",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round"},null,-1)])])):c.value?(e.openBlock(),e.createElementBlock("svg",In,[...f[1]||(f[1]=[e.createElementVNode("path",{d:"M5 13l4 4L19 7",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):e.createCommentVNode("",!0)])]),n.label||g.$slots.default?(e.openBlock(),e.createElementBlock("span",Kn,[e.renderSlot(g.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)],!0)])):e.createCommentVNode("",!0)],14,Ln))}}),[["__scopeId","data-v-1d2ef216"]]);function Pe(n,l,t){const o=new Date(n,l-1,t);return o.setHours(0,0,0,0),o}function Q(n){const l=new Date(n.getTime());return l.setHours(0,0,0,0),l}function ie(n,l){return!n||!l?!1:n.getFullYear()===l.getFullYear()&&n.getMonth()===l.getMonth()&&n.getDate()===l.getDate()}function Fn(n,l){return(n.getDay()-l+7)%7}function An(n,l){const t=n.getFullYear(),o=n.getMonth()+1,a=n.getDate();return l.replace(/yyyy/g,String(t)).replace(/yy/g,String(t).slice(-2)).replace(/MM/g,String(o).padStart(2,"0")).replace(/M/g,String(o)).replace(/dd/g,String(a).padStart(2,"0")).replace(/d/g,String(a))}const Rn=["Su","Mo","Tu","We","Th","Fr","Sa"];function Ie(n){const{modelValue:l}=n,t=e.computed(()=>{const V=n.format;return typeof V=="object"&&"value"in V?V.value:V??"yyyy-MM-dd"}),o=e.computed(()=>{const V=n.firstDayOfWeek;return typeof V=="object"&&"value"in V?V.value:V??0}),a=e.computed(()=>{const V=n.minDate;if(V)return V instanceof Date?V:V.value}),r=e.computed(()=>{const V=n.maxDate;if(V)return V instanceof Date?V:V.value}),s=e.computed(()=>l.value),c=l.value?Q(l.value):new Date,u=e.ref(c.getFullYear()),i=e.ref(c.getMonth()+1),d=e.computed(()=>{const V=u.value,S=i.value,D=o.value??0,z=new Date;z.setHours(0,0,0,0);const N=s.value,x=a.value,F=r.value,K=Pe(V,S,1),v=Fn(K,D),C=[];for(let h=0;h<42;h++){const L=h-v,I=Pe(V,S,1+L),A=I.getMonth()+1,T=I.getFullYear(),P=A===S&&T===V,j=ie(I,z),G=ie(I,N),ne=(x?I<Q(x):!1)||(F?I>Q(F):!1);C.push({date:I,day:I.getDate(),isCurrentMonth:P,isToday:j,isSelected:G,isDisabled:ne,isInRange:!1})}return C}),k=e.computed(()=>{const V=o.value??0,S=[];for(let D=0;D<7;D++){const z=(V+D)%7;S.push(Rn[z])}return S});function b(){i.value===1?(i.value=12,u.value--):i.value--}function w(){i.value===12?(i.value=1,u.value++):i.value++}function g(){u.value--}function f(){u.value++}function p(){const V=new Date;u.value=V.getFullYear(),i.value=V.getMonth()+1}function m(V){$(V)||(l.value=Q(V))}function _(V){return ie(V,s.value)}function y(V){const S=new Date;return S.setHours(0,0,0,0),ie(V,S)}function B(V){return!1}function $(V){const S=a.value,D=r.value,z=Q(V);return!!(S&&z<Q(S)||D&&z>Q(D))}function E(V){return V?An(V,t.value??"yyyy-MM-dd"):""}return{currentYear:u,currentMonth:i,calendarDays:d,weekdays:k,selectedDate:s,selectDate:m,prevMonth:b,nextMonth:w,prevYear:g,nextYear:f,isSelected:_,isToday:y,isInRange:B,isDisabled:$,formatDate:E,goToToday:p}}const ke={badgeOnline:"在线",badgeUnread:"未读 {count}",badgeAvatar:"头像",skeletonLoading:"加载中",themeToggleLight:"亮色",themeToggleAuto:"自动",themeToggleDark:"暗色",themeToggleLabel:"主题切换",canvasZoomOut:"缩小",canvasZoomIn:"放大",canvasZoomReset:"重置缩放",treeExpandAll:"全部展开",treeCollapseAll:"全部折叠",treeSearchPlaceholder:"搜索...",treeEmpty:"暂无数据",treeClearSearch:"清除搜索",treeExpand:"展开",treeCollapse:"折叠",treeLabel:"树形导航",tableLoading:"加载中...",tableEmpty:"暂无数据",selectPlaceholder:"请选择",selectEmpty:"暂无选项",selectClear:"清除选择",selectListLabel:"选项列表",modalClose:"关闭",modalCancel:"取消",modalConfirm:"确认",paginationPrev:"上一页",paginationNext:"下一页",paginationTotal:"共 {total} 条",paginationLabel:"分页导航",paginationPageLabel:"第 {page} 页",toastClose:"关闭通知",tabsNavLabel:"标签导航",tagClose:"移除标签",alertClose:"关闭提示",layoutExpandSider:"展开侧边栏",layoutCollapseSider:"折叠侧边栏",breadcrumbLabel:"面包屑导航",formRequired:"必填字段",formMinLength:"最少 {min} 个字符",formMaxLength:"最多 {max} 个字符",formPattern:"格式不正确",formMin:"不能小于 {min}",formMax:"不能大于 {max}",formValidator:"验证失败",progressLabel:"进度 {percentage}%",datePickerPlaceholder:"请选择日期",datePickerClear:"清除日期",datePickerToday:"今天",datePickerPrevMonth:"上个月",datePickerNextMonth:"下个月",datePickerPrevYear:"上一年",datePickerNextYear:"下一年",uploadSelectFile:"点击或拖拽上传",uploadDropFile:"释放文件上传",uploadRemove:"移除",uploadPreview:"预览",listLoading:"加载中...",listEmpty:"暂无数据",listLabel:"列表"},Ke={badgeOnline:"Online",badgeUnread:"Unread {count}",badgeAvatar:"Avatar",skeletonLoading:"Loading",themeToggleLight:"Light",themeToggleAuto:"Auto",themeToggleDark:"Dark",themeToggleLabel:"Theme toggle",canvasZoomOut:"Zoom out",canvasZoomIn:"Zoom in",canvasZoomReset:"Reset zoom",treeExpandAll:"Expand all",treeCollapseAll:"Collapse all",treeSearchPlaceholder:"Search...",treeEmpty:"No data",treeClearSearch:"Clear search",treeExpand:"Expand",treeCollapse:"Collapse",treeLabel:"Tree navigation",tableLoading:"Loading...",tableEmpty:"No data",selectPlaceholder:"Please select",selectEmpty:"No options",selectClear:"Clear selection",selectListLabel:"Option list",modalClose:"Close",modalCancel:"Cancel",modalConfirm:"Confirm",paginationPrev:"Previous",paginationNext:"Next",paginationTotal:"Total {total}",paginationLabel:"Pagination",paginationPageLabel:"Page {page}",toastClose:"Close notification",tabsNavLabel:"Tab navigation",tagClose:"Remove tag",alertClose:"Close alert",layoutExpandSider:"Expand sidebar",layoutCollapseSider:"Collapse sidebar",breadcrumbLabel:"Breadcrumb navigation",formRequired:"Required field",formMinLength:"Minimum {min} characters",formMaxLength:"Maximum {max} characters",formPattern:"Invalid format",formMin:"Cannot be less than {min}",formMax:"Cannot be greater than {max}",formValidator:"Validation failed",progressLabel:"Progress {percentage}%",datePickerPlaceholder:"Select date",datePickerClear:"Clear date",datePickerToday:"Today",datePickerPrevMonth:"Previous month",datePickerNextMonth:"Next month",datePickerPrevYear:"Previous year",datePickerNextYear:"Next year",uploadSelectFile:"Click or drag to upload",uploadDropFile:"Drop files here",uploadRemove:"Remove",uploadPreview:"Preview",listLoading:"Loading...",listEmpty:"No data",listLabel:"List"},On={"zh-CN":ke,"en-US":Ke},ge=Symbol("nm-locale"),Fe=ke;function jn(n,l){return n?l?n.replace(/\{(\w+)\}/g,(t,o)=>String(l[o]??`{${o}}`)):n:""}function H(){const n=e.inject(ge,e.computed(()=>Fe));function l(t,o){return jn(n.value[t],o)}return{locale:n,t:l}}function Un(n){e.provide(ge,e.computed(()=>n))}function Wn(n){return On[n]??Fe}function Ae(n={}){const{trigger:l,disabled:t}=n,o=n.delay??150,a=e.ref(!1);let r=null,s=null;const c=(l==null?void 0:l.value)??"click";function u(){t!=null&&t.value||(s&&(clearTimeout(s),s=null),c==="hover"?r=setTimeout(()=>{a.value=!0},o):a.value=!0)}function i(){r&&(clearTimeout(r),r=null),s=setTimeout(()=>{a.value=!1},100)}function d(){t!=null&&t.value||(a.value?i():u())}function k(f){if(!(t!=null&&t.value)){if(f.key==="Escape"){a.value=!1;return}f.key==="Tab"&&a.value&&e.nextTick(()=>{typeof document>"u"||(a.value=!1)})}}function b(f){a.value}let w=null;function g(f){!a.value||t!=null&&t.value||b()}return e.onMounted(()=>{typeof document>"u"||(w=f=>{g()},document.addEventListener("click",w,!0))}),e.onBeforeUnmount(()=>{r&&(clearTimeout(r),r=null),s&&(clearTimeout(s),s=null),typeof document<"u"&&w&&document.removeEventListener("click",w,!0)}),{isOpen:a,show:u,hide:i,toggle:d,handleKeydown:k,handleClickOutside:b}}const Hn=["aria-hidden"],qn={class:"nm-popover__text"},Yn={key:0,class:"nm-popover__arrow"},le=R(e.defineComponent({__name:"NeumorphismPopover",props:{position:{default:"auto"},trigger:{default:"click"},disabled:{type:Boolean,default:!1},offset:{default:8},width:{default:"auto"},content:{},showArrow:{type:Boolean,default:!0}},emits:["visible-change"],setup(n,{expose:l,emit:t}){e.useCssVars(C=>({v1e7eeb51:S.value}));const o=n,a=t,{resolveProp:r}=O(),s=e.computed(()=>r(o.position,void 0,"auto")),c=e.computed(()=>r(o.trigger,void 0,"click")),u=e.computed(()=>r(o.offset,void 0,8)),i=e.computed(()=>r(o.width,void 0,"auto")),d=e.computed(()=>r(o.showArrow,void 0,!0)),{isOpen:k,show:b,hide:w,toggle:g,handleKeydown:f}=Ae({trigger:c,disabled:e.computed(()=>o.disabled)}),p=e.ref(),m=e.ref(),_=e.ref(s.value==="auto"?"bottom":s.value),y=e.ref({});function B(){const C=p.value;if(!C||typeof window>"u")return s.value==="auto"?"bottom":s.value;const h=C.getBoundingClientRect(),L=m.value,I=(L==null?void 0:L.offsetHeight)??120,A=(L==null?void 0:L.offsetWidth)??200,T=u.value;if(s.value==="auto"){const P=["bottom","top","right","left"];for(const j of P)switch(j){case"bottom":if(h.bottom+I+T+8<=window.innerHeight)return"bottom";break;case"top":if(h.top-I-T-8>=0)return"top";break;case"right":if(h.right+A+T+8<=window.innerWidth)return"right";break;case"left":if(h.left-A-T-8>=0)return"left";break}return"bottom"}switch(s.value){case"top":if(h.top<I+T+8)return"bottom";break;case"bottom":if(h.bottom+I+T+8>window.innerHeight)return"top";break;case"left":if(h.left<A+T+8)return"right";break;case"right":if(h.right+A+T+8>window.innerWidth)return"left";break}return s.value}function $(){if(typeof window>"u")return;const C=p.value;if(!C)return;const h=B();_.value=h;const L=C.getBoundingClientRect(),I=u.value,A={};switch(h){case"top":A.top=`${L.top+window.scrollY-I}px`,A.left=`${L.left+window.scrollX+L.width/2}px`,A.transform="translate(-50%, -100%)";break;case"bottom":A.top=`${L.bottom+window.scrollY+I}px`,A.left=`${L.left+window.scrollX+L.width/2}px`,A.transform="translate(-50%, 0)";break;case"left":A.top=`${L.top+window.scrollY+L.height/2}px`,A.left=`${L.left+window.scrollX-I}px`,A.transform="translate(-100%, -50%)";break;case"right":A.top=`${L.top+window.scrollY+L.height/2}px`,A.left=`${L.right+window.scrollX+I}px`,A.transform="translate(0, -50%)";break}i.value==="trigger"?A.width=`${L.width}px`:typeof i.value=="number"&&(A.width=`${i.value}px`),y.value=A}function E(){k.value&&$()}function V(C){var L,I;if(!k.value||o.disabled)return;const h=C.target;(L=p.value)!=null&&L.contains(h)||(I=m.value)!=null&&I.contains(h)||w()}e.onMounted(()=>{typeof document>"u"||document.addEventListener("click",V,!0)}),e.onBeforeUnmount(()=>{typeof document>"u"||document.removeEventListener("click",V,!0)}),e.watch(k,C=>{C?(a("visible-change",!0),e.nextTick(()=>{$(),typeof window<"u"&&(window.addEventListener("scroll",E,{passive:!0}),window.addEventListener("resize",E))})):(a("visible-change",!1),_.value=s.value==="auto"?"bottom":s.value,typeof window<"u"&&(window.removeEventListener("scroll",E),window.removeEventListener("resize",E)))}),e.watch(u,()=>{k.value&&e.nextTick($)});const S=e.computed(()=>`${u.value}px`),D=e.computed(()=>["nm-popover",`nm-popover--${_.value}`,{"nm-popover--visible":k.value}]);function z(C){f(C),C.key==="Tab"&&k.value&&e.nextTick(()=>{var L,I;if(typeof document>"u")return;const h=document.activeElement;h instanceof Node&&!((L=p.value)!=null&&L.contains(h))&&!((I=m.value)!=null&&I.contains(h))&&w()})}function N(){c.value==="hover"&&b()}function x(){c.value==="hover"&&w()}function F(){c.value==="click"&&g()}function K(){c.value==="focus"&&b()}l({show:b,hide:w,toggle:g,isOpen:k});function v(C){c.value==="focus"&&e.nextTick(()=>{var L,I;const h=document.activeElement;!((L=p.value)!=null&&L.contains(h))&&!((I=m.value)!=null&&I.contains(h))&&w()})}return(C,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"triggerRef",ref:p,class:e.normalizeClass(["nm-popover-wrapper",{"nm-popover-wrapper--disabled":n.disabled}]),onMouseenter:N,onMouseleave:x,onClick:F,onFocusin:K,onFocusout:v,onKeydown:z},[e.renderSlot(C.$slots,"default",{},void 0,!0),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"nm-popover-fade"},{default:e.withCtx(()=>[e.unref(k)&&(n.content||C.$slots.content)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"popoverRef",ref:m,class:e.normalizeClass(D.value),role:"dialog","aria-hidden":!e.unref(k),style:e.normalizeStyle(y.value),onKeydown:z,onMouseenter:h[0]||(h[0]=L=>c.value==="hover"?e.unref(b)():void 0),onMouseleave:h[1]||(h[1]=L=>c.value==="hover"?e.unref(w)():void 0)},[e.renderSlot(C.$slots,"content",{},()=>[e.createElementVNode("span",qn,e.toDisplayString(n.content),1)],!0),d.value?(e.openBlock(),e.createElementBlock("span",Yn)):e.createCommentVNode("",!0)],46,Hn)):e.createCommentVNode("",!0)]),_:3})]))],34))}}),[["__scopeId","data-v-37f044a3"]]),Gn={class:"nm-datepicker__wrapper"},Zn=["aria-label","aria-expanded"],Jn={class:"nm-datepicker__actions"},Xn=["aria-label"],Qn=["aria-label"],eo={class:"nm-datepicker__header"},to=["aria-label"],no=["aria-label"],oo={class:"nm-datepicker__header-label"},lo=["aria-label"],ao=["aria-label"],ro={class:"nm-datepicker__weekdays"},so={class:"nm-datepicker__days"},io=["disabled","aria-label","aria-selected","aria-current","onClick"],co={class:"nm-datepicker__footer"},Re=R(e.defineComponent({__name:"NeumorphismDatePicker",props:{modelValue:{default:null},placeholder:{default:""},format:{default:"yyyy-MM-dd"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},size:{default:"medium"},minDate:{},maxDate:{},firstDayOfWeek:{default:0},label:{},required:{type:Boolean},error:{type:[String,Boolean]},name:{},id:{}},emits:["update:modelValue","change","focus","blur"],setup(n,{emit:l}){const t=n,o=l,{resolveProp:a}=O(),{t:r}=H(),s=e.computed(()=>a(t.size,void 0,"medium")),c=e.computed(()=>a(t.format,void 0,"yyyy-MM-dd")),u=e.computed(()=>t.placeholder||r("datePickerPlaceholder")),i=e.computed(()=>r("datePickerClear")),d=e.computed(()=>r("datePickerToday")),k=e.computed(()=>r("datePickerPrevMonth")),b=e.computed(()=>r("datePickerNextMonth")),w=e.computed(()=>r("datePickerPrevYear")),g=e.computed(()=>r("datePickerNextYear")),f=e.computed({get:()=>t.modelValue??null,set:q=>{o("update:modelValue",q),o("change",q)}}),{currentYear:p,currentMonth:m,calendarDays:_,weekdays:y,selectedDate:B,selectDate:$,prevMonth:E,nextMonth:V,prevYear:S,nextYear:D,formatDate:z,goToToday:N}=Ie({modelValue:f,minDate:e.computed(()=>t.minDate),maxDate:e.computed(()=>t.maxDate),format:c,firstDayOfWeek:e.computed(()=>t.firstDayOfWeek)}),{fieldId:x,errorMessage:F,baseClassList:K,handleFocus:v,handleBlur:C}=oe(()=>({id:t.id,size:s.value,disabled:t.disabled,error:t.error,prefix:"datepicker"})),h=e.ref(),L=e.ref(!1);function I(q){L.value=q}function A(q){var U;q.isDisabled||($(q.date),(U=h.value)==null||U.hide())}function T(){var U;const q=new Date;q.setHours(0,0,0,0),$(q),N(),(U=h.value)==null||U.hide()}function P(q){q.stopPropagation(),o("update:modelValue",null),o("change",null)}e.watch(B,q=>{q&&(p.value=q.getFullYear(),m.value=q.getMonth()+1)});const j=e.computed(()=>B.value?z(B.value):""),G=e.computed(()=>[...K("nm-datepicker").value,{"nm-datepicker--open":L.value,"nm-datepicker--has-value":B.value!==null}]),ne=e.computed(()=>{const q=p.value,U=m.value;return{year:q,monthName:["January","February","March","April","May","June","July","August","September","October","November","December"][U-1]}});return(q,U)=>(e.openBlock(),e.createElementBlock("div",Gn,[e.createVNode(X,{label:n.label,required:n.required,"for-id":e.unref(x)},null,8,["label","required","for-id"]),e.createVNode(le,{ref_key:"popoverRef",ref:h,disabled:n.disabled,width:"trigger","show-arrow":!1,trigger:"click",onVisibleChange:I},{content:e.withCtx(()=>[e.createElementVNode("div",{class:"nm-datepicker__calendar",role:"dialog","aria-label":n.label||"Date picker"},[e.createElementVNode("div",eo,[e.createElementVNode("button",{class:"nm-datepicker__nav-btn",type:"button","aria-label":w.value,onClick:U[2]||(U[2]=(...W)=>e.unref(S)&&e.unref(S)(...W))},[...U[8]||(U[8]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("polyline",{points:"11 17 6 12 11 7"}),e.createElementVNode("polyline",{points:"18 17 13 12 18 7"})],-1)])],8,to),e.createElementVNode("button",{class:"nm-datepicker__nav-btn",type:"button","aria-label":k.value,onClick:U[3]||(U[3]=(...W)=>e.unref(E)&&e.unref(E)(...W))},[...U[9]||(U[9]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("polyline",{points:"15 18 9 12 15 6"})],-1)])],8,no),e.createElementVNode("span",oo,e.toDisplayString(ne.value.monthName)+" "+e.toDisplayString(ne.value.year),1),e.createElementVNode("button",{class:"nm-datepicker__nav-btn",type:"button","aria-label":b.value,onClick:U[4]||(U[4]=(...W)=>e.unref(V)&&e.unref(V)(...W))},[...U[10]||(U[10]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("polyline",{points:"9 18 15 12 9 6"})],-1)])],8,lo),e.createElementVNode("button",{class:"nm-datepicker__nav-btn",type:"button","aria-label":g.value,onClick:U[5]||(U[5]=(...W)=>e.unref(D)&&e.unref(D)(...W))},[...U[11]||(U[11]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("polyline",{points:"13 17 18 12 13 7"}),e.createElementVNode("polyline",{points:"6 17 11 12 6 7"})],-1)])],8,ao)]),e.createElementVNode("div",ro,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),(W,Ve)=>(e.openBlock(),e.createElementBlock("span",{key:Ve,class:"nm-datepicker__weekday"},e.toDisplayString(W),1))),128))]),e.createElementVNode("div",so,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(W,Ve)=>(e.openBlock(),e.createElementBlock("button",{key:Ve,class:e.normalizeClass(["nm-datepicker__day",{"nm-datepicker__day--other-month":!W.isCurrentMonth,"nm-datepicker__day--today":W.isToday,"nm-datepicker__day--selected":W.isSelected,"nm-datepicker__day--disabled":W.isDisabled,"nm-datepicker__day--in-range":W.isInRange}]),type:"button",disabled:W.isDisabled,"aria-label":`${ne.value.monthName} ${W.day}, ${W.date.getFullYear()}`,"aria-selected":W.isSelected,"aria-current":W.isToday?"date":void 0,onClick:dc=>A(W)},e.toDisplayString(W.day),11,io))),128))]),e.createElementVNode("div",co,[e.createElementVNode("button",{class:"nm-datepicker__today-btn",type:"button",onClick:T},e.toDisplayString(d.value),1)])],8,Qn)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(G.value),"aria-label":n.label||u.value,role:"combobox","aria-expanded":L.value,"aria-haspopup":"dialog",onFocus:U[0]||(U[0]=W=>e.unref(v)(W,o)),onBlur:U[1]||(U[1]=W=>e.unref(C)(W,o))},[e.createElementVNode("span",{class:e.normalizeClass(["nm-datepicker__value",{"nm-datepicker__value--placeholder":!e.unref(B)}])},e.toDisplayString(j.value||u.value),3),e.createElementVNode("span",Jn,[n.clearable&&e.unref(B)?(e.openBlock(),e.createElementBlock("button",{key:0,class:"nm-datepicker__clear",type:"button","aria-label":i.value,onClick:P},[...U[6]||(U[6]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12"})],-1)])],8,Xn)):e.createCommentVNode("",!0),U[7]||(U[7]=e.createElementVNode("svg",{class:"nm-datepicker__icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),e.createElementVNode("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),e.createElementVNode("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),e.createElementVNode("line",{x1:"3",y1:"10",x2:"21",y2:"10"})],-1))])],42,Zn)]),_:1},8,["disabled"]),e.createVNode(te,{id:`${e.unref(x)}-error`,message:e.unref(F)},null,8,["id","message"])]))}}),[["__scopeId","data-v-d19f28ea"]]);function Oe(n){const{modelValue:l,options:t,disabled:o}=n,a=e.ref(!1),r=e.ref("");let s=null;function c(){r.value="",s&&(clearTimeout(s),s=null)}function u(m){r.value+=m.toLowerCase(),s&&clearTimeout(s),s=setTimeout(()=>{r.value=""},500);const _=t.value.filter($=>!$.disabled),y=r.value;let B=_.find($=>$.label.toLowerCase().startsWith(y));B||(B=_.find($=>$.label.toLowerCase().includes(y))),B&&b(B)}const i=e.computed(()=>t.value.find(m=>m.value===l.value));function d(){o!=null&&o.value||(a.value=!a.value)}function k(){a.value=!1,c()}function b(m){m.disabled||o!=null&&o.value||(l.value=m.value)}function w(m){m.disabled||o!=null&&o.value||(l.value=m.value,a.value=!1,c())}function g(m){o!=null&&o.value||(l.value=m,a.value=!1,c())}function f(m){if(o!=null&&o.value)return;if(m.key==="Escape"){a.value=!1,c();return}if(m.key==="Enter"||m.key===" "){m.preventDefault(),d();return}if(m.key==="ArrowDown"&&!a.value){m.preventDefault(),a.value=!0;return}if(!a.value)return;const _=t.value.filter(B=>!B.disabled);if(_.length===0)return;const y=_.findIndex(B=>B.value===l.value);if(m.key==="ArrowDown"){m.preventDefault();const B=y+1<_.length?_[y+1]:_[0];B&&b(B)}else if(m.key==="ArrowUp"){m.preventDefault();const B=y-1>=0?_[y-1]:_[_.length-1];B&&b(B)}else m.key==="Home"?(m.preventDefault(),_[0]&&b(_[0])):m.key==="End"?(m.preventDefault(),_[_.length-1]&&b(_[_.length-1])):m.key.length===1&&!m.ctrlKey&&!m.metaKey&&!m.altKey&&(m.preventDefault(),u(m.key))}function p(m,_){_.contains(m)||(a.value=!1,c())}return{isOpen:a,selectedOption:i,toggleOpen:d,close:k,selectOption:w,clearValue:g,handleKeydown:f,handleBlur:p}}const mo={class:"nm-select__wrapper"},uo=["tabindex","aria-expanded","aria-labelledby"],fo={class:"nm-select__actions"},po=["aria-label"],ho=["aria-label"],ko=["aria-selected","aria-disabled","onClick"],go={key:0,class:"nm-select__option nm-select__option--empty"},je=R(e.defineComponent({__name:"NeumorphismSelect",props:{modelValue:{default:""},options:{default:()=>[]},placeholder:{default:""},disabled:{type:Boolean,default:!1},size:{default:"medium"},label:{},required:{type:Boolean},error:{type:[String,Boolean]},name:{},id:{},clearable:{type:Boolean,default:!1},emptyText:{default:""},clearLabel:{default:""},listLabel:{default:""}},emits:["update:modelValue","change","focus","blur"],setup(n,{emit:l}){const t=n,o=J(),{t:a}=H(),r=e.computed(()=>{var C;return t.size??((C=o.value.select)==null?void 0:C.size)??"medium"}),s=e.computed(()=>t.placeholder||a("selectPlaceholder")),c=e.computed(()=>t.emptyText||a("selectEmpty")),u=e.computed(()=>t.clearLabel||a("selectClear")),i=e.computed(()=>t.listLabel||a("selectListLabel")),d=l,k=e.computed({get:()=>t.modelValue,set:C=>{d("update:modelValue",C),d("change",C)}}),{isOpen:b,selectedOption:w,toggleOpen:g,selectOption:f,clearValue:p,handleKeydown:m,handleBlur:_}=Oe({modelValue:k,options:e.computed(()=>t.options),disabled:e.computed(()=>t.disabled)}),{fieldId:y,errorMessage:B,baseClassList:$,handleFocus:E,handleBlur:V}=oe(()=>({id:t.id,size:r.value,disabled:t.disabled,error:t.error,prefix:"select"})),S=e.computed(()=>[...$("nm-select").value,{"nm-select--open":b.value,"nm-select--has-value":t.modelValue!==""&&t.modelValue!==void 0&&t.modelValue!==null}]);function D(C){C.stopPropagation(),p()}const z=e.ref(),N=e.ref(),x=e.ref({top:0,left:0,width:0});function F(){if(!z.value||typeof window>"u")return;const C=z.value.getBoundingClientRect();x.value={top:C.bottom+window.scrollY+6,left:C.left+window.scrollX,width:C.width}}e.watch(b,C=>{C?(e.nextTick(F),typeof window<"u"&&(window.addEventListener("scroll",F,!0),window.addEventListener("resize",F))):typeof window<"u"&&(window.removeEventListener("scroll",F,!0),window.removeEventListener("resize",F))});const K=e.computed(()=>({position:"fixed",top:`${x.value.top}px`,left:`${x.value.left}px`,width:`${x.value.width}px`}));function v(C){var h;(h=N.value)!=null&&h.contains(C.relatedTarget)||(_(C.relatedTarget,C.currentTarget),V(C,d))}return(C,h)=>(e.openBlock(),e.createElementBlock("div",mo,[e.createVNode(X,{label:n.label,required:n.required,"for-id":e.unref(y)},null,8,["label","required","for-id"]),e.createElementVNode("div",{ref_key:"triggerRef",ref:z,class:e.normalizeClass(S.value),tabindex:n.disabled?-1:0,role:"combobox","aria-expanded":e.unref(b),"aria-haspopup":"listbox","aria-labelledby":n.label?e.unref(y):void 0,onClick:h[0]||(h[0]=(...L)=>e.unref(g)&&e.unref(g)(...L)),onFocus:h[1]||(h[1]=L=>e.unref(E)(L,d)),onBlur:v,onKeydown:h[2]||(h[2]=(...L)=>e.unref(m)&&e.unref(m)(...L))},[e.createElementVNode("span",{class:e.normalizeClass(["nm-select__value",{"nm-select__value--placeholder":!e.unref(w)}])},[e.renderSlot(C.$slots,"value",{option:e.unref(w)},()=>{var L;return[e.createTextVNode(e.toDisplayString(((L=e.unref(w))==null?void 0:L.label)||s.value),1)]},!0)],2),e.createElementVNode("span",fo,[n.clearable&&e.unref(w)?(e.openBlock(),e.createElementBlock("button",{key:0,class:"nm-select__clear",type:"button","aria-label":u.value,onClick:D},[...h[3]||(h[3]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12"})],-1)])],8,po)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["nm-select__arrow",{"nm-select__arrow--open":e.unref(b)}]),width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[...h[4]||(h[4]=[e.createElementVNode("path",{d:"M6 9l6 6 6-6"},null,-1)])],2))]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"nm-select-dropdown"},{default:e.withCtx(()=>[e.unref(b)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:N,class:"nm-select__dropdown",role:"listbox","aria-label":n.label||i.value,style:e.normalizeStyle(K.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,(L,I)=>e.renderSlot(C.$slots,"option",{key:L.value,option:L,selected:L.value===n.modelValue,index:I,select:e.unref(f)},()=>[e.createElementVNode("div",{class:e.normalizeClass(["nm-select__option",{"nm-select__option--selected":L.value===n.modelValue,"nm-select__option--disabled":L.disabled}]),role:"option","aria-selected":L.value===n.modelValue,"aria-disabled":L.disabled,onClick:e.withModifiers(A=>e.unref(f)(L),["stop"])},e.toDisplayString(L.label),11,ko)],!0)),128)),n.options.length===0?(e.openBlock(),e.createElementBlock("div",go,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)],12,ho)):e.createCommentVNode("",!0)]),_:3})]))],42,uo),e.createVNode(te,{id:`${e.unref(y)}-error`,message:e.unref(B)},null,8,["id","message"])]))}}),[["__scopeId","data-v-1bdea91a"]]),yo=["id","value","placeholder","disabled","readonly","required","maxlength","minlength","rows","name","inputmode","aria-invalid","aria-errormessage"],bo={class:"nm-textarea__footer"},_o={key:0,class:"nm-textarea__count"},Ue=R(e.defineComponent({inheritAttrs:!1,__name:"NeumorphismTextarea",props:{modelValue:{default:""},placeholder:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},size:{default:"medium"},maxlength:{},minlength:{},label:{},error:{type:[String,Boolean]},name:{},id:{},inputmode:{},rows:{default:4},autoResize:{type:Boolean,default:!1},showCount:{type:Boolean,default:!1}},emits:["update:modelValue","focus","blur","input","change","keydown","enter"],setup(n,{emit:l}){const t=n,o=l,a=e.useAttrs(),r=e.computed(()=>{const $={};for(const E of Object.keys(a))E!=="class"&&E!=="style"&&($[E]=a[E]);return $}),{config:s,resolveProp:c}=O(),u=e.computed(()=>{var $;return c(t.size,($=s.value.textarea)==null?void 0:$.size,"medium")}),{fieldId:i,errorMessage:d,baseClassList:k,handleFocus:b,handleBlur:w}=oe(()=>({id:t.id,size:u.value,disabled:t.disabled,error:t.error,prefix:"textarea"})),g=e.ref(),f=e.computed(()=>{var $;return(($=t.modelValue)==null?void 0:$.length)||0}),p=e.computed(()=>[...k("nm-textarea").value,{"nm-textarea--readonly":t.readonly,"nm-textarea--has-label":!!t.label}]);function m(){!t.autoResize||!g.value||(g.value.style.height="auto",g.value.style.height=g.value.scrollHeight+"px")}function _($){const E=$.target;o("update:modelValue",E.value),o("input",$),m()}function y($){o("change",$)}function B($){o("keydown",$),$.key==="Enter"&&!$.shiftKey&&o("enter",t.modelValue)}return e.onMounted(()=>{m()}),e.watch(()=>t.modelValue,()=>{t.autoResize&&e.nextTick(m)}),($,E)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["nm-textarea__wrapper",e.unref(a).class]),style:e.normalizeStyle(e.unref(a).style)},[e.createVNode(X,{label:n.label,required:n.required,"for-id":e.unref(i)},null,8,["label","required","for-id"]),e.createElementVNode("div",{class:e.normalizeClass(p.value)},[e.createElementVNode("textarea",e.mergeProps({id:e.unref(i),ref_key:"textareaRef",ref:g,class:["nm-textarea__field",{"nm-textarea__field--auto-resize":n.autoResize}],value:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,readonly:n.readonly,required:n.required,maxlength:n.maxlength,minlength:n.minlength,rows:n.rows,name:n.name,inputmode:n.inputmode,"aria-invalid":!!n.error,"aria-errormessage":e.unref(d)?`${e.unref(i)}-error`:void 0},r.value,{onInput:_,onChange:y,onFocus:E[0]||(E[0]=V=>e.unref(b)(V,o)),onBlur:E[1]||(E[1]=V=>e.unref(w)(V,o)),onKeydown:B}),null,16,yo)],2),e.createElementVNode("div",bo,[e.createVNode(te,{id:`${e.unref(i)}-error`,message:e.unref(d)},null,8,["id","message"]),n.showCount&&n.maxlength?(e.openBlock(),e.createElementBlock("span",_o,e.toDisplayString(f.value)+" / "+e.toDisplayString(n.maxlength),1)):e.createCommentVNode("",!0)])],6))}}),[["__scopeId","data-v-c2f45776"]]),ye=new WeakMap;function We(n){return ye.get(n)??0}function He(n,l){l<=0?ye.delete(n):ye.set(n,l)}function wo(){return typeof window>"u"?0:window.innerWidth-document.documentElement.clientWidth}function qe(n){const{modelValue:l}=n,t=n.closable??e.ref(!0),o=n.destroyOnClose??e.ref(!1),a=e.ref(l.value),r=e.ref(l.value),s=e.ref(null);let c;function u(){if(typeof document>"u")return;const f=We(document);if(He(document,f+1),f===0){const p=wo();p>0&&(document.body.style.paddingRight=`${p}px`),document.body.style.overflow="hidden"}}function i(){if(typeof document>"u")return;const f=We(document),p=Math.max(0,f-1);He(document,p),p===0&&(document.body.style.overflow="",document.body.style.paddingRight="")}e.watch(()=>l.value,f=>{var p;if(f){r.value=!0;const m=document.activeElement;s.value=m instanceof HTMLElement?m:null,u(),e.nextTick(()=>{a.value=!0})}else a.value=!1,clearTimeout(c),o.value&&(c=setTimeout(()=>{r.value=!1},200)),i(),(p=s.value)==null||p.focus()});function d(){t.value&&(l.value=!1)}function k(){l.value=!1}function b(f){return f?Array.from(f.querySelectorAll('button:not([disabled]), [href]:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), [contenteditable]:not([contenteditable="false"])')):[]}function w(f){if(!f)return;f.focus();const p=b(f);p.length>0&&p[0].focus()}function g(f,p){if(f.key==="Escape"&&t.value){d();return}if(f.key==="Tab"&&p){const m=b(p);if(m.length===0)return;const _=m[0],y=m[m.length-1];f.shiftKey?document.activeElement===_&&(f.preventDefault(),y==null||y.focus()):document.activeElement===y&&(f.preventDefault(),_==null||_.focus())}}return e.onMounted(()=>{l.value&&(r.value=!0,e.nextTick(()=>{a.value=!0}))}),e.onBeforeUnmount(()=>{var f;clearTimeout(c),i(),a.value&&((f=s.value)==null||f.focus())}),{visible:a,rendered:r,close:d,confirm:k,handleKeydown:g,focusDialog:w}}const Bo=["aria-labelledby"],Co={class:"nm-modal__header"},Eo=["aria-label"],$o={class:"nm-modal__body"},No={key:0,class:"nm-modal__footer"},Ye=R(e.defineComponent({__name:"NeumorphismModal",props:{modelValue:{type:Boolean,default:!1},title:{},size:{default:"medium"},closable:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},footer:{type:Boolean,default:!0},closeLabel:{default:"关闭"},cancelLabel:{default:"取消"},confirmLabel:{default:"确认"}},emits:["update:modelValue","open","close","confirm","cancel"],setup(n,{emit:l}){const t=n,{t:o}=H(),a=J(),r=e.computed(()=>{var S;return t.size??((S=a.value.modal)==null?void 0:S.size)??"medium"}),s=e.computed(()=>t.closeLabel||o("modalClose")),c=e.computed(()=>t.cancelLabel||o("modalCancel")),u=e.computed(()=>t.confirmLabel||o("modalConfirm")),i=l,d=e.computed({get:()=>t.modelValue,set:S=>i("update:modelValue",S)}),{visible:k,rendered:b,close:w,confirm:g,handleKeydown:f,focusDialog:p}=qe({modelValue:d,maskClosable:e.computed(()=>t.maskClosable),closable:e.computed(()=>t.closable),destroyOnClose:e.computed(()=>t.destroyOnClose)}),m=e.ref(),_=`nm-modal-title-${Y()}`;e.watch(k,async S=>{S&&(await e.nextTick(),p(m.value))});function y(){t.maskClosable&&t.closable&&(w(),i("cancel"))}function B(){w(),i("cancel")}function $(){i("confirm"),g()}function E(S){f(S,m.value)}const V=e.computed(()=>["nm-modal",`nm-modal--${r.value}`]);return(S,D)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"nm-modal-fade"},{default:e.withCtx(()=>[e.unref(b)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nm-modal__mask",{"nm-modal__mask--visible":e.unref(k)}]),onClick:e.withModifiers(y,["self"])},[e.createVNode(e.Transition,{name:"nm-modal-scale"},{default:e.withCtx(()=>[e.unref(k)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"dialogRef",ref:m,class:e.normalizeClass(V.value),role:"dialog","aria-modal":"true","aria-labelledby":n.title?_:void 0,tabindex:"-1",onKeydown:E},[e.createElementVNode("div",Co,[n.title?(e.openBlock(),e.createElementBlock("h2",{key:0,id:_,class:"nm-modal__title"},e.toDisplayString(n.title),1)):e.createCommentVNode("",!0),e.renderSlot(S.$slots,"header",{},void 0,!0),n.showClose&&n.closable?(e.openBlock(),e.createElementBlock("button",{key:1,class:"nm-modal__close","aria-label":s.value,type:"button",onClick:B},[...D[0]||(D[0]=[e.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12"})],-1)])],8,Eo)):e.createCommentVNode("",!0)]),e.createElementVNode("div",$o,[e.renderSlot(S.$slots,"default",{},void 0,!0)]),n.footer?(e.openBlock(),e.createElementBlock("div",No,[e.renderSlot(S.$slots,"footer",{},()=>[e.createElementVNode("button",{class:"nm-modal__btn nm-modal__btn--cancel",type:"button",onClick:B},e.toDisplayString(c.value),1),e.createElementVNode("button",{class:"nm-modal__btn nm-modal__btn--confirm",type:"button",onClick:$},e.toDisplayString(u.value),1)],!0)])):e.createCommentVNode("",!0)],42,Bo)):e.createCommentVNode("",!0)]),_:3})],2)):e.createCommentVNode("",!0)]),_:3})]))}}),[["__scopeId","data-v-b04139cf"]]);function Vo(){return`nm-toast-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`}function Ge(n={}){const{maxCount:l=5}=n,t=e.ref([]),o=new Map;let a=!1;function r(i){const d=o.get(i);d&&(clearTimeout(d),o.delete(i))}function s(i){const d=Vo(),k={id:d,message:i.message,type:i.type||"info",duration:i.duration??3e3,closable:i.closable??!0,timestamp:Date.now(),leaving:!1};if(t.value=[...t.value.slice(Math.max(0,t.value.length-(l-1))),k],a){const b=o.get("__clearAll");b&&(clearTimeout(b),o.delete("__clearAll")),a=!1,t.value=t.value.filter(w=>!w.leaving)}return k.duration>0&&(r(d),o.set(d,setTimeout(()=>c(d),k.duration))),d}function c(i){r(i);const d=t.value.find(k=>k.id===i);d&&(d.leaving=!0),o.set(i,setTimeout(()=>{t.value=t.value.filter(k=>k.id!==i),o.delete(i)},250))}function u(){o.forEach(i=>clearTimeout(i)),o.clear(),a=!0,t.value.forEach(i=>{i.leaving=!0}),o.set("__clearAll",setTimeout(()=>{t.value=[],o.delete("__clearAll"),a=!1},250))}return e.onBeforeUnmount(()=>{o.forEach(i=>clearTimeout(i)),o.clear()}),{toasts:t,addToast:s,removeToast:c,clearAll:u}}const xo={class:"nm-toast__icon"},So={key:0,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},zo={key:1,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},To={key:2,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Lo={key:3,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Mo={class:"nm-toast__message"},Do=["aria-label","onClick"],Ze=R(e.defineComponent({__name:"NeumorphismToastProvider",props:{position:{default:"top-right"},maxCount:{default:5},closeLabel:{default:""}},setup(n,{expose:l}){const t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var g;return a(t.position,(g=o.value.toast)==null?void 0:g.position,"top-right")}),s=e.computed(()=>{var g;return a(t.maxCount,(g=o.value.toast)==null?void 0:g.maxCount,5)}),{t:c}=H(),u=e.computed(()=>t.closeLabel||c("toastClose")),{toasts:i,addToast:d,removeToast:k,clearAll:b}=Ge({maxCount:s.value});l({addToast:d,removeToast:k,clearAll:b,toasts:i});const w=e.computed(()=>["nm-toast-container",`nm-toast-container--${r.value}`]);return(g,f)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createElementVNode("div",{class:e.normalizeClass(w.value),"aria-live":"polite","aria-atomic":"false"},[e.createVNode(e.TransitionGroup,{name:"nm-toast-list"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),p=>e.renderSlot(g.$slots,"toast-item",{key:p.id,toast:p,remove:()=>e.unref(k)(p.id)},()=>[e.createElementVNode("div",{class:e.normalizeClass(["nm-toast",[`nm-toast--${p.type}`,{"nm-toast--leaving":p.leaving}]]),role:"status"},[e.createElementVNode("span",xo,[p.type==="success"?(e.openBlock(),e.createElementBlock("svg",So,[...f[0]||(f[0]=[e.createElementVNode("path",{d:"M5 13l4 4L19 7"},null,-1)])])):p.type==="error"?(e.openBlock(),e.createElementBlock("svg",zo,[...f[1]||(f[1]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("path",{d:"M15 9l-6 6M9 9l6 6"},null,-1)])])):p.type==="warning"?(e.openBlock(),e.createElementBlock("svg",To,[...f[2]||(f[2]=[e.createElementVNode("path",{d:"M12 2L2 22h20L12 2zM12 9v4M12 17v1"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Lo,[...f[3]||(f[3]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("path",{d:"M12 16v-4M12 8v-1"},null,-1)])]))]),e.createElementVNode("span",Mo,e.toDisplayString(p.message),1),p.closable?(e.openBlock(),e.createElementBlock("button",{key:0,class:"nm-toast__close","aria-label":u.value,type:"button",onClick:m=>e.unref(k)(p.id)},[...f[4]||(f[4]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12"})],-1)])],8,Do)):e.createCommentVNode("",!0)],2)],!0)),128))]),_:3})],2)]))}}),[["__scopeId","data-v-57965a01"]]);function Je(n={}){const{disabled:l}=n,t=n.delay??150,o=e.ref(!1);let a=null,r=null;function s(){l!=null&&l.value||(r&&(clearTimeout(r),r=null),a=setTimeout(()=>{o.value=!0},t))}function c(){a&&(clearTimeout(a),a=null),r=setTimeout(()=>{o.value=!1},100)}function u(){l!=null&&l.value||(o.value?c():s())}function i(d){d.key==="Escape"&&(o.value=!1)}return e.onBeforeUnmount(()=>{a&&(clearTimeout(a),a=null),r&&(clearTimeout(r),r=null)}),{isVisible:o,show:s,hide:c,toggle:u,handleKeydown:i}}const vo=["aria-hidden"],Po={class:"nm-tooltip__content"},be=R(e.defineComponent({__name:"NeumorphismTooltip",props:{content:{},position:{default:"top"},trigger:{default:"hover"},disabled:{type:Boolean,default:!1},offset:{default:8},delay:{default:150}},setup(n){e.useCssVars(y=>({d310ce7a:w.value}));const l=n,{config:t,resolveProp:o}=O(),a=e.computed(()=>{var y;return o(l.position,(y=t.value.tooltip)==null?void 0:y.position,"top")}),r=e.computed(()=>{var y;return o(l.trigger,(y=t.value.tooltip)==null?void 0:y.trigger,"hover")}),s=e.computed(()=>{var y;return o(l.offset,(y=t.value.tooltip)==null?void 0:y.offset,8)}),c=e.computed(()=>{var y;return o(l.delay,(y=t.value.tooltip)==null?void 0:y.delay,150)}),{isVisible:u,show:i,hide:d,toggle:k,handleKeydown:b}=Je({disabled:e.computed(()=>l.disabled),delay:c.value}),w=e.computed(()=>`${s.value}px`),g=e.ref(),f=e.ref(a.value);function p(){const y=g.value;if(!y||typeof window>"u")return a.value;const B=y.getBoundingClientRect(),$=y.querySelector(".nm-tooltip"),E=($==null?void 0:$.offsetHeight)??40,V=($==null?void 0:$.offsetWidth)??120;switch(a.value){case"top":if(B.top<E+s.value+8)return"bottom";break;case"bottom":if(B.bottom+E+s.value+8>window.innerHeight)return"top";break;case"left":if(B.left<V+s.value+8)return"right";break;case"right":if(B.right+V+s.value+8>window.innerWidth)return"left";break}return a.value}function m(){u.value&&(f.value=p())}e.watch(u,y=>{y?e.nextTick(()=>{f.value=p(),typeof window<"u"&&(window.addEventListener("scroll",m,{passive:!0}),window.addEventListener("resize",m))}):(f.value=a.value,typeof window<"u"&&(window.removeEventListener("scroll",m),window.removeEventListener("resize",m)))});const _=e.computed(()=>["nm-tooltip",`nm-tooltip--${f.value}`,{"nm-tooltip--visible":u.value}]);return(y,B)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"triggerRef",ref:g,class:e.normalizeClass(["nm-tooltip-wrapper",{"nm-tooltip-wrapper--disabled":n.disabled}]),onMouseenter:B[2]||(B[2]=$=>r.value==="hover"?e.unref(i)():void 0),onMouseleave:B[3]||(B[3]=$=>r.value==="hover"?e.unref(d)():void 0),onClick:B[4]||(B[4]=$=>r.value==="click"?e.unref(k)():void 0),onFocusin:B[5]||(B[5]=$=>r.value==="focus"?e.unref(i)():void 0),onFocusout:B[6]||(B[6]=$=>r.value==="focus"?e.unref(d)():void 0),onKeydown:B[7]||(B[7]=(...$)=>e.unref(b)&&e.unref(b)(...$))},[e.renderSlot(y.$slots,"default",{},void 0,!0),e.createVNode(e.Transition,{name:"nm-tooltip-fade"},{default:e.withCtx(()=>[e.unref(u)&&(n.content||y.$slots.content)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(_.value),role:"tooltip","aria-hidden":!e.unref(u),onMouseenter:B[0]||(B[0]=$=>r.value==="hover"?e.unref(i)():void 0),onMouseleave:B[1]||(B[1]=$=>r.value==="hover"?e.unref(d)():void 0)},[B[8]||(B[8]=e.createElementVNode("span",{class:"nm-tooltip__arrow"},null,-1)),e.createElementVNode("span",Po,[e.renderSlot(y.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(n.content),1)],!0)])],42,vo)):e.createCommentVNode("",!0)]),_:3})],34))}}),[["__scopeId","data-v-f2e8bc1c"]]);function Xe(n={}){const{duration:l=0}=n,t=e.ref(!0),o=e.ref(!1);let a=null,r=null;function s(){a&&(clearTimeout(a),a=null),r&&(clearTimeout(r),r=null)}function c(){o.value||!t.value||(s(),o.value=!0,r=setTimeout(()=>{t.value=!1,o.value=!1,r=null},250))}return l>0&&(a=setTimeout(()=>{c()},l)),e.onBeforeUnmount(()=>{s()}),{isVisible:t,close:c,leaving:o}}const Io=["aria-live"],Ko={key:0,class:"nm-alert__icon","aria-hidden":"true"},Fo=["viewBox"],Ao=["d"],Ro={class:"nm-alert__content"},Oo={key:0,class:"nm-alert__title"},jo={key:1,class:"nm-alert__message"},Uo=["aria-label"],Qe=R(e.defineComponent({__name:"NeumorphismAlert",props:{type:{default:"info"},title:{default:""},message:{default:""},closable:{type:Boolean,default:!0},duration:{default:0},icon:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},size:{default:"medium"},closeLabel:{default:""}},emits:["close"],setup(n,{emit:l}){const t=n,o=l,{resolveProp:a}=O(),r=e.computed(()=>a(t.type,void 0,"info")),s=e.computed(()=>a(t.closable,void 0,!0)),c=e.computed(()=>a(t.duration,void 0,0)),u=e.computed(()=>a(t.icon,void 0,!0)),i=e.computed(()=>a(t.bordered,void 0,!0)),d=e.computed(()=>a(t.size,void 0,"medium")),{t:k}=H(),b=e.computed(()=>t.closeLabel||k("alertClose")),{isVisible:w,close:g,leaving:f}=Xe({duration:c.value});e.watch(c,y=>{w.value&&!f.value&&y>0&&setTimeout(()=>g(),y)});function p(){g(),setTimeout(()=>{o("close")},300)}const m=e.computed(()=>["nm-alert",`nm-alert--${r.value}`,`nm-alert--${d.value}`,{"nm-alert--bordered":i.value,"nm-alert--leaving":f.value,"nm-alert--hidden":!w.value}]),_={info:{viewBox:"0 0 24 24",paths:["M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"]},success:{viewBox:"0 0 24 24",paths:["M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"]},warning:{viewBox:"0 0 24 24",paths:["M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"]},error:{viewBox:"0 0 24 24",paths:["M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"]}};return(y,B)=>(e.openBlock(),e.createBlock(e.Transition,{name:"nm-alert-fade"},{default:e.withCtx(()=>[e.unref(w)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(m.value),role:"alert","aria-live":r.value==="error"?"assertive":"polite"},[u.value?(e.openBlock(),e.createElementBlock("div",Ko,[e.renderSlot(y.$slots,"icon",{},()=>[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:_[r.value].viewBox,fill:"currentColor"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_[r.value].paths,($,E)=>(e.openBlock(),e.createElementBlock("path",{key:E,d:$},null,8,Ao))),128))],8,Fo))],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ro,[e.renderSlot(y.$slots,"default",{},()=>[n.title?(e.openBlock(),e.createElementBlock("div",Oo,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",jo,e.toDisplayString(n.message),1)):e.createCommentVNode("",!0)],!0)]),s.value?(e.openBlock(),e.createElementBlock("button",{key:1,class:"nm-alert__close","aria-label":b.value,type:"button",onClick:p},[...B[0]||(B[0]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[e.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12"})],-1)])],8,Uo)):e.createCommentVNode("",!0)],10,Io)):e.createCommentVNode("",!0)]),_:3}))}}),[["__scopeId","data-v-44329a9b"]]),Wo={key:0,class:"nm-dropdown__divider",role:"separator"},Ho=["aria-disabled","tabindex","onClick"],qo={key:0,class:"nm-dropdown__item-icon"},Yo={class:"nm-dropdown__item-label"},Go={key:0,class:"nm-dropdown__custom"},et=R(e.defineComponent({__name:"NeumorphismDropdown",props:{items:{default:()=>[]},position:{default:"bottom"},trigger:{default:"click"},disabled:{type:Boolean,default:!1},offset:{default:4}},emits:["select","visible-change"],setup(n,{emit:l}){const t=n,{resolveProp:o}=O(),a=e.computed(()=>o(t.position,void 0,"bottom")),r=e.computed(()=>o(t.trigger,void 0,"click")),s=e.computed(()=>o(t.offset,void 0,4)),c=l,u=e.ref(),i=e.ref(-1);function d(f){var p,m;f.disabled||(c("select",f),(m=(p=u.value)==null?void 0:p.hide)==null||m.call(p))}function k(f){f||(i.value=-1),c("visible-change",f)}function b(f){var m,_;const p=t.items.filter(y=>!y.disabled);if(p.length)switch(f.key){case"ArrowDown":{f.preventDefault(),i.value=i.value<p.length-1?i.value+1:0;break}case"ArrowUp":{f.preventDefault(),i.value=i.value>0?i.value-1:p.length-1;break}case"Enter":case" ":{f.preventDefault(),i.value>=0&&d(p[i.value]);break}case"Escape":{(_=(m=u.value)==null?void 0:m.hide)==null||_.call(m);break}}}function w(f,p){const m=t.items.filter(_=>!_.disabled)[i.value]===f;return["nm-dropdown__item",{"nm-dropdown__item--disabled":f.disabled,"nm-dropdown__item--danger":f.danger,"nm-dropdown__item--divided":f.divided,"nm-dropdown__item--active":m}]}const g=e.computed(()=>["nm-dropdown"]);return(f,p)=>(e.openBlock(),e.createBlock(le,{ref_key:"popoverRef",ref:u,position:a.value,trigger:r.value,disabled:n.disabled,offset:s.value,"show-arrow":!1,onVisibleChange:k},{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(g.value),role:"menu",onKeydown:b},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(m,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:m.key},[m.divided&&_>0?(e.openBlock(),e.createElementBlock("div",Wo)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(w(m)),role:"menuitem","aria-disabled":m.disabled,tabindex:m.disabled?-1:0,onClick:y=>d(m)},[m.icon?(e.openBlock(),e.createElementBlock("span",qo,e.toDisplayString(m.icon),1)):e.createCommentVNode("",!0),e.createElementVNode("span",Yo,e.toDisplayString(m.label),1)],10,Ho)],64))),128)),n.items.length===0&&f.$slots.items?(e.openBlock(),e.createElementBlock("div",Go,[e.renderSlot(f.$slots,"items",{},void 0,!0)])):e.createCommentVNode("",!0)],34)]),default:e.withCtx(()=>[e.renderSlot(f.$slots,"default",{},void 0,!0)]),_:3},8,["position","trigger","disabled","offset"]))}}),[["__scopeId","data-v-bf5889d7"]]);function ce(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function tt(n){const{modelValue:l,options:t,searchFn:o,loading:a,debounceMs:r=300}=n,s=e.ref(""),c=e.ref(!1),u=e.ref(-1),i=e.ref([]),d=e.ref(!1);let k=null;function b(){k&&(clearTimeout(k),k=null)}const w=e.computed(()=>o?i.value:(t==null?void 0:t.value)??[]),g=e.computed(()=>{const E=s.value.trim().toLowerCase();return o||!E?w.value:w.value.filter(V=>V.label.toLowerCase().includes(E))});function f(E){const V=s.value.trim();if(!V)return ce(E);const S=E.toLowerCase(),D=V.toLowerCase();let z="",N=0;for(;N<E.length;){const x=S.indexOf(D,N);if(x===-1){z+=ce(E.slice(N));break}z+=ce(E.slice(N,x)),z+='<mark class="nm-autocomplete__mark">'+ce(E.slice(x,x+V.length))+"</mark>",N=x+V.length}return z}function p(E){if(!o)return;k&&clearTimeout(k);const V=E.trim();if(!V){i.value=[],d.value=!1,a&&(a.value=!1);return}d.value=!0,a&&(a.value=!0),k=setTimeout(async()=>{try{const S=await o(V);i.value=S}catch{i.value=[]}finally{d.value=!1,a&&(a.value=!1)}},r)}e.watch(l,E=>{if(E===void 0||E===""||E===null)return;const S=w.value.find(D=>D.value===E);S&&S.label!==s.value&&(s.value=S.label)},{flush:"sync"}),e.watch(g,()=>{u.value=-1});function m(){c.value=!0}function _(){c.value=!1,u.value=-1}function y(E){E.disabled||(l.value=E.value,s.value=E.label,c.value=!1,u.value=-1)}function B(E){s.value=E,u.value=-1,o&&p(E),c.value||(c.value=!0)}function $(E){const V=g.value.filter(S=>!S.disabled);switch(E.key){case"ArrowDown":if(E.preventDefault(),!c.value){c.value=!0;return}if(V.length===0)return;u.value=u.value+1>=V.length?0:u.value+1;break;case"ArrowUp":if(E.preventDefault(),!c.value){c.value=!0;return}if(V.length===0)return;u.value=u.value-1<0?V.length-1:u.value-1;break;case"Enter":if(!c.value||V.length===0)return;E.preventDefault(),u.value>=0&&u.value<V.length&&y(V[u.value]);break;case"Escape":E.preventDefault(),c.value=!1,u.value=-1;break}}return{inputValue:s,isOpen:c,filteredOptions:g,activeIndex:u,highlightMatch:f,selectOption:y,handleKeydown:$,handleInput:B,open:m,close:_,cleanupTimers:b}}const Zo={class:"nm-autocomplete__suffix"},Jo={key:1,class:"nm-autocomplete__spinner","aria-hidden":"true"},Xo=["aria-selected","aria-disabled","onClick"],Qo=["innerHTML"],el={key:1,class:"nm-autocomplete__empty"},tl={key:2,class:"nm-autocomplete__loading"},nt=R(e.defineComponent({__name:"NeumorphismAutoComplete",props:{modelValue:{default:void 0},options:{default:()=>[]},placeholder:{default:""},disabled:{type:Boolean,default:!1},size:{default:"medium"},clearable:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},label:{},debounce:{default:300},searchFn:{}},emits:["update:modelValue","select","search","focus","blur"],setup(n,{emit:l}){const t=n,o=l,{resolveProp:a}=O(),r=e.computed(()=>a(t.size,void 0,"medium")),s=e.computed({get:()=>t.modelValue,set:T=>{o("update:modelValue",T)}}),c=e.computed(()=>t.loading),{inputValue:u,isOpen:i,filteredOptions:d,activeIndex:k,highlightMatch:b,selectOption:w,handleKeydown:g,handleInput:f,open:p,close:m,cleanupTimers:_}=tt({modelValue:s,options:e.computed(()=>t.options),searchFn:t.searchFn,loading:c,debounceMs:t.debounce}),y=e.ref(),B=e.ref(),$=e.ref({top:0,left:0,width:0});function E(){if(!y.value||typeof window>"u")return;const T=y.value.getBoundingClientRect();$.value={top:T.bottom+window.scrollY+4,left:T.left+window.scrollX,width:T.width}}e.watch(i,T=>{T?(e.nextTick(E),typeof window<"u"&&(window.addEventListener("scroll",E,!0),window.addEventListener("resize",E))):typeof window<"u"&&(window.removeEventListener("scroll",E,!0),window.removeEventListener("resize",E))});function V(T){var j,G;if(!i.value||t.disabled)return;const P=T.target;(j=y.value)!=null&&j.contains(P)||(G=B.value)!=null&&G.contains(P)||m()}function S(){typeof document<"u"&&document.addEventListener("click",V,!0)}function D(){typeof document<"u"&&document.removeEventListener("click",V,!0)}e.watch(i,T=>{T?e.nextTick(S):D()}),e.onBeforeUnmount(()=>{D(),_()}),e.watch(k,T=>{!B.value||T<0||e.nextTick(()=>{var j;const P=(j=B.value)==null?void 0:j.querySelector(".nm-autocomplete__option--active");P&&P.scrollIntoView({block:"nearest"})})});const z=e.computed(()=>({position:"fixed",top:`${$.value.top}px`,left:`${$.value.left}px`,width:`${$.value.width}px`}));function N(T){w(T),o("select",T)}function x(T){g(T)}function F(T){o("focus",T),!i.value&&u.value.length>0&&p()}function K(T){setTimeout(()=>{B.value&&document.activeElement&&B.value.contains(document.activeElement)||(o("blur",T),m())},150)}function v(){u.value="",s.value=void 0,k.value=-1,o("update:modelValue",void 0),o("search",""),m()}function C(T){o("search",T),f(T)}const h=e.computed(()=>["nm-autocomplete",`nm-autocomplete--${r.value}`,{"nm-autocomplete--disabled":t.disabled,"nm-autocomplete--open":i.value,"nm-autocomplete--has-value":u.value.length>0}]),L=e.computed(()=>d.value.length>0),I=e.computed(()=>!L.value&&u.value.trim().length>0&&!c.value),A=e.computed(()=>c.value);return(T,P)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"triggerRef",ref:y,class:e.normalizeClass(h.value)},[e.createVNode(fe,{"model-value":e.unref(u),label:n.label,placeholder:n.placeholder,disabled:n.disabled,size:r.value,autocomplete:"off",role:"combobox","aria-expanded":e.unref(i),"aria-haspopup":"listbox","aria-autocomplete":"list","onUpdate:modelValue":C,onFocus:F,onBlur:K,onKeydown:x},{suffix:e.withCtx(()=>[e.createElementVNode("div",Zo,[n.clearable&&e.unref(u).length>0&&!A.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"nm-autocomplete__clear",type:"button","aria-label":"Clear",onMousedown:P[0]||(P[0]=e.withModifiers(()=>{},["prevent"])),onClick:e.withModifiers(v,["stop"])},[...P[2]||(P[2]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12"})],-1)])],32)):e.createCommentVNode("",!0),A.value?(e.openBlock(),e.createElementBlock("span",Jo,[...P[3]||(P[3]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M12 2a10 10 0 1 0 10 10"})],-1)])])):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["nm-autocomplete__arrow",{"nm-autocomplete__arrow--open":e.unref(i)}]),width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[...P[4]||(P[4]=[e.createElementVNode("path",{d:"M6 9l6 6 6-6"},null,-1)])],2))])]),_:1},8,["model-value","label","placeholder","disabled","size","aria-expanded"]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"nm-autocomplete-dropdown"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"dropdownRef",ref:B,class:e.normalizeClass(["nm-autocomplete__dropdown",{"nm-autocomplete__dropdown--empty":I.value}]),role:"listbox",style:e.normalizeStyle(z.value)},[L.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(d),(j,G)=>(e.openBlock(),e.createElementBlock("div",{key:j.value,class:e.normalizeClass(["nm-autocomplete__option",{"nm-autocomplete__option--active":G===e.unref(k),"nm-autocomplete__option--disabled":j.disabled}]),role:"option","aria-selected":G===e.unref(k),"aria-disabled":j.disabled,onMousedown:P[1]||(P[1]=e.withModifiers(()=>{},["prevent"])),onClick:e.withModifiers(ne=>N(j),["stop"])},[e.createElementVNode("span",{class:"nm-autocomplete__option-label",innerHTML:e.unref(b)(j.label)},null,8,Qo)],42,Xo))),128)):I.value?(e.openBlock(),e.createElementBlock("div",el,e.toDisplayString("No matching results"))):A.value?(e.openBlock(),e.createElementBlock("div",tl,[...P[5]||(P[5]=[e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2",class:"nm-autocomplete__loading-icon"},[e.createElementVNode("path",{d:"M12 2a10 10 0 1 0 10 10"})],-1),e.createElementVNode("span",null,"Searching…",-1)])])):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)]),_:1})]))],2))}}),[["__scopeId","data-v-0a06b477"]]),nl={class:"nm-empty__image"},ol=["src","alt"],ll={key:1,class:"nm-empty__illustration",viewBox:"0 0 160 160",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},al={key:0,class:"nm-empty__description"},rl={key:1,class:"nm-empty__footer"},ot=R(e.defineComponent({__name:"NeumorphismEmpty",props:{image:{},description:{},size:{default:"medium"}},setup(n){const l=n,{resolveProp:t}=O(),o=e.computed(()=>t(l.size,void 0,"medium")),a=e.computed(()=>["nm-empty",`nm-empty--${o.value}`]);return(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[e.createElementVNode("div",nl,[e.renderSlot(r.$slots,"image",{},()=>[n.image?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.image,alt:n.description??"",class:"nm-empty__img"},null,8,ol)):(e.openBlock(),e.createElementBlock("svg",ll,[...s[0]||(s[0]=[e.createStaticVNode('<rect x="28" y="48" width="104" height="82" rx="4" fill="none" stroke="currentColor" stroke-width="2" opacity="0.3" data-v-124d81a4></rect><path d="M28 48 L80 62 L132 48" fill="none" stroke="currentColor" stroke-width="2" opacity="0.3" data-v-124d81a4></path><rect x="48" y="66" width="64" height="6" rx="2" fill="currentColor" opacity="0.12" data-v-124d81a4></rect><rect x="48" y="80" width="48" height="6" rx="2" fill="currentColor" opacity="0.12" data-v-124d81a4></rect><rect x="48" y="94" width="56" height="6" rx="2" fill="currentColor" opacity="0.12" data-v-124d81a4></rect><circle cx="116" cy="116" r="16" fill="none" stroke="currentColor" stroke-width="2.5" opacity="0.25" data-v-124d81a4></circle><line x1="127" y1="127" x2="138" y2="138" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" opacity="0.25" data-v-124d81a4></line>',7)])]))],!0)]),n.description?(e.openBlock(),e.createElementBlock("div",al,e.toDisplayString(n.description),1)):e.createCommentVNode("",!0),r.$slots.default?(e.openBlock(),e.createElementBlock("div",rl,[e.renderSlot(r.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-124d81a4"]]);function lt(n,l,t=[]){var o;for(const a of n)t.push(a),(o=a.children)!=null&&o.length&&l.includes(a.key)&&lt(a.children,l,t);return t}function sl(n){const l=[];function t(o){var a;for(const r of o)l.push(r.key),(a=r.children)!=null&&a.length&&t(r.children)}return t(n),l}function de(n,l){var t;for(const o of n){if(o.key===l)return o;if((t=o.children)!=null&&t.length){const a=de(o.children,l);if(a)return a}}return null}function at(n,l=null,t=new Map){var o;for(const a of n)t.set(a.key,l),(o=a.children)!=null&&o.length&&at(a.children,a.key,t);return t}function rt(n,l){if(n.length!==l.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==l[t])return!1;return!0}function _e(n){const{items:l,onSelect:t}=n,o=n.mode??e.ref("vertical"),a=n.disabled??e.ref(!1),r=e.ref(null),s=e.ref([]);let c=!1;n.activeKey&&(e.watch(()=>n.activeKey.value,h=>{c||r.value!==h&&(c=!0,r.value=h,e.nextTick(()=>{c=!1}))},{immediate:!0}),e.watch(()=>r.value,h=>{c||n.activeKey.value!==h&&(c=!0,n.activeKey.value=h,e.nextTick(()=>{c=!1}))}));let u=!1;n.expandedKeys&&(e.watch(()=>n.expandedKeys.value,h=>{u||rt(s.value,h)||(u=!0,s.value=[...h],e.nextTick(()=>{u=!1}))},{immediate:!0,deep:!0}),e.watch(()=>s.value,h=>{u||rt(n.expandedKeys.value,h)||(u=!0,n.expandedKeys.value=[...h],e.nextTick(()=>{u=!1}))},{deep:!0}));const i=e.computed(()=>sl(l.value)),d=e.computed(()=>lt(l.value,s.value)),k=e.computed(()=>at(l.value)),b=e.computed(()=>d.value.filter(h=>!h.disabled));function w(h){return s.value.includes(h)}function g(h){return r.value===h}function f(h){s.value.includes(h)||s.value.push(h)}function p(h){const L=s.value.indexOf(h);L!==-1&&s.value.splice(L,1)}function m(h){w(h)?p(h):f(h)}function _(h){var L;a.value||h.disabled||((L=h.children)!=null&&L.length?m(h.key):(r.value=h.key,t==null||t(h)))}function y(h){var L;a.value||h.disabled||(o.value==="horizontal"&&((L=h.children)!=null&&L.length)&&f(h.key),r.value=h.key)}function B(h){var L;a.value||h.disabled||o.value==="horizontal"&&((L=h.children)!=null&&L.length)}let $="",E=null;function V(h){$+=h.toLowerCase(),E&&clearTimeout(E),E=setTimeout(()=>{$=""},500);const L=b.value,I=r.value?L.findIndex(P=>P.key===r.value)+1:0,T=[...L.slice(I),...L.slice(0,I)].find(P=>P.label.toLowerCase().startsWith($));T&&(r.value=T.key)}function S(){const h=b.value;if(!h.length)return;if(!r.value){r.value=h[0].key;return}const L=h.findIndex(I=>I.key===r.value);L>=0&&L<h.length-1?r.value=h[L+1].key:r.value=h[0].key}function D(){const h=b.value;if(!h.length)return;if(!r.value){r.value=h[h.length-1].key;return}const L=h.findIndex(I=>I.key===r.value);L>0?r.value=h[L-1].key:r.value=h[h.length-1].key}function z(){const h=b.value;h.length&&(r.value=h[0].key)}function N(){const h=b.value;h.length&&(r.value=h[h.length-1].key)}function x(){if(!r.value)return;const h=k.value.get(r.value);h&&(r.value=h)}function F(){var L;if(!r.value)return;const h=de(l.value,r.value);(L=h==null?void 0:h.children)!=null&&L.length&&(w(h.key)||f(h.key),r.value=h.children[0].key)}function K(){var L;if(!r.value)return;const h=de(l.value,r.value);(L=h==null?void 0:h.children)!=null&&L.length&&w(h.key)?p(h.key):x()}function v(){var L;if(!r.value)return;const h=de(l.value,r.value);!h||h.disabled||((L=h.children)!=null&&L.length?m(h.key):t==null||t(h))}function C(h){if(a.value)return;const L=h.key;if(L.length===1&&!h.ctrlKey&&!h.metaKey&&!h.altKey){V(L),h.preventDefault();return}const A=o.value==="vertical",T=o.value==="horizontal";switch(L){case"ArrowDown":A?S():T&&F(),h.preventDefault();break;case"ArrowUp":A?D():T&&K(),h.preventDefault();break;case"ArrowRight":A?F():T&&S(),h.preventDefault();break;case"ArrowLeft":A?K():T&&D(),h.preventDefault();break;case"Enter":case" ":v(),h.preventDefault();break;case"Escape":s.value=[],r.value=null,h.preventDefault();break;case"Home":z(),h.preventDefault();break;case"End":N(),h.preventDefault();break}}return{activeKey:r,expandedKeys:s,allKeys:i,handleKeydown:C,handleItemClick:_,handleItemEnter:y,handleItemLeave:B,isExpanded:w,isActive:g,expand:f,collapse:p,toggleExpand:m}}const il=["role"],cl={class:"nm-menu__list",role:"group"},dl={key:0,class:"nm-menu__divider",role:"separator","aria-hidden":!0},ml=["aria-disabled","aria-expanded","aria-haspopup","tabindex","onClick","onMouseenter","onMouseleave","onKeydown"],ul={class:"nm-menu__item-content"},fl={key:0,class:"nm-menu__item-icon","aria-hidden":"true"},pl={key:1,class:"nm-menu__item-label"},hl={width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},kl={key:0,d:"M9 18l6-6-6-6"},gl={key:1,d:"M6 9l6 6 6-6"},yl=["aria-label"],bl={key:0,class:"nm-menu__divider",role:"separator"},_l=["aria-disabled","aria-expanded","aria-haspopup","tabindex","onClick","onMouseenter","onMouseleave","onKeydown"],wl={class:"nm-menu__item-content"},Bl={key:0,class:"nm-menu__item-icon","aria-hidden":"true"},Cl={class:"nm-menu__item-label"},El={width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},$l={key:0,d:"M9 18l6-6-6-6"},Nl={key:1,d:"M6 9l6 6 6-6"},Vl=["aria-label"],xl={key:0,class:"nm-menu__divider",role:"separator"},Sl=["aria-disabled","tabindex","onClick","onMouseenter","onMouseleave","onKeydown"],zl={class:"nm-menu__item-content"},Tl={key:0,class:"nm-menu__item-icon","aria-hidden":"true"},Ll={class:"nm-menu__item-label"},Ml={key:0,class:"nm-menu__empty"},st=R(e.defineComponent({__name:"NeumorphismMenu",props:{items:{default:()=>[]},mode:{default:"vertical"},defaultActive:{default:void 0},defaultExpanded:{default:()=>[]},collapsed:{type:Boolean,default:!1},selectable:{type:Boolean,default:!0},theme:{default:void 0},size:{default:"medium"}},emits:["select","item-click"],setup(n,{emit:l}){const t=n,o=l,{resolveProp:a}=O(),{isDark:r}=re(),s=e.computed(()=>t.theme?t.theme:r.value?"dark":"light"),c=e.computed(()=>a(t.mode,void 0,"vertical")),u=e.computed(()=>a(t.size,void 0,"medium")),i=e.computed(()=>a(t.selectable,void 0,!0)),d=e.ref(t.defaultActive??null),k=e.ref([...t.defaultExpanded]),{handleKeydown:b,handleItemClick:w,handleItemEnter:g,isExpanded:f,isActive:p,collapse:m}=_e({items:e.computed(()=>t.items),mode:c,activeKey:d,expandedKeys:k,onSelect:z=>{o("select",z),o("item-click",z)}});let _=null;function y(z){_&&(clearTimeout(_),_=null),g(z)}function B(z){var N;c.value==="horizontal"&&((N=z.children)!=null&&N.length)&&(_=setTimeout(()=>{m(z.key)},200))}const $=e.computed(()=>["nm-menu",`nm-menu--${c.value}`,`nm-menu--${u.value}`,`nm-menu--theme-${s.value}`,{"nm-menu--collapsed":t.collapsed,"nm-menu--selectable":i.value}]),E=e.computed(()=>c.value==="horizontal"?"menubar":"menu");function V(z){return["nm-menu__item",{"nm-menu__item--active":p(z.key),"nm-menu__item--disabled":z.disabled,"nm-menu__item--divided":z.divided,"nm-menu__item--has-children":z.children&&z.children.length>0,"nm-menu__item--expanded":f(z.key)}]}function S(z,N){N.disabled||b(z)}const D=e.computed(()=>["nm-menu__expand-icon",{"nm-menu__expand-icon--expanded":!1,"nm-menu__expand-icon--horizontal":c.value==="horizontal"}]);return(z,N)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass($.value),role:E.value,"aria-label":"Menu",onKeydown:N[0]||(N[0]=(...x)=>e.unref(b)&&e.unref(b)(...x))},[e.createElementVNode("ul",cl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,x=>{var F,K,v,C;return e.openBlock(),e.createElementBlock(e.Fragment,{key:x.key},[x.divided?(e.openBlock(),e.createElementBlock("li",dl)):e.createCommentVNode("",!0),e.createElementVNode("li",{class:e.normalizeClass(V(x)),role:"menuitem","aria-disabled":x.disabled??!1,"aria-expanded":(F=x.children)!=null&&F.length?e.unref(f)(x.key):void 0,"aria-haspopup":(K=x.children)!=null&&K.length?"menu":void 0,tabindex:x.disabled?-1:0,onClick:e.withModifiers(h=>e.unref(w)(x),["stop"]),onMouseenter:h=>y(x),onMouseleave:h=>B(x),onKeydown:h=>S(h,x)},[e.createElementVNode("div",ul,[x.icon?(e.openBlock(),e.createElementBlock("span",fl,e.toDisplayString(x.icon),1)):e.createCommentVNode("",!0),!n.collapsed||!x.icon?(e.openBlock(),e.createElementBlock("span",pl,e.toDisplayString(x.label),1)):e.createCommentVNode("",!0),(v=x.children)!=null&&v.length&&!n.collapsed?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass([...D.value,{"nm-menu__expand-icon--expanded":e.unref(f)(x.key)}]),"aria-hidden":"true"},[(e.openBlock(),e.createElementBlock("svg",hl,[c.value==="vertical"?(e.openBlock(),e.createElementBlock("path",kl)):(e.openBlock(),e.createElementBlock("path",gl))]))],2)):e.createCommentVNode("",!0)]),(C=x.children)!=null&&C.length&&e.unref(f)(x.key)&&!n.collapsed?(e.openBlock(),e.createElementBlock("ul",{key:0,class:"nm-menu__submenu",role:"menu","aria-label":x.label},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.children,h=>{var L,I,A,T;return e.openBlock(),e.createElementBlock(e.Fragment,{key:h.key},[h.divided?(e.openBlock(),e.createElementBlock("li",bl)):e.createCommentVNode("",!0),e.createElementVNode("li",{class:e.normalizeClass(["nm-menu__item","nm-menu__item--sub",{"nm-menu__item--active":e.unref(p)(h.key),"nm-menu__item--disabled":h.disabled,"nm-menu__item--has-children":h.children&&h.children.length>0,"nm-menu__item--expanded":e.unref(f)(h.key)}]),role:"menuitem","aria-disabled":h.disabled??!1,"aria-expanded":(L=h.children)!=null&&L.length?e.unref(f)(h.key):void 0,"aria-haspopup":(I=h.children)!=null&&I.length?"menu":void 0,tabindex:h.disabled?-1:0,onClick:e.withModifiers(P=>e.unref(w)(h),["stop"]),onMouseenter:P=>y(h),onMouseleave:P=>B(h),onKeydown:P=>S(P,h)},[e.createElementVNode("div",wl,[h.icon?(e.openBlock(),e.createElementBlock("span",Bl,e.toDisplayString(h.icon),1)):e.createCommentVNode("",!0),e.createElementVNode("span",Cl,e.toDisplayString(h.label),1),(A=h.children)!=null&&A.length?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([...D.value,{"nm-menu__expand-icon--expanded":e.unref(f)(h.key)}]),"aria-hidden":"true"},[(e.openBlock(),e.createElementBlock("svg",El,[c.value==="vertical"?(e.openBlock(),e.createElementBlock("path",$l)):(e.openBlock(),e.createElementBlock("path",Nl))]))],2)):e.createCommentVNode("",!0)]),(T=h.children)!=null&&T.length&&e.unref(f)(h.key)?(e.openBlock(),e.createElementBlock("ul",{key:0,class:"nm-menu__submenu",role:"menu","aria-label":h.label},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.children,P=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:P.key},[P.divided?(e.openBlock(),e.createElementBlock("li",xl)):e.createCommentVNode("",!0),e.createElementVNode("li",{class:e.normalizeClass(["nm-menu__item","nm-menu__item--sub","nm-menu__item--sub-deep",{"nm-menu__item--active":e.unref(p)(P.key),"nm-menu__item--disabled":P.disabled}]),role:"menuitem","aria-disabled":P.disabled??!1,tabindex:P.disabled?-1:0,onClick:e.withModifiers(j=>e.unref(w)(P),["stop"]),onMouseenter:j=>y(P),onMouseleave:j=>B(P),onKeydown:j=>S(j,P)},[e.createElementVNode("div",zl,[P.icon?(e.openBlock(),e.createElementBlock("span",Tl,e.toDisplayString(P.icon),1)):e.createCommentVNode("",!0),e.createElementVNode("span",Ll,e.toDisplayString(P.label),1)])],42,Sl)],64))),128))],8,Vl)):e.createCommentVNode("",!0)],42,_l)],64)}),128))],8,yl)):e.createCommentVNode("",!0),n.collapsed&&x.icon?(e.openBlock(),e.createBlock(be,{key:1,content:x.label,position:"right",delay:300,disabled:!n.collapsed},null,8,["content","disabled"])):e.createCommentVNode("",!0)],42,ml)],64)}),128)),n.items.length===0?(e.openBlock(),e.createElementBlock("li",Ml,"No menu items")):e.createCommentVNode("",!0)])],42,il))}}),[["__scopeId","data-v-2ebaa4cf"]]),Dl=["aria-orientation"],vl={key:0,class:"nm-nav-menu__divider",role:"separator"},Pl=["aria-disabled","aria-expanded","tabindex","onClick","onMouseenter","onMouseleave"],Il={class:"nm-nav-menu__item-content"},Kl={key:0,class:"nm-nav-menu__item-icon","aria-hidden":"true"},Fl={class:"nm-nav-menu__item-label"},Al={key:0,class:"nm-nav-menu__indicator","aria-hidden":"true"},Rl=["aria-label","onMouseleave"],Ol={key:0,class:"nm-nav-menu__dropdown-divider",role:"separator"},jl=["aria-disabled","tabindex","onClick","onMouseenter"],Ul={key:0,class:"nm-nav-menu__dropdown-item-icon","aria-hidden":"true"},Wl={class:"nm-nav-menu__dropdown-item-label"},Hl=["aria-disabled","aria-haspopup","aria-expanded","tabindex","onClick","onMouseenter","onMouseleave"],ql={class:"nm-nav-menu__item-content"},Yl={key:0,class:"nm-nav-menu__item-icon","aria-hidden":"true"},Gl={class:"nm-nav-menu__item-label"},Zl={key:0,class:"nm-nav-menu__indicator","aria-hidden":"true"},Jl=["aria-label"],Xl=["aria-disabled","tabindex","onClick","onMouseenter"],Ql={class:"nm-nav-menu__item-content"},ea={key:0,class:"nm-nav-menu__item-icon","aria-hidden":"true"},ta={class:"nm-nav-menu__item-label"},na={key:0,class:"nm-nav-menu__empty"},it=R(e.defineComponent({__name:"NeumorphismNavMenu",props:{items:{default:()=>[]},defaultActive:{default:void 0},mode:{default:"horizontal"},showIndicator:{type:Boolean,default:!0},theme:{default:void 0},size:{default:"medium"}},emits:["select","item-click"],setup(n,{emit:l}){const t=n,o=l,{resolveProp:a}=O(),{isDark:r}=re(),s=e.computed(()=>t.theme?t.theme:r.value?"dark":"light"),c=e.computed(()=>a(t.mode,void 0,"horizontal")),u=e.computed(()=>a(t.size,void 0,"medium")),i=e.computed(()=>a(t.showIndicator,void 0,!0)),d=e.ref(t.defaultActive??null),k=e.ref([]),{handleKeydown:b,handleItemClick:w,handleItemEnter:g,isExpanded:f,isActive:p,expand:m,collapse:_}=_e({items:e.computed(()=>t.items),mode:c,activeKey:d,expandedKeys:k,onSelect:F=>{o("select",F),o("item-click",F)}});let y=null;function B(F){y&&(clearTimeout(y),y=null),g(F)}function $(F){var K;c.value==="horizontal"&&((K=F.children)!=null&&K.length)&&(y=setTimeout(()=>{_(F.key)},250))}function E(){y&&(clearTimeout(y),y=null)}function V(F){y=setTimeout(()=>{_(F.key)},250)}const S=e.ref({});function D(F,K){S.value[F]=K}function z(F,K){K?m(F.key):_(F.key)}const N=e.computed(()=>["nm-nav-menu",`nm-nav-menu--${c.value}`,`nm-nav-menu--${u.value}`,`nm-nav-menu--theme-${s.value}`,{"nm-nav-menu--indicator":i.value}]);function x(F){return["nm-nav-menu__item",{"nm-nav-menu__item--active":p(F.key),"nm-nav-menu__item--disabled":F.disabled,"nm-nav-menu__item--divided":F.divided,"nm-nav-menu__item--has-children":F.children&&F.children.length>0,"nm-nav-menu__item--expanded":f(F.key)}]}return(F,K)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(N.value),role:"navigation","aria-label":"Navigation menu",onKeydown:K[2]||(K[2]=(...v)=>e.unref(b)&&e.unref(b)(...v))},[e.createElementVNode("ul",{class:"nm-nav-menu__list",role:"menubar","aria-orientation":c.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,v=>{var C,h,L,I,A,T;return e.openBlock(),e.createElementBlock(e.Fragment,{key:v.key},[v.divided&&c.value==="vertical"?(e.openBlock(),e.createElementBlock("li",vl)):e.createCommentVNode("",!0),(C=v.children)!=null&&C.length&&c.value==="horizontal"?(e.openBlock(),e.createBlock(le,{key:`${v.key}-popover`,ref_for:!0,ref:P=>D(v.key,P),position:"bottom",trigger:"hover",offset:4,"show-arrow":!1,disabled:v.disabled,onVisibleChange:P=>z(v,P)},{content:e.withCtx(()=>[e.createElementVNode("div",{class:"nm-nav-menu__dropdown",role:"menu","aria-label":v.label,onMouseenter:E,onMouseleave:P=>V(v),onKeydown:K[0]||(K[0]=(...P)=>e.unref(b)&&e.unref(b)(...P))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.children,P=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:P.key},[P.divided?(e.openBlock(),e.createElementBlock("div",Ol)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["nm-nav-menu__dropdown-item",{"nm-nav-menu__dropdown-item--active":e.unref(p)(P.key),"nm-nav-menu__dropdown-item--disabled":P.disabled,"nm-nav-menu__dropdown-item--divided":P.divided}]),role:"menuitem","aria-disabled":P.disabled??!1,tabindex:P.disabled?-1:0,onClick:e.withModifiers(j=>e.unref(w)(P),["stop"]),onMouseenter:j=>e.unref(g)(P)},[P.icon?(e.openBlock(),e.createElementBlock("span",Ul,e.toDisplayString(P.icon),1)):e.createCommentVNode("",!0),e.createElementVNode("span",Wl,e.toDisplayString(P.label),1)],42,jl)],64))),128))],40,Rl)]),default:e.withCtx(()=>[e.createElementVNode("li",{class:e.normalizeClass(x(v)),role:"menuitem","aria-disabled":v.disabled??!1,"aria-haspopup":"menu","aria-expanded":e.unref(f)(v.key),tabindex:v.disabled?-1:0,onClick:e.withModifiers(P=>{var j;return(j=v.children)!=null&&j.length?void 0:e.unref(w)(v)},["stop"]),onMouseenter:P=>B(v),onMouseleave:P=>$(v)},[e.createElementVNode("div",Il,[v.icon?(e.openBlock(),e.createElementBlock("span",Kl,e.toDisplayString(v.icon),1)):e.createCommentVNode("",!0),e.createElementVNode("span",Fl,e.toDisplayString(v.label),1),K[3]||(K[3]=e.createElementVNode("span",{class:"nm-nav-menu__dropdown-arrow","aria-hidden":"true"},[e.createElementVNode("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M6 9l6 6 6-6"})])],-1))]),i.value&&e.unref(p)(v.key)?(e.openBlock(),e.createElementBlock("span",Al)):e.createCommentVNode("",!0)],42,Pl)]),_:2},1032,["disabled","onVisibleChange"])):e.createCommentVNode("",!0),!((h=v.children)!=null&&h.length)||c.value==="vertical"?(e.openBlock(),e.createElementBlock("li",{key:2,class:e.normalizeClass(x(v)),role:"menuitem","aria-disabled":v.disabled??!1,"aria-haspopup":(L=v.children)!=null&&L.length?"menu":void 0,"aria-expanded":(I=v.children)!=null&&I.length?e.unref(f)(v.key):void 0,tabindex:v.disabled?-1:0,onClick:e.withModifiers(P=>e.unref(w)(v),["stop"]),onMouseenter:P=>B(v),onMouseleave:P=>$(v),onKeydown:K[1]||(K[1]=(...P)=>e.unref(b)&&e.unref(b)(...P))},[e.createElementVNode("div",ql,[v.icon?(e.openBlock(),e.createElementBlock("span",Yl,e.toDisplayString(v.icon),1)):e.createCommentVNode("",!0),e.createElementVNode("span",Gl,e.toDisplayString(v.label),1),(A=v.children)!=null&&A.length&&c.value==="vertical"?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["nm-nav-menu__expand-icon",{"nm-nav-menu__expand-icon--expanded":e.unref(f)(v.key)}]),"aria-hidden":"true"},[...K[4]||(K[4]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M9 18l6-6-6-6"})],-1)])],2)):e.createCommentVNode("",!0)]),i.value&&c.value==="horizontal"&&e.unref(p)(v.key)?(e.openBlock(),e.createElementBlock("span",Zl)):e.createCommentVNode("",!0),(T=v.children)!=null&&T.length&&c.value==="vertical"&&e.unref(f)(v.key)?(e.openBlock(),e.createElementBlock("ul",{key:1,class:"nm-nav-menu__submenu",role:"menu","aria-label":v.label},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.children,P=>(e.openBlock(),e.createElementBlock("li",{key:P.key,class:e.normalizeClass(["nm-nav-menu__item nm-nav-menu__item--sub",{"nm-nav-menu__item--active":e.unref(p)(P.key),"nm-nav-menu__item--disabled":P.disabled}]),role:"menuitem","aria-disabled":P.disabled??!1,tabindex:P.disabled?-1:0,onClick:e.withModifiers(j=>e.unref(w)(P),["stop"]),onMouseenter:j=>e.unref(g)(P)},[e.createElementVNode("div",Ql,[P.icon?(e.openBlock(),e.createElementBlock("span",ea,e.toDisplayString(P.icon),1)):e.createCommentVNode("",!0),e.createElementVNode("span",ta,e.toDisplayString(P.label),1)])],42,Xl))),128))],8,Jl)):e.createCommentVNode("",!0)],42,Hl)):e.createCommentVNode("",!0)],64)}),128)),n.items.length===0?(e.openBlock(),e.createElementBlock("li",na,"No navigation items")):e.createCommentVNode("",!0)],8,Dl)],34))}}),[["__scopeId","data-v-4432c2e6"]]);let oa=0;function ct(n){const{modelValue:l,tabs:t}=n,o=n.position,a=`nm-tabs-${++oa}`,r=e.computed(()=>`${a}-panel`),s=e.computed(()=>{const i=o==null?void 0:o.value;return i==="left"||i==="right"?"vertical":"horizontal"});function c(i){const d=t.value.find(k=>k.key===i);d!=null&&d.disabled||(l.value=i)}function u(i,d){const k=t.value.filter(f=>!f.disabled);if(k.length===0)return;const b=k.findIndex(f=>f.key===d);let w;if(s.value==="vertical")if(i.key==="ArrowDown")i.preventDefault(),w=b+1<k.length?b+1:0;else if(i.key==="ArrowUp")i.preventDefault(),w=b-1>=0?b-1:k.length-1;else return;else if(i.key==="ArrowRight")i.preventDefault(),w=b+1<k.length?b+1:0;else if(i.key==="ArrowLeft")i.preventDefault(),w=b-1>=0?b-1:k.length-1;else return;const g=k[w];g&&c(g.key)}return{activate:c,handleKeydown:u,panelId:r,tabListId:a,orientation:s}}const la=["aria-orientation","aria-label"],aa=["id","aria-selected","aria-disabled","tabindex","disabled","onClick","onKeydown"],ra={class:"nm-tabs__tab-label"},sa=["id","aria-labelledby"],dt=R(e.defineComponent({__name:"NeumorphismTabs",props:{modelValue:{default:""},tabs:{default:()=>[]},position:{default:"top"},size:{default:"medium"},navLabel:{default:"标签导航"}},emits:["update:modelValue","change","tabClick"],setup(n,{emit:l}){const t=n,{t:o}=H(),a=e.computed(()=>t.navLabel||o("tabsNavLabel")),r=l,s=e.computed({get:()=>t.modelValue,set:p=>{r("update:modelValue",p),r("change",p);const m=t.tabs.find(_=>_.key===p);m&&r("tabClick",m)}}),{activate:c,handleKeydown:u,panelId:i,orientation:d}=ct({modelValue:s,tabs:e.computed(()=>t.tabs),position:e.computed(()=>t.position)}),k=e.computed(()=>t.tabs.filter(p=>!p.disabled)),b=e.ref(new Map);function w(p,m){m instanceof HTMLElement&&b.value.set(p,m)}function g(p,m){u(p,m);const _=k.value.find(y=>y.key===s.value);_&&e.nextTick(()=>{var y;return(y=b.value.get(_.key))==null?void 0:y.focus()})}const f=e.computed(()=>["nm-tabs",`nm-tabs--${t.position}`,`nm-tabs--${t.size}`]);return(p,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(f.value)},[e.createElementVNode("div",{class:"nm-tabs__nav",role:"tablist","aria-orientation":e.unref(d),"aria-label":a.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabs,(_,y)=>e.renderSlot(p.$slots,"tab",{key:_.key,tab:_,active:n.modelValue===_.key,index:y,activate:e.unref(c)},()=>[e.createElementVNode("button",{id:`${e.unref(i)}-tab-${_.key}`,ref_for:!0,ref:B=>w(_.key,B),class:e.normalizeClass(["nm-tabs__tab",{"nm-tabs__tab--active":n.modelValue===_.key,"nm-tabs__tab--disabled":_.disabled}]),role:"tab","aria-selected":n.modelValue===_.key,"aria-disabled":_.disabled,tabindex:n.modelValue===_.key?0:-1,disabled:_.disabled,onClick:B=>e.unref(c)(_.key),onKeydown:B=>g(B,_.key)},[e.createElementVNode("span",ra,e.toDisplayString(_.label),1)],42,aa)],!0)),128))],8,la),e.createElementVNode("div",{id:e.unref(i),class:"nm-tabs__panel",role:"tabpanel","aria-labelledby":`${e.unref(i)}-tab-${n.modelValue}`},[e.renderSlot(p.$slots,"default",{},void 0,!0)],8,sa)],2))}}),[["__scopeId","data-v-e74396ae"]]),ia=["aria-label"],ca={class:"nm-breadcrumb__list"},da=["aria-current"],ma=["role","tabindex","onClick","onKeydown"],ua={key:0,class:"nm-breadcrumb__separator","aria-hidden":"true"},mt=R(e.defineComponent({__name:"NeumorphismBreadcrumb",props:{items:{default:()=>[]},separator:{default:"/"},size:{default:"medium"}},emits:["itemClick"],setup(n,{emit:l}){const t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var d;return a(t.size,(d=o.value.breadcrumb)==null?void 0:d.size,"medium")}),{t:s}=H(),c=l,u=e.computed(()=>["nm-breadcrumb",`nm-breadcrumb--${r.value}`]);function i(d,k){d.disabled||c("itemClick",d,k)}return(d,k)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(u.value),"aria-label":e.unref(s)("breadcrumbLabel")},[e.createElementVNode("ol",ca,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,(b,w)=>(e.openBlock(),e.createElementBlock("li",{key:w,class:e.normalizeClass(["nm-breadcrumb__item",{"nm-breadcrumb__item--active":w===n.items.length-1,"nm-breadcrumb__item--disabled":b.disabled}]),"aria-current":w===n.items.length-1?"page":void 0},[e.createElementVNode("span",{class:e.normalizeClass(["nm-breadcrumb__text",{"nm-breadcrumb__text--link":w!==n.items.length-1&&!b.disabled}]),role:w!==n.items.length-1?"link":void 0,tabindex:w!==n.items.length-1&&!b.disabled?0:-1,onClick:g=>i(b,w),onKeydown:[e.withKeys(g=>i(b,w),["enter"]),e.withKeys(e.withModifiers(g=>i(b,w),["prevent"]),["space"])]},e.toDisplayString(b.label),43,ma),w<n.items.length-1?(e.openBlock(),e.createElementBlock("span",ua,e.toDisplayString(n.separator),1)):e.createCommentVNode("",!0)],10,da))),128))])],10,ia))}}),[["__scopeId","data-v-f1965bdc"]]);function ut(n){const{modelValue:l,total:t}=n,o=n.pageSize??e.computed(()=>10),a=n.maxVisiblePages??e.computed(()=>7),r=n.disabled??e.computed(()=>!1),s=e.computed(()=>Math.max(1,Math.ceil(t.value/o.value))),c=e.computed(()=>Math.min(Math.max(1,l.value),s.value));function u(g){if(isNaN(g)||!isFinite(g))return;const f=Math.round(g);r.value||f<1||f>s.value||f===c.value||(l.value=f)}function i(){u(c.value-1)}function d(){u(c.value+1)}const k=e.computed(()=>c.value<=1||r.value),b=e.computed(()=>c.value>=s.value||r.value),w=e.computed(()=>{const g=a.value,f=s.value,p=c.value;if(f<=g)return Array.from({length:f},($,E)=>E+1);const m=Math.floor(g/2);let _=p-m,y=p+m;_<1&&(y+=1-_,_=1),y>f&&(_-=y-f,y=f),_=Math.max(1,_),y=Math.min(f,y);const B=[];_>1&&B.push(1),_>2&&B.push("prev-ellipsis");for(let $=_;$<=y;$++)B.push($);return y<f-1&&B.push("next-ellipsis"),y<f&&B.push(f),B});return{totalPages:s,currentPage:c,visiblePages:w,changePage:u,prevPage:i,nextPage:d,isPrevDisabled:k,isNextDisabled:b}}const fa=["aria-label"],pa={key:0,class:"nm-pagination__total"},ha={class:"nm-pagination__list"},ka=["disabled","aria-label"],ga={key:0,class:"nm-pagination__ellipsis","aria-hidden":"true"},ya=["aria-label","aria-current","onClick"],ba=["disabled","aria-label"],_a={key:1,class:"nm-pagination__jumper"},wa=["max","value","disabled"],ft=R(e.defineComponent({__name:"NeumorphismPagination",props:{modelValue:{default:1},total:{default:0},pageSize:{default:10},size:{default:"medium"},showTotal:{type:Boolean,default:!1},showJumper:{type:Boolean,default:!1},maxVisiblePages:{default:7},disabled:{type:Boolean,default:!1},prevLabel:{default:"上一页"},nextLabel:{default:"下一页"},totalLabel:{default:"共"}},emits:["update:modelValue","change"],setup(n,{emit:l}){const t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var E;return a(t.size,(E=o.value.pagination)==null?void 0:E.size,"medium")}),s=e.computed(()=>{var E;return a(t.showTotal,(E=o.value.pagination)==null?void 0:E.showTotal,!1)}),c=e.computed(()=>{var E;return a(t.showJumper,(E=o.value.pagination)==null?void 0:E.showJumper,!1)}),u=e.computed(()=>{var E;return a(t.maxVisiblePages,(E=o.value.pagination)==null?void 0:E.maxVisiblePages,7)}),i=e.computed(()=>{var E;return a(t.pageSize,(E=o.value.pagination)==null?void 0:E.pageSize,10)}),d=l,k=e.computed({get:()=>t.modelValue,set:E=>{d("update:modelValue",E),d("change",E)}}),{totalPages:b,visiblePages:w,changePage:g,prevPage:f,nextPage:p,isPrevDisabled:m,isNextDisabled:_}=ut({modelValue:k,total:e.computed(()=>t.total),pageSize:e.computed(()=>i.value),maxVisiblePages:e.computed(()=>u.value),disabled:e.computed(()=>t.disabled)}),y=e.computed(()=>["nm-pagination",`nm-pagination--${r.value}`,{"nm-pagination--disabled":t.disabled}]);function B(E){g(Number(E.target.value))}const{t:$}=H();return(E,V)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(y.value),role:"navigation","aria-label":e.unref($)("paginationLabel")},[s.value?(e.openBlock(),e.createElementBlock("span",pa,e.toDisplayString(e.unref($)("paginationTotal",{total:n.total})),1)):e.createCommentVNode("",!0),e.createElementVNode("ul",ha,[e.createElementVNode("li",null,[e.createElementVNode("button",{class:"nm-pagination__btn",disabled:e.unref(m),"aria-label":n.prevLabel,type:"button",onClick:V[0]||(V[0]=(...S)=>e.unref(f)&&e.unref(f)(...S))},[...V[2]||(V[2]=[e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M15 18l-6-6 6-6"})],-1)])],8,ka)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w),S=>e.renderSlot(E.$slots,"page-item",{key:String(S),page:S,active:S===n.modelValue},()=>[e.createElementVNode("li",null,[typeof S=="string"?(e.openBlock(),e.createElementBlock("span",ga,"...")):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["nm-pagination__btn",{"nm-pagination__btn--active":S===n.modelValue}]),"aria-label":`第 ${S} 页`,"aria-current":S===n.modelValue?"page":void 0,type:"button",onClick:D=>e.unref(g)(S)},e.toDisplayString(S),11,ya))])],!0)),128)),e.createElementVNode("li",null,[e.createElementVNode("button",{class:"nm-pagination__btn",disabled:e.unref(_),"aria-label":n.nextLabel,type:"button",onClick:V[1]||(V[1]=(...S)=>e.unref(p)&&e.unref(p)(...S))},[...V[3]||(V[3]=[e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M9 18l6-6-6-6"})],-1)])],8,ba)])]),c.value?(e.openBlock(),e.createElementBlock("div",_a,[V[4]||(V[4]=e.createTextVNode(" 跳至 ",-1)),e.createElementVNode("input",{class:"nm-pagination__jumper-input",type:"number",min:1,max:e.unref(b),value:n.modelValue,disabled:n.disabled,onChange:B},null,40,wa),V[5]||(V[5]=e.createTextVNode(" 页 ",-1))])):e.createCommentVNode("",!0)],10,fa))}}),[["__scopeId","data-v-85a91c0d"]]),Ba=["aria-label"],Ca=["src","alt"],Ea={key:1,class:"nm-avatar__fallback nm-avatar__icon"},$a={key:2,class:"nm-avatar__fallback"},pt=R(e.defineComponent({__name:"NeumorphismAvatar",props:{src:{},alt:{},size:{default:"medium"},shape:{default:"circle"},initials:{},icon:{}},emits:["error"],setup(n,{emit:l}){const t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var g;return a(t.size,(g=o.value.avatar)==null?void 0:g.size,"medium")}),s=e.computed(()=>{var g;return a(t.shape,(g=o.value.avatar)==null?void 0:g.shape,"circle")}),c=l,{t:u}=H(),i=e.computed(()=>!!t.src),d=e.ref(!1);e.watch(()=>t.src,()=>{d.value=!1});function k(){d.value=!0,c("error")}const b=e.computed(()=>["nm-avatar",`nm-avatar--${r.value}`,`nm-avatar--${s.value}`]),w=e.computed(()=>t.initials?t.initials.slice(0,2).toUpperCase():t.alt?t.alt.slice(0,1).toUpperCase():"?");return(g,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(b.value),role:"img","aria-label":n.alt||n.initials||e.unref(u)("badgeAvatar")},[i.value&&!d.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.src,alt:n.alt||"",class:"nm-avatar__img",onError:k},null,40,Ca)):n.icon||g.$slots.fallback?(e.openBlock(),e.createElementBlock("span",Ea,[e.renderSlot(g.$slots,"fallback",{},()=>[e.createTextVNode(e.toDisplayString(w.value),1)],!0)])):(e.openBlock(),e.createElementBlock("span",$a,e.toDisplayString(w.value),1))],10,Ba))}}),[["__scopeId","data-v-bad10d1a"]]),Na=["aria-label"],Va={key:0,class:"nm-badge__text","aria-hidden":"true"},ht=R(e.defineComponent({__name:"NeumorphismBadge",props:{value:{},max:{default:99},dot:{type:Boolean,default:!1},color:{},showZero:{type:Boolean,default:!1}},setup(n){const l=n,{config:t,resolveProp:o}=O(),a=e.computed(()=>{var b;return o(l.max,(b=t.value.badge)==null?void 0:b.max,99)}),r=e.computed(()=>{var b;return o(l.dot,(b=t.value.badge)==null?void 0:b.dot,!1)}),s=e.computed(()=>{var b;return o(l.showZero,(b=t.value.badge)==null?void 0:b.showZero,!1)}),c=e.computed(()=>{if(r.value)return"";const b=Number(l.value);return isNaN(b)?String(l.value||""):b<=0&&!s.value?"":b>a.value?`${a.value}+`:String(b)}),u=e.computed(()=>{if(r.value)return l.value==null||l.value==="";const b=Number(l.value);return(isNaN(b)||b<=0)&&!s.value}),{t:i}=H(),d=e.computed(()=>l.dot?i("badgeOnline"):i("badgeUnread",{count:c.value})),k=e.computed(()=>["nm-badge",{"nm-badge--dot":r.value,"nm-badge--hidden":u.value}]);return(b,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(k.value)},[e.renderSlot(b.$slots,"default",{},void 0,!0),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("sup",{key:0,class:e.normalizeClass(["nm-badge__content",{"nm-badge__content--dot":r.value}]),style:e.normalizeStyle(n.color?{backgroundColor:n.color}:void 0),"aria-label":d.value},[r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Va,e.toDisplayString(c.value),1))],14,Na))],2))}}),[["__scopeId","data-v-11fb0f9f"]]),xa={class:"nm-tag__text"},Sa=["aria-label"],kt=R(e.defineComponent({__name:"NeumorphismTag",props:{closable:{type:Boolean,default:!1},variant:{default:"default"},size:{default:"medium"},disabled:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},closeLabel:{default:""}},emits:["close","click"],setup(n,{emit:l}){const t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var g;return a(t.variant,(g=o.value.tag)==null?void 0:g.variant,"default")}),s=e.computed(()=>{var g;return a(t.size,(g=o.value.tag)==null?void 0:g.size,"medium")}),c=e.computed(()=>{var g;return a(t.rounded,(g=o.value.tag)==null?void 0:g.rounded,!1)}),u=l,{t:i}=H(),d=e.computed(()=>t.closeLabel||i("tagClose"));function k(g){t.disabled||(g.stopPropagation(),u("close",g))}const b=e.computed(()=>["nm-tag",`nm-tag--${r.value}`,`nm-tag--${s.value}`,{"nm-tag--rounded":c.value,"nm-tag--disabled":t.disabled,"nm-tag--closable":t.closable}]),w={default:"",primary:"var(--nm-primary-color)",success:"var(--nm-color-success)",warning:"var(--nm-color-warning)",error:"var(--nm-color-error)",info:"var(--nm-color-info)"};return(g,f)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(b.value),style:e.normalizeStyle(r.value!=="default"?{"--tag-color":w[r.value]}:void 0),role:"status",onClick:f[0]||(f[0]=p=>u("click",p))},[e.createElementVNode("span",xa,[e.renderSlot(g.$slots,"default",{},void 0,!0)]),n.closable?(e.openBlock(),e.createElementBlock("button",{key:0,class:"nm-tag__close","aria-label":d.value,type:"button",onClick:k},[...f[1]||(f[1]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[e.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12"})],-1)])],8,Sa)):e.createCommentVNode("",!0)],6))}}),[["__scopeId","data-v-1862f37c"]]),za=["aria-valuenow","aria-valuemax","aria-label"],Ta={class:"nm-progress__track"},La={key:0,class:"nm-progress__label"},gt=R(e.defineComponent({__name:"NeumorphismProgress",props:{modelValue:{default:0},max:{default:100},variant:{default:"primary"},size:{default:"medium"},showLabel:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},striped:{type:Boolean,default:!1}},setup(n){const l=n,{config:t,resolveProp:o}=O(),a=e.computed(()=>{var k;return o(l.variant,(k=t.value.progress)==null?void 0:k.variant,"primary")}),r=e.computed(()=>{var k;return o(l.size,(k=t.value.progress)==null?void 0:k.size,"medium")}),s=e.computed(()=>{var k;return o(l.showLabel,(k=t.value.progress)==null?void 0:k.showLabel,!1)}),{t:c}=H(),u=e.computed(()=>l.indeterminate?0:Math.min(100,Math.max(0,l.modelValue/l.max*100))),i=e.computed(()=>["nm-progress",`nm-progress--${r.value}`,`nm-progress--${a.value}`,{"nm-progress--indeterminate":l.indeterminate,"nm-progress--striped":l.striped,"nm-progress--complete":!l.indeterminate&&u.value>=100}]),d={default:"var(--nm-text-secondary)",primary:"var(--nm-primary-color)",success:"var(--nm-color-success)",warning:"var(--nm-color-warning)",error:"var(--nm-color-error)"};return(k,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(i.value),role:"progressbar","aria-valuenow":n.indeterminate?void 0:n.modelValue,"aria-valuemin":0,"aria-valuemax":n.max,"aria-label":n.showLabel?void 0:e.unref(c)("progressLabel",{percentage:Math.round(u.value)})},[e.createElementVNode("div",Ta,[e.createElementVNode("div",{class:"nm-progress__bar",style:e.normalizeStyle({width:n.indeterminate?"40%":`${u.value}%`,backgroundColor:d[a.value]})},null,4)]),s.value?(e.openBlock(),e.createElementBlock("span",La,e.toDisplayString(Math.round(u.value))+"%",1)):e.createCommentVNode("",!0)],10,za))}}),[["__scopeId","data-v-696cafad"]]),Ma=["aria-label"],yt=R(e.defineComponent({__name:"NeumorphismSkeleton",props:{variant:{default:"text"},width:{},height:{},count:{default:1},animation:{default:"pulse"}},setup(n){const l=n,{config:t,resolveProp:o}=O(),a=e.computed(()=>{var d;return o(l.variant,(d=t.value.skeleton)==null?void 0:d.variant,"text")}),r=e.computed(()=>{var d;return o(l.animation,(d=t.value.skeleton)==null?void 0:d.animation,"pulse")}),{t:s}=H(),c=e.computed(()=>{const d=Math.max(0,Math.floor(l.count));return Array.from({length:d},(k,b)=>b)}),u=e.computed(()=>["nm-skeleton",`nm-skeleton--${a.value}`,`nm-skeleton--${r.value}`]);function i(d){if(d!==void 0)return typeof d=="number"?`${d}px`:d}return(d,k)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,b=>(e.openBlock(),e.createElementBlock("span",{key:b,class:e.normalizeClass(u.value),style:e.normalizeStyle({width:i(n.width),height:i(n.height)}),role:"status","aria-label":e.unref(s)("skeletonLoading")},[...k[0]||(k[0]=[e.createElementVNode("span",{class:"nm-skeleton__shimmer","aria-hidden":"true"},null,-1)])],14,Ma))),128))}}),[["__scopeId","data-v-66ae242b"]]);function Da(n,l){return n==null&&l==null?0:n==null?-1:l==null?1:typeof n=="number"&&typeof l=="number"?n-l:String(n).localeCompare(String(l))}function va(n,l){const t=n[l];return t!=null?String(t):""}function bt(n){const{data:l,columns:t}=n,o=n.rowKey??{value:"key"},a=n.selectable??{value:!1},r=n.selectedKeys??e.ref([]),s=e.ref({key:"",direction:null}),c=e.ref({}),u=e.computed(()=>t.value.map(S=>({align:"left",...S}))),i=e.computed(()=>{const S=[...l.value],{key:D,direction:z}=s.value;if(!D||!z)return S;const N=t.value.find(x=>x.key===D);return N!=null&&N.sortable&&S.sort((x,F)=>{const K=x[D],v=F[D],C=N.sorter?N.sorter(K,v):Da(K,v);return z==="ascend"?C:-C}),S}),d=e.computed(()=>{const S=c.value,D=Object.keys(S).filter(z=>{var N;return((N=S[z])==null?void 0:N.length)>0});return D.length===0?i.value:i.value.filter(z=>{for(const N of D){const x=t.value.find(C=>C.key===N);if(!(x!=null&&x.filterable))continue;const F=z[N],K=S[N];if(!(x.filter?K.some(C=>x.filter(F,C)):K.includes(F)))return!1}return!0})}),k=e.computed(()=>d.value.length),b=e.computed(()=>{const S=n.pagination;if(!S||!S.enabled.value)return d.value;const D=(S.currentPage.value-1)*S.pageSize.value;return d.value.slice(D,D+S.pageSize.value)});function w(S){const D=s.value;D.key!==S?s.value={key:S,direction:"ascend"}:D.direction==="ascend"?s.value={key:S,direction:"descend"}:s.value={key:"",direction:null}}function g(S,D){s.value={key:S,direction:D}}function f(S,D){D.length===0?delete c.value[S]:c.value[S]=D}function p(){c.value={}}const m=e.computed(()=>b.value.map(S=>va(S,o.value)).filter(Boolean));function _(S){return a.value?r.value.includes(S):!1}function y(S){if(!a.value)return;const D=a.value===!0?"multiple":a.value,z=r.value,N=z.indexOf(S);D==="single"?r.value=N>=0?[]:[S]:N>=0?z.splice(N,1):z.push(S)}function B(){if(!a.value)return;const S=m.value;if(S.every(z=>r.value.includes(z)))r.value=r.value.filter(z=>!S.includes(z));else{const z=new Set([...r.value,...S]);r.value=[...z]}}function $(){r.value=[]}const E=e.computed(()=>m.value.length===0?!1:m.value.every(S=>r.value.includes(S))),V=e.computed(()=>m.value.length===0?!1:m.value.some(D=>r.value.includes(D))&&!E.value);return{resolvedColumns:u,displayData:b,filteredTotal:k,sortState:s,filterState:c,toggleSort:w,setSort:g,setFilter:f,clearFilters:p,isSelected:_,toggleSelect:y,selectAll:B,clearSelection:$,selectedKeys:r,allKeys:m,isAllSelected:E,isIndeterminate:V}}const Pa={class:"nm-table__wrapper"},Ia={class:"nm-table__inner"},Ka={key:0,class:"nm-table__head"},Fa={key:0,class:"nm-table__th nm-table__th--selection"},Aa=["onClick"],Ra={class:"nm-table__th-content"},Oa={key:0,class:"nm-table__sort-icon","aria-hidden":"true"},ja={class:"nm-table__body"},Ua=["onClick"],Wa={key:0,class:"nm-table__td nm-table__td--selection"},Ha={key:0,class:"nm-table__empty"},qa={class:"nm-table__empty-text"},Ya={key:1,class:"nm-table__loading"},Ga={class:"nm-table__loading-text"},_t=R(e.defineComponent({__name:"NeumorphismTable",props:{data:{default:()=>[]},columns:{default:()=>[]},rowKey:{default:"key"},selectable:{type:[Boolean,String],default:!1},selectedKeys:{default:()=>[]},loading:{type:Boolean,default:!1},emptyText:{default:"暂无数据"},size:{default:"medium"},striped:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0}},emits:["update:selectedKeys","select","selectAll","sort"],setup(n,{emit:l}){const t=n,o=l,{t:a}=H(),r=J(),s=e.computed(()=>{var D;return t.size??((D=r.value.table)==null?void 0:D.size)??"medium"}),c=e.computed(()=>t.emptyText||a("tableEmpty")),u=e.computed({get:()=>t.selectedKeys,set:D=>o("update:selectedKeys",D)}),{resolvedColumns:i,displayData:d,sortState:k,toggleSort:b,isSelected:w,toggleSelect:g,selectAll:f,isAllSelected:p,isIndeterminate:m}=bt({data:e.computed(()=>t.data),columns:e.computed(()=>t.columns),rowKey:e.computed(()=>t.rowKey),selectable:e.computed(()=>t.selectable),selectedKeys:u});function _(D){b(D),o("sort",D,k.value.direction)}function y(D){const z=String(D[t.rowKey]??"");g(z),o("select",z,D)}function B(){f(),o("selectAll",p.value)}function $(D,z){const N=D[z.key];return N==null?"":String(N)}function E(D){if(!D.width&&!D.minWidth)return;const z={};return D.width&&(z.width=typeof D.width=="number"?`${D.width}px`:D.width),D.minWidth&&(z.minWidth=typeof D.minWidth=="number"?`${D.minWidth}px`:D.minWidth),z}const V=e.computed(()=>["nm-table",`nm-table--${s.value}`,{"nm-table--striped":t.striped,"nm-table--hoverable":t.hoverable,"nm-table--loading":t.loading}]),S=e.computed(()=>t.selectable===!0||t.selectable==="multiple");return(D,z)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(V.value)},[e.createElementVNode("div",Pa,[e.createElementVNode("table",Ia,[n.showHeader?(e.openBlock(),e.createElementBlock("thead",Ka,[e.createElementVNode("tr",null,[S.value?(e.openBlock(),e.createElementBlock("th",Fa,[e.createVNode(se,{"model-value":e.unref(p),indeterminate:e.unref(m),onChange:B},null,8,["model-value","indeterminate"])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),N=>(e.openBlock(),e.createElementBlock("th",{key:N.key,class:e.normalizeClass(["nm-table__th",{"nm-table__th--sortable":N.sortable,"nm-table__th--active":e.unref(k).key===N.key}]),style:e.normalizeStyle([E(N),{textAlign:N.align}]),onClick:x=>N.sortable?_(N.key):void 0},[e.createElementVNode("span",Ra,[e.renderSlot(D.$slots,"header",{column:N},()=>[e.createTextVNode(e.toDisplayString(N.label),1)],!0),N.sortable?(e.openBlock(),e.createElementBlock("span",Oa,[...z[0]||(z[0]=[e.createElementVNode("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M18 15l-6-6-6 6"})],-1)])])):e.createCommentVNode("",!0)])],14,Aa))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("tbody",ja,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),(N,x)=>(e.openBlock(),e.createElementBlock("tr",{key:String(N[n.rowKey]??x),class:e.normalizeClass(["nm-table__tr",{"nm-table__tr--selected":e.unref(w)(String(N[n.rowKey]??""))}]),onClick:F=>n.selectable==="single"?y(N):void 0},[S.value?(e.openBlock(),e.createElementBlock("td",Wa,[e.createVNode(se,{"model-value":e.unref(w)(String(N[n.rowKey]??"")),onChange:F=>y(N)},null,8,["model-value","onChange"])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),F=>(e.openBlock(),e.createElementBlock("td",{key:F.key,class:"nm-table__td",style:e.normalizeStyle({textAlign:F.align})},[e.renderSlot(D.$slots,`cell-${F.key}`,{row:N,column:F,value:N[F.key],index:x},()=>[e.createTextVNode(e.toDisplayString($(N,F)),1)],!0)],4))),128))],10,Ua))),128))])]),e.unref(d).length===0&&!n.loading?(e.openBlock(),e.createElementBlock("div",Ha,[e.renderSlot(D.$slots,"empty",{},()=>[e.createElementVNode("span",qa,e.toDisplayString(c.value),1)],!0)])):e.createCommentVNode("",!0),n.loading?(e.openBlock(),e.createElementBlock("div",Ya,[e.renderSlot(D.$slots,"loading",{},()=>[z[1]||(z[1]=e.createElementVNode("span",{class:"nm-table__loading-spinner"},null,-1)),e.createElementVNode("span",Ga,e.toDisplayString(e.unref(a)("tableLoading")),1)],!0)])):e.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-3139066b"]]);function wt(n){const{items:l}=n,t=e.computed(()=>{const $=n.overscan;return $==null?5:typeof $=="number"?$:$.value??5}),o=e.computed(()=>{const $=n.itemHeight;let E;if(typeof $=="number")E=()=>$;else if(typeof $=="function")E=$;else{const V=$.value;E=typeof V=="number"?()=>V:V}return E}),a=e.ref(null),r=e.ref(0);let s=null;function c(){s&&(s.disconnect(),s=null)}function u(){c();const $=a.value;!$||typeof ResizeObserver>"u"||(r.value=$.clientHeight,s=new ResizeObserver(([E])=>{const V=E.contentRect.height;V!==r.value&&(r.value=V)}),s.observe($))}e.onMounted(()=>{u()}),e.onBeforeUnmount(()=>{c()});const i=e.ref(0);function d(){const $=a.value;$&&(i.value=$.scrollTop)}let k=new Map;function b($){const E=o.value,V=k.get($);if(V!==void 0)return V;const S=E($);return k.set($,V!==void 0?V:S),S}function w(){const $=l.value.length,E=[0];for(let V=0;V<$;V++){const S=E[V];E.push(S+b(V))}return E}const g=e.ref(0),f=e.ref(0),p=e.ref(0),m=e.ref(0);function _(){const $=l.value.length;if($===0){g.value=0,f.value=0,p.value=0,m.value=0;return}const E=r.value;if(E===0)return;const V=t.value,S=i.value,D=w();g.value=D[$];let z=0,N=$-1,x=0;for(;z<=N;){const C=z+N>>>1;D[C+1]<=S?z=C+1:(x=C,N=C-1)}const F=Math.max(0,x-V),K=S+E;let v=F;for(;v<$&&D[v+1]<K;)v++;v=Math.min($,v+1+V),f.value=F,p.value=v,m.value=D[F]}e.watch(()=>l.value,()=>{k=new Map,_()}),e.watch([i,r,t],()=>_(),{deep:!1,immediate:!1});const y=e.computed(()=>l.value.slice(f.value,p.value));function B($,E="top"){const V=a.value;if(!V)return;const S=l.value.length;if(S===0)return;const D=Math.max(0,Math.min(S-1,$)),N=w()[D],x=b(D),F=r.value;let K;E==="center"?K=N-(F-x)/2:K=N,V.scrollTo({top:Math.max(0,K),behavior:"smooth"})}return{containerRef:a,visibleItems:y,totalHeight:g,offsetY:m,startIndex:f,endIndex:p,scrollTo:B,handleScroll:d}}const Za={key:0,class:"nm-virtual-list__empty"},Bt=R(e.defineComponent({__name:"NeumorphismVirtualList",props:{items:{default:()=>[]},itemHeight:{default:40},overscan:{default:5},keyField:{default:"id"}},setup(n,{expose:l}){const t=n,{containerRef:o,visibleItems:a,totalHeight:r,offsetY:s,scrollTo:c,handleScroll:u,startIndex:i}=wt({items:e.computed(()=>t.items),itemHeight:e.computed(()=>t.itemHeight),overscan:e.computed(()=>t.overscan)});return l({scrollTo:c}),(d,k)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:o,class:"nm-virtual-list",onScroll:k[0]||(k[0]=(...b)=>e.unref(u)&&e.unref(u)(...b))},[e.createElementVNode("div",{class:"nm-virtual-list__spacer",style:e.normalizeStyle({height:e.unref(r)+"px"})},[e.createElementVNode("div",{class:"nm-virtual-list__visible",style:e.normalizeStyle({transform:`translateY(${e.unref(s)}px)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(b,w)=>(e.openBlock(),e.createElementBlock("div",{key:b[n.keyField]??e.unref(i)+w,class:"nm-virtual-list__item"},[e.renderSlot(d.$slots,"default",{item:b,index:e.unref(i)+w},void 0,!0)]))),128))],4)],4),e.unref(a).length===0?(e.openBlock(),e.createElementBlock("div",Za,[e.renderSlot(d.$slots,"empty",{},void 0,!0)])):e.createCommentVNode("",!0)],544))}}),[["__scopeId","data-v-e0382cb8"]]),Ja=["aria-label"],Xa={key:0,class:"nm-list__header"},Qa={key:1,class:"nm-list__loading"},er={class:"nm-list__loading-text"},tr={key:2,class:"nm-list__empty"},nr={class:"nm-list__empty-text"},or=["onClick"],lr={key:4,class:"nm-list__footer"},Ct=R(e.defineComponent({__name:"NeumorphismList",props:{items:{default:()=>[]},bordered:{type:Boolean,default:!0},split:{type:Boolean,default:!0},size:{default:"medium"},hoverable:{type:Boolean,default:!0},loading:{type:Boolean,default:!1}},emits:["item-click"],setup(n,{emit:l}){const t=n,o=e.useSlots(),{config:a,resolveProp:r}=O(),s=e.computed(()=>{var p;return r(t.size,(p=a.value.list)==null?void 0:p.size,"medium")}),c=e.computed(()=>{var p;return r(t.bordered,(p=a.value.list)==null?void 0:p.bordered,!0)}),u=e.computed(()=>{var p;return r(t.split,(p=a.value.list)==null?void 0:p.split,!0)}),i=e.computed(()=>{var p;return r(t.hoverable,(p=a.value.list)==null?void 0:p.hoverable,!0)}),{t:d}=H(),k=l,b=e.computed(()=>!t.loading&&t.items.length===0),w=e.computed(()=>["nm-list",`nm-list--${s.value}`,{"nm-list--bordered":c.value,"nm-list--split":u.value,"nm-list--hoverable":i.value,"nm-list--loading":t.loading,"nm-list--empty":b.value}]);function g(p,m){k("item-click",p,m)}function f(p,m){return(p==null?void 0:p.id)??(p==null?void 0:p.key)??m}return(p,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(w.value),role:"list","aria-label":e.unref(d)("listLabel")},[p.$slots.header?(e.openBlock(),e.createElementBlock("div",Xa,[e.renderSlot(p.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),n.loading?(e.openBlock(),e.createElementBlock("div",Qa,[e.renderSlot(p.$slots,"loading",{},()=>[m[0]||(m[0]=e.createElementVNode("span",{class:"nm-list__spinner","aria-hidden":"true"},null,-1)),e.createElementVNode("span",er,e.toDisplayString(e.unref(d)("listLoading")),1)],!0)])):b.value?(e.openBlock(),e.createElementBlock("div",tr,[e.renderSlot(p.$slots,"empty",{},()=>[e.createElementVNode("span",nr,e.toDisplayString(e.unref(d)("listEmpty")),1)],!0)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(n.items,(_,y)=>(e.openBlock(),e.createElementBlock("div",{key:f(_,y),class:e.normalizeClass(["nm-list__item",{"nm-list__item--last":y===n.items.length-1,"nm-list__item--clickable":!!e.unref(o).default}]),role:"listitem",onClick:B=>g(_,y)},[e.renderSlot(p.$slots,"default",{item:_,index:y},()=>[e.createTextVNode(e.toDisplayString(_),1)],!0)],10,or))),128)),p.$slots.footer?(e.openBlock(),e.createElementBlock("div",lr,[e.renderSlot(p.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],10,Ja))}}),[["__scopeId","data-v-61b54172"]]),we=new WeakMap;function Et(n){return we.get(n)??0}function $t(n,l){l<=0?we.delete(n):we.set(n,l)}function ar(){return typeof window>"u"?0:window.innerWidth-document.documentElement.clientWidth}function Nt(n){const{modelValue:l}=n,t=n.maskClosable??e.ref(!0),o=n.closable??e.ref(!0),a=n.destroyOnClose??e.ref(!1),r=e.ref(l.value),s=e.ref(l.value),c=e.ref(null);let u;function i(){if(typeof document>"u")return;const m=Et(document);if($t(document,m+1),m===0){const _=ar();_>0&&(document.body.style.paddingRight=`${_}px`),document.body.style.overflow="hidden"}}function d(){if(typeof document>"u")return;const m=Et(document),_=Math.max(0,m-1);$t(document,_),_===0&&(document.body.style.overflow="",document.body.style.paddingRight="")}e.watch(()=>l.value,m=>{var _;if(m){s.value=!0;const y=document.activeElement;c.value=y instanceof HTMLElement?y:null,i(),e.nextTick(()=>{r.value=!0})}else r.value=!1,clearTimeout(u),a.value&&(u=setTimeout(()=>{s.value=!1},200)),d(),(_=c.value)==null||_.focus()});function k(){l.value=!0}function b(){o.value&&(l.value=!1)}function w(){t.value&&o.value&&b()}function g(m){return m?Array.from(m.querySelectorAll('button:not([disabled]), [href]:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), [contenteditable]:not([contenteditable="false"])')):[]}function f(m){if(!m)return;m.focus();const _=g(m);_.length>0&&_[0].focus()}function p(m,_){if(m.key==="Escape"&&o.value){b();return}if(m.key==="Tab"&&_){const y=g(_);if(y.length===0)return;const B=y[0],$=y[y.length-1];m.shiftKey?document.activeElement===B&&(m.preventDefault(),$==null||$.focus()):document.activeElement===$&&(m.preventDefault(),B==null||B.focus())}}return e.onMounted(()=>{l.value&&(s.value=!0,e.nextTick(()=>{r.value=!0}))}),e.onBeforeUnmount(()=>{var m;clearTimeout(u),d(),r.value&&((m=c.value)==null||m.focus())}),{isOpen:r,rendered:s,open:k,close:b,handleKeydown:p,handleMaskClick:w,focusDrawer:f}}const rr=["aria-labelledby"],sr={class:"nm-drawer__header"},ir={class:"nm-drawer__body"},cr={key:0,class:"nm-drawer__footer"},Vt=R(e.defineComponent({__name:"NeumorphismDrawer",props:{modelValue:{type:Boolean,default:!1},position:{default:"right"},title:{},width:{},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1}},emits:["update:modelValue","open","close"],setup(n,{emit:l}){const t=n,o=l,a=e.computed({get:()=>t.modelValue,set:B=>o("update:modelValue",B)}),{isOpen:r,rendered:s,close:c,handleKeydown:u,handleMaskClick:i,focusDrawer:d}=Nt({modelValue:a,maskClosable:e.computed(()=>t.maskClosable),closable:e.computed(()=>t.closable),destroyOnClose:e.computed(()=>t.destroyOnClose)}),k=e.ref(),b=`nm-drawer-title-${Y()}`,w=e.computed(()=>{if(t.width!=null)return g(t.width);const B=t.position;return B==="left"||B==="right"?"320px":"240px"});function g(B){return typeof B=="number"?`${B}px`:B}e.watch(r,async B=>{B&&(await e.nextTick(),d(k.value))}),e.watch(()=>t.modelValue,B=>{o(B?"open":"close")});function f(){i()}function p(){c()}function m(B){u(B,k.value)}const _=e.computed(()=>t.position==="left"||t.position==="right"),y=e.computed(()=>{const B=w.value;return _.value?{width:B}:{height:B}});return(B,$)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"nm-drawer-fade"},{default:e.withCtx(()=>[e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nm-drawer__mask",{"nm-drawer__mask--visible":e.unref(r)}]),onClick:e.withModifiers(f,["self"])},[e.createVNode(e.Transition,{name:"nm-drawer-slide"},{default:e.withCtx(()=>[e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"drawerRef",ref:k,class:e.normalizeClass(["nm-drawer",`nm-drawer--${n.position}`]),style:e.normalizeStyle(y.value),role:"dialog","aria-modal":"true","aria-labelledby":n.title?b:void 0,tabindex:"-1",onKeydown:m},[e.createElementVNode("div",sr,[n.title?(e.openBlock(),e.createElementBlock("h2",{key:0,id:b,class:"nm-drawer__title"},e.toDisplayString(n.title),1)):e.createCommentVNode("",!0),e.renderSlot(B.$slots,"header",{},void 0,!0),n.showClose&&n.closable?(e.openBlock(),e.createElementBlock("button",{key:1,class:"nm-drawer__close","aria-label":"关闭",type:"button",onClick:p},[...$[0]||($[0]=[e.createElementVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12"})],-1)])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",ir,[e.renderSlot(B.$slots,"default",{},void 0,!0)]),B.$slots.footer?(e.openBlock(),e.createElementBlock("div",cr,[e.renderSlot(B.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],46,rr)):e.createCommentVNode("",!0)]),_:3})],2)):e.createCommentVNode("",!0)]),_:3})]))}}),[["__scopeId","data-v-72aa66d5"]]),dr=["aria-orientation"],mr={key:0,class:"nm-divider__text"},xt=R(e.defineComponent({__name:"NeumorphismDivider",props:{direction:{default:"horizontal"},align:{default:"center"},dashed:{type:Boolean,default:!1},inset:{type:Boolean,default:!1}},setup(n){const l=n,{config:t,resolveProp:o}=O(),a=e.computed(()=>{var i;return o(l.direction,(i=t.value.divider)==null?void 0:i.direction,"horizontal")}),r=e.computed(()=>{var i;return o(l.align,(i=t.value.divider)==null?void 0:i.align,"center")}),s=e.computed(()=>{var i;return o(l.dashed,(i=t.value.divider)==null?void 0:i.dashed,!1)}),c=e.computed(()=>{var i;return o(l.inset,(i=t.value.divider)==null?void 0:i.inset,!1)}),u=e.computed(()=>["nm-divider",`nm-divider--${a.value}`,...a.value==="horizontal"?[`nm-divider--${r.value}`]:[],{"nm-divider--dashed":s.value,"nm-divider--inset":c.value}]);return(i,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(u.value),role:"separator","aria-orientation":a.value},[i.$slots.default?(e.openBlock(),e.createElementBlock("span",mr,[e.renderSlot(i.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0)],10,dr))}}),[["__scopeId","data-v-84be10a5"]]);function St(n){const{modelValue:l,items:t}=n,o=n.accordion;function a(s){const c=t.value.find(d=>d.key===s);if(c!=null&&c.disabled)return;const u=[...l.value],i=u.indexOf(s);if(i>=0)u.splice(i,1);else{if(o!=null&&o.value){l.value=[s];return}u.push(s)}l.value=u}function r(s){return l.value.includes(s)}return{toggle:a,isActive:r}}const ur={class:"nm-collapse__header"},fr=["id","aria-expanded","aria-controls","aria-disabled","disabled","onClick"],pr={class:"nm-collapse__title"},hr=["id","aria-labelledby"],kr={class:"nm-collapse__content"},gr={class:"nm-collapse__content-inner"},zt=R(e.defineComponent({__name:"NeumorphismCollapse",props:{modelValue:{default:()=>[]},accordion:{type:Boolean,default:!1},items:{default:()=>[]},size:{default:"medium"}},emits:["update:modelValue","change"],setup(n,{emit:l}){const t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var w;return a(t.size,(w=o.value.collapse)==null?void 0:w.size,"medium")}),s=e.computed(()=>{var w;return a(t.accordion,(w=o.value.collapse)==null?void 0:w.accordion,!1)}),c=l,u=e.computed({get:()=>t.modelValue,set:w=>{c("update:modelValue",w),c("change",w)}}),{toggle:i,isActive:d}=St({modelValue:u,items:e.computed(()=>t.items),accordion:e.computed(()=>s.value)}),k=Y("nm-collapse"),b=e.computed(()=>["nm-collapse",`nm-collapse--${r.value}`]);return(w,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(b.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,f=>(e.openBlock(),e.createElementBlock("div",{key:f.key,class:e.normalizeClass(["nm-collapse__item",{"nm-collapse__item--active":e.unref(d)(f.key),"nm-collapse__item--disabled":f.disabled}])},[e.createElementVNode("h3",ur,[e.createElementVNode("button",{id:`${e.unref(k)}-${f.key}-header`,class:"nm-collapse__trigger",type:"button","aria-expanded":e.unref(d)(f.key),"aria-controls":`${e.unref(k)}-${f.key}-panel`,"aria-disabled":f.disabled,disabled:f.disabled,onClick:p=>e.unref(i)(f.key)},[e.renderSlot(w.$slots,`header-${f.key}`,{item:f,active:e.unref(d)(f.key)},()=>[e.createElementVNode("span",pr,e.toDisplayString(f.title),1)],!0),e.createElementVNode("span",{class:e.normalizeClass(["nm-collapse__icon",{"nm-collapse__icon--active":e.unref(d)(f.key)}])},[...g[0]||(g[0]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M6 9l6 6 6-6"})],-1)])],2)],8,fr)]),e.createElementVNode("div",{id:`${e.unref(k)}-${f.key}-panel`,class:e.normalizeClass(["nm-collapse__panel",{"nm-collapse__panel--collapsed":!e.unref(d)(f.key)}]),role:"region","aria-labelledby":`${e.unref(k)}-${f.key}-header`},[e.createElementVNode("div",kr,[e.createElementVNode("div",gr,[e.renderSlot(w.$slots,f.key,{},void 0,!0)])])],10,hr)],2))),128))],2))}}),[["__scopeId","data-v-b964b07b"]]),Tt=R(e.defineComponent({__name:"NeumorphismContainer",props:{mode:{default:"fixed"},noPadding:{type:Boolean,default:!1},tag:{default:"div"}},setup(n){const l=n,{config:t,resolveProp:o}=O(),a=e.computed(()=>{var s;return o(l.mode,(s=t.value.container)==null?void 0:s.mode,"fixed")}),r=e.computed(()=>["nm-container",{"nm-container--fluid":a.value==="fluid"},{"nm-container--no-padding":l.noPadding}]);return(s,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.tag),{class:e.normalizeClass(r.value)},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),[["__scopeId","data-v-23995fcc"]]),Be=Symbol("nm-radio-group"),Ce=Symbol("nm-form"),Ee=Symbol("nm-row-gutter"),Lt=R(e.defineComponent({__name:"NeumorphismRow",props:{gutter:{default:0},justify:{default:"start"},align:{default:"stretch"},wrap:{type:Boolean,default:!0}},setup(n){const l=n,{config:t,resolveProp:o}=O(),a=e.computed(()=>{var g;return o(l.gutter,(g=t.value.grid)==null?void 0:g.gutter,0)}),r=e.computed(()=>{var g;return o(l.justify,(g=t.value.grid)==null?void 0:g.justify,"start")}),s=e.computed(()=>{var g;return o(l.align,(g=t.value.grid)==null?void 0:g.align,"stretch")}),c=e.computed(()=>{var g;return o(l.wrap,(g=t.value.grid)==null?void 0:g.wrap,!0)}),u=e.computed(()=>Array.isArray(a.value)?a.value[0]:a.value),i=e.computed(()=>Array.isArray(a.value)?a.value[1]:a.value);e.provide(Ee,{x:u,y:i});const d={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between","space-around":"space-around","space-evenly":"space-evenly"},k={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch",baseline:"baseline"},b=e.computed(()=>{const g=u.value,f=i.value;if(!(g===0&&f===0))return{marginLeft:g?`${-g/2}px`:void 0,marginRight:g?`${-g/2}px`:void 0,rowGap:f?`${f}px`:void 0}}),w=e.computed(()=>["nm-row",{"nm-row--nowrap":!c.value}]);return(g,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(w.value),style:e.normalizeStyle([b.value,{justifyContent:d[r.value],alignItems:k[s.value]}])},[e.renderSlot(g.$slots,"default",{},void 0,!0)],6))}}),[["__scopeId","data-v-f8bc1d4d"]]),Mt=R(e.defineComponent({__name:"NeumorphismCol",props:{span:{default:24},offset:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{}},setup(n){const l=n,t=e.inject(Ee,{x:e.computed(()=>0),y:e.computed(()=>0)});function o(s,c){return c===void 0||c===""?"":`${s}${c}`}const a=e.computed(()=>[o("nm-col-",l.span),o("nm-col-offset-",l.offset),o("nm-col-xs-",l.xs),o("nm-col-sm-",l.sm),o("nm-col-md-",l.md),o("nm-col-lg-",l.lg),o("nm-col-xl-",l.xl),o("nm-col-xxl-",l.xxl),"nm-col"].filter(Boolean)),r=e.computed(()=>{const s=t.x.value,c=t.y.value;if(!(s===0&&c===0))return{paddingLeft:s?`${s/2}px`:void 0,paddingRight:s?`${s/2}px`:void 0,paddingTop:c?`${c/2}px`:void 0,paddingBottom:c?`${c/2}px`:void 0}});return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),style:e.normalizeStyle(r.value)},[e.renderSlot(s.$slots,"default",{},void 0,!0)],6))}}),[["__scopeId","data-v-c367585e"]]);function Dt(){const n=e.ref(!1),l=e.ref(!1);let t;function o(){l.value=window.innerWidth<768}function a(){clearTimeout(t),t=setTimeout(o,100)}function r(){n.value=!0}let s,c;return e.onMounted(()=>{window.matchMedia&&(s=window.matchMedia("(pointer: coarse)"),n.value=s.matches,c=u=>{n.value=u.matches},s.addEventListener("change",c)),window.addEventListener("touchstart",r,{once:!0,passive:!0}),o(),window.addEventListener("resize",a,{passive:!0})}),e.onBeforeUnmount(()=>{s&&c&&s.removeEventListener("change",c),window.removeEventListener("touchstart",r),window.removeEventListener("resize",a),clearTimeout(t)}),{isTouch:n,isMobile:l}}const yr={key:0,class:"nm-layout__header"},br={class:"nm-layout__header-left"},_r=["aria-label"],wr={width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Br={key:0,d:"M16 18l-6-6 6-6"},Cr={key:1,d:"M8 18l6-6-6-6"},Er={class:"nm-layout__header-center"},$r={class:"nm-layout__header-right"},Nr={class:"nm-layout__body"},Vr={class:"nm-layout__sider-inner"},xr={key:1,class:"nm-layout__footer"},vt=R(e.defineComponent({__name:"NeumorphismLayout",props:{showHeader:{type:Boolean,default:!0},showSider:{type:Boolean,default:!1},siderWidth:{default:240},collapsible:{type:Boolean,default:!1},defaultCollapsed:{type:Boolean,default:!1},collapsedWidth:{default:64},mobileAutoCollapse:{type:Boolean,default:!0}},emits:["collapse"],setup(n,{emit:l}){const t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var E;return a(t.showHeader,(E=o.value.layout)==null?void 0:E.showHeader,!0)}),s=e.computed(()=>{var E;return a(t.showSider,(E=o.value.layout)==null?void 0:E.showSider,!1)}),c=e.computed(()=>{var E;return a(t.siderWidth,(E=o.value.layout)==null?void 0:E.siderWidth,240)}),u=e.computed(()=>{var E;return a(t.collapsible,(E=o.value.layout)==null?void 0:E.collapsible,!1)}),i=e.computed(()=>{var E;return a(t.collapsedWidth,(E=o.value.layout)==null?void 0:E.collapsedWidth,64)}),d=e.computed(()=>{var E;return a(t.mobileAutoCollapse,(E=o.value.layout)==null?void 0:E.mobileAutoCollapse,!0)}),k=l,{isMobile:b}=Dt(),w=e.ref(t.defaultCollapsed),g=e.ref(!1),f=e.computed(()=>d.value&&b.value?!0:w.value);function p(){b.value?g.value=!g.value:(w.value=!w.value,k("collapse",w.value))}const{t:m}=H();function _(){g.value=!1}function y(){b.value&&g.value&&_()}const B=e.computed(()=>["nm-layout",{"nm-layout--has-sider":s.value,"nm-layout--sider-collapsed":f.value,"nm-layout--mobile":b.value,"nm-layout--drawer-open":g.value}]),$=e.computed(()=>({width:f.value?`${i.value}px`:`${c.value}px`}));return(E,V)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(B.value)},[r.value?(e.openBlock(),e.createElementBlock("header",yr,[e.createElementVNode("div",br,[s.value&&u.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"nm-layout__collapse-btn",type:"button","aria-label":f.value?e.unref(m)("layoutExpandSider"):e.unref(m)("layoutCollapseSider"),onClick:p},[(e.openBlock(),e.createElementBlock("svg",wr,[f.value?(e.openBlock(),e.createElementBlock("path",Br)):(e.openBlock(),e.createElementBlock("path",Cr))]))],8,_r)):e.createCommentVNode("",!0),e.renderSlot(E.$slots,"header-left",{},void 0,!0)]),e.createElementVNode("div",Er,[e.renderSlot(E.$slots,"header-center",{},void 0,!0)]),e.createElementVNode("div",$r,[e.renderSlot(E.$slots,"header-right",{},void 0,!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",Nr,[e.createVNode(e.Transition,{name:"nm-layout-fade"},{default:e.withCtx(()=>[e.unref(b)&&g.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"nm-layout__drawer-overlay",onClick:_,onTouchmove:V[0]||(V[0]=e.withModifiers(()=>{},["prevent"]))},null,32)):e.createCommentVNode("",!0)]),_:1}),s.value?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(["nm-layout__sider",{"nm-layout__sider--drawer":e.unref(b),"nm-layout__sider--open":g.value}]),style:e.normalizeStyle(e.unref(b)?void 0:$.value)},[e.createElementVNode("div",Vr,[e.renderSlot(E.$slots,"sider",{collapsed:f.value},void 0,!0)])],6)):e.createCommentVNode("",!0),e.createElementVNode("main",{class:"nm-layout__content",onClick:y},[e.renderSlot(E.$slots,"default",{},void 0,!0)])]),E.$slots.footer?(e.openBlock(),e.createElementBlock("footer",xr,[e.renderSlot(E.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-3558204f"]]),Sr=["aria-label"],zr=["aria-pressed","disabled","onClick"],Tr={key:0,class:"nm-theme-toggle__icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lr={key:1,class:"nm-theme-toggle__icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mr={key:2,class:"nm-theme-toggle__icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Dr={key:3,class:"nm-theme-toggle__label"},Pt=R(e.defineComponent({__name:"NeumorphismThemeToggle",props:{modelValue:{default:"auto"},size:{default:"medium"},disableAuto:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(n,{emit:l}){const t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var w;return a(t.size,(w=o.value.themeToggle)==null?void 0:w.size,"medium")}),s=e.computed(()=>{var w;return a(t.disableAuto,(w=o.value.themeToggle)==null?void 0:w.disableAuto,!1)}),c=l,{t:u}=H(),i=e.computed(()=>{const w=[{value:"light",label:u("themeToggleLight")},{value:"auto",label:u("themeToggleAuto")},{value:"dark",label:u("themeToggleDark")}];return s.value?w.filter(g=>g.value!=="auto"):w}),d=re();e.watch(()=>t.modelValue,w=>{w!==d.theme.value&&d.setTheme(w)},{immediate:!0});const k=e.computed(()=>["nm-theme-toggle",`nm-theme-toggle--${r.value}`,{"nm-theme-toggle--disabled":t.disabled}]);function b(w){t.disabled||w!==t.modelValue&&(d.setTheme(w),c("update:modelValue",w),c("change",w))}return(w,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(k.value),role:"radiogroup","aria-label":e.unref(u)("themeToggleLabel")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,f=>(e.openBlock(),e.createElementBlock("button",{key:f.value,type:"button",class:e.normalizeClass(["nm-theme-toggle__btn",{"nm-theme-toggle__btn--active":n.modelValue===f.value}]),"aria-pressed":n.modelValue===f.value,disabled:n.disabled,onClick:p=>b(f.value)},[f.value==="light"?(e.openBlock(),e.createElementBlock("svg",Tr,[...g[0]||(g[0]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"4",fill:"currentColor"},null,-1),e.createElementVNode("path",{stroke:"currentColor","stroke-width":"2","stroke-linecap":"round",d:"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32 1.41 1.41M2 12h2m16 0h2M4.93 19.07l1.41-1.41m11.32-11.32 1.41-1.41"},null,-1)])])):e.createCommentVNode("",!0),f.value==="auto"?(e.openBlock(),e.createElementBlock("svg",Lr,[...g[1]||(g[1]=[e.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",stroke:"currentColor","stroke-width":"2"},null,-1),e.createElementVNode("path",{stroke:"currentColor","stroke-width":"2","stroke-linecap":"round",d:"M8 21h8m-4-4v4"},null,-1),e.createElementVNode("path",{stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3l2 1.5"},null,-1),e.createElementVNode("circle",{cx:"12",cy:"12",r:"1",fill:"currentColor"},null,-1)])])):e.createCommentVNode("",!0),f.value==="dark"?(e.openBlock(),e.createElementBlock("svg",Mr,[...g[2]||(g[2]=[e.createElementVNode("path",{fill:"currentColor",d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"},null,-1)])])):e.createCommentVNode("",!0),n.size!=="small"?(e.openBlock(),e.createElementBlock("span",Dr,e.toDisplayString(f.label),1)):e.createCommentVNode("",!0)],10,zr))),128))],10,Sr))}}),[["__scopeId","data-v-1569a903"]]);function It(n,l){if(n.length!==l.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==l[t])return!1;return!0}function vr(n){const l=[];function t(o){var a;for(const r of o)l.push(r.key),(a=r.children)!=null&&a.length&&t(r.children)}return t(n),l}function Pr(n,l){const t=[],o=l.toLowerCase();function a(r){var c;let s=!1;for(const u of r){const i=u.label.toLowerCase().includes(o);let d=!1;(c=u.children)!=null&&c.length&&(d=a(u.children)),(i||d)&&(t.push(u.key),s=!0)}return s}return a(n),t}function ae(n,l){var t;for(const o of n){if(o.key===l)return o;if((t=o.children)!=null&&t.length){const a=ae(o.children,l);if(a)return a}}return null}function Kt(n,l,t=[]){var o;for(const a of n)t.push(a),(o=a.children)!=null&&o.length&&l.includes(a.key)&&Kt(a.children,l,t);return t}function Ft(n,l=null,t=new Map){var o;for(const a of n)t.set(a.key,l),(o=a.children)!=null&&o.length&&Ft(a.children,a.key,t);return t}function At(n){var K,v;const{data:l}=n,t=n.multiple??e.ref(!1),o=e.ref([...((K=n.expandedKeys)==null?void 0:K.value)??[]]),a=e.ref([...((v=n.selectedKeys)==null?void 0:v.value)??[]]),r=e.ref(""),s=e.ref(null);let c=!1;function u(C,h){C&&e.watch(()=>C.value,L=>{if(c)return;const I=[...L];It(h.value,I)||(c=!0,h.value=I,e.nextTick(()=>{c=!1}))},{immediate:!0,deep:!0})}function i(C,h){h&&e.watch(()=>C.value,L=>{if(c)return;const I=[...L];It(h.value,I)||(c=!0,h.value=I,e.nextTick(()=>{c=!1}))},{deep:!0})}u(n.selectedKeys,a),u(n.expandedKeys,o),i(a,n.selectedKeys),i(o,n.expandedKeys);const d=e.computed(()=>vr(l.value)),k=e.computed(()=>Kt(l.value,o.value)),b=e.computed(()=>Ft(l.value));function w(C){const h=o.value.indexOf(C);h===-1?o.value.push(C):o.value.splice(h,1)}function g(C){if(t.value){const h=a.value.indexOf(C);h===-1?a.value.push(C):a.value.splice(h,1)}else a.value=[C]}function f(){o.value=[...d.value]}function p(){o.value=[]}function m(C){if(r.value=C,C.trim()){const h=Pr(l.value,C);o.value=[...new Set([...o.value,...h])]}}let _="",y=null;function B(C){_+=C.toLowerCase(),y&&clearTimeout(y),y=setTimeout(()=>{_=""},500);const h=k.value,L=s.value?h.findIndex(T=>T.key===s.value)+1:0,A=[...h.slice(L),...h.slice(0,L)].find(T=>T.label.toLowerCase().startsWith(_));A&&(s.value=A.key)}function $(){const C=k.value;if(!C.length)return;if(!s.value){s.value=C[0].key;return}const h=C.findIndex(L=>L.key===s.value);h>=0&&h<C.length-1&&(s.value=C[h+1].key)}function E(){const C=k.value;if(!C.length)return;if(!s.value){s.value=C[C.length-1].key;return}const h=C.findIndex(L=>L.key===s.value);h>0&&(s.value=C[h-1].key)}function V(){const C=k.value;C.length&&(s.value=C[0].key)}function S(){const C=k.value;C.length&&(s.value=C[C.length-1].key)}function D(){if(!s.value)return;const C=b.value.get(s.value);C&&(s.value=C)}function z(){var h;if(!s.value)return;const C=ae(l.value,s.value);(h=C==null?void 0:C.children)!=null&&h.length&&(o.value.includes(C.key)||w(C.key),s.value=C.children[0].key)}function N(){var h;if(!s.value)return;const C=ae(l.value,s.value);(h=C==null?void 0:C.children)!=null&&h.length&&o.value.includes(C.key)?w(C.key):D()}function x(){var h;if(!s.value)return;const C=ae(l.value,s.value);(h=C==null?void 0:C.children)!=null&&h.length&&w(C.key)}function F(C){const h=C.key;if(h.length===1&&!C.ctrlKey&&!C.metaKey&&!C.altKey){B(h),C.preventDefault();return}switch(h){case"ArrowDown":$(),C.preventDefault();break;case"ArrowUp":E(),C.preventDefault();break;case"ArrowRight":z(),C.preventDefault();break;case"ArrowLeft":N(),C.preventDefault();break;case"Enter":case" ":s.value&&g(s.value),C.preventDefault();break;case"Home":V(),C.preventDefault();break;case"End":S(),C.preventDefault();break;case"*":x(),C.preventDefault();break}}return{localExpandedKeys:o,localSelectedKeys:a,allKeys:d,searchText:r,focusedKey:s,toggleExpand:w,select:g,findNode:ae,expandAll:f,collapseAll:p,onSearchInput:m,handleKeydown:F}}const Ir=["id","aria-expanded","aria-selected","aria-disabled"],Kr=["aria-label"],Fr={key:1,class:"nm-tree-node__toggle-placeholder"},Ar={key:2,class:"nm-tree-node__icon"},Rr={class:"nm-tree-node__label"},Or={class:"nm-tree-node__children-wrapper"},me=R(e.defineComponent({__name:"NeumorphismTreeNode",props:{node:{},selectedKeys:{},expandedKeys:{},searchText:{},focusedKey:{},level:{default:0}},emits:["toggle-expand","select"],setup(n,{emit:l}){const t=n,o=l,a=e.computed(()=>t.expandedKeys.includes(t.node.key)),r=e.computed(()=>t.selectedKeys.includes(t.node.key)),s=e.computed(()=>t.focusedKey===t.node.key),c=e.computed(()=>{var p;return!!((p=t.node.children)!=null&&p.length)}),u=e.computed(()=>t.searchText.toLowerCase().trim());function i(p,m){var _;return p.label.toLowerCase().includes(m)?!0:((_=p.children)==null?void 0:_.some(y=>i(y,m)))??!1}const{t:d}=H(),k=e.computed(()=>{var p;return!u.value||t.node.label.toLowerCase().includes(u.value)?!0:((p=t.node.children)==null?void 0:p.some(m=>i(m,u.value)))??!1}),b=e.computed(()=>{if(!t.searchText.trim())return null;const p=t.searchText.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return t.node.label.split(new RegExp(`(${p})`,"gi")).filter(Boolean)});function w(){c.value&&o("toggle-expand",t.node.key)}function g(p){p==null||p.stopPropagation(),w()}function f(){t.node.disabled||o("select",t.node.key)}return(p,m)=>k.value?(e.openBlock(),e.createElementBlock("li",{key:0,id:`nm-tree-node-${n.node.key}`,class:e.normalizeClass(["nm-tree-node",{"nm-tree-node--selected":r.value,"nm-tree-node--disabled":n.node.disabled,"nm-tree-node--leaf":!c.value,"nm-tree-node--expanded":a.value,"nm-tree-node--focused":s.value}]),style:e.normalizeStyle({paddingLeft:`calc(${n.level} * var(--nm-tree-node-indent, 8px) + 4px)`}),role:"treeitem",tabindex:"-1","aria-expanded":c.value?a.value:void 0,"aria-selected":r.value,"aria-disabled":n.node.disabled},[e.createElementVNode("div",{class:e.normalizeClass(["nm-tree-node__row",{"nm-tree-node__row--clickable":!n.node.disabled}]),onClick:f},[c.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["nm-tree-node__toggle",{"nm-tree-node__toggle--expanded":a.value}]),"aria-label":a.value?e.unref(d)("treeCollapse"):e.unref(d)("treeExpand"),onClick:e.withModifiers(w,["stop"])},[...m[2]||(m[2]=[e.createElementVNode("svg",{class:"nm-tree-node__chevron",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M9 6l6 6-6 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],10,Kr)):(e.openBlock(),e.createElementBlock("span",Fr)),n.node.icon?(e.openBlock(),e.createElementBlock("span",Ar,e.toDisplayString(n.node.icon),1)):e.createCommentVNode("",!0),e.renderSlot(p.$slots,"node-label",{node:n.node,selected:r.value,expanded:a.value,level:n.level,select:f,toggle:g},()=>[e.createElementVNode("span",Rr,[b.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(b.value,(_,y)=>(e.openBlock(),e.createElementBlock("span",{key:y,class:e.normalizeClass({"nm-tree-node__label--highlight":_.toLowerCase()===u.value})},e.toDisplayString(_),3))),128)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(n.node.label),1)],64))])],!0)],2),c.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass(["nm-tree-node__children",{"nm-tree-node__children--collapsed":!a.value}])},[e.createElementVNode("div",Or,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.node.children,_=>(e.openBlock(),e.createBlock(me,{key:_.key,node:_,"selected-keys":n.selectedKeys,"expanded-keys":n.expandedKeys,"search-text":n.searchText,"focused-key":n.focusedKey,level:n.level+1,onToggleExpand:m[0]||(m[0]=y=>o("toggle-expand",y)),onSelect:m[1]||(m[1]=y=>o("select",y))},null,8,["node","selected-keys","expanded-keys","search-text","focused-key","level"]))),128))])],2)):e.createCommentVNode("",!0)],14,Ir)):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-94118851"]]),jr=["aria-label","aria-activedescendant"],Ur={key:0,class:"nm-tree__search"},Wr=["placeholder","value"],Hr=["aria-label"],qr={key:1,class:"nm-tree__actions"},Yr={class:"nm-tree__list",role:"group"},Gr={key:2,class:"nm-tree__empty"},Rt=R(e.defineComponent({__name:"NeumorphismTree",props:{data:{},selectedKeys:{default:()=>[]},expandedKeys:{default:()=>[]},searchPlaceholder:{default:"搜索..."},showSearch:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1}},emits:["update:selectedKeys","update:expandedKeys","node-click","node-select"],setup(n,{emit:l}){const t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var K;return a(t.showSearch,(K=o.value.tree)==null?void 0:K.showSearch,!1)}),s=e.computed(()=>{var K;return a(t.multiple,(K=o.value.tree)==null?void 0:K.multiple,!1)}),c=e.computed(()=>{var K;return a(t.searchPlaceholder,(K=o.value.tree)==null?void 0:K.searchPlaceholder,"搜索...")}),u=l,i=e.computed({get:()=>t.selectedKeys,set:K=>u("update:selectedKeys",K)}),d=e.computed({get:()=>t.expandedKeys,set:K=>u("update:expandedKeys",K)}),{localExpandedKeys:k,localSelectedKeys:b,searchText:w,focusedKey:g,toggleExpand:f,select:p,findNode:m,expandAll:_,collapseAll:y,onSearchInput:B,handleKeydown:$}=At({data:e.computed(()=>t.data),selectedKeys:i,expandedKeys:d,multiple:e.computed(()=>s.value)}),E=w;function V(K){p(K),u("node-select",K);const v=m(t.data,K);v&&u("node-click",v)}const{t:S}=H();function D(K){f(K),u("update:expandedKeys",[...k.value])}function z(){_(),u("update:expandedKeys",[...k.value])}function N(){y(),u("update:expandedKeys",[])}const x=e.computed(()=>g.value?`nm-tree-node-${g.value}`:void 0),F=e.computed(()=>["nm-tree"]);return(K,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(F.value),role:"tree",tabindex:"0","aria-label":e.unref(S)("treeLabel"),"aria-activedescendant":x.value,onKeydown:v[2]||(v[2]=(...C)=>e.unref($)&&e.unref($)(...C))},[r.value?(e.openBlock(),e.createElementBlock("div",Ur,[v[4]||(v[4]=e.createElementVNode("svg",{class:"nm-tree__search-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor","stroke-width":"2"}),e.createElementVNode("path",{d:"M21 21l-4.35-4.35",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)),e.createElementVNode("input",{type:"text",class:"nm-tree__search-input",placeholder:c.value,value:e.unref(E),onInput:v[0]||(v[0]=C=>e.unref(B)(C.target.value))},null,40,Wr),e.unref(E)?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"nm-tree__search-clear","aria-label":e.unref(S)("treeClearSearch"),onClick:v[1]||(v[1]=C=>e.unref(B)(""))},[...v[3]||(v[3]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)])],8,Hr)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n.data.length>0?(e.openBlock(),e.createElementBlock("div",qr,[e.createElementVNode("button",{type:"button",class:"nm-tree__action-btn",onClick:z},e.toDisplayString(e.unref(S)("treeExpandAll")),1),e.createElementVNode("button",{type:"button",class:"nm-tree__action-btn",onClick:N},e.toDisplayString(e.unref(S)("treeCollapseAll")),1)])):e.createCommentVNode("",!0),e.createElementVNode("ul",Yr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.data,C=>(e.openBlock(),e.createBlock(me,{key:C.key,node:C,"selected-keys":e.unref(b),"expanded-keys":e.unref(k),"search-text":e.unref(E),"focused-key":e.unref(g),level:0,onToggleExpand:D,onSelect:V},null,8,["node","selected-keys","expanded-keys","search-text","focused-key"]))),128))]),n.data.length===0?(e.openBlock(),e.createElementBlock("div",Gr,e.toDisplayString(e.unref(S)("treeEmpty")),1)):e.createCommentVNode("",!0)],42,jr))}}),[["__scopeId","data-v-d0ca121b"]]),Zr={key:0,class:"nm-canvas__toolbar"},Jr={class:"nm-canvas__controls"},Xr=["aria-label","disabled"],Qr={class:"nm-canvas__zoom-text"},es=["aria-label","disabled"],ts=["aria-label"],ns={class:"nm-canvas__viewport"},Ot=R(e.defineComponent({__name:"NeumorphismCanvas",props:{modelValue:{default:1},minZoom:{default:.1},maxZoom:{default:5},zoomStep:{default:.1},showGrid:{type:Boolean,default:!0},gridSize:{default:20},showControls:{type:Boolean,default:!0},width:{default:"100%"},height:{default:"500px"}},emits:["update:modelValue","zoom-change"],setup(n,{emit:l}){const t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var _;return a(t.showGrid,(_=o.value.canvas)==null?void 0:_.showGrid,!0)}),s=e.computed(()=>{var _;return a(t.gridSize,(_=o.value.canvas)==null?void 0:_.gridSize,20)}),c=e.computed(()=>{var _;return a(t.showControls,(_=o.value.canvas)==null?void 0:_.showControls,!0)}),u=l,{t:i}=H(),d=e.computed({get:()=>t.modelValue,set:_=>{u("update:modelValue",_),u("zoom-change",_)}}),k=e.computed(()=>Math.round(d.value*100));function b(){d.value=Math.min(t.maxZoom,+(d.value+t.zoomStep).toFixed(2))}function w(){d.value=Math.max(t.minZoom,+(d.value-t.zoomStep).toFixed(2))}function g(){d.value=1}const f=e.computed(()=>{if(!r.value)return{};const _=s.value*d.value;return{backgroundImage:`
2
+ radial-gradient(circle, var(--nm-text-placeholder) 1px, transparent 1px)
3
+ `,backgroundSize:`${_}px ${_}px`,backgroundPosition:"0 0"}}),p=e.computed(()=>({width:t.width,height:t.height})),m=e.computed(()=>["nm-canvas"]);return(_,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(m.value),style:e.normalizeStyle(p.value)},[c.value?(e.openBlock(),e.createElementBlock("div",Zr,[e.createElementVNode("div",Jr,[e.createElementVNode("button",{type:"button",class:"nm-canvas__btn","aria-label":e.unref(i)("canvasZoomOut"),disabled:d.value<=n.minZoom,onClick:w},[...y[0]||(y[0]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor","stroke-width":"2"}),e.createElementVNode("path",{d:"M8 11h6M21 21l-4.35-4.35",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)])],8,Xr),e.createElementVNode("span",Qr,e.toDisplayString(k.value)+"%",1),e.createElementVNode("button",{type:"button",class:"nm-canvas__btn","aria-label":e.unref(i)("canvasZoomIn"),disabled:d.value>=n.maxZoom,onClick:b},[...y[1]||(y[1]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("circle",{cx:"11",cy:"11",r:"8",stroke:"currentColor","stroke-width":"2"}),e.createElementVNode("path",{d:"M11 8v6M8 11h6M21 21l-4.35-4.35",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)])],8,es),e.createElementVNode("button",{type:"button",class:"nm-canvas__btn nm-canvas__btn--reset","aria-label":e.unref(i)("canvasZoomReset"),onClick:g},[...y[2]||(y[2]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M3 3v5h5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,ts)]),e.renderSlot(_.$slots,"toolbar",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ns,[e.createElementVNode("div",{class:"nm-canvas__grid",style:e.normalizeStyle(f.value)},[e.createElementVNode("div",{class:"nm-canvas__content",style:e.normalizeStyle({transform:`scale(${d.value})`,transformOrigin:"top left"})},[e.renderSlot(_.$slots,"default",{},void 0,!0)],4)],4)])],6))}}),[["__scopeId","data-v-8b77d958"]]),os=["for"],ls={class:"nm-radio__input-wrapper"},as=["id","checked","disabled","name","value"],rs={key:0,class:"nm-radio__label"},jt=R(e.defineComponent({inheritAttrs:!1,__name:"NeumorphismRadio",props:{modelValue:{},value:{},disabled:{type:Boolean,default:!1},label:{},size:{default:"medium"},name:{},id:{}},emits:["update:modelValue","change"],setup(n,{emit:l}){const t=n,{config:o,resolveProp:a}=O(),r=l,s=e.useAttrs(),c=e.computed(()=>{const p={};for(const m of Object.keys(s))m!=="class"&&m!=="style"&&(p[m]=s[m]);return p}),u=e.inject(Be,null),i=e.computed(()=>u?u.modelValue.value===t.value:t.modelValue===t.value),d=e.computed(()=>t.disabled||(u==null?void 0:u.disabled.value)||!1),k=e.computed(()=>{var p;return a(t.size,(p=o.value.radio)==null?void 0:p.size,"medium")}),b=e.computed(()=>(u==null?void 0:u.size.value)||k.value),{inputId:w,classList:g}=he(()=>({prefix:"radio",isChecked:i.value,isDisabled:d.value,size:b.value}));function f(){d.value||(u?u.setValue(t.value):(r("update:modelValue",t.value),r("change",t.value)))}return(p,m)=>{var _;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(g),e.unref(s).class]),style:e.normalizeStyle(e.unref(s).style),for:e.unref(w)},[e.createElementVNode("span",ls,[e.createElementVNode("input",e.mergeProps({id:e.unref(w),type:"radio",class:"nm-radio__input",checked:i.value,disabled:d.value,name:((_=e.unref(u))==null?void 0:_.name.value)||n.name,value:n.value},c.value,{onChange:f}),null,16,as),m[0]||(m[0]=e.createElementVNode("span",{class:"nm-radio__circle","aria-hidden":"true"},[e.createElementVNode("span",{class:"nm-radio__dot"})],-1))]),n.label||p.$slots.default?(e.openBlock(),e.createElementBlock("span",rs,[e.renderSlot(p.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)],!0)])):e.createCommentVNode("",!0)],14,os)}}}),[["__scopeId","data-v-11a7a3f5"]]),ss=["aria-orientation"],Ut=R(e.defineComponent({__name:"NeumorphismRadioGroup",props:{modelValue:{},disabled:{type:Boolean,default:!1},size:{default:"medium"},name:{},direction:{default:"horizontal"}},emits:["update:modelValue","change"],setup(n,{emit:l}){const t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var k;return a(t.size,(k=o.value.radioGroup)==null?void 0:k.size,"medium")}),s=e.computed(()=>{var k;return a(t.direction,(k=o.value.radioGroup)==null?void 0:k.direction,"horizontal")}),c=l,u=e.computed(()=>t.name||Y("nm-radio-group"));function i(k){c("update:modelValue",k),c("change",k)}e.provide(Be,{modelValue:e.toRef(t,"modelValue"),name:u,disabled:e.toRef(t,"disabled"),size:e.computed(()=>r.value),setValue:i});const d=e.computed(()=>["nm-radio-group",`nm-radio-group--${s.value}`]);return(k,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.value),role:"radiogroup","aria-orientation":n.direction},[e.renderSlot(k.$slots,"default",{},void 0,!0)],10,ss))}}),[["__scopeId","data-v-bea83e43"]]);function ee(n,l,t){return Math.min(Math.max(n,l),t)}function Wt(n,l,t){return t<=0?n:Math.round((n-l)/t)*t+l}function is(n,l,t,o,a,r,s){if(t<=0)return o;let c=(n-l)/t;s&&(c=1-c),c=ee(c,0,1);const u=o+c*(a-o);return Wt(u,o,r)}function Ht(n){const{modelValue:l,min:t,max:o,step:a,disabled:r,vertical:s}=n,c=e.ref(!1),u=e.computed(()=>ee(l.value,t,o)),i=e.computed(()=>{const b=o-t;return b===0?0:(u.value-t)/b*100});function d(b){if(r!=null&&r.value)return;const w=ee(b,t,o),g=Wt(w,t,a);l.value=g}function k(b){if(r!=null&&r.value)return;const w=(s==null?void 0:s.value)??!1;let g=!0;const f=u.value;switch(b.key){case"ArrowRight":case"ArrowUp":{const p=(w&&b.key==="ArrowUp",a),m=ee(f+p,t,o);d(m);break}case"ArrowLeft":case"ArrowDown":{const m=ee(f-a,t,o);d(m);break}case"Home":{d(t);break}case"End":{d(o);break}case"PageUp":{const p=Math.max(a*10,(o-t)/10);d(ee(f+p,t,o));break}case"PageDown":{const p=Math.max(a*10,(o-t)/10);d(ee(f-p,t,o));break}default:{g=!1;break}}g&&b.preventDefault()}return{sliderValue:u,percentage:i,setValue:d,handleKeydown:k,isDragging:c}}const cs=["tabindex","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-disabled","aria-orientation"],ds={key:0,class:"nm-slider__tooltip","aria-hidden":"true"},qt=R(e.defineComponent({__name:"NeumorphismSlider",props:{modelValue:{default:0},min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},showStops:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},size:{default:"medium"}},emits:["update:modelValue","change"],setup(n,{emit:l}){const t=n,{config:o,resolveProp:a}=O(),r=e.computed(()=>{var z;return a(t.size,(z=o.value.slider)==null?void 0:z.size,"medium")}),s=e.computed(()=>{var z;return a(t.showTooltip,(z=o.value.slider)==null?void 0:z.showTooltip,!0)}),c=e.computed(()=>{var z;return a(t.showStops,(z=o.value.slider)==null?void 0:z.showStops,!1)}),u=l,i=e.computed(()=>t.disabled),d=e.computed(()=>t.vertical),{sliderValue:k,percentage:b,setValue:w,handleKeydown:g,isDragging:f}=Ht({modelValue:e.computed({get:()=>t.modelValue,set:z=>{u("update:modelValue",z),u("change",z)}}),min:t.min,max:t.max,step:t.step,disabled:i,vertical:d}),p=e.ref(null),m=e.ref(!1);function _(){var z;return((z=p.value)==null?void 0:z.getBoundingClientRect())??null}function y(z,N){const x=_();if(!x)return;const F=t.vertical?N:z,K=t.vertical?x.top:x.left,v=t.vertical?x.height:x.width,C=is(F,K,v,t.min,t.max,t.step,t.vertical);w(C)}function B(z){if(t.disabled)return;m.value=!0,f.value=!0,z.currentTarget.setPointerCapture(z.pointerId),y(z.clientX,z.clientY)}function $(z){m.value&&y(z.clientX,z.clientY)}function E(z){if(!m.value)return;m.value=!1,f.value=!1,z.currentTarget.releasePointerCapture(z.pointerId)}const V=e.computed(()=>{if(!c.value)return[];const z=[],N=t.max-t.min;if(N<=0)return z;for(let x=t.min;x<=t.max;x+=t.step)z.push({value:x,percentage:(x-t.min)/N*100});return z}),S=e.computed(()=>`${k.value}`),D=e.computed(()=>["nm-slider",`nm-slider--${r.value}`,{"nm-slider--disabled":t.disabled,"nm-slider--vertical":t.vertical,"nm-slider--dragging":m.value,"nm-slider--show-tooltip":s.value&&m.value}]);return(z,N)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(D.value),role:"group","aria-label":"Slider"},[e.createElementVNode("div",{ref_key:"railRef",ref:p,class:"nm-slider__rail",onPointerdown:B,onPointermove:$,onPointerup:E,onPointercancel:E},[e.createElementVNode("div",{class:"nm-slider__track",style:e.normalizeStyle({[n.vertical?"height":"width"]:`${e.unref(b)}%`}),"aria-hidden":"true"},null,4),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,x=>(e.openBlock(),e.createElementBlock("span",{key:x.value,class:e.normalizeClass(["nm-slider__stop",{"nm-slider__stop--active":x.value<=e.unref(k)}]),style:e.normalizeStyle({[n.vertical?"top":"left"]:`${x.percentage}%`}),"aria-hidden":"true"},null,6))),128)),e.createElementVNode("div",{class:"nm-slider__thumb-wrapper",style:e.normalizeStyle({[n.vertical?"top":"left"]:`${e.unref(b)}%`})},[e.createElementVNode("div",{class:"nm-slider__thumb",role:"slider",tabindex:n.disabled?-1:0,"aria-valuemin":n.min,"aria-valuemax":n.max,"aria-valuenow":e.unref(k),"aria-valuetext":S.value,"aria-disabled":n.disabled||void 0,"aria-orientation":n.vertical?"vertical":"horizontal",onKeydown:N[0]||(N[0]=(...x)=>e.unref(g)&&e.unref(g)(...x)),onPointerdown:e.withModifiers(B,["stop"])},null,40,cs),e.createVNode(e.Transition,{name:"nm-slider-tooltip"},{default:e.withCtx(()=>[s.value&&m.value?(e.openBlock(),e.createElementBlock("span",ds,e.toDisplayString(e.unref(k)),1)):e.createCommentVNode("",!0)]),_:1})],4)],544)],2))}}),[["__scopeId","data-v-cb4ce4a0"]]);function $e(n,l,t){return Math.min(Math.max(n,l),t)}function Yt(n,l){const t=Math.pow(10,l);return Math.round(n*t)/t}function ms(n){if(!Number.isFinite(n)||n<=0)return 0;const l=String(n),t=l.indexOf(".");return t===-1?0:l.length-t-1}function ue(n,l){return n==null||!Number.isFinite(n)?"":Yt(n,l).toFixed(l)}function Gt(n){const l=n.trim();if(l===""||l==="-"||l==="+")return;const t=Number(l);return Number.isFinite(t)?t:void 0}function Zt(n){const{modelValue:l,min:t=-1/0,max:o=1/0,step:a=1,precision:r,disabled:s}=n,c=e.computed(()=>r!==void 0?r:ms(a)),u=e.ref(ue(l.value,c.value)),i=e.computed(()=>u.value);e.watch(l,m=>{const _=ue(m,c.value);Gt(u.value)!==m&&(u.value=_)});function d(m){if(a<=0)return m;const _=c.value,y=Math.round((m-t)/a)*a+t;return Yt(y,_)}function k(m){if(s!=null&&s.value)return;const _=$e(m,t,o),y=d(_);l.value=y,u.value=ue(y,c.value)}function b(){const m=l.value??t,_=$e(m+a,t,o);k(d(_))}function w(){const m=l.value??o,_=$e(m-a,t,o);k(d(_))}function g(m){if(!(s!=null&&s.value))switch(m.key){case"ArrowUp":{m.preventDefault(),b();break}case"ArrowDown":{m.preventDefault(),w();break}case"Enter":{m.preventDefault(),p();break}}}function f(m){if(s!=null&&s.value)return;const _=m.target;u.value=_.value}function p(){if(s!=null&&s.value)return;const m=Gt(u.value);if(m===void 0){const _=l.value??t;u.value=ue(_,c.value);return}k(m)}return{displayValue:i,increment:b,decrement:w,setValue:k,handleInput:f,handleKeydown:g,handleBlur:p}}const us={class:"nm-input-number__body"},fs=["disabled"],ps={class:"nm-input-number__input-wrapper"},hs=["value","placeholder","disabled","aria-disabled"],ks=["disabled"],Jt=R(e.defineComponent({inheritAttrs:!1,__name:"NeumorphismInputNumber",props:{modelValue:{default:void 0},min:{default:void 0},max:{default:void 0},step:{default:1},precision:{default:void 0},disabled:{type:Boolean,default:!1},size:{default:"medium"},placeholder:{default:""},controls:{type:Boolean,default:!0},label:{default:void 0}},emits:["update:modelValue","change","focus","blur"],setup(n,{emit:l}){const t=n,o=l,{config:a,resolveProp:r}=O(),s=e.computed(()=>{var _;return r(t.size,(_=a.value.input)==null?void 0:_.size,"medium")}),c=e.computed(()=>t.disabled),u=e.computed({get:()=>t.modelValue,set:_=>{o("update:modelValue",_),o("change",_)}}),{displayValue:i,increment:d,decrement:k,handleInput:b,handleKeydown:w,handleBlur:g}=Zt({modelValue:u,min:t.min,max:t.max,step:t.step,precision:t.precision,disabled:c}),f=e.computed(()=>["nm-input-number",`nm-input-number--${s.value}`,{"nm-input-number--disabled":t.disabled,"nm-input-number--has-controls":t.controls}]);function p(_){g(),o("blur",_)}function m(_){o("focus",_)}return(_,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(f.value)},[e.createVNode(X,{label:n.label,"for-id":void 0},null,8,["label"]),e.createElementVNode("div",us,[n.controls?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"nm-input-number__btn nm-input-number__btn--decrement",disabled:n.disabled,"aria-label":"Decrement",tabindex:"-1",onPointerdown:y[0]||(y[0]=e.withModifiers((...B)=>e.unref(k)&&e.unref(k)(...B),["prevent"])),onDblclick:y[1]||(y[1]=e.withModifiers(()=>{},["prevent"]))},[...y[6]||(y[6]=[e.createElementVNode("span",{class:"nm-input-number__btn-icon"},"−",-1)])],40,fs)):e.createCommentVNode("",!0),e.createElementVNode("div",ps,[e.createElementVNode("input",{type:"text",inputmode:"decimal",class:"nm-input-number__input",value:e.unref(i),placeholder:n.placeholder,disabled:n.disabled,"aria-disabled":n.disabled||void 0,onInput:y[2]||(y[2]=(...B)=>e.unref(b)&&e.unref(b)(...B)),onKeydown:y[3]||(y[3]=(...B)=>e.unref(w)&&e.unref(w)(...B)),onBlur:p,onFocus:m},null,40,hs)]),n.controls?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"nm-input-number__btn nm-input-number__btn--increment",disabled:n.disabled,"aria-label":"Increment",tabindex:"-1",onPointerdown:y[4]||(y[4]=e.withModifiers((...B)=>e.unref(d)&&e.unref(d)(...B),["prevent"])),onDblclick:y[5]||(y[5]=e.withModifiers(()=>{},["prevent"]))},[...y[7]||(y[7]=[e.createElementVNode("span",{class:"nm-input-number__btn-icon"},"+",-1)])],40,ks)):e.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-174aebb6"]]);function Xt(n){const{steps:l,current:t}=n,o=new Map,a=e.computed(()=>l.value[t.value]);function r(i){i<0||i>=l.value.length||i!==t.value&&(t.value=i)}async function s(i){t.value>=l.value.length-1||i&&!await i()||(t.value=t.value+1)}function c(){t.value<=0||(t.value=t.value-1)}function u(i,d){o.set(i,d)}return{currentStep:a,setCurrent:r,next:s,prev:c,setStepStatus:u}}const gs=["aria-current","disabled","onClick"],ys={key:0,class:"nm-steps__number"},bs={key:1,class:"nm-steps__icon nm-steps__icon--check",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},_s={key:2,class:"nm-steps__icon nm-steps__icon--error",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round"},ws={class:"nm-steps__content"},Bs={key:0,class:"nm-steps__description"},Qt=R(e.defineComponent({__name:"NeumorphismSteps",props:{steps:{default:()=>[]},current:{default:0},direction:{default:"horizontal"},size:{default:"medium"},center:{type:Boolean,default:!1}},emits:["update:current","change","stepClick"],setup(n,{emit:l}){const t=n,o=l,{config:a,resolveProp:r}=O(),s=e.computed(()=>{var p;return r(t.direction,(p=a.value.steps)==null?void 0:p.direction,"horizontal")}),c=e.computed(()=>{var p;return r(t.size,(p=a.value.steps)==null?void 0:p.size,"medium")}),u=e.computed(()=>{var p;return r(t.center,(p=a.value.steps)==null?void 0:p.center,!1)}),i=e.computed({get:()=>t.current,set:p=>{o("update:current",p),o("change",p)}}),{setCurrent:d}=Xt({steps:e.computed(()=>t.steps),current:i});function k(p){const m=t.steps[p];return m?m.status?m.status:p<t.current?"finish":p===t.current?"process":"wait":"wait"}function b(p,m){d(p),o("stepClick",m)}const w=e.computed(()=>["nm-steps",`nm-steps--${s.value}`,`nm-steps--${c.value}`,{"nm-steps--center":u.value}]);function g(p){return k(p)==="finish"}function f(p){return k(p)==="error"}return(p,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(w.value),role:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.steps,(_,y)=>(e.openBlock(),e.createElementBlock("div",{key:_.key,class:e.normalizeClass(["nm-steps__item",{"nm-steps__item--active":y===n.current,"nm-steps__item--clickable":k(y)==="finish"||k(y)==="wait"}]),role:"listitem"},[e.createElementVNode("button",{class:e.normalizeClass(["nm-steps__circle",`nm-steps__circle--${k(y)}`]),type:"button","aria-current":y===n.current?"step":void 0,disabled:k(y)!=="finish"&&k(y)!=="wait"&&y!==n.current,onClick:B=>b(y,_)},[!g(y)&&!f(y)?(e.openBlock(),e.createElementBlock("span",ys,e.toDisplayString(y+1),1)):g(y)?(e.openBlock(),e.createElementBlock("svg",bs,[...m[0]||(m[0]=[e.createElementVNode("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):f(y)?(e.openBlock(),e.createElementBlock("svg",_s,[...m[1]||(m[1]=[e.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),e.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)])])):e.createCommentVNode("",!0)],10,gs),y<n.steps.length-1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nm-steps__connector",{"nm-steps__connector--finished":k(y)==="finish","nm-steps__connector--active":y===n.current}])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",ws,[e.createElementVNode("span",{class:e.normalizeClass(["nm-steps__title",{"nm-steps__title--active":y===n.current,"nm-steps__title--finished":k(y)==="finish","nm-steps__title--error":k(y)==="error"}])},e.toDisplayString(_.title),3),_.description?(e.openBlock(),e.createElementBlock("span",Bs,e.toDisplayString(_.description),1)):e.createCommentVNode("",!0)])],2))),128)),n.steps.length?e.createCommentVNode("",!0):e.renderSlot(p.$slots,"empty",{key:0},void 0,!0)],2))}}),[["__scopeId","data-v-239b1d7d"]]),Cs={formRequired:"必填字段",formMinLength:"最少 {min} 个字符",formMaxLength:"最多 {max} 个字符",formPattern:"格式不正确",formMin:"不能小于 {min}",formMax:"不能大于 {max}",formValidator:"验证失败"};function Es(n,l){return l?n.replace(/\{(\w+)\}/g,(t,o)=>String(l[o]??`{${o}}`)):n}function Ne(n,l,t){const o=(a,r)=>Es((t==null?void 0:t[a])??Cs[a],r);for(const a of l){if(a.required&&(n==null||n===""))return a.message||o("formRequired");if(!(n==null||n==="")){if(typeof n=="string"){if(a.minLength&&n.length<a.minLength)return a.message||o("formMinLength",{min:a.minLength});if(a.maxLength&&n.length>a.maxLength)return a.message||o("formMaxLength",{max:a.maxLength});if(a.pattern&&!a.pattern.test(n))return a.message||o("formPattern")}if(typeof n=="number"){if(a.min!==void 0&&n<a.min)return a.message||o("formMin",{min:a.min});if(a.max!==void 0&&n>a.max)return a.message||o("formMax",{max:a.max})}if(a.validator){const r=a.validator(n);if(typeof r=="string")return r;if(r===!1)return a.message||o("formValidator")}}}return""}const en=R(e.defineComponent({__name:"NeumorphismForm",props:{model:{default:()=>({})},rules:{default:()=>({})},labelWidth:{},size:{},direction:{default:"vertical"}},emits:["submit","validate"],setup(n,{expose:l,emit:t}){const o=n,a=t,r=e.reactive({}),s=new Map;function c(g){const f=o.rules[g];if(f){const m=o.model[g],_=Ne(m,f);if(_)return r[g]=_,!1}const p=s.get(g);if(p){if(!p(o.model[g]))return!1}else if(!f)return delete r[g],!0;return delete r[g],!0}function u(){let g=!0;const f=new Set([...Object.keys(o.rules),...s.keys()]);for(const p of f)c(p)||(g=!1);for(const p of Object.keys(r))f.has(p)||delete r[p];return a("validate",g),g}function i(g,f){s.set(g,f)}function d(g){s.delete(g),delete r[g]}function k(g){g.preventDefault(),u()&&a("submit",{...o.model})}function b(){Object.keys(r).forEach(g=>delete r[g])}e.provide(Ce,{get model(){return o.model},get rules(){return o.rules},errors:r,labelWidth:o.labelWidth,size:o.size,validateField:c,registerField:i,unregisterField:d}),e.onBeforeUnmount(()=>{s.clear()});const w=e.computed(()=>["nm-form",`nm-form--${o.direction}`]);return l({validateAll:u,validateField:c,clearErrors:b}),(g,f)=>(e.openBlock(),e.createElementBlock("form",{class:e.normalizeClass(w.value),novalidate:"",onSubmit:k},[e.renderSlot(g.$slots,"default",{errors:r,validateAll:u,clearErrors:b},void 0,!0)],34))}}),[["__scopeId","data-v-92a05290"]]),$s=["for"],Ns={key:0,class:"nm-form-item__required"},Vs={class:"nm-form-item__content"},xs={key:1,class:"nm-form-item__error",role:"alert"},tn=R(e.defineComponent({__name:"NeumorphismFormItem",props:{label:{},required:{type:Boolean},error:{},rules:{default:()=>[]},name:{}},setup(n,{expose:l}){const t=n,o=e.inject(Ce,null),a=e.ref(""),r=e.computed(()=>t.name?o==null?void 0:o.errors[t.name]:void 0),s=e.computed(()=>t.error||r.value||a.value),c=e.computed(()=>t.name?`nm-field-${t.name}`:Y("nm-field"));function u(d){const k=t.rules;if(!k.length)return!0;const b=Ne(d,k);return b?(a.value=b,!1):(a.value="",!0)}function i(){a.value=""}return e.onMounted(()=>{t.name&&o&&o.registerField(t.name,u)}),e.watch(()=>t.name,(d,k)=>{k&&o&&o.unregisterField(k),d&&o&&o.registerField(d,u)},{immediate:!0}),e.onBeforeUnmount(()=>{t.name&&o&&o.unregisterField(t.name)}),l({validate:u,clearError:i,fieldId:c}),(d,k)=>{var b;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["nm-form-item",{"nm-form-item--error":!!s.value}])},[n.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:n.name?c.value:void 0,class:"nm-form-item__label",style:e.normalizeStyle((b=e.unref(o))!=null&&b.labelWidth?{width:e.unref(o).labelWidth}:void 0)},[e.createTextVNode(e.toDisplayString(n.label)+" ",1),n.required?(e.openBlock(),e.createElementBlock("span",Ns,"*")):e.createCommentVNode("",!0)],12,$s)):e.createCommentVNode("",!0),e.createElementVNode("div",Vs,[e.renderSlot(d.$slots,"default",{error:s.value,validate:u,fieldId:c.value},void 0,!0)]),s.value?(e.openBlock(),e.createElementBlock("div",xs,e.toDisplayString(s.value),1)):e.createCommentVNode("",!0)],2)}}}),[["__scopeId","data-v-90b791e9"]]);function nn(n={}){const{accept:l,maxSize:t,maxCount:o,multiple:a,autoUpload:r,onExceed:s,onSizeExceed:c,onTypeError:u,uploadFn:i}=n,d=e.ref([]),k=e.ref(!1),b=e.ref(null);let w=0;function g(N,x){return x.split(",").map(K=>K.trim()).filter(Boolean).some(K=>{if(K.endsWith("/*")){const v=K.slice(0,-1);return N.startsWith(v)}return K.startsWith(".")?N.endsWith(K)||N===K.toLowerCase():N===K})}function f(N){try{return URL.createObjectURL(N)}catch{return""}}function p(N){if(N)try{URL.revokeObjectURL(N)}catch{}}function m(N){var x;if(t!=null&&t.value&&N.size>t.value)return c==null||c(N),"sizeExceed";if(l!=null&&l.value&&N.type&&!g(N.type,l.value)){const F=`.${(x=N.name.split(".").pop())==null?void 0:x.toLowerCase()}`;if(!g(F,l.value))return u==null||u(N),"typeError"}return null}function _(N){const x=N.type.startsWith("image/")?f(N):void 0;return{id:Y("upload_"),name:N.name,size:N.size,type:N.type,status:"pending",progress:0,url:x,raw:N}}function y(N){const x=Array.from(N),F=(a==null?void 0:a.value)??!1,K=o==null?void 0:o.value;if(K!==void 0){const C=d.value.length+x.length;if(C>K){s==null||s(C-K);const h=K-d.value.length;if(h<=0)return;x.splice(h)}}F||$();const v=[];for(const C of x){const h=m(C);if(h){const L={id:Y("upload_"),name:C.name,size:C.size,type:C.type,status:"error",progress:0,error:h==="sizeExceed"?"sizeExceed":"typeError"};v.push(L)}else v.push(_(C))}d.value=[...d.value,...v],r!=null&&r.value&&v.some(C=>C.status==="pending")&&E()}function B(N){const x=d.value.findIndex(K=>K.id===N);if(x===-1)return;const F=d.value[x];p(F.url),d.value=d.value.filter(K=>K.id!==N)}function $(){for(const N of d.value)p(N.url);d.value=[]}async function E(){const N=d.value.filter(x=>x.status==="pending");for(const x of N)x.status="uploading",x.progress=0;if(i){await Promise.allSettled(N.map(async x=>{try{await i(x),x.status="done",x.progress=100}catch(F){x.status="error",x.error=F instanceof Error?F.message:"uploadFail"}}));return}await Promise.allSettled(N.map(x=>new Promise(F=>{const K=setInterval(()=>{if(x.status!=="uploading"){clearInterval(K);return}x.progress=Math.min(100,x.progress+15+Math.random()*10),x.progress>=100&&(clearInterval(K),x.status="done",F())},300)})))}function V(N){N.preventDefault(),N.stopPropagation(),(N.type==="dragover"||N.type==="dragenter")&&(w++,k.value=!0)}function S(N){N.preventDefault(),N.stopPropagation(),w=Math.max(0,w-1),w===0&&(k.value=!1)}function D(N){N.preventDefault(),N.stopPropagation(),k.value=!1,w=0;const x=N.dataTransfer;x!=null&&x.files&&x.files.length>0&&y(x.files)}function z(N){const x=N.target;x!=null&&x.files&&x.files.length>0&&(y(x.files),x.value="")}return e.onBeforeUnmount(()=>{for(const N of d.value)p(N.url)}),{files:d,dragOver:k,addFiles:y,removeFile:B,clearFiles:$,upload:E,fileInputRef:b,handleDrag:V,handleDragLeave:S,handleDrop:D,handleFileInput:z}}const Ss=["accept","multiple","disabled"],zs=["tabindex","aria-disabled","aria-label","onKeydown"],Ts={class:"nm-upload__trigger-content"},Ls={key:0,class:"nm-upload__trigger-icon nm-upload__trigger-icon--drop",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},Ms={key:1,class:"nm-upload__trigger-icon",width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},Ds={class:"nm-upload__trigger-text"},vs=["tabindex","aria-disabled","aria-label","onKeydown"],Ps={class:"nm-upload__item-icon","aria-hidden":"true"},Is={key:0,class:"nm-upload__spinner",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Ks={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Fs={key:2,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},As={key:3,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Rs=["onClick"],Os={key:1,class:"nm-upload__item-name"},js={class:"nm-upload__item-size"},Us={key:2,class:"nm-upload__item-error"},Ws={key:3,class:"nm-upload__progress"},Hs=["aria-valuenow","aria-label"],qs=["aria-label","onClick"],Ys=["onMouseenter"],Gs=["aria-label","onClick"],Zs=["src","alt"],Js={key:0,class:"nm-upload__item-overlay"},Xs={class:"nm-upload__item-info"},Qs=["onClick"],ei={class:"nm-upload__item-size"},ti=["aria-label","onClick"],ni=["onClick"],oi=["src","alt"],li={key:0,class:"nm-upload__card-progress"},ai=["aria-valuenow"],ri={class:"nm-upload__card-actions"},si=["aria-label","onClick"],ii=["aria-label","onClick"],ci={class:"nm-upload__card-name"},on=R(e.defineComponent({__name:"NeumorphismUpload",props:{modelValue:{default:()=>[]},accept:{default:void 0},maxSize:{default:void 0},maxCount:{default:void 0},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},drag:{type:Boolean,default:!0},listType:{default:"text"},showUploadList:{type:Boolean,default:!0},size:{default:"medium"},autoUpload:{type:Boolean,default:!1},triggerText:{default:""},dropText:{default:""},removeLabel:{default:""},previewLabel:{default:""}},emits:["update:modelValue","change","preview","remove","exceed"],setup(n,{emit:l}){const t=n,o=l,{config:a,resolveProp:r}=O(),{t:s}=H(),c=e.computed(()=>{var I;return r(t.size,(I=a.value.upload)==null?void 0:I.size,"medium")}),u=e.computed(()=>{var I;return r(t.drag,(I=a.value.upload)==null?void 0:I.drag,!0)}),i=e.computed(()=>{var I;return r(t.showUploadList,(I=a.value.upload)==null?void 0:I.showUploadList,!0)}),d=e.computed(()=>{var I;return r(t.listType,(I=a.value.upload)==null?void 0:I.listType,"text")}),k=e.computed(()=>{var I;return r(t.autoUpload,(I=a.value.upload)==null?void 0:I.autoUpload,!1)}),b=e.computed(()=>t.triggerText||s("uploadSelectFile")),w=e.computed(()=>t.dropText||s("uploadDropFile")),g=e.computed(()=>t.removeLabel||s("uploadRemove")),f=e.computed(()=>t.accept),p=e.computed(()=>t.maxSize),m=e.computed(()=>t.maxCount),_=e.computed(()=>t.multiple),y=e.computed(()=>k.value),{files:B,dragOver:$,removeFile:E,fileInputRef:V,handleDrag:S,handleDragLeave:D,handleDrop:z,handleFileInput:N}=nn({accept:f,maxSize:p,maxCount:m,multiple:_,autoUpload:y,onExceed:I=>o("exceed",I)}),x=e.ref(null);e.onMounted(()=>{t.modelValue&&t.modelValue.length>0&&(B.value=[...t.modelValue])}),e.watch(()=>B.value,I=>{o("update:modelValue",[...I]),o("change",[...I])},{deep:!0});let F=!0;e.watch(()=>t.modelValue,I=>{var P;if(!F){F=!0;return}const A=(I||[]).map(j=>j.id).sort().join(","),T=B.value.map(j=>j.id).sort().join(",");if(A!==T){F=!1;for(const j of B.value)if((P=j.url)!=null&&P.startsWith("blob:"))try{URL.revokeObjectURL(j.url)}catch{}B.value=I?[...I]:[]}},{immediate:!0,deep:!0});function K(I){o("remove",I),E(I.id)}function v(I){o("preview",I)}function C(){var I;t.disabled||($.value=!1,(I=V.value)==null||I.click())}const h=e.computed(()=>["nm-upload",`nm-upload--${c.value}`,`nm-upload--list-${d.value}`,{"nm-upload--disabled":t.disabled,"nm-upload--drag":u.value,"nm-upload--dragover":$.value}]);function L(I){return I<1024?`${I} B`:I<1024*1024?`${(I/1024).toFixed(1)} KB`:`${(I/(1024*1024)).toFixed(1)} MB`}return(I,A)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(h.value),role:"group","aria-label":"file upload"},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:V,type:"file",accept:n.accept,multiple:n.multiple,disabled:n.disabled,class:"nm-upload__input",tabindex:"-1","aria-hidden":"true",onChange:A[0]||(A[0]=(...T)=>e.unref(N)&&e.unref(N)(...T))},null,40,Ss),u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nm-upload__trigger",{"nm-upload__trigger--dragover":e.unref($),"nm-upload__trigger--disabled":n.disabled}]),role:"button",tabindex:n.disabled?-1:0,"aria-disabled":n.disabled,"aria-label":e.unref($)?w.value:b.value,onClick:C,onDragover:A[1]||(A[1]=(...T)=>e.unref(S)&&e.unref(S)(...T)),onDragenter:A[2]||(A[2]=(...T)=>e.unref(S)&&e.unref(S)(...T)),onDragleave:A[3]||(A[3]=(...T)=>e.unref(D)&&e.unref(D)(...T)),onDrop:A[4]||(A[4]=(...T)=>e.unref(z)&&e.unref(z)(...T)),onKeydown:[e.withKeys(e.withModifiers(C,["prevent"]),["enter"]),e.withKeys(e.withModifiers(C,["prevent"]),["space"])]},[e.renderSlot(I.$slots,"trigger",{dragOver:e.unref($),disabled:n.disabled},()=>[e.createElementVNode("div",Ts,[e.unref($)?(e.openBlock(),e.createElementBlock("svg",Ls,[...A[6]||(A[6]=[e.createElementVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},null,-1),e.createElementVNode("polyline",{points:"17,8 12,3 7,8"},null,-1),e.createElementVNode("line",{x1:"12",y1:"3",x2:"12",y2:"15"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Ms,[...A[7]||(A[7]=[e.createElementVNode("line",{x1:"12",y1:"5",x2:"12",y2:"19"},null,-1),e.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1)])])),e.createElementVNode("span",Ds,e.toDisplayString(e.unref($)?w.value:b.value),1)])],!0)],42,zs)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["nm-upload__button",{"nm-upload__button--disabled":n.disabled}]),role:"button",tabindex:n.disabled?-1:0,"aria-disabled":n.disabled,"aria-label":b.value,onClick:C,onKeydown:[e.withKeys(e.withModifiers(C,["prevent"]),["enter"]),e.withKeys(e.withModifiers(C,["prevent"]),["space"])]},[e.renderSlot(I.$slots,"trigger",{dragOver:!1,disabled:n.disabled},()=>[A[8]||(A[8]=e.createElementVNode("svg",{class:"nm-upload__trigger-icon",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),e.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)),e.createElementVNode("span",null,e.toDisplayString(b.value),1)],!0)],42,vs)),i.value&&e.unref(B).length>0?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:2,name:"nm-upload-item",tag:"div",class:e.normalizeClass(["nm-upload__list",`nm-upload__list--${d.value}`]),role:"list","aria-label":"uploaded files"},{default:e.withCtx(()=>[d.value==="text"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(B),T=>(e.openBlock(),e.createElementBlock("div",{key:T.id,class:e.normalizeClass(["nm-upload__item",`nm-upload__item--${T.status}`]),role:"listitem"},[e.createElementVNode("span",Ps,[T.status==="uploading"?(e.openBlock(),e.createElementBlock("svg",Is,[...A[9]||(A[9]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10","stroke-opacity":"0.25"},null,-1),e.createElementVNode("path",{d:"M12 2a10 10 0 0 1 10 10","stroke-linecap":"round"},null,-1)])])):T.status==="done"?(e.openBlock(),e.createElementBlock("svg",Ks,[...A[10]||(A[10]=[e.createElementVNode("polyline",{points:"20,6 9,17 4,12"},null,-1)])])):T.status==="error"?(e.openBlock(),e.createElementBlock("svg",Fs,[...A[11]||(A[11]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("line",{x1:"15",y1:"9",x2:"9",y2:"15"},null,-1),e.createElementVNode("line",{x1:"9",y1:"9",x2:"15",y2:"15"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",As,[...A[12]||(A[12]=[e.createElementVNode("path",{d:"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"},null,-1),e.createElementVNode("polyline",{points:"13,2 13,9 20,9"},null,-1)])]))]),T.url?(e.openBlock(),e.createElementBlock("a",{key:0,class:"nm-upload__item-name nm-upload__item-name--link",href:"#",onClick:e.withModifiers(P=>v(T),["prevent"])},e.toDisplayString(T.name),9,Rs)):(e.openBlock(),e.createElementBlock("span",Os,e.toDisplayString(T.name),1)),e.createElementVNode("span",js,e.toDisplayString(L(T.size)),1),T.error?(e.openBlock(),e.createElementBlock("span",Us,e.toDisplayString(T.error),1)):e.createCommentVNode("",!0),T.status==="uploading"?(e.openBlock(),e.createElementBlock("div",Ws,[e.createElementVNode("div",{class:"nm-upload__progress-bar",style:e.normalizeStyle({width:`${T.progress}%`}),role:"progressbar","aria-valuenow":Math.round(T.progress),"aria-valuemin":"0","aria-valuemax":"100","aria-label":`${T.name} ${Math.round(T.progress)}%`},null,12,Hs)])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"nm-upload__remove",type:"button","aria-label":`${g.value} ${T.name}`,onClick:P=>K(T)},[...A[13]||(A[13]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])],8,qs)],2))),128)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(B),T=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:T.id},[d.value==="picture"&&T.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nm-upload__item nm-upload__item--picture",`nm-upload__item--${T.status}`]),role:"listitem",onMouseenter:P=>x.value=T.id,onMouseleave:A[5]||(A[5]=P=>x.value=null)},[e.createElementVNode("button",{class:"nm-upload__item-thumb",type:"button","aria-label":`${t.previewLabel||e.unref(s)("uploadPreview")} ${T.name}`,onClick:P=>v(T)},[e.createElementVNode("img",{src:T.url,alt:T.name,class:"nm-upload__item-img"},null,8,Zs),x.value===T.id?(e.openBlock(),e.createElementBlock("span",Js,[...A[14]||(A[14]=[e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),e.createElementVNode("circle",{cx:"12",cy:"12",r:"3"})],-1)])])):e.createCommentVNode("",!0)],8,Gs),e.createElementVNode("div",Xs,[e.createElementVNode("a",{class:"nm-upload__item-name nm-upload__item-name--link",href:"#",onClick:e.withModifiers(P=>v(T),["prevent"])},e.toDisplayString(T.name),9,Qs),e.createElementVNode("span",ei,e.toDisplayString(L(T.size)),1)]),e.createElementVNode("button",{class:"nm-upload__remove",type:"button","aria-label":`${g.value} ${T.name}`,onClick:P=>K(T)},[...A[15]||(A[15]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])],8,ti)],42,Ys)):e.createCommentVNode("",!0)],64))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(B),T=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`card-${T.id}`},[d.value==="picture-card"&&T.url?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["nm-upload__item nm-upload__item--card",`nm-upload__item--${T.status}`]),role:"listitem"},[e.createElementVNode("div",{class:"nm-upload__card-inner",onClick:P=>v(T)},[e.createElementVNode("img",{src:T.url,alt:T.name,class:"nm-upload__card-img"},null,8,oi),T.status==="uploading"?(e.openBlock(),e.createElementBlock("div",li,[e.createElementVNode("div",{class:"nm-upload__progress-bar",style:e.normalizeStyle({width:`${T.progress}%`}),role:"progressbar","aria-valuenow":Math.round(T.progress),"aria-valuemin":"0","aria-valuemax":"100"},null,12,ai)])):e.createCommentVNode("",!0),e.createElementVNode("div",ri,[e.createElementVNode("button",{type:"button",class:"nm-upload__card-preview","aria-label":`${t.previewLabel||e.unref(s)("uploadPreview")} ${T.name}`,onClick:e.withModifiers(P=>v(T),["stop"])},[...A[16]||(A[16]=[e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[e.createElementVNode("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),e.createElementVNode("circle",{cx:"12",cy:"12",r:"3"})],-1)])],8,si),e.createElementVNode("button",{type:"button",class:"nm-upload__card-remove","aria-label":`${g.value} ${T.name}`,onClick:e.withModifiers(P=>K(T),["stop"])},[...A[17]||(A[17]=[e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("polyline",{points:"3,6 5,6 21,6"}),e.createElementVNode("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})],-1)])],8,ii)])],8,ni),e.createElementVNode("span",ci,e.toDisplayString(T.name),1)],2)):e.createCommentVNode("",!0)],64))),128))]),_:1},8,["class"])):e.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-dfeafb5a"]]);class di{constructor(l){rn(this,"_map",new Map);if(l)for(const[t,o]of l)this._map.set(t,o)}register(l,t){return this._map.set(l,t),this}get(l){return this._map.get(l)}has(l){return this._map.has(l)}remove(l){return this._map.delete(l)}get size(){return this._map.size}entries(){return this._map.entries()}names(){return this._map.keys()}install(l,t=""){for(const[o,a]of this._map)l.component(`${t}${o}`,a);return this}}const ln={NeumorphismButton:xe,NeumorphismSwitch:Se,NeumorphismCard:ze,NeumorphismInput:fe,ThemeProvider:ve,NeumorphismCheckbox:se,NeumorphismRadio:jt,NeumorphismRadioGroup:Ut,NeumorphismSelect:je,NeumorphismTextarea:Ue,NeumorphismForm:en,NeumorphismFormItem:tn,NeumorphismModal:Ye,NeumorphismToastProvider:Ze,NeumorphismTooltip:be,NeumorphismTabs:dt,NeumorphismBreadcrumb:mt,NeumorphismPagination:ft,NeumorphismAvatar:pt,NeumorphismBadge:ht,NeumorphismTag:kt,NeumorphismAlert:Qe,NeumorphismPopover:le,NeumorphismDropdown:et,NeumorphismEmpty:ot,NeumorphismProgress:gt,NeumorphismSkeleton:yt,NeumorphismTable:_t,NeumorphismDivider:xt,NeumorphismCollapse:zt,NeumorphismContainer:Tt,NeumorphismRow:Lt,NeumorphismCol:Mt,NeumorphismLayout:vt,NeumorphismThemeToggle:Pt,NeumorphismTree:Rt,NeumorphismTreeNode:me,NeumorphismCanvas:Ot,NeumorphismFieldLabel:X,NeumorphismFieldError:te,NeumorphismSlider:qt,NeumorphismInputNumber:Jt,NeumorphismDrawer:Vt,NeumorphismMenu:st,NeumorphismNavMenu:it,NeumorphismSteps:Qt,NeumorphismVirtualList:Bt,NeumorphismDatePicker:Re,NeumorphismList:Ct,NeumorphismUpload:on,NeumorphismAutoComplete:nt};function an(n,l){const t=l??{},o="config"in t||"components"in t||"prefix"in t,a=o?t.config:l,r=o?t.components??{}:{},s=o?t.prefix??"":"";a&&n.provide(Z,e.computed(()=>a));for(const[c,u]of Object.entries(ln))n.component(`${s}${c}`,r[c]??u);for(const[c,u]of Object.entries(r))c in ln||n.component(`${s}${c}`,u)}const mi={install:an,version:"__VERSION__"};M.ComponentRegistry=di,M.ConfigKey=Z,M.FormKey=Ce,M.LocaleKey=ge,M.NeumorphismAlert=Qe,M.NeumorphismAutoComplete=nt,M.NeumorphismAvatar=pt,M.NeumorphismBadge=ht,M.NeumorphismBreadcrumb=mt,M.NeumorphismButton=xe,M.NeumorphismCanvas=Ot,M.NeumorphismCard=ze,M.NeumorphismCheckbox=se,M.NeumorphismCol=Mt,M.NeumorphismCollapse=zt,M.NeumorphismContainer=Tt,M.NeumorphismDatePicker=Re,M.NeumorphismDivider=xt,M.NeumorphismDrawer=Vt,M.NeumorphismDropdown=et,M.NeumorphismEmpty=ot,M.NeumorphismFieldError=te,M.NeumorphismFieldLabel=X,M.NeumorphismForm=en,M.NeumorphismFormItem=tn,M.NeumorphismInput=fe,M.NeumorphismInputNumber=Jt,M.NeumorphismLayout=vt,M.NeumorphismList=Ct,M.NeumorphismMenu=st,M.NeumorphismModal=Ye,M.NeumorphismNavMenu=it,M.NeumorphismPagination=ft,M.NeumorphismPopover=le,M.NeumorphismProgress=gt,M.NeumorphismRadio=jt,M.NeumorphismRadioGroup=Ut,M.NeumorphismRow=Lt,M.NeumorphismSelect=je,M.NeumorphismSkeleton=yt,M.NeumorphismSlider=qt,M.NeumorphismSteps=Qt,M.NeumorphismSwitch=Se,M.NeumorphismTable=_t,M.NeumorphismTabs=dt,M.NeumorphismTag=kt,M.NeumorphismTextarea=Ue,M.NeumorphismThemeToggle=Pt,M.NeumorphismToastProvider=Ze,M.NeumorphismTooltip=be,M.NeumorphismTree=Rt,M.NeumorphismTreeNode=me,M.NeumorphismUpload=on,M.NeumorphismVirtualList=Bt,M.RadioGroupKey=Be,M.RowGutterKey=Ee,M.ThemeProvider=ve,M.createTheme=pe,M.debounce=_n,M.default=mi,M.enUS=Ke,M.generateId=Y,M.getLocaleMessages=Wn,M.install=an,M.isEmpty=wn,M.provideLocale=Un,M.provideTheme=De,M.useAlert=Xe,M.useAutoComplete=tt,M.useCheckable=he,M.useCollapse=St,M.useConfig=J,M.useDatePicker=Ie,M.useDrawer=Nt,M.useFormField=oe,M.useLocale=H,M.useMenu=_e,M.useModal=qe,M.useNeumorphismSetup=O,M.useNumberInput=Zt,M.usePagination=ut,M.usePopover=Ae,M.useSelect=Oe,M.useSlider=Ht,M.useSteps=Xt,M.useTable=bt,M.useTabs=ct,M.useTheme=re,M.useToast=Ge,M.useTooltip=Je,M.useTouchDevice=Dt,M.useTree=At,M.useUpload=nn,M.useVirtualList=wt,M.validateFieldValue=Ne,M.zhCN=ke,Object.defineProperties(M,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generate a unique ID string
3
+ */
4
+ export declare function generateId(prefix?: string): string;
5
+ /**
6
+ * Debounce function with a cancel method
7
+ */
8
+ export declare function debounce<T extends (...args: unknown[]) => void>(fn: T, delay: number): ((...args: Parameters<T>) => void) & {
9
+ cancel: () => void;
10
+ };
11
+ /**
12
+ * Check if value is empty (null, undefined, empty string, empty array, empty object)
13
+ */
14
+ export declare function isEmpty(value: unknown): boolean;