bkui-vue 0.0.1-beta.464 → 0.0.1-beta.466

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 (352) hide show
  1. package/dist/index.cjs.js +63 -67
  2. package/dist/index.esm.js +15211 -14541
  3. package/dist/index.umd.js +65 -69
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.d.ts +1 -1
  7. package/lib/affix/index.d.ts +58 -34
  8. package/lib/alert/alert.d.ts +1 -1
  9. package/lib/alert/index.d.ts +60 -40
  10. package/lib/alert/index.js +1 -1
  11. package/lib/animate-number/animate-number.d.ts +3 -3
  12. package/lib/animate-number/index.d.ts +60 -27
  13. package/lib/backtop/backtop.d.ts +2 -2
  14. package/lib/backtop/index.d.ts +61 -43
  15. package/lib/badge/badge.d.ts +1 -1
  16. package/lib/badge/index.d.ts +63 -60
  17. package/lib/badge/index.js +1 -1
  18. package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
  19. package/lib/breadcrumb/breadcrumb.d.ts +2 -2
  20. package/lib/breadcrumb/index.d.ts +61 -39
  21. package/lib/button/button-group.d.ts +4 -4
  22. package/lib/button/button.d.ts +3 -3
  23. package/lib/button/index.d.ts +74 -68
  24. package/lib/button/index.js +1 -1
  25. package/lib/card/card.d.ts +1 -1
  26. package/lib/card/index.d.ts +63 -64
  27. package/lib/card/index.js +1 -1
  28. package/lib/cascader/cascader-panel.d.ts +1 -1
  29. package/lib/cascader/cascader.d.ts +2 -2
  30. package/lib/cascader/index.d.ts +81 -146
  31. package/lib/cascader/index.js +2 -1
  32. package/lib/cascader/index.js.LICENSE.txt +1 -0
  33. package/lib/checkbox/checkbox-group.d.ts +2 -2
  34. package/lib/checkbox/checkbox.d.ts +10 -10
  35. package/lib/checkbox/index.d.ts +76 -64
  36. package/lib/checkbox/index.js +1 -1
  37. package/lib/checkbox/type.d.ts +1 -1
  38. package/lib/code-diff/code-diff.d.ts +6 -6
  39. package/lib/code-diff/index.d.ts +30 -43
  40. package/lib/code-diff/index.js +1 -1
  41. package/lib/collapse/collapse-panel.d.ts +1 -1
  42. package/lib/collapse/collapse.d.ts +1 -1
  43. package/lib/collapse/index.d.ts +68 -74
  44. package/lib/collapse-transition/collapse-transition.d.ts +2 -2
  45. package/lib/color-picker/color-picker.d.ts +2 -2
  46. package/lib/color-picker/components/color-input.d.ts +2 -2
  47. package/lib/color-picker/components/hue-slider.d.ts +2 -2
  48. package/lib/color-picker/components/input-container.d.ts +2 -2
  49. package/lib/color-picker/components/recommend-colors.d.ts +2 -2
  50. package/lib/color-picker/components/saturation-panel.d.ts +2 -2
  51. package/lib/color-picker/index.d.ts +63 -62
  52. package/lib/color-picker/index.js +1 -1
  53. package/lib/config-provider/config-provider.d.ts +3 -3
  54. package/lib/config-provider/index.d.ts +175 -138
  55. package/lib/container/col.d.ts +2 -2
  56. package/lib/container/container.d.ts +2 -2
  57. package/lib/container/index.d.ts +29 -48
  58. package/lib/container/row.d.ts +2 -2
  59. package/lib/date-picker/base/confirm.d.ts +5 -5
  60. package/lib/date-picker/base/date-table.d.ts +3 -3
  61. package/lib/date-picker/base/month-table.d.ts +4 -4
  62. package/lib/date-picker/base/picker-dropdown.d.ts +4 -4
  63. package/lib/date-picker/base/time-spinner.d.ts +2 -2
  64. package/lib/date-picker/base/year-table.d.ts +4 -4
  65. package/lib/date-picker/date-picker.d.ts +37 -28
  66. package/lib/date-picker/index.d.ts +162 -209
  67. package/lib/date-picker/index.js +1 -1
  68. package/lib/date-picker/interface.d.ts +10 -10
  69. package/lib/date-picker/panel/date-range.d.ts +18 -15
  70. package/lib/date-picker/panel/date.d.ts +12 -12
  71. package/lib/date-picker/panel/time-range.d.ts +8 -2
  72. package/lib/date-picker/panel/time.d.ts +5 -2
  73. package/lib/date-picker/props.d.ts +3 -3
  74. package/lib/date-picker/time-picker.d.ts +11 -2
  75. package/lib/dialog/dialog.d.ts +2 -2
  76. package/lib/dialog/index.d.ts +90 -163
  77. package/lib/dialog/index.js +2 -1
  78. package/lib/dialog/index.js.LICENSE.txt +1 -0
  79. package/lib/directives/index.js +1 -1
  80. package/lib/divider/divider.d.ts +2 -2
  81. package/lib/divider/index.d.ts +61 -37
  82. package/lib/dropdown/dropdown-item.d.ts +1 -1
  83. package/lib/dropdown/dropdown-menu.d.ts +2 -2
  84. package/lib/dropdown/dropdown.d.ts +2 -2
  85. package/lib/dropdown/index.d.ts +66 -54
  86. package/lib/exception/exception.d.ts +2 -2
  87. package/lib/exception/index.d.ts +60 -29
  88. package/lib/exception/index.js +1 -1
  89. package/lib/exception/typings/index.d.ts +2 -2
  90. package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
  91. package/lib/fixed-navbar/index.d.ts +58 -34
  92. package/lib/form/compose-form-item.d.ts +2 -2
  93. package/lib/form/form-item.d.ts +3 -3
  94. package/lib/form/form.d.ts +3 -3
  95. package/lib/form/index.d.ts +62 -40
  96. package/lib/form/index.js +1 -1
  97. package/lib/icon/angle-double-down-line.js +1 -1
  98. package/lib/icon/angle-double-left-line.js +1 -1
  99. package/lib/icon/angle-double-left.js +1 -1
  100. package/lib/icon/angle-double-right-line.js +1 -1
  101. package/lib/icon/angle-double-right.js +1 -1
  102. package/lib/icon/angle-double-up-line.js +1 -1
  103. package/lib/icon/angle-down-fill.js +1 -1
  104. package/lib/icon/angle-down-line.js +1 -1
  105. package/lib/icon/angle-down.js +1 -1
  106. package/lib/icon/angle-left.js +1 -1
  107. package/lib/icon/angle-right.js +1 -1
  108. package/lib/icon/angle-up-fill.js +1 -1
  109. package/lib/icon/angle-up.js +1 -1
  110. package/lib/icon/archive-fill.js +1 -1
  111. package/lib/icon/arrows-left.js +1 -1
  112. package/lib/icon/arrows-right.js +1 -1
  113. package/lib/icon/audio-fill.js +1 -1
  114. package/lib/icon/bk.js +1 -1
  115. package/lib/icon/circle.js +1 -1
  116. package/lib/icon/close-line.js +1 -1
  117. package/lib/icon/close.js +1 -1
  118. package/lib/icon/code.js +1 -1
  119. package/lib/icon/cog-shape.js +1 -1
  120. package/lib/icon/collapse-left.js +1 -1
  121. package/lib/icon/copy-shape.js +1 -1
  122. package/lib/icon/copy.js +1 -1
  123. package/lib/icon/data-shape.js +1 -1
  124. package/lib/icon/del.js +1 -1
  125. package/lib/icon/doc-fill.js +1 -1
  126. package/lib/icon/done.js +1 -1
  127. package/lib/icon/down-shape.js +1 -1
  128. package/lib/icon/down-small.js +1 -1
  129. package/lib/icon/edit-line.js +1 -1
  130. package/lib/icon/ellipsis.js +1 -1
  131. package/lib/icon/enlarge-line.js +1 -1
  132. package/lib/icon/error.js +1 -1
  133. package/lib/icon/excel-fill.js +1 -1
  134. package/lib/icon/exclamation-circle-shape.js +1 -1
  135. package/lib/icon/eye.js +1 -1
  136. package/lib/icon/filliscreen-line.js +1 -1
  137. package/lib/icon/fix-line.js +1 -1
  138. package/lib/icon/fix-shape.js +1 -1
  139. package/lib/icon/folder-open.js +1 -1
  140. package/lib/icon/folder-shape-open.js +1 -1
  141. package/lib/icon/folder-shape.js +1 -1
  142. package/lib/icon/folder.js +1 -1
  143. package/lib/icon/funnel.js +1 -1
  144. package/lib/icon/help-document-fill.js +1 -1
  145. package/lib/icon/help-fill.js +1 -1
  146. package/lib/icon/help.js +1 -1
  147. package/lib/icon/image-fill.js +1 -1
  148. package/lib/icon/img-error.js +1 -1
  149. package/lib/icon/img-placehoulder.js +1 -1
  150. package/lib/icon/index.js +1 -1
  151. package/lib/icon/info-line.js +1 -1
  152. package/lib/icon/info.js +1 -1
  153. package/lib/icon/left-shape.js +1 -1
  154. package/lib/icon/left-turn-line.js +1 -1
  155. package/lib/icon/narrow-line.js +1 -1
  156. package/lib/icon/original.js +1 -1
  157. package/lib/icon/pdf-fill.js +1 -1
  158. package/lib/icon/play-shape.js +1 -1
  159. package/lib/icon/plus.js +1 -1
  160. package/lib/icon/ppt-fill.js +1 -1
  161. package/lib/icon/qq.js +1 -1
  162. package/lib/icon/right-shape.js +1 -1
  163. package/lib/icon/right-turn-line.js +1 -1
  164. package/lib/icon/search.js +1 -1
  165. package/lib/icon/share.js +1 -1
  166. package/lib/icon/spinner.js +1 -1
  167. package/lib/icon/success.js +1 -1
  168. package/lib/icon/switcher-loading.js +1 -1
  169. package/lib/icon/text-file.js +1 -1
  170. package/lib/icon/text-fill.js +1 -1
  171. package/lib/icon/transfer.js +1 -1
  172. package/lib/icon/tree-application-shape.js +1 -1
  173. package/lib/icon/unfull-screen.js +1 -1
  174. package/lib/icon/unvisible.js +1 -1
  175. package/lib/icon/up-shape.js +1 -1
  176. package/lib/icon/upload.js +1 -1
  177. package/lib/icon/video-fill.js +1 -1
  178. package/lib/icon/warn.js +1 -1
  179. package/lib/icon/weixin-pro.js +1 -1
  180. package/lib/icon/weixin.js +1 -1
  181. package/lib/image/image-viewer.d.ts +2 -2
  182. package/lib/image/image.d.ts +1 -1
  183. package/lib/image/index.d.ts +63 -57
  184. package/lib/info-box/index.d.ts +1 -1
  185. package/lib/info-box/index.js +2 -1
  186. package/lib/info-box/index.js.LICENSE.txt +1 -0
  187. package/lib/input/index.d.ts +82 -119
  188. package/lib/input/index.js +1 -1
  189. package/lib/input/input.d.ts +6 -6
  190. package/lib/link/index.d.ts +59 -40
  191. package/lib/link/link.d.ts +1 -1
  192. package/lib/loading/directive.d.ts +2 -2
  193. package/lib/loading/index.d.ts +67 -71
  194. package/lib/loading/index.js +1 -1
  195. package/lib/loading/loading.d.ts +3 -3
  196. package/lib/locale/lang/en.d.ts +1 -1
  197. package/lib/menu/index.d.ts +69 -32
  198. package/lib/menu/index.js +1 -1
  199. package/lib/menu/menu-group.d.ts +2 -2
  200. package/lib/menu/menu-item.d.ts +5 -1
  201. package/lib/menu/menu.d.ts +1 -1
  202. package/lib/menu/submenu.d.ts +5 -1
  203. package/lib/menu/utils.d.ts +1 -1
  204. package/lib/message/index.js +1 -1
  205. package/lib/message/messageConstructor.d.ts +5 -5
  206. package/lib/modal/index.d.ts +84 -123
  207. package/lib/modal/modal.d.ts +3 -3
  208. package/lib/navigation/index.d.ts +84 -65
  209. package/lib/navigation/index.js +1 -1
  210. package/lib/navigation/navigation-title.d.ts +6 -3
  211. package/lib/navigation/navigation.d.ts +10 -3
  212. package/lib/notify/index.js +1 -1
  213. package/lib/notify/notifyConstructor.d.ts +1 -1
  214. package/lib/overflow-title/components/overflow-title.d.ts +2 -2
  215. package/lib/overflow-title/index.d.ts +62 -37
  216. package/lib/overflow-title/props.d.ts +2 -2
  217. package/lib/pagination/index.d.ts +75 -94
  218. package/lib/pagination/index.js +1 -1
  219. package/lib/pagination/pagination.d.ts +6 -6
  220. package/lib/pagination/type.d.ts +1 -1
  221. package/lib/plugin-popover/index.js +1 -1
  222. package/lib/pop-confirm/index.d.ts +66 -63
  223. package/lib/pop-confirm/pop-confirm.d.ts +2 -2
  224. package/lib/popover/arrow.d.ts +1 -1
  225. package/lib/popover/content.d.ts +2 -2
  226. package/lib/popover/index.d.ts +93 -164
  227. package/lib/popover/index.js +1 -1
  228. package/lib/popover/plugin-popover.d.ts +1 -1
  229. package/lib/popover/popover.d.ts +7 -7
  230. package/lib/popover/props.d.ts +4 -4
  231. package/lib/popover/reference.d.ts +1 -1
  232. package/lib/popover/root.d.ts +13 -2
  233. package/lib/popover/use-floating.d.ts +3 -3
  234. package/lib/popover2/index.d.ts +55 -10
  235. package/lib/popover2/popover.d.ts +1 -1
  236. package/lib/process/index.d.ts +60 -46
  237. package/lib/process/index.js +2 -1
  238. package/lib/process/index.js.LICENSE.txt +1 -0
  239. package/lib/process/process.d.ts +2 -2
  240. package/lib/progress/index.d.ts +76 -103
  241. package/lib/progress/index.js +1 -1
  242. package/lib/progress/progress.d.ts +6 -6
  243. package/lib/radio/index.d.ts +63 -41
  244. package/lib/radio/index.js +1 -1
  245. package/lib/radio/radio-button.d.ts +5 -5
  246. package/lib/radio/radio-group.d.ts +2 -2
  247. package/lib/radio/radio.d.ts +2 -2
  248. package/lib/radio/type.d.ts +1 -1
  249. package/lib/rate/index.d.ts +61 -34
  250. package/lib/rate/rate.d.ts +3 -3
  251. package/lib/rate/star.d.ts +1 -1
  252. package/lib/resize-layout/index.d.ts +65 -66
  253. package/lib/resize-layout/index.js +1 -1
  254. package/lib/resize-layout/resize-layout.d.ts +1 -1
  255. package/lib/search-select/index.d.ts +70 -69
  256. package/lib/search-select/index.js +2 -1
  257. package/lib/search-select/index.js.LICENSE.txt +1 -0
  258. package/lib/search-select/input.d.ts +1 -1
  259. package/lib/search-select/menu.d.ts +1 -1
  260. package/lib/search-select/search-select.d.ts +2 -2
  261. package/lib/search-select/selected.d.ts +2 -2
  262. package/lib/search-select/utils.d.ts +4 -4
  263. package/lib/select/index.d.ts +308 -512
  264. package/lib/select/index.js +2 -1
  265. package/lib/select/index.js.LICENSE.txt +1 -0
  266. package/lib/select/option.d.ts +2 -2
  267. package/lib/select/optionGroup.d.ts +2 -2
  268. package/lib/select/select.d.ts +76 -66
  269. package/lib/select/selectTagInput.d.ts +2 -2
  270. package/lib/select/type.d.ts +3 -3
  271. package/lib/shared/index.d.ts +2 -2
  272. package/lib/shared/index.js +1 -1
  273. package/lib/shared/mask-manager.d.ts +2 -2
  274. package/lib/shared/popover.d.ts +1 -1
  275. package/lib/shared/vue-types.d.ts +7 -7
  276. package/lib/sideslider/index.d.ts +84 -125
  277. package/lib/sideslider/index.js +2 -1
  278. package/lib/sideslider/index.js.LICENSE.txt +1 -0
  279. package/lib/sideslider/sideslider.d.ts +3 -3
  280. package/lib/slider/index.d.ts +73 -103
  281. package/lib/slider/index.js +2 -1
  282. package/lib/slider/index.js.LICENSE.txt +1 -0
  283. package/lib/slider/slider-button.d.ts +1 -1
  284. package/lib/slider/slider.d.ts +1 -1
  285. package/lib/steps/index.d.ts +68 -62
  286. package/lib/steps/index.js +2 -1
  287. package/lib/steps/index.js.LICENSE.txt +1 -0
  288. package/lib/steps/steps.d.ts +5 -5
  289. package/lib/swiper/index.d.ts +60 -44
  290. package/lib/swiper/swiper.d.ts +1 -1
  291. package/lib/switcher/index.d.ts +72 -77
  292. package/lib/switcher/index.js +1 -1
  293. package/lib/switcher/switcher.d.ts +3 -3
  294. package/lib/tab/index.d.ts +81 -99
  295. package/lib/tab/index.js +1 -1
  296. package/lib/tab/props.d.ts +1 -1
  297. package/lib/tab/tab-nav.d.ts +2 -2
  298. package/lib/tab/tab-panel.d.ts +2 -2
  299. package/lib/tab/tab.d.ts +3 -3
  300. package/lib/table/components/table-cell.d.ts +2 -2
  301. package/lib/table/components/table-column.d.ts +18 -12
  302. package/lib/table/components/table-row.d.ts +1 -1
  303. package/lib/table/index.d.ts +213 -302
  304. package/lib/table/index.js +1 -1
  305. package/lib/table/plugins/body-empty.d.ts +1 -1
  306. package/lib/table/plugins/col-group.d.ts +2 -2
  307. package/lib/table/plugins/head-filter.d.ts +1 -1
  308. package/lib/table/plugins/head-sort.d.ts +1 -1
  309. package/lib/table/plugins/settings.d.ts +1 -1
  310. package/lib/table/plugins/use-active-columns.d.ts +3 -3
  311. package/lib/table/plugins/use-fixed-column.d.ts +3 -3
  312. package/lib/table/props.d.ts +19 -19
  313. package/lib/table/table.css +3 -0
  314. package/lib/table/table.d.ts +6 -6
  315. package/lib/table/table.less +4 -0
  316. package/lib/table/table.variable.css +3 -0
  317. package/lib/table/use-column.d.ts +4 -4
  318. package/lib/table/use-common.d.ts +1 -1
  319. package/lib/table-column/index.d.ts +113 -106
  320. package/lib/table-column/index.js +1 -1
  321. package/lib/tag/index.d.ts +68 -50
  322. package/lib/tag/index.js +1 -1
  323. package/lib/tag/tag.d.ts +5 -1
  324. package/lib/tag-input/index.d.ts +105 -317
  325. package/lib/tag-input/index.js +1 -1
  326. package/lib/tag-input/list-tag-render.d.ts +2 -2
  327. package/lib/tag-input/tag-input.d.ts +7 -7
  328. package/lib/tag-input/tag-input.less +11 -11
  329. package/lib/tag-input/tag-props.d.ts +3 -3
  330. package/lib/tag-input/tag-render.d.ts +2 -2
  331. package/lib/time-picker/index.d.ts +116 -187
  332. package/lib/timeline/index.d.ts +57 -28
  333. package/lib/timeline/timeline.d.ts +2 -2
  334. package/lib/transfer/index.d.ts +67 -82
  335. package/lib/transfer/transfer.d.ts +1 -1
  336. package/lib/tree/index.d.ts +84 -146
  337. package/lib/tree/index.js +1 -1
  338. package/lib/tree/props.d.ts +4 -4
  339. package/lib/tree/tree.d.ts +3 -3
  340. package/lib/upload/index.d.ts +93 -150
  341. package/lib/upload/index.js +2 -1
  342. package/lib/upload/index.js.LICENSE.txt +1 -0
  343. package/lib/upload/upload-list.d.ts +1 -1
  344. package/lib/upload/upload-trigger.d.ts +1 -1
  345. package/lib/upload/upload.d.ts +4 -4
  346. package/lib/upload/upload.type.d.ts +12 -12
  347. package/lib/upload/use-file-handler.d.ts +1 -24
  348. package/lib/virtual-render/index.d.ts +64 -160
  349. package/lib/virtual-render/index.js +1 -1
  350. package/lib/virtual-render/props.d.ts +1 -1
  351. package/lib/virtual-render/virtual-render.d.ts +16 -3
  352. package/package.json +38 -37
