vue-devui 1.6.32 → 1.6.34-alpha.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 (957) hide show
  1. package/auto-complete/index.es.js +132 -27
  2. package/auto-complete/index.umd.js +13 -13
  3. package/breadcrumb/index.es.js +1 -1
  4. package/breadcrumb/index.umd.js +1 -1
  5. package/button/style.css +1 -1
  6. package/carousel/style.css +1 -1
  7. package/category-search/index.es.js +1 -1
  8. package/category-search/index.umd.js +1 -1
  9. package/category-search/style.css +1 -1
  10. package/checkbox/index.es.js +1 -1
  11. package/checkbox/index.umd.js +1 -1
  12. package/code-review/index.es.js +1 -1
  13. package/code-review/index.umd.js +1 -1
  14. package/data-grid/index.es.js +132 -27
  15. package/data-grid/index.umd.js +19 -19
  16. package/data-grid/style.css +1 -1
  17. package/date-picker-pro/index.es.js +132 -27
  18. package/date-picker-pro/index.umd.js +17 -17
  19. package/date-picker-pro/style.css +1 -1
  20. package/dragdrop-new/index.es.js +13 -5
  21. package/dragdrop-new/index.umd.js +3 -3
  22. package/dropdown/index.es.js +1 -1
  23. package/dropdown/index.umd.js +1 -1
  24. package/editable-select/index.es.js +131 -26
  25. package/editable-select/index.umd.js +16 -16
  26. package/editor-md/index.es.js +7 -3
  27. package/editor-md/index.umd.js +17 -16
  28. package/form/index.es.js +1 -1
  29. package/form/index.umd.js +1 -1
  30. package/image-preview/style.css +1 -1
  31. package/input/index.es.js +137 -32
  32. package/input/index.umd.js +23 -23
  33. package/input-number/index.es.js +1 -1
  34. package/input-number/index.umd.js +1 -1
  35. package/locale/index.es.js +271 -0
  36. package/locale/index.umd.js +1 -0
  37. package/locale/package.json +8 -0
  38. package/mention/index.es.js +1 -1
  39. package/mention/index.umd.js +1 -1
  40. package/message/index.es.js +1 -1
  41. package/message/index.umd.js +1 -1
  42. package/nuxt/components/Checkbox.js +2 -2
  43. package/nuxt/components/Locale.js +2 -0
  44. package/package.json +1 -1
  45. package/pagination/index.es.js +132 -27
  46. package/pagination/index.umd.js +12 -12
  47. package/popover/index.es.js +1 -1
  48. package/popover/index.umd.js +1 -1
  49. package/radio/index.es.js +1 -1
  50. package/radio/index.umd.js +1 -1
  51. package/rate/style.css +1 -1
  52. package/search/index.es.js +137 -32
  53. package/search/index.umd.js +13 -13
  54. package/select/index.es.js +132 -27
  55. package/select/index.umd.js +22 -22
  56. package/splitter/index.es.js +137 -32
  57. package/splitter/index.umd.js +15 -15
  58. package/steps/style.css +1 -1
  59. package/style.css +2 -2
  60. package/switch/index.es.js +1 -1
  61. package/switch/index.umd.js +1 -1
  62. package/table/index.es.js +132 -27
  63. package/table/index.umd.js +11 -11
  64. package/table/style.css +1 -1
  65. package/tabs/style.css +1 -1
  66. package/textarea/index.es.js +1 -1
  67. package/textarea/index.umd.js +1 -1
  68. package/time-picker/index.es.js +132 -27
  69. package/time-picker/index.umd.js +16 -16
  70. package/time-picker/style.css +1 -1
  71. package/time-select/index.es.js +132 -27
  72. package/time-select/index.umd.js +19 -19
  73. package/tooltip/index.es.js +1 -1
  74. package/tooltip/index.umd.js +1 -1
  75. package/tree/index.es.js +398 -118
  76. package/tree/index.umd.js +31 -31
  77. package/types/accordion/index.d.ts +14 -14
  78. package/types/accordion/src/accordion-item-hreflink.d.ts +248 -248
  79. package/types/accordion/src/accordion-item-routerlink.d.ts +248 -248
  80. package/types/accordion/src/accordion-item.d.ts +248 -248
  81. package/types/accordion/src/accordion-list.d.ts +1221 -234
  82. package/types/accordion/src/accordion-menu.d.ts +250 -248
  83. package/types/accordion/src/accordion-types.d.ts +102 -102
  84. package/types/accordion/src/accordion.d.ts +78 -222
  85. package/types/accordion/src/accordion.type.d.ts +81 -81
  86. package/types/accordion/src/utils.d.ts +7 -7
  87. package/types/action-timeline/index.d.ts +11 -11
  88. package/types/action-timeline/src/action-timeline-types.d.ts +46 -46
  89. package/types/action-timeline/src/action-timeline.d.ts +3 -3
  90. package/types/alert/__tests__/alert.spec.d.ts +1 -1
  91. package/types/alert/index.d.ts +11 -11
  92. package/types/alert/src/alert-types.d.ts +29 -29
  93. package/types/alert/src/alert.d.ts +62 -62
  94. package/types/alert/src/components/alert-close-icon.d.ts +2 -2
  95. package/types/alert/src/components/alert-type-icon.d.ts +5 -5
  96. package/types/anchor/index.d.ts +11 -11
  97. package/types/anchor/src/anchor.d.ts +2 -8
  98. package/types/anchor/src/d-anchor-box.d.ts +5 -5
  99. package/types/anchor/src/d-anchor-link.d.ts +8 -8
  100. package/types/anchor/src/d-anchor.d.ts +8 -8
  101. package/types/anchor/src/utils.d.ts +4 -4
  102. package/types/auto-complete/__tests__/auto-complete.spec.d.ts +1 -1
  103. package/types/auto-complete/index.d.ts +11 -11
  104. package/types/auto-complete/src/auto-complete-types.d.ts +174 -174
  105. package/types/auto-complete/src/auto-complete.d.ts +3 -3
  106. package/types/auto-complete/src/components/dropdown.d.ts +2 -2
  107. package/types/auto-complete/src/composables/use-auto-complete-render.d.ts +4 -4
  108. package/types/auto-complete/src/composables/use-custom-template.d.ts +11 -11
  109. package/types/auto-complete/src/composables/use-input-handle.d.ts +3 -3
  110. package/types/auto-complete/src/composables/use-keyboard-select.d.ts +6 -6
  111. package/types/auto-complete/src/composables/use-lazy-handle.d.ts +7 -7
  112. package/types/auto-complete/src/composables/use-searchfn.d.ts +8 -8
  113. package/types/auto-complete/src/composables/use-select-handle.d.ts +6 -6
  114. package/types/auto-focus/index.d.ts +9 -9
  115. package/types/auto-focus/src/auto-focus-directive.d.ts +4 -4
  116. package/types/avatar/__tests__/avatar.spec.d.ts +1 -1
  117. package/types/avatar/index.d.ts +11 -11
  118. package/types/avatar/src/avatar-types.d.ts +36 -36
  119. package/types/avatar/src/avatar.d.ts +29 -71
  120. package/types/avatar/src/components/avatar-body-icon.d.ts +23 -23
  121. package/types/avatar/src/components/avatar-nobody-icon.d.ts +23 -23
  122. package/types/avatar/src/components/icon-body.d.ts +2 -2
  123. package/types/avatar/src/components/icon-nobody.d.ts +2 -2
  124. package/types/back-top/index.d.ts +10 -10
  125. package/types/back-top/src/back-top-types.d.ts +25 -25
  126. package/types/back-top/src/back-top.d.ts +18 -42
  127. package/types/back-top/src/hooks/index.d.ts +6 -6
  128. package/types/back-top/src/hooks/use-event-listener.d.ts +3 -3
  129. package/types/back-top/src/hooks/use-position.d.ts +2 -2
  130. package/types/back-top/src/hooks/use-target.d.ts +2 -2
  131. package/types/back-top/src/hooks/use-throttle.d.ts +1 -1
  132. package/types/back-top/src/hooks/use-visibility.d.ts +3 -3
  133. package/types/badge/__tests__/badge.spec.d.ts +1 -1
  134. package/types/badge/index.d.ts +11 -11
  135. package/types/badge/src/badge-types.d.ts +40 -40
  136. package/types/badge/src/badge.d.ts +29 -79
  137. package/types/breadcrumb/__tests__/breadcrumb.spec.d.ts +1 -1
  138. package/types/breadcrumb/index.d.ts +13 -13
  139. package/types/breadcrumb/src/breadcrumb-item-types.d.ts +43 -43
  140. package/types/breadcrumb/src/breadcrumb-item.d.ts +59 -48
  141. package/types/breadcrumb/src/breadcrumb-types.d.ts +32 -32
  142. package/types/breadcrumb/src/breadcrumb.d.ts +70 -22
  143. package/types/breadcrumb/src/utils.d.ts +1 -1
  144. package/types/button/__tests__/button-group.spec.d.ts +1 -1
  145. package/types/button/__tests__/button.spec.d.ts +1 -1
  146. package/types/button/index.d.ts +12 -12
  147. package/types/button/src/button-group.d.ts +9 -15
  148. package/types/button/src/button-types.d.ts +57 -57
  149. package/types/button/src/button.d.ts +3 -3
  150. package/types/button/src/use-button.d.ts +3 -3
  151. package/types/card/__tests__/card.spec.d.ts +1 -1
  152. package/types/card/index.d.ts +11 -11
  153. package/types/card/src/card-types.d.ts +16 -16
  154. package/types/card/src/card.d.ts +15 -33
  155. package/types/carousel/__tests__/carousel.spec.d.ts +1 -1
  156. package/types/carousel/index.d.ts +11 -11
  157. package/types/carousel/src/carousel.d.ts +37 -91
  158. package/types/carousel/src/item.d.ts +2 -2
  159. package/types/carousel/src/types.d.ts +43 -43
  160. package/types/cascader/__tests__/cascader.spec.d.ts +1 -1
  161. package/types/cascader/components/cascader-item/index.d.ts +3 -3
  162. package/types/cascader/components/cascader-list/index.d.ts +24 -60
  163. package/types/cascader/components/cascader-multiple/index.d.ts +4 -4
  164. package/types/cascader/components/cascader-tag/index.d.ts +12 -12
  165. package/types/cascader/hooks/use-cascader-class.d.ts +9 -9
  166. package/types/cascader/hooks/use-cascader-item.d.ts +3 -3
  167. package/types/cascader/hooks/use-cascader-multiple.d.ts +32 -32
  168. package/types/cascader/hooks/use-cascader-options.d.ts +5 -5
  169. package/types/cascader/hooks/use-cascader-popup.d.ts +6 -6
  170. package/types/cascader/hooks/use-cascader-single.d.ts +26 -26
  171. package/types/cascader/hooks/use-cascader-style.d.ts +6 -6
  172. package/types/cascader/hooks/use-cascader.d.ts +3 -3
  173. package/types/cascader/hooks/use-filter.d.ts +3 -3
  174. package/types/cascader/index.d.ts +10 -10
  175. package/types/cascader/src/cascader-types.d.ts +257 -257
  176. package/types/cascader/src/cascader.d.ts +3 -3
  177. package/types/category-search/index.d.ts +11 -11
  178. package/types/category-search/src/category-search-const.d.ts +6 -6
  179. package/types/category-search/src/category-search-types.d.ts +281 -281
  180. package/types/category-search/src/category-search.d.ts +3 -3
  181. package/types/category-search/src/components/category-search-clear.d.ts +8 -14
  182. package/types/category-search/src/components/category-search-input.d.ts +2 -2
  183. package/types/category-search/src/components/category-search-more.d.ts +8 -14
  184. package/types/category-search/src/components/category-search-save.d.ts +8 -14
  185. package/types/category-search/src/components/category-search-tag-dropdown.d.ts +12 -24
  186. package/types/category-search/src/components/category-search-tag.d.ts +11 -23
  187. package/types/category-search/src/components/checkbox-menu.d.ts +2 -2
  188. package/types/category-search/src/components/label-menu.d.ts +2 -2
  189. package/types/category-search/src/components/number-range-menu.d.ts +2 -2
  190. package/types/category-search/src/components/radio-menu.d.ts +8 -14
  191. package/types/category-search/src/components/text-input-menu.d.ts +2 -2
  192. package/types/category-search/src/composables/use-category-search-icons.d.ts +18 -18
  193. package/types/category-search/src/composables/use-category-search-input.d.ts +8 -8
  194. package/types/category-search/src/composables/use-category-search.d.ts +20 -20
  195. package/types/checkbox/__tests__/checkbox-button.spec.d.ts +1 -1
  196. package/types/checkbox/__tests__/checkbox-group.spec.d.ts +1 -1
  197. package/types/checkbox/__tests__/checkbox.spec.d.ts +1 -1
  198. package/types/checkbox/index.d.ts +13 -13
  199. package/types/checkbox/src/checkbox-button.d.ts +3 -3
  200. package/types/checkbox/src/checkbox-group.d.ts +3 -3
  201. package/types/checkbox/src/checkbox-types.d.ts +195 -195
  202. package/types/checkbox/src/checkbox.d.ts +3 -3
  203. package/types/checkbox/src/use-checkbox.d.ts +5 -5
  204. package/types/code-editor/index.d.ts +11 -11
  205. package/types/code-editor/src/code-editor-types.d.ts +82 -82
  206. package/types/code-editor/src/code-editor.d.ts +3 -3
  207. package/types/code-editor/src/code-highlight-directive.d.ts +5 -5
  208. package/types/code-editor/src/composables/use-code-editor.d.ts +5 -5
  209. package/types/code-review/index.d.ts +11 -11
  210. package/types/code-review/src/code-review-types.d.ts +83 -83
  211. package/types/code-review/src/code-review.d.ts +3 -3
  212. package/types/code-review/src/components/code-review-header.d.ts +2 -2
  213. package/types/code-review/src/composables/use-code-review-comment.d.ts +14 -14
  214. package/types/code-review/src/composables/use-code-review-expand.d.ts +6 -6
  215. package/types/code-review/src/composables/use-code-review-fold.d.ts +6 -6
  216. package/types/code-review/src/composables/use-code-review-header.d.ts +6 -6
  217. package/types/code-review/src/composables/use-code-review-line-selection.d.ts +20 -20
  218. package/types/code-review/src/composables/use-code-review.d.ts +9 -9
  219. package/types/code-review/src/const.d.ts +22 -22
  220. package/types/code-review/src/utils.d.ts +44 -44
  221. package/types/collapse/__tests__/collapse.spec.d.ts +1 -1
  222. package/types/collapse/index.d.ts +12 -12
  223. package/types/collapse/src/collapse-item.d.ts +34 -34
  224. package/types/collapse/src/collapse-open-icon.d.ts +2 -2
  225. package/types/collapse/src/collapse-types.d.ts +33 -33
  226. package/types/collapse/src/collapse.d.ts +30 -30
  227. package/types/collapse/src/const.d.ts +3 -3
  228. package/types/color-picker/index.d.ts +10 -10
  229. package/types/color-picker/src/color-picker-types.d.ts +26 -26
  230. package/types/color-picker/src/color-picker.d.ts +124 -56
  231. package/types/color-picker/src/components/color-alpha-slider/color-alpha-slider.d.ts +22 -50
  232. package/types/color-picker/src/components/color-alpha-slider/color-picker-alpha-slider-types.d.ts +24 -24
  233. package/types/color-picker/src/components/color-basic/color-basic-types.d.ts +8 -8
  234. package/types/color-picker/src/components/color-basic/color-basic.d.ts +8 -12
  235. package/types/color-picker/src/components/color-edit/color-edit.d.ts +17 -31
  236. package/types/color-picker/src/components/color-edit/color-picker-edit-types.d.ts +18 -18
  237. package/types/color-picker/src/components/color-history/color-history.d.ts +12 -14
  238. package/types/color-picker/src/components/color-history/color-picker-history-types.d.ts +8 -8
  239. package/types/color-picker/src/components/color-hue-slider/color-hue-slider.d.ts +18 -38
  240. package/types/color-picker/src/components/color-hue-slider/color-picker-hue-slider-types.d.ts +22 -22
  241. package/types/color-picker/src/components/color-palette/color-palette.d.ts +15 -27
  242. package/types/color-picker/src/components/color-palette/color-picker-palette-types.d.ts +13 -13
  243. package/types/color-picker/src/components/color-picker-panel/color-picker-panel-types.d.ts +18 -18
  244. package/types/color-picker/src/components/color-picker-panel/color-picker-panel.d.ts +100 -39
  245. package/types/color-picker/src/utils/color-utils-types.d.ts +61 -61
  246. package/types/color-picker/src/utils/color-utils.d.ts +39 -39
  247. package/types/color-picker/src/utils/color.d.ts +1 -1
  248. package/types/color-picker/src/utils/composable.d.ts +6 -6
  249. package/types/color-picker/src/utils/dom-dragger.d.ts +112 -112
  250. package/types/color-picker/src/utils/helpers.d.ts +10 -10
  251. package/types/comment/__tests__/comment.spec.d.ts +1 -1
  252. package/types/comment/index.d.ts +11 -11
  253. package/types/comment/src/comment-types.d.ts +16 -16
  254. package/types/comment/src/comment.d.ts +43 -33
  255. package/types/countdown/__tests__/countdown.spec.d.ts +1 -1
  256. package/types/countdown/index.d.ts +11 -11
  257. package/types/countdown/src/countdown-types.d.ts +33 -33
  258. package/types/countdown/src/countdown.d.ts +23 -53
  259. package/types/countdown/src/utils.d.ts +11 -11
  260. package/types/data-grid/index.d.ts +11 -11
  261. package/types/data-grid/src/components/fix-head-grid.d.ts +2 -2
  262. package/types/data-grid/src/components/grid-body.d.ts +27 -69
  263. package/types/data-grid/src/components/grid-head.d.ts +20 -50
  264. package/types/data-grid/src/components/grid-td.d.ts +20 -50
  265. package/types/data-grid/src/components/grid-th-filter.d.ts +2 -2
  266. package/types/data-grid/src/components/grid-th-multiple-filter.d.ts +2 -2
  267. package/types/data-grid/src/components/grid-th-single-filter.d.ts +2 -2
  268. package/types/data-grid/src/components/grid-th.d.ts +14 -32
  269. package/types/data-grid/src/components/normal-head-grid.d.ts +2 -2
  270. package/types/data-grid/src/composables/use-column-sort.d.ts +7 -7
  271. package/types/data-grid/src/composables/use-data-grid-drag.d.ts +5 -5
  272. package/types/data-grid/src/composables/use-data-grid-scroll.d.ts +160 -86
  273. package/types/data-grid/src/composables/use-data-grid-tree.d.ts +13 -13
  274. package/types/data-grid/src/composables/use-data-grid.d.ts +386 -210
  275. package/types/data-grid/src/composables/use-grid-th.d.ts +35 -31
  276. package/types/data-grid/src/composables/use-overflow-tooltip.d.ts +13 -13
  277. package/types/data-grid/src/const.d.ts +6 -6
  278. package/types/data-grid/src/data-grid-types.d.ts +334 -334
  279. package/types/data-grid/src/data-grid.d.ts +3 -3
  280. package/types/data-grid/src/utils.d.ts +7 -7
  281. package/types/date-picker/index.d.ts +15 -15
  282. package/types/date-picker/src/components/calendar/index.d.ts +4 -4
  283. package/types/date-picker/src/components/helper.d.ts +5 -5
  284. package/types/date-picker/src/components/panel/index.d.ts +4 -4
  285. package/types/date-picker/src/components/popup/index.d.ts +17 -37
  286. package/types/date-picker/src/components/timepicker/index.d.ts +7 -11
  287. package/types/date-picker/src/components/today-default/index.d.ts +6 -6
  288. package/types/date-picker/src/components/toolbar/index.d.ts +7 -7
  289. package/types/date-picker/src/components/toolbar/svg-icon.d.ts +3 -3
  290. package/types/date-picker/src/components/types.d.ts +63 -63
  291. package/types/date-picker/src/components/utils.d.ts +41 -41
  292. package/types/date-picker/src/components/vertical-slider/index.d.ts +21 -51
  293. package/types/date-picker/src/date-picker-types.d.ts +97 -97
  294. package/types/date-picker/src/date-picker.d.ts +29 -75
  295. package/types/date-picker/src/helper.d.ts +48 -48
  296. package/types/date-picker/src/stick-slider/index.d.ts +3 -9
  297. package/types/date-picker/src/utils.d.ts +27 -27
  298. package/types/date-picker-pro/__tests__/const.d.ts +2 -2
  299. package/types/date-picker-pro/__tests__/date-picker-pro.spec.d.ts +1 -1
  300. package/types/date-picker-pro/__tests__/month-picker.spec.d.ts +1 -1
  301. package/types/date-picker-pro/__tests__/range-date-picker-pro.spec.d.ts +1 -1
  302. package/types/date-picker-pro/__tests__/utils.d.ts +3 -3
  303. package/types/date-picker-pro/__tests__/year-picker.spec.d.ts +1 -1
  304. package/types/date-picker-pro/index.d.ts +12 -12
  305. package/types/date-picker-pro/src/components/calendar-panel.d.ts +2 -2
  306. package/types/date-picker-pro/src/components/date-picker-panel.d.ts +2 -2
  307. package/types/date-picker-pro/src/components/icon-calendar.d.ts +1 -1
  308. package/types/date-picker-pro/src/components/icon-close.d.ts +1 -1
  309. package/types/date-picker-pro/src/components/month-calendar-panel.d.ts +2 -2
  310. package/types/date-picker-pro/src/components/range-date-picker-pro.d.ts +3 -3
  311. package/types/date-picker-pro/src/components/time-picker-panel.d.ts +2 -2
  312. package/types/date-picker-pro/src/components/year-calendar-panel.d.ts +2 -2
  313. package/types/date-picker-pro/src/composables/use-calendar-panel.d.ts +3 -3
  314. package/types/date-picker-pro/src/composables/use-calendar-selected.d.ts +3 -3
  315. package/types/date-picker-pro/src/composables/use-date-picker.d.ts +3 -3
  316. package/types/date-picker-pro/src/composables/use-month-calendar-panel.d.ts +3 -3
  317. package/types/date-picker-pro/src/composables/use-range-date-picker-pro.d.ts +3 -3
  318. package/types/date-picker-pro/src/composables/use-time-picker-panel.d.ts +3 -3
  319. package/types/date-picker-pro/src/composables/use-year-calendar-panel.d.ts +3 -3
  320. package/types/date-picker-pro/src/const.d.ts +11 -11
  321. package/types/date-picker-pro/src/date-picker-pro-types.d.ts +247 -247
  322. package/types/date-picker-pro/src/date-picker-pro.d.ts +3 -3
  323. package/types/date-picker-pro/src/range-date-picker-types.d.ts +73 -73
  324. package/types/date-picker-pro/src/use-picker-pro.d.ts +3 -3
  325. package/types/date-picker-pro/src/utils.d.ts +6 -6
  326. package/types/dragdrop/__tests__/dragdrop.spec.d.ts +1 -1
  327. package/types/dragdrop/index.d.ts +12 -12
  328. package/types/dragdrop/src/draggable-directive.d.ts +2 -2
  329. package/types/dragdrop/src/droppable-directive.d.ts +2 -2
  330. package/types/dragdrop/src/sortable-directive.d.ts +4 -4
  331. package/types/dragdrop/src/utils.d.ts +2 -2
  332. package/types/dragdrop-new/index.d.ts +23 -23
  333. package/types/dragdrop-new/src/batch-draggable.directive.d.ts +59 -59
  334. package/types/dragdrop-new/src/directive-base.d.ts +49 -49
  335. package/types/dragdrop-new/src/drag-drop.service.d.ts +75 -75
  336. package/types/dragdrop-new/src/drag-preview-clone-dom-ref.component.d.ts +43 -43
  337. package/types/dragdrop-new/src/drag-preview.component.d.ts +20 -20
  338. package/types/dragdrop-new/src/drag-preview.directive.d.ts +45 -45
  339. package/types/dragdrop-new/src/draggable.directive.d.ts +119 -119
  340. package/types/dragdrop-new/src/drop-scroll-enhance.directive.d.ts +111 -111
  341. package/types/dragdrop-new/src/droppable.directive.d.ts +137 -137
  342. package/types/dragdrop-new/src/preserve-next-event-emitter.d.ts +15 -15
  343. package/types/dragdrop-new/src/sortable.directive.d.ts +32 -32
  344. package/types/dragdrop-new/src/sync/desc-reg.service.d.ts +31 -31
  345. package/types/dragdrop-new/src/sync/drag-drop-descendant-sync.service.d.ts +10 -10
  346. package/types/dragdrop-new/src/sync/drag-drop-sync-box.directive.d.ts +36 -36
  347. package/types/dragdrop-new/src/sync/drag-drop-sync.service.d.ts +13 -13
  348. package/types/dragdrop-new/src/sync/drag-sync.directive.d.ts +44 -44
  349. package/types/dragdrop-new/src/sync/drop-sort-sync.directive.d.ts +55 -55
  350. package/types/dragdrop-new/src/sync/index.d.ts +17 -17
  351. package/types/dragdrop-new/src/sync/query-list.d.ts +42 -42
  352. package/types/dragdrop-new/src/touch-support/dragdrop-touch.d.ts +148 -148
  353. package/types/dragdrop-new/src/utils.d.ts +38 -38
  354. package/types/drawer/__tests__/drawer.spec.d.ts +1 -1
  355. package/types/drawer/index.d.ts +11 -11
  356. package/types/drawer/src/components/drawer-overlay.d.ts +3 -3
  357. package/types/drawer/src/drawer-service.d.ts +6 -6
  358. package/types/drawer/src/drawer-types.d.ts +57 -57
  359. package/types/drawer/src/drawer.d.ts +33 -79
  360. package/types/drawer/src/use-drawer.d.ts +2 -2
  361. package/types/dropdown/__tests__/dropdown.spec.d.ts +1 -1
  362. package/types/dropdown/index.d.ts +12 -12
  363. package/types/dropdown/src/dropdown-menu-types.d.ts +43 -43
  364. package/types/dropdown/src/dropdown-menu.d.ts +30 -78
  365. package/types/dropdown/src/dropdown-types.d.ts +70 -70
  366. package/types/dropdown/src/dropdown.d.ts +40 -104
  367. package/types/dropdown/src/use-dropdown.d.ts +5 -5
  368. package/types/echarts/index.d.ts +11 -11
  369. package/types/echarts/src/echarts-theme.d.ts +351 -351
  370. package/types/echarts/src/echarts-types.d.ts +8 -8
  371. package/types/echarts/src/echarts.d.ts +10 -16
  372. package/types/editable-select/__tests__/basic-editable-select.spec.d.ts +1 -1
  373. package/types/editable-select/__tests__/clearable-editable-select.spec.d.ts +1 -1
  374. package/types/editable-select/__tests__/custom-template-select.spec.d.ts +1 -1
  375. package/types/editable-select/__tests__/disabled-editable-select.spec.d.ts +1 -1
  376. package/types/editable-select/__tests__/event-editable-select.spec.d.ts +1 -1
  377. package/types/editable-select/__tests__/search-filter-select.spec.d.ts +1 -1
  378. package/types/editable-select/index.d.ts +11 -11
  379. package/types/editable-select/src/components/dropdown/dropdown-types.d.ts +15 -15
  380. package/types/editable-select/src/components/dropdown/dropdown.d.ts +2 -2
  381. package/types/editable-select/src/components/option/option-types.d.ts +18 -18
  382. package/types/editable-select/src/components/option/option.d.ts +17 -37
  383. package/types/editable-select/src/composables/use-input-event.d.ts +14 -14
  384. package/types/editable-select/src/composables/use-input-render.d.ts +12 -12
  385. package/types/editable-select/src/composables/use-keyboard-select.d.ts +7 -7
  386. package/types/editable-select/src/composables/use-lazy-load.d.ts +7 -7
  387. package/types/editable-select/src/composables/use-option.d.ts +7 -7
  388. package/types/editable-select/src/composables/use-select.d.ts +27 -27
  389. package/types/editable-select/src/editable-select-types.d.ts +92 -92
  390. package/types/editable-select/src/editable-select.d.ts +3 -3
  391. package/types/editor-md/index.d.ts +13 -13
  392. package/types/editor-md/src/components/font-color.d.ts +2 -2
  393. package/types/editor-md/src/components/font-size.d.ts +2 -2
  394. package/types/editor-md/src/components/md-render.d.ts +2 -2
  395. package/types/editor-md/src/components/toolbar-item.d.ts +8 -14
  396. package/types/editor-md/src/components/toolbar.d.ts +3 -3
  397. package/types/editor-md/src/composables/helper.d.ts +2 -2
  398. package/types/editor-md/src/composables/md-render-service.d.ts +27 -27
  399. package/types/editor-md/src/composables/use-editor-md-render.d.ts +10 -10
  400. package/types/editor-md/src/composables/use-editor-md-theme.d.ts +3 -3
  401. package/types/editor-md/src/composables/use-editor-md-toolbar.d.ts +5 -5
  402. package/types/editor-md/src/composables/use-editor-md.d.ts +21 -21
  403. package/types/editor-md/src/editor-md-types.d.ts +184 -184
  404. package/types/editor-md/src/editor-md.d.ts +3 -3
  405. package/types/editor-md/src/icons-config.d.ts +23 -23
  406. package/types/editor-md/src/plugins/checkbox.d.ts +1 -1
  407. package/types/editor-md/src/plugins/mermaid.d.ts +2 -2
  408. package/types/editor-md/src/plugins/toc.d.ts +1 -1
  409. package/types/editor-md/src/toolbar-config.d.ts +25 -25
  410. package/types/editor-md/src/utils.d.ts +2 -2
  411. package/types/form/__tests__/form-item-input.spec.d.ts +1 -1
  412. package/types/form/__tests__/form.spec.d.ts +1 -1
  413. package/types/form/index.d.ts +15 -15
  414. package/types/form/src/components/form-control/form-control-types.d.ts +25 -25
  415. package/types/form/src/components/form-control/form-control.d.ts +11 -21
  416. package/types/form/src/components/form-control/use-form-control.d.ts +12 -12
  417. package/types/form/src/components/form-item/form-item-types.d.ts +92 -92
  418. package/types/form/src/components/form-item/form-item.d.ts +34 -90
  419. package/types/form/src/components/form-item/use-form-item.d.ts +5 -5
  420. package/types/form/src/components/form-label/form-label-types.d.ts +12 -12
  421. package/types/form/src/components/form-label/form-label.d.ts +3 -3
  422. package/types/form/src/components/form-label/use-form-label.d.ts +14 -14
  423. package/types/form/src/components/form-operation/form-operation.d.ts +3 -3
  424. package/types/form/src/composables/use-field-collection.d.ts +2 -2
  425. package/types/form/src/composables/use-form-validation.d.ts +3 -3
  426. package/types/form/src/composables/use-validate.d.ts +2 -2
  427. package/types/form/src/form-types.d.ts +106 -106
  428. package/types/form/src/form.d.ts +2 -2
  429. package/types/fullscreen/__tests__/fullscreen.spec.d.ts +1 -1
  430. package/types/fullscreen/index.d.ts +11 -11
  431. package/types/fullscreen/src/composables/use-fullscreen.d.ts +3 -3
  432. package/types/fullscreen/src/composables/use-keydown.d.ts +3 -3
  433. package/types/fullscreen/src/fullscreen-types.d.ts +17 -17
  434. package/types/fullscreen/src/fullscreen.d.ts +3 -3
  435. package/types/fullscreen/src/utils.d.ts +19 -19
  436. package/types/gantt/__tests__/gantt.spec.d.ts +1 -1
  437. package/types/gantt/index.d.ts +10 -10
  438. package/types/gantt/src/gantt-bar/index.d.ts +3 -9
  439. package/types/gantt/src/gantt-bar-parent/index.d.ts +51 -51
  440. package/types/gantt/src/gantt-milestone/index.d.ts +23 -23
  441. package/types/gantt/src/gantt-milestone/milestone-icon.d.ts +1 -1
  442. package/types/gantt/src/gantt-model.d.ts +55 -55
  443. package/types/gantt/src/gantt-scale/gantt-marker-directive.d.ts +26 -26
  444. package/types/gantt/src/gantt-scale/index.d.ts +118 -158
  445. package/types/gantt/src/gantt-scale/use-scale-data.d.ts +5 -5
  446. package/types/gantt/src/gantt-service.d.ts +23 -23
  447. package/types/gantt/src/gantt-tools/index.d.ts +46 -40
  448. package/types/gantt/src/gantt-types.d.ts +18 -18
  449. package/types/gantt/src/gantt.d.ts +167 -36
  450. package/types/gantt/src/i18n-gantt.d.ts +16 -16
  451. package/types/gantt/src/use-gantt.d.ts +4 -4
  452. package/types/gantt/src/utils.d.ts +2 -2
  453. package/types/git-graph/index.d.ts +11 -11
  454. package/types/git-graph/src/git-graph-class.d.ts +43 -43
  455. package/types/git-graph/src/git-graph-types.d.ts +84 -84
  456. package/types/git-graph/src/git-graph.d.ts +3 -3
  457. package/types/git-graph/src/use-git-graph.d.ts +6 -6
  458. package/types/grid/__tests__/grid.spec.d.ts +1 -1
  459. package/types/grid/index.d.ts +12 -12
  460. package/types/grid/src/col.d.ts +29 -29
  461. package/types/grid/src/composables/use-grid.d.ts +4 -4
  462. package/types/grid/src/composables/use-screen.d.ts +22 -22
  463. package/types/grid/src/grid-types.d.ts +71 -71
  464. package/types/grid/src/row.d.ts +22 -52
  465. package/types/icon/__tests__/icon.spec.d.ts +1 -1
  466. package/types/icon/index.d.ts +12 -12
  467. package/types/icon/src/composables/use-icon-dom.d.ts +3 -3
  468. package/types/icon/src/const.d.ts +1 -1
  469. package/types/icon/src/icon-group.d.ts +3 -3
  470. package/types/icon/src/icon.d.ts +2 -2
  471. package/types/icon/src/svg-icon.d.ts +15 -35
  472. package/types/image-preview/__tests__/image-preview.spec.d.ts +1 -1
  473. package/types/image-preview/index.d.ts +12 -12
  474. package/types/image-preview/src/image-preview-directive.d.ts +11 -11
  475. package/types/image-preview/src/image-preview-service.d.ts +9 -9
  476. package/types/image-preview/src/image-preview-types.d.ts +34 -34
  477. package/types/image-preview/src/image-preview.d.ts +16 -44
  478. package/types/image-preview/src/transform.d.ts +39 -39
  479. package/types/input/__tests__/input.spec.d.ts +1 -1
  480. package/types/input/index.d.ts +11 -11
  481. package/types/input/src/composables/use-input-event.d.ts +13 -13
  482. package/types/input/src/composables/use-input-function.d.ts +3 -3
  483. package/types/input/src/composables/use-input-render.d.ts +3 -3
  484. package/types/input/src/input-types.d.ts +78 -78
  485. package/types/input/src/input.d.ts +3 -3
  486. package/types/input-icon/index.d.ts +10 -10
  487. package/types/input-icon/src/input-icon.d.ts +155 -155
  488. package/types/input-number/__tests__/input-number.spec.d.ts +1 -1
  489. package/types/input-number/index.d.ts +10 -10
  490. package/types/input-number/src/input-number-types.d.ts +71 -71
  491. package/types/input-number/src/input-number.d.ts +3 -3
  492. package/types/input-number/src/use-input-number.d.ts +5 -5
  493. package/types/layout/__tests__/layout.spec.d.ts +1 -1
  494. package/types/layout/index.d.ts +14 -14
  495. package/types/layout/src/aside.d.ts +2 -2
  496. package/types/layout/src/content.d.ts +3 -3
  497. package/types/layout/src/footer.d.ts +3 -3
  498. package/types/layout/src/header.d.ts +3 -3
  499. package/types/layout/src/layout.d.ts +3 -3
  500. package/types/list/index.d.ts +10 -10
  501. package/types/list/src/list-item.d.ts +3 -3
  502. package/types/list/src/list.d.ts +3 -3
  503. package/types/loading/__tests__/loading.spec.d.ts +1 -1
  504. package/types/loading/index.d.ts +12 -12
  505. package/types/loading/src/loading-directive.d.ts +7 -7
  506. package/types/loading/src/loading-service.d.ts +9 -9
  507. package/types/loading/src/loading-types.d.ts +42 -42
  508. package/types/loading/src/loading.d.ts +34 -52
  509. package/types/locale/create.d.ts +2 -2
  510. package/types/locale/index.d.ts +15 -12
  511. package/types/locale/lang/en-us.d.ts +104 -104
  512. package/types/locale/lang/zh-cn.d.ts +105 -105
  513. package/types/mention/__tests__/mention.spec.d.ts +1 -1
  514. package/types/mention/index.d.ts +11 -11
  515. package/types/mention/src/mention-types.d.ts +39 -39
  516. package/types/mention/src/mention.d.ts +33 -78
  517. package/types/menu/__tests__/menu.spec.d.ts +1 -1
  518. package/types/menu/index.d.ts +12 -12
  519. package/types/menu/src/components/menu-item/menu-item-types.d.ts +20 -20
  520. package/types/menu/src/components/menu-item/menu-item.d.ts +13 -29
  521. package/types/menu/src/components/menu-item/use-menu-item.d.ts +7 -7
  522. package/types/menu/src/components/menu-transition/menu-transition.d.ts +2 -2
  523. package/types/menu/src/components/sub-menu/sub-menu-types.d.ts +12 -12
  524. package/types/menu/src/components/sub-menu/sub-menu.d.ts +11 -23
  525. package/types/menu/src/components/sub-menu/use-sub-menu.d.ts +3 -3
  526. package/types/menu/src/composables/use-click.d.ts +5 -5
  527. package/types/menu/src/composables/use-nearest-menu-element.d.ts +1 -1
  528. package/types/menu/src/composables/use-store.d.ts +8 -8
  529. package/types/menu/src/menu-types.d.ts +45 -45
  530. package/types/menu/src/menu.d.ts +40 -100
  531. package/types/message/__tests__/message.spec.d.ts +1 -1
  532. package/types/message/index.d.ts +11 -11
  533. package/types/message/src/instance.d.ts +10 -10
  534. package/types/message/src/message-icon-close.d.ts +4 -4
  535. package/types/message/src/message-service.d.ts +13 -13
  536. package/types/message/src/message-types.d.ts +45 -45
  537. package/types/message/src/message.d.ts +35 -87
  538. package/types/modal/__tests__/modal.spec.d.ts +1 -1
  539. package/types/modal/index.d.ts +14 -14
  540. package/types/modal/src/components/body.d.ts +2 -2
  541. package/types/modal/src/components/footer.d.ts +2 -2
  542. package/types/modal/src/components/header.d.ts +2 -2
  543. package/types/modal/src/composables/use-draggable.d.ts +7 -7
  544. package/types/modal/src/composables/use-modal.d.ts +3 -3
  545. package/types/modal/src/composables/use-moveable.d.ts +9 -9
  546. package/types/modal/src/modal-types.d.ts +61 -61
  547. package/types/modal/src/modal.d.ts +48 -124
  548. package/types/modal/src/services/common-modal-service.d.ts +12 -12
  549. package/types/modal/src/services/modal-service.d.ts +17 -17
  550. package/types/multi-auto-complete/__tests__/multi-auto-complete.spec.d.ts +1 -1
  551. package/types/multi-auto-complete/index.d.ts +11 -11
  552. package/types/multi-auto-complete/src/multi-auto-complete-types.d.ts +3 -3
  553. package/types/multi-auto-complete/src/multi-auto-complete.d.ts +3 -3
  554. package/types/nav-sprite/index.d.ts +10 -10
  555. package/types/nav-sprite/src/nav-sprite-types.d.ts +68 -68
  556. package/types/nav-sprite/src/nav-sprite.d.ts +121 -121
  557. package/types/notification/__tests__/notification.spec.d.ts +1 -1
  558. package/types/notification/index.d.ts +12 -12
  559. package/types/notification/src/notification-icon-close.d.ts +4 -4
  560. package/types/notification/src/notification-image.d.ts +16 -16
  561. package/types/notification/src/notification-service.d.ts +4 -4
  562. package/types/notification/src/notification-types.d.ts +35 -35
  563. package/types/notification/src/notification.d.ts +23 -51
  564. package/types/notification/src/use-notification.d.ts +11 -11
  565. package/types/overlay/__tests__/overlay.spec.d.ts +1 -1
  566. package/types/overlay/index.d.ts +13 -13
  567. package/types/overlay/src/base-overlay.d.ts +2 -2
  568. package/types/overlay/src/fixed-overlay/fixed-overlay-types.d.ts +19 -19
  569. package/types/overlay/src/fixed-overlay/index.d.ts +2 -2
  570. package/types/overlay/src/fixed-overlay/use-fixed-overlay.d.ts +3 -3
  571. package/types/overlay/src/flexible-overlay/flexible-overlay-types.d.ts +60 -60
  572. package/types/overlay/src/flexible-overlay/index.d.ts +36 -94
  573. package/types/overlay/src/flexible-overlay/use-flexible-overlay.d.ts +11 -11
  574. package/types/overlay/src/flexible-overlay/utils.d.ts +1 -1
  575. package/types/pagination/__tests__/pagination.spec.d.ts +1 -1
  576. package/types/pagination/index.d.ts +11 -11
  577. package/types/pagination/src/components/config-menu.d.ts +21 -15
  578. package/types/pagination/src/components/jump-page.d.ts +27 -34
  579. package/types/pagination/src/components/page-nums.d.ts +33 -40
  580. package/types/pagination/src/components/page-size.d.ts +2 -2
  581. package/types/pagination/src/pagination-types.d.ts +114 -114
  582. package/types/pagination/src/pagination.d.ts +161 -227
  583. package/types/pagination/src/utils.d.ts +8 -8
  584. package/types/panel/__tests__/panel.spec.d.ts +1 -1
  585. package/types/panel/index.d.ts +18 -18
  586. package/types/panel/src/components/panel-body.d.ts +59 -59
  587. package/types/panel/src/components/panel-footer.d.ts +2 -2
  588. package/types/panel/src/components/panel-header.d.ts +61 -61
  589. package/types/panel/src/panel-types.d.ts +29 -29
  590. package/types/panel/src/panel.d.ts +26 -62
  591. package/types/panel/src/store/index.d.ts +7 -7
  592. package/types/popover/__tests__/popover.spec.d.ts +1 -1
  593. package/types/popover/index.d.ts +11 -11
  594. package/types/popover/src/popover-icon.d.ts +17 -17
  595. package/types/popover/src/popover-types.d.ts +57 -57
  596. package/types/popover/src/popover.d.ts +39 -99
  597. package/types/popover/src/use-popover.d.ts +6 -6
  598. package/types/progress/__tests__/progress.spec.d.ts +1 -1
  599. package/types/progress/index.d.ts +11 -11
  600. package/types/progress/src/progress-types.d.ts +52 -52
  601. package/types/progress/src/progress.d.ts +37 -91
  602. package/types/quadrant-diagram/__tests__/quadrant-diagram.spec.d.ts +1 -1
  603. package/types/quadrant-diagram/config.d.ts +45 -45
  604. package/types/quadrant-diagram/index.d.ts +10 -10
  605. package/types/quadrant-diagram/src/components/axis/index.d.ts +12 -24
  606. package/types/quadrant-diagram/src/components/axis/types.d.ts +14 -14
  607. package/types/quadrant-diagram/src/quadrant-diagram-types.d.ts +42 -42
  608. package/types/quadrant-diagram/src/quadrant-diagram.d.ts +51 -120
  609. package/types/quadrant-diagram/type.d.ts +56 -56
  610. package/types/radio/__tests__/radio-button.spec.d.ts +1 -1
  611. package/types/radio/__tests__/radio-group.spec.d.ts +1 -1
  612. package/types/radio/__tests__/radio.spec.d.ts +1 -1
  613. package/types/radio/index.d.ts +12 -12
  614. package/types/radio/src/radio-button.d.ts +3 -3
  615. package/types/radio/src/radio-group.d.ts +3 -3
  616. package/types/radio/src/radio-types.d.ts +120 -120
  617. package/types/radio/src/radio.d.ts +3 -3
  618. package/types/radio/src/use-radio.d.ts +5 -5
  619. package/types/rate/__tests__/rate.spec.d.ts +1 -1
  620. package/types/rate/index.d.ts +11 -11
  621. package/types/rate/src/rate-types.d.ts +46 -46
  622. package/types/rate/src/rate.d.ts +51 -107
  623. package/types/read-tip/__tests__/read-tip-template.spec.d.ts +1 -1
  624. package/types/read-tip/__tests__/read-tip.spec.d.ts +1 -1
  625. package/types/read-tip/index.d.ts +11 -11
  626. package/types/read-tip/src/read-tip-directive.d.ts +2 -2
  627. package/types/read-tip/src/read-tip-template.d.ts +10 -18
  628. package/types/read-tip/src/read-tip-types.d.ts +64 -64
  629. package/types/read-tip/src/read-tip.d.ts +10 -18
  630. package/types/result/__tests__/result.spec.d.ts +1 -1
  631. package/types/result/index.d.ts +11 -11
  632. package/types/result/src/result-types.d.ts +17 -17
  633. package/types/result/src/result.d.ts +15 -33
  634. package/types/ripple/__tests__/ripple.spec.d.ts +1 -1
  635. package/types/ripple/index.d.ts +10 -10
  636. package/types/ripple/src/options.d.ts +75 -75
  637. package/types/ripple/src/ripple-directive.d.ts +6 -6
  638. package/types/ripple/src/utils/create-container-element.d.ts +1 -1
  639. package/types/ripple/src/utils/create-ripple-element.d.ts +2 -2
  640. package/types/ripple/src/utils/getdistance-tofurthestcorner.d.ts +1 -1
  641. package/types/ripple/src/utils/getrelative-pointer.d.ts +1 -1
  642. package/types/ripple/src/utils/magnitude.d.ts +1 -1
  643. package/types/ripple/src/utils/ripple-count.d.ts +4 -4
  644. package/types/ripple/src/v-ripple.d.ts +3 -3
  645. package/types/search/__tests__/search.spec.d.ts +1 -1
  646. package/types/search/index.d.ts +11 -11
  647. package/types/search/src/composables/use-search-class.d.ts +3 -3
  648. package/types/search/src/composables/use-search-keydown.d.ts +8 -8
  649. package/types/search/src/composables/use-search-keywords.d.ts +8 -8
  650. package/types/search/src/search-types.d.ts +73 -73
  651. package/types/search/src/search.d.ts +47 -123
  652. package/types/select/__tests__/option-group.spec.d.ts +1 -1
  653. package/types/select/__tests__/option.spec.d.ts +1 -1
  654. package/types/select/__tests__/select.spec.d.ts +1 -1
  655. package/types/select/index.d.ts +12 -12
  656. package/types/select/src/components/option-group.d.ts +10 -20
  657. package/types/select/src/components/option.d.ts +17 -41
  658. package/types/select/src/components/select-content.d.ts +2 -2
  659. package/types/select/src/composables/use-option.d.ts +2 -2
  660. package/types/select/src/composables/use-select-content.d.ts +21 -21
  661. package/types/select/src/composables/use-select-function.d.ts +3 -3
  662. package/types/select/src/composables/use-select-menu-size.d.ts +5 -5
  663. package/types/select/src/const.d.ts +5 -5
  664. package/types/select/src/select-types.d.ts +177 -177
  665. package/types/select/src/select.d.ts +3 -3
  666. package/types/select/src/use-select.d.ts +28 -28
  667. package/types/select/src/utils.d.ts +10 -10
  668. package/types/shared/components/popper-trigger/index.d.ts +2 -2
  669. package/types/shared/components/popper-trigger/src/popper-trigger-types.d.ts +2 -2
  670. package/types/shared/components/popper-trigger/src/popper-trigger.d.ts +4 -4
  671. package/types/shared/components/popper-trigger/src/use-popper-trigger.d.ts +2 -2
  672. package/types/shared/devui-api/devui-api.d.ts +2 -8
  673. package/types/shared/devui-api-table/devui-api-table.d.ts +26 -26
  674. package/types/shared/devui-api-table/devui-api-table.type.d.ts +19 -19
  675. package/types/shared/devui-api-table/index.d.ts +1 -1
  676. package/types/shared/devui-codebox/codebox-collapse-icon.d.ts +2 -2
  677. package/types/shared/devui-codebox/codebox-copied-icon.d.ts +2 -2
  678. package/types/shared/devui-codebox/codebox-copy-icon.d.ts +2 -2
  679. package/types/shared/devui-codebox/devui-codebox.d.ts +18 -18
  680. package/types/shared/devui-codebox/devui-source-data.d.ts +5 -5
  681. package/types/shared/devui-directive/clickoutside.d.ts +12 -12
  682. package/types/shared/devui-directive/utils.d.ts +2 -2
  683. package/types/shared/devui-highlight/devui-highlight.d.ts +8 -8
  684. package/types/shared/hooks/use-namespace.d.ts +13 -13
  685. package/types/shared/scripts/component.d.ts +12 -12
  686. package/types/shared/utils/class.d.ts +19 -19
  687. package/types/shared/utils/common-var.d.ts +1 -1
  688. package/types/shared/utils/debounce.d.ts +8 -8
  689. package/types/shared/utils/deep-assign.d.ts +1 -1
  690. package/types/shared/utils/dom.d.ts +13 -13
  691. package/types/shared/utils/index.d.ts +15 -15
  692. package/types/shared/utils/is.d.ts +8 -8
  693. package/types/shared/utils/lock-scroll.d.ts +1 -1
  694. package/types/shared/utils/middle-num.d.ts +9 -9
  695. package/types/shared/utils/omit.d.ts +3 -3
  696. package/types/shared/utils/props-util.d.ts +2 -2
  697. package/types/shared/utils/random-id.d.ts +1 -1
  698. package/types/shared/utils/set-style.d.ts +8 -8
  699. package/types/shared/utils/to-clipboard.d.ts +1 -1
  700. package/types/shared/utils/url.d.ts +2 -2
  701. package/types/shared/utils/use-namespace.d.ts +13 -13
  702. package/types/shared/utils/wait.d.ts +1 -1
  703. package/types/skeleton/__tests__/skeleton.spec.d.ts +1 -1
  704. package/types/skeleton/index.d.ts +13 -13
  705. package/types/skeleton/src/components/skeleton-item-types.d.ts +17 -17
  706. package/types/skeleton/src/components/skeleton-item.d.ts +12 -24
  707. package/types/skeleton/src/composables/use-skeleton-item.d.ts +2 -2
  708. package/types/skeleton/src/skeleton-types.d.ts +22 -22
  709. package/types/skeleton/src/skeleton.d.ts +18 -42
  710. package/types/slider/__tests__/slider.spec.d.ts +1 -1
  711. package/types/slider/index.d.ts +11 -11
  712. package/types/slider/src/slider-types.d.ts +36 -36
  713. package/types/slider/src/slider.d.ts +3 -3
  714. package/types/slider/src/use-slider.d.ts +3 -3
  715. package/types/splitter/__mocks__/event-helper.d.ts +9 -9
  716. package/types/splitter/__tests__/splitter.spec.d.ts +1 -1
  717. package/types/splitter/index.d.ts +12 -12
  718. package/types/splitter/src/components/splitter-bar-types.d.ts +38 -38
  719. package/types/splitter/src/components/splitter-bar.d.ts +53 -44
  720. package/types/splitter/src/components/splitter-pane-types.d.ts +66 -66
  721. package/types/splitter/src/components/splitter-pane.d.ts +33 -81
  722. package/types/splitter/src/d-resize-directive.d.ts +28 -28
  723. package/types/splitter/src/splitter-store.d.ts +40 -40
  724. package/types/splitter/src/splitter-types.d.ts +37 -37
  725. package/types/splitter/src/splitter.d.ts +70 -42
  726. package/types/statistic/__tests__/statistic.spec.d.ts +1 -1
  727. package/types/statistic/index.d.ts +11 -11
  728. package/types/statistic/src/statistic-types.d.ts +43 -43
  729. package/types/statistic/src/statistic.d.ts +3 -3
  730. package/types/statistic/src/utils/animation.d.ts +42 -42
  731. package/types/statistic/src/utils/easing.d.ts +15 -15
  732. package/types/statistic/src/utils/separator.d.ts +4 -4
  733. package/types/status/__tests__/status.spec.d.ts +1 -1
  734. package/types/status/index.d.ts +15 -15
  735. package/types/status/src/status-types.d.ts +1 -1
  736. package/types/status/src/status.d.ts +16 -16
  737. package/types/steps/__tests__/steps.spec.d.ts +1 -1
  738. package/types/steps/index.d.ts +13 -13
  739. package/types/steps/src/const.d.ts +3 -3
  740. package/types/steps/src/step-types.d.ts +18 -18
  741. package/types/steps/src/step.d.ts +13 -31
  742. package/types/steps/src/steps-types.d.ts +24 -24
  743. package/types/steps/src/steps.d.ts +22 -50
  744. package/types/steps-guide/__tests__/steps-guide-demo.d.ts +41 -13
  745. package/types/steps-guide/__tests__/steps-guide.spec.d.ts +1 -1
  746. package/types/steps-guide/composables/index.d.ts +2 -2
  747. package/types/steps-guide/composables/use-steps-guide-ctrl.d.ts +7 -7
  748. package/types/steps-guide/composables/use-steps-guide-position.d.ts +12 -12
  749. package/types/steps-guide/index.d.ts +12 -12
  750. package/types/steps-guide/src/steps-guide-directive.d.ts +5 -5
  751. package/types/steps-guide/src/steps-guide-types.d.ts +43 -43
  752. package/types/steps-guide/src/steps-guide.d.ts +30 -66
  753. package/types/sticky/index.d.ts +10 -10
  754. package/types/sticky/src/sticky.d.ts +41 -41
  755. package/types/switch/__tests__/switch.spec.d.ts +1 -1
  756. package/types/switch/index.d.ts +11 -11
  757. package/types/switch/src/switch-types.d.ts +42 -42
  758. package/types/switch/src/switch.d.ts +3 -3
  759. package/types/switch/src/use-switch.d.ts +3 -3
  760. package/types/table/__tests__/table.spec.d.ts +1 -1
  761. package/types/table/index.d.ts +12 -12
  762. package/types/table/src/components/body/body-types.d.ts +23 -23
  763. package/types/table/src/components/body/body.d.ts +3 -3
  764. package/types/table/src/components/body/use-body.d.ts +4 -4
  765. package/types/table/src/components/body-td/body-td-types.d.ts +30 -30
  766. package/types/table/src/components/body-td/body-td.d.ts +2 -2
  767. package/types/table/src/components/body-td/use-body-td.d.ts +3 -3
  768. package/types/table/src/components/colgroup/colgroup.d.ts +2 -2
  769. package/types/table/src/components/column/column-types.d.ts +143 -143
  770. package/types/table/src/components/column/column.d.ts +2 -2
  771. package/types/table/src/components/column/config.d.ts +28 -28
  772. package/types/table/src/components/column/use-column.d.ts +9 -9
  773. package/types/table/src/components/filter/filter-types.d.ts +34 -34
  774. package/types/table/src/components/filter/filter.d.ts +3 -3
  775. package/types/table/src/components/filter/multiple-filter.d.ts +2 -2
  776. package/types/table/src/components/filter/single-filter.d.ts +2 -2
  777. package/types/table/src/components/filter/use-filter.d.ts +6 -6
  778. package/types/table/src/components/fix-header.d.ts +11 -21
  779. package/types/table/src/components/header/header.d.ts +4 -4
  780. package/types/table/src/components/header/header.type.d.ts +3 -3
  781. package/types/table/src/components/header/use-header.d.ts +5 -5
  782. package/types/table/src/components/header-th/header-th-types.d.ts +33 -33
  783. package/types/table/src/components/header-th/header-th.d.ts +10 -24
  784. package/types/table/src/components/header-th/use-header-th.d.ts +7 -7
  785. package/types/table/src/components/normal-header.d.ts +11 -21
  786. package/types/table/src/components/sort/sort-types.d.ts +9 -9
  787. package/types/table/src/components/sort/sort.d.ts +11 -17
  788. package/types/table/src/composables/use-horizontal-scroll.d.ts +3 -3
  789. package/types/table/src/composables/use-sort.d.ts +3 -3
  790. package/types/table/src/composables/use-table-types.d.ts +10 -10
  791. package/types/table/src/composables/use-table.d.ts +8 -8
  792. package/types/table/src/store/index.d.ts +11 -11
  793. package/types/table/src/store/store-types.d.ts +49 -49
  794. package/types/table/src/store/use-edit-table-cell.d.ts +2 -2
  795. package/types/table/src/store/use-expand.d.ts +4 -4
  796. package/types/table/src/table-types.d.ts +135 -135
  797. package/types/table/src/table.d.ts +3 -3
  798. package/types/table/src/utils.d.ts +9 -9
  799. package/types/tabs/__tests__/tabs.spec.d.ts +1 -1
  800. package/types/tabs/index.d.ts +12 -12
  801. package/types/tabs/src/components/tab/tab-types.d.ts +25 -25
  802. package/types/tabs/src/components/tab/tab.d.ts +42 -42
  803. package/types/tabs/src/components/tab-nav/composables/use-tab-nav-event.d.ts +3 -3
  804. package/types/tabs/src/components/tab-nav/composables/use-tab-nav-function.d.ts +4 -4
  805. package/types/tabs/src/components/tab-nav/composables/use-tab-nav-render.d.ts +3 -3
  806. package/types/tabs/src/components/tab-nav/tab-nav-types.d.ts +26 -26
  807. package/types/tabs/src/components/tab-nav/tab-nav.d.ts +3 -3
  808. package/types/tabs/src/tabs-types.d.ts +72 -72
  809. package/types/tabs/src/tabs.d.ts +2 -2
  810. package/types/tabs/src/use-tabs.d.ts +4 -4
  811. package/types/tag/__tests__/tag.spec.d.ts +1 -1
  812. package/types/tag/index.d.ts +11 -11
  813. package/types/tag/src/composables/index.d.ts +3 -3
  814. package/types/tag/src/composables/use-class.d.ts +3 -3
  815. package/types/tag/src/composables/use-color.d.ts +3 -3
  816. package/types/tag/src/tag-types.d.ts +30 -30
  817. package/types/tag/src/tag.d.ts +28 -64
  818. package/types/tag-input/__tests__/tag-input.spec.d.ts +1 -1
  819. package/types/tag-input/index.d.ts +11 -11
  820. package/types/tag-input/src/components/icon-remove.d.ts +2 -2
  821. package/types/tag-input/src/composables/use-input-keydown.d.ts +2 -2
  822. package/types/tag-input/src/tag-input-types.d.ts +69 -69
  823. package/types/tag-input/src/tag-input.d.ts +3 -3
  824. package/types/textarea/__tests__/textarea.spec.d.ts +1 -1
  825. package/types/textarea/index.d.ts +11 -11
  826. package/types/textarea/src/composables/use-textarea-autosize.d.ts +3 -3
  827. package/types/textarea/src/composables/use-textarea-event.d.ts +3 -3
  828. package/types/textarea/src/composables/use-textarea-render.d.ts +2 -2
  829. package/types/textarea/src/textarea-types.d.ts +65 -65
  830. package/types/textarea/src/textarea.d.ts +3 -3
  831. package/types/textarea/src/utils.d.ts +6 -6
  832. package/types/theme/core/theme.d.ts +8 -8
  833. package/types/theme/theme.d.ts +3 -3
  834. package/types/theme/themes/dark.d.ts +87 -87
  835. package/types/theme/themes/light.d.ts +124 -124
  836. package/types/time-picker/__tests__/time-picker.spec.d.ts +1 -1
  837. package/types/time-picker/index.d.ts +10 -10
  838. package/types/time-picker/src/components/popup-line/composables/use-popup-line.d.ts +4 -4
  839. package/types/time-picker/src/components/popup-line/index.d.ts +3 -3
  840. package/types/time-picker/src/components/popup-line/popup-line-types.d.ts +33 -33
  841. package/types/time-picker/src/components/time-popup/index.d.ts +3 -3
  842. package/types/time-picker/src/components/time-popup/time-popup-types.d.ts +36 -36
  843. package/types/time-picker/src/components/time-scroll/composables/use-time-scroll.d.ts +2 -2
  844. package/types/time-picker/src/components/time-scroll/index.d.ts +44 -120
  845. package/types/time-picker/src/composables/use-time-picker.d.ts +4 -4
  846. package/types/time-picker/src/time-picker-types.d.ts +57 -57
  847. package/types/time-picker/src/time-picker.d.ts +3 -3
  848. package/types/time-picker/src/types.d.ts +67 -67
  849. package/types/time-picker/src/utils.d.ts +16 -16
  850. package/types/time-select/__tests__/time-select.spec.d.ts +1 -1
  851. package/types/time-select/index.d.ts +10 -10
  852. package/types/time-select/src/time-select-types.d.ts +65 -65
  853. package/types/time-select/src/time-select.d.ts +2 -2
  854. package/types/time-select/src/use-time-select.d.ts +3 -3
  855. package/types/timeline/__tests__/timeline.spec.d.ts +1 -1
  856. package/types/timeline/index.d.ts +12 -12
  857. package/types/timeline/src/components/timeline-item-types.d.ts +31 -31
  858. package/types/timeline/src/components/timeline-item.d.ts +25 -57
  859. package/types/timeline/src/timeline-types.d.ts +28 -28
  860. package/types/timeline/src/timeline.d.ts +42 -42
  861. package/types/tooltip/__tests__/tooltip.spec.d.ts +1 -1
  862. package/types/tooltip/index.d.ts +11 -11
  863. package/types/tooltip/src/tooltip-types.d.ts +55 -55
  864. package/types/tooltip/src/tooltip.d.ts +36 -96
  865. package/types/tooltip/src/use-tooltip.d.ts +4 -4
  866. package/types/transfer/__tests__/transfer.spec.d.ts +1 -1
  867. package/types/transfer/index.d.ts +10 -10
  868. package/types/transfer/src/components/transfer-body.d.ts +3 -3
  869. package/types/transfer/src/components/transfer-header.d.ts +2 -2
  870. package/types/transfer/src/components/transfer-operate.d.ts +17 -35
  871. package/types/transfer/src/components/transfer-panel.d.ts +2 -2
  872. package/types/transfer/src/composables/use-transfer-body.d.ts +84 -80
  873. package/types/transfer/src/composables/use-transfer-header.d.ts +39 -39
  874. package/types/transfer/src/composables/use-transfer-operate.d.ts +23 -23
  875. package/types/transfer/src/composables/use-transfer-panel.d.ts +84 -84
  876. package/types/transfer/src/composables/use-transfer.d.ts +38 -30
  877. package/types/transfer/src/transfer-types.d.ts +96 -96
  878. package/types/transfer/src/transfer.d.ts +3 -3
  879. package/types/transfer/types.d.ts +24 -24
  880. package/types/tree/__tests__/basic-tree/basic-tree-data.d.ts +2 -2
  881. package/types/tree/__tests__/basic-tree/basic-tree.spec.d.ts +1 -1
  882. package/types/tree/__tests__/checkable-tree/checkable-tree-data.d.ts +3 -3
  883. package/types/tree/__tests__/checkable-tree/checkable-tree.spec.d.ts +1 -1
  884. package/types/tree/__tests__/dragdrop-tree/dragdrop-tree-data.d.ts +2 -2
  885. package/types/tree/__tests__/dragdrop-tree/dragdrop-tree.spec.d.ts +1 -1
  886. package/types/tree/__tests__/lazy-node-tree/lazy-tree-data.d.ts +3 -3
  887. package/types/tree/__tests__/lazy-node-tree/node-lazy-tree.spec.d.ts +1 -1
  888. package/types/tree/__tests__/node-merge/node-merge-data.d.ts +2 -2
  889. package/types/tree/__tests__/node-merge/node-merge.spec.d.ts +1 -1
  890. package/types/tree/__tests__/search-filter-tree/search-filter-data.d.ts +2 -2
  891. package/types/tree/__tests__/search-filter-tree/search-filter-tree.spec.d.ts +1 -1
  892. package/types/tree/index.d.ts +12 -12
  893. package/types/tree/src/components/icon-close.d.ts +1 -1
  894. package/types/tree/src/components/icon-open.d.ts +1 -1
  895. package/types/tree/src/components/tree-node-content.d.ts +16 -16
  896. package/types/tree/src/components/tree-node-loading.d.ts +2 -2
  897. package/types/tree/src/components/tree-node-toggle.d.ts +16 -16
  898. package/types/tree/src/components/tree-node.d.ts +18 -42
  899. package/types/tree/src/composables/index.d.ts +15 -15
  900. package/types/tree/src/composables/use-check.d.ts +5 -5
  901. package/types/tree/src/composables/use-core.d.ts +3 -3
  902. package/types/tree/src/composables/use-disable.d.ts +3 -3
  903. package/types/tree/src/composables/use-dragdrop.d.ts +4 -4
  904. package/types/tree/src/composables/use-init-select-collection.d.ts +2 -2
  905. package/types/tree/src/composables/use-lazy-load.d.ts +3 -3
  906. package/types/tree/src/composables/use-merge-nodes.d.ts +3 -3
  907. package/types/tree/src/composables/use-operate.d.ts +3 -3
  908. package/types/tree/src/composables/use-search-filter.d.ts +3 -3
  909. package/types/tree/src/composables/use-select.d.ts +3 -3
  910. package/types/tree/src/composables/use-toggle.d.ts +3 -3
  911. package/types/tree/src/composables/use-tree-node.d.ts +21 -21
  912. package/types/tree/src/composables/use-tree-types.d.ts +135 -129
  913. package/types/tree/src/composables/use-tree.d.ts +22 -22
  914. package/types/tree/src/composables/utils.d.ts +3 -3
  915. package/types/tree/src/const.d.ts +4 -4
  916. package/types/tree/src/tree-types.d.ts +43 -43
  917. package/types/tree/src/tree.d.ts +3 -3
  918. package/types/tree/src/utils.d.ts +15 -15
  919. package/types/tree-select/__tests__/tree-select.spec.d.ts +1 -1
  920. package/types/tree-select/assets/close.d.ts +2 -2
  921. package/types/tree-select/assets/open.d.ts +2 -2
  922. package/types/tree-select/hooks/use-clear.d.ts +3 -3
  923. package/types/tree-select/hooks/use-select.d.ts +2 -2
  924. package/types/tree-select/hooks/use-toggle.d.ts +2 -2
  925. package/types/tree-select/index.d.ts +10 -10
  926. package/types/tree-select/src/tree-select-types.d.ts +63 -63
  927. package/types/tree-select/src/tree-select.d.ts +3 -3
  928. package/types/tree-select/src/utils.d.ts +12 -12
  929. package/types/upload/__tests__/upload.spec.d.ts +1 -1
  930. package/types/upload/index.d.ts +12 -12
  931. package/types/upload/src/composables/use-select-files.d.ts +14 -14
  932. package/types/upload/src/composables/use-upload.d.ts +16 -16
  933. package/types/upload/src/file-drop-directive.d.ts +12 -12
  934. package/types/upload/src/file-uploader.d.ts +16 -16
  935. package/types/upload/src/i18n-upload.d.ts +17 -17
  936. package/types/upload/src/upload-types.d.ts +139 -139
  937. package/types/upload/src/upload.d.ts +231 -365
  938. package/types/virtual-list/index.d.ts +10 -10
  939. package/types/virtual-list/src/components/container.d.ts +28 -28
  940. package/types/virtual-list/src/components/item.d.ts +12 -12
  941. package/types/virtual-list/src/components/resize-observer.d.ts +2 -2
  942. package/types/virtual-list/src/components/scroll-bar.d.ts +46 -46
  943. package/types/virtual-list/src/const.d.ts +1 -1
  944. package/types/virtual-list/src/hooks/use-frame-wheel.d.ts +7 -7
  945. package/types/virtual-list/src/hooks/use-heights.d.ts +5 -5
  946. package/types/virtual-list/src/hooks/use-mobile-touch-move.d.ts +2 -2
  947. package/types/virtual-list/src/hooks/use-origin-scroll.d.ts +3 -3
  948. package/types/virtual-list/src/hooks/use-virtual.d.ts +8 -8
  949. package/types/virtual-list/src/utils.d.ts +8 -8
  950. package/types/virtual-list/src/virtual-list-types.d.ts +93 -93
  951. package/types/virtual-list/src/virtual-list.d.ts +29 -67
  952. package/types/vue-devui.d.ts +97 -97
  953. package/upload/index.es.js +131 -26
  954. package/upload/index.umd.js +3 -3
  955. package/vue-devui.es.js +372 -119
  956. package/vue-devui.umd.js +74 -73
  957. package/nuxt/components/checkbox.js +0 -3
