st-comp 0.0.178 → 0.0.180

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +3 -3
  3. package/es/FactorWarning.cjs +1 -1
  4. package/es/FactorWarning.js +29 -33
  5. package/es/Kline.cjs +1 -1
  6. package/es/Kline.js +14 -18
  7. package/es/KlineBasic.cjs +1 -1
  8. package/es/KlineBasic.js +25 -30
  9. package/es/KlineConfig.cjs +1 -1
  10. package/es/KlineConfig.js +457 -419
  11. package/es/KlineNew.cjs +1 -1
  12. package/es/KlineNew.js +13 -16
  13. package/es/KlinePlus.cjs +3 -3
  14. package/es/KlinePlus.js +140 -142
  15. package/es/Pagination.cjs +1 -1
  16. package/es/Pagination.js +274 -276
  17. package/es/PasswordPrompt.cjs +1 -1
  18. package/es/PasswordPrompt.js +3 -3
  19. package/es/Table.cjs +1 -1
  20. package/es/Table.js +21 -23
  21. package/es/User.cjs +1 -1
  22. package/es/User.js +472 -482
  23. package/es/VarSelectDialog.cjs +3 -3
  24. package/es/VarSelectDialog.js +440 -2878
  25. package/es/VarietySearch.cjs +12 -12
  26. package/es/VarietySearch.js +1199 -1176
  27. package/es/VirtualTable.cjs +1 -13
  28. package/es/VirtualTable.js +1547 -1567
  29. package/es/{_initCloneObject-da90eef0.js → _initCloneObject-346b7ee2.js} +25 -26
  30. package/es/_initCloneObject-e2f0deb9.cjs +1 -0
  31. package/es/base-62a70f61.js +288 -0
  32. package/es/base-ef747d02.cjs +5 -0
  33. package/es/config-provider-178bb43c.cjs +1 -0
  34. package/es/config-provider-2e733cae.js +58 -0
  35. package/es/dayjs.min-2c20abe6.cjs +1 -0
  36. package/es/{dayjs.min-54a4e095.js → dayjs.min-8313b006.js} +96 -93
  37. package/es/{debounce-9e323221.cjs → debounce-0b77a317.cjs} +1 -1
  38. package/es/{debounce-3cec4646.js → debounce-5f2ec4be.js} +19 -19
  39. package/es/{dropdown-82b80e8b.js → dropdown-d06edf54.js} +49 -39
  40. package/es/dropdown-f2fec683.cjs +1 -0
  41. package/es/el-button-5b08c08a.js +272 -0
  42. package/es/el-button-fc46a173.cjs +1 -0
  43. package/es/el-dialog-0b7166c9.cjs +1 -0
  44. package/es/el-dialog-d8d0da7a.js +276 -0
  45. package/es/{el-divider-fd2b4e2e.js → el-divider-2f300113.js} +1 -1
  46. package/es/{el-divider-40c50ce7.cjs → el-divider-4713d74c.cjs} +1 -1
  47. package/es/{el-empty-412fc297.js → el-empty-87a86f30.js} +57 -80
  48. package/es/el-empty-bb2b0235.cjs +1 -0
  49. package/es/el-form-item-caffd133.cjs +12 -0
  50. package/es/el-form-item-ff9c7d98.js +1267 -0
  51. package/es/el-input-6db30c8c.js +531 -0
  52. package/es/el-input-9c912678.cjs +1 -0
  53. package/es/el-input-number-05f150e5.js +311 -0
  54. package/es/el-input-number-6fe73563.cjs +1 -0
  55. package/es/el-loading-8514feaa.cjs +1 -0
  56. package/es/el-loading-93842445.js +203 -0
  57. package/es/el-menu-item-7a57c1be.cjs +1 -0
  58. package/es/el-menu-item-a886fbdd.js +768 -0
  59. package/es/el-message-8aa674f2.js +406 -0
  60. package/es/el-message-aad5b42b.cjs +1 -0
  61. package/es/el-message-box-2b6b2b68.js +550 -0
  62. package/es/el-message-box-53f355d7.cjs +1 -0
  63. package/es/el-overlay-540b2a02.js +324 -0
  64. package/es/el-overlay-96630a2e.cjs +1 -0
  65. package/es/el-popconfirm-2afdf6fb.cjs +1 -0
  66. package/es/el-popconfirm-c18d8035.js +162 -0
  67. package/es/el-popper-544fd77e.js +2412 -0
  68. package/es/el-popper-73466d7a.cjs +1 -0
  69. package/es/el-scrollbar-691cfc11.cjs +1 -0
  70. package/es/el-scrollbar-fae984e3.js +763 -0
  71. package/es/el-segmented-a7493831.js +142 -0
  72. package/es/el-segmented-b6bd3c0e.cjs +1 -0
  73. package/es/el-select-5959e837.cjs +1 -0
  74. package/es/el-select-ea8feecf.js +1251 -0
  75. package/es/el-table-column-9ef52443.js +3878 -0
  76. package/es/el-table-column-b824ac5c.cjs +14 -0
  77. package/es/el-tag-2fc9b9eb.js +116 -0
  78. package/es/el-tag-ecad6d02.cjs +1 -0
  79. package/es/index-2e331d74.js +10 -0
  80. package/es/{index-a8e9ec0f.js → index-34592e82.js} +176 -182
  81. package/es/index-3a74eae4.cjs +1 -0
  82. package/es/{index-1c41bd56.js → index-5d4e5c51.js} +3 -3
  83. package/es/{index-e348d5e8.cjs → index-694bb944.cjs} +1 -1
  84. package/es/{index-ee1cebbc.js → index-74fb90c7.js} +5 -5
  85. package/es/{index-d577b81b.js → index-8d7ae5dc.js} +2 -2
  86. package/es/index-a9095b4a.js +163 -0
  87. package/es/index-a93dd9c4.cjs +1 -0
  88. package/es/index-ebd2fd7e.cjs +1 -0
  89. package/es/index-f1c702f6.cjs +1 -0
  90. package/es/{index-19fa1fcf.cjs → index-f6afafaa.cjs} +1 -1
  91. package/es/{raf-bfbf42e4.js → raf-41aed4d4.js} +1 -1
  92. package/es/{raf-07cb6953.cjs → raf-8249652f.cjs} +1 -1
  93. package/es/{scroll-e3cb691f.js → scroll-7d352c1f.js} +2 -2
  94. package/es/{scroll-4769a65d.cjs → scroll-b108dabd.cjs} +1 -1
  95. package/es/style.css +1 -1
  96. package/es/use-global-config-03735617.cjs +1 -0
  97. package/es/use-global-config-4b185eb5.js +71 -0
  98. package/es/validator-0e688e4e.cjs +1 -0
  99. package/es/validator-d12a8f8c.js +5 -0
  100. package/es/vnode-4db20540.cjs +1 -0
  101. package/es/vnode-a0795a4b.js +70 -0
  102. package/es/{zh-cn-d883afa8.js → zh-cn-0ff32188.js} +5 -4
  103. package/es/{zh-cn-b24a7dc9.cjs → zh-cn-adf19c4b.cjs} +1 -1
  104. package/lib/bundle.js +1 -1
  105. package/lib/bundle.umd.cjs +226 -245
  106. package/lib/{index-0f16f8b0.js → index-9341884f.js} +44358 -46367
  107. package/lib/{python-e9c32bc9.js → python-5c9b3e4e.js} +1 -1
  108. package/lib/style.css +1 -1
  109. package/package.json +2 -2
  110. package/packages/KlinePlus/index.vue +2 -1
  111. package/packages/VarSelectDialog/index.vue +43 -67
  112. package/packages/VarietySearch/components/FactorScreen/FactorDescription.vue +4 -2
  113. package/packages/VarietySearch/components/FactorScreen/index.vue +6 -4
  114. package/packages/index.ts +0 -2
  115. package/src/pages/VarSelectDialog/index.vue +1 -1
  116. package/src/router/routes.ts +0 -5
  117. package/es/Dialog.cjs +0 -1
  118. package/es/Dialog.js +0 -95
  119. package/es/_commonjsHelpers-10dfc225.js +0 -8
  120. package/es/_commonjsHelpers-87b0abe8.cjs +0 -1
  121. package/es/_initCloneObject-9ccbb113.cjs +0 -1
  122. package/es/base-bdc10baa.cjs +0 -5
  123. package/es/base-d9284bf0.js +0 -304
  124. package/es/castArray-37eb9980.cjs +0 -1
  125. package/es/castArray-b0ab0165.js +0 -10
  126. package/es/config-provider-ec6b09df.cjs +0 -1
  127. package/es/config-provider-f0151e9f.js +0 -47
  128. package/es/dayjs.min-19fb125f.cjs +0 -1
  129. package/es/dropdown-b2dab5bb.cjs +0 -1
  130. package/es/el-button-34665425.js +0 -237
  131. package/es/el-button-960edd49.cjs +0 -1
  132. package/es/el-dialog-a412484e.js +0 -267
  133. package/es/el-dialog-cd484c1f.cjs +0 -1
  134. package/es/el-empty-627ec09e.cjs +0 -1
  135. package/es/el-form-item-668ba024.js +0 -1263
  136. package/es/el-form-item-e1c3104b.cjs +0 -12
  137. package/es/el-input-22e66e37.js +0 -523
  138. package/es/el-input-5163bda3.cjs +0 -1
  139. package/es/el-input-number-481e21c5.js +0 -284
  140. package/es/el-input-number-eb54cde4.cjs +0 -1
  141. package/es/el-loading-15a5501c.cjs +0 -1
  142. package/es/el-loading-d4e403ab.js +0 -187
  143. package/es/el-menu-item-404c10e5.js +0 -772
  144. package/es/el-menu-item-ac89e804.cjs +0 -1
  145. package/es/el-message-ad87b9dd.cjs +0 -1
  146. package/es/el-message-box-41f39f6d.js +0 -558
  147. package/es/el-message-box-6694f827.cjs +0 -1
  148. package/es/el-message-ef506caa.js +0 -375
  149. package/es/el-overlay-4a9fa4e1.js +0 -269
  150. package/es/el-overlay-e5d318c3.cjs +0 -1
  151. package/es/el-popconfirm-7b9183aa.js +0 -140
  152. package/es/el-popconfirm-a497b279.cjs +0 -1
  153. package/es/el-popper-14a9d493.cjs +0 -1
  154. package/es/el-popper-e73466eb.js +0 -2263
  155. package/es/el-scrollbar-45318df0.js +0 -201
  156. package/es/el-scrollbar-8bf765f2.cjs +0 -1
  157. package/es/el-segmented-3ba6d664.cjs +0 -1
  158. package/es/el-segmented-41820018.js +0 -135
  159. package/es/el-select-1d2309a1.cjs +0 -1
  160. package/es/el-select-d7a00294.js +0 -1130
  161. package/es/el-table-column-a2d0c635.js +0 -3805
  162. package/es/el-table-column-be9a76bb.cjs +0 -14
  163. package/es/el-tag-7f391090.js +0 -280
  164. package/es/el-tag-8d49d4d2.cjs +0 -1
  165. package/es/index-02ca0096.cjs +0 -5
  166. package/es/index-3120be08.js +0 -14
  167. package/es/index-5b81f4da.cjs +0 -1
  168. package/es/index-85a32a00.js +0 -59
  169. package/es/index-8d3c5e96.cjs +0 -3
  170. package/es/index-94f38460.js +0 -306
  171. package/es/index-a99a5307.cjs +0 -1
  172. package/es/index-b90c746b.cjs +0 -1
  173. package/es/index-d94bae37.cjs +0 -1
  174. package/es/index-d99fdc6d.js +0 -159
  175. package/es/use-form-common-props-592797e2.cjs +0 -2
  176. package/es/use-form-common-props-cc347a83.js +0 -171
  177. package/es/use-global-config-584b62f1.cjs +0 -1
  178. package/es/use-global-config-c7f0a7e3.js +0 -73
  179. package/es/validator-10fa54fe.js +0 -5
  180. package/es/validator-af488a9a.cjs +0 -1
  181. package/es/vnode-1b827c99.cjs +0 -1
  182. package/es/vnode-6be33bb1.js +0 -14
  183. package/packages/Dialog/index.ts +0 -8
  184. package/packages/Dialog/index.vue +0 -54
  185. package/src/pages/Dialog/index.vue +0 -16