@@ -2,91 +2,72 @@ declare const BkPagination: {
2
2
  new (...args: any[]): {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
- $props: Partial<{
6
- small: boolean;
7
- type: string;
8
- disabled: boolean;
9
- layout: string[];
10
- location: string;
11
- count: number;
12
- modelValue: number;
13
- beforeChange: (...args: any[]) => any;
14
- prevText: string;
15
- nextText: string;
16
- align: string;
17
- limit: number;
18
- limitList: number[];
19
- showLimit: boolean;
20
- showTotalCount: boolean;
21
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
22
- modelValue: import("vue-types").VueTypeValidableDef<number> & {
23
- default: number;
24
- } & {
25
- default: number;
26
- };
27
- count: import("vue-types").VueTypeValidableDef<number> & {
28
- default: number;
29
- } & {
30
- default: number;
31
- } & {
32
- required: true;
33
- };
34
- limit: import("vue-types").VueTypeValidableDef<number> & {
35
- default: number;
36
- } & {
37
- default: number;
38
- };
39
- limitList: import("vue-types").VueTypeDef<number[]> & {
40
- default: () => number[];
41
- };
42
- showLimit: import("vue-types").VueTypeValidableDef<boolean> & {
43
- default: boolean;
44
- } & {
45
- default: boolean;
46
- };
47
- type: import("vue-types").VueTypeDef<string> & {
48
- default: string;
49
- };
50
- location: import("vue-types").VueTypeDef<string> & {
51
- default: string;
52
- };
53
- align: import("vue-types").VueTypeDef<string> & {
54
- default: string;
55
- };
56
- size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
57
- small: import("vue-types").VueTypeValidableDef<boolean> & {
58
- default: boolean;
59
- } & {
60
- default: boolean;
61
- };
62
- showTotalCount: import("vue-types").VueTypeValidableDef<boolean> & {
63
- default: boolean;
64
- } & {
65
- default: boolean;
66
- };
67
- prevText: import("vue-types").VueTypeValidableDef<string> & {
68
- default: string;
69
- };
70
- nextText: import("vue-types").VueTypeValidableDef<string> & {
71
- default: string;
72
- };
73
- disabled: import("vue-types").VueTypeValidableDef<boolean> & {
74
- default: boolean;
75
- } & {
76
- default: boolean;
77
- };
78
- beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
79
- default: (...args: any[]) => any;
80
- };
81
- layout: import("vue-types").VueTypeDef<string[]> & {
82
- default: () => string[];
83
- };
84
- }>> & {
5
+ $props: {
6
+ type?: string;
7
+ small?: boolean;
8
+ disabled?: boolean;
9
+ layout?: string[];
10
+ location?: string;
11
+ count?: number;
12
+ modelValue?: number;
13
+ beforeChange?: (...args: any[]) => any;
14
+ prevText?: string;
15
+ nextText?: string;
16
+ align?: string;
17
+ limit?: number;
18
+ limitList?: number[];
19
+ showLimit?: boolean;
20
+ showTotalCount?: boolean;
21
+ class?: unknown;
22
+ style?: unknown;
85
23
  onChange?: (...args: any[]) => any;
24
+ key?: string | number | symbol;
25
+ ref?: import("vue").VNodeRef;
26
+ ref_for?: boolean;
27
+ ref_key?: string;
28
+ onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
+ [key: string]: any;
30
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
31
+ [key: string]: any;
32
+ }>) => void)[];
33
+ onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
34
+ [key: string]: any;
35
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
36
+ [key: string]: any;
37
+ }>) => void)[];
38
+ onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
39
+ [key: string]: any;
40
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
+ [key: string]: any;
42
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
+ [key: string]: any;
44
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ [key: string]: any;
46
+ }>) => void)[];
47
+ onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
+ [key: string]: any;
49
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
50
+ [key: string]: any;
51
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
+ [key: string]: any;
53
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
54
+ [key: string]: any;
55
+ }>) => void)[];
56
+ onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
57
+ [key: string]: any;
58
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
59
+ [key: string]: any;
60
+ }>) => void)[];
61
+ onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
62
+ [key: string]: any;
63
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
64
+ [key: string]: any;
65
+ }>) => void)[];
66
+ readonly size?: "default" | "small" | "large";
86
67
  "onUpdate:modelValue"?: (...args: any[]) => any;
87
68
  "onUpdate:limit"?: (...args: any[]) => any;
88
69
  onLimitChange?: (...args: any[]) => any;
89
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "small" | "type" | "disabled" | "layout" | "location" | "count" | "modelValue" | "beforeChange" | "prevText" | "nextText" | "align" | "limit" | "limitList" | "showLimit" | "showTotalCount">;
70
+ };
90
71
  $attrs: {
91
72
  [x: string]: unknown;
92
73
  };
@@ -94,10 +75,10 @@ declare const BkPagination: {
94
75
  [x: string]: unknown;
95
76
  };
96
77
  $slots: Readonly<{
97
- [name: string]: import("vue").Slot;
78
+ [name: string]: import("vue").Slot<any>;
98
79
  }>;
99
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
100
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
80
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
81
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
101
82
  $emit: (event: "change" | "update:modelValue" | "update:limit" | "limitChange", ...args: any[]) => void;
102
83
  $el: any;
