@element-plus/nightly 0.0.20251228 → 0.0.20251229
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.
- package/dist/index.full.js +3 -3
- package/dist/index.full.min.js +3 -3
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +3 -3
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +3 -3
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/affix/src/affix2.mjs +1 -1
- package/es/components/autocomplete/src/autocomplete.mjs +1 -1
- package/es/components/autocomplete/src/autocomplete2.mjs +1 -1
- package/es/components/avatar/index.mjs +2 -2
- package/es/components/avatar/src/avatar.mjs +74 -30
- package/es/components/avatar/src/avatar.mjs.map +1 -1
- package/es/components/avatar/src/avatar2.mjs +30 -74
- package/es/components/avatar/src/avatar2.mjs.map +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +31 -83
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +83 -31
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/carousel/index.mjs +4 -4
- package/es/components/carousel/src/carousel-item.mjs +7 -79
- package/es/components/carousel/src/carousel-item.mjs.map +1 -1
- package/es/components/carousel/src/carousel-item2.mjs +79 -7
- package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
- package/es/components/carousel/src/carousel.mjs +60 -254
- package/es/components/carousel/src/carousel.mjs.map +1 -1
- package/es/components/carousel/src/carousel2.mjs +254 -60
- package/es/components/carousel/src/carousel2.mjs.map +1 -1
- package/es/components/cascader-panel/src/index.mjs +1 -1
- package/es/components/cascader-panel/src/menu.mjs +1 -1
- package/es/components/cascader-panel/src/node.mjs +116 -192
- package/es/components/cascader-panel/src/node.mjs.map +1 -1
- package/es/components/cascader-panel/src/node2.mjs +192 -116
- package/es/components/cascader-panel/src/node2.mjs.map +1 -1
- package/es/components/cascader-panel/src/store.mjs +1 -1
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse-item.mjs +17 -118
- package/es/components/collapse/src/collapse-item.mjs.map +1 -1
- package/es/components/collapse/src/collapse-item2.mjs +118 -17
- package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
- package/es/components/color-picker/index.mjs +2 -2
- package/es/components/color-picker/src/color-picker.mjs +53 -391
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker/src/color-picker2.mjs +391 -53
- package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dropdown/index.mjs +2 -2
- package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
- package/es/components/dropdown/src/dropdown-item.mjs +1 -1
- package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
- package/es/components/dropdown/src/dropdown.mjs +112 -264
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown2.mjs +264 -112
- package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
- package/es/components/form/index.mjs +4 -4
- package/es/components/form/src/form-item.mjs +355 -45
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form-item2.mjs +45 -355
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form.mjs +174 -54
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form2.mjs +54 -174
- package/es/components/form/src/form2.mjs.map +1 -1
- package/es/components/index.mjs +19 -19
- package/es/components/input/index.mjs +2 -2
- package/es/components/input/src/input.mjs +124 -586
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input2.mjs +586 -124
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown.mjs +14 -205
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown2.mjs +205 -14
- package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
- package/es/components/mention/src/mention.mjs +1 -1
- package/es/components/mention/src/mention2.mjs +2 -2
- package/es/components/message/index.mjs +1 -1
- package/es/components/message/src/message.mjs +190 -107
- package/es/components/message/src/message.mjs.map +1 -1
- package/es/components/message/src/message2.mjs +107 -190
- package/es/components/message/src/message2.mjs.map +1 -1
- package/es/components/message/src/method.mjs +2 -2
- package/es/components/pagination/src/components/next.mjs +43 -17
- package/es/components/pagination/src/components/next.mjs.map +1 -1
- package/es/components/pagination/src/components/next2.mjs +17 -43
- package/es/components/pagination/src/components/next2.mjs.map +1 -1
- package/es/components/pagination/src/components/pager.mjs +229 -15
- package/es/components/pagination/src/components/pager.mjs.map +1 -1
- package/es/components/pagination/src/components/pager2.mjs +15 -229
- package/es/components/pagination/src/components/pager2.mjs.map +1 -1
- package/es/components/pagination/src/pagination.mjs +2 -2
- package/es/components/popover/src/popover.mjs +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/trigger.mjs +30 -156
- package/es/components/popper/src/trigger.mjs.map +1 -1
- package/es/components/popper/src/trigger2.mjs +156 -30
- package/es/components/popper/src/trigger2.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +5 -79
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +79 -5
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/radio/src/radio-group2.mjs +1 -1
- package/es/components/rate/index.mjs +2 -2
- package/es/components/rate/src/rate.mjs +85 -295
- package/es/components/rate/src/rate.mjs.map +1 -1
- package/es/components/rate/src/rate2.mjs +295 -85
- package/es/components/rate/src/rate2.mjs.map +1 -1
- package/es/components/select/index.mjs +2 -2
- package/es/components/select/src/select.mjs +152 -727
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select2.mjs +727 -152
- package/es/components/select/src/select2.mjs.map +1 -1
- package/es/components/skeleton/index.mjs +2 -2
- package/es/components/skeleton/src/skeleton-item.mjs +17 -27
- package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton-item2.mjs +27 -17
- package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
- package/es/components/skeleton/src/skeleton.mjs +1 -1
- package/es/components/steps/index.mjs +2 -2
- package/es/components/steps/src/item.mjs +18 -257
- package/es/components/steps/src/item.mjs.map +1 -1
- package/es/components/steps/src/item2.mjs +257 -18
- package/es/components/steps/src/item2.mjs.map +1 -1
- package/es/components/tabs/index.mjs +2 -2
- package/es/components/tabs/src/tab-pane.mjs +15 -88
- package/es/components/tabs/src/tab-pane.mjs.map +1 -1
- package/es/components/tabs/src/tab-pane2.mjs +88 -15
- package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
- package/es/components/teleport/index.mjs +2 -2
- package/es/components/teleport/src/teleport.mjs +18 -8
- package/es/components/teleport/src/teleport.mjs.map +1 -1
- package/es/components/teleport/src/teleport2.mjs +8 -18
- package/es/components/teleport/src/teleport2.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/trigger.mjs +1 -1
- package/es/components/tooltip/src/trigger2.mjs +1 -1
- package/es/components/tour/src/tour.mjs +1 -1
- package/es/components/tree-select/src/tree-select.mjs +1 -1
- package/es/components/virtual-list/src/hooks/use-wheel.mjs +1 -1
- package/es/components/virtual-list/src/hooks/use-wheel.mjs.map +1 -1
- package/es/index.mjs +19 -19
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/affix/src/affix2.js +1 -1
- package/lib/components/autocomplete/src/autocomplete.js +1 -1
- package/lib/components/autocomplete/src/autocomplete2.js +1 -1
- package/lib/components/avatar/index.js +2 -2
- package/lib/components/avatar/src/avatar.js +74 -31
- package/lib/components/avatar/src/avatar.js.map +1 -1
- package/lib/components/avatar/src/avatar2.js +31 -74
- package/lib/components/avatar/src/avatar2.js.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +31 -83
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +83 -31
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/carousel/index.js +4 -4
- package/lib/components/carousel/src/carousel-item.js +7 -79
- package/lib/components/carousel/src/carousel-item.js.map +1 -1
- package/lib/components/carousel/src/carousel-item2.js +79 -7
- package/lib/components/carousel/src/carousel-item2.js.map +1 -1
- package/lib/components/carousel/src/carousel.js +61 -254
- package/lib/components/carousel/src/carousel.js.map +1 -1
- package/lib/components/carousel/src/carousel2.js +254 -61
- package/lib/components/carousel/src/carousel2.js.map +1 -1
- package/lib/components/cascader-panel/src/index.js +1 -1
- package/lib/components/cascader-panel/src/menu.js +1 -1
- package/lib/components/cascader-panel/src/node.js +116 -192
- package/lib/components/cascader-panel/src/node.js.map +1 -1
- package/lib/components/cascader-panel/src/node2.js +192 -116
- package/lib/components/cascader-panel/src/node2.js.map +1 -1
- package/lib/components/cascader-panel/src/store.js +1 -1
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse-item.js +17 -118
- package/lib/components/collapse/src/collapse-item.js.map +1 -1
- package/lib/components/collapse/src/collapse-item2.js +118 -17
- package/lib/components/collapse/src/collapse-item2.js.map +1 -1
- package/lib/components/color-picker/index.js +2 -2
- package/lib/components/color-picker/src/color-picker.js +53 -390
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker/src/color-picker2.js +390 -53
- package/lib/components/color-picker/src/color-picker2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dropdown/index.js +2 -2
- package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
- package/lib/components/dropdown/src/dropdown-item.js +1 -1
- package/lib/components/dropdown/src/dropdown-menu.js +1 -1
- package/lib/components/dropdown/src/dropdown.js +117 -264
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown2.js +264 -117
- package/lib/components/dropdown/src/dropdown2.js.map +1 -1
- package/lib/components/form/index.js +4 -4
- package/lib/components/form/src/form-item.js +359 -46
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form-item2.js +46 -359
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form.js +173 -55
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form2.js +55 -173
- package/lib/components/form/src/form2.js.map +1 -1
- package/lib/components/index.js +19 -19
- package/lib/components/input/index.js +2 -2
- package/lib/components/input/src/input.js +121 -582
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input2.js +582 -121
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown.js +15 -205
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown2.js +205 -15
- package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
- package/lib/components/mention/src/mention.js +1 -1
- package/lib/components/mention/src/mention2.js +2 -2
- package/lib/components/message/index.js +1 -1
- package/lib/components/message/src/message.js +189 -111
- package/lib/components/message/src/message.js.map +1 -1
- package/lib/components/message/src/message2.js +111 -189
- package/lib/components/message/src/message2.js.map +1 -1
- package/lib/components/message/src/method.js +2 -2
- package/lib/components/pagination/src/components/next.js +43 -17
- package/lib/components/pagination/src/components/next.js.map +1 -1
- package/lib/components/pagination/src/components/next2.js +17 -43
- package/lib/components/pagination/src/components/next2.js.map +1 -1
- package/lib/components/pagination/src/components/pager.js +229 -15
- package/lib/components/pagination/src/components/pager.js.map +1 -1
- package/lib/components/pagination/src/components/pager2.js +15 -229
- package/lib/components/pagination/src/components/pager2.js.map +1 -1
- package/lib/components/pagination/src/pagination.js +2 -2
- package/lib/components/popover/src/popover.js +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/trigger.js +31 -156
- package/lib/components/popper/src/trigger.js.map +1 -1
- package/lib/components/popper/src/trigger2.js +156 -31
- package/lib/components/popper/src/trigger2.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +5 -79
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +79 -5
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/radio/src/radio-group2.js +1 -1
- package/lib/components/rate/index.js +2 -2
- package/lib/components/rate/src/rate.js +85 -294
- package/lib/components/rate/src/rate.js.map +1 -1
- package/lib/components/rate/src/rate2.js +294 -85
- package/lib/components/rate/src/rate2.js.map +1 -1
- package/lib/components/select/index.js +2 -2
- package/lib/components/select/src/select.js +152 -726
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select2.js +726 -152
- package/lib/components/select/src/select2.js.map +1 -1
- package/lib/components/skeleton/index.js +2 -2
- package/lib/components/skeleton/src/skeleton-item.js +17 -27
- package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
- package/lib/components/skeleton/src/skeleton-item2.js +27 -17
- package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
- package/lib/components/skeleton/src/skeleton.js +1 -1
- package/lib/components/steps/index.js +2 -2
- package/lib/components/steps/src/item.js +18 -257
- package/lib/components/steps/src/item.js.map +1 -1
- package/lib/components/steps/src/item2.js +257 -18
- package/lib/components/steps/src/item2.js.map +1 -1
- package/lib/components/tabs/index.js +2 -2
- package/lib/components/tabs/src/tab-pane.js +15 -88
- package/lib/components/tabs/src/tab-pane.js.map +1 -1
- package/lib/components/tabs/src/tab-pane2.js +88 -15
- package/lib/components/tabs/src/tab-pane2.js.map +1 -1
- package/lib/components/teleport/index.js +2 -2
- package/lib/components/teleport/src/teleport.js +18 -8
- package/lib/components/teleport/src/teleport.js.map +1 -1
- package/lib/components/teleport/src/teleport2.js +8 -18
- package/lib/components/teleport/src/teleport2.js.map +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/trigger.js +1 -1
- package/lib/components/tooltip/src/trigger2.js +1 -1
- package/lib/components/tour/src/tour.js +1 -1
- package/lib/components/tree-select/src/tree-select.js +1 -1
- package/lib/components/virtual-list/src/hooks/use-wheel.js +1 -1
- package/lib/components/virtual-list/src/hooks/use-wheel.js.map +1 -1
- package/lib/index.js +19 -19
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
package/dist/index.full.min.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Element Plus v0.0.20251228 */import{shallowRef as Zt,watchEffect as lo,readonly as iu,getCurrentScope as WO,onScopeDispose as Tg,unref as s,onMounted as st,nextTick as ke,ref as P,computed as k,getCurrentInstance as it,watch as ue,isRef as Kn,reactive as Lt,defineComponent as le,openBlock as $,createElementBlock as F,createElementVNode as W,warn as KO,isVNode as Jt,Fragment as Fe,Comment as Ua,onBeforeUnmount as Dt,inject as Te,onUnmounted as Ms,h as De,Teleport as Og,onBeforeMount as Fd,provide as St,triggerRef as uu,renderSlot as ee,createBlock as ne,normalizeClass as x,normalizeStyle as Ne,createVNode as X,withCtx as Q,mergeProps as rt,useSlots as $n,Transition as zn,withDirectives as ot,resolveDynamicComponent as at,createCommentVNode as te,createTextVNode as Ct,toDisplayString as ge,vShow as xt,toRef as Ft,toRefs as In,onUpdated as Ga,TransitionGroup as Rg,useAttrs as qa,withModifiers as Ye,onActivated as Vd,cloneVNode as jO,Text as xg,onDeactivated as YO,renderList as yt,createSlots as vo,toRaw as cu,resolveComponent as It,resolveDirective as zd,toHandlerKey as UO,vModelText as du,normalizeProps as Xa,guardReactiveProps as wl,vModelCheckbox as Ig,vModelRadio as Mg,onBeforeUpdate as Ng,withKeys as cn,toHandlers as GO,markRaw as Cl,effectScope as qO,render as Sl,createApp as XO,shallowReactive as Ag}from"vue";const ZO='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Pg=e=>typeof Element=="undefined"?!1:e instanceof Element,JO=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Lg=e=>Array.from(e.querySelectorAll(ZO)).filter(t=>Ns(t)&&JO(t)),Ns=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},fu=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const a=document.createEvent(o);return a.initEvent(t,...n),e.dispatchEvent(a),e},Dg=e=>!e.getAttribute("aria-owns"),Bg=(e,t,n)=>{const{parentNode:o}=e;if(!o)return null;const a=o.querySelectorAll(n),l=Array.prototype.indexOf.call(a,e);return a[l+t]||null},As=(e,t)=>{if(!e||!e.focus)return;let n=!1;Pg(e)&&!Ns(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),Pg(e)&&n&&e.removeAttribute("tabindex")},pu=e=>{!e||(As(e),!Dg(e)&&e.click())},pe={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Fg=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],vu=["sun","mon","tue","wed","thu","fri","sat"],Ue="update:modelValue",ft="change",yn="input",Hd=Symbol("INSTALLED_KEY"),ta=["","default","small","large"],QO={large:40,default:32,small:24},Wd=["left","center","right"],Ps=11,Kd=2;function Vg(e,t){var n;const o=Zt();return lo(()=>{o.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!=null?n:"sync"}),iu(o)}function Zl(e){return WO()?(Tg(e),!0):!1}function $o(e){return typeof e=="function"?e():s(e)}function eR(e){if(!Kn(e))return Lt(e);const t=new Proxy({},{get(n,o,a){return s(Reflect.get(e.value,o,a))},set(n,o,a){return Kn(e.value[o])&&!Kn(a)?e.value[o].value=a:e.value[o]=a,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Lt(t)}function tR(e){return eR(k(e))}const _t=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const nR=e=>typeof e!="undefined",zg=e=>e!=null,oR=Object.prototype.toString,aR=e=>oR.call(e)==="[object Object]",Hg=(e,t,n)=>Math.min(n,Math.max(t,e)),na=()=>{},hu=lR();function lR(){var e,t;return _t&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Wg(e,t){function n(...o){return new Promise((a,l)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(a).catch(l)})}return n}function rR(e,t={}){let n,o,a=na;const l=i=>{clearTimeout(i),a(),a=na};return i=>{const u=$o(e),c=$o(t.maxWait);return n&&l(n),u<=0||c!==void 0&&c<=0?(o&&(l(o),o=null),Promise.resolve(i())):new Promise((d,f)=>{a=t.rejectOnCancel?f:d,c&&!o&&(o=setTimeout(()=>{n&&l(n),o=null,d(i())},c)),n=setTimeout(()=>{o&&l(o),o=null,d(i())},u)})}}function sR(...e){let t=0,n,o=!0,a=na,l,r,i,u,c;!Kn(e[0])&&typeof e[0]=="object"?{delay:r,trailing:i=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[r,i=!0,u=!0,c=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,a(),a=na)};return v=>{const m=$o(r),h=Date.now()-t,p=()=>l=v();return d(),m<=0?(t=Date.now(),p()):(h>m&&(u||!o)?(t=Date.now(),p()):i&&(l=new Promise((b,g)=>{a=c?g:b,n=setTimeout(()=>{t=Date.now(),o=!0,b(p()),d()},Math.max(0,m-h))})),!u&&!n&&(n=setTimeout(()=>o=!0,m)),o=!1,l)}}function iR(e){return e||it()}function Ls(e,t=200,n={}){return Wg(rR(t,n),e)}function uR(e,t=200,n={}){const o=P(e.value),a=Ls(()=>{o.value=e.value},t,n);return ue(e,()=>a()),o}function Kg(e,t=200,n=!1,o=!0,a=!1){return Wg(sR(t,n,o,a),e)}function jd(e,t=!0,n){iR()?st(e,n):t?e():ke(e)}function Tr(e,t,n={}){const{immediate:o=!0}=n,a=P(!1);let l=null;function r(){l&&(clearTimeout(l),l=null)}function i(){a.value=!1,r()}function u(...c){r(),a.value=!0,l=setTimeout(()=>{a.value=!1,l=null,e(...c)},$o(t))}return o&&(a.value=!0,_t&&u()),Zl(i),{isPending:iu(a),start:u,stop:i}}function wn(e){var t;const n=$o(e);return(t=n==null?void 0:n.$el)!=null?t:n}const oa=_t?window:void 0,cR=_t?window.document:void 0;function Mt(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=oa):[t,n,o,a]=e,!t)return na;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],r=()=>{l.forEach(d=>d()),l.length=0},i=(d,f,v,m)=>(d.addEventListener(f,v,m),()=>d.removeEventListener(f,v,m)),u=ue(()=>[wn(t),$o(a)],([d,f])=>{if(r(),!d)return;const v=aR(f)?{...f}:f;l.push(...n.flatMap(m=>o.map(h=>i(d,m,h,v))))},{immediate:!0,flush:"post"}),c=()=>{u(),r()};return Zl(c),c}let jg=!1;function Yd(e,t,n={}){const{window:o=oa,ignore:a=[],capture:l=!0,detectIframe:r=!1}=n;if(!o)return na;hu&&!jg&&(jg=!0,Array.from(o.document.body.children).forEach(v=>v.addEventListener("click",na)),o.document.documentElement.addEventListener("click",na));let i=!0;const u=v=>a.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(h=>h===v.target||v.composedPath().includes(h));{const h=wn(m);return h&&(v.target===h||v.composedPath().includes(h))}}),d=[Mt(o,"click",v=>{const m=wn(e);if(!(!m||m===v.target||v.composedPath().includes(m))){if(v.detail===0&&(i=!u(v)),!i){i=!0;return}t(v)}},{passive:!0,capture:l}),Mt(o,"pointerdown",v=>{const m=wn(e);i=!u(v)&&!!(m&&!v.composedPath().includes(m))},{passive:!0}),r&&Mt(o,"blur",v=>{setTimeout(()=>{var m;const h=wn(e);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&t(v)},0)})].filter(Boolean);return()=>d.forEach(v=>v())}function dR(){const e=P(!1),t=it();return t&&st(()=>{e.value=!0},t),e}function mu(e){const t=dR();return k(()=>(t.value,Boolean(e())))}function Ds(e,t,n={}){const{window:o=oa,...a}=n;let l;const r=mu(()=>o&&"MutationObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},u=k(()=>{const v=$o(e),m=(Array.isArray(v)?v:[v]).map(wn).filter(zg);return new Set(m)}),c=ue(()=>u.value,v=>{i(),r.value&&v.size&&(l=new MutationObserver(t),v.forEach(m=>l.observe(m,a)))},{immediate:!0,flush:"post"}),d=()=>l==null?void 0:l.takeRecords(),f=()=>{i(),c()};return Zl(f),{isSupported:r,stop:f,takeRecords:d}}function fR(e={}){var t;const{window:n=oa,deep:o=!0,triggerOnRemoval:a=!1}=e,l=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var c;let d=l==null?void 0:l.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(c=d==null?void 0:d.shadowRoot)==null?void 0:c.activeElement;return d},i=P(),u=()=>{i.value=r()};return n&&(Mt(n,"blur",c=>{c.relatedTarget===null&&u()},!0),Mt(n,"focus",u,!0)),a&&Ds(l,c=>{c.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===i.value&&u()})},{childList:!0,subtree:!0}),u(),i}function pR(e,t={}){const{window:n=oa}=t,o=mu(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const l=P(!1),r=c=>{l.value=c.matches},i=()=>{!a||("removeEventListener"in a?a.removeEventListener("change",r):a.removeListener(r))},u=lo(()=>{!o.value||(i(),a=n.matchMedia($o(e)),"addEventListener"in a?a.addEventListener("change",r):a.addListener(r),l.value=a.matches)});return Zl(()=>{u(),i(),a=void 0}),l}function vR(e){return JSON.parse(JSON.stringify(e))}function hR(e,t,n={}){const{window:o=oa,initialValue:a="",observe:l=!1}=n,r=P(a),i=k(()=>{var c;return wn(t)||((c=o==null?void 0:o.document)==null?void 0:c.documentElement)});function u(){var c;const d=$o(e),f=$o(i);if(f&&o){const v=(c=o.getComputedStyle(f).getPropertyValue(d))==null?void 0:c.trim();r.value=v||a}}return l&&Ds(i,u,{attributeFilter:["style","class"],window:o}),ue([i,()=>$o(e)],u,{immediate:!0}),ue(r,c=>{var d;(d=i.value)!=null&&d.style&&i.value.style.setProperty($o(e),c)}),r}function mR(e={}){const{document:t=cR}=e;if(!t)return P("visible");const n=P(t.visibilityState);return Mt(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Qt(e,t,n={}){const{window:o=oa,...a}=n;let l;const r=mu(()=>o&&"ResizeObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},u=k(()=>Array.isArray(e)?e.map(f=>wn(f)):[wn(e)]),c=ue(u,f=>{if(i(),r.value&&o){l=new ResizeObserver(t);for(const v of f)v&&l.observe(v,a)}},{immediate:!0,flush:"post"}),d=()=>{i(),c()};return Zl(d),{isSupported:r,stop:d}}function Yg(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:l=!0}=t,r=P(0),i=P(0),u=P(0),c=P(0),d=P(0),f=P(0),v=P(0),m=P(0);function h(){const p=wn(e);if(!p){n&&(r.value=0,i.value=0,u.value=0,c.value=0,d.value=0,f.value=0,v.value=0,m.value=0);return}const b=p.getBoundingClientRect();r.value=b.height,i.value=b.bottom,u.value=b.left,c.value=b.right,d.value=b.top,f.value=b.width,v.value=b.x,m.value=b.y}return Qt(e,h),ue(()=>wn(e),p=>!p&&h()),Ds(e,h,{attributeFilter:["style","class"]}),a&&Mt("scroll",h,{capture:!0,passive:!0}),o&&Mt("resize",h,{passive:!0}),jd(()=>{l&&h()}),{height:r,bottom:i,left:u,right:c,top:d,width:f,x:v,y:m,update:h}}function Ud(e,t={width:0,height:0},n={}){const{window:o=oa,box:a="content-box"}=n,l=k(()=>{var f,v;return(v=(f=wn(e))==null?void 0:f.namespaceURI)==null?void 0:v.includes("svg")}),r=P(t.width),i=P(t.height),{stop:u}=Qt(e,([f])=>{const v=a==="border-box"?f.borderBoxSize:a==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&l.value){const m=wn(e);if(m){const h=m.getBoundingClientRect();r.value=h.width,i.value=h.height}}else if(v){const m=Array.isArray(v)?v:[v];r.value=m.reduce((h,{inlineSize:p})=>h+p,0),i.value=m.reduce((h,{blockSize:p})=>h+p,0)}else r.value=f.contentRect.width,i.value=f.contentRect.height},n);jd(()=>{const f=wn(e);f&&(r.value="offsetWidth"in f?f.offsetWidth:t.width,i.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=ue(()=>wn(e),f=>{r.value=f?t.width:0,i.value=f?t.height:0});function d(){u(),c()}return{width:r,height:i,stop:d}}function gR(e,t,n={}){const{root:o,rootMargin:a="0px",threshold:l=.1,window:r=oa,immediate:i=!0}=n,u=mu(()=>r&&"IntersectionObserver"in r),c=k(()=>{const h=$o(e);return(Array.isArray(h)?h:[h]).map(wn).filter(zg)});let d=na;const f=P(i),v=u.value?ue(()=>[c.value,wn(o),f.value],([h,p])=>{if(d(),!f.value||!h.length)return;const b=new IntersectionObserver(t,{root:wn(p),rootMargin:a,threshold:l});h.forEach(g=>g&&b.observe(g)),d=()=>{b.disconnect(),d=na}},{immediate:i,flush:"post"}):na,m=()=>{d(),v(),f.value=!1};return Zl(m),{isSupported:u,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}function Ug(e,t,n,o={}){var a,l,r;const{clone:i=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:v}=o,m=it(),h=n||(m==null?void 0:m.emit)||((a=m==null?void 0:m.$emit)==null?void 0:a.bind(m))||((r=(l=m==null?void 0:m.proxy)==null?void 0:l.$emit)==null?void 0:r.bind(m==null?void 0:m.proxy));let p=c;t||(t="modelValue"),p=p||`update:${t.toString()}`;const b=C=>i?typeof i=="function"?i(C):vR(C):C,g=()=>nR(e[t])?b(e[t]):f,w=C=>{v?v(C)&&h(p,C):h(p,C)};if(u){const C=g(),y=P(C);let S=!1;return ue(()=>e[t],E=>{S||(S=!0,y.value=b(E),ke(()=>S=!1))}),ue(y,E=>{!S&&(E!==e[t]||d)&&w(E)},{deep:d}),y}else return k({get(){return g()},set(C){w(C)}})}function bR(e={}){const{window:t=oa}=e;if(!t)return P(!1);const n=P(t.document.hasFocus());return Mt(t,"blur",()=>{n.value=!1}),Mt(t,"focus",()=>{n.value=!0}),n}function Gd(e={}){const{window:t=oa,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:l=!0}=e,r=P(n),i=P(o),u=()=>{t&&(l?(r.value=t.innerWidth,i.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};if(u(),jd(u),Mt("resize",u,{passive:!0}),a){const c=pR("(orientation: portrait)");ue(c,()=>u())}return{width:r,height:i}}const qd=()=>_t&&/firefox/i.test(window.navigator.userAgent),Gg=()=>_t&&/android/i.test(window.navigator.userAgent),Mn=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const l=e==null?void 0:e(a);if(n===!1||!l)return t==null?void 0:t(a)},qg=e=>t=>t.pointerType==="mouse"?e(t):void 0,Ht=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=Xg(e);if(t){if(Object.values(pe).includes(t))return t;switch(t){case" ":return pe.space;default:return""}}return""},Xg=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&Gg()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},Zg=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Xd=(e,t)=>Math.abs(Zg(e)-Zg(t)),Jg=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};function yR(e,t,n,o){const a=n-t;return e/=o/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}const Gt=()=>{},wR=Object.prototype.hasOwnProperty,Ln=(e,t)=>wR.call(e,t),Ee=Array.isArray,Or=e=>Qg(e)==="[object Date]",lt=e=>typeof e=="function",ze=e=>typeof e=="string",Rt=e=>e!==null&&typeof e=="object",Bs=e=>(Rt(e)||lt(e))&<(e.then)&<(e.catch),CR=Object.prototype.toString,Qg=e=>CR.call(e),Zd=e=>Qg(e)==="[object Object]",Jd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},SR=/-\w/g,Qd=Jd(e=>e.replace(SR,t=>t.slice(1).toUpperCase())),kR=/\B([A-Z])/g,ER=Jd(e=>e.replace(kR,"-$1").toLowerCase()),$R=Jd(e=>e.charAt(0).toUpperCase()+e.slice(1));/**
|
|
1
|
+
/*! Element Plus v0.0.20251229 */import{shallowRef as Zt,watchEffect as lo,readonly as iu,getCurrentScope as WO,onScopeDispose as Tg,unref as s,onMounted as st,nextTick as ke,ref as P,computed as k,getCurrentInstance as it,watch as ue,isRef as Kn,reactive as Lt,defineComponent as le,openBlock as $,createElementBlock as F,createElementVNode as W,warn as KO,isVNode as Jt,Fragment as Fe,Comment as Ua,onBeforeUnmount as Dt,inject as Te,onUnmounted as Ms,h as De,Teleport as Og,onBeforeMount as Fd,provide as St,triggerRef as uu,renderSlot as ee,createBlock as ne,normalizeClass as x,normalizeStyle as Ne,createVNode as X,withCtx as Q,mergeProps as rt,useSlots as $n,Transition as zn,withDirectives as ot,resolveDynamicComponent as at,createCommentVNode as te,createTextVNode as Ct,toDisplayString as ge,vShow as xt,toRef as Ft,toRefs as In,onUpdated as Ga,TransitionGroup as Rg,useAttrs as qa,withModifiers as Ye,onActivated as Vd,cloneVNode as jO,Text as xg,onDeactivated as YO,renderList as yt,createSlots as vo,toRaw as cu,resolveComponent as It,resolveDirective as zd,toHandlerKey as UO,vModelText as du,normalizeProps as Xa,guardReactiveProps as wl,vModelCheckbox as Ig,vModelRadio as Mg,onBeforeUpdate as Ng,withKeys as cn,toHandlers as GO,markRaw as Cl,effectScope as qO,render as Sl,createApp as XO,shallowReactive as Ag}from"vue";const ZO='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Pg=e=>typeof Element=="undefined"?!1:e instanceof Element,JO=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Lg=e=>Array.from(e.querySelectorAll(ZO)).filter(t=>Ns(t)&&JO(t)),Ns=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},fu=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const a=document.createEvent(o);return a.initEvent(t,...n),e.dispatchEvent(a),e},Dg=e=>!e.getAttribute("aria-owns"),Bg=(e,t,n)=>{const{parentNode:o}=e;if(!o)return null;const a=o.querySelectorAll(n),l=Array.prototype.indexOf.call(a,e);return a[l+t]||null},As=(e,t)=>{if(!e||!e.focus)return;let n=!1;Pg(e)&&!Ns(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),Pg(e)&&n&&e.removeAttribute("tabindex")},pu=e=>{!e||(As(e),!Dg(e)&&e.click())},pe={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Fg=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],vu=["sun","mon","tue","wed","thu","fri","sat"],Ue="update:modelValue",ft="change",yn="input",Hd=Symbol("INSTALLED_KEY"),ta=["","default","small","large"],QO={large:40,default:32,small:24},Wd=["left","center","right"],Ps=11,Kd=2;function Vg(e,t){var n;const o=Zt();return lo(()=>{o.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!=null?n:"sync"}),iu(o)}function Zl(e){return WO()?(Tg(e),!0):!1}function $o(e){return typeof e=="function"?e():s(e)}function eR(e){if(!Kn(e))return Lt(e);const t=new Proxy({},{get(n,o,a){return s(Reflect.get(e.value,o,a))},set(n,o,a){return Kn(e.value[o])&&!Kn(a)?e.value[o].value=a:e.value[o]=a,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Lt(t)}function tR(e){return eR(k(e))}const _t=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const nR=e=>typeof e!="undefined",zg=e=>e!=null,oR=Object.prototype.toString,aR=e=>oR.call(e)==="[object Object]",Hg=(e,t,n)=>Math.min(n,Math.max(t,e)),na=()=>{},hu=lR();function lR(){var e,t;return _t&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Wg(e,t){function n(...o){return new Promise((a,l)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(a).catch(l)})}return n}function rR(e,t={}){let n,o,a=na;const l=i=>{clearTimeout(i),a(),a=na};return i=>{const u=$o(e),c=$o(t.maxWait);return n&&l(n),u<=0||c!==void 0&&c<=0?(o&&(l(o),o=null),Promise.resolve(i())):new Promise((d,f)=>{a=t.rejectOnCancel?f:d,c&&!o&&(o=setTimeout(()=>{n&&l(n),o=null,d(i())},c)),n=setTimeout(()=>{o&&l(o),o=null,d(i())},u)})}}function sR(...e){let t=0,n,o=!0,a=na,l,r,i,u,c;!Kn(e[0])&&typeof e[0]=="object"?{delay:r,trailing:i=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[r,i=!0,u=!0,c=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,a(),a=na)};return v=>{const m=$o(r),h=Date.now()-t,p=()=>l=v();return d(),m<=0?(t=Date.now(),p()):(h>m&&(u||!o)?(t=Date.now(),p()):i&&(l=new Promise((b,g)=>{a=c?g:b,n=setTimeout(()=>{t=Date.now(),o=!0,b(p()),d()},Math.max(0,m-h))})),!u&&!n&&(n=setTimeout(()=>o=!0,m)),o=!1,l)}}function iR(e){return e||it()}function Ls(e,t=200,n={}){return Wg(rR(t,n),e)}function uR(e,t=200,n={}){const o=P(e.value),a=Ls(()=>{o.value=e.value},t,n);return ue(e,()=>a()),o}function Kg(e,t=200,n=!1,o=!0,a=!1){return Wg(sR(t,n,o,a),e)}function jd(e,t=!0,n){iR()?st(e,n):t?e():ke(e)}function Tr(e,t,n={}){const{immediate:o=!0}=n,a=P(!1);let l=null;function r(){l&&(clearTimeout(l),l=null)}function i(){a.value=!1,r()}function u(...c){r(),a.value=!0,l=setTimeout(()=>{a.value=!1,l=null,e(...c)},$o(t))}return o&&(a.value=!0,_t&&u()),Zl(i),{isPending:iu(a),start:u,stop:i}}function wn(e){var t;const n=$o(e);return(t=n==null?void 0:n.$el)!=null?t:n}const oa=_t?window:void 0,cR=_t?window.document:void 0;function Mt(...e){let t,n,o,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,a]=e,t=oa):[t,n,o,a]=e,!t)return na;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],r=()=>{l.forEach(d=>d()),l.length=0},i=(d,f,v,m)=>(d.addEventListener(f,v,m),()=>d.removeEventListener(f,v,m)),u=ue(()=>[wn(t),$o(a)],([d,f])=>{if(r(),!d)return;const v=aR(f)?{...f}:f;l.push(...n.flatMap(m=>o.map(h=>i(d,m,h,v))))},{immediate:!0,flush:"post"}),c=()=>{u(),r()};return Zl(c),c}let jg=!1;function Yd(e,t,n={}){const{window:o=oa,ignore:a=[],capture:l=!0,detectIframe:r=!1}=n;if(!o)return na;hu&&!jg&&(jg=!0,Array.from(o.document.body.children).forEach(v=>v.addEventListener("click",na)),o.document.documentElement.addEventListener("click",na));let i=!0;const u=v=>a.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(h=>h===v.target||v.composedPath().includes(h));{const h=wn(m);return h&&(v.target===h||v.composedPath().includes(h))}}),d=[Mt(o,"click",v=>{const m=wn(e);if(!(!m||m===v.target||v.composedPath().includes(m))){if(v.detail===0&&(i=!u(v)),!i){i=!0;return}t(v)}},{passive:!0,capture:l}),Mt(o,"pointerdown",v=>{const m=wn(e);i=!u(v)&&!!(m&&!v.composedPath().includes(m))},{passive:!0}),r&&Mt(o,"blur",v=>{setTimeout(()=>{var m;const h=wn(e);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(h!=null&&h.contains(o.document.activeElement))&&t(v)},0)})].filter(Boolean);return()=>d.forEach(v=>v())}function dR(){const e=P(!1),t=it();return t&&st(()=>{e.value=!0},t),e}function mu(e){const t=dR();return k(()=>(t.value,Boolean(e())))}function Ds(e,t,n={}){const{window:o=oa,...a}=n;let l;const r=mu(()=>o&&"MutationObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},u=k(()=>{const v=$o(e),m=(Array.isArray(v)?v:[v]).map(wn).filter(zg);return new Set(m)}),c=ue(()=>u.value,v=>{i(),r.value&&v.size&&(l=new MutationObserver(t),v.forEach(m=>l.observe(m,a)))},{immediate:!0,flush:"post"}),d=()=>l==null?void 0:l.takeRecords(),f=()=>{i(),c()};return Zl(f),{isSupported:r,stop:f,takeRecords:d}}function fR(e={}){var t;const{window:n=oa,deep:o=!0,triggerOnRemoval:a=!1}=e,l=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var c;let d=l==null?void 0:l.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(c=d==null?void 0:d.shadowRoot)==null?void 0:c.activeElement;return d},i=P(),u=()=>{i.value=r()};return n&&(Mt(n,"blur",c=>{c.relatedTarget===null&&u()},!0),Mt(n,"focus",u,!0)),a&&Ds(l,c=>{c.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===i.value&&u()})},{childList:!0,subtree:!0}),u(),i}function pR(e,t={}){const{window:n=oa}=t,o=mu(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let a;const l=P(!1),r=c=>{l.value=c.matches},i=()=>{!a||("removeEventListener"in a?a.removeEventListener("change",r):a.removeListener(r))},u=lo(()=>{!o.value||(i(),a=n.matchMedia($o(e)),"addEventListener"in a?a.addEventListener("change",r):a.addListener(r),l.value=a.matches)});return Zl(()=>{u(),i(),a=void 0}),l}function vR(e){return JSON.parse(JSON.stringify(e))}function hR(e,t,n={}){const{window:o=oa,initialValue:a="",observe:l=!1}=n,r=P(a),i=k(()=>{var c;return wn(t)||((c=o==null?void 0:o.document)==null?void 0:c.documentElement)});function u(){var c;const d=$o(e),f=$o(i);if(f&&o){const v=(c=o.getComputedStyle(f).getPropertyValue(d))==null?void 0:c.trim();r.value=v||a}}return l&&Ds(i,u,{attributeFilter:["style","class"],window:o}),ue([i,()=>$o(e)],u,{immediate:!0}),ue(r,c=>{var d;(d=i.value)!=null&&d.style&&i.value.style.setProperty($o(e),c)}),r}function mR(e={}){const{document:t=cR}=e;if(!t)return P("visible");const n=P(t.visibilityState);return Mt(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Qt(e,t,n={}){const{window:o=oa,...a}=n;let l;const r=mu(()=>o&&"ResizeObserver"in o),i=()=>{l&&(l.disconnect(),l=void 0)},u=k(()=>Array.isArray(e)?e.map(f=>wn(f)):[wn(e)]),c=ue(u,f=>{if(i(),r.value&&o){l=new ResizeObserver(t);for(const v of f)v&&l.observe(v,a)}},{immediate:!0,flush:"post"}),d=()=>{i(),c()};return Zl(d),{isSupported:r,stop:d}}function Yg(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:a=!0,immediate:l=!0}=t,r=P(0),i=P(0),u=P(0),c=P(0),d=P(0),f=P(0),v=P(0),m=P(0);function h(){const p=wn(e);if(!p){n&&(r.value=0,i.value=0,u.value=0,c.value=0,d.value=0,f.value=0,v.value=0,m.value=0);return}const b=p.getBoundingClientRect();r.value=b.height,i.value=b.bottom,u.value=b.left,c.value=b.right,d.value=b.top,f.value=b.width,v.value=b.x,m.value=b.y}return Qt(e,h),ue(()=>wn(e),p=>!p&&h()),Ds(e,h,{attributeFilter:["style","class"]}),a&&Mt("scroll",h,{capture:!0,passive:!0}),o&&Mt("resize",h,{passive:!0}),jd(()=>{l&&h()}),{height:r,bottom:i,left:u,right:c,top:d,width:f,x:v,y:m,update:h}}function Ud(e,t={width:0,height:0},n={}){const{window:o=oa,box:a="content-box"}=n,l=k(()=>{var f,v;return(v=(f=wn(e))==null?void 0:f.namespaceURI)==null?void 0:v.includes("svg")}),r=P(t.width),i=P(t.height),{stop:u}=Qt(e,([f])=>{const v=a==="border-box"?f.borderBoxSize:a==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&l.value){const m=wn(e);if(m){const h=m.getBoundingClientRect();r.value=h.width,i.value=h.height}}else if(v){const m=Array.isArray(v)?v:[v];r.value=m.reduce((h,{inlineSize:p})=>h+p,0),i.value=m.reduce((h,{blockSize:p})=>h+p,0)}else r.value=f.contentRect.width,i.value=f.contentRect.height},n);jd(()=>{const f=wn(e);f&&(r.value="offsetWidth"in f?f.offsetWidth:t.width,i.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=ue(()=>wn(e),f=>{r.value=f?t.width:0,i.value=f?t.height:0});function d(){u(),c()}return{width:r,height:i,stop:d}}function gR(e,t,n={}){const{root:o,rootMargin:a="0px",threshold:l=.1,window:r=oa,immediate:i=!0}=n,u=mu(()=>r&&"IntersectionObserver"in r),c=k(()=>{const h=$o(e);return(Array.isArray(h)?h:[h]).map(wn).filter(zg)});let d=na;const f=P(i),v=u.value?ue(()=>[c.value,wn(o),f.value],([h,p])=>{if(d(),!f.value||!h.length)return;const b=new IntersectionObserver(t,{root:wn(p),rootMargin:a,threshold:l});h.forEach(g=>g&&b.observe(g)),d=()=>{b.disconnect(),d=na}},{immediate:i,flush:"post"}):na,m=()=>{d(),v(),f.value=!1};return Zl(m),{isSupported:u,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:m}}function Ug(e,t,n,o={}){var a,l,r;const{clone:i=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:v}=o,m=it(),h=n||(m==null?void 0:m.emit)||((a=m==null?void 0:m.$emit)==null?void 0:a.bind(m))||((r=(l=m==null?void 0:m.proxy)==null?void 0:l.$emit)==null?void 0:r.bind(m==null?void 0:m.proxy));let p=c;t||(t="modelValue"),p=p||`update:${t.toString()}`;const b=C=>i?typeof i=="function"?i(C):vR(C):C,g=()=>nR(e[t])?b(e[t]):f,w=C=>{v?v(C)&&h(p,C):h(p,C)};if(u){const C=g(),y=P(C);let S=!1;return ue(()=>e[t],E=>{S||(S=!0,y.value=b(E),ke(()=>S=!1))}),ue(y,E=>{!S&&(E!==e[t]||d)&&w(E)},{deep:d}),y}else return k({get(){return g()},set(C){w(C)}})}function bR(e={}){const{window:t=oa}=e;if(!t)return P(!1);const n=P(t.document.hasFocus());return Mt(t,"blur",()=>{n.value=!1}),Mt(t,"focus",()=>{n.value=!0}),n}function Gd(e={}){const{window:t=oa,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:a=!0,includeScrollbar:l=!0}=e,r=P(n),i=P(o),u=()=>{t&&(l?(r.value=t.innerWidth,i.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};if(u(),jd(u),Mt("resize",u,{passive:!0}),a){const c=pR("(orientation: portrait)");ue(c,()=>u())}return{width:r,height:i}}const qd=()=>_t&&/firefox/i.test(window.navigator.userAgent),Gg=()=>_t&&/android/i.test(window.navigator.userAgent),Mn=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const l=e==null?void 0:e(a);if(n===!1||!l)return t==null?void 0:t(a)},qg=e=>t=>t.pointerType==="mouse"?e(t):void 0,Ht=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=Xg(e);if(t){if(Object.values(pe).includes(t))return t;switch(t){case" ":return pe.space;default:return""}}return""},Xg=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&Gg()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},Zg=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Xd=(e,t)=>Math.abs(Zg(e)-Zg(t)),Jg=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};function yR(e,t,n,o){const a=n-t;return e/=o/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}const Gt=()=>{},wR=Object.prototype.hasOwnProperty,Ln=(e,t)=>wR.call(e,t),Ee=Array.isArray,Or=e=>Qg(e)==="[object Date]",lt=e=>typeof e=="function",ze=e=>typeof e=="string",Rt=e=>e!==null&&typeof e=="object",Bs=e=>(Rt(e)||lt(e))&<(e.then)&<(e.catch),CR=Object.prototype.toString,Qg=e=>CR.call(e),Zd=e=>Qg(e)==="[object Object]",Jd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},SR=/-\w/g,Qd=Jd(e=>e.replace(SR,t=>t.slice(1).toUpperCase())),kR=/\B([A-Z])/g,ER=Jd(e=>e.replace(kR,"-$1").toLowerCase()),$R=Jd(e=>e.charAt(0).toUpperCase()+e.slice(1));/**
|
|
2
2
|
* @vue/shared v3.5.25
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
@@ -29,7 +29,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
29
29
|
* Released under MIT license <https://lodash.com/license>
|
|
30
30
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
31
31
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
32
|
-
*/const $t=e=>e===void 0,Vt=e=>typeof e=="boolean",xe=e=>typeof e=="number",co=e=>!e&&e!==0||Ee(e)&&e.length===0||Rt(e)&&!Object.keys(e).length,bo=e=>typeof Element=="undefined"?!1:e instanceof Element,yo=e=>fn(e),PF=e=>ze(e)?!Number.isNaN(Number(e)):!1,li=e=>e===window,Ma=e=>_t?window.requestAnimationFrame(e):setTimeout(e,16),rl=e=>_t?window.cancelAnimationFrame(e):clearTimeout(e),wp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Il=e=>$R(e),Kr=e=>Object.keys(e),O1=e=>Object.entries(e),ri=(e,t,n)=>({get value(){return hn(e,t,n)},set value(o){c1(e,t,o)}});class LF extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function kn(e,t){throw new LF(`[${e}] ${t}`)}function rae(e,t){}const R1=(e="")=>e.split(" ").filter(t=>!!t.trim()),Na=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ko=(e,t)=>{!e||!t.trim()||e.classList.add(...R1(t))},eo=(e,t)=>{!e||!t.trim()||e.classList.remove(...R1(t))},sl=(e,t)=>{var n;if(!_t||!e||!t)return"";let o=Qd(t);o==="float"&&(o="cssFloat");try{const a=e.style[o];if(a)return a;const l=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return l?l[o]:""}catch(a){return e.style[o]}},x1=(e,t,n)=>{if(!(!e||!t))if(Rt(t))O1(t).forEach(([o,a])=>x1(e,o,a));else{const o=Qd(t);e.style[o]=n}};function rn(e,t="px"){if(!e&&e!==0)return"";if(xe(e)||PF(e))return`${e}${t}`;if(ze(e))return e}const DF=(e,t)=>{if(!_t)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=sl(e,n);return["scroll","auto","overlay"].some(a=>o.includes(a))},Cp=(e,t)=>{if(!_t)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(DF(n,t))return n;n=n.parentNode}return n};let Zu;const I1=e=>{var t;if(!_t)return 0;if(Zu!==void 0)return Zu;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const l=a.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Zu=o-l,Zu};function Sp(e,t){if(!_t)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const a=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),l=a+t.offsetHeight,r=e.scrollTop,i=r+e.clientHeight;a<r?e.scrollTop=a:l>i&&(e.scrollTop=l-e.clientHeight)}function BF(e,t,n,o,a){const l=Date.now();let r;const i=()=>{const c=Date.now()-l,d=yR(c>o?o:c,t,n,o);li(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,c<o?r=Ma(i):lt(a)&&a()};return i(),()=>{r&&rl(r)}}const M1=(e,t)=>li(t)?e.ownerDocument.documentElement:t,N1=e=>li(e)?window.scrollY:e.scrollTop,Ju=e=>{if(!_t||e==="")return null;if(ze(e))try{return document.querySelector(e)}catch(t){return null}return e};let A1=_t?document.body:void 0;function FF(e){const t=document.createElement("div");return e!==void 0&&t.setAttribute("id",e),A1&&A1.appendChild(t),t}function VF(e){e.remove()}var zF=le({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Aa=zF,HF=le({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),il=HF,WF=le({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),to=WF,KF=le({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Qu=KF,jF=le({name:"Back",__name:"back",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),W("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),YF=jF,UF=le({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),GF=UF,qF=le({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),P1=qF,XF=le({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),ZF=XF,JF=le({name:"Check",__name:"check",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),si=JF,QF=le({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),eV=QF,tV=le({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),W("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),kp=tV,nV=le({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Ep=nV,oV=le({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ul=oV,aV=le({name:"Clock",__name:"clock",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),W("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),W("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),L1=aV,lV=le({name:"Close",__name:"close",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),jo=lV,rV=le({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),Ml=rV,sV=le({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),Nl=sV,iV=le({name:"Delete",__name:"delete",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),uV=iV,cV=le({name:"Document",__name:"document",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),dV=cV,fV=le({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),pV=fV,vV=le({name:"Hide",__name:"hide",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),W("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),hV=vV,mV=le({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),ii=mV,gV=le({name:"Loading",__name:"loading",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),Pa=gV,bV=le({name:"Minus",__name:"minus",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),yV=bV,wV=le({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),D1=wV,CV=le({name:"More",__name:"more",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),SV=CV,kV=le({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),EV=kV,$V=le({name:"Plus",__name:"plus",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),B1=$V,_V=le({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),TV=_V,OV=le({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),RV=OV,xV=le({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),IV=xV,MV=le({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),NV=MV,AV=le({name:"Search",__name:"search",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),PV=AV,LV=le({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),DV=LV,BV=le({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),FV=BV,VV=le({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),ec=VV,zV=le({name:"Star",__name:"star",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),HV=zV,WV=le({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),F1=WV,KV=le({name:"View",__name:"view",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),jV=KV,YV=le({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),tc=YV,UV=le({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),V1=UV,GV=le({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),qV=GV;/*! Element Plus Icons Vue v2.3.2 */const z1="__epPropKey",G=e=>e,XV=e=>Rt(e)&&!!e[z1],ia=(e,t)=>{if(!Rt(e)||XV(e))return e;const{values:n,required:o,default:a,type:l,validator:r}=e,u={type:l,required:!!o,validator:n||r?c=>{let d=!1,f=[];if(n&&(f=Array.from(n),Ln(e,"default")&&f.push(a),d||(d=f.includes(c))),r&&(d||(d=r(c))),!d&&f.length>0){const v=[...new Set(f)].map(m=>JSON.stringify(m)).join(", ");KO(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${v}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[z1]:!0};return Ln(e,"default")&&(u.default=a),u},me=e=>Fr(Object.entries(e).map(([t,n])=>[t,ia(n,t)])),zt=G([String,Object,Function]),H1={Close:jo},$p={Close:jo,SuccessFilled:F1,InfoFilled:ii,WarningFilled:tc,CircleCloseFilled:Ep},Al={primary:ii,success:F1,warning:tc,error:Ep,info:ii},nc={validating:Pa,success:kp,error:ul},Qe=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t!=null?t:{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},W1=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),ZV=(e,t)=>(e.install=n=>{n.directive(t,e)},e),sn=e=>(e.install=Gt,e),_p=(...e)=>t=>{e.forEach(n=>{n.value=t})},K1=e=>["",...ta].includes(e);var Yo=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Yo||{});function Tp(e){return Jt(e)&&e.type===Fe}function JV(e){return Jt(e)&&e.type===Ua}function QV(e){return Jt(e)&&!Tp(e)&&!JV(e)}const ez=e=>{if(!Jt(e))return{};const t=e.props||{},n=(Jt(e.type)?e.type.props:void 0)||{},o={};return Object.keys(n).forEach(a=>{Ln(n[a],"default")&&(o[a]=n[a].default)}),Object.keys(t).forEach(a=>{o[Qd(a)]=t[a]}),o},ua=e=>{const t=Ee(e)?e:[e],n=[];return t.forEach(o=>{var a;Ee(o)?n.push(...ua(o)):Jt(o)&&((a=o.component)==null?void 0:a.subTree)?n.push(o,...ua(o.component.subTree)):Jt(o)&&Ee(o.children)?n.push(...ua(o.children)):Jt(o)&&o.shapeFlag===2?n.push(...ua(o.type())):n.push(o)}),n},j1=e=>[...new Set(e)],ui=e=>Ee(e)?e[0]:e,no=e=>!e&&e!==0?[]:Ee(e)?e:[e],tz=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),un=e=>e;function nz(e){let t=0;const n=(...o)=>{t&&rl(t),t=Ma(()=>{e(...o),t=0})};return n.cancel=()=>{rl(t),t=0},n}const oz=["class","style"],az=/^on[A-Z]/,ci=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=k(()=>((n==null?void 0:n.value)||[]).concat(oz)),a=it();return a?k(()=>{var l;return Fr(Object.entries((l=a.proxy)==null?void 0:l.$attrs).filter(([r])=>!o.value.includes(r)&&!(t&&az.test(r))))}):k(()=>({}))};function oc(){const e=Zt(),t=P(0),n=k(()=>({minWidth:`${Math.max(t.value,Ps)}px`}));return Qt(e,()=>{var a,l;t.value=(l=(a=e.value)==null?void 0:a.getBoundingClientRect().width)!=null?l:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const ca=({from:e,replacement:t,scope:n,version:o,ref:a,type:l="API"},r)=>{ue(()=>s(r),i=>{},{immediate:!0})},Op=(e,t,n,o)=>{const a={offsetX:0,offsetY:0},l=P(!1),r=(v,m)=>{if(e.value){const{offsetX:h,offsetY:p}=a,b=e.value.getBoundingClientRect(),g=b.left,w=b.top,C=b.width,y=b.height,S=document.documentElement.clientWidth,E=document.documentElement.clientHeight,_=-g+h,O=-w+p,N=S-g-C+h,R=E-w-(y<E?y:0)+p;o!=null&&o.value||(v=Math.min(Math.max(v,_),N),m=Math.min(Math.max(m,O),R)),a.offsetX=v,a.offsetY=m,e.value.style.transform=`translate(${rn(v)}, ${rn(m)})`}},i=v=>{const m=v.clientX,h=v.clientY,{offsetX:p,offsetY:b}=a,g=C=>{l.value||(l.value=!0);const y=p+C.clientX-m,S=b+C.clientY-h;r(y,S)},w=()=>{l.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",w)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",w)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",i),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",i),window.removeEventListener("resize",f))},d=()=>{a.offsetX=0,a.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:v,offsetY:m}=a;r(v,m)};return st(()=>{lo(()=>{n.value?u():c()})}),Dt(()=>{c()}),{isDragging:l,resetPosition:d,updatePosition:f}},lz=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var rz={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Y1=e=>(t,n)=>U1(t,n,s(e)),U1=(e,t,n)=>hn(n,e,e).replace(/\{(\w+)\}/g,(o,a)=>{var l;return`${(l=t==null?void 0:t[a])!=null?l:`{${a}}`}`}),G1=e=>{const t=k(()=>s(e).name),n=Kn(e)?e:P(e);return{lang:t,locale:n,t:Y1(e)}},Rp=Symbol("localeContextKey"),wt=e=>{const t=e||Te(Rp,P());return G1(k(()=>t.value||rz))},jr="el",sz="is-",rr=(e,t,n,o,a)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),o&&(l+=`__${o}`),a&&(l+=`--${a}`),l},xp=Symbol("namespaceContextKey"),ac=e=>{const t=e||(it()?Te(xp,P(jr)):P(jr));return k(()=>s(t)||jr)},de=(e,t)=>{const n=ac(t);return{namespace:n,b:(p="")=>rr(n.value,e,p,"",""),e:p=>p?rr(n.value,e,"",p,""):"",m:p=>p?rr(n.value,e,"","",p):"",be:(p,b)=>p&&b?rr(n.value,e,p,b,""):"",em:(p,b)=>p&&b?rr(n.value,e,"",p,b):"",bm:(p,b)=>p&&b?rr(n.value,e,p,"",b):"",bem:(p,b,g)=>p&&b&&g?rr(n.value,e,p,b,g):"",is:(p,...b)=>{const g=b.length>=1?b[0]:!0;return p&&g?`${sz}${p}`:""},cssVar:p=>{const b={};for(const g in p)p[g]&&(b[`--${n.value}-${g}`]=p[g]);return b},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const b={};for(const g in p)p[g]&&(b[`--${n.value}-${e}-${g}`]=p[g]);return b},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}},di=(e,t={})=>{Kn(e)||kn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||de("popup"),o=k(()=>n.bm("parent","hidden"));let a=0,l=!1,r="0",i=!1;const u=()=>{i||(i=!0,setTimeout(()=>{typeof document!="undefined"&&l&&document&&(document.body.style.width=r,eo(document.body,o.value))},200))};ue(e,c=>{if(!c){u();return}i=!1,l=!Na(document.body,o.value),l&&(r=document.body.style.width,Ko(document.body,o.value)),a=I1(n.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,f=sl(document.body,"overflowY");a>0&&(d||f==="scroll")&&l&&(document.body.style.width=`calc(100% - ${a}px)`)}),Tg(()=>u())},Yr=[],iz=e=>{if(Yr.length===0)return;Ht(e)===pe.esc&&(e.stopPropagation(),Yr[Yr.length-1].handleClose())},uz=(e,t)=>{ue(t,n=>{n?Yr.push(e):Yr.splice(Yr.indexOf(e),1)})};_t&&Mt(document,"keydown",iz);const cz=ia({type:G(Boolean),default:null}),dz=ia({type:G(Function)}),Ip=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],a={[e]:cz,[n]:dz};return{useModelToggle:({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const v=it(),{emit:m}=v,h=v.props,p=k(()=>lt(h[n])),b=k(()=>h[e]===null),g=_=>{r.value!==!0&&(r.value=!0,i&&(i.value=_),lt(d)&&d(_))},w=_=>{r.value!==!1&&(r.value=!1,i&&(i.value=_),lt(f)&&f(_))},C=_=>{if(h.disabled===!0||lt(c)&&!c())return;const O=p.value&&_t;O&&m(t,!0),(b.value||!O)&&g(_)},y=_=>{if(h.disabled===!0||!_t)return;const O=p.value&&_t;O&&m(t,!1),(b.value||!O)&&w(_)},S=_=>{!Vt(_)||(h.disabled&&_?p.value&&m(t,!1):r.value!==_&&(_?g():w()))},E=()=>{r.value?y():C()};return ue(()=>h[e],S),u&&v.appContext.config.globalProperties.$route!==void 0&&ue(()=>({...v.proxy.$route}),()=>{u.value&&r.value&&y()}),st(()=>{S(h[e])}),{hide:y,show:C,toggle:E,hasUpdateHandler:p}},useModelToggleProps:a,useModelToggleEmits:o}},{useModelToggle:fz,useModelToggleProps:pz,useModelToggleEmits:vz}=Ip("modelValue"),hz=(e,t,n)=>{const o=l=>{n(l)&&l.stopImmediatePropagation()};let a;ue(()=>e.value,l=>{l?a=Mt(document,t,o,!0):a==null||a()},{immediate:!0})},Mp=e=>{const t=it();return k(()=>{var n,o;return(o=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:o[e]})};var wo="top",Uo="bottom",Go="right",Co="left",Np="auto",fi=[wo,Uo,Go,Co],Ur="start",pi="end",mz="clippingParents",q1="viewport",vi="popper",gz="reference",X1=fi.reduce(function(e,t){return e.concat([t+"-"+Ur,t+"-"+pi])},[]),cl=[].concat(fi,[Np]).reduce(function(e,t){return e.concat([t,t+"-"+Ur,t+"-"+pi])},[]),bz="beforeRead",yz="read",wz="afterRead",Cz="beforeMain",Sz="main",kz="afterMain",Ez="beforeWrite",$z="write",_z="afterWrite",Tz=[bz,yz,wz,Cz,Sz,kz,Ez,$z,_z];function La(e){return e?(e.nodeName||"").toLowerCase():null}function da(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=da(e).Element;return e instanceof t||e instanceof Element}function qo(e){var t=da(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ap(e){if(typeof ShadowRoot=="undefined")return!1;var t=da(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Oz(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},a=t.attributes[n]||{},l=t.elements[n];!qo(l)||!La(l)||(Object.assign(l.style,o),Object.keys(a).forEach(function(r){var i=a[r];i===!1?l.removeAttribute(r):l.setAttribute(r,i===!0?"":i)}))})}function Rz(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var a=t.elements[o],l=t.attributes[o]||{},r=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),i=r.reduce(function(u,c){return u[c]="",u},{});!qo(a)||!La(a)||(Object.assign(a.style,i),Object.keys(l).forEach(function(u){a.removeAttribute(u)}))})}}var Z1={name:"applyStyles",enabled:!0,phase:"write",fn:Oz,effect:Rz,requires:["computeStyles"]};function Da(e){return e.split("-")[0]}var sr=Math.max,lc=Math.min,qr=Math.round;function Xr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if(qo(e)&&t){var l=e.offsetHeight,r=e.offsetWidth;r>0&&(o=qr(n.width)/r||1),l>0&&(a=qr(n.height)/l||1)}return{width:n.width/o,height:n.height/a,top:n.top/a,right:n.right/o,bottom:n.bottom/a,left:n.left/o,x:n.left/o,y:n.top/a}}function Pp(e){var t=Xr(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function J1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ap(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function dl(e){return da(e).getComputedStyle(e)}function xz(e){return["table","td","th"].indexOf(La(e))>=0}function Pl(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function rc(e){return La(e)==="html"?e:e.assignedSlot||e.parentNode||(Ap(e)?e.host:null)||Pl(e)}function Q1(e){return!qo(e)||dl(e).position==="fixed"?null:e.offsetParent}function Iz(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&qo(e)){var o=dl(e);if(o.position==="fixed")return null}var a=rc(e);for(Ap(a)&&(a=a.host);qo(a)&&["html","body"].indexOf(La(a))<0;){var l=dl(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function hi(e){for(var t=da(e),n=Q1(e);n&&xz(n)&&dl(n).position==="static";)n=Q1(n);return n&&(La(n)==="html"||La(n)==="body"&&dl(n).position==="static")?t:n||Iz(e)||t}function Lp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mi(e,t,n){return sr(e,lc(t,n))}function Mz(e,t,n){var o=mi(e,t,n);return o>n?n:o}function ew(){return{top:0,right:0,bottom:0,left:0}}function tw(e){return Object.assign({},ew(),e)}function nw(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var Nz=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,tw(typeof e!="number"?e:nw(e,fi))};function Az(e){var t,n=e.state,o=e.name,a=e.options,l=n.elements.arrow,r=n.modifiersData.popperOffsets,i=Da(n.placement),u=Lp(i),c=[Co,Go].indexOf(i)>=0,d=c?"height":"width";if(!(!l||!r)){var f=Nz(a.padding,n),v=Pp(l),m=u==="y"?wo:Co,h=u==="y"?Uo:Go,p=n.rects.reference[d]+n.rects.reference[u]-r[u]-n.rects.popper[d],b=r[u]-n.rects.reference[u],g=hi(l),w=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0,C=p/2-b/2,y=f[m],S=w-v[d]-f[h],E=w/2-v[d]/2+C,_=mi(y,E,S),O=u;n.modifiersData[o]=(t={},t[O]=_,t.centerOffset=_-E,t)}}function Pz(e){var t=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!J1(t.elements.popper,a)||(t.elements.arrow=a))}var Lz={name:"arrow",enabled:!0,phase:"main",fn:Az,effect:Pz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zr(e){return e.split("-")[1]}var Dz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bz(e){var t=e.x,n=e.y,o=window,a=o.devicePixelRatio||1;return{x:qr(t*a)/a||0,y:qr(n*a)/a||0}}function ow(e){var t,n=e.popper,o=e.popperRect,a=e.placement,l=e.variation,r=e.offsets,i=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,v=r.x,m=v===void 0?0:v,h=r.y,p=h===void 0?0:h,b=typeof d=="function"?d({x:m,y:p}):{x:m,y:p};m=b.x,p=b.y;var g=r.hasOwnProperty("x"),w=r.hasOwnProperty("y"),C=Co,y=wo,S=window;if(c){var E=hi(n),_="clientHeight",O="clientWidth";if(E===da(n)&&(E=Pl(n),dl(E).position!=="static"&&i==="absolute"&&(_="scrollHeight",O="scrollWidth")),E=E,a===wo||(a===Co||a===Go)&&l===pi){y=Uo;var N=f&&E===S&&S.visualViewport?S.visualViewport.height:E[_];p-=N-o.height,p*=u?1:-1}if(a===Co||(a===wo||a===Uo)&&l===pi){C=Go;var R=f&&E===S&&S.visualViewport?S.visualViewport.width:E[O];m-=R-o.width,m*=u?1:-1}}var A=Object.assign({position:i},c&&Dz),I=d===!0?Bz({x:m,y:p}):{x:m,y:p};if(m=I.x,p=I.y,u){var L;return Object.assign({},A,(L={},L[y]=w?"0":"",L[C]=g?"0":"",L.transform=(S.devicePixelRatio||1)<=1?"translate("+m+"px, "+p+"px)":"translate3d("+m+"px, "+p+"px, 0)",L))}return Object.assign({},A,(t={},t[y]=w?p+"px":"",t[C]=g?m+"px":"",t.transform="",t))}function Fz(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,l=n.adaptive,r=l===void 0?!0:l,i=n.roundOffsets,u=i===void 0?!0:i,c={placement:Da(t.placement),variation:Zr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ow(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ow(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var aw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fz,data:{}},sc={passive:!0};function Vz(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,l=a===void 0?!0:a,r=o.resize,i=r===void 0?!0:r,u=da(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(d){d.addEventListener("scroll",n.update,sc)}),i&&u.addEventListener("resize",n.update,sc),function(){l&&c.forEach(function(d){d.removeEventListener("scroll",n.update,sc)}),i&&u.removeEventListener("resize",n.update,sc)}}var lw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vz,data:{}},zz={left:"right",right:"left",bottom:"top",top:"bottom"};function ic(e){return e.replace(/left|right|bottom|top/g,function(t){return zz[t]})}var Hz={start:"end",end:"start"};function rw(e){return e.replace(/start|end/g,function(t){return Hz[t]})}function Dp(e){var t=da(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Bp(e){return Xr(Pl(e)).left+Dp(e).scrollLeft}function Wz(e){var t=da(e),n=Pl(e),o=t.visualViewport,a=n.clientWidth,l=n.clientHeight,r=0,i=0;return o&&(a=o.width,l=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=o.offsetLeft,i=o.offsetTop)),{width:a,height:l,x:r+Bp(e),y:i}}function Kz(e){var t,n=Pl(e),o=Dp(e),a=(t=e.ownerDocument)==null?void 0:t.body,l=sr(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),r=sr(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-o.scrollLeft+Bp(e),u=-o.scrollTop;return dl(a||n).direction==="rtl"&&(i+=sr(n.clientWidth,a?a.clientWidth:0)-l),{width:l,height:r,x:i,y:u}}function Fp(e){var t=dl(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function sw(e){return["html","body","#document"].indexOf(La(e))>=0?e.ownerDocument.body:qo(e)&&Fp(e)?e:sw(rc(e))}function gi(e,t){var n;t===void 0&&(t=[]);var o=sw(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),l=da(o),r=a?[l].concat(l.visualViewport||[],Fp(o)?o:[]):o,i=t.concat(r);return a?i:i.concat(gi(rc(r)))}function Vp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jz(e){var t=Xr(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function iw(e,t){return t===q1?Vp(Wz(e)):Gr(t)?jz(t):Vp(Kz(Pl(e)))}function Yz(e){var t=gi(rc(e)),n=["absolute","fixed"].indexOf(dl(e).position)>=0,o=n&&qo(e)?hi(e):e;return Gr(o)?t.filter(function(a){return Gr(a)&&J1(a,o)&&La(a)!=="body"}):[]}function Uz(e,t,n){var o=t==="clippingParents"?Yz(e):[].concat(t),a=[].concat(o,[n]),l=a[0],r=a.reduce(function(i,u){var c=iw(e,u);return i.top=sr(c.top,i.top),i.right=lc(c.right,i.right),i.bottom=lc(c.bottom,i.bottom),i.left=sr(c.left,i.left),i},iw(e,l));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function uw(e){var t=e.reference,n=e.element,o=e.placement,a=o?Da(o):null,l=o?Zr(o):null,r=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,u;switch(a){case wo:u={x:r,y:t.y-n.height};break;case Uo:u={x:r,y:t.y+t.height};break;case Go:u={x:t.x+t.width,y:i};break;case Co:u={x:t.x-n.width,y:i};break;default:u={x:t.x,y:t.y}}var c=a?Lp(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(l){case Ur:u[c]=u[c]-(t[d]/2-n[d]/2);break;case pi:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function bi(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=o===void 0?e.placement:o,l=n.boundary,r=l===void 0?mz:l,i=n.rootBoundary,u=i===void 0?q1:i,c=n.elementContext,d=c===void 0?vi:c,f=n.altBoundary,v=f===void 0?!1:f,m=n.padding,h=m===void 0?0:m,p=tw(typeof h!="number"?h:nw(h,fi)),b=d===vi?gz:vi,g=e.rects.popper,w=e.elements[v?b:d],C=Uz(Gr(w)?w:w.contextElement||Pl(e.elements.popper),r,u),y=Xr(e.elements.reference),S=uw({reference:y,element:g,strategy:"absolute",placement:a}),E=Vp(Object.assign({},g,S)),_=d===vi?E:y,O={top:C.top-_.top+p.top,bottom:_.bottom-C.bottom+p.bottom,left:C.left-_.left+p.left,right:_.right-C.right+p.right},N=e.modifiersData.offset;if(d===vi&&N){var R=N[a];Object.keys(O).forEach(function(A){var I=[Go,Uo].indexOf(A)>=0?1:-1,L=[wo,Uo].indexOf(A)>=0?"y":"x";O[A]+=R[L]*I})}return O}function Gz(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=n.boundary,l=n.rootBoundary,r=n.padding,i=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?cl:u,d=Zr(o),f=d?i?X1:X1.filter(function(h){return Zr(h)===d}):fi,v=f.filter(function(h){return c.indexOf(h)>=0});v.length===0&&(v=f);var m=v.reduce(function(h,p){return h[p]=bi(e,{placement:p,boundary:a,rootBoundary:l,padding:r})[Da(p)],h},{});return Object.keys(m).sort(function(h,p){return m[h]-m[p]})}function qz(e){if(Da(e)===Np)return[];var t=ic(e);return[rw(e),t,rw(t)]}function Xz(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var a=n.mainAxis,l=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!0:r,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,v=n.altBoundary,m=n.flipVariations,h=m===void 0?!0:m,p=n.allowedAutoPlacements,b=t.options.placement,g=Da(b),w=g===b,C=u||(w||!h?[ic(b)]:qz(b)),y=[b].concat(C).reduce(function(J,q){return J.concat(Da(q)===Np?Gz(t,{placement:q,boundary:d,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:p}):q)},[]),S=t.rects.reference,E=t.rects.popper,_=new Map,O=!0,N=y[0],R=0;R<y.length;R++){var A=y[R],I=Da(A),L=Zr(A)===Ur,H=[wo,Uo].indexOf(I)>=0,K=H?"width":"height",Y=bi(t,{placement:A,boundary:d,rootBoundary:f,altBoundary:v,padding:c}),M=H?L?Go:Co:L?Uo:wo;S[K]>E[K]&&(M=ic(M));var T=ic(M),D=[];if(l&&D.push(Y[I]<=0),i&&D.push(Y[M]<=0,Y[T]<=0),D.every(function(J){return J})){N=A,O=!1;break}_.set(A,D)}if(O)for(var B=h?3:1,z=function(J){var q=y.find(function(ae){var ie=_.get(ae);if(ie)return ie.slice(0,J).every(function(oe){return oe})});if(q)return N=q,"break"},U=B;U>0;U--){var V=z(U);if(V==="break")break}t.placement!==N&&(t.modifiersData[o]._skip=!0,t.placement=N,t.reset=!0)}}var Zz={name:"flip",enabled:!0,phase:"main",fn:Xz,requiresIfExists:["offset"],data:{_skip:!1}};function cw(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function dw(e){return[wo,Go,Uo,Co].some(function(t){return e[t]>=0})}function Jz(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,r=bi(t,{elementContext:"reference"}),i=bi(t,{altBoundary:!0}),u=cw(r,o),c=cw(i,a,l),d=dw(u),f=dw(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var Qz={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jz};function e5(e,t,n){var o=Da(e),a=[Co,wo].indexOf(o)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=l[0],i=l[1];return r=r||0,i=(i||0)*a,[Co,Go].indexOf(o)>=0?{x:i,y:r}:{x:r,y:i}}function t5(e){var t=e.state,n=e.options,o=e.name,a=n.offset,l=a===void 0?[0,0]:a,r=cl.reduce(function(d,f){return d[f]=e5(f,t.rects,l),d},{}),i=r[t.placement],u=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=r}var n5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:t5};function o5(e){var t=e.state,n=e.name;t.modifiersData[n]=uw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var fw={name:"popperOffsets",enabled:!0,phase:"read",fn:o5,data:{}};function a5(e){return e==="x"?"y":"x"}function l5(e){var t=e.state,n=e.options,o=e.name,a=n.mainAxis,l=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!1:r,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,v=n.tether,m=v===void 0?!0:v,h=n.tetherOffset,p=h===void 0?0:h,b=bi(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),g=Da(t.placement),w=Zr(t.placement),C=!w,y=Lp(g),S=a5(y),E=t.modifiersData.popperOffsets,_=t.rects.reference,O=t.rects.popper,N=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,R=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(E){if(l){var L,H=y==="y"?wo:Co,K=y==="y"?Uo:Go,Y=y==="y"?"height":"width",M=E[y],T=M+b[H],D=M-b[K],B=m?-O[Y]/2:0,z=w===Ur?_[Y]:O[Y],U=w===Ur?-O[Y]:-_[Y],V=t.elements.arrow,J=m&&V?Pp(V):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ew(),ae=q[H],ie=q[K],oe=mi(0,_[Y],J[Y]),fe=C?_[Y]/2-B-oe-ae-R.mainAxis:z-oe-ae-R.mainAxis,re=C?-_[Y]/2+B+oe+ie+R.mainAxis:U+oe+ie+R.mainAxis,j=t.elements.arrow&&hi(t.elements.arrow),se=j?y==="y"?j.clientTop||0:j.clientLeft||0:0,Se=(L=A==null?void 0:A[y])!=null?L:0,Ie=M+fe-Se-se,Le=M+re-Se,He=mi(m?lc(T,Ie):T,M,m?sr(D,Le):D);E[y]=He,I[y]=He-M}if(i){var We,tt=y==="x"?wo:Co,Tt=y==="x"?Uo:Go,Xe=E[S],Ae=S==="y"?"height":"width",Pe=Xe+b[tt],Ze=Xe-b[Tt],et=[wo,Co].indexOf(g)!==-1,gt=(We=A==null?void 0:A[S])!=null?We:0,vt=et?Pe:Xe-_[Ae]-O[Ae]-gt+R.altAxis,Ce=et?Xe+_[Ae]+O[Ae]-gt-R.altAxis:Ze,Ve=m&&et?Mz(vt,Xe,Ce):mi(m?vt:Pe,Xe,m?Ce:Ze);E[S]=Ve,I[S]=Ve-Xe}t.modifiersData[o]=I}}var r5={name:"preventOverflow",enabled:!0,phase:"main",fn:l5,requiresIfExists:["offset"]};function s5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function i5(e){return e===da(e)||!qo(e)?Dp(e):s5(e)}function u5(e){var t=e.getBoundingClientRect(),n=qr(t.width)/e.offsetWidth||1,o=qr(t.height)/e.offsetHeight||1;return n!==1||o!==1}function c5(e,t,n){n===void 0&&(n=!1);var o=qo(t),a=qo(t)&&u5(t),l=Pl(t),r=Xr(e,a),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&((La(t)!=="body"||Fp(l))&&(i=i5(t)),qo(t)?(u=Xr(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=Bp(l))),{x:r.left+i.scrollLeft-u.x,y:r.top+i.scrollTop-u.y,width:r.width,height:r.height}}function d5(e){var t=new Map,n=new Set,o=[];e.forEach(function(l){t.set(l.name,l)});function a(l){n.add(l.name);var r=[].concat(l.requires||[],l.requiresIfExists||[]);r.forEach(function(i){if(!n.has(i)){var u=t.get(i);u&&a(u)}}),o.push(l)}return e.forEach(function(l){n.has(l.name)||a(l)}),o}function f5(e){var t=d5(e);return Tz.reduce(function(n,o){return n.concat(t.filter(function(a){return a.phase===o}))},[])}function p5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function v5(e){var t=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var pw={placement:"bottom",modifiers:[],strategy:"absolute"};function vw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function zp(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,a=t.defaultOptions,l=a===void 0?pw:a;return function(r,i,u){u===void 0&&(u=l);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},pw,l),modifiersData:{},elements:{reference:r,popper:i},attributes:{},styles:{}},d=[],f=!1,v={state:c,setOptions:function(p){var b=typeof p=="function"?p(c.options):p;h(),c.options=Object.assign({},l,c.options,b),c.scrollParents={reference:Gr(r)?gi(r):r.contextElement?gi(r.contextElement):[],popper:gi(i)};var g=f5(v5([].concat(o,c.options.modifiers)));return c.orderedModifiers=g.filter(function(w){return w.enabled}),m(),v.update()},forceUpdate:function(){if(!f){var p=c.elements,b=p.reference,g=p.popper;if(vw(b,g)){c.rects={reference:c5(b,hi(g),c.options.strategy==="fixed"),popper:Pp(g)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(O){return c.modifiersData[O.name]=Object.assign({},O.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var C=c.orderedModifiers[w],y=C.fn,S=C.options,E=S===void 0?{}:S,_=C.name;typeof y=="function"&&(c=y({state:c,options:E,name:_,instance:v})||c)}}}},update:p5(function(){return new Promise(function(p){v.forceUpdate(),p(c)})}),destroy:function(){h(),f=!0}};if(!vw(r,i))return v;v.setOptions(u).then(function(p){!f&&u.onFirstUpdate&&u.onFirstUpdate(p)});function m(){c.orderedModifiers.forEach(function(p){var b=p.name,g=p.options,w=g===void 0?{}:g,C=p.effect;if(typeof C=="function"){var y=C({state:c,name:b,instance:v,options:w}),S=function(){};d.push(y||S)}})}function h(){d.forEach(function(p){return p()}),d=[]}return v}}zp();var h5=[lw,fw,aw,Z1];zp({defaultModifiers:h5});var m5=[lw,fw,aw,Z1,n5,Zz,r5,Lz,Qz],g5=zp({defaultModifiers:m5});const hw=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=b5(u);Object.assign(r.value,c)},requires:["computeStyles"]},a=k(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=s(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],o,{name:"applyStyles",enabled:!1}]}}),l=Zt(),r=P({styles:{popper:{position:s(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{!l.value||(l.value.destroy(),l.value=void 0)};return ue(a,u=>{const c=s(l);c&&c.setOptions(u)},{deep:!0}),ue([e,t],([u,c])=>{i(),!(!u||!c)&&(l.value=g5(u,c,s(a)))}),Dt(()=>{i()}),{state:k(()=>{var u;return{...((u=s(l))==null?void 0:u.state)||{}}}),styles:k(()=>s(r).styles),attributes:k(()=>s(r).attributes),update:()=>{var u;return(u=s(l))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=s(l))==null?void 0:u.forceUpdate()},instanceRef:k(()=>s(l))}};function b5(e){const t=Object.keys(e.elements),n=Fr(t.map(a=>[a,e.styles[a]||{}])),o=Fr(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:o}}const uc=e=>{if(!e)return{onClick:Gt,onMousedown:Gt,onMouseup:Gt};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}},y5=(e,t)=>{const n=P(!1);if(!_t)return{isTeleportVisible:n,showTeleport:Gt,hideTeleport:Gt,renderTeleport:Gt};let o=null;const a=()=>{n.value=!0,o===null&&(o=FF())},l=()=>{n.value=!1,o!==null&&(VF(o),o=null)},r=()=>t.value!==!0?e():n.value?[De(Og,{to:o},e())]:void 0;return Ms(l),{isTeleportVisible:n,showTeleport:a,hideTeleport:l,renderTeleport:r}},mw=(e,t=0)=>{if(t===0)return e;const n=Rt(t)&&Boolean(t.initVal),o=P(n);let a=null;const l=i=>{if($t(i)){o.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{o.value=e.value},i)},r=i=>{i==="leading"?xe(t)?l(t):l(t.leading):Rt(t)?l(t.trailing):o.value=!1};return st(()=>r("leading")),ue(()=>e.value,i=>{r(i?"leading":"trailing")}),o};function Hp(){let e;const t=(o,a)=>{n(),e=window.setTimeout(o,a)},n=()=>window.clearTimeout(e);return Zl(()=>n()),{registerTimeout:t,cancelTimeout:n}}const gw="after-appear",bw="after-enter",yw="after-leave",w5="appear",ww="appear-cancelled",Cw="before-enter",Sw="before-leave",kw="enter",Ew="enter-cancelled",$w="leave",_w="leave-cancelled",C5=[gw,bw,yw,w5,ww,Cw,Sw,kw,Ew,$w,_w],S5=()=>{const{emit:e}=it();return{onAfterAppear:()=>{e(gw)},onAfterEnter:()=>{e(bw)},onAfterLeave:()=>{e(yw)},onAppearCancelled:()=>{e(ww)},onBeforeEnter:()=>{e(Cw)},onBeforeLeave:()=>{e(Sw)},onEnter:()=>{e(kw)},onEnterCancelled:()=>{e(Ew)},onLeave:()=>{e($w)},onLeaveCancelled:()=>{e(_w)}}},Tw={prefix:Math.floor(Math.random()*1e4),current:0},Ow=Symbol("elIdInjection"),cc=()=>it()?Te(Ow,Tw):Tw,Bn=e=>{const t=cc(),n=ac();return Vg(()=>s(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Jr=[];const Rw=e=>{Ht(e)===pe.esc&&Jr.forEach(n=>n(e))},xw=e=>{st(()=>{Jr.length===0&&document.addEventListener("keydown",Rw),_t&&Jr.push(e)}),Dt(()=>{Jr=Jr.filter(t=>t!==e),Jr.length===0&&_t&&document.removeEventListener("keydown",Rw)})},Wp=()=>{const e=ac(),t=cc(),n=k(()=>`${e.value}-popper-container-${t.prefix}`),o=k(()=>`#${n.value}`);return{id:n,selector:o}},k5=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Iw=()=>{const{id:e,selector:t}=Wp();return Fd(()=>{!_t||document.body.querySelector(t.value)||k5(e.value)}),{id:e,selector:t}},E5=({indicator:e,intermediateIndicator:t,shouldSetIntermediate:n=()=>!0,beforeShow:o,afterShow:a,afterHide:l,beforeHide:r})=>{ue(()=>s(e),i=>{i?(o==null||o(),ke(()=>{!s(e)||n("show")&&(t.value=!0)})):(r==null||r(),ke(()=>{s(e)||n("hide")&&(t.value=!1)}))}),ue(()=>t.value,i=>{i?a==null||a():l==null||l()})},Mw=me({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Nw=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:a})=>{const{registerTimeout:l}=Hp(),{registerTimeout:r,cancelTimeout:i}=Hp();return{onOpen:(d,f=s(e))=>{l(()=>{o(d);const v=s(n);xe(v)&&v>0&&r(()=>{a(d)},v)},f)},onClose:(d,f=s(t))=>{i(),l(()=>{a(d)},f)}}},Kp=Symbol("elForwardRef"),Aw=e=>{St(Kp,{setForwardRef:n=>{e.value=n}})},Pw=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Lw={current:0},Dw=P(0),jp=2e3,Yp=Symbol("elZIndexContextKey"),Up=Symbol("zIndexContextKey"),Qr=e=>{const t=it()?Te(Yp,Lw):Lw,n=e||(it()?Te(Up,void 0):void 0),o=k(()=>{const r=s(n);return xe(r)?r:jp}),a=k(()=>o.value+Dw.value),l=()=>(t.current++,Dw.value=t.current,a.value);return!_t&&Te(Yp),{initialZIndex:o,currentZIndex:a,nextZIndex:l}},Bw=["top","right","bottom","left"],Fw=["start","end"],Vw=Bw.reduce((e,t)=>e.concat(t,t+"-"+Fw[0],t+"-"+Fw[1]),[]),fa=Math.min,oo=Math.max,dc=Math.round,fc=Math.floor,Ba=e=>({x:e,y:e}),$5={left:"right",right:"left",bottom:"top",top:"bottom"},_5={start:"end",end:"start"};function Gp(e,t,n){return oo(e,fa(t,n))}function pa(e,t){return typeof e=="function"?e(t):e}function Io(e){return e.split("-")[0]}function va(e){return e.split("-")[1]}function qp(e){return e==="x"?"y":"x"}function Xp(e){return e==="y"?"height":"width"}const T5=new Set(["top","bottom"]);function ha(e){return T5.has(Io(e))?"y":"x"}function Zp(e){return qp(ha(e))}function zw(e,t,n){n===void 0&&(n=!1);const o=va(e),a=Zp(e),l=Xp(a);let r=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=vc(r)),[r,vc(r)]}function O5(e){const t=vc(e);return[pc(e),t,pc(t)]}function pc(e){return e.replace(/start|end/g,t=>_5[t])}const Hw=["left","right"],Ww=["right","left"],R5=["top","bottom"],x5=["bottom","top"];function I5(e,t,n){switch(e){case"top":case"bottom":return n?t?Ww:Hw:t?Hw:Ww;case"left":case"right":return t?R5:x5;default:return[]}}function M5(e,t,n,o){const a=va(e);let l=I5(Io(e),n==="start",o);return a&&(l=l.map(r=>r+"-"+a),t&&(l=l.concat(l.map(pc)))),l}function vc(e){return e.replace(/left|right|bottom|top/g,t=>$5[t])}function N5(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jp(e){return typeof e!="number"?N5(e):{top:e,right:e,bottom:e,left:e}}function es(e){const{x:t,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:t,right:t+o,bottom:n+a,x:t,y:n}}function Kw(e,t,n){let{reference:o,floating:a}=e;const l=ha(t),r=Zp(t),i=Xp(r),u=Io(t),c=l==="y",d=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,v=o[i]/2-a[i]/2;let m;switch(u){case"top":m={x:d,y:o.y-a.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-a.width,y:f};break;default:m={x:o.x,y:o.y}}switch(va(t)){case"start":m[r]-=v*(n&&c?-1:1);break;case"end":m[r]+=v*(n&&c?-1:1);break}return m}const A5=async(e,t,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:l=[],platform:r}=n,i=l.filter(Boolean),u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:f}=Kw(c,o,u),v=o,m={},h=0;for(let p=0;p<i.length;p++){const{name:b,fn:g}=i[p],{x:w,y:C,data:y,reset:S}=await g({x:d,y:f,initialPlacement:o,placement:v,strategy:a,middlewareData:m,rects:c,platform:r,elements:{reference:e,floating:t}});d=w!=null?w:d,f=C!=null?C:f,m={...m,[b]:{...m[b],...y}},S&&h<=50&&(h++,typeof S=="object"&&(S.placement&&(v=S.placement),S.rects&&(c=S.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:a}):S.rects),{x:d,y:f}=Kw(c,v,u)),p=-1)}return{x:d,y:f,placement:v,strategy:a,middlewareData:m}};async function ir(e,t){var n;t===void 0&&(t={});const{x:o,y:a,platform:l,rects:r,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:v=!1,padding:m=0}=pa(t,e),h=Jp(m),b=i[v?f==="floating"?"reference":"floating":f],g=es(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(b)))==null||n?b:b.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),w=f==="floating"?{x:o,y:a,width:r.floating.width,height:r.floating.height}:r.reference,C=await(l.getOffsetParent==null?void 0:l.getOffsetParent(i.floating)),y=await(l.isElement==null?void 0:l.isElement(C))?await(l.getScale==null?void 0:l.getScale(C))||{x:1,y:1}:{x:1,y:1},S=es(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:C,strategy:u}):w);return{top:(g.top-S.top+h.top)/y.y,bottom:(S.bottom-g.bottom+h.bottom)/y.y,left:(g.left-S.left+h.left)/y.x,right:(S.right-g.right+h.right)/y.x}}const P5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:a,rects:l,platform:r,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=pa(e,t)||{};if(c==null)return{};const f=Jp(d),v={x:n,y:o},m=Zp(a),h=Xp(m),p=await r.getDimensions(c),b=m==="y",g=b?"top":"left",w=b?"bottom":"right",C=b?"clientHeight":"clientWidth",y=l.reference[h]+l.reference[m]-v[m]-l.floating[h],S=v[m]-l.reference[m],E=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let _=E?E[C]:0;(!_||!await(r.isElement==null?void 0:r.isElement(E)))&&(_=i.floating[C]||l.floating[h]);const O=y/2-S/2,N=_/2-p[h]/2-1,R=fa(f[g],N),A=fa(f[w],N),I=R,L=_-p[h]-A,H=_/2-p[h]/2+O,K=Gp(I,H,L),Y=!u.arrow&&va(a)!=null&&H!==K&&l.reference[h]/2-(H<I?R:A)-p[h]/2<0,M=Y?H<I?H-I:H-L:0;return{[m]:v[m]+M,data:{[m]:K,centerOffset:H-K-M,...Y&&{alignmentOffset:M}},reset:Y}}});function L5(e,t,n){return(e?[...n.filter(a=>va(a)===e),...n.filter(a=>va(a)!==e)]:n.filter(a=>Io(a)===a)).filter(a=>e?va(a)===e||(t?pc(a)!==a:!1):!0)}const D5=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,a;const{rects:l,middlewareData:r,placement:i,platform:u,elements:c}=t,{crossAxis:d=!1,alignment:f,allowedPlacements:v=Vw,autoAlignment:m=!0,...h}=pa(e,t),p=f!==void 0||v===Vw?L5(f||null,m,v):v,b=await ir(t,h),g=((n=r.autoPlacement)==null?void 0:n.index)||0,w=p[g];if(w==null)return{};const C=zw(w,l,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(i!==w)return{reset:{placement:p[0]}};const y=[b[Io(w)],b[C[0]],b[C[1]]],S=[...((o=r.autoPlacement)==null?void 0:o.overflows)||[],{placement:w,overflows:y}],E=p[g+1];if(E)return{data:{index:g+1,overflows:S},reset:{placement:E}};const _=S.map(R=>{const A=va(R.placement);return[R.placement,A&&d?R.overflows.slice(0,2).reduce((I,L)=>I+L,0):R.overflows[0],R.overflows]}).sort((R,A)=>R[1]-A[1]),N=((a=_.filter(R=>R[2].slice(0,va(R[0])?2:3).every(A=>A<=0))[0])==null?void 0:a[0])||_[0][0];return N!==i?{data:{index:g+1,overflows:S},reset:{placement:N}}:{}}}},B5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:a,middlewareData:l,rects:r,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...b}=pa(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const g=Io(a),w=ha(i),C=Io(i)===i,y=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=v||(C||!p?[vc(i)]:O5(i)),E=h!=="none";!v&&E&&S.push(...M5(i,p,h,y));const _=[i,...S],O=await ir(t,b),N=[];let R=((o=l.flip)==null?void 0:o.overflows)||[];if(d&&N.push(O[g]),f){const H=zw(a,r,y);N.push(O[H[0]],O[H[1]])}if(R=[...R,{placement:a,overflows:N}],!N.every(H=>H<=0)){var A,I;const H=(((A=l.flip)==null?void 0:A.index)||0)+1,K=_[H];if(K&&(!(f==="alignment"?w!==ha(K):!1)||R.every(T=>ha(T.placement)===w?T.overflows[0]>0:!0)))return{data:{index:H,overflows:R},reset:{placement:K}};let Y=(I=R.filter(M=>M.overflows[0]<=0).sort((M,T)=>M.overflows[1]-T.overflows[1])[0])==null?void 0:I.placement;if(!Y)switch(m){case"bestFit":{var L;const M=(L=R.filter(T=>{if(E){const D=ha(T.placement);return D===w||D==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(D=>D>0).reduce((D,B)=>D+B,0)]).sort((T,D)=>T[1]-D[1])[0])==null?void 0:L[0];M&&(Y=M);break}case"initialPlacement":Y=i;break}if(a!==Y)return{reset:{placement:Y}}}return{}}}};function jw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yw(e){return Bw.some(t=>e[t]>=0)}const F5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...a}=pa(e,t);switch(o){case"referenceHidden":{const l=await ir(t,{...a,elementContext:"reference"}),r=jw(l,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Yw(r)}}}case"escaped":{const l=await ir(t,{...a,altBoundary:!0}),r=jw(l,n.floating);return{data:{escapedOffsets:r,escaped:Yw(r)}}}default:return{}}}}};function Uw(e){const t=fa(...e.map(l=>l.left)),n=fa(...e.map(l=>l.top)),o=oo(...e.map(l=>l.right)),a=oo(...e.map(l=>l.bottom));return{x:t,y:n,width:o-t,height:a-n}}function V5(e){const t=e.slice().sort((a,l)=>a.y-l.y),n=[];let o=null;for(let a=0;a<t.length;a++){const l=t[a];!o||l.y-o.y>o.height/2?n.push([l]):n[n.length-1].push(l),o=l}return n.map(a=>es(Uw(a)))}const z5=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:a,platform:l,strategy:r}=t,{padding:i=2,x:u,y:c}=pa(e,t),d=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(o.reference))||[]),f=V5(d),v=es(Uw(d)),m=Jp(i);function h(){if(f.length===2&&f[0].left>f[1].right&&u!=null&&c!=null)return f.find(b=>u>b.left-m.left&&u<b.right+m.right&&c>b.top-m.top&&c<b.bottom+m.bottom)||v;if(f.length>=2){if(ha(n)==="y"){const R=f[0],A=f[f.length-1],I=Io(n)==="top",L=R.top,H=A.bottom,K=I?R.left:A.left,Y=I?R.right:A.right,M=Y-K,T=H-L;return{top:L,bottom:H,left:K,right:Y,width:M,height:T,x:K,y:L}}const b=Io(n)==="left",g=oo(...f.map(R=>R.right)),w=fa(...f.map(R=>R.left)),C=f.filter(R=>b?R.left===w:R.right===g),y=C[0].top,S=C[C.length-1].bottom,E=w,_=g,O=_-E,N=S-y;return{top:y,bottom:S,left:E,right:_,width:O,height:N,x:E,y}}return v}const p=await l.getElementRects({reference:{getBoundingClientRect:h},floating:o.floating,strategy:r});return a.reference.x!==p.reference.x||a.reference.y!==p.reference.y||a.reference.width!==p.reference.width||a.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},Gw=new Set(["left","top"]);async function H5(e,t){const{placement:n,platform:o,elements:a}=e,l=await(o.isRTL==null?void 0:o.isRTL(a.floating)),r=Io(n),i=va(n),u=ha(n)==="y",c=Gw.has(r)?-1:1,d=l&&u?-1:1,f=pa(t,e);let{mainAxis:v,crossAxis:m,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof h=="number"&&(m=i==="end"?h*-1:h),u?{x:m*d,y:v*c}:{x:v*c,y:m*d}}const W5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:a,y:l,placement:r,middlewareData:i}=t,u=await H5(t,e);return r===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:a+u.x,y:l+u.y,data:{...u,placement:r}}}}},K5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:a}=t,{mainAxis:l=!0,crossAxis:r=!1,limiter:i={fn:b=>{let{x:g,y:w}=b;return{x:g,y:w}}},...u}=pa(e,t),c={x:n,y:o},d=await ir(t,u),f=ha(Io(a)),v=qp(f);let m=c[v],h=c[f];if(l){const b=v==="y"?"top":"left",g=v==="y"?"bottom":"right",w=m+d[b],C=m-d[g];m=Gp(w,m,C)}if(r){const b=f==="y"?"top":"left",g=f==="y"?"bottom":"right",w=h+d[b],C=h-d[g];h=Gp(w,h,C)}const p=i.fn({...t,[v]:m,[f]:h});return{...p,data:{x:p.x-n,y:p.y-o,enabled:{[v]:l,[f]:r}}}}}},j5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:a,rects:l,middlewareData:r}=t,{offset:i=0,mainAxis:u=!0,crossAxis:c=!0}=pa(e,t),d={x:n,y:o},f=ha(a),v=qp(f);let m=d[v],h=d[f];const p=pa(i,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const C=v==="y"?"height":"width",y=l.reference[v]-l.floating[C]+b.mainAxis,S=l.reference[v]+l.reference[C]-b.mainAxis;m<y?m=y:m>S&&(m=S)}if(c){var g,w;const C=v==="y"?"width":"height",y=Gw.has(Io(a)),S=l.reference[f]-l.floating[C]+(y&&((g=r.offset)==null?void 0:g[f])||0)+(y?0:b.crossAxis),E=l.reference[f]+l.reference[C]+(y?0:((w=r.offset)==null?void 0:w[f])||0)-(y?b.crossAxis:0);h<S?h=S:h>E&&(h=E)}return{[v]:m,[f]:h}}}},Y5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:a,rects:l,platform:r,elements:i}=t,{apply:u=()=>{},...c}=pa(e,t),d=await ir(t,c),f=Io(a),v=va(a),m=ha(a)==="y",{width:h,height:p}=l.floating;let b,g;f==="top"||f==="bottom"?(b=f,g=v===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(g=f,b=v==="end"?"top":"bottom");const w=p-d.top-d.bottom,C=h-d.left-d.right,y=fa(p-d[b],w),S=fa(h-d[g],C),E=!t.middlewareData.shift;let _=y,O=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=C),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(_=w),E&&!v){const R=oo(d.left,0),A=oo(d.right,0),I=oo(d.top,0),L=oo(d.bottom,0);m?O=h-2*(R!==0||A!==0?R+A:oo(d.left,d.right)):_=p-2*(I!==0||L!==0?I+L:oo(d.top,d.bottom))}await u({...t,availableWidth:O,availableHeight:_});const N=await r.getDimensions(i.floating);return h!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function hc(){return typeof window!="undefined"}function ts(e){return qw(e)?(e.nodeName||"").toLowerCase():"#document"}function Mo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fa(e){var t;return(t=(qw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qw(e){return hc()?e instanceof Node||e instanceof Mo(e).Node:!1}function ma(e){return hc()?e instanceof Element||e instanceof Mo(e).Element:!1}function Va(e){return hc()?e instanceof HTMLElement||e instanceof Mo(e).HTMLElement:!1}function Xw(e){return!hc()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Mo(e).ShadowRoot}const U5=new Set(["inline","contents"]);function yi(e){const{overflow:t,overflowX:n,overflowY:o,display:a}=ga(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!U5.has(a)}const G5=new Set(["table","td","th"]);function q5(e){return G5.has(ts(e))}const X5=[":popover-open",":modal"];function mc(e){return X5.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const Z5=["transform","translate","scale","rotate","perspective"],J5=["transform","translate","scale","rotate","perspective","filter"],Q5=["paint","layout","strict","content"];function Qp(e){const t=ev(),n=ma(e)?ga(e):e;return Z5.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||J5.some(o=>(n.willChange||"").includes(o))||Q5.some(o=>(n.contain||"").includes(o))}function eH(e){let t=Ll(e);for(;Va(t)&&!ns(t);){if(Qp(t))return t;if(mc(t))return null;t=Ll(t)}return null}function ev(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tH=new Set(["html","body","#document"]);function ns(e){return tH.has(ts(e))}function ga(e){return Mo(e).getComputedStyle(e)}function gc(e){return ma(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ll(e){if(ts(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xw(e)&&e.host||Fa(e);return Xw(t)?t.host:t}function Zw(e){const t=Ll(e);return ns(t)?e.ownerDocument?e.ownerDocument.body:e.body:Va(t)&&yi(t)?t:Zw(t)}function wi(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Zw(e),l=a===((o=e.ownerDocument)==null?void 0:o.body),r=Mo(a);if(l){const i=tv(r);return t.concat(r,r.visualViewport||[],yi(a)?a:[],i&&n?wi(i):[])}return t.concat(a,wi(a,[],n))}function tv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jw(e){const t=ga(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=Va(e),l=a?e.offsetWidth:n,r=a?e.offsetHeight:o,i=dc(n)!==l||dc(o)!==r;return i&&(n=l,o=r),{width:n,height:o,$:i}}function nv(e){return ma(e)?e:e.contextElement}function os(e){const t=nv(e);if(!Va(t))return Ba(1);const n=t.getBoundingClientRect(),{width:o,height:a,$:l}=Jw(t);let r=(l?dc(n.width):n.width)/o,i=(l?dc(n.height):n.height)/a;return(!r||!Number.isFinite(r))&&(r=1),(!i||!Number.isFinite(i))&&(i=1),{x:r,y:i}}const nH=Ba(0);function Qw(e){const t=Mo(e);return!ev()||!t.visualViewport?nH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oH(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mo(e)?!1:t}function ur(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=nv(e);let r=Ba(1);t&&(o?ma(o)&&(r=os(o)):r=os(e));const i=oH(l,n,o)?Qw(l):Ba(0);let u=(a.left+i.x)/r.x,c=(a.top+i.y)/r.y,d=a.width/r.x,f=a.height/r.y;if(l){const v=Mo(l),m=o&&ma(o)?Mo(o):o;let h=v,p=tv(h);for(;p&&o&&m!==h;){const b=os(p),g=p.getBoundingClientRect(),w=ga(p),C=g.left+(p.clientLeft+parseFloat(w.paddingLeft))*b.x,y=g.top+(p.clientTop+parseFloat(w.paddingTop))*b.y;u*=b.x,c*=b.y,d*=b.x,f*=b.y,u+=C,c+=y,h=Mo(p),p=tv(h)}}return es({width:d,height:f,x:u,y:c})}function bc(e,t){const n=gc(e).scrollLeft;return t?t.left+n:ur(Fa(e)).left+n}function eC(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-bc(e,n),a=n.top+t.scrollTop;return{x:o,y:a}}function aH(e){let{elements:t,rect:n,offsetParent:o,strategy:a}=e;const l=a==="fixed",r=Fa(o),i=t?mc(t.floating):!1;if(o===r||i&&l)return n;let u={scrollLeft:0,scrollTop:0},c=Ba(1);const d=Ba(0),f=Va(o);if((f||!f&&!l)&&((ts(o)!=="body"||yi(r))&&(u=gc(o)),Va(o))){const m=ur(o);c=os(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}const v=r&&!f&&!l?eC(r,u):Ba(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+v.x,y:n.y*c.y-u.scrollTop*c.y+d.y+v.y}}function lH(e){return Array.from(e.getClientRects())}function rH(e){const t=Fa(e),n=gc(e),o=e.ownerDocument.body,a=oo(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=oo(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+bc(e);const i=-n.scrollTop;return ga(o).direction==="rtl"&&(r+=oo(t.clientWidth,o.clientWidth)-a),{width:a,height:l,x:r,y:i}}const tC=25;function sH(e,t){const n=Mo(e),o=Fa(e),a=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,i=0,u=0;if(a){l=a.width,r=a.height;const d=ev();(!d||d&&t==="fixed")&&(i=a.offsetLeft,u=a.offsetTop)}const c=bc(o);if(c<=0){const d=o.ownerDocument,f=d.body,v=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,h=Math.abs(o.clientWidth-f.clientWidth-m);h<=tC&&(l-=h)}else c<=tC&&(l+=c);return{width:l,height:r,x:i,y:u}}const iH=new Set(["absolute","fixed"]);function uH(e,t){const n=ur(e,!0,t==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,l=Va(e)?os(e):Ba(1),r=e.clientWidth*l.x,i=e.clientHeight*l.y,u=a*l.x,c=o*l.y;return{width:r,height:i,x:u,y:c}}function nC(e,t,n){let o;if(t==="viewport")o=sH(e,n);else if(t==="document")o=rH(Fa(e));else if(ma(t))o=uH(t,n);else{const a=Qw(e);o={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return es(o)}function oC(e,t){const n=Ll(e);return n===t||!ma(n)||ns(n)?!1:ga(n).position==="fixed"||oC(n,t)}function cH(e,t){const n=t.get(e);if(n)return n;let o=wi(e,[],!1).filter(i=>ma(i)&&ts(i)!=="body"),a=null;const l=ga(e).position==="fixed";let r=l?Ll(e):e;for(;ma(r)&&!ns(r);){const i=ga(r),u=Qp(r);!u&&i.position==="fixed"&&(a=null),(l?!u&&!a:!u&&i.position==="static"&&!!a&&iH.has(a.position)||yi(r)&&!u&&oC(e,r))?o=o.filter(d=>d!==r):a=i,r=Ll(r)}return t.set(e,o),o}function dH(e){let{element:t,boundary:n,rootBoundary:o,strategy:a}=e;const r=[...n==="clippingAncestors"?mc(t)?[]:cH(t,this._c):[].concat(n),o],i=r[0],u=r.reduce((c,d)=>{const f=nC(t,d,a);return c.top=oo(f.top,c.top),c.right=fa(f.right,c.right),c.bottom=fa(f.bottom,c.bottom),c.left=oo(f.left,c.left),c},nC(t,i,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function fH(e){const{width:t,height:n}=Jw(e);return{width:t,height:n}}function pH(e,t,n){const o=Va(t),a=Fa(t),l=n==="fixed",r=ur(e,!0,l,t);let i={scrollLeft:0,scrollTop:0};const u=Ba(0);function c(){u.x=bc(a)}if(o||!o&&!l)if((ts(t)!=="body"||yi(a))&&(i=gc(t)),o){const m=ur(t,!0,l,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else a&&c();l&&!o&&a&&c();const d=a&&!o&&!l?eC(a,i):Ba(0),f=r.left+i.scrollLeft-u.x-d.x,v=r.top+i.scrollTop-u.y-d.y;return{x:f,y:v,width:r.width,height:r.height}}function ov(e){return ga(e).position==="static"}function aC(e,t){if(!Va(e)||ga(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Fa(e)===n&&(n=n.ownerDocument.body),n}function lC(e,t){const n=Mo(e);if(mc(e))return n;if(!Va(e)){let a=Ll(e);for(;a&&!ns(a);){if(ma(a)&&!ov(a))return a;a=Ll(a)}return n}let o=aC(e,t);for(;o&&q5(o)&&ov(o);)o=aC(o,t);return o&&ns(o)&&ov(o)&&!Qp(o)?n:o||eH(e)||n}const vH=async function(e){const t=this.getOffsetParent||lC,n=this.getDimensions,o=await n(e.floating);return{reference:pH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function hH(e){return ga(e).direction==="rtl"}const mH={convertOffsetParentRelativeRectToViewportRelativeRect:aH,getDocumentElement:Fa,getClippingRect:dH,getOffsetParent:lC,getElementRects:vH,getClientRects:lH,getDimensions:fH,getScale:os,isElement:ma,isRTL:hH};function rC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gH(e,t){let n=null,o;const a=Fa(e);function l(){var i;clearTimeout(o),(i=n)==null||i.disconnect(),n=null}function r(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),l();const c=e.getBoundingClientRect(),{left:d,top:f,width:v,height:m}=c;if(i||t(),!v||!m)return;const h=fc(f),p=fc(a.clientWidth-(d+v)),b=fc(a.clientHeight-(f+m)),g=fc(d),C={rootMargin:-h+"px "+-p+"px "+-b+"px "+-g+"px",threshold:oo(0,fa(1,u))||1};let y=!0;function S(E){const _=E[0].intersectionRatio;if(_!==u){if(!y)return r();_?r(!1,_):o=setTimeout(()=>{r(!1,1e-7)},1e3)}_===1&&!rC(c,e.getBoundingClientRect())&&r(),y=!1}try{n=new IntersectionObserver(S,{...C,root:a.ownerDocument})}catch(E){n=new IntersectionObserver(S,C)}n.observe(e)}return r(!0),l}function bH(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,c=nv(e),d=a||l?[...c?wi(c):[],...wi(t)]:[];d.forEach(g=>{a&&g.addEventListener("scroll",n,{passive:!0}),l&&g.addEventListener("resize",n)});const f=c&&i?gH(c,n):null;let v=-1,m=null;r&&(m=new ResizeObserver(g=>{let[w]=g;w&&w.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let h,p=u?ur(e):null;u&&b();function b(){const g=ur(e);p&&!rC(p,g)&&n(),p=g,h=requestAnimationFrame(b)}return n(),()=>{var g;d.forEach(w=>{a&&w.removeEventListener("scroll",n),l&&w.removeEventListener("resize",n)}),f==null||f(),(g=m)==null||g.disconnect(),m=null,u&&cancelAnimationFrame(h)}}const yH=ir,wH=W5,CH=K5,SH=B5,sC=P5,iC=(e,t,n)=>{const o=new Map,a={platform:mH,...n},l={...a.platform,_c:o};return A5(e,t,{...a,platform:l})},kH=me({}),EH=e=>{if(!_t)return;if(!e)return e;const t=wn(e);return t||(Kn(e)?t:e)},$H=(e,t)=>{const n=e==null?void 0:e[t];return fn(n)?"":`${n}px`},_H=({middleware:e,placement:t,strategy:n})=>{const o=P(),a=P(),l=P(),r=P(),i=P({}),u={x:l,y:r,placement:t,strategy:n,middlewareData:i},c=async()=>{if(!_t)return;const d=EH(o),f=wn(a);if(!d||!f)return;const v=await iC(d,f,{placement:s(t),strategy:s(n),middleware:s(e)});Kr(u).forEach(m=>{u[m].value=v[m]})};return st(()=>{lo(()=>{c()})}),{...u,update:c,referenceRef:o,contentRef:a}},TH=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const o=s(e);return o?sC({element:o,padding:t}).fn(n):{}}});function uC(e){let t;function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:l,value:r}=e.value;if(a==null||l==null)return;const i=r.slice(0,Math.max(0,a)),u=r.slice(Math.max(0,l));t={selectionStart:a,selectionEnd:l,value:r,beforeTxt:i,afterTxt:u}}function o(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:l,afterTxt:r,selectionStart:i}=t;if(l==null||r==null||i==null)return;let u=a.length;if(a.endsWith(r))u=a.length-r.length;else if(a.startsWith(l))u=l.length;else{const c=l[i-1],d=a.indexOf(c,i-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,o]}const OH=(e,t,n)=>ua(e.subTree).filter(l=>{var r;return Jt(l)&&((r=l.type)==null?void 0:r.name)===t&&!!l.component}).map(l=>l.component.uid).map(l=>n[l]).filter(l=>!!l),Ci=(e,t)=>{const n=Zt({}),o=Zt([]),a=new WeakMap,l=d=>{n.value[d.uid]=d,uu(n),st(()=>{const f=d.getVnode().el,v=f.parentNode;if(!a.has(v)){a.set(v,[]);const m=v.insertBefore.bind(v);v.insertBefore=(h,p)=>(a.get(v).some(g=>h===g||p===g)&&uu(n),m(h,p))}a.get(v).push(f)})},r=d=>{delete n.value[d.uid],uu(n);const f=d.getVnode().el,v=f.parentNode,m=a.get(v),h=m.indexOf(f);m.splice(h,1)},i=()=>{o.value=OH(e,t,n.value)},u=d=>d.render(),c=le({setup(d,{slots:f}){return()=>(i(),f.default?De(u,{render:f.default}):null)}});return{children:o,addChild:l,removeChild:r,ChildrenSorter:c}},En=ia({type:String,values:ta,required:!1}),RH={size:En},av=Symbol("size"),lv=()=>{const e=Te(av,{});return k(()=>s(e.size)||"")};function za(e,{disabled:t,beforeFocus:n,afterFocus:o,beforeBlur:a,afterBlur:l}={}){const r=it(),{emit:i}=r,u=Zt(),c=P(!1),d=m=>{const h=lt(n)?n(m):!1;s(t)||c.value||h||(c.value=!0,i("focus",m),o==null||o())},f=m=>{var h;const p=lt(a)?a(m):!1;s(t)||m.relatedTarget&&((h=u.value)==null?void 0:h.contains(m.relatedTarget))||p||(c.value=!1,i("blur",m),l==null||l())},v=m=>{var h,p;s(t)||Ns(m.target)||((h=u.value)==null?void 0:h.contains(document.activeElement))&&u.value!==document.activeElement||(p=e.value)==null||p.focus()};return ue([u,()=>s(t)],([m,h])=>{!m||(h?m.removeAttribute("tabindex"):m.setAttribute("tabindex","-1"))}),Mt(u,"focus",d,!0),Mt(u,"blur",f,!0),Mt(u,"click",v,!0),{isFocused:c,wrapperRef:u,handleFocus:d,handleBlur:f}}function as({afterComposition:e,emit:t}){const n=P(!1),o=i=>{t==null||t("compositionstart",i),n.value=!0},a=i=>{var u;t==null||t("compositionupdate",i);const c=(u=i.target)==null?void 0:u.value,d=c[c.length-1]||"";n.value=!tz(d)},l=i=>{t==null||t("compositionend",i),n.value&&(n.value=!1,ke(()=>e(i)))};return{isComposing:n,handleComposition:i=>{i.type==="compositionend"?l(i):a(i)},handleCompositionStart:o,handleCompositionUpdate:a,handleCompositionEnd:l}}const rv=Symbol("emptyValuesContextKey"),xH="use-empty-values",cC=["",void 0,null],dC=void 0,Dl=me({emptyValues:Array,valueOnClear:{type:G([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=lt(e)?e():e,Ee(e)?e.every(t=>!t):!e)}}),ls=(e,t)=>{const n=it()?Te(rv,P({})):P({}),o=k(()=>e.emptyValues||n.value.emptyValues||cC),a=k(()=>lt(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:lt(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:dC),l=r=>{let i=!0;return Ee(r)?i=o.value.some(u=>ln(r,u)):i=o.value.includes(r),i};return l(a.value),{emptyValues:o,valueOnClear:a,isEmptyValue:l}},fC=me({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Yn=e=>xa(fC,e),sv=Symbol(),yc=P();function cr(e,t=void 0){const n=it()?Te(sv,yc):yc;return e?k(()=>{var o,a;return(a=(o=n.value)==null?void 0:o[e])!=null?a:t}):n}function Si(e,t){const n=cr(),o=de(e,k(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||jr})),a=wt(k(()=>{var i;return(i=n.value)==null?void 0:i.locale})),l=Qr(k(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||jp})),r=k(()=>{var i;return s(t)||((i=n.value)==null?void 0:i.size)||""});return wc(k(()=>s(n)||{})),{ns:o,locale:a,zIndex:l,size:r}}const wc=(e,t,n=!1)=>{var o;const a=!!it(),l=a?cr():void 0,r=(o=t==null?void 0:t.provide)!=null?o:a?St:void 0;if(!r)return;const i=k(()=>{const u=s(e);return l!=null&&l.value?IH(l.value,u):u});return r(sv,i),r(Rp,k(()=>i.value.locale)),r(xp,k(()=>i.value.namespace)),r(Up,k(()=>i.value.zIndex)),r(av,{size:k(()=>i.value.size||"")}),r(rv,k(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!yc.value)&&(yc.value=i.value),i},IH=(e,t)=>{const n=[...new Set([...Kr(e),...Kr(t)])],o={};for(const a of n)o[a]=t[a]!==void 0?t[a]:e[a];return o},pC=me({a11y:{type:Boolean,default:!0},locale:{type:G(Object)},size:En,button:{type:G(Object)},card:{type:G(Object)},dialog:{type:G(Object)},link:{type:G(Object)},experimentalFeatures:{type:G(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:G(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Dl}),Un={placement:"top"},MH=le({name:"ElConfigProvider",props:pC,setup(e,{slots:t}){const n=wc(e);return ue(()=>e.message,o=>{var a,l;Object.assign(Un,(l=(a=n==null?void 0:n.value)==null?void 0:a.message)!=null?l:{},o!=null?o:{})},{immediate:!0,deep:!0}),()=>ee(t,"default",{config:n==null?void 0:n.value})}}),vC=Qe(MH),NH="0.0.20251228",hC=(e=[])=>({version:NH,install:(n,o)=>{n[Hd]||(n[Hd]=!0,e.forEach(a=>n.use(a)),o&&wc(o,n,!0))}}),ki=me({to:{type:G([String,Object]),required:!0},disabled:Boolean});var ye=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n};const AH=le({__name:"teleport",props:ki,setup(e){return(t,n)=>t.disabled?ee(t.$slots,"default",{key:0}):($(),ne(Og,{key:1,to:t.to},[ee(t.$slots,"default")],8,["to"]))}});var PH=ye(AH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);const LH=Qe(PH);var rs=LH;const mC=me({zIndex:{type:G([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:ki.to.type,default:"body"}}),gC={scroll:({scrollTop:e,fixed:t})=>xe(e)&&Vt(t),[ft]:e=>Vt(e)},bC="ElAffix",DH=le({name:bC,__name:"affix",props:mC,emits:gC,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("affix"),r=Zt(),i=Zt(),u=Zt(),{height:c}=Gd(),{height:d,width:f,top:v,bottom:m,left:h,update:p}=Yg(i,{windowScroll:!1}),b=Yg(r),g=P(!1),w=P(0),C=P(0),y=k(()=>!o.teleported||!g.value),S=k(()=>({height:g.value?`${d.value}px`:"",width:g.value?`${f.value}px`:""})),E=k(()=>{if(!g.value)return{};const R=rn(o.offset);return{height:`${d.value}px`,width:`${f.value}px`,top:o.position==="top"?R:"",bottom:o.position==="bottom"?R:"",left:o.teleported?`${h.value}px`:"",transform:C.value?`translateY(${C.value}px)`:"",zIndex:o.zIndex}}),_=()=>{if(!u.value)return;w.value=u.value instanceof Window?document.documentElement.scrollTop:u.value.scrollTop||0;const{position:R,target:A,offset:I}=o,L=I+d.value;if(R==="top")if(A){const H=b.bottom.value-L;g.value=I>v.value&&b.bottom.value>0,C.value=H<0?H:0}else g.value=I>v.value;else if(A){const H=c.value-b.top.value-L;g.value=c.value-I<m.value&&c.value>b.top.value,C.value=H<0?-H:0}else g.value=c.value-I<m.value},O=async()=>{if(!g.value){p();return}g.value=!1,await ke(),p(),g.value=!0},N=async()=>{p(),await ke(),a("scroll",{scrollTop:w.value,fixed:g.value})};return ue(g,R=>a(ft,R)),st(()=>{var R;o.target?(r.value=(R=document.querySelector(o.target))!=null?R:void 0,r.value||kn(bC,`Target does not exist: ${o.target}`)):r.value=document.documentElement,u.value=Cp(i.value,!0),p()}),Mt(u,"scroll",N),lo(_),t({update:_,updateRoot:O}),(R,A)=>($(),F("div",{ref_key:"root",ref:i,class:x(s(l).b()),style:Ne(S.value)},[X(s(rs),{disabled:y.value,to:R.appendTo},{default:Q(()=>[W("div",{class:x({[s(l).m("fixed")]:g.value}),style:Ne(E.value)},[ee(R.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}});var BH=ye(DH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const yC=Qe(BH),wC=me({size:{type:G([Number,String])},color:{type:String}}),FH=le({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:wC,setup(e){const t=e,n=de("icon"),o=k(()=>{const{size:a,color:l}=t,r=rn(a);return!r&&!l?{}:{fontSize:r,"--color":l}});return(a,l)=>($(),F("i",rt({class:s(n).b(),style:o.value},a.$attrs),[ee(a.$slots,"default")],16))}});var VH=ye(FH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const $e=Qe(VH),CC=["light","dark"],SC=me({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Kr(Al),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:CC,default:"light"},showAfter:Number,hideAfter:Number,autoClose:Number}),kC={close:e=>e instanceof MouseEvent},zH=le({name:"ElAlert",__name:"alert",props:SC,emits:kC,setup(e,{emit:t}){const{Close:n}=$p,o=e,a=t,l=$n(),r=de("alert"),i=P(!0),u=k(()=>Al[o.type]),c=k(()=>!!(o.description||l.default)),d=f=>{i.value=!1,a("close",f)};return o.showAfter||o.hideAfter||o.autoClose,(f,v)=>($(),ne(zn,{name:s(r).b("fade"),persisted:""},{default:Q(()=>[ot(W("div",{class:x([s(r).b(),s(r).m(f.type),s(r).is("center",f.center),s(r).is(f.effect)]),role:"alert"},[f.showIcon&&(f.$slots.icon||u.value)?($(),ne(s($e),{key:0,class:x([s(r).e("icon"),s(r).is("big",c.value)])},{default:Q(()=>[ee(f.$slots,"icon",{},()=>[($(),ne(at(u.value)))])]),_:3},8,["class"])):te("v-if",!0),W("div",{class:x(s(r).e("content"))},[f.title||f.$slots.title?($(),F("span",{key:0,class:x([s(r).e("title"),{"with-description":c.value}])},[ee(f.$slots,"title",{},()=>[Ct(ge(f.title),1)])],2)):te("v-if",!0),c.value?($(),F("p",{key:1,class:x(s(r).e("description"))},[ee(f.$slots,"default",{},()=>[Ct(ge(f.description),1)])],2)):te("v-if",!0),f.closable?($(),F(Fe,{key:2},[f.closeText?($(),F("div",{key:0,class:x([s(r).e("close-btn"),s(r).is("customed")]),onClick:d},ge(f.closeText),3)):($(),ne(s($e),{key:1,class:x(s(r).e("close-btn")),onClick:d},{default:Q(()=>[X(s(n))]),_:1},8,["class"]))],64)):te("v-if",!0)],2)],2),[[xt,i.value]])]),_:3},8,["name"]))}});var HH=ye(zH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const EC=Qe(HH),Bl=Symbol("formContextKey"),ba=Symbol("formItemContextKey"),bn=(e,t={})=>{const n=P(void 0),o=t.prop?n:Mp("size"),a=t.global?n:lv(),l=t.form?{size:void 0}:Te(Bl,void 0),r=t.formItem?{size:void 0}:Te(ba,void 0);return k(()=>o.value||s(e)||(r==null?void 0:r.size)||(l==null?void 0:l.size)||a.value||"")},nn=e=>{const t=Mp("disabled"),n=Te(Bl,void 0);return k(()=>{var o,a,l;return(l=(a=(o=t.value)!=null?o:s(e))!=null?a:n==null?void 0:n.disabled)!=null?l:!1})},WH=bn,KH=nn,An=()=>{const e=Te(Bl,void 0),t=Te(ba,void 0);return{form:e,formItem:t}},So=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=P(!1)),o||(o=P(!1));const a=it(),l=()=>{let c=a==null?void 0:a.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},r=P();let i;const u=k(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return st(()=>{i=ue([Ft(e,"id"),n],([c,d])=>{const f=c!=null?c:d?void 0:Bn().value;f!==r.value&&((t==null?void 0:t.removeInputId)&&!l()&&(r.value&&t.removeInputId(r.value),!(o!=null&&o.value)&&!d&&f&&t.addInputId(f)),r.value=f)},{immediate:!0})}),Ms(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:u,inputId:r}},$C=me({size:{type:String,values:ta},disabled:Boolean}),_C=me({...$C,model:Object,rules:{type:G(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:G([Object,Boolean]),default:!0}}),TC={validate:(e,t,n)=>(Ee(e)||ze(e))&&Vt(t)&&ze(n)};function jH(){const e=P([]),t=k(()=>{if(!e.value.length)return"0";const l=Math.max(...e.value);return l?`${l}px`:""});function n(l){const r=e.value.indexOf(l);return r===-1&&t.value,r}function o(l,r){if(l&&r){const i=n(r);e.value.splice(i,1,l)}else l&&e.value.push(l)}function a(l){const r=n(l);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:a}}const Cc=(e,t)=>{const n=Nn(t).map(o=>Ee(o)?o.join("."):o);return n.length>0?e.filter(o=>o.propString&&n.includes(o.propString)):e},YH="ElForm",UH=le({name:YH,__name:"form",props:_C,emits:TC,setup(e,{expose:t,emit:n}){const o=e,a=n,l=P(),r=Lt([]),i=bn(),u=de("form"),c=k(()=>{const{labelPosition:S,inline:E}=o;return[u.b(),u.m(i.value||"default"),{[u.m(`label-${S}`)]:S,[u.m("inline")]:E}]}),d=S=>Cc(r,[S])[0],f=S=>{r.push(S)},v=S=>{S.prop&&r.splice(r.indexOf(S),1)},m=(S=[])=>{!o.model||Cc(r,S).forEach(E=>E.resetField())},h=(S=[])=>{Cc(r,S).forEach(E=>E.clearValidate())},p=k(()=>!!o.model),b=S=>{if(r.length===0)return[];const E=Cc(r,S);return E.length?E:[]},g=async S=>C(void 0,S),w=async(S=[])=>{if(!p.value)return!1;const E=b(S);if(E.length===0)return!0;let _={};for(const O of E)try{await O.validate(""),O.validateState==="error"&&!O.error&&O.resetField()}catch(N){_={..._,...N}}return Object.keys(_).length===0?!0:Promise.reject(_)},C=async(S=[],E)=>{let _=!1;const O=!lt(E);try{return _=await w(S),_===!0&&await(E==null?void 0:E(_)),_}catch(N){if(N instanceof Error)throw N;const R=N;if(o.scrollToError&&l.value){const A=l.value.querySelector(`.${u.b()}-item.is-error`);A==null||A.scrollIntoView(o.scrollIntoViewOptions)}return!_&&await(E==null?void 0:E(!1,R)),O&&Promise.reject(R)}},y=S=>{var E;const _=d(S);_&&((E=_.$el)==null||E.scrollIntoView(o.scrollIntoViewOptions))};return ue(()=>o.rules,()=>{o.validateOnRuleChange&&g().catch(S=>void 0)},{deep:!0,flush:"post"}),St(Bl,Lt({...In(o),emit:a,resetFields:m,clearValidate:h,validateField:C,getField:d,addField:f,removeField:v,...jH()})),t({validate:g,validateField:C,resetFields:m,clearValidate:h,scrollToField:y,getField:d,fields:r}),(S,E)=>($(),F("form",{ref_key:"formRef",ref:l,class:x(c.value)},[ee(S.$slots,"default")],2))}});var GH=ye(UH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dr.apply(this,arguments)}function qH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ei(e,t)}function iv(e){return iv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},iv(e)}function Ei(e,t){return Ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},Ei(e,t)}function XH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Sc(e,t,n){return XH()?Sc=Reflect.construct.bind():Sc=function(a,l,r){var i=[null];i.push.apply(i,l);var u=Function.bind.apply(a,i),c=new u;return r&&Ei(c,r.prototype),c},Sc.apply(null,arguments)}function ZH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function uv(e){var t=typeof Map=="function"?new Map:void 0;return uv=function(o){if(o===null||!ZH(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(o))return t.get(o);t.set(o,a)}function a(){return Sc(o,arguments,iv(this).constructor)}return a.prototype=Object.create(o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ei(a,o)},uv(e)}var JH=/%[sdj%]/g,QH=function(){};typeof process!="undefined"&&process.env;function cv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function No(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var a=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var r=e.replace(JH,function(i){if(i==="%%")return"%";if(a>=l)return i;switch(i){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch(u){return"[Circular]"}break;default:return i}});return r}return e}function eW(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Fn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||eW(t)&&typeof e=="string"&&!e)}function tW(e,t,n){var o=[],a=0,l=e.length;function r(i){o.push.apply(o,i||[]),a++,a===l&&n(o)}e.forEach(function(i){t(i,r)})}function OC(e,t,n){var o=0,a=e.length;function l(r){if(r&&r.length){n(r);return}var i=o;o=o+1,i<a?t(e[i],l):n([])}l([])}function nW(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var RC=function(e){qH(t,e);function t(n,o){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=n,a.fields=o,a}return t}(uv(Error));function oW(e,t,n,o,a){if(t.first){var l=new Promise(function(v,m){var h=function(g){return o(g),g.length?m(new RC(g,cv(g))):v(a)},p=nW(e);OC(p,n,h)});return l.catch(function(v){return v}),l}var r=t.firstFields===!0?Object.keys(e):t.firstFields||[],i=Object.keys(e),u=i.length,c=0,d=[],f=new Promise(function(v,m){var h=function(b){if(d.push.apply(d,b),c++,c===u)return o(d),d.length?m(new RC(d,cv(d))):v(a)};i.length||(o(d),v(a)),i.forEach(function(p){var b=e[p];r.indexOf(p)!==-1?OC(b,n,h):tW(b,n,h)})});return f.catch(function(v){return v}),f}function aW(e){return!!(e&&e.message!==void 0)}function lW(e,t){for(var n=e,o=0;o<t.length;o++){if(n==null)return n;n=n[t[o]]}return n}function xC(e,t){return function(n){var o;return e.fullFields?o=lW(t,e.fullFields):o=t[n.field||e.fullField],aW(n)?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:typeof n=="function"?n():n,fieldValue:o,field:n.field||e.fullField}}}function IC(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];typeof o=="object"&&typeof e[n]=="object"?e[n]=dr({},e[n],o):e[n]=o}}return e}var MC=function(t,n,o,a,l,r){t.required&&(!o.hasOwnProperty(t.field)||Fn(n,r||t.type))&&a.push(No(l.messages.required,t.fullField))},rW=function(t,n,o,a,l){(/^\s+$/.test(n)||n==="")&&a.push(No(l.messages.whitespace,t.fullField))},kc,sW=function(){if(kc)return kc;var e="[a-fA-F\\d:]",t=function(y){return y&&y.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",a=(`
|
|
32
|
+
*/const $t=e=>e===void 0,Vt=e=>typeof e=="boolean",xe=e=>typeof e=="number",co=e=>!e&&e!==0||Ee(e)&&e.length===0||Rt(e)&&!Object.keys(e).length,bo=e=>typeof Element=="undefined"?!1:e instanceof Element,yo=e=>fn(e),PF=e=>ze(e)?!Number.isNaN(Number(e)):!1,li=e=>e===window,Ma=e=>_t?window.requestAnimationFrame(e):setTimeout(e,16),rl=e=>_t?window.cancelAnimationFrame(e):clearTimeout(e),wp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Il=e=>$R(e),Kr=e=>Object.keys(e),O1=e=>Object.entries(e),ri=(e,t,n)=>({get value(){return hn(e,t,n)},set value(o){c1(e,t,o)}});class LF extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function kn(e,t){throw new LF(`[${e}] ${t}`)}function rae(e,t){}const R1=(e="")=>e.split(" ").filter(t=>!!t.trim()),Na=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ko=(e,t)=>{!e||!t.trim()||e.classList.add(...R1(t))},eo=(e,t)=>{!e||!t.trim()||e.classList.remove(...R1(t))},sl=(e,t)=>{var n;if(!_t||!e||!t)return"";let o=Qd(t);o==="float"&&(o="cssFloat");try{const a=e.style[o];if(a)return a;const l=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return l?l[o]:""}catch(a){return e.style[o]}},x1=(e,t,n)=>{if(!(!e||!t))if(Rt(t))O1(t).forEach(([o,a])=>x1(e,o,a));else{const o=Qd(t);e.style[o]=n}};function rn(e,t="px"){if(!e&&e!==0)return"";if(xe(e)||PF(e))return`${e}${t}`;if(ze(e))return e}const DF=(e,t)=>{if(!_t)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=sl(e,n);return["scroll","auto","overlay"].some(a=>o.includes(a))},Cp=(e,t)=>{if(!_t)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(DF(n,t))return n;n=n.parentNode}return n};let Zu;const I1=e=>{var t;if(!_t)return 0;if(Zu!==void 0)return Zu;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const l=a.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Zu=o-l,Zu};function Sp(e,t){if(!_t)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const a=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),l=a+t.offsetHeight,r=e.scrollTop,i=r+e.clientHeight;a<r?e.scrollTop=a:l>i&&(e.scrollTop=l-e.clientHeight)}function BF(e,t,n,o,a){const l=Date.now();let r;const i=()=>{const c=Date.now()-l,d=yR(c>o?o:c,t,n,o);li(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,c<o?r=Ma(i):lt(a)&&a()};return i(),()=>{r&&rl(r)}}const M1=(e,t)=>li(t)?e.ownerDocument.documentElement:t,N1=e=>li(e)?window.scrollY:e.scrollTop,Ju=e=>{if(!_t||e==="")return null;if(ze(e))try{return document.querySelector(e)}catch(t){return null}return e};let A1=_t?document.body:void 0;function FF(e){const t=document.createElement("div");return e!==void 0&&t.setAttribute("id",e),A1&&A1.appendChild(t),t}function VF(e){e.remove()}var zF=le({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Aa=zF,HF=le({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),il=HF,WF=le({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),to=WF,KF=le({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Qu=KF,jF=le({name:"Back",__name:"back",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),W("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),YF=jF,UF=le({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),GF=UF,qF=le({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),P1=qF,XF=le({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),ZF=XF,JF=le({name:"Check",__name:"check",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),si=JF,QF=le({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),eV=QF,tV=le({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),W("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),kp=tV,nV=le({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Ep=nV,oV=le({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ul=oV,aV=le({name:"Clock",__name:"clock",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),W("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),W("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),L1=aV,lV=le({name:"Close",__name:"close",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),jo=lV,rV=le({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),Ml=rV,sV=le({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),Nl=sV,iV=le({name:"Delete",__name:"delete",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),uV=iV,cV=le({name:"Document",__name:"document",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),dV=cV,fV=le({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),pV=fV,vV=le({name:"Hide",__name:"hide",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),W("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),hV=vV,mV=le({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),ii=mV,gV=le({name:"Loading",__name:"loading",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),Pa=gV,bV=le({name:"Minus",__name:"minus",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),yV=bV,wV=le({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),D1=wV,CV=le({name:"More",__name:"more",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),SV=CV,kV=le({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),EV=kV,$V=le({name:"Plus",__name:"plus",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),B1=$V,_V=le({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),TV=_V,OV=le({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),RV=OV,xV=le({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),IV=xV,MV=le({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),NV=MV,AV=le({name:"Search",__name:"search",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),PV=AV,LV=le({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),DV=LV,BV=le({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),FV=BV,VV=le({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),ec=VV,zV=le({name:"Star",__name:"star",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),HV=zV,WV=le({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),F1=WV,KV=le({name:"View",__name:"view",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),jV=KV,YV=le({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),tc=YV,UV=le({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),V1=UV,GV=le({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>($(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),qV=GV;/*! Element Plus Icons Vue v2.3.2 */const z1="__epPropKey",G=e=>e,XV=e=>Rt(e)&&!!e[z1],ia=(e,t)=>{if(!Rt(e)||XV(e))return e;const{values:n,required:o,default:a,type:l,validator:r}=e,u={type:l,required:!!o,validator:n||r?c=>{let d=!1,f=[];if(n&&(f=Array.from(n),Ln(e,"default")&&f.push(a),d||(d=f.includes(c))),r&&(d||(d=r(c))),!d&&f.length>0){const v=[...new Set(f)].map(m=>JSON.stringify(m)).join(", ");KO(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${v}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[z1]:!0};return Ln(e,"default")&&(u.default=a),u},me=e=>Fr(Object.entries(e).map(([t,n])=>[t,ia(n,t)])),zt=G([String,Object,Function]),H1={Close:jo},$p={Close:jo,SuccessFilled:F1,InfoFilled:ii,WarningFilled:tc,CircleCloseFilled:Ep},Al={primary:ii,success:F1,warning:tc,error:Ep,info:ii},nc={validating:Pa,success:kp,error:ul},Qe=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t!=null?t:{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},W1=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),ZV=(e,t)=>(e.install=n=>{n.directive(t,e)},e),sn=e=>(e.install=Gt,e),_p=(...e)=>t=>{e.forEach(n=>{n.value=t})},K1=e=>["",...ta].includes(e);var Yo=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Yo||{});function Tp(e){return Jt(e)&&e.type===Fe}function JV(e){return Jt(e)&&e.type===Ua}function QV(e){return Jt(e)&&!Tp(e)&&!JV(e)}const ez=e=>{if(!Jt(e))return{};const t=e.props||{},n=(Jt(e.type)?e.type.props:void 0)||{},o={};return Object.keys(n).forEach(a=>{Ln(n[a],"default")&&(o[a]=n[a].default)}),Object.keys(t).forEach(a=>{o[Qd(a)]=t[a]}),o},ua=e=>{const t=Ee(e)?e:[e],n=[];return t.forEach(o=>{var a;Ee(o)?n.push(...ua(o)):Jt(o)&&((a=o.component)==null?void 0:a.subTree)?n.push(o,...ua(o.component.subTree)):Jt(o)&&Ee(o.children)?n.push(...ua(o.children)):Jt(o)&&o.shapeFlag===2?n.push(...ua(o.type())):n.push(o)}),n},j1=e=>[...new Set(e)],ui=e=>Ee(e)?e[0]:e,no=e=>!e&&e!==0?[]:Ee(e)?e:[e],tz=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),un=e=>e;function nz(e){let t=0;const n=(...o)=>{t&&rl(t),t=Ma(()=>{e(...o),t=0})};return n.cancel=()=>{rl(t),t=0},n}const oz=["class","style"],az=/^on[A-Z]/,ci=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=k(()=>((n==null?void 0:n.value)||[]).concat(oz)),a=it();return a?k(()=>{var l;return Fr(Object.entries((l=a.proxy)==null?void 0:l.$attrs).filter(([r])=>!o.value.includes(r)&&!(t&&az.test(r))))}):k(()=>({}))};function oc(){const e=Zt(),t=P(0),n=k(()=>({minWidth:`${Math.max(t.value,Ps)}px`}));return Qt(e,()=>{var a,l;t.value=(l=(a=e.value)==null?void 0:a.getBoundingClientRect().width)!=null?l:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const ca=({from:e,replacement:t,scope:n,version:o,ref:a,type:l="API"},r)=>{ue(()=>s(r),i=>{},{immediate:!0})},Op=(e,t,n,o)=>{const a={offsetX:0,offsetY:0},l=P(!1),r=(v,m)=>{if(e.value){const{offsetX:h,offsetY:p}=a,b=e.value.getBoundingClientRect(),g=b.left,w=b.top,C=b.width,y=b.height,S=document.documentElement.clientWidth,E=document.documentElement.clientHeight,_=-g+h,O=-w+p,N=S-g-C+h,R=E-w-(y<E?y:0)+p;o!=null&&o.value||(v=Math.min(Math.max(v,_),N),m=Math.min(Math.max(m,O),R)),a.offsetX=v,a.offsetY=m,e.value.style.transform=`translate(${rn(v)}, ${rn(m)})`}},i=v=>{const m=v.clientX,h=v.clientY,{offsetX:p,offsetY:b}=a,g=C=>{l.value||(l.value=!0);const y=p+C.clientX-m,S=b+C.clientY-h;r(y,S)},w=()=>{l.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",w)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",w)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",i),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",i),window.removeEventListener("resize",f))},d=()=>{a.offsetX=0,a.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:v,offsetY:m}=a;r(v,m)};return st(()=>{lo(()=>{n.value?u():c()})}),Dt(()=>{c()}),{isDragging:l,resetPosition:d,updatePosition:f}},lz=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var rz={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Y1=e=>(t,n)=>U1(t,n,s(e)),U1=(e,t,n)=>hn(n,e,e).replace(/\{(\w+)\}/g,(o,a)=>{var l;return`${(l=t==null?void 0:t[a])!=null?l:`{${a}}`}`}),G1=e=>{const t=k(()=>s(e).name),n=Kn(e)?e:P(e);return{lang:t,locale:n,t:Y1(e)}},Rp=Symbol("localeContextKey"),wt=e=>{const t=e||Te(Rp,P());return G1(k(()=>t.value||rz))},jr="el",sz="is-",rr=(e,t,n,o,a)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),o&&(l+=`__${o}`),a&&(l+=`--${a}`),l},xp=Symbol("namespaceContextKey"),ac=e=>{const t=e||(it()?Te(xp,P(jr)):P(jr));return k(()=>s(t)||jr)},de=(e,t)=>{const n=ac(t);return{namespace:n,b:(p="")=>rr(n.value,e,p,"",""),e:p=>p?rr(n.value,e,"",p,""):"",m:p=>p?rr(n.value,e,"","",p):"",be:(p,b)=>p&&b?rr(n.value,e,p,b,""):"",em:(p,b)=>p&&b?rr(n.value,e,"",p,b):"",bm:(p,b)=>p&&b?rr(n.value,e,p,"",b):"",bem:(p,b,g)=>p&&b&&g?rr(n.value,e,p,b,g):"",is:(p,...b)=>{const g=b.length>=1?b[0]:!0;return p&&g?`${sz}${p}`:""},cssVar:p=>{const b={};for(const g in p)p[g]&&(b[`--${n.value}-${g}`]=p[g]);return b},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const b={};for(const g in p)p[g]&&(b[`--${n.value}-${e}-${g}`]=p[g]);return b},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}},di=(e,t={})=>{Kn(e)||kn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||de("popup"),o=k(()=>n.bm("parent","hidden"));let a=0,l=!1,r="0",i=!1;const u=()=>{i||(i=!0,setTimeout(()=>{typeof document!="undefined"&&l&&document&&(document.body.style.width=r,eo(document.body,o.value))},200))};ue(e,c=>{if(!c){u();return}i=!1,l=!Na(document.body,o.value),l&&(r=document.body.style.width,Ko(document.body,o.value)),a=I1(n.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,f=sl(document.body,"overflowY");a>0&&(d||f==="scroll")&&l&&(document.body.style.width=`calc(100% - ${a}px)`)}),Tg(()=>u())},Yr=[],iz=e=>{if(Yr.length===0)return;Ht(e)===pe.esc&&(e.stopPropagation(),Yr[Yr.length-1].handleClose())},uz=(e,t)=>{ue(t,n=>{n?Yr.push(e):Yr.splice(Yr.indexOf(e),1)})};_t&&Mt(document,"keydown",iz);const cz=ia({type:G(Boolean),default:null}),dz=ia({type:G(Function)}),Ip=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],a={[e]:cz,[n]:dz};return{useModelToggle:({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const v=it(),{emit:m}=v,h=v.props,p=k(()=>lt(h[n])),b=k(()=>h[e]===null),g=_=>{r.value!==!0&&(r.value=!0,i&&(i.value=_),lt(d)&&d(_))},w=_=>{r.value!==!1&&(r.value=!1,i&&(i.value=_),lt(f)&&f(_))},C=_=>{if(h.disabled===!0||lt(c)&&!c())return;const O=p.value&&_t;O&&m(t,!0),(b.value||!O)&&g(_)},y=_=>{if(h.disabled===!0||!_t)return;const O=p.value&&_t;O&&m(t,!1),(b.value||!O)&&w(_)},S=_=>{!Vt(_)||(h.disabled&&_?p.value&&m(t,!1):r.value!==_&&(_?g():w()))},E=()=>{r.value?y():C()};return ue(()=>h[e],S),u&&v.appContext.config.globalProperties.$route!==void 0&&ue(()=>({...v.proxy.$route}),()=>{u.value&&r.value&&y()}),st(()=>{S(h[e])}),{hide:y,show:C,toggle:E,hasUpdateHandler:p}},useModelToggleProps:a,useModelToggleEmits:o}},{useModelToggle:fz,useModelToggleProps:pz,useModelToggleEmits:vz}=Ip("modelValue"),hz=(e,t,n)=>{const o=l=>{n(l)&&l.stopImmediatePropagation()};let a;ue(()=>e.value,l=>{l?a=Mt(document,t,o,!0):a==null||a()},{immediate:!0})},Mp=e=>{const t=it();return k(()=>{var n,o;return(o=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:o[e]})};var wo="top",Uo="bottom",Go="right",Co="left",Np="auto",fi=[wo,Uo,Go,Co],Ur="start",pi="end",mz="clippingParents",q1="viewport",vi="popper",gz="reference",X1=fi.reduce(function(e,t){return e.concat([t+"-"+Ur,t+"-"+pi])},[]),cl=[].concat(fi,[Np]).reduce(function(e,t){return e.concat([t,t+"-"+Ur,t+"-"+pi])},[]),bz="beforeRead",yz="read",wz="afterRead",Cz="beforeMain",Sz="main",kz="afterMain",Ez="beforeWrite",$z="write",_z="afterWrite",Tz=[bz,yz,wz,Cz,Sz,kz,Ez,$z,_z];function La(e){return e?(e.nodeName||"").toLowerCase():null}function da(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=da(e).Element;return e instanceof t||e instanceof Element}function qo(e){var t=da(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ap(e){if(typeof ShadowRoot=="undefined")return!1;var t=da(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Oz(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},a=t.attributes[n]||{},l=t.elements[n];!qo(l)||!La(l)||(Object.assign(l.style,o),Object.keys(a).forEach(function(r){var i=a[r];i===!1?l.removeAttribute(r):l.setAttribute(r,i===!0?"":i)}))})}function Rz(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var a=t.elements[o],l=t.attributes[o]||{},r=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),i=r.reduce(function(u,c){return u[c]="",u},{});!qo(a)||!La(a)||(Object.assign(a.style,i),Object.keys(l).forEach(function(u){a.removeAttribute(u)}))})}}var Z1={name:"applyStyles",enabled:!0,phase:"write",fn:Oz,effect:Rz,requires:["computeStyles"]};function Da(e){return e.split("-")[0]}var sr=Math.max,lc=Math.min,qr=Math.round;function Xr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;if(qo(e)&&t){var l=e.offsetHeight,r=e.offsetWidth;r>0&&(o=qr(n.width)/r||1),l>0&&(a=qr(n.height)/l||1)}return{width:n.width/o,height:n.height/a,top:n.top/a,right:n.right/o,bottom:n.bottom/a,left:n.left/o,x:n.left/o,y:n.top/a}}function Pp(e){var t=Xr(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function J1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ap(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function dl(e){return da(e).getComputedStyle(e)}function xz(e){return["table","td","th"].indexOf(La(e))>=0}function Pl(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function rc(e){return La(e)==="html"?e:e.assignedSlot||e.parentNode||(Ap(e)?e.host:null)||Pl(e)}function Q1(e){return!qo(e)||dl(e).position==="fixed"?null:e.offsetParent}function Iz(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&qo(e)){var o=dl(e);if(o.position==="fixed")return null}var a=rc(e);for(Ap(a)&&(a=a.host);qo(a)&&["html","body"].indexOf(La(a))<0;){var l=dl(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function hi(e){for(var t=da(e),n=Q1(e);n&&xz(n)&&dl(n).position==="static";)n=Q1(n);return n&&(La(n)==="html"||La(n)==="body"&&dl(n).position==="static")?t:n||Iz(e)||t}function Lp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mi(e,t,n){return sr(e,lc(t,n))}function Mz(e,t,n){var o=mi(e,t,n);return o>n?n:o}function ew(){return{top:0,right:0,bottom:0,left:0}}function tw(e){return Object.assign({},ew(),e)}function nw(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var Nz=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,tw(typeof e!="number"?e:nw(e,fi))};function Az(e){var t,n=e.state,o=e.name,a=e.options,l=n.elements.arrow,r=n.modifiersData.popperOffsets,i=Da(n.placement),u=Lp(i),c=[Co,Go].indexOf(i)>=0,d=c?"height":"width";if(!(!l||!r)){var f=Nz(a.padding,n),v=Pp(l),m=u==="y"?wo:Co,h=u==="y"?Uo:Go,p=n.rects.reference[d]+n.rects.reference[u]-r[u]-n.rects.popper[d],b=r[u]-n.rects.reference[u],g=hi(l),w=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0,C=p/2-b/2,y=f[m],S=w-v[d]-f[h],E=w/2-v[d]/2+C,_=mi(y,E,S),O=u;n.modifiersData[o]=(t={},t[O]=_,t.centerOffset=_-E,t)}}function Pz(e){var t=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!J1(t.elements.popper,a)||(t.elements.arrow=a))}var Lz={name:"arrow",enabled:!0,phase:"main",fn:Az,effect:Pz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zr(e){return e.split("-")[1]}var Dz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bz(e){var t=e.x,n=e.y,o=window,a=o.devicePixelRatio||1;return{x:qr(t*a)/a||0,y:qr(n*a)/a||0}}function ow(e){var t,n=e.popper,o=e.popperRect,a=e.placement,l=e.variation,r=e.offsets,i=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,v=r.x,m=v===void 0?0:v,h=r.y,p=h===void 0?0:h,b=typeof d=="function"?d({x:m,y:p}):{x:m,y:p};m=b.x,p=b.y;var g=r.hasOwnProperty("x"),w=r.hasOwnProperty("y"),C=Co,y=wo,S=window;if(c){var E=hi(n),_="clientHeight",O="clientWidth";if(E===da(n)&&(E=Pl(n),dl(E).position!=="static"&&i==="absolute"&&(_="scrollHeight",O="scrollWidth")),E=E,a===wo||(a===Co||a===Go)&&l===pi){y=Uo;var N=f&&E===S&&S.visualViewport?S.visualViewport.height:E[_];p-=N-o.height,p*=u?1:-1}if(a===Co||(a===wo||a===Uo)&&l===pi){C=Go;var R=f&&E===S&&S.visualViewport?S.visualViewport.width:E[O];m-=R-o.width,m*=u?1:-1}}var A=Object.assign({position:i},c&&Dz),I=d===!0?Bz({x:m,y:p}):{x:m,y:p};if(m=I.x,p=I.y,u){var L;return Object.assign({},A,(L={},L[y]=w?"0":"",L[C]=g?"0":"",L.transform=(S.devicePixelRatio||1)<=1?"translate("+m+"px, "+p+"px)":"translate3d("+m+"px, "+p+"px, 0)",L))}return Object.assign({},A,(t={},t[y]=w?p+"px":"",t[C]=g?m+"px":"",t.transform="",t))}function Fz(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,l=n.adaptive,r=l===void 0?!0:l,i=n.roundOffsets,u=i===void 0?!0:i,c={placement:Da(t.placement),variation:Zr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ow(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ow(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var aw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fz,data:{}},sc={passive:!0};function Vz(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,l=a===void 0?!0:a,r=o.resize,i=r===void 0?!0:r,u=da(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(d){d.addEventListener("scroll",n.update,sc)}),i&&u.addEventListener("resize",n.update,sc),function(){l&&c.forEach(function(d){d.removeEventListener("scroll",n.update,sc)}),i&&u.removeEventListener("resize",n.update,sc)}}var lw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vz,data:{}},zz={left:"right",right:"left",bottom:"top",top:"bottom"};function ic(e){return e.replace(/left|right|bottom|top/g,function(t){return zz[t]})}var Hz={start:"end",end:"start"};function rw(e){return e.replace(/start|end/g,function(t){return Hz[t]})}function Dp(e){var t=da(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Bp(e){return Xr(Pl(e)).left+Dp(e).scrollLeft}function Wz(e){var t=da(e),n=Pl(e),o=t.visualViewport,a=n.clientWidth,l=n.clientHeight,r=0,i=0;return o&&(a=o.width,l=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=o.offsetLeft,i=o.offsetTop)),{width:a,height:l,x:r+Bp(e),y:i}}function Kz(e){var t,n=Pl(e),o=Dp(e),a=(t=e.ownerDocument)==null?void 0:t.body,l=sr(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),r=sr(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-o.scrollLeft+Bp(e),u=-o.scrollTop;return dl(a||n).direction==="rtl"&&(i+=sr(n.clientWidth,a?a.clientWidth:0)-l),{width:l,height:r,x:i,y:u}}function Fp(e){var t=dl(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function sw(e){return["html","body","#document"].indexOf(La(e))>=0?e.ownerDocument.body:qo(e)&&Fp(e)?e:sw(rc(e))}function gi(e,t){var n;t===void 0&&(t=[]);var o=sw(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),l=da(o),r=a?[l].concat(l.visualViewport||[],Fp(o)?o:[]):o,i=t.concat(r);return a?i:i.concat(gi(rc(r)))}function Vp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jz(e){var t=Xr(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function iw(e,t){return t===q1?Vp(Wz(e)):Gr(t)?jz(t):Vp(Kz(Pl(e)))}function Yz(e){var t=gi(rc(e)),n=["absolute","fixed"].indexOf(dl(e).position)>=0,o=n&&qo(e)?hi(e):e;return Gr(o)?t.filter(function(a){return Gr(a)&&J1(a,o)&&La(a)!=="body"}):[]}function Uz(e,t,n){var o=t==="clippingParents"?Yz(e):[].concat(t),a=[].concat(o,[n]),l=a[0],r=a.reduce(function(i,u){var c=iw(e,u);return i.top=sr(c.top,i.top),i.right=lc(c.right,i.right),i.bottom=lc(c.bottom,i.bottom),i.left=sr(c.left,i.left),i},iw(e,l));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function uw(e){var t=e.reference,n=e.element,o=e.placement,a=o?Da(o):null,l=o?Zr(o):null,r=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,u;switch(a){case wo:u={x:r,y:t.y-n.height};break;case Uo:u={x:r,y:t.y+t.height};break;case Go:u={x:t.x+t.width,y:i};break;case Co:u={x:t.x-n.width,y:i};break;default:u={x:t.x,y:t.y}}var c=a?Lp(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(l){case Ur:u[c]=u[c]-(t[d]/2-n[d]/2);break;case pi:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function bi(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=o===void 0?e.placement:o,l=n.boundary,r=l===void 0?mz:l,i=n.rootBoundary,u=i===void 0?q1:i,c=n.elementContext,d=c===void 0?vi:c,f=n.altBoundary,v=f===void 0?!1:f,m=n.padding,h=m===void 0?0:m,p=tw(typeof h!="number"?h:nw(h,fi)),b=d===vi?gz:vi,g=e.rects.popper,w=e.elements[v?b:d],C=Uz(Gr(w)?w:w.contextElement||Pl(e.elements.popper),r,u),y=Xr(e.elements.reference),S=uw({reference:y,element:g,strategy:"absolute",placement:a}),E=Vp(Object.assign({},g,S)),_=d===vi?E:y,O={top:C.top-_.top+p.top,bottom:_.bottom-C.bottom+p.bottom,left:C.left-_.left+p.left,right:_.right-C.right+p.right},N=e.modifiersData.offset;if(d===vi&&N){var R=N[a];Object.keys(O).forEach(function(A){var I=[Go,Uo].indexOf(A)>=0?1:-1,L=[wo,Uo].indexOf(A)>=0?"y":"x";O[A]+=R[L]*I})}return O}function Gz(e,t){t===void 0&&(t={});var n=t,o=n.placement,a=n.boundary,l=n.rootBoundary,r=n.padding,i=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?cl:u,d=Zr(o),f=d?i?X1:X1.filter(function(h){return Zr(h)===d}):fi,v=f.filter(function(h){return c.indexOf(h)>=0});v.length===0&&(v=f);var m=v.reduce(function(h,p){return h[p]=bi(e,{placement:p,boundary:a,rootBoundary:l,padding:r})[Da(p)],h},{});return Object.keys(m).sort(function(h,p){return m[h]-m[p]})}function qz(e){if(Da(e)===Np)return[];var t=ic(e);return[rw(e),t,rw(t)]}function Xz(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var a=n.mainAxis,l=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!0:r,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,v=n.altBoundary,m=n.flipVariations,h=m===void 0?!0:m,p=n.allowedAutoPlacements,b=t.options.placement,g=Da(b),w=g===b,C=u||(w||!h?[ic(b)]:qz(b)),y=[b].concat(C).reduce(function(J,q){return J.concat(Da(q)===Np?Gz(t,{placement:q,boundary:d,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:p}):q)},[]),S=t.rects.reference,E=t.rects.popper,_=new Map,O=!0,N=y[0],R=0;R<y.length;R++){var A=y[R],I=Da(A),L=Zr(A)===Ur,H=[wo,Uo].indexOf(I)>=0,K=H?"width":"height",Y=bi(t,{placement:A,boundary:d,rootBoundary:f,altBoundary:v,padding:c}),M=H?L?Go:Co:L?Uo:wo;S[K]>E[K]&&(M=ic(M));var T=ic(M),D=[];if(l&&D.push(Y[I]<=0),i&&D.push(Y[M]<=0,Y[T]<=0),D.every(function(J){return J})){N=A,O=!1;break}_.set(A,D)}if(O)for(var B=h?3:1,z=function(J){var q=y.find(function(ae){var ie=_.get(ae);if(ie)return ie.slice(0,J).every(function(oe){return oe})});if(q)return N=q,"break"},U=B;U>0;U--){var V=z(U);if(V==="break")break}t.placement!==N&&(t.modifiersData[o]._skip=!0,t.placement=N,t.reset=!0)}}var Zz={name:"flip",enabled:!0,phase:"main",fn:Xz,requiresIfExists:["offset"],data:{_skip:!1}};function cw(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function dw(e){return[wo,Go,Uo,Co].some(function(t){return e[t]>=0})}function Jz(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,r=bi(t,{elementContext:"reference"}),i=bi(t,{altBoundary:!0}),u=cw(r,o),c=cw(i,a,l),d=dw(u),f=dw(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var Qz={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jz};function e5(e,t,n){var o=Da(e),a=[Co,wo].indexOf(o)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=l[0],i=l[1];return r=r||0,i=(i||0)*a,[Co,Go].indexOf(o)>=0?{x:i,y:r}:{x:r,y:i}}function t5(e){var t=e.state,n=e.options,o=e.name,a=n.offset,l=a===void 0?[0,0]:a,r=cl.reduce(function(d,f){return d[f]=e5(f,t.rects,l),d},{}),i=r[t.placement],u=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=r}var n5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:t5};function o5(e){var t=e.state,n=e.name;t.modifiersData[n]=uw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var fw={name:"popperOffsets",enabled:!0,phase:"read",fn:o5,data:{}};function a5(e){return e==="x"?"y":"x"}function l5(e){var t=e.state,n=e.options,o=e.name,a=n.mainAxis,l=a===void 0?!0:a,r=n.altAxis,i=r===void 0?!1:r,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,v=n.tether,m=v===void 0?!0:v,h=n.tetherOffset,p=h===void 0?0:h,b=bi(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),g=Da(t.placement),w=Zr(t.placement),C=!w,y=Lp(g),S=a5(y),E=t.modifiersData.popperOffsets,_=t.rects.reference,O=t.rects.popper,N=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,R=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(E){if(l){var L,H=y==="y"?wo:Co,K=y==="y"?Uo:Go,Y=y==="y"?"height":"width",M=E[y],T=M+b[H],D=M-b[K],B=m?-O[Y]/2:0,z=w===Ur?_[Y]:O[Y],U=w===Ur?-O[Y]:-_[Y],V=t.elements.arrow,J=m&&V?Pp(V):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ew(),ae=q[H],ie=q[K],oe=mi(0,_[Y],J[Y]),fe=C?_[Y]/2-B-oe-ae-R.mainAxis:z-oe-ae-R.mainAxis,re=C?-_[Y]/2+B+oe+ie+R.mainAxis:U+oe+ie+R.mainAxis,j=t.elements.arrow&&hi(t.elements.arrow),se=j?y==="y"?j.clientTop||0:j.clientLeft||0:0,Se=(L=A==null?void 0:A[y])!=null?L:0,Ie=M+fe-Se-se,Le=M+re-Se,He=mi(m?lc(T,Ie):T,M,m?sr(D,Le):D);E[y]=He,I[y]=He-M}if(i){var We,tt=y==="x"?wo:Co,Tt=y==="x"?Uo:Go,Xe=E[S],Ae=S==="y"?"height":"width",Pe=Xe+b[tt],Ze=Xe-b[Tt],et=[wo,Co].indexOf(g)!==-1,gt=(We=A==null?void 0:A[S])!=null?We:0,vt=et?Pe:Xe-_[Ae]-O[Ae]-gt+R.altAxis,Ce=et?Xe+_[Ae]+O[Ae]-gt-R.altAxis:Ze,Ve=m&&et?Mz(vt,Xe,Ce):mi(m?vt:Pe,Xe,m?Ce:Ze);E[S]=Ve,I[S]=Ve-Xe}t.modifiersData[o]=I}}var r5={name:"preventOverflow",enabled:!0,phase:"main",fn:l5,requiresIfExists:["offset"]};function s5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function i5(e){return e===da(e)||!qo(e)?Dp(e):s5(e)}function u5(e){var t=e.getBoundingClientRect(),n=qr(t.width)/e.offsetWidth||1,o=qr(t.height)/e.offsetHeight||1;return n!==1||o!==1}function c5(e,t,n){n===void 0&&(n=!1);var o=qo(t),a=qo(t)&&u5(t),l=Pl(t),r=Xr(e,a),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&((La(t)!=="body"||Fp(l))&&(i=i5(t)),qo(t)?(u=Xr(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=Bp(l))),{x:r.left+i.scrollLeft-u.x,y:r.top+i.scrollTop-u.y,width:r.width,height:r.height}}function d5(e){var t=new Map,n=new Set,o=[];e.forEach(function(l){t.set(l.name,l)});function a(l){n.add(l.name);var r=[].concat(l.requires||[],l.requiresIfExists||[]);r.forEach(function(i){if(!n.has(i)){var u=t.get(i);u&&a(u)}}),o.push(l)}return e.forEach(function(l){n.has(l.name)||a(l)}),o}function f5(e){var t=d5(e);return Tz.reduce(function(n,o){return n.concat(t.filter(function(a){return a.phase===o}))},[])}function p5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function v5(e){var t=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var pw={placement:"bottom",modifiers:[],strategy:"absolute"};function vw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function zp(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,a=t.defaultOptions,l=a===void 0?pw:a;return function(r,i,u){u===void 0&&(u=l);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},pw,l),modifiersData:{},elements:{reference:r,popper:i},attributes:{},styles:{}},d=[],f=!1,v={state:c,setOptions:function(p){var b=typeof p=="function"?p(c.options):p;h(),c.options=Object.assign({},l,c.options,b),c.scrollParents={reference:Gr(r)?gi(r):r.contextElement?gi(r.contextElement):[],popper:gi(i)};var g=f5(v5([].concat(o,c.options.modifiers)));return c.orderedModifiers=g.filter(function(w){return w.enabled}),m(),v.update()},forceUpdate:function(){if(!f){var p=c.elements,b=p.reference,g=p.popper;if(vw(b,g)){c.rects={reference:c5(b,hi(g),c.options.strategy==="fixed"),popper:Pp(g)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(O){return c.modifiersData[O.name]=Object.assign({},O.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var C=c.orderedModifiers[w],y=C.fn,S=C.options,E=S===void 0?{}:S,_=C.name;typeof y=="function"&&(c=y({state:c,options:E,name:_,instance:v})||c)}}}},update:p5(function(){return new Promise(function(p){v.forceUpdate(),p(c)})}),destroy:function(){h(),f=!0}};if(!vw(r,i))return v;v.setOptions(u).then(function(p){!f&&u.onFirstUpdate&&u.onFirstUpdate(p)});function m(){c.orderedModifiers.forEach(function(p){var b=p.name,g=p.options,w=g===void 0?{}:g,C=p.effect;if(typeof C=="function"){var y=C({state:c,name:b,instance:v,options:w}),S=function(){};d.push(y||S)}})}function h(){d.forEach(function(p){return p()}),d=[]}return v}}zp();var h5=[lw,fw,aw,Z1];zp({defaultModifiers:h5});var m5=[lw,fw,aw,Z1,n5,Zz,r5,Lz,Qz],g5=zp({defaultModifiers:m5});const hw=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=b5(u);Object.assign(r.value,c)},requires:["computeStyles"]},a=k(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=s(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],o,{name:"applyStyles",enabled:!1}]}}),l=Zt(),r=P({styles:{popper:{position:s(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{!l.value||(l.value.destroy(),l.value=void 0)};return ue(a,u=>{const c=s(l);c&&c.setOptions(u)},{deep:!0}),ue([e,t],([u,c])=>{i(),!(!u||!c)&&(l.value=g5(u,c,s(a)))}),Dt(()=>{i()}),{state:k(()=>{var u;return{...((u=s(l))==null?void 0:u.state)||{}}}),styles:k(()=>s(r).styles),attributes:k(()=>s(r).attributes),update:()=>{var u;return(u=s(l))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=s(l))==null?void 0:u.forceUpdate()},instanceRef:k(()=>s(l))}};function b5(e){const t=Object.keys(e.elements),n=Fr(t.map(a=>[a,e.styles[a]||{}])),o=Fr(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:o}}const uc=e=>{if(!e)return{onClick:Gt,onMousedown:Gt,onMouseup:Gt};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}},y5=(e,t)=>{const n=P(!1);if(!_t)return{isTeleportVisible:n,showTeleport:Gt,hideTeleport:Gt,renderTeleport:Gt};let o=null;const a=()=>{n.value=!0,o===null&&(o=FF())},l=()=>{n.value=!1,o!==null&&(VF(o),o=null)},r=()=>t.value!==!0?e():n.value?[De(Og,{to:o},e())]:void 0;return Ms(l),{isTeleportVisible:n,showTeleport:a,hideTeleport:l,renderTeleport:r}},mw=(e,t=0)=>{if(t===0)return e;const n=Rt(t)&&Boolean(t.initVal),o=P(n);let a=null;const l=i=>{if($t(i)){o.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{o.value=e.value},i)},r=i=>{i==="leading"?xe(t)?l(t):l(t.leading):Rt(t)?l(t.trailing):o.value=!1};return st(()=>r("leading")),ue(()=>e.value,i=>{r(i?"leading":"trailing")}),o};function Hp(){let e;const t=(o,a)=>{n(),e=window.setTimeout(o,a)},n=()=>window.clearTimeout(e);return Zl(()=>n()),{registerTimeout:t,cancelTimeout:n}}const gw="after-appear",bw="after-enter",yw="after-leave",w5="appear",ww="appear-cancelled",Cw="before-enter",Sw="before-leave",kw="enter",Ew="enter-cancelled",$w="leave",_w="leave-cancelled",C5=[gw,bw,yw,w5,ww,Cw,Sw,kw,Ew,$w,_w],S5=()=>{const{emit:e}=it();return{onAfterAppear:()=>{e(gw)},onAfterEnter:()=>{e(bw)},onAfterLeave:()=>{e(yw)},onAppearCancelled:()=>{e(ww)},onBeforeEnter:()=>{e(Cw)},onBeforeLeave:()=>{e(Sw)},onEnter:()=>{e(kw)},onEnterCancelled:()=>{e(Ew)},onLeave:()=>{e($w)},onLeaveCancelled:()=>{e(_w)}}},Tw={prefix:Math.floor(Math.random()*1e4),current:0},Ow=Symbol("elIdInjection"),cc=()=>it()?Te(Ow,Tw):Tw,Bn=e=>{const t=cc(),n=ac();return Vg(()=>s(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Jr=[];const Rw=e=>{Ht(e)===pe.esc&&Jr.forEach(n=>n(e))},xw=e=>{st(()=>{Jr.length===0&&document.addEventListener("keydown",Rw),_t&&Jr.push(e)}),Dt(()=>{Jr=Jr.filter(t=>t!==e),Jr.length===0&&_t&&document.removeEventListener("keydown",Rw)})},Wp=()=>{const e=ac(),t=cc(),n=k(()=>`${e.value}-popper-container-${t.prefix}`),o=k(()=>`#${n.value}`);return{id:n,selector:o}},k5=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Iw=()=>{const{id:e,selector:t}=Wp();return Fd(()=>{!_t||document.body.querySelector(t.value)||k5(e.value)}),{id:e,selector:t}},E5=({indicator:e,intermediateIndicator:t,shouldSetIntermediate:n=()=>!0,beforeShow:o,afterShow:a,afterHide:l,beforeHide:r})=>{ue(()=>s(e),i=>{i?(o==null||o(),ke(()=>{!s(e)||n("show")&&(t.value=!0)})):(r==null||r(),ke(()=>{s(e)||n("hide")&&(t.value=!1)}))}),ue(()=>t.value,i=>{i?a==null||a():l==null||l()})},Mw=me({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Nw=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:a})=>{const{registerTimeout:l}=Hp(),{registerTimeout:r,cancelTimeout:i}=Hp();return{onOpen:(d,f=s(e))=>{l(()=>{o(d);const v=s(n);xe(v)&&v>0&&r(()=>{a(d)},v)},f)},onClose:(d,f=s(t))=>{i(),l(()=>{a(d)},f)}}},Kp=Symbol("elForwardRef"),Aw=e=>{St(Kp,{setForwardRef:n=>{e.value=n}})},Pw=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Lw={current:0},Dw=P(0),jp=2e3,Yp=Symbol("elZIndexContextKey"),Up=Symbol("zIndexContextKey"),Qr=e=>{const t=it()?Te(Yp,Lw):Lw,n=e||(it()?Te(Up,void 0):void 0),o=k(()=>{const r=s(n);return xe(r)?r:jp}),a=k(()=>o.value+Dw.value),l=()=>(t.current++,Dw.value=t.current,a.value);return!_t&&Te(Yp),{initialZIndex:o,currentZIndex:a,nextZIndex:l}},Bw=["top","right","bottom","left"],Fw=["start","end"],Vw=Bw.reduce((e,t)=>e.concat(t,t+"-"+Fw[0],t+"-"+Fw[1]),[]),fa=Math.min,oo=Math.max,dc=Math.round,fc=Math.floor,Ba=e=>({x:e,y:e}),$5={left:"right",right:"left",bottom:"top",top:"bottom"},_5={start:"end",end:"start"};function Gp(e,t,n){return oo(e,fa(t,n))}function pa(e,t){return typeof e=="function"?e(t):e}function Io(e){return e.split("-")[0]}function va(e){return e.split("-")[1]}function qp(e){return e==="x"?"y":"x"}function Xp(e){return e==="y"?"height":"width"}const T5=new Set(["top","bottom"]);function ha(e){return T5.has(Io(e))?"y":"x"}function Zp(e){return qp(ha(e))}function zw(e,t,n){n===void 0&&(n=!1);const o=va(e),a=Zp(e),l=Xp(a);let r=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=vc(r)),[r,vc(r)]}function O5(e){const t=vc(e);return[pc(e),t,pc(t)]}function pc(e){return e.replace(/start|end/g,t=>_5[t])}const Hw=["left","right"],Ww=["right","left"],R5=["top","bottom"],x5=["bottom","top"];function I5(e,t,n){switch(e){case"top":case"bottom":return n?t?Ww:Hw:t?Hw:Ww;case"left":case"right":return t?R5:x5;default:return[]}}function M5(e,t,n,o){const a=va(e);let l=I5(Io(e),n==="start",o);return a&&(l=l.map(r=>r+"-"+a),t&&(l=l.concat(l.map(pc)))),l}function vc(e){return e.replace(/left|right|bottom|top/g,t=>$5[t])}function N5(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jp(e){return typeof e!="number"?N5(e):{top:e,right:e,bottom:e,left:e}}function es(e){const{x:t,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:t,right:t+o,bottom:n+a,x:t,y:n}}function Kw(e,t,n){let{reference:o,floating:a}=e;const l=ha(t),r=Zp(t),i=Xp(r),u=Io(t),c=l==="y",d=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,v=o[i]/2-a[i]/2;let m;switch(u){case"top":m={x:d,y:o.y-a.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-a.width,y:f};break;default:m={x:o.x,y:o.y}}switch(va(t)){case"start":m[r]-=v*(n&&c?-1:1);break;case"end":m[r]+=v*(n&&c?-1:1);break}return m}const A5=async(e,t,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:l=[],platform:r}=n,i=l.filter(Boolean),u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:f}=Kw(c,o,u),v=o,m={},h=0;for(let p=0;p<i.length;p++){const{name:b,fn:g}=i[p],{x:w,y:C,data:y,reset:S}=await g({x:d,y:f,initialPlacement:o,placement:v,strategy:a,middlewareData:m,rects:c,platform:r,elements:{reference:e,floating:t}});d=w!=null?w:d,f=C!=null?C:f,m={...m,[b]:{...m[b],...y}},S&&h<=50&&(h++,typeof S=="object"&&(S.placement&&(v=S.placement),S.rects&&(c=S.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:a}):S.rects),{x:d,y:f}=Kw(c,v,u)),p=-1)}return{x:d,y:f,placement:v,strategy:a,middlewareData:m}};async function ir(e,t){var n;t===void 0&&(t={});const{x:o,y:a,platform:l,rects:r,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:v=!1,padding:m=0}=pa(t,e),h=Jp(m),b=i[v?f==="floating"?"reference":"floating":f],g=es(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(b)))==null||n?b:b.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),w=f==="floating"?{x:o,y:a,width:r.floating.width,height:r.floating.height}:r.reference,C=await(l.getOffsetParent==null?void 0:l.getOffsetParent(i.floating)),y=await(l.isElement==null?void 0:l.isElement(C))?await(l.getScale==null?void 0:l.getScale(C))||{x:1,y:1}:{x:1,y:1},S=es(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:C,strategy:u}):w);return{top:(g.top-S.top+h.top)/y.y,bottom:(S.bottom-g.bottom+h.bottom)/y.y,left:(g.left-S.left+h.left)/y.x,right:(S.right-g.right+h.right)/y.x}}const P5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:a,rects:l,platform:r,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=pa(e,t)||{};if(c==null)return{};const f=Jp(d),v={x:n,y:o},m=Zp(a),h=Xp(m),p=await r.getDimensions(c),b=m==="y",g=b?"top":"left",w=b?"bottom":"right",C=b?"clientHeight":"clientWidth",y=l.reference[h]+l.reference[m]-v[m]-l.floating[h],S=v[m]-l.reference[m],E=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let _=E?E[C]:0;(!_||!await(r.isElement==null?void 0:r.isElement(E)))&&(_=i.floating[C]||l.floating[h]);const O=y/2-S/2,N=_/2-p[h]/2-1,R=fa(f[g],N),A=fa(f[w],N),I=R,L=_-p[h]-A,H=_/2-p[h]/2+O,K=Gp(I,H,L),Y=!u.arrow&&va(a)!=null&&H!==K&&l.reference[h]/2-(H<I?R:A)-p[h]/2<0,M=Y?H<I?H-I:H-L:0;return{[m]:v[m]+M,data:{[m]:K,centerOffset:H-K-M,...Y&&{alignmentOffset:M}},reset:Y}}});function L5(e,t,n){return(e?[...n.filter(a=>va(a)===e),...n.filter(a=>va(a)!==e)]:n.filter(a=>Io(a)===a)).filter(a=>e?va(a)===e||(t?pc(a)!==a:!1):!0)}const D5=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,a;const{rects:l,middlewareData:r,placement:i,platform:u,elements:c}=t,{crossAxis:d=!1,alignment:f,allowedPlacements:v=Vw,autoAlignment:m=!0,...h}=pa(e,t),p=f!==void 0||v===Vw?L5(f||null,m,v):v,b=await ir(t,h),g=((n=r.autoPlacement)==null?void 0:n.index)||0,w=p[g];if(w==null)return{};const C=zw(w,l,await(u.isRTL==null?void 0:u.isRTL(c.floating)));if(i!==w)return{reset:{placement:p[0]}};const y=[b[Io(w)],b[C[0]],b[C[1]]],S=[...((o=r.autoPlacement)==null?void 0:o.overflows)||[],{placement:w,overflows:y}],E=p[g+1];if(E)return{data:{index:g+1,overflows:S},reset:{placement:E}};const _=S.map(R=>{const A=va(R.placement);return[R.placement,A&&d?R.overflows.slice(0,2).reduce((I,L)=>I+L,0):R.overflows[0],R.overflows]}).sort((R,A)=>R[1]-A[1]),N=((a=_.filter(R=>R[2].slice(0,va(R[0])?2:3).every(A=>A<=0))[0])==null?void 0:a[0])||_[0][0];return N!==i?{data:{index:g+1,overflows:S},reset:{placement:N}}:{}}}},B5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:a,middlewareData:l,rects:r,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...b}=pa(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const g=Io(a),w=ha(i),C=Io(i)===i,y=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=v||(C||!p?[vc(i)]:O5(i)),E=h!=="none";!v&&E&&S.push(...M5(i,p,h,y));const _=[i,...S],O=await ir(t,b),N=[];let R=((o=l.flip)==null?void 0:o.overflows)||[];if(d&&N.push(O[g]),f){const H=zw(a,r,y);N.push(O[H[0]],O[H[1]])}if(R=[...R,{placement:a,overflows:N}],!N.every(H=>H<=0)){var A,I;const H=(((A=l.flip)==null?void 0:A.index)||0)+1,K=_[H];if(K&&(!(f==="alignment"?w!==ha(K):!1)||R.every(T=>ha(T.placement)===w?T.overflows[0]>0:!0)))return{data:{index:H,overflows:R},reset:{placement:K}};let Y=(I=R.filter(M=>M.overflows[0]<=0).sort((M,T)=>M.overflows[1]-T.overflows[1])[0])==null?void 0:I.placement;if(!Y)switch(m){case"bestFit":{var L;const M=(L=R.filter(T=>{if(E){const D=ha(T.placement);return D===w||D==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(D=>D>0).reduce((D,B)=>D+B,0)]).sort((T,D)=>T[1]-D[1])[0])==null?void 0:L[0];M&&(Y=M);break}case"initialPlacement":Y=i;break}if(a!==Y)return{reset:{placement:Y}}}return{}}}};function jw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yw(e){return Bw.some(t=>e[t]>=0)}const F5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...a}=pa(e,t);switch(o){case"referenceHidden":{const l=await ir(t,{...a,elementContext:"reference"}),r=jw(l,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Yw(r)}}}case"escaped":{const l=await ir(t,{...a,altBoundary:!0}),r=jw(l,n.floating);return{data:{escapedOffsets:r,escaped:Yw(r)}}}default:return{}}}}};function Uw(e){const t=fa(...e.map(l=>l.left)),n=fa(...e.map(l=>l.top)),o=oo(...e.map(l=>l.right)),a=oo(...e.map(l=>l.bottom));return{x:t,y:n,width:o-t,height:a-n}}function V5(e){const t=e.slice().sort((a,l)=>a.y-l.y),n=[];let o=null;for(let a=0;a<t.length;a++){const l=t[a];!o||l.y-o.y>o.height/2?n.push([l]):n[n.length-1].push(l),o=l}return n.map(a=>es(Uw(a)))}const z5=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:a,platform:l,strategy:r}=t,{padding:i=2,x:u,y:c}=pa(e,t),d=Array.from(await(l.getClientRects==null?void 0:l.getClientRects(o.reference))||[]),f=V5(d),v=es(Uw(d)),m=Jp(i);function h(){if(f.length===2&&f[0].left>f[1].right&&u!=null&&c!=null)return f.find(b=>u>b.left-m.left&&u<b.right+m.right&&c>b.top-m.top&&c<b.bottom+m.bottom)||v;if(f.length>=2){if(ha(n)==="y"){const R=f[0],A=f[f.length-1],I=Io(n)==="top",L=R.top,H=A.bottom,K=I?R.left:A.left,Y=I?R.right:A.right,M=Y-K,T=H-L;return{top:L,bottom:H,left:K,right:Y,width:M,height:T,x:K,y:L}}const b=Io(n)==="left",g=oo(...f.map(R=>R.right)),w=fa(...f.map(R=>R.left)),C=f.filter(R=>b?R.left===w:R.right===g),y=C[0].top,S=C[C.length-1].bottom,E=w,_=g,O=_-E,N=S-y;return{top:y,bottom:S,left:E,right:_,width:O,height:N,x:E,y}}return v}const p=await l.getElementRects({reference:{getBoundingClientRect:h},floating:o.floating,strategy:r});return a.reference.x!==p.reference.x||a.reference.y!==p.reference.y||a.reference.width!==p.reference.width||a.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},Gw=new Set(["left","top"]);async function H5(e,t){const{placement:n,platform:o,elements:a}=e,l=await(o.isRTL==null?void 0:o.isRTL(a.floating)),r=Io(n),i=va(n),u=ha(n)==="y",c=Gw.has(r)?-1:1,d=l&&u?-1:1,f=pa(t,e);let{mainAxis:v,crossAxis:m,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof h=="number"&&(m=i==="end"?h*-1:h),u?{x:m*d,y:v*c}:{x:v*c,y:m*d}}const W5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:a,y:l,placement:r,middlewareData:i}=t,u=await H5(t,e);return r===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:a+u.x,y:l+u.y,data:{...u,placement:r}}}}},K5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:a}=t,{mainAxis:l=!0,crossAxis:r=!1,limiter:i={fn:b=>{let{x:g,y:w}=b;return{x:g,y:w}}},...u}=pa(e,t),c={x:n,y:o},d=await ir(t,u),f=ha(Io(a)),v=qp(f);let m=c[v],h=c[f];if(l){const b=v==="y"?"top":"left",g=v==="y"?"bottom":"right",w=m+d[b],C=m-d[g];m=Gp(w,m,C)}if(r){const b=f==="y"?"top":"left",g=f==="y"?"bottom":"right",w=h+d[b],C=h-d[g];h=Gp(w,h,C)}const p=i.fn({...t,[v]:m,[f]:h});return{...p,data:{x:p.x-n,y:p.y-o,enabled:{[v]:l,[f]:r}}}}}},j5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:a,rects:l,middlewareData:r}=t,{offset:i=0,mainAxis:u=!0,crossAxis:c=!0}=pa(e,t),d={x:n,y:o},f=ha(a),v=qp(f);let m=d[v],h=d[f];const p=pa(i,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const C=v==="y"?"height":"width",y=l.reference[v]-l.floating[C]+b.mainAxis,S=l.reference[v]+l.reference[C]-b.mainAxis;m<y?m=y:m>S&&(m=S)}if(c){var g,w;const C=v==="y"?"width":"height",y=Gw.has(Io(a)),S=l.reference[f]-l.floating[C]+(y&&((g=r.offset)==null?void 0:g[f])||0)+(y?0:b.crossAxis),E=l.reference[f]+l.reference[C]+(y?0:((w=r.offset)==null?void 0:w[f])||0)-(y?b.crossAxis:0);h<S?h=S:h>E&&(h=E)}return{[v]:m,[f]:h}}}},Y5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:a,rects:l,platform:r,elements:i}=t,{apply:u=()=>{},...c}=pa(e,t),d=await ir(t,c),f=Io(a),v=va(a),m=ha(a)==="y",{width:h,height:p}=l.floating;let b,g;f==="top"||f==="bottom"?(b=f,g=v===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(g=f,b=v==="end"?"top":"bottom");const w=p-d.top-d.bottom,C=h-d.left-d.right,y=fa(p-d[b],w),S=fa(h-d[g],C),E=!t.middlewareData.shift;let _=y,O=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=C),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(_=w),E&&!v){const R=oo(d.left,0),A=oo(d.right,0),I=oo(d.top,0),L=oo(d.bottom,0);m?O=h-2*(R!==0||A!==0?R+A:oo(d.left,d.right)):_=p-2*(I!==0||L!==0?I+L:oo(d.top,d.bottom))}await u({...t,availableWidth:O,availableHeight:_});const N=await r.getDimensions(i.floating);return h!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function hc(){return typeof window!="undefined"}function ts(e){return qw(e)?(e.nodeName||"").toLowerCase():"#document"}function Mo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fa(e){var t;return(t=(qw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qw(e){return hc()?e instanceof Node||e instanceof Mo(e).Node:!1}function ma(e){return hc()?e instanceof Element||e instanceof Mo(e).Element:!1}function Va(e){return hc()?e instanceof HTMLElement||e instanceof Mo(e).HTMLElement:!1}function Xw(e){return!hc()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof Mo(e).ShadowRoot}const U5=new Set(["inline","contents"]);function yi(e){const{overflow:t,overflowX:n,overflowY:o,display:a}=ga(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!U5.has(a)}const G5=new Set(["table","td","th"]);function q5(e){return G5.has(ts(e))}const X5=[":popover-open",":modal"];function mc(e){return X5.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const Z5=["transform","translate","scale","rotate","perspective"],J5=["transform","translate","scale","rotate","perspective","filter"],Q5=["paint","layout","strict","content"];function Qp(e){const t=ev(),n=ma(e)?ga(e):e;return Z5.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||J5.some(o=>(n.willChange||"").includes(o))||Q5.some(o=>(n.contain||"").includes(o))}function eH(e){let t=Ll(e);for(;Va(t)&&!ns(t);){if(Qp(t))return t;if(mc(t))return null;t=Ll(t)}return null}function ev(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tH=new Set(["html","body","#document"]);function ns(e){return tH.has(ts(e))}function ga(e){return Mo(e).getComputedStyle(e)}function gc(e){return ma(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ll(e){if(ts(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xw(e)&&e.host||Fa(e);return Xw(t)?t.host:t}function Zw(e){const t=Ll(e);return ns(t)?e.ownerDocument?e.ownerDocument.body:e.body:Va(t)&&yi(t)?t:Zw(t)}function wi(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Zw(e),l=a===((o=e.ownerDocument)==null?void 0:o.body),r=Mo(a);if(l){const i=tv(r);return t.concat(r,r.visualViewport||[],yi(a)?a:[],i&&n?wi(i):[])}return t.concat(a,wi(a,[],n))}function tv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jw(e){const t=ga(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=Va(e),l=a?e.offsetWidth:n,r=a?e.offsetHeight:o,i=dc(n)!==l||dc(o)!==r;return i&&(n=l,o=r),{width:n,height:o,$:i}}function nv(e){return ma(e)?e:e.contextElement}function os(e){const t=nv(e);if(!Va(t))return Ba(1);const n=t.getBoundingClientRect(),{width:o,height:a,$:l}=Jw(t);let r=(l?dc(n.width):n.width)/o,i=(l?dc(n.height):n.height)/a;return(!r||!Number.isFinite(r))&&(r=1),(!i||!Number.isFinite(i))&&(i=1),{x:r,y:i}}const nH=Ba(0);function Qw(e){const t=Mo(e);return!ev()||!t.visualViewport?nH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oH(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mo(e)?!1:t}function ur(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=nv(e);let r=Ba(1);t&&(o?ma(o)&&(r=os(o)):r=os(e));const i=oH(l,n,o)?Qw(l):Ba(0);let u=(a.left+i.x)/r.x,c=(a.top+i.y)/r.y,d=a.width/r.x,f=a.height/r.y;if(l){const v=Mo(l),m=o&&ma(o)?Mo(o):o;let h=v,p=tv(h);for(;p&&o&&m!==h;){const b=os(p),g=p.getBoundingClientRect(),w=ga(p),C=g.left+(p.clientLeft+parseFloat(w.paddingLeft))*b.x,y=g.top+(p.clientTop+parseFloat(w.paddingTop))*b.y;u*=b.x,c*=b.y,d*=b.x,f*=b.y,u+=C,c+=y,h=Mo(p),p=tv(h)}}return es({width:d,height:f,x:u,y:c})}function bc(e,t){const n=gc(e).scrollLeft;return t?t.left+n:ur(Fa(e)).left+n}function eC(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-bc(e,n),a=n.top+t.scrollTop;return{x:o,y:a}}function aH(e){let{elements:t,rect:n,offsetParent:o,strategy:a}=e;const l=a==="fixed",r=Fa(o),i=t?mc(t.floating):!1;if(o===r||i&&l)return n;let u={scrollLeft:0,scrollTop:0},c=Ba(1);const d=Ba(0),f=Va(o);if((f||!f&&!l)&&((ts(o)!=="body"||yi(r))&&(u=gc(o)),Va(o))){const m=ur(o);c=os(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}const v=r&&!f&&!l?eC(r,u):Ba(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+v.x,y:n.y*c.y-u.scrollTop*c.y+d.y+v.y}}function lH(e){return Array.from(e.getClientRects())}function rH(e){const t=Fa(e),n=gc(e),o=e.ownerDocument.body,a=oo(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=oo(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+bc(e);const i=-n.scrollTop;return ga(o).direction==="rtl"&&(r+=oo(t.clientWidth,o.clientWidth)-a),{width:a,height:l,x:r,y:i}}const tC=25;function sH(e,t){const n=Mo(e),o=Fa(e),a=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,i=0,u=0;if(a){l=a.width,r=a.height;const d=ev();(!d||d&&t==="fixed")&&(i=a.offsetLeft,u=a.offsetTop)}const c=bc(o);if(c<=0){const d=o.ownerDocument,f=d.body,v=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,h=Math.abs(o.clientWidth-f.clientWidth-m);h<=tC&&(l-=h)}else c<=tC&&(l+=c);return{width:l,height:r,x:i,y:u}}const iH=new Set(["absolute","fixed"]);function uH(e,t){const n=ur(e,!0,t==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,l=Va(e)?os(e):Ba(1),r=e.clientWidth*l.x,i=e.clientHeight*l.y,u=a*l.x,c=o*l.y;return{width:r,height:i,x:u,y:c}}function nC(e,t,n){let o;if(t==="viewport")o=sH(e,n);else if(t==="document")o=rH(Fa(e));else if(ma(t))o=uH(t,n);else{const a=Qw(e);o={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return es(o)}function oC(e,t){const n=Ll(e);return n===t||!ma(n)||ns(n)?!1:ga(n).position==="fixed"||oC(n,t)}function cH(e,t){const n=t.get(e);if(n)return n;let o=wi(e,[],!1).filter(i=>ma(i)&&ts(i)!=="body"),a=null;const l=ga(e).position==="fixed";let r=l?Ll(e):e;for(;ma(r)&&!ns(r);){const i=ga(r),u=Qp(r);!u&&i.position==="fixed"&&(a=null),(l?!u&&!a:!u&&i.position==="static"&&!!a&&iH.has(a.position)||yi(r)&&!u&&oC(e,r))?o=o.filter(d=>d!==r):a=i,r=Ll(r)}return t.set(e,o),o}function dH(e){let{element:t,boundary:n,rootBoundary:o,strategy:a}=e;const r=[...n==="clippingAncestors"?mc(t)?[]:cH(t,this._c):[].concat(n),o],i=r[0],u=r.reduce((c,d)=>{const f=nC(t,d,a);return c.top=oo(f.top,c.top),c.right=fa(f.right,c.right),c.bottom=fa(f.bottom,c.bottom),c.left=oo(f.left,c.left),c},nC(t,i,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function fH(e){const{width:t,height:n}=Jw(e);return{width:t,height:n}}function pH(e,t,n){const o=Va(t),a=Fa(t),l=n==="fixed",r=ur(e,!0,l,t);let i={scrollLeft:0,scrollTop:0};const u=Ba(0);function c(){u.x=bc(a)}if(o||!o&&!l)if((ts(t)!=="body"||yi(a))&&(i=gc(t)),o){const m=ur(t,!0,l,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else a&&c();l&&!o&&a&&c();const d=a&&!o&&!l?eC(a,i):Ba(0),f=r.left+i.scrollLeft-u.x-d.x,v=r.top+i.scrollTop-u.y-d.y;return{x:f,y:v,width:r.width,height:r.height}}function ov(e){return ga(e).position==="static"}function aC(e,t){if(!Va(e)||ga(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Fa(e)===n&&(n=n.ownerDocument.body),n}function lC(e,t){const n=Mo(e);if(mc(e))return n;if(!Va(e)){let a=Ll(e);for(;a&&!ns(a);){if(ma(a)&&!ov(a))return a;a=Ll(a)}return n}let o=aC(e,t);for(;o&&q5(o)&&ov(o);)o=aC(o,t);return o&&ns(o)&&ov(o)&&!Qp(o)?n:o||eH(e)||n}const vH=async function(e){const t=this.getOffsetParent||lC,n=this.getDimensions,o=await n(e.floating);return{reference:pH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function hH(e){return ga(e).direction==="rtl"}const mH={convertOffsetParentRelativeRectToViewportRelativeRect:aH,getDocumentElement:Fa,getClippingRect:dH,getOffsetParent:lC,getElementRects:vH,getClientRects:lH,getDimensions:fH,getScale:os,isElement:ma,isRTL:hH};function rC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gH(e,t){let n=null,o;const a=Fa(e);function l(){var i;clearTimeout(o),(i=n)==null||i.disconnect(),n=null}function r(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),l();const c=e.getBoundingClientRect(),{left:d,top:f,width:v,height:m}=c;if(i||t(),!v||!m)return;const h=fc(f),p=fc(a.clientWidth-(d+v)),b=fc(a.clientHeight-(f+m)),g=fc(d),C={rootMargin:-h+"px "+-p+"px "+-b+"px "+-g+"px",threshold:oo(0,fa(1,u))||1};let y=!0;function S(E){const _=E[0].intersectionRatio;if(_!==u){if(!y)return r();_?r(!1,_):o=setTimeout(()=>{r(!1,1e-7)},1e3)}_===1&&!rC(c,e.getBoundingClientRect())&&r(),y=!1}try{n=new IntersectionObserver(S,{...C,root:a.ownerDocument})}catch(E){n=new IntersectionObserver(S,C)}n.observe(e)}return r(!0),l}function bH(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,c=nv(e),d=a||l?[...c?wi(c):[],...wi(t)]:[];d.forEach(g=>{a&&g.addEventListener("scroll",n,{passive:!0}),l&&g.addEventListener("resize",n)});const f=c&&i?gH(c,n):null;let v=-1,m=null;r&&(m=new ResizeObserver(g=>{let[w]=g;w&&w.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let h,p=u?ur(e):null;u&&b();function b(){const g=ur(e);p&&!rC(p,g)&&n(),p=g,h=requestAnimationFrame(b)}return n(),()=>{var g;d.forEach(w=>{a&&w.removeEventListener("scroll",n),l&&w.removeEventListener("resize",n)}),f==null||f(),(g=m)==null||g.disconnect(),m=null,u&&cancelAnimationFrame(h)}}const yH=ir,wH=W5,CH=K5,SH=B5,sC=P5,iC=(e,t,n)=>{const o=new Map,a={platform:mH,...n},l={...a.platform,_c:o};return A5(e,t,{...a,platform:l})},kH=me({}),EH=e=>{if(!_t)return;if(!e)return e;const t=wn(e);return t||(Kn(e)?t:e)},$H=(e,t)=>{const n=e==null?void 0:e[t];return fn(n)?"":`${n}px`},_H=({middleware:e,placement:t,strategy:n})=>{const o=P(),a=P(),l=P(),r=P(),i=P({}),u={x:l,y:r,placement:t,strategy:n,middlewareData:i},c=async()=>{if(!_t)return;const d=EH(o),f=wn(a);if(!d||!f)return;const v=await iC(d,f,{placement:s(t),strategy:s(n),middleware:s(e)});Kr(u).forEach(m=>{u[m].value=v[m]})};return st(()=>{lo(()=>{c()})}),{...u,update:c,referenceRef:o,contentRef:a}},TH=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const o=s(e);return o?sC({element:o,padding:t}).fn(n):{}}});function uC(e){let t;function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:l,value:r}=e.value;if(a==null||l==null)return;const i=r.slice(0,Math.max(0,a)),u=r.slice(Math.max(0,l));t={selectionStart:a,selectionEnd:l,value:r,beforeTxt:i,afterTxt:u}}function o(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:l,afterTxt:r,selectionStart:i}=t;if(l==null||r==null||i==null)return;let u=a.length;if(a.endsWith(r))u=a.length-r.length;else if(a.startsWith(l))u=l.length;else{const c=l[i-1],d=a.indexOf(c,i-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,o]}const OH=(e,t,n)=>ua(e.subTree).filter(l=>{var r;return Jt(l)&&((r=l.type)==null?void 0:r.name)===t&&!!l.component}).map(l=>l.component.uid).map(l=>n[l]).filter(l=>!!l),Ci=(e,t)=>{const n=Zt({}),o=Zt([]),a=new WeakMap,l=d=>{n.value[d.uid]=d,uu(n),st(()=>{const f=d.getVnode().el,v=f.parentNode;if(!a.has(v)){a.set(v,[]);const m=v.insertBefore.bind(v);v.insertBefore=(h,p)=>(a.get(v).some(g=>h===g||p===g)&&uu(n),m(h,p))}a.get(v).push(f)})},r=d=>{delete n.value[d.uid],uu(n);const f=d.getVnode().el,v=f.parentNode,m=a.get(v),h=m.indexOf(f);m.splice(h,1)},i=()=>{o.value=OH(e,t,n.value)},u=d=>d.render(),c=le({setup(d,{slots:f}){return()=>(i(),f.default?De(u,{render:f.default}):null)}});return{children:o,addChild:l,removeChild:r,ChildrenSorter:c}},En=ia({type:String,values:ta,required:!1}),RH={size:En},av=Symbol("size"),lv=()=>{const e=Te(av,{});return k(()=>s(e.size)||"")};function za(e,{disabled:t,beforeFocus:n,afterFocus:o,beforeBlur:a,afterBlur:l}={}){const r=it(),{emit:i}=r,u=Zt(),c=P(!1),d=m=>{const h=lt(n)?n(m):!1;s(t)||c.value||h||(c.value=!0,i("focus",m),o==null||o())},f=m=>{var h;const p=lt(a)?a(m):!1;s(t)||m.relatedTarget&&((h=u.value)==null?void 0:h.contains(m.relatedTarget))||p||(c.value=!1,i("blur",m),l==null||l())},v=m=>{var h,p;s(t)||Ns(m.target)||((h=u.value)==null?void 0:h.contains(document.activeElement))&&u.value!==document.activeElement||(p=e.value)==null||p.focus()};return ue([u,()=>s(t)],([m,h])=>{!m||(h?m.removeAttribute("tabindex"):m.setAttribute("tabindex","-1"))}),Mt(u,"focus",d,!0),Mt(u,"blur",f,!0),Mt(u,"click",v,!0),{isFocused:c,wrapperRef:u,handleFocus:d,handleBlur:f}}function as({afterComposition:e,emit:t}){const n=P(!1),o=i=>{t==null||t("compositionstart",i),n.value=!0},a=i=>{var u;t==null||t("compositionupdate",i);const c=(u=i.target)==null?void 0:u.value,d=c[c.length-1]||"";n.value=!tz(d)},l=i=>{t==null||t("compositionend",i),n.value&&(n.value=!1,ke(()=>e(i)))};return{isComposing:n,handleComposition:i=>{i.type==="compositionend"?l(i):a(i)},handleCompositionStart:o,handleCompositionUpdate:a,handleCompositionEnd:l}}const rv=Symbol("emptyValuesContextKey"),xH="use-empty-values",cC=["",void 0,null],dC=void 0,Dl=me({emptyValues:Array,valueOnClear:{type:G([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=lt(e)?e():e,Ee(e)?e.every(t=>!t):!e)}}),ls=(e,t)=>{const n=it()?Te(rv,P({})):P({}),o=k(()=>e.emptyValues||n.value.emptyValues||cC),a=k(()=>lt(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:lt(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:dC),l=r=>{let i=!0;return Ee(r)?i=o.value.some(u=>ln(r,u)):i=o.value.includes(r),i};return l(a.value),{emptyValues:o,valueOnClear:a,isEmptyValue:l}},fC=me({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Yn=e=>xa(fC,e),sv=Symbol(),yc=P();function cr(e,t=void 0){const n=it()?Te(sv,yc):yc;return e?k(()=>{var o,a;return(a=(o=n.value)==null?void 0:o[e])!=null?a:t}):n}function Si(e,t){const n=cr(),o=de(e,k(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||jr})),a=wt(k(()=>{var i;return(i=n.value)==null?void 0:i.locale})),l=Qr(k(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||jp})),r=k(()=>{var i;return s(t)||((i=n.value)==null?void 0:i.size)||""});return wc(k(()=>s(n)||{})),{ns:o,locale:a,zIndex:l,size:r}}const wc=(e,t,n=!1)=>{var o;const a=!!it(),l=a?cr():void 0,r=(o=t==null?void 0:t.provide)!=null?o:a?St:void 0;if(!r)return;const i=k(()=>{const u=s(e);return l!=null&&l.value?IH(l.value,u):u});return r(sv,i),r(Rp,k(()=>i.value.locale)),r(xp,k(()=>i.value.namespace)),r(Up,k(()=>i.value.zIndex)),r(av,{size:k(()=>i.value.size||"")}),r(rv,k(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!yc.value)&&(yc.value=i.value),i},IH=(e,t)=>{const n=[...new Set([...Kr(e),...Kr(t)])],o={};for(const a of n)o[a]=t[a]!==void 0?t[a]:e[a];return o},pC=me({a11y:{type:Boolean,default:!0},locale:{type:G(Object)},size:En,button:{type:G(Object)},card:{type:G(Object)},dialog:{type:G(Object)},link:{type:G(Object)},experimentalFeatures:{type:G(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:G(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Dl}),Un={placement:"top"},MH=le({name:"ElConfigProvider",props:pC,setup(e,{slots:t}){const n=wc(e);return ue(()=>e.message,o=>{var a,l;Object.assign(Un,(l=(a=n==null?void 0:n.value)==null?void 0:a.message)!=null?l:{},o!=null?o:{})},{immediate:!0,deep:!0}),()=>ee(t,"default",{config:n==null?void 0:n.value})}}),vC=Qe(MH),NH="0.0.20251229",hC=(e=[])=>({version:NH,install:(n,o)=>{n[Hd]||(n[Hd]=!0,e.forEach(a=>n.use(a)),o&&wc(o,n,!0))}}),ki=me({to:{type:G([String,Object]),required:!0},disabled:Boolean});var ye=(e,t)=>{const n=e.__vccOpts||e;for(const[o,a]of t)n[o]=a;return n};const AH=le({__name:"teleport",props:ki,setup(e){return(t,n)=>t.disabled?ee(t.$slots,"default",{key:0}):($(),ne(Og,{key:1,to:t.to},[ee(t.$slots,"default")],8,["to"]))}});var PH=ye(AH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);const LH=Qe(PH);var rs=LH;const mC=me({zIndex:{type:G([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:ki.to.type,default:"body"}}),gC={scroll:({scrollTop:e,fixed:t})=>xe(e)&&Vt(t),[ft]:e=>Vt(e)},bC="ElAffix",DH=le({name:bC,__name:"affix",props:mC,emits:gC,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("affix"),r=Zt(),i=Zt(),u=Zt(),{height:c}=Gd(),{height:d,width:f,top:v,bottom:m,left:h,update:p}=Yg(i,{windowScroll:!1}),b=Yg(r),g=P(!1),w=P(0),C=P(0),y=k(()=>!o.teleported||!g.value),S=k(()=>({height:g.value?`${d.value}px`:"",width:g.value?`${f.value}px`:""})),E=k(()=>{if(!g.value)return{};const R=rn(o.offset);return{height:`${d.value}px`,width:`${f.value}px`,top:o.position==="top"?R:"",bottom:o.position==="bottom"?R:"",left:o.teleported?`${h.value}px`:"",transform:C.value?`translateY(${C.value}px)`:"",zIndex:o.zIndex}}),_=()=>{if(!u.value)return;w.value=u.value instanceof Window?document.documentElement.scrollTop:u.value.scrollTop||0;const{position:R,target:A,offset:I}=o,L=I+d.value;if(R==="top")if(A){const H=b.bottom.value-L;g.value=I>v.value&&b.bottom.value>0,C.value=H<0?H:0}else g.value=I>v.value;else if(A){const H=c.value-b.top.value-L;g.value=c.value-I<m.value&&c.value>b.top.value,C.value=H<0?-H:0}else g.value=c.value-I<m.value},O=async()=>{if(!g.value){p();return}g.value=!1,await ke(),p(),g.value=!0},N=async()=>{p(),await ke(),a("scroll",{scrollTop:w.value,fixed:g.value})};return ue(g,R=>a(ft,R)),st(()=>{var R;o.target?(r.value=(R=document.querySelector(o.target))!=null?R:void 0,r.value||kn(bC,`Target does not exist: ${o.target}`)):r.value=document.documentElement,u.value=Cp(i.value,!0),p()}),Mt(u,"scroll",N),lo(_),t({update:_,updateRoot:O}),(R,A)=>($(),F("div",{ref_key:"root",ref:i,class:x(s(l).b()),style:Ne(S.value)},[X(s(rs),{disabled:y.value,to:R.appendTo},{default:Q(()=>[W("div",{class:x({[s(l).m("fixed")]:g.value}),style:Ne(E.value)},[ee(R.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}});var BH=ye(DH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const yC=Qe(BH),wC=me({size:{type:G([Number,String])},color:{type:String}}),FH=le({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:wC,setup(e){const t=e,n=de("icon"),o=k(()=>{const{size:a,color:l}=t,r=rn(a);return!r&&!l?{}:{fontSize:r,"--color":l}});return(a,l)=>($(),F("i",rt({class:s(n).b(),style:o.value},a.$attrs),[ee(a.$slots,"default")],16))}});var VH=ye(FH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const $e=Qe(VH),CC=["light","dark"],SC=me({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Kr(Al),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:CC,default:"light"},showAfter:Number,hideAfter:Number,autoClose:Number}),kC={close:e=>e instanceof MouseEvent},zH=le({name:"ElAlert",__name:"alert",props:SC,emits:kC,setup(e,{emit:t}){const{Close:n}=$p,o=e,a=t,l=$n(),r=de("alert"),i=P(!0),u=k(()=>Al[o.type]),c=k(()=>!!(o.description||l.default)),d=f=>{i.value=!1,a("close",f)};return o.showAfter||o.hideAfter||o.autoClose,(f,v)=>($(),ne(zn,{name:s(r).b("fade"),persisted:""},{default:Q(()=>[ot(W("div",{class:x([s(r).b(),s(r).m(f.type),s(r).is("center",f.center),s(r).is(f.effect)]),role:"alert"},[f.showIcon&&(f.$slots.icon||u.value)?($(),ne(s($e),{key:0,class:x([s(r).e("icon"),s(r).is("big",c.value)])},{default:Q(()=>[ee(f.$slots,"icon",{},()=>[($(),ne(at(u.value)))])]),_:3},8,["class"])):te("v-if",!0),W("div",{class:x(s(r).e("content"))},[f.title||f.$slots.title?($(),F("span",{key:0,class:x([s(r).e("title"),{"with-description":c.value}])},[ee(f.$slots,"title",{},()=>[Ct(ge(f.title),1)])],2)):te("v-if",!0),c.value?($(),F("p",{key:1,class:x(s(r).e("description"))},[ee(f.$slots,"default",{},()=>[Ct(ge(f.description),1)])],2)):te("v-if",!0),f.closable?($(),F(Fe,{key:2},[f.closeText?($(),F("div",{key:0,class:x([s(r).e("close-btn"),s(r).is("customed")]),onClick:d},ge(f.closeText),3)):($(),ne(s($e),{key:1,class:x(s(r).e("close-btn")),onClick:d},{default:Q(()=>[X(s(n))]),_:1},8,["class"]))],64)):te("v-if",!0)],2)],2),[[xt,i.value]])]),_:3},8,["name"]))}});var HH=ye(zH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const EC=Qe(HH),Bl=Symbol("formContextKey"),ba=Symbol("formItemContextKey"),bn=(e,t={})=>{const n=P(void 0),o=t.prop?n:Mp("size"),a=t.global?n:lv(),l=t.form?{size:void 0}:Te(Bl,void 0),r=t.formItem?{size:void 0}:Te(ba,void 0);return k(()=>o.value||s(e)||(r==null?void 0:r.size)||(l==null?void 0:l.size)||a.value||"")},nn=e=>{const t=Mp("disabled"),n=Te(Bl,void 0);return k(()=>{var o,a,l;return(l=(a=(o=t.value)!=null?o:s(e))!=null?a:n==null?void 0:n.disabled)!=null?l:!1})},WH=bn,KH=nn,An=()=>{const e=Te(Bl,void 0),t=Te(ba,void 0);return{form:e,formItem:t}},So=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=P(!1)),o||(o=P(!1));const a=it(),l=()=>{let c=a==null?void 0:a.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},r=P();let i;const u=k(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return st(()=>{i=ue([Ft(e,"id"),n],([c,d])=>{const f=c!=null?c:d?void 0:Bn().value;f!==r.value&&((t==null?void 0:t.removeInputId)&&!l()&&(r.value&&t.removeInputId(r.value),!(o!=null&&o.value)&&!d&&f&&t.addInputId(f)),r.value=f)},{immediate:!0})}),Ms(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:u,inputId:r}},$C=me({size:{type:String,values:ta},disabled:Boolean}),_C=me({...$C,model:Object,rules:{type:G(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:G([Object,Boolean]),default:!0}}),TC={validate:(e,t,n)=>(Ee(e)||ze(e))&&Vt(t)&&ze(n)};function jH(){const e=P([]),t=k(()=>{if(!e.value.length)return"0";const l=Math.max(...e.value);return l?`${l}px`:""});function n(l){const r=e.value.indexOf(l);return r===-1&&t.value,r}function o(l,r){if(l&&r){const i=n(r);e.value.splice(i,1,l)}else l&&e.value.push(l)}function a(l){const r=n(l);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:a}}const Cc=(e,t)=>{const n=Nn(t).map(o=>Ee(o)?o.join("."):o);return n.length>0?e.filter(o=>o.propString&&n.includes(o.propString)):e},YH="ElForm",UH=le({name:YH,__name:"form",props:_C,emits:TC,setup(e,{expose:t,emit:n}){const o=e,a=n,l=P(),r=Lt([]),i=bn(),u=de("form"),c=k(()=>{const{labelPosition:S,inline:E}=o;return[u.b(),u.m(i.value||"default"),{[u.m(`label-${S}`)]:S,[u.m("inline")]:E}]}),d=S=>Cc(r,[S])[0],f=S=>{r.push(S)},v=S=>{S.prop&&r.splice(r.indexOf(S),1)},m=(S=[])=>{!o.model||Cc(r,S).forEach(E=>E.resetField())},h=(S=[])=>{Cc(r,S).forEach(E=>E.clearValidate())},p=k(()=>!!o.model),b=S=>{if(r.length===0)return[];const E=Cc(r,S);return E.length?E:[]},g=async S=>C(void 0,S),w=async(S=[])=>{if(!p.value)return!1;const E=b(S);if(E.length===0)return!0;let _={};for(const O of E)try{await O.validate(""),O.validateState==="error"&&!O.error&&O.resetField()}catch(N){_={..._,...N}}return Object.keys(_).length===0?!0:Promise.reject(_)},C=async(S=[],E)=>{let _=!1;const O=!lt(E);try{return _=await w(S),_===!0&&await(E==null?void 0:E(_)),_}catch(N){if(N instanceof Error)throw N;const R=N;if(o.scrollToError&&l.value){const A=l.value.querySelector(`.${u.b()}-item.is-error`);A==null||A.scrollIntoView(o.scrollIntoViewOptions)}return!_&&await(E==null?void 0:E(!1,R)),O&&Promise.reject(R)}},y=S=>{var E;const _=d(S);_&&((E=_.$el)==null||E.scrollIntoView(o.scrollIntoViewOptions))};return ue(()=>o.rules,()=>{o.validateOnRuleChange&&g().catch(S=>void 0)},{deep:!0,flush:"post"}),St(Bl,Lt({...In(o),emit:a,resetFields:m,clearValidate:h,validateField:C,getField:d,addField:f,removeField:v,...jH()})),t({validate:g,validateField:C,resetFields:m,clearValidate:h,scrollToField:y,getField:d,fields:r}),(S,E)=>($(),F("form",{ref_key:"formRef",ref:l,class:x(c.value)},[ee(S.$slots,"default")],2))}});var GH=ye(UH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dr.apply(this,arguments)}function qH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ei(e,t)}function iv(e){return iv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},iv(e)}function Ei(e,t){return Ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},Ei(e,t)}function XH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Sc(e,t,n){return XH()?Sc=Reflect.construct.bind():Sc=function(a,l,r){var i=[null];i.push.apply(i,l);var u=Function.bind.apply(a,i),c=new u;return r&&Ei(c,r.prototype),c},Sc.apply(null,arguments)}function ZH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function uv(e){var t=typeof Map=="function"?new Map:void 0;return uv=function(o){if(o===null||!ZH(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(o))return t.get(o);t.set(o,a)}function a(){return Sc(o,arguments,iv(this).constructor)}return a.prototype=Object.create(o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ei(a,o)},uv(e)}var JH=/%[sdj%]/g,QH=function(){};typeof process!="undefined"&&process.env;function cv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function No(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var a=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var r=e.replace(JH,function(i){if(i==="%%")return"%";if(a>=l)return i;switch(i){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch(u){return"[Circular]"}break;default:return i}});return r}return e}function eW(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Fn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||eW(t)&&typeof e=="string"&&!e)}function tW(e,t,n){var o=[],a=0,l=e.length;function r(i){o.push.apply(o,i||[]),a++,a===l&&n(o)}e.forEach(function(i){t(i,r)})}function OC(e,t,n){var o=0,a=e.length;function l(r){if(r&&r.length){n(r);return}var i=o;o=o+1,i<a?t(e[i],l):n([])}l([])}function nW(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var RC=function(e){qH(t,e);function t(n,o){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=n,a.fields=o,a}return t}(uv(Error));function oW(e,t,n,o,a){if(t.first){var l=new Promise(function(v,m){var h=function(g){return o(g),g.length?m(new RC(g,cv(g))):v(a)},p=nW(e);OC(p,n,h)});return l.catch(function(v){return v}),l}var r=t.firstFields===!0?Object.keys(e):t.firstFields||[],i=Object.keys(e),u=i.length,c=0,d=[],f=new Promise(function(v,m){var h=function(b){if(d.push.apply(d,b),c++,c===u)return o(d),d.length?m(new RC(d,cv(d))):v(a)};i.length||(o(d),v(a)),i.forEach(function(p){var b=e[p];r.indexOf(p)!==-1?OC(b,n,h):tW(b,n,h)})});return f.catch(function(v){return v}),f}function aW(e){return!!(e&&e.message!==void 0)}function lW(e,t){for(var n=e,o=0;o<t.length;o++){if(n==null)return n;n=n[t[o]]}return n}function xC(e,t){return function(n){var o;return e.fullFields?o=lW(t,e.fullFields):o=t[n.field||e.fullField],aW(n)?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:typeof n=="function"?n():n,fieldValue:o,field:n.field||e.fullField}}}function IC(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];typeof o=="object"&&typeof e[n]=="object"?e[n]=dr({},e[n],o):e[n]=o}}return e}var MC=function(t,n,o,a,l,r){t.required&&(!o.hasOwnProperty(t.field)||Fn(n,r||t.type))&&a.push(No(l.messages.required,t.fullField))},rW=function(t,n,o,a,l){(/^\s+$/.test(n)||n==="")&&a.push(No(l.messages.whitespace,t.fullField))},kc,sW=function(){if(kc)return kc;var e="[a-fA-F\\d:]",t=function(y){return y&&y.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",a=(`
|
|
33
33
|
(?:
|
|
34
34
|
(?:`+o+":){7}(?:"+o+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
35
35
|
(?:`+o+":){6}(?:"+n+"|:"+o+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
@@ -64,6 +64,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
64
64
|
m 0 ${y?"":"-"}${C}
|
|
65
65
|
a ${C} ${C} 0 1 1 0 ${y?"-":""}${C*2}
|
|
66
66
|
a ${C} ${C} 0 1 1 0 ${y?"":"-"}${C*2}
|
|
67
|
-
`}),u=k(()=>2*Math.PI*r.value),c=k(()=>n.type==="dashboard"?.75:1),d=k(()=>`${-1*u.value*(1-c.value)/2}px`),f=k(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),v=k(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),m=k(()=>{let C;return n.color?C=w(n.percentage):C=t[n.status]||t.default,C}),h=k(()=>n.status==="warning"?tc:n.type==="line"?n.status==="success"?kp:ul:n.status==="success"?si:jo),p=k(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),b=k(()=>n.format(n.percentage));function g(C){const y=100/C.length;return C.map((E,_)=>ze(E)?{color:E,percentage:(_+1)*y}:E).sort((E,_)=>E.percentage-_.percentage)}const w=C=>{var y;const{color:S}=n;if(lt(S))return S(C);if(ze(S))return S;{const E=g(S);for(const _ of E)if(_.percentage>C)return _.color;return(y=E[E.length-1])==null?void 0:y.color}};return(C,y)=>($(),F("div",{class:x([s(o).b(),s(o).m(C.type),s(o).is(C.status),{[s(o).m("without-text")]:!C.showText,[s(o).m("text-inside")]:C.textInside}]),role:"progressbar","aria-valuenow":C.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[C.type==="line"?($(),F("div",{key:0,class:x(s(o).b("bar"))},[W("div",{class:x(s(o).be("bar","outer")),style:Ne({height:`${C.strokeWidth}px`})},[W("div",{class:x([s(o).be("bar","inner"),{[s(o).bem("bar","inner","indeterminate")]:C.indeterminate},{[s(o).bem("bar","inner","striped")]:C.striped},{[s(o).bem("bar","inner","striped-flow")]:C.stripedFlow}]),style:Ne(a.value)},[(C.showText||C.$slots.default)&&C.textInside?($(),F("div",{key:0,class:x(s(o).be("bar","innerText"))},[ee(C.$slots,"default",{percentage:C.percentage},()=>[W("span",null,ge(b.value),1)])],2)):te("v-if",!0)],6)],6)],2)):($(),F("div",{key:1,class:x(s(o).b("circle")),style:Ne({height:`${C.width}px`,width:`${C.width}px`})},[($(),F("svg",XX,[W("path",{class:x(s(o).be("circle","track")),d:i.value,stroke:`var(${s(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":C.strokeLinecap,"stroke-width":l.value,fill:"none",style:Ne(f.value)},null,14,ZX),W("path",{class:x(s(o).be("circle","path")),d:i.value,stroke:m.value,fill:"none",opacity:C.percentage?1:0,"stroke-linecap":C.strokeLinecap,"stroke-width":l.value,style:Ne(v.value)},null,14,JX)]))],6)),(C.showText||C.$slots.default)&&!C.textInside?($(),F("div",{key:2,class:x(s(o).e("text")),style:Ne({fontSize:`${p.value}px`})},[ee(C.$slots,"default",{percentage:C.percentage},()=>[C.status?($(),ne(s($e),{key:1},{default:Q(()=>[($(),ne(at(h.value)))]),_:1})):($(),F("span",QX,ge(b.value),1))])],6)):te("v-if",!0)],10,qX))}});var tZ=ye(eZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const sm=Qe(tZ),c$=me({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:G([Array,Object]),default:()=>un(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:G([Array,Object]),default:()=>[ec,ec,ec]},voidIcon:{type:zt,default:()=>HV},disabledVoidIcon:{type:zt,default:()=>ec},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:G(Array),default:()=>un(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:En,clearable:Boolean,...Yn(["ariaLabel"])}),d$={[ft]:e=>xe(e),[Ue]:e=>xe(e)},nZ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],oZ=["onMousemove","onClick"],aZ=le({name:"ElRate",__name:"rate",props:c$,emits:d$,setup(e,{expose:t,emit:n}){function o(T,D){const B=V=>Rt(V),z=Object.keys(D).map(V=>+V).filter(V=>{const J=D[V];return(B(J)?J.excluded:!1)?T<V:T<=V}).sort((V,J)=>V-J),U=D[z[0]];return B(U)&&U.value||U}const a=e,l=n,r=Te(ba,void 0),i=bn(),u=de("rate"),{inputId:c,isLabeledByFormItem:d}=So(a,{formItemContext:r}),f=P(a.modelValue),v=P(-1),m=P(!0),h=P([]),p=k(()=>h.value.map(T=>T.$el.clientWidth)),b=k(()=>[u.b(),u.m(i.value)]),g=nn(),w=k(()=>u.cssVarBlock({"void-color":a.voidColor,"disabled-void-color":a.disabledVoidColor,"fill-color":E.value})),C=k(()=>{let T="";return a.showScore?T=a.scoreTemplate.replace(/\{\s*value\s*\}/,g.value?`${a.modelValue}`:`${f.value}`):a.showText&&(T=a.texts[Math.ceil(f.value)-1]),T}),y=k(()=>a.modelValue*100-Math.floor(a.modelValue)*100),S=k(()=>Ee(a.colors)?{[a.lowThreshold]:a.colors[0],[a.highThreshold]:{value:a.colors[1],excluded:!0},[a.max]:a.colors[2]}:a.colors),E=k(()=>{const T=o(f.value,S.value);return Rt(T)?"":T}),_=k(()=>{let T="";return g.value?T=`${y.value}%`:a.allowHalf&&(T="50%"),{color:E.value,width:T}}),O=k(()=>{let T=Ee(a.icons)?[...a.icons]:{...a.icons};return T=Cl(T),Ee(T)?{[a.lowThreshold]:T[0],[a.highThreshold]:{value:T[1],excluded:!0},[a.max]:T[2]}:T}),N=k(()=>o(a.modelValue,O.value)),R=k(()=>g.value?ze(a.disabledVoidIcon)?a.disabledVoidIcon:Cl(a.disabledVoidIcon):ze(a.voidIcon)?a.voidIcon:Cl(a.voidIcon)),A=k(()=>o(f.value,O.value));function I(T){const D=g.value&&y.value>0&&T-1<a.modelValue&&T>a.modelValue,B=a.allowHalf&&m.value&&T-.5<=f.value&&T>f.value;return D||B}function L(T){a.clearable&&T===a.modelValue&&(T=0),l(Ue,T),a.modelValue!==T&&l(ft,T)}function H(T){g.value||(a.allowHalf&&m.value?L(f.value):L(T))}function K(T){if(g.value)return;const D=Ht(T),B=a.allowHalf?.5:1;let z=f.value;switch(D){case pe.up:case pe.right:z+=B;break;case pe.left:case pe.down:z-=B;break}if(z=Xs(z,0,a.max),z!==f.value)return T.stopPropagation(),T.preventDefault(),l(Ue,z),l(ft,z),z}function Y(T,D){g.value||(a.allowHalf&&D?(m.value=D.offsetX*2<=p.value[T-1],f.value=m.value?T-.5:T):f.value=T,v.value=T)}function M(){g.value||(a.allowHalf&&(m.value=a.modelValue!==Math.floor(a.modelValue)),f.value=a.modelValue,v.value=-1)}return ue(()=>a.modelValue,T=>{f.value=T,m.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||l(Ue,0),t({setCurrentValue:Y,resetCurrentValue:M}),(T,D)=>{var B;return $(),F("div",{id:s(c),class:x([b.value,s(u).is("disabled",s(g))]),role:"slider","aria-label":s(d)?void 0:T.ariaLabel||"rating","aria-labelledby":s(d)?(B=s(r))==null?void 0:B.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":C.value||void 0,"aria-valuemin":"0","aria-valuemax":T.max,tabindex:"0",style:Ne(w.value),onKeydown:K},[($(!0),F(Fe,null,yt(T.max,(z,U)=>($(),F("span",{key:U,class:x(s(u).e("item")),onMousemove:V=>Y(z,V),onMouseleave:M,onClick:V=>H(z)},[X(s($e),{ref_for:!0,ref_key:"iconRefs",ref:h,class:x([s(u).e("icon"),{hover:v.value===z},s(u).is("active",z<=f.value),s(u).is("focus-visible",z===Math.ceil(f.value||1))])},{default:Q(()=>[ot(($(),ne(at(A.value),null,null,512)),[[xt,!I(z)&&z<=f.value]]),ot(($(),ne(at(R.value),null,null,512)),[[xt,!I(z)&&z>f.value]]),ot(($(),ne(at(R.value),{class:x([s(u).em("decimal","box")])},null,8,["class"])),[[xt,I(z)]]),ot(X(s($e),{style:Ne(_.value),class:x([s(u).e("icon"),s(u).e("decimal")])},{default:Q(()=>[($(),ne(at(N.value)))]),_:1},8,["style","class"]),[[xt,I(z)]])]),_:2},1032,["class"])],42,oZ))),128)),T.showText||T.showScore?($(),F("span",{key:0,class:x(s(u).e("text")),style:Ne({color:T.textColor})},ge(C.value),7)):te("v-if",!0)],46,nZ)}}});var lZ=ye(aZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const f$=Qe(lZ),Wl={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},im={[Wl.primary]:ii,[Wl.success]:eV,[Wl.warning]:tc,[Wl.error]:Ep,[Wl.info]:ii},p$=me({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),rZ=le({name:"ElResult",__name:"result",props:p$,setup(e){const t=e,n=de("result"),o=k(()=>{const a=t.icon,l=a&&Wl[a]?Wl[a]:"icon-info",r=im[l]||im["icon-info"];return{class:l,component:r}});return(a,l)=>($(),F("div",{class:x(s(n).b())},[W("div",{class:x(s(n).e("icon"))},[ee(a.$slots,"icon",{},()=>[o.value.component?($(),ne(at(o.value.component),{key:0,class:x(o.value.class)},null,8,["class"])):te("v-if",!0)])],2),a.title||a.$slots.title?($(),F("div",{key:0,class:x(s(n).e("title"))},[ee(a.$slots,"title",{},()=>[W("p",null,ge(a.title),1)])],2)):te("v-if",!0),a.subTitle||a.$slots["sub-title"]?($(),F("div",{key:1,class:x(s(n).e("subtitle"))},[ee(a.$slots,"sub-title",{},()=>[W("p",null,ge(a.subTitle),1)])],2)):te("v-if",!0),a.$slots.extra?($(),F("div",{key:2,class:x(s(n).e("extra"))},[ee(a.$slots,"extra")],2)):te("v-if",!0)],2))}});var sZ=ye(rZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const v$=Qe(sZ);var h$=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function iZ(e,t){return!!(e===t||h$(e)&&h$(t))}function uZ(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!iZ(e[n],t[n]))return!1;return!0}function cZ(e,t){t===void 0&&(t=uZ);var n=null;function o(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];if(n&&n.lastThis===this&&t(a,n.lastArgs))return n.lastResult;var r=e.apply(this,a);return n={lastResult:r,lastArgs:a,lastThis:this},r}return o.clear=function(){n=null},o}const m$=()=>{const t=it().proxy.$props;return k(()=>{const n=(o,a,l)=>({});return t.perfMode?Gs(n):cZ(n)})},um=50,id="itemRendered",ud="scroll",gs="forward",cd="backward",Qo="auto",dd="smart",Ki="start",Ka="center",ji="end",bs="horizontal",g$="vertical",dZ="ltr",ys="rtl",Yi="negative",cm="positive-ascending",dm="positive-descending",fZ={[bs]:"left",[g$]:"top"},pZ=20,vZ=({atEndEdge:e,atStartEdge:t,layout:n},o)=>{let a,l=0;const r=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:r,onWheel:u=>{rl(a);let{deltaX:c,deltaY:d}=u;u.shiftKey&&d!==0&&(c=d,d=0);const f=n.value===bs?c:d;r(l)&&r(l+f)||(l+=f,qd()||u.preventDefault(),a=Ma(()=>{o(l),l=0}))}}};var b$=vZ;const fm=ia({type:G([Number,Function]),required:!0}),pm=ia({type:Number}),vm=ia({type:Number,default:2}),hZ=ia({type:String,values:["ltr","rtl"],default:"ltr"}),hm=ia({type:Number,default:0}),fd=ia({type:Number,required:!0}),y$=ia({type:String,values:["horizontal","vertical"],default:g$}),mm=me({className:{type:String,default:""},containerElement:{type:G([String,Object]),default:"div"},data:{type:G(Array),default:()=>un([])},direction:hZ,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:G(Object),default:()=>({})},style:{type:G([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),gm=me({cache:vm,estimatedItemSize:pm,layout:y$,initScrollOffset:hm,total:fd,itemSize:fm,...mm}),bm={type:Number,default:6},w$={type:Number,default:0},C$={type:Number,default:2},Kl=me({columnCache:vm,columnWidth:fm,estimatedColumnWidth:pm,estimatedRowHeight:pm,initScrollLeft:hm,initScrollTop:hm,itemKey:{type:G(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:vm,rowHeight:fm,totalColumn:fd,totalRow:fd,hScrollbarSize:bm,vScrollbarSize:bm,scrollbarStartGap:w$,scrollbarEndGap:C$,role:String,...mm}),ym=me({alwaysOn:Boolean,class:String,layout:y$,total:fd,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:bm,startGap:w$,endGap:C$,visible:Boolean}),br=(e,t)=>e<t?gs:cd,Ui=e=>e===dZ||e===ys||e===bs,S$=e=>e===ys;let ws=null;function pd(e=!1){if(ws===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const o=document.createElement("div"),a=o.style;return a.width="100px",a.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?ws=dm:(t.scrollLeft=1,t.scrollLeft===0?ws=Yi:ws=cm),document.body.removeChild(t),ws}return ws}function mZ({move:e,size:t,bar:n},o){const a={},l=`translate${n.axis}(${e}px)`;return a[n.size]=t,a.transform=l,o==="horizontal"?a.height="100%":a.width="100%",a}const gZ=le({name:"ElVirtualScrollBar",props:ym,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=k(()=>e.startGap+e.endGap),o=de("virtual-scrollbar"),a=de("scrollbar"),l=P(),r=P();let i=null,u=null;const c=Lt({isDragging:!1,traveled:0}),d=k(()=>vv[e.layout]),f=k(()=>e.clientSize-s(n)),v=k(()=>({position:"absolute",width:`${bs===e.layout?f.value:e.scrollbarSize}px`,height:`${bs===e.layout?e.scrollbarSize:f.value}px`,[fZ[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),m=k(()=>{const E=e.ratio;if(E>=100)return Number.POSITIVE_INFINITY;if(E>=50)return E*f.value/100;const _=f.value/3;return Math.floor(Math.min(Math.max(E*f.value/100,pZ),_))}),h=k(()=>{if(!Number.isFinite(m.value))return{display:"none"};const E=`${m.value}px`;return mZ({bar:d.value,size:E,move:c.traveled},e.layout)}),p=k(()=>Math.ceil(e.clientSize-m.value-s(n))),b=()=>{window.addEventListener("mousemove",y),window.addEventListener("mouseup",C);const E=s(r);!E||(u=document.onselectstart,document.onselectstart=()=>!1,E.addEventListener("touchmove",y,{passive:!0}),E.addEventListener("touchend",C))},g=()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",C),document.onselectstart=u,u=null;const E=s(r);!E||(E.removeEventListener("touchmove",y),E.removeEventListener("touchend",C))},w=E=>{E.stopImmediatePropagation(),!(E.ctrlKey||[1,2].includes(E.button))&&(c.isDragging=!0,c[d.value.axis]=E.currentTarget[d.value.offset]-(E[d.value.client]-E.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),b())},C=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),g()},y=E=>{const{isDragging:_}=c;if(!_||!r.value||!l.value)return;const O=c[d.value.axis];if(!O)return;rl(i);const N=(l.value.getBoundingClientRect()[d.value.direction]-E[d.value.client])*-1,R=r.value[d.value.offset]-O,A=N-R;i=Ma(()=>{c.traveled=Math.max(0,Math.min(A,p.value)),t("scroll",A,p.value)})},S=E=>{const _=Math.abs(E.target.getBoundingClientRect()[d.value.direction]-E[d.value.client]),O=r.value[d.value.offset]/2,N=_-O;c.traveled=Math.max(0,Math.min(N,p.value)),t("scroll",N,p.value)};return ue(()=>e.scrollFrom,E=>{c.isDragging||(c.traveled=Math.ceil(E*p.value))}),Dt(()=>{g()}),()=>De("div",{role:"presentation",ref:l,class:[o.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:v.value,onMousedown:Ye(S,["stop","prevent"]),onTouchstartPrevent:w},De("div",{ref:r,class:a.e("thumb"),style:h.value,onMousedown:w},[]))}});var wm=gZ;const bZ=({name:e,getOffset:t,getItemSize:n,getItemOffset:o,getEstimatedTotalSize:a,getStartIndexForOffset:l,getStopIndexForStartIndex:r,initCache:i,clearCache:u,validateProps:c})=>le({name:e!=null?e:"ElVirtualList",props:gm,emits:[id,ud],setup(d,{emit:f,expose:v}){c(d);const m=it(),h=de("vl"),p=P(i(d,m)),b=m$(),g=P(),w=P(),C=P(),y=P({isScrolling:!1,scrollDir:"forward",scrollOffset:xe(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),S=k(()=>{const{total:V,cache:J}=d,{isScrolling:q,scrollDir:ae,scrollOffset:ie}=s(y);if(V===0)return[0,0,0,0];const oe=l(d,ie,s(p)),fe=r(d,oe,ie,s(p)),re=!q||ae===cd?Math.max(1,J):1,j=!q||ae===gs?Math.max(1,J):1;return[Math.max(0,oe-re),Math.max(0,Math.min(V-1,fe+j)),oe,fe]}),E=k(()=>a(d,s(p))),_=k(()=>Ui(d.layout)),O=k(()=>[{position:"relative",[`overflow-${_.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:xe(d.height)?`${d.height}px`:d.height,width:xe(d.width)?`${d.width}px`:d.width},d.style]),N=k(()=>{const V=s(E),J=s(_);return{height:J?"100%":`${V}px`,pointerEvents:s(y).isScrolling?"none":void 0,width:J?`${V}px`:"100%",margin:0,boxSizing:"border-box"}}),R=k(()=>_.value?d.width:d.height),{onWheel:A}=b$({atStartEdge:k(()=>y.value.scrollOffset<=0),atEndEdge:k(()=>y.value.scrollOffset>=E.value),layout:k(()=>d.layout)},V=>{var J,q;(q=(J=C.value).onMouseUp)==null||q.call(J),M(Math.min(y.value.scrollOffset+V,E.value-R.value))});Mt(g,"wheel",A,{passive:!1});const I=()=>{const{total:V}=d;if(V>0){const[ie,oe,fe,re]=s(S);f(id,ie,oe,fe,re)}const{scrollDir:J,scrollOffset:q,updateRequested:ae}=s(y);f(ud,J,q,ae)},L=V=>{const{clientHeight:J,scrollHeight:q,scrollTop:ae}=V.currentTarget,ie=s(y);if(ie.scrollOffset===ae)return;const oe=Math.max(0,Math.min(ae,q-J));y.value={...ie,isScrolling:!0,scrollDir:br(ie.scrollOffset,oe),scrollOffset:oe,updateRequested:!1},ke(B)},H=V=>{const{clientWidth:J,scrollLeft:q,scrollWidth:ae}=V.currentTarget,ie=s(y);if(ie.scrollOffset===q)return;const{direction:oe}=d;let fe=q;if(oe===ys)switch(pd()){case Yi:{fe=-q;break}case dm:{fe=ae-J-q;break}}fe=Math.max(0,Math.min(fe,ae-J)),y.value={...ie,isScrolling:!0,scrollDir:br(ie.scrollOffset,fe),scrollOffset:fe,updateRequested:!1},ke(B)},K=V=>{s(_)?H(V):L(V),I()},Y=(V,J)=>{const q=(E.value-R.value)/J*V;M(Math.min(E.value-R.value,q))},M=V=>{V=Math.max(V,0),V!==s(y).scrollOffset&&(y.value={...s(y),scrollOffset:V,scrollDir:br(s(y).scrollOffset,V),updateRequested:!0},ke(B))},T=(V,J=Qo)=>{const{scrollOffset:q}=s(y);V=Math.max(0,Math.min(V,d.total-1)),M(t(d,V,J,q,s(p)))},D=V=>{const{direction:J,itemSize:q,layout:ae}=d,ie=b.value(u&&q,u&&ae,u&&J);let oe;if(Ln(ie,String(V)))oe=ie[V];else{const fe=o(d,V,s(p)),re=n(d,V,s(p)),j=s(_),se=J===ys,Se=j?fe:0;ie[V]=oe={position:"absolute",left:se?void 0:`${Se}px`,right:se?`${Se}px`:void 0,top:j?0:`${fe}px`,height:j?"100%":`${re}px`,width:j?`${re}px`:"100%"}}return oe},B=()=>{y.value.isScrolling=!1,ke(()=>{b.value(-1,null,null)})},z=()=>{const V=g.value;V&&(V.scrollTop=0)};st(()=>{if(!_t)return;const{initScrollOffset:V}=d,J=s(g);xe(V)&&J&&(s(_)?J.scrollLeft=V:J.scrollTop=V),I()}),Ga(()=>{const{direction:V,layout:J}=d,{scrollOffset:q,updateRequested:ae}=s(y),ie=s(g);if(ae&&ie)if(J===bs)if(V===ys)switch(pd()){case Yi:{ie.scrollLeft=-q;break}case cm:{ie.scrollLeft=q;break}default:{const{clientWidth:oe,scrollWidth:fe}=ie;ie.scrollLeft=fe-oe-q;break}}else ie.scrollLeft=q;else ie.scrollTop=q}),Vd(()=>{s(g).scrollTop=s(y).scrollOffset});const U={ns:h,clientSize:R,estimatedTotalSize:E,windowStyle:O,windowRef:g,innerRef:w,innerStyle:N,itemsToRender:S,scrollbarRef:C,states:y,getItemStyle:D,onScroll:K,onScrollbarScroll:Y,onWheel:A,scrollTo:M,scrollToItem:T,resetScrollTop:z};return v({windowRef:g,innerRef:w,getItemStyleCache:b,scrollTo:M,scrollToItem:T,resetScrollTop:z,states:y}),U},render(d){var f;const{$slots:v,className:m,clientSize:h,containerElement:p,data:b,getItemStyle:g,innerElement:w,itemsToRender:C,innerStyle:y,layout:S,total:E,onScroll:_,onScrollbarScroll:O,states:N,useIsScrolling:R,windowStyle:A,ns:I}=d,[L,H]=C,K=at(p),Y=at(w),M=[];if(E>0)for(let z=L;z<=H;z++)M.push(De(Fe,{key:z},(f=v.default)==null?void 0:f.call(v,{data:b,index:z,isScrolling:R?N.isScrolling:void 0,style:g(z)})));const T=[De(Y,rt(d.innerProps,{style:y,ref:"innerRef"}),ze(Y)?M:{default:()=>M})],D=De(wm,{ref:"scrollbarRef",clientSize:h,layout:S,onScroll:O,ratio:h*100/this.estimatedTotalSize,scrollFrom:N.scrollOffset/(this.estimatedTotalSize-h),total:E,alwaysOn:N.scrollbarAlwaysOn}),B=De(K,{class:[I.e("window"),m],style:A,onScroll:_,ref:"windowRef",key:0},ze(K)?[T]:{default:()=>[T]});return De("div",{key:0,class:[I.e("wrapper"),N.scrollbarAlwaysOn?"always-on":""]},[B,D])}});var k$=bZ;const yZ=k$({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:o,width:a},l,r,i)=>{const u=Ui(o)?a:e,c=Math.max(0,t*n-u),d=Math.min(c,l*n),f=Math.max(0,(l+1)*n-u);switch(r===dd&&(i>=f-u&&i<=d+u?r=Qo:r=Ka),r){case Ki:return d;case ji:return f;case Ka:{const v=Math.round(f+(d-f)/2);return v<Math.ceil(u/2)?0:v>c+Math.floor(u/2)?c:v}case Qo:default:return i>=f&&i<=d?i:i<f?f:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:o,width:a},l,r)=>{const i=l*n,u=Ui(o)?a:e,c=Math.ceil((u+r-i)/n);return Math.max(0,Math.min(t-1,l+c-1))},initCache(){},clearCache:!0,validateProps(){}});var Cm=yZ;const Cs=(e,t,n)=>{const{itemSize:o}=e,{items:a,lastVisitedIndex:l}=n;if(t>l){let r=0;if(l>=0){const i=a[l];r=i.offset+i.size}for(let i=l+1;i<=t;i++){const u=o(i);a[i]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return a[t]},wZ=(e,t,n)=>{const{items:o,lastVisitedIndex:a}=t;return(a>0?o[a].offset:0)>=n?E$(e,t,0,a,n):CZ(e,t,Math.max(0,a),n)},E$=(e,t,n,o,a)=>{for(;n<=o;){const l=n+Math.floor((o-n)/2),r=Cs(e,l,t).offset;if(r===a)return l;r<a?n=l+1:r>a&&(o=l-1)}return Math.max(0,n-1)},CZ=(e,t,n,o)=>{const{total:a}=e;let l=1;for(;n<a&&Cs(e,n,t).offset<o;)n+=l,l*=2;return E$(e,t,Math.floor(n/2),Math.min(n,a-1),o)},$$=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:o})=>{let a=0;if(o>=e&&(o=e-1),o>=0){const i=t[o];a=i.offset+i.size}const r=(e-o-1)*n;return a+r},SZ=k$({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Cs(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:$$,getOffset:(e,t,n,o,a)=>{const{height:l,layout:r,width:i}=e,u=Ui(r)?i:l,c=Cs(e,t,a),d=$$(e,a),f=Math.max(0,Math.min(d-u,c.offset)),v=Math.max(0,c.offset-u+c.size);switch(n===dd&&(o>=v-u&&o<=f+u?n=Qo:n=Ka),n){case Ki:return f;case ji:return v;case Ka:return Math.round(v+(f-v)/2);case Qo:default:return o>=v&&o<=f?o:o<v?v:f}},getStartIndexForOffset:(e,t,n)=>wZ(e,n,t),getStopIndexForStartIndex:(e,t,n,o)=>{const{height:a,total:l,layout:r,width:i}=e,u=Ui(r)?i:a,c=Cs(e,t,o),d=n+u;let f=c.offset+c.size,v=t;for(;v<l-1&&f<d;)v++,f+=Cs(e,v,o).size;return v},initCache({estimatedItemSize:e=um},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(o,a=!0)=>{var l,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,o-1),(l=t.exposed)==null||l.getItemStyleCache(-1),a&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}});var _$=SZ;const kZ=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:o},a)=>{let l=null,r=0,i=0;const u=(d,f)=>{const v=d<=0&&t.value||d>=0&&e.value,m=f<=0&&o.value||f>=0&&n.value;return v&&m};return{hasReachedEdge:u,onWheel:d=>{rl(l);let f=d.deltaX,v=d.deltaY;Math.abs(f)>Math.abs(v)?v=0:f=0,d.shiftKey&&v!==0&&(f=v,v=0),!(u(r,i)&&u(r+f,i+v))&&(r+=f,i+=v,d.preventDefault(),l=Ma(()=>{a(r,i),r=0,i=0}))}}},EZ=(e,t,n,o,a,l,r)=>{const i=P(0),u=P(0);let c,d=0,f=0;const v=h=>{rl(c),i.value=h.touches[0].clientX,u.value=h.touches[0].clientY,d=0,f=0},m=h=>{h.preventDefault(),rl(c),d+=i.value-h.touches[0].clientX,f+=u.value-h.touches[0].clientY,i.value=h.touches[0].clientX,u.value=h.touches[0].clientY,c=Ma(()=>{const p=o.value-s(l),b=a.value-s(r),g=Math.min(t.value.scrollLeft+d,p),w=Math.min(t.value.scrollTop+f,b);n({scrollLeft:g,scrollTop:w}),d=0,f=0})};return Mt(e,"touchstart",v,{passive:!0}),Mt(e,"touchmove",m,{passive:!1}),{touchStartX:i,touchStartY:u,handleTouchStart:v,handleTouchMove:m}},$Z=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:o,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:l,getEstimatedTotalWidth:r,getColumnOffset:i,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:v,injectToInstance:m,validateProps:h})=>le({name:e!=null?e:"ElVirtualList",props:Kl,emits:[id,ud],setup(p,{emit:b,expose:g,slots:w}){const C=de("vl");h(p);const y=it(),S=P(v(p,y));m==null||m(y,S);const E=P(),_=P(),O=P(),N=P(),R=P({isScrolling:!1,scrollLeft:xe(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:xe(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:gs,yAxisScrollDir:gs}),A=m$(),I=k(()=>Number.parseInt(`${p.height}`,10)),L=k(()=>Number.parseInt(`${p.width}`,10)),H=k(()=>{const{totalColumn:Ae,totalRow:Pe,columnCache:Ze}=p,{isScrolling:et,xAxisScrollDir:gt,scrollLeft:vt}=s(R);if(Ae===0||Pe===0)return[0,0,0,0];const Ce=o(p,vt,s(S)),Ve=a(p,Ce,vt,s(S)),Ke=!et||gt===cd?Math.max(1,Ze):1,Yt=!et||gt===gs?Math.max(1,Ze):1;return[Math.max(0,Ce-Ke),Math.max(0,Math.min(Ae-1,Ve+Yt)),Ce,Ve]}),K=k(()=>{const{totalColumn:Ae,totalRow:Pe,rowCache:Ze}=p,{isScrolling:et,yAxisScrollDir:gt,scrollTop:vt}=s(R);if(Ae===0||Pe===0)return[0,0,0,0];const Ce=d(p,vt,s(S)),Ve=f(p,Ce,vt,s(S)),Ke=!et||gt===cd?Math.max(1,Ze):1,Yt=!et||gt===gs?Math.max(1,Ze):1;return[Math.max(0,Ce-Ke),Math.max(0,Math.min(Pe-1,Ve+Yt)),Ce,Ve]}),Y=k(()=>l(p,s(S))),M=k(()=>r(p,s(S))),T=k(()=>{var Ae;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:xe(p.height)?`${p.height}px`:p.height,width:xe(p.width)?`${p.width}px`:p.width},(Ae=p.style)!=null?Ae:{}]}),D=k(()=>{const Ae=`${s(M)}px`;return{height:`${s(Y)}px`,pointerEvents:s(R).isScrolling?"none":void 0,width:Ae,margin:0,boxSizing:"border-box"}}),B=()=>{const{totalColumn:Ae,totalRow:Pe}=p;if(Ae>0&&Pe>0){const[Ve,Ke,Yt,Be]=s(H),[ht,ut,bt,ve]=s(K);b(id,{columnCacheStart:Ve,columnCacheEnd:Ke,rowCacheStart:ht,rowCacheEnd:ut,columnVisibleStart:Yt,columnVisibleEnd:Be,rowVisibleStart:bt,rowVisibleEnd:ve})}const{scrollLeft:Ze,scrollTop:et,updateRequested:gt,xAxisScrollDir:vt,yAxisScrollDir:Ce}=s(R);b(ud,{xAxisScrollDir:vt,scrollLeft:Ze,yAxisScrollDir:Ce,scrollTop:et,updateRequested:gt})},z=Ae=>{const{clientHeight:Pe,clientWidth:Ze,scrollHeight:et,scrollLeft:gt,scrollTop:vt,scrollWidth:Ce}=Ae.currentTarget,Ve=s(R);if(Ve.scrollTop===vt&&Ve.scrollLeft===gt)return;let Ke=gt;if(S$(p.direction))switch(pd()){case Yi:Ke=-gt;break;case dm:Ke=Ce-Ze-gt;break}R.value={...Ve,isScrolling:!0,scrollLeft:Ke,scrollTop:Math.max(0,Math.min(vt,et-Pe)),updateRequested:!0,xAxisScrollDir:br(Ve.scrollLeft,Ke),yAxisScrollDir:br(Ve.scrollTop,vt)},ke(()=>se()),Se(),B()},U=(Ae,Pe)=>{const Ze=s(I),et=(Y.value-Ze)/Pe*Ae;q({scrollTop:Math.min(Y.value-Ze,et)})},V=(Ae,Pe)=>{const Ze=s(L),et=(M.value-Ze)/Pe*Ae;q({scrollLeft:Math.min(M.value-Ze,et)})},{onWheel:J}=kZ({atXStartEdge:k(()=>R.value.scrollLeft<=0),atXEndEdge:k(()=>R.value.scrollLeft>=M.value-s(L)),atYStartEdge:k(()=>R.value.scrollTop<=0),atYEndEdge:k(()=>R.value.scrollTop>=Y.value-s(I))},(Ae,Pe)=>{var Ze,et,gt,vt;(et=(Ze=_.value)==null?void 0:Ze.onMouseUp)==null||et.call(Ze),(vt=(gt=O.value)==null?void 0:gt.onMouseUp)==null||vt.call(gt);const Ce=s(L),Ve=s(I);q({scrollLeft:Math.min(R.value.scrollLeft+Ae,M.value-Ce),scrollTop:Math.min(R.value.scrollTop+Pe,Y.value-Ve)})});Mt(E,"wheel",J,{passive:!1});const q=({scrollLeft:Ae=R.value.scrollLeft,scrollTop:Pe=R.value.scrollTop})=>{Ae=Math.max(Ae,0),Pe=Math.max(Pe,0);const Ze=s(R);Pe===Ze.scrollTop&&Ae===Ze.scrollLeft||(R.value={...Ze,xAxisScrollDir:br(Ze.scrollLeft,Ae),yAxisScrollDir:br(Ze.scrollTop,Pe),scrollLeft:Ae,scrollTop:Pe,updateRequested:!0},ke(()=>se()),Se(),B())},{touchStartX:ae,touchStartY:ie,handleTouchStart:oe,handleTouchMove:fe}=EZ(E,R,q,M,Y,L,I),re=(Ae=0,Pe=0,Ze=Qo)=>{const et=s(R);Pe=Math.max(0,Math.min(Pe,p.totalColumn-1)),Ae=Math.max(0,Math.min(Ae,p.totalRow-1));const gt=I1(C.namespace.value),vt=s(S),Ce=l(p,vt),Ve=r(p,vt);q({scrollLeft:i(p,Pe,Ze,et.scrollLeft,vt,Ve>p.width?gt:0),scrollTop:u(p,Ae,Ze,et.scrollTop,vt,Ce>p.height?gt:0)})},j=(Ae,Pe)=>{const{columnWidth:Ze,direction:et,rowHeight:gt}=p,vt=A.value(t&&Ze,t&>,t&&et),Ce=`${Ae},${Pe}`;if(Ln(vt,Ce))return vt[Ce];{const[,Ve]=n(p,Pe,s(S)),Ke=s(S),Yt=S$(et),[Be,ht]=c(p,Ae,Ke),[ut]=n(p,Pe,Ke);return vt[Ce]={position:"absolute",left:Yt?void 0:`${Ve}px`,right:Yt?`${Ve}px`:void 0,top:`${ht}px`,height:`${Be}px`,width:`${ut}px`},vt[Ce]}},se=()=>{R.value.isScrolling=!1,ke(()=>{A.value(-1,null,null)})};st(()=>{if(!_t)return;const{initScrollLeft:Ae,initScrollTop:Pe}=p,Ze=s(E);Ze&&(xe(Ae)&&(Ze.scrollLeft=Ae),xe(Pe)&&(Ze.scrollTop=Pe)),B()});const Se=()=>{const{direction:Ae}=p,{scrollLeft:Pe,scrollTop:Ze,updateRequested:et}=s(R),gt=s(E);if(et&>){if(Ae===ys)switch(pd()){case Yi:{gt.scrollLeft=-Pe;break}case cm:{gt.scrollLeft=Pe;break}default:{const{clientWidth:vt,scrollWidth:Ce}=gt;gt.scrollLeft=Ce-vt-Pe;break}}else gt.scrollLeft=Math.max(0,Pe);gt.scrollTop=Math.max(0,Ze)}},{resetAfterColumnIndex:Ie,resetAfterRowIndex:Le,resetAfter:He}=y.proxy;g({windowRef:E,innerRef:N,getItemStyleCache:A,touchStartX:ae,touchStartY:ie,handleTouchStart:oe,handleTouchMove:fe,scrollTo:q,scrollToItem:re,states:R,resetAfterColumnIndex:Ie,resetAfterRowIndex:Le,resetAfter:He});const We=()=>{const{scrollbarAlwaysOn:Ae,scrollbarStartGap:Pe,scrollbarEndGap:Ze,totalColumn:et,totalRow:gt}=p,vt=s(L),Ce=s(I),Ve=s(M),Ke=s(Y),{scrollLeft:Yt,scrollTop:Be}=s(R),ht=De(wm,{ref:_,alwaysOn:Ae,startGap:Pe,endGap:Ze,class:C.e("horizontal"),clientSize:vt,layout:"horizontal",onScroll:V,ratio:vt*100/Ve,scrollFrom:Yt/(Ve-vt),total:gt,visible:!0}),ut=De(wm,{ref:O,alwaysOn:Ae,startGap:Pe,endGap:Ze,class:C.e("vertical"),clientSize:Ce,layout:"vertical",onScroll:U,ratio:Ce*100/Ke,scrollFrom:Be/(Ke-Ce),total:et,visible:!0});return{horizontalScrollbar:ht,verticalScrollbar:ut}},tt=()=>{var Ae;const[Pe,Ze]=s(H),[et,gt]=s(K),{data:vt,totalColumn:Ce,totalRow:Ve,useIsScrolling:Ke,itemKey:Yt}=p,Be=[];if(Ve>0&&Ce>0)for(let ht=et;ht<=gt;ht++)for(let ut=Pe;ut<=Ze;ut++){const bt=Yt({columnIndex:ut,data:vt,rowIndex:ht});Be.push(De(Fe,{key:bt},(Ae=w.default)==null?void 0:Ae.call(w,{columnIndex:ut,data:vt,isScrolling:Ke?s(R).isScrolling:void 0,style:j(ht,ut),rowIndex:ht})))}return Be},Tt=()=>{const Ae=at(p.innerElement),Pe=tt();return[De(Ae,rt(p.innerProps,{style:s(D),ref:N}),ze(Ae)?Pe:{default:()=>Pe})]};return()=>{const Ae=at(p.containerElement),{horizontalScrollbar:Pe,verticalScrollbar:Ze}=We(),et=Tt();return De("div",{key:0,class:C.e("wrapper"),role:p.role},[De(Ae,{class:p.className,style:s(T),onScroll:z,ref:E},ze(Ae)?et:{default:()=>et}),Pe,Ze])}}});var T$=$Z;const _Z=T$({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},o,a,l,r,i)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,o*t),d=Math.max(0,o*t-n+i+t);switch(a==="smart"&&(l>=d-n&&l<=c+n?a=Qo:a=Ka),a){case Ki:return c;case ji:return d;case Ka:{const f=Math.round(d+(c-d)/2);return f<Math.ceil(n/2)?0:f>u+Math.floor(n/2)?u:f}case Qo:default:return l>=d&&l<=c?l:d>c||l<d?d:c}},getRowOffset:({rowHeight:e,height:t,totalRow:n},o,a,l,r,i)=>{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,o*e),d=Math.max(0,o*e-t+i+e);switch(a===dd&&(l>=d-t&&l<=c+t?a=Qo:a=Ka),a){case Ki:return c;case ji:return d;case Ka:{const f=Math.round(d+(c-d)/2);return f<Math.ceil(t/2)?0:f>u+Math.floor(t/2)?u:f}case Qo:default:return l>=d&&l<=c?l:d>c||l<d?d:c}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},o,a)=>{const l=o*e,r=Math.ceil((n+a-l)/e);return Math.max(0,Math.min(t-1,o+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},o,a)=>{const l=o*e,r=Math.ceil((n+a-l)/e);return Math.max(0,Math.min(t-1,o+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}});var O$=_Z;const{max:vd,min:R$,floor:x$}=Math,TZ={column:"columnWidth",row:"rowHeight"},Sm={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},bl=(e,t,n,o)=>{const[a,l,r]=[n[o],e[TZ[o]],n[Sm[o]]];if(t>r){let i=0;if(r>=0){const u=a[r];i=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=l(u);a[u]={offset:i,size:c},i+=c}n[Sm[o]]=t}return a[t]},I$=(e,t,n,o,a,l)=>{for(;n<=o;){const r=n+x$((o-n)/2),i=bl(e,r,t,l).offset;if(i===a)return r;i<a?n=r+1:o=r-1}return vd(0,n-1)},OZ=(e,t,n,o,a)=>{const l=a==="column"?e.totalColumn:e.totalRow;let r=1;for(;n<l&&bl(e,n,t,a).offset<o;)n+=r,r*=2;return I$(e,t,x$(n/2),R$(n,l-1),o,a)},M$=(e,t,n,o)=>{const[a,l]=[t[o],t[Sm[o]]];return(l>0?a[l].offset:0)>=n?I$(e,t,0,l,n,o):OZ(e,t,vd(0,l),n,o)},N$=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:o})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const i=o[n];a=i.offset+i.size}const r=(e-n-1)*t;return a+r},A$=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:o})=>{let a=0;if(o>e&&(o=e-1),o>=0){const i=t[o];a=i.offset+i.size}const r=(e-o-1)*n;return a+r},RZ={column:A$,row:N$},P$=(e,t,n,o,a,l,r)=>{const[i,u]=[l==="row"?e.height:e.width,RZ[l]],c=bl(e,t,a,l),d=u(e,a),f=vd(0,R$(d-i,c.offset)),v=vd(0,c.offset-i+r+c.size);switch(n===dd&&(o>=v-i&&o<=f+i?n=Qo:n=Ka),n){case Ki:return f;case ji:return v;case Ka:return Math.round(v+(f-v)/2);case Qo:default:return o>=v&&o<=f?o:v>f||o<v?v:f}},xZ=T$({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const o=bl(e,t,n,"column");return[o.size,o.offset]},getRowPosition:(e,t,n)=>{const o=bl(e,t,n,"row");return[o.size,o.offset]},getColumnOffset:(e,t,n,o,a,l)=>P$(e,t,n,o,a,"column",l),getRowOffset:(e,t,n,o,a,l)=>P$(e,t,n,o,a,"row",l),getColumnStartIndexForOffset:(e,t,n)=>M$(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,o)=>{const a=bl(e,t,o,"column"),l=n+e.width;let r=a.offset+a.size,i=t;for(;i<e.totalColumn-1&&r<l;)i++,r+=bl(e,t,o,"column").size;return i},getEstimatedTotalHeight:N$,getEstimatedTotalWidth:A$,getRowStartIndexForOffset:(e,t,n)=>M$(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,o)=>{const{totalRow:a,height:l}=e,r=bl(e,t,o,"row"),i=n+l;let u=r.size+r.offset,c=t;for(;c<a-1&&u<i;)c++,u+=bl(e,c,o,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:l,rowIndex:r},i)=>{var u,c;i=$t(i)?!0:i,xe(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),xe(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),i&&((c=e.proxy)==null||c.$forceUpdate())},o=(l,r)=>{n({columnIndex:l},r)},a=(l,r)=>{n({rowIndex:l},r)};Object.assign(e.proxy,{resetAfterColumnIndex:o,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=um,estimatedRowHeight:t=um})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}});var L$=xZ;const IZ=le({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:de("select")}}});function MZ(e,t,n,o,a,l){return $(),F("div",{class:x(e.ns.be("group","title")),style:Ne({...e.style,lineHeight:`${e.height}px`})},ge(e.item.label),7)}var NZ=ye(IZ,[["render",MZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function AZ(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const PZ=me({allowCreate:Boolean,autocomplete:{type:G(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:zt,default:ul},effect:{type:G(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:G(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:G([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:G(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:G(Array),required:!0},placeholder:{type:String},teleported:Kt.teleported,persistent:{type:Boolean,default:!0},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,popperOptions:{type:G(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:En,props:{type:G(Object),default:()=>qc},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:G(String),values:cl,default:"bottom-start"},fallbackPlacements:{type:G(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Ha.type,default:"info"},tagEffect:{...Ha.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Kt.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Vt(e)||xe(e)}},suffixIcon:{type:zt,default:Aa},...Dl,...Yn(["ariaLabel"])}),LZ=me({data:Array,disabled:Boolean,hovering:Boolean,item:{type:G(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),DZ={[Ue]:e=>!0,[ft]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},BZ={hover:e=>xe(e),select:(e,t)=>!0},hd=Symbol("ElSelectV2Injection"),FZ=le({props:LZ,emits:BZ,setup(e,{emit:t}){const n=Te(hd),o=de("select"),{hoverItem:a,selectOptionClick:l}=AZ(e,{emit:t}),{getLabel:r}=Ii(n.props),i=n.contentId;return{ns:o,contentId:i,hoverItem:a,selectOptionClick:l,getLabel:r}}}),VZ=["id","aria-selected","aria-disabled"];function zZ(e,t,n,o,a,l){return $(),F("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:Ne(e.style),class:x([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onClick:t[1]||(t[1]=Ye((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[ee(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[W("span",null,ge(e.getLabel(e.item)),1)])],46,VZ)}var HZ=ye(FZ,[["render",zZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const WZ={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var KZ=le({name:"ElSelectDropdown",props:WZ,setup(e,{slots:t,expose:n}){const o=Te(hd),a=de("select"),{getLabel:l,getValue:r,getDisabled:i}=Ii(o.props),u=P([]),c=P(),d=k(()=>e.data.length);ue(()=>d.value,()=>{var A,I;(I=(A=o.tooltipRef.value)==null?void 0:A.updatePopper)==null||I.call(A)});const f=k(()=>$t(o.props.estimatedOptionHeight)),v=k(()=>f.value?{itemSize:o.props.itemHeight}:{estimatedSize:o.props.estimatedOptionHeight,itemSize:A=>u.value[A]}),m=(A=[],I)=>{const{props:{valueKey:L}}=o;return Rt(I)?A&&A.some(H=>cu(hn(H,L))===hn(I,L)):A.includes(I)},h=(A,I)=>{if(Rt(I)){const{valueKey:L}=o.props;return hn(A,L)===hn(I,L)}else return A===I},p=(A,I)=>o.props.multiple?m(A,r(I)):h(A,r(I)),b=(A,I)=>{const{disabled:L,multiple:H,multipleLimit:K}=o.props;return L||!I&&(H?K>0&&A.length>=K:!1)},g=A=>e.hoveringIndex===A;n({listRef:c,isSized:f,isItemDisabled:b,isItemHovering:g,isItemSelected:p,scrollToItem:A=>{const I=c.value;I&&I.scrollToItem(A)},resetScrollTop:()=>{const A=c.value;A&&A.resetScrollTop()}});const S=A=>{const{index:I,data:L,style:H}=A,K=s(f),{itemSize:Y,estimatedSize:M}=s(v),{modelValue:T}=o.props,{onSelect:D,onHover:B}=o,z=L[I];if(z.type==="Group")return X(NZ,{item:z,style:H,height:K?Y:M},null);const U=p(T,z),V=b(T,U),J=g(I);return X(HZ,rt(A,{selected:U,disabled:i(z)||V,created:!!z.created,hovering:J,item:z,onSelect:D,onHover:B}),{default:q=>{var ae;return((ae=t.default)==null?void 0:ae.call(t,q))||X("span",null,[l(z)])}})},{onKeyboardNavigate:E,onKeyboardSelect:_}=o,O=()=>{E("forward")},N=()=>{E("backward")},R=A=>{const I=Ht(A),{tab:L,esc:H,down:K,up:Y,enter:M,numpadEnter:T}=pe;switch([H,K,Y,M,T].includes(I)&&(A.preventDefault(),A.stopPropagation()),I){case L:case H:break;case K:O();break;case Y:N();break;case M:case T:_();break}};return()=>{var A,I,L,H;const{data:K,width:Y}=e,{height:M,multiple:T,scrollbarAlwaysOn:D}=o.props,B=k(()=>hu?!0:D),z=s(f)?Cm:_$;return X("div",{class:[a.b("dropdown"),a.is("multiple",T)],style:{width:`${Y}px`}},[(A=t.header)==null?void 0:A.call(t),((I=t.loading)==null?void 0:I.call(t))||((L=t.empty)==null?void 0:L.call(t))||X(z,rt({ref:c},s(v),{className:a.be("dropdown","list"),scrollbarAlwaysOn:B.value,data:K,height:M,width:Y,total:K.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:R}),{default:U=>X(S,U,null)}),(H=t.footer)==null?void 0:H.call(t)])}}});function jZ(e,t){const{aliasProps:n,getLabel:o,getValue:a}=Ii(e),l=P(0),r=P(),i=k(()=>e.allowCreate&&e.filterable);ue(()=>e.options,m=>{const h=new Set(m.map(p=>o(p)));t.createdOptions=t.createdOptions.filter(p=>!h.has(o(p)))});function u(m){const h=p=>o(p)===m;return e.options&&e.options.some(h)||t.createdOptions.some(h)}function c(m){!i.value||(e.multiple&&m.created?l.value++:r.value=m)}function d(m){if(i.value)if(m&&m.length>0){if(u(m)){t.createdOptions=t.createdOptions.filter(p=>o(p)!==t.previousQuery);return}const h={[n.value.value]:m,[n.value.label]:m,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=l.value?t.createdOptions[l.value]=h:t.createdOptions.push(h)}else if(e.multiple)t.createdOptions.length=l.value;else{const h=r.value;t.createdOptions.length=0,h&&h.created&&t.createdOptions.push(h)}}function f(m){if(!i.value||!m||!m.created||m.created&&e.reserveKeyword&&t.inputValue===o(m))return;const h=t.createdOptions.findIndex(p=>a(p)===a(m));~h&&(t.createdOptions.splice(h,1),l.value--)}function v(){i.value&&(t.createdOptions.length=0,l.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:v}}const YZ=(e,t)=>{const{t:n}=wt(),o=de("select"),a=de("input"),{form:l,formItem:r}=An(),{inputId:i}=So(e,{formItemContext:r}),{aliasProps:u,getLabel:c,getValue:d,getDisabled:f,getOptions:v}=Ii(e),{valueOnClear:m,isEmptyValue:h}=ls(e),p=Lt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),b=P(-1),g=P(!1),w=P(),C=P(),y=P(),S=P(),E=P(),_=P(),O=P(),N=P(),R=P(),A=P(),{isComposing:I,handleCompositionStart:L,handleCompositionEnd:H,handleCompositionUpdate:K}=as({afterComposition:we=>en(we)}),Y=nn(),{wrapperRef:M,isFocused:T,handleBlur:D}=za(E,{disabled:Y,afterFocus(){e.automaticDropdown&&!V.value&&(V.value=!0,p.menuVisibleOnFocus=!0)},beforeBlur(we){var qe,dt;return((qe=y.value)==null?void 0:qe.isFocusInsideContent(we))||((dt=S.value)==null?void 0:dt.isFocusInsideContent(we))},afterBlur(){var we;V.value=!1,p.menuVisibleOnFocus=!1,e.validateEvent&&((we=r==null?void 0:r.validate)==null||we.call(r,"blur").catch(qe=>void 0))}}),B=k(()=>We("")),z=k(()=>e.loading?!1:e.options.length>0||p.createdOptions.length>0),U=P([]),V=P(!1),J=k(()=>{var we;return(we=l==null?void 0:l.statusIcon)!=null?we:!1}),q=k(()=>{const we=U.value.length*e.itemHeight;return we>e.height?e.height:we}),ae=k(()=>e.multiple?Ee(e.modelValue)&&e.modelValue.length>0:!h(e.modelValue)),ie=k(()=>e.clearable&&!Y.value&&ae.value&&(T.value||p.inputHovering)),oe=k(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),fe=k(()=>oe.value&&o.is("reverse",V.value)),re=k(()=>(r==null?void 0:r.validateState)||""),j=k(()=>{if(!!re.value)return nc[re.value]}),se=k(()=>e.remote?e.debounce:0),Se=k(()=>e.remote&&!p.inputValue&&!z.value),Ie=k(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&p.inputValue&&z.value&&U.value.length===0?e.noMatchText||n("el.select.noMatch"):z.value?null:e.noDataText||n("el.select.noData")),Le=k(()=>e.filterable&<(e.filterMethod)),He=k(()=>e.filterable&&e.remote&<(e.remoteMethod)),We=we=>{const qe=new RegExp(wp(we),"i"),dt=kt=>Le.value||He.value?!0:we?qe.test(c(kt)||""):!0;return e.loading?[]:[...p.createdOptions,...e.options].reduce((kt,Pn)=>{const Do=v(Pn);if(Ee(Do)){const Is=Do.filter(dt);Is.length>0&&kt.push({label:c(Pn),type:"Group"},...Is)}else(e.remote||dt(Pn))&&kt.push(Pn);return kt},[])},tt=()=>{U.value=We(p.inputValue)},Tt=k(()=>{const we=new Map;return B.value.forEach((qe,dt)=>{we.set(Re(d(qe)),{option:qe,index:dt})}),we}),Xe=k(()=>{const we=new Map;return U.value.forEach((qe,dt)=>{we.set(Re(d(qe)),{option:qe,index:dt})}),we}),Ae=k(()=>U.value.every(we=>f(we))),Pe=bn(),Ze=k(()=>Pe.value==="small"?"small":"default"),et=()=>{var we;if(xe(e.fitInputWidth)){b.value=e.fitInputWidth;return}const qe=((we=w.value)==null?void 0:we.offsetWidth)||200;!e.fitInputWidth&&z.value?ke(()=>{b.value=Math.max(qe,gt())}):b.value=qe},gt=()=>{var we,qe;const kt=document.createElement("canvas").getContext("2d"),Pn=o.be("dropdown","item"),Is=(((qe=(we=N.value)==null?void 0:we.listRef)==null?void 0:qe.innerRef)||document).querySelector(`.${Pn}`);if(Is===null||kt===null)return 0;const su=getComputedStyle(Is),FO=Number.parseFloat(su.paddingLeft)+Number.parseFloat(su.paddingRight);return kt.font=`bold ${su.font.replace(new RegExp(`\\b${su.fontWeight}\\b`),"")}`,U.value.reduce((VO,zO)=>{const HO=kt.measureText(c(zO));return Math.max(HO.width,VO)},0)+FO},vt=()=>{if(!C.value)return 0;const we=window.getComputedStyle(C.value);return Number.parseFloat(we.gap||"6px")},Ce=k(()=>{const we=vt(),qe=e.filterable?we+Ps:0;return{maxWidth:`${A.value&&e.maxCollapseTags===1?p.selectionWidth-p.collapseItemWidth-we-qe:p.selectionWidth-qe}px`}}),Ve=k(()=>({maxWidth:`${p.selectionWidth}px`})),Ke=k(()=>Ee(e.modelValue)?e.modelValue.length===0&&!p.inputValue:e.filterable?!p.inputValue:!0),Yt=k(()=>{var we;const qe=(we=e.placeholder)!=null?we:n("el.select.placeholder");return e.multiple||!ae.value?qe:p.selectedLabel}),Be=k(()=>{var we,qe;return(qe=(we=y.value)==null?void 0:we.popperRef)==null?void 0:qe.contentRef}),ht=k(()=>{if(e.multiple){const we=e.modelValue.length;if(we>0&&Xe.value.has(e.modelValue[we-1])){const{index:qe}=Xe.value.get(e.modelValue[we-1]);return qe}}else if(!h(e.modelValue)&&Xe.value.has(e.modelValue)){const{index:we}=Xe.value.get(e.modelValue);return we}return-1}),ut=k({get(){return V.value&&(e.loading||!Se.value)&&(!g.value||!co(p.previousQuery))},set(we){V.value=we}}),bt=k(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(0,e.maxCollapseTags):p.cachedOptions:[]),ve=k(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:Oe,removeNewOption:ce,selectNewOption:Me,clearAllNewOption:pt}=jZ(e,p),Ut=we=>{var qe;Y.value||e.filterable&&V.value&&we&&!((qe=O.value)!=null&&qe.contains(we.target))||(p.menuVisibleOnFocus?p.menuVisibleOnFocus=!1:V.value=!V.value)},he=()=>{p.inputValue.length>0&&!V.value&&(V.value=!0),Oe(p.inputValue),ke(()=>{je(p.inputValue)})},_e=Ls(()=>{he(),g.value=!1},se),je=we=>{p.previousQuery===we||I.value||(p.previousQuery=we,e.filterable&<(e.filterMethod)?e.filterMethod(we):e.filterable&&e.remote&<(e.remoteMethod)&&e.remoteMethod(we),e.defaultFirstOption&&(e.filterable||e.remote)&&U.value.length?ke(pn):ke(Et))},pn=()=>{const we=U.value.filter(kt=>!kt.disabled&&kt.type!=="Group"),qe=we.find(kt=>kt.created),dt=we[0];p.hoveringIndex=At(U.value,qe||dt)},po=we=>{ln(e.modelValue,we)||t(ft,we)},On=we=>{t(Ue,we),po(we),p.previousValue=e.multiple?String(we):we,ke(()=>{if(e.multiple&&Ee(e.modelValue)){const qe=p.cachedOptions.slice(),dt=e.modelValue.map(kt=>Ea(kt,qe));ln(p.cachedOptions,dt)||(p.cachedOptions=dt)}else _r(!0)})},At=(we=[],qe)=>{if(!Rt(qe))return we.indexOf(qe);const dt=e.valueKey;let kt=-1;return we.some((Pn,Do)=>hn(Pn,dt)===hn(qe,dt)?(kt=Do,!0):!1),kt},Re=we=>Rt(we)?hn(we,e.valueKey):we,nt=()=>{et()},ct=()=>{p.selectionWidth=Number.parseFloat(window.getComputedStyle(C.value).width)},ea=()=>{p.collapseItemWidth=A.value.getBoundingClientRect().width},Lo=()=>{var we,qe;(qe=(we=y.value)==null?void 0:we.updatePopper)==null||qe.call(we)},ka=()=>{var we,qe;(qe=(we=S.value)==null?void 0:we.updatePopper)==null||qe.call(we)},ql=we=>{const qe=d(we);if(e.multiple){let dt=e.modelValue.slice();const kt=At(dt,qe);kt>-1?(dt=[...dt.slice(0,kt),...dt.slice(kt+1)],p.cachedOptions.splice(kt,1),ce(we)):(e.multipleLimit<=0||dt.length<e.multipleLimit)&&(dt=[...dt,qe],p.cachedOptions.push(we),Me(we)),On(dt),we.created&&je(""),e.filterable&&!e.reserveKeyword&&(p.inputValue="")}else p.selectedLabel=c(we),!ln(e.modelValue,qe)&&On(qe),V.value=!1,Me(we),we.created||pt();ja()},lu=(we,qe)=>{let dt=e.modelValue.slice();const kt=At(dt,d(qe));kt>-1&&!Y.value&&(dt=[...e.modelValue.slice(0,kt),...e.modelValue.slice(kt+1)],p.cachedOptions.splice(kt,1),On(dt),t("remove-tag",d(qe)),ce(qe)),we.stopPropagation(),ja()},ja=()=>{var we;(we=E.value)==null||we.focus()},Ad=()=>{var we;if(V.value){V.value=!1,ke(()=>{var qe;return(qe=E.value)==null?void 0:qe.blur()});return}(we=E.value)==null||we.blur()},Pd=()=>{p.inputValue.length>0?p.inputValue="":V.value=!1},Ld=we=>Fu(we,qe=>!p.cachedOptions.some(dt=>d(dt)===qe&&f(dt))),Dd=we=>{const qe=Ht(we);if(!!e.multiple&&qe!==pe.delete&&p.inputValue.length===0){we.preventDefault();const dt=e.modelValue.slice(),kt=Ld(dt);if(kt<0)return;const Pn=dt[kt];dt.splice(kt,1);const Do=p.cachedOptions[kt];p.cachedOptions.splice(kt,1),ce(Do),On(dt),t("remove-tag",Pn)}},Bd=()=>{let we;Ee(e.modelValue)?we=[]:we=m.value,p.selectedLabel="",V.value=!1,On(we),t("clear"),pt(),ja()},Xl=(we,qe=void 0)=>{const dt=U.value;if(!["forward","backward"].includes(we)||Y.value||dt.length<=0||Ae.value||I.value)return;if(!V.value)return Ut();$t(qe)&&(qe=p.hoveringIndex);let kt=-1;we==="forward"?(kt=qe+1,kt>=dt.length&&(kt=0)):we==="backward"&&(kt=qe-1,(kt<0||kt>=dt.length)&&(kt=dt.length-1));const Pn=dt[kt];if(f(Pn)||Pn.type==="Group")return Xl(we,kt);p.hoveringIndex=kt,Wn(kt)},be=()=>{if(V.value)~p.hoveringIndex&&U.value[p.hoveringIndex]&&ql(U.value[p.hoveringIndex]);else return Ut()},Ge=we=>{p.hoveringIndex=we!=null?we:-1},Et=()=>{if(!e.multiple)p.hoveringIndex=U.value.findIndex(we=>Re(d(we))===Re(e.modelValue));else{const we=e.modelValue.length;if(we>0){const qe=e.modelValue[we-1];p.hoveringIndex=U.value.findIndex(dt=>Re(qe)===Re(d(dt)))}else p.hoveringIndex=-1}},en=we=>{if(p.inputValue=we.target.value,e.remote)g.value=!0,_e();else return he()},vn=we=>{if(V.value=!1,T.value){const qe=new FocusEvent("blur",we);D(qe)}},Jn=()=>(p.isBeforeHide=!1,ke(()=>{~ht.value&&Wn(ht.value)})),Wn=we=>{N.value.scrollToItem(we)},Ea=(we,qe)=>{const dt=Re(we);if(Tt.value.has(dt)){const{option:kt}=Tt.value.get(dt);return kt}if(qe&&qe.length){const kt=qe.find(Pn=>Re(d(Pn))===dt);if(kt)return kt}return{[u.value.value]:we,[u.value.label]:we}},Ya=we=>{var qe,dt;return(dt=(qe=Tt.value.get(d(we)))==null?void 0:qe.index)!=null?dt:-1},_r=(we=!1)=>{if(e.multiple)if(e.modelValue.length>0){const qe=p.cachedOptions.slice();p.cachedOptions.length=0,p.previousValue=e.modelValue.toString();for(const dt of e.modelValue){const kt=Ea(dt,qe);p.cachedOptions.push(kt)}}else p.cachedOptions=[],p.previousValue=void 0;else if(ae.value){p.previousValue=e.modelValue;const qe=U.value,dt=qe.findIndex(kt=>Re(d(kt))===Re(e.modelValue));~dt?p.selectedLabel=c(qe[dt]):(!p.selectedLabel||we)&&(p.selectedLabel=Re(e.modelValue))}else p.selectedLabel="",p.previousValue=void 0;pt(),et()};ue(()=>e.fitInputWidth,()=>{et()}),ue(V,we=>{we?(e.persistent||et(),je("")):(p.inputValue="",p.previousQuery=null,p.isBeforeHide=!0,Oe(""))}),ue(()=>e.modelValue,(we,qe)=>{var dt;(!we||Ee(we)&&we.length===0||e.multiple&&!ln(we.toString(),p.previousValue)||!e.multiple&&Re(we)!==Re(p.previousValue))&&_r(!0),!ln(we,qe)&&e.validateEvent&&((dt=r==null?void 0:r.validate)==null||dt.call(r,"change").catch(Pn=>void 0))},{deep:!0}),ue(()=>e.options,()=>{const we=E.value;(!we||we&&document.activeElement!==we)&&_r()},{deep:!0,flush:"post"}),ue(()=>U.value,()=>(et(),N.value&&ke(N.value.resetScrollTop))),lo(()=>{p.isBeforeHide||tt()}),lo(()=>{const{valueKey:we,options:qe}=e,dt=new Map;for(const kt of qe){const Pn=d(kt);let Do=Pn;if(Rt(Do)&&(Do=hn(Pn,we)),dt.get(Do))break;dt.set(Do,!0)}}),st(()=>{_r()}),Qt(w,nt),Qt(C,ct),Qt(M,Lo),Qt(R,ka),Qt(A,ea);let ru;return ue(()=>ut.value,we=>{we?ru=Qt(N,Lo).stop:(ru==null||ru(),ru=void 0),t("visible-change",we)}),{inputId:i,collapseTagSize:Ze,currentPlaceholder:Yt,expanded:V,emptyText:Ie,popupHeight:q,debounce:se,allOptions:B,allOptionsValueMap:Tt,filteredOptions:U,iconComponent:oe,iconReverse:fe,tagStyle:Ce,collapseTagStyle:Ve,popperSize:b,dropdownMenuVisible:ut,hasModelValue:ae,shouldShowPlaceholder:Ke,selectDisabled:Y,selectSize:Pe,needStatusIcon:J,showClearBtn:ie,states:p,isFocused:T,nsSelect:o,nsInput:a,inputRef:E,menuRef:N,tagMenuRef:R,tooltipRef:y,tagTooltipRef:S,selectRef:w,wrapperRef:M,selectionRef:C,prefixRef:_,suffixRef:O,collapseItemRef:A,popperRef:Be,validateState:re,validateIcon:j,showTagList:bt,collapseTagList:ve,debouncedOnInputChange:_e,deleteTag:lu,getLabel:c,getValue:d,getDisabled:f,getValueKey:Re,getIndex:Ya,handleClear:Bd,handleClickOutside:vn,handleDel:Dd,handleEsc:Pd,focus:ja,blur:Ad,handleMenuEnter:Jn,handleResize:nt,resetSelectionWidth:ct,updateTooltip:Lo,updateTagTooltip:ka,updateOptions:tt,toggleMenu:Ut,scrollTo:Wn,onInput:en,onKeyboardNavigate:Xl,onKeyboardSelect:be,onSelect:ql,onHover:Ge,handleCompositionStart:L,handleCompositionEnd:H,handleCompositionUpdate:K}};var UZ=YZ;const GZ=le({name:"ElSelectV2",components:{ElSelectMenu:KZ,ElTag:Wa,ElTooltip:Vn,ElIcon:$e},directives:{ClickOutside:ml},props:PZ,emits:DZ,setup(e,{emit:t}){const n=k(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return Ee(u)?c?u:d:c?d:u}),o=UZ(Lt({...In(e),modelValue:n}),t),{calculatorRef:a,inputStyle:l}=oc(),r=Bn();St(hd,{props:Lt({...In(e),height:o.popupHeight,modelValue:n}),expanded:o.expanded,tooltipRef:o.tooltipRef,contentId:r,onSelect:o.onSelect,onHover:o.onHover,onKeyboardNavigate:o.onKeyboardNavigate,onKeyboardSelect:o.onKeyboardSelect});const i=k(()=>e.multiple?o.states.cachedOptions.map(u=>o.getLabel(u)):o.states.selectedLabel);return{...o,modelValue:n,selectedLabel:i,calculatorRef:a,inputStyle:l,contentId:r,BORDER_HORIZONTAL_WIDTH:Kd}}}),qZ=["id","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],XZ=["textContent"],ZZ={key:1};function JZ(e,t,n,o,a,l){const r=It("el-tag"),i=It("el-tooltip"),u=It("el-icon"),c=It("el-select-menu"),d=zd("click-outside");return ot(($(),F("div",{ref:"selectRef",class:x([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=f=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=f=>e.states.inputHovering=!1)},[X(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=f=>e.states.isBeforeHide=!1)},{default:Q(()=>{var f,v;return[W("div",{ref:"wrapperRef",class:x([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[11]||(t[11]=Ye((...m)=>e.toggleMenu&&e.toggleMenu(...m),["prevent"]))},[e.$slots.prefix?($(),F("div",{key:0,ref:"prefixRef",class:x(e.nsSelect.e("prefix"))},[ee(e.$slots,"prefix")],2)):te("v-if",!0),W("div",{ref:"selectionRef",class:x([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?ee(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[($(!0),F(Fe,null,yt(e.showTagList,m=>($(),F("div",{key:e.getValueKey(e.getValue(m)),class:x(e.nsSelect.e("selected-item"))},[X(r,{closable:!e.selectDisabled&&!e.getDisabled(m),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ne(e.tagStyle),onClose:h=>e.deleteTag(h,m)},{default:Q(()=>[W("span",{class:x(e.nsSelect.e("tags-text"))},[ee(e.$slots,"label",{index:e.getIndex(m),label:e.getLabel(m),value:e.getValue(m)},()=>[Ct(ge(e.getLabel(m)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?($(),ne(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported},{default:Q(()=>[W("div",{ref:"collapseItemRef",class:x(e.nsSelect.e("selected-item"))},[X(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Ne(e.collapseTagStyle),"disable-transitions":""},{default:Q(()=>[W("span",{class:x(e.nsSelect.e("tags-text"))}," + "+ge(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:Q(()=>[W("div",{ref:"tagMenuRef",class:x(e.nsSelect.e("selection"))},[($(!0),F(Fe,null,yt(e.collapseTagList,m=>($(),F("div",{key:e.getValueKey(e.getValue(m)),class:x(e.nsSelect.e("selected-item"))},[X(r,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(m),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:h=>e.deleteTag(h,m)},{default:Q(()=>[W("span",{class:x(e.nsSelect.e("tags-text"))},[ee(e.$slots,"label",{index:e.getIndex(m),label:e.getLabel(m),value:e.getValue(m)},()=>[Ct(ge(e.getLabel(m)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):te("v-if",!0)]):te("v-if",!0),W("div",{class:x([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled)])},[ot(W("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=m=>e.states.inputValue=m),style:Ne(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:x([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[1]||(t[1]=(...m)=>e.onInput&&e.onInput(...m)),onCompositionstart:t[2]||(t[2]=(...m)=>e.handleCompositionStart&&e.handleCompositionStart(...m)),onCompositionupdate:t[3]||(t[3]=(...m)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...m)),onCompositionend:t[4]||(t[4]=(...m)=>e.handleCompositionEnd&&e.handleCompositionEnd(...m)),onKeydown:[t[5]||(t[5]=cn(Ye(m=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=cn(Ye(m=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=cn(Ye((...m)=>e.onKeyboardSelect&&e.onKeyboardSelect(...m),["stop","prevent"]),["enter"])),t[8]||(t[8]=cn(Ye((...m)=>e.handleEsc&&e.handleEsc(...m),["stop","prevent"]),["esc"])),t[9]||(t[9]=cn(Ye((...m)=>e.handleDel&&e.handleDel(...m),["stop"]),["delete"]))],onClick:t[10]||(t[10]=Ye((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},null,46,qZ),[[du,e.states.inputValue]]),e.filterable?($(),F("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:x(e.nsSelect.e("input-calculator")),textContent:ge(e.states.inputValue)},null,10,XZ)):te("v-if",!0)],2),e.shouldShowPlaceholder?($(),F("div",{key:1,class:x([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ee(e.$slots,"label",{key:0,index:(v=(f=e.allOptionsValueMap.get(e.modelValue))==null?void 0:f.index)!=null?v:-1,label:e.currentPlaceholder,value:e.modelValue},()=>[W("span",null,ge(e.currentPlaceholder),1)]):($(),F("span",ZZ,ge(e.currentPlaceholder),1))],2)):te("v-if",!0)],2),W("div",{ref:"suffixRef",class:x(e.nsSelect.e("suffix"))},[e.iconComponent?ot(($(),ne(u,{key:0,class:x([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Q(()=>[($(),ne(at(e.iconComponent)))]),_:1},8,["class"])),[[xt,!e.showClearBtn]]):te("v-if",!0),e.showClearBtn&&e.clearIcon?($(),ne(u,{key:1,class:x([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:Ye(e.handleClear,["prevent","stop"])},{default:Q(()=>[($(),ne(at(e.clearIcon)))]),_:1},8,["class","onClick"])):te("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?($(),ne(u,{key:2,class:x([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:Q(()=>[($(),ne(at(e.validateIcon)))]),_:1},8,["class"])):te("v-if",!0)],2)],2)]}),content:Q(()=>[X(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},vo({default:Q(f=>[ee(e.$slots,"default",Xa(wl(f)))]),_:2},[e.$slots.header?{name:"header",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=Ye(()=>{},["stop"]))},[ee(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","loading"))},[ee(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","empty"))},[ee(e.$slots,"empty",{},()=>[W("span",null,ge(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=Ye(()=>{},["stop"]))},[ee(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var QZ=ye(GZ,[["render",JZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);const D$=Qe(QZ),B$=me({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:G([Number,Object])}}),F$=me({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),eJ=le({name:"ElSkeletonItem",__name:"skeleton-item",props:F$,setup(e){const t=de("skeleton");return(n,o)=>($(),F("div",{class:x([s(t).e("item"),s(t).e(n.variant)])},[n.variant==="image"?($(),ne(s(EV),{key:0})):te("v-if",!0)],2))}});var md=ye(eJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const tJ=le({name:"ElSkeleton",__name:"skeleton",props:B$,setup(e,{expose:t}){const n=e,o=de("skeleton"),a=mw(Ft(n,"loading"),n.throttle);return t({uiLoading:a}),(l,r)=>s(a)?($(),F("div",rt({key:0,class:[s(o).b(),s(o).is("animated",l.animated)]},l.$attrs),[($(!0),F(Fe,null,yt(l.count,i=>($(),F(Fe,{key:i},[s(a)?ee(l.$slots,"template",{key:i},()=>[X(md,{class:x(s(o).is("first")),variant:"p"},null,8,["class"]),($(!0),F(Fe,null,yt(l.rows,u=>($(),ne(md,{key:u,class:x([s(o).e("paragraph"),s(o).is("last",u===l.rows&&l.rows>1)]),variant:"p"},null,8,["class"]))),128))]):te("v-if",!0)],64))),128))],16)):ee(l.$slots,"default",Xa(rt({key:1},l.$attrs)))}});var nJ=ye(tJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const V$=Qe(nJ,{SkeletonItem:md}),z$=sn(md),km=Symbol("sliderContextKey"),H$=me({modelValue:{type:G([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:En,inputSize:En,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:G(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:G(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:cl,default:"top"},marks:{type:G(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Yn(["ariaLabel"])}),Em=e=>xe(e)||Ee(e)&&e.every(xe),W$={[Ue]:Em,[yn]:Em,[ft]:Em},oJ=(e,t,n)=>{const o=P();return st(async()=>{e.range?(Ee(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!xe(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Mt(window,"resize",n),await ke(),n()}),{sliderWrapper:o}},aJ=e=>k(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,o)=>n-o).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),lJ=(e,t,n)=>{const{formItem:o}=An(),a=Zt(),l=P(),r=P(),i={firstButton:l,secondButton:r},u=nn(),c=k(()=>Math.min(t.firstValue,t.secondValue)),d=k(()=>Math.max(t.firstValue,t.secondValue)),f=k(()=>e.range?`${100*(d.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),v=k(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),m=k(()=>e.vertical?{height:e.height}:{}),h=k(()=>e.vertical?{height:f.value,bottom:v.value}:{width:f.value,left:v.value}),p=()=>{if(a.value){const A=a.value.getBoundingClientRect();t.sliderSize=A[e.vertical?"height":"width"]}},b=A=>{const I=e.min+A*(e.max-e.min)/100;if(!e.range)return l;let L;return Math.abs(c.value-I)<Math.abs(d.value-I)?L=t.firstValue<t.secondValue?"firstButton":"secondButton":L=t.firstValue>t.secondValue?"firstButton":"secondButton",i[L]},g=A=>{const I=b(A);return I.value.setPosition(A),I},w=A=>{t.firstValue=A!=null?A:e.min,y(e.range?[c.value,d.value]:A!=null?A:e.min)},C=A=>{t.secondValue=A,e.range&&y([c.value,d.value])},y=A=>{n(Ue,A),n(yn,A)},S=async()=>{await ke(),n(ft,e.range?[c.value,d.value]:e.modelValue)},E=A=>{var I,L,H,K,Y,M;if(u.value||t.dragging)return;p();let T=0;if(e.vertical){const D=(H=(L=(I=A.touches)==null?void 0:I.item(0))==null?void 0:L.clientY)!=null?H:A.clientY;T=(a.value.getBoundingClientRect().bottom-D)/t.sliderSize*100}else{const D=(M=(Y=(K=A.touches)==null?void 0:K.item(0))==null?void 0:Y.clientX)!=null?M:A.clientX,B=a.value.getBoundingClientRect().left;T=(D-B)/t.sliderSize*100}if(!(T<0||T>100))return g(T)};return{elFormItem:o,slider:a,firstButton:l,secondButton:r,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:m,barStyle:h,resetSize:p,setPosition:g,emitChange:S,onSliderWrapperPrevent:A=>{var I,L;(((I=i.firstButton.value)==null?void 0:I.dragging)||((L=i.secondButton.value)==null?void 0:L.dragging))&&A.preventDefault()},onSliderClick:A=>{E(A)&&S()},onSliderDown:async A=>{const I=E(A);I&&(await ke(),I.value.onButtonDown(A))},onSliderMarkerDown:A=>{if(u.value||t.dragging)return;g(A)&&S()},setFirstValue:w,setSecondValue:C}},rJ=(e,t,n)=>{const o=P(),a=P(!1),l=k(()=>t.value instanceof Function),r=k(()=>l.value&&t.value(e.modelValue)||e.modelValue),i=sa(()=>{n.value&&(a.value=!0)},50),u=sa(()=>{n.value&&(a.value=!1)},50);return{tooltip:o,tooltipVisible:a,formatValue:r,displayTooltip:i,hideTooltip:u}},sJ=(e,t,n)=>{const{disabled:o,min:a,max:l,step:r,showTooltip:i,persistent:u,precision:c,sliderSize:d,formatTooltip:f,emitChange:v,resetSize:m,updateDragging:h}=Te(km),{tooltip:p,tooltipVisible:b,formatValue:g,displayTooltip:w,hideTooltip:C}=rJ(e,f,i),y=P(),S=k(()=>`${(e.modelValue-a.value)/(l.value-a.value)*100}%`),E=k(()=>e.vertical?{bottom:S.value}:{left:S.value}),_=()=>{t.hovering=!0,w()},O=()=>{t.hovering=!1,t.dragging||C()},N=V=>{o.value||(V.preventDefault(),D(V),window.addEventListener("mousemove",B),window.addEventListener("touchmove",B),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),window.addEventListener("contextmenu",z),y.value.focus())},R=V=>{o.value||(t.newPosition=Number.parseFloat(S.value)+V/(l.value-a.value)*100,U(t.newPosition),v())},A=()=>{R(-r.value)},I=()=>{R(r.value)},L=()=>{R(-r.value*4)},H=()=>{R(r.value*4)},K=()=>{o.value||(U(0),v())},Y=()=>{o.value||(U(100),v())},M=V=>{const J=Ht(V);let q=!0;switch(J){case pe.left:case pe.down:A();break;case pe.right:case pe.up:I();break;case pe.home:K();break;case pe.end:Y();break;case pe.pageDown:L();break;case pe.pageUp:H();break;default:q=!1;break}q&&V.preventDefault()},T=V=>{let J,q;return V.type.startsWith("touch")?(q=V.touches[0].clientY,J=V.touches[0].clientX):(q=V.clientY,J=V.clientX),{clientX:J,clientY:q}},D=V=>{t.dragging=!0,t.isClick=!0;const{clientX:J,clientY:q}=T(V);e.vertical?t.startY=q:t.startX=J,t.startPosition=Number.parseFloat(S.value),t.newPosition=t.startPosition},B=V=>{if(t.dragging){t.isClick=!1,w(),m();let J;const{clientX:q,clientY:ae}=T(V);e.vertical?(t.currentY=ae,J=(t.startY-t.currentY)/d.value*100):(t.currentX=q,J=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+J,U(t.newPosition)}},z=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||C(),t.isClick||U(t.newPosition),v()},0),window.removeEventListener("mousemove",B),window.removeEventListener("touchmove",B),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),window.removeEventListener("contextmenu",z))},U=async V=>{if(V===null||Number.isNaN(+V))return;V=Xs(V,0,100);const J=Math.floor((l.value-a.value)/r.value),q=J*r.value/(l.value-a.value)*100,ae=q+(100-q)/2;let ie;if(V<q){const oe=q/J,fe=Math.round(V/oe);ie=a.value+fe*r.value}else V<ae?ie=a.value+J*r.value:ie=l.value;ie=Number.parseFloat(ie.toFixed(c.value)),ie!==e.modelValue&&n(Ue,ie),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await ke(),t.dragging&&w(),p.value.updatePopper()};return ue(()=>t.dragging,V=>{h(V)}),Mt(y,"touchstart",N,{passive:!1}),{disabled:o,button:y,tooltip:p,tooltipVisible:b,showTooltip:i,persistent:u,wrapperStyle:E,formatValue:g,handleMouseEnter:_,handleMouseLeave:O,onButtonDown:N,onKeyDown:M,setPosition:U}},iJ=(e,t,n,o)=>({stops:k(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const r=Math.ceil((e.max-e.min)/e.step),i=100*e.step/(e.max-e.min),u=Array.from({length:r-1}).map((c,d)=>(d+1)*i);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(o.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:r=>e.vertical?{bottom:`${r}%`}:{left:`${r}%`}}),uJ=(e,t,n,o,a,l)=>{const r=c=>{a(Ue,c),a(yn,c)},i=()=>e.range?![n.value,o.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,u=()=>{var c,d;e.min>e.max&&kn("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Ee(f)?f[1]<e.min?r([e.min,e.min]):f[0]>e.max?r([e.max,e.max]):f[0]<e.min?r([e.min,f[1]]):f[1]>e.max?r([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],i()&&(e.validateEvent&&((c=l==null?void 0:l.validate)==null||c.call(l,"change").catch(v=>void 0)),t.oldValue=f.slice())):!e.range&&xe(f)&&!Number.isNaN(f)&&(f<e.min?r(e.min):f>e.max?r(e.max):(t.firstValue=f,i()&&(e.validateEvent&&((d=l==null?void 0:l.validate)==null||d.call(l,"change").catch(v=>void 0)),t.oldValue=f)))};u(),ue(()=>t.dragging,c=>{c||u()}),ue(()=>e.modelValue,(c,d)=>{t.dragging||Ee(c)&&Ee(d)&&c.every((f,v)=>f===d[v])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),ue(()=>[e.min,e.max],()=>{u()})},cJ=me({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:cl,default:"top"}}),dJ={[Ue]:e=>xe(e)},fJ=["tabindex"],pJ=le({name:"ElSliderButton",__name:"button",props:cJ,emits:dJ,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("slider"),r=Lt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:o.modelValue}),i=k(()=>f.value?v.value:!1),{disabled:u,button:c,tooltip:d,showTooltip:f,persistent:v,tooltipVisible:m,wrapperStyle:h,formatValue:p,handleMouseEnter:b,handleMouseLeave:g,onButtonDown:w,onKeyDown:C,setPosition:y}=sJ(o,r,a),{hovering:S,dragging:E}=In(r);return t({onButtonDown:w,onKeyDown:C,setPosition:y,hovering:S,dragging:E}),(_,O)=>($(),F("div",{ref_key:"button",ref:c,class:x([s(l).e("button-wrapper"),{hover:s(S),dragging:s(E)}]),style:Ne(s(h)),tabindex:s(u)?void 0:0,onMouseenter:O[0]||(O[0]=(...N)=>s(b)&&s(b)(...N)),onMouseleave:O[1]||(O[1]=(...N)=>s(g)&&s(g)(...N)),onMousedown:O[2]||(O[2]=(...N)=>s(w)&&s(w)(...N)),onFocus:O[3]||(O[3]=(...N)=>s(b)&&s(b)(...N)),onBlur:O[4]||(O[4]=(...N)=>s(g)&&s(g)(...N)),onKeydown:O[5]||(O[5]=(...N)=>s(C)&&s(C)(...N))},[X(s(Vn),{ref_key:"tooltip",ref:d,visible:s(m),placement:_.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":_.tooltipClass,disabled:!s(f),persistent:i.value},{content:Q(()=>[W("span",null,ge(s(p)),1)]),default:Q(()=>[W("div",{class:x([s(l).e("button"),{hover:s(S),dragging:s(E)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,fJ))}});var K$=ye(pJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const vJ=me({mark:{type:G([String,Object]),default:void 0}});var hJ=le({name:"ElSliderMarker",props:vJ,setup(e){const t=de("slider"),n=k(()=>ze(e.mark)?e.mark:e.mark.label),o=k(()=>ze(e.mark)?void 0:e.mark.style);return()=>De("div",{class:t.e("marks-text"),style:o.value},n.value)}});const mJ=["id","role","aria-label","aria-labelledby"],gJ={key:1},bJ=le({name:"ElSlider",__name:"slider",props:H$,emits:W$,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("slider"),{t:r}=wt(),i=Lt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:u,slider:c,firstButton:d,secondButton:f,sliderDisabled:v,minValue:m,maxValue:h,runwayStyle:p,barStyle:b,resetSize:g,emitChange:w,onSliderWrapperPrevent:C,onSliderClick:y,onSliderDown:S,onSliderMarkerDown:E,setFirstValue:_,setSecondValue:O}=lJ(o,i,a),{stops:N,getStopStyle:R}=iJ(o,i,m,h),{inputId:A,isLabeledByFormItem:I}=So(o,{formItemContext:u}),L=bn(),H=k(()=>o.inputSize||L.value),K=k(()=>o.ariaLabel||r("el.slider.defaultLabel",{min:o.min,max:o.max})),Y=k(()=>o.range?o.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):K.value),M=k(()=>o.formatValueText?o.formatValueText(J.value):`${J.value}`),T=k(()=>o.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),D=k(()=>o.formatValueText?o.formatValueText(q.value):`${q.value}`),B=k(()=>[l.b(),l.m(L.value),l.is("vertical",o.vertical),{[l.m("with-input")]:o.showInput}]),z=aJ(o);uJ(o,i,m,h,a,u);const U=k(()=>{const oe=[o.min,o.max,o.step].map(fe=>{const re=`${fe}`.split(".")[1];return re?re.length:0});return Math.max.apply(null,oe)}),{sliderWrapper:V}=oJ(o,i,g),{firstValue:J,secondValue:q,sliderSize:ae}=In(i),ie=oe=>{i.dragging=oe};return Mt(V,"touchstart",C,{passive:!1}),Mt(V,"touchmove",C,{passive:!1}),St(km,{...In(o),sliderSize:ae,disabled:v,precision:U,emitChange:w,resetSize:g,updateDragging:ie}),t({onSliderClick:y}),(oe,fe)=>{var re,j;return $(),F("div",{id:oe.range?s(A):void 0,ref_key:"sliderWrapper",ref:V,class:x(B.value),role:oe.range?"group":void 0,"aria-label":oe.range&&!s(I)?K.value:void 0,"aria-labelledby":oe.range&&s(I)?(re=s(u))==null?void 0:re.labelId:void 0},[W("div",{ref_key:"slider",ref:c,class:x([s(l).e("runway"),{"show-input":oe.showInput&&!oe.range},s(l).is("disabled",s(v))]),style:Ne(s(p)),onMousedown:fe[0]||(fe[0]=(...se)=>s(S)&&s(S)(...se)),onTouchstartPassive:fe[1]||(fe[1]=(...se)=>s(S)&&s(S)(...se))},[W("div",{class:x(s(l).e("bar")),style:Ne(s(b))},null,6),X(K$,{id:oe.range?void 0:s(A),ref_key:"firstButton",ref:d,"model-value":s(J),vertical:oe.vertical,"tooltip-class":oe.tooltipClass,placement:oe.placement,role:"slider","aria-label":oe.range||!s(I)?Y.value:void 0,"aria-labelledby":!oe.range&&s(I)?(j=s(u))==null?void 0:j.labelId:void 0,"aria-valuemin":oe.min,"aria-valuemax":oe.range?s(q):oe.max,"aria-valuenow":s(J),"aria-valuetext":M.value,"aria-orientation":oe.vertical?"vertical":"horizontal","aria-disabled":s(v),"onUpdate:modelValue":s(_)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),oe.range?($(),ne(K$,{key:0,ref_key:"secondButton",ref:f,"model-value":s(q),vertical:oe.vertical,"tooltip-class":oe.tooltipClass,placement:oe.placement,role:"slider","aria-label":T.value,"aria-valuemin":s(J),"aria-valuemax":oe.max,"aria-valuenow":s(q),"aria-valuetext":D.value,"aria-orientation":oe.vertical?"vertical":"horizontal","aria-disabled":s(v),"onUpdate:modelValue":s(O)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):te("v-if",!0),oe.showStops?($(),F("div",gJ,[($(!0),F(Fe,null,yt(s(N),(se,Se)=>($(),F("div",{key:Se,class:x(s(l).e("stop")),style:Ne(s(R)(se))},null,6))),128))])):te("v-if",!0),s(z).length>0?($(),F(Fe,{key:2},[W("div",null,[($(!0),F(Fe,null,yt(s(z),(se,Se)=>($(),F("div",{key:Se,style:Ne(s(R)(se.position)),class:x([s(l).e("stop"),s(l).e("marks-stop")])},null,6))),128))]),W("div",{class:x(s(l).e("marks"))},[($(!0),F(Fe,null,yt(s(z),(se,Se)=>($(),ne(s(hJ),{key:Se,mark:se.mark,style:Ne(s(R)(se.position)),onMousedown:Ye(Ie=>s(E)(se.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):te("v-if",!0)],38),oe.showInput&&!oe.range?($(),ne(s(Qh),{key:0,ref:"input","model-value":s(J),class:x(s(l).e("input")),step:oe.step,disabled:s(v),controls:oe.showInputControls,min:oe.min,max:oe.max,precision:U.value,size:H.value,"onUpdate:modelValue":s(_),onChange:s(w)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):te("v-if",!0)],10,mJ)}}});var yJ=ye(bJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const j$=Qe(yJ),Y$=me({prefixCls:{type:String}}),U$=le({name:"ElSpaceItem",props:Y$,setup(e,{slots:t}){const n=de("space"),o=k(()=>`${e.prefixCls||n.b()}__item`);return()=>De("div",{class:o.value},ee(t,"default"))}}),G$={small:8,default:12,large:16};function q$(e){const t=de("space"),n=k(()=>[t.b(),t.m(e.direction),e.class]),o=P(0),a=P(0),l=k(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap"}:{},u={alignItems:e.alignment},c={rowGap:`${a.value}px`,columnGap:`${o.value}px`};return[i,u,c,e.style]}),r=k(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return lo(()=>{const{size:i="small",wrap:u,direction:c,fill:d}=e;if(Ee(i)){const[f=0,v=0]=i;o.value=f,a.value=v}else{let f;xe(i)?f=i:f=G$[i||"small"]||G$.small,(u||d)&&c==="horizontal"?o.value=a.value=f:c==="horizontal"?(o.value=f,a.value=0):(a.value=f,o.value=0)}}),{classes:n,containerStyle:l,itemStyle:r}}const X$=me({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:G([String,Object,Array]),default:""},style:{type:G([String,Array,Object]),default:""},alignment:{type:G(String),default:"center"},prefixCls:{type:String},spacer:{type:G([Object,String,Number,Array]),default:null,validator:e=>Jt(e)||xe(e)||ze(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:ta,validator:e=>xe(e)||Ee(e)&&e.length===2&&e.every(xe)}}),wJ=le({name:"ElSpace",props:X$,setup(e,{slots:t}){const{classes:n,containerStyle:o,itemStyle:a}=q$(e);function l(r,i="",u=[]){const{prefixCls:c}=e;return r.forEach((d,f)=>{Tp(d)?Ee(d.children)&&d.children.forEach((v,m)=>{Tp(v)&&Ee(v.children)?l(v.children,`${i+m}-`,u):Jt(v)&&(v==null?void 0:v.type)===Ua?u.push(v):u.push(X(U$,{style:a.value,prefixCls:c,key:`nested-${i+m}`},{default:()=>[v]},Yo.PROPS|Yo.STYLE,["style","prefixCls"]))}):QV(d)&&u.push(X(U$,{style:a.value,prefixCls:c,key:`LoopKey${i+f}`},{default:()=>[d]},Yo.PROPS|Yo.STYLE,["style","prefixCls"]))}),u}return()=>{var r;const{spacer:i,direction:u}=e,c=ee(t,"default",{key:0},()=>[]);if(((r=c.children)!=null?r:[]).length===0)return null;if(Ee(c.children)){let d=l(c.children);if(i){const f=d.length-1;d=d.reduce((v,m,h)=>{const p=[...v,m];return h!==f&&p.push(X("span",{style:[a.value,u==="vertical"?"width: 100%":null],key:h},[Jt(i)?i:Ct(i,Yo.TEXT)],Yo.STYLE)),p},[])}return X("div",{class:n.value,style:o.value},d,Yo.STYLE|Yo.CLASS)}return c.children}}}),Z$=Qe(wJ),J$=me({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:G([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:G([String,Object,Array])}}),CJ=le({name:"ElStatistic",__name:"statistic",props:J$,setup(e,{expose:t}){const n=e,o=de("statistic"),a=k(()=>{const{value:l,formatter:r,precision:i,decimalSeparator:u,groupSeparator:c}=n;if(lt(r))return r(l);if(!xe(l)||Number.isNaN(l))return l;let[d,f=""]=String(l).split(".");return f=f.padEnd(i,"0").slice(0,i>0?i:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,f].join(f?u:"")});return t({displayValue:a}),(l,r)=>($(),F("div",{class:x(s(o).b())},[l.$slots.title||l.title?($(),F("div",{key:0,class:x(s(o).e("head"))},[ee(l.$slots,"title",{},()=>[Ct(ge(l.title),1)])],2)):te("v-if",!0),W("div",{class:x(s(o).e("content"))},[l.$slots.prefix||l.prefix?($(),F("div",{key:0,class:x(s(o).e("prefix"))},[ee(l.$slots,"prefix",{},()=>[W("span",null,ge(l.prefix),1)])],2)):te("v-if",!0),W("span",{class:x(s(o).e("number")),style:Ne(l.valueStyle)},ge(a.value),7),l.$slots.suffix||l.suffix?($(),F("div",{key:1,class:x(s(o).e("suffix"))},[ee(l.$slots,"suffix",{},()=>[W("span",null,ge(l.suffix),1)])],2)):te("v-if",!0)],2)],2))}});var SJ=ye(CJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const $m=Qe(SJ),Q$=me({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:G([Number,Object]),default:0},valueStyle:{type:G([String,Object,Array])}}),e_={finish:()=>!0,[ft]:e=>xe(e)},kJ=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],t_=e=>xe(e)?new Date(e).getTime():e.valueOf(),n_=(e,t)=>{let n=e;const o=/\[([^\]]*)]/g;return kJ.reduce((l,[r,i])=>{const u=new RegExp(`${r}+(?![^\\[\\]]*\\])`,"g");if(u.test(l)){const c=Math.floor(n/i);return n-=c*i,l.replace(u,d=>String(c).padStart(d.length,"0"))}return l},t).replace(o,"$1")},EJ=le({name:"ElCountdown",__name:"countdown",props:Q$,emits:e_,setup(e,{expose:t,emit:n}){const o=e,a=n;let l;const r=P(0),i=k(()=>n_(r.value,o.format)),u=f=>n_(f,o.format),c=()=>{l&&(rl(l),l=void 0)},d=()=>{const f=t_(o.value),v=()=>{let m=f-Date.now();a(ft,m),m<=0?(m=0,c(),a("finish")):l=Ma(v),r.value=m};l=Ma(v)};return st(()=>{r.value=t_(o.value)-Date.now(),ue(()=>[o.value,o.format],()=>{c(),d()},{immediate:!0})}),Dt(()=>{c()}),t({displayValue:i}),(f,v)=>($(),ne(s($m),{value:r.value,title:f.title,prefix:f.prefix,suffix:f.suffix,"value-style":f.valueStyle,formatter:u},vo({_:2},[yt(f.$slots,(m,h)=>({name:h,fn:Q(()=>[ee(f.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var $J=ye(EJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const o_=Qe($J),a_=me({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),l_={[ft]:(e,t)=>[e,t].every(xe)},_m="ElSteps",_J=le({name:"ElSteps",__name:"steps",props:a_,emits:l_,setup(e,{emit:t}){const n=e,o=t,a=de("steps"),{children:l,addChild:r,removeChild:i,ChildrenSorter:u}=Ci(it(),"ElStep");return ue(l,()=>{l.value.forEach((c,d)=>{c.setIndex(d)})}),St(_m,{props:n,steps:l,addStep:r,removeStep:i}),ue(()=>n.active,(c,d)=>{o(ft,c,d)}),(c,d)=>($(),F("div",{class:x([s(a).b(),s(a).m(c.simple?"simple":c.direction)])},[ee(c.$slots,"default"),X(s(u))],2))}});var TJ=ye(_J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const r_=me({title:{type:String,default:""},icon:{type:zt},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),OJ=le({name:"ElStep",__name:"item",props:r_,setup(e){const t=e,n=de("step"),o=P(-1),a=P({}),l=P(""),r=Te(_m),i=it();let u=0,c=0;st(()=>{ue([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([O],[N])=>{c=N||0,u=O-c,E(O)},{immediate:!0})});const d=k(()=>t.status||l.value),f=k(()=>{const O=r.steps.value[o.value-1];return O?O.internalStatus.value:"wait"}),v=k(()=>r.props.alignCenter),m=k(()=>r.props.direction==="vertical"),h=k(()=>r.props.simple),p=k(()=>r.steps.value.length),b=k(()=>{var O;return((O=r.steps.value[p.value-1])==null?void 0:O.uid)===i.uid}),g=k(()=>h.value?"":r.props.space),w=k(()=>[n.b(),n.is(h.value?"simple":r.props.direction),n.is("flex",b.value&&!g.value&&!v.value),n.is("center",v.value&&!m.value&&!h.value)]),C=k(()=>{const O={flexBasis:xe(g.value)?`${g.value}px`:g.value?g.value:`${100/(p.value-(v.value?0:1))}%`};return m.value||b.value&&(O.maxWidth=`${100/p.value}%`),O}),y=O=>{o.value=O},S=O=>{const N=O==="wait",A={transitionDelay:`${Math.abs(u)===1?0:u>0?(o.value+1-c)*150:-(o.value+1-r.props.active)*150}ms`},I=O===r.props.processStatus||N?0:100;A.borderWidth=I&&!h.value?"1px":0,A[r.props.direction==="vertical"?"height":"width"]=`${I}%`,a.value=A},E=O=>{O>o.value?l.value=r.props.finishStatus:O===o.value&&f.value!=="error"?l.value=r.props.processStatus:l.value="wait";const N=r.steps.value[o.value-1];N&&N.calcProgress(l.value)},_={uid:i.uid,getVnode:()=>i.vnode,currentStatus:d,internalStatus:l,setIndex:y,calcProgress:S};return r.addStep(_),Dt(()=>{r.removeStep(_)}),(O,N)=>($(),F("div",{style:Ne(C.value),class:x(w.value)},[te(" icon & line "),W("div",{class:x([s(n).e("head"),s(n).is(d.value)])},[h.value?te("v-if",!0):($(),F("div",{key:0,class:x(s(n).e("line"))},[W("i",{class:x(s(n).e("line-inner")),style:Ne(a.value)},null,6)],2)),W("div",{class:x([s(n).e("icon"),s(n).is(O.icon||O.$slots.icon?"icon":"text")])},[ee(O.$slots,"icon",{},()=>[O.icon?($(),ne(s($e),{key:0,class:x(s(n).e("icon-inner"))},{default:Q(()=>[($(),ne(at(O.icon)))]),_:1},8,["class"])):d.value==="success"?($(),ne(s($e),{key:1,class:x([s(n).e("icon-inner"),s(n).is("status")])},{default:Q(()=>[X(s(si))]),_:1},8,["class"])):d.value==="error"?($(),ne(s($e),{key:2,class:x([s(n).e("icon-inner"),s(n).is("status")])},{default:Q(()=>[X(s(jo))]),_:1},8,["class"])):h.value?te("v-if",!0):($(),F("div",{key:3,class:x(s(n).e("icon-inner"))},ge(o.value+1),3))])],2)],2),te(" title & description "),W("div",{class:x(s(n).e("main"))},[W("div",{class:x([s(n).e("title"),s(n).is(d.value)])},[ee(O.$slots,"title",{},()=>[Ct(ge(O.title),1)])],2),h.value?($(),F("div",{key:0,class:x(s(n).e("arrow"))},null,2)):($(),F("div",{key:1,class:x([s(n).e("description"),s(n).is(d.value)])},[ee(O.$slots,"description",{},()=>[Ct(ge(O.description),1)])],2))],2)],6))}});var s_=ye(OJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const i_=Qe(TJ,{Step:s_}),u_=sn(s_),c_=me({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:K1},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:zt},activeActionIcon:{type:zt},activeIcon:{type:zt},inactiveIcon:{type:zt},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:G(Function)},id:String,tabindex:{type:[String,Number]},...Yn(["ariaLabel"])}),d_={[Ue]:e=>Vt(e)||ze(e)||xe(e),[ft]:e=>Vt(e)||ze(e)||xe(e),[yn]:e=>Vt(e)||ze(e)||xe(e)},RJ=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],xJ=["aria-hidden"],IJ={key:1},MJ={key:1},NJ=["aria-hidden"],f_="ElSwitch",AJ=le({name:f_,__name:"switch",props:c_,emits:d_,setup(e,{expose:t,emit:n}){const o=e,a=n,{formItem:l}=An(),r=bn(),i=de("switch"),{inputId:u}=So(o,{formItemContext:l}),c=nn(k(()=>{if(o.loading)return!0})),d=P(o.modelValue!==!1),f=Zt(),v=k(()=>[i.b(),i.m(r.value),i.is("disabled",c.value),i.is("checked",g.value)]),m=k(()=>[i.e("label"),i.em("label","left"),i.is("active",!g.value)]),h=k(()=>[i.e("label"),i.em("label","right"),i.is("active",g.value)]),p=k(()=>({width:rn(o.width)}));ue(()=>o.modelValue,()=>{d.value=!0});const b=k(()=>d.value?o.modelValue:!1),g=k(()=>b.value===o.activeValue);[o.activeValue,o.inactiveValue].includes(b.value)||(a(Ue,o.inactiveValue),a(ft,o.inactiveValue),a(yn,o.inactiveValue)),ue(g,S=>{var E;f.value.checked=S,o.validateEvent&&((E=l==null?void 0:l.validate)==null||E.call(l,"change").catch(_=>void 0))});const w=()=>{const S=g.value?o.inactiveValue:o.activeValue;a(Ue,S),a(ft,S),a(yn,S),ke(()=>{f.value.checked=g.value})},C=()=>{if(c.value)return;const{beforeChange:S}=o;if(!S){w();return}const E=S();[Bs(E),Vt(E)].includes(!0)||kn(f_,"beforeChange must return type `Promise<boolean>` or `boolean`"),Bs(E)?E.then(O=>{O&&w()}).catch(O=>{}):E&&w()},y=()=>{var S,E;(E=(S=f.value)==null?void 0:S.focus)==null||E.call(S)};return st(()=>{f.value.checked=g.value}),t({focus:y,checked:g}),(S,E)=>($(),F("div",{class:x(v.value),onClick:Ye(C,["prevent"])},[W("input",{id:s(u),ref_key:"input",ref:f,class:x(s(i).e("input")),type:"checkbox",role:"switch","aria-checked":g.value,"aria-disabled":s(c),"aria-label":S.ariaLabel,name:S.name,"true-value":S.activeValue,"false-value":S.inactiveValue,disabled:s(c),tabindex:S.tabindex,onChange:w,onKeydown:cn(C,["enter"])},null,42,RJ),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText||S.$slots.inactive)?($(),F("span",{key:0,class:x(m.value)},[ee(S.$slots,"inactive",{},()=>[S.inactiveIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.inactiveIcon)))]),_:1})):te("v-if",!0),!S.inactiveIcon&&S.inactiveText?($(),F("span",{key:1,"aria-hidden":g.value},ge(S.inactiveText),9,xJ)):te("v-if",!0)])],2)):te("v-if",!0),W("span",{class:x(s(i).e("core")),style:Ne(p.value)},[S.inlinePrompt?($(),F("div",{key:0,class:x(s(i).e("inner"))},[g.value?($(),F("div",{key:1,class:x(s(i).e("inner-wrapper"))},[ee(S.$slots,"active",{},()=>[S.activeIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.activeIcon)))]),_:1})):te("v-if",!0),!S.activeIcon&&S.activeText?($(),F("span",MJ,ge(S.activeText),1)):te("v-if",!0)])],2)):($(),F("div",{key:0,class:x(s(i).e("inner-wrapper"))},[ee(S.$slots,"inactive",{},()=>[S.inactiveIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.inactiveIcon)))]),_:1})):te("v-if",!0),!S.inactiveIcon&&S.inactiveText?($(),F("span",IJ,ge(S.inactiveText),1)):te("v-if",!0)])],2))],2)):te("v-if",!0),W("div",{class:x(s(i).e("action"))},[S.loading?($(),ne(s($e),{key:0,class:x(s(i).is("loading"))},{default:Q(()=>[X(s(Pa))]),_:1},8,["class"])):g.value?ee(S.$slots,"active-action",{key:1},()=>[S.activeActionIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.activeActionIcon)))]),_:1})):te("v-if",!0)]):g.value?te("v-if",!0):ee(S.$slots,"inactive-action",{key:2},()=>[S.inactiveActionIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.inactiveActionIcon)))]),_:1})):te("v-if",!0)])],2)],6),!S.inlinePrompt&&(S.activeIcon||S.activeText||S.$slots.active)?($(),F("span",{key:1,class:x(h.value)},[ee(S.$slots,"active",{},()=>[S.activeIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.activeIcon)))]),_:1})):te("v-if",!0),!S.activeIcon&&S.activeText?($(),F("span",{key:1,"aria-hidden":!g.value},ge(S.activeText),9,NJ)):te("v-if",!0)])],2)):te("v-if",!0)],2))}});var PJ=ye(AJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const p_=Qe(PJ),Tm=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},LJ=function(e,t,n,o,a){if(!t&&!o&&(!a||Ee(a)&&!a.length))return e;ze(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const l=o?null:function(i,u){return a?Uf(Nn(a),c=>ze(c)?hn(i,c):c(i,u,e)):(t!=="$key"&&Rt(i)&&"$value"in i&&(i=i.$value),[Rt(i)?t?hn(i,t):null:i])},r=function(i,u){var c,d,f,v,m,h;if(o)return o(i.value,u.value);for(let p=0,b=(d=(c=i.key)==null?void 0:c.length)!=null?d:0;p<b;p++){if(((f=i.key)==null?void 0:f[p])<((v=u.key)==null?void 0:v[p]))return-1;if(((m=i.key)==null?void 0:m[p])>((h=u.key)==null?void 0:h[p]))return 1}return 0};return e.map((i,u)=>({value:i,index:u,key:l?l(i,u):null})).sort((i,u)=>{let c=r(i,u);return c||(c=i.index-u.index),c*+n}).map(i=>i.value)},v_=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},DJ=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const a=e.columns[o];if(a.columnKey===t){n=a;break}}return n||kn("ElTable",`No column matching with column-key: ${t}`),n},h_=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?v_(e,o[0]):null},Xn=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(ze(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const a of n)o=o[a];return`${o}`}else if(lt(t))return t.call(null,e);return""},Ss=function(e,t,n=!1,o="children"){const a=e||[],l={};return a.forEach((r,i)=>{if(l[Xn(r,t)]={row:r,index:i},n){const u=r[o];Ee(u)&&Object.assign(l,Ss(u,t,!0,o))}}),l};function BJ(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(Ln(t,o)){const a=t[o];$t(a)||(n[o]=a)}return n}function Om(e){return e===""||$t(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function m_(e){return e===""||$t(e)||(e=Om(e),Number.isNaN(e)&&(e=80)),e}function FJ(e){return xe(e)?e:ze(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function VJ(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function gd(e,t,n,o,a,l,r){let i=l!=null?l:0,u=!1;const d=(()=>{if(!r)return e.indexOf(t);const p=Xn(t,r);return e.findIndex(b=>Xn(b,r)===p)})(),f=d!==-1,v=a==null?void 0:a.call(null,t,i),m=p=>{p==="add"?e.push(t):e.splice(d,1),u=!0},h=p=>{let b=0;const g=(o==null?void 0:o.children)&&p[o.children];return g&&Ee(g)&&(b+=g.length,g.forEach(w=>{b+=h(w)})),b};return(!a||v)&&(Vt(n)?n&&!f?m("add"):!n&&f&&m("remove"):m(f?"remove":"add")),!(o!=null&&o.checkStrictly)&&(o==null?void 0:o.children)&&Ee(t[o.children])&&t[o.children].forEach(p=>{const b=gd(e,p,n!=null?n:!f,o,a,i+1,r);i+=h(p)+1,b&&(u=b)}),u}function zJ(e,t,n="children",o="hasChildren",a=!1){const l=i=>!(Ee(i)&&i.length);function r(i,u,c){t(i,u,c),u.forEach(d=>{if(d[o]&&a){t(d,null,c+1);return}const f=d[n];l(f)||r(d,f,c+1)})}e.forEach(i=>{if(i[o]&&a){t(i,null,0);return}const u=i[n];l(u)||r(i,u,0)})}const HJ=(e,t,n,o)=>{const a={strategy:"fixed",...e.popperOptions},l=lt(o==null?void 0:o.tooltipFormatter)?o.tooltipFormatter({row:n,column:o,cellValue:ri(n,o.property).value}):void 0;return Jt(l)?{slotContent:l,content:null,...e,popperOptions:a}:{slotContent:null,content:l!=null?l:t,...e,popperOptions:a}};let ao=null;function WJ(e,t,n,o,a,l){var r;const i=HJ(e,t,n,o),u={...i,slotContent:void 0};if((ao==null?void 0:ao.trigger)===a){const h=(r=ao.vm)==null?void 0:r.component;tp(h==null?void 0:h.props,u),h&&i.slotContent&&(h.slots.content=()=>[i.slotContent]);return}ao==null||ao();const c=l==null?void 0:l.refs.tableWrapper,d=c==null?void 0:c.dataset.prefix,f=X(Vn,{virtualTriggering:!0,virtualRef:a,appendTo:c,placement:"top",transition:"none",offset:0,hideAfter:0,...u},i.slotContent?{content:()=>i.slotContent}:void 0);f.appContext={...l.appContext,...l};const v=document.createElement("div");Sl(f,v),f.component.exposed.onOpen();const m=c==null?void 0:c.querySelector(`.${d}-scrollbar__wrap`);ao=()=>{var h,p;(p=(h=f.component)==null?void 0:h.exposed)!=null&&p.onClose&&f.component.exposed.onClose(),Sl(null,v);const b=ao;m==null||m.removeEventListener("scroll",b),b.trigger=void 0,b.vm=void 0,ao=null},ao.trigger=a!=null?a:void 0,ao.vm=f,m==null||m.addEventListener("scroll",ao)}function g_(e){return e.children?Uf(e.children,g_):[e]}function b_(e,t){return e+t.colSpan}const y_=(e,t,n,o)=>{let a=0,l=e;const r=n.states.columns.value;if(o){const u=g_(o[e]);a=r.slice(0,r.indexOf(u[0])).reduce(b_,0),l=a+u.reduce(b_,0)-1}else a=e;let i;switch(t){case"left":l<n.states.fixedLeafColumnsLength.value&&(i="left");break;case"right":a>=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:l<n.states.fixedLeafColumnsLength.value?i="left":a>=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:a,after:l}:{}},Rm=(e,t,n,o,a,l=0)=>{const r=[],{direction:i,start:u,after:c}=y_(t,n,o,a);if(i){const d=i==="left";r.push(`${e}-fixed-column--${i}`),d&&c+l===o.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!d&&u-l===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function w_(e,t){return e+(zr(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const xm=(e,t,n,o)=>{const{direction:a,start:l=0,after:r=0}=y_(e,t,n,o);if(!a)return;const i={},u=a==="left",c=n.states.columns.value;return u?i.left=c.slice(0,l).reduce(w_,0):i.right=c.slice(r+1).reverse().reduce(w_,0),i},ks=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function C_(e){return e.some(t=>Jt(t)?!(t.type===Ua||t.type===Fe&&!C_(t.children)):!0)?e:null}function KJ(e){const t=it(),n=P(!1),o=P([]);return{updateExpandRows:()=>{const u=e.data.value||[],c=e.rowKey.value;if(n.value)o.value=u.slice();else if(c){const d=Ss(o.value,c);o.value=u.reduce((f,v)=>{const m=Xn(v,c);return d[m]&&f.push(v),f},[])}else o.value=[]},toggleRowExpansion:(u,c)=>{gd(o.value,u,c,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",u,o.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const c=e.data.value||[],d=e.rowKey.value,f=Ss(c,d);o.value=u.reduce((v,m)=>{const h=f[m];return h&&v.push(h.row),v},[])},isRowExpanded:u=>{const c=e.rowKey.value;return c?!!Ss(o.value,c)[Xn(u,c)]:o.value.includes(u)},states:{expandRows:o,defaultExpandAll:n}}}function jJ(e){const t=it(),n=P(null),o=P(null),a=c=>{t.store.assertRowKey(),n.value=c,r(c)},l=()=>{n.value=null},r=c=>{var d;const{data:f,rowKey:v}=e;let m=null;v.value&&(m=(d=(s(f)||[]).find(h=>Xn(h,v.value)===c))!=null?d:null),o.value=m!=null?m:null,t.emit("current-change",o.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:l,setCurrentRowByKey:r,updateCurrentRow:c=>{const d=o.value;if(c&&c!==d){o.value=c,t.emit("current-change",o.value,d);return}!c&&d&&(o.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],f=o.value;if(f&&!d.includes(f)){if(c){const v=Xn(f,c);r(v)}else o.value=null;zr(o.value)&&t.emit("current-change",null,f)}else n.value&&(r(n.value),l())},states:{_currentRowKey:n,currentRow:o}}}function YJ(e){const t=P([]),n=P({}),o=P(16),a=P(!1),l=P({}),r=P("hasChildren"),i=P("children"),u=P(!1),c=it(),d=k(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return v(y)}),f=k(()=>{const y=e.rowKey.value,S=Object.keys(l.value),E={};return S.length&&S.forEach(_=>{if(l.value[_].length){const O={children:[]};l.value[_].forEach(N=>{const R=Xn(N,y);O.children.push(R),N[r.value]&&!E[R]&&(E[R]={children:[]})}),E[_]=O}}),E}),v=y=>{const S=e.rowKey.value,E={};return zJ(y,(_,O,N)=>{const R=Xn(_,S);Ee(O)?E[R]={children:O.map(A=>Xn(A,S)),level:N}:a.value&&(E[R]={children:[],lazy:!0,level:N})},i.value,r.value,a.value),E},m=(y=!1,S)=>{var E,_;S||(S=(E=c.store)==null?void 0:E.states.defaultExpandAll.value);const O=d.value,N=f.value,R=Object.keys(O),A={};if(R.length){const I=s(n),L=[],H=(Y,M)=>{if(y)return t.value?S||t.value.includes(M):!!(S||(Y==null?void 0:Y.expanded));{const T=S||t.value&&t.value.includes(M);return!!((Y==null?void 0:Y.expanded)||T)}};R.forEach(Y=>{const M=I[Y],T={...O[Y]};if(T.expanded=H(M,Y),T.lazy){const{loaded:D=!1,loading:B=!1}=M||{};T.loaded=!!D,T.loading=!!B,L.push(Y)}A[Y]=T});const K=Object.keys(N);a.value&&K.length&&L.length&&K.forEach(Y=>{var M;const T=I[Y],D=N[Y].children;if(L.includes(Y)){if(((M=A[Y].children)==null?void 0:M.length)!==0)throw new Error("[ElTable]children must be an empty array.");A[Y].children=D}else{const{loaded:B=!1,loading:z=!1}=T||{};A[Y]={lazy:!0,loaded:!!B,loading:!!z,expanded:H(T,Y),children:D,level:void 0}}})}n.value=A,(_=c.store)==null||_.updateTableScrollY()};ue(()=>t.value,()=>{m(!0)}),ue(()=>d.value,()=>{m()}),ue(()=>f.value,()=>{m()});const h=y=>{t.value=y,m()},p=y=>a.value&&y&&"loaded"in y&&!y.loaded,b=(y,S)=>{c.store.assertRowKey();const E=e.rowKey.value,_=Xn(y,E),O=_&&n.value[_];if(_&&O&&"expanded"in O){const N=O.expanded;S=$t(S)?!O.expanded:S,n.value[_].expanded=S,N!==S&&c.emit("expand-change",y,S),S&&p(O)&&w(y,_,O),c.store.updateTableScrollY()}},g=y=>{c.store.assertRowKey();const S=e.rowKey.value,E=Xn(y,S),_=n.value[E];p(_)?w(y,E,_):b(y,void 0)},w=(y,S,E)=>{const{load:_}=c.props;_&&!n.value[S].loaded&&(n.value[S].loading=!0,_(y,E,O=>{if(!Ee(O))throw new TypeError("[ElTable] data must be an array");n.value[S].loading=!1,n.value[S].loaded=!0,n.value[S].expanded=!0,O.length&&(l.value[S]=O),c.emit("expand-change",y,!0)}))};return{loadData:w,loadOrToggle:g,toggleTreeExpansion:b,updateTreeExpandKeys:h,updateTreeData:m,updateKeyChildren:(y,S)=>{const{lazy:E,rowKey:_}=c.props;if(!!E){if(!_)throw new Error("[Table] rowKey is required in updateKeyChild");l.value[y]&&(l.value[y]=S)}},normalize:v,states:{expandRowKeys:t,treeData:n,indent:o,lazy:a,lazyTreeNodeMap:l,lazyColumnIdentifier:r,childrenColumnName:i,checkStrictly:u}}}const UJ=(e,t)=>{const n=t.sortingColumn;return!n||ze(n.sortable)?e:LJ(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},bd=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,bd(n.children)):t.push(n)}),t};function GJ(){var e;const t=it(),{size:n}=In((e=t.proxy)==null?void 0:e.$props),o=P(null),a=P([]),l=P([]),r=P(!1),i=P([]),u=P([]),c=P([]),d=P([]),f=P([]),v=P([]),m=P([]),h=P([]),p=[],b=P(0),g=P(0),w=P(0),C=P(!1),y=P([]),S=P(!1),E=P(!1),_=P(null),O=P({}),N=P(null),R=P(null),A=P(null),I=P(null),L=P(null),H=k(()=>o.value?Ss(y.value,o.value):void 0);ue(a,()=>{var Be;t.state&&(T(!1),t.props.tableLayout==="auto"&&((Be=t.refs.tableHeaderRef)==null||Be.updateFixedColumnStyle()))},{deep:!0});const K=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},Y=Be=>{var ht;(ht=Be.children)==null||ht.forEach(ut=>{ut.fixed=Be.fixed,Y(ut)})},M=()=>{i.value.forEach(ce=>{Y(ce)}),d.value=i.value.filter(ce=>[!0,"left"].includes(ce.fixed));const Be=i.value.find(ce=>ce.type==="selection");let ht;Be&&Be.fixed!=="right"&&!d.value.includes(Be)&&i.value.indexOf(Be)===0&&d.value.length&&(d.value.unshift(Be),ht=!0),f.value=i.value.filter(ce=>ce.fixed==="right");const ut=i.value.filter(ce=>(ht?ce.type!=="selection":!0)&&!ce.fixed);u.value=Array.from(d.value).concat(ut).concat(f.value);const bt=bd(ut),ve=bd(d.value),Oe=bd(f.value);b.value=bt.length,g.value=ve.length,w.value=Oe.length,c.value=Array.from(ve).concat(bt).concat(Oe),r.value=d.value.length>0||f.value.length>0},T=(Be,ht=!1)=>{Be&&M(),ht?t.state.doLayout():t.state.debouncedUpdateLayout()},D=Be=>H.value?!!H.value[Xn(Be,o.value)]:y.value.includes(Be),B=()=>{C.value=!1;const Be=y.value;y.value=[],Be.length&&t.emit("selection-change",[])},z=()=>{var Be,ht;let ut;if(o.value){ut=[];const bt=(ht=(Be=t==null?void 0:t.store)==null?void 0:Be.states)==null?void 0:ht.childrenColumnName.value,ve=Ss(a.value,o.value,!0,bt);for(const Oe in H.value)Ln(H.value,Oe)&&!ve[Oe]&&ut.push(H.value[Oe].row)}else ut=y.value.filter(bt=>!a.value.includes(bt));if(ut.length){const bt=y.value.filter(ve=>!ut.includes(ve));y.value=bt,t.emit("selection-change",bt.slice())}},U=()=>(y.value||[]).slice(),V=(Be,ht,ut=!0,bt=!1)=>{var ve,Oe,ce,Me;const pt={children:(Oe=(ve=t==null?void 0:t.store)==null?void 0:ve.states)==null?void 0:Oe.childrenColumnName.value,checkStrictly:(Me=(ce=t==null?void 0:t.store)==null?void 0:ce.states)==null?void 0:Me.checkStrictly.value};if(gd(y.value,Be,ht,pt,bt?void 0:_.value,a.value.indexOf(Be),o.value)){const he=(y.value||[]).slice();ut&&t.emit("select",he,Be),t.emit("selection-change",he)}},J=()=>{var Be,ht;const ut=E.value?!C.value:!(C.value||y.value.length);C.value=ut;let bt=!1,ve=0;const Oe=(ht=(Be=t==null?void 0:t.store)==null?void 0:Be.states)==null?void 0:ht.rowKey.value,{childrenColumnName:ce}=t.store.states,Me={children:ce.value,checkStrictly:!1};a.value.forEach((pt,Ut)=>{const he=Ut+ve;gd(y.value,pt,ut,Me,_.value,he,Oe)&&(bt=!0),ve+=ae(Xn(pt,Oe))}),bt&&t.emit("selection-change",y.value?y.value.slice():[]),t.emit("select-all",(y.value||[]).slice())},q=()=>{var Be;if(((Be=a.value)==null?void 0:Be.length)===0){C.value=!1;return}const{childrenColumnName:ht}=t.store.states;let ut=0,bt=0;const ve=ce=>{var Me;for(const pt of ce){const Ut=_.value&&_.value.call(null,pt,ut);if(D(pt))bt++;else if(!_.value||Ut)return!1;if(ut++,((Me=pt[ht.value])==null?void 0:Me.length)&&!ve(pt[ht.value]))return!1}return!0},Oe=ve(a.value||[]);C.value=bt===0?!1:Oe},ae=Be=>{var ht;if(!t||!t.store)return 0;const{treeData:ut}=t.store.states;let bt=0;const ve=(ht=ut.value[Be])==null?void 0:ht.children;return ve&&(bt+=ve.length,ve.forEach(Oe=>{bt+=ae(Oe)})),bt},ie=(Be,ht)=>{const ut={};return Nn(Be).forEach(bt=>{O.value[bt.id]=ht,ut[bt.columnKey||bt.id]=ht}),ut},oe=(Be,ht,ut)=>{R.value&&R.value!==Be&&(R.value.order=null),R.value=Be,A.value=ht,I.value=ut},fe=()=>{let Be=s(l);Object.keys(O.value).forEach(ht=>{const ut=O.value[ht];if(!ut||ut.length===0)return;const bt=v_({columns:c.value},ht);bt&&bt.filterMethod&&(Be=Be.filter(ve=>ut.some(Oe=>bt.filterMethod.call(null,Oe,ve,bt))))}),N.value=Be},re=()=>{var Be;a.value=UJ((Be=N.value)!=null?Be:[],{sortingColumn:R.value,sortProp:A.value,sortOrder:I.value})},j=(Be=void 0)=>{Be!=null&&Be.filter||fe(),re()},se=Be=>{const{tableHeaderRef:ht}=t.refs;if(!ht)return;const ut=Object.assign({},ht.filterPanels),bt=Object.keys(ut);if(!!bt.length)if(ze(Be)&&(Be=[Be]),Ee(Be)){const ve=Be.map(Oe=>DJ({columns:c.value},Oe));bt.forEach(Oe=>{const ce=ve.find(Me=>Me.id===Oe);ce&&(ce.filteredValue=[])}),t.store.commit("filterChange",{column:ve,values:[],silent:!0,multi:!0})}else bt.forEach(ve=>{const Oe=c.value.find(ce=>ce.id===ve);Oe&&(Oe.filteredValue=[])}),O.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Se=()=>{!R.value||(oe(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Ie,toggleRowExpansion:Le,updateExpandRows:He,states:We,isRowExpanded:tt}=KJ({data:a,rowKey:o}),{updateTreeExpandKeys:Tt,toggleTreeExpansion:Xe,updateTreeData:Ae,updateKeyChildren:Pe,loadOrToggle:Ze,states:et}=YJ({data:a,rowKey:o}),{updateCurrentRowData:gt,updateCurrentRow:vt,setCurrentRowKey:Ce,states:Ve}=jJ({data:a,rowKey:o});return{assertRowKey:K,updateColumns:M,scheduleLayout:T,isSelected:D,clearSelection:B,cleanSelection:z,getSelectionRows:U,toggleRowSelection:V,_toggleAllSelection:J,toggleAllSelection:null,updateAllSelected:q,updateFilters:ie,updateCurrentRow:vt,updateSort:oe,execFilter:fe,execSort:re,execQuery:j,clearFilter:se,clearSort:Se,toggleRowExpansion:Le,setExpandRowKeysAdapter:Be=>{Ie(Be),Tt(Be)},setCurrentRowKey:Ce,toggleRowExpansionAdapter:(Be,ht)=>{c.value.some(({type:bt})=>bt==="expand")?Le(Be,ht):Xe(Be,ht)},isRowExpanded:tt,updateExpandRows:He,updateCurrentRowData:gt,loadOrToggle:Ze,updateTreeData:Ae,updateKeyChildren:Pe,states:{tableSize:n,rowKey:o,data:a,_data:l,isComplex:r,_columns:i,originColumns:u,columns:c,fixedColumns:d,rightFixedColumns:f,leafColumns:v,fixedLeafColumns:m,rightFixedLeafColumns:h,updateOrderFns:p,leafColumnsLength:b,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:w,isAllSelected:C,selection:y,reserveSelection:S,selectOnIndeterminate:E,selectable:_,filters:O,filteredData:N,sortingColumn:R,sortProp:A,sortOrder:I,hoverRow:L,...We,...et,...Ve}}}function Im(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=Im(n.children,t)),n)})}function Mm(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&Mm(t.children)}),e.sort((t,n)=>t.no-n.no)}function qJ(){const e=it(),t=GJ(),n=de("table"),{t:o}=wt();return{ns:n,t:o,...t,mutations:{setData(i,u){const c=s(i._data)!==u;i.data.value=u,i._data.value=u,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),s(i.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(i,u,c,d){var f;const v=s(i._columns);let m=[];c?(c&&!c.children&&(c.children=[]),(f=c.children)==null||f.push(u),m=Im(v,c)):(v.push(u),m=v),Mm(m),i._columns.value=m,i.updateOrderFns.push(d),u.type==="selection"&&(i.selectable.value=u.selectable,i.reserveSelection.value=u.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(i,u){var c;((c=u.getColumnIndex)==null?void 0:c.call(u))!==u.no&&(Mm(i._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(i,u,c,d){var f;const v=s(i._columns)||[];if(c)(f=c.children)==null||f.splice(c.children.findIndex(h=>h.id===u.id),1),ke(()=>{var h;((h=c.children)==null?void 0:h.length)===0&&delete c.children}),i._columns.value=Im(v,c);else{const h=v.indexOf(u);h>-1&&(v.splice(h,1),i._columns.value=v)}const m=i.updateOrderFns.indexOf(d);m>-1&&i.updateOrderFns.splice(m,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(i,u){const{prop:c,order:d,init:f}=u;if(c){const v=s(i.columns).find(m=>m.property===c);v&&(v.order=d,e.store.updateSort(v,c,d),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(i,u){const{sortingColumn:c,sortProp:d,sortOrder:f}=i,v=s(c),m=s(d),h=s(f);zr(h)&&(i.sortingColumn.value=null,i.sortProp.value=null);const p={filter:!0};e.store.execQuery(p),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:v,prop:m,order:h}),e.store.updateTableScrollY()},filterChange(i,u){const{column:c,values:d,silent:f}=u,v=e.store.updateFilters(c,d);e.store.execQuery(),f||e.emit("filter-change",v),e.store.updateTableScrollY()},toggleAllSelection(){var i,u;(u=(i=e.store).toggleAllSelection)==null||u.call(i)},rowSelectedChanged(i,u){e.store.toggleRowSelection(u),e.store.updateAllSelected()},setHoverRow(i,u){i.hoverRow.value=u},setCurrentRow(i,u){e.store.updateCurrentRow(u)}},commit:function(i,...u){const c=e.store.mutations;if(c[i])c[i].apply(e,[e.store.states,...u]);else throw new Error(`Action not found: ${i}`)},updateTableScrollY:function(){ke(()=>e.layout.updateScrollY.apply(e.layout))}}}const Nm={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"},["treeProps.checkStrictly"]:{key:"checkStrictly",default:!1}};function XJ(e,t){if(!e)throw new Error("Table is required.");const n=qJ();return n.toggleAllSelection=sa(n._toggleAllSelection,10),Object.keys(Nm).forEach(o=>{S_(k_(t,o),o,n)}),ZJ(n,t),n}function ZJ(e,t){Object.keys(Nm).forEach(n=>{ue(()=>k_(t,n),o=>{S_(o,n,e)})})}function S_(e,t,n){let o=e,a=Nm[t];Rt(a)&&(o=o||a.default,a=a.key),n.states[a].value=o}function k_(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(a=>{o=o[a]}),o}else return e[t]}class JJ{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=P(null),this.scrollX=P(!1),this.scrollY=P(!1),this.bodyWidth=P(null),this.fixedWidth=P(null),this.rightFixedWidth=P(null),this.gutterWidth=0;for(const n in t)Ln(t,n)&&(Kn(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(zr(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n==null?void 0:n.wrapRef)){let o=!0;const a=this.scrollY.value;return o=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=o,a!==o}return!1}setHeight(t,n="height"){if(!_t)return;const o=this.table.vnode.el;if(t=FJ(t),this.height.value=Number(t),!o&&(t||t===0)){ke(()=>this.setHeight(t,n));return}o&&xe(t)?(o.style[n]=`${t}px`,this.updateElsHeight()):o&&ze(t)&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){var t;if(!_t)return;const n=this.fit,o=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let a=0;const l=this.getFlattenColumns(),r=l.filter(c=>!xe(c.width));if(l.forEach(c=>{xe(c.width)&&c.realWidth&&(c.realWidth=null)}),r.length>0&&n){if(l.forEach(c=>{a+=Number(c.width||c.minWidth||80)}),a<=o){this.scrollX.value=!1;const c=o-a;if(r.length===1)r[0].realWidth=Number(r[0].minWidth||80)+c;else{const d=r.reduce((m,h)=>m+Number(h.minWidth||80),0),f=c/d;let v=0;r.forEach((m,h)=>{if(h===0)return;const p=Math.floor(Number(m.minWidth||80)*f);v+=p,m.realWidth=Number(m.minWidth||80)+p}),r[0].realWidth=Number(r[0].minWidth||80)+c-v}}else this.scrollX.value=!0,r.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(a,o),this.table.state.resizeState.value.width=this.bodyWidth.value}else l.forEach(c=>{!c.width&&!c.minWidth?c.realWidth=80:c.realWidth=Number(c.width||c.minWidth),a+=c.realWidth}),this.scrollX.value=a>o,this.bodyWidth.value=a;const i=this.store.states.fixedColumns.value;if(i.length>0){let c=0;i.forEach(d=>{c+=Number(d.realWidth||d.width)}),this.fixedWidth.value=c}const u=this.store.states.rightFixedColumns.value;if(u.length>0){let c=0;u.forEach(d=>{c+=Number(d.realWidth||d.width)}),this.rightFixedWidth.value=c}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var a,l;switch(t){case"columns":(a=o.state)==null||a.onColumnsChange(this);break;case"scrollable":(l=o.state)==null||l.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}var QJ=JJ;const eQ=le({name:"ElTableFilterPanel",components:{ElCheckbox:Jo,ElCheckboxGroup:Zc,ElScrollbar:Xo,ElTooltip:Vn,ElIcon:$e,ArrowDown:Aa,ArrowUp:Qu},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Kt.appendTo},setup(e){const t=it(),{t:n}=wt(),o=de("table-filter"),a=t==null?void 0:t.parent;e.column&&!a.filterPanels.value[e.column.id]&&(a.filterPanels.value[e.column.id]=t);const l=P(null),r=P(null),i=P(0),u=k(()=>e.column&&e.column.filters),c=k(()=>e.column&&e.column.filterClassName?`${o.b()} ${e.column.filterClassName}`:o.b()),d=k({get:()=>{var _;return(((_=e.column)==null?void 0:_.filteredValue)||[])[0]},set:_=>{f.value&&(yo(_)?f.value.splice(0,1):f.value.splice(0,1,_))}}),f=k({get(){return e.column?e.column.filteredValue||[]:[]},set(_){var O;e.column&&((O=e.upDataColumn)==null||O.call(e,"filteredValue",_))}}),v=k(()=>e.column?e.column.filterMultiple:!0),m=_=>_.value===d.value,h=()=>{var _;(_=l.value)==null||_.onClose()},p=()=>{w(f.value),h()},b=()=>{f.value=[],w(f.value),h()},g=(_,O)=>{d.value=_,i.value=O,yo(_)?w([]):w(f.value),h()},w=_=>{var O,N;(O=e.store)==null||O.commit("filterChange",{column:e.column,values:_}),(N=e.store)==null||N.updateAllSelected()},C=()=>{var _,O;(_=r.value)==null||_.focus(),!v.value&&S(),e.column&&((O=e.upDataColumn)==null||O.call(e,"filterOpened",!0))},y=()=>{var _;e.column&&((_=e.upDataColumn)==null||_.call(e,"filterOpened",!1))},S=()=>{if(yo(d)){i.value=0;return}const _=(u.value||[]).findIndex(O=>O.value===d.value);i.value=_>=0?_+1:0};return{multiple:v,filterClassName:c,filteredValue:f,filterValue:d,filters:u,handleConfirm:p,handleReset:b,handleSelect:g,isPropAbsent:yo,isActive:m,t:n,ns:o,tooltipRef:l,rootRef:r,checkedIndex:i,handleShowTooltip:C,handleHideTooltip:y,handleKeydown:_=>{var O,N;const R=Ht(_),A=(u.value?u.value.length:0)+1;let I=i.value,L=!0;switch(R){case pe.down:case pe.right:I=(I+1)%A;break;case pe.up:case pe.left:I=(I-1+A)%A;break;case pe.tab:h(),L=!1;break;case pe.enter:case pe.space:if(I===0)g(null,0);else{const H=(u.value||[])[I-1];H.value&&g(H.value,I)}break;default:L=!1;break}L&&_.preventDefault(),i.value=I,(N=(O=r.value)==null?void 0:O.querySelector(`.${o.e("list-item")}:nth-child(${I+1})`))==null||N.focus()}}}}),tQ=["disabled"],nQ=["tabindex","aria-checked"],oQ=["tabindex","aria-checked","onClick"],aQ=["aria-label"];function lQ(e,t,n,o,a,l){const r=It("el-checkbox"),i=It("el-checkbox-group"),u=It("el-scrollbar"),c=It("arrow-up"),d=It("arrow-down"),f=It("el-icon"),v=It("el-tooltip");return $(),ne(v,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:Q(()=>[e.multiple?($(),F("div",{key:0,ref:"rootRef",tabindex:"-1",class:x(e.ns.e("multiple"))},[W("div",{class:x(e.ns.e("content"))},[X(u,{"wrap-class":e.ns.e("wrap")},{default:Q(()=>[X(i,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=m=>e.filteredValue=m),class:x(e.ns.e("checkbox-group"))},{default:Q(()=>[($(!0),F(Fe,null,yt(e.filters,m=>($(),ne(r,{key:m.value,value:m.value},{default:Q(()=>[Ct(ge(m.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),W("div",{class:x(e.ns.e("bottom"))},[W("button",{class:x(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...m)=>e.handleConfirm&&e.handleConfirm(...m))},ge(e.t("el.table.confirmFilter")),11,tQ),W("button",{type:"button",onClick:t[2]||(t[2]=(...m)=>e.handleReset&&e.handleReset(...m))},ge(e.t("el.table.resetFilter")),1)],2)],2)):($(),F("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:x(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...m)=>e.handleKeydown&&e.handleKeydown(...m))},[W("li",{role:"radio",class:x([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=m=>e.handleSelect(null,0))},ge(e.t("el.table.clearFilter")),11,nQ),($(!0),F(Fe,null,yt(e.filters,(m,h)=>($(),F("li",{key:m.value,role:"radio",class:x([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),tabindex:e.checkedIndex===h+1?0:-1,"aria-checked":e.isActive(m),onClick:p=>e.handleSelect(m.value,h+1)},ge(m.text),11,oQ))),128))],34))]),default:Q(()=>{var m;return[W("button",{type:"button",class:x(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:((m=e.column)==null?void 0:m.label)||""})},[X(f,null,{default:Q(()=>[ee(e.$slots,"filter-icon",{},()=>{var h;return[(h=e.column)!=null&&h.filterOpened?($(),ne(c,{key:0})):($(),ne(d,{key:1}))]})]),_:3})],10,aQ)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var rQ=ye(eQ,[["render",lQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Am(e){const t=it();Fd(()=>{n.value.addObserver(t)}),st(()=>{o(n.value),a(n.value)}),Ga(()=>{o(n.value),a(n.value)}),Ms(()=>{n.value.removeObserver(t)});const n=k(()=>{const l=e.layout;if(!l)throw new Error("Can not find table layout.");return l}),o=l=>{var r;const i=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const u=l.getFlattenColumns(),c={};u.forEach(d=>{c[d.id]=d});for(let d=0,f=i.length;d<f;d++){const v=i[d],m=v.getAttribute("name"),h=c[m];h&&v.setAttribute("width",h.realWidth||h.width)}},a=l=>{var r,i;const u=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=u.length;d<f;d++)u[d].setAttribute("width",l.scrollY.value?l.gutterWidth:"0");const c=((i=e.vnode.el)==null?void 0:i.querySelectorAll("th.gutter"))||[];for(let d=0,f=c.length;d<f;d++){const v=c[d];v.style.width=l.scrollY.value?`${l.gutterWidth}px`:"0",v.style.display=l.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:o,onScrollableChange:a}}const Ca=Symbol("ElTable");function sQ(e,t){const n=it(),o=Te(Ca),a=p=>{p.stopPropagation()},l=(p,b)=>{!b.filters&&b.sortable?h(p,b,!1):b.filterable&&!b.sortable&&a(p),o==null||o.emit("header-click",b,p)},r=(p,b)=>{o==null||o.emit("header-contextmenu",b,p)},i=P(null),u=P(!1),c=P(),d=(p,b)=>{var g,w;if(!!_t&&!(b.children&&b.children.length>0)&&i.value&&e.border&&i.value.id===b.id){u.value=!0;const C=o;t("set-drag-visible",!0);const y=C==null?void 0:C.vnode.el,S=y==null?void 0:y.getBoundingClientRect().left,E=(w=(g=n==null?void 0:n.vnode)==null?void 0:g.el)==null?void 0:w.querySelector(`th.${b.id}`),_=E.getBoundingClientRect(),O=_.left-S+30;Ko(E,"noclick"),c.value={startMouseLeft:p.clientX,startLeft:_.right-S,startColumnLeft:_.left-S,tableLeft:S};const N=C==null?void 0:C.refs.resizeProxy;N.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const R=I=>{const L=I.clientX-c.value.startMouseLeft,H=c.value.startLeft+L;N.style.left=`${Math.max(O,H)}px`},A=()=>{if(u.value){const{startColumnLeft:I,startLeft:L}=c.value,K=Number.parseInt(N.style.left,10)-I;b.width=b.realWidth=K,C==null||C.emit("header-dragend",b.width,L-I,b,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,i.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",A),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{eo(E,"noclick")},0)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",A)}},f=(p,b)=>{var g;if(!e.border||b.children&&b.children.length>0)return;const w=p.target,C=bo(w)?w.closest("th"):null;if(!C)return;const y=Na(C,"is-sortable");if(y){const R=u.value?"col-resize":"";C.style.cursor=R;const A=C.querySelector(".caret-wrapper");A&&(A.style.cursor=R)}if(!b.resizable||u.value){i.value=null;return}const S=C.getBoundingClientRect(),E=((g=C.parentNode)==null?void 0:g.lastElementChild)===C,_=e.allowDragLastColumn||!E,O=S.width>12&&S.right-p.clientX<8&&_,N=O?"col-resize":"";document.body.style.cursor=N,i.value=O?b:null,y&&(C.style.cursor=N)},v=()=>{!_t||u.value||(document.body.style.cursor="")},m=({order:p,sortOrders:b})=>{if(p==="")return b[0];const g=b.indexOf(p||null);return b[g>b.length-2?0:g+1]},h=(p,b,g)=>{var w;p.stopPropagation();const C=b.order===g?null:g||m(b),y=(w=p.target)==null?void 0:w.closest("th");if(y&&Na(y,"noclick")){eo(y,"noclick");return}if(!b.sortable)return;const S=p.currentTarget;if(["ascending","descending"].some(R=>Na(S,R)&&!b.sortOrders.includes(R)))return;const E=e.store.states;let _=E.sortProp.value,O;const N=E.sortingColumn.value;(N!==b||N===b&&zr(N.order))&&(N&&(N.order=null),E.sortingColumn.value=b,_=b.property),C?O=b.order=C:O=b.order=null,E.sortProp.value=_,E.sortOrder.value=O,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:l,handleHeaderContextMenu:r,handleMouseDown:d,handleMouseMove:f,handleMouseOut:v,handleSortClick:h,handleFilterClick:a}}function iQ(e){const t=Te(Ca),n=de("table");return{getHeaderRowStyle:i=>{const u=t==null?void 0:t.props.headerRowStyle;return lt(u)?u.call(null,{rowIndex:i}):u},getHeaderRowClass:i=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return ze(c)?u.push(c):lt(c)&&u.push(c.call(null,{rowIndex:i})),u.join(" ")},getHeaderCellStyle:(i,u,c,d)=>{var f;let v=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};lt(v)&&(v=v.call(null,{rowIndex:i,columnIndex:u,row:c,column:d}));const m=xm(u,d.fixed,e.store,c);return ks(m,"left"),ks(m,"right"),Object.assign({},v,m)},getHeaderCellClass:(i,u,c,d)=>{const f=Rm(n.b(),u,d.fixed,e.store,c),v=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||v.push("is-leaf"),d.sortable&&v.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return ze(m)?v.push(m):lt(m)&&v.push(m.call(null,{rowIndex:i,columnIndex:u,row:c,column:d})),v.push(n.e("cell")),v.filter(h=>Boolean(h)).join(" ")}}}const E_=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,E_(n.children))):t.push(n)}),t},$_=e=>{let t=1;const n=(l,r)=>{if(r&&(l.level=r.level+1,t<l.level&&(t=l.level)),l.children){let i=0;l.children.forEach(u=>{n(u,l),i+=u.colSpan}),l.colSpan=i}else l.colSpan=1};e.forEach(l=>{l.level=1,n(l,void 0)});const o=[];for(let l=0;l<t;l++)o.push([]);return E_(e).forEach(l=>{l.children?(l.rowSpan=1,l.children.forEach(r=>r.isSubColumn=!0)):l.rowSpan=t-l.level+1,o[l.level-1].push(l)}),o};function uQ(e){const t=Te(Ca),n=k(()=>$_(e.store.states.originColumns.value));return{isGroup:k(()=>{const l=n.value.length>1;return l&&t&&(t.state.isGroup.value=!0),l}),toggleAllSelection:l=>{l.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var cQ=le({name:"ElTableHeader",components:{ElCheckbox:Jo},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=it(),o=Te(Ca),a=de("table"),l=P({}),{onColumnsChange:r,onScrollableChange:i}=Am(o),u=(o==null?void 0:o.props.tableLayout)==="auto",c=Lt(new Map),d=P();let f;const v=()=>{f=setTimeout(()=>{c.size>0&&(c.forEach((I,L)=>{const H=d.value.querySelector(`.${L.replace(/\s/g,".")}`);if(H){const K=H.getBoundingClientRect().width;I.width=K||I.width}}),c.clear())})};ue(c,v),Dt(()=>{f&&(clearTimeout(f),f=void 0)}),st(async()=>{await ke(),await ke();const{prop:I,order:L}=e.defaultSort;o==null||o.store.commit("sort",{prop:I,order:L,init:!0}),v()});const{handleHeaderClick:m,handleHeaderContextMenu:h,handleMouseDown:p,handleMouseMove:b,handleMouseOut:g,handleSortClick:w,handleFilterClick:C}=sQ(e,t),{getHeaderRowStyle:y,getHeaderRowClass:S,getHeaderCellStyle:E,getHeaderCellClass:_}=iQ(e),{isGroup:O,toggleAllSelection:N,columnRows:R}=uQ(e),{t:A}=wt();return n.state={onColumnsChange:r,onScrollableChange:i},n.filterPanels=l,{ns:a,t:A,filterPanels:l,onColumnsChange:r,onScrollableChange:i,columnRows:R,getHeaderRowClass:S,getHeaderRowStyle:y,getHeaderCellClass:_,getHeaderCellStyle:E,handleHeaderClick:m,handleHeaderContextMenu:h,handleMouseDown:p,handleMouseMove:b,handleMouseOut:g,handleSortClick:w,handleFilterClick:C,isGroup:O,toggleAllSelection:N,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:v}},render(){const{ns:e,t,isGroup:n,columnRows:o,getHeaderCellStyle:a,getHeaderCellClass:l,getHeaderRowClass:r,getHeaderRowStyle:i,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:f,handleSortClick:v,handleMouseOut:m,store:h,$parent:p,saveIndexSelection:b,isTableLayoutAuto:g}=this;let w=1;return De("thead",{ref:"theadRef",class:e.is("group",n)},o.map((C,y)=>De("tr",{class:r(y),key:y,style:i(y)},C.map((S,E)=>{S.rowSpan>w&&(w=S.rowSpan);const _=l(y,E,C,S);return g&&S.fixed&&b.set(_,S),De("th",{class:_,colspan:S.colSpan,key:`${S.id}-thead`,rowspan:S.rowSpan,scope:S.colSpan>1?"colgroup":"col",ariaSort:S.sortable?S.order:void 0,style:a(y,E,C,S),onClick:O=>{var N;(N=O.currentTarget)!=null&&N.classList.contains("noclick")||u(O,S)},onContextmenu:O=>c(O,S),onMousedown:O=>d(O,S),onMousemove:O=>f(O,S),onMouseout:m},[De("div",{class:["cell",S.filteredValue&&S.filteredValue.length>0?"highlight":""]},[S.renderHeader?S.renderHeader({column:S,$index:E,store:h,_self:p}):S.label,S.sortable&&De("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:S.label||""}),onClick:O=>v(O,S)},[De("i",{onClick:O=>v(O,S,"ascending"),class:"sort-caret ascending"}),De("i",{onClick:O=>v(O,S,"descending"),class:"sort-caret descending"})]),S.filterable&&De(rQ,{store:h,placement:S.filterPlacement||"bottom-start",appendTo:p==null?void 0:p.appendFilterPanelTo,column:S,upDataColumn:(O,N)=>{S[O]=N}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function Pm(e,t,n=.03){return e-t>n}function dQ(e){const t=Te(Ca),n=P(""),o=P(De("div")),a=(h,p,b)=>{var g,w,C;const y=t,S=Tm(h);let E=null;const _=(g=y==null?void 0:y.vnode.el)==null?void 0:g.dataset.prefix;S&&(E=h_({columns:(C=(w=e.store)==null?void 0:w.states.columns.value)!=null?C:[]},S,_),E&&(y==null||y.emit(`cell-${b}`,p,E,S,h))),y==null||y.emit(`row-${b}`,p,E,h)},l=(h,p)=>{a(h,p,"dblclick")},r=(h,p)=>{var b;(b=e.store)==null||b.commit("setCurrentRow",p),a(h,p,"click")},i=(h,p)=>{a(h,p,"contextmenu")},u=sa(h=>{var p;(p=e.store)==null||p.commit("setHoverRow",h)},30),c=sa(()=>{var h;(h=e.store)==null||h.commit("setHoverRow",null)},30),d=h=>{const p=window.getComputedStyle(h,null),b=Number.parseInt(p.paddingLeft,10)||0,g=Number.parseInt(p.paddingRight,10)||0,w=Number.parseInt(p.paddingTop,10)||0,C=Number.parseInt(p.paddingBottom,10)||0;return{left:b,right:g,top:w,bottom:C}},f=(h,p,b)=>{var g;let w=(g=p==null?void 0:p.target)==null?void 0:g.parentNode;for(;h>1&&(w=w==null?void 0:w.nextSibling,!(!w||w.nodeName!=="TR"));)b(w,"hover-row hover-fixed-row"),h--};return{handleDoubleClick:l,handleClick:r,handleContextMenu:i,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(h,p,b)=>{var g,w,C,y,S,E,_,O,N;if(!t)return;const R=t,A=Tm(h),I=(g=R==null?void 0:R.vnode.el)==null?void 0:g.dataset.prefix;let L=null;if(A){if(L=h_({columns:(C=(w=e.store)==null?void 0:w.states.columns.value)!=null?C:[]},A,I),!L)return;A.rowSpan>1&&f(A.rowSpan,h,Ko);const ae=R.hoverState={cell:A,column:L,row:p};R==null||R.emit("cell-mouse-enter",ae.row,ae.column,ae.cell,h)}if(!b){((y=ao)==null?void 0:y.trigger)===A&&((S=ao)==null||S());return}const H=h.target.querySelector(".cell");if(!(Na(H,`${I}-tooltip`)&&H.childNodes.length&&((E=H.textContent)==null?void 0:E.trim())))return;const K=document.createRange();K.setStart(H,0),K.setEnd(H,H.childNodes.length);const{width:Y,height:M}=K.getBoundingClientRect(),{width:T,height:D}=H.getBoundingClientRect(),{top:B,left:z,right:U,bottom:V}=d(H),J=z+U,q=B+V;Pm(Y+J,T)||Pm(M+q,D)||Pm(H.scrollWidth,T)?WJ(b,(_=(A==null?void 0:A.innerText)||(A==null?void 0:A.textContent))!=null?_:"",p,L,A,R):((O=ao)==null?void 0:O.trigger)===A&&((N=ao)==null||N())},handleCellMouseLeave:h=>{const p=Tm(h);if(!p)return;p.rowSpan>1&&f(p.rowSpan,h,eo);const b=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",b==null?void 0:b.row,b==null?void 0:b.column,b==null?void 0:b.cell,h)},tooltipContent:n,tooltipTrigger:o}}function fQ(e){const t=Te(Ca),n=de("table");return{getRowStyle:(c,d)=>{const f=t==null?void 0:t.props.rowStyle;return lt(f)?f.call(null,{row:c,rowIndex:d}):f||null},getRowClass:(c,d,f)=>{var v;const m=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&c===((v=e.store)==null?void 0:v.states.currentRow.value)&&m.push("current-row"),e.stripe&&f%2===1&&m.push(n.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return ze(h)?m.push(h):lt(h)&&m.push(h.call(null,{row:c,rowIndex:d})),m},getCellStyle:(c,d,f,v)=>{const m=t==null?void 0:t.props.cellStyle;let h=m!=null?m:{};lt(m)&&(h=m.call(null,{rowIndex:c,columnIndex:d,row:f,column:v}));const p=xm(d,e==null?void 0:e.fixed,e.store);return ks(p,"left"),ks(p,"right"),Object.assign({},h,p)},getCellClass:(c,d,f,v,m)=>{const h=Rm(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,m),p=[v.id,v.align,v.className,...h],b=t==null?void 0:t.props.cellClassName;return ze(b)?p.push(b):lt(b)&&p.push(b.call(null,{rowIndex:c,columnIndex:d,row:f,column:v})),p.push(n.e("cell")),p.filter(g=>Boolean(g)).join(" ")},getSpan:(c,d,f,v)=>{let m=1,h=1;const p=t==null?void 0:t.props.spanMethod;if(lt(p)){const b=p({row:c,column:d,rowIndex:f,columnIndex:v});Ee(b)?(m=b[0],h=b[1]):Rt(b)&&(m=b.rowspan,h=b.colspan)}return{rowspan:m,colspan:h}},getColspanRealWidth:(c,d,f)=>{if(d<1)return c[f].realWidth;const v=c.map(({realWidth:m,width:h})=>m||h).slice(f,f+d);return Number(v.reduce((m,h)=>Number(m)+Number(h),-1))}}}const pQ=["colspan","rowspan"],vQ=le({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>($(),F("td",{colspan:e.colspan,rowspan:e.rowspan},[ee(t.$slots,"default")],8,pQ))}});var hQ=ye(vQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table-body/td-wrapper.vue"]]);function mQ(e){const t=Te(Ca),n=de("table"),{handleDoubleClick:o,handleClick:a,handleContextMenu:l,handleMouseEnter:r,handleMouseLeave:i,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=dQ(e),{getRowStyle:v,getRowClass:m,getCellStyle:h,getCellClass:p,getSpan:b,getColspanRealWidth:g}=fQ(e);let w=-1;const C=k(()=>{var O;return(O=e.store)==null?void 0:O.states.columns.value.findIndex(({type:N})=>N==="default")}),y=(O,N)=>{var R;const A=(R=t==null?void 0:t.props)==null?void 0:R.rowKey;return A?Xn(O,A):N},S=(O,N,R,A=!1)=>{const{tooltipEffect:I,tooltipOptions:L,store:H}=e,{indent:K,columns:Y}=H.states,M=[];let T=!0;return R&&(M.push(n.em("row",`level-${R.level}`)),T=!!R.display),N===0&&(w=-1),e.stripe&&T&&w++,M.push(...m(O,N,w)),De("tr",{style:[T?null:{display:"none"},v(O,N)],class:M,key:y(O,N),onDblclick:B=>o(B,O),onClick:B=>a(B,O),onContextmenu:B=>l(B,O),onMouseenter:()=>r(N),onMouseleave:i},Y.value.map((B,z)=>{const{rowspan:U,colspan:V}=b(O,B,N,z);if(!U||!V)return null;const J=Object.assign({},B);J.realWidth=g(Y.value,V,z);const q={store:H,_self:e.context||t,column:J,row:O,$index:N,cellIndex:z,expanded:A};z===C.value&&R&&(q.treeNode={indent:R.level&&R.level*K.value,level:R.level},Vt(R.expanded)&&(q.treeNode.expanded=R.expanded,"loading"in R&&(q.treeNode.loading=R.loading),"noLazyChildren"in R&&(q.treeNode.noLazyChildren=R.noLazyChildren)));const ae=`${y(O,N)},${z}`,ie=J.columnKey||J.rawColumnKey||"",oe=B.showOverflowTooltip&&tp({effect:I},L,B.showOverflowTooltip);return De(hQ,{style:h(N,z,O,B),class:p(N,z,O,B,V-1),key:`${ie}${ae}`,rowspan:U,colspan:V,onMouseenter:fe=>u(fe,O,oe),onMouseleave:c},{default:()=>E(z,B,q)})}))},E=(O,N,R)=>N.renderCell(R);return{wrappedRowRender:(O,N)=>{const R=e.store,{isRowExpanded:A,assertRowKey:I}=R,{treeData:L,lazyTreeNodeMap:H,childrenColumnName:K,rowKey:Y}=R.states,M=R.states.columns.value;if(M.some(({type:D})=>D==="expand")){const D=A(O),B=S(O,N,void 0,D),z=t==null?void 0:t.renderExpanded;if(!z)return console.error("[Element Error]renderExpanded is required."),B;const U=[[B]];return(t.props.preserveExpandedContent||D)&&U[0].push(De("tr",{key:`expanded-row__${B.key}`,style:{display:D?"":"none"}},[De("td",{colspan:M.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[z({row:O,$index:N,store:R,expanded:D})])])),U}else if(Object.keys(L.value).length){I();const D=Xn(O,Y.value);let B=L.value[D],z=null;B&&(z={expanded:B.expanded,level:B.level,display:!0,noLazyChildren:void 0,loading:void 0},Vt(B.lazy)&&(z&&Vt(B.loaded)&&B.loaded&&(z.noLazyChildren=!(B.children&&B.children.length)),z.loading=B.loading));const U=[S(O,N,z!=null?z:void 0)];if(B){let V=0;const J=(ae,ie)=>{!(ae&&ae.length&&ie)||ae.forEach(oe=>{const fe={display:ie.display&&ie.expanded,level:ie.level+1,expanded:!1,noLazyChildren:!1,loading:!1},re=Xn(oe,Y.value);if(yo(re))throw new Error("For nested data item, row-key is required.");if(B={...L.value[re]},B&&(fe.expanded=B.expanded,B.level=B.level||fe.level,B.display=!!(B.expanded&&fe.display),Vt(B.lazy)&&(Vt(B.loaded)&&B.loaded&&(fe.noLazyChildren=!(B.children&&B.children.length)),fe.loading=B.loading)),V++,U.push(S(oe,N+V,fe)),B){const j=H.value[re]||oe[K.value];J(j,B)}})};B.display=!0;const q=H.value[D]||O[K.value];J(q,B)}return U}else return S(O,N,void 0)},tooltipContent:d,tooltipTrigger:f}}const gQ={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var bQ=gQ,yQ=le({name:"ElTableBody",props:bQ,setup(e){var t;const n=it(),o=Te(Ca),a=de("table"),{wrappedRowRender:l,tooltipContent:r,tooltipTrigger:i}=mQ(e),{onColumnsChange:u,onScrollableChange:c}=Am(o),d=[];return ue((t=e.store)==null?void 0:t.states.hoverRow,(f,v)=>{var m,h;const p=n==null?void 0:n.vnode.el,b=Array.from((p==null?void 0:p.children)||[]).filter(C=>C==null?void 0:C.classList.contains(`${a.e("row")}`));let g=f;const w=(m=b[g])==null?void 0:m.childNodes;if(w!=null&&w.length){let C=0;Array.from(w).reduce((S,E,_)=>{var O,N;return((O=w[_])==null?void 0:O.colSpan)>1&&(C=(N=w[_])==null?void 0:N.colSpan),E.nodeName!=="TD"&&C===0&&S.push(_),C>0&&C--,S},[]).forEach(S=>{var E;for(g=f;g>0;){const _=(E=b[g-1])==null?void 0:E.childNodes;if(_[S]&&_[S].nodeName==="TD"&&_[S].rowSpan>1){Ko(_[S],"hover-cell"),d.push(_[S]);break}g--}})}else d.forEach(C=>eo(C,"hover-cell")),d.length=0;!((h=e.store)!=null&&h.states.isComplex.value)||!_t||Ma(()=>{const C=b[v],y=b[f];C&&!C.classList.contains("hover-fixed-row")&&eo(C,"hover-row"),y&&Ko(y,"hover-row")})}),Ms(()=>{var f;(f=ao)==null||f()}),{ns:a,onColumnsChange:u,onScrollableChange:c,wrappedRowRender:l,tooltipContent:r,tooltipTrigger:i}},render(){const{wrappedRowRender:e,store:t}=this,n=(t==null?void 0:t.states.data.value)||[];return De("tbody",{tabIndex:-1},[n.reduce((o,a)=>o.concat(e(a,o.length)),[])])}});function wQ(){const e=Te(Ca),t=e==null?void 0:e.store,n=k(()=>{var i;return(i=t==null?void 0:t.states.fixedLeafColumnsLength.value)!=null?i:0}),o=k(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0}),a=k(()=>{var i;return(i=t==null?void 0:t.states.columns.value.length)!=null?i:0}),l=k(()=>{var i;return(i=t==null?void 0:t.states.fixedColumns.value.length)!=null?i:0}),r=k(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0});return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:a,leftFixedCount:l,rightFixedCount:r,columns:k(()=>{var i;return(i=t==null?void 0:t.states.columns.value)!=null?i:[]})}}function CQ(e){const{columns:t}=wQ(),n=de("table");return{getCellClasses:(l,r)=>{const i=l[r],u=[n.e("cell"),i.id,i.align,i.labelClassName,...Rm(n.b(),r,i.fixed,e.store)];return i.className&&u.push(i.className),i.children||u.push(n.is("leaf")),u},getCellStyles:(l,r)=>{const i=xm(r,l.fixed,e.store);return ks(i,"left"),ks(i,"right"),i},columns:t}}var SQ=le({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Te(Ca),n=de("table"),{getCellClasses:o,getCellStyles:a,columns:l}=CQ(e),{onScrollableChange:r,onColumnsChange:i}=Am(t);return{ns:n,onScrollableChange:r,onColumnsChange:i,getCellClasses:o,getCellStyles:a,columns:l}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:a}=this,l=this.store.states.data.value;let r=[];return o?r=o({columns:e,data:l}):e.forEach((i,u)=>{if(u===0){r[u]=a;return}const c=l.map(m=>Number(m[i.property])),d=[];let f=!0;c.forEach(m=>{if(!Number.isNaN(+m)){f=!1;const h=`${m}`.split(".")[1];d.push(h?h.length:0)}});const v=Math.max.apply(null,d);f?r[u]="":r[u]=c.reduce((m,h)=>{const p=Number(h);return Number.isNaN(+p)?m:Number.parseFloat((m+h).toFixed(Math.min(v,20)))},0)}),De(De("tfoot",[De("tr",{},[...e.map((i,u)=>De("td",{key:u,colspan:i.colSpan,rowspan:i.rowSpan,class:n(e,u),style:t(i,u)},[De("div",{class:["cell",i.labelClassName]},[r[u]])]))])]))}});function kQ(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,v,m=!0)=>{e.toggleRowSelection(f,v,!1,m),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,v)=>{e.toggleRowExpansionAdapter(f,v)},clearSort:()=>{e.clearSort()},sort:(f,v)=>{e.commit("sort",{prop:f,order:v})},updateKeyChildren:(f,v)=>{e.updateKeyChildren(f,v)}}}function EQ(e,t,n,o){const a=P(!1),l=P(null),r=P(!1),i=M=>{r.value=M},u=P({width:null,height:null,headerHeight:null}),c=P(!1),d={display:"inline-block",verticalAlign:"middle"},f=P(),v=P(0),m=P(0),h=P(0),p=P(0),b=P(0);ue(()=>e.height,M=>{t.setHeight(M!=null?M:null)},{immediate:!0}),ue(()=>e.maxHeight,M=>{t.setMaxHeight(M!=null?M:null)},{immediate:!0}),ue(()=>[e.currentRowKey,n.states.rowKey],([M,T])=>{!s(T)||!s(M)||n.setCurrentRowKey(`${M}`)},{immediate:!0}),ue(()=>e.data,M=>{o.store.commit("setData",M)},{immediate:!0,deep:!0}),lo(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},w=(M,T)=>{const{pixelX:D,pixelY:B}=T;Math.abs(D)>=Math.abs(B)&&(o.refs.bodyWrapper.scrollLeft+=T.pixelX/5)},C=k(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),y=k(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{C.value&&t.updateElsHeight(),t.updateColumnsWidth(),typeof window!="undefined"&&requestAnimationFrame(N)};st(async()=>{await ke(),n.updateColumns(),R(),requestAnimationFrame(S);const M=o.vnode.el,T=o.refs.headerWrapper;e.flexible&&M&&M.parentElement&&(M.parentElement.style.minWidth="0"),u.value={width:f.value=M.offsetWidth,height:M.offsetHeight,headerHeight:e.showHeader&&T?T.offsetHeight:null},n.states.columns.value.forEach(D=>{D.filteredValue&&D.filteredValue.length&&o.store.commit("filterChange",{column:D,values:D.filteredValue,silent:!0})}),o.$ready=!0});const E=(M,T)=>{if(!M)return;const D=Array.from(M.classList).filter(B=>!B.startsWith("is-scrolling-"));D.push(t.scrollX.value?T:"is-scrolling-none"),M.className=D.join(" ")},_=M=>{const{tableWrapper:T}=o.refs;E(T,M)},O=M=>{const{tableWrapper:T}=o.refs;return!!(T&&T.classList.contains(M))},N=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const J="is-scrolling-none";O(J)||_(J);return}const M=o.refs.scrollBarRef.wrapRef;if(!M)return;const{scrollLeft:T,offsetWidth:D,scrollWidth:B}=M,{headerWrapper:z,footerWrapper:U}=o.refs;z&&(z.scrollLeft=T),U&&(U.scrollLeft=T);const V=B-D-1;T>=V?_("is-scrolling-right"):_(T===0?"is-scrolling-left":"is-scrolling-middle")},R=()=>{!o.refs.scrollBarRef||(o.refs.scrollBarRef.wrapRef&&Mt(o.refs.scrollBarRef.wrapRef,"scroll",N,{passive:!0}),e.fit?Qt(o.vnode.el,A):Mt(window,"resize",A),Qt(o.refs.tableInnerWrapper,()=>{var M,T;A(),(T=(M=o.refs)==null?void 0:M.scrollBarRef)==null||T.update()}))},A=()=>{var M,T,D,B;const z=o.vnode.el;if(!o.$ready||!z)return;let U=!1;const{width:V,height:J,headerHeight:q}=u.value,ae=f.value=z.offsetWidth;V!==ae&&(U=!0);const ie=z.offsetHeight;(e.height||C.value)&&J!==ie&&(U=!0);const oe=e.tableLayout==="fixed"?o.refs.headerWrapper:(M=o.refs.tableHeaderRef)==null?void 0:M.$el;e.showHeader&&(oe==null?void 0:oe.offsetHeight)!==q&&(U=!0),v.value=((T=o.refs.tableWrapper)==null?void 0:T.scrollHeight)||0,h.value=(oe==null?void 0:oe.scrollHeight)||0,p.value=((D=o.refs.footerWrapper)==null?void 0:D.offsetHeight)||0,b.value=((B=o.refs.appendWrapper)==null?void 0:B.offsetHeight)||0,m.value=v.value-h.value-p.value-b.value,U&&(u.value={width:ae,height:ie,headerHeight:e.showHeader&&(oe==null?void 0:oe.offsetHeight)||0},S())},I=bn(),L=k(()=>{const{bodyWidth:M,scrollY:T,gutterWidth:D}=t;return M.value?`${M.value-(T.value?D:0)}px`:""}),H=k(()=>e.maxHeight?"fixed":e.tableLayout),K=k(()=>{if(e.data&&e.data.length)return;let M="100%";e.height&&m.value&&(M=`${m.value}px`);const T=f.value;return{width:T?`${T}px`:"",height:M}}),Y=k(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${h.value+p.value}px)`}:{maxHeight:`${+e.maxHeight-h.value-p.value}px`}:{});return{isHidden:a,renderExpanded:l,setDragVisible:i,isGroup:c,handleMouseLeave:g,handleHeaderFooterMousewheel:w,tableSize:I,emptyBlockStyle:K,resizeProxyVisible:r,bodyWidth:L,resizeState:u,doLayout:S,tableBodyStyles:y,tableLayout:H,scrollbarViewStyle:d,scrollbarStyle:Y}}function $Q(e){const t=P(),n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),l={childList:!0,subtree:!0},r=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{r.forEach(i=>i())}),t.value.observe(a,l)};st(()=>{n()}),Ms(()=>{var o;(o=t.value)==null||o.disconnect()})}var _Q={data:{type:Array,default:()=>[]},size:En,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function __(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:a})=>$t(a))&&(n=[]);const o=a=>{const l={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?l.style={width:`${a.width}px`}:l.name=a.id,l};return De("colgroup",{},n.map(a=>De("col",o(a))))}__.props=["columns","tableLayout"];const TQ=()=>{const e=P(),t=(l,r)=>{const i=e.value;i&&i.scrollTo(l,r)},n=(l,r)=>{const i=e.value;i&&xe(r)&&["Top","Left"].includes(l)&&i[`setScroll${l}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:l=>n("Top",l),setScrollLeft:l=>n("Left",l)}};let OQ=1;const RQ=le({name:"ElTable",directives:{Mousewheel:uk},components:{TableHeader:cQ,TableBody:yQ,TableFooter:SQ,ElScrollbar:Xo,hColgroup:__},props:_Q,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=wt(),n=de("table"),o=it();St(Ca,o);const a=XJ(o,e);o.store=a;const l=new QJ({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=l;const r=k(()=>(a.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:v,toggleRowExpansion:m,clearSort:h,sort:p,updateKeyChildren:b}=kQ(a),{isHidden:g,renderExpanded:w,setDragVisible:C,isGroup:y,handleMouseLeave:S,handleHeaderFooterMousewheel:E,tableSize:_,emptyBlockStyle:O,resizeProxyVisible:N,bodyWidth:R,resizeState:A,doLayout:I,tableBodyStyles:L,tableLayout:H,scrollbarViewStyle:K,scrollbarStyle:Y}=EQ(e,l,a,o),{scrollBarRef:M,scrollTo:T,setScrollLeft:D,setScrollTop:B}=TQ(),z=sa(I,50),U=`${n.namespace.value}-table_${OQ++}`;o.tableId=U,o.state={isGroup:y,resizeState:A,doLayout:I,debouncedUpdateLayout:z};const V=k(()=>{var ae;return(ae=e.sumText)!=null?ae:t("el.table.sumText")}),J=k(()=>{var ae;return(ae=e.emptyText)!=null?ae:t("el.table.emptyText")}),q=k(()=>$_(a.states.originColumns.value)[0]);return $Q(o),Dt(()=>{z.cancel()}),{ns:n,layout:l,store:a,columns:q,handleHeaderFooterMousewheel:E,handleMouseLeave:S,tableId:U,tableSize:_,isHidden:g,isEmpty:r,renderExpanded:w,resizeProxyVisible:N,resizeState:A,isGroup:y,bodyWidth:R,tableBodyStyles:L,emptyBlockStyle:O,debouncedUpdateLayout:z,setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:v,toggleRowExpansion:m,clearSort:h,doLayout:I,sort:p,updateKeyChildren:b,t,setDragVisible:C,context:o,computedSumText:V,computedEmptyText:J,tableLayout:H,scrollbarViewStyle:K,scrollbarStyle:Y,scrollBarRef:M,scrollTo:T,setScrollLeft:D,setScrollTop:B,allowDragLastColumn:e.allowDragLastColumn}}}),xQ=["data-prefix"],IQ={ref:"hiddenColumns",class:"hidden-columns"};function MQ(e,t,n,o,a,l){const r=It("hColgroup"),i=It("table-header"),u=It("table-body"),c=It("table-footer"),d=It("el-scrollbar"),f=zd("mousewheel");return $(),F("div",{ref:"tableWrapper",class:x([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Ne(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...v)=>e.handleMouseLeave&&e.handleMouseLeave(...v))},[W("div",{ref:"tableInnerWrapper",class:x(e.ns.e("inner-wrapper"))},[W("div",IQ,[ee(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?ot(($(),F("div",{key:0,ref:"headerWrapper",class:x(e.ns.e("header-wrapper"))},[W("table",{ref:"tableHeader",class:x(e.ns.e("header")),style:Ne(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[X(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),X(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):te("v-if",!0),W("div",{ref:"bodyWrapper",class:x(e.ns.e("body-wrapper"))},[X(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=v=>e.$emit("scroll",v))},{default:Q(()=>[W("table",{ref:"tableBody",class:x(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ne({width:e.bodyWidth,tableLayout:e.tableLayout})},[X(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?($(),ne(i,{key:0,ref:"tableHeaderRef",class:x(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):te("v-if",!0),X(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?($(),ne(c,{key:1,class:x(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):te("v-if",!0)],6),e.isEmpty?($(),F("div",{key:0,ref:"emptyBlock",style:Ne(e.emptyBlockStyle),class:x(e.ns.e("empty-block"))},[W("span",{class:x(e.ns.e("empty-text"))},[ee(e.$slots,"empty",{},()=>[Ct(ge(e.computedEmptyText),1)])],2)],6)):te("v-if",!0),e.$slots.append?($(),F("div",{key:1,ref:"appendWrapper",class:x(e.ns.e("append-wrapper"))},[ee(e.$slots,"append")],2)):te("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?ot(($(),F("div",{key:1,ref:"footerWrapper",class:x(e.ns.e("footer-wrapper"))},[W("table",{class:x(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Ne(e.tableBodyStyles)},[X(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),X(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[xt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):te("v-if",!0),e.border||e.isGroup?($(),F("div",{key:2,class:x(e.ns.e("border-left-patch"))},null,2)):te("v-if",!0)],2),ot(W("div",{ref:"resizeProxy",class:x(e.ns.e("column-resize-proxy"))},null,2),[[xt,e.resizeProxyVisible]])],46,xQ)}var NQ=ye(RQ,[["render",MQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const AQ={selection:"table-column--selection",expand:"table__expand-column"},PQ={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},LQ=e=>AQ[e]||"",DQ={selection:{renderHeader({store:e}){var t;function n(){return e.states.data.value&&e.states.data.value.length===0}return De(Jo,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":(t=e.toggleAllSelection)!=null?t:void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:o}){return De(Jo,{disabled:t.selectable?!t.selectable.call(null,e,o):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const o=e.index;return xe(o)?n=t+o:lt(o)&&(n=o(t)),De("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:o}){const{ns:a}=n,l=[a.e("expand-icon")];!e.renderExpand&&o&&l.push(a.em("expand-icon","expanded"));const r=function(i){i.stopPropagation(),n.toggleRowExpansion(t)};return De("button",{type:"button","aria-label":n.t(o?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":o,class:l,onClick:r},{default:()=>e.renderExpand?[e.renderExpand({expanded:o})]:[De($e,null,{default:()=>[De(to)]})]})},sortable:!1,resizable:!1}};function BQ({row:e,column:t,$index:n}){var o;const a=t.property,l=a&&ri(e,a).value;return t&&t.formatter?t.formatter(e,t,l,n):((o=l==null?void 0:l.toString)==null?void 0:o.call(l))||""}function FQ({row:e,treeNode:t,store:n},o=!1){const{ns:a}=n;if(!t)return o?[De("span",{class:a.e("placeholder")})]:null;const l=[],r=function(i){i.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&l.push(De("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),Vt(t.expanded)&&!t.noLazyChildren){const i=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let u=to;t.loading&&(u=Pa),l.push(De("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:i,onClick:r},{default:()=>[De($e,{class:a.is("loading",t.loading)},{default:()=>[De(u)]})]}))}else l.push(De("span",{class:a.e("placeholder")}));return l}function T_(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function VQ(e,t){const n=it();return{registerComplexWatchers:()=>{const l=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},i=T_(l,r);Object.keys(i).forEach(u=>{const c=r[u];Ln(t,c)&&ue(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=Om(d)),c==="minWidth"&&u==="realMinWidth"&&(f=m_(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const v=c==="fixed";e.value.store.scheduleLayout(v)})})},registerNormalWatchers:()=>{const l=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],r=["showOverflowTooltip"],i={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=T_(l,i);Object.keys(u).forEach(c=>{const d=i[c];Ln(t,d)&&ue(()=>t[d],f=>{n.columnConfig.value[c]=f,(c==="filters"||c==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),r.forEach(c=>{Ln(e.value.props,c)&&ue(()=>e.value.props[c],d=>{n.columnConfig.value.type!=="selection"&&(!$t(t[c])||(n.columnConfig.value[c]=d))})})}}}function zQ(e,t,n){const o=it(),a=P(""),l=P(!1),r=P(),i=P(),u=de("table");lo(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),lo(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:r.value,i.value});const c=k(()=>{let y=o.vnode.vParent||o.parent;for(;y&&!y.tableId&&!y.columnId;)y=y.vnode.vParent||y.parent;return y}),d=k(()=>{const{store:y}=o.parent;if(!y)return!1;const{treeData:S}=y.states,E=S.value;return E&&Object.keys(E).length>0}),f=P(Om(e.width)),v=P(m_(e.minWidth)),m=y=>(f.value&&(y.width=f.value),v.value&&(y.minWidth=v.value),!f.value&&v.value&&(y.width=void 0),y.minWidth||(y.minWidth=80),y.realWidth=Number($t(y.width)?y.minWidth:y.width),y),h=y=>{const S=y.type,E=DQ[S]||{};Object.keys(E).forEach(O=>{const N=E[O];O!=="className"&&!$t(N)&&(y[O]=N)});const _=LQ(S);if(_){const O=`${s(u.namespace)}-${_}`;y.className=y.className?`${y.className} ${O}`:O}return y},p=y=>{Ee(y)?y.forEach(E=>S(E)):S(y);function S(E){var _;((_=E==null?void 0:E.type)==null?void 0:_.name)==="ElTableColumn"&&(E.vParent=o)}};return{columnId:a,realAlign:r,isSubColumn:l,realHeaderAlign:i,columnOrTableParent:c,setColumnWidth:m,setColumnForcedProps:h,setColumnRenders:y=>{e.renderHeader||y.type!=="selection"&&(y.renderHeader=E=>{if(o.columnConfig.value.label,t.header){const _=t.header(E);if(C_(_))return De(Fe,_)}return Ct(y.label)}),t["filter-icon"]&&(y.renderFilterIcon=E=>ee(t,"filter-icon",E)),t.expand&&(y.renderExpand=E=>ee(t,"expand",E));let S=y.renderCell;return y.type==="expand"?(y.renderCell=E=>De("div",{class:"cell"},[S(E)]),n.value.renderExpanded=E=>t.default?t.default(E):t.default):(S=S||BQ,y.renderCell=E=>{let _=null;if(t.default){const L=t.default(E);_=L.some(H=>H.type!==Ua)?L:S(E)}else _=S(E);const{columns:O}=n.value.store.states,N=O.value.findIndex(L=>L.type==="default"),R=d.value&&E.cellIndex===N,A=FQ(E,R),I={class:"cell",style:{}};return y.showOverflowTooltip&&(I.class=`${I.class} ${s(u.namespace)}-tooltip`,I.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),p(_),De("div",I,[A,_])}),y},getPropsData:(...y)=>y.reduce((S,E)=>(Ee(E)&&E.forEach(_=>{S[_]=e[_]}),S),{}),getColumnElIndex:(y,S)=>Array.prototype.indexOf.call(y,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",o.columnConfig.value)}}}var HQ={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let WQ=1;var O_=le({name:"ElTableColumn",components:{ElCheckbox:Jo},props:HQ,setup(e,{slots:t}){const n=it(),o=P({}),a=k(()=>{let C=n.parent;for(;C&&!C.tableId;)C=C.parent;return C}),{registerNormalWatchers:l,registerComplexWatchers:r}=VQ(a,e),{columnId:i,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:v,setColumnRenders:m,getPropsData:h,getColumnElIndex:p,realAlign:b,updateColumnOrder:g}=zQ(e,t,a),w=d.value;i.value=`${"tableId"in w&&w.tableId||"columnId"in w&&w.columnId}_column_${WQ++}`,Fd(()=>{u.value=a.value!==w;const C=e.type||"default",y=e.sortable===""?!0:e.sortable,S=C==="selection"?!1:$t(e.showOverflowTooltip)?w.props.showOverflowTooltip:e.showOverflowTooltip,E=$t(e.tooltipFormatter)?w.props.tooltipFormatter:e.tooltipFormatter,_={...PQ[C],id:i.value,type:C,property:e.prop||e.property,align:b,headerAlign:c,showOverflowTooltip:S,tooltipFormatter:E,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:y,index:e.index,rawColumnKey:n.vnode.key};let I=h(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);I=BJ(_,I),I=VJ(m,f,v)(I),o.value=I,l(),r()}),st(()=>{var C,y;const S=d.value,E=u.value?(C=S.vnode.el)==null?void 0:C.children:(y=S.refs.hiddenColumns)==null?void 0:y.children,_=()=>p(E||[],n.vnode.el);o.value.getColumnIndex=_,_()>-1&&a.value.store.commit("insertColumn",o.value,u.value?"columnConfig"in S&&S.columnConfig.value:null,g)}),Dt(()=>{const C=o.value.getColumnIndex;(C?C():-1)>-1&&a.value.store.commit("removeColumn",o.value,u.value?"columnConfig"in w&&w.columnConfig.value:null,g)}),n.columnId=i.value,n.columnConfig=o},render(){var e,t,n;try{const o=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(Ee(o))for(const r of o)((n=r.type)==null?void 0:n.name)==="ElTableColumn"||r.shapeFlag&2?a.push(r):r.type===Fe&&Ee(r.children)&&r.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!ze(i==null?void 0:i.children)&&a.push(i)});return De("div",a)}catch(o){return De("div",[])}}});const R_=Qe(NQ,{TableColumn:O_}),x_=sn(O_);var jl=(e=>(e.ASC="asc",e.DESC="desc",e))(jl||{}),Es=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(Es||{}),Lm=(e=>(e.LEFT="left",e.RIGHT="right",e))(Lm||{});const Dm={asc:"desc",desc:"asc"},$s=Symbol("placeholder"),KQ=(e,t,n)=>{var o;const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(a.flexShrink=1);const l={...(o=e.style)!=null?o:{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(l.maxWidth=e.maxWidth),e.minWidth&&(l.minWidth=e.minWidth)),l};function jQ(e,t,n){const o=k(()=>s(t).map((b,g)=>{var w,C;return{...b,key:(C=(w=b.key)!=null?w:b.dataKey)!=null?C:g}})),a=k(()=>s(o).filter(b=>!b.hidden)),l=k(()=>s(a).filter(b=>b.fixed==="left"||b.fixed===!0)),r=k(()=>s(a).filter(b=>b.fixed==="right")),i=k(()=>s(a).filter(b=>!b.fixed)),u=k(()=>{const b=[];return s(l).forEach(g=>{b.push({...g,placeholderSign:$s})}),s(i).forEach(g=>{b.push(g)}),s(r).forEach(g=>{b.push({...g,placeholderSign:$s})}),b}),c=k(()=>s(l).length||s(r).length),d=k(()=>s(o).reduce((b,g)=>(b[g.key]=KQ(g,s(n),e.fixed),b),{})),f=k(()=>s(a).reduce((b,g)=>b+g.width,0)),v=b=>s(o).find(g=>g.key===b),m=b=>s(d)[b],h=(b,g)=>{b.width=g};function p(b){var g;const{key:w}=b.currentTarget.dataset;if(!w)return;const{sortState:C,sortBy:y}=e;let S=jl.ASC;Rt(C)?S=Dm[C[w]]:S=Dm[y.order],(g=e.onColumnSort)==null||g.call(e,{column:v(w),key:w,order:S})}return{columns:o,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:l,fixedColumnsOnRight:r,hasFixedColumns:c,mainColumns:u,normalColumns:i,visibleColumns:a,getColumn:v,getColumnStyle:m,updateColumnWidth:h,onColumnSorted:p}}const YQ=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:a})=>{const l=P({scrollLeft:0,scrollTop:0});function r(m){var h,p,b;const{scrollTop:g}=m;(h=t.value)==null||h.scrollTo(m),(p=n.value)==null||p.scrollToTop(g),(b=o.value)==null||b.scrollToTop(g)}function i(m){l.value=m,r(m)}function u(m){l.value.scrollTop=m,r(s(l))}function c(m){var h,p;l.value.scrollLeft=m,(p=(h=t.value)==null?void 0:h.scrollTo)==null||p.call(h,s(l))}function d(m){var h;i(m),(h=e.onScroll)==null||h.call(e,m)}function f({scrollTop:m}){const{scrollTop:h}=s(l);m!==h&&u(m)}function v(m,h="auto"){var p;(p=t.value)==null||p.scrollToRow(m,h)}return ue(()=>s(l).scrollTop,(m,h)=>{m>h&&a()}),{scrollPos:l,scrollTo:i,scrollToLeft:c,scrollToTop:u,scrollToRow:v,onScroll:d,onVerticalScroll:f}},UQ=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:a,ns:l,isScrolling:r})=>{const i=it(),{emit:u}=i,c=Zt(!1),d=P(e.defaultExpandedRowKeys||[]),f=P(-1),v=Zt(null),m=P({}),h=P({}),p=Zt({}),b=Zt({}),g=Zt({}),w=k(()=>xe(e.estimatedRowHeight));function C(R){var A;(A=e.onRowsRendered)==null||A.call(e,R),R.rowCacheEnd>s(f)&&(f.value=R.rowCacheEnd)}function y({hovered:R,rowKey:A}){if(r.value)return;a.vnode.el.querySelectorAll(`[rowkey="${String(A)}"]`).forEach(H=>{R?H.classList.add(l.is("hovered")):H.classList.remove(l.is("hovered"))})}function S({expanded:R,rowData:A,rowIndex:I,rowKey:L}){var H,K;const Y=[...s(d)],M=Y.indexOf(L);R?M===-1&&Y.push(L):M>-1&&Y.splice(M,1),d.value=Y,u("update:expandedRowKeys",Y),(H=e.onRowExpand)==null||H.call(e,{expanded:R,rowData:A,rowIndex:I,rowKey:L}),(K=e.onExpandedRowsChange)==null||K.call(e,Y),a.vnode.el.querySelector(`.${l.is("hovered")}[rowkey="${String(L)}"]`)&&ke(()=>y({hovered:!0,rowKey:L}))}const E=sa(()=>{var R,A,I,L;c.value=!0,m.value={...s(m),...s(h)},_(s(v),!1),h.value={},v.value=null,(R=t.value)==null||R.forceUpdate(),(A=n.value)==null||A.forceUpdate(),(I=o.value)==null||I.forceUpdate(),(L=i.proxy)==null||L.$forceUpdate(),c.value=!1},0);function _(R,A=!1){!s(w)||[t,n,o].forEach(I=>{const L=s(I);L&&L.resetAfterRowIndex(R,A)})}function O(R,A,I){const L=s(v);(L===null||L>I)&&(v.value=I),h.value[R]=A}function N({rowKey:R,height:A,rowIndex:I},L){L?L===Lm.RIGHT?g.value[R]=A:p.value[R]=A:b.value[R]=A;const H=Math.max(...[p,g,b].map(K=>K.value[R]||0));s(m)[R]!==H&&(O(R,H,I),E())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:w,isResetting:c,rowHeights:m,resetAfterIndex:_,onRowExpanded:S,onRowHovered:y,onRowsRendered:C,onRowHeightChange:N}},GQ=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:o})=>{const a=P({}),l=k(()=>{const i={},{data:u,rowKey:c}=e,d=s(t);if(!d||!d.length)return u;const f=[],v=new Set;d.forEach(h=>v.add(h));let m=u.slice();for(m.forEach(h=>i[h[c]]=0);m.length>0;){const h=m.shift();f.push(h),v.has(h[c])&&Ee(h.children)&&h.children.length>0&&(m=[...h.children,...m],h.children.forEach(p=>i[p[c]]=i[h[c]]+1))}return a.value=i,f}),r=k(()=>{const{data:i,expandColumnKey:u}=e;return u?s(l):i});return ue(r,(i,u)=>{i!==u&&(n.value=-1,o(0,!0))}),{data:r,depthMap:a}},qQ=(e,t)=>e+t,yd=e=>Ee(e)?e.reduce(qQ,0):e,yr=(e,t,n={})=>lt(e)?e(t):e!=null?e:n,Yl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=rn(e[t])}),e),I_=e=>Jt(e)?t=>De(e,t):e,XQ=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:o,fixedColumnsOnRight:a})=>{const l=k(()=>{const{fixed:g,width:w,vScrollbarSize:C}=e,y=w-C;return g?Math.max(Math.round(s(t)),y):y}),r=k(()=>{const{height:g=0,maxHeight:w=0,footerHeight:C,hScrollbarSize:y}=e;if(w>0){const S=s(v),E=s(n),O=s(f)+S+E+y;return Math.min(O,w-C)}return g-C}),i=k(()=>{const{maxHeight:g}=e,w=s(r);if(xe(g)&&g>0)return w;const C=s(n)+s(f)+s(v);return Math.min(w,C)}),u=g=>g.width,c=k(()=>yd(s(o).map(u))),d=k(()=>yd(s(a).map(u))),f=k(()=>yd(e.headerHeight)),v=k(()=>{var g;return(((g=e.fixedData)==null?void 0:g.length)||0)*e.rowHeight}),m=k(()=>s(r)-s(f)-s(v)),h=k(()=>{const{style:g={},height:w,width:C}=e;return Yl({...g,height:w,width:C})}),p=k(()=>Yl({height:e.footerHeight})),b=k(()=>({top:rn(s(f)),bottom:rn(e.footerHeight),width:rn(e.width)}));return{bodyWidth:l,fixedTableHeight:i,mainTableHeight:r,leftTableWidth:c,rightTableWidth:d,windowHeight:m,footerHeight:p,emptyStyle:b,rootStyle:h,headerHeight:f}},ZQ=e=>{const t=P(),n=P(0),o=P(0);let a;return st(()=>{a=Qt(t,([l])=>{const{width:r,height:i}=l.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(l.target),v=Number.parseInt(u)||0,m=Number.parseInt(c)||0,h=Number.parseInt(d)||0,p=Number.parseInt(f)||0;n.value=r-v-m,o.value=i-h-p}).stop}),Dt(()=>{a==null||a()}),ue([n,o],([l,r])=>{var i;(i=e.onResize)==null||i.call(e,{width:l,height:r})}),{sizer:t,width:n,height:o}};function JQ(e){const t=P(),n=P(),o=P(),{columns:a,columnsStyles:l,columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=jQ(e,Ft(e,"columns"),Ft(e,"fixed")),{scrollTo:v,scrollToLeft:m,scrollToTop:h,scrollToRow:p,onScroll:b,onVerticalScroll:g,scrollPos:w}=YQ(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:Se}),C=de("table-v2"),y=it(),S=Zt(!1),{expandedRowKeys:E,lastRenderedRowIndex:_,isDynamic:O,isResetting:N,rowHeights:R,resetAfterIndex:A,onRowExpanded:I,onRowHeightChange:L,onRowHovered:H,onRowsRendered:K}=UQ(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:y,ns:C,isScrolling:S}),{data:Y,depthMap:M}=GQ(e,{expandedRowKeys:E,lastRenderedRowIndex:_,resetAfterIndex:A}),T=k(()=>{const{estimatedRowHeight:Ie,rowHeight:Le}=e,He=s(Y);return xe(Ie)?Object.values(s(R)).reduce((We,tt)=>We+tt,0):He.length*Le}),{bodyWidth:D,fixedTableHeight:B,mainTableHeight:z,leftTableWidth:U,rightTableWidth:V,windowHeight:J,footerHeight:q,emptyStyle:ae,rootStyle:ie,headerHeight:oe}=XQ(e,{columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,rowsHeight:T}),fe=P(),re=k(()=>{const Ie=s(Y).length===0;return Ee(e.fixedData)?e.fixedData.length===0&&Ie:Ie});function j(Ie){const{estimatedRowHeight:Le,rowHeight:He,rowKey:We}=e;return Le?s(R)[s(Y)[Ie][We]]||Le:He}const se=P(!1);function Se(){const{onEndReached:Ie}=e;if(!Ie)return;const{scrollTop:Le}=s(w),He=s(T),We=s(J),tt=He-(Le+We)+e.hScrollbarSize;!se.value&&s(_)>=0&&He<=Le+s(z)-s(oe)?(se.value=!0,Ie(tt)):se.value=!1}return ue(()=>s(T),()=>se.value=!1),ue(()=>e.expandedRowKeys,Ie=>E.value=Ie,{deep:!0}),{columns:a,containerRef:fe,mainTableRef:t,leftTableRef:n,rightTableRef:o,isDynamic:O,isResetting:N,isScrolling:S,hasFixedColumns:c,columnsStyles:l,columnsTotalWidth:r,data:Y,expandedRowKeys:E,depthMap:M,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:D,emptyStyle:ae,rootStyle:ie,footerHeight:q,mainTableHeight:z,fixedTableHeight:B,leftTableWidth:U,rightTableWidth:V,showEmpty:re,getRowHeight:j,onColumnSorted:f,onRowHovered:H,onRowExpanded:I,onRowsRendered:K,onRowHeightChange:L,scrollTo:v,scrollToLeft:m,scrollToTop:h,scrollToRow:p,onScroll:b,onVerticalScroll:g}}const Bm=Symbol("tableV2"),M_="tableV2GridScrollLeft",N_=String,Gi={type:G(Array),required:!0},Fm={type:G(Array)},A_={...Fm,required:!0},QQ=String,P_={type:G(Array),default:()=>un([])},wr={type:Number,required:!0},L_={type:G([String,Number,Symbol]),default:"id"},D_={type:G(Object)},Ul=me({class:String,columns:Gi,columnsStyles:{type:G(Object),required:!0},depth:Number,expandColumnKey:QQ,estimatedRowHeight:{...Kl.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:G(Function)},onRowHover:{type:G(Function)},onRowHeightChange:{type:G(Function)},rowData:{type:G(Object),required:!0},rowEventHandlers:{type:G(Object)},rowIndex:{type:Number,required:!0},rowKey:L_,style:{type:G(Object)}}),Vm={type:Number,required:!0},zm=me({class:String,columns:Gi,fixedHeaderData:{type:G(Array)},headerData:{type:G(Array),required:!0},headerHeight:{type:G([Number,Array]),default:50},rowWidth:Vm,rowHeight:{type:Number,default:50},height:Vm,width:Vm}),wd=me({columns:Gi,data:A_,fixedData:Fm,estimatedRowHeight:Ul.estimatedRowHeight,width:wr,height:wr,headerWidth:wr,headerHeight:zm.headerHeight,bodyWidth:wr,rowHeight:wr,cache:gm.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Kl.scrollbarAlwaysOn,scrollbarStartGap:Kl.scrollbarStartGap,scrollbarEndGap:Kl.scrollbarEndGap,class:N_,style:D_,containerStyle:D_,getRowHeight:{type:G(Function),required:!0},rowKey:Ul.rowKey,onRowsRendered:{type:G(Function)},onScroll:{type:G(Function)}}),B_=me({cache:wd.cache,estimatedRowHeight:Ul.estimatedRowHeight,rowKey:L_,headerClass:{type:G([String,Function])},headerProps:{type:G([Object,Function])},headerCellProps:{type:G([Object,Function])},headerHeight:zm.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:G([String,Function])},rowProps:{type:G([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:G([Object,Function])},columns:Gi,data:A_,dataGetter:{type:G(Function)},fixedData:Fm,expandColumnKey:Ul.expandColumnKey,expandedRowKeys:P_,defaultExpandedRowKeys:P_,class:N_,fixed:Boolean,style:{type:G(Object)},width:wr,height:wr,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Kl.hScrollbarSize,vScrollbarSize:Kl.vScrollbarSize,scrollbarAlwaysOn:ym.alwaysOn,sortBy:{type:G(Object),default:()=>({})},sortState:{type:G(Object),default:void 0},onColumnSort:{type:G(Function)},onExpandedRowsChange:{type:G(Function)},onEndReached:{type:G(Function)},onRowExpand:Ul.onRowExpand,onScroll:wd.onScroll,onRowsRendered:wd.onRowsRendered,rowEventHandlers:Ul.rowEventHandlers}),Hm=(e,{slots:t})=>{var n;const{cellData:o,style:a}=e,l=((n=o==null?void 0:o.toString)==null?void 0:n.call(o))||"",r=ee(t,"default",e,()=>[l]);return X("div",{class:e.class,title:l,style:a},[r])};Hm.displayName="ElTableV2Cell",Hm.inheritAttrs=!1;var eee=Hm;const Wm=(e,{slots:t})=>ee(t,"default",e,()=>{var n,o;return[X("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(o=e.column)==null?void 0:o.title])]});Wm.displayName="ElTableV2HeaderCell",Wm.inheritAttrs=!1;var tee=Wm;const nee=me({class:String,columns:Gi,columnsStyles:{type:G(Object),required:!0},headerIndex:Number,style:{type:G(Object)}}),oee=le({name:"ElTableV2HeaderRow",props:nee,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:o,headerIndex:a,style:l}=e;let r=n.map((i,u)=>t.cell({columns:n,column:i,columnIndex:u,headerIndex:a,style:o[i.key]}));return t.header&&(r=t.header({cells:r.map(i=>Ee(i)&&i.length===1?i[0]:i),columns:n,headerIndex:a})),X("div",{class:e.class,style:l,role:"row"},[r])}}});var aee=oee;const lee="ElTableV2Header",ree=le({name:lee,props:zm,setup(e,{slots:t,expose:n}){const o=de("table-v2"),a=Te(M_),l=P(),r=k(()=>Yl({width:e.width,height:e.height})),i=k(()=>Yl({width:e.rowWidth,height:e.height})),u=k(()=>Nn(s(e.headerHeight))),c=v=>{const m=s(l);ke(()=>{m!=null&&m.scroll&&m.scroll({left:v})})},d=()=>{const v=o.e("fixed-header-row"),{columns:m,fixedHeaderData:h,rowHeight:p}=e;return h==null?void 0:h.map((b,g)=>{var w;const C=Yl({height:p,width:"100%"});return(w=t.fixed)==null?void 0:w.call(t,{class:v,columns:m,rowData:b,rowIndex:-(g+1),style:C})})},f=()=>{const v=o.e("dynamic-header-row"),{columns:m}=e;return s(u).map((h,p)=>{var b;const g=Yl({width:"100%",height:h});return(b=t.dynamic)==null?void 0:b.call(t,{class:v,columns:m,headerIndex:p,style:g})})};return Ga(()=>{a!=null&&a.value&&c(a.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return X("div",{ref:l,class:e.class,style:s(r),role:"rowgroup"},[X("div",{style:s(i),class:o.e("header")},[f(),d()])])}}});var see=ree;const iee=e=>{const{isScrolling:t}=Te(Bm),n=P(!1),o=P(),a=k(()=>xe(e.estimatedRowHeight)&&e.rowIndex>=0),l=(u=!1)=>{const c=s(o);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:v,rowIndex:m,style:h}=e,{height:p}=c.getBoundingClientRect();n.value=!0,ke(()=>{if(u||p!==Number.parseInt(h.height)){const b=d[0],g=(b==null?void 0:b.placeholderSign)===$s;f==null||f({rowKey:v,height:p,rowIndex:m},b&&!g&&b.fixed)}})},r=k(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,v=e.rowEventHandlers||{},m={};return Object.entries(v).forEach(([h,p])=>{lt(p)&&(m[h]=b=>{p({event:b,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:h,hovered:p})=>{const b=m[h];m[h]=g=>{f({event:g,hovered:p,rowData:u,rowIndex:c,rowKey:d}),b==null||b(g)}}),m}),i=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:v}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:v})};return st(()=>{s(a)&&l(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:o,eventHandlers:r,onExpand:i}},uee="ElTableV2TableRow",cee=le({name:uee,props:Ul,setup(e,{expose:t,slots:n,attrs:o}){const{eventHandlers:a,isScrolling:l,measurable:r,measured:i,rowRef:u,onExpand:c}=iee(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:v,depth:m,rowData:h,rowIndex:p,style:b}=e;let g=d.map((w,C)=>{const y=Ee(h.children)&&h.children.length>0&&w.key===v;return n.cell({column:w,columns:d,columnIndex:C,depth:m,style:f[w.key],rowData:h,rowIndex:p,isScrolling:s(l),expandIconProps:y?{rowData:h,rowIndex:p,onExpand:c}:void 0})});if(n.row&&(g=n.row({cells:g.map(w=>Ee(w)&&w.length===1?w[0]:w),style:b,columns:d,depth:m,rowData:h,rowIndex:p,isScrolling:s(l)})),s(r)){const{height:w,...C}=b||{},y=s(i);return X("div",rt({ref:u,class:e.class,style:y?b:C,role:"row"},o,s(a)),[g])}return X("div",rt(o,{ref:u,class:e.class,style:b,role:"row"},s(a)),[g])}}});var dee=cee;const fee=e=>{const{sortOrder:t}=e;return X("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[X($e,{size:14},{default:()=>[t===jl.ASC?X(FV,null,null):X(DV,null,null)]})])};var pee=fee;const vee=e=>{const{expanded:t,expandable:n,onExpand:o,style:a,size:l,ariaLabel:r}=e,i={onClick:n?()=>o(!t):void 0,ariaLabel:r,ariaExpanded:t,class:e.class};return X("button",rt(i,{type:"button"}),[X($e,{size:l,style:a},{default:()=>[X(to,null,null)]})])};var hee=vee;const mee="ElTableV2Grid",gee=e=>{const t=P(),n=P(),o=P(0),a=k(()=>{const{data:b,rowHeight:g,estimatedRowHeight:w}=e;if(!w)return b.length*g}),l=k(()=>{const{fixedData:b,rowHeight:g}=e;return((b==null?void 0:b.length)||0)*g}),r=k(()=>yd(e.headerHeight)),i=k(()=>{const{height:b}=e;return Math.max(0,b-s(r)-s(l))}),u=k(()=>s(r)+s(l)>0),c=({data:b,rowIndex:g})=>b[g][e.rowKey];function d({rowCacheStart:b,rowCacheEnd:g,rowVisibleStart:w,rowVisibleEnd:C}){var y;(y=e.onRowsRendered)==null||y.call(e,{rowCacheStart:b,rowCacheEnd:g,rowVisibleStart:w,rowVisibleEnd:C})}function f(b,g){var w;(w=n.value)==null||w.resetAfterRowIndex(b,g)}function v(b,g){const w=s(t),C=s(n);Rt(b)?(w==null||w.scrollToLeft(b.scrollLeft),o.value=b.scrollLeft,C==null||C.scrollTo(b)):(w==null||w.scrollToLeft(b),o.value=b,C==null||C.scrollTo({scrollLeft:b,scrollTop:g}))}function m(b){var g;(g=s(n))==null||g.scrollTo({scrollTop:b})}function h(b,g){var w;(w=s(n))==null||w.scrollToItem(b,1,g)}function p(){var b,g;(b=s(n))==null||b.$forceUpdate(),(g=s(t))==null||g.$forceUpdate()}return ue(()=>e.bodyWidth,()=>{var b;xe(e.estimatedRowHeight)&&((b=n.value)==null||b.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:p,fixedRowHeight:l,gridHeight:i,hasHeader:u,headerHeight:r,headerRef:t,totalHeight:a,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:v,scrollToTop:m,scrollToRow:h,scrollLeft:o}},Km=le({name:mee,props:wd,setup(e,{slots:t,expose:n}){const{ns:o}=Te(Bm),{bodyRef:a,fixedRowHeight:l,gridHeight:r,hasHeader:i,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:v,onItemRendered:m,resetAfterRowIndex:h,scrollTo:p,scrollToTop:b,scrollToRow:g,scrollLeft:w}=gee(e);St(M_,w),Vd(async()=>{var y;await ke();const S=(y=a.value)==null?void 0:y.states.scrollTop;S&&b(Math.round(S)+1)}),n({forceUpdate:f,totalHeight:d,scrollTo:p,scrollToTop:b,scrollToRow:g,resetAfterRowIndex:h});const C=()=>e.bodyWidth;return()=>{const{cache:y,columns:S,data:E,fixedData:_,useIsScrolling:O,scrollbarAlwaysOn:N,scrollbarEndGap:R,scrollbarStartGap:A,style:I,rowHeight:L,bodyWidth:H,estimatedRowHeight:K,headerWidth:Y,height:M,width:T,getRowHeight:D,onScroll:B}=e,z=xe(K),U=z?L$:O$,V=s(c);return X("div",{role:"table",class:[o.e("table"),e.class],style:I},[X(U,{ref:a,data:E,useIsScrolling:O,itemKey:v,columnCache:0,columnWidth:z?C:H,totalColumn:1,totalRow:E.length,rowCache:y,rowHeight:z?D:L,width:T,height:s(r),class:o.e("body"),role:"rowgroup",scrollbarStartGap:A,scrollbarEndGap:R,scrollbarAlwaysOn:N,onScroll:B,onItemRendered:m,perfMode:!1},{default:J=>{var q;const ae=E[J.rowIndex];return(q=t.row)==null?void 0:q.call(t,{...J,columns:S,rowData:ae})}}),s(i)&&X(see,{ref:u,class:o.e("header-wrapper"),columns:S,headerData:E,headerHeight:e.headerHeight,fixedHeaderData:_,rowWidth:Y,rowHeight:L,width:T,height:Math.min(V+s(l),M)},{dynamic:t.header,fixed:t.row})])}}});function bee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const yee=(e,{slots:t})=>{const{mainTableRef:n,...o}=e;return X(Km,rt({ref:n},o),bee(t)?t:{default:()=>[t]})};function wee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Cee=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...o}=e;return X(Km,rt({ref:n},o),wee(t)?t:{default:()=>[t]})};function See(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const kee=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...o}=e;return X(Km,rt({ref:n},o),See(t)?t:{default:()=>[t]})};function Eee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const $ee=(e,{slots:t})=>{const{columns:n,columnsStyles:o,depthMap:a,expandColumnKey:l,expandedRowKeys:r,estimatedRowHeight:i,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:v,rowProps:m,rowClass:h,rowKey:p,rowEventHandlers:b,ns:g,onRowHovered:w,onRowExpanded:C}=e,y=yr(h,{columns:n,rowData:c,rowIndex:d},""),S=yr(m,{columns:n,rowData:c,rowIndex:d}),E=c[p],_=a[E]||0,O=Boolean(l),N=d<0,R=[g.e("row"),y,g.is("expanded",O&&r.includes(E)),g.is("fixed",!_&&N),g.is("customized",Boolean(t.row)),{[g.e(`row-depth-${_}`)]:O&&d>=0}],A=u?w:void 0,I={...S,columns:n,columnsStyles:o,class:R,depth:_,expandColumnKey:l,estimatedRowHeight:N?void 0:i,isScrolling:v,rowIndex:d,rowData:c,rowKey:E,rowEventHandlers:b,style:f};return X(dee,rt(I,{onRowExpand:C,onMouseenter:K=>{A==null||A({hovered:!0,rowKey:E,event:K,rowData:c,rowIndex:d})},onMouseleave:K=>{A==null||A({hovered:!1,rowKey:E,event:K,rowData:c,rowIndex:d})},rowkey:E}),Eee(t)?t:{default:()=>[t]})},jm=({columns:e,column:t,columnIndex:n,depth:o,expandIconProps:a,isScrolling:l,rowData:r,rowIndex:i,style:u,expandedRowKeys:c,ns:d,t:f,cellProps:v,expandColumnKey:m,indentSize:h,iconSize:p,rowKey:b},{slots:g})=>{const w=Yl(u);if(t.placeholderSign===$s)return X("div",{class:d.em("row-cell","placeholder"),style:w},null);const{cellRenderer:C,dataKey:y,dataGetter:S}=t,E=lt(S)?S({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i}):hn(r,y!=null?y:""),_=yr(v,{cellData:E,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:r}),O={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:E,isScrolling:l,rowData:r,rowIndex:i},N=I_(C),R=N?N(O):ee(g,"default",O,()=>[X(eee,O,null)]),A=[d.e("row-cell"),t.class,t.align===Es.CENTER&&d.is("align-center"),t.align===Es.RIGHT&&d.is("align-right")],I=i>=0&&m&&t.key===m,L=i>=0&&c.includes(r[b]);let H;const K=`margin-inline-start: ${o*h}px;`;return I&&(Rt(a)?H=X(hee,rt(a,{class:[d.e("expand-icon"),d.is("expanded",L)],size:p,expanded:L,ariaLabel:f(L?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:K,expandable:!0}),null):H=X("div",{style:[K,`width: ${p}px; height: ${p}px;`].join(" ")},null)),X("div",rt({class:A,style:w},_,{role:"cell"}),[H,R])};jm.inheritAttrs=!1;function _ee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Tee=({columns:e,columnsStyles:t,headerIndex:n,style:o,headerClass:a,headerProps:l,ns:r},{slots:i})=>{const u={columns:e,headerIndex:n},c=[r.e("header-row"),yr(a,u,""),r.is("customized",Boolean(i.header))],d={...yr(l,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:o};return X(aee,d,_ee(i)?i:{default:()=>[i]})},F_=(e,{slots:t})=>{const{column:n,ns:o,t:a,style:l,onColumnSorted:r}=e,i=Yl(l);if(n.placeholderSign===$s)return X("div",{class:o.em("header-row-cell","placeholder"),style:i},null);const{headerCellRenderer:u,headerClass:c,sortable:d}=n,f={...e,class:o.e("header-cell-text")},v=I_(u),m=v?v(f):ee(t,"default",f,()=>[X(tee,f,null)]),{sortBy:h,sortState:p,headerCellProps:b}=e;let g,w,C;if(p){const E=p[n.key];g=Boolean(Dm[E]),w=g?E:jl.ASC}else g=n.key===h.key,w=g?h.order:jl.ASC;w===jl.ASC?C="ascending":w===jl.DESC?C="descending":C=void 0;const y=[o.e("header-cell"),yr(c,e,""),n.align===Es.CENTER&&o.is("align-center"),n.align===Es.RIGHT&&o.is("align-right"),d&&o.is("sortable")],S={...yr(b,e),onClick:n.sortable?r:void 0,ariaSort:d?C:void 0,class:y,style:i,["data-key"]:n.key};return X("div",rt(S,{role:"columnheader"}),[m,d&&X(pee,{class:[o.e("sort-icon"),g&&o.is("sorting")],sortOrder:w,ariaLabel:a("el.table.sortLabel",{column:n.title||""})},null)])},V_=(e,{slots:t})=>{var n;return X("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};V_.displayName="ElTableV2Footer";const z_=(e,{slots:t})=>{const n=ee(t,"default",{},()=>[X(Zh,null,null)]);return X("div",{class:e.class,style:e.style},[n])};z_.displayName="ElTableV2Empty";const H_=(e,{slots:t})=>{var n;return X("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};H_.displayName="ElTableV2Overlay";function qi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Oee="ElTableV2",Ree=le({name:Oee,props:B_,setup(e,{slots:t,expose:n}){const o=de("table-v2"),{t:a}=wt(),{columnsStyles:l,fixedColumnsOnLeft:r,fixedColumnsOnRight:i,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:v,data:m,depthMap:h,expandedRowKeys:p,hasFixedColumns:b,mainTableRef:g,leftTableRef:w,rightTableRef:C,isDynamic:y,isResetting:S,isScrolling:E,bodyWidth:_,emptyStyle:O,rootStyle:N,footerHeight:R,showEmpty:A,scrollTo:I,scrollToLeft:L,scrollToTop:H,scrollToRow:K,getRowHeight:Y,onColumnSorted:M,onRowHeightChange:T,onRowHovered:D,onRowExpanded:B,onRowsRendered:z,onScroll:U,onVerticalScroll:V}=JQ(e);return n({scrollTo:I,scrollToLeft:L,scrollToTop:H,scrollToRow:K}),St(Bm,{ns:o,isResetting:S,isScrolling:E}),()=>{const{cache:J,cellProps:q,estimatedRowHeight:ae,expandColumnKey:ie,fixedData:oe,headerHeight:fe,headerClass:re,headerProps:j,headerCellProps:se,sortBy:Se,sortState:Ie,rowHeight:Le,rowClass:He,rowEventHandlers:We,rowKey:tt,rowProps:Tt,scrollbarAlwaysOn:Xe,indentSize:Ae,iconSize:Pe,useIsScrolling:Ze,vScrollbarSize:et,width:gt}=e,vt=s(m),Ce={cache:J,class:o.e("main"),columns:s(u),data:vt,fixedData:oe,estimatedRowHeight:ae,bodyWidth:s(_),headerHeight:fe,headerWidth:s(_),height:s(c),mainTableRef:g,rowKey:tt,rowHeight:Le,scrollbarAlwaysOn:Xe,scrollbarStartGap:2,scrollbarEndGap:et,useIsScrolling:Ze,width:gt,getRowHeight:Y,onRowsRendered:z,onScroll:U},Ve=s(f),Ke=s(d),Yt={cache:J,class:o.e("left"),columns:s(r),data:vt,fixedData:oe,estimatedRowHeight:ae,leftTableRef:w,rowHeight:Le,bodyWidth:Ve,headerWidth:Ve,headerHeight:fe,height:Ke,rowKey:tt,scrollbarAlwaysOn:Xe,scrollbarStartGap:2,scrollbarEndGap:et,useIsScrolling:Ze,width:Ve,getRowHeight:Y,onScroll:V},Be=s(v),ht={cache:J,class:o.e("right"),columns:s(i),data:vt,fixedData:oe,estimatedRowHeight:ae,rightTableRef:C,rowHeight:Le,bodyWidth:Be,headerWidth:Be,headerHeight:fe,height:Ke,rowKey:tt,scrollbarAlwaysOn:Xe,scrollbarStartGap:2,scrollbarEndGap:et,width:Be,style:`${o.cssVarName("table-scrollbar-size")}: ${et}px`,useIsScrolling:Ze,getRowHeight:Y,onScroll:V},ut=s(l),bt={ns:o,depthMap:s(h),columnsStyles:ut,expandColumnKey:ie,expandedRowKeys:s(p),estimatedRowHeight:ae,hasFixedColumns:s(b),rowProps:Tt,rowClass:He,rowKey:tt,rowEventHandlers:We,onRowHovered:D,onRowExpanded:B,onRowHeightChange:T},ve={cellProps:q,expandColumnKey:ie,indentSize:Ae,iconSize:Pe,rowKey:tt,expandedRowKeys:s(p),ns:o,t:a},Oe={ns:o,headerClass:re,headerProps:j,columnsStyles:ut},ce={ns:o,t:a,sortBy:Se,sortState:Ie,headerCellProps:se,onColumnSorted:M},Me={row:he=>X($ee,rt(he,bt),{row:t.row,cell:_e=>{let je;return t.cell?X(jm,rt(_e,ve,{style:ut[_e.column.key]}),qi(je=t.cell(_e))?je:{default:()=>[je]}):X(jm,rt(_e,ve,{style:ut[_e.column.key]}),null)}}),header:he=>X(Tee,rt(he,Oe),{header:t.header,cell:_e=>{let je;return t["header-cell"]?X(F_,rt(_e,ce,{style:ut[_e.column.key]}),qi(je=t["header-cell"](_e))?je:{default:()=>[je]}):X(F_,rt(_e,ce,{style:ut[_e.column.key]}),null)}})},pt=[e.class,o.b(),o.e("root"),o.is("dynamic",s(y))],Ut={class:o.e("footer"),style:s(R)};return X("div",{class:pt,style:s(N)},[X(yee,Ce,qi(Me)?Me:{default:()=>[Me]}),X(Cee,Yt,qi(Me)?Me:{default:()=>[Me]}),X(kee,ht,qi(Me)?Me:{default:()=>[Me]}),t.footer&&X(V_,Ut,{default:t.footer}),s(A)&&X(z_,{class:o.e("empty"),style:s(O)},{default:t.empty}),t.overlay&&X(H_,{class:o.e("overlay")},{default:t.overlay})])}}});var W_=Ree;const K_=me({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:G(Function)}}),xee=le({name:"ElAutoResizer",props:K_,setup(e,{slots:t}){const n=de("auto-resizer"),{height:o,width:a,sizer:l}=ZQ(e),r={width:"100%",height:"100%"};return()=>{var i;return X("div",{ref:l,class:n.b(),style:r},[(i=t.default)==null?void 0:i.call(t,{height:o.value,width:a.value})])}}}),j_=Qe(W_),Y_=Qe(xee),Xi=Symbol("tabsRootContextKey"),U_=me({tabs:{type:G(Array),default:()=>un([])},tabRefs:{type:G(Object),default:()=>un({})}}),G_="ElTabBar",Iee=le({name:G_,__name:"tab-bar",props:U_,setup(e,{expose:t}){const n=e,o=Te(Xi);o||kn(G_,"<el-tabs><el-tab-bar /></el-tabs>");const a=de("tabs"),l=P(),r=P(),i=k(()=>{var m;return $t(o.props.defaultValue)||Boolean((m=r.value)==null?void 0:m.transform)}),u=()=>{let m=0,h=0;const p=["top","bottom"].includes(o.props.tabPosition)?"width":"height",b=p==="width"?"x":"y",g=b==="x"?"left":"top";return n.tabs.every(w=>{if($t(w.paneName))return!1;const C=n.tabRefs[w.paneName];if(!C)return!1;if(!w.active)return!0;m=C[`offset${Il(g)}`],h=C[`client${Il(p)}`];const y=window.getComputedStyle(C);return p==="width"&&(h-=Number.parseFloat(y.paddingLeft)+Number.parseFloat(y.paddingRight),m+=Number.parseFloat(y.paddingLeft)),!1}),{[p]:`${h}px`,transform:`translate${Il(b)}(${m}px)`}},c=()=>r.value=u(),d=[],f=()=>{d.forEach(m=>m.stop()),d.length=0,Object.values(n.tabRefs).forEach(m=>{d.push(Qt(m,c))})};ue(()=>n.tabs,async()=>{await ke(),c(),f()},{immediate:!0});const v=Qt(l,()=>c());return Dt(()=>{d.forEach(m=>m.stop()),d.length=0,v.stop()}),t({ref:l,update:c}),(m,h)=>i.value?($(),F("div",{key:0,ref_key:"barRef",ref:l,class:x([s(a).e("active-bar"),s(a).is(s(o).props.tabPosition)]),style:Ne(r.value)},null,6)):te("v-if",!0)}});var Mee=ye(Iee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const q_=me({panes:{type:G(Array),default:()=>un([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),X_={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},Z_="ElTabNav",Nee=le({name:Z_,props:q_,emits:X_,setup(e,{expose:t,emit:n}){const o=Te(Xi);o||kn(Z_,"<el-tabs><tab-nav /></el-tabs>");const a=de("tabs"),l=mR(),r=bR(),i=P(),u=P(),c=P(),d=P({}),f=P(),v=P(!1),m=P(0),h=P(!1),p=P(!0),b=Zt(),g=k(()=>["top","bottom"].includes(o.props.tabPosition)),w=k(()=>g.value?"width":"height"),C=k(()=>({transform:`translate${w.value==="width"?"X":"Y"}(-${m.value}px)`})),{width:y,height:S}=Ud(i),{width:E,height:_}=Ud(u,{width:0,height:0},{box:"border-box"}),O=k(()=>g.value?y.value:S.value),N=k(()=>g.value?E.value:_.value),{onWheel:R}=b$({atStartEdge:k(()=>m.value<=0),atEndEdge:k(()=>N.value-m.value<=O.value),layout:k(()=>g.value?"horizontal":"vertical")},B=>{m.value=Xs(m.value+B,0,N.value-O.value)}),A=()=>{if(!i.value)return;const B=i.value[`offset${Il(w.value)}`],z=m.value;if(!z)return;const U=z>B?z-B:0;m.value=U},I=()=>{if(!i.value||!u.value)return;const B=u.value[`offset${Il(w.value)}`],z=i.value[`offset${Il(w.value)}`],U=m.value;if(B-U<=z)return;const V=B-U>z*2?U+z:B-z;m.value=V},L=async()=>{const B=u.value;if(!v.value||!c.value||!i.value||!B)return;await ke();const z=d.value[e.currentName];if(!z)return;const U=i.value,V=z.getBoundingClientRect(),J=U.getBoundingClientRect(),q=g.value?B.offsetWidth-J.width:B.offsetHeight-J.height,ae=m.value;let ie=ae;g.value?(V.left<J.left&&(ie=ae-(J.left-V.left)),V.right>J.right&&(ie=ae+V.right-J.right)):(V.top<J.top&&(ie=ae-(J.top-V.top)),V.bottom>J.bottom&&(ie=ae+(V.bottom-J.bottom))),ie=Math.max(ie,0),m.value=Math.min(ie,q)},H=()=>{var B;if(!u.value||!i.value)return;e.stretch&&((B=f.value)==null||B.update());const z=u.value[`offset${Il(w.value)}`],U=i.value[`offset${Il(w.value)}`],V=m.value;U<z?(v.value=v.value||{},v.value.prev=V,v.value.next=V+U<z,z-V<U&&(m.value=z-U)):(v.value=!1,V>0&&(m.value=0))},K=B=>{const z=Ht(B);let U=0;switch(z){case pe.left:case pe.up:U=-1;break;case pe.right:case pe.down:U=1;break;default:return}const V=Array.from(B.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let q=V.indexOf(B.target)+U;q<0?q=V.length-1:q>=V.length&&(q=0),V[q].focus({preventScroll:!0}),V[q].click(),Y()},Y=()=>{p.value&&(h.value=!0)},M=()=>h.value=!1,T=(B,z)=>{d.value[z]=B},D=async()=>{await ke();const B=d.value[e.currentName];B==null||B.focus({preventScroll:!0})};return ue(l,B=>{B==="hidden"?p.value=!1:B==="visible"&&setTimeout(()=>p.value=!0,50)}),ue(r,B=>{B?setTimeout(()=>p.value=!0,50):p.value=!1}),Qt(c,()=>{Ma(H)}),st(()=>setTimeout(()=>L(),0)),Ga(()=>H()),t({scrollToActiveTab:L,removeFocus:M,focusActiveTab:D,tabListRef:u,tabBarRef:f,scheduleRender:()=>uu(b)}),()=>{const B=v.value?[X("span",{class:[a.e("nav-prev"),a.is("disabled",!v.value.prev)],onClick:A},[X($e,null,{default:()=>[X(il,null,null)]})]),X("span",{class:[a.e("nav-next"),a.is("disabled",!v.value.next)],onClick:I},[X($e,null,{default:()=>[X(to,null,null)]})])]:null,z=e.panes.map((U,V)=>{var J,q,ae,ie,oe;const fe=U.uid,re=U.props.disabled,j=(q=(J=U.props.name)!=null?J:U.index)!=null?q:`${V}`,se=!re&&(U.isClosable||U.props.closable!==!1&&e.editable);U.index=`${V}`;const Se=se?X($e,{class:"is-icon-close",onClick:He=>n("tabRemove",U,He)},{default:()=>[X(jo,null,null)]}):null,Ie=((ie=(ae=U.slots).label)==null?void 0:ie.call(ae))||U.props.label,Le=!re&&U.active?(oe=e.tabindex)!=null?oe:o.props.tabindex:-1;return X("div",{ref:He=>T(He,j),class:[a.e("item"),a.is(o.props.tabPosition),a.is("active",U.active),a.is("disabled",re),a.is("closable",se),a.is("focus",h.value)],id:`tab-${j}`,key:`tab-${fe}`,"aria-controls":`pane-${j}`,role:"tab","aria-selected":U.active,tabindex:Le,onFocus:()=>Y(),onBlur:()=>M(),onClick:He=>{M(),n("tabClick",U,j,He)},onKeydown:He=>{const We=Ht(He);se&&(We===pe.delete||We===pe.backspace)&&n("tabRemove",U,He)}},[Ie,Se])});return b.value,X("div",{ref:c,class:[a.e("nav-wrap"),a.is("scrollable",!!v.value),a.is(o.props.tabPosition)]},[B,X("div",{class:a.e("nav-scroll"),ref:i},[e.panes.length>0?X("div",{class:[a.e("nav"),a.is(o.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:u,style:C.value,role:"tablist",onKeydown:K,onWheel:R},[e.type?null:X(Mee,{ref:f,tabs:[...e.panes],tabRefs:d.value},null),z]):null])])}}}),J_=me({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:G(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),Ym=e=>ze(e)||xe(e),Q_={[Ue]:e=>Ym(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Ym(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Ym(e),tabAdd:()=>!0},Aee=le({name:"ElTabs",props:J_,emits:Q_,setup(e,{emit:t,slots:n,expose:o}){var a;const l=de("tabs"),r=k(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:u,removeChild:c,ChildrenSorter:d}=Ci(it(),"ElTabPane"),f=P(),v=P((a=$t(e.modelValue)?e.defaultValue:e.modelValue)!=null?a:"0"),m=async(C,y=!1)=>{var S,E,_,O;if(!(v.value===C||$t(C)))try{let N;if(e.beforeLeave){const R=e.beforeLeave(C,v.value);N=R instanceof Promise?await R:R}else N=!0;if(N!==!1){const R=(S=i.value.find(A=>A.paneName===v.value))==null?void 0:S.isFocusInsidePane();v.value=C,y&&(t(Ue,C),t("tabChange",C)),(_=(E=f.value)==null?void 0:E.removeFocus)==null||_.call(E),R&&((O=f.value)==null||O.focusActiveTab())}}catch(N){}},h=(C,y,S)=>{C.props.disabled||(t("tabClick",C,S),m(y,!0))},p=(C,y)=>{C.props.disabled||$t(C.props.name)||(y.stopPropagation(),t("edit",C.props.name,"remove"),t("tabRemove",C.props.name))},b=()=>{t("edit",void 0,"add"),t("tabAdd")},g=C=>{const y=Ht(C);[pe.enter,pe.numpadEnter].includes(y)&&b()},w=C=>{const y=C.el.firstChild,S=["bottom","right"].includes(e.tabPosition)?C.children[0].el:C.children[1].el;y!==S&&y.before(S)};return ue(()=>e.modelValue,C=>m(C)),ue(v,async()=>{var C;await ke(),(C=f.value)==null||C.scrollToActiveTab()}),St(Xi,{props:e,currentName:v,registerPane:u,unregisterPane:c,nav$:f}),o({currentName:v,get tabNavRef(){return Hr(f.value,["scheduleRender"])}}),()=>{const C=n["add-icon"],y=e.editable||e.addable?X("div",{class:[l.e("new-tab"),r.value&&l.e("new-tab-vertical")],tabindex:e.tabindex,onClick:b,onKeydown:g},[C?ee(n,"add-icon"):X($e,{class:l.is("icon-plus")},{default:()=>[X(B1,null,null)]})]):null,S=()=>X(Nee,{ref:f,currentName:v.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:h,onTabRemove:p},null),E=X("div",{class:[l.e("header"),r.value&&l.e("header-vertical"),l.is(e.tabPosition)]},[X(d,null,{default:S,$stable:!0}),y]),_=X("div",{class:l.e("content")},[ee(n,"default")]);return X("div",{class:[l.b(),l.m(e.tabPosition),{[l.m("card")]:e.type==="card",[l.m("border-card")]:e.type==="border-card"}],onVnodeMounted:w,onVnodeUpdated:w},[_,E])}}}),eT=me({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),Pee=["id","aria-hidden","aria-labelledby"],tT="ElTabPane",Lee=le({name:tT,__name:"tab-pane",props:eT,setup(e){const t=e,n=it(),o=$n(),a=Te(Xi);a||kn(tT,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const l=de("tab-pane"),r=P(),i=P(),u=k(()=>{var p;return(p=t.closable)!=null?p:a.props.closable}),c=k(()=>{var p;return a.currentName.value===((p=t.name)!=null?p:i.value)}),d=P(c.value),f=k(()=>{var p;return(p=t.name)!=null?p:i.value}),v=k(()=>!t.lazy||d.value||c.value),m=()=>{var p;return(p=r.value)==null?void 0:p.contains(document.activeElement)};ue(c,p=>{p&&(d.value=!0)});const h=Lt({uid:n.uid,getVnode:()=>n.vnode,slots:o,props:t,paneName:f,active:c,index:i,isClosable:u,isFocusInsidePane:m});return a.registerPane(h),Dt(()=>{a.unregisterPane(h)}),Ng(()=>{var p;o.label&&((p=a.nav$.value)==null||p.scheduleRender())}),(p,b)=>v.value?ot(($(),F("div",{key:0,id:`pane-${f.value}`,ref_key:"paneRef",ref:r,class:x(s(l).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${f.value}`},[ee(p.$slots,"default")],10,Pee)),[[xt,c.value]]):te("v-if",!0)}});var nT=ye(Lee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const oT=Qe(Aee,{TabPane:nT}),aT=sn(nT),lT=me({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:ta,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Dee=le({name:"ElText",__name:"text",props:lT,setup(e){const t=e,n=P(),o=bn(),a=de("text"),l=k(()=>[a.b(),a.m(t.type),a.m(o.value),a.is("truncated",t.truncated),a.is("line-clamp",!$t(t.lineClamp))]),r=()=>{var i,u,c,d,f,v,m;if(qa().title)return;let p=!1;const b=((i=n.value)==null?void 0:i.textContent)||"";if(t.truncated){const g=(u=n.value)==null?void 0:u.offsetWidth,w=(c=n.value)==null?void 0:c.scrollWidth;g&&w&&w>g&&(p=!0)}else if(!$t(t.lineClamp)){const g=(d=n.value)==null?void 0:d.offsetHeight,w=(f=n.value)==null?void 0:f.scrollHeight;g&&w&&w>g&&(p=!0)}p?(v=n.value)==null||v.setAttribute("title",b):(m=n.value)==null||m.removeAttribute("title")};return st(r),Ga(r),(i,u)=>($(),ne(at(i.tag),{ref_key:"textRef",ref:n,class:x(l.value),style:Ne({"-webkit-line-clamp":i.lineClamp})},{default:Q(()=>[ee(i.$slots,"default")]),_:3},8,["class","style"]))}});var Bee=ye(Dee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const Cd=Qe(Bee),rT=me({format:{type:String,default:"HH:mm"},modelValue:{type:G(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:G(String),default:"light"},clearable:{type:Boolean,default:!0},size:En,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:G(String)},maxTime:{type:G(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:G([String,Object]),default:()=>L1},clearIcon:{type:G([String,Object]),default:()=>ul},popperClass:{type:String,default:""},popperStyle:{type:G([String,Object])},...Dl}),yl=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const o=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:o}}return null},Um=(e,t)=>{const n=yl(e);if(!n)return-1;const o=yl(t);if(!o)return-1;const a=n.minutes+n.hours*60,l=o.minutes+o.hours*60;return a===l?0:a>l?1:-1},sT=e=>`${e}`.padStart(2,"0"),_s=e=>`${sT(e.hours)}:${sT(e.minutes)}`,Fee=(e,t)=>{const n=yl(e);if(!n)return"";const o=yl(t);if(!o)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=o.minutes,a.hours+=o.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,_s(a)},Vee=le({name:"ElTimeSelect",__name:"time-select",props:rT,emits:[ft,"blur","focus","clear",Ue],setup(e,{expose:t}){Je.extend(Av);const{Option:n}=gl,o=e,a=de("input"),l=P(),r=nn(),{lang:i}=wt(),u=k(()=>o.modelValue),c=k(()=>{const g=yl(o.start);return g?_s(g):null}),d=k(()=>{const g=yl(o.end);return g?_s(g):null}),f=k(()=>{const g=yl(o.step);return g?_s(g):null}),v=k(()=>{const g=yl(o.minTime||"");return g?_s(g):null}),m=k(()=>{const g=yl(o.maxTime||"");return g?_s(g):null}),h=k(()=>{var g;const w=[],C=(y,S)=>{w.push({value:y,disabled:Um(S,v.value||"-1:-1")<=0||Um(S,m.value||"100:100")>=0})};if(o.start&&o.end&&o.step){let y=c.value,S;for(;y&&d.value&&Um(y,d.value)<=0;)S=Je(y,"HH:mm").locale(i.value).format(o.format),C(S,y),y=Fee(y,f.value);if(o.includeEndTime&&d.value&&((g=w[w.length-1])==null?void 0:g.value)!==d.value){const E=Je(d.value,"HH:mm").locale(i.value).format(o.format);C(E,d.value)}}return w});return t({blur:()=>{var g,w;(w=(g=l.value)==null?void 0:g.blur)==null||w.call(g)},focus:()=>{var g,w;(w=(g=l.value)==null?void 0:g.focus)==null||w.call(g)}}),(g,w)=>($(),ne(s(gl),{ref_key:"select",ref:l,"model-value":u.value,disabled:s(r),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"empty-values":g.emptyValues,"value-on-clear":g.valueOnClear,"popper-class":g.popperClass,"popper-style":g.popperStyle,"onUpdate:modelValue":w[0]||(w[0]=C=>g.$emit(s(Ue),C)),onChange:w[1]||(w[1]=C=>g.$emit(s(ft),C)),onBlur:w[2]||(w[2]=C=>g.$emit("blur",C)),onFocus:w[3]||(w[3]=C=>g.$emit("focus",C)),onClear:w[4]||(w[4]=()=>g.$emit("clear"))},{prefix:Q(()=>[g.prefixIcon?($(),ne(s($e),{key:0,class:x(s(a).e("prefix-icon"))},{default:Q(()=>[($(),ne(at(g.prefixIcon)))]),_:1},8,["class"])):te("v-if",!0)]),default:Q(()=>[($(!0),F(Fe,null,yt(h.value,C=>($(),ne(s(n),{key:C.value,label:C.value,value:C.value,disabled:C.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}});var zee=ye(Vee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);const iT=Qe(zee),uT="timeline",Hee=le({name:"ElTimeline",props:{reverse:Boolean},setup(e,{slots:t}){const n=de("timeline");return St(uT,t),()=>{var o,a;const l=ua((a=(o=t.default)==null?void 0:o.call(t))!=null?a:[]);return De("ul",{class:[n.b()]},e.reverse?l.reverse():l)}}});var Wee=Hee;const cT=me({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:zt},hollow:Boolean}),Kee=le({name:"ElTimelineItem",__name:"timeline-item",props:cT,setup(e){const t=e,n=de("timeline-item"),o=k(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(a,l)=>($(),F("li",{class:x([s(n).b(),{[s(n).e("center")]:a.center}])},[W("div",{class:x(s(n).e("tail"))},null,2),a.$slots.dot?te("v-if",!0):($(),F("div",{key:0,class:x(o.value),style:Ne({backgroundColor:a.color})},[a.icon?($(),ne(s($e),{key:0,class:x(s(n).e("icon"))},{default:Q(()=>[($(),ne(at(a.icon)))]),_:1},8,["class"])):te("v-if",!0)],6)),a.$slots.dot?($(),F("div",{key:1,class:x(s(n).e("dot"))},[ee(a.$slots,"dot")],2)):te("v-if",!0),W("div",{class:x(s(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?($(),F("div",{key:0,class:x([s(n).e("timestamp"),s(n).is("top")])},ge(a.timestamp),3)):te("v-if",!0),W("div",{class:x(s(n).e("content"))},[ee(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?($(),F("div",{key:1,class:x([s(n).e("timestamp"),s(n).is("bottom")])},ge(a.timestamp),3)):te("v-if",!0)],2)],2))}});var dT=ye(Kee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const fT=Qe(Wee,{TimelineItem:dT}),pT=sn(dT),Gm="left-check-change",qm="right-check-change",Cr=me({data:{type:G(Array),default:()=>[]},titles:{type:G(Array),default:()=>[]},buttonTexts:{type:G(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:G(Function)},leftDefaultChecked:{type:G(Array),default:()=>[]},rightDefaultChecked:{type:G(Array),default:()=>[]},renderContent:{type:G(Function)},modelValue:{type:G(Array),default:()=>[]},format:{type:G(Object),default:()=>({})},filterable:Boolean,props:{type:G(Object),default:()=>un({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Sd=(e,t)=>[e,t].every(Ee)||Ee(e)&&fn(t),vT={[ft]:(e,t,n)=>[e,n].every(Ee)&&["left","right"].includes(t),[Ue]:e=>Ee(e),[Gm]:Sd,[qm]:Sd},Xm="checked-change",jee=me({data:Cr.data,optionRender:{type:G(Function)},placeholder:String,title:String,filterable:Boolean,format:Cr.format,filterMethod:Cr.filterMethod,defaultChecked:Cr.leftDefaultChecked,props:Cr.props}),Yee={[Xm]:Sd},Zi=e=>{const t={label:"label",key:"key",disabled:"disabled"};return k(()=>({...t,...e.props}))},Uee=(e,t,n)=>{const o=Zi(e),a=k(()=>e.data.filter(d=>lt(e.filterMethod)?e.filterMethod(t.query,d):String(d[o.value.label]||d[o.value.key]).toLowerCase().includes(t.query.toLowerCase()))),l=k(()=>a.value.filter(d=>!d[o.value.disabled])),r=k(()=>{const d=t.checked.length,f=e.data.length,{noChecked:v,hasChecked:m}=e.format;return v&&m?d>0?m.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):v.replace(/\${total}/g,f.toString()):`${d}/${f}`}),i=k(()=>{const d=t.checked.length;return d>0&&d<l.value.length}),u=()=>{const d=l.value.map(f=>f[o.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?l.value.map(f=>f[o.value.key]):[]};return ue(()=>t.checked,(d,f)=>{if(u(),t.checkChangeByUser){const v=d.concat(f).filter(m=>!d.includes(m)||!f.includes(m));n(Xm,d,v)}else n(Xm,d),t.checkChangeByUser=!0}),ue(l,()=>{u()}),ue(()=>e.data,()=>{const d=[],f=a.value.map(v=>v[o.value.key]);t.checked.forEach(v=>{f.includes(v)&&d.push(v)}),t.checkChangeByUser=!1,t.checked=d}),ue(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(h=>f.includes(h)))return;const v=[],m=l.value.map(h=>h[o.value.key]);d.forEach(h=>{m.includes(h)&&v.push(h)}),t.checkChangeByUser=!1,t.checked=v},{immediate:!0}),{filteredData:a,checkableData:l,checkedSummary:r,isIndeterminate:i,updateAllChecked:u,handleAllCheckedChange:c}},Gee=(e,t)=>({onSourceCheckedChange:(a,l)=>{e.leftChecked=a,l&&t(Gm,a,l)},onTargetCheckedChange:(a,l)=>{e.rightChecked=a,l&&t(qm,a,l)}}),qee=e=>{const t=Zi(e),n=k(()=>e.data.reduce((l,r)=>(l[r[t.value.key]]=r)&&l,{})),o=k(()=>e.data.filter(l=>!e.modelValue.includes(l[t.value.key]))),a=k(()=>e.targetOrder==="original"?e.data.filter(l=>e.modelValue.includes(l[t.value.key])):e.modelValue.reduce((l,r)=>{const i=n.value[r];return i&&l.push(i),l},[]));return{sourceData:o,targetData:a}},Xee=(e,t,n)=>{const o=Zi(e),a=(i,u,c)=>{n(Ue,i),n(ft,i,u,c)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=i.indexOf(u);c>-1&&i.splice(c,1)}),a(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[o.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[o.value.key]);i=e.targetOrder==="unshift"?u.concat(i):i.concat(u),e.targetOrder==="original"&&(i=e.data.filter(c=>i.includes(c[o.value.key])).map(c=>c[o.value.key])),a(i,"right",t.leftChecked)}}},Zee=le({name:"ElTransferPanel",__name:"transfer-panel",props:jee,emits:Yee,setup(e,{expose:t,emit:n}){const o=e,a=n,l=$n(),r=({option:y})=>y,{t:i}=wt(),u=de("transfer"),c=Lt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=Zi(o),{filteredData:f,checkedSummary:v,isIndeterminate:m,handleAllCheckedChange:h}=Uee(o,c,a),p=k(()=>!co(c.query)&&co(f.value)),b=k(()=>!co(l.default()[0].children)),{checked:g,allChecked:w,query:C}=In(c);return t({query:C}),(y,S)=>($(),F("div",{class:x(s(u).b("panel"))},[W("p",{class:x(s(u).be("panel","header"))},[X(s(Jo),{modelValue:s(w),"onUpdate:modelValue":S[0]||(S[0]=E=>Kn(w)?w.value=E:null),indeterminate:s(m),"validate-event":!1,onChange:s(h)},{default:Q(()=>[Ct(ge(y.title)+" ",1),W("span",null,ge(s(v)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),W("div",{class:x([s(u).be("panel","body"),s(u).is("with-footer",b.value)])},[y.filterable?($(),ne(s(Gn),{key:0,modelValue:s(C),"onUpdate:modelValue":S[1]||(S[1]=E=>Kn(C)?C.value=E:null),class:x(s(u).be("panel","filter")),size:"default",placeholder:y.placeholder,"prefix-icon":s(PV),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):te("v-if",!0),ot(X(s(Zc),{modelValue:s(g),"onUpdate:modelValue":S[2]||(S[2]=E=>Kn(g)?g.value=E:null),"validate-event":!1,class:x([s(u).is("filterable",y.filterable),s(u).be("panel","list")])},{default:Q(()=>[($(!0),F(Fe,null,yt(s(f),E=>($(),ne(s(Jo),{key:E[s(d).key],class:x(s(u).be("panel","item")),value:E[s(d).key],disabled:E[s(d).disabled],"validate-event":!1},{default:Q(()=>{var _;return[X(r,{option:(_=y.optionRender)==null?void 0:_.call(y,E)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[xt,!p.value&&!s(co)(y.data)]]),ot(W("div",{class:x(s(u).be("panel","empty"))},[ee(y.$slots,"empty",{},()=>[Ct(ge(p.value?s(i)("el.transfer.noMatch"):s(i)("el.transfer.noData")),1)])],2),[[xt,p.value||s(co)(y.data)]])],2),b.value?($(),F("p",{key:0,class:x(s(u).be("panel","footer"))},[ee(y.$slots,"default")],2)):te("v-if",!0)],2))}});var hT=ye(Zee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const Jee={key:0},Qee={key:0},ete=le({name:"ElTransfer",__name:"transfer",props:Cr,emits:vT,setup(e,{expose:t,emit:n}){const o=e,a=n,l=$n(),{t:r}=wt(),i=de("transfer"),{formItem:u}=An(),c=Lt({leftChecked:[],rightChecked:[]}),d=Zi(o),{sourceData:f,targetData:v}=qee(o),{onSourceCheckedChange:m,onTargetCheckedChange:h}=Gee(c,a),{addToLeft:p,addToRight:b}=Xee(o,c,a),g=P(),w=P(),C=N=>{switch(N){case"left":g.value.query="";break;case"right":w.value.query="";break}},y=k(()=>o.buttonTexts.length===2),S=k(()=>o.titles[0]||r("el.transfer.titles.0")),E=k(()=>o.titles[1]||r("el.transfer.titles.1")),_=k(()=>o.filterPlaceholder||r("el.transfer.filterPlaceholder"));ue(()=>o.modelValue,()=>{var N;o.validateEvent&&((N=u==null?void 0:u.validate)==null||N.call(u,"change").catch(R=>void 0))});const O=k(()=>N=>{var R;if(o.renderContent)return o.renderContent(De,N);const A=(((R=l.default)==null?void 0:R.call(l,{option:N}))||[]).filter(I=>I.type!==Ua);return A.length?A:De("span",N[d.value.label]||N[d.value.key])});return t({clearQuery:C,leftPanel:g,rightPanel:w}),(N,R)=>($(),F("div",{class:x(s(i).b())},[X(hT,{ref_key:"leftPanel",ref:g,data:s(f),"option-render":O.value,placeholder:_.value,title:S.value,filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,"default-checked":N.leftDefaultChecked,props:o.props,onCheckedChange:s(m)},{empty:Q(()=>[ee(N.$slots,"left-empty")]),default:Q(()=>[ee(N.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),W("div",{class:x(s(i).e("buttons"))},[X(s(xn),{type:"primary",class:x([s(i).e("button"),s(i).is("with-texts",y.value)]),disabled:s(co)(c.rightChecked),onClick:s(p)},{default:Q(()=>[X(s($e),null,{default:Q(()=>[X(s(il))]),_:1}),s($t)(N.buttonTexts[0])?te("v-if",!0):($(),F("span",Jee,ge(N.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),X(s(xn),{type:"primary",class:x([s(i).e("button"),s(i).is("with-texts",y.value)]),disabled:s(co)(c.leftChecked),onClick:s(b)},{default:Q(()=>[s($t)(N.buttonTexts[1])?te("v-if",!0):($(),F("span",Qee,ge(N.buttonTexts[1]),1)),X(s($e),null,{default:Q(()=>[X(s(to))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),X(hT,{ref_key:"rightPanel",ref:w,data:s(v),"option-render":O.value,placeholder:_.value,filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,title:E.value,"default-checked":N.rightDefaultChecked,props:o.props,onCheckedChange:s(h)},{empty:Q(()=>[ee(N.$slots,"right-empty")]),default:Q(()=>[ee(N.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var tte=ye(ete,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const mT=Qe(tte),Ts="$treeNodeId",gT=function(e,t){!t||t[Ts]||Object.defineProperty(t,Ts,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Zm=(e,t)=>t==null?void 0:t[e||Ts],Jm=(e,t,n)=>{const o=e.value.currentNode;n();const a=e.value.currentNode;o!==a&&t("current-change",a?a.data:null,a)},bT=e=>{let t=!0,n=!0,o=!0,a=!0;for(let l=0,r=e.length;l<r;l++){const i=e[l];(i.checked!==!0||i.indeterminate)&&(t=!1,i.disabled||(o=!1)),(i.checked!==!1||i.indeterminate)&&(n=!1),i.isEffectivelyChecked||(a=!1)}return{all:t,none:n,allWithoutDisable:o,half:!t&&!n,isEffectivelyChecked:a}},Ji=function(e){if(e.childNodes.length===0||e.loading){e.isEffectivelyChecked=e.disabled||e.checked;return}const{all:t,none:n,half:o,isEffectivelyChecked:a}=bT(e.childNodes);e.isEffectivelyChecked=a,t?(e.checked=!0,e.indeterminate=!1):o?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const l=e.parent;!l||l.level===0||e.store.checkStrictly||Ji(l)},kd=function(e,t){const n=e.store.props,o=e.data||{},a=n[t];if(lt(a))return a(o,e);if(ze(a))return o[a];if($t(a)){const l=o[t];return $t(l)?"":l}},Qm=function(e,t){e.forEach(n=>{n.canFocus=t,Qm(n.childNodes,t)})};let nte=0;class au{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=nte++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Ln(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var t;const n=this.store;if(!n)throw new Error("[Node]store is required!");n.registerNode(this);const o=n.props;if(o&&typeof o.isLeaf!="undefined"){const r=kd(this,"isLeaf");Vt(r)&&(this.isLeafByUser=r)}if(n.lazy!==!0&&this.data?(this.setData(this.data),n.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&n.lazy&&n.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Ee(this.data)||gT(this,this.data),!this.data)return;const a=n.defaultExpandedKeys,l=n.key;l&&!fn(this.key)&&a&&a.includes(this.key)&&this.expand(null,n.autoExpandParent),l&&n.currentNodeKey!==void 0&&this.key===n.currentNodeKey&&(n.currentNode&&(n.currentNode.isCurrent=!1),n.currentNode=this,n.currentNode.isCurrent=!0),n.lazy&&n._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((t=this.parent)==null?void 0:t.expanded)===!0)&&(this.canFocus=!0)}setData(t){Ee(t)||gT(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ee(this.data)?n=this.data:n=kd(this,"children")||[];for(let o=0,a=n.length;o<a;o++)this.insertChild({data:n[o]})}get label(){return kd(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return kd(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(o=>o===t||n&&o.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,o){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof au)){if(!o){const a=this.getChildren(!0);a!=null&&a.includes(t.data)||($t(n)||n<0?a==null||a.push(t.data):a==null||a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Lt(new au(t)),t instanceof au&&t.initialize()}t.level=this.level+1,$t(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let o;n&&(o=this.childNodes.indexOf(n)),this.insertChild(t,o)}insertAfter(t,n){let o;n&&(o=this.childNodes.indexOf(n),o!==-1&&(o+=1)),this.insertChild(t,o)}removeChild(t){const n=this.getChildren()||[],o=n.indexOf(t.data);o>-1&&n.splice(o,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(o=>o.data===t);n&&this.removeChild(n)}expand(t,n){const o=()=>{if(n){let a=this.parent;for(;a&&a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),Qm(this.childNodes,!0)};this.shouldLoadData()?this.loadData(a=>{Ee(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Ji(this),o())}):o()}doCreateChildren(t,n={}){t.forEach(o=>{this.insertChild(Object.assign({data:o},n),void 0,!0)})}collapse(){this.expanded=!1,Qm(this.childNodes,!1)}shouldLoadData(){return Boolean(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,o,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const r=()=>{if(n){const i=this.childNodes;for(let f=0,v=i.length;f<v;f++){const m=i[f];a=a||t!==!1;const h=m.disabled&&m.isLeaf?m.checked:a;m.setChecked(h,n,!0,a)}const{half:u,all:c,isEffectivelyChecked:d}=bT(i);c||(this.checked=c,this.indeterminate=u),this.isEffectivelyChecked=this.childNodes.length?d:this.disabled||this.checked}};if(this.shouldLoadData()){this.loadData(()=>{r(),Ji(this)},{checked:t!==!1});return}else r()}const l=this.parent;!l||l.level===0||o||Ji(l)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const o=this.store.props;let a="children";return o&&(a=o.children||"children"),$t(n[a])&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(l=>l.data),o={},a=[];t.forEach((l,r)=>{const i=l[Ts];!!i&&n.some(c=>(c==null?void 0:c[Ts])===i)?o[i]={index:r,data:l}:a.push({index:r,data:l})}),this.store.lazy||n.forEach(l=>{o[l==null?void 0:l[Ts]]||this.removeChildByData(l)}),a.forEach(({index:l,data:r})=>{this.insertChild({data:r},l)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const o=l=>{this.childNodes=[],this.doCreateChildren(l,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,l)},a=()=>{this.loading=!1};this.store.load(this,o,a)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const o=n.shift();n.unshift(...o.childNodes),t(o)}}reInitChecked(){this.store.checkStrictly||Ji(this)}}var eg=au;class ote{constructor(t){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const n in t)Ln(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new eg({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()},Gt)}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,o=this.lazy,a=async function(l){const r=l.root?l.root.childNodes:l.childNodes;for(const[i,u]of r.entries())u.visible=!!(n!=null&&n.call(u,t,u.data,u)),i%80===0&&i>0&&await ke(),await a(u);if(!l.visible&&r.length){let i=!0;i=!r.some(u=>u.visible),l.root?l.root.visible=i===!1:l.visible=i===!1}!t||l.visible&&!l.isLeaf&&(!o||l.loaded)&&l.expand()};a(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof eg)return t;const n=Rt(t)?Zm(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){var o;const a=this.getNode(n);(o=a.parent)==null||o.insertBefore({data:t},a)}insertAfter(t,n){var o;const a=this.getNode(n);(o=a.parent)==null||o.insertAfter({data:t},a)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const o=yo(n)?this.root:this.getNode(n);o&&o.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(o=>{const a=n[o];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const n=this.defaultCheckedKeys||[];!fn(t.key)&&n.includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;if(!(!t||!t.data))if(!n)this.nodesMap[t.id]=t;else{const o=t.key;fn(o)||(this.nodesMap[o]=t)}}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(o=>{this.deregisterNode(o)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const o=[],a=function(l){(l.root?l.root.childNodes:l.childNodes).forEach(i=>{(i.checked||n&&i.indeterminate)&&(!t||t&&i.isLeaf)&&o.push(i.data),a(i)})};return a(this),o}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(l=>{l.indeterminate&&t.push(l.data),n(l)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const o in n)Ln(n,o)&&t.push(n[o]);return t}updateChildren(t,n){const o=this.nodesMap[t];if(!o)return;const a=o.childNodes;for(let l=a.length-1;l>=0;l--){const r=a[l];this.remove(r.data)}for(let l=0,r=n.length;l<r;l++){const i=n[l];this.append(i,o.data)}}_setCheckedKeys(t,n=!1,o){const a=this._getAllNodes().sort((u,c)=>u.level-c.level),l=Object.create(null),r=Object.keys(o);a.forEach(u=>u.setChecked(!1,!1));const i=u=>{u.childNodes.forEach(c=>{var d;l[c.data[t]]=!0,(d=c.childNodes)!=null&&d.length&&i(c)})};for(let u=0,c=a.length;u<c;u++){const d=a[u],f=d.data[t].toString();if(!r.includes(f)){d.checked&&!l[f]&&d.setChecked(!1,!1);continue}if(d.childNodes.length&&i(d),d.isLeaf||this.checkStrictly){d.setChecked(!0,!1);continue}if(d.setChecked(!0,!0),n){d.setChecked(!1,!1);const m=function(h){h.childNodes.forEach(b=>{b.isLeaf||b.setChecked(!1,!1),m(b)})};m(d)}}}setCheckedNodes(t,n=!1){const o=this.key,a={};t.forEach(l=>{a[(l||{})[o]]=!0}),this._setCheckedKeys(o,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const o=this.key,a={};t.forEach(l=>{a[l]=!0}),this._setCheckedKeys(o,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const o=this.getNode(n);o&&o.expand(null,this.autoExpandParent)})}setChecked(t,n,o){const a=this.getNode(t);a&&a.setChecked(!!n,o)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){var o;const a=t[this.key],l=this.nodesMap[a];this.setCurrentNode(l),n&&this.currentNode&&this.currentNode.level>1&&((o=this.currentNode.parent)==null||o.expand(null,!0))}setCurrentNodeKey(t,n=!0){var o;if(this.currentNodeKey=t,yo(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const a=this.getNode(t);a&&(this.setCurrentNode(a),n&&this.currentNode&&this.currentNode.level>1&&((o=this.currentNode.parent)==null||o.expand(null,!0)))}}const Ed="RootTree",tg="NodeInstance",ng="TreeNodeMap",ate=le({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=de("tree"),n=Te(tg),o=Te(Ed);return()=>{const a=e.node,{data:l,store:r}=a;return e.renderContent?e.renderContent(De,{_self:n,node:a,data:l,store:r}):ee(o.ctx.slots,"default",{node:a,data:l},()=>[De(Cd,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[a.label])])}}});var lte=ye(ate,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function yT(e){const t=Te(ng,null);let n={treeNodeExpand:o=>{var a;e.node!==o&&((a=e.node)==null||a.collapse())},children:new Set};return t&&t.children.add(n),Dt(()=>{t&&t.children.delete(n),n=null}),St(ng,n),{broadcastExpanded:o=>{if(!!e.accordion)for(const a of n.children)a.treeNodeExpand(o)}}}const wT=Symbol("dragEvents");function rte({props:e,ctx:t,el$:n,dropIndicator$:o,store:a}){const l=de("tree"),r=P({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return St(wT,{treeNodeDragStart:({event:d,treeNode:f})=>{if(!!d.dataTransfer){if(lt(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch(v){}r.value.draggingNode=f,t.emit("node-drag-start",f.node,d)}},treeNodeDragOver:({event:d,treeNode:f})=>{if(!d.dataTransfer)return;const v=f,m=r.value.dropNode;m&&m.node.id!==v.node.id&&eo(m.$el,l.is("drop-inner"));const h=r.value.draggingNode;if(!h||!v)return;let p=!0,b=!0,g=!0,w=!0;lt(e.allowDrop)&&(p=e.allowDrop(h.node,v.node,"prev"),w=b=e.allowDrop(h.node,v.node,"inner"),g=e.allowDrop(h.node,v.node,"next")),d.dataTransfer.dropEffect=b||p||g?"move":"none",(p||b||g)&&(m==null?void 0:m.node.id)!==v.node.id&&(m&&t.emit("node-drag-leave",h.node,m.node,d),t.emit("node-drag-enter",h.node,v.node,d)),p||b||g?r.value.dropNode=v:r.value.dropNode=null,v.node.nextSibling===h.node&&(g=!1),v.node.previousSibling===h.node&&(p=!1),v.node.contains(h.node,!1)&&(b=!1),(h.node===v.node||h.node.contains(v.node))&&(p=!1,b=!1,g=!1);const C=v.$el,y=C.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),S=n.value.getBoundingClientRect(),E=n.value.scrollTop;let _;const O=p?b?.25:g?.45:1:Number.NEGATIVE_INFINITY,N=g?b?.75:p?.55:0:Number.POSITIVE_INFINITY;let R=-9999;const A=d.clientY-y.top;A<y.height*O?_="before":A>y.height*N?_="after":b?_="inner":_="none";const I=C.querySelector(`.${l.be("node","expand-icon")}`).getBoundingClientRect(),L=o.value;_==="before"?R=I.top-S.top+E:_==="after"&&(R=I.bottom-S.top+E),L.style.top=`${R}px`,L.style.left=`${I.right-S.left}px`,_==="inner"?Ko(C,l.is("drop-inner")):eo(C,l.is("drop-inner")),r.value.showDropIndicator=_==="before"||_==="after",r.value.allowDrop=r.value.showDropIndicator||w,r.value.dropType=_,t.emit("node-drag-over",h.node,v.node,d)},treeNodeDragEnd:d=>{var f,v;const{draggingNode:m,dropType:h,dropNode:p}=r.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),(m==null?void 0:m.node.data)&&p){const b={data:m.node.data};h!=="none"&&m.node.remove(),h==="before"?(f=p.node.parent)==null||f.insertBefore(b,p.node):h==="after"?(v=p.node.parent)==null||v.insertAfter(b,p.node):h==="inner"&&p.node.insertChild(b),h!=="none"&&(a.value.registerNode(b),a.value.key&&m.node.eachNode(g=>{var w;(w=a.value.nodesMap[g.data[a.value.key]])==null||w.setChecked(g.checked,!a.value.checkStrictly)})),eo(p.$el,l.is("drop-inner")),t.emit("node-drag-end",m.node,p.node,h,d),h!=="none"&&t.emit("node-drop",m.node,p.node,h,d)}m&&!p&&t.emit("node-drag-end",m.node,null,h,d),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}const ste=le({name:"ElTreeNode",components:{ElCollapseTransition:Pi,ElCheckbox:Jo,NodeContent:lte,ElIcon:$e,Loading:Pa},props:{node:{type:eg,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=de("tree"),{broadcastExpanded:o}=yT(e),a=Te(Ed),l=P(!1),r=P(!1),i=P(),u=P(),c=P(),d=Te(wT),f=it();St(tg,f),e.node.expanded&&(l.value=!0,r.value=!0);const v=a.props.props.children||"children";ue(()=>{var N;const R=(N=e.node.data)==null?void 0:N[v];return R&&[...R]},()=>{e.node.updateChildren()}),ue(()=>e.node.indeterminate,N=>{p(e.node.checked,N)}),ue(()=>e.node.checked,N=>{p(N,e.node.indeterminate)}),ue(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),ue(()=>e.node.expanded,N=>{ke(()=>l.value=N),N&&(r.value=!0)});const m=N=>Zm(a.props.nodeKey,N.data),h=N=>{const R=e.props.class;if(!R)return{};let A;if(lt(R)){const{data:I}=N;A=R(I,N)}else A=R;return ze(A)?{[A]:!0}:A},p=(N,R)=>{(i.value!==N||u.value!==R)&&a.ctx.emit("check-change",e.node.data,N,R),i.value=N,u.value=R},b=N=>{Jm(a.store,a.ctx.emit,()=>{var R;if((R=a==null?void 0:a.props)==null?void 0:R.nodeKey){const I=m(e.node);a.store.value.setCurrentNodeKey(I)}else a.store.value.setCurrentNode(e.node)}),a.currentNode.value=e.node,a.props.expandOnClickNode&&w(),(a.props.checkOnClickNode||e.node.isLeaf&&a.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&C(!e.node.checked),a.ctx.emit("node-click",e.node.data,e.node,f,N)},g=N=>{var R;(R=a.instance.vnode.props)!=null&&R.onNodeContextmenu&&(N.stopPropagation(),N.preventDefault()),a.ctx.emit("node-contextmenu",N,e.node.data,e.node,f)},w=()=>{e.node.isLeaf||(l.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},C=N=>{const R=a==null?void 0:a.props.checkStrictly,A=e.node.childNodes;!R&&A.length&&(N=A.some(I=>!I.isEffectivelyChecked)),e.node.setChecked(N,!R),ke(()=>{const I=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:I.getCheckedNodes(),checkedKeys:I.getCheckedKeys(),halfCheckedNodes:I.getHalfCheckedNodes(),halfCheckedKeys:I.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:a,expanded:l,childNodeRendered:r,oldChecked:i,oldIndeterminate:u,getNodeKey:m,getNodeClass:h,handleSelectChange:p,handleClick:b,handleContextMenu:g,handleExpandIconClick:w,handleCheckChange:C,handleChildNodeExpand:(N,R,A)=>{o(R),a.ctx.emit("node-expand",N,R,A)},handleDragStart:N=>{!a.props.draggable||d.treeNodeDragStart({event:N,treeNode:e})},handleDragOver:N=>{N.preventDefault(),a.props.draggable&&d.treeNodeDragOver({event:N,treeNode:{$el:c.value,node:e.node}})},handleDrop:N=>{N.preventDefault()},handleDragEnd:N=>{!a.props.draggable||d.treeNodeDragEnd(N)},CaretRight:P1}}}),ite=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],ute=["aria-expanded"];function cte(e,t,n,o,a,l){const r=It("el-icon"),i=It("el-checkbox"),u=It("loading"),c=It("node-content"),d=It("el-tree-node"),f=It("el-collapse-transition");return ot(($(),F("div",{ref:"node$",class:x([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=Ye((...v)=>e.handleClick&&e.handleClick(...v),["stop"])),onContextmenu:t[3]||(t[3]=(...v)=>e.handleContextMenu&&e.handleContextMenu(...v)),onDragstart:t[4]||(t[4]=Ye((...v)=>e.handleDragStart&&e.handleDragStart(...v),["stop"])),onDragover:t[5]||(t[5]=Ye((...v)=>e.handleDragOver&&e.handleDragOver(...v),["stop"])),onDragend:t[6]||(t[6]=Ye((...v)=>e.handleDragEnd&&e.handleDragEnd(...v),["stop"])),onDrop:t[7]||(t[7]=Ye((...v)=>e.handleDrop&&e.handleDrop(...v),["stop"]))},[W("div",{class:x(e.ns.be("node","content")),style:Ne({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?($(),ne(r,{key:0,class:x([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Ye(e.handleExpandIconClick,["stop"])},{default:Q(()=>[($(),ne(at(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):te("v-if",!0),e.showCheckbox?($(),ne(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Ye(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):te("v-if",!0),e.node.loading?($(),ne(r,{key:2,class:x([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:Q(()=>[X(u)]),_:1},8,["class"])):te("v-if",!0),X(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),X(f,null,{default:Q(()=>[!e.renderAfterExpand||e.childNodeRendered?ot(($(),F("div",{key:0,class:x(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=Ye(()=>{},["stop"]))},[($(!0),F(Fe,null,yt(e.node.childNodes,v=>($(),ne(d,{key:e.getNodeKey(v),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:v,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,ute)),[[xt,e.expanded]]):te("v-if",!0)]),_:1})],42,ite)),[[xt,e.node.visible]])}var dte=ye(ste,[["render",cte],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function fte({el$:e},t){const n=de("tree");st(()=>{l()}),Ga(()=>{var r;(r=e.value)==null||r.querySelectorAll("input[type=checkbox]").forEach(i=>{i.setAttribute("tabindex","-1")})});function o(r,i){var u,c;const d=t.value.getNode(r[i].dataset.key);return d.canFocus&&d.visible&&(((u=d.parent)==null?void 0:u.expanded)||((c=d.parent)==null?void 0:c.level)===0)}Mt(e,"keydown",r=>{const i=r.target;if(!i.className.includes(n.b("node")))return;const u=Ht(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=c.indexOf(i);let f;if([pe.up,pe.down].includes(u)){if(r.preventDefault(),u===pe.up){f=d===-1?0:d!==0?d-1:c.length-1;const m=f;for(;!o(c,f);){if(f--,f===m){f=-1;break}f<0&&(f=c.length-1)}}else{f=d===-1?0:d<c.length-1?d+1:0;const m=f;for(;!o(c,f);){if(f++,f===m){f=-1;break}f>=c.length&&(f=0)}}f!==-1&&c[f].focus()}[pe.left,pe.right].includes(u)&&(r.preventDefault(),i.click());const v=i.querySelector('[type="checkbox"]');[pe.enter,pe.numpadEnter,pe.space].includes(u)&&v&&(r.preventDefault(),v.click())});const l=()=>{var r;if(!e.value)return;const i=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(d=>{d.setAttribute("tabindex","-1")});const c=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(c.length){c[0].setAttribute("tabindex","0");return}(r=i[0])==null||r.setAttribute("tabindex","0")}}const og=me({data:{type:G(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:G(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:G(Function)},allowDrop:{type:G(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:zt}}),CT={"check-change":(e,t,n)=>e&&Vt(t)&&Vt(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,o)=>e&&t&&o instanceof Event,"node-contextmenu":(e,t,n,o)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,o)=>e&&o,"node-drop":(e,t,n,o)=>e&&t&&o,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},pte=le({name:"ElTree",components:{ElTreeNode:dte},props:og,emits:CT,setup(e,t){const{t:n}=wt(),o=de("tree"),a=P(new ote({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const l=P(a.value.root),r=P(null),i=P(null),u=P(null),{broadcastExpanded:c}=yT(e),{dragState:d}=rte({props:e,ctx:t,el$:i,dropIndicator$:u,store:a});fte({el$:i},a);const f=it(),v=k(()=>{let B=f==null?void 0:f.parent;for(;B;){if(B.type.name==="ElTreeSelect")return!0;B=B.parent}return!1}),m=k(()=>{const{childNodes:B}=l.value;return(!B||B.length===0||B.every(({visible:z})=>!z))&&!v.value});ue(()=>e.currentNodeKey,B=>{a.value.setCurrentNodeKey(B!=null?B:null)}),ue(()=>e.defaultCheckedKeys,(B,z)=>{ln(B,z)||a.value.setDefaultCheckedKey(B!=null?B:[])}),ue(()=>e.defaultExpandedKeys,B=>{a.value.setDefaultExpandedKeys(B!=null?B:[])}),ue(()=>e.data,B=>{a.value.setData(B)},{deep:!0}),ue(()=>e.checkStrictly,B=>{a.value.checkStrictly=B});const h=B=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(B)},p=B=>Zm(e.nodeKey,B.data),b=B=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${B}`)},g=B=>{b("getNodePath");const z=a.value.getNode(B);if(!z)return[];const U=[z.data];let V=z.parent;for(;V&&V!==l.value;)U.push(V.data),V=V.parent;return U.reverse()},w=(B,z)=>a.value.getCheckedNodes(B,z),C=B=>a.value.getCheckedKeys(B),y=()=>{const B=a.value.getCurrentNode();return B?B.data:null},S=()=>{b("getCurrentKey");const B=y();return B?B[e.nodeKey]:null},E=(B,z)=>{b("setCheckedNodes"),a.value.setCheckedNodes(B,z)},_=(B,z)=>{b("setCheckedKeys"),a.value.setCheckedKeys(B,z)},O=(B,z,U)=>{a.value.setChecked(B,z,U)},N=()=>a.value.getHalfCheckedNodes(),R=()=>a.value.getHalfCheckedKeys(),A=(B,z=!0)=>{b("setCurrentNode"),Jm(a,t.emit,()=>{c(B),a.value.setUserCurrentNode(B,z)})},I=(B=null,z=!0)=>{b("setCurrentKey"),Jm(a,t.emit,()=>{c(),a.value.setCurrentNodeKey(B,z)})},L=B=>a.value.getNode(B),H=B=>{a.value.remove(B)},K=(B,z)=>{a.value.append(B,z)},Y=(B,z)=>{a.value.insertBefore(B,z)},M=(B,z)=>{a.value.insertAfter(B,z)},T=(B,z,U)=>{c(z),t.emit("node-expand",B,z,U)},D=(B,z)=>{b("updateKeyChild"),a.value.updateChildren(B,z)};return St(Ed,{ctx:t,props:e,store:a,root:l,currentNode:r,instance:f}),St(ba,void 0),{ns:o,store:a,root:l,currentNode:r,dragState:d,el$:i,dropIndicator$:u,isEmpty:m,filter:h,getNodeKey:p,getNodePath:g,getCheckedNodes:w,getCheckedKeys:C,getCurrentNode:y,getCurrentKey:S,setCheckedNodes:E,setCheckedKeys:_,setChecked:O,getHalfCheckedNodes:N,getHalfCheckedKeys:R,setCurrentNode:A,setCurrentKey:I,t:n,getNode:L,remove:H,append:K,insertBefore:Y,insertAfter:M,handleNodeExpand:T,updateKeyChildren:D}}});function vte(e,t,n,o,a,l){const r=It("el-tree-node");return $(),F("div",{ref:"el$",class:x([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[($(!0),F(Fe,null,yt(e.root.childNodes,i=>($(),ne(r,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?($(),F("div",{key:0,class:x(e.ns.e("empty-block"))},[ee(e.$slots,"empty",{},()=>{var i;return[W("span",{class:x(e.ns.e("empty-text"))},ge((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):te("v-if",!0),ot(W("div",{ref:"dropIndicator$",class:x(e.ns.e("drop-indicator"))},null,2),[[xt,e.dragState.showDropIndicator]])],2)}var hte=ye(pte,[["render",vte],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);const $d=Qe(hte),mte=(e,{attrs:t,emit:n},{select:o,tree:a,key:l})=>{const r=de("tree-select");ue(()=>e.data,()=>{e.filterable&&ke(()=>{var c,d;(d=a.value)==null||d.filter((c=o.value)==null?void 0:c.states.inputValue)})},{flush:"post"});const i=c=>{var d;const f=c.at(-1);if(f.expanded&&f.childNodes.at(-1))i([f.childNodes.at(-1)]);else{const v=(d=a.value.el$)==null?void 0:d.querySelector(`[data-key="${c.at(-1).key}"]`);v==null||v.focus({preventScroll:!0});return}};return st(()=>{Mt(()=>{var c;return(c=o.value)==null?void 0:c.$el},"keydown",async c=>{const d=Ht(c),{dropdownMenuVisible:f}=o.value;[pe.down,pe.up].includes(d)&&f&&(await ke(),setTimeout(()=>{var v,m,h;if(pe.up===d){const p=a.value.store.root.childNodes;i(p);return}(h=(m=(v=o.value.optionsArray[o.value.states.hoveringIndex].$el)==null?void 0:v.parentNode)==null?void 0:m.parentNode)==null||h.focus({preventScroll:!0})}))},{capture:!0})}),{...xa(In(e),Object.keys(gl.props)),...t,class:k(()=>t.class),style:k(()=>t.style),"onUpdate:modelValue":c=>n(Ue,c),valueKey:l,popperClass:k(()=>{const c=[r.e("popper")];return e.popperClass&&c.push(e.popperClass),c.join(" ")}),filterMethod:(c="")=>{var d;e.filterMethod?e.filterMethod(c):e.remoteMethod?e.remoteMethod(c):(d=a.value)==null||d.filter(c)}}},gte=le({extends:Ni,setup(e,t){const n=Ni.setup(e,t);delete n.selectOptionClick;const o=it().proxy;return ke(()=>{n.select.states.cachedOptions.get(o.value)||n.select.onOptionCreate(o)}),ue(()=>t.attrs.visible,a=>{ke(()=>{n.states.visible=a})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});var bte=gte;function ag(e){return e||e===0}function lg(e){return Ee(e)&&e.length}function Os(e){return Ee(e)?e:ag(e)?[e]:[]}function _d(e,t,n,o,a){for(let l=0;l<e.length;l++){const r=e[l];if(t(r,l,e,a))return o?o(r,l,e,a):r;{const i=n(r);if(lg(i)){const u=_d(i,t,n,o,r);if(u)return u}}}}function Td(e,t,n,o){for(let a=0;a<e.length;a++){const l=e[a];t(l,a,e,o);const r=n(l);lg(r)&&Td(r,t,n,l)}}const yte=(e,{attrs:t,slots:n,emit:o},{select:a,tree:l,key:r})=>{ue([()=>e.modelValue,l],()=>{e.showCheckbox&&ke(()=>{const v=l.value;v&&!ln(v.getCheckedKeys(),Os(e.modelValue))&&v.setCheckedKeys(Os(e.modelValue))})},{immediate:!0,deep:!0});const i=k(()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(v,m)=>{var h;const p=i.value[v];return lt(p)?p(m,(h=l.value)==null?void 0:h.getNode(u("value",m))):m[p]},c=Os(e.modelValue).map(v=>_d(e.data||[],m=>u("value",m)===v,m=>u("children",m),(m,h,p,b)=>b&&u("value",b))).filter(v=>ag(v)),d=k(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const v=[];return Td(e.data.concat(e.cacheData),m=>{const h=u("value",m);v.push({value:h,currentLabel:u("label",m),isDisabled:u("disabled",m)})},m=>u("children",m)),v}),f=()=>{var v;return(v=l.value)==null?void 0:v.getCheckedKeys().filter(m=>{var h;const p=(h=l.value)==null?void 0:h.getNode(m);return!fn(p)&&co(p.childNodes)})};return{...xa(In(e),Object.keys($d.props)),...t,nodeKey:r,expandOnClickNode:k(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:k(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(v,{node:m,data:h,store:p})=>v(bte,{value:u("value",h),label:u("label",h),disabled:u("disabled",h),visible:m.visible},e.renderContent?()=>e.renderContent(v,{node:m,data:h,store:p}):n.default?()=>n.default({node:m,data:h,store:p}):void 0),filterNodeMethod:(v,m,h)=>e.filterNodeMethod?e.filterNodeMethod(v,m,h):v?new RegExp(wp(v),"i").test(u("label",m)||""):!0,onNodeClick:(v,m,h)=>{var p,b,g;if((p=t.onNodeClick)==null||p.call(t,v,m,h),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||m.isLeaf)){if(!u("disabled",v)){const w=(b=a.value)==null?void 0:b.states.options.get(u("value",v));(g=a.value)==null||g.handleOptionSelect(w)}}else e.expandOnClickNode&&h.proxy.handleExpandIconClick()},onCheck:(v,m)=>{var h;if(!e.showCheckbox)return;const p=u("value",v),b={};Td([l.value.store.root],y=>b[y.key]=y,y=>y.childNodes);const g=m.checkedKeys,w=e.multiple?Os(e.modelValue).filter(y=>!(y in b)&&!g.includes(y)):[],C=w.concat(g);if(e.checkStrictly)o(Ue,e.multiple?C:C.includes(p)?p:void 0);else if(e.multiple){const y=f();o(Ue,w.concat(y))}else{const y=_d([v],_=>!lg(u("children",_))&&!u("disabled",_),_=>u("children",_)),S=y?u("value",y):void 0,E=ag(e.modelValue)&&!!_d([v],_=>u("value",_)===e.modelValue,_=>u("children",_));o(Ue,S===e.modelValue||E?void 0:S)}ke(()=>{var y;const S=Os(e.modelValue);l.value.setCheckedKeys(S),(y=t.onCheck)==null||y.call(t,v,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})}),(h=a.value)==null||h.focus()},onNodeExpand:(v,m,h)=>{var p;(p=t.onNodeExpand)==null||p.call(t,v,m,h),ke(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&m.checked){const b={},g=l.value.getCheckedKeys();Td([l.value.store.root],y=>b[y.key]=y,y=>y.childNodes);const w=Os(e.modelValue).filter(y=>!(y in b)&&!g.includes(y)),C=f();o(Ue,w.concat(C))}})},cacheOptions:d}};var wte=le({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Te(fs);return ue(()=>e.data,()=>{var n;e.data.forEach(a=>{t.states.cachedOptions.has(a.value)||t.states.cachedOptions.set(a.value,a)});const o=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];_t&&!Array.from(o).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const Cte=le({name:"ElTreeSelect",inheritAttrs:!1,props:{...rh,...og,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:o}=t,a=P(),l=P(),r=k(()=>e.nodeKey||e.valueKey||"value"),i=mte(e,t,{select:a,tree:l,key:r}),{cacheOptions:u,...c}=yte(e,t,{select:a,tree:l,key:r}),d=Lt({});return o(d),st(()=>{Object.assign(d,{...xa(l.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...xa(a.value,["focus","blur","selectedLabel"]),treeRef:l.value,selectRef:a.value})}),()=>De(gl,Lt({...i,ref:f=>a.value=f}),{...n,default:()=>[De(wte,{data:u.value}),De($d,Lt({...c,ref:f=>l.value=f}))]})}});var Ste=ye(Cte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);const ST=Qe(Ste),rg=Symbol(),kte={key:-1,level:-1,data:{}};var Qi=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(Qi||{}),sg=(e=>(e.ADD="add",e.DELETE="delete",e))(sg||{});const kT={type:Number,default:26},Ete=me({data:{type:G(Array),default:()=>un([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:G(Object),default:()=>un({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:G(Array),default:()=>un([])},checkStrictly:Boolean,defaultExpandedKeys:{type:G(Array),default:()=>un([])},indent:{type:Number,default:16},itemSize:kT,icon:{type:zt},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:G([String,Number])},accordion:Boolean,filterMethod:{type:G(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),$te=me({node:{type:G(Object),default:()=>un(kte)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:kT}),_te=me({node:{type:G(Object),required:!0}}),ET="node-click",$T="node-drop",_T="node-expand",TT="node-collapse",OT="current-change",RT="check",xT="check-change",IT="node-contextmenu",Tte={[ET]:(e,t,n)=>e&&t&&n,[$T]:(e,t,n)=>e&&t&&n,[_T]:(e,t)=>e&&t,[TT]:(e,t)=>e&&t,[OT]:(e,t)=>e&&t,[RT]:(e,t)=>e&&t,[xT]:(e,t)=>e&&Vt(t),[IT]:(e,t,n)=>e&&t&&n},Ote={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Vt(t)};function Rte(e,t){const n=P(new Set),o=P(new Set),{emit:a}=it();ue([()=>t.value,()=>e.defaultCheckedKeys],()=>ke(()=>{w(e.defaultCheckedKeys)}),{immediate:!0});const l=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:C,maxLevel:y}=t.value,S=n.value,E=new Set;for(let _=y;_>=1;--_){const O=C.get(_);!O||O.forEach(N=>{const R=N.children;let A=!N.isLeaf||N.disabled||S.has(N.key);if(R){let I=!0,L=!1;for(const H of R){const K=H.key;if(H.isEffectivelyChecked||(A=!1),S.has(K))L=!0;else if(E.has(K)){I=!1,L=!0;break}else I=!1}I?S.add(N.key):L?(E.add(N.key),S.delete(N.key)):(S.delete(N.key),E.delete(N.key))}N.isEffectivelyChecked=A})}o.value=E},r=C=>n.value.has(C.key),i=C=>o.value.has(C.key),u=(C,y,S=!0,E=!0)=>{const _=n.value,O=C.children;!e.checkStrictly&&S&&(O==null?void 0:O.length)&&(y=O.some(R=>!R.isEffectivelyChecked));const N=(R,A)=>{_[A?sg.ADD:sg.DELETE](R.key);const I=R.children;!e.checkStrictly&&I&&I.forEach(L=>{(!L.disabled||L.children)&&N(L,A)})};N(C,y),E&&l(),S&&c(C,y)},c=(C,y)=>{const{checkedNodes:S,checkedKeys:E}=h(),{halfCheckedNodes:_,halfCheckedKeys:O}=p();a(RT,C.data,{checkedKeys:E,checkedNodes:S,halfCheckedKeys:O,halfCheckedNodes:_}),a(xT,C.data,y)};function d(C=!1){return h(C).checkedKeys}function f(C=!1){return h(C).checkedNodes}function v(){return p().halfCheckedKeys}function m(){return p().halfCheckedNodes}function h(C=!1){const y=[],S=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:E}=t.value;n.value.forEach(_=>{const O=E.get(_);O&&(!C||C&&O.isLeaf)&&(S.push(_),y.push(O.data))})}return{checkedKeys:S,checkedNodes:y}}function p(){const C=[],y=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:S}=t.value;o.value.forEach(E=>{const _=S.get(E);_&&(y.push(E),C.push(_.data))})}return{halfCheckedNodes:C,halfCheckedKeys:y}}function b(C){n.value.clear(),o.value.clear(),ke(()=>{w(C)})}function g(C,y){if((t==null?void 0:t.value)&&e.showCheckbox){const S=t.value.treeNodeMap.get(C);S&&u(S,y,!1)}}function w(C){if(t!=null&&t.value){const{treeNodeMap:y}=t.value;if(e.showCheckbox&&y&&(C==null?void 0:C.length)>0){for(const S of C){const E=y.get(S);E&&!r(E)&&u(E,!0,!1,!1)}l()}}}return{updateCheckedKeys:l,toggleCheckbox:u,isChecked:r,isIndeterminate:i,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:v,getHalfCheckedNodes:m,setChecked:g,setCheckedKeys:b}}function xte(e,t){const n=P(new Set([])),o=P(new Set([])),a=k(()=>lt(e.filterMethod));function l(i){var u;if(!a.value)return;const c=new Set,d=o.value,f=n.value,v=[],m=((u=t.value)==null?void 0:u.treeNodes)||[],h=e.filterMethod;f.clear();function p(b){b.forEach(g=>{v.push(g),h!=null&&h(i,g.data,g)?v.forEach(C=>{c.add(C.key),C.expanded=!0}):(g.expanded=!1,g.isLeaf&&f.add(g.key));const w=g.children;if(w&&p(w),!g.isLeaf){if(!c.has(g.key))f.add(g.key);else if(w){let C=!0;for(const y of w)if(!f.has(y.key)){C=!1;break}C?d.add(g.key):d.delete(g.key)}}v.pop()})}return p(m),c}function r(i){return o.value.has(i.key)}return{hiddenExpandIconKeySet:o,hiddenNodeKeySet:n,doFilter:l,isForceHiddenExpandIcon:r}}function Ite(e,t){const n=P(new Set),o=P(),a=Zt(),l=P(),{isIndeterminate:r,isChecked:i,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:v,setChecked:m,setCheckedKeys:h}=Rte(e,a),{doFilter:p,hiddenNodeKeySet:b,isForceHiddenExpandIcon:g}=xte(e,a),w=k(()=>{var j;return((j=e.props)==null?void 0:j.value)||Qi.KEY}),C=k(()=>{var j;return((j=e.props)==null?void 0:j.children)||Qi.CHILDREN}),y=k(()=>{var j;return((j=e.props)==null?void 0:j.disabled)||Qi.DISABLED}),S=k(()=>{var j;return((j=e.props)==null?void 0:j.label)||Qi.LABEL}),E=k(()=>{var j;const se=n.value,Se=b.value,Ie=[],Le=((j=a.value)==null?void 0:j.treeNodes)||[],He=[];for(let We=Le.length-1;We>=0;--We)He.push(Le[We]);for(;He.length;){const We=He.pop();if(!Se.has(We.key)&&(Ie.push(We),We.children&&se.has(We.key)))for(let tt=We.children.length-1;tt>=0;--tt)He.push(We.children[tt])}return Ie}),_=k(()=>E.value.length>0);function O(j){const se=new Map,Se=new Map;let Ie=1;function Le(We,tt=1,Tt=void 0){var Xe;const Ae=[];for(const Pe of We){const Ze=A(Pe),et={level:tt,key:Ze,data:Pe};et.label=L(Pe),et.parent=Tt;const gt=R(Pe);et.disabled=I(Pe),et.isLeaf=!gt||gt.length===0,et.expanded=n.value.has(Ze),gt&>.length&&(et.children=Le(gt,tt+1,et)),Ae.push(et),se.set(Ze,et),Se.has(tt)||Se.set(tt,[]),(Xe=Se.get(tt))==null||Xe.push(et)}return tt>Ie&&(Ie=tt),Ae}const He=Le(j);return{treeNodeMap:se,levelTreeNodeMap:Se,maxLevel:Ie,treeNodes:He}}function N(j){const se=p(j);se&&(n.value=se)}function R(j){return j[C.value]}function A(j){return j?j[w.value]:""}function I(j){return j[y.value]}function L(j){return j[S.value]}function H(j){n.value.has(j.key)?z(j):B(j)}function K(j){const se=new Set,Se=a.value.treeNodeMap;n.value.forEach(Ie=>{const Le=Se.get(Ie);n.value.delete(Le.key),Le.expanded=!1}),j.forEach(Ie=>{let Le=Se.get(Ie);for(;Le&&!se.has(Le.key);)se.add(Le.key),Le.expanded=!0,Le=Le.parent}),n.value=se}function Y(j,se){t(ET,j.data,j,se),T(j),e.expandOnClickNode&&H(j),e.showCheckbox&&(e.checkOnClickNode||j.isLeaf&&e.checkOnClickLeaf)&&!j.disabled&&u(j,!i(j),!0)}function M(j,se){t($T,j.data,j,se)}function T(j){V(j)||(o.value=j.key,t(OT,j.data,j))}function D(j,se){u(j,se)}function B(j){const se=n.value;if(a.value&&e.accordion){const{treeNodeMap:Ie}=a.value;se.forEach(Le=>{const He=Ie.get(Le);j&&j.level===(He==null?void 0:He.level)&&(se.delete(Le),He.expanded=!1)})}se.add(j.key);const Se=oe(j.key);Se&&(Se.expanded=!0,t(_T,Se.data,Se))}function z(j){n.value.delete(j.key);const se=oe(j.key);se&&(se.expanded=!1,t(TT,se.data,se))}function U(j){return!!j.disabled}function V(j){const se=o.value;return se!==void 0&&se===j.key}function J(){var j,se;if(!!o.value)return(se=(j=a.value)==null?void 0:j.treeNodeMap.get(o.value))==null?void 0:se.data}function q(){return o.value}function ae(j){o.value=j}function ie(j){a.value=O(j)}function oe(j){var se;const Se=Rt(j)?A(j):j;return(se=a.value)==null?void 0:se.treeNodeMap.get(Se)}function fe(j,se="auto"){const Se=oe(j);Se&&l.value&&l.value.scrollToItem(E.value.indexOf(Se),se)}function re(j){var se;(se=l.value)==null||se.scrollTo(j)}return ue(()=>e.currentNodeKey,j=>{o.value=j},{immediate:!0}),ue(()=>e.defaultExpandedKeys,j=>{n.value=new Set(j)},{immediate:!0}),ue(()=>e.data,j=>{ie(j)},{immediate:!0}),{tree:a,flattenTree:E,isNotEmpty:_,listRef:l,getKey:A,getChildren:R,toggleExpand:H,toggleCheckbox:u,isChecked:i,isIndeterminate:r,isDisabled:U,isCurrent:V,isForceHiddenExpandIcon:g,handleNodeClick:Y,handleNodeDrop:M,handleNodeCheck:D,getCurrentNode:J,getCurrentKey:q,setCurrentKey:ae,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:v,setChecked:m,setCheckedKeys:h,filter:N,setData:ie,getNode:oe,expandNode:B,collapseNode:z,setExpandedKeys:K,scrollToNode:fe,scrollTo:re}}var Mte=le({name:"ElTreeNodeContent",props:_te,setup(e){const t=Te(rg),n=de("tree");return()=>{const o=e.node,{data:a}=o;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:o,data:a}):De(Cd,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[o==null?void 0:o.label])}}});const Nte=["aria-expanded","aria-disabled","aria-checked","data-key"],Ate=le({name:"ElTreeNode",__name:"tree-node",props:$te,emits:Ote,setup(e,{emit:t}){const n=e,o=t,a=Te(rg),l=de("tree"),r=k(()=>{var h;return(h=a==null?void 0:a.props.indent)!=null?h:16}),i=k(()=>{var h;return(h=a==null?void 0:a.props.icon)!=null?h:P1}),u=h=>{const p=a==null?void 0:a.props.props.class;if(!p)return{};let b;if(lt(p)){const{data:g}=h;b=p(g,h)}else b=p;return ze(b)?{[b]:!0}:b},c=h=>{o("click",n.node,h)},d=h=>{o("drop",n.node,h)},f=()=>{o("toggle",n.node)},v=h=>{o("check",n.node,h)},m=h=>{var p,b,g,w;(g=(b=(p=a==null?void 0:a.instance)==null?void 0:p.vnode)==null?void 0:b.props)!=null&&g.onNodeContextmenu&&(h.stopPropagation(),h.preventDefault()),a==null||a.ctx.emit(IT,h,(w=n.node)==null?void 0:w.data,n.node)};return(h,p)=>{var b,g,w;return $(),F("div",{ref:"node$",class:x([s(l).b("node"),s(l).is("expanded",h.expanded),s(l).is("current",h.current),s(l).is("focusable",!h.disabled),s(l).is("checked",!h.disabled&&h.checked),u(h.node)]),role:"treeitem",tabindex:"-1","aria-expanded":h.expanded,"aria-disabled":h.disabled,"aria-checked":h.checked,"data-key":(b=h.node)==null?void 0:b.key,onClick:Ye(c,["stop"]),onContextmenu:m,onDragover:p[1]||(p[1]=Ye(()=>{},["prevent"])),onDragenter:p[2]||(p[2]=Ye(()=>{},["prevent"])),onDrop:Ye(d,["stop"])},[W("div",{class:x(s(l).be("node","content")),style:Ne({paddingLeft:`${(h.node.level-1)*r.value}px`,height:h.itemSize+"px"})},[i.value?($(),ne(s($e),{key:0,class:x([s(l).is("leaf",!!((g=h.node)!=null&&g.isLeaf)),s(l).is("hidden",h.hiddenExpandIcon),{expanded:!((w=h.node)!=null&&w.isLeaf)&&h.expanded},s(l).be("node","expand-icon")]),onClick:Ye(f,["stop"])},{default:Q(()=>[($(),ne(at(i.value)))]),_:1},8,["class"])):te("v-if",!0),h.showCheckbox?($(),ne(s(Jo),{key:1,"model-value":h.checked,indeterminate:h.indeterminate,disabled:h.disabled,onChange:v,onClick:p[0]||(p[0]=Ye(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):te("v-if",!0),X(s(Mte),{node:{...h.node,expanded:h.expanded}},null,8,["node"])],6)],42,Nte)}}});var Pte=ye(Ate,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Lte=le({name:"ElTreeV2",__name:"tree",props:Ete,emits:Tte,setup(e,{expose:t,emit:n}){const o=e,a=n,l=$n(),r=k(()=>o.itemSize);St(rg,{ctx:{emit:a,slots:l},props:o,instance:it()}),St(ba,void 0);const{t:i}=wt(),u=de("tree"),{flattenTree:c,isNotEmpty:d,listRef:f,toggleExpand:v,isIndeterminate:m,isChecked:h,isDisabled:p,isCurrent:b,isForceHiddenExpandIcon:g,handleNodeClick:w,handleNodeDrop:C,handleNodeCheck:y,toggleCheckbox:S,getCurrentNode:E,getCurrentKey:_,setCurrentKey:O,getCheckedKeys:N,getCheckedNodes:R,getHalfCheckedKeys:A,getHalfCheckedNodes:I,setChecked:L,setCheckedKeys:H,filter:K,setData:Y,getNode:M,expandNode:T,collapseNode:D,setExpandedKeys:B,scrollToNode:z,scrollTo:U}=Ite(o,a);return t({toggleCheckbox:S,getCurrentNode:E,getCurrentKey:_,setCurrentKey:O,getCheckedKeys:N,getCheckedNodes:R,getHalfCheckedKeys:A,getHalfCheckedNodes:I,setChecked:L,setCheckedKeys:H,filter:K,setData:Y,getNode:M,expandNode:T,collapseNode:D,setExpandedKeys:B,scrollToNode:z,scrollTo:U}),(V,J)=>($(),F("div",{class:x([s(u).b(),{[s(u).m("highlight-current")]:V.highlightCurrent}]),role:"tree"},[s(d)?($(),ne(s(Cm),{key:0,ref_key:"listRef",ref:f,"class-name":s(u).b("virtual-list"),data:s(c),total:s(c).length,height:V.height,"item-size":r.value,"perf-mode":V.perfMode,"scrollbar-always-on":V.scrollbarAlwaysOn},{default:Q(({data:q,index:ae,style:ie})=>[($(),ne(Pte,{key:q[ae].key,style:Ne(ie),node:q[ae],expanded:q[ae].expanded,"show-checkbox":V.showCheckbox,checked:s(h)(q[ae]),indeterminate:s(m)(q[ae]),"item-size":r.value,disabled:s(p)(q[ae]),current:s(b)(q[ae]),"hidden-expand-icon":s(g)(q[ae]),onClick:s(w),onToggle:s(v),onCheck:s(y),onDrop:s(C)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):($(),F("div",{key:1,class:x(s(u).e("empty-block"))},[ee(V.$slots,"empty",{},()=>{var q;return[W("span",{class:x(s(u).e("empty-text"))},ge((q=V.emptyText)!=null?q:s(i)("el.tree.emptyText")),3)]})],2))],2))}});var Dte=ye(Lte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const MT=Qe(Dte),ig=Symbol("uploadContextKey"),Bte="ElUpload";class Fte extends Error{constructor(t,n,o,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=a}}function NT(e,t,n){let o;return n.response?o=`${n.response.error||n.response}`:n.responseText?o=`${n.responseText}`:o=`fail to ${t.method} ${e} ${n.status}`,new Fte(o,n.status,t.method,e)}function Vte(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}const zte=e=>{typeof XMLHttpRequest=="undefined"&&kn(Bte,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const r=l;r.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(r)});const o=new FormData;if(e.data)for(const[l,r]of Object.entries(e.data))Ee(r)&&r.length?o.append(l,...r):o.append(l,r);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(NT(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(NT(n,e,t));e.onSuccess(Vte(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((l,r)=>t.setRequestHeader(r,l));else for(const[l,r]of Object.entries(a))fn(r)||t.setRequestHeader(l,String(r));return t.send(o),t},ug=["text","picture","picture-card"];let Hte=1;const Od=()=>Date.now()+Hte++,cg=me({action:{type:String,default:"#"},headers:{type:G(Object)},method:{type:String,default:"post"},data:{type:G([Object,Function,Promise]),default:()=>un({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:G(Array),default:()=>un([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:ug,default:"text"},httpRequest:{type:G(Function),default:zte},disabled:{type:Boolean,default:void 0},limit:Number}),AT=me({...cg,beforeUpload:{type:G(Function),default:Gt},beforeRemove:{type:G(Function)},onRemove:{type:G(Function),default:Gt},onChange:{type:G(Function),default:Gt},onPreview:{type:G(Function),default:Gt},onSuccess:{type:G(Function),default:Gt},onProgress:{type:G(Function),default:Gt},onError:{type:G(Function),default:Gt},onExceed:{type:G(Function),default:Gt},crossorigin:{type:G(String)}}),PT=me({files:{type:G(Array),default:()=>un([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:G(Function),default:Gt},listType:{type:String,values:ug,default:"text"},crossorigin:{type:G(String)}}),LT={remove:e=>!!e},Wte=["tabindex","aria-disabled","onKeydown"],Kte=["src","crossorigin"],jte=["onClick"],Yte=["title"],Ute=["onClick"],Gte=["onClick"],qte=le({name:"ElUploadList",__name:"upload-list",props:PT,emits:LT,setup(e,{emit:t}){const n=e,o=t,{t:a}=wt(),l=de("upload"),r=de("icon"),i=de("list"),u=nn(),c=P(!1),d=k(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",u.value)]),f=v=>{o("remove",v)};return(v,m)=>($(),ne(Rg,{tag:"ul",class:x(d.value),name:s(i).b()},{default:Q(()=>[($(!0),F(Fe,null,yt(v.files,(h,p)=>($(),F("li",{key:h.uid||h.name,class:x([s(l).be("list","item"),s(l).is(h.status),{focusing:c.value}]),tabindex:s(u)?void 0:0,"aria-disabled":s(u),role:"button",onKeydown:cn(b=>!s(u)&&f(h),["delete"]),onFocus:m[0]||(m[0]=b=>c.value=!0),onBlur:m[1]||(m[1]=b=>c.value=!1),onClick:m[2]||(m[2]=b=>c.value=!1)},[ee(v.$slots,"default",{file:h,index:p},()=>[v.listType==="picture"||h.status!=="uploading"&&v.listType==="picture-card"?($(),F("img",{key:0,class:x(s(l).be("list","item-thumbnail")),src:h.url,crossorigin:v.crossorigin,alt:""},null,10,Kte)):te("v-if",!0),h.status==="uploading"||v.listType!=="picture-card"?($(),F("div",{key:1,class:x(s(l).be("list","item-info"))},[W("a",{class:x(s(l).be("list","item-name")),onClick:Ye(b=>v.handlePreview(h),["prevent"])},[X(s($e),{class:x(s(r).m("document"))},{default:Q(()=>[X(s(dV))]),_:1},8,["class"]),W("span",{class:x(s(l).be("list","item-file-name")),title:h.name},ge(h.name),11,Yte)],10,jte),h.status==="uploading"?($(),ne(s(sm),{key:0,type:v.listType==="picture-card"?"circle":"line","stroke-width":v.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:Ne(v.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):te("v-if",!0)],2)):te("v-if",!0),W("label",{class:x(s(l).be("list","item-status-label"))},[v.listType==="text"?($(),ne(s($e),{key:0,class:x([s(r).m("upload-success"),s(r).m("circle-check")])},{default:Q(()=>[X(s(kp))]),_:1},8,["class"])):["picture-card","picture"].includes(v.listType)?($(),ne(s($e),{key:1,class:x([s(r).m("upload-success"),s(r).m("check")])},{default:Q(()=>[X(s(si))]),_:1},8,["class"])):te("v-if",!0)],2),s(u)?te("v-if",!0):($(),ne(s($e),{key:2,class:x(s(r).m("close")),onClick:b=>f(h)},{default:Q(()=>[X(s(jo))]),_:1},8,["class","onClick"])),te(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),te(" This is a bug which needs to be fixed "),te(" TODO: Fix the incorrect navigation interaction "),s(u)?te("v-if",!0):($(),F("i",{key:3,class:x(s(r).m("close-tip"))},ge(s(a)("el.upload.deleteTip")),3)),v.listType==="picture-card"?($(),F("span",{key:4,class:x(s(l).be("list","item-actions"))},[W("span",{class:x(s(l).be("list","item-preview")),onClick:b=>v.handlePreview(h)},[X(s($e),{class:x(s(r).m("zoom-in"))},{default:Q(()=>[X(s(V1))]),_:1},8,["class"])],10,Ute),s(u)?te("v-if",!0):($(),F("span",{key:0,class:x(s(l).be("list","item-delete")),onClick:b=>f(h)},[X(s($e),{class:x(s(r).m("delete"))},{default:Q(()=>[X(s(uV))]),_:1},8,["class"])],10,Gte))],2)):te("v-if",!0)])],42,Wte))),128)),ee(v.$slots,"append")]),_:3},8,["class","name"]))}});var DT=ye(qte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const BT=me({disabled:{type:Boolean,default:void 0}}),FT={file:e=>Ee(e)},VT="ElUploadDrag",Xte=le({name:VT,__name:"upload-dragger",props:BT,emits:FT,setup(e,{emit:t}){const n=t;Te(ig)||kn(VT,"usage: <el-upload><el-upload-dragger /></el-upload>");const a=de("upload"),l=P(!1),r=nn(),i=d=>{if(r.value)return;l.value=!1,d.stopPropagation();const f=Array.from(d.dataTransfer.files),v=d.dataTransfer.items||[];f.forEach((m,h)=>{var p;const b=v[h],g=(p=b==null?void 0:b.webkitGetAsEntry)==null?void 0:p.call(b);g&&(m.isDirectory=g.isDirectory)}),n("file",f)},u=()=>{r.value||(l.value=!0)},c=d=>{d.currentTarget.contains(d.relatedTarget)||(l.value=!1)};return(d,f)=>($(),F("div",{class:x([s(a).b("dragger"),s(a).is("dragover",l.value)]),onDrop:Ye(i,["prevent"]),onDragover:Ye(u,["prevent"]),onDragleave:Ye(c,["prevent"])},[ee(d.$slots,"default")],34))}});var Zte=ye(Xte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const zT=me({...cg,beforeUpload:{type:G(Function),default:Gt},onRemove:{type:G(Function),default:Gt},onStart:{type:G(Function),default:Gt},onSuccess:{type:G(Function),default:Gt},onProgress:{type:G(Function),default:Gt},onError:{type:G(Function),default:Gt},onExceed:{type:G(Function),default:Gt}}),Jte=["tabindex","aria-disabled","onKeydown"],Qte=["name","disabled","multiple","accept"],ene=le({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:zT,setup(e,{expose:t}){const n=e,o=de("upload"),a=nn(),l=Zt({}),r=Zt(),i=p=>{if(p.length===0)return;const{autoUpload:b,limit:g,fileList:w,multiple:C,onStart:y,onExceed:S}=n;if(g&&w.length+p.length>g){S(p,w);return}C||(p=p.slice(0,1));for(const E of p){const _=E;_.uid=Od(),y(_),b&&u(_)}},u=async p=>{if(r.value.value="",!n.beforeUpload)return d(p);let b,g={};try{const C=n.data,y=n.beforeUpload(p);g=Zd(n.data)?Zs(n.data):n.data,b=await y,Zd(n.data)&&ln(C,g)&&(g=Zs(n.data))}catch(C){b=!1}if(b===!1){n.onRemove(p);return}let w=p;b instanceof Blob&&(b instanceof File?w=b:w=new File([b],p.name,{type:p.type})),d(Object.assign(w,{uid:p.uid}),g)},c=async(p,b)=>lt(p)?p(b):p,d=async(p,b)=>{const{headers:g,data:w,method:C,withCredentials:y,name:S,action:E,onProgress:_,onSuccess:O,onError:N,httpRequest:R}=n;try{b=await c(b!=null?b:w,p)}catch(H){n.onRemove(p);return}const{uid:A}=p,I={headers:g||{},withCredentials:y,file:p,data:b,method:C,filename:S,action:E,onProgress:H=>{_(H,p)},onSuccess:H=>{O(H,p),delete l.value[A]},onError:H=>{N(H,p),delete l.value[A]}},L=R(I);l.value[A]=L,L instanceof Promise&&L.then(I.onSuccess,I.onError)},f=p=>{const b=p.target.files;!b||i(Array.from(b))},v=()=>{a.value||(r.value.value="",r.value.click())},m=()=>{v()};return t({abort:p=>{O1(l.value).filter(p?([g])=>String(p.uid)===g:()=>!0).forEach(([g,w])=>{w instanceof XMLHttpRequest&&w.abort(),delete l.value[g]})},upload:u}),(p,b)=>($(),F("div",{class:x([s(o).b(),s(o).m(p.listType),s(o).is("drag",p.drag),s(o).is("disabled",s(a))]),tabindex:s(a)?void 0:0,"aria-disabled":s(a),role:"button",onClick:v,onKeydown:cn(Ye(m,["self"]),["enter","space"])},[p.drag?($(),ne(Zte,{key:0,disabled:s(a),onFile:i},{default:Q(()=>[ee(p.$slots,"default")]),_:3},8,["disabled"])):ee(p.$slots,"default",{key:1}),W("input",{ref_key:"inputRef",ref:r,class:x(s(o).e("input")),name:p.name,disabled:s(a),multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:b[0]||(b[0]=Ye(()=>{},["stop"]))},null,42,Qte)],42,Jte))}});var HT=ye(ene,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const WT="ElUpload",KT=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},tne=(e,t)=>{const n=Ug(e,"fileList",void 0,{passive:!0}),o=h=>n.value.find(p=>p.uid===h.uid);function a(h){var p;(p=t.value)==null||p.abort(h)}function l(h=["ready","uploading","success","fail"]){n.value=n.value.filter(p=>!h.includes(p.status))}function r(h){n.value=n.value.filter(p=>p.uid!==h.uid)}const i=h=>{ke(()=>e.onChange(h,n.value))},u=(h,p)=>{const b=o(p);!b||(console.error(h),b.status="fail",r(b),e.onError(h,b,n.value),i(b))},c=(h,p)=>{const b=o(p);!b||(e.onProgress(h,b,n.value),b.status="uploading",b.percentage=Math.round(h.percent))},d=(h,p)=>{const b=o(p);!b||(b.status="success",b.response=h,e.onSuccess(h,b,n.value),i(b))},f=h=>{fn(h.uid)&&(h.uid=Od());const p={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{p.url=URL.createObjectURL(h)}catch(b){b.message,e.onError(b,p,n.value)}n.value=[...n.value,p],i(p)},v=async h=>{const p=h instanceof File?o(h):h;p||kn(WT,"file to be removed not found");const b=g=>{a(g),r(g),e.onRemove(g,n.value),KT(g)};e.beforeRemove?await e.beforeRemove(p,n.value)!==!1&&b(p):b(p)};function m(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var p;return h&&((p=t.value)==null?void 0:p.upload(h))})}return ue(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(p=>{const{raw:b,url:g}=p;if(!g&&b)try{p.url=URL.createObjectURL(b)}catch(w){e.onError(w,p,n.value)}return p}))}),ue(n,h=>{for(const p of h)p.uid||(p.uid=Od()),p.status||(p.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:l,handleError:u,handleProgress:c,handleStart:f,handleSuccess:d,handleRemove:v,submit:m,revokeFileObjectURL:KT}},nne=le({name:"ElUpload",__name:"upload",props:AT,setup(e,{expose:t}){const n=e,o=nn(),a=Zt(),{abort:l,submit:r,clearFiles:i,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:v,handleProgress:m,revokeFileObjectURL:h}=tne(n,a),p=k(()=>n.listType==="picture-card"),b=k(()=>({...n,fileList:u.value,onStart:c,onProgress:m,onSuccess:v,onError:d,onRemove:f}));return Dt(()=>{u.value.forEach(h)}),St(ig,{accept:Ft(n,"accept")}),t({abort:l,submit:r,clearFiles:i,handleStart:c,handleRemove:f}),(g,w)=>($(),F("div",null,[p.value&&g.showFileList?($(),ne(DT,{key:0,disabled:s(o),"list-type":g.listType,files:s(u),crossorigin:g.crossorigin,"handle-preview":g.onPreview,onRemove:s(f)},vo({append:Q(()=>[X(HT,rt({ref_key:"uploadRef",ref:a},b.value),{default:Q(()=>[g.$slots.trigger?ee(g.$slots,"trigger",{key:0}):te("v-if",!0),!g.$slots.trigger&&g.$slots.default?ee(g.$slots,"default",{key:1}):te("v-if",!0)]),_:3},16)]),_:2},[g.$slots.file?{name:"default",fn:Q(({file:C,index:y})=>[ee(g.$slots,"file",{file:C,index:y})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):te("v-if",!0),!p.value||p.value&&!g.showFileList?($(),ne(HT,rt({key:1,ref_key:"uploadRef",ref:a},b.value),{default:Q(()=>[g.$slots.trigger?ee(g.$slots,"trigger",{key:0}):te("v-if",!0),!g.$slots.trigger&&g.$slots.default?ee(g.$slots,"default",{key:1}):te("v-if",!0)]),_:3},16)):te("v-if",!0),g.$slots.trigger?ee(g.$slots,"default",{key:2}):te("v-if",!0),ee(g.$slots,"tip"),!p.value&&g.showFileList?($(),ne(DT,{key:3,disabled:s(o),"list-type":g.listType,files:s(u),crossorigin:g.crossorigin,"handle-preview":g.onPreview,onRemove:s(f)},vo({_:2},[g.$slots.file?{name:"default",fn:Q(({file:C,index:y})=>[ee(g.$slots,"file",{file:C,index:y})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):te("v-if",!0)]))}});var one=ye(nne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const jT=Qe(one),YT=me({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:G([String,Array]),default:"Element Plus"},font:{type:G(Object)},gap:{type:G(Array),default:()=>[100,100]},offset:{type:G(Array)}});function ane(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function lne(e){return Object.keys(e).map(t=>`${ane(t)}: ${e[t]};`).join(" ")}function rne(){return window.devicePixelRatio||1}const sne=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},ine={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function dg(e,t,n=1){const o=document.createElement("canvas"),a=o.getContext("2d"),l=e*n,r=t*n;return o.setAttribute("width",`${l}px`),o.setAttribute("height",`${r}px`),a.save(),[a,o,l,r]}function une(){function e(t,n,o,a,l,r,i,u,c){const[d,f,v,m]=dg(a,l,o);let h=0;if(t instanceof HTMLImageElement)d.drawImage(t,0,0,v,m);else{const{color:V,fontSize:J,fontStyle:q,fontWeight:ae,fontFamily:ie,textAlign:oe,textBaseline:fe}=r,re=Number(J)*o;d.font=`${q} normal ${ae} ${re}px/${l}px ${ie}`,d.fillStyle=V,d.textAlign=oe,d.textBaseline=fe;const j=Ee(t)?t:[t];if(fe!=="top"&&j[0]){const se=d.measureText(j[0]);d.textBaseline="top";const Se=d.measureText(j[0]);h=se.actualBoundingBoxAscent-Se.actualBoundingBoxAscent}j==null||j.forEach((se,Se)=>{const[Ie,Le]=ine[oe];d.fillText(se!=null?se:"",v*Ie+c*Le,Se*(re+r.fontGap*o))})}const p=Math.PI/180*Number(n),b=Math.max(a,l),[g,w,C]=dg(b,b,o);g.translate(C/2,C/2),g.rotate(p),v>0&&m>0&&g.drawImage(f,-v/2,-m/2);function y(V,J){const q=V*Math.cos(p)-J*Math.sin(p),ae=V*Math.sin(p)+J*Math.cos(p);return[q,ae]}let S=0,E=0,_=0,O=0;const N=v/2,R=m/2;[[0-N,0-R],[0+N,0-R],[0+N,0+R],[0-N,0+R]].forEach(([V,J])=>{const[q,ae]=y(V,J);S=Math.min(S,q),E=Math.max(E,q),_=Math.min(_,ae),O=Math.max(O,ae)});const I=S+C/2,L=_+C/2,H=E-S,K=O-_,Y=i*o,M=u*o,T=(H+Y)*2,D=K+M,[B,z]=dg(T,D);function U(V=0,J=0){B.drawImage(w,I,L,H,K,V,J+h,H,K)}return U(),U(H+Y,-K/2-M/2),U(H+Y,+K/2+M/2),[z.toDataURL(),T/o,D/o]}return e}const cne=le({name:"ElWatermark",__name:"watermark",props:YT,setup(e){const t={position:"relative"},n=e,o=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.fontGap)!=null?I:3}),a=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.color)!=null?I:"rgba(0,0,0,.15)"}),l=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.fontSize)!=null?I:16}),r=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.fontWeight)!=null?I:"normal"}),i=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.fontStyle)!=null?I:"normal"}),u=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.fontFamily)!=null?I:"sans-serif"}),c=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.textAlign)!=null?I:"center"}),d=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.textBaseline)!=null?I:"hanging"}),f=k(()=>n.gap[0]),v=k(()=>n.gap[1]),m=k(()=>f.value/2),h=k(()=>v.value/2),p=k(()=>{var A,I;return(I=(A=n.offset)==null?void 0:A[0])!=null?I:m.value}),b=k(()=>{var A,I;return(I=(A=n.offset)==null?void 0:A[1])!=null?I:h.value}),g=()=>{const A={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let I=p.value-m.value,L=b.value-h.value;return I>0&&(A.left=`${I}px`,A.width=`calc(100% - ${I}px)`,I=0),L>0&&(A.top=`${L}px`,A.height=`calc(100% - ${L}px)`,L=0),A.backgroundPosition=`${I}px ${L}px`,A},w=Zt(null),C=Zt(),y=P(!1),S=()=>{C.value&&(C.value.remove(),C.value=void 0)},E=(A,I)=>{var L;w.value&&C.value&&(y.value=!0,C.value.setAttribute("style",lne({...g(),backgroundImage:`url('${A}')`,backgroundSize:`${Math.floor(I)}px`})),(L=w.value)==null||L.append(C.value),setTimeout(()=>{y.value=!1}))},_=A=>{let I=120,L=64,H=0;const{image:K,content:Y,width:M,height:T,rotate:D}=n;if(!K&&A.measureText){A.font=`${Number(l.value)}px ${u.value}`;const B=Ee(Y)?Y:[Y];let z=0,U=0;B.forEach(J=>{const{width:q,fontBoundingBoxAscent:ae,fontBoundingBoxDescent:ie,actualBoundingBoxAscent:oe,actualBoundingBoxDescent:fe}=A.measureText(J),re=$t(ae)?oe+fe:ae+ie;q>z&&(z=Math.ceil(q)),re>U&&(U=Math.ceil(re))}),I=z,L=U*B.length+(B.length-1)*o.value;const V=Math.PI/180*Number(D);H=Math.ceil(Math.abs(Math.sin(V)*L)/2),I+=H}return[M!=null?M:I,T!=null?T:L,H]},O=une(),N=()=>{const I=document.createElement("canvas").getContext("2d"),L=n.image,H=n.content,K=n.rotate;if(I){C.value||(C.value=document.createElement("div"));const Y=rne(),[M,T,D]=_(I),B=z=>{const[U,V]=O(z||"",K,Y,M,T,{color:a.value,fontSize:l.value,fontStyle:i.value,fontWeight:r.value,fontFamily:u.value,fontGap:o.value,textAlign:c.value,textBaseline:d.value},f.value,v.value,D);E(U,V)};if(L){const z=new Image;z.onload=()=>{B(z)},z.onerror=()=>{B(H)},z.crossOrigin="anonymous",z.referrerPolicy="no-referrer",z.src=L}else B(H)}};return st(()=>{N()}),ue(()=>n,()=>{N()},{deep:!0,flush:"post"}),Dt(()=>{S()}),Ds(w,A=>{y.value||A.forEach(I=>{sne(I,C.value)&&(S(),N())})},{attributes:!0,subtree:!0,childList:!0}),(A,I)=>($(),F("div",{ref_key:"containerRef",ref:w,style:Ne([t])},[ee(A.$slots,"default")],4))}});var dne=ye(cne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/watermark/src/watermark.vue"]]);const UT=Qe(dne),fne=me({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:G(Object)},targetAreaClickable:{type:Boolean,default:!0}}),pne=(e,t,n,o,a)=>{const l=P(null),r=()=>{let f;return ze(e.value)?f=document.querySelector(e.value):lt(e.value)?f=e.value():f=e.value,f},i=()=>{const f=r();if(!f||!t.value){l.value=null;return}vne(f)||f.scrollIntoView(a.value);const{left:v,top:m,width:h,height:p}=f.getBoundingClientRect();l.value={left:v,top:m,width:h,height:p,radius:0}};st(()=>{ue([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),Dt(()=>{window.removeEventListener("resize",i)});const u=f=>{var v;return(v=Ee(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?v:6},c=k(()=>{var f;if(!l.value)return l.value;const v=u(0),m=u(1),h=((f=n.value)==null?void 0:f.radius)||2;return{left:l.value.left-v,top:l.value.top-m,width:l.value.width+v*2,height:l.value.height+m*2,radius:h}}),d=k(()=>{const f=r();return!o.value||!f||!window.DOMRect?f||void 0:{getBoundingClientRect(){var v,m,h,p;return window.DOMRect.fromRect({width:((v=c.value)==null?void 0:v.width)||0,height:((m=c.value)==null?void 0:m.height)||0,x:((h=c.value)==null?void 0:h.left)||0,y:((p=c.value)==null?void 0:p.top)||0})}}});return{mergedPosInfo:c,triggerTarget:d}},Rd=Symbol("ElTour");function vne(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:a,bottom:l,left:r}=e.getBoundingClientRect();return o>=0&&r>=0&&a<=t&&l<=n}const hne=(e,t,n,o,a,l,r,i)=>{const u=P(),c=P(),d=P({}),f={x:u,y:c,placement:o,strategy:a,middlewareData:d},v=k(()=>{const g=[wH(s(l)),SH(),CH(),mne()];return s(i)&&s(n)&&g.push(sC({element:s(n)})),g}),m=async()=>{if(!_t)return;const g=s(e),w=s(t);if(!g||!w)return;const C=await iC(g,w,{placement:s(o),strategy:s(a),middleware:s(v)});Kr(f).forEach(y=>{f[y].value=C[y]})},h=k(()=>{if(!s(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:s(r)};const{overflow:g}=s(d);return{position:s(a),zIndex:s(r),top:s(c)!=null?`${s(c)}px`:"",left:s(u)!=null?`${s(u)}px`:"",maxWidth:g!=null&&g.maxWidth?`${g==null?void 0:g.maxWidth}px`:""}}),p=k(()=>{if(!s(i))return{};const{arrow:g}=s(d);return{left:(g==null?void 0:g.x)!=null?`${g==null?void 0:g.x}px`:"",top:(g==null?void 0:g.y)!=null?`${g==null?void 0:g.y}px`:""}});let b;return st(()=>{const g=s(e),w=s(t);g&&w&&(b=bH(g,w,m)),lo(()=>{m()})}),Dt(()=>{b&&b()}),{update:m,contentStyle:h,arrowStyle:p}},mne=()=>({name:"overflow",async fn(e){const t=await yH(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),gne={style:{width:"100%",height:"100%"}},bne=["d"],yne=le({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:fne,setup(e){const t=e,{ns:n}=Te(Rd),o=k(()=>{var d,f;return(f=(d=t.pos)==null?void 0:d.radius)!=null?f:2}),a=k(()=>{const d=o.value,f=`a${d},${d} 0 0 1`;return{topRight:`${f} ${d},${d}`,bottomRight:`${f} ${-d},${d}`,bottomLeft:`${f} ${-d},${-d}`,topLeft:`${f} ${d},${-d}`}}),{width:l,height:r}=Gd(),i=k(()=>{const d=l.value,f=r.value,v=a.value,m=`M${d},0 L0,0 L0,${f} L${d},${f} L${d},0 Z`,h=o.value;return t.pos?`${m} M${t.pos.left+h},${t.pos.top} h${t.pos.width-h*2} ${v.topRight} v${t.pos.height-h*2} ${v.bottomRight} h${-t.pos.width+h*2} ${v.bottomLeft} v${-t.pos.height+h*2} ${v.topLeft} z`:m}),u=k(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=k(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return di(Ft(t,"visible"),{ns:n}),(d,f)=>d.visible?($(),F("div",rt({key:0,class:s(n).e("mask"),style:u.value},d.$attrs),[($(),F("svg",gne,[W("path",{class:x(s(n).e("hollow")),style:Ne(c.value),d:i.value},null,14,bne)]))],16)):te("v-if",!0)}});var wne=ye(yne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/mask.vue"]]);const GT=["absolute","fixed"],qT=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],xd=me({placement:{type:G(String),values:qT,default:"bottom"},reference:{type:G(Object),default:null},strategy:{type:G(String),values:GT,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),XT={close:()=>!0},Cne=["data-side"],Sne=le({name:"ElTourContent",__name:"content",props:xd,emits:XT,setup(e,{emit:t}){const n=e,o=t,a=P(n.placement),l=P(n.strategy),r=P(null),i=P(null);ue(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:u,arrowStyle:c}=hne(Ft(n,"reference"),r,i,a,l,Ft(n,"offset"),Ft(n,"zIndex"),Ft(n,"showArrow")),d=k(()=>a.value.split("-")[0]),{ns:f}=Te(Rd),v=()=>{o("close")},m=h=>{h.detail.focusReason==="pointer"&&h.preventDefault()};return(h,p)=>($(),F("div",{ref_key:"contentRef",ref:r,style:Ne(s(u)),class:x(s(f).e("content")),"data-side":d.value,tabindex:"-1"},[X(s(us),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:v,onFocusoutPrevented:m},{default:Q(()=>[ee(h.$slots,"default")]),_:3},8,["focus-trap-el"]),h.showArrow?($(),F("span",{key:0,ref_key:"arrowRef",ref:i,style:Ne(s(c)),class:x(s(f).e("arrow"))},null,6)):te("v-if",!0)],14,Cne))}});var kne=ye(Sne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/content.vue"]]),Ene=le({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let o=0;return()=>{var a,l;const r=(a=t.default)==null?void 0:a.call(t),i=[];let u=0;function c(d){!Ee(d)||d.forEach(f=>{var v;((v=(f==null?void 0:f.type)||{})==null?void 0:v.name)==="ElTourStep"&&(i.push(f),u+=1)})}return r.length&&c(ua((l=r[0])==null?void 0:l.children)),o!==u&&(o=u,n("update-total",u)),i.length?i[e.current]:null}}});const ZT=me({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:zt},placement:xd.placement,contentStyle:{type:G([Object])},mask:{type:G([Boolean,Object]),default:!0},gap:{type:G(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:G([Boolean,Object]),default:()=>({block:"center"})},type:{type:G(String)},appendTo:{type:ki.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),JT={[Ue]:e=>Vt(e),["update:current"]:e=>xe(e),close:e=>xe(e),finish:()=>!0,change:e=>xe(e)},$ne=le({name:"ElTour",__name:"tour",props:ZT,emits:JT,setup(e,{emit:t}){const n=e,o=t,a=de("tour"),l=P(0),r=P(),i=Ug(n,"current",o,{passive:!0}),u=k(()=>{var R;return(R=r.value)==null?void 0:R.target}),c=k(()=>[a.b(),g.value==="primary"?a.m("primary"):""]),d=k(()=>{var R;return((R=r.value)==null?void 0:R.placement)||n.placement}),f=k(()=>{var R,A;return(A=(R=r.value)==null?void 0:R.contentStyle)!=null?A:n.contentStyle}),v=k(()=>{var R,A;return(A=(R=r.value)==null?void 0:R.mask)!=null?A:n.mask}),m=k(()=>!!v.value&&n.modelValue),h=k(()=>Vt(v.value)?void 0:v.value),p=k(()=>{var R,A;return!!u.value&&((A=(R=r.value)==null?void 0:R.showArrow)!=null?A:n.showArrow)}),b=k(()=>{var R,A;return(A=(R=r.value)==null?void 0:R.scrollIntoViewOptions)!=null?A:n.scrollIntoViewOptions}),g=k(()=>{var R,A;return(A=(R=r.value)==null?void 0:R.type)!=null?A:n.type}),{nextZIndex:w}=Qr(),C=w(),y=k(()=>{var R;return(R=n.zIndex)!=null?R:C}),{mergedPosInfo:S,triggerTarget:E}=pne(u,Ft(n,"modelValue"),Ft(n,"gap"),v,b);ue(()=>n.modelValue,R=>{R||(i.value=0)});const _=()=>{n.closeOnPressEscape&&(o(Ue,!1),o("close",i.value))},O=R=>{l.value=R},N=$n();return St(Rd,{currentStep:r,current:i,total:l,showClose:Ft(n,"showClose"),closeIcon:Ft(n,"closeIcon"),mergedType:g,ns:a,slots:N,updateModelValue(R){o(Ue,R)},onClose(){o("close",i.value)},onFinish(){o("finish")},onChange(){o(ft,i.value)}}),(R,A)=>($(),F(Fe,null,[X(s(rs),{to:R.appendTo},{default:Q(()=>{var I,L;return[W("div",rt({class:c.value},R.$attrs),[X(wne,{visible:m.value,fill:(I=h.value)==null?void 0:I.color,style:Ne((L=h.value)==null?void 0:L.style),pos:s(S),"z-index":y.value,"target-area-clickable":R.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),R.modelValue?($(),ne(kne,{key:s(i),reference:s(E),placement:d.value,"show-arrow":p.value,"z-index":y.value,style:Ne(f.value),onClose:_},{default:Q(()=>[X(s(Ene),{current:s(i),onUpdateTotal:O},{default:Q(()=>[ee(R.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):te("v-if",!0)],16)]}),_:3},8,["to"]),te(" just for IDE "),te("v-if",!0)],64))}});var _ne=ye($ne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/tour.vue"]]);const QT=me({target:{type:G([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:zt},showArrow:{type:Boolean,default:void 0},placement:xd.placement,mask:{type:G([Boolean,Object]),default:void 0},contentStyle:{type:G([Object])},prevButtonProps:{type:G(Object)},nextButtonProps:{type:G(Object)},scrollIntoViewOptions:{type:G([Boolean,Object]),default:void 0},type:{type:G(String)}}),eO={close:()=>!0},Tne=["aria-label"],One=le({name:"ElTourStep",__name:"step",props:QT,emits:eO,setup(e,{emit:t}){const n=e,o=t,{Close:a}=H1,{t:l}=wt(),{currentStep:r,current:i,total:u,showClose:c,closeIcon:d,mergedType:f,ns:v,slots:m,updateModelValue:h,onClose:p,onFinish:b,onChange:g}=Te(Rd);ue(n,R=>{r.value=R},{immediate:!0});const w=k(()=>{var R;return(R=n.showClose)!=null?R:c.value}),C=k(()=>{var R,A;return(A=(R=n.closeIcon)!=null?R:d.value)!=null?A:a}),y=R=>{if(!!R)return Hr(R,["children","onClick"])},S=()=>{var R,A;i.value-=1,(R=n.prevButtonProps)!=null&&R.onClick&&((A=n.prevButtonProps)==null||A.onClick()),g()},E=()=>{var R;i.value>=u.value-1?_():i.value+=1,(R=n.nextButtonProps)!=null&&R.onClick&&n.nextButtonProps.onClick(),g()},_=()=>{O(),b()},O=()=>{h(!1),p(),o("close")},N=R=>{const A=R.target;if(A!=null&&A.isContentEditable)return;switch(Ht(R)){case pe.left:R.preventDefault(),i.value>0&&S();break;case pe.right:R.preventDefault(),E();break}};return st(()=>{window.addEventListener("keydown",N)}),Dt(()=>{window.removeEventListener("keydown",N)}),(R,A)=>($(),F(Fe,null,[w.value?($(),F("button",{key:0,"aria-label":s(l)("el.tour.close"),class:x(s(v).e("closebtn")),type:"button",onClick:O},[X(s($e),{class:x(s(v).e("close"))},{default:Q(()=>[($(),ne(at(C.value)))]),_:1},8,["class"])],10,Tne)):te("v-if",!0),W("header",{class:x([s(v).e("header"),{"show-close":s(c)}])},[ee(R.$slots,"header",{},()=>[W("span",{role:"heading",class:x(s(v).e("title"))},ge(R.title),3)])],2),W("div",{class:x(s(v).e("body"))},[ee(R.$slots,"default",{},()=>[W("span",null,ge(R.description),1)])],2),W("footer",{class:x(s(v).e("footer"))},[W("div",{class:x(s(v).b("indicators"))},[s(m).indicators?($(),ne(at(s(m).indicators),{key:0,current:s(i),total:s(u)},null,8,["current","total"])):($(!0),F(Fe,{key:1},yt(s(u),(I,L)=>($(),F("span",{key:I,class:x([s(v).b("indicator"),s(v).is("active",L===s(i))])},null,2))),128))],2),W("div",{class:x(s(v).b("buttons"))},[s(i)>0?($(),ne(s(xn),rt({key:0,size:"small",type:s(f)},y(R.prevButtonProps),{onClick:S}),{default:Q(()=>{var I,L;return[Ct(ge((L=(I=R.prevButtonProps)==null?void 0:I.children)!=null?L:s(l)("el.tour.previous")),1)]}),_:1},16,["type"])):te("v-if",!0),s(i)<=s(u)-1?($(),ne(s(xn),rt({key:1,size:"small",type:s(f)==="primary"?"default":"primary"},y(R.nextButtonProps),{onClick:E}),{default:Q(()=>{var I,L;return[Ct(ge((L=(I=R.nextButtonProps)==null?void 0:I.children)!=null?L:s(i)===s(u)-1?s(l)("el.tour.finish"):s(l)("el.tour.next")),1)]}),_:1},16,["type"])):te("v-if",!0)],2)],2)],64))}});var tO=ye(One,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/step.vue"]]);const nO=Qe(_ne,{TourStep:tO}),oO=sn(tO),aO=me({container:{type:G([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:G(String),default:"default"},direction:{type:G(String),default:"vertical"},selectScrollTop:Boolean}),lO={change:e=>ze(e),click:(e,t)=>e instanceof MouseEvent&&(ze(t)||$t(t))},rO=Symbol("anchor"),Rne=le({name:"ElAnchor",__name:"anchor",props:aO,emits:lO,setup(e,{expose:t,emit:n}){const o=e,a=n,l=$n(),r=P(""),i=P({}),u=P(null),c=P(null),d=P(),f={};let v=!1,m=0;const h=de("anchor"),p=k(()=>[h.b(),o.type==="underline"?h.m("underline"):"",h.m(o.direction)]),b=I=>{f[I.href]=I.el},g=I=>{delete f[I]},w=I=>{r.value!==I&&(r.value=I,a(ft,I))};let C=null,y="";const S=I=>{if(!d.value)return;const L=Ju(I);if(!L)return;if(C){if(y===I)return;C()}y=I,v=!0;const H=M1(L,d.value),K=Xd(L,H),Y=H.scrollHeight-H.clientHeight,M=Math.min(K-o.offset,Y);C=BF(d.value,m,M,o.duration,()=>{setTimeout(()=>{v=!1,y=""},20)})},E=I=>{I&&(w(I),S(I))},_=(I,L)=>{a("click",I,L),E(L)},O=nz(()=>{d.value&&(m=N1(d.value));const I=N();v||$t(I)||w(I)}),N=()=>{if(!d.value)return;const I=N1(d.value),L=[];for(const H of Object.keys(f)){const K=Ju(H);if(!K)continue;const Y=M1(K,d.value),M=Xd(K,Y);L.push({top:M-o.offset-o.bound,href:H})}L.sort((H,K)=>H.top-K.top);for(let H=0;H<L.length;H++){const K=L[H],Y=L[H+1];if(H===0&&I===0)return o.selectScrollTop?K.href:"";if(K.top<=I&&(!Y||Y.top>I))return K.href}},R=()=>{const I=Ju(o.container);!I||li(I)?d.value=window:d.value=I};Mt(d,"scroll",O);const A=()=>{ke(()=>{if(!u.value||!c.value||!r.value){i.value={};return}const I=f[r.value];if(!I){i.value={};return}const L=u.value.getBoundingClientRect(),H=c.value.getBoundingClientRect(),K=I.getBoundingClientRect();if(o.direction==="horizontal"){const Y=K.left-L.left;i.value={left:`${Y}px`,width:`${K.width}px`,opacity:1}}else{const Y=K.top-L.top+(K.height-H.height)/2;i.value={top:`${Y}px`,opacity:1}}})};return ue(r,A),ue(()=>{var I;return(I=l.default)==null?void 0:I.call(l)},A),st(()=>{R();const I=decodeURIComponent(window.location.hash);Ju(I)?E(I):O()}),ue(()=>o.container,()=>{R()}),St(rO,{ns:h,direction:o.direction,currentAnchor:r,addLink:b,removeLink:g,handleClick:_}),t({scrollTo:E}),(I,L)=>($(),F("div",{ref_key:"anchorRef",ref:u,class:x(p.value)},[I.marker?($(),F("div",{key:0,ref_key:"markerRef",ref:c,class:x(s(h).e("marker")),style:Ne(i.value)},null,6)):te("v-if",!0),W("div",{class:x(s(h).e("list"))},[ee(I.$slots,"default")],2)],2))}});var xne=ye(Rne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor.vue"]]);const Ine=me({title:String,href:String}),Mne=["href"],Nne=le({name:"ElAnchorLink",__name:"anchor-link",props:Ine,setup(e){const t=e,n=P(null),{ns:o,direction:a,currentAnchor:l,addLink:r,removeLink:i,handleClick:u}=Te(rO),c=k(()=>[o.e("link"),o.is("active",l.value===t.href)]),d=f=>{u(f,t.href)};return ue(()=>t.href,(f,v)=>{ke(()=>{v&&i(v),f&&r({href:f,el:n.value})})}),st(()=>{const{href:f}=t;f&&r({href:f,el:n.value})}),Dt(()=>{const{href:f}=t;f&&i(f)}),(f,v)=>($(),F("div",{class:x(s(o).e("item"))},[W("a",{ref_key:"linkRef",ref:n,class:x(c.value),href:f.href,onClick:d},[ee(f.$slots,"default",{},()=>[Ct(ge(f.title),1)])],10,Mne),f.$slots["sub-link"]&&s(a)==="vertical"?($(),F("div",{key:0,class:x(s(o).e("list"))},[ee(f.$slots,"sub-link")],2)):te("v-if",!0)],2))}});var sO=ye(Nne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor-link.vue"]]);const iO=Qe(xne,{AnchorLink:sO}),uO=sn(sO),fg={label:"label",value:"value",disabled:"disabled"},cO=me({direction:{type:G(String),default:"horizontal"},options:{type:G(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:G(Object),default:()=>fg},block:Boolean,size:En,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...Yn(["ariaLabel"])}),dO={[Ue]:e=>ze(e)||xe(e)||Vt(e),[ft]:e=>ze(e)||xe(e)||Vt(e)},Ane=["id","aria-label","aria-labelledby"],Pne=["name","disabled","checked","onChange"],Lne=le({name:"ElSegmented",__name:"segmented",props:cO,emits:dO,setup(e,{emit:t}){const n=e,o=t,a=de("segmented"),l=Bn(),r=bn(),i=nn(),{formItem:u}=An(),{inputId:c,isLabeledByFormItem:d}=So(n,{formItemContext:u}),f=P(null),v=fR(),m=Lt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),h=(I,L)=>{const H=g(L);o(Ue,H),o(ft,H),I.target.checked=H===n.modelValue},p=k(()=>({...fg,...n.props})),b=I=>I,g=I=>Rt(I)?I[p.value.value]:I,w=I=>Rt(I)?I[p.value.label]:I,C=I=>!!(i.value||(Rt(I)?I[p.value.disabled]:!1)),y=I=>n.modelValue===g(I),S=I=>n.options.find(L=>g(L)===I),E=I=>[a.e("item"),a.is("selected",y(I)),a.is("disabled",C(I))],_=()=>{if(!f.value)return;const I=f.value.querySelector(".is-selected"),L=f.value.querySelector(".is-selected input");if(!I||!L){m.width=0,m.height=0,m.translateX=0,m.translateY=0,m.focusVisible=!1;return}m.isInit=!0,n.direction==="vertical"?(m.height=I.offsetHeight,m.translateY=I.offsetTop):(m.width=I.offsetWidth,m.translateX=I.offsetLeft);try{m.focusVisible=L.matches(":focus-visible")}catch(H){}},O=k(()=>[a.b(),a.m(r.value),a.is("block",n.block)]),N=k(()=>({width:n.direction==="vertical"?"100%":`${m.width}px`,height:n.direction==="vertical"?`${m.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${m.translateY}px)`:`translateX(${m.translateX}px)`,display:m.isInit?"block":"none"})),R=k(()=>[a.e("item-selected"),a.is("disabled",C(S(n.modelValue))),a.is("focus-visible",m.focusVisible)]),A=k(()=>n.name||l.value);return Qt(f,_),ue(v,_),ue(()=>n.modelValue,()=>{var I;_(),n.validateEvent&&((I=u==null?void 0:u.validate)==null||I.call(u,"change").catch(L=>void 0))},{flush:"post"}),(I,L)=>I.options.length?($(),F("div",{key:0,id:s(c),ref_key:"segmentedRef",ref:f,class:x(O.value),role:"radiogroup","aria-label":s(d)?void 0:I.ariaLabel||"segmented","aria-labelledby":s(d)?s(u).labelId:void 0},[W("div",{class:x([s(a).e("group"),s(a).m(I.direction)])},[W("div",{style:Ne(N.value),class:x(R.value)},null,6),($(!0),F(Fe,null,yt(I.options,(H,K)=>($(),F("label",{key:K,class:x(E(H))},[W("input",{class:x(s(a).e("item-input")),type:"radio",name:A.value,disabled:C(H),checked:y(H),onChange:Y=>h(Y,H)},null,42,Pne),W("div",{class:x(s(a).e("item-label"))},[ee(I.$slots,"default",{item:b(H)},()=>[Ct(ge(w(H)),1)])],2)],2))),128))],2)],10,Ane)):te("v-if",!0)}});var Dne=ye(Lne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/segmented/src/segmented.vue"]]);const fO=Qe(Dne),Bne=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},Fne=(e,t,n)=>{const{selectionEnd:o}=e;if(o===null)return;const a=e.value,l=Nn(t);let r=-1,i;for(let u=o-1;u>=0;--u){const c=a[u];if(c===n||c===`
|
|
67
|
+
`}),u=k(()=>2*Math.PI*r.value),c=k(()=>n.type==="dashboard"?.75:1),d=k(()=>`${-1*u.value*(1-c.value)/2}px`),f=k(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),v=k(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),m=k(()=>{let C;return n.color?C=w(n.percentage):C=t[n.status]||t.default,C}),h=k(()=>n.status==="warning"?tc:n.type==="line"?n.status==="success"?kp:ul:n.status==="success"?si:jo),p=k(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),b=k(()=>n.format(n.percentage));function g(C){const y=100/C.length;return C.map((E,_)=>ze(E)?{color:E,percentage:(_+1)*y}:E).sort((E,_)=>E.percentage-_.percentage)}const w=C=>{var y;const{color:S}=n;if(lt(S))return S(C);if(ze(S))return S;{const E=g(S);for(const _ of E)if(_.percentage>C)return _.color;return(y=E[E.length-1])==null?void 0:y.color}};return(C,y)=>($(),F("div",{class:x([s(o).b(),s(o).m(C.type),s(o).is(C.status),{[s(o).m("without-text")]:!C.showText,[s(o).m("text-inside")]:C.textInside}]),role:"progressbar","aria-valuenow":C.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[C.type==="line"?($(),F("div",{key:0,class:x(s(o).b("bar"))},[W("div",{class:x(s(o).be("bar","outer")),style:Ne({height:`${C.strokeWidth}px`})},[W("div",{class:x([s(o).be("bar","inner"),{[s(o).bem("bar","inner","indeterminate")]:C.indeterminate},{[s(o).bem("bar","inner","striped")]:C.striped},{[s(o).bem("bar","inner","striped-flow")]:C.stripedFlow}]),style:Ne(a.value)},[(C.showText||C.$slots.default)&&C.textInside?($(),F("div",{key:0,class:x(s(o).be("bar","innerText"))},[ee(C.$slots,"default",{percentage:C.percentage},()=>[W("span",null,ge(b.value),1)])],2)):te("v-if",!0)],6)],6)],2)):($(),F("div",{key:1,class:x(s(o).b("circle")),style:Ne({height:`${C.width}px`,width:`${C.width}px`})},[($(),F("svg",XX,[W("path",{class:x(s(o).be("circle","track")),d:i.value,stroke:`var(${s(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":C.strokeLinecap,"stroke-width":l.value,fill:"none",style:Ne(f.value)},null,14,ZX),W("path",{class:x(s(o).be("circle","path")),d:i.value,stroke:m.value,fill:"none",opacity:C.percentage?1:0,"stroke-linecap":C.strokeLinecap,"stroke-width":l.value,style:Ne(v.value)},null,14,JX)]))],6)),(C.showText||C.$slots.default)&&!C.textInside?($(),F("div",{key:2,class:x(s(o).e("text")),style:Ne({fontSize:`${p.value}px`})},[ee(C.$slots,"default",{percentage:C.percentage},()=>[C.status?($(),ne(s($e),{key:1},{default:Q(()=>[($(),ne(at(h.value)))]),_:1})):($(),F("span",QX,ge(b.value),1))])],6)):te("v-if",!0)],10,qX))}});var tZ=ye(eZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const sm=Qe(tZ),c$=me({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:G([Array,Object]),default:()=>un(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:G([Array,Object]),default:()=>[ec,ec,ec]},voidIcon:{type:zt,default:()=>HV},disabledVoidIcon:{type:zt,default:()=>ec},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:G(Array),default:()=>un(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:En,clearable:Boolean,...Yn(["ariaLabel"])}),d$={[ft]:e=>xe(e),[Ue]:e=>xe(e)},nZ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],oZ=["onMousemove","onClick"],aZ=le({name:"ElRate",__name:"rate",props:c$,emits:d$,setup(e,{expose:t,emit:n}){function o(T,D){const B=V=>Rt(V),z=Object.keys(D).map(V=>+V).filter(V=>{const J=D[V];return(B(J)?J.excluded:!1)?T<V:T<=V}).sort((V,J)=>V-J),U=D[z[0]];return B(U)&&U.value||U}const a=e,l=n,r=Te(ba,void 0),i=bn(),u=de("rate"),{inputId:c,isLabeledByFormItem:d}=So(a,{formItemContext:r}),f=P(a.modelValue),v=P(-1),m=P(!0),h=P([]),p=k(()=>h.value.map(T=>T.$el.clientWidth)),b=k(()=>[u.b(),u.m(i.value)]),g=nn(),w=k(()=>u.cssVarBlock({"void-color":a.voidColor,"disabled-void-color":a.disabledVoidColor,"fill-color":E.value})),C=k(()=>{let T="";return a.showScore?T=a.scoreTemplate.replace(/\{\s*value\s*\}/,g.value?`${a.modelValue}`:`${f.value}`):a.showText&&(T=a.texts[Math.ceil(f.value)-1]),T}),y=k(()=>a.modelValue*100-Math.floor(a.modelValue)*100),S=k(()=>Ee(a.colors)?{[a.lowThreshold]:a.colors[0],[a.highThreshold]:{value:a.colors[1],excluded:!0},[a.max]:a.colors[2]}:a.colors),E=k(()=>{const T=o(f.value,S.value);return Rt(T)?"":T}),_=k(()=>{let T="";return g.value?T=`${y.value}%`:a.allowHalf&&(T="50%"),{color:E.value,width:T}}),O=k(()=>{let T=Ee(a.icons)?[...a.icons]:{...a.icons};return T=Cl(T),Ee(T)?{[a.lowThreshold]:T[0],[a.highThreshold]:{value:T[1],excluded:!0},[a.max]:T[2]}:T}),N=k(()=>o(a.modelValue,O.value)),R=k(()=>g.value?ze(a.disabledVoidIcon)?a.disabledVoidIcon:Cl(a.disabledVoidIcon):ze(a.voidIcon)?a.voidIcon:Cl(a.voidIcon)),A=k(()=>o(f.value,O.value));function I(T){const D=g.value&&y.value>0&&T-1<a.modelValue&&T>a.modelValue,B=a.allowHalf&&m.value&&T-.5<=f.value&&T>f.value;return D||B}function L(T){a.clearable&&T===a.modelValue&&(T=0),l(Ue,T),a.modelValue!==T&&l(ft,T)}function H(T){g.value||(a.allowHalf&&m.value?L(f.value):L(T))}function K(T){if(g.value)return;const D=Ht(T),B=a.allowHalf?.5:1;let z=f.value;switch(D){case pe.up:case pe.right:z+=B;break;case pe.left:case pe.down:z-=B;break}if(z=Xs(z,0,a.max),z!==f.value)return T.stopPropagation(),T.preventDefault(),l(Ue,z),l(ft,z),z}function Y(T,D){g.value||(a.allowHalf&&D?(m.value=D.offsetX*2<=p.value[T-1],f.value=m.value?T-.5:T):f.value=T,v.value=T)}function M(){g.value||(a.allowHalf&&(m.value=a.modelValue!==Math.floor(a.modelValue)),f.value=a.modelValue,v.value=-1)}return ue(()=>a.modelValue,T=>{f.value=T,m.value=a.modelValue!==Math.floor(a.modelValue)}),a.modelValue||l(Ue,0),t({setCurrentValue:Y,resetCurrentValue:M}),(T,D)=>{var B;return $(),F("div",{id:s(c),class:x([b.value,s(u).is("disabled",s(g))]),role:"slider","aria-label":s(d)?void 0:T.ariaLabel||"rating","aria-labelledby":s(d)?(B=s(r))==null?void 0:B.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":C.value||void 0,"aria-valuemin":"0","aria-valuemax":T.max,tabindex:"0",style:Ne(w.value),onKeydown:K},[($(!0),F(Fe,null,yt(T.max,(z,U)=>($(),F("span",{key:U,class:x(s(u).e("item")),onMousemove:V=>Y(z,V),onMouseleave:M,onClick:V=>H(z)},[X(s($e),{ref_for:!0,ref_key:"iconRefs",ref:h,class:x([s(u).e("icon"),{hover:v.value===z},s(u).is("active",z<=f.value),s(u).is("focus-visible",z===Math.ceil(f.value||1))])},{default:Q(()=>[ot(($(),ne(at(A.value),null,null,512)),[[xt,!I(z)&&z<=f.value]]),ot(($(),ne(at(R.value),null,null,512)),[[xt,!I(z)&&z>f.value]]),ot(($(),ne(at(R.value),{class:x([s(u).em("decimal","box")])},null,8,["class"])),[[xt,I(z)]]),ot(X(s($e),{style:Ne(_.value),class:x([s(u).e("icon"),s(u).e("decimal")])},{default:Q(()=>[($(),ne(at(N.value)))]),_:1},8,["style","class"]),[[xt,I(z)]])]),_:2},1032,["class"])],42,oZ))),128)),T.showText||T.showScore?($(),F("span",{key:0,class:x(s(u).e("text")),style:Ne({color:T.textColor})},ge(C.value),7)):te("v-if",!0)],46,nZ)}}});var lZ=ye(aZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const f$=Qe(lZ),Wl={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},im={[Wl.primary]:ii,[Wl.success]:eV,[Wl.warning]:tc,[Wl.error]:Ep,[Wl.info]:ii},p$=me({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),rZ=le({name:"ElResult",__name:"result",props:p$,setup(e){const t=e,n=de("result"),o=k(()=>{const a=t.icon,l=a&&Wl[a]?Wl[a]:"icon-info",r=im[l]||im["icon-info"];return{class:l,component:r}});return(a,l)=>($(),F("div",{class:x(s(n).b())},[W("div",{class:x(s(n).e("icon"))},[ee(a.$slots,"icon",{},()=>[o.value.component?($(),ne(at(o.value.component),{key:0,class:x(o.value.class)},null,8,["class"])):te("v-if",!0)])],2),a.title||a.$slots.title?($(),F("div",{key:0,class:x(s(n).e("title"))},[ee(a.$slots,"title",{},()=>[W("p",null,ge(a.title),1)])],2)):te("v-if",!0),a.subTitle||a.$slots["sub-title"]?($(),F("div",{key:1,class:x(s(n).e("subtitle"))},[ee(a.$slots,"sub-title",{},()=>[W("p",null,ge(a.subTitle),1)])],2)):te("v-if",!0),a.$slots.extra?($(),F("div",{key:2,class:x(s(n).e("extra"))},[ee(a.$slots,"extra")],2)):te("v-if",!0)],2))}});var sZ=ye(rZ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const v$=Qe(sZ);var h$=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function iZ(e,t){return!!(e===t||h$(e)&&h$(t))}function uZ(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!iZ(e[n],t[n]))return!1;return!0}function cZ(e,t){t===void 0&&(t=uZ);var n=null;function o(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];if(n&&n.lastThis===this&&t(a,n.lastArgs))return n.lastResult;var r=e.apply(this,a);return n={lastResult:r,lastArgs:a,lastThis:this},r}return o.clear=function(){n=null},o}const m$=()=>{const t=it().proxy.$props;return k(()=>{const n=(o,a,l)=>({});return t.perfMode?Gs(n):cZ(n)})},um=50,id="itemRendered",ud="scroll",gs="forward",cd="backward",Qo="auto",dd="smart",Ki="start",Ka="center",ji="end",bs="horizontal",g$="vertical",dZ="ltr",ys="rtl",Yi="negative",cm="positive-ascending",dm="positive-descending",fZ={[bs]:"left",[g$]:"top"},pZ=20,vZ=({atEndEdge:e,atStartEdge:t,layout:n},o)=>{let a,l=0;const r=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:r,onWheel:u=>{rl(a);let{deltaX:c,deltaY:d}=u;u.shiftKey&&d!==0&&(c=d,d=0);const f=n.value===bs?c:d;r(l)&&r(l+f)||(l+=f,!qd()&&f!==0&&u.preventDefault(),a=Ma(()=>{o(l),l=0}))}}};var b$=vZ;const fm=ia({type:G([Number,Function]),required:!0}),pm=ia({type:Number}),vm=ia({type:Number,default:2}),hZ=ia({type:String,values:["ltr","rtl"],default:"ltr"}),hm=ia({type:Number,default:0}),fd=ia({type:Number,required:!0}),y$=ia({type:String,values:["horizontal","vertical"],default:g$}),mm=me({className:{type:String,default:""},containerElement:{type:G([String,Object]),default:"div"},data:{type:G(Array),default:()=>un([])},direction:hZ,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:G(Object),default:()=>({})},style:{type:G([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),gm=me({cache:vm,estimatedItemSize:pm,layout:y$,initScrollOffset:hm,total:fd,itemSize:fm,...mm}),bm={type:Number,default:6},w$={type:Number,default:0},C$={type:Number,default:2},Kl=me({columnCache:vm,columnWidth:fm,estimatedColumnWidth:pm,estimatedRowHeight:pm,initScrollLeft:hm,initScrollTop:hm,itemKey:{type:G(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:vm,rowHeight:fm,totalColumn:fd,totalRow:fd,hScrollbarSize:bm,vScrollbarSize:bm,scrollbarStartGap:w$,scrollbarEndGap:C$,role:String,...mm}),ym=me({alwaysOn:Boolean,class:String,layout:y$,total:fd,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:bm,startGap:w$,endGap:C$,visible:Boolean}),br=(e,t)=>e<t?gs:cd,Ui=e=>e===dZ||e===ys||e===bs,S$=e=>e===ys;let ws=null;function pd(e=!1){if(ws===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const o=document.createElement("div"),a=o.style;return a.width="100px",a.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?ws=dm:(t.scrollLeft=1,t.scrollLeft===0?ws=Yi:ws=cm),document.body.removeChild(t),ws}return ws}function mZ({move:e,size:t,bar:n},o){const a={},l=`translate${n.axis}(${e}px)`;return a[n.size]=t,a.transform=l,o==="horizontal"?a.height="100%":a.width="100%",a}const gZ=le({name:"ElVirtualScrollBar",props:ym,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=k(()=>e.startGap+e.endGap),o=de("virtual-scrollbar"),a=de("scrollbar"),l=P(),r=P();let i=null,u=null;const c=Lt({isDragging:!1,traveled:0}),d=k(()=>vv[e.layout]),f=k(()=>e.clientSize-s(n)),v=k(()=>({position:"absolute",width:`${bs===e.layout?f.value:e.scrollbarSize}px`,height:`${bs===e.layout?e.scrollbarSize:f.value}px`,[fZ[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),m=k(()=>{const E=e.ratio;if(E>=100)return Number.POSITIVE_INFINITY;if(E>=50)return E*f.value/100;const _=f.value/3;return Math.floor(Math.min(Math.max(E*f.value/100,pZ),_))}),h=k(()=>{if(!Number.isFinite(m.value))return{display:"none"};const E=`${m.value}px`;return mZ({bar:d.value,size:E,move:c.traveled},e.layout)}),p=k(()=>Math.ceil(e.clientSize-m.value-s(n))),b=()=>{window.addEventListener("mousemove",y),window.addEventListener("mouseup",C);const E=s(r);!E||(u=document.onselectstart,document.onselectstart=()=>!1,E.addEventListener("touchmove",y,{passive:!0}),E.addEventListener("touchend",C))},g=()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",C),document.onselectstart=u,u=null;const E=s(r);!E||(E.removeEventListener("touchmove",y),E.removeEventListener("touchend",C))},w=E=>{E.stopImmediatePropagation(),!(E.ctrlKey||[1,2].includes(E.button))&&(c.isDragging=!0,c[d.value.axis]=E.currentTarget[d.value.offset]-(E[d.value.client]-E.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),b())},C=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),g()},y=E=>{const{isDragging:_}=c;if(!_||!r.value||!l.value)return;const O=c[d.value.axis];if(!O)return;rl(i);const N=(l.value.getBoundingClientRect()[d.value.direction]-E[d.value.client])*-1,R=r.value[d.value.offset]-O,A=N-R;i=Ma(()=>{c.traveled=Math.max(0,Math.min(A,p.value)),t("scroll",A,p.value)})},S=E=>{const _=Math.abs(E.target.getBoundingClientRect()[d.value.direction]-E[d.value.client]),O=r.value[d.value.offset]/2,N=_-O;c.traveled=Math.max(0,Math.min(N,p.value)),t("scroll",N,p.value)};return ue(()=>e.scrollFrom,E=>{c.isDragging||(c.traveled=Math.ceil(E*p.value))}),Dt(()=>{g()}),()=>De("div",{role:"presentation",ref:l,class:[o.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:v.value,onMousedown:Ye(S,["stop","prevent"]),onTouchstartPrevent:w},De("div",{ref:r,class:a.e("thumb"),style:h.value,onMousedown:w},[]))}});var wm=gZ;const bZ=({name:e,getOffset:t,getItemSize:n,getItemOffset:o,getEstimatedTotalSize:a,getStartIndexForOffset:l,getStopIndexForStartIndex:r,initCache:i,clearCache:u,validateProps:c})=>le({name:e!=null?e:"ElVirtualList",props:gm,emits:[id,ud],setup(d,{emit:f,expose:v}){c(d);const m=it(),h=de("vl"),p=P(i(d,m)),b=m$(),g=P(),w=P(),C=P(),y=P({isScrolling:!1,scrollDir:"forward",scrollOffset:xe(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),S=k(()=>{const{total:V,cache:J}=d,{isScrolling:q,scrollDir:ae,scrollOffset:ie}=s(y);if(V===0)return[0,0,0,0];const oe=l(d,ie,s(p)),fe=r(d,oe,ie,s(p)),re=!q||ae===cd?Math.max(1,J):1,j=!q||ae===gs?Math.max(1,J):1;return[Math.max(0,oe-re),Math.max(0,Math.min(V-1,fe+j)),oe,fe]}),E=k(()=>a(d,s(p))),_=k(()=>Ui(d.layout)),O=k(()=>[{position:"relative",[`overflow-${_.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:xe(d.height)?`${d.height}px`:d.height,width:xe(d.width)?`${d.width}px`:d.width},d.style]),N=k(()=>{const V=s(E),J=s(_);return{height:J?"100%":`${V}px`,pointerEvents:s(y).isScrolling?"none":void 0,width:J?`${V}px`:"100%",margin:0,boxSizing:"border-box"}}),R=k(()=>_.value?d.width:d.height),{onWheel:A}=b$({atStartEdge:k(()=>y.value.scrollOffset<=0),atEndEdge:k(()=>y.value.scrollOffset>=E.value),layout:k(()=>d.layout)},V=>{var J,q;(q=(J=C.value).onMouseUp)==null||q.call(J),M(Math.min(y.value.scrollOffset+V,E.value-R.value))});Mt(g,"wheel",A,{passive:!1});const I=()=>{const{total:V}=d;if(V>0){const[ie,oe,fe,re]=s(S);f(id,ie,oe,fe,re)}const{scrollDir:J,scrollOffset:q,updateRequested:ae}=s(y);f(ud,J,q,ae)},L=V=>{const{clientHeight:J,scrollHeight:q,scrollTop:ae}=V.currentTarget,ie=s(y);if(ie.scrollOffset===ae)return;const oe=Math.max(0,Math.min(ae,q-J));y.value={...ie,isScrolling:!0,scrollDir:br(ie.scrollOffset,oe),scrollOffset:oe,updateRequested:!1},ke(B)},H=V=>{const{clientWidth:J,scrollLeft:q,scrollWidth:ae}=V.currentTarget,ie=s(y);if(ie.scrollOffset===q)return;const{direction:oe}=d;let fe=q;if(oe===ys)switch(pd()){case Yi:{fe=-q;break}case dm:{fe=ae-J-q;break}}fe=Math.max(0,Math.min(fe,ae-J)),y.value={...ie,isScrolling:!0,scrollDir:br(ie.scrollOffset,fe),scrollOffset:fe,updateRequested:!1},ke(B)},K=V=>{s(_)?H(V):L(V),I()},Y=(V,J)=>{const q=(E.value-R.value)/J*V;M(Math.min(E.value-R.value,q))},M=V=>{V=Math.max(V,0),V!==s(y).scrollOffset&&(y.value={...s(y),scrollOffset:V,scrollDir:br(s(y).scrollOffset,V),updateRequested:!0},ke(B))},T=(V,J=Qo)=>{const{scrollOffset:q}=s(y);V=Math.max(0,Math.min(V,d.total-1)),M(t(d,V,J,q,s(p)))},D=V=>{const{direction:J,itemSize:q,layout:ae}=d,ie=b.value(u&&q,u&&ae,u&&J);let oe;if(Ln(ie,String(V)))oe=ie[V];else{const fe=o(d,V,s(p)),re=n(d,V,s(p)),j=s(_),se=J===ys,Se=j?fe:0;ie[V]=oe={position:"absolute",left:se?void 0:`${Se}px`,right:se?`${Se}px`:void 0,top:j?0:`${fe}px`,height:j?"100%":`${re}px`,width:j?`${re}px`:"100%"}}return oe},B=()=>{y.value.isScrolling=!1,ke(()=>{b.value(-1,null,null)})},z=()=>{const V=g.value;V&&(V.scrollTop=0)};st(()=>{if(!_t)return;const{initScrollOffset:V}=d,J=s(g);xe(V)&&J&&(s(_)?J.scrollLeft=V:J.scrollTop=V),I()}),Ga(()=>{const{direction:V,layout:J}=d,{scrollOffset:q,updateRequested:ae}=s(y),ie=s(g);if(ae&&ie)if(J===bs)if(V===ys)switch(pd()){case Yi:{ie.scrollLeft=-q;break}case cm:{ie.scrollLeft=q;break}default:{const{clientWidth:oe,scrollWidth:fe}=ie;ie.scrollLeft=fe-oe-q;break}}else ie.scrollLeft=q;else ie.scrollTop=q}),Vd(()=>{s(g).scrollTop=s(y).scrollOffset});const U={ns:h,clientSize:R,estimatedTotalSize:E,windowStyle:O,windowRef:g,innerRef:w,innerStyle:N,itemsToRender:S,scrollbarRef:C,states:y,getItemStyle:D,onScroll:K,onScrollbarScroll:Y,onWheel:A,scrollTo:M,scrollToItem:T,resetScrollTop:z};return v({windowRef:g,innerRef:w,getItemStyleCache:b,scrollTo:M,scrollToItem:T,resetScrollTop:z,states:y}),U},render(d){var f;const{$slots:v,className:m,clientSize:h,containerElement:p,data:b,getItemStyle:g,innerElement:w,itemsToRender:C,innerStyle:y,layout:S,total:E,onScroll:_,onScrollbarScroll:O,states:N,useIsScrolling:R,windowStyle:A,ns:I}=d,[L,H]=C,K=at(p),Y=at(w),M=[];if(E>0)for(let z=L;z<=H;z++)M.push(De(Fe,{key:z},(f=v.default)==null?void 0:f.call(v,{data:b,index:z,isScrolling:R?N.isScrolling:void 0,style:g(z)})));const T=[De(Y,rt(d.innerProps,{style:y,ref:"innerRef"}),ze(Y)?M:{default:()=>M})],D=De(wm,{ref:"scrollbarRef",clientSize:h,layout:S,onScroll:O,ratio:h*100/this.estimatedTotalSize,scrollFrom:N.scrollOffset/(this.estimatedTotalSize-h),total:E,alwaysOn:N.scrollbarAlwaysOn}),B=De(K,{class:[I.e("window"),m],style:A,onScroll:_,ref:"windowRef",key:0},ze(K)?[T]:{default:()=>[T]});return De("div",{key:0,class:[I.e("wrapper"),N.scrollbarAlwaysOn?"always-on":""]},[B,D])}});var k$=bZ;const yZ=k$({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:o,width:a},l,r,i)=>{const u=Ui(o)?a:e,c=Math.max(0,t*n-u),d=Math.min(c,l*n),f=Math.max(0,(l+1)*n-u);switch(r===dd&&(i>=f-u&&i<=d+u?r=Qo:r=Ka),r){case Ki:return d;case ji:return f;case Ka:{const v=Math.round(f+(d-f)/2);return v<Math.ceil(u/2)?0:v>c+Math.floor(u/2)?c:v}case Qo:default:return i>=f&&i<=d?i:i<f?f:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:o,width:a},l,r)=>{const i=l*n,u=Ui(o)?a:e,c=Math.ceil((u+r-i)/n);return Math.max(0,Math.min(t-1,l+c-1))},initCache(){},clearCache:!0,validateProps(){}});var Cm=yZ;const Cs=(e,t,n)=>{const{itemSize:o}=e,{items:a,lastVisitedIndex:l}=n;if(t>l){let r=0;if(l>=0){const i=a[l];r=i.offset+i.size}for(let i=l+1;i<=t;i++){const u=o(i);a[i]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return a[t]},wZ=(e,t,n)=>{const{items:o,lastVisitedIndex:a}=t;return(a>0?o[a].offset:0)>=n?E$(e,t,0,a,n):CZ(e,t,Math.max(0,a),n)},E$=(e,t,n,o,a)=>{for(;n<=o;){const l=n+Math.floor((o-n)/2),r=Cs(e,l,t).offset;if(r===a)return l;r<a?n=l+1:r>a&&(o=l-1)}return Math.max(0,n-1)},CZ=(e,t,n,o)=>{const{total:a}=e;let l=1;for(;n<a&&Cs(e,n,t).offset<o;)n+=l,l*=2;return E$(e,t,Math.floor(n/2),Math.min(n,a-1),o)},$$=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:o})=>{let a=0;if(o>=e&&(o=e-1),o>=0){const i=t[o];a=i.offset+i.size}const r=(e-o-1)*n;return a+r},SZ=k$({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Cs(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:$$,getOffset:(e,t,n,o,a)=>{const{height:l,layout:r,width:i}=e,u=Ui(r)?i:l,c=Cs(e,t,a),d=$$(e,a),f=Math.max(0,Math.min(d-u,c.offset)),v=Math.max(0,c.offset-u+c.size);switch(n===dd&&(o>=v-u&&o<=f+u?n=Qo:n=Ka),n){case Ki:return f;case ji:return v;case Ka:return Math.round(v+(f-v)/2);case Qo:default:return o>=v&&o<=f?o:o<v?v:f}},getStartIndexForOffset:(e,t,n)=>wZ(e,n,t),getStopIndexForStartIndex:(e,t,n,o)=>{const{height:a,total:l,layout:r,width:i}=e,u=Ui(r)?i:a,c=Cs(e,t,o),d=n+u;let f=c.offset+c.size,v=t;for(;v<l-1&&f<d;)v++,f+=Cs(e,v,o).size;return v},initCache({estimatedItemSize:e=um},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(o,a=!0)=>{var l,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,o-1),(l=t.exposed)==null||l.getItemStyleCache(-1),a&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}});var _$=SZ;const kZ=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:o},a)=>{let l=null,r=0,i=0;const u=(d,f)=>{const v=d<=0&&t.value||d>=0&&e.value,m=f<=0&&o.value||f>=0&&n.value;return v&&m};return{hasReachedEdge:u,onWheel:d=>{rl(l);let f=d.deltaX,v=d.deltaY;Math.abs(f)>Math.abs(v)?v=0:f=0,d.shiftKey&&v!==0&&(f=v,v=0),!(u(r,i)&&u(r+f,i+v))&&(r+=f,i+=v,d.preventDefault(),l=Ma(()=>{a(r,i),r=0,i=0}))}}},EZ=(e,t,n,o,a,l,r)=>{const i=P(0),u=P(0);let c,d=0,f=0;const v=h=>{rl(c),i.value=h.touches[0].clientX,u.value=h.touches[0].clientY,d=0,f=0},m=h=>{h.preventDefault(),rl(c),d+=i.value-h.touches[0].clientX,f+=u.value-h.touches[0].clientY,i.value=h.touches[0].clientX,u.value=h.touches[0].clientY,c=Ma(()=>{const p=o.value-s(l),b=a.value-s(r),g=Math.min(t.value.scrollLeft+d,p),w=Math.min(t.value.scrollTop+f,b);n({scrollLeft:g,scrollTop:w}),d=0,f=0})};return Mt(e,"touchstart",v,{passive:!0}),Mt(e,"touchmove",m,{passive:!1}),{touchStartX:i,touchStartY:u,handleTouchStart:v,handleTouchMove:m}},$Z=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:o,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:l,getEstimatedTotalWidth:r,getColumnOffset:i,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:v,injectToInstance:m,validateProps:h})=>le({name:e!=null?e:"ElVirtualList",props:Kl,emits:[id,ud],setup(p,{emit:b,expose:g,slots:w}){const C=de("vl");h(p);const y=it(),S=P(v(p,y));m==null||m(y,S);const E=P(),_=P(),O=P(),N=P(),R=P({isScrolling:!1,scrollLeft:xe(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:xe(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:gs,yAxisScrollDir:gs}),A=m$(),I=k(()=>Number.parseInt(`${p.height}`,10)),L=k(()=>Number.parseInt(`${p.width}`,10)),H=k(()=>{const{totalColumn:Ae,totalRow:Pe,columnCache:Ze}=p,{isScrolling:et,xAxisScrollDir:gt,scrollLeft:vt}=s(R);if(Ae===0||Pe===0)return[0,0,0,0];const Ce=o(p,vt,s(S)),Ve=a(p,Ce,vt,s(S)),Ke=!et||gt===cd?Math.max(1,Ze):1,Yt=!et||gt===gs?Math.max(1,Ze):1;return[Math.max(0,Ce-Ke),Math.max(0,Math.min(Ae-1,Ve+Yt)),Ce,Ve]}),K=k(()=>{const{totalColumn:Ae,totalRow:Pe,rowCache:Ze}=p,{isScrolling:et,yAxisScrollDir:gt,scrollTop:vt}=s(R);if(Ae===0||Pe===0)return[0,0,0,0];const Ce=d(p,vt,s(S)),Ve=f(p,Ce,vt,s(S)),Ke=!et||gt===cd?Math.max(1,Ze):1,Yt=!et||gt===gs?Math.max(1,Ze):1;return[Math.max(0,Ce-Ke),Math.max(0,Math.min(Pe-1,Ve+Yt)),Ce,Ve]}),Y=k(()=>l(p,s(S))),M=k(()=>r(p,s(S))),T=k(()=>{var Ae;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:xe(p.height)?`${p.height}px`:p.height,width:xe(p.width)?`${p.width}px`:p.width},(Ae=p.style)!=null?Ae:{}]}),D=k(()=>{const Ae=`${s(M)}px`;return{height:`${s(Y)}px`,pointerEvents:s(R).isScrolling?"none":void 0,width:Ae,margin:0,boxSizing:"border-box"}}),B=()=>{const{totalColumn:Ae,totalRow:Pe}=p;if(Ae>0&&Pe>0){const[Ve,Ke,Yt,Be]=s(H),[ht,ut,bt,ve]=s(K);b(id,{columnCacheStart:Ve,columnCacheEnd:Ke,rowCacheStart:ht,rowCacheEnd:ut,columnVisibleStart:Yt,columnVisibleEnd:Be,rowVisibleStart:bt,rowVisibleEnd:ve})}const{scrollLeft:Ze,scrollTop:et,updateRequested:gt,xAxisScrollDir:vt,yAxisScrollDir:Ce}=s(R);b(ud,{xAxisScrollDir:vt,scrollLeft:Ze,yAxisScrollDir:Ce,scrollTop:et,updateRequested:gt})},z=Ae=>{const{clientHeight:Pe,clientWidth:Ze,scrollHeight:et,scrollLeft:gt,scrollTop:vt,scrollWidth:Ce}=Ae.currentTarget,Ve=s(R);if(Ve.scrollTop===vt&&Ve.scrollLeft===gt)return;let Ke=gt;if(S$(p.direction))switch(pd()){case Yi:Ke=-gt;break;case dm:Ke=Ce-Ze-gt;break}R.value={...Ve,isScrolling:!0,scrollLeft:Ke,scrollTop:Math.max(0,Math.min(vt,et-Pe)),updateRequested:!0,xAxisScrollDir:br(Ve.scrollLeft,Ke),yAxisScrollDir:br(Ve.scrollTop,vt)},ke(()=>se()),Se(),B()},U=(Ae,Pe)=>{const Ze=s(I),et=(Y.value-Ze)/Pe*Ae;q({scrollTop:Math.min(Y.value-Ze,et)})},V=(Ae,Pe)=>{const Ze=s(L),et=(M.value-Ze)/Pe*Ae;q({scrollLeft:Math.min(M.value-Ze,et)})},{onWheel:J}=kZ({atXStartEdge:k(()=>R.value.scrollLeft<=0),atXEndEdge:k(()=>R.value.scrollLeft>=M.value-s(L)),atYStartEdge:k(()=>R.value.scrollTop<=0),atYEndEdge:k(()=>R.value.scrollTop>=Y.value-s(I))},(Ae,Pe)=>{var Ze,et,gt,vt;(et=(Ze=_.value)==null?void 0:Ze.onMouseUp)==null||et.call(Ze),(vt=(gt=O.value)==null?void 0:gt.onMouseUp)==null||vt.call(gt);const Ce=s(L),Ve=s(I);q({scrollLeft:Math.min(R.value.scrollLeft+Ae,M.value-Ce),scrollTop:Math.min(R.value.scrollTop+Pe,Y.value-Ve)})});Mt(E,"wheel",J,{passive:!1});const q=({scrollLeft:Ae=R.value.scrollLeft,scrollTop:Pe=R.value.scrollTop})=>{Ae=Math.max(Ae,0),Pe=Math.max(Pe,0);const Ze=s(R);Pe===Ze.scrollTop&&Ae===Ze.scrollLeft||(R.value={...Ze,xAxisScrollDir:br(Ze.scrollLeft,Ae),yAxisScrollDir:br(Ze.scrollTop,Pe),scrollLeft:Ae,scrollTop:Pe,updateRequested:!0},ke(()=>se()),Se(),B())},{touchStartX:ae,touchStartY:ie,handleTouchStart:oe,handleTouchMove:fe}=EZ(E,R,q,M,Y,L,I),re=(Ae=0,Pe=0,Ze=Qo)=>{const et=s(R);Pe=Math.max(0,Math.min(Pe,p.totalColumn-1)),Ae=Math.max(0,Math.min(Ae,p.totalRow-1));const gt=I1(C.namespace.value),vt=s(S),Ce=l(p,vt),Ve=r(p,vt);q({scrollLeft:i(p,Pe,Ze,et.scrollLeft,vt,Ve>p.width?gt:0),scrollTop:u(p,Ae,Ze,et.scrollTop,vt,Ce>p.height?gt:0)})},j=(Ae,Pe)=>{const{columnWidth:Ze,direction:et,rowHeight:gt}=p,vt=A.value(t&&Ze,t&>,t&&et),Ce=`${Ae},${Pe}`;if(Ln(vt,Ce))return vt[Ce];{const[,Ve]=n(p,Pe,s(S)),Ke=s(S),Yt=S$(et),[Be,ht]=c(p,Ae,Ke),[ut]=n(p,Pe,Ke);return vt[Ce]={position:"absolute",left:Yt?void 0:`${Ve}px`,right:Yt?`${Ve}px`:void 0,top:`${ht}px`,height:`${Be}px`,width:`${ut}px`},vt[Ce]}},se=()=>{R.value.isScrolling=!1,ke(()=>{A.value(-1,null,null)})};st(()=>{if(!_t)return;const{initScrollLeft:Ae,initScrollTop:Pe}=p,Ze=s(E);Ze&&(xe(Ae)&&(Ze.scrollLeft=Ae),xe(Pe)&&(Ze.scrollTop=Pe)),B()});const Se=()=>{const{direction:Ae}=p,{scrollLeft:Pe,scrollTop:Ze,updateRequested:et}=s(R),gt=s(E);if(et&>){if(Ae===ys)switch(pd()){case Yi:{gt.scrollLeft=-Pe;break}case cm:{gt.scrollLeft=Pe;break}default:{const{clientWidth:vt,scrollWidth:Ce}=gt;gt.scrollLeft=Ce-vt-Pe;break}}else gt.scrollLeft=Math.max(0,Pe);gt.scrollTop=Math.max(0,Ze)}},{resetAfterColumnIndex:Ie,resetAfterRowIndex:Le,resetAfter:He}=y.proxy;g({windowRef:E,innerRef:N,getItemStyleCache:A,touchStartX:ae,touchStartY:ie,handleTouchStart:oe,handleTouchMove:fe,scrollTo:q,scrollToItem:re,states:R,resetAfterColumnIndex:Ie,resetAfterRowIndex:Le,resetAfter:He});const We=()=>{const{scrollbarAlwaysOn:Ae,scrollbarStartGap:Pe,scrollbarEndGap:Ze,totalColumn:et,totalRow:gt}=p,vt=s(L),Ce=s(I),Ve=s(M),Ke=s(Y),{scrollLeft:Yt,scrollTop:Be}=s(R),ht=De(wm,{ref:_,alwaysOn:Ae,startGap:Pe,endGap:Ze,class:C.e("horizontal"),clientSize:vt,layout:"horizontal",onScroll:V,ratio:vt*100/Ve,scrollFrom:Yt/(Ve-vt),total:gt,visible:!0}),ut=De(wm,{ref:O,alwaysOn:Ae,startGap:Pe,endGap:Ze,class:C.e("vertical"),clientSize:Ce,layout:"vertical",onScroll:U,ratio:Ce*100/Ke,scrollFrom:Be/(Ke-Ce),total:et,visible:!0});return{horizontalScrollbar:ht,verticalScrollbar:ut}},tt=()=>{var Ae;const[Pe,Ze]=s(H),[et,gt]=s(K),{data:vt,totalColumn:Ce,totalRow:Ve,useIsScrolling:Ke,itemKey:Yt}=p,Be=[];if(Ve>0&&Ce>0)for(let ht=et;ht<=gt;ht++)for(let ut=Pe;ut<=Ze;ut++){const bt=Yt({columnIndex:ut,data:vt,rowIndex:ht});Be.push(De(Fe,{key:bt},(Ae=w.default)==null?void 0:Ae.call(w,{columnIndex:ut,data:vt,isScrolling:Ke?s(R).isScrolling:void 0,style:j(ht,ut),rowIndex:ht})))}return Be},Tt=()=>{const Ae=at(p.innerElement),Pe=tt();return[De(Ae,rt(p.innerProps,{style:s(D),ref:N}),ze(Ae)?Pe:{default:()=>Pe})]};return()=>{const Ae=at(p.containerElement),{horizontalScrollbar:Pe,verticalScrollbar:Ze}=We(),et=Tt();return De("div",{key:0,class:C.e("wrapper"),role:p.role},[De(Ae,{class:p.className,style:s(T),onScroll:z,ref:E},ze(Ae)?et:{default:()=>et}),Pe,Ze])}}});var T$=$Z;const _Z=T$({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},o,a,l,r,i)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,o*t),d=Math.max(0,o*t-n+i+t);switch(a==="smart"&&(l>=d-n&&l<=c+n?a=Qo:a=Ka),a){case Ki:return c;case ji:return d;case Ka:{const f=Math.round(d+(c-d)/2);return f<Math.ceil(n/2)?0:f>u+Math.floor(n/2)?u:f}case Qo:default:return l>=d&&l<=c?l:d>c||l<d?d:c}},getRowOffset:({rowHeight:e,height:t,totalRow:n},o,a,l,r,i)=>{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,o*e),d=Math.max(0,o*e-t+i+e);switch(a===dd&&(l>=d-t&&l<=c+t?a=Qo:a=Ka),a){case Ki:return c;case ji:return d;case Ka:{const f=Math.round(d+(c-d)/2);return f<Math.ceil(t/2)?0:f>u+Math.floor(t/2)?u:f}case Qo:default:return l>=d&&l<=c?l:d>c||l<d?d:c}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},o,a)=>{const l=o*e,r=Math.ceil((n+a-l)/e);return Math.max(0,Math.min(t-1,o+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},o,a)=>{const l=o*e,r=Math.ceil((n+a-l)/e);return Math.max(0,Math.min(t-1,o+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}});var O$=_Z;const{max:vd,min:R$,floor:x$}=Math,TZ={column:"columnWidth",row:"rowHeight"},Sm={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},bl=(e,t,n,o)=>{const[a,l,r]=[n[o],e[TZ[o]],n[Sm[o]]];if(t>r){let i=0;if(r>=0){const u=a[r];i=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=l(u);a[u]={offset:i,size:c},i+=c}n[Sm[o]]=t}return a[t]},I$=(e,t,n,o,a,l)=>{for(;n<=o;){const r=n+x$((o-n)/2),i=bl(e,r,t,l).offset;if(i===a)return r;i<a?n=r+1:o=r-1}return vd(0,n-1)},OZ=(e,t,n,o,a)=>{const l=a==="column"?e.totalColumn:e.totalRow;let r=1;for(;n<l&&bl(e,n,t,a).offset<o;)n+=r,r*=2;return I$(e,t,x$(n/2),R$(n,l-1),o,a)},M$=(e,t,n,o)=>{const[a,l]=[t[o],t[Sm[o]]];return(l>0?a[l].offset:0)>=n?I$(e,t,0,l,n,o):OZ(e,t,vd(0,l),n,o)},N$=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:o})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const i=o[n];a=i.offset+i.size}const r=(e-n-1)*t;return a+r},A$=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:o})=>{let a=0;if(o>e&&(o=e-1),o>=0){const i=t[o];a=i.offset+i.size}const r=(e-o-1)*n;return a+r},RZ={column:A$,row:N$},P$=(e,t,n,o,a,l,r)=>{const[i,u]=[l==="row"?e.height:e.width,RZ[l]],c=bl(e,t,a,l),d=u(e,a),f=vd(0,R$(d-i,c.offset)),v=vd(0,c.offset-i+r+c.size);switch(n===dd&&(o>=v-i&&o<=f+i?n=Qo:n=Ka),n){case Ki:return f;case ji:return v;case Ka:return Math.round(v+(f-v)/2);case Qo:default:return o>=v&&o<=f?o:v>f||o<v?v:f}},xZ=T$({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const o=bl(e,t,n,"column");return[o.size,o.offset]},getRowPosition:(e,t,n)=>{const o=bl(e,t,n,"row");return[o.size,o.offset]},getColumnOffset:(e,t,n,o,a,l)=>P$(e,t,n,o,a,"column",l),getRowOffset:(e,t,n,o,a,l)=>P$(e,t,n,o,a,"row",l),getColumnStartIndexForOffset:(e,t,n)=>M$(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,o)=>{const a=bl(e,t,o,"column"),l=n+e.width;let r=a.offset+a.size,i=t;for(;i<e.totalColumn-1&&r<l;)i++,r+=bl(e,t,o,"column").size;return i},getEstimatedTotalHeight:N$,getEstimatedTotalWidth:A$,getRowStartIndexForOffset:(e,t,n)=>M$(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,o)=>{const{totalRow:a,height:l}=e,r=bl(e,t,o,"row"),i=n+l;let u=r.size+r.offset,c=t;for(;c<a-1&&u<i;)c++,u+=bl(e,c,o,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:l,rowIndex:r},i)=>{var u,c;i=$t(i)?!0:i,xe(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),xe(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),i&&((c=e.proxy)==null||c.$forceUpdate())},o=(l,r)=>{n({columnIndex:l},r)},a=(l,r)=>{n({rowIndex:l},r)};Object.assign(e.proxy,{resetAfterColumnIndex:o,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=um,estimatedRowHeight:t=um})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}});var L$=xZ;const IZ=le({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:de("select")}}});function MZ(e,t,n,o,a,l){return $(),F("div",{class:x(e.ns.be("group","title")),style:Ne({...e.style,lineHeight:`${e.height}px`})},ge(e.item.label),7)}var NZ=ye(IZ,[["render",MZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function AZ(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const PZ=me({allowCreate:Boolean,autocomplete:{type:G(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:zt,default:ul},effect:{type:G(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:G(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:G([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:G(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:G(Array),required:!0},placeholder:{type:String},teleported:Kt.teleported,persistent:{type:Boolean,default:!0},popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,popperOptions:{type:G(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:En,props:{type:G(Object),default:()=>qc},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:G(String),values:cl,default:"bottom-start"},fallbackPlacements:{type:G(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Ha.type,default:"info"},tagEffect:{...Ha.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Kt.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Vt(e)||xe(e)}},suffixIcon:{type:zt,default:Aa},...Dl,...Yn(["ariaLabel"])}),LZ=me({data:Array,disabled:Boolean,hovering:Boolean,item:{type:G(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),DZ={[Ue]:e=>!0,[ft]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},BZ={hover:e=>xe(e),select:(e,t)=>!0},hd=Symbol("ElSelectV2Injection"),FZ=le({props:LZ,emits:BZ,setup(e,{emit:t}){const n=Te(hd),o=de("select"),{hoverItem:a,selectOptionClick:l}=AZ(e,{emit:t}),{getLabel:r}=Ii(n.props),i=n.contentId;return{ns:o,contentId:i,hoverItem:a,selectOptionClick:l,getLabel:r}}}),VZ=["id","aria-selected","aria-disabled"];function zZ(e,t,n,o,a,l){return $(),F("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:Ne(e.style),class:x([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onClick:t[1]||(t[1]=Ye((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[ee(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[W("span",null,ge(e.getLabel(e.item)),1)])],46,VZ)}var HZ=ye(FZ,[["render",zZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const WZ={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var KZ=le({name:"ElSelectDropdown",props:WZ,setup(e,{slots:t,expose:n}){const o=Te(hd),a=de("select"),{getLabel:l,getValue:r,getDisabled:i}=Ii(o.props),u=P([]),c=P(),d=k(()=>e.data.length);ue(()=>d.value,()=>{var A,I;(I=(A=o.tooltipRef.value)==null?void 0:A.updatePopper)==null||I.call(A)});const f=k(()=>$t(o.props.estimatedOptionHeight)),v=k(()=>f.value?{itemSize:o.props.itemHeight}:{estimatedSize:o.props.estimatedOptionHeight,itemSize:A=>u.value[A]}),m=(A=[],I)=>{const{props:{valueKey:L}}=o;return Rt(I)?A&&A.some(H=>cu(hn(H,L))===hn(I,L)):A.includes(I)},h=(A,I)=>{if(Rt(I)){const{valueKey:L}=o.props;return hn(A,L)===hn(I,L)}else return A===I},p=(A,I)=>o.props.multiple?m(A,r(I)):h(A,r(I)),b=(A,I)=>{const{disabled:L,multiple:H,multipleLimit:K}=o.props;return L||!I&&(H?K>0&&A.length>=K:!1)},g=A=>e.hoveringIndex===A;n({listRef:c,isSized:f,isItemDisabled:b,isItemHovering:g,isItemSelected:p,scrollToItem:A=>{const I=c.value;I&&I.scrollToItem(A)},resetScrollTop:()=>{const A=c.value;A&&A.resetScrollTop()}});const S=A=>{const{index:I,data:L,style:H}=A,K=s(f),{itemSize:Y,estimatedSize:M}=s(v),{modelValue:T}=o.props,{onSelect:D,onHover:B}=o,z=L[I];if(z.type==="Group")return X(NZ,{item:z,style:H,height:K?Y:M},null);const U=p(T,z),V=b(T,U),J=g(I);return X(HZ,rt(A,{selected:U,disabled:i(z)||V,created:!!z.created,hovering:J,item:z,onSelect:D,onHover:B}),{default:q=>{var ae;return((ae=t.default)==null?void 0:ae.call(t,q))||X("span",null,[l(z)])}})},{onKeyboardNavigate:E,onKeyboardSelect:_}=o,O=()=>{E("forward")},N=()=>{E("backward")},R=A=>{const I=Ht(A),{tab:L,esc:H,down:K,up:Y,enter:M,numpadEnter:T}=pe;switch([H,K,Y,M,T].includes(I)&&(A.preventDefault(),A.stopPropagation()),I){case L:case H:break;case K:O();break;case Y:N();break;case M:case T:_();break}};return()=>{var A,I,L,H;const{data:K,width:Y}=e,{height:M,multiple:T,scrollbarAlwaysOn:D}=o.props,B=k(()=>hu?!0:D),z=s(f)?Cm:_$;return X("div",{class:[a.b("dropdown"),a.is("multiple",T)],style:{width:`${Y}px`}},[(A=t.header)==null?void 0:A.call(t),((I=t.loading)==null?void 0:I.call(t))||((L=t.empty)==null?void 0:L.call(t))||X(z,rt({ref:c},s(v),{className:a.be("dropdown","list"),scrollbarAlwaysOn:B.value,data:K,height:M,width:Y,total:K.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:R}),{default:U=>X(S,U,null)}),(H=t.footer)==null?void 0:H.call(t)])}}});function jZ(e,t){const{aliasProps:n,getLabel:o,getValue:a}=Ii(e),l=P(0),r=P(),i=k(()=>e.allowCreate&&e.filterable);ue(()=>e.options,m=>{const h=new Set(m.map(p=>o(p)));t.createdOptions=t.createdOptions.filter(p=>!h.has(o(p)))});function u(m){const h=p=>o(p)===m;return e.options&&e.options.some(h)||t.createdOptions.some(h)}function c(m){!i.value||(e.multiple&&m.created?l.value++:r.value=m)}function d(m){if(i.value)if(m&&m.length>0){if(u(m)){t.createdOptions=t.createdOptions.filter(p=>o(p)!==t.previousQuery);return}const h={[n.value.value]:m,[n.value.label]:m,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=l.value?t.createdOptions[l.value]=h:t.createdOptions.push(h)}else if(e.multiple)t.createdOptions.length=l.value;else{const h=r.value;t.createdOptions.length=0,h&&h.created&&t.createdOptions.push(h)}}function f(m){if(!i.value||!m||!m.created||m.created&&e.reserveKeyword&&t.inputValue===o(m))return;const h=t.createdOptions.findIndex(p=>a(p)===a(m));~h&&(t.createdOptions.splice(h,1),l.value--)}function v(){i.value&&(t.createdOptions.length=0,l.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:v}}const YZ=(e,t)=>{const{t:n}=wt(),o=de("select"),a=de("input"),{form:l,formItem:r}=An(),{inputId:i}=So(e,{formItemContext:r}),{aliasProps:u,getLabel:c,getValue:d,getDisabled:f,getOptions:v}=Ii(e),{valueOnClear:m,isEmptyValue:h}=ls(e),p=Lt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),b=P(-1),g=P(!1),w=P(),C=P(),y=P(),S=P(),E=P(),_=P(),O=P(),N=P(),R=P(),A=P(),{isComposing:I,handleCompositionStart:L,handleCompositionEnd:H,handleCompositionUpdate:K}=as({afterComposition:we=>en(we)}),Y=nn(),{wrapperRef:M,isFocused:T,handleBlur:D}=za(E,{disabled:Y,afterFocus(){e.automaticDropdown&&!V.value&&(V.value=!0,p.menuVisibleOnFocus=!0)},beforeBlur(we){var qe,dt;return((qe=y.value)==null?void 0:qe.isFocusInsideContent(we))||((dt=S.value)==null?void 0:dt.isFocusInsideContent(we))},afterBlur(){var we;V.value=!1,p.menuVisibleOnFocus=!1,e.validateEvent&&((we=r==null?void 0:r.validate)==null||we.call(r,"blur").catch(qe=>void 0))}}),B=k(()=>We("")),z=k(()=>e.loading?!1:e.options.length>0||p.createdOptions.length>0),U=P([]),V=P(!1),J=k(()=>{var we;return(we=l==null?void 0:l.statusIcon)!=null?we:!1}),q=k(()=>{const we=U.value.length*e.itemHeight;return we>e.height?e.height:we}),ae=k(()=>e.multiple?Ee(e.modelValue)&&e.modelValue.length>0:!h(e.modelValue)),ie=k(()=>e.clearable&&!Y.value&&ae.value&&(T.value||p.inputHovering)),oe=k(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),fe=k(()=>oe.value&&o.is("reverse",V.value)),re=k(()=>(r==null?void 0:r.validateState)||""),j=k(()=>{if(!!re.value)return nc[re.value]}),se=k(()=>e.remote?e.debounce:0),Se=k(()=>e.remote&&!p.inputValue&&!z.value),Ie=k(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&p.inputValue&&z.value&&U.value.length===0?e.noMatchText||n("el.select.noMatch"):z.value?null:e.noDataText||n("el.select.noData")),Le=k(()=>e.filterable&<(e.filterMethod)),He=k(()=>e.filterable&&e.remote&<(e.remoteMethod)),We=we=>{const qe=new RegExp(wp(we),"i"),dt=kt=>Le.value||He.value?!0:we?qe.test(c(kt)||""):!0;return e.loading?[]:[...p.createdOptions,...e.options].reduce((kt,Pn)=>{const Do=v(Pn);if(Ee(Do)){const Is=Do.filter(dt);Is.length>0&&kt.push({label:c(Pn),type:"Group"},...Is)}else(e.remote||dt(Pn))&&kt.push(Pn);return kt},[])},tt=()=>{U.value=We(p.inputValue)},Tt=k(()=>{const we=new Map;return B.value.forEach((qe,dt)=>{we.set(Re(d(qe)),{option:qe,index:dt})}),we}),Xe=k(()=>{const we=new Map;return U.value.forEach((qe,dt)=>{we.set(Re(d(qe)),{option:qe,index:dt})}),we}),Ae=k(()=>U.value.every(we=>f(we))),Pe=bn(),Ze=k(()=>Pe.value==="small"?"small":"default"),et=()=>{var we;if(xe(e.fitInputWidth)){b.value=e.fitInputWidth;return}const qe=((we=w.value)==null?void 0:we.offsetWidth)||200;!e.fitInputWidth&&z.value?ke(()=>{b.value=Math.max(qe,gt())}):b.value=qe},gt=()=>{var we,qe;const kt=document.createElement("canvas").getContext("2d"),Pn=o.be("dropdown","item"),Is=(((qe=(we=N.value)==null?void 0:we.listRef)==null?void 0:qe.innerRef)||document).querySelector(`.${Pn}`);if(Is===null||kt===null)return 0;const su=getComputedStyle(Is),FO=Number.parseFloat(su.paddingLeft)+Number.parseFloat(su.paddingRight);return kt.font=`bold ${su.font.replace(new RegExp(`\\b${su.fontWeight}\\b`),"")}`,U.value.reduce((VO,zO)=>{const HO=kt.measureText(c(zO));return Math.max(HO.width,VO)},0)+FO},vt=()=>{if(!C.value)return 0;const we=window.getComputedStyle(C.value);return Number.parseFloat(we.gap||"6px")},Ce=k(()=>{const we=vt(),qe=e.filterable?we+Ps:0;return{maxWidth:`${A.value&&e.maxCollapseTags===1?p.selectionWidth-p.collapseItemWidth-we-qe:p.selectionWidth-qe}px`}}),Ve=k(()=>({maxWidth:`${p.selectionWidth}px`})),Ke=k(()=>Ee(e.modelValue)?e.modelValue.length===0&&!p.inputValue:e.filterable?!p.inputValue:!0),Yt=k(()=>{var we;const qe=(we=e.placeholder)!=null?we:n("el.select.placeholder");return e.multiple||!ae.value?qe:p.selectedLabel}),Be=k(()=>{var we,qe;return(qe=(we=y.value)==null?void 0:we.popperRef)==null?void 0:qe.contentRef}),ht=k(()=>{if(e.multiple){const we=e.modelValue.length;if(we>0&&Xe.value.has(e.modelValue[we-1])){const{index:qe}=Xe.value.get(e.modelValue[we-1]);return qe}}else if(!h(e.modelValue)&&Xe.value.has(e.modelValue)){const{index:we}=Xe.value.get(e.modelValue);return we}return-1}),ut=k({get(){return V.value&&(e.loading||!Se.value)&&(!g.value||!co(p.previousQuery))},set(we){V.value=we}}),bt=k(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(0,e.maxCollapseTags):p.cachedOptions:[]),ve=k(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:Oe,removeNewOption:ce,selectNewOption:Me,clearAllNewOption:pt}=jZ(e,p),Ut=we=>{var qe;Y.value||e.filterable&&V.value&&we&&!((qe=O.value)!=null&&qe.contains(we.target))||(p.menuVisibleOnFocus?p.menuVisibleOnFocus=!1:V.value=!V.value)},he=()=>{p.inputValue.length>0&&!V.value&&(V.value=!0),Oe(p.inputValue),ke(()=>{je(p.inputValue)})},_e=Ls(()=>{he(),g.value=!1},se),je=we=>{p.previousQuery===we||I.value||(p.previousQuery=we,e.filterable&<(e.filterMethod)?e.filterMethod(we):e.filterable&&e.remote&<(e.remoteMethod)&&e.remoteMethod(we),e.defaultFirstOption&&(e.filterable||e.remote)&&U.value.length?ke(pn):ke(Et))},pn=()=>{const we=U.value.filter(kt=>!kt.disabled&&kt.type!=="Group"),qe=we.find(kt=>kt.created),dt=we[0];p.hoveringIndex=At(U.value,qe||dt)},po=we=>{ln(e.modelValue,we)||t(ft,we)},On=we=>{t(Ue,we),po(we),p.previousValue=e.multiple?String(we):we,ke(()=>{if(e.multiple&&Ee(e.modelValue)){const qe=p.cachedOptions.slice(),dt=e.modelValue.map(kt=>Ea(kt,qe));ln(p.cachedOptions,dt)||(p.cachedOptions=dt)}else _r(!0)})},At=(we=[],qe)=>{if(!Rt(qe))return we.indexOf(qe);const dt=e.valueKey;let kt=-1;return we.some((Pn,Do)=>hn(Pn,dt)===hn(qe,dt)?(kt=Do,!0):!1),kt},Re=we=>Rt(we)?hn(we,e.valueKey):we,nt=()=>{et()},ct=()=>{p.selectionWidth=Number.parseFloat(window.getComputedStyle(C.value).width)},ea=()=>{p.collapseItemWidth=A.value.getBoundingClientRect().width},Lo=()=>{var we,qe;(qe=(we=y.value)==null?void 0:we.updatePopper)==null||qe.call(we)},ka=()=>{var we,qe;(qe=(we=S.value)==null?void 0:we.updatePopper)==null||qe.call(we)},ql=we=>{const qe=d(we);if(e.multiple){let dt=e.modelValue.slice();const kt=At(dt,qe);kt>-1?(dt=[...dt.slice(0,kt),...dt.slice(kt+1)],p.cachedOptions.splice(kt,1),ce(we)):(e.multipleLimit<=0||dt.length<e.multipleLimit)&&(dt=[...dt,qe],p.cachedOptions.push(we),Me(we)),On(dt),we.created&&je(""),e.filterable&&!e.reserveKeyword&&(p.inputValue="")}else p.selectedLabel=c(we),!ln(e.modelValue,qe)&&On(qe),V.value=!1,Me(we),we.created||pt();ja()},lu=(we,qe)=>{let dt=e.modelValue.slice();const kt=At(dt,d(qe));kt>-1&&!Y.value&&(dt=[...e.modelValue.slice(0,kt),...e.modelValue.slice(kt+1)],p.cachedOptions.splice(kt,1),On(dt),t("remove-tag",d(qe)),ce(qe)),we.stopPropagation(),ja()},ja=()=>{var we;(we=E.value)==null||we.focus()},Ad=()=>{var we;if(V.value){V.value=!1,ke(()=>{var qe;return(qe=E.value)==null?void 0:qe.blur()});return}(we=E.value)==null||we.blur()},Pd=()=>{p.inputValue.length>0?p.inputValue="":V.value=!1},Ld=we=>Fu(we,qe=>!p.cachedOptions.some(dt=>d(dt)===qe&&f(dt))),Dd=we=>{const qe=Ht(we);if(!!e.multiple&&qe!==pe.delete&&p.inputValue.length===0){we.preventDefault();const dt=e.modelValue.slice(),kt=Ld(dt);if(kt<0)return;const Pn=dt[kt];dt.splice(kt,1);const Do=p.cachedOptions[kt];p.cachedOptions.splice(kt,1),ce(Do),On(dt),t("remove-tag",Pn)}},Bd=()=>{let we;Ee(e.modelValue)?we=[]:we=m.value,p.selectedLabel="",V.value=!1,On(we),t("clear"),pt(),ja()},Xl=(we,qe=void 0)=>{const dt=U.value;if(!["forward","backward"].includes(we)||Y.value||dt.length<=0||Ae.value||I.value)return;if(!V.value)return Ut();$t(qe)&&(qe=p.hoveringIndex);let kt=-1;we==="forward"?(kt=qe+1,kt>=dt.length&&(kt=0)):we==="backward"&&(kt=qe-1,(kt<0||kt>=dt.length)&&(kt=dt.length-1));const Pn=dt[kt];if(f(Pn)||Pn.type==="Group")return Xl(we,kt);p.hoveringIndex=kt,Wn(kt)},be=()=>{if(V.value)~p.hoveringIndex&&U.value[p.hoveringIndex]&&ql(U.value[p.hoveringIndex]);else return Ut()},Ge=we=>{p.hoveringIndex=we!=null?we:-1},Et=()=>{if(!e.multiple)p.hoveringIndex=U.value.findIndex(we=>Re(d(we))===Re(e.modelValue));else{const we=e.modelValue.length;if(we>0){const qe=e.modelValue[we-1];p.hoveringIndex=U.value.findIndex(dt=>Re(qe)===Re(d(dt)))}else p.hoveringIndex=-1}},en=we=>{if(p.inputValue=we.target.value,e.remote)g.value=!0,_e();else return he()},vn=we=>{if(V.value=!1,T.value){const qe=new FocusEvent("blur",we);D(qe)}},Jn=()=>(p.isBeforeHide=!1,ke(()=>{~ht.value&&Wn(ht.value)})),Wn=we=>{N.value.scrollToItem(we)},Ea=(we,qe)=>{const dt=Re(we);if(Tt.value.has(dt)){const{option:kt}=Tt.value.get(dt);return kt}if(qe&&qe.length){const kt=qe.find(Pn=>Re(d(Pn))===dt);if(kt)return kt}return{[u.value.value]:we,[u.value.label]:we}},Ya=we=>{var qe,dt;return(dt=(qe=Tt.value.get(d(we)))==null?void 0:qe.index)!=null?dt:-1},_r=(we=!1)=>{if(e.multiple)if(e.modelValue.length>0){const qe=p.cachedOptions.slice();p.cachedOptions.length=0,p.previousValue=e.modelValue.toString();for(const dt of e.modelValue){const kt=Ea(dt,qe);p.cachedOptions.push(kt)}}else p.cachedOptions=[],p.previousValue=void 0;else if(ae.value){p.previousValue=e.modelValue;const qe=U.value,dt=qe.findIndex(kt=>Re(d(kt))===Re(e.modelValue));~dt?p.selectedLabel=c(qe[dt]):(!p.selectedLabel||we)&&(p.selectedLabel=Re(e.modelValue))}else p.selectedLabel="",p.previousValue=void 0;pt(),et()};ue(()=>e.fitInputWidth,()=>{et()}),ue(V,we=>{we?(e.persistent||et(),je("")):(p.inputValue="",p.previousQuery=null,p.isBeforeHide=!0,Oe(""))}),ue(()=>e.modelValue,(we,qe)=>{var dt;(!we||Ee(we)&&we.length===0||e.multiple&&!ln(we.toString(),p.previousValue)||!e.multiple&&Re(we)!==Re(p.previousValue))&&_r(!0),!ln(we,qe)&&e.validateEvent&&((dt=r==null?void 0:r.validate)==null||dt.call(r,"change").catch(Pn=>void 0))},{deep:!0}),ue(()=>e.options,()=>{const we=E.value;(!we||we&&document.activeElement!==we)&&_r()},{deep:!0,flush:"post"}),ue(()=>U.value,()=>(et(),N.value&&ke(N.value.resetScrollTop))),lo(()=>{p.isBeforeHide||tt()}),lo(()=>{const{valueKey:we,options:qe}=e,dt=new Map;for(const kt of qe){const Pn=d(kt);let Do=Pn;if(Rt(Do)&&(Do=hn(Pn,we)),dt.get(Do))break;dt.set(Do,!0)}}),st(()=>{_r()}),Qt(w,nt),Qt(C,ct),Qt(M,Lo),Qt(R,ka),Qt(A,ea);let ru;return ue(()=>ut.value,we=>{we?ru=Qt(N,Lo).stop:(ru==null||ru(),ru=void 0),t("visible-change",we)}),{inputId:i,collapseTagSize:Ze,currentPlaceholder:Yt,expanded:V,emptyText:Ie,popupHeight:q,debounce:se,allOptions:B,allOptionsValueMap:Tt,filteredOptions:U,iconComponent:oe,iconReverse:fe,tagStyle:Ce,collapseTagStyle:Ve,popperSize:b,dropdownMenuVisible:ut,hasModelValue:ae,shouldShowPlaceholder:Ke,selectDisabled:Y,selectSize:Pe,needStatusIcon:J,showClearBtn:ie,states:p,isFocused:T,nsSelect:o,nsInput:a,inputRef:E,menuRef:N,tagMenuRef:R,tooltipRef:y,tagTooltipRef:S,selectRef:w,wrapperRef:M,selectionRef:C,prefixRef:_,suffixRef:O,collapseItemRef:A,popperRef:Be,validateState:re,validateIcon:j,showTagList:bt,collapseTagList:ve,debouncedOnInputChange:_e,deleteTag:lu,getLabel:c,getValue:d,getDisabled:f,getValueKey:Re,getIndex:Ya,handleClear:Bd,handleClickOutside:vn,handleDel:Dd,handleEsc:Pd,focus:ja,blur:Ad,handleMenuEnter:Jn,handleResize:nt,resetSelectionWidth:ct,updateTooltip:Lo,updateTagTooltip:ka,updateOptions:tt,toggleMenu:Ut,scrollTo:Wn,onInput:en,onKeyboardNavigate:Xl,onKeyboardSelect:be,onSelect:ql,onHover:Ge,handleCompositionStart:L,handleCompositionEnd:H,handleCompositionUpdate:K}};var UZ=YZ;const GZ=le({name:"ElSelectV2",components:{ElSelectMenu:KZ,ElTag:Wa,ElTooltip:Vn,ElIcon:$e},directives:{ClickOutside:ml},props:PZ,emits:DZ,setup(e,{emit:t}){const n=k(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return Ee(u)?c?u:d:c?d:u}),o=UZ(Lt({...In(e),modelValue:n}),t),{calculatorRef:a,inputStyle:l}=oc(),r=Bn();St(hd,{props:Lt({...In(e),height:o.popupHeight,modelValue:n}),expanded:o.expanded,tooltipRef:o.tooltipRef,contentId:r,onSelect:o.onSelect,onHover:o.onHover,onKeyboardNavigate:o.onKeyboardNavigate,onKeyboardSelect:o.onKeyboardSelect});const i=k(()=>e.multiple?o.states.cachedOptions.map(u=>o.getLabel(u)):o.states.selectedLabel);return{...o,modelValue:n,selectedLabel:i,calculatorRef:a,inputStyle:l,contentId:r,BORDER_HORIZONTAL_WIDTH:Kd}}}),qZ=["id","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],XZ=["textContent"],ZZ={key:1};function JZ(e,t,n,o,a,l){const r=It("el-tag"),i=It("el-tooltip"),u=It("el-icon"),c=It("el-select-menu"),d=zd("click-outside");return ot(($(),F("div",{ref:"selectRef",class:x([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=f=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=f=>e.states.inputHovering=!1)},[X(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=f=>e.states.isBeforeHide=!1)},{default:Q(()=>{var f,v;return[W("div",{ref:"wrapperRef",class:x([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[11]||(t[11]=Ye((...m)=>e.toggleMenu&&e.toggleMenu(...m),["prevent"]))},[e.$slots.prefix?($(),F("div",{key:0,ref:"prefixRef",class:x(e.nsSelect.e("prefix"))},[ee(e.$slots,"prefix")],2)):te("v-if",!0),W("div",{ref:"selectionRef",class:x([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?ee(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[($(!0),F(Fe,null,yt(e.showTagList,m=>($(),F("div",{key:e.getValueKey(e.getValue(m)),class:x(e.nsSelect.e("selected-item"))},[X(r,{closable:!e.selectDisabled&&!e.getDisabled(m),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ne(e.tagStyle),onClose:h=>e.deleteTag(h,m)},{default:Q(()=>[W("span",{class:x(e.nsSelect.e("tags-text"))},[ee(e.$slots,"label",{index:e.getIndex(m),label:e.getLabel(m),value:e.getValue(m)},()=>[Ct(ge(e.getLabel(m)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?($(),ne(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,teleported:e.teleported},{default:Q(()=>[W("div",{ref:"collapseItemRef",class:x(e.nsSelect.e("selected-item"))},[X(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:Ne(e.collapseTagStyle),"disable-transitions":""},{default:Q(()=>[W("span",{class:x(e.nsSelect.e("tags-text"))}," + "+ge(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:Q(()=>[W("div",{ref:"tagMenuRef",class:x(e.nsSelect.e("selection"))},[($(!0),F(Fe,null,yt(e.collapseTagList,m=>($(),F("div",{key:e.getValueKey(e.getValue(m)),class:x(e.nsSelect.e("selected-item"))},[X(r,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(m),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:h=>e.deleteTag(h,m)},{default:Q(()=>[W("span",{class:x(e.nsSelect.e("tags-text"))},[ee(e.$slots,"label",{index:e.getIndex(m),label:e.getLabel(m),value:e.getValue(m)},()=>[Ct(ge(e.getLabel(m)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):te("v-if",!0)]):te("v-if",!0),W("div",{class:x([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled)])},[ot(W("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=m=>e.states.inputValue=m),style:Ne(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:x([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[1]||(t[1]=(...m)=>e.onInput&&e.onInput(...m)),onCompositionstart:t[2]||(t[2]=(...m)=>e.handleCompositionStart&&e.handleCompositionStart(...m)),onCompositionupdate:t[3]||(t[3]=(...m)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...m)),onCompositionend:t[4]||(t[4]=(...m)=>e.handleCompositionEnd&&e.handleCompositionEnd(...m)),onKeydown:[t[5]||(t[5]=cn(Ye(m=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=cn(Ye(m=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=cn(Ye((...m)=>e.onKeyboardSelect&&e.onKeyboardSelect(...m),["stop","prevent"]),["enter"])),t[8]||(t[8]=cn(Ye((...m)=>e.handleEsc&&e.handleEsc(...m),["stop","prevent"]),["esc"])),t[9]||(t[9]=cn(Ye((...m)=>e.handleDel&&e.handleDel(...m),["stop"]),["delete"]))],onClick:t[10]||(t[10]=Ye((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},null,46,qZ),[[du,e.states.inputValue]]),e.filterable?($(),F("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:x(e.nsSelect.e("input-calculator")),textContent:ge(e.states.inputValue)},null,10,XZ)):te("v-if",!0)],2),e.shouldShowPlaceholder?($(),F("div",{key:1,class:x([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?ee(e.$slots,"label",{key:0,index:(v=(f=e.allOptionsValueMap.get(e.modelValue))==null?void 0:f.index)!=null?v:-1,label:e.currentPlaceholder,value:e.modelValue},()=>[W("span",null,ge(e.currentPlaceholder),1)]):($(),F("span",ZZ,ge(e.currentPlaceholder),1))],2)):te("v-if",!0)],2),W("div",{ref:"suffixRef",class:x(e.nsSelect.e("suffix"))},[e.iconComponent?ot(($(),ne(u,{key:0,class:x([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Q(()=>[($(),ne(at(e.iconComponent)))]),_:1},8,["class"])),[[xt,!e.showClearBtn]]):te("v-if",!0),e.showClearBtn&&e.clearIcon?($(),ne(u,{key:1,class:x([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:Ye(e.handleClear,["prevent","stop"])},{default:Q(()=>[($(),ne(at(e.clearIcon)))]),_:1},8,["class","onClick"])):te("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?($(),ne(u,{key:2,class:x([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:Q(()=>[($(),ne(at(e.validateIcon)))]),_:1},8,["class"])):te("v-if",!0)],2)],2)]}),content:Q(()=>[X(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},vo({default:Q(f=>[ee(e.$slots,"default",Xa(wl(f)))]),_:2},[e.$slots.header?{name:"header",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=Ye(()=>{},["stop"]))},[ee(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","loading"))},[ee(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","empty"))},[ee(e.$slots,"empty",{},()=>[W("span",null,ge(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:Q(()=>[W("div",{class:x(e.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=Ye(()=>{},["stop"]))},[ee(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var QZ=ye(GZ,[["render",JZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);const D$=Qe(QZ),B$=me({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:G([Number,Object])}}),F$=me({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),eJ=le({name:"ElSkeletonItem",__name:"skeleton-item",props:F$,setup(e){const t=de("skeleton");return(n,o)=>($(),F("div",{class:x([s(t).e("item"),s(t).e(n.variant)])},[n.variant==="image"?($(),ne(s(EV),{key:0})):te("v-if",!0)],2))}});var md=ye(eJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const tJ=le({name:"ElSkeleton",__name:"skeleton",props:B$,setup(e,{expose:t}){const n=e,o=de("skeleton"),a=mw(Ft(n,"loading"),n.throttle);return t({uiLoading:a}),(l,r)=>s(a)?($(),F("div",rt({key:0,class:[s(o).b(),s(o).is("animated",l.animated)]},l.$attrs),[($(!0),F(Fe,null,yt(l.count,i=>($(),F(Fe,{key:i},[s(a)?ee(l.$slots,"template",{key:i},()=>[X(md,{class:x(s(o).is("first")),variant:"p"},null,8,["class"]),($(!0),F(Fe,null,yt(l.rows,u=>($(),ne(md,{key:u,class:x([s(o).e("paragraph"),s(o).is("last",u===l.rows&&l.rows>1)]),variant:"p"},null,8,["class"]))),128))]):te("v-if",!0)],64))),128))],16)):ee(l.$slots,"default",Xa(rt({key:1},l.$attrs)))}});var nJ=ye(tJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const V$=Qe(nJ,{SkeletonItem:md}),z$=sn(md),km=Symbol("sliderContextKey"),H$=me({modelValue:{type:G([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:En,inputSize:En,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:G(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:G(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:cl,default:"top"},marks:{type:G(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Yn(["ariaLabel"])}),Em=e=>xe(e)||Ee(e)&&e.every(xe),W$={[Ue]:Em,[yn]:Em,[ft]:Em},oJ=(e,t,n)=>{const o=P();return st(async()=>{e.range?(Ee(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!xe(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Mt(window,"resize",n),await ke(),n()}),{sliderWrapper:o}},aJ=e=>k(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,o)=>n-o).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),lJ=(e,t,n)=>{const{formItem:o}=An(),a=Zt(),l=P(),r=P(),i={firstButton:l,secondButton:r},u=nn(),c=k(()=>Math.min(t.firstValue,t.secondValue)),d=k(()=>Math.max(t.firstValue,t.secondValue)),f=k(()=>e.range?`${100*(d.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),v=k(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),m=k(()=>e.vertical?{height:e.height}:{}),h=k(()=>e.vertical?{height:f.value,bottom:v.value}:{width:f.value,left:v.value}),p=()=>{if(a.value){const A=a.value.getBoundingClientRect();t.sliderSize=A[e.vertical?"height":"width"]}},b=A=>{const I=e.min+A*(e.max-e.min)/100;if(!e.range)return l;let L;return Math.abs(c.value-I)<Math.abs(d.value-I)?L=t.firstValue<t.secondValue?"firstButton":"secondButton":L=t.firstValue>t.secondValue?"firstButton":"secondButton",i[L]},g=A=>{const I=b(A);return I.value.setPosition(A),I},w=A=>{t.firstValue=A!=null?A:e.min,y(e.range?[c.value,d.value]:A!=null?A:e.min)},C=A=>{t.secondValue=A,e.range&&y([c.value,d.value])},y=A=>{n(Ue,A),n(yn,A)},S=async()=>{await ke(),n(ft,e.range?[c.value,d.value]:e.modelValue)},E=A=>{var I,L,H,K,Y,M;if(u.value||t.dragging)return;p();let T=0;if(e.vertical){const D=(H=(L=(I=A.touches)==null?void 0:I.item(0))==null?void 0:L.clientY)!=null?H:A.clientY;T=(a.value.getBoundingClientRect().bottom-D)/t.sliderSize*100}else{const D=(M=(Y=(K=A.touches)==null?void 0:K.item(0))==null?void 0:Y.clientX)!=null?M:A.clientX,B=a.value.getBoundingClientRect().left;T=(D-B)/t.sliderSize*100}if(!(T<0||T>100))return g(T)};return{elFormItem:o,slider:a,firstButton:l,secondButton:r,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:m,barStyle:h,resetSize:p,setPosition:g,emitChange:S,onSliderWrapperPrevent:A=>{var I,L;(((I=i.firstButton.value)==null?void 0:I.dragging)||((L=i.secondButton.value)==null?void 0:L.dragging))&&A.preventDefault()},onSliderClick:A=>{E(A)&&S()},onSliderDown:async A=>{const I=E(A);I&&(await ke(),I.value.onButtonDown(A))},onSliderMarkerDown:A=>{if(u.value||t.dragging)return;g(A)&&S()},setFirstValue:w,setSecondValue:C}},rJ=(e,t,n)=>{const o=P(),a=P(!1),l=k(()=>t.value instanceof Function),r=k(()=>l.value&&t.value(e.modelValue)||e.modelValue),i=sa(()=>{n.value&&(a.value=!0)},50),u=sa(()=>{n.value&&(a.value=!1)},50);return{tooltip:o,tooltipVisible:a,formatValue:r,displayTooltip:i,hideTooltip:u}},sJ=(e,t,n)=>{const{disabled:o,min:a,max:l,step:r,showTooltip:i,persistent:u,precision:c,sliderSize:d,formatTooltip:f,emitChange:v,resetSize:m,updateDragging:h}=Te(km),{tooltip:p,tooltipVisible:b,formatValue:g,displayTooltip:w,hideTooltip:C}=rJ(e,f,i),y=P(),S=k(()=>`${(e.modelValue-a.value)/(l.value-a.value)*100}%`),E=k(()=>e.vertical?{bottom:S.value}:{left:S.value}),_=()=>{t.hovering=!0,w()},O=()=>{t.hovering=!1,t.dragging||C()},N=V=>{o.value||(V.preventDefault(),D(V),window.addEventListener("mousemove",B),window.addEventListener("touchmove",B),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),window.addEventListener("contextmenu",z),y.value.focus())},R=V=>{o.value||(t.newPosition=Number.parseFloat(S.value)+V/(l.value-a.value)*100,U(t.newPosition),v())},A=()=>{R(-r.value)},I=()=>{R(r.value)},L=()=>{R(-r.value*4)},H=()=>{R(r.value*4)},K=()=>{o.value||(U(0),v())},Y=()=>{o.value||(U(100),v())},M=V=>{const J=Ht(V);let q=!0;switch(J){case pe.left:case pe.down:A();break;case pe.right:case pe.up:I();break;case pe.home:K();break;case pe.end:Y();break;case pe.pageDown:L();break;case pe.pageUp:H();break;default:q=!1;break}q&&V.preventDefault()},T=V=>{let J,q;return V.type.startsWith("touch")?(q=V.touches[0].clientY,J=V.touches[0].clientX):(q=V.clientY,J=V.clientX),{clientX:J,clientY:q}},D=V=>{t.dragging=!0,t.isClick=!0;const{clientX:J,clientY:q}=T(V);e.vertical?t.startY=q:t.startX=J,t.startPosition=Number.parseFloat(S.value),t.newPosition=t.startPosition},B=V=>{if(t.dragging){t.isClick=!1,w(),m();let J;const{clientX:q,clientY:ae}=T(V);e.vertical?(t.currentY=ae,J=(t.startY-t.currentY)/d.value*100):(t.currentX=q,J=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+J,U(t.newPosition)}},z=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||C(),t.isClick||U(t.newPosition),v()},0),window.removeEventListener("mousemove",B),window.removeEventListener("touchmove",B),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),window.removeEventListener("contextmenu",z))},U=async V=>{if(V===null||Number.isNaN(+V))return;V=Xs(V,0,100);const J=Math.floor((l.value-a.value)/r.value),q=J*r.value/(l.value-a.value)*100,ae=q+(100-q)/2;let ie;if(V<q){const oe=q/J,fe=Math.round(V/oe);ie=a.value+fe*r.value}else V<ae?ie=a.value+J*r.value:ie=l.value;ie=Number.parseFloat(ie.toFixed(c.value)),ie!==e.modelValue&&n(Ue,ie),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await ke(),t.dragging&&w(),p.value.updatePopper()};return ue(()=>t.dragging,V=>{h(V)}),Mt(y,"touchstart",N,{passive:!1}),{disabled:o,button:y,tooltip:p,tooltipVisible:b,showTooltip:i,persistent:u,wrapperStyle:E,formatValue:g,handleMouseEnter:_,handleMouseLeave:O,onButtonDown:N,onKeyDown:M,setPosition:U}},iJ=(e,t,n,o)=>({stops:k(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const r=Math.ceil((e.max-e.min)/e.step),i=100*e.step/(e.max-e.min),u=Array.from({length:r-1}).map((c,d)=>(d+1)*i);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(o.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:r=>e.vertical?{bottom:`${r}%`}:{left:`${r}%`}}),uJ=(e,t,n,o,a,l)=>{const r=c=>{a(Ue,c),a(yn,c)},i=()=>e.range?![n.value,o.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,u=()=>{var c,d;e.min>e.max&&kn("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Ee(f)?f[1]<e.min?r([e.min,e.min]):f[0]>e.max?r([e.max,e.max]):f[0]<e.min?r([e.min,f[1]]):f[1]>e.max?r([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],i()&&(e.validateEvent&&((c=l==null?void 0:l.validate)==null||c.call(l,"change").catch(v=>void 0)),t.oldValue=f.slice())):!e.range&&xe(f)&&!Number.isNaN(f)&&(f<e.min?r(e.min):f>e.max?r(e.max):(t.firstValue=f,i()&&(e.validateEvent&&((d=l==null?void 0:l.validate)==null||d.call(l,"change").catch(v=>void 0)),t.oldValue=f)))};u(),ue(()=>t.dragging,c=>{c||u()}),ue(()=>e.modelValue,(c,d)=>{t.dragging||Ee(c)&&Ee(d)&&c.every((f,v)=>f===d[v])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),ue(()=>[e.min,e.max],()=>{u()})},cJ=me({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:cl,default:"top"}}),dJ={[Ue]:e=>xe(e)},fJ=["tabindex"],pJ=le({name:"ElSliderButton",__name:"button",props:cJ,emits:dJ,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("slider"),r=Lt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:o.modelValue}),i=k(()=>f.value?v.value:!1),{disabled:u,button:c,tooltip:d,showTooltip:f,persistent:v,tooltipVisible:m,wrapperStyle:h,formatValue:p,handleMouseEnter:b,handleMouseLeave:g,onButtonDown:w,onKeyDown:C,setPosition:y}=sJ(o,r,a),{hovering:S,dragging:E}=In(r);return t({onButtonDown:w,onKeyDown:C,setPosition:y,hovering:S,dragging:E}),(_,O)=>($(),F("div",{ref_key:"button",ref:c,class:x([s(l).e("button-wrapper"),{hover:s(S),dragging:s(E)}]),style:Ne(s(h)),tabindex:s(u)?void 0:0,onMouseenter:O[0]||(O[0]=(...N)=>s(b)&&s(b)(...N)),onMouseleave:O[1]||(O[1]=(...N)=>s(g)&&s(g)(...N)),onMousedown:O[2]||(O[2]=(...N)=>s(w)&&s(w)(...N)),onFocus:O[3]||(O[3]=(...N)=>s(b)&&s(b)(...N)),onBlur:O[4]||(O[4]=(...N)=>s(g)&&s(g)(...N)),onKeydown:O[5]||(O[5]=(...N)=>s(C)&&s(C)(...N))},[X(s(Vn),{ref_key:"tooltip",ref:d,visible:s(m),placement:_.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":_.tooltipClass,disabled:!s(f),persistent:i.value},{content:Q(()=>[W("span",null,ge(s(p)),1)]),default:Q(()=>[W("div",{class:x([s(l).e("button"),{hover:s(S),dragging:s(E)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,fJ))}});var K$=ye(pJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const vJ=me({mark:{type:G([String,Object]),default:void 0}});var hJ=le({name:"ElSliderMarker",props:vJ,setup(e){const t=de("slider"),n=k(()=>ze(e.mark)?e.mark:e.mark.label),o=k(()=>ze(e.mark)?void 0:e.mark.style);return()=>De("div",{class:t.e("marks-text"),style:o.value},n.value)}});const mJ=["id","role","aria-label","aria-labelledby"],gJ={key:1},bJ=le({name:"ElSlider",__name:"slider",props:H$,emits:W$,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("slider"),{t:r}=wt(),i=Lt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:u,slider:c,firstButton:d,secondButton:f,sliderDisabled:v,minValue:m,maxValue:h,runwayStyle:p,barStyle:b,resetSize:g,emitChange:w,onSliderWrapperPrevent:C,onSliderClick:y,onSliderDown:S,onSliderMarkerDown:E,setFirstValue:_,setSecondValue:O}=lJ(o,i,a),{stops:N,getStopStyle:R}=iJ(o,i,m,h),{inputId:A,isLabeledByFormItem:I}=So(o,{formItemContext:u}),L=bn(),H=k(()=>o.inputSize||L.value),K=k(()=>o.ariaLabel||r("el.slider.defaultLabel",{min:o.min,max:o.max})),Y=k(()=>o.range?o.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):K.value),M=k(()=>o.formatValueText?o.formatValueText(J.value):`${J.value}`),T=k(()=>o.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),D=k(()=>o.formatValueText?o.formatValueText(q.value):`${q.value}`),B=k(()=>[l.b(),l.m(L.value),l.is("vertical",o.vertical),{[l.m("with-input")]:o.showInput}]),z=aJ(o);uJ(o,i,m,h,a,u);const U=k(()=>{const oe=[o.min,o.max,o.step].map(fe=>{const re=`${fe}`.split(".")[1];return re?re.length:0});return Math.max.apply(null,oe)}),{sliderWrapper:V}=oJ(o,i,g),{firstValue:J,secondValue:q,sliderSize:ae}=In(i),ie=oe=>{i.dragging=oe};return Mt(V,"touchstart",C,{passive:!1}),Mt(V,"touchmove",C,{passive:!1}),St(km,{...In(o),sliderSize:ae,disabled:v,precision:U,emitChange:w,resetSize:g,updateDragging:ie}),t({onSliderClick:y}),(oe,fe)=>{var re,j;return $(),F("div",{id:oe.range?s(A):void 0,ref_key:"sliderWrapper",ref:V,class:x(B.value),role:oe.range?"group":void 0,"aria-label":oe.range&&!s(I)?K.value:void 0,"aria-labelledby":oe.range&&s(I)?(re=s(u))==null?void 0:re.labelId:void 0},[W("div",{ref_key:"slider",ref:c,class:x([s(l).e("runway"),{"show-input":oe.showInput&&!oe.range},s(l).is("disabled",s(v))]),style:Ne(s(p)),onMousedown:fe[0]||(fe[0]=(...se)=>s(S)&&s(S)(...se)),onTouchstartPassive:fe[1]||(fe[1]=(...se)=>s(S)&&s(S)(...se))},[W("div",{class:x(s(l).e("bar")),style:Ne(s(b))},null,6),X(K$,{id:oe.range?void 0:s(A),ref_key:"firstButton",ref:d,"model-value":s(J),vertical:oe.vertical,"tooltip-class":oe.tooltipClass,placement:oe.placement,role:"slider","aria-label":oe.range||!s(I)?Y.value:void 0,"aria-labelledby":!oe.range&&s(I)?(j=s(u))==null?void 0:j.labelId:void 0,"aria-valuemin":oe.min,"aria-valuemax":oe.range?s(q):oe.max,"aria-valuenow":s(J),"aria-valuetext":M.value,"aria-orientation":oe.vertical?"vertical":"horizontal","aria-disabled":s(v),"onUpdate:modelValue":s(_)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),oe.range?($(),ne(K$,{key:0,ref_key:"secondButton",ref:f,"model-value":s(q),vertical:oe.vertical,"tooltip-class":oe.tooltipClass,placement:oe.placement,role:"slider","aria-label":T.value,"aria-valuemin":s(J),"aria-valuemax":oe.max,"aria-valuenow":s(q),"aria-valuetext":D.value,"aria-orientation":oe.vertical?"vertical":"horizontal","aria-disabled":s(v),"onUpdate:modelValue":s(O)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):te("v-if",!0),oe.showStops?($(),F("div",gJ,[($(!0),F(Fe,null,yt(s(N),(se,Se)=>($(),F("div",{key:Se,class:x(s(l).e("stop")),style:Ne(s(R)(se))},null,6))),128))])):te("v-if",!0),s(z).length>0?($(),F(Fe,{key:2},[W("div",null,[($(!0),F(Fe,null,yt(s(z),(se,Se)=>($(),F("div",{key:Se,style:Ne(s(R)(se.position)),class:x([s(l).e("stop"),s(l).e("marks-stop")])},null,6))),128))]),W("div",{class:x(s(l).e("marks"))},[($(!0),F(Fe,null,yt(s(z),(se,Se)=>($(),ne(s(hJ),{key:Se,mark:se.mark,style:Ne(s(R)(se.position)),onMousedown:Ye(Ie=>s(E)(se.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):te("v-if",!0)],38),oe.showInput&&!oe.range?($(),ne(s(Qh),{key:0,ref:"input","model-value":s(J),class:x(s(l).e("input")),step:oe.step,disabled:s(v),controls:oe.showInputControls,min:oe.min,max:oe.max,precision:U.value,size:H.value,"onUpdate:modelValue":s(_),onChange:s(w)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):te("v-if",!0)],10,mJ)}}});var yJ=ye(bJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const j$=Qe(yJ),Y$=me({prefixCls:{type:String}}),U$=le({name:"ElSpaceItem",props:Y$,setup(e,{slots:t}){const n=de("space"),o=k(()=>`${e.prefixCls||n.b()}__item`);return()=>De("div",{class:o.value},ee(t,"default"))}}),G$={small:8,default:12,large:16};function q$(e){const t=de("space"),n=k(()=>[t.b(),t.m(e.direction),e.class]),o=P(0),a=P(0),l=k(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap"}:{},u={alignItems:e.alignment},c={rowGap:`${a.value}px`,columnGap:`${o.value}px`};return[i,u,c,e.style]}),r=k(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return lo(()=>{const{size:i="small",wrap:u,direction:c,fill:d}=e;if(Ee(i)){const[f=0,v=0]=i;o.value=f,a.value=v}else{let f;xe(i)?f=i:f=G$[i||"small"]||G$.small,(u||d)&&c==="horizontal"?o.value=a.value=f:c==="horizontal"?(o.value=f,a.value=0):(a.value=f,o.value=0)}}),{classes:n,containerStyle:l,itemStyle:r}}const X$=me({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:G([String,Object,Array]),default:""},style:{type:G([String,Array,Object]),default:""},alignment:{type:G(String),default:"center"},prefixCls:{type:String},spacer:{type:G([Object,String,Number,Array]),default:null,validator:e=>Jt(e)||xe(e)||ze(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:ta,validator:e=>xe(e)||Ee(e)&&e.length===2&&e.every(xe)}}),wJ=le({name:"ElSpace",props:X$,setup(e,{slots:t}){const{classes:n,containerStyle:o,itemStyle:a}=q$(e);function l(r,i="",u=[]){const{prefixCls:c}=e;return r.forEach((d,f)=>{Tp(d)?Ee(d.children)&&d.children.forEach((v,m)=>{Tp(v)&&Ee(v.children)?l(v.children,`${i+m}-`,u):Jt(v)&&(v==null?void 0:v.type)===Ua?u.push(v):u.push(X(U$,{style:a.value,prefixCls:c,key:`nested-${i+m}`},{default:()=>[v]},Yo.PROPS|Yo.STYLE,["style","prefixCls"]))}):QV(d)&&u.push(X(U$,{style:a.value,prefixCls:c,key:`LoopKey${i+f}`},{default:()=>[d]},Yo.PROPS|Yo.STYLE,["style","prefixCls"]))}),u}return()=>{var r;const{spacer:i,direction:u}=e,c=ee(t,"default",{key:0},()=>[]);if(((r=c.children)!=null?r:[]).length===0)return null;if(Ee(c.children)){let d=l(c.children);if(i){const f=d.length-1;d=d.reduce((v,m,h)=>{const p=[...v,m];return h!==f&&p.push(X("span",{style:[a.value,u==="vertical"?"width: 100%":null],key:h},[Jt(i)?i:Ct(i,Yo.TEXT)],Yo.STYLE)),p},[])}return X("div",{class:n.value,style:o.value},d,Yo.STYLE|Yo.CLASS)}return c.children}}}),Z$=Qe(wJ),J$=me({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:G([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:G([String,Object,Array])}}),CJ=le({name:"ElStatistic",__name:"statistic",props:J$,setup(e,{expose:t}){const n=e,o=de("statistic"),a=k(()=>{const{value:l,formatter:r,precision:i,decimalSeparator:u,groupSeparator:c}=n;if(lt(r))return r(l);if(!xe(l)||Number.isNaN(l))return l;let[d,f=""]=String(l).split(".");return f=f.padEnd(i,"0").slice(0,i>0?i:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,f].join(f?u:"")});return t({displayValue:a}),(l,r)=>($(),F("div",{class:x(s(o).b())},[l.$slots.title||l.title?($(),F("div",{key:0,class:x(s(o).e("head"))},[ee(l.$slots,"title",{},()=>[Ct(ge(l.title),1)])],2)):te("v-if",!0),W("div",{class:x(s(o).e("content"))},[l.$slots.prefix||l.prefix?($(),F("div",{key:0,class:x(s(o).e("prefix"))},[ee(l.$slots,"prefix",{},()=>[W("span",null,ge(l.prefix),1)])],2)):te("v-if",!0),W("span",{class:x(s(o).e("number")),style:Ne(l.valueStyle)},ge(a.value),7),l.$slots.suffix||l.suffix?($(),F("div",{key:1,class:x(s(o).e("suffix"))},[ee(l.$slots,"suffix",{},()=>[W("span",null,ge(l.suffix),1)])],2)):te("v-if",!0)],2)],2))}});var SJ=ye(CJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const $m=Qe(SJ),Q$=me({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:G([Number,Object]),default:0},valueStyle:{type:G([String,Object,Array])}}),e_={finish:()=>!0,[ft]:e=>xe(e)},kJ=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],t_=e=>xe(e)?new Date(e).getTime():e.valueOf(),n_=(e,t)=>{let n=e;const o=/\[([^\]]*)]/g;return kJ.reduce((l,[r,i])=>{const u=new RegExp(`${r}+(?![^\\[\\]]*\\])`,"g");if(u.test(l)){const c=Math.floor(n/i);return n-=c*i,l.replace(u,d=>String(c).padStart(d.length,"0"))}return l},t).replace(o,"$1")},EJ=le({name:"ElCountdown",__name:"countdown",props:Q$,emits:e_,setup(e,{expose:t,emit:n}){const o=e,a=n;let l;const r=P(0),i=k(()=>n_(r.value,o.format)),u=f=>n_(f,o.format),c=()=>{l&&(rl(l),l=void 0)},d=()=>{const f=t_(o.value),v=()=>{let m=f-Date.now();a(ft,m),m<=0?(m=0,c(),a("finish")):l=Ma(v),r.value=m};l=Ma(v)};return st(()=>{r.value=t_(o.value)-Date.now(),ue(()=>[o.value,o.format],()=>{c(),d()},{immediate:!0})}),Dt(()=>{c()}),t({displayValue:i}),(f,v)=>($(),ne(s($m),{value:r.value,title:f.title,prefix:f.prefix,suffix:f.suffix,"value-style":f.valueStyle,formatter:u},vo({_:2},[yt(f.$slots,(m,h)=>({name:h,fn:Q(()=>[ee(f.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var $J=ye(EJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const o_=Qe($J),a_=me({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),l_={[ft]:(e,t)=>[e,t].every(xe)},_m="ElSteps",_J=le({name:"ElSteps",__name:"steps",props:a_,emits:l_,setup(e,{emit:t}){const n=e,o=t,a=de("steps"),{children:l,addChild:r,removeChild:i,ChildrenSorter:u}=Ci(it(),"ElStep");return ue(l,()=>{l.value.forEach((c,d)=>{c.setIndex(d)})}),St(_m,{props:n,steps:l,addStep:r,removeStep:i}),ue(()=>n.active,(c,d)=>{o(ft,c,d)}),(c,d)=>($(),F("div",{class:x([s(a).b(),s(a).m(c.simple?"simple":c.direction)])},[ee(c.$slots,"default"),X(s(u))],2))}});var TJ=ye(_J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const r_=me({title:{type:String,default:""},icon:{type:zt},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),OJ=le({name:"ElStep",__name:"item",props:r_,setup(e){const t=e,n=de("step"),o=P(-1),a=P({}),l=P(""),r=Te(_m),i=it();let u=0,c=0;st(()=>{ue([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([O],[N])=>{c=N||0,u=O-c,E(O)},{immediate:!0})});const d=k(()=>t.status||l.value),f=k(()=>{const O=r.steps.value[o.value-1];return O?O.internalStatus.value:"wait"}),v=k(()=>r.props.alignCenter),m=k(()=>r.props.direction==="vertical"),h=k(()=>r.props.simple),p=k(()=>r.steps.value.length),b=k(()=>{var O;return((O=r.steps.value[p.value-1])==null?void 0:O.uid)===i.uid}),g=k(()=>h.value?"":r.props.space),w=k(()=>[n.b(),n.is(h.value?"simple":r.props.direction),n.is("flex",b.value&&!g.value&&!v.value),n.is("center",v.value&&!m.value&&!h.value)]),C=k(()=>{const O={flexBasis:xe(g.value)?`${g.value}px`:g.value?g.value:`${100/(p.value-(v.value?0:1))}%`};return m.value||b.value&&(O.maxWidth=`${100/p.value}%`),O}),y=O=>{o.value=O},S=O=>{const N=O==="wait",A={transitionDelay:`${Math.abs(u)===1?0:u>0?(o.value+1-c)*150:-(o.value+1-r.props.active)*150}ms`},I=O===r.props.processStatus||N?0:100;A.borderWidth=I&&!h.value?"1px":0,A[r.props.direction==="vertical"?"height":"width"]=`${I}%`,a.value=A},E=O=>{O>o.value?l.value=r.props.finishStatus:O===o.value&&f.value!=="error"?l.value=r.props.processStatus:l.value="wait";const N=r.steps.value[o.value-1];N&&N.calcProgress(l.value)},_={uid:i.uid,getVnode:()=>i.vnode,currentStatus:d,internalStatus:l,setIndex:y,calcProgress:S};return r.addStep(_),Dt(()=>{r.removeStep(_)}),(O,N)=>($(),F("div",{style:Ne(C.value),class:x(w.value)},[te(" icon & line "),W("div",{class:x([s(n).e("head"),s(n).is(d.value)])},[h.value?te("v-if",!0):($(),F("div",{key:0,class:x(s(n).e("line"))},[W("i",{class:x(s(n).e("line-inner")),style:Ne(a.value)},null,6)],2)),W("div",{class:x([s(n).e("icon"),s(n).is(O.icon||O.$slots.icon?"icon":"text")])},[ee(O.$slots,"icon",{},()=>[O.icon?($(),ne(s($e),{key:0,class:x(s(n).e("icon-inner"))},{default:Q(()=>[($(),ne(at(O.icon)))]),_:1},8,["class"])):d.value==="success"?($(),ne(s($e),{key:1,class:x([s(n).e("icon-inner"),s(n).is("status")])},{default:Q(()=>[X(s(si))]),_:1},8,["class"])):d.value==="error"?($(),ne(s($e),{key:2,class:x([s(n).e("icon-inner"),s(n).is("status")])},{default:Q(()=>[X(s(jo))]),_:1},8,["class"])):h.value?te("v-if",!0):($(),F("div",{key:3,class:x(s(n).e("icon-inner"))},ge(o.value+1),3))])],2)],2),te(" title & description "),W("div",{class:x(s(n).e("main"))},[W("div",{class:x([s(n).e("title"),s(n).is(d.value)])},[ee(O.$slots,"title",{},()=>[Ct(ge(O.title),1)])],2),h.value?($(),F("div",{key:0,class:x(s(n).e("arrow"))},null,2)):($(),F("div",{key:1,class:x([s(n).e("description"),s(n).is(d.value)])},[ee(O.$slots,"description",{},()=>[Ct(ge(O.description),1)])],2))],2)],6))}});var s_=ye(OJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const i_=Qe(TJ,{Step:s_}),u_=sn(s_),c_=me({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:K1},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:zt},activeActionIcon:{type:zt},activeIcon:{type:zt},inactiveIcon:{type:zt},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:G(Function)},id:String,tabindex:{type:[String,Number]},...Yn(["ariaLabel"])}),d_={[Ue]:e=>Vt(e)||ze(e)||xe(e),[ft]:e=>Vt(e)||ze(e)||xe(e),[yn]:e=>Vt(e)||ze(e)||xe(e)},RJ=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],xJ=["aria-hidden"],IJ={key:1},MJ={key:1},NJ=["aria-hidden"],f_="ElSwitch",AJ=le({name:f_,__name:"switch",props:c_,emits:d_,setup(e,{expose:t,emit:n}){const o=e,a=n,{formItem:l}=An(),r=bn(),i=de("switch"),{inputId:u}=So(o,{formItemContext:l}),c=nn(k(()=>{if(o.loading)return!0})),d=P(o.modelValue!==!1),f=Zt(),v=k(()=>[i.b(),i.m(r.value),i.is("disabled",c.value),i.is("checked",g.value)]),m=k(()=>[i.e("label"),i.em("label","left"),i.is("active",!g.value)]),h=k(()=>[i.e("label"),i.em("label","right"),i.is("active",g.value)]),p=k(()=>({width:rn(o.width)}));ue(()=>o.modelValue,()=>{d.value=!0});const b=k(()=>d.value?o.modelValue:!1),g=k(()=>b.value===o.activeValue);[o.activeValue,o.inactiveValue].includes(b.value)||(a(Ue,o.inactiveValue),a(ft,o.inactiveValue),a(yn,o.inactiveValue)),ue(g,S=>{var E;f.value.checked=S,o.validateEvent&&((E=l==null?void 0:l.validate)==null||E.call(l,"change").catch(_=>void 0))});const w=()=>{const S=g.value?o.inactiveValue:o.activeValue;a(Ue,S),a(ft,S),a(yn,S),ke(()=>{f.value.checked=g.value})},C=()=>{if(c.value)return;const{beforeChange:S}=o;if(!S){w();return}const E=S();[Bs(E),Vt(E)].includes(!0)||kn(f_,"beforeChange must return type `Promise<boolean>` or `boolean`"),Bs(E)?E.then(O=>{O&&w()}).catch(O=>{}):E&&w()},y=()=>{var S,E;(E=(S=f.value)==null?void 0:S.focus)==null||E.call(S)};return st(()=>{f.value.checked=g.value}),t({focus:y,checked:g}),(S,E)=>($(),F("div",{class:x(v.value),onClick:Ye(C,["prevent"])},[W("input",{id:s(u),ref_key:"input",ref:f,class:x(s(i).e("input")),type:"checkbox",role:"switch","aria-checked":g.value,"aria-disabled":s(c),"aria-label":S.ariaLabel,name:S.name,"true-value":S.activeValue,"false-value":S.inactiveValue,disabled:s(c),tabindex:S.tabindex,onChange:w,onKeydown:cn(C,["enter"])},null,42,RJ),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText||S.$slots.inactive)?($(),F("span",{key:0,class:x(m.value)},[ee(S.$slots,"inactive",{},()=>[S.inactiveIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.inactiveIcon)))]),_:1})):te("v-if",!0),!S.inactiveIcon&&S.inactiveText?($(),F("span",{key:1,"aria-hidden":g.value},ge(S.inactiveText),9,xJ)):te("v-if",!0)])],2)):te("v-if",!0),W("span",{class:x(s(i).e("core")),style:Ne(p.value)},[S.inlinePrompt?($(),F("div",{key:0,class:x(s(i).e("inner"))},[g.value?($(),F("div",{key:1,class:x(s(i).e("inner-wrapper"))},[ee(S.$slots,"active",{},()=>[S.activeIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.activeIcon)))]),_:1})):te("v-if",!0),!S.activeIcon&&S.activeText?($(),F("span",MJ,ge(S.activeText),1)):te("v-if",!0)])],2)):($(),F("div",{key:0,class:x(s(i).e("inner-wrapper"))},[ee(S.$slots,"inactive",{},()=>[S.inactiveIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.inactiveIcon)))]),_:1})):te("v-if",!0),!S.inactiveIcon&&S.inactiveText?($(),F("span",IJ,ge(S.inactiveText),1)):te("v-if",!0)])],2))],2)):te("v-if",!0),W("div",{class:x(s(i).e("action"))},[S.loading?($(),ne(s($e),{key:0,class:x(s(i).is("loading"))},{default:Q(()=>[X(s(Pa))]),_:1},8,["class"])):g.value?ee(S.$slots,"active-action",{key:1},()=>[S.activeActionIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.activeActionIcon)))]),_:1})):te("v-if",!0)]):g.value?te("v-if",!0):ee(S.$slots,"inactive-action",{key:2},()=>[S.inactiveActionIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.inactiveActionIcon)))]),_:1})):te("v-if",!0)])],2)],6),!S.inlinePrompt&&(S.activeIcon||S.activeText||S.$slots.active)?($(),F("span",{key:1,class:x(h.value)},[ee(S.$slots,"active",{},()=>[S.activeIcon?($(),ne(s($e),{key:0},{default:Q(()=>[($(),ne(at(S.activeIcon)))]),_:1})):te("v-if",!0),!S.activeIcon&&S.activeText?($(),F("span",{key:1,"aria-hidden":!g.value},ge(S.activeText),9,NJ)):te("v-if",!0)])],2)):te("v-if",!0)],2))}});var PJ=ye(AJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const p_=Qe(PJ),Tm=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},LJ=function(e,t,n,o,a){if(!t&&!o&&(!a||Ee(a)&&!a.length))return e;ze(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const l=o?null:function(i,u){return a?Uf(Nn(a),c=>ze(c)?hn(i,c):c(i,u,e)):(t!=="$key"&&Rt(i)&&"$value"in i&&(i=i.$value),[Rt(i)?t?hn(i,t):null:i])},r=function(i,u){var c,d,f,v,m,h;if(o)return o(i.value,u.value);for(let p=0,b=(d=(c=i.key)==null?void 0:c.length)!=null?d:0;p<b;p++){if(((f=i.key)==null?void 0:f[p])<((v=u.key)==null?void 0:v[p]))return-1;if(((m=i.key)==null?void 0:m[p])>((h=u.key)==null?void 0:h[p]))return 1}return 0};return e.map((i,u)=>({value:i,index:u,key:l?l(i,u):null})).sort((i,u)=>{let c=r(i,u);return c||(c=i.index-u.index),c*+n}).map(i=>i.value)},v_=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},DJ=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const a=e.columns[o];if(a.columnKey===t){n=a;break}}return n||kn("ElTable",`No column matching with column-key: ${t}`),n},h_=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?v_(e,o[0]):null},Xn=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(ze(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const a of n)o=o[a];return`${o}`}else if(lt(t))return t.call(null,e);return""},Ss=function(e,t,n=!1,o="children"){const a=e||[],l={};return a.forEach((r,i)=>{if(l[Xn(r,t)]={row:r,index:i},n){const u=r[o];Ee(u)&&Object.assign(l,Ss(u,t,!0,o))}}),l};function BJ(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(Ln(t,o)){const a=t[o];$t(a)||(n[o]=a)}return n}function Om(e){return e===""||$t(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function m_(e){return e===""||$t(e)||(e=Om(e),Number.isNaN(e)&&(e=80)),e}function FJ(e){return xe(e)?e:ze(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function VJ(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function gd(e,t,n,o,a,l,r){let i=l!=null?l:0,u=!1;const d=(()=>{if(!r)return e.indexOf(t);const p=Xn(t,r);return e.findIndex(b=>Xn(b,r)===p)})(),f=d!==-1,v=a==null?void 0:a.call(null,t,i),m=p=>{p==="add"?e.push(t):e.splice(d,1),u=!0},h=p=>{let b=0;const g=(o==null?void 0:o.children)&&p[o.children];return g&&Ee(g)&&(b+=g.length,g.forEach(w=>{b+=h(w)})),b};return(!a||v)&&(Vt(n)?n&&!f?m("add"):!n&&f&&m("remove"):m(f?"remove":"add")),!(o!=null&&o.checkStrictly)&&(o==null?void 0:o.children)&&Ee(t[o.children])&&t[o.children].forEach(p=>{const b=gd(e,p,n!=null?n:!f,o,a,i+1,r);i+=h(p)+1,b&&(u=b)}),u}function zJ(e,t,n="children",o="hasChildren",a=!1){const l=i=>!(Ee(i)&&i.length);function r(i,u,c){t(i,u,c),u.forEach(d=>{if(d[o]&&a){t(d,null,c+1);return}const f=d[n];l(f)||r(d,f,c+1)})}e.forEach(i=>{if(i[o]&&a){t(i,null,0);return}const u=i[n];l(u)||r(i,u,0)})}const HJ=(e,t,n,o)=>{const a={strategy:"fixed",...e.popperOptions},l=lt(o==null?void 0:o.tooltipFormatter)?o.tooltipFormatter({row:n,column:o,cellValue:ri(n,o.property).value}):void 0;return Jt(l)?{slotContent:l,content:null,...e,popperOptions:a}:{slotContent:null,content:l!=null?l:t,...e,popperOptions:a}};let ao=null;function WJ(e,t,n,o,a,l){var r;const i=HJ(e,t,n,o),u={...i,slotContent:void 0};if((ao==null?void 0:ao.trigger)===a){const h=(r=ao.vm)==null?void 0:r.component;tp(h==null?void 0:h.props,u),h&&i.slotContent&&(h.slots.content=()=>[i.slotContent]);return}ao==null||ao();const c=l==null?void 0:l.refs.tableWrapper,d=c==null?void 0:c.dataset.prefix,f=X(Vn,{virtualTriggering:!0,virtualRef:a,appendTo:c,placement:"top",transition:"none",offset:0,hideAfter:0,...u},i.slotContent?{content:()=>i.slotContent}:void 0);f.appContext={...l.appContext,...l};const v=document.createElement("div");Sl(f,v),f.component.exposed.onOpen();const m=c==null?void 0:c.querySelector(`.${d}-scrollbar__wrap`);ao=()=>{var h,p;(p=(h=f.component)==null?void 0:h.exposed)!=null&&p.onClose&&f.component.exposed.onClose(),Sl(null,v);const b=ao;m==null||m.removeEventListener("scroll",b),b.trigger=void 0,b.vm=void 0,ao=null},ao.trigger=a!=null?a:void 0,ao.vm=f,m==null||m.addEventListener("scroll",ao)}function g_(e){return e.children?Uf(e.children,g_):[e]}function b_(e,t){return e+t.colSpan}const y_=(e,t,n,o)=>{let a=0,l=e;const r=n.states.columns.value;if(o){const u=g_(o[e]);a=r.slice(0,r.indexOf(u[0])).reduce(b_,0),l=a+u.reduce(b_,0)-1}else a=e;let i;switch(t){case"left":l<n.states.fixedLeafColumnsLength.value&&(i="left");break;case"right":a>=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:l<n.states.fixedLeafColumnsLength.value?i="left":a>=r.length-n.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:a,after:l}:{}},Rm=(e,t,n,o,a,l=0)=>{const r=[],{direction:i,start:u,after:c}=y_(t,n,o,a);if(i){const d=i==="left";r.push(`${e}-fixed-column--${i}`),d&&c+l===o.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!d&&u-l===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function w_(e,t){return e+(zr(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const xm=(e,t,n,o)=>{const{direction:a,start:l=0,after:r=0}=y_(e,t,n,o);if(!a)return;const i={},u=a==="left",c=n.states.columns.value;return u?i.left=c.slice(0,l).reduce(w_,0):i.right=c.slice(r+1).reverse().reduce(w_,0),i},ks=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function C_(e){return e.some(t=>Jt(t)?!(t.type===Ua||t.type===Fe&&!C_(t.children)):!0)?e:null}function KJ(e){const t=it(),n=P(!1),o=P([]);return{updateExpandRows:()=>{const u=e.data.value||[],c=e.rowKey.value;if(n.value)o.value=u.slice();else if(c){const d=Ss(o.value,c);o.value=u.reduce((f,v)=>{const m=Xn(v,c);return d[m]&&f.push(v),f},[])}else o.value=[]},toggleRowExpansion:(u,c)=>{gd(o.value,u,c,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",u,o.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const c=e.data.value||[],d=e.rowKey.value,f=Ss(c,d);o.value=u.reduce((v,m)=>{const h=f[m];return h&&v.push(h.row),v},[])},isRowExpanded:u=>{const c=e.rowKey.value;return c?!!Ss(o.value,c)[Xn(u,c)]:o.value.includes(u)},states:{expandRows:o,defaultExpandAll:n}}}function jJ(e){const t=it(),n=P(null),o=P(null),a=c=>{t.store.assertRowKey(),n.value=c,r(c)},l=()=>{n.value=null},r=c=>{var d;const{data:f,rowKey:v}=e;let m=null;v.value&&(m=(d=(s(f)||[]).find(h=>Xn(h,v.value)===c))!=null?d:null),o.value=m!=null?m:null,t.emit("current-change",o.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:l,setCurrentRowByKey:r,updateCurrentRow:c=>{const d=o.value;if(c&&c!==d){o.value=c,t.emit("current-change",o.value,d);return}!c&&d&&(o.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],f=o.value;if(f&&!d.includes(f)){if(c){const v=Xn(f,c);r(v)}else o.value=null;zr(o.value)&&t.emit("current-change",null,f)}else n.value&&(r(n.value),l())},states:{_currentRowKey:n,currentRow:o}}}function YJ(e){const t=P([]),n=P({}),o=P(16),a=P(!1),l=P({}),r=P("hasChildren"),i=P("children"),u=P(!1),c=it(),d=k(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return v(y)}),f=k(()=>{const y=e.rowKey.value,S=Object.keys(l.value),E={};return S.length&&S.forEach(_=>{if(l.value[_].length){const O={children:[]};l.value[_].forEach(N=>{const R=Xn(N,y);O.children.push(R),N[r.value]&&!E[R]&&(E[R]={children:[]})}),E[_]=O}}),E}),v=y=>{const S=e.rowKey.value,E={};return zJ(y,(_,O,N)=>{const R=Xn(_,S);Ee(O)?E[R]={children:O.map(A=>Xn(A,S)),level:N}:a.value&&(E[R]={children:[],lazy:!0,level:N})},i.value,r.value,a.value),E},m=(y=!1,S)=>{var E,_;S||(S=(E=c.store)==null?void 0:E.states.defaultExpandAll.value);const O=d.value,N=f.value,R=Object.keys(O),A={};if(R.length){const I=s(n),L=[],H=(Y,M)=>{if(y)return t.value?S||t.value.includes(M):!!(S||(Y==null?void 0:Y.expanded));{const T=S||t.value&&t.value.includes(M);return!!((Y==null?void 0:Y.expanded)||T)}};R.forEach(Y=>{const M=I[Y],T={...O[Y]};if(T.expanded=H(M,Y),T.lazy){const{loaded:D=!1,loading:B=!1}=M||{};T.loaded=!!D,T.loading=!!B,L.push(Y)}A[Y]=T});const K=Object.keys(N);a.value&&K.length&&L.length&&K.forEach(Y=>{var M;const T=I[Y],D=N[Y].children;if(L.includes(Y)){if(((M=A[Y].children)==null?void 0:M.length)!==0)throw new Error("[ElTable]children must be an empty array.");A[Y].children=D}else{const{loaded:B=!1,loading:z=!1}=T||{};A[Y]={lazy:!0,loaded:!!B,loading:!!z,expanded:H(T,Y),children:D,level:void 0}}})}n.value=A,(_=c.store)==null||_.updateTableScrollY()};ue(()=>t.value,()=>{m(!0)}),ue(()=>d.value,()=>{m()}),ue(()=>f.value,()=>{m()});const h=y=>{t.value=y,m()},p=y=>a.value&&y&&"loaded"in y&&!y.loaded,b=(y,S)=>{c.store.assertRowKey();const E=e.rowKey.value,_=Xn(y,E),O=_&&n.value[_];if(_&&O&&"expanded"in O){const N=O.expanded;S=$t(S)?!O.expanded:S,n.value[_].expanded=S,N!==S&&c.emit("expand-change",y,S),S&&p(O)&&w(y,_,O),c.store.updateTableScrollY()}},g=y=>{c.store.assertRowKey();const S=e.rowKey.value,E=Xn(y,S),_=n.value[E];p(_)?w(y,E,_):b(y,void 0)},w=(y,S,E)=>{const{load:_}=c.props;_&&!n.value[S].loaded&&(n.value[S].loading=!0,_(y,E,O=>{if(!Ee(O))throw new TypeError("[ElTable] data must be an array");n.value[S].loading=!1,n.value[S].loaded=!0,n.value[S].expanded=!0,O.length&&(l.value[S]=O),c.emit("expand-change",y,!0)}))};return{loadData:w,loadOrToggle:g,toggleTreeExpansion:b,updateTreeExpandKeys:h,updateTreeData:m,updateKeyChildren:(y,S)=>{const{lazy:E,rowKey:_}=c.props;if(!!E){if(!_)throw new Error("[Table] rowKey is required in updateKeyChild");l.value[y]&&(l.value[y]=S)}},normalize:v,states:{expandRowKeys:t,treeData:n,indent:o,lazy:a,lazyTreeNodeMap:l,lazyColumnIdentifier:r,childrenColumnName:i,checkStrictly:u}}}const UJ=(e,t)=>{const n=t.sortingColumn;return!n||ze(n.sortable)?e:LJ(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},bd=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,bd(n.children)):t.push(n)}),t};function GJ(){var e;const t=it(),{size:n}=In((e=t.proxy)==null?void 0:e.$props),o=P(null),a=P([]),l=P([]),r=P(!1),i=P([]),u=P([]),c=P([]),d=P([]),f=P([]),v=P([]),m=P([]),h=P([]),p=[],b=P(0),g=P(0),w=P(0),C=P(!1),y=P([]),S=P(!1),E=P(!1),_=P(null),O=P({}),N=P(null),R=P(null),A=P(null),I=P(null),L=P(null),H=k(()=>o.value?Ss(y.value,o.value):void 0);ue(a,()=>{var Be;t.state&&(T(!1),t.props.tableLayout==="auto"&&((Be=t.refs.tableHeaderRef)==null||Be.updateFixedColumnStyle()))},{deep:!0});const K=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},Y=Be=>{var ht;(ht=Be.children)==null||ht.forEach(ut=>{ut.fixed=Be.fixed,Y(ut)})},M=()=>{i.value.forEach(ce=>{Y(ce)}),d.value=i.value.filter(ce=>[!0,"left"].includes(ce.fixed));const Be=i.value.find(ce=>ce.type==="selection");let ht;Be&&Be.fixed!=="right"&&!d.value.includes(Be)&&i.value.indexOf(Be)===0&&d.value.length&&(d.value.unshift(Be),ht=!0),f.value=i.value.filter(ce=>ce.fixed==="right");const ut=i.value.filter(ce=>(ht?ce.type!=="selection":!0)&&!ce.fixed);u.value=Array.from(d.value).concat(ut).concat(f.value);const bt=bd(ut),ve=bd(d.value),Oe=bd(f.value);b.value=bt.length,g.value=ve.length,w.value=Oe.length,c.value=Array.from(ve).concat(bt).concat(Oe),r.value=d.value.length>0||f.value.length>0},T=(Be,ht=!1)=>{Be&&M(),ht?t.state.doLayout():t.state.debouncedUpdateLayout()},D=Be=>H.value?!!H.value[Xn(Be,o.value)]:y.value.includes(Be),B=()=>{C.value=!1;const Be=y.value;y.value=[],Be.length&&t.emit("selection-change",[])},z=()=>{var Be,ht;let ut;if(o.value){ut=[];const bt=(ht=(Be=t==null?void 0:t.store)==null?void 0:Be.states)==null?void 0:ht.childrenColumnName.value,ve=Ss(a.value,o.value,!0,bt);for(const Oe in H.value)Ln(H.value,Oe)&&!ve[Oe]&&ut.push(H.value[Oe].row)}else ut=y.value.filter(bt=>!a.value.includes(bt));if(ut.length){const bt=y.value.filter(ve=>!ut.includes(ve));y.value=bt,t.emit("selection-change",bt.slice())}},U=()=>(y.value||[]).slice(),V=(Be,ht,ut=!0,bt=!1)=>{var ve,Oe,ce,Me;const pt={children:(Oe=(ve=t==null?void 0:t.store)==null?void 0:ve.states)==null?void 0:Oe.childrenColumnName.value,checkStrictly:(Me=(ce=t==null?void 0:t.store)==null?void 0:ce.states)==null?void 0:Me.checkStrictly.value};if(gd(y.value,Be,ht,pt,bt?void 0:_.value,a.value.indexOf(Be),o.value)){const he=(y.value||[]).slice();ut&&t.emit("select",he,Be),t.emit("selection-change",he)}},J=()=>{var Be,ht;const ut=E.value?!C.value:!(C.value||y.value.length);C.value=ut;let bt=!1,ve=0;const Oe=(ht=(Be=t==null?void 0:t.store)==null?void 0:Be.states)==null?void 0:ht.rowKey.value,{childrenColumnName:ce}=t.store.states,Me={children:ce.value,checkStrictly:!1};a.value.forEach((pt,Ut)=>{const he=Ut+ve;gd(y.value,pt,ut,Me,_.value,he,Oe)&&(bt=!0),ve+=ae(Xn(pt,Oe))}),bt&&t.emit("selection-change",y.value?y.value.slice():[]),t.emit("select-all",(y.value||[]).slice())},q=()=>{var Be;if(((Be=a.value)==null?void 0:Be.length)===0){C.value=!1;return}const{childrenColumnName:ht}=t.store.states;let ut=0,bt=0;const ve=ce=>{var Me;for(const pt of ce){const Ut=_.value&&_.value.call(null,pt,ut);if(D(pt))bt++;else if(!_.value||Ut)return!1;if(ut++,((Me=pt[ht.value])==null?void 0:Me.length)&&!ve(pt[ht.value]))return!1}return!0},Oe=ve(a.value||[]);C.value=bt===0?!1:Oe},ae=Be=>{var ht;if(!t||!t.store)return 0;const{treeData:ut}=t.store.states;let bt=0;const ve=(ht=ut.value[Be])==null?void 0:ht.children;return ve&&(bt+=ve.length,ve.forEach(Oe=>{bt+=ae(Oe)})),bt},ie=(Be,ht)=>{const ut={};return Nn(Be).forEach(bt=>{O.value[bt.id]=ht,ut[bt.columnKey||bt.id]=ht}),ut},oe=(Be,ht,ut)=>{R.value&&R.value!==Be&&(R.value.order=null),R.value=Be,A.value=ht,I.value=ut},fe=()=>{let Be=s(l);Object.keys(O.value).forEach(ht=>{const ut=O.value[ht];if(!ut||ut.length===0)return;const bt=v_({columns:c.value},ht);bt&&bt.filterMethod&&(Be=Be.filter(ve=>ut.some(Oe=>bt.filterMethod.call(null,Oe,ve,bt))))}),N.value=Be},re=()=>{var Be;a.value=UJ((Be=N.value)!=null?Be:[],{sortingColumn:R.value,sortProp:A.value,sortOrder:I.value})},j=(Be=void 0)=>{Be!=null&&Be.filter||fe(),re()},se=Be=>{const{tableHeaderRef:ht}=t.refs;if(!ht)return;const ut=Object.assign({},ht.filterPanels),bt=Object.keys(ut);if(!!bt.length)if(ze(Be)&&(Be=[Be]),Ee(Be)){const ve=Be.map(Oe=>DJ({columns:c.value},Oe));bt.forEach(Oe=>{const ce=ve.find(Me=>Me.id===Oe);ce&&(ce.filteredValue=[])}),t.store.commit("filterChange",{column:ve,values:[],silent:!0,multi:!0})}else bt.forEach(ve=>{const Oe=c.value.find(ce=>ce.id===ve);Oe&&(Oe.filteredValue=[])}),O.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Se=()=>{!R.value||(oe(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Ie,toggleRowExpansion:Le,updateExpandRows:He,states:We,isRowExpanded:tt}=KJ({data:a,rowKey:o}),{updateTreeExpandKeys:Tt,toggleTreeExpansion:Xe,updateTreeData:Ae,updateKeyChildren:Pe,loadOrToggle:Ze,states:et}=YJ({data:a,rowKey:o}),{updateCurrentRowData:gt,updateCurrentRow:vt,setCurrentRowKey:Ce,states:Ve}=jJ({data:a,rowKey:o});return{assertRowKey:K,updateColumns:M,scheduleLayout:T,isSelected:D,clearSelection:B,cleanSelection:z,getSelectionRows:U,toggleRowSelection:V,_toggleAllSelection:J,toggleAllSelection:null,updateAllSelected:q,updateFilters:ie,updateCurrentRow:vt,updateSort:oe,execFilter:fe,execSort:re,execQuery:j,clearFilter:se,clearSort:Se,toggleRowExpansion:Le,setExpandRowKeysAdapter:Be=>{Ie(Be),Tt(Be)},setCurrentRowKey:Ce,toggleRowExpansionAdapter:(Be,ht)=>{c.value.some(({type:bt})=>bt==="expand")?Le(Be,ht):Xe(Be,ht)},isRowExpanded:tt,updateExpandRows:He,updateCurrentRowData:gt,loadOrToggle:Ze,updateTreeData:Ae,updateKeyChildren:Pe,states:{tableSize:n,rowKey:o,data:a,_data:l,isComplex:r,_columns:i,originColumns:u,columns:c,fixedColumns:d,rightFixedColumns:f,leafColumns:v,fixedLeafColumns:m,rightFixedLeafColumns:h,updateOrderFns:p,leafColumnsLength:b,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:w,isAllSelected:C,selection:y,reserveSelection:S,selectOnIndeterminate:E,selectable:_,filters:O,filteredData:N,sortingColumn:R,sortProp:A,sortOrder:I,hoverRow:L,...We,...et,...Ve}}}function Im(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=Im(n.children,t)),n)})}function Mm(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&Mm(t.children)}),e.sort((t,n)=>t.no-n.no)}function qJ(){const e=it(),t=GJ(),n=de("table"),{t:o}=wt();return{ns:n,t:o,...t,mutations:{setData(i,u){const c=s(i._data)!==u;i.data.value=u,i._data.value=u,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),s(i.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(i,u,c,d){var f;const v=s(i._columns);let m=[];c?(c&&!c.children&&(c.children=[]),(f=c.children)==null||f.push(u),m=Im(v,c)):(v.push(u),m=v),Mm(m),i._columns.value=m,i.updateOrderFns.push(d),u.type==="selection"&&(i.selectable.value=u.selectable,i.reserveSelection.value=u.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(i,u){var c;((c=u.getColumnIndex)==null?void 0:c.call(u))!==u.no&&(Mm(i._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(i,u,c,d){var f;const v=s(i._columns)||[];if(c)(f=c.children)==null||f.splice(c.children.findIndex(h=>h.id===u.id),1),ke(()=>{var h;((h=c.children)==null?void 0:h.length)===0&&delete c.children}),i._columns.value=Im(v,c);else{const h=v.indexOf(u);h>-1&&(v.splice(h,1),i._columns.value=v)}const m=i.updateOrderFns.indexOf(d);m>-1&&i.updateOrderFns.splice(m,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(i,u){const{prop:c,order:d,init:f}=u;if(c){const v=s(i.columns).find(m=>m.property===c);v&&(v.order=d,e.store.updateSort(v,c,d),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(i,u){const{sortingColumn:c,sortProp:d,sortOrder:f}=i,v=s(c),m=s(d),h=s(f);zr(h)&&(i.sortingColumn.value=null,i.sortProp.value=null);const p={filter:!0};e.store.execQuery(p),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:v,prop:m,order:h}),e.store.updateTableScrollY()},filterChange(i,u){const{column:c,values:d,silent:f}=u,v=e.store.updateFilters(c,d);e.store.execQuery(),f||e.emit("filter-change",v),e.store.updateTableScrollY()},toggleAllSelection(){var i,u;(u=(i=e.store).toggleAllSelection)==null||u.call(i)},rowSelectedChanged(i,u){e.store.toggleRowSelection(u),e.store.updateAllSelected()},setHoverRow(i,u){i.hoverRow.value=u},setCurrentRow(i,u){e.store.updateCurrentRow(u)}},commit:function(i,...u){const c=e.store.mutations;if(c[i])c[i].apply(e,[e.store.states,...u]);else throw new Error(`Action not found: ${i}`)},updateTableScrollY:function(){ke(()=>e.layout.updateScrollY.apply(e.layout))}}}const Nm={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"},["treeProps.checkStrictly"]:{key:"checkStrictly",default:!1}};function XJ(e,t){if(!e)throw new Error("Table is required.");const n=qJ();return n.toggleAllSelection=sa(n._toggleAllSelection,10),Object.keys(Nm).forEach(o=>{S_(k_(t,o),o,n)}),ZJ(n,t),n}function ZJ(e,t){Object.keys(Nm).forEach(n=>{ue(()=>k_(t,n),o=>{S_(o,n,e)})})}function S_(e,t,n){let o=e,a=Nm[t];Rt(a)&&(o=o||a.default,a=a.key),n.states[a].value=o}function k_(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(a=>{o=o[a]}),o}else return e[t]}class JJ{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=P(null),this.scrollX=P(!1),this.scrollY=P(!1),this.bodyWidth=P(null),this.fixedWidth=P(null),this.rightFixedWidth=P(null),this.gutterWidth=0;for(const n in t)Ln(t,n)&&(Kn(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(zr(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n==null?void 0:n.wrapRef)){let o=!0;const a=this.scrollY.value;return o=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=o,a!==o}return!1}setHeight(t,n="height"){if(!_t)return;const o=this.table.vnode.el;if(t=FJ(t),this.height.value=Number(t),!o&&(t||t===0)){ke(()=>this.setHeight(t,n));return}o&&xe(t)?(o.style[n]=`${t}px`,this.updateElsHeight()):o&&ze(t)&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){var t;if(!_t)return;const n=this.fit,o=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let a=0;const l=this.getFlattenColumns(),r=l.filter(c=>!xe(c.width));if(l.forEach(c=>{xe(c.width)&&c.realWidth&&(c.realWidth=null)}),r.length>0&&n){if(l.forEach(c=>{a+=Number(c.width||c.minWidth||80)}),a<=o){this.scrollX.value=!1;const c=o-a;if(r.length===1)r[0].realWidth=Number(r[0].minWidth||80)+c;else{const d=r.reduce((m,h)=>m+Number(h.minWidth||80),0),f=c/d;let v=0;r.forEach((m,h)=>{if(h===0)return;const p=Math.floor(Number(m.minWidth||80)*f);v+=p,m.realWidth=Number(m.minWidth||80)+p}),r[0].realWidth=Number(r[0].minWidth||80)+c-v}}else this.scrollX.value=!0,r.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(a,o),this.table.state.resizeState.value.width=this.bodyWidth.value}else l.forEach(c=>{!c.width&&!c.minWidth?c.realWidth=80:c.realWidth=Number(c.width||c.minWidth),a+=c.realWidth}),this.scrollX.value=a>o,this.bodyWidth.value=a;const i=this.store.states.fixedColumns.value;if(i.length>0){let c=0;i.forEach(d=>{c+=Number(d.realWidth||d.width)}),this.fixedWidth.value=c}const u=this.store.states.rightFixedColumns.value;if(u.length>0){let c=0;u.forEach(d=>{c+=Number(d.realWidth||d.width)}),this.rightFixedWidth.value=c}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var a,l;switch(t){case"columns":(a=o.state)==null||a.onColumnsChange(this);break;case"scrollable":(l=o.state)==null||l.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}var QJ=JJ;const eQ=le({name:"ElTableFilterPanel",components:{ElCheckbox:Jo,ElCheckboxGroup:Zc,ElScrollbar:Xo,ElTooltip:Vn,ElIcon:$e,ArrowDown:Aa,ArrowUp:Qu},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Kt.appendTo},setup(e){const t=it(),{t:n}=wt(),o=de("table-filter"),a=t==null?void 0:t.parent;e.column&&!a.filterPanels.value[e.column.id]&&(a.filterPanels.value[e.column.id]=t);const l=P(null),r=P(null),i=P(0),u=k(()=>e.column&&e.column.filters),c=k(()=>e.column&&e.column.filterClassName?`${o.b()} ${e.column.filterClassName}`:o.b()),d=k({get:()=>{var _;return(((_=e.column)==null?void 0:_.filteredValue)||[])[0]},set:_=>{f.value&&(yo(_)?f.value.splice(0,1):f.value.splice(0,1,_))}}),f=k({get(){return e.column?e.column.filteredValue||[]:[]},set(_){var O;e.column&&((O=e.upDataColumn)==null||O.call(e,"filteredValue",_))}}),v=k(()=>e.column?e.column.filterMultiple:!0),m=_=>_.value===d.value,h=()=>{var _;(_=l.value)==null||_.onClose()},p=()=>{w(f.value),h()},b=()=>{f.value=[],w(f.value),h()},g=(_,O)=>{d.value=_,i.value=O,yo(_)?w([]):w(f.value),h()},w=_=>{var O,N;(O=e.store)==null||O.commit("filterChange",{column:e.column,values:_}),(N=e.store)==null||N.updateAllSelected()},C=()=>{var _,O;(_=r.value)==null||_.focus(),!v.value&&S(),e.column&&((O=e.upDataColumn)==null||O.call(e,"filterOpened",!0))},y=()=>{var _;e.column&&((_=e.upDataColumn)==null||_.call(e,"filterOpened",!1))},S=()=>{if(yo(d)){i.value=0;return}const _=(u.value||[]).findIndex(O=>O.value===d.value);i.value=_>=0?_+1:0};return{multiple:v,filterClassName:c,filteredValue:f,filterValue:d,filters:u,handleConfirm:p,handleReset:b,handleSelect:g,isPropAbsent:yo,isActive:m,t:n,ns:o,tooltipRef:l,rootRef:r,checkedIndex:i,handleShowTooltip:C,handleHideTooltip:y,handleKeydown:_=>{var O,N;const R=Ht(_),A=(u.value?u.value.length:0)+1;let I=i.value,L=!0;switch(R){case pe.down:case pe.right:I=(I+1)%A;break;case pe.up:case pe.left:I=(I-1+A)%A;break;case pe.tab:h(),L=!1;break;case pe.enter:case pe.space:if(I===0)g(null,0);else{const H=(u.value||[])[I-1];H.value&&g(H.value,I)}break;default:L=!1;break}L&&_.preventDefault(),i.value=I,(N=(O=r.value)==null?void 0:O.querySelector(`.${o.e("list-item")}:nth-child(${I+1})`))==null||N.focus()}}}}),tQ=["disabled"],nQ=["tabindex","aria-checked"],oQ=["tabindex","aria-checked","onClick"],aQ=["aria-label"];function lQ(e,t,n,o,a,l){const r=It("el-checkbox"),i=It("el-checkbox-group"),u=It("el-scrollbar"),c=It("arrow-up"),d=It("arrow-down"),f=It("el-icon"),v=It("el-tooltip");return $(),ne(v,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:Q(()=>[e.multiple?($(),F("div",{key:0,ref:"rootRef",tabindex:"-1",class:x(e.ns.e("multiple"))},[W("div",{class:x(e.ns.e("content"))},[X(u,{"wrap-class":e.ns.e("wrap")},{default:Q(()=>[X(i,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=m=>e.filteredValue=m),class:x(e.ns.e("checkbox-group"))},{default:Q(()=>[($(!0),F(Fe,null,yt(e.filters,m=>($(),ne(r,{key:m.value,value:m.value},{default:Q(()=>[Ct(ge(m.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),W("div",{class:x(e.ns.e("bottom"))},[W("button",{class:x(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...m)=>e.handleConfirm&&e.handleConfirm(...m))},ge(e.t("el.table.confirmFilter")),11,tQ),W("button",{type:"button",onClick:t[2]||(t[2]=(...m)=>e.handleReset&&e.handleReset(...m))},ge(e.t("el.table.resetFilter")),1)],2)],2)):($(),F("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:x(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...m)=>e.handleKeydown&&e.handleKeydown(...m))},[W("li",{role:"radio",class:x([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=m=>e.handleSelect(null,0))},ge(e.t("el.table.clearFilter")),11,nQ),($(!0),F(Fe,null,yt(e.filters,(m,h)=>($(),F("li",{key:m.value,role:"radio",class:x([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),tabindex:e.checkedIndex===h+1?0:-1,"aria-checked":e.isActive(m),onClick:p=>e.handleSelect(m.value,h+1)},ge(m.text),11,oQ))),128))],34))]),default:Q(()=>{var m;return[W("button",{type:"button",class:x(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:((m=e.column)==null?void 0:m.label)||""})},[X(f,null,{default:Q(()=>[ee(e.$slots,"filter-icon",{},()=>{var h;return[(h=e.column)!=null&&h.filterOpened?($(),ne(c,{key:0})):($(),ne(d,{key:1}))]})]),_:3})],10,aQ)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var rQ=ye(eQ,[["render",lQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Am(e){const t=it();Fd(()=>{n.value.addObserver(t)}),st(()=>{o(n.value),a(n.value)}),Ga(()=>{o(n.value),a(n.value)}),Ms(()=>{n.value.removeObserver(t)});const n=k(()=>{const l=e.layout;if(!l)throw new Error("Can not find table layout.");return l}),o=l=>{var r;const i=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const u=l.getFlattenColumns(),c={};u.forEach(d=>{c[d.id]=d});for(let d=0,f=i.length;d<f;d++){const v=i[d],m=v.getAttribute("name"),h=c[m];h&&v.setAttribute("width",h.realWidth||h.width)}},a=l=>{var r,i;const u=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=u.length;d<f;d++)u[d].setAttribute("width",l.scrollY.value?l.gutterWidth:"0");const c=((i=e.vnode.el)==null?void 0:i.querySelectorAll("th.gutter"))||[];for(let d=0,f=c.length;d<f;d++){const v=c[d];v.style.width=l.scrollY.value?`${l.gutterWidth}px`:"0",v.style.display=l.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:o,onScrollableChange:a}}const Ca=Symbol("ElTable");function sQ(e,t){const n=it(),o=Te(Ca),a=p=>{p.stopPropagation()},l=(p,b)=>{!b.filters&&b.sortable?h(p,b,!1):b.filterable&&!b.sortable&&a(p),o==null||o.emit("header-click",b,p)},r=(p,b)=>{o==null||o.emit("header-contextmenu",b,p)},i=P(null),u=P(!1),c=P(),d=(p,b)=>{var g,w;if(!!_t&&!(b.children&&b.children.length>0)&&i.value&&e.border&&i.value.id===b.id){u.value=!0;const C=o;t("set-drag-visible",!0);const y=C==null?void 0:C.vnode.el,S=y==null?void 0:y.getBoundingClientRect().left,E=(w=(g=n==null?void 0:n.vnode)==null?void 0:g.el)==null?void 0:w.querySelector(`th.${b.id}`),_=E.getBoundingClientRect(),O=_.left-S+30;Ko(E,"noclick"),c.value={startMouseLeft:p.clientX,startLeft:_.right-S,startColumnLeft:_.left-S,tableLeft:S};const N=C==null?void 0:C.refs.resizeProxy;N.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const R=I=>{const L=I.clientX-c.value.startMouseLeft,H=c.value.startLeft+L;N.style.left=`${Math.max(O,H)}px`},A=()=>{if(u.value){const{startColumnLeft:I,startLeft:L}=c.value,K=Number.parseInt(N.style.left,10)-I;b.width=b.realWidth=K,C==null||C.emit("header-dragend",b.width,L-I,b,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,i.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",A),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{eo(E,"noclick")},0)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",A)}},f=(p,b)=>{var g;if(!e.border||b.children&&b.children.length>0)return;const w=p.target,C=bo(w)?w.closest("th"):null;if(!C)return;const y=Na(C,"is-sortable");if(y){const R=u.value?"col-resize":"";C.style.cursor=R;const A=C.querySelector(".caret-wrapper");A&&(A.style.cursor=R)}if(!b.resizable||u.value){i.value=null;return}const S=C.getBoundingClientRect(),E=((g=C.parentNode)==null?void 0:g.lastElementChild)===C,_=e.allowDragLastColumn||!E,O=S.width>12&&S.right-p.clientX<8&&_,N=O?"col-resize":"";document.body.style.cursor=N,i.value=O?b:null,y&&(C.style.cursor=N)},v=()=>{!_t||u.value||(document.body.style.cursor="")},m=({order:p,sortOrders:b})=>{if(p==="")return b[0];const g=b.indexOf(p||null);return b[g>b.length-2?0:g+1]},h=(p,b,g)=>{var w;p.stopPropagation();const C=b.order===g?null:g||m(b),y=(w=p.target)==null?void 0:w.closest("th");if(y&&Na(y,"noclick")){eo(y,"noclick");return}if(!b.sortable)return;const S=p.currentTarget;if(["ascending","descending"].some(R=>Na(S,R)&&!b.sortOrders.includes(R)))return;const E=e.store.states;let _=E.sortProp.value,O;const N=E.sortingColumn.value;(N!==b||N===b&&zr(N.order))&&(N&&(N.order=null),E.sortingColumn.value=b,_=b.property),C?O=b.order=C:O=b.order=null,E.sortProp.value=_,E.sortOrder.value=O,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:l,handleHeaderContextMenu:r,handleMouseDown:d,handleMouseMove:f,handleMouseOut:v,handleSortClick:h,handleFilterClick:a}}function iQ(e){const t=Te(Ca),n=de("table");return{getHeaderRowStyle:i=>{const u=t==null?void 0:t.props.headerRowStyle;return lt(u)?u.call(null,{rowIndex:i}):u},getHeaderRowClass:i=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return ze(c)?u.push(c):lt(c)&&u.push(c.call(null,{rowIndex:i})),u.join(" ")},getHeaderCellStyle:(i,u,c,d)=>{var f;let v=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};lt(v)&&(v=v.call(null,{rowIndex:i,columnIndex:u,row:c,column:d}));const m=xm(u,d.fixed,e.store,c);return ks(m,"left"),ks(m,"right"),Object.assign({},v,m)},getHeaderCellClass:(i,u,c,d)=>{const f=Rm(n.b(),u,d.fixed,e.store,c),v=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||v.push("is-leaf"),d.sortable&&v.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return ze(m)?v.push(m):lt(m)&&v.push(m.call(null,{rowIndex:i,columnIndex:u,row:c,column:d})),v.push(n.e("cell")),v.filter(h=>Boolean(h)).join(" ")}}}const E_=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,E_(n.children))):t.push(n)}),t},$_=e=>{let t=1;const n=(l,r)=>{if(r&&(l.level=r.level+1,t<l.level&&(t=l.level)),l.children){let i=0;l.children.forEach(u=>{n(u,l),i+=u.colSpan}),l.colSpan=i}else l.colSpan=1};e.forEach(l=>{l.level=1,n(l,void 0)});const o=[];for(let l=0;l<t;l++)o.push([]);return E_(e).forEach(l=>{l.children?(l.rowSpan=1,l.children.forEach(r=>r.isSubColumn=!0)):l.rowSpan=t-l.level+1,o[l.level-1].push(l)}),o};function uQ(e){const t=Te(Ca),n=k(()=>$_(e.store.states.originColumns.value));return{isGroup:k(()=>{const l=n.value.length>1;return l&&t&&(t.state.isGroup.value=!0),l}),toggleAllSelection:l=>{l.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var cQ=le({name:"ElTableHeader",components:{ElCheckbox:Jo},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=it(),o=Te(Ca),a=de("table"),l=P({}),{onColumnsChange:r,onScrollableChange:i}=Am(o),u=(o==null?void 0:o.props.tableLayout)==="auto",c=Lt(new Map),d=P();let f;const v=()=>{f=setTimeout(()=>{c.size>0&&(c.forEach((I,L)=>{const H=d.value.querySelector(`.${L.replace(/\s/g,".")}`);if(H){const K=H.getBoundingClientRect().width;I.width=K||I.width}}),c.clear())})};ue(c,v),Dt(()=>{f&&(clearTimeout(f),f=void 0)}),st(async()=>{await ke(),await ke();const{prop:I,order:L}=e.defaultSort;o==null||o.store.commit("sort",{prop:I,order:L,init:!0}),v()});const{handleHeaderClick:m,handleHeaderContextMenu:h,handleMouseDown:p,handleMouseMove:b,handleMouseOut:g,handleSortClick:w,handleFilterClick:C}=sQ(e,t),{getHeaderRowStyle:y,getHeaderRowClass:S,getHeaderCellStyle:E,getHeaderCellClass:_}=iQ(e),{isGroup:O,toggleAllSelection:N,columnRows:R}=uQ(e),{t:A}=wt();return n.state={onColumnsChange:r,onScrollableChange:i},n.filterPanels=l,{ns:a,t:A,filterPanels:l,onColumnsChange:r,onScrollableChange:i,columnRows:R,getHeaderRowClass:S,getHeaderRowStyle:y,getHeaderCellClass:_,getHeaderCellStyle:E,handleHeaderClick:m,handleHeaderContextMenu:h,handleMouseDown:p,handleMouseMove:b,handleMouseOut:g,handleSortClick:w,handleFilterClick:C,isGroup:O,toggleAllSelection:N,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:v}},render(){const{ns:e,t,isGroup:n,columnRows:o,getHeaderCellStyle:a,getHeaderCellClass:l,getHeaderRowClass:r,getHeaderRowStyle:i,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:f,handleSortClick:v,handleMouseOut:m,store:h,$parent:p,saveIndexSelection:b,isTableLayoutAuto:g}=this;let w=1;return De("thead",{ref:"theadRef",class:e.is("group",n)},o.map((C,y)=>De("tr",{class:r(y),key:y,style:i(y)},C.map((S,E)=>{S.rowSpan>w&&(w=S.rowSpan);const _=l(y,E,C,S);return g&&S.fixed&&b.set(_,S),De("th",{class:_,colspan:S.colSpan,key:`${S.id}-thead`,rowspan:S.rowSpan,scope:S.colSpan>1?"colgroup":"col",ariaSort:S.sortable?S.order:void 0,style:a(y,E,C,S),onClick:O=>{var N;(N=O.currentTarget)!=null&&N.classList.contains("noclick")||u(O,S)},onContextmenu:O=>c(O,S),onMousedown:O=>d(O,S),onMousemove:O=>f(O,S),onMouseout:m},[De("div",{class:["cell",S.filteredValue&&S.filteredValue.length>0?"highlight":""]},[S.renderHeader?S.renderHeader({column:S,$index:E,store:h,_self:p}):S.label,S.sortable&&De("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:S.label||""}),onClick:O=>v(O,S)},[De("i",{onClick:O=>v(O,S,"ascending"),class:"sort-caret ascending"}),De("i",{onClick:O=>v(O,S,"descending"),class:"sort-caret descending"})]),S.filterable&&De(rQ,{store:h,placement:S.filterPlacement||"bottom-start",appendTo:p==null?void 0:p.appendFilterPanelTo,column:S,upDataColumn:(O,N)=>{S[O]=N}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function Pm(e,t,n=.03){return e-t>n}function dQ(e){const t=Te(Ca),n=P(""),o=P(De("div")),a=(h,p,b)=>{var g,w,C;const y=t,S=Tm(h);let E=null;const _=(g=y==null?void 0:y.vnode.el)==null?void 0:g.dataset.prefix;S&&(E=h_({columns:(C=(w=e.store)==null?void 0:w.states.columns.value)!=null?C:[]},S,_),E&&(y==null||y.emit(`cell-${b}`,p,E,S,h))),y==null||y.emit(`row-${b}`,p,E,h)},l=(h,p)=>{a(h,p,"dblclick")},r=(h,p)=>{var b;(b=e.store)==null||b.commit("setCurrentRow",p),a(h,p,"click")},i=(h,p)=>{a(h,p,"contextmenu")},u=sa(h=>{var p;(p=e.store)==null||p.commit("setHoverRow",h)},30),c=sa(()=>{var h;(h=e.store)==null||h.commit("setHoverRow",null)},30),d=h=>{const p=window.getComputedStyle(h,null),b=Number.parseInt(p.paddingLeft,10)||0,g=Number.parseInt(p.paddingRight,10)||0,w=Number.parseInt(p.paddingTop,10)||0,C=Number.parseInt(p.paddingBottom,10)||0;return{left:b,right:g,top:w,bottom:C}},f=(h,p,b)=>{var g;let w=(g=p==null?void 0:p.target)==null?void 0:g.parentNode;for(;h>1&&(w=w==null?void 0:w.nextSibling,!(!w||w.nodeName!=="TR"));)b(w,"hover-row hover-fixed-row"),h--};return{handleDoubleClick:l,handleClick:r,handleContextMenu:i,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(h,p,b)=>{var g,w,C,y,S,E,_,O,N;if(!t)return;const R=t,A=Tm(h),I=(g=R==null?void 0:R.vnode.el)==null?void 0:g.dataset.prefix;let L=null;if(A){if(L=h_({columns:(C=(w=e.store)==null?void 0:w.states.columns.value)!=null?C:[]},A,I),!L)return;A.rowSpan>1&&f(A.rowSpan,h,Ko);const ae=R.hoverState={cell:A,column:L,row:p};R==null||R.emit("cell-mouse-enter",ae.row,ae.column,ae.cell,h)}if(!b){((y=ao)==null?void 0:y.trigger)===A&&((S=ao)==null||S());return}const H=h.target.querySelector(".cell");if(!(Na(H,`${I}-tooltip`)&&H.childNodes.length&&((E=H.textContent)==null?void 0:E.trim())))return;const K=document.createRange();K.setStart(H,0),K.setEnd(H,H.childNodes.length);const{width:Y,height:M}=K.getBoundingClientRect(),{width:T,height:D}=H.getBoundingClientRect(),{top:B,left:z,right:U,bottom:V}=d(H),J=z+U,q=B+V;Pm(Y+J,T)||Pm(M+q,D)||Pm(H.scrollWidth,T)?WJ(b,(_=(A==null?void 0:A.innerText)||(A==null?void 0:A.textContent))!=null?_:"",p,L,A,R):((O=ao)==null?void 0:O.trigger)===A&&((N=ao)==null||N())},handleCellMouseLeave:h=>{const p=Tm(h);if(!p)return;p.rowSpan>1&&f(p.rowSpan,h,eo);const b=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",b==null?void 0:b.row,b==null?void 0:b.column,b==null?void 0:b.cell,h)},tooltipContent:n,tooltipTrigger:o}}function fQ(e){const t=Te(Ca),n=de("table");return{getRowStyle:(c,d)=>{const f=t==null?void 0:t.props.rowStyle;return lt(f)?f.call(null,{row:c,rowIndex:d}):f||null},getRowClass:(c,d,f)=>{var v;const m=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&c===((v=e.store)==null?void 0:v.states.currentRow.value)&&m.push("current-row"),e.stripe&&f%2===1&&m.push(n.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return ze(h)?m.push(h):lt(h)&&m.push(h.call(null,{row:c,rowIndex:d})),m},getCellStyle:(c,d,f,v)=>{const m=t==null?void 0:t.props.cellStyle;let h=m!=null?m:{};lt(m)&&(h=m.call(null,{rowIndex:c,columnIndex:d,row:f,column:v}));const p=xm(d,e==null?void 0:e.fixed,e.store);return ks(p,"left"),ks(p,"right"),Object.assign({},h,p)},getCellClass:(c,d,f,v,m)=>{const h=Rm(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,m),p=[v.id,v.align,v.className,...h],b=t==null?void 0:t.props.cellClassName;return ze(b)?p.push(b):lt(b)&&p.push(b.call(null,{rowIndex:c,columnIndex:d,row:f,column:v})),p.push(n.e("cell")),p.filter(g=>Boolean(g)).join(" ")},getSpan:(c,d,f,v)=>{let m=1,h=1;const p=t==null?void 0:t.props.spanMethod;if(lt(p)){const b=p({row:c,column:d,rowIndex:f,columnIndex:v});Ee(b)?(m=b[0],h=b[1]):Rt(b)&&(m=b.rowspan,h=b.colspan)}return{rowspan:m,colspan:h}},getColspanRealWidth:(c,d,f)=>{if(d<1)return c[f].realWidth;const v=c.map(({realWidth:m,width:h})=>m||h).slice(f,f+d);return Number(v.reduce((m,h)=>Number(m)+Number(h),-1))}}}const pQ=["colspan","rowspan"],vQ=le({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>($(),F("td",{colspan:e.colspan,rowspan:e.rowspan},[ee(t.$slots,"default")],8,pQ))}});var hQ=ye(vQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table-body/td-wrapper.vue"]]);function mQ(e){const t=Te(Ca),n=de("table"),{handleDoubleClick:o,handleClick:a,handleContextMenu:l,handleMouseEnter:r,handleMouseLeave:i,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=dQ(e),{getRowStyle:v,getRowClass:m,getCellStyle:h,getCellClass:p,getSpan:b,getColspanRealWidth:g}=fQ(e);let w=-1;const C=k(()=>{var O;return(O=e.store)==null?void 0:O.states.columns.value.findIndex(({type:N})=>N==="default")}),y=(O,N)=>{var R;const A=(R=t==null?void 0:t.props)==null?void 0:R.rowKey;return A?Xn(O,A):N},S=(O,N,R,A=!1)=>{const{tooltipEffect:I,tooltipOptions:L,store:H}=e,{indent:K,columns:Y}=H.states,M=[];let T=!0;return R&&(M.push(n.em("row",`level-${R.level}`)),T=!!R.display),N===0&&(w=-1),e.stripe&&T&&w++,M.push(...m(O,N,w)),De("tr",{style:[T?null:{display:"none"},v(O,N)],class:M,key:y(O,N),onDblclick:B=>o(B,O),onClick:B=>a(B,O),onContextmenu:B=>l(B,O),onMouseenter:()=>r(N),onMouseleave:i},Y.value.map((B,z)=>{const{rowspan:U,colspan:V}=b(O,B,N,z);if(!U||!V)return null;const J=Object.assign({},B);J.realWidth=g(Y.value,V,z);const q={store:H,_self:e.context||t,column:J,row:O,$index:N,cellIndex:z,expanded:A};z===C.value&&R&&(q.treeNode={indent:R.level&&R.level*K.value,level:R.level},Vt(R.expanded)&&(q.treeNode.expanded=R.expanded,"loading"in R&&(q.treeNode.loading=R.loading),"noLazyChildren"in R&&(q.treeNode.noLazyChildren=R.noLazyChildren)));const ae=`${y(O,N)},${z}`,ie=J.columnKey||J.rawColumnKey||"",oe=B.showOverflowTooltip&&tp({effect:I},L,B.showOverflowTooltip);return De(hQ,{style:h(N,z,O,B),class:p(N,z,O,B,V-1),key:`${ie}${ae}`,rowspan:U,colspan:V,onMouseenter:fe=>u(fe,O,oe),onMouseleave:c},{default:()=>E(z,B,q)})}))},E=(O,N,R)=>N.renderCell(R);return{wrappedRowRender:(O,N)=>{const R=e.store,{isRowExpanded:A,assertRowKey:I}=R,{treeData:L,lazyTreeNodeMap:H,childrenColumnName:K,rowKey:Y}=R.states,M=R.states.columns.value;if(M.some(({type:D})=>D==="expand")){const D=A(O),B=S(O,N,void 0,D),z=t==null?void 0:t.renderExpanded;if(!z)return console.error("[Element Error]renderExpanded is required."),B;const U=[[B]];return(t.props.preserveExpandedContent||D)&&U[0].push(De("tr",{key:`expanded-row__${B.key}`,style:{display:D?"":"none"}},[De("td",{colspan:M.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[z({row:O,$index:N,store:R,expanded:D})])])),U}else if(Object.keys(L.value).length){I();const D=Xn(O,Y.value);let B=L.value[D],z=null;B&&(z={expanded:B.expanded,level:B.level,display:!0,noLazyChildren:void 0,loading:void 0},Vt(B.lazy)&&(z&&Vt(B.loaded)&&B.loaded&&(z.noLazyChildren=!(B.children&&B.children.length)),z.loading=B.loading));const U=[S(O,N,z!=null?z:void 0)];if(B){let V=0;const J=(ae,ie)=>{!(ae&&ae.length&&ie)||ae.forEach(oe=>{const fe={display:ie.display&&ie.expanded,level:ie.level+1,expanded:!1,noLazyChildren:!1,loading:!1},re=Xn(oe,Y.value);if(yo(re))throw new Error("For nested data item, row-key is required.");if(B={...L.value[re]},B&&(fe.expanded=B.expanded,B.level=B.level||fe.level,B.display=!!(B.expanded&&fe.display),Vt(B.lazy)&&(Vt(B.loaded)&&B.loaded&&(fe.noLazyChildren=!(B.children&&B.children.length)),fe.loading=B.loading)),V++,U.push(S(oe,N+V,fe)),B){const j=H.value[re]||oe[K.value];J(j,B)}})};B.display=!0;const q=H.value[D]||O[K.value];J(q,B)}return U}else return S(O,N,void 0)},tooltipContent:d,tooltipTrigger:f}}const gQ={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var bQ=gQ,yQ=le({name:"ElTableBody",props:bQ,setup(e){var t;const n=it(),o=Te(Ca),a=de("table"),{wrappedRowRender:l,tooltipContent:r,tooltipTrigger:i}=mQ(e),{onColumnsChange:u,onScrollableChange:c}=Am(o),d=[];return ue((t=e.store)==null?void 0:t.states.hoverRow,(f,v)=>{var m,h;const p=n==null?void 0:n.vnode.el,b=Array.from((p==null?void 0:p.children)||[]).filter(C=>C==null?void 0:C.classList.contains(`${a.e("row")}`));let g=f;const w=(m=b[g])==null?void 0:m.childNodes;if(w!=null&&w.length){let C=0;Array.from(w).reduce((S,E,_)=>{var O,N;return((O=w[_])==null?void 0:O.colSpan)>1&&(C=(N=w[_])==null?void 0:N.colSpan),E.nodeName!=="TD"&&C===0&&S.push(_),C>0&&C--,S},[]).forEach(S=>{var E;for(g=f;g>0;){const _=(E=b[g-1])==null?void 0:E.childNodes;if(_[S]&&_[S].nodeName==="TD"&&_[S].rowSpan>1){Ko(_[S],"hover-cell"),d.push(_[S]);break}g--}})}else d.forEach(C=>eo(C,"hover-cell")),d.length=0;!((h=e.store)!=null&&h.states.isComplex.value)||!_t||Ma(()=>{const C=b[v],y=b[f];C&&!C.classList.contains("hover-fixed-row")&&eo(C,"hover-row"),y&&Ko(y,"hover-row")})}),Ms(()=>{var f;(f=ao)==null||f()}),{ns:a,onColumnsChange:u,onScrollableChange:c,wrappedRowRender:l,tooltipContent:r,tooltipTrigger:i}},render(){const{wrappedRowRender:e,store:t}=this,n=(t==null?void 0:t.states.data.value)||[];return De("tbody",{tabIndex:-1},[n.reduce((o,a)=>o.concat(e(a,o.length)),[])])}});function wQ(){const e=Te(Ca),t=e==null?void 0:e.store,n=k(()=>{var i;return(i=t==null?void 0:t.states.fixedLeafColumnsLength.value)!=null?i:0}),o=k(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0}),a=k(()=>{var i;return(i=t==null?void 0:t.states.columns.value.length)!=null?i:0}),l=k(()=>{var i;return(i=t==null?void 0:t.states.fixedColumns.value.length)!=null?i:0}),r=k(()=>{var i;return(i=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?i:0});return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:a,leftFixedCount:l,rightFixedCount:r,columns:k(()=>{var i;return(i=t==null?void 0:t.states.columns.value)!=null?i:[]})}}function CQ(e){const{columns:t}=wQ(),n=de("table");return{getCellClasses:(l,r)=>{const i=l[r],u=[n.e("cell"),i.id,i.align,i.labelClassName,...Rm(n.b(),r,i.fixed,e.store)];return i.className&&u.push(i.className),i.children||u.push(n.is("leaf")),u},getCellStyles:(l,r)=>{const i=xm(r,l.fixed,e.store);return ks(i,"left"),ks(i,"right"),i},columns:t}}var SQ=le({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Te(Ca),n=de("table"),{getCellClasses:o,getCellStyles:a,columns:l}=CQ(e),{onScrollableChange:r,onColumnsChange:i}=Am(t);return{ns:n,onScrollableChange:r,onColumnsChange:i,getCellClasses:o,getCellStyles:a,columns:l}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:a}=this,l=this.store.states.data.value;let r=[];return o?r=o({columns:e,data:l}):e.forEach((i,u)=>{if(u===0){r[u]=a;return}const c=l.map(m=>Number(m[i.property])),d=[];let f=!0;c.forEach(m=>{if(!Number.isNaN(+m)){f=!1;const h=`${m}`.split(".")[1];d.push(h?h.length:0)}});const v=Math.max.apply(null,d);f?r[u]="":r[u]=c.reduce((m,h)=>{const p=Number(h);return Number.isNaN(+p)?m:Number.parseFloat((m+h).toFixed(Math.min(v,20)))},0)}),De(De("tfoot",[De("tr",{},[...e.map((i,u)=>De("td",{key:u,colspan:i.colSpan,rowspan:i.rowSpan,class:n(e,u),style:t(i,u)},[De("div",{class:["cell",i.labelClassName]},[r[u]])]))])]))}});function kQ(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,v,m=!0)=>{e.toggleRowSelection(f,v,!1,m),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,v)=>{e.toggleRowExpansionAdapter(f,v)},clearSort:()=>{e.clearSort()},sort:(f,v)=>{e.commit("sort",{prop:f,order:v})},updateKeyChildren:(f,v)=>{e.updateKeyChildren(f,v)}}}function EQ(e,t,n,o){const a=P(!1),l=P(null),r=P(!1),i=M=>{r.value=M},u=P({width:null,height:null,headerHeight:null}),c=P(!1),d={display:"inline-block",verticalAlign:"middle"},f=P(),v=P(0),m=P(0),h=P(0),p=P(0),b=P(0);ue(()=>e.height,M=>{t.setHeight(M!=null?M:null)},{immediate:!0}),ue(()=>e.maxHeight,M=>{t.setMaxHeight(M!=null?M:null)},{immediate:!0}),ue(()=>[e.currentRowKey,n.states.rowKey],([M,T])=>{!s(T)||!s(M)||n.setCurrentRowKey(`${M}`)},{immediate:!0}),ue(()=>e.data,M=>{o.store.commit("setData",M)},{immediate:!0,deep:!0}),lo(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},w=(M,T)=>{const{pixelX:D,pixelY:B}=T;Math.abs(D)>=Math.abs(B)&&(o.refs.bodyWrapper.scrollLeft+=T.pixelX/5)},C=k(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),y=k(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{C.value&&t.updateElsHeight(),t.updateColumnsWidth(),typeof window!="undefined"&&requestAnimationFrame(N)};st(async()=>{await ke(),n.updateColumns(),R(),requestAnimationFrame(S);const M=o.vnode.el,T=o.refs.headerWrapper;e.flexible&&M&&M.parentElement&&(M.parentElement.style.minWidth="0"),u.value={width:f.value=M.offsetWidth,height:M.offsetHeight,headerHeight:e.showHeader&&T?T.offsetHeight:null},n.states.columns.value.forEach(D=>{D.filteredValue&&D.filteredValue.length&&o.store.commit("filterChange",{column:D,values:D.filteredValue,silent:!0})}),o.$ready=!0});const E=(M,T)=>{if(!M)return;const D=Array.from(M.classList).filter(B=>!B.startsWith("is-scrolling-"));D.push(t.scrollX.value?T:"is-scrolling-none"),M.className=D.join(" ")},_=M=>{const{tableWrapper:T}=o.refs;E(T,M)},O=M=>{const{tableWrapper:T}=o.refs;return!!(T&&T.classList.contains(M))},N=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const J="is-scrolling-none";O(J)||_(J);return}const M=o.refs.scrollBarRef.wrapRef;if(!M)return;const{scrollLeft:T,offsetWidth:D,scrollWidth:B}=M,{headerWrapper:z,footerWrapper:U}=o.refs;z&&(z.scrollLeft=T),U&&(U.scrollLeft=T);const V=B-D-1;T>=V?_("is-scrolling-right"):_(T===0?"is-scrolling-left":"is-scrolling-middle")},R=()=>{!o.refs.scrollBarRef||(o.refs.scrollBarRef.wrapRef&&Mt(o.refs.scrollBarRef.wrapRef,"scroll",N,{passive:!0}),e.fit?Qt(o.vnode.el,A):Mt(window,"resize",A),Qt(o.refs.tableInnerWrapper,()=>{var M,T;A(),(T=(M=o.refs)==null?void 0:M.scrollBarRef)==null||T.update()}))},A=()=>{var M,T,D,B;const z=o.vnode.el;if(!o.$ready||!z)return;let U=!1;const{width:V,height:J,headerHeight:q}=u.value,ae=f.value=z.offsetWidth;V!==ae&&(U=!0);const ie=z.offsetHeight;(e.height||C.value)&&J!==ie&&(U=!0);const oe=e.tableLayout==="fixed"?o.refs.headerWrapper:(M=o.refs.tableHeaderRef)==null?void 0:M.$el;e.showHeader&&(oe==null?void 0:oe.offsetHeight)!==q&&(U=!0),v.value=((T=o.refs.tableWrapper)==null?void 0:T.scrollHeight)||0,h.value=(oe==null?void 0:oe.scrollHeight)||0,p.value=((D=o.refs.footerWrapper)==null?void 0:D.offsetHeight)||0,b.value=((B=o.refs.appendWrapper)==null?void 0:B.offsetHeight)||0,m.value=v.value-h.value-p.value-b.value,U&&(u.value={width:ae,height:ie,headerHeight:e.showHeader&&(oe==null?void 0:oe.offsetHeight)||0},S())},I=bn(),L=k(()=>{const{bodyWidth:M,scrollY:T,gutterWidth:D}=t;return M.value?`${M.value-(T.value?D:0)}px`:""}),H=k(()=>e.maxHeight?"fixed":e.tableLayout),K=k(()=>{if(e.data&&e.data.length)return;let M="100%";e.height&&m.value&&(M=`${m.value}px`);const T=f.value;return{width:T?`${T}px`:"",height:M}}),Y=k(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${h.value+p.value}px)`}:{maxHeight:`${+e.maxHeight-h.value-p.value}px`}:{});return{isHidden:a,renderExpanded:l,setDragVisible:i,isGroup:c,handleMouseLeave:g,handleHeaderFooterMousewheel:w,tableSize:I,emptyBlockStyle:K,resizeProxyVisible:r,bodyWidth:L,resizeState:u,doLayout:S,tableBodyStyles:y,tableLayout:H,scrollbarViewStyle:d,scrollbarStyle:Y}}function $Q(e){const t=P(),n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),l={childList:!0,subtree:!0},r=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{r.forEach(i=>i())}),t.value.observe(a,l)};st(()=>{n()}),Ms(()=>{var o;(o=t.value)==null||o.disconnect()})}var _Q={data:{type:Array,default:()=>[]},size:En,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function __(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:a})=>$t(a))&&(n=[]);const o=a=>{const l={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?l.style={width:`${a.width}px`}:l.name=a.id,l};return De("colgroup",{},n.map(a=>De("col",o(a))))}__.props=["columns","tableLayout"];const TQ=()=>{const e=P(),t=(l,r)=>{const i=e.value;i&&i.scrollTo(l,r)},n=(l,r)=>{const i=e.value;i&&xe(r)&&["Top","Left"].includes(l)&&i[`setScroll${l}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:l=>n("Top",l),setScrollLeft:l=>n("Left",l)}};let OQ=1;const RQ=le({name:"ElTable",directives:{Mousewheel:uk},components:{TableHeader:cQ,TableBody:yQ,TableFooter:SQ,ElScrollbar:Xo,hColgroup:__},props:_Q,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=wt(),n=de("table"),o=it();St(Ca,o);const a=XJ(o,e);o.store=a;const l=new QJ({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=l;const r=k(()=>(a.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:v,toggleRowExpansion:m,clearSort:h,sort:p,updateKeyChildren:b}=kQ(a),{isHidden:g,renderExpanded:w,setDragVisible:C,isGroup:y,handleMouseLeave:S,handleHeaderFooterMousewheel:E,tableSize:_,emptyBlockStyle:O,resizeProxyVisible:N,bodyWidth:R,resizeState:A,doLayout:I,tableBodyStyles:L,tableLayout:H,scrollbarViewStyle:K,scrollbarStyle:Y}=EQ(e,l,a,o),{scrollBarRef:M,scrollTo:T,setScrollLeft:D,setScrollTop:B}=TQ(),z=sa(I,50),U=`${n.namespace.value}-table_${OQ++}`;o.tableId=U,o.state={isGroup:y,resizeState:A,doLayout:I,debouncedUpdateLayout:z};const V=k(()=>{var ae;return(ae=e.sumText)!=null?ae:t("el.table.sumText")}),J=k(()=>{var ae;return(ae=e.emptyText)!=null?ae:t("el.table.emptyText")}),q=k(()=>$_(a.states.originColumns.value)[0]);return $Q(o),Dt(()=>{z.cancel()}),{ns:n,layout:l,store:a,columns:q,handleHeaderFooterMousewheel:E,handleMouseLeave:S,tableId:U,tableSize:_,isHidden:g,isEmpty:r,renderExpanded:w,resizeProxyVisible:N,resizeState:A,isGroup:y,bodyWidth:R,tableBodyStyles:L,emptyBlockStyle:O,debouncedUpdateLayout:z,setCurrentRow:i,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:f,toggleAllSelection:v,toggleRowExpansion:m,clearSort:h,doLayout:I,sort:p,updateKeyChildren:b,t,setDragVisible:C,context:o,computedSumText:V,computedEmptyText:J,tableLayout:H,scrollbarViewStyle:K,scrollbarStyle:Y,scrollBarRef:M,scrollTo:T,setScrollLeft:D,setScrollTop:B,allowDragLastColumn:e.allowDragLastColumn}}}),xQ=["data-prefix"],IQ={ref:"hiddenColumns",class:"hidden-columns"};function MQ(e,t,n,o,a,l){const r=It("hColgroup"),i=It("table-header"),u=It("table-body"),c=It("table-footer"),d=It("el-scrollbar"),f=zd("mousewheel");return $(),F("div",{ref:"tableWrapper",class:x([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Ne(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...v)=>e.handleMouseLeave&&e.handleMouseLeave(...v))},[W("div",{ref:"tableInnerWrapper",class:x(e.ns.e("inner-wrapper"))},[W("div",IQ,[ee(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?ot(($(),F("div",{key:0,ref:"headerWrapper",class:x(e.ns.e("header-wrapper"))},[W("table",{ref:"tableHeader",class:x(e.ns.e("header")),style:Ne(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[X(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),X(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):te("v-if",!0),W("div",{ref:"bodyWrapper",class:x(e.ns.e("body-wrapper"))},[X(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=v=>e.$emit("scroll",v))},{default:Q(()=>[W("table",{ref:"tableBody",class:x(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ne({width:e.bodyWidth,tableLayout:e.tableLayout})},[X(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?($(),ne(i,{key:0,ref:"tableHeaderRef",class:x(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):te("v-if",!0),X(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?($(),ne(c,{key:1,class:x(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):te("v-if",!0)],6),e.isEmpty?($(),F("div",{key:0,ref:"emptyBlock",style:Ne(e.emptyBlockStyle),class:x(e.ns.e("empty-block"))},[W("span",{class:x(e.ns.e("empty-text"))},[ee(e.$slots,"empty",{},()=>[Ct(ge(e.computedEmptyText),1)])],2)],6)):te("v-if",!0),e.$slots.append?($(),F("div",{key:1,ref:"appendWrapper",class:x(e.ns.e("append-wrapper"))},[ee(e.$slots,"append")],2)):te("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?ot(($(),F("div",{key:1,ref:"footerWrapper",class:x(e.ns.e("footer-wrapper"))},[W("table",{class:x(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Ne(e.tableBodyStyles)},[X(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),X(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[xt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):te("v-if",!0),e.border||e.isGroup?($(),F("div",{key:2,class:x(e.ns.e("border-left-patch"))},null,2)):te("v-if",!0)],2),ot(W("div",{ref:"resizeProxy",class:x(e.ns.e("column-resize-proxy"))},null,2),[[xt,e.resizeProxyVisible]])],46,xQ)}var NQ=ye(RQ,[["render",MQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const AQ={selection:"table-column--selection",expand:"table__expand-column"},PQ={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},LQ=e=>AQ[e]||"",DQ={selection:{renderHeader({store:e}){var t;function n(){return e.states.data.value&&e.states.data.value.length===0}return De(Jo,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":(t=e.toggleAllSelection)!=null?t:void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:o}){return De(Jo,{disabled:t.selectable?!t.selectable.call(null,e,o):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const o=e.index;return xe(o)?n=t+o:lt(o)&&(n=o(t)),De("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:o}){const{ns:a}=n,l=[a.e("expand-icon")];!e.renderExpand&&o&&l.push(a.em("expand-icon","expanded"));const r=function(i){i.stopPropagation(),n.toggleRowExpansion(t)};return De("button",{type:"button","aria-label":n.t(o?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":o,class:l,onClick:r},{default:()=>e.renderExpand?[e.renderExpand({expanded:o})]:[De($e,null,{default:()=>[De(to)]})]})},sortable:!1,resizable:!1}};function BQ({row:e,column:t,$index:n}){var o;const a=t.property,l=a&&ri(e,a).value;return t&&t.formatter?t.formatter(e,t,l,n):((o=l==null?void 0:l.toString)==null?void 0:o.call(l))||""}function FQ({row:e,treeNode:t,store:n},o=!1){const{ns:a}=n;if(!t)return o?[De("span",{class:a.e("placeholder")})]:null;const l=[],r=function(i){i.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&l.push(De("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),Vt(t.expanded)&&!t.noLazyChildren){const i=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let u=to;t.loading&&(u=Pa),l.push(De("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:i,onClick:r},{default:()=>[De($e,{class:a.is("loading",t.loading)},{default:()=>[De(u)]})]}))}else l.push(De("span",{class:a.e("placeholder")}));return l}function T_(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function VQ(e,t){const n=it();return{registerComplexWatchers:()=>{const l=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},i=T_(l,r);Object.keys(i).forEach(u=>{const c=r[u];Ln(t,c)&&ue(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=Om(d)),c==="minWidth"&&u==="realMinWidth"&&(f=m_(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const v=c==="fixed";e.value.store.scheduleLayout(v)})})},registerNormalWatchers:()=>{const l=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],r=["showOverflowTooltip"],i={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=T_(l,i);Object.keys(u).forEach(c=>{const d=i[c];Ln(t,d)&&ue(()=>t[d],f=>{n.columnConfig.value[c]=f,(c==="filters"||c==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),r.forEach(c=>{Ln(e.value.props,c)&&ue(()=>e.value.props[c],d=>{n.columnConfig.value.type!=="selection"&&(!$t(t[c])||(n.columnConfig.value[c]=d))})})}}}function zQ(e,t,n){const o=it(),a=P(""),l=P(!1),r=P(),i=P(),u=de("table");lo(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),lo(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:r.value,i.value});const c=k(()=>{let y=o.vnode.vParent||o.parent;for(;y&&!y.tableId&&!y.columnId;)y=y.vnode.vParent||y.parent;return y}),d=k(()=>{const{store:y}=o.parent;if(!y)return!1;const{treeData:S}=y.states,E=S.value;return E&&Object.keys(E).length>0}),f=P(Om(e.width)),v=P(m_(e.minWidth)),m=y=>(f.value&&(y.width=f.value),v.value&&(y.minWidth=v.value),!f.value&&v.value&&(y.width=void 0),y.minWidth||(y.minWidth=80),y.realWidth=Number($t(y.width)?y.minWidth:y.width),y),h=y=>{const S=y.type,E=DQ[S]||{};Object.keys(E).forEach(O=>{const N=E[O];O!=="className"&&!$t(N)&&(y[O]=N)});const _=LQ(S);if(_){const O=`${s(u.namespace)}-${_}`;y.className=y.className?`${y.className} ${O}`:O}return y},p=y=>{Ee(y)?y.forEach(E=>S(E)):S(y);function S(E){var _;((_=E==null?void 0:E.type)==null?void 0:_.name)==="ElTableColumn"&&(E.vParent=o)}};return{columnId:a,realAlign:r,isSubColumn:l,realHeaderAlign:i,columnOrTableParent:c,setColumnWidth:m,setColumnForcedProps:h,setColumnRenders:y=>{e.renderHeader||y.type!=="selection"&&(y.renderHeader=E=>{if(o.columnConfig.value.label,t.header){const _=t.header(E);if(C_(_))return De(Fe,_)}return Ct(y.label)}),t["filter-icon"]&&(y.renderFilterIcon=E=>ee(t,"filter-icon",E)),t.expand&&(y.renderExpand=E=>ee(t,"expand",E));let S=y.renderCell;return y.type==="expand"?(y.renderCell=E=>De("div",{class:"cell"},[S(E)]),n.value.renderExpanded=E=>t.default?t.default(E):t.default):(S=S||BQ,y.renderCell=E=>{let _=null;if(t.default){const L=t.default(E);_=L.some(H=>H.type!==Ua)?L:S(E)}else _=S(E);const{columns:O}=n.value.store.states,N=O.value.findIndex(L=>L.type==="default"),R=d.value&&E.cellIndex===N,A=FQ(E,R),I={class:"cell",style:{}};return y.showOverflowTooltip&&(I.class=`${I.class} ${s(u.namespace)}-tooltip`,I.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),p(_),De("div",I,[A,_])}),y},getPropsData:(...y)=>y.reduce((S,E)=>(Ee(E)&&E.forEach(_=>{S[_]=e[_]}),S),{}),getColumnElIndex:(y,S)=>Array.prototype.indexOf.call(y,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",o.columnConfig.value)}}}var HQ={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let WQ=1;var O_=le({name:"ElTableColumn",components:{ElCheckbox:Jo},props:HQ,setup(e,{slots:t}){const n=it(),o=P({}),a=k(()=>{let C=n.parent;for(;C&&!C.tableId;)C=C.parent;return C}),{registerNormalWatchers:l,registerComplexWatchers:r}=VQ(a,e),{columnId:i,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:v,setColumnRenders:m,getPropsData:h,getColumnElIndex:p,realAlign:b,updateColumnOrder:g}=zQ(e,t,a),w=d.value;i.value=`${"tableId"in w&&w.tableId||"columnId"in w&&w.columnId}_column_${WQ++}`,Fd(()=>{u.value=a.value!==w;const C=e.type||"default",y=e.sortable===""?!0:e.sortable,S=C==="selection"?!1:$t(e.showOverflowTooltip)?w.props.showOverflowTooltip:e.showOverflowTooltip,E=$t(e.tooltipFormatter)?w.props.tooltipFormatter:e.tooltipFormatter,_={...PQ[C],id:i.value,type:C,property:e.prop||e.property,align:b,headerAlign:c,showOverflowTooltip:S,tooltipFormatter:E,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:y,index:e.index,rawColumnKey:n.vnode.key};let I=h(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);I=BJ(_,I),I=VJ(m,f,v)(I),o.value=I,l(),r()}),st(()=>{var C,y;const S=d.value,E=u.value?(C=S.vnode.el)==null?void 0:C.children:(y=S.refs.hiddenColumns)==null?void 0:y.children,_=()=>p(E||[],n.vnode.el);o.value.getColumnIndex=_,_()>-1&&a.value.store.commit("insertColumn",o.value,u.value?"columnConfig"in S&&S.columnConfig.value:null,g)}),Dt(()=>{const C=o.value.getColumnIndex;(C?C():-1)>-1&&a.value.store.commit("removeColumn",o.value,u.value?"columnConfig"in w&&w.columnConfig.value:null,g)}),n.columnId=i.value,n.columnConfig=o},render(){var e,t,n;try{const o=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(Ee(o))for(const r of o)((n=r.type)==null?void 0:n.name)==="ElTableColumn"||r.shapeFlag&2?a.push(r):r.type===Fe&&Ee(r.children)&&r.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!ze(i==null?void 0:i.children)&&a.push(i)});return De("div",a)}catch(o){return De("div",[])}}});const R_=Qe(NQ,{TableColumn:O_}),x_=sn(O_);var jl=(e=>(e.ASC="asc",e.DESC="desc",e))(jl||{}),Es=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(Es||{}),Lm=(e=>(e.LEFT="left",e.RIGHT="right",e))(Lm||{});const Dm={asc:"desc",desc:"asc"},$s=Symbol("placeholder"),KQ=(e,t,n)=>{var o;const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(a.flexShrink=1);const l={...(o=e.style)!=null?o:{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(l.maxWidth=e.maxWidth),e.minWidth&&(l.minWidth=e.minWidth)),l};function jQ(e,t,n){const o=k(()=>s(t).map((b,g)=>{var w,C;return{...b,key:(C=(w=b.key)!=null?w:b.dataKey)!=null?C:g}})),a=k(()=>s(o).filter(b=>!b.hidden)),l=k(()=>s(a).filter(b=>b.fixed==="left"||b.fixed===!0)),r=k(()=>s(a).filter(b=>b.fixed==="right")),i=k(()=>s(a).filter(b=>!b.fixed)),u=k(()=>{const b=[];return s(l).forEach(g=>{b.push({...g,placeholderSign:$s})}),s(i).forEach(g=>{b.push(g)}),s(r).forEach(g=>{b.push({...g,placeholderSign:$s})}),b}),c=k(()=>s(l).length||s(r).length),d=k(()=>s(o).reduce((b,g)=>(b[g.key]=KQ(g,s(n),e.fixed),b),{})),f=k(()=>s(a).reduce((b,g)=>b+g.width,0)),v=b=>s(o).find(g=>g.key===b),m=b=>s(d)[b],h=(b,g)=>{b.width=g};function p(b){var g;const{key:w}=b.currentTarget.dataset;if(!w)return;const{sortState:C,sortBy:y}=e;let S=jl.ASC;Rt(C)?S=Dm[C[w]]:S=Dm[y.order],(g=e.onColumnSort)==null||g.call(e,{column:v(w),key:w,order:S})}return{columns:o,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:l,fixedColumnsOnRight:r,hasFixedColumns:c,mainColumns:u,normalColumns:i,visibleColumns:a,getColumn:v,getColumnStyle:m,updateColumnWidth:h,onColumnSorted:p}}const YQ=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:a})=>{const l=P({scrollLeft:0,scrollTop:0});function r(m){var h,p,b;const{scrollTop:g}=m;(h=t.value)==null||h.scrollTo(m),(p=n.value)==null||p.scrollToTop(g),(b=o.value)==null||b.scrollToTop(g)}function i(m){l.value=m,r(m)}function u(m){l.value.scrollTop=m,r(s(l))}function c(m){var h,p;l.value.scrollLeft=m,(p=(h=t.value)==null?void 0:h.scrollTo)==null||p.call(h,s(l))}function d(m){var h;i(m),(h=e.onScroll)==null||h.call(e,m)}function f({scrollTop:m}){const{scrollTop:h}=s(l);m!==h&&u(m)}function v(m,h="auto"){var p;(p=t.value)==null||p.scrollToRow(m,h)}return ue(()=>s(l).scrollTop,(m,h)=>{m>h&&a()}),{scrollPos:l,scrollTo:i,scrollToLeft:c,scrollToTop:u,scrollToRow:v,onScroll:d,onVerticalScroll:f}},UQ=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:a,ns:l,isScrolling:r})=>{const i=it(),{emit:u}=i,c=Zt(!1),d=P(e.defaultExpandedRowKeys||[]),f=P(-1),v=Zt(null),m=P({}),h=P({}),p=Zt({}),b=Zt({}),g=Zt({}),w=k(()=>xe(e.estimatedRowHeight));function C(R){var A;(A=e.onRowsRendered)==null||A.call(e,R),R.rowCacheEnd>s(f)&&(f.value=R.rowCacheEnd)}function y({hovered:R,rowKey:A}){if(r.value)return;a.vnode.el.querySelectorAll(`[rowkey="${String(A)}"]`).forEach(H=>{R?H.classList.add(l.is("hovered")):H.classList.remove(l.is("hovered"))})}function S({expanded:R,rowData:A,rowIndex:I,rowKey:L}){var H,K;const Y=[...s(d)],M=Y.indexOf(L);R?M===-1&&Y.push(L):M>-1&&Y.splice(M,1),d.value=Y,u("update:expandedRowKeys",Y),(H=e.onRowExpand)==null||H.call(e,{expanded:R,rowData:A,rowIndex:I,rowKey:L}),(K=e.onExpandedRowsChange)==null||K.call(e,Y),a.vnode.el.querySelector(`.${l.is("hovered")}[rowkey="${String(L)}"]`)&&ke(()=>y({hovered:!0,rowKey:L}))}const E=sa(()=>{var R,A,I,L;c.value=!0,m.value={...s(m),...s(h)},_(s(v),!1),h.value={},v.value=null,(R=t.value)==null||R.forceUpdate(),(A=n.value)==null||A.forceUpdate(),(I=o.value)==null||I.forceUpdate(),(L=i.proxy)==null||L.$forceUpdate(),c.value=!1},0);function _(R,A=!1){!s(w)||[t,n,o].forEach(I=>{const L=s(I);L&&L.resetAfterRowIndex(R,A)})}function O(R,A,I){const L=s(v);(L===null||L>I)&&(v.value=I),h.value[R]=A}function N({rowKey:R,height:A,rowIndex:I},L){L?L===Lm.RIGHT?g.value[R]=A:p.value[R]=A:b.value[R]=A;const H=Math.max(...[p,g,b].map(K=>K.value[R]||0));s(m)[R]!==H&&(O(R,H,I),E())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:w,isResetting:c,rowHeights:m,resetAfterIndex:_,onRowExpanded:S,onRowHovered:y,onRowsRendered:C,onRowHeightChange:N}},GQ=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:o})=>{const a=P({}),l=k(()=>{const i={},{data:u,rowKey:c}=e,d=s(t);if(!d||!d.length)return u;const f=[],v=new Set;d.forEach(h=>v.add(h));let m=u.slice();for(m.forEach(h=>i[h[c]]=0);m.length>0;){const h=m.shift();f.push(h),v.has(h[c])&&Ee(h.children)&&h.children.length>0&&(m=[...h.children,...m],h.children.forEach(p=>i[p[c]]=i[h[c]]+1))}return a.value=i,f}),r=k(()=>{const{data:i,expandColumnKey:u}=e;return u?s(l):i});return ue(r,(i,u)=>{i!==u&&(n.value=-1,o(0,!0))}),{data:r,depthMap:a}},qQ=(e,t)=>e+t,yd=e=>Ee(e)?e.reduce(qQ,0):e,yr=(e,t,n={})=>lt(e)?e(t):e!=null?e:n,Yl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=rn(e[t])}),e),I_=e=>Jt(e)?t=>De(e,t):e,XQ=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:o,fixedColumnsOnRight:a})=>{const l=k(()=>{const{fixed:g,width:w,vScrollbarSize:C}=e,y=w-C;return g?Math.max(Math.round(s(t)),y):y}),r=k(()=>{const{height:g=0,maxHeight:w=0,footerHeight:C,hScrollbarSize:y}=e;if(w>0){const S=s(v),E=s(n),O=s(f)+S+E+y;return Math.min(O,w-C)}return g-C}),i=k(()=>{const{maxHeight:g}=e,w=s(r);if(xe(g)&&g>0)return w;const C=s(n)+s(f)+s(v);return Math.min(w,C)}),u=g=>g.width,c=k(()=>yd(s(o).map(u))),d=k(()=>yd(s(a).map(u))),f=k(()=>yd(e.headerHeight)),v=k(()=>{var g;return(((g=e.fixedData)==null?void 0:g.length)||0)*e.rowHeight}),m=k(()=>s(r)-s(f)-s(v)),h=k(()=>{const{style:g={},height:w,width:C}=e;return Yl({...g,height:w,width:C})}),p=k(()=>Yl({height:e.footerHeight})),b=k(()=>({top:rn(s(f)),bottom:rn(e.footerHeight),width:rn(e.width)}));return{bodyWidth:l,fixedTableHeight:i,mainTableHeight:r,leftTableWidth:c,rightTableWidth:d,windowHeight:m,footerHeight:p,emptyStyle:b,rootStyle:h,headerHeight:f}},ZQ=e=>{const t=P(),n=P(0),o=P(0);let a;return st(()=>{a=Qt(t,([l])=>{const{width:r,height:i}=l.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(l.target),v=Number.parseInt(u)||0,m=Number.parseInt(c)||0,h=Number.parseInt(d)||0,p=Number.parseInt(f)||0;n.value=r-v-m,o.value=i-h-p}).stop}),Dt(()=>{a==null||a()}),ue([n,o],([l,r])=>{var i;(i=e.onResize)==null||i.call(e,{width:l,height:r})}),{sizer:t,width:n,height:o}};function JQ(e){const t=P(),n=P(),o=P(),{columns:a,columnsStyles:l,columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=jQ(e,Ft(e,"columns"),Ft(e,"fixed")),{scrollTo:v,scrollToLeft:m,scrollToTop:h,scrollToRow:p,onScroll:b,onVerticalScroll:g,scrollPos:w}=YQ(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:Se}),C=de("table-v2"),y=it(),S=Zt(!1),{expandedRowKeys:E,lastRenderedRowIndex:_,isDynamic:O,isResetting:N,rowHeights:R,resetAfterIndex:A,onRowExpanded:I,onRowHeightChange:L,onRowHovered:H,onRowsRendered:K}=UQ(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:y,ns:C,isScrolling:S}),{data:Y,depthMap:M}=GQ(e,{expandedRowKeys:E,lastRenderedRowIndex:_,resetAfterIndex:A}),T=k(()=>{const{estimatedRowHeight:Ie,rowHeight:Le}=e,He=s(Y);return xe(Ie)?Object.values(s(R)).reduce((We,tt)=>We+tt,0):He.length*Le}),{bodyWidth:D,fixedTableHeight:B,mainTableHeight:z,leftTableWidth:U,rightTableWidth:V,windowHeight:J,footerHeight:q,emptyStyle:ae,rootStyle:ie,headerHeight:oe}=XQ(e,{columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,rowsHeight:T}),fe=P(),re=k(()=>{const Ie=s(Y).length===0;return Ee(e.fixedData)?e.fixedData.length===0&&Ie:Ie});function j(Ie){const{estimatedRowHeight:Le,rowHeight:He,rowKey:We}=e;return Le?s(R)[s(Y)[Ie][We]]||Le:He}const se=P(!1);function Se(){const{onEndReached:Ie}=e;if(!Ie)return;const{scrollTop:Le}=s(w),He=s(T),We=s(J),tt=He-(Le+We)+e.hScrollbarSize;!se.value&&s(_)>=0&&He<=Le+s(z)-s(oe)?(se.value=!0,Ie(tt)):se.value=!1}return ue(()=>s(T),()=>se.value=!1),ue(()=>e.expandedRowKeys,Ie=>E.value=Ie,{deep:!0}),{columns:a,containerRef:fe,mainTableRef:t,leftTableRef:n,rightTableRef:o,isDynamic:O,isResetting:N,isScrolling:S,hasFixedColumns:c,columnsStyles:l,columnsTotalWidth:r,data:Y,expandedRowKeys:E,depthMap:M,fixedColumnsOnLeft:i,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:D,emptyStyle:ae,rootStyle:ie,footerHeight:q,mainTableHeight:z,fixedTableHeight:B,leftTableWidth:U,rightTableWidth:V,showEmpty:re,getRowHeight:j,onColumnSorted:f,onRowHovered:H,onRowExpanded:I,onRowsRendered:K,onRowHeightChange:L,scrollTo:v,scrollToLeft:m,scrollToTop:h,scrollToRow:p,onScroll:b,onVerticalScroll:g}}const Bm=Symbol("tableV2"),M_="tableV2GridScrollLeft",N_=String,Gi={type:G(Array),required:!0},Fm={type:G(Array)},A_={...Fm,required:!0},QQ=String,P_={type:G(Array),default:()=>un([])},wr={type:Number,required:!0},L_={type:G([String,Number,Symbol]),default:"id"},D_={type:G(Object)},Ul=me({class:String,columns:Gi,columnsStyles:{type:G(Object),required:!0},depth:Number,expandColumnKey:QQ,estimatedRowHeight:{...Kl.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:G(Function)},onRowHover:{type:G(Function)},onRowHeightChange:{type:G(Function)},rowData:{type:G(Object),required:!0},rowEventHandlers:{type:G(Object)},rowIndex:{type:Number,required:!0},rowKey:L_,style:{type:G(Object)}}),Vm={type:Number,required:!0},zm=me({class:String,columns:Gi,fixedHeaderData:{type:G(Array)},headerData:{type:G(Array),required:!0},headerHeight:{type:G([Number,Array]),default:50},rowWidth:Vm,rowHeight:{type:Number,default:50},height:Vm,width:Vm}),wd=me({columns:Gi,data:A_,fixedData:Fm,estimatedRowHeight:Ul.estimatedRowHeight,width:wr,height:wr,headerWidth:wr,headerHeight:zm.headerHeight,bodyWidth:wr,rowHeight:wr,cache:gm.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Kl.scrollbarAlwaysOn,scrollbarStartGap:Kl.scrollbarStartGap,scrollbarEndGap:Kl.scrollbarEndGap,class:N_,style:D_,containerStyle:D_,getRowHeight:{type:G(Function),required:!0},rowKey:Ul.rowKey,onRowsRendered:{type:G(Function)},onScroll:{type:G(Function)}}),B_=me({cache:wd.cache,estimatedRowHeight:Ul.estimatedRowHeight,rowKey:L_,headerClass:{type:G([String,Function])},headerProps:{type:G([Object,Function])},headerCellProps:{type:G([Object,Function])},headerHeight:zm.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:G([String,Function])},rowProps:{type:G([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:G([Object,Function])},columns:Gi,data:A_,dataGetter:{type:G(Function)},fixedData:Fm,expandColumnKey:Ul.expandColumnKey,expandedRowKeys:P_,defaultExpandedRowKeys:P_,class:N_,fixed:Boolean,style:{type:G(Object)},width:wr,height:wr,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Kl.hScrollbarSize,vScrollbarSize:Kl.vScrollbarSize,scrollbarAlwaysOn:ym.alwaysOn,sortBy:{type:G(Object),default:()=>({})},sortState:{type:G(Object),default:void 0},onColumnSort:{type:G(Function)},onExpandedRowsChange:{type:G(Function)},onEndReached:{type:G(Function)},onRowExpand:Ul.onRowExpand,onScroll:wd.onScroll,onRowsRendered:wd.onRowsRendered,rowEventHandlers:Ul.rowEventHandlers}),Hm=(e,{slots:t})=>{var n;const{cellData:o,style:a}=e,l=((n=o==null?void 0:o.toString)==null?void 0:n.call(o))||"",r=ee(t,"default",e,()=>[l]);return X("div",{class:e.class,title:l,style:a},[r])};Hm.displayName="ElTableV2Cell",Hm.inheritAttrs=!1;var eee=Hm;const Wm=(e,{slots:t})=>ee(t,"default",e,()=>{var n,o;return[X("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(o=e.column)==null?void 0:o.title])]});Wm.displayName="ElTableV2HeaderCell",Wm.inheritAttrs=!1;var tee=Wm;const nee=me({class:String,columns:Gi,columnsStyles:{type:G(Object),required:!0},headerIndex:Number,style:{type:G(Object)}}),oee=le({name:"ElTableV2HeaderRow",props:nee,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:o,headerIndex:a,style:l}=e;let r=n.map((i,u)=>t.cell({columns:n,column:i,columnIndex:u,headerIndex:a,style:o[i.key]}));return t.header&&(r=t.header({cells:r.map(i=>Ee(i)&&i.length===1?i[0]:i),columns:n,headerIndex:a})),X("div",{class:e.class,style:l,role:"row"},[r])}}});var aee=oee;const lee="ElTableV2Header",ree=le({name:lee,props:zm,setup(e,{slots:t,expose:n}){const o=de("table-v2"),a=Te(M_),l=P(),r=k(()=>Yl({width:e.width,height:e.height})),i=k(()=>Yl({width:e.rowWidth,height:e.height})),u=k(()=>Nn(s(e.headerHeight))),c=v=>{const m=s(l);ke(()=>{m!=null&&m.scroll&&m.scroll({left:v})})},d=()=>{const v=o.e("fixed-header-row"),{columns:m,fixedHeaderData:h,rowHeight:p}=e;return h==null?void 0:h.map((b,g)=>{var w;const C=Yl({height:p,width:"100%"});return(w=t.fixed)==null?void 0:w.call(t,{class:v,columns:m,rowData:b,rowIndex:-(g+1),style:C})})},f=()=>{const v=o.e("dynamic-header-row"),{columns:m}=e;return s(u).map((h,p)=>{var b;const g=Yl({width:"100%",height:h});return(b=t.dynamic)==null?void 0:b.call(t,{class:v,columns:m,headerIndex:p,style:g})})};return Ga(()=>{a!=null&&a.value&&c(a.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return X("div",{ref:l,class:e.class,style:s(r),role:"rowgroup"},[X("div",{style:s(i),class:o.e("header")},[f(),d()])])}}});var see=ree;const iee=e=>{const{isScrolling:t}=Te(Bm),n=P(!1),o=P(),a=k(()=>xe(e.estimatedRowHeight)&&e.rowIndex>=0),l=(u=!1)=>{const c=s(o);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:v,rowIndex:m,style:h}=e,{height:p}=c.getBoundingClientRect();n.value=!0,ke(()=>{if(u||p!==Number.parseInt(h.height)){const b=d[0],g=(b==null?void 0:b.placeholderSign)===$s;f==null||f({rowKey:v,height:p,rowIndex:m},b&&!g&&b.fixed)}})},r=k(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,v=e.rowEventHandlers||{},m={};return Object.entries(v).forEach(([h,p])=>{lt(p)&&(m[h]=b=>{p({event:b,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:h,hovered:p})=>{const b=m[h];m[h]=g=>{f({event:g,hovered:p,rowData:u,rowIndex:c,rowKey:d}),b==null||b(g)}}),m}),i=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:v}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:v})};return st(()=>{s(a)&&l(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:o,eventHandlers:r,onExpand:i}},uee="ElTableV2TableRow",cee=le({name:uee,props:Ul,setup(e,{expose:t,slots:n,attrs:o}){const{eventHandlers:a,isScrolling:l,measurable:r,measured:i,rowRef:u,onExpand:c}=iee(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:v,depth:m,rowData:h,rowIndex:p,style:b}=e;let g=d.map((w,C)=>{const y=Ee(h.children)&&h.children.length>0&&w.key===v;return n.cell({column:w,columns:d,columnIndex:C,depth:m,style:f[w.key],rowData:h,rowIndex:p,isScrolling:s(l),expandIconProps:y?{rowData:h,rowIndex:p,onExpand:c}:void 0})});if(n.row&&(g=n.row({cells:g.map(w=>Ee(w)&&w.length===1?w[0]:w),style:b,columns:d,depth:m,rowData:h,rowIndex:p,isScrolling:s(l)})),s(r)){const{height:w,...C}=b||{},y=s(i);return X("div",rt({ref:u,class:e.class,style:y?b:C,role:"row"},o,s(a)),[g])}return X("div",rt(o,{ref:u,class:e.class,style:b,role:"row"},s(a)),[g])}}});var dee=cee;const fee=e=>{const{sortOrder:t}=e;return X("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[X($e,{size:14},{default:()=>[t===jl.ASC?X(FV,null,null):X(DV,null,null)]})])};var pee=fee;const vee=e=>{const{expanded:t,expandable:n,onExpand:o,style:a,size:l,ariaLabel:r}=e,i={onClick:n?()=>o(!t):void 0,ariaLabel:r,ariaExpanded:t,class:e.class};return X("button",rt(i,{type:"button"}),[X($e,{size:l,style:a},{default:()=>[X(to,null,null)]})])};var hee=vee;const mee="ElTableV2Grid",gee=e=>{const t=P(),n=P(),o=P(0),a=k(()=>{const{data:b,rowHeight:g,estimatedRowHeight:w}=e;if(!w)return b.length*g}),l=k(()=>{const{fixedData:b,rowHeight:g}=e;return((b==null?void 0:b.length)||0)*g}),r=k(()=>yd(e.headerHeight)),i=k(()=>{const{height:b}=e;return Math.max(0,b-s(r)-s(l))}),u=k(()=>s(r)+s(l)>0),c=({data:b,rowIndex:g})=>b[g][e.rowKey];function d({rowCacheStart:b,rowCacheEnd:g,rowVisibleStart:w,rowVisibleEnd:C}){var y;(y=e.onRowsRendered)==null||y.call(e,{rowCacheStart:b,rowCacheEnd:g,rowVisibleStart:w,rowVisibleEnd:C})}function f(b,g){var w;(w=n.value)==null||w.resetAfterRowIndex(b,g)}function v(b,g){const w=s(t),C=s(n);Rt(b)?(w==null||w.scrollToLeft(b.scrollLeft),o.value=b.scrollLeft,C==null||C.scrollTo(b)):(w==null||w.scrollToLeft(b),o.value=b,C==null||C.scrollTo({scrollLeft:b,scrollTop:g}))}function m(b){var g;(g=s(n))==null||g.scrollTo({scrollTop:b})}function h(b,g){var w;(w=s(n))==null||w.scrollToItem(b,1,g)}function p(){var b,g;(b=s(n))==null||b.$forceUpdate(),(g=s(t))==null||g.$forceUpdate()}return ue(()=>e.bodyWidth,()=>{var b;xe(e.estimatedRowHeight)&&((b=n.value)==null||b.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:p,fixedRowHeight:l,gridHeight:i,hasHeader:u,headerHeight:r,headerRef:t,totalHeight:a,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:v,scrollToTop:m,scrollToRow:h,scrollLeft:o}},Km=le({name:mee,props:wd,setup(e,{slots:t,expose:n}){const{ns:o}=Te(Bm),{bodyRef:a,fixedRowHeight:l,gridHeight:r,hasHeader:i,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:v,onItemRendered:m,resetAfterRowIndex:h,scrollTo:p,scrollToTop:b,scrollToRow:g,scrollLeft:w}=gee(e);St(M_,w),Vd(async()=>{var y;await ke();const S=(y=a.value)==null?void 0:y.states.scrollTop;S&&b(Math.round(S)+1)}),n({forceUpdate:f,totalHeight:d,scrollTo:p,scrollToTop:b,scrollToRow:g,resetAfterRowIndex:h});const C=()=>e.bodyWidth;return()=>{const{cache:y,columns:S,data:E,fixedData:_,useIsScrolling:O,scrollbarAlwaysOn:N,scrollbarEndGap:R,scrollbarStartGap:A,style:I,rowHeight:L,bodyWidth:H,estimatedRowHeight:K,headerWidth:Y,height:M,width:T,getRowHeight:D,onScroll:B}=e,z=xe(K),U=z?L$:O$,V=s(c);return X("div",{role:"table",class:[o.e("table"),e.class],style:I},[X(U,{ref:a,data:E,useIsScrolling:O,itemKey:v,columnCache:0,columnWidth:z?C:H,totalColumn:1,totalRow:E.length,rowCache:y,rowHeight:z?D:L,width:T,height:s(r),class:o.e("body"),role:"rowgroup",scrollbarStartGap:A,scrollbarEndGap:R,scrollbarAlwaysOn:N,onScroll:B,onItemRendered:m,perfMode:!1},{default:J=>{var q;const ae=E[J.rowIndex];return(q=t.row)==null?void 0:q.call(t,{...J,columns:S,rowData:ae})}}),s(i)&&X(see,{ref:u,class:o.e("header-wrapper"),columns:S,headerData:E,headerHeight:e.headerHeight,fixedHeaderData:_,rowWidth:Y,rowHeight:L,width:T,height:Math.min(V+s(l),M)},{dynamic:t.header,fixed:t.row})])}}});function bee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const yee=(e,{slots:t})=>{const{mainTableRef:n,...o}=e;return X(Km,rt({ref:n},o),bee(t)?t:{default:()=>[t]})};function wee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Cee=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...o}=e;return X(Km,rt({ref:n},o),wee(t)?t:{default:()=>[t]})};function See(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const kee=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...o}=e;return X(Km,rt({ref:n},o),See(t)?t:{default:()=>[t]})};function Eee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const $ee=(e,{slots:t})=>{const{columns:n,columnsStyles:o,depthMap:a,expandColumnKey:l,expandedRowKeys:r,estimatedRowHeight:i,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:v,rowProps:m,rowClass:h,rowKey:p,rowEventHandlers:b,ns:g,onRowHovered:w,onRowExpanded:C}=e,y=yr(h,{columns:n,rowData:c,rowIndex:d},""),S=yr(m,{columns:n,rowData:c,rowIndex:d}),E=c[p],_=a[E]||0,O=Boolean(l),N=d<0,R=[g.e("row"),y,g.is("expanded",O&&r.includes(E)),g.is("fixed",!_&&N),g.is("customized",Boolean(t.row)),{[g.e(`row-depth-${_}`)]:O&&d>=0}],A=u?w:void 0,I={...S,columns:n,columnsStyles:o,class:R,depth:_,expandColumnKey:l,estimatedRowHeight:N?void 0:i,isScrolling:v,rowIndex:d,rowData:c,rowKey:E,rowEventHandlers:b,style:f};return X(dee,rt(I,{onRowExpand:C,onMouseenter:K=>{A==null||A({hovered:!0,rowKey:E,event:K,rowData:c,rowIndex:d})},onMouseleave:K=>{A==null||A({hovered:!1,rowKey:E,event:K,rowData:c,rowIndex:d})},rowkey:E}),Eee(t)?t:{default:()=>[t]})},jm=({columns:e,column:t,columnIndex:n,depth:o,expandIconProps:a,isScrolling:l,rowData:r,rowIndex:i,style:u,expandedRowKeys:c,ns:d,t:f,cellProps:v,expandColumnKey:m,indentSize:h,iconSize:p,rowKey:b},{slots:g})=>{const w=Yl(u);if(t.placeholderSign===$s)return X("div",{class:d.em("row-cell","placeholder"),style:w},null);const{cellRenderer:C,dataKey:y,dataGetter:S}=t,E=lt(S)?S({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i}):hn(r,y!=null?y:""),_=yr(v,{cellData:E,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:r}),O={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:E,isScrolling:l,rowData:r,rowIndex:i},N=I_(C),R=N?N(O):ee(g,"default",O,()=>[X(eee,O,null)]),A=[d.e("row-cell"),t.class,t.align===Es.CENTER&&d.is("align-center"),t.align===Es.RIGHT&&d.is("align-right")],I=i>=0&&m&&t.key===m,L=i>=0&&c.includes(r[b]);let H;const K=`margin-inline-start: ${o*h}px;`;return I&&(Rt(a)?H=X(hee,rt(a,{class:[d.e("expand-icon"),d.is("expanded",L)],size:p,expanded:L,ariaLabel:f(L?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:K,expandable:!0}),null):H=X("div",{style:[K,`width: ${p}px; height: ${p}px;`].join(" ")},null)),X("div",rt({class:A,style:w},_,{role:"cell"}),[H,R])};jm.inheritAttrs=!1;function _ee(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Tee=({columns:e,columnsStyles:t,headerIndex:n,style:o,headerClass:a,headerProps:l,ns:r},{slots:i})=>{const u={columns:e,headerIndex:n},c=[r.e("header-row"),yr(a,u,""),r.is("customized",Boolean(i.header))],d={...yr(l,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:o};return X(aee,d,_ee(i)?i:{default:()=>[i]})},F_=(e,{slots:t})=>{const{column:n,ns:o,t:a,style:l,onColumnSorted:r}=e,i=Yl(l);if(n.placeholderSign===$s)return X("div",{class:o.em("header-row-cell","placeholder"),style:i},null);const{headerCellRenderer:u,headerClass:c,sortable:d}=n,f={...e,class:o.e("header-cell-text")},v=I_(u),m=v?v(f):ee(t,"default",f,()=>[X(tee,f,null)]),{sortBy:h,sortState:p,headerCellProps:b}=e;let g,w,C;if(p){const E=p[n.key];g=Boolean(Dm[E]),w=g?E:jl.ASC}else g=n.key===h.key,w=g?h.order:jl.ASC;w===jl.ASC?C="ascending":w===jl.DESC?C="descending":C=void 0;const y=[o.e("header-cell"),yr(c,e,""),n.align===Es.CENTER&&o.is("align-center"),n.align===Es.RIGHT&&o.is("align-right"),d&&o.is("sortable")],S={...yr(b,e),onClick:n.sortable?r:void 0,ariaSort:d?C:void 0,class:y,style:i,["data-key"]:n.key};return X("div",rt(S,{role:"columnheader"}),[m,d&&X(pee,{class:[o.e("sort-icon"),g&&o.is("sorting")],sortOrder:w,ariaLabel:a("el.table.sortLabel",{column:n.title||""})},null)])},V_=(e,{slots:t})=>{var n;return X("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};V_.displayName="ElTableV2Footer";const z_=(e,{slots:t})=>{const n=ee(t,"default",{},()=>[X(Zh,null,null)]);return X("div",{class:e.class,style:e.style},[n])};z_.displayName="ElTableV2Empty";const H_=(e,{slots:t})=>{var n;return X("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};H_.displayName="ElTableV2Overlay";function qi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Jt(e)}const Oee="ElTableV2",Ree=le({name:Oee,props:B_,setup(e,{slots:t,expose:n}){const o=de("table-v2"),{t:a}=wt(),{columnsStyles:l,fixedColumnsOnLeft:r,fixedColumnsOnRight:i,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:v,data:m,depthMap:h,expandedRowKeys:p,hasFixedColumns:b,mainTableRef:g,leftTableRef:w,rightTableRef:C,isDynamic:y,isResetting:S,isScrolling:E,bodyWidth:_,emptyStyle:O,rootStyle:N,footerHeight:R,showEmpty:A,scrollTo:I,scrollToLeft:L,scrollToTop:H,scrollToRow:K,getRowHeight:Y,onColumnSorted:M,onRowHeightChange:T,onRowHovered:D,onRowExpanded:B,onRowsRendered:z,onScroll:U,onVerticalScroll:V}=JQ(e);return n({scrollTo:I,scrollToLeft:L,scrollToTop:H,scrollToRow:K}),St(Bm,{ns:o,isResetting:S,isScrolling:E}),()=>{const{cache:J,cellProps:q,estimatedRowHeight:ae,expandColumnKey:ie,fixedData:oe,headerHeight:fe,headerClass:re,headerProps:j,headerCellProps:se,sortBy:Se,sortState:Ie,rowHeight:Le,rowClass:He,rowEventHandlers:We,rowKey:tt,rowProps:Tt,scrollbarAlwaysOn:Xe,indentSize:Ae,iconSize:Pe,useIsScrolling:Ze,vScrollbarSize:et,width:gt}=e,vt=s(m),Ce={cache:J,class:o.e("main"),columns:s(u),data:vt,fixedData:oe,estimatedRowHeight:ae,bodyWidth:s(_),headerHeight:fe,headerWidth:s(_),height:s(c),mainTableRef:g,rowKey:tt,rowHeight:Le,scrollbarAlwaysOn:Xe,scrollbarStartGap:2,scrollbarEndGap:et,useIsScrolling:Ze,width:gt,getRowHeight:Y,onRowsRendered:z,onScroll:U},Ve=s(f),Ke=s(d),Yt={cache:J,class:o.e("left"),columns:s(r),data:vt,fixedData:oe,estimatedRowHeight:ae,leftTableRef:w,rowHeight:Le,bodyWidth:Ve,headerWidth:Ve,headerHeight:fe,height:Ke,rowKey:tt,scrollbarAlwaysOn:Xe,scrollbarStartGap:2,scrollbarEndGap:et,useIsScrolling:Ze,width:Ve,getRowHeight:Y,onScroll:V},Be=s(v),ht={cache:J,class:o.e("right"),columns:s(i),data:vt,fixedData:oe,estimatedRowHeight:ae,rightTableRef:C,rowHeight:Le,bodyWidth:Be,headerWidth:Be,headerHeight:fe,height:Ke,rowKey:tt,scrollbarAlwaysOn:Xe,scrollbarStartGap:2,scrollbarEndGap:et,width:Be,style:`${o.cssVarName("table-scrollbar-size")}: ${et}px`,useIsScrolling:Ze,getRowHeight:Y,onScroll:V},ut=s(l),bt={ns:o,depthMap:s(h),columnsStyles:ut,expandColumnKey:ie,expandedRowKeys:s(p),estimatedRowHeight:ae,hasFixedColumns:s(b),rowProps:Tt,rowClass:He,rowKey:tt,rowEventHandlers:We,onRowHovered:D,onRowExpanded:B,onRowHeightChange:T},ve={cellProps:q,expandColumnKey:ie,indentSize:Ae,iconSize:Pe,rowKey:tt,expandedRowKeys:s(p),ns:o,t:a},Oe={ns:o,headerClass:re,headerProps:j,columnsStyles:ut},ce={ns:o,t:a,sortBy:Se,sortState:Ie,headerCellProps:se,onColumnSorted:M},Me={row:he=>X($ee,rt(he,bt),{row:t.row,cell:_e=>{let je;return t.cell?X(jm,rt(_e,ve,{style:ut[_e.column.key]}),qi(je=t.cell(_e))?je:{default:()=>[je]}):X(jm,rt(_e,ve,{style:ut[_e.column.key]}),null)}}),header:he=>X(Tee,rt(he,Oe),{header:t.header,cell:_e=>{let je;return t["header-cell"]?X(F_,rt(_e,ce,{style:ut[_e.column.key]}),qi(je=t["header-cell"](_e))?je:{default:()=>[je]}):X(F_,rt(_e,ce,{style:ut[_e.column.key]}),null)}})},pt=[e.class,o.b(),o.e("root"),o.is("dynamic",s(y))],Ut={class:o.e("footer"),style:s(R)};return X("div",{class:pt,style:s(N)},[X(yee,Ce,qi(Me)?Me:{default:()=>[Me]}),X(Cee,Yt,qi(Me)?Me:{default:()=>[Me]}),X(kee,ht,qi(Me)?Me:{default:()=>[Me]}),t.footer&&X(V_,Ut,{default:t.footer}),s(A)&&X(z_,{class:o.e("empty"),style:s(O)},{default:t.empty}),t.overlay&&X(H_,{class:o.e("overlay")},{default:t.overlay})])}}});var W_=Ree;const K_=me({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:G(Function)}}),xee=le({name:"ElAutoResizer",props:K_,setup(e,{slots:t}){const n=de("auto-resizer"),{height:o,width:a,sizer:l}=ZQ(e),r={width:"100%",height:"100%"};return()=>{var i;return X("div",{ref:l,class:n.b(),style:r},[(i=t.default)==null?void 0:i.call(t,{height:o.value,width:a.value})])}}}),j_=Qe(W_),Y_=Qe(xee),Xi=Symbol("tabsRootContextKey"),U_=me({tabs:{type:G(Array),default:()=>un([])},tabRefs:{type:G(Object),default:()=>un({})}}),G_="ElTabBar",Iee=le({name:G_,__name:"tab-bar",props:U_,setup(e,{expose:t}){const n=e,o=Te(Xi);o||kn(G_,"<el-tabs><el-tab-bar /></el-tabs>");const a=de("tabs"),l=P(),r=P(),i=k(()=>{var m;return $t(o.props.defaultValue)||Boolean((m=r.value)==null?void 0:m.transform)}),u=()=>{let m=0,h=0;const p=["top","bottom"].includes(o.props.tabPosition)?"width":"height",b=p==="width"?"x":"y",g=b==="x"?"left":"top";return n.tabs.every(w=>{if($t(w.paneName))return!1;const C=n.tabRefs[w.paneName];if(!C)return!1;if(!w.active)return!0;m=C[`offset${Il(g)}`],h=C[`client${Il(p)}`];const y=window.getComputedStyle(C);return p==="width"&&(h-=Number.parseFloat(y.paddingLeft)+Number.parseFloat(y.paddingRight),m+=Number.parseFloat(y.paddingLeft)),!1}),{[p]:`${h}px`,transform:`translate${Il(b)}(${m}px)`}},c=()=>r.value=u(),d=[],f=()=>{d.forEach(m=>m.stop()),d.length=0,Object.values(n.tabRefs).forEach(m=>{d.push(Qt(m,c))})};ue(()=>n.tabs,async()=>{await ke(),c(),f()},{immediate:!0});const v=Qt(l,()=>c());return Dt(()=>{d.forEach(m=>m.stop()),d.length=0,v.stop()}),t({ref:l,update:c}),(m,h)=>i.value?($(),F("div",{key:0,ref_key:"barRef",ref:l,class:x([s(a).e("active-bar"),s(a).is(s(o).props.tabPosition)]),style:Ne(r.value)},null,6)):te("v-if",!0)}});var Mee=ye(Iee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const q_=me({panes:{type:G(Array),default:()=>un([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),X_={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},Z_="ElTabNav",Nee=le({name:Z_,props:q_,emits:X_,setup(e,{expose:t,emit:n}){const o=Te(Xi);o||kn(Z_,"<el-tabs><tab-nav /></el-tabs>");const a=de("tabs"),l=mR(),r=bR(),i=P(),u=P(),c=P(),d=P({}),f=P(),v=P(!1),m=P(0),h=P(!1),p=P(!0),b=Zt(),g=k(()=>["top","bottom"].includes(o.props.tabPosition)),w=k(()=>g.value?"width":"height"),C=k(()=>({transform:`translate${w.value==="width"?"X":"Y"}(-${m.value}px)`})),{width:y,height:S}=Ud(i),{width:E,height:_}=Ud(u,{width:0,height:0},{box:"border-box"}),O=k(()=>g.value?y.value:S.value),N=k(()=>g.value?E.value:_.value),{onWheel:R}=b$({atStartEdge:k(()=>m.value<=0),atEndEdge:k(()=>N.value-m.value<=O.value),layout:k(()=>g.value?"horizontal":"vertical")},B=>{m.value=Xs(m.value+B,0,N.value-O.value)}),A=()=>{if(!i.value)return;const B=i.value[`offset${Il(w.value)}`],z=m.value;if(!z)return;const U=z>B?z-B:0;m.value=U},I=()=>{if(!i.value||!u.value)return;const B=u.value[`offset${Il(w.value)}`],z=i.value[`offset${Il(w.value)}`],U=m.value;if(B-U<=z)return;const V=B-U>z*2?U+z:B-z;m.value=V},L=async()=>{const B=u.value;if(!v.value||!c.value||!i.value||!B)return;await ke();const z=d.value[e.currentName];if(!z)return;const U=i.value,V=z.getBoundingClientRect(),J=U.getBoundingClientRect(),q=g.value?B.offsetWidth-J.width:B.offsetHeight-J.height,ae=m.value;let ie=ae;g.value?(V.left<J.left&&(ie=ae-(J.left-V.left)),V.right>J.right&&(ie=ae+V.right-J.right)):(V.top<J.top&&(ie=ae-(J.top-V.top)),V.bottom>J.bottom&&(ie=ae+(V.bottom-J.bottom))),ie=Math.max(ie,0),m.value=Math.min(ie,q)},H=()=>{var B;if(!u.value||!i.value)return;e.stretch&&((B=f.value)==null||B.update());const z=u.value[`offset${Il(w.value)}`],U=i.value[`offset${Il(w.value)}`],V=m.value;U<z?(v.value=v.value||{},v.value.prev=V,v.value.next=V+U<z,z-V<U&&(m.value=z-U)):(v.value=!1,V>0&&(m.value=0))},K=B=>{const z=Ht(B);let U=0;switch(z){case pe.left:case pe.up:U=-1;break;case pe.right:case pe.down:U=1;break;default:return}const V=Array.from(B.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let q=V.indexOf(B.target)+U;q<0?q=V.length-1:q>=V.length&&(q=0),V[q].focus({preventScroll:!0}),V[q].click(),Y()},Y=()=>{p.value&&(h.value=!0)},M=()=>h.value=!1,T=(B,z)=>{d.value[z]=B},D=async()=>{await ke();const B=d.value[e.currentName];B==null||B.focus({preventScroll:!0})};return ue(l,B=>{B==="hidden"?p.value=!1:B==="visible"&&setTimeout(()=>p.value=!0,50)}),ue(r,B=>{B?setTimeout(()=>p.value=!0,50):p.value=!1}),Qt(c,()=>{Ma(H)}),st(()=>setTimeout(()=>L(),0)),Ga(()=>H()),t({scrollToActiveTab:L,removeFocus:M,focusActiveTab:D,tabListRef:u,tabBarRef:f,scheduleRender:()=>uu(b)}),()=>{const B=v.value?[X("span",{class:[a.e("nav-prev"),a.is("disabled",!v.value.prev)],onClick:A},[X($e,null,{default:()=>[X(il,null,null)]})]),X("span",{class:[a.e("nav-next"),a.is("disabled",!v.value.next)],onClick:I},[X($e,null,{default:()=>[X(to,null,null)]})])]:null,z=e.panes.map((U,V)=>{var J,q,ae,ie,oe;const fe=U.uid,re=U.props.disabled,j=(q=(J=U.props.name)!=null?J:U.index)!=null?q:`${V}`,se=!re&&(U.isClosable||U.props.closable!==!1&&e.editable);U.index=`${V}`;const Se=se?X($e,{class:"is-icon-close",onClick:He=>n("tabRemove",U,He)},{default:()=>[X(jo,null,null)]}):null,Ie=((ie=(ae=U.slots).label)==null?void 0:ie.call(ae))||U.props.label,Le=!re&&U.active?(oe=e.tabindex)!=null?oe:o.props.tabindex:-1;return X("div",{ref:He=>T(He,j),class:[a.e("item"),a.is(o.props.tabPosition),a.is("active",U.active),a.is("disabled",re),a.is("closable",se),a.is("focus",h.value)],id:`tab-${j}`,key:`tab-${fe}`,"aria-controls":`pane-${j}`,role:"tab","aria-selected":U.active,tabindex:Le,onFocus:()=>Y(),onBlur:()=>M(),onClick:He=>{M(),n("tabClick",U,j,He)},onKeydown:He=>{const We=Ht(He);se&&(We===pe.delete||We===pe.backspace)&&n("tabRemove",U,He)}},[Ie,Se])});return b.value,X("div",{ref:c,class:[a.e("nav-wrap"),a.is("scrollable",!!v.value),a.is(o.props.tabPosition)]},[B,X("div",{class:a.e("nav-scroll"),ref:i},[e.panes.length>0?X("div",{class:[a.e("nav"),a.is(o.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:u,style:C.value,role:"tablist",onKeydown:K,onWheel:R},[e.type?null:X(Mee,{ref:f,tabs:[...e.panes],tabRefs:d.value},null),z]):null])])}}}),J_=me({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:G(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),Ym=e=>ze(e)||xe(e),Q_={[Ue]:e=>Ym(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Ym(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Ym(e),tabAdd:()=>!0},Aee=le({name:"ElTabs",props:J_,emits:Q_,setup(e,{emit:t,slots:n,expose:o}){var a;const l=de("tabs"),r=k(()=>["left","right"].includes(e.tabPosition)),{children:i,addChild:u,removeChild:c,ChildrenSorter:d}=Ci(it(),"ElTabPane"),f=P(),v=P((a=$t(e.modelValue)?e.defaultValue:e.modelValue)!=null?a:"0"),m=async(C,y=!1)=>{var S,E,_,O;if(!(v.value===C||$t(C)))try{let N;if(e.beforeLeave){const R=e.beforeLeave(C,v.value);N=R instanceof Promise?await R:R}else N=!0;if(N!==!1){const R=(S=i.value.find(A=>A.paneName===v.value))==null?void 0:S.isFocusInsidePane();v.value=C,y&&(t(Ue,C),t("tabChange",C)),(_=(E=f.value)==null?void 0:E.removeFocus)==null||_.call(E),R&&((O=f.value)==null||O.focusActiveTab())}}catch(N){}},h=(C,y,S)=>{C.props.disabled||(t("tabClick",C,S),m(y,!0))},p=(C,y)=>{C.props.disabled||$t(C.props.name)||(y.stopPropagation(),t("edit",C.props.name,"remove"),t("tabRemove",C.props.name))},b=()=>{t("edit",void 0,"add"),t("tabAdd")},g=C=>{const y=Ht(C);[pe.enter,pe.numpadEnter].includes(y)&&b()},w=C=>{const y=C.el.firstChild,S=["bottom","right"].includes(e.tabPosition)?C.children[0].el:C.children[1].el;y!==S&&y.before(S)};return ue(()=>e.modelValue,C=>m(C)),ue(v,async()=>{var C;await ke(),(C=f.value)==null||C.scrollToActiveTab()}),St(Xi,{props:e,currentName:v,registerPane:u,unregisterPane:c,nav$:f}),o({currentName:v,get tabNavRef(){return Hr(f.value,["scheduleRender"])}}),()=>{const C=n["add-icon"],y=e.editable||e.addable?X("div",{class:[l.e("new-tab"),r.value&&l.e("new-tab-vertical")],tabindex:e.tabindex,onClick:b,onKeydown:g},[C?ee(n,"add-icon"):X($e,{class:l.is("icon-plus")},{default:()=>[X(B1,null,null)]})]):null,S=()=>X(Nee,{ref:f,currentName:v.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:h,onTabRemove:p},null),E=X("div",{class:[l.e("header"),r.value&&l.e("header-vertical"),l.is(e.tabPosition)]},[X(d,null,{default:S,$stable:!0}),y]),_=X("div",{class:l.e("content")},[ee(n,"default")]);return X("div",{class:[l.b(),l.m(e.tabPosition),{[l.m("card")]:e.type==="card",[l.m("border-card")]:e.type==="border-card"}],onVnodeMounted:w,onVnodeUpdated:w},[_,E])}}}),eT=me({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),Pee=["id","aria-hidden","aria-labelledby"],tT="ElTabPane",Lee=le({name:tT,__name:"tab-pane",props:eT,setup(e){const t=e,n=it(),o=$n(),a=Te(Xi);a||kn(tT,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const l=de("tab-pane"),r=P(),i=P(),u=k(()=>{var p;return(p=t.closable)!=null?p:a.props.closable}),c=k(()=>{var p;return a.currentName.value===((p=t.name)!=null?p:i.value)}),d=P(c.value),f=k(()=>{var p;return(p=t.name)!=null?p:i.value}),v=k(()=>!t.lazy||d.value||c.value),m=()=>{var p;return(p=r.value)==null?void 0:p.contains(document.activeElement)};ue(c,p=>{p&&(d.value=!0)});const h=Lt({uid:n.uid,getVnode:()=>n.vnode,slots:o,props:t,paneName:f,active:c,index:i,isClosable:u,isFocusInsidePane:m});return a.registerPane(h),Dt(()=>{a.unregisterPane(h)}),Ng(()=>{var p;o.label&&((p=a.nav$.value)==null||p.scheduleRender())}),(p,b)=>v.value?ot(($(),F("div",{key:0,id:`pane-${f.value}`,ref_key:"paneRef",ref:r,class:x(s(l).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${f.value}`},[ee(p.$slots,"default")],10,Pee)),[[xt,c.value]]):te("v-if",!0)}});var nT=ye(Lee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const oT=Qe(Aee,{TabPane:nT}),aT=sn(nT),lT=me({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:ta,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Dee=le({name:"ElText",__name:"text",props:lT,setup(e){const t=e,n=P(),o=bn(),a=de("text"),l=k(()=>[a.b(),a.m(t.type),a.m(o.value),a.is("truncated",t.truncated),a.is("line-clamp",!$t(t.lineClamp))]),r=()=>{var i,u,c,d,f,v,m;if(qa().title)return;let p=!1;const b=((i=n.value)==null?void 0:i.textContent)||"";if(t.truncated){const g=(u=n.value)==null?void 0:u.offsetWidth,w=(c=n.value)==null?void 0:c.scrollWidth;g&&w&&w>g&&(p=!0)}else if(!$t(t.lineClamp)){const g=(d=n.value)==null?void 0:d.offsetHeight,w=(f=n.value)==null?void 0:f.scrollHeight;g&&w&&w>g&&(p=!0)}p?(v=n.value)==null||v.setAttribute("title",b):(m=n.value)==null||m.removeAttribute("title")};return st(r),Ga(r),(i,u)=>($(),ne(at(i.tag),{ref_key:"textRef",ref:n,class:x(l.value),style:Ne({"-webkit-line-clamp":i.lineClamp})},{default:Q(()=>[ee(i.$slots,"default")]),_:3},8,["class","style"]))}});var Bee=ye(Dee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const Cd=Qe(Bee),rT=me({format:{type:String,default:"HH:mm"},modelValue:{type:G(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:G(String),default:"light"},clearable:{type:Boolean,default:!0},size:En,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:G(String)},maxTime:{type:G(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:G([String,Object]),default:()=>L1},clearIcon:{type:G([String,Object]),default:()=>ul},popperClass:{type:String,default:""},popperStyle:{type:G([String,Object])},...Dl}),yl=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const o=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:o}}return null},Um=(e,t)=>{const n=yl(e);if(!n)return-1;const o=yl(t);if(!o)return-1;const a=n.minutes+n.hours*60,l=o.minutes+o.hours*60;return a===l?0:a>l?1:-1},sT=e=>`${e}`.padStart(2,"0"),_s=e=>`${sT(e.hours)}:${sT(e.minutes)}`,Fee=(e,t)=>{const n=yl(e);if(!n)return"";const o=yl(t);if(!o)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=o.minutes,a.hours+=o.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,_s(a)},Vee=le({name:"ElTimeSelect",__name:"time-select",props:rT,emits:[ft,"blur","focus","clear",Ue],setup(e,{expose:t}){Je.extend(Av);const{Option:n}=gl,o=e,a=de("input"),l=P(),r=nn(),{lang:i}=wt(),u=k(()=>o.modelValue),c=k(()=>{const g=yl(o.start);return g?_s(g):null}),d=k(()=>{const g=yl(o.end);return g?_s(g):null}),f=k(()=>{const g=yl(o.step);return g?_s(g):null}),v=k(()=>{const g=yl(o.minTime||"");return g?_s(g):null}),m=k(()=>{const g=yl(o.maxTime||"");return g?_s(g):null}),h=k(()=>{var g;const w=[],C=(y,S)=>{w.push({value:y,disabled:Um(S,v.value||"-1:-1")<=0||Um(S,m.value||"100:100")>=0})};if(o.start&&o.end&&o.step){let y=c.value,S;for(;y&&d.value&&Um(y,d.value)<=0;)S=Je(y,"HH:mm").locale(i.value).format(o.format),C(S,y),y=Fee(y,f.value);if(o.includeEndTime&&d.value&&((g=w[w.length-1])==null?void 0:g.value)!==d.value){const E=Je(d.value,"HH:mm").locale(i.value).format(o.format);C(E,d.value)}}return w});return t({blur:()=>{var g,w;(w=(g=l.value)==null?void 0:g.blur)==null||w.call(g)},focus:()=>{var g,w;(w=(g=l.value)==null?void 0:g.focus)==null||w.call(g)}}),(g,w)=>($(),ne(s(gl),{ref_key:"select",ref:l,"model-value":u.value,disabled:s(r),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"empty-values":g.emptyValues,"value-on-clear":g.valueOnClear,"popper-class":g.popperClass,"popper-style":g.popperStyle,"onUpdate:modelValue":w[0]||(w[0]=C=>g.$emit(s(Ue),C)),onChange:w[1]||(w[1]=C=>g.$emit(s(ft),C)),onBlur:w[2]||(w[2]=C=>g.$emit("blur",C)),onFocus:w[3]||(w[3]=C=>g.$emit("focus",C)),onClear:w[4]||(w[4]=()=>g.$emit("clear"))},{prefix:Q(()=>[g.prefixIcon?($(),ne(s($e),{key:0,class:x(s(a).e("prefix-icon"))},{default:Q(()=>[($(),ne(at(g.prefixIcon)))]),_:1},8,["class"])):te("v-if",!0)]),default:Q(()=>[($(!0),F(Fe,null,yt(h.value,C=>($(),ne(s(n),{key:C.value,label:C.value,value:C.value,disabled:C.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}});var zee=ye(Vee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);const iT=Qe(zee),uT="timeline",Hee=le({name:"ElTimeline",props:{reverse:Boolean},setup(e,{slots:t}){const n=de("timeline");return St(uT,t),()=>{var o,a;const l=ua((a=(o=t.default)==null?void 0:o.call(t))!=null?a:[]);return De("ul",{class:[n.b()]},e.reverse?l.reverse():l)}}});var Wee=Hee;const cT=me({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:zt},hollow:Boolean}),Kee=le({name:"ElTimelineItem",__name:"timeline-item",props:cT,setup(e){const t=e,n=de("timeline-item"),o=k(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(a,l)=>($(),F("li",{class:x([s(n).b(),{[s(n).e("center")]:a.center}])},[W("div",{class:x(s(n).e("tail"))},null,2),a.$slots.dot?te("v-if",!0):($(),F("div",{key:0,class:x(o.value),style:Ne({backgroundColor:a.color})},[a.icon?($(),ne(s($e),{key:0,class:x(s(n).e("icon"))},{default:Q(()=>[($(),ne(at(a.icon)))]),_:1},8,["class"])):te("v-if",!0)],6)),a.$slots.dot?($(),F("div",{key:1,class:x(s(n).e("dot"))},[ee(a.$slots,"dot")],2)):te("v-if",!0),W("div",{class:x(s(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?($(),F("div",{key:0,class:x([s(n).e("timestamp"),s(n).is("top")])},ge(a.timestamp),3)):te("v-if",!0),W("div",{class:x(s(n).e("content"))},[ee(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?($(),F("div",{key:1,class:x([s(n).e("timestamp"),s(n).is("bottom")])},ge(a.timestamp),3)):te("v-if",!0)],2)],2))}});var dT=ye(Kee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const fT=Qe(Wee,{TimelineItem:dT}),pT=sn(dT),Gm="left-check-change",qm="right-check-change",Cr=me({data:{type:G(Array),default:()=>[]},titles:{type:G(Array),default:()=>[]},buttonTexts:{type:G(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:G(Function)},leftDefaultChecked:{type:G(Array),default:()=>[]},rightDefaultChecked:{type:G(Array),default:()=>[]},renderContent:{type:G(Function)},modelValue:{type:G(Array),default:()=>[]},format:{type:G(Object),default:()=>({})},filterable:Boolean,props:{type:G(Object),default:()=>un({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Sd=(e,t)=>[e,t].every(Ee)||Ee(e)&&fn(t),vT={[ft]:(e,t,n)=>[e,n].every(Ee)&&["left","right"].includes(t),[Ue]:e=>Ee(e),[Gm]:Sd,[qm]:Sd},Xm="checked-change",jee=me({data:Cr.data,optionRender:{type:G(Function)},placeholder:String,title:String,filterable:Boolean,format:Cr.format,filterMethod:Cr.filterMethod,defaultChecked:Cr.leftDefaultChecked,props:Cr.props}),Yee={[Xm]:Sd},Zi=e=>{const t={label:"label",key:"key",disabled:"disabled"};return k(()=>({...t,...e.props}))},Uee=(e,t,n)=>{const o=Zi(e),a=k(()=>e.data.filter(d=>lt(e.filterMethod)?e.filterMethod(t.query,d):String(d[o.value.label]||d[o.value.key]).toLowerCase().includes(t.query.toLowerCase()))),l=k(()=>a.value.filter(d=>!d[o.value.disabled])),r=k(()=>{const d=t.checked.length,f=e.data.length,{noChecked:v,hasChecked:m}=e.format;return v&&m?d>0?m.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):v.replace(/\${total}/g,f.toString()):`${d}/${f}`}),i=k(()=>{const d=t.checked.length;return d>0&&d<l.value.length}),u=()=>{const d=l.value.map(f=>f[o.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?l.value.map(f=>f[o.value.key]):[]};return ue(()=>t.checked,(d,f)=>{if(u(),t.checkChangeByUser){const v=d.concat(f).filter(m=>!d.includes(m)||!f.includes(m));n(Xm,d,v)}else n(Xm,d),t.checkChangeByUser=!0}),ue(l,()=>{u()}),ue(()=>e.data,()=>{const d=[],f=a.value.map(v=>v[o.value.key]);t.checked.forEach(v=>{f.includes(v)&&d.push(v)}),t.checkChangeByUser=!1,t.checked=d}),ue(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(h=>f.includes(h)))return;const v=[],m=l.value.map(h=>h[o.value.key]);d.forEach(h=>{m.includes(h)&&v.push(h)}),t.checkChangeByUser=!1,t.checked=v},{immediate:!0}),{filteredData:a,checkableData:l,checkedSummary:r,isIndeterminate:i,updateAllChecked:u,handleAllCheckedChange:c}},Gee=(e,t)=>({onSourceCheckedChange:(a,l)=>{e.leftChecked=a,l&&t(Gm,a,l)},onTargetCheckedChange:(a,l)=>{e.rightChecked=a,l&&t(qm,a,l)}}),qee=e=>{const t=Zi(e),n=k(()=>e.data.reduce((l,r)=>(l[r[t.value.key]]=r)&&l,{})),o=k(()=>e.data.filter(l=>!e.modelValue.includes(l[t.value.key]))),a=k(()=>e.targetOrder==="original"?e.data.filter(l=>e.modelValue.includes(l[t.value.key])):e.modelValue.reduce((l,r)=>{const i=n.value[r];return i&&l.push(i),l},[]));return{sourceData:o,targetData:a}},Xee=(e,t,n)=>{const o=Zi(e),a=(i,u,c)=>{n(Ue,i),n(ft,i,u,c)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=i.indexOf(u);c>-1&&i.splice(c,1)}),a(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[o.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[o.value.key]);i=e.targetOrder==="unshift"?u.concat(i):i.concat(u),e.targetOrder==="original"&&(i=e.data.filter(c=>i.includes(c[o.value.key])).map(c=>c[o.value.key])),a(i,"right",t.leftChecked)}}},Zee=le({name:"ElTransferPanel",__name:"transfer-panel",props:jee,emits:Yee,setup(e,{expose:t,emit:n}){const o=e,a=n,l=$n(),r=({option:y})=>y,{t:i}=wt(),u=de("transfer"),c=Lt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=Zi(o),{filteredData:f,checkedSummary:v,isIndeterminate:m,handleAllCheckedChange:h}=Uee(o,c,a),p=k(()=>!co(c.query)&&co(f.value)),b=k(()=>!co(l.default()[0].children)),{checked:g,allChecked:w,query:C}=In(c);return t({query:C}),(y,S)=>($(),F("div",{class:x(s(u).b("panel"))},[W("p",{class:x(s(u).be("panel","header"))},[X(s(Jo),{modelValue:s(w),"onUpdate:modelValue":S[0]||(S[0]=E=>Kn(w)?w.value=E:null),indeterminate:s(m),"validate-event":!1,onChange:s(h)},{default:Q(()=>[Ct(ge(y.title)+" ",1),W("span",null,ge(s(v)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),W("div",{class:x([s(u).be("panel","body"),s(u).is("with-footer",b.value)])},[y.filterable?($(),ne(s(Gn),{key:0,modelValue:s(C),"onUpdate:modelValue":S[1]||(S[1]=E=>Kn(C)?C.value=E:null),class:x(s(u).be("panel","filter")),size:"default",placeholder:y.placeholder,"prefix-icon":s(PV),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):te("v-if",!0),ot(X(s(Zc),{modelValue:s(g),"onUpdate:modelValue":S[2]||(S[2]=E=>Kn(g)?g.value=E:null),"validate-event":!1,class:x([s(u).is("filterable",y.filterable),s(u).be("panel","list")])},{default:Q(()=>[($(!0),F(Fe,null,yt(s(f),E=>($(),ne(s(Jo),{key:E[s(d).key],class:x(s(u).be("panel","item")),value:E[s(d).key],disabled:E[s(d).disabled],"validate-event":!1},{default:Q(()=>{var _;return[X(r,{option:(_=y.optionRender)==null?void 0:_.call(y,E)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[xt,!p.value&&!s(co)(y.data)]]),ot(W("div",{class:x(s(u).be("panel","empty"))},[ee(y.$slots,"empty",{},()=>[Ct(ge(p.value?s(i)("el.transfer.noMatch"):s(i)("el.transfer.noData")),1)])],2),[[xt,p.value||s(co)(y.data)]])],2),b.value?($(),F("p",{key:0,class:x(s(u).be("panel","footer"))},[ee(y.$slots,"default")],2)):te("v-if",!0)],2))}});var hT=ye(Zee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const Jee={key:0},Qee={key:0},ete=le({name:"ElTransfer",__name:"transfer",props:Cr,emits:vT,setup(e,{expose:t,emit:n}){const o=e,a=n,l=$n(),{t:r}=wt(),i=de("transfer"),{formItem:u}=An(),c=Lt({leftChecked:[],rightChecked:[]}),d=Zi(o),{sourceData:f,targetData:v}=qee(o),{onSourceCheckedChange:m,onTargetCheckedChange:h}=Gee(c,a),{addToLeft:p,addToRight:b}=Xee(o,c,a),g=P(),w=P(),C=N=>{switch(N){case"left":g.value.query="";break;case"right":w.value.query="";break}},y=k(()=>o.buttonTexts.length===2),S=k(()=>o.titles[0]||r("el.transfer.titles.0")),E=k(()=>o.titles[1]||r("el.transfer.titles.1")),_=k(()=>o.filterPlaceholder||r("el.transfer.filterPlaceholder"));ue(()=>o.modelValue,()=>{var N;o.validateEvent&&((N=u==null?void 0:u.validate)==null||N.call(u,"change").catch(R=>void 0))});const O=k(()=>N=>{var R;if(o.renderContent)return o.renderContent(De,N);const A=(((R=l.default)==null?void 0:R.call(l,{option:N}))||[]).filter(I=>I.type!==Ua);return A.length?A:De("span",N[d.value.label]||N[d.value.key])});return t({clearQuery:C,leftPanel:g,rightPanel:w}),(N,R)=>($(),F("div",{class:x(s(i).b())},[X(hT,{ref_key:"leftPanel",ref:g,data:s(f),"option-render":O.value,placeholder:_.value,title:S.value,filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,"default-checked":N.leftDefaultChecked,props:o.props,onCheckedChange:s(m)},{empty:Q(()=>[ee(N.$slots,"left-empty")]),default:Q(()=>[ee(N.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),W("div",{class:x(s(i).e("buttons"))},[X(s(xn),{type:"primary",class:x([s(i).e("button"),s(i).is("with-texts",y.value)]),disabled:s(co)(c.rightChecked),onClick:s(p)},{default:Q(()=>[X(s($e),null,{default:Q(()=>[X(s(il))]),_:1}),s($t)(N.buttonTexts[0])?te("v-if",!0):($(),F("span",Jee,ge(N.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),X(s(xn),{type:"primary",class:x([s(i).e("button"),s(i).is("with-texts",y.value)]),disabled:s(co)(c.leftChecked),onClick:s(b)},{default:Q(()=>[s($t)(N.buttonTexts[1])?te("v-if",!0):($(),F("span",Qee,ge(N.buttonTexts[1]),1)),X(s($e),null,{default:Q(()=>[X(s(to))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),X(hT,{ref_key:"rightPanel",ref:w,data:s(v),"option-render":O.value,placeholder:_.value,filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,title:E.value,"default-checked":N.rightDefaultChecked,props:o.props,onCheckedChange:s(h)},{empty:Q(()=>[ee(N.$slots,"right-empty")]),default:Q(()=>[ee(N.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var tte=ye(ete,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const mT=Qe(tte),Ts="$treeNodeId",gT=function(e,t){!t||t[Ts]||Object.defineProperty(t,Ts,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Zm=(e,t)=>t==null?void 0:t[e||Ts],Jm=(e,t,n)=>{const o=e.value.currentNode;n();const a=e.value.currentNode;o!==a&&t("current-change",a?a.data:null,a)},bT=e=>{let t=!0,n=!0,o=!0,a=!0;for(let l=0,r=e.length;l<r;l++){const i=e[l];(i.checked!==!0||i.indeterminate)&&(t=!1,i.disabled||(o=!1)),(i.checked!==!1||i.indeterminate)&&(n=!1),i.isEffectivelyChecked||(a=!1)}return{all:t,none:n,allWithoutDisable:o,half:!t&&!n,isEffectivelyChecked:a}},Ji=function(e){if(e.childNodes.length===0||e.loading){e.isEffectivelyChecked=e.disabled||e.checked;return}const{all:t,none:n,half:o,isEffectivelyChecked:a}=bT(e.childNodes);e.isEffectivelyChecked=a,t?(e.checked=!0,e.indeterminate=!1):o?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const l=e.parent;!l||l.level===0||e.store.checkStrictly||Ji(l)},kd=function(e,t){const n=e.store.props,o=e.data||{},a=n[t];if(lt(a))return a(o,e);if(ze(a))return o[a];if($t(a)){const l=o[t];return $t(l)?"":l}},Qm=function(e,t){e.forEach(n=>{n.canFocus=t,Qm(n.childNodes,t)})};let nte=0;class au{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=nte++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Ln(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var t;const n=this.store;if(!n)throw new Error("[Node]store is required!");n.registerNode(this);const o=n.props;if(o&&typeof o.isLeaf!="undefined"){const r=kd(this,"isLeaf");Vt(r)&&(this.isLeafByUser=r)}if(n.lazy!==!0&&this.data?(this.setData(this.data),n.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&n.lazy&&n.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Ee(this.data)||gT(this,this.data),!this.data)return;const a=n.defaultExpandedKeys,l=n.key;l&&!fn(this.key)&&a&&a.includes(this.key)&&this.expand(null,n.autoExpandParent),l&&n.currentNodeKey!==void 0&&this.key===n.currentNodeKey&&(n.currentNode&&(n.currentNode.isCurrent=!1),n.currentNode=this,n.currentNode.isCurrent=!0),n.lazy&&n._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((t=this.parent)==null?void 0:t.expanded)===!0)&&(this.canFocus=!0)}setData(t){Ee(t)||gT(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ee(this.data)?n=this.data:n=kd(this,"children")||[];for(let o=0,a=n.length;o<a;o++)this.insertChild({data:n[o]})}get label(){return kd(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return kd(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(o=>o===t||n&&o.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,o){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof au)){if(!o){const a=this.getChildren(!0);a!=null&&a.includes(t.data)||($t(n)||n<0?a==null||a.push(t.data):a==null||a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Lt(new au(t)),t instanceof au&&t.initialize()}t.level=this.level+1,$t(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let o;n&&(o=this.childNodes.indexOf(n)),this.insertChild(t,o)}insertAfter(t,n){let o;n&&(o=this.childNodes.indexOf(n),o!==-1&&(o+=1)),this.insertChild(t,o)}removeChild(t){const n=this.getChildren()||[],o=n.indexOf(t.data);o>-1&&n.splice(o,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(o=>o.data===t);n&&this.removeChild(n)}expand(t,n){const o=()=>{if(n){let a=this.parent;for(;a&&a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),Qm(this.childNodes,!0)};this.shouldLoadData()?this.loadData(a=>{Ee(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Ji(this),o())}):o()}doCreateChildren(t,n={}){t.forEach(o=>{this.insertChild(Object.assign({data:o},n),void 0,!0)})}collapse(){this.expanded=!1,Qm(this.childNodes,!1)}shouldLoadData(){return Boolean(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,o,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const r=()=>{if(n){const i=this.childNodes;for(let f=0,v=i.length;f<v;f++){const m=i[f];a=a||t!==!1;const h=m.disabled&&m.isLeaf?m.checked:a;m.setChecked(h,n,!0,a)}const{half:u,all:c,isEffectivelyChecked:d}=bT(i);c||(this.checked=c,this.indeterminate=u),this.isEffectivelyChecked=this.childNodes.length?d:this.disabled||this.checked}};if(this.shouldLoadData()){this.loadData(()=>{r(),Ji(this)},{checked:t!==!1});return}else r()}const l=this.parent;!l||l.level===0||o||Ji(l)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const o=this.store.props;let a="children";return o&&(a=o.children||"children"),$t(n[a])&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(l=>l.data),o={},a=[];t.forEach((l,r)=>{const i=l[Ts];!!i&&n.some(c=>(c==null?void 0:c[Ts])===i)?o[i]={index:r,data:l}:a.push({index:r,data:l})}),this.store.lazy||n.forEach(l=>{o[l==null?void 0:l[Ts]]||this.removeChildByData(l)}),a.forEach(({index:l,data:r})=>{this.insertChild({data:r},l)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const o=l=>{this.childNodes=[],this.doCreateChildren(l,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,l)},a=()=>{this.loading=!1};this.store.load(this,o,a)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const o=n.shift();n.unshift(...o.childNodes),t(o)}}reInitChecked(){this.store.checkStrictly||Ji(this)}}var eg=au;class ote{constructor(t){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const n in t)Ln(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new eg({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()},Gt)}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,o=this.lazy,a=async function(l){const r=l.root?l.root.childNodes:l.childNodes;for(const[i,u]of r.entries())u.visible=!!(n!=null&&n.call(u,t,u.data,u)),i%80===0&&i>0&&await ke(),await a(u);if(!l.visible&&r.length){let i=!0;i=!r.some(u=>u.visible),l.root?l.root.visible=i===!1:l.visible=i===!1}!t||l.visible&&!l.isLeaf&&(!o||l.loaded)&&l.expand()};a(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof eg)return t;const n=Rt(t)?Zm(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){var o;const a=this.getNode(n);(o=a.parent)==null||o.insertBefore({data:t},a)}insertAfter(t,n){var o;const a=this.getNode(n);(o=a.parent)==null||o.insertAfter({data:t},a)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const o=yo(n)?this.root:this.getNode(n);o&&o.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(o=>{const a=n[o];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const n=this.defaultCheckedKeys||[];!fn(t.key)&&n.includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;if(!(!t||!t.data))if(!n)this.nodesMap[t.id]=t;else{const o=t.key;fn(o)||(this.nodesMap[o]=t)}}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(o=>{this.deregisterNode(o)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const o=[],a=function(l){(l.root?l.root.childNodes:l.childNodes).forEach(i=>{(i.checked||n&&i.indeterminate)&&(!t||t&&i.isLeaf)&&o.push(i.data),a(i)})};return a(this),o}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(l=>{l.indeterminate&&t.push(l.data),n(l)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const o in n)Ln(n,o)&&t.push(n[o]);return t}updateChildren(t,n){const o=this.nodesMap[t];if(!o)return;const a=o.childNodes;for(let l=a.length-1;l>=0;l--){const r=a[l];this.remove(r.data)}for(let l=0,r=n.length;l<r;l++){const i=n[l];this.append(i,o.data)}}_setCheckedKeys(t,n=!1,o){const a=this._getAllNodes().sort((u,c)=>u.level-c.level),l=Object.create(null),r=Object.keys(o);a.forEach(u=>u.setChecked(!1,!1));const i=u=>{u.childNodes.forEach(c=>{var d;l[c.data[t]]=!0,(d=c.childNodes)!=null&&d.length&&i(c)})};for(let u=0,c=a.length;u<c;u++){const d=a[u],f=d.data[t].toString();if(!r.includes(f)){d.checked&&!l[f]&&d.setChecked(!1,!1);continue}if(d.childNodes.length&&i(d),d.isLeaf||this.checkStrictly){d.setChecked(!0,!1);continue}if(d.setChecked(!0,!0),n){d.setChecked(!1,!1);const m=function(h){h.childNodes.forEach(b=>{b.isLeaf||b.setChecked(!1,!1),m(b)})};m(d)}}}setCheckedNodes(t,n=!1){const o=this.key,a={};t.forEach(l=>{a[(l||{})[o]]=!0}),this._setCheckedKeys(o,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const o=this.key,a={};t.forEach(l=>{a[l]=!0}),this._setCheckedKeys(o,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const o=this.getNode(n);o&&o.expand(null,this.autoExpandParent)})}setChecked(t,n,o){const a=this.getNode(t);a&&a.setChecked(!!n,o)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){var o;const a=t[this.key],l=this.nodesMap[a];this.setCurrentNode(l),n&&this.currentNode&&this.currentNode.level>1&&((o=this.currentNode.parent)==null||o.expand(null,!0))}setCurrentNodeKey(t,n=!0){var o;if(this.currentNodeKey=t,yo(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const a=this.getNode(t);a&&(this.setCurrentNode(a),n&&this.currentNode&&this.currentNode.level>1&&((o=this.currentNode.parent)==null||o.expand(null,!0)))}}const Ed="RootTree",tg="NodeInstance",ng="TreeNodeMap",ate=le({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=de("tree"),n=Te(tg),o=Te(Ed);return()=>{const a=e.node,{data:l,store:r}=a;return e.renderContent?e.renderContent(De,{_self:n,node:a,data:l,store:r}):ee(o.ctx.slots,"default",{node:a,data:l},()=>[De(Cd,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[a.label])])}}});var lte=ye(ate,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function yT(e){const t=Te(ng,null);let n={treeNodeExpand:o=>{var a;e.node!==o&&((a=e.node)==null||a.collapse())},children:new Set};return t&&t.children.add(n),Dt(()=>{t&&t.children.delete(n),n=null}),St(ng,n),{broadcastExpanded:o=>{if(!!e.accordion)for(const a of n.children)a.treeNodeExpand(o)}}}const wT=Symbol("dragEvents");function rte({props:e,ctx:t,el$:n,dropIndicator$:o,store:a}){const l=de("tree"),r=P({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return St(wT,{treeNodeDragStart:({event:d,treeNode:f})=>{if(!!d.dataTransfer){if(lt(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch(v){}r.value.draggingNode=f,t.emit("node-drag-start",f.node,d)}},treeNodeDragOver:({event:d,treeNode:f})=>{if(!d.dataTransfer)return;const v=f,m=r.value.dropNode;m&&m.node.id!==v.node.id&&eo(m.$el,l.is("drop-inner"));const h=r.value.draggingNode;if(!h||!v)return;let p=!0,b=!0,g=!0,w=!0;lt(e.allowDrop)&&(p=e.allowDrop(h.node,v.node,"prev"),w=b=e.allowDrop(h.node,v.node,"inner"),g=e.allowDrop(h.node,v.node,"next")),d.dataTransfer.dropEffect=b||p||g?"move":"none",(p||b||g)&&(m==null?void 0:m.node.id)!==v.node.id&&(m&&t.emit("node-drag-leave",h.node,m.node,d),t.emit("node-drag-enter",h.node,v.node,d)),p||b||g?r.value.dropNode=v:r.value.dropNode=null,v.node.nextSibling===h.node&&(g=!1),v.node.previousSibling===h.node&&(p=!1),v.node.contains(h.node,!1)&&(b=!1),(h.node===v.node||h.node.contains(v.node))&&(p=!1,b=!1,g=!1);const C=v.$el,y=C.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),S=n.value.getBoundingClientRect(),E=n.value.scrollTop;let _;const O=p?b?.25:g?.45:1:Number.NEGATIVE_INFINITY,N=g?b?.75:p?.55:0:Number.POSITIVE_INFINITY;let R=-9999;const A=d.clientY-y.top;A<y.height*O?_="before":A>y.height*N?_="after":b?_="inner":_="none";const I=C.querySelector(`.${l.be("node","expand-icon")}`).getBoundingClientRect(),L=o.value;_==="before"?R=I.top-S.top+E:_==="after"&&(R=I.bottom-S.top+E),L.style.top=`${R}px`,L.style.left=`${I.right-S.left}px`,_==="inner"?Ko(C,l.is("drop-inner")):eo(C,l.is("drop-inner")),r.value.showDropIndicator=_==="before"||_==="after",r.value.allowDrop=r.value.showDropIndicator||w,r.value.dropType=_,t.emit("node-drag-over",h.node,v.node,d)},treeNodeDragEnd:d=>{var f,v;const{draggingNode:m,dropType:h,dropNode:p}=r.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),(m==null?void 0:m.node.data)&&p){const b={data:m.node.data};h!=="none"&&m.node.remove(),h==="before"?(f=p.node.parent)==null||f.insertBefore(b,p.node):h==="after"?(v=p.node.parent)==null||v.insertAfter(b,p.node):h==="inner"&&p.node.insertChild(b),h!=="none"&&(a.value.registerNode(b),a.value.key&&m.node.eachNode(g=>{var w;(w=a.value.nodesMap[g.data[a.value.key]])==null||w.setChecked(g.checked,!a.value.checkStrictly)})),eo(p.$el,l.is("drop-inner")),t.emit("node-drag-end",m.node,p.node,h,d),h!=="none"&&t.emit("node-drop",m.node,p.node,h,d)}m&&!p&&t.emit("node-drag-end",m.node,null,h,d),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}const ste=le({name:"ElTreeNode",components:{ElCollapseTransition:Pi,ElCheckbox:Jo,NodeContent:lte,ElIcon:$e,Loading:Pa},props:{node:{type:eg,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=de("tree"),{broadcastExpanded:o}=yT(e),a=Te(Ed),l=P(!1),r=P(!1),i=P(),u=P(),c=P(),d=Te(wT),f=it();St(tg,f),e.node.expanded&&(l.value=!0,r.value=!0);const v=a.props.props.children||"children";ue(()=>{var N;const R=(N=e.node.data)==null?void 0:N[v];return R&&[...R]},()=>{e.node.updateChildren()}),ue(()=>e.node.indeterminate,N=>{p(e.node.checked,N)}),ue(()=>e.node.checked,N=>{p(N,e.node.indeterminate)}),ue(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),ue(()=>e.node.expanded,N=>{ke(()=>l.value=N),N&&(r.value=!0)});const m=N=>Zm(a.props.nodeKey,N.data),h=N=>{const R=e.props.class;if(!R)return{};let A;if(lt(R)){const{data:I}=N;A=R(I,N)}else A=R;return ze(A)?{[A]:!0}:A},p=(N,R)=>{(i.value!==N||u.value!==R)&&a.ctx.emit("check-change",e.node.data,N,R),i.value=N,u.value=R},b=N=>{Jm(a.store,a.ctx.emit,()=>{var R;if((R=a==null?void 0:a.props)==null?void 0:R.nodeKey){const I=m(e.node);a.store.value.setCurrentNodeKey(I)}else a.store.value.setCurrentNode(e.node)}),a.currentNode.value=e.node,a.props.expandOnClickNode&&w(),(a.props.checkOnClickNode||e.node.isLeaf&&a.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&C(!e.node.checked),a.ctx.emit("node-click",e.node.data,e.node,f,N)},g=N=>{var R;(R=a.instance.vnode.props)!=null&&R.onNodeContextmenu&&(N.stopPropagation(),N.preventDefault()),a.ctx.emit("node-contextmenu",N,e.node.data,e.node,f)},w=()=>{e.node.isLeaf||(l.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},C=N=>{const R=a==null?void 0:a.props.checkStrictly,A=e.node.childNodes;!R&&A.length&&(N=A.some(I=>!I.isEffectivelyChecked)),e.node.setChecked(N,!R),ke(()=>{const I=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:I.getCheckedNodes(),checkedKeys:I.getCheckedKeys(),halfCheckedNodes:I.getHalfCheckedNodes(),halfCheckedKeys:I.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:a,expanded:l,childNodeRendered:r,oldChecked:i,oldIndeterminate:u,getNodeKey:m,getNodeClass:h,handleSelectChange:p,handleClick:b,handleContextMenu:g,handleExpandIconClick:w,handleCheckChange:C,handleChildNodeExpand:(N,R,A)=>{o(R),a.ctx.emit("node-expand",N,R,A)},handleDragStart:N=>{!a.props.draggable||d.treeNodeDragStart({event:N,treeNode:e})},handleDragOver:N=>{N.preventDefault(),a.props.draggable&&d.treeNodeDragOver({event:N,treeNode:{$el:c.value,node:e.node}})},handleDrop:N=>{N.preventDefault()},handleDragEnd:N=>{!a.props.draggable||d.treeNodeDragEnd(N)},CaretRight:P1}}}),ite=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],ute=["aria-expanded"];function cte(e,t,n,o,a,l){const r=It("el-icon"),i=It("el-checkbox"),u=It("loading"),c=It("node-content"),d=It("el-tree-node"),f=It("el-collapse-transition");return ot(($(),F("div",{ref:"node$",class:x([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=Ye((...v)=>e.handleClick&&e.handleClick(...v),["stop"])),onContextmenu:t[3]||(t[3]=(...v)=>e.handleContextMenu&&e.handleContextMenu(...v)),onDragstart:t[4]||(t[4]=Ye((...v)=>e.handleDragStart&&e.handleDragStart(...v),["stop"])),onDragover:t[5]||(t[5]=Ye((...v)=>e.handleDragOver&&e.handleDragOver(...v),["stop"])),onDragend:t[6]||(t[6]=Ye((...v)=>e.handleDragEnd&&e.handleDragEnd(...v),["stop"])),onDrop:t[7]||(t[7]=Ye((...v)=>e.handleDrop&&e.handleDrop(...v),["stop"]))},[W("div",{class:x(e.ns.be("node","content")),style:Ne({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?($(),ne(r,{key:0,class:x([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Ye(e.handleExpandIconClick,["stop"])},{default:Q(()=>[($(),ne(at(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):te("v-if",!0),e.showCheckbox?($(),ne(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Ye(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):te("v-if",!0),e.node.loading?($(),ne(r,{key:2,class:x([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:Q(()=>[X(u)]),_:1},8,["class"])):te("v-if",!0),X(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),X(f,null,{default:Q(()=>[!e.renderAfterExpand||e.childNodeRendered?ot(($(),F("div",{key:0,class:x(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=Ye(()=>{},["stop"]))},[($(!0),F(Fe,null,yt(e.node.childNodes,v=>($(),ne(d,{key:e.getNodeKey(v),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:v,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,ute)),[[xt,e.expanded]]):te("v-if",!0)]),_:1})],42,ite)),[[xt,e.node.visible]])}var dte=ye(ste,[["render",cte],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function fte({el$:e},t){const n=de("tree");st(()=>{l()}),Ga(()=>{var r;(r=e.value)==null||r.querySelectorAll("input[type=checkbox]").forEach(i=>{i.setAttribute("tabindex","-1")})});function o(r,i){var u,c;const d=t.value.getNode(r[i].dataset.key);return d.canFocus&&d.visible&&(((u=d.parent)==null?void 0:u.expanded)||((c=d.parent)==null?void 0:c.level)===0)}Mt(e,"keydown",r=>{const i=r.target;if(!i.className.includes(n.b("node")))return;const u=Ht(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=c.indexOf(i);let f;if([pe.up,pe.down].includes(u)){if(r.preventDefault(),u===pe.up){f=d===-1?0:d!==0?d-1:c.length-1;const m=f;for(;!o(c,f);){if(f--,f===m){f=-1;break}f<0&&(f=c.length-1)}}else{f=d===-1?0:d<c.length-1?d+1:0;const m=f;for(;!o(c,f);){if(f++,f===m){f=-1;break}f>=c.length&&(f=0)}}f!==-1&&c[f].focus()}[pe.left,pe.right].includes(u)&&(r.preventDefault(),i.click());const v=i.querySelector('[type="checkbox"]');[pe.enter,pe.numpadEnter,pe.space].includes(u)&&v&&(r.preventDefault(),v.click())});const l=()=>{var r;if(!e.value)return;const i=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(d=>{d.setAttribute("tabindex","-1")});const c=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(c.length){c[0].setAttribute("tabindex","0");return}(r=i[0])==null||r.setAttribute("tabindex","0")}}const og=me({data:{type:G(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:G(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:G(Function)},allowDrop:{type:G(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:zt}}),CT={"check-change":(e,t,n)=>e&&Vt(t)&&Vt(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,o)=>e&&t&&o instanceof Event,"node-contextmenu":(e,t,n,o)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,o)=>e&&o,"node-drop":(e,t,n,o)=>e&&t&&o,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},pte=le({name:"ElTree",components:{ElTreeNode:dte},props:og,emits:CT,setup(e,t){const{t:n}=wt(),o=de("tree"),a=P(new ote({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const l=P(a.value.root),r=P(null),i=P(null),u=P(null),{broadcastExpanded:c}=yT(e),{dragState:d}=rte({props:e,ctx:t,el$:i,dropIndicator$:u,store:a});fte({el$:i},a);const f=it(),v=k(()=>{let B=f==null?void 0:f.parent;for(;B;){if(B.type.name==="ElTreeSelect")return!0;B=B.parent}return!1}),m=k(()=>{const{childNodes:B}=l.value;return(!B||B.length===0||B.every(({visible:z})=>!z))&&!v.value});ue(()=>e.currentNodeKey,B=>{a.value.setCurrentNodeKey(B!=null?B:null)}),ue(()=>e.defaultCheckedKeys,(B,z)=>{ln(B,z)||a.value.setDefaultCheckedKey(B!=null?B:[])}),ue(()=>e.defaultExpandedKeys,B=>{a.value.setDefaultExpandedKeys(B!=null?B:[])}),ue(()=>e.data,B=>{a.value.setData(B)},{deep:!0}),ue(()=>e.checkStrictly,B=>{a.value.checkStrictly=B});const h=B=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(B)},p=B=>Zm(e.nodeKey,B.data),b=B=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${B}`)},g=B=>{b("getNodePath");const z=a.value.getNode(B);if(!z)return[];const U=[z.data];let V=z.parent;for(;V&&V!==l.value;)U.push(V.data),V=V.parent;return U.reverse()},w=(B,z)=>a.value.getCheckedNodes(B,z),C=B=>a.value.getCheckedKeys(B),y=()=>{const B=a.value.getCurrentNode();return B?B.data:null},S=()=>{b("getCurrentKey");const B=y();return B?B[e.nodeKey]:null},E=(B,z)=>{b("setCheckedNodes"),a.value.setCheckedNodes(B,z)},_=(B,z)=>{b("setCheckedKeys"),a.value.setCheckedKeys(B,z)},O=(B,z,U)=>{a.value.setChecked(B,z,U)},N=()=>a.value.getHalfCheckedNodes(),R=()=>a.value.getHalfCheckedKeys(),A=(B,z=!0)=>{b("setCurrentNode"),Jm(a,t.emit,()=>{c(B),a.value.setUserCurrentNode(B,z)})},I=(B=null,z=!0)=>{b("setCurrentKey"),Jm(a,t.emit,()=>{c(),a.value.setCurrentNodeKey(B,z)})},L=B=>a.value.getNode(B),H=B=>{a.value.remove(B)},K=(B,z)=>{a.value.append(B,z)},Y=(B,z)=>{a.value.insertBefore(B,z)},M=(B,z)=>{a.value.insertAfter(B,z)},T=(B,z,U)=>{c(z),t.emit("node-expand",B,z,U)},D=(B,z)=>{b("updateKeyChild"),a.value.updateChildren(B,z)};return St(Ed,{ctx:t,props:e,store:a,root:l,currentNode:r,instance:f}),St(ba,void 0),{ns:o,store:a,root:l,currentNode:r,dragState:d,el$:i,dropIndicator$:u,isEmpty:m,filter:h,getNodeKey:p,getNodePath:g,getCheckedNodes:w,getCheckedKeys:C,getCurrentNode:y,getCurrentKey:S,setCheckedNodes:E,setCheckedKeys:_,setChecked:O,getHalfCheckedNodes:N,getHalfCheckedKeys:R,setCurrentNode:A,setCurrentKey:I,t:n,getNode:L,remove:H,append:K,insertBefore:Y,insertAfter:M,handleNodeExpand:T,updateKeyChildren:D}}});function vte(e,t,n,o,a,l){const r=It("el-tree-node");return $(),F("div",{ref:"el$",class:x([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[($(!0),F(Fe,null,yt(e.root.childNodes,i=>($(),ne(r,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?($(),F("div",{key:0,class:x(e.ns.e("empty-block"))},[ee(e.$slots,"empty",{},()=>{var i;return[W("span",{class:x(e.ns.e("empty-text"))},ge((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):te("v-if",!0),ot(W("div",{ref:"dropIndicator$",class:x(e.ns.e("drop-indicator"))},null,2),[[xt,e.dragState.showDropIndicator]])],2)}var hte=ye(pte,[["render",vte],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);const $d=Qe(hte),mte=(e,{attrs:t,emit:n},{select:o,tree:a,key:l})=>{const r=de("tree-select");ue(()=>e.data,()=>{e.filterable&&ke(()=>{var c,d;(d=a.value)==null||d.filter((c=o.value)==null?void 0:c.states.inputValue)})},{flush:"post"});const i=c=>{var d;const f=c.at(-1);if(f.expanded&&f.childNodes.at(-1))i([f.childNodes.at(-1)]);else{const v=(d=a.value.el$)==null?void 0:d.querySelector(`[data-key="${c.at(-1).key}"]`);v==null||v.focus({preventScroll:!0});return}};return st(()=>{Mt(()=>{var c;return(c=o.value)==null?void 0:c.$el},"keydown",async c=>{const d=Ht(c),{dropdownMenuVisible:f}=o.value;[pe.down,pe.up].includes(d)&&f&&(await ke(),setTimeout(()=>{var v,m,h;if(pe.up===d){const p=a.value.store.root.childNodes;i(p);return}(h=(m=(v=o.value.optionsArray[o.value.states.hoveringIndex].$el)==null?void 0:v.parentNode)==null?void 0:m.parentNode)==null||h.focus({preventScroll:!0})}))},{capture:!0})}),{...xa(In(e),Object.keys(gl.props)),...t,class:k(()=>t.class),style:k(()=>t.style),"onUpdate:modelValue":c=>n(Ue,c),valueKey:l,popperClass:k(()=>{const c=[r.e("popper")];return e.popperClass&&c.push(e.popperClass),c.join(" ")}),filterMethod:(c="")=>{var d;e.filterMethod?e.filterMethod(c):e.remoteMethod?e.remoteMethod(c):(d=a.value)==null||d.filter(c)}}},gte=le({extends:Ni,setup(e,t){const n=Ni.setup(e,t);delete n.selectOptionClick;const o=it().proxy;return ke(()=>{n.select.states.cachedOptions.get(o.value)||n.select.onOptionCreate(o)}),ue(()=>t.attrs.visible,a=>{ke(()=>{n.states.visible=a})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});var bte=gte;function ag(e){return e||e===0}function lg(e){return Ee(e)&&e.length}function Os(e){return Ee(e)?e:ag(e)?[e]:[]}function _d(e,t,n,o,a){for(let l=0;l<e.length;l++){const r=e[l];if(t(r,l,e,a))return o?o(r,l,e,a):r;{const i=n(r);if(lg(i)){const u=_d(i,t,n,o,r);if(u)return u}}}}function Td(e,t,n,o){for(let a=0;a<e.length;a++){const l=e[a];t(l,a,e,o);const r=n(l);lg(r)&&Td(r,t,n,l)}}const yte=(e,{attrs:t,slots:n,emit:o},{select:a,tree:l,key:r})=>{ue([()=>e.modelValue,l],()=>{e.showCheckbox&&ke(()=>{const v=l.value;v&&!ln(v.getCheckedKeys(),Os(e.modelValue))&&v.setCheckedKeys(Os(e.modelValue))})},{immediate:!0,deep:!0});const i=k(()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(v,m)=>{var h;const p=i.value[v];return lt(p)?p(m,(h=l.value)==null?void 0:h.getNode(u("value",m))):m[p]},c=Os(e.modelValue).map(v=>_d(e.data||[],m=>u("value",m)===v,m=>u("children",m),(m,h,p,b)=>b&&u("value",b))).filter(v=>ag(v)),d=k(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const v=[];return Td(e.data.concat(e.cacheData),m=>{const h=u("value",m);v.push({value:h,currentLabel:u("label",m),isDisabled:u("disabled",m)})},m=>u("children",m)),v}),f=()=>{var v;return(v=l.value)==null?void 0:v.getCheckedKeys().filter(m=>{var h;const p=(h=l.value)==null?void 0:h.getNode(m);return!fn(p)&&co(p.childNodes)})};return{...xa(In(e),Object.keys($d.props)),...t,nodeKey:r,expandOnClickNode:k(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:k(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(v,{node:m,data:h,store:p})=>v(bte,{value:u("value",h),label:u("label",h),disabled:u("disabled",h),visible:m.visible},e.renderContent?()=>e.renderContent(v,{node:m,data:h,store:p}):n.default?()=>n.default({node:m,data:h,store:p}):void 0),filterNodeMethod:(v,m,h)=>e.filterNodeMethod?e.filterNodeMethod(v,m,h):v?new RegExp(wp(v),"i").test(u("label",m)||""):!0,onNodeClick:(v,m,h)=>{var p,b,g;if((p=t.onNodeClick)==null||p.call(t,v,m,h),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||m.isLeaf)){if(!u("disabled",v)){const w=(b=a.value)==null?void 0:b.states.options.get(u("value",v));(g=a.value)==null||g.handleOptionSelect(w)}}else e.expandOnClickNode&&h.proxy.handleExpandIconClick()},onCheck:(v,m)=>{var h;if(!e.showCheckbox)return;const p=u("value",v),b={};Td([l.value.store.root],y=>b[y.key]=y,y=>y.childNodes);const g=m.checkedKeys,w=e.multiple?Os(e.modelValue).filter(y=>!(y in b)&&!g.includes(y)):[],C=w.concat(g);if(e.checkStrictly)o(Ue,e.multiple?C:C.includes(p)?p:void 0);else if(e.multiple){const y=f();o(Ue,w.concat(y))}else{const y=_d([v],_=>!lg(u("children",_))&&!u("disabled",_),_=>u("children",_)),S=y?u("value",y):void 0,E=ag(e.modelValue)&&!!_d([v],_=>u("value",_)===e.modelValue,_=>u("children",_));o(Ue,S===e.modelValue||E?void 0:S)}ke(()=>{var y;const S=Os(e.modelValue);l.value.setCheckedKeys(S),(y=t.onCheck)==null||y.call(t,v,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})}),(h=a.value)==null||h.focus()},onNodeExpand:(v,m,h)=>{var p;(p=t.onNodeExpand)==null||p.call(t,v,m,h),ke(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&m.checked){const b={},g=l.value.getCheckedKeys();Td([l.value.store.root],y=>b[y.key]=y,y=>y.childNodes);const w=Os(e.modelValue).filter(y=>!(y in b)&&!g.includes(y)),C=f();o(Ue,w.concat(C))}})},cacheOptions:d}};var wte=le({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Te(fs);return ue(()=>e.data,()=>{var n;e.data.forEach(a=>{t.states.cachedOptions.has(a.value)||t.states.cachedOptions.set(a.value,a)});const o=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];_t&&!Array.from(o).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const Cte=le({name:"ElTreeSelect",inheritAttrs:!1,props:{...rh,...og,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:o}=t,a=P(),l=P(),r=k(()=>e.nodeKey||e.valueKey||"value"),i=mte(e,t,{select:a,tree:l,key:r}),{cacheOptions:u,...c}=yte(e,t,{select:a,tree:l,key:r}),d=Lt({});return o(d),st(()=>{Object.assign(d,{...xa(l.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...xa(a.value,["focus","blur","selectedLabel"]),treeRef:l.value,selectRef:a.value})}),()=>De(gl,Lt({...i,ref:f=>a.value=f}),{...n,default:()=>[De(wte,{data:u.value}),De($d,Lt({...c,ref:f=>l.value=f}))]})}});var Ste=ye(Cte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);const ST=Qe(Ste),rg=Symbol(),kte={key:-1,level:-1,data:{}};var Qi=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(Qi||{}),sg=(e=>(e.ADD="add",e.DELETE="delete",e))(sg||{});const kT={type:Number,default:26},Ete=me({data:{type:G(Array),default:()=>un([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:G(Object),default:()=>un({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:G(Array),default:()=>un([])},checkStrictly:Boolean,defaultExpandedKeys:{type:G(Array),default:()=>un([])},indent:{type:Number,default:16},itemSize:kT,icon:{type:zt},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:G([String,Number])},accordion:Boolean,filterMethod:{type:G(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),$te=me({node:{type:G(Object),default:()=>un(kte)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:kT}),_te=me({node:{type:G(Object),required:!0}}),ET="node-click",$T="node-drop",_T="node-expand",TT="node-collapse",OT="current-change",RT="check",xT="check-change",IT="node-contextmenu",Tte={[ET]:(e,t,n)=>e&&t&&n,[$T]:(e,t,n)=>e&&t&&n,[_T]:(e,t)=>e&&t,[TT]:(e,t)=>e&&t,[OT]:(e,t)=>e&&t,[RT]:(e,t)=>e&&t,[xT]:(e,t)=>e&&Vt(t),[IT]:(e,t,n)=>e&&t&&n},Ote={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Vt(t)};function Rte(e,t){const n=P(new Set),o=P(new Set),{emit:a}=it();ue([()=>t.value,()=>e.defaultCheckedKeys],()=>ke(()=>{w(e.defaultCheckedKeys)}),{immediate:!0});const l=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:C,maxLevel:y}=t.value,S=n.value,E=new Set;for(let _=y;_>=1;--_){const O=C.get(_);!O||O.forEach(N=>{const R=N.children;let A=!N.isLeaf||N.disabled||S.has(N.key);if(R){let I=!0,L=!1;for(const H of R){const K=H.key;if(H.isEffectivelyChecked||(A=!1),S.has(K))L=!0;else if(E.has(K)){I=!1,L=!0;break}else I=!1}I?S.add(N.key):L?(E.add(N.key),S.delete(N.key)):(S.delete(N.key),E.delete(N.key))}N.isEffectivelyChecked=A})}o.value=E},r=C=>n.value.has(C.key),i=C=>o.value.has(C.key),u=(C,y,S=!0,E=!0)=>{const _=n.value,O=C.children;!e.checkStrictly&&S&&(O==null?void 0:O.length)&&(y=O.some(R=>!R.isEffectivelyChecked));const N=(R,A)=>{_[A?sg.ADD:sg.DELETE](R.key);const I=R.children;!e.checkStrictly&&I&&I.forEach(L=>{(!L.disabled||L.children)&&N(L,A)})};N(C,y),E&&l(),S&&c(C,y)},c=(C,y)=>{const{checkedNodes:S,checkedKeys:E}=h(),{halfCheckedNodes:_,halfCheckedKeys:O}=p();a(RT,C.data,{checkedKeys:E,checkedNodes:S,halfCheckedKeys:O,halfCheckedNodes:_}),a(xT,C.data,y)};function d(C=!1){return h(C).checkedKeys}function f(C=!1){return h(C).checkedNodes}function v(){return p().halfCheckedKeys}function m(){return p().halfCheckedNodes}function h(C=!1){const y=[],S=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:E}=t.value;n.value.forEach(_=>{const O=E.get(_);O&&(!C||C&&O.isLeaf)&&(S.push(_),y.push(O.data))})}return{checkedKeys:S,checkedNodes:y}}function p(){const C=[],y=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:S}=t.value;o.value.forEach(E=>{const _=S.get(E);_&&(y.push(E),C.push(_.data))})}return{halfCheckedNodes:C,halfCheckedKeys:y}}function b(C){n.value.clear(),o.value.clear(),ke(()=>{w(C)})}function g(C,y){if((t==null?void 0:t.value)&&e.showCheckbox){const S=t.value.treeNodeMap.get(C);S&&u(S,y,!1)}}function w(C){if(t!=null&&t.value){const{treeNodeMap:y}=t.value;if(e.showCheckbox&&y&&(C==null?void 0:C.length)>0){for(const S of C){const E=y.get(S);E&&!r(E)&&u(E,!0,!1,!1)}l()}}}return{updateCheckedKeys:l,toggleCheckbox:u,isChecked:r,isIndeterminate:i,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:v,getHalfCheckedNodes:m,setChecked:g,setCheckedKeys:b}}function xte(e,t){const n=P(new Set([])),o=P(new Set([])),a=k(()=>lt(e.filterMethod));function l(i){var u;if(!a.value)return;const c=new Set,d=o.value,f=n.value,v=[],m=((u=t.value)==null?void 0:u.treeNodes)||[],h=e.filterMethod;f.clear();function p(b){b.forEach(g=>{v.push(g),h!=null&&h(i,g.data,g)?v.forEach(C=>{c.add(C.key),C.expanded=!0}):(g.expanded=!1,g.isLeaf&&f.add(g.key));const w=g.children;if(w&&p(w),!g.isLeaf){if(!c.has(g.key))f.add(g.key);else if(w){let C=!0;for(const y of w)if(!f.has(y.key)){C=!1;break}C?d.add(g.key):d.delete(g.key)}}v.pop()})}return p(m),c}function r(i){return o.value.has(i.key)}return{hiddenExpandIconKeySet:o,hiddenNodeKeySet:n,doFilter:l,isForceHiddenExpandIcon:r}}function Ite(e,t){const n=P(new Set),o=P(),a=Zt(),l=P(),{isIndeterminate:r,isChecked:i,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:v,setChecked:m,setCheckedKeys:h}=Rte(e,a),{doFilter:p,hiddenNodeKeySet:b,isForceHiddenExpandIcon:g}=xte(e,a),w=k(()=>{var j;return((j=e.props)==null?void 0:j.value)||Qi.KEY}),C=k(()=>{var j;return((j=e.props)==null?void 0:j.children)||Qi.CHILDREN}),y=k(()=>{var j;return((j=e.props)==null?void 0:j.disabled)||Qi.DISABLED}),S=k(()=>{var j;return((j=e.props)==null?void 0:j.label)||Qi.LABEL}),E=k(()=>{var j;const se=n.value,Se=b.value,Ie=[],Le=((j=a.value)==null?void 0:j.treeNodes)||[],He=[];for(let We=Le.length-1;We>=0;--We)He.push(Le[We]);for(;He.length;){const We=He.pop();if(!Se.has(We.key)&&(Ie.push(We),We.children&&se.has(We.key)))for(let tt=We.children.length-1;tt>=0;--tt)He.push(We.children[tt])}return Ie}),_=k(()=>E.value.length>0);function O(j){const se=new Map,Se=new Map;let Ie=1;function Le(We,tt=1,Tt=void 0){var Xe;const Ae=[];for(const Pe of We){const Ze=A(Pe),et={level:tt,key:Ze,data:Pe};et.label=L(Pe),et.parent=Tt;const gt=R(Pe);et.disabled=I(Pe),et.isLeaf=!gt||gt.length===0,et.expanded=n.value.has(Ze),gt&>.length&&(et.children=Le(gt,tt+1,et)),Ae.push(et),se.set(Ze,et),Se.has(tt)||Se.set(tt,[]),(Xe=Se.get(tt))==null||Xe.push(et)}return tt>Ie&&(Ie=tt),Ae}const He=Le(j);return{treeNodeMap:se,levelTreeNodeMap:Se,maxLevel:Ie,treeNodes:He}}function N(j){const se=p(j);se&&(n.value=se)}function R(j){return j[C.value]}function A(j){return j?j[w.value]:""}function I(j){return j[y.value]}function L(j){return j[S.value]}function H(j){n.value.has(j.key)?z(j):B(j)}function K(j){const se=new Set,Se=a.value.treeNodeMap;n.value.forEach(Ie=>{const Le=Se.get(Ie);n.value.delete(Le.key),Le.expanded=!1}),j.forEach(Ie=>{let Le=Se.get(Ie);for(;Le&&!se.has(Le.key);)se.add(Le.key),Le.expanded=!0,Le=Le.parent}),n.value=se}function Y(j,se){t(ET,j.data,j,se),T(j),e.expandOnClickNode&&H(j),e.showCheckbox&&(e.checkOnClickNode||j.isLeaf&&e.checkOnClickLeaf)&&!j.disabled&&u(j,!i(j),!0)}function M(j,se){t($T,j.data,j,se)}function T(j){V(j)||(o.value=j.key,t(OT,j.data,j))}function D(j,se){u(j,se)}function B(j){const se=n.value;if(a.value&&e.accordion){const{treeNodeMap:Ie}=a.value;se.forEach(Le=>{const He=Ie.get(Le);j&&j.level===(He==null?void 0:He.level)&&(se.delete(Le),He.expanded=!1)})}se.add(j.key);const Se=oe(j.key);Se&&(Se.expanded=!0,t(_T,Se.data,Se))}function z(j){n.value.delete(j.key);const se=oe(j.key);se&&(se.expanded=!1,t(TT,se.data,se))}function U(j){return!!j.disabled}function V(j){const se=o.value;return se!==void 0&&se===j.key}function J(){var j,se;if(!!o.value)return(se=(j=a.value)==null?void 0:j.treeNodeMap.get(o.value))==null?void 0:se.data}function q(){return o.value}function ae(j){o.value=j}function ie(j){a.value=O(j)}function oe(j){var se;const Se=Rt(j)?A(j):j;return(se=a.value)==null?void 0:se.treeNodeMap.get(Se)}function fe(j,se="auto"){const Se=oe(j);Se&&l.value&&l.value.scrollToItem(E.value.indexOf(Se),se)}function re(j){var se;(se=l.value)==null||se.scrollTo(j)}return ue(()=>e.currentNodeKey,j=>{o.value=j},{immediate:!0}),ue(()=>e.defaultExpandedKeys,j=>{n.value=new Set(j)},{immediate:!0}),ue(()=>e.data,j=>{ie(j)},{immediate:!0}),{tree:a,flattenTree:E,isNotEmpty:_,listRef:l,getKey:A,getChildren:R,toggleExpand:H,toggleCheckbox:u,isChecked:i,isIndeterminate:r,isDisabled:U,isCurrent:V,isForceHiddenExpandIcon:g,handleNodeClick:Y,handleNodeDrop:M,handleNodeCheck:D,getCurrentNode:J,getCurrentKey:q,setCurrentKey:ae,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:v,setChecked:m,setCheckedKeys:h,filter:N,setData:ie,getNode:oe,expandNode:B,collapseNode:z,setExpandedKeys:K,scrollToNode:fe,scrollTo:re}}var Mte=le({name:"ElTreeNodeContent",props:_te,setup(e){const t=Te(rg),n=de("tree");return()=>{const o=e.node,{data:a}=o;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:o,data:a}):De(Cd,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[o==null?void 0:o.label])}}});const Nte=["aria-expanded","aria-disabled","aria-checked","data-key"],Ate=le({name:"ElTreeNode",__name:"tree-node",props:$te,emits:Ote,setup(e,{emit:t}){const n=e,o=t,a=Te(rg),l=de("tree"),r=k(()=>{var h;return(h=a==null?void 0:a.props.indent)!=null?h:16}),i=k(()=>{var h;return(h=a==null?void 0:a.props.icon)!=null?h:P1}),u=h=>{const p=a==null?void 0:a.props.props.class;if(!p)return{};let b;if(lt(p)){const{data:g}=h;b=p(g,h)}else b=p;return ze(b)?{[b]:!0}:b},c=h=>{o("click",n.node,h)},d=h=>{o("drop",n.node,h)},f=()=>{o("toggle",n.node)},v=h=>{o("check",n.node,h)},m=h=>{var p,b,g,w;(g=(b=(p=a==null?void 0:a.instance)==null?void 0:p.vnode)==null?void 0:b.props)!=null&&g.onNodeContextmenu&&(h.stopPropagation(),h.preventDefault()),a==null||a.ctx.emit(IT,h,(w=n.node)==null?void 0:w.data,n.node)};return(h,p)=>{var b,g,w;return $(),F("div",{ref:"node$",class:x([s(l).b("node"),s(l).is("expanded",h.expanded),s(l).is("current",h.current),s(l).is("focusable",!h.disabled),s(l).is("checked",!h.disabled&&h.checked),u(h.node)]),role:"treeitem",tabindex:"-1","aria-expanded":h.expanded,"aria-disabled":h.disabled,"aria-checked":h.checked,"data-key":(b=h.node)==null?void 0:b.key,onClick:Ye(c,["stop"]),onContextmenu:m,onDragover:p[1]||(p[1]=Ye(()=>{},["prevent"])),onDragenter:p[2]||(p[2]=Ye(()=>{},["prevent"])),onDrop:Ye(d,["stop"])},[W("div",{class:x(s(l).be("node","content")),style:Ne({paddingLeft:`${(h.node.level-1)*r.value}px`,height:h.itemSize+"px"})},[i.value?($(),ne(s($e),{key:0,class:x([s(l).is("leaf",!!((g=h.node)!=null&&g.isLeaf)),s(l).is("hidden",h.hiddenExpandIcon),{expanded:!((w=h.node)!=null&&w.isLeaf)&&h.expanded},s(l).be("node","expand-icon")]),onClick:Ye(f,["stop"])},{default:Q(()=>[($(),ne(at(i.value)))]),_:1},8,["class"])):te("v-if",!0),h.showCheckbox?($(),ne(s(Jo),{key:1,"model-value":h.checked,indeterminate:h.indeterminate,disabled:h.disabled,onChange:v,onClick:p[0]||(p[0]=Ye(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):te("v-if",!0),X(s(Mte),{node:{...h.node,expanded:h.expanded}},null,8,["node"])],6)],42,Nte)}}});var Pte=ye(Ate,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Lte=le({name:"ElTreeV2",__name:"tree",props:Ete,emits:Tte,setup(e,{expose:t,emit:n}){const o=e,a=n,l=$n(),r=k(()=>o.itemSize);St(rg,{ctx:{emit:a,slots:l},props:o,instance:it()}),St(ba,void 0);const{t:i}=wt(),u=de("tree"),{flattenTree:c,isNotEmpty:d,listRef:f,toggleExpand:v,isIndeterminate:m,isChecked:h,isDisabled:p,isCurrent:b,isForceHiddenExpandIcon:g,handleNodeClick:w,handleNodeDrop:C,handleNodeCheck:y,toggleCheckbox:S,getCurrentNode:E,getCurrentKey:_,setCurrentKey:O,getCheckedKeys:N,getCheckedNodes:R,getHalfCheckedKeys:A,getHalfCheckedNodes:I,setChecked:L,setCheckedKeys:H,filter:K,setData:Y,getNode:M,expandNode:T,collapseNode:D,setExpandedKeys:B,scrollToNode:z,scrollTo:U}=Ite(o,a);return t({toggleCheckbox:S,getCurrentNode:E,getCurrentKey:_,setCurrentKey:O,getCheckedKeys:N,getCheckedNodes:R,getHalfCheckedKeys:A,getHalfCheckedNodes:I,setChecked:L,setCheckedKeys:H,filter:K,setData:Y,getNode:M,expandNode:T,collapseNode:D,setExpandedKeys:B,scrollToNode:z,scrollTo:U}),(V,J)=>($(),F("div",{class:x([s(u).b(),{[s(u).m("highlight-current")]:V.highlightCurrent}]),role:"tree"},[s(d)?($(),ne(s(Cm),{key:0,ref_key:"listRef",ref:f,"class-name":s(u).b("virtual-list"),data:s(c),total:s(c).length,height:V.height,"item-size":r.value,"perf-mode":V.perfMode,"scrollbar-always-on":V.scrollbarAlwaysOn},{default:Q(({data:q,index:ae,style:ie})=>[($(),ne(Pte,{key:q[ae].key,style:Ne(ie),node:q[ae],expanded:q[ae].expanded,"show-checkbox":V.showCheckbox,checked:s(h)(q[ae]),indeterminate:s(m)(q[ae]),"item-size":r.value,disabled:s(p)(q[ae]),current:s(b)(q[ae]),"hidden-expand-icon":s(g)(q[ae]),onClick:s(w),onToggle:s(v),onCheck:s(y),onDrop:s(C)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):($(),F("div",{key:1,class:x(s(u).e("empty-block"))},[ee(V.$slots,"empty",{},()=>{var q;return[W("span",{class:x(s(u).e("empty-text"))},ge((q=V.emptyText)!=null?q:s(i)("el.tree.emptyText")),3)]})],2))],2))}});var Dte=ye(Lte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const MT=Qe(Dte),ig=Symbol("uploadContextKey"),Bte="ElUpload";class Fte extends Error{constructor(t,n,o,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=a}}function NT(e,t,n){let o;return n.response?o=`${n.response.error||n.response}`:n.responseText?o=`${n.responseText}`:o=`fail to ${t.method} ${e} ${n.status}`,new Fte(o,n.status,t.method,e)}function Vte(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}const zte=e=>{typeof XMLHttpRequest=="undefined"&&kn(Bte,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const r=l;r.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(r)});const o=new FormData;if(e.data)for(const[l,r]of Object.entries(e.data))Ee(r)&&r.length?o.append(l,...r):o.append(l,r);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(NT(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(NT(n,e,t));e.onSuccess(Vte(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((l,r)=>t.setRequestHeader(r,l));else for(const[l,r]of Object.entries(a))fn(r)||t.setRequestHeader(l,String(r));return t.send(o),t},ug=["text","picture","picture-card"];let Hte=1;const Od=()=>Date.now()+Hte++,cg=me({action:{type:String,default:"#"},headers:{type:G(Object)},method:{type:String,default:"post"},data:{type:G([Object,Function,Promise]),default:()=>un({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:G(Array),default:()=>un([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:ug,default:"text"},httpRequest:{type:G(Function),default:zte},disabled:{type:Boolean,default:void 0},limit:Number}),AT=me({...cg,beforeUpload:{type:G(Function),default:Gt},beforeRemove:{type:G(Function)},onRemove:{type:G(Function),default:Gt},onChange:{type:G(Function),default:Gt},onPreview:{type:G(Function),default:Gt},onSuccess:{type:G(Function),default:Gt},onProgress:{type:G(Function),default:Gt},onError:{type:G(Function),default:Gt},onExceed:{type:G(Function),default:Gt},crossorigin:{type:G(String)}}),PT=me({files:{type:G(Array),default:()=>un([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:G(Function),default:Gt},listType:{type:String,values:ug,default:"text"},crossorigin:{type:G(String)}}),LT={remove:e=>!!e},Wte=["tabindex","aria-disabled","onKeydown"],Kte=["src","crossorigin"],jte=["onClick"],Yte=["title"],Ute=["onClick"],Gte=["onClick"],qte=le({name:"ElUploadList",__name:"upload-list",props:PT,emits:LT,setup(e,{emit:t}){const n=e,o=t,{t:a}=wt(),l=de("upload"),r=de("icon"),i=de("list"),u=nn(),c=P(!1),d=k(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",u.value)]),f=v=>{o("remove",v)};return(v,m)=>($(),ne(Rg,{tag:"ul",class:x(d.value),name:s(i).b()},{default:Q(()=>[($(!0),F(Fe,null,yt(v.files,(h,p)=>($(),F("li",{key:h.uid||h.name,class:x([s(l).be("list","item"),s(l).is(h.status),{focusing:c.value}]),tabindex:s(u)?void 0:0,"aria-disabled":s(u),role:"button",onKeydown:cn(b=>!s(u)&&f(h),["delete"]),onFocus:m[0]||(m[0]=b=>c.value=!0),onBlur:m[1]||(m[1]=b=>c.value=!1),onClick:m[2]||(m[2]=b=>c.value=!1)},[ee(v.$slots,"default",{file:h,index:p},()=>[v.listType==="picture"||h.status!=="uploading"&&v.listType==="picture-card"?($(),F("img",{key:0,class:x(s(l).be("list","item-thumbnail")),src:h.url,crossorigin:v.crossorigin,alt:""},null,10,Kte)):te("v-if",!0),h.status==="uploading"||v.listType!=="picture-card"?($(),F("div",{key:1,class:x(s(l).be("list","item-info"))},[W("a",{class:x(s(l).be("list","item-name")),onClick:Ye(b=>v.handlePreview(h),["prevent"])},[X(s($e),{class:x(s(r).m("document"))},{default:Q(()=>[X(s(dV))]),_:1},8,["class"]),W("span",{class:x(s(l).be("list","item-file-name")),title:h.name},ge(h.name),11,Yte)],10,jte),h.status==="uploading"?($(),ne(s(sm),{key:0,type:v.listType==="picture-card"?"circle":"line","stroke-width":v.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:Ne(v.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):te("v-if",!0)],2)):te("v-if",!0),W("label",{class:x(s(l).be("list","item-status-label"))},[v.listType==="text"?($(),ne(s($e),{key:0,class:x([s(r).m("upload-success"),s(r).m("circle-check")])},{default:Q(()=>[X(s(kp))]),_:1},8,["class"])):["picture-card","picture"].includes(v.listType)?($(),ne(s($e),{key:1,class:x([s(r).m("upload-success"),s(r).m("check")])},{default:Q(()=>[X(s(si))]),_:1},8,["class"])):te("v-if",!0)],2),s(u)?te("v-if",!0):($(),ne(s($e),{key:2,class:x(s(r).m("close")),onClick:b=>f(h)},{default:Q(()=>[X(s(jo))]),_:1},8,["class","onClick"])),te(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),te(" This is a bug which needs to be fixed "),te(" TODO: Fix the incorrect navigation interaction "),s(u)?te("v-if",!0):($(),F("i",{key:3,class:x(s(r).m("close-tip"))},ge(s(a)("el.upload.deleteTip")),3)),v.listType==="picture-card"?($(),F("span",{key:4,class:x(s(l).be("list","item-actions"))},[W("span",{class:x(s(l).be("list","item-preview")),onClick:b=>v.handlePreview(h)},[X(s($e),{class:x(s(r).m("zoom-in"))},{default:Q(()=>[X(s(V1))]),_:1},8,["class"])],10,Ute),s(u)?te("v-if",!0):($(),F("span",{key:0,class:x(s(l).be("list","item-delete")),onClick:b=>f(h)},[X(s($e),{class:x(s(r).m("delete"))},{default:Q(()=>[X(s(uV))]),_:1},8,["class"])],10,Gte))],2)):te("v-if",!0)])],42,Wte))),128)),ee(v.$slots,"append")]),_:3},8,["class","name"]))}});var DT=ye(qte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const BT=me({disabled:{type:Boolean,default:void 0}}),FT={file:e=>Ee(e)},VT="ElUploadDrag",Xte=le({name:VT,__name:"upload-dragger",props:BT,emits:FT,setup(e,{emit:t}){const n=t;Te(ig)||kn(VT,"usage: <el-upload><el-upload-dragger /></el-upload>");const a=de("upload"),l=P(!1),r=nn(),i=d=>{if(r.value)return;l.value=!1,d.stopPropagation();const f=Array.from(d.dataTransfer.files),v=d.dataTransfer.items||[];f.forEach((m,h)=>{var p;const b=v[h],g=(p=b==null?void 0:b.webkitGetAsEntry)==null?void 0:p.call(b);g&&(m.isDirectory=g.isDirectory)}),n("file",f)},u=()=>{r.value||(l.value=!0)},c=d=>{d.currentTarget.contains(d.relatedTarget)||(l.value=!1)};return(d,f)=>($(),F("div",{class:x([s(a).b("dragger"),s(a).is("dragover",l.value)]),onDrop:Ye(i,["prevent"]),onDragover:Ye(u,["prevent"]),onDragleave:Ye(c,["prevent"])},[ee(d.$slots,"default")],34))}});var Zte=ye(Xte,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const zT=me({...cg,beforeUpload:{type:G(Function),default:Gt},onRemove:{type:G(Function),default:Gt},onStart:{type:G(Function),default:Gt},onSuccess:{type:G(Function),default:Gt},onProgress:{type:G(Function),default:Gt},onError:{type:G(Function),default:Gt},onExceed:{type:G(Function),default:Gt}}),Jte=["tabindex","aria-disabled","onKeydown"],Qte=["name","disabled","multiple","accept"],ene=le({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:zT,setup(e,{expose:t}){const n=e,o=de("upload"),a=nn(),l=Zt({}),r=Zt(),i=p=>{if(p.length===0)return;const{autoUpload:b,limit:g,fileList:w,multiple:C,onStart:y,onExceed:S}=n;if(g&&w.length+p.length>g){S(p,w);return}C||(p=p.slice(0,1));for(const E of p){const _=E;_.uid=Od(),y(_),b&&u(_)}},u=async p=>{if(r.value.value="",!n.beforeUpload)return d(p);let b,g={};try{const C=n.data,y=n.beforeUpload(p);g=Zd(n.data)?Zs(n.data):n.data,b=await y,Zd(n.data)&&ln(C,g)&&(g=Zs(n.data))}catch(C){b=!1}if(b===!1){n.onRemove(p);return}let w=p;b instanceof Blob&&(b instanceof File?w=b:w=new File([b],p.name,{type:p.type})),d(Object.assign(w,{uid:p.uid}),g)},c=async(p,b)=>lt(p)?p(b):p,d=async(p,b)=>{const{headers:g,data:w,method:C,withCredentials:y,name:S,action:E,onProgress:_,onSuccess:O,onError:N,httpRequest:R}=n;try{b=await c(b!=null?b:w,p)}catch(H){n.onRemove(p);return}const{uid:A}=p,I={headers:g||{},withCredentials:y,file:p,data:b,method:C,filename:S,action:E,onProgress:H=>{_(H,p)},onSuccess:H=>{O(H,p),delete l.value[A]},onError:H=>{N(H,p),delete l.value[A]}},L=R(I);l.value[A]=L,L instanceof Promise&&L.then(I.onSuccess,I.onError)},f=p=>{const b=p.target.files;!b||i(Array.from(b))},v=()=>{a.value||(r.value.value="",r.value.click())},m=()=>{v()};return t({abort:p=>{O1(l.value).filter(p?([g])=>String(p.uid)===g:()=>!0).forEach(([g,w])=>{w instanceof XMLHttpRequest&&w.abort(),delete l.value[g]})},upload:u}),(p,b)=>($(),F("div",{class:x([s(o).b(),s(o).m(p.listType),s(o).is("drag",p.drag),s(o).is("disabled",s(a))]),tabindex:s(a)?void 0:0,"aria-disabled":s(a),role:"button",onClick:v,onKeydown:cn(Ye(m,["self"]),["enter","space"])},[p.drag?($(),ne(Zte,{key:0,disabled:s(a),onFile:i},{default:Q(()=>[ee(p.$slots,"default")]),_:3},8,["disabled"])):ee(p.$slots,"default",{key:1}),W("input",{ref_key:"inputRef",ref:r,class:x(s(o).e("input")),name:p.name,disabled:s(a),multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:b[0]||(b[0]=Ye(()=>{},["stop"]))},null,42,Qte)],42,Jte))}});var HT=ye(ene,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const WT="ElUpload",KT=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},tne=(e,t)=>{const n=Ug(e,"fileList",void 0,{passive:!0}),o=h=>n.value.find(p=>p.uid===h.uid);function a(h){var p;(p=t.value)==null||p.abort(h)}function l(h=["ready","uploading","success","fail"]){n.value=n.value.filter(p=>!h.includes(p.status))}function r(h){n.value=n.value.filter(p=>p.uid!==h.uid)}const i=h=>{ke(()=>e.onChange(h,n.value))},u=(h,p)=>{const b=o(p);!b||(console.error(h),b.status="fail",r(b),e.onError(h,b,n.value),i(b))},c=(h,p)=>{const b=o(p);!b||(e.onProgress(h,b,n.value),b.status="uploading",b.percentage=Math.round(h.percent))},d=(h,p)=>{const b=o(p);!b||(b.status="success",b.response=h,e.onSuccess(h,b,n.value),i(b))},f=h=>{fn(h.uid)&&(h.uid=Od());const p={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{p.url=URL.createObjectURL(h)}catch(b){b.message,e.onError(b,p,n.value)}n.value=[...n.value,p],i(p)},v=async h=>{const p=h instanceof File?o(h):h;p||kn(WT,"file to be removed not found");const b=g=>{a(g),r(g),e.onRemove(g,n.value),KT(g)};e.beforeRemove?await e.beforeRemove(p,n.value)!==!1&&b(p):b(p)};function m(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var p;return h&&((p=t.value)==null?void 0:p.upload(h))})}return ue(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(p=>{const{raw:b,url:g}=p;if(!g&&b)try{p.url=URL.createObjectURL(b)}catch(w){e.onError(w,p,n.value)}return p}))}),ue(n,h=>{for(const p of h)p.uid||(p.uid=Od()),p.status||(p.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:l,handleError:u,handleProgress:c,handleStart:f,handleSuccess:d,handleRemove:v,submit:m,revokeFileObjectURL:KT}},nne=le({name:"ElUpload",__name:"upload",props:AT,setup(e,{expose:t}){const n=e,o=nn(),a=Zt(),{abort:l,submit:r,clearFiles:i,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:v,handleProgress:m,revokeFileObjectURL:h}=tne(n,a),p=k(()=>n.listType==="picture-card"),b=k(()=>({...n,fileList:u.value,onStart:c,onProgress:m,onSuccess:v,onError:d,onRemove:f}));return Dt(()=>{u.value.forEach(h)}),St(ig,{accept:Ft(n,"accept")}),t({abort:l,submit:r,clearFiles:i,handleStart:c,handleRemove:f}),(g,w)=>($(),F("div",null,[p.value&&g.showFileList?($(),ne(DT,{key:0,disabled:s(o),"list-type":g.listType,files:s(u),crossorigin:g.crossorigin,"handle-preview":g.onPreview,onRemove:s(f)},vo({append:Q(()=>[X(HT,rt({ref_key:"uploadRef",ref:a},b.value),{default:Q(()=>[g.$slots.trigger?ee(g.$slots,"trigger",{key:0}):te("v-if",!0),!g.$slots.trigger&&g.$slots.default?ee(g.$slots,"default",{key:1}):te("v-if",!0)]),_:3},16)]),_:2},[g.$slots.file?{name:"default",fn:Q(({file:C,index:y})=>[ee(g.$slots,"file",{file:C,index:y})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):te("v-if",!0),!p.value||p.value&&!g.showFileList?($(),ne(HT,rt({key:1,ref_key:"uploadRef",ref:a},b.value),{default:Q(()=>[g.$slots.trigger?ee(g.$slots,"trigger",{key:0}):te("v-if",!0),!g.$slots.trigger&&g.$slots.default?ee(g.$slots,"default",{key:1}):te("v-if",!0)]),_:3},16)):te("v-if",!0),g.$slots.trigger?ee(g.$slots,"default",{key:2}):te("v-if",!0),ee(g.$slots,"tip"),!p.value&&g.showFileList?($(),ne(DT,{key:3,disabled:s(o),"list-type":g.listType,files:s(u),crossorigin:g.crossorigin,"handle-preview":g.onPreview,onRemove:s(f)},vo({_:2},[g.$slots.file?{name:"default",fn:Q(({file:C,index:y})=>[ee(g.$slots,"file",{file:C,index:y})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):te("v-if",!0)]))}});var one=ye(nne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const jT=Qe(one),YT=me({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:G([String,Array]),default:"Element Plus"},font:{type:G(Object)},gap:{type:G(Array),default:()=>[100,100]},offset:{type:G(Array)}});function ane(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function lne(e){return Object.keys(e).map(t=>`${ane(t)}: ${e[t]};`).join(" ")}function rne(){return window.devicePixelRatio||1}const sne=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},ine={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function dg(e,t,n=1){const o=document.createElement("canvas"),a=o.getContext("2d"),l=e*n,r=t*n;return o.setAttribute("width",`${l}px`),o.setAttribute("height",`${r}px`),a.save(),[a,o,l,r]}function une(){function e(t,n,o,a,l,r,i,u,c){const[d,f,v,m]=dg(a,l,o);let h=0;if(t instanceof HTMLImageElement)d.drawImage(t,0,0,v,m);else{const{color:V,fontSize:J,fontStyle:q,fontWeight:ae,fontFamily:ie,textAlign:oe,textBaseline:fe}=r,re=Number(J)*o;d.font=`${q} normal ${ae} ${re}px/${l}px ${ie}`,d.fillStyle=V,d.textAlign=oe,d.textBaseline=fe;const j=Ee(t)?t:[t];if(fe!=="top"&&j[0]){const se=d.measureText(j[0]);d.textBaseline="top";const Se=d.measureText(j[0]);h=se.actualBoundingBoxAscent-Se.actualBoundingBoxAscent}j==null||j.forEach((se,Se)=>{const[Ie,Le]=ine[oe];d.fillText(se!=null?se:"",v*Ie+c*Le,Se*(re+r.fontGap*o))})}const p=Math.PI/180*Number(n),b=Math.max(a,l),[g,w,C]=dg(b,b,o);g.translate(C/2,C/2),g.rotate(p),v>0&&m>0&&g.drawImage(f,-v/2,-m/2);function y(V,J){const q=V*Math.cos(p)-J*Math.sin(p),ae=V*Math.sin(p)+J*Math.cos(p);return[q,ae]}let S=0,E=0,_=0,O=0;const N=v/2,R=m/2;[[0-N,0-R],[0+N,0-R],[0+N,0+R],[0-N,0+R]].forEach(([V,J])=>{const[q,ae]=y(V,J);S=Math.min(S,q),E=Math.max(E,q),_=Math.min(_,ae),O=Math.max(O,ae)});const I=S+C/2,L=_+C/2,H=E-S,K=O-_,Y=i*o,M=u*o,T=(H+Y)*2,D=K+M,[B,z]=dg(T,D);function U(V=0,J=0){B.drawImage(w,I,L,H,K,V,J+h,H,K)}return U(),U(H+Y,-K/2-M/2),U(H+Y,+K/2+M/2),[z.toDataURL(),T/o,D/o]}return e}const cne=le({name:"ElWatermark",__name:"watermark",props:YT,setup(e){const t={position:"relative"},n=e,o=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.fontGap)!=null?I:3}),a=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.color)!=null?I:"rgba(0,0,0,.15)"}),l=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.fontSize)!=null?I:16}),r=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.fontWeight)!=null?I:"normal"}),i=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.fontStyle)!=null?I:"normal"}),u=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.fontFamily)!=null?I:"sans-serif"}),c=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.textAlign)!=null?I:"center"}),d=k(()=>{var A,I;return(I=(A=n.font)==null?void 0:A.textBaseline)!=null?I:"hanging"}),f=k(()=>n.gap[0]),v=k(()=>n.gap[1]),m=k(()=>f.value/2),h=k(()=>v.value/2),p=k(()=>{var A,I;return(I=(A=n.offset)==null?void 0:A[0])!=null?I:m.value}),b=k(()=>{var A,I;return(I=(A=n.offset)==null?void 0:A[1])!=null?I:h.value}),g=()=>{const A={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let I=p.value-m.value,L=b.value-h.value;return I>0&&(A.left=`${I}px`,A.width=`calc(100% - ${I}px)`,I=0),L>0&&(A.top=`${L}px`,A.height=`calc(100% - ${L}px)`,L=0),A.backgroundPosition=`${I}px ${L}px`,A},w=Zt(null),C=Zt(),y=P(!1),S=()=>{C.value&&(C.value.remove(),C.value=void 0)},E=(A,I)=>{var L;w.value&&C.value&&(y.value=!0,C.value.setAttribute("style",lne({...g(),backgroundImage:`url('${A}')`,backgroundSize:`${Math.floor(I)}px`})),(L=w.value)==null||L.append(C.value),setTimeout(()=>{y.value=!1}))},_=A=>{let I=120,L=64,H=0;const{image:K,content:Y,width:M,height:T,rotate:D}=n;if(!K&&A.measureText){A.font=`${Number(l.value)}px ${u.value}`;const B=Ee(Y)?Y:[Y];let z=0,U=0;B.forEach(J=>{const{width:q,fontBoundingBoxAscent:ae,fontBoundingBoxDescent:ie,actualBoundingBoxAscent:oe,actualBoundingBoxDescent:fe}=A.measureText(J),re=$t(ae)?oe+fe:ae+ie;q>z&&(z=Math.ceil(q)),re>U&&(U=Math.ceil(re))}),I=z,L=U*B.length+(B.length-1)*o.value;const V=Math.PI/180*Number(D);H=Math.ceil(Math.abs(Math.sin(V)*L)/2),I+=H}return[M!=null?M:I,T!=null?T:L,H]},O=une(),N=()=>{const I=document.createElement("canvas").getContext("2d"),L=n.image,H=n.content,K=n.rotate;if(I){C.value||(C.value=document.createElement("div"));const Y=rne(),[M,T,D]=_(I),B=z=>{const[U,V]=O(z||"",K,Y,M,T,{color:a.value,fontSize:l.value,fontStyle:i.value,fontWeight:r.value,fontFamily:u.value,fontGap:o.value,textAlign:c.value,textBaseline:d.value},f.value,v.value,D);E(U,V)};if(L){const z=new Image;z.onload=()=>{B(z)},z.onerror=()=>{B(H)},z.crossOrigin="anonymous",z.referrerPolicy="no-referrer",z.src=L}else B(H)}};return st(()=>{N()}),ue(()=>n,()=>{N()},{deep:!0,flush:"post"}),Dt(()=>{S()}),Ds(w,A=>{y.value||A.forEach(I=>{sne(I,C.value)&&(S(),N())})},{attributes:!0,subtree:!0,childList:!0}),(A,I)=>($(),F("div",{ref_key:"containerRef",ref:w,style:Ne([t])},[ee(A.$slots,"default")],4))}});var dne=ye(cne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/watermark/src/watermark.vue"]]);const UT=Qe(dne),fne=me({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:G(Object)},targetAreaClickable:{type:Boolean,default:!0}}),pne=(e,t,n,o,a)=>{const l=P(null),r=()=>{let f;return ze(e.value)?f=document.querySelector(e.value):lt(e.value)?f=e.value():f=e.value,f},i=()=>{const f=r();if(!f||!t.value){l.value=null;return}vne(f)||f.scrollIntoView(a.value);const{left:v,top:m,width:h,height:p}=f.getBoundingClientRect();l.value={left:v,top:m,width:h,height:p,radius:0}};st(()=>{ue([t,e],()=>{i()},{immediate:!0}),window.addEventListener("resize",i)}),Dt(()=>{window.removeEventListener("resize",i)});const u=f=>{var v;return(v=Ee(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?v:6},c=k(()=>{var f;if(!l.value)return l.value;const v=u(0),m=u(1),h=((f=n.value)==null?void 0:f.radius)||2;return{left:l.value.left-v,top:l.value.top-m,width:l.value.width+v*2,height:l.value.height+m*2,radius:h}}),d=k(()=>{const f=r();return!o.value||!f||!window.DOMRect?f||void 0:{getBoundingClientRect(){var v,m,h,p;return window.DOMRect.fromRect({width:((v=c.value)==null?void 0:v.width)||0,height:((m=c.value)==null?void 0:m.height)||0,x:((h=c.value)==null?void 0:h.left)||0,y:((p=c.value)==null?void 0:p.top)||0})}}});return{mergedPosInfo:c,triggerTarget:d}},Rd=Symbol("ElTour");function vne(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:a,bottom:l,left:r}=e.getBoundingClientRect();return o>=0&&r>=0&&a<=t&&l<=n}const hne=(e,t,n,o,a,l,r,i)=>{const u=P(),c=P(),d=P({}),f={x:u,y:c,placement:o,strategy:a,middlewareData:d},v=k(()=>{const g=[wH(s(l)),SH(),CH(),mne()];return s(i)&&s(n)&&g.push(sC({element:s(n)})),g}),m=async()=>{if(!_t)return;const g=s(e),w=s(t);if(!g||!w)return;const C=await iC(g,w,{placement:s(o),strategy:s(a),middleware:s(v)});Kr(f).forEach(y=>{f[y].value=C[y]})},h=k(()=>{if(!s(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:s(r)};const{overflow:g}=s(d);return{position:s(a),zIndex:s(r),top:s(c)!=null?`${s(c)}px`:"",left:s(u)!=null?`${s(u)}px`:"",maxWidth:g!=null&&g.maxWidth?`${g==null?void 0:g.maxWidth}px`:""}}),p=k(()=>{if(!s(i))return{};const{arrow:g}=s(d);return{left:(g==null?void 0:g.x)!=null?`${g==null?void 0:g.x}px`:"",top:(g==null?void 0:g.y)!=null?`${g==null?void 0:g.y}px`:""}});let b;return st(()=>{const g=s(e),w=s(t);g&&w&&(b=bH(g,w,m)),lo(()=>{m()})}),Dt(()=>{b&&b()}),{update:m,contentStyle:h,arrowStyle:p}},mne=()=>({name:"overflow",async fn(e){const t=await yH(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),gne={style:{width:"100%",height:"100%"}},bne=["d"],yne=le({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:fne,setup(e){const t=e,{ns:n}=Te(Rd),o=k(()=>{var d,f;return(f=(d=t.pos)==null?void 0:d.radius)!=null?f:2}),a=k(()=>{const d=o.value,f=`a${d},${d} 0 0 1`;return{topRight:`${f} ${d},${d}`,bottomRight:`${f} ${-d},${d}`,bottomLeft:`${f} ${-d},${-d}`,topLeft:`${f} ${d},${-d}`}}),{width:l,height:r}=Gd(),i=k(()=>{const d=l.value,f=r.value,v=a.value,m=`M${d},0 L0,0 L0,${f} L${d},${f} L${d},0 Z`,h=o.value;return t.pos?`${m} M${t.pos.left+h},${t.pos.top} h${t.pos.width-h*2} ${v.topRight} v${t.pos.height-h*2} ${v.bottomRight} h${-t.pos.width+h*2} ${v.bottomLeft} v${-t.pos.height+h*2} ${v.topLeft} z`:m}),u=k(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=k(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return di(Ft(t,"visible"),{ns:n}),(d,f)=>d.visible?($(),F("div",rt({key:0,class:s(n).e("mask"),style:u.value},d.$attrs),[($(),F("svg",gne,[W("path",{class:x(s(n).e("hollow")),style:Ne(c.value),d:i.value},null,14,bne)]))],16)):te("v-if",!0)}});var wne=ye(yne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/mask.vue"]]);const GT=["absolute","fixed"],qT=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],xd=me({placement:{type:G(String),values:qT,default:"bottom"},reference:{type:G(Object),default:null},strategy:{type:G(String),values:GT,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),XT={close:()=>!0},Cne=["data-side"],Sne=le({name:"ElTourContent",__name:"content",props:xd,emits:XT,setup(e,{emit:t}){const n=e,o=t,a=P(n.placement),l=P(n.strategy),r=P(null),i=P(null);ue(()=>n.placement,()=>{a.value=n.placement});const{contentStyle:u,arrowStyle:c}=hne(Ft(n,"reference"),r,i,a,l,Ft(n,"offset"),Ft(n,"zIndex"),Ft(n,"showArrow")),d=k(()=>a.value.split("-")[0]),{ns:f}=Te(Rd),v=()=>{o("close")},m=h=>{h.detail.focusReason==="pointer"&&h.preventDefault()};return(h,p)=>($(),F("div",{ref_key:"contentRef",ref:r,style:Ne(s(u)),class:x(s(f).e("content")),"data-side":d.value,tabindex:"-1"},[X(s(us),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:v,onFocusoutPrevented:m},{default:Q(()=>[ee(h.$slots,"default")]),_:3},8,["focus-trap-el"]),h.showArrow?($(),F("span",{key:0,ref_key:"arrowRef",ref:i,style:Ne(s(c)),class:x(s(f).e("arrow"))},null,6)):te("v-if",!0)],14,Cne))}});var kne=ye(Sne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/content.vue"]]),Ene=le({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let o=0;return()=>{var a,l;const r=(a=t.default)==null?void 0:a.call(t),i=[];let u=0;function c(d){!Ee(d)||d.forEach(f=>{var v;((v=(f==null?void 0:f.type)||{})==null?void 0:v.name)==="ElTourStep"&&(i.push(f),u+=1)})}return r.length&&c(ua((l=r[0])==null?void 0:l.children)),o!==u&&(o=u,n("update-total",u)),i.length?i[e.current]:null}}});const ZT=me({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:zt},placement:xd.placement,contentStyle:{type:G([Object])},mask:{type:G([Boolean,Object]),default:!0},gap:{type:G(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:G([Boolean,Object]),default:()=>({block:"center"})},type:{type:G(String)},appendTo:{type:ki.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),JT={[Ue]:e=>Vt(e),["update:current"]:e=>xe(e),close:e=>xe(e),finish:()=>!0,change:e=>xe(e)},$ne=le({name:"ElTour",__name:"tour",props:ZT,emits:JT,setup(e,{emit:t}){const n=e,o=t,a=de("tour"),l=P(0),r=P(),i=Ug(n,"current",o,{passive:!0}),u=k(()=>{var R;return(R=r.value)==null?void 0:R.target}),c=k(()=>[a.b(),g.value==="primary"?a.m("primary"):""]),d=k(()=>{var R;return((R=r.value)==null?void 0:R.placement)||n.placement}),f=k(()=>{var R,A;return(A=(R=r.value)==null?void 0:R.contentStyle)!=null?A:n.contentStyle}),v=k(()=>{var R,A;return(A=(R=r.value)==null?void 0:R.mask)!=null?A:n.mask}),m=k(()=>!!v.value&&n.modelValue),h=k(()=>Vt(v.value)?void 0:v.value),p=k(()=>{var R,A;return!!u.value&&((A=(R=r.value)==null?void 0:R.showArrow)!=null?A:n.showArrow)}),b=k(()=>{var R,A;return(A=(R=r.value)==null?void 0:R.scrollIntoViewOptions)!=null?A:n.scrollIntoViewOptions}),g=k(()=>{var R,A;return(A=(R=r.value)==null?void 0:R.type)!=null?A:n.type}),{nextZIndex:w}=Qr(),C=w(),y=k(()=>{var R;return(R=n.zIndex)!=null?R:C}),{mergedPosInfo:S,triggerTarget:E}=pne(u,Ft(n,"modelValue"),Ft(n,"gap"),v,b);ue(()=>n.modelValue,R=>{R||(i.value=0)});const _=()=>{n.closeOnPressEscape&&(o(Ue,!1),o("close",i.value))},O=R=>{l.value=R},N=$n();return St(Rd,{currentStep:r,current:i,total:l,showClose:Ft(n,"showClose"),closeIcon:Ft(n,"closeIcon"),mergedType:g,ns:a,slots:N,updateModelValue(R){o(Ue,R)},onClose(){o("close",i.value)},onFinish(){o("finish")},onChange(){o(ft,i.value)}}),(R,A)=>($(),F(Fe,null,[X(s(rs),{to:R.appendTo},{default:Q(()=>{var I,L;return[W("div",rt({class:c.value},R.$attrs),[X(wne,{visible:m.value,fill:(I=h.value)==null?void 0:I.color,style:Ne((L=h.value)==null?void 0:L.style),pos:s(S),"z-index":y.value,"target-area-clickable":R.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),R.modelValue?($(),ne(kne,{key:s(i),reference:s(E),placement:d.value,"show-arrow":p.value,"z-index":y.value,style:Ne(f.value),onClose:_},{default:Q(()=>[X(s(Ene),{current:s(i),onUpdateTotal:O},{default:Q(()=>[ee(R.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):te("v-if",!0)],16)]}),_:3},8,["to"]),te(" just for IDE "),te("v-if",!0)],64))}});var _ne=ye($ne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/tour.vue"]]);const QT=me({target:{type:G([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:zt},showArrow:{type:Boolean,default:void 0},placement:xd.placement,mask:{type:G([Boolean,Object]),default:void 0},contentStyle:{type:G([Object])},prevButtonProps:{type:G(Object)},nextButtonProps:{type:G(Object)},scrollIntoViewOptions:{type:G([Boolean,Object]),default:void 0},type:{type:G(String)}}),eO={close:()=>!0},Tne=["aria-label"],One=le({name:"ElTourStep",__name:"step",props:QT,emits:eO,setup(e,{emit:t}){const n=e,o=t,{Close:a}=H1,{t:l}=wt(),{currentStep:r,current:i,total:u,showClose:c,closeIcon:d,mergedType:f,ns:v,slots:m,updateModelValue:h,onClose:p,onFinish:b,onChange:g}=Te(Rd);ue(n,R=>{r.value=R},{immediate:!0});const w=k(()=>{var R;return(R=n.showClose)!=null?R:c.value}),C=k(()=>{var R,A;return(A=(R=n.closeIcon)!=null?R:d.value)!=null?A:a}),y=R=>{if(!!R)return Hr(R,["children","onClick"])},S=()=>{var R,A;i.value-=1,(R=n.prevButtonProps)!=null&&R.onClick&&((A=n.prevButtonProps)==null||A.onClick()),g()},E=()=>{var R;i.value>=u.value-1?_():i.value+=1,(R=n.nextButtonProps)!=null&&R.onClick&&n.nextButtonProps.onClick(),g()},_=()=>{O(),b()},O=()=>{h(!1),p(),o("close")},N=R=>{const A=R.target;if(A!=null&&A.isContentEditable)return;switch(Ht(R)){case pe.left:R.preventDefault(),i.value>0&&S();break;case pe.right:R.preventDefault(),E();break}};return st(()=>{window.addEventListener("keydown",N)}),Dt(()=>{window.removeEventListener("keydown",N)}),(R,A)=>($(),F(Fe,null,[w.value?($(),F("button",{key:0,"aria-label":s(l)("el.tour.close"),class:x(s(v).e("closebtn")),type:"button",onClick:O},[X(s($e),{class:x(s(v).e("close"))},{default:Q(()=>[($(),ne(at(C.value)))]),_:1},8,["class"])],10,Tne)):te("v-if",!0),W("header",{class:x([s(v).e("header"),{"show-close":s(c)}])},[ee(R.$slots,"header",{},()=>[W("span",{role:"heading",class:x(s(v).e("title"))},ge(R.title),3)])],2),W("div",{class:x(s(v).e("body"))},[ee(R.$slots,"default",{},()=>[W("span",null,ge(R.description),1)])],2),W("footer",{class:x(s(v).e("footer"))},[W("div",{class:x(s(v).b("indicators"))},[s(m).indicators?($(),ne(at(s(m).indicators),{key:0,current:s(i),total:s(u)},null,8,["current","total"])):($(!0),F(Fe,{key:1},yt(s(u),(I,L)=>($(),F("span",{key:I,class:x([s(v).b("indicator"),s(v).is("active",L===s(i))])},null,2))),128))],2),W("div",{class:x(s(v).b("buttons"))},[s(i)>0?($(),ne(s(xn),rt({key:0,size:"small",type:s(f)},y(R.prevButtonProps),{onClick:S}),{default:Q(()=>{var I,L;return[Ct(ge((L=(I=R.prevButtonProps)==null?void 0:I.children)!=null?L:s(l)("el.tour.previous")),1)]}),_:1},16,["type"])):te("v-if",!0),s(i)<=s(u)-1?($(),ne(s(xn),rt({key:1,size:"small",type:s(f)==="primary"?"default":"primary"},y(R.nextButtonProps),{onClick:E}),{default:Q(()=>{var I,L;return[Ct(ge((L=(I=R.nextButtonProps)==null?void 0:I.children)!=null?L:s(i)===s(u)-1?s(l)("el.tour.finish"):s(l)("el.tour.next")),1)]}),_:1},16,["type"])):te("v-if",!0)],2)],2)],64))}});var tO=ye(One,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/step.vue"]]);const nO=Qe(_ne,{TourStep:tO}),oO=sn(tO),aO=me({container:{type:G([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:G(String),default:"default"},direction:{type:G(String),default:"vertical"},selectScrollTop:Boolean}),lO={change:e=>ze(e),click:(e,t)=>e instanceof MouseEvent&&(ze(t)||$t(t))},rO=Symbol("anchor"),Rne=le({name:"ElAnchor",__name:"anchor",props:aO,emits:lO,setup(e,{expose:t,emit:n}){const o=e,a=n,l=$n(),r=P(""),i=P({}),u=P(null),c=P(null),d=P(),f={};let v=!1,m=0;const h=de("anchor"),p=k(()=>[h.b(),o.type==="underline"?h.m("underline"):"",h.m(o.direction)]),b=I=>{f[I.href]=I.el},g=I=>{delete f[I]},w=I=>{r.value!==I&&(r.value=I,a(ft,I))};let C=null,y="";const S=I=>{if(!d.value)return;const L=Ju(I);if(!L)return;if(C){if(y===I)return;C()}y=I,v=!0;const H=M1(L,d.value),K=Xd(L,H),Y=H.scrollHeight-H.clientHeight,M=Math.min(K-o.offset,Y);C=BF(d.value,m,M,o.duration,()=>{setTimeout(()=>{v=!1,y=""},20)})},E=I=>{I&&(w(I),S(I))},_=(I,L)=>{a("click",I,L),E(L)},O=nz(()=>{d.value&&(m=N1(d.value));const I=N();v||$t(I)||w(I)}),N=()=>{if(!d.value)return;const I=N1(d.value),L=[];for(const H of Object.keys(f)){const K=Ju(H);if(!K)continue;const Y=M1(K,d.value),M=Xd(K,Y);L.push({top:M-o.offset-o.bound,href:H})}L.sort((H,K)=>H.top-K.top);for(let H=0;H<L.length;H++){const K=L[H],Y=L[H+1];if(H===0&&I===0)return o.selectScrollTop?K.href:"";if(K.top<=I&&(!Y||Y.top>I))return K.href}},R=()=>{const I=Ju(o.container);!I||li(I)?d.value=window:d.value=I};Mt(d,"scroll",O);const A=()=>{ke(()=>{if(!u.value||!c.value||!r.value){i.value={};return}const I=f[r.value];if(!I){i.value={};return}const L=u.value.getBoundingClientRect(),H=c.value.getBoundingClientRect(),K=I.getBoundingClientRect();if(o.direction==="horizontal"){const Y=K.left-L.left;i.value={left:`${Y}px`,width:`${K.width}px`,opacity:1}}else{const Y=K.top-L.top+(K.height-H.height)/2;i.value={top:`${Y}px`,opacity:1}}})};return ue(r,A),ue(()=>{var I;return(I=l.default)==null?void 0:I.call(l)},A),st(()=>{R();const I=decodeURIComponent(window.location.hash);Ju(I)?E(I):O()}),ue(()=>o.container,()=>{R()}),St(rO,{ns:h,direction:o.direction,currentAnchor:r,addLink:b,removeLink:g,handleClick:_}),t({scrollTo:E}),(I,L)=>($(),F("div",{ref_key:"anchorRef",ref:u,class:x(p.value)},[I.marker?($(),F("div",{key:0,ref_key:"markerRef",ref:c,class:x(s(h).e("marker")),style:Ne(i.value)},null,6)):te("v-if",!0),W("div",{class:x(s(h).e("list"))},[ee(I.$slots,"default")],2)],2))}});var xne=ye(Rne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor.vue"]]);const Ine=me({title:String,href:String}),Mne=["href"],Nne=le({name:"ElAnchorLink",__name:"anchor-link",props:Ine,setup(e){const t=e,n=P(null),{ns:o,direction:a,currentAnchor:l,addLink:r,removeLink:i,handleClick:u}=Te(rO),c=k(()=>[o.e("link"),o.is("active",l.value===t.href)]),d=f=>{u(f,t.href)};return ue(()=>t.href,(f,v)=>{ke(()=>{v&&i(v),f&&r({href:f,el:n.value})})}),st(()=>{const{href:f}=t;f&&r({href:f,el:n.value})}),Dt(()=>{const{href:f}=t;f&&i(f)}),(f,v)=>($(),F("div",{class:x(s(o).e("item"))},[W("a",{ref_key:"linkRef",ref:n,class:x(c.value),href:f.href,onClick:d},[ee(f.$slots,"default",{},()=>[Ct(ge(f.title),1)])],10,Mne),f.$slots["sub-link"]&&s(a)==="vertical"?($(),F("div",{key:0,class:x(s(o).e("list"))},[ee(f.$slots,"sub-link")],2)):te("v-if",!0)],2))}});var sO=ye(Nne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor-link.vue"]]);const iO=Qe(xne,{AnchorLink:sO}),uO=sn(sO),fg={label:"label",value:"value",disabled:"disabled"},cO=me({direction:{type:G(String),default:"horizontal"},options:{type:G(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:G(Object),default:()=>fg},block:Boolean,size:En,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...Yn(["ariaLabel"])}),dO={[Ue]:e=>ze(e)||xe(e)||Vt(e),[ft]:e=>ze(e)||xe(e)||Vt(e)},Ane=["id","aria-label","aria-labelledby"],Pne=["name","disabled","checked","onChange"],Lne=le({name:"ElSegmented",__name:"segmented",props:cO,emits:dO,setup(e,{emit:t}){const n=e,o=t,a=de("segmented"),l=Bn(),r=bn(),i=nn(),{formItem:u}=An(),{inputId:c,isLabeledByFormItem:d}=So(n,{formItemContext:u}),f=P(null),v=fR(),m=Lt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),h=(I,L)=>{const H=g(L);o(Ue,H),o(ft,H),I.target.checked=H===n.modelValue},p=k(()=>({...fg,...n.props})),b=I=>I,g=I=>Rt(I)?I[p.value.value]:I,w=I=>Rt(I)?I[p.value.label]:I,C=I=>!!(i.value||(Rt(I)?I[p.value.disabled]:!1)),y=I=>n.modelValue===g(I),S=I=>n.options.find(L=>g(L)===I),E=I=>[a.e("item"),a.is("selected",y(I)),a.is("disabled",C(I))],_=()=>{if(!f.value)return;const I=f.value.querySelector(".is-selected"),L=f.value.querySelector(".is-selected input");if(!I||!L){m.width=0,m.height=0,m.translateX=0,m.translateY=0,m.focusVisible=!1;return}m.isInit=!0,n.direction==="vertical"?(m.height=I.offsetHeight,m.translateY=I.offsetTop):(m.width=I.offsetWidth,m.translateX=I.offsetLeft);try{m.focusVisible=L.matches(":focus-visible")}catch(H){}},O=k(()=>[a.b(),a.m(r.value),a.is("block",n.block)]),N=k(()=>({width:n.direction==="vertical"?"100%":`${m.width}px`,height:n.direction==="vertical"?`${m.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${m.translateY}px)`:`translateX(${m.translateX}px)`,display:m.isInit?"block":"none"})),R=k(()=>[a.e("item-selected"),a.is("disabled",C(S(n.modelValue))),a.is("focus-visible",m.focusVisible)]),A=k(()=>n.name||l.value);return Qt(f,_),ue(v,_),ue(()=>n.modelValue,()=>{var I;_(),n.validateEvent&&((I=u==null?void 0:u.validate)==null||I.call(u,"change").catch(L=>void 0))},{flush:"post"}),(I,L)=>I.options.length?($(),F("div",{key:0,id:s(c),ref_key:"segmentedRef",ref:f,class:x(O.value),role:"radiogroup","aria-label":s(d)?void 0:I.ariaLabel||"segmented","aria-labelledby":s(d)?s(u).labelId:void 0},[W("div",{class:x([s(a).e("group"),s(a).m(I.direction)])},[W("div",{style:Ne(N.value),class:x(R.value)},null,6),($(!0),F(Fe,null,yt(I.options,(H,K)=>($(),F("label",{key:K,class:x(E(H))},[W("input",{class:x(s(a).e("item-input")),type:"radio",name:A.value,disabled:C(H),checked:y(H),onChange:Y=>h(Y,H)},null,42,Pne),W("div",{class:x(s(a).e("item-label"))},[ee(I.$slots,"default",{item:b(H)},()=>[Ct(ge(w(H)),1)])],2)],2))),128))],2)],10,Ane)):te("v-if",!0)}});var Dne=ye(Lne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/segmented/src/segmented.vue"]]);const fO=Qe(Dne),Bne=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},Fne=(e,t,n)=>{const{selectionEnd:o}=e;if(o===null)return;const a=e.value,l=Nn(t);let r=-1,i;for(let u=o-1;u>=0;--u){const c=a[u];if(c===n||c===`
|
|
68
68
|
`||c==="\r"){r=u;continue}if(l.includes(c)){const d=r===-1?o:r;i={pattern:a.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:r,selectionEnd:o};break}}return i},Vne=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,o=e.selectionEnd!==null?e.selectionEnd:0,a=t.useSelectionEnd?o:n,l=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const v=document.querySelector("#input-textarea-caret-position-mirror-div");v!=null&&v.parentNode&&v.parentNode.removeChild(v)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const i=r.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";i.whiteSpace=c?"nowrap":"pre-wrap",c||(i.wordWrap="break-word"),i.position="absolute",t.debug||(i.visibility="hidden"),l.forEach(v=>{if(c&&v==="lineHeight")if(u.boxSizing==="border-box"){const m=Number.parseInt(u.height),h=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),p=h+Number.parseInt(u.lineHeight);m>p?i.lineHeight=`${m-h}px`:m===p?i.lineHeight=u.lineHeight:i.lineHeight="0"}else i.lineHeight=u.height;else i[v]=u[v]}),qd()?e.scrollHeight>Number.parseInt(u.height)&&(i.overflowY="scroll"):i.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,a)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g,"\xA0"));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,a))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,r.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},pO=me({...is,options:{type:G(Array),default:()=>[]},prefix:{type:G([String,Array]),default:"@",validator:e=>ze(e)?e.length===1:e.every(t=>ze(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:G([Boolean,Function]),default:()=>Bne,validator:e=>e===!1?!0:lt(e)},placement:{type:G(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:G(Function)},modelValue:String,loading:Boolean,popperClass:Kt.popperClass,popperStyle:Kt.popperStyle,popperOptions:{type:G(Object),default:()=>({})},props:{type:G(Object),default:()=>pg}}),vO={[Ue]:e=>ze(e),"whole-remove":(e,t)=>ze(e)&&ze(t),input:e=>ze(e),search:(e,t)=>ze(e)&&ze(t),select:(e,t)=>Rt(e)&&ze(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},pg={value:"value",label:"label",disabled:"disabled"},zne=me({options:{type:G(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),Hne={select:e=>ze(e.value)},Wne=["id","aria-disabled","aria-selected","onMousemove","onClick"],Kne=le({name:"ElMentionDropdown",__name:"mention-dropdown",props:zne,emits:Hne,setup(e,{expose:t,emit:n}){const o=e,a=n,l=de("mention"),{t:r}=wt(),i=P(-1),u=P(),c=P(),d=P(),f=(y,S)=>[l.be("dropdown","item"),l.is("hovering",i.value===S),l.is("disabled",y.disabled||o.disabled)],v=y=>{y.disabled||o.disabled||a("select",y)},m=y=>{i.value=y},h=k(()=>o.disabled||o.options.every(y=>y.disabled)),p=k(()=>o.options[i.value]),b=()=>{!p.value||a("select",p.value)},g=y=>{const{options:S}=o;if(S.length===0||h.value)return;y==="next"?(i.value++,i.value===S.length&&(i.value=0)):y==="prev"&&(i.value--,i.value<0&&(i.value=S.length-1));const E=S[i.value];if(E.disabled){g(y);return}ke(()=>w(E))},w=y=>{var S,E,_,O;const{options:N}=o,R=N.findIndex(I=>I.value===y.value),A=(S=c.value)==null?void 0:S[R];if(A){const I=(_=(E=d.value)==null?void 0:E.querySelector)==null?void 0:_.call(E,`.${l.be("dropdown","wrap")}`);I&&Sp(I,A)}(O=u.value)==null||O.handleScroll()};return ue(()=>o.options,()=>{h.value||o.options.length===0?i.value=-1:i.value=0},{immediate:!0}),t({hoveringIndex:i,navigateOptions:g,selectHoverOption:b,hoverOption:p}),(y,S)=>($(),F("div",{ref_key:"dropdownRef",ref:d,class:x(s(l).b("dropdown"))},[y.$slots.header?($(),F("div",{key:0,class:x(s(l).be("dropdown","header"))},[ee(y.$slots,"header")],2)):te("v-if",!0),ot(X(s(Xo),{id:y.contentId,ref_key:"scrollbarRef",ref:u,tag:"ul","wrap-class":s(l).be("dropdown","wrap"),"view-class":s(l).be("dropdown","list"),role:"listbox","aria-label":y.ariaLabel,"aria-orientation":"vertical"},{default:Q(()=>[($(!0),F(Fe,null,yt(y.options,(E,_)=>($(),F("li",{id:`${y.contentId}-${_}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:_,class:x(f(E,_)),role:"option","aria-disabled":E.disabled||y.disabled||void 0,"aria-selected":i.value===_,onMousemove:O=>m(_),onClick:Ye(O=>v(E),["stop"])},[ee(y.$slots,"label",{item:E,index:_},()=>{var O;return[W("span",null,ge((O=E.label)!=null?O:E.value),1)]})],42,Wne))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[xt,y.options.length>0&&!y.loading]]),y.loading?($(),F("div",{key:1,class:x(s(l).be("dropdown","loading"))},[ee(y.$slots,"loading",{},()=>[Ct(ge(s(r)("el.mention.loading")),1)])],2)):te("v-if",!0),y.$slots.footer?($(),F("div",{key:2,class:x(s(l).be("dropdown","footer"))},[ee(y.$slots,"footer")],2)):te("v-if",!0)],2))}});var jne=ye(Kne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/mention/src/mention-dropdown.vue"]]);const Yne=le({name:"ElMention",inheritAttrs:!1,__name:"mention",props:pO,emits:vO,setup(e,{expose:t,emit:n}){const o=e,a=n,l=k(()=>xa(o,Object.keys(is))),r=de("mention"),i=nn(),u=Bn(),c=P(),d=P(),f=P(),v=P(!1),m=P(),h=P(),p=k(()=>o.showArrow?o.placement:`${o.placement}-start`),b=k(()=>o.showArrow?["bottom","top"]:["bottom-start","top-start"]),g=k(()=>({...pg,...o.props})),w=M=>{const T={label:M[g.value.label],value:M[g.value.value],disabled:M[g.value.disabled]};return{...M,...T}},C=k(()=>o.options.map(w)),y=k(()=>{const{filterOption:M}=o;return!h.value||!M?C.value:C.value.filter(T=>M(h.value.pattern,T))}),S=k(()=>v.value&&(!!y.value.length||o.loading)),E=k(()=>{var M;return`${u.value}-${(M=f.value)==null?void 0:M.hoveringIndex}`}),_=M=>{a(Ue,M),a(yn,M),H()},O=M=>{var T,D,B,z;if((T=c.value)!=null&&T.isComposing)return;const U=Ht(M);switch(U){case pe.left:case pe.right:H();break;case pe.up:case pe.down:if(!v.value)return;M.preventDefault(),(D=f.value)==null||D.navigateOptions(U===pe.up?"prev":"next");break;case pe.enter:case pe.numpadEnter:if(!v.value){o.type!=="textarea"&&H();return}M.preventDefault(),(B=f.value)!=null&&B.hoverOption?(z=f.value)==null||z.selectHoverOption():v.value=!1;break;case pe.esc:if(!v.value)return;M.preventDefault(),v.value=!1;break;case pe.backspace:if(o.whole&&h.value){const{splitIndex:V,selectionEnd:J,pattern:q,prefixIndex:ae,prefix:ie}=h.value,oe=L();if(!oe)return;const fe=oe.value,re=C.value.find(se=>se.value===q);if((lt(o.checkIsWhole)?o.checkIsWhole(q,ie):re)&&V!==-1&&V+1===J){M.preventDefault();const se=fe.slice(0,ae)+fe.slice(V+1);a(Ue,se),a(yn,se),a("whole-remove",q,ie);const Se=ae;ke(()=>{oe.selectionStart=Se,oe.selectionEnd=Se,Y()})}}}},{wrapperRef:N}=za(c,{disabled:i,afterFocus(){H()},beforeBlur(M){var T;return(T=d.value)==null?void 0:T.isFocusInsideContent(M)},afterBlur(){v.value=!1}}),R=()=>{H()},A=M=>o.options.find(T=>M.value===T[g.value.value]),I=M=>{if(!h.value)return;const T=L();if(!T)return;const D=T.value,{split:B}=o,z=D.slice(h.value.end),U=z.startsWith(B),V=`${M.value}${U?"":B}`,J=D.slice(0,h.value.start)+V+z;a(Ue,J),a(yn,J),a("select",A(M),h.value.prefix);const q=h.value.start+V.length+(U?1:0);ke(()=>{T.selectionStart=q,T.selectionEnd=q,T.focus(),Y()})},L=()=>{var M,T;return o.type==="textarea"?(M=c.value)==null?void 0:M.textarea:(T=c.value)==null?void 0:T.input},H=()=>{setTimeout(()=>{K(),Y(),ke(()=>{var M;return(M=d.value)==null?void 0:M.updatePopper()})},0)},K=()=>{const M=L();if(!M)return;const T=Vne(M),D=M.getBoundingClientRect(),B=N.value.getBoundingClientRect();m.value={position:"absolute",width:0,height:`${T.height}px`,left:`${T.left+D.left-B.left}px`,top:`${T.top+D.top-B.top}px`}},Y=()=>{const M=L();if(document.activeElement!==M){v.value=!1;return}const{prefix:T,split:D}=o;if(h.value=Fne(M,T,D),h.value&&h.value.splitIndex===-1){v.value=!0,a("search",h.value.pattern,h.value.prefix);return}v.value=!1};return t({input:c,tooltip:d,dropdownVisible:S}),(M,T)=>($(),F("div",{ref_key:"wrapperRef",ref:N,class:x(s(r).b())},[X(s(Gn),rt(rt(l.value,M.$attrs),{ref_key:"elInputRef",ref:c,"model-value":M.modelValue,disabled:s(i),role:S.value?"combobox":void 0,"aria-activedescendant":S.value?E.value||"":void 0,"aria-controls":S.value?s(u):void 0,"aria-expanded":S.value||void 0,"aria-label":M.ariaLabel,"aria-autocomplete":S.value?"none":void 0,"aria-haspopup":S.value?"listbox":void 0,onInput:_,onKeydown:O,onMousedown:R}),vo({_:2},[yt(M.$slots,(D,B)=>({name:B,fn:Q(z=>[ee(M.$slots,B,Xa(wl(z)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),X(s(Vn),{ref_key:"tooltipRef",ref:d,visible:S.value,"popper-class":[s(r).e("popper"),M.popperClass],"popper-style":M.popperStyle,"popper-options":M.popperOptions,placement:p.value,"fallback-placements":b.value,effect:"light",pure:"",offset:M.offset,"show-arrow":M.showArrow},{default:Q(()=>[W("div",{style:Ne(m.value)},null,4)]),content:Q(()=>[X(jne,{ref_key:"dropdownRef",ref:f,options:y.value,disabled:s(i),loading:M.loading,"content-id":s(u),"aria-label":M.ariaLabel,onSelect:I,onClick:T[0]||(T[0]=Ye(D=>{var B;return(B=c.value)==null?void 0:B.focus()},["stop"]))},vo({_:2},[yt(M.$slots,(D,B)=>({name:B,fn:Q(z=>[ee(M.$slots,B,Xa(wl(z)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var Une=ye(Yne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/mention/src/mention.vue"]]);const hO=Qe(Une);function Gne(e){const t=P(),{width:n,height:o}=Ud(t),a=k(()=>e.value==="horizontal"?n.value:o.value);return{containerEl:t,containerSize:a}}function vg(e){return Number(e.slice(0,-1))/100}function hg(e){return Number(e.slice(0,-2))}function mg(e){return ze(e)&&e.endsWith("%")}function gg(e){return ze(e)&&e.endsWith("px")}function qne(e,t){const n=k(()=>e.value.map(i=>i.size)),o=k(()=>e.value.length),a=P([]);ue([n,o,t],()=>{var i;let u=[],c=0;for(let f=0;f<o.value;f+=1){const v=(i=e.value[f])==null?void 0:i.size;if(mg(v))u[f]=vg(v);else if(gg(v))u[f]=hg(v)/t.value;else if(v||v===0){const m=Number(v);Number.isNaN(m)||(u[f]=m/t.value)}else c+=1,u[f]=void 0}const d=u.reduce((f,v)=>f+(v||0),0);if(d>1||!c){const f=1/d;u=u.map(v=>v===void 0?0:v*f)}else{const f=(1-d)/c;u=u.map(v=>v===void 0?f:v)}a.value=u});const l=i=>i*t.value,r=k(()=>a.value.map(l));return{percentSizes:a,pxSizes:r}}function Xne(e,t,n,o){const a=b=>b*t.value||0;function l(b,g){return mg(b)?a(vg(b)):gg(b)?hg(b):b!=null?b:g}const r=P(0),i=P(null);let u=[],c=Gt;const d=k(()=>e.value.map(b=>[b.min,b.max]));ue(o,()=>{if(r.value){const b=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(b)}});const f=b=>{r.value=0,i.value={index:b,confirmed:!1},u=n.value},v=(b,g)=>{var w,C;let y=null;if((!i.value||!i.value.confirmed)&&g!==0){if(g>0)y=b,i.value={index:b,confirmed:!0};else for(let L=b;L>=0;L-=1)if(u[L]>0){y=L,i.value={index:L,confirmed:!0};break}}const S=(C=y!=null?y:(w=i.value)==null?void 0:w.index)!=null?C:b,E=[...u],_=S+1,O=l(d.value[S][0],0),N=l(d.value[_][0],0),R=l(d.value[S][1],t.value||0),A=l(d.value[_][1],t.value||0);let I=g;E[S]+I<O&&(I=O-E[S]),E[_]-I<N&&(I=E[_]-N),E[S]+I>R&&(I=R-E[S]),E[_]-I>A&&(I=E[_]-A),E[S]+=I,E[_]-=I,r.value=I,c=()=>{e.value.forEach((L,H)=>{L.size=E[H]}),c=Gt},o.value||c()},m=()=>{o.value&&c(),r.value=0,i.value=null,u=[]},h=[];return{lazyOffset:r,onMoveStart:f,onMoving:v,onMoveEnd:m,movingIndex:i,onCollapse:(b,g)=>{h.length||h.push(...n.value);const w=n.value,C=g==="start"?b:b+1,y=g==="start"?b+1:b,S=w[C],E=w[y];if(S!==0&&E!==0)w[C]=0,w[y]+=S,h[b]=S;else{const _=S+E,O=h[b],N=_-O;w[y]=O,w[C]=N}e.value.forEach((_,O)=>{_.size=w[O]})}}}const mO=me({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),gO={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},bO=Symbol("splitterRootContextKey"),Zne=le({name:"ElSplitter",__name:"splitter",props:mO,emits:gO,setup(e,{emit:t}){const n=de("splitter"),o=t,a=e,l=Ft(a,"layout"),r=Ft(a,"lazy"),{containerEl:i,containerSize:u}=Gne(l),{removeChild:c,children:d,addChild:f,ChildrenSorter:v}=Ci(it(),"ElSplitterPanel");ue(d,()=>{b.value=null,d.value.forEach((R,A)=>{R.setIndex(A)})});const{percentSizes:m,pxSizes:h}=qne(d,u),{lazyOffset:p,movingIndex:b,onMoveStart:g,onMoving:w,onMoveEnd:C,onCollapse:y}=Xne(d,u,h,r),S=k(()=>({[n.cssVarBlockName("bar-offset")]:r.value?`${p.value}px`:void 0}));return St(bO,Lt({panels:d,percentSizes:m,pxSizes:h,layout:l,lazy:r,movingIndex:b,containerSize:u,onMoveStart:R=>{g(R),o("resizeStart",R,h.value)},onMoving:(R,A)=>{w(R,A),r.value||o("resize",R,h.value)},onMoveEnd:async R=>{C(),await ke(),o("resizeEnd",R,h.value)},onCollapse:(R,A)=>{y(R,A),o("collapse",R,A,h.value)},registerPanel:f,unregisterPanel:c})),(R,A)=>($(),F("div",{ref_key:"containerEl",ref:i,class:x([s(n).b(),s(n).e(l.value)]),style:Ne(S.value)},[ee(R.$slots,"default"),X(s(v)),te(" Prevent iframe touch events from breaking "),s(b)?($(),F("div",{key:0,class:x([s(n).e("mask"),s(n).e(`mask-${l.value}`)])},null,2)):te("v-if",!0)],6))}});var Jne=ye(Zne,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/splitter.vue"]]);function Qne(e){return e&&Rt(e)?e:{start:!!e,end:!!e}}function yO(e,t,n,o){return!!((e==null?void 0:e.collapsible.end)&&t>0||(n==null?void 0:n.collapsible.start)&&o===0&&t>0)}const eoe=le({name:"ElSplitterBar",__name:"split-bar",props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=de("splitter-bar"),o=e,a=t,l=k(()=>o.layout==="horizontal"),r=k(()=>l.value?{width:0}:{height:0}),i=k(()=>({width:l.value?"16px":"100%",height:l.value?"100%":"16px",cursor:o.resizable?l.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),u=k(()=>{const w=n.e("dragger");return{[`${w}-horizontal`]:l.value,[`${w}-vertical`]:!l.value,[`${w}-active`]:!!c.value}}),c=P(null),d=w=>{!o.resizable||(c.value=[w.pageX,w.pageY],a("moveStart",o.index),window.addEventListener("mouseup",h),window.addEventListener("mousemove",v))},f=w=>{if(o.resizable&&w.touches.length===1){w.preventDefault();const C=w.touches[0];c.value=[C.pageX,C.pageY],a("moveStart",o.index),window.addEventListener("touchend",p),window.addEventListener("touchmove",m)}},v=w=>{const{pageX:C,pageY:y}=w,S=C-c.value[0],E=y-c.value[1],_=l.value?S:E;a("moving",o.index,_)},m=w=>{if(w.touches.length===1){w.preventDefault();const C=w.touches[0],y=C.pageX-c.value[0],S=C.pageY-c.value[1],E=l.value?y:S;a("moving",o.index,E)}},h=()=>{c.value=null,window.removeEventListener("mouseup",h),window.removeEventListener("mousemove",v),a("moveEnd",o.index)},p=()=>{c.value=null,window.removeEventListener("touchend",p),window.removeEventListener("touchmove",m),a("moveEnd",o.index)},b=k(()=>l.value?il:Qu),g=k(()=>l.value?to:Aa);return(w,C)=>($(),F("div",{class:x([s(n).b()]),style:Ne(r.value)},[e.startCollapsible?($(),F("div",{key:0,class:x([s(n).e("collapse-icon"),s(n).e(`${e.layout}-collapse-icon-start`)]),onClick:C[0]||(C[0]=y=>a("collapse",e.index,"start"))},[ee(w.$slots,"start-collapsible",{},()=>[($(),ne(at(b.value),{style:{width:"12px",height:"12px"}}))])],2)):te("v-if",!0),W("div",{class:x([s(n).e("dragger"),u.value,s(n).is("disabled",!e.resizable),s(n).is("lazy",e.resizable&&e.lazy)]),style:Ne(i.value),onMousedown:d,onTouchstart:f},null,38),e.endCollapsible?($(),F("div",{key:1,class:x([s(n).e("collapse-icon"),s(n).e(`${e.layout}-collapse-icon-end`)]),onClick:C[1]||(C[1]=y=>a("collapse",e.index,"end"))},[ee(w.$slots,"end-collapsible",{},()=>[($(),ne(at(g.value),{style:{width:"12px",height:"12px"}}))])],2)):te("v-if",!0)],6))}});var toe=ye(eoe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-bar.vue"]]);const wO=me({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),CO={"update:size":e=>typeof e=="number"||typeof e=="string"},SO="ElSplitterPanel",noe=le({name:SO,__name:"split-panel",props:wO,emits:CO,setup(e,{expose:t,emit:n}){const o=de("splitter-panel"),a=e,l=n,r=Te(bO);r||kn(SO,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:i,layout:u,lazy:c,containerSize:d,pxSizes:f}=In(r),{registerPanel:v,unregisterPanel:m,onCollapse:h,onMoveEnd:p,onMoveStart:b,onMoving:g}=r,w=P(),C=it(),y=C.uid,S=P(0),E=k(()=>i.value[S.value]),_=T=>{S.value=T},O=k(()=>{var T;return E.value&&(T=f.value[S.value])!=null?T:0}),N=k(()=>{var T;return E.value&&(T=f.value[S.value+1])!=null?T:0}),R=k(()=>E.value?i.value[S.value+1]:null),A=k(()=>{var T;return R.value?a.resizable&&((T=R.value)==null?void 0:T.resizable)&&(O.value!==0||!a.min)&&(N.value!==0||!R.value.min):!1}),I=k(()=>E.value?S.value!==i.value.length-1:!1),L=k(()=>yO(E.value,O.value,R.value,N.value)),H=k(()=>yO(R.value,N.value,E.value,O.value));function K(T){return mg(T)?vg(T)*d.value||0:gg(T)?hg(T):T!=null?T:0}let Y=!1;ue(()=>a.size,()=>{if(!Y&&E.value){if(!d.value){E.value.size=a.size;return}const T=K(a.size),D=K(a.max),B=K(a.min),z=Math.min(Math.max(T,B||0),D||T);z!==T&&l("update:size",z),E.value.size=z}}),ue(()=>{var T;return(T=E.value)==null?void 0:T.size},T=>{T!==a.size&&(Y=!0,l("update:size",T),ke(()=>Y=!1))}),ue(()=>a.resizable,T=>{E.value&&(E.value.resizable=T)});const M=Lt({el:w.value,uid:y,getVnode:()=>C.vnode,setIndex:_,...a,collapsible:k(()=>Qne(a.collapsible))});return v(M),Dt(()=>m(M)),t({splitterPanelRef:w}),(T,D)=>($(),F(Fe,null,[W("div",rt({ref_key:"panelEl",ref:w,class:[s(o).b()],style:{flexBasis:`${O.value}px`}},T.$attrs),[ee(T.$slots,"default")],16),I.value?($(),ne(toe,{key:0,index:S.value,layout:s(u),lazy:s(c),resizable:A.value,"start-collapsible":L.value,"end-collapsible":H.value,onMoveStart:s(b),onMoving:s(g),onMoveEnd:s(p),onCollapse:s(h)},{"start-collapsible":Q(()=>[ee(T.$slots,"start-collapsible")]),"end-collapsible":Q(()=>[ee(T.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):te("v-if",!0)],64))}});var kO=ye(noe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-panel.vue"]]);const EO=Qe(Jne,{SplitPanel:kO}),$O=sn(kO);var ooe=[yC,EC,mS,Y_,yS,kS,_v,OS,RS,xn,Nv,yk,Ck,Tk,Ok,e2,Sh,o2,Jo,Ak,Zc,u2,v2,h2,Pi,Nh,$2,vC,x2,I2,M2,N2,A2,K2,Vh,q2,X2,eE,Uh,aE,gE,bE,yE,Zh,BC,FC,$e,$E,Jh,Gn,Qh,xE,NE,jE,YE,UE,GE,ZE,t$,a$,i$,Ev,sm,bh,Wk,Hk,f$,v$,s2,Xo,gl,Ni,bk,D$,V$,z$,j$,Z$,$m,o_,i_,u_,p_,R_,x_,j_,oT,aT,Wa,Cd,ck,iT,fT,pT,Vn,mT,$d,ST,MT,jT,UT,nO,oO,iO,uO,fO,hO,EO,$O];const Po="ElInfiniteScroll",aoe=50,loe=200,roe=0,soe={delay:{type:Number,default:loe},distance:{type:Number,default:roe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},bg=(e,t)=>Object.entries(soe).reduce((n,[o,a])=>{var l,r;const{type:i,default:u}=a,c=e.getAttribute(`infinite-scroll-${o}`);let d=(r=(l=t[c])!=null?l:c)!=null?r:u;return d=d==="false"?!1:d,d=i(d),n[o]=Number.isNaN(d)?u:d,n},{}),_O=e=>{const{observer:t}=e[Po];t&&(t.disconnect(),delete e[Po].observer)},ioe=(e,t)=>{const{container:n,containerEl:o,instance:a,observer:l,lastScrollTop:r}=e[Po],{disabled:i,distance:u}=bg(e,a),{clientHeight:c,scrollHeight:d,scrollTop:f}=o,v=f-r;if(e[Po].lastScrollTop=f,l||i||v<0)return;let m=!1;if(n===e)m=d-(c+f)<=u;else{const{clientTop:h,scrollHeight:p}=e,b=Xd(e,o);m=f+c>=b+h+p-u}m&&t.call(a)};function yg(e,t){const{containerEl:n,instance:o}=e[Po],{disabled:a}=bg(e,o);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(o):_O(e))}const uoe={async mounted(e,t){const{instance:n,value:o}=t;ca({scope:Po,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),lt(o)||kn(Po,"'v-infinite-scroll' binding value must be a function"),await ke();const{delay:a,immediate:l}=bg(e,n),r=Cp(e,!0),i=r===window?document.documentElement:r,u=ll(ioe.bind(null,e,o),a);if(!!r){if(e[Po]={instance:n,container:r,containerEl:i,delay:a,cb:o,onScroll:u,lastScrollTop:i.scrollTop},l){const c=new MutationObserver(ll(yg.bind(null,e,o),aoe));e[Po].observer=c,c.observe(e,{childList:!0,subtree:!0}),yg(e,o)}r.addEventListener("scroll",u)}},unmounted(e){if(!e[Po])return;const{container:t,onScroll:n}=e[Po];t==null||t.removeEventListener("scroll",n),_O(e)},async updated(e){if(!e[Po])await ke();else{const{containerEl:t,cb:n,observer:o}=e[Po];t.clientHeight&&o&&yg(e,n)}}};var coe=uoe;const wg=coe;wg.install=e=>{e.directive("InfiniteScroll",wg)};const TO=wg;function doe(e,t){let n;const o=P(!1),a=Lt({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(m){a.text=m}function r(){const m=a.parent,h=v.ns;if(!m.vLoadingAddClassList){let p=m.getAttribute("loading-number");p=Number.parseInt(p)-1,p?m.setAttribute("loading-number",p.toString()):(eo(m,h.bm("parent","relative")),m.removeAttribute("loading-number")),eo(m,h.bm("parent","hidden"))}i(),f.unmount()}function i(){var m,h;(h=(m=v.$el)==null?void 0:m.parentNode)==null||h.removeChild(v.$el)}function u(){var m;e.beforeClose&&!e.beforeClose()||(o.value=!0,clearTimeout(n),n=setTimeout(c,400),a.visible=!1,(m=e.closed)==null||m.call(e))}function c(){if(!o.value)return;const m=a.parent;o.value=!1,m.vLoadingAddClassList=void 0,r()}const d=le({name:"ElLoading",setup(m,{expose:h}){const{ns:p,zIndex:b}=Si("loading");return h({ns:p,zIndex:b}),()=>{const g=a.spinner||a.svg,w=De("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[De("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),C=a.text?De("p",{class:p.b("text")},[a.text]):void 0;return De(zn,{name:p.b("fade"),onAfterLeave:c},{default:Q(()=>[ot(X("div",{style:{backgroundColor:a.background||""},class:[p.b("mask"),a.customClass,p.is("fullscreen",a.fullscreen)]},[De("div",{class:p.b("spinner")},[w,C])]),[[xt,a.visible]])])})}}}),f=XO(d);Object.assign(f._context,t!=null?t:{});const v=f.mount(document.createElement("div"));return{...In(a),setText:l,removeElLoadingChild:i,close:u,handleAfterLeave:c,vm:v,get $el(){return v.$el}}}let Id;const Cg=function(e={},t){if(!_t)return;const n=foe(e);if(n.fullscreen&&Id)return Id;const o=doe({...n,closed:()=>{var l;(l=n.closed)==null||l.call(n),n.fullscreen&&(Id=void 0)}},t!=null?t:Cg._context);poe(n,n.parent,o),OO(n,n.parent,o),n.parent.vLoadingAddClassList=()=>OO(n,n.parent,o);let a=n.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",n.parent.setAttribute("loading-number",a),n.parent.appendChild(o.$el),ke(()=>o.visible.value=n.visible),n.fullscreen&&(Id=o),o},foe=e=>{var t,n,o,a;let l;return ze(e.target)?l=(t=document.querySelector(e.target))!=null?t:document.body:l=e.target||document.body,{parent:l===document.body||e.body?document.body:l,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:l===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:l}},poe=async(e,t,n)=>{const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=sl(document.body,"position"),n.originalOverflow.value=sl(document.body,"overflow"),a.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=sl(document.body,"position"),await ke();for(const l of["top","left"]){const r=l==="top"?"scrollTop":"scrollLeft";a[l]=`${e.target.getBoundingClientRect()[l]+document.body[r]+document.documentElement[r]-Number.parseInt(sl(document.body,`margin-${l}`),10)}px`}for(const l of["height","width"])a[l]=`${e.target.getBoundingClientRect()[l]}px`}else n.originalPosition.value=sl(t,"position");for(const[l,r]of Object.entries(a))n.$el.style[l]=r},OO=(e,t,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?eo(t,o.bm("parent","relative")):Ko(t,o.bm("parent","relative")),e.fullscreen&&e.lock?Ko(t,o.bm("parent","hidden")):eo(t,o.bm("parent","hidden"))};Cg._context=null;var eu=Cg;const tu=Symbol("ElLoading"),Sr=e=>`element-loading-${ER(e)}`,RO=(e,t)=>{var n,o,a,l;const r=t.instance,i=m=>Rt(t.value)?t.value[m]:void 0,u=m=>{const h=ze(m)&&(r==null?void 0:r[m])||m;return P(h)},c=m=>u(i(m)||e.getAttribute(Sr(m))),d=(n=i("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:d,target:(o=i("target"))!=null?o:d?void 0:e,body:(a=i("body"))!=null?a:t.modifiers.body,lock:(l=i("lock"))!=null?l:t.modifiers.lock},v=eu(f);v._context=Sg._context,e[tu]={options:f,instance:v}},voe=(e,t)=>{for(const n of Object.keys(e))Kn(e[n])&&(e[n].value=t[n])},Sg={mounted(e,t){t.value&&RO(e,t)},updated(e,t){const n=e[tu];if(!t.value){n==null||n.instance.close(),e[tu]=null;return}n?voe(n.options,Rt(t.value)?t.value:{text:e.getAttribute(Sr("text")),svg:e.getAttribute(Sr("svg")),svgViewBox:e.getAttribute(Sr("svgViewBox")),spinner:e.getAttribute(Sr("spinner")),background:e.getAttribute(Sr("background")),customClass:e.getAttribute(Sr("customClass"))}):RO(e,t)},unmounted(e){var t;(t=e[tu])==null||t.instance.close(),e[tu]=null}};Sg._context=null;var nu=Sg;const xO={install(e){eu._context=e._context,nu._context=e._context,e.directive("loading",nu),e.config.globalProperties.$loading=eu},directive:nu,service:eu},kg=["primary","success","info","warning","error"],Eg=["top","top-left","top-right","bottom","bottom-left","bottom-right"],kr="top",Zn=un({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:_t?document.body:void 0}),IO=me({customClass:{type:String,default:Zn.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Zn.dangerouslyUseHTMLString},duration:{type:Number,default:Zn.duration},icon:{type:zt,default:Zn.icon},id:{type:String,default:Zn.id},message:{type:G([String,Object,Function]),default:Zn.message},onClose:{type:G(Function),default:Zn.onClose},showClose:{type:Boolean,default:Zn.showClose},type:{type:String,values:kg,default:Zn.type},plain:{type:Boolean,default:Zn.plain},offset:{type:Number,default:Zn.offset},placement:{type:String,values:Eg,default:Zn.placement},zIndex:{type:Number,default:Zn.zIndex},grouping:{type:Boolean,default:Zn.grouping},repeatNum:{type:Number,default:Zn.repeatNum}}),MO={destroy:()=>!0},Sa=Ag({}),hoe=e=>(Sa[e]||(Sa[e]=Ag([])),Sa[e]),moe=(e,t)=>{const n=Sa[t]||[],o=n.findIndex(r=>r.id===e),a=n[o];let l;return o>0&&(l=n[o-1]),{current:a,prev:l}},goe=(e,t)=>{const{prev:n}=moe(e,t);return n?n.vm.exposed.bottom.value:0},boe=(e,t,n)=>(Sa[n]||[]).findIndex(l=>l.id===e)>0?16:t,yoe=["id"],woe=["innerHTML"],Coe=le({name:"ElMessage",__name:"message",props:IO,emits:MO,setup(e,{expose:t,emit:n}){const{Close:o}=$p,a=e,l=n,r=P(!1),{ns:i,zIndex:u}=Si("message"),{currentZIndex:c,nextZIndex:d}=u,f=P(),v=P(!1),m=P(0);let h;const p=k(()=>a.type?a.type==="error"?"danger":a.type:"info"),b=k(()=>{const L=a.type;return{[i.bm("icon",L)]:L&&Al[L]}}),g=k(()=>a.icon||Al[a.type]||""),w=k(()=>a.placement||kr),C=k(()=>goe(a.id,w.value)),y=k(()=>boe(a.id,a.offset,w.value)+C.value),S=k(()=>m.value+y.value),E=k(()=>w.value.includes("left")?i.is("left"):w.value.includes("right")?i.is("right"):i.is("center")),_=k(()=>w.value.startsWith("top")?"top":"bottom"),O=k(()=>({[_.value]:`${y.value}px`,zIndex:c.value}));function N(){a.duration!==0&&({stop:h}=Tr(()=>{A()},a.duration))}function R(){h==null||h()}function A(){v.value=!1,ke(()=>{var L;r.value||((L=a.onClose)==null||L.call(a),l("destroy"))})}function I(L){Ht(L)===pe.esc&&A()}return st(()=>{N(),d(),v.value=!0}),ue(()=>a.repeatNum,()=>{R(),N()}),Mt(document,"keydown",I),Qt(f,()=>{m.value=f.value.getBoundingClientRect().height}),t({visible:v,bottom:S,close:A}),(L,H)=>($(),ne(zn,{name:s(i).b("fade"),onBeforeEnter:H[0]||(H[0]=K=>r.value=!0),onBeforeLeave:L.onClose,onAfterLeave:H[1]||(H[1]=K=>L.$emit("destroy")),persisted:""},{default:Q(()=>[ot(W("div",{id:L.id,ref_key:"messageRef",ref:f,class:x([s(i).b(),{[s(i).m(L.type)]:L.type},s(i).is("closable",L.showClose),s(i).is("plain",L.plain),s(i).is("bottom",_.value==="bottom"),E.value,L.customClass]),style:Ne(O.value),role:"alert",onMouseenter:R,onMouseleave:N},[L.repeatNum>1?($(),ne(s(_v),{key:0,value:L.repeatNum,type:p.value,class:x(s(i).e("badge"))},null,8,["value","type","class"])):te("v-if",!0),g.value?($(),ne(s($e),{key:1,class:x([s(i).e("icon"),b.value])},{default:Q(()=>[($(),ne(at(g.value)))]),_:1},8,["class"])):te("v-if",!0),ee(L.$slots,"default",{},()=>[L.dangerouslyUseHTMLString?($(),F(Fe,{key:1},[te(" Caution here, message could've been compromised, never use user's input as message "),W("p",{class:x(s(i).e("content")),innerHTML:L.message},null,10,woe)],2112)):($(),F("p",{key:0,class:x(s(i).e("content"))},ge(L.message),3))]),L.showClose?($(),ne(s($e),{key:2,class:x(s(i).e("closeBtn")),onClick:Ye(A,["stop"])},{default:Q(()=>[X(s(o))]),_:1},8,["class"])):te("v-if",!0)],46,yoe),[[xt,v.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Soe=ye(Coe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let koe=1;const Eoe=e=>{if(!e.appendTo)e.appendTo=document.body;else if(ze(e.appendTo)){let n=document.querySelector(e.appendTo);bo(n)||(n=document.body),e.appendTo=n}},$oe=e=>{!e.placement&&ze(Un.placement)&&Un.placement&&(e.placement=Un.placement),e.placement||(e.placement=kr),Eg.includes(e.placement)||(`${e.placement}${kr}`,e.placement=kr)},NO=e=>{const t=!e||ze(e)||Jt(e)||lt(e)?{message:e}:e,n={...Zn,...t};return Eoe(n),$oe(n),Vt(Un.grouping)&&!n.grouping&&(n.grouping=Un.grouping),xe(Un.duration)&&n.duration===3e3&&(n.duration=Un.duration),xe(Un.offset)&&n.offset===16&&(n.offset=Un.offset),Vt(Un.showClose)&&!n.showClose&&(n.showClose=Un.showClose),Vt(Un.plain)&&!n.plain&&(n.plain=Un.plain),n},_oe=e=>{const t=e.props.placement||kr,n=Sa[t],o=n.indexOf(e);if(o===-1)return;n.splice(o,1);const{handler:a}=e;a.close()},Toe=({appendTo:e,...t},n)=>{const o=`message_${koe++}`,a=t.onClose,l=document.createElement("div"),r={...t,id:o,onClose:()=>{a==null||a(),_oe(d)},onDestroy:()=>{Sl(null,l)}},i=X(Soe,r,lt(r.message)||Jt(r.message)?{default:lt(r.message)?r.message:()=>r.message}:null);i.appContext=n||Er._context,Sl(i,l),e.appendChild(l.firstElementChild);const u=i.component,d={id:o,vnode:i,vm:u,handler:{close:()=>{u.exposed.close()}},props:i.component.props};return d},Er=(e={},t)=>{if(!_t)return{close:()=>{}};const n=NO(e),o=hoe(n.placement||kr);if(n.grouping&&o.length){const l=o.find(({vnode:r})=>{var i;return((i=r.props)==null?void 0:i.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}if(xe(Un.max)&&o.length>=Un.max)return{close:()=>{}};const a=Toe(n,t);return o.push(a),a.handler};kg.forEach(e=>{Er[e]=(t={},n)=>{const o=NO(t);return Er({...o,type:e},n)}});function Ooe(e){for(const t in Sa)if(Ln(Sa,t)){const n=[...Sa[t]];for(const o of n)(!e||e===o.props.type)&&o.handler.close()}}function Roe(e){if(!Sa[e])return;[...Sa[e]].forEach(n=>n.handler.close())}Er.closeAll=Ooe,Er.closeAllByPlacement=Roe,Er._context=null;var xoe=Er;const AO=W1(xoe,"$message"),Ioe=le({name:"ElMessageBox",directives:{TrapFocus:qS},components:{ElButton:xn,ElFocusTrap:us,ElInput:Gn,ElOverlay:rd,ElIcon:$e,...$p},inheritAttrs:!1,props:{buttonSize:{type:String,validator:K1},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:o,ns:a,size:l}=Si("message-box",k(()=>e.buttonSize)),{t:r}=n,{nextZIndex:i}=o,u=P(!1),c=Lt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Cl(Pa),cancelButtonLoadingIcon:Cl(Pa),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),d=k(()=>{const M=c.type;return{[a.bm("icon",M)]:M&&Al[M]}}),f=Bn(),v=Bn(),m=k(()=>{const M=c.type;return c.icon||M&&Al[M]||""}),h=k(()=>!!c.message),p=P(),b=P(),g=P(),w=P(),C=P(),y=k(()=>c.confirmButtonClass);ue(()=>c.inputValue,async M=>{await ke(),e.boxType==="prompt"&&M&&L()},{immediate:!0}),ue(()=>u.value,M=>{var T,D;M&&(e.boxType!=="prompt"&&(c.autofocus?g.value=(D=(T=C.value)==null?void 0:T.$el)!=null?D:p.value:g.value=p.value),c.zIndex=i()),e.boxType==="prompt"&&(M?ke().then(()=>{var B;w.value&&w.value.$el&&(c.autofocus?g.value=(B=H())!=null?B:p.value:g.value=p.value)}):(c.editorErrorMessage="",c.validateError=!1))});const S=k(()=>e.draggable),E=k(()=>e.overflow),{isDragging:_}=Op(p,b,S,E);st(async()=>{await ke(),e.closeOnHashChange&&window.addEventListener("hashchange",O)}),Dt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",O)});function O(){!u.value||(u.value=!1,ke(()=>{c.action&&t("action",c.action)}))}const N=()=>{e.closeOnClickModal&&I(c.distinguishCancelAndClose?"close":"cancel")},R=uc(N),A=M=>{if(c.inputType!=="textarea")return M.preventDefault(),I("confirm")},I=M=>{var T;e.boxType==="prompt"&&M==="confirm"&&!L()||(c.action=M,c.beforeClose?(T=c.beforeClose)==null||T.call(c,M,c,O):O())},L=()=>{if(e.boxType==="prompt"){const M=c.inputPattern;if(M&&!M.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;const T=c.inputValidator;if(lt(T)){const D=T(c.inputValue);if(D===!1)return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;if(ze(D))return c.editorErrorMessage=D,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},H=()=>{var M,T;const D=(M=w.value)==null?void 0:M.$refs;return(T=D==null?void 0:D.input)!=null?T:D==null?void 0:D.textarea},K=()=>{I("close")},Y=()=>{e.closeOnPressEscape&&K()};return e.lockScroll&&di(u,{ns:a}),{...In(c),ns:a,overlayEvent:R,visible:u,hasMessage:h,typeClass:d,contentId:f,inputId:v,btnSize:l,iconComponent:m,confirmButtonClasses:y,rootRef:p,focusStartRef:g,headerRef:b,inputRef:w,isDragging:_,confirmRef:C,doClose:O,handleClose:K,onCloseRequested:Y,handleWrapperClick:N,handleInputEnter:A,handleAction:I,t:r}}}),Moe=["aria-label","aria-describedby"],Noe=["aria-label"],Aoe=["id"];function Poe(e,t,n,o,a,l){const r=It("el-icon"),i=It("el-input"),u=It("el-button"),c=It("el-focus-trap"),d=It("el-overlay");return $(),ne(zn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:Q(()=>[ot(X(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Q(()=>[W("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:x(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[X(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Q(()=>[W("div",{ref:"rootRef",class:x([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:Ne(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Ye(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?($(),F("div",{key:0,ref:"headerRef",class:x([e.ns.e("header"),{"show-close":e.showClose}])},[W("div",{class:x(e.ns.e("title"))},[e.iconComponent&&e.center?($(),ne(r,{key:0,class:x([e.ns.e("status"),e.typeClass])},{default:Q(()=>[($(),ne(at(e.iconComponent)))]),_:1},8,["class"])):te("v-if",!0),W("span",null,ge(e.title),1)],2),e.showClose?($(),F("button",{key:0,type:"button",class:x(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=cn(Ye(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[X(r,{class:x(e.ns.e("close"))},{default:Q(()=>[($(),ne(at(e.closeIcon||"close")))]),_:1},8,["class"])],42,Noe)):te("v-if",!0)],2)):te("v-if",!0),W("div",{id:e.contentId,class:x(e.ns.e("content"))},[W("div",{class:x(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?($(),ne(r,{key:0,class:x([e.ns.e("status"),e.typeClass])},{default:Q(()=>[($(),ne(at(e.iconComponent)))]),_:1},8,["class"])):te("v-if",!0),e.hasMessage?($(),F("div",{key:1,class:x(e.ns.e("message"))},[ee(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?($(),ne(at(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):($(),ne(at(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:ge(e.message)},null,8,["for","textContent"]))])],2)):te("v-if",!0)],2),ot(W("div",{class:x(e.ns.e("input"))},[X(i,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:x({invalid:e.validateError}),onKeydown:cn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),W("div",{class:x(e.ns.e("errormsg")),style:Ne({visibility:e.editorErrorMessage?"visible":"hidden"})},ge(e.editorErrorMessage),7)],2),[[xt,e.showInput]])],10,Aoe),W("div",{class:x(e.ns.e("btns"))},[e.showCancelButton?($(),ne(u,{key:0,type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:x([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=cn(Ye(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:Q(()=>[Ct(ge(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):te("v-if",!0),ot(X(u,{ref:"confirmRef",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:x([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=cn(Ye(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:Q(()=>[Ct(ge(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[xt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Moe)]),_:3},8,["z-index","overlay-class","mask"]),[[xt,e.visible]])]),_:3})}var Loe=ye(Ioe,[["render",Poe],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const ou=new Map,Doe=e=>{let t=document.body;return e.appendTo&&(ze(e.appendTo)&&(t=document.querySelector(e.appendTo)),bo(e.appendTo)&&(t=e.appendTo),bo(t)||(t=document.body)),t},Boe=(e,t,n=null)=>{const o=X(Loe,e,lt(e.message)||Jt(e.message)?{default:lt(e.message)?e.message:()=>e.message}:null);return o.appContext=n,Sl(o,t),Doe(e).appendChild(t.firstElementChild),o.component},Foe=()=>document.createElement("div"),Voe=(e,t)=>{const n=Foe();e.onVanish=()=>{Sl(null,n),ou.delete(a)},e.onAction=l=>{const r=ou.get(a);let i;e.showInput?i={value:a.inputValue,action:l}:i=l,e.callback?e.callback(i,o.proxy):l==="cancel"||l==="close"?e.distinguishCancelAndClose&&l!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(i)};const o=Boe(e,n,t),a=o.proxy;for(const l in e)Ln(e,l)&&!Ln(a.$props,l)&&(l==="closeIcon"&&Rt(e[l])?a[l]=Cl(e[l]):a[l]=e[l]);return a.visible=!0,a};function Rs(e,t=null){if(!_t)return Promise.reject();let n;return ze(e)||Jt(e)?e={message:e}:n=e.callback,new Promise((o,a)=>{const l=Voe(e,t!=null?t:Rs._context);ou.set(l,{options:e,callback:n,resolve:o,reject:a})})}const zoe=["alert","confirm","prompt"],Hoe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};zoe.forEach(e=>{Rs[e]=Woe(e)});function Woe(e){return(t,n,o,a)=>{let l="";return Rt(n)?(o=n,l=""):$t(n)?l="":l=n,Rs(Object.assign({title:l,message:t,type:"",...Hoe[e]},o,{boxType:e}),a)}}Rs.close=()=>{ou.forEach((e,t)=>{t.doClose()}),ou.clear()},Rs._context=null;const Gl=Rs;Gl.install=e=>{Gl._context=e._context,e.config.globalProperties.$msgbox=Gl,e.config.globalProperties.$messageBox=Gl,e.config.globalProperties.$alert=Gl.alert,e.config.globalProperties.$confirm=Gl.confirm,e.config.globalProperties.$prompt=Gl.prompt};const PO=Gl,$g=["primary","success","info","warning","error"],LO=me({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:zt},id:{type:String,default:""},message:{type:G([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:G(Function),default:()=>{}},onClose:{type:G(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...$g,""],default:""},zIndex:Number,closeIcon:{type:zt,default:jo}}),DO={destroy:()=>!0},Koe=["id"],joe=["textContent"],Yoe={key:0},Uoe=["innerHTML"],Goe=le({name:"ElNotification",__name:"notification",props:LO,emits:DO,setup(e,{expose:t}){const n=e,{ns:o,zIndex:a}=Si("notification"),{nextZIndex:l,currentZIndex:r}=a,i=P(!1);let u;const c=k(()=>{const w=n.type;return w&&Al[n.type]?o.m(w):""}),d=k(()=>n.type&&Al[n.type]||n.icon),f=k(()=>n.position.endsWith("right")?"right":"left"),v=k(()=>n.position.startsWith("top")?"top":"bottom"),m=k(()=>{var w;return{[v.value]:`${n.offset}px`,zIndex:(w=n.zIndex)!=null?w:r.value}});function h(){n.duration>0&&({stop:u}=Tr(()=>{i.value&&b()},n.duration))}function p(){u==null||u()}function b(){i.value=!1}function g(w){switch(Ht(w)){case pe.delete:case pe.backspace:p();break;case pe.esc:i.value&&b();break;default:h();break}}return st(()=>{h(),l(),i.value=!0}),Mt(document,"keydown",g),t({visible:i,close:b}),(w,C)=>($(),ne(zn,{name:s(o).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:C[1]||(C[1]=y=>w.$emit("destroy")),persisted:""},{default:Q(()=>[ot(W("div",{id:w.id,class:x([s(o).b(),w.customClass,f.value]),style:Ne(m.value),role:"alert",onMouseenter:p,onMouseleave:h,onClick:C[0]||(C[0]=(...y)=>w.onClick&&w.onClick(...y))},[d.value?($(),ne(s($e),{key:0,class:x([s(o).e("icon"),c.value])},{default:Q(()=>[($(),ne(at(d.value)))]),_:1},8,["class"])):te("v-if",!0),W("div",{class:x(s(o).e("group"))},[W("h2",{class:x(s(o).e("title")),textContent:ge(w.title)},null,10,joe),ot(W("div",{class:x(s(o).e("content")),style:Ne(w.title?void 0:{margin:0})},[ee(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?($(),F(Fe,{key:1},[te(" Caution here, message could've been compromised, never use user's input as message "),W("p",{innerHTML:w.message},null,8,Uoe)],2112)):($(),F("p",Yoe,ge(w.message),1))])],6),[[xt,w.message]]),w.showClose?($(),ne(s($e),{key:0,class:x(s(o).e("closeBtn")),onClick:Ye(b,["stop"])},{default:Q(()=>[($(),ne(at(w.closeIcon)))]),_:1},8,["class"])):te("v-if",!0)],2)],46,Koe),[[xt,i.value]])]),_:3},8,["name","onBeforeLeave"]))}});var qoe=ye(Goe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const xs={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Md=16;let Xoe=1;const $r=function(e={},t){if(!_t)return{close:()=>{}};(ze(e)||Jt(e))&&(e={message:e});const n=e.position||"top-right";let o=e.offset||0;xs[n].forEach(({vm:d})=>{var f;o+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Md}),o+=Md;const a=`notification_${Xoe++}`,l=e.onClose,r={...e,offset:o,id:a,onClose:()=>{Zoe(a,n,l)}};let i=document.body;bo(e.appendTo)?i=e.appendTo:ze(e.appendTo)&&(i=document.querySelector(e.appendTo)),bo(i)||(i=document.body);const u=document.createElement("div"),c=X(qoe,r,lt(r.message)?r.message:Jt(r.message)?()=>r.message:null);return c.appContext=$t(t)?$r._context:t,c.props.onDestroy=()=>{Sl(null,u)},Sl(c,u),xs[n].push({vm:c}),i.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};$g.forEach(e=>{$r[e]=(t={},n)=>((ze(t)||Jt(t))&&(t={message:t}),$r({...t,type:e},n))});function Zoe(e,t,n){const o=xs[t],a=o.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(a===-1)return;const{vm:l}=o[a];if(!l)return;n==null||n(l);const r=l.el.offsetHeight,i=t.split("-")[0];o.splice(a,1);const u=o.length;if(!(u<1))for(let c=a;c<u;c++){const{el:d,component:f}=o[c].vm,v=Number.parseInt(d.style[i],10)-r-Md;f.props.offset=v}}function Joe(){for(const e of Object.values(xs))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}function Qoe(e="top-right"){var t,n,o,a;let l=((o=(n=(t=xs[e][0])==null?void 0:t.vm.component)==null?void 0:n.props)==null?void 0:o.offset)||0;for(const{vm:r}of xs[e])r.component.props.offset=l,l+=(((a=r.el)==null?void 0:a.offsetHeight)||0)+Md}$r.closeAll=Joe,$r.updateOffsets=Qoe,$r._context=null;var eae=$r;const BO=W1(eae,"$notify");var tae=[TO,xO,AO,PO,BO,rm],_g=hC([...ooe,...tae]);const nae=_g.install,oae=_g.version;export{vv as BAR_MAP,Kd as BORDER_HORIZONTAL_WIDTH,Xc as CAROUSEL_ITEM_NAME,Ai as CASCADER_PANEL_INJECTION_KEY,ft as CHANGE_EVENT,ml as ClickOutside,jv as CommonPicker,Ch as CommonProps,Wh as DEFAULT_DIALOG_TRANSITION,cC as DEFAULT_EMPTY_VALUES,vl as DEFAULT_FORMATS_DATE,VS as DEFAULT_FORMATS_DATEPICKER,vr as DEFAULT_FORMATS_TIME,dC as DEFAULT_VALUE_ON_CLEAR,Hi as DROPDOWN_INJECTION_KEY,Xh as DROPDOWN_INSTANCE_INJECTION_KEY,jk as DefaultProps,L$ as DynamicSizeGrid,_$ as DynamicSizeList,pe as EVENT_CODE,UW as Effect,yC as ElAffix,EC as ElAlert,iO as ElAnchor,uO as ElAnchorLink,I2 as ElAside,Y_ as ElAutoResizer,mS as ElAutocomplete,yS as ElAvatar,kS as ElBacktop,_v as ElBadge,OS as ElBreadcrumb,RS as ElBreadcrumbItem,xn as ElButton,Nv as ElButtonGroup,yk as ElCalendar,Ck as ElCard,Tk as ElCarousel,Ok as ElCarouselItem,e2 as ElCascader,Sh as ElCascaderPanel,o2 as ElCheckTag,Jo as ElCheckbox,Ak as ElCheckboxButton,Zc as ElCheckboxGroup,u2 as ElCol,v2 as ElCollapse,h2 as ElCollapseItem,Pi as ElCollapseTransition,$2 as ElColorPicker,Nh as ElColorPickerPanel,vC as ElConfigProvider,x2 as ElContainer,o_ as ElCountdown,K2 as ElDatePicker,Vh as ElDatePickerPanel,q2 as ElDescriptions,X2 as ElDescriptionsItem,eE as ElDialog,Uh as ElDivider,aE as ElDrawer,gE as ElDropdown,bE as ElDropdownItem,yE as ElDropdownMenu,Zh as ElEmpty,M2 as ElFooter,BC as ElForm,FC as ElFormItem,N2 as ElHeader,$e as ElIcon,$E as ElImage,Jh as ElImageViewer,TO as ElInfiniteScroll,Gn as ElInput,Qh as ElInputNumber,xE as ElInputTag,NE as ElLink,xO as ElLoading,nu as ElLoadingDirective,eu as ElLoadingService,A2 as ElMain,hO as ElMention,jE as ElMenu,YE as ElMenuItem,UE as ElMenuItemGroup,AO as ElMessage,PO as ElMessageBox,BO as ElNotification,Ni as ElOption,bk as ElOptionGroup,rd as ElOverlay,ZE as ElPageHeader,t$ as ElPagination,a$ as ElPopconfirm,i$ as ElPopover,rm as ElPopoverDirective,Ev as ElPopper,UC as ElPopperArrow,sS as ElPopperContent,ZC as ElPopperTrigger,sm as ElProgress,bh as ElRadio,Wk as ElRadioButton,Hk as ElRadioGroup,f$ as ElRate,v$ as ElResult,s2 as ElRow,Xo as ElScrollbar,fO as ElSegmented,gl as ElSelect,D$ as ElSelectV2,V$ as ElSkeleton,z$ as ElSkeletonItem,j$ as ElSlider,Z$ as ElSpace,EO as ElSplitter,$O as ElSplitterPanel,$m as ElStatistic,u_ as ElStep,i_ as ElSteps,GE as ElSubMenu,p_ as ElSwitch,aT as ElTabPane,R_ as ElTable,x_ as ElTableColumn,j_ as ElTableV2,oT as ElTabs,Wa as ElTag,Cd as ElText,ck as ElTimePicker,iT as ElTimeSelect,fT as ElTimeline,pT as ElTimelineItem,Vn as ElTooltip,nO as ElTour,oO as ElTourStep,mT as ElTransfer,$d as ElTree,ST as ElTreeSelect,MT as ElTreeV2,jT as ElUpload,UT as ElWatermark,fE as FIRST_KEYS,FG as FIRST_LAST_KEYS,Kp as FORWARD_REF_INJECTION_KEY,O$ as FixedSizeGrid,Cm as FixedSizeList,fr as GAP,Ow as ID_INJECTION_KEY,yn as INPUT_EVENT,Hd as INSTALLED_KEY,im as IconComponentMap,Wl as IconMap,pE as LAST_KEYS,Gm as LEFT_CHECK_CHANGE_EVENT,sd as MENU_INJECTION_KEY,kr as MESSAGE_DEFAULT_PLACEMENT,Ps as MINIMUM_INPUT_WIDTH,uk as Mousewheel,tg as NODE_INSTANCE_INJECTION_KEY,Zo as PICKER_BASE_INJECTION_KEY,Fc as PICKER_POPPER_OPTIONS_INJECTION_KEY,mv as POPPER_CONTENT_INJECTION_KEY,$c as POPPER_INJECTION_KEY,qm as RIGHT_CHECK_CHANGE_EVENT,Ih as ROOT_COMMON_COLOR_INJECTION_KEY,Lv as ROOT_COMMON_PICKER_INJECTION_KEY,Qc as ROOT_PICKER_INJECTION_KEY,ps as ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,Ed as ROOT_TREE_INJECTION_KEY,l2 as RowAlign,a2 as RowJustify,xH as SCOPE,av as SIZE_INJECTION_KEY,_m as STEPS_INJECTION_KEY,Wi as SUB_MENU_INJECTION_KEY,uT as TIMELINE_INJECTION_KEY,Ac as TOOLTIP_INJECTION_KEY,ng as TREE_NODE_MAP_INJECTION_KEY,W_ as TableV2,Es as TableV2Alignment,Lm as TableV2FixedDir,$s as TableV2Placeholder,jl as TableV2SortOrder,xi as TimePickPanel,qS as TrapFocus,Ue as UPDATE_MODEL_EVENT,vu as WEEK_DAYS,Yp as ZINDEX_INJECTION_KEY,gC as affixEmits,mC as affixProps,CC as alertEffects,kC as alertEmits,SC as alertProps,lO as anchorEmits,aO as anchorProps,fC as ariaProps,TH as arrowMiddleware,K_ as autoResizerProps,vS as autocompleteEmits,pS as autocompleteProps,bS as avatarEmits,gS as avatarProps,CS as backtopEmits,wS as backtopProps,ES as badgeProps,_S as breadcrumbItemProps,Tv as breadcrumbKey,$S as breadcrumbProps,G1 as buildLocaleContext,Vc as buildTimeList,Y1 as buildTranslator,IS as buttonEmits,Ov as buttonGroupContextKey,xS as buttonNativeTypes,Lc as buttonProps,Pc as buttonTypes,hk as calendarEmits,vk as calendarProps,x7 as cardContextKey,wk as cardProps,ih as carouselContextKey,kk as carouselEmits,$k as carouselItemProps,Sk as carouselProps,Qk as cascaderEmits,Gk as cascaderPanelEmits,Yk as cascaderPanelProps,Zk as cascaderProps,n2 as checkTagEmits,t2 as checkTagProps,fh as checkboxDefaultProps,ch as checkboxEmits,gr as checkboxGroupContextKey,Mk as checkboxGroupEmits,Ik as checkboxGroupProps,uh as checkboxProps,i2 as colProps,$h as collapseContextKey,d2 as collapseEmits,f2 as collapseItemProps,c2 as collapseProps,E2 as colorPickerEmits,Mh as colorPickerPanelContextKey,C2 as colorPickerPanelEmits,xh as colorPickerPanelProps,k2 as colorPickerProps,Wd as columnAlignment,QO as componentSizeMap,ta as componentSizes,sv as configProviderContextKey,pC as configProviderProps,e_ as countdownEmits,Q$ as countdownProps,Ip as createModelToggleComposable,Fv as dateEquals,Fg as datePickTypes,z2 as datePickerPanelProps,W2 as datePickerProps,Oi as dayOrDaysToDate,Je as dayjs,_g as default,jp as defaultInitialZIndex,jr as defaultNamespace,fg as defaultProps,U2 as descriptionItemProps,j2 as descriptionProps,tG as dialogContextKey,jh as dialogEmits,Hh as dialogInjectionKey,Kh as dialogProps,tE as dividerProps,oE as drawerEmits,nE as drawerProps,qh as dropdownItemProps,dE as dropdownMenuProps,zi as dropdownProps,am as elPaginationKey,Eh as emitChangeFn,wE as emptyProps,rv as emptyValuesContextKey,Dv as extractDateFormat,Bv as extractTimeFormat,Bl as formContextKey,TC as formEmits,ba as formItemContextKey,PC as formItemProps,AC as formItemValidateStates,$C as formMetaProps,_C as formProps,Hv as formatter,Od as genFileId,$H as getPositionDataWithUnit,wC as iconProps,EE as imageEmits,kE as imageProps,SE as imageViewerEmits,CE as imageViewerProps,HC as inputEmits,TE as inputNumberEmits,_E as inputNumberProps,is as inputProps,RE as inputTagEmits,OE as inputTagProps,nae as install,ME as linkEmits,IE as linkProps,Rp as localeContextKey,hC as makeInstaller,zc as makeList,pg as mentionDefaultProps,vO as mentionEmits,pO as mentionProps,BE as menuEmits,zE as menuItemEmits,WE as menuItemGroupProps,VE as menuItemProps,DE as menuProps,Un as messageConfig,Zn as messageDefaults,MO as messageEmits,Eg as messagePlacement,IO as messageProps,kg as messageTypes,xp as namespaceContextKey,DO as notificationEmits,LO as notificationProps,$g as notificationTypes,J2 as overlayEmits,Z2 as overlayProps,XE as pageHeaderEmits,qE as pageHeaderProps,QE as paginationEmits,JE as paginationProps,zv as parseDate,o$ as popconfirmEmits,n$ as popconfirmProps,r$ as popoverEmits,l$ as popoverProps,Mc as popperArrowProps,kv as popperContentEmits,Nc as popperContentProps,Sv as popperCoreConfigProps,_c as popperProps,Tc as popperTriggerProps,u$ as progressProps,wc as provideGlobalConfig,Bk as radioButtonProps,gh as radioDefaultProps,vh as radioEmits,Vk as radioGroupEmits,hh as radioGroupKey,Fk as radioGroupProps,Pk as radioProps,ph as radioPropsBase,hl as rangeArr,d$ as rateEmits,c$ as rateProps,WC as renderThumbStyle,p$ as resultProps,gv as roleTypes,kh as rowContextKey,r2 as rowProps,Ec as scrollbarContextKey,hv as scrollbarEmits,YC as scrollbarProps,dO as segmentedEmits,cO as segmentedProps,f7 as selectEmits,oh as selectGroupKey,fs as selectKey,rh as selectProps,hd as selectV2InjectionKey,F$ as skeletonItemProps,B$ as skeletonProps,km as sliderContextKey,W$ as sliderEmits,H$ as sliderProps,Y$ as spaceItemProps,X$ as spaceProps,gO as splitterEmits,CO as splitterPanelEmits,wO as splitterPanelProps,mO as splitterProps,J$ as statisticProps,r_ as stepProps,l_ as stepsEmits,a_ as stepsProps,LE as subMenuProps,d_ as switchEmits,c_ as switchProps,U_ as tabBarProps,X_ as tabNavEmits,q_ as tabNavProps,eT as tabPaneProps,B_ as tableV2Props,Ul as tableV2RowProps,Q_ as tabsEmits,J_ as tabsProps,Xi as tabsRootContextKey,mk as tagEmits,Ha as tagProps,lT as textProps,KC as thumbProps,Hc as timePickerDefaultProps,Kv as timePickerRangeTriggerProps,h9 as timePickerRngeTriggerProps,rT as timeSelectProps,Pv as timeUnits,cT as timelineItemProps,fS as tooltipEmits,XT as tourContentEmits,xd as tourContentProps,JT as tourEmits,qT as tourPlacements,ZT as tourProps,eO as tourStepEmits,QT as tourStepProps,GT as tourStrategies,Sd as transferCheckedChangeFn,vT as transferEmits,Cr as transferProps,U1 as translate,CT as treeEmits,og as treeProps,cg as uploadBaseProps,zT as uploadContentProps,ig as uploadContextKey,FT as uploadDraggerEmits,BT as uploadDraggerProps,LT as uploadListEmits,PT as uploadListProps,ug as uploadListTypes,AT as uploadProps,Yn as useAriaProps,ci as useAttrs,oc as useCalcInputWidth,qk as useCascaderConfig,as as useComposition,uC as useCursor,E5 as useDelayedRender,Nw as useDelayedToggle,Mw as useDelayedToggleProps,ca as useDeprecated,Yh as useDialog,KH as useDisabled,Op as useDraggable,ls as useEmptyValues,Dl as useEmptyValuesProps,xw as useEscapeKeydown,_H as useFloating,kH as useFloatingProps,lz as useFocus,za as useFocusController,nn as useFormDisabled,An as useFormItem,So as useFormItemInputId,bn as useFormSize,Aw as useForwardRef,Pw as useForwardRefDirective,ac as useGetDerivedNamespace,Si as useGlobalComponentSettings,cr as useGlobalConfig,lv as useGlobalSize,Bn as useId,cc as useIdInjection,wt as useLocale,di as useLockscreen,uz as useModal,fz as useModelToggle,vz as useModelToggleEmits,pz as useModelToggleProps,de as useNamespace,Ci as useOrderedChildren,hw as usePopper,fK as usePopperArrowProps,Iw as usePopperContainer,Wp as usePopperContainerId,mK as usePopperContentEmits,hK as usePopperContentProps,vK as usePopperCoreConfigProps,GW as usePopperProps,QW as usePopperTriggerProps,hz as usePreventGlobal,Mp as useProp,uc as useSameTarget,WH as useSize,En as useSizeProp,RH as useSizeProps,q$ as useSpace,y5 as useTeleport,mw as useThrottleRender,Hp as useTimeout,Kt as useTooltipContentProps,cS as useTooltipModelToggle,uS as useTooltipModelToggleEmits,iS as useTooltipModelToggleProps,dS as useTooltipProps,ya as useTooltipTriggerProps,S5 as useTransitionFallthrough,C5 as useTransitionFallthroughEmits,Qr as useZIndex,nu as vLoading,Ri as vRepeatClick,Vv as valueEquals,oae as version,Kl as virtualizedGridProps,gm as virtualizedListProps,mm as virtualizedProps,ym as virtualizedScrollbarProps,YT as watermarkProps,Up as zIndexContextKey};
|
|
69
69
|
//# sourceMappingURL=index.full.min.mjs.map
|