@@ -1,6 +1,6 @@
1
- (function(u,m){typeof exports=="object"&&typeof module!="undefined"?m(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],m):(u=typeof globalThis!="undefined"?globalThis:u||self,m(u.index={},u.Vue))})(this,function(u,m){"use strict";var Ir=Object.defineProperty;var Cr=(u,m,N)=>m in u?Ir(u,m,{enumerable:!0,configurable:!0,writable:!0,value:N}):u[m]=N;var Ce=(u,m,N)=>(Cr(u,typeof m!="symbol"?m+"":m,N),N);var N=function(i,e){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},N(i,e)};function L(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");N(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Dt(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(d){try{c(r.next(d))}catch(h){o(h)}}function l(d){try{c(r.throw(d))}catch(h){o(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})}function Oe(i,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(t=0)),t;)try{if(r=1,n&&(s=c[0]&2?n.return:c[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,c[1])).done)return s;switch(n=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,n=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){t.label=c[1];break}if(c[0]===6&&t.label<s[1]){t.label=s[1],s=c;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(c);break}s[2]&&t.ops.pop(),t.trys.pop();continue}c=e.call(i,t)}catch(d){c=[6,d],n=0}finally{r=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function W(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function K(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),n,s=[],o;try{for(;(e===void 0||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return s}function Y(i,e,t){if(t||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||Array.prototype.slice.call(e))}function U(i){return this instanceof U?(this.v=i,this):new U(i)}function mt(i,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(i,e||[]),n,s=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(g){r[g]&&(n[g]=function(S){return new Promise(function(b,D){s.push([g,S,b,D])>1||a(g,S)})})}function a(g,S){try{l(r[g](S))}catch(b){h(s[0][3],b)}}function l(g){g.value instanceof U?Promise.resolve(g.value.v).then(c,d):h(s[0][2],g)}function c(g){a("next",g)}function d(g){a("throw",g)}function h(g,S){g(S),s.shift(),s.length&&a(s[0][0],s[0][1])}}function St(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof W=="function"?W(i):i[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=i[s]&&function(o){return new Promise(function(a,l){o=i[s](o),n(a,l,o.done,o.value)})}}function n(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}typeof SuppressedError=="function"&&SuppressedError;function p(i){return typeof i=="function"}function Te(i){var e=function(r){Error.call(r),r.stack=new Error().stack},t=i(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var de=Te(function(i){return function(t){i(this),this.message=t?t.length+` errors occurred during unsubscription:
1
+ (function(u,S){typeof exports=="object"&&typeof module!="undefined"?S(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],S):(u=typeof globalThis!="undefined"?globalThis:u||self,S(u.index={},u.Vue))})(this,function(u,S){"use strict";var Ir=Object.defineProperty;var Or=(u,S,N)=>S in u?Ir(u,S,{enumerable:!0,configurable:!0,writable:!0,value:N}):u[S]=N;var Oe=(u,S,N)=>(Or(u,typeof S!="symbol"?S+"":S,N),N);var N=function(i,e){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},N(i,e)};function L(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");N(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Dt(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(d){try{c(r.next(d))}catch(h){o(h)}}function l(d){try{c(r.throw(d))}catch(h){o(h)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})}function Ce(i,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(t=0)),t;)try{if(r=1,n&&(s=c[0]&2?n.return:c[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,c[1])).done)return s;switch(n=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,n=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){t.label=c[1];break}if(c[0]===6&&t.label<s[1]){t.label=s[1],s=c;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(c);break}s[2]&&t.ops.pop(),t.trys.pop();continue}c=e.call(i,t)}catch(d){c=[6,d],n=0}finally{r=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function W(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function K(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),n,s=[],o;try{for(;(e===void 0||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return s}function Y(i,e,t){if(t||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||Array.prototype.slice.call(e))}function U(i){return this instanceof U?(this.v=i,this):new U(i)}function mt(i,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(i,e||[]),n,s=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(g){return function(y){return Promise.resolve(y).then(g,h)}}function a(g,y){r[g]&&(n[g]=function(v){return new Promise(function(T,b){s.push([g,v,T,b])>1||l(g,v)})},y&&(n[g]=y(n[g])))}function l(g,y){try{c(r[g](y))}catch(v){p(s[0][3],v)}}function c(g){g.value instanceof U?Promise.resolve(g.value.v).then(d,h):p(s[0][2],g)}function d(g){l("next",g)}function h(g){l("throw",g)}function p(g,y){g(y),s.shift(),s.length&&l(s[0][0],s[0][1])}}function St(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof W=="function"?W(i):i[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=i[s]&&function(o){return new Promise(function(a,l){o=i[s](o),n(a,l,o.done,o.value)})}}function n(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}typeof SuppressedError=="function"&&SuppressedError;function D(i){return typeof i=="function"}function Te(i){var e=function(r){Error.call(r),r.stack=new Error().stack},t=i(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var de=Te(function(i){return function(t){i(this),this.message=t?t.length+` errors occurred during unsubscription:
2
2
  `+t.map(function(r,n){return n+1+") "+r.toString()}).join(`
3
- `):"",this.name="UnsubscriptionError",this.errors=t}});function ie(i,e){if(i){var t=i.indexOf(e);0<=t&&i.splice(t,1)}}var C=function(){function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var e,t,r,n,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=W(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(D){e={error:D}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var d=this.initialTeardown;if(p(d))try{d()}catch(D){s=D instanceof de?D.errors:[D]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var g=W(h),S=g.next();!S.done;S=g.next()){var b=S.value;try{Pe(b)}catch(D){s=s!=null?s:[],D instanceof de?s=Y(Y([],K(s)),K(D.errors)):s.push(D)}}}catch(D){r={error:D}}finally{try{S&&!S.done&&(n=g.return)&&n.call(g)}finally{if(r)throw r.error}}}if(s)throw new de(s)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Pe(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ie(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&ie(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=function(){var e=new i;return e.closed=!0,e}(),i}(),Ae=C.EMPTY;function xe(i){return i instanceof C||i&&"closed"in i&&p(i.remove)&&p(i.add)&&p(i.unsubscribe)}function Pe(i){p(i)?i():i.unsubscribe()}var he={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ue={setTimeout:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var n=ue.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,Y([i,e],K(t))):setTimeout.apply(void 0,Y([i,e],K(t)))},clearTimeout:function(i){var e=ue.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(i)},delegate:void 0};function _e(i){ue.setTimeout(function(){throw i})}function Ne(){}var ne=null;function se(i){if(he.useDeprecatedSynchronousErrorHandling){var e=!ne;if(e&&(ne={errorThrown:!1,error:null}),i(),e){var t=ne,r=t.errorThrown,n=t.error;if(ne=null,r)throw n}}else i()}var ge=function(i){L(e,i);function e(t){var r=i.call(this)||this;return r.isStopped=!1,t?(r.destination=t,xe(t)&&t.add(r)):r.destination=wt,r}return e.create=function(t,r,n){return new pe(t,r,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(C),yt=Function.prototype.bind;function fe(i,e){return yt.call(i,e)}var bt=function(){function i(e){this.partialObserver=e}return i.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){oe(r)}},i.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){oe(r)}else oe(e)},i.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){oe(t)}},i}(),pe=function(i){L(e,i);function e(t,r,n){var s=i.call(this)||this,o;if(p(t)||!t)o={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:n!=null?n:void 0};else{var a;s&&he.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=function(){return s.unsubscribe()},o={next:t.next&&fe(t.next,a),error:t.error&&fe(t.error,a),complete:t.complete&&fe(t.complete,a)}):o=t}return s.destination=new bt(o),s}return e}(ge);function oe(i){_e(i)}function Et(i){throw i}var wt={closed:!0,next:Ne,error:Et,complete:Ne},ve=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ae(i){return i}function It(i){return i.length===0?ae:i.length===1?i[0]:function(t){return i.reduce(function(r,n){return n(r)},t)}}var T=function(){function i(e){e&&(this._subscribe=e)}return i.prototype.lift=function(e){var t=new i;return t.source=this,t.operator=e,t},i.prototype.subscribe=function(e,t,r){var n=this,s=Ot(e)?e:new pe(e,t,r);return se(function(){var o=n,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?n._subscribe(s):n._trySubscribe(s))}),s},i.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},i.prototype.forEach=function(e,t){var r=this;return t=Le(t),new t(function(n,s){var o=new pe({next:function(a){try{e(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:n});r.subscribe(o)})},i.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},i.prototype[ve]=function(){return this},i.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return It(e)(this)},i.prototype.toPromise=function(e){var t=this;return e=Le(e),new e(function(r,n){var s;t.subscribe(function(o){return s=o},function(o){return n(o)},function(){return r(s)})})},i.create=function(e){return new i(e)},i}();function Le(i){var e;return(e=i!=null?i:he.Promise)!==null&&e!==void 0?e:Promise}function Ct(i){return i&&p(i.next)&&p(i.error)&&p(i.complete)}function Ot(i){return i&&i instanceof ge||Ct(i)&&xe(i)}function Tt(i){return p(i==null?void 0:i.lift)}function R(i){return function(e){if(Tt(e))return e.lift(function(t){try{return i(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function P(i,e,t,r,n){return new At(i,e,t,r,n)}var At=function(i){L(e,i);function e(t,r,n,s,o,a){var l=i.call(this,t)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=r?function(c){try{r(c)}catch(d){t.error(d)}}:i.prototype._next,l._error=s?function(c){try{s(c)}catch(d){t.error(d)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=n?function(){try{n()}catch(c){t.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;i.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(ge),xt=Te(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),x=function(i){L(e,i);function e(){var t=i.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new Re(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new xt},e.prototype.next=function(t){var r=this;se(function(){var n,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=W(r.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(t)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},e.prototype.error=function(t){var r=this;se(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var n=r.observers;n.length;)n.shift().error(t)}})},e.prototype.complete=function(){var t=this;se(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,n=this,s=n.hasError,o=n.isStopped,a=n.observers;return s||o?Ae:(this.currentObservers=null,a.push(t),new C(function(){r.currentObservers=null,ie(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,n=r.hasError,s=r.thrownError,o=r.isStopped;n?t.error(s):o&&t.complete()},e.prototype.asObservable=function(){var t=new T;return t.source=this,t},e.create=function(t,r){return new Re(t,r)},e}(T),Re=function(i){L(e,i);function e(t,r){var n=i.call(this)||this;return n.destination=t,n.source=r,n}return e.prototype.next=function(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,t)},e.prototype.error=function(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&n!==void 0?n:Ae},e}(x),Pt=function(i){L(e,i);function e(t){var r=i.call(this)||this;return r._value=t,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var r=i.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},e.prototype.getValue=function(){var t=this,r=t.hasError,n=t.thrownError,s=t._value;if(r)throw n;return this._throwIfClosed(),s},e.prototype.next=function(t){i.prototype.next.call(this,this._value=t)},e}(x),Fe={now:function(){return(Fe.delegate||Date).now()},delegate:void 0},_t=function(i){L(e,i);function e(t,r){return i.call(this)||this}return e.prototype.schedule=function(t,r){return this},e}(C),le={setInterval:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var n=le.delegate;return n!=null&&n.setInterval?n.setInterval.apply(n,Y([i,e],K(t))):setInterval.apply(void 0,Y([i,e],K(t)))},clearInterval:function(i){var e=le.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(i)},delegate:void 0},Nt=function(i){L(e,i);function e(t,r){var n=i.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return e.prototype.schedule=function(t,r){var n;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var s=this.id,o=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(o,s,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this},e.prototype.requestAsyncId=function(t,r,n){return n===void 0&&(n=0),le.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,r,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&le.clearInterval(r)},e.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,r){var n=!1,s;try{this.work(t)}catch(o){n=!0,s=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,n=t.scheduler,s=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ie(s,this),r!=null&&(this.id=this.recycleAsyncId(n,r,null)),this.delay=null,i.prototype.unsubscribe.call(this)}},e}(_t),Me=function(){function i(e,t){t===void 0&&(t=i.now),this.schedulerActionCtor=e,this.now=t}return i.prototype.schedule=function(e,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},i.now=Fe.now,i}(),Lt=function(i){L(e,i);function e(t,r){r===void 0&&(r=Me.now);var n=i.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return e.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var n;this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,n){for(;t=r.shift();)t.unsubscribe();throw n}},e}(Me),De=new Lt(Nt),Rt=De,Ft=new T(function(i){return i.complete()});function Be(i){return i&&p(i.schedule)}function Ke(i){return i[i.length-1]}function Mt(i){return Be(Ke(i))?i.pop():void 0}function Bt(i,e){return typeof Ke(i)=="number"?i.pop():e}var me=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function He(i){return p(i==null?void 0:i.then)}function Ve(i){return p(i[ve])}function Ge(i){return Symbol.asyncIterator&&p(i==null?void 0:i[Symbol.asyncIterator])}function Ye(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Kt(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ke=Kt();function je(i){return p(i==null?void 0:i[ke])}function We(i){return mt(this,arguments,function(){var t,r,n,s;return Oe(this,function(o){switch(o.label){case 0:t=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,U(t.read())];case 3:return r=o.sent(),n=r.value,s=r.done,s?[4,U(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,U(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Ue(i){return p(i==null?void 0:i.getReader)}function H(i){if(i instanceof T)return i;if(i!=null){if(Ve(i))return Ht(i);if(me(i))return Vt(i);if(He(i))return Gt(i);if(Ge(i))return qe(i);if(je(i))return Yt(i);if(Ue(i))return kt(i)}throw Ye(i)}function Ht(i){return new T(function(e){var t=i[ve]();if(p(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Vt(i){return new T(function(e){for(var t=0;t<i.length&&!e.closed;t++)e.next(i[t]);e.complete()})}function Gt(i){return new T(function(e){i.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,_e)})}function Yt(i){return new T(function(e){var t,r;try{for(var n=W(i),s=n.next();!s.done;s=n.next()){var o=s.value;if(e.next(o),e.closed)return}}catch(a){t={error:a}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}function qe(i){return new T(function(e){jt(i,e).catch(function(t){return e.error(t)})})}function kt(i){return qe(We(i))}function jt(i,e){var t,r,n,s;return Dt(this,void 0,void 0,function(){var o,a;return Oe(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),t=St(i),l.label=1;case 1:return[4,t.next()];case 2:if(r=l.sent(),!!r.done)return[3,4];if(o=r.value,e.next(o),e.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),n={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(s=t.return)?[4,s.call(t)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function V(i,e,t,r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var s=e.schedule(function(){t(),n?i.add(this.schedule(null,r)):this.unsubscribe()},r);if(i.add(s),!n)return s}function Xe(i,e){return e===void 0&&(e=0),R(function(t,r){t.subscribe(P(r,function(n){return V(r,i,function(){return r.next(n)},e)},function(){return V(r,i,function(){return r.complete()},e)},function(n){return V(r,i,function(){return r.error(n)},e)}))})}function ze(i,e){return e===void 0&&(e=0),R(function(t,r){r.add(i.schedule(function(){return t.subscribe(r)},e))})}function Wt(i,e){return H(i).pipe(ze(e),Xe(e))}function Ut(i,e){return H(i).pipe(ze(e),Xe(e))}function qt(i,e){return new T(function(t){var r=0;return e.schedule(function(){r===i.length?t.complete():(t.next(i[r++]),t.closed||this.schedule())})})}function Xt(i,e){return new T(function(t){var r;return V(t,e,function(){r=i[ke](),V(t,e,function(){var n,s,o;try{n=r.next(),s=n.value,o=n.done}catch(a){t.error(a);return}o?t.complete():t.next(s)},0,!0)}),function(){return p(r==null?void 0:r.return)&&r.return()}})}function Qe(i,e){if(!i)throw new Error("Iterable cannot be null");return new T(function(t){V(t,e,function(){var r=i[Symbol.asyncIterator]();V(t,e,function(){r.next().then(function(n){n.done?t.complete():t.next(n.value)})},0,!0)})})}function zt(i,e){return Qe(We(i),e)}function Qt(i,e){if(i!=null){if(Ve(i))return Wt(i,e);if(me(i))return qt(i,e);if(He(i))return Ut(i,e);if(Ge(i))return Qe(i,e);if(je(i))return Xt(i,e);if(Ue(i))return zt(i,e)}throw Ye(i)}function Zt(i,e){return e?Qt(i,e):H(i)}function Jt(i){return i instanceof Date&&!isNaN(i)}function Ze(i,e){return R(function(t,r){var n=0;t.subscribe(P(r,function(s){r.next(i.call(e,s,n++))}))})}var $t=Array.isArray;function er(i,e){return $t(e)?i.apply(void 0,Y([],K(e))):i(e)}function tr(i){return Ze(function(e){return er(i,e)})}function rr(i,e,t,r,n,s,o,a){var l=[],c=0,d=0,h=!1,g=function(){h&&!l.length&&!c&&e.complete()},S=function(D){return c<r?b(D):l.push(D)},b=function(D){s&&e.next(D),c++;var A=!1;H(t(D,d++)).subscribe(P(e,function(I){n==null||n(I),s?S(I):e.next(I)},function(){A=!0},void 0,function(){if(A)try{c--;for(var I=function(){var ee=l.shift();o?V(e,o,function(){return b(ee)}):b(ee)};l.length&&c<r;)I();g()}catch(ee){e.error(ee)}}))};return i.subscribe(P(e,S,function(){h=!0,g()})),function(){a==null||a()}}function Se(i,e,t){return t===void 0&&(t=1/0),p(e)?Se(function(r,n){return Ze(function(s,o){return e(r,s,n,o)})(H(i(r,n)))},t):(typeof e=="number"&&(t=e),R(function(r,n){return rr(r,n,i,t)}))}function ir(i){return i===void 0&&(i=1/0),Se(ae,i)}var nr=["addListener","removeListener"],sr=["addEventListener","removeEventListener"],or=["on","off"];function E(i,e,t,r){if(p(t)&&(r=t,t=void 0),r)return E(i,e,t).pipe(tr(r));var n=K(cr(i)?sr.map(function(a){return function(l){return i[a](e,l,t)}}):ar(i)?nr.map(Je(i,e)):lr(i)?or.map(Je(i,e)):[],2),s=n[0],o=n[1];if(!s&&me(i))return Se(function(a){return E(a,e,t)})(H(i));if(!s)throw new TypeError("Invalid event target");return new T(function(a){var l=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return a.next(1<c.length?c:c[0])};return s(l),function(){return o(l)}})}function Je(i,e){return function(t){return function(r){return i[t](e,r)}}}function ar(i){return p(i.addListener)&&p(i.removeListener)}function lr(i){return p(i.on)&&p(i.off)}function cr(i){return p(i.addEventListener)&&p(i.removeEventListener)}function dr(i,e,t){i===void 0&&(i=0),t===void 0&&(t=Rt);var r=-1;return e!=null&&(Be(e)?t=e:r=e),new T(function(n){var s=Jt(i)?+i-t.now():i;s<0&&(s=0);var o=0;return t.schedule(function(){n.closed||(n.next(o++),0<=r?this.schedule(void 0,r):n.complete())},s)})}function ye(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var t=Mt(i),r=Bt(i,1/0),n=i;return n.length?n.length===1?H(n[0]):ir(r)(Zt(n,t)):Ft}function hr(i,e){return R(function(t,r){var n=0;t.subscribe(P(r,function(s){return i.call(e,s,n++)&&r.next(s)}))})}function ur(i,e){return e===void 0&&(e=De),R(function(t,r){var n=null,s=null,o=null,a=function(){if(n){n.unsubscribe(),n=null;var c=s;s=null,r.next(c)}};function l(){var c=o+i,d=e.now();if(d<c){n=this.schedule(void 0,c-d),r.add(n);return}a()}t.subscribe(P(r,function(c){s=c,o=e.now(),n||(n=e.schedule(l,i),r.add(n))},function(){a(),r.complete()},void 0,function(){s=n=null}))})}function gr(i,e){return e===void 0&&(e=ae),i=i!=null?i:fr,R(function(t,r){var n,s=!0;t.subscribe(P(r,function(o){var a=e(o);(s||!i(n,a))&&(s=!1,n=a,r.next(o))}))})}function fr(i,e){return i===e}function $e(i,e,t){var r=p(i)||e||t?{next:i,error:e,complete:t}:i;return r?R(function(n,s){var o;(o=r.subscribe)===null||o===void 0||o.call(r);var a=!0;n.subscribe(P(s,function(l){var c;(c=r.next)===null||c===void 0||c.call(r,l),s.next(l)},function(){var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),s.complete()},function(l){var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,l),s.error(l)},function(){var l,c;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):ae}function pr(i,e){return R(function(t,r){var n=e!=null?e:{},s=n.leading,o=s===void 0?!0:s,a=n.trailing,l=a===void 0?!1:a,c=!1,d=null,h=null,g=!1,S=function(){h==null||h.unsubscribe(),h=null,l&&(A(),g&&r.complete())},b=function(){h=null,g&&r.complete()},D=function(I){return h=H(i(I)).subscribe(P(r,S,b))},A=function(){if(c){c=!1;var I=d;d=null,r.next(I),!g&&D(I)}};t.subscribe(P(r,function(I){c=!0,d=I,!(h&&!h.closed)&&(o?A():D(I))},function(){g=!0,!(l&&c&&h&&!h.closed)&&r.complete()}))})}function ce(i,e,t){e===void 0&&(e=De);var r=dr(i,e);return pr(function(){return r},t)}class f{static matches(e,t){const r=Element.prototype;return(r.matches||r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector||function(s){const o=(this.document||this.ownerDocument).querySelectorAll(s);let a=o.length;for(;--a>=0&&o.item(a)!==this;);return a>-1}).call(e,t)}static addClass(e,t){if(t===void 0)return;const r=this.getElementWithValidClassList(e);r&&r.classList.add(t)}static removeClass(e,t){if(t===void 0)return;const r=this.getElementWithValidClassList(e);r&&r.classList.remove(t)}static getElementWithValidClassList(e){const t=e.nativeElement?e.nativeElement:e;return t.classList!==void 0&&t.classList!==null?t:null}static slice(e,t,r){const n=[];let s=e.length;if(s===0)return n;const o=t<0?Math.max(0,t+s):t||0;for(r!==void 0&&(s=r<0?r+s:r);s-- >o;)n[s-o]=e[s];return n}static addElStyles(e,t){if(t instanceof Object)for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(Array.isArray(t[r])?t[r].forEach(n=>{e.style[r]=n}):e.style[r]=t[r])}static dispatchEventToUnderElement(e,t,r){const n=t||e.target;n.style.display="none";const{x:s,y:o}={x:e.clientX,y:e.clientY},a=document.elementFromPoint(s,o);if(n.style.display="",!a)return e;const l=document.createEvent("DragEvent");return l.initMouseEvent(r||e.type,!0,!0,window,0,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),l.dataTransfer!==null&&(l.dataTransfer.setData("text",""),l.dataTransfer.effectAllowed=e.dataTransfer.effectAllowed),setTimeout(()=>{a.dispatchEvent(l)},0),e}}function y(i,e){return e[i]}function q(i,e,t){t[i]=e}const v=class{constructor(){if(this.lastClick=0,this.touchstart=e=>{if(this.shouldHandle(e)){if(Date.now()-this.lastClick<v.DBLCLICK&&this.dispatchEvent(e,"dblclick",e.target)){e.preventDefault(),this.reset();return}this.reset();const t=this.closestDraggable(e.target);t&&(this.dragSource=t,this.ptDown=this.getPoint(e),this.lastTouch=e,v.IS_PRESS_HOLD_MODE?this.pressHoldInterval=setTimeout(()=>{this.bindTouchmoveTouchend(e),this.isDragEnabled=!0,this.touchmove(e)},v.PRESS_HOLD_AWAIT):(e.preventDefault(),this.bindTouchmoveTouchend(e)))}},this.touchmoveOnDocument=e=>{if(this.shouldCancelPressHoldMove(e)){this.reset();return}},this.touchmove=e=>{if(this.shouldCancelPressHoldMove(e)){this.reset();return}if(this.shouldHandleMove(e)||this.shouldHandlePressHoldMove(e)){const t=this.getTarget(e);this.dragSource&&!this.img&&this.shouldStartDragging(e)&&(this.dispatchEvent(e,"dragstart",this.dragSource),this.createImage(e)),this.img&&(this.clearDragoverInterval(),this.lastTouch=e,e.preventDefault(),t!==this.lastTarget&&(this.dispatchEvent(e,"dragenter",t),this.dispatchEvent(this.lastTouch,"dragleave",this.lastTarget),this.lastTarget=t),this.moveImage(e),this.isDropZone=this.dispatchEvent(e,"dragover",t),this.setDragoverInterval(e))}},this.touchendOnDocument=e=>{this.shouldHandle(e)&&(this.img||(this.dragSource=null,this.lastClick=Date.now()),this.destroyImage(),this.dragSource&&this.reset())},this.touchend=e=>{this.shouldHandle(e)&&(this.img||(this.dragSource=null,this.lastClick=Date.now()),this.destroyImage(),this.dragSource&&(e.type.indexOf("cancel")<0&&this.isDropZone&&this.dispatchEvent(this.lastTouch,"drop",this.lastTarget),this.dispatchEvent(this.lastTouch,"dragend",this.dragSource),this.reset()))},v.instance)throw new Error("DragDropTouch instance already created.");let i=!1;if(typeof document!="undefined"&&(document.addEventListener("test",()=>{},{get passive(){return i=!0,!0}}),v.isTouchDevice())){const e=document,t=this.touchstart,r=this.touchmoveOnDocument,n=this.touchendOnDocument,s=i?{passive:!1,capture:!1}:!1,o=i?{passive:!0}:!1;e.addEventListener("touchstart",t,s),e.addEventListener("touchmove",r,o),e.addEventListener("touchend",n),e.addEventListener("touchcancel",n),this.touchmoveListener=this.touchmove,this.touchendListener=this.touchend,this.listenerOpt=s}}static getInstance(){return v.instance||(v.instance=new v),v.instance}static isTouchDevice(){var r;if(typeof window=="undefined"||typeof document=="undefined")return!1;const i=document,e=window;let t;if("ontouchstart"in i||"ontouchstart"in e||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch)t=!0;else{const n=document.createElement("fakebody");n.innerHTML+=`
3
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function ie(i,e){if(i){var t=i.indexOf(e);0<=t&&i.splice(t,1)}}var O=function(){function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var e,t,r,n,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=W(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(v){e={error:v}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var d=this.initialTeardown;if(D(d))try{d()}catch(v){s=v instanceof de?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=W(h),g=p.next();!g.done;g=p.next()){var y=g.value;try{Pe(y)}catch(v){s=s!=null?s:[],v instanceof de?s=Y(Y([],K(s)),K(v.errors)):s.push(v)}}}catch(v){r={error:v}}finally{try{g&&!g.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}}if(s)throw new de(s)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Pe(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ie(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&ie(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=function(){var e=new i;return e.closed=!0,e}(),i}(),Ae=O.EMPTY;function xe(i){return i instanceof O||i&&"closed"in i&&D(i.remove)&&D(i.add)&&D(i.unsubscribe)}function Pe(i){D(i)?i():i.unsubscribe()}var he={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ue={setTimeout:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var n=ue.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,Y([i,e],K(t))):setTimeout.apply(void 0,Y([i,e],K(t)))},clearTimeout:function(i){var e=ue.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(i)},delegate:void 0};function _e(i){ue.setTimeout(function(){throw i})}function Ne(){}var ne=null;function se(i){if(he.useDeprecatedSynchronousErrorHandling){var e=!ne;if(e&&(ne={errorThrown:!1,error:null}),i(),e){var t=ne,r=t.errorThrown,n=t.error;if(ne=null,r)throw n}}else i()}var ge=function(i){L(e,i);function e(t){var r=i.call(this)||this;return r.isStopped=!1,t?(r.destination=t,xe(t)&&t.add(r)):r.destination=wt,r}return e.create=function(t,r,n){return new pe(t,r,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(O),yt=Function.prototype.bind;function fe(i,e){return yt.call(i,e)}var bt=function(){function i(e){this.partialObserver=e}return i.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){oe(r)}},i.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){oe(r)}else oe(e)},i.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){oe(t)}},i}(),pe=function(i){L(e,i);function e(t,r,n){var s=i.call(this)||this,o;if(D(t)||!t)o={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:n!=null?n:void 0};else{var a;s&&he.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=function(){return s.unsubscribe()},o={next:t.next&&fe(t.next,a),error:t.error&&fe(t.error,a),complete:t.complete&&fe(t.complete,a)}):o=t}return s.destination=new bt(o),s}return e}(ge);function oe(i){_e(i)}function Et(i){throw i}var wt={closed:!0,next:Ne,error:Et,complete:Ne},ve=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ae(i){return i}function It(i){return i.length===0?ae:i.length===1?i[0]:function(t){return i.reduce(function(r,n){return n(r)},t)}}var A=function(){function i(e){e&&(this._subscribe=e)}return i.prototype.lift=function(e){var t=new i;return t.source=this,t.operator=e,t},i.prototype.subscribe=function(e,t,r){var n=this,s=Ct(e)?e:new pe(e,t,r);return se(function(){var o=n,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?n._subscribe(s):n._trySubscribe(s))}),s},i.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},i.prototype.forEach=function(e,t){var r=this;return t=Le(t),new t(function(n,s){var o=new pe({next:function(a){try{e(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:n});r.subscribe(o)})},i.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},i.prototype[ve]=function(){return this},i.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return It(e)(this)},i.prototype.toPromise=function(e){var t=this;return e=Le(e),new e(function(r,n){var s;t.subscribe(function(o){return s=o},function(o){return n(o)},function(){return r(s)})})},i.create=function(e){return new i(e)},i}();function Le(i){var e;return(e=i!=null?i:he.Promise)!==null&&e!==void 0?e:Promise}function Ot(i){return i&&D(i.next)&&D(i.error)&&D(i.complete)}function Ct(i){return i&&i instanceof ge||Ot(i)&&xe(i)}function Tt(i){return D(i==null?void 0:i.lift)}function R(i){return function(e){if(Tt(e))return e.lift(function(t){try{return i(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function P(i,e,t,r,n){return new At(i,e,t,r,n)}var At=function(i){L(e,i);function e(t,r,n,s,o,a){var l=i.call(this,t)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=r?function(c){try{r(c)}catch(d){t.error(d)}}:i.prototype._next,l._error=s?function(c){try{s(c)}catch(d){t.error(d)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=n?function(){try{n()}catch(c){t.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;i.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(ge),xt=Te(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),x=function(i){L(e,i);function e(){var t=i.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new Re(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new xt},e.prototype.next=function(t){var r=this;se(function(){var n,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=W(r.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(t)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(n)throw n.error}}}})},e.prototype.error=function(t){var r=this;se(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var n=r.observers;n.length;)n.shift().error(t)}})},e.prototype.complete=function(){var t=this;se(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,n=this,s=n.hasError,o=n.isStopped,a=n.observers;return s||o?Ae:(this.currentObservers=null,a.push(t),new O(function(){r.currentObservers=null,ie(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,n=r.hasError,s=r.thrownError,o=r.isStopped;n?t.error(s):o&&t.complete()},e.prototype.asObservable=function(){var t=new A;return t.source=this,t},e.create=function(t,r){return new Re(t,r)},e}(A),Re=function(i){L(e,i);function e(t,r){var n=i.call(this)||this;return n.destination=t,n.source=r,n}return e.prototype.next=function(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,t)},e.prototype.error=function(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&n!==void 0?n:Ae},e}(x),Pt=function(i){L(e,i);function e(t){var r=i.call(this)||this;return r._value=t,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var r=i.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},e.prototype.getValue=function(){var t=this,r=t.hasError,n=t.thrownError,s=t._value;if(r)throw n;return this._throwIfClosed(),s},e.prototype.next=function(t){i.prototype.next.call(this,this._value=t)},e}(x),Fe={now:function(){return(Fe.delegate||Date).now()},delegate:void 0},_t=function(i){L(e,i);function e(t,r){return i.call(this)||this}return e.prototype.schedule=function(t,r){return this},e}(O),le={setInterval:function(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var n=le.delegate;return n!=null&&n.setInterval?n.setInterval.apply(n,Y([i,e],K(t))):setInterval.apply(void 0,Y([i,e],K(t)))},clearInterval:function(i){var e=le.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(i)},delegate:void 0},Nt=function(i){L(e,i);function e(t,r){var n=i.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return e.prototype.schedule=function(t,r){var n;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var s=this.id,o=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(o,s,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this},e.prototype.requestAsyncId=function(t,r,n){return n===void 0&&(n=0),le.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,r,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&le.clearInterval(r)},e.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,r){var n=!1,s;try{this.work(t)}catch(o){n=!0,s=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,n=t.scheduler,s=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ie(s,this),r!=null&&(this.id=this.recycleAsyncId(n,r,null)),this.delay=null,i.prototype.unsubscribe.call(this)}},e}(_t),Me=function(){function i(e,t){t===void 0&&(t=i.now),this.schedulerActionCtor=e,this.now=t}return i.prototype.schedule=function(e,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},i.now=Fe.now,i}(),Lt=function(i){L(e,i);function e(t,r){r===void 0&&(r=Me.now);var n=i.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return e.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var n;this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,n){for(;t=r.shift();)t.unsubscribe();throw n}},e}(Me),De=new Lt(Nt),Rt=De,Ft=new A(function(i){return i.complete()});function Be(i){return i&&D(i.schedule)}function Ke(i){return i[i.length-1]}function Mt(i){return Be(Ke(i))?i.pop():void 0}function Bt(i,e){return typeof Ke(i)=="number"?i.pop():e}var me=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function He(i){return D(i==null?void 0:i.then)}function Ve(i){return D(i[ve])}function Ge(i){return Symbol.asyncIterator&&D(i==null?void 0:i[Symbol.asyncIterator])}function Ye(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Kt(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ke=Kt();function je(i){return D(i==null?void 0:i[ke])}function We(i){return mt(this,arguments,function(){var t,r,n,s;return Ce(this,function(o){switch(o.label){case 0:t=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,U(t.read())];case 3:return r=o.sent(),n=r.value,s=r.done,s?[4,U(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,U(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Ue(i){return D(i==null?void 0:i.getReader)}function H(i){if(i instanceof A)return i;if(i!=null){if(Ve(i))return Ht(i);if(me(i))return Vt(i);if(He(i))return Gt(i);if(Ge(i))return qe(i);if(je(i))return Yt(i);if(Ue(i))return kt(i)}throw Ye(i)}function Ht(i){return new A(function(e){var t=i[ve]();if(D(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Vt(i){return new A(function(e){for(var t=0;t<i.length&&!e.closed;t++)e.next(i[t]);e.complete()})}function Gt(i){return new A(function(e){i.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,_e)})}function Yt(i){return new A(function(e){var t,r;try{for(var n=W(i),s=n.next();!s.done;s=n.next()){var o=s.value;if(e.next(o),e.closed)return}}catch(a){t={error:a}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}function qe(i){return new A(function(e){jt(i,e).catch(function(t){return e.error(t)})})}function kt(i){return qe(We(i))}function jt(i,e){var t,r,n,s;return Dt(this,void 0,void 0,function(){var o,a;return Ce(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),t=St(i),l.label=1;case 1:return[4,t.next()];case 2:if(r=l.sent(),!!r.done)return[3,4];if(o=r.value,e.next(o),e.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),n={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(s=t.return)?[4,s.call(t)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function V(i,e,t,r,n){r===void 0&&(r=0),n===void 0&&(n=!1);var s=e.schedule(function(){t(),n?i.add(this.schedule(null,r)):this.unsubscribe()},r);if(i.add(s),!n)return s}function Xe(i,e){return e===void 0&&(e=0),R(function(t,r){t.subscribe(P(r,function(n){return V(r,i,function(){return r.next(n)},e)},function(){return V(r,i,function(){return r.complete()},e)},function(n){return V(r,i,function(){return r.error(n)},e)}))})}function ze(i,e){return e===void 0&&(e=0),R(function(t,r){r.add(i.schedule(function(){return t.subscribe(r)},e))})}function Wt(i,e){return H(i).pipe(ze(e),Xe(e))}function Ut(i,e){return H(i).pipe(ze(e),Xe(e))}function qt(i,e){return new A(function(t){var r=0;return e.schedule(function(){r===i.length?t.complete():(t.next(i[r++]),t.closed||this.schedule())})})}function Xt(i,e){return new A(function(t){var r;return V(t,e,function(){r=i[ke](),V(t,e,function(){var n,s,o;try{n=r.next(),s=n.value,o=n.done}catch(a){t.error(a);return}o?t.complete():t.next(s)},0,!0)}),function(){return D(r==null?void 0:r.return)&&r.return()}})}function Qe(i,e){if(!i)throw new Error("Iterable cannot be null");return new A(function(t){V(t,e,function(){var r=i[Symbol.asyncIterator]();V(t,e,function(){r.next().then(function(n){n.done?t.complete():t.next(n.value)})},0,!0)})})}function zt(i,e){return Qe(We(i),e)}function Qt(i,e){if(i!=null){if(Ve(i))return Wt(i,e);if(me(i))return qt(i,e);if(He(i))return Ut(i,e);if(Ge(i))return Qe(i,e);if(je(i))return Xt(i,e);if(Ue(i))return zt(i,e)}throw Ye(i)}function Zt(i,e){return e?Qt(i,e):H(i)}function Jt(i){return i instanceof Date&&!isNaN(i)}function Ze(i,e){return R(function(t,r){var n=0;t.subscribe(P(r,function(s){r.next(i.call(e,s,n++))}))})}var $t=Array.isArray;function er(i,e){return $t(e)?i.apply(void 0,Y([],K(e))):i(e)}function tr(i){return Ze(function(e){return er(i,e)})}function rr(i,e,t,r,n,s,o,a){var l=[],c=0,d=0,h=!1,p=function(){h&&!l.length&&!c&&e.complete()},g=function(v){return c<r?y(v):l.push(v)},y=function(v){s&&e.next(v),c++;var T=!1;H(t(v,d++)).subscribe(P(e,function(b){n==null||n(b),s?g(b):e.next(b)},function(){T=!0},void 0,function(){if(T)try{c--;for(var b=function(){var ee=l.shift();o?V(e,o,function(){return y(ee)}):y(ee)};l.length&&c<r;)b();p()}catch(ee){e.error(ee)}}))};return i.subscribe(P(e,g,function(){h=!0,p()})),function(){a==null||a()}}function Se(i,e,t){return t===void 0&&(t=1/0),D(e)?Se(function(r,n){return Ze(function(s,o){return e(r,s,n,o)})(H(i(r,n)))},t):(typeof e=="number"&&(t=e),R(function(r,n){return rr(r,n,i,t)}))}function ir(i){return i===void 0&&(i=1/0),Se(ae,i)}var nr=["addListener","removeListener"],sr=["addEventListener","removeEventListener"],or=["on","off"];function w(i,e,t,r){if(D(t)&&(r=t,t=void 0),r)return w(i,e,t).pipe(tr(r));var n=K(cr(i)?sr.map(function(a){return function(l){return i[a](e,l,t)}}):ar(i)?nr.map(Je(i,e)):lr(i)?or.map(Je(i,e)):[],2),s=n[0],o=n[1];if(!s&&me(i))return Se(function(a){return w(a,e,t)})(H(i));if(!s)throw new TypeError("Invalid event target");return new A(function(a){var l=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return a.next(1<c.length?c:c[0])};return s(l),function(){return o(l)}})}function Je(i,e){return function(t){return function(r){return i[t](e,r)}}}function ar(i){return D(i.addListener)&&D(i.removeListener)}function lr(i){return D(i.on)&&D(i.off)}function cr(i){return D(i.addEventListener)&&D(i.removeEventListener)}function dr(i,e,t){i===void 0&&(i=0),t===void 0&&(t=Rt);var r=-1;return e!=null&&(Be(e)?t=e:r=e),new A(function(n){var s=Jt(i)?+i-t.now():i;s<0&&(s=0);var o=0;return t.schedule(function(){n.closed||(n.next(o++),0<=r?this.schedule(void 0,r):n.complete())},s)})}function ye(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var t=Mt(i),r=Bt(i,1/0),n=i;return n.length?n.length===1?H(n[0]):ir(r)(Zt(n,t)):Ft}function hr(i,e){return R(function(t,r){var n=0;t.subscribe(P(r,function(s){return i.call(e,s,n++)&&r.next(s)}))})}function ur(i,e){return e===void 0&&(e=De),R(function(t,r){var n=null,s=null,o=null,a=function(){if(n){n.unsubscribe(),n=null;var c=s;s=null,r.next(c)}};function l(){var c=o+i,d=e.now();if(d<c){n=this.schedule(void 0,c-d),r.add(n);return}a()}t.subscribe(P(r,function(c){s=c,o=e.now(),n||(n=e.schedule(l,i),r.add(n))},function(){a(),r.complete()},void 0,function(){s=n=null}))})}function gr(i,e){return e===void 0&&(e=ae),i=i!=null?i:fr,R(function(t,r){var n,s=!0;t.subscribe(P(r,function(o){var a=e(o);(s||!i(n,a))&&(s=!1,n=a,r.next(o))}))})}function fr(i,e){return i===e}function $e(i,e,t){var r=D(i)||e||t?{next:i,error:e,complete:t}:i;return r?R(function(n,s){var o;(o=r.subscribe)===null||o===void 0||o.call(r);var a=!0;n.subscribe(P(s,function(l){var c;(c=r.next)===null||c===void 0||c.call(r,l),s.next(l)},function(){var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),s.complete()},function(l){var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,l),s.error(l)},function(){var l,c;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):ae}function pr(i,e){return R(function(t,r){var n=e!=null?e:{},s=n.leading,o=s===void 0?!0:s,a=n.trailing,l=a===void 0?!1:a,c=!1,d=null,h=null,p=!1,g=function(){h==null||h.unsubscribe(),h=null,l&&(T(),p&&r.complete())},y=function(){h=null,p&&r.complete()},v=function(b){return h=H(i(b)).subscribe(P(r,g,y))},T=function(){if(c){c=!1;var b=d;d=null,r.next(b),!p&&v(b)}};t.subscribe(P(r,function(b){c=!0,d=b,!(h&&!h.closed)&&(o?T():v(b))},function(){p=!0,!(l&&c&&h&&!h.closed)&&r.complete()}))})}function ce(i,e,t){e===void 0&&(e=De);var r=dr(i,e);return pr(function(){return r},t)}class f{static matches(e,t){const r=Element.prototype;return(r.matches||r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector||function(s){const o=(this.document||this.ownerDocument).querySelectorAll(s);let a=o.length;for(;--a>=0&&o.item(a)!==this;);return a>-1}).call(e,t)}static addClass(e,t){if(t===void 0)return;const r=this.getElementWithValidClassList(e);r&&r.classList.add(t)}static removeClass(e,t){if(t===void 0)return;const r=this.getElementWithValidClassList(e);r&&r.classList.remove(t)}static getElementWithValidClassList(e){const t=e.nativeElement?e.nativeElement:e;return t.classList!==void 0&&t.classList!==null?t:null}static slice(e,t,r){const n=[];let s=e.length;if(s===0)return n;const o=t<0?Math.max(0,t+s):t||0;for(r!==void 0&&(s=r<0?r+s:r);s-- >o;)n[s-o]=e[s];return n}static addElStyles(e,t){if(t instanceof Object)for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(Array.isArray(t[r])?t[r].forEach(n=>{e.style[r]=n}):e.style[r]=t[r])}static dispatchEventToUnderElement(e,t,r){const n=t||e.target;n.style.display="none";const{x:s,y:o}={x:e.clientX,y:e.clientY},a=document.elementFromPoint(s,o);if(n.style.display="",!a)return e;const l=document.createEvent("DragEvent");return l.initMouseEvent(r||e.type,!0,!0,window,0,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),l.dataTransfer!==null&&(l.dataTransfer.setData("text",""),l.dataTransfer.effectAllowed=e.dataTransfer.effectAllowed),setTimeout(()=>{a.dispatchEvent(l)},0),e}}function E(i,e){return e[i]}function q(i,e,t){t[i]=e}const m=class{constructor(){if(this.lastClick=0,this.touchstart=e=>{if(this.shouldHandle(e)){if(Date.now()-this.lastClick<m.DBLCLICK&&this.dispatchEvent(e,"dblclick",e.target)){e.preventDefault(),this.reset();return}this.reset();const t=this.closestDraggable(e.target);t&&(this.dragSource=t,this.ptDown=this.getPoint(e),this.lastTouch=e,m.IS_PRESS_HOLD_MODE?this.pressHoldInterval=setTimeout(()=>{this.bindTouchmoveTouchend(e),this.isDragEnabled=!0,this.touchmove(e)},m.PRESS_HOLD_AWAIT):(e.preventDefault(),this.bindTouchmoveTouchend(e)))}},this.touchmoveOnDocument=e=>{if(this.shouldCancelPressHoldMove(e)){this.reset();return}},this.touchmove=e=>{if(this.shouldCancelPressHoldMove(e)){this.reset();return}if(this.shouldHandleMove(e)||this.shouldHandlePressHoldMove(e)){const t=this.getTarget(e);this.dragSource&&!this.img&&this.shouldStartDragging(e)&&(this.dispatchEvent(e,"dragstart",this.dragSource),this.createImage(e)),this.img&&(this.clearDragoverInterval(),this.lastTouch=e,e.preventDefault(),t!==this.lastTarget&&(this.dispatchEvent(e,"dragenter",t),this.dispatchEvent(this.lastTouch,"dragleave",this.lastTarget),this.lastTarget=t),this.moveImage(e),this.isDropZone=this.dispatchEvent(e,"dragover",t),this.setDragoverInterval(e))}},this.touchendOnDocument=e=>{this.shouldHandle(e)&&(this.img||(this.dragSource=null,this.lastClick=Date.now()),this.destroyImage(),this.dragSource&&this.reset())},this.touchend=e=>{this.shouldHandle(e)&&(this.img||(this.dragSource=null,this.lastClick=Date.now()),this.destroyImage(),this.dragSource&&(e.type.indexOf("cancel")<0&&this.isDropZone&&this.dispatchEvent(this.lastTouch,"drop",this.lastTarget),this.dispatchEvent(this.lastTouch,"dragend",this.dragSource),this.reset()))},m.instance)throw new Error("DragDropTouch instance already created.");let i=!1;if(typeof document!="undefined"&&(document.addEventListener("test",()=>{},{get passive(){return i=!0,!0}}),m.isTouchDevice())){const e=document,t=this.touchstart,r=this.touchmoveOnDocument,n=this.touchendOnDocument,s=i?{passive:!1,capture:!1}:!1,o=i?{passive:!0}:!1;e.addEventListener("touchstart",t,s),e.addEventListener("touchmove",r,o),e.addEventListener("touchend",n),e.addEventListener("touchcancel",n),this.touchmoveListener=this.touchmove,this.touchendListener=this.touchend,this.listenerOpt=s}}static getInstance(){return m.instance||(m.instance=new m),m.instance}static isTouchDevice(){var r;if(typeof window=="undefined"||typeof document=="undefined")return!1;const i=document,e=window;let t;if("ontouchstart"in i||"ontouchstart"in e||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch)t=!0;else{const n=document.createElement("fakebody");n.innerHTML+=`
4
4
  <style>
5
5
  @media (touch-enabled),(-webkit-touch-enabled),(-moz-touch-enabled),(-o-touch-enabled){
6
6
  #touch_test {
@@ -8,4 +8,4 @@
8
8
  position: absolute;
9
9
  }
10
10
  }
11
- </style>`,document.documentElement.appendChild(n);const s=document.createElement("div");s.id="touch_test",n.appendChild(s),t=s.offsetTop===42,(r=n.parentElement)==null||r.removeChild(n)}return t}bindTouchmoveTouchend(i){this.touchTarget=i.target,i.target.addEventListener("touchmove",this.touchmoveListener,this.listenerOpt),i.target.addEventListener("touchend",this.touchendListener),i.target.addEventListener("touchcancel",this.touchendListener)}removeTouchmoveTouchend(){this.touchTarget&&(this.touchTarget.removeEventListener("touchmove",this.touchmoveListener),this.touchTarget.removeEventListener("touchend",this.touchendListener),this.touchTarget.removeEventListener("touchcancel",this.touchendListener),this.touchTarget=void 0)}shouldHandle(i){return i&&!i.defaultPrevented&&i.touches&&i.touches.length<2}shouldHandleMove(i){return!v.IS_PRESS_HOLD_MODE&&this.shouldHandle(i)}shouldHandlePressHoldMove(i){return v.IS_PRESS_HOLD_MODE&&this.isDragEnabled&&i&&i.touches&&i.touches.length}shouldCancelPressHoldMove(i){return v.IS_PRESS_HOLD_MODE&&!this.isDragEnabled&&this.getDelta(i)>v.PRESS_HOLD_MARGIN}shouldStartDragging(i){const e=this.getDragHandle();if(e&&!this.matchSelector(i.target,e))return!1;const t=this.getDelta(i);return t>v.THRESHOLD||v.IS_PRESS_HOLD_MODE&&t>=v.PRESS_HOLD_THRESHOLD}getDragHandle(){return this.dragSource&&this.dragSource.getAttribute(v.DRAG_HANDLE_ATTR)||""}matchSelector(i,e){if(e){const t=Element.prototype;return(t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(n){const s=(this.document||this.ownerDocument).querySelectorAll(n);let o=s.length;for(;--o>=0&&s.item(o)!==this;);return o>-1}).call(i,e)}return!0}reset(){this.removeTouchmoveTouchend(),this.destroyImage(),this.dragSource=null,this.lastTouch=null,this.lastTarget=null,this.ptDown=null,this.isDragEnabled=!1,this.isDropZone=!1,this.dataTransfer=new v.DataTransfer,clearInterval(this.pressHoldInterval),this.clearDragoverInterval()}getPoint(i,e){return i&&i.touches&&(i=i.touches[0]),{x:e?i.pageX:i.clientX,y:e?i.pageY:i.clientY}}getDelta(i){if(v.IS_PRESS_HOLD_MODE&&!this.ptDown)return 0;const e=this.getPoint(i);return Math.abs(e.x-this.ptDown.x)+Math.abs(e.y-this.ptDown.y)}getTarget(i){const e=this.getPoint(i);let t=document.elementFromPoint(e.x,e.y);for(;t&&getComputedStyle(t).pointerEvents==="none";)t=t.parentElement;return t}createImage(i){this.img&&this.destroyImage();const e=this.imgCustom||this.dragSource;if(this.img=e.cloneNode(!0),this.copyStyle(e,this.img),this.img.style.top=this.img.style.left="-9999px",!this.imgCustom){const t=e.getBoundingClientRect(),r=this.getPoint(i);this.imgOffset={x:r.x-t.left,y:r.y-t.top},this.img.style.opacity=v.OPACITY.toString()}this.moveImage(i),document.body.appendChild(this.img)}destroyImage(){this.img&&this.img.parentElement&&this.img.parentElement.removeChild(this.img),this.img=null,this.imgCustom=null}moveImage(i){requestAnimationFrame(()=>{if(this.img){const e=this.getPoint(i,!0),t=this.img.style;t.position="absolute",t.pointerEvents="none",t.zIndex="999999",t.left=Math.round(e.x-this.imgOffset.x)+"px",t.top=Math.round(e.y-this.imgOffset.y)+"px"}})}copyProps(i,e,t){for(let r=0;r<t.length;r++){const n=t[r];i[n]=e[n]}}copyStyle(i,e){if(v.rmvAttrs.forEach(function(n){e.removeAttribute(n)}),i instanceof HTMLCanvasElement){const n=i,s=e;s.width=n.width,s.height=n.height,s.getContext("2d").drawImage(n,0,0)}const t=i.querySelectorAll("canvas");if(t.length>0){const n=e.querySelectorAll("canvas");for(let s=0;s<n.length;s++){const o=t[s];n[s].getContext("2d").drawImage(o,0,0)}}const r=getComputedStyle(i);for(let n=0;n<r.length;n++){const s=r[n];s.indexOf("transition")<0&&(e.style[s]=r[s])}e.style.pointerEvents="none";for(let n=0;n<i.children.length;n++)this.copyStyle(i.children[n],e.children[n])}dispatchEvent(i,e,t){if(i&&t){const r=document.createEvent("Event"),n=i.touches?i.touches[0]:i;r.initEvent(e,!0,!0);const s={button:0,which:0,buttons:1,dataTransfer:this.dataTransfer};return this.copyProps(r,i,v.kbdProps),this.copyProps(r,n,v.ptProps),this.copyProps(r,{fromTouch:!0},["fromTouch"]),this.copyProps(r,s,Object.keys(s)),t.dispatchEvent(r),r.defaultPrevented}return!1}closestDraggable(i){for(;i;i=i.parentElement)if(i.hasAttribute("draggable")&&i.draggable)return i;return null}setDragoverInterval(i){this.dragoverTimer=setInterval(()=>{const e=this.getTarget(i);e!==this.lastTarget&&(this.dispatchEvent(i,"dragenter",e),this.dispatchEvent(i,"dragleave",this.lastTarget),this.lastTarget=e),this.isDropZone=this.dispatchEvent(i,"dragover",e)},v.DRAG_OVER_TIME)}clearDragoverInterval(){this.dragoverTimer&&(clearInterval(this.dragoverTimer),this.dragoverTimer=void 0)}};let w=v;w.THRESHOLD=5,w.OPACITY=.5,w.DBLCLICK=500,w.DRAG_OVER_TIME=300,w.CTX_MENU=900,w.IS_PRESS_HOLD_MODE=!0,w.PRESS_HOLD_AWAIT=400,w.PRESS_HOLD_MARGIN=25,w.PRESS_HOLD_THRESHOLD=0,w.DRAG_HANDLE_ATTR="data-drag-handle-selector",w.rmvAttrs="id,class,style,draggable".split(","),w.kbdProps="altKey,ctrlKey,metaKey,shiftKey".split(","),w.ptProps="pageX,pageY,clientX,clientY,screenX,screenY".split(","),w.instance=null,(i=>{class e{get dropEffect(){return this._dropEffect}set dropEffect(r){this._dropEffect=r}get effectAllowed(){return this._effectAllowed}set effectAllowed(r){this._effectAllowed=r}get types(){return Object.keys(this._data)}constructor(){this._dropEffect="move",this._effectAllowed="all",this._data={}}clearData(r){r!==null?delete this._data[r]:this._data=null}getData(r){return this._data[r]||""}setData(r,n){this._data[r]=n}setDragImage(r,n,s){const o=i.getInstance();o.imgCustom=r,o.imgOffset={x:n,y:s}}}i.DataTransfer=e})(w||(w={}));class O{constructor(){this.dropTargets=[],this.dropEvent=new x,this.dragEndEvent=new x,this.dragStartEvent=new x,this.subscription=new C,this.dragItemParentName="",this.dragItemChildrenName="",this.intersectionObserver=null,this.dragElShowHideEvent=new x,this.followMouse4CloneNode=e=>{const{offsetLeft:t,offsetTop:r}=this.dragOffset,{clientX:n,clientY:s}=e;requestAnimationFrame(()=>{!this.dragCloneNode||(this.dragCloneNode.style.left=n-t+"px",this.dragCloneNode.style.top=s-r+"px")})},this.touchInstance=w.getInstance()}get dragEmptyImage(){return this._dragEmptyImage||(this._dragEmptyImage=new Image,this._dragEmptyImage.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg=="),this._dragEmptyImage}get document(){return window.document}newSubscription(){return this.subscription.unsubscribe(),this.subscription=new C}enableDraggedCloneNodeFollowMouse(){if(!this.dragCloneNode){if(this.dragItemContainer=this.draggedEl.parentElement,this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate?(this.dragPreviewDirective.createPreview(),this.dragCloneNode=this.dragPreviewDirective.getPreviewElement(),this.dragItemContainer=this.document.body):this.dragCloneNode=this.draggedEl.cloneNode(!0),this.dragCloneNode.style.margin="0",this.dragFollowOptions&&this.dragFollowOptions.appendToBody&&(this.dragItemContainer=this.document.body,this.copyStyle(this.draggedEl,this.dragCloneNode)),this.dragItemChildrenName!==""){const r=this.dragItemParentName===""?this.dragCloneNode:this.document.querySelector(this.dragItemParentName),n=r.querySelectorAll(this.dragItemChildrenName);this.interceptChildNode(r,n)}const e=this.draggedEl.querySelectorAll("canvas"),t=this.dragCloneNode.querySelectorAll("canvas");if([].forEach.call(t,(r,n)=>{r.getContext("2d").drawImage(e[n],0,0)}),this.document.addEventListener("dragover",this.followMouse4CloneNode,{capture:!0,passive:!0}),this.dragCloneNode.style.width=this.dragOffset.width+"px",this.dragCloneNode.style.height=this.dragOffset.height+"px",!(this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate&&this.dragPreviewDirective.dragPreviewOptions&&this.dragPreviewDirective.dragPreviewOptions.skipBatchPreview)&&this.batchDragging&&this.batchDragData&&this.batchDragData.length>1){const r=this.document.createElement("div");if(r.appendChild(this.dragCloneNode),r.classList.add("batch-dragged-node"),this.batchDragStyle&&this.batchDragStyle.length&&this.batchDragStyle.indexOf("badge")>-1){const n=this.document.createElement("div");n.innerText=String(this.batchDragData.length),n.classList.add("batch-dragged-node-count"),r.style.position="relative";const s={position:"absolute",right:"5px",top:"-12px",height:"24px",width:"24px",borderRadius:"12px",fontSize:"14px",lineHeight:"24px",textAlign:"center",color:"#fff",background:["#5170ff","var(--brand-1, #5170ff)"]};f.addElStyles(n,s),r.appendChild(n)}if(this.batchDragStyle&&this.batchDragStyle.length&&this.batchDragStyle.indexOf("stack")>-1){let n=2;this.batchDragData.length===2&&(n=1);for(let s=0;s<n;s++){const o=this.dragCloneNode.cloneNode(!1),a={position:"absolute",left:-5*(s+1)+"px",top:-5*(s+1)+"px",zIndex:String(-(s+1)),width:this.dragOffset.width+"px",height:this.dragOffset.height+"px",background:"#fff",border:["1px solid #5170ff","1px solid var(--brand-1, #5170ff)"]};f.addElStyles(o,a),r.appendChild(o)}}this.dragCloneNode=r}this.dragCloneNode.classList.add("drag-clone-node"),this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate||(this.dragCloneNode.style.width=this.dragOffset.width+"px",this.dragCloneNode.style.height=this.dragOffset.height+"px"),this.dragCloneNode.style.position="fixed",this.dragCloneNode.style.zIndex="1090",this.dragCloneNode.style.pointerEvents="none",this.dragCloneNode.style.top=this.dragOffset.top+"px",this.dragCloneNode.style.left=this.dragOffset.left+"px",this.dragCloneNode.style.willChange="left, top",this.dragItemContainer.appendChild(this.dragCloneNode),setTimeout(()=>{this.draggedEl&&(this.draggedEl.style.display="none",this.dragElShowHideEvent.next(!1),this.dragOriginPlaceholder&&(this.dragOriginPlaceholder.style.display="block"))})}}disableDraggedCloneNodeFollowMouse(){this.dragCloneNode&&(this.document.removeEventListener("dragover",this.followMouse4CloneNode,{capture:!0}),this.dragItemContainer.removeChild(this.dragCloneNode),this.draggedEl.style.display="",this.dragElShowHideEvent.next(!0)),this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate&&this.dragPreviewDirective.destroyPreview(),this.dragCloneNode=void 0,this.dragItemContainer=void 0,this.intersectionObserver&&this.intersectionObserver.disconnect()}interceptChildNode(e,t){const r={root:e};this.intersectionObserver=new IntersectionObserver(this.setChildNodeHide,r),[].forEach.call(t,n=>{this.intersectionObserver.observe(n)})}setChildNodeHide(e){e.forEach(t=>{const{isIntersecting:r,target:n}=t;r?n.style.display="block":n.style.display="none"})}getBatchDragData(e,t="draggedElFirst"){const r=this.batchDragData.map(n=>n.dragData);if(typeof t=="function")r.sort(t);else if(t==="draggedElFirst"){let n=this.dragData;e&&(n=this.batchDragData.filter(o=>o.identity===e).pop().dragData),r.splice(r.indexOf(n),1),r.splice(0,0,n)}return r}cleanBatchDragData(){const e=this.batchDragData;return this.batchDragData&&(this.batchDragData.filter(t=>t.draggable).map(t=>t.draggable).forEach(t=>{t.batchDraggable.dragData=void 0}),this.batchDragData=void 0,this.batchDragGroup=void 0),e}copyStyle(e,t){["id","class","style","draggable"].forEach(function(n){t.removeAttribute(n)});const r=getComputedStyle(e);for(let n=0;n<r.length;n++){const s=r[n];s.indexOf("transition")<0&&(t.style[s]=r[s])}t.style.pointerEvents="none";for(let n=0;n<e.children.length;n++)this.copyStyle(e.children[n],t.children[n])}}O.TOKEN=Symbol("DRAG_DROP_SERVICE_TOKEN");function vr(){const i=new O;return m.provide(O.TOKEN,new O),i}class F extends x{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){let n,s=l=>null,o=()=>null;e&&typeof e=="object"?(n=this.__isAsync?l=>{setTimeout(()=>e.next(l))}:l=>{e.next(l)},e.error&&(s=this.__isAsync?l=>{setTimeout(()=>e.error(l))}:l=>{e.error(l)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(n=this.__isAsync?l=>{setTimeout(()=>e(l))}:l=>{e(l)},t&&(s=this.__isAsync?l=>{setTimeout(()=>t(l))}:l=>{t(l)}),r&&(o=this.__isAsync?()=>{setTimeout(()=>r())}:()=>{r()}));const a=super.subscribe(n,s,o);return e instanceof C&&e.add(a),a}}class et extends F{constructor(){super(...arguments),this._isAsync=!1}get schedulerFns(){return this._schedulerFns}forceCallback(e,t=!1){this.schedulerFns&&this.schedulerFns.size&&(this.schedulerFns.forEach(r=>{r(e)}),t&&this.cleanCallbackFn())}cleanCallbackFn(){this._schedulerFns=void 0}subscribe(e,t,r){let n;return e&&typeof e=="object"?n=this._isAsync?s=>{setTimeout(()=>e.next(s))}:s=>{e.next(s)}:n=this._isAsync?s=>{setTimeout(()=>e(s))}:s=>{e(s)},this._schedulerFns||(this._schedulerFns=new Set),this._schedulerFns.add(n),super.subscribe(e,t,r)}}class Dr{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}class M{constructor(){this.__eventListenerMap=new Map,this.el={nativeElement:null},this.hostBindingMap=void 0,this.hostListenerMap=void 0,this.inputNameMap=void 0,this.outputNameMap=void 0}mounted(){this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(e=>{this[e]!==void 0&&this.hostBinding(this.hostBindingMap[e],e)}),this.hostListenerMap&&this.el.nativeElement&&Object.keys(this.hostListenerMap).forEach(e=>{this[e]&&this.hostListener(this.hostListenerMap[e],e)})}setInput(e){if(!e)return;const t=new Map;Object.keys(e).forEach(r=>{if(r.startsWith("@")){const n=this.getOutputKey(r.slice(1));this.eventListener(n,e[r])}else{const n=this.getInputKey(r),s=this[n];this[n]=e[r],t.set(n,{previousValue:s,currentValue:e[r],firstChange:!0})}}),this.notifyOnChanges(t),this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(r=>{e[r]&&this.hostBinding(this.hostBindingMap[r],r)})}updateInput(e,t){const r=new Map;e&&Object.keys(e).forEach(n=>{const s=this.getInputKey(n);e[n]!==(t==null?void 0:t[n])&&r.set(s,{previousValue:t[n],currentValue:e[n],firstChange:t[n]===void 0})}),t&&Object.keys(t).filter(n=>!Object.keys(e).includes(n)).forEach(n=>{if(t[n]!==(e==null?void 0:e[n])){const s=this.getInputKey(n);r.set(s,{previousValue:t[n],currentValue:e[n],firstChange:t[n]===void 0})}}),r.forEach((n,s)=>{s.startsWith("@")?this.eventListener(s.slice(1),n.currentValue):this[s]=n.currentValue}),this.notifyOnChanges(r),this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(n=>{r.get(n)&&this.hostBinding(this.hostBindingMap[n],n)})}hostBinding(e,t){const r=this.el.nativeElement,n=this[t];r.setAttribute(e,n)}hostListener(e,t){this.el.nativeElement.addEventListener(e,this[t].bind(this))}eventListener(e,t){var n;const r=this[e].subscribe(s=>{t(s)});this.__eventListenerMap.get(e)&&((n=this.__eventListenerMap.get(e))==null||n.unsubscribe(),this.__eventListenerMap.delete(e)),this.__eventListenerMap.set(e,r)}getInputKey(e){return this.inputNameMap&&this.inputNameMap[e]||e}getOutputKey(e){return this.outputNameMap&&this.outputNameMap[e]||e}notifyOnChanges(e){if(this.ngOnChanges){const t=[...e.entries()].filter(([r,n])=>!r.startsWith("@")).reduce((r,[n,s])=>{const{previousValue:o,currentValue:a,firstChange:l}=s;return r[n]=new Dr(o,a,l),r},{});Object.keys(t).length&&this.ngOnChanges(t)}}}const tt=m.defineComponent({name:"DDragPreviewTemplate",setup(i,{slots:e,expose:t}){return t({template:e.default}),()=>null}}),rt=m.defineComponent({name:"DDragPreviewContainer",props:{template:Function,context:Object},setup(i){return()=>{var e;return(e=i.template)==null?void 0:e.call(i,i.context)}}});class G extends M{constructor(e,t){super(),this.dragDropService=t,this.inputNameMap={dragPreview:"dragPreviewTemplate"},this.dragPreviewOptions={skipBatchPreview:!1},this.el={nativeElement:null},this.el.nativeElement=e}createPreview(){var o;const e={data:this.dragPreviewData,draggedEl:this.dragDropService.draggedEl,dragData:this.dragDropService.dragData,batchDragData:this.dragDropService.batchDragData&&this.dragDropService.getBatchDragData(),dragSyncDOMElements:this.dragDropService.dragSyncGroupDirectives&&this.getDragSyncDOMElements()},t=m.createApp(rt,{context:e,template:(o=this.dragPreviewTemplate)==null?void 0:o.template});t._context.provides=Object.create(this.context);const r=document.createElement("div"),n=t.mount(r),s=()=>{t.unmount()};this.previewRef={instance:n,element:r,unmount:s}}destroyPreview(){this.previewRef&&(this.previewRef.unmount(),this.previewRef=void 0)}getPreviewElement(){return this.previewRef&&this.previewRef.element}getDragSyncDOMElements(){return this.dragDropService.dragSyncGroupDirectives.map(e=>e.el.nativeElement)}}G.INSTANCE_KEY="__vueDevuiDragPreviewDirectiveInstance",G.TOKEN=Symbol("DRAG_PREVIEW_DIRECTIVE_TOKEN");var mr={mounted(i,e,t){const r=t.ctx.provides,n=y(O.TOKEN,r),s=i[G.INSTANCE_KEY]=new G(i,n);q(G.TOKEN,s,r),s.setInput({context:r}),s.setInput(e.value),s.mounted()},updated(i,e){i[G.INSTANCE_KEY].updateInput(e.value,e.oldValue)}};class _ extends M{constructor(e,t,r){super(),this.hostBindingMap={draggable:"draggable","data-drag-handle-selector":"dragHandle"},this.draggable=!0,this.dragScope="default",this.dragHandleClass="drag-handle",this.dragEffect="move",this._disabled=!1,this.dragStartEvent=new F,this.dragEvent=new et,this.dragEndEvent=new F,this.dropEndEvent=new et,this.document=window.document,this.enableDragFollow=!1,this.dragItemParentName="",this.dragItemChildrenName="",this.dragsSub=new C,this.destroyDragEndSub=new C,this.dragElShowHideEvent=new x,this.beforeDragStartEvent=new x,this.el={nativeElement:null},this.insertOriginPlaceholder=(n=!0,s=!0)=>{var l,c,d;this.delayRemoveOriginPlaceholderTimer&&(clearTimeout(this.delayRemoveOriginPlaceholderTimer),this.delayRemoveOriginPlaceholderTimer=void 0);const o=this.document.createElement(((l=this.originPlaceholder)==null?void 0:l.tag)||"div"),a=this.el.nativeElement.getBoundingClientRect();if(n?o.style.display="block":o.style.display="none",o.style.width=a.width+"px",o.style.height=a.height+"px",o.classList.add("drag-origin-placeholder"),(c=this.originPlaceholder)!=null&&c.text&&(o.innerText=this.originPlaceholder.text),(d=this.originPlaceholder)!=null&&d.style&&f.addElStyles(o,this.originPlaceholder.style),s)this.dragDropService.dragOriginPlaceholder=o,this.dragDropService.dragOriginPlaceholderNextSibling=this.el.nativeElement.nextSibling;else{o.classList.add("side-drag-origin-placeholder");const h=this.el.nativeElement.cloneNode(!0);h.style.margin=0,h.style.pointerEvents="none",h.style.opacity="0.3",o.appendChild(h)}this.dragOriginPlaceholder=o,this.dragOriginPlaceholderNextSibling=this.el.nativeElement.nextSibling,this.el.nativeElement.parentElement.insertBefore(o,this.el.nativeElement.nextSibling)},this.removeOriginPlaceholder=(n=!0)=>{var s;this.dragOriginPlaceholder&&((s=this.dragOriginPlaceholder.parentElement)==null||s.removeChild(this.dragOriginPlaceholder)),n&&(this.dragDropService.dragOriginPlaceholder=void 0,this.dragDropService.dragOriginPlaceholderNextSibling=void 0),this.dragOriginPlaceholder=void 0,this.dragOriginPlaceholderNextSibling=void 0},this.delayRemoveOriginPlaceholder=(n=!0)=>{var l,c;const s=(l=this.originPlaceholder)==null?void 0:l.removeDelay,o=this.dragOriginPlaceholder,a=this.findNextSibling(this.dragOriginPlaceholderNextSibling);(c=o==null?void 0:o.parentElement)!=null&&c.contains(a)&&o.parentElement.insertBefore(o,a),setTimeout(()=>{var d;(d=o==null?void 0:o.parentElement)!=null&&d.contains(a)&&o.parentElement.insertBefore(o,a),o==null||o.classList.add("delay-deletion"),this.delayRemoveOriginPlaceholderTimer=setTimeout(()=>{var h;(h=o==null?void 0:o.parentElement)==null||h.removeChild(o),this.document.body.contains(this.el.nativeElement)&&(this.el.nativeElement.style.display="",this.dragDropService.dragElShowHideEvent.next(!1))},s),n&&(this.dragDropService.dragOriginPlaceholder=void 0,this.dragDropService.dragOriginPlaceholderNextSibling=void 0),this.dragOriginPlaceholder=void 0,this.dragOriginPlaceholderNextSibling=void 0})},this.el.nativeElement=e,this.dragDropService=t,this.dragPreviewDirective=r}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.draggable=!this._disabled}ngOnInit(){this.dragsSub.add(E(this.el.nativeElement,"mouseover").subscribe(e=>this.mouseover(e))),this.dragsSub.add(E(this.el.nativeElement,"dragstart").subscribe(e=>this.dragStart(e))),this.dragsSub.add(E(this.el.nativeElement,"dragend").subscribe(e=>this.dragEnd(e)))}dropSubscription(){const e=this.dragDropService.newSubscription();e.add(this.dragDropService.dropEvent.subscribe(t=>{this.mouseOverElement=void 0,f.removeClass(this.el.nativeElement,this.dragOverClass),this.dropEndEvent.emit(t),this.isDestroyed&&this.dropEndEvent.schedulerFns&&this.dropEndEvent.schedulerFns.size>0&&this.dropEndEvent.forceCallback(t,!0),this.dragDropService.dragOriginPlaceholder&&(this.originPlaceholder&&this.originPlaceholder.removeDelay>0&&!this.dragDropService.dropOnOrigin?this.delayRemoveOriginPlaceholder():this.removeOriginPlaceholder(),this.dragDropService.draggedElIdentity=void 0),this.dragDropService.subscription.unsubscribe()})),e.add(this.dragDropService.dragElShowHideEvent.subscribe(this.dragElShowHideEvent))}ngAfterViewInit(){this.applyDragHandleClass(),this.dragIdentity&&this.dragDropService.draggedEl&&this.dragIdentity===this.dragDropService.draggedElIdentity&&(this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.insertOriginPlaceholder(),this.dragDropService.draggedEl=this.el.nativeElement,this.el.nativeElement.style.display="none")}ngOnDestroy(){this.isDestroyed=!0,this.dragDropService.draggedEl===this.el.nativeElement&&(this.destroyDragEndSub=new C,this.destroyDragEndSub.add(E(this.el.nativeElement,"dragend").subscribe(e=>{this.dragEnd(e),this.dropEndEvent.schedulerFns&&this.dropEndEvent.schedulerFns.size>0&&this.dropEndEvent.forceCallback(e,!0),this.destroyDragEndSub.unsubscribe(),this.destroyDragEndSub=void 0})),this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.dragDropService.dragOriginPlaceholder&&this.dragDropService.draggedElIdentity&&this.removeOriginPlaceholder()),this.dragsSub.unsubscribe()}dragStart(e){var t;if(this.allowDrag(e)){f.addClass(this.el.nativeElement,this.dragOverClass),this.dragDropService.dragData=this.dragData,this.dragDropService.scope=this.dragScope,this.dragDropService.draggedEl=this.el.nativeElement,this.dragDropService.draggedElIdentity=this.dragIdentity,this.dragDropService.dragFollow=this.enableDragFollow,this.dragDropService.dragFollowOptions=this.dragFollowOptions,this.dragDropService.dragItemParentName=this.dragItemParentName,this.dragDropService.dragItemChildrenName=this.dragItemChildrenName,this.beforeDragStartEvent.next(!0),this.dragPreviewDirective&&((t=this.dragPreviewDirective)==null?void 0:t.dragPreviewTemplate)&&(this.dragDropService.dragFollow=!0,this.dragDropService.dragPreviewDirective=this.dragPreviewDirective),this.batchDraggable&&(this.batchDraggable.dragData?this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&(this.dragDropService.batchDragging=!0,this.dragDropService.batchDragStyle=this.batchDraggable.batchDragStyle):this.batchDraggable.batchDragLastOneAutoActiveEventKeys&&this.batchDraggable.batchDragLastOneAutoActiveEventKeys.map(s=>e[s]).some(s=>s===!0)&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>0&&(this.batchDraggable.active(),this.batchDraggable.dragData||this.batchDraggable.addToBatchGroup(),this.dragDropService.batchDragData.some(s=>s.draggable===this)&&(this.dragDropService.batchDragging=!0,this.dragDropService.batchDragStyle=this.batchDraggable.batchDragStyle)));const r=this.el.nativeElement.getBoundingClientRect();if(this.dragDropService.dragFollow){const n=this.mousePosition(e),s=this.checkAndGetViewPointChange(this.el.nativeElement);this.dragDropService.dragOffset={left:r.left,top:r.top,offsetLeft:n.x-r.left+s.offsetX,offsetTop:n.y-r.top+s.offsetY,width:r.width,height:r.height},this.dragDropService.enableDraggedCloneNodeFollowMouse()}else this.dragDropService.dragOffset={left:r.left,top:r.top,offsetLeft:null,offsetTop:null,width:r.width,height:r.height};this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.insertOriginPlaceholder(!1),this.dragDropService.batchDragging&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&this.dragDropService.batchDragData.map(n=>n.draggable).filter(n=>n&&n!==this).forEach(n=>{n.originPlaceholder&&n.originPlaceholder.show!==!1?(n.insertOriginPlaceholder(!0,!1),n.el.nativeElement.style.display="none"):setTimeout(()=>{n.el.nativeElement.style.display="none"})}),e.dataTransfer!==null&&e.dataTransfer.setData("text",""),e.dataTransfer.effectAllowed=this.dragEffect,this.dropSubscription(),this.dragDropService.dragFollow&&(typeof DataTransfer.prototype.setDragImage=="function"?e.dataTransfer.setDragImage(this.dragDropService.dragEmptyImage,0,0):(e.srcElement.style.display="none",this.dragDropService.dragElShowHideEvent.next(!1))),e.stopPropagation(),this.dragStartEvent.emit(e),this.dragDropService.dragStartEvent.next(e)}else e.preventDefault()}dragEnd(e){f.removeClass(this.el.nativeElement,this.dragOverClass),this.dragDropService.dragEndEvent.next(e),this.mouseOverElement=void 0,this.dragDropService.draggedEl&&(this.dragDropService.dragFollow&&this.dragDropService.disableDraggedCloneNodeFollowMouse(),this.dragDropService.dragOriginPlaceholder&&this.removeOriginPlaceholder(),this.dragDropService.batchDragging&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&this.dragDropService.batchDragData.map(t=>t.draggable).filter(t=>t&&t!==this).forEach(t=>{t.originPlaceholder&&t.originPlaceholder.show!==!1?(t.el.nativeElement.style.display="",t.removeOriginPlaceholder()):t.el.nativeElement.style.display=""}),this.batchDraggable&&!this.batchDraggable.batchDragActive&&(this.batchDraggable.removeFromBatchGroup(),this.dragDropService.batchDragging=!1,this.dragDropService.batchDragStyle=void 0),this.dragDropService.subscription&&this.dragDropService.subscription.unsubscribe(),this.dragDropService.dragData=void 0,this.dragDropService.scope=void 0,this.dragDropService.draggedEl=void 0,this.dragDropService.dragFollow=void 0,this.dragDropService.dragFollowOptions=void 0,this.dragDropService.dragOffset=void 0,this.dragDropService.draggedElIdentity=void 0,this.dragDropService.dragPreviewDirective=void 0),e.stopPropagation(),e.preventDefault(),this.dragEndEvent.emit(e)}mouseover(e){this.mouseOverElement=e.target}allowDrag(e){return!this.draggable||this.batchDraggable&&!this.batchDraggable.allowAddToBatchGroup()?!1:this.dragHandle?e&&e.fromTouch?!0:this.mouseOverElement?f.matches(this.mouseOverElement,this.dragHandle):!1:!0}applyDragHandleClass(){const e=this.getDragHandleElement();!e||(this.draggable?f.addClass(e,this.dragHandleClass):f.removeClass(this.el,this.dragHandleClass))}getDragHandleElement(){let e=this.el;return this.dragHandle&&(e=this.el.nativeElement.querySelector(this.dragHandle)),e}mousePosition(e){return{x:e.clientX,y:e.clientY}}findNextSibling(e){return this.dragDropService.batchDragData&&this.dragDropService.batchDragData.map(t=>t.draggable&&t.draggable.el.nativeElement).indexOf(e)>-1&&(e=e.nextSibling),e}checkAndGetViewPointChange(e){if(!e.parentNode)return null;const t=e.getBoundingClientRect(),r=this.document.createElement("div");f.addElStyles(r,{opacity:"0",position:"fixed",top:t.top+"px",left:t.left+"px",width:"1px",height:"1px",zIndex:"-999999"}),e.parentNode.appendChild(r);const n=r.getBoundingClientRect();return e.parentNode.removeChild(r),{offsetX:n.left-t.left,offsetY:n.top-t.top}}}_.INSTANCE_KEY="__vueDevuiDraggableDirectiveInstance",_.TOKEN=Symbol("DRAGGABLE_DIRECTIVE_TOKEN");var it={mounted(i,e,t){var a,l,c;const r=(a=t.ctx)==null?void 0:a.provides,n=y(O.TOKEN,r);let s=y(G.TOKEN,r);(s==null?void 0:s.el.nativeElement)!==i&&(s=void 0);const o=i[_.INSTANCE_KEY]=new _(i,n,s);q(_.TOKEN,o,r),o.setInput(e.value),o.mounted(),(l=o.ngOnInit)==null||l.call(o),(c=o.ngAfterViewInit)==null||c.call(o)},updated(i,e){i[_.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[_.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class nt{constructor(e,t,r,n,s,o,a,l){this.nativeEvent=e,this.dragData=t,this.dropSubject=r,this.dropIndex=n,this.dragFromIndex=s,this.dropOnItem=o,this.dropOnOrigin=a,this.batchDragData=l}}class B extends M{constructor(e,t){super(),this.hostListenerMap={drop:"drop"},this.dragEnterEvent=new F,this.dragOverEvent=new F,this.dragLeaveEvent=new F,this.dropEvent=new F,this.dropScope="default",this.placeholderTag="div",this.placeholderStyle={backgroundColor:["#859bff","var(--devui-brand-foil, #859bff)"],opacity:".4"},this.placeholderText="",this.allowDropOnItem=!1,this.switchWhileCrossEdge=!1,this.defaultDropPosition="closest",this.dragCount=0,this.dropIndex=void 0,this.placeholderInsertionEvent=new x,this.placeholderRenderEvent=new x,this.el={nativeElement:null},this.dropSortCountSelectorFilterFn=r=>f.matches(r,this.dropSortCountSelector)||r.contains(this.placeholder)||r===this.dragDropService.dragOriginPlaceholder,this.setPlaceholder=()=>{this.placeholder.style.width=this.dragDropService.dragOffset.width+"px",this.placeholder.style.height=this.dragDropService.dragOffset.height+"px",f.addElStyles(this.placeholder,this.placeholderStyle),this.placeholderRenderEvent.next({width:this.dragDropService.dragOffset.width,height:this.dragDropService.dragOffset.height})},this.document=window.document,this.el.nativeElement=e,this.dragDropService=t}ngOnInit(){this.placeholder=this.document.createElement(this.placeholderTag),this.placeholder.className="drag-placeholder",this.placeholder.innerText=this.placeholderText,this.dragStartSubscription=this.dragDropService.dragStartEvent.subscribe(()=>this.setPlaceholder()),this.dragDropService.draggedEl&&this.setPlaceholder(),this.dropEndSubscription=this.dragDropService.dropEvent.subscribe(()=>{this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(f.addElStyles(this.dragDropService.draggedEl,{display:""}),this.dragDropService.dragElShowHideEvent.next(!0))),this.removePlaceholder(),this.overElement=void 0,this.allowDropCache=void 0,this.dragElIndex=void 0,this.dropIndex=void 0}),this.dragEndSubscription=this.dragDropService.dragEndEvent.subscribe(()=>{this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(f.addElStyles(this.dragDropService.draggedEl,{display:""}),this.dragDropService.dragElShowHideEvent.next(!0))),this.removePlaceholder(),this.dragCount=0,this.overElement=void 0,this.allowDropCache=void 0,this.dragElIndex=void 0,this.dropIndex=void 0}),this.dragPartEventSub=new C,this.dragPartEventSub.add(E(this.el.nativeElement,"dragover").pipe(hr(e=>this.allowDrop(e)),gr((e,t)=>{const r=e.clientX===t.clientX&&e.clientY===t.clientY&&e.target===t.target;return r&&(t.preventDefault(),t.stopPropagation()),r})).subscribe(e=>this.dragOver(e))),this.dragPartEventSub.add(E(this.el.nativeElement,"dragenter").subscribe(e=>this.dragEnter(e))),this.dragPartEventSub.add(E(this.el.nativeElement,"dragleave").subscribe(e=>this.dragLeave(e)))}ngAfterViewInit(){this.el.nativeElement.hasAttribute("d-sortable")?this.sortContainer=this.el.nativeElement:this.sortContainer=this.el.nativeElement.querySelector("[d-sortable]"),this.sortDirection=this.sortContainer&&this.sortContainer.getAttribute("dsortable")||"v",this.sortDirectionZMode=this.sortContainer&&this.sortContainer.getAttribute("d-sortable-zmode")==="true"||!1}ngOnDestroy(){var e,t,r;(e=this.dragStartSubscription)==null||e.unsubscribe(),(t=this.dragEndSubscription)==null||t.unsubscribe(),(r=this.dropEndSubscription)==null||r.unsubscribe(),this.dragPartEventSub&&this.dragPartEventSub.unsubscribe()}dragEnter(e){this.dragCount++,e.preventDefault(),this.dragEnterEvent.emit(e)}dragOver(e){if(this.allowDrop(e)){this.dragDropService.dropTargets.indexOf(this.el)===-1&&(this.dragDropService.dropTargets.forEach(r=>{const n=r.nativeElement.querySelector(".drag-placeholder");n&&n.parentElement.removeChild(n),f.removeClass(r,this.dragOverClass),this.removeDragoverItemClass(r.nativeElement)}),this.dragDropService.dropTargets=[this.el],this.overElement=void 0),f.addClass(this.el,this.dragOverClass);const t=this.dragDropService.dragOriginPlaceholder&&this.dragDropService.dragOriginPlaceholder.contains(e.target);if(this.sortContainer&&(t&&this.overElement===void 0||!(e.target.contains(this.placeholder)||t)||this.switchWhileCrossEdge&&!this.placeholder.contains(e.target)&&!t||!this.sortContainer.contains(e.target)&&this.defaultDropPosition==="closest")){const r=this.findSortableEl(e);!(this.overElement&&r)||this.overElement.index!==r.index||this.allowDropOnItem&&this.overElement.position!==r.position&&(this.overElement.position==="inside"||r.position==="inside")?(this.overElement=r,this.insertPlaceholder(r),this.removeDragoverItemClass(this.sortContainer,r),r.position==="inside"&&this.dragOverItemClass&&f.addClass(r.el,this.dragOverItemClass)):this.overElement=r}else this.sortContainer&&this.overElement&&this.overElement.el&&(this.overElement.el.contains(e.target)?this.overElement.realEl=void 0:this.overElement.realEl=e.target);this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(f.addElStyles(this.dragDropService.draggedEl,{display:"none"}),this.dragDropService.dragElShowHideEvent.next(!1),this.dragDropService.dragOriginPlaceholder&&f.addElStyles(this.dragDropService.dragOriginPlaceholder,{display:"block"}))),e.preventDefault(),e.stopPropagation(),this.dragOverEvent.emit(e)}}dragLeave(e){this.dragCount--,this.dragCount===0&&(this.dragDropService.dropTargets.indexOf(this.el)!==-1&&(this.dragDropService.dropTargets=[]),f.removeClass(this.el,this.dragOverClass),this.removePlaceholder(),this.removeDragoverItemClass(this.el.nativeElement),this.overElement=void 0,this.dragElIndex=void 0,this.dropIndex=void 0),e.preventDefault(),this.dragLeaveEvent.emit(e)}drop(e){if(!this.allowDrop(e))return;this.dragCount=0,f.removeClass(this.el,this.dragOverClass),this.removeDragoverItemClass(this.sortContainer),this.removePlaceholder(),e.preventDefault(),e.stopPropagation(),this.dragDropService.dropOnOrigin=this.isDragPlaceholderPosition(this.dropIndex);const t=this.dragDropService.draggedElIdentity;this.dragDropService.draggedElIdentity=void 0;let r=[];this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&(r=this.dragDropService.batchDragData.map(n=>n.draggable).filter(n=>n&&n.el.nativeElement!==this.dragDropService.draggedEl)),this.dropEvent.emit(new nt(e,this.dragDropService.dragData,this.dragDropService.dropEvent,this.dropSortVirtualScrollOption?this.getRealIndex(this.dropIndex,this.dropFlag):this.dropIndex,this.sortContainer?this.checkSelfFromIndex(this.dragDropService.draggedEl):-1,this.dragDropService.dropOnItem,this.dragDropService.dropOnOrigin,this.dragDropService.batchDragging?this.dragDropService.getBatchDragData(t):void 0)),this.dragDropService.dragFollow?this.dragDropService.disableDraggedCloneNodeFollowMouse():(f.addElStyles(this.dragDropService.draggedEl,{display:void 0}),this.dragDropService.dragElShowHideEvent.next(!1)),r.length>0&&this.dragDropService.batchDragging&&r.forEach(n=>{!n.originPlaceholder||n.originPlaceholder.show===!1?n.el.nativeElement.style.display="":n.originPlaceholder.removeDelay>0&&!this.dragDropService.dropOnOrigin?n.delayRemoveOriginPlaceholder(!1):(n.el.nativeElement.style.display="",n.removeOriginPlaceholder(!1))}),this.dragDropService.dropEvent.next(e),this.dragDropService.dragData=void 0,this.dragDropService.scope=void 0,this.dragDropService.draggedEl=void 0,this.dragDropService.dragFollow=void 0,this.dragDropService.dragFollowOptions=void 0,this.dragDropService.dragOffset=void 0,this.dragDropService.dropOnOrigin=void 0,this.dragDropService.batchDragging=!1,this.dragDropService.batchDragStyle=void 0,this.dragDropService.dragPreviewDirective=void 0}allowDrop(e){if(!e)return!1;if(this.allowDropCache!==void 0)return this.allowDropCache;let t=!1;return typeof this.dropScope=="string"&&(typeof this.dragDropService.scope=="string"&&(t=this.dragDropService.scope===this.dropScope),this.dragDropService.scope instanceof Array&&(t=this.dragDropService.scope.indexOf(this.dropScope)>-1)),this.dropScope instanceof Array&&(typeof this.dragDropService.scope=="string"&&(t=this.dropScope.indexOf(this.dragDropService.scope)>-1),this.dragDropService.scope instanceof Array&&(t=this.dropScope.filter(r=>this.dragDropService.scope.indexOf(r)!==-1).length>0)),this.allowDropCache=t,t}findSortableEl(e){var c;const t=e.target;let r=null;if(!this.sortContainer)return r;r={index:0,el:null,position:"before"},this.dropIndex=0,this.dropFlag=void 0;let n=f.slice(this.sortContainer.children);if(this.dropSortCountSelector&&(n=n.filter(this.dropSortCountSelectorFilterFn)),n.some(d=>d!==this.dragDropService.dragOriginPlaceholder&&d.classList.contains("drag-origin-placeholder"))&&(n=n.filter(d=>!(d.classList.contains("drag-origin-placeholder")&&d!==this.dragDropService.dragOriginPlaceholder))),this.dragDropService.dragFollow&&this.dragDropService.dragCloneNode){const d=n.findIndex(h=>h===this.dragDropService.dragCloneNode);d!==-1&&n.splice(d,1)}if(this.dragDropService.dragOriginPlaceholder){const d=n.findIndex(h=>h===this.dragDropService.dragOriginPlaceholder);d!==-1?(this.dragElIndex=d-1,n.splice(d,1)):this.dragElIndex=-1}else this.dragElIndex=-1;const s=n.findIndex(d=>d.contains(this.placeholder));s!==-1&&n.splice(s,1),s!==-1&&this.dragElIndex!==-1&&s<this.dragElIndex&&this.dragElIndex--;const o=s!==-1?s:this.dragElIndex,a=n.findIndex(d=>d.contains(t)||d.nextElementSibling===t&&d.nextElementSibling.classList.contains("drag-origin-placeholder"));if(this.switchWhileCrossEdge&&!this.allowDropOnItem&&n.length&&o!==-1&&a>-1){const d=o,h=this.overElement&&(this.overElement.realEl||this.overElement.el);return a!==-1&&h===n[a]?(this.dropIndex=this.overElement.index,this.overElement):(r={index:d>a?a:a+1,el:n[a],position:d>a?"before":"after"},this.dragDropService.dropOnItem=!1,this.dropIndex=r.index,r)}if(t===this.sortContainer||((c=t.classList)==null?void 0:c.contains("drag-origin-placeholder"))||t===(this.dragDropService&&this.dragDropService.dragOriginPlaceholder)||!this.sortContainer.contains(t)&&this.defaultDropPosition==="closest"){if(!n.length)return this.dropIndex=0,this.dragDropService.dropOnItem=!1,r;let d=!1;for(let h=0;h<n.length;h++){const g=n[h];if(n[h].nextSibling===t&&t.classList.contains("drag-origin-placeholder")){const b=this.calcPosition(e,t);return this.dragDropService.dropOnItem=b==="inside",r={index:b==="after"?h+1:h,el:n[h],position:b},this.dropIndex=r.index,r}const S=this.calcPositionOutside(e,g);if(S==="before"){this.dragDropService.dropOnItem=!1,r={index:h,el:n[h],position:S,realEl:t},this.dropIndex=r.index,d=!0;break}}return d||(this.dragDropService.dropOnItem=!1,r={index:n.length,el:n[n.length-1],position:"after",realEl:t},this.dropIndex=n.length),r}if(!this.sortContainer.contains(t))return this.defaultDropPosition==="before"?(r={index:0,el:n.length?n[0]:null,position:"before",realEl:t},this.dropFlag="beforeAll"):(r={index:n.length,el:n.length?n[n.length-1]:null,position:"after",realEl:t},this.dropFlag="afterAll"),this.dropIndex=r.index,r;let l=!1;for(let d=0;d<n.length;d++)if(n[d].contains(t)){const h=n[d],g=this.calcPosition(e,h);this.dragDropService.dropOnItem=g==="inside",r={index:g==="after"?d+1:d,el:n[d],position:g},this.dropIndex=r.index,l=!0;break}return l||(n.length&&(r={index:n.length,el:n[n.length-1],position:"after"}),this.dropIndex=n.length,this.dragDropService.dropOnItem=!1),r}calcPosition(e,t){const r=t.getBoundingClientRect(),n=e.clientY-(r.y||r.top),s=e.clientX-(r.x||r.left);if(this.allowDropOnItem){const o={height:this.nestingTargetRect&&this.nestingTargetRect.height||r.height,width:this.nestingTargetRect&&this.nestingTargetRect.width||r.width},a=o.height*3/4,l=o.width*3/4,c=Number(o.height)/4,d=Number(o.width)/4;if(this.sortDirectionZMode){const h=n/o.height+s/o.width;if(h>.3&&h<=.7)return"inside";if(h>.7&&(n-r.height+o.height)/o.height+(s-r.width+o.width)/o.width<=.7)return"inside"}if(this.sortDirection==="v"&&n>c&&n<=a||this.sortDirection!=="v"&&s>d&&s<=l)return"inside";if(this.sortDirection==="v"&&n>a&&n<=r.height-c||this.sortDirection!=="v"&&s>l&&s<=r.width-d)return"inside"}return this.sortDirectionZMode?n/r.height+s/r.width<1?"before":"after":this.sortDirection==="v"&&n>r.height/2||this.sortDirection!=="v"&&s>r.width/2?"after":"before"}calcPositionOutside(e,t){const r=this.getBoundingRectAndRealPosition(t),n=e.clientY-(r.y||r.top),s=e.clientX-(r.x||r.left);return this.sortDirectionZMode?this.sortDirection==="v"&&(n<0||n<r.height&&s<0)||this.sortDirection!=="v"&&(s<0||s<r.width&&n<0)?"before":"notsure":this.sortDirection==="v"&&n<r.height/2||this.sortDirection!=="v"&&s<r.width/2?"before":"notsure"}insertPlaceholder(e){const t=this.sortContainer.scrollTop,r=this.sortContainer.scrollLeft;let n=!1,s;const o=(a,l,c)=>{const d=a.indexOf(l);return d>-1?d:c};if(e!==null){const a=f.slice(this.sortContainer.children).filter(l=>l!==this.dragDropService.dragCloneNode);e.el===null?(s={command:"append"},this.sortContainer.appendChild(this.placeholder)):e.position==="inside"?(s={command:"remove"},this.removePlaceholder()):this.dragDropService.dragOriginPlaceholder&&this.isDragPlaceholderPosition(e.index)?(s={command:"remove"},this.removePlaceholder(),n=!0):e.position==="after"?e.el.nextSibling&&e.el.nextSibling.classList&&e.el.nextSibling.classList.contains("drag-origin-placeholder")?(s={command:"insertBefore",index:o(a,e.el.nextSibling,a.length)+1},this.sortContainer.insertBefore(this.placeholder,e.el.nextSibling.nextSibling)):(s={command:"insertBefore",index:o(a,e.el,a.length)+1},this.sortContainer.insertBefore(this.placeholder,e.el.nextSibling)):(s={command:"insertBefore",index:o(a,e.el,a.length)},this.sortContainer.insertBefore(this.placeholder,e.el))}this.placeholderInsertionEvent.next(s),this.sortContainer.scrollTop=t,this.sortContainer.scrollLeft=r,this.dragDropService.dragOriginPlaceholder&&(n?this.hitDragOriginPlaceholder():this.hitDragOriginPlaceholder(!1))}isDragPlaceholderPosition(e){return this.dragElIndex>-1&&(e===this.dragElIndex||e===this.dragElIndex+1)}hitDragOriginPlaceholder(e=!0){const t=this.dragDropService.dragOriginPlaceholder;e?t.classList.add("hit-origin-placeholder"):t.classList.remove("hit-origin-placeholder")}removePlaceholder(){this.sortContainer&&this.sortContainer.contains(this.placeholder)&&(this.sortContainer.removeChild(this.placeholder),this.placeholderInsertionEvent.next({command:"remove"}))}removeDragoverItemClass(e,t){if(this.dragOverItemClass){const r=e.querySelectorAll("."+this.dragOverItemClass);if(r&&r.length>0)for(const n of r)t?(n!==t.el||t.position!=="inside")&&f.removeClass(n,this.dragOverItemClass):f.removeClass(n,this.dragOverItemClass)}}checkSelfFromIndex(e){let t=-1;if(!this.sortContainer.contains(e))return t;let r=f.slice(this.sortContainer.children);this.dropSortCountSelector&&(r=r.filter(this.dropSortCountSelectorFilterFn));for(let n=0;n<r.length;n++)if(r[n].contains(this.dragDropService.draggedEl)){t=n;break}return this.getRealIndex(t)}getRealIndex(e,t){let r;const n=this.dropSortVirtualScrollOption&&this.dropSortVirtualScrollOption.startIndex||0,s=this.dropSortVirtualScrollOption&&this.dropSortVirtualScrollOption.totalLength;return t==="beforeAll"?r=0:t==="afterAll"?r=s||e:r=n+e,r}getBoundingRectAndRealPosition(e){let t=e.getBoundingClientRect();const{bottom:r,right:n,width:s,height:o}=t;if(t.width===0&&t.height===0&&(e.style.display==="none"||getComputedStyle(e).display==="none")&&e.nextElementSibling){const{top:a,left:l}=e.nextElementSibling.getBoundingClientRect();t={x:l,y:a,top:a,left:l,bottom:r,right:n,width:s,height:o}}return t}getSortContainer(){return this.sortContainer}}B.INSTANCE_KEY="__vueDevuiDroppableDirectiveInstance",B.TOKEN=Symbol("DROPPABLE_DIRECTIVE_TOKEN");var st={mounted(i,e,t){var o;const r=t.ctx.provides,n=y(O.TOKEN,r),s=i[B.INSTANCE_KEY]=new B(i,n);q(B.TOKEN,s,r),s.setInput(e.value),s.mounted(),(o=s.ngOnInit)==null||o.call(s),setTimeout(()=>{var a;(a=s.ngAfterViewInit)==null||a.call(s)},0)},updated(i,e){i[B.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[B.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class te extends M{constructor(e){super(),this.dSortDirection="v",this.dSortableZMode=!1,this.dSortable=!0,this.hostBindingMap={dSortDirection:"dsortable",dSortableZMode:"d-sortable-zmode",dSortable:"d-sortable"},this.inputNameMap={dSortable:"dSortDirection"},this.el={nativeElement:null},this.el.nativeElement=e}}te.INSTANCE_KEY="__vueDevuiSortableDirectiveInstance";var ot={mounted(i,e){const t=i[te.INSTANCE_KEY]=new te(i);t.setInput(e.value),t.mounted()},updated(i,e){i[te.INSTANCE_KEY].updateInput(e.value,e.oldValue)}},at=(i=>(i[i.forward=0]="forward",i[i.backward=1]="backward",i))(at||{});const lt={default:i=>Math.ceil((1-i)*18)*100};class k extends M{constructor(e,t){super(),this.minSpeed=50,this.maxSpeed=1e3,this.responseEdgeWidth="100px",this.speedFn=lt.default,this.direction="v",this.backSpaceDroppable=!0,this.subscription=new C,this.el={nativeElement:null},this.el.nativeElement=e,this.dragDropService=t,this.document=window.document}ngAfterViewInit(){this.el.nativeElement.parentNode.style.position="relative",this.el.nativeElement.parentNode.style.display="block",this.forwardScrollArea=this.createScrollArea(this.direction,0),this.backwardScrollArea=this.createScrollArea(this.direction,1),this.forwardScrollFn=this.createScrollFn(this.direction,0,this.speedFn),this.backwardScrollFn=this.createScrollFn(this.direction,1,this.speedFn),this.subscription.add(E(this.forwardScrollArea,"dragover").pipe($e(e=>{e.preventDefault(),e.stopPropagation()}),ce(100,void 0,{leading:!0,trailing:!1})).subscribe(e=>this.forwardScrollFn(e))),this.subscription.add(E(this.backwardScrollArea,"dragover").pipe($e(e=>{e.preventDefault(),e.stopPropagation()}),ce(100,void 0,{leading:!0,trailing:!1})).subscribe(e=>this.backwardScrollFn(e))),this.subscription.add(ye(E(this.forwardScrollArea,"drop"),E(this.backwardScrollArea,"drop")).subscribe(e=>this.delegateDropEvent(e))),this.subscription.add(ye(E(this.forwardScrollArea,"dragleave",{passive:!0}),E(this.backwardScrollArea,"dragleave",{passive:!0})).subscribe(e=>this.cleanLastScrollTime())),this.subscription.add(E(this.el.nativeElement,"scroll",{passive:!0}).pipe(ce(300,void 0,{leading:!0,trailing:!0})).subscribe(e=>{this.toggleScrollToOneEnd(this.el.nativeElement,this.forwardScrollArea,this.direction,0),this.toggleScrollToOneEnd(this.el.nativeElement,this.backwardScrollArea,this.direction,1)})),this.subscription.add(E(window,"resize",{passive:!0}).pipe(ce(300,void 0,{leading:!0,trailing:!0})).subscribe(e=>this.resizeArea())),this.subscription.add(this.dragDropService.dragStartEvent.subscribe(()=>{!this.allowScroll()||setTimeout(()=>{this.forwardScrollArea.style.display="block",this.backwardScrollArea.style.display="block"})})),this.subscription.add(ye(this.dragDropService.dragEndEvent,this.dragDropService.dropEvent).subscribe(()=>{this.forwardScrollArea.style.display="none",this.backwardScrollArea.style.display="none",this.lastScrollTime=void 0})),setTimeout(()=>{this.resizeArea()},0)}ngOnDestroy(){this.subscription.unsubscribe()}createScrollFn(e,t,r){if(typeof window=="undefined")return;const n=e==="v"?"scrollTop":"scrollLeft",s=e==="v"?"clientY":"clientX",o=e==="v"?"scrollHeight":"scrollWidth",a=e==="v"?"offsetHeight":"offsetWidth",l=e==="v"?"clientHeight":"clientWidth",c=e==="v"?"height":"width",d=t===0?this.forwardScrollArea:this.backwardScrollArea,h=this.getCriticalEdge(e,t),g=this.el.nativeElement;return S=>{const b=d.getBoundingClientRect(),D=S[s]-b[h];let A=r(Math.abs(D/(b[c]||1)));A<this.minSpeed&&(A=this.minSpeed),A>this.maxSpeed&&(A=this.maxSpeed),D<0&&(A=-A),this.animationFrameId&&(window.cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0),this.animationFrameId=requestAnimationFrame(()=>{const I=new Date().getTime(),ee=Math.ceil(A*(I-(this.lastScrollTime||I))/1e3);g[n]-=ee,this.lastScrollTime=I,(g[n]===0&&t===1||g[n]+g.getBoundingClientRect()[c]-g[a]+g[l]===g[o]&&t===0)&&(d.style.pointerEvents="none",this.toggleActiveClass(d,!1)),this.animationFrameId=void 0}),this.backSpaceDroppable&&f.dispatchEventToUnderElement(S)}}delegateDropEvent(e){this.backSpaceDroppable&&f.dispatchEventToUnderElement(e).defaultPrevented&&(e.preventDefault(),e.stopPropagation())}getCriticalEdge(e,t){return e==="v"&&t===0&&"bottom"||e==="v"&&t===1&&"top"||e!=="v"&&t===0&&"right"||e!=="v"&&t===1&&"left"||"bottom"}getSecondEdge(e){return e==="v"&&"left"||e!=="v"&&"top"||"left"}createScrollArea(e,t){const r=this.document.createElement("div");return r.className=`dropover-scroll-area dropover-scroll-area-${this.getCriticalEdge(e,t)}`,r.classList.add("active"),this.setAreaSize(r,e,t),r.style.position="absolute",this.setAreaStyleLayout(r,e,t),r.style.display="none",this.el.nativeElement.parentNode.appendChild(r,this.el.nativeElement),r}setAreaSize(e,t,r){const n=this.el.nativeElement.getBoundingClientRect(),s=t==="v"?"height":"width",o=typeof this.responseEdgeWidth=="string"?this.responseEdgeWidth:this.responseEdgeWidth(n[s]),a=this.viewOffset&&(r===0?this.viewOffset.forward:this.viewOffset.backward);let l=t==="v"?n.width+"px":o,c=t==="v"?o:n.height+"px";a&&(a.widthOffset&&(l="calc("+l+" + "+a.widthOffset+"px)"),a.heightOffset&&(c="calc("+c+" + "+a.heightOffset+"px)")),e.style.width=l,e.style.height=c}setAreaStyleLayout(e,t,r){const n=this.el.nativeElement,s=this.el.nativeElement.parentNode,o={left:0,right:0,top:0,bottom:0},a=this.viewOffset&&(r===0?this.viewOffset.forward:this.viewOffset.backward)||o,l=this.getCriticalEdge(t,r),c=this.getSecondEdge(t);[l,c].forEach(d=>{e.style[d]=this.getRelatedPosition(n,s,d,a[d])})}getRelatedPosition(e,t,r,n){if(typeof window=="undefined")return"0px";const s=window.getComputedStyle(t),o=t.getBoundingClientRect(),a=e.getBoundingClientRect(),l={left:["left","Left"],right:["right","Right"],top:["top","Top"],bottom:["bottom","Bottom"]};let c=1;return(r==="right"||r==="bottom")&&(c=-1),(a[l[r][0]]-o[l[r][0]]+parseInt(s["border"+l[r][1]+"Width"],10))*c+(n||0)+"px"}resizeArea(){[{area:this.forwardScrollArea,orientation:0},{area:this.backwardScrollArea,orientation:1}].forEach(e=>{this.setAreaSize(e.area,this.direction,e.orientation),this.setAreaStyleLayout(e.area,this.direction,e.orientation)})}toggleScrollToOneEnd(e,t,r,n){const s=r==="v"?"scrollTop":"scrollLeft",o=r==="v"?"scrollHeight":"scrollWidth",a=r==="v"?"offsetHeight":"offsetWidth",l=r==="v"?"clientHeight":"clientWidth",c=r==="v"?"height":"width";e[s]===0&&n===1||Math.abs(e[s]+e.getBoundingClientRect()[c]-e[o]-e[a]+e[l])<1&&n===0?(t.style.pointerEvents="none",this.toggleActiveClass(t,!1)):(t.style.pointerEvents="auto",this.toggleActiveClass(t,!0))}cleanLastScrollTime(){this.animationFrameId&&typeof window!="undefined"&&(window.cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0),this.lastScrollTime=void 0}toggleActiveClass(e,t){t?(e.classList.remove("inactive"),e.classList.add("active")):(e.classList.remove("active"),e.classList.add("inactive"))}allowScroll(){if(!this.dropScrollScope)return!0;let e=!1;return typeof this.dropScrollScope=="string"&&(typeof this.dragDropService.scope=="string"&&(e=this.dragDropService.scope===this.dropScrollScope),this.dragDropService.scope instanceof Array&&(e=this.dragDropService.scope.indexOf(this.dropScrollScope)>-1)),this.dropScrollScope instanceof Array&&(typeof this.dragDropService.scope=="string"&&(e=this.dropScrollScope.indexOf(this.dragDropService.scope)>-1),this.dragDropService.scope instanceof Array&&(e=this.dropScrollScope.filter(t=>this.dragDropService.scope.indexOf(t)!==-1).length>0)),e}}k.INSTANCE_KEY="__vueDevuiDropScrollEnhancedDirectiveInstance";var ct={mounted(i,e,t){const r=t.ctx.provides,n=y(O.TOKEN,r),s=i[k.INSTANCE_KEY]=new k(i,n);s.setInput(e.value),s.mounted(),setTimeout(()=>{var o;(o=s.ngAfterViewInit)==null||o.call(s)},0)},updated(i,e){i[k.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[k.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class re extends k{constructor(){super(...arguments),this.inputNameMap={direction:"sideDirection"},this.sideDirection="h",this.direction="v"}ngOnInit(){this.direction=this.sideDirection==="v"?"h":"v"}}const dt={mounted(i,e,t){const r=t.ctx.provides,n=y(O.TOKEN,r),s=i[re.INSTANCE_KEY]=new re(i,n);s.setInput(e.value),s.mounted(),setTimeout(()=>{var o;(o=s.ngAfterViewInit)==null||o.call(s)},0)},updated(i,e){i[re.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[re.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class X extends M{constructor(e,t){super(),this.draggable=e,this.dragDropService=t,this.batchDragGroup="default",this.batchDragActive=!1,this.batchDragLastOneAutoActiveEventKeys=["ctrlKey"],this.batchDragStyle=["badge","stack"],this.batchDragActiveEvent=new F,this.needToRestore=!1,this.draggable.batchDraggable=this}ngOnInit(){this.initDragDataByIdentity()}ngOnDestroy(){this.draggable.batchDraggable=void 0,this.dragData&&this.dragData.draggable===this.draggable&&(this.dragData.draggable=void 0,this.dragData.identity||this.removeFromBatchGroup())}ngOnChanges(e){e.batchDragActive&&(this.initDragDataByIdentity()||(this.batchDragActive?!this.dragData&&this.allowAddToBatchGroup()&&this.addToBatchGroup():this.removeFromBatchGroup()))}ngAfterViewInit(){this.needToRestore&&(this.restoreDragDataViewAfterViewInit(),this.needToRestore=!1)}initDragDataByIdentity(){const e=this.findInBatchDragDataByIdentities();return e&&(this.batchDragActive?this.dragData||(this.addToBatchGroup(e),this.registerRestoreDragDataViewAfterViewInitWhiteDragging()):this.removeFromBatchGroup(e)),e}registerRestoreDragDataViewAfterViewInitWhiteDragging(){this.dragDropService.draggedEl&&this.dragDropService.draggedElIdentity&&this.dragDropService.draggedEl!==this.draggable.el.nativeElement&&(this.needToRestore=!0)}restoreDragDataViewAfterViewInit(){const e=this.draggable;e.originPlaceholder&&e.originPlaceholder.show!==!1&&e.insertOriginPlaceholder(!0,!1),e.el.nativeElement.style.display="none"}allowAddToBatchGroup(){return this.dragDropService.batchDragGroup?this.batchDragGroup===this.dragDropService.batchDragGroup:!0}addToBatchGroup(e){this.dragDropService.batchDragGroup=this.dragDropService.batchDragGroup||this.batchDragGroup,e?(e.draggable=this.draggable,e.dragData=this.draggable.dragData,this.dragData=e):(this.dragData=this.dragData||{identity:this.draggable.dragIdentity||void 0,draggable:this.draggable,dragData:this.draggable.dragData},this.dragDropService.batchDragData=this.addToArrayIfNotExist(this.dragDropService.batchDragData,this.dragData))}removeFromBatchGroup(e){this.deleteFromArrayIfExist(this.dragDropService.batchDragData,e||this.dragData),this.dragData=void 0,this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length||(this.dragDropService.batchDragGroup=void 0)}addToArrayIfNotExist(e,t){return e=e||[],e.indexOf(t)===-1&&e.push(t),e}deleteFromArrayIfExist(e,t){if(!!e){if(e.length>0){const r=e.indexOf(t);r>-1&&e.splice(r,1)}return e}}findInBatchDragDataByIdentities(){return this.draggable.dragIdentity?this.dragDropService.batchDragData?this.dragDropService.batchDragData.filter(e=>e.identity===this.draggable.dragIdentity).pop():void 0:null}active(){this.batchDragActiveEvent.emit({el:this.draggable.el.nativeElement,data:this.draggable.dragData})}updateDragData(){!this.dragData||Object.assign(this.dragData,{identity:this.draggable.dragIdentity||void 0,draggable:this.draggable,dragData:this.draggable.dragData})}}X.INSTANCE_KEY="__vueDevuiBatchDraggableDirectiveInstance";var Sr={mounted(i,e,t){var a;const r=t.ctx.provides,n=y(O.TOKEN,r),s=y(_.TOKEN,r),o=i[X.INSTANCE_KEY]=new X(s,n);o.setInput(e.value),o.mounted(),(a=o.ngOnInit)==null||a.call(o),setTimeout(()=>{var l;(l=o.ngAfterViewInit)==null||l.call(o)},0)},updated(i,e){i[X.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[X.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class be extends M{constructor(t,r){super();Ce(this,"copyStyle",!0);this.el=t,this.dragDropService=r}ngAfterViewInit(){this.cloneNode||this.createView()}ngOnChanges(t){t.domRef&&(this.cloneNode?(this.destroyView(),this.createView()):this.createView())}ngOnDestroy(){this.cloneNode&&this.destroyView()}createView(){this.domRef&&(this.cloneNode=this.domRef.cloneNode(!0),this.copyStyle&&this.dragDropService.copyStyle(this.domRef,this.cloneNode),setTimeout(()=>{this.el.nativeElement.appendChild(this.cloneNode)},0))}destroyView(){this.cloneNode&&(this.el.nativeElement.contains(this.cloneNode)&&this.el.nativeElement.removeChild(this.cloneNode),this.cloneNode=void 0)}updateTemplate(){}}Ce(be,"NAME","d-drag-preview-clone-dom-ref");var ht=m.defineComponent({name:"DDragPreviewCloneDomRef",props:{domRef:Object,copyStyle:{type:Boolean,default:!0}},setup(i,{expose:e}){const t={nativeElement:null},r=m.inject(O.TOKEN),n=new be(t,r);return n.setInput(i),m.onMounted(()=>{n.mounted(),m.nextTick(()=>{var s;(s=n.ngAfterViewInit)==null||s.call(n)})}),m.watch(()=>i,(s,o)=>{n.updateInput(s,o)}),m.onBeforeUnmount(()=>{var s;(s=n.ngOnDestroy)==null||s.call(n)}),e({instance:n}),()=>m.createVNode("div",{ref:s=>t.nativeElement=s},null)}});function ut(i,e){e===void 0&&(e=i);for(let t=0;t<i.length;t++){let r=i[t];Array.isArray(r)?(e===i&&(e=i.slice(0,t)),ut(r,e)):e!==i&&e.push(r)}return e}function yr(){return this._results[Symbol.iterator]()}const gt=class{constructor(){this.dirty=!0,this._results=[],this.changes=new F,this.length=0;const i=Symbol.iterator,e=gt.prototype;e[i]||(e[i]=yr)}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i){this._results=ut(i),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}};let br=gt;class Ee{constructor(){this._result=[],this.changeSubject=new Pt([]),this.changes=this.changeSubject.asObservable().pipe(ur(200))}register(e){if(!e)return;this._result.indexOf(e)===-1&&(this._result.push(e),this.changeSubject.next(this._result))}unregister(e){if(!e)return;const t=this._result.indexOf(e);t>-1&&(this._result.splice(t,1),this.changeSubject.next(this._result))}queryResult(){return this._result.concat([])}}class we extends M{constructor(e){super(),this.drs=e}ngOnInit(){this.drs.register(this.descendantItem)}ngOnDestroy(){this.drs.unregister(this.descendantItem)}}class Ie extends br{constructor(e){super(),this.drs=e}on(){this.sub||(this.reset(this.drs.queryResult()),this.sub=this.drs.changes.subscribe(e=>{this.reset(e)}))}off(){this.sub&&this.sub.unsubscribe()}}class z extends Ee{}z.TOKEN=Symbol("DRAG_SYNC_DR_SERVICE");class Q extends Ee{}Q.TOKEN=Symbol("DROP_SORT_SYNC_DR_SERVICE");class j{updateDragSyncList(e){this.dragSyncList=e}getDragSyncByGroup(e){return e?[]:this.dragSyncList?this.dragSyncList.filter(t=>t.dragSyncGroup===e):[]}updateDropSyncList(e){this.dropSortSyncList=e}getDropSyncByGroup(e){return e?[]:this.dropSortSyncList?this.dropSortSyncList.filter(t=>t.dropSyncGroup===e):[]}}j.TOKEN=Symbol("DRAG_DROP_SYNC_SERVICE");class Z extends M{constructor(e,t,r){super(),this.dragDropSyncService=e,this.dragSyncDrs=t,this.dropSortSyncDrs=r,this.sub=new C}ngOnInit(){this.dragSyncList=new Ie(this.dragSyncDrs),this.dropSyncList=new Ie(this.dropSortSyncDrs)}ngAfterViewInit(){this.dragSyncList.on(),this.dropSyncList.on(),this.dragDropSyncService.updateDragSyncList(this.dragSyncList),this.dragDropSyncService.updateDropSyncList(this.dropSyncList),this.sub.add(this.dragSyncList.changes.subscribe(e=>this.dragDropSyncService.updateDragSyncList(e))),this.sub.add(this.dropSyncList.changes.subscribe(e=>this.dragDropSyncService.updateDropSyncList(e)))}ngOnDestroy(){this.sub&&this.sub.unsubscribe(),this.dragSyncList.off(),this.dropSyncList.off()}}Z.INSTANCE_KEY="__vueDevuiDragDropSyncBoxDirectiveInstance";var ft={created(i,e,t){const r=t.ctx.provides,n=new j,s=new z,o=new Q;q(j.TOKEN,n,r),q(z.TOKEN,s,r),q(Q.TOKEN,o,r)},mounted(i,e,t){var l;const r=t.ctx.provides,n=y(j.TOKEN,r),s=y(z.TOKEN,r),o=y(Q.TOKEN,r),a=i[Z.INSTANCE_KEY]=new Z(n,s,o);a.setInput(e.value),a.mounted(),(l=a.ngOnInit)==null||l.call(a),setTimeout(()=>{var c;(c=a.ngAfterViewInit)==null||c.call(a)},0)},updated(i,e){i[Z.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[Z.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class J extends we{constructor(e,t,r,n,s){super(s),this.draggable=t,this.dragDropSyncService=r,this.dragDropService=n,this.inputNameMap={dragSync:"dragSyncGroup",dragSyncGroup:"dragSyncGroup"},this.dragSyncGroup="",this.subscription=new C,this.el={nativeElement:null},this.subDragElEvent=o=>{this.syncGroupDirectives.forEach(a=>this.renderDisplay(a.el.nativeElement,o))},this.el.nativeElement=e,this.descendantItem=this}ngOnInit(){this.draggable&&(this.subscription.add(this.draggable.dragElShowHideEvent.subscribe(this.subDragElEvent)),this.subscription.add(this.draggable.beforeDragStartEvent.subscribe(()=>{this.syncGroupDirectives=this.dragDropSyncService.getDragSyncByGroup(this.dragSyncGroup).filter(e=>e!==this),this.dragDropService.dragSyncGroupDirectives=this.syncGroupDirectives})),this.subscription.add(this.draggable.dropEndEvent.subscribe(()=>{this.dragDropService.dragSyncGroupDirectives=void 0,this.syncGroupDirectives=void 0}))),super.ngOnInit()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}renderDisplay(e,t){e.style.display=t?"":"none"}}J.INSTANCE_KEY="__vueDevuiDragSyncDirectiveInstance";var pt={mounted(i,e,t){var c;const r=t.ctx.provides;let n=y(_.TOKEN,r);(n==null?void 0:n.el.nativeElement)!==i&&(n=void 0);const s=y(j.TOKEN,r),o=y(O.TOKEN,r),a=y(z.TOKEN,r),l=i[J.INSTANCE_KEY]=new J(i,n,s,o,a);l.setInput(e.value),l.mounted(),(c=l.ngOnInit)==null||c.call(l)},updated(i,e){i[J.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[J.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class $ extends we{constructor(e,t,r,n){super(n),this.droppable=t,this.dragDropSyncService=r,this.inputNameMap={dropSortSync:"dropSyncGroup",dropSyncGroup:"dropSyncGroup",dropSyncDirection:"direction"},this.dropSyncGroup="",this.direction="v",this.subscription=new C,this.el={nativeElement:null},this.subRenderEvent=s=>{this.syncGroupDirectives=this.dragDropSyncService.getDropSyncByGroup(this.dropSyncGroup).filter(o=>o!==this),this.syncGroupDirectives.forEach(o=>{o.renderPlaceholder(s,this.droppable)})},this.subInsertionEvent=s=>{this.syncGroupDirectives=this.dragDropSyncService.getDropSyncByGroup(this.dropSyncGroup).filter(o=>o!==this),this.syncGroupDirectives.forEach(o=>{o.insertPlaceholderCommand({command:s.command,container:o.sortContainer,relatedEl:o.getChildrenElByIndex(o.sortContainer,s.index)})})},this.el.nativeElement=e,this.descendantItem=this}ngOnInit(){this.sortContainer=this.el.nativeElement,this.droppable&&(this.sortContainer=this.droppable.getSortContainer(),this.subscription.add(this.droppable.placeholderInsertionEvent.subscribe(this.subInsertionEvent)),this.subscription.add(this.droppable.placeholderRenderEvent.subscribe(this.subRenderEvent))),super.ngOnInit()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}getChildrenElByIndex(e,t){return t===void 0||e&&e.children&&e.children.length<t||t<0?null:this.sortContainer.children.item(t)}renderPlaceholder(e,t){this.placeholder||(this.placeholder=document.createElement(t.placeholderTag),this.placeholder.className="drag-placeholder",this.placeholder.classList.add("drag-sync-placeholder"),this.placeholder.innerText=t.placeholderText);const{width:r,height:n}=e;this.direction==="v"?(this.placeholder.style.width=r+"px",this.placeholder.style.height=this.sortContainer.getBoundingClientRect().height+"px"):(this.placeholder.style.height=n+"px",this.placeholder.style.width=this.sortContainer.getBoundingClientRect().width+"px"),f.addElStyles(this.placeholder,t.placeholderStyle)}insertPlaceholderCommand(e){if(e.command==="insertBefore"&&e.container){e.container.insertBefore(this.placeholder,e.relatedEl);return}if(e.command==="append"&&e.container){e.container.appendChild(this.placeholder);return}if(e.command==="remove"&&e.container){e.container.contains(this.placeholder)&&e.container.removeChild(this.placeholder);return}}}$.INSTANCE_KEY="__vueDevuiDropSortSyncDirectiveInstance";var vt={mounted(i,e,t){var l;const r=t.ctx.provides;let n=y(B.TOKEN,r);(n==null?void 0:n.el.nativeElement)!==i&&(n=void 0);const s=y(j.TOKEN,r),o=y(Q.TOKEN,r),a=i[$.INSTANCE_KEY]=new $(i,n,s,o);a.setInput(e.value),a.mounted(),(l=a.ngOnInit)==null||l.call(a)},updated(i,e){i[$.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[$.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}},Er={title:"DragDropSync \u62D6\u62FD\u540C\u6B65",category:"\u57FA\u7840\u7EC4\u4EF6",install(i){i.directive("dDragDropSyncBox",ft),i.directive("dDragSync",pt),i.directive("dDropSortSync",vt)}},wr={title:"DragDrop 2.0 \u62D6\u62FD",category:"\u901A\u7528",status:"100%",install(i){i.directive("dDraggable",it),i.directive("dDroppable",st),i.directive("dSortable",ot),i.directive("dDropScrollEnhanced",ct),i.directive("dDropScrollEnhancedSide",dt),i.directive("dDraggableBatchDrag",Sr),i.directive("dDragPreview",mr),i.component("DDragPreviewTemplate",tt),i.component(ht.name,ht),i.provide(O.TOKEN,new O),i.use(Er)}};u.BatchDraggableDirective=X,u.DescendantChildren=we,u.DescendantRegisterService=Ee,u.DescendantRoot=Ie,u.DragDropService=O,u.DragDropSyncBox=ft,u.DragDropSyncBoxDirective=Z,u.DragDropSyncService=j,u.DragPreviewCloneDomRefComponent=be,u.DragPreviewComponent=rt,u.DragPreviewDirective=G,u.DragPreviewTemplate=tt,u.DragSync=pt,u.DragSyncDescendantRegisterService=z,u.DragSyncDirective=J,u.Draggable=it,u.DraggableDirective=_,u.DropEvent=nt,u.DropScrollEnhanceTimingFunctionGroup=lt,u.DropScrollEnhanced=ct,u.DropScrollEnhancedDirective=k,u.DropScrollEnhancedSide=dt,u.DropScrollEnhancedSideDirective=re,u.DropScrollOrientation=at,u.DropSortSync=vt,u.DropSortSyncDescendantRegisterService=Q,u.DropSortSyncDirective=$,u.Droppable=st,u.DroppableDirective=B,u.Sortable=ot,u.SortableDirective=te,u.default=wr,u.useDragDropService=vr,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
11
+ </style>`,document.documentElement.appendChild(n);const s=document.createElement("div");s.id="touch_test",n.appendChild(s),t=s.offsetTop===42,(r=n.parentElement)==null||r.removeChild(n)}return t}bindTouchmoveTouchend(i){this.touchTarget=i.target,i.target.addEventListener("touchmove",this.touchmoveListener,this.listenerOpt),i.target.addEventListener("touchend",this.touchendListener),i.target.addEventListener("touchcancel",this.touchendListener)}removeTouchmoveTouchend(){this.touchTarget&&(this.touchTarget.removeEventListener("touchmove",this.touchmoveListener),this.touchTarget.removeEventListener("touchend",this.touchendListener),this.touchTarget.removeEventListener("touchcancel",this.touchendListener),this.touchTarget=void 0)}shouldHandle(i){return i&&!i.defaultPrevented&&i.touches&&i.touches.length<2}shouldHandleMove(i){return!m.IS_PRESS_HOLD_MODE&&this.shouldHandle(i)}shouldHandlePressHoldMove(i){return m.IS_PRESS_HOLD_MODE&&this.isDragEnabled&&i&&i.touches&&i.touches.length}shouldCancelPressHoldMove(i){return m.IS_PRESS_HOLD_MODE&&!this.isDragEnabled&&this.getDelta(i)>m.PRESS_HOLD_MARGIN}shouldStartDragging(i){const e=this.getDragHandle();if(e&&!this.matchSelector(i.target,e))return!1;const t=this.getDelta(i);return t>m.THRESHOLD||m.IS_PRESS_HOLD_MODE&&t>=m.PRESS_HOLD_THRESHOLD}getDragHandle(){return this.dragSource&&this.dragSource.getAttribute(m.DRAG_HANDLE_ATTR)||""}matchSelector(i,e){if(e){const t=Element.prototype;return(t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(n){const s=(this.document||this.ownerDocument).querySelectorAll(n);let o=s.length;for(;--o>=0&&s.item(o)!==this;);return o>-1}).call(i,e)}return!0}reset(){this.removeTouchmoveTouchend(),this.destroyImage(),this.dragSource=null,this.lastTouch=null,this.lastTarget=null,this.ptDown=null,this.isDragEnabled=!1,this.isDropZone=!1,this.dataTransfer=new m.DataTransfer,clearInterval(this.pressHoldInterval),this.clearDragoverInterval()}getPoint(i,e){return i&&i.touches&&(i=i.touches[0]),{x:e?i.pageX:i.clientX,y:e?i.pageY:i.clientY}}getDelta(i){if(m.IS_PRESS_HOLD_MODE&&!this.ptDown)return 0;const e=this.getPoint(i);return Math.abs(e.x-this.ptDown.x)+Math.abs(e.y-this.ptDown.y)}getTarget(i){const e=this.getPoint(i);let t=document.elementFromPoint(e.x,e.y);for(;t&&getComputedStyle(t).pointerEvents==="none";)t=t.parentElement;return t}createImage(i){this.img&&this.destroyImage();const e=this.imgCustom||this.dragSource;if(this.img=e.cloneNode(!0),this.copyStyle(e,this.img),this.img.style.top=this.img.style.left="-9999px",!this.imgCustom){const t=e.getBoundingClientRect(),r=this.getPoint(i);this.imgOffset={x:r.x-t.left,y:r.y-t.top},this.img.style.opacity=m.OPACITY.toString()}this.moveImage(i),document.body.appendChild(this.img)}destroyImage(){this.img&&this.img.parentElement&&this.img.parentElement.removeChild(this.img),this.img=null,this.imgCustom=null}moveImage(i){requestAnimationFrame(()=>{if(this.img){const e=this.getPoint(i,!0),t=this.img.style;t.position="absolute",t.pointerEvents="none",t.zIndex="999999",t.left=Math.round(e.x-this.imgOffset.x)+"px",t.top=Math.round(e.y-this.imgOffset.y)+"px"}})}copyProps(i,e,t){for(let r=0;r<t.length;r++){const n=t[r];i[n]=e[n]}}copyStyle(i,e){if(m.rmvAttrs.forEach(function(n){e.removeAttribute(n)}),i instanceof HTMLCanvasElement){const n=i,s=e;s.width=n.width,s.height=n.height,s.getContext("2d").drawImage(n,0,0)}const t=i.querySelectorAll("canvas");if(t.length>0){const n=e.querySelectorAll("canvas");for(let s=0;s<n.length;s++){const o=t[s];n[s].getContext("2d").drawImage(o,0,0)}}const r=getComputedStyle(i);for(let n=0;n<r.length;n++){const s=r[n];s.indexOf("transition")<0&&(e.style[s]=r[s])}e.style.pointerEvents="none";for(let n=0;n<i.children.length;n++)this.copyStyle(i.children[n],e.children[n])}dispatchEvent(i,e,t){if(i&&t){const r=document.createEvent("Event"),n=i.touches?i.touches[0]:i;r.initEvent(e,!0,!0);const s={button:0,which:0,buttons:1,dataTransfer:this.dataTransfer};return this.copyProps(r,i,m.kbdProps),this.copyProps(r,n,m.ptProps),this.copyProps(r,{fromTouch:!0},["fromTouch"]),this.copyProps(r,s,Object.keys(s)),t.dispatchEvent(r),r.defaultPrevented}return!1}closestDraggable(i){for(;i;i=i.parentElement)if(i.hasAttribute("draggable")&&i.draggable)return i;return null}setDragoverInterval(i){this.dragoverTimer=setInterval(()=>{const e=this.getTarget(i);e!==this.lastTarget&&(this.dispatchEvent(i,"dragenter",e),this.dispatchEvent(i,"dragleave",this.lastTarget),this.lastTarget=e),this.isDropZone=this.dispatchEvent(i,"dragover",e)},m.DRAG_OVER_TIME)}clearDragoverInterval(){this.dragoverTimer&&(clearInterval(this.dragoverTimer),this.dragoverTimer=void 0)}};let I=m;I.THRESHOLD=5,I.OPACITY=.5,I.DBLCLICK=500,I.DRAG_OVER_TIME=300,I.CTX_MENU=900,I.IS_PRESS_HOLD_MODE=!0,I.PRESS_HOLD_AWAIT=400,I.PRESS_HOLD_MARGIN=25,I.PRESS_HOLD_THRESHOLD=0,I.DRAG_HANDLE_ATTR="data-drag-handle-selector",I.rmvAttrs="id,class,style,draggable".split(","),I.kbdProps="altKey,ctrlKey,metaKey,shiftKey".split(","),I.ptProps="pageX,pageY,clientX,clientY,screenX,screenY".split(","),I.instance=null,(i=>{class e{get dropEffect(){return this._dropEffect}set dropEffect(r){this._dropEffect=r}get effectAllowed(){return this._effectAllowed}set effectAllowed(r){this._effectAllowed=r}get types(){return Object.keys(this._data)}constructor(){this._dropEffect="move",this._effectAllowed="all",this._data={}}clearData(r){r!==null?delete this._data[r]:this._data=null}getData(r){return this._data[r]||""}setData(r,n){this._data[r]=n}setDragImage(r,n,s){const o=i.getInstance();o.imgCustom=r,o.imgOffset={x:n,y:s}}}i.DataTransfer=e})(I||(I={}));class C{constructor(){this.dropTargets=[],this.dropEvent=new x,this.dragEndEvent=new x,this.dragStartEvent=new x,this.subscription=new O,this.dragItemParentName="",this.dragItemChildrenName="",this.intersectionObserver=null,this.dragElShowHideEvent=new x,this.followMouse4CloneNode=e=>{const{offsetLeft:t,offsetTop:r}=this.dragOffset,{clientX:n,clientY:s}=e;requestAnimationFrame(()=>{!this.dragCloneNode||(this.dragCloneNode.style.left=n-t+"px",this.dragCloneNode.style.top=s-r+"px")})},this.touchInstance=I.getInstance()}get dragEmptyImage(){return this._dragEmptyImage||(this._dragEmptyImage=new Image,this._dragEmptyImage.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg=="),this._dragEmptyImage}get document(){return window.document}newSubscription(){return this.subscription.unsubscribe(),this.subscription=new O}enableDraggedCloneNodeFollowMouse(){if(!this.dragCloneNode){if(this.dragItemContainer=this.draggedEl.parentElement,this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate?(this.dragPreviewDirective.createPreview(),this.dragCloneNode=this.dragPreviewDirective.getPreviewElement(),this.dragItemContainer=this.document.body):this.dragCloneNode=this.draggedEl.cloneNode(!0),this.dragCloneNode.style.margin="0",this.dragFollowOptions&&this.dragFollowOptions.appendToBody&&(this.dragItemContainer=this.document.body,this.copyStyle(this.draggedEl,this.dragCloneNode)),this.dragItemChildrenName!==""){const r=this.dragItemParentName===""?this.dragCloneNode:this.document.querySelector(this.dragItemParentName),n=r.querySelectorAll(this.dragItemChildrenName);this.interceptChildNode(r,n)}const e=this.draggedEl.querySelectorAll("canvas"),t=this.dragCloneNode.querySelectorAll("canvas");if([].forEach.call(t,(r,n)=>{r.getContext("2d").drawImage(e[n],0,0)}),this.document.addEventListener("dragover",this.followMouse4CloneNode,{capture:!0,passive:!0}),this.dragCloneNode.style.width=this.dragOffset.width+"px",this.dragCloneNode.style.height=this.dragOffset.height+"px",!(this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate&&this.dragPreviewDirective.dragPreviewOptions&&this.dragPreviewDirective.dragPreviewOptions.skipBatchPreview)&&this.batchDragging&&this.batchDragData&&this.batchDragData.length>1){const r=this.document.createElement("div");if(r.appendChild(this.dragCloneNode),r.classList.add("batch-dragged-node"),this.batchDragStyle&&this.batchDragStyle.length&&this.batchDragStyle.indexOf("badge")>-1){const n=this.document.createElement("div");n.innerText=String(this.batchDragData.length),n.classList.add("batch-dragged-node-count"),r.style.position="relative";const s={position:"absolute",right:"5px",top:"-12px",height:"24px",width:"24px",borderRadius:"12px",fontSize:"14px",lineHeight:"24px",textAlign:"center",color:"#fff",background:["#5170ff","var(--brand-1, #5170ff)"]};f.addElStyles(n,s),r.appendChild(n)}if(this.batchDragStyle&&this.batchDragStyle.length&&this.batchDragStyle.indexOf("stack")>-1){let n=2;this.batchDragData.length===2&&(n=1);for(let s=0;s<n;s++){const o=this.dragCloneNode.cloneNode(!1),a={position:"absolute",left:-5*(s+1)+"px",top:-5*(s+1)+"px",zIndex:String(-(s+1)),width:this.dragOffset.width+"px",height:this.dragOffset.height+"px",background:"#fff",border:["1px solid #5170ff","1px solid var(--brand-1, #5170ff)"]};f.addElStyles(o,a),r.appendChild(o)}}this.dragCloneNode=r}this.dragCloneNode.classList.add("drag-clone-node"),this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate||(this.dragCloneNode.style.width=this.dragOffset.width+"px",this.dragCloneNode.style.height=this.dragOffset.height+"px"),this.dragCloneNode.style.position="fixed",this.dragCloneNode.style.zIndex="1090",this.dragCloneNode.style.pointerEvents="none",this.dragCloneNode.style.top=this.dragOffset.top+"px",this.dragCloneNode.style.left=this.dragOffset.left+"px",this.dragCloneNode.style.willChange="left, top",this.dragItemContainer.appendChild(this.dragCloneNode),setTimeout(()=>{this.draggedEl&&(this.draggedEl.style.display="none",this.dragElShowHideEvent.next(!1),this.dragOriginPlaceholder&&(this.dragOriginPlaceholder.style.display="block"))})}}disableDraggedCloneNodeFollowMouse(){this.dragCloneNode&&(this.document.removeEventListener("dragover",this.followMouse4CloneNode,{capture:!0}),this.dragItemContainer.removeChild(this.dragCloneNode),this.draggedEl.style.display="",this.dragElShowHideEvent.next(!0)),this.dragPreviewDirective&&this.dragPreviewDirective.dragPreviewTemplate&&this.dragPreviewDirective.destroyPreview(),this.dragCloneNode=void 0,this.dragItemContainer=void 0,this.intersectionObserver&&this.intersectionObserver.disconnect()}interceptChildNode(e,t){const r={root:e};this.intersectionObserver=new IntersectionObserver(this.setChildNodeHide,r),[].forEach.call(t,n=>{this.intersectionObserver.observe(n)})}setChildNodeHide(e){e.forEach(t=>{const{isIntersecting:r,target:n}=t;r?n.style.display="block":n.style.display="none"})}getBatchDragData(e,t="draggedElFirst"){const r=this.batchDragData.map(n=>n.dragData);if(typeof t=="function")r.sort(t);else if(t==="draggedElFirst"){let n=this.dragData;e&&(n=this.batchDragData.filter(o=>o.identity===e).pop().dragData),r.splice(r.indexOf(n),1),r.splice(0,0,n)}return r}cleanBatchDragData(){const e=this.batchDragData;return this.batchDragData&&(this.batchDragData.filter(t=>t.draggable).map(t=>t.draggable).forEach(t=>{t.batchDraggable.dragData=void 0}),this.batchDragData=void 0,this.batchDragGroup=void 0),e}copyStyle(e,t){["id","class","style","draggable"].forEach(function(n){t.removeAttribute(n)});const r=getComputedStyle(e);for(let n=0;n<r.length;n++){const s=r[n];s.indexOf("transition")<0&&(t.style[s]=r[s])}t.style.pointerEvents="none";for(let n=0;n<e.children.length;n++)this.copyStyle(e.children[n],t.children[n])}}C.TOKEN=Symbol("DRAG_DROP_SERVICE_TOKEN");function vr(){const i=new C;return S.provide(C.TOKEN,new C),i}class F extends x{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){let n,s=l=>null,o=()=>null;e&&typeof e=="object"?(n=this.__isAsync?l=>{setTimeout(()=>e.next(l))}:l=>{e.next(l)},e.error&&(s=this.__isAsync?l=>{setTimeout(()=>e.error(l))}:l=>{e.error(l)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(n=this.__isAsync?l=>{setTimeout(()=>e(l))}:l=>{e(l)},t&&(s=this.__isAsync?l=>{setTimeout(()=>t(l))}:l=>{t(l)}),r&&(o=this.__isAsync?()=>{setTimeout(()=>r())}:()=>{r()}));const a=super.subscribe(n,s,o);return e instanceof O&&e.add(a),a}}class et extends F{constructor(){super(...arguments),this._isAsync=!1}get schedulerFns(){return this._schedulerFns}forceCallback(e,t=!1){this.schedulerFns&&this.schedulerFns.size&&(this.schedulerFns.forEach(r=>{r(e)}),t&&this.cleanCallbackFn())}cleanCallbackFn(){this._schedulerFns=void 0}subscribe(e,t,r){let n;return e&&typeof e=="object"?n=this._isAsync?s=>{setTimeout(()=>e.next(s))}:s=>{e.next(s)}:n=this._isAsync?s=>{setTimeout(()=>e(s))}:s=>{e(s)},this._schedulerFns||(this._schedulerFns=new Set),this._schedulerFns.add(n),super.subscribe(e,t,r)}}class Dr{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}class M{constructor(){this.__eventListenerMap=new Map,this.el={nativeElement:null},this.hostBindingMap=void 0,this.hostListenerMap=void 0,this.inputNameMap=void 0,this.outputNameMap=void 0}mounted(){this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(e=>{this[e]!==void 0&&this.hostBinding(this.hostBindingMap[e],e)}),this.hostListenerMap&&this.el.nativeElement&&Object.keys(this.hostListenerMap).forEach(e=>{this[e]&&this.hostListener(this.hostListenerMap[e],e)})}setInput(e){if(!e)return;const t=new Map;Object.keys(e).forEach(r=>{if(r.startsWith("@")){const n=this.getOutputKey(r.slice(1));this.eventListener(n,e[r])}else{const n=this.getInputKey(r),s=this[n];this[n]=e[r],t.set(n,{previousValue:s,currentValue:e[r],firstChange:!0})}}),this.notifyOnChanges(t),this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(r=>{e[r]&&this.hostBinding(this.hostBindingMap[r],r)})}updateInput(e,t){const r=new Map;e&&Object.keys(e).forEach(n=>{const s=this.getInputKey(n);e[n]!==(t==null?void 0:t[n])&&r.set(s,{previousValue:t[n],currentValue:e[n],firstChange:t[n]===void 0})}),t&&Object.keys(t).filter(n=>!Object.keys(e).includes(n)).forEach(n=>{if(t[n]!==(e==null?void 0:e[n])){const s=this.getInputKey(n);r.set(s,{previousValue:t[n],currentValue:e[n],firstChange:t[n]===void 0})}}),r.forEach((n,s)=>{s.startsWith("@")?this.eventListener(s.slice(1),n.currentValue):this[s]=n.currentValue}),this.notifyOnChanges(r),this.hostBindingMap&&this.el.nativeElement&&Object.keys(this.hostBindingMap).forEach(n=>{r.get(n)&&this.hostBinding(this.hostBindingMap[n],n)})}hostBinding(e,t){const r=this.el.nativeElement,n=this[t];r.setAttribute(e,n)}hostListener(e,t){this.el.nativeElement.addEventListener(e,this[t].bind(this))}eventListener(e,t){var n;const r=this[e].subscribe(s=>{t(s)});this.__eventListenerMap.get(e)&&((n=this.__eventListenerMap.get(e))==null||n.unsubscribe(),this.__eventListenerMap.delete(e)),this.__eventListenerMap.set(e,r)}getInputKey(e){return this.inputNameMap&&this.inputNameMap[e]||e}getOutputKey(e){return this.outputNameMap&&this.outputNameMap[e]||e}notifyOnChanges(e){if(this.ngOnChanges){const t=[...e.entries()].filter(([r,n])=>!r.startsWith("@")).reduce((r,[n,s])=>{const{previousValue:o,currentValue:a,firstChange:l}=s;return r[n]=new Dr(o,a,l),r},{});Object.keys(t).length&&this.ngOnChanges(t)}}}const tt=S.defineComponent({name:"DDragPreviewTemplate",setup(i,{slots:e,expose:t}){return t({template:e.default}),()=>null}}),rt=S.defineComponent({name:"DDragPreviewContainer",props:{template:Function,context:Object},setup(i){return()=>{var e;return(e=i.template)==null?void 0:e.call(i,i.context)}}});class G extends M{constructor(e,t){super(),this.dragDropService=t,this.inputNameMap={dragPreview:"dragPreviewTemplate"},this.dragPreviewOptions={skipBatchPreview:!1},this.el={nativeElement:null},this.el.nativeElement=e}createPreview(){var o;const e={data:this.dragPreviewData,draggedEl:this.dragDropService.draggedEl,dragData:this.dragDropService.dragData,batchDragData:this.dragDropService.batchDragData&&this.dragDropService.getBatchDragData(),dragSyncDOMElements:this.dragDropService.dragSyncGroupDirectives&&this.getDragSyncDOMElements()},t=S.createApp(rt,{context:e,template:(o=this.dragPreviewTemplate)==null?void 0:o.template});t._context.provides=Object.create(this.context);const r=document.createElement("div"),n=t.mount(r),s=()=>{t.unmount()};this.previewRef={instance:n,element:r,unmount:s}}destroyPreview(){this.previewRef&&(this.previewRef.unmount(),this.previewRef=void 0)}getPreviewElement(){return this.previewRef&&this.previewRef.element}getDragSyncDOMElements(){return this.dragDropService.dragSyncGroupDirectives.map(e=>e.el.nativeElement)}}G.INSTANCE_KEY="__vueDevuiDragPreviewDirectiveInstance",G.TOKEN=Symbol("DRAG_PREVIEW_DIRECTIVE_TOKEN");var mr={mounted(i,e,t){const r=t.ctx.provides,n=E(C.TOKEN,r),s=i[G.INSTANCE_KEY]=new G(i,n);q(G.TOKEN,s,r),s.setInput({context:r}),s.setInput(e.value),s.mounted()},updated(i,e){i[G.INSTANCE_KEY].updateInput(e.value,e.oldValue)}};class _ extends M{constructor(e,t,r){super(),this.hostBindingMap={draggable:"draggable","data-drag-handle-selector":"dragHandle"},this.draggable=!0,this.dragScope="default",this.dragHandleClass="drag-handle",this.dragEffect="move",this._disabled=!1,this.dragStartEvent=new F,this.dragEvent=new et,this.dragEndEvent=new F,this.dropEndEvent=new et,this.document=window.document,this.enableDragFollow=!1,this.dragItemParentName="",this.dragItemChildrenName="",this.dragsSub=new O,this.destroyDragEndSub=new O,this.dragElShowHideEvent=new x,this.beforeDragStartEvent=new x,this.el={nativeElement:null},this.insertOriginPlaceholder=(n=!0,s=!0)=>{var l,c,d;this.delayRemoveOriginPlaceholderTimer&&(clearTimeout(this.delayRemoveOriginPlaceholderTimer),this.delayRemoveOriginPlaceholderTimer=void 0);const o=this.document.createElement(((l=this.originPlaceholder)==null?void 0:l.tag)||"div"),a=this.el.nativeElement.getBoundingClientRect();if(n?o.style.display="block":o.style.display="none",o.style.width=a.width+"px",o.style.height=a.height+"px",o.classList.add("drag-origin-placeholder"),(c=this.originPlaceholder)!=null&&c.text&&(o.innerText=this.originPlaceholder.text),(d=this.originPlaceholder)!=null&&d.style&&f.addElStyles(o,this.originPlaceholder.style),s)this.dragDropService.dragOriginPlaceholder=o,this.dragDropService.dragOriginPlaceholderNextSibling=this.el.nativeElement.nextSibling;else{o.classList.add("side-drag-origin-placeholder");const h=this.el.nativeElement.cloneNode(!0);h.style.margin=0,h.style.pointerEvents="none",h.style.opacity="0.3",o.appendChild(h)}this.dragOriginPlaceholder=o,this.dragOriginPlaceholderNextSibling=this.el.nativeElement.nextSibling,this.el.nativeElement.parentElement.insertBefore(o,this.el.nativeElement.nextSibling)},this.removeOriginPlaceholder=(n=!0)=>{var s;this.dragOriginPlaceholder&&((s=this.dragOriginPlaceholder.parentElement)==null||s.removeChild(this.dragOriginPlaceholder)),n&&(this.dragDropService.dragOriginPlaceholder=void 0,this.dragDropService.dragOriginPlaceholderNextSibling=void 0),this.dragOriginPlaceholder=void 0,this.dragOriginPlaceholderNextSibling=void 0},this.delayRemoveOriginPlaceholder=(n=!0)=>{var l,c;const s=(l=this.originPlaceholder)==null?void 0:l.removeDelay,o=this.dragOriginPlaceholder,a=this.findNextSibling(this.dragOriginPlaceholderNextSibling);(c=o==null?void 0:o.parentElement)!=null&&c.contains(a)&&o.parentElement.insertBefore(o,a),setTimeout(()=>{var d;(d=o==null?void 0:o.parentElement)!=null&&d.contains(a)&&o.parentElement.insertBefore(o,a),o==null||o.classList.add("delay-deletion"),this.delayRemoveOriginPlaceholderTimer=setTimeout(()=>{var h;(h=o==null?void 0:o.parentElement)==null||h.removeChild(o),this.document.body.contains(this.el.nativeElement)&&(this.el.nativeElement.style.display="",this.dragDropService.dragElShowHideEvent.next(!1))},s),n&&(this.dragDropService.dragOriginPlaceholder=void 0,this.dragDropService.dragOriginPlaceholderNextSibling=void 0),this.dragOriginPlaceholder=void 0,this.dragOriginPlaceholderNextSibling=void 0})},this.el.nativeElement=e,this.dragDropService=t,this.dragPreviewDirective=r}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.draggable=!this._disabled}ngOnInit(){this.dragsSub.add(w(this.el.nativeElement,"mouseover").subscribe(e=>this.mouseover(e))),this.dragsSub.add(w(this.el.nativeElement,"dragstart").subscribe(e=>this.dragStart(e))),this.dragsSub.add(w(this.el.nativeElement,"dragend").subscribe(e=>this.dragEnd(e)))}dropSubscription(){const e=this.dragDropService.newSubscription();e.add(this.dragDropService.dropEvent.subscribe(t=>{this.mouseOverElement=void 0,f.removeClass(this.el.nativeElement,this.dragOverClass),this.dropEndEvent.emit(t),this.isDestroyed&&this.dropEndEvent.schedulerFns&&this.dropEndEvent.schedulerFns.size>0&&this.dropEndEvent.forceCallback(t,!0),this.dragDropService.dragOriginPlaceholder&&(this.originPlaceholder&&this.originPlaceholder.removeDelay>0&&!this.dragDropService.dropOnOrigin?this.delayRemoveOriginPlaceholder():this.removeOriginPlaceholder(),this.dragDropService.draggedElIdentity=void 0),this.dragDropService.subscription.unsubscribe()})),e.add(this.dragDropService.dragElShowHideEvent.subscribe(this.dragElShowHideEvent))}ngAfterViewInit(){this.applyDragHandleClass(),this.dragIdentity&&this.dragDropService.draggedEl&&this.dragIdentity===this.dragDropService.draggedElIdentity&&(this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.insertOriginPlaceholder(),this.dragDropService.draggedEl=this.el.nativeElement,this.el.nativeElement.style.display="none")}ngOnDestroy(){this.isDestroyed=!0,this.dragDropService.draggedEl===this.el.nativeElement&&(this.destroyDragEndSub=new O,this.destroyDragEndSub.add(w(this.el.nativeElement,"dragend").subscribe(e=>{this.dragEnd(e),this.dropEndEvent.schedulerFns&&this.dropEndEvent.schedulerFns.size>0&&this.dropEndEvent.forceCallback(e,!0),this.destroyDragEndSub.unsubscribe(),this.destroyDragEndSub=void 0})),this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.dragDropService.dragOriginPlaceholder&&this.dragDropService.draggedElIdentity&&this.removeOriginPlaceholder()),this.dragsSub.unsubscribe()}dragStart(e){var t;if(this.allowDrag(e)){f.addClass(this.el.nativeElement,this.dragOverClass),this.dragDropService.dragData=this.dragData,this.dragDropService.scope=this.dragScope,this.dragDropService.draggedEl=this.el.nativeElement,this.dragDropService.draggedElIdentity=this.dragIdentity,this.dragDropService.dragFollow=this.enableDragFollow,this.dragDropService.dragFollowOptions=this.dragFollowOptions,this.dragDropService.dragItemParentName=this.dragItemParentName,this.dragDropService.dragItemChildrenName=this.dragItemChildrenName,this.beforeDragStartEvent.next(!0),this.dragPreviewDirective&&((t=this.dragPreviewDirective)==null?void 0:t.dragPreviewTemplate)&&(this.dragDropService.dragFollow=!0,this.dragDropService.dragPreviewDirective=this.dragPreviewDirective),this.batchDraggable&&(this.batchDraggable.dragData?this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&(this.dragDropService.batchDragging=!0,this.dragDropService.batchDragStyle=this.batchDraggable.batchDragStyle):this.batchDraggable.batchDragLastOneAutoActiveEventKeys&&this.batchDraggable.batchDragLastOneAutoActiveEventKeys.map(s=>e[s]).some(s=>s===!0)&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>0&&(this.batchDraggable.active(),this.batchDraggable.dragData||this.batchDraggable.addToBatchGroup(),this.dragDropService.batchDragData.some(s=>s.draggable===this)&&(this.dragDropService.batchDragging=!0,this.dragDropService.batchDragStyle=this.batchDraggable.batchDragStyle)));const r=this.el.nativeElement.getBoundingClientRect();if(this.dragDropService.dragFollow){const n=this.mousePosition(e),s=this.checkAndGetViewPointChange(this.el.nativeElement);this.dragDropService.dragOffset={left:r.left,top:r.top,offsetLeft:n.x-r.left+s.offsetX,offsetTop:n.y-r.top+s.offsetY,width:r.width,height:r.height},this.dragDropService.enableDraggedCloneNodeFollowMouse()}else this.dragDropService.dragOffset={left:r.left,top:r.top,offsetLeft:null,offsetTop:null,width:r.width,height:r.height};this.originPlaceholder&&this.originPlaceholder.show!==!1&&this.insertOriginPlaceholder(!1),this.dragDropService.batchDragging&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&this.dragDropService.batchDragData.map(n=>n.draggable).filter(n=>n&&n!==this).forEach(n=>{n.originPlaceholder&&n.originPlaceholder.show!==!1?(n.insertOriginPlaceholder(!0,!1),n.el.nativeElement.style.display="none"):setTimeout(()=>{n.el.nativeElement.style.display="none"})}),e.dataTransfer!==null&&e.dataTransfer.setData("text",""),e.dataTransfer.effectAllowed=this.dragEffect,this.dropSubscription(),this.dragDropService.dragFollow&&(typeof DataTransfer.prototype.setDragImage=="function"?e.dataTransfer.setDragImage(this.dragDropService.dragEmptyImage,0,0):(e.srcElement.style.display="none",this.dragDropService.dragElShowHideEvent.next(!1))),e.stopPropagation(),this.dragStartEvent.emit(e),this.dragDropService.dragStartEvent.next(e)}else e.preventDefault()}dragEnd(e){f.removeClass(this.el.nativeElement,this.dragOverClass),this.dragDropService.dragEndEvent.next(e),this.mouseOverElement=void 0,this.dragDropService.draggedEl&&(this.dragDropService.dragFollow&&this.dragDropService.disableDraggedCloneNodeFollowMouse(),this.dragDropService.dragOriginPlaceholder&&this.removeOriginPlaceholder(),this.dragDropService.batchDragging&&this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&this.dragDropService.batchDragData.map(t=>t.draggable).filter(t=>t&&t!==this).forEach(t=>{t.originPlaceholder&&t.originPlaceholder.show!==!1?(t.el.nativeElement.style.display="",t.removeOriginPlaceholder()):t.el.nativeElement.style.display=""}),this.batchDraggable&&!this.batchDraggable.batchDragActive&&(this.batchDraggable.removeFromBatchGroup(),this.dragDropService.batchDragging=!1,this.dragDropService.batchDragStyle=void 0),this.dragDropService.subscription&&this.dragDropService.subscription.unsubscribe(),this.dragDropService.dragData=void 0,this.dragDropService.scope=void 0,this.dragDropService.draggedEl=void 0,this.dragDropService.dragFollow=void 0,this.dragDropService.dragFollowOptions=void 0,this.dragDropService.dragOffset=void 0,this.dragDropService.draggedElIdentity=void 0,this.dragDropService.dragPreviewDirective=void 0),e.stopPropagation(),e.preventDefault(),this.dragEndEvent.emit(e)}mouseover(e){this.mouseOverElement=e.target}allowDrag(e){return!this.draggable||this.batchDraggable&&!this.batchDraggable.allowAddToBatchGroup()?!1:this.dragHandle?e&&e.fromTouch?!0:this.mouseOverElement?f.matches(this.mouseOverElement,this.dragHandle):!1:!0}applyDragHandleClass(){const e=this.getDragHandleElement();!e||(this.draggable?f.addClass(e,this.dragHandleClass):f.removeClass(this.el,this.dragHandleClass))}getDragHandleElement(){let e=this.el;return this.dragHandle&&(e=this.el.nativeElement.querySelector(this.dragHandle)),e}mousePosition(e){return{x:e.clientX,y:e.clientY}}findNextSibling(e){return this.dragDropService.batchDragData&&this.dragDropService.batchDragData.map(t=>t.draggable&&t.draggable.el.nativeElement).indexOf(e)>-1&&(e=e.nextSibling),e}checkAndGetViewPointChange(e){if(!e.parentNode)return null;const t=e.getBoundingClientRect(),r=this.document.createElement("div");f.addElStyles(r,{opacity:"0",position:"fixed",top:t.top+"px",left:t.left+"px",width:"1px",height:"1px",zIndex:"-999999"}),e.parentNode.appendChild(r);const n=r.getBoundingClientRect();return e.parentNode.removeChild(r),{offsetX:n.left-t.left,offsetY:n.top-t.top}}}_.INSTANCE_KEY="__vueDevuiDraggableDirectiveInstance",_.TOKEN=Symbol("DRAGGABLE_DIRECTIVE_TOKEN");var it={mounted(i,e,t){var a,l,c;const r=(a=t.ctx)==null?void 0:a.provides,n=E(C.TOKEN,r);let s=E(G.TOKEN,r);(s==null?void 0:s.el.nativeElement)!==i&&(s=void 0);const o=i[_.INSTANCE_KEY]=new _(i,n,s);q(_.TOKEN,o,r),o.setInput(e.value),o.mounted(),(l=o.ngOnInit)==null||l.call(o),(c=o.ngAfterViewInit)==null||c.call(o)},updated(i,e){i[_.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[_.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class nt{constructor(e,t,r,n,s,o,a,l){this.nativeEvent=e,this.dragData=t,this.dropSubject=r,this.dropIndex=n,this.dragFromIndex=s,this.dropOnItem=o,this.dropOnOrigin=a,this.batchDragData=l}}class B extends M{constructor(e,t){super(),this.hostListenerMap={drop:"drop"},this.dragEnterEvent=new F,this.dragOverEvent=new F,this.dragLeaveEvent=new F,this.dropEvent=new F,this.dropScope="default",this.placeholderTag="div",this.placeholderStyle={backgroundColor:["#859bff","var(--devui-brand-foil, #859bff)"],opacity:".4"},this.placeholderText="",this.allowDropOnItem=!1,this.switchWhileCrossEdge=!1,this.defaultDropPosition="closest",this.dragCount=0,this.dropIndex=void 0,this.placeholderInsertionEvent=new x,this.placeholderRenderEvent=new x,this.el={nativeElement:null},this.dropSortCountSelectorFilterFn=r=>f.matches(r,this.dropSortCountSelector)||r.contains(this.placeholder)||r===this.dragDropService.dragOriginPlaceholder,this.setPlaceholder=()=>{this.placeholder.style.width=this.dragDropService.dragOffset.width+"px",this.placeholder.style.height=this.dragDropService.dragOffset.height+"px",f.addElStyles(this.placeholder,this.placeholderStyle),this.placeholderRenderEvent.next({width:this.dragDropService.dragOffset.width,height:this.dragDropService.dragOffset.height})},this.document=window.document,this.el.nativeElement=e,this.dragDropService=t}ngOnInit(){this.placeholder=this.document.createElement(this.placeholderTag),this.placeholder.className="drag-placeholder",this.placeholder.innerText=this.placeholderText,this.dragStartSubscription=this.dragDropService.dragStartEvent.subscribe(()=>this.setPlaceholder()),this.dragDropService.draggedEl&&this.setPlaceholder(),this.dropEndSubscription=this.dragDropService.dropEvent.subscribe(()=>{this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(f.addElStyles(this.dragDropService.draggedEl,{display:""}),this.dragDropService.dragElShowHideEvent.next(!0))),this.removePlaceholder(),this.overElement=void 0,this.allowDropCache=void 0,this.dragElIndex=void 0,this.dropIndex=void 0}),this.dragEndSubscription=this.dragDropService.dragEndEvent.subscribe(()=>{this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(f.addElStyles(this.dragDropService.draggedEl,{display:""}),this.dragDropService.dragElShowHideEvent.next(!0))),this.removePlaceholder(),this.dragCount=0,this.overElement=void 0,this.allowDropCache=void 0,this.dragElIndex=void 0,this.dropIndex=void 0}),this.dragPartEventSub=new O,this.dragPartEventSub.add(w(this.el.nativeElement,"dragover").pipe(hr(e=>this.allowDrop(e)),gr((e,t)=>{const r=e.clientX===t.clientX&&e.clientY===t.clientY&&e.target===t.target;return r&&(t.preventDefault(),t.stopPropagation()),r})).subscribe(e=>this.dragOver(e))),this.dragPartEventSub.add(w(this.el.nativeElement,"dragenter").subscribe(e=>this.dragEnter(e))),this.dragPartEventSub.add(w(this.el.nativeElement,"dragleave").subscribe(e=>this.dragLeave(e)))}ngAfterViewInit(){this.el.nativeElement.hasAttribute("d-sortable")?this.sortContainer=this.el.nativeElement:this.sortContainer=this.el.nativeElement.querySelector("[d-sortable]"),this.sortDirection=this.sortContainer&&this.sortContainer.getAttribute("dsortable")||"v",this.sortDirectionZMode=this.sortContainer&&this.sortContainer.getAttribute("d-sortable-zmode")==="true"||!1}ngOnDestroy(){var e,t,r;(e=this.dragStartSubscription)==null||e.unsubscribe(),(t=this.dragEndSubscription)==null||t.unsubscribe(),(r=this.dropEndSubscription)==null||r.unsubscribe(),this.dragPartEventSub&&this.dragPartEventSub.unsubscribe()}dragEnter(e){this.dragCount++,e.preventDefault(),this.dragEnterEvent.emit(e)}dragOver(e){if(this.allowDrop(e)){this.dragDropService.dropTargets.indexOf(this.el)===-1&&(this.dragDropService.dropTargets.forEach(r=>{const n=r.nativeElement.querySelector(".drag-placeholder");n&&n.parentElement.removeChild(n),f.removeClass(r,this.dragOverClass),this.removeDragoverItemClass(r.nativeElement)}),this.dragDropService.dropTargets=[this.el],this.overElement=void 0),f.addClass(this.el,this.dragOverClass);const t=this.dragDropService.dragOriginPlaceholder&&this.dragDropService.dragOriginPlaceholder.contains(e.target);if(this.sortContainer&&(t&&this.overElement===void 0||!(e.target.contains(this.placeholder)||t)||this.switchWhileCrossEdge&&!this.placeholder.contains(e.target)&&!t||!this.sortContainer.contains(e.target)&&this.defaultDropPosition==="closest")){const r=this.findSortableEl(e);!(this.overElement&&r)||this.overElement.index!==r.index||this.allowDropOnItem&&this.overElement.position!==r.position&&(this.overElement.position==="inside"||r.position==="inside")?(this.overElement=r,this.insertPlaceholder(r),this.removeDragoverItemClass(this.sortContainer,r),r.position==="inside"&&this.dragOverItemClass&&f.addClass(r.el,this.dragOverItemClass)):this.overElement=r}else this.sortContainer&&this.overElement&&this.overElement.el&&(this.overElement.el.contains(e.target)?this.overElement.realEl=void 0:this.overElement.realEl=e.target);this.dragDropService.draggedEl&&(this.dragDropService.dragFollow||(f.addElStyles(this.dragDropService.draggedEl,{display:"none"}),this.dragDropService.dragElShowHideEvent.next(!1),this.dragDropService.dragOriginPlaceholder&&f.addElStyles(this.dragDropService.dragOriginPlaceholder,{display:"block"}))),e.preventDefault(),e.stopPropagation(),this.dragOverEvent.emit(e)}}dragLeave(e){this.dragCount--,this.dragCount===0&&(this.dragDropService.dropTargets.indexOf(this.el)!==-1&&(this.dragDropService.dropTargets=[]),f.removeClass(this.el,this.dragOverClass),this.removePlaceholder(),this.removeDragoverItemClass(this.el.nativeElement),this.overElement=void 0,this.dragElIndex=void 0,this.dropIndex=void 0),e.preventDefault(),this.dragLeaveEvent.emit(e)}drop(e){if(!this.allowDrop(e))return;this.dragCount=0,f.removeClass(this.el,this.dragOverClass),this.removeDragoverItemClass(this.sortContainer),this.removePlaceholder(),e.preventDefault(),e.stopPropagation(),this.dragDropService.dropOnOrigin=this.isDragPlaceholderPosition(this.dropIndex);const t=this.dragDropService.draggedElIdentity;this.dragDropService.draggedElIdentity=void 0;let r=[];this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length>1&&(r=this.dragDropService.batchDragData.map(n=>n.draggable).filter(n=>n&&n.el.nativeElement!==this.dragDropService.draggedEl)),this.dropEvent.emit(new nt(e,this.dragDropService.dragData,this.dragDropService.dropEvent,this.dropSortVirtualScrollOption?this.getRealIndex(this.dropIndex,this.dropFlag):this.dropIndex,this.sortContainer?this.checkSelfFromIndex(this.dragDropService.draggedEl):-1,this.dragDropService.dropOnItem,this.dragDropService.dropOnOrigin,this.dragDropService.batchDragging?this.dragDropService.getBatchDragData(t):void 0)),this.dragDropService.dragFollow?this.dragDropService.disableDraggedCloneNodeFollowMouse():(f.addElStyles(this.dragDropService.draggedEl,{display:void 0}),this.dragDropService.dragElShowHideEvent.next(!1)),r.length>0&&this.dragDropService.batchDragging&&r.forEach(n=>{!n.originPlaceholder||n.originPlaceholder.show===!1?n.el.nativeElement.style.display="":n.originPlaceholder.removeDelay>0&&!this.dragDropService.dropOnOrigin?n.delayRemoveOriginPlaceholder(!1):(n.el.nativeElement.style.display="",n.removeOriginPlaceholder(!1))}),this.dragDropService.dropEvent.next(e),this.dragDropService.dragData=void 0,this.dragDropService.scope=void 0,this.dragDropService.draggedEl=void 0,this.dragDropService.dragFollow=void 0,this.dragDropService.dragFollowOptions=void 0,this.dragDropService.dragOffset=void 0,this.dragDropService.dropOnOrigin=void 0,this.dragDropService.batchDragging=!1,this.dragDropService.batchDragStyle=void 0,this.dragDropService.dragPreviewDirective=void 0}allowDrop(e){if(!e)return!1;if(this.allowDropCache!==void 0)return this.allowDropCache;let t=!1;return typeof this.dropScope=="string"&&(typeof this.dragDropService.scope=="string"&&(t=this.dragDropService.scope===this.dropScope),this.dragDropService.scope instanceof Array&&(t=this.dragDropService.scope.indexOf(this.dropScope)>-1)),this.dropScope instanceof Array&&(typeof this.dragDropService.scope=="string"&&(t=this.dropScope.indexOf(this.dragDropService.scope)>-1),this.dragDropService.scope instanceof Array&&(t=this.dropScope.filter(r=>this.dragDropService.scope.indexOf(r)!==-1).length>0)),this.allowDropCache=t,t}findSortableEl(e){var c;const t=e.target;let r=null;if(!this.sortContainer)return r;r={index:0,el:null,position:"before"},this.dropIndex=0,this.dropFlag=void 0;let n=f.slice(this.sortContainer.children);if(this.dropSortCountSelector&&(n=n.filter(this.dropSortCountSelectorFilterFn)),n.some(d=>d!==this.dragDropService.dragOriginPlaceholder&&d.classList.contains("drag-origin-placeholder"))&&(n=n.filter(d=>!(d.classList.contains("drag-origin-placeholder")&&d!==this.dragDropService.dragOriginPlaceholder))),this.dragDropService.dragFollow&&this.dragDropService.dragCloneNode){const d=n.findIndex(h=>h===this.dragDropService.dragCloneNode);d!==-1&&n.splice(d,1)}if(this.dragDropService.dragOriginPlaceholder){const d=n.findIndex(h=>h===this.dragDropService.dragOriginPlaceholder);d!==-1?(this.dragElIndex=d-1,n.splice(d,1)):this.dragElIndex=-1}else this.dragElIndex=-1;const s=n.findIndex(d=>d.contains(this.placeholder));s!==-1&&n.splice(s,1),s!==-1&&this.dragElIndex!==-1&&s<this.dragElIndex&&this.dragElIndex--;const o=s!==-1?s:this.dragElIndex,a=n.findIndex(d=>d.contains(t)||d.nextElementSibling===t&&d.nextElementSibling.classList.contains("drag-origin-placeholder"));if(this.switchWhileCrossEdge&&!this.allowDropOnItem&&n.length&&o!==-1&&a>-1){const d=o,h=this.overElement&&(this.overElement.realEl||this.overElement.el);return a!==-1&&h===n[a]?(this.dropIndex=this.overElement.index,this.overElement):(r={index:d>a?a:a+1,el:n[a],position:d>a?"before":"after"},this.dragDropService.dropOnItem=!1,this.dropIndex=r.index,r)}if(t===this.sortContainer||((c=t.classList)==null?void 0:c.contains("drag-origin-placeholder"))||t===(this.dragDropService&&this.dragDropService.dragOriginPlaceholder)||!this.sortContainer.contains(t)&&this.defaultDropPosition==="closest"){if(!n.length)return this.dropIndex=0,this.dragDropService.dropOnItem=!1,r;let d=!1;for(let h=0;h<n.length;h++){const p=n[h];if(n[h].nextSibling===t&&t.classList.contains("drag-origin-placeholder")){const y=this.calcPosition(e,t);return this.dragDropService.dropOnItem=y==="inside",r={index:y==="after"?h+1:h,el:n[h],position:y},this.dropIndex=r.index,r}const g=this.calcPositionOutside(e,p);if(g==="before"){this.dragDropService.dropOnItem=!1,r={index:h,el:n[h],position:g,realEl:t},this.dropIndex=r.index,d=!0;break}}return d||(this.dragDropService.dropOnItem=!1,r={index:n.length,el:n[n.length-1],position:"after",realEl:t},this.dropIndex=n.length),r}if(!this.sortContainer.contains(t))return this.defaultDropPosition==="before"?(r={index:0,el:n.length?n[0]:null,position:"before",realEl:t},this.dropFlag="beforeAll"):(r={index:n.length,el:n.length?n[n.length-1]:null,position:"after",realEl:t},this.dropFlag="afterAll"),this.dropIndex=r.index,r;let l=!1;for(let d=0;d<n.length;d++)if(n[d].contains(t)){const h=n[d],p=this.calcPosition(e,h);this.dragDropService.dropOnItem=p==="inside",r={index:p==="after"?d+1:d,el:n[d],position:p},this.dropIndex=r.index,l=!0;break}return l||(n.length&&(r={index:n.length,el:n[n.length-1],position:"after"}),this.dropIndex=n.length,this.dragDropService.dropOnItem=!1),r}calcPosition(e,t){const r=t.getBoundingClientRect(),n=e.clientY-(r.y||r.top),s=e.clientX-(r.x||r.left);if(this.allowDropOnItem){const o={height:this.nestingTargetRect&&this.nestingTargetRect.height||r.height,width:this.nestingTargetRect&&this.nestingTargetRect.width||r.width},a=o.height*3/4,l=o.width*3/4,c=Number(o.height)/4,d=Number(o.width)/4;if(this.sortDirectionZMode){const h=n/o.height+s/o.width;if(h>.3&&h<=.7)return"inside";if(h>.7&&(n-r.height+o.height)/o.height+(s-r.width+o.width)/o.width<=.7)return"inside"}if(this.sortDirection==="v"&&n>c&&n<=a||this.sortDirection!=="v"&&s>d&&s<=l)return"inside";if(this.sortDirection==="v"&&n>a&&n<=r.height-c||this.sortDirection!=="v"&&s>l&&s<=r.width-d)return"inside"}return this.sortDirectionZMode?n/r.height+s/r.width<1?"before":"after":this.sortDirection==="v"&&n>r.height/2||this.sortDirection!=="v"&&s>r.width/2?"after":"before"}calcPositionOutside(e,t){const r=this.getBoundingRectAndRealPosition(t),n=e.clientY-(r.y||r.top),s=e.clientX-(r.x||r.left);return this.sortDirectionZMode?this.sortDirection==="v"&&(n<0||n<r.height&&s<0)||this.sortDirection!=="v"&&(s<0||s<r.width&&n<0)?"before":"notsure":this.sortDirection==="v"&&n<r.height/2||this.sortDirection!=="v"&&s<r.width/2?"before":"notsure"}insertPlaceholder(e){const t=this.sortContainer.scrollTop,r=this.sortContainer.scrollLeft;let n=!1,s;const o=(a,l,c)=>{const d=a.indexOf(l);return d>-1?d:c};if(e!==null){const a=f.slice(this.sortContainer.children).filter(l=>l!==this.dragDropService.dragCloneNode);e.el===null?(s={command:"append"},this.sortContainer.appendChild(this.placeholder)):e.position==="inside"?(s={command:"remove"},this.removePlaceholder()):this.dragDropService.dragOriginPlaceholder&&this.isDragPlaceholderPosition(e.index)?(s={command:"remove"},this.removePlaceholder(),n=!0):e.position==="after"?e.el.nextSibling&&e.el.nextSibling.classList&&e.el.nextSibling.classList.contains("drag-origin-placeholder")?(s={command:"insertBefore",index:o(a,e.el.nextSibling,a.length)+1},this.sortContainer.insertBefore(this.placeholder,e.el.nextSibling.nextSibling)):(s={command:"insertBefore",index:o(a,e.el,a.length)+1},this.sortContainer.insertBefore(this.placeholder,e.el.nextSibling)):(s={command:"insertBefore",index:o(a,e.el,a.length)},this.sortContainer.insertBefore(this.placeholder,e.el))}this.placeholderInsertionEvent.next(s),this.sortContainer.scrollTop=t,this.sortContainer.scrollLeft=r,this.dragDropService.dragOriginPlaceholder&&(n?this.hitDragOriginPlaceholder():this.hitDragOriginPlaceholder(!1))}isDragPlaceholderPosition(e){return this.dragElIndex>-1&&(e===this.dragElIndex||e===this.dragElIndex+1)}hitDragOriginPlaceholder(e=!0){const t=this.dragDropService.dragOriginPlaceholder;e?t.classList.add("hit-origin-placeholder"):t.classList.remove("hit-origin-placeholder")}removePlaceholder(){this.sortContainer&&this.sortContainer.contains(this.placeholder)&&(this.sortContainer.removeChild(this.placeholder),this.placeholderInsertionEvent.next({command:"remove"}))}removeDragoverItemClass(e,t){if(this.dragOverItemClass){const r=e.querySelectorAll("."+this.dragOverItemClass);if(r&&r.length>0)for(const n of r)t?(n!==t.el||t.position!=="inside")&&f.removeClass(n,this.dragOverItemClass):f.removeClass(n,this.dragOverItemClass)}}checkSelfFromIndex(e){let t=-1;if(!this.sortContainer.contains(e))return t;let r=f.slice(this.sortContainer.children);this.dropSortCountSelector&&(r=r.filter(this.dropSortCountSelectorFilterFn));for(let n=0;n<r.length;n++)if(r[n].contains(this.dragDropService.draggedEl)){t=n;break}return this.getRealIndex(t)}getRealIndex(e,t){let r;const n=this.dropSortVirtualScrollOption&&this.dropSortVirtualScrollOption.startIndex||0,s=this.dropSortVirtualScrollOption&&this.dropSortVirtualScrollOption.totalLength;return t==="beforeAll"?r=0:t==="afterAll"?r=s||e:r=n+e,r}getBoundingRectAndRealPosition(e){let t=e.getBoundingClientRect();const{bottom:r,right:n,width:s,height:o}=t;if(t.width===0&&t.height===0&&(e.style.display==="none"||getComputedStyle(e).display==="none")&&e.nextElementSibling){const{top:a,left:l}=e.nextElementSibling.getBoundingClientRect();t={x:l,y:a,top:a,left:l,bottom:r,right:n,width:s,height:o}}return t}getSortContainer(){return this.sortContainer}}B.INSTANCE_KEY="__vueDevuiDroppableDirectiveInstance",B.TOKEN=Symbol("DROPPABLE_DIRECTIVE_TOKEN");var st={mounted(i,e,t){var o;const r=t.ctx.provides,n=E(C.TOKEN,r),s=i[B.INSTANCE_KEY]=new B(i,n);q(B.TOKEN,s,r),s.setInput(e.value),s.mounted(),(o=s.ngOnInit)==null||o.call(s),setTimeout(()=>{var a;(a=s.ngAfterViewInit)==null||a.call(s)},0)},updated(i,e){i[B.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[B.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class te extends M{constructor(e){super(),this.dSortDirection="v",this.dSortableZMode=!1,this.dSortable=!0,this.hostBindingMap={dSortDirection:"dsortable",dSortableZMode:"d-sortable-zmode",dSortable:"d-sortable"},this.inputNameMap={dSortable:"dSortDirection"},this.el={nativeElement:null},this.el.nativeElement=e}}te.INSTANCE_KEY="__vueDevuiSortableDirectiveInstance";var ot={mounted(i,e){const t=i[te.INSTANCE_KEY]=new te(i);t.setInput(e.value),t.mounted()},updated(i,e){i[te.INSTANCE_KEY].updateInput(e.value,e.oldValue)}},at=(i=>(i[i.forward=0]="forward",i[i.backward=1]="backward",i))(at||{});const lt={default:i=>Math.ceil((1-i)*18)*100};class k extends M{constructor(e,t){super(),this.minSpeed=50,this.maxSpeed=1e3,this.responseEdgeWidth="100px",this.speedFn=lt.default,this.direction="v",this.backSpaceDroppable=!0,this.subscription=new O,this.el={nativeElement:null},this.el.nativeElement=e,this.dragDropService=t,this.document=window.document}ngAfterViewInit(){this.el.nativeElement.parentNode.style.position="relative",this.el.nativeElement.parentNode.style.display="block",this.forwardScrollArea=this.createScrollArea(this.direction,0),this.backwardScrollArea=this.createScrollArea(this.direction,1),this.forwardScrollFn=this.createScrollFn(this.direction,0,this.speedFn),this.backwardScrollFn=this.createScrollFn(this.direction,1,this.speedFn),this.subscription.add(w(this.forwardScrollArea,"dragover").pipe($e(e=>{e.preventDefault(),e.stopPropagation()}),ce(100,void 0,{leading:!0,trailing:!1})).subscribe(e=>this.forwardScrollFn(e))),this.subscription.add(w(this.backwardScrollArea,"dragover").pipe($e(e=>{e.preventDefault(),e.stopPropagation()}),ce(100,void 0,{leading:!0,trailing:!1})).subscribe(e=>this.backwardScrollFn(e))),this.subscription.add(ye(w(this.forwardScrollArea,"drop"),w(this.backwardScrollArea,"drop")).subscribe(e=>this.delegateDropEvent(e))),this.subscription.add(ye(w(this.forwardScrollArea,"dragleave",{passive:!0}),w(this.backwardScrollArea,"dragleave",{passive:!0})).subscribe(e=>this.cleanLastScrollTime())),this.subscription.add(w(this.el.nativeElement,"scroll",{passive:!0}).pipe(ce(300,void 0,{leading:!0,trailing:!0})).subscribe(e=>{this.toggleScrollToOneEnd(this.el.nativeElement,this.forwardScrollArea,this.direction,0),this.toggleScrollToOneEnd(this.el.nativeElement,this.backwardScrollArea,this.direction,1)})),this.subscription.add(w(window,"resize",{passive:!0}).pipe(ce(300,void 0,{leading:!0,trailing:!0})).subscribe(e=>this.resizeArea())),this.subscription.add(this.dragDropService.dragStartEvent.subscribe(()=>{!this.allowScroll()||setTimeout(()=>{this.forwardScrollArea.style.display="block",this.backwardScrollArea.style.display="block"})})),this.subscription.add(ye(this.dragDropService.dragEndEvent,this.dragDropService.dropEvent).subscribe(()=>{this.forwardScrollArea.style.display="none",this.backwardScrollArea.style.display="none",this.lastScrollTime=void 0})),setTimeout(()=>{this.resizeArea()},0)}ngOnDestroy(){this.subscription.unsubscribe()}createScrollFn(e,t,r){if(typeof window=="undefined")return;const n=e==="v"?"scrollTop":"scrollLeft",s=e==="v"?"clientY":"clientX",o=e==="v"?"scrollHeight":"scrollWidth",a=e==="v"?"offsetHeight":"offsetWidth",l=e==="v"?"clientHeight":"clientWidth",c=e==="v"?"height":"width",d=t===0?this.forwardScrollArea:this.backwardScrollArea,h=this.getCriticalEdge(e,t),p=this.el.nativeElement;return g=>{const y=d.getBoundingClientRect(),v=g[s]-y[h];let T=r(Math.abs(v/(y[c]||1)));T<this.minSpeed&&(T=this.minSpeed),T>this.maxSpeed&&(T=this.maxSpeed),v<0&&(T=-T),this.animationFrameId&&(window.cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0),this.animationFrameId=requestAnimationFrame(()=>{const b=new Date().getTime(),ee=Math.ceil(T*(b-(this.lastScrollTime||b))/1e3);p[n]-=ee,this.lastScrollTime=b,(p[n]===0&&t===1||p[n]+p.getBoundingClientRect()[c]-p[a]+p[l]===p[o]&&t===0)&&(d.style.pointerEvents="none",this.toggleActiveClass(d,!1)),this.animationFrameId=void 0}),this.backSpaceDroppable&&f.dispatchEventToUnderElement(g)}}delegateDropEvent(e){this.backSpaceDroppable&&f.dispatchEventToUnderElement(e).defaultPrevented&&(e.preventDefault(),e.stopPropagation())}getCriticalEdge(e,t){return e==="v"&&t===0&&"bottom"||e==="v"&&t===1&&"top"||e!=="v"&&t===0&&"right"||e!=="v"&&t===1&&"left"||"bottom"}getSecondEdge(e){return e==="v"&&"left"||e!=="v"&&"top"||"left"}createScrollArea(e,t){const r=this.document.createElement("div");return r.className=`dropover-scroll-area dropover-scroll-area-${this.getCriticalEdge(e,t)}`,r.classList.add("active"),this.setAreaSize(r,e,t),r.style.position="absolute",this.setAreaStyleLayout(r,e,t),r.style.display="none",this.el.nativeElement.parentNode.appendChild(r,this.el.nativeElement),r}setAreaSize(e,t,r){const n=this.el.nativeElement.getBoundingClientRect(),s=t==="v"?"height":"width",o=typeof this.responseEdgeWidth=="string"?this.responseEdgeWidth:this.responseEdgeWidth(n[s]),a=this.viewOffset&&(r===0?this.viewOffset.forward:this.viewOffset.backward);let l=t==="v"?n.width+"px":o,c=t==="v"?o:n.height+"px";a&&(a.widthOffset&&(l="calc("+l+" + "+a.widthOffset+"px)"),a.heightOffset&&(c="calc("+c+" + "+a.heightOffset+"px)")),e.style.width=l,e.style.height=c}setAreaStyleLayout(e,t,r){const n=this.el.nativeElement,s=this.el.nativeElement.parentNode,o={left:0,right:0,top:0,bottom:0},a=this.viewOffset&&(r===0?this.viewOffset.forward:this.viewOffset.backward)||o,l=this.getCriticalEdge(t,r),c=this.getSecondEdge(t);[l,c].forEach(d=>{e.style[d]=this.getRelatedPosition(n,s,d,a[d])})}getRelatedPosition(e,t,r,n){if(typeof window=="undefined")return"0px";const s=window.getComputedStyle(t),o=t.getBoundingClientRect(),a=e.getBoundingClientRect(),l={left:["left","Left"],right:["right","Right"],top:["top","Top"],bottom:["bottom","Bottom"]};let c=1;return(r==="right"||r==="bottom")&&(c=-1),(a[l[r][0]]-o[l[r][0]]+parseInt(s["border"+l[r][1]+"Width"],10))*c+(n||0)+"px"}resizeArea(){[{area:this.forwardScrollArea,orientation:0},{area:this.backwardScrollArea,orientation:1}].forEach(e=>{this.setAreaSize(e.area,this.direction,e.orientation),this.setAreaStyleLayout(e.area,this.direction,e.orientation)})}toggleScrollToOneEnd(e,t,r,n){const s=r==="v"?"scrollTop":"scrollLeft",o=r==="v"?"scrollHeight":"scrollWidth",a=r==="v"?"offsetHeight":"offsetWidth",l=r==="v"?"clientHeight":"clientWidth",c=r==="v"?"height":"width";e[s]===0&&n===1||Math.abs(e[s]+e.getBoundingClientRect()[c]-e[o]-e[a]+e[l])<1&&n===0?(t.style.pointerEvents="none",this.toggleActiveClass(t,!1)):(t.style.pointerEvents="auto",this.toggleActiveClass(t,!0))}cleanLastScrollTime(){this.animationFrameId&&typeof window!="undefined"&&(window.cancelAnimationFrame(this.animationFrameId),this.animationFrameId=void 0),this.lastScrollTime=void 0}toggleActiveClass(e,t){t?(e.classList.remove("inactive"),e.classList.add("active")):(e.classList.remove("active"),e.classList.add("inactive"))}allowScroll(){if(!this.dropScrollScope)return!0;let e=!1;return typeof this.dropScrollScope=="string"&&(typeof this.dragDropService.scope=="string"&&(e=this.dragDropService.scope===this.dropScrollScope),this.dragDropService.scope instanceof Array&&(e=this.dragDropService.scope.indexOf(this.dropScrollScope)>-1)),this.dropScrollScope instanceof Array&&(typeof this.dragDropService.scope=="string"&&(e=this.dropScrollScope.indexOf(this.dragDropService.scope)>-1),this.dragDropService.scope instanceof Array&&(e=this.dropScrollScope.filter(t=>this.dragDropService.scope.indexOf(t)!==-1).length>0)),e}}k.INSTANCE_KEY="__vueDevuiDropScrollEnhancedDirectiveInstance";var ct={mounted(i,e,t){const r=t.ctx.provides,n=E(C.TOKEN,r),s=i[k.INSTANCE_KEY]=new k(i,n);s.setInput(e.value),s.mounted(),setTimeout(()=>{var o;(o=s.ngAfterViewInit)==null||o.call(s)},0)},updated(i,e){i[k.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[k.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class re extends k{constructor(){super(...arguments),this.inputNameMap={direction:"sideDirection"},this.sideDirection="h",this.direction="v"}ngOnInit(){this.direction=this.sideDirection==="v"?"h":"v"}}const dt={mounted(i,e,t){const r=t.ctx.provides,n=E(C.TOKEN,r),s=i[re.INSTANCE_KEY]=new re(i,n);s.setInput(e.value),s.mounted(),setTimeout(()=>{var o;(o=s.ngAfterViewInit)==null||o.call(s)},0)},updated(i,e){i[re.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[re.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class X extends M{constructor(e,t){super(),this.draggable=e,this.dragDropService=t,this.batchDragGroup="default",this.batchDragActive=!1,this.batchDragLastOneAutoActiveEventKeys=["ctrlKey"],this.batchDragStyle=["badge","stack"],this.batchDragActiveEvent=new F,this.needToRestore=!1,this.draggable.batchDraggable=this}ngOnInit(){this.initDragDataByIdentity()}ngOnDestroy(){this.draggable.batchDraggable=void 0,this.dragData&&this.dragData.draggable===this.draggable&&(this.dragData.draggable=void 0,this.dragData.identity||this.removeFromBatchGroup())}ngOnChanges(e){e.batchDragActive&&(this.initDragDataByIdentity()||(this.batchDragActive?!this.dragData&&this.allowAddToBatchGroup()&&this.addToBatchGroup():this.removeFromBatchGroup()))}ngAfterViewInit(){this.needToRestore&&(this.restoreDragDataViewAfterViewInit(),this.needToRestore=!1)}initDragDataByIdentity(){const e=this.findInBatchDragDataByIdentities();return e&&(this.batchDragActive?this.dragData||(this.addToBatchGroup(e),this.registerRestoreDragDataViewAfterViewInitWhiteDragging()):this.removeFromBatchGroup(e)),e}registerRestoreDragDataViewAfterViewInitWhiteDragging(){this.dragDropService.draggedEl&&this.dragDropService.draggedElIdentity&&this.dragDropService.draggedEl!==this.draggable.el.nativeElement&&(this.needToRestore=!0)}restoreDragDataViewAfterViewInit(){const e=this.draggable;e.originPlaceholder&&e.originPlaceholder.show!==!1&&e.insertOriginPlaceholder(!0,!1),e.el.nativeElement.style.display="none"}allowAddToBatchGroup(){return this.dragDropService.batchDragGroup?this.batchDragGroup===this.dragDropService.batchDragGroup:!0}addToBatchGroup(e){this.dragDropService.batchDragGroup=this.dragDropService.batchDragGroup||this.batchDragGroup,e?(e.draggable=this.draggable,e.dragData=this.draggable.dragData,this.dragData=e):(this.dragData=this.dragData||{identity:this.draggable.dragIdentity||void 0,draggable:this.draggable,dragData:this.draggable.dragData},this.dragDropService.batchDragData=this.addToArrayIfNotExist(this.dragDropService.batchDragData,this.dragData))}removeFromBatchGroup(e){this.deleteFromArrayIfExist(this.dragDropService.batchDragData,e||this.dragData),this.dragData=void 0,this.dragDropService.batchDragData&&this.dragDropService.batchDragData.length||(this.dragDropService.batchDragGroup=void 0)}addToArrayIfNotExist(e,t){return e=e||[],e.indexOf(t)===-1&&e.push(t),e}deleteFromArrayIfExist(e,t){if(!!e){if(e.length>0){const r=e.indexOf(t);r>-1&&e.splice(r,1)}return e}}findInBatchDragDataByIdentities(){return this.draggable.dragIdentity?this.dragDropService.batchDragData?this.dragDropService.batchDragData.filter(e=>e.identity===this.draggable.dragIdentity).pop():void 0:null}active(){this.batchDragActiveEvent.emit({el:this.draggable.el.nativeElement,data:this.draggable.dragData})}updateDragData(){!this.dragData||Object.assign(this.dragData,{identity:this.draggable.dragIdentity||void 0,draggable:this.draggable,dragData:this.draggable.dragData})}}X.INSTANCE_KEY="__vueDevuiBatchDraggableDirectiveInstance";var Sr={mounted(i,e,t){var a;const r=t.ctx.provides,n=E(C.TOKEN,r),s=E(_.TOKEN,r),o=i[X.INSTANCE_KEY]=new X(s,n);o.setInput(e.value),o.mounted(),(a=o.ngOnInit)==null||a.call(o),setTimeout(()=>{var l;(l=o.ngAfterViewInit)==null||l.call(o)},0)},updated(i,e){i[X.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[X.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class be extends M{constructor(t,r){super();Oe(this,"copyStyle",!0);this.el=t,this.dragDropService=r}ngAfterViewInit(){this.cloneNode||this.createView()}ngOnChanges(t){t.domRef&&(this.cloneNode?(this.destroyView(),this.createView()):this.createView())}ngOnDestroy(){this.cloneNode&&this.destroyView()}createView(){this.domRef&&(this.cloneNode=this.domRef.cloneNode(!0),this.copyStyle&&this.dragDropService.copyStyle(this.domRef,this.cloneNode),setTimeout(()=>{this.el.nativeElement.appendChild(this.cloneNode)},0))}destroyView(){this.cloneNode&&(this.el.nativeElement.contains(this.cloneNode)&&this.el.nativeElement.removeChild(this.cloneNode),this.cloneNode=void 0)}updateTemplate(){}}Oe(be,"NAME","d-drag-preview-clone-dom-ref");var ht=S.defineComponent({name:"DDragPreviewCloneDomRef",props:{domRef:Object,copyStyle:{type:Boolean,default:!0}},setup(i,{expose:e}){const t={nativeElement:null},r=S.inject(C.TOKEN),n=new be(t,r);return n.setInput(i),S.onMounted(()=>{n.mounted(),S.nextTick(()=>{var s;(s=n.ngAfterViewInit)==null||s.call(n)})}),S.watch(()=>i,(s,o)=>{n.updateInput(s,o)}),S.onBeforeUnmount(()=>{var s;(s=n.ngOnDestroy)==null||s.call(n)}),e({instance:n}),()=>S.createVNode("div",{ref:s=>t.nativeElement=s},null)}});function ut(i,e){e===void 0&&(e=i);for(let t=0;t<i.length;t++){let r=i[t];Array.isArray(r)?(e===i&&(e=i.slice(0,t)),ut(r,e)):e!==i&&e.push(r)}return e}function yr(){return this._results[Symbol.iterator]()}const gt=class{constructor(){this.dirty=!0,this._results=[],this.changes=new F,this.length=0;const i=Symbol.iterator,e=gt.prototype;e[i]||(e[i]=yr)}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i){this._results=ut(i),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}};let br=gt;class Ee{constructor(){this._result=[],this.changeSubject=new Pt([]),this.changes=this.changeSubject.asObservable().pipe(ur(200))}register(e){if(!e)return;this._result.indexOf(e)===-1&&(this._result.push(e),this.changeSubject.next(this._result))}unregister(e){if(!e)return;const t=this._result.indexOf(e);t>-1&&(this._result.splice(t,1),this.changeSubject.next(this._result))}queryResult(){return this._result.concat([])}}class we extends M{constructor(e){super(),this.drs=e}ngOnInit(){this.drs.register(this.descendantItem)}ngOnDestroy(){this.drs.unregister(this.descendantItem)}}class Ie extends br{constructor(e){super(),this.drs=e}on(){this.sub||(this.reset(this.drs.queryResult()),this.sub=this.drs.changes.subscribe(e=>{this.reset(e)}))}off(){this.sub&&this.sub.unsubscribe()}}class z extends Ee{}z.TOKEN=Symbol("DRAG_SYNC_DR_SERVICE");class Q extends Ee{}Q.TOKEN=Symbol("DROP_SORT_SYNC_DR_SERVICE");class j{updateDragSyncList(e){this.dragSyncList=e}getDragSyncByGroup(e){return e?[]:this.dragSyncList?this.dragSyncList.filter(t=>t.dragSyncGroup===e):[]}updateDropSyncList(e){this.dropSortSyncList=e}getDropSyncByGroup(e){return e?[]:this.dropSortSyncList?this.dropSortSyncList.filter(t=>t.dropSyncGroup===e):[]}}j.TOKEN=Symbol("DRAG_DROP_SYNC_SERVICE");class Z extends M{constructor(e,t,r){super(),this.dragDropSyncService=e,this.dragSyncDrs=t,this.dropSortSyncDrs=r,this.sub=new O}ngOnInit(){this.dragSyncList=new Ie(this.dragSyncDrs),this.dropSyncList=new Ie(this.dropSortSyncDrs)}ngAfterViewInit(){this.dragSyncList.on(),this.dropSyncList.on(),this.dragDropSyncService.updateDragSyncList(this.dragSyncList),this.dragDropSyncService.updateDropSyncList(this.dropSyncList),this.sub.add(this.dragSyncList.changes.subscribe(e=>this.dragDropSyncService.updateDragSyncList(e))),this.sub.add(this.dropSyncList.changes.subscribe(e=>this.dragDropSyncService.updateDropSyncList(e)))}ngOnDestroy(){this.sub&&this.sub.unsubscribe(),this.dragSyncList.off(),this.dropSyncList.off()}}Z.INSTANCE_KEY="__vueDevuiDragDropSyncBoxDirectiveInstance";var ft={created(i,e,t){const r=t.ctx.provides,n=new j,s=new z,o=new Q;q(j.TOKEN,n,r),q(z.TOKEN,s,r),q(Q.TOKEN,o,r)},mounted(i,e,t){var l;const r=t.ctx.provides,n=E(j.TOKEN,r),s=E(z.TOKEN,r),o=E(Q.TOKEN,r),a=i[Z.INSTANCE_KEY]=new Z(n,s,o);a.setInput(e.value),a.mounted(),(l=a.ngOnInit)==null||l.call(a),setTimeout(()=>{var c;(c=a.ngAfterViewInit)==null||c.call(a)},0)},updated(i,e){i[Z.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[Z.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class J extends we{constructor(e,t,r,n,s){super(s),this.draggable=t,this.dragDropSyncService=r,this.dragDropService=n,this.inputNameMap={dragSync:"dragSyncGroup",dragSyncGroup:"dragSyncGroup"},this.dragSyncGroup="",this.subscription=new O,this.el={nativeElement:null},this.subDragElEvent=o=>{this.syncGroupDirectives.forEach(a=>this.renderDisplay(a.el.nativeElement,o))},this.el.nativeElement=e,this.descendantItem=this}ngOnInit(){this.draggable&&(this.subscription.add(this.draggable.dragElShowHideEvent.subscribe(this.subDragElEvent)),this.subscription.add(this.draggable.beforeDragStartEvent.subscribe(()=>{this.syncGroupDirectives=this.dragDropSyncService.getDragSyncByGroup(this.dragSyncGroup).filter(e=>e!==this),this.dragDropService.dragSyncGroupDirectives=this.syncGroupDirectives})),this.subscription.add(this.draggable.dropEndEvent.subscribe(()=>{this.dragDropService.dragSyncGroupDirectives=void 0,this.syncGroupDirectives=void 0}))),super.ngOnInit()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}renderDisplay(e,t){e.style.display=t?"":"none"}}J.INSTANCE_KEY="__vueDevuiDragSyncDirectiveInstance";var pt={mounted(i,e,t){var c;const r=t.ctx.provides;let n=E(_.TOKEN,r);(n==null?void 0:n.el.nativeElement)!==i&&(n=void 0);const s=E(j.TOKEN,r),o=E(C.TOKEN,r),a=E(z.TOKEN,r),l=i[J.INSTANCE_KEY]=new J(i,n,s,o,a);l.setInput(e.value),l.mounted(),(c=l.ngOnInit)==null||c.call(l)},updated(i,e){i[J.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[J.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}};class $ extends we{constructor(e,t,r,n){super(n),this.droppable=t,this.dragDropSyncService=r,this.inputNameMap={dropSortSync:"dropSyncGroup",dropSyncGroup:"dropSyncGroup",dropSyncDirection:"direction"},this.dropSyncGroup="",this.direction="v",this.subscription=new O,this.el={nativeElement:null},this.subRenderEvent=s=>{this.syncGroupDirectives=this.dragDropSyncService.getDropSyncByGroup(this.dropSyncGroup).filter(o=>o!==this),this.syncGroupDirectives.forEach(o=>{o.renderPlaceholder(s,this.droppable)})},this.subInsertionEvent=s=>{this.syncGroupDirectives=this.dragDropSyncService.getDropSyncByGroup(this.dropSyncGroup).filter(o=>o!==this),this.syncGroupDirectives.forEach(o=>{o.insertPlaceholderCommand({command:s.command,container:o.sortContainer,relatedEl:o.getChildrenElByIndex(o.sortContainer,s.index)})})},this.el.nativeElement=e,this.descendantItem=this}ngOnInit(){this.sortContainer=this.el.nativeElement,this.droppable&&(this.sortContainer=this.droppable.getSortContainer(),this.subscription.add(this.droppable.placeholderInsertionEvent.subscribe(this.subInsertionEvent)),this.subscription.add(this.droppable.placeholderRenderEvent.subscribe(this.subRenderEvent))),super.ngOnInit()}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy()}getChildrenElByIndex(e,t){return t===void 0||e&&e.children&&e.children.length<t||t<0?null:this.sortContainer.children.item(t)}renderPlaceholder(e,t){this.placeholder||(this.placeholder=document.createElement(t.placeholderTag),this.placeholder.className="drag-placeholder",this.placeholder.classList.add("drag-sync-placeholder"),this.placeholder.innerText=t.placeholderText);const{width:r,height:n}=e;this.direction==="v"?(this.placeholder.style.width=r+"px",this.placeholder.style.height=this.sortContainer.getBoundingClientRect().height+"px"):(this.placeholder.style.height=n+"px",this.placeholder.style.width=this.sortContainer.getBoundingClientRect().width+"px"),f.addElStyles(this.placeholder,t.placeholderStyle)}insertPlaceholderCommand(e){if(e.command==="insertBefore"&&e.container){e.container.insertBefore(this.placeholder,e.relatedEl);return}if(e.command==="append"&&e.container){e.container.appendChild(this.placeholder);return}if(e.command==="remove"&&e.container){e.container.contains(this.placeholder)&&e.container.removeChild(this.placeholder);return}}}$.INSTANCE_KEY="__vueDevuiDropSortSyncDirectiveInstance";var vt={mounted(i,e,t){var l;const r=t.ctx.provides;let n=E(B.TOKEN,r);(n==null?void 0:n.el.nativeElement)!==i&&(n=void 0);const s=E(j.TOKEN,r),o=E(Q.TOKEN,r),a=i[$.INSTANCE_KEY]=new $(i,n,s,o);a.setInput(e.value),a.mounted(),(l=a.ngOnInit)==null||l.call(a)},updated(i,e){i[$.INSTANCE_KEY].updateInput(e.value,e.oldValue)},beforeUnmount(i){var t;const e=i[$.INSTANCE_KEY];(t=e.ngOnDestroy)==null||t.call(e)}},Er={title:"DragDropSync \u62D6\u62FD\u540C\u6B65",category:"\u57FA\u7840\u7EC4\u4EF6",install(i){i.directive("dDragDropSyncBox",ft),i.directive("dDragSync",pt),i.directive("dDropSortSync",vt)}},wr={title:"DragDrop 2.0 \u62D6\u62FD",category:"\u901A\u7528",status:"100%",install(i){i.directive("dDraggable",it),i.directive("dDroppable",st),i.directive("dSortable",ot),i.directive("dDropScrollEnhanced",ct),i.directive("dDropScrollEnhancedSide",dt),i.directive("dDraggableBatchDrag",Sr),i.directive("dDragPreview",mr),i.component("DDragPreviewTemplate",tt),i.component(ht.name,ht),i.provide(C.TOKEN,new C),i.use(Er)}};u.BatchDraggableDirective=X,u.DescendantChildren=we,u.DescendantRegisterService=Ee,u.DescendantRoot=Ie,u.DragDropService=C,u.DragDropSyncBox=ft,u.DragDropSyncBoxDirective=Z,u.DragDropSyncService=j,u.DragPreviewCloneDomRefComponent=be,u.DragPreviewComponent=rt,u.DragPreviewDirective=G,u.DragPreviewTemplate=tt,u.DragSync=pt,u.DragSyncDescendantRegisterService=z,u.DragSyncDirective=J,u.Draggable=it,u.DraggableDirective=_,u.DropEvent=nt,u.DropScrollEnhanceTimingFunctionGroup=lt,u.DropScrollEnhanced=ct,u.DropScrollEnhancedDirective=k,u.DropScrollEnhancedSide=dt,u.DropScrollEnhancedSideDirective=re,u.DropScrollOrientation=at,u.DropSortSync=vt,u.DropSortSyncDescendantRegisterService=Q,u.DropSortSyncDirective=$,u.Droppable=st,u.DroppableDirective=B,u.Sortable=ot,u.SortableDirective=te,u.default=wr,u.useDragDropService=vr,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -524,7 +524,7 @@ const FlexibleOverlay = defineComponent({
524
524
  }
525
525
  });
526
526
  /**
527
- * @vue/shared v3.4.27
527
+ * @vue/shared v3.5.22
528
528
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
529
529
  * @license MIT
530
530
  **/
@@ -1,5 +1,5 @@
1
1
  (function(P,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue"),require("@floating-ui/dom"),require("@vueuse/core")):typeof define=="function"&&define.amd?define(["exports","vue","@floating-ui/dom","@vueuse/core"],e):(P=typeof globalThis!="undefined"?globalThis:P||self,e(P.index={},P.Vue,P.dom,P.core))})(this,function(P,e,k,_){"use strict";const z={visible:{type:Boolean,default:!1},trigger:{type:String,default:"click"},closeScope:{type:String,default:"all"},position:{type:Array,default:()=>["bottom","top","left","right"]},offset:{type:[Number,Object],default:4},shiftOffset:{type:Number},closeOnMouseLeaveMenu:{type:Boolean,default:!1},showAnimation:{type:Boolean,default:!0},overlayClass:{type:String,default:""},destroyOnHide:{type:Boolean,default:!0},teleport:{type:[String,Object],default:"body"}},S=Symbol("popper-trigger");function D(t){const o=Object.prototype.toString.call(t);return o.includes("object")&&o.includes("HTML")&&o.includes("Element")}function H(t){return t instanceof Element||D(t)?t:t&&typeof t=="object"&&(t.$el instanceof Element||D(t.$el))?t.$el:null}const x=new Map;function A(t,o,n){return t==null||t.addEventListener(o,n),()=>{t==null||t.removeEventListener(o,n)}}const q=({id:t,isOpen:o,origin:n,dropdownRef:r,props:u,emit:l})=>{let i=!1,a=!1;const{trigger:d,closeScope:y,closeOnMouseLeaveMenu:T}=e.toRefs(u),f=h=>{o.value=h,l("toggle",o.value)},b=async(h,C)=>{await new Promise(g=>setTimeout(g,50)),!(h==="origin"&&i||h==="dropdown"&&a)&&(C&&[...x.values()].reverse().forEach(g=>{setTimeout(()=>{var m;(m=g.toggle)==null||m.call(g)},0)}),f(!1))};e.watch([d,n,r],([h,C,g],m,s)=>{const c=H(C),v=[];setTimeout(()=>{v.push(A(document,"click",p=>{p.stopPropagation();const w=[...x.values()];!o.value||y.value==="none"||(g==null?void 0:g.contains(p.target))&&y.value==="blank"||w.some(V=>{var O;return(O=V.toggleEl)==null?void 0:O.contains(p.target)})&&w.some(V=>{var O;return(O=V.menuEl)==null?void 0:O.contains(p.target)})||([...x.values()].reverse().forEach(V=>{setTimeout(()=>{var O,E;(O=V.toggleEl)!=null&&O.contains(p.target)||(E=V.toggle)==null||E.call(V)},0)}),i=!1)}))},0),h==="click"?v.push(A(c,"click",()=>f(!o.value)),A(g,"mouseleave",p=>{var w;T.value&&!((w=x.get(t).child)!=null&&w.contains(p.relatedTarget))&&b("dropdown",!0)})):h==="hover"&&v.push(A(c,"mouseenter",()=>{a=!0,f(!0)}),A(c,"mouseleave",()=>{a=!1,b("origin")}),A(g,"mouseenter",()=>{i=!0,o.value=!0}),A(g,"mouseleave",p=>{var w;i=!1,!(p.relatedTarget&&((c==null?void 0:c.contains(p.relatedTarget))||((w=x.get(t).child)==null?void 0:w.contains(p.relatedTarget))))&&b("dropdown",!0)})),s(()=>v.forEach(p=>p()))})};function U(t,o,n,r,u,l){e.watch(o,(i,a)=>{a!==void 0&&(n.value=i,l("toggle",n.value))},{immediate:!0}),e.watch([n,u],([i,a])=>{var d;if(i){x.set(t,{...x.get(t),menuEl:a,toggle:()=>{n.value=!1,l("toggle",n.value)}});for(const y of x.values())(d=y.menuEl)!=null&&d.contains(r.value)&&(y.child=a)}}),e.onMounted(()=>{x.set(t,{toggleEl:r.value})}),e.onUnmounted(()=>{x.delete(t)})}function I(t,o,n){const{showAnimation:r,overlayClass:u,destroyOnHide:l}=e.toRefs(t),i=e.ref(!1),a=e.ref(!1),d=e.computed(()=>({transformOrigin:o.value==="top"?"0% 100%":"0% 0%",zIndex:"var(--devui-z-index-dropdown, 1052)"})),y=e.computed(()=>({"fade-in-bottom":r.value&&n.value&&o.value==="bottom","fade-in-top":r.value&&n.value&&o.value==="top",[`${u.value}`]:!0})),T=f=>{o.value=f.includes("top")||f.includes("right-end")||f.includes("left-end")?"top":"bottom"};return e.watch(n,f=>{i.value=l.value?f:!0,a.value=f}),{overlayModelValue:i,overlayShowValue:a,styles:d,classes:y,handlePositionChange:T}}const W={modelValue:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}};function G(){if(document.documentElement.scrollHeight>document.documentElement.clientHeight){const t=document.documentElement.scrollTop,o=document.documentElement.getAttribute("style");return document.documentElement.style.position="fixed",document.documentElement.style.top=`-${t}px`,document.documentElement.style.width=document.documentElement.style.width||"100%",document.documentElement.style.overflowY="scroll",()=>{o?document.documentElement.setAttribute("style",o):document.documentElement.removeAttribute("style"),document.documentElement.scrollTop=t}}}function Y(t,o){let n;const r=l=>{l.preventDefault(),o.emit("click",l),t.closeOnClickOverlay&&o.emit("update:modelValue",!1)},u=()=>{n==null||n()};return e.watch(()=>t.modelValue,l=>{l?t.lockScroll&&(n=G()):u()}),e.onUnmounted(u),{onClick:r}}function N(t,o,n){let r=t;return o&&(r+=`__${o}`),n&&(r+=`--${n}`),r}function B(t,o=!1){const n=o?`.devui-${t}`:`devui-${t}`;return{b:()=>N(n),e:a=>a?N(n,a):"",m:a=>a?N(n,"",a):"",em:(a,d)=>a&&d?N(n,a,d):""}}var re="";e.defineComponent({name:"DFixedOverlay",inheritAttrs:!1,props:W,emits:["update:modelValue","click"],setup(t,o){const{modelValue:n}=e.toRefs(t),r=B("fixed-overlay"),{onClick:u}=Y(t,o);return()=>e.createVNode(e.Transition,{name:r.m("fade")},{default:()=>{var l,i;return[n.value&&e.createVNode("div",e.mergeProps({class:r.b()},o.attrs,{onClick:u}),[(i=(l=o.slots).default)==null?void 0:i.call(l)])]}})}});const K={modelValue:{type:Boolean,default:!1},origin:{type:Object,require:!0},position:{type:Array,default:["bottom"]},offset:{type:[Number,Object],default:8},shiftOffset:{type:Number},align:{type:String,default:null},showArrow:{type:Boolean,default:!1},isArrowCenter:{type:Boolean,default:!0},clickEventBubble:{type:Boolean,default:!1},fitOriginWidth:{type:Boolean,default:!1}};function X(t,o,n,r){let{x:u,y:l}=o;if(!t){const{width:i,height:a}=r;u&&n.includes("start")&&(u=12),u&&n.includes("end")&&(u=Math.round(i-24)),l&&n.includes("start")&&(l=10),l&&n.includes("end")&&(l=a-14)}return{x:u,y:l}}function J(t,o){const{fitOriginWidth:n,position:r,showArrow:u}=e.toRefs(t),l=e.ref(),i=e.ref(),a=e.ref(0);let d;const y=e.computed(()=>n.value?{width:a.value+"px"}:{}),T=(m,s,c,v)=>{const{x:p,y:w}=X(t.isArrowCenter,c,s,v.getBoundingClientRect()),V={top:"bottom",right:"left",bottom:"top",left:"right"}[s.split("-")[0]];Object.assign(m.style,{left:p?`${p}px`:"",top:w?`${w}px`:"",right:"",bottom:"",[V]:"-4px"})},f=async()=>{const m=t.origin,s=e.unref(l.value),c=e.unref(i.value),[v,...p]=r.value,w=[k.offset(t.offset)];w.push(p.length?k.flip({fallbackPlacements:p}):k.flip()),u.value&&w.push(k.arrow({element:i.value}));const{x:V,y:O,placement:E,middlewareData:ne}=await k.computePosition(m,s,{strategy:"fixed",placement:v,middleware:w});let le=V,ae=O;o("positionChange",E),Object.assign(s.style,{top:`${ae}px`,left:`${le}px`}),t.showArrow&&T(c,E,ne.arrow,s)},b=m=>{var c,v;const s=m.target;s!=null&&s.contains((v=(c=t.origin)==null?void 0:c.$el)!=null?v:t.origin)&&f()},h=m=>{a.value=m.getBoundingClientRect().width,f()},C=()=>{var m,s;if(n.value&&typeof window!="undefined"){const c=(s=(m=t.origin)==null?void 0:m.$el)!=null?s:t.origin;c&&(d=new window.ResizeObserver(()=>h(c)),d.observe(c))}},g=()=>{var s,c;const m=(c=(s=t.origin)==null?void 0:s.$el)!=null?c:t.origin;m&&(d==null||d.unobserve(m))};return e.watch(()=>t.modelValue,()=>{t.modelValue&&t.origin?(e.nextTick(f),window.addEventListener("scroll",b,!0),window.addEventListener("resize",f),C()):(window.removeEventListener("scroll",b,!0),window.removeEventListener("resize",f),g())}),e.onUnmounted(()=>{window.removeEventListener("scroll",b,!0),window.removeEventListener("resize",f),g()}),{arrowRef:i,overlayRef:l,styles:y,updatePosition:f}}var ie="";const $=e.defineComponent({name:"DFlexibleOverlay",inheritAttrs:!1,props:K,emits:["update:modelValue","positionChange"],setup(t,{slots:o,attrs:n,emit:r,expose:u}){const l=B("flexible-overlay"),{clickEventBubble:i}=e.toRefs(t),{arrowRef:a,overlayRef:d,styles:y,updatePosition:T}=J(t,r);return u({updatePosition:T}),()=>{var f;return t.modelValue&&e.createVNode("div",e.mergeProps({ref:d,class:l.b(),style:y.value},n,{onClick:e.withModifiers(()=>({}),[i.value?"":"stop"]),onPointerup:e.withModifiers(()=>({}),["stop"])}),[(f=o.default)==null?void 0:f.call(o),t.showArrow&&e.createVNode("div",{ref:a,class:l.e("arrow")},null)])}}});/**
2
- * @vue/shared v3.4.27
2
+ * @vue/shared v3.5.22
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/const Q=t=>t!==null&&typeof t=="object",Z=B("popper-trigger");function j(t){return e.h("span",{class:Z.b()},t)}function L(t){for(const o of t){if(Q(o)){if(o.type===e.Comment)continue;return o.type==="svg"||o.type===e.Text?j(o):o.type===e.Fragment?L(o.children):o}return j(o)}return null}var ee=e.defineComponent({name:"DPopperTrigger",setup(t,o){const{slots:n,attrs:r}=o;return()=>{var a;const u=(a=n.default)==null?void 0:a.call(n,r),l=e.inject(S);if(!u)return null;const i=L(u);return i?e.withDirectives(e.cloneVNode(i,r),[[{mounted(d){l.value=d},updated(d){l.value=d},unmounted(){l.value=null}}]]):null}}}),se="";let te=1;var M=e.defineComponent({name:"DDropdown",inheritAttrs:!1,props:z,emits:["toggle"],setup(t,{slots:o,attrs:n,emit:r,expose:u}){const{visible:l,position:i,offset:a,destroyOnHide:d,shiftOffset:y,showAnimation:T,teleport:f}=e.toRefs(t),b=e.ref(),h=e.ref(),C=e.ref(),g=`dropdown_${te++}`,m=e.ref(!1),s=e.ref("bottom"),c=B("dropdown");e.provide(S,b),q({id:g,isOpen:m,origin:b,dropdownRef:h,props:t,emit:r}),U(g,l,m,b,h,r);const{overlayModelValue:v,overlayShowValue:p,styles:w,classes:V,handlePositionChange:O}=I(t,s,m);return e.watch(p,E=>{e.nextTick(()=>{!d.value&&E&&C.value.updatePosition()})}),u({updatePosition:()=>C.value.updatePosition()}),()=>e.createVNode(e.Fragment,null,[e.createVNode(ee,null,{default:()=>{var E;return[(E=o.default)==null?void 0:E.call(o)]}}),e.createVNode(e.Teleport,{to:f.value},{default:()=>[e.createVNode(e.Transition,{name:T.value?c.m(`fade-${s.value}`):""},{default:()=>[e.withDirectives(e.createVNode($,{modelValue:v.value,"onUpdate:modelValue":E=>v.value=E,ref:C,origin:b.value,position:i.value,offset:a.value,shiftOffset:y==null?void 0:y.value,onPositionChange:O,"click-event-bubble":!0,class:V.value,style:w.value},{default:()=>{var E;return[e.createVNode("div",e.mergeProps({ref:h,class:c.e("menu-wrap")},n),[(E=o.menu)==null?void 0:E.call(o)])]}}),[[e.vShow,p.value]])]})]})])}});const F={modelValue:{type:Boolean,default:!1},origin:{type:Object,require:!0},position:{type:Array,default:["bottom"]},align:{type:String,default:null},offset:{type:[Number,Object],default:4},clickOutside:{type:Function,default:()=>!0},showAnimation:{type:Boolean,default:!0},overlayClass:{type:String,default:""}};var R=e.defineComponent({name:"DDropdownMenu",inheritAttrs:!1,props:F,emits:["update:modelValue"],setup(t,{slots:o,attrs:n,emit:r}){const{modelValue:u,origin:l,position:i,align:a,offset:d,clickOutside:y,showAnimation:T,overlayClass:f}=e.toRefs(t),b=e.ref(null),h=B("dropdown");_.onClickOutside(b,s=>{var c,v;((c=y.value)==null?void 0:c.call(y))&&!((v=l==null?void 0:l.value)!=null&&v.contains(s.target))&&r("update:modelValue",!1)});const C=e.ref("bottom"),g=s=>{C.value=s.split("-")[0]==="top"?"top":"bottom"},m=e.computed(()=>({transformOrigin:C.value==="top"?"0% 100%":"0% 0%"}));return()=>e.createVNode(e.Teleport,{to:"body"},{default:()=>[e.createVNode(e.Transition,{name:T.value?h.m(`fade-${C.value}`):""},{default:()=>[e.createVNode($,{modelValue:u.value,"onUpdate:modelValue":s=>u.value=s,origin:l==null?void 0:l.value,position:i.value,align:a.value,offset:d.value,onPositionChange:g,class:f.value,style:m.value},{default:()=>{var s;return[e.createVNode("div",e.mergeProps({ref:b,class:h.e("menu-wrap")},n),[(s=o.default)==null?void 0:s.call(o)])]}})]})]})}}),oe={title:"Dropdown \u4E0B\u62C9\u83DC\u5355",category:"\u5BFC\u822A",status:"50%",install(t){t.component(M.name,M),t.component(R.name,R)}};P.Dropdown=M,P.DropdownMenu=R,P.default=oe,P.dropdownMenuProps=F,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});