103
84
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -135,7 +116,7 @@ declare const BkPagination: {
135
116
  align: import("vue-types").VueTypeDef<string> & {
136
117
  default: string;
137
118
  };
138
- size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
119
+ size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
139
120
  small: import("vue-types").VueTypeValidableDef<boolean> & {
140
121
  default: boolean;
141
122
  } & {
@@ -184,8 +165,8 @@ declare const BkPagination: {
184
165
  }) => JSX.Element;
185
166
  renderSmallList: () => JSX.Element;
186
167
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:limit" | "limitChange")[], string, {
187
- small: boolean;
188
168
  type: string;
169
+ small: boolean;
189
170
  disabled: boolean;
190
171
  layout: string[];
191
172
  location: string;
@@ -199,7 +180,7 @@ declare const BkPagination: {
199
180
  limitList: number[];
200
181
  showLimit: boolean;
201
182
  showTotalCount: boolean;
202
- }> & {
183
+ }, {}, string, {}> & {
203
184
  beforeCreate?: (() => void) | (() => void)[];
204
185
  created?: (() => void) | (() => void)[];
205
186
  beforeMount?: (() => void) | (() => void)[];
@@ -214,11 +195,11 @@ declare const BkPagination: {
214
195
  unmounted?: (() => void) | (() => void)[];
215
196
  renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
216
197
  renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
217
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
198
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
218
199
  };
219
200
  $forceUpdate: () => void;
220
201
  $nextTick: typeof import("vue").nextTick;
221
- $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
202
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
222
203
  } & Readonly<import("vue").ExtractPropTypes<{
223
204
  modelValue: import("vue-types").VueTypeValidableDef<number> & {
224
205
  default: number;
@@ -254,7 +235,7 @@ declare const BkPagination: {
254
235
  align: import("vue-types").VueTypeDef<string> & {
255
236
  default: string;
256
237
  };
257
- size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
238
+ size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
258
239
  small: import("vue-types").VueTypeValidableDef<boolean> & {
259
240
  default: boolean;
260
241
  } & {
@@ -302,7 +283,7 @@ declare const BkPagination: {
302
283
  isLast: any;
303
284
  }) => JSX.Element;
304
285
  renderSmallList: () => JSX.Element;
305
- }> & {} & {} & import("vue").ComponentCustomProperties;
286
+ }> & {} & import("vue").ComponentCustomProperties & {};
306
287
  __isFragment?: never;
307
288
  __isTeleport?: never;
308
289
  __isSuspense?: never;
@@ -341,7 +322,7 @@ declare const BkPagination: {
341
322
  align: import("vue-types").VueTypeDef<string> & {
342
323
  default: string;
343
324
  };
344
- size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
325
+ size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
345
326
  small: import("vue-types").VueTypeValidableDef<boolean> & {
346
327
  default: boolean;
347
328
  } & {
@@ -390,8 +371,8 @@ declare const BkPagination: {
390
371
  }) => JSX.Element;
391
372
  renderSmallList: () => JSX.Element;
392
373
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:limit" | "limitChange")[], "change" | "update:modelValue" | "update:limit" | "limitChange", {
393
- small: boolean;
394
374
  type: string;
375
+ small: boolean;
395
376
  disabled: boolean;
396
377
  layout: string[];
397
378
  location: string;
@@ -405,6 +386,6 @@ declare const BkPagination: {
405
386
  limitList: number[];
406
387
  showLimit: boolean;
407
388
  showTotalCount: boolean;
408
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
389
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
409
390
  export default BkPagination;
410
391
  export { BkPagination, };
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../select"),require("../icon"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../select","../icon","../popover"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../select"),require("../icon"),require("../popover")):t(e["../shared"],e.vue,e["../config-provider"],e["../select"],e["../icon"],e["../popover"]);for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(self,((e,t,n,a,r,i)=>(()=>{"use strict";var o={2717:e=>{e.exports=n},6870:e=>{e.exports=r},5537:e=>{e.exports=i},6422:e=>{e.exports=a},4212:t=>{t.exports=e},748:e=>{e.exports=t}},l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return o[e](n,n.exports,u),n.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{u.r(c),u.d(c,{BkPagination:()=>m,default:()=>g});var e=u(4212);function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var r=u(748),i=u(2717),o=u(6422),l=u.n(o),s=u(6870),d=u(5537),f=u.n(d);var p={modelValue:e.PropTypes.number.def(1),count:e.PropTypes.number.def(0).isRequired,limit:e.PropTypes.number.def(10),limitList:e.PropTypes.arrayOf(Number).def([10,20,50,100]),showLimit:e.PropTypes.bool.def(!0),type:e.PropTypes.oneOf(["default","compact"]).def("default"),location:e.PropTypes.oneOf(["left","right"]).def("right"),align:e.PropTypes.oneOf(["left","center","right"]).def("left"),size:e.PropTypes.size(),small:e.PropTypes.bool.def(!1),showTotalCount:e.PropTypes.bool.def(!0),prevText:e.PropTypes.string,nextText:e.PropTypes.string,disabled:e.PropTypes.bool.def(!1),beforeChange:e.PropTypes.func,layout:e.PropTypes.custom((function(e){var t={total:!0,list:!0,limit:!0};return e.some((function(e){return t[e]}))}),"layout 的值只支持 * total、list、limit *").def(["total","list","limit"])};const v=(0,r.defineComponent)({name:"Pagination",props:p,emits:["update:modelValue","change","update:limit","limitChange"],setup:function(e,t){var n=(0,i.useLocale)("pagination"),u=(0,r.ref)(0),c=(0,r.toRefs)(e),d=c.count,p=c.limit,v=function(e){return function(t){var n=t.isFirst,a=t.isLast,i=(0,r.getCurrentInstance)().props;return i.showTotalCount?(0,r.createVNode)("div",(0,r.mergeProps)({class:{"bk-pagination-total":!0,"is-first":n,"is-last":a}},{disabled:i.disabled}),[e.value.total,(0,r.createVNode)("div",{class:"bk-pagination-total-num"},[i.count]),e.value.strip]):null}}(n),m=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(1),n=(0,r.computed)((function(){return 1===t.value})),a=(0,r.computed)((function(){return t.value===e.totalPageNum})),i=(0,r.ref)(!1),o=(0,r.ref)(!1),l=(0,r.computed)((function(){i.value=!1,o.value=!1;var n=[];if(e.totalPageNum<=7){for(var a=2;a<=e.totalPageNum-1;a++)n.push(a);return n}var r=Math.floor(2.5);e.totalPageNum>5&&(i.value=t.value-r>2,o.value=t.value+r<e.totalPageNum-1);for(var l=Math.min(e.totalPageNum-5,Math.max(2,t.value-r)),u=l;u<l+5;u++)n.push(u);return n}));(0,r.watch)((function(){return e.modelValue}),(function(n){(0,r.nextTick)((function(){n>=1&&n<=e.totalPageNum?t.value=n:t.value=n<1?1:e.totalPageNum}))}),{immediate:!0}),(0,r.nextTick)((function(){(0,r.watch)((function(){return e.totalPageNum}),(function(e){t.value>e&&(t.value=e)}))}));var u=function(){n.value||(t.value=t.value-1)},c=function(){a.value||(t.value=t.value+1)},d=function(e){e!==t.value&&(t.value=e)},f=function(){t.value=Math.max(1,t.value-5)},p=function(){t.value=Math.min(e.totalPageNum,t.value+5)};return{current:t,render:function(v){var m=v.isFirst,g=v.isLast;return(0,r.createVNode)("div",{class:{"bk-pagination-list":!0,"is-first":m,"is-last":g}},[(0,r.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":n.value},onClick:u},[e.prevText||(0,r.createVNode)(s.AngleLeft,null,null)]),(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":1===t.value},key:"1",onClick:function(){return d(1)}},[(0,r.createTextVNode)("1")]),i.value&&(0,r.createVNode)("div",{key:"pre-batch",class:"bk-pagination-list-pre-batch",onClick:f},[(0,r.createVNode)(s.Ellipsis,null,null)]),l.value.map((function(e){return(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e},key:e,onClick:function(){return d(e)}},[e])})),o.value&&(0,r.createVNode)("div",{key:"next-batch",class:"bk-pagination-list-next-batch",onClick:p},[(0,r.createVNode)(s.Ellipsis,null,null)]),e.totalPageNum>1&&(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e.totalPageNum},key:"last",onClick:function(){return d(e.totalPageNum)}},[e.totalPageNum]),(0,r.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":a.value},onClick:c},[e.nextText||(0,r.createVNode)(s.AngleRight,null,null)])])}}}(),g=m.current,b=m.render,h=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(null),n=(0,r.ref)(!1),a=(0,r.ref)(1),i=(0,r.computed)((function(){return 1===a.value})),o=(0,r.computed)((function(){return a.value===e.totalPageNum})),l=0,u=(0,r.computed)((function(){for(var t=[],n=1;n<=e.totalPageNum;n++)t.push(n);return t}));(0,r.watch)((function(){return e.modelValue}),(function(t){(0,r.nextTick)((function(){t>=1&&t<=e.totalPageNum?a.value=t:a.value=t<1?1:e.totalPageNum,l=a.value}))}),{immediate:!0}),(0,r.nextTick)((function(){(0,r.watch)((function(){return e.totalPageNum}),(function(e){a.value>e&&(a.value=e)}))}));var c=function(){i.value||(a.value=a.value-1)},d=function(){o.value||(a.value=a.value+1)},p=function(){n.value=!0},v=function(){n.value=!1,t.value.textContent="".concat(l),l!==a.value&&(a.value=l)},m=function(t){var n=t.target,r=Number(n.textContent);!r||r<1||r>e.totalPageNum||r===a.value||(l=r)},g=function(e){["Enter","NumpadEnter"].includes(e.code)&&(e.preventDefault(),v())};return{current:a,render:function(){return(0,r.createVNode)("div",{class:"bk-pagination-small-list"},[(0,r.createVNode)("div",{class:{"bk-pagination-btn-pre":!0,"is-disabled":i.value},onClick:c},[(0,r.createVNode)(s.AngleLeft,null,null)]),(0,r.createVNode)(f(),{theme:"light",trigger:"click",arrow:!1,width:56,boundary:"body",placement:"bottom"},{default:function(){return(0,r.createVNode)("div",{class:{"bk-pagination-picker":!0,"is-focused":n.value}},[(0,r.createVNode)("span",{ref:t,class:"bk-pagination-editor",contenteditable:!0,spellcheck:"false",onFocus:p,onBlur:v,onInput:m,onKeydown:g},[a.value]),(0,r.createVNode)("span",null,[(0,r.createTextVNode)("/")]),(0,r.createVNode)("span",{class:"bk-pagination-small-list-total"},[e.totalPageNum])])},content:function(){return(0,r.createVNode)("div",{class:"bk-pagination-picker-list"},[u.value.map((function(e){return(0,r.createVNode)("div",{class:{item:!0,"is-actived":e===a.value},key:e,onClick:function(){return function(e){l=e,v()}(e)}},[e])}))])}}),(0,r.createVNode)("div",{class:{"bk-pagination-btn-next":!0,"is-disabled":o.value},onClick:d},[(0,r.createVNode)(s.AngleRight,null,null)])])}}}(),y=h.current,N=h.render,k=function(e){var t=(0,r.getCurrentInstance)().proxy,n=(0,r.ref)(t.limit);(0,r.watch)((function(){return t.limit}),(function(e){n.value=e})),(0,r.watch)((function(){return t.limitList}),(function(e){(0,r.nextTick)((function(){if(!e.includes(n.value)){var t=a(e,1);n.value=t[0]}}))}),{immediate:!0});var i=function(e){n.value=e};return{limit:n,render:function(a){var u,c,s=a.isFirst,d=a.isLast;return t.showLimit?(0,r.createVNode)("div",(0,r.mergeProps)({class:{"bk-pagination-limit":!0,"is-first":s,"is-last":d}},{disabled:t.disabled}),[(0,r.createVNode)("div",null,[e.value.eachPage]),(0,r.createVNode)(l(),{class:"bk-pagination-limit-select",clearable:!1,size:"small",withValidate:!1,modelValue:n.value,onChange:i,disabled:t.disabled},(c=u=t.limitList.map((function(e,t){return(0,r.createVNode)(o.BkOption,{value:e,label:"".concat(e),key:"".concat(t,"_").concat(e)},null)})),"function"==typeof c||"[object Object]"===Object.prototype.toString.call(c)&&!(0,r.isVNode)(c)?u:{default:function(){return[u]}})),(0,r.createVNode)("div",null,[e.value.strip])]):null}}}(n),P=k.limit,V=k.render;return(0,r.watch)([d,P,p],(function(e){var t=a(e,2),n=t[0],r=t[1],i=Math.ceil(n/r);u.value=i<1?1:i}),{immediate:!0}),(0,r.watch)(g,(function(e){t.emit("update:modelValue",e),t.emit("change",e)})),(0,r.watch)(y,(function(n){e.small&&(t.emit("update:modelValue",n),t.emit("change",n))})),(0,r.watch)(P,(function(e){t.emit("limitChange",e)})),{totalPageNum:u,renderTotal:v,renderList:b,renderLimit:V,renderSmallList:N}},render:function(){var n,a=this,i=(0,e.classes)((t(n={"bk-pagination":!0},"bk-pagination--".concat(this.size),!0),t(n,"is-align-".concat(this.align),!0),n)),o={total:this.renderTotal,list:this.small?this.renderSmallList:this.renderList,limit:this.renderLimit};return(0,r.createVNode)("div",{class:i},[this.layout.map((function(e,t){return o[e]({isFirst:0===t,isLast:t===a.layout.length-1})}))])}});var m=(0,e.withInstall)(v);const g=m})(),c})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../select"),require("../icon"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../select","../icon","../popover"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../select"),require("../icon"),require("../popover")):t(e["../shared"],e.vue,e["../config-provider"],e["../select"],e["../icon"],e["../popover"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r,a,i)=>(()=>{"use strict";var o={2717:e=>{e.exports=n},6870:e=>{e.exports=a},5537:e=>{e.exports=i},6422:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return o[e](n,n.exports,u),n.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{u.r(c),u.d(c,{BkPagination:()=>g,default:()=>b});var e=u(4212);function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,"string");if("object"!==t(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var i=u(748),o=u(2717),l=u(6422),s=u.n(l),d=u(6870),f=u(5537),p=u.n(f);var v={modelValue:e.PropTypes.number.def(1),count:e.PropTypes.number.def(0).isRequired,limit:e.PropTypes.number.def(10),limitList:e.PropTypes.arrayOf(Number).def([10,20,50,100]),showLimit:e.PropTypes.bool.def(!0),type:e.PropTypes.oneOf(["default","compact"]).def("default"),location:e.PropTypes.oneOf(["left","right"]).def("right"),align:e.PropTypes.oneOf(["left","center","right"]).def("left"),size:e.PropTypes.size(),small:e.PropTypes.bool.def(!1),showTotalCount:e.PropTypes.bool.def(!0),prevText:e.PropTypes.string,nextText:e.PropTypes.string,disabled:e.PropTypes.bool.def(!1),beforeChange:e.PropTypes.func,layout:e.PropTypes.custom((function(e){var t={total:!0,list:!0,limit:!0};return e.some((function(e){return t[e]}))}),"layout 的值只支持 * total、list、limit *").def(["total","list","limit"])};const m=(0,i.defineComponent)({name:"Pagination",props:v,emits:["update:modelValue","change","update:limit","limitChange"],setup:function(e,t){var n=(0,o.useLocale)("pagination"),r=(0,i.ref)(0),u=(0,i.toRefs)(e),c=u.count,f=u.limit,v=function(e){return function(t){var n=t.isFirst,r=t.isLast,a=(0,i.getCurrentInstance)().props;return a.showTotalCount?(0,i.createVNode)("div",(0,i.mergeProps)({class:{"bk-pagination-total":!0,"is-first":n,"is-last":r}},{disabled:a.disabled}),[e.value.total,(0,i.createVNode)("div",{class:"bk-pagination-total-num"},[a.count]),e.value.strip]):null}}(n),m=function(){var e=(0,i.getCurrentInstance)().proxy,t=(0,i.ref)(1),n=(0,i.computed)((function(){return 1===t.value})),r=(0,i.computed)((function(){return t.value===e.totalPageNum})),a=(0,i.ref)(!1),o=(0,i.ref)(!1),l=(0,i.computed)((function(){a.value=!1,o.value=!1;var n=[];if(e.totalPageNum<=7){for(var r=2;r<=e.totalPageNum-1;r++)n.push(r);return n}var i=Math.floor(2.5);e.totalPageNum>5&&(a.value=t.value-i>2,o.value=t.value+i<e.totalPageNum-1);for(var l=Math.min(e.totalPageNum-5,Math.max(2,t.value-i)),u=l;u<l+5;u++)n.push(u);return n}));(0,i.watch)((function(){return e.modelValue}),(function(n){(0,i.nextTick)((function(){n>=1&&n<=e.totalPageNum?t.value=n:t.value=n<1?1:e.totalPageNum}))}),{immediate:!0}),(0,i.nextTick)((function(){(0,i.watch)((function(){return e.totalPageNum}),(function(e){t.value>e&&(t.value=e)}))}));var u=function(){n.value||(t.value=t.value-1)},c=function(){r.value||(t.value=t.value+1)},s=function(e){e!==t.value&&(t.value=e)},f=function(){t.value=Math.max(1,t.value-5)},p=function(){t.value=Math.min(e.totalPageNum,t.value+5)};return{current:t,render:function(v){var m=v.isFirst,g=v.isLast;return(0,i.createVNode)("div",{class:{"bk-pagination-list":!0,"is-first":m,"is-last":g}},[(0,i.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":n.value},onClick:u},[e.prevText||(0,i.createVNode)(d.AngleLeft,null,null)]),(0,i.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":1===t.value},key:"1",onClick:function(){return s(1)}},[(0,i.createTextVNode)("1")]),a.value&&(0,i.createVNode)("div",{key:"pre-batch",class:"bk-pagination-list-pre-batch",onClick:f},[(0,i.createVNode)(d.Ellipsis,null,null)]),l.value.map((function(e){return(0,i.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e},key:e,onClick:function(){return s(e)}},[e])})),o.value&&(0,i.createVNode)("div",{key:"next-batch",class:"bk-pagination-list-next-batch",onClick:p},[(0,i.createVNode)(d.Ellipsis,null,null)]),e.totalPageNum>1&&(0,i.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e.totalPageNum},key:"last",onClick:function(){return s(e.totalPageNum)}},[e.totalPageNum]),(0,i.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":r.value},onClick:c},[e.nextText||(0,i.createVNode)(d.AngleRight,null,null)])])}}}(),g=m.current,b=m.render,y=function(){var e=(0,i.getCurrentInstance)().proxy,t=(0,i.ref)(null),n=(0,i.ref)(!1),r=(0,i.ref)(1),a=(0,i.computed)((function(){return 1===r.value})),o=(0,i.computed)((function(){return r.value===e.totalPageNum})),l=0,u=(0,i.computed)((function(){for(var t=[],n=1;n<=e.totalPageNum;n++)t.push(n);return t}));(0,i.watch)((function(){return e.modelValue}),(function(t){(0,i.nextTick)((function(){t>=1&&t<=e.totalPageNum?r.value=t:r.value=t<1?1:e.totalPageNum,l=r.value}))}),{immediate:!0}),(0,i.nextTick)((function(){(0,i.watch)((function(){return e.totalPageNum}),(function(e){r.value>e&&(r.value=e)}))}));var c=function(){a.value||(r.value=r.value-1)},s=function(){o.value||(r.value=r.value+1)},f=function(){n.value=!0},v=function(){n.value=!1,t.value.textContent="".concat(l),l!==r.value&&(r.value=l)},m=function(t){var n=t.target,a=Number(n.textContent);!a||a<1||a>e.totalPageNum||a===r.value||(l=a)},g=function(e){["Enter","NumpadEnter"].includes(e.code)&&(e.preventDefault(),v())};return{current:r,render:function(){return(0,i.createVNode)("div",{class:"bk-pagination-small-list"},[(0,i.createVNode)("div",{class:{"bk-pagination-btn-pre":!0,"is-disabled":a.value},onClick:c},[(0,i.createVNode)(d.AngleLeft,null,null)]),(0,i.createVNode)(p(),{theme:"light",trigger:"click",arrow:!1,width:56,boundary:"body",placement:"bottom"},{default:function(){return(0,i.createVNode)("div",{class:{"bk-pagination-picker":!0,"is-focused":n.value}},[(0,i.createVNode)("span",{ref:t,class:"bk-pagination-editor",contenteditable:!0,spellcheck:"false",onFocus:f,onBlur:v,onInput:m,onKeydown:g},[r.value]),(0,i.createVNode)("span",null,[(0,i.createTextVNode)("/")]),(0,i.createVNode)("span",{class:"bk-pagination-small-list-total"},[e.totalPageNum])])},content:function(){return(0,i.createVNode)("div",{class:"bk-pagination-picker-list"},[u.value.map((function(e){return(0,i.createVNode)("div",{class:{item:!0,"is-actived":e===r.value},key:e,onClick:function(){return function(e){l=e,v()}(e)}},[e])}))])}}),(0,i.createVNode)("div",{class:{"bk-pagination-btn-next":!0,"is-disabled":o.value},onClick:s},[(0,i.createVNode)(d.AngleRight,null,null)])])}}}(),h=y.current,N=y.render,P=function(e){var t=(0,i.getCurrentInstance)().proxy,n=(0,i.ref)(t.limit);(0,i.watch)((function(){return t.limit}),(function(e){n.value=e})),(0,i.watch)((function(){return t.limitList}),(function(e){(0,i.nextTick)((function(){if(!e.includes(n.value)){var t=a(e,1);n.value=t[0]}}))}),{immediate:!0});var r=function(e){n.value=e};return{limit:n,render:function(a){var o,u,c=a.isFirst,d=a.isLast;return t.showLimit?(0,i.createVNode)("div",(0,i.mergeProps)({class:{"bk-pagination-limit":!0,"is-first":c,"is-last":d}},{disabled:t.disabled}),[(0,i.createVNode)("div",null,[e.value.eachPage]),(0,i.createVNode)(s(),{class:"bk-pagination-limit-select",clearable:!1,size:"small",withValidate:!1,modelValue:n.value,onChange:r,disabled:t.disabled},(u=o=t.limitList.map((function(e,t){return(0,i.createVNode)(l.BkOption,{value:e,label:"".concat(e),key:"".concat(t,"_").concat(e)},null)})),"function"==typeof u||"[object Object]"===Object.prototype.toString.call(u)&&!(0,i.isVNode)(u)?o:{default:function(){return[o]}})),(0,i.createVNode)("div",null,[e.value.strip])]):null}}}(n),k=P.limit,V=P.render;return(0,i.watch)([c,k,f],(function(e){var t=a(e,2),n=t[0],i=t[1],o=Math.ceil(n/i);r.value=o<1?1:o}),{immediate:!0}),(0,i.watch)(g,(function(e){t.emit("update:modelValue",e),t.emit("change",e)})),(0,i.watch)(h,(function(n){e.small&&(t.emit("update:modelValue",n),t.emit("change",n))})),(0,i.watch)(k,(function(e){t.emit("limitChange",e)})),{totalPageNum:r,renderTotal:v,renderList:b,renderLimit:V,renderSmallList:N}},render:function(){var t,r=this,a=(0,e.classes)((n(t={"bk-pagination":!0},"bk-pagination--".concat(this.size),!0),n(t,"is-align-".concat(this.align),!0),t)),o={total:this.renderTotal,list:this.small?this.renderSmallList:this.renderList,limit:this.renderLimit};return(0,i.createVNode)("div",{class:a},[this.layout.map((function(e,t){return o[e]({isFirst:0===t,isLast:t===r.layout.length-1})}))])}});var g=(0,e.withInstall)(m);const b=g})(),c})()));
@@ -34,7 +34,7 @@ export declare const paginationProps: {
34
34
  align: import("vue-types").VueTypeDef<string> & {
35
35
  default: string;
36
36
  };
37
- size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
37
+ size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
38
38
  small: import("vue-types").VueTypeValidableDef<boolean> & {
39
39
  default: boolean;
40
40
  } & {
@@ -63,7 +63,7 @@ export declare const paginationProps: {
63
63
  default: () => string[];
64
64
  };
65
65
  };
66
- export declare type PaginationProps = Readonly<ExtractPropTypes<typeof paginationProps>>;
66
+ export type PaginationProps = Readonly<ExtractPropTypes<typeof paginationProps>>;
67
67
  declare const _default: import("vue").DefineComponent<{
68
68
  modelValue: import("vue-types").VueTypeValidableDef<number> & {
69
69
  default: number;
@@ -99,7 +99,7 @@ declare const _default: import("vue").DefineComponent<{
99
99
  align: import("vue-types").VueTypeDef<string> & {
100
100
  default: string;
101
101
  };
102
- size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
102
+ size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
103
103
  small: import("vue-types").VueTypeValidableDef<boolean> & {
104
104
  default: boolean;
105
105
  } & {
@@ -177,7 +177,7 @@ declare const _default: import("vue").DefineComponent<{
177
177
  align: import("vue-types").VueTypeDef<string> & {
178
178
  default: string;
179
179
  };
180
- size: import("vue-types").VueTypeDef<"small" | "default" | "large">;
180
+ size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
181
181
  small: import("vue-types").VueTypeValidableDef<boolean> & {
182
182
  default: boolean;
183
183
  } & {
@@ -211,8 +211,8 @@ declare const _default: import("vue").DefineComponent<{
211
211
  "onUpdate:limit"?: (...args: any[]) => any;
212
212
  onLimitChange?: (...args: any[]) => any;
213
213
  }, {
214
- small: boolean;
215
214
  type: string;
215
+ small: boolean;
216
216
  disabled: boolean;
217
217
  layout: string[];
218
218
  location: string;
@@ -226,5 +226,5 @@ declare const _default: import("vue").DefineComponent<{
226
226
  limitList: number[];
227
227
  showLimit: boolean;
228
228
  showTotalCount: boolean;
229
- }>;
229
+ }, {}>;
230
230
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { ComponentPublicInstance } from 'vue';
2
2
  import type { PaginationProps } from './pagination';
3
- export declare type IPaginationInstance = ComponentPublicInstance<PaginationProps, {
3
+ export type IPaginationInstance = ComponentPublicInstance<PaginationProps, {
4
4
  limit: PaginationProps['limit'];
5
5
  totalPageNum: number;
6
6
  }>;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("../shared"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["vue","../shared","vue-types"],t);else{var n="object"==typeof exports?t(require("vue"),require("../shared"),require("vue-types")):t(e.vue,e["../shared"],e["vue-types"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,s=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,h=v-a+(m-u)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||v>a)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=v,u=m,r=d;var y=(1e4*(268435455&(v+=122192928e5))+m)%4294967296;s[c++]=y>>>24&255,s[c++]=y>>>16&255,s[c++]=y>>>8&255,s[c++]=255&y;var g=v/4294967296*1e4&268435455;s[c++]=g>>>8&255,s[c++]=255&g,s[c++]=g>>>24&15|16,s[c++]=g>>>16&255,s[c++]=d>>>8|128,s[c++]=255&d;for(var b=0;b<6;++b)s[c+b]=f[b];return t||l(s)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},210:e=>{"use strict";e.exports=n}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}i.r(l),i.d(l,{default:()=>ze});var t=i(748),n=i(4212);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,l=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw l}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var a,u=new Map;function c(e,t){var n=[];return Array.isArray(t.arg)?n=t.arg:function(e){return"undefined"!=typeof Element&&e instanceof Element}(t.arg)&&n.push(t.arg),function(o,r){var i=t.instance.popperRef,l=o.target,a=null==r?void 0:r.target,u=!t||!t.instance,c=!l||!a,s=e.contains(l)||e.contains(a),f=e===l,d=n.length&&n.some((function(e){return null==e?void 0:e.contains(l)}))||n.length&&n.includes(a),p=i&&(i.contains(l)||i.contains(a));u||c||s||f||d||p||t.value(o,r)}}document.addEventListener("mousedown",(function(e){return a=e})),document.addEventListener("mouseup",(function(e){var t,n=o(u.values());try{for(n.s();!(t=n.n()).done;){var r,i=o(t.value);try{for(i.s();!(r=i.n()).done;)(0,r.value.documentHandler)(e,a)}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}}));var s={beforeMount:function(e,t){u.has(e)||u.set(e,[]),u.get(e).push({documentHandler:c(e,t),bindingFn:t.value})},updated:function(e,t){u.has(e)||u.set(e,[]);var n=u.get(e),o=n.findIndex((function(e){return e.bindingFn===t.oldValue})),r={documentHandler:c(e,t),bindingFn:t.value};o>=0?n.splice(o,1,r):n.push(r)},unmounted:function(e){u.delete(e)},install:function(e){e.directive("bkTooltips",s)}};const f=s,d=(0,t.defineComponent)({name:"PopArrow",render:function(){var e=(0,n.resolveClassName)("pop2-arrow");return(0,t.createVNode)("div",{class:e},null)}});var p,v,m=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside",e.CONTENT_MOUSEENTER="contentMouseenter",e.CONTENT_MOUSELEAVE="contentMouseleave",e.STOP_HIDE="stopHide"}(v||(v={}));var h=(e(p={},v.SHOW,m),e(p,v.HIDE,m),e(p,v.CLICK_OUTSIDE,m),e(p,v.CONTENT_MOUSEENTER,m),e(p,v.CONTENT_MOUSELEAVE,m),e(p,v.STOP_HIDE,m),p);const y=(0,t.defineComponent)({name:"PopContent",props:{width:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto"),height:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto"),maxHeight:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto"),extCls:n.PropTypes.string.def("")},setup:function(e){var n=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,t.computed)((function(){return{width:n(e.width),height:n(e.height),maxHeight:n(e.maxHeight)}}))}},render:function(){var e,o,r,i,l,a,u=[(0,n.resolveClassName)("popover"),(0,n.resolveClassName)("pop2-content"),this.extCls];return(0,t.createVNode)("div",{class:u,tabindex:"-1",style:this.style},[null!==(r=null===(o=(e=this.$slots).arrow)||void 0===o?void 0:o.call(e))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).default)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var g,b,w,T,x,R,P,E,O,A,C,S,N,H,L=i(210);(0,L.createTypes)({}),function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(g||(g={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(b||(b={})),function(e){e.IF="if",e.SHOW="show"}(w||(w={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(T||(T={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(x||(x={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(R||(R={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(P||(P={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(E||(E={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(O||(O={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(A||(A={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(C||(C={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(S||(S={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(N||(N={})),function(e){e.CHECKBOX="checkbox",e.CHECK="check"}(H||(H={}));var I={onAfterHidden:Function,onAfterShow:Function},D=Object.assign({isShow:n.PropTypes.bool.def(!1),always:n.PropTypes.bool.def(!1),disabled:n.PropTypes.bool.def(!1),width:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto"),height:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto"),maxHeight:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number]).def("auto"),content:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.number,n.PropTypes.any]).def(""),allowHtml:n.PropTypes.bool.def(!1),placement:(0,n.placementType)().def(R.TOP_START),theme:n.PropTypes.string.def("dark"),trigger:(0,L.string)().def(P.HOVER),renderType:(0,L.toType)("popRenderType",{}).def(E.SHOWN),arrow:n.PropTypes.bool.def(!0),padding:n.PropTypes.number.def(5),offset:n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.shape({})]).def(6),boundary:n.PropTypes.oneOfType([n.PropTypes.string.def("parent"),n.PropTypes.instanceOf(HTMLElement)]),zIndex:n.PropTypes.number.def(void 0),disableTeleport:n.PropTypes.bool.def(!1),autoPlacement:n.PropTypes.bool.def(!1),autoVisibility:n.PropTypes.bool.def(!0),disableOutsideClick:n.PropTypes.bool.def(!1),disableTransform:n.PropTypes.bool.def(!1),reference:n.PropTypes.any.def(null),modifiers:n.PropTypes.array.def([]),popoverDelay:n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.arrayOf(n.PropTypes.number)]).def(100),extCls:n.PropTypes.string.def("")},I);const M=(0,t.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}}),j=(0,t.defineComponent)({props:{class:n.PropTypes.string.def("")},render:function(){var e,n;return(0,t.createVNode)(t.Fragment,null,[null===(n=(e=this.$slots).default)||void 0===n?void 0:n.call(e)])}});function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e){return e.split("-")[0]}function _(e){return e.split("-")[1]}function U(e){return["top","bottom"].includes(k(e))?"x":"y"}function $(e){return"y"===e?"height":"width"}function B(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=U(t),u=$(a),c=o[u]/2-r[u]/2,s="x"===a;let f;switch(k(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(_(t)){case"start":f[a]-=c*(n&&s?-1:1);break;case"end":f[a]+=c*(n&&s?-1:1)}return f}function W(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function q(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function z(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,v=W(p),m=a[d?"floating"===f?"reference":"floating":f],h=q(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),y=q(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:u}):l[f]);return{top:h.top-y.top+v.top,bottom:y.bottom-h.bottom+v.bottom,left:h.left-y.left+v.left,right:y.right-h.right+v.right}}const G=Math.min,K=Math.max;function Y(e,t,n){return K(e,G(t,n))}const X={left:"right",right:"left",bottom:"top",top:"bottom"};function Z(e){return e.replace(/left|right|bottom|top/g,(e=>X[e]))}function J(e,t,n){void 0===n&&(n=!1);const o=_(e),r=U(e),i=$(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Z(l)),{main:l,cross:Z(l)}}const Q={start:"end",end:"start"};function ee(e){return e.replace(/start|end/g,(e=>Q[e]))}const te=["top","right","bottom","left"],ne=te.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function oe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function re(e){return te.some((t=>e[t]>=0))}const ie=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=k(n),a=_(n),u="x"===U(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof v&&(p="end"===a?-1*v:v),u?{x:p*s,y:d*c}:{x:d*c,y:p*s}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const le=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=e,c={x:n,y:o},s=await z(t,u),f=U(k(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=c[f],v=c[d];if(i){const e="y"===f?"bottom":"right";p=Y(p+s["y"===f?"top":"left"],p,p-s[e])}if(l){const e="y"===d?"bottom":"right";v=Y(v+s["y"===d?"top":"left"],v,v-s[e])}const m=a.fn({...t,[f]:p,[d]:v});return{...m,data:{x:m.x-n,y:m.y-o}}}}};function ae(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ue(e){if(null==e)return window;if(!ae(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ce(e){return ue(e).getComputedStyle(e)}function se(e){return ae(e)?"":e?(e.nodeName||"").toLowerCase():""}function fe(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function de(e){return e instanceof ue(e).HTMLElement}function pe(e){return e instanceof ue(e).Element}function ve(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ue(e).ShadowRoot||e instanceof ShadowRoot)}function me(e){const{overflow:t,overflowX:n,overflowY:o}=ce(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function he(e){return["table","td","th"].includes(se(e))}function ye(e){const t=/firefox/i.test(fe()),n=ce(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function ge(){return!/^((?!chrome|android).)*safari/i.test(fe())}const be=Math.min,we=Math.max,Te=Math.round;function xe(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let u=1,c=1;t&&de(e)&&(u=e.offsetWidth>0&&Te(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Te(a.height)/e.offsetHeight||1);const s=pe(e)?ue(e):window,f=!ge()&&n,d=(a.left+(f&&null!=(o=null==(r=s.visualViewport)?void 0:r.offsetLeft)?o:0))/u,p=(a.top+(f&&null!=(i=null==(l=s.visualViewport)?void 0:l.offsetTop)?i:0))/c,v=a.width/u,m=a.height/c;return{width:v,height:m,top:p,right:d+v,bottom:p+m,left:d,x:d,y:p}}function Re(e){return(t=e,(t instanceof ue(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Pe(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ee(e){return xe(Re(e)).left+Pe(e).scrollLeft}function Oe(e,t,n){const o=de(t),r=Re(t),i=xe(e,o&&function(e){const t=xe(e);return Te(t.width)!==e.offsetWidth||Te(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==se(t)||me(r))&&(l=Pe(t)),de(t)){const e=xe(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=Ee(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Ae(e){return"html"===se(e)?e:e.assignedSlot||e.parentNode||(ve(e)?e.host:null)||Re(e)}function Ce(e){return de(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function Se(e){const t=ue(e);let n=Ce(e);for(;n&&he(n)&&"static"===getComputedStyle(n).position;)n=Ce(n);return n&&("html"===se(n)||"body"===se(n)&&"static"===getComputedStyle(n).position&&!ye(n))?t:n||function(e){let t=Ae(e);for(ve(t)&&(t=t.host);de(t)&&!["html","body"].includes(se(t));){if(ye(t))return t;t=t.parentNode}return null}(e)||t}function Ne(e){if(de(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=xe(e);return{width:t.width,height:t.height}}function He(e){const t=Ae(e);return["html","body","#document"].includes(se(t))?e.ownerDocument.body:de(t)&&me(t)?t:He(t)}function Le(e,t){var n;void 0===t&&(t=[]);const o=He(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=ue(o),l=r?[i].concat(i.visualViewport||[],me(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(Le(l))}function Ie(e,t,n){return"viewport"===t?q(function(e,t){const n=ue(e),o=Re(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,u=0;if(r){i=r.width,l=r.height;const e=ge();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,u=r.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n)):pe(t)?function(e,t){const n=xe(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):q(function(e){var t;const n=Re(e),o=Pe(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=we(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=we(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+Ee(e);const u=-o.scrollTop;return"rtl"===ce(r||n).direction&&(a+=we(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:u}}(Re(e)))}function De(e){const t=Le(e),n=["absolute","fixed"].includes(ce(e).position)&&de(e)?Se(e):e;return pe(n)?t.filter((e=>pe(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ve(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==se(e))):[]}const Me={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?De(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=Ie(t,n,r);return e.top=we(o.top,e.top),e.right=be(o.right,e.right),e.bottom=be(o.bottom,e.bottom),e.left=we(o.left,e.left),e}),Ie(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=de(n),i=Re(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==se(n)||me(i))&&(l=Pe(n)),de(n))){const e=xe(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:pe,getDimensions:Ne,getOffsetParent:Se,getDocumentElement:Re,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:Oe(t,Se(n),o),floating:{...Ne(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===ce(e).direction},je=(e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:s}=B(u,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:v}=i[n],{x:m,y:h,data:y,reset:g}=await v({x:c,y:s,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=m?m:c,s=null!=h?h:s,d={...d,[p]:{...d[p],...y}},g&&("object"==typeof g&&(g.placement&&(f=g.placement),g.rects&&(u=!0===g.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):g.rects),({x:c,y:s}=B(u,f,a))),n=-1)}return{x:c,y:s,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:Me,...n});var Ve=i(8022),Fe={},ke=function(e){return document.querySelector(e)instanceof HTMLElement},_e=function(e){return e instanceof Element||e instanceof HTMLDocument},Ue=function(e){if(_e(e))return{isElement:!0,content:e,vNode:void 0};if(/^(#|\.)/.test(e)){var t=document.querySelector(e),n=_e(t);return{isElement:n,content:n?t:e,vNode:n?void 0:e}}return{isElement:!1,content:e,vNode:e}};const $e=function(o,r,i){var l=i.refReference,a=i.refContent,u=i.refArrow,c=i.refRoot,s=(0,t.ref)(!1),f=(0,t.ref)(),d=function(){var e,t,n,o=T(null===(e=l.value)||void 0===e?void 0:e.$el);return(null===(t=document.fullscreenElement)||void 0===t?void 0:t.shadowRoot)?document.fullscreenElement.shadowRoot.contains(o):null===(n=document.fullscreenElement)||void 0===n?void 0:n.contains(o)},p=["dark","light"],m=(0,t.computed)((function(){var e,t,n=null!==(t=null===(e=o.theme)||void 0===e?void 0:e.split(/\s+/))&&void 0!==t?t:[];return n.sort((function(e,t){return Number(p.includes(t))-Number(p.includes(e))})),{systemThemes:n,customThemes:n.filter((function(e){return!p.includes(e)}))}})),h=function(){return o.autoVisibility},y=function(){return o.autoPlacement},g=function(){var e,t,n,r,i=T(null===(e=l.value)||void 0===e?void 0:e.$el),s=T(null===(t=a.value)||void 0===t?void 0:t.$el),f=o.arrow?T(null===(n=u.value)||void 0===n?void 0:n.$el):null,d=T(null===(r=c.value)||void 0===r?void 0:r.$el),p=Ue(o.content),v=p.isElement,m=p.content;return s&&v&&!(null==s?void 0:s.contains(m))&&s.append(m),{elReference:i,elContent:s,elArrow:f,root:d}},b=function(){var e={};return Array.isArray(o.modifiers)&&o.modifiers.forEach((function(t){var n,o,r,i,l;if("offset"===t.name){if("number"==typeof(null===(n=t.options)||void 0===n?void 0:n.offset)&&(l=null===(o=t.options)||void 0===o?void 0:o.offset),Array.isArray(null===(r=t.options)||void 0===r?void 0:r.offset)){var a=F(null===(i=t.options)||void 0===i?void 0:i.offset,2);l={mainAxis:a[0],crossAxis:a[1]}}Object.assign(e,{offset:l})}})),e},w=function(e,t){var n,o,r=b(),i=[ie(r.offset||t.offset),le({padding:t.padding})],l={placement:t.placement,middleware:i};if(t.arrow&&i.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:u}=t;if(null==n)return{};const c=W(o),s={x:r,y:i},f=U(l),d=_(l),p=$(f),v=await u.getDimensions(n),m="y"===f?"top":"left",h="y"===f?"bottom":"right",y=a.reference[p]+a.reference[f]-s[f]-a.floating[p],g=s[f]-a.reference[f],b=await(null==u.getOffsetParent?void 0:u.getOffsetParent(n));let w=b?"y"===f?b.clientHeight||0:b.clientWidth||0:0;0===w&&(w=a.floating[p]);const T=y/2-g/2,x=c[m],R=w-v[p]-c[h],P=w/2-v[p]/2+T,E=Y(x,P,R),O=("start"===d?c[m]:c[h])>0&&P!==E&&a.reference[p]<=a.floating[p];return{[f]:s[f]-(O?P<x?x-P:R-P:0),data:{[f]:E,centerOffset:P-E}}}}))({element:e})),y()?i.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:u,rects:c,middlewareData:s,placement:f,platform:d,elements:p}=t,{alignment:v=null,allowedPlacements:m=ne,autoAlignment:h=!0,...y}=e,g=function(e,t,n){return(e?[...n.filter((t=>_(t)===e)),...n.filter((t=>_(t)!==e))]:n.filter((e=>k(e)===e))).filter((n=>!e||_(n)===e||!!t&&ee(n)!==n))}(v,h,m),b=await z(t,y),w=null!=(n=null==(o=s.autoPlacement)?void 0:o.index)?n:0,T=g[w];if(null==T)return{};const{main:x,cross:R}=J(T,c,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==T)return{x:a,y:u,reset:{placement:g[0]}};const P=[b[k(T)],b[x],b[R]],E=[...null!=(r=null==(i=s.autoPlacement)?void 0:i.overflows)?r:[],{placement:T,overflows:P}],O=g[w+1];if(O)return{data:{index:w+1,overflows:E},reset:{placement:O}};const A=E.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),C=null==(l=A.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,S=null!=C?C:A[0].placement;return S!==f?{data:{index:w+1,overflows:E},reset:{placement:S}}:{}}}}()):(i.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:u=2,x:c,y:s}=e,f=q(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=W(u),v=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=c&&null!=s)return null!=(e=d.find((e=>c>e.left-p.left&&c<e.right+p.right&&s>e.top-p.top&&s<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===U(o)){const e=d[0],t=d[d.length-1],n="top"===k(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===k(o),t=K(...d.map((e=>e.right))),n=G(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==v.reference.x||i.reference.y!==v.reference.y||i.reference.width!==v.reference.width||i.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}}()),i.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:s=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...v}=e,m=k(o),h=f||(m!==l&&p?function(e){const t=Z(e);return[ee(e),t,ee(t)]}(l):[Z(l)]),y=[l,...h],g=await z(t,v),b=[];let w=(null==(n=r.flip)?void 0:n.overflows)||[];if(c&&b.push(g[m]),s){const{main:e,cross:t}=J(o,i,await(null==a.isRTL?void 0:a.isRTL(u.floating)));b.push(g[e],g[t])}if(w=[...w,{placement:o,overflows:b}],!b.every((e=>e<=0))){var T,x;const e=(null!=(T=null==(x=r.flip)?void 0:x.index)?T:0)+1,t=y[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var R;const e=null==(R=w.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),h()&&l.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=oe(await z(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:re(t)}}}case"escaped":{const t=oe(await z(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:re(t)}}}default:return{}}}}}()),d()||t.isVirtualEl){var a=(o=f.value,{getElementRects:function(e){var t=e.reference,n=e.floating,o=t.getBoundingClientRect(),r=n.getBoundingClientRect();return{reference:{width:o.width,height:o.height,x:o.x,y:o.y},floating:{width:r.width,height:r.height,x:r.x,y:r.y}}},getDimensions:function(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height}},getClippingRect:function(e){var t;!function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(e);var n=null!==(t=null==o?void 0:o.getBoundingClientRect())&&void 0!==t?t:{},r=n.width,i=void 0===r?0:r,l=n.height;return{width:i,height:void 0===l?0:l,x:0,y:0}}}),u=a.getElementRects,c=a.getDimensions,s=a.getClippingRect;Object.assign(l,{platform:Object.assign(Object.assign({},null!==(n=null==t?void 0:t.platform)&&void 0!==n?n:{}),{getElementRects:u,getDimensions:c,getClippingRect:s})})}return l},T=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):"function"==typeof(null==t?void 0:t.getBoundingClientRect)?t:null},x=m.value.customThemes.join(" "),R=m.value.customThemes.reduce((function(t,n){return Object.assign(e({},"data-".concat(n,"-theme"),!0),t)}),{}),P="".concat(x),E=null,O=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},A=function(e,t,n,r){var i;o.disableTransform?Object.assign(e.style,{left:"".concat(O(t),"px"),top:"".concat(O(n),"px")}):Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(O(t),"px,").concat(O(n),"px,0)")});var l=!!h()&&(null===(i=r.hide)||void 0===i?void 0:i.referenceHidden);Object.assign(e.style,{visibility:l?"hidden":"visible"})},C=function(t,n,r){var i;if(o.arrow){var l=null!==(i=r.arrow)&&void 0!==i?i:{},a=l.x,u=l.y;t.setAttribute("data-arrow",n),Object.assign(t.style,{left:"",top:"",bottom:"",right:""});var c={top:"bottom",right:"left",bottom:"top",left:"right"}[n];Object.assign(t.style,e({left:null!==a?"".concat(a,"px"):"",top:null!==u?"".concat(u,"px"):""},c,"-4px"))}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=g(),o=n.elReference,r=n.elContent,i=n.elArrow,l=e||o;if(l&&r){var a=w(i,t);je(l,r,a).then((function(e){var t=e.x,n=e.y,o=e.placement,l=e.middlewareData,a=r.className;r.className="".concat(a.replace(P,"")," ").concat(P).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(R).forEach((function(e){r.setAttribute(e,R[e])}));var u=o.split("-")[0],c=u;["left","right","top","bottom"].includes(u)||(c="top"),A(r,t,n,l),C(i,c,l)}))}},N=void 0,H=void 0,L=!1,I=function(){return Array.isArray(o.popoverDelay)?[o.popoverDelay[0],o.popoverDelay.slice(-1)[0]]:[o.popoverDelay,o.popoverDelay]},D=function(){var e=I()[0];H=setTimeout((function(){N&&clearTimeout(N),o.disabled||(s.value=!0)}),e)},M=function(){var e=I()[1];N=setTimeout((function(){H&&clearTimeout(H),s.value=!1}),e)},j=function(){s.value?M():D()},V=function(){j()},B=function(){"hover"===o.trigger&&(N&&(L=!0,clearTimeout(N),N=void 0),Q())},X=function(){L&&(M(),L=!1,te())},Q=function(){r.emit(v.CONTENT_MOUSEENTER)},te=function(){r.emit(v.CONTENT_MOUSELEAVE)};return(0,t.watch)((function(){return o.isShow}),(function(e){s.value=e})),(0,t.watch)(s,(function(e){var t,i;e?((i=T(null===(t=a.value)||void 0===t?void 0:t.$el)).style.setProperty("display","block"),i.style.setProperty("z-index","".concat(o.zIndex?o.zIndex:n.bkZIndexManager.getPopperIndex())),S(),r.emit("afterShow",{isShow:!0})):function(){var e;T(null===(e=a.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),r.emit("afterHidden",{isShow:!1})}()})),{showPopover:D,hidePopover:M,resolveTriggerEvents:function(){var e;return null!==(e={hover:{content:[["mouseenter",B],["mouseleave",X]],reference:[["mouseenter",D],["mouseleave",M],["focus",D],["blur",M]]},click:[["click",V]],manual:{content:[["mouseenter",Q],["mouseleave",te]],reference:[[]]}}[o.trigger])&&void 0!==e?e:[]},updatePopover:S,triggerPopover:j,resolvePopElements:g,isElementFullScreen:d,resolveTargetElement:T,createPopInstance:function(){var e=g(),t=e.elReference,n=e.elContent;E=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,u=r&&!a,c=i&&!a,s=u||c?[...pe(e)?Le(e):[],...Le(t)]:[];s.forEach((e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),pe(e)&&!a&&d.observe(e),d.observe(t));let p=a?xe(e):null;return a&&function t(){const o=xe(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;s.forEach((e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(t,n,(function(){s.value&&S(null,o)}))},updateFullscreenTarget:function(e){f.value=e},getFullscreenRoot:function(e){return d()?document.fullscreenElement.shadowRoot?document.fullscreenElement.shadowRoot.querySelector(e):document.fullscreenElement.querySelector(e):document.body},stopHide:function(){N&&(L=!0,clearTimeout(N),N=void 0)},localIsShow:s,cleanup:E}};var Be=null,We=null;const qe=(0,t.defineComponent)({name:"Popover",components:{Content:y,Arrow:d,Root:j},directives:{clickoutside:f},props:D,emits:h,setup:function(e,o){var r=e.content,i=e.theme,l=e.disableTeleport,a=(0,t.toRefs)(e).reference,u=(0,t.ref)(),c=(0,t.ref)(),s=(0,t.ref)(),f=(0,t.ref)(),d=(0,t.computed)((function(){return a.value||u.value})),p=function(e,n,o){var r=o.refReference,i=o.refContent,l=o.refArrow,a=o.refRoot,u=null,c=(0,t.ref)(!1),s=(Fe.fullscreenReferId||(Fe.fullscreenReferId="id_".concat((0,Ve.v4)())),Fe.fullscreenReferId),f=(0,t.ref)(),d=$e(e,n,{refReference:r,refContent:i,refArrow:l,refRoot:a}),p=d.localIsShow,m=d.showPopover,h=d.hidePopover,y=d.updatePopover,g=d.resolveTriggerEvents,b=d.resolvePopElements,w=d.isElementFullScreen,T=d.updateFullscreenTarget,x=d.createPopInstance,R=d.getFullscreenRoot,P=d.stopHide,E=function(){h()},O=function(){x(),e.always?m():A()},A=function(){var e=b(),t=e.elReference,n=e.elContent;if(u=g(),Array.isArray(u))C(t,u);else{var o=u,r=o.content,i=o.reference;C(t,i),C(n,r)}},C=function(e,t){t.forEach((function(t){var n=F(t,2),o=n[0],r=n[1];o&&"function"==typeof r&&e.addEventListener(o,r)}))},S=function(){var e=b(),t=e.elReference,n=e.root;c.value?L.value=null==f?void 0:f.value:L.value=H(n||t)},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=function(n){var o=null,r=function(e){null===o&&e()};return r((function(){if(/^parent$/i.test(e.boundary)){o="".concat(t).concat(Be);var r=(n||{}).parentNode;(null==r?void 0:r.parentNode)&&(r.parentNode.setAttribute("data-pnode-id",We),o="[data-pnode-id=".concat(We,"]"))}})),r((function(){if(!/^body$/i.test(e.boundary)){if("string"==typeof e.boundary)return ke(e.boundary)?void(o=e.boundary):(console.error("props.boundary is not available selector"),void(o="body"));if(_e(e.boundary))return void(o=e.boundary)}})),r((function(){o="string"==typeof e.boundary?e.boundary:"".concat(t).concat(Be)})),o};if(null===Be||!ke("#".concat(Be))){Be="id_".concat((0,Ve.v4)());var o=document.createElement("div");o.setAttribute("id",Be),o.setAttribute("data-popper-id",Be),document.body.append(o)}return null===We&&(We="id_".concat((0,Ve.v4)())),{popContainerId:Be,prefixId:n(),getPrefixId:n}}(e,"#"),H=N.getPrefixId,L=(0,t.ref)(),I=function(){!function(){if(null==u?void 0:u.length){var e=b().elReference;e&&u.forEach((function(t){var n=F(t,2),o=n[0],r=n[1];o&&"function"==typeof r&&e.removeEventListener(o,r)})),u=null}}()},D=function(e){var t;f.value=e,T(e),c.value=w(),null===(t=null==f?void 0:f.value)||void 0===t||t.setAttribute("data-fllsrn-id",s)},M=function(t){var n,o,r;document.fullscreenElement||(r="[data-fllsrn-id=".concat(s,"]"),(null!==(o=null===(n=null==f?void 0:f.value)||void 0===n?void 0:n.querySelectorAll(r))&&void 0!==o?o:[]).forEach((function(e){null==e||e.removeAttribute("data-fllsrn-id")}))),D(t.target),S(),y(null,e)};return{onMountedFn:function(){if(!e.disabled){if(O(),w()){var t="[data-fllsrn-id=".concat(s,"]"),n=R(t);D(n)}S(),document.body.addEventListener("fullscreenchange",M)}},onUnmountedFn:function(){I(),document.body.removeEventListener("fullscreenchange",M)},handleClickOutside:function(t){n.emit(v.CLICK_OUTSIDE,{isShow:p.value,event:t}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||p.value&&E()},beforeInstanceUnmount:I,updateBoundary:S,initPopInstance:O,updatePopover:y,showPopover:m,hidePopover:h,showFn:function(){m()},hideFn:E,stopHide:P,isFullscreen:c,boundary:L,localIsShow:p}}(e,o,{refReference:d,refContent:c,refArrow:s,refRoot:f}),m=p.onMountedFn,h=p.onUnmountedFn,y=p.handleClickOutside,g=p.beforeInstanceUnmount,b=p.updateBoundary,w=p.initPopInstance,T=p.showFn,x=p.hideFn,R=p.showPopover,P=p.hidePopover,E=p.updatePopover,O=p.stopHide,A=p.localIsShow,C=p.boundary;e.always||e.disabled||(0,t.watch)((function(){return e.isShow}),(function(){e.isShow?R():P()}),{immediate:!0}),(0,t.watch)((function(){return[e.disabled]}),(function(e){e[0]?g():w()})),b(),(0,t.onMounted)(m),(0,t.onBeforeUnmount)(h);var S=(0,t.computed)((function(){return!l})),N=(0,t.computed)((function(){return e.renderType===n.RenderType.AUTO||A.value}));return{boundary:C,arrow:e.arrow,refDefaultReference:u,refContent:c,refArrow:s,content:r,theme:i,transBoundary:S,handleClickOutside:y,updatePopover:E,hide:function(){x()},show:function(){T()},stopHide:O,contentIsShow:N,renderContent:function(){return e.allowHtml?Ue(e.content).vNode:r}}},render:function(){var e,n,o,r,i,l,a=this;return(0,t.createVNode)(j,{ref:"refRoot"},{default:function(){return[(0,t.createVNode)(M,{ref:"refDefaultReference"},{default:function(){return[null!==(o=null===(n=(e=a.$slots).default)||void 0===n?void 0:n.call(e))&&void 0!==o?o:(0,t.createVNode)("span",null,null)]}}),(0,t.createVNode)(t.Teleport,{to:a.boundary,disabled:!a.transBoundary},{default:function(){return[(0,t.withDirectives)((0,t.createVNode)(y,{ref:"refContent","data-theme":a.theme,extCls:a.extCls,width:a.width,height:a.height,maxHeight:a.maxHeight},{default:function(){return[a.contentIsShow?null!==(l=null===(i=(r=a.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:a.renderContent():""]},arrow:function(){var e,n;return a.arrow?(0,t.createVNode)(d,{ref:"refArrow"},{default:function(){return[null===(n=(e=a.$slots).arrow)||void 0===n?void 0:n.call(e)]}}):""}}),[[(0,t.resolveDirective)("clickoutside"),a.handleClickOutside]])]}})]}})}}),ze=function(n){var o,r=null,i=null,l=null,a=Object.assign(Object.assign({boundary:"body",placement:"top",autoVisibility:!1},n),{trigger:"manual"}),u={name:"$popover",setup:function(n,o){var r=o.expose,i=(0,t.ref)(a),l=(0,t.ref)(),u=(0,t.ref)({position:"absolute",pointerEvents:"none",left:0,top:0,width:"auto",height:"auto",transform:""}),c=function(e){if(_e(e)){var t=e.getBoundingClientRect(),n=t.x,o=t.y,r=t.width,i=t.height;Object.assign(u.value,{width:"".concat(r,"px"),height:"".concat(i,"px"),transform:"translate3d(".concat(n,"px,").concat(o,"px,0)")})}else{var l=e.clientX,a=e.clientY;Object.assign(u.value,{transform:"translate3d(".concat(l,"px,").concat(a,"px,0)"),width:"10px",height:"10px"})}};c(i.value.target);var s=(0,t.computed)((function(){var t=["target"];return Object.keys(i.value).filter((function(e){return!t.includes(e)})).reduce((function(t,n){return Object.assign(Object.assign({},t),e({},n,i.value[n]))}),{})})),f=function(){var e;null===(e=a.onContentMouseenter)||void 0===e||e.call(a)},d=function(){var e;null===(e=a.onContentMouseleave)||void 0===e||e.call(a)};return r({show:function(){var e,t;null===(t=null===(e=l.value)||void 0===e?void 0:e.show)||void 0===t||t.call(e)},hide:function(){var e,t;null===(t=null===(e=l.value)||void 0===e?void 0:e.hide)||void 0===t||t.call(e)},updateTarget:function(e){var n,o;i.value.target=e,c(e),null===(o=null===(n=l.value)||void 0===n?void 0:n.updatePopover)||void 0===o||o.call(n),(0,t.nextTick)((function(){var e,t;null===(t=null===(e=l.value)||void 0===e?void 0:e.updatePopover)||void 0===t||t.call(e)}))},stopHide:function(){var e,t;null===(t=null===(e=l.value)||void 0===e?void 0:e.stopHide)||void 0===t||t.call(e)}}),function(){return(0,t.createVNode)(qe,(0,t.mergeProps)(s.value,{ref:l,onContentMouseenter:f,onContentMouseleave:d}),{default:function(){return[(0,t.createVNode)("span",{style:u.value},null)]}})}}};return null===r&&(l=document.createElement("div"),(o=a.boundary,/^body$/i.test(o)?document.body:/^parent$/i.test(o)?_e(a.target)?a.target.parentNode:a.target.target.parentNode:"string"==typeof o&&ke(o)?document.querySelector(o):document.body).append(l),r=(0,t.createApp)(u),i=r.mount(l)),{close:function(){r&&(r.unmount(),i=null,r=null,l.remove())},show:function(){null==i||i.show()},hide:function(){null==i||i.hide()},update:function(e){null==i||i.updateTarget(e)},get vm(){return i},get $el(){return i.$el}}}})(),l})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("../shared"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["vue","../shared","vue-types"],t);else{var n="object"==typeof exports?t(require("vue"),require("../shared"),require("vue-types")):t(e.vue,e["../shared"],e["vue-types"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,c=0;e.exports=function(e,t,n){var u=t&&n||0,s=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,y=v-a+(m-c)/1e4;if(y<0&&void 0===e.clockseq&&(d=d+1&16383),(y<0||v>a)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=v,c=m,r=d;var h=(1e4*(268435455&(v+=122192928e5))+m)%4294967296;s[u++]=h>>>24&255,s[u++]=h>>>16&255,s[u++]=h>>>8&255,s[u++]=255&h;var g=v/4294967296*1e4&268435455;s[u++]=g>>>8&255,s[u++]=255&g,s[u++]=g>>>24&15|16,s[u++]=g>>>16&255,s[u++]=d>>>8|128,s[u++]=255&d;for(var b=0;b<6;++b)s[u+b]=f[b];return t||l(s)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4212:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},210:e=>{"use strict";e.exports=n}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,n,o){return(n=function(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,"string");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===e(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t}i.r(l),i.d(l,{default:()=>tt});var n=i(748),o=i(4212);function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var c,u=new Map;function s(e,t){var n,o=[];return Array.isArray(t.arg)?o=t.arg:(n=t.arg,"undefined"!=typeof Element&&n instanceof Element&&o.push(t.arg)),function(n,r){var i=t.instance.popperRef,l=n.target,a=null==r?void 0:r.target,c=!t||!t.instance,u=!l||!a,s=e.contains(l)||e.contains(a),f=e===l,d=o.length&&o.some((function(e){return null==e?void 0:e.contains(l)}))||o.length&&o.includes(a),p=i&&(i.contains(l)||i.contains(a));c||u||s||f||d||p||t.value(n,r)}}document.addEventListener("mousedown",(function(e){return c=e})),document.addEventListener("mouseup",(function(e){var t,n=r(u.values());try{for(n.s();!(t=n.n()).done;){var o,i=r(t.value);try{for(i.s();!(o=i.n()).done;)(0,o.value.documentHandler)(e,c)}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}}));var f={beforeMount:function(e,t){u.has(e)||u.set(e,[]),u.get(e).push({documentHandler:s(e,t),bindingFn:t.value})},updated:function(e,t){u.has(e)||u.set(e,[]);var n=u.get(e),o=n.findIndex((function(e){return e.bindingFn===t.oldValue})),r={documentHandler:s(e,t),bindingFn:t.value};o>=0?n.splice(o,1,r):n.push(r)},unmounted:function(e){u.delete(e)},install:function(e){e.directive("bkTooltips",f)}};const d=f,p=(0,n.defineComponent)({name:"PopArrow",render:function(){var e=(0,o.resolveClassName)("pop2-arrow");return(0,n.createVNode)("div",{class:e},null)}});var v,m,y=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside",e.CONTENT_MOUSEENTER="contentMouseenter",e.CONTENT_MOUSELEAVE="contentMouseleave",e.STOP_HIDE="stopHide"}(m||(m={}));var h=(t(v={},m.SHOW,y),t(v,m.HIDE,y),t(v,m.CLICK_OUTSIDE,y),t(v,m.CONTENT_MOUSEENTER,y),t(v,m.CONTENT_MOUSELEAVE,y),t(v,m.STOP_HIDE,y),v);const g=(0,n.defineComponent)({name:"PopContent",props:{width:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),height:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),maxHeight:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),extCls:o.PropTypes.string.def("")},setup:function(e){var t=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,n.computed)((function(){return{width:t(e.width),height:t(e.height),maxHeight:t(e.maxHeight)}}))}},render:function(){var e,t,r,i,l,a,c=[(0,o.resolveClassName)("popover"),(0,o.resolveClassName)("pop2-content"),this.extCls];return(0,n.createVNode)("div",{class:c,tabindex:"-1",style:this.style},[null!==(r=null===(t=(e=this.$slots).arrow)||void 0===t?void 0:t.call(e))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).default)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var b,w,T,x,E,P,R,O,A,C,S,N,L,I,H=i(210);(0,H.createTypes)({}),function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(b||(b={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(w||(w={})),function(e){e.IF="if",e.SHOW="show"}(T||(T={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(x||(x={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(E||(E={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(P||(P={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(R||(R={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(O||(O={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(A||(A={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(C||(C={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(S||(S={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(N||(N={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(L||(L={})),function(e){e.CHECKBOX="checkbox",e.CHECK="check"}(I||(I={}));var D={onAfterHidden:Function,onAfterShow:Function},M=Object.assign({isShow:o.PropTypes.bool.def(!1),always:o.PropTypes.bool.def(!1),disabled:o.PropTypes.bool.def(!1),width:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),height:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),maxHeight:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def("auto"),content:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.number]).def(""),allowHtml:o.PropTypes.bool.def(!1),placement:(0,o.placementType)().def(P.TOP_START),theme:o.PropTypes.string.def("dark"),trigger:(0,H.string)().def(R.HOVER),renderType:(0,H.toType)("popRenderType",{}).def(O.SHOWN),arrow:o.PropTypes.bool.def(!0),padding:o.PropTypes.number.def(5),offset:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.shape({})]).def(6),boundary:o.PropTypes.oneOfType([o.PropTypes.string.def("parent"),o.PropTypes.instanceOf(HTMLElement)]),zIndex:o.PropTypes.number.def(void 0),disableTeleport:o.PropTypes.bool.def(!1),autoPlacement:o.PropTypes.bool.def(!1),autoVisibility:o.PropTypes.bool.def(!0),disableOutsideClick:o.PropTypes.bool.def(!1),disableTransform:o.PropTypes.bool.def(!1),reference:o.PropTypes.any.def(null),modifiers:o.PropTypes.array.def([]),popoverDelay:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.arrayOf(o.PropTypes.number)]).def(100),extCls:o.PropTypes.string.def("")},D);const F=(0,n.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}}),j=(0,n.defineComponent)({props:{class:o.PropTypes.string.def(""),mode:o.PropTypes.string.def("")},render:function(){var e,t;return(0,n.createVNode)(n.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,l,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(a.push(o.value),a.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const _=["top","right","bottom","left"],B=["start","end"],$=_.reduce(((e,t)=>e.concat(t,t+"-"+B[0],t+"-"+B[1])),[]),U=Math.min,W=Math.max,q=Math.round,z=Math.floor,G=e=>({x:e,y:e}),K={left:"right",right:"left",bottom:"top",top:"bottom"},Y={start:"end",end:"start"};function X(e,t,n){return W(e,U(t,n))}function Z(e,t){return"function"==typeof e?e(t):e}function J(e){return e.split("-")[0]}function Q(e){return e.split("-")[1]}function ee(e){return"x"===e?"y":"x"}function te(e){return"y"===e?"height":"width"}function ne(e){return["top","bottom"].includes(J(e))?"y":"x"}function oe(e){return ee(ne(e))}function re(e,t,n){void 0===n&&(n=!1);const o=Q(e),r=oe(e),i=te(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=le(l)),[l,le(l)]}function ie(e){return e.replace(/start|end/g,(e=>Y[e]))}function le(e){return e.replace(/left|right|bottom|top/g,(e=>K[e]))}function ae(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ce(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ue(e,t,n){let{reference:o,floating:r}=e;const i=ne(t),l=oe(t),a=te(l),c=J(t),u="y"===i,s=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,d=o[a]/2-r[a]/2;let p;switch(c){case"top":p={x:s,y:o.y-r.height};break;case"bottom":p={x:s,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:f};break;case"left":p={x:o.x-r.width,y:f};break;default:p={x:o.x,y:o.y}}switch(Q(t)){case"start":p[l]-=d*(n&&u?-1:1);break;case"end":p[l]+=d*(n&&u?-1:1)}return p}async function se(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Z(t,e),v=ae(p),m=a[d?"floating"===f?"reference":"floating":f],y=ce(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:s,strategy:c})),h="floating"===f?{...l.floating,x:o,y:r}:l.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},w=ce(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:h,offsetParent:g,strategy:c}):h);return{top:(y.top-w.top+v.top)/b.y,bottom:(w.bottom-y.bottom+v.bottom)/b.y,left:(y.left-w.left+v.left)/b.x,right:(w.right-y.right+v.right)/b.x}}function fe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function de(e){return _.some((t=>e[t]>=0))}function pe(e){const t=U(...e.map((e=>e.left))),n=U(...e.map((e=>e.top)));return{x:t,y:n,width:W(...e.map((e=>e.right)))-t,height:W(...e.map((e=>e.bottom)))-n}}const ve=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=J(n),a=Q(n),c="y"===ne(n),u=["left","top"].includes(l)?-1:1,s=i&&c?-1:1,f=Z(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof v&&(p="end"===a?-1*v:v),c?{x:p*s,y:d*u}:{x:d*u,y:p*s}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}},me=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Z(e,t),u={x:n,y:o},s=await se(t,c),f=ne(J(r)),d=ee(f);let p=u[d],v=u[f];if(i){const e="y"===d?"bottom":"right";p=X(p+s["y"===d?"top":"left"],p,p-s[e])}if(l){const e="y"===f?"bottom":"right";v=X(v+s["y"===f?"top":"left"],v,v-s[e])}const m=a.fn({...t,[d]:p,[f]:v});return{...m,data:{x:m.x-n,y:m.y-o}}}}};function ye(e){return be(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ge(e){var t;return null==(t=(be(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function be(e){return e instanceof Node||e instanceof he(e).Node}function we(e){return e instanceof Element||e instanceof he(e).Element}function Te(e){return e instanceof HTMLElement||e instanceof he(e).HTMLElement}function xe(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof he(e).ShadowRoot)}function Ee(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function Pe(e){return["table","td","th"].includes(ye(e))}function Re(e){const t=Oe(),n=Ce(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Oe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ae(e){return["html","body","#document"].includes(ye(e))}function Ce(e){return he(e).getComputedStyle(e)}function Se(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ne(e){if("html"===ye(e))return e;const t=e.assignedSlot||e.parentNode||xe(e)&&e.host||ge(e);return xe(t)?t.host:t}function Le(e){const t=Ne(e);return Ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:Te(t)&&Ee(t)?t:Le(t)}function Ie(e,t){var n;void 0===t&&(t=[]);const o=Le(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=he(o);return r?t.concat(i,i.visualViewport||[],Ee(o)?o:[]):t.concat(o,Ie(o))}function He(e){const t=Ce(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Te(e),i=r?e.offsetWidth:n,l=r?e.offsetHeight:o,a=q(n)!==i||q(o)!==l;return a&&(n=i,o=l),{width:n,height:o,$:a}}function De(e){return we(e)?e:e.contextElement}function Me(e){const t=De(e);if(!Te(t))return G(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=He(t);let l=(i?q(n.width):n.width)/o,a=(i?q(n.height):n.height)/r;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const Fe=G(0);function je(e){const t=he(e);return Oe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Fe}function ke(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=De(e);let l=G(1);t&&(o?we(o)&&(l=Me(o)):l=Me(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==he(e))&&t}(i,n,o)?je(i):G(0);let c=(r.left+a.x)/l.x,u=(r.top+a.y)/l.y,s=r.width/l.x,f=r.height/l.y;if(i){const e=he(i),t=o&&we(o)?he(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=Me(n),t=n.getBoundingClientRect(),o=Ce(n),r=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,u*=e.y,s*=e.x,f*=e.y,c+=r,u+=i,n=he(n).frameElement}}return ce({width:s,height:f,x:c,y:u})}function Ve(e){return ke(ge(e)).left+Se(e).scrollLeft}function _e(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=he(e),o=ge(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;const e=Oe();(!e||e&&"fixed"===t)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:l,x:a,y:c}}(e,n);else if("document"===t)o=function(e){const t=ge(e),n=Se(e),o=e.ownerDocument.body,r=W(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=W(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+Ve(e);const a=-n.scrollTop;return"rtl"===Ce(o).direction&&(l+=W(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:l,y:a}}(ge(e));else if(we(t))o=function(e,t){const n=ke(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Te(e)?Me(e):G(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=je(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return ce(o)}function Be(e,t){const n=Ne(e);return!(n===t||!we(n)||Ae(n))&&("fixed"===Ce(n).position||Be(n,t))}function $e(e,t,n){const o=Te(t),r=ge(t),i="fixed"===n,l=ke(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=G(0);if(o||!o&&!i)if(("body"!==ye(t)||Ee(r))&&(a=Se(t)),o){const e=ke(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&(c.x=Ve(r));return{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function Ue(e,t){return Te(e)&&"fixed"!==Ce(e).position?t?t(e):e.offsetParent:null}function We(e,t){const n=he(e);if(!Te(e))return n;let o=Ue(e,t);for(;o&&Pe(o)&&"static"===Ce(o).position;)o=Ue(o,t);return o&&("html"===ye(o)||"body"===ye(o)&&"static"===Ce(o).position&&!Re(o))?n:o||function(e){let t=Ne(e);for(;Te(t)&&!Ae(t);){if(Re(t))return t;t=Ne(t)}return null}(e)||n}const qe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=Te(n),i=ge(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0},a=G(1);const c=G(0);if((r||!r&&"fixed"!==o)&&(("body"!==ye(n)||Ee(i))&&(l=Se(n)),Te(n))){const e=ke(n);a=Me(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-l.scrollLeft*a.x+c.x,y:t.y*a.y-l.scrollTop*a.y+c.y}},getDocumentElement:ge,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=Ie(e).filter((e=>we(e)&&"body"!==ye(e))),r=null;const i="fixed"===Ce(e).position;let l=i?Ne(e):e;for(;we(l)&&!Ae(l);){const t=Ce(l),n=Re(l);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||Ee(l)&&!n&&Be(e,l))?o=o.filter((e=>e!==l)):r=t,l=Ne(l)}return t.set(e,o),o}(t,this._c):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=_e(t,n,r);return e.top=W(o.top,e.top),e.right=U(o.right,e.right),e.bottom=U(o.bottom,e.bottom),e.left=W(o.left,e.left),e}),_e(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:We,getElementRects:async function(e){let{reference:t,floating:n,strategy:o}=e;const r=this.getOffsetParent||We,i=this.getDimensions;return{reference:$e(t,await r(n),o),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return He(e)},getScale:Me,isElement:we,isRTL:function(e){return"rtl"===Ce(e).direction}};var ze=i(8022),Ge={},Ke=function(e){return document.querySelector(e)instanceof HTMLElement},Ye=function(e){return e instanceof Element||e instanceof HTMLDocument},Xe=function(e){if(Ye(e))return{isElement:!0,content:e,vNode:void 0};if(/^(#|\.)/.test(e)){var t=document.querySelector(e),n=Ye(t);return{isElement:n,content:n?t:e,vNode:n?void 0:e}}return{isElement:!1,content:e,vNode:e}};const Ze=function(e,r,i){var l=i.refReference,a=i.refContent,c=i.refArrow,u=i.refRoot,s=(0,n.ref)(!1),f=(0,n.ref)(),d=function(){var e,t,n,o=T(null===(e=l.value)||void 0===e?void 0:e.$el);return(null===(t=document.fullscreenElement)||void 0===t?void 0:t.shadowRoot)?document.fullscreenElement.shadowRoot.contains(o):null===(n=document.fullscreenElement)||void 0===n?void 0:n.contains(o)},p=["dark","light"],v=(0,n.computed)((function(){var t,n,o=null!==(n=null===(t=e.theme)||void 0===t?void 0:t.split(/\s+/))&&void 0!==n?n:[];return o.sort((function(e,t){return Number(p.includes(t))-Number(p.includes(e))})),{systemThemes:o,customThemes:o.filter((function(e){return!p.includes(e)}))}})),y=function(){return e.autoVisibility},h=function(){return e.autoPlacement},g=function(){var t,n,o,r,i=T(null===(t=l.value)||void 0===t?void 0:t.$el),s=T(null===(n=a.value)||void 0===n?void 0:n.$el),f=e.arrow?T(null===(o=c.value)||void 0===o?void 0:o.$el):null,d=T(null===(r=u.value)||void 0===r?void 0:r.$el),p=Xe(e.content),v=p.isElement,m=p.content;return s&&v&&!(null==s?void 0:s.contains(m))&&s.append(m),{elReference:i,elContent:s,elArrow:f,root:d}},b=function(){var t={};return Array.isArray(e.modifiers)&&e.modifiers.forEach((function(e){var n,o,r,i,l;if("offset"===e.name){if("number"==typeof(null===(n=e.options)||void 0===n?void 0:n.offset)&&(l=null===(o=e.options)||void 0===o?void 0:o.offset),Array.isArray(null===(r=e.options)||void 0===r?void 0:r.offset)){var a=V(null===(i=e.options)||void 0===i?void 0:i.offset,2);l={mainAxis:a[0],crossAxis:a[1]}}Object.assign(t,{offset:l})}})),t},w=function(e,t){var n,o,r=b(),i=[ve(r.offset||t.offset),me({padding:t.padding})],l={placement:t.placement,middleware:i};if(t.arrow&&i.push((e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:l,elements:a}=t,{element:c,padding:u=0}=Z(e,t)||{};if(null==c)return{};const s=ae(u),f={x:n,y:o},d=oe(r),p=te(d),v=await l.getDimensions(c),m="y"===d,y=m?"top":"left",h=m?"bottom":"right",g=m?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[d]-f[d]-i.floating[p],w=f[d]-i.reference[d],T=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let x=T?T[g]:0;x&&await(null==l.isElement?void 0:l.isElement(T))||(x=a.floating[g]||i.floating[p]);const E=b/2-w/2,P=x/2-v[p]/2-1,R=U(s[y],P),O=U(s[h],P),A=R,C=x-v[p]-O,S=x/2-v[p]/2+E,N=X(A,S,C),L=null!=Q(r)&&S!=N&&i.reference[p]/2-(S<A?R:O)-v[p]/2<0?S<A?A-S:C-S:0;return{[d]:f[d]-L,data:{[d]:N,centerOffset:S-N+L}}}}))({element:e})),h()?i.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r;const{rects:i,middlewareData:l,placement:a,platform:c,elements:u}=t,{crossAxis:s=!1,alignment:f,allowedPlacements:d=$,autoAlignment:p=!0,...v}=Z(e,t),m=void 0!==f||d===$?function(e,t,n){return(e?[...n.filter((t=>Q(t)===e)),...n.filter((t=>Q(t)!==e))]:n.filter((e=>J(e)===e))).filter((n=>!e||Q(n)===e||!!t&&ie(n)!==n))}(f||null,p,d):d,y=await se(t,v),h=(null==(n=l.autoPlacement)?void 0:n.index)||0,g=m[h];if(null==g)return{};const b=re(g,i,await(null==c.isRTL?void 0:c.isRTL(u.floating)));if(a!==g)return{reset:{placement:m[0]}};const w=[y[J(g)],y[b[0]],y[b[1]]],T=[...(null==(o=l.autoPlacement)?void 0:o.overflows)||[],{placement:g,overflows:w}],x=m[h+1];if(x)return{data:{index:h+1,overflows:T},reset:{placement:x}};const E=T.map((e=>{const t=Q(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),P=(null==(r=E.filter((e=>e[2].slice(0,Q(e[0])?2:3).every((e=>e<=0))))[0])?void 0:r[0])||E[0][0];return P!==a?{data:{index:h+1,overflows:T},reset:{placement:P}}:{}}}}()):(i.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:r,platform:i,strategy:l}=t,{padding:a=2,x:c,y:u}=Z(e,t),s=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(o.reference))||[]),f=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let o=null;for(let e=0;e<t.length;e++){const r=t[e];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map((e=>ce(pe(e))))}(s),d=ce(pe(s)),p=ae(a),v=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=c&&null!=u)return f.find((e=>c>e.left-p.left&&c<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom))||d;if(f.length>=2){if("y"===ne(n)){const e=f[0],t=f[f.length-1],o="top"===J(n),r=e.top,i=t.bottom,l=o?e.left:t.left,a=o?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===J(n),t=W(...f.map((e=>e.right))),o=U(...f.map((e=>e.left))),r=f.filter((n=>e?n.left===o:n.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:o,right:t,width:t-o,height:l-i,x:o,y:i}}return d}},floating:o.floating,strategy:l});return r.reference.x!==v.reference.x||r.reference.y!==v.reference.y||r.reference.width!==v.reference.width||r.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}}()),i.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:s=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...m}=Z(e,t),y=J(o),h=J(l)===l,g=await(null==a.isRTL?void 0:a.isRTL(c.floating)),b=f||(h||!v?[le(l)]:function(e){const t=le(e);return[ie(e),t,ie(t)]}(l));f||"none"===p||b.push(...function(e,t,n,o){const r=Q(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:l;default:return[]}}(J(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(ie)))),i}(l,v,p,g));const w=[l,...b],T=await se(t,m),x=[];let E=(null==(n=r.flip)?void 0:n.overflows)||[];if(u&&x.push(T[y]),s){const e=re(o,i,g);x.push(T[e[0]],T[e[1]])}if(E=[...E,{placement:o,overflows:x}],!x.every((e=>e<=0))){var P,R;const e=((null==(P=r.flip)?void 0:P.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(R=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:R.placement;if(!n)switch(d){case"bestFit":{var O;const e=null==(O=E.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),y()&&l.middleware.push(function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Z(e,t);switch(o){case"referenceHidden":{const e=fe(await se(t,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:de(e)}}}case"escaped":{const e=fe(await se(t,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:de(e)}}}default:return{}}}}}()),d()||t.isVirtualEl){var a=(o=f.value,{getElementRects:function(e){var t=e.reference,n=e.floating,o=t.getBoundingClientRect(),r=n.getBoundingClientRect();return{reference:{width:o.width,height:o.height,x:o.x,y:o.y},floating:{width:r.width,height:r.height,x:r.x,y:r.y}}},getDimensions:function(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height}},getClippingRect:function(e){var t;!function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e);var n=null!==(t=null==o?void 0:o.getBoundingClientRect())&&void 0!==t?t:{},r=n.width,i=void 0===r?0:r,l=n.height;return{width:i,height:void 0===l?0:l,x:0,y:0}}}),c=a.getElementRects,u=a.getDimensions,s=a.getClippingRect;Object.assign(l,{platform:Object.assign(Object.assign({},null!==(n=null==t?void 0:t.platform)&&void 0!==n?n:{}),{getElementRects:c,getDimensions:u,getClippingRect:s})})}return l},T=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):"function"==typeof(null==t?void 0:t.getBoundingClientRect)?t:null},x=v.value.customThemes.join(" "),E=v.value.customThemes.reduce((function(e,n){return Object.assign(t({},"data-".concat(n,"-theme"),!0),e)}),{}),P="".concat(x),R=null,O=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},A=function(t,n,o,r){var i;e.disableTransform?Object.assign(t.style,{left:"".concat(O(n),"px"),top:"".concat(O(o),"px")}):Object.assign(t.style,{left:"0",top:"0",transform:"translate3d(".concat(O(n),"px,").concat(O(o),"px,0)")});var l=!!y()&&(null===(i=r.hide)||void 0===i?void 0:i.referenceHidden);Object.assign(t.style,{visibility:l?"hidden":"visible"})},C=function(n,o,r){var i;if(e.arrow){var l=null!==(i=r.arrow)&&void 0!==i?i:{},a=l.x,c=l.y;n.setAttribute("data-arrow",o),Object.assign(n.style,{left:"",top:"",bottom:"",right:""});var u={top:"bottom",right:"left",bottom:"top",left:"right"}[o];Object.assign(n.style,t({left:null!==a?"".concat(a,"px"):"",top:null!==c?"".concat(c,"px"):""},u,"-4px"))}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=g(),o=n.elReference,r=n.elContent,i=n.elArrow,l=e||o;if(l&&r){var a=w(i,t);((e,t,n)=>{const o=new Map,r={platform:qe,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:s,y:f}=ue(u,o,c),d=o,p={},v=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:y,y:h,data:g,reset:b}=await m({x:s,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:u,platform:l,elements:{reference:e,floating:t}});s=null!=y?y:s,f=null!=h?h:f,p={...p,[i]:{...p[i],...g}},b&&v<=50&&(v++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):b.rects),({x:s,y:f}=ue(u,d,c))),n=-1)}return{x:s,y:f,placement:d,strategy:r,middlewareData:p}})(e,t,{...r,platform:i})})(l,r,a).then((function(e){var t=e.x,n=e.y,o=e.placement,l=e.middlewareData,a=r.className;r.className="".concat(a.replace(P,"")," ").concat(P).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(E).forEach((function(e){r.setAttribute(e,E[e])}));var c=o.split("-")[0],u=c;["left","right","top","bottom"].includes(c)||(u="top"),A(r,t,n,l),C(i,u,l)}))}},N=void 0,L=void 0,I=!1,H=function(){return Array.isArray(e.popoverDelay)?[e.popoverDelay[0],e.popoverDelay.slice(-1)[0]]:[e.popoverDelay,e.popoverDelay]},D=function(){var t=H()[0];L=setTimeout((function(){N&&clearTimeout(N),e.disabled||(s.value=!0)}),t)},M=function(){var e=H()[1];N=setTimeout((function(){L&&clearTimeout(L),s.value=!1}),e)},F=function(){s.value?M():D()},j=function(){F()},k=function(){"hover"===e.trigger&&(N&&(I=!0,clearTimeout(N),N=void 0),B())},_=function(){I&&(M(),I=!1,q())},B=function(){r.emit(m.CONTENT_MOUSEENTER)},q=function(){r.emit(m.CONTENT_MOUSELEAVE)};return(0,n.watch)((function(){return e.isShow}),(function(e){s.value=e})),(0,n.watch)(s,(function(t){var n,i;t?((i=T(null===(n=a.value)||void 0===n?void 0:n.$el)).style.setProperty("display","block"),i.style.setProperty("z-index","".concat(e.zIndex?e.zIndex:o.bkZIndexManager.getPopperIndex())),S(),r.emit("afterShow",{isShow:!0})):function(){var e;T(null===(e=a.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),r.emit("afterHidden",{isShow:!1})}()})),{showPopover:D,hidePopover:M,resolveTriggerEvents:function(){var t;return null!==(t={hover:{content:[["mouseenter",k],["mouseleave",_]],reference:[["mouseenter",D],["mouseleave",M],["focus",D],["blur",M]]},click:[["click",j]],manual:{content:[["mouseenter",B],["mouseleave",q]],reference:[[]]}}[e.trigger])&&void 0!==t?t:[]},updatePopover:S,triggerPopover:F,resolvePopElements:g,isElementFullScreen:d,resolveTargetElement:T,createPopInstance:function(){var t=g(),n=t.elReference,o=t.elContent;R=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,u=De(e),s=r||i?[...u?Ie(u):[],...Ie(t)]:[];s.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=u&&a?function(e,t){let n,o=null;const r=ge(e);function i(){clearTimeout(n),o&&o.disconnect(),o=null}return function l(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const{left:u,top:s,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const p={rootMargin:-z(s)+"px "+-z(r.clientWidth-(u+f))+"px "+-z(r.clientHeight-(s+d))+"px "+-z(u)+"px",threshold:W(0,U(1,c))||1};let v=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!v)return l();t?l(!1,t):n=setTimeout((()=>{l(!1,1e-7)}),100)}v=!1}try{o=new IntersectionObserver(m,{...p,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(m,p)}o.observe(e)}(!0),i}(u,n):null;let d,p=-1,v=null;l&&(v=new ResizeObserver((e=>{let[o]=e;o&&o.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{v&&v.observe(t)}))),n()})),u&&!c&&v.observe(u),v.observe(t));let m=c?ke(e):null;return c&&function t(){const o=ke(e);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||n(),m=o,d=requestAnimationFrame(t)}(),n(),()=>{s.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),f&&f(),v&&v.disconnect(),v=null,c&&cancelAnimationFrame(d)}}(n,o,(function(){s.value&&S(null,e)}))},updateFullscreenTarget:function(e){f.value=e},getFullscreenRoot:function(e){return d()?document.fullscreenElement.shadowRoot?document.fullscreenElement.shadowRoot.querySelector(e):document.fullscreenElement.querySelector(e):document.body},stopHide:function(){N&&(I=!0,clearTimeout(N),N=void 0)},localIsShow:s,cleanup:R}};var Je=null,Qe=null;const et=(0,n.defineComponent)({name:"Popover",components:{Content:g,Arrow:p,Root:j},directives:{clickoutside:d},props:M,emits:h,setup:function(e,t){var r=e.content,i=e.theme,l=e.disableTeleport,a=(0,n.toRefs)(e).reference,c=(0,n.ref)(),u=(0,n.ref)(),s=(0,n.ref)(),f=(0,n.ref)(),d=(0,n.computed)((function(){return a.value||c.value})),p=function(e,t,o){var r=o.refReference,i=o.refContent,l=o.refArrow,a=o.refRoot,c=null,u=(0,n.ref)(!1),s=(Ge.fullscreenReferId||(Ge.fullscreenReferId="id_".concat((0,ze.v4)())),Ge.fullscreenReferId),f=(0,n.ref)(),d=Ze(e,t,{refReference:r,refContent:i,refArrow:l,refRoot:a}),p=d.localIsShow,v=d.showPopover,y=d.hidePopover,h=d.updatePopover,g=d.resolveTriggerEvents,b=d.resolvePopElements,w=d.isElementFullScreen,T=d.updateFullscreenTarget,x=d.createPopInstance,E=d.getFullscreenRoot,P=d.stopHide,R=function(){y()},O=function(){x(),e.always?v():A()},A=function(){var e=b(),t=e.elReference,n=e.elContent;if(c=g(),Array.isArray(c))C(t,c);else{var o=c,r=o.content,i=o.reference;C(t,i),C(n,r)}},C=function(e,t){t.forEach((function(t){var n=V(t,2),o=n[0],r=n[1];o&&"function"==typeof r&&e.addEventListener(o,r)}))},S=function(){var e=b(),t=e.elReference,n=e.root;u.value?I.value=null==f?void 0:f.value:I.value=L(n||t)},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=function(n){var o=null,r=function(e){null===o&&e()};return r((function(){if(/^parent$/i.test(e.boundary)){o="".concat(t).concat(Je);var r=(n||{}).parentNode;(null==r?void 0:r.parentNode)&&(r.parentNode.setAttribute("data-pnode-id",Qe),o="[data-pnode-id=".concat(Qe,"]"))}})),r((function(){if(!/^body$/i.test(e.boundary)){if("string"==typeof e.boundary)return Ke(e.boundary)?void(o=e.boundary):(console.error("props.boundary is not available selector"),void(o="body"));if(Ye(e.boundary))return void(o=e.boundary)}})),r((function(){o="string"==typeof e.boundary?e.boundary:"".concat(t).concat(Je)})),o};if(null===Je||!Ke("#".concat(Je))){Je="id_".concat((0,ze.v4)());var o=document.createElement("div");o.setAttribute("id",Je),o.setAttribute("data-popper-id",Je),document.body.append(o)}return null===Qe&&(Qe="id_".concat((0,ze.v4)())),{popContainerId:Je,prefixId:n(),getPrefixId:n}}(e,"#"),L=N.getPrefixId,I=(0,n.ref)(),H=function(){!function(){if(null==c?void 0:c.length){var e=b().elReference;e&&c.forEach((function(t){var n=V(t,2),o=n[0],r=n[1];o&&"function"==typeof r&&e.removeEventListener(o,r)})),c=null}}()},D=function(e){var t;f.value=e,T(e),u.value=w(),null===(t=null==f?void 0:f.value)||void 0===t||t.setAttribute("data-fllsrn-id",s)},M=function(t){var n,o,r;document.fullscreenElement||(r="[data-fllsrn-id=".concat(s,"]"),(null!==(o=null===(n=null==f?void 0:f.value)||void 0===n?void 0:n.querySelectorAll(r))&&void 0!==o?o:[]).forEach((function(e){null==e||e.removeAttribute("data-fllsrn-id")}))),D(t.target),S(),h(null,e)};return{onMountedFn:function(){if(!e.disabled){if(O(),w()){var t="[data-fllsrn-id=".concat(s,"]"),n=E(t);D(n)}S(),document.body.addEventListener("fullscreenchange",M)}},onUnmountedFn:function(){H(),document.body.removeEventListener("fullscreenchange",M)},handleClickOutside:function(n){t.emit(m.CLICK_OUTSIDE,{isShow:p.value,event:n}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||p.value&&R()},beforeInstanceUnmount:H,updateBoundary:S,initPopInstance:O,updatePopover:h,showPopover:v,hidePopover:y,showFn:function(){v()},hideFn:R,stopHide:P,isFullscreen:u,boundary:I,localIsShow:p}}(e,t,{refReference:d,refContent:u,refArrow:s,refRoot:f}),v=p.onMountedFn,y=p.onUnmountedFn,h=p.handleClickOutside,g=p.beforeInstanceUnmount,b=p.updateBoundary,w=p.initPopInstance,T=p.showFn,x=p.hideFn,E=p.showPopover,P=p.hidePopover,R=p.updatePopover,O=p.stopHide,A=p.localIsShow,C=p.boundary;e.always||e.disabled||(0,n.watch)((function(){return e.isShow}),(function(){e.isShow?E():P()}),{immediate:!0}),(0,n.watch)((function(){return[e.disabled]}),(function(e){e[0]?g():w()})),b(),(0,n.onMounted)(v),(0,n.onBeforeUnmount)(y);var S=(0,n.computed)((function(){return!l})),N=(0,n.computed)((function(){return e.renderType===o.RenderType.AUTO||A.value}));return{boundary:C,arrow:e.arrow,refDefaultReference:c,refContent:u,refArrow:s,content:r,theme:i,transBoundary:S,handleClickOutside:h,updatePopover:R,hide:function(){x()},show:function(){T()},stopHide:O,contentIsShow:N,renderContent:function(){return e.allowHtml?Xe(e.content).vNode:r}}},render:function(){var e,t,o,r,i,l,a=this;return(0,n.createVNode)(j,{ref:"refRoot"},{default:function(){return[(0,n.createVNode)(F,{ref:"refDefaultReference"},{default:function(){return[null!==(o=null===(t=(e=a.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==o?o:(0,n.createVNode)("span",null,null)]}}),(0,n.createVNode)(n.Teleport,{to:a.boundary,disabled:!a.transBoundary},{default:function(){return[(0,n.withDirectives)((0,n.createVNode)(g,{ref:"refContent","data-theme":a.theme,extCls:a.extCls,width:a.width,height:a.height,maxHeight:a.maxHeight},{default:function(){return[a.contentIsShow?null!==(l=null===(i=(r=a.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:a.renderContent():""]},arrow:function(){var e,t;return a.arrow?(0,n.createVNode)(p,{ref:"refArrow"},{default:function(){return[null===(t=(e=a.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}}),[[(0,n.resolveDirective)("clickoutside"),a.handleClickOutside]])]}})]}})}}),tt=function(e){var o,r=null,i=null,l=null,a=Object.assign(Object.assign({boundary:"body",placement:"top",autoVisibility:!1},e),{trigger:"manual"}),c={name:"$popover",setup:function(e,o){var r=o.expose,i=(0,n.ref)(a),l=(0,n.ref)(),c=(0,n.ref)({position:"absolute",pointerEvents:"none",left:0,top:0,width:"auto",height:"auto",transform:""}),u=function(e){if(Ye(e)){var t=e.getBoundingClientRect(),n=t.x,o=t.y,r=t.width,i=t.height;Object.assign(c.value,{width:"".concat(r,"px"),height:"".concat(i,"px"),transform:"translate3d(".concat(n,"px,").concat(o,"px,0)")})}else{var l=e.clientX,a=e.clientY;Object.assign(c.value,{transform:"translate3d(".concat(l,"px,").concat(a,"px,0)"),width:"10px",height:"10px"})}};u(i.value.target);var s=(0,n.computed)((function(){var e=["target"];return Object.keys(i.value).filter((function(t){return!e.includes(t)})).reduce((function(e,n){return Object.assign(Object.assign({},e),t({},n,i.value[n]))}),{})})),f=function(){var e;null===(e=a.onContentMouseenter)||void 0===e||e.call(a)},d=function(){var e;null===(e=a.onContentMouseleave)||void 0===e||e.call(a)};return r({show:function(){var e,t;null===(t=null===(e=l.value)||void 0===e?void 0:e.show)||void 0===t||t.call(e)},hide:function(){var e,t;null===(t=null===(e=l.value)||void 0===e?void 0:e.hide)||void 0===t||t.call(e)},updateTarget:function(e){var t,o;i.value.target=e,u(e),null===(o=null===(t=l.value)||void 0===t?void 0:t.updatePopover)||void 0===o||o.call(t),(0,n.nextTick)((function(){var e,t;null===(t=null===(e=l.value)||void 0===e?void 0:e.updatePopover)||void 0===t||t.call(e)}))},stopHide:function(){var e,t;null===(t=null===(e=l.value)||void 0===e?void 0:e.stopHide)||void 0===t||t.call(e)}}),function(){return(0,n.createVNode)(et,(0,n.mergeProps)(s.value,{ref:l,onContentMouseenter:f,onContentMouseleave:d}),{default:function(){return[(0,n.createVNode)("span",{style:c.value},null)]}})}}};return null===r&&(l=document.createElement("div"),(o=a.boundary,/^body$/i.test(o)?document.body:/^parent$/i.test(o)?Ye(a.target)?a.target.parentNode:a.target.target.parentNode:"string"==typeof o&&Ke(o)?document.querySelector(o):document.body).append(l),r=(0,n.createApp)(c),i=r.mount(l)),{close:function(){r&&(r.unmount(),i=null,r=null,l.remove())},show:function(){null==i||i.show()},hide:function(){null==i||i.hide()},update:function(e){null==i||i.updateTarget(e)},get vm(){return i},get $el(){return i.$el}}}})(),l})()));