diff --git a/src/App.vue b/src/App.vue
index 9f252d1..26211d7 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -73,6 +73,7 @@ import VueGuagePieChart from '@/components/vue-components/echarts-pie-chart.vue'
// src\components\vue-components\vue-signal-monitoring.vue
import VueSignalMonitoring from '@/components/vue-components/vue-signal-monitoring.vue';
import VueImgImmobilization from '@/components/vue-components/vue-img-immobilization.vue';
+import VueCharacters from '@/components/vue-components/vue-characters.vue';
const instance = getCurrentInstance();
instance?.appContext.app.component('vue-my-button', VueMyButton);
@@ -122,6 +123,7 @@ instance?.appContext.app.component('vue-guage-bar-chart', VueGuageBarChart);
instance?.appContext.app.component('vue-guage-pie-chart', VueGuagePieChart);
instance?.appContext.app.component('vue-img-immobilization', VueImgImmobilization);
instance?.appContext.app.component('vue-signal-monitoring', VueSignalMonitoring);
+instance?.appContext.app.component('vue-characters', VueCharacters);
// instance?.appContext.app.component('vue-my-grade-gauge', VueGradeGauge);
@@ -181,6 +183,52 @@ leftAsideStore.registerConfig('vue四遥组件', [
thumbnail: '/svgs/info.svg',
props: {}
},
+ {
+ id: 'vue-characters',
+ title: '遥信文字',
+ type: 'vue',
+ thumbnail: '/svgs/info.svg',
+ props: {
+ moduleType: {
+ type: 'inputTypeTag',
+ val: '遥信',
+ title: '四遥类型'
+ },
+ moduleId: {
+ type: 'inputSelectId',
+ val: '',
+ title: '绑定ID'
+ },
+ showInfo: {
+ type: 'switch',
+ val: true,
+ title: '显示详情'
+ },
+ location: {
+ type: 'select',
+ val: 'bottom',
+ title: '名称位置',
+ options: [
+ {
+ value: 'top',
+ label: '上'
+ },
+ {
+ value: 'bottom',
+ label: '下'
+ },
+ {
+ value: 'left',
+ label: '左'
+ },
+ {
+ value: 'right',
+ label: '右'
+ }
+ ]
+ }
+ }
+ },
{
id: 'vue-my-signal-gaudy',
title: 'vue遥信02',
diff --git a/src/components/vue-components/vue-characters.vue b/src/components/vue-components/vue-characters.vue
new file mode 100644
index 0000000..f2cea8d
--- /dev/null
+++ b/src/components/vue-components/vue-characters.vue
@@ -0,0 +1,79 @@
+
+
+
+
+
+
diff --git a/src/components/vue-xq-test/vue-synthesize-table.vue b/src/components/vue-xq-test/vue-synthesize-table.vue
index 8ce2072..e7d0395 100644
--- a/src/components/vue-xq-test/vue-synthesize-table.vue
+++ b/src/components/vue-xq-test/vue-synthesize-table.vue
@@ -486,38 +486,6 @@ const objectSpanMethods = ({ row, columnIndex }: SpanMethodProps) => {
};
};
-const objectSpanMethod = ({ row, columnIndex }: SpanMethodProps) => {
- if (columnIndex === 0) {
- // 查找当前行对应的楼层数据
- const floor = floorData.find((f) => f.floorName === row.floorName);
-
- if (floor) {
- // 找到该楼层下第一个设备的索引
- const firstEquipmentIndex = floor.equipments.findIndex((e) => e.id === row.id);
-
- if (firstEquipmentIndex === 0) {
- // 如果是第一个设备,合并该楼层的所有行
- return {
- rowspan: floor.equipments.length,
- colspan: 1
- };
- } else {
- // 如果不是第一个设备,不显示(被合并)
- return {
- rowspan: 0,
- colspan: 0
- };
- }
- }
- }
-
- // 其他列不合并
- return {
- rowspan: 1,
- colspan: 1
- };
-};
-
// 将嵌套数据展开为表格数据
const tableData = computed(() => {
return floorData.flatMap((floor) =>
diff --git a/src/layout/view_index.vue b/src/layout/view_index.vue
index cbef7d2..e858181 100644
--- a/src/layout/view_index.vue
+++ b/src/layout/view_index.vue
@@ -2,10 +2,9 @@
-
-
+
+
+
@@ -86,7 +85,7 @@ let initArr: any[] = [
{ id: 'testOverview', label: '智能锁控' },
{ id: 'testOverview', label: '智能联动' }
];
-
+// TODO 需要修改保存到pinia中
const isCollapse = ref(false);
const asideWidth = ref('14%');
diff --git a/src/utils/config.ts b/src/utils/config.ts
new file mode 100644
index 0000000..f0a4fef
--- /dev/null
+++ b/src/utils/config.ts
@@ -0,0 +1,176 @@
+import { dayjs } from 'element-plus';
+
+interface RecIn{
+ Node: {
+ InTypeIn: [number, string][],
+ TypeBase: [number, string][],
+ },
+ CONST: {
+ STR: {
+ EnumType: [number, string][]
+ },
+ UserPage:[string, string][]
+ },
+ EnumTypeVal: [number, string][][],
+ EnumTypeValFun: Function[],
+ regex: any,
+ trans: (val: any, enumArr: [number, string][])=> string
+}
+
+const Rec: Partial={};
+Rec.Node={} as RecIn['Node'];
+Rec.CONST={} as RecIn['CONST'];
+Rec.trans = (index, type)=> {
+ for (let i = 0; i < type.length; i++) {
+ if (type[i][0] == index) {
+ return type[i][1];
+ }
+ }
+ return "*未知*";
+};
+// 所有输入类型
+Rec.Node.InTypeIn = [
+ [1, '遥信'],
+ [2, '遥测']
+];
+
+// 四遥基本类型
+Rec.Node.TypeBase = [
+ [1, '遥信'],
+ [2, '遥测'],
+ [3, '遥控'],
+ [4, '遥调'],
+];
+
+// 定值转化的 类型
+Rec.CONST.STR.EnumType = [
+ [0, '缺省'],
+ [1, '普通开关'],
+ [2, '数值'],
+ [3, '时间秒'],
+ [11, 'RY空调模式'],
+ [12, '空调温度'],
+ [13, '空调风速'],
+ [14, '国网空调模式'],
+ [21, 'KTC空调']
+];
+
+Rec.EnumTypeVal = []; // 定值类型,用于编辑时的选择
+Rec.EnumTypeValFun = []; // 转换函数,用于显示与控制
+
+// 缺省
+Rec.EnumTypeVal[0] = [
+ [0, '关闭'],
+ [1, '开启']
+];
+
+Rec.EnumTypeValFun[0] = function (val:any) {
+ return Rec.trans!(val, Rec.EnumTypeVal![0])
+}
+
+// 遥控
+Rec.EnumTypeVal[1] = [
+ [0, '关闭'],
+ [1, '开启']
+];
+
+Rec.EnumTypeValFun[1] = function (val:any) {
+ return Rec.trans!(val, Rec.EnumTypeVal![1])
+}
+
+// 数值
+Rec.EnumTypeVal[2] = [];
+Rec.EnumTypeValFun[2] = function (val:any) {
+ return [];
+}
+
+// timestamp 转换成时间
+Rec.EnumTypeValFun[3] = function (val:any) {
+ // Ext.Date.format(val * 1000, 'Y-m-d H:i:s')
+ dayjs.unix(val).format('YYYY-MM-DD HH:mm:ss')
+}
+
+// 国网空调模式
+Rec.EnumTypeVal[14] = [
+ [4, '自动'],
+ [0, '制冷'],
+ [1, '制热'],
+ [3, '除湿'],
+ [2, '送风']
+];
+
+Rec.EnumTypeValFun[14] = function (val:any) {
+ return Rec.trans!(val, Rec.EnumTypeVal![14])
+}
+
+// RY空调模式
+Rec.EnumTypeVal[11] = [
+ [0, '自动'],
+ [1, '制冷'],
+ [2, '制热'],
+ [3, '除湿'],
+ [4, '送风']
+];
+
+Rec.EnumTypeValFun[11] = function (val:any) {
+ return Rec.trans!(val, Rec.EnumTypeVal![11])
+}
+
+// 空调温度
+Rec.EnumTypeVal[12] = [
+ [16, '16℃'],
+ [17, '17℃'],
+ [18, '18℃'],
+ [19, '19℃'],
+ [20, '20℃'],
+ [21, '21℃'],
+ [22, '22℃'],
+ [23, '23℃'],
+ [24, '24℃'],
+ [25, '25℃'],
+ [26, '26℃'],
+ [27, '27℃'],
+ [28, '28℃'],
+ [29, '29℃'],
+ [30, '30℃']
+];
+
+Rec.EnumTypeValFun[12] = function (val:any) {
+ return Rec.trans!(val, Rec.EnumTypeVal![12])
+}
+
+// 空调风速
+Rec.EnumTypeVal[13] = [
+ [0, '自动'],
+ [1, '低'],
+ [2, '中'],
+ [3, '高']
+];
+
+Rec.EnumTypeValFun[13] = function (val:any) {
+ return Rec.trans!(val, Rec.EnumTypeVal![13])
+}
+
+// KTC 空调
+Rec.EnumTypeVal[21] = [
+ [0, '关闭'],
+ [1, '制冷'],
+ [2, '制热']
+];
+
+Rec.EnumTypeValFun[21] = function (val:any) {
+ return Rec.trans!(val, Rec.EnumTypeVal![21])
+}
+
+// 用户的缺省界面
+Rec.CONST.UserPage = [
+ ['Admin', 'Admin'],
+ ['User', 'User'],
+]
+
+// 正则表达式
+Rec.regex = {
+ // Modbus 配置的正则表达式
+ modbusCfg: /^(?:25[0-4]|2[0-4]\d|1\d{2}|[1-9]\d|[1-9]):(?:[1-6]|10):(?:6553[0-5]|655[0-2]\d|65[0-4]\d{2}|6[0-4]\d{3}|[1-5]\d{4}|[1-9]\d{0,3}|0)(?::[2-9])?$/,
+ modbusParm: /^(?:\d+(?::\d+){0,2})?$/
+}
\ No newline at end of file
diff --git a/webVue/assets/floor-9dacccdc.css b/webVue/assets/floor-9dacccdc.css
deleted file mode 100644
index 6af0049..0000000
--- a/webVue/assets/floor-9dacccdc.css
+++ /dev/null
@@ -1 +0,0 @@
-.vertical-radio-group[data-v-67a3c190]{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
diff --git a/webVue/assets/floor-e48b0d0d.js b/webVue/assets/floor-e48b0d0d.js
deleted file mode 100644
index 5ce88c3..0000000
--- a/webVue/assets/floor-e48b0d0d.js
+++ /dev/null
@@ -1 +0,0 @@
-import{d as q,aP as N,r as C,x as y,$ as R,Z as S,a as b,g as m,h as p,w as _,av as M,F as k,aw as F,O as r,I as d,as as v,o as J,b as L,q as x,t as D,A as T,X as U,i as $,Y as A,_ as O}from"./index-9847718b.js";import{u as E}from"./index-fd059ba6.js";import{M as G}from"./index-868f5209.js";const X={class:"drawer-footer"},Y=q({name:"PreviewIndex",__name:"floor",setup(Z){const g=N();console.log("参数:",g.query.screen);let u=C(!1),V=y([]),a=C("-1");U();const w=C(),h=(s,e)=>{console.log(s,e),s=="test-dialog"&&d.success(`获取到了id:${e}`)};function I(s){const e={};for(const o in s)s[o]&&typeof s[o]=="object"&&"val"in s[o]&&(e[o]=s[o].val);return e}function P(){var l;let s=r.canvasCfg,e=r.gridCfg,o=A(r.done_json);r.done_json.forEach(c=>{const n=I(c.props);o.forEach(i=>{i.id===c.id&&(i.props=n)})});let t={canvasCfg:s,gridCfg:e,json:o};console.log("endJson:",t),(l=w.value)==null||l.setImportJson(t)}async function j(){var e;let s={menuType:g.query.screen};try{const o=await F.model_getModelData_post(s);if(o.code==200){const t=o.data,{canvasCfg:l,gridCfg:c,importDoneJson:n}=E(t),i=n.map(f=>f.props?{...f,props:y(f.props||{})}:{...f,props:y(f.props||{})});console.log("processedImportDoneJson:",i),(e=w.value)==null||e.setNewImportJson({canvasCfg:l,gridCfg:c,json:i}),r.group_ids.has(g.query.screen)&&r.group_ids.delete(g.query.screen),d.success("数据模型加载成功")}else d.error(`数据模型加载失败: ${o.code} - ${o.message}`)}catch(o){console.error("请求错误:",o),d.error("网络请求失败")}}R(()=>{console.log("view卸载完毕")}),S(()=>{console.log("view挂载完毕"),j()});function B(){console.log("选中:",a.value,a),(!a.value||a.value=="-1")&&d.warning("请先选择一个模型文件"),V.forEach(s=>{s.id==a.value&&fetch(`/dataModes/${s.name}`).then(e=>e.json()).then(e=>{console.log("文件内容:",e);const{canvasCfg:o,gridCfg:t,importDoneJson:l}=E(e);r.canvasCfg=o,r.gridCfg=t,r.setGlobalStoreDoneJson(l),P()}).catch(e=>{d.error("获取文件错误:",e)})})}return(s,e)=>{const o=v("el-radio"),t=v("el-radio-group"),l=v("el-button"),c=v("el-drawer");return J(),b(k,null,[m(p(G),{ref_key:"MtPreviewRef",ref:w,onOnEventCallBack:h},null,512),m(c,{modelValue:p(u),"onUpdate:modelValue":e[1]||(e[1]=n=>M(u)?u.value=n:u=n),modal:!1,title:"数据模型文件","modal-penetrable":""},{footer:_(()=>[L("div",X,[m(l,{onClick:B},{default:_(()=>[...e[2]||(e[2]=[x("加载模型11",-1)])]),_:1})])]),default:_(()=>[m(t,{class:"vertical-radio-group",modelValue:p(a),"onUpdate:modelValue":e[0]||(e[0]=n=>M(a)?a.value=n:a=n)},{default:_(()=>[x(D(p(u))+" ",1),(J(!0),b(k,null,T(p(V),n=>(J(),$(o,{key:n.id,label:n.id},{default:_(()=>[x(D(n.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])],64)}}});const Q=O(Y,[["__scopeId","data-v-67a3c190"]]);export{Q as default};
diff --git a/webVue/assets/globalMessage-6b7e4986.css b/webVue/assets/globalMessage-6b7e4986.css
deleted file mode 100644
index 07fd79f..0000000
--- a/webVue/assets/globalMessage-6b7e4986.css
+++ /dev/null
@@ -1 +0,0 @@
-.vertical-radio-group[data-v-bdccb96b]{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
diff --git a/webVue/assets/globalMessage-c4d3facd.js b/webVue/assets/globalMessage-c4d3facd.js
deleted file mode 100644
index c36b5cf..0000000
--- a/webVue/assets/globalMessage-c4d3facd.js
+++ /dev/null
@@ -1 +0,0 @@
-import{d as m,aP as v,r as M,$ as b,Z as y,aw as w,x as p,O as c,I as a,i as J,h as x,o as k,_ as q}from"./index-9847718b.js";import{u as C}from"./index-fd059ba6.js";import{M as D}from"./index-868f5209.js";const I=m({name:"globalMessage",__name:"globalMessage",setup(h){const r=v();console.log("参数11:",r.query.screen);const l=M(),u=(n,o)=>{console.log(n,o),n=="test-dialog"&&a.success(`获取到了id:${o}`)};b(()=>{console.log("view卸载完毕")}),y(()=>{d()});async function d(){var o;let n={menuType:r.query.screen};try{const s=await w.model_getModelData_post(n);if(s.code==200){const _=await s.data,{canvasCfg:g,gridCfg:i,importDoneJson:f}=C(_),t=f.map(e=>e.props?{...e,props:p(e.props||{})}:{...e,props:p(e.props||{})});console.log("processedImportDoneJson:",t),(o=l.value)==null||o.setNewImportJson({canvasCfg:g,gridCfg:i,json:t}),c.group_ids.has(r.query.screen)&&c.group_ids.delete(r.query.screen),c.group_ids.set(r.query.screen,t.map(e=>e.id)),a.success("数据模型加载成功")}else a.error(`数据模型加载失败: ${s.code} - ${s.message}`)}catch(s){console.error("请求错误:",s),a.error("网络请求失败")}}return(n,o)=>(k(),J(x(D),{ref_key:"MtPreviewRef",ref:l,onOnEventCallBack:u},null,512))}});const $=q(I,[["__scopeId","data-v-bdccb96b"]]);export{$ as default};
diff --git a/webVue/assets/homeExceptionFacility-39dc115d.js b/webVue/assets/homeExceptionFacility-39dc115d.js
deleted file mode 100644
index f7f34c0..0000000
--- a/webVue/assets/homeExceptionFacility-39dc115d.js
+++ /dev/null
@@ -1 +0,0 @@
-import{d as g,aP as v,r as y,$ as w,Z as x,aw as M,x as l,O as c,I as a,i as h,h as E,o as J,_ as k}from"./index-9847718b.js";import{u as C}from"./index-fd059ba6.js";import{M as D}from"./index-868f5209.js";const I=g({__name:"homeExceptionFacility",setup(q){const n=v(),p=y(),d=(r,o)=>{console.log(r,o),r=="test-dialog"&&a.success(`获取到了id:${o}`)};w(()=>{console.log("view卸载完毕")}),x(()=>{i()});async function i(){var o;let r={menuType:n.query.screen};try{const s=await M.model_getModelData_post(r);if(s.code==200){const u=await s.data,{canvasCfg:_,gridCfg:f,importDoneJson:m}=C(u),t=m.map(e=>e.props?{...e,props:l(e.props||{})}:{...e,props:l(e.props||{})});console.log("processedImportDoneJson:",t),(o=p.value)==null||o.setNewImportJson({canvasCfg:_,gridCfg:f,json:t}),c.group_ids.has(n.query.screen)&&c.group_ids.delete(n.query.screen),c.group_ids.set(n.query.screen,t.map(e=>e.id)),a.success("数据模型加载成功")}else a.error(`数据模型加载失败: ${s.code} - ${s.message}`)}catch(s){console.error("请求错误:",s),a.error("网络请求失败")}}return(r,o)=>(J(),h(E(D),{ref_key:"MtPreviewRef",ref:p,onOnEventCallBack:d},null,512))}});const b=k(I,[["__scopeId","data-v-d872abad"]]);export{b as default};
diff --git a/webVue/assets/homeExceptionFacility-5fec4994.css b/webVue/assets/homeExceptionFacility-5fec4994.css
deleted file mode 100644
index c7c842f..0000000
--- a/webVue/assets/homeExceptionFacility-5fec4994.css
+++ /dev/null
@@ -1 +0,0 @@
-.vertical-radio-group[data-v-d872abad]{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
diff --git a/webVue/assets/homeOverrunMessage-0e75fc3b.js b/webVue/assets/homeOverrunMessage-0e75fc3b.js
deleted file mode 100644
index 66e280d..0000000
--- a/webVue/assets/homeOverrunMessage-0e75fc3b.js
+++ /dev/null
@@ -1 +0,0 @@
-import{d as g,aP as v,r as M,$ as w,Z as y,aw as h,x as u,O as c,I as a,i as J,h as x,o as O,_ as k}from"./index-9847718b.js";import{u as C}from"./index-fd059ba6.js";import{M as D}from"./index-868f5209.js";const I=g({name:"homeOverrunMessage",__name:"homeOverrunMessage",setup(q){const n=v(),p=M(),l=(r,o)=>{console.log(r,o),r=="test-dialog"&&a.success(`获取到了id:${o}`)};w(()=>{console.log("view卸载完毕")}),y(()=>{d()});async function d(){var o;let r={menuType:n.query.screen};try{const s=await h.model_getModelData_post(r);if(s.code==200){const _=await s.data,{canvasCfg:f,gridCfg:i,importDoneJson:m}=C(_),t=m.map(e=>e.props?{...e,props:u(e.props||{})}:{...e,props:u(e.props||{})});console.log("processedImportDoneJson:",t),(o=p.value)==null||o.setNewImportJson({canvasCfg:f,gridCfg:i,json:t}),c.group_ids.has(n.query.screen)&&c.group_ids.delete(n.query.screen),c.group_ids.set(n.query.screen,t.map(e=>e.id)),a.success("数据模型加载成功")}else a.error(`数据模型加载失败: ${s.code} - ${s.message}`)}catch(s){console.error("请求错误:",s),a.error("网络请求失败")}}return(r,o)=>(O(),J(x(D),{ref_key:"MtPreviewRef",ref:p,onOnEventCallBack:l},null,512))}});const $=k(I,[["__scopeId","data-v-436f0bc5"]]);export{$ as default};
diff --git a/webVue/assets/homeOverrunMessage-ebd2f52c.css b/webVue/assets/homeOverrunMessage-ebd2f52c.css
deleted file mode 100644
index de9639f..0000000
--- a/webVue/assets/homeOverrunMessage-ebd2f52c.css
+++ /dev/null
@@ -1 +0,0 @@
-.vertical-radio-group[data-v-436f0bc5]{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
diff --git a/webVue/assets/host-60fa1e0a.js b/webVue/assets/host-60fa1e0a.js
deleted file mode 100644
index 3a022b6..0000000
--- a/webVue/assets/host-60fa1e0a.js
+++ /dev/null
@@ -1 +0,0 @@
-import{d as B,aP as N,r as C,x as y,$ as R,Z as S,a as b,g as m,h as _,w as g,av as h,F as M,aw as F,O as a,I as i,as as v,o as J,b as L,q as x,t as k,A as T,X as U,i as $,Y as A,_ as O}from"./index-9847718b.js";import{u as D}from"./index-fd059ba6.js";import{M as G}from"./index-868f5209.js";const X={class:"drawer-footer"},Y=B({name:"PreviewIndex",__name:"host",setup(Z){const f=N();console.log("参数:",f.query.screen);let p=C(!1),V=y([]),r=C("-1");U();const w=C(),E=(s,e)=>{console.log(s,e),s=="test-dialog"&&i.success(`获取到了id:${e}`)};function I(s){const e={};for(const o in s)s[o]&&typeof s[o]=="object"&&"val"in s[o]&&(e[o]=s[o].val);return e}function P(){var l;let s=a.canvasCfg,e=a.gridCfg,o=A(a.done_json);a.done_json.forEach(c=>{const n=I(c.props);o.forEach(u=>{u.id===c.id&&(u.props=n)})});let t={canvasCfg:s,gridCfg:e,json:o};console.log("endJson:",t),(l=w.value)==null||l.setImportJson(t)}async function j(){var e;let s={menuType:f.query.screen};try{const o=await F.model_getModelData_post(s);if(o.code==200){const t=o.data,{canvasCfg:l,gridCfg:c,importDoneJson:n}=D(t),u=n.map(d=>d.props?{...d,props:y(d.props||{})}:{...d,props:y(d.props||{})});console.log("processedImportDoneJson:",u),(e=w.value)==null||e.setNewImportJson({canvasCfg:l,gridCfg:c,json:u}),a.group_ids.has(f.query.screen)&&a.group_ids.delete(f.query.screen),a.group_ids.set(f.query.screen,u.map(d=>d.id)),i.success("数据模型加载成功")}else i.error(`数据模型加载失败: ${o.code} - ${o.message}`)}catch(o){console.error("请求错误:",o),i.error("网络请求失败")}}R(()=>{console.log("view卸载完毕")}),S(()=>{console.log("view挂载完毕"),j()});function q(){console.log("选中:",r.value,r),(!r.value||r.value=="-1")&&i.warning("请先选择一个模型文件"),V.forEach(s=>{s.id==r.value&&fetch(`/dataModes/${s.name}`).then(e=>e.json()).then(e=>{console.log("文件内容:",e);const{canvasCfg:o,gridCfg:t,importDoneJson:l}=D(e);a.canvasCfg=o,a.gridCfg=t,a.setGlobalStoreDoneJson(l),P()}).catch(e=>{i.error("获取文件错误:",e)})})}return(s,e)=>{const o=v("el-radio"),t=v("el-radio-group"),l=v("el-button"),c=v("el-drawer");return J(),b(M,null,[m(_(G),{ref_key:"MtPreviewRef",ref:w,onOnEventCallBack:E},null,512),m(c,{modelValue:_(p),"onUpdate:modelValue":e[1]||(e[1]=n=>h(p)?p.value=n:p=n),modal:!1,title:"数据模型文件","modal-penetrable":""},{footer:g(()=>[L("div",X,[m(l,{onClick:q},{default:g(()=>[...e[2]||(e[2]=[x("加载模型11",-1)])]),_:1})])]),default:g(()=>[m(t,{class:"vertical-radio-group",modelValue:_(r),"onUpdate:modelValue":e[0]||(e[0]=n=>h(r)?r.value=n:r=n)},{default:g(()=>[x(k(_(p))+" ",1),(J(!0),b(M,null,T(_(V),n=>(J(),$(o,{key:n.id,label:n.id},{default:g(()=>[x(k(n.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])],64)}}});const Q=O(Y,[["__scopeId","data-v-d0f0d48f"]]);export{Q as default};
diff --git a/webVue/assets/host-bce9ed75.css b/webVue/assets/host-bce9ed75.css
deleted file mode 100644
index 65e67f8..0000000
--- a/webVue/assets/host-bce9ed75.css
+++ /dev/null
@@ -1 +0,0 @@
-.vertical-radio-group[data-v-d0f0d48f]{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
diff --git a/webVue/assets/index-00692901.js b/webVue/assets/index-00692901.js
deleted file mode 100644
index 5d747f8..0000000
--- a/webVue/assets/index-00692901.js
+++ /dev/null
@@ -1 +0,0 @@
-import{d as D,r as p,x as N,$ as I,Z as O,a as M,q as u,t as v,h as i,b as j,g as f,w as c,av as C,F as y,O as s,Y as R,as as g,o as x,A as F,X as U,I as w,i as L,_ as T}from"./index-9847718b.js";import{u as $}from"./index-fd059ba6.js";import{M as q}from"./index-868f5209.js";const A={class:"drawer-footer"},G=D({name:"PreviewIndex",__name:"index",setup(X){let l=p(!1),m=N([]),a=p("-1"),E=U();function J(){fetch("/dataModes/index.json").then(o=>o.json()).then(o=>{m=Object.assign(o)}).catch(o=>{console.error("获取JSON文件错误:",o)})}const b=p(),B=(o,e)=>{console.log(o,e),o=="test-dialog"&&w.success(`获取到了id:${e}`)};function P(o){const e={};for(const n in o)o[n]&&typeof o[n]=="object"&&"val"in o[n]&&(e[n]=o[n].val);return e}function k(){var d;let o=s.canvasCfg,e=s.gridCfg,n=R(s.done_json);s.done_json.forEach(_=>{const t=P(_.props);n.forEach(V=>{V.id===_.id&&(V.props=t)})});let r={canvasCfg:o,gridCfg:e,json:n};console.log("endJson:",r),(d=b.value)==null||d.setImportJson(r)}I(()=>{console.log("view卸载完毕")}),O(()=>{console.log("view挂载完毕"),J(),k()});function S(){console.log("选中:",a.value,a),(!a.value||a.value=="-1")&&w.warning("请先选择一个模型文件"),m.forEach(o=>{o.id==a.value&&fetch(`/dataModes/${o.name}`).then(e=>e.json()).then(e=>{console.log("文件内容:",e);const{canvasCfg:n,gridCfg:r,importDoneJson:d}=$(e);s.canvasCfg=n,s.gridCfg=r,s.setGlobalStoreDoneJson(d),k()}).catch(e=>{w.error("获取文件错误:",e)})})}function h(){console.log("test3:",s)}return(o,e)=>{const n=g("el-button"),r=g("el-radio"),d=g("el-radio-group"),_=g("el-drawer");return x(),M(y,null,[u(v(i(E))+" ",1),j("button",{onClick:h},"查看pina数据"),f(n,{type:"primary",onClick:e[0]||(e[0]=t=>C(l)?l.value=!0:l=!0)},{default:c(()=>[...e[3]||(e[3]=[u(" 数据文件222 ",-1)])]),_:1}),f(i(q),{ref_key:"MtPreviewRef",ref:b,onOnEventCallBack:B},null,512),f(_,{modelValue:i(l),"onUpdate:modelValue":e[2]||(e[2]=t=>C(l)?l.value=t:l=t),modal:!1,title:"数据模型文件","modal-penetrable":""},{footer:c(()=>[j("div",A,[f(n,{onClick:S},{default:c(()=>[...e[4]||(e[4]=[u("加载模型11",-1)])]),_:1})])]),default:c(()=>[f(d,{class:"vertical-radio-group",modelValue:i(a),"onUpdate:modelValue":e[1]||(e[1]=t=>C(a)?a.value=t:a=t)},{default:c(()=>[u(v(i(l))+" ",1),(x(!0),M(y,null,F(i(m),t=>(x(),L(r,{key:t.id,label:t.id},{default:c(()=>[u(v(t.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])],64)}}});const H=T(G,[["__scopeId","data-v-d1648c7a"]]);export{H as default};
diff --git a/webVue/assets/index-05e1f753.css b/webVue/assets/index-05e1f753.css
deleted file mode 100644
index 2e5f1d1..0000000
--- a/webVue/assets/index-05e1f753.css
+++ /dev/null
@@ -1 +0,0 @@
-.common-layout[data-v-635be2c1]{height:100vh;display:flex;align-items:center;justify-content:center}.layout-container[data-v-635be2c1]{width:100%;height:100vh;display:flex;flex-direction:column}.header-part[data-v-635be2c1]{height:18.75vh;background-color:#b3c0d1;display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:700;color:#333}.main-part[data-v-635be2c1]{height:74.21875vh;background-color:#e9eef3;display:flex;align-items:center;justify-content:center;font-size:18px;color:#333}.footer-part[data-v-635be2c1]{height:7.03125vh;background-color:#d3dce6;padding:0!important;margin:0!important;color:#333;margin-top:0}.footer-part-col[data-v-635be2c1]{height:100%;background-color:#333;color:#606266;border:3px solid rgb(206,12,12);border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}
diff --git a/webVue/assets/index-22b0f6c3.css b/webVue/assets/index-22b0f6c3.css
deleted file mode 100644
index 51acb9e..0000000
--- a/webVue/assets/index-22b0f6c3.css
+++ /dev/null
@@ -1 +0,0 @@
-.vertical-radio-group[data-v-d1648c7a]{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
diff --git a/webVue/assets/index-5f239c23.js b/webVue/assets/index-5f239c23.js
deleted file mode 100644
index 9e68d53..0000000
--- a/webVue/assets/index-5f239c23.js
+++ /dev/null
@@ -1 +0,0 @@
-import{d as q,aP as N,r as C,x,$ as R,Z as S,a as b,g as m,h as p,w as _,av as M,F as k,aw as F,O as r,I as c,as as v,o as y,b as L,q as J,t as D,A as T,X as U,i as $,Y as A,_ as O}from"./index-9847718b.js";import{u as E}from"./index-fd059ba6.js";import{M as G}from"./index-868f5209.js";const X={class:"drawer-footer"},Y=q({name:"PreviewIndex",__name:"index",setup(Z){const g=N();console.log("参数:",g.query.screen);let i=C(!1),V=x([]),a=C("-1");U();const w=C(),h=(n,e)=>{console.log(n,e),n=="test-dialog"&&c.success(`获取到了id:${e}`)};function I(n){const e={};for(const o in n)n[o]&&typeof n[o]=="object"&&"val"in n[o]&&(e[o]=n[o].val);return e}function P(){var l;let n=r.canvasCfg,e=r.gridCfg,o=A(r.done_json);r.done_json.forEach(d=>{const s=I(d.props);o.forEach(u=>{u.id===d.id&&(u.props=s)})});let t={canvasCfg:n,gridCfg:e,json:o};console.log("endJson:",t),(l=w.value)==null||l.setImportJson(t)}async function j(){var e;let n={menuType:g.query.screen};try{const o=await F.model_getModelData_post(n);if(o.code==200){const t=await o.data,{canvasCfg:l,gridCfg:d,importDoneJson:s}=E(t),u=s.map(f=>f.props?{...f,props:x(f.props||{})}:{...f,props:x(f.props||{})});console.log("processedImportDoneJson:",u),(e=w.value)==null||e.setNewImportJson({canvasCfg:l,gridCfg:d,json:u}),r.group_ids.has(g.query.screen)&&r.group_ids.delete(g.query.screen),c.success("数据模型加载成功")}else c.error(`数据模型加载失败: ${o.code} - ${o.message}`)}catch(o){console.error("请求错误:",o),c.error("网络请求失败")}}R(()=>{console.log("view卸载完毕")}),S(()=>{console.log("view挂载完毕"),j()});function B(){console.log("选中:",a.value,a),(!a.value||a.value=="-1")&&c.warning("请先选择一个模型文件"),V.forEach(n=>{n.id==a.value&&fetch(`/dataModes/${n.name}`).then(e=>e.json()).then(e=>{console.log("文件内容:",e);const{canvasCfg:o,gridCfg:t,importDoneJson:l}=E(e);r.canvasCfg=o,r.gridCfg=t,r.setGlobalStoreDoneJson(l),P()}).catch(e=>{c.error("获取文件错误:",e)})})}return(n,e)=>{const o=v("el-radio"),t=v("el-radio-group"),l=v("el-button"),d=v("el-drawer");return y(),b(k,null,[m(p(G),{ref_key:"MtPreviewRef",ref:w,onOnEventCallBack:h},null,512),m(d,{modelValue:p(i),"onUpdate:modelValue":e[1]||(e[1]=s=>M(i)?i.value=s:i=s),modal:!1,title:"数据模型文件","modal-penetrable":""},{footer:_(()=>[L("div",X,[m(l,{onClick:B},{default:_(()=>[...e[2]||(e[2]=[J("加载模型11",-1)])]),_:1})])]),default:_(()=>[m(t,{class:"vertical-radio-group",modelValue:p(a),"onUpdate:modelValue":e[0]||(e[0]=s=>M(a)?a.value=s:a=s)},{default:_(()=>[J(D(p(i))+" ",1),(y(!0),b(k,null,T(p(V),s=>(y(),$(o,{key:s.id,label:s.id},{default:_(()=>[J(D(s.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])],64)}}});const Q=O(Y,[["__scopeId","data-v-28d8a977"]]);export{Q as default};
diff --git a/webVue/assets/index-6e6b3d7b.css b/webVue/assets/index-6e6b3d7b.css
deleted file mode 100644
index 4a4ab09..0000000
--- a/webVue/assets/index-6e6b3d7b.css
+++ /dev/null
@@ -1 +0,0 @@
-.vertical-radio-group[data-v-91993da2]{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
diff --git a/webVue/assets/index-868f5209.js b/webVue/assets/index-868f5209.js
deleted file mode 100644
index 2e211fd..0000000
--- a/webVue/assets/index-868f5209.js
+++ /dev/null
@@ -1 +0,0 @@
-import{d as J,Q as P,r as l,x as R,I as S,aY as j,aZ as V,Z as N,o as Z,a as T,g as i,w as Y,b as z,n as U,h as W,B as K,a_ as _,a$ as L,_ as Q}from"./index-9847718b.js";import{u as w,_ as q,a as F}from"./index-fd059ba6.js";const G={class:"mt-preview"},H=J({__name:"index",props:{exportJson:{},canZoom:{type:Boolean,default:!0},canDrag:{type:Boolean,default:!0},showPopover:{type:Boolean,default:!0}},emits:["onEventCallBack"],setup(h,{expose:C,emit:D}){P(e=>({bd32cc0c:`scale(${o.value.scale})`,v2fe7abe4:o.value.width+"px",v17da5d89:o.value.height+"px",v27bf1846:o.value.color,v87ebe69c:"url("+o.value.img+")"}));const r=h,I=D,f=l(),o=l({width:1920,height:1080,scale:1,color:"",img:"",guide:!0,adsorp:!0,adsorp_diff:3,transform_origin:{x:0,y:0},drag_offset:{x:0,y:0}}),c=l({enabled:!0,align:!0,size:10}),t=l([]),v=l(),g=l(),n=R({begin_left:0,begin_top:0,left:0,top:0}),M=({scrollLeft:e,scrollTop:a})=>{n.left=e,n.top=a},b=e=>{var a;r.canDrag&&((a=g.value)==null||a.onMouseDown(e))},x=()=>{n.begin_left=n.left,n.begin_top=n.top},B=(e,a)=>{var p,m;let s=n.begin_left-e,u=n.begin_top-a;(p=v.value)==null||p.setScrollLeft(s),(m=v.value)==null||m.setScrollTop(u)},y=()=>{},d=(e,a,s)=>_(e,a,s,t.value),A=e=>{e.forEach(a=>{_(a.id,a.key,a.val,t.value)})},E=(e,a,s)=>L(e,a,t.value),$=e=>{e.ctrlKey&&r.canZoom&&(e.preventDefault(),e.stopPropagation(),e.deltaY>0?o.value.scale=(o.value.scale*10-1)/10:e.deltaY<0&&(o.value.scale=(o.value.scale*10+1)/10))},k=(e,a,s)=>{setTimeout(()=>{d(e,a,s)},0)};return window.$mtElMessage=S,window.$mtElMessageBox=j,window.$setItemAttrByID=(e,a,s)=>k(e,a,s),window.$getItemAttrByID=E,window.$previewCompareVal=V,window.$mtEventCallBack=(e,a,...s)=>I("onEventCallBack",e,a,...s),N(()=>{if(r.exportJson){const{canvasCfg:e,gridCfg:a,importDoneJson:s}=w(r.exportJson);o.value=e,c.value=a,t.value=s,console.log("@@importDoneJson:",s)}}),C({setItemAttrByID:d,setImportJson:e=>{const{canvasCfg:a,gridCfg:s,importDoneJson:u}=w(e);return o.value=a,c.value=s,t.value=e.json,t.value=u,!0},setItemAttrs:A,setNewImportJson:e=>(o.value=e.canvasCfg,c.value=e.gridCfg,t.value=e.json,!0)}),(e,a)=>(Z(),T("div",G,[i(W(K),{ref_key:"elScrollbarRef",ref:v,class:"w-1/1 h-1/1","max-height":o.value.height,onScroll:M},{default:Y(()=>[z("div",{ref_key:"canvasAreaRef",ref:f,class:U(`canvasArea ${r.canDrag?"cursor-grab":""} `),onMousedown:b,onWheel:$},[i(q,{"done-json":t.value,"canvas-cfg":o.value,"grid-cfg":c.value,"show-ghost-dom":!1,"canvas-dom":f.value,"global-lock":!1,"preivew-mode":!0,"show-popover":r.showPopover},null,8,["done-json","canvas-cfg","grid-cfg","canvas-dom","show-popover"])],34),i(F,{ref_key:"dragCanvasRef",ref:g,"scale-ratio":o.value.scale,onDragCanvasMouseDown:x,onDragCanvasMouseMove:B,onDragCanvasMouseUp:y},null,8,["scale-ratio"])]),_:1},8,["max-height"])]))}}),oe=Q(H,[["__scopeId","data-v-464d64c1"]]);export{oe as M};
diff --git a/webVue/assets/index-9847718b.js b/webVue/assets/index-9847718b.js
deleted file mode 100644
index eca0604..0000000
--- a/webVue/assets/index-9847718b.js
+++ /dev/null
@@ -1,5443 +0,0 @@
-(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const g of document.querySelectorAll('link[rel="modulepreload"]'))i(g);new MutationObserver(g=>{for(const $ of g)if($.type==="childList")for(const V of $.addedNodes)V.tagName==="LINK"&&V.rel==="modulepreload"&&i(V)}).observe(document,{childList:!0,subtree:!0});function r(g){const $={};return g.integrity&&($.integrity=g.integrity),g.referrerPolicy&&($.referrerPolicy=g.referrerPolicy),g.crossOrigin==="use-credentials"?$.credentials="include":g.crossOrigin==="anonymous"?$.credentials="omit":$.credentials="same-origin",$}function i(g){if(g.ep)return;g.ep=!0;const $=r(g);fetch(g.href,$)}})();/**
-* @vue/shared v3.5.26
-* (c) 2018-present Yuxi (Evan) You and Vue contributors
-* @license MIT
-**/function makeMap(n){const t=Object.create(null);for(const r of n.split(","))t[r]=1;return r=>r in t}const EMPTY_OBJ$1={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),isModelListener=n=>n.startsWith("onUpdate:"),extend$2=Object.assign,remove$1=(n,t)=>{const r=n.indexOf(t);r>-1&&n.splice(r,1)},hasOwnProperty$h=Object.prototype.hasOwnProperty,hasOwn$1=(n,t)=>hasOwnProperty$h.call(n,t),isArray$5=Array.isArray,isMap$2=n=>toTypeString(n)==="[object Map]",isSet$2=n=>toTypeString(n)==="[object Set]",isDate$1=n=>toTypeString(n)==="[object Date]",isFunction$4=n=>typeof n=="function",isString$2=n=>typeof n=="string",isSymbol$1=n=>typeof n=="symbol",isObject$6=n=>n!==null&&typeof n=="object",isPromise=n=>(isObject$6(n)||isFunction$4(n))&&isFunction$4(n.then)&&isFunction$4(n.catch),objectToString$1=Object.prototype.toString,toTypeString=n=>objectToString$1.call(n),toRawType=n=>toTypeString(n).slice(8,-1),isPlainObject$3=n=>toTypeString(n)==="[object Object]",isIntegerKey=n=>isString$2(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=n=>{const t=Object.create(null);return r=>t[r]||(t[r]=n(r))},camelizeRE=/-\w/g,camelize=cacheStringFunction(n=>n.replace(camelizeRE,t=>t.slice(1).toUpperCase())),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(n=>n.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$1=cacheStringFunction(n=>n.charAt(0).toUpperCase()+n.slice(1)),toHandlerKey=cacheStringFunction(n=>n?`on${capitalize$1(n)}`:""),hasChanged=(n,t)=>!Object.is(n,t),invokeArrayFns=(n,...t)=>{for(let r=0;r{Object.defineProperty(n,t,{configurable:!0,enumerable:!1,writable:i,value:r})},looseToNumber$1=n=>{const t=parseFloat(n);return isNaN(t)?n:t},toNumber$1=n=>{const t=isString$2(n)?Number(n):NaN;return isNaN(t)?n:t};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle$1(n){if(isArray$5(n)){const t={};for(let r=0;r{if(r){const i=r.split(propertyDelimiterRE);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function stringifyStyle(n){if(!n)return"";if(isString$2(n))return n;let t="";for(const r in n){const i=n[r];if(isString$2(i)||typeof i=="number"){const g=r.startsWith("--")?r:hyphenate(r);t+=`${g}:${i};`}}return t}function normalizeClass(n){let t="";if(isString$2(n))t=n;else if(isArray$5(n))for(let r=0;r/="'\u0009\u000a\u000c\u0020]/,attrValidationCache={};function isSSRSafeAttrName(n){if(attrValidationCache.hasOwnProperty(n))return attrValidationCache[n];const t=unsafeAttrCharRE.test(n);return t&&console.error(`unsafe attribute name: ${n}`),attrValidationCache[n]=!t}const propsToAttrMap={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"};function isRenderableAttrValue(n){if(n==null)return!1;const t=typeof n;return t==="string"||t==="number"||t==="boolean"}const escapeRE=/["'&<>]/;function escapeHtml(n){const t=""+n,r=escapeRE.exec(t);if(!r)return t;let i="",g,$,V=0;for($=r.index;$||--!>|looseEqual(r,t))}const isRef$1=n=>!!(n&&n.__v_isRef===!0),toDisplayString=n=>isString$2(n)?n:n==null?"":isArray$5(n)||isObject$6(n)&&(n.toString===objectToString$1||!isFunction$4(n.toString))?isRef$1(n)?toDisplayString(n.value):JSON.stringify(n,replacer,2):String(n),replacer=(n,t)=>isRef$1(t)?replacer(n,t.value):isMap$2(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[i,g],$)=>(r[stringifySymbol(i,$)+" =>"]=g,r),{})}:isSet$2(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>stringifySymbol(r))}:isSymbol$1(t)?stringifySymbol(t):isObject$6(t)&&!isArray$5(t)&&!isPlainObject$3(t)?String(t):t,stringifySymbol=(n,t="")=>{var r;return isSymbol$1(n)?`Symbol(${(r=n.description)!=null?r:t})`:n};function normalizeCssVarValue(n){return n==null?"initial":typeof n=="string"?n===""?" ":n:String(n)}/**
-* @vue/reactivity v3.5.26
-* (c) 2018-present Yuxi (Evan) You and Vue contributors
-* @license MIT
-**/let activeEffectScope;class EffectScope{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!t&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0&&--this._on===0&&(activeEffectScope=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,i;for(r=0,i=this.effects.length;r0)return;if(batchedComputed){let t=batchedComputed;for(batchedComputed=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let n;for(;batchedSub;){let t=batchedSub;for(batchedSub=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){n||(n=i)}t=r}}if(n)throw n}function prepareDeps(n){for(let t=n.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function cleanupDeps(n){let t,r=n.depsTail,i=r;for(;i;){const g=i.prevDep;i.version===-1?(i===r&&(r=g),removeSub(i),removeDep(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=g}n.deps=t,n.depsTail=r}function isDirty(n){for(let t=n.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(refreshComputed(t.dep.computed)||t.dep.version!==t.version))return!0;return!!n._dirty}function refreshComputed(n){if(n.flags&4&&!(n.flags&16)||(n.flags&=-17,n.globalVersion===globalVersion)||(n.globalVersion=globalVersion,!n.isSSR&&n.flags&128&&(!n.deps&&!n._dirty||!isDirty(n))))return;n.flags|=2;const t=n.dep,r=activeSub,i=shouldTrack;activeSub=n,shouldTrack=!0;try{prepareDeps(n);const g=n.fn(n._value);(t.version===0||hasChanged(g,n._value))&&(n.flags|=128,n._value=g,t.version++)}catch(g){throw t.version++,g}finally{activeSub=r,shouldTrack=i,cleanupDeps(n),n.flags&=-3}}function removeSub(n,t=!1){const{dep:r,prevSub:i,nextSub:g}=n;if(i&&(i.nextSub=g,n.prevSub=void 0),g&&(g.prevSub=i,n.nextSub=void 0),r.subs===n&&(r.subs=i,!i&&r.computed)){r.computed.flags&=-5;for(let $=r.computed.deps;$;$=$.nextDep)removeSub($,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function removeDep(n){const{prevDep:t,nextDep:r}=n;t&&(t.nextDep=r,n.prevDep=void 0),r&&(r.prevDep=t,n.nextDep=void 0)}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const n=trackStack.pop();shouldTrack=n===void 0?!0:n}function cleanupEffect(n){const{cleanup:t}=n;if(n.cleanup=void 0,t){const r=activeSub;activeSub=void 0;try{t()}finally{activeSub=r}}}let globalVersion=0,Link$1=class{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Dep{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==activeSub)r=this.activeLink=new Link$1(activeSub,this),activeSub.deps?(r.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=r,activeSub.depsTail=r):activeSub.deps=activeSub.depsTail=r,addSub(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const i=r.nextDep;i.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=i),r.prevDep=activeSub.depsTail,r.nextDep=void 0,activeSub.depsTail.nextDep=r,activeSub.depsTail=r,activeSub.deps===r&&(activeSub.deps=i)}return r}trigger(t){this.version++,globalVersion++,this.notify(t)}notify(t){startBatch();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{endBatch()}}}function addSub(n){if(n.dep.sc++,n.sub.flags&4){const t=n.dep.computed;if(t&&!n.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)addSub(i)}const r=n.dep.subs;r!==n&&(n.prevSub=r,r&&(r.nextSub=n)),n.dep.subs=n}}const targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol(""),ARRAY_ITERATE_KEY=Symbol("");function track(n,t,r){if(shouldTrack&&activeSub){let i=targetMap.get(n);i||targetMap.set(n,i=new Map);let g=i.get(r);g||(i.set(r,g=new Dep),g.map=i,g.key=r),g.track()}}function trigger(n,t,r,i,g,$){const V=targetMap.get(n);if(!V){globalVersion++;return}const re=ie=>{ie&&ie.trigger()};if(startBatch(),t==="clear")V.forEach(re);else{const ie=isArray$5(n),ae=ie&&isIntegerKey(r);if(ie&&r==="length"){const oe=Number(i);V.forEach((le,ue)=>{(ue==="length"||ue===ARRAY_ITERATE_KEY||!isSymbol$1(ue)&&ue>=oe)&&re(le)})}else switch((r!==void 0||V.has(void 0))&&re(V.get(r)),ae&&re(V.get(ARRAY_ITERATE_KEY)),t){case"add":ie?ae&&re(V.get("length")):(re(V.get(ITERATE_KEY)),isMap$2(n)&&re(V.get(MAP_KEY_ITERATE_KEY)));break;case"delete":ie||(re(V.get(ITERATE_KEY)),isMap$2(n)&&re(V.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$2(n)&&re(V.get(ITERATE_KEY));break}}endBatch()}function getDepFromReactive(n,t){const r=targetMap.get(n);return r&&r.get(t)}function reactiveReadArray(n){const t=toRaw(n);return t===n?t:(track(t,"iterate",ARRAY_ITERATE_KEY),isShallow(n)?t:t.map(toReactive$1))}function shallowReadArray(n){return track(n=toRaw(n),"iterate",ARRAY_ITERATE_KEY),n}function toWrapped(n,t){return isReadonly(n)?isReactive(n)?toReadonly(toReactive$1(t)):toReadonly(t):toReactive$1(t)}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator$2(this,Symbol.iterator,n=>toWrapped(this,n))},concat(...n){return reactiveReadArray(this).concat(...n.map(t=>isArray$5(t)?reactiveReadArray(t):t))},entries(){return iterator$2(this,"entries",n=>(n[1]=toWrapped(this,n[1]),n))},every(n,t){return apply$1(this,"every",n,t,void 0,arguments)},filter(n,t){return apply$1(this,"filter",n,t,r=>r.map(i=>toWrapped(this,i)),arguments)},find(n,t){return apply$1(this,"find",n,t,r=>toWrapped(this,r),arguments)},findIndex(n,t){return apply$1(this,"findIndex",n,t,void 0,arguments)},findLast(n,t){return apply$1(this,"findLast",n,t,r=>toWrapped(this,r),arguments)},findLastIndex(n,t){return apply$1(this,"findLastIndex",n,t,void 0,arguments)},forEach(n,t){return apply$1(this,"forEach",n,t,void 0,arguments)},includes(...n){return searchProxy(this,"includes",n)},indexOf(...n){return searchProxy(this,"indexOf",n)},join(n){return reactiveReadArray(this).join(n)},lastIndexOf(...n){return searchProxy(this,"lastIndexOf",n)},map(n,t){return apply$1(this,"map",n,t,void 0,arguments)},pop(){return noTracking(this,"pop")},push(...n){return noTracking(this,"push",n)},reduce(n,...t){return reduce$1(this,"reduce",n,t)},reduceRight(n,...t){return reduce$1(this,"reduceRight",n,t)},shift(){return noTracking(this,"shift")},some(n,t){return apply$1(this,"some",n,t,void 0,arguments)},splice(...n){return noTracking(this,"splice",n)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(n){return reactiveReadArray(this).toSorted(n)},toSpliced(...n){return reactiveReadArray(this).toSpliced(...n)},unshift(...n){return noTracking(this,"unshift",n)},values(){return iterator$2(this,"values",n=>toWrapped(this,n))}};function iterator$2(n,t,r){const i=shallowReadArray(n),g=i[t]();return i!==n&&!isShallow(n)&&(g._next=g.next,g.next=()=>{const $=g._next();return $.done||($.value=r($.value)),$}),g}const arrayProto$2=Array.prototype;function apply$1(n,t,r,i,g,$){const V=shallowReadArray(n),re=V!==n&&!isShallow(n),ie=V[t];if(ie!==arrayProto$2[t]){const le=ie.apply(n,$);return re?toReactive$1(le):le}let ae=r;V!==n&&(re?ae=function(le,ue){return r.call(this,toWrapped(n,le),ue,n)}:r.length>2&&(ae=function(le,ue){return r.call(this,le,ue,n)}));const oe=ie.call(V,ae,i);return re&&g?g(oe):oe}function reduce$1(n,t,r,i){const g=shallowReadArray(n);let $=r;return g!==n&&(isShallow(n)?r.length>3&&($=function(V,re,ie){return r.call(this,V,re,ie,n)}):$=function(V,re,ie){return r.call(this,V,toWrapped(n,re),ie,n)}),g[t]($,...i)}function searchProxy(n,t,r){const i=toRaw(n);track(i,"iterate",ARRAY_ITERATE_KEY);const g=i[t](...r);return(g===-1||g===!1)&&isProxy(r[0])?(r[0]=toRaw(r[0]),i[t](...r)):g}function noTracking(n,t,r=[]){pauseTracking(),startBatch();const i=toRaw(n)[t].apply(n,r);return endBatch(),resetTracking(),i}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(isSymbol$1));function hasOwnProperty$g(n){isSymbol$1(n)||(n=String(n));const t=toRaw(this);return track(t,"has",n),t.hasOwnProperty(n)}class BaseReactiveHandler{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,i){if(r==="__v_skip")return t.__v_skip;const g=this._isReadonly,$=this._isShallow;if(r==="__v_isReactive")return!g;if(r==="__v_isReadonly")return g;if(r==="__v_isShallow")return $;if(r==="__v_raw")return i===(g?$?shallowReadonlyMap:readonlyMap:$?shallowReactiveMap:reactiveMap).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const V=isArray$5(t);if(!g){let ie;if(V&&(ie=arrayInstrumentations[r]))return ie;if(r==="hasOwnProperty")return hasOwnProperty$g}const re=Reflect.get(t,r,isRef(t)?t:i);if((isSymbol$1(r)?builtInSymbols.has(r):isNonTrackableKeys(r))||(g||track(t,"get",r),$))return re;if(isRef(re)){const ie=V&&isIntegerKey(r)?re:re.value;return g&&isObject$6(ie)?readonly(ie):ie}return isObject$6(re)?g?readonly(re):reactive(re):re}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(t=!1){super(!1,t)}set(t,r,i,g){let $=t[r];const V=isArray$5(t)&&isIntegerKey(r);if(!this._isShallow){const ae=isReadonly($);if(!isShallow(i)&&!isReadonly(i)&&($=toRaw($),i=toRaw(i)),!V&&isRef($)&&!isRef(i))return ae||($.value=i),!0}const re=V?Number(r)n,getProto=n=>Reflect.getPrototypeOf(n);function createIterableMethod(n,t,r){return function(...i){const g=this.__v_raw,$=toRaw(g),V=isMap$2($),re=n==="entries"||n===Symbol.iterator&&V,ie=n==="keys"&&V,ae=g[n](...i),oe=r?toShallow:t?toReadonly:toReactive$1;return!t&&track($,"iterate",ie?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:le,done:ue}=ae.next();return ue?{value:le,done:ue}:{value:re?[oe(le[0]),oe(le[1])]:oe(le),done:ue}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(n){return function(...t){return n==="delete"?!1:n==="clear"?void 0:this}}function createInstrumentations(n,t){const r={get(g){const $=this.__v_raw,V=toRaw($),re=toRaw(g);n||(hasChanged(g,re)&&track(V,"get",g),track(V,"get",re));const{has:ie}=getProto(V),ae=t?toShallow:n?toReadonly:toReactive$1;if(ie.call(V,g))return ae($.get(g));if(ie.call(V,re))return ae($.get(re));$!==V&&$.get(g)},get size(){const g=this.__v_raw;return!n&&track(toRaw(g),"iterate",ITERATE_KEY),g.size},has(g){const $=this.__v_raw,V=toRaw($),re=toRaw(g);return n||(hasChanged(g,re)&&track(V,"has",g),track(V,"has",re)),g===re?$.has(g):$.has(g)||$.has(re)},forEach(g,$){const V=this,re=V.__v_raw,ie=toRaw(re),ae=t?toShallow:n?toReadonly:toReactive$1;return!n&&track(ie,"iterate",ITERATE_KEY),re.forEach((oe,le)=>g.call($,ae(oe),ae(le),V))}};return extend$2(r,n?{add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear")}:{add(g){!t&&!isShallow(g)&&!isReadonly(g)&&(g=toRaw(g));const $=toRaw(this);return getProto($).has.call($,g)||($.add(g),trigger($,"add",g,g)),this},set(g,$){!t&&!isShallow($)&&!isReadonly($)&&($=toRaw($));const V=toRaw(this),{has:re,get:ie}=getProto(V);let ae=re.call(V,g);ae||(g=toRaw(g),ae=re.call(V,g));const oe=ie.call(V,g);return V.set(g,$),ae?hasChanged($,oe)&&trigger(V,"set",g,$):trigger(V,"add",g,$),this},delete(g){const $=toRaw(this),{has:V,get:re}=getProto($);let ie=V.call($,g);ie||(g=toRaw(g),ie=V.call($,g)),re&&re.call($,g);const ae=$.delete(g);return ie&&trigger($,"delete",g,void 0),ae},clear(){const g=toRaw(this),$=g.size!==0,V=g.clear();return $&&trigger(g,"clear",void 0,void 0),V}}),["keys","values","entries",Symbol.iterator].forEach(g=>{r[g]=createIterableMethod(g,n,t)}),r}function createInstrumentationGetter(n,t){const r=createInstrumentations(n,t);return(i,g,$)=>g==="__v_isReactive"?!n:g==="__v_isReadonly"?n:g==="__v_raw"?i:Reflect.get(hasOwn$1(r,g)&&g in i?r:i,g,$)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(n){return n.__v_skip||!Object.isExtensible(n)?0:targetTypeMap(toRawType(n))}function reactive(n){return isReadonly(n)?n:createReactiveObject(n,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(n){return createReactiveObject(n,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(n){return createReactiveObject(n,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(n){return createReactiveObject(n,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(n,t,r,i,g){if(!isObject$6(n)||n.__v_raw&&!(t&&n.__v_isReactive))return n;const $=getTargetType(n);if($===0)return n;const V=g.get(n);if(V)return V;const re=new Proxy(n,$===2?i:r);return g.set(n,re),re}function isReactive(n){return isReadonly(n)?isReactive(n.__v_raw):!!(n&&n.__v_isReactive)}function isReadonly(n){return!!(n&&n.__v_isReadonly)}function isShallow(n){return!!(n&&n.__v_isShallow)}function isProxy(n){return n?!!n.__v_raw:!1}function toRaw(n){const t=n&&n.__v_raw;return t?toRaw(t):n}function markRaw(n){return!hasOwn$1(n,"__v_skip")&&Object.isExtensible(n)&&def(n,"__v_skip",!0),n}const toReactive$1=n=>isObject$6(n)?reactive(n):n,toReadonly=n=>isObject$6(n)?readonly(n):n;function isRef(n){return n?n.__v_isRef===!0:!1}function ref(n){return createRef(n,!1)}function shallowRef(n){return createRef(n,!0)}function createRef(n,t){return isRef(n)?n:new RefImpl(n,t)}class RefImpl{constructor(t,r){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:toRaw(t),this._value=r?t:toReactive$1(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,i=this.__v_isShallow||isShallow(t)||isReadonly(t);t=i?t:toRaw(t),hasChanged(t,r)&&(this._rawValue=t,this._value=i?t:toReactive$1(t),this.dep.trigger())}}function triggerRef(n){n.dep&&n.dep.trigger()}function unref(n){return isRef(n)?n.value:n}const shallowUnwrapHandlers={get:(n,t,r)=>t==="__v_raw"?n:unref(Reflect.get(n,t,r)),set:(n,t,r,i)=>{const g=n[t];return isRef(g)&&!isRef(r)?(g.value=r,!0):Reflect.set(n,t,r,i)}};function proxyRefs(n){return isReactive(n)?n:new Proxy(n,shallowUnwrapHandlers)}class CustomRefImpl{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Dep,{get:i,set:g}=t(r.track.bind(r),r.trigger.bind(r));this._get=i,this._set=g}get value(){return this._value=this._get()}set value(t){this._set(t)}}function customRef(n){return new CustomRefImpl(n)}function toRefs(n){const t=isArray$5(n)?new Array(n.length):{};for(const r in n)t[r]=propertyToRef(n,r);return t}class ObjectRefImpl{constructor(t,r,i){this._object=t,this._key=r,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._raw=toRaw(t);let g=!0,$=t;if(!isArray$5(t)||!isIntegerKey(String(r)))do g=!isProxy($)||isShallow($);while(g&&($=$.__v_raw));this._shallow=g}get value(){let t=this._object[this._key];return this._shallow&&(t=unref(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&isRef(this._raw[this._key])){const r=this._object[this._key];if(isRef(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return getDepFromReactive(this._raw,this._key)}}class GetterRefImpl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function toRef$1(n,t,r){return isRef(n)?n:isFunction$4(n)?new GetterRefImpl(n):isObject$6(n)&&arguments.length>1?propertyToRef(n,t,r):ref(n)}function propertyToRef(n,t,r){return new ObjectRefImpl(n,t,r)}class ComputedRefImpl{constructor(t,r,i){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this,!0),!0}get value(){const t=this.dep.track();return refreshComputed(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function computed$1(n,t,r=!1){let i,g;return isFunction$4(n)?i=n:(i=n.get,g=n.set),new ComputedRefImpl(i,g,r)}const INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function onWatcherCleanup(n,t=!1,r=activeWatcher){if(r){let i=cleanupMap.get(r);i||cleanupMap.set(r,i=[]),i.push(n)}}function watch$1(n,t,r=EMPTY_OBJ$1){const{immediate:i,deep:g,once:$,scheduler:V,augmentJob:re,call:ie}=r,ae=Ne=>g?Ne:isShallow(Ne)||g===!1||g===0?traverse(Ne,1):traverse(Ne);let oe,le,ue,de,he=!1,pe=!1;if(isRef(n)?(le=()=>n.value,he=isShallow(n)):isReactive(n)?(le=()=>ae(n),he=!0):isArray$5(n)?(pe=!0,he=n.some(Ne=>isReactive(Ne)||isShallow(Ne)),le=()=>n.map(Ne=>{if(isRef(Ne))return Ne.value;if(isReactive(Ne))return ae(Ne);if(isFunction$4(Ne))return ie?ie(Ne,2):Ne()})):isFunction$4(n)?t?le=ie?()=>ie(n,2):n:le=()=>{if(ue){pauseTracking();try{ue()}finally{resetTracking()}}const Ne=activeWatcher;activeWatcher=oe;try{return ie?ie(n,3,[de]):n(de)}finally{activeWatcher=Ne}}:le=NOOP,t&&g){const Ne=le,Oe=g===!0?1/0:g;le=()=>traverse(Ne(),Oe)}const _e=getCurrentScope(),Ce=()=>{oe.stop(),_e&&_e.active&&remove$1(_e.effects,oe)};if($&&t){const Ne=t;t=(...Oe)=>{Ne(...Oe),Ce()}}let xe=pe?new Array(n.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const Ie=Ne=>{if(!(!(oe.flags&1)||!oe.dirty&&!Ne))if(t){const Oe=oe.run();if(g||he||(pe?Oe.some(($e,Ve)=>hasChanged($e,xe[Ve])):hasChanged(Oe,xe))){ue&&ue();const $e=activeWatcher;activeWatcher=oe;try{const Ve=[Oe,xe===INITIAL_WATCHER_VALUE?void 0:pe&&xe[0]===INITIAL_WATCHER_VALUE?[]:xe,de];xe=Oe,ie?ie(t,3,Ve):t(...Ve)}finally{activeWatcher=$e}}}else oe.run()};return re&&re(Ie),oe=new ReactiveEffect(le),oe.scheduler=V?()=>V(Ie,!1):Ie,de=Ne=>onWatcherCleanup(Ne,!1,oe),ue=oe.onStop=()=>{const Ne=cleanupMap.get(oe);if(Ne){if(ie)ie(Ne,4);else for(const Oe of Ne)Oe();cleanupMap.delete(oe)}},t?i?Ie(!0):xe=oe.run():V?V(Ie.bind(null,!0),!0):oe.run(),Ce.pause=oe.pause.bind(oe),Ce.resume=oe.resume.bind(oe),Ce.stop=Ce,Ce}function traverse(n,t=1/0,r){if(t<=0||!isObject$6(n)||n.__v_skip||(r=r||new Map,(r.get(n)||0)>=t))return n;if(r.set(n,t),t--,isRef(n))traverse(n.value,t,r);else if(isArray$5(n))for(let i=0;i{traverse(i,t,r)});else if(isPlainObject$3(n)){for(const i in n)traverse(n[i],t,r);for(const i of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,i)&&traverse(n[i],t,r)}return n}/**
-* @vue/runtime-core v3.5.26
-* (c) 2018-present Yuxi (Evan) You and Vue contributors
-* @license MIT
-**/const stack=[];function pushWarningContext$1(n){stack.push(n)}function popWarningContext$1(){stack.pop()}let isWarning=!1;function warn$1(n,...t){if(isWarning)return;isWarning=!0,pauseTracking();const r=stack.length?stack[stack.length-1].component:null,i=r&&r.appContext.config.warnHandler,g=getComponentTrace();if(i)callWithErrorHandling(i,r,11,[n+t.map($=>{var V,re;return(re=(V=$.toString)==null?void 0:V.call($))!=null?re:JSON.stringify($)}).join(""),r&&r.proxy,g.map(({vnode:$})=>`at <${formatComponentName(r,$.type)}>`).join(`
-`),g]);else{const $=[`[Vue warn]: ${n}`,...t];g.length&&$.push(`
-`,...formatTrace(g)),console.warn(...$)}resetTracking(),isWarning=!1}function getComponentTrace(){let n=stack[stack.length-1];if(!n)return[];const t=[];for(;n;){const r=t[0];r&&r.vnode===n?r.recurseCount++:t.push({vnode:n,recurseCount:0});const i=n.component&&n.component.parent;n=i&&i.vnode}return t}function formatTrace(n){const t=[];return n.forEach((r,i)=>{t.push(...i===0?[]:[`
-`],...formatTraceEntry(r))}),t}function formatTraceEntry({vnode:n,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",i=n.component?n.component.parent==null:!1,g=` at <${formatComponentName(n.component,n.type,i)}`,$=">"+r;return n.props?[g,...formatProps(n.props),$]:[g+$]}function formatProps(n){const t=[],r=Object.keys(n);return r.slice(0,3).forEach(i=>{t.push(...formatProp(i,n[i]))}),r.length>3&&t.push(" ..."),t}function formatProp(n,t,r){return isString$2(t)?(t=JSON.stringify(t),r?t:[`${n}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${n}=${t}`]:isRef(t)?(t=formatProp(n,toRaw(t.value),!0),r?t:[`${n}=Ref<`,t,">"]):isFunction$4(t)?[`${n}=fn${t.name?`<${t.name}>`:""}`]:(t=toRaw(t),r?t:[`${n}=`,t])}function callWithErrorHandling(n,t,r,i){try{return i?n(...i):n()}catch(g){handleError(g,t,r)}}function callWithAsyncErrorHandling(n,t,r,i){if(isFunction$4(n)){const g=callWithErrorHandling(n,t,r,i);return g&&isPromise(g)&&g.catch($=>{handleError($,t,r)}),g}if(isArray$5(n)){const g=[];for(let $=0;$>>1,g=queue[i],$=getId$1(g);$=getId$1(r)?queue.push(n):queue.splice(findInsertionIndex$1(t),0,n),n.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(n){isArray$5(n)?pendingPostFlushCbs.push(...n):activePostFlushCbs&&n.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,n):n.flags&1||(pendingPostFlushCbs.push(n),n.flags|=1),queueFlush()}function flushPreFlushCbs(n,t,r=flushIndex+1){for(;rgetId$1(r)-getId$1(i));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...t);return}for(activePostFlushCbs=t,postFlushIndex=0;postFlushIndexn.id==null?n.flags&2?-1:1/0:n.id;function flushJobs(n){const t=NOOP;try{for(flushIndex=0;flushIndex{i._d&&setBlockTracking(-1);const $=setCurrentRenderingInstance$1(t);let V;try{V=n(...g)}finally{setCurrentRenderingInstance$1($),i._d&&setBlockTracking(1)}return V};return i._n=!0,i._c=!0,i._d=!0,i}function withDirectives(n,t){if(currentRenderingInstance===null)return n;const r=getComponentPublicInstance(currentRenderingInstance),i=n.dirs||(n.dirs=[]);for(let g=0;g1)return r&&isFunction$4(t)?t.call(i&&i.proxy):t}}function hasInjectionContext(){return!!(getCurrentInstance()||currentApp)}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function watchEffect(n,t){return doWatch(n,null,t)}function watch(n,t,r){return doWatch(n,t,r)}function doWatch(n,t,r=EMPTY_OBJ$1){const{immediate:i,deep:g,flush:$,once:V}=r,re=extend$2({},r),ie=t&&i||!t&&$!=="post";let ae;if(isInSSRComponentSetup){if($==="sync"){const de=useSSRContext();ae=de.__watcherHandles||(de.__watcherHandles=[])}else if(!ie){const de=()=>{};return de.stop=NOOP,de.resume=NOOP,de.pause=NOOP,de}}const oe=currentInstance;re.call=(de,he,pe)=>callWithAsyncErrorHandling(de,oe,he,pe);let le=!1;$==="post"?re.scheduler=de=>{queuePostRenderEffect(de,oe&&oe.suspense)}:$!=="sync"&&(le=!0,re.scheduler=(de,he)=>{he?de():queueJob(de)}),re.augmentJob=de=>{t&&(de.flags|=4),le&&(de.flags|=2,oe&&(de.id=oe.uid,de.i=oe))};const ue=watch$1(n,t,re);return isInSSRComponentSetup&&(ae?ae.push(ue):ie&&ue()),ue}function instanceWatch(n,t,r){const i=this.proxy,g=isString$2(n)?n.includes(".")?createPathGetter(i,n):()=>i[n]:n.bind(i,i);let $;isFunction$4(t)?$=t:($=t.handler,r=t);const V=setCurrentInstance(this),re=doWatch(g,$.bind(i),r);return V(),re}function createPathGetter(n,t){const r=t.split(".");return()=>{let i=n;for(let g=0;gn.__isTeleport,isTeleportDisabled=n=>n&&(n.disabled||n.disabled===""),isTeleportDeferred=n=>n&&(n.defer||n.defer===""),isTargetSVG=n=>typeof SVGElement<"u"&&n instanceof SVGElement,isTargetMathML=n=>typeof MathMLElement=="function"&&n instanceof MathMLElement,resolveTarget=(n,t)=>{const r=n&&n.to;return isString$2(r)?t?t(r):null:r},TeleportImpl={name:"Teleport",__isTeleport:!0,process(n,t,r,i,g,$,V,re,ie,ae){const{mc:oe,pc:le,pbc:ue,o:{insert:de,querySelector:he,createText:pe,createComment:_e}}=ae,Ce=isTeleportDisabled(t.props);let{shapeFlag:xe,children:Ie,dynamicChildren:Ne}=t;if(n==null){const Oe=t.el=pe(""),$e=t.anchor=pe("");de(Oe,r,i),de($e,r,i);const Ve=(Fe,ze)=>{xe&16&&oe(Ie,Fe,ze,g,$,V,re,ie)},Ue=()=>{const Fe=t.target=resolveTarget(t.props,he),ze=prepareAnchor(Fe,t,pe,de);Fe&&(V!=="svg"&&isTargetSVG(Fe)?V="svg":V!=="mathml"&&isTargetMathML(Fe)&&(V="mathml"),g&&g.isCE&&(g.ce._teleportTargets||(g.ce._teleportTargets=new Set)).add(Fe),Ce||(Ve(Fe,ze),updateCssVars(t,!1)))};Ce&&(Ve(r,$e),updateCssVars(t,!0)),isTeleportDeferred(t.props)?(t.el.__isMounted=!1,queuePostRenderEffect(()=>{Ue(),delete t.el.__isMounted},$)):Ue()}else{if(isTeleportDeferred(t.props)&&n.el.__isMounted===!1){queuePostRenderEffect(()=>{TeleportImpl.process(n,t,r,i,g,$,V,re,ie,ae)},$);return}t.el=n.el,t.targetStart=n.targetStart;const Oe=t.anchor=n.anchor,$e=t.target=n.target,Ve=t.targetAnchor=n.targetAnchor,Ue=isTeleportDisabled(n.props),Fe=Ue?r:$e,ze=Ue?Oe:Ve;if(V==="svg"||isTargetSVG($e)?V="svg":(V==="mathml"||isTargetMathML($e))&&(V="mathml"),Ne?(ue(n.dynamicChildren,Ne,Fe,g,$,V,re),traverseStaticChildren(n,t,!0)):ie||le(n,t,Fe,ze,g,$,V,re,!1),Ce)Ue?t.props&&n.props&&t.props.to!==n.props.to&&(t.props.to=n.props.to):moveTeleport(t,r,Oe,ae,1);else if((t.props&&t.props.to)!==(n.props&&n.props.to)){const Pt=t.target=resolveTarget(t.props,he);Pt&&moveTeleport(t,Pt,null,ae,0)}else Ue&&moveTeleport(t,$e,Ve,ae,1);updateCssVars(t,Ce)}},remove(n,t,r,{um:i,o:{remove:g}},$){const{shapeFlag:V,children:re,anchor:ie,targetStart:ae,targetAnchor:oe,target:le,props:ue}=n;if(le&&(g(ae),g(oe)),$&&g(ie),V&16){const de=$||!isTeleportDisabled(ue);for(let he=0;he{n.isMounted=!0}),onBeforeUnmount(()=>{n.isUnmounting=!0}),n}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=n=>{const t=n.subTree;return t.component?recursiveGetSubtree(t.component):t},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(n,{slots:t}){const r=getCurrentInstance(),i=useTransitionState();return()=>{const g=t.default&&getTransitionRawChildren(t.default(),!0);if(!g||!g.length)return;const $=findNonCommentChild(g),V=toRaw(n),{mode:re}=V;if(i.isLeaving)return emptyPlaceholder($);const ie=getInnerChild$1($);if(!ie)return emptyPlaceholder($);let ae=resolveTransitionHooks(ie,V,i,r,le=>ae=le);ie.type!==Comment&&setTransitionHooks(ie,ae);let oe=r.subTree&&getInnerChild$1(r.subTree);if(oe&&oe.type!==Comment&&!isSameVNodeType(oe,ie)&&recursiveGetSubtree(r).type!==Comment){let le=resolveTransitionHooks(oe,V,i,r);if(setTransitionHooks(oe,le),re==="out-in"&&ie.type!==Comment)return i.isLeaving=!0,le.afterLeave=()=>{i.isLeaving=!1,r.job.flags&8||r.update(),delete le.afterLeave,oe=void 0},emptyPlaceholder($);re==="in-out"&&ie.type!==Comment?le.delayLeave=(ue,de,he)=>{const pe=getLeavingNodesForType(i,oe);pe[String(oe.key)]=oe,ue[leaveCbKey]=()=>{de(),ue[leaveCbKey]=void 0,delete ae.delayedLeave,oe=void 0},ae.delayedLeave=()=>{he(),delete ae.delayedLeave,oe=void 0}}:oe=void 0}else oe&&(oe=void 0);return $}}};function findNonCommentChild(n){let t=n[0];if(n.length>1){for(const r of n)if(r.type!==Comment){t=r;break}}return t}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(n,t){const{leavingVNodes:r}=n;let i=r.get(t.type);return i||(i=Object.create(null),r.set(t.type,i)),i}function resolveTransitionHooks(n,t,r,i,g){const{appear:$,mode:V,persisted:re=!1,onBeforeEnter:ie,onEnter:ae,onAfterEnter:oe,onEnterCancelled:le,onBeforeLeave:ue,onLeave:de,onAfterLeave:he,onLeaveCancelled:pe,onBeforeAppear:_e,onAppear:Ce,onAfterAppear:xe,onAppearCancelled:Ie}=t,Ne=String(n.key),Oe=getLeavingNodesForType(r,n),$e=(Fe,ze)=>{Fe&&callWithAsyncErrorHandling(Fe,i,9,ze)},Ve=(Fe,ze)=>{const Pt=ze[1];$e(Fe,ze),isArray$5(Fe)?Fe.every(qe=>qe.length<=1)&&Pt():Fe.length<=1&&Pt()},Ue={mode:V,persisted:re,beforeEnter(Fe){let ze=ie;if(!r.isMounted)if($)ze=_e||ie;else return;Fe[leaveCbKey]&&Fe[leaveCbKey](!0);const Pt=Oe[Ne];Pt&&isSameVNodeType(n,Pt)&&Pt.el[leaveCbKey]&&Pt.el[leaveCbKey](),$e(ze,[Fe])},enter(Fe){let ze=ae,Pt=oe,qe=le;if(!r.isMounted)if($)ze=Ce||ae,Pt=xe||oe,qe=Ie||le;else return;let Et=!1;const kt=Fe[enterCbKey$1]=At=>{Et||(Et=!0,At?$e(qe,[Fe]):$e(Pt,[Fe]),Ue.delayedLeave&&Ue.delayedLeave(),Fe[enterCbKey$1]=void 0)};ze?Ve(ze,[Fe,kt]):kt()},leave(Fe,ze){const Pt=String(n.key);if(Fe[enterCbKey$1]&&Fe[enterCbKey$1](!0),r.isUnmounting)return ze();$e(ue,[Fe]);let qe=!1;const Et=Fe[leaveCbKey]=kt=>{qe||(qe=!0,ze(),kt?$e(pe,[Fe]):$e(he,[Fe]),Fe[leaveCbKey]=void 0,Oe[Pt]===n&&delete Oe[Pt])};Oe[Pt]=n,de?Ve(de,[Fe,Et]):Et()},clone(Fe){const ze=resolveTransitionHooks(Fe,t,r,i,g);return g&&g(ze),ze}};return Ue}function emptyPlaceholder(n){if(isKeepAlive(n))return n=cloneVNode(n),n.children=null,n}function getInnerChild$1(n){if(!isKeepAlive(n))return isTeleport(n.type)&&n.children?findNonCommentChild(n.children):n;if(n.component)return n.component.subTree;const{shapeFlag:t,children:r}=n;if(r){if(t&16)return r[0];if(t&32&&isFunction$4(r.default))return r.default()}}function setTransitionHooks(n,t){n.shapeFlag&6&&n.component?(n.transition=t,setTransitionHooks(n.component.subTree,t)):n.shapeFlag&128?(n.ssContent.transition=t.clone(n.ssContent),n.ssFallback.transition=t.clone(n.ssFallback)):n.transition=t}function getTransitionRawChildren(n,t=!1,r){let i=[],g=0;for(let $=0;$1)for(let $=0;$extend$2({name:n.name},t,{setup:n}))():n}function markAsyncBoundary(n){n.ids=[n.ids[0]+n.ids[2]+++"-",0,0]}const pendingSetRefMap=new WeakMap;function setRef(n,t,r,i,g=!1){if(isArray$5(n)){n.forEach((he,pe)=>setRef(he,t&&(isArray$5(t)?t[pe]:t),r,i,g));return}if(isAsyncWrapper(i)&&!g){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&setRef(n,t,r,i.component.subTree);return}const $=i.shapeFlag&4?getComponentPublicInstance(i.component):i.el,V=g?null:$,{i:re,r:ie}=n,ae=t&&t.r,oe=re.refs===EMPTY_OBJ$1?re.refs={}:re.refs,le=re.setupState,ue=toRaw(le),de=le===EMPTY_OBJ$1?NO:he=>hasOwn$1(ue,he);if(ae!=null&&ae!==ie){if(invalidatePendingSetRef(t),isString$2(ae))oe[ae]=null,de(ae)&&(le[ae]=null);else if(isRef(ae)){ae.value=null;const he=t;he.k&&(oe[he.k]=null)}}if(isFunction$4(ie))callWithErrorHandling(ie,re,12,[V,oe]);else{const he=isString$2(ie),pe=isRef(ie);if(he||pe){const _e=()=>{if(n.f){const Ce=he?de(ie)?le[ie]:oe[ie]:ie.value;if(g)isArray$5(Ce)&&remove$1(Ce,$);else if(isArray$5(Ce))Ce.includes($)||Ce.push($);else if(he)oe[ie]=[$],de(ie)&&(le[ie]=oe[ie]);else{const xe=[$];ie.value=xe,n.k&&(oe[n.k]=xe)}}else he?(oe[ie]=V,de(ie)&&(le[ie]=V)):pe&&(ie.value=V,n.k&&(oe[n.k]=V))};if(V){const Ce=()=>{_e(),pendingSetRefMap.delete(n)};Ce.id=-1,pendingSetRefMap.set(n,Ce),queuePostRenderEffect(Ce,r)}else invalidatePendingSetRef(n),_e()}}}function invalidatePendingSetRef(n){const t=pendingSetRefMap.get(n);t&&(t.flags|=8,pendingSetRefMap.delete(n))}getGlobalThis().requestIdleCallback;getGlobalThis().cancelIdleCallback;const isAsyncWrapper=n=>!!n.type.__asyncLoader,isKeepAlive=n=>n.type.__isKeepAlive;function onActivated(n,t){registerKeepAliveHook(n,"a",t)}function onDeactivated(n,t){registerKeepAliveHook(n,"da",t)}function registerKeepAliveHook(n,t,r=currentInstance){const i=n.__wdc||(n.__wdc=()=>{let g=r;for(;g;){if(g.isDeactivated)return;g=g.parent}return n()});if(injectHook(t,i,r),r){let g=r.parent;for(;g&&g.parent;)isKeepAlive(g.parent.vnode)&&injectToKeepAliveRoot(i,t,r,g),g=g.parent}}function injectToKeepAliveRoot(n,t,r,i){const g=injectHook(t,n,i,!0);onUnmounted(()=>{remove$1(i[t],g)},r)}function injectHook(n,t,r=currentInstance,i=!1){if(r){const g=r[n]||(r[n]=[]),$=t.__weh||(t.__weh=(...V)=>{pauseTracking();const re=setCurrentInstance(r),ie=callWithAsyncErrorHandling(t,r,n,V);return re(),resetTracking(),ie});return i?g.unshift($):g.push($),$}}const createHook=n=>(t,r=currentInstance)=>{(!isInSSRComponentSetup||n==="sp")&&injectHook(n,(...i)=>t(...i),r)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(n,t=currentInstance){injectHook("ec",n,t)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(n,t){return resolveAsset(COMPONENTS,n,!0,t)||n}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(n){return isString$2(n)?resolveAsset(COMPONENTS,n,!1)||n:n||NULL_DYNAMIC_COMPONENT}function resolveDirective(n){return resolveAsset(DIRECTIVES,n)}function resolveAsset(n,t,r=!0,i=!1){const g=currentRenderingInstance||currentInstance;if(g){const $=g.type;if(n===COMPONENTS){const re=getComponentName($,!1);if(re&&(re===t||re===camelize(t)||re===capitalize$1(camelize(t))))return $}const V=resolve(g[n]||$[n],t)||resolve(g.appContext[n],t);return!V&&i?$:V}}function resolve(n,t){return n&&(n[t]||n[camelize(t)]||n[capitalize$1(camelize(t))])}function renderList(n,t,r,i){let g;const $=r&&r[i],V=isArray$5(n);if(V||isString$2(n)){const re=V&&isReactive(n);let ie=!1,ae=!1;re&&(ie=!isShallow(n),ae=isReadonly(n),n=shallowReadArray(n)),g=new Array(n.length);for(let oe=0,le=n.length;oet(re,ie,void 0,$&&$[ie]));else{const re=Object.keys(n);g=new Array(re.length);for(let ie=0,ae=re.length;ie{const $=i.fn(...g);return $&&($.key=i.key),$}:i.fn)}return n}function renderSlot(n,t,r={},i,g){if(currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.ce){const ae=Object.keys(r).length>0;return t!=="default"&&(r.name=t),openBlock(),createBlock(Fragment,null,[createVNode$1("slot",r,i&&i())],ae?-2:64)}let $=n[t];$&&$._c&&($._d=!1),openBlock();const V=$&&ensureValidVNode$1($(r)),re=r.key||V&&V.key,ie=createBlock(Fragment,{key:(re&&!isSymbol$1(re)?re:`_${t}`)+(!V&&i?"_fb":"")},V||(i?i():[]),V&&n._===1?64:-2);return!g&&ie.scopeId&&(ie.slotScopeIds=[ie.scopeId+"-s"]),$&&$._c&&($._d=!0),ie}function ensureValidVNode$1(n){return n.some(t=>isVNode(t)?!(t.type===Comment||t.type===Fragment&&!ensureValidVNode$1(t.children)):!0)?n:null}function toHandlers(n,t){const r={};for(const i in n)r[t&&/[A-Z]/.test(i)?`on:${i}`:toHandlerKey(i)]=n[i];return r}const getPublicInstance=n=>n?isStatefulComponent(n)?getComponentPublicInstance(n):getPublicInstance(n.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>getPublicInstance(n.parent),$root:n=>getPublicInstance(n.root),$host:n=>n.ce,$emit:n=>n.emit,$options:n=>resolveMergedOptions(n),$forceUpdate:n=>n.f||(n.f=()=>{queueJob(n.update)}),$nextTick:n=>n.n||(n.n=nextTick.bind(n.proxy)),$watch:n=>instanceWatch.bind(n)}),hasSetupBinding=(n,t)=>n!==EMPTY_OBJ$1&&!n.__isScriptSetup&&hasOwn$1(n,t),PublicInstanceProxyHandlers={get({_:n},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:i,data:g,props:$,accessCache:V,type:re,appContext:ie}=n;if(t[0]!=="$"){const ue=V[t];if(ue!==void 0)switch(ue){case 1:return i[t];case 2:return g[t];case 4:return r[t];case 3:return $[t]}else{if(hasSetupBinding(i,t))return V[t]=1,i[t];if(g!==EMPTY_OBJ$1&&hasOwn$1(g,t))return V[t]=2,g[t];if(hasOwn$1($,t))return V[t]=3,$[t];if(r!==EMPTY_OBJ$1&&hasOwn$1(r,t))return V[t]=4,r[t];shouldCacheAccess&&(V[t]=0)}}const ae=publicPropertiesMap[t];let oe,le;if(ae)return t==="$attrs"&&track(n.attrs,"get",""),ae(n);if((oe=re.__cssModules)&&(oe=oe[t]))return oe;if(r!==EMPTY_OBJ$1&&hasOwn$1(r,t))return V[t]=4,r[t];if(le=ie.config.globalProperties,hasOwn$1(le,t))return le[t]},set({_:n},t,r){const{data:i,setupState:g,ctx:$}=n;return hasSetupBinding(g,t)?(g[t]=r,!0):i!==EMPTY_OBJ$1&&hasOwn$1(i,t)?(i[t]=r,!0):hasOwn$1(n.props,t)||t[0]==="$"&&t.slice(1)in n?!1:($[t]=r,!0)},has({_:{data:n,setupState:t,accessCache:r,ctx:i,appContext:g,props:$,type:V}},re){let ie;return!!(r[re]||n!==EMPTY_OBJ$1&&re[0]!=="$"&&hasOwn$1(n,re)||hasSetupBinding(t,re)||hasOwn$1($,re)||hasOwn$1(i,re)||hasOwn$1(publicPropertiesMap,re)||hasOwn$1(g.config.globalProperties,re)||(ie=V.__cssModules)&&ie[re])},defineProperty(n,t,r){return r.get!=null?n._.accessCache[t]=0:hasOwn$1(r,"value")&&this.set(n,t,r.value,null),Reflect.defineProperty(n,t,r)}};function useSlots(){return getContext().slots}function useAttrs$1(){return getContext().attrs}function getContext(n){const t=getCurrentInstance();return t.setupContext||(t.setupContext=createSetupContext(t))}function normalizePropsOrEmits(n){return isArray$5(n)?n.reduce((t,r)=>(t[r]=null,t),{}):n}let shouldCacheAccess=!0;function applyOptions(n){const t=resolveMergedOptions(n),r=n.proxy,i=n.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook$1(t.beforeCreate,n,"bc");const{data:g,computed:$,methods:V,watch:re,provide:ie,inject:ae,created:oe,beforeMount:le,mounted:ue,beforeUpdate:de,updated:he,activated:pe,deactivated:_e,beforeDestroy:Ce,beforeUnmount:xe,destroyed:Ie,unmounted:Ne,render:Oe,renderTracked:$e,renderTriggered:Ve,errorCaptured:Ue,serverPrefetch:Fe,expose:ze,inheritAttrs:Pt,components:qe,directives:Et,filters:kt}=t;if(ae&&resolveInjections(ae,i,null),V)for(const Lt in V){const jt=V[Lt];isFunction$4(jt)&&(i[Lt]=jt.bind(r))}if(g){const Lt=g.call(r,r);isObject$6(Lt)&&(n.data=reactive(Lt))}if(shouldCacheAccess=!0,$)for(const Lt in $){const jt=$[Lt],hn=isFunction$4(jt)?jt.bind(r,r):isFunction$4(jt.get)?jt.get.bind(r,r):NOOP,vn=!isFunction$4(jt)&&isFunction$4(jt.set)?jt.set.bind(r):NOOP,_n=computed({get:hn,set:vn});Object.defineProperty(i,Lt,{enumerable:!0,configurable:!0,get:()=>_n.value,set:wn=>_n.value=wn})}if(re)for(const Lt in re)createWatcher(re[Lt],i,r,Lt);if(ie){const Lt=isFunction$4(ie)?ie.call(r):ie;Reflect.ownKeys(Lt).forEach(jt=>{provide(jt,Lt[jt])})}oe&&callHook$1(oe,n,"c");function Dt(Lt,jt){isArray$5(jt)?jt.forEach(hn=>Lt(hn.bind(r))):jt&&Lt(jt.bind(r))}if(Dt(onBeforeMount,le),Dt(onMounted,ue),Dt(onBeforeUpdate,de),Dt(onUpdated,he),Dt(onActivated,pe),Dt(onDeactivated,_e),Dt(onErrorCaptured,Ue),Dt(onRenderTracked,$e),Dt(onRenderTriggered,Ve),Dt(onBeforeUnmount,xe),Dt(onUnmounted,Ne),Dt(onServerPrefetch,Fe),isArray$5(ze))if(ze.length){const Lt=n.exposed||(n.exposed={});ze.forEach(jt=>{Object.defineProperty(Lt,jt,{get:()=>r[jt],set:hn=>r[jt]=hn,enumerable:!0})})}else n.exposed||(n.exposed={});Oe&&n.render===NOOP&&(n.render=Oe),Pt!=null&&(n.inheritAttrs=Pt),qe&&(n.components=qe),Et&&(n.directives=Et),Fe&&markAsyncBoundary(n)}function resolveInjections(n,t,r=NOOP){isArray$5(n)&&(n=normalizeInject(n));for(const i in n){const g=n[i];let $;isObject$6(g)?"default"in g?$=inject(g.from||i,g.default,!0):$=inject(g.from||i):$=inject(g),isRef($)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>$.value,set:V=>$.value=V}):t[i]=$}}function callHook$1(n,t,r){callWithAsyncErrorHandling(isArray$5(n)?n.map(i=>i.bind(t.proxy)):n.bind(t.proxy),t,r)}function createWatcher(n,t,r,i){let g=i.includes(".")?createPathGetter(r,i):()=>r[i];if(isString$2(n)){const $=t[n];isFunction$4($)&&watch(g,$)}else if(isFunction$4(n))watch(g,n.bind(r));else if(isObject$6(n))if(isArray$5(n))n.forEach($=>createWatcher($,t,r,i));else{const $=isFunction$4(n.handler)?n.handler.bind(r):t[n.handler];isFunction$4($)&&watch(g,$,n)}}function resolveMergedOptions(n){const t=n.type,{mixins:r,extends:i}=t,{mixins:g,optionsCache:$,config:{optionMergeStrategies:V}}=n.appContext,re=$.get(t);let ie;return re?ie=re:!g.length&&!r&&!i?ie=t:(ie={},g.length&&g.forEach(ae=>mergeOptions$2(ie,ae,V,!0)),mergeOptions$2(ie,t,V)),isObject$6(t)&&$.set(t,ie),ie}function mergeOptions$2(n,t,r,i=!1){const{mixins:g,extends:$}=t;$&&mergeOptions$2(n,$,r,!0),g&&g.forEach(V=>mergeOptions$2(n,V,r,!0));for(const V in t)if(!(i&&V==="expose")){const re=internalOptionMergeStrats[V]||r&&r[V];n[V]=re?re(n[V],t[V]):t[V]}return n}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(n,t){return t?n?function(){return extend$2(isFunction$4(n)?n.call(this,this):n,isFunction$4(t)?t.call(this,this):t)}:t:n}function mergeInject(n,t){return mergeObjectOptions(normalizeInject(n),normalizeInject(t))}function normalizeInject(n){if(isArray$5(n)){const t={};for(let r=0;rt==="modelValue"||t==="model-value"?n.modelModifiers:n[`${t}Modifiers`]||n[`${camelize(t)}Modifiers`]||n[`${hyphenate(t)}Modifiers`];function emit(n,t,...r){if(n.isUnmounted)return;const i=n.vnode.props||EMPTY_OBJ$1;let g=r;const $=t.startsWith("update:"),V=$&&getModelModifiers(i,t.slice(7));V&&(V.trim&&(g=r.map(oe=>isString$2(oe)?oe.trim():oe)),V.number&&(g=r.map(looseToNumber$1)));let re,ie=i[re=toHandlerKey(t)]||i[re=toHandlerKey(camelize(t))];!ie&&$&&(ie=i[re=toHandlerKey(hyphenate(t))]),ie&&callWithAsyncErrorHandling(ie,n,6,g);const ae=i[re+"Once"];if(ae){if(!n.emitted)n.emitted={};else if(n.emitted[re])return;n.emitted[re]=!0,callWithAsyncErrorHandling(ae,n,6,g)}}const mixinEmitsCache=new WeakMap;function normalizeEmitsOptions(n,t,r=!1){const i=r?mixinEmitsCache:t.emitsCache,g=i.get(n);if(g!==void 0)return g;const $=n.emits;let V={},re=!1;if(!isFunction$4(n)){const ie=ae=>{const oe=normalizeEmitsOptions(ae,t,!0);oe&&(re=!0,extend$2(V,oe))};!r&&t.mixins.length&&t.mixins.forEach(ie),n.extends&&ie(n.extends),n.mixins&&n.mixins.forEach(ie)}return!$&&!re?(isObject$6(n)&&i.set(n,null),null):(isArray$5($)?$.forEach(ie=>V[ie]=null):extend$2(V,$),isObject$6(n)&&i.set(n,V),V)}function isEmitListener(n,t){return!n||!isOn(t)?!1:(t=t.slice(2).replace(/Once$/,""),hasOwn$1(n,t[0].toLowerCase()+t.slice(1))||hasOwn$1(n,hyphenate(t))||hasOwn$1(n,t))}function markAttrsAccessed(){}function renderComponentRoot$1(n){const{type:t,vnode:r,proxy:i,withProxy:g,propsOptions:[$],slots:V,attrs:re,emit:ie,render:ae,renderCache:oe,props:le,data:ue,setupState:de,ctx:he,inheritAttrs:pe}=n,_e=setCurrentRenderingInstance$1(n);let Ce,xe;try{if(r.shapeFlag&4){const Ne=g||i,Oe=Ne;Ce=normalizeVNode$1(ae.call(Oe,Ne,oe,le,de,ue,he)),xe=re}else{const Ne=t;Ce=normalizeVNode$1(Ne.length>1?Ne(le,{attrs:re,slots:V,emit:ie}):Ne(le,null)),xe=t.props?re:getFunctionalFallthrough(re)}}catch(Ne){blockStack.length=0,handleError(Ne,n,1),Ce=createVNode$1(Comment)}let Ie=Ce;if(xe&&pe!==!1){const Ne=Object.keys(xe),{shapeFlag:Oe}=Ie;Ne.length&&Oe&7&&($&&Ne.some(isModelListener)&&(xe=filterModelListeners(xe,$)),Ie=cloneVNode(Ie,xe,!1,!0))}return r.dirs&&(Ie=cloneVNode(Ie,null,!1,!0),Ie.dirs=Ie.dirs?Ie.dirs.concat(r.dirs):r.dirs),r.transition&&setTransitionHooks(Ie,r.transition),Ce=Ie,setCurrentRenderingInstance$1(_e),Ce}const getFunctionalFallthrough=n=>{let t;for(const r in n)(r==="class"||r==="style"||isOn(r))&&((t||(t={}))[r]=n[r]);return t},filterModelListeners=(n,t)=>{const r={};for(const i in n)(!isModelListener(i)||!(i.slice(9)in t))&&(r[i]=n[i]);return r};function shouldUpdateComponent(n,t,r){const{props:i,children:g,component:$}=n,{props:V,children:re,patchFlag:ie}=t,ae=$.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&ie>=0){if(ie&1024)return!0;if(ie&16)return i?hasPropsChanged(i,V,ae):!!V;if(ie&8){const oe=t.dynamicProps;for(let le=0;leObject.create(internalObjectProto),isInternalObject=n=>Object.getPrototypeOf(n)===internalObjectProto;function initProps$1(n,t,r,i=!1){const g={},$=createInternalObject();n.propsDefaults=Object.create(null),setFullProps(n,t,g,$);for(const V in n.propsOptions[0])V in g||(g[V]=void 0);r?n.props=i?g:shallowReactive(g):n.type.props?n.props=g:n.props=$,n.attrs=$}function updateProps$2(n,t,r,i){const{props:g,attrs:$,vnode:{patchFlag:V}}=n,re=toRaw(g),[ie]=n.propsOptions;let ae=!1;if((i||V>0)&&!(V&16)){if(V&8){const oe=n.vnode.dynamicProps;for(let le=0;le{ie=!0;const[ue,de]=normalizePropsOptions(le,t,!0);extend$2(V,ue),de&&re.push(...de)};!r&&t.mixins.length&&t.mixins.forEach(oe),n.extends&&oe(n.extends),n.mixins&&n.mixins.forEach(oe)}if(!$&&!ie)return isObject$6(n)&&i.set(n,EMPTY_ARR),EMPTY_ARR;if(isArray$5($))for(let oe=0;oe<$.length;oe++){const le=camelize($[oe]);validatePropName(le)&&(V[le]=EMPTY_OBJ$1)}else if($)for(const oe in $){const le=camelize(oe);if(validatePropName(le)){const ue=$[oe],de=V[le]=isArray$5(ue)||isFunction$4(ue)?{type:ue}:extend$2({},ue),he=de.type;let pe=!1,_e=!0;if(isArray$5(he))for(let Ce=0;Cen==="_"||n==="_ctx"||n==="$stable",normalizeSlotValue=n=>isArray$5(n)?n.map(normalizeVNode$1):[normalizeVNode$1(n)],normalizeSlot$1=(n,t,r)=>{if(t._n)return t;const i=withCtx((...g)=>normalizeSlotValue(t(...g)),r);return i._c=!1,i},normalizeObjectSlots=(n,t,r)=>{const i=n._ctx;for(const g in n){if(isInternalKey(g))continue;const $=n[g];if(isFunction$4($))t[g]=normalizeSlot$1(g,$,i);else if($!=null){const V=normalizeSlotValue($);t[g]=()=>V}}},normalizeVNodeSlots=(n,t)=>{const r=normalizeSlotValue(t);n.slots.default=()=>r},assignSlots=(n,t,r)=>{for(const i in t)(r||!isInternalKey(i))&&(n[i]=t[i])},initSlots=(n,t,r)=>{const i=n.slots=createInternalObject();if(n.vnode.shapeFlag&32){const g=t._;g?(assignSlots(i,t,r),r&&def(i,"_",g,!0)):normalizeObjectSlots(t,i)}else t&&normalizeVNodeSlots(n,t)},updateSlots=(n,t,r)=>{const{vnode:i,slots:g}=n;let $=!0,V=EMPTY_OBJ$1;if(i.shapeFlag&32){const re=t._;re?r&&re===1?$=!1:assignSlots(g,t,r):($=!t.$stable,normalizeObjectSlots(t,g)),V=t}else t&&(normalizeVNodeSlots(n,t),V={default:1});if($)for(const re in g)!isInternalKey(re)&&V[re]==null&&delete g[re]},queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(n){return baseCreateRenderer(n)}function baseCreateRenderer(n,t){const r=getGlobalThis();r.__VUE__=!0;const{insert:i,remove:g,patchProp:$,createElement:V,createText:re,createComment:ie,setText:ae,setElementText:oe,parentNode:le,nextSibling:ue,setScopeId:de=NOOP,insertStaticContent:he}=n,pe=(Nn,Pn,On,Hn=null,Xn=null,In=null,or=void 0,Qn=null,Zn=!!Pn.dynamicChildren)=>{if(Nn===Pn)return;Nn&&!isSameVNodeType(Nn,Pn)&&(Hn=En(Nn),wn(Nn,Xn,In,!0),Nn=null),Pn.patchFlag===-2&&(Zn=!1,Pn.dynamicChildren=null);const{type:Gn,ref:Rn,shapeFlag:Mn}=Pn;switch(Gn){case Text$1:_e(Nn,Pn,On,Hn);break;case Comment:Ce(Nn,Pn,On,Hn);break;case Static:Nn==null&&xe(Pn,On,Hn,or);break;case Fragment:qe(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn);break;default:Mn&1?Oe(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn):Mn&6?Et(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn):(Mn&64||Mn&128)&&Gn.process(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn,An)}Rn!=null&&Xn?setRef(Rn,Nn&&Nn.ref,In,Pn||Nn,!Pn):Rn==null&&Nn&&Nn.ref!=null&&setRef(Nn.ref,null,In,Nn,!0)},_e=(Nn,Pn,On,Hn)=>{if(Nn==null)i(Pn.el=re(Pn.children),On,Hn);else{const Xn=Pn.el=Nn.el;Pn.children!==Nn.children&&ae(Xn,Pn.children)}},Ce=(Nn,Pn,On,Hn)=>{Nn==null?i(Pn.el=ie(Pn.children||""),On,Hn):Pn.el=Nn.el},xe=(Nn,Pn,On,Hn)=>{[Nn.el,Nn.anchor]=he(Nn.children,Pn,On,Hn,Nn.el,Nn.anchor)},Ie=({el:Nn,anchor:Pn},On,Hn)=>{let Xn;for(;Nn&&Nn!==Pn;)Xn=ue(Nn),i(Nn,On,Hn),Nn=Xn;i(Pn,On,Hn)},Ne=({el:Nn,anchor:Pn})=>{let On;for(;Nn&&Nn!==Pn;)On=ue(Nn),g(Nn),Nn=On;g(Pn)},Oe=(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn)=>{if(Pn.type==="svg"?or="svg":Pn.type==="math"&&(or="mathml"),Nn==null)$e(Pn,On,Hn,Xn,In,or,Qn,Zn);else{const Gn=Nn.el&&Nn.el._isVueCE?Nn.el:null;try{Gn&&Gn._beginPatch(),Fe(Nn,Pn,Xn,In,or,Qn,Zn)}finally{Gn&&Gn._endPatch()}}},$e=(Nn,Pn,On,Hn,Xn,In,or,Qn)=>{let Zn,Gn;const{props:Rn,shapeFlag:Mn,transition:Bn,dirs:qn}=Nn;if(Zn=Nn.el=V(Nn.type,In,Rn&&Rn.is,Rn),Mn&8?oe(Zn,Nn.children):Mn&16&&Ue(Nn.children,Zn,null,Hn,Xn,resolveChildrenNamespace(Nn,In),or,Qn),qn&&invokeDirectiveHook(Nn,null,Hn,"created"),Ve(Zn,Nn,Nn.scopeId,or,Hn),Rn){for(const jn in Rn)jn!=="value"&&!isReservedProp(jn)&&$(Zn,jn,null,Rn[jn],In,Hn);"value"in Rn&&$(Zn,"value",null,Rn.value,In),(Gn=Rn.onVnodeBeforeMount)&&invokeVNodeHook(Gn,Hn,Nn)}qn&&invokeDirectiveHook(Nn,null,Hn,"beforeMount");const zn=needTransition(Xn,Bn);zn&&Bn.beforeEnter(Zn),i(Zn,Pn,On),((Gn=Rn&&Rn.onVnodeMounted)||zn||qn)&&queuePostRenderEffect(()=>{Gn&&invokeVNodeHook(Gn,Hn,Nn),zn&&Bn.enter(Zn),qn&&invokeDirectiveHook(Nn,null,Hn,"mounted")},Xn)},Ve=(Nn,Pn,On,Hn,Xn)=>{if(On&&de(Nn,On),Hn)for(let In=0;In{for(let Gn=Zn;Gn{const Qn=Pn.el=Nn.el;let{patchFlag:Zn,dynamicChildren:Gn,dirs:Rn}=Pn;Zn|=Nn.patchFlag&16;const Mn=Nn.props||EMPTY_OBJ$1,Bn=Pn.props||EMPTY_OBJ$1;let qn;if(On&&toggleRecurse(On,!1),(qn=Bn.onVnodeBeforeUpdate)&&invokeVNodeHook(qn,On,Pn,Nn),Rn&&invokeDirectiveHook(Pn,Nn,On,"beforeUpdate"),On&&toggleRecurse(On,!0),(Mn.innerHTML&&Bn.innerHTML==null||Mn.textContent&&Bn.textContent==null)&&oe(Qn,""),Gn?ze(Nn.dynamicChildren,Gn,Qn,On,Hn,resolveChildrenNamespace(Pn,Xn),In):or||jt(Nn,Pn,Qn,null,On,Hn,resolveChildrenNamespace(Pn,Xn),In,!1),Zn>0){if(Zn&16)Pt(Qn,Mn,Bn,On,Xn);else if(Zn&2&&Mn.class!==Bn.class&&$(Qn,"class",null,Bn.class,Xn),Zn&4&&$(Qn,"style",Mn.style,Bn.style,Xn),Zn&8){const zn=Pn.dynamicProps;for(let jn=0;jn{qn&&invokeVNodeHook(qn,On,Pn,Nn),Rn&&invokeDirectiveHook(Pn,Nn,On,"updated")},Hn)},ze=(Nn,Pn,On,Hn,Xn,In,or)=>{for(let Qn=0;Qn{if(Pn!==On){if(Pn!==EMPTY_OBJ$1)for(const In in Pn)!isReservedProp(In)&&!(In in On)&&$(Nn,In,Pn[In],null,Xn,Hn);for(const In in On){if(isReservedProp(In))continue;const or=On[In],Qn=Pn[In];or!==Qn&&In!=="value"&&$(Nn,In,Qn,or,Xn,Hn)}"value"in On&&$(Nn,"value",Pn.value,On.value,Xn)}},qe=(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn)=>{const Gn=Pn.el=Nn?Nn.el:re(""),Rn=Pn.anchor=Nn?Nn.anchor:re("");let{patchFlag:Mn,dynamicChildren:Bn,slotScopeIds:qn}=Pn;qn&&(Qn=Qn?Qn.concat(qn):qn),Nn==null?(i(Gn,On,Hn),i(Rn,On,Hn),Ue(Pn.children||[],On,Rn,Xn,In,or,Qn,Zn)):Mn>0&&Mn&64&&Bn&&Nn.dynamicChildren&&Nn.dynamicChildren.length===Bn.length?(ze(Nn.dynamicChildren,Bn,On,Xn,In,or,Qn),(Pn.key!=null||Xn&&Pn===Xn.subTree)&&traverseStaticChildren(Nn,Pn,!0)):jt(Nn,Pn,On,Rn,Xn,In,or,Qn,Zn)},Et=(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn)=>{Pn.slotScopeIds=Qn,Nn==null?Pn.shapeFlag&512?Xn.ctx.activate(Pn,On,Hn,or,Zn):kt(Pn,On,Hn,Xn,In,or,Zn):At(Nn,Pn,Zn)},kt=(Nn,Pn,On,Hn,Xn,In,or)=>{const Qn=Nn.component=createComponentInstance$1(Nn,Hn,Xn);if(isKeepAlive(Nn)&&(Qn.ctx.renderer=An),setupComponent$1(Qn,!1,or),Qn.asyncDep){if(Xn&&Xn.registerDep(Qn,Dt,or),!Nn.el){const Zn=Qn.subTree=createVNode$1(Comment);Ce(null,Zn,Pn,On),Nn.placeholder=Zn.el}}else Dt(Qn,Nn,Pn,On,Xn,In,or)},At=(Nn,Pn,On)=>{const Hn=Pn.component=Nn.component;if(shouldUpdateComponent(Nn,Pn,On))if(Hn.asyncDep&&!Hn.asyncResolved){Lt(Hn,Pn,On);return}else Hn.next=Pn,Hn.update();else Pn.el=Nn.el,Hn.vnode=Pn},Dt=(Nn,Pn,On,Hn,Xn,In,or)=>{const Qn=()=>{if(Nn.isMounted){let{next:Mn,bu:Bn,u:qn,parent:zn,vnode:jn}=Nn;{const rr=locateNonHydratedAsyncRoot(Nn);if(rr){Mn&&(Mn.el=jn.el,Lt(Nn,Mn,or)),rr.asyncDep.then(()=>{Nn.isUnmounted||Qn()});return}}let tr=Mn,hr;toggleRecurse(Nn,!1),Mn?(Mn.el=jn.el,Lt(Nn,Mn,or)):Mn=jn,Bn&&invokeArrayFns(Bn),(hr=Mn.props&&Mn.props.onVnodeBeforeUpdate)&&invokeVNodeHook(hr,zn,Mn,jn),toggleRecurse(Nn,!0);const ir=renderComponentRoot$1(Nn),pr=Nn.subTree;Nn.subTree=ir,pe(pr,ir,le(pr.el),En(pr),Nn,Xn,In),Mn.el=ir.el,tr===null&&updateHOCHostEl(Nn,ir.el),qn&&queuePostRenderEffect(qn,Xn),(hr=Mn.props&&Mn.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(hr,zn,Mn,jn),Xn)}else{let Mn;const{el:Bn,props:qn}=Pn,{bm:zn,m:jn,parent:tr,root:hr,type:ir}=Nn,pr=isAsyncWrapper(Pn);if(toggleRecurse(Nn,!1),zn&&invokeArrayFns(zn),!pr&&(Mn=qn&&qn.onVnodeBeforeMount)&&invokeVNodeHook(Mn,tr,Pn),toggleRecurse(Nn,!0),Bn&&Ln){const rr=()=>{Nn.subTree=renderComponentRoot$1(Nn),Ln(Bn,Nn.subTree,Nn,Xn,null)};pr&&ir.__asyncHydrate?ir.__asyncHydrate(Bn,Nn,rr):rr()}else{hr.ce&&hr.ce._def.shadowRoot!==!1&&hr.ce._injectChildStyle(ir);const rr=Nn.subTree=renderComponentRoot$1(Nn);pe(null,rr,On,Hn,Nn,Xn,In),Pn.el=rr.el}if(jn&&queuePostRenderEffect(jn,Xn),!pr&&(Mn=qn&&qn.onVnodeMounted)){const rr=Pn;queuePostRenderEffect(()=>invokeVNodeHook(Mn,tr,rr),Xn)}(Pn.shapeFlag&256||tr&&isAsyncWrapper(tr.vnode)&&tr.vnode.shapeFlag&256)&&Nn.a&&queuePostRenderEffect(Nn.a,Xn),Nn.isMounted=!0,Pn=On=Hn=null}};Nn.scope.on();const Zn=Nn.effect=new ReactiveEffect(Qn);Nn.scope.off();const Gn=Nn.update=Zn.run.bind(Zn),Rn=Nn.job=Zn.runIfDirty.bind(Zn);Rn.i=Nn,Rn.id=Nn.uid,Zn.scheduler=()=>queueJob(Rn),toggleRecurse(Nn,!0),Gn()},Lt=(Nn,Pn,On)=>{Pn.component=Nn;const Hn=Nn.vnode.props;Nn.vnode=Pn,Nn.next=null,updateProps$2(Nn,Pn.props,Hn,On),updateSlots(Nn,Pn.children,On),pauseTracking(),flushPreFlushCbs(Nn),resetTracking()},jt=(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn=!1)=>{const Gn=Nn&&Nn.children,Rn=Nn?Nn.shapeFlag:0,Mn=Pn.children,{patchFlag:Bn,shapeFlag:qn}=Pn;if(Bn>0){if(Bn&128){vn(Gn,Mn,On,Hn,Xn,In,or,Qn,Zn);return}else if(Bn&256){hn(Gn,Mn,On,Hn,Xn,In,or,Qn,Zn);return}}qn&8?(Rn&16&&Tn(Gn,Xn,In),Mn!==Gn&&oe(On,Mn)):Rn&16?qn&16?vn(Gn,Mn,On,Hn,Xn,In,or,Qn,Zn):Tn(Gn,Xn,In,!0):(Rn&8&&oe(On,""),qn&16&&Ue(Mn,On,Hn,Xn,In,or,Qn,Zn))},hn=(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn)=>{Nn=Nn||EMPTY_ARR,Pn=Pn||EMPTY_ARR;const Gn=Nn.length,Rn=Pn.length,Mn=Math.min(Gn,Rn);let Bn;for(Bn=0;BnRn?Tn(Nn,Xn,In,!0,!1,Mn):Ue(Pn,On,Hn,Xn,In,or,Qn,Zn,Mn)},vn=(Nn,Pn,On,Hn,Xn,In,or,Qn,Zn)=>{let Gn=0;const Rn=Pn.length;let Mn=Nn.length-1,Bn=Rn-1;for(;Gn<=Mn&&Gn<=Bn;){const qn=Nn[Gn],zn=Pn[Gn]=Zn?cloneIfMounted(Pn[Gn]):normalizeVNode$1(Pn[Gn]);if(isSameVNodeType(qn,zn))pe(qn,zn,On,null,Xn,In,or,Qn,Zn);else break;Gn++}for(;Gn<=Mn&&Gn<=Bn;){const qn=Nn[Mn],zn=Pn[Bn]=Zn?cloneIfMounted(Pn[Bn]):normalizeVNode$1(Pn[Bn]);if(isSameVNodeType(qn,zn))pe(qn,zn,On,null,Xn,In,or,Qn,Zn);else break;Mn--,Bn--}if(Gn>Mn){if(Gn<=Bn){const qn=Bn+1,zn=qnBn)for(;Gn<=Mn;)wn(Nn[Gn],Xn,In,!0),Gn++;else{const qn=Gn,zn=Gn,jn=new Map;for(Gn=zn;Gn<=Bn;Gn++){const er=Pn[Gn]=Zn?cloneIfMounted(Pn[Gn]):normalizeVNode$1(Pn[Gn]);er.key!=null&&jn.set(er.key,Gn)}let tr,hr=0;const ir=Bn-zn+1;let pr=!1,rr=0;const lr=new Array(ir);for(Gn=0;Gn=ir){wn(er,Xn,In,!0);continue}let Fn;if(er.key!=null)Fn=jn.get(er.key);else for(tr=zn;tr<=Bn;tr++)if(lr[tr-zn]===0&&isSameVNodeType(er,Pn[tr])){Fn=tr;break}Fn===void 0?wn(er,Xn,In,!0):(lr[Fn-zn]=Gn+1,Fn>=rr?rr=Fn:pr=!0,pe(er,Pn[Fn],On,null,Xn,In,or,Qn,Zn),hr++)}const Yn=pr?getSequence(lr):EMPTY_ARR;for(tr=Yn.length-1,Gn=ir-1;Gn>=0;Gn--){const er=zn+Gn,Fn=Pn[er],cr=Pn[er+1],Un=er+1{const{el:In,type:or,transition:Qn,children:Zn,shapeFlag:Gn}=Nn;if(Gn&6){_n(Nn.component.subTree,Pn,On,Hn);return}if(Gn&128){Nn.suspense.move(Pn,On,Hn);return}if(Gn&64){or.move(Nn,Pn,On,An);return}if(or===Fragment){i(In,Pn,On);for(let Mn=0;MnQn.enter(In),Xn);else{const{leave:Mn,delayLeave:Bn,afterLeave:qn}=Qn,zn=()=>{Nn.ctx.isUnmounted?g(In):i(In,Pn,On)},jn=()=>{In._isLeaving&&In[leaveCbKey](!0),Mn(In,()=>{zn(),qn&&qn()})};Bn?Bn(In,zn,jn):jn()}else i(In,Pn,On)},wn=(Nn,Pn,On,Hn=!1,Xn=!1)=>{const{type:In,props:or,ref:Qn,children:Zn,dynamicChildren:Gn,shapeFlag:Rn,patchFlag:Mn,dirs:Bn,cacheIndex:qn}=Nn;if(Mn===-2&&(Xn=!1),Qn!=null&&(pauseTracking(),setRef(Qn,null,On,Nn,!0),resetTracking()),qn!=null&&(Pn.renderCache[qn]=void 0),Rn&256){Pn.ctx.deactivate(Nn);return}const zn=Rn&1&&Bn,jn=!isAsyncWrapper(Nn);let tr;if(jn&&(tr=or&&or.onVnodeBeforeUnmount)&&invokeVNodeHook(tr,Pn,Nn),Rn&6)Sn(Nn.component,On,Hn);else{if(Rn&128){Nn.suspense.unmount(On,Hn);return}zn&&invokeDirectiveHook(Nn,null,Pn,"beforeUnmount"),Rn&64?Nn.type.remove(Nn,Pn,On,An,Hn):Gn&&!Gn.hasOnce&&(In!==Fragment||Mn>0&&Mn&64)?Tn(Gn,Pn,On,!1,!0):(In===Fragment&&Mn&384||!Xn&&Rn&16)&&Tn(Zn,Pn,On),Hn&&bn(Nn)}(jn&&(tr=or&&or.onVnodeUnmounted)||zn)&&queuePostRenderEffect(()=>{tr&&invokeVNodeHook(tr,Pn,Nn),zn&&invokeDirectiveHook(Nn,null,Pn,"unmounted")},On)},bn=Nn=>{const{type:Pn,el:On,anchor:Hn,transition:Xn}=Nn;if(Pn===Fragment){Cn(On,Hn);return}if(Pn===Static){Ne(Nn);return}const In=()=>{g(On),Xn&&!Xn.persisted&&Xn.afterLeave&&Xn.afterLeave()};if(Nn.shapeFlag&1&&Xn&&!Xn.persisted){const{leave:or,delayLeave:Qn}=Xn,Zn=()=>or(On,In);Qn?Qn(Nn.el,In,Zn):Zn()}else In()},Cn=(Nn,Pn)=>{let On;for(;Nn!==Pn;)On=ue(Nn),g(Nn),Nn=On;g(Pn)},Sn=(Nn,Pn,On)=>{const{bum:Hn,scope:Xn,job:In,subTree:or,um:Qn,m:Zn,a:Gn}=Nn;invalidateMount(Zn),invalidateMount(Gn),Hn&&invokeArrayFns(Hn),Xn.stop(),In&&(In.flags|=8,wn(or,Nn,Pn,On)),Qn&&queuePostRenderEffect(Qn,Pn),queuePostRenderEffect(()=>{Nn.isUnmounted=!0},Pn)},Tn=(Nn,Pn,On,Hn=!1,Xn=!1,In=0)=>{for(let or=In;or{if(Nn.shapeFlag&6)return En(Nn.component.subTree);if(Nn.shapeFlag&128)return Nn.suspense.next();const Pn=ue(Nn.anchor||Nn.el),On=Pn&&Pn[TeleportEndKey];return On?ue(On):Pn};let kn=!1;const $n=(Nn,Pn,On)=>{let Hn;Nn==null?Pn._vnode&&(wn(Pn._vnode,null,null,!0),Hn=Pn._vnode.component):pe(Pn._vnode||null,Nn,Pn,null,null,null,On),Pn._vnode=Nn,kn||(kn=!0,flushPreFlushCbs(Hn),flushPostFlushCbs(),kn=!1)},An={p:pe,um:wn,m:_n,r:bn,mt:kt,mc:Ue,pc:jt,pbc:ze,n:En,o:n};let xn,Ln;return t&&([xn,Ln]=t(An)),{render:$n,hydrate:xn,createApp:createAppAPI($n,xn)}}function resolveChildrenNamespace({type:n,props:t},r){return r==="svg"&&n==="foreignObject"||r==="mathml"&&n==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function toggleRecurse({effect:n,job:t},r){r?(n.flags|=32,t.flags|=4):(n.flags&=-33,t.flags&=-5)}function needTransition(n,t){return(!n||n&&!n.pendingBranch)&&t&&!t.persisted}function traverseStaticChildren(n,t,r=!1){const i=n.children,g=t.children;if(isArray$5(i)&&isArray$5(g))for(let $=0;$>1,n[r[re]]0&&(t[i]=r[$-1]),r[$]=i)}}for($=r.length,V=r[$-1];$-- >0;)r[$]=V,V=t[V];return r}function locateNonHydratedAsyncRoot(n){const t=n.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:locateNonHydratedAsyncRoot(t)}function invalidateMount(n){if(n)for(let t=0;tn.__isSuspense;function queueEffectWithSuspense(n,t){t&&t.pendingBranch?isArray$5(n)?t.effects.push(...n):t.effects.push(n):queuePostFlushCb(n)}const Fragment=Symbol.for("v-fgt"),Text$1=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(n=!1){blockStack.push(currentBlock=n?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(n,t=!1){isBlockTreeEnabled+=n,n<0&¤tBlock&&t&&(currentBlock.hasOnce=!0)}function setupBlock(n){return n.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(n),n}function createElementBlock(n,t,r,i,g,$){return setupBlock(createBaseVNode(n,t,r,i,g,$,!0))}function createBlock(n,t,r,i,g){return setupBlock(createVNode$1(n,t,r,i,g,!0))}function isVNode(n){return n?n.__v_isVNode===!0:!1}function isSameVNodeType(n,t){return n.type===t.type&&n.key===t.key}const normalizeKey=({key:n})=>n??null,normalizeRef=({ref:n,ref_key:t,ref_for:r})=>(typeof n=="number"&&(n=""+n),n!=null?isString$2(n)||isRef(n)||isFunction$4(n)?{i:currentRenderingInstance,r:n,k:t,f:!!r}:n:null);function createBaseVNode(n,t=null,r=null,i=0,g=null,$=n===Fragment?0:1,V=!1,re=!1){const ie={__v_isVNode:!0,__v_skip:!0,type:n,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:$,patchFlag:i,dynamicProps:g,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return re?(normalizeChildren(ie,r),$&128&&n.normalize(ie)):r&&(ie.shapeFlag|=isString$2(r)?8:16),isBlockTreeEnabled>0&&!V&¤tBlock&&(ie.patchFlag>0||$&6)&&ie.patchFlag!==32&¤tBlock.push(ie),ie}const createVNode$1=_createVNode;function _createVNode(n,t=null,r=null,i=0,g=null,$=!1){if((!n||n===NULL_DYNAMIC_COMPONENT)&&(n=Comment),isVNode(n)){const re=cloneVNode(n,t,!0);return r&&normalizeChildren(re,r),isBlockTreeEnabled>0&&!$&¤tBlock&&(re.shapeFlag&6?currentBlock[currentBlock.indexOf(n)]=re:currentBlock.push(re)),re.patchFlag=-2,re}if(isClassComponent(n)&&(n=n.__vccOpts),t){t=guardReactiveProps(t);let{class:re,style:ie}=t;re&&!isString$2(re)&&(t.class=normalizeClass(re)),isObject$6(ie)&&(isProxy(ie)&&!isArray$5(ie)&&(ie=extend$2({},ie)),t.style=normalizeStyle$1(ie))}const V=isString$2(n)?1:isSuspense(n)?128:isTeleport(n)?64:isObject$6(n)?4:isFunction$4(n)?2:0;return createBaseVNode(n,t,r,i,g,V,$,!0)}function guardReactiveProps(n){return n?isProxy(n)||isInternalObject(n)?extend$2({},n):n:null}function cloneVNode(n,t,r=!1,i=!1){const{props:g,ref:$,patchFlag:V,children:re,transition:ie}=n,ae=t?mergeProps(g||{},t):g,oe={__v_isVNode:!0,__v_skip:!0,type:n.type,props:ae,key:ae&&normalizeKey(ae),ref:t&&t.ref?r&&$?isArray$5($)?$.concat(normalizeRef(t)):[$,normalizeRef(t)]:normalizeRef(t):$,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:re,target:n.target,targetStart:n.targetStart,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:t&&n.type!==Fragment?V===-1?16:V|16:V,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:ie,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&cloneVNode(n.ssContent),ssFallback:n.ssFallback&&cloneVNode(n.ssFallback),placeholder:n.placeholder,el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce};return ie&&i&&setTransitionHooks(oe,ie.clone(oe)),oe}function createTextVNode(n=" ",t=0){return createVNode$1(Text$1,null,n,t)}function createCommentVNode(n="",t=!1){return t?(openBlock(),createBlock(Comment,null,n)):createVNode$1(Comment,null,n)}function normalizeVNode$1(n){return n==null||typeof n=="boolean"?createVNode$1(Comment):isArray$5(n)?createVNode$1(Fragment,null,n.slice()):isVNode(n)?cloneIfMounted(n):createVNode$1(Text$1,null,String(n))}function cloneIfMounted(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:cloneVNode(n)}function normalizeChildren(n,t){let r=0;const{shapeFlag:i}=n;if(t==null)t=null;else if(isArray$5(t))r=16;else if(typeof t=="object")if(i&65){const g=t.default;g&&(g._c&&(g._d=!1),normalizeChildren(n,g()),g._c&&(g._d=!0));return}else{r=32;const g=t._;!g&&!isInternalObject(t)?t._ctx=currentRenderingInstance:g===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?t._=1:(t._=2,n.patchFlag|=1024))}else isFunction$4(t)?(t={default:t,_ctx:currentRenderingInstance},r=32):(t=String(t),i&64?(r=16,t=[createTextVNode(t)]):r=8);n.children=t,n.shapeFlag|=r}function mergeProps(...n){const t={};for(let r=0;rcurrentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const n=getGlobalThis(),t=(r,i)=>{let g;return(g=n[r])||(g=n[r]=[]),g.push(i),$=>{g.length>1?g.forEach(V=>V($)):g[0]($)}};internalSetCurrentInstance=t("__VUE_INSTANCE_SETTERS__",r=>currentInstance=r),setInSSRSetupState=t("__VUE_SSR_SETTERS__",r=>isInSSRComponentSetup=r)}const setCurrentInstance=n=>{const t=currentInstance;return internalSetCurrentInstance(n),n.scope.on(),()=>{n.scope.off(),internalSetCurrentInstance(t)}},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(n){return n.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent$1(n,t=!1,r=!1){t&&setInSSRSetupState(t);const{props:i,children:g}=n.vnode,$=isStatefulComponent(n);initProps$1(n,i,$,t),initSlots(n,g,r||t);const V=$?setupStatefulComponent(n,t):void 0;return t&&setInSSRSetupState(!1),V}function setupStatefulComponent(n,t){const r=n.type;n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,PublicInstanceProxyHandlers);const{setup:i}=r;if(i){pauseTracking();const g=n.setupContext=i.length>1?createSetupContext(n):null,$=setCurrentInstance(n),V=callWithErrorHandling(i,n,0,[n.props,g]),re=isPromise(V);if(resetTracking(),$(),(re||n.sp)&&!isAsyncWrapper(n)&&markAsyncBoundary(n),re){if(V.then(unsetCurrentInstance,unsetCurrentInstance),t)return V.then(ie=>{handleSetupResult(n,ie,t)}).catch(ie=>{handleError(ie,n,0)});n.asyncDep=V}else handleSetupResult(n,V,t)}else finishComponentSetup(n,t)}function handleSetupResult(n,t,r){isFunction$4(t)?n.type.__ssrInlineRender?n.ssrRender=t:n.render=t:isObject$6(t)&&(n.setupState=proxyRefs(t)),finishComponentSetup(n,r)}let compile;function finishComponentSetup(n,t,r){const i=n.type;if(!n.render){if(!t&&compile&&!i.render){const g=i.template||resolveMergedOptions(n).template;if(g){const{isCustomElement:$,compilerOptions:V}=n.appContext.config,{delimiters:re,compilerOptions:ie}=i,ae=extend$2(extend$2({isCustomElement:$,delimiters:re},V),ie);i.render=compile(g,ae)}}n.render=i.render||NOOP}{const g=setCurrentInstance(n);pauseTracking();try{applyOptions(n)}finally{resetTracking(),g()}}}const attrsProxyHandlers={get(n,t){return track(n,"get",""),n[t]}};function createSetupContext(n){const t=r=>{n.exposed=r||{}};return{attrs:new Proxy(n.attrs,attrsProxyHandlers),slots:n.slots,emit:n.emit,expose:t}}function getComponentPublicInstance(n){return n.exposed?n.exposeProxy||(n.exposeProxy=new Proxy(proxyRefs(markRaw(n.exposed)),{get(t,r){if(r in t)return t[r];if(r in publicPropertiesMap)return publicPropertiesMap[r](n)},has(t,r){return r in t||r in publicPropertiesMap}})):n.proxy}const classifyRE=/(?:^|[-_])\w/g,classify=n=>n.replace(classifyRE,t=>t.toUpperCase()).replace(/[-_]/g,"");function getComponentName(n,t=!0){return isFunction$4(n)?n.displayName||n.name:n.name||t&&n.__name}function formatComponentName(n,t,r=!1){let i=getComponentName(t);if(!i&&t.__file){const g=t.__file.match(/([^/\\]+)\.\w+$/);g&&(i=g[1])}if(!i&&n){const g=$=>{for(const V in $)if($[V]===t)return V};i=g(n.components)||n.parent&&g(n.parent.type.components)||g(n.appContext.components)}return i?classify(i):r?"App":"Anonymous"}function isClassComponent(n){return isFunction$4(n)&&"__vccOpts"in n}const computed=(n,t)=>computed$1(n,t,isInSSRComponentSetup);function h$1(n,t,r){try{setBlockTracking(-1);const i=arguments.length;return i===2?isObject$6(t)&&!isArray$5(t)?isVNode(t)?createVNode$1(n,null,[t]):createVNode$1(n,t):createVNode$1(n,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&isVNode(r)&&(r=[r]),createVNode$1(n,t,r))}finally{setBlockTracking(1)}}const version$1="3.5.26",warn$2=NOOP,_ssrUtils={createComponentInstance:createComponentInstance$1,setupComponent:setupComponent$1,renderComponentRoot:renderComponentRoot$1,setCurrentRenderingInstance:setCurrentRenderingInstance$1,isVNode,normalizeVNode:normalizeVNode$1,getComponentPublicInstance,ensureValidVNode:ensureValidVNode$1,pushWarningContext:pushWarningContext$1,popWarningContext:popWarningContext$1},ssrUtils=_ssrUtils;/**
-* @vue/runtime-dom v3.5.26
-* (c) 2018-present Yuxi (Evan) You and Vue contributors
-* @license MIT
-**/let policy;const tt$1=typeof window<"u"&&window.trustedTypes;if(tt$1)try{policy=tt$1.createPolicy("vue",{createHTML:n=>n})}catch{}const unsafeToTrustedHTML=policy?n=>policy.createHTML(n):n=>n,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(n,t,r)=>{t.insertBefore(n,r||null)},remove:n=>{const t=n.parentNode;t&&t.removeChild(n)},createElement:(n,t,r,i)=>{const g=t==="svg"?doc.createElementNS(svgNS,n):t==="mathml"?doc.createElementNS(mathmlNS,n):r?doc.createElement(n,{is:r}):doc.createElement(n);return n==="select"&&i&&i.multiple!=null&&g.setAttribute("multiple",i.multiple),g},createText:n=>doc.createTextNode(n),createComment:n=>doc.createComment(n),setText:(n,t)=>{n.nodeValue=t},setElementText:(n,t)=>{n.textContent=t},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>doc.querySelector(n),setScopeId(n,t){n.setAttribute(t,"")},insertStaticContent(n,t,r,i,g,$){const V=r?r.previousSibling:t.lastChild;if(g&&(g===$||g.nextSibling))for(;t.insertBefore(g.cloneNode(!0),r),!(g===$||!(g=g.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(i==="svg"?``:i==="mathml"?``:n);const re=templateContainer.content;if(i==="svg"||i==="mathml"){const ie=re.firstChild;for(;ie.firstChild;)re.appendChild(ie.firstChild);re.removeChild(ie)}t.insertBefore(re,r)}return[V?V.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=n=>(n.displayName="Transition",n.props=TransitionPropsValidators,n),Transition=decorate$1((n,{slots:t})=>h$1(BaseTransition,resolveTransitionProps(n),t)),callHook=(n,t=[])=>{isArray$5(n)?n.forEach(r=>r(...t)):n&&n(...t)},hasExplicitCallback=n=>n?isArray$5(n)?n.some(t=>t.length>1):n.length>1:!1;function resolveTransitionProps(n){const t={};for(const qe in n)qe in DOMTransitionPropsValidators||(t[qe]=n[qe]);if(n.css===!1)return t;const{name:r="v",type:i,duration:g,enterFromClass:$=`${r}-enter-from`,enterActiveClass:V=`${r}-enter-active`,enterToClass:re=`${r}-enter-to`,appearFromClass:ie=$,appearActiveClass:ae=V,appearToClass:oe=re,leaveFromClass:le=`${r}-leave-from`,leaveActiveClass:ue=`${r}-leave-active`,leaveToClass:de=`${r}-leave-to`}=n,he=normalizeDuration(g),pe=he&&he[0],_e=he&&he[1],{onBeforeEnter:Ce,onEnter:xe,onEnterCancelled:Ie,onLeave:Ne,onLeaveCancelled:Oe,onBeforeAppear:$e=Ce,onAppear:Ve=xe,onAppearCancelled:Ue=Ie}=t,Fe=(qe,Et,kt,At)=>{qe._enterCancelled=At,removeTransitionClass(qe,Et?oe:re),removeTransitionClass(qe,Et?ae:V),kt&&kt()},ze=(qe,Et)=>{qe._isLeaving=!1,removeTransitionClass(qe,le),removeTransitionClass(qe,de),removeTransitionClass(qe,ue),Et&&Et()},Pt=qe=>(Et,kt)=>{const At=qe?Ve:xe,Dt=()=>Fe(Et,qe,kt);callHook(At,[Et,Dt]),nextFrame(()=>{removeTransitionClass(Et,qe?ie:$),addTransitionClass(Et,qe?oe:re),hasExplicitCallback(At)||whenTransitionEnds(Et,i,pe,Dt)})};return extend$2(t,{onBeforeEnter(qe){callHook(Ce,[qe]),addTransitionClass(qe,$),addTransitionClass(qe,V)},onBeforeAppear(qe){callHook($e,[qe]),addTransitionClass(qe,ie),addTransitionClass(qe,ae)},onEnter:Pt(!1),onAppear:Pt(!0),onLeave(qe,Et){qe._isLeaving=!0;const kt=()=>ze(qe,Et);addTransitionClass(qe,le),qe._enterCancelled?(addTransitionClass(qe,ue),forceReflow(qe)):(forceReflow(qe),addTransitionClass(qe,ue)),nextFrame(()=>{qe._isLeaving&&(removeTransitionClass(qe,le),addTransitionClass(qe,de),hasExplicitCallback(Ne)||whenTransitionEnds(qe,i,_e,kt))}),callHook(Ne,[qe,kt])},onEnterCancelled(qe){Fe(qe,!1,void 0,!0),callHook(Ie,[qe])},onAppearCancelled(qe){Fe(qe,!0,void 0,!0),callHook(Ue,[qe])},onLeaveCancelled(qe){ze(qe),callHook(Oe,[qe])}})}function normalizeDuration(n){if(n==null)return null;if(isObject$6(n))return[NumberOf(n.enter),NumberOf(n.leave)];{const t=NumberOf(n);return[t,t]}}function NumberOf(n){return toNumber$1(n)}function addTransitionClass(n,t){t.split(/\s+/).forEach(r=>r&&n.classList.add(r)),(n[vtcKey]||(n[vtcKey]=new Set)).add(t)}function removeTransitionClass(n,t){t.split(/\s+/).forEach(i=>i&&n.classList.remove(i));const r=n[vtcKey];r&&(r.delete(t),r.size||(n[vtcKey]=void 0))}function nextFrame(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let endId=0;function whenTransitionEnds(n,t,r,i){const g=n._endId=++endId,$=()=>{g===n._endId&&i()};if(r!=null)return setTimeout($,r);const{type:V,timeout:re,propCount:ie}=getTransitionInfo(n,t);if(!V)return i();const ae=V+"end";let oe=0;const le=()=>{n.removeEventListener(ae,ue),$()},ue=de=>{de.target===n&&++oe>=ie&&le()};setTimeout(()=>{oe(r[he]||"").split(", "),g=i(`${TRANSITION}Delay`),$=i(`${TRANSITION}Duration`),V=getTimeout(g,$),re=i(`${ANIMATION}Delay`),ie=i(`${ANIMATION}Duration`),ae=getTimeout(re,ie);let oe=null,le=0,ue=0;t===TRANSITION?V>0&&(oe=TRANSITION,le=V,ue=$.length):t===ANIMATION?ae>0&&(oe=ANIMATION,le=ae,ue=ie.length):(le=Math.max(V,ae),oe=le>0?V>ae?TRANSITION:ANIMATION:null,ue=oe?oe===TRANSITION?$.length:ie.length:0);const de=oe===TRANSITION&&/\b(?:transform|all)(?:,|$)/.test(i(`${TRANSITION}Property`).toString());return{type:oe,timeout:le,propCount:ue,hasTransform:de}}function getTimeout(n,t){for(;n.lengthtoMs(r)+toMs(n[i])))}function toMs(n){return n==="auto"?0:Number(n.slice(0,-1).replace(",","."))*1e3}function forceReflow(n){return(n?n.ownerDocument:document).body.offsetHeight}function patchClass(n,t,r){const i=n[vtcKey];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?n.removeAttribute("class"):r?n.setAttribute("class",t):n.className=t}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={name:"show",beforeMount(n,{value:t},{transition:r}){n[vShowOriginalDisplay]=n.style.display==="none"?"":n.style.display,r&&t?r.beforeEnter(n):setDisplay(n,t)},mounted(n,{value:t},{transition:r}){r&&t&&r.enter(n)},updated(n,{value:t,oldValue:r},{transition:i}){!t!=!r&&(i?t?(i.beforeEnter(n),setDisplay(n,!0),i.enter(n)):i.leave(n,()=>{setDisplay(n,!1)}):setDisplay(n,t))},beforeUnmount(n,{value:t}){setDisplay(n,t)}};function setDisplay(n,t){n.style.display=t?n[vShowOriginalDisplay]:"none",n[vShowHidden]=!t}function initVShowForSSR(){vShow.getSSRProps=({value:n})=>{if(!n)return{style:{display:"none"}}}}const CSS_VAR_TEXT=Symbol("");function useCssVars(n){const t=getCurrentInstance();if(!t)return;const r=t.ut=(g=n(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach($=>setVarsOnNode($,g))},i=()=>{const g=n(t.proxy);t.ce?setVarsOnNode(t.ce,g):setVarsOnVNode(t.subTree,g),r(g)};onBeforeUpdate(()=>{queuePostFlushCb(i)}),onMounted(()=>{watch(i,NOOP,{flush:"post"});const g=new MutationObserver(i);g.observe(t.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>g.disconnect())})}function setVarsOnVNode(n,t){if(n.shapeFlag&128){const r=n.suspense;n=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{setVarsOnVNode(r.activeBranch,t)})}for(;n.component;)n=n.component.subTree;if(n.shapeFlag&1&&n.el)setVarsOnNode(n.el,t);else if(n.type===Fragment)n.children.forEach(r=>setVarsOnVNode(r,t));else if(n.type===Static){let{el:r,anchor:i}=n;for(;r&&(setVarsOnNode(r,t),r!==i);)r=r.nextSibling}}function setVarsOnNode(n,t){if(n.nodeType===1){const r=n.style;let i="";for(const g in t){const $=normalizeCssVarValue(t[g]);r.setProperty(`--${g}`,$),i+=`--${g}: ${$};`}r[CSS_VAR_TEXT]=i}}const displayRE=/(?:^|;)\s*display\s*:/;function patchStyle(n,t,r){const i=n.style,g=isString$2(r);let $=!1;if(r&&!g){if(t)if(isString$2(t))for(const V of t.split(";")){const re=V.slice(0,V.indexOf(":")).trim();r[re]==null&&setStyle$1(i,re,"")}else for(const V in t)r[V]==null&&setStyle$1(i,V,"");for(const V in r)V==="display"&&($=!0),setStyle$1(i,V,r[V])}else if(g){if(t!==r){const V=i[CSS_VAR_TEXT];V&&(r+=";"+V),i.cssText=r,$=displayRE.test(r)}}else t&&n.removeAttribute("style");vShowOriginalDisplay in n&&(n[vShowOriginalDisplay]=$?i.display:"",n[vShowHidden]&&(i.display="none"))}const importantRE=/\s*!important$/;function setStyle$1(n,t,r){if(isArray$5(r))r.forEach(i=>setStyle$1(n,t,i));else if(r==null&&(r=""),t.startsWith("--"))n.setProperty(t,r);else{const i=autoPrefix(n,t);importantRE.test(r)?n.setProperty(hyphenate(i),r.replace(importantRE,""),"important"):n[i]=r}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(n,t){const r=prefixCache[t];if(r)return r;let i=camelize(t);if(i!=="filter"&&i in n)return prefixCache[t]=i;i=capitalize$1(i);for(let g=0;gcachedNow||(p$1.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(n,t){const r=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=r.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(i,r.value),t,5,[i])};return r.value=n,r.attached=getNow(),r}function patchStopImmediatePropagation(n,t){if(isArray$5(t)){const r=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{r.call(n),n._stopped=!0},t.map(i=>g=>!g._stopped&&i&&i(g))}else return t}const isNativeOn=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,patchProp=(n,t,r,i,g,$)=>{const V=g==="svg";t==="class"?patchClass(n,i,V):t==="style"?patchStyle(n,r,i):isOn(t)?isModelListener(t)||patchEvent(n,t,r,i,$):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):shouldSetAsProp(n,t,i,V))?(patchDOMProp(n,t,i),!n.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&patchAttr(n,t,i,V,$,t!=="value")):n._isVueCE&&(/[A-Z]/.test(t)||!isString$2(i))?patchDOMProp(n,camelize(t),i,$,t):(t==="true-value"?n._trueValue=i:t==="false-value"&&(n._falseValue=i),patchAttr(n,t,i,V))};function shouldSetAsProp(n,t,r,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in n&&isNativeOn(t)&&isFunction$4(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&n.tagName==="IFRAME"||t==="form"||t==="list"&&n.tagName==="INPUT"||t==="type"&&n.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const g=n.tagName;if(g==="IMG"||g==="VIDEO"||g==="CANVAS"||g==="SOURCE")return!1}return isNativeOn(t)&&isString$2(r)?!1:t in n}const positionMap=new WeakMap,newPositionMap=new WeakMap,moveCbKey=Symbol("_moveCb"),enterCbKey=Symbol("_enterCb"),decorate=n=>(delete n.props.mode,n),TransitionGroupImpl=decorate({name:"TransitionGroup",props:extend$2({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(n,{slots:t}){const r=getCurrentInstance(),i=useTransitionState();let g,$;return onUpdated(()=>{if(!g.length)return;const V=n.moveClass||`${n.name||"v"}-move`;if(!hasCSSTransform(g[0].el,r.vnode.el,V)){g=[];return}g.forEach(callPendingCbs),g.forEach(recordPosition);const re=g.filter(applyTranslation);forceReflow(r.vnode.el),re.forEach(ie=>{const ae=ie.el,oe=ae.style;addTransitionClass(ae,V),oe.transform=oe.webkitTransform=oe.transitionDuration="";const le=ae[moveCbKey]=ue=>{ue&&ue.target!==ae||(!ue||ue.propertyName.endsWith("transform"))&&(ae.removeEventListener("transitionend",le),ae[moveCbKey]=null,removeTransitionClass(ae,V))};ae.addEventListener("transitionend",le)}),g=[]}),()=>{const V=toRaw(n),re=resolveTransitionProps(V);let ie=V.tag||Fragment;if(g=[],$)for(let ae=0;ae<$.length;ae++){const oe=$[ae];oe.el&&oe.el instanceof Element&&(g.push(oe),setTransitionHooks(oe,resolveTransitionHooks(oe,re,i,r)),positionMap.set(oe,{left:oe.el.offsetLeft,top:oe.el.offsetTop}))}$=t.default?getTransitionRawChildren(t.default()):[];for(let ae=0;ae<$.length;ae++){const oe=$[ae];oe.key!=null&&setTransitionHooks(oe,resolveTransitionHooks(oe,re,i,r))}return createVNode$1(ie,null,$)}}}),TransitionGroup=TransitionGroupImpl;function callPendingCbs(n){const t=n.el;t[moveCbKey]&&t[moveCbKey](),t[enterCbKey]&&t[enterCbKey]()}function recordPosition(n){newPositionMap.set(n,{left:n.el.offsetLeft,top:n.el.offsetTop})}function applyTranslation(n){const t=positionMap.get(n),r=newPositionMap.get(n),i=t.left-r.left,g=t.top-r.top;if(i||g){const $=n.el.style;return $.transform=$.webkitTransform=`translate(${i}px,${g}px)`,$.transitionDuration="0s",n}}function hasCSSTransform(n,t,r){const i=n.cloneNode(),g=n[vtcKey];g&&g.forEach(re=>{re.split(/\s+/).forEach(ie=>ie&&i.classList.remove(ie))}),r.split(/\s+/).forEach(re=>re&&i.classList.add(re)),i.style.display="none";const $=t.nodeType===1?t:t.parentNode;$.appendChild(i);const{hasTransform:V}=getTransitionInfo(i);return $.removeChild(i),V}const getModelAssigner=n=>{const t=n.props["onUpdate:modelValue"]||!1;return isArray$5(t)?r=>invokeArrayFns(t,r):t};function onCompositionStart(n){n.target.composing=!0}function onCompositionEnd(n){const t=n.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign");function castValue(n,t,r){return t&&(n=n.trim()),r&&(n=looseToNumber$1(n)),n}const vModelText={created(n,{modifiers:{lazy:t,trim:r,number:i}},g){n[assignKey]=getModelAssigner(g);const $=i||g.props&&g.props.type==="number";addEventListener$1(n,t?"change":"input",V=>{V.target.composing||n[assignKey](castValue(n.value,r,$))}),(r||$)&&addEventListener$1(n,"change",()=>{n.value=castValue(n.value,r,$)}),t||(addEventListener$1(n,"compositionstart",onCompositionStart),addEventListener$1(n,"compositionend",onCompositionEnd),addEventListener$1(n,"change",onCompositionEnd))},mounted(n,{value:t}){n.value=t??""},beforeUpdate(n,{value:t,oldValue:r,modifiers:{lazy:i,trim:g,number:$}},V){if(n[assignKey]=getModelAssigner(V),n.composing)return;const re=($||n.type==="number")&&!/^0\d/.test(n.value)?looseToNumber$1(n.value):n.value,ie=t??"";re!==ie&&(document.activeElement===n&&n.type!=="range"&&(i&&t===r||g&&n.value.trim()===ie)||(n.value=ie))}},vModelCheckbox={deep:!0,created(n,t,r){n[assignKey]=getModelAssigner(r),addEventListener$1(n,"change",()=>{const i=n._modelValue,g=getValue$2(n),$=n.checked,V=n[assignKey];if(isArray$5(i)){const re=looseIndexOf(i,g),ie=re!==-1;if($&&!ie)V(i.concat(g));else if(!$&&ie){const ae=[...i];ae.splice(re,1),V(ae)}}else if(isSet$2(i)){const re=new Set(i);$?re.add(g):re.delete(g),V(re)}else V(getCheckboxValue(n,$))})},mounted:setChecked,beforeUpdate(n,t,r){n[assignKey]=getModelAssigner(r),setChecked(n,t,r)}};function setChecked(n,{value:t,oldValue:r},i){n._modelValue=t;let g;if(isArray$5(t))g=looseIndexOf(t,i.props.value)>-1;else if(isSet$2(t))g=t.has(i.props.value);else{if(t===r)return;g=looseEqual(t,getCheckboxValue(n,!0))}n.checked!==g&&(n.checked=g)}const vModelRadio={created(n,{value:t},r){n.checked=looseEqual(t,r.props.value),n[assignKey]=getModelAssigner(r),addEventListener$1(n,"change",()=>{n[assignKey](getValue$2(n))})},beforeUpdate(n,{value:t,oldValue:r},i){n[assignKey]=getModelAssigner(i),t!==r&&(n.checked=looseEqual(t,i.props.value))}};function getValue$2(n){return"_value"in n?n._value:n.value}function getCheckboxValue(n,t){const r=t?"_trueValue":"_falseValue";return r in n?n[r]:t}function initVModelForSSR(){vModelText.getSSRProps=({value:n})=>({value:n}),vModelRadio.getSSRProps=({value:n},t)=>{if(t.props&&looseEqual(t.props.value,n))return{checked:!0}},vModelCheckbox.getSSRProps=({value:n},t)=>{if(isArray$5(n)){if(t.props&&looseIndexOf(n,t.props.value)>-1)return{checked:!0}}else if(isSet$2(n)){if(t.props&&n.has(t.props.value))return{checked:!0}}else if(n)return{checked:!0}}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,t)=>systemModifiers.some(r=>n[`${r}Key`]&&!t.includes(r))},withModifiers=(n,t)=>{const r=n._withMods||(n._withMods={}),i=t.join(".");return r[i]||(r[i]=(g,...$)=>{for(let V=0;V{const r=n._withKeys||(n._withKeys={}),i=t.join(".");return r[i]||(r[i]=g=>{if(!("key"in g))return;const $=hyphenate(g.key);if(t.some(V=>V===$||keyNames[V]===$))return n(g)})},rendererOptions=extend$2({patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const render$1=(...n)=>{ensureRenderer().render(...n)},createApp=(...n)=>{const t=ensureRenderer().createApp(...n),{mount:r}=t;return t.mount=i=>{const g=normalizeContainer(i);if(!g)return;const $=t._component;!isFunction$4($)&&!$.render&&!$.template&&($.template=g.innerHTML),g.nodeType===1&&(g.textContent="");const V=r(g,!1,resolveRootNamespace(g));return g instanceof Element&&(g.removeAttribute("v-cloak"),g.setAttribute("data-v-app","")),V},t};function resolveRootNamespace(n){if(n instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&n instanceof MathMLElement)return"mathml"}function normalizeContainer(n){return isString$2(n)?document.querySelector(n):n}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())},__vite_glob_0_0=``,__vite_glob_0_1=`\r
-`,__vite_glob_0_2=`\r
-`,__vite_glob_0_3=`\r
-`,__vite_glob_1_0=``,__vite_glob_1_1=`\r
-`,__vite_glob_1_2=`\r
-`,__vite_glob_1_3=`\r
-\r
-\r
-`,__vite_glob_1_4=`\r
-`,__vite_glob_1_5=`\r
-`,__vite_glob_1_6=`\r
-`,__vite_glob_1_7=`\r
-`,__vite_glob_1_8=`\r
-\r
-\r
-`,__vite_glob_1_9=`\r
-\r
-\r
-`,__vite_glob_1_10=`\r
-\r
-\r
-`,__vite_glob_1_11=`\r
-\r
-\r
-`,__vite_glob_1_12=`\r
-\r
-\r
-`,index$2="",__uno="",cssVars$1="";if(typeof window<"u"){let n=function(){var t=document.body,r=document.getElementById("___mt__edit__icons__dom__");r||(r=document.createElementNS("http://www.w3.org/2000/svg","svg"),r.style.position="absolute",r.style.width="0",r.style.height="0",r.id="___mt__edit__icons__dom__",r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),r.innerHTML=`\r
- \r
-\r
- \r
-\r
- \r
-\r
- \r
-\r
- \r
-\r
- \r
-\r
- \r
- \r
- \r
- \r
-\r
- \r
- \r
- \r
-\r
- \r
-`,t.insertBefore(r,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",n):n()}const animate="",custom_ani="",autoDestroyMouseMove=(n,t)=>{const r=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("touchmove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchend",r),document.removeEventListener("mouseleave",r),t&&t()};document.addEventListener("mousemove",n),document.addEventListener("touchmove",n),document.addEventListener("mouseup",r),document.addEventListener("touchend",r),document.addEventListener("mouseleave",r)},alignToGrid$1=(n,t=1)=>{const r=Math.floor(n/t);return n%t>=t/2?(r+1)*t:r*t},calcGrid=(n,t=1)=>{const r=Math.abs(n)%t,i=n>0?t:-t;let g=0;return r>t/2?g=i*Math.ceil(Math.abs(n)/t):g=i*Math.floor(Math.abs(n)/t),g};function getXY(n){let t=0,r=0;if(isTouchEvent$1(n)){const i=n.targetTouches[0];t=i.pageX,r=i.pageY}else t=n.clientX,r=n.clientY;return{clientX:t,clientY:r}}function isTouchEvent$1(n){const t=Object.prototype.toString.call(n);return t.substring(8,t.length-1)==="TouchEvent"}const getLength=(n,t)=>Math.sqrt(n*n+t*t),degToRadian=n=>n*Math.PI/180,cos=n=>Math.cos(degToRadian(n)),sin=n=>Math.sin(degToRadian(n)),getNewStyle=(n,t,r,i,g,$,V)=>{let{width:re,height:ie,centerX:ae,centerY:oe,rotateAngle:le}=t;const ue=re<0?-1:1,de=ie<0?-1:1;switch(re=Math.abs(re),ie=Math.abs(ie),n){case"r":{const he=setWidthAndDeltaW(re,r,$);re=he.width,r=he.deltaW,g?(i=r/g,ie=re/g,ae+=r/2*cos(le)-i/2*sin(le),oe+=r/2*sin(le)+i/2*cos(le)):(ae+=r/2*cos(le),oe+=r/2*sin(le));break}case"tr":{i=-i;const he=setWidthAndDeltaW(re,r,$);re=he.width,r=he.deltaW;const pe=setHeightAndDeltaH(ie,i,V);ie=pe.height,i=pe.deltaH,g&&(r=i*g,re=ie*g),ae+=r/2*cos(le)+i/2*sin(le),oe+=r/2*sin(le)-i/2*cos(le);break}case"br":{const he=setWidthAndDeltaW(re,r,$);re=he.width,r=he.deltaW;const pe=setHeightAndDeltaH(ie,i,V);ie=pe.height,i=pe.deltaH,g&&(r=i*g,re=ie*g),ae+=r/2*cos(le)-i/2*sin(le),oe+=r/2*sin(le)+i/2*cos(le);break}case"bc":{const he=setHeightAndDeltaH(ie,i,V);ie=he.height,i=he.deltaH,g?(r=i*g,re=ie*g,ae+=r/2*cos(le)-i/2*sin(le),oe+=r/2*sin(le)+i/2*cos(le)):(ae-=i/2*sin(le),oe+=i/2*cos(le));break}case"bl":{r=-r;const he=setWidthAndDeltaW(re,r,$);re=he.width,r=he.deltaW;const pe=setHeightAndDeltaH(ie,i,V);ie=pe.height,i=pe.deltaH,g&&(ie=re/g,i=r/g),ae-=r/2*cos(le)+i/2*sin(le),oe-=r/2*sin(le)-i/2*cos(le);break}case"l":{r=-r;const he=setWidthAndDeltaW(re,r,$);re=he.width,r=he.deltaW,g?(ie=re/g,i=r/g,ae-=r/2*cos(le)+i/2*sin(le),oe-=r/2*sin(le)-i/2*cos(le)):(ae-=r/2*cos(le),oe-=r/2*sin(le));break}case"tl":{r=-r,i=-i;const he=setWidthAndDeltaW(re,r,$);re=he.width,r=he.deltaW;const pe=setHeightAndDeltaH(ie,i,V);ie=pe.height,i=pe.deltaH,g&&(re=ie*g,r=i*g),ae-=r/2*cos(le)-i/2*sin(le),oe-=r/2*sin(le)+i/2*cos(le);break}case"tc":{i=-i;const he=setHeightAndDeltaH(ie,i,V);ie=he.height,i=he.deltaH,g?(re=ie*g,r=i*g,ae+=r/2*cos(le)+i/2*sin(le),oe+=r/2*sin(le)-i/2*cos(le)):(ae+=i/2*sin(le),oe-=i/2*cos(le));break}}return{position:{centerX:ae,centerY:oe},size:{width:re*ue,height:ie*de}}},setHeightAndDeltaH=(n,t,r)=>{const i=n+t;return i>r?n=i:(t=r-n,n=r),{height:n,deltaH:t}},setWidthAndDeltaW=(n,t,r)=>{const i=n+t;return i>r?n=i:(t=r-n,n=r),{width:n,deltaW:t}},centerToTL=({centerX:n,centerY:t,width:r,height:i,angle:g})=>({top:t-i/2,left:n-r/2,width:r,height:i,angle:g}),formatData=(n,t,r)=>{const{width:i,height:g}=n;return{width:Math.abs(i),height:Math.abs(g),left:t-Math.abs(i)/2,top:r-Math.abs(g)/2}},randomString$1=n=>{n=n||10;const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=t.length;let i="";for(let g=0;g{dzrStore.dzr_copy_info=n},showDzrCopy:(n,t)=>{dzrStore.setDzrCopyInfo({...dzrStore.dzr_copy_info,show:!0,value:n,gen_id:t})},hideDzrCopy:()=>{dzrStore.setDzrCopyInfo({...dzrStore.dzr_copy_info,show:!1})}}),_hoisted_1$1G=["id","onMousedown","onTouchstartPassive"],_sfc_main$34=defineComponent({__name:"resize-handle",props:{itemInfo:{},targetDom:{},scaleRatio:{default:1},gridAlignSize:{default:1},genId:{},useProportionalScaling:{type:Boolean,default:!1}},emits:["update:itemInfo","onResizeDone","onResizeMove"],setup(n,{emit:t}){const r=n,i=computed(()=>({tl:{left:"0px",top:"0px",cursor:$(0)},tc:{left:r.itemInfo.width/2+"px",top:"0px",cursor:$(45)},tr:{left:r.itemInfo.width+"px",top:"0px",cursor:$(90)},l:{left:"0px",top:r.itemInfo.height/2+"px",cursor:$(315)},r:{left:r.itemInfo.width+"px",top:r.itemInfo.height/2+"px",cursor:$(135)},bl:{left:"0px",top:r.itemInfo.height+"px",cursor:$(270)},bc:{left:r.itemInfo.width/2+"px",top:r.itemInfo.height+"px",cursor:$(225)},br:{left:r.itemInfo.width+"px",top:r.itemInfo.height+"px",cursor:$(180)}})),g=[{start:338,end:23,cursor:"nw"},{start:23,end:68,cursor:"n"},{start:68,end:113,cursor:"ne"},{start:293,end:338,cursor:"w"},{start:113,end:158,cursor:"e"},{start:248,end:293,cursor:"sw"},{start:203,end:248,cursor:"s"},{start:158,end:203,cursor:"se"}],$=ae=>{const oe=(ae+r.itemInfo.angle)%360,le=g.find(ue=>ue.start<=oe&&ue.end>oe);return le?le.cursor+"-resize":"nw-resize"},V=t,re=ref({...r.itemInfo}),ie=(ae,oe)=>{ae.stopPropagation(),re.value={...r.itemInfo};const{clientX:le,clientY:ue}=getXY(ae),{width:de,height:he,left:pe,top:_e}=r.itemInfo,Ce=pe+de/2,xe=_e+he/2,Ie={width:de,height:he,centerX:Ce,centerY:xe,rotateAngle:r.itemInfo.angle};autoDestroyMouseMove(Oe=>{Oe.preventDefault(),dzrStore.showDzrCopy({...re.value},r.genId);const{clientX:$e,clientY:Ve}=getXY(Oe),Ue=($e-le)/r.scaleRatio,Fe=(Ve-ue)/r.scaleRatio,ze=Math.atan2(Fe,Ue),Pt=getLength(Ue,Fe),qe=ze-degToRadian(Ie.rotateAngle),Et=Pt*Math.cos(qe),kt=Pt*Math.sin(qe),At=r.useProportionalScaling||Oe.shiftKey?Ie.width/Ie.height:void 0,{position:{centerX:Dt,centerY:Lt},size:{width:jt,height:hn}}=getNewStyle(oe,{...Ie,rotateAngle:Ie.rotateAngle},Et,kt,At,1,1),vn=centerToTL({centerX:Dt,centerY:Lt,width:jt,height:hn,angle:r.itemInfo.angle}),_n=formatData(vn,Dt,Lt),wn=calcGrid(_n.width,r.gridAlignSize),bn=calcGrid(_n.height,r.gridAlignSize);V("update:itemInfo",{...r.itemInfo,..._n,left:calcGrid(_n.left,r.gridAlignSize),top:calcGrid(_n.top,r.gridAlignSize),width:wn,height:bn}),V("onResizeMove",{width:wn,height:bn})},()=>{dzrStore.hideDzrCopy(),V("onResizeDone")})};return(ae,oe)=>(openBlock(),createElementBlock("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.value,(le,ue)=>(openBlock(),createElementBlock("div",{key:ue,id:`resize_${ue}`,style:normalizeStyle$1(le),class:"mt-dzr-resize mt-dzr-resize-point touch-none",onMousedown:de=>ie(de,ue),onTouchstartPassive:de=>ie(de,ue)},null,44,_hoisted_1$1G))),128))]))}}),resizeHandle_vue_vue_type_style_index_0_scoped_ea13326c_lang="",_export_sfc$1=(n,t)=>{const r=n.__vccOpts||n;for(const[i,g]of t)r[i]=g;return r},ResizeHandle=_export_sfc$1(_sfc_main$34,[["__scopeId","data-v-ea13326c"]]),_sfc_main$33=defineComponent({__name:"rotate-handle",props:{itemInfo:{},targetDom:{},genId:{}},emits:["update:itemInfo","onRotateDone","onRotateMove"],setup(n,{emit:t}){const r=n,i=t,g=ref({...r.itemInfo}),$=ref(!1),V=re=>{if(re.stopPropagation(),!r.targetDom){console.error("target_dom is null");return}const ie=r.targetDom.getBoundingClientRect();if(!ie){console.error("boundingClientRect is null");return}const{clientX:ae,clientY:oe}=getXY(re);g.value={...r.itemInfo},dzrStore.hideDzrCopy();const le=r.itemInfo.angle,ue=ie.left+ie.width/2,de=ie.top+ie.height/2;$.value=!0,autoDestroyMouseMove(pe=>{if(!$.value)return;const{clientX:_e,clientY:Ce}=getXY(pe);dzrStore.showDzrCopy({...g.value},r.genId);const xe=Math.atan2(oe-de,ae-ue)/(Math.PI/180),Ie=Math.atan2(Ce-de,_e-ue)/(Math.PI/180),Ne=alignToGrid$1(le+Ie-xe);i("update:itemInfo",{...r.itemInfo,left:alignToGrid$1(r.itemInfo.left),top:alignToGrid$1(r.itemInfo.top),angle:Ne}),i("onRotateMove",{angle:Ne})},()=>{dzrStore.hideDzrCopy(),$.value=!1,i("onRotateDone")})};return(re,ie)=>(openBlock(),createElementBlock("div",{class:"mt-dzr-rotate touch-none",onMousedown:V,onTouchstartPassive:V},[...ie[0]||(ie[0]=[createBaseVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[createBaseVNode("path",{d:"M929 849a30 30 0 0 1-30-30v-83.137a447.514 447.514 0 0 1-70.921 92.209C722.935 933.225 578.442 975.008 442 953.482a444.917 444.917 0 0 1-241.139-120.591 30 30 0 1 1 37.258-47.01l0.231-0.231A385.175 385.175 0 0 0 442 892.625v-0.006c120.855 22.123 250.206-13.519 343.656-106.975a386.646 386.646 0 0 0 70.6-96.653h-87.247a30 30 0 0 1 0-60H929a30 30 0 0 1 30 30V819a30 30 0 0 1-30 30zM512 392a120 120 0 1 1-120 120 120 120 0 0 1 120-120z m293.005-147.025a29.87 29.87 0 0 1-19.117-6.882l-0.232 0.231A386.5 386.5 0 0 0 689.478 168h-0.011c-145.646-75.182-329.021-51.747-451.117 70.35a386.615 386.615 0 0 0-70.6 96.65H255a30 30 0 0 1 0 60H95a30 30 0 0 1-30-30V205a30 30 0 0 1 60 0v83.129a447.534 447.534 0 0 1 70.923-92.206C317.981 73.866 493.048 37.2 647 85.836v-0.045a444.883 444.883 0 0 1 176.143 105.291 30 30 0 0 1-18.138 53.893z",fill:"#06B7FF"})],-1)])],32))}}),rotateHandle_vue_vue_type_style_index_0_scoped_c2cb7cf8_lang="",RotateHandle=_export_sfc$1(_sfc_main$33,[["__scopeId","data-v-c2cb7cf8"]]),_sfc_main$32={},_hoisted_1$1F={class:"w-1/1 h-1/1 select-none"};function _sfc_render$m(n,t){return openBlock(),createElementBlock("div",_hoisted_1$1F,[renderSlot(n.$slots,"default")])}const renderItem=_export_sfc$1(_sfc_main$32,[["render",_sfc_render$m]]),_hoisted_1$1E=["id"],_hoisted_2$$={key:0},_sfc_main$31=defineComponent({__name:"index",props:{id:{default:randomString$1(16)},modelValue:{default:()=>({left:0,top:0,width:0,height:0,angle:0})},scaleRatio:{default:1},hide:{type:Boolean,default:!1},grid:{default:()=>({enabled:!1,align:!1,size:10})},resize:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},lock:{type:Boolean,default:!1},active:{type:Boolean,default:!1},useProportionalScaling:{type:Boolean,default:!1},showGhostDom:{type:Boolean,default:!0},class:{},disabled:{type:Boolean,default:!1},adsorp_diff:{default:()=>({x:0,y:0})}},emits:["update:modelValue","mousedown","onItemMove","moveMouseUp","onMouseEnter","onMouseLeave","onResizeMove","onResizeDone","onRotateDone","onRightClick","onRotateMove"],setup(n,{emit:t}){const r=n,i=t,g=ref(),$=randomString$1(16),V=ref({...r.modelValue}),re=ref({...r.modelValue}),ie=Ie=>{const{width:Ne,height:Oe,left:$e,top:Ve,angle:Ue}=Ie;return{width:Ne+"px",height:Oe+"px",left:$e+"px",top:Ve+"px",transform:`rotate(${Ue}deg)`}},ae=computed(()=>!r.grid.align||!r.grid.enabled?1:r.grid.size),oe=computed({get:()=>re.value,set:Ie=>{re.value=Ie,i("update:modelValue",Ie)}}),le=Ie=>{if(i("mousedown",Ie),r.lock||r.disabled)return;const{clientX:Ne,clientY:Oe}=getXY(Ie);V.value={...r.modelValue},re.value={...r.modelValue},dzrStore.hideDzrCopy();const{left:$e,top:Ve}=r.modelValue,{clientWidth:Ue,clientHeight:Fe}=g.value.parentElement,ze=0,Pt=0,qe=Ue-r.modelValue.width,Et=Fe-r.modelValue.height;let kt=$e,At=Ve;autoDestroyMouseMove(Lt=>{dzrStore.showDzrCopy({...V.value},$);const{clientX:jt,clientY:hn}=getXY(Lt),vn=(jt-Ne)/r.scaleRatio,_n=(hn-Oe)/r.scaleRatio,wn=alignToGrid$1($e+vn,ae.value),bn=alignToGrid$1(Ve+_n,ae.value);kt=wnqe?qe:wn,At=bnEt?Et:bn,re.value={...re.value,left:kt,top:At},i("onItemMove",{move_length:{x:wn-$e,y:bn-Ve},new_lt:{left:kt,top:At},move_binfo:{id:r.id,left:kt,top:At,width:re.value.width,height:re.value.height,angle:re.value.angle}}),nextTick(()=>{var Tn,En;const Cn=((Tn=r.adsorp_diff)==null?void 0:Tn.x)??0,Sn=((En=r.adsorp_diff)==null?void 0:En.y)??0;Cn==0&&Sn==0||(kt+=Cn,At+=Sn,re.value={...re.value,left:kt,top:At},i("onItemMove",{new_lt:{left:kt,top:At},move_binfo:{id:r.id,left:kt,top:At,width:re.value.width,height:re.value.height,angle:re.value.angle}}))})},()=>{nextTick(()=>{dzrStore.hideDzrCopy(),i("moveMouseUp"),i("update:modelValue",{...r.modelValue,left:kt,top:At})})})},ue=Ie=>{i("onMouseEnter",Ie)},de=Ie=>{i("onMouseLeave",Ie)},he=Ie=>{i("onResizeMove",Ie)},pe=()=>{i("onResizeDone")},_e=()=>{i("onRotateDone")},Ce=Ie=>{i("onRotateMove",Ie)},xe=Ie=>{i("onRightClick",Ie)};return watch(()=>r.modelValue,Ie=>{re.value=Ie},{deep:!0}),(Ie,Ne)=>(openBlock(),createElementBlock(Fragment,null,[unref(dzrStore).dzr_copy_info.show&&unref(dzrStore).dzr_copy_info.gen_id==unref($)&&r.showGhostDom?(openBlock(),createElementBlock("div",{key:0,class:"absolute select-none opacity-30",style:normalizeStyle$1([{outline:"1px solid #06b7ff"},ie(unref(dzrStore).dzr_copy_info.value)])},[createVNode$1(renderItem,null,{default:withCtx(()=>[renderSlot(Ie.$slots,"default",{},void 0,!0)]),_:3})],4)):createCommentVNode("",!0),r.hide?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:1,id:r.id,ref_key:"dzrRef",ref:g,class:normalizeClass(`${r.class} absolute select-none touch-none ${r.lock?"opacity-50":""} ${r.active&&r.modelValue.width!=0&&r.modelValue.height!=0?"dzr-active":""}`),onMousedown:le,onTouchstartPassive:le,onMouseenter:ue,onMouseleave:de,onContextmenu:withModifiers(xe,["right","prevent"]),style:normalizeStyle$1(ie(re.value))},[createVNode$1(renderItem,null,{default:withCtx(()=>[renderSlot(Ie.$slots,"default",{},void 0,!0)]),_:3}),r.resize&&!r.lock&&r.active&&!r.disabled?(openBlock(),createElementBlock("div",_hoisted_2$$,[createVNode$1(ResizeHandle,{"item-info":oe.value,"onUpdate:itemInfo":Ne[0]||(Ne[0]=Oe=>oe.value=Oe),"target-dom":g.value,"scale-ratio":r.scaleRatio,"grid-align-size":ae.value,"gen-id":unref($),"use-proportional-scaling":r.useProportionalScaling,onOnResizeDone:pe,onOnResizeMove:Ne[1]||(Ne[1]=Oe=>he(Oe))},null,8,["item-info","target-dom","scale-ratio","grid-align-size","gen-id","use-proportional-scaling"])])):createCommentVNode("",!0),r.rotate&&!r.lock&&r.active&&!r.disabled?(openBlock(),createBlock(RotateHandle,{key:1,"item-info":oe.value,"onUpdate:itemInfo":Ne[2]||(Ne[2]=Oe=>oe.value=Oe),"target-dom":g.value,"gen-id":unref($),onOnRotateDone:_e,onOnRotateMove:Ne[3]||(Ne[3]=Oe=>Ce(Oe))},null,8,["item-info","target-dom","gen-id"])):createCommentVNode("",!0)],46,_hoisted_1$1E))],64))}}),index_vue_vue_type_style_index_0_scoped_a8334372_lang="";function computedEager(n,t){var r;const i=shallowRef();return watchEffect(()=>{i.value=n()},{...t,flush:(r=t==null?void 0:t.flush)!=null?r:"sync"}),readonly(i)}function tryOnScopeDispose(n){return getCurrentScope()?(onScopeDispose(n),!0):!1}function toValue(n){return typeof n=="function"?n():unref(n)}function toReactive(n){if(!isRef(n))return reactive(n);const t=new Proxy({},{get(r,i,g){return unref(Reflect.get(n.value,i,g))},set(r,i,g){return isRef(n.value[i])&&!isRef(g)?n.value[i].value=g:n.value[i]=g,!0},deleteProperty(r,i){return Reflect.deleteProperty(n.value,i)},has(r,i){return Reflect.has(n.value,i)},ownKeys(){return Object.keys(n.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return reactive(t)}function reactiveComputed(n){return toReactive(computed(n))}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const isDef$1=n=>typeof n<"u",notNullish=n=>n!=null,toString$2=Object.prototype.toString,isObject$5=n=>toString$2.call(n)==="[object Object]",clamp$4=(n,t,r)=>Math.min(r,Math.max(t,n)),noop$5=()=>{},isIOS=getIsIOS();function getIsIOS(){var n,t;return isClient&&((n=window==null?void 0:window.navigator)==null?void 0:n.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 createFilterWrapper(n,t){function r(...i){return new Promise((g,$)=>{Promise.resolve(n(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(g).catch($)})}return r}const bypassFilter=n=>n();function debounceFilter(n,t={}){let r,i,g=noop$5;const $=re=>{clearTimeout(re),g(),g=noop$5};return re=>{const ie=toValue(n),ae=toValue(t.maxWait);return r&&$(r),ie<=0||ae!==void 0&&ae<=0?(i&&($(i),i=null),Promise.resolve(re())):new Promise((oe,le)=>{g=t.rejectOnCancel?le:oe,ae&&!i&&(i=setTimeout(()=>{r&&$(r),i=null,oe(re())},ae)),r=setTimeout(()=>{i&&$(i),i=null,oe(re())},ie)})}}function throttleFilter(...n){let t=0,r,i=!0,g=noop$5,$,V,re,ie,ae;!isRef(n[0])&&typeof n[0]=="object"?{delay:V,trailing:re=!0,leading:ie=!0,rejectOnCancel:ae=!1}=n[0]:[V,re=!0,ie=!0,ae=!1]=n;const oe=()=>{r&&(clearTimeout(r),r=void 0,g(),g=noop$5)};return ue=>{const de=toValue(V),he=Date.now()-t,pe=()=>$=ue();return oe(),de<=0?(t=Date.now(),pe()):(he>de&&(ie||!i)?(t=Date.now(),pe()):re&&($=new Promise((_e,Ce)=>{g=ae?Ce:_e,r=setTimeout(()=>{t=Date.now(),i=!0,_e(pe()),oe()},Math.max(0,de-he))})),!ie&&!r&&(r=setTimeout(()=>i=!0,de)),i=!1,$)}}function pausableFilter(n=bypassFilter){const t=ref(!0);function r(){t.value=!1}function i(){t.value=!0}const g=(...$)=>{t.value&&n(...$)};return{isActive:readonly(t),pause:r,resume:i,eventFilter:g}}function getLifeCycleTarget(n){return n||getCurrentInstance()}function toRef(...n){if(n.length!==1)return toRef$1(...n);const t=n[0];return typeof t=="function"?readonly(customRef(()=>({get:t,set:noop$5}))):ref(t)}function useDebounceFn(n,t=200,r={}){return createFilterWrapper(debounceFilter(t,r),n)}function refDebounced(n,t=200,r={}){const i=ref(n.value),g=useDebounceFn(()=>{i.value=n.value},t,r);return watch(n,()=>g()),i}function useThrottleFn(n,t=200,r=!1,i=!0,g=!1){return createFilterWrapper(throttleFilter(t,r,i,g),n)}function watchWithFilter(n,t,r={}){const{eventFilter:i=bypassFilter,...g}=r;return watch(n,createFilterWrapper(i,t),g)}function watchPausable(n,t,r={}){const{eventFilter:i,...g}=r,{eventFilter:$,pause:V,resume:re,isActive:ie}=pausableFilter(i);return{stop:watchWithFilter(n,t,{...g,eventFilter:$}),pause:V,resume:re,isActive:ie}}function tryOnMounted(n,t=!0,r){getLifeCycleTarget()?onMounted(n,r):t?n():nextTick(n)}function useTimeoutFn(n,t,r={}){const{immediate:i=!0}=r,g=ref(!1);let $=null;function V(){$&&(clearTimeout($),$=null)}function re(){g.value=!1,V()}function ie(...ae){V(),g.value=!0,$=setTimeout(()=>{g.value=!1,$=null,n(...ae)},toValue(t))}return i&&(g.value=!0,isClient&&ie()),tryOnScopeDispose(re),{isPending:readonly(g),start:ie,stop:re}}function useToggle(n=!1,t={}){const{truthyValue:r=!0,falsyValue:i=!1}=t,g=isRef(n),$=ref(n);function V(re){if(arguments.length)return $.value=re,$.value;{const ie=toValue(r);return $.value=$.value===ie?toValue(i):ie,$.value}}return g?V:[$,V]}function unrefElement(n){var t;const r=toValue(n);return(t=r==null?void 0:r.$el)!=null?t:r}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;function useEventListener(...n){let t,r,i,g;if(typeof n[0]=="string"||Array.isArray(n[0])?([r,i,g]=n,t=defaultWindow):[t,r,i,g]=n,!t)return noop$5;Array.isArray(r)||(r=[r]),Array.isArray(i)||(i=[i]);const $=[],V=()=>{$.forEach(oe=>oe()),$.length=0},re=(oe,le,ue,de)=>(oe.addEventListener(le,ue,de),()=>oe.removeEventListener(le,ue,de)),ie=watch(()=>[unrefElement(t),toValue(g)],([oe,le])=>{if(V(),!oe)return;const ue=isObject$5(le)?{...le}:le;$.push(...r.flatMap(de=>i.map(he=>re(oe,de,he,ue))))},{immediate:!0,flush:"post"}),ae=()=>{ie(),V()};return tryOnScopeDispose(ae),ae}let _iOSWorkaround=!1;function onClickOutside(n,t,r={}){const{window:i=defaultWindow,ignore:g=[],capture:$=!0,detectIframe:V=!1}=r;if(!i)return noop$5;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(i.document.body.children).forEach(ue=>ue.addEventListener("click",noop$5)),i.document.documentElement.addEventListener("click",noop$5));let re=!0;const ie=ue=>g.some(de=>{if(typeof de=="string")return Array.from(i.document.querySelectorAll(de)).some(he=>he===ue.target||ue.composedPath().includes(he));{const he=unrefElement(de);return he&&(ue.target===he||ue.composedPath().includes(he))}}),oe=[useEventListener(i,"click",ue=>{const de=unrefElement(n);if(!(!de||de===ue.target||ue.composedPath().includes(de))){if(ue.detail===0&&(re=!ie(ue)),!re){re=!0;return}t(ue)}},{passive:!0,capture:$}),useEventListener(i,"pointerdown",ue=>{const de=unrefElement(n);re=!ie(ue)&&!!(de&&!ue.composedPath().includes(de))},{passive:!0}),V&&useEventListener(i,"blur",ue=>{setTimeout(()=>{var de;const he=unrefElement(n);((de=i.document.activeElement)==null?void 0:de.tagName)==="IFRAME"&&!(he!=null&&he.contains(i.document.activeElement))&&t(ue)},0)})].filter(Boolean);return()=>oe.forEach(ue=>ue())}function useMounted(){const n=ref(!1),t=getCurrentInstance();return t&&onMounted(()=>{n.value=!0},t),n}function useSupported(n){const t=useMounted();return computed(()=>(t.value,!!n()))}function useMutationObserver(n,t,r={}){const{window:i=defaultWindow,...g}=r;let $;const V=useSupported(()=>i&&"MutationObserver"in i),re=()=>{$&&($.disconnect(),$=void 0)},ie=computed(()=>{const ue=toValue(n),de=(Array.isArray(ue)?ue:[ue]).map(unrefElement).filter(notNullish);return new Set(de)}),ae=watch(()=>ie.value,ue=>{re(),V.value&&ue.size&&($=new MutationObserver(t),ue.forEach(de=>$.observe(de,g)))},{immediate:!0,flush:"post"}),oe=()=>$==null?void 0:$.takeRecords(),le=()=>{re(),ae()};return tryOnScopeDispose(le),{isSupported:V,stop:le,takeRecords:oe}}function useActiveElement(n={}){var t;const{window:r=defaultWindow,deep:i=!0,triggerOnRemoval:g=!1}=n,$=(t=n.document)!=null?t:r==null?void 0:r.document,V=()=>{var ae;let oe=$==null?void 0:$.activeElement;if(i)for(;oe!=null&&oe.shadowRoot;)oe=(ae=oe==null?void 0:oe.shadowRoot)==null?void 0:ae.activeElement;return oe},re=ref(),ie=()=>{re.value=V()};return r&&(useEventListener(r,"blur",ae=>{ae.relatedTarget===null&&ie()},!0),useEventListener(r,"focus",ie,!0)),g&&useMutationObserver($,ae=>{ae.filter(oe=>oe.removedNodes.length).map(oe=>Array.from(oe.removedNodes)).flat().forEach(oe=>{oe===re.value&&ie()})},{childList:!0,subtree:!0}),ie(),re}function useMediaQuery(n,t={}){const{window:r=defaultWindow}=t,i=useSupported(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let g;const $=ref(!1),V=ae=>{$.value=ae.matches},re=()=>{g&&("removeEventListener"in g?g.removeEventListener("change",V):g.removeListener(V))},ie=watchEffect(()=>{i.value&&(re(),g=r.matchMedia(toValue(n)),"addEventListener"in g?g.addEventListener("change",V):g.addListener(V),$.value=g.matches)});return tryOnScopeDispose(()=>{ie(),re(),g=void 0}),$}function cloneFnJSON(n){return JSON.parse(JSON.stringify(n))}const _global$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__",handlers=getHandlers();function getHandlers(){return globalKey in _global$1||(_global$1[globalKey]=_global$1[globalKey]||{}),_global$1[globalKey]}function getSSRHandler(n,t){return handlers[n]||t}function guessSerializerType(n){return n==null?"any":n instanceof Set?"set":n instanceof Map?"map":n instanceof Date?"date":typeof n=="boolean"?"boolean":typeof n=="string"?"string":typeof n=="object"?"object":Number.isNaN(n)?"any":"number"}const StorageSerializers={boolean:{read:n=>n==="true",write:n=>String(n)},object:{read:n=>JSON.parse(n),write:n=>JSON.stringify(n)},number:{read:n=>Number.parseFloat(n),write:n=>String(n)},any:{read:n=>n,write:n=>String(n)},string:{read:n=>n,write:n=>String(n)},map:{read:n=>new Map(JSON.parse(n)),write:n=>JSON.stringify(Array.from(n.entries()))},set:{read:n=>new Set(JSON.parse(n)),write:n=>JSON.stringify(Array.from(n))},date:{read:n=>new Date(n),write:n=>n.toISOString()}},customStorageEventName="vueuse-storage";function useStorage(n,t,r,i={}){var g;const{flush:$="pre",deep:V=!0,listenToStorageChanges:re=!0,writeDefaults:ie=!0,mergeDefaults:ae=!1,shallow:oe,window:le=defaultWindow,eventFilter:ue,onError:de=ze=>{console.error(ze)},initOnMounted:he}=i,pe=(oe?shallowRef:ref)(typeof t=="function"?t():t);if(!r)try{r=getSSRHandler("getDefaultStorage",()=>{var ze;return(ze=defaultWindow)==null?void 0:ze.localStorage})()}catch(ze){de(ze)}if(!r)return pe;const _e=toValue(t),Ce=guessSerializerType(_e),xe=(g=i.serializer)!=null?g:StorageSerializers[Ce],{pause:Ie,resume:Ne}=watchPausable(pe,()=>$e(pe.value),{flush:$,deep:V,eventFilter:ue});le&&re&&tryOnMounted(()=>{useEventListener(le,"storage",Ue),useEventListener(le,customStorageEventName,Fe),he&&Ue()}),he||Ue();function Oe(ze,Pt){le&&le.dispatchEvent(new CustomEvent(customStorageEventName,{detail:{key:n,oldValue:ze,newValue:Pt,storageArea:r}}))}function $e(ze){try{const Pt=r.getItem(n);if(ze==null)Oe(Pt,null),r.removeItem(n);else{const qe=xe.write(ze);Pt!==qe&&(r.setItem(n,qe),Oe(Pt,qe))}}catch(Pt){de(Pt)}}function Ve(ze){const Pt=ze?ze.newValue:r.getItem(n);if(Pt==null)return ie&&_e!=null&&r.setItem(n,xe.write(_e)),_e;if(!ze&&ae){const qe=xe.read(Pt);return typeof ae=="function"?ae(qe,_e):Ce==="object"&&!Array.isArray(qe)?{..._e,...qe}:qe}else return typeof Pt!="string"?Pt:xe.read(Pt)}function Ue(ze){if(!(ze&&ze.storageArea!==r)){if(ze&&ze.key==null){pe.value=_e;return}if(!(ze&&ze.key!==n)){Ie();try{(ze==null?void 0:ze.newValue)!==xe.write(pe.value)&&(pe.value=Ve(ze))}catch(Pt){de(Pt)}finally{ze?nextTick(Ne):Ne()}}}}function Fe(ze){Ue(ze.detail)}return pe}function usePreferredDark(n){return useMediaQuery("(prefers-color-scheme: dark)",n)}function useColorMode(n={}){const{selector:t="html",attribute:r="class",initialValue:i="auto",window:g=defaultWindow,storage:$,storageKey:V="vueuse-color-scheme",listenToStorageChanges:re=!0,storageRef:ie,emitAuto:ae,disableTransition:oe=!0}=n,le={auto:"",light:"light",dark:"dark",...n.modes||{}},ue=usePreferredDark({window:g}),de=computed(()=>ue.value?"dark":"light"),he=ie||(V==null?toRef(i):useStorage(V,i,$,{window:g,listenToStorageChanges:re})),pe=computed(()=>he.value==="auto"?de.value:he.value),_e=getSSRHandler("updateHTMLAttrs",(Ne,Oe,$e)=>{const Ve=typeof Ne=="string"?g==null?void 0:g.document.querySelector(Ne):unrefElement(Ne);if(!Ve)return;let Ue;if(oe){Ue=g.document.createElement("style");const Fe="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";Ue.appendChild(document.createTextNode(Fe)),g.document.head.appendChild(Ue)}if(Oe==="class"){const Fe=$e.split(/\s/g);Object.values(le).flatMap(ze=>(ze||"").split(/\s/g)).filter(Boolean).forEach(ze=>{Fe.includes(ze)?Ve.classList.add(ze):Ve.classList.remove(ze)})}else Ve.setAttribute(Oe,$e);oe&&(g.getComputedStyle(Ue).opacity,document.head.removeChild(Ue))});function Ce(Ne){var Oe;_e(t,r,(Oe=le[Ne])!=null?Oe:Ne)}function xe(Ne){n.onChanged?n.onChanged(Ne,Ce):Ce(Ne)}watch(pe,xe,{flush:"post",immediate:!0}),tryOnMounted(()=>xe(pe.value));const Ie=computed({get(){return ae?he.value:pe.value},set(Ne){he.value=Ne}});try{return Object.assign(Ie,{store:he,system:de,state:pe})}catch{return Ie}}function useCssVar(n,t,r={}){const{window:i=defaultWindow,initialValue:g="",observe:$=!1}=r,V=ref(g),re=computed(()=>{var ae;return unrefElement(t)||((ae=i==null?void 0:i.document)==null?void 0:ae.documentElement)});function ie(){var ae;const oe=toValue(n),le=toValue(re);if(le&&i){const ue=(ae=i.getComputedStyle(le).getPropertyValue(oe))==null?void 0:ae.trim();V.value=ue||g}}return $&&useMutationObserver(re,ie,{attributeFilter:["style","class"],window:i}),watch([re,()=>toValue(n)],ie,{immediate:!0}),watch(V,ae=>{var oe;(oe=re.value)!=null&&oe.style&&re.value.style.setProperty(toValue(n),ae)}),V}function useDark(n={}){const{valueDark:t="dark",valueLight:r="",window:i=defaultWindow}=n,g=useColorMode({...n,onChanged:(re,ie)=>{var ae;n.onChanged?(ae=n.onChanged)==null||ae.call(n,re==="dark",ie,re):ie(re)},modes:{dark:t,light:r}}),$=computed(()=>g.system?g.system.value:usePreferredDark({window:i}).value?"dark":"light");return computed({get(){return g.value==="dark"},set(re){const ie=re?"dark":"light";$.value===ie?g.value="auto":g.value=ie}})}function useDocumentVisibility(n={}){const{document:t=defaultDocument}=n;if(!t)return ref("visible");const r=ref(t.visibilityState);return useEventListener(t,"visibilitychange",()=>{r.value=t.visibilityState}),r}function useResizeObserver(n,t,r={}){const{window:i=defaultWindow,...g}=r;let $;const V=useSupported(()=>i&&"ResizeObserver"in i),re=()=>{$&&($.disconnect(),$=void 0)},ie=computed(()=>Array.isArray(n)?n.map(le=>unrefElement(le)):[unrefElement(n)]),ae=watch(ie,le=>{if(re(),V.value&&i){$=new ResizeObserver(t);for(const ue of le)ue&&$.observe(ue,g)}},{immediate:!0,flush:"post"}),oe=()=>{re(),ae()};return tryOnScopeDispose(oe),{isSupported:V,stop:oe}}function useElementBounding(n,t={}){const{reset:r=!0,windowResize:i=!0,windowScroll:g=!0,immediate:$=!0}=t,V=ref(0),re=ref(0),ie=ref(0),ae=ref(0),oe=ref(0),le=ref(0),ue=ref(0),de=ref(0);function he(){const pe=unrefElement(n);if(!pe){r&&(V.value=0,re.value=0,ie.value=0,ae.value=0,oe.value=0,le.value=0,ue.value=0,de.value=0);return}const _e=pe.getBoundingClientRect();V.value=_e.height,re.value=_e.bottom,ie.value=_e.left,ae.value=_e.right,oe.value=_e.top,le.value=_e.width,ue.value=_e.x,de.value=_e.y}return useResizeObserver(n,he),watch(()=>unrefElement(n),pe=>!pe&&he()),useMutationObserver(n,he,{attributeFilter:["style","class"]}),g&&useEventListener("scroll",he,{capture:!0,passive:!0}),i&&useEventListener("resize",he,{passive:!0}),tryOnMounted(()=>{$&&he()}),{height:V,bottom:re,left:ie,right:ae,top:oe,width:le,x:ue,y:de,update:he}}function useElementSize(n,t={width:0,height:0},r={}){const{window:i=defaultWindow,box:g="content-box"}=r,$=computed(()=>{var le,ue;return(ue=(le=unrefElement(n))==null?void 0:le.namespaceURI)==null?void 0:ue.includes("svg")}),V=ref(t.width),re=ref(t.height),{stop:ie}=useResizeObserver(n,([le])=>{const ue=g==="border-box"?le.borderBoxSize:g==="content-box"?le.contentBoxSize:le.devicePixelContentBoxSize;if(i&&$.value){const de=unrefElement(n);if(de){const he=de.getBoundingClientRect();V.value=he.width,re.value=he.height}}else if(ue){const de=Array.isArray(ue)?ue:[ue];V.value=de.reduce((he,{inlineSize:pe})=>he+pe,0),re.value=de.reduce((he,{blockSize:pe})=>he+pe,0)}else V.value=le.contentRect.width,re.value=le.contentRect.height},r);tryOnMounted(()=>{const le=unrefElement(n);le&&(V.value="offsetWidth"in le?le.offsetWidth:t.width,re.value="offsetHeight"in le?le.offsetHeight:t.height)});const ae=watch(()=>unrefElement(n),le=>{V.value=le?t.width:0,re.value=le?t.height:0});function oe(){ie(),ae()}return{width:V,height:re,stop:oe}}function useIntersectionObserver(n,t,r={}){const{root:i,rootMargin:g="0px",threshold:$=.1,window:V=defaultWindow,immediate:re=!0}=r,ie=useSupported(()=>V&&"IntersectionObserver"in V),ae=computed(()=>{const he=toValue(n);return(Array.isArray(he)?he:[he]).map(unrefElement).filter(notNullish)});let oe=noop$5;const le=ref(re),ue=ie.value?watch(()=>[ae.value,unrefElement(i),le.value],([he,pe])=>{if(oe(),!le.value||!he.length)return;const _e=new IntersectionObserver(t,{root:unrefElement(pe),rootMargin:g,threshold:$});he.forEach(Ce=>Ce&&_e.observe(Ce)),oe=()=>{_e.disconnect(),oe=noop$5}},{immediate:re,flush:"post"}):noop$5,de=()=>{oe(),ue(),le.value=!1};return tryOnScopeDispose(de),{isSupported:ie,isActive:le,pause(){oe(),le.value=!1},resume(){le.value=!0},stop:de}}const eventHandlers=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function useFullscreen(n,t={}){const{document:r=defaultDocument,autoExit:i=!1}=t,g=computed(()=>{var Ce;return(Ce=unrefElement(n))!=null?Ce:r==null?void 0:r.querySelector("html")}),$=ref(!1),V=computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(Ce=>r&&Ce in r||g.value&&Ce in g.value)),re=computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(Ce=>r&&Ce in r||g.value&&Ce in g.value)),ie=computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(Ce=>r&&Ce in r||g.value&&Ce in g.value)),ae=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(Ce=>r&&Ce in r),oe=useSupported(()=>g.value&&r&&V.value!==void 0&&re.value!==void 0&&ie.value!==void 0),le=()=>ae?(r==null?void 0:r[ae])===g.value:!1,ue=()=>{if(ie.value){if(r&&r[ie.value]!=null)return r[ie.value];{const Ce=g.value;if((Ce==null?void 0:Ce[ie.value])!=null)return!!Ce[ie.value]}}return!1};async function de(){if(!(!oe.value||!$.value)){if(re.value)if((r==null?void 0:r[re.value])!=null)await r[re.value]();else{const Ce=g.value;(Ce==null?void 0:Ce[re.value])!=null&&await Ce[re.value]()}$.value=!1}}async function he(){if(!oe.value||$.value)return;ue()&&await de();const Ce=g.value;V.value&&(Ce==null?void 0:Ce[V.value])!=null&&(await Ce[V.value](),$.value=!0)}async function pe(){await($.value?de():he())}const _e=()=>{const Ce=ue();(!Ce||Ce&&le())&&($.value=Ce)};return useEventListener(r,eventHandlers,_e,!1),useEventListener(()=>unrefElement(g),eventHandlers,_e,!1),i&&tryOnScopeDispose(de),{isSupported:oe,isFullscreen:$,enter:he,exit:de,toggle:pe}}function useLocalStorage(n,t,r={}){const{window:i=defaultWindow}=r;return useStorage(n,t,i==null?void 0:i.localStorage,r)}function useVModel(n,t,r,i={}){var g,$,V;const{clone:re=!1,passive:ie=!1,eventName:ae,deep:oe=!1,defaultValue:le,shouldEmit:ue}=i,de=getCurrentInstance(),he=r||(de==null?void 0:de.emit)||((g=de==null?void 0:de.$emit)==null?void 0:g.bind(de))||((V=($=de==null?void 0:de.proxy)==null?void 0:$.$emit)==null?void 0:V.bind(de==null?void 0:de.proxy));let pe=ae;t||(t="modelValue"),pe=pe||`update:${t.toString()}`;const _e=Ie=>re?typeof re=="function"?re(Ie):cloneFnJSON(Ie):Ie,Ce=()=>isDef$1(n[t])?_e(n[t]):le,xe=Ie=>{ue?ue(Ie)&&he(pe,Ie):he(pe,Ie)};if(ie){const Ie=Ce(),Ne=ref(Ie);let Oe=!1;return watch(()=>n[t],$e=>{Oe||(Oe=!0,Ne.value=_e($e),nextTick(()=>Oe=!1))}),watch(Ne,$e=>{!Oe&&($e!==n[t]||oe)&&xe($e)},{deep:oe}),Ne}else return computed({get(){return Ce()},set(Ie){xe(Ie)}})}function useWindowFocus(n={}){const{window:t=defaultWindow}=n;if(!t)return ref(!1);const r=ref(t.document.hasFocus());return useEventListener(t,"blur",()=>{r.value=!1}),useEventListener(t,"focus",()=>{r.value=!0}),r}function useWindowSize(n={}){const{window:t=defaultWindow,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:g=!0,includeScrollbar:$=!0}=n,V=ref(r),re=ref(i),ie=()=>{t&&($?(V.value=t.innerWidth,re.value=t.innerHeight):(V.value=t.document.documentElement.clientWidth,re.value=t.document.documentElement.clientHeight))};if(ie(),tryOnMounted(ie),useEventListener("resize",ie,{passive:!0}),g){const ae=useMediaQuery("(orientation: portrait)");watch(ae,()=>ie())}return{width:V,height:re}}const version="2.13.1",INSTALLED_KEY=Symbol("INSTALLED_KEY"),configProviderContextKey=Symbol(),defaultNamespace="el",statePrefix="is-",_bem=(n,t,r,i,g)=>{let $=`${n}-${t}`;return r&&($+=`-${r}`),i&&($+=`__${i}`),g&&($+=`--${g}`),$},namespaceContextKey=Symbol("namespaceContextKey"),useGetDerivedNamespace=n=>{const t=n||(getCurrentInstance()?inject(namespaceContextKey,ref(defaultNamespace)):ref(defaultNamespace));return computed(()=>unref(t)||defaultNamespace)},useNamespace=(n,t)=>{const r=useGetDerivedNamespace(t);return{namespace:r,b:(pe="")=>_bem(r.value,n,pe,"",""),e:pe=>pe?_bem(r.value,n,"",pe,""):"",m:pe=>pe?_bem(r.value,n,"","",pe):"",be:(pe,_e)=>pe&&_e?_bem(r.value,n,pe,_e,""):"",em:(pe,_e)=>pe&&_e?_bem(r.value,n,"",pe,_e):"",bm:(pe,_e)=>pe&&_e?_bem(r.value,n,pe,"",_e):"",bem:(pe,_e,Ce)=>pe&&_e&&Ce?_bem(r.value,n,pe,_e,Ce):"",is:(pe,..._e)=>{const Ce=_e.length>=1?_e[0]:!0;return pe&&Ce?`${statePrefix}${pe}`:""},cssVar:pe=>{const _e={};for(const Ce in pe)pe[Ce]&&(_e[`--${r.value}-${Ce}`]=pe[Ce]);return _e},cssVarName:pe=>`--${r.value}-${pe}`,cssVarBlock:pe=>{const _e={};for(const Ce in pe)pe[Ce]&&(_e[`--${r.value}-${n}-${Ce}`]=pe[Ce]);return _e},cssVarBlockName:pe=>`--${r.value}-${n}-${pe}`}};var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$1=root$1.Symbol;const Symbol$2=Symbol$1;var objectProto$h=Object.prototype,hasOwnProperty$f=objectProto$h.hasOwnProperty,nativeObjectToString$1=objectProto$h.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(n){var t=hasOwnProperty$f.call(n,symToStringTag$1),r=n[symToStringTag$1];try{n[symToStringTag$1]=void 0;var i=!0}catch{}var g=nativeObjectToString$1.call(n);return i&&(t?n[symToStringTag$1]=r:delete n[symToStringTag$1]),g}var objectProto$g=Object.prototype,nativeObjectToString=objectProto$g.toString;function objectToString(n){return nativeObjectToString.call(n)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(n){return n==null?n===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(n)?getRawTag(n):objectToString(n)}function isObjectLike(n){return n!=null&&typeof n=="object"}var symbolTag$3="[object Symbol]";function isSymbol(n){return typeof n=="symbol"||isObjectLike(n)&&baseGetTag(n)==symbolTag$3}function arrayMap(n,t){for(var r=-1,i=n==null?0:n.length,g=Array(i);++r0){if(++t>=HOT_COUNT)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}function constant(n){return function(){return n}}var defineProperty=function(){try{var n=getNative(Object,"defineProperty");return n({},"",{}),n}catch{}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(n,t){return defineProperty$1(n,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity$1;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach(n,t){for(var r=-1,i=n==null?0:n.length;++r-1}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(n,t){var r=typeof n;return t=t??MAX_SAFE_INTEGER$1,!!t&&(r=="number"||r!="symbol"&&reIsUint.test(n))&&n>-1&&n%1==0&&n-1&&n%1==0&&n<=MAX_SAFE_INTEGER}function isArrayLike$1(n){return n!=null&&isLength(n.length)&&!isFunction$3(n)}function isIterateeCall(n,t,r){if(!isObject$4(r))return!1;var i=typeof t;return(i=="number"?isArrayLike$1(r)&&isIndex(t,r.length):i=="string"&&t in r)?eq(r[t],n):!1}function createAssigner(n){return baseRest(function(t,r){var i=-1,g=r.length,$=g>1?r[g-1]:void 0,V=g>2?r[2]:void 0;for($=n.length>3&&typeof $=="function"?(g--,$):void 0,V&&isIterateeCall(r[0],r[1],V)&&($=g<3?void 0:$,g=1),t=Object(t);++i-1}function listCacheSet(n,t){var r=this.__data__,i=assocIndexOf(r,n);return i<0?(++this.size,r.push([n,t])):r[i][1]=t,this}function ListCache(n){var t=-1,r=n==null?0:n.length;for(this.clear();++t0&&r(re)?t>1?baseFlatten(re,t-1,r,i,g):arrayPush(g,re):i||(g[g.length]=re)}return g}function flatten$1(n){var t=n==null?0:n.length;return t?baseFlatten(n,1):[]}function flatRest(n){return setToString$1(overRest(n,void 0,flatten$1),n+"")}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$6=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$6=objectProto$6.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$2(n){if(!isObjectLike(n)||baseGetTag(n)!=objectTag$3)return!1;var t=getPrototype$1(n);if(t===null)return!0;var r=hasOwnProperty$6.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&funcToString.call(r)==objectCtorString}function baseSlice(n,t,r){var i=-1,g=n.length;t<0&&(t=-t>g?0:g+t),r=r>g?g:r,r<0&&(r+=g),g=t>r?0:r-t>>>0,t>>>=0;for(var $=Array(g);++i=t?n:t)),n}function clamp$3(n,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=toNumber(r),r=r===r?r:0),t!==void 0&&(t=toNumber(t),t=t===t?t:0),baseClamp(toNumber(n),t,r)}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r}function stackGet(n){return this.__data__.get(n)}function stackHas(n){return this.__data__.has(n)}var LARGE_ARRAY_SIZE$1=200;function stackSet(n,t){var r=this.__data__;if(r instanceof ListCache){var i=r.__data__;if(!Map$2||i.lengthre))return!1;var ae=$.get(n),oe=$.get(t);if(ae&&oe)return ae==t&&oe==n;var le=-1,ue=!0,de=r&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for($.set(n,t),$.set(t,n);++le=t||Ve<0||le&&Ue>=$}function Ce(){var $e=now$2();if(_e($e))return xe($e);re=setTimeout(Ce,pe($e))}function xe($e){return re=void 0,ue&&i?de($e):(i=g=void 0,V)}function Ie(){re!==void 0&&clearTimeout(re),ae=0,i=ie=g=re=void 0}function Ne(){return re===void 0?V:xe(now$2())}function Oe(){var $e=now$2(),Ve=_e($e);if(i=arguments,g=this,ie=$e,Ve){if(re===void 0)return he(ie);if(le)return clearTimeout(re),re=setTimeout(Ce,t),de(ie)}return re===void 0&&(re=setTimeout(Ce,t)),V}return Oe.cancel=Ie,Oe.flush=Ne,Oe}function assignMergeValue(n,t,r){(r!==void 0&&!eq(n[t],r)||r===void 0&&!(t in n))&&baseAssignValue(n,t,r)}function isArrayLikeObject(n){return isObjectLike(n)&&isArrayLike$1(n)}function safeGet(n,t){if(!(t==="constructor"&&typeof n[t]=="function")&&t!="__proto__")return n[t]}function toPlainObject(n){return copyObject(n,keysIn(n))}function baseMergeDeep(n,t,r,i,g,$,V){var re=safeGet(n,r),ie=safeGet(t,r),ae=V.get(ie);if(ae){assignMergeValue(n,r,ae);return}var oe=$?$(re,ie,r+"",n,t,V):void 0,le=oe===void 0;if(le){var ue=isArray$4(ie),de=!ue&&isBuffer$2(ie),he=!ue&&!de&&isTypedArray$4(ie);oe=ie,ue||de||he?isArray$4(re)?oe=re:isArrayLikeObject(re)?oe=copyArray$1(re):de?(le=!1,oe=cloneBuffer(ie,!0)):he?(le=!1,oe=cloneTypedArray(ie,!0)):oe=[]:isPlainObject$2(ie)||isArguments$1(ie)?(oe=re,isArguments$1(re)?oe=toPlainObject(re):(!isObject$4(re)||isFunction$3(re))&&(oe=initCloneObject(ie))):le=!1}le&&(V.set(ie,oe),g(oe,ie,i,$,V),V.delete(ie)),assignMergeValue(n,r,oe)}function baseMerge(n,t,r,i,g){n!==t&&baseFor$1(t,function($,V){if(g||(g=new Stack),isObject$4($))baseMergeDeep(n,t,V,r,baseMerge,i,g);else{var re=i?i(safeGet(n,V),$,V+"",n,t,g):void 0;re===void 0&&(re=$),assignMergeValue(n,V,re)}},keysIn)}function arrayIncludesWith(n,t,r){for(var i=-1,g=n==null?0:n.length;++i1),$}),copyObject(n,getAllKeysIn(n),r),i&&(r=baseClone(r,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone));for(var g=t.length;g--;)baseUnset(r,t[g]);return r});const omit$1=omit;function baseSet(n,t,r,i){if(!isObject$4(n))return n;t=castPath(t,n);for(var g=-1,$=t.length,V=$-1,re=n;re!=null&&++g<$;){var ie=toKey(t[g]),ae=r;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return n;if(g!=V){var oe=re[ie];ae=i?i(oe,ie,re):void 0,ae===void 0&&(ae=isObject$4(oe)?oe:isIndex(t[g+1])?[]:{})}assignValue(re,ie,ae),re=re[ie]}return n}function basePickBy(n,t,r){for(var i=-1,g=t.length,$={};++i=LARGE_ARRAY_SIZE){var ae=t?null:createSet$1(n);if(ae)return setToArray(ae);V=!1,g=cacheHas,ie=new SetCache}else ie=t?[]:re;e:for(;++i<$;){var oe=n[i],le=t?t(oe):oe;if(oe=r||oe!==0?oe:0,V&&le===le){for(var ue=ie.length;ue--;)if(ie[ue]===le)continue e;t&&ie.push(le),re.push(oe)}else g(ie,le,r)||(ie!==re&&ie.push(le),re.push(oe))}return re}var union=baseRest(function(n){return baseUniq(baseFlatten(n,1,isArrayLikeObject,!0))});const union$1=union,isUndefined$1=n=>n===void 0,isBoolean$1=n=>typeof n=="boolean",isNumber$2=n=>typeof n=="number",isEmpty=n=>!n&&n!==0||isArray$5(n)&&n.length===0||isObject$6(n)&&!Object.keys(n).length,isElement$1=n=>typeof Element>"u"?!1:n instanceof Element,isPropAbsent=n=>isNil(n),isStringNumber=n=>isString$2(n)?!Number.isNaN(Number(n)):!1,isWindow=n=>n===window;class ElementPlusError extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function throwError$1(n,t){throw new ElementPlusError(`[${n}] ${t}`)}function debugWarn(n,t){}const initial={current:0},zIndex=ref(0),defaultInitialZIndex=2e3,ZINDEX_INJECTION_KEY=Symbol("elZIndexContextKey"),zIndexContextKey=Symbol("zIndexContextKey"),useZIndex=n=>{const t=getCurrentInstance()?inject(ZINDEX_INJECTION_KEY,initial):initial,r=n||(getCurrentInstance()?inject(zIndexContextKey,void 0):void 0),i=computed(()=>{const V=unref(r);return isNumber$2(V)?V:defaultInitialZIndex}),g=computed(()=>i.value+zIndex.value),$=()=>(t.current++,zIndex.value=t.current,g.value);return!isClient&&inject(ZINDEX_INJECTION_KEY),{initialZIndex:i,currentZIndex:g,nextZIndex:$}};var English={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 buildTranslator=n=>(t,r)=>translate$1(t,r,unref(n)),translate$1=(n,t,r)=>get$1(r,n,n).replace(/\{(\w+)\}/g,(i,g)=>{var $;return`${($=t==null?void 0:t[g])!=null?$:`{${g}}`}`}),buildLocaleContext=n=>{const t=computed(()=>unref(n).name),r=isRef(n)?n:ref(n);return{lang:t,locale:r,t:buildTranslator(n)}},localeContextKey=Symbol("localeContextKey"),useLocale=n=>{const t=n||inject(localeContextKey,ref());return buildLocaleContext(computed(()=>t.value||English))},epPropKey="__epPropKey",definePropType=n=>n,isEpProp=n=>isObject$6(n)&&!!n[epPropKey],buildProp=(n,t)=>{if(!isObject$6(n)||isEpProp(n))return n;const{values:r,required:i,default:g,type:$,validator:V}=n,ie={type:$,required:!!i,validator:r||V?ae=>{let oe=!1,le=[];if(r&&(le=Array.from(r),hasOwn$1(n,"default")&&le.push(g),oe||(oe=le.includes(ae))),V&&(oe||(oe=V(ae))),!oe&&le.length>0){const ue=[...new Set(le)].map(de=>JSON.stringify(de)).join(", ");warn$2(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${ue}], got value ${JSON.stringify(ae)}.`)}return oe}:void 0,[epPropKey]:!0};return hasOwn$1(n,"default")&&(ie.default=g),ie},buildProps=n=>fromPairs(Object.entries(n).map(([t,r])=>[t,buildProp(r,t)])),componentSizes=["","default","small","large"],useSizeProp=buildProp({type:String,values:componentSizes,required:!1}),SIZE_INJECTION_KEY=Symbol("size"),useGlobalSize=()=>{const n=inject(SIZE_INJECTION_KEY,{});return computed(()=>unref(n.size)||"")},emptyValuesContextKey=Symbol("emptyValuesContextKey"),DEFAULT_EMPTY_VALUES=["",void 0,null],DEFAULT_VALUE_ON_CLEAR=void 0,useEmptyValuesProps=buildProps({emptyValues:Array,valueOnClear:{type:definePropType([String,Number,Boolean,Function]),default:void 0,validator:n=>(n=isFunction$4(n)?n():n,isArray$5(n)?n.every(t=>!t):!n)}}),useEmptyValues=(n,t)=>{const r=getCurrentInstance()?inject(emptyValuesContextKey,ref({})):ref({}),i=computed(()=>n.emptyValues||r.value.emptyValues||DEFAULT_EMPTY_VALUES),g=computed(()=>isFunction$4(n.valueOnClear)?n.valueOnClear():n.valueOnClear!==void 0?n.valueOnClear:isFunction$4(r.value.valueOnClear)?r.value.valueOnClear():r.value.valueOnClear!==void 0?r.value.valueOnClear:t!==void 0?t:DEFAULT_VALUE_ON_CLEAR),$=V=>{let re=!0;return isArray$5(V)?re=i.value.some(ie=>isEqual$1(V,ie)):re=i.value.includes(V),re};return $(g.value),{emptyValues:i,valueOnClear:g,isEmptyValue:$}},keysOf=n=>Object.keys(n),entriesOf=n=>Object.entries(n),getProp=(n,t,r)=>({get value(){return get$1(n,t,r)},set value(i){set$1(n,t,i)}}),globalConfig=ref();function useGlobalConfig(n,t=void 0){const r=getCurrentInstance()?inject(configProviderContextKey,globalConfig):globalConfig;return n?computed(()=>{var i,g;return(g=(i=r.value)==null?void 0:i[n])!=null?g:t}):r}function useGlobalComponentSettings(n,t){const r=useGlobalConfig(),i=useNamespace(n,computed(()=>{var re;return((re=r.value)==null?void 0:re.namespace)||defaultNamespace})),g=useLocale(computed(()=>{var re;return(re=r.value)==null?void 0:re.locale})),$=useZIndex(computed(()=>{var re;return((re=r.value)==null?void 0:re.zIndex)||defaultInitialZIndex})),V=computed(()=>{var re;return unref(t)||((re=r.value)==null?void 0:re.size)||""});return provideGlobalConfig(computed(()=>unref(r)||{})),{ns:i,locale:g,zIndex:$,size:V}}const provideGlobalConfig=(n,t,r=!1)=>{var i;const g=!!getCurrentInstance(),$=g?useGlobalConfig():void 0,V=(i=t==null?void 0:t.provide)!=null?i:g?provide:void 0;if(!V)return;const re=computed(()=>{const ie=unref(n);return $!=null&&$.value?mergeConfig$1($.value,ie):ie});return V(configProviderContextKey,re),V(localeContextKey,computed(()=>re.value.locale)),V(namespaceContextKey,computed(()=>re.value.namespace)),V(zIndexContextKey,computed(()=>re.value.zIndex)),V(SIZE_INJECTION_KEY,{size:computed(()=>re.value.size||"")}),V(emptyValuesContextKey,computed(()=>({emptyValues:re.value.emptyValues,valueOnClear:re.value.valueOnClear}))),(r||!globalConfig.value)&&(globalConfig.value=re.value),re},mergeConfig$1=(n,t)=>{const r=[...new Set([...keysOf(n),...keysOf(t)])],i={};for(const g of r)i[g]=t[g]!==void 0?t[g]:n[g];return i},makeInstaller=(n=[])=>({version,install:(r,i)=>{r[INSTALLED_KEY]||(r[INSTALLED_KEY]=!0,n.forEach(g=>r.use(g)),i&&provideGlobalConfig(i,r,!0))}}),teleportProps=buildProps({to:{type:definePropType([String,Object]),required:!0},disabled:Boolean});var _export_sfc=(n,t)=>{const r=n.__vccOpts||n;for(const[i,g]of t)r[i]=g;return r};const _sfc_main$30=defineComponent({__name:"teleport",props:teleportProps,setup(n){return(t,r)=>t.disabled?renderSlot(t.$slots,"default",{key:0}):(openBlock(),createBlock(Teleport$1,{key:1,to:t.to},[renderSlot(t.$slots,"default")],8,["to"]))}});var Teleport=_export_sfc(_sfc_main$30,[["__file","/home/runner/work/element-plus/element-plus/packages/components/teleport/src/teleport.vue"]]);const withInstall=(n,t)=>{if(n.install=r=>{for(const i of[n,...Object.values(t??{})])r.component(i.name,i)},t)for(const[r,i]of Object.entries(t))n[r]=i;return n},withInstallFunction=(n,t)=>(n.install=r=>{n._context=r._context,r.config.globalProperties[t]=n},n),withInstallDirective=(n,t)=>(n.install=r=>{r.directive(t,n)},n),withNoopInstall=n=>(n.install=NOOP,n),ElTeleport=withInstall(Teleport),UPDATE_MODEL_EVENT="update:modelValue",CHANGE_EVENT="change",INPUT_EVENT="input",affixProps=buildProps({zIndex:{type:definePropType([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:teleportProps.to.type,default:"body"}}),affixEmits={scroll:({scrollTop:n,fixed:t})=>isNumber$2(n)&&isBoolean$1(t),[CHANGE_EVENT]:n=>isBoolean$1(n)};function easeInOutCubic(n,t,r,i){const g=r-t;return n/=i/2,n<1?g/2*n*n*n+t:g/2*((n-=2)*n*n+2)+t}const rAF=n=>isClient?window.requestAnimationFrame(n):setTimeout(n,16),cAF=n=>isClient?window.cancelAnimationFrame(n):clearTimeout(n),classNameToArray=(n="")=>n.split(" ").filter(t=>!!t.trim()),hasClass=(n,t)=>{if(!n||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return n.classList.contains(t)},addClass=(n,t)=>{!n||!t.trim()||n.classList.add(...classNameToArray(t))},removeClass=(n,t)=>{!n||!t.trim()||n.classList.remove(...classNameToArray(t))},getStyle$1=(n,t)=>{var r;if(!isClient||!n||!t)return"";let i=camelize(t);i==="float"&&(i="cssFloat");try{const g=n.style[i];if(g)return g;const $=(r=document.defaultView)==null?void 0:r.getComputedStyle(n,"");return $?$[i]:""}catch{return n.style[i]}},setStyle=(n,t,r)=>{if(!(!n||!t))if(isObject$6(t))entriesOf(t).forEach(([i,g])=>setStyle(n,i,g));else{const i=camelize(t);n.style[i]=r}};function addUnit(n,t="px"){if(!n&&n!==0)return"";if(isNumber$2(n)||isStringNumber(n))return`${n}${t}`;if(isString$2(n))return n}const isScroll=(n,t)=>{if(!isClient)return!1;const r={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],i=getStyle$1(n,r);return["scroll","auto","overlay"].some(g=>i.includes(g))},getScrollContainer=(n,t)=>{if(!isClient)return;let r=n;for(;r;){if([window,document,document.documentElement].includes(r))return window;if(isScroll(r,t))return r;r=r.parentNode}return r};let scrollBarWidth;const getScrollBarWidth=n=>{var t;if(!isClient)return 0;if(scrollBarWidth!==void 0)return scrollBarWidth;const r=document.createElement("div");r.className=`${n}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const i=r.offsetWidth;r.style.overflow="scroll";const g=document.createElement("div");g.style.width="100%",r.appendChild(g);const $=g.offsetWidth;return(t=r.parentNode)==null||t.removeChild(r),scrollBarWidth=i-$,scrollBarWidth};function scrollIntoView(n,t){if(!isClient)return;if(!t){n.scrollTop=0;return}const r=[];let i=t.offsetParent;for(;i!==null&&n!==i&&n.contains(i);)r.push(i),i=i.offsetParent;const g=t.offsetTop+r.reduce((ie,ae)=>ie+ae.offsetTop,0),$=g+t.offsetHeight,V=n.scrollTop,re=V+n.clientHeight;gre&&(n.scrollTop=$-n.clientHeight)}function animateScrollTo(n,t,r,i,g){const $=Date.now();let V;const re=()=>{const ae=Date.now()-$,oe=easeInOutCubic(ae>i?i:ae,t,r,i);isWindow(n)?n.scrollTo(window.pageXOffset,oe):n.scrollTop=oe,ae{V&&cAF(V)}}const getScrollElement=(n,t)=>isWindow(t)?n.ownerDocument.documentElement:t,getScrollTop=n=>isWindow(n)?window.scrollY:n.scrollTop,COMPONENT_NAME$o="ElAffix",_sfc_main$2$=defineComponent({name:COMPONENT_NAME$o,__name:"affix",props:affixProps,emits:affixEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("affix"),V=shallowRef(),re=shallowRef(),ie=shallowRef(),{height:ae}=useWindowSize(),{height:oe,width:le,top:ue,bottom:de,left:he,update:pe}=useElementBounding(re,{windowScroll:!1}),_e=useElementBounding(V),Ce=ref(!1),xe=ref(0),Ie=ref(0),Ne=computed(()=>!i.teleported||!Ce.value),Oe=computed(()=>({height:Ce.value?`${oe.value}px`:"",width:Ce.value?`${le.value}px`:""})),$e=computed(()=>{if(!Ce.value)return{};const ze=addUnit(i.offset);return{height:`${oe.value}px`,width:`${le.value}px`,top:i.position==="top"?ze:"",bottom:i.position==="bottom"?ze:"",left:i.teleported?`${he.value}px`:"",transform:Ie.value?`translateY(${Ie.value}px)`:"",zIndex:i.zIndex}}),Ve=()=>{if(!ie.value)return;xe.value=ie.value instanceof Window?document.documentElement.scrollTop:ie.value.scrollTop||0;const{position:ze,target:Pt,offset:qe}=i,Et=qe+oe.value;if(ze==="top")if(Pt){const kt=_e.bottom.value-Et;Ce.value=qe>ue.value&&_e.bottom.value>0,Ie.value=kt<0?kt:0}else Ce.value=qe>ue.value;else if(Pt){const kt=ae.value-_e.top.value-Et;Ce.value=ae.value-qe_e.top.value,Ie.value=kt<0?-kt:0}else Ce.value=ae.value-qe{if(!Ce.value){pe();return}Ce.value=!1,await nextTick(),pe(),Ce.value=!0},Fe=async()=>{pe(),await nextTick(),g("scroll",{scrollTop:xe.value,fixed:Ce.value})};return watch(Ce,ze=>g(CHANGE_EVENT,ze)),onMounted(()=>{var ze;i.target?(V.value=(ze=document.querySelector(i.target))!=null?ze:void 0,V.value||throwError$1(COMPONENT_NAME$o,`Target does not exist: ${i.target}`)):V.value=document.documentElement,ie.value=getScrollContainer(re.value,!0),pe()}),useEventListener(ie,"scroll",Fe),watchEffect(Ve),t({update:Ve,updateRoot:Ue}),(ze,Pt)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:re,class:normalizeClass(unref($).b()),style:normalizeStyle$1(Oe.value)},[createVNode$1(unref(ElTeleport),{disabled:Ne.value,to:ze.appendTo},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass({[unref($).m("fixed")]:Ce.value}),style:normalizeStyle$1($e.value)},[renderSlot(ze.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}});var Affix=_export_sfc(_sfc_main$2$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const ElAffix=withInstall(Affix),iconProps=buildProps({size:{type:definePropType([Number,String])},color:{type:String}}),_sfc_main$2_=defineComponent({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:iconProps,setup(n){const t=n,r=useNamespace("icon"),i=computed(()=>{const{size:g,color:$}=t,V=addUnit(g);return!V&&!$?{}:{fontSize:V,"--color":$}});return(g,$)=>(openBlock(),createElementBlock("i",mergeProps({class:unref(r).b(),style:i.value},g.$attrs),[renderSlot(g.$slots,"default")],16))}});var Icon=_export_sfc(_sfc_main$2_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ElIcon=withInstall(Icon);/*! Element Plus Icons Vue v2.3.2 */var _sfc_main$2Z=defineComponent({name:"AddLocation",__name:"add-location",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),createBaseVNode("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),add_location_default=_sfc_main$2Z,_sfc_main2=defineComponent({name:"Aim",__name:"aim",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"}),createBaseVNode("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),aim_default=_sfc_main2,_sfc_main3=defineComponent({name:"AlarmClock",__name:"alarm-clock",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),createBaseVNode("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),alarm_clock_default=_sfc_main3,_sfc_main4=defineComponent({name:"Apple",__name:"apple",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M599.872 203.776a189.4 189.4 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a427 427 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664m-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688s81.28 34.688 136.96 33.536c56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152"})]))}}),apple_default=_sfc_main4,_sfc_main5=defineComponent({name:"ArrowDownBold",__name:"arrow-down-bold",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"})]))}}),arrow_down_bold_default=_sfc_main5,_sfc_main6=defineComponent({name:"ArrowDown",__name:"arrow-down",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),arrow_down_default=_sfc_main6,_sfc_main7=defineComponent({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),arrow_left_bold_default=_sfc_main7,_sfc_main8=defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),arrow_left_default=_sfc_main8,_sfc_main9=defineComponent({name:"ArrowRightBold",__name:"arrow-right-bold",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"})]))}}),arrow_right_bold_default=_sfc_main9,_sfc_main10=defineComponent({name:"ArrowRight",__name:"arrow-right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),arrow_right_default=_sfc_main10,_sfc_main11=defineComponent({name:"ArrowUpBold",__name:"arrow-up-bold",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),arrow_up_bold_default=_sfc_main11,_sfc_main12=defineComponent({name:"ArrowUp",__name:"arrow-up",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),arrow_up_default=_sfc_main12,_sfc_main13=defineComponent({name:"Avatar",__name:"avatar",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),avatar_default=_sfc_main13,_sfc_main14=defineComponent({name:"Back",__name:"back",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),createBaseVNode("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"})]))}}),back_default=_sfc_main14,_sfc_main15=defineComponent({name:"Baseball",__name:"baseball",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6m45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),createBaseVNode("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896M108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1737 1737 0 0 1-11.392-65.728"})]))}}),baseball_default=_sfc_main15,_sfc_main16=defineComponent({name:"Basketball",__name:"basketball",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M778.752 788.224a382.46 382.46 0 0 0 116.032-245.632 256.51 256.51 0 0 0-241.728-13.952 762.9 762.9 0 0 1 125.696 259.584m-55.04 44.224a699.65 699.65 0 0 0-125.056-269.632 256.13 256.13 0 0 0-56.064 331.968 382.7 382.7 0 0 0 181.12-62.336m-254.08 61.248A320.13 320.13 0 0 1 557.76 513.6a716 716 0 0 0-48.192-48.128 320.13 320.13 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.13 256.13 0 0 0 331.072-56.448 699.65 699.65 0 0 0-268.8-124.352 382.66 382.66 0 0 0-62.272 180.8m106.56-235.84a762.9 762.9 0 0 1 258.688 125.056 256.51 256.51 0 0 0-13.44-241.088A382.46 382.46 0 0 0 235.84 245.248m318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a780 780 0 0 1 66.176 66.112 320.83 320.83 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),basketball_default=_sfc_main16,_sfc_main17=defineComponent({name:"BellFilled",__name:"bell-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.13 320.13 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),bell_filled_default=_sfc_main17,_sfc_main18=defineComponent({name:"Bell",__name:"bell",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),createBaseVNode("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),createBaseVNode("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),bell_default=_sfc_main18,_sfc_main19=defineComponent({name:"Bicycle",__name:"bicycle",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),createBaseVNode("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),createBaseVNode("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),createBaseVNode("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),bicycle_default=_sfc_main19,_sfc_main20=defineComponent({name:"BottomLeft",__name:"bottom-left",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),createBaseVNode("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312z"})]))}}),bottom_left_default=_sfc_main20,_sfc_main21=defineComponent({name:"BottomRight",__name:"bottom-right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),createBaseVNode("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),bottom_right_default=_sfc_main21,_sfc_main22=defineComponent({name:"Bottom",__name:"bottom",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),bottom_default=_sfc_main22,_sfc_main23=defineComponent({name:"Bowl",__name:"bowl",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M714.432 704a351.74 351.74 0 0 0 148.16-256H161.408a351.74 351.74 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),bowl_default=_sfc_main23,_sfc_main24=defineComponent({name:"Box",__name:"box",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),createBaseVNode("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),createBaseVNode("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),box_default=_sfc_main24,_sfc_main25=defineComponent({name:"Briefcase",__name:"briefcase",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),briefcase_default=_sfc_main25,_sfc_main26=defineComponent({name:"BrushFilled",__name:"brush-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),brush_filled_default=_sfc_main26,_sfc_main27=defineComponent({name:"Brush",__name:"brush",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a664 664 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168"})]))}}),brush_default=_sfc_main27,_sfc_main28=defineComponent({name:"Burger",__name:"burger",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),burger_default=_sfc_main28,_sfc_main29=defineComponent({name:"Calendar",__name:"calendar",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),calendar_default=_sfc_main29,_sfc_main30=defineComponent({name:"CameraFilled",__name:"camera-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),camera_filled_default=_sfc_main30,_sfc_main31=defineComponent({name:"Camera",__name:"camera",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),camera_default=_sfc_main31,_sfc_main32=defineComponent({name:"CaretBottom",__name:"caret-bottom",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),caret_bottom_default=_sfc_main32,_sfc_main33=defineComponent({name:"CaretLeft",__name:"caret-left",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),caret_left_default=_sfc_main33,_sfc_main34=defineComponent({name:"CaretRight",__name:"caret-right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),caret_right_default=_sfc_main34,_sfc_main35=defineComponent({name:"CaretTop",__name:"caret-top",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),caret_top_default=_sfc_main35,_sfc_main36=defineComponent({name:"Cellphone",__name:"cellphone",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),cellphone_default=_sfc_main36,_sfc_main37=defineComponent({name:"ChatDotRound",__name:"chat-dot-round",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),createBaseVNode("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),chat_dot_round_default=_sfc_main37,_sfc_main38=defineComponent({name:"ChatDotSquare",__name:"chat-dot-square",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),createBaseVNode("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),chat_dot_square_default=_sfc_main38,_sfc_main39=defineComponent({name:"ChatLineRound",__name:"chat-line-round",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),createBaseVNode("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),chat_line_round_default=_sfc_main39,_sfc_main40=defineComponent({name:"ChatLineSquare",__name:"chat-line-square",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),createBaseVNode("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),chat_line_square_default=_sfc_main40,_sfc_main41=defineComponent({name:"ChatRound",__name:"chat-round",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),chat_round_default=_sfc_main41,_sfc_main42=defineComponent({name:"ChatSquare",__name:"chat-square",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),chat_square_default=_sfc_main42,_sfc_main43=defineComponent({name:"Check",__name:"check",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),check_default=_sfc_main43,_sfc_main44=defineComponent({name:"Checked",__name:"checked",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),checked_default=_sfc_main44,_sfc_main45=defineComponent({name:"Cherry",__name:"cherry",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6M288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),cherry_default=_sfc_main45,_sfc_main46=defineComponent({name:"Chicken",__name:"chicken",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.7 106.7 0 0 1-26.176-19.072 106.7 106.7 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112m57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52z"})]))}}),chicken_default=_sfc_main46,_sfc_main47=defineComponent({name:"ChromeFilled",__name:"chrome-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.37 212.37 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67"}),createBaseVNode("path",{fill:"currentColor",d:"M576.79 401.63a127.9 127.9 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128 128 0 0 0-2.16 127.44l1.24 2.13a127.9 127.9 0 0 0 46.36 46.61 127.9 127.9 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.98 127.98 0 0 0 .29-127.46 127.96 127.96 0 0 0-46.36-46.91"}),createBaseVNode("path",{fill:"currentColor",d:"M394.45 333.96A213.34 213.34 0 0 1 512 298.67h369.58A426.5 426.5 0 0 0 512 85.34a425.6 425.6 0 0 0-171.74 35.98 425.6 425.6 0 0 0-142.62 102.22l118.14 204.63a213.4 213.4 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.3 213.3 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.3 213.3 0 0 1-122.77-21.91"})]))}}),chrome_filled_default=_sfc_main47,_sfc_main48=defineComponent({name:"CircleCheckFilled",__name:"circle-check-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),circle_check_filled_default=_sfc_main48,_sfc_main49=defineComponent({name:"CircleCheck",__name:"circle-check",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"}),createBaseVNode("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"})]))}}),circle_check_default=_sfc_main49,_sfc_main50=defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),circle_close_filled_default=_sfc_main50,_sfc_main51=defineComponent({name:"CircleClose",__name:"circle-close",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"}),createBaseVNode("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"})]))}}),circle_close_default=_sfc_main51,_sfc_main52=defineComponent({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"})]))}}),circle_plus_filled_default=_sfc_main52,_sfc_main53=defineComponent({name:"CirclePlus",__name:"circle-plus",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),createBaseVNode("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),createBaseVNode("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"})]))}}),circle_plus_default=_sfc_main53,_sfc_main54=defineComponent({name:"Clock",__name:"clock",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"}),createBaseVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),clock_default=_sfc_main54,_sfc_main55=defineComponent({name:"CloseBold",__name:"close-bold",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),close_bold_default=_sfc_main55,_sfc_main56=defineComponent({name:"Close",__name:"close",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),close_default=_sfc_main56,_sfc_main57=defineComponent({name:"Cloudy",__name:"cloudy",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),cloudy_default=_sfc_main57,_sfc_main58=defineComponent({name:"CoffeeCup",__name:"coffee-cup",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.13 256.13 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),coffee_cup_default=_sfc_main58,_sfc_main59=defineComponent({name:"Coffee",__name:"coffee",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64zm68.736 64 36.544 512H708.16l36.544-512z"})]))}}),coffee_default=_sfc_main59,_sfc_main60=defineComponent({name:"Coin",__name:"coin",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"}),createBaseVNode("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"}),createBaseVNode("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),coin_default=_sfc_main60,_sfc_main61=defineComponent({name:"ColdDrink",__name:"cold-drink",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.06 192.06 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),cold_drink_default=_sfc_main61,_sfc_main62=defineComponent({name:"CollectionTag",__name:"collection-tag",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),collection_tag_default=_sfc_main62,_sfc_main63=defineComponent({name:"Collection",__name:"collection",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),createBaseVNode("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),collection_default=_sfc_main63,_sfc_main64=defineComponent({name:"Comment",__name:"comment",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),comment_default=_sfc_main64,_sfc_main65=defineComponent({name:"Compass",__name:"compass",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"}),createBaseVNode("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),compass_default=_sfc_main65,_sfc_main66=defineComponent({name:"Connection",__name:"connection",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),createBaseVNode("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),connection_default=_sfc_main66,_sfc_main67=defineComponent({name:"Coordinate",__name:"coordinate",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),createBaseVNode("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),coordinate_default=_sfc_main67,_sfc_main68=defineComponent({name:"CopyDocument",__name:"copy-document",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),createBaseVNode("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),copy_document_default=_sfc_main68,_sfc_main69=defineComponent({name:"Cpu",__name:"cpu",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),createBaseVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),cpu_default=_sfc_main69,_sfc_main70=defineComponent({name:"CreditCard",__name:"credit-card",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.35 52.35 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.35 52.35 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.35 52.35 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.35 52.35 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448S852.928 864 795.968 864H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.3 116.3 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448s41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384s17.088 41.6 17.088 98.56z"}),createBaseVNode("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),credit_card_default=_sfc_main70,_sfc_main71=defineComponent({name:"Crop",__name:"crop",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),createBaseVNode("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),crop_default=_sfc_main71,_sfc_main72=defineComponent({name:"DArrowLeft",__name:"d-arrow-left",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),d_arrow_left_default=_sfc_main72,_sfc_main73=defineComponent({name:"DArrowRight",__name:"d-arrow-right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),d_arrow_right_default=_sfc_main73,_sfc_main74=defineComponent({name:"DCaret",__name:"d-caret",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),d_caret_default=_sfc_main74,_sfc_main75=defineComponent({name:"DataAnalysis",__name:"data-analysis",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),data_analysis_default=_sfc_main75,_sfc_main76=defineComponent({name:"DataBoard",__name:"data-board",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),createBaseVNode("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),createBaseVNode("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),data_board_default=_sfc_main76,_sfc_main77=defineComponent({name:"DataLine",__name:"data-line",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),data_line_default=_sfc_main77,_sfc_main78=defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),delete_filled_default=_sfc_main78,_sfc_main79=defineComponent({name:"DeleteLocation",__name:"delete-location",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),createBaseVNode("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),delete_location_default=_sfc_main79,_sfc_main80=defineComponent({name:"Delete",__name:"delete",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),delete_default=_sfc_main80,_sfc_main81=defineComponent({name:"Dessert",__name:"dessert",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.81 143.81 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.81 143.81 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),dessert_default=_sfc_main81,_sfc_main82=defineComponent({name:"Discount",__name:"discount",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),createBaseVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),discount_default=_sfc_main82,_sfc_main83=defineComponent({name:"DishDot",__name:"dish-dot",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.19 448.19 0 0 1 955.392 768H68.544A448.19 448.19 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),dish_dot_default=_sfc_main83,_sfc_main84=defineComponent({name:"Dish",__name:"dish",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),dish_default=_sfc_main84,_sfc_main85=defineComponent({name:"DocumentAdd",__name:"document-add",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),document_add_default=_sfc_main85,_sfc_main86=defineComponent({name:"DocumentChecked",__name:"document-checked",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),document_checked_default=_sfc_main86,_sfc_main87=defineComponent({name:"DocumentCopy",__name:"document-copy",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),document_copy_default=_sfc_main87,_sfc_main88=defineComponent({name:"DocumentDelete",__name:"document-delete",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248z"})]))}}),document_delete_default=_sfc_main88,_sfc_main89=defineComponent({name:"DocumentRemove",__name:"document-remove",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),document_remove_default=_sfc_main89,_sfc_main90=defineComponent({name:"Document",__name:"document",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),document_default=_sfc_main90,_sfc_main91=defineComponent({name:"Download",__name:"download",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),download_default=_sfc_main91,_sfc_main92=defineComponent({name:"Drizzling",__name:"drizzling",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),drizzling_default=_sfc_main92,_sfc_main93=defineComponent({name:"EditPen",__name:"edit-pen",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),edit_pen_default=_sfc_main93,_sfc_main94=defineComponent({name:"Edit",__name:"edit",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),createBaseVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),edit_default=_sfc_main94,_sfc_main95=defineComponent({name:"ElemeFilled",__name:"eleme-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.69 330.69 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.55 47.55 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.3 234.3 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.55 47.55 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),eleme_filled_default=_sfc_main95,_sfc_main96=defineComponent({name:"Eleme",__name:"eleme",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24m526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.23 63.23 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8z"})]))}}),eleme_default=_sfc_main96,_sfc_main97=defineComponent({name:"ElementPlus",__name:"element-plus",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),element_plus_default=_sfc_main97,_sfc_main98=defineComponent({name:"Expand",__name:"expand",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),expand_default=_sfc_main98,_sfc_main99=defineComponent({name:"Failed",__name:"failed",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),failed_default=_sfc_main99,_sfc_main100=defineComponent({name:"Female",__name:"female",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),createBaseVNode("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),female_default=_sfc_main100,_sfc_main101=defineComponent({name:"Files",__name:"files",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),files_default=_sfc_main101,_sfc_main102=defineComponent({name:"Film",__name:"film",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),film_default=_sfc_main102,_sfc_main103=defineComponent({name:"Filter",__name:"filter",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),filter_default=_sfc_main103,_sfc_main104=defineComponent({name:"Finished",__name:"finished",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),finished_default=_sfc_main104,_sfc_main105=defineComponent({name:"FirstAidKit",__name:"first-aid-kit",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),createBaseVNode("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),first_aid_kit_default=_sfc_main105,_sfc_main106=defineComponent({name:"Flag",__name:"flag",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),flag_default=_sfc_main106,_sfc_main107=defineComponent({name:"Fold",__name:"fold",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),fold_default=_sfc_main107,_sfc_main108=defineComponent({name:"FolderAdd",__name:"folder-add",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),folder_add_default=_sfc_main108,_sfc_main109=defineComponent({name:"FolderChecked",__name:"folder-checked",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),folder_checked_default=_sfc_main109,_sfc_main110=defineComponent({name:"FolderDelete",__name:"folder-delete",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),folder_delete_default=_sfc_main110,_sfc_main111=defineComponent({name:"FolderOpened",__name:"folder-opened",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),folder_opened_default=_sfc_main111,_sfc_main112=defineComponent({name:"FolderRemove",__name:"folder-remove",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),folder_remove_default=_sfc_main112,_sfc_main113=defineComponent({name:"Folder",__name:"folder",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),folder_default=_sfc_main113,_sfc_main114=defineComponent({name:"Food",__name:"food",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),food_default=_sfc_main114,_sfc_main115=defineComponent({name:"Football",__name:"football",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),createBaseVNode("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a386 386 0 0 1-80.448-91.648m653.696-5.312a385.9 385.9 0 0 1-83.776 96.96l-32.512-56.384a322.9 322.9 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184M465.984 445.248l11.136-63.104a323.6 323.6 0 0 0 69.76 0l11.136 63.104a388 388 0 0 1-92.032 0m-62.72-12.8A381.8 381.8 0 0 1 320 396.544l32-55.424a320 320 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.8 381.8 0 0 1-83.328 35.84l-11.2-63.552A320 320 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.9 385.9 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072m657.536.128a1443 1443 0 0 1-49.024 43.072 321.4 321.4 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408M465.92 578.752a388 388 0 0 1 92.032 0l-11.136 63.104a323.6 323.6 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a320 320 0 0 0-62.464 27.712L320 627.392a381.8 381.8 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.3 318.3 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),football_default=_sfc_main115,_sfc_main116=defineComponent({name:"ForkSpoon",__name:"fork-spoon",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56M672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),fork_spoon_default=_sfc_main116,_sfc_main117=defineComponent({name:"Fries",__name:"fries",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.74 95.74 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128 128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132 132 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),fries_default=_sfc_main117,_sfc_main118=defineComponent({name:"FullScreen",__name:"full-screen",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),full_screen_default=_sfc_main118,_sfc_main119=defineComponent({name:"GobletFull",__name:"goblet-full",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),goblet_full_default=_sfc_main119,_sfc_main120=defineComponent({name:"GobletSquareFull",__name:"goblet-square-full",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952 952 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),goblet_square_full_default=_sfc_main120,_sfc_main121=defineComponent({name:"GobletSquare",__name:"goblet-square",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),goblet_square_default=_sfc_main121,_sfc_main122=defineComponent({name:"Goblet",__name:"goblet",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),goblet_default=_sfc_main122,_sfc_main123=defineComponent({name:"GoldMedal",__name:"gold-medal",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16M640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a360 360 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98"}),createBaseVNode("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),gold_medal_default=_sfc_main123,_sfc_main124=defineComponent({name:"GoodsFilled",__name:"goods-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),goods_filled_default=_sfc_main124,_sfc_main125=defineComponent({name:"Goods",__name:"goods",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),goods_default=_sfc_main125,_sfc_main126=defineComponent({name:"Grape",__name:"grape",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),grape_default=_sfc_main126,_sfc_main127=defineComponent({name:"Grid",__name:"grid",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),grid_default=_sfc_main127,_sfc_main128=defineComponent({name:"Guide",__name:"guide",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),createBaseVNode("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),guide_default=_sfc_main128,_sfc_main129=defineComponent({name:"Handbag",__name:"handbag",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),handbag_default=_sfc_main129,_sfc_main130=defineComponent({name:"Headset",__name:"headset",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),headset_default=_sfc_main130,_sfc_main131=defineComponent({name:"HelpFilled",__name:"help-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M926.784 480H701.312A192.51 192.51 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.51 192.51 0 0 0 701.312 544zM97.28 544h225.472A192.51 192.51 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.51 192.51 0 0 0 322.688 480H97.216z"})]))}}),help_filled_default=_sfc_main131,_sfc_main132=defineComponent({name:"Help",__name:"help",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.9 254.9 0 0 1 512 768a254.9 254.9 0 0 1-156.992-53.76l-90.944 91.008A382.46 382.46 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.46 382.46 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512s-20.096 113.6-53.76 156.992zm-45.312-541.184A382.46 382.46 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.9 254.9 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76zm-541.184 45.312A382.46 382.46 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.9 254.9 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.6 194.6 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.23 191.23 0 0 0-67.968-146.56A191.3 191.3 0 0 0 512 320a191.23 191.23 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.23 191.23 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),help_default=_sfc_main132,_sfc_main133=defineComponent({name:"Hide",__name:"hide",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"}),createBaseVNode("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"})]))}}),hide_default=_sfc_main133,_sfc_main134=defineComponent({name:"Histogram",__name:"histogram",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),histogram_default=_sfc_main134,_sfc_main135=defineComponent({name:"HomeFilled",__name:"home-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),home_filled_default=_sfc_main135,_sfc_main136=defineComponent({name:"HotWater",__name:"hot-water",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134M512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133M375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267"})]))}}),hot_water_default=_sfc_main136,_sfc_main137=defineComponent({name:"House",__name:"house",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),house_default=_sfc_main137,_sfc_main138=defineComponent({name:"IceCreamRound",__name:"ice-cream-round",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0"})]))}}),ice_cream_round_default=_sfc_main138,_sfc_main139=defineComponent({name:"IceCreamSquare",__name:"ice-cream-square",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),ice_cream_square_default=_sfc_main139,_sfc_main140=defineComponent({name:"IceCream",__name:"ice-cream",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.13 208.13 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0m351.36 0h286.272a144 144 0 0 0-286.272 0m-294.848 64 271.808 396.608L778.24 512zM511.68 352.64a207.87 207.87 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),ice_cream_default=_sfc_main140,_sfc_main141=defineComponent({name:"IceDrink",__name:"ice-drink",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.13 256.13 0 0 0 512 192.64m-64 8.064A256.45 256.45 0 0 0 264.256 384H448zm64-72.064A320.13 320.13 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.38 320.38 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),ice_drink_default=_sfc_main141,_sfc_main142=defineComponent({name:"IceTea",__name:"ice-tea",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),ice_tea_default=_sfc_main142,_sfc_main143=defineComponent({name:"InfoFilled",__name:"info-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),info_filled_default=_sfc_main143,_sfc_main144=defineComponent({name:"Iphone",__name:"iphone",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),iphone_default=_sfc_main144,_sfc_main145=defineComponent({name:"Key",__name:"key",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),key_default=_sfc_main145,_sfc_main146=defineComponent({name:"KnifeFork",__name:"knife-fork",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256s32 177.152 32 288z"})]))}}),knife_fork_default=_sfc_main146,_sfc_main147=defineComponent({name:"Lightning",__name:"lightning",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),createBaseVNode("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),lightning_default=_sfc_main147,_sfc_main148=defineComponent({name:"Link",__name:"link",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),link_default=_sfc_main148,_sfc_main149=defineComponent({name:"List",__name:"list",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),list_default=_sfc_main149,_sfc_main150=defineComponent({name:"Loading",__name:"loading",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),loading_default=_sfc_main150,_sfc_main151=defineComponent({name:"LocationFilled",__name:"location-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),location_filled_default=_sfc_main151,_sfc_main152=defineComponent({name:"LocationInformation",__name:"location-information",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),createBaseVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),location_information_default=_sfc_main152,_sfc_main153=defineComponent({name:"Location",__name:"location",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),createBaseVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),location_default=_sfc_main153,_sfc_main154=defineComponent({name:"Lock",__name:"lock",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),createBaseVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),lock_default=_sfc_main154,_sfc_main155=defineComponent({name:"Lollipop",__name:"lollipop",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744m-54.464-36.032a322 322 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),lollipop_default=_sfc_main155,_sfc_main156=defineComponent({name:"MagicStick",__name:"magic-stick",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),magic_stick_default=_sfc_main156,_sfc_main157=defineComponent({name:"Magnet",__name:"magnet",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),magnet_default=_sfc_main157,_sfc_main158=defineComponent({name:"Male",__name:"male",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),createBaseVNode("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),createBaseVNode("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),male_default=_sfc_main158,_sfc_main159=defineComponent({name:"Management",__name:"management",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),management_default=_sfc_main159,_sfc_main160=defineComponent({name:"MapLocation",__name:"map-location",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),createBaseVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),map_location_default=_sfc_main160,_sfc_main161=defineComponent({name:"Medal",__name:"medal",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),createBaseVNode("path",{fill:"currentColor",d:"M576 128H448v200a286.7 286.7 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96s-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),medal_default=_sfc_main161,_sfc_main162=defineComponent({name:"Memo",__name:"memo",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),createBaseVNode("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),createBaseVNode("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),memo_default=_sfc_main162,_sfc_main163=defineComponent({name:"Menu",__name:"menu",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),menu_default=_sfc_main163,_sfc_main164=defineComponent({name:"MessageBox",__name:"message-box",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128"})]))}}),message_box_default=_sfc_main164,_sfc_main165=defineComponent({name:"Message",__name:"message",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),createBaseVNode("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224z"})]))}}),message_default=_sfc_main165,_sfc_main166=defineComponent({name:"Mic",__name:"mic",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),mic_default=_sfc_main166,_sfc_main167=defineComponent({name:"Microphone",__name:"microphone",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),microphone_default=_sfc_main167,_sfc_main168=defineComponent({name:"MilkTea",__name:"milk-tea",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),milk_tea_default=_sfc_main168,_sfc_main169=defineComponent({name:"Minus",__name:"minus",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),minus_default=_sfc_main169,_sfc_main170=defineComponent({name:"Money",__name:"money",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),createBaseVNode("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.06 29.06 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),createBaseVNode("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),money_default=_sfc_main170,_sfc_main171=defineComponent({name:"Monitor",__name:"monitor",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),monitor_default=_sfc_main171,_sfc_main172=defineComponent({name:"MoonNight",__name:"moon-night",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.3 448.3 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),createBaseVNode("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),moon_night_default=_sfc_main172,_sfc_main173=defineComponent({name:"Moon",__name:"moon",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),moon_default=_sfc_main173,_sfc_main174=defineComponent({name:"MoreFilled",__name:"more-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),more_filled_default=_sfc_main174,_sfc_main175=defineComponent({name:"More",__name:"more",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),more_default=_sfc_main175,_sfc_main176=defineComponent({name:"MostlyCloudy",__name:"mostly-cloudy",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),mostly_cloudy_default=_sfc_main176,_sfc_main177=defineComponent({name:"Mouse",__name:"mouse",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112q-30.144 16.128-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76q16.128 30.144 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112q30.144-16.128 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.46 110.46 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.46 174.46 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.46 174.46 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.46 174.46 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),createBaseVNode("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),mouse_default=_sfc_main177,_sfc_main178=defineComponent({name:"Mug",__name:"mug",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),mug_default=_sfc_main178,_sfc_main179=defineComponent({name:"MuteNotification",__name:"mute-notification",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.13 320.13 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.55 319.55 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),createBaseVNode("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),mute_notification_default=_sfc_main179,_sfc_main180=defineComponent({name:"Mute",__name:"mute",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.23 191.23 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A223 223 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.98 286.98 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),createBaseVNode("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),mute_default=_sfc_main180,_sfc_main181=defineComponent({name:"NoSmoking",__name:"no-smoking",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),no_smoking_default=_sfc_main181,_sfc_main182=defineComponent({name:"Notebook",__name:"notebook",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),notebook_default=_sfc_main182,_sfc_main183=defineComponent({name:"Notification",__name:"notification",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),createBaseVNode("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),notification_default=_sfc_main183,_sfc_main184=defineComponent({name:"Odometer",__name:"odometer",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"}),createBaseVNode("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),createBaseVNode("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),odometer_default=_sfc_main184,_sfc_main185=defineComponent({name:"OfficeBuilding",__name:"office-building",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),createBaseVNode("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),office_building_default=_sfc_main185,_sfc_main186=defineComponent({name:"Open",__name:"open",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),createBaseVNode("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),open_default=_sfc_main186,_sfc_main187=defineComponent({name:"Operation",__name:"operation",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),operation_default=_sfc_main187,_sfc_main188=defineComponent({name:"Opportunity",__name:"opportunity",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),opportunity_default=_sfc_main188,_sfc_main189=defineComponent({name:"Orange",__name:"orange",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 894.72a382.34 382.34 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.34 382.34 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024zM894.656 480a382.34 382.34 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024zm-134.72-261.248A382.34 382.34 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.34 382.34 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.34 382.34 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.34 382.34 0 0 0 89.408 215.936l182.976-182.912A127.2 127.2 0 0 1 388.032 544zm134.72 261.248A382.34 382.34 0 0 0 480 894.656V635.968a127.2 127.2 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),orange_default=_sfc_main189,_sfc_main190=defineComponent({name:"Paperclip",__name:"paperclip",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744z"})]))}}),paperclip_default=_sfc_main190,_sfc_main191=defineComponent({name:"PartlyCloudy",__name:"partly-cloudy",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),createBaseVNode("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6004 6004 0 0 0-49.28 41.408"})]))}}),partly_cloudy_default=_sfc_main191,_sfc_main192=defineComponent({name:"Pear",__name:"pear",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M542.336 258.816a443 443 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.69 162.69 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.69 162.69 0 0 0-130.112-133.12m-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a317 317 0 0 0-9.792 15.104 226.69 226.69 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),pear_default=_sfc_main192,_sfc_main193=defineComponent({name:"PhoneFilled",__name:"phone-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048"})]))}}),phone_filled_default=_sfc_main193,_sfc_main194=defineComponent({name:"Phone",__name:"phone",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),phone_default=_sfc_main194,_sfc_main195=defineComponent({name:"PictureFilled",__name:"picture-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),picture_filled_default=_sfc_main195,_sfc_main196=defineComponent({name:"PictureRounded",__name:"picture-rounded",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 128a384 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"}),createBaseVNode("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64-64-64 64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),picture_rounded_default=_sfc_main196,_sfc_main197=defineComponent({name:"Picture",__name:"picture",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),picture_default=_sfc_main197,_sfc_main198=defineComponent({name:"PieChart",__name:"pie-chart",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"}),createBaseVNode("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),pie_chart_default=_sfc_main198,_sfc_main199=defineComponent({name:"Place",__name:"place",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),createBaseVNode("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),place_default=_sfc_main199,_sfc_main200=defineComponent({name:"Platform",__name:"platform",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),platform_default=_sfc_main200,_sfc_main201=defineComponent({name:"Plus",__name:"plus",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),plus_default=_sfc_main201,_sfc_main202=defineComponent({name:"Pointer",__name:"pointer",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"})]))}}),pointer_default=_sfc_main202,_sfc_main203=defineComponent({name:"Position",__name:"position",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992z"})]))}}),position_default=_sfc_main203,_sfc_main204=defineComponent({name:"Postcard",__name:"postcard",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),createBaseVNode("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),postcard_default=_sfc_main204,_sfc_main205=defineComponent({name:"Pouring",__name:"pouring",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),pouring_default=_sfc_main205,_sfc_main206=defineComponent({name:"Present",__name:"present",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),createBaseVNode("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),createBaseVNode("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),present_default=_sfc_main206,_sfc_main207=defineComponent({name:"PriceTag",__name:"price-tag",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),createBaseVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),price_tag_default=_sfc_main207,_sfc_main208=defineComponent({name:"Printer",__name:"printer",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),printer_default=_sfc_main208,_sfc_main209=defineComponent({name:"Promotion",__name:"promotion",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),promotion_default=_sfc_main209,_sfc_main210=defineComponent({name:"QuartzWatch",__name:"quartz-watch",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51q-13.005.48-22.5 10.02c-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01s-3.66-16.16-10.02-22.5c-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01q5.025 17.985 22.5 22.5m242.94 0q17.505-4.545 22.02-22.02c3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5q-9.54 9.51-10.02 22.5c-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),createBaseVNode("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),createBaseVNode("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),quartz_watch_default=_sfc_main210,_sfc_main211=defineComponent({name:"QuestionFilled",__name:"question-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),question_filled_default=_sfc_main211,_sfc_main212=defineComponent({name:"Rank",__name:"rank",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"})]))}}),rank_default=_sfc_main212,_sfc_main213=defineComponent({name:"ReadingLamp",__name:"reading-lamp",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),createBaseVNode("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),reading_lamp_default=_sfc_main213,_sfc_main214=defineComponent({name:"Reading",__name:"reading",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36"}),createBaseVNode("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),reading_default=_sfc_main214,_sfc_main215=defineComponent({name:"RefreshLeft",__name:"refresh-left",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),refresh_left_default=_sfc_main215,_sfc_main216=defineComponent({name:"RefreshRight",__name:"refresh-right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),refresh_right_default=_sfc_main216,_sfc_main217=defineComponent({name:"Refresh",__name:"refresh",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),refresh_default=_sfc_main217,_sfc_main218=defineComponent({name:"Refrigerator",__name:"refrigerator",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),refrigerator_default=_sfc_main218,_sfc_main219=defineComponent({name:"RemoveFilled",__name:"remove-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),remove_filled_default=_sfc_main219,_sfc_main220=defineComponent({name:"Remove",__name:"remove",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),createBaseVNode("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"})]))}}),remove_default=_sfc_main220,_sfc_main221=defineComponent({name:"Right",__name:"right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),right_default=_sfc_main221,_sfc_main222=defineComponent({name:"ScaleToOriginal",__name:"scale-to-original",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),scale_to_original_default=_sfc_main222,_sfc_main223=defineComponent({name:"School",__name:"school",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),createBaseVNode("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),school_default=_sfc_main223,_sfc_main224=defineComponent({name:"Scissor",__name:"scissor",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),scissor_default=_sfc_main224,_sfc_main225=defineComponent({name:"Search",__name:"search",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),search_default=_sfc_main225,_sfc_main226=defineComponent({name:"Select",__name:"select",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"})]))}}),select_default=_sfc_main226,_sfc_main227=defineComponent({name:"Sell",__name:"sell",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248"})]))}}),sell_default=_sfc_main227,_sfc_main228=defineComponent({name:"SemiSelect",__name:"semi-select",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),semi_select_default=_sfc_main228,_sfc_main229=defineComponent({name:"Service",__name:"service",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.06 192.06 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193 193 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),service_default=_sfc_main229,_sfc_main230=defineComponent({name:"SetUp",__name:"set-up",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),createBaseVNode("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),createBaseVNode("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),createBaseVNode("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),set_up_default=_sfc_main230,_sfc_main231=defineComponent({name:"Setting",__name:"setting",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),setting_default=_sfc_main231,_sfc_main232=defineComponent({name:"Share",__name:"share",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.8 127.8 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),share_default=_sfc_main232,_sfc_main233=defineComponent({name:"Ship",__name:"ship",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2z"})]))}}),ship_default=_sfc_main233,_sfc_main234=defineComponent({name:"Shop",__name:"shop",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),shop_default=_sfc_main234,_sfc_main235=defineComponent({name:"ShoppingBag",__name:"shopping-bag",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),createBaseVNode("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),shopping_bag_default=_sfc_main235,_sfc_main236=defineComponent({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"}),createBaseVNode("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648z"})]))}}),shopping_cart_full_default=_sfc_main236,_sfc_main237=defineComponent({name:"ShoppingCart",__name:"shopping-cart",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"})]))}}),shopping_cart_default=_sfc_main237,_sfc_main238=defineComponent({name:"ShoppingTrolley",__name:"shopping-trolley",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),shopping_trolley_default=_sfc_main238,_sfc_main239=defineComponent({name:"Smoking",__name:"smoking",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),smoking_default=_sfc_main239,_sfc_main240=defineComponent({name:"Soccer",__name:"soccer",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.06 573.06 0 0 0 224.832-137.216 573.1 573.1 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.7 567.7 0 0 0 170.432 532.48zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944s-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248z"})]))}}),soccer_default=_sfc_main240,_sfc_main241=defineComponent({name:"SoldOut",__name:"sold-out",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),sold_out_default=_sfc_main241,_sfc_main242=defineComponent({name:"SortDown",__name:"sort-down",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),sort_down_default=_sfc_main242,_sfc_main243=defineComponent({name:"SortUp",__name:"sort-up",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),sort_up_default=_sfc_main243,_sfc_main244=defineComponent({name:"Sort",__name:"sort",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),sort_default=_sfc_main244,_sfc_main245=defineComponent({name:"Stamp",__name:"stamp",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),stamp_default=_sfc_main245,_sfc_main246=defineComponent({name:"StarFilled",__name:"star-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),star_filled_default=_sfc_main246,_sfc_main247=defineComponent({name:"Star",__name:"star",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),star_default=_sfc_main247,_sfc_main248=defineComponent({name:"Stopwatch",__name:"stopwatch",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"}),createBaseVNode("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),stopwatch_default=_sfc_main248,_sfc_main249=defineComponent({name:"SuccessFilled",__name:"success-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),success_filled_default=_sfc_main249,_sfc_main250=defineComponent({name:"Sugar",__name:"sugar",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16zm-548.8 198.72h447.168v2.24l60.8-60.8a63.8 63.8 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64 64 0 0 0-10.24 13.248zm0 64q4.128 7.104 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),sugar_default=_sfc_main250,_sfc_main251=defineComponent({name:"SuitcaseLine",__name:"suitcase-line",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5S64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),suitcase_line_default=_sfc_main251,_sfc_main252=defineComponent({name:"Suitcase",__name:"suitcase",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),createBaseVNode("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),suitcase_default=_sfc_main252,_sfc_main253=defineComponent({name:"Sunny",__name:"sunny",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),sunny_default=_sfc_main253,_sfc_main254=defineComponent({name:"Sunrise",__name:"sunrise",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0m-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),sunrise_default=_sfc_main254,_sfc_main255=defineComponent({name:"Sunset",__name:"sunset",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),sunset_default=_sfc_main255,_sfc_main256=defineComponent({name:"SwitchButton",__name:"switch-button",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),createBaseVNode("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),switch_button_default=_sfc_main256,_sfc_main257=defineComponent({name:"SwitchFilled",__name:"switch-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36"}),createBaseVNode("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.66 196.66 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.7 196.7 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42m-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.7 131.7 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.66 196.66 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.7 196.7 0 0 0 139.08-57.61A196.66 196.66 0 0 0 896 699.31V325.29a196.7 196.7 0 0 0-57.61-139.08m-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82"})]))}}),switch_filled_default=_sfc_main257,_sfc_main258=defineComponent({name:"Switch",__name:"switch",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),switch_default=_sfc_main258,_sfc_main259=defineComponent({name:"TakeawayBox",__name:"takeaway-box",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),takeaway_box_default=_sfc_main259,_sfc_main260=defineComponent({name:"Ticket",__name:"ticket",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),ticket_default=_sfc_main260,_sfc_main261=defineComponent({name:"Tickets",__name:"tickets",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),tickets_default=_sfc_main261,_sfc_main262=defineComponent({name:"Timer",__name:"timer",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),createBaseVNode("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),timer_default=_sfc_main262,_sfc_main263=defineComponent({name:"ToiletPaper",__name:"toilet-paper",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),createBaseVNode("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),toilet_paper_default=_sfc_main263,_sfc_main264=defineComponent({name:"Tools",__name:"tools",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),tools_default=_sfc_main264,_sfc_main265=defineComponent({name:"TopLeft",__name:"top-left",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),createBaseVNode("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312z"})]))}}),top_left_default=_sfc_main265,_sfc_main266=defineComponent({name:"TopRight",__name:"top-right",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),createBaseVNode("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z"})]))}}),top_right_default=_sfc_main266,_sfc_main267=defineComponent({name:"Top",__name:"top",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),top_default=_sfc_main267,_sfc_main268=defineComponent({name:"TrendCharts",__name:"trend-charts",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),trend_charts_default=_sfc_main268,_sfc_main269=defineComponent({name:"TrophyBase",__name:"trophy-base",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4S745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6S256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6S96 217.6 96 224c3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6S352 790.4 352 800s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4M256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6S320 438.4 320 384V128h384v256q0 81.6-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2M768 896H256c-9.6 0-16 3.2-22.4 9.6S224 918.4 224 928s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6"})]))}}),trophy_base_default=_sfc_main269,_sfc_main270=defineComponent({name:"Trophy",__name:"trophy",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M480 896V702.08A256.26 256.26 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.26 256.26 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),trophy_default=_sfc_main270,_sfc_main271=defineComponent({name:"TurnOff",__name:"turn-off",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),createBaseVNode("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),turn_off_default=_sfc_main271,_sfc_main272=defineComponent({name:"Umbrella",__name:"umbrella",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),umbrella_default=_sfc_main272,_sfc_main273=defineComponent({name:"Unlock",__name:"unlock",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),createBaseVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),unlock_default=_sfc_main273,_sfc_main274=defineComponent({name:"UploadFilled",__name:"upload-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),upload_filled_default=_sfc_main274,_sfc_main275=defineComponent({name:"Upload",__name:"upload",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),upload_default=_sfc_main275,_sfc_main276=defineComponent({name:"UserFilled",__name:"user-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),user_filled_default=_sfc_main276,_sfc_main277=defineComponent({name:"User",__name:"user",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),user_default=_sfc_main277,_sfc_main278=defineComponent({name:"Van",__name:"van",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),van_default=_sfc_main278,_sfc_main279=defineComponent({name:"VideoCameraFilled",__name:"video-camera-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),video_camera_filled_default=_sfc_main279,_sfc_main280=defineComponent({name:"VideoCamera",__name:"video-camera",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),video_camera_default=_sfc_main280,_sfc_main281=defineComponent({name:"VideoPause",__name:"video-pause",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),video_pause_default=_sfc_main281,_sfc_main282=defineComponent({name:"VideoPlay",__name:"video-play",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),video_play_default=_sfc_main282,_sfc_main283=defineComponent({name:"View",__name:"view",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),view_default=_sfc_main283,_sfc_main284=defineComponent({name:"WalletFilled",__name:"wallet-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),wallet_filled_default=_sfc_main284,_sfc_main285=defineComponent({name:"Wallet",__name:"wallet",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),createBaseVNode("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),wallet_default=_sfc_main285,_sfc_main286=defineComponent({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49s12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),warn_triangle_filled_default=_sfc_main286,_sfc_main287=defineComponent({name:"WarningFilled",__name:"warning-filled",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),warning_filled_default=_sfc_main287,_sfc_main288=defineComponent({name:"Warning",__name:"warning",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),warning_default=_sfc_main288,_sfc_main289=defineComponent({name:"Watch",__name:"watch",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),createBaseVNode("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),createBaseVNode("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),watch_default=_sfc_main289,_sfc_main290=defineComponent({name:"Watermelon",__name:"watermelon",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632z"})]))}}),watermelon_default=_sfc_main290,_sfc_main291=defineComponent({name:"WindPower",__name:"wind-power",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),wind_power_default=_sfc_main291,_sfc_main292=defineComponent({name:"ZoomIn",__name:"zoom-in",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),zoom_in_default=_sfc_main292,_sfc_main293=defineComponent({name:"ZoomOut",__name:"zoom-out",setup(n){return(t,r)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createBaseVNode("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"})]))}}),zoom_out_default=_sfc_main293;const ElementPlusIconsVue=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:add_location_default,Aim:aim_default,AlarmClock:alarm_clock_default,Apple:apple_default,ArrowDown:arrow_down_default,ArrowDownBold:arrow_down_bold_default,ArrowLeft:arrow_left_default,ArrowLeftBold:arrow_left_bold_default,ArrowRight:arrow_right_default,ArrowRightBold:arrow_right_bold_default,ArrowUp:arrow_up_default,ArrowUpBold:arrow_up_bold_default,Avatar:avatar_default,Back:back_default,Baseball:baseball_default,Basketball:basketball_default,Bell:bell_default,BellFilled:bell_filled_default,Bicycle:bicycle_default,Bottom:bottom_default,BottomLeft:bottom_left_default,BottomRight:bottom_right_default,Bowl:bowl_default,Box:box_default,Briefcase:briefcase_default,Brush:brush_default,BrushFilled:brush_filled_default,Burger:burger_default,Calendar:calendar_default,Camera:camera_default,CameraFilled:camera_filled_default,CaretBottom:caret_bottom_default,CaretLeft:caret_left_default,CaretRight:caret_right_default,CaretTop:caret_top_default,Cellphone:cellphone_default,ChatDotRound:chat_dot_round_default,ChatDotSquare:chat_dot_square_default,ChatLineRound:chat_line_round_default,ChatLineSquare:chat_line_square_default,ChatRound:chat_round_default,ChatSquare:chat_square_default,Check:check_default,Checked:checked_default,Cherry:cherry_default,Chicken:chicken_default,ChromeFilled:chrome_filled_default,CircleCheck:circle_check_default,CircleCheckFilled:circle_check_filled_default,CircleClose:circle_close_default,CircleCloseFilled:circle_close_filled_default,CirclePlus:circle_plus_default,CirclePlusFilled:circle_plus_filled_default,Clock:clock_default,Close:close_default,CloseBold:close_bold_default,Cloudy:cloudy_default,Coffee:coffee_default,CoffeeCup:coffee_cup_default,Coin:coin_default,ColdDrink:cold_drink_default,Collection:collection_default,CollectionTag:collection_tag_default,Comment:comment_default,Compass:compass_default,Connection:connection_default,Coordinate:coordinate_default,CopyDocument:copy_document_default,Cpu:cpu_default,CreditCard:credit_card_default,Crop:crop_default,DArrowLeft:d_arrow_left_default,DArrowRight:d_arrow_right_default,DCaret:d_caret_default,DataAnalysis:data_analysis_default,DataBoard:data_board_default,DataLine:data_line_default,Delete:delete_default,DeleteFilled:delete_filled_default,DeleteLocation:delete_location_default,Dessert:dessert_default,Discount:discount_default,Dish:dish_default,DishDot:dish_dot_default,Document:document_default,DocumentAdd:document_add_default,DocumentChecked:document_checked_default,DocumentCopy:document_copy_default,DocumentDelete:document_delete_default,DocumentRemove:document_remove_default,Download:download_default,Drizzling:drizzling_default,Edit:edit_default,EditPen:edit_pen_default,Eleme:eleme_default,ElemeFilled:eleme_filled_default,ElementPlus:element_plus_default,Expand:expand_default,Failed:failed_default,Female:female_default,Files:files_default,Film:film_default,Filter:filter_default,Finished:finished_default,FirstAidKit:first_aid_kit_default,Flag:flag_default,Fold:fold_default,Folder:folder_default,FolderAdd:folder_add_default,FolderChecked:folder_checked_default,FolderDelete:folder_delete_default,FolderOpened:folder_opened_default,FolderRemove:folder_remove_default,Food:food_default,Football:football_default,ForkSpoon:fork_spoon_default,Fries:fries_default,FullScreen:full_screen_default,Goblet:goblet_default,GobletFull:goblet_full_default,GobletSquare:goblet_square_default,GobletSquareFull:goblet_square_full_default,GoldMedal:gold_medal_default,Goods:goods_default,GoodsFilled:goods_filled_default,Grape:grape_default,Grid:grid_default,Guide:guide_default,Handbag:handbag_default,Headset:headset_default,Help:help_default,HelpFilled:help_filled_default,Hide:hide_default,Histogram:histogram_default,HomeFilled:home_filled_default,HotWater:hot_water_default,House:house_default,IceCream:ice_cream_default,IceCreamRound:ice_cream_round_default,IceCreamSquare:ice_cream_square_default,IceDrink:ice_drink_default,IceTea:ice_tea_default,InfoFilled:info_filled_default,Iphone:iphone_default,Key:key_default,KnifeFork:knife_fork_default,Lightning:lightning_default,Link:link_default,List:list_default,Loading:loading_default,Location:location_default,LocationFilled:location_filled_default,LocationInformation:location_information_default,Lock:lock_default,Lollipop:lollipop_default,MagicStick:magic_stick_default,Magnet:magnet_default,Male:male_default,Management:management_default,MapLocation:map_location_default,Medal:medal_default,Memo:memo_default,Menu:menu_default,Message:message_default,MessageBox:message_box_default,Mic:mic_default,Microphone:microphone_default,MilkTea:milk_tea_default,Minus:minus_default,Money:money_default,Monitor:monitor_default,Moon:moon_default,MoonNight:moon_night_default,More:more_default,MoreFilled:more_filled_default,MostlyCloudy:mostly_cloudy_default,Mouse:mouse_default,Mug:mug_default,Mute:mute_default,MuteNotification:mute_notification_default,NoSmoking:no_smoking_default,Notebook:notebook_default,Notification:notification_default,Odometer:odometer_default,OfficeBuilding:office_building_default,Open:open_default,Operation:operation_default,Opportunity:opportunity_default,Orange:orange_default,Paperclip:paperclip_default,PartlyCloudy:partly_cloudy_default,Pear:pear_default,Phone:phone_default,PhoneFilled:phone_filled_default,Picture:picture_default,PictureFilled:picture_filled_default,PictureRounded:picture_rounded_default,PieChart:pie_chart_default,Place:place_default,Platform:platform_default,Plus:plus_default,Pointer:pointer_default,Position:position_default,Postcard:postcard_default,Pouring:pouring_default,Present:present_default,PriceTag:price_tag_default,Printer:printer_default,Promotion:promotion_default,QuartzWatch:quartz_watch_default,QuestionFilled:question_filled_default,Rank:rank_default,Reading:reading_default,ReadingLamp:reading_lamp_default,Refresh:refresh_default,RefreshLeft:refresh_left_default,RefreshRight:refresh_right_default,Refrigerator:refrigerator_default,Remove:remove_default,RemoveFilled:remove_filled_default,Right:right_default,ScaleToOriginal:scale_to_original_default,School:school_default,Scissor:scissor_default,Search:search_default,Select:select_default,Sell:sell_default,SemiSelect:semi_select_default,Service:service_default,SetUp:set_up_default,Setting:setting_default,Share:share_default,Ship:ship_default,Shop:shop_default,ShoppingBag:shopping_bag_default,ShoppingCart:shopping_cart_default,ShoppingCartFull:shopping_cart_full_default,ShoppingTrolley:shopping_trolley_default,Smoking:smoking_default,Soccer:soccer_default,SoldOut:sold_out_default,Sort:sort_default,SortDown:sort_down_default,SortUp:sort_up_default,Stamp:stamp_default,Star:star_default,StarFilled:star_filled_default,Stopwatch:stopwatch_default,SuccessFilled:success_filled_default,Sugar:sugar_default,Suitcase:suitcase_default,SuitcaseLine:suitcase_line_default,Sunny:sunny_default,Sunrise:sunrise_default,Sunset:sunset_default,Switch:switch_default,SwitchButton:switch_button_default,SwitchFilled:switch_filled_default,TakeawayBox:takeaway_box_default,Ticket:ticket_default,Tickets:tickets_default,Timer:timer_default,ToiletPaper:toilet_paper_default,Tools:tools_default,Top:top_default,TopLeft:top_left_default,TopRight:top_right_default,TrendCharts:trend_charts_default,Trophy:trophy_default,TrophyBase:trophy_base_default,TurnOff:turn_off_default,Umbrella:umbrella_default,Unlock:unlock_default,Upload:upload_default,UploadFilled:upload_filled_default,User:user_default,UserFilled:user_filled_default,Van:van_default,VideoCamera:video_camera_default,VideoCameraFilled:video_camera_filled_default,VideoPause:video_pause_default,VideoPlay:video_play_default,View:view_default,Wallet:wallet_default,WalletFilled:wallet_filled_default,WarnTriangleFilled:warn_triangle_filled_default,Warning:warning_default,WarningFilled:warning_filled_default,Watch:watch_default,Watermelon:watermelon_default,WindPower:wind_power_default,ZoomIn:zoom_in_default,ZoomOut:zoom_out_default},Symbol.toStringTag,{value:"Module"})),iconPropType=definePropType([String,Object,Function]),CloseComponents={Close:close_default},TypeComponents={Close:close_default,SuccessFilled:success_filled_default,InfoFilled:info_filled_default,WarningFilled:warning_filled_default,CircleCloseFilled:circle_close_filled_default},TypeComponentsMap={primary:info_filled_default,success:success_filled_default,warning:warning_filled_default,error:circle_close_filled_default,info:info_filled_default},ValidateComponentsMap={validating:loading_default,success:circle_check_default,error:circle_close_default},alertEffects=["light","dark"],alertProps=buildProps({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:keysOf(TypeComponentsMap),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:alertEffects,default:"light"},showAfter:Number,hideAfter:Number,autoClose:Number}),alertEmits={close:n=>n instanceof MouseEvent};var PatchFlags=(n=>(n[n.TEXT=1]="TEXT",n[n.CLASS=2]="CLASS",n[n.STYLE=4]="STYLE",n[n.PROPS=8]="PROPS",n[n.FULL_PROPS=16]="FULL_PROPS",n[n.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",n[n.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",n[n.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",n[n.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",n[n.NEED_PATCH=512]="NEED_PATCH",n[n.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",n[n.HOISTED=-1]="HOISTED",n[n.BAIL=-2]="BAIL",n))(PatchFlags||{});function isFragment(n){return isVNode(n)&&n.type===Fragment}function isComment(n){return isVNode(n)&&n.type===Comment}function isValidElementNode(n){return isVNode(n)&&!isFragment(n)&&!isComment(n)}const getNormalizedProps=n=>{if(!isVNode(n))return{};const t=n.props||{},r=(isVNode(n.type)?n.type.props:void 0)||{},i={};return Object.keys(r).forEach(g=>{hasOwn$1(r[g],"default")&&(i[g]=r[g].default)}),Object.keys(t).forEach(g=>{i[camelize(g)]=t[g]}),i},flattedChildren=n=>{const t=isArray$5(n)?n:[n],r=[];return t.forEach(i=>{var g;isArray$5(i)?r.push(...flattedChildren(i)):isVNode(i)&&((g=i.component)!=null&&g.subTree)?r.push(i,...flattedChildren(i.component.subTree)):isVNode(i)&&isArray$5(i.children)?r.push(...flattedChildren(i.children)):isVNode(i)&&i.shapeFlag===2?r.push(...flattedChildren(i.type())):r.push(i)}),r},_sfc_main$2Y=defineComponent({name:"ElAlert",__name:"alert",props:alertProps,emits:alertEmits,setup(n,{emit:t}){const{Close:r}=TypeComponents,i=n,g=t,$=useSlots(),V=useNamespace("alert"),re=ref(!0),ie=computed(()=>TypeComponentsMap[i.type]),ae=computed(()=>{var le;if(i.description)return!0;const ue=(le=$.default)==null?void 0:le.call($);return ue?flattedChildren(ue).some(he=>!isComment(he)):!1}),oe=le=>{re.value=!1,g("close",le)};return i.showAfter||i.hideAfter||i.autoClose,(le,ue)=>(openBlock(),createBlock(Transition,{name:unref(V).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:normalizeClass([unref(V).b(),unref(V).m(le.type),unref(V).is("center",le.center),unref(V).is(le.effect)]),role:"alert"},[le.showIcon&&(le.$slots.icon||ie.value)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(V).e("icon"),unref(V).is("big",ae.value)])},{default:withCtx(()=>[renderSlot(le.$slots,"icon",{},()=>[(openBlock(),createBlock(resolveDynamicComponent(ie.value)))])]),_:3},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(V).e("content"))},[le.title||le.$slots.title?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(V).e("title"),{"with-description":ae.value}])},[renderSlot(le.$slots,"title",{},()=>[createTextVNode(toDisplayString(le.title),1)])],2)):createCommentVNode("v-if",!0),ae.value?(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(unref(V).e("description"))},[renderSlot(le.$slots,"default",{},()=>[createTextVNode(toDisplayString(le.description),1)])],2)):createCommentVNode("v-if",!0),le.closable?(openBlock(),createElementBlock(Fragment,{key:2},[le.closeText?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(V).e("close-btn"),unref(V).is("customed")]),onClick:oe},toDisplayString(le.closeText),3)):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(V).e("close-btn")),onClick:oe},{default:withCtx(()=>[createVNode$1(unref(r))]),_:1},8,["class"]))],64)):createCommentVNode("v-if",!0)],2)],2),[[vShow,re.value]])]),_:3},8,["name"]))}});var Alert=_export_sfc(_sfc_main$2Y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const ElAlert=withInstall(Alert),isFirefox=()=>isClient&&/firefox/i.test(window.navigator.userAgent),isAndroid=()=>isClient&&/android/i.test(window.navigator.userAgent);let hiddenTextarea;const HIDDEN_STYLE={height:"0",visibility:"hidden",overflow:isFirefox()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},CONTEXT_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],looseToNumber=n=>{const t=Number.parseFloat(n);return Number.isNaN(t)?n:t};function calculateNodeStyling(n){const t=window.getComputedStyle(n),r=t.getPropertyValue("box-sizing"),i=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),g=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(V=>[V,t.getPropertyValue(V)]),paddingSize:i,borderSize:g,boxSizing:r}}function calcTextareaHeight(n,t=1,r){var i,g;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),((i=n.parentNode)!=null?i:document.body).appendChild(hiddenTextarea));const{paddingSize:$,borderSize:V,boxSizing:re,contextStyle:ie}=calculateNodeStyling(n);ie.forEach(([ue,de])=>hiddenTextarea==null?void 0:hiddenTextarea.style.setProperty(ue,de)),Object.entries(HIDDEN_STYLE).forEach(([ue,de])=>hiddenTextarea==null?void 0:hiddenTextarea.style.setProperty(ue,de,"important")),hiddenTextarea.value=n.value||n.placeholder||"";let ae=hiddenTextarea.scrollHeight;const oe={};re==="border-box"?ae=ae+V:re==="content-box"&&(ae=ae-$),hiddenTextarea.value="";const le=hiddenTextarea.scrollHeight-$;if(isNumber$2(t)){let ue=le*t;re==="border-box"&&(ue=ue+$+V),ae=Math.max(ue,ae),oe.minHeight=`${ue}px`}if(isNumber$2(r)){let ue=le*r;re==="border-box"&&(ue=ue+$+V),ae=Math.min(ue,ae)}return oe.height=`${ae}px`,(g=hiddenTextarea.parentNode)==null||g.removeChild(hiddenTextarea),hiddenTextarea=void 0,oe}const mutable=n=>n,ariaProps=buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),useAriaProps=n=>pick$1(ariaProps,n),inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:{type:Boolean,default:void 0},modelValue:{type:definePropType([String,Number,Object]),default:""},modelModifiers:{type:definePropType(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:definePropType(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:!1},autocomplete:{type:definePropType(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:iconPropType,default:circle_close_default},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:iconPropType},prefixIcon:{type:iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:definePropType([Object,Array,String]),default:()=>mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...useAriaProps(["ariaLabel"]),inputmode:{type:definePropType(String),default:void 0},name:String}),inputEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n),input:n=>isString$2(n),change:(n,t)=>isString$2(n)&&(t instanceof Event||t===void 0),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,mouseleave:n=>n instanceof MouseEvent,mouseenter:n=>n instanceof MouseEvent,keydown:n=>n instanceof Event,compositionstart:n=>n instanceof CompositionEvent,compositionupdate:n=>n instanceof CompositionEvent,compositionend:n=>n instanceof CompositionEvent},DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]/,useAttrs=(n={})=>{const{excludeListeners:t=!1,excludeKeys:r}=n,i=computed(()=>((r==null?void 0:r.value)||[]).concat(DEFAULT_EXCLUDE_KEYS)),g=getCurrentInstance();return computed(g?()=>{var $;return fromPairs(Object.entries(($=g.proxy)==null?void 0:$.$attrs).filter(([V])=>!i.value.includes(V)&&!(t&&LISTENER_PREFIX.test(V))))}:()=>({}))},defaultIdInjection={prefix:Math.floor(Math.random()*1e4),current:0},ID_INJECTION_KEY=Symbol("elIdInjection"),useIdInjection=()=>getCurrentInstance()?inject(ID_INJECTION_KEY,defaultIdInjection):defaultIdInjection,useId=n=>{const t=useIdInjection(),r=useGetDerivedNamespace();return computedEager(()=>unref(n)||`${r.value}-id-${t.prefix}-${t.current++}`)},formContextKey=Symbol("formContextKey"),formItemContextKey=Symbol("formItemContextKey"),useFormItem=()=>{const n=inject(formContextKey,void 0),t=inject(formItemContextKey,void 0);return{form:n,formItem:t}},useFormItemInputId=(n,{formItemContext:t,disableIdGeneration:r,disableIdManagement:i})=>{r||(r=ref(!1)),i||(i=ref(!1));const g=getCurrentInstance(),$=()=>{let ae=g==null?void 0:g.parent;for(;ae;){if(ae.type.name==="ElFormItem")return!1;if(ae.type.name==="ElLabelWrap")return!0;ae=ae.parent}return!1},V=ref();let re;const ie=computed(()=>{var ae;return!!(!(n.label||n.ariaLabel)&&t&&t.inputIds&&((ae=t.inputIds)==null?void 0:ae.length)<=1)});return onMounted(()=>{re=watch([toRef$1(n,"id"),r],([ae,oe])=>{const le=ae??(oe?void 0:useId().value);le!==V.value&&(t!=null&&t.removeInputId&&!$()&&(V.value&&t.removeInputId(V.value),!(i!=null&&i.value)&&!oe&&le&&t.addInputId(le)),V.value=le)},{immediate:!0})}),onUnmounted(()=>{re&&re(),t!=null&&t.removeInputId&&V.value&&t.removeInputId(V.value)}),{isLabeledByFormItem:ie,inputId:V}},useProp=n=>{const t=getCurrentInstance();return computed(()=>{var r,i;return(i=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:i[n]})},useFormSize=(n,t={})=>{const r=ref(void 0),i=t.prop?r:useProp("size"),g=t.global?r:useGlobalSize(),$=t.form?{size:void 0}:inject(formContextKey,void 0),V=t.formItem?{size:void 0}:inject(formItemContextKey,void 0);return computed(()=>i.value||unref(n)||(V==null?void 0:V.size)||($==null?void 0:$.size)||g.value||"")},useFormDisabled=n=>{const t=useProp("disabled"),r=inject(formContextKey,void 0);return computed(()=>{var i,g,$;return($=(g=(i=t.value)!=null?i:unref(n))!=null?g:r==null?void 0:r.disabled)!=null?$:!1})},FOCUSABLE_ELEMENT_SELECTORS='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',isHTMLElement$1=n=>typeof Element>"u"?!1:n instanceof Element,isVisible=n=>getComputedStyle(n).position==="fixed"?!1:n.offsetParent!==null,obtainAllFocusableElements$1=n=>Array.from(n.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter(t=>isFocusable(t)&&isVisible(t)),isFocusable=n=>{if(n.tabIndex>0||n.tabIndex===0&&n.getAttribute("tabIndex")!==null)return!0;if(n.tabIndex<0||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true")return!1;switch(n.nodeName){case"A":return!!n.href&&n.rel!=="ignore";case"INPUT":return!(n.type==="hidden"||n.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},triggerEvent=function(n,t,...r){let i;t.includes("mouse")||t.includes("click")?i="MouseEvents":t.includes("key")?i="KeyboardEvent":i="HTMLEvents";const g=document.createEvent(i);return g.initEvent(t,...r),n.dispatchEvent(g),n},isLeaf=n=>!n.getAttribute("aria-owns"),getSibling=(n,t,r)=>{const{parentNode:i}=n;if(!i)return null;const g=i.querySelectorAll(r),$=Array.prototype.indexOf.call(g,n);return g[$+t]||null},focusElement=(n,t)=>{if(!n||!n.focus)return;let r=!1;isHTMLElement$1(n)&&!isFocusable(n)&&!n.getAttribute("tabindex")&&(n.setAttribute("tabindex","-1"),r=!0),n.focus(t),isHTMLElement$1(n)&&r&&n.removeAttribute("tabindex")},focusNode=n=>{n&&(focusElement(n),!isLeaf(n)&&n.click())};function useFocusController(n,{disabled:t,beforeFocus:r,afterFocus:i,beforeBlur:g,afterBlur:$}={}){const V=getCurrentInstance(),{emit:re}=V,ie=shallowRef(),ae=ref(!1),oe=de=>{const he=isFunction$4(r)?r(de):!1;unref(t)||ae.value||he||(ae.value=!0,re("focus",de),i==null||i())},le=de=>{var he;const pe=isFunction$4(g)?g(de):!1;unref(t)||de.relatedTarget&&((he=ie.value)!=null&&he.contains(de.relatedTarget))||pe||(ae.value=!1,re("blur",de),$==null||$())},ue=de=>{var he,pe;unref(t)||isFocusable(de.target)||(he=ie.value)!=null&&he.contains(document.activeElement)&&ie.value!==document.activeElement||(pe=n.value)==null||pe.focus()};return watch([ie,()=>unref(t)],([de,he])=>{de&&(he?de.removeAttribute("tabindex"):de.setAttribute("tabindex","-1"))}),useEventListener(ie,"focus",oe,!0),useEventListener(ie,"blur",le,!0),useEventListener(ie,"click",ue,!0),{isFocused:ae,wrapperRef:ie,handleFocus:oe,handleBlur:le}}const isKorean=n=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(n);function useComposition({afterComposition:n,emit:t}){const r=ref(!1),i=re=>{t==null||t("compositionstart",re),r.value=!0},g=re=>{var ie;t==null||t("compositionupdate",re);const ae=(ie=re.target)==null?void 0:ie.value,oe=ae[ae.length-1]||"";r.value=!isKorean(oe)},$=re=>{t==null||t("compositionend",re),r.value&&(r.value=!1,nextTick(()=>n(re)))};return{isComposing:r,handleComposition:re=>{re.type==="compositionend"?$(re):g(re)},handleCompositionStart:i,handleCompositionUpdate:g,handleCompositionEnd:$}}function useCursor(n){let t;function r(){if(n.value==null)return;const{selectionStart:g,selectionEnd:$,value:V}=n.value;if(g==null||$==null)return;const re=V.slice(0,Math.max(0,g)),ie=V.slice(Math.max(0,$));t={selectionStart:g,selectionEnd:$,value:V,beforeTxt:re,afterTxt:ie}}function i(){if(n.value==null||t==null)return;const{value:g}=n.value,{beforeTxt:$,afterTxt:V,selectionStart:re}=t;if($==null||V==null||re==null)return;let ie=g.length;if(g.endsWith(V))ie=g.length-V.length;else if(g.startsWith($))ie=$.length;else{const ae=$[re-1],oe=g.indexOf(ae,re-1);oe!==-1&&(ie=oe+1)}n.value.setSelectionRange(ie,ie)}return[r,i]}const _hoisted_1$1D=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],_hoisted_2$_=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role"],COMPONENT_NAME$n="ElInput",_sfc_main$2X=defineComponent({name:COMPONENT_NAME$n,inheritAttrs:!1,__name:"input",props:inputProps,emits:inputEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useAttrs$1(),V=useAttrs(),re=useSlots(),ie=computed(()=>[i.type==="textarea"?_e.b():pe.b(),pe.m(de.value),pe.is("disabled",he.value),pe.is("exceed",bn.value),{[pe.b("group")]:re.prepend||re.append,[pe.m("prefix")]:re.prefix||i.prefixIcon,[pe.m("suffix")]:re.suffix||i.suffixIcon||i.clearable||i.showPassword,[pe.bm("suffix","password-clear")]:hn.value&&vn.value,[pe.b("hidden")]:i.type==="hidden"},$.class]),ae=computed(()=>[pe.e("wrapper"),pe.is("focus",Fe.value)]),{form:oe,formItem:le}=useFormItem(),{inputId:ue}=useFormItemInputId(i,{formItemContext:le}),de=useFormSize(),he=useFormDisabled(),pe=useNamespace("input"),_e=useNamespace("textarea"),Ce=shallowRef(),xe=shallowRef(),Ie=ref(!1),Ne=ref(!1),Oe=ref(),$e=shallowRef(i.inputStyle),Ve=computed(()=>Ce.value||xe.value),{wrapperRef:Ue,isFocused:Fe,handleFocus:ze,handleBlur:Pt}=useFocusController(Ve,{disabled:he,afterBlur(){var zn;i.validateEvent&&((zn=le==null?void 0:le.validate)==null||zn.call(le,"blur").catch(jn=>void 0))}}),qe=computed(()=>{var zn;return(zn=oe==null?void 0:oe.statusIcon)!=null?zn:!1}),Et=computed(()=>(le==null?void 0:le.validateState)||""),kt=computed(()=>Et.value&&ValidateComponentsMap[Et.value]),At=computed(()=>Ne.value?view_default:hide_default),Dt=computed(()=>[$.style]),Lt=computed(()=>[i.inputStyle,$e.value,{resize:i.resize}]),jt=computed(()=>isNil(i.modelValue)?"":String(i.modelValue)),hn=computed(()=>i.clearable&&!he.value&&!i.readonly&&!!jt.value&&(Fe.value||Ie.value)),vn=computed(()=>i.showPassword&&!he.value&&!!jt.value),_n=computed(()=>i.showWordLimit&&!!i.maxlength&&(i.type==="text"||i.type==="textarea")&&!he.value&&!i.readonly&&!i.showPassword),wn=computed(()=>jt.value.length),bn=computed(()=>!!_n.value&&wn.value>Number(i.maxlength)),Cn=computed(()=>!!re.suffix||!!i.suffixIcon||hn.value||i.showPassword||_n.value||!!Et.value&&qe.value),Sn=computed(()=>!!Object.keys(i.modelModifiers).length),[Tn,En]=useCursor(Ce);useResizeObserver(xe,zn=>{if(An(),!_n.value||i.resize!=="both"&&i.resize!=="horizontal")return;const jn=zn[0],{width:tr}=jn.contentRect;Oe.value={right:`calc(100% - ${tr+22-10}px)`}});const kn=()=>{const{type:zn,autosize:jn}=i;if(!(!isClient||zn!=="textarea"||!xe.value))if(jn){const tr=isObject$6(jn)?jn.minRows:void 0,hr=isObject$6(jn)?jn.maxRows:void 0,ir=calcTextareaHeight(xe.value,tr,hr);$e.value={overflowY:"hidden",...ir},nextTick(()=>{xe.value.offsetHeight,$e.value=ir})}else $e.value={minHeight:calcTextareaHeight(xe.value).minHeight}},An=(zn=>{let jn=!1;return()=>{var tr;if(jn||!i.autosize)return;((tr=xe.value)==null?void 0:tr.offsetParent)===null||(setTimeout(zn),jn=!0)}})(kn),xn=()=>{const zn=Ve.value,jn=i.formatter?i.formatter(jt.value):jt.value;!zn||zn.value===jn||i.type==="file"||(zn.value=jn)},Ln=zn=>{const{trim:jn,number:tr}=i.modelModifiers;return jn&&(zn=zn.trim()),tr&&(zn=`${looseToNumber(zn)}`),i.formatter&&i.parser&&(zn=i.parser(zn)),zn},Nn=async zn=>{if(On.value)return;const{lazy:jn}=i.modelModifiers;let{value:tr}=zn.target;if(jn){g(INPUT_EVENT,tr);return}if(tr=Ln(tr),String(tr)===jt.value){i.formatter&&xn();return}Tn(),g(UPDATE_MODEL_EVENT,tr),g(INPUT_EVENT,tr),await nextTick(),(i.formatter&&i.parser||!Sn.value)&&xn(),En()},Pn=async zn=>{let{value:jn}=zn.target;jn=Ln(jn),i.modelModifiers.lazy&&g(UPDATE_MODEL_EVENT,jn),g(CHANGE_EVENT,jn,zn),await nextTick(),xn()},{isComposing:On,handleCompositionStart:Hn,handleCompositionUpdate:Xn,handleCompositionEnd:In}=useComposition({emit:g,afterComposition:Nn}),or=()=>{Ne.value=!Ne.value},Qn=()=>{var zn;return(zn=Ve.value)==null?void 0:zn.focus()},Zn=()=>{var zn;return(zn=Ve.value)==null?void 0:zn.blur()},Gn=zn=>{Ie.value=!1,g("mouseleave",zn)},Rn=zn=>{Ie.value=!0,g("mouseenter",zn)},Mn=zn=>{g("keydown",zn)},Bn=()=>{var zn;(zn=Ve.value)==null||zn.select()},qn=()=>{g(UPDATE_MODEL_EVENT,""),g(CHANGE_EVENT,""),g("clear"),g(INPUT_EVENT,"")};return watch(()=>i.modelValue,()=>{var zn;nextTick(()=>kn()),i.validateEvent&&((zn=le==null?void 0:le.validate)==null||zn.call(le,"change").catch(jn=>void 0))}),watch(jt,zn=>{if(!Ve.value)return;const{trim:jn,number:tr}=i.modelModifiers,hr=Ve.value.value,ir=(tr||i.type==="number")&&!/^0\d/.test(hr)?`${looseToNumber(hr)}`:hr;ir!==zn&&(document.activeElement===Ve.value&&Ve.value.type!=="range"&&jn&&ir.trim()===zn||xn())}),watch(()=>i.type,async()=>{await nextTick(),xn(),kn()}),onMounted(()=>{!i.formatter&&i.parser,xn(),nextTick(kn)}),t({input:Ce,textarea:xe,ref:Ve,textareaStyle:Lt,autosize:toRef$1(i,"autosize"),isComposing:On,focus:Qn,blur:Zn,select:Bn,clear:qn,resizeTextarea:kn}),(zn,jn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([ie.value,{[unref(pe).bm("group","append")]:zn.$slots.append,[unref(pe).bm("group","prepend")]:zn.$slots.prepend}]),style:normalizeStyle$1(Dt.value),onMouseenter:Rn,onMouseleave:Gn},[createCommentVNode(" input "),zn.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),zn.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(pe).be("group","prepend"))},[renderSlot(zn.$slots,"prepend")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{ref_key:"wrapperRef",ref:Ue,class:normalizeClass(ae.value)},[createCommentVNode(" prefix slot "),zn.$slots.prefix||zn.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(pe).e("prefix"))},[createBaseVNode("span",{class:normalizeClass(unref(pe).e("prefix-inner"))},[renderSlot(zn.$slots,"prefix"),zn.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(pe).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(zn.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("input",mergeProps({id:unref(ue),ref_key:"input",ref:Ce,class:unref(pe).e("inner")},unref(V),{name:zn.name,minlength:zn.minlength,maxlength:zn.maxlength,type:zn.showPassword?Ne.value?"text":"password":zn.type,disabled:unref(he),readonly:zn.readonly,autocomplete:zn.autocomplete,tabindex:zn.tabindex,"aria-label":zn.ariaLabel,placeholder:zn.placeholder,style:zn.inputStyle,form:zn.form,autofocus:zn.autofocus,role:zn.containerRole,inputmode:zn.inputmode,onCompositionstart:jn[0]||(jn[0]=(...tr)=>unref(Hn)&&unref(Hn)(...tr)),onCompositionupdate:jn[1]||(jn[1]=(...tr)=>unref(Xn)&&unref(Xn)(...tr)),onCompositionend:jn[2]||(jn[2]=(...tr)=>unref(In)&&unref(In)(...tr)),onInput:Nn,onChange:Pn,onKeydown:Mn}),null,16,_hoisted_1$1D),createCommentVNode(" suffix slot "),Cn.value?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(pe).e("suffix"))},[createBaseVNode("span",{class:normalizeClass(unref(pe).e("suffix-inner"))},[!hn.value||!vn.value||!_n.value?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(zn.$slots,"suffix"),zn.suffixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(pe).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(zn.suffixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0),hn.value?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(pe).e("icon"),unref(pe).e("clear")]),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:qn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(zn.clearIcon)))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),vn.value?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(pe).e("icon"),unref(pe).e("password")]),onClick:or,onMousedown:withModifiers(unref(NOOP),["prevent"]),onMouseup:withModifiers(unref(NOOP),["prevent"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(At.value)))]),_:1},8,["class","onMousedown","onMouseup"])):createCommentVNode("v-if",!0),_n.value?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass([unref(pe).e("count"),unref(pe).is("outside",zn.wordLimitPosition==="outside")])},[createBaseVNode("span",{class:normalizeClass(unref(pe).e("count-inner"))},toDisplayString(wn.value)+" / "+toDisplayString(zn.maxlength),3)],2)):createCommentVNode("v-if",!0),Et.value&&kt.value&&qe.value?(openBlock(),createBlock(unref(ElIcon),{key:4,class:normalizeClass([unref(pe).e("icon"),unref(pe).e("validateIcon"),unref(pe).is("loading",Et.value==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(kt.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0)],2),createCommentVNode(" append slot "),zn.$slots.append?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(pe).be("group","append"))},[renderSlot(zn.$slots,"append")],2)):createCommentVNode("v-if",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" textarea "),createBaseVNode("textarea",mergeProps({id:unref(ue),ref_key:"textarea",ref:xe,class:[unref(_e).e("inner"),unref(pe).is("focus",unref(Fe))]},unref(V),{name:zn.name,minlength:zn.minlength,maxlength:zn.maxlength,tabindex:zn.tabindex,disabled:unref(he),readonly:zn.readonly,autocomplete:zn.autocomplete,style:Lt.value,"aria-label":zn.ariaLabel,placeholder:zn.placeholder,form:zn.form,autofocus:zn.autofocus,rows:zn.rows,role:zn.containerRole,onCompositionstart:jn[3]||(jn[3]=(...tr)=>unref(Hn)&&unref(Hn)(...tr)),onCompositionupdate:jn[4]||(jn[4]=(...tr)=>unref(Xn)&&unref(Xn)(...tr)),onCompositionend:jn[5]||(jn[5]=(...tr)=>unref(In)&&unref(In)(...tr)),onInput:Nn,onFocus:jn[6]||(jn[6]=(...tr)=>unref(ze)&&unref(ze)(...tr)),onBlur:jn[7]||(jn[7]=(...tr)=>unref(Pt)&&unref(Pt)(...tr)),onChange:Pn,onKeydown:Mn}),null,16,_hoisted_2$_),_n.value?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle$1(Oe.value),class:normalizeClass([unref(pe).e("count"),unref(pe).is("outside",zn.wordLimitPosition==="outside")])},toDisplayString(wn.value)+" / "+toDisplayString(zn.maxlength),7)):createCommentVNode("v-if",!0)],64))],38))}});var Input=_export_sfc(_sfc_main$2X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const ElInput=withInstall(Input),GAP=4,BAR_MAP={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},renderThumbStyle$1=({move:n,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${n}%)`}),scrollbarContextKey=Symbol("scrollbarContextKey"),thumbProps=buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),COMPONENT_NAME$m="Thumb",_sfc_main$2W=defineComponent({__name:"thumb",props:thumbProps,setup(n){const t=n,r=inject(scrollbarContextKey),i=useNamespace("scrollbar");r||throwError$1(COMPONENT_NAME$m,"can not inject scrollbar context");const g=ref(),$=ref(),V=ref({}),re=ref(!1);let ie=!1,ae=!1,oe=0,le=0,ue=isClient?document.onselectstart:null;const de=computed(()=>BAR_MAP[t.vertical?"vertical":"horizontal"]),he=computed(()=>renderThumbStyle$1({size:t.size,move:t.move,bar:de.value})),pe=computed(()=>g.value[de.value.offset]**2/r.wrapElement[de.value.scrollSize]/t.ratio/$.value[de.value.offset]),_e=Ue=>{var Fe;if(Ue.stopPropagation(),Ue.ctrlKey||[1,2].includes(Ue.button))return;(Fe=window.getSelection())==null||Fe.removeAllRanges(),xe(Ue);const ze=Ue.currentTarget;ze&&(V.value[de.value.axis]=ze[de.value.offset]-(Ue[de.value.client]-ze.getBoundingClientRect()[de.value.direction]))},Ce=Ue=>{if(!$.value||!g.value||!r.wrapElement)return;const Fe=Math.abs(Ue.target.getBoundingClientRect()[de.value.direction]-Ue[de.value.client]),ze=$.value[de.value.offset]/2,Pt=(Fe-ze)*100*pe.value/g.value[de.value.offset];r.wrapElement[de.value.scroll]=Pt*r.wrapElement[de.value.scrollSize]/100},xe=Ue=>{Ue.stopImmediatePropagation(),ie=!0,oe=r.wrapElement.scrollHeight,le=r.wrapElement.scrollWidth,document.addEventListener("mousemove",Ie),document.addEventListener("mouseup",Ne),ue=document.onselectstart,document.onselectstart=()=>!1},Ie=Ue=>{if(!g.value||!$.value||ie===!1)return;const Fe=V.value[de.value.axis];if(!Fe)return;const ze=(g.value.getBoundingClientRect()[de.value.direction]-Ue[de.value.client])*-1,Pt=$.value[de.value.offset]-Fe,qe=(ze-Pt)*100*pe.value/g.value[de.value.offset];de.value.scroll==="scrollLeft"?r.wrapElement[de.value.scroll]=qe*le/100:r.wrapElement[de.value.scroll]=qe*oe/100},Ne=()=>{ie=!1,V.value[de.value.axis]=0,document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",Ne),Ve(),ae&&(re.value=!1)},Oe=()=>{ae=!1,re.value=!!t.size},$e=()=>{ae=!0,re.value=ie};onBeforeUnmount(()=>{Ve(),document.removeEventListener("mouseup",Ne)});const Ve=()=>{document.onselectstart!==ue&&(document.onselectstart=ue)};return useEventListener(toRef$1(r,"scrollbarElement"),"mousemove",Oe),useEventListener(toRef$1(r,"scrollbarElement"),"mouseleave",$e),(Ue,Fe)=>(openBlock(),createBlock(Transition,{name:unref(i).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{ref_key:"instance",ref:g,class:normalizeClass([unref(i).e("bar"),unref(i).is(de.value.key)]),onMousedown:Ce,onClick:Fe[0]||(Fe[0]=withModifiers(()=>{},["stop"]))},[createBaseVNode("div",{ref_key:"thumb",ref:$,class:normalizeClass(unref(i).e("thumb")),style:normalizeStyle$1(he.value),onMousedown:_e},null,38)],34),[[vShow,Ue.always||re.value]])]),_:1},8,["name"]))}});var Thumb=_export_sfc(_sfc_main$2W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const barProps=buildProps({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),_sfc_main$2V=defineComponent({__name:"bar",props:barProps,setup(n,{expose:t}){const r=n,i=inject(scrollbarContextKey),g=ref(0),$=ref(0),V=ref(""),re=ref(""),ie=ref(1),ae=ref(1);return t({handleScroll:ue=>{if(ue){const de=ue.offsetHeight-GAP,he=ue.offsetWidth-GAP;$.value=ue.scrollTop*100/de*ie.value,g.value=ue.scrollLeft*100/he*ae.value}},update:()=>{const ue=i==null?void 0:i.wrapElement;if(!ue)return;const de=ue.offsetHeight-GAP,he=ue.offsetWidth-GAP,pe=de**2/ue.scrollHeight,_e=he**2/ue.scrollWidth,Ce=Math.max(pe,r.minSize),xe=Math.max(_e,r.minSize);ie.value=pe/(de-pe)/(Ce/(de-Ce)),ae.value=_e/(he-_e)/(xe/(he-xe)),re.value=Ce+GAP(openBlock(),createElementBlock(Fragment,null,[createVNode$1(Thumb,{move:g.value,ratio:ae.value,size:V.value,always:ue.always},null,8,["move","ratio","size","always"]),createVNode$1(Thumb,{move:$.value,ratio:ie.value,size:re.value,vertical:"",always:ue.always},null,8,["move","ratio","size","always"])],64))}});var Bar=_export_sfc(_sfc_main$2V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const scrollbarProps=buildProps({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:definePropType([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...useAriaProps(["ariaLabel","ariaOrientation"])}),scrollbarEmits={"end-reached":n=>["left","right","top","bottom"].includes(n),scroll:({scrollTop:n,scrollLeft:t})=>[n,t].every(isNumber$2)},_hoisted_1$1C=["tabindex"],COMPONENT_NAME$l="ElScrollbar",_sfc_main$2U=defineComponent({name:COMPONENT_NAME$l,__name:"scrollbar",props:scrollbarProps,emits:scrollbarEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("scrollbar");let V,re,ie,ae=0,oe=0,le="";const ue={bottom:!1,top:!1,right:!1,left:!1},de=ref(),he=ref(),pe=ref(),_e=ref(),Ce=computed(()=>{const qe={},Et=addUnit(i.height),kt=addUnit(i.maxHeight);return Et&&(qe.height=Et),kt&&(qe.maxHeight=kt),[i.wrapStyle,qe]}),xe=computed(()=>[i.wrapClass,$.e("wrap"),{[$.em("wrap","hidden-default")]:!i.native}]),Ie=computed(()=>[$.e("view"),i.viewClass]),Ne=qe=>{var Et;return(Et=ue[qe])!=null?Et:!1},Oe={top:"bottom",bottom:"top",left:"right",right:"left"},$e=qe=>{const Et=Oe[le];if(!Et)return;const kt=qe[le],At=qe[Et];kt&&!ue[le]&&(ue[le]=!0),!At&&ue[Et]&&(ue[Et]=!1)},Ve=()=>{var qe;if(he.value){(qe=_e.value)==null||qe.handleScroll(he.value);const Et=ae,kt=oe;ae=he.value.scrollTop,oe=he.value.scrollLeft;const At={bottom:ae+he.value.clientHeight>=he.value.scrollHeight-i.distance,top:ae<=i.distance&&Et!==0,right:oe+he.value.clientWidth>=he.value.scrollWidth-i.distance&&kt!==oe,left:oe<=i.distance&&kt!==0};if(g("scroll",{scrollTop:ae,scrollLeft:oe}),Et!==ae&&(le=ae>Et?"bottom":"top"),kt!==oe&&(le=oe>kt?"right":"left"),i.distance>0){if(Ne(le))return;$e(At)}At[le]&&g("end-reached",le)}};function Ue(qe,Et){isObject$6(qe)?he.value.scrollTo(qe):isNumber$2(qe)&&isNumber$2(Et)&&he.value.scrollTo(qe,Et)}const Fe=qe=>{isNumber$2(qe)&&(he.value.scrollTop=qe)},ze=qe=>{isNumber$2(qe)&&(he.value.scrollLeft=qe)},Pt=()=>{var qe;(qe=_e.value)==null||qe.update(),ue[le]=!1};return watch(()=>i.noresize,qe=>{qe?(V==null||V(),re==null||re(),ie==null||ie()):({stop:V}=useResizeObserver(pe,Pt),{stop:re}=useResizeObserver(he,Pt),ie=useEventListener("resize",Pt))},{immediate:!0}),watch(()=>[i.maxHeight,i.height],()=>{i.native||nextTick(()=>{var qe;Pt(),he.value&&((qe=_e.value)==null||qe.handleScroll(he.value))})}),provide(scrollbarContextKey,reactive({scrollbarElement:de,wrapElement:he})),onActivated(()=>{he.value&&(he.value.scrollTop=ae,he.value.scrollLeft=oe)}),onMounted(()=>{i.native||nextTick(()=>{Pt()})}),onUpdated(()=>Pt()),t({wrapRef:he,update:Pt,scrollTo:Ue,setScrollTop:Fe,setScrollLeft:ze,handleScroll:Ve}),(qe,Et)=>(openBlock(),createElementBlock("div",{ref_key:"scrollbarRef",ref:de,class:normalizeClass(unref($).b())},[createBaseVNode("div",{ref_key:"wrapRef",ref:he,class:normalizeClass(xe.value),style:normalizeStyle$1(Ce.value),tabindex:qe.tabindex,onScroll:Ve},[(openBlock(),createBlock(resolveDynamicComponent(qe.tag),{id:qe.id,ref_key:"resizeRef",ref:pe,class:normalizeClass(Ie.value),style:normalizeStyle$1(qe.viewStyle),role:qe.role,"aria-label":qe.ariaLabel,"aria-orientation":qe.ariaOrientation},{default:withCtx(()=>[renderSlot(qe.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,_hoisted_1$1C),qe.native?createCommentVNode("v-if",!0):(openBlock(),createBlock(Bar,{key:0,ref_key:"barRef",ref:_e,always:qe.always,"min-size":qe.minSize},null,8,["always","min-size"]))],2))}});var Scrollbar=_export_sfc(_sfc_main$2U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ElScrollbar=withInstall(Scrollbar),POPPER_INJECTION_KEY=Symbol("popper"),POPPER_CONTENT_INJECTION_KEY=Symbol("popperContent"),roleTypes=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],popperProps=buildProps({role:{type:String,values:roleTypes,default:"tooltip"}}),_sfc_main$2T=defineComponent({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:popperProps,setup(n,{expose:t}){const r=n,i=ref(),g=ref(),$=ref(),V=ref(),re=computed(()=>r.role),ie={triggerRef:i,popperInstanceRef:g,contentRef:$,referenceRef:V,role:re};return t(ie),provide(POPPER_INJECTION_KEY,ie),(ae,oe)=>renderSlot(ae.$slots,"default")}});var Popper=_export_sfc(_sfc_main$2T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const _sfc_main$2S=defineComponent({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(n,{expose:t}){const r=useNamespace("popper"),{arrowRef:i,arrowStyle:g}=inject(POPPER_CONTENT_INJECTION_KEY,void 0);return onBeforeUnmount(()=>{i.value=void 0}),t({arrowRef:i}),($,V)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:i,class:normalizeClass(unref(r).e("arrow")),style:normalizeStyle$1(unref(g)),"data-popper-arrow":""},null,6))}});var ElPopperArrow=_export_sfc(_sfc_main$2S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const popperTriggerProps=buildProps({virtualRef:{type:definePropType(Object)},virtualTriggering:Boolean,onMouseenter:{type:definePropType(Function)},onMouseleave:{type:definePropType(Function)},onClick:{type:definePropType(Function)},onKeydown:{type:definePropType(Function)},onFocus:{type:definePropType(Function)},onBlur:{type:definePropType(Function)},onContextmenu:{type:definePropType(Function)},id:String,open:Boolean}),FORWARD_REF_INJECTION_KEY=Symbol("elForwardRef"),useForwardRef=n=>{provide(FORWARD_REF_INJECTION_KEY,{setForwardRef:r=>{n.value=r}})},useForwardRefDirective=n=>({mounted(t){n(t)},updated(t){n(t)},unmounted(){n(null)}}),NAME="ElOnlyChild",OnlyChild=defineComponent({name:NAME,setup(n,{slots:t,attrs:r}){var i;const g=inject(FORWARD_REF_INJECTION_KEY),$=useForwardRefDirective((i=g==null?void 0:g.setForwardRef)!=null?i:NOOP);return()=>{var V;const re=(V=t.default)==null?void 0:V.call(t,r);if(!re)return null;const[ie,ae]=findFirstLegitChild(re);return ie?withDirectives(cloneVNode(ie,r),[[$]]):null}}});function findFirstLegitChild(n){if(!n)return[null,0];const t=n,r=t.filter(i=>i.type!==Comment).length;for(const i of t){if(isObject$6(i))switch(i.type){case Comment:continue;case Text$1:case"svg":return[wrapTextContent(i),r];case Fragment:return findFirstLegitChild(i.children);default:return[i,r]}return[wrapTextContent(i),r]}return[null,0]}function wrapTextContent(n){const t=useNamespace("only-child");return createVNode$1("span",{class:t.e("content")},[n])}const _sfc_main$2R=defineComponent({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:popperTriggerProps,setup(n,{expose:t}){const r=n,{role:i,triggerRef:g}=inject(POPPER_INJECTION_KEY,void 0);useForwardRef(g);const $=computed(()=>re.value?r.id:void 0),V=computed(()=>{if(i&&i.value==="tooltip")return r.open&&r.id?r.id:void 0}),re=computed(()=>{if(i&&i.value!=="tooltip")return i.value}),ie=computed(()=>re.value?`${r.open}`:void 0);let ae;const oe=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return onMounted(()=>{watch(()=>r.virtualRef,le=>{le&&(g.value=unrefElement(le))},{immediate:!0}),watch(g,(le,ue)=>{ae==null||ae(),ae=void 0,isElement$1(ue)&&oe.forEach(de=>{const he=r[de];he&&ue.removeEventListener(de.slice(2).toLowerCase(),he,["onFocus","onBlur"].includes(de))}),isElement$1(le)&&(oe.forEach(de=>{const he=r[de];he&&le.addEventListener(de.slice(2).toLowerCase(),he,["onFocus","onBlur"].includes(de))}),isFocusable(le)&&(ae=watch([$,V,re,ie],de=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((he,pe)=>{isNil(de[pe])?le.removeAttribute(he):le.setAttribute(he,de[pe])})},{immediate:!0}))),isElement$1(ue)&&isFocusable(ue)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(de=>ue.removeAttribute(de))},{immediate:!0})}),onBeforeUnmount(()=>{if(ae==null||ae(),ae=void 0,g.value&&isElement$1(g.value)){const le=g.value;oe.forEach(ue=>{const de=r[ue];de&&le.removeEventListener(ue.slice(2).toLowerCase(),de,["onFocus","onBlur"].includes(ue))}),g.value=void 0}}),t({triggerRef:g}),(le,ue)=>le.virtualTriggering?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(OnlyChild),mergeProps({key:0},le.$attrs,{"aria-controls":$.value,"aria-describedby":V.value,"aria-expanded":ie.value,"aria-haspopup":re.value}),{default:withCtx(()=>[renderSlot(le.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ElPopperTrigger=_export_sfc(_sfc_main$2R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const FOCUS_AFTER_TRAPPED="focus-trap.focus-after-trapped",FOCUS_AFTER_RELEASED="focus-trap.focus-after-released",FOCUSOUT_PREVENTED="focus-trap.focusout-prevented",FOCUS_AFTER_TRAPPED_OPTS={cancelable:!0,bubbles:!1},FOCUSOUT_PREVENTED_OPTS={cancelable:!0,bubbles:!1},ON_TRAP_FOCUS_EVT="focusAfterTrapped",ON_RELEASE_FOCUS_EVT="focusAfterReleased",FOCUS_TRAP_INJECTION_KEY=Symbol("elFocusTrap"),focusReason=ref(),lastUserFocusTimestamp=ref(0),lastAutomatedFocusTimestamp=ref(0);let focusReasonUserCount=0;const obtainAllFocusableElements=n=>{const t=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const g=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||g?NodeFilter.FILTER_SKIP:i.tabIndex>=0||i===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},getVisibleElement=(n,t)=>{for(const r of n)if(!isHidden(r,t))return r},isHidden=(n,t)=>{if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(t&&n===t)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1},getEdges=n=>{const t=obtainAllFocusableElements(n),r=getVisibleElement(t,n),i=getVisibleElement(t.reverse(),n);return[r,i]},isSelectable=n=>n instanceof HTMLInputElement&&"select"in n,tryFocus=(n,t)=>{if(n){const r=document.activeElement;focusElement(n,{preventScroll:!0}),lastAutomatedFocusTimestamp.value=window.performance.now(),n!==r&&isSelectable(n)&&t&&n.select()}};function removeFromStack(n,t){const r=[...n],i=n.indexOf(t);return i!==-1&&r.splice(i,1),r}const createFocusableStack=()=>{let n=[];return{push:i=>{const g=n[0];g&&i!==g&&g.pause(),n=removeFromStack(n,i),n.unshift(i)},remove:i=>{var g,$;n=removeFromStack(n,i),($=(g=n[0])==null?void 0:g.resume)==null||$.call(g)}}},focusFirstDescendant=(n,t=!1)=>{const r=document.activeElement;for(const i of n)if(tryFocus(i,t),document.activeElement!==r)return},focusableStack=createFocusableStack(),isFocusCausedByUserEvent=()=>lastUserFocusTimestamp.value>lastAutomatedFocusTimestamp.value,notifyFocusReasonPointer=()=>{focusReason.value="pointer",lastUserFocusTimestamp.value=window.performance.now()},notifyFocusReasonKeydown=()=>{focusReason.value="keyboard",lastUserFocusTimestamp.value=window.performance.now()},useFocusReason=()=>(onMounted(()=>{focusReasonUserCount===0&&(document.addEventListener("mousedown",notifyFocusReasonPointer),document.addEventListener("touchstart",notifyFocusReasonPointer),document.addEventListener("keydown",notifyFocusReasonKeydown)),focusReasonUserCount++}),onBeforeUnmount(()=>{focusReasonUserCount--,focusReasonUserCount<=0&&(document.removeEventListener("mousedown",notifyFocusReasonPointer),document.removeEventListener("touchstart",notifyFocusReasonPointer),document.removeEventListener("keydown",notifyFocusReasonKeydown))}),{focusReason,lastUserFocusTimestamp,lastAutomatedFocusTimestamp}),createFocusOutPreventedEvent=n=>new CustomEvent(FOCUSOUT_PREVENTED,{...FOCUSOUT_PREVENTED_OPTS,detail:n}),EVENT_CODE={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"},composeEventHandlers=(n,t,{checkForDefaultPrevented:r=!0}={})=>g=>{const $=n==null?void 0:n(g);if(r===!1||!$)return t==null?void 0:t(g)},whenMouse=n=>t=>t.pointerType==="mouse"?n(t):void 0,getEventCode=n=>{if(n.code&&n.code!=="Unidentified")return n.code;const t=getEventKey(n);if(t){if(Object.values(EVENT_CODE).includes(t))return t;switch(t){case" ":return EVENT_CODE.space;default:return""}}return""},getEventKey=n=>{let t=n.key&&n.key!=="Unidentified"?n.key:"";if(!t&&n.type==="keyup"&&isAndroid()){const r=n.target;t=r.value.charAt(r.selectionStart-1)}return t};let registeredEscapeHandlers=[];const cachedHandler=n=>{getEventCode(n)===EVENT_CODE.esc&®isteredEscapeHandlers.forEach(r=>r(n))},useEscapeKeydown=n=>{onMounted(()=>{registeredEscapeHandlers.length===0&&document.addEventListener("keydown",cachedHandler),isClient&®isteredEscapeHandlers.push(n)}),onBeforeUnmount(()=>{registeredEscapeHandlers=registeredEscapeHandlers.filter(t=>t!==n),registeredEscapeHandlers.length===0&&isClient&&document.removeEventListener("keydown",cachedHandler)})},_sfc_main$2Q=defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ON_TRAP_FOCUS_EVT,ON_RELEASE_FOCUS_EVT,"focusin","focusout","focusout-prevented","release-requested"],setup(n,{emit:t}){const r=ref();let i,g;const{focusReason:$}=useFocusReason();useEscapeKeydown(he=>{n.trapped&&!V.paused&&t("release-requested",he)});const V={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},re=he=>{if(!n.loop&&!n.trapped||V.paused)return;const{altKey:pe,ctrlKey:_e,metaKey:Ce,currentTarget:xe,shiftKey:Ie}=he,{loop:Ne}=n,$e=getEventCode(he)===EVENT_CODE.tab&&!pe&&!_e&&!Ce,Ve=document.activeElement;if($e&&Ve){const Ue=xe,[Fe,ze]=getEdges(Ue);if(Fe&&ze){if(!Ie&&Ve===ze){const qe=createFocusOutPreventedEvent({focusReason:$.value});t("focusout-prevented",qe),qe.defaultPrevented||(he.preventDefault(),Ne&&tryFocus(Fe,!0))}else if(Ie&&[Fe,Ue].includes(Ve)){const qe=createFocusOutPreventedEvent({focusReason:$.value});t("focusout-prevented",qe),qe.defaultPrevented||(he.preventDefault(),Ne&&tryFocus(ze,!0))}}else if(Ve===Ue){const qe=createFocusOutPreventedEvent({focusReason:$.value});t("focusout-prevented",qe),qe.defaultPrevented||he.preventDefault()}}};provide(FOCUS_TRAP_INJECTION_KEY,{focusTrapRef:r,onKeydown:re}),watch(()=>n.focusTrapEl,he=>{he&&(r.value=he)},{immediate:!0}),watch([r],([he],[pe])=>{he&&(he.addEventListener("keydown",re),he.addEventListener("focusin",oe),he.addEventListener("focusout",le)),pe&&(pe.removeEventListener("keydown",re),pe.removeEventListener("focusin",oe),pe.removeEventListener("focusout",le))});const ie=he=>{t(ON_TRAP_FOCUS_EVT,he)},ae=he=>t(ON_RELEASE_FOCUS_EVT,he),oe=he=>{const pe=unref(r);if(!pe)return;const _e=he.target,Ce=he.relatedTarget,xe=_e&&pe.contains(_e);n.trapped||Ce&&pe.contains(Ce)||(i=Ce),xe&&t("focusin",he),!V.paused&&n.trapped&&(xe?g=_e:tryFocus(g,!0))},le=he=>{const pe=unref(r);if(!(V.paused||!pe))if(n.trapped){const _e=he.relatedTarget;!isNil(_e)&&!pe.contains(_e)&&setTimeout(()=>{if(!V.paused&&n.trapped){const Ce=createFocusOutPreventedEvent({focusReason:$.value});t("focusout-prevented",Ce),Ce.defaultPrevented||tryFocus(g,!0)}},0)}else{const _e=he.target;_e&&pe.contains(_e)||t("focusout",he)}};async function ue(){await nextTick();const he=unref(r);if(he){focusableStack.push(V);const pe=he.contains(document.activeElement)?i:document.activeElement;if(i=pe,!he.contains(pe)){const Ce=new Event(FOCUS_AFTER_TRAPPED,FOCUS_AFTER_TRAPPED_OPTS);he.addEventListener(FOCUS_AFTER_TRAPPED,ie),he.dispatchEvent(Ce),Ce.defaultPrevented||nextTick(()=>{let xe=n.focusStartEl;isString$2(xe)||(tryFocus(xe),document.activeElement!==xe&&(xe="first")),xe==="first"&&focusFirstDescendant(obtainAllFocusableElements(he),!0),(document.activeElement===pe||xe==="container")&&tryFocus(he)})}}}function de(){const he=unref(r);if(he){he.removeEventListener(FOCUS_AFTER_TRAPPED,ie);const pe=new CustomEvent(FOCUS_AFTER_RELEASED,{...FOCUS_AFTER_TRAPPED_OPTS,detail:{focusReason:$.value}});he.addEventListener(FOCUS_AFTER_RELEASED,ae),he.dispatchEvent(pe),!pe.defaultPrevented&&($.value=="keyboard"||!isFocusCausedByUserEvent()||he.contains(document.activeElement))&&tryFocus(i??document.body),he.removeEventListener(FOCUS_AFTER_RELEASED,ae),focusableStack.remove(V),i=null,g=null}}return onMounted(()=>{n.trapped&&ue(),watch(()=>n.trapped,he=>{he?ue():de()})}),onBeforeUnmount(()=>{n.trapped&&de(),r.value&&(r.value.removeEventListener("keydown",re),r.value.removeEventListener("focusin",oe),r.value.removeEventListener("focusout",le),r.value=void 0),i=null,g=null}),{onKeydown:re}}});function _sfc_render$l(n,t,r,i,g,$){return renderSlot(n.$slots,"default",{handleKeydown:n.onKeydown})}var ElFocusTrap=_export_sfc(_sfc_main$2Q,[["render",_sfc_render$l],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]),E$2="top",R="bottom",W="right",P$2="left",me="auto",G=[E$2,R,W,P$2],U$2="start",J="end",Xe="clippingParents",je="viewport",K="popper",Ye="reference",De=G.reduce(function(n,t){return n.concat([t+"-"+U$2,t+"-"+J])},[]),Ee=[].concat(G,[me]).reduce(function(n,t){return n.concat([t,t+"-"+U$2,t+"-"+J])},[]),Ge="beforeRead",Je="read",Ke="afterRead",Qe="beforeMain",Ze="main",et="afterMain",tt="beforeWrite",nt="write",rt$1="afterWrite",ot=[Ge,Je,Ke,Qe,Ze,et,tt,nt,rt$1];function C$1(n){return n?(n.nodeName||"").toLowerCase():null}function H$1(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function Q(n){var t=H$1(n).Element;return n instanceof t||n instanceof Element}function B$1(n){var t=H$1(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function Pe(n){if(typeof ShadowRoot>"u")return!1;var t=H$1(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function Mt(n){var t=n.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},g=t.attributes[r]||{},$=t.elements[r];!B$1($)||!C$1($)||(Object.assign($.style,i),Object.keys(g).forEach(function(V){var re=g[V];re===!1?$.removeAttribute(V):$.setAttribute(V,re===!0?"":re)}))})}function Rt(n){var t=n.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var g=t.elements[i],$=t.attributes[i]||{},V=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),re=V.reduce(function(ie,ae){return ie[ae]="",ie},{});!B$1(g)||!C$1(g)||(Object.assign(g.style,re),Object.keys($).forEach(function(ie){g.removeAttribute(ie)}))})}}var Ae={name:"applyStyles",enabled:!0,phase:"write",fn:Mt,effect:Rt,requires:["computeStyles"]};function q(n){return n.split("-")[0]}var X$1=Math.max,ve=Math.min,Z=Math.round;function ee(n,t){t===void 0&&(t=!1);var r=n.getBoundingClientRect(),i=1,g=1;if(B$1(n)&&t){var $=n.offsetHeight,V=n.offsetWidth;V>0&&(i=Z(r.width)/V||1),$>0&&(g=Z(r.height)/$||1)}return{width:r.width/i,height:r.height/g,top:r.top/g,right:r.right/i,bottom:r.bottom/g,left:r.left/i,x:r.left/i,y:r.top/g}}function ke(n){var t=ee(n),r=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:r,height:i}}function it(n,t){var r=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(r&&Pe(r)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function N$1(n){return H$1(n).getComputedStyle(n)}function Wt(n){return["table","td","th"].indexOf(C$1(n))>=0}function I$1(n){return((Q(n)?n.ownerDocument:n.document)||window.document).documentElement}function ge(n){return C$1(n)==="html"?n:n.assignedSlot||n.parentNode||(Pe(n)?n.host:null)||I$1(n)}function at(n){return!B$1(n)||N$1(n).position==="fixed"?null:n.offsetParent}function Bt(n){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&B$1(n)){var i=N$1(n);if(i.position==="fixed")return null}var g=ge(n);for(Pe(g)&&(g=g.host);B$1(g)&&["html","body"].indexOf(C$1(g))<0;){var $=N$1(g);if($.transform!=="none"||$.perspective!=="none"||$.contain==="paint"||["transform","perspective"].indexOf($.willChange)!==-1||t&&$.willChange==="filter"||t&&$.filter&&$.filter!=="none")return g;g=g.parentNode}return null}function se(n){for(var t=H$1(n),r=at(n);r&&Wt(r)&&N$1(r).position==="static";)r=at(r);return r&&(C$1(r)==="html"||C$1(r)==="body"&&N$1(r).position==="static")?t:r||Bt(n)||t}function Le(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function fe(n,t,r){return X$1(n,ve(t,r))}function St(n,t,r){var i=fe(n,t,r);return i>r?r:i}function st(){return{top:0,right:0,bottom:0,left:0}}function ft(n){return Object.assign({},st(),n)}function ct(n,t){return t.reduce(function(r,i){return r[i]=n,r},{})}var Tt=function(n,t){return n=typeof n=="function"?n(Object.assign({},t.rects,{placement:t.placement})):n,ft(typeof n!="number"?n:ct(n,G))};function Ht(n){var t,r=n.state,i=n.name,g=n.options,$=r.elements.arrow,V=r.modifiersData.popperOffsets,re=q(r.placement),ie=Le(re),ae=[P$2,W].indexOf(re)>=0,oe=ae?"height":"width";if(!(!$||!V)){var le=Tt(g.padding,r),ue=ke($),de=ie==="y"?E$2:P$2,he=ie==="y"?R:W,pe=r.rects.reference[oe]+r.rects.reference[ie]-V[ie]-r.rects.popper[oe],_e=V[ie]-r.rects.reference[ie],Ce=se($),xe=Ce?ie==="y"?Ce.clientHeight||0:Ce.clientWidth||0:0,Ie=pe/2-_e/2,Ne=le[de],Oe=xe-ue[oe]-le[he],$e=xe/2-ue[oe]/2+Ie,Ve=fe(Ne,$e,Oe),Ue=ie;r.modifiersData[i]=(t={},t[Ue]=Ve,t.centerOffset=Ve-$e,t)}}function Ct(n){var t=n.state,r=n.options,i=r.element,g=i===void 0?"[data-popper-arrow]":i;g!=null&&(typeof g=="string"&&(g=t.elements.popper.querySelector(g),!g)||!it(t.elements.popper,g)||(t.elements.arrow=g))}var pt={name:"arrow",enabled:!0,phase:"main",fn:Ht,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te(n){return n.split("-")[1]}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt(n){var t=n.x,r=n.y,i=window,g=i.devicePixelRatio||1;return{x:Z(t*g)/g||0,y:Z(r*g)/g||0}}function ut(n){var t,r=n.popper,i=n.popperRect,g=n.placement,$=n.variation,V=n.offsets,re=n.position,ie=n.gpuAcceleration,ae=n.adaptive,oe=n.roundOffsets,le=n.isFixed,ue=V.x,de=ue===void 0?0:ue,he=V.y,pe=he===void 0?0:he,_e=typeof oe=="function"?oe({x:de,y:pe}):{x:de,y:pe};de=_e.x,pe=_e.y;var Ce=V.hasOwnProperty("x"),xe=V.hasOwnProperty("y"),Ie=P$2,Ne=E$2,Oe=window;if(ae){var $e=se(r),Ve="clientHeight",Ue="clientWidth";if($e===H$1(r)&&($e=I$1(r),N$1($e).position!=="static"&&re==="absolute"&&(Ve="scrollHeight",Ue="scrollWidth")),$e=$e,g===E$2||(g===P$2||g===W)&&$===J){Ne=R;var Fe=le&&$e===Oe&&Oe.visualViewport?Oe.visualViewport.height:$e[Ve];pe-=Fe-i.height,pe*=ie?1:-1}if(g===P$2||(g===E$2||g===R)&&$===J){Ie=W;var ze=le&&$e===Oe&&Oe.visualViewport?Oe.visualViewport.width:$e[Ue];de-=ze-i.width,de*=ie?1:-1}}var Pt=Object.assign({position:re},ae&&qt),qe=oe===!0?Vt({x:de,y:pe}):{x:de,y:pe};if(de=qe.x,pe=qe.y,ie){var Et;return Object.assign({},Pt,(Et={},Et[Ne]=xe?"0":"",Et[Ie]=Ce?"0":"",Et.transform=(Oe.devicePixelRatio||1)<=1?"translate("+de+"px, "+pe+"px)":"translate3d("+de+"px, "+pe+"px, 0)",Et))}return Object.assign({},Pt,(t={},t[Ne]=xe?pe+"px":"",t[Ie]=Ce?de+"px":"",t.transform="",t))}function Nt(n){var t=n.state,r=n.options,i=r.gpuAcceleration,g=i===void 0?!0:i,$=r.adaptive,V=$===void 0?!0:$,re=r.roundOffsets,ie=re===void 0?!0:re,ae={placement:q(t.placement),variation:te(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:g,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ut(Object.assign({},ae,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:V,roundOffsets:ie})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ut(Object.assign({},ae,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ie})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt,data:{}},ye={passive:!0};function It(n){var t=n.state,r=n.instance,i=n.options,g=i.scroll,$=g===void 0?!0:g,V=i.resize,re=V===void 0?!0:V,ie=H$1(t.elements.popper),ae=[].concat(t.scrollParents.reference,t.scrollParents.popper);return $&&ae.forEach(function(oe){oe.addEventListener("scroll",r.update,ye)}),re&&ie.addEventListener("resize",r.update,ye),function(){$&&ae.forEach(function(oe){oe.removeEventListener("scroll",r.update,ye)}),re&&ie.removeEventListener("resize",r.update,ye)}}var Re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:It,data:{}},_t={left:"right",right:"left",bottom:"top",top:"bottom"};function be(n){return n.replace(/left|right|bottom|top/g,function(t){return _t[t]})}var zt={start:"end",end:"start"};function lt$1(n){return n.replace(/start|end/g,function(t){return zt[t]})}function We(n){var t=H$1(n),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Be(n){return ee(I$1(n)).left+We(n).scrollLeft}function Ft(n){var t=H$1(n),r=I$1(n),i=t.visualViewport,g=r.clientWidth,$=r.clientHeight,V=0,re=0;return i&&(g=i.width,$=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(V=i.offsetLeft,re=i.offsetTop)),{width:g,height:$,x:V+Be(n),y:re}}function Ut(n){var t,r=I$1(n),i=We(n),g=(t=n.ownerDocument)==null?void 0:t.body,$=X$1(r.scrollWidth,r.clientWidth,g?g.scrollWidth:0,g?g.clientWidth:0),V=X$1(r.scrollHeight,r.clientHeight,g?g.scrollHeight:0,g?g.clientHeight:0),re=-i.scrollLeft+Be(n),ie=-i.scrollTop;return N$1(g||r).direction==="rtl"&&(re+=X$1(r.clientWidth,g?g.clientWidth:0)-$),{width:$,height:V,x:re,y:ie}}function Se(n){var t=N$1(n),r=t.overflow,i=t.overflowX,g=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+g+i)}function dt(n){return["html","body","#document"].indexOf(C$1(n))>=0?n.ownerDocument.body:B$1(n)&&Se(n)?n:dt(ge(n))}function ce(n,t){var r;t===void 0&&(t=[]);var i=dt(n),g=i===((r=n.ownerDocument)==null?void 0:r.body),$=H$1(i),V=g?[$].concat($.visualViewport||[],Se(i)?i:[]):i,re=t.concat(V);return g?re:re.concat(ce(ge(V)))}function Te(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Xt(n){var t=ee(n);return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function ht(n,t){return t===je?Te(Ft(n)):Q(t)?Xt(t):Te(Ut(I$1(n)))}function Yt(n){var t=ce(ge(n)),r=["absolute","fixed"].indexOf(N$1(n).position)>=0,i=r&&B$1(n)?se(n):n;return Q(i)?t.filter(function(g){return Q(g)&&it(g,i)&&C$1(g)!=="body"}):[]}function Gt(n,t,r){var i=t==="clippingParents"?Yt(n):[].concat(t),g=[].concat(i,[r]),$=g[0],V=g.reduce(function(re,ie){var ae=ht(n,ie);return re.top=X$1(ae.top,re.top),re.right=ve(ae.right,re.right),re.bottom=ve(ae.bottom,re.bottom),re.left=X$1(ae.left,re.left),re},ht(n,$));return V.width=V.right-V.left,V.height=V.bottom-V.top,V.x=V.left,V.y=V.top,V}function mt(n){var t=n.reference,r=n.element,i=n.placement,g=i?q(i):null,$=i?te(i):null,V=t.x+t.width/2-r.width/2,re=t.y+t.height/2-r.height/2,ie;switch(g){case E$2:ie={x:V,y:t.y-r.height};break;case R:ie={x:V,y:t.y+t.height};break;case W:ie={x:t.x+t.width,y:re};break;case P$2:ie={x:t.x-r.width,y:re};break;default:ie={x:t.x,y:t.y}}var ae=g?Le(g):null;if(ae!=null){var oe=ae==="y"?"height":"width";switch($){case U$2:ie[ae]=ie[ae]-(t[oe]/2-r[oe]/2);break;case J:ie[ae]=ie[ae]+(t[oe]/2-r[oe]/2);break}}return ie}function ne(n,t){t===void 0&&(t={});var r=t,i=r.placement,g=i===void 0?n.placement:i,$=r.boundary,V=$===void 0?Xe:$,re=r.rootBoundary,ie=re===void 0?je:re,ae=r.elementContext,oe=ae===void 0?K:ae,le=r.altBoundary,ue=le===void 0?!1:le,de=r.padding,he=de===void 0?0:de,pe=ft(typeof he!="number"?he:ct(he,G)),_e=oe===K?Ye:K,Ce=n.rects.popper,xe=n.elements[ue?_e:oe],Ie=Gt(Q(xe)?xe:xe.contextElement||I$1(n.elements.popper),V,ie),Ne=ee(n.elements.reference),Oe=mt({reference:Ne,element:Ce,strategy:"absolute",placement:g}),$e=Te(Object.assign({},Ce,Oe)),Ve=oe===K?$e:Ne,Ue={top:Ie.top-Ve.top+pe.top,bottom:Ve.bottom-Ie.bottom+pe.bottom,left:Ie.left-Ve.left+pe.left,right:Ve.right-Ie.right+pe.right},Fe=n.modifiersData.offset;if(oe===K&&Fe){var ze=Fe[g];Object.keys(Ue).forEach(function(Pt){var qe=[W,R].indexOf(Pt)>=0?1:-1,Et=[E$2,R].indexOf(Pt)>=0?"y":"x";Ue[Pt]+=ze[Et]*qe})}return Ue}function Jt(n,t){t===void 0&&(t={});var r=t,i=r.placement,g=r.boundary,$=r.rootBoundary,V=r.padding,re=r.flipVariations,ie=r.allowedAutoPlacements,ae=ie===void 0?Ee:ie,oe=te(i),le=oe?re?De:De.filter(function(he){return te(he)===oe}):G,ue=le.filter(function(he){return ae.indexOf(he)>=0});ue.length===0&&(ue=le);var de=ue.reduce(function(he,pe){return he[pe]=ne(n,{placement:pe,boundary:g,rootBoundary:$,padding:V})[q(pe)],he},{});return Object.keys(de).sort(function(he,pe){return de[he]-de[pe]})}function Kt(n){if(q(n)===me)return[];var t=be(n);return[lt$1(n),t,lt$1(t)]}function Qt(n){var t=n.state,r=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var g=r.mainAxis,$=g===void 0?!0:g,V=r.altAxis,re=V===void 0?!0:V,ie=r.fallbackPlacements,ae=r.padding,oe=r.boundary,le=r.rootBoundary,ue=r.altBoundary,de=r.flipVariations,he=de===void 0?!0:de,pe=r.allowedAutoPlacements,_e=t.options.placement,Ce=q(_e),xe=Ce===_e,Ie=ie||(xe||!he?[be(_e)]:Kt(_e)),Ne=[_e].concat(Ie).reduce(function(Cn,Sn){return Cn.concat(q(Sn)===me?Jt(t,{placement:Sn,boundary:oe,rootBoundary:le,padding:ae,flipVariations:he,allowedAutoPlacements:pe}):Sn)},[]),Oe=t.rects.reference,$e=t.rects.popper,Ve=new Map,Ue=!0,Fe=Ne[0],ze=0;ze=0,At=kt?"width":"height",Dt=ne(t,{placement:Pt,boundary:oe,rootBoundary:le,altBoundary:ue,padding:ae}),Lt=kt?Et?W:P$2:Et?R:E$2;Oe[At]>$e[At]&&(Lt=be(Lt));var jt=be(Lt),hn=[];if($&&hn.push(Dt[qe]<=0),re&&hn.push(Dt[Lt]<=0,Dt[jt]<=0),hn.every(function(Cn){return Cn})){Fe=Pt,Ue=!1;break}Ve.set(Pt,hn)}if(Ue)for(var vn=he?3:1,_n=function(Cn){var Sn=Ne.find(function(Tn){var En=Ve.get(Tn);if(En)return En.slice(0,Cn).every(function(kn){return kn})});if(Sn)return Fe=Sn,"break"},wn=vn;wn>0;wn--){var bn=_n(wn);if(bn==="break")break}t.placement!==Fe&&(t.modifiersData[i]._skip=!0,t.placement=Fe,t.reset=!0)}}var vt={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt(n,t,r){return r===void 0&&(r={x:0,y:0}),{top:n.top-t.height-r.y,right:n.right-t.width+r.x,bottom:n.bottom-t.height+r.y,left:n.left-t.width-r.x}}function yt(n){return[E$2,W,R,P$2].some(function(t){return n[t]>=0})}function Zt(n){var t=n.state,r=n.name,i=t.rects.reference,g=t.rects.popper,$=t.modifiersData.preventOverflow,V=ne(t,{elementContext:"reference"}),re=ne(t,{altBoundary:!0}),ie=gt(V,i),ae=gt(re,g,$),oe=yt(ie),le=yt(ae);t.modifiersData[r]={referenceClippingOffsets:ie,popperEscapeOffsets:ae,isReferenceHidden:oe,hasPopperEscaped:le},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":oe,"data-popper-escaped":le})}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en(n,t,r){var i=q(n),g=[P$2,E$2].indexOf(i)>=0?-1:1,$=typeof r=="function"?r(Object.assign({},t,{placement:n})):r,V=$[0],re=$[1];return V=V||0,re=(re||0)*g,[P$2,W].indexOf(i)>=0?{x:re,y:V}:{x:V,y:re}}function tn(n){var t=n.state,r=n.options,i=n.name,g=r.offset,$=g===void 0?[0,0]:g,V=Ee.reduce(function(oe,le){return oe[le]=en(le,t.rects,$),oe},{}),re=V[t.placement],ie=re.x,ae=re.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=ie,t.modifiersData.popperOffsets.y+=ae),t.modifiersData[i]=V}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn};function nn(n){var t=n.state,r=n.name;t.modifiersData[r]=mt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn(n){return n==="x"?"y":"x"}function on(n){var t=n.state,r=n.options,i=n.name,g=r.mainAxis,$=g===void 0?!0:g,V=r.altAxis,re=V===void 0?!1:V,ie=r.boundary,ae=r.rootBoundary,oe=r.altBoundary,le=r.padding,ue=r.tether,de=ue===void 0?!0:ue,he=r.tetherOffset,pe=he===void 0?0:he,_e=ne(t,{boundary:ie,rootBoundary:ae,padding:le,altBoundary:oe}),Ce=q(t.placement),xe=te(t.placement),Ie=!xe,Ne=Le(Ce),Oe=rn(Ne),$e=t.modifiersData.popperOffsets,Ve=t.rects.reference,Ue=t.rects.popper,Fe=typeof pe=="function"?pe(Object.assign({},t.rects,{placement:t.placement})):pe,ze=typeof Fe=="number"?{mainAxis:Fe,altAxis:Fe}:Object.assign({mainAxis:0,altAxis:0},Fe),Pt=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,qe={x:0,y:0};if($e){if($){var Et,kt=Ne==="y"?E$2:P$2,At=Ne==="y"?R:W,Dt=Ne==="y"?"height":"width",Lt=$e[Ne],jt=Lt+_e[kt],hn=Lt-_e[At],vn=de?-Ue[Dt]/2:0,_n=xe===U$2?Ve[Dt]:Ue[Dt],wn=xe===U$2?-Ue[Dt]:-Ve[Dt],bn=t.elements.arrow,Cn=de&&bn?ke(bn):{width:0,height:0},Sn=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:st(),Tn=Sn[kt],En=Sn[At],kn=fe(0,Ve[Dt],Cn[Dt]),$n=Ie?Ve[Dt]/2-vn-kn-Tn-ze.mainAxis:_n-kn-Tn-ze.mainAxis,An=Ie?-Ve[Dt]/2+vn+kn+En+ze.mainAxis:wn+kn+En+ze.mainAxis,xn=t.elements.arrow&&se(t.elements.arrow),Ln=xn?Ne==="y"?xn.clientTop||0:xn.clientLeft||0:0,Nn=(Et=Pt==null?void 0:Pt[Ne])!=null?Et:0,Pn=Lt+$n-Nn-Ln,On=Lt+An-Nn,Hn=fe(de?ve(jt,Pn):jt,Lt,de?X$1(hn,On):hn);$e[Ne]=Hn,qe[Ne]=Hn-Lt}if(re){var Xn,In=Ne==="x"?E$2:P$2,or=Ne==="x"?R:W,Qn=$e[Oe],Zn=Oe==="y"?"height":"width",Gn=Qn+_e[In],Rn=Qn-_e[or],Mn=[E$2,P$2].indexOf(Ce)!==-1,Bn=(Xn=Pt==null?void 0:Pt[Oe])!=null?Xn:0,qn=Mn?Gn:Qn-Ve[Zn]-Ue[Zn]-Bn+ze.altAxis,zn=Mn?Qn+Ve[Zn]+Ue[Zn]-Bn-ze.altAxis:Rn,jn=de&&Mn?St(qn,Qn,zn):fe(de?qn:Gn,Qn,de?zn:Rn);$e[Oe]=jn,qe[Oe]=jn-Qn}t.modifiersData[i]=qe}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function an(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function sn(n){return n===H$1(n)||!B$1(n)?We(n):an(n)}function fn(n){var t=n.getBoundingClientRect(),r=Z(t.width)/n.offsetWidth||1,i=Z(t.height)/n.offsetHeight||1;return r!==1||i!==1}function cn(n,t,r){r===void 0&&(r=!1);var i=B$1(t),g=B$1(t)&&fn(t),$=I$1(t),V=ee(n,g),re={scrollLeft:0,scrollTop:0},ie={x:0,y:0};return(i||!i&&!r)&&((C$1(t)!=="body"||Se($))&&(re=sn(t)),B$1(t)?(ie=ee(t,!0),ie.x+=t.clientLeft,ie.y+=t.clientTop):$&&(ie.x=Be($))),{x:V.left+re.scrollLeft-ie.x,y:V.top+re.scrollTop-ie.y,width:V.width,height:V.height}}function pn(n){var t=new Map,r=new Set,i=[];n.forEach(function($){t.set($.name,$)});function g($){r.add($.name);var V=[].concat($.requires||[],$.requiresIfExists||[]);V.forEach(function(re){if(!r.has(re)){var ie=t.get(re);ie&&g(ie)}}),i.push($)}return n.forEach(function($){r.has($.name)||g($)}),i}function un(n){var t=pn(n);return ot.reduce(function(r,i){return r.concat(t.filter(function(g){return g.phase===i}))},[])}function ln(n){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(n())})})),t}}function dn(n){var t=n.reduce(function(r,i){var g=r[i.name];return r[i.name]=g?Object.assign({},g,i,{options:Object.assign({},g.options,i.options),data:Object.assign({},g.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var n=arguments.length,t=new Array(n),r=0;r({})},strategy:{type:String,values:POSITIONING_STRATEGIES,default:"absolute"}}),popperContentProps=buildProps({...popperCoreConfigProps,...popperArrowProps,id:String,style:{type:definePropType([String,Array,Object])},className:{type:definePropType([String,Array,Object])},effect:{type:definePropType(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:definePropType([String,Array,Object])},popperStyle:{type:definePropType([String,Array,Object])},referenceEl:{type:definePropType(Object)},triggerTargetEl:{type:definePropType(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...useAriaProps(["ariaLabel"]),loop:Boolean}),popperContentEmits={mouseenter:n=>n instanceof MouseEvent,mouseleave:n=>n instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},usePopperContentFocusTrap=(n,t)=>{const r=ref(!1),i=ref(),g=()=>{t("focus")},$=ae=>{var oe;((oe=ae.detail)==null?void 0:oe.focusReason)!=="pointer"&&(i.value="first",t("blur"))},V=ae=>{n.visible&&!r.value&&(ae.target&&(i.value=ae.target),r.value=!0)},re=ae=>{n.trapping||(ae.detail.focusReason==="pointer"&&ae.preventDefault(),r.value=!1)},ie=()=>{r.value=!1,t("close")};return onBeforeUnmount(()=>{i.value=void 0}),{focusStartRef:i,trapped:r,onFocusAfterReleased:$,onFocusAfterTrapped:g,onFocusInTrap:V,onFocusoutPrevented:re,onReleaseRequested:ie}},buildPopperOptions=(n,t=[])=>{const{placement:r,strategy:i,popperOptions:g}=n,$={placement:r,strategy:i,...g,modifiers:[...genModifiers(n),...t]};return deriveExtraModifiers($,g==null?void 0:g.modifiers),$},unwrapMeasurableEl=n=>{if(isClient)return unrefElement(n)};function genModifiers(n){const{offset:t,gpuAcceleration:r,fallbackPlacements:i}=n;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:i}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function deriveExtraModifiers(n,t){t&&(n.modifiers=[...n.modifiers,...t??[]])}const usePopper=(n,t,r={})=>{const i={name:"updateState",enabled:!0,phase:"write",fn:({state:ie})=>{const ae=deriveState(ie);Object.assign(V.value,ae)},requires:["computeStyles"]},g=computed(()=>{const{onFirstUpdate:ie,placement:ae,strategy:oe,modifiers:le}=unref(r);return{onFirstUpdate:ie,placement:ae||"bottom",strategy:oe||"absolute",modifiers:[...le||[],i,{name:"applyStyles",enabled:!1}]}}),$=shallowRef(),V=ref({styles:{popper:{position:unref(g).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),re=()=>{$.value&&($.value.destroy(),$.value=void 0)};return watch(g,ie=>{const ae=unref($);ae&&ae.setOptions(ie)},{deep:!0}),watch([n,t],([ie,ae])=>{re(),!(!ie||!ae)&&($.value=yn(ie,ae,unref(g)))}),onBeforeUnmount(()=>{re()}),{state:computed(()=>{var ie;return{...((ie=unref($))==null?void 0:ie.state)||{}}}),styles:computed(()=>unref(V).styles),attributes:computed(()=>unref(V).attributes),update:()=>{var ie;return(ie=unref($))==null?void 0:ie.update()},forceUpdate:()=>{var ie;return(ie=unref($))==null?void 0:ie.forceUpdate()},instanceRef:computed(()=>unref($))}};function deriveState(n){const t=Object.keys(n.elements),r=fromPairs(t.map(g=>[g,n.styles[g]||{}])),i=fromPairs(t.map(g=>[g,n.attributes[g]]));return{styles:r,attributes:i}}const DEFAULT_ARROW_OFFSET=0,usePopperContent=n=>{const{popperInstanceRef:t,contentRef:r,triggerRef:i,role:g}=inject(POPPER_INJECTION_KEY,void 0),$=ref(),V=computed(()=>n.arrowOffset),re=computed(()=>({name:"eventListeners",enabled:!!n.visible})),ie=computed(()=>{var Ce;const xe=unref($),Ie=(Ce=unref(V))!=null?Ce:DEFAULT_ARROW_OFFSET;return{name:"arrow",enabled:!isUndefined$2(xe),options:{element:xe,padding:Ie}}}),ae=computed(()=>({onFirstUpdate:()=>{he()},...buildPopperOptions(n,[unref(ie),unref(re)])})),oe=computed(()=>unwrapMeasurableEl(n.referenceEl)||unref(i)),{attributes:le,state:ue,styles:de,update:he,forceUpdate:pe,instanceRef:_e}=usePopper(oe,r,ae);return watch(_e,Ce=>t.value=Ce,{flush:"sync"}),onMounted(()=>{watch(()=>{var Ce,xe;return(xe=(Ce=unref(oe))==null?void 0:Ce.getBoundingClientRect)==null?void 0:xe.call(Ce)},()=>{he()})}),onBeforeUnmount(()=>{t.value=void 0}),{attributes:le,arrowRef:$,contentRef:r,instanceRef:_e,state:ue,styles:de,role:g,forceUpdate:pe,update:he}},usePopperContentDOM=(n,{attributes:t,styles:r,role:i})=>{const{nextZIndex:g}=useZIndex(),$=useNamespace("popper"),V=computed(()=>unref(t).popper),re=ref(isNumber$2(n.zIndex)?n.zIndex:g()),ie=computed(()=>[$.b(),$.is("pure",n.pure),$.is(n.effect),n.popperClass]),ae=computed(()=>[{zIndex:unref(re)},unref(r).popper,n.popperStyle||{}]),oe=computed(()=>i.value==="dialog"?"false":void 0),le=computed(()=>unref(r).arrow||{});return{ariaModal:oe,arrowStyle:le,contentAttrs:V,contentClass:ie,contentStyle:ae,contentZIndex:re,updateZIndex:()=>{re.value=isNumber$2(n.zIndex)?n.zIndex:g()}}},_sfc_main$2P=defineComponent({name:"ElPopperContent",__name:"content",props:popperContentProps,emits:popperContentEmits,setup(n,{expose:t,emit:r}){const i=r,g=n,{focusStartRef:$,trapped:V,onFocusAfterReleased:re,onFocusAfterTrapped:ie,onFocusInTrap:ae,onFocusoutPrevented:oe,onReleaseRequested:le}=usePopperContentFocusTrap(g,i),{attributes:ue,arrowRef:de,contentRef:he,styles:pe,instanceRef:_e,role:Ce,update:xe}=usePopperContent(g),{ariaModal:Ie,arrowStyle:Ne,contentAttrs:Oe,contentClass:$e,contentStyle:Ve,updateZIndex:Ue}=usePopperContentDOM(g,{styles:pe,attributes:ue,role:Ce}),Fe=inject(formItemContextKey,void 0);provide(POPPER_CONTENT_INJECTION_KEY,{arrowStyle:Ne,arrowRef:de}),Fe&&provide(formItemContextKey,{...Fe,addInputId:NOOP,removeInputId:NOOP});let ze;const Pt=(Et=!0)=>{xe(),Et&&Ue()},qe=()=>{Pt(!1),g.visible&&g.focusOnShow?V.value=!0:g.visible===!1&&(V.value=!1)};return onMounted(()=>{watch(()=>g.triggerTargetEl,(Et,kt)=>{ze==null||ze(),ze=void 0;const At=unref(Et||he.value),Dt=unref(kt||he.value);isElement$1(At)&&(ze=watch([Ce,()=>g.ariaLabel,Ie,()=>g.id],Lt=>{["role","aria-label","aria-modal","id"].forEach((jt,hn)=>{isNil(Lt[hn])?At.removeAttribute(jt):At.setAttribute(jt,Lt[hn])})},{immediate:!0})),Dt!==At&&isElement$1(Dt)&&["role","aria-label","aria-modal","id"].forEach(Lt=>{Dt.removeAttribute(Lt)})},{immediate:!0}),watch(()=>g.visible,qe,{immediate:!0})}),onBeforeUnmount(()=>{ze==null||ze(),ze=void 0,he.value=void 0}),t({popperContentRef:he,popperInstanceRef:_e,updatePopper:Pt,contentStyle:Ve}),(Et,kt)=>(openBlock(),createElementBlock("div",mergeProps({ref_key:"contentRef",ref:he},unref(Oe),{style:unref(Ve),class:unref($e),tabindex:"-1",onMouseenter:kt[0]||(kt[0]=At=>Et.$emit("mouseenter",At)),onMouseleave:kt[1]||(kt[1]=At=>Et.$emit("mouseleave",At))}),[createVNode$1(unref(ElFocusTrap),{loop:Et.loop,trapped:unref(V),"trap-on-focus-in":!0,"focus-trap-el":unref(he),"focus-start-el":unref($),onFocusAfterTrapped:unref(ie),onFocusAfterReleased:unref(re),onFocusin:unref(ae),onFocusoutPrevented:unref(oe),onReleaseRequested:unref(le)},{default:withCtx(()=>[renderSlot(Et.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var ElPopperContent=_export_sfc(_sfc_main$2P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const ElPopper=withInstall(Popper),TOOLTIP_INJECTION_KEY=Symbol("elTooltip");function useTimeout(){let n;const t=(i,g)=>{r(),n=window.setTimeout(i,g)},r=()=>window.clearTimeout(n);return tryOnScopeDispose(()=>r()),{registerTimeout:t,cancelTimeout:r}}const useDelayedToggleProps=buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),useDelayedToggle=({showAfter:n,hideAfter:t,autoClose:r,open:i,close:g})=>{const{registerTimeout:$}=useTimeout(),{registerTimeout:V,cancelTimeout:re}=useTimeout();return{onOpen:(oe,le=unref(n))=>{$(()=>{i(oe);const ue=unref(r);isNumber$2(ue)&&ue>0&&V(()=>{g(oe)},ue)},le)},onClose:(oe,le=unref(t))=>{re(),$(()=>{g(oe)},le)}}},useTooltipContentProps=buildProps({...useDelayedToggleProps,...popperContentProps,appendTo:{type:teleportProps.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:definePropType(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...useAriaProps(["ariaLabel"])}),useTooltipTriggerProps=buildProps({...popperTriggerProps,disabled:Boolean,trigger:{type:definePropType([String,Array]),default:"hover"},triggerKeys:{type:definePropType(Array),default:()=>[EVENT_CODE.enter,EVENT_CODE.numpadEnter,EVENT_CODE.space]},focusOnTarget:Boolean}),_prop=buildProp({type:definePropType(Boolean),default:null}),_event=buildProp({type:definePropType(Function)}),createModelToggleComposable=n=>{const t=`update:${n}`,r=`onUpdate:${n}`,i=[t],g={[n]:_prop,[r]:_event};return{useModelToggle:({indicator:V,toggleReason:re,shouldHideWhenRouteChanges:ie,shouldProceed:ae,onShow:oe,onHide:le})=>{const ue=getCurrentInstance(),{emit:de}=ue,he=ue.props,pe=computed(()=>isFunction$4(he[r])),_e=computed(()=>he[n]===null),Ce=Ve=>{V.value!==!0&&(V.value=!0,re&&(re.value=Ve),isFunction$4(oe)&&oe(Ve))},xe=Ve=>{V.value!==!1&&(V.value=!1,re&&(re.value=Ve),isFunction$4(le)&&le(Ve))},Ie=Ve=>{if(he.disabled===!0||isFunction$4(ae)&&!ae())return;const Ue=pe.value&&isClient;Ue&&de(t,!0),(_e.value||!Ue)&&Ce(Ve)},Ne=Ve=>{if(he.disabled===!0||!isClient)return;const Ue=pe.value&&isClient;Ue&&de(t,!1),(_e.value||!Ue)&&xe(Ve)},Oe=Ve=>{isBoolean$1(Ve)&&(he.disabled&&Ve?pe.value&&de(t,!1):V.value!==Ve&&(Ve?Ce():xe()))},$e=()=>{V.value?Ne():Ie()};return watch(()=>he[n],Oe),ie&&ue.appContext.config.globalProperties.$route!==void 0&&watch(()=>({...ue.proxy.$route}),()=>{ie.value&&V.value&&Ne()}),onMounted(()=>{Oe(he[n])}),{hide:Ne,show:Ie,toggle:$e,hasUpdateHandler:pe}},useModelToggleProps:g,useModelToggleEmits:i}};createModelToggleComposable("modelValue");const{useModelToggleProps:useTooltipModelToggleProps,useModelToggleEmits:useTooltipModelToggleEmits,useModelToggle:useTooltipModelToggle}=createModelToggleComposable("visible"),useTooltipProps=buildProps({...popperProps,...useTooltipModelToggleProps,...useTooltipContentProps,...useTooltipTriggerProps,...popperArrowProps,showArrow:{type:Boolean,default:!0}}),tooltipEmits=[...useTooltipModelToggleEmits,"before-show","before-hide","show","hide","open","close"],isTriggerType=(n,t)=>isArray$5(n)?n.includes(t):n===t,whenTrigger=(n,t,r)=>i=>{isTriggerType(unref(n),t)&&r(i)},_sfc_main$2O=defineComponent({name:"ElTooltipTrigger",__name:"trigger",props:useTooltipTriggerProps,setup(n,{expose:t}){const r=n,i=useNamespace("tooltip"),{controlled:g,id:$,open:V,onOpen:re,onClose:ie,onToggle:ae}=inject(TOOLTIP_INJECTION_KEY,void 0),oe=ref(null),le=()=>{if(unref(g)||r.disabled)return!0},ue=toRef$1(r,"trigger"),de=composeEventHandlers(le,whenTrigger(ue,"hover",Ne=>{re(Ne),r.focusOnTarget&&Ne.target&&nextTick(()=>{focusElement(Ne.target,{preventScroll:!0})})})),he=composeEventHandlers(le,whenTrigger(ue,"hover",ie)),pe=composeEventHandlers(le,whenTrigger(ue,"click",Ne=>{Ne.button===0&&ae(Ne)})),_e=composeEventHandlers(le,whenTrigger(ue,"focus",re)),Ce=composeEventHandlers(le,whenTrigger(ue,"focus",ie)),xe=composeEventHandlers(le,whenTrigger(ue,"contextmenu",Ne=>{Ne.preventDefault(),ae(Ne)})),Ie=composeEventHandlers(le,Ne=>{const Oe=getEventCode(Ne);r.triggerKeys.includes(Oe)&&(Ne.preventDefault(),ae(Ne))});return t({triggerRef:oe}),(Ne,Oe)=>(openBlock(),createBlock(unref(ElPopperTrigger),{id:unref($),"virtual-ref":Ne.virtualRef,open:unref(V),"virtual-triggering":Ne.virtualTriggering,class:normalizeClass(unref(i).e("trigger")),onBlur:unref(Ce),onClick:unref(pe),onContextmenu:unref(xe),onFocus:unref(_e),onMouseenter:unref(de),onMouseleave:unref(he),onKeydown:unref(Ie)},{default:withCtx(()=>[renderSlot(Ne.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var ElTooltipTrigger=_export_sfc(_sfc_main$2O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const usePopperContainerId=()=>{const n=useGetDerivedNamespace(),t=useIdInjection(),r=computed(()=>`${n.value}-popper-container-${t.prefix}`),i=computed(()=>`#${r.value}`);return{id:r,selector:i}},createContainer=n=>{const t=document.createElement("div");return t.id=n,document.body.appendChild(t),t},usePopperContainer=()=>{const{id:n,selector:t}=usePopperContainerId();return onBeforeMount(()=>{isClient&&(document.body.querySelector(t.value)||createContainer(n.value))}),{id:n,selector:t}},unique=n=>[...new Set(n)],extractFirst=n=>isArray$5(n)?n[0]:n,castArray=n=>!n&&n!==0?[]:isArray$5(n)?n:[n],_sfc_main$2N=defineComponent({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:useTooltipContentProps,setup(n,{expose:t}){const r=n,{selector:i}=usePopperContainerId(),g=useNamespace("tooltip"),$=ref(),V=computedEager(()=>{var jt;return(jt=$.value)==null?void 0:jt.popperContentRef});let re;const{controlled:ie,id:ae,open:oe,trigger:le,onClose:ue,onOpen:de,onShow:he,onHide:pe,onBeforeShow:_e,onBeforeHide:Ce}=inject(TOOLTIP_INJECTION_KEY,void 0),xe=computed(()=>r.transition||`${g.namespace.value}-fade-in-linear`),Ie=computed(()=>r.persistent);onBeforeUnmount(()=>{re==null||re()});const Ne=computed(()=>unref(Ie)?!0:unref(oe)),Oe=computed(()=>r.disabled?!1:unref(oe)),$e=computed(()=>r.appendTo||i.value),Ve=computed(()=>{var jt;return(jt=r.style)!=null?jt:{}}),Ue=ref(!0),Fe=()=>{pe(),Lt()&&focusElement(document.body,{preventScroll:!0}),Ue.value=!0},ze=()=>{if(unref(ie))return!0},Pt=composeEventHandlers(ze,()=>{r.enterable&&isTriggerType(unref(le),"hover")&&de()}),qe=composeEventHandlers(ze,()=>{isTriggerType(unref(le),"hover")&&ue()}),Et=()=>{var jt,hn;(hn=(jt=$.value)==null?void 0:jt.updatePopper)==null||hn.call(jt),_e==null||_e()},kt=()=>{Ce==null||Ce()},At=()=>{he()},Dt=()=>{r.virtualTriggering||ue()},Lt=jt=>{var hn;const vn=(hn=$.value)==null?void 0:hn.popperContentRef,_n=(jt==null?void 0:jt.relatedTarget)||document.activeElement;return vn==null?void 0:vn.contains(_n)};return watch(()=>unref(oe),jt=>{jt?(Ue.value=!1,re=onClickOutside(V,()=>{if(unref(ie))return;castArray(unref(le)).every(vn=>vn!=="hover"&&vn!=="focus")&&ue()},{detectIframe:!0})):re==null||re()},{flush:"post"}),watch(()=>r.content,()=>{var jt,hn;(hn=(jt=$.value)==null?void 0:jt.updatePopper)==null||hn.call(jt)}),t({contentRef:$,isFocusInsideContent:Lt}),(jt,hn)=>(openBlock(),createBlock(unref(ElTeleport),{disabled:!jt.teleported,to:$e.value},{default:withCtx(()=>[Ne.value||!Ue.value?(openBlock(),createBlock(Transition,{key:0,name:xe.value,appear:!Ie.value,onAfterLeave:Fe,onBeforeEnter:Et,onAfterEnter:At,onBeforeLeave:kt,persisted:""},{default:withCtx(()=>[withDirectives(createVNode$1(unref(ElPopperContent),mergeProps({id:unref(ae),ref_key:"contentRef",ref:$},jt.$attrs,{"aria-label":jt.ariaLabel,"aria-hidden":Ue.value,"boundaries-padding":jt.boundariesPadding,"fallback-placements":jt.fallbackPlacements,"gpu-acceleration":jt.gpuAcceleration,offset:jt.offset,placement:jt.placement,"popper-options":jt.popperOptions,"arrow-offset":jt.arrowOffset,strategy:jt.strategy,effect:jt.effect,enterable:jt.enterable,pure:jt.pure,"popper-class":jt.popperClass,"popper-style":[jt.popperStyle,Ve.value],"reference-el":jt.referenceEl,"trigger-target-el":jt.triggerTargetEl,visible:Oe.value,"z-index":jt.zIndex,loop:jt.loop,onMouseenter:unref(Pt),onMouseleave:unref(qe),onBlur:Dt,onClose:unref(ue)}),{default:withCtx(()=>[renderSlot(jt.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[vShow,Oe.value]])]),_:3},8,["name","appear"])):createCommentVNode("v-if",!0)]),_:3},8,["disabled","to"]))}});var ElTooltipContent=_export_sfc(_sfc_main$2N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const _hoisted_1$1B=["innerHTML"],_hoisted_2$Z={key:1},_sfc_main$2M=defineComponent({name:"ElTooltip",__name:"tooltip",props:useTooltipProps,emits:tooltipEmits,setup(n,{expose:t,emit:r}){const i=n,g=r;usePopperContainer();const $=useNamespace("tooltip"),V=useId(),re=ref(),ie=ref(),ae=()=>{var Ne;const Oe=unref(re);Oe&&((Ne=Oe.popperInstanceRef)==null||Ne.update())},oe=ref(!1),le=ref(),{show:ue,hide:de,hasUpdateHandler:he}=useTooltipModelToggle({indicator:oe,toggleReason:le}),{onOpen:pe,onClose:_e}=useDelayedToggle({showAfter:toRef$1(i,"showAfter"),hideAfter:toRef$1(i,"hideAfter"),autoClose:toRef$1(i,"autoClose"),open:ue,close:de}),Ce=computed(()=>isBoolean$1(i.visible)&&!he.value),xe=computed(()=>[$.b(),i.popperClass]);provide(TOOLTIP_INJECTION_KEY,{controlled:Ce,id:V,open:readonly(oe),trigger:toRef$1(i,"trigger"),onOpen:pe,onClose:_e,onToggle:Ne=>{unref(oe)?_e(Ne):pe(Ne)},onShow:()=>{g("show",le.value)},onHide:()=>{g("hide",le.value)},onBeforeShow:()=>{g("before-show",le.value)},onBeforeHide:()=>{g("before-hide",le.value)},updatePopper:ae}),watch(()=>i.disabled,Ne=>{Ne&&oe.value&&(oe.value=!1)});const Ie=Ne=>{var Oe;return(Oe=ie.value)==null?void 0:Oe.isFocusInsideContent(Ne)};return onDeactivated(()=>oe.value&&de()),onBeforeUnmount(()=>{le.value=void 0}),t({popperRef:re,contentRef:ie,isFocusInsideContent:Ie,updatePopper:ae,onOpen:pe,onClose:_e,hide:de}),(Ne,Oe)=>(openBlock(),createBlock(unref(ElPopper),{ref_key:"popperRef",ref:re,role:Ne.role},{default:withCtx(()=>[createVNode$1(ElTooltipTrigger,{disabled:Ne.disabled,trigger:Ne.trigger,"trigger-keys":Ne.triggerKeys,"virtual-ref":Ne.virtualRef,"virtual-triggering":Ne.virtualTriggering,"focus-on-target":Ne.focusOnTarget},{default:withCtx(()=>[Ne.$slots.default?renderSlot(Ne.$slots,"default",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),createVNode$1(ElTooltipContent,{ref_key:"contentRef",ref:ie,"aria-label":Ne.ariaLabel,"boundaries-padding":Ne.boundariesPadding,content:Ne.content,disabled:Ne.disabled,effect:Ne.effect,enterable:Ne.enterable,"fallback-placements":Ne.fallbackPlacements,"hide-after":Ne.hideAfter,"gpu-acceleration":Ne.gpuAcceleration,offset:Ne.offset,persistent:Ne.persistent,"popper-class":xe.value,"popper-style":Ne.popperStyle,placement:Ne.placement,"popper-options":Ne.popperOptions,"arrow-offset":Ne.arrowOffset,pure:Ne.pure,"raw-content":Ne.rawContent,"reference-el":Ne.referenceEl,"trigger-target-el":Ne.triggerTargetEl,"show-after":Ne.showAfter,strategy:Ne.strategy,teleported:Ne.teleported,transition:Ne.transition,"virtual-triggering":Ne.virtualTriggering,"z-index":Ne.zIndex,"append-to":Ne.appendTo,loop:Ne.loop},{default:withCtx(()=>[renderSlot(Ne.$slots,"content",{},()=>[Ne.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:Ne.content},null,8,_hoisted_1$1B)):(openBlock(),createElementBlock("span",_hoisted_2$Z,toDisplayString(Ne.content),1))]),Ne.showArrow?(openBlock(),createBlock(unref(ElPopperArrow),{key:0})):createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}});var Tooltip=_export_sfc(_sfc_main$2M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ElTooltip=withInstall(Tooltip),autocompleteProps=buildProps({...inputProps,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:definePropType(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:definePropType([Function,Array]),default:NOOP},popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:useTooltipContentProps.teleported,appendTo:useTooltipContentProps.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),autocompleteEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n)||isNumber$2(n),[INPUT_EVENT]:n=>isString$2(n)||isNumber$2(n),[CHANGE_EVENT]:n=>isString$2(n)||isNumber$2(n),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,select:n=>isObject$6(n)},_hoisted_1$1A=["aria-expanded","aria-owns"],_hoisted_2$Y={key:0},_hoisted_3$q=["id","aria-selected","onClick"],COMPONENT_NAME$k="ElAutocomplete",_sfc_main$2L=defineComponent({name:COMPONENT_NAME$k,inheritAttrs:!1,__name:"autocomplete",props:autocompleteProps,emits:autocompleteEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=computed(()=>pick$1(i,Object.keys(inputProps))),V=useAttrs$1(),re=useFormDisabled(),ie=useNamespace("autocomplete"),ae=ref(),oe=ref(),le=ref(),ue=ref();let de=!1,he=!1;const pe=ref([]),_e=ref(-1),Ce=ref(""),xe=ref(!1),Ie=ref(!1),Ne=ref(!1),Oe=useId(),$e=computed(()=>V.style),Ve=computed(()=>(pe.value.length>0||Ne.value)&&xe.value),Ue=computed(()=>!i.hideLoading&&Ne.value),Fe=computed(()=>ae.value?Array.from(ae.value.$el.querySelectorAll("input")):[]),ze=()=>{Ve.value&&(Ce.value=`${ae.value.$el.offsetWidth}px`)},Pt=()=>{_e.value=-1},qe=async xn=>{if(Ie.value)return;const Ln=Nn=>{Ne.value=!1,!Ie.value&&(isArray$5(Nn)?(pe.value=Nn,_e.value=i.highlightFirstItem?0:-1):throwError$1(COMPONENT_NAME$k,"autocomplete suggestions must be an array"))};if(Ne.value=!0,isArray$5(i.fetchSuggestions))Ln(i.fetchSuggestions);else{const Nn=await i.fetchSuggestions(xn,Ln);isArray$5(Nn)&&Ln(Nn)}},Et=computed(()=>i.debounce),kt=useDebounceFn(qe,Et),At=xn=>{const Ln=!!xn;if(g(INPUT_EVENT,xn),g(UPDATE_MODEL_EVENT,xn),Ie.value=!1,xe.value||(xe.value=Ln),!i.triggerOnFocus&&!xn){Ie.value=!0,pe.value=[];return}kt(xn)},Dt=xn=>{var Ln;re.value||(((Ln=xn.target)==null?void 0:Ln.tagName)!=="INPUT"||Fe.value.includes(document.activeElement))&&(xe.value=!0)},Lt=xn=>{g(CHANGE_EVENT,xn)},jt=xn=>{var Ln;if(he)he=!1;else{xe.value=!0,g("focus",xn);const Nn=(Ln=i.modelValue)!=null?Ln:"";i.triggerOnFocus&&!de&&kt(String(Nn))}},hn=xn=>{setTimeout(()=>{var Ln;if((Ln=le.value)!=null&&Ln.isFocusInsideContent()){he=!0;return}xe.value&&bn(),g("blur",xn)})},vn=()=>{xe.value=!1,g(UPDATE_MODEL_EVENT,""),g("clear")},_n=async()=>{var xn;(xn=ae.value)!=null&&xn.isComposing||(Ve.value&&_e.value>=0&&_e.value{Ve.value&&(xn.preventDefault(),xn.stopPropagation(),bn())},bn=()=>{xe.value=!1},Cn=()=>{var xn;(xn=ae.value)==null||xn.focus()},Sn=()=>{var xn;(xn=ae.value)==null||xn.blur()},Tn=async xn=>{g(INPUT_EVENT,xn[i.valueKey]),g(UPDATE_MODEL_EVENT,xn[i.valueKey]),g("select",xn),pe.value=[],_e.value=-1},En=xn=>{var Ln,Nn;if(!Ve.value||Ne.value)return;if(xn<0){if(!i.loopNavigation){_e.value=-1;return}xn=pe.value.length-1}xn>=pe.value.length&&(xn=i.loopNavigation?0:pe.value.length-1);const[Pn,On]=kn(),Hn=On[xn],Xn=Pn.scrollTop,{offsetTop:In,scrollHeight:or}=Hn;In+or>Xn+Pn.clientHeight&&(Pn.scrollTop=In+or-Pn.clientHeight),In{const xn=oe.value.querySelector(`.${ie.be("suggestion","wrap")}`),Ln=xn.querySelectorAll(`.${ie.be("suggestion","list")} li`);return[xn,Ln]},$n=onClickOutside(ue,()=>{var xn;(xn=le.value)!=null&&xn.isFocusInsideContent()||Ve.value&&bn()}),An=xn=>{switch(getEventCode(xn)){case EVENT_CODE.up:xn.preventDefault(),En(_e.value-1);break;case EVENT_CODE.down:xn.preventDefault(),En(_e.value+1);break;case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:xn.preventDefault(),_n();break;case EVENT_CODE.tab:bn();break;case EVENT_CODE.esc:wn(xn);break;case EVENT_CODE.home:xn.preventDefault(),En(0);break;case EVENT_CODE.end:xn.preventDefault(),En(pe.value.length-1);break;case EVENT_CODE.pageUp:xn.preventDefault(),En(Math.max(0,_e.value-10));break;case EVENT_CODE.pageDown:xn.preventDefault(),En(Math.min(pe.value.length-1,_e.value+10));break}};return onBeforeUnmount(()=>{$n==null||$n()}),onMounted(()=>{var xn;const Ln=(xn=ae.value)==null?void 0:xn.ref;Ln&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:Oe.value},{key:"aria-activedescendant",value:`${Oe.value}-item-${_e.value}`}].forEach(({key:Nn,value:Pn})=>Ln.setAttribute(Nn,Pn)),de=Ln.hasAttribute("readonly"))}),t({highlightedIndex:_e,activated:xe,loading:Ne,inputRef:ae,popperRef:le,suggestions:pe,handleSelect:Tn,handleKeyEnter:_n,focus:Cn,blur:Sn,close:bn,highlight:En,getData:qe}),(xn,Ln)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popperRef",ref:le,visible:Ve.value,placement:xn.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[unref(ie).e("popper"),xn.popperClass],"popper-style":xn.popperStyle,teleported:xn.teleported,"append-to":xn.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${unref(ie).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:ze,onHide:Pt},{content:withCtx(()=>[createBaseVNode("div",{ref_key:"regionRef",ref:oe,class:normalizeClass([unref(ie).b("suggestion"),unref(ie).is("loading",Ue.value)]),style:normalizeStyle$1({[xn.fitInputWidth?"width":"minWidth"]:Ce.value,outline:"none"}),role:"region"},[xn.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).be("suggestion","header")),onClick:Ln[0]||(Ln[0]=withModifiers(()=>{},["stop"]))},[renderSlot(xn.$slots,"header")],2)):createCommentVNode("v-if",!0),createVNode$1(unref(ElScrollbar),{id:unref(Oe),tag:"ul","wrap-class":unref(ie).be("suggestion","wrap"),"view-class":unref(ie).be("suggestion","list"),role:"listbox"},{default:withCtx(()=>[Ue.value?(openBlock(),createElementBlock("li",_hoisted_2$Y,[renderSlot(xn.$slots,"loading",{},()=>[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(ie).is("loading"))},{default:withCtx(()=>[createVNode$1(unref(loading_default))]),_:1},8,["class"])])])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(pe.value,(Nn,Pn)=>(openBlock(),createElementBlock("li",{id:`${unref(Oe)}-item-${Pn}`,key:Pn,class:normalizeClass({highlighted:_e.value===Pn}),role:"option","aria-selected":_e.value===Pn,onClick:On=>Tn(Nn)},[renderSlot(xn.$slots,"default",{item:Nn},()=>[createTextVNode(toDisplayString(Nn[xn.valueKey]),1)])],10,_hoisted_3$q))),128))]),_:3},8,["id","wrap-class","view-class"]),xn.$slots.footer?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).be("suggestion","footer")),onClick:Ln[1]||(Ln[1]=withModifiers(()=>{},["stop"]))},[renderSlot(xn.$slots,"footer")],2)):createCommentVNode("v-if",!0)],6)]),default:withCtx(()=>[createBaseVNode("div",{ref_key:"listboxRef",ref:ue,class:normalizeClass([unref(ie).b(),xn.$attrs.class]),style:normalizeStyle$1($e.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":Ve.value,"aria-owns":unref(Oe)},[createVNode$1(unref(ElInput),mergeProps({ref_key:"inputRef",ref:ae},mergeProps($.value,xn.$attrs),{"model-value":xn.modelValue,disabled:unref(re),onInput:At,onChange:Lt,onFocus:jt,onBlur:hn,onClear:vn,onKeydown:An,onMousedown:Dt}),createSlots({_:2},[xn.$slots.prepend?{name:"prepend",fn:withCtx(()=>[renderSlot(xn.$slots,"prepend")]),key:"0"}:void 0,xn.$slots.append?{name:"append",fn:withCtx(()=>[renderSlot(xn.$slots,"append")]),key:"1"}:void 0,xn.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(xn.$slots,"prefix")]),key:"2"}:void 0,xn.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot(xn.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,_hoisted_1$1A)]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}});var Autocomplete=_export_sfc(_sfc_main$2L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const ElAutocomplete=withInstall(Autocomplete),avatarProps=buildProps({size:{type:[Number,String],values:componentSizes,validator:n=>isNumber$2(n)},shape:{type:String,values:["circle","square"]},icon:{type:iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:definePropType(String),default:"cover"}}),avatarEmits={error:n=>n instanceof Event},avatarGroupContextKey=Symbol("avatarGroupContextKey"),_hoisted_1$1z=["src","alt","srcset"],_sfc_main$2K=defineComponent({name:"ElAvatar",__name:"avatar",props:avatarProps,emits:avatarEmits,setup(n,{emit:t}){const r=n,i=t,g=inject(avatarGroupContextKey,void 0),$=useNamespace("avatar"),V=ref(!1),re=computed(()=>{var de;return(de=r.size)!=null?de:g==null?void 0:g.size}),ie=computed(()=>{var de,he;return(he=(de=r.shape)!=null?de:g==null?void 0:g.shape)!=null?he:"circle"}),ae=computed(()=>{const{icon:de}=r,he=[$.b()];return isString$2(re.value)&&he.push($.m(re.value)),de&&he.push($.m("icon")),ie.value&&he.push($.m(ie.value)),he}),oe=computed(()=>isNumber$2(re.value)?$.cssVarBlock({size:addUnit(re.value)}):void 0),le=computed(()=>({objectFit:r.fit}));watch(()=>r.src,()=>V.value=!1);function ue(de){V.value=!0,i("error",de)}return(de,he)=>(openBlock(),createElementBlock("span",{class:normalizeClass(ae.value),style:normalizeStyle$1(oe.value)},[(de.src||de.srcSet)&&!V.value?(openBlock(),createElementBlock("img",{key:0,src:de.src,alt:de.alt,srcset:de.srcSet,style:normalizeStyle$1(le.value),onError:ue},null,44,_hoisted_1$1z)):de.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(de.icon)))]),_:1})):renderSlot(de.$slots,"default",{key:2})],6))}});var Avatar=_export_sfc(_sfc_main$2K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const avatarGroupProps=buildProps({size:avatarProps.size,shape:avatarProps.shape,collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:definePropType(String),default:"light"},placement:{type:definePropType(String),values:Ee,default:"top"},popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,collapseClass:String,collapseStyle:{type:definePropType([String,Array,Object])}});var AvatarGroup=defineComponent({name:"ElAvatarGroup",props:avatarGroupProps,setup(n,{slots:t}){const r=useNamespace("avatar-group");return provide(avatarGroupContextKey,reactive({size:toRef$1(n,"size"),shape:toRef$1(n,"shape")})),()=>{var i,g;const $=flattedChildren((g=(i=t.default)==null?void 0:i.call(t))!=null?g:[]);let V=$;if(n.collapseAvatars&&$.length>n.maxCollapseAvatars){V=$.slice(0,n.maxCollapseAvatars);const ie=$.slice(n.maxCollapseAvatars);V.push(createVNode$1(ElTooltip,{popperClass:n.popperClass,popperStyle:n.popperStyle,placement:n.placement,effect:n.effect,disabled:!n.collapseAvatarsTooltip},{default:()=>createVNode$1(Avatar,{size:n.size,shape:n.shape,class:n.collapseClass,style:n.collapseStyle},{default:()=>[createTextVNode("+ "),ie.length]}),content:()=>createVNode$1("div",{class:r.e("collapse-avatars")},[ie.map((ae,oe)=>{var le;return isVNode(ae)?cloneVNode(ae,{key:(le=ae.key)!=null?le:oe}):ae})])}))}return createVNode$1("div",{class:r.b()},[V])}}});const ElAvatar=withInstall(Avatar,{AvatarGroup}),ElAvatarGroup=withNoopInstall(AvatarGroup),backtopProps={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},backtopEmits={click:n=>n instanceof MouseEvent},useBackTop=(n,t,r)=>{const i=shallowRef(),g=shallowRef(),$=ref(!1),V=()=>{i.value&&($.value=i.value.scrollTop>=n.visibilityHeight)},re=ae=>{var oe;(oe=i.value)==null||oe.scrollTo({top:0,behavior:"smooth"}),t("click",ae)},ie=useThrottleFn(V,300,!0);return useEventListener(g,"scroll",ie),onMounted(()=>{var ae;g.value=document,i.value=document.documentElement,n.target&&(i.value=(ae=document.querySelector(n.target))!=null?ae:void 0,i.value||throwError$1(r,`target does not exist: ${n.target}`),g.value=i.value),V()}),{visible:$,handleClick:re}},COMPONENT_NAME$j="ElBacktop",_sfc_main$2J=defineComponent({name:COMPONENT_NAME$j,__name:"backtop",props:backtopProps,emits:backtopEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("backtop"),{handleClick:$,visible:V}=useBackTop(r,i,COMPONENT_NAME$j),re=computed(()=>({right:`${r.right}px`,bottom:`${r.bottom}px`}));return(ie,ae)=>(openBlock(),createBlock(Transition,{name:`${unref(g).namespace.value}-fade-in`},{default:withCtx(()=>[unref(V)?(openBlock(),createElementBlock("div",{key:0,style:normalizeStyle$1(re.value),class:normalizeClass(unref(g).b()),onClick:ae[0]||(ae[0]=withModifiers((...oe)=>unref($)&&unref($)(...oe),["stop"]))},[renderSlot(ie.$slots,"default",{},()=>[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(g).e("icon"))},{default:withCtx(()=>[createVNode$1(unref(caret_top_default))]),_:1},8,["class"])])],6)):createCommentVNode("v-if",!0)]),_:3},8,["name"]))}});var Backtop=_export_sfc(_sfc_main$2J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const ElBacktop=withInstall(Backtop),badgeProps=buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:definePropType([String,Object,Array])},offset:{type:definePropType(Array),default:[0,0]},badgeClass:{type:String}}),_sfc_main$2I=defineComponent({name:"ElBadge",__name:"badge",props:badgeProps,setup(n,{expose:t}){const r=n,i=useNamespace("badge"),g=computed(()=>r.isDot?"":isNumber$2(r.value)&&isNumber$2(r.max)?r.max{var V;return[{backgroundColor:r.color,marginRight:addUnit(-r.offset[0]),marginTop:addUnit(r.offset[1])},(V=r.badgeStyle)!=null?V:{}]});return t({content:g}),(V,re)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(i).b())},[renderSlot(V.$slots,"default"),createVNode$1(Transition,{name:`${unref(i).namespace.value}-zoom-in-center`,persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(i).e("content"),unref(i).em("content",V.type),unref(i).is("fixed",!!V.$slots.default),unref(i).is("dot",V.isDot),unref(i).is("hide-zero",!V.showZero&&V.value===0),V.badgeClass]),style:normalizeStyle$1($.value)},[renderSlot(V.$slots,"content",{value:g.value},()=>[createTextVNode(toDisplayString(g.value),1)])],6),[[vShow,!V.hidden&&(g.value||V.isDot||V.$slots.content)]])]),_:3},8,["name"])],2))}});var Badge=_export_sfc(_sfc_main$2I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const ElBadge=withInstall(Badge),breadcrumbKey=Symbol("breadcrumbKey"),breadcrumbProps=buildProps({separator:{type:String,default:"/"},separatorIcon:{type:iconPropType}}),_hoisted_1$1y=["aria-label"],_sfc_main$2H=defineComponent({name:"ElBreadcrumb",__name:"breadcrumb",props:breadcrumbProps,setup(n){const{t}=useLocale(),r=n,i=useNamespace("breadcrumb"),g=ref();return provide(breadcrumbKey,r),onMounted(()=>{const $=g.value.querySelectorAll(`.${i.e("item")}`);$.length&&$[$.length-1].setAttribute("aria-current","page")}),($,V)=>(openBlock(),createElementBlock("div",{ref_key:"breadcrumb",ref:g,class:normalizeClass(unref(i).b()),"aria-label":unref(t)("el.breadcrumb.label"),role:"navigation"},[renderSlot($.$slots,"default")],10,_hoisted_1$1y))}});var Breadcrumb=_export_sfc(_sfc_main$2H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const breadcrumbItemProps=buildProps({to:{type:definePropType([String,Object]),default:""},replace:Boolean}),_sfc_main$2G=defineComponent({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:breadcrumbItemProps,setup(n){const t=n,r=getCurrentInstance(),i=inject(breadcrumbKey,void 0),g=useNamespace("breadcrumb"),$=r.appContext.config.globalProperties.$router,V=()=>{!t.to||!$||(t.replace?$.replace(t.to):$.push(t.to))};return(re,ie)=>{var ae,oe;return openBlock(),createElementBlock("span",{class:normalizeClass(unref(g).e("item"))},[createBaseVNode("span",{class:normalizeClass([unref(g).e("inner"),unref(g).is("link",!!re.to)]),role:"link",onClick:V},[renderSlot(re.$slots,"default")],2),(ae=unref(i))!=null&&ae.separatorIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(g).e("separator"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(i).separatorIcon)))]),_:1},8,["class"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(g).e("separator")),role:"presentation"},toDisplayString((oe=unref(i))==null?void 0:oe.separator),3))],2)}}});var BreadcrumbItem=_export_sfc(_sfc_main$2G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const ElBreadcrumb=withInstall(Breadcrumb,{BreadcrumbItem}),ElBreadcrumbItem=withNoopInstall(BreadcrumbItem),buttonGroupContextKey=Symbol("buttonGroupContextKey"),useDeprecated=({from:n,replacement:t,scope:r,version:i,ref:g,type:$="API"},V)=>{watch(()=>unref(V),re=>{},{immediate:!0})},useButton=(n,t)=>{useDeprecated({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},computed(()=>n.type==="text"));const r=inject(buttonGroupContextKey,void 0),i=useGlobalConfig("button"),{form:g}=useFormItem(),$=useFormSize(computed(()=>r==null?void 0:r.size)),V=useFormDisabled(),re=ref(),ie=useSlots(),ae=computed(()=>{var Ce;return n.type||(r==null?void 0:r.type)||((Ce=i.value)==null?void 0:Ce.type)||""}),oe=computed(()=>{var Ce,xe,Ie;return(Ie=(xe=n.autoInsertSpace)!=null?xe:(Ce=i.value)==null?void 0:Ce.autoInsertSpace)!=null?Ie:!1}),le=computed(()=>{var Ce,xe,Ie;return(Ie=(xe=n.plain)!=null?xe:(Ce=i.value)==null?void 0:Ce.plain)!=null?Ie:!1}),ue=computed(()=>{var Ce,xe,Ie;return(Ie=(xe=n.round)!=null?xe:(Ce=i.value)==null?void 0:Ce.round)!=null?Ie:!1}),de=computed(()=>{var Ce,xe,Ie;return(Ie=(xe=n.text)!=null?xe:(Ce=i.value)==null?void 0:Ce.text)!=null?Ie:!1}),he=computed(()=>n.tag==="button"?{ariaDisabled:V.value||n.loading,disabled:V.value||n.loading,autofocus:n.autofocus,type:n.nativeType}:{}),pe=computed(()=>{var Ce;const xe=(Ce=ie.default)==null?void 0:Ce.call(ie);if(oe.value&&(xe==null?void 0:xe.length)===1){const Ie=xe[0];if((Ie==null?void 0:Ie.type)===Text$1){const Ne=Ie.children;return/^\p{Unified_Ideograph}{2}$/u.test(Ne.trim())}}return!1});return{_disabled:V,_size:$,_type:ae,_ref:re,_props:he,_plain:le,_round:ue,_text:de,shouldAddSpace:pe,handleClick:Ce=>{if(V.value||n.loading){Ce.stopPropagation();return}n.nativeType==="reset"&&(g==null||g.resetFields()),t("click",Ce)}}},buttonTypes=["default","primary","success","warning","info","danger","text",""],buttonNativeTypes=["button","submit","reset"],buttonProps=buildProps({size:useSizeProp,disabled:{type:Boolean,default:void 0},type:{type:String,values:buttonTypes,default:""},icon:{type:iconPropType},nativeType:{type:String,values:buttonNativeTypes,default:"button"},loading:Boolean,loadingIcon:{type:iconPropType,default:()=>loading_default},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:definePropType([String,Object]),default:"button"}}),buttonEmits={click:n=>n instanceof MouseEvent};function bound01(n,t){isOnePointZero(n)&&(n="100%");var r=isPercentage(n);return n=t===360?n:Math.min(t,Math.max(0,parseFloat(n))),r&&(n=parseInt(String(n*t),10)/100),Math.abs(n-t)<1e-6?1:(t===360?n=(n<0?n%t+t:n%t)/parseFloat(String(t)):n=n%t/parseFloat(String(t)),n)}function clamp01(n){return Math.min(1,Math.max(0,n))}function isOnePointZero(n){return typeof n=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1}function isPercentage(n){return typeof n=="string"&&n.indexOf("%")!==-1}function boundAlpha(n){return n=parseFloat(n),(isNaN(n)||n<0||n>1)&&(n=1),n}function convertToPercentage(n){return n<=1?"".concat(Number(n)*100,"%"):n}function pad2(n){return n.length===1?"0"+n:String(n)}function rgbToRgb(n,t,r){return{r:bound01(n,255)*255,g:bound01(t,255)*255,b:bound01(r,255)*255}}function rgbToHsl(n,t,r){n=bound01(n,255),t=bound01(t,255),r=bound01(r,255);var i=Math.max(n,t,r),g=Math.min(n,t,r),$=0,V=0,re=(i+g)/2;if(i===g)V=0,$=0;else{var ie=i-g;switch(V=re>.5?ie/(2-i-g):ie/(i+g),i){case n:$=(t-r)/ie+(t1&&(r-=1),r<1/6?n+(t-n)*(6*r):r<1/2?t:r<2/3?n+(t-n)*(2/3-r)*6:n}function hslToRgb(n,t,r){var i,g,$;if(n=bound01(n,360),t=bound01(t,100),r=bound01(r,100),t===0)g=r,$=r,i=r;else{var V=r<.5?r*(1+t):r+t-r*t,re=2*r-V;i=hue2rgb$1(re,V,n+1/3),g=hue2rgb$1(re,V,n),$=hue2rgb$1(re,V,n-1/3)}return{r:i*255,g:g*255,b:$*255}}function rgbToHsv(n,t,r){n=bound01(n,255),t=bound01(t,255),r=bound01(r,255);var i=Math.max(n,t,r),g=Math.min(n,t,r),$=0,V=i,re=i-g,ie=i===0?0:re/i;if(i===g)$=0;else{switch(i){case n:$=(t-r)/re+(t>16,g:(n&65280)>>8,b:n&255}}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(n){var t={r:0,g:0,b:0},r=1,i=null,g=null,$=null,V=!1,re=!1;return typeof n=="string"&&(n=stringInputToObject(n)),typeof n=="object"&&(isValidCSSUnit(n.r)&&isValidCSSUnit(n.g)&&isValidCSSUnit(n.b)?(t=rgbToRgb(n.r,n.g,n.b),V=!0,re=String(n.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(n.h)&&isValidCSSUnit(n.s)&&isValidCSSUnit(n.v)?(i=convertToPercentage(n.s),g=convertToPercentage(n.v),t=hsvToRgb(n.h,i,g),V=!0,re="hsv"):isValidCSSUnit(n.h)&&isValidCSSUnit(n.s)&&isValidCSSUnit(n.l)&&(i=convertToPercentage(n.s),$=convertToPercentage(n.l),t=hslToRgb(n.h,i,$),V=!0,re="hsl"),Object.prototype.hasOwnProperty.call(n,"a")&&(r=n.a)),r=boundAlpha(r),{ok:V,format:n.format||re,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(n){if(n=n.trim().toLowerCase(),n.length===0)return!1;var t=!1;if(names[n])n=names[n],t=!0;else if(n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=matchers.rgb.exec(n);return r?{r:r[1],g:r[2],b:r[3]}:(r=matchers.rgba.exec(n),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=matchers.hsl.exec(n),r?{h:r[1],s:r[2],l:r[3]}:(r=matchers.hsla.exec(n),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=matchers.hsv.exec(n),r?{h:r[1],s:r[2],v:r[3]}:(r=matchers.hsva.exec(n),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=matchers.hex8.exec(n),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),a:convertHexToDecimal(r[4]),format:t?"name":"hex8"}:(r=matchers.hex6.exec(n),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),format:t?"name":"hex"}:(r=matchers.hex4.exec(n),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),a:convertHexToDecimal(r[4]+r[4]),format:t?"name":"hex8"}:(r=matchers.hex3.exec(n),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function isValidCSSUnit(n){return!!matchers.CSS_UNIT.exec(String(n))}var TinyColor=function(){function n(t,r){t===void 0&&(t=""),r===void 0&&(r={});var i;if(t instanceof n)return t;typeof t=="number"&&(t=numberInputToObject(t)),this.originalInput=t;var g=inputToRGB(t);this.originalInput=t,this.r=g.r,this.g=g.g,this.b=g.b,this.a=g.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=r.format)!==null&&i!==void 0?i:g.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=g.ok}return n.prototype.isDark=function(){return this.getBrightness()<128},n.prototype.isLight=function(){return!this.isDark()},n.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},n.prototype.getLuminance=function(){var t=this.toRgb(),r,i,g,$=t.r/255,V=t.g/255,re=t.b/255;return $<=.03928?r=$/12.92:r=Math.pow(($+.055)/1.055,2.4),V<=.03928?i=V/12.92:i=Math.pow((V+.055)/1.055,2.4),re<=.03928?g=re/12.92:g=Math.pow((re+.055)/1.055,2.4),.2126*r+.7152*i+.0722*g},n.prototype.getAlpha=function(){return this.a},n.prototype.setAlpha=function(t){return this.a=boundAlpha(t),this.roundA=Math.round(100*this.a)/100,this},n.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},n.prototype.toHsv=function(){var t=rgbToHsv(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},n.prototype.toHsvString=function(){var t=rgbToHsv(this.r,this.g,this.b),r=Math.round(t.h*360),i=Math.round(t.s*100),g=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(i,"%, ").concat(g,"%)"):"hsva(".concat(r,", ").concat(i,"%, ").concat(g,"%, ").concat(this.roundA,")")},n.prototype.toHsl=function(){var t=rgbToHsl(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},n.prototype.toHslString=function(){var t=rgbToHsl(this.r,this.g,this.b),r=Math.round(t.h*360),i=Math.round(t.s*100),g=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(i,"%, ").concat(g,"%)"):"hsla(".concat(r,", ").concat(i,"%, ").concat(g,"%, ").concat(this.roundA,")")},n.prototype.toHex=function(t){return t===void 0&&(t=!1),rgbToHex(this.r,this.g,this.b,t)},n.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},n.prototype.toHex8=function(t){return t===void 0&&(t=!1),rgbaToHex(this.r,this.g,this.b,this.a,t)},n.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},n.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},n.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},n.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(i,")"):"rgba(".concat(t,", ").concat(r,", ").concat(i,", ").concat(this.roundA,")")},n.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(bound01(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},n.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(bound01(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},n.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+rgbToHex(this.r,this.g,this.b,!1),r=0,i=Object.entries(names);r=0,$=!r&&g&&(t.startsWith("hex")||t==="name");return $?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},n.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},n.prototype.clone=function(){return new n(this.toString())},n.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=clamp01(r.l),new n(r)},n.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new n(r)},n.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=clamp01(r.l),new n(r)},n.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},n.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},n.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=clamp01(r.s),new n(r)},n.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=clamp01(r.s),new n(r)},n.prototype.greyscale=function(){return this.desaturate(100)},n.prototype.spin=function(t){var r=this.toHsl(),i=(r.h+t)%360;return r.h=i<0?360+i:i,new n(r)},n.prototype.mix=function(t,r){r===void 0&&(r=50);var i=this.toRgb(),g=new n(t).toRgb(),$=r/100,V={r:(g.r-i.r)*$+i.r,g:(g.g-i.g)*$+i.g,b:(g.b-i.b)*$+i.b,a:(g.a-i.a)*$+i.a};return new n(V)},n.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var i=this.toHsl(),g=360/r,$=[this];for(i.h=(i.h-(g*t>>1)+720)%360;--t;)i.h=(i.h+g)%360,$.push(new n(i));return $},n.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new n(t)},n.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),i=r.h,g=r.s,$=r.v,V=[],re=1/t;t--;)V.push(new n({h:i,s:g,v:$})),$=($+re)%1;return V},n.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new n({h:(r+72)%360,s:t.s,l:t.l}),new n({h:(r+216)%360,s:t.s,l:t.l})]},n.prototype.onBackground=function(t){var r=this.toRgb(),i=new n(t).toRgb(),g=r.a+i.a*(1-r.a);return new n({r:(r.r*r.a+i.r*i.a*(1-r.a))/g,g:(r.g*r.a+i.g*i.a*(1-r.a))/g,b:(r.b*r.a+i.b*i.a*(1-r.a))/g,a:g})},n.prototype.triad=function(){return this.polyad(3)},n.prototype.tetrad=function(){return this.polyad(4)},n.prototype.polyad=function(t){for(var r=this.toHsl(),i=r.h,g=[this],$=360/t,V=1;V{let i={},g=n.color;if(g){const $=g.match(/var\((.*?)\)/);$&&(g=window.getComputedStyle(window.document.documentElement).getPropertyValue($[1]));const V=new TinyColor(g),re=n.dark?V.tint(20).toString():darken(V,20);if(n.plain)i=r.cssVarBlock({"bg-color":n.dark?darken(V,90):V.tint(90).toString(),"text-color":g,"border-color":n.dark?darken(V,50):V.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":g,"hover-border-color":g,"active-bg-color":re,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":re}),t.value&&(i[r.cssVarBlockName("disabled-bg-color")]=n.dark?darken(V,90):V.tint(90).toString(),i[r.cssVarBlockName("disabled-text-color")]=n.dark?darken(V,50):V.tint(50).toString(),i[r.cssVarBlockName("disabled-border-color")]=n.dark?darken(V,80):V.tint(80).toString());else{const ie=n.dark?darken(V,30):V.tint(30).toString(),ae=V.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(i=r.cssVarBlock({"bg-color":g,"text-color":ae,"border-color":g,"hover-bg-color":ie,"hover-text-color":ae,"hover-border-color":ie,"active-bg-color":re,"active-border-color":re}),t.value){const oe=n.dark?darken(V,50):V.tint(50).toString();i[r.cssVarBlockName("disabled-bg-color")]=oe,i[r.cssVarBlockName("disabled-text-color")]=n.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,i[r.cssVarBlockName("disabled-border-color")]=oe}}}return i})}const _sfc_main$2F=defineComponent({name:"ElButton",__name:"button",props:buttonProps,emits:buttonEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useButtonCustomStyle(i),V=useNamespace("button"),{_ref:re,_size:ie,_type:ae,_disabled:oe,_props:le,_plain:ue,_round:de,_text:he,shouldAddSpace:pe,handleClick:_e}=useButton(i,g),Ce=computed(()=>[V.b(),V.m(ae.value),V.m(ie.value),V.is("disabled",oe.value),V.is("loading",i.loading),V.is("plain",ue.value),V.is("round",de.value),V.is("circle",i.circle),V.is("text",he.value),V.is("link",i.link),V.is("has-bg",i.bg)]);return t({ref:re,size:ie,type:ae,disabled:oe,shouldAddSpace:pe}),(xe,Ie)=>(openBlock(),createBlock(resolveDynamicComponent(xe.tag),mergeProps({ref_key:"_ref",ref:re},unref(le),{class:Ce.value,style:unref($),onClick:unref(_e)}),{default:withCtx(()=>[xe.loading?(openBlock(),createElementBlock(Fragment,{key:0},[xe.$slots.loading?renderSlot(xe.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(V).is("loading"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(xe.loadingIcon)))]),_:1},8,["class"]))],64)):xe.icon||xe.$slots.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[xe.icon?(openBlock(),createBlock(resolveDynamicComponent(xe.icon),{key:0})):renderSlot(xe.$slots,"icon",{key:1})]),_:3})):createCommentVNode("v-if",!0),xe.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass({[unref(V).em("text","expand")]:unref(pe)})},[renderSlot(xe.$slots,"default")],2)):createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Button=_export_sfc(_sfc_main$2F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const buttonGroupProps={size:buttonProps.size,type:buttonProps.type,direction:{type:definePropType(String),values:["horizontal","vertical"],default:"horizontal"}},_sfc_main$2E=defineComponent({name:"ElButtonGroup",__name:"button-group",props:buttonGroupProps,setup(n){const t=n;provide(buttonGroupContextKey,reactive({size:toRef$1(t,"size"),type:toRef$1(t,"type")}));const r=useNamespace("button");return(i,g)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).b("group"),unref(r).bm("group",t.direction)])},[renderSlot(i.$slots,"default")],2))}});var ButtonGroup=_export_sfc(_sfc_main$2E,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const ElButton=withInstall(Button,{ButtonGroup}),ElButtonGroup$1=withNoopInstall(ButtonGroup);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var dayjs_min={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){var r=1e3,i=6e4,g=36e5,$="millisecond",V="second",re="minute",ie="hour",ae="day",oe="week",le="month",ue="quarter",de="year",he="date",pe="Invalid Date",_e=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Ce=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,xe={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(kt){var At=["th","st","nd","rd"],Dt=kt%100;return"["+kt+(At[(Dt-20)%10]||At[Dt]||At[0])+"]"}},Ie=function(kt,At,Dt){var Lt=String(kt);return!Lt||Lt.length>=At?kt:""+Array(At+1-Lt.length).join(Dt)+kt},Ne={s:Ie,z:function(kt){var At=-kt.utcOffset(),Dt=Math.abs(At),Lt=Math.floor(Dt/60),jt=Dt%60;return(At<=0?"+":"-")+Ie(Lt,2,"0")+":"+Ie(jt,2,"0")},m:function kt(At,Dt){if(At.date()1)return kt(vn[0])}else{var _n=At.name;$e[_n]=At,jt=_n}return!Lt&&jt&&(Oe=jt),jt||!Lt&&Oe},ze=function(kt,At){if(Ue(kt))return kt.clone();var Dt=typeof At=="object"?At:{};return Dt.date=kt,Dt.args=arguments,new qe(Dt)},Pt=Ne;Pt.l=Fe,Pt.i=Ue,Pt.w=function(kt,At){return ze(kt,{locale:At.$L,utc:At.$u,x:At.$x,$offset:At.$offset})};var qe=function(){function kt(Dt){this.$L=Fe(Dt.locale,null,!0),this.parse(Dt),this.$x=this.$x||Dt.x||{},this[Ve]=!0}var At=kt.prototype;return At.parse=function(Dt){this.$d=function(Lt){var jt=Lt.date,hn=Lt.utc;if(jt===null)return new Date(NaN);if(Pt.u(jt))return new Date;if(jt instanceof Date)return new Date(jt);if(typeof jt=="string"&&!/Z$/i.test(jt)){var vn=jt.match(_e);if(vn){var _n=vn[2]-1||0,wn=(vn[7]||"0").substring(0,3);return hn?new Date(Date.UTC(vn[1],_n,vn[3]||1,vn[4]||0,vn[5]||0,vn[6]||0,wn)):new Date(vn[1],_n,vn[3]||1,vn[4]||0,vn[5]||0,vn[6]||0,wn)}}return new Date(jt)}(Dt),this.init()},At.init=function(){var Dt=this.$d;this.$y=Dt.getFullYear(),this.$M=Dt.getMonth(),this.$D=Dt.getDate(),this.$W=Dt.getDay(),this.$H=Dt.getHours(),this.$m=Dt.getMinutes(),this.$s=Dt.getSeconds(),this.$ms=Dt.getMilliseconds()},At.$utils=function(){return Pt},At.isValid=function(){return this.$d.toString()!==pe},At.isSame=function(Dt,Lt){var jt=ze(Dt);return this.startOf(Lt)<=jt&&jt<=this.endOf(Lt)},At.isAfter=function(Dt,Lt){return ze(Dt)[n>0?n-1:void 0,n,nArray.from(Array.from({length:n}).keys()),extractDateFormat=n=>n.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),extractTimeFormat=n=>n.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),dateEquals=function(n,t){const r=isDate$1(n),i=isDate$1(t);return r&&i?n.getTime()===t.getTime():!r&&!i?n===t:!1},valueEquals=function(n,t){const r=isArray$5(n),i=isArray$5(t);return r&&i?n.length!==t.length?!1:n.every((g,$)=>dateEquals(g,t[$])):!r&&!i?dateEquals(n,t):!1},parseDate$1=function(n,t,r){const i=isEmpty(t)||t==="x"?dayjs(n).locale(r):dayjs(n,t).locale(r);return i.isValid()?i:void 0},formatter=function(n,t,r){return isEmpty(t)?n:t==="x"?+n:dayjs(n).locale(r).format(t)},makeList=(n,t)=>{var r;const i=[],g=t==null?void 0:t();for(let $=0;$isArray$5(n)?n.map(t=>t.toDate()):n.toDate(),getPrevMonthLastDays=(n,t)=>{const r=n.subtract(1,"month").endOf("month").date();return rangeArr(t).map((i,g)=>r-(t-g-1))},getMonthDays=n=>{const t=n.daysInMonth();return rangeArr(t).map((r,i)=>i+1)},toNestedArr=n=>rangeArr(n.length/7).map(t=>{const r=t*7;return n.slice(r,r+7)}),dateTableProps=buildProps({selectedDay:{type:definePropType(Object)},range:{type:definePropType(Array)},date:{type:definePropType(Object),required:!0},hideHeader:{type:Boolean}}),dateTableEmits={pick:n=>isObject$6(n)};var localeData$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){return function(r,i,g){var $=i.prototype,V=function(le){return le&&(le.indexOf?le:le.s)},re=function(le,ue,de,he,pe){var _e=le.name?le:le.$locale(),Ce=V(_e[ue]),xe=V(_e[de]),Ie=Ce||xe.map(function(Oe){return Oe.slice(0,he)});if(!pe)return Ie;var Ne=_e.weekStart;return Ie.map(function(Oe,$e){return Ie[($e+(Ne||0))%7]})},ie=function(){return g.Ls[g.locale()]},ae=function(le,ue){return le.formats[ue]||function(de){return de.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(he,pe,_e){return pe||_e.slice(1)})}(le.formats[ue.toUpperCase()])},oe=function(){var le=this;return{months:function(ue){return ue?ue.format("MMMM"):re(le,"months")},monthsShort:function(ue){return ue?ue.format("MMM"):re(le,"monthsShort","months",3)},firstDayOfWeek:function(){return le.$locale().weekStart||0},weekdays:function(ue){return ue?ue.format("dddd"):re(le,"weekdays")},weekdaysMin:function(ue){return ue?ue.format("dd"):re(le,"weekdaysMin","weekdays",2)},weekdaysShort:function(ue){return ue?ue.format("ddd"):re(le,"weekdaysShort","weekdays",3)},longDateFormat:function(ue){return ae(le.$locale(),ue)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};$.localeData=function(){return oe.bind(this)()},g.localeData=function(){var le=ie();return{firstDayOfWeek:function(){return le.weekStart||0},weekdays:function(){return g.weekdays()},weekdaysShort:function(){return g.weekdaysShort()},weekdaysMin:function(){return g.weekdaysMin()},months:function(){return g.months()},monthsShort:function(){return g.monthsShort()},longDateFormat:function(ue){return ae(le,ue)},meridiem:le.meridiem,ordinal:le.ordinal}},g.months=function(){return re(ie(),"months")},g.monthsShort=function(){return re(ie(),"monthsShort","months",3)},g.weekdays=function(le){return re(ie(),"weekdays",null,null,le)},g.weekdaysShort=function(le){return re(ie(),"weekdaysShort","weekdays",3,le)},g.weekdaysMin=function(le){return re(ie(),"weekdaysMin","weekdays",2,le)}}})})(localeData$1);var localeDataExports=localeData$1.exports;const localeData=getDefaultExportFromCjs(localeDataExports),datePickTypes=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],WEEK_DAYS=["sun","mon","tue","wed","thu","fri","sat"],useDateTable=(n,t)=>{dayjs.extend(localeData);const r=dayjs.localeData().firstDayOfWeek(),{t:i,lang:g}=useLocale(),$=dayjs().locale(g.value),V=computed(()=>!!n.range&&!!n.range.length),re=computed(()=>{let ue=[];if(V.value){const[de,he]=n.range,pe=rangeArr(he.date()-de.date()+1).map(xe=>({text:de.date()+xe,type:"current"}));let _e=pe.length%7;_e=_e===0?0:7-_e;const Ce=rangeArr(_e).map((xe,Ie)=>({text:Ie+1,type:"next"}));ue=pe.concat(Ce)}else{const de=n.date.startOf("month").day(),he=getPrevMonthLastDays(n.date,(de-r+7)%7).map(xe=>({text:xe,type:"prev"})),pe=getMonthDays(n.date).map(xe=>({text:xe,type:"current"}));ue=[...he,...pe];const _e=7-(ue.length%7||7),Ce=rangeArr(_e).map((xe,Ie)=>({text:Ie+1,type:"next"}));ue=ue.concat(Ce)}return toNestedArr(ue)}),ie=computed(()=>{const ue=r;return ue===0?WEEK_DAYS.map(de=>i(`el.datepicker.weeks.${de}`)):WEEK_DAYS.slice(ue).concat(WEEK_DAYS.slice(0,ue)).map(de=>i(`el.datepicker.weeks.${de}`))}),ae=(ue,de)=>{switch(de){case"prev":return n.date.startOf("month").subtract(1,"month").date(ue);case"next":return n.date.startOf("month").add(1,"month").date(ue);case"current":return n.date.date(ue)}};return{now:$,isInRange:V,rows:re,weekDays:ie,getFormattedDate:ae,handlePickDay:({text:ue,type:de})=>{const he=ae(ue,de);t("pick",he)},getSlotData:({text:ue,type:de})=>{const he=ae(ue,de);return{isSelected:he.isSame(n.selectedDay),type:`${de}-month`,day:he.format("YYYY-MM-DD"),date:he.toDate()}}}},_hoisted_1$1x={key:0},_hoisted_2$X=["onClick"],_sfc_main$2D=defineComponent({name:"DateTable",__name:"date-table",props:dateTableProps,emits:dateTableEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{isInRange:$,now:V,rows:re,weekDays:ie,getFormattedDate:ae,handlePickDay:oe,getSlotData:le}=useDateTable(i,g),ue=useNamespace("calendar-table"),de=useNamespace("calendar-day"),he=({text:pe,type:_e})=>{const Ce=[_e];if(_e==="current"){const xe=ae(pe,_e);xe.isSame(i.selectedDay,"day")&&Ce.push(de.is("selected")),xe.isSame(V,"day")&&Ce.push(de.is("today"))}return Ce};return t({getFormattedDate:ae}),(pe,_e)=>(openBlock(),createElementBlock("table",{class:normalizeClass([unref(ue).b(),unref(ue).is("range",unref($))]),cellspacing:"0",cellpadding:"0"},[pe.hideHeader?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("thead",_hoisted_1$1x,[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ie),Ce=>(openBlock(),createElementBlock("th",{key:Ce,scope:"col"},toDisplayString(Ce),1))),128))])])),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(re),(Ce,xe)=>(openBlock(),createElementBlock("tr",{key:xe,class:normalizeClass({[unref(ue).e("row")]:!0,[unref(ue).em("row","hide-border")]:xe===0&&pe.hideHeader})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ce,(Ie,Ne)=>(openBlock(),createElementBlock("td",{key:Ne,class:normalizeClass(he(Ie)),onClick:Oe=>unref(oe)(Ie)},[createBaseVNode("div",{class:normalizeClass(unref(de).b())},[renderSlot(pe.$slots,"date-cell",{data:unref(le)(Ie)},()=>[createBaseVNode("span",null,toDisplayString(Ie.text),1)])],2)],10,_hoisted_2$X))),128))],2))),128))])],2))}});var DateTable$1=_export_sfc(_sfc_main$2D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const adjacentMonth=(n,t)=>{const r=n.endOf("month"),i=t.startOf("month"),$=r.isSame(i,"week")?i.add(1,"week"):i;return[[n,r],[$.startOf("week"),t]]},threeConsecutiveMonth=(n,t)=>{const r=n.endOf("month"),i=n.add(1,"month").startOf("month"),g=r.isSame(i,"week")?i.add(1,"week"):i,$=g.endOf("month"),V=t.startOf("month"),re=$.isSame(V,"week")?V.add(1,"week"):V;return[[n,r],[g.startOf("week"),$],[re.startOf("week"),t]]},useCalendar=(n,t,r)=>{const{lang:i}=useLocale(),g=ref(),$=dayjs().locale(i.value),V=computed({get(){return n.modelValue?ie.value:g.value},set(Ce){if(!Ce)return;g.value=Ce;const xe=Ce.toDate();t(INPUT_EVENT,xe),t(UPDATE_MODEL_EVENT,xe)}}),re=computed(()=>{if(!n.range||!isArray$5(n.range)||n.range.length!==2||n.range.some(Ne=>!isDate$1(Ne)))return[];const Ce=n.range.map(Ne=>dayjs(Ne).locale(i.value)),[xe,Ie]=Ce;return xe.isAfter(Ie)?[]:xe.isSame(Ie,"month")?de(xe,Ie):xe.add(1,"month").month()!==Ie.month()?[]:de(xe,Ie)}),ie=computed(()=>n.modelValue?dayjs(n.modelValue).locale(i.value):V.value||(re.value.length?re.value[0][0]:$)),ae=computed(()=>ie.value.subtract(1,"month").date(1)),oe=computed(()=>ie.value.add(1,"month").date(1)),le=computed(()=>ie.value.subtract(1,"year").date(1)),ue=computed(()=>ie.value.add(1,"year").date(1)),de=(Ce,xe)=>{const Ie=Ce.startOf("week"),Ne=xe.endOf("week"),Oe=Ie.get("month"),$e=Ne.get("month");return Oe===$e?[[Ie,Ne]]:(Oe+1)%12===$e?adjacentMonth(Ie,Ne):Oe+2===$e||(Oe+1)%11===$e?threeConsecutiveMonth(Ie,Ne):[]},he=Ce=>{V.value=Ce},pe=Ce=>{const Ie={"prev-month":ae.value,"next-month":oe.value,"prev-year":le.value,"next-year":ue.value,today:$}[Ce];Ie.isSame(ie.value,"day")||he(Ie)};return{calculateValidatedDateRange:de,date:ie,realSelectedDay:V,pickDay:he,selectDate:pe,validatedRange:re,handleDateChange:Ce=>{Ce==="today"?pe("today"):he(Ce)}}},isValidRange$1=n=>isArray$5(n)&&n.length===2&&n.every(t=>isDate$1(t)),calendarProps=buildProps({modelValue:{type:Date},range:{type:definePropType(Array),validator:isValidRange$1},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:definePropType(Function)}}),calendarEmits={[UPDATE_MODEL_EVENT]:n=>isDate$1(n),[INPUT_EVENT]:n=>isDate$1(n)},tagProps=buildProps({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:componentSizes},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),tagEmits={close:n=>n instanceof MouseEvent,click:n=>n instanceof MouseEvent},_hoisted_1$1w=["aria-label"],_hoisted_2$W=["aria-label"],_sfc_main$2C=defineComponent({name:"ElTag",__name:"tag",props:tagProps,emits:tagEmits,setup(n,{emit:t}){const r=n,i=t,g=useFormSize(),{t:$}=useLocale(),V=useNamespace("tag"),re=computed(()=>{const{type:le,hit:ue,effect:de,closable:he,round:pe}=r;return[V.b(),V.is("closable",he),V.m(le||"primary"),V.m(g.value),V.m(de),V.is("hit",ue),V.is("round",pe)]}),ie=le=>{i("close",le)},ae=le=>{i("click",le)},oe=le=>{var ue,de,he;(he=(de=(ue=le==null?void 0:le.component)==null?void 0:ue.subTree)==null?void 0:de.component)!=null&&he.bum&&(le.component.subTree.component.bum=null)};return(le,ue)=>le.disableTransitions?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(re.value),style:normalizeStyle$1({backgroundColor:le.color}),onClick:ae},[createBaseVNode("span",{class:normalizeClass(unref(V).e("content"))},[renderSlot(le.$slots,"default")],2),le.closable?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref($)("el.tag.close"),class:normalizeClass(unref(V).e("close")),type:"button",onClick:withModifiers(ie,["stop"])},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1})],10,_hoisted_1$1w)):createCommentVNode("v-if",!0)],6)):(openBlock(),createBlock(Transition,{key:1,name:`${unref(V).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:oe},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(re.value),style:normalizeStyle$1({backgroundColor:le.color}),onClick:ae},[createBaseVNode("span",{class:normalizeClass(unref(V).e("content"))},[renderSlot(le.$slots,"default")],2),le.closable?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref($)("el.tag.close"),class:normalizeClass(unref(V).e("close")),type:"button",onClick:withModifiers(ie,["stop"])},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1})],10,_hoisted_2$W)):createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var Tag=_export_sfc(_sfc_main$2C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const ElTag=withInstall(Tag),defaultProps$4={label:"label",value:"value",disabled:"disabled",options:"options"};function useProps(n){const t=ref({...defaultProps$4,...n.props});let r={...n.props};return watch(()=>n.props,re=>{isEqual$1(re,r)||(t.value={...defaultProps$4,...re},r={...re})},{deep:!0}),{aliasProps:t,getLabel:re=>get$1(re,t.value.label),getValue:re=>get$1(re,t.value.value),getDisabled:re=>get$1(re,t.value.disabled),getOptions:re=>get$1(re,t.value.options)}}const selectGroupKey=Symbol("ElSelectGroup"),selectKey=Symbol("ElSelect"),COMPONENT_NAME$i="ElOption",optionProps=buildProps({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),escapeStringRegexp=(n="")=>n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),capitalize=n=>capitalize$1(n);function useOption$1(n,t){const r=inject(selectKey);r||throwError$1(COMPONENT_NAME$i,"usage: ");const i=inject(selectGroupKey,{disabled:!1}),g=computed(()=>oe(castArray$1(r.props.modelValue),n.value)),$=computed(()=>{var de;if(r.props.multiple){const he=castArray$1((de=r.props.modelValue)!=null?de:[]);return!g.value&&he.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),V=computed(()=>{var de;return(de=n.label)!=null?de:isObject$6(n.value)?"":n.value}),re=computed(()=>n.value||n.label||""),ie=computed(()=>n.disabled||t.groupDisabled||$.value),ae=getCurrentInstance(),oe=(de=[],he)=>{if(isObject$6(n.value)){const pe=r.props.valueKey;return de&&de.some(_e=>toRaw(get$1(_e,pe))===get$1(he,pe))}else return de&&de.includes(he)},le=()=>{ie.value||(r.states.hoveringIndex=r.optionsArray.indexOf(ae.proxy))},ue=de=>{const he=new RegExp(escapeStringRegexp(de),"i");t.visible=he.test(String(V.value))||n.created};return watch(()=>V.value,()=>{!n.created&&!r.props.remote&&r.setSelected()}),watch(()=>n.value,(de,he)=>{const{remote:pe,valueKey:_e}=r.props;if((pe?de!==he:!isEqual$1(de,he))&&(r.onOptionDestroy(he,ae.proxy),r.onOptionCreate(ae.proxy)),!n.created&&!pe){if(_e&&isObject$6(de)&&isObject$6(he)&&de[_e]===he[_e])return;r.setSelected()}}),watch(()=>i.disabled,()=>{t.groupDisabled=i.disabled},{immediate:!0}),{select:r,currentLabel:V,currentValue:re,itemSelected:g,isDisabled:ie,hoverItem:le,updateOption:ue}}const _sfc_main$2B=defineComponent({name:COMPONENT_NAME$i,componentName:COMPONENT_NAME$i,props:optionProps,setup(n){const t=useNamespace("select"),r=useId(),i=computed(()=>[t.be("dropdown","item"),t.is("disabled",unref(re)),t.is("selected",unref(V)),t.is("hovering",unref(ue))]),g=reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:$,itemSelected:V,isDisabled:re,select:ie,hoverItem:ae,updateOption:oe}=useOption$1(n,g),{visible:le,hover:ue}=toRefs(g),de=getCurrentInstance().proxy;ie.onOptionCreate(de),onBeforeUnmount(()=>{const pe=de.value;nextTick(()=>{const{selected:_e}=ie.states,Ce=_e.some(xe=>xe.value===de.value);ie.states.cachedOptions.get(pe)===de&&!Ce&&ie.states.cachedOptions.delete(pe)}),ie.onOptionDestroy(pe,de)});function he(){re.value||ie.handleOptionSelect(de)}return{ns:t,id:r,containerKls:i,currentLabel:$,itemSelected:V,isDisabled:re,select:ie,visible:le,hover:ue,states:g,hoverItem:ae,updateOption:oe,selectOptionClick:he}}}),_hoisted_1$1v=["id","aria-disabled","aria-selected"];function _sfc_render$k(n,t,r,i,g,$){return withDirectives((openBlock(),createElementBlock("li",{id:n.id,class:normalizeClass(n.containerKls),role:"option","aria-disabled":n.isDisabled||void 0,"aria-selected":n.itemSelected,onMousemove:t[0]||(t[0]=(...V)=>n.hoverItem&&n.hoverItem(...V)),onClick:t[1]||(t[1]=withModifiers((...V)=>n.selectOptionClick&&n.selectOptionClick(...V),["stop"]))},[renderSlot(n.$slots,"default",{},()=>[createBaseVNode("span",null,toDisplayString(n.currentLabel),1)])],42,_hoisted_1$1v)),[[vShow,n.visible]])}var Option=_export_sfc(_sfc_main$2B,[["render",_sfc_render$k],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const MINIMUM_INPUT_WIDTH=11,BORDER_HORIZONTAL_WIDTH=2,_sfc_main$2A=defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const n=inject(selectKey),t=useNamespace("select"),r=computed(()=>n.props.popperClass),i=computed(()=>n.props.multiple),g=computed(()=>n.props.fitInputWidth),$=ref("");function V(){var re;const ie=(re=n.selectRef)==null?void 0:re.offsetWidth;ie?$.value=`${ie-BORDER_HORIZONTAL_WIDTH}px`:$.value=""}return onMounted(()=>{V(),useResizeObserver(n.selectRef,V)}),{ns:t,minWidth:$,popperClass:r,isMultiple:i,isFitInputWidth:g}}});function _sfc_render$j(n,t,r,i,g,$){return openBlock(),createElementBlock("div",{class:normalizeClass([n.ns.b("dropdown"),n.ns.is("multiple",n.isMultiple),n.popperClass]),style:normalizeStyle$1({[n.isFitInputWidth?"width":"minWidth"]:n.minWidth})},[n.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(n.ns.be("dropdown","header"))},[renderSlot(n.$slots,"header")],2)):createCommentVNode("v-if",!0),renderSlot(n.$slots,"default"),n.$slots.footer?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(n.ns.be("dropdown","footer"))},[renderSlot(n.$slots,"footer")],2)):createCommentVNode("v-if",!0)],6)}var ElSelectMenu$1=_export_sfc(_sfc_main$2A,[["render",_sfc_render$j],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);const useSelect$2=(n,t)=>{const{t:r}=useLocale(),i=useSlots(),g=useId(),$=useNamespace("select"),V=useNamespace("input"),re=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}),ie=ref(),ae=ref(),oe=ref(),le=ref(),ue=ref(),de=ref(),he=ref(),pe=ref(),_e=ref(),Ce=ref(),xe=ref(),Ie=ref(!1),Ne=ref(),Oe=ref(!1),{form:$e,formItem:Ve}=useFormItem(),{inputId:Ue}=useFormItemInputId(n,{formItemContext:Ve}),{valueOnClear:Fe,isEmptyValue:ze}=useEmptyValues(n),{isComposing:Pt,handleCompositionStart:qe,handleCompositionUpdate:Et,handleCompositionEnd:kt}=useComposition({afterComposition:ar=>hr(ar)}),At=useFormDisabled(),{wrapperRef:Dt,isFocused:Lt,handleBlur:jt}=useFocusController(ue,{disabled:At,afterFocus(){n.automaticDropdown&&!Ie.value&&(Ie.value=!0,re.menuVisibleOnFocus=!0)},beforeBlur(ar){var wr,Mr;return((wr=oe.value)==null?void 0:wr.isFocusInsideContent(ar))||((Mr=le.value)==null?void 0:Mr.isFocusInsideContent(ar))},afterBlur(){var ar;Ie.value=!1,re.menuVisibleOnFocus=!1,n.validateEvent&&((ar=Ve==null?void 0:Ve.validate)==null||ar.call(Ve,"blur").catch(wr=>void 0))}}),hn=computed(()=>isArray$5(n.modelValue)?n.modelValue.length>0:!ze(n.modelValue)),vn=computed(()=>{var ar;return(ar=$e==null?void 0:$e.statusIcon)!=null?ar:!1}),_n=computed(()=>n.clearable&&!At.value&&hn.value&&(Lt.value||re.inputHovering)),wn=computed(()=>n.remote&&n.filterable&&!n.remoteShowSuffix?"":n.suffixIcon),bn=computed(()=>$.is("reverse",!!(wn.value&&Ie.value))),Cn=computed(()=>(Ve==null?void 0:Ve.validateState)||""),Sn=computed(()=>Cn.value&&ValidateComponentsMap[Cn.value]),Tn=computed(()=>n.remote?n.debounce:0),En=computed(()=>n.remote&&!re.inputValue&&re.options.size===0),kn=computed(()=>n.loading?n.loadingText||r("el.select.loading"):n.filterable&&re.inputValue&&re.options.size>0&&$n.value===0?n.noMatchText||r("el.select.noMatch"):re.options.size===0?n.noDataText||r("el.select.noData"):null),$n=computed(()=>An.value.filter(ar=>ar.visible).length),An=computed(()=>{const ar=Array.from(re.options.values()),wr=[];return re.optionValues.forEach(Mr=>{const Rr=ar.findIndex(Dr=>Dr.value===Mr);Rr>-1&&wr.push(ar[Rr])}),wr.length>=ar.length?wr:ar}),xn=computed(()=>Array.from(re.cachedOptions.values())),Ln=computed(()=>{const ar=An.value.filter(wr=>!wr.created).some(wr=>wr.currentLabel===re.inputValue);return n.filterable&&n.allowCreate&&re.inputValue!==""&&!ar}),Nn=()=>{n.filterable&&isFunction$4(n.filterMethod)||n.filterable&&n.remote&&isFunction$4(n.remoteMethod)||An.value.forEach(ar=>{var wr;(wr=ar.updateOption)==null||wr.call(ar,re.inputValue)})},Pn=useFormSize(),On=computed(()=>["small"].includes(Pn.value)?"small":"default"),Hn=computed({get(){return Ie.value&&(n.loading||!En.value||n.remote&&!!i.empty)&&(!Oe.value||!isEmpty(re.previousQuery))},set(ar){Ie.value=ar}}),Xn=computed(()=>{if(n.multiple&&!isUndefined$1(n.modelValue))return castArray$1(n.modelValue).length===0&&!re.inputValue;const ar=isArray$5(n.modelValue)?n.modelValue[0]:n.modelValue;return n.filterable||isUndefined$1(ar)?!re.inputValue:!0}),In=computed(()=>{var ar;const wr=(ar=n.placeholder)!=null?ar:r("el.select.placeholder");return n.multiple||!hn.value?wr:re.selectedLabel}),or=computed(()=>isIOS?null:"mouseenter");watch(()=>n.modelValue,(ar,wr)=>{n.multiple&&n.filterable&&!n.reserveKeyword&&(re.inputValue="",Qn("")),Gn(),!isEqual$1(ar,wr)&&n.validateEvent&&(Ve==null||Ve.validate("change").catch(Mr=>void 0))},{flush:"post",deep:!0}),watch(()=>Ie.value,ar=>{ar?Qn(re.inputValue):(re.inputValue="",re.previousQuery=null,re.isBeforeHide=!0)}),watch(()=>re.options.entries(),()=>{isClient&&(Gn(),n.defaultFirstOption&&(n.filterable||n.remote)&&$n.value&&Zn())},{flush:"post"}),watch([()=>re.hoveringIndex,An],([ar])=>{isNumber$2(ar)&&ar>-1?Ne.value=An.value[ar]||{}:Ne.value={},An.value.forEach(wr=>{wr.hover=Ne.value===wr})}),watchEffect(()=>{re.isBeforeHide||Nn()});const Qn=ar=>{re.previousQuery===ar||Pt.value||(re.previousQuery=ar,n.filterable&&isFunction$4(n.filterMethod)?n.filterMethod(ar):n.filterable&&n.remote&&isFunction$4(n.remoteMethod)&&n.remoteMethod(ar),n.defaultFirstOption&&(n.filterable||n.remote)&&$n.value?nextTick(Zn):nextTick(Mn))},Zn=()=>{const ar=An.value.filter(Dr=>Dr.visible&&!Dr.disabled&&!Dr.states.groupDisabled),wr=ar.find(Dr=>Dr.created),Mr=ar[0],Rr=An.value.map(Dr=>Dr.value);re.hoveringIndex=cr(Rr,wr||Mr)},Gn=()=>{if(n.multiple)re.selectedLabel="";else{const wr=isArray$5(n.modelValue)?n.modelValue[0]:n.modelValue,Mr=Rn(wr);re.selectedLabel=Mr.currentLabel,re.selected=[Mr];return}const ar=[];isUndefined$1(n.modelValue)||castArray$1(n.modelValue).forEach(wr=>{ar.push(Rn(wr))}),re.selected=ar},Rn=ar=>{let wr;const Mr=isPlainObject$3(ar);for(let Gr=re.cachedOptions.size-1;Gr>=0;Gr--){const Hr=xn.value[Gr];if(Mr?get$1(Hr.value,n.valueKey)===get$1(ar,n.valueKey):Hr.value===ar){wr={index:An.value.filter(Dn=>!Dn.created).indexOf(Hr),value:ar,currentLabel:Hr.currentLabel,get isDisabled(){return Hr.isDisabled}};break}}if(wr)return wr;const Rr=Mr?ar.label:ar??"";return{index:-1,value:ar,currentLabel:Rr}},Mn=()=>{const ar=re.selected.length;if(ar>0){const wr=re.selected[ar-1];re.hoveringIndex=An.value.findIndex(Mr=>zr(wr)===zr(Mr))}else re.hoveringIndex=-1},Bn=()=>{re.selectionWidth=Number.parseFloat(window.getComputedStyle(ae.value).width)},qn=()=>{re.collapseItemWidth=Ce.value.getBoundingClientRect().width},zn=()=>{var ar,wr;(wr=(ar=oe.value)==null?void 0:ar.updatePopper)==null||wr.call(ar)},jn=()=>{var ar,wr;(wr=(ar=le.value)==null?void 0:ar.updatePopper)==null||wr.call(ar)},tr=()=>{re.inputValue.length>0&&!Ie.value&&(Ie.value=!0),Qn(re.inputValue)},hr=ar=>{if(re.inputValue=ar.target.value,n.remote)Oe.value=!0,ir();else return tr()},ir=useDebounceFn(()=>{tr(),Oe.value=!1},Tn),pr=ar=>{isEqual$1(n.modelValue,ar)||t(CHANGE_EVENT,ar)},rr=ar=>findLastIndex(ar,wr=>{const Mr=re.cachedOptions.get(wr);return!(Mr!=null&&Mr.disabled)&&!(Mr!=null&&Mr.states.groupDisabled)}),lr=ar=>{const wr=getEventCode(ar);if(n.multiple&&wr!==EVENT_CODE.delete&&ar.target.value.length<=0){const Mr=castArray$1(n.modelValue).slice(),Rr=rr(Mr);if(Rr<0)return;const Dr=Mr[Rr];Mr.splice(Rr,1),t(UPDATE_MODEL_EVENT,Mr),pr(Mr),t("remove-tag",Dr)}},Yn=(ar,wr)=>{const Mr=re.selected.indexOf(wr);if(Mr>-1&&!At.value){const Rr=castArray$1(n.modelValue).slice();Rr.splice(Mr,1),t(UPDATE_MODEL_EVENT,Rr),pr(Rr),t("remove-tag",wr.value)}ar.stopPropagation(),Jn()},er=ar=>{ar.stopPropagation();const wr=n.multiple?[]:Fe.value;if(n.multiple)for(const Mr of re.selected)Mr.isDisabled&&wr.push(Mr.value);t(UPDATE_MODEL_EVENT,wr),pr(wr),re.hoveringIndex=-1,Ie.value=!1,t("clear"),Jn()},Fn=ar=>{var wr;if(n.multiple){const Mr=castArray$1((wr=n.modelValue)!=null?wr:[]).slice(),Rr=cr(Mr,ar);Rr>-1?Mr.splice(Rr,1):(n.multipleLimit<=0||Mr.length{Un(ar)})},cr=(ar,wr)=>isUndefined$1(wr)?-1:isObject$6(wr.value)?ar.findIndex(Mr=>isEqual$1(get$1(Mr,n.valueKey),zr(wr))):ar.indexOf(wr.value),Un=ar=>{var wr,Mr,Rr,Dr,Gr;const Hr=isArray$5(ar)?ar[ar.length-1]:ar;let Qr=null;if(!isNil(Hr==null?void 0:Hr.value)){const Dn=An.value.filter(nr=>nr.value===Hr.value);Dn.length>0&&(Qr=Dn[0].$el)}if(oe.value&&Qr){const Dn=(Dr=(Rr=(Mr=(wr=oe.value)==null?void 0:wr.popperRef)==null?void 0:Mr.contentRef)==null?void 0:Rr.querySelector)==null?void 0:Dr.call(Rr,`.${$.be("dropdown","wrap")}`);Dn&&scrollIntoView(Dn,Qr)}(Gr=xe.value)==null||Gr.handleScroll()},gr=ar=>{re.options.set(ar.value,ar),re.cachedOptions.set(ar.value,ar)},vr=(ar,wr)=>{re.options.get(ar)===wr&&re.options.delete(ar)},yr=computed(()=>{var ar,wr;return(wr=(ar=oe.value)==null?void 0:ar.popperRef)==null?void 0:wr.contentRef}),Wn=()=>{re.isBeforeHide=!1,nextTick(()=>{var ar;(ar=xe.value)==null||ar.update(),Un(re.selected)})},Jn=()=>{var ar;(ar=ue.value)==null||ar.focus()},sr=()=>{var ar;if(Ie.value){Ie.value=!1,nextTick(()=>{var wr;return(wr=ue.value)==null?void 0:wr.blur()});return}(ar=ue.value)==null||ar.blur()},Sr=ar=>{er(ar)},Tr=ar=>{if(Ie.value=!1,Lt.value){const wr=new FocusEvent("blur",ar);nextTick(()=>jt(wr))}},fr=()=>{re.inputValue.length>0?re.inputValue="":Ie.value=!1},_r=ar=>{var wr;At.value||n.filterable&&Ie.value&&ar&&!((wr=he.value)!=null&&wr.contains(ar.target))||(isIOS&&(re.inputHovering=!0),re.menuVisibleOnFocus?re.menuVisibleOnFocus=!1:Ie.value=!Ie.value)},Cr=()=>{if(!Ie.value)_r();else{const ar=An.value[re.hoveringIndex];ar&&!ar.isDisabled&&Fn(ar)}},zr=ar=>isObject$6(ar.value)?get$1(ar.value,n.valueKey):ar.value,Ur=computed(()=>An.value.filter(ar=>ar.visible).every(ar=>ar.isDisabled)),jr=computed(()=>n.multiple?n.collapseTags?re.selected.slice(0,n.maxCollapseTags):re.selected:[]),ai=computed(()=>n.multiple?n.collapseTags?re.selected.slice(n.maxCollapseTags):[]:[]),ti=ar=>{if(!Ie.value){Ie.value=!0;return}if(!(re.options.size===0||$n.value===0||Pt.value)&&!Ur.value){ar==="next"?(re.hoveringIndex++,re.hoveringIndex===re.options.size&&(re.hoveringIndex=0)):ar==="prev"&&(re.hoveringIndex--,re.hoveringIndex<0&&(re.hoveringIndex=re.options.size-1));const wr=An.value[re.hoveringIndex];(wr.isDisabled||!wr.visible)&&ti(ar),nextTick(()=>Un(Ne.value))}},ri=(ar,wr,Mr,Rr)=>{for(let Dr=wr;Dr>=0&&Dr{var Mr;const Rr=re.options.size;if(Rr===0)return;const Dr=clamp$3(ar,0,Rr-1),Gr=An.value,Hr=wr==="up"?-1:1,Qr=(Mr=ri(Gr,Dr,Hr,Rr))!=null?Mr:ri(Gr,Dr-Hr,-Hr,Rr);Qr!=null&&(re.hoveringIndex=Qr,nextTick(()=>Un(Ne.value)))},ii=ar=>{const wr=getEventCode(ar);let Mr=!0;switch(wr){case EVENT_CODE.up:ti("prev");break;case EVENT_CODE.down:ti("next");break;case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:Pt.value||Cr();break;case EVENT_CODE.esc:fr();break;case EVENT_CODE.backspace:Mr=!1,lr(ar);return;case EVENT_CODE.home:if(!Ie.value)return;Wr(0,"down");break;case EVENT_CODE.end:if(!Ie.value)return;Wr(re.options.size-1,"up");break;case EVENT_CODE.pageUp:if(!Ie.value)return;Wr(re.hoveringIndex-10,"up");break;case EVENT_CODE.pageDown:if(!Ie.value)return;Wr(re.hoveringIndex+10,"down");break;default:Mr=!1;break}Mr&&(ar.preventDefault(),ar.stopPropagation())},si=()=>{if(!ae.value)return 0;const ar=window.getComputedStyle(ae.value);return Number.parseFloat(ar.gap||"6px")},li=computed(()=>{const ar=si(),wr=n.filterable?ar+MINIMUM_INPUT_WIDTH:0;return{maxWidth:`${Ce.value&&n.maxCollapseTags===1?re.selectionWidth-re.collapseItemWidth-ar-wr:re.selectionWidth-wr}px`}}),ni=computed(()=>({maxWidth:`${re.selectionWidth}px`})),ci=ar=>{t("popup-scroll",ar)};useResizeObserver(ae,Bn),useResizeObserver(Dt,zn),useResizeObserver(_e,jn),useResizeObserver(Ce,qn);let Jr;return watch(()=>Hn.value,ar=>{ar?Jr=useResizeObserver(pe,zn).stop:(Jr==null||Jr(),Jr=void 0),t("visible-change",ar)}),onMounted(()=>{Gn()}),{inputId:Ue,contentId:g,nsSelect:$,nsInput:V,states:re,isFocused:Lt,expanded:Ie,optionsArray:An,hoverOption:Ne,selectSize:Pn,filteredOptionsCount:$n,updateTooltip:zn,updateTagTooltip:jn,debouncedOnInputChange:ir,onInput:hr,deletePrevTag:lr,deleteTag:Yn,deleteSelected:er,handleOptionSelect:Fn,scrollToOption:Un,hasModelValue:hn,shouldShowPlaceholder:Xn,currentPlaceholder:In,mouseEnterEventName:or,needStatusIcon:vn,showClearBtn:_n,iconComponent:wn,iconReverse:bn,validateState:Cn,validateIcon:Sn,showNewOption:Ln,updateOptions:Nn,collapseTagSize:On,setSelected:Gn,selectDisabled:At,emptyText:kn,handleCompositionStart:qe,handleCompositionUpdate:Et,handleCompositionEnd:kt,handleKeydown:ii,onOptionCreate:gr,onOptionDestroy:vr,handleMenuEnter:Wn,focus:Jn,blur:sr,handleClearClick:Sr,handleClickOutside:Tr,handleEsc:fr,toggleMenu:_r,selectOption:Cr,getValueKey:zr,navigateOptions:ti,dropdownMenuVisible:Hn,showTagList:jr,collapseTagList:ai,popupScroll:ci,getOption:Rn,tagStyle:li,collapseTagStyle:ni,popperRef:yr,inputRef:ue,tooltipRef:oe,tagTooltipRef:le,prefixRef:de,suffixRef:he,selectRef:ie,wrapperRef:Dt,selectionRef:ae,scrollbarRef:xe,menuRef:pe,tagMenuRef:_e,collapseItemRef:Ce}};var ElOptions=defineComponent({name:"ElOptions",setup(n,{slots:t}){const r=inject(selectKey);let i=[];return()=>{var g,$;const V=(g=t.default)==null?void 0:g.call(t),re=[];function ie(ae){isArray$5(ae)&&ae.forEach(oe=>{var le,ue,de,he;const pe=(le=(oe==null?void 0:oe.type)||{})==null?void 0:le.name;pe==="ElOptionGroup"?ie(!isString$2(oe.children)&&!isArray$5(oe.children)&&isFunction$4((ue=oe.children)==null?void 0:ue.default)?(de=oe.children)==null?void 0:de.default():oe.children):pe==="ElOption"?re.push((he=oe.props)==null?void 0:he.value):isArray$5(oe.children)&&ie(oe.children)})}return V.length&&ie(($=V[0])==null?void 0:$.children),isEqual$1(re,i)||(i=re,r&&(r.states.optionValues=re)),V}}});const selectProps=buildProps({name:String,id:String,modelValue:{type:definePropType([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:useSizeProp,effect:{type:definePropType(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:definePropType([String,Object])},popperOptions:{type:definePropType(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:definePropType(Function)},filterMethod:{type: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:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:iconPropType,default:circle_close_default},fitInputWidth:Boolean,suffixIcon:{type:iconPropType,default:arrow_down_default},tagType:{...tagProps.type,default:"info"},tagEffect:{...tagProps.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:definePropType(String),values:Ee,default:"bottom-start"},fallbackPlacements:{type:definePropType(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:useTooltipContentProps.appendTo,options:{type:definePropType(Array)},props:{type:definePropType(Object),default:()=>defaultProps$4},...useEmptyValuesProps,...useAriaProps(["ariaLabel"])});UPDATE_MODEL_EVENT+"",CHANGE_EVENT+"",scrollbarEmits.scroll;const _sfc_main$2z=defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(n){const t=useNamespace("select"),r=ref(),i=getCurrentInstance(),g=ref([]);provide(selectGroupKey,reactive({...toRefs(n)}));const $=computed(()=>g.value.some(ae=>ae.visible===!0)),V=ae=>{var oe;return ae.type.name==="ElOption"&&!!((oe=ae.component)!=null&&oe.proxy)},re=ae=>{const oe=castArray$1(ae),le=[];return oe.forEach(ue=>{var de;isVNode(ue)&&(V(ue)?le.push(ue.component.proxy):isArray$5(ue.children)&&ue.children.length?le.push(...re(ue.children)):(de=ue.component)!=null&&de.subTree&&le.push(...re(ue.component.subTree)))}),le},ie=()=>{g.value=re(i.subTree)};return onMounted(()=>{ie()}),useMutationObserver(r,ie,{attributes:!0,subtree:!0,childList:!0}),{groupRef:r,visible:$,ns:t}}});function _sfc_render$i(n,t,r,i,g,$){return withDirectives((openBlock(),createElementBlock("ul",{ref:"groupRef",class:normalizeClass(n.ns.be("group","wrap"))},[createBaseVNode("li",{class:normalizeClass(n.ns.be("group","title"))},toDisplayString(n.label),3),createBaseVNode("li",null,[createBaseVNode("ul",{class:normalizeClass(n.ns.b("group"))},[renderSlot(n.$slots,"default")],2)])],2)),[[vShow,n.visible]])}var OptionGroup=_export_sfc(_sfc_main$2z,[["render",_sfc_render$i],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const nodeList=new Map;if(isClient){let n;document.addEventListener("mousedown",t=>n=t),document.addEventListener("mouseup",t=>{if(n){for(const r of nodeList.values())for(const{documentHandler:i}of r)i(t,n);n=void 0}})}function createDocumentHandler(n,t){let r=[];return isArray$5(t.arg)?r=t.arg:isElement$1(t.arg)&&r.push(t.arg),function(i,g){const $=t.instance.popperRef,V=i.target,re=g==null?void 0:g.target,ie=!t||!t.instance,ae=!V||!re,oe=n.contains(V)||n.contains(re),le=n===V,ue=r.length&&r.some(he=>he==null?void 0:he.contains(V))||r.length&&r.includes(re),de=$&&($.contains(V)||$.contains(re));ie||ae||oe||le||ue||de||t.value(i,g)}}const ClickOutside={beforeMount(n,t){nodeList.has(n)||nodeList.set(n,[]),nodeList.get(n).push({documentHandler:createDocumentHandler(n,t),bindingFn:t.value})},updated(n,t){nodeList.has(n)||nodeList.set(n,[]);const r=nodeList.get(n),i=r.findIndex($=>$.bindingFn===t.oldValue),g={documentHandler:createDocumentHandler(n,t),bindingFn:t.value};i>=0?r.splice(i,1,g):r.push(g)},unmounted(n){nodeList.delete(n)}};function useCalcInputWidth(){const n=shallowRef(),t=ref(0),r=computed(()=>({minWidth:`${Math.max(t.value,MINIMUM_INPUT_WIDTH)}px`}));return useResizeObserver(n,()=>{var g,$;t.value=($=(g=n.value)==null?void 0:g.getBoundingClientRect().width)!=null?$:0}),{calculatorRef:n,calculatorWidth:t,inputStyle:r}}const COMPONENT_NAME$h="ElSelect",warnHandlerMap=new WeakMap,createSelectWarnHandler=n=>(...t)=>{var r,i;const g=t[0];if(!g||g.includes('Slot "default" invoked outside of the render function')&&((r=t[2])!=null&&r.includes("ElTreeSelect")))return;const $=(i=warnHandlerMap.get(n))==null?void 0:i.originalWarnHandler;if($){$(...t);return}console.warn(...t)},getWarnHandlerRecord=n=>{let t=warnHandlerMap.get(n);return t||(t={originalWarnHandler:n.config.warnHandler,handler:createSelectWarnHandler(n),count:0},warnHandlerMap.set(n,t)),t},_sfc_main$2y=defineComponent({name:COMPONENT_NAME$h,componentName:COMPONENT_NAME$h,components:{ElSelectMenu:ElSelectMenu$1,ElOption:Option,ElOptions,ElOptionGroup:OptionGroup,ElTag,ElScrollbar,ElTooltip,ElIcon},directives:{ClickOutside},props:selectProps,emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(n,{emit:t,slots:r}){const i=getCurrentInstance(),g=getWarnHandlerRecord(i.appContext);g.count+=1,i.appContext.config.warnHandler=g.handler;const $=computed(()=>{const{modelValue:xe,multiple:Ie}=n,Ne=Ie?[]:void 0;return isArray$5(xe)?Ie?xe:Ne:Ie?Ne:xe}),V=reactive({...toRefs(n),modelValue:$}),re=useSelect$2(V,t),{calculatorRef:ie,inputStyle:ae}=useCalcInputWidth(),{getLabel:oe,getValue:le,getOptions:ue,getDisabled:de}=useProps(n),he=xe=>({label:oe(xe),value:le(xe),disabled:de(xe)}),pe=xe=>xe.reduce((Ie,Ne)=>(Ie.push(Ne),Ne.children&&Ne.children.length>0&&Ie.push(...pe(Ne.children)),Ie),[]),_e=xe=>{flattedChildren(xe||[]).forEach(Ne=>{var Oe;if(isObject$6(Ne)&&(Ne.type.name==="ElOption"||Ne.type.name==="ElTree")){const $e=Ne.type.name;if($e==="ElTree"){const Ve=((Oe=Ne.props)==null?void 0:Oe.data)||[];pe(Ve).forEach(Fe=>{Fe.currentLabel=Fe.label||(isObject$6(Fe.value)?"":Fe.value),re.onOptionCreate(Fe)})}else if($e==="ElOption"){const Ve={...Ne.props};Ve.currentLabel=Ve.label||(isObject$6(Ve.value)?"":Ve.value),re.onOptionCreate(Ve)}}})};watch(()=>{var xe;return[(xe=r.default)==null?void 0:xe.call(r),$.value]},()=>{var xe;n.persistent||re.expanded.value||(re.states.options.clear(),_e((xe=r.default)==null?void 0:xe.call(r)))},{immediate:!0}),provide(selectKey,reactive({props:V,states:re.states,selectRef:re.selectRef,optionsArray:re.optionsArray,setSelected:re.setSelected,handleOptionSelect:re.handleOptionSelect,onOptionCreate:re.onOptionCreate,onOptionDestroy:re.onOptionDestroy}));const Ce=computed(()=>n.multiple?re.states.selected.map(xe=>xe.currentLabel):re.states.selectedLabel);return onBeforeUnmount(()=>{const xe=warnHandlerMap.get(i.appContext);xe&&(xe.count-=1,xe.count<=0&&(i.appContext.config.warnHandler=xe.originalWarnHandler,warnHandlerMap.delete(i.appContext)))}),{...re,modelValue:$,selectedLabel:Ce,calculatorRef:ie,inputStyle:ae,getLabel:oe,getValue:le,getOptions:ue,getDisabled:de,getOptionProps:he}}}),_hoisted_1$1u=["id","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],_hoisted_2$V=["textContent"],_hoisted_3$p={key:1};function _sfc_render$h(n,t,r,i,g,$){const V=resolveComponent("el-tag"),re=resolveComponent("el-tooltip"),ie=resolveComponent("el-icon"),ae=resolveComponent("el-option"),oe=resolveComponent("el-option-group"),le=resolveComponent("el-options"),ue=resolveComponent("el-scrollbar"),de=resolveComponent("el-select-menu"),he=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",mergeProps({ref:"selectRef",class:[n.nsSelect.b(),n.nsSelect.m(n.selectSize)]},{[toHandlerKey(n.mouseEnterEventName)]:t[11]||(t[11]=pe=>n.states.inputHovering=!0)},{onMouseleave:t[12]||(t[12]=pe=>n.states.inputHovering=!1)}),[createVNode$1(re,{ref:"tooltipRef",visible:n.dropdownMenuVisible,placement:n.placement,teleported:n.teleported,"popper-class":[n.nsSelect.e("popper"),n.popperClass],"popper-style":n.popperStyle,"popper-options":n.popperOptions,"fallback-placements":n.fallbackPlacements,effect:n.effect,pure:"",trigger:"click",transition:`${n.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:n.persistent,"append-to":n.appendTo,"show-arrow":n.showArrow,offset:n.offset,onBeforeShow:n.handleMenuEnter,onHide:t[10]||(t[10]=pe=>n.states.isBeforeHide=!1)},{default:withCtx(()=>{var pe;return[createBaseVNode("div",{ref:"wrapperRef",class:normalizeClass([n.nsSelect.e("wrapper"),n.nsSelect.is("focused",n.isFocused),n.nsSelect.is("hovering",n.states.inputHovering),n.nsSelect.is("filterable",n.filterable),n.nsSelect.is("disabled",n.selectDisabled)]),onClick:t[7]||(t[7]=withModifiers((..._e)=>n.toggleMenu&&n.toggleMenu(..._e),["prevent"]))},[n.$slots.prefix?(openBlock(),createElementBlock("div",{key:0,ref:"prefixRef",class:normalizeClass(n.nsSelect.e("prefix"))},[renderSlot(n.$slots,"prefix")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"selectionRef",class:normalizeClass([n.nsSelect.e("selection"),n.nsSelect.is("near",n.multiple&&!n.$slots.prefix&&!!n.states.selected.length)])},[n.multiple?renderSlot(n.$slots,"tag",{key:0,data:n.states.selected,deleteTag:n.deleteTag,selectDisabled:n.selectDisabled},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.showTagList,_e=>(openBlock(),createElementBlock("div",{key:n.getValueKey(_e),class:normalizeClass(n.nsSelect.e("selected-item"))},[createVNode$1(V,{closable:!n.selectDisabled&&!_e.isDisabled,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",style:normalizeStyle$1(n.tagStyle),onClose:Ce=>n.deleteTag(Ce,_e)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(n.nsSelect.e("tags-text"))},[renderSlot(n.$slots,"label",{index:_e.index,label:_e.currentLabel,value:_e.value},()=>[createTextVNode(toDisplayString(_e.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),n.collapseTags&&n.states.selected.length>n.maxCollapseTags?(openBlock(),createBlock(re,{key:0,ref:"tagTooltipRef",disabled:n.dropdownMenuVisible||!n.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:n.effect,placement:"bottom","popper-class":n.popperClass,"popper-style":n.popperStyle,teleported:n.teleported,"popper-options":n.popperOptions},{default:withCtx(()=>[createBaseVNode("div",{ref:"collapseItemRef",class:normalizeClass(n.nsSelect.e("selected-item"))},[createVNode$1(V,{closable:!1,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",style:normalizeStyle$1(n.collapseTagStyle)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(n.nsSelect.e("tags-text"))}," + "+toDisplayString(n.states.selected.length-n.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:withCtx(()=>[createBaseVNode("div",{ref:"tagMenuRef",class:normalizeClass(n.nsSelect.e("selection"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.collapseTagList,_e=>(openBlock(),createElementBlock("div",{key:n.getValueKey(_e),class:normalizeClass(n.nsSelect.e("selected-item"))},[createVNode$1(V,{class:"in-tooltip",closable:!n.selectDisabled&&!_e.isDisabled,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",onClose:Ce=>n.deleteTag(Ce,_e)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(n.nsSelect.e("tags-text"))},[renderSlot(n.$slots,"label",{index:_e.index,label:_e.currentLabel,value:_e.value},()=>[createTextVNode(toDisplayString(_e.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported","popper-options"])):createCommentVNode("v-if",!0)]):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([n.nsSelect.e("selected-item"),n.nsSelect.e("input-wrapper"),n.nsSelect.is("hidden",!n.filterable||n.selectDisabled)])},[withDirectives(createBaseVNode("input",{id:n.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=_e=>n.states.inputValue=_e),type:"text",name:n.name,class:normalizeClass([n.nsSelect.e("input"),n.nsSelect.is(n.selectSize)]),disabled:n.selectDisabled,autocomplete:n.autocomplete,style:normalizeStyle$1(n.inputStyle),tabindex:n.tabindex,role:"combobox",readonly:!n.filterable,spellcheck:"false","aria-activedescendant":((pe=n.hoverOption)==null?void 0:pe.id)||"","aria-controls":n.contentId,"aria-expanded":n.dropdownMenuVisible,"aria-label":n.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[1]||(t[1]=(..._e)=>n.handleKeydown&&n.handleKeydown(..._e)),onCompositionstart:t[2]||(t[2]=(..._e)=>n.handleCompositionStart&&n.handleCompositionStart(..._e)),onCompositionupdate:t[3]||(t[3]=(..._e)=>n.handleCompositionUpdate&&n.handleCompositionUpdate(..._e)),onCompositionend:t[4]||(t[4]=(..._e)=>n.handleCompositionEnd&&n.handleCompositionEnd(..._e)),onInput:t[5]||(t[5]=(..._e)=>n.onInput&&n.onInput(..._e)),onClick:t[6]||(t[6]=withModifiers((..._e)=>n.toggleMenu&&n.toggleMenu(..._e),["stop"]))},null,46,_hoisted_1$1u),[[vModelText,n.states.inputValue]]),n.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass(n.nsSelect.e("input-calculator")),textContent:toDisplayString(n.states.inputValue)},null,10,_hoisted_2$V)):createCommentVNode("v-if",!0)],2),n.shouldShowPlaceholder?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([n.nsSelect.e("selected-item"),n.nsSelect.e("placeholder"),n.nsSelect.is("transparent",!n.hasModelValue||n.expanded&&!n.states.inputValue)])},[n.hasModelValue?renderSlot(n.$slots,"label",{key:0,index:n.getOption(n.modelValue).index,label:n.currentPlaceholder,value:n.modelValue},()=>[createBaseVNode("span",null,toDisplayString(n.currentPlaceholder),1)]):(openBlock(),createElementBlock("span",_hoisted_3$p,toDisplayString(n.currentPlaceholder),1))],2)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{ref:"suffixRef",class:normalizeClass(n.nsSelect.e("suffix"))},[n.iconComponent&&!n.showClearBtn?(openBlock(),createBlock(ie,{key:0,class:normalizeClass([n.nsSelect.e("caret"),n.nsSelect.e("icon"),n.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),n.showClearBtn&&n.clearIcon?(openBlock(),createBlock(ie,{key:1,class:normalizeClass([n.nsSelect.e("caret"),n.nsSelect.e("icon"),n.nsSelect.e("clear")]),onClick:n.handleClearClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),n.validateState&&n.validateIcon&&n.needStatusIcon?(openBlock(),createBlock(ie,{key:2,class:normalizeClass([n.nsInput.e("icon"),n.nsInput.e("validateIcon"),n.nsInput.is("loading",n.validateState==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)]}),content:withCtx(()=>[createVNode$1(de,{ref:"menuRef"},{default:withCtx(()=>[n.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(n.nsSelect.be("dropdown","header")),onClick:t[8]||(t[8]=withModifiers(()=>{},["stop"]))},[renderSlot(n.$slots,"header")],2)):createCommentVNode("v-if",!0),withDirectives(createVNode$1(ue,{id:n.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":n.nsSelect.be("dropdown","wrap"),"view-class":n.nsSelect.be("dropdown","list"),class:normalizeClass([n.nsSelect.is("empty",n.filteredOptionsCount===0)]),role:"listbox","aria-label":n.ariaLabel,"aria-orientation":"vertical",onScroll:n.popupScroll},{default:withCtx(()=>[n.showNewOption?(openBlock(),createBlock(ae,{key:0,value:n.states.inputValue,created:!0},null,8,["value"])):createCommentVNode("v-if",!0),createVNode$1(le,null,{default:withCtx(()=>[renderSlot(n.$slots,"default",{},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.options,(pe,_e)=>{var Ce;return openBlock(),createElementBlock(Fragment,{key:_e},[(Ce=n.getOptions(pe))!=null&&Ce.length?(openBlock(),createBlock(oe,{key:0,label:n.getLabel(pe),disabled:n.getDisabled(pe)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.getOptions(pe),xe=>(openBlock(),createBlock(ae,mergeProps({key:n.getValue(xe)},{ref_for:!0},n.getOptionProps(xe)),null,16))),128))]),_:2},1032,["label","disabled"])):(openBlock(),createBlock(ae,mergeProps({key:1,ref_for:!0},n.getOptionProps(pe)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[vShow,n.states.options.size>0&&!n.loading]]),n.$slots.loading&&n.loading?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(n.nsSelect.be("dropdown","loading"))},[renderSlot(n.$slots,"loading")],2)):n.loading||n.filteredOptionsCount===0?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(n.nsSelect.be("dropdown","empty"))},[renderSlot(n.$slots,"empty",{},()=>[createBaseVNode("span",null,toDisplayString(n.emptyText),1)])],2)):createCommentVNode("v-if",!0),n.$slots.footer?(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(n.nsSelect.be("dropdown","footer")),onClick:t[9]||(t[9]=withModifiers(()=>{},["stop"]))},[renderSlot(n.$slots,"footer")],2)):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"])],16)),[[he,n.handleClickOutside,n.popperRef]])}var Select$1=_export_sfc(_sfc_main$2y,[["render",_sfc_render$h],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const ElSelect=withInstall(Select$1,{Option,OptionGroup}),ElOption=withNoopInstall(Option),ElOptionGroup=withNoopInstall(OptionGroup),selectControllerProps=buildProps({date:{type:definePropType(Object),required:!0},formatter:{type:definePropType(Function)}}),selectControllerEmits={"date-change":n=>isObject$6(n)||isString$2(n)},_sfc_main$2x=defineComponent({name:"SelectController",__name:"select-controller",props:selectControllerProps,emits:selectControllerEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("calendar-select"),{t:$,lang:V}=useLocale(),re=Array.from({length:12},(he,pe)=>{const _e=pe+1,Ce=isFunction$4(r.formatter)?r.formatter(_e,"month"):_e;return{value:_e,label:Ce}}),ie=computed(()=>r.date.year()),ae=computed(()=>r.date.month()+1),oe=computed(()=>{const he=[];for(let pe=-10;pe<10;pe++){const _e=ie.value+pe;if(_e>0){const Ce=isFunction$4(r.formatter)?r.formatter(_e,"year"):_e;he.push({value:_e,label:Ce})}}return he}),le=he=>{i("date-change",dayjs(new Date(he,ae.value-1,1)).locale(V.value))},ue=he=>{i("date-change",dayjs(new Date(ie.value,he-1,1)).locale(V.value))},de=()=>{i("date-change","today")};return(he,pe)=>(openBlock(),createElementBlock(Fragment,null,[createVNode$1(unref(ElSelect),{"model-value":ie.value,size:"small",class:normalizeClass(unref(g).e("year")),"validate-event":!1,options:oe.value,onChange:le},null,8,["model-value","class","options"]),createVNode$1(unref(ElSelect),{"model-value":ae.value,size:"small",class:normalizeClass(unref(g).e("month")),"validate-event":!1,options:unref(re),onChange:ue},null,8,["model-value","class","options"]),createVNode$1(unref(ElButton),{size:"small",onClick:de},{default:withCtx(()=>[createTextVNode(toDisplayString(unref($)("el.datepicker.today")),1)]),_:1})],64))}});var SelectController=_export_sfc(_sfc_main$2x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/select-controller.vue"]]);const COMPONENT_NAME$g="ElCalendar",_sfc_main$2w=defineComponent({name:COMPONENT_NAME$g,__name:"calendar",props:calendarProps,emits:calendarEmits,setup(n,{expose:t,emit:r}){const i=useNamespace("calendar"),g=n,$=r,{calculateValidatedDateRange:V,date:re,pickDay:ie,realSelectedDay:ae,selectDate:oe,validatedRange:le,handleDateChange:ue}=useCalendar(g,$),{t:de}=useLocale(),he=computed(()=>{const pe=`el.datepicker.month${re.value.format("M")}`;return`${re.value.year()} ${de("el.datepicker.year")} ${de(pe)}`});return t({selectedDay:ae,pickDay:ie,selectDate:oe,calculateValidatedDateRange:V}),(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(i).b())},[createBaseVNode("div",{class:normalizeClass(unref(i).e("header"))},[renderSlot(pe.$slots,"header",{date:he.value},()=>[createBaseVNode("div",{class:normalizeClass(unref(i).e("title"))},toDisplayString(he.value),3),unref(le).length===0&&pe.controllerType==="button"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("button-group"))},[createVNode$1(unref(ElButtonGroup$1),null,{default:withCtx(()=>[createVNode$1(unref(ElButton),{size:"small",onClick:_e[0]||(_e[0]=Ce=>unref(oe)("prev-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(de)("el.datepicker.prevMonth")),1)]),_:1}),createVNode$1(unref(ElButton),{size:"small",onClick:_e[1]||(_e[1]=Ce=>unref(oe)("today"))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(de)("el.datepicker.today")),1)]),_:1}),createVNode$1(unref(ElButton),{size:"small",onClick:_e[2]||(_e[2]=Ce=>unref(oe)("next-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(de)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):unref(le).length===0&&pe.controllerType==="select"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(i).e("select-controller"))},[createVNode$1(SelectController,{date:unref(re),formatter:pe.formatter,onDateChange:unref(ue)},null,8,["date","formatter","onDateChange"])],2)):createCommentVNode("v-if",!0)])],2),unref(le).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("body"))},[createVNode$1(DateTable$1,{date:unref(re),"selected-day":unref(ae),onPick:unref(ie)},createSlots({_:2},[pe.$slots["date-cell"]?{name:"date-cell",fn:withCtx(Ce=>[renderSlot(pe.$slots,"date-cell",normalizeProps(guardReactiveProps(Ce)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(i).e("body"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(le),(Ce,xe)=>(openBlock(),createBlock(DateTable$1,{key:xe,date:Ce[0],"selected-day":unref(ae),range:Ce,"hide-header":xe!==0,onPick:unref(ie)},createSlots({_:2},[pe.$slots["date-cell"]?{name:"date-cell",fn:withCtx(Ie=>[renderSlot(pe.$slots,"date-cell",mergeProps({ref_for:!0},Ie))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var Calendar=_export_sfc(_sfc_main$2w,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const ElCalendar=withInstall(Calendar),cardProps=buildProps({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:definePropType([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}}),_sfc_main$2v=defineComponent({name:"ElCard",__name:"card",props:cardProps,setup(n){const t=useGlobalConfig("card"),r=useNamespace("card");return(i,g)=>{var $;return openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).b(),unref(r).is(`${i.shadow||(($=unref(t))==null?void 0:$.shadow)||"always"}-shadow`)])},[i.$slots.header||i.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(r).e("header"),i.headerClass])},[renderSlot(i.$slots,"header",{},()=>[createTextVNode(toDisplayString(i.header),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([unref(r).e("body"),i.bodyClass]),style:normalizeStyle$1(i.bodyStyle)},[renderSlot(i.$slots,"default")],6),i.$slots.footer||i.footer?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(r).e("footer"),i.footerClass])},[renderSlot(i.$slots,"footer",{},()=>[createTextVNode(toDisplayString(i.footer),1)])],2)):createCommentVNode("v-if",!0)],2)}}});var Card=_export_sfc(_sfc_main$2v,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const ElCard=withInstall(Card),carouselProps=buildProps({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),carouselEmits={change:(n,t)=>[n,t].every(isNumber$2)},carouselContextKey=Symbol("carouselContextKey"),CAROUSEL_ITEM_NAME="ElCarouselItem",getOrderedChildren=(n,t,r)=>flattedChildren(n.subTree).filter($=>{var V;return isVNode($)&&((V=$.type)==null?void 0:V.name)===t&&!!$.component}).map($=>$.component.uid).map($=>r[$]).filter($=>!!$),useOrderedChildren=(n,t)=>{const r=shallowRef({}),i=shallowRef([]),g=new WeakMap,$=oe=>{r.value[oe.uid]=oe,triggerRef(r),onMounted(()=>{const le=oe.getVnode().el,ue=le.parentNode;if(!g.has(ue)){g.set(ue,[]);const de=ue.insertBefore.bind(ue);ue.insertBefore=(he,pe)=>(g.get(ue).some(Ce=>he===Ce||pe===Ce)&&triggerRef(r),de(he,pe))}g.get(ue).push(le)})},V=oe=>{delete r.value[oe.uid],triggerRef(r);const le=oe.getVnode().el,ue=le.parentNode,de=g.get(ue),he=de.indexOf(le);de.splice(he,1)},re=()=>{i.value=getOrderedChildren(n,t,r.value)},ie=oe=>oe.render();return{children:i,addChild:$,removeChild:V,ChildrenSorter:defineComponent({setup(oe,{slots:le}){return()=>(re(),le.default?h$1(ie,{render:le.default}):null)}})}},THROTTLE_TIME=300,useCarousel=(n,t,r)=>{const{children:i,addChild:g,removeChild:$,ChildrenSorter:V}=useOrderedChildren(getCurrentInstance(),CAROUSEL_ITEM_NAME),re=useSlots(),ie=ref(-1),ae=ref(null),oe=ref(!1),le=ref(),ue=ref(0),de=ref(!0),he=computed(()=>n.arrow!=="never"&&!unref(Ce)),pe=computed(()=>i.value.some(Sn=>Sn.props.label.toString().length>0)),_e=computed(()=>n.type==="card"),Ce=computed(()=>n.direction==="vertical"),xe=computed(()=>n.height!=="auto"?{height:n.height}:{height:`${ue.value}px`,overflow:"hidden"}),Ie=throttle$3(Sn=>{Fe(Sn)},THROTTLE_TIME,{trailing:!0}),Ne=throttle$3(Sn=>{Lt(Sn)},THROTTLE_TIME),Oe=Sn=>de.value?ie.value<=1?Sn<=1:Sn>1:!0;function $e(){ae.value&&(clearInterval(ae.value),ae.value=null)}function Ve(){n.interval<=0||!n.autoplay||ae.value||(ae.value=setInterval(()=>Ue(),n.interval))}const Ue=()=>{ie.value$n.props.name===Sn);kn.length>0&&(Sn=i.value.indexOf(kn[0]))}if(Sn=Number(Sn),Number.isNaN(Sn)||Sn!==Math.floor(Sn))return;const Tn=i.value.length,En=ie.value;Sn<0?ie.value=n.loop?Tn-1:0:Sn>=Tn?ie.value=n.loop?0:Tn-1:ie.value=Sn,En===ie.value&&ze(En),vn()}function ze(Sn){i.value.forEach((Tn,En)=>{Tn.translateItem(En,ie.value,Sn)})}function Pt(Sn,Tn){var En,kn,$n,An;const xn=unref(i),Ln=xn.length;if(Ln===0||!Sn.states.inStage)return!1;const Nn=Tn+1,Pn=Tn-1,On=Ln-1,Hn=xn[On].states.active,Xn=xn[0].states.active,In=(kn=(En=xn[Nn])==null?void 0:En.states)==null?void 0:kn.active,or=(An=($n=xn[Pn])==null?void 0:$n.states)==null?void 0:An.active;return Tn===On&&Xn||In?"left":Tn===0&&Hn||or?"right":!1}function qe(){oe.value=!0,n.pauseOnHover&&$e()}function Et(){oe.value=!1,Ve()}function kt(Sn){unref(Ce)||i.value.forEach((Tn,En)=>{Sn===Pt(Tn,En)&&(Tn.states.hover=!0)})}function At(){unref(Ce)||i.value.forEach(Sn=>{Sn.states.hover=!1})}function Dt(Sn){ie.value=Sn}function Lt(Sn){n.trigger==="hover"&&Sn!==ie.value&&(ie.value=Sn)}function jt(){Fe(ie.value-1)}function hn(){Fe(ie.value+1)}function vn(){$e(),n.pauseOnHover||Ve()}function _n(Sn){n.height==="auto"&&(ue.value=Sn)}function wn(){var Sn;const Tn=(Sn=re.default)==null?void 0:Sn.call(re);if(!Tn)return null;const kn=flattedChildren(Tn).filter($n=>isVNode($n)&&$n.type.name===CAROUSEL_ITEM_NAME);return(kn==null?void 0:kn.length)===2&&n.loop&&!_e.value?(de.value=!0,kn):(de.value=!1,null)}watch(()=>ie.value,(Sn,Tn)=>{ze(Tn),de.value&&(Sn=Sn%2,Tn=Tn%2),Tn>-1&&t(CHANGE_EVENT,Sn,Tn)});const bn=computed({get:()=>de.value?ie.value%2:ie.value,set:Sn=>ie.value=Sn});watch(()=>n.autoplay,Sn=>{Sn?Ve():$e()}),watch(()=>n.loop,()=>{Fe(ie.value)}),watch(()=>n.interval,()=>{vn()});const Cn=shallowRef();return onMounted(()=>{watch(()=>i.value,()=>{i.value.length>0&&Fe(n.initialIndex)},{immediate:!0}),Cn.value=useResizeObserver(le.value,()=>{ze()}),Ve()}),onBeforeUnmount(()=>{$e(),le.value&&Cn.value&&Cn.value.stop()}),provide(carouselContextKey,{root:le,isCardType:_e,isVertical:Ce,items:i,loop:n.loop,cardScale:n.cardScale,addItem:g,removeItem:$,setActiveItem:Fe,setContainerHeight:_n}),{root:le,activeIndex:ie,exposeActiveIndex:bn,arrowDisplay:he,hasLabel:pe,hover:oe,isCardType:_e,items:i,isVertical:Ce,containerStyle:xe,isItemsTwoLength:de,handleButtonEnter:kt,handleButtonLeave:At,handleIndicatorClick:Dt,handleMouseEnter:qe,handleMouseLeave:Et,setActiveItem:Fe,prev:jt,next:hn,PlaceholderItem:wn,isTwoLengthShow:Oe,ItemsSorter:V,throttledArrowClick:Ie,throttledIndicatorHover:Ne}},_hoisted_1$1t=["aria-label"],_hoisted_2$U=["aria-label"],_hoisted_3$o=["onMouseenter","onClick"],_hoisted_4$i=["aria-label"],_hoisted_5$a={key:0},_hoisted_6$4={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},COMPONENT_NAME$f="ElCarousel",_sfc_main$2u=defineComponent({name:COMPONENT_NAME$f,__name:"carousel",props:carouselProps,emits:carouselEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{root:$,activeIndex:V,exposeActiveIndex:re,arrowDisplay:ie,hasLabel:ae,hover:oe,isCardType:le,items:ue,isVertical:de,containerStyle:he,handleButtonEnter:pe,handleButtonLeave:_e,handleIndicatorClick:Ce,handleMouseEnter:xe,handleMouseLeave:Ie,setActiveItem:Ne,prev:Oe,next:$e,PlaceholderItem:Ve,isTwoLengthShow:Ue,ItemsSorter:Fe,throttledArrowClick:ze,throttledIndicatorHover:Pt}=useCarousel(i,g),qe=useNamespace("carousel"),{t:Et}=useLocale(),kt=computed(()=>{const jt=[qe.b(),qe.m(i.direction)];return unref(le)&&jt.push(qe.m("card")),jt}),At=computed(()=>{const jt=[qe.e("indicators"),qe.em("indicators",i.direction)];return unref(ae)&&jt.push(qe.em("indicators","labels")),i.indicatorPosition==="outside"&&jt.push(qe.em("indicators","outside")),unref(de)&&jt.push(qe.em("indicators","right")),jt});function Dt(jt){if(!i.motionBlur)return;const hn=unref(de)?`${qe.namespace.value}-transitioning-vertical`:`${qe.namespace.value}-transitioning`;jt.currentTarget.classList.add(hn)}function Lt(jt){if(!i.motionBlur)return;const hn=unref(de)?`${qe.namespace.value}-transitioning-vertical`:`${qe.namespace.value}-transitioning`;jt.currentTarget.classList.remove(hn)}return t({activeIndex:re,setActiveItem:Ne,prev:Oe,next:$e}),(jt,hn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:$,class:normalizeClass(kt.value),onMouseenter:hn[6]||(hn[6]=withModifiers((...vn)=>unref(xe)&&unref(xe)(...vn),["stop"])),onMouseleave:hn[7]||(hn[7]=withModifiers((...vn)=>unref(Ie)&&unref(Ie)(...vn),["stop"]))},[unref(ie)?(openBlock(),createBlock(Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(qe).e("arrow"),unref(qe).em("arrow","left")]),"aria-label":unref(Et)("el.carousel.leftArrow"),onMouseenter:hn[0]||(hn[0]=vn=>unref(pe)("left")),onMouseleave:hn[1]||(hn[1]=(...vn)=>unref(_e)&&unref(_e)(...vn)),onClick:hn[2]||(hn[2]=withModifiers(vn=>unref(ze)(unref(V)-1),["stop"]))},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_left_default))]),_:1})],42,_hoisted_1$1t),[[vShow,(jt.arrow==="always"||unref(oe))&&(jt.loop||unref(V)>0)]])]),_:1})):createCommentVNode("v-if",!0),unref(ie)?(openBlock(),createBlock(Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(qe).e("arrow"),unref(qe).em("arrow","right")]),"aria-label":unref(Et)("el.carousel.rightArrow"),onMouseenter:hn[3]||(hn[3]=vn=>unref(pe)("right")),onMouseleave:hn[4]||(hn[4]=(...vn)=>unref(_e)&&unref(_e)(...vn)),onClick:hn[5]||(hn[5]=withModifiers(vn=>unref(ze)(unref(V)+1),["stop"]))},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})],42,_hoisted_2$U),[[vShow,(jt.arrow==="always"||unref(oe))&&(jt.loop||unref(V)[jt.indicatorPosition!=="none"?(openBlock(),createElementBlock("ul",{key:0,class:normalizeClass(At.value)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ue),(vn,_n)=>withDirectives((openBlock(),createElementBlock("li",{key:_n,class:normalizeClass([unref(qe).e("indicator"),unref(qe).em("indicator",jt.direction),unref(qe).is("active",_n===unref(V))]),onMouseenter:wn=>unref(Pt)(_n),onClick:withModifiers(wn=>unref(Ce)(_n),["stop"])},[createBaseVNode("button",{class:normalizeClass(unref(qe).e("button")),"aria-label":unref(Et)("el.carousel.indicator",{index:_n+1})},[unref(ae)?(openBlock(),createElementBlock("span",_hoisted_5$a,toDisplayString(vn.props.label),1)):createCommentVNode("v-if",!0)],10,_hoisted_4$i)],42,_hoisted_3$o)),[[vShow,unref(Ue)(_n)]])),128))],2)):createCommentVNode("v-if",!0)]),_:1}),jt.motionBlur?(openBlock(),createElementBlock("svg",_hoisted_6$4,[...hn[8]||(hn[8]=[createBaseVNode("defs",null,[createBaseVNode("filter",{id:"elCarouselHorizontal"},[createBaseVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),createBaseVNode("filter",{id:"elCarouselVertical"},[createBaseVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):createCommentVNode("v-if",!0)],34))}});var Carousel=_export_sfc(_sfc_main$2u,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const carouselItemProps=buildProps({name:{type:String,default:""},label:{type:[String,Number],default:""}}),useCarouselItem=n=>{const t=inject(carouselContextKey),r=getCurrentInstance(),i=ref(),g=ref(!1),$=ref(0),V=ref(1),re=ref(!1),ie=ref(!1),ae=ref(!1),oe=ref(!1),{isCardType:le,isVertical:ue,cardScale:de}=t;function he(Ne,Oe,$e){const Ve=$e-1,Ue=Oe-1,Fe=Oe+1,ze=$e/2;return Oe===0&&Ne===Ve?-1:Oe===Ve&&Ne===0?$e:Ne=ze?$e+1:Ne>Fe&&Ne-Oe>=ze?-2:Ne}function pe(Ne,Oe){var $e,Ve;const Ue=unref(ue)?(($e=t.root.value)==null?void 0:$e.offsetHeight)||0:((Ve=t.root.value)==null?void 0:Ve.offsetWidth)||0;return ae.value?Ue*((2-de)*(Ne-Oe)+1)/4:Ne{var Ve;const Ue=unref(le),Fe=(Ve=t.items.value.length)!=null?Ve:Number.NaN,ze=Ne===Oe;!Ue&&!isUndefined$1($e)&&(oe.value=ze||Ne===$e),!ze&&Fe>2&&t.loop&&(Ne=he(Ne,Oe,Fe));const Pt=unref(ue);re.value=ze,Ue?(ae.value=Math.round(Math.abs(Ne-Oe))<=1,$.value=pe(Ne,Oe),V.value=unref(re)?1:de):$.value=_e(Ne,Oe,Pt),ie.value=!0,ze&&i.value&&t.setContainerHeight(i.value.offsetHeight)};function xe(){if(t&&unref(le)){const Ne=t.items.value.findIndex(({uid:Oe})=>Oe===r.uid);t.setActiveItem(Ne)}}const Ie={props:n,states:reactive({hover:g,translate:$,scale:V,active:re,ready:ie,inStage:ae,animating:oe}),uid:r.uid,getVnode:()=>r.vnode,translateItem:Ce};return t.addItem(Ie),onBeforeUnmount(()=>{t.removeItem(Ie)}),{carouselItemRef:i,active:re,animating:oe,hover:g,inStage:ae,isVertical:ue,translate:$,isCardType:le,scale:V,ready:ie,handleItemClick:xe}},_sfc_main$2t=defineComponent({name:CAROUSEL_ITEM_NAME,__name:"carousel-item",props:carouselItemProps,setup(n){const t=n,r=useNamespace("carousel"),{carouselItemRef:i,active:g,animating:$,hover:V,inStage:re,isVertical:ie,translate:ae,isCardType:oe,scale:le,ready:ue,handleItemClick:de}=useCarouselItem(t),he=computed(()=>[r.e("item"),r.is("active",g.value),r.is("in-stage",re.value),r.is("hover",V.value),r.is("animating",$.value),{[r.em("item","card")]:oe.value,[r.em("item","card-vertical")]:oe.value&&ie.value}]),pe=computed(()=>{const Ce=`${`translate${unref(ie)?"Y":"X"}`}(${unref(ae)}px)`,xe=`scale(${unref(le)})`;return{transform:[Ce,xe].join(" ")}});return(_e,Ce)=>withDirectives((openBlock(),createElementBlock("div",{ref_key:"carouselItemRef",ref:i,class:normalizeClass(he.value),style:normalizeStyle$1(pe.value),onClick:Ce[0]||(Ce[0]=(...xe)=>unref(de)&&unref(de)(...xe))},[unref(oe)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("mask"))},null,2)),[[vShow,!unref(g)]]):createCommentVNode("v-if",!0),renderSlot(_e.$slots,"default")],6)),[[vShow,unref(ue)]])}});var CarouselItem=_export_sfc(_sfc_main$2t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const ElCarousel=withInstall(Carousel,{CarouselItem}),ElCarouselItem=withNoopInstall(CarouselItem),checkboxProps={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:useSizeProp,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...useAriaProps(["ariaControls"])},checkboxEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n)||isNumber$2(n)||isBoolean$1(n),change:n=>isString$2(n)||isNumber$2(n)||isBoolean$1(n)},checkboxGroupContextKey=Symbol("checkboxGroupContextKey"),useCheckboxDisabled=({model:n,isChecked:t})=>{const r=inject(checkboxGroupContextKey,void 0),i=inject(formContextKey,void 0),g=computed(()=>{var V,re;const ie=(V=r==null?void 0:r.max)==null?void 0:V.value,ae=(re=r==null?void 0:r.min)==null?void 0:re.value;return!isUndefined$1(ie)&&n.value.length>=ie&&!t.value||!isUndefined$1(ae)&&n.value.length<=ae&&t.value});return{isDisabled:useFormDisabled(computed(()=>{var V,re;return r===void 0?(V=i==null?void 0:i.disabled)!=null?V:g.value:((re=r.disabled)==null?void 0:re.value)||g.value})),isLimitDisabled:g}},useCheckboxEvent=(n,{model:t,isLimitExceeded:r,hasOwnLabel:i,isDisabled:g,isLabeledByFormItem:$})=>{const V=inject(checkboxGroupContextKey,void 0),{formItem:re}=useFormItem(),{emit:ie}=getCurrentInstance();function ae(he){var pe,_e,Ce,xe;return[!0,n.trueValue,n.trueLabel].includes(he)?(_e=(pe=n.trueValue)!=null?pe:n.trueLabel)!=null?_e:!0:(xe=(Ce=n.falseValue)!=null?Ce:n.falseLabel)!=null?xe:!1}function oe(he,pe){ie(CHANGE_EVENT,ae(he),pe)}function le(he){if(r.value)return;const pe=he.target;ie(CHANGE_EVENT,ae(pe.checked),he)}async function ue(he){r.value||!i.value&&!g.value&&$.value&&(he.composedPath().some(Ce=>Ce.tagName==="LABEL")||(t.value=ae([!1,n.falseValue,n.falseLabel].includes(t.value)),await nextTick(),oe(t.value,he)))}const de=computed(()=>(V==null?void 0:V.validateEvent)||n.validateEvent);return watch(()=>n.modelValue,()=>{de.value&&(re==null||re.validate("change").catch(he=>void 0))}),{handleChange:le,onClickRoot:ue}},useCheckboxModel=n=>{const t=ref(!1),{emit:r}=getCurrentInstance(),i=inject(checkboxGroupContextKey,void 0),g=computed(()=>isUndefined$1(i)===!1),$=ref(!1),V=computed({get(){var re,ie;return g.value?(re=i==null?void 0:i.modelValue)==null?void 0:re.value:(ie=n.modelValue)!=null?ie:t.value},set(re){var ie,ae;g.value&&isArray$5(re)?($.value=((ie=i==null?void 0:i.max)==null?void 0:ie.value)!==void 0&&re.length>(i==null?void 0:i.max.value)&&re.length>V.value.length,$.value===!1&&((ae=i==null?void 0:i.changeEvent)==null||ae.call(i,re))):(r(UPDATE_MODEL_EVENT,re),t.value=re)}});return{model:V,isGroup:g,isLimitExceeded:$}},useCheckboxStatus=(n,t,{model:r})=>{const i=inject(checkboxGroupContextKey,void 0),g=ref(!1),$=computed(()=>isPropAbsent(n.value)?n.label:n.value),V=computed(()=>{const oe=r.value;return isBoolean$1(oe)?oe:isArray$5(oe)?isObject$6($.value)?oe.map(toRaw).some(le=>isEqual$1(le,$.value)):oe.map(toRaw).includes($.value):oe!=null?oe===n.trueValue||oe===n.trueLabel:!!oe}),re=useFormSize(computed(()=>{var oe;return(oe=i==null?void 0:i.size)==null?void 0:oe.value}),{prop:!0}),ie=useFormSize(computed(()=>{var oe;return(oe=i==null?void 0:i.size)==null?void 0:oe.value})),ae=computed(()=>!!t.default||!isPropAbsent($.value));return{checkboxButtonSize:re,isChecked:V,isFocused:g,checkboxSize:ie,hasOwnLabel:ae,actualValue:$}},useCheckbox=(n,t)=>{const{formItem:r}=useFormItem(),{model:i,isGroup:g,isLimitExceeded:$}=useCheckboxModel(n),{isFocused:V,isChecked:re,checkboxButtonSize:ie,checkboxSize:ae,hasOwnLabel:oe,actualValue:le}=useCheckboxStatus(n,t,{model:i}),{isDisabled:ue}=useCheckboxDisabled({model:i,isChecked:re}),{inputId:de,isLabeledByFormItem:he}=useFormItemInputId(n,{formItemContext:r,disableIdGeneration:oe,disableIdManagement:g}),{handleChange:pe,onClickRoot:_e}=useCheckboxEvent(n,{model:i,isLimitExceeded:$,hasOwnLabel:oe,isDisabled:ue,isLabeledByFormItem:he});return(()=>{function xe(){var Ie,Ne;isArray$5(i.value)&&!i.value.includes(le.value)?i.value.push(le.value):i.value=(Ne=(Ie=n.trueValue)!=null?Ie:n.trueLabel)!=null?Ne:!0}n.checked&&xe()})(),useDeprecated({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},computed(()=>g.value&&isPropAbsent(n.value))),useDeprecated({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},computed(()=>!!n.trueLabel)),useDeprecated({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},computed(()=>!!n.falseLabel)),{inputId:de,isLabeledByFormItem:he,isChecked:re,isDisabled:ue,isFocused:V,checkboxButtonSize:ie,checkboxSize:ae,hasOwnLabel:oe,model:i,actualValue:le,handleChange:pe,onClickRoot:_e}},_hoisted_1$1s=["id","indeterminate","name","tabindex","disabled"],_sfc_main$2s=defineComponent({name:"ElCheckbox",__name:"checkbox",props:checkboxProps,emits:checkboxEmits,setup(n){const t=n,r=useSlots(),{inputId:i,isLabeledByFormItem:g,isChecked:$,isDisabled:V,isFocused:re,checkboxSize:ie,hasOwnLabel:ae,model:oe,actualValue:le,handleChange:ue,onClickRoot:de}=useCheckbox(t,r),he=computed(()=>{var xe,Ie,Ne,Oe;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(Ie=(xe=t.trueValue)!=null?xe:t.trueLabel)!=null?Ie:!0,"false-value":(Oe=(Ne=t.falseValue)!=null?Ne:t.falseLabel)!=null?Oe:!1}:{value:le.value}}),pe=useNamespace("checkbox"),_e=computed(()=>[pe.b(),pe.m(ie.value),pe.is("disabled",V.value),pe.is("bordered",t.border),pe.is("checked",$.value)]),Ce=computed(()=>[pe.e("input"),pe.is("disabled",V.value),pe.is("checked",$.value),pe.is("indeterminate",t.indeterminate),pe.is("focus",re.value)]);return(xe,Ie)=>(openBlock(),createBlock(resolveDynamicComponent(!unref(ae)&&unref(g)?"span":"label"),{for:!unref(ae)&&unref(g)?null:unref(i),class:normalizeClass(_e.value),"aria-controls":xe.indeterminate?xe.ariaControls:null,"aria-checked":xe.indeterminate?"mixed":void 0,"aria-label":xe.ariaLabel,onClick:unref(de)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(Ce.value)},[withDirectives(createBaseVNode("input",mergeProps({id:unref(i),"onUpdate:modelValue":Ie[0]||(Ie[0]=Ne=>isRef(oe)?oe.value=Ne:null),class:unref(pe).e("original"),type:"checkbox",indeterminate:xe.indeterminate,name:xe.name,tabindex:xe.tabindex,disabled:unref(V)},he.value,{onChange:Ie[1]||(Ie[1]=(...Ne)=>unref(ue)&&unref(ue)(...Ne)),onFocus:Ie[2]||(Ie[2]=Ne=>re.value=!0),onBlur:Ie[3]||(Ie[3]=Ne=>re.value=!1),onClick:Ie[4]||(Ie[4]=withModifiers(()=>{},["stop"]))}),null,16,_hoisted_1$1s),[[vModelCheckbox,unref(oe)]]),createBaseVNode("span",{class:normalizeClass(unref(pe).e("inner"))},null,2)],2),unref(ae)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(pe).e("label"))},[renderSlot(xe.$slots,"default"),xe.$slots.default?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(xe.label),1)],64))],2)):createCommentVNode("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}});var Checkbox=_export_sfc(_sfc_main$2s,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const _hoisted_1$1r=["name","tabindex","disabled"],_sfc_main$2r=defineComponent({name:"ElCheckboxButton",__name:"checkbox-button",props:checkboxProps,emits:checkboxEmits,setup(n){const t=n,r=useSlots(),{isFocused:i,isChecked:g,isDisabled:$,checkboxButtonSize:V,model:re,actualValue:ie,handleChange:ae}=useCheckbox(t,r),oe=computed(()=>{var pe,_e,Ce,xe;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(_e=(pe=t.trueValue)!=null?pe:t.trueLabel)!=null?_e:!0,"false-value":(xe=(Ce=t.falseValue)!=null?Ce:t.falseLabel)!=null?xe:!1}:{value:ie.value}}),le=inject(checkboxGroupContextKey,void 0),ue=useNamespace("checkbox"),de=computed(()=>{var pe,_e,Ce,xe;const Ie=(_e=(pe=le==null?void 0:le.fill)==null?void 0:pe.value)!=null?_e:"";return{backgroundColor:Ie,borderColor:Ie,color:(xe=(Ce=le==null?void 0:le.textColor)==null?void 0:Ce.value)!=null?xe:"",boxShadow:Ie?`-1px 0 0 0 ${Ie}`:void 0}}),he=computed(()=>[ue.b("button"),ue.bm("button",V.value),ue.is("disabled",$.value),ue.is("checked",g.value),ue.is("focus",i.value)]);return(pe,_e)=>(openBlock(),createElementBlock("label",{class:normalizeClass(he.value)},[withDirectives(createBaseVNode("input",mergeProps({"onUpdate:modelValue":_e[0]||(_e[0]=Ce=>isRef(re)?re.value=Ce:null),class:unref(ue).be("button","original"),type:"checkbox",name:pe.name,tabindex:pe.tabindex,disabled:unref($)},oe.value,{onChange:_e[1]||(_e[1]=(...Ce)=>unref(ae)&&unref(ae)(...Ce)),onFocus:_e[2]||(_e[2]=Ce=>i.value=!0),onBlur:_e[3]||(_e[3]=Ce=>i.value=!1),onClick:_e[4]||(_e[4]=withModifiers(()=>{},["stop"]))}),null,16,_hoisted_1$1r),[[vModelCheckbox,unref(re)]]),pe.$slots.default||pe.label?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ue).be("button","inner")),style:normalizeStyle$1(unref(g)?de.value:void 0)},[renderSlot(pe.$slots,"default",{},()=>[createTextVNode(toDisplayString(pe.label),1)])],6)):createCommentVNode("v-if",!0)],2))}});var CheckboxButton=_export_sfc(_sfc_main$2r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const checkboxGroupProps=buildProps({modelValue:{type:definePropType(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:useSizeProp,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:definePropType(Array)},props:{type:definePropType(Object),default:()=>checkboxDefaultProps},type:{type:String,values:["checkbox","button"],default:"checkbox"},...useAriaProps(["ariaLabel"])}),checkboxGroupEmits={[UPDATE_MODEL_EVENT]:n=>isArray$5(n),change:n=>isArray$5(n)},checkboxDefaultProps={label:"label",value:"value",disabled:"disabled"},_sfc_main$2q=defineComponent({name:"ElCheckboxGroup",__name:"checkbox-group",props:checkboxGroupProps,emits:checkboxGroupEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("checkbox"),$=useFormDisabled(),{formItem:V}=useFormItem(),{inputId:re,isLabeledByFormItem:ie}=useFormItemInputId(r,{formItemContext:V}),ae=async he=>{i(UPDATE_MODEL_EVENT,he),await nextTick(),i(CHANGE_EVENT,he)},oe=computed({get(){return r.modelValue},set(he){ae(he)}}),le=computed(()=>({...checkboxDefaultProps,...r.props})),ue=he=>{const{label:pe,value:_e,disabled:Ce}=le.value,xe={label:he[pe],value:he[_e],disabled:he[Ce]};return{...omit$1(he,[pe,_e,Ce]),...xe}},de=computed(()=>r.type==="button"?CheckboxButton:Checkbox);return provide(checkboxGroupContextKey,{...pick$1(toRefs(r),["size","min","max","validateEvent","fill","textColor"]),disabled:$,modelValue:oe,changeEvent:ae}),watch(()=>r.modelValue,(he,pe)=>{r.validateEvent&&!isEqual$1(he,pe)&&(V==null||V.validate("change").catch(_e=>void 0))}),(he,pe)=>{var _e;return openBlock(),createBlock(resolveDynamicComponent(he.tag),{id:unref(re),class:normalizeClass(unref(g).b("group")),role:"group","aria-label":unref(ie)?void 0:he.ariaLabel||"checkbox-group","aria-labelledby":unref(ie)?(_e=unref(V))==null?void 0:_e.labelId:void 0},{default:withCtx(()=>[renderSlot(he.$slots,"default",{},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(he.options,(Ce,xe)=>(openBlock(),createBlock(resolveDynamicComponent(de.value),mergeProps({key:xe},{ref_for:!0},ue(Ce)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var CheckboxGroup=_export_sfc(_sfc_main$2q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const ElCheckbox=withInstall(Checkbox,{CheckboxButton,CheckboxGroup}),ElCheckboxButton=withNoopInstall(CheckboxButton),ElCheckboxGroup=withNoopInstall(CheckboxGroup),radioPropsBase=buildProps({modelValue:{type:[String,Number,Boolean],default:void 0},size:useSizeProp,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),radioProps=buildProps({...radioPropsBase,border:Boolean}),radioEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n)||isNumber$2(n)||isBoolean$1(n),[CHANGE_EVENT]:n=>isString$2(n)||isNumber$2(n)||isBoolean$1(n)},radioGroupKey=Symbol("radioGroupKey"),useRadio=(n,t)=>{const r=ref(),i=inject(radioGroupKey,void 0),g=computed(()=>!!i),$=computed(()=>isPropAbsent(n.value)?n.label:n.value),V=computed({get(){return g.value?i.modelValue:n.modelValue},set(le){g.value?i.changeEvent(le):t&&t(UPDATE_MODEL_EVENT,le),r.value.checked=n.modelValue===$.value}}),re=useFormSize(computed(()=>i==null?void 0:i.size)),ie=useFormDisabled(computed(()=>i==null?void 0:i.disabled)),ae=ref(!1),oe=computed(()=>ie.value||g.value&&V.value!==$.value?-1:0);return useDeprecated({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},computed(()=>g.value&&isPropAbsent(n.value))),{radioRef:r,isGroup:g,radioGroup:i,focus:ae,size:re,disabled:ie,tabIndex:oe,modelValue:V,actualValue:$}},_hoisted_1$1q=["value","name","disabled","checked"],_sfc_main$2p=defineComponent({name:"ElRadio",__name:"radio",props:radioProps,emits:radioEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("radio"),{radioRef:$,radioGroup:V,focus:re,size:ie,disabled:ae,modelValue:oe,actualValue:le}=useRadio(r,i);function ue(){nextTick(()=>i(CHANGE_EVENT,oe.value))}return(de,he)=>{var pe;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(g).b(),unref(g).is("disabled",unref(ae)),unref(g).is("focus",unref(re)),unref(g).is("bordered",de.border),unref(g).is("checked",unref(oe)===unref(le)),unref(g).m(unref(ie))])},[createBaseVNode("span",{class:normalizeClass([unref(g).e("input"),unref(g).is("disabled",unref(ae)),unref(g).is("checked",unref(oe)===unref(le))])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:$,"onUpdate:modelValue":he[0]||(he[0]=_e=>isRef(oe)?oe.value=_e:null),class:normalizeClass(unref(g).e("original")),value:unref(le),name:de.name||((pe=unref(V))==null?void 0:pe.name),disabled:unref(ae),checked:unref(oe)===unref(le),type:"radio",onFocus:he[1]||(he[1]=_e=>re.value=!0),onBlur:he[2]||(he[2]=_e=>re.value=!1),onChange:ue,onClick:he[3]||(he[3]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_1$1q),[[vModelRadio,unref(oe)]]),createBaseVNode("span",{class:normalizeClass(unref(g).e("inner"))},null,2)],2),createBaseVNode("span",{class:normalizeClass(unref(g).e("label")),onKeydown:he[4]||(he[4]=withModifiers(()=>{},["stop"]))},[renderSlot(de.$slots,"default",{},()=>[createTextVNode(toDisplayString(de.label),1)])],34)],2)}}});var Radio=_export_sfc(_sfc_main$2p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const radioButtonProps=buildProps({...radioPropsBase}),_hoisted_1$1p=["value","name","disabled"],_sfc_main$2o=defineComponent({name:"ElRadioButton",__name:"radio-button",props:radioButtonProps,setup(n){const t=n,r=useNamespace("radio"),{radioRef:i,focus:g,size:$,disabled:V,modelValue:re,radioGroup:ie,actualValue:ae}=useRadio(t),oe=computed(()=>({backgroundColor:(ie==null?void 0:ie.fill)||"",borderColor:(ie==null?void 0:ie.fill)||"",boxShadow:ie!=null&&ie.fill?`-1px 0 0 0 ${ie.fill}`:"",color:(ie==null?void 0:ie.textColor)||""}));return(le,ue)=>{var de;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(r).b("button"),unref(r).is("active",unref(re)===unref(ae)),unref(r).is("disabled",unref(V)),unref(r).is("focus",unref(g)),unref(r).bm("button",unref($))])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":ue[0]||(ue[0]=he=>isRef(re)?re.value=he:null),class:normalizeClass(unref(r).be("button","original-radio")),value:unref(ae),type:"radio",name:le.name||((de=unref(ie))==null?void 0:de.name),disabled:unref(V),onFocus:ue[1]||(ue[1]=he=>g.value=!0),onBlur:ue[2]||(ue[2]=he=>g.value=!1),onClick:ue[3]||(ue[3]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_1$1p),[[vModelRadio,unref(re)]]),createBaseVNode("span",{class:normalizeClass(unref(r).be("button","inner")),style:normalizeStyle$1(unref(re)===unref(ae)?oe.value:{}),onKeydown:ue[4]||(ue[4]=withModifiers(()=>{},["stop"]))},[renderSlot(le.$slots,"default",{},()=>[createTextVNode(toDisplayString(le.label),1)])],38)],2)}}});var RadioButton=_export_sfc(_sfc_main$2o,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const radioGroupProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},options:{type:definePropType(Array)},props:{type:definePropType(Object),default:()=>radioDefaultProps},type:{type:String,values:["radio","button"],default:"radio"},...useAriaProps(["ariaLabel"])}),radioGroupEmits=radioEmits,radioDefaultProps={label:"label",value:"value",disabled:"disabled"},_hoisted_1$1o=["id","aria-label","aria-labelledby"],_sfc_main$2n=defineComponent({name:"ElRadioGroup",__name:"radio-group",props:radioGroupProps,emits:radioGroupEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("radio"),$=useId(),V=ref(),{formItem:re}=useFormItem(),{inputId:ie,isLabeledByFormItem:ae}=useFormItemInputId(r,{formItemContext:re}),oe=pe=>{i(UPDATE_MODEL_EVENT,pe),nextTick(()=>i(CHANGE_EVENT,pe))};onMounted(()=>{const pe=V.value.querySelectorAll("[type=radio]"),_e=pe[0];!Array.from(pe).some(Ce=>Ce.checked)&&_e&&(_e.tabIndex=0)});const le=computed(()=>r.name||$.value),ue=computed(()=>({...radioDefaultProps,...r.props})),de=pe=>{const{label:_e,value:Ce,disabled:xe}=ue.value,Ie={label:pe[_e],value:pe[Ce],disabled:pe[xe]};return{...omit$1(pe,[_e,Ce,xe]),...Ie}},he=computed(()=>r.type==="button"?RadioButton:Radio);return provide(radioGroupKey,reactive({...toRefs(r),changeEvent:oe,name:le})),watch(()=>r.modelValue,(pe,_e)=>{r.validateEvent&&!isEqual$1(pe,_e)&&(re==null||re.validate("change").catch(Ce=>void 0))}),(pe,_e)=>(openBlock(),createElementBlock("div",{id:unref(ie),ref_key:"radioGroupRef",ref:V,class:normalizeClass(unref(g).b("group")),role:"radiogroup","aria-label":unref(ae)?void 0:pe.ariaLabel||"radio-group","aria-labelledby":unref(ae)?unref(re).labelId:void 0},[renderSlot(pe.$slots,"default",{},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(pe.options,(Ce,xe)=>(openBlock(),createBlock(resolveDynamicComponent(he.value),mergeProps({key:xe},{ref_for:!0},de(Ce)),null,16))),128))])],10,_hoisted_1$1o))}});var RadioGroup=_export_sfc(_sfc_main$2n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const ElRadio=withInstall(Radio,{RadioButton,RadioGroup}),ElRadioGroup=withNoopInstall(RadioGroup),ElRadioButton=withNoopInstall(RadioButton),CASCADER_PANEL_INJECTION_KEY=Symbol();function isVNodeEmpty(n){return!!(isArray$5(n)?n.every(({type:t})=>t===Comment):(n==null?void 0:n.type)===Comment)}var NodeContent$1=defineComponent({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(n){const t=useNamespace("cascader-node"),{renderLabelFn:r}=inject(CASCADER_PANEL_INJECTION_KEY),{node:i}=n,{data:g,label:$}=i,V=()=>{const re=r==null?void 0:r({node:i,data:g});return isVNodeEmpty(re)?$:re??$};return()=>createVNode$1("span",{class:t.e("label")},[V()])}});const _hoisted_1$1n=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],_sfc_main$2m=defineComponent({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(n,{emit:t}){const r=n,i=t,g=inject(CASCADER_PANEL_INJECTION_KEY),$=useNamespace("cascader-node"),V=computed(()=>g.isHoverMenu),re=computed(()=>g.config.multiple),ie=computed(()=>g.config.checkStrictly),ae=computed(()=>g.config.showPrefix),oe=computed(()=>{var Fe;return(Fe=g.checkedNodes[0])==null?void 0:Fe.uid}),le=computed(()=>r.node.isDisabled),ue=computed(()=>r.node.isLeaf),de=computed(()=>ie.value&&!ue.value||!le.value),he=computed(()=>_e(g.expandingNode)),pe=computed(()=>ie.value&&g.checkedNodes.some(_e)),_e=Fe=>{var ze;const{level:Pt,uid:qe}=r.node;return((ze=Fe==null?void 0:Fe.pathNodes[Pt-1])==null?void 0:ze.uid)===qe},Ce=()=>{he.value||g.expandNode(r.node)},xe=Fe=>{const{node:ze}=r;Fe!==ze.checked&&g.handleCheckChange(ze,Fe)},Ie=()=>{g.lazyLoad(r.node,()=>{ue.value||Ce()})},Ne=Fe=>{V.value&&(Oe(),!ue.value&&i("expand",Fe))},Oe=()=>{const{node:Fe}=r;!de.value||Fe.loading||(Fe.loaded?Ce():Ie())},$e=()=>{ue.value&&!le.value&&!ie.value&&!re.value?Ue(!0):(g.config.checkOnClickNode&&(re.value||ie.value)||ue.value&&g.config.checkOnClickLeaf)&&!le.value?Ve(!r.node.checked):V.value||Oe()},Ve=Fe=>{ie.value?(xe(Fe),r.node.loaded&&Ce()):Ue(Fe)},Ue=Fe=>{r.node.loaded?(xe(Fe),!ie.value&&Ce()):Ie()};return(Fe,ze)=>(openBlock(),createElementBlock("li",{id:`${n.menuId}-${n.node.uid}`,role:"menuitem","aria-haspopup":!ue.value,"aria-owns":ue.value?void 0:n.menuId,"aria-expanded":he.value,tabindex:de.value?-1:void 0,class:normalizeClass([unref($).b(),unref($).is("selectable",ie.value),unref($).is("active",n.node.checked),unref($).is("disabled",!de.value),he.value&&"in-active-path",pe.value&&"in-checked-path"]),onMouseenter:Ne,onFocus:Ne,onClick:$e},[createCommentVNode(" prefix "),re.value&&ae.value?(openBlock(),createBlock(unref(ElCheckbox),{key:0,"model-value":n.node.checked,indeterminate:n.node.indeterminate,disabled:le.value,onClick:ze[0]||(ze[0]=withModifiers(()=>{},["stop"])),"onUpdate:modelValue":Ve},null,8,["model-value","indeterminate","disabled"])):ie.value&&ae.value?(openBlock(),createBlock(unref(ElRadio),{key:1,"model-value":oe.value,label:n.node.uid,disabled:le.value,"onUpdate:modelValue":Ve,onClick:ze[1]||(ze[1]=withModifiers(()=>{},["stop"]))},{default:withCtx(()=>[createCommentVNode(`
- Add an empty element to avoid render label,
- do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
- `),ze[2]||(ze[2]=createBaseVNode("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):ue.value&&n.node.checked?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref($).e("prefix"))},{default:withCtx(()=>[createVNode$1(unref(check_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode$1(unref(NodeContent$1),{node:n.node},null,8,["node"]),createCommentVNode(" postfix "),ue.value?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[n.node.loading?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref($).is("loading"),unref($).e("postfix")])},{default:withCtx(()=>[createVNode$1(unref(loading_default))]),_:1},8,["class"])):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(["arrow-right",unref($).e("postfix")])},{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1},8,["class"]))],64))],42,_hoisted_1$1n))}});var ElCascaderNode=_export_sfc(_sfc_main$2m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const _sfc_main$2l=defineComponent({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(n){const t=n,r=getCurrentInstance(),i=useNamespace("cascader-menu"),{t:g}=useLocale(),$=useId();let V,re;const ie=inject(CASCADER_PANEL_INJECTION_KEY),ae=ref(),oe=computed(()=>!t.nodes.length),le=computed(()=>!ie.initialLoaded),ue=computed(()=>`${$.value}-${t.index}`),de=Ce=>{V=Ce.target},he=Ce=>{var xe;if(!(!ie.isHoverMenu||!V||!ae.value))if(V.contains(Ce.target)){pe();const Ie=r.vnode.el,{left:Ne}=Ie.getBoundingClientRect(),{offsetWidth:Oe,offsetHeight:$e}=Ie,Ve=Ce.clientX-Ne,Ue=V.offsetTop,Fe=Ue+V.offsetHeight,ze=((xe=Ie.querySelector(`.${i.e("wrap")}`))==null?void 0:xe.scrollTop)||0;ae.value.innerHTML=`
-
-
- `}else re||(re=window.setTimeout(_e,ie.config.hoverThreshold))},pe=()=>{re&&(clearTimeout(re),re=void 0)},_e=()=>{ae.value&&(ae.value.innerHTML="",pe())};return(Ce,xe)=>(openBlock(),createBlock(unref(ElScrollbar),{key:ue.value,tag:"ul",role:"menu",class:normalizeClass(unref(i).b()),"wrap-class":unref(i).e("wrap"),"view-class":[unref(i).e("list"),unref(i).is("empty",oe.value)],onMousemove:he,onMouseleave:_e},{default:withCtx(()=>{var Ie;return[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.nodes,Ne=>(openBlock(),createBlock(ElCascaderNode,{key:Ne.uid,node:Ne,"menu-id":ue.value,onExpand:de},null,8,["node","menu-id"]))),128)),le.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("empty-text"))},[createVNode$1(unref(ElIcon),{size:"14",class:normalizeClass(unref(i).is("loading"))},{default:withCtx(()=>[createVNode$1(unref(loading_default))]),_:1},8,["class"]),createTextVNode(" "+toDisplayString(unref(g)("el.cascader.loading")),1)],2)):oe.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(i).e("empty-text"))},[renderSlot(Ce.$slots,"empty",{},()=>[createTextVNode(toDisplayString(unref(g)("el.cascader.noData")),1)])],2)):(Ie=unref(ie))!=null&&Ie.isHoverMenu?(openBlock(),createElementBlock(Fragment,{key:2},[createCommentVNode(" eslint-disable vue/html-self-closing "),(openBlock(),createElementBlock("svg",{ref_key:"hoverZone",ref:ae,class:normalizeClass(unref(i).e("hover-zone"))},null,2))],2112)):createCommentVNode("v-if",!0),createCommentVNode(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}});var ElCascaderMenu=_export_sfc(_sfc_main$2l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let uid=0;const calculatePathNodes=n=>{const t=[n];let{parent:r}=n;for(;r;)t.unshift(r),r=r.parent;return t};let Node$2=class mi{constructor(t,r,i,g=!1){this.data=t,this.config=r,this.parent=i,this.root=g,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:$,label:V,children:re}=r,ie=t[re],ae=calculatePathNodes(this);this.level=g?0:i?i.level+1:1,this.value=t[$],this.label=t[V],this.pathNodes=ae,this.pathValues=ae.map(oe=>oe.value),this.pathLabels=ae.map(oe=>oe.label),this.childrenData=ie,this.children=(ie||[]).map(oe=>new mi(oe,r,this)),this.loaded=!r.lazy||this.isLeaf||!isEmpty(ie),this.text=""}get isDisabled(){const{data:t,parent:r,config:i}=this,{disabled:g,checkStrictly:$}=i;return(isFunction$4(g)?g(t,this):!!t[g])||!$&&!!(r!=null&&r.isDisabled)}get isLeaf(){const{data:t,config:r,childrenData:i,loaded:g}=this,{lazy:$,leaf:V}=r,re=isFunction$4(V)?V(t,this):t[V];return isUndefined$1(re)?$&&!g?!1:!(isArray$5(i)&&i.length):!!re}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:r,children:i}=this,g=new mi(t,this.config,this);return isArray$5(r)?r.push(t):this.childrenData=[t],i.push(g),g}calcText(t,r){const i=t?this.pathLabels.join(r):this.label;return this.text=i,i}broadcast(t){this.children.forEach(r=>{var i;r&&(r.broadcast(t),(i=r.onParentCheck)==null||i.call(r,t))})}emit(){var t;const{parent:r}=this;r&&((t=r.onChildCheck)==null||t.call(r),r.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,r=t.filter(g=>!g.isDisabled),i=r.length?r.every(g=>g.checked):!1;this.setCheckState(i)}setCheckState(t){const r=this.children.length,i=this.children.reduce((g,$)=>{const V=$.checked?1:$.indeterminate?.5:0;return g+V},0);this.checked=this.loaded&&this.children.filter(g=>!g.isDisabled).every(g=>g.loaded&&g.checked)&&t,this.indeterminate=this.loaded&&i!==r&&i>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:r,multiple:i}=this.config;r||!i?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const flatNodes=(n,t)=>n.reduce((r,i)=>(i.isLeaf?r.push(i):(!t&&r.push(i),r=r.concat(flatNodes(i.children,t))),r),[]);class Store{constructor(t,r){this.config=r;const i=(t||[]).map(g=>new Node$2(g,this.config));this.nodes=i,this.allNodes=flatNodes(i,!1),this.leafNodes=flatNodes(i,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,r){const i=r?r.appendChild(t):new Node$2(t,this.config);r||this.nodes.push(i),this.appendAllNodesAndLeafNodes(i)}appendNodes(t,r){t.length>0?t.forEach(i=>this.appendNode(i,r)):r&&r.isLeaf&&this.leafNodes.push(r)}appendAllNodesAndLeafNodes(t){this.allNodes.push(t),t.isLeaf&&this.leafNodes.push(t),t.children&&t.children.forEach(r=>{this.appendAllNodesAndLeafNodes(r)})}getNodeByValue(t,r=!1){return isPropAbsent(t)?null:this.getFlattedNodes(r).find(g=>isEqual$1(g.value,t)||isEqual$1(g.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:i,level:g})=>isEqual$1(t.value,i)&&t.level===g)||null}}const CommonProps=buildProps({modelValue:{type:definePropType([Number,String,Array,Object])},options:{type:definePropType(Array),default:()=>[]},props:{type:definePropType(Object),default:()=>({})}}),DefaultProps={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:NOOP,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},cascaderPanelProps=buildProps({...CommonProps,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),emitChangeFn$2=n=>!0,cascaderPanelEmits={[UPDATE_MODEL_EVENT]:emitChangeFn$2,[CHANGE_EVENT]:emitChangeFn$2,close:()=>!0,"expand-change":n=>n},useCascaderConfig=n=>computed(()=>({...DefaultProps,...n.props})),getMenuIndex=n=>{if(!n)return 0;const t=n.id.split("-");return Number(t[t.length-2])},checkNode=n=>{if(!n)return;const t=n.querySelector("input");t?t.click():isLeaf(n)&&n.click()},sortByOriginalOrder=(n,t)=>{const r=t.slice(0),i=r.map($=>$.uid),g=n.reduce(($,V)=>{const re=i.indexOf(V.uid);return re>-1&&($.push(V),r.splice(re,1),i.splice(re,1)),$},[]);return g.push(...r),g},_sfc_main$2k=defineComponent({name:"ElCascaderPanel",__name:"index",props:cascaderPanelProps,emits:cascaderPanelEmits,setup(n,{expose:t,emit:r}){const i=n,g=r;let $=!1;const V=useNamespace("cascader"),re=useCascaderConfig(i),ie=useSlots();let ae;const oe=ref(!0),le=ref(!1),ue=ref([]),de=ref(),he=ref([]),pe=ref(),_e=ref([]),Ce=computed(()=>re.value.expandTrigger==="hover"),xe=computed(()=>i.renderLabel||ie.default),Ie=()=>{const{options:Lt}=i,jt=re.value;$=!1,ae=new Store(Lt,jt),he.value=[ae.getNodes()],jt.lazy&&isEmpty(i.options)?(oe.value=!1,Ne(void 0,hn=>{hn&&(ae=new Store(hn,jt),he.value=[ae.getNodes()]),oe.value=!0,qe(!1,!0)})):qe(!1,!0)},Ne=(Lt,jt)=>{const hn=re.value;Lt=Lt||new Node$2({},hn,void 0,!0),Lt.loading=!0;const vn=wn=>{const bn=Lt,Cn=bn.root?null:bn;bn.loading=!1,bn.loaded=!0,bn.childrenData=bn.childrenData||[],wn&&(ae==null||ae.appendNodes(wn,Cn)),wn&&(jt==null||jt(wn)),Lt.level===0&&(le.value=!0)},_n=()=>{Lt.loading=!1,Lt.loaded=!1,Lt.level===0&&(oe.value=!0)};hn.lazyLoad(Lt,vn,_n)},Oe=(Lt,jt)=>{var hn;const{level:vn}=Lt,_n=he.value.slice(0,vn);let wn;Lt.isLeaf?wn=Lt.pathNodes[vn-2]:(wn=Lt,_n.push(Lt.children)),((hn=pe.value)==null?void 0:hn.uid)!==(wn==null?void 0:wn.uid)&&(pe.value=Lt,he.value=_n,!jt&&g("expand-change",(Lt==null?void 0:Lt.pathValues)||[]))},$e=(Lt,jt,hn=!0)=>{const{checkStrictly:vn,multiple:_n}=re.value,wn=_e.value[0];$=!0,!_n&&(wn==null||wn.doCheck(!1)),Lt.doCheck(jt),Pt(),hn&&!_n&&!vn&&g("close"),!hn&&!_n&&Ve(Lt)},Ve=Lt=>{Lt&&(Lt=Lt.parent,Ve(Lt),Lt&&Oe(Lt))},Ue=Lt=>ae==null?void 0:ae.getFlattedNodes(Lt),Fe=Lt=>{var jt;return(jt=Ue(Lt))==null?void 0:jt.filter(({checked:hn})=>hn!==!1)},ze=()=>{_e.value.forEach(Lt=>Lt.doCheck(!1)),Pt(),he.value=he.value.slice(0,1),pe.value=void 0,g("expand-change",[])},Pt=()=>{var Lt;const{checkStrictly:jt,multiple:hn}=re.value,vn=_e.value,_n=Fe(!jt),wn=sortByOriginalOrder(vn,_n),bn=wn.map(Cn=>Cn.valueByOption);_e.value=wn,de.value=hn?bn:(Lt=bn[0])!=null?Lt:null},qe=(Lt=!1,jt=!1)=>{const{modelValue:hn}=i,{lazy:vn,multiple:_n,checkStrictly:wn}=re.value,bn=!wn;if(!(!oe.value||$||!jt&&isEqual$1(hn,de.value)))if(vn&&!Lt){const Sn=unique(flattenDeep(castArray(hn))).map(Tn=>ae==null?void 0:ae.getNodeByValue(Tn)).filter(Tn=>!!Tn&&!Tn.loaded&&!Tn.loading);Sn.length?Sn.forEach(Tn=>{Ne(Tn,()=>qe(!1,jt))}):qe(!0,jt)}else{const Cn=_n?castArray(hn):[hn],Sn=unique(Cn.map(Tn=>ae==null?void 0:ae.getNodeByValue(Tn,bn)));Et(Sn,jt),de.value=cloneDeep(hn??void 0)}},Et=(Lt,jt=!0)=>{const{checkStrictly:hn}=re.value,vn=_e.value,_n=Lt.filter(Cn=>!!Cn&&(hn||Cn.isLeaf)),wn=ae==null?void 0:ae.getSameNode(pe.value),bn=jt&&wn||_n[0];bn?bn.pathNodes.forEach(Cn=>Oe(Cn,!0)):pe.value=void 0,vn.forEach(Cn=>Cn.doCheck(!1)),reactive(_n).forEach(Cn=>Cn.doCheck(!0)),_e.value=_n,nextTick(kt)},kt=()=>{isClient&&ue.value.forEach(Lt=>{const jt=Lt==null?void 0:Lt.$el;if(jt){const hn=jt.querySelector(`.${V.namespace.value}-scrollbar__wrap`);let vn=jt.querySelector(`.${V.b("node")}.in-active-path`);if(!vn){const _n=jt.querySelectorAll(`.${V.b("node")}.${V.is("active")}`);vn=_n[_n.length-1]}scrollIntoView(hn,vn)}})},At=Lt=>{const jt=Lt.target,hn=getEventCode(Lt);switch(hn){case EVENT_CODE.up:case EVENT_CODE.down:{Lt.preventDefault();const vn=hn===EVENT_CODE.up?-1:1;focusNode(getSibling(jt,vn,`.${V.b("node")}[tabindex="-1"]`));break}case EVENT_CODE.left:{Lt.preventDefault();const vn=ue.value[getMenuIndex(jt)-1],_n=vn==null?void 0:vn.$el.querySelector(`.${V.b("node")}[aria-expanded="true"]`);focusNode(_n);break}case EVENT_CODE.right:{Lt.preventDefault();const vn=ue.value[getMenuIndex(jt)+1],_n=vn==null?void 0:vn.$el.querySelector(`.${V.b("node")}[tabindex="-1"]`);focusNode(_n);break}case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:checkNode(jt);break}};provide(CASCADER_PANEL_INJECTION_KEY,reactive({config:re,expandingNode:pe,checkedNodes:_e,isHoverMenu:Ce,initialLoaded:oe,renderLabelFn:xe,lazyLoad:Ne,expandNode:Oe,handleCheckChange:$e})),watch(re,(Lt,jt)=>{isEqual$1(Lt,jt)||Ie()},{immediate:!0}),watch(()=>i.options,Ie,{deep:!0}),watch(()=>i.modelValue,()=>{$=!1,qe()},{deep:!0}),watch(()=>de.value,Lt=>{isEqual$1(Lt,i.modelValue)||(g(UPDATE_MODEL_EVENT,Lt),g(CHANGE_EVENT,Lt))});const Dt=()=>{le.value||Ie()};return onBeforeUpdate(()=>ue.value=[]),onMounted(()=>!isEmpty(i.modelValue)&&qe()),t({menuList:ue,menus:he,checkedNodes:_e,handleKeyDown:At,handleCheckChange:$e,getFlattedNodes:Ue,getCheckedNodes:Fe,clearCheckedNodes:ze,calculateCheckedValue:Pt,scrollToExpandingNode:kt,loadLazyRootNodes:Dt}),(Lt,jt)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(V).b("panel"),unref(V).is("bordered",Lt.border)]),onKeydown:At},[(openBlock(!0),createElementBlock(Fragment,null,renderList(he.value,(hn,vn)=>(openBlock(),createBlock(ElCascaderMenu,{key:vn,ref_for:!0,ref:_n=>ue.value[vn]=_n,index:vn,nodes:[...hn]},{empty:withCtx(()=>[renderSlot(Lt.$slots,"empty")]),_:3},8,["index","nodes"]))),128))],34))}});var CascaderPanel=_export_sfc(_sfc_main$2k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);const ElCascaderPanel=withInstall(CascaderPanel),cascaderProps=buildProps({...CommonProps,size:useSizeProp,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:iconPropType,default:circle_close_default},filterable:Boolean,filterMethod:{type:definePropType(Function),default:(n,t)=>n.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:definePropType(Function),default:()=>!0},placement:{type:definePropType(String),values:Ee,default:"bottom-start"},fallbackPlacements:{type:definePropType(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,teleported:useTooltipContentProps.teleported,effect:{type:definePropType(String),default:"light"},tagType:{...tagProps.type,default:"info"},tagEffect:{...tagProps.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...useEmptyValuesProps}),emitChangeFn$1=n=>!0,cascaderEmits={[UPDATE_MODEL_EVENT]:emitChangeFn$1,[CHANGE_EVENT]:emitChangeFn$1,focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,visibleChange:n=>isBoolean$1(n),expandChange:n=>!!n,removeTag:n=>!!n},_hoisted_1$1m=["placeholder"],_hoisted_2$T=["onClick"],_sfc_main$2j=defineComponent({name:"ElCascader",__name:"cascader",props:cascaderProps,emits:cascaderEmits,setup(n,{expose:t,emit:r}){const i={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Wn})=>{const{modifiersData:Jn,placement:sr}=Wn;["right","left","bottom","top"].includes(sr)||Jn.arrow&&(Jn.arrow.x=35)},requires:["arrow"]}]},g=n,$=r,V=useAttrs$1(),re=useSlots();let ie=0,ae=0;const oe=useNamespace("cascader"),le=useNamespace("input"),ue={small:7,default:11,large:15},{t:de}=useLocale(),{formItem:he}=useFormItem(),pe=useFormDisabled(),{valueOnClear:_e}=useEmptyValues(g),{isComposing:Ce,handleComposition:xe}=useComposition({afterComposition(Wn){var Jn;const sr=(Jn=Wn.target)==null?void 0:Jn.value;Un(sr)}}),Ie=ref(),Ne=ref(),Oe=ref(),$e=ref(),Ve=ref(),Ue=ref(),Fe=ref(!1),ze=ref(!1),Pt=ref(!1),qe=ref(""),Et=ref(""),kt=ref([]),At=ref([]),Dt=computed(()=>g.props.multiple?g.collapseTags?kt.value.slice(0,g.maxCollapseTags):kt.value:[]),Lt=computed(()=>g.props.multiple?g.collapseTags?kt.value.slice(g.maxCollapseTags):[]:[]),jt=computed(()=>V.style),hn=computed(()=>{var Wn;return(Wn=g.placeholder)!=null?Wn:de("el.cascader.placeholder")}),vn=computed(()=>Et.value||kt.value.length>0||Ce.value?"":hn.value),_n=useFormSize(),wn=computed(()=>_n.value==="small"?"small":"default"),bn=computed(()=>!!g.props.multiple),Cn=computed(()=>!g.filterable||bn.value),Sn=computed(()=>bn.value?Et.value:qe.value),Tn=computed(()=>{var Wn;return((Wn=Ve.value)==null?void 0:Wn.checkedNodes)||[]}),{wrapperRef:En,isFocused:kn,handleBlur:$n}=useFocusController(Oe,{disabled:pe,beforeBlur(Wn){var Jn,sr;return((Jn=Ie.value)==null?void 0:Jn.isFocusInsideContent(Wn))||((sr=Ne.value)==null?void 0:sr.isFocusInsideContent(Wn))},afterBlur(){var Wn;g.validateEvent&&((Wn=he==null?void 0:he.validate)==null||Wn.call(he,"blur").catch(Jn=>void 0))}}),An=computed(()=>!g.clearable||pe.value||Pt.value||!ze.value&&!kn.value?!1:!!Tn.value.length),xn=computed(()=>{const{showAllLevels:Wn,separator:Jn}=g,sr=Tn.value;return sr.length?bn.value?"":sr[0].calcText(Wn,Jn):""}),Ln=computed(()=>(he==null?void 0:he.validateState)||""),Nn=computed({get(){return cloneDeep(g.modelValue)},set(Wn){const Jn=Wn??_e.value;$(UPDATE_MODEL_EVENT,Jn),$(CHANGE_EVENT,Jn),g.validateEvent&&(he==null||he.validate("change").catch(sr=>void 0))}}),Pn=computed(()=>[oe.b(),oe.m(_n.value),oe.is("disabled",pe.value),V.class]),On=computed(()=>[le.e("icon"),"icon-arrow-down",oe.is("reverse",Fe.value)]),Hn=computed(()=>oe.is("focus",kn.value)),Xn=computed(()=>{var Wn,Jn;return(Jn=(Wn=Ie.value)==null?void 0:Wn.popperRef)==null?void 0:Jn.contentRef}),In=Wn=>{if(kn.value){const Jn=new FocusEvent("blur",Wn);$n(Jn)}or(!1)},or=Wn=>{var Jn,sr;pe.value||(Wn=Wn??!Fe.value,Wn!==Fe.value&&(Fe.value=Wn,(sr=(Jn=Oe.value)==null?void 0:Jn.input)==null||sr.setAttribute("aria-expanded",`${Wn}`),Wn?(Qn(),Ve.value&&nextTick(Ve.value.scrollToExpandingNode)):g.filterable&&rr(),$("visibleChange",Wn)))},Qn=()=>{nextTick(()=>{var Wn;(Wn=Ie.value)==null||Wn.updatePopper()})},Zn=()=>{Pt.value=!1},Gn=Wn=>{const{showAllLevels:Jn,separator:sr}=g;return{node:Wn,key:Wn.uid,text:Wn.calcText(Jn,sr),hitState:!1,closable:!pe.value&&!Wn.isDisabled}},Rn=Wn=>{var Jn;const sr=Wn.node;sr.doCheck(!1),(Jn=Ve.value)==null||Jn.calculateCheckedValue(),$("removeTag",sr.valueByOption)},Mn=()=>{switch(g.showCheckedStrategy){case"child":return Tn.value;case"parent":{const Wn=tr(!1),Jn=Wn.map(Sr=>Sr.value);return Wn.filter(Sr=>!Sr.parent||!Jn.includes(Sr.parent.value))}default:return[]}},Bn=()=>{if(!bn.value)return;const Wn=Mn(),Jn=[];Wn.forEach(sr=>Jn.push(Gn(sr))),kt.value=Jn},qn=()=>{var Wn,Jn;const{filterMethod:sr,showAllLevels:Sr,separator:Tr}=g,fr=(Jn=(Wn=Ve.value)==null?void 0:Wn.getFlattedNodes(!g.props.checkStrictly))==null?void 0:Jn.filter(_r=>_r.isDisabled?!1:(_r.calcText(Sr,Tr),sr(_r,Sn.value)));bn.value&&kt.value.forEach(_r=>{_r.hitState=!1}),Pt.value=!0,At.value=fr,Qn()},zn=()=>{var Wn;let Jn;Pt.value&&Ue.value?Jn=Ue.value.$el.querySelector(`.${oe.e("suggestion-item")}`):Jn=(Wn=Ve.value)==null?void 0:Wn.$el.querySelector(`.${oe.b("node")}[tabindex="-1"]`),Jn&&(Jn.focus(),!Pt.value&&Jn.click())},jn=()=>{var Wn,Jn,sr;const Sr=(Wn=Oe.value)==null?void 0:Wn.input,Tr=$e.value,fr=(Jn=Ue.value)==null?void 0:Jn.$el;if(!(!isClient||!Sr)){if(fr){const _r=fr.querySelector(`.${oe.e("suggestion-list")}`);_r.style.minWidth=`${Sr.offsetWidth}px`}if(Tr){const{offsetHeight:_r}=Tr,Cr=kt.value.length>0?`${Math.max(_r,ie)-2}px`:`${ie}px`;if(Sr.style.height=Cr,re.prefix){const zr=(sr=Oe.value)==null?void 0:sr.$el.querySelector(`.${le.e("prefix")}`);let Ur=0;zr&&(Ur=zr.offsetWidth,Ur>0&&(Ur+=ue[_n.value||"default"])),Tr.style.left=`${Ur}px`}else Tr.style.left="0";Qn()}}},tr=Wn=>{var Jn;return(Jn=Ve.value)==null?void 0:Jn.getCheckedNodes(Wn)},hr=Wn=>{Qn(),$("expandChange",Wn)},ir=Wn=>{if(Ce.value)return;switch(getEventCode(Wn)){case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:or();break;case EVENT_CODE.down:or(!0),nextTick(zn),Wn.preventDefault();break;case EVENT_CODE.esc:Fe.value===!0&&(Wn.preventDefault(),Wn.stopPropagation(),or(!1));break;case EVENT_CODE.tab:or(!1);break}},pr=()=>{var Wn;(Wn=Ve.value)==null||Wn.clearCheckedNodes(),!Fe.value&&g.filterable&&rr(),or(!1),$("clear")},rr=()=>{const{value:Wn}=xn;qe.value=Wn,Et.value=Wn},lr=Wn=>{var Jn,sr;const{checked:Sr}=Wn;bn.value?(Jn=Ve.value)==null||Jn.handleCheckChange(Wn,!Sr,!1):(!Sr&&((sr=Ve.value)==null||sr.handleCheckChange(Wn,!0,!1)),or(!1))},Yn=Wn=>{const Jn=Wn.target,sr=getEventCode(Wn);switch(sr){case EVENT_CODE.up:case EVENT_CODE.down:{Wn.preventDefault();const Sr=sr===EVENT_CODE.up?-1:1;focusNode(getSibling(Jn,Sr,`.${oe.e("suggestion-item")}[tabindex="-1"]`));break}case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:Jn.click();break}},er=()=>{const Wn=kt.value[kt.value.length-1];ae=Et.value?0:ae+1,!(!Wn||!ae||g.collapseTags&&kt.value.length>1)&&(Wn.hitState?Rn(Wn):Wn.hitState=!0)},Fn=computed(()=>g.debounce),cr=useDebounceFn(()=>{const{value:Wn}=Sn;if(!Wn)return;const Jn=g.beforeFilter(Wn);isPromise(Jn)?Jn.then(qn).catch(()=>{}):Jn!==!1?qn():Zn()},Fn),Un=(Wn,Jn)=>{!Fe.value&&or(!0),!(Jn!=null&&Jn.isComposing)&&(Wn?cr():Zn())},gr=Wn=>Number.parseFloat(useCssVar(le.cssVarName("input-height"),Wn).value)-2,vr=()=>{var Wn;(Wn=Oe.value)==null||Wn.focus()},yr=()=>{var Wn;(Wn=Oe.value)==null||Wn.blur()};return watch(Pt,Qn),watch([Tn,pe,()=>g.collapseTags,()=>g.maxCollapseTags],Bn),watch(kt,()=>{nextTick(()=>jn())}),watch(_n,async()=>{await nextTick();const Wn=Oe.value.input;ie=gr(Wn)||ie,jn()}),watch(xn,rr,{immediate:!0}),watch(()=>Fe.value,Wn=>{var Jn;Wn&&g.props.lazy&&g.props.lazyLoad&&((Jn=Ve.value)==null||Jn.loadLazyRootNodes())}),onMounted(()=>{const Wn=Oe.value.input,Jn=gr(Wn);ie=Wn.offsetHeight||Jn,useResizeObserver(Wn,jn)}),t({getCheckedNodes:tr,cascaderPanelRef:Ve,togglePopperVisible:or,contentRef:Xn,presentText:xn,focus:vr,blur:yr}),(Wn,Jn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"tooltipRef",ref:Ie,visible:Fe.value,teleported:Wn.teleported,"popper-class":[unref(oe).e("dropdown"),Wn.popperClass],"popper-style":Wn.popperStyle,"popper-options":i,"fallback-placements":Wn.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:Wn.placement,transition:`${unref(oe).namespace.value}-zoom-in-top`,effect:Wn.effect,pure:"",persistent:Wn.persistent,onHide:Zn},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{ref_key:"wrapperRef",ref:En,class:normalizeClass(Pn.value),style:normalizeStyle$1(jt.value),onClick:Jn[8]||(Jn[8]=()=>or(Cn.value?void 0:!0)),onKeydown:ir,onMouseenter:Jn[9]||(Jn[9]=sr=>ze.value=!0),onMouseleave:Jn[10]||(Jn[10]=sr=>ze.value=!1)},[createVNode$1(unref(ElInput),{ref_key:"inputRef",ref:Oe,modelValue:qe.value,"onUpdate:modelValue":Jn[1]||(Jn[1]=sr=>qe.value=sr),placeholder:vn.value,readonly:Cn.value,disabled:unref(pe),"validate-event":!1,size:unref(_n),class:normalizeClass(Hn.value),tabindex:bn.value&&Wn.filterable&&!unref(pe)?-1:void 0,onCompositionstart:unref(xe),onCompositionupdate:unref(xe),onCompositionend:unref(xe),onInput:Un},createSlots({suffix:withCtx(()=>[An.value?(openBlock(),createBlock(unref(ElIcon),{key:"clear",class:normalizeClass([unref(le).e("icon"),"icon-circle-close"]),onClick:withModifiers(pr,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Wn.clearIcon)))]),_:1},8,["class"])):(openBlock(),createBlock(unref(ElIcon),{key:"arrow-down",class:normalizeClass(On.value),onClick:Jn[0]||(Jn[0]=withModifiers(sr=>or(),["stop"]))},{default:withCtx(()=>[createVNode$1(unref(arrow_down_default))]),_:1},8,["class"]))]),_:2},[Wn.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(Wn.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),bn.value?(openBlock(),createElementBlock("div",{key:0,ref_key:"tagWrapper",ref:$e,class:normalizeClass([unref(oe).e("tags"),unref(oe).is("validate",!!Ln.value)])},[renderSlot(Wn.$slots,"tag",{data:kt.value,deleteTag:Rn},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Dt.value,sr=>(openBlock(),createBlock(unref(ElTag),{key:sr.key,type:Wn.tagType,size:wn.value,effect:Wn.tagEffect,hit:sr.hitState,closable:sr.closable,"disable-transitions":"",onClose:Sr=>Rn(sr)},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(sr.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),Wn.collapseTags&&kt.value.length>Wn.maxCollapseTags?(openBlock(),createBlock(unref(ElTooltip),{key:0,ref_key:"tagTooltipRef",ref:Ne,disabled:Fe.value||!Wn.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":Wn.popperClass,"popper-style":Wn.popperStyle,effect:Wn.effect,persistent:Wn.persistent},{default:withCtx(()=>[createVNode$1(unref(ElTag),{closable:!1,size:wn.value,type:Wn.tagType,effect:Wn.tagEffect,"disable-transitions":""},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(oe).e("tags-text"))}," + "+toDisplayString(kt.value.length-Wn.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:withCtx(()=>[createVNode$1(unref(ElScrollbar),{"max-height":Wn.maxCollapseTagsTooltipHeight},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(oe).e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Lt.value,(sr,Sr)=>(openBlock(),createElementBlock("div",{key:Sr,class:normalizeClass(unref(oe).e("collapse-tag"))},[(openBlock(),createBlock(unref(ElTag),{key:sr.key,class:"in-tooltip",type:Wn.tagType,size:wn.value,effect:Wn.tagEffect,hit:sr.hitState,closable:sr.closable,"disable-transitions":"",onClose:Tr=>Rn(sr)},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(sr.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):createCommentVNode("v-if",!0),Wn.filterable&&!unref(pe)?withDirectives((openBlock(),createElementBlock("input",{key:1,"onUpdate:modelValue":Jn[2]||(Jn[2]=sr=>Et.value=sr),type:"text",class:normalizeClass(unref(oe).e("search-input")),placeholder:xn.value?"":hn.value,onInput:Jn[3]||(Jn[3]=sr=>Un(Et.value,sr)),onClick:Jn[4]||(Jn[4]=withModifiers(sr=>or(!0),["stop"])),onKeydown:withKeys(er,["delete"]),onCompositionstart:Jn[5]||(Jn[5]=(...sr)=>unref(xe)&&unref(xe)(...sr)),onCompositionupdate:Jn[6]||(Jn[6]=(...sr)=>unref(xe)&&unref(xe)(...sr)),onCompositionend:Jn[7]||(Jn[7]=(...sr)=>unref(xe)&&unref(xe)(...sr))},null,42,_hoisted_1$1m)),[[vModelText,Et.value]]):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],38)),[[unref(ClickOutside),In,Xn.value]])]),content:withCtx(()=>[Wn.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("header")),onClick:Jn[11]||(Jn[11]=withModifiers(()=>{},["stop"]))},[renderSlot(Wn.$slots,"header")],2)):createCommentVNode("v-if",!0),withDirectives(createVNode$1(unref(ElCascaderPanel),{ref_key:"cascaderPanelRef",ref:Ve,modelValue:Nn.value,"onUpdate:modelValue":Jn[12]||(Jn[12]=sr=>Nn.value=sr),options:Wn.options,props:g.props,border:!1,"render-label":Wn.$slots.default,onExpandChange:hr,onClose:Jn[13]||(Jn[13]=sr=>Wn.$nextTick(()=>or(!1)))},{empty:withCtx(()=>[renderSlot(Wn.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label"]),[[vShow,!Pt.value]]),Wn.filterable?withDirectives((openBlock(),createBlock(unref(ElScrollbar),{key:1,ref_key:"suggestionPanel",ref:Ue,tag:"ul",class:normalizeClass(unref(oe).e("suggestion-panel")),"view-class":unref(oe).e("suggestion-list"),onKeydown:Yn},{default:withCtx(()=>[At.value.length?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(At.value,sr=>(openBlock(),createElementBlock("li",{key:sr.uid,class:normalizeClass([unref(oe).e("suggestion-item"),unref(oe).is("checked",sr.checked)]),tabindex:-1,onClick:Sr=>lr(sr)},[renderSlot(Wn.$slots,"suggestion-item",{item:sr},()=>[createBaseVNode("span",null,toDisplayString(sr.text),1),sr.checked?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[createVNode$1(unref(check_default))]),_:1})):createCommentVNode("v-if",!0)])],10,_hoisted_2$T))),128)):renderSlot(Wn.$slots,"empty",{key:1},()=>[createBaseVNode("li",{class:normalizeClass(unref(oe).e("empty-text"))},toDisplayString(unref(de)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[vShow,Pt.value]]):createCommentVNode("v-if",!0),Wn.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(oe).e("footer")),onClick:Jn[14]||(Jn[14]=withModifiers(()=>{},["stop"]))},[renderSlot(Wn.$slots,"footer")],2)):createCommentVNode("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}});var Cascader=_export_sfc(_sfc_main$2j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);const ElCascader=withInstall(Cascader),checkTagProps=buildProps({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),checkTagEmits={"update:checked":n=>isBoolean$1(n),[CHANGE_EVENT]:n=>isBoolean$1(n)},_sfc_main$2i=defineComponent({name:"ElCheckTag",__name:"check-tag",props:checkTagProps,emits:checkTagEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("check-tag"),$=computed(()=>[g.b(),g.is("checked",r.checked),g.is("disabled",r.disabled),g.m(r.type||"primary")]),V=()=>{if(r.disabled)return;const re=!r.checked;i(CHANGE_EVENT,re),i("update:checked",re)};return(re,ie)=>(openBlock(),createElementBlock("span",{class:normalizeClass($.value),onClick:V},[renderSlot(re.$slots,"default")],2))}});var CheckTag=_export_sfc(_sfc_main$2i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const ElCheckTag=withInstall(CheckTag),colProps=buildProps({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:definePropType([Number,Object]),default:()=>mutable({})},sm:{type:definePropType([Number,Object]),default:()=>mutable({})},md:{type:definePropType([Number,Object]),default:()=>mutable({})},lg:{type:definePropType([Number,Object]),default:()=>mutable({})},xl:{type:definePropType([Number,Object]),default:()=>mutable({})}}),rowContextKey=Symbol("rowContextKey"),_sfc_main$2h=defineComponent({name:"ElCol",__name:"col",props:colProps,setup(n){const t=n,{gutter:r}=inject(rowContextKey,{gutter:computed(()=>0)}),i=useNamespace("col"),g=computed(()=>{const V={};return r.value&&(V.paddingLeft=V.paddingRight=`${r.value/2}px`),V}),$=computed(()=>{const V=[];return["span","offset","pull","push"].forEach(ae=>{const oe=t[ae];isNumber$2(oe)&&(ae==="span"?V.push(i.b(`${t[ae]}`)):oe>0&&V.push(i.b(`${ae}-${t[ae]}`)))}),["xs","sm","md","lg","xl"].forEach(ae=>{isNumber$2(t[ae])?V.push(i.b(`${ae}-${t[ae]}`)):isObject$6(t[ae])&&Object.entries(t[ae]).forEach(([oe,le])=>{V.push(oe!=="span"?i.b(`${ae}-${oe}-${le}`):i.b(`${ae}-${le}`))})}),r.value&&V.push(i.is("guttered")),[i.b(),V]});return(V,re)=>(openBlock(),createBlock(resolveDynamicComponent(V.tag),{class:normalizeClass($.value),style:normalizeStyle$1(g.value)},{default:withCtx(()=>[renderSlot(V.$slots,"default")]),_:3},8,["class","style"]))}});var Col=_export_sfc(_sfc_main$2h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const ElCol=withInstall(Col),emitChangeFn=n=>isNumber$2(n)||isString$2(n)||isArray$5(n),collapseProps=buildProps({accordion:Boolean,modelValue:{type:definePropType([Array,String,Number]),default:()=>mutable([])},expandIconPosition:{type:definePropType([String]),default:"right"},beforeCollapse:{type:definePropType(Function)}}),collapseEmits={[UPDATE_MODEL_EVENT]:emitChangeFn,[CHANGE_EVENT]:emitChangeFn},collapseContextKey=Symbol("collapseContextKey"),SCOPE$5="ElCollapse",useCollapse=(n,t)=>{const r=ref(castArray$1(n.modelValue)),i=V=>{r.value=V;const re=n.accordion?r.value[0]:r.value;t(UPDATE_MODEL_EVENT,re),t(CHANGE_EVENT,re)},g=V=>{if(n.accordion)i([r.value[0]===V?"":V]);else{const re=[...r.value],ie=re.indexOf(V);ie>-1?re.splice(ie,1):re.push(V),i(re)}},$=async V=>{const{beforeCollapse:re}=n;if(!re){g(V);return}const ie=re(V);[isPromise(ie),isBoolean$1(ie)].includes(!0)||throwError$1(SCOPE$5,"beforeCollapse must return type `Promise` or `boolean`"),isPromise(ie)?ie.then(oe=>{oe!==!1&&g(V)}).catch(oe=>{}):ie&&g(V)};return watch(()=>n.modelValue,()=>r.value=castArray$1(n.modelValue),{deep:!0}),provide(collapseContextKey,{activeNames:r,handleItemClick:$}),{activeNames:r,setActiveNames:i}},useCollapseDOM=n=>{const t=useNamespace("collapse");return{rootKls:computed(()=>[t.b(),t.b(`icon-position-${n.expandIconPosition}`)])}},_sfc_main$2g=defineComponent({name:"ElCollapse",__name:"collapse",props:collapseProps,emits:collapseEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{activeNames:$,setActiveNames:V}=useCollapse(i,g),{rootKls:re}=useCollapseDOM(i);return t({activeNames:$,setActiveNames:V}),(ie,ae)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(re))},[renderSlot(ie.$slots,"default")],2))}});var Collapse=_export_sfc(_sfc_main$2g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const _sfc_main$2f=defineComponent({name:"ElCollapseTransition",__name:"collapse-transition",setup(n){const t=useNamespace("collapse-transition"),r=g=>{g.style.maxHeight="",g.style.overflow=g.dataset.oldOverflow,g.style.paddingTop=g.dataset.oldPaddingTop,g.style.paddingBottom=g.dataset.oldPaddingBottom},i={beforeEnter(g){g.dataset||(g.dataset={}),g.dataset.oldPaddingTop=g.style.paddingTop,g.dataset.oldPaddingBottom=g.style.paddingBottom,g.style.height&&(g.dataset.elExistsHeight=g.style.height),g.style.maxHeight=0,g.style.paddingTop=0,g.style.paddingBottom=0},enter(g){requestAnimationFrame(()=>{g.dataset.oldOverflow=g.style.overflow,g.dataset.elExistsHeight?g.style.maxHeight=g.dataset.elExistsHeight:g.scrollHeight!==0?g.style.maxHeight=`${g.scrollHeight}px`:g.style.maxHeight=0,g.style.paddingTop=g.dataset.oldPaddingTop,g.style.paddingBottom=g.dataset.oldPaddingBottom,g.style.overflow="hidden"})},afterEnter(g){g.style.maxHeight="",g.style.overflow=g.dataset.oldOverflow},enterCancelled(g){r(g)},beforeLeave(g){g.dataset||(g.dataset={}),g.dataset.oldPaddingTop=g.style.paddingTop,g.dataset.oldPaddingBottom=g.style.paddingBottom,g.dataset.oldOverflow=g.style.overflow,g.style.maxHeight=`${g.scrollHeight}px`,g.style.overflow="hidden"},leave(g){g.scrollHeight!==0&&(g.style.maxHeight=0,g.style.paddingTop=0,g.style.paddingBottom=0)},afterLeave(g){r(g)},leaveCancelled(g){r(g)}};return(g,$)=>(openBlock(),createBlock(Transition,mergeProps({name:unref(t).b()},toHandlers(i)),{default:withCtx(()=>[renderSlot(g.$slots,"default")]),_:3},16,["name"]))}});var CollapseTransition=_export_sfc(_sfc_main$2f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);const ElCollapseTransition=withInstall(CollapseTransition),collapseItemProps=buildProps({title:{type:String,default:""},name:{type:definePropType([String,Number]),default:void 0},icon:{type:iconPropType,default:arrow_right_default},disabled:Boolean}),useCollapseItem=n=>{const t=inject(collapseContextKey),{namespace:r}=useNamespace("collapse"),i=ref(!1),g=ref(!1),$=useIdInjection(),V=computed(()=>$.current++),re=computed(()=>{var ue;return(ue=n.name)!=null?ue:`${r.value}-id-${$.prefix}-${unref(V)}`}),ie=computed(()=>t==null?void 0:t.activeNames.value.includes(unref(re)));return{focusing:i,id:V,isActive:ie,handleFocus:()=>{setTimeout(()=>{g.value?g.value=!1:i.value=!0},50)},handleHeaderClick:ue=>{if(n.disabled)return;const de=ue.target;de!=null&&de.closest("input, textarea, select")||(t==null||t.handleItemClick(unref(re)),i.value=!1,g.value=!0)},handleEnterClick:ue=>{const de=ue.target;de!=null&&de.closest("input, textarea, select")||(ue.preventDefault(),t==null||t.handleItemClick(unref(re)))}}},useCollapseItemDOM=(n,{focusing:t,isActive:r,id:i})=>{const g=useNamespace("collapse"),$=computed(()=>[g.b("item"),g.is("active",unref(r)),g.is("disabled",n.disabled)]),V=computed(()=>[g.be("item","header"),g.is("active",unref(r)),{focusing:unref(t)&&!n.disabled}]),re=computed(()=>[g.be("item","arrow"),g.is("active",unref(r))]),ie=computed(()=>[g.be("item","title")]),ae=computed(()=>g.be("item","wrap")),oe=computed(()=>g.be("item","content")),le=computed(()=>g.b(`content-${unref(i)}`)),ue=computed(()=>g.b(`head-${unref(i)}`));return{itemTitleKls:ie,arrowKls:re,headKls:V,rootKls:$,itemWrapperKls:ae,itemContentKls:oe,scopedContentId:le,scopedHeadId:ue}},_hoisted_1$1l=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],_hoisted_2$S=["id","aria-hidden","aria-labelledby"],_sfc_main$2e=defineComponent({name:"ElCollapseItem",__name:"collapse-item",props:collapseItemProps,setup(n,{expose:t}){const r=n,{focusing:i,id:g,isActive:$,handleFocus:V,handleHeaderClick:re,handleEnterClick:ie}=useCollapseItem(r),{arrowKls:ae,headKls:oe,rootKls:le,itemTitleKls:ue,itemWrapperKls:de,itemContentKls:he,scopedContentId:pe,scopedHeadId:_e}=useCollapseItemDOM(r,{focusing:i,isActive:$,id:g});return t({isActive:$}),(Ce,xe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le))},[createBaseVNode("div",{id:unref(_e),class:normalizeClass(unref(oe)),"aria-expanded":unref($),"aria-controls":unref(pe),"aria-describedby":unref(pe),tabindex:Ce.disabled?void 0:0,"aria-disabled":Ce.disabled,role:"button",onClick:xe[0]||(xe[0]=(...Ie)=>unref(re)&&unref(re)(...Ie)),onKeydown:xe[1]||(xe[1]=withKeys(withModifiers((...Ie)=>unref(ie)&&unref(ie)(...Ie),["stop"]),["space","enter"])),onFocus:xe[2]||(xe[2]=(...Ie)=>unref(V)&&unref(V)(...Ie)),onBlur:xe[3]||(xe[3]=Ie=>i.value=!1)},[createBaseVNode("span",{class:normalizeClass(unref(ue))},[renderSlot(Ce.$slots,"title",{isActive:unref($)},()=>[createTextVNode(toDisplayString(Ce.title),1)])],2),renderSlot(Ce.$slots,"icon",{isActive:unref($)},()=>[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(ae))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ce.icon)))]),_:1},8,["class"])])],42,_hoisted_1$1l),createVNode$1(unref(ElCollapseTransition),null,{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:unref(pe),role:"region",class:normalizeClass(unref(de)),"aria-hidden":!unref($),"aria-labelledby":unref(_e)},[createBaseVNode("div",{class:normalizeClass(unref(he))},[renderSlot(Ce.$slots,"default")],2)],10,_hoisted_2$S),[[vShow,unref($)]])]),_:3})],2))}});var CollapseItem=_export_sfc(_sfc_main$2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const ElCollapse=withInstall(Collapse,{CollapseItem}),ElCollapseItem=withNoopInstall(CollapseItem),alphaSliderProps=buildProps({color:{type:definePropType(Object),required:!0},vertical:Boolean,disabled:Boolean}),hueSliderProps=alphaSliderProps;let isDragging=!1;function draggable(n,t){if(!isClient)return;const r=function($){var V;(V=t.drag)==null||V.call(t,$)},i=function($){var V;document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),document.removeEventListener("touchmove",r),document.removeEventListener("touchend",i),document.onselectstart=null,document.ondragstart=null,isDragging=!1,(V=t.end)==null||V.call(t,$)},g=function($){var V;isDragging||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r),document.addEventListener("mouseup",i),document.addEventListener("touchmove",r),document.addEventListener("touchend",i),isDragging=!0,(V=t.start)==null||V.call(t,$))};n.addEventListener("mousedown",g),n.addEventListener("touchstart",g,{passive:!1})}const getOffsetTop=n=>{let t=0,r=n;for(;r;)t+=r.offsetTop,r=r.offsetParent;return t},getOffsetTopDistance=(n,t)=>Math.abs(getOffsetTop(n)-getOffsetTop(t)),getClientXY=n=>{let t,r;return n.type==="touchend"?(r=n.changedTouches[0].clientY,t=n.changedTouches[0].clientX):n.type.startsWith("touch")?(r=n.touches[0].clientY,t=n.touches[0].clientX):(r=n.clientY,t=n.clientX),{clientX:t,clientY:r}},useSlider=(n,{key:t,minValue:r,maxValue:i})=>{const g=getCurrentInstance(),$=shallowRef(),V=shallowRef(),re=computed(()=>n.color.get(t));function ie(ue){var de;if(n.disabled)return;ue.target!==$.value&&ae(ue),(de=$.value)==null||de.focus()}function ae(ue){if(!V.value||!$.value||n.disabled)return;const he=g.vnode.el.getBoundingClientRect(),{clientX:pe,clientY:_e}=getClientXY(ue);let Ce;if(n.vertical){let xe=_e-he.top;xe=Math.max($.value.offsetHeight/2,xe),xe=Math.min(xe,he.height-$.value.offsetHeight/2),Ce=Math.round((xe-$.value.offsetHeight/2)/(he.height-$.value.offsetHeight)*i)}else{let xe=pe-he.left;xe=Math.max($.value.offsetWidth/2,xe),xe=Math.min(xe,he.width-$.value.offsetWidth/2),Ce=Math.round((xe-$.value.offsetWidth/2)/(he.width-$.value.offsetWidth)*i)}n.color.set(t,Ce)}function oe(ue){if(n.disabled)return;const{shiftKey:de}=ue,he=getEventCode(ue),pe=de?10:1,_e=t==="hue"?-1:1;let Ce=!0;switch(he){case EVENT_CODE.left:case EVENT_CODE.down:le(-pe*_e);break;case EVENT_CODE.right:case EVENT_CODE.up:le(pe*_e);break;case EVENT_CODE.home:n.color.set(t,t==="hue"?i:r);break;case EVENT_CODE.end:n.color.set(t,t==="hue"?r:i);break;case EVENT_CODE.pageDown:le(-4*_e);break;case EVENT_CODE.pageUp:le(4*_e);break;default:Ce=!1;break}Ce&&ue.preventDefault()}function le(ue){let de=re.value+ue;de=dei?i:de,n.color.set(t,de)}return{thumb:$,bar:V,currentValue:re,handleDrag:ae,handleClick:ie,handleKeydown:oe}},useSliderDOM=(n,{namespace:t,maxValue:r,bar:i,thumb:g,currentValue:$,handleDrag:V,getBackground:re})=>{const ie=getCurrentInstance(),ae=useNamespace(t),oe=ref(0),le=ref(0),ue=ref();function de(){if(!g.value||n.vertical)return 0;const Oe=ie.vnode.el,$e=$.value;return Oe?Math.round($e*(Oe.offsetWidth-g.value.offsetWidth/2)/r):0}function he(){if(!g.value)return 0;const Oe=ie.vnode.el;if(!n.vertical)return 0;const $e=$.value;return Oe?Math.round($e*(Oe.offsetHeight-g.value.offsetHeight/2)/r):0}function pe(){oe.value=de(),le.value=he(),ue.value=re==null?void 0:re()}onMounted(()=>{if(!i.value||!g.value)return;const Oe={drag:$e=>{V($e)},end:$e=>{V($e)}};draggable(i.value,Oe),draggable(g.value,Oe),pe()}),watch($,()=>pe()),watch(()=>n.color.value,()=>pe());const _e=computed(()=>[ae.b(),ae.is("vertical",n.vertical),ae.is("disabled",n.disabled)]),Ce=computed(()=>ae.e("bar")),xe=computed(()=>ae.e("thumb")),Ie=computed(()=>({background:ue.value})),Ne=computed(()=>({left:addUnit(oe.value),top:addUnit(le.value)}));return{rootKls:_e,barKls:Ce,barStyle:Ie,thumbKls:xe,thumbStyle:Ne,thumbLeft:oe,thumbTop:le,update:pe}},_hoisted_1$1k=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],minValue$1=0,maxValue$1=100,_sfc_main$2d=defineComponent({name:"ElColorAlphaSlider",__name:"alpha-slider",props:alphaSliderProps,setup(n,{expose:t}){const r=n,{currentValue:i,bar:g,thumb:$,handleDrag:V,handleClick:re,handleKeydown:ie}=useSlider(r,{key:"alpha",minValue:minValue$1,maxValue:maxValue$1}),{rootKls:ae,barKls:oe,barStyle:le,thumbKls:ue,thumbStyle:de,update:he}=useSliderDOM(r,{namespace:"color-alpha-slider",maxValue:maxValue$1,currentValue:i,bar:g,thumb:$,handleDrag:V,getBackground:xe}),{t:pe}=useLocale(),_e=computed(()=>pe("el.colorpicker.alphaLabel")),Ce=computed(()=>pe("el.colorpicker.alphaDescription",{alpha:i.value,color:r.color.value}));function xe(){if(r.color&&r.color.value){const{r:Ie,g:Ne,b:Oe}=r.color.toRgb();return`linear-gradient(to right, rgba(${Ie}, ${Ne}, ${Oe}, 0) 0%, rgba(${Ie}, ${Ne}, ${Oe}, 1) 100%)`}return""}return t({update:he,bar:g,thumb:$}),(Ie,Ne)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ae))},[createBaseVNode("div",{ref_key:"bar",ref:g,class:normalizeClass(unref(oe)),style:normalizeStyle$1(unref(le)),onClick:Ne[0]||(Ne[0]=(...Oe)=>unref(re)&&unref(re)(...Oe))},null,6),createBaseVNode("div",{ref_key:"thumb",ref:$,class:normalizeClass(unref(ue)),style:normalizeStyle$1(unref(de)),"aria-label":_e.value,"aria-valuenow":unref(i),"aria-valuetext":Ce.value,"aria-orientation":Ie.vertical?"vertical":"horizontal","aria-valuemin":minValue$1,"aria-valuemax":maxValue$1,role:"slider",tabindex:Ie.disabled?void 0:0,"aria-disabled":Ie.disabled,onKeydown:Ne[1]||(Ne[1]=(...Oe)=>unref(ie)&&unref(ie)(...Oe))},null,46,_hoisted_1$1k)],2))}});var AlphaSlider=_export_sfc(_sfc_main$2d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/alpha-slider.vue"]]);const _hoisted_1$1j=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],minValue=0,maxValue=360,_sfc_main$2c=defineComponent({name:"ElColorHueSlider",__name:"hue-slider",props:hueSliderProps,setup(n,{expose:t}){const r=n,{currentValue:i,bar:g,thumb:$,handleDrag:V,handleClick:re,handleKeydown:ie}=useSlider(r,{key:"hue",minValue,maxValue}),{rootKls:ae,barKls:oe,thumbKls:le,thumbStyle:ue,thumbTop:de,update:he}=useSliderDOM(r,{namespace:"color-hue-slider",maxValue,currentValue:i,bar:g,thumb:$,handleDrag:V}),{t:pe}=useLocale(),_e=computed(()=>pe("el.colorpicker.hueLabel")),Ce=computed(()=>pe("el.colorpicker.hueDescription",{hue:i.value,color:r.color.value}));return t({bar:g,thumb:$,thumbTop:de,update:he}),(xe,Ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ae))},[createBaseVNode("div",{ref_key:"bar",ref:g,class:normalizeClass(unref(oe)),onClick:Ie[0]||(Ie[0]=(...Ne)=>unref(re)&&unref(re)(...Ne))},null,2),createBaseVNode("div",{ref_key:"thumb",ref:$,class:normalizeClass(unref(le)),style:normalizeStyle$1(unref(ue)),"aria-label":_e.value,"aria-valuenow":unref(i),"aria-valuetext":Ce.value,"aria-orientation":xe.vertical?"vertical":"horizontal","aria-valuemin":minValue,"aria-valuemax":maxValue,role:"slider",tabindex:xe.disabled?void 0:0,"aria-disabled":xe.disabled,onKeydown:Ie[1]||(Ie[1]=(...Ne)=>unref(ie)&&unref(ie)(...Ne))},null,46,_hoisted_1$1j)],2))}});var HueSlider=_export_sfc(_sfc_main$2c,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/hue-slider.vue"]]);const predefineProps=buildProps({colors:{type:definePropType(Array),required:!0},color:{type:definePropType(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean}),colorPickerPanelProps=buildProps({modelValue:{type:definePropType(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:String,disabled:Boolean,predefine:{type:definePropType(Array)},validateEvent:{type:Boolean,default:!0}}),colorPickerPanelEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n)||isNil(n)},ROOT_COMMON_COLOR_INJECTION_KEY=Symbol("colorCommonPickerKey"),colorPickerPanelContextKey=Symbol("colorPickerPanelContextKey");let Color$1=class{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new TinyColor,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const r in t)hasOwn$1(t,r)&&(this[r]=t[r]);t.value?this.fromString(t.value):this.doOnChange()}set(t,r){if(arguments.length===1&&typeof t=="object"){for(const i in t)hasOwn$1(t,i)&&this.set(i,t[i]);return}this[`_${t}`]=r,this._isValid=!0,this.doOnChange()}get(t){return["hue","saturation","value","alpha"].includes(t)?Math.round(this[`_${t}`]):this[`_${t}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(t){const r=new TinyColor(t);if(this._isValid=r.isValid,r.isValid){const{h:i,s:g,v:$,a:V}=r.toHsv();this._hue=i,this._saturation=g*100,this._value=$*100,this._alpha=V*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(t){const r=new TinyColor({h:t._hue,s:t._saturation/100,v:t._value/100,a:t._alpha/100});return this._tiny.equals(r)}doOnChange(){const{_hue:t,_saturation:r,_value:i,_alpha:g,format:$,enableAlpha:V}=this;let re=$||(V?"rgb":"hex");$==="hex"&&V&&(re="hex8"),this._tiny=new TinyColor({h:t,s:r/100,v:i/100,a:g/100}),this.value=this._isValid?this._tiny.toString(re):""}};const usePredefine=n=>{const{currentColor:t}=inject(colorPickerPanelContextKey),r=ref(g(n.colors,n.color));watch(()=>t.value,$=>{const V=new Color$1({value:$,enableAlpha:n.enableAlpha});r.value.forEach(re=>{re.selected=V.compare(re)})}),watchEffect(()=>{r.value=g(n.colors,n.color)});function i($){n.color.fromString(n.colors[$])}function g($,V){return $.map(re=>{const ie=new Color$1({value:re,enableAlpha:n.enableAlpha});return ie.selected=ie.compare(V),ie})}return{rgbaColors:r,handleSelect:i}},usePredefineDOM=n=>{const t=useNamespace("color-predefine"),r=computed(()=>[t.b(),t.is("disabled",n.disabled)]),i=computed(()=>t.e("colors"));function g($){return[t.e("color-selector"),t.is("alpha",$.get("alpha")<100),{selected:$.selected}]}return{rootKls:r,colorsKls:i,colorSelectorKls:g}},_hoisted_1$1i=["disabled","aria-label","onClick"],_sfc_main$2b=defineComponent({name:"ElColorPredefine",__name:"predefine",props:predefineProps,setup(n){const t=n,{rgbaColors:r,handleSelect:i}=usePredefine(t),{rootKls:g,colorsKls:$,colorSelectorKls:V}=usePredefineDOM(t),{t:re}=useLocale(),ie=ae=>re("el.colorpicker.predefineDescription",{value:ae});return(ae,oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(g))},[createBaseVNode("div",{class:normalizeClass(unref($))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(r),(le,ue)=>(openBlock(),createElementBlock("button",{key:ae.colors[ue],type:"button",disabled:ae.disabled,"aria-label":ie(le.value),class:normalizeClass(unref(V)(le)),onClick:de=>unref(i)(ue)},[createBaseVNode("div",{style:normalizeStyle$1({backgroundColor:le.value})},null,4)],10,_hoisted_1$1i))),128))],2)],2))}});var Predefine=_export_sfc(_sfc_main$2b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/predefine.vue"]]);const svPanelProps=buildProps({color:{type:definePropType(Object),required:!0},disabled:Boolean}),useSvPanel=n=>{const t=getCurrentInstance(),r=ref(),i=ref(0),g=ref(0),$=ref("hsl(0, 100%, 50%)"),V=computed(()=>n.color.get("saturation")),re=computed(()=>n.color.get("value")),ie=computed(()=>n.color.get("hue"));function ae(he){var pe;if(n.disabled)return;he.target!==r.value&&oe(he),(pe=r.value)==null||pe.focus({preventScroll:!0})}function oe(he){if(n.disabled)return;const _e=t.vnode.el.getBoundingClientRect(),{clientX:Ce,clientY:xe}=getClientXY(he);let Ie=Ce-_e.left,Ne=xe-_e.top;Ie=Math.max(0,Ie),Ie=Math.min(Ie,_e.width),Ne=Math.max(0,Ne),Ne=Math.min(Ne,_e.height),g.value=Ie,i.value=Ne,n.color.set({saturation:Ie/_e.width*100,value:100-Ne/_e.height*100})}function le(he){if(n.disabled)return;const{shiftKey:pe}=he,_e=getEventCode(he),Ce=pe?10:1;let xe=!0;switch(_e){case EVENT_CODE.left:ue(-Ce);break;case EVENT_CODE.right:ue(Ce);break;case EVENT_CODE.up:de(Ce);break;case EVENT_CODE.down:de(-Ce);break;default:xe=!1;break}xe&&he.preventDefault()}function ue(he){let pe=V.value+he;pe=pe<0?0:pe>100?100:pe,n.color.set("saturation",pe)}function de(he){let pe=re.value+he;pe=pe<0?0:pe>100?100:pe,n.color.set("value",pe)}return{cursorRef:r,cursorTop:i,cursorLeft:g,background:$,saturation:V,brightness:re,hue:ie,handleClick:ae,handleDrag:oe,handleKeydown:le}},useSvPanelDOM=(n,{cursorTop:t,cursorLeft:r,background:i,handleDrag:g})=>{const $=getCurrentInstance(),V=useNamespace("color-svpanel");function re(){const ue=n.color.get("saturation"),de=n.color.get("value"),he=$.vnode.el,{clientWidth:pe,clientHeight:_e}=he;r.value=ue*pe/100,t.value=(100-de)*_e/100,i.value=`hsl(${n.color.get("hue")}, 100%, 50%)`}onMounted(()=>{draggable($.vnode.el,{drag:ue=>{g(ue)},end:ue=>{g(ue)}}),re()}),watch([()=>n.color.get("hue"),()=>n.color.get("value"),()=>n.color.value],()=>re());const ie=computed(()=>V.b()),ae=computed(()=>V.e("cursor")),oe=computed(()=>({backgroundColor:i.value})),le=computed(()=>({top:addUnit(t.value),left:addUnit(r.value)}));return{rootKls:ie,cursorKls:ae,rootStyle:oe,cursorStyle:le,update:re}},_hoisted_1$1h=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"],_sfc_main$2a=defineComponent({name:"ElSvPanel",__name:"sv-panel",props:svPanelProps,setup(n,{expose:t}){const r=n,{cursorRef:i,cursorTop:g,cursorLeft:$,background:V,saturation:re,brightness:ie,handleClick:ae,handleDrag:oe,handleKeydown:le}=useSvPanel(r),{rootKls:ue,cursorKls:de,rootStyle:he,cursorStyle:pe,update:_e}=useSvPanelDOM(r,{cursorTop:g,cursorLeft:$,background:V,handleDrag:oe}),{t:Ce}=useLocale(),xe=computed(()=>Ce("el.colorpicker.svLabel")),Ie=computed(()=>Ce("el.colorpicker.svDescription",{saturation:re.value,brightness:ie.value,color:r.color.value}));return t({update:_e}),(Ne,Oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ue)),style:normalizeStyle$1(unref(he)),onClick:Oe[1]||(Oe[1]=(...$e)=>unref(ae)&&unref(ae)(...$e))},[createBaseVNode("div",{ref_key:"cursorRef",ref:i,class:normalizeClass(unref(de)),style:normalizeStyle$1(unref(pe)),tabindex:Ne.disabled?void 0:0,"aria-disabled":Ne.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":xe.value,"aria-valuenow":`${unref(re)},${unref(ie)}`,"aria-valuetext":Ie.value,onKeydown:Oe[0]||(Oe[0]=(...$e)=>unref(le)&&unref(le)(...$e))},null,46,_hoisted_1$1h)],6))}});var SvPanel=_export_sfc(_sfc_main$2a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/components/sv-panel.vue"]]);const useCommonColor=(n,t)=>{const r=reactive(new Color$1({enableAlpha:n.showAlpha,format:n.colorFormat||"",value:n.modelValue}));return watch(()=>[n.colorFormat,n.showAlpha],()=>{r.enableAlpha=n.showAlpha,r.format=n.colorFormat||r.format,r.doOnChange(),t(UPDATE_MODEL_EVENT,r.value)}),{color:r}},_sfc_main$29=defineComponent({name:"ElColorPickerPanel",__name:"color-picker-panel",props:colorPickerPanelProps,emits:colorPickerPanelEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("color-picker-panel"),{formItem:V}=useFormItem(),re=useFormDisabled(),ie=ref(),ae=ref(),oe=ref(),le=ref(),ue=ref(""),{color:de}=inject(ROOT_COMMON_COLOR_INJECTION_KEY,()=>useCommonColor(i,g),!0);function he(){de.fromString(ue.value),de.value!==ue.value&&(ue.value=de.value)}function pe(){var Ce;i.validateEvent&&((Ce=V==null?void 0:V.validate)==null||Ce.call(V,"blur").catch(xe=>void 0))}function _e(){var Ce,xe,Ie;(Ce=ie.value)==null||Ce.update(),(xe=ae.value)==null||xe.update(),(Ie=oe.value)==null||Ie.update()}return onMounted(()=>{i.modelValue&&(ue.value=de.value),nextTick(_e)}),watch(()=>i.modelValue,Ce=>{Ce!==de.value&&(Ce?de.fromString(Ce):de.clear())}),watch(()=>de.value,Ce=>{g(UPDATE_MODEL_EVENT,Ce),ue.value=Ce,i.validateEvent&&(V==null||V.validate("change").catch(xe=>void 0))}),provide(colorPickerPanelContextKey,{currentColor:computed(()=>de.value)}),t({color:de,inputRef:le,update:_e}),(Ce,xe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref($).b(),unref($).is("disabled",unref(re)),unref($).is("border",Ce.border)]),onFocusout:pe},[createBaseVNode("div",{class:normalizeClass(unref($).e("wrapper"))},[createVNode$1(HueSlider,{ref_key:"hueRef",ref:ie,class:"hue-slider",color:unref(de),vertical:"",disabled:unref(re)},null,8,["color","disabled"]),createVNode$1(SvPanel,{ref_key:"svRef",ref:ae,color:unref(de),disabled:unref(re)},null,8,["color","disabled"])],2),Ce.showAlpha?(openBlock(),createBlock(AlphaSlider,{key:0,ref_key:"alphaRef",ref:oe,color:unref(de),disabled:unref(re)},null,8,["color","disabled"])):createCommentVNode("v-if",!0),Ce.predefine?(openBlock(),createBlock(Predefine,{key:1,ref:"predefine","enable-alpha":Ce.showAlpha,color:unref(de),colors:Ce.predefine,disabled:unref(re)},null,8,["enable-alpha","color","colors","disabled"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref($).e("footer"))},[createVNode$1(unref(ElInput),{ref_key:"inputRef",ref:le,modelValue:ue.value,"onUpdate:modelValue":xe[0]||(xe[0]=Ie=>ue.value=Ie),"validate-event":!1,size:"small",disabled:unref(re),onChange:he},null,8,["modelValue","disabled"]),renderSlot(Ce.$slots,"footer")],2)],34))}});var ColorPickerPanel=_export_sfc(_sfc_main$29,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker-panel/src/color-picker-panel.vue"]]);const ElColorPickerPanel=withInstall(ColorPickerPanel),colorPickerProps=buildProps({persistent:{type:Boolean,default:!0},modelValue:{type:definePropType(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:String,disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:useSizeProp,popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,tabindex:{type:[String,Number],default:0},teleported:useTooltipContentProps.teleported,appendTo:useTooltipContentProps.appendTo,predefine:{type:definePropType(Array)},validateEvent:{type:Boolean,default:!0},...useEmptyValuesProps,...useAriaProps(["ariaLabel"])}),colorPickerEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n)||isNil(n),[CHANGE_EVENT]:n=>isString$2(n)||isNil(n),activeChange:n=>isString$2(n)||isNil(n),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0},_hoisted_1$1g=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],_sfc_main$28=defineComponent({name:"ElColorPicker",__name:"color-picker",props:colorPickerProps,emits:colorPickerEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{t:$}=useLocale(),V=useNamespace("color"),{formItem:re}=useFormItem(),ie=useFormSize(),ae=useFormDisabled(),{valueOnClear:oe,isEmptyValue:le}=useEmptyValues(i,null),ue=useCommonColor(i,g),{inputId:de,isLabeledByFormItem:he}=useFormItemInputId(i,{formItemContext:re}),pe=ref(),_e=ref(),Ce=ref(),xe=ref(!1),Ie=ref(!1);let Ne=!0;const{isFocused:Oe,handleFocus:$e,handleBlur:Ve}=useFocusController(_e,{disabled:ae,beforeBlur(An){var xn;return(xn=pe.value)==null?void 0:xn.isFocusInsideContent(An)},afterBlur(){var An;Dt(!1),vn(),i.validateEvent&&((An=re==null?void 0:re.validate)==null||An.call(re,"blur").catch(xn=>void 0))}}),Ue=reactiveComputed(()=>{var An,xn;return(xn=(An=Ce.value)==null?void 0:An.color)!=null?xn:ue.color}),Fe=computed(()=>pick$1(i,Object.keys(colorPickerPanelProps))),ze=computed(()=>!i.modelValue&&!Ie.value?"transparent":At(Ue,i.showAlpha)),Pt=computed(()=>!i.modelValue&&!Ie.value?"":Ue.value),qe=computed(()=>he.value?void 0:i.ariaLabel||$("el.colorpicker.defaultLabel")),Et=computed(()=>he.value?re==null?void 0:re.labelId:void 0),kt=computed(()=>[V.b("picker"),V.is("disabled",ae.value),V.bm("picker",ie.value),V.is("focused",Oe.value)]);function At(An,xn){const{r:Ln,g:Nn,b:Pn,a:On}=An.toRgb();return xn?`rgba(${Ln}, ${Nn}, ${Pn}, ${On})`:`rgb(${Ln}, ${Nn}, ${Pn})`}function Dt(An){xe.value=An}const Lt=debounce(Dt,100,{leading:!0});function jt(){ae.value||Dt(!0)}function hn(){Lt(!1),vn()}function vn(){nextTick(()=>{i.modelValue?Ue.fromString(i.modelValue):(Ue.value="",nextTick(()=>{Ie.value=!1}))})}function _n(){ae.value||(xe.value&&vn(),Lt(!xe.value))}function wn(){const An=le(Ue.value)?oe.value:Ue.value;g(UPDATE_MODEL_EVENT,An),g(CHANGE_EVENT,An),i.validateEvent&&(re==null||re.validate("change").catch(xn=>void 0)),Lt(!1),nextTick(()=>{const xn=new Color$1({enableAlpha:i.showAlpha,format:i.colorFormat||"",value:i.modelValue});Ue.compare(xn)||vn()})}function bn(){Lt(!1),g(UPDATE_MODEL_EVENT,oe.value),g(CHANGE_EVENT,oe.value),i.modelValue!==oe.value&&i.validateEvent&&(re==null||re.validate("change").catch(An=>void 0)),vn(),g("clear")}function Cn(){var An,xn;(xn=(An=Ce==null?void 0:Ce.value)==null?void 0:An.inputRef)==null||xn.focus()}function Sn(){xe.value&&(hn(),Oe.value&&kn())}function Tn(An){An.preventDefault(),An.stopPropagation(),Dt(!1),vn()}function En(An){switch(getEventCode(An)){case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:case EVENT_CODE.space:An.preventDefault(),An.stopPropagation(),jt();break;case EVENT_CODE.esc:Tn(An);break}}function kn(){_e.value.focus()}function $n(){_e.value.blur()}return watch(()=>Pt.value,An=>{Ne&&g("activeChange",An),Ne=!0}),watch(()=>Ue.value,()=>{!i.modelValue&&!Ie.value&&(Ie.value=!0)}),watch(()=>i.modelValue,An=>{An?An&&An!==Ue.value&&(Ne=!1,Ue.fromString(An)):Ie.value=!1}),watch(()=>xe.value,()=>{Ce.value&&nextTick(Ce.value.update)}),provide(ROOT_COMMON_COLOR_INJECTION_KEY,ue),t({color:Ue,show:jt,hide:hn,focus:kn,blur:$n}),(An,xn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popper",ref:pe,visible:xe.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[unref(V).be("picker","panel"),An.popperClass],"popper-style":An.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:An.teleported,transition:`${unref(V).namespace.value}-zoom-in-top`,persistent:An.persistent,"append-to":An.appendTo,onShow:Cn,onHide:xn[2]||(xn[2]=Ln=>Dt(!1))},{content:withCtx(()=>[withDirectives((openBlock(),createBlock(unref(ElColorPickerPanel),mergeProps({ref_key:"pickerPanelRef",ref:Ce},Fe.value,{border:!1,"validate-event":!1,onKeydown:withKeys(Tn,["esc"])}),{footer:withCtx(()=>[createBaseVNode("div",null,[An.clearable?(openBlock(),createBlock(unref(ElButton),{key:0,class:normalizeClass(unref(V).be("footer","link-btn")),text:"",size:"small",onClick:bn},{default:withCtx(()=>[createTextVNode(toDisplayString(unref($)("el.colorpicker.clear")),1)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode$1(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(V).be("footer","btn")),onClick:wn},{default:withCtx(()=>[createTextVNode(toDisplayString(unref($)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[unref(ClickOutside),Sn,_e.value]])]),default:withCtx(()=>[createBaseVNode("div",mergeProps({id:unref(de),ref_key:"triggerRef",ref:_e},An.$attrs,{class:kt.value,role:"button","aria-label":qe.value,"aria-labelledby":Et.value,"aria-description":unref($)("el.colorpicker.description",{color:An.modelValue||""}),"aria-disabled":unref(ae),tabindex:unref(ae)?void 0:An.tabindex,onKeydown:En,onFocus:xn[0]||(xn[0]=(...Ln)=>unref($e)&&unref($e)(...Ln)),onBlur:xn[1]||(xn[1]=(...Ln)=>unref(Ve)&&unref(Ve)(...Ln))}),[createBaseVNode("div",{class:normalizeClass(unref(V).be("picker","trigger")),onClick:_n},[createBaseVNode("span",{class:normalizeClass([unref(V).be("picker","color"),unref(V).is("alpha",An.showAlpha)])},[createBaseVNode("span",{class:normalizeClass(unref(V).be("picker","color-inner")),style:normalizeStyle$1({backgroundColor:ze.value})},[withDirectives(createVNode$1(unref(ElIcon),{class:normalizeClass([unref(V).be("picker","icon"),unref(V).is("icon-arrow-down")])},{default:withCtx(()=>[createVNode$1(unref(arrow_down_default))]),_:1},8,["class"]),[[vShow,An.modelValue||Ie.value]]),withDirectives(createVNode$1(unref(ElIcon),{class:normalizeClass([unref(V).be("picker","empty"),unref(V).is("icon-close")])},{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1},8,["class"]),[[vShow,!An.modelValue&&!Ie.value]])],6)],2)],2)],16,_hoisted_1$1g)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}});var ColorPicker=_export_sfc(_sfc_main$28,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const ElColorPicker=withInstall(ColorPicker),configProviderProps=buildProps({a11y:{type:Boolean,default:!0},locale:{type:definePropType(Object)},size:useSizeProp,button:{type:definePropType(Object)},card:{type:definePropType(Object)},dialog:{type:definePropType(Object)},link:{type:definePropType(Object)},experimentalFeatures:{type:definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"},...useEmptyValuesProps}),messageConfig={placement:"top"},ConfigProvider=defineComponent({name:"ElConfigProvider",props:configProviderProps,setup(n,{slots:t}){const r=provideGlobalConfig(n);return watch(()=>n.message,i=>{var g,$;Object.assign(messageConfig,($=(g=r==null?void 0:r.value)==null?void 0:g.message)!=null?$:{},i??{})},{immediate:!0,deep:!0}),()=>renderSlot(t,"default",{config:r==null?void 0:r.value})}}),ElConfigProvider=withInstall(ConfigProvider),_sfc_main$27=defineComponent({name:"ElContainer",__name:"container",props:buildProps({direction:{type:String,values:["horizontal","vertical"]}}),setup(n){const t=n,r=useSlots(),i=useNamespace("container"),g=computed(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:r&&r.default?r.default().some(V=>{const re=V.type.name;return re==="ElHeader"||re==="ElFooter"}):!1);return($,V)=>(openBlock(),createElementBlock("section",{class:normalizeClass([unref(i).b(),unref(i).is("vertical",g.value)])},[renderSlot($.$slots,"default")],2))}});var Container=_export_sfc(_sfc_main$27,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const _sfc_main$26=defineComponent({name:"ElAside",__name:"aside",props:{width:{type:String,default:null}},setup(n){const t=n,r=useNamespace("aside"),i=computed(()=>t.width?r.cssVarBlock({width:t.width}):{});return(g,$)=>(openBlock(),createElementBlock("aside",{class:normalizeClass(unref(r).b()),style:normalizeStyle$1(i.value)},[renderSlot(g.$slots,"default")],6))}});var Aside=_export_sfc(_sfc_main$26,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const _sfc_main$25=defineComponent({name:"ElFooter",__name:"footer",props:{height:{type:String,default:null}},setup(n){const t=n,r=useNamespace("footer"),i=computed(()=>t.height?r.cssVarBlock({height:t.height}):{});return(g,$)=>(openBlock(),createElementBlock("footer",{class:normalizeClass(unref(r).b()),style:normalizeStyle$1(i.value)},[renderSlot(g.$slots,"default")],6))}});var Footer$2=_export_sfc(_sfc_main$25,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const _sfc_main$24=defineComponent({name:"ElHeader",__name:"header",props:{height:{type:String,default:null}},setup(n){const t=n,r=useNamespace("header"),i=computed(()=>t.height?r.cssVarBlock({height:t.height}):{});return(g,$)=>(openBlock(),createElementBlock("header",{class:normalizeClass(unref(r).b()),style:normalizeStyle$1(i.value)},[renderSlot(g.$slots,"default")],6))}});var Header$2=_export_sfc(_sfc_main$24,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const _sfc_main$23=defineComponent({name:"ElMain",__name:"main",setup(n){const t=useNamespace("main");return(r,i)=>(openBlock(),createElementBlock("main",{class:normalizeClass(unref(t).b())},[renderSlot(r.$slots,"default")],2))}});var Main=_export_sfc(_sfc_main$23,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const ElContainer=withInstall(Container,{Aside,Footer:Footer$2,Header:Header$2,Main}),ElAside=withNoopInstall(Aside),ElFooter=withNoopInstall(Footer$2),ElHeader=withNoopInstall(Header$2),ElMain=withNoopInstall(Main);var customParseFormat$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,g=/\d/,$=/\d\d/,V=/\d\d?/,re=/\d*[^-_:/,()\s\d]+/,ie={},ae=function(_e){return(_e=+_e)+(_e>68?1900:2e3)},oe=function(_e){return function(Ce){this[_e]=+Ce}},le=[/[+-]\d\d:?(\d\d)?|Z/,function(_e){(this.zone||(this.zone={})).offset=function(Ce){if(!Ce||Ce==="Z")return 0;var xe=Ce.match(/([+-]|\d\d)/g),Ie=60*xe[1]+(+xe[2]||0);return Ie===0?0:xe[0]==="+"?-Ie:Ie}(_e)}],ue=function(_e){var Ce=ie[_e];return Ce&&(Ce.indexOf?Ce:Ce.s.concat(Ce.f))},de=function(_e,Ce){var xe,Ie=ie.meridiem;if(Ie){for(var Ne=1;Ne<=24;Ne+=1)if(_e.indexOf(Ie(Ne,0,Ce))>-1){xe=Ne>12;break}}else xe=_e===(Ce?"pm":"PM");return xe},he={A:[re,function(_e){this.afternoon=de(_e,!1)}],a:[re,function(_e){this.afternoon=de(_e,!0)}],Q:[g,function(_e){this.month=3*(_e-1)+1}],S:[g,function(_e){this.milliseconds=100*+_e}],SS:[$,function(_e){this.milliseconds=10*+_e}],SSS:[/\d{3}/,function(_e){this.milliseconds=+_e}],s:[V,oe("seconds")],ss:[V,oe("seconds")],m:[V,oe("minutes")],mm:[V,oe("minutes")],H:[V,oe("hours")],h:[V,oe("hours")],HH:[V,oe("hours")],hh:[V,oe("hours")],D:[V,oe("day")],DD:[$,oe("day")],Do:[re,function(_e){var Ce=ie.ordinal,xe=_e.match(/\d+/);if(this.day=xe[0],Ce)for(var Ie=1;Ie<=31;Ie+=1)Ce(Ie).replace(/\[|\]/g,"")===_e&&(this.day=Ie)}],w:[V,oe("week")],ww:[$,oe("week")],M:[V,oe("month")],MM:[$,oe("month")],MMM:[re,function(_e){var Ce=ue("months"),xe=(ue("monthsShort")||Ce.map(function(Ie){return Ie.slice(0,3)})).indexOf(_e)+1;if(xe<1)throw new Error;this.month=xe%12||xe}],MMMM:[re,function(_e){var Ce=ue("months").indexOf(_e)+1;if(Ce<1)throw new Error;this.month=Ce%12||Ce}],Y:[/[+-]?\d+/,oe("year")],YY:[$,function(_e){this.year=ae(_e)}],YYYY:[/\d{4}/,oe("year")],Z:le,ZZ:le};function pe(_e){var Ce,xe;Ce=_e,xe=ie&&ie.formats;for(var Ie=(_e=Ce.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(ze,Pt,qe){var Et=qe&&qe.toUpperCase();return Pt||xe[qe]||r[qe]||xe[Et].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(kt,At,Dt){return At||Dt.slice(1)})})).match(i),Ne=Ie.length,Oe=0;Oe-1)return new Date((jt==="X"?1e3:1)*Lt);var _n=pe(jt)(Lt),wn=_n.year,bn=_n.month,Cn=_n.day,Sn=_n.hours,Tn=_n.minutes,En=_n.seconds,kn=_n.milliseconds,$n=_n.zone,An=_n.week,xn=new Date,Ln=Cn||(wn||bn?1:xn.getDate()),Nn=wn||xn.getFullYear(),Pn=0;wn&&!bn||(Pn=bn>0?bn-1:xn.getMonth());var On,Hn=Sn||0,Xn=Tn||0,In=En||0,or=kn||0;return $n?new Date(Date.UTC(Nn,Pn,Ln,Hn,Xn,In,or+60*$n.offset*1e3)):hn?new Date(Date.UTC(Nn,Pn,Ln,Hn,Xn,In,or)):(On=new Date(Nn,Pn,Ln,Hn,Xn,In,or),An&&(On=vn(On).week(An).toDate()),On)}catch{return new Date("")}}($e,Fe,Ve,xe),this.init(),Et&&Et!==!0&&(this.$L=this.locale(Et).$L),qe&&$e!=this.format(Fe)&&(this.$d=new Date("")),ie={}}else if(Fe instanceof Array)for(var kt=Fe.length,At=1;At<=kt;At+=1){Ue[1]=Fe[At-1];var Dt=xe.apply(this,Ue);if(Dt.isValid()){this.$d=Dt.$d,this.$L=Dt.$L,this.init();break}At===kt&&(this.$d=new Date(""))}else Ne.call(this,Oe)}}})})(customParseFormat$1);var customParseFormatExports=customParseFormat$1.exports;const customParseFormat=getDefaultExportFromCjs(customParseFormatExports),timeUnits$1=["hours","minutes","seconds"],PICKER_BASE_INJECTION_KEY="EP_PICKER_BASE",PICKER_POPPER_OPTIONS_INJECTION_KEY="ElPopperOptions",ROOT_COMMON_PICKER_INJECTION_KEY=Symbol("commonPickerContextKey"),DEFAULT_FORMATS_TIME="HH:mm:ss",DEFAULT_FORMATS_DATE="YYYY-MM-DD",DEFAULT_FORMATS_DATEPICKER={date:DEFAULT_FORMATS_DATE,dates:DEFAULT_FORMATS_DATE,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:DEFAULT_FORMATS_DATE,datetimerange:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`},useCommonPicker=(n,t)=>{const{lang:r}=useLocale(),i=ref(!1),g=ref(!1),$=ref(null),V=computed(()=>{const{modelValue:he}=n;return!he||isArray$5(he)&&!he.filter(Boolean).length}),re=he=>{if(!valueEquals(n.modelValue,he)){let pe;isArray$5(he)?pe=he.map(Ce=>formatter(Ce,n.valueFormat,r.value)):he&&(pe=formatter(he,n.valueFormat,r.value)),t(UPDATE_MODEL_EVENT,he&&pe,r.value)}},ie=computed(()=>{var he;let pe;if(V.value?ae.value.getDefaultValue&&(pe=ae.value.getDefaultValue()):isArray$5(n.modelValue)?pe=n.modelValue.map(_e=>parseDate$1(_e,n.valueFormat,r.value)):pe=parseDate$1((he=n.modelValue)!=null?he:"",n.valueFormat,r.value),ae.value.getRangeAvailableTime){const _e=ae.value.getRangeAvailableTime(pe);isEqual$1(_e,pe)||(pe=_e,V.value||re(dayOrDaysToDate(pe)))}return isArray$5(pe)&&pe.some(_e=>!_e)&&(pe=[]),pe}),ae=ref({});return{parsedValue:ie,pickerActualVisible:g,pickerOptions:ae,pickerVisible:i,userInput:$,valueIsEmpty:V,emitInput:re,onCalendarChange:he=>{t("calendar-change",he)},onPanelChange:(he,pe,_e)=>{t("panel-change",he,pe,_e)},onPick:(he="",pe=!1)=>{i.value=pe;let _e;isArray$5(he)?_e=he.map(Ce=>Ce.toDate()):_e=he&&he.toDate(),$.value=null,re(_e)},onSetPickerOption:he=>{ae.value[he[0]]=he[1],ae.value.panelReady=!0}}},disabledTimeListsProps=buildProps({disabledHours:{type:definePropType(Function)},disabledMinutes:{type:definePropType(Function)},disabledSeconds:{type:definePropType(Function)}}),timePanelSharedProps=buildProps({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),timePickerDefaultProps=buildProps({automaticDropdown:{type:Boolean,default:!0},id:{type:definePropType([Array,String])},name:{type:definePropType([Array,String])},popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:definePropType([String,Object]),default:circle_close_default},editable:{type:Boolean,default:!0},prefixIcon:{type:definePropType([String,Object]),default:""},size:useSizeProp,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:definePropType(Object),default:()=>({})},modelValue:{type:definePropType([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:definePropType([Date,Array])},defaultTime:{type:definePropType([Date,Array])},isRange:Boolean,...disabledTimeListsProps,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:definePropType([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:definePropType(String),values:Ee,default:"bottom"},fallbackPlacements:{type:definePropType(Array),default:["bottom","top","right","left"]},...useEmptyValuesProps,...useAriaProps(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),timePickerRangeTriggerProps=buildProps({id:{type:definePropType(Array)},name:{type:definePropType(Array)},modelValue:{type:definePropType([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),_hoisted_1$1f=["id","name","placeholder","value","disabled"],_hoisted_2$R=["id","name","placeholder","value","disabled"],_sfc_main$22=defineComponent({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:timePickerRangeTriggerProps,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(n,{expose:t,emit:r}){const i=n,g=r,{formItem:$}=useFormItem(),{inputId:V}=useFormItemInputId(reactive({id:computed(()=>{var Ue;return(Ue=i.id)==null?void 0:Ue[0]})}),{formItemContext:$}),re=useAttrs(),ie=useNamespace("date"),ae=useNamespace("range"),oe=ref(),le=ref(),{wrapperRef:ue,isFocused:de}=useFocusController(oe,{disabled:computed(()=>i.disabled)}),he=Ue=>{g("click",Ue)},pe=Ue=>{g("mouseenter",Ue)},_e=Ue=>{g("mouseleave",Ue)},Ce=Ue=>{g("touchstart",Ue)},xe=Ue=>{g("startInput",Ue)},Ie=Ue=>{g("endInput",Ue)},Ne=Ue=>{g("startChange",Ue)},Oe=Ue=>{g("endChange",Ue)};return t({focus:()=>{var Ue;(Ue=oe.value)==null||Ue.focus()},blur:()=>{var Ue,Fe;(Ue=oe.value)==null||Ue.blur(),(Fe=le.value)==null||Fe.blur()}}),(Ue,Fe)=>(openBlock(),createElementBlock("div",{ref_key:"wrapperRef",ref:ue,class:normalizeClass([unref(ie).is("active",unref(de)),Ue.$attrs.class]),style:normalizeStyle$1(Ue.$attrs.style),onClick:he,onMouseenter:pe,onMouseleave:_e,onTouchstartPassive:Ce},[renderSlot(Ue.$slots,"prefix"),createBaseVNode("input",mergeProps(unref(re),{id:unref(V),ref_key:"inputRef",ref:oe,name:Ue.name&&Ue.name[0],placeholder:Ue.startPlaceholder,value:Ue.modelValue&&Ue.modelValue[0],class:unref(ae).b("input"),disabled:Ue.disabled,onInput:xe,onChange:Ne}),null,16,_hoisted_1$1f),renderSlot(Ue.$slots,"range-separator"),createBaseVNode("input",mergeProps(unref(re),{id:Ue.id&&Ue.id[1],ref_key:"endInputRef",ref:le,name:Ue.name&&Ue.name[1],placeholder:Ue.endPlaceholder,value:Ue.modelValue&&Ue.modelValue[1],class:unref(ae).b("input"),disabled:Ue.disabled,onInput:Ie,onChange:Oe}),null,16,_hoisted_2$R),renderSlot(Ue.$slots,"suffix")],38))}});var PickerRangeTrigger=_export_sfc(_sfc_main$22,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker-range-trigger.vue"]]);const _sfc_main$21=defineComponent({name:"Picker",__name:"picker",props:timePickerDefaultProps,emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(n,{expose:t,emit:r}){const i=n,g=r,$=useAttrs$1(),V=useNamespace("date"),re=useNamespace("input"),ie=useNamespace("range"),{formItem:ae}=useFormItem(),oe=inject(PICKER_POPPER_OPTIONS_INJECTION_KEY,{}),le=useEmptyValues(i,null),ue=ref(),de=ref(),he=ref(null);let pe=!1;const _e=useFormDisabled(),Ce=useCommonPicker(i,g),{parsedValue:xe,pickerActualVisible:Ie,userInput:Ne,pickerVisible:Oe,pickerOptions:$e,valueIsEmpty:Ve,emitInput:Ue,onPick:Fe,onSetPickerOption:ze,onCalendarChange:Pt,onPanelChange:qe}=Ce,{isFocused:Et,handleFocus:kt,handleBlur:At}=useFocusController(de,{disabled:_e,beforeFocus(){return i.readonly},afterFocus(){i.automaticDropdown&&(Oe.value=!0)},beforeBlur(Fn){var cr;return!pe&&((cr=ue.value)==null?void 0:cr.isFocusInsideContent(Fn))},afterBlur(){Bn(),Oe.value=!1,pe=!1,i.validateEvent&&(ae==null||ae.validate("blur").catch(Fn=>void 0))}}),Dt=ref(!1),Lt=computed(()=>[V.b("editor"),V.bm("editor",i.type),re.e("wrapper"),V.is("disabled",_e.value),V.is("active",Oe.value),ie.b("editor"),Gn?ie.bm("editor",Gn.value):"",$.class]),jt=computed(()=>[re.e("icon"),ie.e("close-icon"),On.value?"":ie.em("close-icon","hidden")]);watch(Oe,Fn=>{Fn?nextTick(()=>{Fn&&(he.value=i.modelValue)}):(Ne.value=null,nextTick(()=>{hn(i.modelValue)}))});const hn=(Fn,cr)=>{(cr||!valueEquals(Fn,he.value))&&(g(CHANGE_EVENT,Fn),cr&&(he.value=Fn),i.validateEvent&&(ae==null||ae.validate("change").catch(Un=>void 0)))},vn=Fn=>{g("keydown",Fn)},_n=computed(()=>de.value?Array.from(de.value.$el.querySelectorAll("input")):[]),wn=(Fn,cr,Un)=>{const gr=_n.value;gr.length&&(!Un||Un==="min"?(gr[0].setSelectionRange(Fn,cr),gr[0].focus()):Un==="max"&&(gr[1].setSelectionRange(Fn,cr),gr[1].focus()))},bn=()=>{Ie.value=!0},Cn=()=>{g("visible-change",!0)},Sn=()=>{Ie.value=!1,Oe.value=!1,g("visible-change",!1)},Tn=()=>{Oe.value=!0},En=()=>{Oe.value=!1},kn=computed(()=>{const Fn=zn(xe.value);return isArray$5(Ne.value)?[Ne.value[0]||Fn&&Fn[0]||"",Ne.value[1]||Fn&&Fn[1]||""]:Ne.value!==null?Ne.value:!An.value&&Ve.value||!Oe.value&&Ve.value?"":Fn?xn.value||Ln.value||Nn.value?Fn.join(", "):Fn:""}),$n=computed(()=>i.type.includes("time")),An=computed(()=>i.type.startsWith("time")),xn=computed(()=>i.type==="dates"),Ln=computed(()=>i.type==="months"),Nn=computed(()=>i.type==="years"),Pn=computed(()=>i.prefixIcon||($n.value?clock_default:calendar_default)),On=computed(()=>i.clearable&&!_e.value&&!i.readonly&&!Ve.value&&(Dt.value||Et.value)),Hn=Fn=>{i.readonly||_e.value||(On.value&&(Fn==null||Fn.stopPropagation(),$e.value.handleClear?$e.value.handleClear():Ue(le.valueOnClear.value),hn(le.valueOnClear.value,!0),Sn()),g("clear"))},Xn=async Fn=>{var cr;i.readonly||_e.value||(((cr=Fn.target)==null?void 0:cr.tagName)!=="INPUT"||Et.value||!i.automaticDropdown)&&(Oe.value=!0)},In=()=>{i.readonly||_e.value||!Ve.value&&i.clearable&&(Dt.value=!0)},or=()=>{Dt.value=!1},Qn=Fn=>{var cr;i.readonly||_e.value||(((cr=Fn.touches[0].target)==null?void 0:cr.tagName)!=="INPUT"||Et.value||!i.automaticDropdown)&&(Oe.value=!0)},Zn=computed(()=>i.type.includes("range")),Gn=useFormSize(),Rn=computed(()=>{var Fn,cr;return(cr=(Fn=unref(ue))==null?void 0:Fn.popperRef)==null?void 0:cr.contentRef}),Mn=onClickOutside(de,Fn=>{const cr=unref(Rn),Un=unrefElement(de);cr&&(Fn.target===cr||Fn.composedPath().includes(cr))||Fn.target===Un||Un&&Fn.composedPath().includes(Un)||(Oe.value=!1)});onBeforeUnmount(()=>{Mn==null||Mn()});const Bn=()=>{if(Ne.value){const Fn=qn(kn.value);Fn&&(jn(Fn)&&Ue(dayOrDaysToDate(Fn)),Ne.value=null)}Ne.value===""&&(Ue(le.valueOnClear.value),hn(le.valueOnClear.value,!0),Ne.value=null)},qn=Fn=>Fn?$e.value.parseUserInput(Fn):null,zn=Fn=>Fn?isArray$5(Fn)?Fn.map(Un=>Un.format(i.format)):Fn.format(i.format):null,jn=Fn=>$e.value.isValidValue(Fn),tr=async Fn=>{if(i.readonly||_e.value)return;const cr=getEventCode(Fn);if(vn(Fn),cr===EVENT_CODE.esc){Oe.value===!0&&(Oe.value=!1,Fn.preventDefault(),Fn.stopPropagation());return}if(cr===EVENT_CODE.down&&($e.value.handleFocusPicker&&(Fn.preventDefault(),Fn.stopPropagation()),Oe.value===!1&&(Oe.value=!0,await nextTick()),$e.value.handleFocusPicker)){$e.value.handleFocusPicker();return}if(cr===EVENT_CODE.tab){pe=!0;return}if(cr===EVENT_CODE.enter||cr===EVENT_CODE.numpadEnter){Oe.value?(Ne.value===null||Ne.value===""||jn(qn(kn.value)))&&(Bn(),Oe.value=!1):Oe.value=!0,Fn.preventDefault(),Fn.stopPropagation();return}if(Ne.value){Fn.stopPropagation();return}$e.value.handleKeydownInput&&$e.value.handleKeydownInput(Fn)},hr=Fn=>{Ne.value=Fn,Oe.value||(Oe.value=!0)},ir=Fn=>{const cr=Fn.target;Ne.value?Ne.value=[cr.value,Ne.value[1]]:Ne.value=[cr.value,null]},pr=Fn=>{const cr=Fn.target;Ne.value?Ne.value=[Ne.value[0],cr.value]:Ne.value=[null,cr.value]},rr=()=>{var Fn;const cr=Ne.value,Un=qn(cr&&cr[0]),gr=unref(xe);if(Un&&Un.isValid()){Ne.value=[zn(Un),((Fn=kn.value)==null?void 0:Fn[1])||null];const vr=[Un,gr&&(gr[1]||null)];jn(vr)&&(Ue(dayOrDaysToDate(vr)),Ne.value=null)}},lr=()=>{var Fn;const cr=unref(Ne),Un=qn(cr&&cr[1]),gr=unref(xe);if(Un&&Un.isValid()){Ne.value=[((Fn=unref(kn))==null?void 0:Fn[0])||null,zn(Un)];const vr=[gr&&gr[0],Un];jn(vr)&&(Ue(dayOrDaysToDate(vr)),Ne.value=null)}},Yn=()=>{var Fn;(Fn=de.value)==null||Fn.focus()},er=()=>{var Fn;(Fn=de.value)==null||Fn.blur()};return provide(PICKER_BASE_INJECTION_KEY,{props:i,emptyValues:le}),provide(ROOT_COMMON_PICKER_INJECTION_KEY,Ce),t({focus:Yn,blur:er,handleOpen:Tn,handleClose:En,onPick:Fe}),(Fn,cr)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"refPopper",ref:ue,visible:unref(Oe),effect:"light",pure:"",trigger:"click"},Fn.$attrs,{role:"dialog",teleported:"",transition:`${unref(V).namespace.value}-zoom-in-top`,"popper-class":[`${unref(V).namespace.value}-picker__popper`,Fn.popperClass],"popper-style":Fn.popperStyle,"popper-options":unref(oe),"fallback-placements":Fn.fallbackPlacements,"gpu-acceleration":!1,placement:Fn.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:bn,onShow:Cn,onHide:Sn}),{default:withCtx(()=>[Zn.value?(openBlock(),createBlock(PickerRangeTrigger,{key:1,id:Fn.id,ref_key:"inputRef",ref:de,"model-value":kn.value,name:Fn.name,disabled:unref(_e),readonly:!Fn.editable||Fn.readonly,"start-placeholder":Fn.startPlaceholder,"end-placeholder":Fn.endPlaceholder,class:normalizeClass(Lt.value),style:normalizeStyle$1(Fn.$attrs.style),"aria-label":Fn.ariaLabel,tabindex:Fn.tabindex,autocomplete:"off",role:"combobox",onClick:Xn,onFocus:unref(kt),onBlur:unref(At),onStartInput:ir,onStartChange:rr,onEndInput:pr,onEndChange:lr,onMousedown:Xn,onMouseenter:In,onMouseleave:or,onTouchstartPassive:Qn,onKeydown:tr},{prefix:withCtx(()=>[Pn.value?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(re).e("icon"),unref(ie).e("icon")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Pn.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),"range-separator":withCtx(()=>[renderSlot(Fn.$slots,"range-separator",{},()=>[createBaseVNode("span",{class:normalizeClass(unref(ie).b("separator"))},toDisplayString(Fn.rangeSeparator),3)])]),suffix:withCtx(()=>[Fn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(jt.value),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:Hn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Fn.clearIcon)))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(openBlock(),createBlock(unref(ElInput),{key:0,id:Fn.id,ref_key:"inputRef",ref:de,"container-role":"combobox","model-value":kn.value,name:Fn.name,size:unref(Gn),disabled:unref(_e),placeholder:Fn.placeholder,class:normalizeClass([unref(V).b("editor"),unref(V).bm("editor",Fn.type),unref(V).is("focus",unref(Oe)),Fn.$attrs.class]),style:normalizeStyle$1(Fn.$attrs.style),readonly:!Fn.editable||Fn.readonly||xn.value||Ln.value||Nn.value||Fn.type==="week","aria-label":Fn.ariaLabel,tabindex:Fn.tabindex,"validate-event":!1,onInput:hr,onFocus:unref(kt),onBlur:unref(At),onKeydown:tr,onChange:Bn,onMousedown:Xn,onMouseenter:In,onMouseleave:or,onTouchstartPassive:Qn,onClick:cr[0]||(cr[0]=withModifiers(()=>{},["stop"]))},{prefix:withCtx(()=>[Pn.value?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(re).e("icon")),onMousedown:withModifiers(Xn,["prevent"]),onTouchstartPassive:Qn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Pn.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),suffix:withCtx(()=>[On.value&&Fn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(`${unref(re).e("icon")} clear-icon`),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:Hn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Fn.clearIcon)))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:withCtx(()=>[renderSlot(Fn.$slots,"default",{visible:unref(Oe),actualVisible:unref(Ie),parsedValue:unref(xe),format:Fn.format,dateFormat:Fn.dateFormat,timeFormat:Fn.timeFormat,unlinkPanels:Fn.unlinkPanels,type:Fn.type,defaultValue:Fn.defaultValue,showNow:Fn.showNow,showConfirm:Fn.showConfirm,showFooter:Fn.showFooter,showWeekNumber:Fn.showWeekNumber,onPick:cr[1]||(cr[1]=(...Un)=>unref(Fe)&&unref(Fe)(...Un)),onSelectRange:wn,onSetPickerOption:cr[2]||(cr[2]=(...Un)=>unref(ze)&&unref(ze)(...Un)),onCalendarChange:cr[3]||(cr[3]=(...Un)=>unref(Pt)&&unref(Pt)(...Un)),onClear:Hn,onPanelChange:cr[4]||(cr[4]=(...Un)=>unref(qe)&&unref(qe)(...Un)),onMousedown:cr[5]||(cr[5]=withModifiers(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}});var CommonPicker=_export_sfc(_sfc_main$21,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const panelTimePickerProps=buildProps({...timePanelSharedProps,datetimeRole:String,parsedValue:{type:definePropType(Object)}}),useTimePanel=({getAvailableHours:n,getAvailableMinutes:t,getAvailableSeconds:r})=>{const i=(V,re,ie,ae)=>{const oe={hour:n,minute:t,second:r};let le=V;return["hour","minute","second"].forEach(ue=>{if(oe[ue]){let de;const he=oe[ue];switch(ue){case"minute":{de=he(le.hour(),re,ae);break}case"second":{de=he(le.hour(),le.minute(),re,ae);break}default:{de=he(re,ae);break}}if(de!=null&&de.length&&!de.includes(le[ue]())){const pe=ie?0:de.length-1;le=le[ue](de[pe])}}}),le},g={};return{timePickerOptions:g,getAvailableTime:i,onSetOption:([V,re])=>{g[V]=re}}},makeAvailableArr=n=>{const t=(i,g)=>i||g,r=i=>i!==!0;return n.map(t).filter(r)},getTimeLists=(n,t,r)=>({getHoursList:(V,re)=>makeList(24,n&&(()=>n==null?void 0:n(V,re))),getMinutesList:(V,re,ie)=>makeList(60,t&&(()=>t==null?void 0:t(V,re,ie))),getSecondsList:(V,re,ie,ae)=>makeList(60,r&&(()=>r==null?void 0:r(V,re,ie,ae)))}),buildAvailableTimeSlotGetter=(n,t,r)=>{const{getHoursList:i,getMinutesList:g,getSecondsList:$}=getTimeLists(n,t,r);return{getAvailableHours:(ae,oe)=>makeAvailableArr(i(ae,oe)),getAvailableMinutes:(ae,oe,le)=>makeAvailableArr(g(ae,oe,le)),getAvailableSeconds:(ae,oe,le,ue)=>makeAvailableArr($(ae,oe,le,ue))}},useOldValue=n=>{const t=ref(n.parsedValue);return watch(()=>n.visible,r=>{r||(t.value=n.parsedValue)}),t},basicTimeSpinnerProps=buildProps({role:{type:String,required:!0},spinnerDate:{type:definePropType(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:definePropType(String),default:""},...disabledTimeListsProps}),REPEAT_INTERVAL=100,REPEAT_DELAY=600,SCOPE$4="_RepeatClick",vRepeatClick={beforeMount(n,t){const r=t.value,{interval:i=REPEAT_INTERVAL,delay:g=REPEAT_DELAY}=isFunction$4(r)?{}:r;let $,V;const re=()=>isFunction$4(r)?r():r.handler(),ie=()=>{V&&(clearTimeout(V),V=void 0),$&&(clearInterval($),$=void 0)},ae=oe=>{oe.button===0&&(ie(),re(),document.addEventListener("mouseup",ie,{once:!0}),V=setTimeout(()=>{$=setInterval(()=>{re()},i)},g))};n[SCOPE$4]={start:ae,clear:ie},n.addEventListener("mousedown",ae)},unmounted(n){if(!n[SCOPE$4])return;const{start:t,clear:r}=n[SCOPE$4];t&&n.removeEventListener("mousedown",t),r&&(r(),document.removeEventListener("mouseup",r)),n[SCOPE$4]=null}},_hoisted_1$1e=["onClick"],_hoisted_2$Q=["onMouseenter"],_sfc_main$20=defineComponent({__name:"basic-time-spinner",props:basicTimeSpinnerProps,emits:[CHANGE_EVENT,"select-range","set-option"],setup(n,{emit:t}){const r=n,i=inject(PICKER_BASE_INJECTION_KEY),{isRange:g,format:$}=i.props,V=t,re=useNamespace("time"),{getHoursList:ie,getMinutesList:ae,getSecondsList:oe}=getTimeLists(r.disabledHours,r.disabledMinutes,r.disabledSeconds);let le=!1;const ue=ref(),de=ref(),he=ref(),pe=ref(),_e={hours:de,minutes:he,seconds:pe},Ce=computed(()=>r.showSeconds?timeUnits$1:timeUnits$1.slice(0,2)),xe=computed(()=>{const{spinnerDate:bn}=r,Cn=bn.hour(),Sn=bn.minute(),Tn=bn.second();return{hours:Cn,minutes:Sn,seconds:Tn}}),Ie=computed(()=>{const{hours:bn,minutes:Cn}=unref(xe),{role:Sn,spinnerDate:Tn}=r,En=g?void 0:Tn;return{hours:ie(Sn,En),minutes:ae(bn,Sn,En),seconds:oe(bn,Cn,Sn,En)}}),Ne=computed(()=>{const{hours:bn,minutes:Cn,seconds:Sn}=unref(xe);return{hours:buildTimeList(bn,23),minutes:buildTimeList(Cn,59),seconds:buildTimeList(Sn,59)}}),Oe=debounce(bn=>{le=!1,Ue(bn)},200),$e=bn=>{if(!!!r.amPmMode)return"";const Sn=r.amPmMode==="A";let Tn=bn<12?" am":" pm";return Sn&&(Tn=Tn.toUpperCase()),Tn},Ve=bn=>{let Cn=[0,0];const Sn=$||DEFAULT_FORMATS_TIME,Tn=Sn.indexOf("HH"),En=Sn.indexOf("mm"),kn=Sn.indexOf("ss");switch(bn){case"hours":Tn!==-1&&(Cn=[Tn,Tn+2]);break;case"minutes":En!==-1&&(Cn=[En,En+2]);break;case"seconds":kn!==-1&&(Cn=[kn,kn+2]);break}const[$n,An]=Cn;V("select-range",$n,An),ue.value=bn},Ue=bn=>{Pt(bn,unref(xe)[bn])},Fe=()=>{Ue("hours"),Ue("minutes"),Ue("seconds")},ze=bn=>bn.querySelector(`.${re.namespace.value}-scrollbar__wrap`),Pt=(bn,Cn)=>{if(r.arrowControl)return;const Sn=unref(_e[bn]);Sn&&Sn.$el&&(ze(Sn.$el).scrollTop=Math.max(0,Cn*qe(bn)))},qe=bn=>{const Cn=unref(_e[bn]),Sn=Cn==null?void 0:Cn.$el.querySelector("li");return Sn&&Number.parseFloat(getStyle$1(Sn,"height"))||0},Et=()=>{At(1)},kt=()=>{At(-1)},At=bn=>{ue.value||Ve("hours");const Cn=ue.value,Sn=unref(xe)[Cn],Tn=ue.value==="hours"?24:60,En=Dt(Cn,Sn,bn,Tn);Lt(Cn,En),Pt(Cn,En),nextTick(()=>Ve(Cn))},Dt=(bn,Cn,Sn,Tn)=>{let En=(Cn+Sn+Tn)%Tn;const kn=unref(Ie)[bn];for(;kn[En]&&En!==Cn;)En=(En+Sn+Tn)%Tn;return En},Lt=(bn,Cn)=>{if(unref(Ie)[bn][Cn])return;const{hours:En,minutes:kn,seconds:$n}=unref(xe);let An;switch(bn){case"hours":An=r.spinnerDate.hour(Cn).minute(kn).second($n);break;case"minutes":An=r.spinnerDate.hour(En).minute(Cn).second($n);break;case"seconds":An=r.spinnerDate.hour(En).minute(kn).second(Cn);break}V(CHANGE_EVENT,An)},jt=(bn,{value:Cn,disabled:Sn})=>{Sn||(Lt(bn,Cn),Ve(bn),Pt(bn,Cn))},hn=bn=>{const Cn=unref(_e[bn]);if(!Cn)return;le=!0,Oe(bn);const Sn=Math.min(Math.round((ze(Cn.$el).scrollTop-(vn(bn)*.5-10)/qe(bn)+3)/qe(bn)),bn==="hours"?23:59);Lt(bn,Sn)},vn=bn=>unref(_e[bn]).$el.offsetHeight,_n=()=>{const bn=Cn=>{const Sn=unref(_e[Cn]);Sn&&Sn.$el&&(ze(Sn.$el).onscroll=()=>{hn(Cn)})};bn("hours"),bn("minutes"),bn("seconds")};onMounted(()=>{nextTick(()=>{!r.arrowControl&&_n(),Fe(),r.role==="start"&&Ve("hours")})});const wn=(bn,Cn)=>{_e[Cn].value=bn??void 0};return V("set-option",[`${r.role}_scrollDown`,At]),V("set-option",[`${r.role}_emitSelectRange`,Ve]),watch(()=>r.spinnerDate,()=>{le||Fe()}),(bn,Cn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(re).b("spinner"),{"has-seconds":bn.showSeconds}])},[bn.arrowControl?createCommentVNode("v-if",!0):(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(Ce.value,Sn=>(openBlock(),createBlock(unref(ElScrollbar),{key:Sn,ref_for:!0,ref:Tn=>wn(Tn,Sn),class:normalizeClass(unref(re).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":unref(re).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:Tn=>Ve(Sn),onMousemove:Tn=>Ue(Sn)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ie.value[Sn],(Tn,En)=>(openBlock(),createElementBlock("li",{key:En,class:normalizeClass([unref(re).be("spinner","item"),unref(re).is("active",En===xe.value[Sn]),unref(re).is("disabled",Tn)]),onClick:kn=>jt(Sn,{value:En,disabled:Tn})},[Sn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(("0"+(bn.amPmMode?En%12||12:En)).slice(-2))+toDisplayString($e(En)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(("0"+En).slice(-2)),1)],64))],10,_hoisted_1$1e))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),bn.arrowControl?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(Ce.value,Sn=>(openBlock(),createElementBlock("div",{key:Sn,class:normalizeClass([unref(re).be("spinner","wrapper"),unref(re).is("arrow")]),onMouseenter:Tn=>Ve(Sn)},[withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-up",unref(re).be("spinner","arrow")])},{default:withCtx(()=>[createVNode$1(unref(arrow_up_default))]),_:1},8,["class"])),[[unref(vRepeatClick),kt]]),withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-down",unref(re).be("spinner","arrow")])},{default:withCtx(()=>[createVNode$1(unref(arrow_down_default))]),_:1},8,["class"])),[[unref(vRepeatClick),Et]]),createBaseVNode("ul",{class:normalizeClass(unref(re).be("spinner","list"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ne.value[Sn],(Tn,En)=>(openBlock(),createElementBlock("li",{key:En,class:normalizeClass([unref(re).be("spinner","item"),unref(re).is("active",Tn===xe.value[Sn]),unref(re).is("disabled",Ie.value[Sn][Tn])])},[unref(isNumber$2)(Tn)?(openBlock(),createElementBlock(Fragment,{key:0},[Sn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(("0"+(bn.amPmMode?Tn%12||12:Tn)).slice(-2))+toDisplayString($e(Tn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(("0"+Tn).slice(-2)),1)],64))],64)):createCommentVNode("v-if",!0)],2))),128))],2)],42,_hoisted_2$Q))),128)):createCommentVNode("v-if",!0)],2))}});var TimeSpinner=_export_sfc(_sfc_main$20,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const _sfc_main$1$=defineComponent({__name:"panel-time-pick",props:panelTimePickerProps,emits:["pick","select-range","set-picker-option"],setup(n,{emit:t}){const r=n,i=t,g=inject(PICKER_BASE_INJECTION_KEY),{arrowControl:$,disabledHours:V,disabledMinutes:re,disabledSeconds:ie,defaultValue:ae}=g.props,{getAvailableHours:oe,getAvailableMinutes:le,getAvailableSeconds:ue}=buildAvailableTimeSlotGetter(V,re,ie),de=useNamespace("time"),{t:he,lang:pe}=useLocale(),_e=ref([0,2]),Ce=useOldValue(r),xe=computed(()=>isUndefined$1(r.actualVisible)?`${de.namespace.value}-zoom-in-top`:""),Ie=computed(()=>r.format.includes("ss")),Ne=computed(()=>r.format.includes("A")?"A":r.format.includes("a")?"a":""),Oe=jt=>{const hn=dayjs(jt).locale(pe.value),vn=At(hn);return hn.isSame(vn)},$e=()=>{const jt=Ce.value;i("pick",jt,!1),nextTick(()=>{Ce.value=jt})},Ve=(jt=!1,hn=!1)=>{hn||i("pick",r.parsedValue,jt)},Ue=jt=>{if(!r.visible)return;const hn=At(jt).millisecond(0);i("pick",hn,!0)},Fe=(jt,hn)=>{i("select-range",jt,hn),_e.value=[jt,hn]},ze=jt=>{const hn=r.format,vn=hn.indexOf("HH"),_n=hn.indexOf("mm"),wn=hn.indexOf("ss"),bn=[],Cn=[];vn!==-1&&(bn.push(vn),Cn.push("hours")),_n!==-1&&(bn.push(_n),Cn.push("minutes")),wn!==-1&&Ie.value&&(bn.push(wn),Cn.push("seconds"));const Tn=(bn.indexOf(_e.value[0])+jt+bn.length)%bn.length;qe.start_emitSelectRange(Cn[Tn])},Pt=jt=>{const hn=getEventCode(jt),{left:vn,right:_n,up:wn,down:bn}=EVENT_CODE;if([vn,_n].includes(hn)){ze(hn===vn?-1:1),jt.preventDefault();return}if([wn,bn].includes(hn)){const Cn=hn===wn?-1:1;qe.start_scrollDown(Cn),jt.preventDefault();return}},{timePickerOptions:qe,onSetOption:Et,getAvailableTime:kt}=useTimePanel({getAvailableHours:oe,getAvailableMinutes:le,getAvailableSeconds:ue}),At=jt=>kt(jt,r.datetimeRole||"",!0),Dt=jt=>jt?dayjs(jt,r.format).locale(pe.value):null,Lt=()=>dayjs(ae).locale(pe.value);return i("set-picker-option",["isValidValue",Oe]),i("set-picker-option",["parseUserInput",Dt]),i("set-picker-option",["handleKeydownInput",Pt]),i("set-picker-option",["getRangeAvailableTime",At]),i("set-picker-option",["getDefaultValue",Lt]),(jt,hn)=>(openBlock(),createBlock(Transition,{name:xe.value},{default:withCtx(()=>[jt.actualVisible||jt.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(de).b("panel"))},[createBaseVNode("div",{class:normalizeClass([unref(de).be("panel","content"),{"has-seconds":Ie.value}])},[createVNode$1(TimeSpinner,{ref:"spinner",role:jt.datetimeRole||"start","arrow-control":unref($),"show-seconds":Ie.value,"am-pm-mode":Ne.value,"spinner-date":jt.parsedValue,"disabled-hours":unref(V),"disabled-minutes":unref(re),"disabled-seconds":unref(ie),onChange:Ue,onSetOption:unref(Et),onSelectRange:Fe},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),createBaseVNode("div",{class:normalizeClass(unref(de).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(de).be("panel","btn"),"cancel"]),onClick:$e},toDisplayString(unref(he)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(de).be("panel","btn"),"confirm"]),onClick:hn[0]||(hn[0]=vn=>Ve())},toDisplayString(unref(he)("el.datepicker.confirm")),3)],2)],2)):createCommentVNode("v-if",!0)]),_:1},8,["name"]))}});var TimePickPanel=_export_sfc(_sfc_main$1$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const panelTimeRangeProps=buildProps({...timePanelSharedProps,parsedValue:{type:definePropType(Array)}}),_hoisted_1$1d=["disabled"],_sfc_main$1_=defineComponent({__name:"panel-time-range",props:panelTimeRangeProps,emits:["pick","select-range","set-picker-option"],setup(n,{emit:t}){const r=n,i=t,g=(xn,Ln)=>{const Nn=[];for(let Pn=xn;Pn<=Ln;Pn++)Nn.push(Pn);return Nn},{t:$,lang:V}=useLocale(),re=useNamespace("time"),ie=useNamespace("picker"),ae=inject(PICKER_BASE_INJECTION_KEY),{arrowControl:oe,disabledHours:le,disabledMinutes:ue,disabledSeconds:de,defaultValue:he}=ae.props,pe=computed(()=>[re.be("range-picker","body"),re.be("panel","content"),re.is("arrow",oe),Oe.value?"has-seconds":""]),_e=computed(()=>[re.be("range-picker","body"),re.be("panel","content"),re.is("arrow",oe),Oe.value?"has-seconds":""]),Ce=computed(()=>r.parsedValue[0]),xe=computed(()=>r.parsedValue[1]),Ie=useOldValue(r),Ne=()=>{const xn=Ie.value;i("pick",xn,!1),nextTick(()=>{Ie.value=xn})},Oe=computed(()=>r.format.includes("ss")),$e=computed(()=>r.format.includes("A")?"A":r.format.includes("a")?"a":""),Ve=(xn=!1)=>{i("pick",[Ce.value,xe.value],xn)},Ue=xn=>{Pt(xn.millisecond(0),xe.value)},Fe=xn=>{Pt(Ce.value,xn.millisecond(0))},ze=xn=>{const Ln=xn.map(Pn=>dayjs(Pn).locale(V.value)),Nn=wn(Ln);return Ln[0].isSame(Nn[0])&&Ln[1].isSame(Nn[1])},Pt=(xn,Ln)=>{r.visible&&i("pick",[xn,Ln],!0)},qe=computed(()=>Ce.value>xe.value),Et=ref([0,2]),kt=(xn,Ln)=>{i("select-range",xn,Ln,"min"),Et.value=[xn,Ln]},At=computed(()=>Oe.value?11:8),Dt=(xn,Ln)=>{i("select-range",xn,Ln,"max");const Nn=unref(At);Et.value=[xn+Nn,Ln+Nn]},Lt=xn=>{const Ln=Oe.value?[0,3,6,11,14,17]:[0,3,8,11],Nn=["hours","minutes"].concat(Oe.value?["seconds"]:[]),On=(Ln.indexOf(Et.value[0])+xn+Ln.length)%Ln.length,Hn=Ln.length/2;On{const Ln=getEventCode(xn),{left:Nn,right:Pn,up:On,down:Hn}=EVENT_CODE;if([Nn,Pn].includes(Ln)){Lt(Ln===Nn?-1:1),xn.preventDefault();return}if([On,Hn].includes(Ln)){const Xn=Ln===On?-1:1,In=Et.value[0]{const Nn=le?le(xn):[],Pn=xn==="start",Hn=(Ln||(Pn?xe.value:Ce.value)).hour(),Xn=Pn?g(Hn+1,23):g(0,Hn-1);return union$1(Nn,Xn)},vn=(xn,Ln,Nn)=>{const Pn=ue?ue(xn,Ln):[],On=Ln==="start",Hn=Nn||(On?xe.value:Ce.value),Xn=Hn.hour();if(xn!==Xn)return Pn;const In=Hn.minute(),or=On?g(In+1,59):g(0,In-1);return union$1(Pn,or)},_n=(xn,Ln,Nn,Pn)=>{const On=de?de(xn,Ln,Nn):[],Hn=Nn==="start",Xn=Pn||(Hn?xe.value:Ce.value),In=Xn.hour(),or=Xn.minute();if(xn!==In||Ln!==or)return On;const Qn=Xn.second(),Zn=Hn?g(Qn+1,59):g(0,Qn-1);return union$1(On,Zn)},wn=([xn,Ln])=>[En(xn,"start",!0,Ln),En(Ln,"end",!1,xn)],{getAvailableHours:bn,getAvailableMinutes:Cn,getAvailableSeconds:Sn}=buildAvailableTimeSlotGetter(hn,vn,_n),{timePickerOptions:Tn,getAvailableTime:En,onSetOption:kn}=useTimePanel({getAvailableHours:bn,getAvailableMinutes:Cn,getAvailableSeconds:Sn}),$n=xn=>xn?isArray$5(xn)?xn.map(Ln=>dayjs(Ln,r.format).locale(V.value)):dayjs(xn,r.format).locale(V.value):null,An=()=>{if(isArray$5(he))return he.map(Ln=>dayjs(Ln).locale(V.value));const xn=dayjs(he).locale(V.value);return[xn,xn.add(60,"m")]};return i("set-picker-option",["parseUserInput",$n]),i("set-picker-option",["isValidValue",ze]),i("set-picker-option",["handleKeydownInput",jt]),i("set-picker-option",["getDefaultValue",An]),i("set-picker-option",["getRangeAvailableTime",wn]),(xn,Ln)=>xn.actualVisible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(re).b("range-picker"),unref(ie).b("panel")])},[createBaseVNode("div",{class:normalizeClass(unref(re).be("range-picker","content"))},[createBaseVNode("div",{class:normalizeClass(unref(re).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(re).be("range-picker","header"))},toDisplayString(unref($)("el.datepicker.startTime")),3),createBaseVNode("div",{class:normalizeClass(pe.value)},[createVNode$1(TimeSpinner,{ref:"minSpinner",role:"start","show-seconds":Oe.value,"am-pm-mode":$e.value,"arrow-control":unref(oe),"spinner-date":Ce.value,"disabled-hours":hn,"disabled-minutes":vn,"disabled-seconds":_n,onChange:Ue,onSetOption:unref(kn),onSelectRange:kt},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),createBaseVNode("div",{class:normalizeClass(unref(re).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(re).be("range-picker","header"))},toDisplayString(unref($)("el.datepicker.endTime")),3),createBaseVNode("div",{class:normalizeClass(_e.value)},[createVNode$1(TimeSpinner,{ref:"maxSpinner",role:"end","show-seconds":Oe.value,"am-pm-mode":$e.value,"arrow-control":unref(oe),"spinner-date":xe.value,"disabled-hours":hn,"disabled-minutes":vn,"disabled-seconds":_n,onChange:Fe,onSetOption:unref(kn),onSelectRange:Dt},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),createBaseVNode("div",{class:normalizeClass(unref(re).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(re).be("panel","btn"),"cancel"]),onClick:Ln[0]||(Ln[0]=Nn=>Ne())},toDisplayString(unref($)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(re).be("panel","btn"),"confirm"]),disabled:qe.value,onClick:Ln[1]||(Ln[1]=Nn=>Ve())},toDisplayString(unref($)("el.datepicker.confirm")),11,_hoisted_1$1d)],2)],2)):createCommentVNode("v-if",!0)}});var TimeRangePanel=_export_sfc(_sfc_main$1_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);dayjs.extend(customParseFormat);var TimePicker=defineComponent({name:"ElTimePicker",install:null,props:{...timePickerDefaultProps,isRange:Boolean},emits:[UPDATE_MODEL_EVENT],setup(n,t){const r=ref(),[i,g]=n.isRange?["timerange",TimeRangePanel]:["time",TimePickPanel],$=V=>t.emit(UPDATE_MODEL_EVENT,V);return provide(PICKER_POPPER_OPTIONS_INJECTION_KEY,n.popperOptions),t.expose({focus:()=>{var V;(V=r.value)==null||V.focus()},blur:()=>{var V;(V=r.value)==null||V.blur()},handleOpen:()=>{var V;(V=r.value)==null||V.handleOpen()},handleClose:()=>{var V;(V=r.value)==null||V.handleClose()}}),()=>{var V;const re=(V=n.format)!=null?V:DEFAULT_FORMATS_TIME;return createVNode$1(CommonPicker,mergeProps(n,{ref:r,type:i,format:re,"onUpdate:modelValue":$}),{default:ie=>createVNode$1(g,ie,null)})}}});const ElTimePicker=withInstall(TimePicker);var advancedFormat$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){return function(r,i){var g=i.prototype,$=g.format;g.format=function(V){var re=this,ie=this.$locale();if(!this.isValid())return $.bind(this)(V);var ae=this.$utils(),oe=(V||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(le){switch(le){case"Q":return Math.ceil((re.$M+1)/3);case"Do":return ie.ordinal(re.$D);case"gggg":return re.weekYear();case"GGGG":return re.isoWeekYear();case"wo":return ie.ordinal(re.week(),"W");case"w":case"ww":return ae.s(re.week(),le==="w"?1:2,"0");case"W":case"WW":return ae.s(re.isoWeek(),le==="W"?1:2,"0");case"k":case"kk":return ae.s(String(re.$H===0?24:re.$H),le==="k"?1:2,"0");case"X":return Math.floor(re.$d.getTime()/1e3);case"x":return re.$d.getTime();case"z":return"["+re.offsetName()+"]";case"zzz":return"["+re.offsetName("long")+"]";default:return le}});return $.bind(this)(oe)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var weekOfYear$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){var r="week",i="year";return function(g,$,V){var re=$.prototype;re.week=function(ie){if(ie===void 0&&(ie=null),ie!==null)return this.add(7*(ie-this.week()),"day");var ae=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var oe=V(this).startOf(i).add(1,i).date(ae),le=V(this).endOf(r);if(oe.isBefore(le))return 1}var ue=V(this).startOf(i).date(ae).startOf(r).subtract(1,"millisecond"),de=this.diff(ue,r,!0);return de<0?V(this).startOf("week").week():Math.ceil(de)},re.weeks=function(ie){return ie===void 0&&(ie=null),this.week(ie)}}})})(weekOfYear$1);var weekOfYearExports=weekOfYear$1.exports;const weekOfYear=getDefaultExportFromCjs(weekOfYearExports);var weekYear$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){return function(r,i){i.prototype.weekYear=function(){var g=this.month(),$=this.week(),V=this.year();return $===1&&g===11?V+1:g===0&&$>=52?V-1:V}}})})(weekYear$1);var weekYearExports=weekYear$1.exports;const weekYear=getDefaultExportFromCjs(weekYearExports);var dayOfYear$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){return function(r,i,g){i.prototype.dayOfYear=function($){var V=Math.round((g(this).startOf("day")-g(this).startOf("year"))/864e5)+1;return $==null?V:this.add($-V,"day")}}})})(dayOfYear$1);var dayOfYearExports=dayOfYear$1.exports;const dayOfYear=getDefaultExportFromCjs(dayOfYearExports);var isSameOrAfter$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){return function(r,i){i.prototype.isSameOrAfter=function(g,$){return this.isSame(g,$)||this.isAfter(g,$)}}})})(isSameOrAfter$1);var isSameOrAfterExports=isSameOrAfter$1.exports;const isSameOrAfter=getDefaultExportFromCjs(isSameOrAfterExports);var isSameOrBefore$1={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(commonjsGlobal,function(){return function(r,i){i.prototype.isSameOrBefore=function(g,$){return this.isSame(g,$)||this.isBefore(g,$)}}})})(isSameOrBefore$1);var isSameOrBeforeExports=isSameOrBefore$1.exports;const isSameOrBefore=getDefaultExportFromCjs(isSameOrBeforeExports),datePickerPanelProps=buildProps({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:definePropType([Date,Array,String,Number]),default:""},defaultValue:{type:definePropType([Date,Array])},defaultTime:{type:definePropType([Date,Array])},isRange:Boolean,...disabledTimeListsProps,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:definePropType(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),ROOT_PICKER_INJECTION_KEY=Symbol("rootPickerContextKey"),ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY="ElIsDefaultFormat",selectionModes=["date","dates","year","years","month","months","week","range"],datePickerSharedProps=buildProps({cellClassName:{type:definePropType(Function)},disabledDate:{type:definePropType(Function)},date:{type:definePropType(Object),required:!0},minDate:{type:definePropType(Object)},maxDate:{type:definePropType(Object)},parsedValue:{type:definePropType([Object,Array])},rangeState:{type:definePropType(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),panelSharedProps=buildProps({type:{type:definePropType(String),required:!0,values:datePickTypes},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),panelRangeSharedProps=buildProps({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:definePropType(Array)}}),selectionModeWithDefault=n=>({type:String,values:selectionModes,default:n}),panelDatePickProps=buildProps({...panelSharedProps,parsedValue:{type:definePropType([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),isValidRange=n=>{if(!isArray$5(n))return!1;const[t,r]=n;return dayjs.isDayjs(t)&&dayjs.isDayjs(r)&&dayjs(t).isValid()&&dayjs(r).isValid()&&t.isSameOrBefore(r)},getDefaultValue=(n,{lang:t,step:r=1,unit:i,unlinkPanels:g})=>{let $;if(isArray$5(n)){let[V,re]=n.map(ie=>dayjs(ie).locale(t));return g||(re=V.add(r,i)),[V,re]}else n?$=dayjs(n):$=dayjs();return $=$.locale(t),[$,$.add(r,i)]},buildPickerTable=(n,t,{columnIndexOffset:r,startDate:i,nextEndDate:g,now:$,unit:V,relativeDateGetter:re,setCellMetadata:ie,setRowMetadata:ae})=>{for(let oe=0;oe{const g=dayjs().locale(i).startOf("month").month(r).year(t).hour(n.hour()).minute(n.minute()).second(n.second()),$=g.daysInMonth();return rangeArr($).map(V=>g.add(V,"day").toDate())},getValidDateOfMonth=(n,t,r,i,g)=>{const $=dayjs().year(t).month(r).startOf("month").hour(n.hour()).minute(n.minute()).second(n.second()),V=datesInMonth(n,t,r,i).find(re=>!(g!=null&&g(re)));return V?dayjs(V).locale(i):$.locale(i)},getValidDateOfYear=(n,t,r)=>{const i=n.year();if(!(r!=null&&r(n.toDate())))return n.locale(t);const g=n.month();if(!datesInMonth(n,i,g,t).every(r))return getValidDateOfMonth(n,i,g,t,r);for(let $=0;$<12;$++)if(!datesInMonth(n,i,$,t).every(r))return getValidDateOfMonth(n,i,$,t,r);return n},correctlyParseUserInput=(n,t,r,i)=>{if(isArray$5(n))return n.map(g=>correctlyParseUserInput(g,t,r,i));if(isString$2(n)){const g=i!=null&&i.value?dayjs(n):dayjs(n,t);if(!g.isValid())return g}return dayjs(n,t).locale(r)},basicDateTableProps=buildProps({...datePickerSharedProps,showWeekNumber:Boolean,selectionMode:selectionModeWithDefault("date")}),basicDateTableEmits=["changerange","pick","select"],isNormalDay=(n="")=>["normal","today"].includes(n),useBasicDateTable=(n,t)=>{const{lang:r}=useLocale(),i=ref(),g=ref(),$=ref(),V=ref(),re=ref([[],[],[],[],[],[]]);let ie=!1;const ae=n.date.$locale().weekStart||7,oe=n.date.locale("en").localeData().weekdaysShort().map(hn=>hn.toLowerCase()),le=computed(()=>ae>3?7-ae:-ae),ue=computed(()=>{const hn=n.date.startOf("month");return hn.subtract(hn.day()||7,"day")}),de=computed(()=>oe.concat(oe).slice(ae,ae+7)),he=computed(()=>flatten$1(unref(Ne)).some(hn=>hn.isCurrent)),pe=computed(()=>{const hn=n.date.startOf("month"),vn=hn.day()||7,_n=hn.daysInMonth(),wn=hn.subtract(1,"month").daysInMonth();return{startOfMonthDay:vn,dateCountOfMonth:_n,dateCountOfLastMonth:wn}}),_e=computed(()=>n.selectionMode==="dates"?castArray(n.parsedValue):[]),Ce=(hn,{count:vn,rowIndex:_n,columnIndex:wn})=>{const{startOfMonthDay:bn,dateCountOfMonth:Cn,dateCountOfLastMonth:Sn}=unref(pe),Tn=unref(le);if(_n>=0&&_n<=1){const En=bn+Tn<0?7+bn+Tn:bn+Tn;if(wn+_n*7>=En)return hn.text=vn,!0;hn.text=Sn-(En-wn%7)+1+_n*7,hn.type="prev-month"}else return vn<=Cn?hn.text=vn:(hn.text=vn-Cn,hn.type="next-month"),!0;return!1},xe=(hn,{columnIndex:vn,rowIndex:_n},wn)=>{const{disabledDate:bn,cellClassName:Cn}=n,Sn=unref(_e),Tn=Ce(hn,{count:wn,rowIndex:_n,columnIndex:vn}),En=hn.dayjs.toDate();return hn.selected=Sn.find(kn=>kn.isSame(hn.dayjs,"day")),hn.isSelected=!!hn.selected,hn.isCurrent=$e(hn),hn.disabled=bn==null?void 0:bn(En),hn.customClass=Cn==null?void 0:Cn(En),Tn},Ie=hn=>{if(n.selectionMode==="week"){const[vn,_n]=n.showWeekNumber?[1,7]:[0,6],wn=jt(hn[vn+1]);hn[vn].inRange=wn,hn[vn].start=wn,hn[_n].inRange=wn,hn[_n].end=wn}},Ne=computed(()=>{const{minDate:hn,maxDate:vn,rangeState:_n,showWeekNumber:wn}=n,bn=unref(le),Cn=unref(re),Sn="day";let Tn=1;if(buildPickerTable({row:6,column:7},Cn,{startDate:hn,columnIndexOffset:wn?1:0,nextEndDate:_n.endDate||vn||_n.selecting&&hn||null,now:dayjs().locale(unref(r)).startOf(Sn),unit:Sn,relativeDateGetter:En=>unref(ue).add(En-bn,Sn),setCellMetadata:(...En)=>{xe(...En,Tn)&&(Tn+=1)},setRowMetadata:Ie}),wn)for(let En=0;En<6;En++)Cn[En][1].dayjs&&(Cn[En][0]={type:"week",text:Cn[En][1].dayjs.week()});return Cn});watch(()=>n.date,async()=>{var hn;(hn=unref(i))!=null&&hn.contains(document.activeElement)&&(await nextTick(),await Oe())});const Oe=async()=>{var hn;return(hn=unref(g))==null?void 0:hn.focus()},$e=hn=>n.selectionMode==="date"&&isNormalDay(hn.type)&&Ve(hn,n.parsedValue),Ve=(hn,vn)=>vn?dayjs(vn).locale(unref(r)).isSame(n.date.date(Number(hn.text)),"day"):!1,Ue=(hn,vn)=>{const _n=hn*7+(vn-(n.showWeekNumber?1:0))-unref(le);return unref(ue).add(_n,"day")},Fe=hn=>{var vn;if(!n.rangeState.selecting)return;let _n=hn.target;if(_n.tagName==="SPAN"&&(_n=(vn=_n.parentNode)==null?void 0:vn.parentNode),_n.tagName==="DIV"&&(_n=_n.parentNode),_n.tagName!=="TD")return;const wn=_n.parentNode.rowIndex-1,bn=_n.cellIndex;unref(Ne)[wn][bn].disabled||(wn!==unref($)||bn!==unref(V))&&($.value=wn,V.value=bn,t("changerange",{selecting:!0,endDate:Ue(wn,bn)}))},ze=hn=>!unref(he)&&(hn==null?void 0:hn.text)===1&&isNormalDay(hn.type)||hn.isCurrent,Pt=hn=>{ie||unref(he)||n.selectionMode!=="date"||Lt(hn,!0)},qe=hn=>{hn.target.closest("td")&&(ie=!0)},Et=hn=>{hn.target.closest("td")&&(ie=!1)},kt=hn=>{!n.rangeState.selecting||!n.minDate?(t("pick",{minDate:hn,maxDate:null}),t("select",!0)):(hn>=n.minDate?t("pick",{minDate:n.minDate,maxDate:hn}):t("pick",{minDate:hn,maxDate:n.minDate}),t("select",!1))},At=hn=>{const vn=hn.week(),_n=`${hn.year()}w${vn}`;t("pick",{year:hn.year(),week:vn,value:_n,date:hn.startOf("week")})},Dt=(hn,vn)=>{const _n=vn?castArray(n.parsedValue).filter(wn=>(wn==null?void 0:wn.valueOf())!==hn.valueOf()):castArray(n.parsedValue).concat([hn]);t("pick",_n)},Lt=(hn,vn=!1)=>{if(n.disabled)return;const _n=hn.target.closest("td");if(!_n)return;const wn=_n.parentNode.rowIndex-1,bn=_n.cellIndex,Cn=unref(Ne)[wn][bn];if(Cn.disabled||Cn.type==="week")return;const Sn=Ue(wn,bn);switch(n.selectionMode){case"range":{kt(Sn);break}case"date":{t("pick",Sn,vn);break}case"week":{At(Sn);break}case"dates":{Dt(Sn,!!Cn.selected);break}}},jt=hn=>{if(n.selectionMode!=="week")return!1;let vn=n.date.startOf("day");if(hn.type==="prev-month"&&(vn=vn.subtract(1,"month")),hn.type==="next-month"&&(vn=vn.add(1,"month")),vn=vn.date(Number.parseInt(hn.text,10)),n.parsedValue&&!isArray$5(n.parsedValue)){const _n=(n.parsedValue.day()-ae+7)%7-1;return n.parsedValue.subtract(_n,"day").isSame(vn,"day")}return!1};return{WEEKS:de,rows:Ne,tbodyRef:i,currentCellRef:g,focus:Oe,isCurrent:$e,isWeekActive:jt,isSelectedCell:ze,handlePickDate:Lt,handleMouseUp:Et,handleMouseDown:qe,handleMouseMove:Fe,handleFocus:Pt}},useBasicDateTableDOM=(n,{isCurrent:t,isWeekActive:r})=>{const i=useNamespace("date-table"),{t:g}=useLocale(),$=computed(()=>[i.b(),i.is("week-mode",n.selectionMode==="week"&&!n.disabled)]),V=computed(()=>g("el.datepicker.dateTablePrompt")),re=ae=>{const oe=[];return isNormalDay(ae.type)&&!ae.disabled?(oe.push("available"),ae.type==="today"&&oe.push("today")):oe.push(ae.type),t(ae)&&oe.push("current"),ae.inRange&&(isNormalDay(ae.type)||n.selectionMode==="week")&&(oe.push("in-range"),ae.start&&oe.push("start-date"),ae.end&&oe.push("end-date")),(ae.disabled||n.disabled)&&oe.push("disabled"),ae.selected&&oe.push("selected"),ae.customClass&&oe.push(ae.customClass),oe.join(" ")},ie=ae=>[i.e("row"),{current:r(ae)}];return{tableKls:$,tableLabel:V,weekHeaderClass:i.e("week-header"),getCellClasses:re,getRowKls:ie,t:g}},basicCellProps=buildProps({cell:{type:definePropType(Object)}});var ElDatePickerCell=defineComponent({name:"ElDatePickerCell",props:basicCellProps,setup(n){const t=useNamespace("date-table-cell"),{slots:r}=inject(ROOT_PICKER_INJECTION_KEY);return()=>{const{cell:i}=n;return renderSlot(r,"default",{...i},()=>{var g;return[createVNode$1("div",{class:t.b()},[createVNode$1("span",{class:t.e("text")},[(g=i==null?void 0:i.renderText)!=null?g:i==null?void 0:i.text])])]})}}});const _hoisted_1$1c=["aria-label"],_hoisted_2$P=["aria-label"],_hoisted_3$n=["aria-current","aria-selected","tabindex","aria-disabled"],_sfc_main$1Z=defineComponent({__name:"basic-date-table",props:basicDateTableProps,emits:basicDateTableEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{WEEKS:$,rows:V,tbodyRef:re,currentCellRef:ie,focus:ae,isCurrent:oe,isWeekActive:le,isSelectedCell:ue,handlePickDate:de,handleMouseUp:he,handleMouseDown:pe,handleMouseMove:_e,handleFocus:Ce}=useBasicDateTable(i,g),{tableLabel:xe,tableKls:Ie,getCellClasses:Ne,getRowKls:Oe,weekHeaderClass:$e,t:Ve}=useBasicDateTableDOM(i,{isCurrent:oe,isWeekActive:le});let Ue=!1;return onBeforeUnmount(()=>{Ue=!0}),t({focus:ae}),(Fe,ze)=>(openBlock(),createElementBlock("table",{"aria-label":unref(xe),class:normalizeClass(unref(Ie)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:ze[1]||(ze[1]=(...Pt)=>unref(de)&&unref(de)(...Pt)),onMousemove:ze[2]||(ze[2]=(...Pt)=>unref(_e)&&unref(_e)(...Pt)),onMousedown:ze[3]||(ze[3]=(...Pt)=>unref(pe)&&unref(pe)(...Pt)),onMouseup:ze[4]||(ze[4]=(...Pt)=>unref(he)&&unref(he)(...Pt))},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:re},[createBaseVNode("tr",null,[Fe.showWeekNumber?(openBlock(),createElementBlock("th",{key:0,scope:"col",class:normalizeClass(unref($e))},null,2)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref($),(Pt,qe)=>(openBlock(),createElementBlock("th",{key:qe,"aria-label":unref(Ve)("el.datepicker.weeksFull."+Pt),scope:"col"},toDisplayString(unref(Ve)("el.datepicker.weeks."+Pt)),9,_hoisted_2$P))),128))]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(V),(Pt,qe)=>(openBlock(),createElementBlock("tr",{key:qe,class:normalizeClass(unref(Oe)(Fe.showWeekNumber?Pt[2]:Pt[1]))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Pt,(Et,kt)=>(openBlock(),createElementBlock("td",{key:`${qe}.${kt}`,ref_for:!0,ref:At=>!unref(Ue)&&unref(ue)(Et)&&(ie.value=At),class:normalizeClass(unref(Ne)(Et)),"aria-current":Et.isCurrent?"date":void 0,"aria-selected":Et.isCurrent,tabindex:Fe.disabled?void 0:unref(ue)(Et)?0:-1,"aria-disabled":Fe.disabled,onFocus:ze[0]||(ze[0]=(...At)=>unref(Ce)&&unref(Ce)(...At))},[createVNode$1(unref(ElDatePickerCell),{cell:Et},null,8,["cell"])],42,_hoisted_3$n))),128))],2))),128))],512)],42,_hoisted_1$1c))}});var DateTable=_export_sfc(_sfc_main$1Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/basic-date-table.vue"]]);const basicMonthTableProps=buildProps({...datePickerSharedProps,selectionMode:selectionModeWithDefault("month")}),_hoisted_1$1b=["aria-label"],_hoisted_2$O=["aria-selected","aria-label","tabindex","onKeydown"],_sfc_main$1Y=defineComponent({__name:"basic-month-table",props:basicMonthTableProps,emits:["changerange","pick","select"],setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("month-table"),{t:V,lang:re}=useLocale(),ie=ref(),ae=ref(),oe=ref(i.date.locale("en").localeData().monthsShort().map(Ne=>Ne.toLowerCase())),le=ref([[],[],[]]),ue=ref(),de=ref(),he=computed(()=>{var Ne,Oe,$e;const Ve=le.value,Ue=dayjs().locale(re.value).startOf("month");for(let Fe=0;Fe<3;Fe++){const ze=Ve[Fe];for(let Pt=0;Pt<4;Pt++){const qe=ze[Pt]||(ze[Pt]={row:Fe,column:Pt,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});qe.type="normal";const Et=Fe*4+Pt,kt=i.date.startOf("year").month(Et),At=i.rangeState.endDate||i.maxDate||i.rangeState.selecting&&i.minDate||null;qe.inRange=!!(i.minDate&&kt.isSameOrAfter(i.minDate,"month")&&At&&kt.isSameOrBefore(At,"month"))||!!(i.minDate&&kt.isSameOrBefore(i.minDate,"month")&&At&&kt.isSameOrAfter(At,"month")),(Ne=i.minDate)!=null&&Ne.isSameOrAfter(At)?(qe.start=!!(At&&kt.isSame(At,"month")),qe.end=i.minDate&&kt.isSame(i.minDate,"month")):(qe.start=!!(i.minDate&&kt.isSame(i.minDate,"month")),qe.end=!!(At&&kt.isSame(At,"month"))),Ue.isSame(kt)&&(qe.type="today");const Lt=kt.toDate();qe.text=Et,qe.disabled=((Oe=i.disabledDate)==null?void 0:Oe.call(i,Lt))||!1,qe.date=Lt,qe.customClass=($e=i.cellClassName)==null?void 0:$e.call(i,Lt),qe.dayjs=kt,qe.timestamp=kt.valueOf(),qe.isSelected=Ce(qe)}}return Ve}),pe=()=>{var Ne;(Ne=ae.value)==null||Ne.focus()},_e=Ne=>{const Oe={},$e=i.date.year(),Ve=new Date,Ue=Ne.text;return Oe.disabled=i.disabled||(i.disabledDate?datesInMonth(i.date,$e,Ue,re.value).every(i.disabledDate):!1),Oe.current=castArray(i.parsedValue).some(Fe=>dayjs.isDayjs(Fe)&&Fe.year()===$e&&Fe.month()===Ue),Oe.today=Ve.getFullYear()===$e&&Ve.getMonth()===Ue,Ne.customClass&&(Oe[Ne.customClass]=!0),Ne.inRange&&(Oe["in-range"]=!0,Ne.start&&(Oe["start-date"]=!0),Ne.end&&(Oe["end-date"]=!0)),Oe},Ce=Ne=>{const Oe=i.date.year(),$e=Ne.text;return castArray(i.date).some(Ve=>Ve.year()===Oe&&Ve.month()===$e)},xe=Ne=>{var Oe;if(!i.rangeState.selecting)return;let $e=Ne.target;if($e.tagName==="SPAN"&&($e=(Oe=$e.parentNode)==null?void 0:Oe.parentNode),$e.tagName==="DIV"&&($e=$e.parentNode),$e.tagName!=="TD")return;const Ve=$e.parentNode.rowIndex,Ue=$e.cellIndex;he.value[Ve][Ue].disabled||(Ve!==ue.value||Ue!==de.value)&&(ue.value=Ve,de.value=Ue,g("changerange",{selecting:!0,endDate:i.date.startOf("year").month(Ve*4+Ue)}))},Ie=Ne=>{var Oe;if(i.disabled)return;const $e=(Oe=Ne.target)==null?void 0:Oe.closest("td");if(($e==null?void 0:$e.tagName)!=="TD"||hasClass($e,"disabled"))return;const Ve=$e.cellIndex,Fe=$e.parentNode.rowIndex*4+Ve,ze=i.date.startOf("year").month(Fe);if(i.selectionMode==="months"){if(Ne.type==="keydown"){g("pick",castArray(i.parsedValue),!1);return}const Pt=getValidDateOfMonth(i.date,i.date.year(),Fe,re.value,i.disabledDate),qe=hasClass($e,"current")?castArray(i.parsedValue).filter(Et=>(Et==null?void 0:Et.year())!==Pt.year()||(Et==null?void 0:Et.month())!==Pt.month()):castArray(i.parsedValue).concat([dayjs(Pt)]);g("pick",qe)}else i.selectionMode==="range"?i.rangeState.selecting?(i.minDate&&ze>=i.minDate?g("pick",{minDate:i.minDate,maxDate:ze}):g("pick",{minDate:ze,maxDate:i.minDate}),g("select",!1)):(g("pick",{minDate:ze,maxDate:null}),g("select",!0)):g("pick",Fe)};return watch(()=>i.date,async()=>{var Ne,Oe;(Ne=ie.value)!=null&&Ne.contains(document.activeElement)&&(await nextTick(),(Oe=ae.value)==null||Oe.focus())}),t({focus:pe}),(Ne,Oe)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(V)("el.datepicker.monthTablePrompt"),class:normalizeClass(unref($).b()),onClick:Ie,onMousemove:xe},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:ie},[(openBlock(!0),createElementBlock(Fragment,null,renderList(he.value,($e,Ve)=>(openBlock(),createElementBlock("tr",{key:Ve},[(openBlock(!0),createElementBlock(Fragment,null,renderList($e,(Ue,Fe)=>(openBlock(),createElementBlock("td",{key:Fe,ref_for:!0,ref:ze=>Ue.isSelected&&(ae.value=ze),class:normalizeClass(_e(Ue)),"aria-selected":!!Ue.isSelected,"aria-label":unref(V)(`el.datepicker.month${+Ue.text+1}`),tabindex:Ue.isSelected?0:-1,onKeydown:[withKeys(withModifiers(Ie,["prevent","stop"]),["space"]),withKeys(withModifiers(Ie,["prevent","stop"]),["enter"])]},[createVNode$1(unref(ElDatePickerCell),{cell:{...Ue,renderText:unref(V)("el.datepicker.months."+oe.value[Ue.text])}},null,8,["cell"])],42,_hoisted_2$O))),128))]))),128))],512)],42,_hoisted_1$1b))}});var MonthTable=_export_sfc(_sfc_main$1Y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/basic-month-table.vue"]]);const basicYearTableProps=buildProps({...datePickerSharedProps,selectionMode:selectionModeWithDefault("year")}),_hoisted_1$1a=["aria-label"],_hoisted_2$N=["aria-selected","aria-label","tabindex","onKeydown"],_sfc_main$1X=defineComponent({__name:"basic-year-table",props:basicYearTableProps,emits:["changerange","pick","select"],setup(n,{expose:t,emit:r}){const i=(Oe,$e)=>{const Ve=dayjs(String(Oe)).locale($e).startOf("year"),Fe=Ve.endOf("year").dayOfYear();return rangeArr(Fe).map(ze=>Ve.add(ze,"day").toDate())},g=n,$=r,V=useNamespace("year-table"),{t:re,lang:ie}=useLocale(),ae=ref(),oe=ref(),le=computed(()=>Math.floor(g.date.year()/10)*10),ue=ref([[],[],[]]),de=ref(),he=ref(),pe=computed(()=>{var Oe,$e,Ve;const Ue=ue.value,Fe=dayjs().locale(ie.value).startOf("year");for(let ze=0;ze<3;ze++){const Pt=Ue[ze];for(let qe=0;qe<4&&!(ze*4+qe>=10);qe++){let Et=Pt[qe];Et||(Et={row:ze,column:qe,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),Et.type="normal";const kt=ze*4+qe+le.value,At=dayjs().year(kt),Dt=g.rangeState.endDate||g.maxDate||g.rangeState.selecting&&g.minDate||null;Et.inRange=!!(g.minDate&&At.isSameOrAfter(g.minDate,"year")&&Dt&&At.isSameOrBefore(Dt,"year"))||!!(g.minDate&&At.isSameOrBefore(g.minDate,"year")&&Dt&&At.isSameOrAfter(Dt,"year")),(Oe=g.minDate)!=null&&Oe.isSameOrAfter(Dt)?(Et.start=!!(Dt&&At.isSame(Dt,"year")),Et.end=!!(g.minDate&&At.isSame(g.minDate,"year"))):(Et.start=!!(g.minDate&&At.isSame(g.minDate,"year")),Et.end=!!(Dt&&At.isSame(Dt,"year"))),Fe.isSame(At)&&(Et.type="today"),Et.text=kt;const jt=At.toDate();Et.disabled=(($e=g.disabledDate)==null?void 0:$e.call(g,jt))||!1,Et.date=jt,Et.customClass=(Ve=g.cellClassName)==null?void 0:Ve.call(g,jt),Et.dayjs=At,Et.timestamp=At.valueOf(),Et.isSelected=xe(Et),Pt[qe]=Et}}return Ue}),_e=()=>{var Oe;(Oe=oe.value)==null||Oe.focus()},Ce=Oe=>{const $e={},Ve=dayjs().locale(ie.value),Ue=Oe.text;return $e.disabled=g.disabled||(g.disabledDate?i(Ue,ie.value).every(g.disabledDate):!1),$e.today=Ve.year()===Ue,$e.current=castArray(g.parsedValue).some(Fe=>Fe.year()===Ue),Oe.customClass&&($e[Oe.customClass]=!0),Oe.inRange&&($e["in-range"]=!0,Oe.start&&($e["start-date"]=!0),Oe.end&&($e["end-date"]=!0)),$e},xe=Oe=>{const $e=Oe.text;return castArray(g.date).some(Ve=>Ve.year()===$e)},Ie=Oe=>{var $e;if(g.disabled)return;const Ve=($e=Oe.target)==null?void 0:$e.closest("td");if(!Ve||!Ve.textContent||hasClass(Ve,"disabled"))return;const Ue=Ve.cellIndex,ze=Ve.parentNode.rowIndex*4+Ue+le.value,Pt=dayjs().year(ze);if(g.selectionMode==="range")g.rangeState.selecting?(g.minDate&&Pt>=g.minDate?$("pick",{minDate:g.minDate,maxDate:Pt}):$("pick",{minDate:Pt,maxDate:g.minDate}),$("select",!1)):($("pick",{minDate:Pt,maxDate:null}),$("select",!0));else if(g.selectionMode==="years"){if(Oe.type==="keydown"){$("pick",castArray(g.parsedValue),!1);return}const qe=getValidDateOfYear(Pt.startOf("year"),ie.value,g.disabledDate),Et=hasClass(Ve,"current")?castArray(g.parsedValue).filter(kt=>(kt==null?void 0:kt.year())!==ze):castArray(g.parsedValue).concat([qe]);$("pick",Et)}else $("pick",ze)},Ne=Oe=>{var $e;if(!g.rangeState.selecting)return;const Ve=($e=Oe.target)==null?void 0:$e.closest("td");if(!Ve)return;const Ue=Ve.parentNode.rowIndex,Fe=Ve.cellIndex;pe.value[Ue][Fe].disabled||(Ue!==de.value||Fe!==he.value)&&(de.value=Ue,he.value=Fe,$("changerange",{selecting:!0,endDate:dayjs().year(le.value).add(Ue*4+Fe,"year")}))};return watch(()=>g.date,async()=>{var Oe,$e;(Oe=ae.value)!=null&&Oe.contains(document.activeElement)&&(await nextTick(),($e=oe.value)==null||$e.focus())}),t({focus:_e}),(Oe,$e)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(re)("el.datepicker.yearTablePrompt"),class:normalizeClass(unref(V).b()),onClick:Ie,onMousemove:Ne},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:ae},[(openBlock(!0),createElementBlock(Fragment,null,renderList(pe.value,(Ve,Ue)=>(openBlock(),createElementBlock("tr",{key:Ue},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ve,(Fe,ze)=>(openBlock(),createElementBlock("td",{key:`${Ue}_${ze}`,ref_for:!0,ref:Pt=>Fe.isSelected&&(oe.value=Pt),class:normalizeClass(["available",Ce(Fe)]),"aria-selected":Fe.isSelected,"aria-label":String(Fe.text),tabindex:Fe.isSelected?0:-1,onKeydown:[withKeys(withModifiers(Ie,["prevent","stop"]),["space"]),withKeys(withModifiers(Ie,["prevent","stop"]),["enter"])]},[createVNode$1(unref(ElDatePickerCell),{cell:Fe},null,8,["cell"])],42,_hoisted_2$N))),128))]))),128))],512)],42,_hoisted_1$1a))}});var YearTable=_export_sfc(_sfc_main$1X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/basic-year-table.vue"]]);const _hoisted_1$19=["disabled","onClick"],_hoisted_2$M=["aria-label","disabled"],_hoisted_3$m=["aria-label","disabled"],_hoisted_4$h=["tabindex","aria-disabled"],_hoisted_5$9=["tabindex","aria-disabled"],_hoisted_6$3=["aria-label","disabled"],_hoisted_7$2=["aria-label","disabled"],_sfc_main$1W=defineComponent({__name:"panel-date-pick",props:panelDatePickProps,emits:["pick","set-picker-option","panel-change"],setup(n,{emit:t}){const r=(Yn,er,Fn)=>!0,i=n,g=t,$=useNamespace("picker-panel"),V=useNamespace("date-picker"),re=useAttrs$1(),ie=useSlots(),{t:ae,lang:oe}=useLocale(),le=inject(PICKER_BASE_INJECTION_KEY),ue=inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,void 0),{shortcuts:de,disabledDate:he,cellClassName:pe,defaultTime:_e}=le.props,Ce=toRef$1(le.props,"defaultValue"),xe=ref(),Ie=ref(dayjs().locale(oe.value)),Ne=ref(!1);let Oe=!1;const $e=computed(()=>dayjs(_e).locale(oe.value)),Ve=computed(()=>Ie.value.month()),Ue=computed(()=>Ie.value.year()),Fe=ref([]),ze=ref(null),Pt=ref(null),qe=Yn=>Fe.value.length>0?r(Yn,Fe.value,i.format||"HH:mm:ss"):!0,Et=Yn=>_e&&!In.value&&!Ne.value&&!Oe?$e.value.year(Yn.year()).month(Yn.month()).date(Yn.date()):$n.value?Yn.millisecond(0):Yn.startOf("day"),kt=(Yn,...er)=>{if(!Yn)g("pick",Yn,...er);else if(isArray$5(Yn)){const Fn=Yn.map(Et);g("pick",Fn,...er)}else g("pick",Et(Yn),...er);ze.value=null,Pt.value=null,Ne.value=!1,Oe=!1},At=async(Yn,er)=>{if(_n.value==="date"&&dayjs.isDayjs(Yn)){const Fn=extractFirst(i.parsedValue);let cr=Fn?Fn.year(Yn.year()).month(Yn.month()).date(Yn.date()):Yn;qe(cr)||(cr=Fe.value[0][0].year(Yn.year()).month(Yn.month()).date(Yn.date())),Ie.value=cr,kt(cr,$n.value||er)}else _n.value==="week"?kt(Yn.date):_n.value==="dates"&&kt(Yn,!0)},Dt=Yn=>{const er=Yn?"add":"subtract";Ie.value=Ie.value[er](1,"month"),lr("month")},Lt=Yn=>{const er=Ie.value,Fn=Yn?"add":"subtract";Ie.value=jt.value==="year"?er[Fn](10,"year"):er[Fn](1,"year"),lr("year")},jt=ref("date"),hn=computed(()=>{const Yn=ae("el.datepicker.year");if(jt.value==="year"){const er=Math.floor(Ue.value/10)*10;return Yn?`${er} ${Yn} - ${er+9} ${Yn}`:`${er} - ${er+9}`}return`${Ue.value} ${Yn}`}),vn=Yn=>{const er=isFunction$4(Yn.value)?Yn.value():Yn.value;if(er){Oe=!0,kt(dayjs(er).locale(oe.value));return}Yn.onClick&&Yn.onClick({attrs:re,slots:ie,emit:g})},_n=computed(()=>{const{type:Yn}=i;return["week","month","months","year","years","dates"].includes(Yn)?Yn:"date"}),wn=computed(()=>_n.value==="dates"||_n.value==="months"||_n.value==="years"),bn=computed(()=>_n.value==="date"?jt.value:_n.value),Cn=computed(()=>!!de.length),Sn=async(Yn,er)=>{_n.value==="month"?(Ie.value=getValidDateOfMonth(Ie.value,Ie.value.year(),Yn,oe.value,he),kt(Ie.value,!1)):_n.value==="months"?kt(Yn,er??!0):(Ie.value=getValidDateOfMonth(Ie.value,Ie.value.year(),Yn,oe.value,he),jt.value="date",["month","year","date","week"].includes(_n.value)&&(kt(Ie.value,!0),await nextTick(),hr())),lr("month")},Tn=async(Yn,er)=>{if(_n.value==="year"){const Fn=Ie.value.startOf("year").year(Yn);Ie.value=getValidDateOfYear(Fn,oe.value,he),kt(Ie.value,!1)}else if(_n.value==="years")kt(Yn,er??!0);else{const Fn=Ie.value.year(Yn);Ie.value=getValidDateOfYear(Fn,oe.value,he),jt.value="month",["month","year","date","week"].includes(_n.value)&&(kt(Ie.value,!0),await nextTick(),hr())}lr("year")},En=useFormDisabled(),kn=async Yn=>{En.value||(jt.value=Yn,await nextTick(),hr())},$n=computed(()=>i.type==="datetime"||i.type==="datetimerange"),An=computed(()=>{const Yn=$n.value||_n.value==="dates",er=_n.value==="years",Fn=_n.value==="months",cr=jt.value==="date",Un=jt.value==="year",gr=jt.value==="month";return Yn&&cr||er&&Un||Fn&&gr}),xn=computed(()=>!wn.value&&i.showNow||i.showConfirm),Ln=computed(()=>he?i.parsedValue?isArray$5(i.parsedValue)?he(i.parsedValue[0].toDate()):he(i.parsedValue.toDate()):!0:!1),Nn=()=>{if(wn.value)kt(i.parsedValue);else{let Yn=extractFirst(i.parsedValue);if(!Yn){const er=dayjs(_e).locale(oe.value),Fn=tr();Yn=er.year(Fn.year()).month(Fn.month()).date(Fn.date())}Ie.value=Yn,kt(Yn)}},Pn=computed(()=>he?he(dayjs().locale(oe.value).toDate()):!1),On=()=>{const er=dayjs().locale(oe.value).toDate();Ne.value=!0,(!he||!he(er))&&qe(er)&&(Ie.value=dayjs().locale(oe.value),kt(Ie.value))},Hn=computed(()=>i.timeFormat||extractTimeFormat(i.format)||DEFAULT_FORMATS_TIME),Xn=computed(()=>i.dateFormat||extractDateFormat(i.format)||DEFAULT_FORMATS_DATE),In=computed(()=>Pt.value?Pt.value:!i.parsedValue&&!Ce.value?void 0:(extractFirst(i.parsedValue)||Ie.value).format(Hn.value)),or=computed(()=>ze.value?ze.value:!i.parsedValue&&!Ce.value?void 0:(extractFirst(i.parsedValue)||Ie.value).format(Xn.value)),Qn=ref(!1),Zn=()=>{Qn.value=!0},Gn=()=>{Qn.value=!1},Rn=Yn=>({hour:Yn.hour(),minute:Yn.minute(),second:Yn.second(),year:Yn.year(),month:Yn.month(),date:Yn.date()}),Mn=(Yn,er,Fn)=>{const{hour:cr,minute:Un,second:gr}=Rn(Yn),vr=extractFirst(i.parsedValue),yr=vr?vr.hour(cr).minute(Un).second(gr):Yn;Ie.value=yr,kt(Ie.value,!0),Fn||(Qn.value=er)},Bn=Yn=>{const er=dayjs(Yn,Hn.value).locale(oe.value);if(er.isValid()&&qe(er)){const{year:Fn,month:cr,date:Un}=Rn(Ie.value);Ie.value=er.year(Fn).month(cr).date(Un),Pt.value=null,Qn.value=!1,kt(Ie.value,!0)}},qn=Yn=>{const er=correctlyParseUserInput(Yn,Xn.value,oe.value,ue);if(er.isValid()){if(he&&he(er.toDate()))return;const{hour:Fn,minute:cr,second:Un}=Rn(Ie.value);Ie.value=er.hour(Fn).minute(cr).second(Un),ze.value=null,kt(Ie.value,!0)}},zn=Yn=>dayjs.isDayjs(Yn)&&Yn.isValid()&&(he?!he(Yn.toDate()):!0),jn=Yn=>correctlyParseUserInput(Yn,i.format,oe.value,ue),tr=()=>{const Yn=dayjs(Ce.value).locale(oe.value);if(!Ce.value){const er=$e.value;return dayjs().hour(er.hour()).minute(er.minute()).second(er.second()).locale(oe.value)}return Yn},hr=()=>{var Yn;["week","month","year","date"].includes(_n.value)&&((Yn=xe.value)==null||Yn.focus())},ir=()=>{hr(),_n.value==="week"&&rr(EVENT_CODE.down)},pr=Yn=>{const er=getEventCode(Yn);[EVENT_CODE.up,EVENT_CODE.down,EVENT_CODE.left,EVENT_CODE.right,EVENT_CODE.home,EVENT_CODE.end,EVENT_CODE.pageUp,EVENT_CODE.pageDown].includes(er)&&(rr(er),Yn.stopPropagation(),Yn.preventDefault()),[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.numpadEnter].includes(er)&&ze.value===null&&Pt.value===null&&(Yn.preventDefault(),kt(Ie.value,!1))},rr=Yn=>{var er;const{up:Fn,down:cr,left:Un,right:gr,home:vr,end:yr,pageUp:Wn,pageDown:Jn}=EVENT_CODE,sr={year:{[Fn]:-4,[cr]:4,[Un]:-1,[gr]:1,offset:(Tr,fr)=>Tr.setFullYear(Tr.getFullYear()+fr)},month:{[Fn]:-4,[cr]:4,[Un]:-1,[gr]:1,offset:(Tr,fr)=>Tr.setMonth(Tr.getMonth()+fr)},week:{[Fn]:-1,[cr]:1,[Un]:-1,[gr]:1,offset:(Tr,fr)=>Tr.setDate(Tr.getDate()+fr*7)},date:{[Fn]:-7,[cr]:7,[Un]:-1,[gr]:1,[vr]:Tr=>-Tr.getDay(),[yr]:Tr=>-Tr.getDay()+6,[Wn]:Tr=>-new Date(Tr.getFullYear(),Tr.getMonth(),0).getDate(),[Jn]:Tr=>new Date(Tr.getFullYear(),Tr.getMonth()+1,0).getDate(),offset:(Tr,fr)=>Tr.setDate(Tr.getDate()+fr)}},Sr=Ie.value.toDate();for(;Math.abs(Ie.value.diff(Sr,"year",!0))<1;){const Tr=sr[bn.value];if(!Tr)return;if(Tr.offset(Sr,isFunction$4(Tr[Yn])?Tr[Yn](Sr):(er=Tr[Yn])!=null?er:0),he&&he(Sr))break;const fr=dayjs(Sr).locale(oe.value);Ie.value=fr,g("pick",fr,!0);break}},lr=Yn=>{g("panel-change",Ie.value.toDate(),Yn,jt.value)};return watch(()=>_n.value,Yn=>{if(["month","year"].includes(Yn)){jt.value=Yn;return}else if(Yn==="years"){jt.value="year";return}else if(Yn==="months"){jt.value="month";return}jt.value="date"},{immediate:!0}),watch(()=>Ce.value,Yn=>{Yn&&(Ie.value=tr())},{immediate:!0}),watch(()=>i.parsedValue,Yn=>{if(Yn){if(wn.value||isArray$5(Yn))return;Ie.value=Yn}else Ie.value=tr()},{immediate:!0}),g("set-picker-option",["isValidValue",zn]),g("set-picker-option",["parseUserInput",jn]),g("set-picker-option",["handleFocusPicker",ir]),(Yn,er)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref($).b(),unref(V).b(),unref($).is("border",Yn.border),unref($).is("disabled",unref(En)),{"has-sidebar":Yn.$slots.sidebar||Cn.value,"has-time":$n.value}])},[createBaseVNode("div",{class:normalizeClass(unref($).e("body-wrapper"))},[renderSlot(Yn.$slots,"sidebar",{class:normalizeClass(unref($).e("sidebar"))}),Cn.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(de),(Fn,cr)=>(openBlock(),createElementBlock("button",{key:cr,type:"button",disabled:unref(En),class:normalizeClass(unref($).e("shortcut")),onClick:Un=>vn(Fn)},toDisplayString(Fn.text),11,_hoisted_1$19))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref($).e("body"))},[$n.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(V).e("editor-wrap"))},[createVNode$1(unref(ElInput),{placeholder:unref(ae)("el.datepicker.selectDate"),"model-value":or.value,size:"small","validate-event":!1,disabled:unref(En),readonly:!Yn.editable,onInput:er[0]||(er[0]=Fn=>ze.value=Fn),onChange:qn},null,8,["placeholder","model-value","disabled","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(V).e("editor-wrap"))},[createVNode$1(unref(ElInput),{placeholder:unref(ae)("el.datepicker.selectTime"),"model-value":In.value,size:"small","validate-event":!1,disabled:unref(En),readonly:!Yn.editable,onFocus:Zn,onInput:er[1]||(er[1]=Fn=>Pt.value=Fn),onChange:Bn},null,8,["placeholder","model-value","disabled","readonly"]),createVNode$1(unref(TimePickPanel),{visible:Qn.value,format:Hn.value,"parsed-value":Ie.value,onPick:Mn},null,8,["visible","format","parsed-value"])],2)),[[unref(ClickOutside),Gn]])],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{class:normalizeClass([unref(V).e("header"),(jt.value==="year"||jt.value==="month")&&unref(V).em("header","bordered")])},[createBaseVNode("span",{class:normalizeClass(unref(V).e("prev-btn"))},[createBaseVNode("button",{type:"button","aria-label":unref(ae)("el.datepicker.prevYear"),class:normalizeClass(["d-arrow-left",unref($).e("icon-btn")]),disabled:unref(En),onClick:er[2]||(er[2]=Fn=>Lt(!1))},[renderSlot(Yn.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_2$M),withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(ae)("el.datepicker.prevMonth"),class:normalizeClass([unref($).e("icon-btn"),"arrow-left"]),disabled:unref(En),onClick:er[3]||(er[3]=Fn=>Dt(!1))},[renderSlot(Yn.$slots,"prev-month",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_left_default))]),_:1})])],10,_hoisted_3$m),[[vShow,jt.value==="date"]])],2),createBaseVNode("span",{role:"button",class:normalizeClass(unref(V).e("header-label")),"aria-live":"polite",tabindex:Yn.disabled?void 0:0,"aria-disabled":Yn.disabled,onKeydown:er[4]||(er[4]=withKeys(Fn=>kn("year"),["enter"])),onClick:er[5]||(er[5]=Fn=>kn("year"))},toDisplayString(hn.value),43,_hoisted_4$h),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:Yn.disabled?void 0:0,"aria-disabled":Yn.disabled,class:normalizeClass([unref(V).e("header-label"),{active:jt.value==="month"}]),onKeydown:er[6]||(er[6]=withKeys(Fn=>kn("month"),["enter"])),onClick:er[7]||(er[7]=Fn=>kn("month"))},toDisplayString(unref(ae)(`el.datepicker.month${Ve.value+1}`)),43,_hoisted_5$9),[[vShow,jt.value==="date"]]),createBaseVNode("span",{class:normalizeClass(unref(V).e("next-btn"))},[withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(ae)("el.datepicker.nextMonth"),class:normalizeClass([unref($).e("icon-btn"),"arrow-right"]),disabled:unref(En),onClick:er[8]||(er[8]=Fn=>Dt(!0))},[renderSlot(Yn.$slots,"next-month",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})])],10,_hoisted_6$3),[[vShow,jt.value==="date"]]),createBaseVNode("button",{type:"button","aria-label":unref(ae)("el.datepicker.nextYear"),class:normalizeClass([unref($).e("icon-btn"),"d-arrow-right"]),disabled:unref(En),onClick:er[9]||(er[9]=Fn=>Lt(!0))},[renderSlot(Yn.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_7$2)],2)],2),[[vShow,jt.value!=="time"]]),createBaseVNode("div",{class:normalizeClass(unref($).e("content")),onKeydown:pr},[jt.value==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"currentViewRef",ref:xe,"selection-mode":_n.value,date:Ie.value,"parsed-value":Yn.parsedValue,"disabled-date":unref(he),disabled:unref(En),"cell-class-name":unref(pe),"show-week-number":Yn.showWeekNumber,onPick:At},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):createCommentVNode("v-if",!0),jt.value==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"currentViewRef",ref:xe,"selection-mode":_n.value,date:Ie.value,"disabled-date":unref(he),disabled:unref(En),"parsed-value":Yn.parsedValue,"cell-class-name":unref(pe),onPick:Tn},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):createCommentVNode("v-if",!0),jt.value==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"currentViewRef",ref:xe,"selection-mode":_n.value,date:Ie.value,"parsed-value":Yn.parsedValue,"disabled-date":unref(he),disabled:unref(En),"cell-class-name":unref(pe),onPick:Sn},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):createCommentVNode("v-if",!0)],34)],2)],2),Yn.showFooter&&An.value&&xn.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).e("footer"))},[withDirectives(createVNode$1(unref(ElButton),{text:"",size:"small",class:normalizeClass(unref($).e("link-btn")),disabled:Pn.value,onClick:On},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(ae)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[vShow,!wn.value&&Yn.showNow]]),Yn.showConfirm?(openBlock(),createBlock(unref(ElButton),{key:0,plain:"",size:"small",class:normalizeClass(unref($).e("link-btn")),disabled:Ln.value,onClick:Nn},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(ae)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],2))}});var DatePickPanel=_export_sfc(_sfc_main$1W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue"]]);const panelDateRangeProps=buildProps({...panelSharedProps,...panelRangeSharedProps}),useShortcut=n=>{const{emit:t}=getCurrentInstance(),r=useAttrs$1(),i=useSlots();return $=>{const V=isFunction$4($.value)?$.value():$.value;if(V){t("pick",[dayjs(V[0]).locale(n.value),dayjs(V[1]).locale(n.value)]);return}$.onClick&&$.onClick({attrs:r,slots:i,emit:t})}},useRangePicker=(n,{defaultValue:t,defaultTime:r,leftDate:i,rightDate:g,step:$,unit:V,sortDates:re})=>{const{emit:ie}=getCurrentInstance(),{pickerNs:ae}=inject(ROOT_PICKER_INJECTION_KEY),oe=useNamespace("date-range-picker"),{t:le,lang:ue}=useLocale(),de=useShortcut(ue),he=ref(),pe=ref(),_e=ref({endDate:null,selecting:!1}),Ce=$e=>{_e.value=$e},xe=($e=!1)=>{const Ve=unref(he),Ue=unref(pe);isValidRange([Ve,Ue])&&ie("pick",[Ve,Ue],$e)},Ie=$e=>{_e.value.selecting=$e,$e||(_e.value.endDate=null)},Ne=$e=>{if(isArray$5($e)&&$e.length===2){const[Ve,Ue]=$e;he.value=Ve,i.value=Ve,pe.value=Ue,re(unref(he),unref(pe))}else Oe()},Oe=()=>{let[$e,Ve]=getDefaultValue(unref(t),{lang:unref(ue),step:$,unit:V,unlinkPanels:n.unlinkPanels});const Ue=ze=>ze.diff(ze.startOf("d"),"ms"),Fe=unref(r);if(Fe){let ze=0,Pt=0;if(isArray$5(Fe)){const[qe,Et]=Fe.map(dayjs);ze=Ue(qe),Pt=Ue(Et)}else{const qe=Ue(dayjs(Fe));ze=qe,Pt=qe}$e=$e.startOf("d").add(ze,"ms"),Ve=Ve.startOf("d").add(Pt,"ms")}he.value=void 0,pe.value=void 0,i.value=$e,g.value=Ve};return watch(t,$e=>{$e&&Oe()},{immediate:!0}),watch(()=>n.parsedValue,$e=>{(!($e!=null&&$e.length)||!isEqual$1($e,[he.value,pe.value]))&&Ne($e)},{immediate:!0}),watch(()=>n.visible,()=>{n.visible&&Ne(n.parsedValue)},{immediate:!0}),{minDate:he,maxDate:pe,rangeState:_e,lang:ue,ppNs:ae,drpNs:oe,handleChangeRange:Ce,handleRangeConfirm:xe,handleShortcutClick:de,onSelect:Ie,parseValue:Ne,t:le}},usePanelDateRange=(n,t,r,i)=>{const g=ref("date"),$=ref(),V=ref("date"),re=ref(),ie=inject(PICKER_BASE_INJECTION_KEY),{disabledDate:ae}=ie.props,{t:oe,lang:le}=useLocale(),ue=computed(()=>r.value.year()),de=computed(()=>r.value.month()),he=computed(()=>i.value.year()),pe=computed(()=>i.value.month());function _e($e,Ve){const Ue=oe("el.datepicker.year");if($e.value==="year"){const Fe=Math.floor(Ve.value/10)*10;return Ue?`${Fe} ${Ue} - ${Fe+9} ${Ue}`:`${Fe} - ${Fe+9}`}return`${Ve.value} ${Ue}`}function Ce($e){$e==null||$e.focus()}async function xe($e,Ve){if(n.disabled)return;const Ue=$e==="left"?g:V,Fe=$e==="left"?$:re;Ue.value=Ve,await nextTick(),Ce(Fe.value)}async function Ie($e,Ve,Ue){if(n.disabled)return;const Fe=Ve==="left",ze=Fe?r:i,Pt=Fe?i:r,qe=Fe?g:V,Et=Fe?$:re;if($e==="year"){const kt=ze.value.year(Ue);ze.value=getValidDateOfYear(kt,le.value,ae)}$e==="month"&&(ze.value=getValidDateOfMonth(ze.value,ze.value.year(),Ue,le.value,ae)),n.unlinkPanels||(Pt.value=Ve==="left"?ze.value.add(1,"month"):ze.value.subtract(1,"month")),qe.value=$e==="year"?"month":"date",await nextTick(),Ce(Et.value),Ne($e)}function Ne($e){t("panel-change",[r.value.toDate(),i.value.toDate()],$e)}function Oe($e,Ve,Ue){const Fe=Ue?"add":"subtract";return $e==="year"?Ve[Fe](10,"year"):Ve[Fe](1,"year")}return{leftCurrentView:g,rightCurrentView:V,leftCurrentViewRef:$,rightCurrentViewRef:re,leftYear:ue,rightYear:he,leftMonth:de,rightMonth:pe,leftYearLabel:computed(()=>_e(g,ue)),rightYearLabel:computed(()=>_e(V,he)),showLeftPicker:$e=>xe("left",$e),showRightPicker:$e=>xe("right",$e),handleLeftYearPick:$e=>Ie("year","left",$e),handleRightYearPick:$e=>Ie("year","right",$e),handleLeftMonthPick:$e=>Ie("month","left",$e),handleRightMonthPick:$e=>Ie("month","right",$e),handlePanelChange:Ne,adjustDateByView:Oe}},_hoisted_1$18=["disabled","onClick"],_hoisted_2$L=["aria-label","disabled"],_hoisted_3$l=["aria-label","disabled"],_hoisted_4$g=["disabled","aria-label"],_hoisted_5$8=["disabled","aria-label"],_hoisted_6$2=["tabindex","aria-disabled"],_hoisted_7$1=["tabindex","aria-disabled"],_hoisted_8$1=["disabled","aria-label"],_hoisted_9$1=["disabled","aria-label"],_hoisted_10$1=["aria-label","disabled"],_hoisted_11$1=["disabled","aria-label"],_hoisted_12$1=["tabindex","aria-disabled"],_hoisted_13$1=["tabindex","aria-disabled"],unit$2="month",_sfc_main$1V=defineComponent({__name:"panel-date-range",props:panelDateRangeProps,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(n,{emit:t}){const r=n,i=t,g=inject(PICKER_BASE_INJECTION_KEY),$=inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,void 0),{disabledDate:V,cellClassName:re,defaultTime:ie,clearable:ae}=g.props,oe=toRef$1(g.props,"format"),le=toRef$1(g.props,"shortcuts"),ue=toRef$1(g.props,"defaultValue"),{lang:de}=useLocale(),he=ref(dayjs().locale(de.value)),pe=ref(dayjs().locale(de.value).add(1,unit$2)),{minDate:_e,maxDate:Ce,rangeState:xe,ppNs:Ie,drpNs:Ne,handleChangeRange:Oe,handleRangeConfirm:$e,handleShortcutClick:Ve,onSelect:Ue,parseValue:Fe,t:ze}=useRangePicker(r,{defaultValue:ue,defaultTime:ie,leftDate:he,rightDate:pe,unit:unit$2,sortDates:Tr});watch(()=>r.visible,fr=>{!fr&&xe.value.selecting&&(Fe(r.parsedValue),Ue(!1))});const Pt=ref({min:null,max:null}),qe=ref({min:null,max:null}),{leftCurrentView:Et,rightCurrentView:kt,leftCurrentViewRef:At,rightCurrentViewRef:Dt,leftYear:Lt,rightYear:jt,leftMonth:hn,rightMonth:vn,leftYearLabel:_n,rightYearLabel:wn,showLeftPicker:bn,showRightPicker:Cn,handleLeftYearPick:Sn,handleRightYearPick:Tn,handleLeftMonthPick:En,handleRightMonthPick:kn,handlePanelChange:$n,adjustDateByView:An}=usePanelDateRange(r,i,he,pe),xn=computed(()=>!!le.value.length),Ln=computed(()=>Pt.value.min!==null?Pt.value.min:_e.value?_e.value.format(Xn.value):""),Nn=computed(()=>Pt.value.max!==null?Pt.value.max:Ce.value||_e.value?(Ce.value||_e.value).format(Xn.value):""),Pn=computed(()=>qe.value.min!==null?qe.value.min:_e.value?_e.value.format(Hn.value):""),On=computed(()=>qe.value.max!==null?qe.value.max:Ce.value||_e.value?(Ce.value||_e.value).format(Hn.value):""),Hn=computed(()=>r.timeFormat||extractTimeFormat(oe.value||"")||DEFAULT_FORMATS_TIME),Xn=computed(()=>r.dateFormat||extractDateFormat(oe.value||"")||DEFAULT_FORMATS_DATE),In=fr=>isValidRange(fr)&&(V?!V(fr[0].toDate())&&!V(fr[1].toDate()):!0),or=()=>{he.value=An(Et.value,he.value,!1),r.unlinkPanels||(pe.value=he.value.add(1,"month")),$n("year")},Qn=()=>{he.value=he.value.subtract(1,"month"),r.unlinkPanels||(pe.value=he.value.add(1,"month")),$n("month")},Zn=()=>{r.unlinkPanels?pe.value=An(kt.value,pe.value,!0):(he.value=An(kt.value,he.value,!0),pe.value=he.value.add(1,"month")),$n("year")},Gn=()=>{r.unlinkPanels?pe.value=pe.value.add(1,"month"):(he.value=he.value.add(1,"month"),pe.value=he.value.add(1,"month")),$n("month")},Rn=()=>{he.value=An(Et.value,he.value,!0),$n("year")},Mn=()=>{he.value=he.value.add(1,"month"),$n("month")},Bn=()=>{pe.value=An(kt.value,pe.value,!1),$n("year")},qn=()=>{pe.value=pe.value.subtract(1,"month"),$n("month")},zn=computed(()=>{const fr=(hn.value+1)%12,_r=hn.value+1>=12?1:0;return r.unlinkPanels&&new Date(Lt.value+_r,fr)r.unlinkPanels&&jt.value*12+vn.value-(Lt.value*12+hn.value+1)>=12),tr=useFormDisabled(),hr=computed(()=>!(_e.value&&Ce.value&&!xe.value.selecting&&isValidRange([_e.value,Ce.value])&&!tr.value)),ir=computed(()=>r.type==="datetime"||r.type==="datetimerange"),pr=(fr,_r)=>{if(fr)return ie?dayjs(ie[_r]||ie).locale(de.value).year(fr.year()).month(fr.month()).date(fr.date()):fr},rr=(fr,_r=!0)=>{const Cr=fr.minDate,zr=fr.maxDate,Ur=pr(Cr,0),jr=pr(zr,1);Ce.value===jr&&_e.value===Ur||(i("calendar-change",[Cr.toDate(),zr&&zr.toDate()]),Ce.value=jr,_e.value=Ur,!ir.value&&_r&&(_r=!Ur||!jr),$e(_r))},lr=ref(!1),Yn=ref(!1),er=()=>{lr.value=!1},Fn=()=>{Yn.value=!1},cr=(fr,_r)=>{Pt.value[_r]=fr;const Cr=dayjs(fr,Xn.value).locale(de.value);if(Cr.isValid()){if(V&&V(Cr.toDate()))return;_r==="min"?(he.value=Cr,_e.value=(_e.value||he.value).year(Cr.year()).month(Cr.month()).date(Cr.date()),!r.unlinkPanels&&(!Ce.value||Ce.value.isBefore(_e.value))&&(pe.value=Cr.add(1,"month"),Ce.value=_e.value.add(1,"month"))):(pe.value=Cr,Ce.value=(Ce.value||pe.value).year(Cr.year()).month(Cr.month()).date(Cr.date()),!r.unlinkPanels&&(!_e.value||_e.value.isAfter(Ce.value))&&(he.value=Cr.subtract(1,"month"),_e.value=Ce.value.subtract(1,"month"))),Tr(_e.value,Ce.value),$e(!0)}},Un=(fr,_r)=>{Pt.value[_r]=null},gr=(fr,_r)=>{qe.value[_r]=fr;const Cr=dayjs(fr,Hn.value).locale(de.value);Cr.isValid()&&(_r==="min"?(lr.value=!0,_e.value=(_e.value||he.value).hour(Cr.hour()).minute(Cr.minute()).second(Cr.second()),he.value=_e.value):(Yn.value=!0,Ce.value=(Ce.value||pe.value).hour(Cr.hour()).minute(Cr.minute()).second(Cr.second()),pe.value=Ce.value))},vr=(fr,_r)=>{qe.value[_r]=null,_r==="min"?(he.value=_e.value,lr.value=!1,(!Ce.value||Ce.value.isBefore(_e.value))&&(Ce.value=_e.value)):(pe.value=Ce.value,Yn.value=!1,Ce.value&&Ce.value.isBefore(_e.value)&&(_e.value=Ce.value)),$e(!0)},yr=(fr,_r,Cr)=>{qe.value.min||(fr&&(_e.value=(_e.value||he.value).hour(fr.hour()).minute(fr.minute()).second(fr.second())),Cr||(lr.value=_r),(!Ce.value||Ce.value.isBefore(_e.value))&&(Ce.value=_e.value,pe.value=fr,nextTick(()=>{Fe(r.parsedValue)})),$e(!0))},Wn=(fr,_r,Cr)=>{qe.value.max||(fr&&(Ce.value=(Ce.value||pe.value).hour(fr.hour()).minute(fr.minute()).second(fr.second())),Cr||(Yn.value=_r),Ce.value&&Ce.value.isBefore(_e.value)&&(_e.value=Ce.value),$e(!0))},Jn=()=>{sr(),i("clear")},sr=()=>{let fr=null;g!=null&&g.emptyValues&&(fr=g.emptyValues.valueOnClear.value),he.value=getDefaultValue(unref(ue),{lang:unref(de),unit:"month",unlinkPanels:r.unlinkPanels})[0],pe.value=he.value.add(1,"month"),Ce.value=void 0,_e.value=void 0,$e(!0),i("pick",fr)},Sr=fr=>correctlyParseUserInput(fr,oe.value||"",de.value,$);function Tr(fr,_r){if(r.unlinkPanels&&_r){const Cr=(fr==null?void 0:fr.year())||0,zr=(fr==null?void 0:fr.month())||0,Ur=_r.year(),jr=_r.month();pe.value=Cr===Ur&&zr===jr?_r.add(1,unit$2):_r}else pe.value=he.value.add(1,unit$2),_r&&(pe.value=pe.value.hour(_r.hour()).minute(_r.minute()).second(_r.second()))}return i("set-picker-option",["isValidValue",In]),i("set-picker-option",["parseUserInput",Sr]),i("set-picker-option",["handleClear",sr]),(fr,_r)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(Ie).b(),unref(Ne).b(),unref(Ie).is("border",fr.border),unref(Ie).is("disabled",unref(tr)),{"has-sidebar":fr.$slots.sidebar||xn.value,"has-time":ir.value}])},[createBaseVNode("div",{class:normalizeClass(unref(Ie).e("body-wrapper"))},[renderSlot(fr.$slots,"sidebar",{class:normalizeClass(unref(Ie).e("sidebar"))}),xn.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ie).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(le.value,(Cr,zr)=>(openBlock(),createElementBlock("button",{key:zr,type:"button",disabled:unref(tr),class:normalizeClass(unref(Ie).e("shortcut")),onClick:Ur=>unref(Ve)(Cr)},toDisplayString(Cr.text),11,_hoisted_1$18))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Ie).e("body"))},[ir.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ne).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(Ne).e("editors-wrap"))},[createBaseVNode("span",{class:normalizeClass(unref(Ne).e("time-picker-wrap"))},[createVNode$1(unref(ElInput),{size:"small",disabled:unref(xe).selecting||unref(tr),placeholder:unref(ze)("el.datepicker.startDate"),class:normalizeClass(unref(Ne).e("editor")),"model-value":Ln.value,"validate-event":!1,readonly:!fr.editable,onInput:_r[0]||(_r[0]=Cr=>cr(Cr,"min")),onChange:_r[1]||(_r[1]=Cr=>Un(Cr,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(Ne).e("time-picker-wrap"))},[createVNode$1(unref(ElInput),{size:"small",class:normalizeClass(unref(Ne).e("editor")),disabled:unref(xe).selecting||unref(tr),placeholder:unref(ze)("el.datepicker.startTime"),"model-value":Pn.value,"validate-event":!1,readonly:!fr.editable,onFocus:_r[2]||(_r[2]=Cr=>lr.value=!0),onInput:_r[3]||(_r[3]=Cr=>gr(Cr,"min")),onChange:_r[4]||(_r[4]=Cr=>vr(Cr,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),createVNode$1(unref(TimePickPanel),{visible:lr.value,format:Hn.value,"datetime-role":"start","parsed-value":unref(_e)||he.value,onPick:yr},null,8,["visible","format","parsed-value"])],2)),[[unref(ClickOutside),er]])],2),createBaseVNode("span",null,[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})]),createBaseVNode("span",{class:normalizeClass([unref(Ne).e("editors-wrap"),"is-right"])},[createBaseVNode("span",{class:normalizeClass(unref(Ne).e("time-picker-wrap"))},[createVNode$1(unref(ElInput),{size:"small",class:normalizeClass(unref(Ne).e("editor")),disabled:unref(xe).selecting||unref(tr),placeholder:unref(ze)("el.datepicker.endDate"),"model-value":Nn.value,readonly:!unref(_e)||!fr.editable,"validate-event":!1,onInput:_r[5]||(_r[5]=Cr=>cr(Cr,"max")),onChange:_r[6]||(_r[6]=Cr=>Un(Cr,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(Ne).e("time-picker-wrap"))},[createVNode$1(unref(ElInput),{size:"small",class:normalizeClass(unref(Ne).e("editor")),disabled:unref(xe).selecting||unref(tr),placeholder:unref(ze)("el.datepicker.endTime"),"model-value":On.value,readonly:!unref(_e)||!fr.editable,"validate-event":!1,onFocus:_r[7]||(_r[7]=Cr=>unref(_e)&&(Yn.value=!0)),onInput:_r[8]||(_r[8]=Cr=>gr(Cr,"max")),onChange:_r[9]||(_r[9]=Cr=>vr(Cr,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),createVNode$1(unref(TimePickPanel),{"datetime-role":"end",visible:Yn.value,format:Hn.value,"parsed-value":unref(Ce)||pe.value,onPick:Wn},null,8,["visible","format","parsed-value"])],2)),[[unref(ClickOutside),Fn]])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([[unref(Ie).e("content"),unref(Ne).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(Ne).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ie).e("icon-btn"),"d-arrow-left"]),"aria-label":unref(ze)("el.datepicker.prevYear"),disabled:unref(tr),onClick:or},[renderSlot(fr.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_2$L),withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ie).e("icon-btn"),"arrow-left"]),"aria-label":unref(ze)("el.datepicker.prevMonth"),disabled:unref(tr),onClick:Qn},[renderSlot(fr.$slots,"prev-month",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_left_default))]),_:1})])],10,_hoisted_3$l),[[vShow,unref(Et)==="date"]]),fr.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!jn.value||unref(tr),class:normalizeClass([[unref(Ie).e("icon-btn"),unref(Ie).is("disabled",!jn.value||unref(tr))],"d-arrow-right"]),"aria-label":unref(ze)("el.datepicker.nextYear"),onClick:Rn},[renderSlot(fr.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_4$g)):createCommentVNode("v-if",!0),fr.unlinkPanels&&unref(Et)==="date"?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!zn.value||unref(tr),class:normalizeClass([[unref(Ie).e("icon-btn"),unref(Ie).is("disabled",!zn.value||unref(tr))],"arrow-right"]),"aria-label":unref(ze)("el.datepicker.nextMonth"),onClick:Mn},[renderSlot(fr.$slots,"next-month",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})])],10,_hoisted_5$8)):createCommentVNode("v-if",!0),createBaseVNode("div",null,[createBaseVNode("span",{role:"button",class:normalizeClass(unref(Ne).e("header-label")),"aria-live":"polite",tabindex:fr.disabled?void 0:0,"aria-disabled":fr.disabled,onKeydown:_r[10]||(_r[10]=withKeys(Cr=>unref(bn)("year"),["enter"])),onClick:_r[11]||(_r[11]=Cr=>unref(bn)("year"))},toDisplayString(unref(_n)),43,_hoisted_6$2),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:fr.disabled?void 0:0,"aria-disabled":fr.disabled,class:normalizeClass([unref(Ne).e("header-label"),{active:unref(Et)==="month"}]),onKeydown:_r[12]||(_r[12]=withKeys(Cr=>unref(bn)("month"),["enter"])),onClick:_r[13]||(_r[13]=Cr=>unref(bn)("month"))},toDisplayString(unref(ze)(`el.datepicker.month${he.value.month()+1}`)),43,_hoisted_7$1),[[vShow,unref(Et)==="date"]])])],2),unref(Et)==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"leftCurrentViewRef",ref:At,"selection-mode":"range",date:he.value,"min-date":unref(_e),"max-date":unref(Ce),"range-state":unref(xe),"disabled-date":unref(V),"cell-class-name":unref(re),"show-week-number":fr.showWeekNumber,disabled:unref(tr),onChangerange:unref(Oe),onPick:rr,onSelect:unref(Ue)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):createCommentVNode("v-if",!0),unref(Et)==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"leftCurrentViewRef",ref:At,"selection-mode":"year",date:he.value,"disabled-date":unref(V),"parsed-value":fr.parsedValue,disabled:unref(tr),onPick:unref(Sn)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):createCommentVNode("v-if",!0),unref(Et)==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"leftCurrentViewRef",ref:At,"selection-mode":"month",date:he.value,"parsed-value":fr.parsedValue,"disabled-date":unref(V),disabled:unref(tr),onPick:unref(En)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{class:normalizeClass([[unref(Ie).e("content"),unref(Ne).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(Ne).e("header"))},[fr.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!jn.value||unref(tr),class:normalizeClass([unref(Ie).e("icon-btn"),"d-arrow-left"]),"aria-label":unref(ze)("el.datepicker.prevYear"),onClick:Bn},[renderSlot(fr.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_8$1)):createCommentVNode("v-if",!0),fr.unlinkPanels&&unref(kt)==="date"?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!zn.value||unref(tr),class:normalizeClass([unref(Ie).e("icon-btn"),"arrow-left"]),"aria-label":unref(ze)("el.datepicker.prevMonth"),onClick:qn},[renderSlot(fr.$slots,"prev-month",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_left_default))]),_:1})])],10,_hoisted_9$1)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button","aria-label":unref(ze)("el.datepicker.nextYear"),class:normalizeClass([unref(Ie).e("icon-btn"),"d-arrow-right"]),disabled:unref(tr),onClick:Zn},[renderSlot(fr.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_10$1),withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ie).e("icon-btn"),"arrow-right"]),disabled:unref(tr),"aria-label":unref(ze)("el.datepicker.nextMonth"),onClick:Gn},[renderSlot(fr.$slots,"next-month",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})])],10,_hoisted_11$1),[[vShow,unref(kt)==="date"]]),createBaseVNode("div",null,[createBaseVNode("span",{role:"button",class:normalizeClass(unref(Ne).e("header-label")),"aria-live":"polite",tabindex:fr.disabled?void 0:0,"aria-disabled":fr.disabled,onKeydown:_r[14]||(_r[14]=withKeys(Cr=>unref(Cn)("year"),["enter"])),onClick:_r[15]||(_r[15]=Cr=>unref(Cn)("year"))},toDisplayString(unref(wn)),43,_hoisted_12$1),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:fr.disabled?void 0:0,"aria-disabled":fr.disabled,class:normalizeClass([unref(Ne).e("header-label"),{active:unref(kt)==="month"}]),onKeydown:_r[16]||(_r[16]=withKeys(Cr=>unref(Cn)("month"),["enter"])),onClick:_r[17]||(_r[17]=Cr=>unref(Cn)("month"))},toDisplayString(unref(ze)(`el.datepicker.month${pe.value.month()+1}`)),43,_hoisted_13$1),[[vShow,unref(kt)==="date"]])])],2),unref(kt)==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"rightCurrentViewRef",ref:Dt,"selection-mode":"range",date:pe.value,"min-date":unref(_e),"max-date":unref(Ce),"range-state":unref(xe),"disabled-date":unref(V),"cell-class-name":unref(re),"show-week-number":fr.showWeekNumber,disabled:unref(tr),onChangerange:unref(Oe),onPick:rr,onSelect:unref(Ue)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):createCommentVNode("v-if",!0),unref(kt)==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"rightCurrentViewRef",ref:Dt,"selection-mode":"year",date:pe.value,"disabled-date":unref(V),"parsed-value":fr.parsedValue,disabled:unref(tr),onPick:unref(Tn)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):createCommentVNode("v-if",!0),unref(kt)==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"rightCurrentViewRef",ref:Dt,"selection-mode":"month",date:pe.value,"parsed-value":fr.parsedValue,"disabled-date":unref(V),disabled:unref(tr),onPick:unref(kn)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):createCommentVNode("v-if",!0)],2)],2)],2),fr.showFooter&&ir.value&&(fr.showConfirm||unref(ae))?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ie).e("footer"))},[unref(ae)?(openBlock(),createBlock(unref(ElButton),{key:0,text:"",size:"small",class:normalizeClass(unref(Ie).e("link-btn")),onClick:Jn},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(ze)("el.datepicker.clear")),1)]),_:1},8,["class"])):createCommentVNode("v-if",!0),fr.showConfirm?(openBlock(),createBlock(unref(ElButton),{key:1,plain:"",size:"small",class:normalizeClass(unref(Ie).e("link-btn")),disabled:hr.value,onClick:_r[18]||(_r[18]=Cr=>unref($e)(!1))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(ze)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],2))}});var DateRangePickPanel=_export_sfc(_sfc_main$1V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/panel-date-range.vue"]]);const panelMonthRangeProps=buildProps({...panelRangeSharedProps}),panelMonthRangeEmits=["pick","set-picker-option","calendar-change"],useMonthRangeHeader=({unlinkPanels:n,leftDate:t,rightDate:r})=>{const{t:i}=useLocale(),g=()=>{t.value=t.value.subtract(1,"year"),n.value||(r.value=r.value.subtract(1,"year"))},$=()=>{n.value||(t.value=t.value.add(1,"year")),r.value=r.value.add(1,"year")},V=()=>{t.value=t.value.add(1,"year")},re=()=>{r.value=r.value.subtract(1,"year")},ie=computed(()=>`${t.value.year()} ${i("el.datepicker.year")}`),ae=computed(()=>`${r.value.year()} ${i("el.datepicker.year")}`),oe=computed(()=>t.value.year()),le=computed(()=>r.value.year()===t.value.year()?t.value.year()+1:r.value.year());return{leftPrevYear:g,rightNextYear:$,leftNextYear:V,rightPrevYear:re,leftLabel:ie,rightLabel:ae,leftYear:oe,rightYear:le}},_hoisted_1$17=["disabled","onClick"],_hoisted_2$K=["disabled"],_hoisted_3$k=["disabled"],_hoisted_4$f=["disabled"],_hoisted_5$7=["disabled"],unit$1="year",_sfc_main$1U=defineComponent({name:"DatePickerMonthRange",__name:"panel-month-range",props:panelMonthRangeProps,emits:panelMonthRangeEmits,setup(n,{emit:t}){const r=n,i=t,{lang:g}=useLocale(),$=inject(PICKER_BASE_INJECTION_KEY),V=inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,void 0),{shortcuts:re,disabledDate:ie,cellClassName:ae}=$.props,oe=toRef$1($.props,"format"),le=toRef$1($.props,"defaultValue"),ue=ref(dayjs().locale(g.value)),de=ref(dayjs().locale(g.value).add(1,unit$1)),{minDate:he,maxDate:pe,rangeState:_e,ppNs:Ce,drpNs:xe,handleChangeRange:Ie,handleRangeConfirm:Ne,handleShortcutClick:Oe,onSelect:$e,parseValue:Ve}=useRangePicker(r,{defaultValue:le,leftDate:ue,rightDate:de,unit:unit$1,sortDates:_n}),Ue=computed(()=>!!re.length),{leftPrevYear:Fe,rightNextYear:ze,leftNextYear:Pt,rightPrevYear:qe,leftLabel:Et,rightLabel:kt,leftYear:At,rightYear:Dt}=useMonthRangeHeader({unlinkPanels:toRef$1(r,"unlinkPanels"),leftDate:ue,rightDate:de}),Lt=computed(()=>r.unlinkPanels&&Dt.value>At.value+1),jt=(bn,Cn=!0)=>{const Sn=bn.minDate,Tn=bn.maxDate;pe.value===Tn&&he.value===Sn||(i("calendar-change",[Sn.toDate(),Tn&&Tn.toDate()]),pe.value=Tn,he.value=Sn,Cn&&Ne())},hn=()=>{let bn=null;$!=null&&$.emptyValues&&(bn=$.emptyValues.valueOnClear.value),ue.value=getDefaultValue(unref(le),{lang:unref(g),unit:"year",unlinkPanels:r.unlinkPanels})[0],de.value=ue.value.add(1,"year"),i("pick",bn)},vn=bn=>correctlyParseUserInput(bn,oe.value,g.value,V);function _n(bn,Cn){if(r.unlinkPanels&&Cn){const Sn=(bn==null?void 0:bn.year())||0,Tn=Cn.year();de.value=Sn===Tn?Cn.add(1,unit$1):Cn}else de.value=ue.value.add(1,unit$1)}const wn=useFormDisabled();return watch(()=>r.visible,bn=>{!bn&&_e.value.selecting&&(Ve(r.parsedValue),$e(!1))}),i("set-picker-option",["isValidValue",isValidRange]),i("set-picker-option",["parseUserInput",vn]),i("set-picker-option",["handleClear",hn]),(bn,Cn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(Ce).b(),unref(xe).b(),unref(Ce).is("border",bn.border),unref(Ce).is("disabled",unref(wn)),{"has-sidebar":!!bn.$slots.sidebar||Ue.value}])},[createBaseVNode("div",{class:normalizeClass(unref(Ce).e("body-wrapper"))},[renderSlot(bn.$slots,"sidebar",{class:normalizeClass(unref(Ce).e("sidebar"))}),Ue.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ce).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(re),(Sn,Tn)=>(openBlock(),createElementBlock("button",{key:Tn,type:"button",class:normalizeClass(unref(Ce).e("shortcut")),disabled:unref(wn),onClick:En=>unref(Oe)(Sn)},toDisplayString(Sn.text),11,_hoisted_1$17))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Ce).e("body"))},[createBaseVNode("div",{class:normalizeClass([[unref(Ce).e("content"),unref(xe).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(xe).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ce).e("icon-btn"),"d-arrow-left"]),disabled:unref(wn),onClick:Cn[0]||(Cn[0]=(...Sn)=>unref(Fe)&&unref(Fe)(...Sn))},[renderSlot(bn.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_2$K),bn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!Lt.value||unref(wn),class:normalizeClass([[unref(Ce).e("icon-btn"),unref(Ce).is("disabled",!Lt.value||unref(wn))],"d-arrow-right"]),onClick:Cn[1]||(Cn[1]=(...Sn)=>unref(Pt)&&unref(Pt)(...Sn))},[renderSlot(bn.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_3$k)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString(unref(Et)),1)],2),createVNode$1(MonthTable,{"selection-mode":"range",date:ue.value,"min-date":unref(he),"max-date":unref(pe),"range-state":unref(_e),"disabled-date":unref(ie),disabled:unref(wn),"cell-class-name":unref(ae),onChangerange:unref(Ie),onPick:jt,onSelect:unref($e)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(Ce).e("content"),unref(xe).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(xe).e("header"))},[bn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!Lt.value||unref(wn),class:normalizeClass([[unref(Ce).e("icon-btn"),unref(Ce).is("disabled",!Lt.value||unref(wn))],"d-arrow-left"]),onClick:Cn[2]||(Cn[2]=(...Sn)=>unref(qe)&&unref(qe)(...Sn))},[renderSlot(bn.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_4$f)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ce).e("icon-btn"),"d-arrow-right"]),disabled:unref(wn),onClick:Cn[3]||(Cn[3]=(...Sn)=>unref(ze)&&unref(ze)(...Sn))},[renderSlot(bn.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_5$7),createBaseVNode("div",null,toDisplayString(unref(kt)),1)],2),createVNode$1(MonthTable,{"selection-mode":"range",date:de.value,"min-date":unref(he),"max-date":unref(pe),"range-state":unref(_e),"disabled-date":unref(ie),disabled:unref(wn),"cell-class-name":unref(ae),onChangerange:unref(Ie),onPick:jt,onSelect:unref($e)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});var MonthRangePickPanel=_export_sfc(_sfc_main$1U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/panel-month-range.vue"]]);const panelYearRangeProps=buildProps({...panelRangeSharedProps}),panelYearRangeEmits=["pick","set-picker-option","calendar-change"],useYearRangeHeader=({unlinkPanels:n,leftDate:t,rightDate:r})=>{const i=()=>{t.value=t.value.subtract(10,"year"),n.value||(r.value=r.value.subtract(10,"year"))},g=()=>{n.value||(t.value=t.value.add(10,"year")),r.value=r.value.add(10,"year")},$=()=>{t.value=t.value.add(10,"year")},V=()=>{r.value=r.value.subtract(10,"year")},re=computed(()=>{const le=Math.floor(t.value.year()/10)*10;return`${le}-${le+9}`}),ie=computed(()=>{const le=Math.floor(r.value.year()/10)*10;return`${le}-${le+9}`}),ae=computed(()=>Math.floor(t.value.year()/10)*10+9),oe=computed(()=>Math.floor(r.value.year()/10)*10);return{leftPrevYear:i,rightNextYear:g,leftNextYear:$,rightPrevYear:V,leftLabel:re,rightLabel:ie,leftYear:ae,rightYear:oe}},_hoisted_1$16=["disabled","onClick"],_hoisted_2$J=["disabled"],_hoisted_3$j=["disabled"],_hoisted_4$e=["disabled"],_hoisted_5$6=["disabled"],step=10,unit="year",_sfc_main$1T=defineComponent({name:"DatePickerYearRange",__name:"panel-year-range",props:panelYearRangeProps,emits:panelYearRangeEmits,setup(n,{emit:t}){const r=n,i=t,{lang:g}=useLocale(),$=ref(dayjs().locale(g.value)),V=ref(dayjs().locale(g.value).add(step,unit)),re=inject(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,void 0),ie=inject(PICKER_BASE_INJECTION_KEY),{shortcuts:ae,disabledDate:oe,cellClassName:le}=ie.props,ue=toRef$1(ie.props,"format"),de=toRef$1(ie.props,"defaultValue"),{minDate:he,maxDate:pe,rangeState:_e,ppNs:Ce,drpNs:xe,handleChangeRange:Ie,handleRangeConfirm:Ne,handleShortcutClick:Oe,onSelect:$e,parseValue:Ve}=useRangePicker(r,{defaultValue:de,leftDate:$,rightDate:V,step,unit,sortDates:Tn}),{leftPrevYear:Ue,rightNextYear:Fe,leftNextYear:ze,rightPrevYear:Pt,leftLabel:qe,rightLabel:Et,leftYear:kt,rightYear:At}=useYearRangeHeader({unlinkPanels:toRef$1(r,"unlinkPanels"),leftDate:$,rightDate:V}),Dt=useFormDisabled(),Lt=computed(()=>!!ae.length),jt=computed(()=>[Ce.b(),xe.b(),Ce.is("border",r.border),Ce.is("disabled",Dt.value),{"has-sidebar":!!useSlots().sidebar||Lt.value}]),hn=computed(()=>({content:[Ce.e("content"),xe.e("content"),"is-left"],arrowLeftBtn:[Ce.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[Ce.e("icon-btn"),Ce.is("disabled",!_n.value||Dt.value),"d-arrow-right"]})),vn=computed(()=>({content:[Ce.e("content"),xe.e("content"),"is-right"],arrowLeftBtn:[Ce.e("icon-btn"),Ce.is("disabled",!_n.value||Dt.value),"d-arrow-left"],arrowRightBtn:[Ce.e("icon-btn"),"d-arrow-right"]})),_n=computed(()=>r.unlinkPanels&&At.value>kt.value+1),wn=(En,kn=!0)=>{const $n=En.minDate,An=En.maxDate;pe.value===An&&he.value===$n||(i("calendar-change",[$n.toDate(),An&&An.toDate()]),pe.value=An,he.value=$n,kn&&Ne())},bn=En=>correctlyParseUserInput(En,ue.value,g.value,re),Cn=En=>isValidRange(En)&&(oe?!oe(En[0].toDate())&&!oe(En[1].toDate()):!0),Sn=()=>{let En=null;ie!=null&&ie.emptyValues&&(En=ie.emptyValues.valueOnClear.value);const kn=getDefaultValue(unref(de),{lang:unref(g),step,unit,unlinkPanels:r.unlinkPanels});$.value=kn[0],V.value=kn[1],i("pick",En)};function Tn(En,kn){if(r.unlinkPanels&&kn){const $n=(En==null?void 0:En.year())||0,An=kn.year();V.value=$n+step>An?kn.add(step,unit):kn}else V.value=$.value.add(step,unit)}return watch(()=>r.visible,En=>{!En&&_e.value.selecting&&(Ve(r.parsedValue),$e(!1))}),i("set-picker-option",["isValidValue",Cn]),i("set-picker-option",["parseUserInput",bn]),i("set-picker-option",["handleClear",Sn]),(En,kn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(jt.value)},[createBaseVNode("div",{class:normalizeClass(unref(Ce).e("body-wrapper"))},[renderSlot(En.$slots,"sidebar",{class:normalizeClass(unref(Ce).e("sidebar"))}),Lt.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ce).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ae),($n,An)=>(openBlock(),createElementBlock("button",{key:An,type:"button",class:normalizeClass(unref(Ce).e("shortcut")),disabled:unref(Dt),onClick:xn=>unref(Oe)($n)},toDisplayString($n.text),11,_hoisted_1$16))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Ce).e("body"))},[createBaseVNode("div",{class:normalizeClass(hn.value.content)},[createBaseVNode("div",{class:normalizeClass(unref(xe).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass(hn.value.arrowLeftBtn),disabled:unref(Dt),onClick:kn[0]||(kn[0]=(...$n)=>unref(Ue)&&unref(Ue)(...$n))},[renderSlot(En.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_2$J),En.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!_n.value||unref(Dt),class:normalizeClass(hn.value.arrowRightBtn),onClick:kn[1]||(kn[1]=(...$n)=>unref(ze)&&unref(ze)(...$n))},[renderSlot(En.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_3$j)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString(unref(qe)),1)],2),createVNode$1(YearTable,{"selection-mode":"range",date:$.value,"min-date":unref(he),"max-date":unref(pe),"range-state":unref(_e),"disabled-date":unref(oe),disabled:unref(Dt),"cell-class-name":unref(le),onChangerange:unref(Ie),onPick:wn,onSelect:unref($e)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass(vn.value.content)},[createBaseVNode("div",{class:normalizeClass(unref(xe).e("header"))},[En.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!_n.value||unref(Dt),class:normalizeClass(vn.value.arrowLeftBtn),onClick:kn[2]||(kn[2]=(...$n)=>unref(Pt)&&unref(Pt)(...$n))},[renderSlot(En.$slots,"prev-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_left_default))]),_:1})])],10,_hoisted_4$e)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass(vn.value.arrowRightBtn),disabled:unref(Dt),onClick:kn[3]||(kn[3]=(...$n)=>unref(Fe)&&unref(Fe)(...$n))},[renderSlot(En.$slots,"next-year",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(d_arrow_right_default))]),_:1})])],10,_hoisted_5$6),createBaseVNode("div",null,toDisplayString(unref(Et)),1)],2),createVNode$1(YearTable,{"selection-mode":"range",date:V.value,"min-date":unref(he),"max-date":unref(pe),"range-state":unref(_e),"disabled-date":unref(oe),disabled:unref(Dt),"cell-class-name":unref(le),onChangerange:unref(Ie),onPick:wn,onSelect:unref($e)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}});var YearRangePickPanel=_export_sfc(_sfc_main$1T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker-panel/src/date-picker-com/panel-year-range.vue"]]);const getPanel=function(n){switch(n){case"daterange":case"datetimerange":return DateRangePickPanel;case"monthrange":return MonthRangePickPanel;case"yearrange":return YearRangePickPanel;default:return DatePickPanel}};function _isSlot$7(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}dayjs.extend(localeData);dayjs.extend(advancedFormat);dayjs.extend(customParseFormat);dayjs.extend(weekOfYear);dayjs.extend(weekYear);dayjs.extend(dayOfYear);dayjs.extend(isSameOrAfter);dayjs.extend(isSameOrBefore);var DatePickerPanel=defineComponent({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:datePickerPanelProps,emits:[UPDATE_MODEL_EVENT,"calendar-change","panel-change","visible-change","clear"],setup(n,{slots:t,emit:r,attrs:i}){const g=useNamespace("picker-panel"),$=inject(PICKER_BASE_INJECTION_KEY,void 0);if(isUndefined$1($)){const le=reactive({...toRefs(n)});provide(PICKER_BASE_INJECTION_KEY,{props:le})}provide(ROOT_PICKER_INJECTION_KEY,{slots:t,pickerNs:g});const{parsedValue:V,onCalendarChange:re,onPanelChange:ie,onSetPickerOption:ae,onPick:oe}=inject(ROOT_COMMON_PICKER_INJECTION_KEY,()=>useCommonPicker(n,r),!0);return()=>{const le=getPanel(n.type);return createVNode$1(le,mergeProps(omit$1(i,"onPick"),n,{parsedValue:V.value,"onSet-picker-option":ae,"onCalendar-change":re,"onPanel-change":ie,onClear:()=>r("clear"),onPick:oe}),_isSlot$7(t)?t:{default:()=>[t]})}}});const ElDatePickerPanel=withInstall(DatePickerPanel),datePickerProps=buildProps({...timePickerDefaultProps,type:{type:definePropType(String),default:"date"}});function _isSlot$6(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}var DatePicker=defineComponent({name:"ElDatePicker",install:null,props:datePickerProps,emits:[UPDATE_MODEL_EVENT],setup(n,{expose:t,emit:r,slots:i}){const g=computed(()=>!n.format);provide(ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY,g),provide(PICKER_POPPER_OPTIONS_INJECTION_KEY,reactive(toRef$1(n,"popperOptions")));const $=ref();t({focus:()=>{var ie;(ie=$.value)==null||ie.focus()},blur:()=>{var ie;(ie=$.value)==null||ie.blur()},handleOpen:()=>{var ie;(ie=$.value)==null||ie.handleOpen()},handleClose:()=>{var ie;(ie=$.value)==null||ie.handleClose()}});const re=ie=>{r(UPDATE_MODEL_EVENT,ie)};return()=>{var ie;const ae=(ie=n.format)!=null?ie:DEFAULT_FORMATS_DATEPICKER[n.type]||DEFAULT_FORMATS_DATE;return createVNode$1(CommonPicker,mergeProps(n,{format:ae,type:n.type,ref:$,"onUpdate:modelValue":re}),{default:oe=>createVNode$1(ElDatePickerPanel,mergeProps({disabled:n.disabled,editable:n.editable,border:!1},oe),_isSlot$6(i)?i:{default:()=>[i]}),"range-separator":i["range-separator"]})}}});const ElDatePicker=withInstall(DatePicker),descriptionsKey=Symbol("elDescriptions");var ElDescriptionsCell=defineComponent({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:inject(descriptionsKey,{})}},render(){var n,t,r,i;const g=getNormalizedProps(this.cell),$=(((n=this.cell)==null?void 0:n.dirs)||[]).map(Ne=>{const{dir:Oe,arg:$e,modifiers:Ve,value:Ue}=Ne;return[Oe,Ue,$e,Ve]}),{border:V,direction:re}=this.descriptions,ie=re==="vertical",ae=()=>{var Ne,Oe,$e;return(($e=(Oe=(Ne=this.cell)==null?void 0:Ne.children)==null?void 0:Oe.label)==null?void 0:$e.call(Oe))||g.label},oe=()=>{var Ne,Oe,$e;return($e=(Oe=(Ne=this.cell)==null?void 0:Ne.children)==null?void 0:Oe.default)==null?void 0:$e.call(Oe)},le=g.span,ue=g.rowspan,de=g.align?`is-${g.align}`:"",he=g.labelAlign?`is-${g.labelAlign}`:de,pe=g.className,_e=g.labelClassName,Ce=this.type==="label"&&(r=(t=g.labelWidth)!=null?t:this.descriptions.labelWidth)!=null?r:g.width,xe={width:addUnit(Ce),minWidth:addUnit(g.minWidth)},Ie=useNamespace("descriptions");switch(this.type){case"label":return withDirectives(h$1(this.tag,{style:xe,class:[Ie.e("cell"),Ie.e("label"),Ie.is("bordered-label",V),Ie.is("vertical-label",ie),he,_e],colSpan:ie?le:1,rowspan:ie?1:ue},ae()),$);case"content":return withDirectives(h$1(this.tag,{style:xe,class:[Ie.e("cell"),Ie.e("content"),Ie.is("bordered-content",V),Ie.is("vertical-content",ie),de,pe],colSpan:ie?le:le*2-1,rowspan:ie?ue*2-1:ue},oe()),$);default:{const Ne=ae(),Oe={},$e=addUnit((i=g.labelWidth)!=null?i:this.descriptions.labelWidth);return $e&&(Oe.width=$e,Oe.display="inline-block"),withDirectives(h$1("td",{style:xe,class:[Ie.e("cell"),de],colSpan:le,rowspan:ue},[isNil(Ne)?void 0:h$1("span",{style:Oe,class:[Ie.e("label"),_e]},Ne),h$1("span",{class:[Ie.e("content"),pe]},oe())]),$)}}}});const descriptionsRowProps=buildProps({row:{type:definePropType(Array),default:()=>[]}}),_hoisted_1$15={key:1},_sfc_main$1S=defineComponent({name:"ElDescriptionsRow",__name:"descriptions-row",props:descriptionsRowProps,setup(n){const t=inject(descriptionsKey,{});return(r,i)=>unref(t).direction==="vertical"?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.row,(g,$)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr1-${$}`,cell:g,tag:"th",type:"label"},null,8,["cell"]))),128))]),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.row,(g,$)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr2-${$}`,cell:g,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(openBlock(),createElementBlock("tr",_hoisted_1$15,[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.row,(g,$)=>(openBlock(),createElementBlock(Fragment,{key:`tr3-${$}`},[unref(t).border?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode$1(unref(ElDescriptionsCell),{cell:g,tag:"td",type:"label"},null,8,["cell"]),createVNode$1(unref(ElDescriptionsCell),{cell:g,tag:"td",type:"content"},null,8,["cell"])],64)):(openBlock(),createBlock(unref(ElDescriptionsCell),{key:1,cell:g,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var ElDescriptionsRow=_export_sfc(_sfc_main$1S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const descriptionProps=buildProps({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:useSizeProp,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),COMPONENT_NAME$e="ElDescriptionsItem",_sfc_main$1R=defineComponent({name:"ElDescriptions",__name:"description",props:descriptionProps,setup(n){const t=n,r=useNamespace("descriptions"),i=useFormSize(),g=useSlots();provide(descriptionsKey,t);const $=computed(()=>[r.b(),r.m(i.value)]),V=(ie,ae,oe,le=!1)=>(ie.props||(ie.props={}),ae>oe&&(ie.props.span=oe),le&&(ie.props.span=ae),ie),re=()=>{if(!g.default)return[];const ie=flattedChildren(g.default()).filter(he=>{var pe;return((pe=he==null?void 0:he.type)==null?void 0:pe.name)===COMPONENT_NAME$e}),ae=[];let oe=[],le=t.column,ue=0;const de=[];return ie.forEach((he,pe)=>{var _e,Ce,xe;const Ie=((_e=he.props)==null?void 0:_e.span)||1,Ne=((Ce=he.props)==null?void 0:Ce.rowspan)||1,Oe=ae.length;if(de[Oe]||(de[Oe]=0),Ne>1)for(let $e=1;$e0&&(le-=de[Oe],de[Oe]=0),pele?le:Ie),pe===ie.length-1){const $e=t.column-ue%t.column;oe.push(V(he,$e,le,!0)),ae.push(oe);return}Ie(openBlock(),createElementBlock("div",{class:normalizeClass($.value)},[ie.title||ie.extra||ie.$slots.title||ie.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(r).e("title"))},[renderSlot(ie.$slots,"title",{},()=>[createTextVNode(toDisplayString(ie.title),1)])],2),createBaseVNode("div",{class:normalizeClass(unref(r).e("extra"))},[renderSlot(ie.$slots,"extra",{},()=>[createTextVNode(toDisplayString(ie.extra),1)])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(r).e("body"))},[createBaseVNode("table",{class:normalizeClass([unref(r).e("table"),unref(r).is("bordered",ie.border)])},[createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(re(),(oe,le)=>(openBlock(),createBlock(ElDescriptionsRow,{key:le,row:oe},null,8,["row"]))),128))])],2)],2)],2))}});var Descriptions=_export_sfc(_sfc_main$1R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]);const columnAlignment=["left","center","right"],descriptionItemProps=buildProps({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number]},align:{type:String,values:columnAlignment,default:"left"},labelAlign:{type:String,values:columnAlignment},className:{type:String,default:""},labelClassName:{type:String,default:""}}),DescriptionItem=defineComponent({name:COMPONENT_NAME$e,props:descriptionItemProps}),ElDescriptions=withInstall(Descriptions,{DescriptionsItem:DescriptionItem}),ElDescriptionsItem=withNoopInstall(DescriptionItem),useSameTarget=n=>{if(!n)return{onClick:NOOP,onMousedown:NOOP,onMouseup:NOOP};let t=!1,r=!1;return{onClick:V=>{t&&r&&n(V),t=r=!1},onMousedown:V=>{t=V.target===V.currentTarget},onMouseup:V=>{r=V.target===V.currentTarget}}},overlayProps=buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:definePropType([String,Array,Object])},zIndex:{type:definePropType([String,Number])}}),overlayEmits={click:n=>n instanceof MouseEvent},BLOCK="overlay";var Overlay$2=defineComponent({name:"ElOverlay",props:overlayProps,emits:overlayEmits,setup(n,{slots:t,emit:r}){const i=useNamespace(BLOCK),g=ie=>{r("click",ie)},{onClick:$,onMousedown:V,onMouseup:re}=useSameTarget(n.customMaskEvent?void 0:g);return()=>n.mask?createVNode$1("div",{class:[i.b(),n.overlayClass],style:{zIndex:n.zIndex},onClick:$,onMousedown:V,onMouseup:re},[renderSlot(t,"default")],PatchFlags.STYLE|PatchFlags.CLASS|PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):h$1("div",{class:n.overlayClass,style:{zIndex:n.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[renderSlot(t,"default")])}});const ElOverlay=Overlay$2,dialogInjectionKey=Symbol("dialogInjectionKey"),DEFAULT_DIALOG_TRANSITION="dialog-fade",dialogContentProps=buildProps({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:iconPropType},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),dialogContentEmits={close:()=>!0},useDraggable=(n,t,r,i)=>{const g={offsetX:0,offsetY:0},$=ref(!1),V=(ue,de)=>{if(n.value){const{offsetX:he,offsetY:pe}=g,_e=n.value.getBoundingClientRect(),Ce=_e.left,xe=_e.top,Ie=_e.width,Ne=_e.height,Oe=document.documentElement.clientWidth,$e=document.documentElement.clientHeight,Ve=-Ce+he,Ue=-xe+pe,Fe=Oe-Ce-Ie+he,ze=$e-xe-(Ne<$e?Ne:0)+pe;i!=null&&i.value||(ue=Math.min(Math.max(ue,Ve),Fe),de=Math.min(Math.max(de,Ue),ze)),g.offsetX=ue,g.offsetY=de,n.value.style.transform=`translate(${addUnit(ue)}, ${addUnit(de)})`}},re=ue=>{const de=ue.clientX,he=ue.clientY,{offsetX:pe,offsetY:_e}=g,Ce=Ie=>{$.value||($.value=!0);const Ne=pe+Ie.clientX-de,Oe=_e+Ie.clientY-he;V(Ne,Oe)},xe=()=>{$.value=!1,document.removeEventListener("mousemove",Ce),document.removeEventListener("mouseup",xe)};document.addEventListener("mousemove",Ce),document.addEventListener("mouseup",xe)},ie=()=>{t.value&&n.value&&(t.value.addEventListener("mousedown",re),window.addEventListener("resize",le))},ae=()=>{t.value&&n.value&&(t.value.removeEventListener("mousedown",re),window.removeEventListener("resize",le))},oe=()=>{g.offsetX=0,g.offsetY=0,n.value&&(n.value.style.transform="")},le=()=>{const{offsetX:ue,offsetY:de}=g;V(ue,de)};return onMounted(()=>{watchEffect(()=>{r.value?ie():ae()})}),onBeforeUnmount(()=>{ae()}),{isDragging:$,resetPosition:oe,updatePosition:le}},composeRefs=(...n)=>t=>{n.forEach(r=>{r.value=t})},_hoisted_1$14=["aria-level"],_hoisted_2$I=["aria-label"],_hoisted_3$i=["id"],_sfc_main$1Q=defineComponent({name:"ElDialogContent",__name:"dialog-content",props:dialogContentProps,emits:dialogContentEmits,setup(n,{expose:t}){const{t:r}=useLocale(),{Close:i}=CloseComponents,g=n,{dialogRef:$,headerRef:V,bodyId:re,ns:ie,style:ae}=inject(dialogInjectionKey),{focusTrapRef:oe}=inject(FOCUS_TRAP_INJECTION_KEY),le=composeRefs(oe,$),ue=computed(()=>!!g.draggable),de=computed(()=>!!g.overflow),{resetPosition:he,updatePosition:pe,isDragging:_e}=useDraggable($,V,ue,de),Ce=computed(()=>[ie.b(),ie.is("fullscreen",g.fullscreen),ie.is("draggable",ue.value),ie.is("dragging",_e.value),ie.is("align-center",!!g.alignCenter),{[ie.m("center")]:g.center}]);return t({resetPosition:he,updatePosition:pe}),(xe,Ie)=>(openBlock(),createElementBlock("div",{ref:unref(le),class:normalizeClass(Ce.value),style:normalizeStyle$1(unref(ae)),tabindex:"-1"},[createBaseVNode("header",{ref_key:"headerRef",ref:V,class:normalizeClass([unref(ie).e("header"),xe.headerClass,{"show-close":xe.showClose}])},[renderSlot(xe.$slots,"header",{},()=>[createBaseVNode("span",{role:"heading","aria-level":xe.ariaLevel,class:normalizeClass(unref(ie).e("title"))},toDisplayString(xe.title),11,_hoisted_1$14)]),xe.showClose?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref(r)("el.dialog.close"),class:normalizeClass(unref(ie).e("headerbtn")),type:"button",onClick:Ie[0]||(Ie[0]=Ne=>xe.$emit("close"))},[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(ie).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(xe.closeIcon||unref(i))))]),_:1},8,["class"])],10,_hoisted_2$I)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{id:unref(re),class:normalizeClass([unref(ie).e("body"),xe.bodyClass])},[renderSlot(xe.$slots,"default")],10,_hoisted_3$i),xe.$slots.footer?(openBlock(),createElementBlock("footer",{key:0,class:normalizeClass([unref(ie).e("footer"),xe.footerClass])},[renderSlot(xe.$slots,"footer")],2)):createCommentVNode("v-if",!0)],6))}});var ElDialogContent=_export_sfc(_sfc_main$1Q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const dialogProps=buildProps({...dialogContentProps,appendToBody:Boolean,appendTo:{type:teleportProps.to.type,default:"body"},beforeClose:{type:definePropType(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:definePropType([String,Object]),default:void 0}}),dialogEmits={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[UPDATE_MODEL_EVENT]:n=>isBoolean$1(n),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},useLockscreen=(n,t={})=>{isRef(n)||throwError$1("[useLockscreen]","You need to pass a ref param to this function");const r=t.ns||useNamespace("popup"),i=computed(()=>r.bm("parent","hidden"));let g=0,$=!1,V="0",re=!1;const ie=()=>{re||(re=!0,setTimeout(()=>{typeof document>"u"||$&&document&&(document.body.style.width=V,removeClass(document.body,i.value))},200))};watch(n,ae=>{if(!ae){ie();return}re=!1,$=!hasClass(document.body,i.value),$&&(V=document.body.style.width,addClass(document.body,i.value)),g=getScrollBarWidth(r.namespace.value);const oe=document.documentElement.clientHeight0&&(oe||le==="scroll")&&$&&(document.body.style.width=`calc(100% - ${g}px)`)}),onScopeDispose(()=>ie())},useDialog=(n,t)=>{var r;const g=getCurrentInstance().emit,{nextZIndex:$}=useZIndex();let V="";const re=useId(),ie=useId(),ae=ref(!1),oe=ref(!1),le=ref(!1),ue=ref((r=n.zIndex)!=null?r:$()),de=ref(!1);let he,pe;const _e=useGlobalConfig(),Ce=computed(()=>{var wn,bn;return(bn=(wn=_e.value)==null?void 0:wn.namespace)!=null?bn:defaultNamespace}),xe=computed(()=>{var wn;return(wn=_e.value)==null?void 0:wn.dialog}),Ie=computed(()=>{const wn={},bn=`--${Ce.value}-dialog`;if(!n.fullscreen){n.top&&(wn[`${bn}-margin-top`]=n.top);const Cn=addUnit(n.width);Cn&&(wn[`${bn}-width`]=Cn)}return wn}),Ne=computed(()=>{var wn,bn,Cn;return((Cn=(bn=n.draggable)!=null?bn:(wn=xe.value)==null?void 0:wn.draggable)!=null?Cn:!1)&&!n.fullscreen}),Oe=computed(()=>{var wn,bn,Cn;return(Cn=(bn=n.alignCenter)!=null?bn:(wn=xe.value)==null?void 0:wn.alignCenter)!=null?Cn:!1}),$e=computed(()=>{var wn,bn,Cn;return(Cn=(bn=n.overflow)!=null?bn:(wn=xe.value)==null?void 0:wn.overflow)!=null?Cn:!1}),Ve=computed(()=>Oe.value?{display:"flex"}:{}),Ue=computed(()=>{var wn,bn,Cn;const Sn=(Cn=(bn=n.transition)!=null?bn:(wn=xe.value)==null?void 0:wn.transition)!=null?Cn:DEFAULT_DIALOG_TRANSITION,Tn={name:Sn,onAfterEnter:Fe,onBeforeLeave:Pt,onAfterLeave:ze};if(isObject$6(Sn)){const En={...Sn},kn=($n,An)=>xn=>{isArray$5($n)?$n.forEach(Ln=>{isFunction$4(Ln)&&Ln(xn)}):isFunction$4($n)&&$n(xn),An()};return En.onAfterEnter=kn(En.onAfterEnter,Fe),En.onBeforeLeave=kn(En.onBeforeLeave,Pt),En.onAfterLeave=kn(En.onAfterLeave,ze),En.name||(En.name=DEFAULT_DIALOG_TRANSITION),En}return Tn});function Fe(){g("opened")}function ze(){g("closed"),g(UPDATE_MODEL_EVENT,!1),n.destroyOnClose&&(le.value=!1),de.value=!1}function Pt(){de.value=!0,g("close")}function qe(){pe==null||pe(),he==null||he(),n.openDelay&&n.openDelay>0?{stop:he}=useTimeoutFn(()=>Dt(),n.openDelay):Dt()}function Et(){he==null||he(),pe==null||pe(),n.closeDelay&&n.closeDelay>0?{stop:pe}=useTimeoutFn(()=>Lt(),n.closeDelay):Lt()}function kt(){function wn(bn){bn||(oe.value=!0,ae.value=!1)}n.beforeClose?n.beforeClose(wn):Et()}function At(){n.closeOnClickModal&&kt()}function Dt(){isClient&&(ae.value=!0)}function Lt(){ae.value=!1}function jt(){g("openAutoFocus")}function hn(){g("closeAutoFocus")}function vn(wn){var bn;((bn=wn.detail)==null?void 0:bn.focusReason)==="pointer"&&wn.preventDefault()}n.lockScroll&&useLockscreen(ae);function _n(){n.closeOnPressEscape&&kt()}return watch(()=>n.zIndex,()=>{var wn;ue.value=(wn=n.zIndex)!=null?wn:$()}),watch(()=>n.modelValue,wn=>{var bn;wn?(oe.value=!1,de.value=!1,qe(),le.value=!0,ue.value=(bn=n.zIndex)!=null?bn:$(),nextTick(()=>{g("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):ae.value&&Et()}),watch(()=>n.fullscreen,wn=>{t.value&&(wn?(V=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=V)}),onMounted(()=>{n.modelValue&&(ae.value=!0,le.value=!0,qe())}),{afterEnter:Fe,afterLeave:ze,beforeLeave:Pt,handleClose:kt,onModalClick:At,close:Et,doClose:Lt,onOpenAutoFocus:jt,onCloseAutoFocus:hn,onCloseRequested:_n,onFocusoutPrevented:vn,titleId:re,bodyId:ie,closed:oe,style:Ie,overlayDialogStyle:Ve,rendered:le,visible:ae,zIndex:ue,transitionConfig:Ue,_draggable:Ne,_alignCenter:Oe,_overflow:$e,closing:de}},_hoisted_1$13=["aria-label","aria-labelledby","aria-describedby"],_sfc_main$1P=defineComponent({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:dialogProps,emits:dialogEmits,setup(n,{expose:t}){const r=n,i=useSlots();useDeprecated({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},computed(()=>!!i.title));const g=useNamespace("dialog"),$=ref(),V=ref(),re=ref(),{visible:ie,titleId:ae,bodyId:oe,style:le,overlayDialogStyle:ue,rendered:de,transitionConfig:he,zIndex:pe,_draggable:_e,_alignCenter:Ce,_overflow:xe,handleClose:Ie,onModalClick:Ne,onOpenAutoFocus:Oe,onCloseAutoFocus:$e,onCloseRequested:Ve,onFocusoutPrevented:Ue,closing:Fe}=useDialog(r,$);provide(dialogInjectionKey,{dialogRef:$,headerRef:V,bodyId:oe,ns:g,rendered:de,style:le});const ze=useSameTarget(Ne),Pt=computed(()=>r.modalPenetrable&&!r.modal&&!r.fullscreen);return t({visible:ie,dialogContentRef:re,resetPosition:()=>{var Et;(Et=re.value)==null||Et.resetPosition()},handleClose:Ie}),(Et,kt)=>(openBlock(),createBlock(unref(ElTeleport),{to:Et.appendTo,disabled:Et.appendTo!=="body"?!1:!Et.appendToBody},{default:withCtx(()=>[createVNode$1(Transition,mergeProps(unref(he),{persisted:""}),{default:withCtx(()=>{var At;return[withDirectives(createVNode$1(unref(ElOverlay),{"custom-mask-event":"",mask:Et.modal,"overlay-class":[(At=Et.modalClass)!=null?At:"",`${unref(g).namespace.value}-modal-dialog`,unref(g).is("penetrable",Pt.value)],"z-index":unref(pe)},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-modal":"true","aria-label":Et.title||void 0,"aria-labelledby":Et.title?void 0:unref(ae),"aria-describedby":unref(oe),class:normalizeClass([`${unref(g).namespace.value}-overlay-dialog`,unref(g).is("closing",unref(Fe))]),style:normalizeStyle$1(unref(ue)),onClick:kt[0]||(kt[0]=(...Dt)=>unref(ze).onClick&&unref(ze).onClick(...Dt)),onMousedown:kt[1]||(kt[1]=(...Dt)=>unref(ze).onMousedown&&unref(ze).onMousedown(...Dt)),onMouseup:kt[2]||(kt[2]=(...Dt)=>unref(ze).onMouseup&&unref(ze).onMouseup(...Dt))},[createVNode$1(unref(ElFocusTrap),{loop:"",trapped:unref(ie),"focus-start-el":"container",onFocusAfterTrapped:unref(Oe),onFocusAfterReleased:unref($e),onFocusoutPrevented:unref(Ue),onReleaseRequested:unref(Ve)},{default:withCtx(()=>[unref(de)?(openBlock(),createBlock(ElDialogContent,mergeProps({key:0,ref_key:"dialogContentRef",ref:re},Et.$attrs,{center:Et.center,"align-center":unref(Ce),"close-icon":Et.closeIcon,draggable:unref(_e),overflow:unref(xe),fullscreen:Et.fullscreen,"header-class":Et.headerClass,"body-class":Et.bodyClass,"footer-class":Et.footerClass,"show-close":Et.showClose,title:Et.title,"aria-level":Et.headerAriaLevel,onClose:unref(Ie)}),createSlots({header:withCtx(()=>[Et.$slots.title?renderSlot(Et.$slots,"title",{key:1}):renderSlot(Et.$slots,"header",{key:0,close:unref(Ie),titleId:unref(ae),titleClass:unref(g).e("title")})]),default:withCtx(()=>[renderSlot(Et.$slots,"default")]),_:2},[Et.$slots.footer?{name:"footer",fn:withCtx(()=>[renderSlot(Et.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,_hoisted_1$13)]),_:3},8,["mask","overlay-class","z-index"]),[[vShow,unref(ie)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}});var Dialog=_export_sfc(_sfc_main$1P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const ElDialog=withInstall(Dialog),dividerProps=buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:definePropType(String),default:"solid"}}),_sfc_main$1O=defineComponent({name:"ElDivider",__name:"divider",props:dividerProps,setup(n){const t=n,r=useNamespace("divider"),i=computed(()=>r.cssVar({"border-style":t.borderStyle}));return(g,$)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).b(),unref(r).m(g.direction)]),style:normalizeStyle$1(i.value),role:"separator"},[g.$slots.default&&g.direction!=="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(r).e("text"),unref(r).is(g.contentPosition)])},[renderSlot(g.$slots,"default")],2)):createCommentVNode("v-if",!0)],6))}});var Divider=_export_sfc(_sfc_main$1O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const ElDivider=withInstall(Divider),drawerProps=buildProps({...dialogProps,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),drawerEmits={...dialogEmits,"resize-start":(n,t)=>n instanceof MouseEvent&&typeof t=="number",resize:(n,t)=>n instanceof MouseEvent&&typeof t=="number","resize-end":(n,t)=>n instanceof MouseEvent&&typeof t=="number"};function useResizable(n,t,r){const{width:i,height:g}=useWindowSize(),$=computed(()=>["ltr","rtl"].includes(n.direction)),V=computed(()=>["ltr","ttb"].includes(n.direction)?1:-1),re=computed(()=>$.value?i.value:g.value),ie=computed(()=>clamp$4(ae.value+V.value*oe.value,4,re.value)),ae=ref(0),oe=ref(0),le=ref(!1),ue=ref(!1);let de=[],he=[];const pe=()=>{var Ne;const Oe=(Ne=t.value)==null?void 0:Ne.closest('[aria-modal="true"]');return Oe?$.value?Oe.offsetWidth:Oe.offsetHeight:100};watch(()=>[n.size,n.resizable],()=>{ue.value=!1,ae.value=0,oe.value=0,xe()});const _e=Ne=>{n.resizable&&(ue.value||(ae.value=pe(),ue.value=!0),de=[Ne.pageX,Ne.pageY],le.value=!0,r("resize-start",Ne,ae.value),he.push(useEventListener(window,"mouseup",xe),useEventListener(window,"mousemove",Ce)))},Ce=Ne=>{const{pageX:Oe,pageY:$e}=Ne,Ve=Oe-de[0],Ue=$e-de[1];oe.value=$.value?Ve:Ue,r("resize",Ne,ie.value)},xe=Ne=>{le.value&&(de=[],ae.value=ie.value,oe.value=0,le.value=!1,he.forEach(Oe=>Oe==null?void 0:Oe()),he=[],Ne&&r("resize-end",Ne,ae.value))},Ie=useEventListener(t,"mousedown",_e);return onBeforeUnmount(()=>{Ie(),xe()}),{size:computed(()=>ue.value?`${ie.value}px`:addUnit(n.size)),isResizing:le,isHorizontal:$}}const _hoisted_1$12=["aria-label","aria-labelledby","aria-describedby"],_hoisted_2$H=["id","aria-level"],_hoisted_3$h=["aria-label"],_hoisted_4$d=["id"],_sfc_main$1N=defineComponent({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:drawerProps,emits:drawerEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useSlots();useDeprecated({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},computed(()=>!!$.title));const V=ref(),re=ref(),ie=ref(),ae=useNamespace("drawer"),{t:oe}=useLocale(),{afterEnter:le,afterLeave:ue,beforeLeave:de,visible:he,rendered:pe,titleId:_e,bodyId:Ce,zIndex:xe,onModalClick:Ie,onOpenAutoFocus:Ne,onCloseAutoFocus:Oe,onFocusoutPrevented:$e,onCloseRequested:Ve,handleClose:Ue}=useDialog(i,V),{isHorizontal:Fe,size:ze,isResizing:Pt}=useResizable(i,ie,g),qe=computed(()=>i.modalPenetrable&&!i.modal);return t({handleClose:Ue,afterEnter:le,afterLeave:ue}),(Et,kt)=>(openBlock(),createBlock(unref(ElTeleport),{to:Et.appendTo,disabled:Et.appendTo!=="body"?!1:!Et.appendToBody},{default:withCtx(()=>[createVNode$1(Transition,{name:unref(ae).b("fade"),onAfterEnter:unref(le),onAfterLeave:unref(ue),onBeforeLeave:unref(de),persisted:""},{default:withCtx(()=>{var At;return[withDirectives(createVNode$1(unref(ElOverlay),{mask:Et.modal,"overlay-class":[unref(ae).is("drawer"),(At=Et.modalClass)!=null?At:"",`${unref(ae).namespace.value}-modal-drawer`,unref(ae).is("penetrable",qe.value)],"z-index":unref(xe),onClick:unref(Ie)},{default:withCtx(()=>[createVNode$1(unref(ElFocusTrap),{loop:"",trapped:unref(he),"focus-trap-el":V.value,"focus-start-el":re.value,onFocusAfterTrapped:unref(Ne),onFocusAfterReleased:unref(Oe),onFocusoutPrevented:unref($e),onReleaseRequested:unref(Ve)},{default:withCtx(()=>[createBaseVNode("div",mergeProps({ref_key:"drawerRef",ref:V,"aria-modal":"true","aria-label":Et.title||void 0,"aria-labelledby":Et.title?void 0:unref(_e),"aria-describedby":unref(Ce)},Et.$attrs,{class:[unref(ae).b(),Et.direction,unref(he)&&"open",unref(ae).is("dragging",unref(Pt))],style:{[unref(Fe)?"width":"height"]:unref(ze)},role:"dialog",onClick:kt[1]||(kt[1]=withModifiers(()=>{},["stop"]))}),[createBaseVNode("span",{ref_key:"focusStartRef",ref:re,class:normalizeClass(unref(ae).e("sr-focus")),tabindex:"-1"},null,2),Et.withHeader?(openBlock(),createElementBlock("header",{key:0,class:normalizeClass([unref(ae).e("header"),Et.headerClass])},[Et.$slots.title?renderSlot(Et.$slots,"title",{key:1},()=>[createCommentVNode(" DEPRECATED SLOT ")]):renderSlot(Et.$slots,"header",{key:0,close:unref(Ue),titleId:unref(_e),titleClass:unref(ae).e("title")},()=>[createBaseVNode("span",{id:unref(_e),role:"heading","aria-level":Et.headerAriaLevel,class:normalizeClass(unref(ae).e("title"))},toDisplayString(Et.title),11,_hoisted_2$H)]),Et.showClose?(openBlock(),createElementBlock("button",{key:2,"aria-label":unref(oe)("el.drawer.close"),class:normalizeClass(unref(ae).e("close-btn")),type:"button",onClick:kt[0]||(kt[0]=(...Dt)=>unref(Ue)&&unref(Ue)(...Dt))},[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(ae).e("close"))},{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1},8,["class"])],10,_hoisted_3$h)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),unref(pe)?(openBlock(),createElementBlock("div",{key:1,id:unref(Ce),class:normalizeClass([unref(ae).e("body"),Et.bodyClass])},[renderSlot(Et.$slots,"default")],10,_hoisted_4$d)):createCommentVNode("v-if",!0),Et.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass([unref(ae).e("footer"),Et.footerClass])},[renderSlot(Et.$slots,"footer")],2)):createCommentVNode("v-if",!0),Et.resizable?(openBlock(),createElementBlock("div",{key:3,ref_key:"draggerRef",ref:ie,style:normalizeStyle$1({zIndex:unref(xe)}),class:normalizeClass(unref(ae).e("dragger"))},null,6)):createCommentVNode("v-if",!0)],16,_hoisted_1$12)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[vShow,unref(he)]])]}),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var Drawer=_export_sfc(_sfc_main$1N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const ElDrawer=withInstall(Drawer),_sfc_main$1M=defineComponent({inheritAttrs:!1});function _sfc_render$g(n,t,r,i,g,$){return renderSlot(n.$slots,"default")}var Collection=_export_sfc(_sfc_main$1M,[["render",_sfc_render$g],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const _sfc_main$1L=defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function _sfc_render$f(n,t,r,i,g,$){return renderSlot(n.$slots,"default")}var CollectionItem=_export_sfc(_sfc_main$1L,[["render",_sfc_render$f],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const COLLECTION_ITEM_SIGN="data-el-collection-item",createCollectionWithScope=n=>{const t=`El${n}Collection`,r=`${t}Item`,i=Symbol(t),g=Symbol(r),$=Object.assign({},Collection,{name:t,setup(){const re=ref(),ie=new Map;provide(i,{itemMap:ie,getItems:()=>{const oe=unref(re);if(!oe)return[];const le=Array.from(oe.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));return[...ie.values()].sort((de,he)=>le.indexOf(de.ref)-le.indexOf(he.ref))},collectionRef:re})}}),V=Object.assign({},CollectionItem,{name:r,setup(re,{attrs:ie}){const ae=ref(),oe=inject(i,void 0);provide(g,{collectionItemRef:ae}),onMounted(()=>{const le=unref(ae);le&&oe.itemMap.set(le,{ref:le,...ie})}),onBeforeUnmount(()=>{const le=unref(ae);oe.itemMap.delete(le)})}});return{COLLECTION_INJECTION_KEY:i,COLLECTION_ITEM_INJECTION_KEY:g,ElCollection:$,ElCollectionItem:V}},rovingFocusGroupProps=buildProps({style:{type:definePropType([String,Array,Object])},currentTabId:{type:definePropType(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:definePropType(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection,ElCollectionItem,COLLECTION_INJECTION_KEY,COLLECTION_ITEM_INJECTION_KEY}=createCollectionWithScope("RovingFocusGroup"),ROVING_FOCUS_GROUP_INJECTION_KEY=Symbol("elRovingFocusGroup"),ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY=Symbol("elRovingFocusGroupItem"),MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},getDirectionAwareKey=(n,t)=>{if(t!=="rtl")return n;switch(n){case EVENT_CODE.right:return EVENT_CODE.left;case EVENT_CODE.left:return EVENT_CODE.right;default:return n}},getFocusIntent=(n,t,r)=>{const i=getEventCode(n),g=getDirectionAwareKey(i,r);if(!(t==="vertical"&&[EVENT_CODE.left,EVENT_CODE.right].includes(g))&&!(t==="horizontal"&&[EVENT_CODE.up,EVENT_CODE.down].includes(g)))return MAP_KEY_TO_FOCUS_INTENT[g]},reorderArray=(n,t)=>n.map((r,i)=>n[(i+t)%n.length]),focusFirst=n=>{const{activeElement:t}=document;for(const r of n)if(r===t||(r.focus(),t!==document.activeElement))return},CURRENT_TAB_ID_CHANGE_EVT="currentTabIdChange",ENTRY_FOCUS_EVT="rovingFocusGroup.entryFocus",EVT_OPTS={bubbles:!1,cancelable:!0},_sfc_main$1K=defineComponent({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:rovingFocusGroupProps,emits:[CURRENT_TAB_ID_CHANGE_EVT,"entryFocus"],setup(n,{emit:t}){var r;const i=ref((r=n.currentTabId||n.defaultCurrentTabId)!=null?r:null),g=ref(!1),$=ref(!1),V=ref(),{getItems:re}=inject(COLLECTION_INJECTION_KEY,void 0),ie=computed(()=>[{outline:"none"},n.style]),ae=_e=>{t(CURRENT_TAB_ID_CHANGE_EVT,_e)},oe=()=>{g.value=!0},le=composeEventHandlers(_e=>{var Ce;(Ce=n.onMousedown)==null||Ce.call(n,_e)},()=>{$.value=!0}),ue=composeEventHandlers(_e=>{var Ce;(Ce=n.onFocus)==null||Ce.call(n,_e)},_e=>{const Ce=!unref($),{target:xe,currentTarget:Ie}=_e;if(xe===Ie&&Ce&&!unref(g)){const Ne=new Event(ENTRY_FOCUS_EVT,EVT_OPTS);if(Ie==null||Ie.dispatchEvent(Ne),!Ne.defaultPrevented){const Oe=re().filter(ze=>ze.focusable),$e=Oe.find(ze=>ze.active),Ve=Oe.find(ze=>ze.id===unref(i)),Fe=[$e,Ve,...Oe].filter(Boolean).map(ze=>ze.ref);focusFirst(Fe)}}$.value=!1}),de=composeEventHandlers(_e=>{var Ce;(Ce=n.onBlur)==null||Ce.call(n,_e)},()=>{g.value=!1}),he=(..._e)=>{t("entryFocus",..._e)},pe=_e=>{const Ce=getFocusIntent(_e);if(Ce){_e.preventDefault();let Ie=re().filter(Ne=>Ne.focusable).map(Ne=>Ne.ref);switch(Ce){case"last":{Ie.reverse();break}case"prev":case"next":{Ce==="prev"&&Ie.reverse();const Ne=Ie.indexOf(_e.currentTarget);Ie=n.loop?reorderArray(Ie,Ne+1):Ie.slice(Ne+1);break}}nextTick(()=>{focusFirst(Ie)})}};provide(ROVING_FOCUS_GROUP_INJECTION_KEY,{currentTabbedId:readonly(i),loop:toRef$1(n,"loop"),tabIndex:computed(()=>unref(g)?-1:0),rovingFocusGroupRef:V,rovingFocusGroupRootStyle:ie,orientation:toRef$1(n,"orientation"),dir:toRef$1(n,"dir"),onItemFocus:ae,onItemShiftTab:oe,onBlur:de,onFocus:ue,onMousedown:le,onKeydown:pe}),watch(()=>n.currentTabId,_e=>{i.value=_e??null}),useEventListener(V,ENTRY_FOCUS_EVT,he)}});function _sfc_render$e(n,t,r,i,g,$){return renderSlot(n.$slots,"default")}var ElRovingFocusGroupImpl=_export_sfc(_sfc_main$1K,[["render",_sfc_render$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const _sfc_main$1J=defineComponent({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ElCollection,ElRovingFocusGroupImpl}});function _sfc_render$d(n,t,r,i,g,$){const V=resolveComponent("el-roving-focus-group-impl"),re=resolveComponent("el-focus-group-collection");return openBlock(),createBlock(re,null,{default:withCtx(()=>[createVNode$1(V,normalizeProps(guardReactiveProps(n.$attrs)),{default:withCtx(()=>[renderSlot(n.$slots,"default")]),_:3},16)]),_:3})}var ElRovingFocusGroup=_export_sfc(_sfc_main$1J,[["render",_sfc_render$d],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const dropdownProps=buildProps({trigger:{...useTooltipTriggerProps.trigger,type:definePropType([String,Array])},triggerKeys:{type:definePropType(Array),default:()=>[EVENT_CODE.enter,EVENT_CODE.numpadEnter,EVENT_CODE.space,EVENT_CODE.down]},virtualTriggering:useTooltipTriggerProps.virtualTriggering,virtualRef:useTooltipTriggerProps.virtualRef,effect:{...useTooltipContentProps.effect,default:"light"},type:{type:definePropType(String)},placement:{type:definePropType(String),default:"bottom"},popperOptions:{type:definePropType(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:definePropType([Number,String]),default:0},maxHeight:{type:definePropType([Number,String]),default:""},popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,disabled:Boolean,role:{type:String,values:roleTypes,default:"menu"},buttonProps:{type:definePropType(Object)},teleported:useTooltipContentProps.teleported,appendTo:useTooltipContentProps.appendTo,persistent:{type:Boolean,default:!0}}),dropdownItemProps=buildProps({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:iconPropType}}),dropdownMenuProps=buildProps({onKeydown:{type:definePropType(Function)}}),DROPDOWN_INJECTION_KEY=Symbol("elDropdown"),DROPDOWN_INSTANCE_INJECTION_KEY="elDropdown",{ButtonGroup:ElButtonGroup}=ElButton,_sfc_main$1I=defineComponent({name:"ElDropdown",components:{ElButton,ElButtonGroup,ElScrollbar,ElTooltip,ElRovingFocusGroup,ElOnlyChild:OnlyChild,ElIcon,ArrowDown:arrow_down_default},props:dropdownProps,emits:["visible-change","click","command"],setup(n,{emit:t}){const r=getCurrentInstance(),i=useNamespace("dropdown"),{t:g}=useLocale(),$=ref(),V=ref(),re=ref(),ie=ref(),ae=ref(null),oe=ref(null),le=ref(!1),ue=computed(()=>({maxHeight:addUnit(n.maxHeight)})),de=computed(()=>[i.m(Ne.value)]),he=computed(()=>castArray$1(n.trigger)),pe=useId().value,_e=computed(()=>n.id||pe);function Ce(){var Et;(Et=re.value)==null||Et.onClose(void 0,0)}function xe(){var Et;(Et=re.value)==null||Et.onClose()}function Ie(){var Et;(Et=re.value)==null||Et.onOpen()}const Ne=useFormSize();function Oe(...Et){t("command",...Et)}function $e(){}function Ve(){const Et=unref(ie);he.value.includes("hover")&&(Et==null||Et.focus({preventScroll:!0})),oe.value=null}function Ue(Et){oe.value=Et}function Fe(){t("visible-change",!0)}function ze(Et){var kt;le.value=(Et==null?void 0:Et.type)==="keydown",(kt=ie.value)==null||kt.focus()}function Pt(){t("visible-change",!1)}return provide(DROPDOWN_INJECTION_KEY,{contentRef:ie,role:computed(()=>n.role),triggerId:_e,isUsingKeyboard:le,onItemEnter:$e,onItemLeave:Ve,handleClose:xe}),provide(DROPDOWN_INSTANCE_INJECTION_KEY,{instance:r,dropdownSize:Ne,handleClick:Ce,commandHandler:Oe,trigger:toRef$1(n,"trigger"),hideOnClick:toRef$1(n,"hideOnClick")}),{t:g,ns:i,scrollbar:ae,wrapStyle:ue,dropdownTriggerKls:de,dropdownSize:Ne,triggerId:_e,currentTabId:oe,handleCurrentTabIdChange:Ue,handlerMainButtonClick:Et=>{t("click",Et)},handleClose:xe,handleOpen:Ie,handleBeforeShowTooltip:Fe,handleShowTooltip:ze,handleBeforeHideTooltip:Pt,popperRef:re,contentRef:ie,triggeringElementRef:$,referenceElementRef:V}}});function _sfc_render$c(n,t,r,i,g,$){var V;const re=resolveComponent("el-roving-focus-group"),ie=resolveComponent("el-scrollbar"),ae=resolveComponent("el-only-child"),oe=resolveComponent("el-tooltip"),le=resolveComponent("el-button"),ue=resolveComponent("arrow-down"),de=resolveComponent("el-icon"),he=resolveComponent("el-button-group");return openBlock(),createElementBlock("div",{class:normalizeClass([n.ns.b(),n.ns.is("disabled",n.disabled)])},[createVNode$1(oe,{ref:"popperRef",role:n.role,effect:n.effect,"fallback-placements":["bottom","top"],"popper-options":n.popperOptions,"gpu-acceleration":!1,placement:n.placement,"popper-class":[n.ns.e("popper"),n.popperClass],"popper-style":n.popperStyle,trigger:n.trigger,"trigger-keys":n.triggerKeys,"trigger-target-el":n.contentRef,"show-arrow":n.showArrow,"show-after":n.trigger==="hover"?n.showTimeout:0,"hide-after":n.trigger==="hover"?n.hideTimeout:0,"virtual-ref":(V=n.virtualRef)!=null?V:n.triggeringElementRef,"virtual-triggering":n.virtualTriggering||n.splitButton,disabled:n.disabled,transition:`${n.ns.namespace.value}-zoom-in-top`,teleported:n.teleported,"append-to":n.appendTo,pure:"","focus-on-target":"",persistent:n.persistent,onBeforeShow:n.handleBeforeShowTooltip,onShow:n.handleShowTooltip,onBeforeHide:n.handleBeforeHideTooltip},createSlots({content:withCtx(()=>[createVNode$1(ie,{ref:"scrollbar","wrap-style":n.wrapStyle,tag:"div","view-class":n.ns.e("list")},{default:withCtx(()=>[createVNode$1(re,{loop:n.loop,"current-tab-id":n.currentTabId,orientation:"horizontal",onCurrentTabIdChange:n.handleCurrentTabIdChange},{default:withCtx(()=>[renderSlot(n.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[n.splitButton?void 0:{name:"default",fn:withCtx(()=>[createVNode$1(ae,{id:n.triggerId,ref:"triggeringElementRef",role:"button",tabindex:n.tabindex},{default:withCtx(()=>[renderSlot(n.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),n.splitButton?(openBlock(),createBlock(he,{key:0},{default:withCtx(()=>[createVNode$1(le,mergeProps({ref:"referenceElementRef"},n.buttonProps,{size:n.dropdownSize,type:n.type,disabled:n.disabled,tabindex:n.tabindex,onClick:n.handlerMainButtonClick}),{default:withCtx(()=>[renderSlot(n.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),createVNode$1(le,mergeProps({id:n.triggerId,ref:"triggeringElementRef"},n.buttonProps,{role:"button",size:n.dropdownSize,type:n.type,class:n.ns.e("caret-button"),disabled:n.disabled,tabindex:n.tabindex,"aria-label":n.t("el.dropdown.toggleDropdown")}),{default:withCtx(()=>[createVNode$1(de,{class:normalizeClass(n.ns.e("icon"))},{default:withCtx(()=>[createVNode$1(ue)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):createCommentVNode("v-if",!0)],2)}var Dropdown=_export_sfc(_sfc_main$1I,[["render",_sfc_render$c],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const _sfc_main$1H=defineComponent({components:{ElRovingFocusCollectionItem:ElCollectionItem},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(n,{emit:t}){const{currentTabbedId:r,onItemFocus:i,onItemShiftTab:g,onKeydown:$}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),V=useId(),re=ref(),ie=composeEventHandlers(ue=>{t("mousedown",ue)},ue=>{n.focusable?i(unref(V)):ue.preventDefault()}),ae=composeEventHandlers(ue=>{t("focus",ue)},()=>{i(unref(V))}),oe=composeEventHandlers(ue=>{t("keydown",ue)},ue=>{const{shiftKey:de,target:he,currentTarget:pe}=ue;if(getEventCode(ue)===EVENT_CODE.tab&&de){g();return}he===pe&&$(ue)}),le=computed(()=>r.value===unref(V));return provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:re,tabIndex:computed(()=>unref(le)?0:-1),handleMousedown:ie,handleFocus:ae,handleKeydown:oe}),{id:V,handleKeydown:oe,handleFocus:ae,handleMousedown:ie}}});function _sfc_render$b(n,t,r,i,g,$){const V=resolveComponent("el-roving-focus-collection-item");return openBlock(),createBlock(V,{id:n.id,focusable:n.focusable,active:n.active},{default:withCtx(()=>[renderSlot(n.$slots,"default")]),_:3},8,["id","focusable","active"])}var ElRovingFocusItem=_export_sfc(_sfc_main$1H,[["render",_sfc_render$b],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const _sfc_main$1G=defineComponent({name:"DropdownItemImpl",components:{ElIcon},props:dropdownItemProps,emits:["pointermove","pointerleave","click","clickimpl"],setup(n,{emit:t}){const r=useNamespace("dropdown"),{role:i}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionItemRef:g}=inject(COLLECTION_ITEM_INJECTION_KEY,void 0),{rovingFocusGroupItemRef:$,tabIndex:V,handleFocus:re,handleKeydown:ie,handleMousedown:ae}=inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,void 0),oe=composeRefs(g,$),le=computed(()=>i.value==="menu"?"menuitem":i.value==="navigation"?"link":"button"),ue=composeEventHandlers(de=>{const he=getEventCode(de);if([EVENT_CODE.enter,EVENT_CODE.numpadEnter,EVENT_CODE.space].includes(he))return de.preventDefault(),de.stopImmediatePropagation(),t("clickimpl",de),!0},ie);return{ns:r,itemRef:oe,dataset:{[COLLECTION_ITEM_SIGN]:""},role:le,tabIndex:V,handleFocus:re,handleKeydown:ue,handleMousedown:ae}}}),_hoisted_1$11=["aria-disabled","tabindex","role"];function _sfc_render$a(n,t,r,i,g,$){const V=resolveComponent("el-icon");return openBlock(),createElementBlock(Fragment,null,[n.divided?(openBlock(),createElementBlock("li",{key:0,role:"separator",class:normalizeClass(n.ns.bem("menu","item","divided"))},null,2)):createCommentVNode("v-if",!0),createBaseVNode("li",mergeProps({ref:n.itemRef},{...n.dataset,...n.$attrs},{"aria-disabled":n.disabled,class:[n.ns.be("menu","item"),n.ns.is("disabled",n.disabled)],tabindex:n.tabIndex,role:n.role,onClick:t[0]||(t[0]=re=>n.$emit("clickimpl",re)),onFocus:t[1]||(t[1]=(...re)=>n.handleFocus&&n.handleFocus(...re)),onKeydown:t[2]||(t[2]=withModifiers((...re)=>n.handleKeydown&&n.handleKeydown(...re),["self"])),onMousedown:t[3]||(t[3]=(...re)=>n.handleMousedown&&n.handleMousedown(...re)),onPointermove:t[4]||(t[4]=re=>n.$emit("pointermove",re)),onPointerleave:t[5]||(t[5]=re=>n.$emit("pointerleave",re))}),[n.icon||n.$slots.icon?(openBlock(),createBlock(V,{key:0},{default:withCtx(()=>[renderSlot(n.$slots,"icon",{},()=>[(openBlock(),createBlock(resolveDynamicComponent(n.icon)))])]),_:3})):createCommentVNode("v-if",!0),renderSlot(n.$slots,"default")],16,_hoisted_1$11)],64)}var ElDropdownItemImpl=_export_sfc(_sfc_main$1G,[["render",_sfc_render$a],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const useDropdown=()=>{const n=inject(DROPDOWN_INSTANCE_INJECTION_KEY,{}),t=computed(()=>n==null?void 0:n.dropdownSize);return{elDropdown:n,_elDropdownSize:t}},_sfc_main$1F=defineComponent({name:"ElDropdownItem",components:{ElRovingFocusItem,ElDropdownItemImpl},inheritAttrs:!1,props:dropdownItemProps,emits:["pointermove","pointerleave","click"],setup(n,{emit:t,attrs:r}){const{elDropdown:i}=useDropdown(),g=getCurrentInstance(),{onItemEnter:$,onItemLeave:V}=inject(DROPDOWN_INJECTION_KEY,void 0),re=composeEventHandlers(le=>(t("pointermove",le),le.defaultPrevented),whenMouse(le=>{if(n.disabled){V(le);return}const ue=le.currentTarget;ue===document.activeElement||ue.contains(document.activeElement)||($(le),le.defaultPrevented||ue==null||ue.focus({preventScroll:!0}))})),ie=composeEventHandlers(le=>(t("pointerleave",le),le.defaultPrevented),whenMouse(V)),ae=composeEventHandlers(le=>{if(!n.disabled)return t("click",le),le.type!=="keydown"&&le.defaultPrevented},le=>{var ue,de,he;if(n.disabled){le.stopImmediatePropagation();return}(ue=i==null?void 0:i.hideOnClick)!=null&&ue.value&&((de=i.handleClick)==null||de.call(i)),(he=i.commandHandler)==null||he.call(i,n.command,g,le)}),oe=computed(()=>({...n,...r}));return{handleClick:ae,handlePointerMove:re,handlePointerLeave:ie,propsAndAttrs:oe}}});function _sfc_render$9(n,t,r,i,g,$){const V=resolveComponent("el-dropdown-item-impl"),re=resolveComponent("el-roving-focus-item");return openBlock(),createBlock(re,{focusable:!n.disabled},{default:withCtx(()=>[createVNode$1(V,mergeProps(n.propsAndAttrs,{onPointerleave:n.handlePointerLeave,onPointermove:n.handlePointerMove,onClickimpl:n.handleClick}),createSlots({default:withCtx(()=>[renderSlot(n.$slots,"default")]),_:2},[n.$slots.icon?{name:"icon",fn:withCtx(()=>[renderSlot(n.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var DropdownItem=_export_sfc(_sfc_main$1F,[["render",_sfc_render$9],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const _sfc_main$1E=defineComponent({name:"ElDropdownMenu",props:dropdownMenuProps,setup(n){const t=useNamespace("dropdown"),{_elDropdownSize:r}=useDropdown(),i=r.value,{contentRef:g,role:$,triggerId:V,isUsingKeyboard:re,handleClose:ie}=inject(DROPDOWN_INJECTION_KEY,void 0),{rovingFocusGroupRef:ae,rovingFocusGroupRootStyle:oe,onBlur:le,onFocus:ue,onKeydown:de,onMousedown:he}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{collectionRef:pe}=inject(COLLECTION_INJECTION_KEY,void 0),_e=computed(()=>[t.b("menu"),t.bm("menu",i==null?void 0:i.value)]),Ce=composeRefs(g,ae,pe),xe=composeEventHandlers(Ne=>{var Oe;(Oe=n.onKeydown)==null||Oe.call(n,Ne)},Ne=>{const{currentTarget:Oe,target:$e}=Ne,Ve=getEventCode(Ne);if(Oe.contains($e),EVENT_CODE.tab===Ve)return ie();de(Ne)});function Ie(Ne){re.value&&ue(Ne)}return{size:i,rovingFocusGroupRootStyle:oe,dropdownKls:_e,role:$,triggerId:V,dropdownListWrapperRef:Ce,handleKeydown:xe,onBlur:le,handleFocus:Ie,onMousedown:he}}}),_hoisted_1$10=["role","aria-labelledby"];function _sfc_render$8(n,t,r,i,g,$){return openBlock(),createElementBlock("ul",{ref:n.dropdownListWrapperRef,class:normalizeClass(n.dropdownKls),style:normalizeStyle$1(n.rovingFocusGroupRootStyle),tabindex:-1,role:n.role,"aria-labelledby":n.triggerId,onFocusin:t[0]||(t[0]=(...V)=>n.handleFocus&&n.handleFocus(...V)),onFocusout:t[1]||(t[1]=(...V)=>n.onBlur&&n.onBlur(...V)),onKeydown:t[2]||(t[2]=withModifiers((...V)=>n.handleKeydown&&n.handleKeydown(...V),["self"])),onMousedown:t[3]||(t[3]=withModifiers((...V)=>n.onMousedown&&n.onMousedown(...V),["self"]))},[renderSlot(n.$slots,"default")],46,_hoisted_1$10)}var DropdownMenu=_export_sfc(_sfc_main$1E,[["render",_sfc_render$8],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const ElDropdown=withInstall(Dropdown,{DropdownItem,DropdownMenu}),ElDropdownItem=withNoopInstall(DropdownItem),ElDropdownMenu=withNoopInstall(DropdownMenu),_hoisted_1$$={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},_hoisted_2$G=["id"],_hoisted_3$g=["stop-color"],_hoisted_4$c=["stop-color"],_hoisted_5$5=["id"],_hoisted_6$1=["stop-color"],_hoisted_7=["stop-color"],_hoisted_8=["id"],_hoisted_9={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_hoisted_10={transform:"translate(-1268.000000, -535.000000)"},_hoisted_11={transform:"translate(1268.000000, 535.000000)"},_hoisted_12=["fill"],_hoisted_13=["fill"],_hoisted_14={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},_hoisted_15=["fill"],_hoisted_16=["fill"],_hoisted_17=["fill"],_hoisted_18=["fill"],_hoisted_19=["fill"],_hoisted_20={transform:"translate(53.000000, 45.000000)"},_hoisted_21=["fill","xlink:href"],_hoisted_22=["fill","mask"],_hoisted_23=["fill"],_sfc_main$1D=defineComponent({name:"ImgEmpty",__name:"img-empty",setup(n){const t=useNamespace("empty"),r=useId();return(i,g)=>(openBlock(),createElementBlock("svg",_hoisted_1$$,[createBaseVNode("defs",null,[createBaseVNode("linearGradient",{id:`linearGradient-1-${unref(r)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[createBaseVNode("stop",{"stop-color":`var(${unref(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_3$g),createBaseVNode("stop",{"stop-color":`var(${unref(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,_hoisted_4$c)],8,_hoisted_2$G),createBaseVNode("linearGradient",{id:`linearGradient-2-${unref(r)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[createBaseVNode("stop",{"stop-color":`var(${unref(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_6$1),createBaseVNode("stop",{"stop-color":`var(${unref(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,_hoisted_7)],8,_hoisted_5$5),createBaseVNode("rect",{id:`path-3-${unref(r)}`,x:"0",y:"0",width:"17",height:"36"},null,8,_hoisted_8)]),createBaseVNode("g",_hoisted_9,[createBaseVNode("g",_hoisted_10,[createBaseVNode("g",_hoisted_11,[createBaseVNode("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${unref(t).cssVarBlockName("fill-color-3")})`},null,8,_hoisted_12),createBaseVNode("polygon",{fill:`var(${unref(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,_hoisted_13),createBaseVNode("g",_hoisted_14,[createBaseVNode("polygon",{fill:`var(${unref(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,_hoisted_15),createBaseVNode("polygon",{fill:`var(${unref(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,_hoisted_16),createBaseVNode("rect",{fill:`url(#linearGradient-1-${unref(r)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,_hoisted_17),createBaseVNode("polygon",{fill:`var(${unref(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,_hoisted_18)]),createBaseVNode("rect",{fill:`url(#linearGradient-2-${unref(r)})`,x:"13",y:"45",width:"40",height:"36"},null,8,_hoisted_19),createBaseVNode("g",_hoisted_20,[createBaseVNode("use",{fill:`var(${unref(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${unref(r)}`},null,8,_hoisted_21),createBaseVNode("polygon",{fill:`var(${unref(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${unref(r)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,_hoisted_22)]),createBaseVNode("polygon",{fill:`var(${unref(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,_hoisted_23)])])])]))}});var ImgEmpty=_export_sfc(_sfc_main$1D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const emptyProps=buildProps({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),_hoisted_1$_=["src"],_hoisted_2$F={key:1},_sfc_main$1C=defineComponent({name:"ElEmpty",__name:"empty",props:emptyProps,setup(n){const t=n,{t:r}=useLocale(),i=useNamespace("empty"),g=computed(()=>t.description||r("el.table.emptyText")),$=computed(()=>({width:addUnit(t.imageSize)}));return(V,re)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(i).b())},[createBaseVNode("div",{class:normalizeClass(unref(i).e("image")),style:normalizeStyle$1($.value)},[V.image?(openBlock(),createElementBlock("img",{key:0,src:V.image,ondragstart:"return false"},null,8,_hoisted_1$_)):renderSlot(V.$slots,"image",{key:1},()=>[createVNode$1(ImgEmpty)])],6),createBaseVNode("div",{class:normalizeClass(unref(i).e("description"))},[V.$slots.description?renderSlot(V.$slots,"description",{key:0}):(openBlock(),createElementBlock("p",_hoisted_2$F,toDisplayString(g.value),1))],2),V.$slots.default?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("bottom"))},[renderSlot(V.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var Empty$1=_export_sfc(_sfc_main$1C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const ElEmpty=withInstall(Empty$1),formMetaProps=buildProps({size:{type:String,values:componentSizes},disabled:Boolean}),formProps=buildProps({...formMetaProps,model:Object,rules:{type:definePropType(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:definePropType([Object,Boolean]),default:!0}}),formEmits={validate:(n,t,r)=>(isArray$5(n)||isString$2(n))&&isBoolean$1(t)&&isString$2(r)};function useFormLabelWidth(){const n=ref([]),t=computed(()=>{if(!n.value.length)return"0";const $=Math.max(...n.value);return $?`${$}px`:""});function r($){const V=n.value.indexOf($);return V===-1&&t.value,V}function i($,V){if($&&V){const re=r(V);n.value.splice(re,1,$)}else $&&n.value.push($)}function g($){const V=r($);V>-1&&n.value.splice(V,1)}return{autoLabelWidth:t,registerLabelWidth:i,deregisterLabelWidth:g}}const filterFields=(n,t)=>{const r=castArray$1(t).map(i=>isArray$5(i)?i.join("."):i);return r.length>0?n.filter(i=>i.propString&&r.includes(i.propString)):n},COMPONENT_NAME$d="ElForm",_sfc_main$1B=defineComponent({name:COMPONENT_NAME$d,__name:"form",props:formProps,emits:formEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=ref(),V=reactive([]),re=useFormSize(),ie=useNamespace("form"),ae=computed(()=>{const{labelPosition:$e,inline:Ve}=i;return[ie.b(),ie.m(re.value||"default"),{[ie.m(`label-${$e}`)]:$e,[ie.m("inline")]:Ve}]}),oe=$e=>filterFields(V,[$e])[0],le=$e=>{V.push($e)},ue=$e=>{$e.prop&&V.splice(V.indexOf($e),1)},de=$e=>{i.model&&$e&&V.forEach(Ve=>{if(Ve.prop&&has($e,Ve.prop)){const Ue=getProp($e,Ve.prop).value;Ve.setInitialValue(Ue)}})},he=($e=[])=>{i.model&&filterFields(V,$e).forEach(Ve=>Ve.resetField())},pe=($e=[])=>{filterFields(V,$e).forEach(Ve=>Ve.clearValidate())},_e=computed(()=>!!i.model),Ce=$e=>{if(V.length===0)return[];const Ve=filterFields(V,$e);return Ve.length?Ve:[]},xe=async $e=>Ne(void 0,$e),Ie=async($e=[])=>{if(!_e.value)return!1;const Ve=Ce($e);if(Ve.length===0)return!0;let Ue={};for(const Fe of Ve)try{await Fe.validate(""),Fe.validateState==="error"&&!Fe.error&&Fe.resetField()}catch(ze){Ue={...Ue,...ze}}return Object.keys(Ue).length===0?!0:Promise.reject(Ue)},Ne=async($e=[],Ve)=>{let Ue=!1;const Fe=!isFunction$4(Ve);try{return Ue=await Ie($e),Ue===!0&&await(Ve==null?void 0:Ve(Ue)),Ue}catch(ze){if(ze instanceof Error)throw ze;const Pt=ze;if(i.scrollToError&&$.value){const qe=$.value.querySelector(`.${ie.b()}-item.is-error`);qe==null||qe.scrollIntoView(i.scrollIntoViewOptions)}return!Ue&&await(Ve==null?void 0:Ve(!1,Pt)),Fe&&Promise.reject(Pt)}},Oe=$e=>{var Ve;const Ue=oe($e);Ue&&((Ve=Ue.$el)==null||Ve.scrollIntoView(i.scrollIntoViewOptions))};return watch(()=>i.rules,()=>{i.validateOnRuleChange&&xe().catch($e=>void 0)},{deep:!0,flush:"post"}),provide(formContextKey,reactive({...toRefs(i),emit:g,resetFields:he,clearValidate:pe,validateField:Ne,getField:oe,addField:le,removeField:ue,setInitialValues:de,...useFormLabelWidth()})),t({validate:xe,validateField:Ne,resetFields:he,clearValidate:pe,scrollToField:Oe,getField:oe,fields:V,setInitialValues:de}),($e,Ve)=>(openBlock(),createElementBlock("form",{ref_key:"formRef",ref:$,class:normalizeClass(ae.value)},[renderSlot($e.$slots,"default")],2))}});var Form=_export_sfc(_sfc_main$1B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var t=1;t"u"||!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{return!1}}function _construct(n,t,r){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(g,$,V){var re=[null];re.push.apply(re,$);var ie=Function.bind.apply(g,re),ae=new ie;return V&&_setPrototypeOf(ae,V.prototype),ae},_construct.apply(null,arguments)}function _isNativeFunction(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function _wrapNativeSuper(n){var t=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(i){if(i===null||!_isNativeFunction(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(i))return t.get(i);t.set(i,g)}function g(){return _construct(i,arguments,_getPrototypeOf(this).constructor)}return g.prototype=Object.create(i.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(g,i)},_wrapNativeSuper(n)}var formatRegExp=/%[sdj%]/g,warning=function(){};typeof process<"u"&&process.env;function convertFieldsError(n){if(!n||!n.length)return null;var t={};return n.forEach(function(r){var i=r.field;t[i]=t[i]||[],t[i].push(r)}),t}function format$1(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i=$)return re;switch(re){case"%s":return String(r[g++]);case"%d":return Number(r[g++]);case"%j":try{return JSON.stringify(r[g++])}catch{return"[Circular]"}break;default:return re}});return V}return n}function isNativeStringType(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function isEmptyValue(n,t){return!!(n==null||t==="array"&&Array.isArray(n)&&!n.length||isNativeStringType(t)&&typeof n=="string"&&!n)}function asyncParallelArray(n,t,r){var i=[],g=0,$=n.length;function V(re){i.push.apply(i,re||[]),g++,g===$&&r(i)}n.forEach(function(re){t(re,V)})}function asyncSerialArray(n,t,r){var i=0,g=n.length;function $(V){if(V&&V.length){r(V);return}var re=i;i=i+1,re()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types={integer:function(t){return types.number(t)&&parseInt(t,10)===t},float:function(t){return types.number(t)&&!types.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!types.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(pattern$2.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(getUrlRegex())},hex:function(t){return typeof t=="string"&&!!t.match(pattern$2.hex)}},type$1=function(t,r,i,g,$){if(t.required&&r===void 0){required$1(t,r,i,g,$);return}var V=["integer","float","array","regexp","object","method","email","number","date","url","hex"],re=t.type;V.indexOf(re)>-1?types[re](r)||g.push(format$1($.messages.types[re],t.fullField,t.type)):re&&typeof r!==t.type&&g.push(format$1($.messages.types[re],t.fullField,t.type))},range=function(t,r,i,g,$){var V=typeof t.len=="number",re=typeof t.min=="number",ie=typeof t.max=="number",ae=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,oe=r,le=null,ue=typeof r=="number",de=typeof r=="string",he=Array.isArray(r);if(ue?le="number":de?le="string":he&&(le="array"),!le)return!1;he&&(oe=r.length),de&&(oe=r.replace(ae,"_").length),V?oe!==t.len&&g.push(format$1($.messages[le].len,t.fullField,t.len)):re&&!ie&&oet.max?g.push(format$1($.messages[le].max,t.fullField,t.max)):re&&ie&&(oet.max)&&g.push(format$1($.messages[le].range,t.fullField,t.min,t.max))},ENUM$1="enum",enumerable$1=function(t,r,i,g,$){t[ENUM$1]=Array.isArray(t[ENUM$1])?t[ENUM$1]:[],t[ENUM$1].indexOf(r)===-1&&g.push(format$1($.messages[ENUM$1],t.fullField,t[ENUM$1].join(", ")))},pattern$1=function(t,r,i,g,$){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||g.push(format$1($.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var V=new RegExp(t.pattern);V.test(r)||g.push(format$1($.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r,"string")&&!t.required)return i();rules.required(t,r,g,V,$,"string"),isEmptyValue(r,"string")||(rules.type(t,r,g,V,$),rules.range(t,r,g,V,$),rules.pattern(t,r,g,V,$),t.whitespace===!0&&rules.whitespace(t,r,g,V,$))}i(V)},method=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&rules.type(t,r,g,V,$)}i(V)},number=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(r===""&&(r=void 0),isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&(rules.type(t,r,g,V,$),rules.range(t,r,g,V,$))}i(V)},_boolean=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&rules.type(t,r,g,V,$)}i(V)},regexp$1=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),isEmptyValue(r)||rules.type(t,r,g,V,$)}i(V)},integer=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&(rules.type(t,r,g,V,$),rules.range(t,r,g,V,$))}i(V)},floatFn=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&(rules.type(t,r,g,V,$),rules.range(t,r,g,V,$))}i(V)},array=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(r==null&&!t.required)return i();rules.required(t,r,g,V,$,"array"),r!=null&&(rules.type(t,r,g,V,$),rules.range(t,r,g,V,$))}i(V)},object=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&rules.type(t,r,g,V,$)}i(V)},ENUM="enum",enumerable=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$),r!==void 0&&rules[ENUM](t,r,g,V,$)}i(V)},pattern=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r,"string")&&!t.required)return i();rules.required(t,r,g,V,$),isEmptyValue(r,"string")||rules.pattern(t,r,g,V,$)}i(V)},date=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r,"date")&&!t.required)return i();if(rules.required(t,r,g,V,$),!isEmptyValue(r,"date")){var ie;r instanceof Date?ie=r:ie=new Date(r),rules.type(t,ie,g,V,$),ie&&rules.range(t,ie.getTime(),g,V,$)}}i(V)},required=function(t,r,i,g,$){var V=[],re=Array.isArray(r)?"array":typeof r;rules.required(t,r,g,V,$,re),i(V)},type=function(t,r,i,g,$){var V=t.type,re=[],ie=t.required||!t.required&&g.hasOwnProperty(t.field);if(ie){if(isEmptyValue(r,V)&&!t.required)return i();rules.required(t,r,g,re,$,V),isEmptyValue(r,V)||rules.type(t,r,g,re,$)}i(re)},any=function(t,r,i,g,$){var V=[],re=t.required||!t.required&&g.hasOwnProperty(t.field);if(re){if(isEmptyValue(r)&&!t.required)return i();rules.required(t,r,g,V,$)}i(V)},validators$2={string,method,number,boolean:_boolean,regexp:regexp$1,integer,float:floatFn,array,object,enum:enumerable,pattern,date,url:type,hex:type,email:type,required,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var messages=newMessages(),Schema=function(){function n(r){this.rules=null,this._messages=messages,this.define(r)}var t=n.prototype;return t.define=function(i){var g=this;if(!i)throw new Error("Cannot configure a schema with no rules");if(typeof i!="object"||Array.isArray(i))throw new Error("Rules must be an object");this.rules={},Object.keys(i).forEach(function($){var V=i[$];g.rules[$]=Array.isArray(V)?V:[V]})},t.messages=function(i){return i&&(this._messages=deepMerge(newMessages(),i)),this._messages},t.validate=function(i,g,$){var V=this;g===void 0&&(g={}),$===void 0&&($=function(){});var re=i,ie=g,ae=$;if(typeof ie=="function"&&(ae=ie,ie={}),!this.rules||Object.keys(this.rules).length===0)return ae&&ae(null,re),Promise.resolve(re);function oe(pe){var _e=[],Ce={};function xe(Ne){if(Array.isArray(Ne)){var Oe;_e=(Oe=_e).concat.apply(Oe,Ne)}else _e.push(Ne)}for(var Ie=0;Ie");const g=useNamespace("form"),$=ref(),V=ref(0),re=()=>{var oe;if((oe=$.value)!=null&&oe.firstElementChild){const le=window.getComputedStyle($.value.firstElementChild).width;return Math.ceil(Number.parseFloat(le))}else return 0},ie=(oe="update")=>{nextTick(()=>{t.default&&n.isAutoWidth&&(oe==="update"?V.value=re():oe==="remove"&&(r==null||r.deregisterLabelWidth(V.value)))})},ae=()=>ie("update");return onMounted(()=>{ae()}),onBeforeUnmount(()=>{ie("remove")}),onUpdated(()=>ae()),watch(V,(oe,le)=>{n.updateAll&&(r==null||r.registerLabelWidth(oe,le))}),useResizeObserver(computed(()=>{var oe,le;return(le=(oe=$.value)==null?void 0:oe.firstElementChild)!=null?le:null}),ae),()=>{var oe,le;if(!t)return null;const{isAutoWidth:ue}=n;if(ue){const de=r==null?void 0:r.autoLabelWidth,he=i==null?void 0:i.hasLabel,pe={};if(he&&de&&de!=="auto"){const _e=Math.max(0,Number.parseInt(de,10)-V.value),xe=(i.labelPosition||r.labelPosition)==="left"?"marginRight":"marginLeft";_e&&(pe[xe]=`${_e}px`)}return createVNode$1("div",{ref:$,class:[g.be("item","label-wrap")],style:pe},[(oe=t.default)==null?void 0:oe.call(t)])}else return createVNode$1(Fragment,{ref:$},[(le=t.default)==null?void 0:le.call(t)])}}});const _hoisted_1$Z=["role","aria-labelledby"],_sfc_main$1A=defineComponent({name:"ElFormItem",__name:"form-item",props:formItemProps,setup(n,{expose:t}){const r=n,i=useSlots(),g=inject(formContextKey,void 0),$=inject(formItemContextKey,void 0),V=useFormSize(void 0,{formItem:!1}),re=useNamespace("form-item"),ie=useId().value,ae=ref([]),oe=ref(""),le=refDebounced(oe,100),ue=ref(""),de=ref();let he,pe=!1;const _e=computed(()=>r.labelPosition||(g==null?void 0:g.labelPosition)),Ce=computed(()=>{var $n;return _e.value==="top"?{}:{width:addUnit(($n=r.labelWidth)!=null?$n:g==null?void 0:g.labelWidth)}}),xe=computed(()=>{var $n;if(_e.value==="top"||g!=null&&g.inline)return{};if(!r.label&&!r.labelWidth&&ze)return{};const An=addUnit(($n=r.labelWidth)!=null?$n:g==null?void 0:g.labelWidth);return!r.label&&!i.label?{marginLeft:An}:{}}),Ie=computed(()=>[re.b(),re.m(V.value),re.is("error",oe.value==="error"),re.is("validating",oe.value==="validating"),re.is("success",oe.value==="success"),re.is("required",At.value||r.required),re.is("no-asterisk",g==null?void 0:g.hideRequiredAsterisk),(g==null?void 0:g.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[re.m("feedback")]:g==null?void 0:g.statusIcon,[re.m(`label-${_e.value}`)]:_e.value}]),Ne=computed(()=>isBoolean$1(r.inlineMessage)?r.inlineMessage:(g==null?void 0:g.inlineMessage)||!1),Oe=computed(()=>[re.e("error"),{[re.em("error","inline")]:Ne.value}]),$e=computed(()=>r.prop?isArray$5(r.prop)?r.prop.join("."):r.prop:""),Ve=computed(()=>!!(r.label||i.label)),Ue=computed(()=>{var $n;return($n=r.for)!=null?$n:ae.value.length===1?ae.value[0]:void 0}),Fe=computed(()=>!Ue.value&&Ve.value),ze=!!$,Pt=computed(()=>{const $n=g==null?void 0:g.model;if(!(!$n||!r.prop))return getProp($n,r.prop).value}),qe=computed(()=>{const{required:$n}=r,An=[];r.rules&&An.push(...castArray$1(r.rules));const xn=g==null?void 0:g.rules;if(xn&&r.prop){const Ln=getProp(xn,r.prop).value;Ln&&An.push(...castArray$1(Ln))}if($n!==void 0){const Ln=An.map((Nn,Pn)=>[Nn,Pn]).filter(([Nn])=>"required"in Nn);if(Ln.length>0)for(const[Nn,Pn]of Ln)Nn.required!==$n&&(An[Pn]={...Nn,required:$n});else An.push({required:$n})}return An}),Et=computed(()=>qe.value.length>0),kt=$n=>qe.value.filter(xn=>!xn.trigger||!$n?!0:isArray$5(xn.trigger)?xn.trigger.includes($n):xn.trigger===$n).map(({trigger:xn,...Ln})=>Ln),At=computed(()=>qe.value.some($n=>$n.required)),Dt=computed(()=>{var $n;return le.value==="error"&&r.showMessage&&(($n=g==null?void 0:g.showMessage)!=null?$n:!0)}),Lt=computed(()=>`${r.label||""}${(g==null?void 0:g.labelSuffix)||""}`),jt=$n=>{oe.value=$n},hn=$n=>{var An,xn;const{errors:Ln,fields:Nn}=$n;(!Ln||!Nn)&&console.error($n),jt("error"),ue.value=Ln?(xn=(An=Ln==null?void 0:Ln[0])==null?void 0:An.message)!=null?xn:`${r.prop} is required`:"",g==null||g.emit("validate",r.prop,!1,ue.value)},vn=()=>{jt("success"),g==null||g.emit("validate",r.prop,!0,"")},_n=async $n=>{const An=$e.value;return new Schema({[An]:$n}).validate({[An]:Pt.value},{firstFields:!0}).then(()=>(vn(),!0)).catch(Ln=>(hn(Ln),Promise.reject(Ln)))},wn=async($n,An)=>{if(pe||!r.prop)return!1;const xn=isFunction$4(An);if(!Et.value)return An==null||An(!1),!1;const Ln=kt($n);return Ln.length===0?(An==null||An(!0),!0):(jt("validating"),_n(Ln).then(()=>(An==null||An(!0),!0)).catch(Nn=>{const{fields:Pn}=Nn;return An==null||An(!1,Pn),xn?!1:Promise.reject(Pn)}))},bn=()=>{jt(""),ue.value="",pe=!1},Cn=async()=>{const $n=g==null?void 0:g.model;if(!$n||!r.prop)return;const An=getProp($n,r.prop);pe=!0,An.value=clone$3(he),await nextTick(),bn(),pe=!1},Sn=$n=>{ae.value.includes($n)||ae.value.push($n)},Tn=$n=>{ae.value=ae.value.filter(An=>An!==$n)},En=$n=>{he=clone$3($n)};watch(()=>r.error,$n=>{ue.value=$n||"",jt($n?"error":"")},{immediate:!0}),watch(()=>r.validateStatus,$n=>jt($n||""));const kn=reactive({...toRefs(r),$el:de,size:V,validateMessage:ue,validateState:oe,labelId:ie,inputIds:ae,isGroup:Fe,hasLabel:Ve,fieldValue:Pt,addInputId:Sn,removeInputId:Tn,resetField:Cn,clearValidate:bn,validate:wn,propString:$e,setInitialValue:En});return provide(formItemContextKey,kn),onMounted(()=>{r.prop&&(g==null||g.addField(kn),he=clone$3(Pt.value))}),onBeforeUnmount(()=>{g==null||g.removeField(kn)}),t({size:V,validateMessage:ue,validateState:oe,validate:wn,clearValidate:bn,resetField:Cn,setInitialValue:En}),($n,An)=>{var xn;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:de,class:normalizeClass(Ie.value),role:Fe.value?"group":void 0,"aria-labelledby":Fe.value?unref(ie):void 0},[createVNode$1(unref(FormLabelWrap),{"is-auto-width":Ce.value.width==="auto","update-all":((xn=unref(g))==null?void 0:xn.labelWidth)==="auto"},{default:withCtx(()=>[$n.label||$n.$slots.label?(openBlock(),createBlock(resolveDynamicComponent(Ue.value?"label":"div"),{key:0,id:unref(ie),for:Ue.value,class:normalizeClass(unref(re).e("label")),style:normalizeStyle$1(Ce.value)},{default:withCtx(()=>[renderSlot($n.$slots,"label",{label:Lt.value},()=>[createTextVNode(toDisplayString(Lt.value),1)])]),_:3},8,["id","for","class","style"])):createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),createBaseVNode("div",{class:normalizeClass(unref(re).e("content")),style:normalizeStyle$1(xe.value)},[renderSlot($n.$slots,"default"),createVNode$1(TransitionGroup,{name:`${unref(re).namespace.value}-zoom-in-top`},{default:withCtx(()=>[Dt.value?renderSlot($n.$slots,"error",{key:0,error:ue.value},()=>[createBaseVNode("div",{class:normalizeClass(Oe.value)},toDisplayString(ue.value),3)]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,_hoisted_1$Z)}}});var FormItem=_export_sfc(_sfc_main$1A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const ElForm=withInstall(Form,{FormItem}),ElFormItem=withNoopInstall(FormItem),imageViewerProps=buildProps({urlList:{type:definePropType(Array),default:()=>mutable([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:definePropType(String)}}),imageViewerEmits={close:()=>!0,error:n=>n instanceof Event,switch:n=>isNumber$2(n),rotate:n=>isNumber$2(n)},_hoisted_1$Y=["src","crossorigin"],_sfc_main$1z=defineComponent({name:"ElImageViewer",__name:"image-viewer",props:imageViewerProps,emits:imageViewerEmits,setup(n,{expose:t,emit:r}){var i;const g={CONTAIN:{name:"contain",icon:markRaw(full_screen_default)},ORIGINAL:{name:"original",icon:markRaw(scale_to_original_default)}},$=n,V=r;let re;const{t:ie}=useLocale(),ae=useNamespace("image-viewer"),{nextZIndex:oe}=useZIndex(),le=ref(),ue=ref(),de=effectScope(),he=computed(()=>{const{scale:An,minScale:xn,maxScale:Ln}=$;return clamp$4(An,xn,Ln)}),pe=ref(!0),_e=ref(!1),Ce=ref(!1),xe=ref($.initialIndex),Ie=shallowRef(g.CONTAIN),Ne=ref({scale:he.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),Oe=ref((i=$.zIndex)!=null?i:oe());useLockscreen(Ce,{ns:ae});const $e=computed(()=>{const{urlList:An}=$;return An.length<=1}),Ve=computed(()=>xe.value===0),Ue=computed(()=>xe.value===$.urlList.length-1),Fe=computed(()=>$.urlList[xe.value]),ze=computed(()=>[ae.e("btn"),ae.e("prev"),ae.is("disabled",!$.infinite&&Ve.value)]),Pt=computed(()=>[ae.e("btn"),ae.e("next"),ae.is("disabled",!$.infinite&&Ue.value)]),qe=computed(()=>{const{scale:An,deg:xn,offsetX:Ln,offsetY:Nn,enableTransition:Pn}=Ne.value;let On=Ln/An,Hn=Nn/An;const Xn=xn*Math.PI/180,In=Math.cos(Xn),or=Math.sin(Xn);On=On*In+Hn*or,Hn=Hn*In-Ln/An*or;const Qn={transform:`scale(${An}) rotate(${xn}deg) translate(${On}px, ${Hn}px)`,transition:Pn?"transform .3s":""};return Ie.value.name===g.CONTAIN.name&&(Qn.maxWidth=Qn.maxHeight="100%"),Qn}),Et=computed(()=>`${xe.value+1} / ${$.urlList.length}`);function kt(){Dt(),re==null||re(),Ce.value=!1,V("close")}function At(){const An=throttle$3(Ln=>{switch(getEventCode(Ln)){case EVENT_CODE.esc:$.closeOnPressEscape&&kt();break;case EVENT_CODE.space:wn();break;case EVENT_CODE.left:Cn();break;case EVENT_CODE.up:Tn("zoomIn");break;case EVENT_CODE.right:Sn();break;case EVENT_CODE.down:Tn("zoomOut");break}}),xn=throttle$3(Ln=>{const Nn=Ln.deltaY||Ln.deltaX;Tn(Nn<0?"zoomIn":"zoomOut",{zoomRate:$.zoomRate,enableTransition:!1})});de.run(()=>{useEventListener(document,"keydown",An),useEventListener(le,"wheel",xn)})}function Dt(){de.stop()}function Lt(){pe.value=!1}function jt(An){_e.value=!0,pe.value=!1,V("error",An),An.target.alt=ie("el.image.error")}function hn(An){if(pe.value||An.button!==0||!le.value)return;Ne.value.enableTransition=!1;const{offsetX:xn,offsetY:Ln}=Ne.value,Nn=An.pageX,Pn=An.pageY,On=throttle$3(In=>{Ne.value={...Ne.value,offsetX:xn+In.pageX-Nn,offsetY:Ln+In.pageY-Pn}}),Hn=useEventListener(document,"mousemove",On),Xn=useEventListener(document,"mouseup",()=>{Hn(),Xn()});An.preventDefault()}function vn(An){if(pe.value||!le.value||An.touches.length!==1)return;Ne.value.enableTransition=!1;const{offsetX:xn,offsetY:Ln}=Ne.value,{pageX:Nn,pageY:Pn}=An.touches[0],On=throttle$3(In=>{const or=In.touches[0];Ne.value={...Ne.value,offsetX:xn+or.pageX-Nn,offsetY:Ln+or.pageY-Pn}}),Hn=useEventListener(document,"touchmove",On),Xn=useEventListener(document,"touchend",()=>{Hn(),Xn()});An.preventDefault()}function _n(){Ne.value={scale:he.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function wn(){if(pe.value||_e.value)return;const An=keysOf(g),xn=Object.values(g),Ln=Ie.value.name,Pn=(xn.findIndex(On=>On.name===Ln)+1)%An.length;Ie.value=g[An[Pn]],_n()}function bn(An){_e.value=!1;const xn=$.urlList.length;xe.value=(An+xn)%xn}function Cn(){Ve.value&&!$.infinite||bn(xe.value-1)}function Sn(){Ue.value&&!$.infinite||bn(xe.value+1)}function Tn(An,xn={}){if(pe.value||_e.value)return;const{minScale:Ln,maxScale:Nn}=$,{zoomRate:Pn,rotateDeg:On,enableTransition:Hn}={zoomRate:$.zoomRate,rotateDeg:90,enableTransition:!0,...xn};switch(An){case"zoomOut":Ne.value.scale>Ln&&(Ne.value.scale=Number.parseFloat((Ne.value.scale/Pn).toFixed(3)));break;case"zoomIn":Ne.value.scale0)return An.preventDefault(),!1}}return watch(()=>he.value,An=>{Ne.value.scale=An}),watch(Fe,()=>{nextTick(()=>{const An=ue.value;An!=null&&An.complete||(pe.value=!0)})}),watch(xe,An=>{_n(),V("switch",An)}),onMounted(()=>{Ce.value=!0,At(),re=useEventListener("wheel",$n,{passive:!1})}),t({setActiveItem:bn}),(An,xn)=>(openBlock(),createBlock(unref(ElTeleport),{to:"body",disabled:!An.teleported},{default:withCtx(()=>[createVNode$1(Transition,{name:"viewer-fade",appear:""},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"wrapper",ref:le,tabindex:-1,class:normalizeClass(unref(ae).e("wrapper")),style:normalizeStyle$1({zIndex:Oe.value})},[createVNode$1(unref(ElFocusTrap),{loop:"",trapped:"","focus-trap-el":le.value,"focus-start-el":"container",onFocusoutPrevented:En,onReleaseRequested:kn},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(ae).e("mask")),onClick:xn[0]||(xn[0]=withModifiers(Ln=>An.hideOnClickModal&&kt(),["self"]))},null,2),createCommentVNode(" CLOSE "),createBaseVNode("span",{class:normalizeClass([unref(ae).e("btn"),unref(ae).e("close")]),onClick:kt},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1})],2),createCommentVNode(" ARROW "),$e.value?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",{class:normalizeClass(ze.value),onClick:Cn},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_left_default))]),_:1})],2),createBaseVNode("span",{class:normalizeClass(Pt.value),onClick:Sn},[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})],2)],64)),An.$slots.progress||An.showProgress?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(ae).e("btn"),unref(ae).e("progress")])},[renderSlot(An.$slots,"progress",{activeIndex:xe.value,total:An.urlList.length},()=>[createTextVNode(toDisplayString(Et.value),1)])],2)):createCommentVNode("v-if",!0),createCommentVNode(" ACTIONS "),createBaseVNode("div",{class:normalizeClass([unref(ae).e("btn"),unref(ae).e("actions")])},[createBaseVNode("div",{class:normalizeClass(unref(ae).e("actions__inner"))},[renderSlot(An.$slots,"toolbar",{actions:Tn,prev:Cn,next:Sn,reset:wn,activeIndex:xe.value,setActiveItem:bn},()=>[createVNode$1(unref(ElIcon),{onClick:xn[1]||(xn[1]=Ln=>Tn("zoomOut"))},{default:withCtx(()=>[createVNode$1(unref(zoom_out_default))]),_:1}),createVNode$1(unref(ElIcon),{onClick:xn[2]||(xn[2]=Ln=>Tn("zoomIn"))},{default:withCtx(()=>[createVNode$1(unref(zoom_in_default))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(ae).e("actions__divider"))},null,2),createVNode$1(unref(ElIcon),{onClick:wn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ie.value.icon)))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(ae).e("actions__divider"))},null,2),createVNode$1(unref(ElIcon),{onClick:xn[3]||(xn[3]=Ln=>Tn("anticlockwise"))},{default:withCtx(()=>[createVNode$1(unref(refresh_left_default))]),_:1}),createVNode$1(unref(ElIcon),{onClick:xn[4]||(xn[4]=Ln=>Tn("clockwise"))},{default:withCtx(()=>[createVNode$1(unref(refresh_right_default))]),_:1})])],2)],2),createCommentVNode(" CANVAS "),createBaseVNode("div",{class:normalizeClass(unref(ae).e("canvas"))},[_e.value&&An.$slots["viewer-error"]?renderSlot(An.$slots,"viewer-error",{key:0,activeIndex:xe.value,src:Fe.value}):(openBlock(),createElementBlock("img",{ref_key:"imgRef",ref:ue,key:Fe.value,src:Fe.value,style:normalizeStyle$1(qe.value),class:normalizeClass(unref(ae).e("img")),crossorigin:An.crossorigin,onLoad:Lt,onError:jt,onMousedown:hn,onTouchstart:vn},null,46,_hoisted_1$Y))],2),renderSlot(An.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var ImageViewer=_export_sfc(_sfc_main$1z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const ElImageViewer=withInstall(ImageViewer),imageProps=buildProps({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:definePropType([String,Object])},previewSrcList:{type:definePropType(Array),default:()=>mutable([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:definePropType(String)}}),imageEmits={load:n=>n instanceof Event,error:n=>n instanceof Event,switch:n=>isNumber$2(n),close:()=>!0,show:()=>!0},_hoisted_1$X=["src","loading","crossorigin"],_hoisted_2$E={key:0},_sfc_main$1y=defineComponent({name:"ElImage",inheritAttrs:!1,__name:"image",props:imageProps,emits:imageEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{t:$}=useLocale(),V=useNamespace("image"),re=useAttrs$1(),ie=computed(()=>fromPairs(Object.entries(re).filter(([Lt])=>/^(data-|on[A-Z])/i.test(Lt)||["id","style"].includes(Lt)))),ae=useAttrs({excludeListeners:!0,excludeKeys:computed(()=>Object.keys(ie.value))}),oe=ref(),le=ref(!1),ue=ref(!0),de=ref(!1),he=ref(),pe=ref(),_e=isClient&&"loading"in HTMLImageElement.prototype;let Ce;const xe=computed(()=>[V.e("inner"),Ne.value&&V.e("preview"),ue.value&&V.is("loading")]),Ie=computed(()=>{const{fit:Lt}=i;return isClient&&Lt?{objectFit:Lt}:{}}),Ne=computed(()=>{const{previewSrcList:Lt}=i;return isArray$5(Lt)&&Lt.length>0}),Oe=computed(()=>{const{previewSrcList:Lt,initialIndex:jt}=i;let hn=jt;return jt>Lt.length-1&&(hn=0),hn}),$e=computed(()=>i.loading==="eager"?!1:!_e&&i.loading==="lazy"||i.lazy),Ve=()=>{isClient&&(ue.value=!0,le.value=!1,oe.value=i.src)};function Ue(Lt){ue.value=!1,le.value=!1,g("load",Lt)}function Fe(Lt){ue.value=!1,le.value=!0,g("error",Lt)}function ze(Lt){Lt&&(Ve(),Et())}const Pt=useThrottleFn(ze,200,!0);async function qe(){var Lt;if(!isClient)return;await nextTick();const{scrollContainer:jt}=i;if(isElement$1(jt))pe.value=jt;else if(isString$2(jt)&&jt!=="")pe.value=(Lt=document.querySelector(jt))!=null?Lt:void 0;else if(he.value){const vn=getScrollContainer(he.value);pe.value=isWindow(vn)?void 0:vn}const{stop:hn}=useIntersectionObserver(he,([vn])=>{Pt(vn.isIntersecting)},{root:pe});Ce=hn}function Et(){!isClient||!Pt||(Ce==null||Ce(),pe.value=void 0,Ce=void 0)}function kt(){Ne.value&&(de.value=!0,g("show"))}function At(){de.value=!1,g("close")}function Dt(Lt){g("switch",Lt)}return watch(()=>i.src,()=>{$e.value?(ue.value=!0,le.value=!1,Et(),qe()):Ve()}),onMounted(()=>{$e.value?qe():Ve()}),t({showPreview:kt}),(Lt,jt)=>(openBlock(),createElementBlock("div",mergeProps({ref_key:"container",ref:he},ie.value,{class:[unref(V).b(),Lt.$attrs.class]}),[le.value?renderSlot(Lt.$slots,"error",{key:0},()=>[createBaseVNode("div",{class:normalizeClass(unref(V).e("error"))},toDisplayString(unref($)("el.image.error")),3)]):(openBlock(),createElementBlock(Fragment,{key:1},[oe.value!==void 0?(openBlock(),createElementBlock("img",mergeProps({key:0},unref(ae),{src:oe.value,loading:Lt.loading,style:Ie.value,class:xe.value,crossorigin:Lt.crossorigin,onClick:kt,onLoad:Ue,onError:Fe}),null,16,_hoisted_1$X)):createCommentVNode("v-if",!0),ue.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(V).e("wrapper"))},[renderSlot(Lt.$slots,"placeholder",{},()=>[createBaseVNode("div",{class:normalizeClass(unref(V).e("placeholder"))},null,2)])],2)):createCommentVNode("v-if",!0)],64)),Ne.value?(openBlock(),createElementBlock(Fragment,{key:2},[de.value?(openBlock(),createBlock(unref(ElImageViewer),{key:0,"z-index":Lt.zIndex,"initial-index":Oe.value,infinite:Lt.infinite,"zoom-rate":Lt.zoomRate,"min-scale":Lt.minScale,"max-scale":Lt.maxScale,"show-progress":Lt.showProgress,"url-list":Lt.previewSrcList,scale:Lt.scale,crossorigin:Lt.crossorigin,"hide-on-click-modal":Lt.hideOnClickModal,teleported:Lt.previewTeleported,"close-on-press-escape":Lt.closeOnPressEscape,onClose:At,onSwitch:Dt},createSlots({toolbar:withCtx(hn=>[renderSlot(Lt.$slots,"toolbar",normalizeProps(guardReactiveProps(hn)))]),default:withCtx(()=>[Lt.$slots.viewer?(openBlock(),createElementBlock("div",_hoisted_2$E,[renderSlot(Lt.$slots,"viewer")])):createCommentVNode("v-if",!0)]),_:2},[Lt.$slots.progress?{name:"progress",fn:withCtx(hn=>[renderSlot(Lt.$slots,"progress",normalizeProps(guardReactiveProps(hn)))]),key:"0"}:void 0,Lt.$slots["viewer-error"]?{name:"viewer-error",fn:withCtx(hn=>[renderSlot(Lt.$slots,"viewer-error",normalizeProps(guardReactiveProps(hn)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0)],16))}});var Image$1=_export_sfc(_sfc_main$1y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const ElImage=withInstall(Image$1),inputNumberProps=buildProps({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:{type:Boolean,default:void 0},size:useSizeProp,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:definePropType([String,Number,null]),validator:n=>n===null||isNumber$2(n)||["min","max"].includes(n),default:null},name:String,placeholder:String,precision:{type:Number,validator:n=>n>=0&&n===Number.parseInt(`${n}`,10)},validateEvent:{type:Boolean,default:!0},...useAriaProps(["ariaLabel"]),inputmode:{type:definePropType(String),default:void 0},align:{type:definePropType(String),default:"center"},disabledScientific:Boolean}),inputNumberEmits={[CHANGE_EVENT]:(n,t)=>t!==n,blur:n=>n instanceof FocusEvent,focus:n=>n instanceof FocusEvent,[INPUT_EVENT]:n=>isNumber$2(n)||isNil(n),[UPDATE_MODEL_EVENT]:n=>isNumber$2(n)||isNil(n)},_hoisted_1$W=["aria-label"],_hoisted_2$D=["aria-label"],_sfc_main$1x=defineComponent({name:"ElInputNumber",__name:"input-number",props:inputNumberProps,emits:inputNumberEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{t:$}=useLocale(),V=useNamespace("input-number"),re=ref(),ie=reactive({currentValue:i.modelValue,userInput:null}),{formItem:ae}=useFormItem(),oe=computed(()=>isNumber$2(i.modelValue)&&i.modelValue<=i.min),le=computed(()=>isNumber$2(i.modelValue)&&i.modelValue>=i.max),ue=computed(()=>{const Lt=xe(i.step);return isUndefined$1(i.precision)?Math.max(xe(i.modelValue),Lt):(Lt>i.precision,i.precision)}),de=computed(()=>i.controls&&i.controlsPosition==="right"),he=useFormSize(),pe=useFormDisabled(),_e=computed(()=>{if(ie.userInput!==null)return ie.userInput;let Lt=ie.currentValue;if(isNil(Lt))return"";if(isNumber$2(Lt)){if(Number.isNaN(Lt))return"";isUndefined$1(i.precision)||(Lt=Lt.toFixed(i.precision))}return Lt}),Ce=(Lt,jt)=>{if(isUndefined$1(jt)&&(jt=ue.value),jt===0)return Math.round(Lt);let hn=String(Lt);const vn=hn.indexOf(".");if(vn===-1||!hn.replace(".","").split("")[vn+jt])return Lt;const bn=hn.length;return hn.charAt(bn-1)==="5"&&(hn=`${hn.slice(0,Math.max(0,bn-1))}6`),Number.parseFloat(Number(hn).toFixed(jt))},xe=Lt=>{if(isNil(Lt))return 0;const jt=Lt.toString(),hn=jt.indexOf(".");let vn=0;return hn!==-1&&(vn=jt.length-hn-1),vn},Ie=(Lt,jt=1)=>isNumber$2(Lt)?Lt>=Number.MAX_SAFE_INTEGER&&jt===1||Lt<=Number.MIN_SAFE_INTEGER&&jt===-1?Lt:Ce(Lt+i.step*jt):ie.currentValue,Ne=Lt=>{const jt=getEventCode(Lt),hn=getEventKey(Lt);if(i.disabledScientific&&["e","E"].includes(hn)){Lt.preventDefault();return}switch(jt){case EVENT_CODE.up:{Lt.preventDefault(),Oe();break}case EVENT_CODE.down:{Lt.preventDefault(),$e();break}}},Oe=()=>{if(i.readonly||pe.value||le.value)return;const Lt=Number(_e.value)||0,jt=Ie(Lt);Ue(jt),g(INPUT_EVENT,ie.currentValue),At()},$e=()=>{if(i.readonly||pe.value||oe.value)return;const Lt=Number(_e.value)||0,jt=Ie(Lt,-1);Ue(jt),g(INPUT_EVENT,ie.currentValue),At()},Ve=(Lt,jt)=>{const{max:hn,min:vn,step:_n,precision:wn,stepStrictly:bn,valueOnClear:Cn}=i;hnhn||Snhn?hn:vn,jt&&g(UPDATE_MODEL_EVENT,Sn)),Sn},Ue=(Lt,jt=!0)=>{var hn;const vn=ie.currentValue,_n=Ve(Lt);if(!jt){g(UPDATE_MODEL_EVENT,_n);return}ie.userInput=null,!(vn===_n&&Lt)&&(g(UPDATE_MODEL_EVENT,_n),vn!==_n&&g(CHANGE_EVENT,_n,vn),i.validateEvent&&((hn=ae==null?void 0:ae.validate)==null||hn.call(ae,"change").catch(wn=>void 0)),ie.currentValue=_n)},Fe=Lt=>{ie.userInput=Lt;const jt=Lt===""?null:Number(Lt);g(INPUT_EVENT,jt),Ue(jt,!1)},ze=Lt=>{const jt=Lt!==""?Number(Lt):"";(isNumber$2(jt)&&!Number.isNaN(jt)||Lt==="")&&Ue(jt),At(),ie.userInput=null},Pt=()=>{var Lt,jt;(jt=(Lt=re.value)==null?void 0:Lt.focus)==null||jt.call(Lt)},qe=()=>{var Lt,jt;(jt=(Lt=re.value)==null?void 0:Lt.blur)==null||jt.call(Lt)},Et=Lt=>{g("focus",Lt)},kt=Lt=>{var jt,hn;ie.userInput=null,ie.currentValue===null&&((jt=re.value)!=null&&jt.input)&&(re.value.input.value=""),g("blur",Lt),i.validateEvent&&((hn=ae==null?void 0:ae.validate)==null||hn.call(ae,"blur").catch(vn=>void 0))},At=()=>{ie.currentValue!==i.modelValue&&(ie.currentValue=i.modelValue)},Dt=Lt=>{document.activeElement===Lt.target&&Lt.preventDefault()};return watch(()=>i.modelValue,(Lt,jt)=>{const hn=Ve(Lt,!0);ie.userInput===null&&hn!==jt&&(ie.currentValue=hn)},{immediate:!0}),watch(()=>i.precision,()=>{ie.currentValue=Ve(i.modelValue)}),onMounted(()=>{var Lt;const{min:jt,max:hn,modelValue:vn}=i,_n=(Lt=re.value)==null?void 0:Lt.input;if(_n.setAttribute("role","spinbutton"),Number.isFinite(hn)?_n.setAttribute("aria-valuemax",String(hn)):_n.removeAttribute("aria-valuemax"),Number.isFinite(jt)?_n.setAttribute("aria-valuemin",String(jt)):_n.removeAttribute("aria-valuemin"),_n.setAttribute("aria-valuenow",ie.currentValue||ie.currentValue===0?String(ie.currentValue):""),_n.setAttribute("aria-disabled",String(pe.value)),!isNumber$2(vn)&&vn!=null){let wn=Number(vn);Number.isNaN(wn)&&(wn=null),g(UPDATE_MODEL_EVENT,wn)}_n.addEventListener("wheel",Dt,{passive:!1})}),onUpdated(()=>{var Lt,jt;const hn=(Lt=re.value)==null?void 0:Lt.input;hn==null||hn.setAttribute("aria-valuenow",`${(jt=ie.currentValue)!=null?jt:""}`)}),t({focus:Pt,blur:qe}),(Lt,jt)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(V).b(),unref(V).m(unref(he)),unref(V).is("disabled",unref(pe)),unref(V).is("without-controls",!Lt.controls),unref(V).is("controls-right",de.value),unref(V).is(Lt.align,!!Lt.align)]),onDragstart:jt[0]||(jt[0]=withModifiers(()=>{},["prevent"]))},[Lt.controls?withDirectives((openBlock(),createElementBlock("span",{key:0,role:"button","aria-label":unref($)("el.inputNumber.decrease"),class:normalizeClass([unref(V).e("decrease"),unref(V).is("disabled",oe.value)]),onKeydown:withKeys($e,["enter"])},[renderSlot(Lt.$slots,"decrease-icon",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[de.value?(openBlock(),createBlock(unref(arrow_down_default),{key:0})):(openBlock(),createBlock(unref(minus_default),{key:1}))]),_:1})])],42,_hoisted_1$W)),[[unref(vRepeatClick),$e]]):createCommentVNode("v-if",!0),Lt.controls?withDirectives((openBlock(),createElementBlock("span",{key:1,role:"button","aria-label":unref($)("el.inputNumber.increase"),class:normalizeClass([unref(V).e("increase"),unref(V).is("disabled",le.value)]),onKeydown:withKeys(Oe,["enter"])},[renderSlot(Lt.$slots,"increase-icon",{},()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[de.value?(openBlock(),createBlock(unref(arrow_up_default),{key:0})):(openBlock(),createBlock(unref(plus_default),{key:1}))]),_:1})])],42,_hoisted_2$D)),[[unref(vRepeatClick),Oe]]):createCommentVNode("v-if",!0),createVNode$1(unref(ElInput),{id:Lt.id,ref_key:"input",ref:re,type:"number",step:Lt.step,"model-value":_e.value,placeholder:Lt.placeholder,readonly:Lt.readonly,disabled:unref(pe),size:unref(he),max:Lt.max,min:Lt.min,name:Lt.name,"aria-label":Lt.ariaLabel,"validate-event":!1,inputmode:Lt.inputmode,onKeydown:Ne,onBlur:kt,onFocus:Et,onInput:Fe,onChange:ze},createSlots({_:2},[Lt.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(Lt.$slots,"prefix")]),key:"0"}:void 0,Lt.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot(Lt.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],34))}});var InputNumber=_export_sfc(_sfc_main$1x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const ElInputNumber=withInstall(InputNumber),inputTagProps=buildProps({modelValue:{type:definePropType(Array)},max:Number,tagType:{...tagProps.type,default:"info"},tagEffect:tagProps.effect,trigger:{type:definePropType(String),default:EVENT_CODE.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:useSizeProp,clearable:Boolean,clearIcon:{type:iconPropType,default:circle_close_default},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:definePropType(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),inputTagEmits={[UPDATE_MODEL_EVENT]:n=>isArray$5(n)||isUndefined$1(n),[CHANGE_EVENT]:n=>isArray$5(n)||isUndefined$1(n),[INPUT_EVENT]:n=>isString$2(n),"add-tag":n=>isString$2(n)||isArray$5(n),"remove-tag":(n,t)=>isString$2(n)&&isNumber$2(t),"drag-tag":(n,t,r)=>isNumber$2(n)&&isNumber$2(t)&&isString$2(r),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0};function useInputTag({props:n,emit:t,formItem:r}){const i=useFormDisabled(),g=useFormSize(),$=shallowRef(),V=ref(),re=ref(),ie=computed(()=>["small"].includes(g.value)?"small":"default"),ae=computed(()=>{var At;return(At=n.modelValue)!=null&&At.length?void 0:n.placeholder}),oe=computed(()=>!(n.readonly||i.value)),le=computed(()=>{var At,Dt;return isUndefined$1(n.max)?!1:((Dt=(At=n.modelValue)==null?void 0:At.length)!=null?Dt:0)>=n.max}),ue=computed(()=>{var At;return n.collapseTags?(At=n.modelValue)==null?void 0:At.slice(0,n.maxCollapseTags):n.modelValue}),de=computed(()=>{var At;return n.collapseTags?(At=n.modelValue)==null?void 0:At.slice(n.maxCollapseTags):[]}),he=At=>{var Dt;const Lt=[...(Dt=n.modelValue)!=null?Dt:[],...castArray$1(At)];t(UPDATE_MODEL_EVENT,Lt),t(CHANGE_EVENT,Lt),t("add-tag",At),V.value=void 0},pe=At=>{var Dt,Lt;const jt=At.split(n.delimiter).filter(hn=>hn&&hn!==At);if(n.max){const hn=n.max-((Lt=(Dt=n.modelValue)==null?void 0:Dt.length)!=null?Lt:0);jt.splice(hn)}return jt.length===1?jt[0]:jt},_e=At=>{if(le.value){V.value=void 0;return}if(!Pt.value){if(n.delimiter&&V.value){const Dt=pe(V.value);Dt.length&&he(Dt)}t(INPUT_EVENT,At.target.value)}},Ce=At=>{var Dt;if(Pt.value)return;switch(getEventCode(At)){case n.trigger:At.preventDefault(),At.stopPropagation(),Ie();break;case EVENT_CODE.numpadEnter:n.trigger===EVENT_CODE.enter&&(At.preventDefault(),At.stopPropagation(),Ie());break;case EVENT_CODE.backspace:!V.value&&((Dt=n.modelValue)!=null&&Dt.length)&&(At.preventDefault(),At.stopPropagation(),Ne(n.modelValue.length-1));break}},xe=At=>{if(Pt.value||!isAndroid())return;switch(getEventCode(At)){case EVENT_CODE.space:n.trigger===EVENT_CODE.space&&(At.preventDefault(),At.stopPropagation(),Ie());break}},Ie=()=>{var At;const Dt=(At=V.value)==null?void 0:At.trim();!Dt||le.value||he(Dt)},Ne=At=>{var Dt;const Lt=((Dt=n.modelValue)!=null?Dt:[]).slice(),[jt]=Lt.splice(At,1);t(UPDATE_MODEL_EVENT,Lt),t(CHANGE_EVENT,Lt),t("remove-tag",jt,At)},Oe=()=>{V.value=void 0,t(UPDATE_MODEL_EVENT,void 0),t(CHANGE_EVENT,void 0),t("clear")},$e=(At,Dt,Lt)=>{var jt;const hn=((jt=n.modelValue)!=null?jt:[]).slice(),[vn]=hn.splice(At,1),_n=Dt>At&&Lt==="before"?-1:Dt{var At;(At=$.value)==null||At.focus()},Ue=()=>{var At;(At=$.value)==null||At.blur()},{wrapperRef:Fe,isFocused:ze}=useFocusController($,{disabled:i,beforeBlur(At){var Dt;return(Dt=re.value)==null?void 0:Dt.isFocusInsideContent(At)},afterBlur(){var At;n.saveOnBlur?Ie():V.value=void 0,n.validateEvent&&((At=r==null?void 0:r.validate)==null||At.call(r,"blur").catch(Dt=>void 0))}}),{isComposing:Pt,handleCompositionStart:qe,handleCompositionUpdate:Et,handleCompositionEnd:kt}=useComposition({afterComposition:_e});return watch(()=>n.modelValue,()=>{var At;n.validateEvent&&((At=r==null?void 0:r.validate)==null||At.call(r,CHANGE_EVENT).catch(Dt=>void 0))}),{inputRef:$,wrapperRef:Fe,tagTooltipRef:re,isFocused:ze,isComposing:Pt,inputValue:V,size:g,tagSize:ie,placeholder:ae,closable:oe,disabled:i,inputLimit:le,showTagList:ue,collapseTagList:de,handleDragged:$e,handleInput:_e,handleKeydown:Ce,handleKeyup:xe,handleAddTag:Ie,handleRemoveTag:Ne,handleClear:Oe,handleCompositionStart:qe,handleCompositionUpdate:Et,handleCompositionEnd:kt,focus:Ve,blur:Ue}}function useHovering(){const n=ref(!1);return{hovering:n,handleMouseEnter:()=>{n.value=!0},handleMouseLeave:()=>{n.value=!1}}}function useDragTag({wrapperRef:n,handleDragged:t,afterDragged:r}){const i=useNamespace("input-tag"),g=shallowRef(),$=ref(!1);let V,re,ie,ae;function oe(he){return`.${i.e("inner")} .${i.namespace.value}-tag:nth-child(${he+1})`}function le(he,pe){V=pe,re=n.value.querySelector(oe(pe)),re&&(re.style.opacity="0.5"),he.dataTransfer.effectAllowed="move"}function ue(he,pe){if(ie=pe,he.preventDefault(),he.dataTransfer.dropEffect="move",isUndefined$1(V)||V===pe){$.value=!1;return}const _e=n.value.querySelector(oe(pe)).getBoundingClientRect(),Ce=V+1!==pe,xe=V-1!==pe,Ie=he.clientX-_e.left,Ne=Ce?xe?.5:1:-1,Oe=xe?Ce?.5:0:1;Ie<=_e.width*Ne?ae="before":Ie>_e.width*Oe?ae="after":ae=void 0;const $e=n.value.querySelector(`.${i.e("inner")}`),Ve=$e.getBoundingClientRect(),Ue=Number.parseFloat(getStyle$1($e,"gap"))/2,Fe=_e.top-Ve.top;let ze=-9999;if(ae==="before")ze=Math.max(_e.left-Ve.left-Ue,Math.floor(-Ue/2));else if(ae==="after"){const Pt=_e.right-Ve.left;ze=Pt+(Ve.width===Pt?Math.floor(Ue/2):Ue)}setStyle(g.value,{top:`${Fe}px`,left:`${ze}px`}),$.value=!!ae}function de(he){he.preventDefault(),re&&(re.style.opacity=""),ae&&!isUndefined$1(V)&&!isUndefined$1(ie)&&V!==ie&&t(V,ie,ae),$.value=!1,V=void 0,re=null,ie=void 0,ae=void 0,r==null||r()}return{dropIndicatorRef:g,showDropIndicator:$,handleDragStart:le,handleDragOver:ue,handleDragEnd:de}}function useInputTagDom({props:n,isFocused:t,hovering:r,disabled:i,inputValue:g,size:$,validateState:V,validateIcon:re,needStatusIcon:ie}){const ae=useAttrs$1(),oe=useSlots(),le=useNamespace("input-tag"),ue=useNamespace("input"),de=ref(),he=ref(),pe=computed(()=>[le.b(),le.is("focused",t.value),le.is("hovering",r.value),le.is("disabled",i.value),le.m($.value),le.e("wrapper"),ae.class]),_e=computed(()=>[ae.style]),Ce=computed(()=>{var Fe,ze;return[le.e("inner"),le.is("draggable",n.draggable),le.is("left-space",!((Fe=n.modelValue)!=null&&Fe.length)&&!oe.prefix),le.is("right-space",!((ze=n.modelValue)!=null&&ze.length)&&!Ie.value)]}),xe=computed(()=>{var Fe;return n.clearable&&!i.value&&!n.readonly&&(((Fe=n.modelValue)==null?void 0:Fe.length)||g.value)&&(t.value||r.value)}),Ie=computed(()=>oe.suffix||xe.value||V.value&&re.value&&ie.value),Ne=reactive({innerWidth:0,collapseItemWidth:0}),Oe=()=>{if(!he.value)return 0;const Fe=window.getComputedStyle(he.value);return Number.parseFloat(Fe.gap||"6px")},$e=()=>{Ne.innerWidth=Number.parseFloat(window.getComputedStyle(he.value).width)},Ve=()=>{Ne.collapseItemWidth=de.value.getBoundingClientRect().width},Ue=computed(()=>{if(!n.collapseTags)return{};const Fe=Oe(),ze=Fe+MINIMUM_INPUT_WIDTH,Pt=de.value&&n.maxCollapseTags===1?Ne.innerWidth-Ne.collapseItemWidth-Fe-ze:Ne.innerWidth-ze;return{maxWidth:`${Math.max(Pt,0)}px`}});return useResizeObserver(he,$e),useResizeObserver(de,Ve),{ns:le,nsInput:ue,containerKls:pe,containerStyle:_e,innerKls:Ce,showClear:xe,showSuffix:Ie,tagStyle:Ue,collapseItemRef:de,innerRef:he}}const _hoisted_1$V=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],_hoisted_2$C=["textContent"],_sfc_main$1w=defineComponent({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:inputTagProps,emits:inputTagEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useAttrs(),V=useSlots(),{form:re,formItem:ie}=useFormItem(),{inputId:ae}=useFormItemInputId(i,{formItemContext:ie}),oe=computed(()=>{var Qn;return(Qn=re==null?void 0:re.statusIcon)!=null?Qn:!1}),le=computed(()=>(ie==null?void 0:ie.validateState)||""),ue=computed(()=>le.value&&ValidateComponentsMap[le.value]),{inputRef:de,wrapperRef:he,tagTooltipRef:pe,isFocused:_e,inputValue:Ce,size:xe,tagSize:Ie,placeholder:Ne,closable:Oe,disabled:$e,showTagList:Ve,collapseTagList:Ue,handleDragged:Fe,handleInput:ze,handleKeydown:Pt,handleKeyup:qe,handleRemoveTag:Et,handleClear:kt,handleCompositionStart:At,handleCompositionUpdate:Dt,handleCompositionEnd:Lt,focus:jt,blur:hn}=useInputTag({props:i,emit:g,formItem:ie}),{hovering:vn,handleMouseEnter:_n,handleMouseLeave:wn}=useHovering(),{calculatorRef:bn,inputStyle:Cn}=useCalcInputWidth(),{dropIndicatorRef:Sn,showDropIndicator:Tn,handleDragStart:En,handleDragOver:kn,handleDragEnd:$n}=useDragTag({wrapperRef:he,handleDragged:Fe,afterDragged:jt}),{ns:An,nsInput:xn,containerKls:Ln,containerStyle:Nn,innerKls:Pn,showClear:On,showSuffix:Hn,tagStyle:Xn,collapseItemRef:In,innerRef:or}=useInputTagDom({props:i,hovering:vn,isFocused:_e,inputValue:Ce,disabled:$e,size:xe,validateState:le,validateIcon:ue,needStatusIcon:oe});return t({focus:jt,blur:hn}),(Qn,Zn)=>(openBlock(),createElementBlock("div",{ref_key:"wrapperRef",ref:he,class:normalizeClass(unref(Ln)),style:normalizeStyle$1(unref(Nn)),onMouseenter:Zn[8]||(Zn[8]=(...Gn)=>unref(_n)&&unref(_n)(...Gn)),onMouseleave:Zn[9]||(Zn[9]=(...Gn)=>unref(wn)&&unref(wn)(...Gn))},[unref(V).prefix?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(An).e("prefix"))},[renderSlot(Qn.$slots,"prefix")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{ref_key:"innerRef",ref:or,class:normalizeClass(unref(Pn))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ve),(Gn,Rn)=>(openBlock(),createBlock(unref(ElTag),{key:Rn,size:unref(Ie),closable:unref(Oe),type:Qn.tagType,effect:Qn.tagEffect,draggable:unref(Oe)&&Qn.draggable,style:normalizeStyle$1(unref(Xn)),"disable-transitions":"",onClose:Mn=>unref(Et)(Rn),onDragstart:Mn=>unref(En)(Mn,Rn),onDragover:Mn=>unref(kn)(Mn,Rn),onDragend:unref($n),onDrop:Zn[0]||(Zn[0]=withModifiers(()=>{},["stop"]))},{default:withCtx(()=>[renderSlot(Qn.$slots,"tag",{value:Gn,index:Rn},()=>[createTextVNode(toDisplayString(Gn),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),Qn.collapseTags&&Qn.modelValue&&Qn.modelValue.length>Qn.maxCollapseTags?(openBlock(),createBlock(unref(ElTooltip),{key:0,ref_key:"tagTooltipRef",ref:pe,disabled:!Qn.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:Qn.tagEffect,placement:"bottom"},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"collapseItemRef",ref:In},[createVNode$1(unref(ElTag),{closable:!1,size:unref(Ie),type:Qn.tagType,effect:Qn.tagEffect,"disable-transitions":""},{default:withCtx(()=>[createTextVNode(" + "+toDisplayString(Qn.modelValue.length-Qn.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],512)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(An).e("input-tag-list"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ue),(Gn,Rn)=>(openBlock(),createBlock(unref(ElTag),{key:Rn,size:unref(Ie),closable:unref(Oe),type:Qn.tagType,effect:Qn.tagEffect,"disable-transitions":"",onClose:Mn=>unref(Et)(Rn+Qn.maxCollapseTags)},{default:withCtx(()=>[renderSlot(Qn.$slots,"tag",{value:Gn,index:Rn+Qn.maxCollapseTags},()=>[createTextVNode(toDisplayString(Gn),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(An).e("input-wrapper"))},[withDirectives(createBaseVNode("input",mergeProps({id:unref(ae),ref_key:"inputRef",ref:de,"onUpdate:modelValue":Zn[1]||(Zn[1]=Gn=>isRef(Ce)?Ce.value=Gn:null)},unref($),{type:"text",minlength:Qn.minlength,maxlength:Qn.maxlength,disabled:unref($e),readonly:Qn.readonly,autocomplete:Qn.autocomplete,tabindex:Qn.tabindex,placeholder:unref(Ne),autofocus:Qn.autofocus,ariaLabel:Qn.ariaLabel,class:unref(An).e("input"),style:unref(Cn),onCompositionstart:Zn[2]||(Zn[2]=(...Gn)=>unref(At)&&unref(At)(...Gn)),onCompositionupdate:Zn[3]||(Zn[3]=(...Gn)=>unref(Dt)&&unref(Dt)(...Gn)),onCompositionend:Zn[4]||(Zn[4]=(...Gn)=>unref(Lt)&&unref(Lt)(...Gn)),onInput:Zn[5]||(Zn[5]=(...Gn)=>unref(ze)&&unref(ze)(...Gn)),onKeydown:Zn[6]||(Zn[6]=(...Gn)=>unref(Pt)&&unref(Pt)(...Gn)),onKeyup:Zn[7]||(Zn[7]=(...Gn)=>unref(qe)&&unref(qe)(...Gn))}),null,16,_hoisted_1$V),[[vModelText,unref(Ce)]]),createBaseVNode("span",{ref_key:"calculatorRef",ref:bn,"aria-hidden":"true",class:normalizeClass(unref(An).e("input-calculator")),textContent:toDisplayString(unref(Ce))},null,10,_hoisted_2$C)],2),withDirectives(createBaseVNode("div",{ref_key:"dropIndicatorRef",ref:Sn,class:normalizeClass(unref(An).e("drop-indicator"))},null,2),[[vShow,unref(Tn)]])],2),unref(Hn)?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(An).e("suffix"))},[renderSlot(Qn.$slots,"suffix"),unref(On)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(An).e("icon"),unref(An).e("clear")]),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:unref(kt)},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Qn.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):createCommentVNode("v-if",!0),le.value&&ue.value&&oe.value?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(xn).e("icon"),unref(xn).e("validateIcon"),unref(xn).is("loading",le.value==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ue.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],38))}});var InputTag=_export_sfc(_sfc_main$1w,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-tag/src/input-tag.vue"]]);const ElInputTag=withInstall(InputTag),linkProps=buildProps({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:iconPropType}}),linkEmits={click:n=>n instanceof MouseEvent},_hoisted_1$U=["href","target"],_sfc_main$1v=defineComponent({name:"ElLink",__name:"link",props:linkProps,emits:linkEmits,setup(n,{emit:t}){const r=n,i=t,g=useGlobalConfig("link");useDeprecated({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},computed(()=>isBoolean$1(r.underline)));const $=useNamespace("link"),V=computed(()=>{var ae,oe,le;return[$.b(),$.m((le=(oe=r.type)!=null?oe:(ae=g.value)==null?void 0:ae.type)!=null?le:"default"),$.is("disabled",r.disabled),$.is("underline",re.value==="always"),$.is("hover-underline",re.value==="hover"&&!r.disabled)]}),re=computed(()=>{var ae,oe,le;return isBoolean$1(r.underline)?r.underline?"hover":"never":(le=(oe=r.underline)!=null?oe:(ae=g.value)==null?void 0:ae.underline)!=null?le:"hover"});function ie(ae){r.disabled||i("click",ae)}return(ae,oe)=>(openBlock(),createElementBlock("a",{class:normalizeClass(V.value),href:ae.disabled||!ae.href?void 0:ae.href,target:ae.disabled||!ae.href?void 0:ae.target,onClick:ie},[ae.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ae.icon)))]),_:1})):createCommentVNode("v-if",!0),ae.$slots.default?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref($).e("inner"))},[renderSlot(ae.$slots,"default")],2)):createCommentVNode("v-if",!0),ae.$slots.icon?renderSlot(ae.$slots,"icon",{key:2}):createCommentVNode("v-if",!0)],10,_hoisted_1$U))}});var Link=_export_sfc(_sfc_main$1v,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const ElLink=withInstall(Link);let SubMenu$1=class{constructor(t,r){this.parent=t,this.domNode=r,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,r=>{r.addEventListener("keydown",i=>{const g=getEventCode(i);let $=!1;switch(g){case EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),$=!0;break}case EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),$=!0;break}case EVENT_CODE.tab:{triggerEvent(t,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:case EVENT_CODE.space:{$=!0,i.currentTarget.click();break}}return $&&(i.preventDefault(),i.stopPropagation()),!1})})}},MenuItem$1=class{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new SubMenu$1(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{const r=getEventCode(t);let i=!1;switch(r){case EVENT_CODE.down:{triggerEvent(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),i=!0;break}case EVENT_CODE.up:{triggerEvent(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),i=!0;break}case EVENT_CODE.tab:{triggerEvent(t.currentTarget,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:case EVENT_CODE.space:{i=!0,t.currentTarget.click();break}}i&&t.preventDefault()})}},Menu$1=class{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(i=>{i.nodeType===1&&new MenuItem$1(i,t)})}};const _sfc_main$1u=defineComponent({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(n){const t=useNamespace("menu"),r={onBeforeEnter:i=>i.style.opacity="0.2",onEnter(i,g){addClass(i,`${t.namespace.value}-opacity-transition`),i.style.opacity="1",g()},onAfterEnter(i){removeClass(i,`${t.namespace.value}-opacity-transition`),i.style.opacity=""},onBeforeLeave(i){i.dataset||(i.dataset={}),hasClass(i,t.m("collapse"))?(removeClass(i,t.m("collapse")),i.dataset.oldOverflow=i.style.overflow,i.dataset.scrollWidth=i.clientWidth.toString(),addClass(i,t.m("collapse"))):(addClass(i,t.m("collapse")),i.dataset.oldOverflow=i.style.overflow,i.dataset.scrollWidth=i.clientWidth.toString(),removeClass(i,t.m("collapse"))),i.style.width=`${i.scrollWidth}px`,i.style.overflow="hidden"},onLeave(i){addClass(i,"horizontal-collapse-transition"),i.style.width=`${i.dataset.scrollWidth}px`}};return(i,g)=>(openBlock(),createBlock(Transition,mergeProps({mode:"out-in"},r),{default:withCtx(()=>[renderSlot(i.$slots,"default")]),_:3},16))}});var ElMenuCollapseTransition=_export_sfc(_sfc_main$1u,[["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function useMenu(n,t){const r=computed(()=>{let g=n.parent;const $=[t.value];for(;g.type.name!=="ElMenu";)g.props.index&&$.unshift(g.props.index),g=g.parent;return $});return{parentMenu:computed(()=>{let g=n.parent;for(;g&&!["ElMenu","ElSubMenu"].includes(g.type.name);)g=g.parent;return g}),indexPath:r}}function useMenuColor(n){return computed(()=>{const r=n.backgroundColor;return r?new TinyColor(r).shade(20).toString():""})}const useMenuCssVar=(n,t)=>{const r=useNamespace("menu");return computed(()=>r.cssVarBlock({"text-color":n.textColor||"","hover-text-color":n.textColor||"","bg-color":n.backgroundColor||"","hover-bg-color":useMenuColor(n).value||"","active-color":n.activeTextColor||"",level:`${t}`}))},MENU_INJECTION_KEY="rootMenu",SUB_MENU_INJECTION_KEY="subMenu:",subMenuProps=buildProps({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:definePropType([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:iconPropType},expandOpenIcon:{type:iconPropType},collapseCloseIcon:{type:iconPropType},collapseOpenIcon:{type:iconPropType}}),COMPONENT_NAME$b="ElSubMenu";var SubMenu=defineComponent({name:COMPONENT_NAME$b,props:subMenuProps,setup(n,{slots:t,expose:r}){const i=getCurrentInstance(),{indexPath:g,parentMenu:$}=useMenu(i,computed(()=>n.index)),V=useNamespace("menu"),re=useNamespace("sub-menu"),ie=inject(MENU_INJECTION_KEY);ie||throwError$1(COMPONENT_NAME$b,"can not inject root menu");const ae=inject(`${SUB_MENU_INJECTION_KEY}${$.value.uid}`);ae||throwError$1(COMPONENT_NAME$b,"can not inject sub menu");const oe=ref({}),le=ref({});let ue;const de=ref(!1),he=ref(),pe=ref(),_e=computed(()=>ae.level===0),Ce=computed(()=>Ue.value==="horizontal"&&_e.value?"bottom-start":"right-start"),xe=computed(()=>Ue.value==="horizontal"&&_e.value||Ue.value==="vertical"&&!ie.props.collapse?n.expandCloseIcon&&n.expandOpenIcon?$e.value?n.expandOpenIcon:n.expandCloseIcon:arrow_down_default:n.collapseCloseIcon&&n.collapseOpenIcon?$e.value?n.collapseOpenIcon:n.collapseCloseIcon:arrow_right_default),Ie=computed(()=>{const wn=n.teleported;return isUndefined$1(wn)?_e.value:wn}),Ne=computed(()=>ie.props.collapse?`${V.namespace.value}-zoom-in-left`:`${V.namespace.value}-zoom-in-top`),Oe=computed(()=>Ue.value==="horizontal"&&_e.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),$e=computed(()=>ie.openedMenus.includes(n.index)),Ve=computed(()=>[...Object.values(oe.value),...Object.values(le.value)].some(({active:wn})=>wn)),Ue=computed(()=>ie.props.mode),Fe=computed(()=>ie.props.persistent),ze=reactive({index:n.index,indexPath:g,active:Ve}),Pt=useMenuCssVar(ie.props,ae.level+1),qe=computed(()=>{var wn;return(wn=n.popperOffset)!=null?wn:ie.props.popperOffset}),Et=computed(()=>{var wn;return(wn=n.popperClass)!=null?wn:ie.props.popperClass}),kt=computed(()=>{var wn;return(wn=n.popperStyle)!=null?wn:ie.props.popperStyle}),At=computed(()=>{var wn;return(wn=n.showTimeout)!=null?wn:ie.props.showTimeout}),Dt=computed(()=>{var wn;return(wn=n.hideTimeout)!=null?wn:ie.props.hideTimeout}),Lt=()=>{var wn,bn,Cn;return(Cn=(bn=(wn=pe.value)==null?void 0:wn.popperRef)==null?void 0:bn.popperInstanceRef)==null?void 0:Cn.destroy()},jt=wn=>{wn||Lt()},hn=()=>{ie.props.menuTrigger==="hover"&&ie.props.mode==="horizontal"||ie.props.collapse&&ie.props.mode==="vertical"||n.disabled||ie.handleSubMenuClick({index:n.index,indexPath:g.value,active:Ve.value})},vn=(wn,bn=At.value)=>{var Cn;if(wn.type!=="focus"){if(ie.props.menuTrigger==="click"&&ie.props.mode==="horizontal"||!ie.props.collapse&&ie.props.mode==="vertical"||n.disabled){ae.mouseInChild.value=!0;return}ae.mouseInChild.value=!0,ue==null||ue(),{stop:ue}=useTimeoutFn(()=>{ie.openMenu(n.index,g.value)},bn),Ie.value&&((Cn=$.value.vnode.el)==null||Cn.dispatchEvent(new MouseEvent("mouseenter"))),wn.type==="mouseenter"&&wn.target&&nextTick(()=>{focusElement(wn.target,{preventScroll:!0})})}},_n=(wn=!1)=>{var bn;if(ie.props.menuTrigger==="click"&&ie.props.mode==="horizontal"||!ie.props.collapse&&ie.props.mode==="vertical"){ae.mouseInChild.value=!1;return}ue==null||ue(),ae.mouseInChild.value=!1,{stop:ue}=useTimeoutFn(()=>!de.value&&ie.closeMenu(n.index,g.value),Dt.value),Ie.value&&wn&&((bn=ae.handleMouseleave)==null||bn.call(ae,!0))};watch(()=>ie.props.collapse,wn=>jt(!!wn));{const wn=Cn=>{le.value[Cn.index]=Cn},bn=Cn=>{delete le.value[Cn.index]};provide(`${SUB_MENU_INJECTION_KEY}${i.uid}`,{addSubMenu:wn,removeSubMenu:bn,handleMouseleave:_n,mouseInChild:de,level:ae.level+1})}return r({opened:$e}),onMounted(()=>{ie.addSubMenu(ze),ae.addSubMenu(ze)}),onBeforeUnmount(()=>{ae.removeSubMenu(ze),ie.removeSubMenu(ze)}),()=>{var wn;const bn=[(wn=t.title)==null?void 0:wn.call(t),h$1(ElIcon,{class:re.e("icon-arrow"),style:{transform:$e.value?n.expandCloseIcon&&n.expandOpenIcon||n.collapseCloseIcon&&n.collapseOpenIcon&&ie.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>isString$2(xe.value)?h$1(i.appContext.components[xe.value]):h$1(xe.value)})],Cn=ie.isMenuPopup?h$1(ElTooltip,{ref:pe,visible:$e.value,effect:"light",pure:!0,offset:qe.value,showArrow:!1,persistent:Fe.value,popperClass:Et.value,popperStyle:kt.value,placement:Ce.value,teleported:Ie.value,fallbackPlacements:Oe.value,transition:Ne.value,gpuAcceleration:!1},{content:()=>{var Sn;return h$1("div",{class:[V.m(Ue.value),V.m("popup-container"),Et.value],onMouseenter:Tn=>vn(Tn,100),onMouseleave:()=>_n(!0),onFocus:Tn=>vn(Tn,100)},[h$1("ul",{class:[V.b(),V.m("popup"),V.m(`popup-${Ce.value}`)],style:Pt.value},[(Sn=t.default)==null?void 0:Sn.call(t)])])},default:()=>h$1("div",{class:re.e("title"),onClick:hn},bn)}):h$1(Fragment,{},[h$1("div",{class:re.e("title"),ref:he,onClick:hn},bn),h$1(ElCollapseTransition,{},{default:()=>{var Sn;return withDirectives(h$1("ul",{role:"menu",class:[V.b(),V.m("inline")],style:Pt.value},[(Sn=t.default)==null?void 0:Sn.call(t)]),[[vShow,$e.value]])}})]);return h$1("li",{class:[re.b(),re.is("active",Ve.value),re.is("opened",$e.value),re.is("disabled",n.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:$e.value,onMouseenter:vn,onMouseleave:()=>_n(),onFocus:vn},[Cn])}}});const menuProps=buildProps({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:definePropType(Array),default:()=>mutable([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:iconPropType,default:()=>more_default},popperEffect:{type:definePropType(String),default:"dark"},popperClass:String,popperStyle:{type:definePropType([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),checkIndexPath=n=>isArray$5(n)&&n.every(t=>isString$2(t)),menuEmits={close:(n,t)=>isString$2(n)&&checkIndexPath(t),open:(n,t)=>isString$2(n)&&checkIndexPath(t),select:(n,t,r,i)=>isString$2(n)&&checkIndexPath(t)&&isObject$6(r)&&(isUndefined$1(i)||i instanceof Promise)},DEFAULT_MORE_ITEM_WIDTH=64;var Menu=defineComponent({name:"ElMenu",props:menuProps,emits:menuEmits,setup(n,{emit:t,slots:r,expose:i}){const g=getCurrentInstance(),$=g.appContext.config.globalProperties.$router,V=ref(),re=ref(),ie=useNamespace("menu"),ae=useNamespace("sub-menu");let oe=DEFAULT_MORE_ITEM_WIDTH;const le=ref(-1),ue=ref(n.defaultOpeneds&&!n.collapse?n.defaultOpeneds.slice(0):[]),de=ref(n.defaultActive),he=ref({}),pe=ref({}),_e=computed(()=>n.mode==="horizontal"||n.mode==="vertical"&&n.collapse),Ce=()=>{const Lt=de.value&&he.value[de.value];if(!Lt||n.mode==="horizontal"||n.collapse)return;Lt.indexPath.forEach(hn=>{const vn=pe.value[hn];vn&&xe(hn,vn.indexPath)})},xe=(Lt,jt)=>{ue.value.includes(Lt)||(n.uniqueOpened&&(ue.value=ue.value.filter(hn=>jt.includes(hn))),ue.value.push(Lt),t("open",Lt,jt))},Ie=Lt=>{const jt=ue.value.indexOf(Lt);jt!==-1&&ue.value.splice(jt,1)},Ne=(Lt,jt)=>{Ie(Lt),t("close",Lt,jt)},Oe=({index:Lt,indexPath:jt})=>{ue.value.includes(Lt)?Ne(Lt,jt):xe(Lt,jt)},$e=Lt=>{(n.mode==="horizontal"||n.collapse)&&(ue.value=[]);const{index:jt,indexPath:hn}=Lt;if(!(isNil(jt)||isNil(hn)))if(n.router&&$){const vn=Lt.route||jt,_n=$.push(vn).then(wn=>(wn||(de.value=jt),wn));t("select",jt,hn,{index:jt,indexPath:hn,route:vn},_n)}else de.value=jt,t("select",jt,hn,{index:jt,indexPath:hn})},Ve=Lt=>{var jt;const hn=he.value,vn=hn[Lt]||de.value&&hn[de.value]||hn[n.defaultActive];de.value=(jt=vn==null?void 0:vn.index)!=null?jt:Lt},Ue=Lt=>{const jt=getComputedStyle(Lt),hn=Number.parseInt(jt.marginLeft,10),vn=Number.parseInt(jt.marginRight,10);return Lt.offsetWidth+hn+vn||0},Fe=()=>{if(!V.value)return-1;const Lt=Array.from(V.value.childNodes).filter(Cn=>Cn.nodeName!=="#comment"&&(Cn.nodeName!=="#text"||Cn.nodeValue)),jt=getComputedStyle(V.value),hn=Number.parseInt(jt.paddingLeft,10),vn=Number.parseInt(jt.paddingRight,10),_n=V.value.clientWidth-hn-vn;let wn=0,bn=0;return Lt.forEach((Cn,Sn)=>{wn+=Ue(Cn),wn<=_n-oe&&(bn=Sn+1)}),bn===Lt.length?-1:bn},ze=Lt=>pe.value[Lt].indexPath,Pt=(Lt,jt=33.34)=>{let hn;return()=>{hn&&clearTimeout(hn),hn=setTimeout(()=>{Lt()},jt)}};let qe=!0;const Et=()=>{const Lt=unrefElement(re);if(Lt&&(oe=Ue(Lt)||DEFAULT_MORE_ITEM_WIDTH),le.value===Fe())return;const jt=()=>{le.value=-1,nextTick(()=>{le.value=Fe()})};qe?jt():Pt(jt)(),qe=!1};watch(()=>n.defaultActive,Lt=>{he.value[Lt]||(de.value=""),Ve(Lt)}),watch(()=>n.collapse,Lt=>{Lt&&(ue.value=[])}),watch(he.value,Ce);let kt;watchEffect(()=>{n.mode==="horizontal"&&n.ellipsis?kt=useResizeObserver(V,Et).stop:kt==null||kt()});const At=ref(!1);{const Lt=_n=>{pe.value[_n.index]=_n},jt=_n=>{delete pe.value[_n.index]};provide(MENU_INJECTION_KEY,reactive({props:n,openedMenus:ue,items:he,subMenus:pe,activeIndex:de,isMenuPopup:_e,addMenuItem:_n=>{he.value[_n.index]=_n},removeMenuItem:_n=>{delete he.value[_n.index]},addSubMenu:Lt,removeSubMenu:jt,openMenu:xe,closeMenu:Ne,handleMenuItemClick:$e,handleSubMenuClick:Oe})),provide(`${SUB_MENU_INJECTION_KEY}${g.uid}`,{addSubMenu:Lt,removeSubMenu:jt,mouseInChild:At,level:0})}onMounted(()=>{n.mode==="horizontal"&&new Menu$1(g.vnode.el,ie.namespace.value)}),i({open:jt=>{const{indexPath:hn}=pe.value[jt];hn.forEach(vn=>xe(vn,hn))},close:Ie,updateActiveIndex:Ve,handleResize:Et});const Dt=useMenuCssVar(n,0);return()=>{var Lt,jt;let hn=(jt=(Lt=r.default)==null?void 0:Lt.call(r))!=null?jt:[];const vn=[];if(n.mode==="horizontal"&&V.value){const bn=flattedChildren(hn).filter(Tn=>(Tn==null?void 0:Tn.shapeFlag)!==8),Cn=le.value===-1?bn:bn.slice(0,le.value),Sn=le.value===-1?[]:bn.slice(le.value);Sn!=null&&Sn.length&&n.ellipsis&&(hn=Cn,vn.push(h$1(SubMenu,{ref:re,index:"sub-menu-more",class:ae.e("hide-arrow"),popperOffset:n.popperOffset},{title:()=>h$1(ElIcon,{class:ae.e("icon-more")},{default:()=>h$1(n.ellipsisIcon)}),default:()=>Sn})))}const _n=n.closeOnClickOutside?[[ClickOutside,()=>{ue.value.length&&(At.value||(ue.value.forEach(bn=>t("close",bn,ze(bn))),ue.value=[]))}]]:[],wn=withDirectives(h$1("ul",{key:String(n.collapse),role:"menubar",ref:V,style:Dt.value,class:{[ie.b()]:!0,[ie.m(n.mode)]:!0,[ie.m("collapse")]:n.collapse}},[...hn,...vn]),_n);return n.collapseTransition&&n.mode==="vertical"?h$1(ElMenuCollapseTransition,()=>wn):wn}}});const menuItemProps=buildProps({index:{type:definePropType([String,null]),default:null},route:{type:definePropType([String,Object])},disabled:Boolean}),menuItemEmits={click:n=>isString$2(n.index)&&isArray$5(n.indexPath)},COMPONENT_NAME$a="ElMenuItem",_sfc_main$1t=defineComponent({name:COMPONENT_NAME$a,__name:"menu-item",props:menuItemProps,emits:menuItemEmits,setup(n,{expose:t,emit:r}){const i=n,g=r;isPropAbsent(i.index)&&void 0;const $=getCurrentInstance(),V=inject(MENU_INJECTION_KEY),re=useNamespace("menu"),ie=useNamespace("menu-item");V||throwError$1(COMPONENT_NAME$a,"can not inject root menu");const{parentMenu:ae,indexPath:oe}=useMenu($,toRef$1(i,"index")),le=inject(`${SUB_MENU_INJECTION_KEY}${ae.value.uid}`);le||throwError$1(COMPONENT_NAME$a,"can not inject sub menu");const ue=computed(()=>i.index===V.activeIndex),de=reactive({index:i.index,indexPath:oe,active:ue}),he=()=>{i.disabled||(V.handleMenuItemClick({index:i.index,indexPath:oe.value,route:i.route}),g("click",de))};return onMounted(()=>{le.addSubMenu(de),V.addMenuItem(de)}),onBeforeUnmount(()=>{le.removeSubMenu(de),V.removeMenuItem(de)}),t({parentMenu:ae,rootMenu:V,active:ue,nsMenu:re,nsMenuItem:ie,handleClick:he}),(pe,_e)=>(openBlock(),createElementBlock("li",{class:normalizeClass([unref(ie).b(),unref(ie).is("active",ue.value),unref(ie).is("disabled",pe.disabled)]),role:"menuitem",tabindex:"-1",onClick:he},[unref(ae).type.name==="ElMenu"&&unref(V).props.collapse&&pe.$slots.title?(openBlock(),createBlock(unref(ElTooltip),{key:0,effect:unref(V).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":unref(V).props.popperClass,"popper-style":unref(V).props.popperStyle,persistent:unref(V).props.persistent,"focus-on-target":""},{content:withCtx(()=>[renderSlot(pe.$slots,"title")]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(re).be("tooltip","trigger"))},[renderSlot(pe.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(openBlock(),createElementBlock(Fragment,{key:1},[renderSlot(pe.$slots,"default"),renderSlot(pe.$slots,"title")],64))],2))}});var MenuItem=_export_sfc(_sfc_main$1t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const menuItemGroupProps={title:String},_sfc_main$1s=defineComponent({name:"ElMenuItemGroup",__name:"menu-item-group",props:menuItemGroupProps,setup(n){const t=useNamespace("menu-item-group");return(r,i)=>(openBlock(),createElementBlock("li",{class:normalizeClass(unref(t).b())},[createBaseVNode("div",{class:normalizeClass(unref(t).e("title"))},[r.$slots.title?renderSlot(r.$slots,"title",{key:1}):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(r.title),1)],64))],2),createBaseVNode("ul",null,[renderSlot(r.$slots,"default")])],2))}});var MenuItemGroup=_export_sfc(_sfc_main$1s,[["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const ElMenu=withInstall(Menu,{MenuItem,MenuItemGroup,SubMenu}),ElMenuItem=withNoopInstall(MenuItem),ElMenuItemGroup=withNoopInstall(MenuItemGroup),ElSubMenu=withNoopInstall(SubMenu),pageHeaderProps=buildProps({icon:{type:iconPropType,default:()=>back_default},title:String,content:{type:String,default:""}}),pageHeaderEmits={back:()=>!0},_hoisted_1$T=["aria-label"],_sfc_main$1r=defineComponent({name:"ElPageHeader",__name:"page-header",props:pageHeaderProps,emits:pageHeaderEmits,setup(n,{emit:t}){const r=t,{t:i}=useLocale(),g=useNamespace("page-header");function $(){r("back")}return(V,re)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(g).b(),unref(g).is("contentful",!!V.$slots.default),{[unref(g).m("has-breadcrumb")]:!!V.$slots.breadcrumb,[unref(g).m("has-extra")]:!!V.$slots.extra}])},[V.$slots.breadcrumb?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(g).e("breadcrumb"))},[renderSlot(V.$slots,"breadcrumb")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(g).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(g).e("left"))},[createBaseVNode("div",{class:normalizeClass(unref(g).e("back")),role:"button",tabindex:"0",onClick:$},[V.icon||V.$slots.icon?(openBlock(),createElementBlock("div",{key:0,"aria-label":V.title||unref(i)("el.pageHeader.title"),class:normalizeClass(unref(g).e("icon"))},[renderSlot(V.$slots,"icon",{},()=>[V.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(V.icon)))]),_:1})):createCommentVNode("v-if",!0)])],10,_hoisted_1$T)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(g).e("title"))},[renderSlot(V.$slots,"title",{},()=>[createTextVNode(toDisplayString(V.title||unref(i)("el.pageHeader.title")),1)])],2)],2),createVNode$1(unref(ElDivider),{direction:"vertical"}),createBaseVNode("div",{class:normalizeClass(unref(g).e("content"))},[renderSlot(V.$slots,"content",{},()=>[createTextVNode(toDisplayString(V.content),1)])],2)],2),V.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(g).e("extra"))},[renderSlot(V.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2),V.$slots.default?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(g).e("main"))},[renderSlot(V.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var PageHeader=_export_sfc(_sfc_main$1r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const ElPageHeader=withInstall(PageHeader),elPaginationKey=Symbol("elPaginationKey"),paginationPrevProps=buildProps({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:iconPropType}}),paginationPrevEmits={click:n=>n instanceof MouseEvent},_hoisted_1$S=["disabled","aria-label","aria-disabled"],_hoisted_2$B={key:0},_sfc_main$1q=defineComponent({name:"ElPaginationPrev",__name:"prev",props:paginationPrevProps,emits:paginationPrevEmits,setup(n){const t=n,{t:r}=useLocale(),i=computed(()=>t.disabled||t.currentPage<=1);return(g,$)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-prev",disabled:i.value,"aria-label":g.prevText||unref(r)("el.pagination.prev"),"aria-disabled":i.value,onClick:$[0]||($[0]=V=>g.$emit("click",V))},[g.prevText?(openBlock(),createElementBlock("span",_hoisted_2$B,toDisplayString(g.prevText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(g.prevIcon)))]),_:1}))],8,_hoisted_1$S))}});var Prev=_export_sfc(_sfc_main$1q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const paginationNextProps=buildProps({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:iconPropType}}),_hoisted_1$R=["disabled","aria-label","aria-disabled"],_hoisted_2$A={key:0},_sfc_main$1p=defineComponent({name:"ElPaginationNext",__name:"next",props:paginationNextProps,emits:["click"],setup(n){const t=n,{t:r}=useLocale(),i=computed(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(g,$)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-next",disabled:i.value,"aria-label":g.nextText||unref(r)("el.pagination.next"),"aria-disabled":i.value,onClick:$[0]||($[0]=V=>g.$emit("click",V))},[g.nextText?(openBlock(),createElementBlock("span",_hoisted_2$A,toDisplayString(g.nextText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(g.nextIcon)))]),_:1}))],8,_hoisted_1$R))}});var Next=_export_sfc(_sfc_main$1p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const usePagination=()=>inject(elPaginationKey,{}),paginationSizesProps=buildProps({pageSize:{type:Number,required:!0},pageSizes:{type:definePropType(Array),default:()=>mutable([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:definePropType([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:componentSizes},appendSizeTo:String}),_sfc_main$1o=defineComponent({name:"ElPaginationSizes",__name:"sizes",props:paginationSizesProps,emits:["page-size-change"],setup(n,{emit:t}){const r=n,i=t,{t:g}=useLocale(),$=useNamespace("pagination"),V=usePagination(),re=ref(r.pageSize);watch(()=>r.pageSizes,(oe,le)=>{if(!isEqual$1(oe,le)&&isArray$5(oe)){const ue=oe.includes(r.pageSize)?r.pageSize:r.pageSizes[0];i("page-size-change",ue)}}),watch(()=>r.pageSize,oe=>{re.value=oe});const ie=computed(()=>r.pageSizes);function ae(oe){var le;oe!==re.value&&(re.value=oe,(le=V.handleSizeChange)==null||le.call(V,Number(oe)))}return(oe,le)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref($).e("sizes"))},[createVNode$1(unref(ElSelect),{"model-value":re.value,disabled:oe.disabled,"popper-class":oe.popperClass,"popper-style":oe.popperStyle,size:oe.size,teleported:oe.teleported,"validate-event":!1,"append-to":oe.appendSizeTo,onChange:ae},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(ie.value,ue=>(openBlock(),createBlock(unref(ElOption),{key:ue,value:ue,label:ue+unref(g)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}});var Sizes=_export_sfc(_sfc_main$1o,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const paginationJumperProps=buildProps({size:{type:String,values:componentSizes}}),_hoisted_1$Q=["disabled"],_sfc_main$1n=defineComponent({name:"ElPaginationJumper",__name:"jumper",props:paginationJumperProps,setup(n){const{t}=useLocale(),r=useNamespace("pagination"),{pageCount:i,disabled:g,currentPage:$,changeEvent:V}=usePagination(),re=ref(),ie=computed(()=>{var le;return(le=re.value)!=null?le:$==null?void 0:$.value});function ae(le){re.value=le?+le:""}function oe(le){le=Math.trunc(+le),V==null||V(le),re.value=void 0}return(le,ue)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(r).e("jump")),disabled:unref(g)},[createBaseVNode("span",{class:normalizeClass([unref(r).e("goto")])},toDisplayString(unref(t)("el.pagination.goto")),3),createVNode$1(unref(ElInput),{size:le.size,class:normalizeClass([unref(r).e("editor"),unref(r).is("in-pagination")]),min:1,max:unref(i),disabled:unref(g),"model-value":ie.value,"validate-event":!1,"aria-label":unref(t)("el.pagination.page"),type:"number","onUpdate:modelValue":ae,onChange:oe},null,8,["size","class","max","disabled","model-value","aria-label"]),createBaseVNode("span",{class:normalizeClass([unref(r).e("classifier")])},toDisplayString(unref(t)("el.pagination.pageClassifier")),3)],10,_hoisted_1$Q))}});var Jumper=_export_sfc(_sfc_main$1n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const paginationTotalProps=buildProps({total:{type:Number,default:1e3}}),_hoisted_1$P=["disabled"],_sfc_main$1m=defineComponent({name:"ElPaginationTotal",__name:"total",props:paginationTotalProps,setup(n){const{t}=useLocale(),r=useNamespace("pagination"),{disabled:i}=usePagination();return(g,$)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(r).e("total")),disabled:unref(i)},toDisplayString(unref(t)("el.pagination.total",{total:g.total})),11,_hoisted_1$P))}});var Total=_export_sfc(_sfc_main$1m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const paginationPagerProps=buildProps({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),_hoisted_1$O=["aria-current","aria-label","tabindex"],_hoisted_2$z=["tabindex","aria-label"],_hoisted_3$f=["aria-current","aria-label","tabindex"],_hoisted_4$b=["tabindex","aria-label"],_hoisted_5$4=["aria-current","aria-label","tabindex"],_sfc_main$1l=defineComponent({name:"ElPaginationPager",__name:"pager",props:paginationPagerProps,emits:[CHANGE_EVENT],setup(n,{emit:t}){const r=n,i=t,g=useNamespace("pager"),$=useNamespace("icon"),{t:V}=useLocale(),re=ref(!1),ie=ref(!1),ae=ref(!1),oe=ref(!1),le=ref(!1),ue=ref(!1),de=computed(()=>{const Oe=r.pagerCount,$e=(Oe-1)/2,Ve=Number(r.currentPage),Ue=Number(r.pageCount);let Fe=!1,ze=!1;Ue>Oe&&(Ve>Oe-$e&&(Fe=!0),Ve["more","btn-quickprev",$.b(),g.is("disabled",r.disabled)]),pe=computed(()=>["more","btn-quicknext",$.b(),g.is("disabled",r.disabled)]),_e=computed(()=>r.disabled?-1:0);watch(()=>[r.pageCount,r.pagerCount,r.currentPage],([Oe,$e,Ve])=>{const Ue=($e-1)/2;let Fe=!1,ze=!1;Oe>$e&&(Fe=Ve>$e-Ue,ze=VeUe&&(Ve=Ue)),Ve!==Fe&&i(CHANGE_EVENT,Ve)}return(Oe,$e)=>(openBlock(),createElementBlock("ul",{class:normalizeClass(unref(g).b()),onClick:Ne,onKeyup:withKeys(Ie,["enter"])},[Oe.pageCount>0?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass([[unref(g).is("active",Oe.currentPage===1),unref(g).is("disabled",Oe.disabled)],"number"]),"aria-current":Oe.currentPage===1,"aria-label":unref(V)("el.pagination.currentPage",{pager:1}),tabindex:_e.value}," 1 ",10,_hoisted_1$O)):createCommentVNode("v-if",!0),re.value?(openBlock(),createElementBlock("li",{key:1,class:normalizeClass(he.value),tabindex:_e.value,"aria-label":unref(V)("el.pagination.prevPages",{pager:Oe.pagerCount-2}),onMouseenter:$e[0]||($e[0]=Ve=>Ce(!0)),onMouseleave:$e[1]||($e[1]=Ve=>ae.value=!1),onFocus:$e[2]||($e[2]=Ve=>xe(!0)),onBlur:$e[3]||($e[3]=Ve=>le.value=!1)},[(ae.value||le.value)&&!Oe.disabled?(openBlock(),createBlock(unref(d_arrow_left_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_2$z)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(de.value,Ve=>(openBlock(),createElementBlock("li",{key:Ve,class:normalizeClass([[unref(g).is("active",Oe.currentPage===Ve),unref(g).is("disabled",Oe.disabled)],"number"]),"aria-current":Oe.currentPage===Ve,"aria-label":unref(V)("el.pagination.currentPage",{pager:Ve}),tabindex:_e.value},toDisplayString(Ve),11,_hoisted_3$f))),128)),ie.value?(openBlock(),createElementBlock("li",{key:2,class:normalizeClass(pe.value),tabindex:_e.value,"aria-label":unref(V)("el.pagination.nextPages",{pager:Oe.pagerCount-2}),onMouseenter:$e[4]||($e[4]=Ve=>Ce()),onMouseleave:$e[5]||($e[5]=Ve=>oe.value=!1),onFocus:$e[6]||($e[6]=Ve=>xe()),onBlur:$e[7]||($e[7]=Ve=>ue.value=!1)},[(oe.value||ue.value)&&!Oe.disabled?(openBlock(),createBlock(unref(d_arrow_right_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_4$b)):createCommentVNode("v-if",!0),Oe.pageCount>1?(openBlock(),createElementBlock("li",{key:3,class:normalizeClass([[unref(g).is("active",Oe.currentPage===Oe.pageCount),unref(g).is("disabled",Oe.disabled)],"number"]),"aria-current":Oe.currentPage===Oe.pageCount,"aria-label":unref(V)("el.pagination.currentPage",{pager:Oe.pageCount}),tabindex:_e.value},toDisplayString(Oe.pageCount),11,_hoisted_5$4)):createCommentVNode("v-if",!0)],34))}});var Pager=_export_sfc(_sfc_main$1l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const isAbsent=n=>typeof n!="number",paginationProps=buildProps({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:n=>isNumber$2(n)&&Math.trunc(n)===n&&n>4&&n<22&&n%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:definePropType(Array),default:()=>mutable([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:definePropType([String,Object])},prevText:{type:String,default:""},prevIcon:{type:iconPropType,default:()=>arrow_left_default},nextText:{type:String,default:""},nextIcon:{type:iconPropType,default:()=>arrow_right_default},teleported:{type:Boolean,default:!0},small:Boolean,size:useSizeProp,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),paginationEmits={"update:current-page":n=>isNumber$2(n),"update:page-size":n=>isNumber$2(n),"size-change":n=>isNumber$2(n),change:(n,t)=>isNumber$2(n)&&isNumber$2(t),"current-change":n=>isNumber$2(n),"prev-click":n=>isNumber$2(n),"next-click":n=>isNumber$2(n)},componentName="ElPagination";var Pagination=defineComponent({name:componentName,props:paginationProps,emits:paginationEmits,setup(n,{emit:t,slots:r}){const{t:i}=useLocale(),g=useNamespace("pagination"),$=getCurrentInstance().vnode.props||{},V=useGlobalSize(),re=computed(()=>{var Oe;return n.small?"small":(Oe=n.size)!=null?Oe:V.value});useDeprecated({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},computed(()=>!!n.small));const ie="onUpdate:currentPage"in $||"onUpdate:current-page"in $||"onCurrentChange"in $,ae="onUpdate:pageSize"in $||"onUpdate:page-size"in $||"onSizeChange"in $,oe=computed(()=>{if(isAbsent(n.total)&&isAbsent(n.pageCount)||!isAbsent(n.currentPage)&&!ie)return!1;if(n.layout.includes("sizes")){if(isAbsent(n.pageCount)){if(!isAbsent(n.total)&&!isAbsent(n.pageSize)&&!ae)return!1}else if(!ae)return!1}return!0}),le=ref(isAbsent(n.defaultPageSize)?10:n.defaultPageSize),ue=ref(isAbsent(n.defaultCurrentPage)?1:n.defaultCurrentPage),de=computed({get(){return isAbsent(n.pageSize)?le.value:n.pageSize},set(Oe){isAbsent(n.pageSize)&&(le.value=Oe),ae&&(t("update:page-size",Oe),t("size-change",Oe))}}),he=computed(()=>{let Oe=0;return isAbsent(n.pageCount)?isAbsent(n.total)||(Oe=Math.max(1,Math.ceil(n.total/de.value))):Oe=n.pageCount,Oe}),pe=computed({get(){return isAbsent(n.currentPage)?ue.value:n.currentPage},set(Oe){let $e=Oe;Oe<1?$e=1:Oe>he.value&&($e=he.value),isAbsent(n.currentPage)&&(ue.value=$e),ie&&(t("update:current-page",$e),t("current-change",$e))}});watch(he,Oe=>{pe.value>Oe&&(pe.value=Oe)}),watch([pe,de],Oe=>{t(CHANGE_EVENT,...Oe)},{flush:"post"});function _e(Oe){pe.value=Oe}function Ce(Oe){de.value=Oe;const $e=he.value;pe.value>$e&&(pe.value=$e)}function xe(){n.disabled||(pe.value-=1,t("prev-click",pe.value))}function Ie(){n.disabled||(pe.value+=1,t("next-click",pe.value))}function Ne(Oe,$e){Oe&&(Oe.props||(Oe.props={}),Oe.props.class=[Oe.props.class,$e].join(" "))}return provide(elPaginationKey,{pageCount:he,disabled:computed(()=>n.disabled),currentPage:pe,changeEvent:_e,handleSizeChange:Ce}),()=>{var Oe,$e;if(!oe.value)return i("el.pagination.deprecationWarning"),null;if(!n.layout||n.hideOnSinglePage&&he.value<=1)return null;const Ve=[],Ue=[],Fe=h$1("div",{class:g.e("rightwrapper")},Ue),ze={prev:h$1(Prev,{disabled:n.disabled,currentPage:pe.value,prevText:n.prevText,prevIcon:n.prevIcon,onClick:xe}),jumper:h$1(Jumper,{size:re.value}),pager:h$1(Pager,{currentPage:pe.value,pageCount:he.value,pagerCount:n.pagerCount,onChange:_e,disabled:n.disabled}),next:h$1(Next,{disabled:n.disabled,currentPage:pe.value,pageCount:he.value,nextText:n.nextText,nextIcon:n.nextIcon,onClick:Ie}),sizes:h$1(Sizes,{pageSize:de.value,pageSizes:n.pageSizes,popperClass:n.popperClass,popperStyle:n.popperStyle,disabled:n.disabled,teleported:n.teleported,size:re.value,appendSizeTo:n.appendSizeTo}),slot:($e=(Oe=r==null?void 0:r.default)==null?void 0:Oe.call(r))!=null?$e:null,total:h$1(Total,{total:isAbsent(n.total)?0:n.total})},Pt=n.layout.split(",").map(Et=>Et.trim());let qe=!1;return Pt.forEach(Et=>{if(Et==="->"){qe=!0;return}qe?Ue.push(ze[Et]):Ve.push(ze[Et])}),Ne(Ve[0],g.is("first")),Ne(Ve[Ve.length-1],g.is("last")),qe&&Ue.length>0&&(Ne(Ue[0],g.is("first")),Ne(Ue[Ue.length-1],g.is("last")),Ve.push(Fe)),h$1("div",{class:[g.b(),g.is("background",n.background),g.m(re.value)]},Ve)}}});const ElPagination=withInstall(Pagination),popconfirmProps=buildProps({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:buttonTypes,default:"primary"},cancelButtonType:{type:String,values:buttonTypes,default:"text"},icon:{type:iconPropType,default:()=>question_filled_default},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...useTooltipContentProps.effect,default:"light"},teleported:useTooltipContentProps.teleported,persistent:useTooltipContentProps.persistent,width:{type:[String,Number],default:150},virtualTriggering:useTooltipTriggerProps.virtualTriggering,virtualRef:useTooltipTriggerProps.virtualRef}),popconfirmEmits={confirm:n=>n instanceof MouseEvent,cancel:n=>n instanceof MouseEvent},_sfc_main$1k=defineComponent({name:"ElPopconfirm",__name:"popconfirm",props:popconfirmProps,emits:popconfirmEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{t:$}=useLocale(),V=useNamespace("popconfirm"),re=ref(),ie=ref(),ae=computed(()=>{var Ce;return(Ce=unref(re))==null?void 0:Ce.popperRef}),oe=()=>{var Ce,xe;(xe=(Ce=ie.value)==null?void 0:Ce.focus)==null||xe.call(Ce)},le=()=>{var Ce,xe;(xe=(Ce=re.value)==null?void 0:Ce.onClose)==null||xe.call(Ce)},ue=computed(()=>({width:addUnit(i.width)})),de=Ce=>{g("confirm",Ce),le()},he=Ce=>{g("cancel",Ce),le()},pe=computed(()=>i.confirmButtonText||$("el.popconfirm.confirmButtonText")),_e=computed(()=>i.cancelButtonText||$("el.popconfirm.cancelButtonText"));return t({popperRef:ae,hide:le}),(Ce,xe)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:re,trigger:"click",effect:Ce.effect},Ce.$attrs,{"virtual-triggering":Ce.virtualTriggering,"virtual-ref":Ce.virtualRef,"popper-class":`${unref(V).namespace.value}-popover`,"popper-style":ue.value,teleported:Ce.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":Ce.hideAfter,persistent:Ce.persistent,loop:"",onShow:oe}),{content:withCtx(()=>[createBaseVNode("div",{ref_key:"rootRef",ref:ie,tabindex:"-1",class:normalizeClass(unref(V).b())},[createBaseVNode("div",{class:normalizeClass(unref(V).e("main"))},[!Ce.hideIcon&&Ce.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(V).e("icon")),style:normalizeStyle$1({color:Ce.iconColor})},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ce.icon)))]),_:1},8,["class","style"])):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString(Ce.title),1)],2),createBaseVNode("div",{class:normalizeClass(unref(V).e("action"))},[renderSlot(Ce.$slots,"actions",{confirm:de,cancel:he},()=>[createVNode$1(unref(ElButton),{size:"small",type:Ce.cancelButtonType==="text"?"":Ce.cancelButtonType,text:Ce.cancelButtonType==="text",onClick:he},{default:withCtx(()=>[createTextVNode(toDisplayString(_e.value),1)]),_:1},8,["type","text"]),createVNode$1(unref(ElButton),{size:"small",type:Ce.confirmButtonType==="text"?"":Ce.confirmButtonType,text:Ce.confirmButtonType==="text",onClick:de},{default:withCtx(()=>[createTextVNode(toDisplayString(pe.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:withCtx(()=>[Ce.$slots.reference?renderSlot(Ce.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}});var Popconfirm=_export_sfc(_sfc_main$1k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const ElPopconfirm=withInstall(Popconfirm),popoverProps=buildProps({trigger:useTooltipTriggerProps.trigger,triggerKeys:useTooltipTriggerProps.triggerKeys,placement:dropdownProps.placement,disabled:useTooltipTriggerProps.disabled,visible:useTooltipContentProps.visible,transition:useTooltipContentProps.transition,popperOptions:dropdownProps.popperOptions,tabindex:dropdownProps.tabindex,content:useTooltipContentProps.content,popperStyle:useTooltipContentProps.popperStyle,popperClass:useTooltipContentProps.popperClass,enterable:{...useTooltipContentProps.enterable,default:!0},effect:{...useTooltipContentProps.effect,default:"light"},teleported:useTooltipContentProps.teleported,appendTo:useTooltipContentProps.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),popoverEmits={"update:visible":n=>isBoolean$1(n),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},updateEventKeyRaw="onUpdate:visible",_sfc_main$1j=defineComponent({name:"ElPopover",__name:"popover",props:popoverProps,emits:popoverEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=computed(()=>i[updateEventKeyRaw]),V=useNamespace("popover"),re=ref(),ie=computed(()=>{var Ce;return(Ce=unref(re))==null?void 0:Ce.popperRef}),ae=computed(()=>[{width:addUnit(i.width)},i.popperStyle]),oe=computed(()=>[V.b(),i.popperClass,{[V.m("plain")]:!!i.content}]),le=computed(()=>i.transition===`${V.namespace.value}-fade-in-linear`),ue=()=>{var Ce;(Ce=re.value)==null||Ce.hide()},de=()=>{g("before-enter")},he=()=>{g("before-leave")},pe=()=>{g("after-enter")},_e=()=>{g("update:visible",!1),g("after-leave")};return t({popperRef:ie,hide:ue}),(Ce,xe)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:re},Ce.$attrs,{trigger:Ce.trigger,"trigger-keys":Ce.triggerKeys,placement:Ce.placement,disabled:Ce.disabled,visible:Ce.visible,transition:Ce.transition,"popper-options":Ce.popperOptions,tabindex:Ce.tabindex,content:Ce.content,offset:Ce.offset,"show-after":Ce.showAfter,"hide-after":Ce.hideAfter,"auto-close":Ce.autoClose,"show-arrow":Ce.showArrow,"aria-label":Ce.title,effect:Ce.effect,enterable:Ce.enterable,"popper-class":oe.value,"popper-style":ae.value,teleported:Ce.teleported,"append-to":Ce.appendTo,persistent:Ce.persistent,"gpu-acceleration":le.value,"onUpdate:visible":$.value,onBeforeShow:de,onBeforeHide:he,onShow:pe,onHide:_e}),{content:withCtx(()=>[Ce.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).e("title")),role:"title"},toDisplayString(Ce.title),3)):createCommentVNode("v-if",!0),renderSlot(Ce.$slots,"default",{},()=>[createTextVNode(toDisplayString(Ce.content),1)])]),default:withCtx(()=>[Ce.$slots.reference?renderSlot(Ce.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});var Popover=_export_sfc(_sfc_main$1j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const attachEvents=(n,t)=>{const r=t.arg||t.value,i=r==null?void 0:r.popperRef;i&&(i.triggerRef=n)};var PopoverDirective={mounted(n,t){attachEvents(n,t)},updated(n,t){attachEvents(n,t)}};const VPopover="popover",ElPopoverDirective=withInstallDirective(PopoverDirective,VPopover),ElPopover=withInstall(Popover,{directive:ElPopoverDirective}),progressProps=buildProps({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:n=>n>=0&&n<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:definePropType(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:definePropType([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:definePropType(Function),default:n=>`${n}%`}}),_hoisted_1$N=["aria-valuenow"],_hoisted_2$y={viewBox:"0 0 100 100"},_hoisted_3$e=["d","stroke","stroke-linecap","stroke-width"],_hoisted_4$a=["d","stroke","opacity","stroke-linecap","stroke-width"],_hoisted_5$3={key:0},_sfc_main$1i=defineComponent({name:"ElProgress",__name:"progress",props:progressProps,setup(n){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=n,i=useNamespace("progress"),g=computed(()=>{const Ie={width:`${r.percentage}%`,animationDuration:`${r.duration}s`},Ne=xe(r.percentage);return Ne.includes("gradient")?Ie.background=Ne:Ie.backgroundColor=Ne,Ie}),$=computed(()=>(r.strokeWidth/r.width*100).toFixed(1)),V=computed(()=>["circle","dashboard"].includes(r.type)?Number.parseInt(`${50-Number.parseFloat($.value)/2}`,10):0),re=computed(()=>{const Ie=V.value,Ne=r.type==="dashboard";return`
- M 50 50
- m 0 ${Ne?"":"-"}${Ie}
- a ${Ie} ${Ie} 0 1 1 0 ${Ne?"-":""}${Ie*2}
- a ${Ie} ${Ie} 0 1 1 0 ${Ne?"":"-"}${Ie*2}
- `}),ie=computed(()=>2*Math.PI*V.value),ae=computed(()=>r.type==="dashboard"?.75:1),oe=computed(()=>`${-1*ie.value*(1-ae.value)/2}px`),le=computed(()=>({strokeDasharray:`${ie.value*ae.value}px, ${ie.value}px`,strokeDashoffset:oe.value})),ue=computed(()=>({strokeDasharray:`${ie.value*ae.value*(r.percentage/100)}px, ${ie.value}px`,strokeDashoffset:oe.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),de=computed(()=>{let Ie;return r.color?Ie=xe(r.percentage):Ie=t[r.status]||t.default,Ie}),he=computed(()=>r.status==="warning"?warning_filled_default:r.type==="line"?r.status==="success"?circle_check_default:circle_close_default:r.status==="success"?check_default:close_default),pe=computed(()=>r.type==="line"?12+r.strokeWidth*.4:r.width*.111111+2),_e=computed(()=>r.format(r.percentage));function Ce(Ie){const Ne=100/Ie.length;return Ie.map(($e,Ve)=>isString$2($e)?{color:$e,percentage:(Ve+1)*Ne}:$e).sort(($e,Ve)=>$e.percentage-Ve.percentage)}const xe=Ie=>{var Ne;const{color:Oe}=r;if(isFunction$4(Oe))return Oe(Ie);if(isString$2(Oe))return Oe;{const $e=Ce(Oe);for(const Ve of $e)if(Ve.percentage>Ie)return Ve.color;return(Ne=$e[$e.length-1])==null?void 0:Ne.color}};return(Ie,Ne)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(i).b(),unref(i).m(Ie.type),unref(i).is(Ie.status),{[unref(i).m("without-text")]:!Ie.showText,[unref(i).m("text-inside")]:Ie.textInside}]),role:"progressbar","aria-valuenow":Ie.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[Ie.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(i).be("bar","outer")),style:normalizeStyle$1({height:`${Ie.strokeWidth}px`})},[createBaseVNode("div",{class:normalizeClass([unref(i).be("bar","inner"),{[unref(i).bem("bar","inner","indeterminate")]:Ie.indeterminate},{[unref(i).bem("bar","inner","striped")]:Ie.striped},{[unref(i).bem("bar","inner","striped-flow")]:Ie.stripedFlow}]),style:normalizeStyle$1(g.value)},[(Ie.showText||Ie.$slots.default)&&Ie.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).be("bar","innerText"))},[renderSlot(Ie.$slots,"default",{percentage:Ie.percentage},()=>[createBaseVNode("span",null,toDisplayString(_e.value),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(i).b("circle")),style:normalizeStyle$1({height:`${Ie.width}px`,width:`${Ie.width}px`})},[(openBlock(),createElementBlock("svg",_hoisted_2$y,[createBaseVNode("path",{class:normalizeClass(unref(i).be("circle","track")),d:re.value,stroke:`var(${unref(i).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":Ie.strokeLinecap,"stroke-width":$.value,fill:"none",style:normalizeStyle$1(le.value)},null,14,_hoisted_3$e),createBaseVNode("path",{class:normalizeClass(unref(i).be("circle","path")),d:re.value,stroke:de.value,fill:"none",opacity:Ie.percentage?1:0,"stroke-linecap":Ie.strokeLinecap,"stroke-width":$.value,style:normalizeStyle$1(ue.value)},null,14,_hoisted_4$a)]))],6)),(Ie.showText||Ie.$slots.default)&&!Ie.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(i).e("text")),style:normalizeStyle$1({fontSize:`${pe.value}px`})},[renderSlot(Ie.$slots,"default",{percentage:Ie.percentage},()=>[Ie.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(he.value)))]),_:1})):(openBlock(),createElementBlock("span",_hoisted_5$3,toDisplayString(_e.value),1))])],6)):createCommentVNode("v-if",!0)],10,_hoisted_1$N))}});var Progress=_export_sfc(_sfc_main$1i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const ElProgress=withInstall(Progress),rateProps=buildProps({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:definePropType([Array,Object]),default:()=>mutable(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:definePropType([Array,Object]),default:()=>[star_filled_default,star_filled_default,star_filled_default]},voidIcon:{type:iconPropType,default:()=>star_default},disabledVoidIcon:{type:iconPropType,default:()=>star_filled_default},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:definePropType(Array),default:()=>mutable(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:useSizeProp,clearable:Boolean,...useAriaProps(["ariaLabel"])}),rateEmits={[CHANGE_EVENT]:n=>isNumber$2(n),[UPDATE_MODEL_EVENT]:n=>isNumber$2(n)},_hoisted_1$M=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],_hoisted_2$x=["onMousemove","onClick"],_sfc_main$1h=defineComponent({name:"ElRate",__name:"rate",props:rateProps,emits:rateEmits,setup(n,{expose:t,emit:r}){function i(jt,hn){const vn=bn=>isObject$6(bn),_n=Object.keys(hn).map(bn=>+bn).filter(bn=>{const Cn=hn[bn];return(vn(Cn)?Cn.excluded:!1)?jtbn-Cn),wn=hn[_n[0]];return vn(wn)&&wn.value||wn}const g=n,$=r,V=inject(formItemContextKey,void 0),re=useFormSize(),ie=useNamespace("rate"),{inputId:ae,isLabeledByFormItem:oe}=useFormItemInputId(g,{formItemContext:V}),le=ref(g.modelValue),ue=ref(-1),de=ref(!0),he=ref([]),pe=computed(()=>he.value.map(jt=>jt.$el.clientWidth)),_e=computed(()=>[ie.b(),ie.m(re.value)]),Ce=useFormDisabled(),xe=computed(()=>ie.cssVarBlock({"void-color":g.voidColor,"disabled-void-color":g.disabledVoidColor,"fill-color":$e.value})),Ie=computed(()=>{let jt="";return g.showScore?jt=g.scoreTemplate.replace(/\{\s*value\s*\}/,Ce.value?`${g.modelValue}`:`${le.value}`):g.showText&&(jt=g.texts[Math.ceil(le.value)-1]),jt}),Ne=computed(()=>g.modelValue*100-Math.floor(g.modelValue)*100),Oe=computed(()=>isArray$5(g.colors)?{[g.lowThreshold]:g.colors[0],[g.highThreshold]:{value:g.colors[1],excluded:!0},[g.max]:g.colors[2]}:g.colors),$e=computed(()=>{const jt=i(le.value,Oe.value);return isObject$6(jt)?"":jt}),Ve=computed(()=>{let jt="";return Ce.value?jt=`${Ne.value}%`:g.allowHalf&&(jt="50%"),{color:$e.value,width:jt}}),Ue=computed(()=>{let jt=isArray$5(g.icons)?[...g.icons]:{...g.icons};return jt=markRaw(jt),isArray$5(jt)?{[g.lowThreshold]:jt[0],[g.highThreshold]:{value:jt[1],excluded:!0},[g.max]:jt[2]}:jt}),Fe=computed(()=>i(g.modelValue,Ue.value)),ze=computed(()=>Ce.value?isString$2(g.disabledVoidIcon)?g.disabledVoidIcon:markRaw(g.disabledVoidIcon):isString$2(g.voidIcon)?g.voidIcon:markRaw(g.voidIcon)),Pt=computed(()=>i(le.value,Ue.value));function qe(jt){const hn=Ce.value&&Ne.value>0&&jt-1g.modelValue,vn=g.allowHalf&&de.value&&jt-.5<=le.value&&jt>le.value;return hn||vn}function Et(jt){g.clearable&&jt===g.modelValue&&(jt=0),$(UPDATE_MODEL_EVENT,jt),g.modelValue!==jt&&$(CHANGE_EVENT,jt)}function kt(jt){Ce.value||(g.allowHalf&&de.value?Et(le.value):Et(jt))}function At(jt){if(Ce.value)return;const hn=getEventCode(jt),vn=g.allowHalf?.5:1;let _n=le.value;switch(hn){case EVENT_CODE.up:case EVENT_CODE.right:_n+=vn;break;case EVENT_CODE.left:case EVENT_CODE.down:_n-=vn;break}if(_n=clamp$3(_n,0,g.max),_n!==le.value)return jt.stopPropagation(),jt.preventDefault(),$(UPDATE_MODEL_EVENT,_n),$(CHANGE_EVENT,_n),_n}function Dt(jt,hn){Ce.value||(g.allowHalf&&hn?(de.value=hn.offsetX*2<=pe.value[jt-1],le.value=de.value?jt-.5:jt):le.value=jt,ue.value=jt)}function Lt(){Ce.value||(g.allowHalf&&(de.value=g.modelValue!==Math.floor(g.modelValue)),le.value=g.modelValue,ue.value=-1)}return watch(()=>g.modelValue,jt=>{le.value=jt,de.value=g.modelValue!==Math.floor(g.modelValue)}),g.modelValue||$(UPDATE_MODEL_EVENT,0),t({setCurrentValue:Dt,resetCurrentValue:Lt}),(jt,hn)=>{var vn;return openBlock(),createElementBlock("div",{id:unref(ae),class:normalizeClass([_e.value,unref(ie).is("disabled",unref(Ce))]),role:"slider","aria-label":unref(oe)?void 0:jt.ariaLabel||"rating","aria-labelledby":unref(oe)?(vn=unref(V))==null?void 0:vn.labelId:void 0,"aria-valuenow":le.value,"aria-valuetext":Ie.value||void 0,"aria-valuemin":"0","aria-valuemax":jt.max,tabindex:"0",style:normalizeStyle$1(xe.value),onKeydown:At},[(openBlock(!0),createElementBlock(Fragment,null,renderList(jt.max,(_n,wn)=>(openBlock(),createElementBlock("span",{key:wn,class:normalizeClass(unref(ie).e("item")),onMousemove:bn=>Dt(_n,bn),onMouseleave:Lt,onClick:bn=>kt(_n)},[createVNode$1(unref(ElIcon),{ref_for:!0,ref_key:"iconRefs",ref:he,class:normalizeClass([unref(ie).e("icon"),{hover:ue.value===_n},unref(ie).is("active",_n<=le.value),unref(ie).is("focus-visible",_n===Math.ceil(le.value||1))])},{default:withCtx(()=>[withDirectives((openBlock(),createBlock(resolveDynamicComponent(Pt.value),null,null,512)),[[vShow,!qe(_n)&&_n<=le.value]]),withDirectives((openBlock(),createBlock(resolveDynamicComponent(ze.value),null,null,512)),[[vShow,!qe(_n)&&_n>le.value]]),withDirectives((openBlock(),createBlock(resolveDynamicComponent(ze.value),{class:normalizeClass([unref(ie).em("decimal","box")])},null,8,["class"])),[[vShow,qe(_n)]]),withDirectives(createVNode$1(unref(ElIcon),{style:normalizeStyle$1(Ve.value),class:normalizeClass([unref(ie).e("icon"),unref(ie).e("decimal")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Fe.value)))]),_:1},8,["style","class"]),[[vShow,qe(_n)]])]),_:2},1032,["class"])],42,_hoisted_2$x))),128)),jt.showText||jt.showScore?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ie).e("text")),style:normalizeStyle$1({color:jt.textColor})},toDisplayString(Ie.value),7)):createCommentVNode("v-if",!0)],46,_hoisted_1$M)}}});var Rate=_export_sfc(_sfc_main$1h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const ElRate=withInstall(Rate),IconMap={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},IconComponentMap={[IconMap.primary]:info_filled_default,[IconMap.success]:circle_check_filled_default,[IconMap.warning]:warning_filled_default,[IconMap.error]:circle_close_filled_default,[IconMap.info]:info_filled_default},resultProps=buildProps({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),_sfc_main$1g=defineComponent({name:"ElResult",__name:"result",props:resultProps,setup(n){const t=n,r=useNamespace("result"),i=computed(()=>{const g=t.icon,$=g&&IconMap[g]?IconMap[g]:"icon-info",V=IconComponentMap[$]||IconComponentMap["icon-info"];return{class:$,component:V}});return(g,$)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(r).b())},[createBaseVNode("div",{class:normalizeClass(unref(r).e("icon"))},[renderSlot(g.$slots,"icon",{},()=>[i.value.component?(openBlock(),createBlock(resolveDynamicComponent(i.value.component),{key:0,class:normalizeClass(i.value.class)},null,8,["class"])):createCommentVNode("v-if",!0)])],2),g.title||g.$slots.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("title"))},[renderSlot(g.$slots,"title",{},()=>[createBaseVNode("p",null,toDisplayString(g.title),1)])],2)):createCommentVNode("v-if",!0),g.subTitle||g.$slots["sub-title"]?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(r).e("subtitle"))},[renderSlot(g.$slots,"sub-title",{},()=>[createBaseVNode("p",null,toDisplayString(g.subTitle),1)])],2)):createCommentVNode("v-if",!0),g.$slots.extra?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(r).e("extra"))},[renderSlot(g.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2))}});var Result=_export_sfc(_sfc_main$1g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const ElResult=withInstall(Result),RowJustify=["start","center","end","space-around","space-between","space-evenly"],RowAlign=["top","middle","bottom"],rowProps=buildProps({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:RowJustify,default:"start"},align:{type:String,values:RowAlign}}),_sfc_main$1f=defineComponent({name:"ElRow",__name:"row",props:rowProps,setup(n){const t=n,r=useNamespace("row"),i=computed(()=>t.gutter);provide(rowContextKey,{gutter:i});const g=computed(()=>{const V={};return t.gutter&&(V.marginRight=V.marginLeft=`-${t.gutter/2}px`),V}),$=computed(()=>[r.b(),r.is(`justify-${t.justify}`,t.justify!=="start"),r.is(`align-${t.align}`,!!t.align)]);return(V,re)=>(openBlock(),createBlock(resolveDynamicComponent(V.tag),{class:normalizeClass($.value),style:normalizeStyle$1(g.value)},{default:withCtx(()=>[renderSlot(V.$slots,"default")]),_:3},8,["class","style"]))}});var Row$2=_export_sfc(_sfc_main$1f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const ElRow=withInstall(Row$2),_sfc_main$1e=defineComponent({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:useNamespace("select")}}});function _sfc_render$7(n,t,r,i,g,$){return openBlock(),createElementBlock("div",{class:normalizeClass(n.ns.be("group","title")),style:normalizeStyle$1({...n.style,lineHeight:`${n.height}px`})},toDisplayString(n.item.label),7)}var GroupItem=_export_sfc(_sfc_main$1e,[["render",_sfc_render$7],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function useOption(n,{emit:t}){return{hoverItem:()=>{n.disabled||t("hover",n.index)},selectOptionClick:()=>{n.disabled||t("select",n.item,n.index)}}}const selectV2Props=buildProps({allowCreate:Boolean,autocomplete:{type:definePropType(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:iconPropType,default:circle_close_default},effect:{type:definePropType(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:definePropType(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:definePropType([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:definePropType(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:definePropType(Array),required:!0},placeholder:{type:String},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,popperOptions:{type:definePropType(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:useSizeProp,props:{type:definePropType(Object),default:()=>defaultProps$4},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:definePropType(String),values:Ee,default:"bottom-start"},fallbackPlacements:{type:definePropType(Array),default:["bottom-start","top-start","right","left"]},tagType:{...tagProps.type,default:"info"},tagEffect:{...tagProps.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:useTooltipContentProps.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(n){return isBoolean$1(n)||isNumber$2(n)}},suffixIcon:{type:iconPropType,default:arrow_down_default},...useEmptyValuesProps,...useAriaProps(["ariaLabel"])}),optionV2Props=buildProps({data:Array,disabled:Boolean,hovering:Boolean,item:{type:definePropType(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),selectV2Emits={[UPDATE_MODEL_EVENT]:n=>!0,[CHANGE_EVENT]:n=>!0,"remove-tag":n=>!0,"visible-change":n=>!0,focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0},optionV2Emits={hover:n=>isNumber$2(n),select:(n,t)=>!0},selectV2InjectionKey=Symbol("ElSelectV2Injection"),_sfc_main$1d=defineComponent({props:optionV2Props,emits:optionV2Emits,setup(n,{emit:t}){const r=inject(selectV2InjectionKey),i=useNamespace("select"),{hoverItem:g,selectOptionClick:$}=useOption(n,{emit:t}),{getLabel:V}=useProps(r.props),re=r.contentId;return{ns:i,contentId:re,hoverItem:g,selectOptionClick:$,getLabel:V}}}),_hoisted_1$L=["id","aria-selected","aria-disabled"];function _sfc_render$6(n,t,r,i,g,$){return openBlock(),createElementBlock("li",{id:`${n.contentId}-${n.index}`,role:"option","aria-selected":n.selected,"aria-disabled":n.disabled||void 0,style:normalizeStyle$1(n.style),class:normalizeClass([n.ns.be("dropdown","item"),n.ns.is("selected",n.selected),n.ns.is("disabled",n.disabled),n.ns.is("created",n.created),n.ns.is("hovering",n.hovering)]),onMousemove:t[0]||(t[0]=(...V)=>n.hoverItem&&n.hoverItem(...V)),onClick:t[1]||(t[1]=withModifiers((...V)=>n.selectOptionClick&&n.selectOptionClick(...V),["stop"]))},[renderSlot(n.$slots,"default",{item:n.item,index:n.index,disabled:n.disabled},()=>[createBaseVNode("span",null,toDisplayString(n.getLabel(n.item)),1)])],46,_hoisted_1$L)}var OptionItem=_export_sfc(_sfc_main$1d,[["render",_sfc_render$6],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]),safeIsNaN=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function isEqual(n,t){return!!(n===t||safeIsNaN(n)&&safeIsNaN(t))}function areInputsEqual(n,t){if(n.length!==t.length)return!1;for(var r=0;r{const t=getCurrentInstance().proxy.$props;return computed(()=>{const r=(i,g,$)=>({});return t.perfMode?memoize(r):memoizeOne(r)})},DEFAULT_DYNAMIC_LIST_ITEM_SIZE=50,ITEM_RENDER_EVT="itemRendered",SCROLL_EVT="scroll",FORWARD="forward",BACKWARD="backward",AUTO_ALIGNMENT="auto",SMART_ALIGNMENT="smart",START_ALIGNMENT="start",CENTERED_ALIGNMENT="center",END_ALIGNMENT="end",HORIZONTAL="horizontal",VERTICAL="vertical",LTR="ltr",RTL="rtl",RTL_OFFSET_NAG="negative",RTL_OFFSET_POS_ASC="positive-ascending",RTL_OFFSET_POS_DESC="positive-descending",ScrollbarDirKey={[HORIZONTAL]:"left",[VERTICAL]:"top"},SCROLLBAR_MIN_SIZE=20,useWheel=({atEndEdge:n,atStartEdge:t,layout:r},i)=>{let g,$=0;const V=ie=>ie<0&&t.value||ie>0&&n.value;return{hasReachedEdge:V,onWheel:ie=>{cAF(g);let{deltaX:ae,deltaY:oe}=ie;ie.shiftKey&&oe!==0&&(ae=oe,oe=0);const le=r.value===HORIZONTAL?ae:oe;V(le)||($+=le,!isFirefox()&&le!==0&&ie.preventDefault(),g=rAF(()=>{i($),$=0}))}}},itemSize$1=buildProp({type:definePropType([Number,Function]),required:!0}),estimatedItemSize=buildProp({type:Number}),cache=buildProp({type:Number,default:2}),direction=buildProp({type:String,values:["ltr","rtl"],default:"ltr"}),initScrollOffset=buildProp({type:Number,default:0}),total$1=buildProp({type:Number,required:!0}),layout$1=buildProp({type:String,values:["horizontal","vertical"],default:VERTICAL}),virtualizedProps=buildProps({className:{type:String,default:""},containerElement:{type:definePropType([String,Object]),default:"div"},data:{type:definePropType(Array),default:()=>mutable([])},direction,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:definePropType(Object),default:()=>({})},style:{type:definePropType([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),virtualizedListProps=buildProps({cache,estimatedItemSize,layout:layout$1,initScrollOffset,total:total$1,itemSize:itemSize$1,...virtualizedProps}),scrollbarSize={type:Number,default:6},startGap={type:Number,default:0},endGap={type:Number,default:2},virtualizedGridProps=buildProps({columnCache:cache,columnWidth:itemSize$1,estimatedColumnWidth:estimatedItemSize,estimatedRowHeight:estimatedItemSize,initScrollLeft:initScrollOffset,initScrollTop:initScrollOffset,itemKey:{type:definePropType(Function),default:({columnIndex:n,rowIndex:t})=>`${t}:${n}`},rowCache:cache,rowHeight:itemSize$1,totalColumn:total$1,totalRow:total$1,hScrollbarSize:scrollbarSize,vScrollbarSize:scrollbarSize,scrollbarStartGap:startGap,scrollbarEndGap:endGap,role:String,...virtualizedProps}),virtualizedScrollbarProps=buildProps({alwaysOn:Boolean,class:String,layout:layout$1,total:total$1,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize,startGap,endGap,visible:Boolean}),getScrollDir=(n,t)=>nn===LTR||n===RTL||n===HORIZONTAL,isRTL$1=n=>n===RTL;let cachedRTLResult=null;function getRTLOffsetType(n=!1){if(cachedRTLResult===null||n){const t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";const i=document.createElement("div"),g=i.style;return g.width="100px",g.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?cachedRTLResult=RTL_OFFSET_POS_DESC:(t.scrollLeft=1,t.scrollLeft===0?cachedRTLResult=RTL_OFFSET_NAG:cachedRTLResult=RTL_OFFSET_POS_ASC),document.body.removeChild(t),cachedRTLResult}return cachedRTLResult}function renderThumbStyle({move:n,size:t,bar:r},i){const g={},$=`translate${r.axis}(${n}px)`;return g[r.size]=t,g.transform=$,i==="horizontal"?g.height="100%":g.width="100%",g}const ScrollBar=defineComponent({name:"ElVirtualScrollBar",props:virtualizedScrollbarProps,emits:["scroll","start-move","stop-move"],setup(n,{emit:t}){const r=computed(()=>n.startGap+n.endGap),i=useNamespace("virtual-scrollbar"),g=useNamespace("scrollbar"),$=ref(),V=ref();let re=null,ie=null;const ae=reactive({isDragging:!1,traveled:0}),oe=computed(()=>BAR_MAP[n.layout]),le=computed(()=>n.clientSize-unref(r)),ue=computed(()=>({position:"absolute",width:`${HORIZONTAL===n.layout?le.value:n.scrollbarSize}px`,height:`${HORIZONTAL===n.layout?n.scrollbarSize:le.value}px`,[ScrollbarDirKey[n.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),de=computed(()=>{const $e=n.ratio;if($e>=100)return Number.POSITIVE_INFINITY;if($e>=50)return $e*le.value/100;const Ve=le.value/3;return Math.floor(Math.min(Math.max($e*le.value/100,SCROLLBAR_MIN_SIZE),Ve))}),he=computed(()=>{if(!Number.isFinite(de.value))return{display:"none"};const $e=`${de.value}px`;return renderThumbStyle({bar:oe.value,size:$e,move:ae.traveled},n.layout)}),pe=computed(()=>Math.ceil(n.clientSize-de.value-unref(r))),_e=()=>{window.addEventListener("mousemove",Ne),window.addEventListener("mouseup",Ie);const $e=unref(V);$e&&(ie=document.onselectstart,document.onselectstart=()=>!1,$e.addEventListener("touchmove",Ne,{passive:!0}),$e.addEventListener("touchend",Ie))},Ce=()=>{window.removeEventListener("mousemove",Ne),window.removeEventListener("mouseup",Ie),document.onselectstart=ie,ie=null;const $e=unref(V);$e&&($e.removeEventListener("touchmove",Ne),$e.removeEventListener("touchend",Ie))},xe=$e=>{$e.stopImmediatePropagation(),!($e.ctrlKey||[1,2].includes($e.button))&&(ae.isDragging=!0,ae[oe.value.axis]=$e.currentTarget[oe.value.offset]-($e[oe.value.client]-$e.currentTarget.getBoundingClientRect()[oe.value.direction]),t("start-move"),_e())},Ie=()=>{ae.isDragging=!1,ae[oe.value.axis]=0,t("stop-move"),Ce()},Ne=$e=>{const{isDragging:Ve}=ae;if(!Ve||!V.value||!$.value)return;const Ue=ae[oe.value.axis];if(!Ue)return;cAF(re);const Fe=($.value.getBoundingClientRect()[oe.value.direction]-$e[oe.value.client])*-1,ze=V.value[oe.value.offset]-Ue,Pt=Fe-ze;re=rAF(()=>{ae.traveled=Math.max(0,Math.min(Pt,pe.value)),t("scroll",Pt,pe.value)})},Oe=$e=>{const Ve=Math.abs($e.target.getBoundingClientRect()[oe.value.direction]-$e[oe.value.client]),Ue=V.value[oe.value.offset]/2,Fe=Ve-Ue;ae.traveled=Math.max(0,Math.min(Fe,pe.value)),t("scroll",Fe,pe.value)};return watch(()=>n.scrollFrom,$e=>{ae.isDragging||(ae.traveled=Math.ceil($e*pe.value))}),onBeforeUnmount(()=>{Ce()}),()=>h$1("div",{role:"presentation",ref:$,class:[i.b(),n.class,(n.alwaysOn||ae.isDragging)&&"always-on"],style:ue.value,onMousedown:withModifiers(Oe,["stop","prevent"]),onTouchstartPrevent:xe},h$1("div",{ref:V,class:g.e("thumb"),style:he.value,onMousedown:xe},[]))}}),createList=({name:n,getOffset:t,getItemSize:r,getItemOffset:i,getEstimatedTotalSize:g,getStartIndexForOffset:$,getStopIndexForStartIndex:V,initCache:re,clearCache:ie,validateProps:ae})=>defineComponent({name:n??"ElVirtualList",props:virtualizedListProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(oe,{emit:le,expose:ue}){ae(oe);const de=getCurrentInstance(),he=useNamespace("vl"),pe=ref(re(oe,de)),_e=useCache(),Ce=ref(),xe=ref(),Ie=ref(),Ne=ref({isScrolling:!1,scrollDir:"forward",scrollOffset:isNumber$2(oe.initScrollOffset)?oe.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:oe.scrollbarAlwaysOn}),Oe=computed(()=>{const{total:bn,cache:Cn}=oe,{isScrolling:Sn,scrollDir:Tn,scrollOffset:En}=unref(Ne);if(bn===0)return[0,0,0,0];const kn=$(oe,En,unref(pe)),$n=V(oe,kn,En,unref(pe)),An=!Sn||Tn===BACKWARD?Math.max(1,Cn):1,xn=!Sn||Tn===FORWARD?Math.max(1,Cn):1;return[Math.max(0,kn-An),Math.max(0,Math.min(bn-1,$n+xn)),kn,$n]}),$e=computed(()=>g(oe,unref(pe))),Ve=computed(()=>isHorizontal(oe.layout)),Ue=computed(()=>[{position:"relative",[`overflow-${Ve.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:oe.direction,height:isNumber$2(oe.height)?`${oe.height}px`:oe.height,width:isNumber$2(oe.width)?`${oe.width}px`:oe.width},oe.style]),Fe=computed(()=>{const bn=unref($e),Cn=unref(Ve);return{height:Cn?"100%":`${bn}px`,pointerEvents:unref(Ne).isScrolling?"none":void 0,width:Cn?`${bn}px`:"100%",margin:0,boxSizing:"border-box"}}),ze=computed(()=>Ve.value?oe.width:oe.height),{onWheel:Pt}=useWheel({atStartEdge:computed(()=>Ne.value.scrollOffset<=0),atEndEdge:computed(()=>Ne.value.scrollOffset>=$e.value),layout:computed(()=>oe.layout)},bn=>{var Cn,Sn;(Sn=(Cn=Ie.value).onMouseUp)==null||Sn.call(Cn),Lt(Math.min(Ne.value.scrollOffset+bn,$e.value-ze.value))});useEventListener(Ce,"wheel",Pt,{passive:!1});const qe=()=>{const{total:bn}=oe;if(bn>0){const[En,kn,$n,An]=unref(Oe);le(ITEM_RENDER_EVT,En,kn,$n,An)}const{scrollDir:Cn,scrollOffset:Sn,updateRequested:Tn}=unref(Ne);le(SCROLL_EVT,Cn,Sn,Tn)},Et=bn=>{const{clientHeight:Cn,scrollHeight:Sn,scrollTop:Tn}=bn.currentTarget,En=unref(Ne);if(En.scrollOffset===Tn)return;const kn=Math.max(0,Math.min(Tn,Sn-Cn));Ne.value={...En,isScrolling:!0,scrollDir:getScrollDir(En.scrollOffset,kn),scrollOffset:kn,updateRequested:!1},nextTick(vn)},kt=bn=>{const{clientWidth:Cn,scrollLeft:Sn,scrollWidth:Tn}=bn.currentTarget,En=unref(Ne);if(En.scrollOffset===Sn)return;const{direction:kn}=oe;let $n=Sn;if(kn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{$n=-Sn;break}case RTL_OFFSET_POS_DESC:{$n=Tn-Cn-Sn;break}}$n=Math.max(0,Math.min($n,Tn-Cn)),Ne.value={...En,isScrolling:!0,scrollDir:getScrollDir(En.scrollOffset,$n),scrollOffset:$n,updateRequested:!1},nextTick(vn)},At=bn=>{unref(Ve)?kt(bn):Et(bn),qe()},Dt=(bn,Cn)=>{const Sn=($e.value-ze.value)/Cn*bn;Lt(Math.min($e.value-ze.value,Sn))},Lt=bn=>{bn=Math.max(bn,0),bn!==unref(Ne).scrollOffset&&(Ne.value={...unref(Ne),scrollOffset:bn,scrollDir:getScrollDir(unref(Ne).scrollOffset,bn),updateRequested:!0},nextTick(vn))},jt=(bn,Cn=AUTO_ALIGNMENT)=>{const{scrollOffset:Sn}=unref(Ne);bn=Math.max(0,Math.min(bn,oe.total-1)),Lt(t(oe,bn,Cn,Sn,unref(pe)))},hn=bn=>{const{direction:Cn,itemSize:Sn,layout:Tn}=oe,En=_e.value(ie&&Sn,ie&&Tn,ie&&Cn);let kn;if(hasOwn$1(En,String(bn)))kn=En[bn];else{const $n=i(oe,bn,unref(pe)),An=r(oe,bn,unref(pe)),xn=unref(Ve),Ln=Cn===RTL,Nn=xn?$n:0;En[bn]=kn={position:"absolute",left:Ln?void 0:`${Nn}px`,right:Ln?`${Nn}px`:void 0,top:xn?0:`${$n}px`,height:xn?"100%":`${An}px`,width:xn?`${An}px`:"100%"}}return kn},vn=()=>{Ne.value.isScrolling=!1,nextTick(()=>{_e.value(-1,null,null)})},_n=()=>{const bn=Ce.value;bn&&(bn.scrollTop=0)};onMounted(()=>{if(!isClient)return;const{initScrollOffset:bn}=oe,Cn=unref(Ce);isNumber$2(bn)&&Cn&&(unref(Ve)?Cn.scrollLeft=bn:Cn.scrollTop=bn),qe()}),onUpdated(()=>{const{direction:bn,layout:Cn}=oe,{scrollOffset:Sn,updateRequested:Tn}=unref(Ne),En=unref(Ce);if(Tn&&En)if(Cn===HORIZONTAL)if(bn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{En.scrollLeft=-Sn;break}case RTL_OFFSET_POS_ASC:{En.scrollLeft=Sn;break}default:{const{clientWidth:kn,scrollWidth:$n}=En;En.scrollLeft=$n-kn-Sn;break}}else En.scrollLeft=Sn;else En.scrollTop=Sn}),onActivated(()=>{unref(Ce).scrollTop=unref(Ne).scrollOffset});const wn={ns:he,clientSize:ze,estimatedTotalSize:$e,windowStyle:Ue,windowRef:Ce,innerRef:xe,innerStyle:Fe,itemsToRender:Oe,scrollbarRef:Ie,states:Ne,getItemStyle:hn,onScroll:At,onScrollbarScroll:Dt,onWheel:Pt,scrollTo:Lt,scrollToItem:jt,resetScrollTop:_n};return ue({windowRef:Ce,innerRef:xe,getItemStyleCache:_e,scrollTo:Lt,scrollToItem:jt,resetScrollTop:_n,states:Ne}),wn},render(oe){var le;const{$slots:ue,className:de,clientSize:he,containerElement:pe,data:_e,getItemStyle:Ce,innerElement:xe,itemsToRender:Ie,innerStyle:Ne,layout:Oe,total:$e,onScroll:Ve,onScrollbarScroll:Ue,states:Fe,useIsScrolling:ze,windowStyle:Pt,ns:qe}=oe,[Et,kt]=Ie,At=resolveDynamicComponent(pe),Dt=resolveDynamicComponent(xe),Lt=[];if($e>0)for(let _n=Et;_n<=kt;_n++)Lt.push(h$1(Fragment,{key:_n},(le=ue.default)==null?void 0:le.call(ue,{data:_e,index:_n,isScrolling:ze?Fe.isScrolling:void 0,style:Ce(_n)})));const jt=[h$1(Dt,mergeProps(oe.innerProps,{style:Ne,ref:"innerRef"}),isString$2(Dt)?Lt:{default:()=>Lt})],hn=h$1(ScrollBar,{ref:"scrollbarRef",clientSize:he,layout:Oe,onScroll:Ue,ratio:he*100/this.estimatedTotalSize,scrollFrom:Fe.scrollOffset/(this.estimatedTotalSize-he),total:$e,alwaysOn:Fe.scrollbarAlwaysOn}),vn=h$1(At,{class:[qe.e("window"),de],style:Pt,onScroll:Ve,ref:"windowRef",key:0},isString$2(At)?[jt]:{default:()=>[jt]});return h$1("div",{key:0,class:[qe.e("wrapper"),Fe.scrollbarAlwaysOn?"always-on":""]},[vn,hn])}}),FixedSizeList=createList({name:"ElFixedSizeList",getItemOffset:({itemSize:n},t)=>t*n,getItemSize:({itemSize:n})=>n,getEstimatedTotalSize:({total:n,itemSize:t})=>t*n,getOffset:({height:n,total:t,itemSize:r,layout:i,width:g},$,V,re)=>{const ie=isHorizontal(i)?g:n,ae=Math.max(0,t*r-ie),oe=Math.min(ae,$*r),le=Math.max(0,($+1)*r-ie);switch(V===SMART_ALIGNMENT&&(re>=le-ie&&re<=oe+ie?V=AUTO_ALIGNMENT:V=CENTERED_ALIGNMENT),V){case START_ALIGNMENT:return oe;case END_ALIGNMENT:return le;case CENTERED_ALIGNMENT:{const ue=Math.round(le+(oe-le)/2);return ueae+Math.floor(ie/2)?ae:ue}case AUTO_ALIGNMENT:default:return re>=le&&re<=oe?re:reMath.max(0,Math.min(n-1,Math.floor(r/t))),getStopIndexForStartIndex:({height:n,total:t,itemSize:r,layout:i,width:g},$,V)=>{const re=$*r,ie=isHorizontal(i)?g:n,ae=Math.ceil((ie+V-re)/r);return Math.max(0,Math.min(t-1,$+ae-1))},initCache(){},clearCache:!0,validateProps(){}}),getItemFromCache$1=(n,t,r)=>{const{itemSize:i}=n,{items:g,lastVisitedIndex:$}=r;if(t>$){let V=0;if($>=0){const re=g[$];V=re.offset+re.size}for(let re=$+1;re<=t;re++){const ie=i(re);g[re]={offset:V,size:ie},V+=ie}r.lastVisitedIndex=t}return g[t]},findItem$1=(n,t,r)=>{const{items:i,lastVisitedIndex:g}=t;return(g>0?i[g].offset:0)>=r?bs$1(n,t,0,g,r):es$1(n,t,Math.max(0,g),r)},bs$1=(n,t,r,i,g)=>{for(;r<=i;){const $=r+Math.floor((i-r)/2),V=getItemFromCache$1(n,$,t).offset;if(V===g)return $;Vg&&(i=$-1)}return Math.max(0,r-1)},es$1=(n,t,r,i)=>{const{total:g}=n;let $=1;for(;r{let g=0;if(i>=n&&(i=n-1),i>=0){const re=t[i];g=re.offset+re.size}const V=(n-i-1)*r;return g+V},DynamicSizeList=createList({name:"ElDynamicSizeList",getItemOffset:(n,t,r)=>getItemFromCache$1(n,t,r).offset,getItemSize:(n,t,{items:r})=>r[t].size,getEstimatedTotalSize,getOffset:(n,t,r,i,g)=>{const{height:$,layout:V,width:re}=n,ie=isHorizontal(V)?re:$,ae=getItemFromCache$1(n,t,g),oe=getEstimatedTotalSize(n,g),le=Math.max(0,Math.min(oe-ie,ae.offset)),ue=Math.max(0,ae.offset-ie+ae.size);switch(r===SMART_ALIGNMENT&&(i>=ue-ie&&i<=le+ie?r=AUTO_ALIGNMENT:r=CENTERED_ALIGNMENT),r){case START_ALIGNMENT:return le;case END_ALIGNMENT:return ue;case CENTERED_ALIGNMENT:return Math.round(ue+(le-ue)/2);case AUTO_ALIGNMENT:default:return i>=ue&&i<=le?i:ifindItem$1(n,r,t),getStopIndexForStartIndex:(n,t,r,i)=>{const{height:g,total:$,layout:V,width:re}=n,ie=isHorizontal(V)?re:g,ae=getItemFromCache$1(n,t,i),oe=r+ie;let le=ae.offset+ae.size,ue=t;for(;ue<$-1&&le{var $,V;r.lastVisitedIndex=Math.min(r.lastVisitedIndex,i-1),($=t.exposed)==null||$.getItemStyleCache(-1),g&&((V=t.proxy)==null||V.$forceUpdate())},r},clearCache:!1,validateProps:({itemSize:n})=>{}}),props={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var ElSelectMenu=defineComponent({name:"ElSelectDropdown",props,setup(n,{slots:t,expose:r}){const i=inject(selectV2InjectionKey),g=useNamespace("select"),{getLabel:$,getValue:V,getDisabled:re}=useProps(i.props),ie=ref([]),ae=ref(),oe=computed(()=>n.data.length);watch(()=>oe.value,()=>{var Pt,qe;(qe=(Pt=i.tooltipRef.value)==null?void 0:Pt.updatePopper)==null||qe.call(Pt)});const le=computed(()=>isUndefined$1(i.props.estimatedOptionHeight)),ue=computed(()=>le.value?{itemSize:i.props.itemHeight}:{estimatedSize:i.props.estimatedOptionHeight,itemSize:Pt=>ie.value[Pt]}),de=(Pt=[],qe)=>{const{props:{valueKey:Et}}=i;return isObject$6(qe)?Pt&&Pt.some(kt=>toRaw(get$1(kt,Et))===get$1(qe,Et)):Pt.includes(qe)},he=(Pt,qe)=>{if(isObject$6(qe)){const{valueKey:Et}=i.props;return get$1(Pt,Et)===get$1(qe,Et)}else return Pt===qe},pe=(Pt,qe)=>i.props.multiple?de(Pt,V(qe)):he(Pt,V(qe)),_e=(Pt,qe)=>{const{disabled:Et,multiple:kt,multipleLimit:At}=i.props;return Et||!qe&&(kt?At>0&&Pt.length>=At:!1)},Ce=Pt=>n.hoveringIndex===Pt;r({listRef:ae,isSized:le,isItemDisabled:_e,isItemHovering:Ce,isItemSelected:pe,scrollToItem:Pt=>{const qe=ae.value;qe&&qe.scrollToItem(Pt)},resetScrollTop:()=>{const Pt=ae.value;Pt&&Pt.resetScrollTop()}});const Oe=Pt=>{const{index:qe,data:Et,style:kt}=Pt,At=unref(le),{itemSize:Dt,estimatedSize:Lt}=unref(ue),{modelValue:jt}=i.props,{onSelect:hn,onHover:vn}=i,_n=Et[qe];if(_n.type==="Group")return createVNode$1(GroupItem,{item:_n,style:kt,height:At?Dt:Lt},null);const wn=pe(jt,_n),bn=_e(jt,wn),Cn=Ce(qe);return createVNode$1(OptionItem,mergeProps(Pt,{selected:wn,disabled:re(_n)||bn,created:!!_n.created,hovering:Cn,item:_n,onSelect:hn,onHover:vn}),{default:Sn=>{var Tn;return((Tn=t.default)==null?void 0:Tn.call(t,Sn))||createVNode$1("span",null,[$(_n)])}})},{onKeyboardNavigate:$e,onKeyboardSelect:Ve}=i,Ue=()=>{$e("forward")},Fe=()=>{$e("backward")},ze=Pt=>{const qe=getEventCode(Pt),{tab:Et,esc:kt,down:At,up:Dt,enter:Lt,numpadEnter:jt}=EVENT_CODE;switch([kt,At,Dt,Lt,jt].includes(qe)&&(Pt.preventDefault(),Pt.stopPropagation()),qe){case Et:case kt:break;case At:Ue();break;case Dt:Fe();break;case Lt:case jt:Ve();break}};return()=>{var Pt,qe,Et,kt;const{data:At,width:Dt}=n,{height:Lt,multiple:jt,scrollbarAlwaysOn:hn}=i.props,vn=computed(()=>isIOS?!0:hn),_n=unref(le)?FixedSizeList:DynamicSizeList;return createVNode$1("div",{class:[g.b("dropdown"),g.is("multiple",jt)],style:{width:`${Dt}px`}},[(Pt=t.header)==null?void 0:Pt.call(t),((qe=t.loading)==null?void 0:qe.call(t))||((Et=t.empty)==null?void 0:Et.call(t))||createVNode$1(_n,mergeProps({ref:ae},unref(ue),{className:g.be("dropdown","list"),scrollbarAlwaysOn:vn.value,data:At,height:Lt,width:Dt,total:At.length,innerElement:"ul",innerProps:{id:n.id,role:"listbox","aria-label":n.ariaLabel,"aria-orientation":"vertical"},onKeydown:ze}),{default:wn=>createVNode$1(Oe,wn,null)}),(kt=t.footer)==null?void 0:kt.call(t)])}}});function useAllowCreate(n,t){const{aliasProps:r,getLabel:i,getValue:g}=useProps(n),$=ref(0),V=ref(),re=computed(()=>n.allowCreate&&n.filterable);watch(()=>n.options,de=>{const he=new Set(de.map(pe=>i(pe)));t.createdOptions=t.createdOptions.filter(pe=>!he.has(i(pe)))});function ie(de){const he=pe=>i(pe)===de;return n.options&&n.options.some(he)||t.createdOptions.some(he)}function ae(de){re.value&&(n.multiple&&de.created?$.value++:V.value=de)}function oe(de){if(re.value)if(de&&de.length>0){if(ie(de)){t.createdOptions=t.createdOptions.filter(pe=>i(pe)!==t.previousQuery);return}const he={[r.value.value]:de,[r.value.label]:de,created:!0,[r.value.disabled]:!1};t.createdOptions.length>=$.value?t.createdOptions[$.value]=he:t.createdOptions.push(he)}else if(n.multiple)t.createdOptions.length=$.value;else{const he=V.value;t.createdOptions.length=0,he&&he.created&&t.createdOptions.push(he)}}function le(de){if(!re.value||!de||!de.created||de.created&&n.reserveKeyword&&t.inputValue===i(de))return;const he=t.createdOptions.findIndex(pe=>g(pe)===g(de));~he&&(t.createdOptions.splice(he,1),$.value--)}function ue(){re.value&&(t.createdOptions.length=0,$.value=0)}return{createNewOption:oe,removeNewOption:le,selectNewOption:ae,clearAllNewOption:ue}}const useSelect$1=(n,t)=>{const{t:r}=useLocale(),i=useSlots(),g=useNamespace("select"),$=useNamespace("input"),{form:V,formItem:re}=useFormItem(),{inputId:ie}=useFormItemInputId(n,{formItemContext:re}),{aliasProps:ae,getLabel:oe,getValue:le,getDisabled:ue,getOptions:de}=useProps(n),{valueOnClear:he,isEmptyValue:pe}=useEmptyValues(n),_e=reactive({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),Ce=ref(-1),xe=ref(!1),Ie=ref(),Ne=ref(),Oe=ref(),$e=ref(),Ve=ref(),Ue=ref(),Fe=ref(),ze=ref(),Pt=ref(),qe=ref(),{isComposing:Et,handleCompositionStart:kt,handleCompositionEnd:At,handleCompositionUpdate:Dt}=useComposition({afterComposition:Vn=>Rr(Vn)}),Lt=useFormDisabled(),{wrapperRef:jt,isFocused:hn,handleBlur:vn}=useFocusController(Ve,{disabled:Lt,afterFocus(){n.automaticDropdown&&!Cn.value&&(Cn.value=!0,_e.menuVisibleOnFocus=!0)},beforeBlur(Vn){var Kn,dr;return((Kn=Oe.value)==null?void 0:Kn.isFocusInsideContent(Vn))||((dr=$e.value)==null?void 0:dr.isFocusInsideContent(Vn))},afterBlur(){var Vn;Cn.value=!1,_e.menuVisibleOnFocus=!1,n.validateEvent&&((Vn=re==null?void 0:re.validate)==null||Vn.call(re,"blur").catch(Kn=>void 0))}}),_n=computed(()=>In("")),wn=computed(()=>n.loading?!1:n.options.length>0||_e.createdOptions.length>0),bn=ref([]),Cn=ref(!1),Sn=computed(()=>{var Vn;return(Vn=V==null?void 0:V.statusIcon)!=null?Vn:!1}),Tn=computed(()=>{const Vn=bn.value.length*n.itemHeight;return Vn>n.height?n.height:Vn}),En=computed(()=>n.multiple?isArray$5(n.modelValue)&&n.modelValue.length>0:!pe(n.modelValue)),kn=computed(()=>n.clearable&&!Lt.value&&En.value&&(hn.value||_e.inputHovering)),$n=computed(()=>n.remote&&n.filterable&&!n.remoteShowSuffix?"":n.suffixIcon),An=computed(()=>$n.value&&g.is("reverse",Cn.value)),xn=computed(()=>(re==null?void 0:re.validateState)||""),Ln=computed(()=>{if(xn.value)return ValidateComponentsMap[xn.value]}),Nn=computed(()=>n.remote?n.debounce:0),Pn=computed(()=>n.remote&&!_e.inputValue&&!wn.value),On=computed(()=>n.loading?n.loadingText||r("el.select.loading"):n.filterable&&_e.inputValue&&wn.value&&bn.value.length===0?n.noMatchText||r("el.select.noMatch"):wn.value?null:n.noDataText||r("el.select.noData")),Hn=computed(()=>n.filterable&&isFunction$4(n.filterMethod)),Xn=computed(()=>n.filterable&&n.remote&&isFunction$4(n.remoteMethod)),In=Vn=>{const Kn=new RegExp(escapeStringRegexp(Vn),"i"),dr=mr=>Hn.value||Xn.value?!0:Vn?Kn.test(oe(mr)||""):!0;return n.loading?[]:[..._e.createdOptions,...n.options].reduce((mr,br)=>{const Er=de(br);if(isArray$5(Er)){const xr=Er.filter(dr);xr.length>0&&mr.push({label:oe(br),type:"Group"},...xr)}else(n.remote||dr(br))&&mr.push(br);return mr},[])},or=()=>{bn.value=In(_e.inputValue)},Qn=computed(()=>{const Vn=new Map;return _n.value.forEach((Kn,dr)=>{Vn.set(_r(le(Kn)),{option:Kn,index:dr})}),Vn}),Zn=computed(()=>{const Vn=new Map;return bn.value.forEach((Kn,dr)=>{Vn.set(_r(le(Kn)),{option:Kn,index:dr})}),Vn}),Gn=computed(()=>bn.value.every(Vn=>ue(Vn))),Rn=useFormSize(),Mn=computed(()=>Rn.value==="small"?"small":"default"),Bn=()=>{var Vn;if(isNumber$2(n.fitInputWidth)){Ce.value=n.fitInputWidth;return}const Kn=((Vn=Ie.value)==null?void 0:Vn.offsetWidth)||200;!n.fitInputWidth&&wn.value?nextTick(()=>{Ce.value=Math.max(Kn,qn())}):Ce.value=Kn},qn=()=>{var Vn,Kn;const mr=document.createElement("canvas").getContext("2d"),br=g.be("dropdown","item"),xr=(((Kn=(Vn=ze.value)==null?void 0:Vn.listRef)==null?void 0:Kn.innerRef)||document).querySelector(`.${br}`);if(xr===null||mr===null)return 0;const Nr=getComputedStyle(xr),Ar=Number.parseFloat(Nr.paddingLeft)+Number.parseFloat(Nr.paddingRight);return mr.font=`bold ${Nr.font.replace(new RegExp(`\\b${Nr.fontWeight}\\b`),"")}`,bn.value.reduce((Ir,Vr)=>{const Fr=mr.measureText(oe(Vr));return Math.max(Fr.width,Ir)},0)+Ar},zn=()=>{if(!Ne.value)return 0;const Vn=window.getComputedStyle(Ne.value);return Number.parseFloat(Vn.gap||"6px")},jn=computed(()=>{const Vn=zn(),Kn=n.filterable?Vn+MINIMUM_INPUT_WIDTH:0;return{maxWidth:`${qe.value&&n.maxCollapseTags===1?_e.selectionWidth-_e.collapseItemWidth-Vn-Kn:_e.selectionWidth-Kn}px`}}),tr=computed(()=>({maxWidth:`${_e.selectionWidth}px`})),hr=computed(()=>isArray$5(n.modelValue)?n.modelValue.length===0&&!_e.inputValue:n.filterable?!_e.inputValue:!0),ir=computed(()=>{var Vn;const Kn=(Vn=n.placeholder)!=null?Vn:r("el.select.placeholder");return n.multiple||!En.value?Kn:_e.selectedLabel}),pr=computed(()=>{var Vn,Kn;return(Kn=(Vn=Oe.value)==null?void 0:Vn.popperRef)==null?void 0:Kn.contentRef}),rr=computed(()=>{if(n.multiple){const Vn=n.modelValue.length;if(Vn>0&&Zn.value.has(n.modelValue[Vn-1])){const{index:Kn}=Zn.value.get(n.modelValue[Vn-1]);return Kn}}else if(!pe(n.modelValue)&&Zn.value.has(n.modelValue)){const{index:Vn}=Zn.value.get(n.modelValue);return Vn}return-1}),lr=computed({get(){return Cn.value&&(n.loading||!Pn.value||n.remote&&!!i.empty)&&(!xe.value||!isEmpty(_e.previousQuery))},set(Vn){Cn.value=Vn}}),Yn=computed(()=>n.multiple?n.collapseTags?_e.cachedOptions.slice(0,n.maxCollapseTags):_e.cachedOptions:[]),er=computed(()=>n.multiple?n.collapseTags?_e.cachedOptions.slice(n.maxCollapseTags):[]:[]),{createNewOption:Fn,removeNewOption:cr,selectNewOption:Un,clearAllNewOption:gr}=useAllowCreate(n,_e),vr=Vn=>{var Kn;Lt.value||n.filterable&&Cn.value&&Vn&&!((Kn=Fe.value)!=null&&Kn.contains(Vn.target))||(_e.menuVisibleOnFocus?_e.menuVisibleOnFocus=!1:Cn.value=!Cn.value)},yr=()=>{_e.inputValue.length>0&&!Cn.value&&(Cn.value=!0),Fn(_e.inputValue),nextTick(()=>{Jn(_e.inputValue)})},Wn=useDebounceFn(()=>{yr(),xe.value=!1},Nn),Jn=Vn=>{_e.previousQuery===Vn||Et.value||(_e.previousQuery=Vn,n.filterable&&isFunction$4(n.filterMethod)?n.filterMethod(Vn):n.filterable&&n.remote&&isFunction$4(n.remoteMethod)&&n.remoteMethod(Vn),n.defaultFirstOption&&(n.filterable||n.remote)&&bn.value.length?nextTick(sr):nextTick(Mr))},sr=()=>{const Vn=bn.value.filter(mr=>!mr.disabled&&mr.type!=="Group"),Kn=Vn.find(mr=>mr.created),dr=Vn[0];_e.hoveringIndex=fr(bn.value,Kn||dr)},Sr=Vn=>{isEqual$1(n.modelValue,Vn)||t(CHANGE_EVENT,Vn)},Tr=Vn=>{t(UPDATE_MODEL_EVENT,Vn),Sr(Vn),_e.previousValue=n.multiple?String(Vn):Vn,nextTick(()=>{if(n.multiple&&isArray$5(n.modelValue)){const Kn=_e.cachedOptions.slice(),dr=n.modelValue.map(mr=>Qr(mr,Kn));isEqual$1(_e.cachedOptions,dr)||(_e.cachedOptions=dr)}else nr(!0)})},fr=(Vn=[],Kn)=>{if(!isObject$6(Kn))return Vn.indexOf(Kn);const dr=n.valueKey;let mr=-1;return Vn.some((br,Er)=>get$1(br,dr)===get$1(Kn,dr)?(mr=Er,!0):!1),mr},_r=Vn=>isObject$6(Vn)?get$1(Vn,n.valueKey):Vn,Cr=()=>{Bn()},zr=()=>{_e.selectionWidth=Number.parseFloat(window.getComputedStyle(Ne.value).width)},Ur=()=>{_e.collapseItemWidth=qe.value.getBoundingClientRect().width},jr=()=>{var Vn,Kn;(Kn=(Vn=Oe.value)==null?void 0:Vn.updatePopper)==null||Kn.call(Vn)},ai=()=>{var Vn,Kn;(Kn=(Vn=$e.value)==null?void 0:Vn.updatePopper)==null||Kn.call(Vn)},ti=Vn=>{const Kn=le(Vn);if(n.multiple){let dr=n.modelValue.slice();const mr=fr(dr,Kn);mr>-1?(dr=[...dr.slice(0,mr),...dr.slice(mr+1)],_e.cachedOptions.splice(mr,1),cr(Vn)):(n.multipleLimit<=0||dr.length{let dr=n.modelValue.slice();const mr=fr(dr,le(Kn));mr>-1&&!Lt.value&&(dr=[...n.modelValue.slice(0,mr),...n.modelValue.slice(mr+1)],_e.cachedOptions.splice(mr,1),Tr(dr),t("remove-tag",le(Kn)),cr(Kn)),Vn.stopPropagation(),Wr()},Wr=()=>{var Vn;(Vn=Ve.value)==null||Vn.focus()},ii=()=>{var Vn;if(Cn.value){Cn.value=!1,nextTick(()=>{var Kn;return(Kn=Ve.value)==null?void 0:Kn.blur()});return}(Vn=Ve.value)==null||Vn.blur()},si=()=>{_e.inputValue.length>0?_e.inputValue="":Cn.value=!1},li=Vn=>findLastIndex(Vn,Kn=>!_e.cachedOptions.some(dr=>le(dr)===Kn&&ue(dr))),ni=Vn=>{const Kn=getEventCode(Vn);if(n.multiple&&Kn!==EVENT_CODE.delete&&_e.inputValue.length===0){Vn.preventDefault();const dr=n.modelValue.slice(),mr=li(dr);if(mr<0)return;const br=dr[mr];dr.splice(mr,1);const Er=_e.cachedOptions[mr];_e.cachedOptions.splice(mr,1),cr(Er),Tr(dr),t("remove-tag",br)}},ci=()=>{let Vn;isArray$5(n.modelValue)?Vn=[]:Vn=he.value,_e.selectedLabel="",Cn.value=!1,Tr(Vn),t("clear"),gr(),Wr()},Jr=(Vn,Kn=void 0)=>{const dr=bn.value;if(!["forward","backward"].includes(Vn)||Lt.value||dr.length<=0||Gn.value||Et.value)return;if(!Cn.value)return vr();isUndefined$1(Kn)&&(Kn=_e.hoveringIndex);let mr=-1;Vn==="forward"?(mr=Kn+1,mr>=dr.length&&(mr=0)):Vn==="backward"&&(mr=Kn-1,(mr<0||mr>=dr.length)&&(mr=dr.length-1));const br=dr[mr];if(ue(br)||br.type==="Group")return Jr(Vn,mr);_e.hoveringIndex=mr,Hr(mr)},ar=()=>{if(Cn.value)~_e.hoveringIndex&&bn.value[_e.hoveringIndex]&&ti(bn.value[_e.hoveringIndex]);else return vr()},wr=Vn=>{_e.hoveringIndex=Vn??-1},Mr=()=>{if(!n.multiple)_e.hoveringIndex=bn.value.findIndex(Vn=>_r(le(Vn))===_r(n.modelValue));else{const Vn=n.modelValue.length;if(Vn>0){const Kn=n.modelValue[Vn-1];_e.hoveringIndex=bn.value.findIndex(dr=>_r(Kn)===_r(le(dr)))}else _e.hoveringIndex=-1}},Rr=Vn=>{if(_e.inputValue=Vn.target.value,n.remote)xe.value=!0,Wn();else return yr()},Dr=Vn=>{if(Cn.value=!1,hn.value){const Kn=new FocusEvent("blur",Vn);vn(Kn)}},Gr=()=>(_e.isBeforeHide=!1,nextTick(()=>{~rr.value&&Hr(rr.value)})),Hr=Vn=>{ze.value.scrollToItem(Vn)},Qr=(Vn,Kn)=>{const dr=_r(Vn);if(Qn.value.has(dr)){const{option:mr}=Qn.value.get(dr);return mr}if(Kn&&Kn.length){const mr=Kn.find(br=>_r(le(br))===dr);if(mr)return mr}return{[ae.value.value]:Vn,[ae.value.label]:Vn}},Dn=Vn=>{var Kn,dr;return(dr=(Kn=Qn.value.get(le(Vn)))==null?void 0:Kn.index)!=null?dr:-1},nr=(Vn=!1)=>{if(n.multiple)if(n.modelValue.length>0){const Kn=_e.cachedOptions.slice();_e.cachedOptions.length=0,_e.previousValue=n.modelValue.toString();for(const dr of n.modelValue){const mr=Qr(dr,Kn);_e.cachedOptions.push(mr)}}else _e.cachedOptions=[],_e.previousValue=void 0;else if(En.value){_e.previousValue=n.modelValue;const Kn=bn.value,dr=Kn.findIndex(mr=>_r(le(mr))===_r(n.modelValue));~dr?_e.selectedLabel=oe(Kn[dr]):(!_e.selectedLabel||Vn)&&(_e.selectedLabel=_r(n.modelValue))}else _e.selectedLabel="",_e.previousValue=void 0;gr(),Bn()};watch(()=>n.fitInputWidth,()=>{Bn()}),watch(Cn,Vn=>{Vn?(n.persistent||Bn(),Jn("")):(_e.inputValue="",_e.previousQuery=null,_e.isBeforeHide=!0,Fn(""))}),watch(()=>n.modelValue,(Vn,Kn)=>{var dr;(!Vn||isArray$5(Vn)&&Vn.length===0||n.multiple&&!isEqual$1(Vn.toString(),_e.previousValue)||!n.multiple&&_r(Vn)!==_r(_e.previousValue))&&nr(!0),!isEqual$1(Vn,Kn)&&n.validateEvent&&((dr=re==null?void 0:re.validate)==null||dr.call(re,"change").catch(br=>void 0))},{deep:!0}),watch(()=>n.options,()=>{const Vn=Ve.value;(!Vn||Vn&&document.activeElement!==Vn)&&nr()},{deep:!0,flush:"post"}),watch(()=>bn.value,()=>(Bn(),ze.value&&nextTick(ze.value.resetScrollTop))),watchEffect(()=>{_e.isBeforeHide||or()}),watchEffect(()=>{const{valueKey:Vn,options:Kn}=n,dr=new Map;for(const mr of Kn){const br=le(mr);let Er=br;if(isObject$6(Er)&&(Er=get$1(br,Vn)),dr.get(Er))break;dr.set(Er,!0)}}),onMounted(()=>{nr()}),useResizeObserver(Ie,Cr),useResizeObserver(Ne,zr),useResizeObserver(jt,jr),useResizeObserver(Pt,ai),useResizeObserver(qe,Ur);let ur;return watch(()=>lr.value,Vn=>{Vn?ur=useResizeObserver(ze,jr).stop:(ur==null||ur(),ur=void 0),t("visible-change",Vn)}),{inputId:ie,collapseTagSize:Mn,currentPlaceholder:ir,expanded:Cn,emptyText:On,popupHeight:Tn,debounce:Nn,allOptions:_n,allOptionsValueMap:Qn,filteredOptions:bn,iconComponent:$n,iconReverse:An,tagStyle:jn,collapseTagStyle:tr,popperSize:Ce,dropdownMenuVisible:lr,hasModelValue:En,shouldShowPlaceholder:hr,selectDisabled:Lt,selectSize:Rn,needStatusIcon:Sn,showClearBtn:kn,states:_e,isFocused:hn,nsSelect:g,nsInput:$,inputRef:Ve,menuRef:ze,tagMenuRef:Pt,tooltipRef:Oe,tagTooltipRef:$e,selectRef:Ie,wrapperRef:jt,selectionRef:Ne,prefixRef:Ue,suffixRef:Fe,collapseItemRef:qe,popperRef:pr,validateState:xn,validateIcon:Ln,showTagList:Yn,collapseTagList:er,debouncedOnInputChange:Wn,deleteTag:ri,getLabel:oe,getValue:le,getDisabled:ue,getValueKey:_r,getIndex:Dn,handleClear:ci,handleClickOutside:Dr,handleDel:ni,handleEsc:si,focus:Wr,blur:ii,handleMenuEnter:Gr,handleResize:Cr,resetSelectionWidth:zr,updateTooltip:jr,updateTagTooltip:ai,updateOptions:or,toggleMenu:vr,scrollTo:Hr,onInput:Rr,onKeyboardNavigate:Jr,onKeyboardSelect:ar,onSelect:ti,onHover:wr,handleCompositionStart:kt,handleCompositionEnd:At,handleCompositionUpdate:Dt}},_sfc_main$1c=defineComponent({name:"ElSelectV2",components:{ElSelectMenu,ElTag,ElTooltip,ElIcon},directives:{ClickOutside},props:selectV2Props,emits:selectV2Emits,setup(n,{emit:t}){const r=computed(()=>{const{modelValue:ie,multiple:ae}=n,oe=ae?[]:void 0;return isArray$5(ie)?ae?ie:oe:ae?oe:ie}),i=useSelect$1(reactive({...toRefs(n),modelValue:r}),t),{calculatorRef:g,inputStyle:$}=useCalcInputWidth(),V=useId();provide(selectV2InjectionKey,{props:reactive({...toRefs(n),height:i.popupHeight,modelValue:r}),expanded:i.expanded,tooltipRef:i.tooltipRef,contentId:V,onSelect:i.onSelect,onHover:i.onHover,onKeyboardNavigate:i.onKeyboardNavigate,onKeyboardSelect:i.onKeyboardSelect});const re=computed(()=>n.multiple?i.states.cachedOptions.map(ie=>i.getLabel(ie)):i.states.selectedLabel);return{...i,modelValue:r,selectedLabel:re,calculatorRef:g,inputStyle:$,contentId:V,BORDER_HORIZONTAL_WIDTH}}}),_hoisted_1$K=["id","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],_hoisted_2$w=["textContent"],_hoisted_3$d={key:1};function _sfc_render$5(n,t,r,i,g,$){const V=resolveComponent("el-tag"),re=resolveComponent("el-tooltip"),ie=resolveComponent("el-icon"),ae=resolveComponent("el-select-menu"),oe=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectRef",class:normalizeClass([n.nsSelect.b(),n.nsSelect.m(n.selectSize)]),onMouseenter:t[15]||(t[15]=le=>n.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=le=>n.states.inputHovering=!1)},[createVNode$1(re,{ref:"tooltipRef",visible:n.dropdownMenuVisible,teleported:n.teleported,"popper-class":[n.nsSelect.e("popper"),n.popperClass],"popper-style":n.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":n.popperOptions,"fallback-placements":n.fallbackPlacements,effect:n.effect,placement:n.placement,pure:"",transition:`${n.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:n.persistent,"append-to":n.appendTo,"show-arrow":n.showArrow,offset:n.offset,onBeforeShow:n.handleMenuEnter,onHide:t[14]||(t[14]=le=>n.states.isBeforeHide=!1)},{default:withCtx(()=>{var le,ue;return[createBaseVNode("div",{ref:"wrapperRef",class:normalizeClass([n.nsSelect.e("wrapper"),n.nsSelect.is("focused",n.isFocused),n.nsSelect.is("hovering",n.states.inputHovering),n.nsSelect.is("filterable",n.filterable),n.nsSelect.is("disabled",n.selectDisabled)]),onClick:t[11]||(t[11]=withModifiers((...de)=>n.toggleMenu&&n.toggleMenu(...de),["prevent"]))},[n.$slots.prefix?(openBlock(),createElementBlock("div",{key:0,ref:"prefixRef",class:normalizeClass(n.nsSelect.e("prefix"))},[renderSlot(n.$slots,"prefix")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"selectionRef",class:normalizeClass([n.nsSelect.e("selection"),n.nsSelect.is("near",n.multiple&&!n.$slots.prefix&&!!n.modelValue.length)])},[n.multiple?renderSlot(n.$slots,"tag",{key:0,data:n.states.cachedOptions,deleteTag:n.deleteTag,selectDisabled:n.selectDisabled},()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.showTagList,de=>(openBlock(),createElementBlock("div",{key:n.getValueKey(n.getValue(de)),class:normalizeClass(n.nsSelect.e("selected-item"))},[createVNode$1(V,{closable:!n.selectDisabled&&!n.getDisabled(de),size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",style:normalizeStyle$1(n.tagStyle),onClose:he=>n.deleteTag(he,de)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(n.nsSelect.e("tags-text"))},[renderSlot(n.$slots,"label",{index:n.getIndex(de),label:n.getLabel(de),value:n.getValue(de)},()=>[createTextVNode(toDisplayString(n.getLabel(de)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),n.collapseTags&&n.modelValue.length>n.maxCollapseTags?(openBlock(),createBlock(re,{key:0,ref:"tagTooltipRef",disabled:n.dropdownMenuVisible||!n.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:n.effect,placement:"bottom","popper-class":n.popperClass,"popper-style":n.popperStyle,teleported:n.teleported,"popper-options":n.popperOptions},{default:withCtx(()=>[createBaseVNode("div",{ref:"collapseItemRef",class:normalizeClass(n.nsSelect.e("selected-item"))},[createVNode$1(V,{closable:!1,size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,style:normalizeStyle$1(n.collapseTagStyle),"disable-transitions":""},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(n.nsSelect.e("tags-text"))}," + "+toDisplayString(n.modelValue.length-n.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:withCtx(()=>[createBaseVNode("div",{ref:"tagMenuRef",class:normalizeClass(n.nsSelect.e("selection"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.collapseTagList,de=>(openBlock(),createElementBlock("div",{key:n.getValueKey(n.getValue(de)),class:normalizeClass(n.nsSelect.e("selected-item"))},[createVNode$1(V,{class:"in-tooltip",closable:!n.selectDisabled&&!n.getDisabled(de),size:n.collapseTagSize,type:n.tagType,effect:n.tagEffect,"disable-transitions":"",onClose:he=>n.deleteTag(he,de)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(n.nsSelect.e("tags-text"))},[renderSlot(n.$slots,"label",{index:n.getIndex(de),label:n.getLabel(de),value:n.getValue(de)},()=>[createTextVNode(toDisplayString(n.getLabel(de)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","popper-style","teleported","popper-options"])):createCommentVNode("v-if",!0)]):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([n.nsSelect.e("selected-item"),n.nsSelect.e("input-wrapper"),n.nsSelect.is("hidden",!n.filterable||n.selectDisabled)])},[withDirectives(createBaseVNode("input",{id:n.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=de=>n.states.inputValue=de),style:normalizeStyle$1(n.inputStyle),autocomplete:n.autocomplete,tabindex:n.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":n.expanded,"aria-label":n.ariaLabel,class:normalizeClass([n.nsSelect.e("input"),n.nsSelect.is(n.selectSize)]),disabled:n.selectDisabled,role:"combobox","aria-controls":n.contentId,"aria-activedescendant":n.states.hoveringIndex>=0?`${n.contentId}-${n.states.hoveringIndex}`:"",readonly:!n.filterable,spellcheck:"false",type:"text",name:n.name,onInput:t[1]||(t[1]=(...de)=>n.onInput&&n.onInput(...de)),onCompositionstart:t[2]||(t[2]=(...de)=>n.handleCompositionStart&&n.handleCompositionStart(...de)),onCompositionupdate:t[3]||(t[3]=(...de)=>n.handleCompositionUpdate&&n.handleCompositionUpdate(...de)),onCompositionend:t[4]||(t[4]=(...de)=>n.handleCompositionEnd&&n.handleCompositionEnd(...de)),onKeydown:[t[5]||(t[5]=withKeys(withModifiers(de=>n.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=withKeys(withModifiers(de=>n.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=withKeys(withModifiers((...de)=>n.onKeyboardSelect&&n.onKeyboardSelect(...de),["stop","prevent"]),["enter"])),t[8]||(t[8]=withKeys(withModifiers((...de)=>n.handleEsc&&n.handleEsc(...de),["stop","prevent"]),["esc"])),t[9]||(t[9]=withKeys(withModifiers((...de)=>n.handleDel&&n.handleDel(...de),["stop"]),["delete"]))],onClick:t[10]||(t[10]=withModifiers((...de)=>n.toggleMenu&&n.toggleMenu(...de),["stop"]))},null,46,_hoisted_1$K),[[vModelText,n.states.inputValue]]),n.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass(n.nsSelect.e("input-calculator")),textContent:toDisplayString(n.states.inputValue)},null,10,_hoisted_2$w)):createCommentVNode("v-if",!0)],2),n.shouldShowPlaceholder?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([n.nsSelect.e("selected-item"),n.nsSelect.e("placeholder"),n.nsSelect.is("transparent",!n.hasModelValue||n.expanded&&!n.states.inputValue)])},[n.hasModelValue?renderSlot(n.$slots,"label",{key:0,index:(ue=(le=n.allOptionsValueMap.get(n.modelValue))==null?void 0:le.index)!=null?ue:-1,label:n.currentPlaceholder,value:n.modelValue},()=>[createBaseVNode("span",null,toDisplayString(n.currentPlaceholder),1)]):(openBlock(),createElementBlock("span",_hoisted_3$d,toDisplayString(n.currentPlaceholder),1))],2)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{ref:"suffixRef",class:normalizeClass(n.nsSelect.e("suffix"))},[n.iconComponent?withDirectives((openBlock(),createBlock(ie,{key:0,class:normalizeClass([n.nsSelect.e("caret"),n.nsInput.e("icon"),n.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.iconComponent)))]),_:1},8,["class"])),[[vShow,!n.showClearBtn]]):createCommentVNode("v-if",!0),n.showClearBtn&&n.clearIcon?(openBlock(),createBlock(ie,{key:1,class:normalizeClass([n.nsSelect.e("caret"),n.nsInput.e("icon"),n.nsSelect.e("clear")]),onClick:withModifiers(n.handleClear,["prevent","stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),n.validateState&&n.validateIcon&&n.needStatusIcon?(openBlock(),createBlock(ie,{key:2,class:normalizeClass([n.nsInput.e("icon"),n.nsInput.e("validateIcon"),n.nsInput.is("loading",n.validateState==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)]}),content:withCtx(()=>[createVNode$1(ae,{id:n.contentId,ref:"menuRef",data:n.filteredOptions,width:n.popperSize-n.BORDER_HORIZONTAL_WIDTH,"hovering-index":n.states.hoveringIndex,"scrollbar-always-on":n.scrollbarAlwaysOn,"aria-label":n.ariaLabel},createSlots({default:withCtx(le=>[renderSlot(n.$slots,"default",normalizeProps(guardReactiveProps(le)))]),_:2},[n.$slots.header?{name:"header",fn:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(n.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=withModifiers(()=>{},["stop"]))},[renderSlot(n.$slots,"header")],2)]),key:"0"}:void 0,n.$slots.loading&&n.loading?{name:"loading",fn:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(n.nsSelect.be("dropdown","loading"))},[renderSlot(n.$slots,"loading")],2)]),key:"1"}:n.loading||n.filteredOptions.length===0?{name:"empty",fn:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(n.nsSelect.be("dropdown","empty"))},[renderSlot(n.$slots,"empty",{},()=>[createBaseVNode("span",null,toDisplayString(n.emptyText),1)])],2)]),key:"2"}:void 0,n.$slots.footer?{name:"footer",fn:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(n.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=withModifiers(()=>{},["stop"]))},[renderSlot(n.$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)),[[oe,n.handleClickOutside,n.popperRef]])}var Select=_export_sfc(_sfc_main$1c,[["render",_sfc_render$5],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);const ElSelectV2=withInstall(Select),skeletonProps=buildProps({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:definePropType([Number,Object])}}),skeletonItemProps=buildProps({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),_sfc_main$1b=defineComponent({name:"ElSkeletonItem",__name:"skeleton-item",props:skeletonItemProps,setup(n){const t=useNamespace("skeleton");return(r,i)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(t).e("item"),unref(t).e(r.variant)])},[r.variant==="image"?(openBlock(),createBlock(unref(picture_filled_default),{key:0})):createCommentVNode("v-if",!0)],2))}});var SkeletonItem=_export_sfc(_sfc_main$1b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const useThrottleRender=(n,t=0)=>{if(t===0)return n;const r=isObject$6(t)&&!!t.initVal,i=ref(r);let g=null;const $=re=>{if(isUndefined$1(re)){i.value=n.value;return}g&&clearTimeout(g),g=setTimeout(()=>{i.value=n.value},re)},V=re=>{re==="leading"?isNumber$2(t)?$(t):$(t.leading):isObject$6(t)?$(t.trailing):i.value=!1};return onMounted(()=>V("leading")),watch(()=>n.value,re=>{V(re?"leading":"trailing")}),i},_sfc_main$1a=defineComponent({name:"ElSkeleton",__name:"skeleton",props:skeletonProps,setup(n,{expose:t}){const r=n,i=useNamespace("skeleton"),g=useThrottleRender(toRef$1(r,"loading"),r.throttle);return t({uiLoading:g}),($,V)=>unref(g)?(openBlock(),createElementBlock("div",mergeProps({key:0,class:[unref(i).b(),unref(i).is("animated",$.animated)]},$.$attrs),[(openBlock(!0),createElementBlock(Fragment,null,renderList($.count,re=>(openBlock(),createElementBlock(Fragment,{key:re},[unref(g)?renderSlot($.$slots,"template",{key:re},()=>[createVNode$1(SkeletonItem,{class:normalizeClass(unref(i).is("first")),variant:"p"},null,8,["class"]),(openBlock(!0),createElementBlock(Fragment,null,renderList($.rows,ie=>(openBlock(),createBlock(SkeletonItem,{key:ie,class:normalizeClass([unref(i).e("paragraph"),unref(i).is("last",ie===$.rows&&$.rows>1)]),variant:"p"},null,8,["class"]))),128))]):createCommentVNode("v-if",!0)],64))),128))],16)):renderSlot($.$slots,"default",normalizeProps(mergeProps({key:1},$.$attrs)))}});var Skeleton$1=_export_sfc(_sfc_main$1a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const ElSkeleton=withInstall(Skeleton$1,{SkeletonItem}),ElSkeletonItem=withNoopInstall(SkeletonItem),sliderContextKey=Symbol("sliderContextKey"),sliderProps=buildProps({modelValue:{type:definePropType([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:useSizeProp,inputSize:useSizeProp,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:definePropType(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:definePropType(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ee,default:"top"},marks:{type:definePropType(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...useAriaProps(["ariaLabel"])}),isValidValue$1=n=>isNumber$2(n)||isArray$5(n)&&n.every(isNumber$2),sliderEmits={[UPDATE_MODEL_EVENT]:isValidValue$1,[INPUT_EVENT]:isValidValue$1,[CHANGE_EVENT]:isValidValue$1},sliderButtonProps=buildProps({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ee,default:"top"}}),sliderButtonEmits={[UPDATE_MODEL_EVENT]:n=>isNumber$2(n)},useTooltip=(n,t,r)=>{const i=ref(),g=ref(!1),$=computed(()=>t.value instanceof Function),V=computed(()=>$.value&&t.value(n.modelValue)||n.modelValue),re=debounce(()=>{r.value&&(g.value=!0)},50),ie=debounce(()=>{r.value&&(g.value=!1)},50);return{tooltip:i,tooltipVisible:g,formatValue:V,displayTooltip:re,hideTooltip:ie}},useSliderButton=(n,t,r)=>{const{disabled:i,min:g,max:$,step:V,showTooltip:re,persistent:ie,precision:ae,sliderSize:oe,formatTooltip:le,emitChange:ue,resetSize:de,updateDragging:he}=inject(sliderContextKey),{tooltip:pe,tooltipVisible:_e,formatValue:Ce,displayTooltip:xe,hideTooltip:Ie}=useTooltip(n,le,re),Ne=ref(),Oe=computed(()=>`${(n.modelValue-g.value)/($.value-g.value)*100}%`),$e=computed(()=>n.vertical?{bottom:Oe.value}:{left:Oe.value}),Ve=()=>{t.hovering=!0,xe()},Ue=()=>{t.hovering=!1,t.dragging||Ie()},Fe=bn=>{i.value||(bn.preventDefault(),hn(bn),window.addEventListener("mousemove",vn),window.addEventListener("touchmove",vn),window.addEventListener("mouseup",_n),window.addEventListener("touchend",_n),window.addEventListener("contextmenu",_n),Ne.value.focus())},ze=bn=>{i.value||(t.newPosition=Number.parseFloat(Oe.value)+bn/($.value-g.value)*100,wn(t.newPosition),ue())},Pt=()=>{ze(-V.value)},qe=()=>{ze(V.value)},Et=()=>{ze(-V.value*4)},kt=()=>{ze(V.value*4)},At=()=>{i.value||(wn(0),ue())},Dt=()=>{i.value||(wn(100),ue())},Lt=bn=>{const Cn=getEventCode(bn);let Sn=!0;switch(Cn){case EVENT_CODE.left:case EVENT_CODE.down:Pt();break;case EVENT_CODE.right:case EVENT_CODE.up:qe();break;case EVENT_CODE.home:At();break;case EVENT_CODE.end:Dt();break;case EVENT_CODE.pageDown:Et();break;case EVENT_CODE.pageUp:kt();break;default:Sn=!1;break}Sn&&bn.preventDefault()},jt=bn=>{let Cn,Sn;return bn.type.startsWith("touch")?(Sn=bn.touches[0].clientY,Cn=bn.touches[0].clientX):(Sn=bn.clientY,Cn=bn.clientX),{clientX:Cn,clientY:Sn}},hn=bn=>{t.dragging=!0,t.isClick=!0;const{clientX:Cn,clientY:Sn}=jt(bn);n.vertical?t.startY=Sn:t.startX=Cn,t.startPosition=Number.parseFloat(Oe.value),t.newPosition=t.startPosition},vn=bn=>{if(t.dragging){t.isClick=!1,xe(),de();let Cn;const{clientX:Sn,clientY:Tn}=jt(bn);n.vertical?(t.currentY=Tn,Cn=(t.startY-t.currentY)/oe.value*100):(t.currentX=Sn,Cn=(t.currentX-t.startX)/oe.value*100),t.newPosition=t.startPosition+Cn,wn(t.newPosition)}},_n=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||Ie(),t.isClick||wn(t.newPosition),ue()},0),window.removeEventListener("mousemove",vn),window.removeEventListener("touchmove",vn),window.removeEventListener("mouseup",_n),window.removeEventListener("touchend",_n),window.removeEventListener("contextmenu",_n))},wn=async bn=>{if(bn===null||Number.isNaN(+bn))return;bn=clamp$3(bn,0,100);const Cn=Math.floor(($.value-g.value)/V.value),Sn=Cn*V.value/($.value-g.value)*100,Tn=Sn+(100-Sn)/2;let En;if(bnt.dragging,bn=>{he(bn)}),useEventListener(Ne,"touchstart",Fe,{passive:!1}),{disabled:i,button:Ne,tooltip:pe,tooltipVisible:_e,showTooltip:re,persistent:ie,wrapperStyle:$e,formatValue:Ce,handleMouseEnter:Ve,handleMouseLeave:Ue,onButtonDown:Fe,onKeyDown:Lt,setPosition:wn}},_hoisted_1$J=["tabindex"],_sfc_main$19=defineComponent({name:"ElSliderButton",__name:"button",props:sliderButtonProps,emits:sliderButtonEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("slider"),V=reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:i.modelValue}),re=computed(()=>le.value?ue.value:!1),{disabled:ie,button:ae,tooltip:oe,showTooltip:le,persistent:ue,tooltipVisible:de,wrapperStyle:he,formatValue:pe,handleMouseEnter:_e,handleMouseLeave:Ce,onButtonDown:xe,onKeyDown:Ie,setPosition:Ne}=useSliderButton(i,V,g),{hovering:Oe,dragging:$e}=toRefs(V);return t({onButtonDown:xe,onKeyDown:Ie,setPosition:Ne,hovering:Oe,dragging:$e}),(Ve,Ue)=>(openBlock(),createElementBlock("div",{ref_key:"button",ref:ae,class:normalizeClass([unref($).e("button-wrapper"),{hover:unref(Oe),dragging:unref($e)}]),style:normalizeStyle$1(unref(he)),tabindex:unref(ie)?void 0:0,onMouseenter:Ue[0]||(Ue[0]=(...Fe)=>unref(_e)&&unref(_e)(...Fe)),onMouseleave:Ue[1]||(Ue[1]=(...Fe)=>unref(Ce)&&unref(Ce)(...Fe)),onMousedown:Ue[2]||(Ue[2]=(...Fe)=>unref(xe)&&unref(xe)(...Fe)),onFocus:Ue[3]||(Ue[3]=(...Fe)=>unref(_e)&&unref(_e)(...Fe)),onBlur:Ue[4]||(Ue[4]=(...Fe)=>unref(Ce)&&unref(Ce)(...Fe)),onKeydown:Ue[5]||(Ue[5]=(...Fe)=>unref(Ie)&&unref(Ie)(...Fe))},[createVNode$1(unref(ElTooltip),{ref_key:"tooltip",ref:oe,visible:unref(de),placement:Ve.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":Ve.tooltipClass,disabled:!unref(le),persistent:re.value},{content:withCtx(()=>[createBaseVNode("span",null,toDisplayString(unref(pe)),1)]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([unref($).e("button"),{hover:unref(Oe),dragging:unref($e)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,_hoisted_1$J))}});var SliderButton=_export_sfc(_sfc_main$19,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const sliderMarkerProps=buildProps({mark:{type:definePropType([String,Object]),default:void 0}});var SliderMarker=defineComponent({name:"ElSliderMarker",props:sliderMarkerProps,setup(n){const t=useNamespace("slider"),r=computed(()=>isString$2(n.mark)?n.mark:n.mark.label),i=computed(()=>isString$2(n.mark)?void 0:n.mark.style);return()=>h$1("div",{class:t.e("marks-text"),style:i.value},r.value)}});const useSlide=(n,t,r)=>{const{formItem:i}=useFormItem(),g=shallowRef(),$=ref(),V=ref(),re={firstButton:$,secondButton:V},ie=useFormDisabled(),ae=computed(()=>Math.min(t.firstValue,t.secondValue)),oe=computed(()=>Math.max(t.firstValue,t.secondValue)),le=computed(()=>n.range?`${100*(oe.value-ae.value)/(n.max-n.min)}%`:`${100*(t.firstValue-n.min)/(n.max-n.min)}%`),ue=computed(()=>n.range?`${100*(ae.value-n.min)/(n.max-n.min)}%`:"0%"),de=computed(()=>n.vertical?{height:n.height}:{}),he=computed(()=>n.vertical?{height:le.value,bottom:ue.value}:{width:le.value,left:ue.value}),pe=()=>{if(g.value){const Pt=g.value.getBoundingClientRect();t.sliderSize=Pt[n.vertical?"height":"width"]}},_e=Pt=>{const qe=n.min+Pt*(n.max-n.min)/100;if(!n.range)return $;let Et;return Math.abs(ae.value-qe)t.secondValue?"firstButton":"secondButton",re[Et]},Ce=Pt=>{const qe=_e(Pt);return qe.value.setPosition(Pt),qe},xe=Pt=>{t.firstValue=Pt??n.min,Ne(n.range?[ae.value,oe.value]:Pt??n.min)},Ie=Pt=>{t.secondValue=Pt,n.range&&Ne([ae.value,oe.value])},Ne=Pt=>{r(UPDATE_MODEL_EVENT,Pt),r(INPUT_EVENT,Pt)},Oe=async()=>{await nextTick(),r(CHANGE_EVENT,n.range?[ae.value,oe.value]:n.modelValue)},$e=Pt=>{var qe,Et,kt,At,Dt,Lt;if(ie.value||t.dragging)return;pe();let jt=0;if(n.vertical){const hn=(kt=(Et=(qe=Pt.touches)==null?void 0:qe.item(0))==null?void 0:Et.clientY)!=null?kt:Pt.clientY;jt=(g.value.getBoundingClientRect().bottom-hn)/t.sliderSize*100}else{const hn=(Lt=(Dt=(At=Pt.touches)==null?void 0:At.item(0))==null?void 0:Dt.clientX)!=null?Lt:Pt.clientX,vn=g.value.getBoundingClientRect().left;jt=(hn-vn)/t.sliderSize*100}if(!(jt<0||jt>100))return Ce(jt)};return{elFormItem:i,slider:g,firstButton:$,secondButton:V,sliderDisabled:ie,minValue:ae,maxValue:oe,runwayStyle:de,barStyle:he,resetSize:pe,setPosition:Ce,emitChange:Oe,onSliderWrapperPrevent:Pt=>{var qe,Et;((qe=re.firstButton.value)!=null&&qe.dragging||(Et=re.secondButton.value)!=null&&Et.dragging)&&Pt.preventDefault()},onSliderClick:Pt=>{$e(Pt)&&Oe()},onSliderDown:async Pt=>{const qe=$e(Pt);qe&&(await nextTick(),qe.value.onButtonDown(Pt))},onSliderMarkerDown:Pt=>{if(ie.value||t.dragging)return;Ce(Pt)&&Oe()},setFirstValue:xe,setSecondValue:Ie}},useStops=(n,t,r,i)=>({stops:computed(()=>{if(!n.showStops||n.min>n.max)return[];if(n.step===0)return[];const V=Math.ceil((n.max-n.min)/n.step),re=100*n.step/(n.max-n.min),ie=Array.from({length:V-1}).map((ae,oe)=>(oe+1)*re);return n.range?ie.filter(ae=>ae<100*(r.value-n.min)/(n.max-n.min)||ae>100*(i.value-n.min)/(n.max-n.min)):ie.filter(ae=>ae>100*(t.firstValue-n.min)/(n.max-n.min))}),getStopStyle:V=>n.vertical?{bottom:`${V}%`}:{left:`${V}%`}}),useMarks=n=>computed(()=>n.marks?Object.keys(n.marks).map(Number.parseFloat).sort((r,i)=>r-i).filter(r=>r<=n.max&&r>=n.min).map(r=>({point:r,position:(r-n.min)*100/(n.max-n.min),mark:n.marks[r]})):[]),useWatch=(n,t,r,i,g,$)=>{const V=ae=>{g(UPDATE_MODEL_EVENT,ae),g(INPUT_EVENT,ae)},re=()=>n.range?![r.value,i.value].every((ae,oe)=>ae===t.oldValue[oe]):n.modelValue!==t.oldValue,ie=()=>{var ae,oe;n.min>n.max&&throwError$1("Slider","min should not be greater than max.");const le=n.modelValue;n.range&&isArray$5(le)?le[1]n.max?V([n.max,n.max]):le[0]n.max?V([le[0],n.max]):(t.firstValue=le[0],t.secondValue=le[1],re()&&(n.validateEvent&&((ae=$==null?void 0:$.validate)==null||ae.call($,"change").catch(ue=>void 0)),t.oldValue=le.slice())):!n.range&&isNumber$2(le)&&!Number.isNaN(le)&&(len.max?V(n.max):(t.firstValue=le,re()&&(n.validateEvent&&((oe=$==null?void 0:$.validate)==null||oe.call($,"change").catch(ue=>void 0)),t.oldValue=le)))};ie(),watch(()=>t.dragging,ae=>{ae||ie()}),watch(()=>n.modelValue,(ae,oe)=>{t.dragging||isArray$5(ae)&&isArray$5(oe)&&ae.every((le,ue)=>le===oe[ue])&&t.firstValue===ae[0]&&t.secondValue===ae[1]||ie()},{deep:!0}),watch(()=>[n.min,n.max],()=>{ie()})},useLifecycle=(n,t,r)=>{const i=ref();return onMounted(async()=>{n.range?(isArray$5(n.modelValue)?(t.firstValue=Math.max(n.min,n.modelValue[0]),t.secondValue=Math.min(n.max,n.modelValue[1])):(t.firstValue=n.min,t.secondValue=n.max),t.oldValue=[t.firstValue,t.secondValue]):(!isNumber$2(n.modelValue)||Number.isNaN(n.modelValue)?t.firstValue=n.min:t.firstValue=Math.min(n.max,Math.max(n.min,n.modelValue)),t.oldValue=t.firstValue),useEventListener(window,"resize",r),await nextTick(),r()}),{sliderWrapper:i}},_hoisted_1$I=["id","role","aria-label","aria-labelledby"],_hoisted_2$v={key:1},_sfc_main$18=defineComponent({name:"ElSlider",__name:"slider",props:sliderProps,emits:sliderEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("slider"),{t:V}=useLocale(),re=reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:ie,slider:ae,firstButton:oe,secondButton:le,sliderDisabled:ue,minValue:de,maxValue:he,runwayStyle:pe,barStyle:_e,resetSize:Ce,emitChange:xe,onSliderWrapperPrevent:Ie,onSliderClick:Ne,onSliderDown:Oe,onSliderMarkerDown:$e,setFirstValue:Ve,setSecondValue:Ue}=useSlide(i,re,g),{stops:Fe,getStopStyle:ze}=useStops(i,re,de,he),{inputId:Pt,isLabeledByFormItem:qe}=useFormItemInputId(i,{formItemContext:ie}),Et=useFormSize(),kt=computed(()=>i.inputSize||Et.value),At=computed(()=>i.ariaLabel||V("el.slider.defaultLabel",{min:i.min,max:i.max})),Dt=computed(()=>i.range?i.rangeStartLabel||V("el.slider.defaultRangeStartLabel"):At.value),Lt=computed(()=>i.formatValueText?i.formatValueText(Cn.value):`${Cn.value}`),jt=computed(()=>i.rangeEndLabel||V("el.slider.defaultRangeEndLabel")),hn=computed(()=>i.formatValueText?i.formatValueText(Sn.value):`${Sn.value}`),vn=computed(()=>[$.b(),$.m(Et.value),$.is("vertical",i.vertical),{[$.m("with-input")]:i.showInput}]),_n=useMarks(i);useWatch(i,re,de,he,g,ie);const wn=computed(()=>{const kn=[i.min,i.max,i.step].map($n=>{const An=`${$n}`.split(".")[1];return An?An.length:0});return Math.max.apply(null,kn)}),{sliderWrapper:bn}=useLifecycle(i,re,Ce),{firstValue:Cn,secondValue:Sn,sliderSize:Tn}=toRefs(re),En=kn=>{re.dragging=kn};return useEventListener(bn,"touchstart",Ie,{passive:!1}),useEventListener(bn,"touchmove",Ie,{passive:!1}),provide(sliderContextKey,{...toRefs(i),sliderSize:Tn,disabled:ue,precision:wn,emitChange:xe,resetSize:Ce,updateDragging:En}),t({onSliderClick:Ne}),(kn,$n)=>{var An,xn;return openBlock(),createElementBlock("div",{id:kn.range?unref(Pt):void 0,ref_key:"sliderWrapper",ref:bn,class:normalizeClass(vn.value),role:kn.range?"group":void 0,"aria-label":kn.range&&!unref(qe)?At.value:void 0,"aria-labelledby":kn.range&&unref(qe)?(An=unref(ie))==null?void 0:An.labelId:void 0},[createBaseVNode("div",{ref_key:"slider",ref:ae,class:normalizeClass([unref($).e("runway"),{"show-input":kn.showInput&&!kn.range},unref($).is("disabled",unref(ue))]),style:normalizeStyle$1(unref(pe)),onMousedown:$n[0]||($n[0]=(...Ln)=>unref(Oe)&&unref(Oe)(...Ln)),onTouchstartPassive:$n[1]||($n[1]=(...Ln)=>unref(Oe)&&unref(Oe)(...Ln))},[createBaseVNode("div",{class:normalizeClass(unref($).e("bar")),style:normalizeStyle$1(unref(_e))},null,6),createVNode$1(SliderButton,{id:kn.range?void 0:unref(Pt),ref_key:"firstButton",ref:oe,"model-value":unref(Cn),vertical:kn.vertical,"tooltip-class":kn.tooltipClass,placement:kn.placement,role:"slider","aria-label":kn.range||!unref(qe)?Dt.value:void 0,"aria-labelledby":!kn.range&&unref(qe)?(xn=unref(ie))==null?void 0:xn.labelId:void 0,"aria-valuemin":kn.min,"aria-valuemax":kn.range?unref(Sn):kn.max,"aria-valuenow":unref(Cn),"aria-valuetext":Lt.value,"aria-orientation":kn.vertical?"vertical":"horizontal","aria-disabled":unref(ue),"onUpdate:modelValue":unref(Ve)},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"]),kn.range?(openBlock(),createBlock(SliderButton,{key:0,ref_key:"secondButton",ref:le,"model-value":unref(Sn),vertical:kn.vertical,"tooltip-class":kn.tooltipClass,placement:kn.placement,role:"slider","aria-label":jt.value,"aria-valuemin":unref(Cn),"aria-valuemax":kn.max,"aria-valuenow":unref(Sn),"aria-valuetext":hn.value,"aria-orientation":kn.vertical?"vertical":"horizontal","aria-disabled":unref(ue),"onUpdate:modelValue":unref(Ue)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):createCommentVNode("v-if",!0),kn.showStops?(openBlock(),createElementBlock("div",_hoisted_2$v,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fe),(Ln,Nn)=>(openBlock(),createElementBlock("div",{key:Nn,class:normalizeClass(unref($).e("stop")),style:normalizeStyle$1(unref(ze)(Ln))},null,6))),128))])):createCommentVNode("v-if",!0),unref(_n).length>0?(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(_n),(Ln,Nn)=>(openBlock(),createElementBlock("div",{key:Nn,style:normalizeStyle$1(unref(ze)(Ln.position)),class:normalizeClass([unref($).e("stop"),unref($).e("marks-stop")])},null,6))),128))]),createBaseVNode("div",{class:normalizeClass(unref($).e("marks"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(_n),(Ln,Nn)=>(openBlock(),createBlock(unref(SliderMarker),{key:Nn,mark:Ln.mark,style:normalizeStyle$1(unref(ze)(Ln.position)),onMousedown:withModifiers(Pn=>unref($e)(Ln.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):createCommentVNode("v-if",!0)],38),kn.showInput&&!kn.range?(openBlock(),createBlock(unref(ElInputNumber),{key:0,ref:"input","model-value":unref(Cn),class:normalizeClass(unref($).e("input")),step:kn.step,disabled:unref(ue),controls:kn.showInputControls,min:kn.min,max:kn.max,precision:wn.value,size:kt.value,"onUpdate:modelValue":unref(Ve),onChange:unref(xe)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):createCommentVNode("v-if",!0)],10,_hoisted_1$I)}}});var Slider=_export_sfc(_sfc_main$18,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const ElSlider=withInstall(Slider),spaceItemProps=buildProps({prefixCls:{type:String}}),SpaceItem=defineComponent({name:"ElSpaceItem",props:spaceItemProps,setup(n,{slots:t}){const r=useNamespace("space"),i=computed(()=>`${n.prefixCls||r.b()}__item`);return()=>h$1("div",{class:i.value},renderSlot(t,"default"))}}),SIZE_MAP={small:8,default:12,large:16};function useSpace(n){const t=useNamespace("space"),r=computed(()=>[t.b(),t.m(n.direction),n.class]),i=ref(0),g=ref(0),$=computed(()=>{const re=n.wrap||n.fill?{flexWrap:"wrap"}:{},ie={alignItems:n.alignment},ae={rowGap:`${g.value}px`,columnGap:`${i.value}px`};return[re,ie,ae,n.style]}),V=computed(()=>n.fill?{flexGrow:1,minWidth:`${n.fillRatio}%`}:{});return watchEffect(()=>{const{size:re="small",wrap:ie,direction:ae,fill:oe}=n;if(isArray$5(re)){const[le=0,ue=0]=re;i.value=le,g.value=ue}else{let le;isNumber$2(re)?le=re:le=SIZE_MAP[re||"small"]||SIZE_MAP.small,(ie||oe)&&ae==="horizontal"?i.value=g.value=le:ae==="horizontal"?(i.value=le,g.value=0):(g.value=le,i.value=0)}}),{classes:r,containerStyle:$,itemStyle:V}}const spaceProps=buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:definePropType([String,Object,Array]),default:""},style:{type:definePropType([String,Array,Object]),default:""},alignment:{type:definePropType(String),default:"center"},prefixCls:{type:String},spacer:{type:definePropType([Object,String,Number,Array]),default:null,validator:n=>isVNode(n)||isNumber$2(n)||isString$2(n)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:componentSizes,validator:n=>isNumber$2(n)||isArray$5(n)&&n.length===2&&n.every(isNumber$2)}}),Space=defineComponent({name:"ElSpace",props:spaceProps,setup(n,{slots:t}){const{classes:r,containerStyle:i,itemStyle:g}=useSpace(n);function $(V,re="",ie=[]){const{prefixCls:ae}=n;return V.forEach((oe,le)=>{isFragment(oe)?isArray$5(oe.children)&&oe.children.forEach((ue,de)=>{isFragment(ue)&&isArray$5(ue.children)?$(ue.children,`${re+de}-`,ie):isVNode(ue)&&(ue==null?void 0:ue.type)===Comment?ie.push(ue):ie.push(createVNode$1(SpaceItem,{style:g.value,prefixCls:ae,key:`nested-${re+de}`},{default:()=>[ue]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}):isValidElementNode(oe)&&ie.push(createVNode$1(SpaceItem,{style:g.value,prefixCls:ae,key:`LoopKey${re+le}`},{default:()=>[oe]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}),ie}return()=>{var V;const{spacer:re,direction:ie}=n,ae=renderSlot(t,"default",{key:0},()=>[]);if(((V=ae.children)!=null?V:[]).length===0)return null;if(isArray$5(ae.children)){let oe=$(ae.children);if(re){const le=oe.length-1;oe=oe.reduce((ue,de,he)=>{const pe=[...ue,de];return he!==le&&pe.push(createVNode$1("span",{style:[g.value,ie==="vertical"?"width: 100%":null],key:he},[isVNode(re)?re:createTextVNode(re,PatchFlags.TEXT)],PatchFlags.STYLE)),pe},[])}return createVNode$1("div",{class:r.value,style:i.value},oe,PatchFlags.STYLE|PatchFlags.CLASS)}return ae.children}}}),ElSpace=withInstall(Space),statisticProps=buildProps({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:definePropType([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:definePropType([String,Object,Array])}}),_sfc_main$17=defineComponent({name:"ElStatistic",__name:"statistic",props:statisticProps,setup(n,{expose:t}){const r=n,i=useNamespace("statistic"),g=computed(()=>{const{value:$,formatter:V,precision:re,decimalSeparator:ie,groupSeparator:ae}=r;if(isFunction$4(V))return V($);if(!isNumber$2($)||Number.isNaN($))return $;let[oe,le=""]=String($).split(".");return le=le.padEnd(re,"0").slice(0,re>0?re:0),oe=oe.replace(/\B(?=(\d{3})+(?!\d))/g,ae),[oe,le].join(le?ie:"")});return t({displayValue:g}),($,V)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(i).b())},[$.$slots.title||$.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("head"))},[renderSlot($.$slots,"title",{},()=>[createTextVNode(toDisplayString($.title),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(i).e("content"))},[$.$slots.prefix||$.prefix?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("prefix"))},[renderSlot($.$slots,"prefix",{},()=>[createBaseVNode("span",null,toDisplayString($.prefix),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(unref(i).e("number")),style:normalizeStyle$1($.valueStyle)},toDisplayString(g.value),7),$.$slots.suffix||$.suffix?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(i).e("suffix"))},[renderSlot($.$slots,"suffix",{},()=>[createBaseVNode("span",null,toDisplayString($.suffix),1)])],2)):createCommentVNode("v-if",!0)],2)],2))}});var Statistic=_export_sfc(_sfc_main$17,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const ElStatistic=withInstall(Statistic),countdownProps=buildProps({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:definePropType([Number,Object]),default:0},valueStyle:{type:definePropType([String,Object,Array])}}),countdownEmits={finish:()=>!0,[CHANGE_EVENT]:n=>isNumber$2(n)},timeUnits=[["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]],getTime$1=n=>isNumber$2(n)?new Date(n).getTime():n.valueOf(),formatTime$1=(n,t)=>{let r=n;const i=/\[([^\]]*)]/g;return timeUnits.reduce(($,[V,re])=>{const ie=new RegExp(`${V}+(?![^\\[\\]]*\\])`,"g");if(ie.test($)){const ae=Math.floor(r/re);return r-=ae*re,$.replace(ie,oe=>String(ae).padStart(oe.length,"0"))}return $},t).replace(i,"$1")},_sfc_main$16=defineComponent({name:"ElCountdown",__name:"countdown",props:countdownProps,emits:countdownEmits,setup(n,{expose:t,emit:r}){const i=n,g=r;let $;const V=ref(0),re=computed(()=>formatTime$1(V.value,i.format)),ie=le=>formatTime$1(le,i.format),ae=()=>{$&&(cAF($),$=void 0)},oe=()=>{const le=getTime$1(i.value),ue=()=>{let de=le-Date.now();g(CHANGE_EVENT,de),de<=0?(de=0,ae(),g("finish")):$=rAF(ue),V.value=de};$=rAF(ue)};return onMounted(()=>{V.value=getTime$1(i.value)-Date.now(),watch(()=>[i.value,i.format],()=>{ae(),oe()},{immediate:!0})}),onBeforeUnmount(()=>{ae()}),t({displayValue:re}),(le,ue)=>(openBlock(),createBlock(unref(ElStatistic),{value:V.value,title:le.title,prefix:le.prefix,suffix:le.suffix,"value-style":le.valueStyle,formatter:ie},createSlots({_:2},[renderList(le.$slots,(de,he)=>({name:he,fn:withCtx(()=>[renderSlot(le.$slots,he)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Countdown=_export_sfc(_sfc_main$16,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const ElCountdown=withInstall(Countdown),stepsProps=buildProps({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"}}),stepsEmits={[CHANGE_EVENT]:(n,t)=>[n,t].every(isNumber$2)},STEPS_INJECTION_KEY="ElSteps",_sfc_main$15=defineComponent({name:"ElSteps",__name:"steps",props:stepsProps,emits:stepsEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("steps"),{children:$,addChild:V,removeChild:re,ChildrenSorter:ie}=useOrderedChildren(getCurrentInstance(),"ElStep");return watch($,()=>{$.value.forEach((ae,oe)=>{ae.setIndex(oe)})}),provide(STEPS_INJECTION_KEY,{props:r,steps:$,addStep:V,removeStep:re}),watch(()=>r.active,(ae,oe)=>{i(CHANGE_EVENT,ae,oe)}),(ae,oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(g).b(),unref(g).m(ae.simple?"simple":ae.direction)])},[renderSlot(ae.$slots,"default"),createVNode$1(unref(ie))],2))}});var Steps=_export_sfc(_sfc_main$15,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const stepProps=buildProps({title:{type:String,default:""},icon:{type:iconPropType},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),_sfc_main$14=defineComponent({name:"ElStep",__name:"item",props:stepProps,setup(n){const t=n,r=useNamespace("step"),i=ref(-1),g=ref({}),$=ref(""),V=inject(STEPS_INJECTION_KEY),re=getCurrentInstance();let ie=0,ae=0;onMounted(()=>{watch([()=>V.props.active,()=>V.props.processStatus,()=>V.props.finishStatus],([Ue],[Fe])=>{ae=Fe||0,ie=Ue-ae,$e(Ue)},{immediate:!0})});const oe=computed(()=>t.status||$.value),le=computed(()=>{const Ue=V.steps.value[i.value-1];return Ue?Ue.internalStatus.value:"wait"}),ue=computed(()=>V.props.alignCenter),de=computed(()=>V.props.direction==="vertical"),he=computed(()=>V.props.simple),pe=computed(()=>V.steps.value.length),_e=computed(()=>{var Ue;return((Ue=V.steps.value[pe.value-1])==null?void 0:Ue.uid)===re.uid}),Ce=computed(()=>he.value?"":V.props.space),xe=computed(()=>[r.b(),r.is(he.value?"simple":V.props.direction),r.is("flex",_e.value&&!Ce.value&&!ue.value),r.is("center",ue.value&&!de.value&&!he.value)]),Ie=computed(()=>{const Ue={flexBasis:isNumber$2(Ce.value)?`${Ce.value}px`:Ce.value?Ce.value:`${100/(pe.value-(ue.value?0:1))}%`};return de.value||_e.value&&(Ue.maxWidth=`${100/pe.value}%`),Ue}),Ne=Ue=>{i.value=Ue},Oe=Ue=>{const Fe=Ue==="wait",Pt={transitionDelay:`${Math.abs(ie)===1?0:ie>0?(i.value+1-ae)*150:-(i.value+1-V.props.active)*150}ms`},qe=Ue===V.props.processStatus||Fe?0:100;Pt.borderWidth=qe&&!he.value?"1px":0,Pt[V.props.direction==="vertical"?"height":"width"]=`${qe}%`,g.value=Pt},$e=Ue=>{Ue>i.value?$.value=V.props.finishStatus:Ue===i.value&&le.value!=="error"?$.value=V.props.processStatus:$.value="wait";const Fe=V.steps.value[i.value-1];Fe&&Fe.calcProgress($.value)},Ve={uid:re.uid,getVnode:()=>re.vnode,currentStatus:oe,internalStatus:$,setIndex:Ne,calcProgress:Oe};return V.addStep(Ve),onBeforeUnmount(()=>{V.removeStep(Ve)}),(Ue,Fe)=>(openBlock(),createElementBlock("div",{style:normalizeStyle$1(Ie.value),class:normalizeClass(xe.value)},[createCommentVNode(" icon & line "),createBaseVNode("div",{class:normalizeClass([unref(r).e("head"),unref(r).is(oe.value)])},[he.value?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("line"))},[createBaseVNode("i",{class:normalizeClass(unref(r).e("line-inner")),style:normalizeStyle$1(g.value)},null,6)],2)),createBaseVNode("div",{class:normalizeClass([unref(r).e("icon"),unref(r).is(Ue.icon||Ue.$slots.icon?"icon":"text")])},[renderSlot(Ue.$slots,"icon",{},()=>[Ue.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(r).e("icon-inner"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ue.icon)))]),_:1},8,["class"])):oe.value==="success"?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(r).e("icon-inner"),unref(r).is("status")])},{default:withCtx(()=>[createVNode$1(unref(check_default))]),_:1},8,["class"])):oe.value==="error"?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(r).e("icon-inner"),unref(r).is("status")])},{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1},8,["class"])):he.value?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(unref(r).e("icon-inner"))},toDisplayString(i.value+1),3))])],2)],2),createCommentVNode(" title & description "),createBaseVNode("div",{class:normalizeClass(unref(r).e("main"))},[createBaseVNode("div",{class:normalizeClass([unref(r).e("title"),unref(r).is(oe.value)])},[renderSlot(Ue.$slots,"title",{},()=>[createTextVNode(toDisplayString(Ue.title),1)])],2),he.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("arrow"))},null,2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(r).e("description"),unref(r).is(oe.value)])},[renderSlot(Ue.$slots,"description",{},()=>[createTextVNode(toDisplayString(Ue.description),1)])],2))],2)],6))}});var Step=_export_sfc(_sfc_main$14,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const ElSteps=withInstall(Steps,{Step}),ElStep=withNoopInstall(Step),isValidComponentSize=n=>["",...componentSizes].includes(n),switchProps=buildProps({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:isValidComponentSize},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:iconPropType},activeActionIcon:{type:iconPropType},activeIcon:{type:iconPropType},inactiveIcon:{type:iconPropType},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:definePropType(Function)},id:String,tabindex:{type:[String,Number]},...useAriaProps(["ariaLabel"])}),switchEmits={[UPDATE_MODEL_EVENT]:n=>isBoolean$1(n)||isString$2(n)||isNumber$2(n),[CHANGE_EVENT]:n=>isBoolean$1(n)||isString$2(n)||isNumber$2(n),[INPUT_EVENT]:n=>isBoolean$1(n)||isString$2(n)||isNumber$2(n)},_hoisted_1$H=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],_hoisted_2$u=["aria-hidden"],_hoisted_3$c={key:1},_hoisted_4$9={key:1},_hoisted_5$2=["aria-hidden"],COMPONENT_NAME$9="ElSwitch",_sfc_main$13=defineComponent({name:COMPONENT_NAME$9,__name:"switch",props:switchProps,emits:switchEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,{formItem:$}=useFormItem(),V=useFormSize(),re=useNamespace("switch"),{inputId:ie}=useFormItemInputId(i,{formItemContext:$}),ae=useFormDisabled(computed(()=>{if(i.loading)return!0})),oe=ref(i.modelValue!==!1),le=shallowRef(),ue=computed(()=>[re.b(),re.m(V.value),re.is("disabled",ae.value),re.is("checked",Ce.value)]),de=computed(()=>[re.e("label"),re.em("label","left"),re.is("active",!Ce.value)]),he=computed(()=>[re.e("label"),re.em("label","right"),re.is("active",Ce.value)]),pe=computed(()=>({width:addUnit(i.width)}));watch(()=>i.modelValue,()=>{oe.value=!0});const _e=computed(()=>oe.value?i.modelValue:!1),Ce=computed(()=>_e.value===i.activeValue);[i.activeValue,i.inactiveValue].includes(_e.value)||(g(UPDATE_MODEL_EVENT,i.inactiveValue),g(CHANGE_EVENT,i.inactiveValue),g(INPUT_EVENT,i.inactiveValue)),watch(Ce,Oe=>{var $e;le.value.checked=Oe,i.validateEvent&&(($e=$==null?void 0:$.validate)==null||$e.call($,"change").catch(Ve=>void 0))});const xe=()=>{const Oe=Ce.value?i.inactiveValue:i.activeValue;g(UPDATE_MODEL_EVENT,Oe),g(CHANGE_EVENT,Oe),g(INPUT_EVENT,Oe),nextTick(()=>{le.value.checked=Ce.value})},Ie=()=>{if(ae.value)return;const{beforeChange:Oe}=i;if(!Oe){xe();return}const $e=Oe();[isPromise($e),isBoolean$1($e)].includes(!0)||throwError$1(COMPONENT_NAME$9,"beforeChange must return type `Promise` or `boolean`"),isPromise($e)?$e.then(Ue=>{Ue&&xe()}).catch(Ue=>{}):$e&&xe()},Ne=()=>{var Oe,$e;($e=(Oe=le.value)==null?void 0:Oe.focus)==null||$e.call(Oe)};return onMounted(()=>{le.value.checked=Ce.value}),t({focus:Ne,checked:Ce}),(Oe,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(ue.value),onClick:withModifiers(Ie,["prevent"])},[createBaseVNode("input",{id:unref(ie),ref_key:"input",ref:le,class:normalizeClass(unref(re).e("input")),type:"checkbox",role:"switch","aria-checked":Ce.value,"aria-disabled":unref(ae),"aria-label":Oe.ariaLabel,name:Oe.name,"true-value":Oe.activeValue,"false-value":Oe.inactiveValue,disabled:unref(ae),tabindex:Oe.tabindex,onChange:xe,onKeydown:withKeys(Ie,["enter"])},null,42,_hoisted_1$H),!Oe.inlinePrompt&&(Oe.inactiveIcon||Oe.inactiveText||Oe.$slots.inactive)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(de.value)},[renderSlot(Oe.$slots,"inactive",{},()=>[Oe.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Oe.inactiveIcon)))]),_:1})):createCommentVNode("v-if",!0),!Oe.inactiveIcon&&Oe.inactiveText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":Ce.value},toDisplayString(Oe.inactiveText),9,_hoisted_2$u)):createCommentVNode("v-if",!0)])],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(unref(re).e("core")),style:normalizeStyle$1(pe.value)},[Oe.inlinePrompt?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(re).e("inner"))},[Ce.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(re).e("inner-wrapper"))},[renderSlot(Oe.$slots,"active",{},()=>[Oe.activeIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Oe.activeIcon)))]),_:1})):createCommentVNode("v-if",!0),!Oe.activeIcon&&Oe.activeText?(openBlock(),createElementBlock("span",_hoisted_4$9,toDisplayString(Oe.activeText),1)):createCommentVNode("v-if",!0)])],2)):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(re).e("inner-wrapper"))},[renderSlot(Oe.$slots,"inactive",{},()=>[Oe.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Oe.inactiveIcon)))]),_:1})):createCommentVNode("v-if",!0),!Oe.inactiveIcon&&Oe.inactiveText?(openBlock(),createElementBlock("span",_hoisted_3$c,toDisplayString(Oe.inactiveText),1)):createCommentVNode("v-if",!0)])],2))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(re).e("action"))},[Oe.loading?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(re).is("loading"))},{default:withCtx(()=>[createVNode$1(unref(loading_default))]),_:1},8,["class"])):Ce.value?renderSlot(Oe.$slots,"active-action",{key:1},()=>[Oe.activeActionIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Oe.activeActionIcon)))]),_:1})):createCommentVNode("v-if",!0)]):Ce.value?createCommentVNode("v-if",!0):renderSlot(Oe.$slots,"inactive-action",{key:2},()=>[Oe.inactiveActionIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Oe.inactiveActionIcon)))]),_:1})):createCommentVNode("v-if",!0)])],2)],6),!Oe.inlinePrompt&&(Oe.activeIcon||Oe.activeText||Oe.$slots.active)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(he.value)},[renderSlot(Oe.$slots,"active",{},()=>[Oe.activeIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Oe.activeIcon)))]),_:1})):createCommentVNode("v-if",!0),!Oe.activeIcon&&Oe.activeText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":!Ce.value},toDisplayString(Oe.activeText),9,_hoisted_5$2)):createCommentVNode("v-if",!0)])],2)):createCommentVNode("v-if",!0)],2))}});var Switch=_export_sfc(_sfc_main$13,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const ElSwitch=withInstall(Switch),getCell=function(n){var t;return(t=n.target)==null?void 0:t.closest("td")},orderBy=function(n,t,r,i,g){if(!t&&!i&&(!g||isArray$5(g)&&!g.length))return n;isString$2(r)?r=r==="descending"?-1:1:r=r&&r<0?-1:1;const $=i?null:function(re,ie){return g?flatMap(castArray$1(g),ae=>isString$2(ae)?get$1(re,ae):ae(re,ie,n)):(t!=="$key"&&isObject$6(re)&&"$value"in re&&(re=re.$value),[isObject$6(re)?t?get$1(re,t):null:re])},V=function(re,ie){var ae,oe,le,ue,de,he;if(i)return i(re.value,ie.value);for(let pe=0,_e=(oe=(ae=re.key)==null?void 0:ae.length)!=null?oe:0;pe<_e;pe++){if(((le=re.key)==null?void 0:le[pe])<((ue=ie.key)==null?void 0:ue[pe]))return-1;if(((de=re.key)==null?void 0:de[pe])>((he=ie.key)==null?void 0:he[pe]))return 1}return 0};return n.map((re,ie)=>({value:re,index:ie,key:$?$(re,ie):null})).sort((re,ie)=>{let ae=V(re,ie);return ae||(ae=re.index-ie.index),ae*+r}).map(re=>re.value)},getColumnById=function(n,t){let r=null;return n.columns.forEach(i=>{i.id===t&&(r=i)}),r},getColumnByKey=function(n,t){let r=null;for(let i=0;i{if(!n)throw new Error("Row is required when get row identity");if(isString$2(t)){if(!t.includes("."))return`${n[t]}`;const r=t.split(".");let i=n;for(const g of r)i=i[g];return`${i}`}else if(isFunction$4(t))return t.call(null,n);return""},getKeysMap=function(n,t,r=!1,i="children"){const g=n||[],$={};return g.forEach((V,re)=>{if($[getRowIdentity(V,t)]={row:V,index:re},r){const ie=V[i];isArray$5(ie)&&Object.assign($,getKeysMap(ie,t,!0,i))}}),$};function mergeOptions$1(n,t){const r={};let i;for(i in n)r[i]=n[i];for(i in t)if(hasOwn$1(t,i)){const g=t[i];isUndefined$1(g)||(r[i]=g)}return r}function parseWidth(n){return n===""||isUndefined$1(n)||(n=Number.parseInt(n,10),Number.isNaN(n)&&(n="")),n}function parseMinWidth(n){return n===""||isUndefined$1(n)||(n=parseWidth(n),Number.isNaN(n)&&(n=80)),n}function parseHeight(n){return isNumber$2(n)?n:isString$2(n)?/^\d+(?:px)?$/.test(n)?Number.parseInt(n,10):n:null}function compose(...n){return n.length===0?t=>t:n.length===1?n[0]:n.reduce((t,r)=>(...i)=>t(r(...i)))}function toggleRowStatus(n,t,r,i,g,$,V){let re=$??0,ie=!1;const oe=(()=>{if(!V)return n.indexOf(t);const pe=getRowIdentity(t,V);return n.findIndex(_e=>getRowIdentity(_e,V)===pe)})(),le=oe!==-1,ue=g==null?void 0:g.call(null,t,re),de=pe=>{pe==="add"?n.push(t):n.splice(oe,1),ie=!0},he=pe=>{let _e=0;const Ce=(i==null?void 0:i.children)&&pe[i.children];return Ce&&isArray$5(Ce)&&(_e+=Ce.length,Ce.forEach(xe=>{_e+=he(xe)})),_e};return(!g||ue)&&(isBoolean$1(r)?r&&!le?de("add"):!r&&le&&de("remove"):de(le?"remove":"add")),!(i!=null&&i.checkStrictly)&&(i!=null&&i.children)&&isArray$5(t[i.children])&&t[i.children].forEach(pe=>{const _e=toggleRowStatus(n,pe,r??!le,i,g,re+1,V);re+=he(pe)+1,_e&&(ie=_e)}),ie}function walkTreeNode(n,t,r="children",i="hasChildren",g=!1){const $=re=>!(isArray$5(re)&&re.length);function V(re,ie,ae){t(re,ie,ae),ie.forEach(oe=>{if(oe[i]&&g){t(oe,null,ae+1);return}const le=oe[r];$(le)||V(oe,le,ae+1)})}n.forEach(re=>{if(re[i]&&g){t(re,null,0);return}const ie=re[r];$(ie)||V(re,ie,0)})}const getTableOverflowTooltipProps=(n,t,r,i)=>{const g={strategy:"fixed",...n.popperOptions},$=isFunction$4(i==null?void 0:i.tooltipFormatter)?i.tooltipFormatter({row:r,column:i,cellValue:getProp(r,i.property).value}):void 0;return isVNode($)?{slotContent:$,content:null,...n,popperOptions:g}:{slotContent:null,content:$??t,...n,popperOptions:g}};let removePopper=null;function createTablePopper(n,t,r,i,g,$){var V;const re=getTableOverflowTooltipProps(n,t,r,i),ie={...re,slotContent:void 0};if((removePopper==null?void 0:removePopper.trigger)===g){const he=(V=removePopper.vm)==null?void 0:V.component;merge$3(he==null?void 0:he.props,ie),he&&re.slotContent&&(he.slots.content=()=>[re.slotContent]);return}removePopper==null||removePopper();const ae=$==null?void 0:$.refs.tableWrapper,oe=ae==null?void 0:ae.dataset.prefix,le=createVNode$1(ElTooltip,{virtualTriggering:!0,virtualRef:g,appendTo:ae,placement:"top",transition:"none",offset:0,hideAfter:0,...ie},re.slotContent?{content:()=>re.slotContent}:void 0);le.appContext={...$.appContext,...$};const ue=document.createElement("div");render$1(le,ue),le.component.exposed.onOpen();const de=ae==null?void 0:ae.querySelector(`.${oe}-scrollbar__wrap`);removePopper=()=>{var he,pe;(pe=(he=le.component)==null?void 0:he.exposed)!=null&&pe.onClose&&le.component.exposed.onClose(),render$1(null,ue);const _e=removePopper;de==null||de.removeEventListener("scroll",_e),_e.trigger=void 0,_e.vm=void 0,removePopper=null},removePopper.trigger=g??void 0,removePopper.vm=le,de==null||de.addEventListener("scroll",removePopper)}function getCurrentColumns(n){return n.children?flatMap(n.children,getCurrentColumns):[n]}function getColSpan(n,t){return n+t.colSpan}const isFixedColumn=(n,t,r,i)=>{let g=0,$=n;const V=r.states.columns.value;if(i){const ie=getCurrentColumns(i[n]);g=V.slice(0,V.indexOf(ie[0])).reduce(getColSpan,0),$=g+ie.reduce(getColSpan,0)-1}else g=n;let re;switch(t){case"left":$=V.length-r.states.rightFixedLeafColumnsLength.value&&(re="right");break;default:$=V.length-r.states.rightFixedLeafColumnsLength.value&&(re="right")}return re?{direction:re,start:g,after:$}:{}},getFixedColumnsClass=(n,t,r,i,g,$=0)=>{const V=[],{direction:re,start:ie,after:ae}=isFixedColumn(t,r,i,g);if(re){const oe=re==="left";V.push(`${n}-fixed-column--${re}`),oe&&ae+$===i.states.fixedLeafColumnsLength.value-1?V.push("is-last-column"):!oe&&ie-$===i.states.columns.value.length-i.states.rightFixedLeafColumnsLength.value&&V.push("is-first-column")}return V};function getOffset$1(n,t){return n+(isNull(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const getFixedColumnOffset=(n,t,r,i)=>{const{direction:g,start:$=0,after:V=0}=isFixedColumn(n,t,r,i);if(!g)return;const re={},ie=g==="left",ae=r.states.columns.value;return ie?re.left=ae.slice(0,$).reduce(getOffset$1,0):re.right=ae.slice(V+1).reverse().reduce(getOffset$1,0),re},ensurePosition=(n,t)=>{n&&(Number.isNaN(n[t])||(n[t]=`${n[t]}px`))};function ensureValidVNode(n){return n.some(t=>isVNode(t)?!(t.type===Comment||t.type===Fragment&&!ensureValidVNode(t.children)):!0)?n:null}function useExpand(n){const t=getCurrentInstance(),r=ref(!1),i=ref([]);return{updateExpandRows:()=>{const ie=n.data.value||[],ae=n.rowKey.value;if(r.value)i.value=ie.slice();else if(ae){const oe=getKeysMap(i.value,ae);i.value=ie.reduce((le,ue)=>{const de=getRowIdentity(ue,ae);return oe[de]&&le.push(ue),le},[])}else i.value=[]},toggleRowExpansion:(ie,ae)=>{toggleRowStatus(i.value,ie,ae,void 0,void 0,void 0,n.rowKey.value)&&t.emit("expand-change",ie,i.value.slice())},setExpandRowKeys:ie=>{t.store.assertRowKey();const ae=n.data.value||[],oe=n.rowKey.value,le=getKeysMap(ae,oe);i.value=ie.reduce((ue,de)=>{const he=le[de];return he&&ue.push(he.row),ue},[])},isRowExpanded:ie=>{const ae=n.rowKey.value;return ae?!!getKeysMap(i.value,ae)[getRowIdentity(ie,ae)]:i.value.includes(ie)},states:{expandRows:i,defaultExpandAll:r}}}function useCurrent(n){const t=getCurrentInstance(),r=ref(null),i=ref(null),g=ae=>{t.store.assertRowKey(),r.value=ae,V(ae)},$=()=>{r.value=null},V=ae=>{var oe;const{data:le,rowKey:ue}=n,de=i.value;let he=null;ue.value&&(he=(oe=(unref(le)||[]).find(pe=>getRowIdentity(pe,ue.value)===ae))!=null?oe:null),i.value=he??null,t.emit("current-change",i.value,de)};return{setCurrentRowKey:g,restoreCurrentRowKey:$,setCurrentRowByKey:V,updateCurrentRow:ae=>{const oe=i.value;if(ae&&ae!==oe){i.value=ae,t.emit("current-change",i.value,oe);return}!ae&&oe&&(i.value=null,t.emit("current-change",null,oe))},updateCurrentRowData:()=>{const ae=n.rowKey.value,oe=n.data.value||[],le=i.value;if(le&&!oe.includes(le))if(ae){const ue=getRowIdentity(le,ae);V(ue)}else i.value=null,t.emit("current-change",null,le);else r.value&&(V(r.value),$())},states:{_currentRowKey:r,currentRow:i}}}function useTree$2(n){const t=ref([]),r=ref({}),i=ref(16),g=ref(!1),$=ref({}),V=ref("hasChildren"),re=ref("children"),ie=ref(!1),ae=getCurrentInstance(),oe=computed(()=>{if(!n.rowKey.value)return{};const Ne=n.data.value||[];return ue(Ne)}),le=computed(()=>{const Ne=n.rowKey.value,Oe=Object.keys($.value),$e={};return Oe.length&&Oe.forEach(Ve=>{if($.value[Ve].length){const Ue={children:[]};$.value[Ve].forEach(Fe=>{const ze=getRowIdentity(Fe,Ne);Ue.children.push(ze),Fe[V.value]&&!$e[ze]&&($e[ze]={children:[]})}),$e[Ve]=Ue}}),$e}),ue=Ne=>{const Oe=n.rowKey.value,$e={};return walkTreeNode(Ne,(Ve,Ue,Fe)=>{const ze=getRowIdentity(Ve,Oe);isArray$5(Ue)?$e[ze]={children:Ue.map(Pt=>getRowIdentity(Pt,Oe)),level:Fe}:g.value&&($e[ze]={children:[],lazy:!0,level:Fe})},re.value,V.value,g.value),$e},de=(Ne=!1,Oe)=>{var $e,Ve;Oe||(Oe=($e=ae.store)==null?void 0:$e.states.defaultExpandAll.value);const Ue=oe.value,Fe=le.value,ze=Object.keys(Ue),Pt={};if(ze.length){const qe=unref(r),Et=[],kt=(Dt,Lt)=>{if(Ne)return t.value?Oe||t.value.includes(Lt):!!(Oe||Dt!=null&&Dt.expanded);{const jt=Oe||t.value&&t.value.includes(Lt);return!!(Dt!=null&&Dt.expanded||jt)}};ze.forEach(Dt=>{const Lt=qe[Dt],jt={...Ue[Dt]};if(jt.expanded=kt(Lt,Dt),jt.lazy){const{loaded:hn=!1,loading:vn=!1}=Lt||{};jt.loaded=!!hn,jt.loading=!!vn,Et.push(Dt)}Pt[Dt]=jt});const At=Object.keys(Fe);g.value&&At.length&&Et.length&&At.forEach(Dt=>{var Lt;const jt=qe[Dt],hn=Fe[Dt].children;if(Et.includes(Dt)){if(((Lt=Pt[Dt].children)==null?void 0:Lt.length)!==0)throw new Error("[ElTable]children must be an empty array.");Pt[Dt].children=hn}else{const{loaded:vn=!1,loading:_n=!1}=jt||{};Pt[Dt]={lazy:!0,loaded:!!vn,loading:!!_n,expanded:kt(jt,Dt),children:hn,level:void 0}}})}r.value=Pt,(Ve=ae.store)==null||Ve.updateTableScrollY()};watch(()=>t.value,()=>{de(!0)}),watch(()=>oe.value,()=>{de()}),watch(()=>le.value,()=>{de()});const he=Ne=>{t.value=Ne,de()},pe=Ne=>g.value&&Ne&&"loaded"in Ne&&!Ne.loaded,_e=(Ne,Oe)=>{ae.store.assertRowKey();const $e=n.rowKey.value,Ve=getRowIdentity(Ne,$e),Ue=Ve&&r.value[Ve];if(Ve&&Ue&&"expanded"in Ue){const Fe=Ue.expanded;Oe=isUndefined$1(Oe)?!Ue.expanded:Oe,r.value[Ve].expanded=Oe,Fe!==Oe&&ae.emit("expand-change",Ne,Oe),Oe&&pe(Ue)&&xe(Ne,Ve,Ue),ae.store.updateTableScrollY()}},Ce=Ne=>{ae.store.assertRowKey();const Oe=n.rowKey.value,$e=getRowIdentity(Ne,Oe),Ve=r.value[$e];pe(Ve)?xe(Ne,$e,Ve):_e(Ne,void 0)},xe=(Ne,Oe,$e)=>{const{load:Ve}=ae.props;Ve&&!r.value[Oe].loaded&&(r.value[Oe].loading=!0,Ve(Ne,$e,Ue=>{if(!isArray$5(Ue))throw new TypeError("[ElTable] data must be an array");r.value[Oe].loading=!1,r.value[Oe].loaded=!0,r.value[Oe].expanded=!0,Ue.length&&($.value[Oe]=Ue),ae.emit("expand-change",Ne,!0)}))};return{loadData:xe,loadOrToggle:Ce,toggleTreeExpansion:_e,updateTreeExpandKeys:he,updateTreeData:de,updateKeyChildren:(Ne,Oe)=>{const{lazy:$e,rowKey:Ve}=ae.props;if($e){if(!Ve)throw new Error("[Table] rowKey is required in updateKeyChild");$.value[Ne]&&($.value[Ne]=Oe)}},normalize:ue,states:{expandRowKeys:t,treeData:r,indent:i,lazy:g,lazyTreeNodeMap:$,lazyColumnIdentifier:V,childrenColumnName:re,checkStrictly:ie}}}const sortData=(n,t)=>{const r=t.sortingColumn;return!r||isString$2(r.sortable)?n:orderBy(n,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},doFlattenColumns=n=>{const t=[];return n.forEach(r=>{r.children&&r.children.length>0?t.push.apply(t,doFlattenColumns(r.children)):t.push(r)}),t};function useWatcher$1(){var n;const t=getCurrentInstance(),{size:r}=toRefs((n=t.proxy)==null?void 0:n.$props),i=ref(null),g=ref([]),$=ref([]),V=ref(!1),re=ref([]),ie=ref([]),ae=ref([]),oe=ref([]),le=ref([]),ue=ref([]),de=ref([]),he=ref([]),pe=[],_e=ref(0),Ce=ref(0),xe=ref(0),Ie=ref(!1),Ne=ref([]),Oe=ref(!1),$e=ref(!1),Ve=ref(null),Ue=ref({}),Fe=ref(null),ze=ref(null),Pt=ref(null),qe=ref(null),Et=ref(null),kt=computed(()=>i.value?getKeysMap(Ne.value,i.value):void 0);watch(g,()=>{var ir;t.state&&(jt(!1),t.props.tableLayout==="auto"&&((ir=t.refs.tableHeaderRef)==null||ir.updateFixedColumnStyle()))},{deep:!0});const At=()=>{if(!i.value)throw new Error("[ElTable] prop row-key is required")},Dt=ir=>{var pr;(pr=ir.children)==null||pr.forEach(rr=>{rr.fixed=ir.fixed,Dt(rr)})},Lt=()=>{re.value.forEach(Fn=>{Dt(Fn)}),oe.value=re.value.filter(Fn=>[!0,"left"].includes(Fn.fixed));const ir=re.value.find(Fn=>Fn.type==="selection");let pr;ir&&ir.fixed!=="right"&&!oe.value.includes(ir)&&re.value.indexOf(ir)===0&&oe.value.length&&(oe.value.unshift(ir),pr=!0),le.value=re.value.filter(Fn=>Fn.fixed==="right");const rr=re.value.filter(Fn=>(pr?Fn.type!=="selection":!0)&&!Fn.fixed);ie.value=Array.from(oe.value).concat(rr).concat(le.value);const lr=doFlattenColumns(rr),Yn=doFlattenColumns(oe.value),er=doFlattenColumns(le.value);_e.value=lr.length,Ce.value=Yn.length,xe.value=er.length,ae.value=Array.from(Yn).concat(lr).concat(er),V.value=oe.value.length>0||le.value.length>0},jt=(ir,pr=!1)=>{ir&&Lt(),pr?t.state.doLayout():t.state.debouncedUpdateLayout()},hn=ir=>kt.value?!!kt.value[getRowIdentity(ir,i.value)]:Ne.value.includes(ir),vn=()=>{Ie.value=!1;const ir=Ne.value;Ne.value=[],ir.length&&t.emit("selection-change",[])},_n=()=>{var ir,pr;let rr;if(i.value){rr=[];const lr=(pr=(ir=t==null?void 0:t.store)==null?void 0:ir.states)==null?void 0:pr.childrenColumnName.value,Yn=getKeysMap(g.value,i.value,!0,lr);for(const er in kt.value)hasOwn$1(kt.value,er)&&!Yn[er]&&rr.push(kt.value[er].row)}else rr=Ne.value.filter(lr=>!g.value.includes(lr));if(rr.length){const lr=Ne.value.filter(Yn=>!rr.includes(Yn));Ne.value=lr,t.emit("selection-change",lr.slice())}},wn=()=>(Ne.value||[]).slice(),bn=(ir,pr,rr=!0,lr=!1)=>{var Yn,er,Fn,cr;const Un={children:(er=(Yn=t==null?void 0:t.store)==null?void 0:Yn.states)==null?void 0:er.childrenColumnName.value,checkStrictly:(cr=(Fn=t==null?void 0:t.store)==null?void 0:Fn.states)==null?void 0:cr.checkStrictly.value};if(toggleRowStatus(Ne.value,ir,pr,Un,lr?void 0:Ve.value,g.value.indexOf(ir),i.value)){const vr=(Ne.value||[]).slice();rr&&t.emit("select",vr,ir),t.emit("selection-change",vr)}},Cn=()=>{var ir,pr;const rr=$e.value?!Ie.value:!(Ie.value||Ne.value.length);Ie.value=rr;let lr=!1,Yn=0;const er=(pr=(ir=t==null?void 0:t.store)==null?void 0:ir.states)==null?void 0:pr.rowKey.value,{childrenColumnName:Fn}=t.store.states,cr={children:Fn.value,checkStrictly:!1};g.value.forEach((Un,gr)=>{const vr=gr+Yn;toggleRowStatus(Ne.value,Un,rr,cr,Ve.value,vr,er)&&(lr=!0),Yn+=Tn(getRowIdentity(Un,er))}),lr&&t.emit("selection-change",Ne.value?Ne.value.slice():[]),t.emit("select-all",(Ne.value||[]).slice())},Sn=()=>{var ir;if(((ir=g.value)==null?void 0:ir.length)===0){Ie.value=!1;return}const{childrenColumnName:pr}=t.store.states;let rr=0,lr=0;const Yn=Fn=>{var cr;for(const Un of Fn){const gr=Ve.value&&Ve.value.call(null,Un,rr);if(hn(Un))lr++;else if(!Ve.value||gr)return!1;if(rr++,(cr=Un[pr.value])!=null&&cr.length&&!Yn(Un[pr.value]))return!1}return!0},er=Yn(g.value||[]);Ie.value=lr===0?!1:er},Tn=ir=>{var pr;if(!t||!t.store)return 0;const{treeData:rr}=t.store.states;let lr=0;const Yn=(pr=rr.value[ir])==null?void 0:pr.children;return Yn&&(lr+=Yn.length,Yn.forEach(er=>{lr+=Tn(er)})),lr},En=(ir,pr)=>{const rr={};return castArray$1(ir).forEach(lr=>{Ue.value[lr.id]=pr,rr[lr.columnKey||lr.id]=pr}),rr},kn=(ir,pr,rr)=>{ze.value&&ze.value!==ir&&(ze.value.order=null),ze.value=ir,Pt.value=pr,qe.value=rr},$n=()=>{let ir=unref($);Object.keys(Ue.value).forEach(pr=>{const rr=Ue.value[pr];if(!rr||rr.length===0)return;const lr=getColumnById({columns:ae.value},pr);lr&&lr.filterMethod&&(ir=ir.filter(Yn=>rr.some(er=>lr.filterMethod.call(null,er,Yn,lr))))}),Fe.value=ir},An=()=>{var ir;g.value=sortData((ir=Fe.value)!=null?ir:[],{sortingColumn:ze.value,sortProp:Pt.value,sortOrder:qe.value})},xn=(ir=void 0)=>{ir!=null&&ir.filter||$n(),An()},Ln=ir=>{const{tableHeaderRef:pr}=t.refs;if(!pr)return;const rr=Object.assign({},pr.filterPanels),lr=Object.keys(rr);if(lr.length)if(isString$2(ir)&&(ir=[ir]),isArray$5(ir)){const Yn=ir.map(er=>getColumnByKey({columns:ae.value},er));lr.forEach(er=>{const Fn=Yn.find(cr=>cr.id===er);Fn&&(Fn.filteredValue=[])}),t.store.commit("filterChange",{column:Yn,values:[],silent:!0,multi:!0})}else lr.forEach(Yn=>{const er=ae.value.find(Fn=>Fn.id===Yn);er&&(er.filteredValue=[])}),Ue.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Nn=()=>{ze.value&&(kn(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Pn,toggleRowExpansion:On,updateExpandRows:Hn,states:Xn,isRowExpanded:In}=useExpand({data:g,rowKey:i}),{updateTreeExpandKeys:or,toggleTreeExpansion:Qn,updateTreeData:Zn,updateKeyChildren:Gn,loadOrToggle:Rn,states:Mn}=useTree$2({data:g,rowKey:i}),{updateCurrentRowData:Bn,updateCurrentRow:qn,setCurrentRowKey:zn,states:jn}=useCurrent({data:g,rowKey:i});return{assertRowKey:At,updateColumns:Lt,scheduleLayout:jt,isSelected:hn,clearSelection:vn,cleanSelection:_n,getSelectionRows:wn,toggleRowSelection:bn,_toggleAllSelection:Cn,toggleAllSelection:null,updateAllSelected:Sn,updateFilters:En,updateCurrentRow:qn,updateSort:kn,execFilter:$n,execSort:An,execQuery:xn,clearFilter:Ln,clearSort:Nn,toggleRowExpansion:On,setExpandRowKeysAdapter:ir=>{Pn(ir),or(ir)},setCurrentRowKey:zn,toggleRowExpansionAdapter:(ir,pr)=>{ae.value.some(({type:lr})=>lr==="expand")?On(ir,pr):Qn(ir,pr)},isRowExpanded:In,updateExpandRows:Hn,updateCurrentRowData:Bn,loadOrToggle:Rn,updateTreeData:Zn,updateKeyChildren:Gn,states:{tableSize:r,rowKey:i,data:g,_data:$,isComplex:V,_columns:re,originColumns:ie,columns:ae,fixedColumns:oe,rightFixedColumns:le,leafColumns:ue,fixedLeafColumns:de,rightFixedLeafColumns:he,updateOrderFns:pe,leafColumnsLength:_e,fixedLeafColumnsLength:Ce,rightFixedLeafColumnsLength:xe,isAllSelected:Ie,selection:Ne,reserveSelection:Oe,selectOnIndeterminate:$e,selectable:Ve,filters:Ue,filteredData:Fe,sortingColumn:ze,sortProp:Pt,sortOrder:qe,hoverRow:Et,...Xn,...Mn,...jn}}}function replaceColumn(n,t){return n.map(r=>{var i;return r.id===t.id?t:((i=r.children)!=null&&i.length&&(r.children=replaceColumn(r.children,t)),r)})}function sortColumn(n){n.forEach(t=>{var r,i;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(i=t.children)!=null&&i.length&&sortColumn(t.children)}),n.sort((t,r)=>t.no-r.no)}function useStore(){const n=getCurrentInstance(),t=useWatcher$1(),r=useNamespace("table"),{t:i}=useLocale();return{ns:r,t:i,...t,mutations:{setData(re,ie){const ae=unref(re._data)!==ie;re.data.value=ie,re._data.value=ie,n.store.execQuery(),n.store.updateCurrentRowData(),n.store.updateExpandRows(),n.store.updateTreeData(n.store.states.defaultExpandAll.value),unref(re.reserveSelection)?n.store.assertRowKey():ae?n.store.clearSelection():n.store.cleanSelection(),n.store.updateAllSelected(),n.$ready&&n.store.scheduleLayout()},insertColumn(re,ie,ae,oe){var le;const ue=unref(re._columns);let de=[];ae?(ae&&!ae.children&&(ae.children=[]),(le=ae.children)==null||le.push(ie),de=replaceColumn(ue,ae)):(ue.push(ie),de=ue),sortColumn(de),re._columns.value=de,re.updateOrderFns.push(oe),ie.type==="selection"&&(re.selectable.value=ie.selectable,re.reserveSelection.value=ie.reserveSelection),n.$ready&&(n.store.updateColumns(),n.store.scheduleLayout())},updateColumnOrder(re,ie){var ae;((ae=ie.getColumnIndex)==null?void 0:ae.call(ie))!==ie.no&&(sortColumn(re._columns.value),n.$ready&&n.store.updateColumns())},removeColumn(re,ie,ae,oe){var le;const ue=unref(re._columns)||[];if(ae)(le=ae.children)==null||le.splice(ae.children.findIndex(he=>he.id===ie.id),1),nextTick(()=>{var he;((he=ae.children)==null?void 0:he.length)===0&&delete ae.children}),re._columns.value=replaceColumn(ue,ae);else{const he=ue.indexOf(ie);he>-1&&(ue.splice(he,1),re._columns.value=ue)}const de=re.updateOrderFns.indexOf(oe);de>-1&&re.updateOrderFns.splice(de,1),n.$ready&&(n.store.updateColumns(),n.store.scheduleLayout())},sort(re,ie){const{prop:ae,order:oe,init:le}=ie;if(ae){const ue=unref(re.columns).find(de=>de.property===ae);ue&&(ue.order=oe,n.store.updateSort(ue,ae,oe),n.store.commit("changeSortCondition",{init:le}))}},changeSortCondition(re,ie){const{sortingColumn:ae,sortProp:oe,sortOrder:le}=re,ue=unref(ae),de=unref(oe),he=unref(le);isNull(he)&&(re.sortingColumn.value=null,re.sortProp.value=null);const pe={filter:!0};n.store.execQuery(pe),(!ie||!(ie.silent||ie.init))&&n.emit("sort-change",{column:ue,prop:de,order:he}),n.store.updateTableScrollY()},filterChange(re,ie){const{column:ae,values:oe,silent:le}=ie,ue=n.store.updateFilters(ae,oe);n.store.execQuery(),le||n.emit("filter-change",ue),n.store.updateTableScrollY()},toggleAllSelection(){var re,ie;(ie=(re=n.store).toggleAllSelection)==null||ie.call(re)},rowSelectedChanged(re,ie){n.store.toggleRowSelection(ie),n.store.updateAllSelected()},setHoverRow(re,ie){re.hoverRow.value=ie},setCurrentRow(re,ie){n.store.updateCurrentRow(ie)}},commit:function(re,...ie){const ae=n.store.mutations;if(ae[re])ae[re].apply(n,[n.store.states,...ie]);else throw new Error(`Action not found: ${re}`)},updateTableScrollY:function(){nextTick(()=>n.layout.updateScrollY.apply(n.layout))}}}const InitialStateMap={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 createStore(n,t){if(!n)throw new Error("Table is required.");const r=useStore();return r.toggleAllSelection=debounce(r._toggleAllSelection,10),Object.keys(InitialStateMap).forEach(i=>{handleValue(getArrKeysValue(t,i),i,r)}),proxyTableProps(r,t),r}function proxyTableProps(n,t){Object.keys(InitialStateMap).forEach(r=>{watch(()=>getArrKeysValue(t,r),i=>{handleValue(i,r,n)})})}function handleValue(n,t,r){let i=n,g=InitialStateMap[t];isObject$6(g)&&(i=i||g.default,g=g.key),r.states[g].value=i}function getArrKeysValue(n,t){if(t.includes(".")){const r=t.split(".");let i=n;return r.forEach(g=>{i=i[g]}),i}else return n[t]}class TableLayout{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=ref(null),this.scrollX=ref(!1),this.scrollY=ref(!1),this.bodyWidth=ref(null),this.fixedWidth=ref(null),this.rightFixedWidth=ref(null),this.gutterWidth=0;for(const r in t)hasOwn$1(t,r)&&(isRef(this[r])?this[r].value=t[r]:this[r]=t[r]);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(isNull(t))return!1;const r=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(r!=null&&r.wrapRef)){let i=!0;const g=this.scrollY.value;return i=r.wrapRef.scrollHeight>r.wrapRef.clientHeight,this.scrollY.value=i,g!==i}return!1}setHeight(t,r="height"){if(!isClient)return;const i=this.table.vnode.el;if(t=parseHeight(t),this.height.value=Number(t),!i&&(t||t===0)){nextTick(()=>this.setHeight(t,r));return}i&&isNumber$2(t)?(i.style[r]=`${t}px`,this.updateElsHeight()):i&&isString$2(t)&&(i.style[r]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(i=>{i.isColumnGroup?t.push.apply(t,i.columns):t.push(i)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let r=t;for(;r.tagName!=="DIV";){if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}updateColumnsWidth(){var t;if(!isClient)return;const r=this.fit,i=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let g=0;const $=this.getFlattenColumns(),V=$.filter(ae=>!isNumber$2(ae.width));if($.forEach(ae=>{isNumber$2(ae.width)&&ae.realWidth&&(ae.realWidth=null)}),V.length>0&&r){if($.forEach(ae=>{g+=Number(ae.width||ae.minWidth||80)}),g<=i){this.scrollX.value=!1;const ae=i-g;if(V.length===1)V[0].realWidth=Number(V[0].minWidth||80)+ae;else{const oe=V.reduce((de,he)=>de+Number(he.minWidth||80),0),le=ae/oe;let ue=0;V.forEach((de,he)=>{if(he===0)return;const pe=Math.floor(Number(de.minWidth||80)*le);ue+=pe,de.realWidth=Number(de.minWidth||80)+pe}),V[0].realWidth=Number(V[0].minWidth||80)+ae-ue}}else this.scrollX.value=!0,V.forEach(ae=>{ae.realWidth=Number(ae.minWidth)});this.bodyWidth.value=Math.max(g,i),this.table.state.resizeState.value.width=this.bodyWidth.value}else $.forEach(ae=>{!ae.width&&!ae.minWidth?ae.realWidth=80:ae.realWidth=Number(ae.width||ae.minWidth),g+=ae.realWidth}),this.scrollX.value=g>i,this.bodyWidth.value=g;const re=this.store.states.fixedColumns.value;if(re.length>0){let ae=0;re.forEach(oe=>{ae+=Number(oe.realWidth||oe.width)}),this.fixedWidth.value=ae}const ie=this.store.states.rightFixedColumns.value;if(ie.length>0){let ae=0;ie.forEach(oe=>{ae+=Number(oe.realWidth||oe.width)}),this.rightFixedWidth.value=ae}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(i=>{var g,$;switch(t){case"columns":(g=i.state)==null||g.onColumnsChange(this);break;case"scrollable":($=i.state)==null||$.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const _sfc_main$12=defineComponent({name:"ElTableFilterPanel",components:{ElCheckbox,ElCheckboxGroup,ElScrollbar,ElTooltip,ElIcon,ArrowDown:arrow_down_default,ArrowUp:arrow_up_default},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:useTooltipContentProps.appendTo},setup(n){const t=getCurrentInstance(),{t:r}=useLocale(),i=useNamespace("table-filter"),g=t==null?void 0:t.parent;n.column&&!g.filterPanels.value[n.column.id]&&(g.filterPanels.value[n.column.id]=t);const $=ref(null),V=ref(null),re=ref(0),ie=computed(()=>n.column&&n.column.filters),ae=computed(()=>n.column&&n.column.filterClassName?`${i.b()} ${n.column.filterClassName}`:i.b()),oe=computed({get:()=>{var Ve;return(((Ve=n.column)==null?void 0:Ve.filteredValue)||[])[0]},set:Ve=>{le.value&&(isPropAbsent(Ve)?le.value.splice(0,1):le.value.splice(0,1,Ve))}}),le=computed({get(){return n.column?n.column.filteredValue||[]:[]},set(Ve){var Ue;n.column&&((Ue=n.upDataColumn)==null||Ue.call(n,"filteredValue",Ve))}}),ue=computed(()=>n.column?n.column.filterMultiple:!0),de=Ve=>Ve.value===oe.value,he=()=>{var Ve;(Ve=$.value)==null||Ve.onClose()},pe=()=>{xe(le.value),he()},_e=()=>{le.value=[],xe(le.value),he()},Ce=(Ve,Ue)=>{oe.value=Ve,re.value=Ue,isPropAbsent(Ve)?xe([]):xe(le.value),he()},xe=Ve=>{var Ue,Fe;(Ue=n.store)==null||Ue.commit("filterChange",{column:n.column,values:Ve}),(Fe=n.store)==null||Fe.updateAllSelected()},Ie=()=>{var Ve,Ue;(Ve=V.value)==null||Ve.focus(),!ue.value&&Oe(),n.column&&((Ue=n.upDataColumn)==null||Ue.call(n,"filterOpened",!0))},Ne=()=>{var Ve;n.column&&((Ve=n.upDataColumn)==null||Ve.call(n,"filterOpened",!1))},Oe=()=>{if(isPropAbsent(oe)){re.value=0;return}const Ve=(ie.value||[]).findIndex(Ue=>Ue.value===oe.value);re.value=Ve>=0?Ve+1:0};return{multiple:ue,filterClassName:ae,filteredValue:le,filterValue:oe,filters:ie,handleConfirm:pe,handleReset:_e,handleSelect:Ce,isPropAbsent,isActive:de,t:r,ns:i,tooltipRef:$,rootRef:V,checkedIndex:re,handleShowTooltip:Ie,handleHideTooltip:Ne,handleKeydown:Ve=>{var Ue,Fe;const ze=getEventCode(Ve),Pt=(ie.value?ie.value.length:0)+1;let qe=re.value,Et=!0;switch(ze){case EVENT_CODE.down:case EVENT_CODE.right:qe=(qe+1)%Pt;break;case EVENT_CODE.up:case EVENT_CODE.left:qe=(qe-1+Pt)%Pt;break;case EVENT_CODE.tab:he(),Et=!1;break;case EVENT_CODE.enter:case EVENT_CODE.space:if(qe===0)Ce(null,0);else{const kt=(ie.value||[])[qe-1];kt.value&&Ce(kt.value,qe)}break;default:Et=!1;break}Et&&Ve.preventDefault(),re.value=qe,(Fe=(Ue=V.value)==null?void 0:Ue.querySelector(`.${i.e("list-item")}:nth-child(${qe+1})`))==null||Fe.focus()}}}}),_hoisted_1$G=["disabled"],_hoisted_2$t=["tabindex","aria-checked"],_hoisted_3$b=["tabindex","aria-checked","onClick"],_hoisted_4$8=["aria-label"];function _sfc_render$4(n,t,r,i,g,$){const V=resolveComponent("el-checkbox"),re=resolveComponent("el-checkbox-group"),ie=resolveComponent("el-scrollbar"),ae=resolveComponent("arrow-up"),oe=resolveComponent("arrow-down"),le=resolveComponent("el-icon"),ue=resolveComponent("el-tooltip");return openBlock(),createBlock(ue,{ref:"tooltipRef",offset:0,placement:n.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":n.filterClassName,persistent:"","append-to":n.appendTo,onShow:n.handleShowTooltip,onHide:n.handleHideTooltip},{content:withCtx(()=>[n.multiple?(openBlock(),createElementBlock("div",{key:0,ref:"rootRef",tabindex:"-1",class:normalizeClass(n.ns.e("multiple"))},[createBaseVNode("div",{class:normalizeClass(n.ns.e("content"))},[createVNode$1(ie,{"wrap-class":n.ns.e("wrap")},{default:withCtx(()=>[createVNode$1(re,{modelValue:n.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=de=>n.filteredValue=de),class:normalizeClass(n.ns.e("checkbox-group"))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.filters,de=>(openBlock(),createBlock(V,{key:de.value,value:de.value},{default:withCtx(()=>[createTextVNode(toDisplayString(de.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),createBaseVNode("div",{class:normalizeClass(n.ns.e("bottom"))},[createBaseVNode("button",{class:normalizeClass(n.ns.is("disabled",n.filteredValue.length===0)),disabled:n.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...de)=>n.handleConfirm&&n.handleConfirm(...de))},toDisplayString(n.t("el.table.confirmFilter")),11,_hoisted_1$G),createBaseVNode("button",{type:"button",onClick:t[2]||(t[2]=(...de)=>n.handleReset&&n.handleReset(...de))},toDisplayString(n.t("el.table.resetFilter")),1)],2)],2)):(openBlock(),createElementBlock("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:normalizeClass(n.ns.e("list")),onKeydown:t[4]||(t[4]=(...de)=>n.handleKeydown&&n.handleKeydown(...de))},[createBaseVNode("li",{role:"radio",class:normalizeClass([n.ns.e("list-item"),n.ns.is("active",n.isPropAbsent(n.filterValue))]),tabindex:n.checkedIndex===0?0:-1,"aria-checked":n.isPropAbsent(n.filterValue),onClick:t[3]||(t[3]=de=>n.handleSelect(null,0))},toDisplayString(n.t("el.table.clearFilter")),11,_hoisted_2$t),(openBlock(!0),createElementBlock(Fragment,null,renderList(n.filters,(de,he)=>(openBlock(),createElementBlock("li",{key:de.value,role:"radio",class:normalizeClass([n.ns.e("list-item"),n.ns.is("active",n.isActive(de))]),tabindex:n.checkedIndex===he+1?0:-1,"aria-checked":n.isActive(de),onClick:pe=>n.handleSelect(de.value,he+1)},toDisplayString(de.text),11,_hoisted_3$b))),128))],34))]),default:withCtx(()=>{var de;return[createBaseVNode("button",{type:"button",class:normalizeClass(`${n.ns.namespace.value}-table__column-filter-trigger`),"aria-label":n.t("el.table.filterLabel",{column:((de=n.column)==null?void 0:de.label)||""})},[createVNode$1(le,null,{default:withCtx(()=>[renderSlot(n.$slots,"filter-icon",{},()=>{var he;return[(he=n.column)!=null&&he.filterOpened?(openBlock(),createBlock(ae,{key:0})):(openBlock(),createBlock(oe,{key:1}))]})]),_:3})],10,_hoisted_4$8)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var FilterPanel=_export_sfc(_sfc_main$12,[["render",_sfc_render$4],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function useLayoutObserver(n){const t=getCurrentInstance();onBeforeMount(()=>{r.value.addObserver(t)}),onMounted(()=>{i(r.value),g(r.value)}),onUpdated(()=>{i(r.value),g(r.value)}),onUnmounted(()=>{r.value.removeObserver(t)});const r=computed(()=>{const $=n.layout;if(!$)throw new Error("Can not find table layout.");return $}),i=$=>{var V;const re=((V=n.vnode.el)==null?void 0:V.querySelectorAll("colgroup > col"))||[];if(!re.length)return;const ie=$.getFlattenColumns(),ae={};ie.forEach(oe=>{ae[oe.id]=oe});for(let oe=0,le=re.length;oe{var V,re;const ie=((V=n.vnode.el)==null?void 0:V.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let oe=0,le=ie.length;oe{pe.stopPropagation()},$=(pe,_e)=>{!_e.filters&&_e.sortable?he(pe,_e,!1):_e.filterable&&!_e.sortable&&g(pe),i==null||i.emit("header-click",_e,pe)},V=(pe,_e)=>{i==null||i.emit("header-contextmenu",_e,pe)},re=ref(null),ie=ref(!1),ae=ref(),oe=(pe,_e)=>{var Ce,xe;if(isClient&&!(_e.children&&_e.children.length>0)&&re.value&&n.border&&re.value.id===_e.id){ie.value=!0;const Ie=i;t("set-drag-visible",!0);const Ne=Ie==null?void 0:Ie.vnode.el,Oe=Ne==null?void 0:Ne.getBoundingClientRect().left,$e=(xe=(Ce=r==null?void 0:r.vnode)==null?void 0:Ce.el)==null?void 0:xe.querySelector(`th.${_e.id}`),Ve=$e.getBoundingClientRect(),Ue=Ve.left-Oe+30;addClass($e,"noclick"),ae.value={startMouseLeft:pe.clientX,startLeft:Ve.right-Oe,startColumnLeft:Ve.left-Oe,tableLeft:Oe};const Fe=Ie==null?void 0:Ie.refs.resizeProxy;Fe.style.left=`${ae.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const ze=qe=>{const Et=qe.clientX-ae.value.startMouseLeft,kt=ae.value.startLeft+Et;Fe.style.left=`${Math.max(Ue,kt)}px`},Pt=()=>{if(ie.value){const{startColumnLeft:qe,startLeft:Et}=ae.value,At=Number.parseInt(Fe.style.left,10)-qe;_e.width=_e.realWidth=At,Ie==null||Ie.emit("header-dragend",_e.width,Et-qe,_e,pe),requestAnimationFrame(()=>{n.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",ie.value=!1,re.value=null,ae.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",ze),document.removeEventListener("mouseup",Pt),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{removeClass($e,"noclick")},0)};document.addEventListener("mousemove",ze),document.addEventListener("mouseup",Pt)}},le=(pe,_e)=>{var Ce;if(!n.border||_e.children&&_e.children.length>0)return;const xe=pe.target,Ie=isElement$1(xe)?xe.closest("th"):null;if(!Ie)return;const Ne=hasClass(Ie,"is-sortable");if(Ne){const ze=ie.value?"col-resize":"";Ie.style.cursor=ze;const Pt=Ie.querySelector(".caret-wrapper");Pt&&(Pt.style.cursor=ze)}if(!_e.resizable||ie.value){re.value=null;return}const Oe=Ie.getBoundingClientRect(),$e=((Ce=Ie.parentNode)==null?void 0:Ce.lastElementChild)===Ie,Ve=n.allowDragLastColumn||!$e,Ue=Oe.width>12&&Oe.right-pe.clientX<8&&Ve,Fe=Ue?"col-resize":"";document.body.style.cursor=Fe,re.value=Ue?_e:null,Ne&&(Ie.style.cursor=Fe)},ue=()=>{!isClient||ie.value||(document.body.style.cursor="")},de=({order:pe,sortOrders:_e})=>{if(pe==="")return _e[0];const Ce=_e.indexOf(pe||null);return _e[Ce>_e.length-2?0:Ce+1]},he=(pe,_e,Ce)=>{var xe;pe.stopPropagation();const Ie=_e.order===Ce?null:Ce||de(_e),Ne=(xe=pe.target)==null?void 0:xe.closest("th");if(Ne&&hasClass(Ne,"noclick")){removeClass(Ne,"noclick");return}if(!_e.sortable)return;const Oe=pe.currentTarget;if(["ascending","descending"].some(ze=>hasClass(Oe,ze)&&!_e.sortOrders.includes(ze)))return;const $e=n.store.states;let Ve=$e.sortProp.value,Ue;const Fe=$e.sortingColumn.value;(Fe!==_e||Fe===_e&&isNull(Fe.order))&&(Fe&&(Fe.order=null),$e.sortingColumn.value=_e,Ve=_e.property),Ie?Ue=_e.order=Ie:Ue=_e.order=null,$e.sortProp.value=Ve,$e.sortOrder.value=Ue,i==null||i.store.commit("changeSortCondition")};return{handleHeaderClick:$,handleHeaderContextMenu:V,handleMouseDown:oe,handleMouseMove:le,handleMouseOut:ue,handleSortClick:he,handleFilterClick:g}}function useStyle$2(n){const t=inject(TABLE_INJECTION_KEY),r=useNamespace("table");return{getHeaderRowStyle:re=>{const ie=t==null?void 0:t.props.headerRowStyle;return isFunction$4(ie)?ie.call(null,{rowIndex:re}):ie},getHeaderRowClass:re=>{const ie=[],ae=t==null?void 0:t.props.headerRowClassName;return isString$2(ae)?ie.push(ae):isFunction$4(ae)&&ie.push(ae.call(null,{rowIndex:re})),ie.join(" ")},getHeaderCellStyle:(re,ie,ae,oe)=>{var le;let ue=(le=t==null?void 0:t.props.headerCellStyle)!=null?le:{};isFunction$4(ue)&&(ue=ue.call(null,{rowIndex:re,columnIndex:ie,row:ae,column:oe}));const de=getFixedColumnOffset(ie,oe.fixed,n.store,ae);return ensurePosition(de,"left"),ensurePosition(de,"right"),Object.assign({},ue,de)},getHeaderCellClass:(re,ie,ae,oe)=>{const le=getFixedColumnsClass(r.b(),ie,oe.fixed,n.store,ae),ue=[oe.id,oe.order,oe.headerAlign,oe.className,oe.labelClassName,...le];oe.children||ue.push("is-leaf"),oe.sortable&&ue.push("is-sortable");const de=t==null?void 0:t.props.headerCellClassName;return isString$2(de)?ue.push(de):isFunction$4(de)&&ue.push(de.call(null,{rowIndex:re,columnIndex:ie,row:ae,column:oe})),ue.push(r.e("cell")),ue.filter(he=>!!he).join(" ")}}}const getAllColumns=n=>{const t=[];return n.forEach(r=>{r.children?(t.push(r),t.push.apply(t,getAllColumns(r.children))):t.push(r)}),t},convertToRows=n=>{let t=1;const r=($,V)=>{if(V&&($.level=V.level+1,t<$.level&&(t=$.level)),$.children){let re=0;$.children.forEach(ie=>{r(ie,$),re+=ie.colSpan}),$.colSpan=re}else $.colSpan=1};n.forEach($=>{$.level=1,r($,void 0)});const i=[];for(let $=0;${$.children?($.rowSpan=1,$.children.forEach(V=>V.isSubColumn=!0)):$.rowSpan=t-$.level+1,i[$.level-1].push($)}),i};function useUtils$1(n){const t=inject(TABLE_INJECTION_KEY),r=computed(()=>convertToRows(n.store.states.originColumns.value));return{isGroup:computed(()=>{const $=r.value.length>1;return $&&t&&(t.state.isGroup.value=!0),$}),toggleAllSelection:$=>{$.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:r}}var TableHeader=defineComponent({name:"ElTableHeader",components:{ElCheckbox},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(n,{emit:t}){const r=getCurrentInstance(),i=inject(TABLE_INJECTION_KEY),g=useNamespace("table"),$=ref({}),{onColumnsChange:V,onScrollableChange:re}=useLayoutObserver(i),ie=(i==null?void 0:i.props.tableLayout)==="auto",ae=reactive(new Map),oe=ref();let le;const ue=()=>{le=setTimeout(()=>{ae.size>0&&(ae.forEach((qe,Et)=>{const kt=oe.value.querySelector(`.${Et.replace(/\s/g,".")}`);if(kt){const At=kt.getBoundingClientRect().width;qe.width=At||qe.width}}),ae.clear())})};watch(ae,ue),onBeforeUnmount(()=>{le&&(clearTimeout(le),le=void 0)}),onMounted(async()=>{await nextTick(),await nextTick();const{prop:qe,order:Et}=n.defaultSort;i==null||i.store.commit("sort",{prop:qe,order:Et,init:!0}),ue()});const{handleHeaderClick:de,handleHeaderContextMenu:he,handleMouseDown:pe,handleMouseMove:_e,handleMouseOut:Ce,handleSortClick:xe,handleFilterClick:Ie}=useEvent(n,t),{getHeaderRowStyle:Ne,getHeaderRowClass:Oe,getHeaderCellStyle:$e,getHeaderCellClass:Ve}=useStyle$2(n),{isGroup:Ue,toggleAllSelection:Fe,columnRows:ze}=useUtils$1(n),{t:Pt}=useLocale();return r.state={onColumnsChange:V,onScrollableChange:re},r.filterPanels=$,{ns:g,t:Pt,filterPanels:$,onColumnsChange:V,onScrollableChange:re,columnRows:ze,getHeaderRowClass:Oe,getHeaderRowStyle:Ne,getHeaderCellClass:Ve,getHeaderCellStyle:$e,handleHeaderClick:de,handleHeaderContextMenu:he,handleMouseDown:pe,handleMouseMove:_e,handleMouseOut:Ce,handleSortClick:xe,handleFilterClick:Ie,isGroup:Ue,toggleAllSelection:Fe,saveIndexSelection:ae,isTableLayoutAuto:ie,theadRef:oe,updateFixedColumnStyle:ue}},render(){const{ns:n,t,isGroup:r,columnRows:i,getHeaderCellStyle:g,getHeaderCellClass:$,getHeaderRowClass:V,getHeaderRowStyle:re,handleHeaderClick:ie,handleHeaderContextMenu:ae,handleMouseDown:oe,handleMouseMove:le,handleSortClick:ue,handleMouseOut:de,store:he,$parent:pe,saveIndexSelection:_e,isTableLayoutAuto:Ce}=this;let xe=1;return h$1("thead",{ref:"theadRef",class:n.is("group",r)},i.map((Ie,Ne)=>h$1("tr",{class:V(Ne),key:Ne,style:re(Ne)},Ie.map((Oe,$e)=>{Oe.rowSpan>xe&&(xe=Oe.rowSpan);const Ve=$(Ne,$e,Ie,Oe);return Ce&&Oe.fixed&&_e.set(Ve,Oe),h$1("th",{class:Ve,colspan:Oe.colSpan,key:`${Oe.id}-thead`,rowspan:Oe.rowSpan,scope:Oe.colSpan>1?"colgroup":"col",ariaSort:Oe.sortable?Oe.order:void 0,style:g(Ne,$e,Ie,Oe),onClick:Ue=>{var Fe;(Fe=Ue.currentTarget)!=null&&Fe.classList.contains("noclick")||ie(Ue,Oe)},onContextmenu:Ue=>ae(Ue,Oe),onMousedown:Ue=>oe(Ue,Oe),onMousemove:Ue=>le(Ue,Oe),onMouseout:de},[h$1("div",{class:["cell",Oe.filteredValue&&Oe.filteredValue.length>0?"highlight":""]},[Oe.renderHeader?Oe.renderHeader({column:Oe,$index:$e,store:he,_self:pe}):Oe.label,Oe.sortable&&h$1("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:Oe.label||""}),onClick:Ue=>ue(Ue,Oe)},[h$1("i",{onClick:Ue=>ue(Ue,Oe,"ascending"),class:"sort-caret ascending"}),h$1("i",{onClick:Ue=>ue(Ue,Oe,"descending"),class:"sort-caret descending"})]),Oe.filterable&&h$1(FilterPanel,{store:he,placement:Oe.filterPlacement||"bottom-start",appendTo:pe==null?void 0:pe.appendFilterPanelTo,column:Oe,upDataColumn:(Ue,Fe)=>{Oe[Ue]=Fe}},{"filter-icon":()=>Oe.renderFilterIcon?Oe.renderFilterIcon({filterOpened:Oe.filterOpened}):null})])])}))))}});function isGreaterThan(n,t,r=.03){return n-t>r}function useEvents(n){const t=inject(TABLE_INJECTION_KEY),r=ref(""),i=ref(h$1("div")),g=(he,pe,_e)=>{var Ce,xe,Ie;const Ne=t,Oe=getCell(he);let $e=null;const Ve=(Ce=Ne==null?void 0:Ne.vnode.el)==null?void 0:Ce.dataset.prefix;Oe&&($e=getColumnByCell({columns:(Ie=(xe=n.store)==null?void 0:xe.states.columns.value)!=null?Ie:[]},Oe,Ve),$e&&(Ne==null||Ne.emit(`cell-${_e}`,pe,$e,Oe,he))),Ne==null||Ne.emit(`row-${_e}`,pe,$e,he)},$=(he,pe)=>{g(he,pe,"dblclick")},V=(he,pe)=>{var _e;(_e=n.store)==null||_e.commit("setCurrentRow",pe),g(he,pe,"click")},re=(he,pe)=>{g(he,pe,"contextmenu")},ie=debounce(he=>{var pe;(pe=n.store)==null||pe.commit("setHoverRow",he)},30),ae=debounce(()=>{var he;(he=n.store)==null||he.commit("setHoverRow",null)},30),oe=he=>{const pe=window.getComputedStyle(he,null),_e=Number.parseInt(pe.paddingLeft,10)||0,Ce=Number.parseInt(pe.paddingRight,10)||0,xe=Number.parseInt(pe.paddingTop,10)||0,Ie=Number.parseInt(pe.paddingBottom,10)||0;return{left:_e,right:Ce,top:xe,bottom:Ie}},le=(he,pe,_e)=>{var Ce;let xe=(Ce=pe==null?void 0:pe.target)==null?void 0:Ce.parentNode;for(;he>1&&(xe=xe==null?void 0:xe.nextSibling,!(!xe||xe.nodeName!=="TR"));)_e(xe,"hover-row hover-fixed-row"),he--};return{handleDoubleClick:$,handleClick:V,handleContextMenu:re,handleMouseEnter:ie,handleMouseLeave:ae,handleCellMouseEnter:(he,pe,_e)=>{var Ce,xe,Ie,Ne,Oe,$e,Ve,Ue,Fe;if(!t)return;const ze=t,Pt=getCell(he),qe=(Ce=ze==null?void 0:ze.vnode.el)==null?void 0:Ce.dataset.prefix;let Et=null;if(Pt){if(Et=getColumnByCell({columns:(Ie=(xe=n.store)==null?void 0:xe.states.columns.value)!=null?Ie:[]},Pt,qe),!Et)return;Pt.rowSpan>1&&le(Pt.rowSpan,he,addClass);const Tn=ze.hoverState={cell:Pt,column:Et,row:pe};ze==null||ze.emit("cell-mouse-enter",Tn.row,Tn.column,Tn.cell,he)}if(!_e){((Ne=removePopper)==null?void 0:Ne.trigger)===Pt&&((Oe=removePopper)==null||Oe());return}const kt=he.target.querySelector(".cell");if(!(hasClass(kt,`${qe}-tooltip`)&&kt.childNodes.length&&(($e=kt.textContent)!=null&&$e.trim())))return;const At=document.createRange();At.setStart(kt,0),At.setEnd(kt,kt.childNodes.length);const{width:Dt,height:Lt}=At.getBoundingClientRect(),{width:jt,height:hn}=kt.getBoundingClientRect(),{top:vn,left:_n,right:wn,bottom:bn}=oe(kt),Cn=_n+wn,Sn=vn+bn;isGreaterThan(Dt+Cn,jt)||isGreaterThan(Lt+Sn,hn)||isGreaterThan(kt.scrollWidth,jt)?createTablePopper(_e,(Ve=(Pt==null?void 0:Pt.innerText)||(Pt==null?void 0:Pt.textContent))!=null?Ve:"",pe,Et,Pt,ze):((Ue=removePopper)==null?void 0:Ue.trigger)===Pt&&((Fe=removePopper)==null||Fe())},handleCellMouseLeave:he=>{const pe=getCell(he);if(!pe)return;pe.rowSpan>1&&le(pe.rowSpan,he,removeClass);const _e=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",_e==null?void 0:_e.row,_e==null?void 0:_e.column,_e==null?void 0:_e.cell,he)},tooltipContent:r,tooltipTrigger:i}}function useStyles$1(n){const t=inject(TABLE_INJECTION_KEY),r=useNamespace("table");return{getRowStyle:(ae,oe)=>{const le=t==null?void 0:t.props.rowStyle;return isFunction$4(le)?le.call(null,{row:ae,rowIndex:oe}):le||null},getRowClass:(ae,oe,le)=>{var ue;const de=[r.e("row")];t!=null&&t.props.highlightCurrentRow&&ae===((ue=n.store)==null?void 0:ue.states.currentRow.value)&&de.push("current-row"),n.stripe&&le%2===1&&de.push(r.em("row","striped"));const he=t==null?void 0:t.props.rowClassName;return isString$2(he)?de.push(he):isFunction$4(he)&&de.push(he.call(null,{row:ae,rowIndex:oe})),de},getCellStyle:(ae,oe,le,ue)=>{const de=t==null?void 0:t.props.cellStyle;let he=de??{};isFunction$4(de)&&(he=de.call(null,{rowIndex:ae,columnIndex:oe,row:le,column:ue}));const pe=getFixedColumnOffset(oe,n==null?void 0:n.fixed,n.store);return ensurePosition(pe,"left"),ensurePosition(pe,"right"),Object.assign({},he,pe)},getCellClass:(ae,oe,le,ue,de)=>{const he=getFixedColumnsClass(r.b(),oe,n==null?void 0:n.fixed,n.store,void 0,de),pe=[ue.id,ue.align,ue.className,...he],_e=t==null?void 0:t.props.cellClassName;return isString$2(_e)?pe.push(_e):isFunction$4(_e)&&pe.push(_e.call(null,{rowIndex:ae,columnIndex:oe,row:le,column:ue})),pe.push(r.e("cell")),pe.filter(Ce=>!!Ce).join(" ")},getSpan:(ae,oe,le,ue)=>{let de=1,he=1;const pe=t==null?void 0:t.props.spanMethod;if(isFunction$4(pe)){const _e=pe({row:ae,column:oe,rowIndex:le,columnIndex:ue});isArray$5(_e)?(de=_e[0],he=_e[1]):isObject$6(_e)&&(de=_e.rowspan,he=_e.colspan)}return{rowspan:de,colspan:he}},getColspanRealWidth:(ae,oe,le)=>{if(oe<1)return ae[le].realWidth;const ue=ae.map(({realWidth:de,width:he})=>de||he).slice(le,le+oe);return Number(ue.reduce((de,he)=>Number(de)+Number(he),-1))}}}const _hoisted_1$F=["colspan","rowspan"],_sfc_main$11=defineComponent({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(n){return(t,r)=>(openBlock(),createElementBlock("td",{colspan:n.colspan,rowspan:n.rowspan},[renderSlot(t.$slots,"default")],8,_hoisted_1$F))}});var TdWrapper=_export_sfc(_sfc_main$11,[["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table-body/td-wrapper.vue"]]);function useRender$1(n){const t=inject(TABLE_INJECTION_KEY),r=useNamespace("table"),{handleDoubleClick:i,handleClick:g,handleContextMenu:$,handleMouseEnter:V,handleMouseLeave:re,handleCellMouseEnter:ie,handleCellMouseLeave:ae,tooltipContent:oe,tooltipTrigger:le}=useEvents(n),{getRowStyle:ue,getRowClass:de,getCellStyle:he,getCellClass:pe,getSpan:_e,getColspanRealWidth:Ce}=useStyles$1(n);let xe=-1;const Ie=computed(()=>{var Ue;return(Ue=n.store)==null?void 0:Ue.states.columns.value.findIndex(({type:Fe})=>Fe==="default")}),Ne=(Ue,Fe)=>{var ze;const Pt=(ze=t==null?void 0:t.props)==null?void 0:ze.rowKey;return Pt?getRowIdentity(Ue,Pt):Fe},Oe=(Ue,Fe,ze,Pt=!1)=>{const{tooltipEffect:qe,tooltipOptions:Et,store:kt}=n,{indent:At,columns:Dt}=kt.states,Lt=[];let jt=!0;return ze&&(Lt.push(r.em("row",`level-${ze.level}`)),jt=!!ze.display),Fe===0&&(xe=-1),n.stripe&&jt&&xe++,Lt.push(...de(Ue,Fe,xe)),h$1("tr",{style:[jt?null:{display:"none"},ue(Ue,Fe)],class:Lt,key:Ne(Ue,Fe),onDblclick:vn=>i(vn,Ue),onClick:vn=>g(vn,Ue),onContextmenu:vn=>$(vn,Ue),onMouseenter:()=>V(Fe),onMouseleave:re},Dt.value.map((vn,_n)=>{const{rowspan:wn,colspan:bn}=_e(Ue,vn,Fe,_n);if(!wn||!bn)return null;const Cn=Object.assign({},vn);Cn.realWidth=Ce(Dt.value,bn,_n);const Sn={store:kt,_self:n.context||t,column:Cn,row:Ue,$index:Fe,cellIndex:_n,expanded:Pt};_n===Ie.value&&ze&&(Sn.treeNode={indent:ze.level&&ze.level*At.value,level:ze.level},isBoolean$1(ze.expanded)&&(Sn.treeNode.expanded=ze.expanded,"loading"in ze&&(Sn.treeNode.loading=ze.loading),"noLazyChildren"in ze&&(Sn.treeNode.noLazyChildren=ze.noLazyChildren)));const Tn=`${Ne(Ue,Fe)},${_n}`,En=Cn.columnKey||Cn.rawColumnKey||"",kn=vn.showOverflowTooltip&&merge$3({effect:qe},Et,vn.showOverflowTooltip);return h$1(TdWrapper,{style:he(Fe,_n,Ue,vn),class:pe(Fe,_n,Ue,vn,bn-1),key:`${En}${Tn}`,rowspan:wn,colspan:bn,onMouseenter:$n=>ie($n,Ue,kn),onMouseleave:ae},{default:()=>$e(_n,vn,Sn)})}))},$e=(Ue,Fe,ze)=>Fe.renderCell(ze);return{wrappedRowRender:(Ue,Fe)=>{const ze=n.store,{isRowExpanded:Pt,assertRowKey:qe}=ze,{treeData:Et,lazyTreeNodeMap:kt,childrenColumnName:At,rowKey:Dt}=ze.states,Lt=ze.states.columns.value;if(Lt.some(({type:hn})=>hn==="expand")){const hn=Pt(Ue),vn=Oe(Ue,Fe,void 0,hn),_n=t==null?void 0:t.renderExpanded;if(!_n)return console.error("[Element Error]renderExpanded is required."),vn;const wn=[[vn]];return(t.props.preserveExpandedContent||hn)&&wn[0].push(h$1("tr",{key:`expanded-row__${vn.key}`,style:{display:hn?"":"none"}},[h$1("td",{colspan:Lt.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[_n({row:Ue,$index:Fe,store:ze,expanded:hn})])])),wn}else if(Object.keys(Et.value).length){qe();const hn=getRowIdentity(Ue,Dt.value);let vn=Et.value[hn],_n=null;vn&&(_n={expanded:vn.expanded,level:vn.level,display:!0,noLazyChildren:void 0,loading:void 0},isBoolean$1(vn.lazy)&&(_n&&isBoolean$1(vn.loaded)&&vn.loaded&&(_n.noLazyChildren=!(vn.children&&vn.children.length)),_n.loading=vn.loading));const wn=[Oe(Ue,Fe,_n??void 0)];if(vn){let bn=0;const Cn=(Tn,En)=>{Tn&&Tn.length&&En&&Tn.forEach(kn=>{const $n={display:En.display&&En.expanded,level:En.level+1,expanded:!1,noLazyChildren:!1,loading:!1},An=getRowIdentity(kn,Dt.value);if(isPropAbsent(An))throw new Error("For nested data item, row-key is required.");if(vn={...Et.value[An]},vn&&($n.expanded=vn.expanded,vn.level=vn.level||$n.level,vn.display=!!(vn.expanded&&$n.display),isBoolean$1(vn.lazy)&&(isBoolean$1(vn.loaded)&&vn.loaded&&($n.noLazyChildren=!(vn.children&&vn.children.length)),$n.loading=vn.loading)),bn++,wn.push(Oe(kn,Fe+bn,$n)),vn){const xn=kt.value[An]||kn[At.value];Cn(xn,vn)}})};vn.display=!0;const Sn=kt.value[hn]||Ue[At.value];Cn(Sn,vn)}return wn}else return Oe(Ue,Fe,void 0)},tooltipContent:oe,tooltipTrigger:le}}const defaultProps$3={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 TableBody=defineComponent({name:"ElTableBody",props:defaultProps$3,setup(n){var t;const r=getCurrentInstance(),i=inject(TABLE_INJECTION_KEY),g=useNamespace("table"),{wrappedRowRender:$,tooltipContent:V,tooltipTrigger:re}=useRender$1(n),{onColumnsChange:ie,onScrollableChange:ae}=useLayoutObserver(i),oe=[];return watch((t=n.store)==null?void 0:t.states.hoverRow,(le,ue)=>{var de,he;const pe=r==null?void 0:r.vnode.el,_e=Array.from((pe==null?void 0:pe.children)||[]).filter(Ie=>Ie==null?void 0:Ie.classList.contains(`${g.e("row")}`));let Ce=le;const xe=(de=_e[Ce])==null?void 0:de.childNodes;if(xe!=null&&xe.length){let Ie=0;Array.from(xe).reduce((Oe,$e,Ve)=>{var Ue,Fe;return((Ue=xe[Ve])==null?void 0:Ue.colSpan)>1&&(Ie=(Fe=xe[Ve])==null?void 0:Fe.colSpan),$e.nodeName!=="TD"&&Ie===0&&Oe.push(Ve),Ie>0&&Ie--,Oe},[]).forEach(Oe=>{var $e;for(Ce=le;Ce>0;){const Ve=($e=_e[Ce-1])==null?void 0:$e.childNodes;if(Ve[Oe]&&Ve[Oe].nodeName==="TD"&&Ve[Oe].rowSpan>1){addClass(Ve[Oe],"hover-cell"),oe.push(Ve[Oe]);break}Ce--}})}else oe.forEach(Ie=>removeClass(Ie,"hover-cell")),oe.length=0;!((he=n.store)!=null&&he.states.isComplex.value)||!isClient||rAF(()=>{const Ie=_e[ue],Ne=_e[le];Ie&&!Ie.classList.contains("hover-fixed-row")&&removeClass(Ie,"hover-row"),Ne&&addClass(Ne,"hover-row")})}),onUnmounted(()=>{var le;(le=removePopper)==null||le()}),{ns:g,onColumnsChange:ie,onScrollableChange:ae,wrappedRowRender:$,tooltipContent:V,tooltipTrigger:re}},render(){const{wrappedRowRender:n,store:t}=this,r=(t==null?void 0:t.states.data.value)||[];return h$1("tbody",{tabIndex:-1},[r.reduce((i,g)=>i.concat(n(g,i.length)),[])])}});function useMapState(){const n=inject(TABLE_INJECTION_KEY),t=n==null?void 0:n.store,r=computed(()=>{var re;return(re=t==null?void 0:t.states.fixedLeafColumnsLength.value)!=null?re:0}),i=computed(()=>{var re;return(re=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?re:0}),g=computed(()=>{var re;return(re=t==null?void 0:t.states.columns.value.length)!=null?re:0}),$=computed(()=>{var re;return(re=t==null?void 0:t.states.fixedColumns.value.length)!=null?re:0}),V=computed(()=>{var re;return(re=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?re:0});return{leftFixedLeafCount:r,rightFixedLeafCount:i,columnsCount:g,leftFixedCount:$,rightFixedCount:V,columns:computed(()=>{var re;return(re=t==null?void 0:t.states.columns.value)!=null?re:[]})}}function useStyle$1(n){const{columns:t}=useMapState(),r=useNamespace("table");return{getCellClasses:($,V)=>{const re=$[V],ie=[r.e("cell"),re.id,re.align,re.labelClassName,...getFixedColumnsClass(r.b(),V,re.fixed,n.store)];return re.className&&ie.push(re.className),re.children||ie.push(r.is("leaf")),ie},getCellStyles:($,V)=>{const re=getFixedColumnOffset(V,$.fixed,n.store);return ensurePosition(re,"left"),ensurePosition(re,"right"),re},columns:t}}var TableFooter=defineComponent({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(n){const t=inject(TABLE_INJECTION_KEY),r=useNamespace("table"),{getCellClasses:i,getCellStyles:g,columns:$}=useStyle$1(n),{onScrollableChange:V,onColumnsChange:re}=useLayoutObserver(t);return{ns:r,onScrollableChange:V,onColumnsChange:re,getCellClasses:i,getCellStyles:g,columns:$}},render(){const{columns:n,getCellStyles:t,getCellClasses:r,summaryMethod:i,sumText:g}=this,$=this.store.states.data.value;let V=[];return i?V=i({columns:n,data:$}):n.forEach((re,ie)=>{if(ie===0){V[ie]=g;return}const ae=$.map(de=>Number(de[re.property])),oe=[];let le=!0;ae.forEach(de=>{if(!Number.isNaN(+de)){le=!1;const he=`${de}`.split(".")[1];oe.push(he?he.length:0)}});const ue=Math.max.apply(null,oe);le?V[ie]="":V[ie]=ae.reduce((de,he)=>{const pe=Number(he);return Number.isNaN(+pe)?de:Number.parseFloat((de+he).toFixed(Math.min(ue,20)))},0)}),h$1(h$1("tfoot",[h$1("tr",{},[...n.map((re,ie)=>h$1("td",{key:ie,colspan:re.colSpan,rowspan:re.rowSpan,class:r(n,ie),style:t(re,ie)},[h$1("div",{class:["cell",re.labelClassName]},[V[ie]])]))])]))}});function useUtils(n){return{setCurrentRow:le=>{n.commit("setCurrentRow",le)},getSelectionRows:()=>n.getSelectionRows(),toggleRowSelection:(le,ue,de=!0)=>{n.toggleRowSelection(le,ue,!1,de),n.updateAllSelected()},clearSelection:()=>{n.clearSelection()},clearFilter:le=>{n.clearFilter(le)},toggleAllSelection:()=>{n.commit("toggleAllSelection")},toggleRowExpansion:(le,ue)=>{n.toggleRowExpansionAdapter(le,ue)},clearSort:()=>{n.clearSort()},sort:(le,ue)=>{n.commit("sort",{prop:le,order:ue})},updateKeyChildren:(le,ue)=>{n.updateKeyChildren(le,ue)}}}function useStyle(n,t,r,i){const g=ref(!1),$=ref(null),V=ref(!1),re=Lt=>{V.value=Lt},ie=ref({width:null,height:null,headerHeight:null}),ae=ref(!1),oe={display:"inline-block",verticalAlign:"middle"},le=ref(),ue=ref(0),de=ref(0),he=ref(0),pe=ref(0),_e=ref(0);watch(()=>n.height,Lt=>{t.setHeight(Lt??null)},{immediate:!0}),watch(()=>n.maxHeight,Lt=>{t.setMaxHeight(Lt??null)},{immediate:!0}),watch(()=>[n.currentRowKey,r.states.rowKey],([Lt,jt])=>{!unref(jt)||!unref(Lt)||r.setCurrentRowKey(`${Lt}`)},{immediate:!0}),watch(()=>n.data,Lt=>{i.store.commit("setData",Lt)},{immediate:!0,deep:!0}),watchEffect(()=>{n.expandRowKeys&&r.setExpandRowKeysAdapter(n.expandRowKeys)});const Ce=()=>{i.store.commit("setHoverRow",null),i.hoverState&&(i.hoverState=null)},xe=(Lt,jt)=>{const{pixelX:hn,pixelY:vn}=jt;Math.abs(hn)>=Math.abs(vn)&&(i.refs.bodyWrapper.scrollLeft+=jt.pixelX/5)},Ie=computed(()=>n.height||n.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),Ne=computed(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),Oe=()=>{Ie.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(Fe)};onMounted(async()=>{await nextTick(),r.updateColumns(),ze(),requestAnimationFrame(Oe);const Lt=i.vnode.el,jt=i.refs.headerWrapper;n.flexible&&Lt&&Lt.parentElement&&(Lt.parentElement.style.minWidth="0"),ie.value={width:le.value=Lt.offsetWidth,height:Lt.offsetHeight,headerHeight:n.showHeader&&jt?jt.offsetHeight:null},r.states.columns.value.forEach(hn=>{hn.filteredValue&&hn.filteredValue.length&&i.store.commit("filterChange",{column:hn,values:hn.filteredValue,silent:!0})}),i.$ready=!0});const $e=(Lt,jt)=>{if(!Lt)return;const hn=Array.from(Lt.classList).filter(vn=>!vn.startsWith("is-scrolling-"));hn.push(t.scrollX.value?jt:"is-scrolling-none"),Lt.className=hn.join(" ")},Ve=Lt=>{const{tableWrapper:jt}=i.refs;$e(jt,Lt)},Ue=Lt=>{const{tableWrapper:jt}=i.refs;return!!(jt&&jt.classList.contains(Lt))},Fe=function(){if(!i.refs.scrollBarRef)return;if(!t.scrollX.value){const Cn="is-scrolling-none";Ue(Cn)||Ve(Cn);return}const Lt=i.refs.scrollBarRef.wrapRef;if(!Lt)return;const{scrollLeft:jt,offsetWidth:hn,scrollWidth:vn}=Lt,{headerWrapper:_n,footerWrapper:wn}=i.refs;_n&&(_n.scrollLeft=jt),wn&&(wn.scrollLeft=jt);const bn=vn-hn-1;jt>=bn?Ve("is-scrolling-right"):Ve(jt===0?"is-scrolling-left":"is-scrolling-middle")},ze=()=>{i.refs.scrollBarRef&&(i.refs.scrollBarRef.wrapRef&&useEventListener(i.refs.scrollBarRef.wrapRef,"scroll",Fe,{passive:!0}),n.fit?useResizeObserver(i.vnode.el,Pt):useEventListener(window,"resize",Pt),useResizeObserver(i.refs.tableInnerWrapper,()=>{var Lt,jt;Pt(),(jt=(Lt=i.refs)==null?void 0:Lt.scrollBarRef)==null||jt.update()}))},Pt=()=>{var Lt,jt,hn,vn;const _n=i.vnode.el;if(!i.$ready||!_n)return;let wn=!1;const{width:bn,height:Cn,headerHeight:Sn}=ie.value,Tn=le.value=_n.offsetWidth;bn!==Tn&&(wn=!0);const En=_n.offsetHeight;(n.height||Ie.value)&&Cn!==En&&(wn=!0);const kn=n.tableLayout==="fixed"?i.refs.headerWrapper:(Lt=i.refs.tableHeaderRef)==null?void 0:Lt.$el;n.showHeader&&(kn==null?void 0:kn.offsetHeight)!==Sn&&(wn=!0),ue.value=((jt=i.refs.tableWrapper)==null?void 0:jt.scrollHeight)||0,he.value=(kn==null?void 0:kn.scrollHeight)||0,pe.value=((hn=i.refs.footerWrapper)==null?void 0:hn.offsetHeight)||0,_e.value=((vn=i.refs.appendWrapper)==null?void 0:vn.offsetHeight)||0,de.value=ue.value-he.value-pe.value-_e.value,wn&&(ie.value={width:Tn,height:En,headerHeight:n.showHeader&&(kn==null?void 0:kn.offsetHeight)||0},Oe())},qe=useFormSize(),Et=computed(()=>{const{bodyWidth:Lt,scrollY:jt,gutterWidth:hn}=t;return Lt.value?`${Lt.value-(jt.value?hn:0)}px`:""}),kt=computed(()=>n.maxHeight?"fixed":n.tableLayout),At=computed(()=>{if(n.data&&n.data.length)return;let Lt="100%";n.height&&de.value&&(Lt=`${de.value}px`);const jt=le.value;return{width:jt?`${jt}px`:"",height:Lt}}),Dt=computed(()=>n.height?{height:"100%"}:n.maxHeight?Number.isNaN(Number(n.maxHeight))?{maxHeight:`calc(${n.maxHeight} - ${he.value+pe.value}px)`}:{maxHeight:`${+n.maxHeight-he.value-pe.value}px`}:{});return{isHidden:g,renderExpanded:$,setDragVisible:re,isGroup:ae,handleMouseLeave:Ce,handleHeaderFooterMousewheel:xe,tableSize:qe,emptyBlockStyle:At,resizeProxyVisible:V,bodyWidth:Et,resizeState:ie,doLayout:Oe,tableBodyStyles:Ne,tableLayout:kt,scrollbarViewStyle:oe,scrollbarStyle:Dt}}function useKeyRender(n){let t;const r=()=>{const g=n.vnode.el.querySelector(".hidden-columns"),$={childList:!0,subtree:!0},V=n.store.states.updateOrderFns;t=new MutationObserver(()=>{V.forEach(re=>re())}),t.observe(g,$)};onMounted(()=>{r()}),onUnmounted(()=>{t==null||t.disconnect()})}var defaultProps$2={data:{type:Array,default:()=>[]},size:useSizeProp,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 hColgroup(n){const t=n.tableLayout==="auto";let r=n.columns||[];t&&r.every(({width:g})=>isUndefined$1(g))&&(r=[]);const i=g=>{const $={key:`${n.tableLayout}_${g.id}`,style:{},name:void 0};return t?$.style={width:`${g.width}px`}:$.name=g.id,$};return h$1("colgroup",{},r.map(g=>h$1("col",i(g))))}hColgroup.props=["columns","tableLayout"];const useScrollbar$1=()=>{const n=ref(),t=($,V)=>{const re=n.value;re&&re.scrollTo($,V)},r=($,V)=>{const re=n.value;re&&isNumber$2(V)&&["Top","Left"].includes($)&&re[`setScroll${$}`](V)};return{scrollBarRef:n,scrollTo:t,setScrollTop:$=>r("Top",$),setScrollLeft:$=>r("Left",$)}};var v=!1,o,f,s,u,d,N,l,p,m$1,w$1,D$1,x$1,E$1,M,F;function a(){if(!v){v=!0;var n=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(n),r=/(Mac OS X)|(Windows)|(Linux)/.exec(n);if(x$1=/\b(iPhone|iP[ao]d)/.exec(n),E$1=/\b(iP[ao]d)/.exec(n),w$1=/Android/i.exec(n),M=/FBAN\/\w+;/i.exec(n),F=/Mobile/i.exec(n),D$1=!!/Win64/.exec(n),t){o=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(n);N=i?parseFloat(i[1])+4:o,f=t[2]?parseFloat(t[2]):NaN,s=t[3]?parseFloat(t[3]):NaN,u=t[4]?parseFloat(t[4]):NaN,u?(t=/(?:Chrome\/(\d+\.\d+))/.exec(n),d=t&&t[1]?parseFloat(t[1]):NaN):d=NaN}else o=f=s=d=u=NaN;if(r){if(r[1]){var g=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(n);l=g?parseFloat(g[1].replace("_",".")):!0}else l=!1;p=!!r[2],m$1=!!r[3]}else l=p=m$1=!1}}var _$1={ie:function(){return a()||o},ieCompatibilityMode:function(){return a()||N>o},ie64:function(){return _$1.ie()&&D$1},firefox:function(){return a()||f},opera:function(){return a()||s},webkit:function(){return a()||u},safari:function(){return _$1.webkit()},chrome:function(){return a()||d},windows:function(){return a()||p},osx:function(){return a()||l},linux:function(){return a()||m$1},iphone:function(){return a()||x$1},mobile:function(){return a()||x$1||E$1||w$1||F},nativeApp:function(){return a()||M},android:function(){return a()||w$1},ipad:function(){return a()||E$1}},A$1=_$1,c=!!(typeof window<"u"&&window.document&&window.document.createElement),U$1={canUseDOM:c,canUseWorkers:typeof Worker<"u",canUseEventListeners:c&&!!(window.addEventListener||window.attachEvent),canUseViewport:c&&!!window.screen,isInWorker:!c},h=U$1,X;h.canUseDOM&&(X=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function S$1(n,t){if(!h.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+n,i=r in document;if(!i){var g=document.createElement("div");g.setAttribute(r,"return;"),i=typeof g[r]=="function"}return!i&&X&&n==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}var b$1=S$1,O=10,I=40,P$1=800;function T$1(n){var t=0,r=0,i=0,g=0;return"detail"in n&&(r=n.detail),"wheelDelta"in n&&(r=-n.wheelDelta/120),"wheelDeltaY"in n&&(r=-n.wheelDeltaY/120),"wheelDeltaX"in n&&(t=-n.wheelDeltaX/120),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(t=r,r=0),i=t*O,g=r*O,"deltaY"in n&&(g=n.deltaY),"deltaX"in n&&(i=n.deltaX),(i||g)&&n.deltaMode&&(n.deltaMode==1?(i*=I,g*=I):(i*=P$1,g*=P$1)),i&&!t&&(t=i<1?-1:1),g&&!r&&(r=g<1?-1:1),{spinX:t,spinY:r,pixelX:i,pixelY:g}}T$1.getEventType=function(){return A$1.firefox()?"DOMMouseScroll":b$1("wheel")?"wheel":"mousewheel"};var Y=T$1;/**
-* Checks if an event is supported in the current execution environment.
-*
-* NOTE: This will not work correctly for non-generic events such as `change`,
-* `reset`, `load`, `error`, and `select`.
-*
-* Borrows from Modernizr.
-*
-* @param {string} eventNameSuffix Event name, e.g. "click".
-* @param {?boolean} capture Check if the capture phase is supported.
-* @return {boolean} True if the event is supported.
-* @internal
-* @license Modernizr 3.0.0pre (Custom Build) | MIT
-*/const SCOPE$3="_Mousewheel",mousewheel=function(n,t){if(n&&n.addEventListener){removeWheelHandler(n);const r=function(i){const g=Y(i);t&&Reflect.apply(t,this,[i,g])};n[SCOPE$3]={wheelHandler:r},n.addEventListener("wheel",r,{passive:!0})}},removeWheelHandler=n=>{var t;(t=n[SCOPE$3])!=null&&t.wheelHandler&&(n.removeEventListener("wheel",n[SCOPE$3].wheelHandler),n[SCOPE$3]=null)},Mousewheel={beforeMount(n,t){mousewheel(n,t.value)},unmounted(n){removeWheelHandler(n)},updated(n,t){t.value!==t.oldValue&&mousewheel(n,t.value)}};let tableIdSeed=1;const _sfc_main$10=defineComponent({name:"ElTable",directives:{Mousewheel},components:{TableHeader,TableBody,TableFooter,ElScrollbar,hColgroup},props:defaultProps$2,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(n){const{t}=useLocale(),r=useNamespace("table"),i=getCurrentInstance();provide(TABLE_INJECTION_KEY,i);const g=createStore(i,n);i.store=g;const $=new TableLayout({store:i.store,table:i,fit:n.fit,showHeader:n.showHeader});i.layout=$;const V=computed(()=>(g.states.data.value||[]).length===0),{setCurrentRow:re,getSelectionRows:ie,toggleRowSelection:ae,clearSelection:oe,clearFilter:le,toggleAllSelection:ue,toggleRowExpansion:de,clearSort:he,sort:pe,updateKeyChildren:_e}=useUtils(g),{isHidden:Ce,renderExpanded:xe,setDragVisible:Ie,isGroup:Ne,handleMouseLeave:Oe,handleHeaderFooterMousewheel:$e,tableSize:Ve,emptyBlockStyle:Ue,resizeProxyVisible:Fe,bodyWidth:ze,resizeState:Pt,doLayout:qe,tableBodyStyles:Et,tableLayout:kt,scrollbarViewStyle:At,scrollbarStyle:Dt}=useStyle(n,$,g,i),{scrollBarRef:Lt,scrollTo:jt,setScrollLeft:hn,setScrollTop:vn}=useScrollbar$1(),_n=debounce(qe,50),wn=`${r.namespace.value}-table_${tableIdSeed++}`;i.tableId=wn,i.state={isGroup:Ne,resizeState:Pt,doLayout:qe,debouncedUpdateLayout:_n};const bn=computed(()=>{var Tn;return(Tn=n.sumText)!=null?Tn:t("el.table.sumText")}),Cn=computed(()=>{var Tn;return(Tn=n.emptyText)!=null?Tn:t("el.table.emptyText")}),Sn=computed(()=>convertToRows(g.states.originColumns.value)[0]);return useKeyRender(i),onBeforeUnmount(()=>{_n.cancel()}),{ns:r,layout:$,store:g,columns:Sn,handleHeaderFooterMousewheel:$e,handleMouseLeave:Oe,tableId:wn,tableSize:Ve,isHidden:Ce,isEmpty:V,renderExpanded:xe,resizeProxyVisible:Fe,resizeState:Pt,isGroup:Ne,bodyWidth:ze,tableBodyStyles:Et,emptyBlockStyle:Ue,debouncedUpdateLayout:_n,setCurrentRow:re,getSelectionRows:ie,toggleRowSelection:ae,clearSelection:oe,clearFilter:le,toggleAllSelection:ue,toggleRowExpansion:de,clearSort:he,doLayout:qe,sort:pe,updateKeyChildren:_e,t,setDragVisible:Ie,context:i,computedSumText:bn,computedEmptyText:Cn,tableLayout:kt,scrollbarViewStyle:At,scrollbarStyle:Dt,scrollBarRef:Lt,scrollTo:jt,setScrollLeft:hn,setScrollTop:vn,allowDragLastColumn:n.allowDragLastColumn}}}),_hoisted_1$E=["data-prefix"],_hoisted_2$s={ref:"hiddenColumns",class:"hidden-columns"};function _sfc_render$3(n,t,r,i,g,$){const V=resolveComponent("hColgroup"),re=resolveComponent("table-header"),ie=resolveComponent("table-body"),ae=resolveComponent("table-footer"),oe=resolveComponent("el-scrollbar"),le=resolveDirective("mousewheel");return openBlock(),createElementBlock("div",{ref:"tableWrapper",class:normalizeClass([{[n.ns.m("fit")]:n.fit,[n.ns.m("striped")]:n.stripe,[n.ns.m("border")]:n.border||n.isGroup,[n.ns.m("hidden")]:n.isHidden,[n.ns.m("group")]:n.isGroup,[n.ns.m("fluid-height")]:n.maxHeight,[n.ns.m("scrollable-x")]:n.layout.scrollX.value,[n.ns.m("scrollable-y")]:n.layout.scrollY.value,[n.ns.m("enable-row-hover")]:!n.store.states.isComplex.value,[n.ns.m("enable-row-transition")]:(n.store.states.data.value||[]).length!==0&&(n.store.states.data.value||[]).length<100,"has-footer":n.showSummary},n.ns.m(n.tableSize),n.className,n.ns.b(),n.ns.m(`layout-${n.tableLayout}`)]),style:normalizeStyle$1(n.style),"data-prefix":n.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...ue)=>n.handleMouseLeave&&n.handleMouseLeave(...ue))},[createBaseVNode("div",{ref:"tableInnerWrapper",class:normalizeClass(n.ns.e("inner-wrapper"))},[createBaseVNode("div",_hoisted_2$s,[renderSlot(n.$slots,"default")],512),n.showHeader&&n.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"headerWrapper",class:normalizeClass(n.ns.e("header-wrapper"))},[createBaseVNode("table",{ref:"tableHeader",class:normalizeClass(n.ns.e("header")),style:normalizeStyle$1(n.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[createVNode$1(V,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),createVNode$1(re,{ref:"tableHeaderRef",border:n.border,"default-sort":n.defaultSort,store:n.store,"append-filter-panel-to":n.appendFilterPanelTo,"allow-drag-last-column":n.allowDragLastColumn,onSetDragVisible:n.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[le,n.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"bodyWrapper",class:normalizeClass(n.ns.e("body-wrapper"))},[createVNode$1(oe,{ref:"scrollBarRef","view-style":n.scrollbarViewStyle,"wrap-style":n.scrollbarStyle,always:n.scrollbarAlwaysOn,tabindex:n.scrollbarTabindex,native:n.nativeScrollbar,onScroll:t[0]||(t[0]=ue=>n.$emit("scroll",ue))},{default:withCtx(()=>[createBaseVNode("table",{ref:"tableBody",class:normalizeClass(n.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle$1({width:n.bodyWidth,tableLayout:n.tableLayout})},[createVNode$1(V,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),n.showHeader&&n.tableLayout==="auto"?(openBlock(),createBlock(re,{key:0,ref:"tableHeaderRef",class:normalizeClass(n.ns.e("body-header")),border:n.border,"default-sort":n.defaultSort,store:n.store,"append-filter-panel-to":n.appendFilterPanelTo,onSetDragVisible:n.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):createCommentVNode("v-if",!0),createVNode$1(ie,{context:n.context,highlight:n.highlightCurrentRow,"row-class-name":n.rowClassName,"tooltip-effect":n.tooltipEffect,"tooltip-options":n.tooltipOptions,"row-style":n.rowStyle,store:n.store,stripe:n.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),n.showSummary&&n.tableLayout==="auto"?(openBlock(),createBlock(ae,{key:1,class:normalizeClass(n.ns.e("body-footer")),border:n.border,"default-sort":n.defaultSort,store:n.store,"sum-text":n.computedSumText,"summary-method":n.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):createCommentVNode("v-if",!0)],6),n.isEmpty?(openBlock(),createElementBlock("div",{key:0,ref:"emptyBlock",style:normalizeStyle$1(n.emptyBlockStyle),class:normalizeClass(n.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(n.ns.e("empty-text"))},[renderSlot(n.$slots,"empty",{},()=>[createTextVNode(toDisplayString(n.computedEmptyText),1)])],2)],6)):createCommentVNode("v-if",!0),n.$slots.append?(openBlock(),createElementBlock("div",{key:1,ref:"appendWrapper",class:normalizeClass(n.ns.e("append-wrapper"))},[renderSlot(n.$slots,"append")],2)):createCommentVNode("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),n.showSummary&&n.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:1,ref:"footerWrapper",class:normalizeClass(n.ns.e("footer-wrapper"))},[createBaseVNode("table",{class:normalizeClass(n.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle$1(n.tableBodyStyles)},[createVNode$1(V,{columns:n.store.states.columns.value,"table-layout":n.tableLayout},null,8,["columns","table-layout"]),createVNode$1(ae,{border:n.border,"default-sort":n.defaultSort,store:n.store,"sum-text":n.computedSumText,"summary-method":n.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[vShow,!n.isEmpty],[le,n.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),n.border||n.isGroup?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(n.ns.e("border-left-patch"))},null,2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{ref:"resizeProxy",class:normalizeClass(n.ns.e("column-resize-proxy"))},null,2),[[vShow,n.resizeProxyVisible]])],46,_hoisted_1$E)}var Table$1=_export_sfc(_sfc_main$10,[["render",_sfc_render$3],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const defaultClassNames={selection:"table-column--selection",expand:"table__expand-column"},cellStarts={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:""}},getDefaultClassName=n=>defaultClassNames[n]||"",cellForced={selection:{renderHeader({store:n}){var t;function r(){return n.states.data.value&&n.states.data.value.length===0}return h$1(ElCheckbox,{disabled:r(),size:n.states.tableSize.value,indeterminate:n.states.selection.value.length>0&&!n.states.isAllSelected.value,"onUpdate:modelValue":(t=n.toggleAllSelection)!=null?t:void 0,modelValue:n.states.isAllSelected.value,ariaLabel:n.t("el.table.selectAllLabel")})},renderCell({row:n,column:t,store:r,$index:i}){return h$1(ElCheckbox,{disabled:t.selectable?!t.selectable.call(null,n,i):!1,size:r.states.tableSize.value,onChange:()=>{r.commit("rowSelectedChanged",n)},onClick:g=>g.stopPropagation(),modelValue:r.isSelected(n),ariaLabel:r.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:n}){return n.label||"#"},renderCell({column:n,$index:t}){let r=t+1;const i=n.index;return isNumber$2(i)?r=t+i:isFunction$4(i)&&(r=i(t)),h$1("div",{},[r])},sortable:!1},expand:{renderHeader({column:n}){return n.label||""},renderCell({column:n,row:t,store:r,expanded:i}){const{ns:g}=r,$=[g.e("expand-icon")];!n.renderExpand&&i&&$.push(g.em("expand-icon","expanded"));const V=function(re){re.stopPropagation(),r.toggleRowExpansion(t)};return h$1("button",{type:"button","aria-label":r.t(i?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":i,class:$,onClick:V},{default:()=>n.renderExpand?[n.renderExpand({expanded:i})]:[h$1(ElIcon,null,{default:()=>[h$1(arrow_right_default)]})]})},sortable:!1,resizable:!1}};function defaultRenderCell({row:n,column:t,$index:r}){var i;const g=t.property,$=g&&getProp(n,g).value;return t&&t.formatter?t.formatter(n,t,$,r):((i=$==null?void 0:$.toString)==null?void 0:i.call($))||""}function treeCellPrefix({row:n,treeNode:t,store:r},i=!1){const{ns:g}=r;if(!t)return i?[h$1("span",{class:g.e("placeholder")})]:null;const $=[],V=function(re){re.stopPropagation(),!t.loading&&r.loadOrToggle(n)};if(t.indent&&$.push(h$1("span",{class:g.e("indent"),style:{"padding-left":`${t.indent}px`}})),isBoolean$1(t.expanded)&&!t.noLazyChildren){const re=[g.e("expand-icon"),t.expanded?g.em("expand-icon","expanded"):""];let ie=arrow_right_default;t.loading&&(ie=loading_default),$.push(h$1("button",{type:"button","aria-label":r.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:re,onClick:V},{default:()=>[h$1(ElIcon,{class:g.is("loading",t.loading)},{default:()=>[h$1(ie)]})]}))}else $.push(h$1("span",{class:g.e("placeholder")}));return $}function getAllAliases(n,t){return n.reduce((r,i)=>(r[i]=i,r),t)}function useWatcher(n,t){const r=getCurrentInstance();return{registerComplexWatchers:()=>{const $=["fixed"],V={realWidth:"width",realMinWidth:"minWidth"},re=getAllAliases($,V);Object.keys(re).forEach(ie=>{const ae=V[ie];hasOwn$1(t,ae)&&watch(()=>t[ae],oe=>{let le=oe;ae==="width"&&ie==="realWidth"&&(le=parseWidth(oe)),ae==="minWidth"&&ie==="realMinWidth"&&(le=parseMinWidth(oe)),r.columnConfig.value[ae]=le,r.columnConfig.value[ie]=le;const ue=ae==="fixed";n.value.store.scheduleLayout(ue)})})},registerNormalWatchers:()=>{const $=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],V=["showOverflowTooltip"],re={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},ie=getAllAliases($,re);Object.keys(ie).forEach(ae=>{const oe=re[ae];hasOwn$1(t,oe)&&watch(()=>t[oe],le=>{r.columnConfig.value[ae]=le,(ae==="filters"||ae==="filterMethod")&&(r.columnConfig.value.filterable=!!(r.columnConfig.value.filters||r.columnConfig.value.filterMethod))})}),V.forEach(ae=>{hasOwn$1(n.value.props,ae)&&watch(()=>n.value.props[ae],oe=>{r.columnConfig.value.type!=="selection"&&isUndefined$1(t[ae])&&(r.columnConfig.value[ae]=oe)})})}}}function useRender(n,t,r){const i=getCurrentInstance(),g=ref(""),$=ref(!1),V=ref(),re=ref(),ie=useNamespace("table");watchEffect(()=>{V.value=n.align?`is-${n.align}`:null,V.value}),watchEffect(()=>{re.value=n.headerAlign?`is-${n.headerAlign}`:V.value,re.value});const ae=computed(()=>{let Ne=i.vnode.vParent||i.parent;for(;Ne&&!Ne.tableId&&!Ne.columnId;)Ne=Ne.vnode.vParent||Ne.parent;return Ne}),oe=computed(()=>{const{store:Ne}=i.parent;if(!Ne)return!1;const{treeData:Oe}=Ne.states,$e=Oe.value;return $e&&Object.keys($e).length>0}),le=ref(parseWidth(n.width)),ue=ref(parseMinWidth(n.minWidth)),de=Ne=>(le.value&&(Ne.width=le.value),ue.value&&(Ne.minWidth=ue.value),!le.value&&ue.value&&(Ne.width=void 0),Ne.minWidth||(Ne.minWidth=80),Ne.realWidth=Number(isUndefined$1(Ne.width)?Ne.minWidth:Ne.width),Ne),he=Ne=>{const Oe=Ne.type,$e=cellForced[Oe]||{};Object.keys($e).forEach(Ue=>{const Fe=$e[Ue];Ue!=="className"&&!isUndefined$1(Fe)&&(Ne[Ue]=Fe)});const Ve=getDefaultClassName(Oe);if(Ve){const Ue=`${unref(ie.namespace)}-${Ve}`;Ne.className=Ne.className?`${Ne.className} ${Ue}`:Ue}return Ne},pe=Ne=>{isArray$5(Ne)?Ne.forEach($e=>Oe($e)):Oe(Ne);function Oe($e){var Ve;((Ve=$e==null?void 0:$e.type)==null?void 0:Ve.name)==="ElTableColumn"&&($e.vParent=i)}};return{columnId:g,realAlign:V,isSubColumn:$,realHeaderAlign:re,columnOrTableParent:ae,setColumnWidth:de,setColumnForcedProps:he,setColumnRenders:Ne=>{n.renderHeader||Ne.type!=="selection"&&(Ne.renderHeader=$e=>{if(i.columnConfig.value.label,t.header){const Ve=t.header($e);if(ensureValidVNode(Ve))return h$1(Fragment,Ve)}return createTextVNode(Ne.label)}),t["filter-icon"]&&(Ne.renderFilterIcon=$e=>renderSlot(t,"filter-icon",$e)),t.expand&&(Ne.renderExpand=$e=>renderSlot(t,"expand",$e));let Oe=Ne.renderCell;return Ne.type==="expand"?(Ne.renderCell=$e=>h$1("div",{class:"cell"},[Oe($e)]),r.value.renderExpanded=$e=>t.default?t.default($e):t.default):(Oe=Oe||defaultRenderCell,Ne.renderCell=$e=>{let Ve=null;if(t.default){const Et=t.default($e);Ve=Et.some(kt=>kt.type!==Comment)?Et:Oe($e)}else Ve=Oe($e);const{columns:Ue}=r.value.store.states,Fe=Ue.value.findIndex(Et=>Et.type==="default"),ze=oe.value&&$e.cellIndex===Fe,Pt=treeCellPrefix($e,ze),qe={class:"cell",style:{}};return Ne.showOverflowTooltip&&(qe.class=`${qe.class} ${unref(ie.namespace)}-tooltip`,qe.style={width:`${($e.column.realWidth||Number($e.column.width))-1}px`}),pe(Ve),h$1("div",qe,[Pt,Ve])}),Ne},getPropsData:(...Ne)=>Ne.reduce((Oe,$e)=>(isArray$5($e)&&$e.forEach(Ve=>{Oe[Ve]=n[Ve]}),Oe),{}),getColumnElIndex:(Ne,Oe)=>Array.prototype.indexOf.call(Ne,Oe),updateColumnOrder:()=>{r.value.store.commit("updateColumnOrder",i.columnConfig.value)}}}var defaultProps$1={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:n=>n.every(t=>["ascending","descending",null].includes(t))}};let columnIdSeed=1;var ElTableColumn$1=defineComponent({name:"ElTableColumn",components:{ElCheckbox},props:defaultProps$1,setup(n,{slots:t}){const r=getCurrentInstance(),i=ref({}),g=computed(()=>{let Ie=r.parent;for(;Ie&&!Ie.tableId;)Ie=Ie.parent;return Ie}),{registerNormalWatchers:$,registerComplexWatchers:V}=useWatcher(g,n),{columnId:re,isSubColumn:ie,realHeaderAlign:ae,columnOrTableParent:oe,setColumnWidth:le,setColumnForcedProps:ue,setColumnRenders:de,getPropsData:he,getColumnElIndex:pe,realAlign:_e,updateColumnOrder:Ce}=useRender(n,t,g),xe=oe.value;re.value=`${"tableId"in xe&&xe.tableId||"columnId"in xe&&xe.columnId}_column_${columnIdSeed++}`,onBeforeMount(()=>{ie.value=g.value!==xe;const Ie=n.type||"default",Ne=n.sortable===""?!0:n.sortable,Oe=Ie==="selection"?!1:isUndefined$1(n.showOverflowTooltip)?xe.props.showOverflowTooltip:n.showOverflowTooltip,$e=isUndefined$1(n.tooltipFormatter)?xe.props.tooltipFormatter:n.tooltipFormatter,Ve={...cellStarts[Ie],id:re.value,type:Ie,property:n.prop||n.property,align:_e,headerAlign:ae,showOverflowTooltip:Oe,tooltipFormatter:$e,filterable:n.filters||n.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:Ne,index:n.index,rawColumnKey:r.vnode.key};let qe=he(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);qe=mergeOptions$1(Ve,qe),qe=compose(de,le,ue)(qe),i.value=qe,$(),V()}),onMounted(()=>{var Ie,Ne;const Oe=oe.value,$e=ie.value?(Ie=Oe.vnode.el)==null?void 0:Ie.children:(Ne=Oe.refs.hiddenColumns)==null?void 0:Ne.children,Ve=()=>pe($e||[],r.vnode.el);i.value.getColumnIndex=Ve,Ve()>-1&&g.value.store.commit("insertColumn",i.value,ie.value?"columnConfig"in Oe&&Oe.columnConfig.value:null,Ce)}),onBeforeUnmount(()=>{const Ie=i.value.getColumnIndex;(Ie?Ie():-1)>-1&&g.value.store.commit("removeColumn",i.value,ie.value?"columnConfig"in xe&&xe.columnConfig.value:null,Ce)}),r.columnId=re.value,r.columnConfig=i},render(){var n,t,r;try{const i=(t=(n=this.$slots).default)==null?void 0:t.call(n,{row:{},column:{},$index:-1}),g=[];if(isArray$5(i))for(const V of i)((r=V.type)==null?void 0:r.name)==="ElTableColumn"||V.shapeFlag&2?g.push(V):V.type===Fragment&&isArray$5(V.children)&&V.children.forEach(re=>{(re==null?void 0:re.patchFlag)!==1024&&!isString$2(re==null?void 0:re.children)&&g.push(re)});return h$1("div",g)}catch{return h$1("div",[])}}});const ElTable=withInstall(Table$1,{TableColumn:ElTableColumn$1}),ElTableColumn=withNoopInstall(ElTableColumn$1);var SortOrder=(n=>(n.ASC="asc",n.DESC="desc",n))(SortOrder||{}),Alignment=(n=>(n.LEFT="left",n.CENTER="center",n.RIGHT="right",n))(Alignment||{}),FixedDir=(n=>(n.LEFT="left",n.RIGHT="right",n))(FixedDir||{});const oppositeOrderMap={asc:"desc",desc:"asc"},placeholderSign=Symbol("placeholder"),calcColumnStyle=(n,t,r)=>{var i,g,$;const V={flexGrow:0,flexShrink:0,...r?{}:{flexGrow:(i=n.flexGrow)!=null?i:0,flexShrink:(g=n.flexShrink)!=null?g:1}},re={...($=n.style)!=null?$:{},...V,flexBasis:"auto",width:n.width};return t||(n.maxWidth&&(re.maxWidth=n.maxWidth),n.minWidth&&(re.minWidth=n.minWidth)),re};function useColumns(n,t,r){const i=computed(()=>unref(t).map((_e,Ce)=>{var xe,Ie;return{..._e,key:(Ie=(xe=_e.key)!=null?xe:_e.dataKey)!=null?Ie:Ce}})),g=computed(()=>unref(i).filter(_e=>!_e.hidden)),$=computed(()=>unref(g).filter(_e=>_e.fixed==="left"||_e.fixed===!0)),V=computed(()=>unref(g).filter(_e=>_e.fixed==="right")),re=computed(()=>unref(g).filter(_e=>!_e.fixed)),ie=computed(()=>{const _e=[];return unref($).forEach(Ce=>{_e.push({...Ce,placeholderSign})}),unref(re).forEach(Ce=>{_e.push(Ce)}),unref(V).forEach(Ce=>{_e.push({...Ce,placeholderSign})}),_e}),ae=computed(()=>unref($).length||unref(V).length),oe=computed(()=>unref(i).reduce((_e,Ce)=>(_e[Ce.key]=calcColumnStyle(Ce,unref(r),n.fixed),_e),{})),le=computed(()=>unref(g).reduce((_e,Ce)=>_e+Ce.width,0)),ue=_e=>unref(i).find(Ce=>Ce.key===_e),de=_e=>unref(oe)[_e],he=(_e,Ce)=>{_e.width=Ce};function pe(_e){var Ce;const{key:xe}=_e.currentTarget.dataset;if(!xe)return;const{sortState:Ie,sortBy:Ne}=n;let Oe=SortOrder.ASC;isObject$6(Ie)?Oe=oppositeOrderMap[Ie[xe]]:Oe=oppositeOrderMap[Ne.order],(Ce=n.onColumnSort)==null||Ce.call(n,{column:ue(xe),key:xe,order:Oe})}return{columns:i,columnsStyles:oe,columnsTotalWidth:le,fixedColumnsOnLeft:$,fixedColumnsOnRight:V,hasFixedColumns:ae,mainColumns:ie,normalColumns:re,visibleColumns:g,getColumn:ue,getColumnStyle:de,updateColumnWidth:he,onColumnSorted:pe}}const useScrollbar=(n,{mainTableRef:t,leftTableRef:r,rightTableRef:i,onMaybeEndReached:g})=>{const $=ref({scrollLeft:0,scrollTop:0});function V(de){var he,pe,_e;const{scrollTop:Ce}=de;(he=t.value)==null||he.scrollTo(de),(pe=r.value)==null||pe.scrollToTop(Ce),(_e=i.value)==null||_e.scrollToTop(Ce)}function re(de){$.value=de,V(de)}function ie(de){$.value.scrollTop=de,V(unref($))}function ae(de){var he,pe;$.value.scrollLeft=de,(pe=(he=t.value)==null?void 0:he.scrollTo)==null||pe.call(he,unref($))}function oe(de){var he;re(de),(he=n.onScroll)==null||he.call(n,de)}function le({scrollTop:de}){const{scrollTop:he}=unref($);de!==he&&ie(de)}function ue(de,he="auto"){var pe;(pe=t.value)==null||pe.scrollToRow(de,he)}return watch(()=>unref($).scrollTop,(de,he)=>{de>he&&g()}),{scrollPos:$,scrollTo:re,scrollToLeft:ae,scrollToTop:ie,scrollToRow:ue,onScroll:oe,onVerticalScroll:le}},useRow=(n,{mainTableRef:t,leftTableRef:r,rightTableRef:i,tableInstance:g,ns:$,isScrolling:V})=>{const re=getCurrentInstance(),{emit:ie}=re,ae=shallowRef(!1),oe=ref(n.defaultExpandedRowKeys||[]),le=ref(-1),ue=shallowRef(null),de=ref({}),he=ref({}),pe=shallowRef({}),_e=shallowRef({}),Ce=shallowRef({}),xe=computed(()=>isNumber$2(n.estimatedRowHeight));function Ie(ze){var Pt;(Pt=n.onRowsRendered)==null||Pt.call(n,ze),ze.rowCacheEnd>unref(le)&&(le.value=ze.rowCacheEnd)}function Ne({hovered:ze,rowKey:Pt}){if(V.value)return;g.vnode.el.querySelectorAll(`[rowkey="${String(Pt)}"]`).forEach(kt=>{ze?kt.classList.add($.is("hovered")):kt.classList.remove($.is("hovered"))})}function Oe({expanded:ze,rowData:Pt,rowIndex:qe,rowKey:Et}){var kt,At;const Dt=[...unref(oe)],Lt=Dt.indexOf(Et);ze?Lt===-1&&Dt.push(Et):Lt>-1&&Dt.splice(Lt,1),oe.value=Dt,ie("update:expandedRowKeys",Dt),(kt=n.onRowExpand)==null||kt.call(n,{expanded:ze,rowData:Pt,rowIndex:qe,rowKey:Et}),(At=n.onExpandedRowsChange)==null||At.call(n,Dt),g.vnode.el.querySelector(`.${$.is("hovered")}[rowkey="${String(Et)}"]`)&&nextTick(()=>Ne({hovered:!0,rowKey:Et}))}const $e=debounce(()=>{var ze,Pt,qe,Et;ae.value=!0,de.value={...unref(de),...unref(he)},Ve(unref(ue),!1),he.value={},ue.value=null,(ze=t.value)==null||ze.forceUpdate(),(Pt=r.value)==null||Pt.forceUpdate(),(qe=i.value)==null||qe.forceUpdate(),(Et=re.proxy)==null||Et.$forceUpdate(),ae.value=!1},0);function Ve(ze,Pt=!1){unref(xe)&&[t,r,i].forEach(qe=>{const Et=unref(qe);Et&&Et.resetAfterRowIndex(ze,Pt)})}function Ue(ze,Pt,qe){const Et=unref(ue);(Et===null||Et>qe)&&(ue.value=qe),he.value[ze]=Pt}function Fe({rowKey:ze,height:Pt,rowIndex:qe},Et){Et?Et===FixedDir.RIGHT?Ce.value[ze]=Pt:pe.value[ze]=Pt:_e.value[ze]=Pt;const kt=Math.max(...[pe,Ce,_e].map(At=>At.value[ze]||0));unref(de)[ze]!==kt&&(Ue(ze,kt,qe),$e())}return{expandedRowKeys:oe,lastRenderedRowIndex:le,isDynamic:xe,isResetting:ae,rowHeights:de,resetAfterIndex:Ve,onRowExpanded:Oe,onRowHovered:Ne,onRowsRendered:Ie,onRowHeightChange:Fe}},useData=(n,{expandedRowKeys:t,lastRenderedRowIndex:r,resetAfterIndex:i})=>{const g=ref({}),$=computed(()=>{const re={},{data:ie,rowKey:ae}=n,oe=unref(t);if(!oe||!oe.length)return ie;const le=[],ue=new Set;oe.forEach(he=>ue.add(he));let de=ie.slice();for(de.forEach(he=>re[he[ae]]=0);de.length>0;){const he=de.shift();le.push(he),ue.has(he[ae])&&isArray$5(he.children)&&he.children.length>0&&(de=[...he.children,...de],he.children.forEach(pe=>re[pe[ae]]=re[he[ae]]+1))}return g.value=re,le}),V=computed(()=>{const{data:re,expandColumnKey:ie}=n;return ie?unref($):re});return watch(V,(re,ie)=>{re!==ie&&(r.value=-1,i(0,!0))}),{data:V,depthMap:g}},sumReducer=(n,t)=>n+t,sum=n=>isArray$5(n)?n.reduce(sumReducer,0):n,tryCall=(n,t,r={})=>isFunction$4(n)?n(t):n??r,enforceUnit=n=>(["width","maxWidth","minWidth","height"].forEach(t=>{n[t]=addUnit(n[t])}),n),componentToSlot=n=>isVNode(n)?t=>h$1(n,t):n,useStyles=(n,{columnsTotalWidth:t,rowsHeight:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:g})=>{const $=computed(()=>{const{fixed:Ce,width:xe,vScrollbarSize:Ie}=n,Ne=xe-Ie;return Ce?Math.max(Math.round(unref(t)),Ne):Ne}),V=computed(()=>{const{height:Ce=0,maxHeight:xe=0,footerHeight:Ie,hScrollbarSize:Ne}=n;if(xe>0){const Oe=unref(ue),$e=unref(r),Ue=unref(le)+Oe+$e+Ne;return Math.min(Ue,xe-Ie)}return Ce-Ie}),re=computed(()=>{const{maxHeight:Ce}=n,xe=unref(V);if(isNumber$2(Ce)&&Ce>0)return xe;const Ie=unref(r)+unref(le)+unref(ue);return Math.min(xe,Ie)}),ie=Ce=>Ce.width,ae=computed(()=>sum(unref(i).map(ie))),oe=computed(()=>sum(unref(g).map(ie))),le=computed(()=>sum(n.headerHeight)),ue=computed(()=>{var Ce;return(((Ce=n.fixedData)==null?void 0:Ce.length)||0)*n.rowHeight}),de=computed(()=>unref(V)-unref(le)-unref(ue)),he=computed(()=>{const{style:Ce={},height:xe,width:Ie}=n;return enforceUnit({...Ce,height:xe,width:Ie})}),pe=computed(()=>enforceUnit({height:n.footerHeight})),_e=computed(()=>({top:addUnit(unref(le)),bottom:addUnit(n.footerHeight),width:addUnit(n.width)}));return{bodyWidth:$,fixedTableHeight:re,mainTableHeight:V,leftTableWidth:ae,rightTableWidth:oe,windowHeight:de,footerHeight:pe,emptyStyle:_e,rootStyle:he,headerHeight:le}};function useTable(n){const t=ref(),r=ref(),i=ref(),{columns:g,columnsStyles:$,columnsTotalWidth:V,fixedColumnsOnLeft:re,fixedColumnsOnRight:ie,hasFixedColumns:ae,mainColumns:oe,onColumnSorted:le}=useColumns(n,toRef$1(n,"columns"),toRef$1(n,"fixed")),{scrollTo:ue,scrollToLeft:de,scrollToTop:he,scrollToRow:pe,onScroll:_e,onVerticalScroll:Ce,scrollPos:xe}=useScrollbar(n,{mainTableRef:t,leftTableRef:r,rightTableRef:i,onMaybeEndReached:Nn}),Ie=useNamespace("table-v2"),Ne=getCurrentInstance(),Oe=shallowRef(!1),{expandedRowKeys:$e,lastRenderedRowIndex:Ve,isDynamic:Ue,isResetting:Fe,rowHeights:ze,resetAfterIndex:Pt,onRowExpanded:qe,onRowHeightChange:Et,onRowHovered:kt,onRowsRendered:At}=useRow(n,{mainTableRef:t,leftTableRef:r,rightTableRef:i,tableInstance:Ne,ns:Ie,isScrolling:Oe}),{data:Dt,depthMap:Lt}=useData(n,{expandedRowKeys:$e,lastRenderedRowIndex:Ve,resetAfterIndex:Pt}),jt=computed(()=>{const{estimatedRowHeight:Pn,rowHeight:On}=n,Hn=unref(Dt);return isNumber$2(Pn)?Object.values(unref(ze)).reduce((Xn,In)=>Xn+In,0):Hn.length*On}),{bodyWidth:hn,fixedTableHeight:vn,mainTableHeight:_n,leftTableWidth:wn,rightTableWidth:bn,windowHeight:Cn,footerHeight:Sn,emptyStyle:Tn,rootStyle:En,headerHeight:kn}=useStyles(n,{columnsTotalWidth:V,fixedColumnsOnLeft:re,fixedColumnsOnRight:ie,rowsHeight:jt}),$n=ref(),An=computed(()=>{const Pn=unref(Dt).length===0;return isArray$5(n.fixedData)?n.fixedData.length===0&&Pn:Pn});function xn(Pn){const{estimatedRowHeight:On,rowHeight:Hn,rowKey:Xn}=n;return On?unref(ze)[unref(Dt)[Pn][Xn]]||On:Hn}const Ln=ref(!1);function Nn(){const{onEndReached:Pn}=n;if(!Pn)return;const{scrollTop:On}=unref(xe),Hn=unref(jt),Xn=unref(Cn),In=Hn-(On+Xn)+n.hScrollbarSize;!Ln.value&&unref(Ve)>=0&&Hn<=On+unref(_n)-unref(kn)?(Ln.value=!0,Pn(In)):Ln.value=!1}return watch(()=>unref(jt),()=>Ln.value=!1),watch(()=>n.expandedRowKeys,Pn=>$e.value=Pn,{deep:!0}),{columns:g,containerRef:$n,mainTableRef:t,leftTableRef:r,rightTableRef:i,isDynamic:Ue,isResetting:Fe,isScrolling:Oe,hasFixedColumns:ae,columnsStyles:$,columnsTotalWidth:V,data:Dt,expandedRowKeys:$e,depthMap:Lt,fixedColumnsOnLeft:re,fixedColumnsOnRight:ie,mainColumns:oe,bodyWidth:hn,emptyStyle:Tn,rootStyle:En,footerHeight:Sn,mainTableHeight:_n,fixedTableHeight:vn,leftTableWidth:wn,rightTableWidth:bn,showEmpty:An,getRowHeight:xn,onColumnSorted:le,onRowHovered:kt,onRowExpanded:qe,onRowsRendered:At,onRowHeightChange:Et,scrollTo:ue,scrollToLeft:de,scrollToTop:he,scrollToRow:pe,onScroll:_e,onVerticalScroll:Ce}}const TableV2InjectionKey=Symbol("tableV2"),TABLE_V2_GRID_INJECTION_KEY="tableV2GridScrollLeft",classType=String,columns={type:definePropType(Array),required:!0},fixedDataType={type:definePropType(Array)},dataType={...fixedDataType,required:!0},expandColumnKey=String,expandKeys={type:definePropType(Array),default:()=>mutable([])},requiredNumber={type:Number,required:!0},rowKey={type:definePropType([String,Number,Symbol]),default:"id"},styleType={type:definePropType(Object)},tableV2RowProps=buildProps({class:String,columns,columnsStyles:{type:definePropType(Object),required:!0},depth:Number,expandColumnKey,estimatedRowHeight:{...virtualizedGridProps.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:definePropType(Function)},onRowHover:{type:definePropType(Function)},onRowHeightChange:{type:definePropType(Function)},rowData:{type:definePropType(Object),required:!0},rowEventHandlers:{type:definePropType(Object)},rowIndex:{type:Number,required:!0},rowKey,style:{type:definePropType(Object)}}),requiredNumberType={type:Number,required:!0},tableV2HeaderProps=buildProps({class:String,columns,fixedHeaderData:{type:definePropType(Array)},headerData:{type:definePropType(Array),required:!0},headerHeight:{type:definePropType([Number,Array]),default:50},rowWidth:requiredNumberType,rowHeight:{type:Number,default:50},height:requiredNumberType,width:requiredNumberType}),tableV2GridProps=buildProps({columns,data:dataType,fixedData:fixedDataType,estimatedRowHeight:tableV2RowProps.estimatedRowHeight,width:requiredNumber,height:requiredNumber,headerWidth:requiredNumber,headerHeight:tableV2HeaderProps.headerHeight,bodyWidth:requiredNumber,rowHeight:requiredNumber,cache:virtualizedListProps.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:virtualizedGridProps.scrollbarAlwaysOn,scrollbarStartGap:virtualizedGridProps.scrollbarStartGap,scrollbarEndGap:virtualizedGridProps.scrollbarEndGap,class:classType,style:styleType,containerStyle:styleType,getRowHeight:{type:definePropType(Function),required:!0},rowKey:tableV2RowProps.rowKey,onRowsRendered:{type:definePropType(Function)},onScroll:{type:definePropType(Function)}}),tableV2Props=buildProps({cache:tableV2GridProps.cache,estimatedRowHeight:tableV2RowProps.estimatedRowHeight,rowKey,headerClass:{type:definePropType([String,Function])},headerProps:{type:definePropType([Object,Function])},headerCellProps:{type:definePropType([Object,Function])},headerHeight:tableV2HeaderProps.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:definePropType([String,Function])},rowProps:{type:definePropType([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:definePropType([Object,Function])},columns,data:dataType,dataGetter:{type:definePropType(Function)},fixedData:fixedDataType,expandColumnKey:tableV2RowProps.expandColumnKey,expandedRowKeys:expandKeys,defaultExpandedRowKeys:expandKeys,class:classType,fixed:Boolean,style:{type:definePropType(Object)},width:requiredNumber,height:requiredNumber,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:virtualizedGridProps.hScrollbarSize,vScrollbarSize:virtualizedGridProps.vScrollbarSize,scrollbarAlwaysOn:virtualizedScrollbarProps.alwaysOn,sortBy:{type:definePropType(Object),default:()=>({})},sortState:{type:definePropType(Object),default:void 0},onColumnSort:{type:definePropType(Function)},onExpandedRowsChange:{type:definePropType(Function)},onEndReached:{type:definePropType(Function)},onRowExpand:tableV2RowProps.onRowExpand,onScroll:tableV2GridProps.onScroll,onRowsRendered:tableV2GridProps.onRowsRendered,rowEventHandlers:tableV2RowProps.rowEventHandlers}),COMPONENT_NAME$8="ElTableV2Header",TableV2Header=defineComponent({name:COMPONENT_NAME$8,props:tableV2HeaderProps,setup(n,{slots:t,expose:r}){const i=useNamespace("table-v2"),g=inject(TABLE_V2_GRID_INJECTION_KEY),$=ref(),V=computed(()=>enforceUnit({width:n.width,height:n.height})),re=computed(()=>enforceUnit({width:n.rowWidth,height:n.height})),ie=computed(()=>castArray$1(unref(n.headerHeight))),ae=ue=>{const de=unref($);nextTick(()=>{de!=null&&de.scroll&&de.scroll({left:ue})})},oe=()=>{const ue=i.e("fixed-header-row"),{columns:de,fixedHeaderData:he,rowHeight:pe}=n;return he==null?void 0:he.map((_e,Ce)=>{var xe;const Ie=enforceUnit({height:pe,width:"100%"});return(xe=t.fixed)==null?void 0:xe.call(t,{class:ue,columns:de,rowData:_e,rowIndex:-(Ce+1),style:Ie})})},le=()=>{const ue=i.e("dynamic-header-row"),{columns:de}=n;return unref(ie).map((he,pe)=>{var _e;const Ce=enforceUnit({width:"100%",height:he});return(_e=t.dynamic)==null?void 0:_e.call(t,{class:ue,columns:de,headerIndex:pe,style:Ce})})};return onUpdated(()=>{g!=null&&g.value&&ae(g.value)}),r({scrollToLeft:ae}),()=>{if(!(n.height<=0))return createVNode$1("div",{ref:$,class:n.class,style:unref(V),role:"rowgroup"},[createVNode$1("div",{style:unref(re),class:i.e("header")},[le(),oe()])])}}});var Header$1=TableV2Header;const useGridWheel=({atXEndEdge:n,atXStartEdge:t,atYEndEdge:r,atYStartEdge:i},g)=>{let $=null,V=0,re=0;const ie=(oe,le)=>{const ue=oe<0&&t.value||oe>0&&n.value,de=le<0&&i.value||le>0&&r.value;return ue||de};return{hasReachedEdge:ie,onWheel:oe=>{cAF($);let le=oe.deltaX,ue=oe.deltaY;Math.abs(le)>Math.abs(ue)?ue=0:le=0,oe.shiftKey&&ue!==0&&(le=ue,ue=0),!ie(le,ue)&&(V+=le,re+=ue,oe.preventDefault(),$=rAF(()=>{g(V,re),V=0,re=0}))}}},useGridTouch=(n,t,r,i,g,$,V)=>{const re=ref(0),ie=ref(0);let ae,oe=0,le=0;const ue=he=>{cAF(ae),re.value=he.touches[0].clientX,ie.value=he.touches[0].clientY,oe=0,le=0},de=he=>{he.preventDefault(),cAF(ae),oe+=re.value-he.touches[0].clientX,le+=ie.value-he.touches[0].clientY,re.value=he.touches[0].clientX,ie.value=he.touches[0].clientY,ae=rAF(()=>{const pe=i.value-unref($),_e=g.value-unref(V),Ce=Math.min(t.value.scrollLeft+oe,pe),xe=Math.min(t.value.scrollTop+le,_e);r({scrollLeft:Ce,scrollTop:xe}),oe=0,le=0})};return useEventListener(n,"touchstart",ue,{passive:!0}),useEventListener(n,"touchmove",de,{passive:!1}),{touchStartX:re,touchStartY:ie,handleTouchStart:ue,handleTouchMove:de}},createGrid=({name:n,clearCache:t,getColumnPosition:r,getColumnStartIndexForOffset:i,getColumnStopIndexForStartIndex:g,getEstimatedTotalHeight:$,getEstimatedTotalWidth:V,getColumnOffset:re,getRowOffset:ie,getRowPosition:ae,getRowStartIndexForOffset:oe,getRowStopIndexForStartIndex:le,initCache:ue,injectToInstance:de,validateProps:he})=>defineComponent({name:n??"ElVirtualList",props:virtualizedGridProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(pe,{emit:_e,expose:Ce,slots:xe}){const Ie=useNamespace("vl");he(pe);const Ne=getCurrentInstance(),Oe=ref(ue(pe,Ne));de==null||de(Ne,Oe);const $e=ref(),Ve=ref(),Ue=ref(),Fe=ref(),ze=ref({isScrolling:!1,scrollLeft:isNumber$2(pe.initScrollLeft)?pe.initScrollLeft:0,scrollTop:isNumber$2(pe.initScrollTop)?pe.initScrollTop:0,updateRequested:!1,xAxisScrollDir:FORWARD,yAxisScrollDir:FORWARD}),Pt=useCache(),qe=computed(()=>Number.parseInt(`${pe.height}`,10)),Et=computed(()=>Number.parseInt(`${pe.width}`,10)),kt=computed(()=>{const{totalColumn:Zn,totalRow:Gn,columnCache:Rn}=pe,{isScrolling:Mn,xAxisScrollDir:Bn,scrollLeft:qn}=unref(ze);if(Zn===0||Gn===0)return[0,0,0,0];const zn=i(pe,qn,unref(Oe)),jn=g(pe,zn,qn,unref(Oe)),tr=!Mn||Bn===BACKWARD?Math.max(1,Rn):1,hr=!Mn||Bn===FORWARD?Math.max(1,Rn):1;return[Math.max(0,zn-tr),Math.max(0,Math.min(Zn-1,jn+hr)),zn,jn]}),At=computed(()=>{const{totalColumn:Zn,totalRow:Gn,rowCache:Rn}=pe,{isScrolling:Mn,yAxisScrollDir:Bn,scrollTop:qn}=unref(ze);if(Zn===0||Gn===0)return[0,0,0,0];const zn=oe(pe,qn,unref(Oe)),jn=le(pe,zn,qn,unref(Oe)),tr=!Mn||Bn===BACKWARD?Math.max(1,Rn):1,hr=!Mn||Bn===FORWARD?Math.max(1,Rn):1;return[Math.max(0,zn-tr),Math.max(0,Math.min(Gn-1,jn+hr)),zn,jn]}),Dt=computed(()=>$(pe,unref(Oe))),Lt=computed(()=>V(pe,unref(Oe))),jt=computed(()=>{var Zn;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:pe.direction,height:isNumber$2(pe.height)?`${pe.height}px`:pe.height,width:isNumber$2(pe.width)?`${pe.width}px`:pe.width},(Zn=pe.style)!=null?Zn:{}]}),hn=computed(()=>{const Zn=`${unref(Lt)}px`;return{height:`${unref(Dt)}px`,pointerEvents:unref(ze).isScrolling?"none":void 0,width:Zn,margin:0,boxSizing:"border-box"}}),vn=()=>{const{totalColumn:Zn,totalRow:Gn}=pe;if(Zn>0&&Gn>0){const[jn,tr,hr,ir]=unref(kt),[pr,rr,lr,Yn]=unref(At);_e(ITEM_RENDER_EVT,{columnCacheStart:jn,columnCacheEnd:tr,rowCacheStart:pr,rowCacheEnd:rr,columnVisibleStart:hr,columnVisibleEnd:ir,rowVisibleStart:lr,rowVisibleEnd:Yn})}const{scrollLeft:Rn,scrollTop:Mn,updateRequested:Bn,xAxisScrollDir:qn,yAxisScrollDir:zn}=unref(ze);_e(SCROLL_EVT,{xAxisScrollDir:qn,scrollLeft:Rn,yAxisScrollDir:zn,scrollTop:Mn,updateRequested:Bn})},_n=Zn=>{const{clientHeight:Gn,clientWidth:Rn,scrollHeight:Mn,scrollLeft:Bn,scrollTop:qn,scrollWidth:zn}=Zn.currentTarget,jn=unref(ze);if(jn.scrollTop===qn&&jn.scrollLeft===Bn)return;let tr=Bn;if(isRTL$1(pe.direction))switch(getRTLOffsetType()){case RTL_OFFSET_NAG:tr=-Bn;break;case RTL_OFFSET_POS_DESC:tr=zn-Rn-Bn;break}ze.value={...jn,isScrolling:!0,scrollLeft:tr,scrollTop:Math.max(0,Math.min(qn,Mn-Gn)),updateRequested:!0,xAxisScrollDir:getScrollDir(jn.scrollLeft,tr),yAxisScrollDir:getScrollDir(jn.scrollTop,qn)},nextTick(()=>Ln()),Nn(),vn()},wn=(Zn,Gn)=>{const Rn=unref(qe),Mn=(Dt.value-Rn)/Gn*Zn;Sn({scrollTop:Math.min(Dt.value-Rn,Mn)})},bn=(Zn,Gn)=>{const Rn=unref(Et),Mn=(Lt.value-Rn)/Gn*Zn;Sn({scrollLeft:Math.min(Lt.value-Rn,Mn)})},{onWheel:Cn}=useGridWheel({atXStartEdge:computed(()=>ze.value.scrollLeft<=0),atXEndEdge:computed(()=>ze.value.scrollLeft>=Lt.value-unref(Et)),atYStartEdge:computed(()=>ze.value.scrollTop<=0),atYEndEdge:computed(()=>ze.value.scrollTop>=Dt.value-unref(qe))},(Zn,Gn)=>{var Rn,Mn,Bn,qn;(Mn=(Rn=Ve.value)==null?void 0:Rn.onMouseUp)==null||Mn.call(Rn),(qn=(Bn=Ue.value)==null?void 0:Bn.onMouseUp)==null||qn.call(Bn);const zn=unref(Et),jn=unref(qe);Sn({scrollLeft:Math.min(ze.value.scrollLeft+Zn,Lt.value-zn),scrollTop:Math.min(ze.value.scrollTop+Gn,Dt.value-jn)})});useEventListener($e,"wheel",Cn,{passive:!1});const Sn=({scrollLeft:Zn=ze.value.scrollLeft,scrollTop:Gn=ze.value.scrollTop})=>{Zn=Math.max(Zn,0),Gn=Math.max(Gn,0);const Rn=unref(ze);Gn===Rn.scrollTop&&Zn===Rn.scrollLeft||(ze.value={...Rn,xAxisScrollDir:getScrollDir(Rn.scrollLeft,Zn),yAxisScrollDir:getScrollDir(Rn.scrollTop,Gn),scrollLeft:Zn,scrollTop:Gn,updateRequested:!0},nextTick(()=>Ln()),Nn(),vn())},{touchStartX:Tn,touchStartY:En,handleTouchStart:kn,handleTouchMove:$n}=useGridTouch($e,ze,Sn,Lt,Dt,Et,qe),An=(Zn=0,Gn=0,Rn=AUTO_ALIGNMENT)=>{const Mn=unref(ze);Gn=Math.max(0,Math.min(Gn,pe.totalColumn-1)),Zn=Math.max(0,Math.min(Zn,pe.totalRow-1));const Bn=getScrollBarWidth(Ie.namespace.value),qn=unref(Oe),zn=$(pe,qn),jn=V(pe,qn);Sn({scrollLeft:re(pe,Gn,Rn,Mn.scrollLeft,qn,jn>pe.width?Bn:0),scrollTop:ie(pe,Zn,Rn,Mn.scrollTop,qn,zn>pe.height?Bn:0)})},xn=(Zn,Gn)=>{const{columnWidth:Rn,direction:Mn,rowHeight:Bn}=pe,qn=Pt.value(t&&Rn,t&&Bn,t&&Mn),zn=`${Zn},${Gn}`;if(hasOwn$1(qn,zn))return qn[zn];{const[,jn]=r(pe,Gn,unref(Oe)),tr=unref(Oe),hr=isRTL$1(Mn),[ir,pr]=ae(pe,Zn,tr),[rr]=r(pe,Gn,tr);return qn[zn]={position:"absolute",left:hr?void 0:`${jn}px`,right:hr?`${jn}px`:void 0,top:`${pr}px`,height:`${ir}px`,width:`${rr}px`},qn[zn]}},Ln=()=>{ze.value.isScrolling=!1,nextTick(()=>{Pt.value(-1,null,null)})};onMounted(()=>{if(!isClient)return;const{initScrollLeft:Zn,initScrollTop:Gn}=pe,Rn=unref($e);Rn&&(isNumber$2(Zn)&&(Rn.scrollLeft=Zn),isNumber$2(Gn)&&(Rn.scrollTop=Gn)),vn()});const Nn=()=>{const{direction:Zn}=pe,{scrollLeft:Gn,scrollTop:Rn,updateRequested:Mn}=unref(ze),Bn=unref($e);if(Mn&&Bn){if(Zn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{Bn.scrollLeft=-Gn;break}case RTL_OFFSET_POS_ASC:{Bn.scrollLeft=Gn;break}default:{const{clientWidth:qn,scrollWidth:zn}=Bn;Bn.scrollLeft=zn-qn-Gn;break}}else Bn.scrollLeft=Math.max(0,Gn);Bn.scrollTop=Math.max(0,Rn)}},{resetAfterColumnIndex:Pn,resetAfterRowIndex:On,resetAfter:Hn}=Ne.proxy;Ce({windowRef:$e,innerRef:Fe,getItemStyleCache:Pt,touchStartX:Tn,touchStartY:En,handleTouchStart:kn,handleTouchMove:$n,scrollTo:Sn,scrollToItem:An,states:ze,resetAfterColumnIndex:Pn,resetAfterRowIndex:On,resetAfter:Hn});const Xn=()=>{const{scrollbarAlwaysOn:Zn,scrollbarStartGap:Gn,scrollbarEndGap:Rn,totalColumn:Mn,totalRow:Bn}=pe,qn=unref(Et),zn=unref(qe),jn=unref(Lt),tr=unref(Dt),{scrollLeft:hr,scrollTop:ir}=unref(ze),pr=h$1(ScrollBar,{ref:Ve,alwaysOn:Zn,startGap:Gn,endGap:Rn,class:Ie.e("horizontal"),clientSize:qn,layout:"horizontal",onScroll:bn,ratio:qn*100/jn,scrollFrom:hr/(jn-qn),total:Bn,visible:!0}),rr=h$1(ScrollBar,{ref:Ue,alwaysOn:Zn,startGap:Gn,endGap:Rn,class:Ie.e("vertical"),clientSize:zn,layout:"vertical",onScroll:wn,ratio:zn*100/tr,scrollFrom:ir/(tr-zn),total:Mn,visible:!0});return{horizontalScrollbar:pr,verticalScrollbar:rr}},In=()=>{var Zn;const[Gn,Rn]=unref(kt),[Mn,Bn]=unref(At),{data:qn,totalColumn:zn,totalRow:jn,useIsScrolling:tr,itemKey:hr}=pe,ir=[];if(jn>0&&zn>0)for(let pr=Mn;pr<=Bn;pr++)for(let rr=Gn;rr<=Rn;rr++){const lr=hr({columnIndex:rr,data:qn,rowIndex:pr});ir.push(h$1(Fragment,{key:lr},(Zn=xe.default)==null?void 0:Zn.call(xe,{columnIndex:rr,data:qn,isScrolling:tr?unref(ze).isScrolling:void 0,style:xn(pr,rr),rowIndex:pr})))}return ir},or=()=>{const Zn=resolveDynamicComponent(pe.innerElement),Gn=In();return[h$1(Zn,mergeProps(pe.innerProps,{style:unref(hn),ref:Fe}),isString$2(Zn)?Gn:{default:()=>Gn})]};return()=>{const Zn=resolveDynamicComponent(pe.containerElement),{horizontalScrollbar:Gn,verticalScrollbar:Rn}=Xn(),Mn=or();return h$1("div",{key:0,class:Ie.e("wrapper"),role:pe.role},[h$1(Zn,{class:pe.className,style:unref(jt),onScroll:_n,ref:$e},isString$2(Zn)?Mn:{default:()=>Mn}),Gn,Rn])}}}),{max:max$3,min:min$3,floor:floor$1}=Math,ACCESS_SIZER_KEY_MAP={column:"columnWidth",row:"rowHeight"},ACCESS_LAST_VISITED_KEY_MAP={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},getItemFromCache=(n,t,r,i)=>{const[g,$,V]=[r[i],n[ACCESS_SIZER_KEY_MAP[i]],r[ACCESS_LAST_VISITED_KEY_MAP[i]]];if(t>V){let re=0;if(V>=0){const ie=g[V];re=ie.offset+ie.size}for(let ie=V+1;ie<=t;ie++){const ae=$(ie);g[ie]={offset:re,size:ae},re+=ae}r[ACCESS_LAST_VISITED_KEY_MAP[i]]=t}return g[t]},bs=(n,t,r,i,g,$)=>{for(;r<=i;){const V=r+floor$1((i-r)/2),re=getItemFromCache(n,V,t,$).offset;if(re===g)return V;re{const $=g==="column"?n.totalColumn:n.totalRow;let V=1;for(;r<$&&getItemFromCache(n,r,t,g).offset{const[g,$]=[t[i],t[ACCESS_LAST_VISITED_KEY_MAP[i]]];return($>0?g[$].offset:0)>=r?bs(n,t,0,$,r,i):es(n,t,max$3(0,$),r,i)},getEstimatedTotalHeight=({totalRow:n},{estimatedRowHeight:t,lastVisitedRowIndex:r,row:i})=>{let g=0;if(r>=n&&(r=n-1),r>=0){const re=i[r];g=re.offset+re.size}const V=(n-r-1)*t;return g+V},getEstimatedTotalWidth=({totalColumn:n},{column:t,estimatedColumnWidth:r,lastVisitedColumnIndex:i})=>{let g=0;if(i>n&&(i=n-1),i>=0){const re=t[i];g=re.offset+re.size}const V=(n-i-1)*r;return g+V},ACCESS_ESTIMATED_SIZE_KEY_MAP={column:getEstimatedTotalWidth,row:getEstimatedTotalHeight},getOffset=(n,t,r,i,g,$,V)=>{const[re,ie]=[$==="row"?n.height:n.width,ACCESS_ESTIMATED_SIZE_KEY_MAP[$]],ae=getItemFromCache(n,t,g,$),oe=ie(n,g),le=max$3(0,min$3(oe-re,ae.offset)),ue=max$3(0,ae.offset-re+V+ae.size);switch(r===SMART_ALIGNMENT&&(i>=ue-re&&i<=le+re?r=AUTO_ALIGNMENT:r=CENTERED_ALIGNMENT),r){case START_ALIGNMENT:return le;case END_ALIGNMENT:return ue;case CENTERED_ALIGNMENT:return Math.round(ue+(le-ue)/2);case AUTO_ALIGNMENT:default:return i>=ue&&i<=le?i:ue>le||i{const i=getItemFromCache(n,t,r,"column");return[i.size,i.offset]},getRowPosition:(n,t,r)=>{const i=getItemFromCache(n,t,r,"row");return[i.size,i.offset]},getColumnOffset:(n,t,r,i,g,$)=>getOffset(n,t,r,i,g,"column",$),getRowOffset:(n,t,r,i,g,$)=>getOffset(n,t,r,i,g,"row",$),getColumnStartIndexForOffset:(n,t,r)=>findItem(n,r,t,"column"),getColumnStopIndexForStartIndex:(n,t,r,i)=>{const g=getItemFromCache(n,t,i,"column"),$=r+n.width;let V=g.offset+g.size,re=t;for(;refindItem(n,r,t,"row"),getRowStopIndexForStartIndex:(n,t,r,i)=>{const{totalRow:g,height:$}=n,V=getItemFromCache(n,t,i,"row"),re=r+$;let ie=V.size+V.offset,ae=t;for(;ae{const r=({columnIndex:$,rowIndex:V},re)=>{var ie,ae;re=isUndefined$1(re)?!0:re,isNumber$2($)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,$-1)),isNumber$2(V)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,V-1)),(ie=n.exposed)==null||ie.getItemStyleCache.value(-1,null,null),re&&((ae=n.proxy)==null||ae.$forceUpdate())},i=($,V)=>{r({columnIndex:$},V)},g=($,V)=>{r({rowIndex:$},V)};Object.assign(n.proxy,{resetAfterColumnIndex:i,resetAfterRowIndex:g,resetAfter:r})},initCache:({estimatedColumnWidth:n=DEFAULT_DYNAMIC_LIST_ITEM_SIZE,estimatedRowHeight:t=DEFAULT_DYNAMIC_LIST_ITEM_SIZE})=>({column:{},estimatedColumnWidth:n,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:n,rowHeight:t})=>{}}),FixedSizeGrid=createGrid({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:n},t)=>[n,t*n],getRowPosition:({rowHeight:n},t)=>[n,t*n],getEstimatedTotalHeight:({totalRow:n,rowHeight:t})=>t*n,getEstimatedTotalWidth:({totalColumn:n,columnWidth:t})=>t*n,getColumnOffset:({totalColumn:n,columnWidth:t,width:r},i,g,$,V,re)=>{r=Number(r);const ie=Math.max(0,n*t-r),ae=Math.min(ie,i*t),oe=Math.max(0,i*t-r+re+t);switch(g==="smart"&&($>=oe-r&&$<=ae+r?g=AUTO_ALIGNMENT:g=CENTERED_ALIGNMENT),g){case START_ALIGNMENT:return ae;case END_ALIGNMENT:return oe;case CENTERED_ALIGNMENT:{const le=Math.round(oe+(ae-oe)/2);return leie+Math.floor(r/2)?ie:le}case AUTO_ALIGNMENT:default:return $>=oe&&$<=ae?$:oe>ae||${t=Number(t);const ie=Math.max(0,r*n-t),ae=Math.min(ie,i*n),oe=Math.max(0,i*n-t+re+n);switch(g===SMART_ALIGNMENT&&($>=oe-t&&$<=ae+t?g=AUTO_ALIGNMENT:g=CENTERED_ALIGNMENT),g){case START_ALIGNMENT:return ae;case END_ALIGNMENT:return oe;case CENTERED_ALIGNMENT:{const le=Math.round(oe+(ae-oe)/2);return leie+Math.floor(t/2)?ie:le}case AUTO_ALIGNMENT:default:return $>=oe&&$<=ae?$:oe>ae||$Math.max(0,Math.min(t-1,Math.floor(r/n))),getColumnStopIndexForStartIndex:({columnWidth:n,totalColumn:t,width:r},i,g)=>{const $=i*n,V=Math.ceil((r+g-$)/n);return Math.max(0,Math.min(t-1,i+V-1))},getRowStartIndexForOffset:({rowHeight:n,totalRow:t},r)=>Math.max(0,Math.min(t-1,Math.floor(r/n))),getRowStopIndexForStartIndex:({rowHeight:n,totalRow:t,height:r},i,g)=>{const $=i*n,V=Math.ceil((r+g-$)/n);return Math.max(0,Math.min(t-1,i+V-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:n,rowHeight:t})=>{}}),COMPONENT_NAME$7="ElTableV2Grid",useTableGrid=n=>{const t=ref(),r=ref(),i=ref(0),g=computed(()=>{const{data:_e,rowHeight:Ce,estimatedRowHeight:xe}=n;if(!xe)return _e.length*Ce}),$=computed(()=>{const{fixedData:_e,rowHeight:Ce}=n;return((_e==null?void 0:_e.length)||0)*Ce}),V=computed(()=>sum(n.headerHeight)),re=computed(()=>{const{height:_e}=n;return Math.max(0,_e-unref(V)-unref($))}),ie=computed(()=>unref(V)+unref($)>0),ae=({data:_e,rowIndex:Ce})=>_e[Ce][n.rowKey];function oe({rowCacheStart:_e,rowCacheEnd:Ce,rowVisibleStart:xe,rowVisibleEnd:Ie}){var Ne;(Ne=n.onRowsRendered)==null||Ne.call(n,{rowCacheStart:_e,rowCacheEnd:Ce,rowVisibleStart:xe,rowVisibleEnd:Ie})}function le(_e,Ce){var xe;(xe=r.value)==null||xe.resetAfterRowIndex(_e,Ce)}function ue(_e,Ce){const xe=unref(t),Ie=unref(r);isObject$6(_e)?(xe==null||xe.scrollToLeft(_e.scrollLeft),i.value=_e.scrollLeft,Ie==null||Ie.scrollTo(_e)):(xe==null||xe.scrollToLeft(_e),i.value=_e,Ie==null||Ie.scrollTo({scrollLeft:_e,scrollTop:Ce}))}function de(_e){var Ce;(Ce=unref(r))==null||Ce.scrollTo({scrollTop:_e})}function he(_e,Ce){const xe=unref(r);if(!xe)return;const Ie=i.value;xe.scrollToItem(_e,0,Ce),Ie&&ue({scrollLeft:Ie})}function pe(){var _e,Ce;(_e=unref(r))==null||_e.$forceUpdate(),(Ce=unref(t))==null||Ce.$forceUpdate()}return watch(()=>n.bodyWidth,()=>{var _e;isNumber$2(n.estimatedRowHeight)&&((_e=r.value)==null||_e.resetAfter({columnIndex:0},!1))}),{bodyRef:r,forceUpdate:pe,fixedRowHeight:$,gridHeight:re,hasHeader:ie,headerHeight:V,headerRef:t,totalHeight:g,itemKey:ae,onItemRendered:oe,resetAfterRowIndex:le,scrollTo:ue,scrollToTop:de,scrollToRow:he,scrollLeft:i}},TableGrid=defineComponent({name:COMPONENT_NAME$7,props:tableV2GridProps,setup(n,{slots:t,expose:r}){const{ns:i}=inject(TableV2InjectionKey),{bodyRef:g,fixedRowHeight:$,gridHeight:V,hasHeader:re,headerRef:ie,headerHeight:ae,totalHeight:oe,forceUpdate:le,itemKey:ue,onItemRendered:de,resetAfterRowIndex:he,scrollTo:pe,scrollToTop:_e,scrollToRow:Ce,scrollLeft:xe}=useTableGrid(n);provide(TABLE_V2_GRID_INJECTION_KEY,xe),onActivated(async()=>{var Ne;await nextTick();const Oe=(Ne=g.value)==null?void 0:Ne.states.scrollTop;Oe&&_e(Math.round(Oe)+1)}),r({forceUpdate:le,totalHeight:oe,scrollTo:pe,scrollToTop:_e,scrollToRow:Ce,resetAfterRowIndex:he});const Ie=()=>n.bodyWidth;return()=>{const{cache:Ne,columns:Oe,data:$e,fixedData:Ve,useIsScrolling:Ue,scrollbarAlwaysOn:Fe,scrollbarEndGap:ze,scrollbarStartGap:Pt,style:qe,rowHeight:Et,bodyWidth:kt,estimatedRowHeight:At,headerWidth:Dt,height:Lt,width:jt,getRowHeight:hn,onScroll:vn}=n,_n=isNumber$2(At),wn=_n?DynamicSizeGrid:FixedSizeGrid,bn=unref(ae);return createVNode$1("div",{role:"table",class:[i.e("table"),n.class],style:qe},[createVNode$1(wn,{ref:g,data:$e,useIsScrolling:Ue,itemKey:ue,columnCache:0,columnWidth:_n?Ie:kt,totalColumn:1,totalRow:$e.length,rowCache:Ne,rowHeight:_n?hn:Et,width:jt,height:unref(V),class:i.e("body"),role:"rowgroup",scrollbarStartGap:Pt,scrollbarEndGap:ze,scrollbarAlwaysOn:Fe,onScroll:vn,onItemRendered:de,perfMode:!1},{default:Cn=>{var Sn;const Tn=$e[Cn.rowIndex];return(Sn=t.row)==null?void 0:Sn.call(t,{...Cn,columns:Oe,rowData:Tn})}}),unref(re)&&createVNode$1(Header$1,{ref:ie,class:i.e("header-wrapper"),columns:Oe,headerData:$e,headerHeight:n.headerHeight,fixedHeaderData:Ve,rowWidth:Dt,rowHeight:Et,width:jt,height:Math.min(bn+unref($),Lt)},{dynamic:t.header,fixed:t.row})])}}});var Table=TableGrid;function _isSlot$5(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}const MainTable=(n,{slots:t})=>{const{mainTableRef:r,...i}=n;return createVNode$1(Table,mergeProps({ref:r},i),_isSlot$5(t)?t:{default:()=>[t]})};var MainTable$1=MainTable;function _isSlot$4(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}const LeftTable=(n,{slots:t})=>{if(!n.columns.length)return;const{leftTableRef:r,...i}=n;return createVNode$1(Table,mergeProps({ref:r},i),_isSlot$4(t)?t:{default:()=>[t]})};var LeftTable$1=LeftTable;function _isSlot$3(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}const RightTable=(n,{slots:t})=>{if(!n.columns.length)return;const{rightTableRef:r,...i}=n;return createVNode$1(Table,mergeProps({ref:r},i),_isSlot$3(t)?t:{default:()=>[t]})};var RightTable$1=RightTable;const useTableRow=n=>{const{isScrolling:t}=inject(TableV2InjectionKey),r=ref(!1),i=ref(),g=computed(()=>isNumber$2(n.estimatedRowHeight)&&n.rowIndex>=0),$=(ie=!1)=>{const ae=unref(i);if(!ae)return;const{columns:oe,onRowHeightChange:le,rowKey:ue,rowIndex:de,style:he}=n,{height:pe}=ae.getBoundingClientRect();r.value=!0,nextTick(()=>{if(ie||pe!==Number.parseInt(he.height)){const _e=oe[0],Ce=(_e==null?void 0:_e.placeholderSign)===placeholderSign;le==null||le({rowKey:ue,height:pe,rowIndex:de},_e&&!Ce&&_e.fixed)}})},V=computed(()=>{const{rowData:ie,rowIndex:ae,rowKey:oe,onRowHover:le}=n,ue=n.rowEventHandlers||{},de={};return Object.entries(ue).forEach(([he,pe])=>{isFunction$4(pe)&&(de[he]=_e=>{pe({event:_e,rowData:ie,rowIndex:ae,rowKey:oe})})}),le&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:he,hovered:pe})=>{const _e=de[he];de[he]=Ce=>{le({event:Ce,hovered:pe,rowData:ie,rowIndex:ae,rowKey:oe}),_e==null||_e(Ce)}}),de}),re=ie=>{const{onRowExpand:ae,rowData:oe,rowIndex:le,rowKey:ue}=n;ae==null||ae({expanded:ie,rowData:oe,rowIndex:le,rowKey:ue})};return onMounted(()=>{unref(g)&&$(!0)}),{isScrolling:t,measurable:g,measured:r,rowRef:i,eventHandlers:V,onExpand:re}},COMPONENT_NAME$6="ElTableV2TableRow",TableV2Row=defineComponent({name:COMPONENT_NAME$6,props:tableV2RowProps,setup(n,{expose:t,slots:r,attrs:i}){const{eventHandlers:g,isScrolling:$,measurable:V,measured:re,rowRef:ie,onExpand:ae}=useTableRow(n);return t({onExpand:ae}),()=>{const{columns:oe,columnsStyles:le,expandColumnKey:ue,depth:de,rowData:he,rowIndex:pe,style:_e}=n;let Ce=oe.map((xe,Ie)=>{const Ne=isArray$5(he.children)&&he.children.length>0&&xe.key===ue;return r.cell({column:xe,columns:oe,columnIndex:Ie,depth:de,style:le[xe.key],rowData:he,rowIndex:pe,isScrolling:unref($),expandIconProps:Ne?{rowData:he,rowIndex:pe,onExpand:ae}:void 0})});if(r.row&&(Ce=r.row({cells:Ce.map(xe=>isArray$5(xe)&&xe.length===1?xe[0]:xe),style:_e,columns:oe,depth:de,rowData:he,rowIndex:pe,isScrolling:unref($)})),unref(V)){const{height:xe,...Ie}=_e||{},Ne=unref(re);return createVNode$1("div",mergeProps({ref:ie,class:n.class,style:Ne?_e:Ie,role:"row"},i,unref(g)),[Ce])}return createVNode$1("div",mergeProps(i,{ref:ie,class:n.class,style:_e,role:"row"},unref(g)),[Ce])}}});var Row$1=TableV2Row;function _isSlot$2(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}const RowRenderer=(n,{slots:t})=>{const{columns:r,columnsStyles:i,depthMap:g,expandColumnKey:$,expandedRowKeys:V,estimatedRowHeight:re,hasFixedColumns:ie,rowData:ae,rowIndex:oe,style:le,isScrolling:ue,rowProps:de,rowClass:he,rowKey:pe,rowEventHandlers:_e,ns:Ce,onRowHovered:xe,onRowExpanded:Ie}=n,Ne=tryCall(he,{columns:r,rowData:ae,rowIndex:oe},""),Oe=tryCall(de,{columns:r,rowData:ae,rowIndex:oe}),$e=ae[pe],Ve=g[$e]||0,Ue=!!$,Fe=oe<0,ze=[Ce.e("row"),Ne,Ce.is("expanded",Ue&&V.includes($e)),Ce.is("fixed",!Ve&&Fe),Ce.is("customized",!!t.row),{[Ce.e(`row-depth-${Ve}`)]:Ue&&oe>=0}],Pt=ie?xe:void 0,qe={...Oe,columns:r,columnsStyles:i,class:ze,depth:Ve,expandColumnKey:$,estimatedRowHeight:Fe?void 0:re,isScrolling:ue,rowIndex:oe,rowData:ae,rowKey:$e,rowEventHandlers:_e,style:le};return createVNode$1(Row$1,mergeProps(qe,{onRowExpand:Ie,onMouseenter:At=>{Pt==null||Pt({hovered:!0,rowKey:$e,event:At,rowData:ae,rowIndex:oe})},onMouseleave:At=>{Pt==null||Pt({hovered:!1,rowKey:$e,event:At,rowData:ae,rowIndex:oe})},rowkey:$e}),_isSlot$2(t)?t:{default:()=>[t]})};var Row=RowRenderer;const TableV2Cell=(n,{slots:t})=>{var r;const{cellData:i,style:g}=n,$=((r=i==null?void 0:i.toString)==null?void 0:r.call(i))||"",V=renderSlot(t,"default",n,()=>[$]);return createVNode$1("div",{class:n.class,title:$,style:g},[V])};TableV2Cell.displayName="ElTableV2Cell";TableV2Cell.inheritAttrs=!1;var TableCell=TableV2Cell;const ExpandIcon=n=>{const{expanded:t,expandable:r,onExpand:i,style:g,size:$,ariaLabel:V}=n,re={onClick:r?()=>i(!t):void 0,ariaLabel:V,ariaExpanded:t,class:n.class};return createVNode$1("button",mergeProps(re,{type:"button"}),[createVNode$1(ElIcon,{size:$,style:g},{default:()=>[createVNode$1(arrow_right_default,null,null)]})])};ExpandIcon.inheritAttrs=!1;var ExpandIcon$1=ExpandIcon;const CellRenderer=({columns:n,column:t,columnIndex:r,depth:i,expandIconProps:g,isScrolling:$,rowData:V,rowIndex:re,style:ie,expandedRowKeys:ae,ns:oe,t:le,cellProps:ue,expandColumnKey:de,indentSize:he,iconSize:pe,rowKey:_e},{slots:Ce})=>{const xe=enforceUnit(ie);if(t.placeholderSign===placeholderSign)return createVNode$1("div",{class:oe.em("row-cell","placeholder"),style:xe},null);const{cellRenderer:Ie,dataKey:Ne,dataGetter:Oe}=t,$e=isFunction$4(Oe)?Oe({columns:n,column:t,columnIndex:r,rowData:V,rowIndex:re}):get$1(V,Ne??""),Ve=tryCall(ue,{cellData:$e,columns:n,column:t,columnIndex:r,rowIndex:re,rowData:V}),Ue={class:oe.e("cell-text"),columns:n,column:t,columnIndex:r,cellData:$e,isScrolling:$,rowData:V,rowIndex:re},Fe=componentToSlot(Ie),ze=Fe?Fe(Ue):renderSlot(Ce,"default",Ue,()=>[createVNode$1(TableCell,Ue,null)]),Pt=[oe.e("row-cell"),t.class,t.align===Alignment.CENTER&&oe.is("align-center"),t.align===Alignment.RIGHT&&oe.is("align-right")],qe=re>=0&&de&&t.key===de,Et=re>=0&&ae.includes(V[_e]);let kt;const At=`margin-inline-start: ${i*he}px;`;return qe&&(isObject$6(g)?kt=createVNode$1(ExpandIcon$1,mergeProps(g,{class:[oe.e("expand-icon"),oe.is("expanded",Et)],size:pe,expanded:Et,ariaLabel:le(Et?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:At,expandable:!0}),null):kt=createVNode$1("div",{style:[At,`width: ${pe}px; height: ${pe}px;`].join(" ")},null)),createVNode$1("div",mergeProps({class:Pt,style:xe},Ve,{role:"cell"}),[kt,ze])};CellRenderer.inheritAttrs=!1;var Cell=CellRenderer;const tableV2HeaderRowProps=buildProps({class:String,columns,columnsStyles:{type:definePropType(Object),required:!0},headerIndex:Number,style:{type:definePropType(Object)}}),TableV2HeaderRow=defineComponent({name:"ElTableV2HeaderRow",props:tableV2HeaderRowProps,setup(n,{slots:t}){return()=>{const{columns:r,columnsStyles:i,headerIndex:g,style:$}=n;let V=r.map((re,ie)=>t.cell({columns:r,column:re,columnIndex:ie,headerIndex:g,style:i[re.key]}));return t.header&&(V=t.header({cells:V.map(re=>isArray$5(re)&&re.length===1?re[0]:re),columns:r,headerIndex:g})),createVNode$1("div",{class:n.class,style:$,role:"row"},[V])}}});var HeaderRow=TableV2HeaderRow;function _isSlot$1(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}const HeaderRenderer=({columns:n,columnsStyles:t,headerIndex:r,style:i,headerClass:g,headerProps:$,ns:V},{slots:re})=>{const ie={columns:n,headerIndex:r},ae=[V.e("header-row"),tryCall(g,ie,""),V.is("customized",!!re.header)],oe={...tryCall($,ie),columnsStyles:t,class:ae,columns:n,headerIndex:r,style:i};return createVNode$1(HeaderRow,oe,_isSlot$1(re)?re:{default:()=>[re]})};var Header=HeaderRenderer;const HeaderCell$1=(n,{slots:t})=>renderSlot(t,"default",n,()=>{var r,i;return[createVNode$1("div",{class:n.class,title:(r=n.column)==null?void 0:r.title},[(i=n.column)==null?void 0:i.title])]});HeaderCell$1.displayName="ElTableV2HeaderCell";HeaderCell$1.inheritAttrs=!1;var HeaderCell$1$1=HeaderCell$1;const SortIcon=n=>{const{sortOrder:t}=n;return createVNode$1("button",{type:"button","aria-label":n.ariaLabel,class:n.class},[createVNode$1(ElIcon,{size:14},{default:()=>[t===SortOrder.ASC?createVNode$1(sort_up_default,null,null):createVNode$1(sort_down_default,null,null)]})])};var SortIcon$1=SortIcon;const HeaderCellRenderer=(n,{slots:t})=>{const{column:r,ns:i,t:g,style:$,onColumnSorted:V}=n,re=enforceUnit($);if(r.placeholderSign===placeholderSign)return createVNode$1("div",{class:i.em("header-row-cell","placeholder"),style:re},null);const{headerCellRenderer:ie,headerClass:ae,sortable:oe}=r,le={...n,class:i.e("header-cell-text")},ue=componentToSlot(ie),de=ue?ue(le):renderSlot(t,"default",le,()=>[createVNode$1(HeaderCell$1$1,le,null)]),{sortBy:he,sortState:pe,headerCellProps:_e}=n;let Ce,xe,Ie;if(pe){const $e=pe[r.key];Ce=!!oppositeOrderMap[$e],xe=Ce?$e:SortOrder.ASC}else Ce=r.key===he.key,xe=Ce?he.order:SortOrder.ASC;xe===SortOrder.ASC?Ie="ascending":xe===SortOrder.DESC?Ie="descending":Ie=void 0;const Ne=[i.e("header-cell"),tryCall(ae,n,""),r.align===Alignment.CENTER&&i.is("align-center"),r.align===Alignment.RIGHT&&i.is("align-right"),oe&&i.is("sortable")],Oe={...tryCall(_e,n),onClick:r.sortable?V:void 0,ariaSort:oe?Ie:void 0,class:Ne,style:re,"data-key":r.key};return createVNode$1("div",mergeProps(Oe,{role:"columnheader"}),[de,oe&&createVNode$1(SortIcon$1,{class:[i.e("sort-icon"),Ce&&i.is("sorting")],sortOrder:xe,ariaLabel:g("el.table.sortLabel",{column:r.title||""})},null)])};var HeaderCell=HeaderCellRenderer;const Footer$1=(n,{slots:t})=>{var r;return createVNode$1("div",{class:n.class,style:n.style},[(r=t.default)==null?void 0:r.call(t)])};Footer$1.displayName="ElTableV2Footer";var Footer$1$1=Footer$1;const Footer=(n,{slots:t})=>{const r=renderSlot(t,"default",{},()=>[createVNode$1(ElEmpty,null,null)]);return createVNode$1("div",{class:n.class,style:n.style},[r])};Footer.displayName="ElTableV2Empty";var Empty=Footer;const Overlay=(n,{slots:t})=>{var r;return createVNode$1("div",{class:n.class,style:n.style},[(r=t.default)==null?void 0:r.call(t)])};Overlay.displayName="ElTableV2Overlay";var Overlay$1=Overlay;function _isSlot(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!isVNode(n)}const COMPONENT_NAME$5="ElTableV2",TableV2=defineComponent({name:COMPONENT_NAME$5,props:tableV2Props,setup(n,{slots:t,expose:r}){const i=useNamespace("table-v2"),{t:g}=useLocale(),{columnsStyles:$,fixedColumnsOnLeft:V,fixedColumnsOnRight:re,mainColumns:ie,mainTableHeight:ae,fixedTableHeight:oe,leftTableWidth:le,rightTableWidth:ue,data:de,depthMap:he,expandedRowKeys:pe,hasFixedColumns:_e,mainTableRef:Ce,leftTableRef:xe,rightTableRef:Ie,isDynamic:Ne,isResetting:Oe,isScrolling:$e,bodyWidth:Ve,emptyStyle:Ue,rootStyle:Fe,footerHeight:ze,showEmpty:Pt,scrollTo:qe,scrollToLeft:Et,scrollToTop:kt,scrollToRow:At,getRowHeight:Dt,onColumnSorted:Lt,onRowHeightChange:jt,onRowHovered:hn,onRowExpanded:vn,onRowsRendered:_n,onScroll:wn,onVerticalScroll:bn}=useTable(n);return r({scrollTo:qe,scrollToLeft:Et,scrollToTop:kt,scrollToRow:At}),provide(TableV2InjectionKey,{ns:i,isResetting:Oe,isScrolling:$e}),()=>{const{cache:Cn,cellProps:Sn,estimatedRowHeight:Tn,expandColumnKey:En,fixedData:kn,headerHeight:$n,headerClass:An,headerProps:xn,headerCellProps:Ln,sortBy:Nn,sortState:Pn,rowHeight:On,rowClass:Hn,rowEventHandlers:Xn,rowKey:In,rowProps:or,scrollbarAlwaysOn:Qn,indentSize:Zn,iconSize:Gn,useIsScrolling:Rn,vScrollbarSize:Mn,width:Bn}=n,qn=unref(de),zn={cache:Cn,class:i.e("main"),columns:unref(ie),data:qn,fixedData:kn,estimatedRowHeight:Tn,bodyWidth:unref(Ve),headerHeight:$n,headerWidth:unref(Ve),height:unref(ae),mainTableRef:Ce,rowKey:In,rowHeight:On,scrollbarAlwaysOn:Qn,scrollbarStartGap:2,scrollbarEndGap:Mn,useIsScrolling:Rn,width:Bn,getRowHeight:Dt,onRowsRendered:_n,onScroll:wn},jn=unref(le),tr=unref(oe),hr={cache:Cn,class:i.e("left"),columns:unref(V),data:qn,fixedData:kn,estimatedRowHeight:Tn,leftTableRef:xe,rowHeight:On,bodyWidth:jn,headerWidth:jn,headerHeight:$n,height:tr,rowKey:In,scrollbarAlwaysOn:Qn,scrollbarStartGap:2,scrollbarEndGap:Mn,useIsScrolling:Rn,width:jn,getRowHeight:Dt,onScroll:bn},ir=unref(ue),pr={cache:Cn,class:i.e("right"),columns:unref(re),data:qn,fixedData:kn,estimatedRowHeight:Tn,rightTableRef:Ie,rowHeight:On,bodyWidth:ir,headerWidth:ir,headerHeight:$n,height:tr,rowKey:In,scrollbarAlwaysOn:Qn,scrollbarStartGap:2,scrollbarEndGap:Mn,width:ir,style:`${i.cssVarName("table-scrollbar-size")}: ${Mn}px`,useIsScrolling:Rn,getRowHeight:Dt,onScroll:bn},rr=unref($),lr={ns:i,depthMap:unref(he),columnsStyles:rr,expandColumnKey:En,expandedRowKeys:unref(pe),estimatedRowHeight:Tn,hasFixedColumns:unref(_e),rowProps:or,rowClass:Hn,rowKey:In,rowEventHandlers:Xn,onRowHovered:hn,onRowExpanded:vn,onRowHeightChange:jt},Yn={cellProps:Sn,expandColumnKey:En,indentSize:Zn,iconSize:Gn,rowKey:In,expandedRowKeys:unref(pe),ns:i,t:g},er={ns:i,headerClass:An,headerProps:xn,columnsStyles:rr},Fn={ns:i,t:g,sortBy:Nn,sortState:Pn,headerCellProps:Ln,onColumnSorted:Lt},cr={row:vr=>createVNode$1(Row,mergeProps(vr,lr),{row:t.row,cell:yr=>{let Wn;return t.cell?createVNode$1(Cell,mergeProps(yr,Yn,{style:rr[yr.column.key]}),_isSlot(Wn=t.cell(yr))?Wn:{default:()=>[Wn]}):createVNode$1(Cell,mergeProps(yr,Yn,{style:rr[yr.column.key]}),null)}}),header:vr=>createVNode$1(Header,mergeProps(vr,er),{header:t.header,cell:yr=>{let Wn;return t["header-cell"]?createVNode$1(HeaderCell,mergeProps(yr,Fn,{style:rr[yr.column.key]}),_isSlot(Wn=t["header-cell"](yr))?Wn:{default:()=>[Wn]}):createVNode$1(HeaderCell,mergeProps(yr,Fn,{style:rr[yr.column.key]}),null)}})},Un=[n.class,i.b(),i.e("root"),i.is("dynamic",unref(Ne))],gr={class:i.e("footer"),style:unref(ze)};return createVNode$1("div",{class:Un,style:unref(Fe)},[createVNode$1(MainTable$1,zn,_isSlot(cr)?cr:{default:()=>[cr]}),createVNode$1(LeftTable$1,hr,_isSlot(cr)?cr:{default:()=>[cr]}),createVNode$1(RightTable$1,pr,_isSlot(cr)?cr:{default:()=>[cr]}),t.footer&&createVNode$1(Footer$1$1,gr,{default:t.footer}),unref(Pt)&&createVNode$1(Empty,{class:i.e("empty"),style:unref(Ue)},{default:t.empty}),t.overlay&&createVNode$1(Overlay$1,{class:i.e("overlay")},{default:t.overlay})])}}});var TableV2$1=TableV2;const autoResizerProps=buildProps({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:definePropType(Function)}}),useAutoResize=n=>{const t=ref(),r=ref(0),i=ref(0);let g;return onMounted(()=>{g=useResizeObserver(t,([$])=>{const{width:V,height:re}=$.contentRect,{paddingLeft:ie,paddingRight:ae,paddingTop:oe,paddingBottom:le}=getComputedStyle($.target),ue=Number.parseInt(ie)||0,de=Number.parseInt(ae)||0,he=Number.parseInt(oe)||0,pe=Number.parseInt(le)||0;r.value=V-ue-de,i.value=re-he-pe}).stop}),onBeforeUnmount(()=>{g==null||g()}),watch([r,i],([$,V])=>{var re;(re=n.onResize)==null||re.call(n,{width:$,height:V})}),{sizer:t,width:r,height:i}},AutoResizer=defineComponent({name:"ElAutoResizer",props:autoResizerProps,setup(n,{slots:t}){const r=useNamespace("auto-resizer"),{height:i,width:g,sizer:$}=useAutoResize(n),V={width:"100%",height:"100%"};return()=>{var re;return createVNode$1("div",{ref:$,class:r.b(),style:V},[(re=t.default)==null?void 0:re.call(t,{height:i.value,width:g.value})])}}});var AutoResizer$1=AutoResizer;const ElTableV2=withInstall(TableV2$1),ElAutoResizer=withInstall(AutoResizer$1),tabsRootContextKey=Symbol("tabsRootContextKey"),tabBarProps=buildProps({tabs:{type:definePropType(Array),default:()=>mutable([])},tabRefs:{type:definePropType(Object),default:()=>mutable({})}}),COMPONENT_NAME$4="ElTabBar",_sfc_main$$=defineComponent({name:COMPONENT_NAME$4,__name:"tab-bar",props:tabBarProps,setup(n,{expose:t}){const r=n,i=inject(tabsRootContextKey);i||throwError$1(COMPONENT_NAME$4,"");const g=useNamespace("tabs"),$=ref(),V=ref(),re=computed(()=>{var de;return isUndefined$1(i.props.defaultValue)||!!((de=V.value)!=null&&de.transform)}),ie=()=>{let de=0,he=0;const pe=["top","bottom"].includes(i.props.tabPosition)?"width":"height",_e=pe==="width"?"x":"y",Ce=_e==="x"?"left":"top";return r.tabs.every(xe=>{if(isUndefined$1(xe.paneName))return!1;const Ie=r.tabRefs[xe.paneName];if(!Ie)return!1;if(!xe.active)return!0;de=Ie[`offset${capitalize(Ce)}`],he=Ie[`client${capitalize(pe)}`];const Ne=window.getComputedStyle(Ie);return pe==="width"&&(he-=Number.parseFloat(Ne.paddingLeft)+Number.parseFloat(Ne.paddingRight),de+=Number.parseFloat(Ne.paddingLeft)),!1}),{[pe]:`${he}px`,transform:`translate${capitalize(_e)}(${de}px)`}},ae=()=>V.value=ie(),oe=[],le=()=>{oe.forEach(de=>de.stop()),oe.length=0,Object.values(r.tabRefs).forEach(de=>{oe.push(useResizeObserver(de,ae))})};watch(()=>r.tabs,async()=>{await nextTick(),ae(),le()},{immediate:!0});const ue=useResizeObserver($,()=>ae());return onBeforeUnmount(()=>{oe.forEach(de=>de.stop()),oe.length=0,ue.stop()}),t({ref:$,update:ae}),(de,he)=>re.value?(openBlock(),createElementBlock("div",{key:0,ref_key:"barRef",ref:$,class:normalizeClass([unref(g).e("active-bar"),unref(g).is(unref(i).props.tabPosition)]),style:normalizeStyle$1(V.value)},null,6)):createCommentVNode("v-if",!0)}});var TabBar=_export_sfc(_sfc_main$$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const tabNavProps=buildProps({panes:{type:definePropType(Array),default:()=>mutable([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),tabNavEmits={tabClick:(n,t,r)=>r instanceof Event,tabRemove:(n,t)=>t instanceof Event},COMPONENT_NAME$3="ElTabNav",TabNav=defineComponent({name:COMPONENT_NAME$3,props:tabNavProps,emits:tabNavEmits,setup(n,{expose:t,emit:r}){const i=inject(tabsRootContextKey);i||throwError$1(COMPONENT_NAME$3,"");const g=useNamespace("tabs"),$=useDocumentVisibility(),V=useWindowFocus(),re=ref(),ie=ref(),ae=ref(),oe=ref({}),le=ref(),ue=ref(!1),de=ref(0),he=ref(!1),pe=ref(!0),_e=shallowRef(),Ce=computed(()=>["top","bottom"].includes(i.props.tabPosition)),xe=computed(()=>Ce.value?"width":"height"),Ie=computed(()=>({transform:`translate${xe.value==="width"?"X":"Y"}(-${de.value}px)`})),{width:Ne,height:Oe}=useElementSize(re),{width:$e,height:Ve}=useElementSize(ie,{width:0,height:0},{box:"border-box"}),Ue=computed(()=>Ce.value?Ne.value:Oe.value),Fe=computed(()=>Ce.value?$e.value:Ve.value),{onWheel:ze}=useWheel({atStartEdge:computed(()=>de.value<=0),atEndEdge:computed(()=>Fe.value-de.value<=Ue.value),layout:computed(()=>Ce.value?"horizontal":"vertical")},vn=>{de.value=clamp$3(de.value+vn,0,Fe.value-Ue.value)}),Pt=()=>{if(!re.value)return;const vn=re.value[`offset${capitalize(xe.value)}`],_n=de.value;if(!_n)return;const wn=_n>vn?_n-vn:0;de.value=wn},qe=()=>{if(!re.value||!ie.value)return;const vn=ie.value[`offset${capitalize(xe.value)}`],_n=re.value[`offset${capitalize(xe.value)}`],wn=de.value;if(vn-wn<=_n)return;const bn=vn-wn>_n*2?wn+_n:vn-_n;de.value=bn},Et=async()=>{const vn=ie.value;if(!ue.value||!ae.value||!re.value||!vn)return;await nextTick();const _n=oe.value[n.currentName];if(!_n)return;const wn=re.value,bn=_n.getBoundingClientRect(),Cn=wn.getBoundingClientRect(),Sn=Ce.value?vn.offsetWidth-Cn.width:vn.offsetHeight-Cn.height,Tn=de.value;let En=Tn;Ce.value?(bn.leftCn.right&&(En=Tn+bn.right-Cn.right)):(bn.topCn.bottom&&(En=Tn+(bn.bottom-Cn.bottom))),En=Math.max(En,0),de.value=Math.min(En,Sn)},kt=()=>{var vn;if(!ie.value||!re.value)return;n.stretch&&((vn=le.value)==null||vn.update());const _n=ie.value[`offset${capitalize(xe.value)}`],wn=re.value[`offset${capitalize(xe.value)}`],bn=de.value;wn<_n?(ue.value=ue.value||{},ue.value.prev=bn,ue.value.next=bn+wn<_n,_n-bn0&&(de.value=0))},At=vn=>{const _n=getEventCode(vn);let wn=0;switch(_n){case EVENT_CODE.left:case EVENT_CODE.up:wn=-1;break;case EVENT_CODE.right:case EVENT_CODE.down:wn=1;break;default:return}const bn=Array.from(vn.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let Sn=bn.indexOf(vn.target)+wn;Sn<0?Sn=bn.length-1:Sn>=bn.length&&(Sn=0),bn[Sn].focus({preventScroll:!0}),bn[Sn].click(),Dt()},Dt=()=>{pe.value&&(he.value=!0)},Lt=()=>he.value=!1,jt=(vn,_n)=>{oe.value[_n]=vn},hn=async()=>{await nextTick();const vn=oe.value[n.currentName];vn==null||vn.focus({preventScroll:!0})};return watch($,vn=>{vn==="hidden"?pe.value=!1:vn==="visible"&&setTimeout(()=>pe.value=!0,50)}),watch(V,vn=>{vn?setTimeout(()=>pe.value=!0,50):pe.value=!1}),useResizeObserver(ae,()=>{rAF(kt)}),onMounted(()=>setTimeout(()=>Et(),0)),onUpdated(()=>kt()),t({scrollToActiveTab:Et,removeFocus:Lt,focusActiveTab:hn,tabListRef:ie,tabBarRef:le,scheduleRender:()=>triggerRef(_e)}),()=>{const vn=ue.value?[createVNode$1("span",{class:[g.e("nav-prev"),g.is("disabled",!ue.value.prev)],onClick:Pt},[createVNode$1(ElIcon,null,{default:()=>[createVNode$1(arrow_left_default,null,null)]})]),createVNode$1("span",{class:[g.e("nav-next"),g.is("disabled",!ue.value.next)],onClick:qe},[createVNode$1(ElIcon,null,{default:()=>[createVNode$1(arrow_right_default,null,null)]})])]:null,_n=n.panes.map((wn,bn)=>{var Cn,Sn,Tn,En,kn;const $n=wn.uid,An=wn.props.disabled,xn=(Sn=(Cn=wn.props.name)!=null?Cn:wn.index)!=null?Sn:`${bn}`,Ln=!An&&(wn.isClosable||wn.props.closable!==!1&&n.editable);wn.index=`${bn}`;const Nn=Ln?createVNode$1(ElIcon,{class:"is-icon-close",onClick:Hn=>r("tabRemove",wn,Hn)},{default:()=>[createVNode$1(close_default,null,null)]}):null,Pn=((En=(Tn=wn.slots).label)==null?void 0:En.call(Tn))||wn.props.label,On=!An&&wn.active?(kn=n.tabindex)!=null?kn:i.props.tabindex:-1;return createVNode$1("div",{ref:Hn=>jt(Hn,xn),class:[g.e("item"),g.is(i.props.tabPosition),g.is("active",wn.active),g.is("disabled",An),g.is("closable",Ln),g.is("focus",he.value)],id:`tab-${xn}`,key:`tab-${$n}`,"aria-controls":`pane-${xn}`,role:"tab","aria-selected":wn.active,tabindex:On,onFocus:()=>Dt(),onBlur:()=>Lt(),onClick:Hn=>{Lt(),r("tabClick",wn,xn,Hn)},onKeydown:Hn=>{const Xn=getEventCode(Hn);Ln&&(Xn===EVENT_CODE.delete||Xn===EVENT_CODE.backspace)&&r("tabRemove",wn,Hn)}},[Pn,Nn])});return _e.value,createVNode$1("div",{ref:ae,class:[g.e("nav-wrap"),g.is("scrollable",!!ue.value),g.is(i.props.tabPosition)]},[vn,createVNode$1("div",{class:g.e("nav-scroll"),ref:re},[n.panes.length>0?createVNode$1("div",{class:[g.e("nav"),g.is(i.props.tabPosition),g.is("stretch",n.stretch&&["top","bottom"].includes(i.props.tabPosition))],ref:ie,style:Ie.value,role:"tablist",onKeydown:At,onWheel:ze},[n.type?null:createVNode$1(TabBar,{ref:le,tabs:[...n.panes],tabRefs:oe.value},null),_n]):null])])}}}),tabsProps=buildProps({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:definePropType(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),isPaneName=n=>isString$2(n)||isNumber$2(n),tabsEmits={[UPDATE_MODEL_EVENT]:n=>isPaneName(n),tabClick:(n,t)=>t instanceof Event,tabChange:n=>isPaneName(n),edit:(n,t)=>["remove","add"].includes(t),tabRemove:n=>isPaneName(n),tabAdd:()=>!0},Tabs=defineComponent({name:"ElTabs",props:tabsProps,emits:tabsEmits,setup(n,{emit:t,slots:r,expose:i}){var g;const $=useNamespace("tabs"),V=computed(()=>["left","right"].includes(n.tabPosition)),{children:re,addChild:ie,removeChild:ae,ChildrenSorter:oe}=useOrderedChildren(getCurrentInstance(),"ElTabPane"),le=ref(),ue=ref((g=isUndefined$1(n.modelValue)?n.defaultValue:n.modelValue)!=null?g:"0"),de=async(Ie,Ne=!1)=>{var Oe,$e,Ve,Ue;if(!(ue.value===Ie||isUndefined$1(Ie)))try{let Fe;if(n.beforeLeave){const ze=n.beforeLeave(Ie,ue.value);Fe=ze instanceof Promise?await ze:ze}else Fe=!0;if(Fe!==!1){const ze=(Oe=re.value.find(Pt=>Pt.paneName===ue.value))==null?void 0:Oe.isFocusInsidePane();ue.value=Ie,Ne&&(t(UPDATE_MODEL_EVENT,Ie),t("tabChange",Ie)),(Ve=($e=le.value)==null?void 0:$e.removeFocus)==null||Ve.call($e),ze&&((Ue=le.value)==null||Ue.focusActiveTab())}}catch{}},he=(Ie,Ne,Oe)=>{Ie.props.disabled||(t("tabClick",Ie,Oe),de(Ne,!0))},pe=(Ie,Ne)=>{Ie.props.disabled||isUndefined$1(Ie.props.name)||(Ne.stopPropagation(),t("edit",Ie.props.name,"remove"),t("tabRemove",Ie.props.name))},_e=()=>{t("edit",void 0,"add"),t("tabAdd")},Ce=Ie=>{const Ne=getEventCode(Ie);[EVENT_CODE.enter,EVENT_CODE.numpadEnter].includes(Ne)&&_e()},xe=Ie=>{const Ne=Ie.el.firstChild,Oe=["bottom","right"].includes(n.tabPosition)?Ie.children[0].el:Ie.children[1].el;Ne!==Oe&&Ne.before(Oe)};return watch(()=>n.modelValue,Ie=>de(Ie)),watch(ue,async()=>{var Ie;await nextTick(),(Ie=le.value)==null||Ie.scrollToActiveTab()}),provide(tabsRootContextKey,{props:n,currentName:ue,registerPane:ie,unregisterPane:ae,nav$:le}),i({currentName:ue,get tabNavRef(){return omit$1(le.value,["scheduleRender"])}}),()=>{const Ie=r["add-icon"],Ne=n.editable||n.addable?createVNode$1("div",{class:[$.e("new-tab"),V.value&&$.e("new-tab-vertical")],tabindex:n.tabindex,onClick:_e,onKeydown:Ce},[Ie?renderSlot(r,"add-icon"):createVNode$1(ElIcon,{class:$.is("icon-plus")},{default:()=>[createVNode$1(plus_default,null,null)]})]):null,Oe=()=>createVNode$1(TabNav,{ref:le,currentName:ue.value,editable:n.editable,type:n.type,panes:re.value,stretch:n.stretch,onTabClick:he,onTabRemove:pe},null),$e=createVNode$1("div",{class:[$.e("header"),V.value&&$.e("header-vertical"),$.is(n.tabPosition)]},[createVNode$1(oe,null,{default:Oe,$stable:!0}),Ne]),Ve=createVNode$1("div",{class:$.e("content")},[renderSlot(r,"default")]);return createVNode$1("div",{class:[$.b(),$.m(n.tabPosition),{[$.m("card")]:n.type==="card",[$.m("border-card")]:n.type==="border-card"}],onVnodeMounted:xe,onVnodeUpdated:xe},[Ve,$e])}}}),tabPaneProps=buildProps({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),_hoisted_1$D=["id","aria-hidden","aria-labelledby"],COMPONENT_NAME$2="ElTabPane",_sfc_main$_=defineComponent({name:COMPONENT_NAME$2,__name:"tab-pane",props:tabPaneProps,setup(n){const t=n,r=getCurrentInstance(),i=useSlots(),g=inject(tabsRootContextKey);g||throwError$1(COMPONENT_NAME$2,"usage: ");const $=useNamespace("tab-pane"),V=ref(),re=ref(),ie=computed(()=>{var pe;return(pe=t.closable)!=null?pe:g.props.closable}),ae=computed(()=>{var pe;return g.currentName.value===((pe=t.name)!=null?pe:re.value)}),oe=ref(ae.value),le=computed(()=>{var pe;return(pe=t.name)!=null?pe:re.value}),ue=computed(()=>!t.lazy||oe.value||ae.value),de=()=>{var pe;return(pe=V.value)==null?void 0:pe.contains(document.activeElement)};watch(ae,pe=>{pe&&(oe.value=!0)});const he=reactive({uid:r.uid,getVnode:()=>r.vnode,slots:i,props:t,paneName:le,active:ae,index:re,isClosable:ie,isFocusInsidePane:de});return g.registerPane(he),onBeforeUnmount(()=>{g.unregisterPane(he)}),onBeforeUpdate(()=>{var pe;i.label&&((pe=g.nav$.value)==null||pe.scheduleRender())}),(pe,_e)=>ue.value?withDirectives((openBlock(),createElementBlock("div",{key:0,id:`pane-${le.value}`,ref_key:"paneRef",ref:V,class:normalizeClass(unref($).b()),role:"tabpanel","aria-hidden":!ae.value,"aria-labelledby":`tab-${le.value}`},[renderSlot(pe.$slots,"default")],10,_hoisted_1$D)),[[vShow,ae.value]]):createCommentVNode("v-if",!0)}});var TabPane=_export_sfc(_sfc_main$_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const ElTabs=withInstall(Tabs,{TabPane}),ElTabPane=withNoopInstall(TabPane),textProps=buildProps({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:componentSizes,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),_sfc_main$Z=defineComponent({name:"ElText",__name:"text",props:textProps,setup(n){const t=n,r=ref(),i=useFormSize(),g=useNamespace("text"),$=computed(()=>[g.b(),g.m(t.type),g.m(i.value),g.is("truncated",t.truncated),g.is("line-clamp",!isUndefined$1(t.lineClamp))]),V=()=>{var re,ie,ae,oe,le,ue,de;if(useAttrs$1().title)return;let pe=!1;const _e=((re=r.value)==null?void 0:re.textContent)||"";if(t.truncated){const Ce=(ie=r.value)==null?void 0:ie.offsetWidth,xe=(ae=r.value)==null?void 0:ae.scrollWidth;Ce&&xe&&xe>Ce&&(pe=!0)}else if(!isUndefined$1(t.lineClamp)){const Ce=(oe=r.value)==null?void 0:oe.offsetHeight,xe=(le=r.value)==null?void 0:le.scrollHeight;Ce&&xe&&xe>Ce&&(pe=!0)}pe?(ue=r.value)==null||ue.setAttribute("title",_e):(de=r.value)==null||de.removeAttribute("title")};return onMounted(V),onUpdated(V),(re,ie)=>(openBlock(),createBlock(resolveDynamicComponent(re.tag),{ref_key:"textRef",ref:r,class:normalizeClass($.value),style:normalizeStyle$1({"-webkit-line-clamp":re.lineClamp})},{default:withCtx(()=>[renderSlot(re.$slots,"default")]),_:3},8,["class","style"]))}});var Text=_export_sfc(_sfc_main$Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const ElText=withInstall(Text),timeSelectProps=buildProps({format:{type:String,default:"HH:mm"},modelValue:{type:definePropType(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:definePropType(String),default:"light"},clearable:{type:Boolean,default:!0},size:useSizeProp,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:definePropType(String)},maxTime:{type:definePropType(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:definePropType([String,Object]),default:()=>clock_default},clearIcon:{type:definePropType([String,Object]),default:()=>circle_close_default},popperClass:{type:String,default:""},popperStyle:{type:definePropType([String,Object])},...useEmptyValuesProps}),parseTime=n=>{const t=(n||"").split(":");if(t.length>=2){let r=Number.parseInt(t[0],10);const i=Number.parseInt(t[1],10),g=n.toUpperCase();return g.includes("AM")&&r===12?r=0:g.includes("PM")&&r!==12&&(r+=12),{hours:r,minutes:i}}return null},compareTime=(n,t)=>{const r=parseTime(n);if(!r)return-1;const i=parseTime(t);if(!i)return-1;const g=r.minutes+r.hours*60,$=i.minutes+i.hours*60;return g===$?0:g>$?1:-1},padTime=n=>`${n}`.padStart(2,"0"),formatTime=n=>`${padTime(n.hours)}:${padTime(n.minutes)}`,nextTime=(n,t)=>{const r=parseTime(n);if(!r)return"";const i=parseTime(t);if(!i)return"";const g={hours:r.hours,minutes:r.minutes};return g.minutes+=i.minutes,g.hours+=i.hours,g.hours+=Math.floor(g.minutes/60),g.minutes=g.minutes%60,formatTime(g)},_sfc_main$Y=defineComponent({name:"ElTimeSelect",__name:"time-select",props:timeSelectProps,emits:[CHANGE_EVENT,"blur","focus","clear",UPDATE_MODEL_EVENT],setup(n,{expose:t}){dayjs.extend(customParseFormat);const{Option:r}=ElSelect,i=n,g=useNamespace("input"),$=ref(),V=useFormDisabled(),{lang:re}=useLocale(),ie=computed(()=>i.modelValue),ae=computed(()=>{const Ce=parseTime(i.start);return Ce?formatTime(Ce):null}),oe=computed(()=>{const Ce=parseTime(i.end);return Ce?formatTime(Ce):null}),le=computed(()=>{const Ce=parseTime(i.step);return Ce?formatTime(Ce):null}),ue=computed(()=>{const Ce=parseTime(i.minTime||"");return Ce?formatTime(Ce):null}),de=computed(()=>{const Ce=parseTime(i.maxTime||"");return Ce?formatTime(Ce):null}),he=computed(()=>{var Ce;const xe=[],Ie=(Ne,Oe)=>{xe.push({value:Ne,disabled:compareTime(Oe,ue.value||"-1:-1")<=0||compareTime(Oe,de.value||"100:100")>=0})};if(i.start&&i.end&&i.step){let Ne=ae.value,Oe;for(;Ne&&oe.value&&compareTime(Ne,oe.value)<=0;)Oe=dayjs(Ne,"HH:mm").locale(re.value).format(i.format),Ie(Oe,Ne),Ne=nextTime(Ne,le.value);if(i.includeEndTime&&oe.value&&((Ce=xe[xe.length-1])==null?void 0:Ce.value)!==oe.value){const $e=dayjs(oe.value,"HH:mm").locale(re.value).format(i.format);Ie($e,oe.value)}}return xe});return t({blur:()=>{var Ce,xe;(xe=(Ce=$.value)==null?void 0:Ce.blur)==null||xe.call(Ce)},focus:()=>{var Ce,xe;(xe=(Ce=$.value)==null?void 0:Ce.focus)==null||xe.call(Ce)}}),(Ce,xe)=>(openBlock(),createBlock(unref(ElSelect),{ref_key:"select",ref:$,"model-value":ie.value,disabled:unref(V),clearable:Ce.clearable,"clear-icon":Ce.clearIcon,size:Ce.size,effect:Ce.effect,placeholder:Ce.placeholder,"default-first-option":"",filterable:Ce.editable,"empty-values":Ce.emptyValues,"value-on-clear":Ce.valueOnClear,"popper-class":Ce.popperClass,"popper-style":Ce.popperStyle,"onUpdate:modelValue":xe[0]||(xe[0]=Ie=>Ce.$emit(unref(UPDATE_MODEL_EVENT),Ie)),onChange:xe[1]||(xe[1]=Ie=>Ce.$emit(unref(CHANGE_EVENT),Ie)),onBlur:xe[2]||(xe[2]=Ie=>Ce.$emit("blur",Ie)),onFocus:xe[3]||(xe[3]=Ie=>Ce.$emit("focus",Ie)),onClear:xe[4]||(xe[4]=()=>Ce.$emit("clear"))},{prefix:withCtx(()=>[Ce.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(g).e("prefix-icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ce.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(he.value,Ie=>(openBlock(),createBlock(unref(r),{key:Ie.value,label:Ie.value,value:Ie.value,disabled:Ie.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 TimeSelect=_export_sfc(_sfc_main$Y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);const ElTimeSelect=withInstall(TimeSelect),TIMELINE_INJECTION_KEY="timeline",timelineProps=buildProps({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),Timeline$1=defineComponent({name:"ElTimeline",props:timelineProps,setup(n,{slots:t}){const r=useNamespace("timeline");provide(TIMELINE_INJECTION_KEY,{props:n,slots:t});const i=computed(()=>[r.b(),r.is(n.mode)]);return()=>{var g,$;const V=flattedChildren(($=(g=t.default)==null?void 0:g.call(t))!=null?$:[]);return h$1("ul",{class:i.value},n.reverse?V.reverse():V)}}}),timelineItemProps=buildProps({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:iconPropType},hollow:Boolean}),_sfc_main$X=defineComponent({name:"ElTimelineItem",__name:"timeline-item",props:timelineItemProps,setup(n){const t=n,{props:r}=inject(TIMELINE_INJECTION_KEY),i=useNamespace("timeline-item"),g=computed(()=>[i.e("node"),i.em("node",t.size||""),i.em("node",t.type||""),i.is("hollow",t.hollow)]),$=computed(()=>[i.b(),{[i.e("center")]:t.center},i.is(r.mode)]);return(V,re)=>(openBlock(),createElementBlock("li",{class:normalizeClass($.value)},[createBaseVNode("div",{class:normalizeClass(unref(i).e("tail"))},null,2),V.$slots.dot?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(g.value),style:normalizeStyle$1({backgroundColor:V.color})},[V.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(i).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(V.icon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)),V.$slots.dot?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(i).e("dot"))},[renderSlot(V.$slots,"dot")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(i).e("wrapper"))},[!V.hideTimestamp&&V.placement==="top"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(i).e("timestamp"),unref(i).is("top")])},toDisplayString(V.timestamp),3)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(i).e("content"))},[renderSlot(V.$slots,"default")],2),!V.hideTimestamp&&V.placement==="bottom"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(i).e("timestamp"),unref(i).is("bottom")])},toDisplayString(V.timestamp),3)):createCommentVNode("v-if",!0)],2)],2))}});var TimelineItem=_export_sfc(_sfc_main$X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const ElTimeline=withInstall(Timeline$1,{TimelineItem}),ElTimelineItem=withNoopInstall(TimelineItem),LEFT_CHECK_CHANGE_EVENT="left-check-change",RIGHT_CHECK_CHANGE_EVENT="right-check-change",transferProps=buildProps({data:{type:definePropType(Array),default:()=>[]},titles:{type:definePropType(Array),default:()=>[]},buttonTexts:{type:definePropType(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:definePropType(Function)},leftDefaultChecked:{type:definePropType(Array),default:()=>[]},rightDefaultChecked:{type:definePropType(Array),default:()=>[]},renderContent:{type:definePropType(Function)},modelValue:{type:definePropType(Array),default:()=>[]},format:{type:definePropType(Object),default:()=>({})},filterable:Boolean,props:{type:definePropType(Object),default:()=>mutable({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),transferCheckedChangeFn=(n,t)=>[n,t].every(isArray$5)||isArray$5(n)&&isNil(t),transferEmits={[CHANGE_EVENT]:(n,t,r)=>[n,r].every(isArray$5)&&["left","right"].includes(t),[UPDATE_MODEL_EVENT]:n=>isArray$5(n),[LEFT_CHECK_CHANGE_EVENT]:transferCheckedChangeFn,[RIGHT_CHECK_CHANGE_EVENT]:transferCheckedChangeFn},CHECKED_CHANGE_EVENT="checked-change",transferPanelProps=buildProps({data:transferProps.data,optionRender:{type:definePropType(Function)},placeholder:String,title:String,filterable:Boolean,format:transferProps.format,filterMethod:transferProps.filterMethod,defaultChecked:transferProps.leftDefaultChecked,props:transferProps.props}),transferPanelEmits={[CHECKED_CHANGE_EVENT]:transferCheckedChangeFn},usePropsAlias=n=>{const t={label:"label",key:"key",disabled:"disabled"};return computed(()=>({...t,...n.props}))},useCheck$1=(n,t,r)=>{const i=usePropsAlias(n),g=computed(()=>n.data.filter(oe=>isFunction$4(n.filterMethod)?n.filterMethod(t.query,oe):String(oe[i.value.label]||oe[i.value.key]).toLowerCase().includes(t.query.toLowerCase()))),$=computed(()=>g.value.filter(oe=>!oe[i.value.disabled])),V=computed(()=>{const oe=t.checked.length,le=n.data.length,{noChecked:ue,hasChecked:de}=n.format;return ue&&de?oe>0?de.replace(/\${checked}/g,oe.toString()).replace(/\${total}/g,le.toString()):ue.replace(/\${total}/g,le.toString()):`${oe}/${le}`}),re=computed(()=>{const oe=t.checked.length;return oe>0&&oe<$.value.length}),ie=()=>{const oe=$.value.map(le=>le[i.value.key]);t.allChecked=oe.length>0&&oe.every(le=>t.checked.includes(le))},ae=oe=>{t.checked=oe?$.value.map(le=>le[i.value.key]):[]};return watch(()=>t.checked,(oe,le)=>{if(ie(),t.checkChangeByUser){const ue=oe.concat(le).filter(de=>!oe.includes(de)||!le.includes(de));r(CHECKED_CHANGE_EVENT,oe,ue)}else r(CHECKED_CHANGE_EVENT,oe),t.checkChangeByUser=!0}),watch($,()=>{ie()}),watch(()=>n.data,()=>{const oe=[],le=g.value.map(ue=>ue[i.value.key]);t.checked.forEach(ue=>{le.includes(ue)&&oe.push(ue)}),t.checkChangeByUser=!1,t.checked=oe}),watch(()=>n.defaultChecked,(oe,le)=>{if(le&&oe.length===le.length&&oe.every(he=>le.includes(he)))return;const ue=[],de=$.value.map(he=>he[i.value.key]);oe.forEach(he=>{de.includes(he)&&ue.push(he)}),t.checkChangeByUser=!1,t.checked=ue},{immediate:!0}),{filteredData:g,checkableData:$,checkedSummary:V,isIndeterminate:re,updateAllChecked:ie,handleAllCheckedChange:ae}},_sfc_main$W=defineComponent({name:"ElTransferPanel",__name:"transfer-panel",props:transferPanelProps,emits:transferPanelEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useSlots(),V=({option:Ne})=>Ne,{t:re}=useLocale(),ie=useNamespace("transfer"),ae=reactive({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),oe=usePropsAlias(i),{filteredData:le,checkedSummary:ue,isIndeterminate:de,handleAllCheckedChange:he}=useCheck$1(i,ae,g),pe=computed(()=>!isEmpty(ae.query)&&isEmpty(le.value)),_e=computed(()=>!isEmpty($.default()[0].children)),{checked:Ce,allChecked:xe,query:Ie}=toRefs(ae);return t({query:Ie}),(Ne,Oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ie).b("panel"))},[createBaseVNode("p",{class:normalizeClass(unref(ie).be("panel","header"))},[createVNode$1(unref(ElCheckbox),{modelValue:unref(xe),"onUpdate:modelValue":Oe[0]||(Oe[0]=$e=>isRef(xe)?xe.value=$e:null),indeterminate:unref(de),"validate-event":!1,onChange:unref(he)},{default:withCtx(()=>[createTextVNode(toDisplayString(Ne.title)+" ",1),createBaseVNode("span",null,toDisplayString(unref(ue)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),createBaseVNode("div",{class:normalizeClass([unref(ie).be("panel","body"),unref(ie).is("with-footer",_e.value)])},[Ne.filterable?(openBlock(),createBlock(unref(ElInput),{key:0,modelValue:unref(Ie),"onUpdate:modelValue":Oe[1]||(Oe[1]=$e=>isRef(Ie)?Ie.value=$e:null),class:normalizeClass(unref(ie).be("panel","filter")),size:"default",placeholder:Ne.placeholder,"prefix-icon":unref(search_default),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):createCommentVNode("v-if",!0),withDirectives(createVNode$1(unref(ElCheckboxGroup),{modelValue:unref(Ce),"onUpdate:modelValue":Oe[2]||(Oe[2]=$e=>isRef(Ce)?Ce.value=$e:null),"validate-event":!1,class:normalizeClass([unref(ie).is("filterable",Ne.filterable),unref(ie).be("panel","list")])},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(le),$e=>(openBlock(),createBlock(unref(ElCheckbox),{key:$e[unref(oe).key],class:normalizeClass(unref(ie).be("panel","item")),value:$e[unref(oe).key],disabled:$e[unref(oe).disabled],"validate-event":!1},{default:withCtx(()=>{var Ve;return[createVNode$1(V,{option:(Ve=Ne.optionRender)==null?void 0:Ve.call(Ne,$e)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[vShow,!pe.value&&!unref(isEmpty)(Ne.data)]]),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(ie).be("panel","empty"))},[renderSlot(Ne.$slots,"empty",{},()=>[createTextVNode(toDisplayString(pe.value?unref(re)("el.transfer.noMatch"):unref(re)("el.transfer.noData")),1)])],2),[[vShow,pe.value||unref(isEmpty)(Ne.data)]])],2),_e.value?(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(ie).be("panel","footer"))},[renderSlot(Ne.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var TransferPanel=_export_sfc(_sfc_main$W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const useComputedData=n=>{const t=usePropsAlias(n),r=computed(()=>n.data.reduce(($,V)=>($[V[t.value.key]]=V)&&$,{})),i=computed(()=>n.data.filter($=>!n.modelValue.includes($[t.value.key]))),g=computed(()=>n.targetOrder==="original"?n.data.filter($=>n.modelValue.includes($[t.value.key])):n.modelValue.reduce(($,V)=>{const re=r.value[V];return re&&$.push(re),$},[]));return{sourceData:i,targetData:g}},useMove=(n,t,r)=>{const i=usePropsAlias(n),g=(re,ie,ae)=>{r(UPDATE_MODEL_EVENT,re),r(CHANGE_EVENT,re,ie,ae)};return{addToLeft:()=>{const re=n.modelValue.slice();t.rightChecked.forEach(ie=>{const ae=re.indexOf(ie);ae>-1&&re.splice(ae,1)}),g(re,"left",t.rightChecked)},addToRight:()=>{let re=n.modelValue.slice();const ie=n.data.filter(ae=>{const oe=ae[i.value.key];return t.leftChecked.includes(oe)&&!n.modelValue.includes(oe)}).map(ae=>ae[i.value.key]);re=n.targetOrder==="unshift"?ie.concat(re):re.concat(ie),n.targetOrder==="original"&&(re=n.data.filter(ae=>re.includes(ae[i.value.key])).map(ae=>ae[i.value.key])),g(re,"right",t.leftChecked)}}},useCheckedChange=(n,t)=>({onSourceCheckedChange:(g,$)=>{n.leftChecked=g,$&&t(LEFT_CHECK_CHANGE_EVENT,g,$)},onTargetCheckedChange:(g,$)=>{n.rightChecked=g,$&&t(RIGHT_CHECK_CHANGE_EVENT,g,$)}}),_hoisted_1$C={key:0},_hoisted_2$r={key:0},_sfc_main$V=defineComponent({name:"ElTransfer",__name:"transfer",props:transferProps,emits:transferEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useSlots(),{t:V}=useLocale(),re=useNamespace("transfer"),{formItem:ie}=useFormItem(),ae=reactive({leftChecked:[],rightChecked:[]}),oe=usePropsAlias(i),{sourceData:le,targetData:ue}=useComputedData(i),{onSourceCheckedChange:de,onTargetCheckedChange:he}=useCheckedChange(ae,g),{addToLeft:pe,addToRight:_e}=useMove(i,ae,g),Ce=ref(),xe=ref(),Ie=Fe=>{switch(Fe){case"left":Ce.value.query="";break;case"right":xe.value.query="";break}},Ne=computed(()=>i.buttonTexts.length===2),Oe=computed(()=>i.titles[0]||V("el.transfer.titles.0")),$e=computed(()=>i.titles[1]||V("el.transfer.titles.1")),Ve=computed(()=>i.filterPlaceholder||V("el.transfer.filterPlaceholder"));watch(()=>i.modelValue,()=>{var Fe;i.validateEvent&&((Fe=ie==null?void 0:ie.validate)==null||Fe.call(ie,"change").catch(ze=>void 0))});const Ue=computed(()=>Fe=>{var ze;if(i.renderContent)return i.renderContent(h$1,Fe);const Pt=(((ze=$.default)==null?void 0:ze.call($,{option:Fe}))||[]).filter(qe=>qe.type!==Comment);return Pt.length?Pt:h$1("span",Fe[oe.value.label]||Fe[oe.value.key])});return t({clearQuery:Ie,leftPanel:Ce,rightPanel:xe}),(Fe,ze)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(re).b())},[createVNode$1(TransferPanel,{ref_key:"leftPanel",ref:Ce,data:unref(le),"option-render":Ue.value,placeholder:Ve.value,title:Oe.value,filterable:Fe.filterable,format:Fe.format,"filter-method":Fe.filterMethod,"default-checked":Fe.leftDefaultChecked,props:i.props,onCheckedChange:unref(de)},{empty:withCtx(()=>[renderSlot(Fe.$slots,"left-empty")]),default:withCtx(()=>[renderSlot(Fe.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),createBaseVNode("div",{class:normalizeClass(unref(re).e("buttons"))},[createVNode$1(unref(ElButton),{type:"primary",class:normalizeClass([unref(re).e("button"),unref(re).is("with-texts",Ne.value)]),disabled:unref(isEmpty)(ae.rightChecked),onClick:unref(pe)},{default:withCtx(()=>[createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_left_default))]),_:1}),unref(isUndefined$1)(Fe.buttonTexts[0])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_1$C,toDisplayString(Fe.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),createVNode$1(unref(ElButton),{type:"primary",class:normalizeClass([unref(re).e("button"),unref(re).is("with-texts",Ne.value)]),disabled:unref(isEmpty)(ae.leftChecked),onClick:unref(_e)},{default:withCtx(()=>[unref(isUndefined$1)(Fe.buttonTexts[1])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_2$r,toDisplayString(Fe.buttonTexts[1]),1)),createVNode$1(unref(ElIcon),null,{default:withCtx(()=>[createVNode$1(unref(arrow_right_default))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),createVNode$1(TransferPanel,{ref_key:"rightPanel",ref:xe,data:unref(ue),"option-render":Ue.value,placeholder:Ve.value,filterable:Fe.filterable,format:Fe.format,"filter-method":Fe.filterMethod,title:$e.value,"default-checked":Fe.rightDefaultChecked,props:i.props,onCheckedChange:unref(he)},{empty:withCtx(()=>[renderSlot(Fe.$slots,"right-empty")]),default:withCtx(()=>[renderSlot(Fe.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Transfer=_export_sfc(_sfc_main$V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const ElTransfer=withInstall(Transfer),NODE_KEY="$treeNodeId",markNodeData=function(n,t){!t||t[NODE_KEY]||Object.defineProperty(t,NODE_KEY,{value:n.id,enumerable:!1,configurable:!1,writable:!1})},getNodeKey=(n,t)=>t==null?void 0:t[n||NODE_KEY],handleCurrentChange=(n,t,r)=>{const i=n.value.currentNode;r();const g=n.value.currentNode;i!==g&&t("current-change",g?g.data:null,g)},getChildState=n=>{let t=!0,r=!0,i=!0,g=!0;for(let $=0,V=n.length;${r.canFocus=t,setCanFocus(r.childNodes,t)})};let nodeIdSeed=0,Node$1=class hi{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=nodeIdSeed++,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 r in t)hasOwn$1(t,r)&&(this[r]=t[r]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var t;const r=this.store;if(!r)throw new Error("[Node]store is required!");r.registerNode(this);const i=r.props;if(i&&typeof i.isLeaf<"u"){const V=getPropertyFromData(this,"isLeaf");isBoolean$1(V)&&(this.isLeafByUser=V)}if(r.lazy!==!0&&this.data?(this.setData(this.data),r.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&r.lazy&&r.defaultExpandAll&&!this.isLeafByUser&&this.expand(),isArray$5(this.data)||markNodeData(this,this.data),!this.data)return;const g=r.defaultExpandedKeys,$=r.key;$&&!isNil(this.key)&&g&&g.includes(this.key)&&this.expand(null,r.autoExpandParent),$&&r.currentNodeKey!==void 0&&this.key===r.currentNodeKey&&(r.currentNode&&(r.currentNode.isCurrent=!1),r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((t=this.parent)==null?void 0:t.expanded)===!0)&&(this.canFocus=!0)}setData(t){isArray$5(t)||markNodeData(this,t),this.data=t,this.childNodes=[];let r;this.level===0&&isArray$5(this.data)?r=this.data:r=getPropertyFromData(this,"children")||[];for(let i=0,g=r.length;i-1)return t.childNodes[r+1]}return null}get previousSibling(){const t=this.parent;if(t){const r=t.childNodes.indexOf(this);if(r>-1)return r>0?t.childNodes[r-1]:null}return null}contains(t,r=!0){return(this.childNodes||[]).some(i=>i===t||r&&i.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,r,i){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof hi)){if(!i){const g=this.getChildren(!0);g!=null&&g.includes(t.data)||(isUndefined$1(r)||r<0?g==null||g.push(t.data):g==null||g.splice(r,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=reactive(new hi(t)),t instanceof hi&&t.initialize()}t.level=this.level+1,isUndefined$1(r)||r<0?this.childNodes.push(t):this.childNodes.splice(r,0,t),this.updateLeafState()}insertBefore(t,r){let i;r&&(i=this.childNodes.indexOf(r)),this.insertChild(t,i)}insertAfter(t,r){let i;r&&(i=this.childNodes.indexOf(r),i!==-1&&(i+=1)),this.insertChild(t,i)}removeChild(t){const r=this.getChildren()||[],i=r.indexOf(t.data);i>-1&&r.splice(i,1);const g=this.childNodes.indexOf(t);g>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(g,1)),this.updateLeafState()}removeChildByData(t){const r=this.childNodes.find(i=>i.data===t);r&&this.removeChild(r)}expand(t,r){const i=()=>{if(r){let g=this.parent;for(;g&&g.level>0;)g.expanded=!0,g=g.parent}this.expanded=!0,t&&t(),setCanFocus(this.childNodes,!0)};this.shouldLoadData()?this.loadData(g=>{isArray$5(g)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||reInitChecked(this),i())}):i()}doCreateChildren(t,r={}){t.forEach(i=>{this.insertChild(Object.assign({data:i},r),void 0,!0)})}collapse(){this.expanded=!1,setCanFocus(this.childNodes,!1)}shouldLoadData(){return!!(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){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,r,i,g){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 V=()=>{if(r){const re=this.childNodes;for(let le=0,ue=re.length;le{V(),reInitChecked(this)},{checked:t!==!1});return}else V()}const $=this.parent;!$||$.level===0||i||reInitChecked($)}getChildren(t=!1){if(this.level===0)return this.data;const r=this.data;if(!r)return null;const i=this.store.props;let g="children";return i&&(g=i.children||"children"),isUndefined$1(r[g])&&(r[g]=null),t&&!r[g]&&(r[g]=[]),r[g]}updateChildren(){const t=this.getChildren()||[],r=this.childNodes.map($=>$.data),i={},g=[];t.forEach(($,V)=>{const re=$[NODE_KEY];!!re&&r.some(ae=>(ae==null?void 0:ae[NODE_KEY])===re)?i[re]={index:V,data:$}:g.push({index:V,data:$})}),this.store.lazy||r.forEach($=>{i[$==null?void 0:$[NODE_KEY]]||this.removeChildByData($)}),g.forEach(({index:$,data:V})=>{this.insertChild({data:V},$)}),this.updateLeafState()}loadData(t,r={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(r).length)){this.loading=!0;const i=$=>{this.childNodes=[],this.doCreateChildren($,r),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,$)},g=()=>{this.loading=!1};this.store.load(this,i,g)}else t&&t.call(this)}eachNode(t){const r=[this];for(;r.length;){const i=r.shift();r.unshift(...i.childNodes),t(i)}}reInitChecked(){this.store.checkStrictly||reInitChecked(this)}};class TreeStore{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 r in t)hasOwn$1(t,r)&&(this[r]=t[r]);this.nodesMap={}}initialize(){if(this.root=new Node$1({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,r=>{this.root.doCreateChildren(r),this._initDefaultCheckedNodes()},NOOP)}else this._initDefaultCheckedNodes()}filter(t){const r=this.filterNodeMethod,i=this.lazy,g=async function($){const V=$.root?$.root.childNodes:$.childNodes;for(const[re,ie]of V.entries())ie.visible=!!(r!=null&&r.call(ie,t,ie.data,ie)),re%80===0&&re>0&&await nextTick(),await g(ie);if(!$.visible&&V.length){let re=!0;re=!V.some(ie=>ie.visible),$.root?$.root.visible=re===!1:$.visible=re===!1}t&&$.visible&&!$.isLeaf&&(!i||$.loaded)&&$.expand()};g(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 Node$1)return t;const r=isObject$6(t)?getNodeKey(this.key,t):t;return this.nodesMap[r]||null}insertBefore(t,r){var i;const g=this.getNode(r);(i=g.parent)==null||i.insertBefore({data:t},g)}insertAfter(t,r){var i;const g=this.getNode(r);(i=g.parent)==null||i.insertAfter({data:t},g)}remove(t){const r=this.getNode(t);r&&r.parent&&(r===this.currentNode&&(this.currentNode=null),r.parent.removeChild(r))}append(t,r){const i=isPropAbsent(r)?this.root:this.getNode(r);i&&i.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],r=this.nodesMap;t.forEach(i=>{const g=r[i];g&&g.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){const r=this.defaultCheckedKeys||[];!isNil(t.key)&&r.includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const r=this.key;if(!(!t||!t.data))if(!r)this.nodesMap[t.id]=t;else{const i=t.key;isNil(i)||(this.nodesMap[i]=t)}}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(i=>{this.deregisterNode(i)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,r=!1){const i=[],g=function($){($.root?$.root.childNodes:$.childNodes).forEach(re=>{(re.checked||r&&re.indeterminate)&&(!t||t&&re.isLeaf)&&i.push(re.data),g(re)})};return g(this),i}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(r=>(r||{})[this.key])}getHalfCheckedNodes(){const t=[],r=function(i){(i.root?i.root.childNodes:i.childNodes).forEach($=>{$.indeterminate&&t.push($.data),r($)})};return r(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],r=this.nodesMap;for(const i in r)hasOwn$1(r,i)&&t.push(r[i]);return t}updateChildren(t,r){const i=this.nodesMap[t];if(!i)return;const g=i.childNodes;for(let $=g.length-1;$>=0;$--){const V=g[$];this.remove(V.data)}for(let $=0,V=r.length;$ie.level-ae.level),$=Object.create(null),V=Object.keys(i);g.forEach(ie=>ie.setChecked(!1,!1));const re=ie=>{ie.childNodes.forEach(ae=>{var oe;$[ae.data[t]]=!0,(oe=ae.childNodes)!=null&&oe.length&&re(ae)})};for(let ie=0,ae=g.length;ie{_e.isLeaf||_e.setChecked(!1,!1),de(_e)})};de(oe)}}}setCheckedNodes(t,r=!1){const i=this.key,g={};t.forEach($=>{g[($||{})[i]]=!0}),this._setCheckedKeys(i,r,g)}setCheckedKeys(t,r=!1){this.defaultCheckedKeys=t;const i=this.key,g={};t.forEach($=>{g[$]=!0}),this._setCheckedKeys(i,r,g)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(r=>{const i=this.getNode(r);i&&i.expand(null,this.autoExpandParent)})}setChecked(t,r,i){const g=this.getNode(t);g&&g.setChecked(!!r,i)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const r=this.currentNode;r&&(r.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,r=!0){var i;const g=t[this.key],$=this.nodesMap[g];this.setCurrentNode($),r&&this.currentNode&&this.currentNode.level>1&&((i=this.currentNode.parent)==null||i.expand(null,!0))}setCurrentNodeKey(t,r=!0){var i;if(this.currentNodeKey=t,isPropAbsent(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const g=this.getNode(t);g&&(this.setCurrentNode(g),r&&this.currentNode&&this.currentNode.level>1&&((i=this.currentNode.parent)==null||i.expand(null,!0)))}}const ROOT_TREE_INJECTION_KEY$1="RootTree",NODE_INSTANCE_INJECTION_KEY="NodeInstance",TREE_NODE_MAP_INJECTION_KEY="TreeNodeMap",_sfc_main$U=defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(n){const t=useNamespace("tree"),r=inject(NODE_INSTANCE_INJECTION_KEY),i=inject(ROOT_TREE_INJECTION_KEY$1);return()=>{const g=n.node,{data:$,store:V}=g;return n.renderContent?n.renderContent(h$1,{_self:r,node:g,data:$,store:V}):renderSlot(i.ctx.slots,"default",{node:g,data:$},()=>[h$1(ElText,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[g.label])])}}});var NodeContent=_export_sfc(_sfc_main$U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function useNodeExpandEventBroadcast(n){const t=inject(TREE_NODE_MAP_INJECTION_KEY,null);let r={treeNodeExpand:i=>{var g;n.node!==i&&((g=n.node)==null||g.collapse())},children:new Set};return t&&t.children.add(r),onBeforeUnmount(()=>{t&&t.children.delete(r),r=null}),provide(TREE_NODE_MAP_INJECTION_KEY,r),{broadcastExpanded:i=>{if(n.accordion)for(const g of r.children)g.treeNodeExpand(i)}}}const dragEventsKey=Symbol("dragEvents");function useDragNodeHandler({props:n,ctx:t,el$:r,dropIndicator$:i,store:g}){const $=useNamespace("tree"),V=ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return provide(dragEventsKey,{treeNodeDragStart:({event:oe,treeNode:le})=>{if(oe.dataTransfer){if(isFunction$4(n.allowDrag)&&!n.allowDrag(le.node))return oe.preventDefault(),!1;oe.dataTransfer.effectAllowed="move";try{oe.dataTransfer.setData("text/plain","")}catch{}V.value.draggingNode=le,t.emit("node-drag-start",le.node,oe)}},treeNodeDragOver:({event:oe,treeNode:le})=>{if(!oe.dataTransfer)return;const ue=le,de=V.value.dropNode;de&&de.node.id!==ue.node.id&&removeClass(de.$el,$.is("drop-inner"));const he=V.value.draggingNode;if(!he||!ue)return;let pe=!0,_e=!0,Ce=!0,xe=!0;isFunction$4(n.allowDrop)&&(pe=n.allowDrop(he.node,ue.node,"prev"),xe=_e=n.allowDrop(he.node,ue.node,"inner"),Ce=n.allowDrop(he.node,ue.node,"next")),oe.dataTransfer.dropEffect=_e||pe||Ce?"move":"none",(pe||_e||Ce)&&(de==null?void 0:de.node.id)!==ue.node.id&&(de&&t.emit("node-drag-leave",he.node,de.node,oe),t.emit("node-drag-enter",he.node,ue.node,oe)),pe||_e||Ce?V.value.dropNode=ue:V.value.dropNode=null,ue.node.nextSibling===he.node&&(Ce=!1),ue.node.previousSibling===he.node&&(pe=!1),ue.node.contains(he.node,!1)&&(_e=!1),(he.node===ue.node||he.node.contains(ue.node))&&(pe=!1,_e=!1,Ce=!1);const Ie=ue.$el,Ne=Ie.querySelector(`.${$.be("node","content")}`).getBoundingClientRect(),Oe=r.value.getBoundingClientRect(),$e=r.value.scrollTop;let Ve;const Ue=pe?_e?.25:Ce?.45:1:Number.NEGATIVE_INFINITY,Fe=Ce?_e?.75:pe?.55:0:Number.POSITIVE_INFINITY;let ze=-9999;const Pt=oe.clientY-Ne.top;PtNe.height*Fe?Ve="after":_e?Ve="inner":Ve="none";const qe=Ie.querySelector(`.${$.be("node","expand-icon")}`).getBoundingClientRect(),Et=i.value;Ve==="before"?ze=qe.top-Oe.top+$e:Ve==="after"&&(ze=qe.bottom-Oe.top+$e),Et.style.top=`${ze}px`,Et.style.left=`${qe.right-Oe.left}px`,Ve==="inner"?addClass(Ie,$.is("drop-inner")):removeClass(Ie,$.is("drop-inner")),V.value.showDropIndicator=Ve==="before"||Ve==="after",V.value.allowDrop=V.value.showDropIndicator||xe,V.value.dropType=Ve,t.emit("node-drag-over",he.node,ue.node,oe)},treeNodeDragEnd:oe=>{var le,ue;const{draggingNode:de,dropType:he,dropNode:pe}=V.value;if(oe.preventDefault(),oe.dataTransfer&&(oe.dataTransfer.dropEffect="move"),de!=null&&de.node.data&&pe){const _e={data:de.node.data};he!=="none"&&de.node.remove(),he==="before"?(le=pe.node.parent)==null||le.insertBefore(_e,pe.node):he==="after"?(ue=pe.node.parent)==null||ue.insertAfter(_e,pe.node):he==="inner"&&pe.node.insertChild(_e),he!=="none"&&(g.value.registerNode(_e),g.value.key&&de.node.eachNode(Ce=>{var xe;(xe=g.value.nodesMap[Ce.data[g.value.key]])==null||xe.setChecked(Ce.checked,!g.value.checkStrictly)})),removeClass(pe.$el,$.is("drop-inner")),t.emit("node-drag-end",de.node,pe.node,he,oe),he!=="none"&&t.emit("node-drop",de.node,pe.node,he,oe)}de&&!pe&&t.emit("node-drag-end",de.node,null,he,oe),V.value.showDropIndicator=!1,V.value.draggingNode=null,V.value.dropNode=null,V.value.allowDrop=!0}}),{dragState:V}}const _sfc_main$T=defineComponent({name:"ElTreeNode",components:{ElCollapseTransition,ElCheckbox,NodeContent,ElIcon,Loading:loading_default},props:{node:{type:Node$1,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(n,t){const r=useNamespace("tree"),{broadcastExpanded:i}=useNodeExpandEventBroadcast(n),g=inject(ROOT_TREE_INJECTION_KEY$1),$=ref(!1),V=ref(!1),re=ref(),ie=ref(),ae=ref(),oe=inject(dragEventsKey),le=getCurrentInstance();provide(NODE_INSTANCE_INJECTION_KEY,le),n.node.expanded&&($.value=!0,V.value=!0);const ue=g.props.props.children||"children";watch(()=>{var Fe;const ze=(Fe=n.node.data)==null?void 0:Fe[ue];return ze&&[...ze]},()=>{n.node.updateChildren()}),watch(()=>n.node.indeterminate,Fe=>{pe(n.node.checked,Fe)}),watch(()=>n.node.checked,Fe=>{pe(Fe,n.node.indeterminate)}),watch(()=>n.node.childNodes.length,()=>n.node.reInitChecked()),watch(()=>n.node.expanded,Fe=>{nextTick(()=>$.value=Fe),Fe&&(V.value=!0)});const de=Fe=>getNodeKey(g.props.nodeKey,Fe.data),he=Fe=>{const ze=n.props.class;if(!ze)return{};let Pt;if(isFunction$4(ze)){const{data:qe}=Fe;Pt=ze(qe,Fe)}else Pt=ze;return isString$2(Pt)?{[Pt]:!0}:Pt},pe=(Fe,ze)=>{(re.value!==Fe||ie.value!==ze)&&g.ctx.emit("check-change",n.node.data,Fe,ze),re.value=Fe,ie.value=ze},_e=Fe=>{handleCurrentChange(g.store,g.ctx.emit,()=>{var ze;if((ze=g==null?void 0:g.props)==null?void 0:ze.nodeKey){const qe=de(n.node);g.store.value.setCurrentNodeKey(qe)}else g.store.value.setCurrentNode(n.node)}),g.currentNode.value=n.node,g.props.expandOnClickNode&&xe(),(g.props.checkOnClickNode||n.node.isLeaf&&g.props.checkOnClickLeaf&&n.showCheckbox)&&!n.node.disabled&&Ie(!n.node.checked),g.ctx.emit("node-click",n.node.data,n.node,le,Fe)},Ce=Fe=>{var ze;(ze=g.instance.vnode.props)!=null&&ze.onNodeContextmenu&&(Fe.stopPropagation(),Fe.preventDefault()),g.ctx.emit("node-contextmenu",Fe,n.node.data,n.node,le)},xe=()=>{n.node.isLeaf||($.value?(g.ctx.emit("node-collapse",n.node.data,n.node,le),n.node.collapse()):n.node.expand(()=>{t.emit("node-expand",n.node.data,n.node,le)}))},Ie=Fe=>{const ze=g==null?void 0:g.props.checkStrictly,Pt=n.node.childNodes;!ze&&Pt.length&&(Fe=Pt.some(qe=>!qe.isEffectivelyChecked)),n.node.setChecked(Fe,!ze),nextTick(()=>{const qe=g.store.value;g.ctx.emit("check",n.node.data,{checkedNodes:qe.getCheckedNodes(),checkedKeys:qe.getCheckedKeys(),halfCheckedNodes:qe.getHalfCheckedNodes(),halfCheckedKeys:qe.getHalfCheckedKeys()})})};return{ns:r,node$:ae,tree:g,expanded:$,childNodeRendered:V,oldChecked:re,oldIndeterminate:ie,getNodeKey:de,getNodeClass:he,handleSelectChange:pe,handleClick:_e,handleContextMenu:Ce,handleExpandIconClick:xe,handleCheckChange:Ie,handleChildNodeExpand:(Fe,ze,Pt)=>{i(ze),g.ctx.emit("node-expand",Fe,ze,Pt)},handleDragStart:Fe=>{g.props.draggable&&oe.treeNodeDragStart({event:Fe,treeNode:n})},handleDragOver:Fe=>{Fe.preventDefault(),g.props.draggable&&oe.treeNodeDragOver({event:Fe,treeNode:{$el:ae.value,node:n.node}})},handleDrop:Fe=>{Fe.preventDefault()},handleDragEnd:Fe=>{g.props.draggable&&oe.treeNodeDragEnd(Fe)},CaretRight:caret_right_default}}}),_hoisted_1$B=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],_hoisted_2$q=["aria-expanded"];function _sfc_render$2(n,t,r,i,g,$){const V=resolveComponent("el-icon"),re=resolveComponent("el-checkbox"),ie=resolveComponent("loading"),ae=resolveComponent("node-content"),oe=resolveComponent("el-tree-node"),le=resolveComponent("el-collapse-transition");return withDirectives((openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([n.ns.b("node"),n.ns.is("expanded",n.expanded),n.ns.is("current",n.node.isCurrent),n.ns.is("hidden",!n.node.visible),n.ns.is("focusable",!n.node.disabled),n.ns.is("checked",!n.node.disabled&&n.node.checked),n.getNodeClass(n.node)]),role:"treeitem",tabindex:"-1","aria-expanded":n.expanded,"aria-disabled":n.node.disabled,"aria-checked":n.node.checked,draggable:n.tree.props.draggable,"data-key":n.getNodeKey(n.node),onClick:t[2]||(t[2]=withModifiers((...ue)=>n.handleClick&&n.handleClick(...ue),["stop"])),onContextmenu:t[3]||(t[3]=(...ue)=>n.handleContextMenu&&n.handleContextMenu(...ue)),onDragstart:t[4]||(t[4]=withModifiers((...ue)=>n.handleDragStart&&n.handleDragStart(...ue),["stop"])),onDragover:t[5]||(t[5]=withModifiers((...ue)=>n.handleDragOver&&n.handleDragOver(...ue),["stop"])),onDragend:t[6]||(t[6]=withModifiers((...ue)=>n.handleDragEnd&&n.handleDragEnd(...ue),["stop"])),onDrop:t[7]||(t[7]=withModifiers((...ue)=>n.handleDrop&&n.handleDrop(...ue),["stop"]))},[createBaseVNode("div",{class:normalizeClass(n.ns.be("node","content")),style:normalizeStyle$1({paddingLeft:(n.node.level-1)*n.tree.props.indent+"px"})},[n.tree.props.icon||n.CaretRight?(openBlock(),createBlock(V,{key:0,class:normalizeClass([n.ns.be("node","expand-icon"),n.ns.is("leaf",n.node.isLeaf),{expanded:!n.node.isLeaf&&n.expanded}]),onClick:withModifiers(n.handleExpandIconClick,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.tree.props.icon||n.CaretRight)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),n.showCheckbox?(openBlock(),createBlock(re,{key:1,"model-value":n.node.checked,indeterminate:n.node.indeterminate,disabled:!!n.node.disabled,onClick:t[0]||(t[0]=withModifiers(()=>{},["stop"])),onChange:n.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):createCommentVNode("v-if",!0),n.node.loading?(openBlock(),createBlock(V,{key:2,class:normalizeClass([n.ns.be("node","loading-icon"),n.ns.is("loading")])},{default:withCtx(()=>[createVNode$1(ie)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode$1(ae,{node:n.node,"render-content":n.renderContent},null,8,["node","render-content"])],6),createVNode$1(le,null,{default:withCtx(()=>[!n.renderAfterExpand||n.childNodeRendered?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(n.ns.be("node","children")),role:"group","aria-expanded":n.expanded,onClick:t[1]||(t[1]=withModifiers(()=>{},["stop"]))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.node.childNodes,ue=>(openBlock(),createBlock(oe,{key:n.getNodeKey(ue),"render-content":n.renderContent,"render-after-expand":n.renderAfterExpand,"show-checkbox":n.showCheckbox,node:ue,accordion:n.accordion,props:n.props,onNodeExpand:n.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,_hoisted_2$q)),[[vShow,n.expanded]]):createCommentVNode("v-if",!0)]),_:1})],42,_hoisted_1$B)),[[vShow,n.node.visible]])}var ElTreeNode$1=_export_sfc(_sfc_main$T,[["render",_sfc_render$2],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function useKeydown({el$:n},t){const r=useNamespace("tree");onMounted(()=>{$()}),onUpdated(()=>{var V;(V=n.value)==null||V.querySelectorAll("input[type=checkbox]").forEach(re=>{re.setAttribute("tabindex","-1")})});function i(V,re){var ie,ae;const oe=t.value.getNode(V[re].dataset.key);return oe.canFocus&&oe.visible&&(((ie=oe.parent)==null?void 0:ie.expanded)||((ae=oe.parent)==null?void 0:ae.level)===0)}useEventListener(n,"keydown",V=>{const re=V.target;if(!re.className.includes(r.b("node")))return;const ie=getEventCode(V),ae=Array.from(n.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`)),oe=ae.indexOf(re);let le;if([EVENT_CODE.up,EVENT_CODE.down].includes(ie)){if(V.preventDefault(),ie===EVENT_CODE.up){le=oe===-1?0:oe!==0?oe-1:ae.length-1;const de=le;for(;!i(ae,le);){if(le--,le===de){le=-1;break}le<0&&(le=ae.length-1)}}else{le=oe===-1?0:oe=ae.length&&(le=0)}}le!==-1&&ae[le].focus()}[EVENT_CODE.left,EVENT_CODE.right].includes(ie)&&(V.preventDefault(),re.click());const ue=re.querySelector('[type="checkbox"]');[EVENT_CODE.enter,EVENT_CODE.numpadEnter,EVENT_CODE.space].includes(ie)&&ue&&(V.preventDefault(),ue.click())});const $=()=>{var V;if(!n.value)return;const re=Array.from(n.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`));Array.from(n.value.querySelectorAll("input[type=checkbox]")).forEach(oe=>{oe.setAttribute("tabindex","-1")});const ae=n.value.querySelectorAll(`.${r.is("checked")}[role=treeitem]`);if(ae.length){ae[0].setAttribute("tabindex","0");return}(V=re[0])==null||V.setAttribute("tabindex","0")}}const treeProps$1=buildProps({data:{type:definePropType(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:definePropType(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:definePropType(Function)},allowDrop:{type:definePropType(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:iconPropType}}),treeEmits$1={"check-change":(n,t,r)=>n&&isBoolean$1(t)&&isBoolean$1(r),"current-change":(n,t)=>!0,"node-click":(n,t,r,i)=>n&&t&&i instanceof Event,"node-contextmenu":(n,t,r,i)=>n instanceof Event&&t&&r,"node-collapse":(n,t,r)=>n&&t,"node-expand":(n,t,r)=>n&&t,check:(n,t)=>n&&t,"node-drag-start":(n,t)=>n&&t,"node-drag-end":(n,t,r,i)=>n&&i,"node-drop":(n,t,r,i)=>n&&t&&i,"node-drag-leave":(n,t,r)=>n&&t&&r,"node-drag-enter":(n,t,r)=>n&&t&&r,"node-drag-over":(n,t,r)=>n&&t&&r},_sfc_main$S=defineComponent({name:"ElTree",components:{ElTreeNode:ElTreeNode$1},props:treeProps$1,emits:treeEmits$1,setup(n,t){const{t:r}=useLocale(),i=useNamespace("tree"),g=ref(new TreeStore({key:n.nodeKey,data:n.data,lazy:n.lazy,props:n.props,load:n.load,currentNodeKey:n.currentNodeKey,checkStrictly:n.checkStrictly,checkDescendants:n.checkDescendants,defaultCheckedKeys:n.defaultCheckedKeys,defaultExpandedKeys:n.defaultExpandedKeys,autoExpandParent:n.autoExpandParent,defaultExpandAll:n.defaultExpandAll,filterNodeMethod:n.filterNodeMethod}));g.value.initialize();const $=ref(g.value.root),V=ref(null),re=ref(null),ie=ref(null),{broadcastExpanded:ae}=useNodeExpandEventBroadcast(n),{dragState:oe}=useDragNodeHandler({props:n,ctx:t,el$:re,dropIndicator$:ie,store:g});useKeydown({el$:re},g);const le=getCurrentInstance(),ue=computed(()=>{let vn=le==null?void 0:le.parent;for(;vn;){if(vn.type.name==="ElTreeSelect")return!0;vn=vn.parent}return!1}),de=computed(()=>{const{childNodes:vn}=$.value;return(!vn||vn.length===0||vn.every(({visible:_n})=>!_n))&&!ue.value});watch(()=>n.currentNodeKey,vn=>{g.value.setCurrentNodeKey(vn??null)}),watch(()=>n.defaultCheckedKeys,(vn,_n)=>{isEqual$1(vn,_n)||g.value.setDefaultCheckedKey(vn??[])}),watch(()=>n.defaultExpandedKeys,vn=>{g.value.setDefaultExpandedKeys(vn??[])}),watch(()=>n.data,vn=>{g.value.setData(vn)},{deep:!0}),watch(()=>n.checkStrictly,vn=>{g.value.checkStrictly=vn});const he=vn=>{if(!n.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");g.value.filter(vn)},pe=vn=>getNodeKey(n.nodeKey,vn.data),_e=vn=>{if(!n.nodeKey)throw new Error(`[Tree] nodeKey is required in ${vn}`)},Ce=vn=>{_e("getNodePath");const _n=g.value.getNode(vn);if(!_n)return[];const wn=[_n.data];let bn=_n.parent;for(;bn&&bn!==$.value;)wn.push(bn.data),bn=bn.parent;return wn.reverse()},xe=(vn,_n)=>g.value.getCheckedNodes(vn,_n),Ie=vn=>g.value.getCheckedKeys(vn),Ne=()=>{const vn=g.value.getCurrentNode();return vn?vn.data:null},Oe=()=>{_e("getCurrentKey");const vn=Ne();return vn?vn[n.nodeKey]:null},$e=(vn,_n)=>{_e("setCheckedNodes"),g.value.setCheckedNodes(vn,_n)},Ve=(vn,_n)=>{_e("setCheckedKeys"),g.value.setCheckedKeys(vn,_n)},Ue=(vn,_n,wn)=>{g.value.setChecked(vn,_n,wn)},Fe=()=>g.value.getHalfCheckedNodes(),ze=()=>g.value.getHalfCheckedKeys(),Pt=(vn,_n=!0)=>{_e("setCurrentNode"),handleCurrentChange(g,t.emit,()=>{ae(vn),g.value.setUserCurrentNode(vn,_n)})},qe=(vn=null,_n=!0)=>{_e("setCurrentKey"),handleCurrentChange(g,t.emit,()=>{ae(),g.value.setCurrentNodeKey(vn,_n)})},Et=vn=>g.value.getNode(vn),kt=vn=>{g.value.remove(vn)},At=(vn,_n)=>{g.value.append(vn,_n)},Dt=(vn,_n)=>{g.value.insertBefore(vn,_n)},Lt=(vn,_n)=>{g.value.insertAfter(vn,_n)},jt=(vn,_n,wn)=>{ae(_n),t.emit("node-expand",vn,_n,wn)},hn=(vn,_n)=>{_e("updateKeyChild"),g.value.updateChildren(vn,_n)};return provide(ROOT_TREE_INJECTION_KEY$1,{ctx:t,props:n,store:g,root:$,currentNode:V,instance:le}),provide(formItemContextKey,void 0),{ns:i,store:g,root:$,currentNode:V,dragState:oe,el$:re,dropIndicator$:ie,isEmpty:de,filter:he,getNodeKey:pe,getNodePath:Ce,getCheckedNodes:xe,getCheckedKeys:Ie,getCurrentNode:Ne,getCurrentKey:Oe,setCheckedNodes:$e,setCheckedKeys:Ve,setChecked:Ue,getHalfCheckedNodes:Fe,getHalfCheckedKeys:ze,setCurrentNode:Pt,setCurrentKey:qe,t:r,getNode:Et,remove:kt,append:At,insertBefore:Dt,insertAfter:Lt,handleNodeExpand:jt,updateKeyChildren:hn}}});function _sfc_render$1(n,t,r,i,g,$){const V=resolveComponent("el-tree-node");return openBlock(),createElementBlock("div",{ref:"el$",class:normalizeClass([n.ns.b(),n.ns.is("dragging",!!n.dragState.draggingNode),n.ns.is("drop-not-allow",!n.dragState.allowDrop),n.ns.is("drop-inner",n.dragState.dropType==="inner"),{[n.ns.m("highlight-current")]:n.highlightCurrent}]),role:"tree"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.root.childNodes,re=>(openBlock(),createBlock(V,{key:n.getNodeKey(re),node:re,props:n.props,accordion:n.accordion,"render-after-expand":n.renderAfterExpand,"show-checkbox":n.showCheckbox,"render-content":n.renderContent,onNodeExpand:n.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),n.isEmpty?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(n.ns.e("empty-block"))},[renderSlot(n.$slots,"empty",{},()=>{var re;return[createBaseVNode("span",{class:normalizeClass(n.ns.e("empty-text"))},toDisplayString((re=n.emptyText)!=null?re:n.t("el.tree.emptyText")),3)]})],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{ref:"dropIndicator$",class:normalizeClass(n.ns.e("drop-indicator"))},null,2),[[vShow,n.dragState.showDropIndicator]])],2)}var Tree=_export_sfc(_sfc_main$S,[["render",_sfc_render$1],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);const ElTree=withInstall(Tree),useSelect=(n,{attrs:t,emit:r},{select:i,tree:g,key:$})=>{const V=useNamespace("tree-select");watch(()=>n.data,()=>{n.filterable&&nextTick(()=>{var ae,oe;(oe=g.value)==null||oe.filter((ae=i.value)==null?void 0:ae.states.inputValue)})},{flush:"post"});const re=ae=>{var oe;const le=ae.at(-1);if(le.expanded&&le.childNodes.at(-1))re([le.childNodes.at(-1)]);else{const ue=(oe=g.value.el$)==null?void 0:oe.querySelector(`[data-key="${ae.at(-1).key}"]`);ue==null||ue.focus({preventScroll:!0});return}};return onMounted(()=>{useEventListener(()=>{var ae;return(ae=i.value)==null?void 0:ae.$el},"keydown",async ae=>{const oe=getEventCode(ae),{dropdownMenuVisible:le}=i.value;[EVENT_CODE.down,EVENT_CODE.up].includes(oe)&&le&&(await nextTick(),setTimeout(()=>{var ue,de,he;if(EVENT_CODE.up===oe){const pe=g.value.store.root.childNodes;re(pe);return}(he=(de=(ue=i.value.optionsArray[i.value.states.hoveringIndex].$el)==null?void 0:ue.parentNode)==null?void 0:de.parentNode)==null||he.focus({preventScroll:!0})}))},{capture:!0})}),{...pick$1(toRefs(n),Object.keys(ElSelect.props)),...t,class:computed(()=>t.class),style:computed(()=>t.style),"onUpdate:modelValue":ae=>r(UPDATE_MODEL_EVENT,ae),valueKey:$,popperClass:computed(()=>{const ae=[V.e("popper")];return n.popperClass&&ae.push(n.popperClass),ae.join(" ")}),filterMethod:(ae="")=>{var oe;n.filterMethod?n.filterMethod(ae):n.remoteMethod?n.remoteMethod(ae):(oe=g.value)==null||oe.filter(ae)}}},component=defineComponent({extends:ElOption,setup(n,t){const r=ElOption.setup(n,t);delete r.selectOptionClick;const i=getCurrentInstance().proxy;return nextTick(()=>{r.select.states.cachedOptions.get(i.value)||r.select.onOptionCreate(i)}),watch(()=>t.attrs.visible,g=>{nextTick(()=>{r.states.visible=g})},{immediate:!0}),r},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function isValidValue(n){return n||n===0}function isValidArray(n){return isArray$5(n)&&n.length}function toValidArray(n){return isArray$5(n)?n:isValidValue(n)?[n]:[]}function treeFind(n,t,r,i,g){for(let $=0;${watch([()=>n.modelValue,$],()=>{n.showCheckbox&&nextTick(()=>{const ue=$.value;ue&&!isEqual$1(ue.getCheckedKeys(),toValidArray(n.modelValue))&&ue.setCheckedKeys(toValidArray(n.modelValue))})},{immediate:!0,deep:!0});const re=computed(()=>({value:V.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...n.props})),ie=(ue,de)=>{var he;const pe=re.value[ue];return isFunction$4(pe)?pe(de,(he=$.value)==null?void 0:he.getNode(ie("value",de))):de[pe]},ae=toValidArray(n.modelValue).map(ue=>treeFind(n.data||[],de=>ie("value",de)===ue,de=>ie("children",de),(de,he,pe,_e)=>_e&&ie("value",_e))).filter(ue=>isValidValue(ue)),oe=computed(()=>{if(!n.renderAfterExpand&&!n.lazy)return[];const ue=[];return treeEach(n.data.concat(n.cacheData),de=>{const he=ie("value",de);ue.push({value:he,currentLabel:ie("label",de),isDisabled:ie("disabled",de)})},de=>ie("children",de)),ue}),le=()=>{var ue;return(ue=$.value)==null?void 0:ue.getCheckedKeys().filter(de=>{var he;const pe=(he=$.value)==null?void 0:he.getNode(de);return!isNil(pe)&&isEmpty(pe.childNodes)})};return{...pick$1(toRefs(n),Object.keys(ElTree.props)),...t,nodeKey:V,expandOnClickNode:computed(()=>!n.checkStrictly&&n.expandOnClickNode),defaultExpandedKeys:computed(()=>n.defaultExpandedKeys?n.defaultExpandedKeys.concat(ae):ae),renderContent:(ue,{node:de,data:he,store:pe})=>ue(component,{value:ie("value",he),label:ie("label",he),disabled:ie("disabled",he),visible:de.visible},n.renderContent?()=>n.renderContent(ue,{node:de,data:he,store:pe}):r.default?()=>r.default({node:de,data:he,store:pe}):void 0),filterNodeMethod:(ue,de,he)=>n.filterNodeMethod?n.filterNodeMethod(ue,de,he):ue?new RegExp(escapeStringRegexp(ue),"i").test(ie("label",de)||""):!0,onNodeClick:(ue,de,he)=>{var pe,_e,Ce;if((pe=t.onNodeClick)==null||pe.call(t,ue,de,he),!(n.showCheckbox&&n.checkOnClickNode))if(!n.showCheckbox&&(n.checkStrictly||de.isLeaf)){if(!ie("disabled",ue)){const xe=(_e=g.value)==null?void 0:_e.states.options.get(ie("value",ue));(Ce=g.value)==null||Ce.handleOptionSelect(xe)}}else n.expandOnClickNode&&he.proxy.handleExpandIconClick()},onCheck:(ue,de)=>{var he;if(!n.showCheckbox)return;const pe=ie("value",ue),_e={};treeEach([$.value.store.root],Ne=>_e[Ne.key]=Ne,Ne=>Ne.childNodes);const Ce=de.checkedKeys,xe=n.multiple?toValidArray(n.modelValue).filter(Ne=>!(Ne in _e)&&!Ce.includes(Ne)):[],Ie=xe.concat(Ce);if(n.checkStrictly)i(UPDATE_MODEL_EVENT,n.multiple?Ie:Ie.includes(pe)?pe:void 0);else if(n.multiple){const Ne=le();i(UPDATE_MODEL_EVENT,xe.concat(Ne))}else{const Ne=treeFind([ue],Ve=>!isValidArray(ie("children",Ve))&&!ie("disabled",Ve),Ve=>ie("children",Ve)),Oe=Ne?ie("value",Ne):void 0,$e=isValidValue(n.modelValue)&&!!treeFind([ue],Ve=>ie("value",Ve)===n.modelValue,Ve=>ie("children",Ve));i(UPDATE_MODEL_EVENT,Oe===n.modelValue||$e?void 0:Oe)}nextTick(()=>{var Ne;const Oe=toValidArray(n.modelValue);$.value.setCheckedKeys(Oe),(Ne=t.onCheck)==null||Ne.call(t,ue,{checkedKeys:$.value.getCheckedKeys(),checkedNodes:$.value.getCheckedNodes(),halfCheckedKeys:$.value.getHalfCheckedKeys(),halfCheckedNodes:$.value.getHalfCheckedNodes()})}),(he=g.value)==null||he.focus()},onNodeExpand:(ue,de,he)=>{var pe;(pe=t.onNodeExpand)==null||pe.call(t,ue,de,he),nextTick(()=>{if(!n.checkStrictly&&n.lazy&&n.multiple&&de.checked){const _e={},Ce=$.value.getCheckedKeys();treeEach([$.value.store.root],Ne=>_e[Ne.key]=Ne,Ne=>Ne.childNodes);const xe=toValidArray(n.modelValue).filter(Ne=>!(Ne in _e)&&!Ce.includes(Ne)),Ie=le();i(UPDATE_MODEL_EVENT,xe.concat(Ie))}})},cacheOptions:oe}};var CacheOptions=defineComponent({props:{data:{type:Array,default:()=>[]}},setup(n){const t=inject(selectKey);return watch(()=>n.data,()=>{var r;n.data.forEach(g=>{t.states.cachedOptions.has(g.value)||t.states.cachedOptions.set(g.value,g)});const i=((r=t.selectRef)==null?void 0:r.querySelectorAll("input"))||[];isClient&&!Array.from(i).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const _sfc_main$R=defineComponent({name:"ElTreeSelect",inheritAttrs:!1,props:{...selectProps,...treeProps$1,cacheData:{type:Array,default:()=>[]}},setup(n,t){const{slots:r,expose:i}=t,g=ref(),$=ref(),V=computed(()=>n.nodeKey||n.valueKey||"value"),re=useSelect(n,t,{select:g,tree:$,key:V}),{cacheOptions:ie,...ae}=useTree$1(n,t,{select:g,tree:$,key:V}),oe=reactive({});return i(oe),onMounted(()=>{Object.assign(oe,{...pick$1($.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...pick$1(g.value,["focus","blur","selectedLabel"]),treeRef:$.value,selectRef:g.value})}),()=>h$1(ElSelect,reactive({...re,ref:le=>g.value=le}),{...r,default:()=>[h$1(CacheOptions,{data:ie.value}),h$1(ElTree,reactive({...ae,ref:le=>$.value=le}))]})}});var TreeSelect=_export_sfc(_sfc_main$R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);const ElTreeSelect=withInstall(TreeSelect),ROOT_TREE_INJECTION_KEY=Symbol(),EMPTY_NODE={key:-1,level:-1,data:{}};var TreeOptionsEnum=(n=>(n.KEY="id",n.LABEL="label",n.CHILDREN="children",n.DISABLED="disabled",n.CLASS="",n))(TreeOptionsEnum||{}),SetOperationEnum=(n=>(n.ADD="add",n.DELETE="delete",n))(SetOperationEnum||{});const itemSize={type:Number,default:26},treeProps=buildProps({data:{type:definePropType(Array),default:()=>mutable([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:definePropType(Object),default:()=>mutable({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:definePropType(Array),default:()=>mutable([])},checkStrictly:Boolean,defaultExpandedKeys:{type:definePropType(Array),default:()=>mutable([])},indent:{type:Number,default:16},itemSize,icon:{type:iconPropType},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:definePropType([String,Number])},accordion:Boolean,filterMethod:{type:definePropType(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),treeNodeProps=buildProps({node:{type:definePropType(Object),default:()=>mutable(EMPTY_NODE)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize}),treeNodeContentProps=buildProps({node:{type:definePropType(Object),required:!0}}),NODE_CLICK="node-click",NODE_DROP="node-drop",NODE_EXPAND="node-expand",NODE_COLLAPSE="node-collapse",CURRENT_CHANGE="current-change",NODE_CHECK="check",NODE_CHECK_CHANGE="check-change",NODE_CONTEXTMENU="node-contextmenu",treeEmits={[NODE_CLICK]:(n,t,r)=>n&&t&&r,[NODE_DROP]:(n,t,r)=>n&&t&&r,[NODE_EXPAND]:(n,t)=>n&&t,[NODE_COLLAPSE]:(n,t)=>n&&t,[CURRENT_CHANGE]:(n,t)=>n&&t,[NODE_CHECK]:(n,t)=>n&&t,[NODE_CHECK_CHANGE]:(n,t)=>n&&isBoolean$1(t),[NODE_CONTEXTMENU]:(n,t,r)=>n&&t&&r},treeNodeEmits={click:(n,t)=>!!(n&&t),drop:(n,t)=>!!(n&&t),toggle:n=>!!n,check:(n,t)=>n&&isBoolean$1(t)};function useCheck(n,t){const r=ref(new Set),i=ref(new Set),{emit:g}=getCurrentInstance();watch([()=>t.value,()=>n.defaultCheckedKeys],()=>nextTick(()=>{xe(n.defaultCheckedKeys)}),{immediate:!0});const $=()=>{if(!t.value||!n.showCheckbox||n.checkStrictly)return;const{levelTreeNodeMap:Ie,maxLevel:Ne}=t.value,Oe=r.value,$e=new Set;for(let Ve=Ne;Ve>=1;--Ve){const Ue=Ie.get(Ve);Ue&&Ue.forEach(Fe=>{const ze=Fe.children;let Pt=!Fe.isLeaf||Fe.disabled||Oe.has(Fe.key);if(ze){let qe=!0,Et=!1;for(const kt of ze){const At=kt.key;if(kt.isEffectivelyChecked||(Pt=!1),Oe.has(At))Et=!0;else if($e.has(At)){qe=!1,Et=!0;break}else qe=!1}qe?Oe.add(Fe.key):Et?($e.add(Fe.key),Oe.delete(Fe.key)):(Oe.delete(Fe.key),$e.delete(Fe.key))}Fe.isEffectivelyChecked=Pt})}i.value=$e},V=Ie=>r.value.has(Ie.key),re=Ie=>i.value.has(Ie.key),ie=(Ie,Ne,Oe=!0,$e=!0)=>{const Ve=r.value,Ue=Ie.children;!n.checkStrictly&&Oe&&(Ue!=null&&Ue.length)&&(Ne=Ue.some(ze=>!ze.isEffectivelyChecked));const Fe=(ze,Pt)=>{Ve[Pt?SetOperationEnum.ADD:SetOperationEnum.DELETE](ze.key);const qe=ze.children;!n.checkStrictly&&qe&&qe.forEach(Et=>{(!Et.disabled||Et.children)&&Fe(Et,Pt)})};Fe(Ie,Ne),$e&&$(),Oe&&ae(Ie,Ne)},ae=(Ie,Ne)=>{const{checkedNodes:Oe,checkedKeys:$e}=he(),{halfCheckedNodes:Ve,halfCheckedKeys:Ue}=pe();g(NODE_CHECK,Ie.data,{checkedKeys:$e,checkedNodes:Oe,halfCheckedKeys:Ue,halfCheckedNodes:Ve}),g(NODE_CHECK_CHANGE,Ie.data,Ne)};function oe(Ie=!1){return he(Ie).checkedKeys}function le(Ie=!1){return he(Ie).checkedNodes}function ue(){return pe().halfCheckedKeys}function de(){return pe().halfCheckedNodes}function he(Ie=!1){const Ne=[],Oe=[];if(t!=null&&t.value&&n.showCheckbox){const{treeNodeMap:$e}=t.value;r.value.forEach(Ve=>{const Ue=$e.get(Ve);Ue&&(!Ie||Ie&&Ue.isLeaf)&&(Oe.push(Ve),Ne.push(Ue.data))})}return{checkedKeys:Oe,checkedNodes:Ne}}function pe(){const Ie=[],Ne=[];if(t!=null&&t.value&&n.showCheckbox){const{treeNodeMap:Oe}=t.value;i.value.forEach($e=>{const Ve=Oe.get($e);Ve&&(Ne.push($e),Ie.push(Ve.data))})}return{halfCheckedNodes:Ie,halfCheckedKeys:Ne}}function _e(Ie){r.value.clear(),i.value.clear(),nextTick(()=>{xe(Ie)})}function Ce(Ie,Ne){if(t!=null&&t.value&&n.showCheckbox){const Oe=t.value.treeNodeMap.get(Ie);Oe&&ie(Oe,Ne,!1)}}function xe(Ie){if(t!=null&&t.value){const{treeNodeMap:Ne}=t.value;if(n.showCheckbox&&Ne&&(Ie==null?void 0:Ie.length)>0){for(const Oe of Ie){const $e=Ne.get(Oe);$e&&!V($e)&&ie($e,!0,!1,!1)}$()}}}return{updateCheckedKeys:$,toggleCheckbox:ie,isChecked:V,isIndeterminate:re,getCheckedKeys:oe,getCheckedNodes:le,getHalfCheckedKeys:ue,getHalfCheckedNodes:de,setChecked:Ce,setCheckedKeys:_e}}function useFilter(n,t){const r=ref(new Set([])),i=ref(new Set([])),g=computed(()=>isFunction$4(n.filterMethod));function $(re){var ie;if(!g.value)return;const ae=new Set,oe=i.value,le=r.value,ue=[],de=((ie=t.value)==null?void 0:ie.treeNodes)||[],he=n.filterMethod;le.clear();function pe(_e){_e.forEach(Ce=>{ue.push(Ce),he!=null&&he(re,Ce.data,Ce)?ue.forEach(Ie=>{ae.add(Ie.key),Ie.expanded=!0}):(Ce.expanded=!1,Ce.isLeaf&&le.add(Ce.key));const xe=Ce.children;if(xe&&pe(xe),!Ce.isLeaf){if(!ae.has(Ce.key))le.add(Ce.key);else if(xe){let Ie=!0;for(const Ne of xe)if(!le.has(Ne.key)){Ie=!1;break}Ie?oe.add(Ce.key):oe.delete(Ce.key)}}ue.pop()})}return pe(de),ae}function V(re){return i.value.has(re.key)}return{hiddenExpandIconKeySet:i,hiddenNodeKeySet:r,doFilter:$,isForceHiddenExpandIcon:V}}function useTree(n,t){const r=ref(new Set),i=ref(),g=shallowRef(),$=ref(),{isIndeterminate:V,isChecked:re,toggleCheckbox:ie,getCheckedKeys:ae,getCheckedNodes:oe,getHalfCheckedKeys:le,getHalfCheckedNodes:ue,setChecked:de,setCheckedKeys:he}=useCheck(n,g),{doFilter:pe,hiddenNodeKeySet:_e,isForceHiddenExpandIcon:Ce}=useFilter(n,g),xe=computed(()=>{var xn;return((xn=n.props)==null?void 0:xn.value)||TreeOptionsEnum.KEY}),Ie=computed(()=>{var xn;return((xn=n.props)==null?void 0:xn.children)||TreeOptionsEnum.CHILDREN}),Ne=computed(()=>{var xn;return((xn=n.props)==null?void 0:xn.disabled)||TreeOptionsEnum.DISABLED}),Oe=computed(()=>{var xn;return((xn=n.props)==null?void 0:xn.label)||TreeOptionsEnum.LABEL}),$e=computed(()=>{var xn;const Ln=r.value,Nn=_e.value,Pn=[],On=((xn=g.value)==null?void 0:xn.treeNodes)||[],Hn=[];for(let Xn=On.length-1;Xn>=0;--Xn)Hn.push(On[Xn]);for(;Hn.length;){const Xn=Hn.pop();if(!Nn.has(Xn.key)&&(Pn.push(Xn),Xn.children&&Ln.has(Xn.key)))for(let In=Xn.children.length-1;In>=0;--In)Hn.push(Xn.children[In])}return Pn}),Ve=computed(()=>$e.value.length>0);function Ue(xn){const Ln=new Map,Nn=new Map;let Pn=1;function On(Xn,In=1,or=void 0){var Qn;const Zn=[];for(const Gn of Xn){const Rn=Pt(Gn),Mn={level:In,key:Rn,data:Gn};Mn.label=Et(Gn),Mn.parent=or;const Bn=ze(Gn);Mn.disabled=qe(Gn),Mn.isLeaf=!Bn||Bn.length===0,Mn.expanded=r.value.has(Rn),Bn&&Bn.length&&(Mn.children=On(Bn,In+1,Mn)),Zn.push(Mn),Ln.set(Rn,Mn),Nn.has(In)||Nn.set(In,[]),(Qn=Nn.get(In))==null||Qn.push(Mn)}return In>Pn&&(Pn=In),Zn}const Hn=On(xn);return{treeNodeMap:Ln,levelTreeNodeMap:Nn,maxLevel:Pn,treeNodes:Hn}}function Fe(xn){const Ln=pe(xn);Ln&&(r.value=Ln)}function ze(xn){return xn[Ie.value]}function Pt(xn){return xn?xn[xe.value]:""}function qe(xn){return xn[Ne.value]}function Et(xn){return xn[Oe.value]}function kt(xn){r.value.has(xn.key)?_n(xn):vn(xn)}function At(xn){const Ln=new Set,Nn=g.value.treeNodeMap;r.value.forEach(Pn=>{const On=Nn.get(Pn);r.value.delete(On.key),On.expanded=!1}),xn.forEach(Pn=>{let On=Nn.get(Pn);for(;On&&!Ln.has(On.key);)Ln.add(On.key),On.expanded=!0,On=On.parent}),r.value=Ln}function Dt(xn,Ln){t(NODE_CLICK,xn.data,xn,Ln),jt(xn),n.expandOnClickNode&&kt(xn),n.showCheckbox&&(n.checkOnClickNode||xn.isLeaf&&n.checkOnClickLeaf)&&!xn.disabled&&ie(xn,!re(xn),!0)}function Lt(xn,Ln){t(NODE_DROP,xn.data,xn,Ln)}function jt(xn){bn(xn)||(i.value=xn.key,t(CURRENT_CHANGE,xn.data,xn))}function hn(xn,Ln){ie(xn,Ln)}function vn(xn){const Ln=r.value;if(g.value&&n.accordion){const{treeNodeMap:Pn}=g.value;Ln.forEach(On=>{const Hn=Pn.get(On);xn&&xn.level===(Hn==null?void 0:Hn.level)&&(Ln.delete(On),Hn.expanded=!1)})}Ln.add(xn.key);const Nn=kn(xn.key);Nn&&(Nn.expanded=!0,t(NODE_EXPAND,Nn.data,Nn))}function _n(xn){r.value.delete(xn.key);const Ln=kn(xn.key);Ln&&(Ln.expanded=!1,t(NODE_COLLAPSE,Ln.data,Ln))}function wn(xn){return!!xn.disabled}function bn(xn){const Ln=i.value;return Ln!==void 0&&Ln===xn.key}function Cn(){var xn,Ln;if(i.value)return(Ln=(xn=g.value)==null?void 0:xn.treeNodeMap.get(i.value))==null?void 0:Ln.data}function Sn(){return i.value}function Tn(xn){i.value=xn}function En(xn){g.value=Ue(xn)}function kn(xn){var Ln;const Nn=isObject$6(xn)?Pt(xn):xn;return(Ln=g.value)==null?void 0:Ln.treeNodeMap.get(Nn)}function $n(xn,Ln="auto"){const Nn=kn(xn);Nn&&$.value&&$.value.scrollToItem($e.value.indexOf(Nn),Ln)}function An(xn){var Ln;(Ln=$.value)==null||Ln.scrollTo(xn)}return watch(()=>n.currentNodeKey,xn=>{i.value=xn},{immediate:!0}),watch(()=>n.defaultExpandedKeys,xn=>{r.value=new Set(xn)},{immediate:!0}),watch(()=>n.data,xn=>{En(xn)},{immediate:!0}),{tree:g,flattenTree:$e,isNotEmpty:Ve,listRef:$,getKey:Pt,getChildren:ze,toggleExpand:kt,toggleCheckbox:ie,isChecked:re,isIndeterminate:V,isDisabled:wn,isCurrent:bn,isForceHiddenExpandIcon:Ce,handleNodeClick:Dt,handleNodeDrop:Lt,handleNodeCheck:hn,getCurrentNode:Cn,getCurrentKey:Sn,setCurrentKey:Tn,getCheckedKeys:ae,getCheckedNodes:oe,getHalfCheckedKeys:le,getHalfCheckedNodes:ue,setChecked:de,setCheckedKeys:he,filter:Fe,setData:En,getNode:kn,expandNode:vn,collapseNode:_n,setExpandedKeys:At,scrollToNode:$n,scrollTo:An}}var ElNodeContent=defineComponent({name:"ElTreeNodeContent",props:treeNodeContentProps,setup(n){const t=inject(ROOT_TREE_INJECTION_KEY),r=useNamespace("tree");return()=>{const i=n.node,{data:g}=i;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:i,data:g}):h$1(ElText,{tag:"span",truncated:!0,class:r.be("node","label")},()=>[i==null?void 0:i.label])}}});const _hoisted_1$A=["aria-expanded","aria-disabled","aria-checked","data-key"],_sfc_main$Q=defineComponent({name:"ElTreeNode",__name:"tree-node",props:treeNodeProps,emits:treeNodeEmits,setup(n,{emit:t}){const r=n,i=t,g=inject(ROOT_TREE_INJECTION_KEY),$=useNamespace("tree"),V=computed(()=>{var he;return(he=g==null?void 0:g.props.indent)!=null?he:16}),re=computed(()=>{var he;return(he=g==null?void 0:g.props.icon)!=null?he:caret_right_default}),ie=he=>{const pe=g==null?void 0:g.props.props.class;if(!pe)return{};let _e;if(isFunction$4(pe)){const{data:Ce}=he;_e=pe(Ce,he)}else _e=pe;return isString$2(_e)?{[_e]:!0}:_e},ae=he=>{i("click",r.node,he)},oe=he=>{i("drop",r.node,he)},le=()=>{i("toggle",r.node)},ue=he=>{i("check",r.node,he)},de=he=>{var pe,_e,Ce,xe;(Ce=(_e=(pe=g==null?void 0:g.instance)==null?void 0:pe.vnode)==null?void 0:_e.props)!=null&&Ce.onNodeContextmenu&&(he.stopPropagation(),he.preventDefault()),g==null||g.ctx.emit(NODE_CONTEXTMENU,he,(xe=r.node)==null?void 0:xe.data,r.node)};return(he,pe)=>{var _e,Ce,xe;return openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([unref($).b("node"),unref($).is("expanded",he.expanded),unref($).is("current",he.current),unref($).is("focusable",!he.disabled),unref($).is("checked",!he.disabled&&he.checked),ie(he.node)]),role:"treeitem",tabindex:"-1","aria-expanded":he.expanded,"aria-disabled":he.disabled,"aria-checked":he.checked,"data-key":(_e=he.node)==null?void 0:_e.key,onClick:withModifiers(ae,["stop"]),onContextmenu:de,onDragover:pe[1]||(pe[1]=withModifiers(()=>{},["prevent"])),onDragenter:pe[2]||(pe[2]=withModifiers(()=>{},["prevent"])),onDrop:withModifiers(oe,["stop"])},[createBaseVNode("div",{class:normalizeClass(unref($).be("node","content")),style:normalizeStyle$1({paddingLeft:`${(he.node.level-1)*V.value}px`,height:he.itemSize+"px"})},[re.value?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref($).is("leaf",!!((Ce=he.node)!=null&&Ce.isLeaf)),unref($).is("hidden",he.hiddenExpandIcon),{expanded:!((xe=he.node)!=null&&xe.isLeaf)&&he.expanded},unref($).be("node","expand-icon")]),onClick:withModifiers(le,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(re.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),he.showCheckbox?(openBlock(),createBlock(unref(ElCheckbox),{key:1,"model-value":he.checked,indeterminate:he.indeterminate,disabled:he.disabled,onChange:ue,onClick:pe[0]||(pe[0]=withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):createCommentVNode("v-if",!0),createVNode$1(unref(ElNodeContent),{node:{...he.node,expanded:he.expanded}},null,8,["node"])],6)],42,_hoisted_1$A)}}});var ElTreeNode=_export_sfc(_sfc_main$Q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const _sfc_main$P=defineComponent({name:"ElTreeV2",__name:"tree",props:treeProps,emits:treeEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useSlots(),V=computed(()=>i.itemSize);provide(ROOT_TREE_INJECTION_KEY,{ctx:{emit:g,slots:$},props:i,instance:getCurrentInstance()}),provide(formItemContextKey,void 0);const{t:re}=useLocale(),ie=useNamespace("tree"),{flattenTree:ae,isNotEmpty:oe,listRef:le,toggleExpand:ue,isIndeterminate:de,isChecked:he,isDisabled:pe,isCurrent:_e,isForceHiddenExpandIcon:Ce,handleNodeClick:xe,handleNodeDrop:Ie,handleNodeCheck:Ne,toggleCheckbox:Oe,getCurrentNode:$e,getCurrentKey:Ve,setCurrentKey:Ue,getCheckedKeys:Fe,getCheckedNodes:ze,getHalfCheckedKeys:Pt,getHalfCheckedNodes:qe,setChecked:Et,setCheckedKeys:kt,filter:At,setData:Dt,getNode:Lt,expandNode:jt,collapseNode:hn,setExpandedKeys:vn,scrollToNode:_n,scrollTo:wn}=useTree(i,g);return t({toggleCheckbox:Oe,getCurrentNode:$e,getCurrentKey:Ve,setCurrentKey:Ue,getCheckedKeys:Fe,getCheckedNodes:ze,getHalfCheckedKeys:Pt,getHalfCheckedNodes:qe,setChecked:Et,setCheckedKeys:kt,filter:At,setData:Dt,getNode:Lt,expandNode:jt,collapseNode:hn,setExpandedKeys:vn,scrollToNode:_n,scrollTo:wn}),(bn,Cn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b(),{[unref(ie).m("highlight-current")]:bn.highlightCurrent}]),role:"tree"},[unref(oe)?(openBlock(),createBlock(unref(FixedSizeList),{key:0,ref_key:"listRef",ref:le,"class-name":unref(ie).b("virtual-list"),data:unref(ae),total:unref(ae).length,height:bn.height,"item-size":V.value,"perf-mode":bn.perfMode,"scrollbar-always-on":bn.scrollbarAlwaysOn},{default:withCtx(({data:Sn,index:Tn,style:En})=>[(openBlock(),createBlock(ElTreeNode,{key:Sn[Tn].key,style:normalizeStyle$1(En),node:Sn[Tn],expanded:Sn[Tn].expanded,"show-checkbox":bn.showCheckbox,checked:unref(he)(Sn[Tn]),indeterminate:unref(de)(Sn[Tn]),"item-size":V.value,disabled:unref(pe)(Sn[Tn]),current:unref(_e)(Sn[Tn]),"hidden-expand-icon":unref(Ce)(Sn[Tn]),onClick:unref(xe),onToggle:unref(ue),onCheck:unref(Ne),onDrop:unref(Ie)},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"])):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).e("empty-block"))},[renderSlot(bn.$slots,"empty",{},()=>{var Sn;return[createBaseVNode("span",{class:normalizeClass(unref(ie).e("empty-text"))},toDisplayString((Sn=bn.emptyText)!=null?Sn:unref(re)("el.tree.emptyText")),3)]})],2))],2))}});var TreeV2=_export_sfc(_sfc_main$P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const ElTreeV2=withInstall(TreeV2),uploadContextKey=Symbol("uploadContextKey"),SCOPE$2="ElUpload";class UploadAjaxError extends Error{constructor(t,r,i,g){super(t),this.name="UploadAjaxError",this.status=r,this.method=i,this.url=g}}function getError(n,t,r){let i;return r.response?i=`${r.response.error||r.response}`:r.responseText?i=`${r.responseText}`:i=`fail to ${t.method} ${n} ${r.status}`,new UploadAjaxError(i,r.status,t.method,n)}function getBody(n){const t=n.responseText||n.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const ajaxUpload=n=>{typeof XMLHttpRequest>"u"&&throwError$1(SCOPE$2,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,r=n.action;t.upload&&t.upload.addEventListener("progress",$=>{const V=$;V.percent=$.total>0?$.loaded/$.total*100:0,n.onProgress(V)});const i=new FormData;if(n.data)for(const[$,V]of Object.entries(n.data))isArray$5(V)&&V.length?i.append($,...V):i.append($,V);i.append(n.filename,n.file,n.file.name),t.addEventListener("error",()=>{n.onError(getError(r,n,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return n.onError(getError(r,n,t));n.onSuccess(getBody(t))}),t.open(n.method,r,!0),n.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const g=n.headers||{};if(g instanceof Headers)g.forEach(($,V)=>t.setRequestHeader(V,$));else for(const[$,V]of Object.entries(g))isNil(V)||t.setRequestHeader($,String(V));return t.send(i),t},uploadListTypes=["text","picture","picture-card"];let fileId=1;const genFileId=()=>Date.now()+fileId++,uploadBaseProps=buildProps({action:{type:String,default:"#"},headers:{type:definePropType(Object)},method:{type:String,default:"post"},data:{type:definePropType([Object,Function,Promise]),default:()=>mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:definePropType(Array),default:()=>mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:uploadListTypes,default:"text"},httpRequest:{type:definePropType(Function),default:ajaxUpload},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),uploadProps=buildProps({...uploadBaseProps,beforeUpload:{type:definePropType(Function),default:NOOP},beforeRemove:{type:definePropType(Function)},onRemove:{type:definePropType(Function),default:NOOP},onChange:{type:definePropType(Function),default:NOOP},onPreview:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP},crossorigin:{type:definePropType(String)}}),uploadListProps=buildProps({files:{type:definePropType(Array),default:()=>mutable([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:definePropType(Function),default:NOOP},listType:{type:String,values:uploadListTypes,default:"text"},crossorigin:{type:definePropType(String)}}),uploadListEmits={remove:n=>!!n},_hoisted_1$z=["tabindex","aria-disabled","onKeydown"],_hoisted_2$p=["src","crossorigin"],_hoisted_3$a=["onClick"],_hoisted_4$7=["title"],_hoisted_5$1=["onClick"],_hoisted_6=["onClick"],_sfc_main$O=defineComponent({name:"ElUploadList",__name:"upload-list",props:uploadListProps,emits:uploadListEmits,setup(n,{emit:t}){const r=n,i=t,{t:g}=useLocale(),$=useNamespace("upload"),V=useNamespace("icon"),re=useNamespace("list"),ie=useFormDisabled(),ae=ref(!1),oe=computed(()=>[$.b("list"),$.bm("list",r.listType),$.is("disabled",ie.value)]),le=ue=>{i("remove",ue)};return(ue,de)=>(openBlock(),createBlock(TransitionGroup,{tag:"ul",class:normalizeClass(oe.value),name:unref(re).b()},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(ue.files,(he,pe)=>(openBlock(),createElementBlock("li",{key:he.uid||he.name,class:normalizeClass([unref($).be("list","item"),unref($).is(he.status),{focusing:ae.value}]),tabindex:unref(ie)?void 0:0,"aria-disabled":unref(ie),role:"button",onKeydown:withKeys(_e=>!unref(ie)&&le(he),["delete"]),onFocus:de[0]||(de[0]=_e=>ae.value=!0),onBlur:de[1]||(de[1]=_e=>ae.value=!1),onClick:de[2]||(de[2]=_e=>ae.value=!1)},[renderSlot(ue.$slots,"default",{file:he,index:pe},()=>[ue.listType==="picture"||he.status!=="uploading"&&ue.listType==="picture-card"?(openBlock(),createElementBlock("img",{key:0,class:normalizeClass(unref($).be("list","item-thumbnail")),src:he.url,crossorigin:ue.crossorigin,alt:""},null,10,_hoisted_2$p)):createCommentVNode("v-if",!0),he.status==="uploading"||ue.listType!=="picture-card"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref($).be("list","item-info"))},[createBaseVNode("a",{class:normalizeClass(unref($).be("list","item-name")),onClick:withModifiers(_e=>ue.handlePreview(he),["prevent"])},[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(V).m("document"))},{default:withCtx(()=>[createVNode$1(unref(document_default))]),_:1},8,["class"]),createBaseVNode("span",{class:normalizeClass(unref($).be("list","item-file-name")),title:he.name},toDisplayString(he.name),11,_hoisted_4$7)],10,_hoisted_3$a),he.status==="uploading"?(openBlock(),createBlock(unref(ElProgress),{key:0,type:ue.listType==="picture-card"?"circle":"line","stroke-width":ue.listType==="picture-card"?6:2,percentage:Number(he.percentage),style:normalizeStyle$1(ue.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("label",{class:normalizeClass(unref($).be("list","item-status-label"))},[ue.listType==="text"?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(V).m("upload-success"),unref(V).m("circle-check")])},{default:withCtx(()=>[createVNode$1(unref(circle_check_default))]),_:1},8,["class"])):["picture-card","picture"].includes(ue.listType)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(V).m("upload-success"),unref(V).m("check")])},{default:withCtx(()=>[createVNode$1(unref(check_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2),unref(ie)?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(V).m("close")),onClick:_e=>le(he)},{default:withCtx(()=>[createVNode$1(unref(close_default))]),_:1},8,["class","onClick"])),createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),createCommentVNode(" This is a bug which needs to be fixed "),createCommentVNode(" TODO: Fix the incorrect navigation interaction "),unref(ie)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("i",{key:3,class:normalizeClass(unref(V).m("close-tip"))},toDisplayString(unref(g)("el.upload.deleteTip")),3)),ue.listType==="picture-card"?(openBlock(),createElementBlock("span",{key:4,class:normalizeClass(unref($).be("list","item-actions"))},[createBaseVNode("span",{class:normalizeClass(unref($).be("list","item-preview")),onClick:_e=>ue.handlePreview(he)},[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(V).m("zoom-in"))},{default:withCtx(()=>[createVNode$1(unref(zoom_in_default))]),_:1},8,["class"])],10,_hoisted_5$1),unref(ie)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref($).be("list","item-delete")),onClick:_e=>le(he)},[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(V).m("delete"))},{default:withCtx(()=>[createVNode$1(unref(delete_default))]),_:1},8,["class"])],10,_hoisted_6))],2)):createCommentVNode("v-if",!0)])],42,_hoisted_1$z))),128)),renderSlot(ue.$slots,"append")]),_:3},8,["class","name"]))}});var UploadList=_export_sfc(_sfc_main$O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const uploadDraggerProps=buildProps({disabled:{type:Boolean,default:void 0},directory:Boolean}),uploadDraggerEmits={file:n=>isArray$5(n)},COMPONENT_NAME$1="ElUploadDrag",_sfc_main$N=defineComponent({name:COMPONENT_NAME$1,__name:"upload-dragger",props:uploadDraggerProps,emits:uploadDraggerEmits,setup(n,{emit:t}){const r=n,i=t;inject(uploadContextKey)||throwError$1(COMPONENT_NAME$1,"usage: ");const $=useNamespace("upload"),V=ref(!1),re=useFormDisabled(),ie=de=>new Promise((he,pe)=>de.file(he,pe)),ae=async de=>{try{if(de.isFile){const he=await ie(de);return he.isDirectory=!1,[he]}if(de.isDirectory){const he=de.createReader(),pe=()=>new Promise((Ne,Oe)=>he.readEntries(Ne,Oe)),_e=[];let Ce=await pe();for(;Ce.length>0;)_e.push(...Ce),Ce=await pe();const xe=_e.map(Ne=>ae(Ne).catch(()=>[])),Ie=await Promise.all(xe);return flatten$1(Ie)}}catch{return[]}return[]},oe=async de=>{if(re.value)return;V.value=!1,de.stopPropagation();const he=Array.from(de.dataTransfer.files),pe=de.dataTransfer.items||[];if(r.directory){const _e=Array.from(pe).map(xe=>{var Ie;return(Ie=xe==null?void 0:xe.webkitGetAsEntry)==null?void 0:Ie.call(xe)}).filter(xe=>xe),Ce=await Promise.all(_e.map(ae));i("file",flatten$1(Ce));return}he.forEach((_e,Ce)=>{var xe;const Ie=pe[Ce],Ne=(xe=Ie==null?void 0:Ie.webkitGetAsEntry)==null?void 0:xe.call(Ie);Ne&&(_e.isDirectory=Ne.isDirectory)}),i("file",he)},le=()=>{re.value||(V.value=!0)},ue=de=>{de.currentTarget.contains(de.relatedTarget)||(V.value=!1)};return(de,he)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref($).b("dragger"),unref($).is("dragover",V.value)]),onDrop:withModifiers(oe,["prevent"]),onDragover:withModifiers(le,["prevent"]),onDragleave:withModifiers(ue,["prevent"])},[renderSlot(de.$slots,"default")],34))}});var UploadDragger=_export_sfc(_sfc_main$N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const uploadContentProps=buildProps({...uploadBaseProps,beforeUpload:{type:definePropType(Function),default:NOOP},onRemove:{type:definePropType(Function),default:NOOP},onStart:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP}}),_hoisted_1$y=["tabindex","aria-disabled","onKeydown"],_hoisted_2$o=["name","disabled","multiple","accept","webkitdirectory"],_sfc_main$M=defineComponent({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:uploadContentProps,setup(n,{expose:t}){const r=n,i=useNamespace("upload"),g=useFormDisabled(),$=shallowRef({}),V=shallowRef(),re=pe=>{if(pe.length===0)return;const{autoUpload:_e,limit:Ce,fileList:xe,multiple:Ie,onStart:Ne,onExceed:Oe}=r;if(Ce&&xe.length+pe.length>Ce){Oe(pe,xe);return}Ie||(pe=pe.slice(0,1));for(const $e of pe){const Ve=$e;Ve.uid=genFileId(),Ne(Ve),_e&&ie(Ve)}},ie=async pe=>{if(V.value.value="",!r.beforeUpload)return oe(pe);let _e,Ce={};try{const Ie=r.data,Ne=r.beforeUpload(pe);Ce=isPlainObject$3(r.data)?cloneDeep(r.data):r.data,_e=await Ne,isPlainObject$3(r.data)&&isEqual$1(Ie,Ce)&&(Ce=cloneDeep(r.data))}catch{_e=!1}if(_e===!1){r.onRemove(pe);return}let xe=pe;_e instanceof Blob&&(_e instanceof File?xe=_e:xe=new File([_e],pe.name,{type:pe.type})),oe(Object.assign(xe,{uid:pe.uid}),Ce)},ae=async(pe,_e)=>isFunction$4(pe)?pe(_e):pe,oe=async(pe,_e)=>{const{headers:Ce,data:xe,method:Ie,withCredentials:Ne,name:Oe,action:$e,onProgress:Ve,onSuccess:Ue,onError:Fe,httpRequest:ze}=r;try{_e=await ae(_e??xe,pe)}catch{r.onRemove(pe);return}const{uid:Pt}=pe,qe={headers:Ce||{},withCredentials:Ne,file:pe,data:_e,method:Ie,filename:Oe,action:$e,onProgress:kt=>{Ve(kt,pe)},onSuccess:kt=>{Ue(kt,pe),delete $.value[Pt]},onError:kt=>{Fe(kt,pe),delete $.value[Pt]}},Et=ze(qe);$.value[Pt]=Et,Et instanceof Promise&&Et.then(qe.onSuccess,qe.onError)},le=pe=>{const _e=pe.target.files;_e&&re(Array.from(_e))},ue=()=>{g.value||(V.value.value="",V.value.click())},de=()=>{ue()};return t({abort:pe=>{entriesOf($.value).filter(pe?([Ce])=>String(pe.uid)===Ce:()=>!0).forEach(([Ce,xe])=>{xe instanceof XMLHttpRequest&&xe.abort(),delete $.value[Ce]})},upload:ie}),(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(i).b(),unref(i).m(pe.listType),unref(i).is("drag",pe.drag),unref(i).is("disabled",unref(g))]),tabindex:unref(g)?void 0:0,"aria-disabled":unref(g),role:"button",onClick:ue,onKeydown:withKeys(withModifiers(de,["self"]),["enter","space"])},[pe.drag?(openBlock(),createBlock(UploadDragger,{key:0,disabled:unref(g),directory:pe.directory,onFile:re},{default:withCtx(()=>[renderSlot(pe.$slots,"default")]),_:3},8,["disabled","directory"])):renderSlot(pe.$slots,"default",{key:1}),createBaseVNode("input",{ref_key:"inputRef",ref:V,class:normalizeClass(unref(i).e("input")),name:pe.name,disabled:unref(g),multiple:pe.multiple,accept:pe.accept,webkitdirectory:pe.directory,type:"file",onChange:le,onClick:_e[0]||(_e[0]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_2$o)],42,_hoisted_1$y))}});var UploadContent=_export_sfc(_sfc_main$M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const SCOPE$1="ElUpload",revokeFileObjectURL=n=>{var t;(t=n.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(n.url)},useHandlers=(n,t)=>{const r=useVModel(n,"fileList",void 0,{passive:!0}),i=he=>r.value.find(pe=>pe.uid===he.uid);function g(he){var pe;(pe=t.value)==null||pe.abort(he)}function $(he=["ready","uploading","success","fail"]){r.value=r.value.filter(pe=>!he.includes(pe.status))}function V(he){r.value=r.value.filter(pe=>pe.uid!==he.uid)}const re=he=>{nextTick(()=>n.onChange(he,r.value))},ie=(he,pe)=>{const _e=i(pe);_e&&(console.error(he),_e.status="fail",V(_e),n.onError(he,_e,r.value),re(_e))},ae=(he,pe)=>{const _e=i(pe);_e&&(n.onProgress(he,_e,r.value),_e.status="uploading",_e.percentage=Math.round(he.percent))},oe=(he,pe)=>{const _e=i(pe);_e&&(_e.status="success",_e.response=he,n.onSuccess(he,_e,r.value),re(_e))},le=he=>{isNil(he.uid)&&(he.uid=genFileId());const pe={name:he.name,percentage:0,status:"ready",size:he.size,raw:he,uid:he.uid};if(n.listType==="picture-card"||n.listType==="picture")try{pe.url=URL.createObjectURL(he)}catch(_e){_e.message,n.onError(_e,pe,r.value)}r.value=[...r.value,pe],re(pe)},ue=async he=>{const pe=he instanceof File?i(he):he;pe||throwError$1(SCOPE$1,"file to be removed not found");const _e=Ce=>{g(Ce),V(Ce),n.onRemove(Ce,r.value),revokeFileObjectURL(Ce)};n.beforeRemove?await n.beforeRemove(pe,r.value)!==!1&&_e(pe):_e(pe)};function de(){r.value.filter(({status:he})=>he==="ready").forEach(({raw:he})=>{var pe;return he&&((pe=t.value)==null?void 0:pe.upload(he))})}return watch(()=>n.listType,he=>{he!=="picture-card"&&he!=="picture"||(r.value=r.value.map(pe=>{const{raw:_e,url:Ce}=pe;if(!Ce&&_e)try{pe.url=URL.createObjectURL(_e)}catch(xe){n.onError(xe,pe,r.value)}return pe}))}),watch(r,he=>{for(const pe of he)pe.uid||(pe.uid=genFileId()),pe.status||(pe.status="success")},{immediate:!0,deep:!0}),{uploadFiles:r,abort:g,clearFiles:$,handleError:ie,handleProgress:ae,handleStart:le,handleSuccess:oe,handleRemove:ue,submit:de,revokeFileObjectURL}},_sfc_main$L=defineComponent({name:"ElUpload",__name:"upload",props:uploadProps,setup(n,{expose:t}){const r=n,i=useFormDisabled(),g=shallowRef(),{abort:$,submit:V,clearFiles:re,uploadFiles:ie,handleStart:ae,handleError:oe,handleRemove:le,handleSuccess:ue,handleProgress:de,revokeFileObjectURL:he}=useHandlers(r,g),pe=computed(()=>r.listType==="picture-card"),_e=computed(()=>({...r,fileList:ie.value,onStart:ae,onProgress:de,onSuccess:ue,onError:oe,onRemove:le}));return onBeforeUnmount(()=>{ie.value.forEach(he)}),provide(uploadContextKey,{accept:toRef$1(r,"accept")}),t({abort:$,submit:V,clearFiles:re,handleStart:ae,handleRemove:le}),(Ce,xe)=>(openBlock(),createElementBlock("div",null,[pe.value&&Ce.showFileList?(openBlock(),createBlock(UploadList,{key:0,disabled:unref(i),"list-type":Ce.listType,files:unref(ie),crossorigin:Ce.crossorigin,"handle-preview":Ce.onPreview,onRemove:unref(le)},createSlots({append:withCtx(()=>[createVNode$1(UploadContent,mergeProps({ref_key:"uploadRef",ref:g},_e.value),{default:withCtx(()=>[Ce.$slots.trigger?renderSlot(Ce.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!Ce.$slots.trigger&&Ce.$slots.default?renderSlot(Ce.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)]),_:2},[Ce.$slots.file?{name:"default",fn:withCtx(({file:Ie,index:Ne})=>[renderSlot(Ce.$slots,"file",{file:Ie,index:Ne})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):createCommentVNode("v-if",!0),!pe.value||pe.value&&!Ce.showFileList?(openBlock(),createBlock(UploadContent,mergeProps({key:1,ref_key:"uploadRef",ref:g},_e.value),{default:withCtx(()=>[Ce.$slots.trigger?renderSlot(Ce.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!Ce.$slots.trigger&&Ce.$slots.default?renderSlot(Ce.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)):createCommentVNode("v-if",!0),Ce.$slots.trigger?renderSlot(Ce.$slots,"default",{key:2}):createCommentVNode("v-if",!0),renderSlot(Ce.$slots,"tip"),!pe.value&&Ce.showFileList?(openBlock(),createBlock(UploadList,{key:3,disabled:unref(i),"list-type":Ce.listType,files:unref(ie),crossorigin:Ce.crossorigin,"handle-preview":Ce.onPreview,onRemove:unref(le)},createSlots({_:2},[Ce.$slots.file?{name:"default",fn:withCtx(({file:Ie,index:Ne})=>[renderSlot(Ce.$slots,"file",{file:Ie,index:Ne})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):createCommentVNode("v-if",!0)]))}});var Upload=_export_sfc(_sfc_main$L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const ElUpload=withInstall(Upload),watermarkProps=buildProps({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:definePropType([String,Array]),default:"Element Plus"},font:{type:definePropType(Object)},gap:{type:definePropType(Array),default:()=>[100,100]},offset:{type:definePropType(Array)}});function toLowercaseSeparator(n){return n.replace(/([A-Z])/g,"-$1").toLowerCase()}function getStyleStr(n){return Object.keys(n).map(t=>`${toLowercaseSeparator(t)}: ${n[t]};`).join(" ")}function getPixelRatio(){return window.devicePixelRatio||1}const reRendering=(n,t)=>{let r=!1;return n.removedNodes.length&&t&&(r=Array.from(n.removedNodes).includes(t)),n.type==="attributes"&&n.target===t&&(r=!0),r},TEXT_ALIGN_RATIO_MAP={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function prepareCanvas(n,t,r=1){const i=document.createElement("canvas"),g=i.getContext("2d"),$=n*r,V=t*r;return i.setAttribute("width",`${$}px`),i.setAttribute("height",`${V}px`),g.save(),[g,i,$,V]}function useClips(){function n(t,r,i,g,$,V,re,ie,ae){const[oe,le,ue,de]=prepareCanvas(g,$,i);let he=0;if(t instanceof HTMLImageElement)oe.drawImage(t,0,0,ue,de);else{const{color:bn,fontSize:Cn,fontStyle:Sn,fontWeight:Tn,fontFamily:En,textAlign:kn,textBaseline:$n}=V,An=Number(Cn)*i;oe.font=`${Sn} normal ${Tn} ${An}px/${$}px ${En}`,oe.fillStyle=bn,oe.textAlign=kn,oe.textBaseline=$n;const xn=isArray$5(t)?t:[t];if($n!=="top"&&xn[0]){const Ln=oe.measureText(xn[0]);oe.textBaseline="top";const Nn=oe.measureText(xn[0]);he=Ln.actualBoundingBoxAscent-Nn.actualBoundingBoxAscent}xn==null||xn.forEach((Ln,Nn)=>{const[Pn,On]=TEXT_ALIGN_RATIO_MAP[kn];oe.fillText(Ln??"",ue*Pn+ae*On,Nn*(An+V.fontGap*i))})}const pe=Math.PI/180*Number(r),_e=Math.max(g,$),[Ce,xe,Ie]=prepareCanvas(_e,_e,i);Ce.translate(Ie/2,Ie/2),Ce.rotate(pe),ue>0&&de>0&&Ce.drawImage(le,-ue/2,-de/2);function Ne(bn,Cn){const Sn=bn*Math.cos(pe)-Cn*Math.sin(pe),Tn=bn*Math.sin(pe)+Cn*Math.cos(pe);return[Sn,Tn]}let Oe=0,$e=0,Ve=0,Ue=0;const Fe=ue/2,ze=de/2;[[0-Fe,0-ze],[0+Fe,0-ze],[0+Fe,0+ze],[0-Fe,0+ze]].forEach(([bn,Cn])=>{const[Sn,Tn]=Ne(bn,Cn);Oe=Math.min(Oe,Sn),$e=Math.max($e,Sn),Ve=Math.min(Ve,Tn),Ue=Math.max(Ue,Tn)});const qe=Oe+Ie/2,Et=Ve+Ie/2,kt=$e-Oe,At=Ue-Ve,Dt=re*i,Lt=ie*i,jt=(kt+Dt)*2,hn=At+Lt,[vn,_n]=prepareCanvas(jt,hn);function wn(bn=0,Cn=0){vn.drawImage(xe,qe,Et,kt,At,bn,Cn+he,kt,At)}return wn(),wn(kt+Dt,-At/2-Lt/2),wn(kt+Dt,+At/2+Lt/2),[_n.toDataURL(),jt/i,hn/i]}return n}const _sfc_main$K=defineComponent({name:"ElWatermark",__name:"watermark",props:watermarkProps,setup(n){const t={position:"relative"},r=n,i=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.fontGap)!=null?qe:3}),g=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.color)!=null?qe:"rgba(0,0,0,.15)"}),$=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.fontSize)!=null?qe:16}),V=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.fontWeight)!=null?qe:"normal"}),re=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.fontStyle)!=null?qe:"normal"}),ie=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.fontFamily)!=null?qe:"sans-serif"}),ae=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.textAlign)!=null?qe:"center"}),oe=computed(()=>{var Pt,qe;return(qe=(Pt=r.font)==null?void 0:Pt.textBaseline)!=null?qe:"hanging"}),le=computed(()=>r.gap[0]),ue=computed(()=>r.gap[1]),de=computed(()=>le.value/2),he=computed(()=>ue.value/2),pe=computed(()=>{var Pt,qe;return(qe=(Pt=r.offset)==null?void 0:Pt[0])!=null?qe:de.value}),_e=computed(()=>{var Pt,qe;return(qe=(Pt=r.offset)==null?void 0:Pt[1])!=null?qe:he.value}),Ce=()=>{const Pt={zIndex:r.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let qe=pe.value-de.value,Et=_e.value-he.value;return qe>0&&(Pt.left=`${qe}px`,Pt.width=`calc(100% - ${qe}px)`,qe=0),Et>0&&(Pt.top=`${Et}px`,Pt.height=`calc(100% - ${Et}px)`,Et=0),Pt.backgroundPosition=`${qe}px ${Et}px`,Pt},xe=shallowRef(null),Ie=shallowRef(),Ne=ref(!1),Oe=()=>{Ie.value&&(Ie.value.remove(),Ie.value=void 0)},$e=(Pt,qe)=>{var Et;xe.value&&Ie.value&&(Ne.value=!0,Ie.value.setAttribute("style",getStyleStr({...Ce(),backgroundImage:`url('${Pt}')`,backgroundSize:`${Math.floor(qe)}px`})),(Et=xe.value)==null||Et.append(Ie.value),setTimeout(()=>{Ne.value=!1}))},Ve=Pt=>{let qe=120,Et=64,kt=0;const{image:At,content:Dt,width:Lt,height:jt,rotate:hn}=r;if(!At&&Pt.measureText){Pt.font=`${Number($.value)}px ${ie.value}`;const vn=isArray$5(Dt)?Dt:[Dt];let _n=0,wn=0;vn.forEach(Cn=>{const{width:Sn,fontBoundingBoxAscent:Tn,fontBoundingBoxDescent:En,actualBoundingBoxAscent:kn,actualBoundingBoxDescent:$n}=Pt.measureText(Cn),An=isUndefined$1(Tn)?kn+$n:Tn+En;Sn>_n&&(_n=Math.ceil(Sn)),An>wn&&(wn=Math.ceil(An))}),qe=_n,Et=wn*vn.length+(vn.length-1)*i.value;const bn=Math.PI/180*Number(hn);kt=Math.ceil(Math.abs(Math.sin(bn)*Et)/2),qe+=kt}return[Lt??qe,jt??Et,kt]},Ue=useClips(),Fe=()=>{const qe=document.createElement("canvas").getContext("2d"),Et=r.image,kt=r.content,At=r.rotate;if(qe){Ie.value||(Ie.value=document.createElement("div"));const Dt=getPixelRatio(),[Lt,jt,hn]=Ve(qe),vn=_n=>{const[wn,bn]=Ue(_n||"",At,Dt,Lt,jt,{color:g.value,fontSize:$.value,fontStyle:re.value,fontWeight:V.value,fontFamily:ie.value,fontGap:i.value,textAlign:ae.value,textBaseline:oe.value},le.value,ue.value,hn);$e(wn,bn)};if(Et){const _n=new Image;_n.onload=()=>{vn(_n)},_n.onerror=()=>{vn(kt)},_n.crossOrigin="anonymous",_n.referrerPolicy="no-referrer",_n.src=Et}else vn(kt)}};return onMounted(()=>{Fe()}),watch(()=>r,()=>{Fe()},{deep:!0,flush:"post"}),onBeforeUnmount(()=>{Oe()}),useMutationObserver(xe,Pt=>{Ne.value||Pt.forEach(qe=>{reRendering(qe,Ie.value)&&(Oe(),Fe())})},{attributes:!0,subtree:!0,childList:!0}),(Pt,qe)=>(openBlock(),createElementBlock("div",{ref_key:"containerRef",ref:xe,style:normalizeStyle$1([t])},[renderSlot(Pt.$slots,"default")],4))}});var Watermark=_export_sfc(_sfc_main$K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/watermark/src/watermark.vue"]]);const ElWatermark=withInstall(Watermark),maskProps=buildProps({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:definePropType(Object)},targetAreaClickable:{type:Boolean,default:!0}}),min$2=Math.min,max$2=Math.max,round$3=Math.round,floor=Math.floor,createCoords=n=>({x:n,y:n}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$2(n,t,r){return max$2(n,min$2(t,r))}function evaluate(n,t){return typeof n=="function"?n(t):n}function getSide(n){return n.split("-")[0]}function getAlignment(n){return n.split("-")[1]}function getOppositeAxis(n){return n==="x"?"y":"x"}function getAxisLength(n){return n==="y"?"height":"width"}const yAxisSides=new Set(["top","bottom"]);function getSideAxis(n){return yAxisSides.has(getSide(n))?"y":"x"}function getAlignmentAxis(n){return getOppositeAxis(getSideAxis(n))}function getAlignmentSides(n,t,r){r===void 0&&(r=!1);const i=getAlignment(n),g=getAlignmentAxis(n),$=getAxisLength(g);let V=g==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[$]>t.floating[$]&&(V=getOppositePlacement(V)),[V,getOppositePlacement(V)]}function getExpandedPlacements(n){const t=getOppositePlacement(n);return[getOppositeAlignmentPlacement(n),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(n){return n.replace(/start|end/g,t=>oppositeAlignmentMap[t])}const lrPlacement=["left","right"],rlPlacement=["right","left"],tbPlacement=["top","bottom"],btPlacement=["bottom","top"];function getSideList(n,t,r){switch(n){case"top":case"bottom":return r?t?rlPlacement:lrPlacement:t?lrPlacement:rlPlacement;case"left":case"right":return t?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(n,t,r,i){const g=getAlignment(n);let $=getSideList(getSide(n),r==="start",i);return g&&($=$.map(V=>V+"-"+g),t&&($=$.concat($.map(getOppositeAlignmentPlacement)))),$}function getOppositePlacement(n){return n.replace(/left|right|bottom|top/g,t=>oppositeSideMap[t])}function expandPaddingObject(n){return{top:0,right:0,bottom:0,left:0,...n}}function getPaddingObject(n){return typeof n!="number"?expandPaddingObject(n):{top:n,right:n,bottom:n,left:n}}function rectToClientRect(n){const{x:t,y:r,width:i,height:g}=n;return{width:i,height:g,top:r,left:t,right:t+i,bottom:r+g,x:t,y:r}}function computeCoordsFromPlacement(n,t,r){let{reference:i,floating:g}=n;const $=getSideAxis(t),V=getAlignmentAxis(t),re=getAxisLength(V),ie=getSide(t),ae=$==="y",oe=i.x+i.width/2-g.width/2,le=i.y+i.height/2-g.height/2,ue=i[re]/2-g[re]/2;let de;switch(ie){case"top":de={x:oe,y:i.y-g.height};break;case"bottom":de={x:oe,y:i.y+i.height};break;case"right":de={x:i.x+i.width,y:le};break;case"left":de={x:i.x-g.width,y:le};break;default:de={x:i.x,y:i.y}}switch(getAlignment(t)){case"start":de[V]-=ue*(r&&ae?-1:1);break;case"end":de[V]+=ue*(r&&ae?-1:1);break}return de}const computePosition$1=async(n,t,r)=>{const{placement:i="bottom",strategy:g="absolute",middleware:$=[],platform:V}=r,re=$.filter(Boolean),ie=await(V.isRTL==null?void 0:V.isRTL(t));let ae=await V.getElementRects({reference:n,floating:t,strategy:g}),{x:oe,y:le}=computeCoordsFromPlacement(ae,i,ie),ue=i,de={},he=0;for(let pe=0;pe({name:"arrow",options:n,async fn(t){const{x:r,y:i,placement:g,rects:$,platform:V,elements:re,middlewareData:ie}=t,{element:ae,padding:oe=0}=evaluate(n,t)||{};if(ae==null)return{};const le=getPaddingObject(oe),ue={x:r,y:i},de=getAlignmentAxis(g),he=getAxisLength(de),pe=await V.getDimensions(ae),_e=de==="y",Ce=_e?"top":"left",xe=_e?"bottom":"right",Ie=_e?"clientHeight":"clientWidth",Ne=$.reference[he]+$.reference[de]-ue[de]-$.floating[he],Oe=ue[de]-$.reference[de],$e=await(V.getOffsetParent==null?void 0:V.getOffsetParent(ae));let Ve=$e?$e[Ie]:0;(!Ve||!await(V.isElement==null?void 0:V.isElement($e)))&&(Ve=re.floating[Ie]||$.floating[he]);const Ue=Ne/2-Oe/2,Fe=Ve/2-pe[he]/2-1,ze=min$2(le[Ce],Fe),Pt=min$2(le[xe],Fe),qe=ze,Et=Ve-pe[he]-Pt,kt=Ve/2-pe[he]/2+Ue,At=clamp$2(qe,kt,Et),Dt=!ie.arrow&&getAlignment(g)!=null&&kt!==At&&$.reference[he]/2-(ktkt<=0)){var Pt,qe;const kt=(((Pt=$.flip)==null?void 0:Pt.index)||0)+1,At=Ve[kt];if(At&&(!(le==="alignment"?xe!==getSideAxis(At):!1)||ze.every(jt=>getSideAxis(jt.placement)===xe?jt.overflows[0]>0:!0)))return{data:{index:kt,overflows:ze},reset:{placement:At}};let Dt=(qe=ze.filter(Lt=>Lt.overflows[0]<=0).sort((Lt,jt)=>Lt.overflows[1]-jt.overflows[1])[0])==null?void 0:qe.placement;if(!Dt)switch(de){case"bestFit":{var Et;const Lt=(Et=ze.filter(jt=>{if($e){const hn=getSideAxis(jt.placement);return hn===xe||hn==="y"}return!0}).map(jt=>[jt.placement,jt.overflows.filter(hn=>hn>0).reduce((hn,vn)=>hn+vn,0)]).sort((jt,hn)=>jt[1]-hn[1])[0])==null?void 0:Et[0];Lt&&(Dt=Lt);break}case"initialPlacement":Dt=re;break}if(g!==Dt)return{reset:{placement:Dt}}}return{}}}},originSides=new Set(["left","top"]);async function convertValueToCoords(n,t){const{placement:r,platform:i,elements:g}=n,$=await(i.isRTL==null?void 0:i.isRTL(g.floating)),V=getSide(r),re=getAlignment(r),ie=getSideAxis(r)==="y",ae=originSides.has(V)?-1:1,oe=$&&ie?-1:1,le=evaluate(t,n);let{mainAxis:ue,crossAxis:de,alignmentAxis:he}=typeof le=="number"?{mainAxis:le,crossAxis:0,alignmentAxis:null}:{mainAxis:le.mainAxis||0,crossAxis:le.crossAxis||0,alignmentAxis:le.alignmentAxis};return re&&typeof he=="number"&&(de=re==="end"?he*-1:he),ie?{x:de*oe,y:ue*ae}:{x:ue*ae,y:de*oe}}const offset$1=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(t){var r,i;const{x:g,y:$,placement:V,middlewareData:re}=t,ie=await convertValueToCoords(t,n);return V===((r=re.offset)==null?void 0:r.placement)&&(i=re.arrow)!=null&&i.alignmentOffset?{}:{x:g+ie.x,y:$+ie.y,data:{...ie,placement:V}}}}},shift$1=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(t){const{x:r,y:i,placement:g}=t,{mainAxis:$=!0,crossAxis:V=!1,limiter:re={fn:_e=>{let{x:Ce,y:xe}=_e;return{x:Ce,y:xe}}},...ie}=evaluate(n,t),ae={x:r,y:i},oe=await detectOverflow$1(t,ie),le=getSideAxis(getSide(g)),ue=getOppositeAxis(le);let de=ae[ue],he=ae[le];if($){const _e=ue==="y"?"top":"left",Ce=ue==="y"?"bottom":"right",xe=de+oe[_e],Ie=de-oe[Ce];de=clamp$2(xe,de,Ie)}if(V){const _e=le==="y"?"top":"left",Ce=le==="y"?"bottom":"right",xe=he+oe[_e],Ie=he-oe[Ce];he=clamp$2(xe,he,Ie)}const pe=re.fn({...t,[ue]:de,[le]:he});return{...pe,data:{x:pe.x-r,y:pe.y-i,enabled:{[ue]:$,[le]:V}}}}}};function hasWindow(){return typeof window<"u"}function getNodeName(n){return isNode(n)?(n.nodeName||"").toLowerCase():"#document"}function getWindow(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function getDocumentElement(n){var t;return(t=(isNode(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function isNode(n){return hasWindow()?n instanceof Node||n instanceof getWindow(n).Node:!1}function isElement(n){return hasWindow()?n instanceof Element||n instanceof getWindow(n).Element:!1}function isHTMLElement(n){return hasWindow()?n instanceof HTMLElement||n instanceof getWindow(n).HTMLElement:!1}function isShadowRoot(n){return!hasWindow()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof getWindow(n).ShadowRoot}const invalidOverflowDisplayValues=new Set(["inline","contents"]);function isOverflowElement(n){const{overflow:t,overflowX:r,overflowY:i,display:g}=getComputedStyle$3(n);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!invalidOverflowDisplayValues.has(g)}const tableElements=new Set(["table","td","th"]);function isTableElement(n){return tableElements.has(getNodeName(n))}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(n){return topLayerSelectors.some(t=>{try{return n.matches(t)}catch{return!1}})}const transformProperties=["transform","translate","scale","rotate","perspective"],willChangeValues=["transform","translate","scale","rotate","perspective","filter"],containValues=["paint","layout","strict","content"];function isContainingBlock(n){const t=isWebKit(),r=isElement(n)?getComputedStyle$3(n):n;return transformProperties.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||willChangeValues.some(i=>(r.willChange||"").includes(i))||containValues.some(i=>(r.contain||"").includes(i))}function getContainingBlock(n){let t=getParentNode(n);for(;isHTMLElement(t)&&!isLastTraversableNode(t);){if(isContainingBlock(t))return t;if(isTopLayer(t))return null;t=getParentNode(t)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lastTraversableNodeNames=new Set(["html","body","#document"]);function isLastTraversableNode(n){return lastTraversableNodeNames.has(getNodeName(n))}function getComputedStyle$3(n){return getWindow(n).getComputedStyle(n)}function getNodeScroll(n){return isElement(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function getParentNode(n){if(getNodeName(n)==="html")return n;const t=n.assignedSlot||n.parentNode||isShadowRoot(n)&&n.host||getDocumentElement(n);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(n){const t=getParentNode(n);return isLastTraversableNode(t)?n.ownerDocument?n.ownerDocument.body:n.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(n,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);const g=getNearestOverflowAncestor(n),$=g===((i=n.ownerDocument)==null?void 0:i.body),V=getWindow(g);if($){const re=getFrameElement(V);return t.concat(V,V.visualViewport||[],isOverflowElement(g)?g:[],re&&r?getOverflowAncestors(re):[])}return t.concat(g,getOverflowAncestors(g,[],r))}function getFrameElement(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function getCssDimensions(n){const t=getComputedStyle$3(n);let r=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const g=isHTMLElement(n),$=g?n.offsetWidth:r,V=g?n.offsetHeight:i,re=round$3(r)!==$||round$3(i)!==V;return re&&(r=$,i=V),{width:r,height:i,$:re}}function unwrapElement(n){return isElement(n)?n:n.contextElement}function getScale(n){const t=unwrapElement(n);if(!isHTMLElement(t))return createCoords(1);const r=t.getBoundingClientRect(),{width:i,height:g,$}=getCssDimensions(t);let V=($?round$3(r.width):r.width)/i,re=($?round$3(r.height):r.height)/g;return(!V||!Number.isFinite(V))&&(V=1),(!re||!Number.isFinite(re))&&(re=1),{x:V,y:re}}const noOffsets=createCoords(0);function getVisualOffsets(n){const t=getWindow(n);return!isWebKit()||!t.visualViewport?noOffsets:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function shouldAddVisualOffsets(n,t,r){return t===void 0&&(t=!1),!r||t&&r!==getWindow(n)?!1:t}function getBoundingClientRect(n,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);const g=n.getBoundingClientRect(),$=unwrapElement(n);let V=createCoords(1);t&&(i?isElement(i)&&(V=getScale(i)):V=getScale(n));const re=shouldAddVisualOffsets($,r,i)?getVisualOffsets($):createCoords(0);let ie=(g.left+re.x)/V.x,ae=(g.top+re.y)/V.y,oe=g.width/V.x,le=g.height/V.y;if($){const ue=getWindow($),de=i&&isElement(i)?getWindow(i):i;let he=ue,pe=getFrameElement(he);for(;pe&&i&&de!==he;){const _e=getScale(pe),Ce=pe.getBoundingClientRect(),xe=getComputedStyle$3(pe),Ie=Ce.left+(pe.clientLeft+parseFloat(xe.paddingLeft))*_e.x,Ne=Ce.top+(pe.clientTop+parseFloat(xe.paddingTop))*_e.y;ie*=_e.x,ae*=_e.y,oe*=_e.x,le*=_e.y,ie+=Ie,ae+=Ne,he=getWindow(pe),pe=getFrameElement(he)}}return rectToClientRect({width:oe,height:le,x:ie,y:ae})}function getWindowScrollBarX(n,t){const r=getNodeScroll(n).scrollLeft;return t?t.left+r:getBoundingClientRect(getDocumentElement(n)).left+r}function getHTMLOffset(n,t){const r=n.getBoundingClientRect(),i=r.left+t.scrollLeft-getWindowScrollBarX(n,r),g=r.top+t.scrollTop;return{x:i,y:g}}function convertOffsetParentRelativeRectToViewportRelativeRect(n){let{elements:t,rect:r,offsetParent:i,strategy:g}=n;const $=g==="fixed",V=getDocumentElement(i),re=t?isTopLayer(t.floating):!1;if(i===V||re&&$)return r;let ie={scrollLeft:0,scrollTop:0},ae=createCoords(1);const oe=createCoords(0),le=isHTMLElement(i);if((le||!le&&!$)&&((getNodeName(i)!=="body"||isOverflowElement(V))&&(ie=getNodeScroll(i)),isHTMLElement(i))){const de=getBoundingClientRect(i);ae=getScale(i),oe.x=de.x+i.clientLeft,oe.y=de.y+i.clientTop}const ue=V&&!le&&!$?getHTMLOffset(V,ie):createCoords(0);return{width:r.width*ae.x,height:r.height*ae.y,x:r.x*ae.x-ie.scrollLeft*ae.x+oe.x+ue.x,y:r.y*ae.y-ie.scrollTop*ae.y+oe.y+ue.y}}function getClientRects(n){return Array.from(n.getClientRects())}function getDocumentRect(n){const t=getDocumentElement(n),r=getNodeScroll(n),i=n.ownerDocument.body,g=max$2(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),$=max$2(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let V=-r.scrollLeft+getWindowScrollBarX(n);const re=-r.scrollTop;return getComputedStyle$3(i).direction==="rtl"&&(V+=max$2(t.clientWidth,i.clientWidth)-g),{width:g,height:$,x:V,y:re}}const SCROLLBAR_MAX=25;function getViewportRect(n,t){const r=getWindow(n),i=getDocumentElement(n),g=r.visualViewport;let $=i.clientWidth,V=i.clientHeight,re=0,ie=0;if(g){$=g.width,V=g.height;const oe=isWebKit();(!oe||oe&&t==="fixed")&&(re=g.offsetLeft,ie=g.offsetTop)}const ae=getWindowScrollBarX(i);if(ae<=0){const oe=i.ownerDocument,le=oe.body,ue=getComputedStyle(le),de=oe.compatMode==="CSS1Compat"&&parseFloat(ue.marginLeft)+parseFloat(ue.marginRight)||0,he=Math.abs(i.clientWidth-le.clientWidth-de);he<=SCROLLBAR_MAX&&($-=he)}else ae<=SCROLLBAR_MAX&&($+=ae);return{width:$,height:V,x:re,y:ie}}const absoluteOrFixed=new Set(["absolute","fixed"]);function getInnerBoundingClientRect(n,t){const r=getBoundingClientRect(n,!0,t==="fixed"),i=r.top+n.clientTop,g=r.left+n.clientLeft,$=isHTMLElement(n)?getScale(n):createCoords(1),V=n.clientWidth*$.x,re=n.clientHeight*$.y,ie=g*$.x,ae=i*$.y;return{width:V,height:re,x:ie,y:ae}}function getClientRectFromClippingAncestor(n,t,r){let i;if(t==="viewport")i=getViewportRect(n,r);else if(t==="document")i=getDocumentRect(getDocumentElement(n));else if(isElement(t))i=getInnerBoundingClientRect(t,r);else{const g=getVisualOffsets(n);i={x:t.x-g.x,y:t.y-g.y,width:t.width,height:t.height}}return rectToClientRect(i)}function hasFixedPositionAncestor(n,t){const r=getParentNode(n);return r===t||!isElement(r)||isLastTraversableNode(r)?!1:getComputedStyle$3(r).position==="fixed"||hasFixedPositionAncestor(r,t)}function getClippingElementAncestors(n,t){const r=t.get(n);if(r)return r;let i=getOverflowAncestors(n,[],!1).filter(re=>isElement(re)&&getNodeName(re)!=="body"),g=null;const $=getComputedStyle$3(n).position==="fixed";let V=$?getParentNode(n):n;for(;isElement(V)&&!isLastTraversableNode(V);){const re=getComputedStyle$3(V),ie=isContainingBlock(V);!ie&&re.position==="fixed"&&(g=null),($?!ie&&!g:!ie&&re.position==="static"&&!!g&&absoluteOrFixed.has(g.position)||isOverflowElement(V)&&!ie&&hasFixedPositionAncestor(n,V))?i=i.filter(oe=>oe!==V):g=re,V=getParentNode(V)}return t.set(n,i),i}function getClippingRect(n){let{element:t,boundary:r,rootBoundary:i,strategy:g}=n;const V=[...r==="clippingAncestors"?isTopLayer(t)?[]:getClippingElementAncestors(t,this._c):[].concat(r),i],re=V[0],ie=V.reduce((ae,oe)=>{const le=getClientRectFromClippingAncestor(t,oe,g);return ae.top=max$2(le.top,ae.top),ae.right=min$2(le.right,ae.right),ae.bottom=min$2(le.bottom,ae.bottom),ae.left=max$2(le.left,ae.left),ae},getClientRectFromClippingAncestor(t,re,g));return{width:ie.right-ie.left,height:ie.bottom-ie.top,x:ie.left,y:ie.top}}function getDimensions(n){const{width:t,height:r}=getCssDimensions(n);return{width:t,height:r}}function getRectRelativeToOffsetParent(n,t,r){const i=isHTMLElement(t),g=getDocumentElement(t),$=r==="fixed",V=getBoundingClientRect(n,!0,$,t);let re={scrollLeft:0,scrollTop:0};const ie=createCoords(0);function ae(){ie.x=getWindowScrollBarX(g)}if(i||!i&&!$)if((getNodeName(t)!=="body"||isOverflowElement(g))&&(re=getNodeScroll(t)),i){const de=getBoundingClientRect(t,!0,$,t);ie.x=de.x+t.clientLeft,ie.y=de.y+t.clientTop}else g&&ae();$&&!i&&g&&ae();const oe=g&&!i&&!$?getHTMLOffset(g,re):createCoords(0),le=V.left+re.scrollLeft-ie.x-oe.x,ue=V.top+re.scrollTop-ie.y-oe.y;return{x:le,y:ue,width:V.width,height:V.height}}function isStaticPositioned(n){return getComputedStyle$3(n).position==="static"}function getTrueOffsetParent(n,t){if(!isHTMLElement(n)||getComputedStyle$3(n).position==="fixed")return null;if(t)return t(n);let r=n.offsetParent;return getDocumentElement(n)===r&&(r=r.ownerDocument.body),r}function getOffsetParent(n,t){const r=getWindow(n);if(isTopLayer(n))return r;if(!isHTMLElement(n)){let g=getParentNode(n);for(;g&&!isLastTraversableNode(g);){if(isElement(g)&&!isStaticPositioned(g))return g;g=getParentNode(g)}return r}let i=getTrueOffsetParent(n,t);for(;i&&isTableElement(i)&&isStaticPositioned(i);)i=getTrueOffsetParent(i,t);return i&&isLastTraversableNode(i)&&isStaticPositioned(i)&&!isContainingBlock(i)?r:i||getContainingBlock(n)||r}const getElementRects=async function(n){const t=this.getOffsetParent||getOffsetParent,r=this.getDimensions,i=await r(n.floating);return{reference:getRectRelativeToOffsetParent(n.reference,await t(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function isRTL(n){return getComputedStyle$3(n).direction==="rtl"}const platform$3={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function rectsAreEqual(n,t){return n.x===t.x&&n.y===t.y&&n.width===t.width&&n.height===t.height}function observeMove(n,t){let r=null,i;const g=getDocumentElement(n);function $(){var re;clearTimeout(i),(re=r)==null||re.disconnect(),r=null}function V(re,ie){re===void 0&&(re=!1),ie===void 0&&(ie=1),$();const ae=n.getBoundingClientRect(),{left:oe,top:le,width:ue,height:de}=ae;if(re||t(),!ue||!de)return;const he=floor(le),pe=floor(g.clientWidth-(oe+ue)),_e=floor(g.clientHeight-(le+de)),Ce=floor(oe),Ie={rootMargin:-he+"px "+-pe+"px "+-_e+"px "+-Ce+"px",threshold:max$2(0,min$2(1,ie))||1};let Ne=!0;function Oe($e){const Ve=$e[0].intersectionRatio;if(Ve!==ie){if(!Ne)return V();Ve?V(!1,Ve):i=setTimeout(()=>{V(!1,1e-7)},1e3)}Ve===1&&!rectsAreEqual(ae,n.getBoundingClientRect())&&V(),Ne=!1}try{r=new IntersectionObserver(Oe,{...Ie,root:g.ownerDocument})}catch{r=new IntersectionObserver(Oe,Ie)}r.observe(n)}return V(!0),$}function autoUpdate(n,t,r,i){i===void 0&&(i={});const{ancestorScroll:g=!0,ancestorResize:$=!0,elementResize:V=typeof ResizeObserver=="function",layoutShift:re=typeof IntersectionObserver=="function",animationFrame:ie=!1}=i,ae=unwrapElement(n),oe=g||$?[...ae?getOverflowAncestors(ae):[],...getOverflowAncestors(t)]:[];oe.forEach(Ce=>{g&&Ce.addEventListener("scroll",r,{passive:!0}),$&&Ce.addEventListener("resize",r)});const le=ae&&re?observeMove(ae,r):null;let ue=-1,de=null;V&&(de=new ResizeObserver(Ce=>{let[xe]=Ce;xe&&xe.target===ae&&de&&(de.unobserve(t),cancelAnimationFrame(ue),ue=requestAnimationFrame(()=>{var Ie;(Ie=de)==null||Ie.observe(t)})),r()}),ae&&!ie&&de.observe(ae),de.observe(t));let he,pe=ie?getBoundingClientRect(n):null;ie&&_e();function _e(){const Ce=getBoundingClientRect(n);pe&&!rectsAreEqual(pe,Ce)&&r(),pe=Ce,he=requestAnimationFrame(_e)}return r(),()=>{var Ce;oe.forEach(xe=>{g&&xe.removeEventListener("scroll",r),$&&xe.removeEventListener("resize",r)}),le==null||le(),(Ce=de)==null||Ce.disconnect(),de=null,ie&&cancelAnimationFrame(he)}}const detectOverflow=detectOverflow$1,offset=offset$1,shift=shift$1,flip=flip$1,arrow=arrow$1,computePosition=(n,t,r)=>{const i=new Map,g={platform:platform$3,...r},$={...g.platform,_c:i};return computePosition$1(n,t,{...g,platform:$})},useTarget=(n,t,r,i,g)=>{const $=ref(null),V=()=>{let le;return isString$2(n.value)?le=document.querySelector(n.value):isFunction$4(n.value)?le=n.value():le=n.value,le},re=()=>{const le=V();if(!le||!t.value){$.value=null;return}isInViewPort(le)||le.scrollIntoView(g.value);const{left:ue,top:de,width:he,height:pe}=le.getBoundingClientRect();$.value={left:ue,top:de,width:he,height:pe,radius:0}};onMounted(()=>{watch([t,n],()=>{re()},{immediate:!0}),window.addEventListener("resize",re)}),onBeforeUnmount(()=>{window.removeEventListener("resize",re)});const ie=le=>{var ue;return(ue=isArray$5(r.value.offset)?r.value.offset[le]:r.value.offset)!=null?ue:6},ae=computed(()=>{var le;if(!$.value)return $.value;const ue=ie(0),de=ie(1),he=((le=r.value)==null?void 0:le.radius)||2;return{left:$.value.left-ue,top:$.value.top-de,width:$.value.width+ue*2,height:$.value.height+de*2,radius:he}}),oe=computed(()=>{const le=V();return!i.value||!le||!window.DOMRect?le||void 0:{getBoundingClientRect(){var ue,de,he,pe;return window.DOMRect.fromRect({width:((ue=ae.value)==null?void 0:ue.width)||0,height:((de=ae.value)==null?void 0:de.height)||0,x:((he=ae.value)==null?void 0:he.left)||0,y:((pe=ae.value)==null?void 0:pe.top)||0})}}});return{mergedPosInfo:ae,triggerTarget:oe}},tourKey=Symbol("ElTour");function isInViewPort(n){const t=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,{top:i,right:g,bottom:$,left:V}=n.getBoundingClientRect();return i>=0&&V>=0&&g<=t&&$<=r}const useFloating=(n,t,r,i,g,$,V,re)=>{const ie=ref(),ae=ref(),oe=ref({}),le={x:ie,y:ae,placement:i,strategy:g,middlewareData:oe},ue=computed(()=>{const Ce=[offset(unref($)),flip(),shift(),overflowMiddleware()];return unref(re)&&unref(r)&&Ce.push(arrow({element:unref(r)})),Ce}),de=async()=>{if(!isClient)return;const Ce=unref(n),xe=unref(t);if(!Ce||!xe)return;const Ie=await computePosition(Ce,xe,{placement:unref(i),strategy:unref(g),middleware:unref(ue)});keysOf(le).forEach(Ne=>{le[Ne].value=Ie[Ne]})},he=computed(()=>{if(!unref(n))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:unref(V)};const{overflow:Ce}=unref(oe);return{position:unref(g),zIndex:unref(V),top:unref(ae)!=null?`${unref(ae)}px`:"",left:unref(ie)!=null?`${unref(ie)}px`:"",maxWidth:Ce!=null&&Ce.maxWidth?`${Ce==null?void 0:Ce.maxWidth}px`:""}}),pe=computed(()=>{if(!unref(re))return{};const{arrow:Ce}=unref(oe);return{left:(Ce==null?void 0:Ce.x)!=null?`${Ce==null?void 0:Ce.x}px`:"",top:(Ce==null?void 0:Ce.y)!=null?`${Ce==null?void 0:Ce.y}px`:""}});let _e;return onMounted(()=>{const Ce=unref(n),xe=unref(t);Ce&&xe&&(_e=autoUpdate(Ce,xe,de)),watchEffect(()=>{de()})}),onBeforeUnmount(()=>{_e&&_e()}),{update:de,contentStyle:he,arrowStyle:pe}},overflowMiddleware=()=>({name:"overflow",async fn(n){const t=await detectOverflow(n);let r=0;return t.left>0&&(r=t.left),t.right>0&&(r=t.right),{data:{maxWidth:n.rects.floating.width-r}}}}),_hoisted_1$x={style:{width:"100%",height:"100%"}},_hoisted_2$n=["d"],_sfc_main$J=defineComponent({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:maskProps,setup(n){const t=n,{ns:r}=inject(tourKey),i=computed(()=>{var oe,le;return(le=(oe=t.pos)==null?void 0:oe.radius)!=null?le:2}),g=computed(()=>{const oe=i.value,le=`a${oe},${oe} 0 0 1`;return{topRight:`${le} ${oe},${oe}`,bottomRight:`${le} ${-oe},${oe}`,bottomLeft:`${le} ${-oe},${-oe}`,topLeft:`${le} ${oe},${-oe}`}}),{width:$,height:V}=useWindowSize(),re=computed(()=>{const oe=$.value,le=V.value,ue=g.value,de=`M${oe},0 L0,0 L0,${le} L${oe},${le} L${oe},0 Z`,he=i.value;return t.pos?`${de} M${t.pos.left+he},${t.pos.top} h${t.pos.width-he*2} ${ue.topRight} v${t.pos.height-he*2} ${ue.bottomRight} h${-t.pos.width+he*2} ${ue.bottomLeft} v${-t.pos.height+he*2} ${ue.topLeft} z`:de}),ie=computed(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),ae=computed(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return useLockscreen(toRef$1(t,"visible"),{ns:r}),(oe,le)=>oe.visible?(openBlock(),createElementBlock("div",mergeProps({key:0,class:unref(r).e("mask"),style:ie.value},oe.$attrs),[(openBlock(),createElementBlock("svg",_hoisted_1$x,[createBaseVNode("path",{class:normalizeClass(unref(r).e("hollow")),style:normalizeStyle$1(ae.value),d:re.value},null,14,_hoisted_2$n)]))],16)):createCommentVNode("v-if",!0)}});var ElTourMask=_export_sfc(_sfc_main$J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/mask.vue"]]);const tourStrategies=["absolute","fixed"],tourPlacements=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],tourContentProps=buildProps({placement:{type:definePropType(String),values:tourPlacements,default:"bottom"},reference:{type:definePropType(Object),default:null},strategy:{type:definePropType(String),values:tourStrategies,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),tourContentEmits={close:()=>!0},_hoisted_1$w=["data-side"],_sfc_main$I=defineComponent({name:"ElTourContent",__name:"content",props:tourContentProps,emits:tourContentEmits,setup(n,{emit:t}){const r=n,i=t,g=ref(r.placement),$=ref(r.strategy),V=ref(null),re=ref(null);watch(()=>r.placement,()=>{g.value=r.placement});const{contentStyle:ie,arrowStyle:ae}=useFloating(toRef$1(r,"reference"),V,re,g,$,toRef$1(r,"offset"),toRef$1(r,"zIndex"),toRef$1(r,"showArrow")),oe=computed(()=>g.value.split("-")[0]),{ns:le}=inject(tourKey),ue=()=>{i("close")},de=he=>{he.detail.focusReason==="pointer"&&he.preventDefault()};return(he,pe)=>(openBlock(),createElementBlock("div",{ref_key:"contentRef",ref:V,style:normalizeStyle$1(unref(ie)),class:normalizeClass(unref(le).e("content")),"data-side":oe.value,tabindex:"-1"},[createVNode$1(unref(ElFocusTrap),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":V.value||void 0,onReleaseRequested:ue,onFocusoutPrevented:de},{default:withCtx(()=>[renderSlot(he.$slots,"default")]),_:3},8,["focus-trap-el"]),he.showArrow?(openBlock(),createElementBlock("span",{key:0,ref_key:"arrowRef",ref:re,style:normalizeStyle$1(unref(ae)),class:normalizeClass(unref(le).e("arrow"))},null,6)):createCommentVNode("v-if",!0)],14,_hoisted_1$w))}});var ElTourContent=_export_sfc(_sfc_main$I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/content.vue"]]),ElTourSteps=defineComponent({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(n,{slots:t,emit:r}){let i=0;return()=>{var g,$;const V=(g=t.default)==null?void 0:g.call(t),re=[];let ie=0;function ae(oe){isArray$5(oe)&&oe.forEach(le=>{var ue;((ue=(le==null?void 0:le.type)||{})==null?void 0:ue.name)==="ElTourStep"&&(re.push(le),ie+=1)})}return V.length&&ae(flattedChildren(($=V[0])==null?void 0:$.children)),i!==ie&&(i=ie,r("update-total",ie)),re.length?re[n.current]:null}}});const tourProps=buildProps({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:iconPropType},placement:tourContentProps.placement,contentStyle:{type:definePropType([Object])},mask:{type:definePropType([Boolean,Object]),default:!0},gap:{type:definePropType(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:definePropType([Boolean,Object]),default:()=>({block:"center"})},type:{type:definePropType(String)},appendTo:{type:teleportProps.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),tourEmits={[UPDATE_MODEL_EVENT]:n=>isBoolean$1(n),"update:current":n=>isNumber$2(n),close:n=>isNumber$2(n),finish:()=>!0,change:n=>isNumber$2(n)},_sfc_main$H=defineComponent({name:"ElTour",inheritAttrs:!1,__name:"tour",props:tourProps,emits:tourEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("tour"),$=ref(0),V=ref(),re=useVModel(r,"current",i,{passive:!0}),ie=computed(()=>{var ze;return(ze=V.value)==null?void 0:ze.target}),ae=computed(()=>[g.b(),Ce.value==="primary"?g.m("primary"):""]),oe=computed(()=>{var ze;return((ze=V.value)==null?void 0:ze.placement)||r.placement}),le=computed(()=>{var ze,Pt;return(Pt=(ze=V.value)==null?void 0:ze.contentStyle)!=null?Pt:r.contentStyle}),ue=computed(()=>{var ze,Pt;return(Pt=(ze=V.value)==null?void 0:ze.mask)!=null?Pt:r.mask}),de=computed(()=>!!ue.value&&r.modelValue),he=computed(()=>isBoolean$1(ue.value)?void 0:ue.value),pe=computed(()=>{var ze,Pt;return!!ie.value&&((Pt=(ze=V.value)==null?void 0:ze.showArrow)!=null?Pt:r.showArrow)}),_e=computed(()=>{var ze,Pt;return(Pt=(ze=V.value)==null?void 0:ze.scrollIntoViewOptions)!=null?Pt:r.scrollIntoViewOptions}),Ce=computed(()=>{var ze,Pt;return(Pt=(ze=V.value)==null?void 0:ze.type)!=null?Pt:r.type}),{nextZIndex:xe}=useZIndex(),Ie=xe(),Ne=computed(()=>{var ze;return(ze=r.zIndex)!=null?ze:Ie}),{mergedPosInfo:Oe,triggerTarget:$e}=useTarget(ie,toRef$1(r,"modelValue"),toRef$1(r,"gap"),ue,_e);watch(()=>r.modelValue,ze=>{ze||(re.value=0)});const Ve=()=>{r.closeOnPressEscape&&(i(UPDATE_MODEL_EVENT,!1),i("close",re.value))},Ue=ze=>{$.value=ze},Fe=useSlots();return provide(tourKey,{currentStep:V,current:re,total:$,showClose:toRef$1(r,"showClose"),closeIcon:toRef$1(r,"closeIcon"),mergedType:Ce,ns:g,slots:Fe,updateModelValue(ze){i(UPDATE_MODEL_EVENT,ze)},onClose(){i("close",re.value)},onFinish(){i("finish")},onChange(){i(CHANGE_EVENT,re.value)}}),(ze,Pt)=>(openBlock(),createElementBlock(Fragment,null,[createVNode$1(unref(ElTeleport),{to:ze.appendTo},{default:withCtx(()=>{var qe,Et;return[createBaseVNode("div",mergeProps({class:ae.value},ze.$attrs),[createVNode$1(ElTourMask,{visible:de.value,fill:(qe=he.value)==null?void 0:qe.color,style:normalizeStyle$1((Et=he.value)==null?void 0:Et.style),pos:unref(Oe),"z-index":Ne.value,"target-area-clickable":ze.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),ze.modelValue?(openBlock(),createBlock(ElTourContent,{key:unref(re),reference:unref($e),placement:oe.value,"show-arrow":pe.value,"z-index":Ne.value,style:normalizeStyle$1(le.value),onClose:Ve},{default:withCtx(()=>[createVNode$1(unref(ElTourSteps),{current:unref(re),onUpdateTotal:Ue},{default:withCtx(()=>[renderSlot(ze.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):createCommentVNode("v-if",!0)],16)]}),_:3},8,["to"]),createCommentVNode(" just for IDE "),createCommentVNode("v-if",!0)],64))}});var Tour=_export_sfc(_sfc_main$H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/tour.vue"]]);const tourStepProps=buildProps({target:{type:definePropType([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:iconPropType},showArrow:{type:Boolean,default:void 0},placement:tourContentProps.placement,mask:{type:definePropType([Boolean,Object]),default:void 0},contentStyle:{type:definePropType([Object])},prevButtonProps:{type:definePropType(Object)},nextButtonProps:{type:definePropType(Object)},scrollIntoViewOptions:{type:definePropType([Boolean,Object]),default:void 0},type:{type:definePropType(String)}}),tourStepEmits={close:()=>!0},_hoisted_1$v=["aria-label"],_sfc_main$G=defineComponent({name:"ElTourStep",__name:"step",props:tourStepProps,emits:tourStepEmits,setup(n,{emit:t}){const r=n,i=t,{Close:g}=CloseComponents,{t:$}=useLocale(),{currentStep:V,current:re,total:ie,showClose:ae,closeIcon:oe,mergedType:le,ns:ue,slots:de,updateModelValue:he,onClose:pe,onFinish:_e,onChange:Ce}=inject(tourKey);watch(r,ze=>{V.value=ze},{immediate:!0});const xe=computed(()=>{var ze;return(ze=r.showClose)!=null?ze:ae.value}),Ie=computed(()=>{var ze,Pt;return(Pt=(ze=r.closeIcon)!=null?ze:oe.value)!=null?Pt:g}),Ne=ze=>{if(ze)return omit$1(ze,["children","onClick"])},Oe=()=>{var ze,Pt;re.value-=1,(ze=r.prevButtonProps)!=null&&ze.onClick&&((Pt=r.prevButtonProps)==null||Pt.onClick()),Ce()},$e=()=>{var ze;re.value>=ie.value-1?Ve():re.value+=1,(ze=r.nextButtonProps)!=null&&ze.onClick&&r.nextButtonProps.onClick(),Ce()},Ve=()=>{Ue(),_e()},Ue=()=>{he(!1),pe(),i("close")},Fe=ze=>{const Pt=ze.target;if(Pt!=null&&Pt.isContentEditable)return;switch(getEventCode(ze)){case EVENT_CODE.left:ze.preventDefault(),re.value>0&&Oe();break;case EVENT_CODE.right:ze.preventDefault(),$e();break}};return onMounted(()=>{window.addEventListener("keydown",Fe)}),onBeforeUnmount(()=>{window.removeEventListener("keydown",Fe)}),(ze,Pt)=>(openBlock(),createElementBlock(Fragment,null,[xe.value?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref($)("el.tour.close"),class:normalizeClass(unref(ue).e("closebtn")),type:"button",onClick:Ue},[createVNode$1(unref(ElIcon),{class:normalizeClass(unref(ue).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ie.value)))]),_:1},8,["class"])],10,_hoisted_1$v)):createCommentVNode("v-if",!0),createBaseVNode("header",{class:normalizeClass([unref(ue).e("header"),{"show-close":unref(ae)}])},[renderSlot(ze.$slots,"header",{},()=>[createBaseVNode("span",{role:"heading",class:normalizeClass(unref(ue).e("title"))},toDisplayString(ze.title),3)])],2),createBaseVNode("div",{class:normalizeClass(unref(ue).e("body"))},[renderSlot(ze.$slots,"default",{},()=>[createBaseVNode("span",null,toDisplayString(ze.description),1)])],2),createBaseVNode("footer",{class:normalizeClass(unref(ue).e("footer"))},[createBaseVNode("div",{class:normalizeClass(unref(ue).b("indicators"))},[unref(de).indicators?(openBlock(),createBlock(resolveDynamicComponent(unref(de).indicators),{key:0,current:unref(re),total:unref(ie)},null,8,["current","total"])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(unref(ie),(qe,Et)=>(openBlock(),createElementBlock("span",{key:qe,class:normalizeClass([unref(ue).b("indicator"),unref(ue).is("active",Et===unref(re))])},null,2))),128))],2),createBaseVNode("div",{class:normalizeClass(unref(ue).b("buttons"))},[unref(re)>0?(openBlock(),createBlock(unref(ElButton),mergeProps({key:0,size:"small",type:unref(le)},Ne(ze.prevButtonProps),{onClick:Oe}),{default:withCtx(()=>{var qe,Et;return[createTextVNode(toDisplayString((Et=(qe=ze.prevButtonProps)==null?void 0:qe.children)!=null?Et:unref($)("el.tour.previous")),1)]}),_:1},16,["type"])):createCommentVNode("v-if",!0),unref(re)<=unref(ie)-1?(openBlock(),createBlock(unref(ElButton),mergeProps({key:1,size:"small",type:unref(le)==="primary"?"default":"primary"},Ne(ze.nextButtonProps),{onClick:$e}),{default:withCtx(()=>{var qe,Et;return[createTextVNode(toDisplayString((Et=(qe=ze.nextButtonProps)==null?void 0:qe.children)!=null?Et:unref(re)===unref(ie)-1?unref($)("el.tour.finish"):unref($)("el.tour.next")),1)]}),_:1},16,["type"])):createCommentVNode("v-if",!0)],2)],2)],64))}});var TourStep=_export_sfc(_sfc_main$G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tour/src/step.vue"]]);const ElTour=withInstall(Tour,{TourStep}),ElTourStep=withNoopInstall(TourStep),anchorProps=buildProps({container:{type:definePropType([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:definePropType(String),default:"default"},direction:{type:definePropType(String),default:"vertical"},selectScrollTop:Boolean}),anchorEmits={change:n=>isString$2(n),click:(n,t)=>n instanceof MouseEvent&&(isString$2(t)||isUndefined$1(t))},anchorKey=Symbol("anchor"),getElement=n=>{if(!isClient||n==="")return null;if(isString$2(n))try{return document.querySelector(n)}catch{return null}return n};function throttleByRaf(n){let t=0;const r=(...i)=>{t&&cAF(t),t=rAF(()=>{n(...i),t=0})};return r.cancel=()=>{cAF(t),t=0},r}const _sfc_main$F=defineComponent({name:"ElAnchor",__name:"anchor",props:anchorProps,emits:anchorEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useSlots(),V=ref(""),re=ref({}),ie=ref(null),ae=ref(null),oe=ref(),le={};let ue=!1,de=0;const he=useNamespace("anchor"),pe=computed(()=>[he.b(),i.type==="underline"?he.m("underline"):"",he.m(i.direction)]),_e=qe=>{le[qe.href]=qe.el},Ce=qe=>{delete le[qe]},xe=qe=>{V.value!==qe&&(V.value=qe,g(CHANGE_EVENT,qe))};let Ie=null,Ne="";const Oe=qe=>{if(!oe.value)return;const Et=getElement(qe);if(!Et)return;if(Ie){if(Ne===qe)return;Ie()}Ne=qe,ue=!0;const kt=getScrollElement(Et,oe.value),At=getOffsetTopDistance(Et,kt),Dt=kt.scrollHeight-kt.clientHeight,Lt=Math.min(At-i.offset,Dt);Ie=animateScrollTo(oe.value,de,Lt,i.duration,()=>{setTimeout(()=>{ue=!1,Ne=""},20)})},$e=qe=>{qe&&(xe(qe),Oe(qe))},Ve=(qe,Et)=>{g("click",qe,Et),$e(Et)},Ue=throttleByRaf(()=>{oe.value&&(de=getScrollTop(oe.value));const qe=Fe();ue||isUndefined$1(qe)||xe(qe)}),Fe=()=>{if(!oe.value)return;const qe=getScrollTop(oe.value),Et=[];for(const kt of Object.keys(le)){const At=getElement(kt);if(!At)continue;const Dt=getScrollElement(At,oe.value),Lt=getOffsetTopDistance(At,Dt);Et.push({top:Lt-i.offset-i.bound,href:kt})}Et.sort((kt,At)=>kt.top-At.top);for(let kt=0;ktqe))return At.href}},ze=()=>{const qe=getElement(i.container);!qe||isWindow(qe)?oe.value=window:oe.value=qe};useEventListener(oe,"scroll",Ue);const Pt=()=>{nextTick(()=>{if(!ie.value||!ae.value||!V.value){re.value={};return}const qe=le[V.value];if(!qe){re.value={};return}const Et=ie.value.getBoundingClientRect(),kt=ae.value.getBoundingClientRect(),At=qe.getBoundingClientRect();if(i.direction==="horizontal"){const Dt=At.left-Et.left;re.value={left:`${Dt}px`,width:`${At.width}px`,opacity:1}}else{const Dt=At.top-Et.top+(At.height-kt.height)/2;re.value={top:`${Dt}px`,opacity:1}}})};return watch(V,Pt),watch(()=>{var qe;return(qe=$.default)==null?void 0:qe.call($)},Pt),onMounted(()=>{ze();const qe=decodeURIComponent(window.location.hash);getElement(qe)?$e(qe):Ue()}),watch(()=>i.container,()=>{ze()}),provide(anchorKey,{ns:he,direction:i.direction,currentAnchor:V,addLink:_e,removeLink:Ce,handleClick:Ve}),t({scrollTo:$e}),(qe,Et)=>(openBlock(),createElementBlock("div",{ref_key:"anchorRef",ref:ie,class:normalizeClass(pe.value)},[qe.marker?(openBlock(),createElementBlock("div",{key:0,ref_key:"markerRef",ref:ae,class:normalizeClass(unref(he).e("marker")),style:normalizeStyle$1(re.value)},null,6)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(he).e("list"))},[renderSlot(qe.$slots,"default")],2)],2))}});var Anchor=_export_sfc(_sfc_main$F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor.vue"]]);const anchorLinkProps=buildProps({title:String,href:String}),_hoisted_1$u=["href"],_sfc_main$E=defineComponent({name:"ElAnchorLink",__name:"anchor-link",props:anchorLinkProps,setup(n){const t=n,r=ref(null),{ns:i,direction:g,currentAnchor:$,addLink:V,removeLink:re,handleClick:ie}=inject(anchorKey),ae=computed(()=>[i.e("link"),i.is("active",$.value===t.href)]),oe=le=>{ie(le,t.href)};return watch(()=>t.href,(le,ue)=>{nextTick(()=>{ue&&re(ue),le&&V({href:le,el:r.value})})}),onMounted(()=>{const{href:le}=t;le&&V({href:le,el:r.value})}),onBeforeUnmount(()=>{const{href:le}=t;le&&re(le)}),(le,ue)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(i).e("item"))},[createBaseVNode("a",{ref_key:"linkRef",ref:r,class:normalizeClass(ae.value),href:le.href,onClick:oe},[renderSlot(le.$slots,"default",{},()=>[createTextVNode(toDisplayString(le.title),1)])],10,_hoisted_1$u),le.$slots["sub-link"]&&unref(g)==="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i).e("list"))},[renderSlot(le.$slots,"sub-link")],2)):createCommentVNode("v-if",!0)],2))}});var AnchorLink=_export_sfc(_sfc_main$E,[["__file","/home/runner/work/element-plus/element-plus/packages/components/anchor/src/anchor-link.vue"]]);const ElAnchor=withInstall(Anchor,{AnchorLink}),ElAnchorLink=withNoopInstall(AnchorLink),defaultProps={label:"label",value:"value",disabled:"disabled"},segmentedProps=buildProps({direction:{type:definePropType(String),default:"horizontal"},options:{type:definePropType(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:definePropType(Object),default:()=>defaultProps},block:Boolean,size:useSizeProp,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...useAriaProps(["ariaLabel"])}),segmentedEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n)||isNumber$2(n)||isBoolean$1(n),[CHANGE_EVENT]:n=>isString$2(n)||isNumber$2(n)||isBoolean$1(n)},_hoisted_1$t=["id","aria-label","aria-labelledby"],_hoisted_2$m=["name","disabled","checked","onChange"],_sfc_main$D=defineComponent({name:"ElSegmented",__name:"segmented",props:segmentedProps,emits:segmentedEmits,setup(n,{emit:t}){const r=n,i=t,g=useNamespace("segmented"),$=useId(),V=useFormSize(),re=useFormDisabled(),{formItem:ie}=useFormItem(),{inputId:ae,isLabeledByFormItem:oe}=useFormItemInputId(r,{formItemContext:ie}),le=ref(null),ue=useActiveElement(),de=reactive({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),he=(qe,Et)=>{const kt=Ce(Et);i(UPDATE_MODEL_EVENT,kt),i(CHANGE_EVENT,kt),qe.target.checked=kt===r.modelValue},pe=computed(()=>({...defaultProps,...r.props})),_e=qe=>qe,Ce=qe=>isObject$6(qe)?qe[pe.value.value]:qe,xe=qe=>isObject$6(qe)?qe[pe.value.label]:qe,Ie=qe=>!!(re.value||isObject$6(qe)&&qe[pe.value.disabled]),Ne=qe=>r.modelValue===Ce(qe),Oe=qe=>r.options.find(Et=>Ce(Et)===qe),$e=qe=>[g.e("item"),g.is("selected",Ne(qe)),g.is("disabled",Ie(qe))],Ve=()=>{if(!le.value)return;const qe=le.value.querySelector(".is-selected"),Et=le.value.querySelector(".is-selected input");if(!qe||!Et){de.width=0,de.height=0,de.translateX=0,de.translateY=0,de.focusVisible=!1;return}de.isInit=!0,r.direction==="vertical"?(de.height=qe.offsetHeight,de.translateY=qe.offsetTop):(de.width=qe.offsetWidth,de.translateX=qe.offsetLeft);try{de.focusVisible=Et.matches(":focus-visible")}catch{}},Ue=computed(()=>[g.b(),g.m(V.value),g.is("block",r.block)]),Fe=computed(()=>({width:r.direction==="vertical"?"100%":`${de.width}px`,height:r.direction==="vertical"?`${de.height}px`:"100%",transform:r.direction==="vertical"?`translateY(${de.translateY}px)`:`translateX(${de.translateX}px)`,display:de.isInit?"block":"none"})),ze=computed(()=>[g.e("item-selected"),g.is("disabled",Ie(Oe(r.modelValue))),g.is("focus-visible",de.focusVisible)]),Pt=computed(()=>r.name||$.value);return useResizeObserver(le,Ve),watch(ue,Ve),watch(()=>r.modelValue,()=>{var qe;Ve(),r.validateEvent&&((qe=ie==null?void 0:ie.validate)==null||qe.call(ie,"change").catch(Et=>void 0))},{flush:"post"}),(qe,Et)=>qe.options.length?(openBlock(),createElementBlock("div",{key:0,id:unref(ae),ref_key:"segmentedRef",ref:le,class:normalizeClass(Ue.value),role:"radiogroup","aria-label":unref(oe)?void 0:qe.ariaLabel||"segmented","aria-labelledby":unref(oe)?unref(ie).labelId:void 0},[createBaseVNode("div",{class:normalizeClass([unref(g).e("group"),unref(g).m(qe.direction)])},[createBaseVNode("div",{style:normalizeStyle$1(Fe.value),class:normalizeClass(ze.value)},null,6),(openBlock(!0),createElementBlock(Fragment,null,renderList(qe.options,(kt,At)=>(openBlock(),createElementBlock("label",{key:At,class:normalizeClass($e(kt))},[createBaseVNode("input",{class:normalizeClass(unref(g).e("item-input")),type:"radio",name:Pt.value,disabled:Ie(kt),checked:Ne(kt),onChange:Dt=>he(Dt,kt)},null,42,_hoisted_2$m),createBaseVNode("div",{class:normalizeClass(unref(g).e("item-label"))},[renderSlot(qe.$slots,"default",{item:_e(kt)},()=>[createTextVNode(toDisplayString(xe(kt)),1)])],2)],2))),128))],2)],10,_hoisted_1$t)):createCommentVNode("v-if",!0)}});var Segmented=_export_sfc(_sfc_main$D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/segmented/src/segmented.vue"]]);const ElSegmented=withInstall(Segmented),filterOption=(n,t)=>{const r=n.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(r)},getMentionCtx=(n,t,r)=>{const{selectionEnd:i}=n;if(i===null)return;const g=n.value,$=castArray$1(t);let V=-1,re;for(let ie=i-1;ie>=0;--ie){const ae=g[ie];if(ae===r||ae===`
-`||ae==="\r"){V=ie;continue}if($.includes(ae)){const oe=V===-1?i:V;re={pattern:g.slice(ie+1,oe),start:ie+1,end:oe,prefix:ae,prefixIndex:ie,splitIndex:V,selectionEnd:i};break}}return re},getCursorPosition=(n,t={debug:!1,useSelectionEnd:!1})=>{const r=n.selectionStart!==null?n.selectionStart:0,i=n.selectionEnd!==null?n.selectionEnd:0,g=t.useSelectionEnd?i:r,$=["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 ue=document.querySelector("#input-textarea-caret-position-mirror-div");ue!=null&&ue.parentNode&&ue.parentNode.removeChild(ue)}const V=document.createElement("div");V.id="input-textarea-caret-position-mirror-div",document.body.appendChild(V);const re=V.style,ie=window.getComputedStyle(n),ae=n.nodeName==="INPUT";re.whiteSpace=ae?"nowrap":"pre-wrap",ae||(re.wordWrap="break-word"),re.position="absolute",t.debug||(re.visibility="hidden"),$.forEach(ue=>{if(ae&&ue==="lineHeight")if(ie.boxSizing==="border-box"){const de=Number.parseInt(ie.height),he=Number.parseInt(ie.paddingTop)+Number.parseInt(ie.paddingBottom)+Number.parseInt(ie.borderTopWidth)+Number.parseInt(ie.borderBottomWidth),pe=he+Number.parseInt(ie.lineHeight);de>pe?re.lineHeight=`${de-he}px`:de===pe?re.lineHeight=ie.lineHeight:re.lineHeight="0"}else re.lineHeight=ie.height;else re[ue]=ie[ue]}),isFirefox()?n.scrollHeight>Number.parseInt(ie.height)&&(re.overflowY="scroll"):re.overflow="hidden",V.textContent=n.value.slice(0,Math.max(0,g)),ae&&V.textContent&&(V.textContent=V.textContent.replace(/\s/g," "));const oe=document.createElement("span");oe.textContent=n.value.slice(Math.max(0,g))||".",oe.style.position="relative",oe.style.left=`${-n.scrollLeft}px`,oe.style.top=`${-n.scrollTop}px`,V.appendChild(oe);const le={top:oe.offsetTop+Number.parseInt(ie.borderTopWidth),left:oe.offsetLeft+Number.parseInt(ie.borderLeftWidth),height:Number.parseInt(ie.fontSize)*1.5};return t.debug?oe.style.backgroundColor="#aaa":document.body.removeChild(V),le.left>=n.clientWidth&&(le.left=n.clientWidth),le},mentionProps=buildProps({...inputProps,options:{type:definePropType(Array),default:()=>[]},prefix:{type:definePropType([String,Array]),default:"@",validator:n=>isString$2(n)?n.length===1:n.every(t=>isString$2(t)&&t.length===1)},split:{type:String,default:" ",validator:n=>n.length===1},filterOption:{type:definePropType([Boolean,Function]),default:()=>filterOption,validator:n=>n===!1?!0:isFunction$4(n)},placement:{type:definePropType(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:definePropType(Function)},modelValue:String,loading:Boolean,popperClass:useTooltipContentProps.popperClass,popperStyle:useTooltipContentProps.popperStyle,popperOptions:{type:definePropType(Object),default:()=>({})},props:{type:definePropType(Object),default:()=>mentionDefaultProps}}),mentionEmits={[UPDATE_MODEL_EVENT]:n=>isString$2(n),"whole-remove":(n,t)=>isString$2(n)&&isString$2(t),input:n=>isString$2(n),search:(n,t)=>isString$2(n)&&isString$2(t),select:(n,t)=>isObject$6(n)&&isString$2(t),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent},mentionDefaultProps={value:"value",label:"label",disabled:"disabled"},mentionDropdownProps=buildProps({options:{type:definePropType(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),mentionDropdownEmits={select:n=>isString$2(n.value)},_hoisted_1$s=["id","aria-disabled","aria-selected","onMousemove","onClick"],_sfc_main$C=defineComponent({name:"ElMentionDropdown",__name:"mention-dropdown",props:mentionDropdownProps,emits:mentionDropdownEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=useNamespace("mention"),{t:V}=useLocale(),re=ref(-1),ie=ref(),ae=ref(),oe=ref(),le=(Ne,Oe)=>[$.be("dropdown","item"),$.is("hovering",re.value===Oe),$.is("disabled",Ne.disabled||i.disabled)],ue=Ne=>{Ne.disabled||i.disabled||g("select",Ne)},de=Ne=>{re.value=Ne},he=computed(()=>i.disabled||i.options.every(Ne=>Ne.disabled)),pe=computed(()=>i.options[re.value]),_e=()=>{pe.value&&g("select",pe.value)},Ce=Ne=>{const{options:Oe}=i;if(Oe.length===0||he.value)return;Ne==="next"?(re.value++,re.value===Oe.length&&(re.value=0)):Ne==="prev"&&(re.value--,re.value<0&&(re.value=Oe.length-1));const $e=Oe[re.value];if($e.disabled){Ce(Ne);return}nextTick(()=>xe($e))},xe=Ne=>{var Oe,$e,Ve,Ue;const{options:Fe}=i,ze=Fe.findIndex(qe=>qe.value===Ne.value),Pt=(Oe=ae.value)==null?void 0:Oe[ze];if(Pt){const qe=(Ve=($e=oe.value)==null?void 0:$e.querySelector)==null?void 0:Ve.call($e,`.${$.be("dropdown","wrap")}`);qe&&scrollIntoView(qe,Pt)}(Ue=ie.value)==null||Ue.handleScroll()};return watch(()=>i.options,()=>{he.value||i.options.length===0?re.value=-1:re.value=0},{immediate:!0}),t({hoveringIndex:re,navigateOptions:Ce,selectHoverOption:_e,hoverOption:pe}),(Ne,Oe)=>(openBlock(),createElementBlock("div",{ref_key:"dropdownRef",ref:oe,class:normalizeClass(unref($).b("dropdown"))},[Ne.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).be("dropdown","header"))},[renderSlot(Ne.$slots,"header")],2)):createCommentVNode("v-if",!0),withDirectives(createVNode$1(unref(ElScrollbar),{id:Ne.contentId,ref_key:"scrollbarRef",ref:ie,tag:"ul","wrap-class":unref($).be("dropdown","wrap"),"view-class":unref($).be("dropdown","list"),role:"listbox","aria-label":Ne.ariaLabel,"aria-orientation":"vertical"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ne.options,($e,Ve)=>(openBlock(),createElementBlock("li",{id:`${Ne.contentId}-${Ve}`,ref_for:!0,ref_key:"optionRefs",ref:ae,key:Ve,class:normalizeClass(le($e,Ve)),role:"option","aria-disabled":$e.disabled||Ne.disabled||void 0,"aria-selected":re.value===Ve,onMousemove:Ue=>de(Ve),onClick:withModifiers(Ue=>ue($e),["stop"])},[renderSlot(Ne.$slots,"label",{item:$e,index:Ve},()=>{var Ue;return[createBaseVNode("span",null,toDisplayString((Ue=$e.label)!=null?Ue:$e.value),1)]})],42,_hoisted_1$s))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[vShow,Ne.options.length>0&&!Ne.loading]]),Ne.loading?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref($).be("dropdown","loading"))},[renderSlot(Ne.$slots,"loading",{},()=>[createTextVNode(toDisplayString(unref(V)("el.mention.loading")),1)])],2)):createCommentVNode("v-if",!0),Ne.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref($).be("dropdown","footer"))},[renderSlot(Ne.$slots,"footer")],2)):createCommentVNode("v-if",!0)],2))}});var ElMentionDropdown=_export_sfc(_sfc_main$C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/mention/src/mention-dropdown.vue"]]);const _sfc_main$B=defineComponent({name:"ElMention",inheritAttrs:!1,__name:"mention",props:mentionProps,emits:mentionEmits,setup(n,{expose:t,emit:r}){const i=n,g=r,$=computed(()=>pick$1(i,Object.keys(inputProps))),V=useNamespace("mention"),re=useFormDisabled(),ie=useId(),ae=ref(),oe=ref(),le=ref(),ue=ref(!1),de=ref(),he=ref(),pe=computed(()=>i.showArrow?i.placement:`${i.placement}-start`),_e=computed(()=>i.showArrow?["bottom","top"]:["bottom-start","top-start"]),Ce=computed(()=>({...mentionDefaultProps,...i.props})),xe=Lt=>{const jt={label:Lt[Ce.value.label],value:Lt[Ce.value.value],disabled:Lt[Ce.value.disabled]};return{...Lt,...jt}},Ie=computed(()=>i.options.map(xe)),Ne=computed(()=>{const{filterOption:Lt}=i;return!he.value||!Lt?Ie.value:Ie.value.filter(jt=>Lt(he.value.pattern,jt))}),Oe=computed(()=>ue.value&&(!!Ne.value.length||i.loading)),$e=computed(()=>{var Lt;return`${ie.value}-${(Lt=le.value)==null?void 0:Lt.hoveringIndex}`}),Ve=Lt=>{g(UPDATE_MODEL_EVENT,Lt),g(INPUT_EVENT,Lt),kt()},Ue=Lt=>{var jt,hn,vn,_n;if((jt=ae.value)!=null&&jt.isComposing)return;const wn=getEventCode(Lt);switch(wn){case EVENT_CODE.left:case EVENT_CODE.right:kt();break;case EVENT_CODE.up:case EVENT_CODE.down:if(!ue.value)return;Lt.preventDefault(),(hn=le.value)==null||hn.navigateOptions(wn===EVENT_CODE.up?"prev":"next");break;case EVENT_CODE.enter:case EVENT_CODE.numpadEnter:if(!ue.value){i.type!=="textarea"&&kt();return}Lt.preventDefault(),(vn=le.value)!=null&&vn.hoverOption?(_n=le.value)==null||_n.selectHoverOption():ue.value=!1;break;case EVENT_CODE.esc:if(!ue.value)return;Lt.preventDefault(),ue.value=!1;break;case EVENT_CODE.backspace:if(i.whole&&he.value){const{splitIndex:bn,selectionEnd:Cn,pattern:Sn,prefixIndex:Tn,prefix:En}=he.value,kn=Et();if(!kn)return;const $n=kn.value,An=Ie.value.find(Ln=>Ln.value===Sn);if((isFunction$4(i.checkIsWhole)?i.checkIsWhole(Sn,En):An)&&bn!==-1&&bn+1===Cn){Lt.preventDefault();const Ln=$n.slice(0,Tn)+$n.slice(bn+1);g(UPDATE_MODEL_EVENT,Ln),g(INPUT_EVENT,Ln),g("whole-remove",Sn,En);const Nn=Tn;nextTick(()=>{kn.selectionStart=Nn,kn.selectionEnd=Nn,Dt()})}}}},{wrapperRef:Fe}=useFocusController(ae,{disabled:re,afterFocus(){kt()},beforeBlur(Lt){var jt;return(jt=oe.value)==null?void 0:jt.isFocusInsideContent(Lt)},afterBlur(){ue.value=!1}}),ze=()=>{kt()},Pt=Lt=>i.options.find(jt=>Lt.value===jt[Ce.value.value]),qe=Lt=>{if(!he.value)return;const jt=Et();if(!jt)return;const hn=jt.value,{split:vn}=i,_n=hn.slice(he.value.end),wn=_n.startsWith(vn),bn=`${Lt.value}${wn?"":vn}`,Cn=hn.slice(0,he.value.start)+bn+_n;g(UPDATE_MODEL_EVENT,Cn),g(INPUT_EVENT,Cn),g("select",Pt(Lt),he.value.prefix);const Sn=he.value.start+bn.length+(wn?1:0);nextTick(()=>{jt.selectionStart=Sn,jt.selectionEnd=Sn,jt.focus(),Dt()})},Et=()=>{var Lt,jt;return i.type==="textarea"?(Lt=ae.value)==null?void 0:Lt.textarea:(jt=ae.value)==null?void 0:jt.input},kt=()=>{setTimeout(()=>{At(),Dt(),nextTick(()=>{var Lt;return(Lt=oe.value)==null?void 0:Lt.updatePopper()})},0)},At=()=>{const Lt=Et();if(!Lt)return;const jt=getCursorPosition(Lt),hn=Lt.getBoundingClientRect(),vn=Fe.value.getBoundingClientRect();de.value={position:"absolute",width:0,height:`${jt.height}px`,left:`${jt.left+hn.left-vn.left}px`,top:`${jt.top+hn.top-vn.top}px`}},Dt=()=>{const Lt=Et();if(document.activeElement!==Lt){ue.value=!1;return}const{prefix:jt,split:hn}=i;if(he.value=getMentionCtx(Lt,jt,hn),he.value&&he.value.splitIndex===-1){ue.value=!0,g("search",he.value.pattern,he.value.prefix);return}ue.value=!1};return t({input:ae,tooltip:oe,dropdownVisible:Oe}),(Lt,jt)=>(openBlock(),createElementBlock("div",{ref_key:"wrapperRef",ref:Fe,class:normalizeClass(unref(V).b())},[createVNode$1(unref(ElInput),mergeProps(mergeProps($.value,Lt.$attrs),{ref_key:"elInputRef",ref:ae,"model-value":Lt.modelValue,disabled:unref(re),role:Oe.value?"combobox":void 0,"aria-activedescendant":Oe.value?$e.value||"":void 0,"aria-controls":Oe.value?unref(ie):void 0,"aria-expanded":Oe.value||void 0,"aria-label":Lt.ariaLabel,"aria-autocomplete":Oe.value?"none":void 0,"aria-haspopup":Oe.value?"listbox":void 0,onInput:Ve,onKeydown:Ue,onMousedown:ze}),createSlots({_:2},[renderList(Lt.$slots,(hn,vn)=>({name:vn,fn:withCtx(_n=>[renderSlot(Lt.$slots,vn,normalizeProps(guardReactiveProps(_n)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),createVNode$1(unref(ElTooltip),{ref_key:"tooltipRef",ref:oe,visible:Oe.value,"popper-class":[unref(V).e("popper"),Lt.popperClass],"popper-style":Lt.popperStyle,"popper-options":Lt.popperOptions,placement:pe.value,"fallback-placements":_e.value,effect:"light",pure:"",offset:Lt.offset,"show-arrow":Lt.showArrow},{default:withCtx(()=>[createBaseVNode("div",{style:normalizeStyle$1(de.value)},null,4)]),content:withCtx(()=>[createVNode$1(ElMentionDropdown,{ref_key:"dropdownRef",ref:le,options:Ne.value,disabled:unref(re),loading:Lt.loading,"content-id":unref(ie),"aria-label":Lt.ariaLabel,onSelect:qe,onClick:jt[0]||(jt[0]=withModifiers(hn=>{var vn;return(vn=ae.value)==null?void 0:vn.focus()},["stop"]))},createSlots({_:2},[renderList(Lt.$slots,(hn,vn)=>({name:vn,fn:withCtx(_n=>[renderSlot(Lt.$slots,vn,normalizeProps(guardReactiveProps(_n)))])}))]),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 Mention=_export_sfc(_sfc_main$B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/mention/src/mention.vue"]]);const ElMention=withInstall(Mention),splitterProps=buildProps({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),splitterEmits={resizeStart:(n,t)=>!0,resize:(n,t)=>!0,resizeEnd:(n,t)=>!0,collapse:(n,t,r)=>!0},splitterRootContextKey=Symbol("splitterRootContextKey");function useContainer(n){const t=ref(),{width:r,height:i}=useElementSize(t),g=computed(()=>n.value==="horizontal"?r.value:i.value);return{containerEl:t,containerSize:g}}function getPct(n){return Number(n.slice(0,-1))/100}function getPx(n){return Number(n.slice(0,-2))}function isPct(n){return isString$2(n)&&n.endsWith("%")}function isPx(n){return isString$2(n)&&n.endsWith("px")}function useSize(n,t){const r=computed(()=>n.value.map(re=>re.size)),i=computed(()=>n.value.length),g=ref([]);watch([r,i,t],()=>{var re;let ie=[],ae=0;for(let le=0;lele+(ue||0),0);if(oe>1||!ae){const le=1/oe;ie=ie.map(ue=>ue===void 0?0:ue*le)}else{const le=(1-oe)/ae;ie=ie.map(ue=>ue===void 0?le:ue)}g.value=ie});const $=re=>re*t.value,V=computed(()=>g.value.map($));return{percentSizes:g,pxSizes:V}}function useResize(n,t,r,i){const g=_e=>_e*t.value||0;function $(_e,Ce){return isPct(_e)?g(getPct(_e)):isPx(_e)?getPx(_e):_e??Ce}const V=ref(0),re=ref(null);let ie=[],ae=NOOP;const oe=computed(()=>n.value.map(_e=>[_e.min,_e.max]));watch(i,()=>{if(V.value){const _e=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(_e)}});const le=_e=>{V.value=0,re.value={index:_e,confirmed:!1},ie=r.value},ue=(_e,Ce)=>{var xe,Ie;let Ne=null;if((!re.value||!re.value.confirmed)&&Ce!==0){if(Ce>0)Ne=_e,re.value={index:_e,confirmed:!0};else for(let Et=_e;Et>=0;Et-=1)if(ie[Et]>0){Ne=Et,re.value={index:Et,confirmed:!0};break}}const Oe=(Ie=Ne??((xe=re.value)==null?void 0:xe.index))!=null?Ie:_e,$e=[...ie],Ve=Oe+1,Ue=$(oe.value[Oe][0],0),Fe=$(oe.value[Ve][0],0),ze=$(oe.value[Oe][1],t.value||0),Pt=$(oe.value[Ve][1],t.value||0);let qe=Ce;$e[Oe]+qeze&&(qe=ze-$e[Oe]),$e[Ve]-qe>Pt&&(qe=$e[Ve]-Pt),$e[Oe]+=qe,$e[Ve]-=qe,V.value=qe,ae=()=>{n.value.forEach((Et,kt)=>{Et.size=$e[kt]}),ae=NOOP},i.value||ae()},de=()=>{i.value&&ae(),V.value=0,re.value=null,ie=[]},he=[];return{lazyOffset:V,onMoveStart:le,onMoving:ue,onMoveEnd:de,movingIndex:re,onCollapse:(_e,Ce)=>{he.length||he.push(...r.value);const xe=r.value,Ie=Ce==="start"?_e:_e+1,Ne=Ce==="start"?_e+1:_e,Oe=xe[Ie],$e=xe[Ne];if(Oe!==0&&$e!==0)xe[Ie]=0,xe[Ne]+=Oe,he[_e]=Oe;else{const Ve=Oe+$e,Ue=he[_e],Fe=Ve-Ue;xe[Ne]=Ue,xe[Ie]=Fe}n.value.forEach((Ve,Ue)=>{Ve.size=xe[Ue]})}}}const _sfc_main$A=defineComponent({name:"ElSplitter",__name:"splitter",props:splitterProps,emits:splitterEmits,setup(n,{emit:t}){const r=useNamespace("splitter"),i=t,g=n,$=toRef$1(g,"layout"),V=toRef$1(g,"lazy"),{containerEl:re,containerSize:ie}=useContainer($),{removeChild:ae,children:oe,addChild:le,ChildrenSorter:ue}=useOrderedChildren(getCurrentInstance(),"ElSplitterPanel");watch(oe,()=>{_e.value=null,oe.value.forEach((ze,Pt)=>{ze.setIndex(Pt)})});const{percentSizes:de,pxSizes:he}=useSize(oe,ie),{lazyOffset:pe,movingIndex:_e,onMoveStart:Ce,onMoving:xe,onMoveEnd:Ie,onCollapse:Ne}=useResize(oe,ie,he,V),Oe=computed(()=>({[r.cssVarBlockName("bar-offset")]:V.value?`${pe.value}px`:void 0}));return provide(splitterRootContextKey,reactive({panels:oe,percentSizes:de,pxSizes:he,layout:$,lazy:V,movingIndex:_e,containerSize:ie,onMoveStart:ze=>{Ce(ze),i("resizeStart",ze,he.value)},onMoving:(ze,Pt)=>{xe(ze,Pt),V.value||i("resize",ze,he.value)},onMoveEnd:async ze=>{Ie(),await nextTick(),i("resizeEnd",ze,he.value)},onCollapse:(ze,Pt)=>{Ne(ze,Pt),i("collapse",ze,Pt,he.value)},registerPanel:le,unregisterPanel:ae})),(ze,Pt)=>(openBlock(),createElementBlock("div",{ref_key:"containerEl",ref:re,class:normalizeClass([unref(r).b(),unref(r).e($.value)]),style:normalizeStyle$1(Oe.value)},[renderSlot(ze.$slots,"default"),createVNode$1(unref(ue)),createCommentVNode(" Prevent iframe touch events from breaking "),unref(_e)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(r).e("mask"),unref(r).e(`mask-${$.value}`)])},null,2)):createCommentVNode("v-if",!0)],6))}});var Splitter=_export_sfc(_sfc_main$A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/splitter.vue"]]);function getCollapsible(n){return n&&isObject$6(n)?n:{start:!!n,end:!!n}}function isCollapsible(n,t,r,i){return!!(n!=null&&n.collapsible.end&&t>0||r!=null&&r.collapsible.start&&i===0&&t>0)}const _sfc_main$z=defineComponent({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(n,{emit:t}){const r=useNamespace("splitter-bar"),i=n,g=t,$=computed(()=>i.layout==="horizontal"),V=computed(()=>$.value?{width:0}:{height:0}),re=computed(()=>({width:$.value?"16px":"100%",height:$.value?"100%":"16px",cursor:i.resizable?$.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),ie=computed(()=>{const xe=r.e("dragger");return{[`${xe}-horizontal`]:$.value,[`${xe}-vertical`]:!$.value,[`${xe}-active`]:!!ae.value}}),ae=ref(null),oe=xe=>{i.resizable&&(ae.value=[xe.pageX,xe.pageY],g("moveStart",i.index),window.addEventListener("mouseup",he),window.addEventListener("mousemove",ue))},le=xe=>{if(i.resizable&&xe.touches.length===1){xe.preventDefault();const Ie=xe.touches[0];ae.value=[Ie.pageX,Ie.pageY],g("moveStart",i.index),window.addEventListener("touchend",pe),window.addEventListener("touchmove",de)}},ue=xe=>{const{pageX:Ie,pageY:Ne}=xe,Oe=Ie-ae.value[0],$e=Ne-ae.value[1],Ve=$.value?Oe:$e;g("moving",i.index,Ve)},de=xe=>{if(xe.touches.length===1){xe.preventDefault();const Ie=xe.touches[0],Ne=Ie.pageX-ae.value[0],Oe=Ie.pageY-ae.value[1],$e=$.value?Ne:Oe;g("moving",i.index,$e)}},he=()=>{ae.value=null,window.removeEventListener("mouseup",he),window.removeEventListener("mousemove",ue),g("moveEnd",i.index)},pe=()=>{ae.value=null,window.removeEventListener("touchend",pe),window.removeEventListener("touchmove",de),g("moveEnd",i.index)},_e=computed(()=>$.value?arrow_left_default:arrow_up_default),Ce=computed(()=>$.value?arrow_right_default:arrow_down_default);return(xe,Ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).b()]),style:normalizeStyle$1(V.value)},[n.startCollapsible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(r).e("collapse-icon"),unref(r).e(`${n.layout}-collapse-icon-start`)]),onClick:Ie[0]||(Ie[0]=Ne=>g("collapse",n.index,"start"))},[renderSlot(xe.$slots,"start-collapsible",{},()=>[(openBlock(),createBlock(resolveDynamicComponent(_e.value),{style:{width:"12px",height:"12px"}}))])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([unref(r).e("dragger"),ie.value,unref(r).is("disabled",!n.resizable),unref(r).is("lazy",n.resizable&&n.lazy)]),style:normalizeStyle$1(re.value),onMousedown:oe,onTouchstart:le},null,38),n.endCollapsible?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(r).e("collapse-icon"),unref(r).e(`${n.layout}-collapse-icon-end`)]),onClick:Ie[1]||(Ie[1]=Ne=>g("collapse",n.index,"end"))},[renderSlot(xe.$slots,"end-collapsible",{},()=>[(openBlock(),createBlock(resolveDynamicComponent(Ce.value),{style:{width:"12px",height:"12px"}}))])],2)):createCommentVNode("v-if",!0)],6))}});var SplitBar=_export_sfc(_sfc_main$z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-bar.vue"]]);const splitterPanelProps=buildProps({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),splitterPanelEmits={"update:size":n=>typeof n=="number"||typeof n=="string"},COMPONENT_NAME="ElSplitterPanel",_sfc_main$y=defineComponent({name:COMPONENT_NAME,__name:"split-panel",props:splitterPanelProps,emits:splitterPanelEmits,setup(n,{expose:t,emit:r}){const i=useNamespace("splitter-panel"),g=n,$=r,V=inject(splitterRootContextKey);V||throwError$1(COMPONENT_NAME,"usage: ");const{panels:re,layout:ie,lazy:ae,containerSize:oe,pxSizes:le}=toRefs(V),{registerPanel:ue,unregisterPanel:de,onCollapse:he,onMoveEnd:pe,onMoveStart:_e,onMoving:Ce}=V,xe=ref(),Ie=getCurrentInstance(),Ne=Ie.uid,Oe=ref(0),$e=computed(()=>re.value[Oe.value]),Ve=jt=>{Oe.value=jt},Ue=computed(()=>{var jt;return $e.value&&(jt=le.value[Oe.value])!=null?jt:0}),Fe=computed(()=>{var jt;return $e.value&&(jt=le.value[Oe.value+1])!=null?jt:0}),ze=computed(()=>$e.value?re.value[Oe.value+1]:null),Pt=computed(()=>{var jt;return ze.value?g.resizable&&((jt=ze.value)==null?void 0:jt.resizable)&&(Ue.value!==0||!g.min)&&(Fe.value!==0||!ze.value.min):!1}),qe=computed(()=>$e.value?Oe.value!==re.value.length-1:!1),Et=computed(()=>isCollapsible($e.value,Ue.value,ze.value,Fe.value)),kt=computed(()=>isCollapsible(ze.value,Fe.value,$e.value,Ue.value));function At(jt){return isPct(jt)?getPct(jt)*oe.value||0:isPx(jt)?getPx(jt):jt??0}let Dt=!1;watch(()=>g.size,()=>{if(!Dt&&$e.value){if(!oe.value){$e.value.size=g.size;return}const jt=At(g.size),hn=At(g.max),vn=At(g.min),_n=Math.min(Math.max(jt,vn||0),hn||jt);_n!==jt&&$("update:size",_n),$e.value.size=_n}}),watch(()=>{var jt;return(jt=$e.value)==null?void 0:jt.size},jt=>{jt!==g.size&&(Dt=!0,$("update:size",jt),nextTick(()=>Dt=!1))}),watch(()=>g.resizable,jt=>{$e.value&&($e.value.resizable=jt)});const Lt=reactive({el:xe.value,uid:Ne,getVnode:()=>Ie.vnode,setIndex:Ve,...g,collapsible:computed(()=>getCollapsible(g.collapsible))});return ue(Lt),onBeforeUnmount(()=>de(Lt)),t({splitterPanelRef:xe}),(jt,hn)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",mergeProps({ref_key:"panelEl",ref:xe,class:[unref(i).b()],style:{flexBasis:`${Ue.value}px`}},jt.$attrs),[renderSlot(jt.$slots,"default")],16),qe.value?(openBlock(),createBlock(SplitBar,{key:0,index:Oe.value,layout:unref(ie),lazy:unref(ae),resizable:Pt.value,"start-collapsible":Et.value,"end-collapsible":kt.value,onMoveStart:unref(_e),onMoving:unref(Ce),onMoveEnd:unref(pe),onCollapse:unref(he)},{"start-collapsible":withCtx(()=>[renderSlot(jt.$slots,"start-collapsible")]),"end-collapsible":withCtx(()=>[renderSlot(jt.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):createCommentVNode("v-if",!0)],64))}});var SplitPanel=_export_sfc(_sfc_main$y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/splitter/src/split-panel.vue"]]);const ElSplitter=withInstall(Splitter,{SplitPanel}),ElSplitterPanel=withNoopInstall(SplitPanel);var Components=[ElAffix,ElAlert,ElAutocomplete,ElAutoResizer,ElAvatar,ElAvatarGroup,ElBacktop,ElBadge,ElBreadcrumb,ElBreadcrumbItem,ElButton,ElButtonGroup$1,ElCalendar,ElCard,ElCarousel,ElCarouselItem,ElCascader,ElCascaderPanel,ElCheckTag,ElCheckbox,ElCheckboxButton,ElCheckboxGroup,ElCol,ElCollapse,ElCollapseItem,ElCollapseTransition,ElColorPickerPanel,ElColorPicker,ElConfigProvider,ElContainer,ElAside,ElFooter,ElHeader,ElMain,ElDatePicker,ElDatePickerPanel,ElDescriptions,ElDescriptionsItem,ElDialog,ElDivider,ElDrawer,ElDropdown,ElDropdownItem,ElDropdownMenu,ElEmpty,ElForm,ElFormItem,ElIcon,ElImage,ElImageViewer,ElInput,ElInputNumber,ElInputTag,ElLink,ElMenu,ElMenuItem,ElMenuItemGroup,ElSubMenu,ElPageHeader,ElPagination,ElPopconfirm,ElPopover,ElPopper,ElProgress,ElRadio,ElRadioButton,ElRadioGroup,ElRate,ElResult,ElRow,ElScrollbar,ElSelect,ElOption,ElOptionGroup,ElSelectV2,ElSkeleton,ElSkeletonItem,ElSlider,ElSpace,ElStatistic,ElCountdown,ElSteps,ElStep,ElSwitch,ElTable,ElTableColumn,ElTableV2,ElTabs,ElTabPane,ElTag,ElText,ElTimePicker,ElTimeSelect,ElTimeline,ElTimelineItem,ElTooltip,ElTransfer,ElTree,ElTreeSelect,ElTreeV2,ElUpload,ElWatermark,ElTour,ElTourStep,ElAnchor,ElAnchorLink,ElSegmented,ElMention,ElSplitter,ElSplitterPanel];const SCOPE="ElInfiniteScroll",CHECK_INTERVAL=50,DEFAULT_DELAY=200,DEFAULT_DISTANCE=0,attributes={delay:{type:Number,default:DEFAULT_DELAY},distance:{type:Number,default:DEFAULT_DISTANCE},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},getScrollOptions=(n,t)=>Object.entries(attributes).reduce((r,[i,g])=>{var $,V;const{type:re,default:ie}=g,ae=n.getAttribute(`infinite-scroll-${i}`);let oe=(V=($=t[ae])!=null?$:ae)!=null?V:ie;return oe=oe==="false"?!1:oe,oe=re(oe),r[i]=Number.isNaN(oe)?ie:oe,r},{}),destroyObserver=n=>{const{observer:t}=n[SCOPE];t&&(t.disconnect(),delete n[SCOPE].observer)},handleScroll$1=(n,t)=>{const{container:r,containerEl:i,instance:g,observer:$,lastScrollTop:V}=n[SCOPE],{disabled:re,distance:ie}=getScrollOptions(n,g),{clientHeight:ae,scrollHeight:oe,scrollTop:le}=i,ue=le-V;if(n[SCOPE].lastScrollTop=le,$||re||ue<0)return;let de=!1;if(r===n)de=oe-(ae+le)<=ie;else{const{clientTop:he,scrollHeight:pe}=n,_e=getOffsetTopDistance(n,i);de=le+ae>=_e+he+pe-ie}de&&t.call(g)};function checkFull(n,t){const{containerEl:r,instance:i}=n[SCOPE],{disabled:g}=getScrollOptions(n,i);g||r.clientHeight===0||(r.scrollHeight<=r.clientHeight?t.call(i):destroyObserver(n))}const InfiniteScroll={async mounted(n,t){const{instance:r,value:i}=t;useDeprecated({scope:SCOPE,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),isFunction$4(i)||throwError$1(SCOPE,"'v-infinite-scroll' binding value must be a function"),await nextTick();const{delay:g,immediate:$}=getScrollOptions(n,r),V=getScrollContainer(n,!0),re=V===window?document.documentElement:V,ie=throttle$3(handleScroll$1.bind(null,n,i),g);if(V){if(n[SCOPE]={instance:r,container:V,containerEl:re,delay:g,cb:i,onScroll:ie,lastScrollTop:re.scrollTop},$){const ae=new MutationObserver(throttle$3(checkFull.bind(null,n,i),CHECK_INTERVAL));n[SCOPE].observer=ae,ae.observe(n,{childList:!0,subtree:!0}),checkFull(n,i)}V.addEventListener("scroll",ie)}},unmounted(n){if(!n[SCOPE])return;const{container:t,onScroll:r}=n[SCOPE];t==null||t.removeEventListener("scroll",r),destroyObserver(n)},async updated(n){if(!n[SCOPE])await nextTick();else{const{containerEl:t,cb:r,observer:i}=n[SCOPE];t.clientHeight&&i&&checkFull(n,r)}}},_InfiniteScroll=InfiniteScroll;_InfiniteScroll.install=n=>{n.directive("InfiniteScroll",_InfiniteScroll)};const ElInfiniteScroll=_InfiniteScroll;function createLoadingComponent(n,t){let r;const i=ref(!1),g=reactive({...n,originalPosition:"",originalOverflow:"",visible:!1});function $(de){g.text=de}function V(){const de=g.parent,he=ue.ns;if(!de.vLoadingAddClassList){let pe=de.getAttribute("loading-number");pe=Number.parseInt(pe)-1,pe?de.setAttribute("loading-number",pe.toString()):(removeClass(de,he.bm("parent","relative")),de.removeAttribute("loading-number")),removeClass(de,he.bm("parent","hidden"))}re(),le.unmount()}function re(){var de,he;(he=(de=ue.$el)==null?void 0:de.parentNode)==null||he.removeChild(ue.$el)}function ie(){var de;n.beforeClose&&!n.beforeClose()||(i.value=!0,clearTimeout(r),r=setTimeout(ae,400),g.visible=!1,(de=n.closed)==null||de.call(n))}function ae(){if(!i.value)return;const de=g.parent;i.value=!1,de.vLoadingAddClassList=void 0,V()}const le=createApp(defineComponent({name:"ElLoading",setup(de,{expose:he}){const{ns:pe,zIndex:_e}=useGlobalComponentSettings("loading");return he({ns:pe,zIndex:_e}),()=>{const Ce=g.spinner||g.svg,xe=h$1("svg",{class:"circular",viewBox:g.svgViewBox?g.svgViewBox:"0 0 50 50",...Ce?{innerHTML:Ce}:{}},[h$1("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),Ie=g.text?h$1("p",{class:pe.b("text")},[g.text]):void 0;return h$1(Transition,{name:pe.b("fade"),onAfterLeave:ae},{default:withCtx(()=>[withDirectives(createVNode$1("div",{style:{backgroundColor:g.background||""},class:[pe.b("mask"),g.customClass,pe.is("fullscreen",g.fullscreen)]},[h$1("div",{class:pe.b("spinner")},[xe,Ie])]),[[vShow,g.visible]])])})}}}));Object.assign(le._context,t??{});const ue=le.mount(document.createElement("div"));return{...toRefs(g),setText:$,removeElLoadingChild:re,close:ie,handleAfterLeave:ae,vm:ue,get $el(){return ue.$el}}}let fullscreenInstance;const Loading=function(n={},t){if(!isClient)return;const r=resolveOptions(n);if(r.fullscreen&&fullscreenInstance)return fullscreenInstance;const i=createLoadingComponent({...r,closed:()=>{var $;($=r.closed)==null||$.call(r),r.fullscreen&&(fullscreenInstance=void 0)}},t??Loading._context);addStyle(r,r.parent,i),addClassList(r,r.parent,i),r.parent.vLoadingAddClassList=()=>addClassList(r,r.parent,i);let g=r.parent.getAttribute("loading-number");return g?g=`${Number.parseInt(g)+1}`:g="1",r.parent.setAttribute("loading-number",g),r.parent.appendChild(i.$el),nextTick(()=>i.visible.value=r.visible),r.fullscreen&&(fullscreenInstance=i),i},resolveOptions=n=>{var t,r,i,g;let $;return isString$2(n.target)?$=(t=document.querySelector(n.target))!=null?t:document.body:$=n.target||document.body,{parent:$===document.body||n.body?document.body:$,background:n.background||"",svg:n.svg||"",svgViewBox:n.svgViewBox||"",spinner:n.spinner||!1,text:n.text||"",fullscreen:$===document.body&&((r=n.fullscreen)!=null?r:!0),lock:(i=n.lock)!=null?i:!1,customClass:n.customClass||"",visible:(g=n.visible)!=null?g:!0,beforeClose:n.beforeClose,closed:n.closed,target:$}},addStyle=async(n,t,r)=>{const{nextZIndex:i}=r.vm.zIndex||r.vm._.exposed.zIndex,g={};if(n.fullscreen)r.originalPosition.value=getStyle$1(document.body,"position"),r.originalOverflow.value=getStyle$1(document.body,"overflow"),g.zIndex=i();else if(n.parent===document.body){r.originalPosition.value=getStyle$1(document.body,"position"),await nextTick();for(const $ of["top","left"]){const V=$==="top"?"scrollTop":"scrollLeft";g[$]=`${n.target.getBoundingClientRect()[$]+document.body[V]+document.documentElement[V]-Number.parseInt(getStyle$1(document.body,`margin-${$}`),10)}px`}for(const $ of["height","width"])g[$]=`${n.target.getBoundingClientRect()[$]}px`}else r.originalPosition.value=getStyle$1(t,"position");for(const[$,V]of Object.entries(g))r.$el.style[$]=V},addClassList=(n,t,r)=>{const i=r.vm.ns||r.vm._.exposed.ns;["absolute","fixed","sticky"].includes(r.originalPosition.value)?removeClass(t,i.bm("parent","relative")):addClass(t,i.bm("parent","relative")),n.fullscreen&&n.lock?addClass(t,i.bm("parent","hidden")):removeClass(t,i.bm("parent","hidden"))};Loading._context=null;const INSTANCE_KEY=Symbol("ElLoading"),getAttributeName=n=>`element-loading-${hyphenate(n)}`,createInstance$1=(n,t)=>{var r,i,g,$;const V=t.instance,re=de=>isObject$6(t.value)?t.value[de]:void 0,ie=de=>{const he=isString$2(de)&&(V==null?void 0:V[de])||de;return ref(he)},ae=de=>ie(re(de)||n.getAttribute(getAttributeName(de))),oe=(r=re("fullscreen"))!=null?r:t.modifiers.fullscreen,le={text:ae("text"),svg:ae("svg"),svgViewBox:ae("svgViewBox"),spinner:ae("spinner"),background:ae("background"),customClass:ae("customClass"),fullscreen:oe,target:(i=re("target"))!=null?i:oe?void 0:n,body:(g=re("body"))!=null?g:t.modifiers.body,lock:($=re("lock"))!=null?$:t.modifiers.lock},ue=Loading(le);ue._context=vLoading._context,n[INSTANCE_KEY]={options:le,instance:ue}},updateOptions=(n,t)=>{for(const r of Object.keys(n))isRef(n[r])&&(n[r].value=t[r])},vLoading={mounted(n,t){t.value&&createInstance$1(n,t)},updated(n,t){const r=n[INSTANCE_KEY];if(!t.value){r==null||r.instance.close(),n[INSTANCE_KEY]=null;return}r?updateOptions(r.options,isObject$6(t.value)?t.value:{text:n.getAttribute(getAttributeName("text")),svg:n.getAttribute(getAttributeName("svg")),svgViewBox:n.getAttribute(getAttributeName("svgViewBox")),spinner:n.getAttribute(getAttributeName("spinner")),background:n.getAttribute(getAttributeName("background")),customClass:n.getAttribute(getAttributeName("customClass"))}):createInstance$1(n,t)},unmounted(n){var t;(t=n[INSTANCE_KEY])==null||t.instance.close(),n[INSTANCE_KEY]=null}};vLoading._context=null;const ElLoading={install(n){Loading._context=n._context,vLoading._context=n._context,n.directive("loading",vLoading),n.config.globalProperties.$loading=Loading},directive:vLoading,service:Loading},messageTypes=["primary","success","info","warning","error"],messagePlacement=["top","top-left","top-right","bottom","bottom-left","bottom-right"],MESSAGE_DEFAULT_PLACEMENT="top",messageDefaults=mutable({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:isClient?document.body:void 0}),messageProps=buildProps({customClass:{type:String,default:messageDefaults.customClass},dangerouslyUseHTMLString:{type:Boolean,default:messageDefaults.dangerouslyUseHTMLString},duration:{type:Number,default:messageDefaults.duration},icon:{type:iconPropType,default:messageDefaults.icon},id:{type:String,default:messageDefaults.id},message:{type:definePropType([String,Object,Function]),default:messageDefaults.message},onClose:{type:definePropType(Function),default:messageDefaults.onClose},showClose:{type:Boolean,default:messageDefaults.showClose},type:{type:String,values:messageTypes,default:messageDefaults.type},plain:{type:Boolean,default:messageDefaults.plain},offset:{type:Number,default:messageDefaults.offset},placement:{type:String,values:messagePlacement,default:messageDefaults.placement},zIndex:{type:Number,default:messageDefaults.zIndex},grouping:{type:Boolean,default:messageDefaults.grouping},repeatNum:{type:Number,default:messageDefaults.repeatNum}}),messageEmits={destroy:()=>!0},placementInstances=shallowReactive({}),getOrCreatePlacementInstances=n=>(placementInstances[n]||(placementInstances[n]=shallowReactive([])),placementInstances[n]),getInstance=(n,t)=>{const r=placementInstances[t]||[],i=r.findIndex(V=>V.id===n),g=r[i];let $;return i>0&&($=r[i-1]),{current:g,prev:$}},getLastOffset=(n,t)=>{const{prev:r}=getInstance(n,t);return r?r.vm.exposed.bottom.value:0},getOffsetOrSpace=(n,t,r)=>(placementInstances[r]||[]).findIndex($=>$.id===n)>0?16:t,_hoisted_1$r=["id"],_hoisted_2$l=["innerHTML"],_sfc_main$x=defineComponent({name:"ElMessage",__name:"message",props:messageProps,emits:messageEmits,setup(n,{expose:t,emit:r}){const{Close:i}=TypeComponents,g=n,$=r,V=ref(!1),{ns:re,zIndex:ie}=useGlobalComponentSettings("message"),{currentZIndex:ae,nextZIndex:oe}=ie,le=ref(),ue=ref(!1),de=ref(0);let he;const pe=computed(()=>g.type?g.type==="error"?"danger":g.type:"info"),_e=computed(()=>{const Et=g.type;return{[re.bm("icon",Et)]:Et&&TypeComponentsMap[Et]}}),Ce=computed(()=>g.icon||TypeComponentsMap[g.type]||""),xe=computed(()=>g.placement||MESSAGE_DEFAULT_PLACEMENT),Ie=computed(()=>getLastOffset(g.id,xe.value)),Ne=computed(()=>getOffsetOrSpace(g.id,g.offset,xe.value)+Ie.value),Oe=computed(()=>de.value+Ne.value),$e=computed(()=>xe.value.includes("left")?re.is("left"):xe.value.includes("right")?re.is("right"):re.is("center")),Ve=computed(()=>xe.value.startsWith("top")?"top":"bottom"),Ue=computed(()=>({[Ve.value]:`${Ne.value}px`,zIndex:ae.value}));function Fe(){g.duration!==0&&({stop:he}=useTimeoutFn(()=>{Pt()},g.duration))}function ze(){he==null||he()}function Pt(){ue.value=!1,nextTick(()=>{var Et;V.value||((Et=g.onClose)==null||Et.call(g),$("destroy"))})}function qe(Et){getEventCode(Et)===EVENT_CODE.esc&&Pt()}return onMounted(()=>{Fe(),oe(),ue.value=!0}),watch(()=>g.repeatNum,()=>{ze(),Fe()}),useEventListener(document,"keydown",qe),useResizeObserver(le,()=>{de.value=le.value.getBoundingClientRect().height}),t({visible:ue,bottom:Oe,close:Pt}),(Et,kt)=>(openBlock(),createBlock(Transition,{name:unref(re).b("fade"),onBeforeEnter:kt[0]||(kt[0]=At=>V.value=!0),onBeforeLeave:Et.onClose,onAfterLeave:kt[1]||(kt[1]=At=>Et.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:Et.id,ref_key:"messageRef",ref:le,class:normalizeClass([unref(re).b(),{[unref(re).m(Et.type)]:Et.type},unref(re).is("closable",Et.showClose),unref(re).is("plain",Et.plain),unref(re).is("bottom",Ve.value==="bottom"),$e.value,Et.customClass]),style:normalizeStyle$1(Ue.value),role:"alert",onMouseenter:ze,onMouseleave:Fe},[Et.repeatNum>1?(openBlock(),createBlock(unref(ElBadge),{key:0,value:Et.repeatNum,type:pe.value,class:normalizeClass(unref(re).e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",!0),Ce.value?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(re).e("icon"),_e.value])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ce.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),renderSlot(Et.$slots,"default",{},()=>[Et.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{class:normalizeClass(unref(re).e("content")),innerHTML:Et.message},null,10,_hoisted_2$l)],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(re).e("content"))},toDisplayString(Et.message),3))]),Et.showClose?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(re).e("closeBtn")),onClick:withModifiers(Pt,["stop"])},{default:withCtx(()=>[createVNode$1(unref(i))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],46,_hoisted_1$r),[[vShow,ue.value]])]),_:3},8,["name","onBeforeLeave"]))}});var MessageConstructor=_export_sfc(_sfc_main$x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let seed$1=1;const normalizeAppendTo=n=>{if(!n.appendTo)n.appendTo=document.body;else if(isString$2(n.appendTo)){let r=document.querySelector(n.appendTo);isElement$1(r)||(r=document.body),n.appendTo=r}},normalizePlacement=n=>{!n.placement&&isString$2(messageConfig.placement)&&messageConfig.placement&&(n.placement=messageConfig.placement),n.placement||(n.placement=MESSAGE_DEFAULT_PLACEMENT),messagePlacement.includes(n.placement)||(`${n.placement}${MESSAGE_DEFAULT_PLACEMENT}`,n.placement=MESSAGE_DEFAULT_PLACEMENT)},normalizeOptions=n=>{const t=!n||isString$2(n)||isVNode(n)||isFunction$4(n)?{message:n}:n,r={...messageDefaults,...t};return normalizeAppendTo(r),normalizePlacement(r),isBoolean$1(messageConfig.grouping)&&!r.grouping&&(r.grouping=messageConfig.grouping),isNumber$2(messageConfig.duration)&&r.duration===3e3&&(r.duration=messageConfig.duration),isNumber$2(messageConfig.offset)&&r.offset===16&&(r.offset=messageConfig.offset),isBoolean$1(messageConfig.showClose)&&!r.showClose&&(r.showClose=messageConfig.showClose),isBoolean$1(messageConfig.plain)&&!r.plain&&(r.plain=messageConfig.plain),r},closeMessage=n=>{const t=n.props.placement||MESSAGE_DEFAULT_PLACEMENT,r=placementInstances[t],i=r.indexOf(n);if(i===-1)return;r.splice(i,1);const{handler:g}=n;g.close()},createMessage=({appendTo:n,...t},r)=>{const i=`message_${seed$1++}`,g=t.onClose,$=document.createElement("div"),V={...t,id:i,onClose:()=>{g==null||g(),closeMessage(oe)},onDestroy:()=>{render$1(null,$)}},re=createVNode$1(MessageConstructor,V,isFunction$4(V.message)||isVNode(V.message)?{default:isFunction$4(V.message)?V.message:()=>V.message}:null);re.appContext=r||message._context,render$1(re,$),n.appendChild($.firstElementChild);const ie=re.component,oe={id:i,vnode:re,vm:ie,handler:{close:()=>{ie.exposed.close()}},props:re.component.props};return oe},message=(n={},t)=>{if(!isClient)return{close:()=>{}};const r=normalizeOptions(n),i=getOrCreatePlacementInstances(r.placement||MESSAGE_DEFAULT_PLACEMENT);if(r.grouping&&i.length){const $=i.find(({vnode:V})=>{var re;return((re=V.props)==null?void 0:re.message)===r.message});if($)return $.props.repeatNum+=1,$.props.type=r.type,$.handler}if(isNumber$2(messageConfig.max)&&i.length>=messageConfig.max)return{close:()=>{}};const g=createMessage(r,t);return i.push(g),g.handler};messageTypes.forEach(n=>{message[n]=(t={},r)=>{const i=normalizeOptions(t);return message({...i,type:n},r)}});function closeAll$1(n){for(const t in placementInstances)if(hasOwn$1(placementInstances,t)){const r=[...placementInstances[t]];for(const i of r)(!n||n===i.props.type)&&i.handler.close()}}function closeAllByPlacement(n){if(!placementInstances[n])return;[...placementInstances[n]].forEach(r=>r.handler.close())}message.closeAll=closeAll$1;message.closeAllByPlacement=closeAllByPlacement;message._context=null;const ElMessage=withInstallFunction(message,"$message"),FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=n=>{if(FOCUS_STACK.length===0)return;const t=getEventCode(n),r=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(r.length>0&&t===EVENT_CODE.tab){if(r.length===1){n.preventDefault(),document.activeElement!==r[0]&&r[0].focus();return}const i=n.shiftKey,g=n.target===r[0],$=n.target===r[r.length-1];g&&i&&(n.preventDefault(),r[r.length-1].focus()),$&&!i&&(n.preventDefault(),r[0].focus())}},TrapFocus={beforeMount(n){n[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(n),FOCUS_STACK.push(n),FOCUS_STACK.length<=1&&document.addEventListener("keydown",FOCUS_HANDLER)},updated(n){nextTick(()=>{n[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(n)})},unmounted(){FOCUS_STACK.shift(),FOCUS_STACK.length===0&&document.removeEventListener("keydown",FOCUS_HANDLER)}},_sfc_main$w=defineComponent({name:"ElMessageBox",directives:{TrapFocus},components:{ElButton,ElFocusTrap,ElInput,ElOverlay,ElIcon,...TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:isValidComponentSize},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(n,{emit:t}){const{locale:r,zIndex:i,ns:g,size:$}=useGlobalComponentSettings("message-box",computed(()=>n.buttonSize)),{t:V}=r,{nextZIndex:re}=i,ie=ref(!1),ae=reactive({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:markRaw(loading_default),cancelButtonLoadingIcon:markRaw(loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:re()}),oe=computed(()=>{const Lt=ae.type;return{[g.bm("icon",Lt)]:Lt&&TypeComponentsMap[Lt]}}),le=useId(),ue=useId(),de=computed(()=>{const Lt=ae.type;return ae.icon||Lt&&TypeComponentsMap[Lt]||""}),he=computed(()=>!!ae.message),pe=ref(),_e=ref(),Ce=ref(),xe=ref(),Ie=ref(),Ne=computed(()=>ae.confirmButtonClass);watch(()=>ae.inputValue,async Lt=>{await nextTick(),n.boxType==="prompt"&&Lt&&Et()},{immediate:!0}),watch(()=>ie.value,Lt=>{var jt,hn;Lt&&(n.boxType!=="prompt"&&(ae.autofocus?Ce.value=(hn=(jt=Ie.value)==null?void 0:jt.$el)!=null?hn:pe.value:Ce.value=pe.value),ae.zIndex=re()),n.boxType==="prompt"&&(Lt?nextTick().then(()=>{var vn;xe.value&&xe.value.$el&&(ae.autofocus?Ce.value=(vn=kt())!=null?vn:pe.value:Ce.value=pe.value)}):(ae.editorErrorMessage="",ae.validateError=!1))});const Oe=computed(()=>n.draggable),$e=computed(()=>n.overflow),{isDragging:Ve}=useDraggable(pe,_e,Oe,$e);onMounted(async()=>{await nextTick(),n.closeOnHashChange&&window.addEventListener("hashchange",Ue)}),onBeforeUnmount(()=>{n.closeOnHashChange&&window.removeEventListener("hashchange",Ue)});function Ue(){ie.value&&(ie.value=!1,nextTick(()=>{ae.action&&t("action",ae.action)}))}const Fe=()=>{n.closeOnClickModal&&qe(ae.distinguishCancelAndClose?"close":"cancel")},ze=useSameTarget(Fe),Pt=Lt=>{if(ae.inputType!=="textarea")return Lt.preventDefault(),qe("confirm")},qe=Lt=>{var jt;n.boxType==="prompt"&&Lt==="confirm"&&!Et()||(ae.action=Lt,ae.beforeClose?(jt=ae.beforeClose)==null||jt.call(ae,Lt,ae,Ue):Ue())},Et=()=>{if(n.boxType==="prompt"){const Lt=ae.inputPattern;if(Lt&&!Lt.test(ae.inputValue||""))return ae.editorErrorMessage=ae.inputErrorMessage||V("el.messagebox.error"),ae.validateError=!0,!1;const jt=ae.inputValidator;if(isFunction$4(jt)){const hn=jt(ae.inputValue);if(hn===!1)return ae.editorErrorMessage=ae.inputErrorMessage||V("el.messagebox.error"),ae.validateError=!0,!1;if(isString$2(hn))return ae.editorErrorMessage=hn,ae.validateError=!0,!1}}return ae.editorErrorMessage="",ae.validateError=!1,!0},kt=()=>{var Lt,jt;const hn=(Lt=xe.value)==null?void 0:Lt.$refs;return(jt=hn==null?void 0:hn.input)!=null?jt:hn==null?void 0:hn.textarea},At=()=>{qe("close")},Dt=()=>{n.closeOnPressEscape&&At()};return n.lockScroll&&useLockscreen(ie,{ns:g}),{...toRefs(ae),ns:g,overlayEvent:ze,visible:ie,hasMessage:he,typeClass:oe,contentId:le,inputId:ue,btnSize:$,iconComponent:de,confirmButtonClasses:Ne,rootRef:pe,focusStartRef:Ce,headerRef:_e,inputRef:xe,isDragging:Ve,confirmRef:Ie,doClose:Ue,handleClose:At,onCloseRequested:Dt,handleWrapperClick:Fe,handleInputEnter:Pt,handleAction:qe,t:V}}}),_hoisted_1$q=["aria-label","aria-describedby"],_hoisted_2$k=["aria-label"],_hoisted_3$9=["id"];function _sfc_render(n,t,r,i,g,$){const V=resolveComponent("el-icon"),re=resolveComponent("el-input"),ie=resolveComponent("el-button"),ae=resolveComponent("el-focus-trap"),oe=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=le=>n.$emit("vanish")),persisted:""},{default:withCtx(()=>[withDirectives(createVNode$1(oe,{"z-index":n.zIndex,"overlay-class":[n.ns.is("message-box"),n.modalClass],mask:n.modal},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-label":n.title,"aria-modal":"true","aria-describedby":n.showInput?void 0:n.contentId,class:normalizeClass(`${n.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...le)=>n.overlayEvent.onClick&&n.overlayEvent.onClick(...le)),onMousedown:t[9]||(t[9]=(...le)=>n.overlayEvent.onMousedown&&n.overlayEvent.onMousedown(...le)),onMouseup:t[10]||(t[10]=(...le)=>n.overlayEvent.onMouseup&&n.overlayEvent.onMouseup(...le))},[createVNode$1(ae,{loop:"",trapped:n.visible,"focus-trap-el":n.rootRef,"focus-start-el":n.focusStartRef,onReleaseRequested:n.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",{ref:"rootRef",class:normalizeClass([n.ns.b(),n.customClass,n.ns.is("draggable",n.draggable),n.ns.is("dragging",n.isDragging),{[n.ns.m("center")]:n.center}]),style:normalizeStyle$1(n.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=withModifiers(()=>{},["stop"]))},[n.title!==null&&n.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass([n.ns.e("header"),{"show-close":n.showClose}])},[createBaseVNode("div",{class:normalizeClass(n.ns.e("title"))},[n.iconComponent&&n.center?(openBlock(),createBlock(V,{key:0,class:normalizeClass([n.ns.e("status"),n.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("span",null,toDisplayString(n.title),1)],2),n.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(n.ns.e("headerbtn")),"aria-label":n.t("el.messagebox.close"),onClick:t[0]||(t[0]=le=>n.handleAction(n.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=withKeys(withModifiers(le=>n.handleAction(n.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[createVNode$1(V,{class:normalizeClass(n.ns.e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.closeIcon||"close")))]),_:1},8,["class"])],42,_hoisted_2$k)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{id:n.contentId,class:normalizeClass(n.ns.e("content"))},[createBaseVNode("div",{class:normalizeClass(n.ns.e("container"))},[n.iconComponent&&!n.center&&n.hasMessage?(openBlock(),createBlock(V,{key:0,class:normalizeClass([n.ns.e("status"),n.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(n.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),n.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(n.ns.e("message"))},[renderSlot(n.$slots,"default",{},()=>[n.dangerouslyUseHTMLString?(openBlock(),createBlock(resolveDynamicComponent(n.showInput?"label":"p"),{key:1,for:n.showInput?n.inputId:void 0,innerHTML:n.message},null,8,["for","innerHTML"])):(openBlock(),createBlock(resolveDynamicComponent(n.showInput?"label":"p"),{key:0,for:n.showInput?n.inputId:void 0,textContent:toDisplayString(n.message)},null,8,["for","textContent"]))])],2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(n.ns.e("input"))},[createVNode$1(re,{id:n.inputId,ref:"inputRef",modelValue:n.inputValue,"onUpdate:modelValue":t[2]||(t[2]=le=>n.inputValue=le),type:n.inputType,placeholder:n.inputPlaceholder,"aria-invalid":n.validateError,class:normalizeClass({invalid:n.validateError}),onKeydown:withKeys(n.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),createBaseVNode("div",{class:normalizeClass(n.ns.e("errormsg")),style:normalizeStyle$1({visibility:n.editorErrorMessage?"visible":"hidden"})},toDisplayString(n.editorErrorMessage),7)],2),[[vShow,n.showInput]])],10,_hoisted_3$9),createBaseVNode("div",{class:normalizeClass(n.ns.e("btns"))},[n.showCancelButton?(openBlock(),createBlock(ie,{key:0,type:n.cancelButtonType==="text"?"":n.cancelButtonType,text:n.cancelButtonType==="text",loading:n.cancelButtonLoading,"loading-icon":n.cancelButtonLoadingIcon,class:normalizeClass([n.cancelButtonClass]),round:n.roundButton,size:n.btnSize,onClick:t[3]||(t[3]=le=>n.handleAction("cancel")),onKeydown:t[4]||(t[4]=withKeys(withModifiers(le=>n.handleAction("cancel"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString(n.cancelButtonText||n.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):createCommentVNode("v-if",!0),withDirectives(createVNode$1(ie,{ref:"confirmRef",type:n.confirmButtonType==="text"?"":n.confirmButtonType,text:n.confirmButtonType==="text",loading:n.confirmButtonLoading,"loading-icon":n.confirmButtonLoadingIcon,class:normalizeClass([n.confirmButtonClasses]),round:n.roundButton,disabled:n.confirmButtonDisabled,size:n.btnSize,onClick:t[5]||(t[5]=le=>n.handleAction("confirm")),onKeydown:t[6]||(t[6]=withKeys(withModifiers(le=>n.handleAction("confirm"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString(n.confirmButtonText||n.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[vShow,n.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,_hoisted_1$q)]),_:3},8,["z-index","overlay-class","mask"]),[[vShow,n.visible]])]),_:3})}var MessageBoxConstructor=_export_sfc(_sfc_main$w,[["render",_sfc_render],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const messageInstance=new Map,getAppendToElement=n=>{let t=document.body;return n.appendTo&&(isString$2(n.appendTo)&&(t=document.querySelector(n.appendTo)),isElement$1(n.appendTo)&&(t=n.appendTo),isElement$1(t)||(t=document.body)),t},initInstance=(n,t,r=null)=>{const i=createVNode$1(MessageBoxConstructor,n,isFunction$4(n.message)||isVNode(n.message)?{default:isFunction$4(n.message)?n.message:()=>n.message}:null);return i.appContext=r,render$1(i,t),getAppendToElement(n).appendChild(t.firstElementChild),i.component},genContainer=()=>document.createElement("div"),showMessage=(n,t)=>{const r=genContainer();n.onVanish=()=>{render$1(null,r),messageInstance.delete(g)},n.onAction=$=>{const V=messageInstance.get(g);let re;n.showInput?re={value:g.inputValue,action:$}:re=$,n.callback?n.callback(re,i.proxy):$==="cancel"||$==="close"?n.distinguishCancelAndClose&&$!=="cancel"?V.reject("close"):V.reject("cancel"):V.resolve(re)};const i=initInstance(n,r,t),g=i.proxy;for(const $ in n)hasOwn$1(n,$)&&!hasOwn$1(g.$props,$)&&($==="closeIcon"&&isObject$6(n[$])?g[$]=markRaw(n[$]):g[$]=n[$]);return g.visible=!0,g};function MessageBox(n,t=null){if(!isClient)return Promise.reject();let r;return isString$2(n)||isVNode(n)?n={message:n}:r=n.callback,new Promise((i,g)=>{const $=showMessage(n,t??MessageBox._context);messageInstance.set($,{options:n,callback:r,resolve:i,reject:g})})}const MESSAGE_BOX_VARIANTS=["alert","confirm","prompt"],MESSAGE_BOX_DEFAULT_OPTS={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};MESSAGE_BOX_VARIANTS.forEach(n=>{MessageBox[n]=messageBoxFactory(n)});function messageBoxFactory(n){return(t,r,i,g)=>{let $="";return isObject$6(r)?(i=r,$=""):isUndefined$1(r)?$="":$=r,MessageBox(Object.assign({title:$,message:t,type:"",...MESSAGE_BOX_DEFAULT_OPTS[n]},i,{boxType:n}),g)}}MessageBox.close=()=>{messageInstance.forEach((n,t)=>{t.doClose()}),messageInstance.clear()};MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=n=>{_MessageBox._context=n._context,n.config.globalProperties.$msgbox=_MessageBox,n.config.globalProperties.$messageBox=_MessageBox,n.config.globalProperties.$alert=_MessageBox.alert,n.config.globalProperties.$confirm=_MessageBox.confirm,n.config.globalProperties.$prompt=_MessageBox.prompt};const ElMessageBox=_MessageBox,notificationTypes=["primary","success","info","warning","error"],notificationProps=buildProps({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:iconPropType},id:{type:String,default:""},message:{type:definePropType([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:definePropType(Function),default:()=>{}},onClose:{type:definePropType(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:[...notificationTypes,""],default:""},zIndex:Number,closeIcon:{type:iconPropType,default:close_default}}),notificationEmits={destroy:()=>!0},_hoisted_1$p=["id"],_hoisted_2$j=["textContent"],_hoisted_3$8={key:0},_hoisted_4$6=["innerHTML"],_sfc_main$v=defineComponent({name:"ElNotification",__name:"notification",props:notificationProps,emits:notificationEmits,setup(n,{expose:t}){const r=n,{ns:i,zIndex:g}=useGlobalComponentSettings("notification"),{nextZIndex:$,currentZIndex:V}=g,re=ref(!1);let ie;const ae=computed(()=>{const xe=r.type;return xe&&TypeComponentsMap[r.type]?i.m(xe):""}),oe=computed(()=>r.type&&TypeComponentsMap[r.type]||r.icon),le=computed(()=>r.position.endsWith("right")?"right":"left"),ue=computed(()=>r.position.startsWith("top")?"top":"bottom"),de=computed(()=>{var xe;return{[ue.value]:`${r.offset}px`,zIndex:(xe=r.zIndex)!=null?xe:V.value}});function he(){r.duration>0&&({stop:ie}=useTimeoutFn(()=>{re.value&&_e()},r.duration))}function pe(){ie==null||ie()}function _e(){re.value=!1}function Ce(xe){switch(getEventCode(xe)){case EVENT_CODE.delete:case EVENT_CODE.backspace:pe();break;case EVENT_CODE.esc:re.value&&_e();break;default:he();break}}return onMounted(()=>{he(),$(),re.value=!0}),useEventListener(document,"keydown",Ce),t({visible:re,close:_e}),(xe,Ie)=>(openBlock(),createBlock(Transition,{name:unref(i).b("fade"),onBeforeLeave:xe.onClose,onAfterLeave:Ie[1]||(Ie[1]=Ne=>xe.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:xe.id,class:normalizeClass([unref(i).b(),xe.customClass,le.value]),style:normalizeStyle$1(de.value),role:"alert",onMouseenter:pe,onMouseleave:he,onClick:Ie[0]||(Ie[0]=(...Ne)=>xe.onClick&&xe.onClick(...Ne))},[oe.value?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(i).e("icon"),ae.value])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(oe.value)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(i).e("group"))},[createBaseVNode("h2",{class:normalizeClass(unref(i).e("title")),textContent:toDisplayString(xe.title)},null,10,_hoisted_2$j),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(i).e("content")),style:normalizeStyle$1(xe.title?void 0:{margin:0})},[renderSlot(xe.$slots,"default",{},()=>[xe.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{innerHTML:xe.message},null,8,_hoisted_4$6)],2112)):(openBlock(),createElementBlock("p",_hoisted_3$8,toDisplayString(xe.message),1))])],6),[[vShow,xe.message]]),xe.showClose?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(i).e("closeBtn")),onClick:withModifiers(_e,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(xe.closeIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],46,_hoisted_1$p),[[vShow,re.value]])]),_:3},8,["name","onBeforeLeave"]))}});var NotificationConstructor=_export_sfc(_sfc_main$v,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const notifications={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},GAP_SIZE=16;let seed=1;const notify=function(n={},t){if(!isClient)return{close:()=>{}};(isString$2(n)||isVNode(n))&&(n={message:n});const r=n.position||"top-right";let i=n.offset||0;notifications[r].forEach(({vm:oe})=>{var le;i+=(((le=oe.el)==null?void 0:le.offsetHeight)||0)+GAP_SIZE}),i+=GAP_SIZE;const g=`notification_${seed++}`,$=n.onClose,V={...n,offset:i,id:g,onClose:()=>{close(g,r,$)}};let re=document.body;isElement$1(n.appendTo)?re=n.appendTo:isString$2(n.appendTo)&&(re=document.querySelector(n.appendTo)),isElement$1(re)||(re=document.body);const ie=document.createElement("div"),ae=createVNode$1(NotificationConstructor,V,isFunction$4(V.message)?V.message:isVNode(V.message)?()=>V.message:null);return ae.appContext=isUndefined$1(t)?notify._context:t,ae.props.onDestroy=()=>{render$1(null,ie)},render$1(ae,ie),notifications[r].push({vm:ae}),re.appendChild(ie.firstElementChild),{close:()=>{ae.component.exposed.visible.value=!1}}};notificationTypes.forEach(n=>{notify[n]=(t={},r)=>((isString$2(t)||isVNode(t))&&(t={message:t}),notify({...t,type:n},r))});function close(n,t,r){const i=notifications[t],g=i.findIndex(({vm:ae})=>{var oe;return((oe=ae.component)==null?void 0:oe.props.id)===n});if(g===-1)return;const{vm:$}=i[g];if(!$)return;r==null||r($);const V=$.el.offsetHeight,re=t.split("-")[0];i.splice(g,1);const ie=i.length;if(!(ie<1))for(let ae=g;ae{t.component.exposed.visible.value=!1})}function updateOffsets(n="top-right"){var t,r,i,g;let $=((i=(r=(t=notifications[n][0])==null?void 0:t.vm.component)==null?void 0:r.props)==null?void 0:i.offset)||0;for(const{vm:V}of notifications[n])V.component.props.offset=$,$+=(((g=V.el)==null?void 0:g.offsetHeight)||0)+GAP_SIZE}notify.closeAll=closeAll;notify.updateOffsets=updateOffsets;notify._context=null;const ElNotification=withInstallFunction(notify,"$notify");var Plugins=[ElInfiniteScroll,ElLoading,ElMessage,ElMessageBox,ElNotification,ElPopoverDirective],installer=makeInstaller([...Components,...Plugins]);const API_CONFIG={NGINX:"http://localhost:8099",LOCAL:"http://localhost:8080"},BASE_URL=API_CONFIG.LOCAL,buildApiUrl=n=>`${BASE_URL}${n}`,modelApi={fileStorage_deleteFileById_get(n){return fetch(buildApiUrl("/fileStorage/deleteFileById")+"?"+Object.keys(n).map(t=>t+"="+n[t]).join("&"),{method:"GET",headers:{"Content-Type":"application/json",Accept:"*/*"}}).then(t=>{if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return t.json()})},fileStorage_editFileNameById_post(n){return fetch(buildApiUrl("/fileStorage/editFileNameById"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(n)}).then(t=>{if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return t.json()})},fileStorage_file_list_post(n){return fetch(buildApiUrl("/fileStorage/file/list"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(n)}).then(t=>{if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return t.json()})},node_nrt_get(){return fetch(buildApiUrl("/node/nrt"),{method:"GET",headers:{"Content-Type":"application/json",Accept:"*/*"}})},model_getModelData_post(n){return fetch(buildApiUrl("/data/model/getModelData"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(n)}).then(t=>{if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return t.json()})},saveOrUpdate_modelData_post(n){return fetch(buildApiUrl("/data/model/saveOrUpdate/modelData"),{method:"POST",headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(n)}).then(t=>{if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return t.json()})}},index_vue_vue_type_style_index_0_scoped_067c540e_lang="",globalStore=reactive({intention:"none",create_item_info:null,selected_items_id:[],done_json:[],group_ids:new Map,canvasCfg:{width:1920,height:1080,scale:1,color:"",img:"",guide:!0,adsorp:!0,adsorp_diff:5,transform_origin:{x:0,y:0},drag_offset:{x:0,y:0}},gridCfg:{enabled:!0,align:!0,size:10},guideCfg:{x:{display:!1,top:0},y:{display:!1,left:0}},lock:!1,real_time_data:{show:!1,text:""},adsorp_diff:{x:0,y:0},refreshGroupForId:(n,t,r)=>{var g;if(!globalStore.done_json.some($=>$.id===r))return!1;if(globalStore.group_ids.size===0)return globalStore.group_ids.set(n,[r]),!0;if(globalStore.group_ids.has(t)){const $=globalStore.group_ids.get(t)||[];$.some(re=>re===r)&&$.splice($.indexOf(r),1),((g=globalStore.group_ids.get(t))==null?void 0:g.length)===0&&globalStore.group_ids.delete(t)}if(!globalStore.group_ids.has(n))globalStore.group_ids.set(n,[r]);else{const $=globalStore.group_ids.get(n)||[];return $.some(re=>re===r)||$.push(r),!0}return!0},refreshGroupForIds:(n,t)=>{const r=globalStore.done_json;console.log(r)},setIntention:n=>{globalStore.intention=n},setCreateItemInfo:n=>{globalStore.create_item_info=n},setGlobalStoreDoneJson:n=>{globalStore.done_json=n},cancelAllSelect:()=>{const n=[...globalStore.done_json].map(t=>(t.active&&(t.active=!1),t));globalStore.setGlobalStoreDoneJson(n),globalStore.selected_items_id=[]},refreshSelectedItemsId:()=>{globalStore.selected_items_id=globalStore.done_json.filter(n=>n.active).map(n=>n.id)},deleteSelectedItems:()=>{const n=[...globalStore.done_json].filter(t=>!globalStore.selected_items_id.includes(t.id));globalStore.setGlobalStoreDoneJson(n),globalStore.selected_items_id=[]},setSingleSelect:n=>{globalStore.done_json.forEach(t=>{t.id===n?t.active=!0:t.active=!1}),globalStore.selected_items_id=[n]},setSelectItems:n=>{globalStore.done_json.forEach(t=>{n.includes(t.id)?t.active=!0:t.active=!1}),globalStore.selected_items_id=n},setRealTimeData:n=>{globalStore.real_time_data=n},setCustomMap:n=>{globalStore.group_ids=n}}),useUpdateSysLineRect=(n,t,r)=>{n.forEach(i=>{const g=document.querySelector(`#${i.id} g .real`).getBoundingClientRect(),$=t.getBoundingClientRect(),V=((g==null?void 0:g.left)-($==null?void 0:$.left))/r,re=((g==null?void 0:g.top)-($==null?void 0:$.top))/r,ie=V-i.binfo.left,ae=re-i.binfo.top;i.binfo.left=V,i.binfo.top=re,i.binfo.width=(g==null?void 0:g.width)/r,i.binfo.height=(g==null?void 0:g.height)/r,i.props.point_position={...i.props.point_position,val:i.props.point_position.val.map(oe=>({x:oe.x-ie,y:oe.y-ae}))}})},useUpdateSysLine=(n,t,r,i,g)=>{const $=[...t];n.forEach(V=>{if(!V.props.bind_anchors.val.start&&!V.props.bind_anchors.val.end)return;const re=document.querySelector(`#${V.id} g .real`).getBoundingClientRect(),ie=r.getBoundingClientRect(),ae=((re==null?void 0:re.left)-(ie==null?void 0:ie.left))/i,oe=((re==null?void 0:re.top)-(ie==null?void 0:ie.top))/i;if(V.props.bind_anchors.val.start){const le=$.find(ue=>ue.id===V.props.bind_anchors.val.start.id);if(le){const ue=le.id===(g==null?void 0:g.id)?g:le.binfo,{topLeft:de,topRight:he,bottomLeft:pe,bottomRight:_e}=getRectCoordinate(ue),{topCenter:Ce,bottomCenter:xe,leftCenter:Ie,rightCenter:Ne}=getRectCenterCoordinate(de,he,pe,_e),Oe=Ce.x,$e=Ie.y,Ve=Math.PI/180*le.binfo.angle;if(V.props.bind_anchors.val.start.type==="tc"){const ze=rotatePoint(Ce.x,Ce.y,Oe,$e,Ve);V.props.point_position.val[0]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}else if(V.props.bind_anchors.val.start.type==="bc"){const ze=rotatePoint(xe.x,xe.y,Oe,$e,Ve);V.props.point_position.val[0]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}else if(V.props.bind_anchors.val.start.type==="lc"){const ze=rotatePoint(Ie.x,Ie.y,Oe,$e,Ve);V.props.point_position.val[0]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}else if(V.props.bind_anchors.val.start.type==="rc"){const ze=rotatePoint(Ne.x,Ne.y,Oe,$e,Ve);V.props.point_position.val[0]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}const Ue=ae-V.binfo.left,Fe=oe-V.binfo.top;V.binfo={...V.binfo,left:ae,top:oe,width:(re==null?void 0:re.width)/i,height:(re==null?void 0:re.height)/i},V.props.point_position={...V.props.point_position,val:V.props.point_position.val.map(ze=>({x:ze.x-Ue,y:ze.y-Fe}))}}else V.props.bind_anchors.val.start=null}if(V.props.bind_anchors.val.end){const le=$.find(ue=>ue.id===V.props.bind_anchors.val.end.id);if(le){const ue=le.id===(g==null?void 0:g.id)?g:le.binfo,{topLeft:de,topRight:he,bottomLeft:pe,bottomRight:_e}=getRectCoordinate(ue),{topCenter:Ce,bottomCenter:xe,leftCenter:Ie,rightCenter:Ne}=getRectCenterCoordinate(de,he,pe,_e),Oe=Ce.x,$e=Ie.y,Ve=Math.PI/180*le.binfo.angle;if(V.props.bind_anchors.val.end.type==="tc"){const ze=rotatePoint(Ce.x,Ce.y,Oe,$e,Ve);V.props.point_position.val[V.props.point_position.val.length-1]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}else if(V.props.bind_anchors.val.end.type==="bc"){const ze=rotatePoint(xe.x,xe.y,Oe,$e,Ve);V.props.point_position.val[V.props.point_position.val.length-1]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}else if(V.props.bind_anchors.val.end.type==="lc"){const ze=rotatePoint(Ie.x,Ie.y,Oe,$e,Ve);V.props.point_position.val[V.props.point_position.val.length-1]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}else if(V.props.bind_anchors.val.end.type==="rc"){const ze=rotatePoint(Ne.x,Ne.y,Oe,$e,Ve);V.props.point_position.val[V.props.point_position.val.length-1]={x:ze.x-V.binfo.left,y:ze.y-V.binfo.top}}const Ue=ae-V.binfo.left,Fe=oe-V.binfo.top;V.binfo={...V.binfo,left:ae,top:oe,width:(re==null?void 0:re.width)/i,height:(re==null?void 0:re.height)/i},V.props.point_position={...V.props.point_position,val:V.props.point_position.val.map(ze=>({x:ze.x-Ue,y:ze.y-Fe}))}}else V.props.bind_anchors.val.end=null}}),nextTick(()=>{useUpdateSysLineRect(n,r,i)})},createGroupInfo=(n,t,r)=>{let i=1/0,g=1/0,$=-1/0,V=-1/0;const re=t.getBoundingClientRect();n.forEach(ae=>{const oe=document.getElementById(ae.id).getBoundingClientRect();i=Math.min(i,(oe.left-re.left)/r),$=Math.max($,(oe.right-re.left)/r),g=Math.min(g,(oe.top-re.top)/r),V=Math.max(V,(oe.bottom-re.top)/r)});const ie={left:i,top:g,width:$-i,height:V-g,angle:0};return n.forEach(ae=>{ae.binfo.left=ae.binfo.left-i,ae.binfo.top=ae.binfo.top-g,ae.binfo={width:100*(ae.binfo.width/ie.width),height:100*(ae.binfo.height/ie.height),left:100*(ae.binfo.left/ie.width),top:100*(ae.binfo.top/ie.height),angle:ae.binfo.angle||0},ae.active=!1}),{id:"group-"+randomString(),title:"组合",type:"group",binfo:ie,resize:!0,rotate:!0,lock:!1,active:!0,hide:!1,use_proportional_scaling:!0,props:{},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"},children:[...n],events:[],tag:"group"}},cancelGroup=(n,t,r,i)=>{const g=t.getBoundingClientRect();return n.children.map(V=>{const re=document.getElementById(V.id).getBoundingClientRect(),ie={x:re.left-g.left+re.width/2,y:re.top-g.top+re.height/2},ae=alignToGrid(n.binfo.width*(V.binfo.width/100),i),oe=alignToGrid(n.binfo.height*(V.binfo.height/100),i),le={width:ae,height:oe,left:ie.x/r-ae/2,top:ie.y/r-oe/2,angle:(V.binfo.angle||0)+(n.binfo.angle||0)};return{...V,active:!0,binfo:le}})},svgToSymbol=(n,t)=>{const r=new DOMParser().parseFromString(n,"image/svg+xml").children[0];let i="0",g="0";const $=r.getAttribute("viewBox"),V=document.createElementNS("http://www.w3.org/2000/svg","symbol");if($){const[,,re,ie]=$.split(" ");V.setAttributeNS(null,"viewBox",$),i=re,g=ie}else i=r.getAttribute("width")||"0",g=r.getAttribute("height")||"0",V.setAttributeNS(null,"viewBox","0 0 "+i+" "+g);return V.setAttributeNS(null,"id",t),V.innerHTML=r.innerHTML.replace("stroke:currentColor","").replace("stroke: currentColor","").replace('stroke="currentColor"',""),{symbol_str:V.outerHTML,width:i,height:g}},symbolGenSvg=(n,t,r,i,g)=>`
-`,svgToImgSrc=n=>"data:image/svg+xml;utf8,"+encodeURIComponent(n),genDomPropstr=n=>{let t="";for(const r in n)t+=` ${r}="${n[r].val}"`;return t},randomString=n=>{n=n||10;const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=t.length;let i="";for(let g=0;gnew Promise(function(t,r){const i=new FileReader;let g="";i.readAsDataURL(n),i.onload=function(){g=i.result??""},i.onerror=function($){r($)},i.onloadend=function(){t(g)}}),alignToGrid=(n,t=1)=>{const r=Math.floor(n/t);return n%t>=t/2?(r+1)*t:r*t},objectDeepClone=(n,t={})=>n?JSON.parse(JSON.stringify(n)):t,prosToVBind=n=>{let t={};for(const r in n)t={...t,[r]:n[r].val};return t},calculateGuideY=(n,t,r,i,g)=>{for(let $=0;$Math.abs(xe.left-V)Math.abs(xe.left-(V+ie/2))Math.abs(xe.left-re)Math.abs(xe.left+xe.width/2-V)Math.abs(xe.left+xe.width/2-(V+ie/2))Math.abs(xe.left+xe.width/2-re)Math.abs(xe.right-re)Math.abs(xe.right-(V+ie/2))Math.abs(xe.right-V){for(let $=0;$Math.abs(xe.top-V)Math.abs(xe.top-(V+ie/2))Math.abs(xe.top-re)Math.abs(xe.top+xe.height/2-V)Math.abs(xe.top+xe.height/2-(V+ie/2))Math.abs(xe.top+xe.height/2-re)Math.abs(xe.bottom-re)Math.abs(xe.bottom-(V+ie/2))Math.abs(xe.bottom-V){let i="";for(let g=0;g({x:(n+r)/2,y:(t+i)/2}),rotatePoint=(n,t,r,i,g)=>{const $=r+(n-r)*Math.cos(g)-(t-i)*Math.sin(g),V=i+(n-r)*Math.sin(g)+(t-i)*Math.cos(g);return{x:$,y:V}},getRectCoordinate=n=>{const t={x:n.left,y:n.top},r={x:n.left+n.width,y:n.top},i={x:n.left,y:n.top+n.height},g={x:n.left+n.width,y:n.top+n.height};return{topLeft:t,topRight:r,bottomLeft:i,bottomRight:g}},getRectCenterCoordinate=(n,t,r,i)=>{const g={x:(n.x+t.x)/2,y:(n.y+t.y)/2},$={x:(r.x+i.x)/2,y:(r.y+i.y)/2},V={x:(n.x+r.x)/2,y:(n.y+r.y)/2},re={x:(t.x+i.x)/2,y:(t.y+i.y)/2};return{topCenter:g,bottomCenter:$,leftCenter:V,rightCenter:re}},handleAlign=(n,t,r,i,g)=>{switch(n){case"left":{const V=Math.min(...t.filter(re=>re.type!=="sys-line").map(re=>re.binfo.left));t.filter(re=>re.type!=="sys-line").forEach(re=>{re.binfo.left=V});break}case"horizontally":{const V=t.filter(re=>re.type!=="sys-line")[0].binfo.left+t[0].binfo.width/2;t.filter(re=>re.type!=="sys-line").forEach(re=>{re.binfo.left=V-re.binfo.width/2});break}case"right":{const V=Math.max(...t.filter(re=>re.type!=="sys-line").map(re=>re.binfo.left+re.binfo.width));t.filter(re=>re.type!=="sys-line").forEach(re=>{re.binfo.left=V-re.binfo.width});break}case"top":{const V=Math.min(...t.filter(re=>re.type!=="sys-line").map(re=>re.binfo.top));t.filter(re=>re.type!=="sys-line").forEach(re=>{re.binfo.top=V});break}case"vertically":{const V=t.filter(re=>re.type!=="sys-line")[0].binfo.top+t[0].binfo.height/2;t.filter(re=>re.type!=="sys-line").forEach(re=>{re.binfo.top=V-re.binfo.height/2});break}case"bottom":{const V=Math.max(...t.filter(re=>re.type!=="sys-line").map(re=>re.binfo.top+re.binfo.height));t.filter(re=>re.type!=="sys-line").forEach(re=>{re.binfo.top=V-re.binfo.height});break}case"horizontal-distribution":{t.sort((ae,oe)=>ae.binfo.left+ae.binfo.width/2-oe.binfo.left+oe.binfo.width/2);const V=t[t.length-1],re=t[0],ie=(V.binfo.left+V.binfo.width/2-(re.binfo.left+re.binfo.width/2))/(t.length-1);t.forEach((ae,oe)=>{if(oe==0||oe==t.length-1)return;const le=re.binfo.left+re.binfo.width/2+ie*oe;ae.binfo={...ae.binfo,left:le-ae.binfo.width/2}});break}case"vertical-distribution":{t.sort((ae,oe)=>ae.binfo.top+ae.binfo.height/2-oe.binfo.top+oe.binfo.height/2);const V=t[t.length-1],re=t[0],ie=(V.binfo.top+V.binfo.height/2-(re.binfo.top+re.binfo.height/2))/(t.length-1);t.forEach((ae,oe)=>{if(oe==0||oe==t.length-1)return;const le=re.binfo.top+re.binfo.height/2+ie*oe;ae.binfo={...ae.binfo,top:le-ae.binfo.height/2}});break}}const $=g.filter(V=>V.type==="sys-line");return useUpdateSysLine($,t,r,i),t},setItemAttr=(id,key,val,json_arr)=>new Promise(res=>{const find_item=json_arr.find(n=>n.id===id);find_item||res({status:!1,msg:"要设置的id不存在"}),eval(`find_item.${key} = val;`),res({status:!0,msg:"操作成功"})}),getItemAttr=(id,key,json_arr)=>{const find_item=json_arr.find(n=>n.id===id);return find_item?eval(`find_item.${key}`):null},previewCompareVal=(n,t,r)=>t==="="?String(n)==String(r):t===">"?Number(n)>Number(r):t==="<"?Number(n){const t={};n.events.forEach(i=>{let g="";if(i.action==="changeAttr"){if(i.change_attr.length<1)return;i.change_attr.forEach($=>{!$.target_id||!$.target_attr||$.target_value===void 0||(!i.trigger_rule||!i.trigger_rule.trigger_id||!i.trigger_rule.trigger_attr||i.trigger_rule.value===void 0||!i.trigger_rule.operator?typeof $.target_value=="boolean"?g+=`$setItemAttrByID('${$.target_id}', '${$.target_attr}', ${$.target_value});`:g+=`$setItemAttrByID('${$.target_id}', '${$.target_attr}', '${$.target_value}');`:typeof $.target_value=="boolean"?g+=`if($previewCompareVal($getItemAttrByID('${i.trigger_rule.trigger_id}', '${i.trigger_rule.trigger_attr}'), '${i.trigger_rule.operator}', '${i.trigger_rule.value}')){$setItemAttrByID('${$.target_id}', '${$.target_attr}', ${$.target_value})};`:g+=`if($previewCompareVal($getItemAttrByID('${i.trigger_rule.trigger_id}', '${i.trigger_rule.trigger_attr}'), '${i.trigger_rule.operator}', '${i.trigger_rule.value}')){$setItemAttrByID('${$.target_id}', '${$.target_attr}', '${$.target_value}')};`)})}else i.action==="customCode"&&(!i.trigger_rule||!i.trigger_rule.trigger_id||!i.trigger_rule.trigger_attr||i.trigger_rule.value===void 0||!i.trigger_rule.operator?g+=i.custom_code+";":g+=`if($previewCompareVal($getItemAttrByID('${i.trigger_rule.trigger_id}', '${i.trigger_rule.trigger_attr}'), '${i.trigger_rule.operator}', '${i.trigger_rule.value}')){${i.custom_code}};`);Object.prototype.hasOwnProperty.call(t,i.type)?t[i.type]+=g:t[i.type]=g});let r={};for(const i in t)r={...r,[i]:()=>dynamicEvent(t[i])(n)};return r},dynamicEvent=n=>{try{return new Function("$item_info",n)}catch(t){return console.error(t),new Function("$item_info",`console.error('${t}')`)}},index_vue_vue_type_style_index_0_lang$2="",sysComponentItems=[{id:"sys-line",title:"自由连线",type:"sys-line",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTQgMThhMiAyIDAgMSAwIDQgMGEyIDIgMCAxIDAtNCAwTTE2IDZhMiAyIDAgMSAwIDQgMGEyIDIgMCAxIDAtNCAwTTcuNSAxNi41bDktOSIvPjwvc3ZnPg==",props:{stroke:{title:"线条颜色",type:"color",val:"#ff0000"},"stroke-width":{title:"线条宽度",type:"number",val:2},"marker-start":{title:"起点箭头",type:"switch",val:!1},"marker-end":{title:"终点箭头",type:"switch",val:!0},point_position:{title:"点坐标",type:"jsonEdit",val:[{x:0,y:0},{x:100,y:0}],disabled:!0},ani_type:{title:"动画类型",type:"select",val:"none",options:[{label:"无",value:"none"},{label:"电流",value:"electricity"},{label:"轨迹",value:"track"},{label:"水珠",value:"waterdrop"}]},ani_dur:{title:"持续时间",type:"number",val:20},ani_color:{title:"动画颜色",type:"color",val:"#0a7ae2"},ani_reverse:{title:"动画反转",type:"switch",val:!1},ani_play:{title:"动画播放",type:"switch",val:!0},bind_anchors:{title:"锚点绑定",type:"jsonEdit",val:{start:null,end:null},disabled:!0}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}},{id:"sys-line-vertical",title:"自由连线-竖线",type:"sys-line",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTQgMThhMiAyIDAgMSAwIDQgMGEyIDIgMCAxIDAtNCAwTTE2IDZhMiAyIDAgMSAwIDQgMGEyIDIgMCAxIDAtNCAwTTcuNSAxNi41bDktOSIvPjwvc3ZnPg==",props:{stroke:{title:"线条颜色",type:"color",val:"#ff0000"},"stroke-width":{title:"线条宽度",type:"number",val:2},"marker-start":{title:"起点箭头",type:"switch",val:!1},"marker-end":{title:"终点箭头",type:"switch",val:!0},point_position:{title:"点坐标",type:"jsonEdit",val:[{x:0,y:0},{x:0,y:100}],disabled:!0},ani_type:{title:"动画类型",type:"select",val:"none",options:[{label:"无",value:"none"},{label:"电流",value:"electricity"},{label:"轨迹",value:"track"},{label:"水珠",value:"waterdrop"}]},ani_dur:{title:"持续时间",type:"number",val:20},ani_color:{title:"动画颜色",type:"color",val:"#0a7ae2"},ani_reverse:{title:"动画反转",type:"switch",val:!1},ani_play:{title:"动画播放",type:"switch",val:!0},bind_anchors:{title:"锚点绑定",type:"jsonEdit",val:{start:null,end:null},disabled:!0}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}},{id:"text-vue",title:"文字",type:"vue",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIzMiIgZD0ibTMyIDQxNS41bDEyMC0zMjBsMTIwIDMyMG0tNDItMTEySDc0bTI1Mi02NGMxMi4xOS0yOC42OSA0MS00OCA3NC00OGgwYzQ2IDAgODAgMzIgODAgODB2MTQ0Ii8+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIzMiIgZD0iTTMyMCAzNTguNWMwIDM2IDI2Ljg2IDU4IDYwIDU4YzU0IDAgMTAwLTI3IDEwMC0xMDZ2LTE1Yy0yMCAwLTU4IDEtOTIgNWMtMzIuNzcgMy44Ni02OCAxOS02OCA1OCIvPjwvc3ZnPg==",props:{text:{title:"文字内容",type:"input",val:"文字"},fontFamily:{title:"字体",type:"select",val:"黑体",options:[{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{title:"文字大小",type:"number",val:18},fill:{title:"文字颜色",type:"color",val:"#FFF700"},vertical:{title:"竖排展示",type:"switch",val:!1}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}},{id:"card-vue",title:"卡片",type:"vue",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMTYgMTYiPjxnIGZpbGw9ImN1cnJlbnRDb2xvciI+PHBhdGggZD0iTTE0LjUgM2EuNS41IDAgMCAxIC41LjV2OWEuNS41IDAgMCAxLS41LjVoLTEzYS41LjUgMCAwIDEtLjUtLjV2LTlhLjUuNSAwIDAgMSAuNS0uNXptLTEzLTFBMS41IDEuNSAwIDAgMCAwIDMuNXY5QTEuNSAxLjUgMCAwIDAgMS41IDE0aDEzYTEuNSAxLjUgMCAwIDAgMS41LTEuNXYtOUExLjUgMS41IDAgMCAwIDE0LjUgMnoiLz48cGF0aCBkPSJNMyA1LjVhLjUuNSAwIDAgMSAuNS0uNWg5YS41LjUgMCAwIDEgMCAxaC05YS41LjUgMCAwIDEtLjUtLjVNMyA4YS41LjUgMCAwIDEgLjUtLjVoOWEuNS41IDAgMCAxIDAgMWgtOUEuNS41IDAgMCAxIDMgOG0wIDIuNWEuNS41IDAgMCAxIC41LS41aDZhLjUuNSAwIDAgMSAwIDFoLTZhLjUuNSAwIDAgMS0uNS0uNSIvPjwvZz48L3N2Zz4=",props:{shadow:{title:"阴影显示时机",type:"select",val:"always",options:[{label:"总是显示",value:"always"},{label:"鼠标悬浮",value:"hover"},{label:"不显示",value:"never"}]},backGroundColor:{title:"背景颜色",type:"color",val:"#ffffff"},boxShadow:{title:"阴影颜色",type:"color",val:"#ffffff"}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}},{id:"now-time-vue",title:"当前时间",type:"vue",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLXdpZHRoPSIzMiIgZD0iTTI1NiA2NEMxNTAgNjQgNjQgMTUwIDY0IDI1NnM4NiAxOTIgMTkyIDE5MnMxOTItODYgMTkyLTE5MlMzNjIgNjQgMjU2IDY0WiIvPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMzIiIGQ9Ik0yNTYgMTI4djE0NGg5NiIvPjwvc3ZnPg==",props:{fontColor:{title:"文字颜色",type:"color",val:"#000000"},dateSize:{title:"日期文字大小",type:"number",val:12},weekSize:{title:"星期文字大小",type:"number",val:12},timeSize:{title:"时间文字大小",type:"number",val:24}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}},{id:"kv-vue",title:"键值对",type:"vue",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjAgMjAiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTMgNmEzIDMgMCAwIDEgMy0zaDhhMyAzIDAgMCAxIDMgM3Y4YTMgMyAwIDAgMS0zIDNINmEzIDMgMCAwIDEtMy0zem0zLTJhMiAyIDAgMCAwLTIgMnYzLjVoNS41VjR6bTMuNSA2LjVINFYxNGEyIDIgMCAwIDAgMiAyaDMuNXptMSAwVjE2SDE0YTIgMiAwIDAgMCAyLTJ2LTMuNXptNS41LTFWNmEyIDIgMCAwIDAtMi0yaC0zLjV2NS41eiIvPjwvc3ZnPg==",props:{border:{title:"边框",type:"switch",val:!0},fontFamily:{title:"字体",type:"select",val:"黑体",options:[{value:"黑体",label:"黑体"},{value:"宋体",label:"宋体"}]},fontSize:{title:"文字大小",type:"number",val:18},label:{title:"键名",type:"input",val:"键名"},labelWidth:{title:"键名宽度",type:"number",val:50},value:{title:"键值",type:"input",val:"键值"},valueWidth:{title:"键值宽度",type:"number",val:50},color:{title:"文字颜色",type:"color",val:"#FFF700"},borderColor:{title:"边框颜色",type:"color",val:"#000000"}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}},{id:"sys-button-vue",title:"按钮",type:"vue",thumbnail:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0yIDhhMyAzIDAgMCAxIDMtM2gxMGEzIDMgMCAwIDEgMyAzdjNhMyAzIDAgMCAxLTMgM0g1YTMgMyAwIDAgMS0zLTNWOFptNyAxLjVhLjUuNSAwIDAgMCAuNS41SDE0YS41LjUgMCAwIDAgMC0xSDkuNWEuNS41IDAgMCAwLS41LjVabS0xIDBhMS41IDEuNSAwIDEgMC0zIDBhMS41IDEuNSAwIDAgMCAzIDBaIi8+PC9zdmc+",props:{text:{title:"按钮文本",type:"input",val:"按钮文本"},type:{title:"按钮类型",type:"select",val:"",options:[{value:"",label:"默认"},{value:"primary",label:"主要"},{value:"success",label:"成功"},{value:"warning",label:"警告"},{value:"danger",label:"危险"}]},round:{title:"圆角",type:"switch",val:!1}},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}}],configStore=reactive({sysComponent:sysComponentItems,lineRenderOffset:10}),leftAsideStore=reactive({config:new Map([["本地文件",[]],["系统组件",configStore.sysComponent]]),registerConfig:(n,t)=>{if(n=="本地文件"||n=="系统组件"){ElMessage.info(`title:${n}已被系统占用,请更换名称!`);return}leftAsideStore.config.has(n)&&ElMessage.info(`title:${n}已存在,已经将其配置覆盖`);const r=t.map(i=>{if(i.type=="svg"){const{symbol_str:g,width:$,height:V}=svgToSymbol(i.svg,i.id);return{...i,symbol:{symbol_id:i.id,symbol_str:g,width:$,height:V},common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}}}return{...i,common_animations:{val:"",delay:"delay-0s",speed:"slow",repeat:"infinite"}}});leftAsideStore.config.set(n,r)}}),index_vue_vue_type_style_index_0_scoped_d359f9ac_lang="",index_vue_vue_type_style_index_0_scoped_d5d8fc1c_lang="";/**
-* @vue/server-renderer v3.5.26
-* (c) 2018-present Yuxi (Evan) You and Vue contributors
-* @license MIT
-**/const shouldIgnoreProp=makeMap(",key,ref,innerHTML,textContent,ref_key,ref_for");function ssrRenderAttrs(n,t){let r="";for(const i in n){if(shouldIgnoreProp(i)||isOn(i)||t==="textarea"&&i==="value")continue;const g=n[i];i==="class"?r+=` class="${ssrRenderClass(g)}"`:i==="style"?r+=` style="${ssrRenderStyle(g)}"`:i==="className"?r+=` class="${String(g)}"`:r+=ssrRenderDynamicAttr(i,g,t)}return r}function ssrRenderDynamicAttr(n,t,r){if(!isRenderableAttrValue(t))return"";const i=r&&(r.indexOf("-")>0||isSVGTag(r))?n:propsToAttrMap[n]||n.toLowerCase();return isBooleanAttr(i)?includeBooleanAttr(t)?` ${i}`:"":isSSRSafeAttrName(i)?t===""?` ${i}`:` ${i}="${escapeHtml(t)}"`:(console.warn(`[@vue/server-renderer] Skipped rendering unsafe attribute name: ${i}`),"")}function ssrRenderClass(n){return escapeHtml(normalizeClass(n))}function ssrRenderStyle(n){if(!n)return"";if(isString$2(n))return escapeHtml(n);const t=normalizeStyle$1(ssrResetCssVars(n));return escapeHtml(stringifyStyle(t))}function ssrResetCssVars(n){if(!isArray$5(n)&&isObject$6(n)){const t={};for(const r in n)r.startsWith(":--")?t[r.slice(1)]=normalizeCssVarValue(n[r]):t[r]=n[r];return t}return n}function ssrRenderTeleport(n,t,r,i,g){n("");const $=g.appContext.provides[ssrContextKey],V=$.__teleportBuffers||($.__teleportBuffers={}),re=V[r]||(V[r]=[]),ie=re.length;let ae;if(i)t(n),ae="";else{const{getBuffer:oe,push:le}=createBuffer();le(""),t(le),le(""),ae=oe()}re.splice(ie,0,ae),n("")}{const n=getGlobalThis(),t=(r,i)=>{let g;return(g=n[r])||(g=n[r]=[]),g.push(i),$=>{g.length>1?g.forEach(V=>V($)):g[0]($)}};t("__VUE_INSTANCE_SETTERS__",r=>r),t("__VUE_SSR_SETTERS__",r=>r)}function ssrCompile(n,t){throw new Error("On-the-fly template compilation is not supported in the ESM build of @vue/server-renderer. All templates must be pre-compiled into render functions.")}const{createComponentInstance,setCurrentRenderingInstance,setupComponent,renderComponentRoot,normalizeVNode,pushWarningContext,popWarningContext}=ssrUtils;function createBuffer(){let n=!1;const t=[];return{getBuffer(){return t},push(r){const i=isString$2(r);if(n&&i){t[t.length-1]+=r;return}t.push(r),n=i,(isPromise(r)||isArray$5(r)&&r.hasAsync)&&(t.hasAsync=!0)}}}function renderComponentVNode(n,t=null,r){const i=n.component=createComponentInstance(n,t,null),g=setupComponent(i,!0),$=isPromise(g);let V=i.sp;return $||V?Promise.resolve(g).then(()=>{if($&&(V=i.sp),V)return Promise.all(V.map(ie=>ie.call(i.proxy)))}).catch(NOOP).then(()=>renderComponentSubTree(i,r)):renderComponentSubTree(i,r)}function renderComponentSubTree(n,t){const r=n.type,{getBuffer:i,push:g}=createBuffer();if(isFunction$4(r)){let $=renderComponentRoot(n);if(!r.props)for(const V in n.attrs)V.startsWith("data-v-")&&(($.props||($.props={}))[V]="");renderVNode(g,n.subTree=$,n,t)}else{(!n.render||n.render===NOOP)&&!n.ssrRender&&!r.ssrRender&&isString$2(r.template)&&(r.ssrRender=ssrCompile(r.template));const $=n.ssrRender||r.ssrRender;if($){let V=n.inheritAttrs!==!1?n.attrs:void 0,re=!1,ie=n;for(;;){const oe=ie.vnode.scopeId;oe&&(re||(V={...V},re=!0),V[oe]="");const le=ie.parent;if(le&&le.subTree&&le.subTree===ie.vnode)ie=le;else break}if(t){re||(V={...V});const oe=t.trim().split(" ");for(let le=0;le"))}return i()}function renderVNode(n,t,r,i){const{type:g,shapeFlag:$,children:V,dirs:re,props:ie}=t;switch(re&&(t.props=applySSRDirectives(t,ie,re)),g){case Text$1:n(escapeHtml(V));break;case Comment:n(V?``:"");break;case Static:n(V);break;case Fragment:t.slotScopeIds&&(i=(i?i+" ":"")+t.slotScopeIds.join(" ")),n(""),renderVNodeChildren(n,V,r,i),n("");break;default:$&1?renderElementVNode(n,t,r,i):$&6?n(renderComponentVNode(t,r,i)):$&64?renderTeleportVNode(n,t,r,i):$&128&&renderVNode(n,t.ssContent,r,i)}}function renderVNodeChildren(n,t,r,i){for(let g=0;g"),!isVoidTag(g)){let ue=!1;$&&($.innerHTML?(ue=!0,n($.innerHTML)):$.textContent?(ue=!0,n(escapeHtml($.textContent))):g==="textarea"&&$.value&&(ue=!0,n(escapeHtml($.value)))),ue||(re&8?n(escapeHtml(V)):re&16&&renderVNodeChildren(n,V,r,i)),n(`${g}>`)}}function applySSRDirectives(n,t,r){const i=[];for(let g=0;g{renderVNodeChildren(V,t.children,r,i)},g,$||$==="",r)}const{isVNode:isVNode$1}=ssrUtils;function nestedUnrollBuffer(n,t,r){if(!n.hasAsync)return t+unrollBufferSync$1(n);let i=t;for(let g=r;g(n[g]=re,nestedUnrollBuffer(n,i,g)));const V=nestedUnrollBuffer($,i,0);if(isPromise(V))return V.then(re=>(n[g]=re,nestedUnrollBuffer(n,"",g)));i=V}return i}function unrollBuffer$1(n){return nestedUnrollBuffer(n,"",0)}function unrollBufferSync$1(n){let t="";for(let r=0;rn}),t);const r=createVNode$1(n._component,n._props);r.appContext=n._context,n.provide(ssrContextKey,t);const i=await renderComponentVNode(r),g=await unrollBuffer$1(i);if(await resolveTeleports(t),t.__watcherHandles)for(const $ of t.__watcherHandles)$();return g}async function resolveTeleports(n){if(n.__teleportBuffers){n.teleports=n.teleports||{};for(const t in n.__teleportBuffers)n.teleports[t]=await unrollBuffer$1(await Promise.all([n.__teleportBuffers[t]]))}}initDirectivesForSSR();const cacheStore=reactive({boundingBox:[],setBoundingBox:n=>{cacheStore.boundingBox=n},adsorbPoint:[],setAdsorbPoint(n){cacheStore.adsorbPoint=n},copy:[],setCopy(n){cacheStore.copy=n},history:[[]],historyIndex:0,addHistory(n){nextTick(()=>{cacheStore.historyIndex+120&&(cacheStore.history.shift(),cacheStore.historyIndex=cacheStore.history.length-1)})}}),index_vue_vue_type_style_index_0_scoped_cef6b2df_lang="",index_vue_vue_type_style_index_0_lang$1="",index_vue_vue_type_style_index_0_scroped_true_lang="",index_vue_vue_type_style_index_0_scoped_e248ab51_lang="",index_vue_vue_type_style_index_0_scoped_3704de4f_lang="",index_vue_vue_type_style_index_0_scoped_e515623d_lang="",contextMenuStore=reactive({menuInfo:{display:!1,left:0,top:0,info:{selectAll:{title:"全选",hot_key:"Ctrl + A",enable:!1},copy:{title:"复制",hot_key:"Ctrl + C",enable:!1},paste:{title:"粘贴",hot_key:"Ctrl + V",enable:!1},delete:{title:"删除",hot_key:"Delete",enable:!1},group:{title:"组合",hot_key:"Ctrl + G",enable:!1},ungroup:{title:"取消组合",hot_key:"Ctrl + U",enable:!1},moveTop:{title:"置顶",hot_key:"Ctrl + Right",enable:!1},moveUp:{title:"上移",hot_key:"Ctrl + Up",enable:!1},moveDown:{title:"下移",hot_key:"Ctrl + Down",enable:!1},moveBottom:{title:"置底",hot_key:"Ctrl + Left",enable:!1}}},setMenuInfo:n=>{contextMenuStore.menuInfo=n},setDisplayItem:n=>{for(const t in contextMenuStore.menuInfo.info)contextMenuStore.menuInfo.info[t].enable=!1;n.forEach(t=>{contextMenuStore.menuInfo.info[t].enable=!0})}}),index_vue_vue_type_style_index_0_scoped_306a5bcf_lang="";var ace$2={exports:{}};(function(n,t){(function(){var r="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var g=function(oe,le,ue){if(typeof oe!="string"){g.original?g.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(ue=le),g.modules[oe]||(g.payloads[oe]=ue,g.modules[oe]=null)};g.modules={},g.payloads={};var $=function(oe,le,ue){if(typeof le=="string"){var de=ie(oe,le);if(de!=null)return ue&&ue(),de}else if(Object.prototype.toString.call(le)==="[object Array]"){for(var he=[],pe=0,_e=le.length;pe<_e;++pe){var Ce=ie(oe,le[pe]);if(Ce==null&&V.original)return;he.push(Ce)}return ue&&ue.apply(null,he)||!0}},V=function(oe,le){var ue=$("",oe,le);return ue==null&&V.original?V.original.apply(this,arguments):ue},re=function(oe,le){if(le.indexOf("!")!==-1){var ue=le.split("!");return re(oe,ue[0])+"!"+re(oe,ue[1])}if(le.charAt(0)=="."){var de=oe.split("/").slice(0,-1).join("/");for(le=de+"/"+le;le.indexOf(".")!==-1&&he!=le;){var he=le;le=le.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return le},ie=function(oe,le){le=re(oe,le);var ue=g.modules[le];if(!ue){if(ue=g.payloads[le],typeof ue=="function"){var de={},he={id:le,uri:"",exports:de,packaged:!0},pe=function(Ce,xe){return $(le,Ce,xe)},_e=ue(pe,de,he);de=_e||he.exports,g.modules[le]=de,delete g.payloads[le]}ue=g.modules[le]=de||ue}return ue};function ae(oe){var le=i;oe&&(i[oe]||(i[oe]={}),le=i[oe]),(!le.define||!le.define.packaged)&&(g.original=le.define,le.define=g,le.define.packaged=!0),(!le.require||!le.require.packaged)&&(V.original=le.require,le.require=V,le.require.packaged=!0)}ae(r)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(r,i,g){function $(V,re,ie){Object.defineProperty(V,re,{value:ie,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||$(String.prototype,"startsWith",function(V,re){return re=re||0,this.lastIndexOf(V,re)===re}),String.prototype.endsWith||$(String.prototype,"endsWith",function(V,re){var ie=this;(re===void 0||re>ie.length)&&(re=ie.length),re-=V.length;var ae=ie.indexOf(V,re);return ae!==-1&&ae===re}),String.prototype.repeat||$(String.prototype,"repeat",function(V){for(var re="",ie=this;V>0;)V&1&&(re+=ie),(V>>=1)&&(ie+=ie);return re}),String.prototype.includes||$(String.prototype,"includes",function(V,re){return this.indexOf(V,re)!=-1}),Object.assign||(Object.assign=function(V){if(V==null)throw new TypeError("Cannot convert undefined or null to object");for(var re=Object(V),ie=1;ie>>0,ae=arguments[1],oe=ae>>0,le=oe<0?Math.max(ie+oe,0):Math.min(oe,ie),ue=arguments[2],de=ue===void 0?ie:ue>>0,he=de<0?Math.max(ie+de,0):Math.min(de,ie);le0;)ie&1&&(ae+=re),(ie>>=1)&&(re+=re);return ae};var $=/^\s\s*/,V=/\s\s*$/;i.stringTrimLeft=function(re){return re.replace($,"")},i.stringTrimRight=function(re){return re.replace(V,"")},i.copyObject=function(re){var ie={};for(var ae in re)ie[ae]=re[ae];return ie},i.copyArray=function(re){for(var ie=[],ae=0,oe=re.length;ae65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(r,i,g){i.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},i.getOS=function(){return i.isMac?i.OS.MAC:i.isLinux?i.OS.LINUX:i.OS.WINDOWS};var $=typeof navigator=="object"?navigator:{},V=(/mac|win|linux/i.exec($.platform)||["other"])[0].toLowerCase(),re=$.userAgent||"",ie=$.appName||"";i.isWin=V=="win",i.isMac=V=="mac",i.isLinux=V=="linux",i.isIE=ie=="Microsoft Internet Explorer"||ie.indexOf("MSAppHost")>=0?parseFloat((re.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((re.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),i.isOldIE=i.isIE&&i.isIE<9,i.isGecko=i.isMozilla=re.match(/ Gecko\/\d+/),i.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",i.isWebKit=parseFloat(re.split("WebKit/")[1])||void 0,i.isChrome=parseFloat(re.split(" Chrome/")[1])||void 0,i.isSafari=parseFloat(re.split(" Safari/")[1])&&!i.isChrome||void 0,i.isEdge=parseFloat(re.split(" Edge/")[1])||void 0,i.isAIR=re.indexOf("AdobeAIR")>=0,i.isAndroid=re.indexOf("Android")>=0,i.isChromeOS=re.indexOf(" CrOS ")>=0,i.isIOS=/iPad|iPhone|iPod/.test(re)&&!window.MSStream,i.isIOS&&(i.isMac=!0),i.isMobile=i.isIOS||i.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(r,i,g){var $=r("./useragent"),V="http://www.w3.org/1999/xhtml";i.buildDom=function ue(de,he,pe){if(typeof de=="string"&&de){var _e=document.createTextNode(de);return he&&he.appendChild(_e),_e}if(!Array.isArray(de))return de&&de.appendChild&&he&&he.appendChild(de),de;if(typeof de[0]!="string"||!de[0]){for(var Ce=[],xe=0;xe"u")){if(ie){if(he)ae();else if(he===!1)return ie.push([ue,de])}if(!re){var pe=he;!he||!he.getRootNode?pe=document:(pe=he.getRootNode(),(!pe||pe==he)&&(pe=document));var _e=pe.ownerDocument||pe;if(de&&i.hasCssString(de,pe))return null;de&&(ue+=`
-/*# sourceURL=ace/css/`+de+" */");var Ce=i.createElement("style");Ce.appendChild(_e.createTextNode(ue)),de&&(Ce.id=de),pe==_e&&(pe=i.getDocumentHead(_e)),pe.insertBefore(Ce,pe.firstChild)}}}if(i.importCssString=oe,i.importCssStylsheet=function(ue,de){i.buildDom(["link",{rel:"stylesheet",href:ue}],i.getDocumentHead(de))},i.$fixPositionBug=function(ue){var de=ue.getBoundingClientRect();if(ue.style.left){var he=parseFloat(ue.style.left),pe=+de.left;Math.abs(he-pe)>1&&(ue.style.left=2*he-pe+"px")}if(ue.style.right){var he=parseFloat(ue.style.right),pe=window.innerWidth-de.right;Math.abs(he-pe)>1&&(ue.style.right=2*he-pe+"px")}if(ue.style.top){var he=parseFloat(ue.style.top),pe=+de.top;Math.abs(he-pe)>1&&(ue.style.top=2*he-pe+"px")}if(ue.style.bottom){var he=parseFloat(ue.style.bottom),pe=window.innerHeight-de.bottom;Math.abs(he-pe)>1&&(ue.style.bottom=2*he-pe+"px")}},i.scrollbarWidth=function(ue){var de=i.createElement("ace_inner");de.style.width="100%",de.style.minWidth="0px",de.style.height="200px",de.style.display="block";var he=i.createElement("ace_outer"),pe=he.style;pe.position="absolute",pe.left="-10000px",pe.overflow="hidden",pe.width="200px",pe.minWidth="0px",pe.height="150px",pe.display="block",he.appendChild(de);var _e=ue&&ue.documentElement||document&&document.documentElement;if(!_e)return 0;_e.appendChild(he);var Ce=de.offsetWidth;pe.overflow="scroll";var xe=de.offsetWidth;return Ce===xe&&(xe=he.clientWidth),_e.removeChild(he),Ce-xe},i.computedStyle=function(ue,de){return window.getComputedStyle(ue,"")||{}},i.setStyle=function(ue,de,he){ue[de]!==he&&(ue[de]=he)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=$.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,$.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var le=document.createElement("div");i.HI_DPI&&le.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!$.isEdge&&typeof le.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),le=null}i.HAS_CSS_TRANSFORMS?i.translate=function(ue,de,he){ue.style.transform="translate("+Math.round(de)+"px, "+Math.round(he)+"px)"}:i.translate=function(ue,de,he){ue.style.top=Math.round(he)+"px",ue.style.left=Math.round(de)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(r,i,g){/*
-* based on code from:
-*
-* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
-* Available via the MIT or new BSD license.
-* see: http://github.com/jrburke/requirejs for details
-*/var $=r("./dom");i.get=function(V,re){var ie=new XMLHttpRequest;ie.open("GET",V,!0),ie.onreadystatechange=function(){ie.readyState===4&&re(ie.responseText)},ie.send(null)},i.loadScript=function(V,re){var ie=$.getDocumentHead(),ae=document.createElement("script");ae.src=V,ie.appendChild(ae),ae.onload=ae.onreadystatechange=function(oe,le){(le||!ae.readyState||ae.readyState=="loaded"||ae.readyState=="complete")&&(ae=ae.onload=ae.onreadystatechange=null,le||re())}},i.qualifyURL=function(V){var re=document.createElement("a");return re.href=V,re.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(r,i,g){i.inherits=function($,V){$.super_=V,$.prototype=Object.create(V.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function($,V){for(var re in V)$[re]=V[re];return $},i.implement=function($,V){i.mixin($,V)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(r,i,g){var $={},V=function(){this.propagationStopped=!0},re=function(){this.defaultPrevented=!0};$._emit=$._dispatchEvent=function(ie,ae){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var oe=this._eventRegistry[ie]||[],le=this._defaultHandlers[ie];if(!(!oe.length&&!le)){(typeof ae!="object"||!ae)&&(ae={}),ae.type||(ae.type=ie),ae.stopPropagation||(ae.stopPropagation=V),ae.preventDefault||(ae.preventDefault=re),oe=oe.slice();for(var ue=0;ue1&&(Ce=pe[pe.length-2]);var Ie=ae[he+"Path"];return Ie==null?Ie=ae.basePath:_e=="/"&&(he=_e=""),Ie&&Ie.slice(-1)!="/"&&(Ie+="/"),Ie+he+_e+Ce+this.get("suffix")},i.setModuleUrl=function(de,he){return ae.$moduleUrls[de]=he};var oe=function(de,he){if(de==="ace/theme/textmate"||de==="./theme/textmate")return he(null,r("./theme/textmate"));if(le)return le(de,he);console.error("loader is not configured")},le;i.setLoader=function(de){le=de},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(de,he){var pe;if(Array.isArray(de))var _e=de[0],Ce=de[1];else if(typeof de=="string")var Ce=de;var xe=function(Ie){if(Ie&&!i.$loading[Ce])return he&&he(Ie);if(i.$loading[Ce]||(i.$loading[Ce]=[]),i.$loading[Ce].push(he),!(i.$loading[Ce].length>1)){var Ne=function(){oe(Ce,function(Oe,$e){$e&&(i.$loaded[Ce]=$e),i._emit("load.module",{name:Ce,module:$e});var Ve=i.$loading[Ce];i.$loading[Ce]=null,Ve.forEach(function(Ue){Ue&&Ue($e)})})};if(!i.get("packaged"))return Ne();V.loadScript(i.moduleUrl(Ce,_e),Ne),ue()}};if(i.dynamicModules[Ce])i.dynamicModules[Ce]().then(function(Ie){Ie.default?xe(Ie.default):xe(Ie)});else{try{pe=this.$require(Ce)}catch{}xe(pe||i.$loaded[Ce])}},i.$require=function(de){if(typeof g.require=="function"){var he="require";return g[he](de)}},i.setModuleLoader=function(de,he){i.dynamicModules[de]=he};var ue=function(){!ae.basePath&&!ae.workerPath&&!ae.modePath&&!ae.themePath&&!Object.keys(ae.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),ue=function(){})};i.version="1.43.5"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(r,i,g){r("./lib/fixoldbrowsers");var $=r("./config");$.setLoader(function(ae,oe){r([ae],function(le){oe(null,le)})});var V=function(){return this||typeof window<"u"&&window}();g.exports=function(ae){$.init=re,$.$require=r,ae.require=r},re(!0);function re(ae){if(!(!V||!V.document)){$.set("packaged",ae||r.packaged||g.packaged||V.define&&(void 0).packaged);var oe={},le="",ue=document.currentScript||document._currentScript,de=ue&&ue.ownerDocument||document;ue&&ue.src&&(le=ue.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var he=de.getElementsByTagName("script"),pe=0;pe ["+this.end.row+"/"+this.end.column+"]"},V.prototype.contains=function(re,ie){return this.compare(re,ie)==0},V.prototype.compareRange=function(re){var ie,ae=re.end,oe=re.start;return ie=this.compare(ae.row,ae.column),ie==1?(ie=this.compare(oe.row,oe.column),ie==1?2:ie==0?1:0):ie==-1?-2:(ie=this.compare(oe.row,oe.column),ie==-1?-1:ie==1?42:0)},V.prototype.comparePoint=function(re){return this.compare(re.row,re.column)},V.prototype.containsRange=function(re){return this.comparePoint(re.start)==0&&this.comparePoint(re.end)==0},V.prototype.intersects=function(re){var ie=this.compareRange(re);return ie==-1||ie==0||ie==1},V.prototype.isEnd=function(re,ie){return this.end.row==re&&this.end.column==ie},V.prototype.isStart=function(re,ie){return this.start.row==re&&this.start.column==ie},V.prototype.setStart=function(re,ie){typeof re=="object"?(this.start.column=re.column,this.start.row=re.row):(this.start.row=re,this.start.column=ie)},V.prototype.setEnd=function(re,ie){typeof re=="object"?(this.end.column=re.column,this.end.row=re.row):(this.end.row=re,this.end.column=ie)},V.prototype.inside=function(re,ie){return this.compare(re,ie)==0?!(this.isEnd(re,ie)||this.isStart(re,ie)):!1},V.prototype.insideStart=function(re,ie){return this.compare(re,ie)==0?!this.isEnd(re,ie):!1},V.prototype.insideEnd=function(re,ie){return this.compare(re,ie)==0?!this.isStart(re,ie):!1},V.prototype.compare=function(re,ie){return!this.isMultiLine()&&re===this.start.row?iethis.end.column?1:0:rethis.end.row?1:this.start.row===re?ie>=this.start.column?0:-1:this.end.row===re?ie<=this.end.column?0:1:0},V.prototype.compareStart=function(re,ie){return this.start.row==re&&this.start.column==ie?-1:this.compare(re,ie)},V.prototype.compareEnd=function(re,ie){return this.end.row==re&&this.end.column==ie?1:this.compare(re,ie)},V.prototype.compareInside=function(re,ie){return this.end.row==re&&this.end.column==ie?1:this.start.row==re&&this.start.column==ie?-1:this.compare(re,ie)},V.prototype.clipRows=function(re,ie){if(this.end.row>ie)var ae={row:ie+1,column:0};else if(this.end.rowie)var oe={row:ie+1,column:0};else if(this.start.row1?(Ue++,Ue>4&&(Ue=1)):Ue=1,V.isIE){var At=Math.abs(kt.clientX-Fe)>5||Math.abs(kt.clientY-ze)>5;(!Pt||At)&&(Ue=1),Pt&&clearTimeout(Pt),Pt=setTimeout(function(){Pt=null},Ne[Ue-1]||600),Ue==1&&(Fe=kt.clientX,ze=kt.clientY)}if(kt._clicks=Ue,Oe[$e]("mousedown",kt),Ue>4)Ue=0;else if(Ue>1)return Oe[$e](qe[Ue],kt)}Array.isArray(Ie)||(Ie=[Ie]),Ie.forEach(function(kt){de(kt,"mousedown",Et,Ve)})};function pe(Ie){return 0|(Ie.ctrlKey?1:0)|(Ie.altKey?2:0)|(Ie.shiftKey?4:0)|(Ie.metaKey?8:0)}i.getModifierString=function(Ie){return $.KEY_MODS[pe(Ie)]};function _e(Ie,Ne,Oe){var $e=pe(Ne);if(!Oe&&Ne.code&&(Oe=$.$codeToKeyCode[Ne.code]||Oe),!V.isMac&&re){if(Ne.getModifierState&&(Ne.getModifierState("OS")||Ne.getModifierState("Win"))&&($e|=8),re.altGr)if((3&$e)!=3)re.altGr=0;else return;if(Oe===18||Oe===17){var Ve=Ne.location;if(Oe===17&&Ve===1)re[Oe]==1&&(ie=Ne.timeStamp);else if(Oe===18&&$e===3&&Ve===2){var Ue=Ne.timeStamp-ie;Ue<50&&(re.altGr=!0)}}}if(Oe in $.MODIFIER_KEYS&&(Oe=-1),!(!$e&&Oe===13&&Ne.location===3&&(Ie(Ne,$e,-Oe),Ne.defaultPrevented))){if(V.isChromeOS&&$e&8){if(Ie(Ne,$e,Oe),Ne.defaultPrevented)return;$e&=-9}return!$e&&!(Oe in $.FUNCTION_KEYS)&&!(Oe in $.PRINTABLE_KEYS)?!1:Ie(Ne,$e,Oe)}}i.addCommandKeyListener=function(Ie,Ne,Oe){var $e=null;de(Ie,"keydown",function(Ve){re[Ve.keyCode]=(re[Ve.keyCode]||0)+1;var Ue=_e(Ne,Ve,Ve.keyCode);return $e=Ve.defaultPrevented,Ue},Oe),de(Ie,"keypress",function(Ve){$e&&(Ve.ctrlKey||Ve.altKey||Ve.shiftKey||Ve.metaKey)&&(i.stopEvent(Ve),$e=null)},Oe),de(Ie,"keyup",function(Ve){re[Ve.keyCode]=null},Oe),re||(Ce(),de(window,"focus",Ce))};function Ce(){re=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!V.isOldIE){var xe=1;i.nextTick=function(Ie,Ne){Ne=Ne||window;var Oe="zero-timeout-message-"+xe++,$e=function(Ve){Ve.data==Oe&&(i.stopPropagation(Ve),he(Ne,"message",$e),Ie())};de(Ne,"message",$e),Ne.postMessage(Oe,"*")}}i.$idleBlocked=!1,i.onIdle=function(Ie,Ne){return setTimeout(function Oe(){i.$idleBlocked?setTimeout(Oe,100):Ie()},Ne)},i.$idleBlockId=null,i.blockIdle=function(Ie){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},Ie||100)},i.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),i.nextFrame?i.nextFrame=i.nextFrame.bind(window):i.nextFrame=function(Ie){setTimeout(Ie,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(r,i,g){var $;g.exports={lineMode:!1,pasteCancelled:function(){return $&&$>Date.now()-50?!0:$=!1},cancel:function(){$=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(r,i,g){var $=r("../lib/event"),V=r("../config").nls,re=r("../lib/useragent"),ie=r("../lib/dom"),ae=r("../lib/lang"),oe=r("../clipboard"),le=re.isChrome<18,ue=re.isIE,de=re.isChrome>63,he=400,pe=r("../lib/keys"),_e=pe.KEY_MODS,Ce=re.isIOS,xe=Ce?/\s/:/\n/,Ie=re.isMobile,Ne=function(){function Oe($e,Ve){var Ue=this;this.host=Ve,this.text=ie.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",$e.insertBefore(this.text,$e.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",Ie||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),$.addListener(this.text,"blur",function(Fe){Ue.ignoreFocusEvents||(Ve.onBlur(Fe),Ue.$isFocused=!1)},Ve),$.addListener(this.text,"focus",function(Fe){if(!Ue.ignoreFocusEvents){if(Ue.$isFocused=!0,re.isEdge)try{if(!document.hasFocus())return}catch{}Ve.onFocus(Fe),re.isEdge?setTimeout(Ue.resetSelection.bind(Ue)):Ue.resetSelection()}},Ve),this.$focusScroll=!1,Ve.on("beforeEndOperation",function(){var Fe=Ve.curOp,ze=Fe&&Fe.command&&Fe.command.name;if(ze!="insertstring"){var Pt=ze&&(Fe.docChanged||Fe.selectionChanged);Ue.inComposition&&Pt&&(Ue.lastValue=Ue.text.value="",Ue.onCompositionEnd()),Ue.resetSelection()}}),Ve.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=Ce?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&Ve.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,$.addCommandKeyListener(this.text,function(Fe,ze,Pt){if(!Ue.inComposition)return Ve.onCommandKey(Fe,ze,Pt)},Ve),$.addListener(this.text,"select",this.onSelect.bind(this),Ve),$.addListener(this.text,"input",this.onInput.bind(this),Ve),$.addListener(this.text,"cut",this.onCut.bind(this),Ve),$.addListener(this.text,"copy",this.onCopy.bind(this),Ve),$.addListener(this.text,"paste",this.onPaste.bind(this),Ve),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&$.addListener($e,"keydown",function(Fe){if(!(re.isMac&&!Fe.metaKey||!Fe.ctrlKey))switch(Fe.keyCode){case 67:Ue.onCopy(Fe);break;case 86:Ue.onPaste(Fe);break;case 88:Ue.onCut(Fe);break}},Ve),this.syncComposition=ae.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),$.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),Ve),$.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),Ve),$.addListener(this.text,"keyup",this.onKeyup.bind(this),Ve),$.addListener(this.text,"keydown",this.syncComposition.bind(this),Ve),$.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),Ve),this.closeTimeout,$.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),Ve),$.addListener(this.text,"mousedown",function(Fe){Fe.preventDefault(),Ue.onContextMenuClose()},Ve),$.addListener(Ve.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),Ve),$.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),Ve),Ce&&this.addIosSelectionHandler($e,Ve,this.text)}return Oe.prototype.addIosSelectionHandler=function($e,Ve,Ue){var Fe=this,ze=null,Pt=!1;Ue.addEventListener("keydown",function(Et){ze&&clearTimeout(ze),Pt=!0},!0),Ue.addEventListener("keyup",function(Et){ze=setTimeout(function(){Pt=!1},100)},!0);var qe=function(Et){if(document.activeElement===Ue&&!(Pt||Fe.inComposition||Ve.$mouseHandler.isMousePressed)&&!Fe.copied){var kt=Ue.selectionStart,At=Ue.selectionEnd,Dt=null,Lt=0;if(kt==0?Dt=pe.up:kt==1?Dt=pe.home:At>Fe.lastSelectionEnd&&Fe.lastValue[At]==`
-`?Dt=pe.end:ktFe.lastSelectionEnd&&Fe.lastValue.slice(0,At).split(`
-`).length>2?Dt=pe.down:At>Fe.lastSelectionEnd&&Fe.lastValue[At-1]==" "?(Dt=pe.right,Lt=_e.option):(At>Fe.lastSelectionEnd||At==Fe.lastSelectionEnd&&Fe.lastSelectionEnd!=Fe.lastSelectionStart&&kt==At)&&(Dt=pe.right),kt!==At&&(Lt|=_e.shift),Dt){var jt=Ve.onCommandKey({},Lt,Dt);if(!jt&&Ve.commands){Dt=pe.keyCodeToString(Dt);var hn=Ve.commands.findKeyCommand(Lt,Dt);hn&&Ve.execCommand(hn)}Fe.lastSelectionStart=kt,Fe.lastSelectionEnd=At,Fe.resetSelection("")}}};document.addEventListener("selectionchange",qe),Ve.on("destroy",function(){document.removeEventListener("selectionchange",qe)})},Oe.prototype.onContextMenuClose=function(){var $e=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){$e.tempStyle&&($e.text.style.cssText=$e.tempStyle,$e.tempStyle=""),$e.host.renderer.$isMousePressed=!1,$e.host.renderer.$keepTextAreaAtCursor&&$e.host.renderer.$moveTextAreaToCursor()},0)},Oe.prototype.$onContextMenu=function($e){this.host.textInput.onContextMenu($e),this.onContextMenuClose()},Oe.prototype.onKeyup=function($e){$e.keyCode==27&&this.text.value.lengthhe+100||xe.test(Ue)||Ie&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},Oe.prototype.sendText=function($e,Ve){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),$e&&this.host.onPaste($e),this.pasted=!1,"";for(var Ue=this.text.selectionStart,Fe=this.text.selectionEnd,ze=this.lastSelectionStart,Pt=this.lastValue.length-this.lastSelectionEnd,qe=$e,Et=$e.length-Ue,kt=$e.length-Fe,At=0;ze>0&&this.lastValue[At]==$e[At];)At++,ze--;for(qe=qe.slice(At),At=1;Pt>0&&this.lastValue.length-At>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-At]==$e[$e.length-At];)At++,Pt--;Et-=At-1,kt-=At-1;var Dt=qe.length-At+1;if(Dt<0&&(ze=-Dt,Dt=0),qe=qe.slice(0,Dt),!Ve&&!qe&&!Et&&!ze&&!Pt&&!kt)return"";this.sendingText=!0;var Lt=!1;return re.isAndroid&&qe==". "&&(qe=" ",Lt=!0),qe&&!ze&&!Pt&&!Et&&!kt||this.commandMode?this.host.onTextInput(qe):this.host.onTextInput(qe,{extendLeft:ze,extendRight:Pt,restoreStart:Et,restoreEnd:kt}),this.sendingText=!1,this.lastValue=$e,this.lastSelectionStart=Ue,this.lastSelectionEnd=Fe,this.lastRestoreEnd=kt,Lt?`
-`:qe},Oe.prototype.onSelect=function($e){var Ve=this;if(!this.inComposition){var Ue=function(Fe){return Fe.selectionStart===0&&Fe.selectionEnd>=Ve.lastValue.length&&Fe.value===Ve.lastValue&&Ve.lastValue&&Fe.selectionEnd!==Ve.lastSelectionEnd};this.copied?this.copied=!1:Ue(this.text)?(this.host.selectAll(),this.resetSelection()):Ie&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection()}},Oe.prototype.$resetSelectionIOS=function($e){if(!(!this.$isFocused||this.copied&&!$e||this.sendingText)){$e||($e="");var Ve=`
- ab`+$e+`cde fg
-`;Ve!=this.text.value&&(this.text.value=this.lastValue=Ve);var Ue=4,Fe=4+($e.length||(this.host.selection.isEmpty()?0:1));(this.lastSelectionStart!=Ue||this.lastSelectionEnd!=Fe)&&this.text.setSelectionRange(Ue,Fe),this.lastSelectionStart=Ue,this.lastSelectionEnd=Fe}},Oe.prototype.$resetSelection=function(){var $e=this;if(!(this.inComposition||this.sendingText)&&!(!this.$isFocused&&!this.afterContextMenu)){this.inComposition=!0;var Ve=0,Ue=0,Fe="",ze=function(hn,vn){for(var _n=vn,wn=1;wn<=hn-$e.rowStart&&wn<2*$e.numberOfExtraLines+1;wn++)_n+=$e.host.session.getLine(hn-wn).length+1;return _n};if(this.host.session){var Pt=this.host.selection,qe=Pt.getRange(),Et=Pt.cursor.row;Et===this.rowEnd+1?(this.rowStart=this.rowEnd+1,this.rowEnd=this.rowStart+2*this.numberOfExtraLines):Et===this.rowStart-1?(this.rowEnd=this.rowStart-1,this.rowStart=this.rowEnd-2*this.numberOfExtraLines):(Etthis.rowEnd+1)&&(this.rowStart=Et>this.numberOfExtraLines?Et-this.numberOfExtraLines:0,this.rowEnd=Et>this.numberOfExtraLines?Et+this.numberOfExtraLines:2*this.numberOfExtraLines);for(var kt=[],At=this.rowStart;At<=this.rowEnd;At++)kt.push(this.host.session.getLine(At));if(Fe=kt.join(`
-`),Ve=ze(qe.start.row,qe.start.column),Ue=ze(qe.end.row,qe.end.column),qe.start.rowthis.rowEnd){var Lt=this.host.session.getLine(this.rowEnd+1);Ue=qe.end.row>this.rowEnd+1?Lt.length:qe.end.column,Ue+=Fe.length+1,Fe=Fe+`
-`+Lt}else Ie&&Et>0&&(Fe=`
-`+Fe,Ue+=1,Ve+=1);Fe.length>he&&(Ve1),ue.preventDefault()},le.prototype.startSelect=function(ue,de){ue=ue||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var he=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?he.selection.selectToPosition(ue):de||he.selection.moveToPosition(ue),de||this.select(),he.setStyle("ace_selecting"),this.setState("select"))},le.prototype.select=function(){var ue,de=this.editor,he=de.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var pe=this.$clickSelection.comparePoint(he);if(pe==-1)ue=this.$clickSelection.end;else if(pe==1)ue=this.$clickSelection.start;else{var _e=oe(this.$clickSelection,he,de.session);he=_e.cursor,ue=_e.anchor}de.selection.setSelectionAnchor(ue.row,ue.column)}de.selection.selectToPosition(he),de.renderer.scrollCursorIntoView()},le.prototype.extendSelectionBy=function(ue){var de,he=this.editor,pe=he.renderer.screenToTextCoordinates(this.x,this.y),_e=he.selection[ue](pe.row,pe.column);if(this.$clickSelection){var Ce=this.$clickSelection.comparePoint(_e.start),xe=this.$clickSelection.comparePoint(_e.end);if(Ce==-1&&xe<=0)de=this.$clickSelection.end,(_e.end.row!=pe.row||_e.end.column!=pe.column)&&(pe=_e.start);else if(xe==1&&Ce>=0)de=this.$clickSelection.start,(_e.start.row!=pe.row||_e.start.column!=pe.column)&&(pe=_e.end);else if(Ce==-1&&xe==1)pe=_e.end,de=_e.start;else{var Ie=oe(this.$clickSelection,pe,he.session);pe=Ie.cursor,de=Ie.anchor}he.selection.setSelectionAnchor(de.row,de.column)}he.selection.selectToPosition(pe),he.renderer.scrollCursorIntoView()},le.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},le.prototype.focusWait=function(){var ue=ae(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),de=Date.now();(ue>V||de-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},le.prototype.onDoubleClick=function(ue){var de=ue.getDocumentPosition(),he=this.editor,pe=he.session,_e=pe.getBracketRange(de);_e?(_e.isEmpty()&&(_e.start.column--,_e.end.column++),this.setState("select")):(_e=he.selection.getWordRange(de.row,de.column),this.setState("selectByWords")),this.$clickSelection=_e,this.select()},le.prototype.onTripleClick=function(ue){var de=ue.getDocumentPosition(),he=this.editor;this.setState("selectByLines");var pe=he.getSelectionRange();pe.isMultiLine()&&pe.contains(de.row,de.column)?(this.$clickSelection=he.selection.getLineRange(pe.start.row),this.$clickSelection.end=he.selection.getLineRange(pe.end.row).end):this.$clickSelection=he.selection.getLineRange(de.row),this.select()},le.prototype.onQuadClick=function(ue){var de=this.editor;de.selectAll(),this.$clickSelection=de.getSelectionRange(),this.setState("selectAll")},le.prototype.onMouseWheel=function(ue){if(!ue.getAccelKey()){ue.getShiftKey()&&ue.wheelY&&!ue.wheelX&&(ue.wheelX=ue.wheelY,ue.wheelY=0);var de=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var he=this.$lastScroll,pe=ue.domEvent.timeStamp,_e=pe-he.t,Ce=_e?ue.wheelX/_e:he.vx,xe=_e?ue.wheelY/_e:he.vy;_e=1&&de.renderer.isScrollableBy(ue.wheelX*ue.speed,0)&&(Ne=!0),Ie<=1&&de.renderer.isScrollableBy(0,ue.wheelY*ue.speed)&&(Ne=!0),Ne)he.allowed=pe;else if(pe-he.allowedre.clientHeight;ie||V.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(r,i,g){var $=this&&this.__extends||function(){var pe=function(_e,Ce){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Ie){xe.__proto__=Ie}||function(xe,Ie){for(var Ne in Ie)Object.prototype.hasOwnProperty.call(Ie,Ne)&&(xe[Ne]=Ie[Ne])},pe(_e,Ce)};return function(_e,Ce){if(typeof Ce!="function"&&Ce!==null)throw new TypeError("Class extends value "+String(Ce)+" is not a constructor or null");pe(_e,Ce);function xe(){this.constructor=_e}_e.prototype=Ce===null?Object.create(Ce):(xe.prototype=Ce.prototype,new xe)}}(),V=this&&this.__values||function(pe){var _e=typeof Symbol=="function"&&Symbol.iterator,Ce=_e&&pe[_e],xe=0;if(Ce)return Ce.call(pe);if(pe&&typeof pe.length=="number")return{next:function(){return pe&&xe>=pe.length&&(pe=void 0),{value:pe&&pe[xe++],done:!pe}}};throw new TypeError(_e?"Object is not iterable.":"Symbol.iterator is not defined.")},re=r("./lib/dom");r("./lib/event");var ie=r("./range").Range,ae=r("./lib/scroll").preventParentScroll,oe="ace_tooltip",le=function(){function pe(_e){this.isOpen=!1,this.$element=null,this.$parentNode=_e}return pe.prototype.$init=function(){return this.$element=re.createElement("div"),this.$element.className=oe,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},pe.prototype.getElement=function(){return this.$element||this.$init()},pe.prototype.setText=function(_e){this.getElement().textContent=_e},pe.prototype.setHtml=function(_e){this.getElement().innerHTML=_e},pe.prototype.setPosition=function(_e,Ce){this.getElement().style.left=_e+"px",this.getElement().style.top=Ce+"px"},pe.prototype.setClassName=function(_e){re.addCssClass(this.getElement(),_e)},pe.prototype.setTheme=function(_e){this.theme&&(this.theme.isDark&&re.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&re.removeCssClass(this.getElement(),this.theme.cssClass)),_e.isDark&&re.addCssClass(this.getElement(),"ace_dark"),_e.cssClass&&re.addCssClass(this.getElement(),_e.cssClass),this.theme={isDark:_e.isDark,cssClass:_e.cssClass}},pe.prototype.show=function(_e,Ce,xe){_e!=null&&this.setText(_e),Ce!=null&&xe!=null&&this.setPosition(Ce,xe),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},pe.prototype.hide=function(_e){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=oe,this.isOpen=!1)},pe.prototype.getHeight=function(){return this.getElement().offsetHeight},pe.prototype.getWidth=function(){return this.getElement().offsetWidth},pe.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},pe}(),ue=function(){function pe(){this.popups=[]}return pe.prototype.addPopup=function(_e){this.popups.push(_e),this.updatePopups()},pe.prototype.removePopup=function(_e){var Ce=this.popups.indexOf(_e);Ce!==-1&&(this.popups.splice(Ce,1),this.updatePopups())},pe.prototype.updatePopups=function(){var _e,Ce,xe,Ie;this.popups.sort(function(qe,Et){return Et.priority-qe.priority});var Ne=[];try{for(var Oe=V(this.popups),$e=Oe.next();!$e.done;$e=Oe.next()){var Ve=$e.value,Ue=!0;try{for(var Fe=(xe=void 0,V(Ne)),ze=Fe.next();!ze.done;ze=Fe.next()){var Pt=ze.value;if(this.doPopupsOverlap(Pt,Ve)){Ue=!1;break}}}catch(qe){xe={error:qe}}finally{try{ze&&!ze.done&&(Ie=Fe.return)&&Ie.call(Fe)}finally{if(xe)throw xe.error}}Ue?Ne.push(Ve):Ve.hide()}}catch(qe){_e={error:qe}}finally{try{$e&&!$e.done&&(Ce=Oe.return)&&Ce.call(Oe)}finally{if(_e)throw _e.error}}},pe.prototype.doPopupsOverlap=function(_e,Ce){var xe=_e.getElement().getBoundingClientRect(),Ie=Ce.getElement().getBoundingClientRect();return xe.leftIe.left&&xe.topIe.top},pe}(),de=new ue;i.popupManager=de,i.Tooltip=le;var he=function(pe){$(_e,pe);function _e(Ce){Ce===void 0&&(Ce=document.body);var xe=pe.call(this,Ce)||this;xe.timeout=void 0,xe.lastT=0,xe.idleTime=350,xe.lastEvent=void 0,xe.onMouseOut=xe.onMouseOut.bind(xe),xe.onMouseMove=xe.onMouseMove.bind(xe),xe.waitForHover=xe.waitForHover.bind(xe),xe.hide=xe.hide.bind(xe);var Ie=xe.getElement();return Ie.style.whiteSpace="pre-wrap",Ie.style.pointerEvents="auto",Ie.addEventListener("mouseout",xe.onMouseOut),Ie.tabIndex=-1,Ie.addEventListener("blur",(function(){Ie.contains(document.activeElement)||this.hide()}).bind(xe)),Ie.addEventListener("wheel",ae),xe}return _e.prototype.addToEditor=function(Ce){Ce.on("mousemove",this.onMouseMove),Ce.on("mousedown",this.hide);var xe=Ce.renderer.getMouseEventTarget();xe&&typeof xe.removeEventListener=="function"&&xe.addEventListener("mouseout",this.onMouseOut,!0)},_e.prototype.removeFromEditor=function(Ce){Ce.off("mousemove",this.onMouseMove),Ce.off("mousedown",this.hide);var xe=Ce.renderer.getMouseEventTarget();xe&&typeof xe.removeEventListener=="function"&&xe.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},_e.prototype.onMouseMove=function(Ce,xe){this.lastEvent=Ce,this.lastT=Date.now();var Ie=xe.$mouseHandler.isMousePressed;if(this.isOpen){var Ne=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(Ne.row,Ne.column)||Ie||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||Ie||(this.lastEvent=Ce,this.timeout=setTimeout(this.waitForHover,this.idleTime))},_e.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var Ce=Date.now()-this.lastT;if(this.idleTime-Ce>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-Ce);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},_e.prototype.isOutsideOfText=function(Ce){var xe=Ce.editor,Ie=Ce.getDocumentPosition(),Ne=xe.session.getLine(Ie.row);if(Ie.column==Ne.length){var Oe=xe.renderer.pixelToScreenCoordinates(Ce.clientX,Ce.clientY),$e=xe.session.documentToScreenPosition(Ie.row,Ie.column);if($e.column!=Oe.column||$e.row!=Oe.row)return!0}return!1},_e.prototype.setDataProvider=function(Ce){this.$gatherData=Ce},_e.prototype.showForRange=function(Ce,xe,Ie,Ne){if(!(Ne&&Ne!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var Oe=Ce.renderer;this.isOpen||(de.addPopup(this),this.$registerCloseEvents(),this.setTheme(Oe.theme)),this.isOpen=!0,this.range=ie.fromPoints(xe.start,xe.end);var $e=Oe.textToScreenCoordinates(xe.start.row,xe.start.column),Ve=Oe.scroller.getBoundingClientRect();$e.pageX=he.length&&(he=void 0),{value:he&&he[Ce++],done:!he}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")},re=r("../lib/dom"),ie=r("./mouse_event").MouseEvent,ae=r("../tooltip").HoverTooltip,oe=r("../config").nls,le=r("../range").Range;function ue(he){var pe=he.editor,_e=pe.renderer.$gutterLayer;he.$tooltip=new de(pe),he.$tooltip.addToEditor(pe),he.$tooltip.setDataProvider(function(Ce,xe){var Ie=Ce.getDocumentPosition().row;he.$tooltip.showTooltip(Ie)}),he.editor.setDefaultHandler("guttermousedown",function(Ce){if(!(!pe.isFocused()||Ce.getButton()!=0)){var xe=_e.getRegion(Ce);if(xe!="foldWidgets"){var Ie=Ce.getDocumentPosition().row,Ne=pe.session.selection;if(Ce.getShiftKey())Ne.selectTo(Ie,0);else{if(Ce.domEvent.detail==2)return pe.selectAll(),Ce.preventDefault();he.$clickSelection=pe.selection.getLineRange(Ie)}return he.setState("selectByLines"),he.captureMouse(Ce),Ce.preventDefault()}}})}i.GutterHandler=ue;var de=function(he){$(pe,he);function pe(_e){var Ce=he.call(this,_e.container)||this;Ce.id="gt"+ ++pe.$uid,Ce.editor=_e,Ce.visibleTooltipRow;var xe=Ce.getElement();return xe.setAttribute("role","tooltip"),xe.setAttribute("id",Ce.id),xe.style.pointerEvents="auto",Ce.idleTime=50,Ce.onDomMouseMove=Ce.onDomMouseMove.bind(Ce),Ce.onDomMouseOut=Ce.onDomMouseOut.bind(Ce),Ce.setClassName("ace_gutter-tooltip"),Ce}return pe.prototype.onDomMouseMove=function(_e){var Ce=new ie(_e,this.editor);this.onMouseMove(Ce,this.editor)},pe.prototype.onDomMouseOut=function(_e){var Ce=new ie(_e,this.editor);this.onMouseOut(Ce)},pe.prototype.addToEditor=function(_e){var Ce=_e.renderer.$gutter;Ce.addEventListener("mousemove",this.onDomMouseMove),Ce.addEventListener("mouseout",this.onDomMouseOut),he.prototype.addToEditor.call(this,_e)},pe.prototype.removeFromEditor=function(_e){var Ce=_e.renderer.$gutter;Ce.removeEventListener("mousemove",this.onDomMouseMove),Ce.removeEventListener("mouseout",this.onDomMouseOut),he.prototype.removeFromEditor.call(this,_e)},pe.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),he.prototype.destroy.call(this)},Object.defineProperty(pe,"annotationLabels",{get:function(){return{error:{singular:oe("gutter-tooltip.aria-label.error.singular","error"),plural:oe("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:oe("gutter-tooltip.aria-label.security.singular","security finding"),plural:oe("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:oe("gutter-tooltip.aria-label.warning.singular","warning"),plural:oe("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:oe("gutter-tooltip.aria-label.info.singular","information message"),plural:oe("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:oe("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:oe("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),pe.prototype.showTooltip=function(_e){var Ce,xe=this.editor.renderer.$gutterLayer,Ie=xe.$annotations[_e],Ne;Ie?Ne={displayText:Array.from(Ie.displayText),type:Array.from(Ie.type)}:Ne={displayText:[],type:[]};var Oe=xe.session.getFoldLine(_e);if(Oe&&xe.$showFoldedAnnotations){for(var $e={error:[],security:[],warning:[],info:[],hint:[]},Ve={error:1,security:2,warning:3,info:4,hint:5},Ue,Fe=_e+1;Fe<=Oe.end.row;Fe++)if(xe.$annotations[Fe])for(var ze=0;ze2)return xe.childNodes[2]}},pe.prototype.$findCellByRow=function(_e){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(Ce){return Ce.row===_e})},pe.prototype.hide=function(_e){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null){var Ce=this.$findLinkedAnnotationNode(this.visibleTooltipRow);Ce&&Ce.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),he.prototype.hide.call(this,_e)}},pe.annotationsToSummaryString=function(_e){var Ce,xe,Ie=[],Ne=["error","security","warning","info","hint"];try{for(var Oe=V(Ne),$e=Oe.next();!$e.done;$e=Oe.next()){var Ve=$e.value;if(_e[Ve].length){var Ue=_e[Ve].length===1?pe.annotationLabels[Ve].singular:pe.annotationLabels[Ve].plural;Ie.push("".concat(_e[Ve].length," ").concat(Ue))}}}catch(Fe){Ce={error:Fe}}finally{try{$e&&!$e.done&&(xe=Oe.return)&&xe.call(Oe)}finally{if(Ce)throw Ce.error}}return Ie.join(", ")},pe.prototype.isOutsideOfText=function(_e){var Ce=_e.editor,xe=Ce.renderer.$gutter.getBoundingClientRect();return!(_e.clientX>=xe.left&&_e.clientX<=xe.right&&_e.clientY>=xe.top&&_e.clientY<=xe.bottom)},pe}(ae);de.$uid=0,i.GutterTooltip=de}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(r,i,g){var $=r("../lib/dom"),V=r("../lib/event"),re=r("../lib/useragent"),ie=200,ae=200,oe=5;function le(de){var he=de.editor,pe=$.createElement("div");pe.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",pe.textContent=" ";var _e=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];_e.forEach(function(bn){de[bn]=this[bn]},this),he.on("mousedown",this.onMouseDown.bind(de));var Ce=he.container,xe,Ie,Ne,Oe,$e,Ve,Ue=0,Fe,ze,Pt,qe,Et;this.onDragStart=function(bn){if(this.cancelDrag||!Ce.draggable){var Cn=this;return setTimeout(function(){Cn.startSelect(),Cn.captureMouse(bn)},0),bn.preventDefault()}$e=he.getSelectionRange();var Sn=bn.dataTransfer;Sn.effectAllowed=he.getReadOnly()?"copy":"copyMove",he.container.appendChild(pe),Sn.setDragImage&&Sn.setDragImage(pe,0,0),setTimeout(function(){he.container.removeChild(pe)}),Sn.clearData(),Sn.setData("Text",he.session.getTextRange()),ze=!0,this.setState("drag")},this.onDragEnd=function(bn){if(Ce.draggable=!1,ze=!1,this.setState(null),!he.getReadOnly()){var Cn=bn.dataTransfer.dropEffect;!Fe&&Cn=="move"&&he.session.remove(he.getSelectionRange()),he.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(bn){if(!(he.getReadOnly()||!_n(bn.dataTransfer)))return Ie=bn.clientX,Ne=bn.clientY,xe||Lt(),Ue++,bn.dataTransfer.dropEffect=Fe=wn(bn),V.preventDefault(bn)},this.onDragOver=function(bn){if(!(he.getReadOnly()||!_n(bn.dataTransfer)))return Ie=bn.clientX,Ne=bn.clientY,xe||(Lt(),Ue++),hn!==null&&(hn=null),bn.dataTransfer.dropEffect=Fe=wn(bn),V.preventDefault(bn)},this.onDragLeave=function(bn){if(Ue--,Ue<=0&&xe)return jt(),Fe=null,V.preventDefault(bn)},this.onDrop=function(bn){if(Ve){var Cn=bn.dataTransfer;if(ze)switch(Fe){case"move":$e.contains(Ve.row,Ve.column)?$e={start:Ve,end:Ve}:$e=he.moveText($e,Ve);break;case"copy":$e=he.moveText($e,Ve,!0);break}else{var Sn=Cn.getData("Text");$e={start:Ve,end:he.session.insert(Ve,Sn)},he.focus(),Fe=null}return jt(),V.preventDefault(bn)}},V.addListener(Ce,"dragstart",this.onDragStart.bind(de),he),V.addListener(Ce,"dragend",this.onDragEnd.bind(de),he),V.addListener(Ce,"dragenter",this.onDragEnter.bind(de),he),V.addListener(Ce,"dragover",this.onDragOver.bind(de),he),V.addListener(Ce,"dragleave",this.onDragLeave.bind(de),he),V.addListener(Ce,"drop",this.onDrop.bind(de),he);function kt(bn,Cn){var Sn=Date.now(),Tn=!Cn||bn.row!=Cn.row,En=!Cn||bn.column!=Cn.column;if(!qe||Tn||En)he.moveCursorToPosition(bn),qe=Sn,Et={x:Ie,y:Ne};else{var kn=ue(Et.x,Et.y,Ie,Ne);kn>oe?qe=null:Sn-qe>=ae&&(he.renderer.scrollCursorIntoView(),qe=null)}}function At(bn,Cn){var Sn=Date.now(),Tn=he.renderer.layerConfig.lineHeight,En=he.renderer.layerConfig.characterWidth,kn=he.renderer.scroller.getBoundingClientRect(),$n={x:{left:Ie-kn.left,right:kn.right-Ie},y:{top:Ne-kn.top,bottom:kn.bottom-Ne}},An=Math.min($n.x.left,$n.x.right),xn=Math.min($n.y.top,$n.y.bottom),Ln={row:bn.row,column:bn.column};An/En<=2&&(Ln.column+=$n.x.left<$n.x.right?-3:2),xn/Tn<=1&&(Ln.row+=$n.y.top<$n.y.bottom?-1:1);var Nn=bn.row!=Ln.row,Pn=bn.column!=Ln.column,On=!Cn||bn.row!=Cn.row;Nn||Pn&&!On?Pt?Sn-Pt>=ie&&he.renderer.scrollCursorIntoView(Ln):Pt=Sn:Pt=null}function Dt(){var bn=Ve;Ve=he.renderer.screenToTextCoordinates(Ie,Ne),kt(Ve,bn),At(Ve,bn)}function Lt(){$e=he.selection.toOrientedRange(),xe=he.session.addMarker($e,"ace_selection",he.getSelectionStyle()),he.clearSelection(),he.isFocused()&&he.renderer.$cursorLayer.setBlinking(!1),clearInterval(Oe),Dt(),Oe=setInterval(Dt,20),Ue=0,V.addListener(document,"mousemove",vn)}function jt(){clearInterval(Oe),he.session.removeMarker(xe),xe=null,he.selection.fromOrientedRange($e),he.isFocused()&&!ze&&he.$resetCursorStyle(),$e=null,Ve=null,Ue=0,Pt=null,qe=null,V.removeListener(document,"mousemove",vn)}var hn=null;function vn(){hn==null&&(hn=setTimeout(function(){hn!=null&&xe&&jt()},20))}function _n(bn){var Cn=bn.types;return!Cn||Array.prototype.some.call(Cn,function(Sn){return Sn=="text/plain"||Sn=="Text"})}function wn(bn){var Cn=["copy","copymove","all","uninitialized"],Sn=["move","copymove","linkmove","all","uninitialized"],Tn=re.isMac?bn.altKey:bn.ctrlKey,En="uninitialized";try{En=bn.dataTransfer.effectAllowed.toLowerCase()}catch{}var kn="none";return Tn&&Cn.indexOf(En)>=0?kn="copy":Sn.indexOf(En)>=0?kn="move":Cn.indexOf(En)>=0&&(kn="copy"),kn}}(function(){this.dragWait=function(){var de=Date.now()-this.mousedownEvent.time;de>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var de=this.editor.container;de.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(de){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var de=this.editor,he=de.container;he.draggable=!0,de.renderer.$cursorLayer.setBlinking(!1),de.setStyle("ace_dragging");var pe=re.isWin?"default":"move";de.renderer.setCursorStyle(pe),this.setState("dragReady")},this.onMouseDrag=function(de){var he=this.editor.container;if(re.isIE&&this.state=="dragReady"){var pe=ue(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);pe>3&&he.dragDrop()}if(this.state==="dragWait"){var pe=ue(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);pe>0&&(he.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(de){if(this.$dragEnabled){this.mousedownEvent=de;var he=this.editor,pe=de.inSelection(),_e=de.getButton(),Ce=de.domEvent.detail||1;if(Ce===1&&_e===0&&pe){if(de.editor.inMultiSelectMode&&(de.getAccelKey()||de.getShiftKey()))return;this.mousedownEvent.time=Date.now();var xe=de.domEvent.target||de.domEvent.srcElement;if("unselectable"in xe&&(xe.unselectable="on"),he.getDragDelay()){if(re.isWebKit){this.cancelDrag=!0;var Ie=he.container;Ie.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(de,this.onMouseDrag.bind(this)),de.defaultPrevented=!0}}}}).call(le.prototype);function ue(de,he,pe,_e){return Math.sqrt(Math.pow(pe-de,2)+Math.pow(_e-he,2))}i.DragdropHandler=le}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(r,i,g){var $=r("./mouse_event").MouseEvent,V=r("../lib/event"),re=r("../lib/dom");i.addTouchListeners=function(ie,ae){var oe="scroll",le,ue,de,he,pe,_e,Ce=0,xe,Ie=0,Ne=0,Oe=0,$e,Ve;function Ue(){var kt=window.navigator&&window.navigator.clipboard,At=!1,Dt=function(){var hn=ae.getCopyText(),vn=ae.session.getUndoManager().hasUndo();Ve.replaceChild(re.buildDom(At?["span",!hn&&Lt("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],hn&&Lt("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],hn&&Lt("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],kt&&Lt("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],vn&&Lt("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],Lt("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],Lt("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),Ve.firstChild)},Lt=function(hn){return ae.commands.canExecute(hn,ae)},jt=function(hn){var vn=hn.target.getAttribute("action");if(vn=="more"||!At)return At=!At,Dt();vn=="paste"?kt.readText().then(function(_n){ae.execCommand(vn,_n)}):vn&&((vn=="cut"||vn=="copy")&&(kt?kt.writeText(ae.getCopyText()):document.execCommand("copy")),ae.execCommand(vn)),Ve.firstChild.style.display="none",At=!1,vn!="openCommandPalette"&&ae.focus()};Ve=re.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(hn){oe="menu",hn.stopPropagation(),hn.preventDefault(),ae.textInput.focus()},ontouchend:function(hn){hn.stopPropagation(),hn.preventDefault(),jt(hn)},onclick:jt},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],ae.container)}function Fe(){if(!ae.getOption("enableMobileMenu")){Ve&&ze();return}Ve||Ue();var kt=ae.selection.cursor,At=ae.renderer.textToScreenCoordinates(kt.row,kt.column),Dt=ae.renderer.textToScreenCoordinates(0,0).pageX,Lt=ae.renderer.scrollLeft,jt=ae.container.getBoundingClientRect();Ve.style.top=At.pageY-jt.top-3+"px",At.pageX-jt.left=2?ae.selection.getLineRange(xe.row):ae.session.getBracketRange(xe);kt&&!kt.isEmpty()?ae.selection.setRange(kt):ae.selection.selectWord(),oe="wait"}V.addListener(ie,"contextmenu",function(kt){if($e){var At=ae.textInput.getElement();At.focus()}},ae),V.addListener(ie,"touchstart",function(kt){var At=kt.touches;if(pe||At.length>1){clearTimeout(pe),pe=null,de=-1,oe="zoom";return}$e=ae.$mouseHandler.isMousePressed=!0;var Dt=ae.renderer.layerConfig.lineHeight,Lt=ae.renderer.layerConfig.lineHeight,jt=kt.timeStamp;he=jt;var hn=At[0],vn=hn.clientX,_n=hn.clientY;Math.abs(le-vn)+Math.abs(ue-_n)>Dt&&(de=-1),le=kt.clientX=vn,ue=kt.clientY=_n,Ne=Oe=0;var wn=new $(kt,ae);if(xe=wn.getDocumentPosition(),jt-de<500&&At.length==1&&!Ce)Ie++,kt.preventDefault(),kt.button=0,qe();else{Ie=0;var bn=ae.selection.cursor,Cn=ae.selection.isEmpty()?bn:ae.selection.anchor,Sn=ae.renderer.$cursorLayer.getPixelPosition(bn,!0),Tn=ae.renderer.$cursorLayer.getPixelPosition(Cn,!0),En=ae.renderer.scroller.getBoundingClientRect(),kn=ae.renderer.layerConfig.offset,$n=ae.renderer.scrollLeft,An=function(Nn,Pn){return Nn=Nn/Lt,Pn=Pn/Dt-.75,Nn*Nn+Pn*Pn};if(kt.clientXLn?"cursor":"anchor"),Ln<3.5?oe="anchor":xn<3.5?oe="cursor":oe="scroll",pe=setTimeout(Pt,450)}de=jt},ae),V.addListener(ie,"touchend",function(kt){$e=ae.$mouseHandler.isMousePressed=!1,_e&&clearInterval(_e),oe=="zoom"?(oe="",Ce=0):pe?(ae.selection.moveToPosition(xe),Ce=0,Fe()):oe=="scroll"?(Et(),ze()):Fe(),clearTimeout(pe),pe=null},ae),V.addListener(ie,"touchmove",function(kt){pe&&(clearTimeout(pe),pe=null);var At=kt.touches;if(!(At.length>1||oe=="zoom")){var Dt=At[0],Lt=le-Dt.clientX,jt=ue-Dt.clientY;if(oe=="wait")if(Lt*Lt+jt*jt>4)oe="cursor";else return kt.preventDefault();le=Dt.clientX,ue=Dt.clientY,kt.clientX=Dt.clientX,kt.clientY=Dt.clientY;var hn=kt.timeStamp,vn=hn-he;if(he=hn,oe=="scroll"){var _n=new $(kt,ae);_n.speed=1,_n.wheelX=Lt,_n.wheelY=jt,10*Math.abs(Lt)0)if(Ln==16){for(On=Pn;On-1){for(On=Pn;On=0&&Tn[In]==$e;In--)Cn[In]=$}}}function vn(bn,Cn,Sn){if(!(V=bn){for(kn=En+1;kn=bn;)kn++;for($n=En,An=kn-1;$n=Cn.length||(kn=Sn[Tn-1])!=_e&&kn!=Ce||($n=Cn[Tn+1])!=_e&&$n!=Ce?xe:(re&&($n=Ce),$n==kn?$n:xe);case Ue:return kn=Tn>0?Sn[Tn-1]:Ie,kn==_e&&Tn+10&&Sn[Tn-1]==_e)return _e;if(re)return xe;for(xn=Tn+1,An=Cn.length;xn=1425&&Ln<=2303||Ln==64286;if(kn=Cn[xn],Nn&&(kn==pe||kn==Oe))return pe}return Tn<1||(kn=Cn[Tn-1])==Ie?xe:Sn[Tn-1];case Ie:return re=!1,ie=!0,$;case Ne:return ae=!0,xe;case Pt:case qe:case kt:case At:case Et:re=!1;case Dt:return xe}}function wn(bn){var Cn=bn.charCodeAt(0),Sn=Cn>>8;return Sn==0?Cn>191?he:Lt[Cn]:Sn==5?/[\u0591-\u05f4]/.test(bn)?pe:he:Sn==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(bn)?ze:/[\u0660-\u0669\u066b-\u066c]/.test(bn)?Ce:Cn==1642?Fe:/[\u06f0-\u06f9]/.test(bn)?_e:Oe:Sn==32&&Cn<=8287?jt[Cn&255]:Sn==254&&Cn>=65136?Oe:xe}i.L=he,i.R=pe,i.EN=_e,i.ON_R=3,i.AN=4,i.R_H=5,i.B=6,i.RLE=7,i.DOT="·",i.doBidiReorder=function(bn,Cn,Sn){if(bn.length<2)return{};var Tn=bn.split(""),En=new Array(Tn.length),kn=new Array(Tn.length),$n=[];$=Sn?de:ue,hn(Tn,$n,Tn.length,Cn);for(var An=0;AnOe&&Cn[An]0&&Tn[An-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(Tn[An])&&($n[An-1]=$n[An]=i.R_H,An++);Tn[Tn.length-1]===i.DOT&&($n[Tn.length-1]=i.B),Tn[0]===""&&($n[0]=i.RLE);for(var An=0;An=0&&(oe=this.session.$docRowCache[ue])}return oe},ae.prototype.getSplitIndex=function(){var oe=0,le=this.session.$screenRowCache;if(le.length)for(var ue,de=this.session.$getRowCacheIndex(le,this.currentRow);this.currentRow-oe>0&&(ue=this.session.$getRowCacheIndex(le,this.currentRow-oe-1),ue===de);)de=ue,oe++;else oe=this.currentRow;return oe},ae.prototype.updateRowLine=function(oe,le){oe===void 0&&(oe=this.getDocumentRow());var ue=oe===this.session.getLength()-1,de=ue?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(oe),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var he=this.session.$wrapData[oe];he&&(le===void 0&&(le=this.getSplitIndex()),le>0&&he.length?(this.wrapIndent=he.indent,this.wrapOffset=this.wrapIndent*this.charWidths[$.L],this.line=lele?this.session.getOverwrite()?oe:oe-1:le,de=$.getVisualFromLogicalIdx(ue,this.bidiMap),he=this.bidiMap.bidiLevels,pe=0;!this.session.getOverwrite()&&oe<=le&&he[de]%2!==0&&de++;for(var _e=0;_ele&&he[de]%2===0&&(pe+=this.charWidths[he[de]]),this.wrapIndent&&(pe+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(pe+=this.rtlLineOffset),pe},ae.prototype.getSelections=function(oe,le){var ue=this.bidiMap,de=ue.bidiLevels,he,pe=[],_e=0,Ce=Math.min(oe,le)-this.wrapIndent,xe=Math.max(oe,le)-this.wrapIndent,Ie=!1,Ne=!1,Oe=0;this.wrapIndent&&(_e+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var $e,Ve=0;Ve=Ce&&$ede+_e/2;){if(de+=_e,he===pe.length-1){_e=0;break}_e=this.charWidths[pe[++he]]}return he>0&&pe[he-1]%2!==0&&pe[he]%2===0?(ue0&&pe[he-1]%2===0&&pe[he]%2!==0?le=1+(ue>de?this.bidiMap.logicalFromVisual[he]:this.bidiMap.logicalFromVisual[he-1]):this.isRtlDir&&he===pe.length-1&&_e===0&&pe[he-1]%2===0||!this.isRtlDir&&he===0&&pe[he]%2!==0?le=1+this.bidiMap.logicalFromVisual[he]:(he>0&&pe[he-1]%2!==0&&_e!==0&&he--,le=this.bidiMap.logicalFromVisual[he]),le===0&&this.isRtlDir&&le++,le+this.wrapIndent},ae}();i.BidiHandler=ie}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(r,i,g){var $=r("./lib/oop"),V=r("./lib/lang"),re=r("./lib/event_emitter").EventEmitter,ie=r("./range").Range,ae=function(){function oe(le){this.session=le,this.doc=le.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var ue=this;this.cursor.on("change",function(de){ue.$cursorChanged=!0,ue.$silent||ue._emit("changeCursor"),!ue.$isEmpty&&!ue.$silent&&ue._emit("changeSelection"),!ue.$keepDesiredColumnOnChange&&de.old.column!=de.value.column&&(ue.$desiredColumn=null)}),this.anchor.on("change",function(){ue.$anchorChanged=!0,!ue.$isEmpty&&!ue.$silent&&ue._emit("changeSelection")})}return oe.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},oe.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},oe.prototype.getCursor=function(){return this.lead.getPosition()},oe.prototype.setAnchor=function(le,ue){this.$isEmpty=!1,this.anchor.setPosition(le,ue)},oe.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},oe.prototype.getSelectionLead=function(){return this.lead.getPosition()},oe.prototype.isBackwards=function(){var le=this.anchor,ue=this.lead;return le.row>ue.row||le.row==ue.row&&le.column>ue.column},oe.prototype.getRange=function(){var le=this.anchor,ue=this.lead;return this.$isEmpty?ie.fromPoints(ue,ue):this.isBackwards()?ie.fromPoints(ue,le):ie.fromPoints(le,ue)},oe.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},oe.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},oe.prototype.setRange=function(le,ue){var de=ue?le.end:le.start,he=ue?le.start:le.end;this.$setSelection(de.row,de.column,he.row,he.column)},oe.prototype.$setSelection=function(le,ue,de,he){if(!this.$silent){var pe=this.$isEmpty,_e=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(le,ue),this.cursor.setPosition(de,he),this.$isEmpty=!ie.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||pe!=this.$isEmpty||_e)&&this._emit("changeSelection")}},oe.prototype.$moveSelection=function(le){var ue=this.lead;this.$isEmpty&&this.setSelectionAnchor(ue.row,ue.column),le.call(this)},oe.prototype.selectTo=function(le,ue){this.$moveSelection(function(){this.moveCursorTo(le,ue)})},oe.prototype.selectToPosition=function(le){this.$moveSelection(function(){this.moveCursorToPosition(le)})},oe.prototype.moveTo=function(le,ue){this.clearSelection(),this.moveCursorTo(le,ue)},oe.prototype.moveToPosition=function(le){this.clearSelection(),this.moveCursorToPosition(le)},oe.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},oe.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},oe.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},oe.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},oe.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},oe.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},oe.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},oe.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},oe.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},oe.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},oe.prototype.getWordRange=function(le,ue){if(typeof ue>"u"){var de=le||this.lead;le=de.row,ue=de.column}return this.session.getWordRange(le,ue)},oe.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},oe.prototype.selectAWord=function(){var le=this.getCursor(),ue=this.session.getAWordRange(le.row,le.column);this.setSelectionRange(ue)},oe.prototype.getLineRange=function(le,ue){var de=typeof le=="number"?le:this.lead.row,he,pe=this.session.getFoldLine(de);return pe?(de=pe.start.row,he=pe.end.row):he=de,ue===!0?new ie(de,0,he,this.session.getLine(he).length):new ie(de,0,he+1,0)},oe.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},oe.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},oe.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},oe.prototype.wouldMoveIntoSoftTab=function(le,ue,de){var he=le.column,pe=le.column+ue;return de<0&&(he=le.column-ue,pe=le.column),this.session.isTabStop(le)&&this.doc.getLine(le.row).slice(he,pe).split(" ").length-1==ue},oe.prototype.moveCursorLeft=function(){var le=this.lead.getPosition(),ue;if(ue=this.session.getFoldAt(le.row,le.column,-1))this.moveCursorTo(ue.start.row,ue.start.column);else if(le.column===0)le.row>0&&this.moveCursorTo(le.row-1,this.doc.getLine(le.row-1).length);else{var de=this.session.getTabSize();this.wouldMoveIntoSoftTab(le,de,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-de):this.moveCursorBy(0,-1)}},oe.prototype.moveCursorRight=function(){var le=this.lead.getPosition(),ue;if(ue=this.session.getFoldAt(le.row,le.column,1))this.moveCursorTo(ue.end.row,ue.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(ue.column=he)}}this.moveCursorTo(ue.row,ue.column)},oe.prototype.moveCursorFileEnd=function(){var le=this.doc.getLength()-1,ue=this.doc.getLine(le).length;this.moveCursorTo(le,ue)},oe.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},oe.prototype.moveCursorLongWordRight=function(){var le=this.lead.row,ue=this.lead.column,de=this.doc.getLine(le),he=de.substring(ue);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var pe=this.session.getFoldAt(le,ue,1);if(pe){this.moveCursorTo(pe.end.row,pe.end.column);return}if(this.session.nonTokenRe.exec(he)&&(ue+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,he=de.substring(ue)),ue>=de.length){this.moveCursorTo(le,de.length),this.moveCursorRight(),le0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(pe)&&(ue-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(le,ue)},oe.prototype.$shortWordEndIndex=function(le){var ue=0,de,he=/\s/,pe=this.session.tokenRe;if(pe.lastIndex=0,this.session.tokenRe.exec(le))ue=this.session.tokenRe.lastIndex;else{for(;(de=le[ue])&&he.test(de);)ue++;if(ue<1){for(pe.lastIndex=0;(de=le[ue])&&!pe.test(de);)if(pe.lastIndex=0,ue++,he.test(de))if(ue>2){ue--;break}else{for(;(de=le[ue])&&he.test(de);)ue++;if(ue>2)break}}}return pe.lastIndex=0,ue},oe.prototype.moveCursorShortWordRight=function(){var le=this.lead.row,ue=this.lead.column,de=this.doc.getLine(le),he=de.substring(ue),pe=this.session.getFoldAt(le,ue,1);if(pe)return this.moveCursorTo(pe.end.row,pe.end.column);if(ue==de.length){var _e=this.doc.getLength();do le++,he=this.doc.getLine(le);while(le<_e&&/^\s*$/.test(he));/^\s+/.test(he)||(he=""),ue=0}var Ce=this.$shortWordEndIndex(he);this.moveCursorTo(le,ue+Ce)},oe.prototype.moveCursorShortWordLeft=function(){var le=this.lead.row,ue=this.lead.column,de;if(de=this.session.getFoldAt(le,ue,-1))return this.moveCursorTo(de.start.row,de.start.column);var he=this.session.getLine(le).substring(0,ue);if(ue===0){do le--,he=this.doc.getLine(le);while(le>0&&/^\s*$/.test(he));ue=he.length,/\s+$/.test(he)||(he="")}var pe=V.stringReverse(he),_e=this.$shortWordEndIndex(pe);return this.moveCursorTo(le,ue-_e)},oe.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},oe.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},oe.prototype.moveCursorBy=function(le,ue){var de=this.session.documentToScreenPosition(this.lead.row,this.lead.column),he;if(ue===0&&(le!==0&&(this.session.$bidiHandler.isBidiRow(de.row,this.lead.row)?(he=this.session.$bidiHandler.getPosLeft(de.column),de.column=Math.round(he/this.session.$bidiHandler.charWidths[0])):he=de.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?de.column=this.$desiredColumn:this.$desiredColumn=de.column),le!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var pe=this.session.lineWidgets[this.lead.row];le<0?le-=pe.rowsAbove||0:le>0&&(le+=pe.rowCount-(pe.rowsAbove||0))}var _e=this.session.screenToDocumentPosition(de.row+le,de.column,he);le!==0&&ue===0&&_e.row===this.lead.row&&(_e.column,this.lead.column),this.moveCursorTo(_e.row,_e.column+ue,ue===0)},oe.prototype.moveCursorToPosition=function(le){this.moveCursorTo(le.row,le.column)},oe.prototype.moveCursorTo=function(le,ue,de){var he=this.session.getFoldAt(le,ue,1);he&&(le=he.start.row,ue=he.start.column),this.$keepDesiredColumnOnChange=!0;var pe=this.session.getLine(le);/[\uDC00-\uDFFF]/.test(pe.charAt(ue))&&pe.charAt(ue-1)&&(this.lead.row==le&&this.lead.column==ue+1?ue=ue-1:ue=ue+1),this.lead.setPosition(le,ue),this.$keepDesiredColumnOnChange=!1,de||(this.$desiredColumn=null)},oe.prototype.moveCursorToScreen=function(le,ue,de){var he=this.session.screenToDocumentPosition(le,ue);this.moveCursorTo(he.row,he.column,de)},oe.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},oe.prototype.fromOrientedRange=function(le){this.setSelectionRange(le,le.cursor==le.start),this.$desiredColumn=le.desiredColumn||this.$desiredColumn},oe.prototype.toOrientedRange=function(le){var ue=this.getRange();return le?(le.start.column=ue.start.column,le.start.row=ue.start.row,le.end.column=ue.end.column,le.end.row=ue.end.row):le=ue,le.cursor=this.isBackwards()?le.start:le.end,le.desiredColumn=this.$desiredColumn,le},oe.prototype.getRangeOfMovements=function(le){var ue=this.getCursor();try{le(this);var de=this.getCursor();return ie.fromPoints(ue,de)}catch{return ie.fromPoints(ue,ue)}finally{this.moveCursorToPosition(ue)}},oe.prototype.toJSON=function(){if(this.rangeCount)var le=this.ranges.map(function(ue){var de=ue.clone();return de.isBackwards=ue.cursor==ue.start,de});else{var le=this.getRange();le.isBackwards=this.isBackwards()}return le},oe.prototype.fromJSON=function(le){if(le.start==null)if(this.rangeList&&le.length>1){this.toSingleRange(le[0]);for(var ue=le.length;ue--;){var de=ie.fromPoints(le[ue].start,le[ue].end);le[ue].isBackwards&&(de.cursor=de.start),this.addRange(de,!0)}return}else le=le[0];this.rangeList&&this.toSingleRange(le),this.setSelectionRange(le,le.isBackwards)},oe.prototype.isEqual=function(le){if((le.length||this.rangeCount)&&le.length!=this.rangeCount)return!1;if(!le.length||!this.ranges)return this.getRange().isEqual(le);for(var ue=this.ranges.length;ue--;)if(!this.ranges[ue].isEqual(le[ue]))return!1;return!0},oe}();ae.prototype.setSelectionAnchor=ae.prototype.setAnchor,ae.prototype.getSelectionAnchor=ae.prototype.getAnchor,ae.prototype.setSelectionRange=ae.prototype.setRange,$.implement(ae.prototype,re),i.Selection=ae}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(r,i,g){var $=r("./lib/report_error").reportError,V=2e3,re=function(){function ie(ae){this.splitRegex,this.states=ae,this.regExps={},this.matchMappings={};for(var oe in this.states){for(var le=this.states[oe],ue=[],de=0,he=this.matchMappings[oe]={defaultToken:"text"},pe="g",_e=[],Ce=0;Ce1?xe.onMatch=this.$applyToken:xe.onMatch=xe.token),Ne>1&&(/\\\d/.test(xe.regex)?Ie=xe.regex.replace(/\\([0-9]+)/g,function(Oe,$e){return"\\"+(parseInt($e,10)+de+1)}):(Ne=1,Ie=this.removeCapturingGroups(xe.regex)),!xe.splitRegex&&typeof xe.token!="string"&&_e.push(xe)),he[de]=Ce,de+=Ne,ue.push(Ie),xe.onMatch||(xe.onMatch=null)}}ue.length||(he[0]=0,ue.push("$")),_e.forEach(function(Oe){Oe.splitRegex=this.createSplitterRegexp(Oe.regex,pe)},this),this.regExps[oe]=new RegExp("("+ue.join(")|(")+")|($)",pe)}}return ie.prototype.$setMaxTokenCount=function(ae){V=ae|0},ie.prototype.$applyToken=function(ae){var oe=this.splitRegex.exec(ae).slice(1),le=this.token.apply(this,oe);if(typeof le=="string")return[{type:le,value:ae}];for(var ue=[],de=0,he=le.length;dexe){var Fe=ae.substring(xe,Ue-Ve.length);Ne.type==Oe?Ne.value+=Fe:(Ne.type&&Ce.push(Ne),Ne={type:Oe,value:Fe})}for(var ze=0;ze<_e.length-2;ze++)if(_e[ze+1]!==void 0){$e=de[he[ze]],$e.onMatch?Oe=$e.onMatch(Ve,ue,le,ae):Oe=$e.token,$e.next&&(typeof $e.next=="string"?ue=$e.next:ue=$e.next(ue,le),de=this.states[ue],de||(this.reportError("state doesn't exist",ue),ue="start",de=this.states[ue]),he=this.matchMappings[ue],xe=Ue,pe=this.regExps[ue],pe.lastIndex=Ue),$e.consumeLineEnd&&(xe=Ue);break}if(Ve){if(typeof Oe=="string")(!$e||$e.merge!==!1)&&Ne.type===Oe?Ne.value+=Ve:(Ne.type&&Ce.push(Ne),Ne={type:Oe,value:Ve});else if(Oe){Ne.type&&Ce.push(Ne),Ne={type:null,value:""};for(var ze=0;zeV){for(Ie>2*ae.length&&this.reportError("infinite loop with in ace tokenizer",{startState:oe,line:ae});xe1&&le[0]!==ue&&le.unshift("#tmp",ue),{tokens:Ce,state:le.length?le:ue}},ie}();re.prototype.reportError=$,i.Tokenizer=re}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(r,i,g){var $=r("../lib/deep_copy").deepCopy,V;V=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(ae,oe){if(!oe){for(var le in ae)this.$rules[le]=ae[le];return}for(var le in ae){for(var ue=ae[le],de=0;de=this.$rowTokens.length;){if(this.$row+=1,ie||(ie=this.$session.getLength()),this.$row>=ie)return this.$row=ie-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},re.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},re.prototype.getCurrentTokenRow=function(){return this.$row},re.prototype.getCurrentTokenColumn=function(){var ie=this.$rowTokens,ae=this.$tokenIndex,oe=ie[ae].start;if(oe!==void 0)return oe;for(oe=0;ae>0;)ae-=1,oe+=ie[ae].value.length;return oe},re.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},re.prototype.getCurrentTokenRange=function(){var ie=this.$rowTokens[this.$tokenIndex],ae=this.getCurrentTokenColumn();return new $(this.$row,ae,this.$row,ae+ie.value.length)},re}();i.TokenIterator=V}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(r,i,g){var $=r("../../lib/oop"),V=r("../behaviour").Behaviour,re=r("../../token_iterator").TokenIterator,ie=r("../../lib/lang"),ae=["text","paren.rparen","rparen","paren","punctuation.operator"],oe=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],le,ue={},de={'"':'"',"'":"'"},he=function(Ce){var xe=-1;if(Ce.multiSelect&&(xe=Ce.selection.index,ue.rangeCount!=Ce.multiSelect.rangeCount&&(ue={rangeCount:Ce.multiSelect.rangeCount})),ue[xe])return le=ue[xe];le=ue[xe]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},pe=function(Ce,xe,Ie,Ne){var Oe=Ce.end.row-Ce.start.row;return{text:Ie+xe+Ne,selection:[0,Ce.start.column+1,Oe,Ce.end.column+(Oe?0:1)]}},_e;_e=function(Ce){Ce=Ce||{},this.add("braces","insertion",function(xe,Ie,Ne,Oe,$e){var Ve=Ne.getCursorPosition(),Ue=Oe.doc.getLine(Ve.row);if($e=="{"){he(Ne);var Fe=Ne.getSelectionRange(),ze=Oe.doc.getTextRange(Fe),Pt=Oe.getTokenAt(Ve.row,Ve.column);if(ze!==""&&ze!=="{"&&Ne.getWrapBehavioursEnabled())return pe(Fe,ze,"{","}");if(Pt&&/(?:string)\.quasi|\.xml/.test(Pt.type)){var qe=[/tag\-(?:open|name)/,/attribute\-name/];return qe.some(function(hn){return hn.test(Pt.type)})||/(string)\.quasi/.test(Pt.type)&&Pt.value[Ve.column-Pt.start-1]!=="$"?void 0:(_e.recordAutoInsert(Ne,Oe,"}"),{text:"{}",selection:[1,1]})}else if(_e.isSaneInsertion(Ne,Oe))return/[\]\}\)]/.test(Ue[Ve.column])||Ne.inMultiSelectMode||Ce.braces?(_e.recordAutoInsert(Ne,Oe,"}"),{text:"{}",selection:[1,1]}):(_e.recordMaybeInsert(Ne,Oe,"{"),{text:"{",selection:[1,1]})}else if($e=="}"){he(Ne);var Et=Ue.substring(Ve.column,Ve.column+1);if(Et=="}"){var kt=Oe.$findOpeningBracket("}",{column:Ve.column+1,row:Ve.row});if(kt!==null&&_e.isAutoInsertedClosing(Ve,Ue,$e))return _e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if($e==`
-`||$e==`\r
-`){he(Ne);var At="";_e.isMaybeInsertedClosing(Ve,Ue)&&(At=ie.stringRepeat("}",le.maybeInsertedBrackets),_e.clearMaybeInsertedClosing());var Et=Ue.substring(Ve.column,Ve.column+1);if(Et==="}"){var Dt=Oe.findMatchingBracket({row:Ve.row,column:Ve.column+1},"}");if(!Dt)return null;var Lt=this.$getIndent(Oe.getLine(Dt.row))}else if(At)var Lt=this.$getIndent(Ue);else{_e.clearMaybeInsertedClosing();return}var jt=Lt+Oe.getTabString();return{text:`
-`+jt+`
-`+Lt+At,selection:[1,jt.length,1,jt.length]}}else _e.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(xe,Ie,Ne,Oe,$e){var Ve=Oe.doc.getTextRange($e);if(!$e.isMultiLine()&&Ve=="{"){he(Ne);var Ue=Oe.doc.getLine($e.start.row),Fe=Ue.substring($e.end.column,$e.end.column+1);if(Fe=="}")return $e.end.column++,$e;le.maybeInsertedBrackets--}}),this.add("parens","insertion",function(xe,Ie,Ne,Oe,$e){if($e=="("){he(Ne);var Ve=Ne.getSelectionRange(),Ue=Oe.doc.getTextRange(Ve);if(Ue!==""&&Ne.getWrapBehavioursEnabled())return pe(Ve,Ue,"(",")");if(_e.isSaneInsertion(Ne,Oe))return _e.recordAutoInsert(Ne,Oe,")"),{text:"()",selection:[1,1]}}else if($e==")"){he(Ne);var Fe=Ne.getCursorPosition(),ze=Oe.doc.getLine(Fe.row),Pt=ze.substring(Fe.column,Fe.column+1);if(Pt==")"){var qe=Oe.$findOpeningBracket(")",{column:Fe.column+1,row:Fe.row});if(qe!==null&&_e.isAutoInsertedClosing(Fe,ze,$e))return _e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(xe,Ie,Ne,Oe,$e){var Ve=Oe.doc.getTextRange($e);if(!$e.isMultiLine()&&Ve=="("){he(Ne);var Ue=Oe.doc.getLine($e.start.row),Fe=Ue.substring($e.start.column+1,$e.start.column+2);if(Fe==")")return $e.end.column++,$e}}),this.add("brackets","insertion",function(xe,Ie,Ne,Oe,$e){if($e=="["){he(Ne);var Ve=Ne.getSelectionRange(),Ue=Oe.doc.getTextRange(Ve);if(Ue!==""&&Ne.getWrapBehavioursEnabled())return pe(Ve,Ue,"[","]");if(_e.isSaneInsertion(Ne,Oe))return _e.recordAutoInsert(Ne,Oe,"]"),{text:"[]",selection:[1,1]}}else if($e=="]"){he(Ne);var Fe=Ne.getCursorPosition(),ze=Oe.doc.getLine(Fe.row),Pt=ze.substring(Fe.column,Fe.column+1);if(Pt=="]"){var qe=Oe.$findOpeningBracket("]",{column:Fe.column+1,row:Fe.row});if(qe!==null&&_e.isAutoInsertedClosing(Fe,ze,$e))return _e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(xe,Ie,Ne,Oe,$e){var Ve=Oe.doc.getTextRange($e);if(!$e.isMultiLine()&&Ve=="["){he(Ne);var Ue=Oe.doc.getLine($e.start.row),Fe=Ue.substring($e.start.column+1,$e.start.column+2);if(Fe=="]")return $e.end.column++,$e}}),this.add("string_dquotes","insertion",function(xe,Ie,Ne,Oe,$e){var Ve=Oe.$mode.$quotes||de;if($e.length==1&&Ve[$e]){if(this.lineCommentStart&&this.lineCommentStart.indexOf($e)!=-1)return;he(Ne);var Ue=$e,Fe=Ne.getSelectionRange(),ze=Oe.doc.getTextRange(Fe);if(ze!==""&&(ze.length!=1||!Ve[ze])&&Ne.getWrapBehavioursEnabled())return pe(Fe,ze,Ue,Ue);if(!ze){var Pt=Ne.getCursorPosition(),qe=Oe.doc.getLine(Pt.row),Et=qe.substring(Pt.column-1,Pt.column),kt=qe.substring(Pt.column,Pt.column+1),At=Oe.getTokenAt(Pt.row,Pt.column),Dt=Oe.getTokenAt(Pt.row,Pt.column+1);if(Et=="\\"&&At&&/escape/.test(At.type))return null;var Lt=At&&/string|escape/.test(At.type),jt=!Dt||/string|escape/.test(Dt.type),hn;if(kt==Ue)hn=Lt!==jt,hn&&/string\.end/.test(Dt.type)&&(hn=!1);else{if(Lt&&!jt||Lt&&jt)return null;var vn=Oe.$mode.tokenRe;vn.lastIndex=0;var _n=vn.test(Et);vn.lastIndex=0;var wn=vn.test(kt),bn=Oe.$mode.$pairQuotesAfter,Cn=bn&&bn[Ue]&&bn[Ue].test(Et);if(!Cn&&_n||wn||kt&&!/[\s;,.})\]\\]/.test(kt))return null;var Sn=qe[Pt.column-2];if(Et==Ue&&(Sn==Ue||vn.test(Sn)))return null;hn=!0}return{text:hn?Ue+Ue:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(xe,Ie,Ne,Oe,$e){var Ve=Oe.$mode.$quotes||de,Ue=Oe.doc.getTextRange($e);if(!$e.isMultiLine()&&Ve.hasOwnProperty(Ue)){he(Ne);var Fe=Oe.doc.getLine($e.start.row),ze=Fe.substring($e.start.column+1,$e.start.column+2);if(ze==Ue)return $e.end.column++,$e}}),Ce.closeDocComment!==!1&&this.add("doc comment end","insertion",function(xe,Ie,Ne,Oe,$e){if(xe==="doc-start"&&($e===`
-`||$e===`\r
-`)&&Ne.selection.isEmpty()){var Ve=Ne.getCursorPosition();if(Ve.column===0)return;for(var Ue=Oe.doc.getLine(Ve.row),Fe=Oe.doc.getLine(Ve.row+1),ze=Oe.getTokens(Ve.row),Pt=0,qe=0;qe=Ve.column){if(Pt===Ve.column){if(!/\.doc/.test(Et.type))return;if(/\*\//.test(Et.value)){var kt=ze[qe+1];if(!kt||!/\.doc/.test(kt.type))return}}var At=Ve.column-(Pt-Et.value.length),Dt=Et.value.indexOf("*/"),Lt=Et.value.indexOf("/**",Dt>-1?Dt+2:0);if(Lt!==-1&&At>Lt&&At=Dt&&At<=Lt||!/\.doc/.test(Et.type))return;break}}var jt=this.$getIndent(Ue);if(/\s*\*/.test(Fe))return/^\s*\*/.test(Ue)?{text:$e+jt+"* ",selection:[1,2+jt.length,1,2+jt.length]}:{text:$e+jt+" * ",selection:[1,3+jt.length,1,3+jt.length]};if(/\/\*\*/.test(Ue.substring(0,Ve.column)))return{text:$e+jt+" * "+$e+" "+jt+"*/",selection:[1,4+jt.length,1,4+jt.length]}}})},_e.isSaneInsertion=function(Ce,xe){var Ie=Ce.getCursorPosition(),Ne=new re(xe,Ie.row,Ie.column);if(!this.$matchTokenType(Ne.getCurrentToken()||"text",ae)){if(/[)}\]]/.test(Ce.session.getLine(Ie.row)[Ie.column]))return!0;var Oe=new re(xe,Ie.row,Ie.column+1);if(!this.$matchTokenType(Oe.getCurrentToken()||"text",ae))return!1}return Ne.stepForward(),Ne.getCurrentTokenRow()!==Ie.row||this.$matchTokenType(Ne.getCurrentToken()||"text",oe)},_e.$matchTokenType=function(Ce,xe){return xe.indexOf(Ce.type||Ce)>-1},_e.recordAutoInsert=function(Ce,xe,Ie){var Ne=Ce.getCursorPosition(),Oe=xe.doc.getLine(Ne.row);this.isAutoInsertedClosing(Ne,Oe,le.autoInsertedLineEnd[0])||(le.autoInsertedBrackets=0),le.autoInsertedRow=Ne.row,le.autoInsertedLineEnd=Ie+Oe.substr(Ne.column),le.autoInsertedBrackets++},_e.recordMaybeInsert=function(Ce,xe,Ie){var Ne=Ce.getCursorPosition(),Oe=xe.doc.getLine(Ne.row);this.isMaybeInsertedClosing(Ne,Oe)||(le.maybeInsertedBrackets=0),le.maybeInsertedRow=Ne.row,le.maybeInsertedLineStart=Oe.substr(0,Ne.column)+Ie,le.maybeInsertedLineEnd=Oe.substr(Ne.column),le.maybeInsertedBrackets++},_e.isAutoInsertedClosing=function(Ce,xe,Ie){return le.autoInsertedBrackets>0&&Ce.row===le.autoInsertedRow&&Ie===le.autoInsertedLineEnd[0]&&xe.substr(Ce.column)===le.autoInsertedLineEnd},_e.isMaybeInsertedClosing=function(Ce,xe){return le.maybeInsertedBrackets>0&&Ce.row===le.maybeInsertedRow&&xe.substr(Ce.column)===le.maybeInsertedLineEnd&&xe.substr(0,Ce.column)==le.maybeInsertedLineStart},_e.popAutoInsertedClosing=function(){le.autoInsertedLineEnd=le.autoInsertedLineEnd.substr(1),le.autoInsertedBrackets--},_e.clearMaybeInsertedClosing=function(){le&&(le.maybeInsertedBrackets=0,le.maybeInsertedRow=-1)},$.inherits(_e,V),i.CstyleBehaviour=_e}),ace.define("ace/unicode",["require","exports","module"],function(r,i,g){for(var $=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],V=0,re=[],ie=0;ie<$.length;ie+=2)re.push(V+=$[ie]),$[ie+1]&&re.push(45,V+=$[ie+1]);i.wordChars=String.fromCharCode.apply(null,re)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(r,i,g){var $=r("../config"),V=r("../tokenizer").Tokenizer,re=r("./text_highlight_rules").TextHighlightRules,ie=r("./behaviour/cstyle").CstyleBehaviour,ae=r("../unicode"),oe=r("../lib/lang"),le=r("../token_iterator").TokenIterator,ue=r("../range").Range,de;de=function(){this.HighlightRules=re},(function(){this.$defaultBehaviour=new ie,this.tokenRe=new RegExp("^["+ae.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+ae.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new V(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(he,pe,_e,Ce){var xe=pe.doc,Ie=!0,Ne=!0,Oe=1/0,$e=pe.getTabSize(),Ve=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var ze=this.lineCommentStart.map(oe.escapeRegExp).join("|"),Ue=this.lineCommentStart[0];else var ze=oe.escapeRegExp(this.lineCommentStart),Ue=this.lineCommentStart;ze=new RegExp("^(\\s*)(?:"+ze+") ?"),Ve=pe.getUseSoftTabs();var Et=function(wn,bn){var Cn=wn.match(ze);if(Cn){var Sn=Cn[1].length,Tn=Cn[0].length;!Dt(wn,Sn,Tn)&&Cn[0][Tn-1]==" "&&Tn--,xe.removeInLine(bn,Sn,Tn)}},At=Ue+" ",qe=function(wn,bn){(!Ie||/\S/.test(wn))&&(Dt(wn,Oe,Oe)?xe.insertInLine({row:bn,column:Oe},At):xe.insertInLine({row:bn,column:Oe},Ue))},kt=function(wn,bn){return ze.test(wn)},Dt=function(wn,bn,Cn){for(var Sn=0;bn--&&wn.charAt(bn)==" ";)Sn++;if(Sn%$e!=0)return!1;for(var Sn=0;wn.charAt(Cn++)==" ";)Sn++;return $e>2?Sn%$e!=$e-1:Sn%$e==0}}else{if(!this.blockComment)return!1;var Ue=this.blockComment.start,Fe=this.blockComment.end,ze=new RegExp("^(\\s*)(?:"+oe.escapeRegExp(Ue)+")"),Pt=new RegExp("(?:"+oe.escapeRegExp(Fe)+")\\s*$"),qe=function(hn,vn){kt(hn,vn)||(!Ie||/\S/.test(hn))&&(xe.insertInLine({row:vn,column:hn.length},Fe),xe.insertInLine({row:vn,column:Oe},Ue))},Et=function(hn,vn){var _n;(_n=hn.match(Pt))&&xe.removeInLine(vn,hn.length-_n[0].length,hn.length),(_n=hn.match(ze))&&xe.removeInLine(vn,_n[1].length,_n[0].length)},kt=function(hn,vn){if(ze.test(hn))return!0;for(var _n=pe.getTokens(vn),wn=0;wn<_n.length;wn++)if(_n[wn].type==="comment")return!0}}function Lt(hn){for(var vn=_e;vn<=Ce;vn++)hn(xe.getLine(vn),vn)}var jt=1/0;Lt(function(hn,vn){var _n=hn.search(/\S/);_n!==-1?(_nhn.length&&(jt=hn.length)}),Oe==1/0&&(Oe=jt,Ie=!1,Ne=!1),Ve&&Oe%$e!=0&&(Oe=Math.floor(Oe/$e)*$e),Lt(Ne?Et:qe)},this.toggleBlockComment=function(he,pe,_e,Ce){var xe=this.blockComment;if(xe){!xe.start&&xe[0]&&(xe=xe[0]);var Ie=new le(pe,Ce.row,Ce.column),Ne=Ie.getCurrentToken();pe.selection;var Oe=pe.selection.toOrientedRange(),$e,Ve;if(Ne&&/comment/.test(Ne.type)){for(var Ue,Fe;Ne&&/comment/.test(Ne.type);){var ze=Ne.value.indexOf(xe.start);if(ze!=-1){var Pt=Ie.getCurrentTokenRow(),qe=Ie.getCurrentTokenColumn()+ze;Ue=new ue(Pt,qe,Pt,qe+xe.start.length);break}Ne=Ie.stepBackward()}for(var Ie=new le(pe,Ce.row,Ce.column),Ne=Ie.getCurrentToken();Ne&&/comment/.test(Ne.type);){var ze=Ne.value.indexOf(xe.end);if(ze!=-1){var Pt=Ie.getCurrentTokenRow(),qe=Ie.getCurrentTokenColumn()+ze;Fe=new ue(Pt,qe,Pt,qe+xe.end.length);break}Ne=Ie.stepForward()}Fe&&pe.remove(Fe),Ue&&(pe.remove(Ue),$e=Ue.start.row,Ve=-xe.start.length)}else Ve=xe.start.length,$e=_e.start.row,pe.insert(_e.end,xe.end),pe.insert(_e.start,xe.start);Oe.start.row==$e&&(Oe.start.column+=Ve),Oe.end.row==$e&&(Oe.end.column+=Ve),pe.selection.fromOrientedRange(Oe)}},this.getNextLineIndent=function(he,pe,_e){return this.$getIndent(pe)},this.checkOutdent=function(he,pe,_e){return!1},this.autoOutdent=function(he,pe,_e){},this.$getIndent=function(he){return he.match(/^\s*/)[0]},this.createWorker=function(he){return null},this.createModeDelegates=function(he){this.$embeds=[],this.$modes={};for(var pe in he)if(he[pe]){var _e=he[pe],Ce=_e.prototype.$id,xe=$.$modes[Ce];xe||($.$modes[Ce]=xe=new _e),$.$modes[pe]||($.$modes[pe]=xe),this.$embeds.push(pe),this.$modes[pe]=xe}for(var Ie=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],Ne=function($e){(function(Ve){var Ue=Ie[$e],Fe=Ve[Ue];Ve[Ie[$e]]=function(){return this.$delegator(Ue,arguments,Fe)}})(Oe)},Oe=this,pe=0;peae[oe].column&&oe++,de.unshift(oe,0),ae.splice.apply(ae,de),this.$updateRows()}}},re.prototype.$updateRows=function(){var ie=this.session.lineWidgets;if(ie){var ae=!0;ie.forEach(function(oe,le){if(oe)for(ae=!1,oe.row=le;oe.$oldWidget;)oe.$oldWidget.row=le,oe=oe.$oldWidget}),ae&&(this.session.lineWidgets=null)}},re.prototype.$registerLineWidget=function(ie){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var ae=this.session.lineWidgets[ie.row];return ae&&(ie.$oldWidget=ae,ae.el&&ae.el.parentNode&&(ae.el.parentNode.removeChild(ae.el),ae._inDocument=!1)),this.session.lineWidgets[ie.row]=ie,ie},re.prototype.addLineWidget=function(ie){if(this.$registerLineWidget(ie),ie.session=this.session,!this.editor)return ie;var ae=this.editor.renderer;ie.html&&!ie.el&&(ie.el=$.createElement("div"),ie.el.innerHTML=ie.html),ie.text&&!ie.el&&(ie.el=$.createElement("div"),ie.el.textContent=ie.text),ie.el&&($.addCssClass(ie.el,"ace_lineWidgetContainer"),ie.className&&$.addCssClass(ie.el,ie.className),ie.el.style.position="absolute",ie.el.style.zIndex="5",ae.container.appendChild(ie.el),ie._inDocument=!0,ie.coverGutter||(ie.el.style.zIndex="3"),ie.pixelHeight==null&&(ie.pixelHeight=ie.el.offsetHeight)),ie.rowCount==null&&(ie.rowCount=ie.pixelHeight/ae.layerConfig.lineHeight);var oe=this.session.getFoldAt(ie.row,0);if(ie.$fold=oe,oe){var le=this.session.lineWidgets;ie.row==oe.end.row&&!le[oe.start.row]?le[oe.start.row]=ie:ie.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:ie.row}}}),this.$updateRows(),this.renderWidgets(null,ae),this.onWidgetChanged(ie),ie},re.prototype.removeLineWidget=function(ie){if(ie._inDocument=!1,ie.session=null,ie.el&&ie.el.parentNode&&ie.el.parentNode.removeChild(ie.el),ie.editor&&ie.editor.destroy)try{ie.editor.destroy()}catch{}if(this.session.lineWidgets){var ae=this.session.lineWidgets[ie.row];if(ae==ie)this.session.lineWidgets[ie.row]=ie.$oldWidget,ie.$oldWidget&&this.onWidgetChanged(ie.$oldWidget);else for(;ae;){if(ae.$oldWidget==ie){ae.$oldWidget=ie.$oldWidget;break}ae=ae.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:ie.row}}}),this.$updateRows()},re.prototype.getWidgetsAtRow=function(ie){for(var ae=this.session.lineWidgets,oe=ae&&ae[ie],le=[];oe;)le.push(oe),oe=oe.$oldWidget;return le},re.prototype.onWidgetChanged=function(ie){this.session._changedWidgets.push(ie),this.editor&&this.editor.renderer.updateFull()},re.prototype.measureWidgets=function(ie,ae){var oe=this.session._changedWidgets,le=ae.layerConfig;if(!(!oe||!oe.length)){for(var ue=1/0,de=0;de0&&!le[ue];)ue--;this.firstRow=oe.firstRow,this.lastRow=oe.lastRow,ae.$cursorLayer.config=oe;for(var he=ue;he<=de;he++){var pe=le[he];if(!(!pe||!pe.el)){if(pe.hidden){pe.el.style.top=-100-(pe.pixelHeight||0)+"px";continue}pe._inDocument||(pe._inDocument=!0,ae.container.appendChild(pe.el));var _e=ae.$cursorLayer.getPixelPosition({row:he,column:0},!0).top;pe.coverLine||(_e+=oe.lineHeight*this.session.getRowLineCount(pe.row)),pe.el.style.top=_e-oe.offset+"px";var Ce=pe.coverGutter?0:ae.gutterWidth;pe.fixedWidth||(Ce-=ae.scrollLeft),pe.el.style.left=Ce+"px",pe.fullWidth&&pe.screenWidth&&(pe.el.style.minWidth=oe.width+2*oe.padding+"px"),pe.fixedWidth?pe.el.style.right=ae.scrollBar.getWidth()+"px":pe.el.style.right=""}}}},re}();i.LineWidgets=V}),ace.define("ace/apply_delta",["require","exports","module"],function(r,i,g){i.applyDelta=function($,V,re){var ie=V.start.row,ae=V.start.column,oe=$[ie]||"";switch(V.action){case"insert":var le=V.lines;if(le.length===1)$[ie]=oe.substring(0,ae)+V.lines[0]+oe.substring(ae);else{var ue=[ie,1].concat(V.lines);$.splice.apply($,ue),$[ie]=oe.substring(0,ae)+$[ie],$[ie+V.lines.length-1]+=oe.substring(ae)}break;case"remove":var de=V.end.column,he=V.end.row;ie===he?$[ie]=oe.substring(0,ae)+oe.substring(de):$.splice(ie,he-ie+1,oe.substring(0,ae)+$[he].substring(de));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(r,i,g){var $=r("./lib/oop"),V=r("./lib/event_emitter").EventEmitter,re=function(){function oe(le,ue,de){this.$onChange=this.onChange.bind(this),this.attach(le),typeof ue!="number"?this.setPosition(ue.row,ue.column):this.setPosition(ue,de)}return oe.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},oe.prototype.getDocument=function(){return this.document},oe.prototype.onChange=function(le){if(!(le.start.row==le.end.row&&le.start.row!=this.row)&&!(le.start.row>this.row)){var ue=ae(le,{row:this.row,column:this.column},this.$insertRight);this.setPosition(ue.row,ue.column,!0)}},oe.prototype.setPosition=function(le,ue,de){var he;if(de?he={row:le,column:ue}:he=this.$clipPositionToDocument(le,ue),!(this.row==he.row&&this.column==he.column)){var pe={row:this.row,column:this.column};this.row=he.row,this.column=he.column,this._signal("change",{old:pe,value:he})}},oe.prototype.detach=function(){this.document.off("change",this.$onChange)},oe.prototype.attach=function(le){this.document=le||this.document,this.document.on("change",this.$onChange)},oe.prototype.$clipPositionToDocument=function(le,ue){var de={};return le>=this.document.getLength()?(de.row=Math.max(0,this.document.getLength()-1),de.column=this.document.getLine(de.row).length):le<0?(de.row=0,de.column=0):(de.row=le,de.column=Math.min(this.document.getLine(de.row).length,Math.max(0,ue))),ue<0&&(de.column=0),de},oe}();re.prototype.$insertRight=!1,$.implement(re.prototype,V);function ie(oe,le,ue){var de=ue?oe.column<=le.column:oe.column=he&&(ue=he-1,de=void 0);var pe=this.getLine(ue);return de==null&&(de=pe.length),de=Math.min(Math.max(de,0),pe.length),{row:ue,column:de}},le.prototype.clonePos=function(ue){return{row:ue.row,column:ue.column}},le.prototype.pos=function(ue,de){return{row:ue,column:de}},le.prototype.$clipPosition=function(ue){var de=this.getLength();return ue.row>=de?(ue.row=Math.max(0,de-1),ue.column=this.getLine(de-1).length):(ue.row=Math.max(0,ue.row),ue.column=Math.min(Math.max(ue.column,0),this.getLine(ue.row).length)),ue},le.prototype.insertFullLines=function(ue,de){ue=Math.min(Math.max(ue,0),this.getLength());var he=0;ue0,pe=de=0&&this.applyDelta({start:this.pos(ue,this.getLine(ue).length),end:this.pos(ue+1,0),action:"remove",lines:["",""]})},le.prototype.replace=function(ue,de){if(ue instanceof ie||(ue=ie.fromPoints(ue.start,ue.end)),de.length===0&&ue.isEmpty())return ue.start;if(de==this.getTextRange(ue))return ue.end;this.remove(ue);var he;return de?he=this.insert(ue.start,de):he=ue.start,he},le.prototype.applyDeltas=function(ue){for(var de=0;de=0;de--)this.revertDelta(ue[de])},le.prototype.applyDelta=function(ue,de){var he=ue.action=="insert";(he?ue.lines.length<=1&&!ue.lines[0]:!ie.comparePoints(ue.start,ue.end))||(he&&ue.lines.length>2e4?this.$splitAndapplyLargeDelta(ue,2e4):(V(this.$lines,ue,de),this._signal("change",ue)))},le.prototype.$safeApplyDelta=function(ue){var de=this.$lines.length;(ue.action=="remove"&&ue.start.row20){le.running=setTimeout(le.$worker,20);break}}le.currentLine=de,he==-1&&(he=de),_e<=he&&le.fireUpdateEvent(_e,he)}}}return ie.prototype.setTokenizer=function(ae){this.tokenizer=ae,this.lines=[],this.states=[],this.start(0)},ie.prototype.setDocument=function(ae){this.doc=ae,this.lines=[],this.states=[],this.stop()},ie.prototype.fireUpdateEvent=function(ae,oe){var le={first:ae,last:oe};this._signal("update",{data:le})},ie.prototype.start=function(ae){this.currentLine=Math.min(ae||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},ie.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},ie.prototype.$updateOnChange=function(ae){var oe=ae.start.row,le=ae.end.row-oe;if(le===0)this.lines[oe]=null;else if(ae.action=="remove")this.lines.splice(oe,le+1,null),this.states.splice(oe,le+1,null);else{var ue=Array(le+1);ue.unshift(oe,1),this.lines.splice.apply(this.lines,ue),this.states.splice.apply(this.states,ue)}this.currentLine=Math.min(oe,this.currentLine,this.doc.getLength()),this.stop()},ie.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},ie.prototype.getTokens=function(ae){return this.lines[ae]||this.$tokenizeRow(ae)},ie.prototype.getState=function(ae){return this.currentLine==ae&&this.$tokenizeRow(ae),this.states[ae]||"start"},ie.prototype.$tokenizeRow=function(ae){var oe=this.doc.getLine(ae),le=this.states[ae-1],ue=this.tokenizer.getLineTokens(oe,le,ae);return this.states[ae]+""!=ue.state+""?(this.states[ae]=ue.state,this.lines[ae+1]=null,this.currentLine>ae+1&&(this.currentLine=ae+1)):this.currentLine==ae&&(this.currentLine=ae+1),this.lines[ae]=ue.tokens},ie.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},ie}();$.implement(re.prototype,V),i.BackgroundTokenizer=re}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(r,i,g){var $=r("./lib/lang"),V=r("./range").Range,re=function(){function ie(ae,oe,le){le===void 0&&(le="text"),this.setRegexp(ae),this.clazz=oe,this.type=le,this.docLen=0}return ie.prototype.setRegexp=function(ae){this.regExp+""!=ae+""&&(this.regExp=ae,this.cache=[])},ie.prototype.update=function(ae,oe,le,ue){if(this.regExp){for(var de=ue.firstRow,he=ue.lastRow,pe={},_e=le.$editor&&le.$editor.$search,Ce=_e&&_e.$isMultilineSearch(le.$editor.getLastSearchOptions()),xe=de;xe<=he;xe++){var Ie=this.cache[xe];if(Ie==null||le.getValue().length!=this.docLen){if(Ce){Ie=[];var Ne=_e.$multiLineForward(le,this.regExp,xe,he);if(Ne){var Oe=Ne.endRow<=he?Ne.endRow-1:he;Oe>xe&&(xe=Oe),Ie.push(new V(Ne.startRow,Ne.startCol,Ne.endRow,Ne.endCol))}Ie.length>this.MAX_RANGES&&(Ie=Ie.slice(0,this.MAX_RANGES))}else Ie=$.getMatchOffsets(le.getLine(xe),this.regExp),Ie.length>this.MAX_RANGES&&(Ie=Ie.slice(0,this.MAX_RANGES)),Ie=Ie.map(function(Fe){return new V(xe,Fe.offset,xe,Fe.offset+Fe.length)});this.cache[xe]=Ie.length?Ie:""}if(Ie.length!==0)for(var $e=Ie.length;$e--;){var Ve=Ie[$e].toScreenRange(le),Ue=Ve.toString();pe[Ue]||(pe[Ue]=!0,oe.drawSingleLineMarker(ae,Ve,this.clazz,ue))}}this.docLen=le.getValue().length}},ie}();re.prototype.MAX_RANGES=500,i.SearchHighlight=re}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(r,i,g){var $=function(){function Oe(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return Oe.prototype.addSession=function($e){this.$session=$e},Oe.prototype.add=function($e,Ve,Ue){if(!this.$fromUndo&&$e!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),Ve===!1||!this.lastDeltas){this.lastDeltas=[];var Fe=this.$undoStack.length;Fe>this.$undoDepth-1&&this.$undoStack.splice(0,Fe-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),$e.id=this.$rev=++this.$maxRev}($e.action=="remove"||$e.action=="insert")&&(this.$lastDelta=$e),this.lastDeltas.push($e)}},Oe.prototype.addSelection=function($e,Ve){this.selections.push({value:$e,rev:Ve||this.$rev})},Oe.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},Oe.prototype.markIgnored=function($e,Ve){Ve==null&&(Ve=this.$rev+1);for(var Ue=this.$undoStack,Fe=Ue.length;Fe--;){var ze=Ue[Fe][0];if(ze.id<=$e)break;ze.id0},Oe.prototype.canRedo=function(){return this.$redoStack.length>0},Oe.prototype.bookmark=function($e){$e==null&&($e=this.$rev),this.mark=$e},Oe.prototype.isAtBookmark=function(){return this.$rev===this.mark},Oe.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},Oe.prototype.fromJSON=function($e){this.reset(),this.$undoStack=$e.$undoStack,this.$redoStack=$e.$redoStack},Oe.prototype.$prettyPrint=function($e){return $e?le($e):le(this.$undoStack)+`
----
-`+le(this.$redoStack)},Oe}();$.prototype.hasUndo=$.prototype.canUndo,$.prototype.hasRedo=$.prototype.canRedo,$.prototype.isClean=$.prototype.isAtBookmark,$.prototype.markClean=$.prototype.bookmark;function V(Oe,$e){for(var Ve=$e;Ve--;){var Ue=Oe[Ve];if(Ue&&!Ue[0].ignore){for(;Ve<$e-1;){var Fe=he(Oe[Ve],Oe[Ve+1]);Oe[Ve]=Fe[0],Oe[Ve+1]=Fe[1],Ve++}return!0}}}var re=r("./range").Range,ie=re.comparePoints;re.comparePoints;function ae(Oe){return{row:Oe.row,column:Oe.column}}function oe(Oe){return{start:ae(Oe.start),end:ae(Oe.end),action:Oe.action,lines:Oe.lines.slice()}}function le(Oe){if(Oe=Oe||this,Array.isArray(Oe))return Oe.map(le).join(`
-`);var $e="";return Oe.action?($e=Oe.action=="insert"?"+":"-",$e+="["+Oe.lines+"]"):Oe.value&&(Array.isArray(Oe.value)?$e=Oe.value.map(ue).join(`
-`):$e=ue(Oe.value)),Oe.start&&($e+=ue(Oe)),(Oe.id||Oe.rev)&&($e+=" ("+(Oe.id||Oe.rev)+")"),$e}function ue(Oe){return Oe.start.row+":"+Oe.start.column+"=>"+Oe.end.row+":"+Oe.end.column}function de(Oe,$e){var Ve=Oe.action=="insert",Ue=$e.action=="insert";if(Ve&&Ue)if(ie($e.start,Oe.end)>=0)_e($e,Oe,-1);else if(ie($e.start,Oe.start)<=0)_e(Oe,$e,1);else return null;else if(Ve&&!Ue)if(ie($e.start,Oe.end)>=0)_e($e,Oe,-1);else if(ie($e.end,Oe.start)<=0)_e(Oe,$e,-1);else return null;else if(!Ve&&Ue)if(ie($e.start,Oe.start)>=0)_e($e,Oe,1);else if(ie($e.start,Oe.start)<=0)_e(Oe,$e,1);else return null;else if(!Ve&&!Ue)if(ie($e.start,Oe.start)>=0)_e($e,Oe,1);else if(ie($e.end,Oe.start)<=0)_e(Oe,$e,-1);else return null;return[$e,Oe]}function he(Oe,$e){for(var Ve=Oe.length;Ve--;)for(var Ue=0;Ue<$e.length;Ue++)if(!de(Oe[Ve],$e[Ue])){for(;Ve=0?_e(Oe,$e,-1):(ie(Oe.start,$e.start)<=0||_e(Oe,re.fromPoints($e.start,Oe.start),-1),_e($e,Oe,1));else if(!Ve&&Ue)ie($e.start,Oe.end)>=0?_e($e,Oe,-1):(ie($e.start,Oe.start)<=0||_e($e,re.fromPoints(Oe.start,$e.start),-1),_e(Oe,$e,1));else if(!Ve&&!Ue)if(ie($e.start,Oe.end)>=0)_e($e,Oe,-1);else if(ie($e.end,Oe.start)<=0)_e(Oe,$e,-1);else{var Fe,ze;return ie(Oe.start,$e.start)<0&&(Fe=Oe,Oe=xe(Oe,$e.start)),ie(Oe.end,$e.end)>0&&(ze=xe(Oe,$e.end)),Ce($e.end,Oe.start,Oe.end,-1),ze&&!Fe&&(Oe.lines=ze.lines,Oe.start=ze.start,Oe.end=ze.end,ze=Oe),[$e,Fe,ze].filter(Boolean)}return[$e,Oe]}function _e(Oe,$e,Ve){Ce(Oe.start,$e.start,$e.end,Ve),Ce(Oe.end,$e.start,$e.end,Ve)}function Ce(Oe,$e,Ve,Ue){Oe.row==(Ue==1?$e:Ve).row&&(Oe.column+=Ue*(Ve.column-$e.column)),Oe.row+=Ue*(Ve.row-$e.row)}function xe(Oe,$e){var Ve=Oe.lines,Ue=Oe.end;Oe.end=ae($e);var Fe=Oe.end.row-Oe.start.row,ze=Ve.splice(Fe,Ve.length),Pt=Fe?$e.column:$e.column-Oe.start.column;Ve.push(ze[0].substring(0,Pt)),ze[0]=ze[0].substr(Pt);var qe={start:ae($e),end:Ue,lines:ze,action:Oe.action};return qe}function Ie(Oe,$e){$e=oe($e);for(var Ve=Oe.length;Ve--;){for(var Ue=Oe[Ve],Fe=0;Fethis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(ie),this.folds.sort(function(ae,oe){return-ae.range.compareEnd(oe.start.row,oe.start.column)}),this.range.compareEnd(ie.start.row,ie.start.column)>0?(this.end.row=ie.end.row,this.end.column=ie.end.column):this.range.compareStart(ie.end.row,ie.end.column)<0&&(this.start.row=ie.start.row,this.start.column=ie.start.column)}else if(ie.start.row==this.end.row)this.folds.push(ie),this.end.row=ie.end.row,this.end.column=ie.end.column;else if(ie.end.row==this.start.row)this.folds.unshift(ie),this.start.row=ie.start.row,this.start.column=ie.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");ie.foldLine=this},re.prototype.containsRow=function(ie){return ie>=this.start.row&&ie<=this.end.row},re.prototype.walk=function(ie,ae,oe){var le=0,ue=this.folds,de,he,pe,_e=!0;ae==null&&(ae=this.end.row,oe=this.end.column);for(var Ce=0;Ce0)){var _e=V(ae,he.start);return pe===0?oe&&_e!==0?-de-2:de:_e>0||_e===0&&!oe?de:-de-1}}return-de-1},ie.prototype.add=function(ae){var oe=!ae.isEmpty(),le=this.pointIndex(ae.start,oe);le<0&&(le=-le-1);var ue=this.pointIndex(ae.end,oe,le);return ue<0?ue=-ue-1:ue++,this.ranges.splice(le,ue-le,ae)},ie.prototype.addList=function(ae){for(var oe=[],le=ae.length;le--;)oe.push.apply(oe,this.add(ae[le]));return oe},ie.prototype.substractPoint=function(ae){var oe=this.pointIndex(ae);if(oe>=0)return this.ranges.splice(oe,1)},ie.prototype.merge=function(){var ae=[],oe=this.ranges;oe=oe.sort(function(pe,_e){return V(pe.start,_e.start)});for(var le=oe[0],ue,de=1;de=0},ie.prototype.containsPoint=function(ae){return this.pointIndex(ae)>=0},ie.prototype.rangeAtPoint=function(ae){var oe=this.pointIndex(ae);if(oe>=0)return this.ranges[oe]},ie.prototype.clipRows=function(ae,oe){var le=this.ranges;if(le[0].start.row>oe||le[le.length-1].start.row=ue)break}if(ae.action=="insert")for(var xe=de-ue,Ie=-oe.column+le.column;pe<_e;pe++){var Ce=he[pe];if(Ce.start.row>ue)break;if(Ce.start.row==ue&&Ce.start.column>=oe.column&&(Ce.start.column==oe.column&&this.$bias<=0||(Ce.start.column+=Ie,Ce.start.row+=xe)),Ce.end.row==ue&&Ce.end.column>=oe.column){if(Ce.end.column==oe.column&&this.$bias<0)continue;Ce.end.column==oe.column&&Ie>0&&pe<_e-1&&Ce.end.column>Ce.start.column&&Ce.end.column==he[pe+1].start.column&&(Ce.end.column-=Ie),Ce.end.column+=Ie,Ce.end.row+=xe}}else for(var xe=ue-de,Ie=oe.column-le.column;pe<_e;pe++){var Ce=he[pe];if(Ce.start.row>de)break;Ce.end.rowoe.column)&&(Ce.end.column=oe.column,Ce.end.row=oe.row):(Ce.end.column+=Ie,Ce.end.row+=xe):Ce.end.row>de&&(Ce.end.row+=xe),Ce.start.rowoe.column)&&(Ce.start.column=oe.column,Ce.start.row=oe.row):(Ce.start.column+=Ie,Ce.start.row+=xe):Ce.start.row>de&&(Ce.start.row+=xe)}if(xe!=0&&pe<_e)for(;pe<_e;pe++){var Ce=he[pe];Ce.start.row+=xe,Ce.end.row+=xe}},ie}();re.prototype.comparePoints=V,i.RangeList=re}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(r,i,g){var $=this&&this.__extends||function(){var ue=function(de,he){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,_e){pe.__proto__=_e}||function(pe,_e){for(var Ce in _e)Object.prototype.hasOwnProperty.call(_e,Ce)&&(pe[Ce]=_e[Ce])},ue(de,he)};return function(de,he){if(typeof he!="function"&&he!==null)throw new TypeError("Class extends value "+String(he)+" is not a constructor or null");ue(de,he);function pe(){this.constructor=de}de.prototype=he===null?Object.create(he):(pe.prototype=he.prototype,new pe)}}(),V=r("../range_list").RangeList,re=function(ue){$(de,ue);function de(he,pe){var _e=ue.call(this)||this;return _e.foldLine=null,_e.placeholder=pe,_e.range=he,_e.start=he.start,_e.end=he.end,_e.sameRow=he.start.row==he.end.row,_e.subFolds=_e.ranges=[],_e}return de.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},de.prototype.setFoldLine=function(he){this.foldLine=he,this.subFolds.forEach(function(pe){pe.setFoldLine(he)})},de.prototype.clone=function(){var he=this.range.clone(),pe=new de(he,this.placeholder);return this.subFolds.forEach(function(_e){pe.subFolds.push(_e.clone())}),pe.collapseChildren=this.collapseChildren,pe},de.prototype.addSubFold=function(he){if(!this.range.isEqual(he)){ae(he,this.start);for(var Ie=he.start.row,Ne=he.start.column,pe=0,_e=-1;pe=le)return pe;if(pe.end.row>le)return null}return null},this.getNextFoldLine=function(le,ue){var de=this.$foldData,he=0;for(ue&&(he=de.indexOf(ue)),he==-1&&(he=0),he;he=le)return pe}return null},this.getFoldedRowCount=function(le,ue){for(var de=this.$foldData,he=ue-le+1,pe=0;pe=ue){xe=le?he-=ue-xe:he=0);break}else Ce>=le&&(xe>=le?he-=Ce-xe:he-=Ce-le+1)}return he},this.$addFoldLine=function(le){return this.$foldData.push(le),this.$foldData.sort(function(ue,de){return ue.start.row-de.start.row}),le},this.addFold=function(le,ue){var de=this.$foldData,he=!1,pe;le instanceof re?pe=le:(pe=new re(ue,le),pe.collapseChildren=ue.collapseChildren),this.$clipRangeToDocument(pe.range);var _e=pe.start.row,Ce=pe.start.column,xe=pe.end.row,Ie=pe.end.column,Ne=this.getFoldAt(_e,Ce,1),Oe=this.getFoldAt(xe,Ie,-1);if(Ne&&Oe==Ne)return Ne.addSubFold(pe);Ne&&!Ne.range.isStart(_e,Ce)&&this.removeFold(Ne),Oe&&!Oe.range.isEnd(xe,Ie)&&this.removeFold(Oe);var $e=this.getFoldsInRange(pe.range);$e.length>0&&(this.removeFolds($e),pe.collapseChildren||$e.forEach(function(ze){pe.addSubFold(ze)}));for(var Ve=0;Ve