@@ -0,0 +1,142 @@
1
+ import { defineComponent as w, ref as W, reactive as G, computed as u, watch as V, openBlock as v, createElementBlock as h, unref as l, normalizeClass as r, createElementVNode as m, normalizeStyle as M, Fragment as J, renderList as K, renderSlot as Q, createTextVNode as Z, toDisplayString as ee, createCommentVNode as te } from "vue";
2
+ import { h as se, e as ae, g as le, d as ne, f as oe, j as ie, u as re } from "./el-scrollbar-fae984e3.js";
3
+ import { b as de, e as y, c as C, p as k, o as N, u as ce, _ as ue, f as S, w as me } from "./base-62a70f61.js";
4
+ import { u as pe, U as z, C as B, d as fe } from "./el-popper-544fd77e.js";
5
+ import { a as be } from "./index-34592e82.js";
6
+ const P = {
7
+ label: "label",
8
+ value: "value",
9
+ disabled: "disabled"
10
+ }, ge = de({
11
+ direction: {
12
+ type: y(String),
13
+ default: "horizontal"
14
+ },
15
+ options: {
16
+ type: y(Array),
17
+ default: () => []
18
+ },
19
+ modelValue: {
20
+ type: [String, Number, Boolean],
21
+ default: void 0
22
+ },
23
+ props: {
24
+ type: y(Object),
25
+ default: () => P
26
+ },
27
+ block: Boolean,
28
+ size: se,
29
+ disabled: Boolean,
30
+ validateEvent: {
31
+ type: Boolean,
32
+ default: !0
33
+ },
34
+ id: String,
35
+ name: String,
36
+ ...pe(["ariaLabel"])
37
+ }), ve = {
38
+ [z]: (n) => C(n) || k(n) || N(n),
39
+ [B]: (n) => C(n) || k(n) || N(n)
40
+ }, he = w({
41
+ name: "ElSegmented"
42
+ }), ye = /* @__PURE__ */ w({
43
+ ...he,
44
+ props: ge,
45
+ emits: ve,
46
+ setup(n, { emit: I }) {
47
+ const s = n, a = ce("segmented"), L = be(), A = ae(), F = le(), { formItem: d } = ne(), { inputId: T, isLabeledByFormItem: E } = oe(s, {
48
+ formItemContext: d
49
+ }), c = W(null), $ = ie(), t = G({
50
+ isInit: !1,
51
+ width: 0,
52
+ height: 0,
53
+ translateX: 0,
54
+ translateY: 0,
55
+ focusVisible: !1
56
+ }), x = (e) => {
57
+ const o = f(e);
58
+ I(z, o), I(B, o);
59
+ }, p = u(() => ({ ...P, ...s.props })), D = (e) => e, f = (e) => S(e) ? e[p.value.value] : e, O = (e) => S(e) ? e[p.value.label] : e, b = (e) => !!(F.value || S(e) && e[p.value.disabled]), _ = (e) => s.modelValue === f(e), X = (e) => s.options.find((o) => f(o) === e), Y = (e) => [
60
+ a.e("item"),
61
+ a.is("selected", _(e)),
62
+ a.is("disabled", b(e))
63
+ ], g = () => {
64
+ if (!c.value)
65
+ return;
66
+ const e = c.value.querySelector(".is-selected"), o = c.value.querySelector(".is-selected input");
67
+ if (!e || !o) {
68
+ t.width = 0, t.height = 0, t.translateX = 0, t.translateY = 0, t.focusVisible = !1;
69
+ return;
70
+ }
71
+ t.isInit = !0, s.direction === "vertical" ? (t.height = e.offsetHeight, t.translateY = e.offsetTop) : (t.width = e.offsetWidth, t.translateX = e.offsetLeft);
72
+ try {
73
+ t.focusVisible = o.matches(":focus-visible");
74
+ } catch {
75
+ }
76
+ }, j = u(() => [
77
+ a.b(),
78
+ a.m(A.value),
79
+ a.is("block", s.block)
80
+ ]), R = u(() => ({
81
+ width: s.direction === "vertical" ? "100%" : `${t.width}px`,
82
+ height: s.direction === "vertical" ? `${t.height}px` : "100%",
83
+ transform: s.direction === "vertical" ? `translateY(${t.translateY}px)` : `translateX(${t.translateX}px)`,
84
+ display: t.isInit ? "block" : "none"
85
+ })), q = u(() => [
86
+ a.e("item-selected"),
87
+ a.is("disabled", b(X(s.modelValue))),
88
+ a.is("focus-visible", t.focusVisible)
89
+ ]), H = u(() => s.name || L.value);
90
+ return re(c, g), V($, g), V(() => s.modelValue, () => {
91
+ var e;
92
+ g(), s.validateEvent && ((e = d == null ? void 0 : d.validate) == null || e.call(d, "change").catch((o) => fe()));
93
+ }, {
94
+ flush: "post"
95
+ }), (e, o) => e.options.length ? (v(), h("div", {
96
+ key: 0,
97
+ id: l(T),
98
+ ref_key: "segmentedRef",
99
+ ref: c,
100
+ class: r(l(j)),
101
+ role: "radiogroup",
102
+ "aria-label": l(E) ? void 0 : e.ariaLabel || "segmented",
103
+ "aria-labelledby": l(E) ? l(d).labelId : void 0
104
+ }, [
105
+ m("div", {
106
+ class: r([l(a).e("group"), l(a).m(s.direction)])
107
+ }, [
108
+ m("div", {
109
+ style: M(l(R)),
110
+ class: r(l(q))
111
+ }, null, 6),
112
+ (v(!0), h(J, null, K(e.options, (i, U) => (v(), h("label", {
113
+ key: U,
114
+ class: r(Y(i))
115
+ }, [
116
+ m("input", {
117
+ class: r(l(a).e("item-input")),
118
+ type: "radio",
119
+ name: l(H),
120
+ disabled: b(i),
121
+ checked: _(i),
122
+ onChange: (Ie) => x(i)
123
+ }, null, 42, ["name", "disabled", "checked", "onChange"]),
124
+ m("div", {
125
+ class: r(l(a).e("item-label"))
126
+ }, [
127
+ Q(e.$slots, "default", {
128
+ item: D(i)
129
+ }, () => [
130
+ Z(ee(O(i)), 1)
131
+ ])
132
+ ], 2)
133
+ ], 2))), 128))
134
+ ], 2)
135
+ ], 10, ["id", "aria-label", "aria-labelledby"])) : te("v-if", !0);
136
+ }
137
+ });
138
+ var Se = /* @__PURE__ */ ue(ye, [["__file", "segmented.vue"]]);
139
+ const Ne = me(Se);
140
+ export {
141
+ Ne as E
142
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),c=require("./el-scrollbar-691cfc11.cjs"),l=require("./base-ef747d02.cjs"),d=require("./el-popper-73466d7a.cjs"),q=require("./index-3a74eae4.cjs"),y={label:"label",value:"value",disabled:"disabled"},D=l.buildProps({direction:{type:l.definePropType(String),default:"horizontal"},options:{type:l.definePropType(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:l.definePropType(Object),default:()=>y},block:Boolean,size:c.useSizeProp,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...d.useAriaProps(["ariaLabel"])}),F={[d.UPDATE_MODEL_EVENT]:o=>l.isString(o)||l.isNumber(o)||l.isBoolean(o),[d.CHANGE_EVENT]:o=>l.isString(o)||l.isNumber(o)||l.isBoolean(o)},$=e.defineComponent({name:"ElSegmented"}),x=e.defineComponent({...$,props:D,emits:F,setup(o,{emit:v}){const n=o,a=l.useNamespace("segmented"),S=q.useId(),I=c.useFormSize(),V=c.useFormDisabled(),{formItem:u}=c.useFormItem(),{inputId:C,isLabeledByFormItem:h}=c.useFormItemInputId(n,{formItemContext:u}),m=e.ref(null),_=c.useActiveElement(),s=e.reactive({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),N=t=>{const r=f(t);v(d.UPDATE_MODEL_EVENT,r),v(d.CHANGE_EVENT,r)},p=e.computed(()=>({...y,...n.props})),k=t=>t,f=t=>l.isObject(t)?t[p.value.value]:t,z=t=>l.isObject(t)?t[p.value.label]:t,b=t=>!!(V.value||l.isObject(t)&&t[p.value.disabled]),E=t=>n.modelValue===f(t),B=t=>n.options.find(r=>f(r)===t),P=t=>[a.e("item"),a.is("selected",E(t)),a.is("disabled",b(t))],g=()=>{if(!m.value)return;const t=m.value.querySelector(".is-selected"),r=m.value.querySelector(".is-selected input");if(!t||!r){s.width=0,s.height=0,s.translateX=0,s.translateY=0,s.focusVisible=!1;return}s.isInit=!0,n.direction==="vertical"?(s.height=t.offsetHeight,s.translateY=t.offsetTop):(s.width=t.offsetWidth,s.translateX=t.offsetLeft);try{s.focusVisible=r.matches(":focus-visible")}catch{}},T=e.computed(()=>[a.b(),a.m(I.value),a.is("block",n.block)]),w=e.computed(()=>({width:n.direction==="vertical"?"100%":`${s.width}px`,height:n.direction==="vertical"?`${s.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${s.translateY}px)`:`translateX(${s.translateX}px)`,display:s.isInit?"block":"none"})),A=e.computed(()=>[a.e("item-selected"),a.is("disabled",b(B(n.modelValue))),a.is("focus-visible",s.focusVisible)]),L=e.computed(()=>n.name||S.value);return c.useResizeObserver(m,g),e.watch(_,g),e.watch(()=>n.modelValue,()=>{var t;g(),n.validateEvent&&((t=u==null?void 0:u.validate)==null||t.call(u,"change").catch(r=>d.debugWarn()))},{flush:"post"}),(t,r)=>t.options.length?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(C),ref_key:"segmentedRef",ref:m,class:e.normalizeClass(e.unref(T)),role:"radiogroup","aria-label":e.unref(h)?void 0:t.ariaLabel||"segmented","aria-labelledby":e.unref(h)?e.unref(u).labelId:void 0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(a).e("group"),e.unref(a).m(n.direction)])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(w)),class:e.normalizeClass(e.unref(A))},null,6),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(i,O)=>(e.openBlock(),e.createElementBlock("label",{key:O,class:e.normalizeClass(P(i))},[e.createElementVNode("input",{class:e.normalizeClass(e.unref(a).e("item-input")),type:"radio",name:e.unref(L),disabled:b(i),checked:E(i),onChange:j=>N(i)},null,42,["name","disabled","checked","onChange"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("item-label"))},[e.renderSlot(t.$slots,"default",{item:k(i)},()=>[e.createTextVNode(e.toDisplayString(z(i)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):e.createCommentVNode("v-if",!0)}});var X=l._export_sfc(x,[["__file","segmented.vue"]]);const Y=l.withInstall(X);exports.ElSegmented=Y;
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),O=require("./el-popper-73466d7a.cjs"),ee=require("./index-a93dd9c4.cjs"),te=require("./index-f6afafaa.cjs"),N=require("./index-3a74eae4.cjs"),a=require("./base-ef747d02.cjs"),h=require("./el-scrollbar-691cfc11.cjs"),le=require("./vnode-4db20540.cjs"),ht=require("./scroll-b108dabd.cjs"),Ve=require("./debounce-0b77a317.cjs"),ke=require("./el-tag-ecad6d02.cjs");var Oe=1/0,bt=17976931348623157e292;function gt(e){if(!e)return e===0?e:0;if(e=Ve.toNumber(e),e===Oe||e===-Oe){var s=e<0?-1:1;return s*bt}return e===e?e:0}function yt(e){var s=gt(e),i=s%1;return s===s?i?s-i:s:0}function Ct(e,s,i,f){for(var d=e.length,v=i+(f?1:-1);f?v--:++v<d;)if(s(e[v],v,e))return v;return-1}var St=Math.max,Et=Math.min;function Ot(e,s,i){var f=e==null?0:e.length;if(!f)return-1;var d=f-1;return i!==void 0&&(d=yt(i),d=i<0?St(f+d,0):Et(d,f-1)),Ct(e,ke.baseIteratee(s),d,!0)}const Te=11,wt=2;function Vt(){const e=t.shallowRef(),s=t.ref(0),i=t.computed(()=>({minWidth:`${Math.max(s.value,Te)}px`})),f=()=>{var d,v;s.value=(v=(d=e.value)==null?void 0:d.getBoundingClientRect().width)!=null?v:0};return h.useResizeObserver(e,f),{calculatorRef:e,calculatorWidth:s,inputStyle:i}}const Be={label:"label",value:"value",disabled:"disabled",options:"options"};function kt(e){const s=t.computed(()=>({...Be,...e.props}));return{aliasProps:s,getLabel:n=>N.get(n,s.value.label),getValue:n=>N.get(n,s.value.value),getDisabled:n=>N.get(n,s.value.disabled),getOptions:n=>N.get(n,s.value.options)}}const Ie=Symbol("ElSelectGroup"),X=Symbol("ElSelect"),ne="ElOption",Tt=a.buildProps({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),Bt=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");function It(e,s){const i=t.inject(X);i||O.throwError(ne,"usage: <el-select><el-option /></el-select/>");const f=t.inject(Ie,{disabled:!1}),d=t.computed(()=>y(h.castArray(i.props.modelValue),e.value)),v=t.computed(()=>{var u;if(i.props.multiple){const S=h.castArray((u=i.props.modelValue)!=null?u:[]);return!d.value&&S.length>=i.props.multipleLimit&&i.props.multipleLimit>0}else return!1}),n=t.computed(()=>{var u;return(u=e.label)!=null?u:a.isObject(e.value)?"":e.value}),E=t.computed(()=>e.value||e.label||""),b=t.computed(()=>e.disabled||s.groupDisabled||v.value),C=t.getCurrentInstance(),y=(u=[],S)=>{if(a.isObject(e.value)){const k=i.props.valueKey;return u&&u.some(B=>t.toRaw(N.get(B,k))===N.get(S,k))}else return u&&u.includes(S)},m=()=>{!e.disabled&&!f.disabled&&(i.states.hoveringIndex=i.optionsArray.indexOf(C.proxy))},r=u=>{const S=new RegExp(Bt(u),"i");s.visible=S.test(String(n.value))||e.created};return t.watch(()=>n.value,()=>{!e.created&&!i.props.remote&&i.setSelected()}),t.watch(()=>e.value,(u,S)=>{const{remote:k,valueKey:B}=i.props;if((k?u!==S:!h.isEqual(u,S))&&(i.onOptionDestroy(S,C.proxy),i.onOptionCreate(C.proxy)),!e.created&&!k){if(B&&a.isObject(u)&&a.isObject(S)&&u[B]===S[B])return;i.setSelected()}}),t.watch(()=>f.disabled,()=>{s.groupDisabled=f.disabled},{immediate:!0}),{select:i,currentLabel:n,currentValue:E,itemSelected:d,isDisabled:b,hoverItem:m,updateOption:r}}const Nt=t.defineComponent({name:ne,componentName:ne,props:Tt,setup(e){const s=a.useNamespace("select"),i=N.useId(),f=t.computed(()=>[s.be("dropdown","item"),s.is("disabled",t.unref(E)),s.is("selected",t.unref(n)),s.is("hovering",t.unref(r))]),d=t.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:v,itemSelected:n,isDisabled:E,select:b,hoverItem:C,updateOption:y}=It(e,d),{visible:m,hover:r}=t.toRefs(d),u=t.getCurrentInstance().proxy;b.onOptionCreate(u),t.onBeforeUnmount(()=>{const k=u.value;t.nextTick(()=>{const{selected:B}=b.states,g=B.some(p=>p.value===u.value);b.states.cachedOptions.get(k)===u&&!g&&b.states.cachedOptions.delete(k)}),b.onOptionDestroy(k,u)});function S(){E.value||b.handleOptionSelect(u)}return{ns:s,id:i,containerKls:f,currentLabel:v,itemSelected:n,isDisabled:E,select:b,visible:m,hover:r,states:d,hoverItem:C,updateOption:y,selectOptionClick:S}}});function Dt(e,s){return t.withDirectives((t.openBlock(),t.createElementBlock("li",{id:e.id,class:t.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:t.withModifiers(e.selectOptionClick,["stop"])},[t.renderSlot(e.$slots,"default",{},()=>[t.createElementVNode("span",null,t.toDisplayString(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[t.vShow,e.visible]])}var oe=a._export_sfc(Nt,[["render",Dt],["__file","option.vue"]]);const Mt=t.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=t.inject(X),s=a.useNamespace("select"),i=t.computed(()=>e.props.popperClass),f=t.computed(()=>e.props.multiple),d=t.computed(()=>e.props.fitInputWidth),v=t.ref("");function n(){var E;const b=(E=e.selectRef)==null?void 0:E.offsetWidth;b?v.value=`${b-wt}px`:v.value=""}return t.onMounted(()=>{n(),h.useResizeObserver(e.selectRef,n)}),{ns:s,minWidth:v,popperClass:i,isMultiple:f,isFitInputWidth:d}}});function zt(e,s,i,f,d,v){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:t.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.ns.be("dropdown","header"))},[t.renderSlot(e.$slots,"header")],2)):t.createCommentVNode("v-if",!0),t.renderSlot(e.$slots,"default"),e.$slots.footer?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.ns.be("dropdown","footer"))},[t.renderSlot(e.$slots,"footer")],2)):t.createCommentVNode("v-if",!0)],6)}var Rt=a._export_sfc(Mt,[["render",zt],["__file","select-dropdown.vue"]]);const Pt=(e,s)=>{const{t:i}=N.useLocale(),f=N.useId(),d=a.useNamespace("select"),v=a.useNamespace("input"),n=t.reactive({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),E=t.ref(),b=t.ref(),C=t.ref(),y=t.ref(),m=t.ref(),r=t.ref(),u=t.ref(),S=t.ref(),k=t.ref(),B=t.ref(),g=t.ref(),p=t.ref(!1),w=t.ref(),{form:R,formItem:D}=h.useFormItem(),{inputId:M}=h.useFormItemInputId(e,{formItemContext:D}),{valueOnClear:se,isEmptyValue:P}=h.useEmptyValues(e),{isComposing:ie,handleCompositionStart:Ne,handleCompositionUpdate:De,handleCompositionEnd:Me}=le.useComposition({afterComposition:l=>he(l)}),A=t.computed(()=>e.disabled||!!(R!=null&&R.disabled)),{wrapperRef:re,isFocused:Y,handleBlur:ze}=le.useFocusController(m,{disabled:A,afterFocus(){e.automaticDropdown&&!p.value&&(p.value=!0,n.menuVisibleOnFocus=!0)},beforeBlur(l){var o,c;return((o=C.value)==null?void 0:o.isFocusInsideContent(l))||((c=y.value)==null?void 0:c.isFocusInsideContent(l))},afterBlur(){var l;p.value=!1,n.menuVisibleOnFocus=!1,e.validateEvent&&((l=D==null?void 0:D.validate)==null||l.call(D,"blur").catch(o=>O.debugWarn()))}}),Z=t.computed(()=>a.isArray(e.modelValue)?e.modelValue.length>0:!P(e.modelValue)),Re=t.computed(()=>{var l;return(l=R==null?void 0:R.statusIcon)!=null?l:!1}),Pe=t.computed(()=>e.clearable&&!A.value&&Z.value&&(Y.value||n.inputHovering)),ue=t.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Le=t.computed(()=>d.is("reverse",!!(ue.value&&p.value))),J=t.computed(()=>(D==null?void 0:D.validateState)||""),$e=t.computed(()=>J.value&&h.ValidateComponentsMap[J.value]),Ae=t.computed(()=>e.remote?300:0),Fe=t.computed(()=>e.remote&&!n.inputValue&&n.options.size===0),We=t.computed(()=>e.loading?e.loadingText||i("el.select.loading"):e.filterable&&n.inputValue&&n.options.size>0&&F.value===0?e.noMatchText||i("el.select.noMatch"):n.options.size===0?e.noDataText||i("el.select.noData"):null),F=t.computed(()=>T.value.filter(l=>l.visible).length),T=t.computed(()=>{const l=Array.from(n.options.values()),o=[];return n.optionValues.forEach(c=>{const V=l.findIndex(I=>I.value===c);V>-1&&o.push(l[V])}),o.length>=l.length?o:l}),Ke=t.computed(()=>Array.from(n.cachedOptions.values())),He=t.computed(()=>{const l=T.value.filter(o=>!o.created).some(o=>o.currentLabel===n.inputValue);return e.filterable&&e.allowCreate&&n.inputValue!==""&&!l}),ce=()=>{e.filterable&&a.isFunction(e.filterMethod)||e.filterable&&e.remote&&a.isFunction(e.remoteMethod)||T.value.forEach(l=>{var o;(o=l.updateOption)==null||o.call(l,n.inputValue)})},de=h.useFormSize(),je=t.computed(()=>["small"].includes(de.value)?"small":"default"),pe=t.computed({get(){return p.value&&!Fe.value},set(l){p.value=l}}),qe=t.computed(()=>{if(e.multiple&&!a.isUndefined(e.modelValue))return h.castArray(e.modelValue).length===0&&!n.inputValue;const l=a.isArray(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||a.isUndefined(l)?!n.inputValue:!0}),Ue=t.computed(()=>{var l;const o=(l=e.placeholder)!=null?l:i("el.select.placeholder");return e.multiple||!Z.value?o:n.selectedLabel}),Ge=t.computed(()=>a.isIOS?null:"mouseenter");t.watch(()=>e.modelValue,(l,o)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(n.inputValue="",K("")),H(),!h.isEqual(l,o)&&e.validateEvent&&(D==null||D.validate("change").catch(c=>O.debugWarn()))},{flush:"post",deep:!0}),t.watch(()=>p.value,l=>{l?K(n.inputValue):(n.inputValue="",n.previousQuery=null,n.isBeforeHide=!0),s("visible-change",l)}),t.watch(()=>n.options.entries(),()=>{a.isClient&&(H(),e.defaultFirstOption&&(e.filterable||e.remote)&&F.value&&fe())},{flush:"post"}),t.watch([()=>n.hoveringIndex,T],([l])=>{a.isNumber(l)&&l>-1?w.value=T.value[l]||{}:w.value={},T.value.forEach(o=>{o.hover=w.value===o})}),t.watchEffect(()=>{n.isBeforeHide||ce()});const K=l=>{n.previousQuery===l||ie.value||(n.previousQuery=l,e.filterable&&a.isFunction(e.filterMethod)?e.filterMethod(l):e.filterable&&e.remote&&a.isFunction(e.remoteMethod)&&e.remoteMethod(l),e.defaultFirstOption&&(e.filterable||e.remote)&&F.value?t.nextTick(fe):t.nextTick(Qe))},fe=()=>{const l=T.value.filter(I=>I.visible&&!I.disabled&&!I.states.groupDisabled),o=l.find(I=>I.created),c=l[0],V=T.value.map(I=>I.value);n.hoveringIndex=Ce(V,o||c)},H=()=>{if(e.multiple)n.selectedLabel="";else{const o=a.isArray(e.modelValue)?e.modelValue[0]:e.modelValue,c=_(o);n.selectedLabel=c.currentLabel,n.selected=[c];return}const l=[];a.isUndefined(e.modelValue)||h.castArray(e.modelValue).forEach(o=>{l.push(_(o))}),n.selected=l},_=l=>{let o;const c=a.isPlainObject(l);for(let $=n.cachedOptions.size-1;$>=0;$--){const z=Ke.value[$];if(c?N.get(z.value,e.valueKey)===N.get(l,e.valueKey):z.value===l){o={index:T.value.filter(L=>!L.created).indexOf(z),value:l,currentLabel:z.currentLabel,get isDisabled(){return z.isDisabled}};break}}if(o)return o;const V=c?l.label:l??"";return{index:-1,value:l,currentLabel:V}},Qe=()=>{n.hoveringIndex=T.value.findIndex(l=>n.selected.some(o=>U(o)===U(l)))},Xe=()=>{n.selectionWidth=Number.parseFloat(window.getComputedStyle(b.value).width)},Ye=()=>{n.collapseItemWidth=B.value.getBoundingClientRect().width},x=()=>{var l,o;(o=(l=C.value)==null?void 0:l.updatePopper)==null||o.call(l)},ve=()=>{var l,o;(o=(l=y.value)==null?void 0:l.updatePopper)==null||o.call(l)},me=()=>{n.inputValue.length>0&&!p.value&&(p.value=!0),K(n.inputValue)},he=l=>{if(n.inputValue=l.target.value,e.remote)be();else return me()},be=Ve.debounce(()=>{me()},Ae.value),W=l=>{h.isEqual(e.modelValue,l)||s(O.CHANGE_EVENT,l)},Ze=l=>Ot(l,o=>{const c=n.cachedOptions.get(o);return c&&!c.disabled&&!c.states.groupDisabled}),Je=l=>{if(e.multiple&&l.code!==O.EVENT_CODE.delete&&l.target.value.length<=0){const o=h.castArray(e.modelValue).slice(),c=Ze(o);if(c<0)return;const V=o[c];o.splice(c,1),s(O.UPDATE_MODEL_EVENT,o),W(o),s("remove-tag",V)}},_e=(l,o)=>{const c=n.selected.indexOf(o);if(c>-1&&!A.value){const V=h.castArray(e.modelValue).slice();V.splice(c,1),s(O.UPDATE_MODEL_EVENT,V),W(V),s("remove-tag",o.value)}l.stopPropagation(),q()},ge=l=>{l.stopPropagation();const o=e.multiple?[]:se.value;if(e.multiple)for(const c of n.selected)c.isDisabled&&o.push(c.value);s(O.UPDATE_MODEL_EVENT,o),W(o),n.hoveringIndex=-1,p.value=!1,s("clear"),q()},ye=l=>{var o;if(e.multiple){const c=h.castArray((o=e.modelValue)!=null?o:[]).slice(),V=Ce(c,l);V>-1?c.splice(V,1):(e.multipleLimit<=0||c.length<e.multipleLimit)&&c.push(l.value),s(O.UPDATE_MODEL_EVENT,c),W(c),l.created&&K(""),e.filterable&&!e.reserveKeyword&&(n.inputValue="")}else!h.isEqual(e.modelValue,l.value)&&s(O.UPDATE_MODEL_EVENT,l.value),W(l.value),p.value=!1;q(),!p.value&&t.nextTick(()=>{j(l)})},Ce=(l,o)=>a.isUndefined(o)?-1:a.isObject(o.value)?l.findIndex(c=>h.isEqual(N.get(c,e.valueKey),U(o))):l.indexOf(o.value),j=l=>{var o,c,V,I,$;const z=a.isArray(l)?l[0]:l;let Q=null;if(z!=null&&z.value){const L=T.value.filter(mt=>mt.value===z.value);L.length>0&&(Q=L[0].$el)}if(C.value&&Q){const L=(I=(V=(c=(o=C.value)==null?void 0:o.popperRef)==null?void 0:c.contentRef)==null?void 0:V.querySelector)==null?void 0:I.call(V,`.${d.be("dropdown","wrap")}`);L&&ht.scrollIntoView(L,Q)}($=g.value)==null||$.handleScroll()},xe=l=>{n.options.set(l.value,l),n.cachedOptions.set(l.value,l)},et=(l,o)=>{n.options.get(l)===o&&n.options.delete(l)},tt=t.computed(()=>{var l,o;return(o=(l=C.value)==null?void 0:l.popperRef)==null?void 0:o.contentRef}),lt=()=>{n.isBeforeHide=!1,t.nextTick(()=>{var l;(l=g.value)==null||l.update(),j(n.selected)})},q=()=>{var l;(l=m.value)==null||l.focus()},nt=()=>{var l;if(p.value){p.value=!1,t.nextTick(()=>{var o;return(o=m.value)==null?void 0:o.blur()});return}(l=m.value)==null||l.blur()},ot=l=>{ge(l)},at=l=>{if(p.value=!1,Y.value){const o=new FocusEvent("blur",l);t.nextTick(()=>ze(o))}},st=()=>{n.inputValue.length>0?n.inputValue="":p.value=!1},Se=()=>{A.value||(a.isIOS&&(n.inputHovering=!0),n.menuVisibleOnFocus?n.menuVisibleOnFocus=!1:p.value=!p.value)},it=()=>{if(!p.value)Se();else{const l=T.value[n.hoveringIndex];l&&!l.isDisabled&&ye(l)}},U=l=>a.isObject(l.value)?N.get(l.value,e.valueKey):l.value,rt=t.computed(()=>T.value.filter(l=>l.visible).every(l=>l.isDisabled)),ut=t.computed(()=>e.multiple?e.collapseTags?n.selected.slice(0,e.maxCollapseTags):n.selected:[]),ct=t.computed(()=>e.multiple?e.collapseTags?n.selected.slice(e.maxCollapseTags):[]:[]),Ee=l=>{if(!p.value){p.value=!0;return}if(!(n.options.size===0||F.value===0||ie.value)&&!rt.value){l==="next"?(n.hoveringIndex++,n.hoveringIndex===n.options.size&&(n.hoveringIndex=0)):l==="prev"&&(n.hoveringIndex--,n.hoveringIndex<0&&(n.hoveringIndex=n.options.size-1));const o=T.value[n.hoveringIndex];(o.isDisabled||!o.visible)&&Ee(l),t.nextTick(()=>j(w.value))}},dt=()=>{if(!b.value)return 0;const l=window.getComputedStyle(b.value);return Number.parseFloat(l.gap||"6px")},pt=t.computed(()=>{const l=dt(),o=e.filterable?l+Te:0;return{maxWidth:`${B.value&&e.maxCollapseTags===1?n.selectionWidth-n.collapseItemWidth-l-o:n.selectionWidth-o}px`}}),ft=t.computed(()=>({maxWidth:`${n.selectionWidth}px`})),vt=l=>{s("popup-scroll",l)};h.useResizeObserver(b,Xe),h.useResizeObserver(re,x),h.useResizeObserver(k,ve),h.useResizeObserver(B,Ye);let G;return t.watch(()=>pe.value,l=>{l?G=h.useResizeObserver(S,x).stop:(G==null||G(),G=void 0)}),t.onMounted(()=>{H()}),{inputId:M,contentId:f,nsSelect:d,nsInput:v,states:n,isFocused:Y,expanded:p,optionsArray:T,hoverOption:w,selectSize:de,filteredOptionsCount:F,updateTooltip:x,updateTagTooltip:ve,debouncedOnInputChange:be,onInput:he,deletePrevTag:Je,deleteTag:_e,deleteSelected:ge,handleOptionSelect:ye,scrollToOption:j,hasModelValue:Z,shouldShowPlaceholder:qe,currentPlaceholder:Ue,mouseEnterEventName:Ge,needStatusIcon:Re,showClearBtn:Pe,iconComponent:ue,iconReverse:Le,validateState:J,validateIcon:$e,showNewOption:He,updateOptions:ce,collapseTagSize:je,setSelected:H,selectDisabled:A,emptyText:We,handleCompositionStart:Ne,handleCompositionUpdate:De,handleCompositionEnd:Me,onOptionCreate:xe,onOptionDestroy:et,handleMenuEnter:lt,focus:q,blur:nt,handleClearClick:ot,handleClickOutside:at,handleEsc:st,toggleMenu:Se,selectOption:it,getValueKey:U,navigateOptions:Ee,dropdownMenuVisible:pe,showTagList:ut,collapseTagList:ct,popupScroll:vt,getOption:_,tagStyle:pt,collapseTagStyle:ft,popperRef:tt,inputRef:m,tooltipRef:C,tagTooltipRef:y,prefixRef:r,suffixRef:u,selectRef:E,wrapperRef:re,selectionRef:b,scrollbarRef:g,menuRef:S,tagMenuRef:k,collapseItemRef:B}};var Lt=t.defineComponent({name:"ElOptions",setup(e,{slots:s}){const i=t.inject(X);let f=[];return()=>{var d,v;const n=(d=s.default)==null?void 0:d.call(s),E=[];function b(C){a.isArray(C)&&C.forEach(y=>{var m,r,u,S;const k=(m=(y==null?void 0:y.type)||{})==null?void 0:m.name;k==="ElOptionGroup"?b(!a.isString(y.children)&&!a.isArray(y.children)&&a.isFunction((r=y.children)==null?void 0:r.default)?(u=y.children)==null?void 0:u.default():y.children):k==="ElOption"?E.push((S=y.props)==null?void 0:S.value):a.isArray(y.children)&&b(y.children)})}return n.length&&b((v=n[0])==null?void 0:v.children),h.isEqual(E,f)||(f=E,i&&(i.states.optionValues=E)),n}}});const $t=a.buildProps({name:String,id:String,modelValue:{type:a.definePropType([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:h.useSizeProp,effect:{type:a.definePropType(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:a.definePropType([String,Object])},popperOptions:{type:a.definePropType(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:a.definePropType(Function)},filterMethod:{type:a.definePropType(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:O.useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:h.iconPropType,default:te.circle_close_default},fitInputWidth:Boolean,suffixIcon:{type:h.iconPropType,default:te.arrow_down_default},tagType:{...ee.tagProps.type,default:"info"},tagEffect:{...ee.tagProps.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:a.definePropType(String),values:O.Ee,default:"bottom-start"},fallbackPlacements:{type:a.definePropType(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:O.useTooltipContentProps.appendTo,options:{type:a.definePropType(Array)},props:{type:a.definePropType(Object),default:()=>Be},...h.useEmptyValuesProps,...O.useAriaProps(["ariaLabel"])});O.UPDATE_MODEL_EVENT+"",O.CHANGE_EVENT+"",O.scrollbarEmits.scroll;const At=t.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const s=a.useNamespace("select"),i=t.ref(),f=t.getCurrentInstance(),d=t.ref([]);t.provide(Ie,t.reactive({...t.toRefs(e)}));const v=t.computed(()=>d.value.some(C=>C.visible===!0)),n=C=>{var y;return C.type.name==="ElOption"&&!!((y=C.component)!=null&&y.proxy)},E=C=>{const y=h.castArray(C),m=[];return y.forEach(r=>{var u;t.isVNode(r)&&(n(r)?m.push(r.component.proxy):a.isArray(r.children)&&r.children.length?m.push(...E(r.children)):(u=r.component)!=null&&u.subTree&&m.push(...E(r.component.subTree)))}),m},b=()=>{d.value=E(f.subTree)};return t.onMounted(()=>{b()}),h.useMutationObserver(i,b,{attributes:!0,subtree:!0,childList:!0}),{groupRef:i,visible:v,ns:s}}});function Ft(e,s,i,f,d,v){return t.withDirectives((t.openBlock(),t.createElementBlock("ul",{ref:"groupRef",class:t.normalizeClass(e.ns.be("group","wrap"))},[t.createElementVNode("li",{class:t.normalizeClass(e.ns.be("group","title"))},t.toDisplayString(e.label),3),t.createElementVNode("li",null,[t.createElementVNode("ul",{class:t.normalizeClass(e.ns.b("group"))},[t.renderSlot(e.$slots,"default")],2)])],2)),[[t.vShow,e.visible]])}var ae=a._export_sfc(At,[["render",Ft],["__file","option-group.vue"]]);const we="ElSelect",Wt=t.defineComponent({name:we,componentName:we,components:{ElSelectMenu:Rt,ElOption:oe,ElOptions:Lt,ElOptionGroup:ae,ElTag:ee.ElTag,ElScrollbar:O.ElScrollbar,ElTooltip:O.ElTooltip,ElIcon:te.ElIcon},directives:{ClickOutside:ke.ClickOutside},props:$t,emits:[O.UPDATE_MODEL_EVENT,O.CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:s,slots:i}){const f=t.getCurrentInstance();f.appContext.config.warnHandler=(...g)=>{!g[0]||g[0].includes('Slot "default" invoked outside of the render function')||console.warn(...g)};const d=t.computed(()=>{const{modelValue:g,multiple:p}=e,w=p?[]:void 0;return a.isArray(g)?p?g:w:p?w:g}),v=t.reactive({...t.toRefs(e),modelValue:d}),n=Pt(v,s),{calculatorRef:E,inputStyle:b}=Vt(),{getLabel:C,getValue:y,getOptions:m,getDisabled:r}=kt(e),u=g=>({label:C(g),value:y(g),disabled:r(g)}),S=g=>g.reduce((p,w)=>(p.push(w),w.children&&w.children.length>0&&p.push(...S(w.children)),p),[]),k=g=>{le.flattedChildren(g||[]).forEach(w=>{var R;if(a.isObject(w)&&(w.type.name==="ElOption"||w.type.name==="ElTree")){const D=w.type.name;if(D==="ElTree"){const M=((R=w.props)==null?void 0:R.data)||[];S(M).forEach(P=>{P.currentLabel=P.label||(a.isObject(P.value)?"":P.value),n.onOptionCreate(P)})}else if(D==="ElOption"){const M={...w.props};M.currentLabel=M.label||(a.isObject(M.value)?"":M.value),n.onOptionCreate(M)}}})};t.watch(()=>{var g;return(g=i.default)==null?void 0:g.call(i)},g=>{e.persistent||k(g)},{immediate:!0}),t.provide(X,t.reactive({props:v,states:n.states,selectRef:n.selectRef,optionsArray:n.optionsArray,setSelected:n.setSelected,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy}));const B=t.computed(()=>e.multiple?n.states.selected.map(g=>g.currentLabel):n.states.selectedLabel);return t.onBeforeUnmount(()=>{f.appContext.config.warnHandler=void 0}),{...n,modelValue:d,selectedLabel:B,calculatorRef:E,inputStyle:b,getLabel:C,getValue:y,getOptions:m,getDisabled:r,getOptionProps:u}}});function Kt(e,s){const i=t.resolveComponent("el-tag"),f=t.resolveComponent("el-tooltip"),d=t.resolveComponent("el-icon"),v=t.resolveComponent("el-option"),n=t.resolveComponent("el-option-group"),E=t.resolveComponent("el-options"),b=t.resolveComponent("el-scrollbar"),C=t.resolveComponent("el-select-menu"),y=t.resolveDirective("click-outside");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref:"selectRef",class:t.normalizeClass([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[t.toHandlerKey(e.mouseEnterEventName)]:m=>e.states.inputHovering=!0,onMouseleave:m=>e.states.inputHovering=!1},[t.createVNode(f,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:m=>e.states.isBeforeHide=!1},{default:t.withCtx(()=>{var m;return[t.createElementVNode("div",{ref:"wrapperRef",class:t.normalizeClass([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.withModifiers(e.toggleMenu,["prevent"])},[e.$slots.prefix?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"prefixRef",class:t.normalizeClass(e.nsSelect.e("prefix"))},[t.renderSlot(e.$slots,"prefix")],2)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{ref:"selectionRef",class:t.normalizeClass([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?t.renderSlot(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.showTagList,r=>(t.openBlock(),t.createElementBlock("div",{key:e.getValueKey(r),class:t.normalizeClass(e.nsSelect.e("selected-item"))},[t.createVNode(i,{closable:!e.selectDisabled&&!r.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:t.normalizeStyle(e.tagStyle),onClose:u=>e.deleteTag(u,r)},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(e.nsSelect.e("tags-text"))},[t.renderSlot(e.$slots,"label",{index:r.index,label:r.currentLabel,value:r.value},()=>[t.createTextVNode(t.toDisplayString(r.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(t.openBlock(),t.createBlock(f,{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:t.withCtx(()=>[t.createElementVNode("div",{ref:"collapseItemRef",class:t.normalizeClass(e.nsSelect.e("selected-item"))},[t.createVNode(i,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:t.normalizeStyle(e.collapseTagStyle)},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(e.nsSelect.e("tags-text"))}," + "+t.toDisplayString(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:t.withCtx(()=>[t.createElementVNode("div",{ref:"tagMenuRef",class:t.normalizeClass(e.nsSelect.e("selection"))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.collapseTagList,r=>(t.openBlock(),t.createElementBlock("div",{key:e.getValueKey(r),class:t.normalizeClass(e.nsSelect.e("selected-item"))},[t.createVNode(i,{class:"in-tooltip",closable:!e.selectDisabled&&!r.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:u=>e.deleteTag(u,r)},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(e.nsSelect.e("tags-text"))},[t.renderSlot(e.$slots,"label",{index:r.index,label:r.currentLabel,value:r.value},()=>[t.createTextVNode(t.toDisplayString(r.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported"])):t.createCommentVNode("v-if",!0)]):t.createCommentVNode("v-if",!0),t.createElementVNode("div",{class:t.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[t.withDirectives(t.createElementVNode("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":r=>e.states.inputValue=r,type:"text",name:e.name,class:t.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:t.normalizeStyle(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((m=e.hoverOption)==null?void 0:m.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[t.withKeys(t.withModifiers(r=>e.navigateOptions("next"),["stop","prevent"]),["down"]),t.withKeys(t.withModifiers(r=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),t.withKeys(t.withModifiers(e.handleEsc,["stop","prevent"]),["esc"]),t.withKeys(t.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),t.withKeys(t.withModifiers(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:t.withModifiers(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[t.vModelText,e.states.inputValue]]),e.filterable?(t.openBlock(),t.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:t.normalizeClass(e.nsSelect.e("input-calculator")),textContent:t.toDisplayString(e.states.inputValue)},null,10,["textContent"])):t.createCommentVNode("v-if",!0)],2),e.shouldShowPlaceholder?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?t.renderSlot(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[t.createElementVNode("span",null,t.toDisplayString(e.currentPlaceholder),1)]):(t.openBlock(),t.createElementBlock("span",{key:1},t.toDisplayString(e.currentPlaceholder),1))],2)):t.createCommentVNode("v-if",!0)],2),t.createElementVNode("div",{ref:"suffixRef",class:t.normalizeClass(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(t.openBlock(),t.createBlock(d,{key:0,class:t.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0),e.showClearBtn&&e.clearIcon?(t.openBlock(),t.createBlock(d,{key:1,class:t.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):t.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(t.openBlock(),t.createBlock(d,{key:2,class:t.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):t.createCommentVNode("v-if",!0)],2)],10,["onClick"])]}),content:t.withCtx(()=>[t.createVNode(C,{ref:"menuRef"},{default:t.withCtx(()=>[e.$slots.header?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.nsSelect.be("dropdown","header")),onClick:t.withModifiers(()=>{},["stop"])},[t.renderSlot(e.$slots,"header")],10,["onClick"])):t.createCommentVNode("v-if",!0),t.withDirectives(t.createVNode(b,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:t.normalizeClass([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:t.withCtx(()=>[e.showNewOption?(t.openBlock(),t.createBlock(v,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):t.createCommentVNode("v-if",!0),t.createVNode(E,null,{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(m,r)=>{var u;return t.openBlock(),t.createElementBlock(t.Fragment,{key:r},[(u=e.getOptions(m))!=null&&u.length?(t.openBlock(),t.createBlock(n,{key:0,label:e.getLabel(m),disabled:e.getDisabled(m)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.getOptions(m),S=>(t.openBlock(),t.createBlock(v,t.mergeProps({key:e.getValue(S)},e.getOptionProps(S)),null,16))),128))]),_:2},1032,["label","disabled"])):(t.openBlock(),t.createBlock(v,t.normalizeProps(t.mergeProps({key:1},e.getOptionProps(m))),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[t.vShow,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.nsSelect.be("dropdown","loading"))},[t.renderSlot(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.nsSelect.be("dropdown","empty"))},[t.renderSlot(e.$slots,"empty",{},()=>[t.createElementVNode("span",null,t.toDisplayString(e.emptyText),1)])],2)):t.createCommentVNode("v-if",!0),e.$slots.footer?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.nsSelect.be("dropdown","footer")),onClick:t.withModifiers(()=>{},["stop"])},[t.renderSlot(e.$slots,"footer")],10,["onClick"])):t.createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[y,e.handleClickOutside,e.popperRef]])}var Ht=a._export_sfc(Wt,[["render",Kt],["__file","select.vue"]]);const jt=a.withInstall(Ht,{Option:oe,OptionGroup:ae}),qt=a.withNoopInstall(oe);a.withNoopInstall(ae);exports.ElOption=qt;exports.ElSelect=jt;