diff --git a/.env.production b/.env.production index 610c2aa71..131a66178 100644 --- a/.env.production +++ b/.env.production @@ -5,7 +5,7 @@ VITE_PUBLIC_PATH = /vue-pure-admin/ VITE_ROUTER_HISTORY = "hash" # 是否在打包时使用cdn替换本地库 替换 true 不替换 false -VITE_CDN = true +VITE_CDN = false # 是否启用gzip压缩或brotli压缩(分两种情况,删除原始文件和不删除原始文件) # 压缩时不删除原始文件的配置:gzip、brotli、both(同时开启 gzip 与 brotli 压缩)、none(不开启压缩,默认) diff --git a/dist/index.html b/dist/index.html index 2aca1bd8a..5a2e039c2 100644 --- a/dist/index.html +++ b/dist/index.html @@ -8,21 +8,12 @@ name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" /> - vue-pure-admin - - - - - - - - - + vue-pure-admin - + diff --git a/dist/static/js/403-63441291.js b/dist/static/js/403-63441291.js deleted file mode 100644 index 2e249dc2b..000000000 --- a/dist/static/js/403-63441291.js +++ /dev/null @@ -1 +0,0 @@ -const p={width:"251",height:"294"},s=Vue.createStaticVNode('',1),c=[s];function i(l,a){return Vue.openBlock(),Vue.createElementBlock("svg",p,c)}const o={render:i},d={class:"flex justify-center items-center h-[640px]"},m={class:"ml-12"},n={class:"font-medium text-4xl mb-4 dark:text-white",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:100}}},r={class:"mb-4 text-gray-500",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:300}}},f=Vue.defineComponent({name:"403",__name:"403",setup(l){return(a,e)=>{const h=Vue.resolveComponent("el-button"),t=Vue.resolveDirective("motion");return Vue.openBlock(),Vue.createElementBlock("div",d,[Vue.createVNode(Vue.unref(o)),Vue.createElementVNode("div",m,[Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("p",n,[Vue.createTextVNode(" 403 ")])),[[t]]),Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("p",r,[Vue.createTextVNode(" 抱歉,你无权访问该页面 ")])),[[t]]),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(h,{type:"primary",onClick:e[0]||(e[0]=F=>a.$router.push("/")),initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:500}}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 返回首页 ")]),_:1})),[[t]])])])}}});export{f as default}; diff --git a/dist/static/js/403-aace6d52.js b/dist/static/js/403-aace6d52.js new file mode 100644 index 000000000..ce4e3f6a0 --- /dev/null +++ b/dist/static/js/403-aace6d52.js @@ -0,0 +1 @@ +import{f as t,k as a,aX as d,d as o,c as m,j as F,g as r,u as n,i as f,m as h,h as p,e as M,w as B}from"./index-0dd8d5e4.js";const _={width:"251",height:"294"},k=d('',1),v=[k];function y(c,l){return t(),a("svg",_,v)}const A={render:y},C={class:"flex justify-center items-center h-[640px]"},D={class:"ml-12"},E={class:"font-medium text-4xl mb-4 dark:text-white",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:100}}},u={class:"mb-4 text-gray-500",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:300}}},g=o({name:"403",__name:"403",setup(c){return(l,e)=>{const i=m("el-button"),s=F("motion");return t(),a("div",C,[r(n(A)),f("div",D,[h((t(),a("p",E,[p(" 403 ")])),[[s]]),h((t(),a("p",u,[p(" 抱歉,你无权访问该页面 ")])),[[s]]),h((t(),M(i,{type:"primary",onClick:e[0]||(e[0]=z=>l.$router.push("/")),initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:500}}},{default:B(()=>[p(" 返回首页 ")]),_:1})),[[s]])])])}}});export{g as default}; diff --git a/dist/static/js/404-4055428e.js b/dist/static/js/404-4055428e.js new file mode 100644 index 000000000..5b73308b1 --- /dev/null +++ b/dist/static/js/404-4055428e.js @@ -0,0 +1 @@ +import{f as t,k as a,aX as d,d as o,c as m,j as r,g as n,u as F,i as f,m as s,h as l,e as M,w as v}from"./index-0dd8d5e4.js";const B={width:"252",height:"294"},_=d('',1),D=[_];function k(e,p){return t(),a("svg",B,D)}const C={render:k},y={class:"flex justify-center items-center h-[640px]"},E={class:"ml-12"},z={class:"font-medium text-4xl mb-4 dark:text-white",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:100}}},u={class:"mb-4 text-gray-500",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:300}}},g=o({name:"404",__name:"404",setup(e){return(p,c)=>{const i=m("el-button"),h=r("motion");return t(),a("div",y,[n(F(C)),f("div",E,[s((t(),a("p",z,[l(" 404 ")])),[[h]]),s((t(),a("p",u,[l(" 抱歉,你访问的页面不存在 ")])),[[h]]),s((t(),M(i,{type:"primary",onClick:c[0]||(c[0]=A=>p.$router.push("/")),initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:500}}},{default:v(()=>[l(" 返回首页 ")]),_:1})),[[h]])])])}}});export{g as default}; diff --git a/dist/static/js/404-aad1e074.js b/dist/static/js/404-aad1e074.js deleted file mode 100644 index b27656f4b..000000000 --- a/dist/static/js/404-aad1e074.js +++ /dev/null @@ -1 +0,0 @@ -const p={width:"252",height:"294"},c=Vue.createStaticVNode('',1),s=[c];function i(h,a){return Vue.openBlock(),Vue.createElementBlock("svg",p,s)}const o={render:i},d={class:"flex justify-center items-center h-[640px]"},m={class:"ml-12"},n={class:"font-medium text-4xl mb-4 dark:text-white",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:100}}},r={class:"mb-4 text-gray-500",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:300}}},f=Vue.defineComponent({name:"404",__name:"404",setup(h){return(a,e)=>{const l=Vue.resolveComponent("el-button"),t=Vue.resolveDirective("motion");return Vue.openBlock(),Vue.createElementBlock("div",d,[Vue.createVNode(Vue.unref(o)),Vue.createElementVNode("div",m,[Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("p",n,[Vue.createTextVNode(" 404 ")])),[[t]]),Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("p",r,[Vue.createTextVNode(" 抱歉,你访问的页面不存在 ")])),[[t]]),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(l,{type:"primary",onClick:e[0]||(e[0]=F=>a.$router.push("/")),initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:500}}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 返回首页 ")]),_:1})),[[t]])])])}}});export{f as default}; diff --git a/dist/static/js/500-4d370a5c.js b/dist/static/js/500-4d370a5c.js deleted file mode 100644 index 235c475a1..000000000 --- a/dist/static/js/500-4d370a5c.js +++ /dev/null @@ -1 +0,0 @@ -const s={width:"254",height:"294"},p=Vue.createStaticVNode('',1),c=[p];function i(e,a){return Vue.openBlock(),Vue.createElementBlock("svg",s,c)}const d={render:i},m={class:"flex justify-center items-center h-[640px]"},o={class:"ml-12"},r={class:"font-medium text-4xl mb-4 dark:text-white",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:100}}},n={class:"mb-4 text-gray-500",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:300}}},M=Vue.defineComponent({name:"500",__name:"500",setup(e){return(a,h)=>{const l=Vue.resolveComponent("el-button"),t=Vue.resolveDirective("motion");return Vue.openBlock(),Vue.createElementBlock("div",m,[Vue.createVNode(Vue.unref(d)),Vue.createElementVNode("div",o,[Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("p",r,[Vue.createTextVNode(" 500 ")])),[[t]]),Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("p",n,[Vue.createTextVNode(" 抱歉,服务器出错了 ")])),[[t]]),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(l,{type:"primary",onClick:h[0]||(h[0]=F=>a.$router.push("/")),initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:500}}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 返回首页 ")]),_:1})),[[t]])])])}}});export{M as default}; diff --git a/dist/static/js/500-68cbae6c.js b/dist/static/js/500-68cbae6c.js new file mode 100644 index 000000000..f3cbb3ec9 --- /dev/null +++ b/dist/static/js/500-68cbae6c.js @@ -0,0 +1 @@ +import{f as a,k as t,aX as i,d as m,c as o,j as r,g as F,u as n,i as f,m as s,h as p,e as M,w as k}from"./index-0dd8d5e4.js";const v={width:"254",height:"294"},B=i('',1),u=[B];function _(e,l){return a(),t("svg",v,u)}const C={render:_},D={class:"flex justify-center items-center h-[640px]"},A={class:"ml-12"},y={class:"font-medium text-4xl mb-4 dark:text-white",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:100}}},E={class:"mb-4 text-gray-500",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:300}}},g=m({name:"500",__name:"500",setup(e){return(l,c)=>{const d=o("el-button"),h=r("motion");return a(),t("div",D,[F(n(C)),f("div",A,[s((a(),t("p",y,[p(" 500 ")])),[[h]]),s((a(),t("p",E,[p(" 抱歉,服务器出错了 ")])),[[h]]),s((a(),M(d,{type:"primary",onClick:c[0]||(c[0]=x=>l.$router.push("/")),initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:500}}},{default:k(()=>[p(" 返回首页 ")]),_:1})),[[h]])])])}}});export{g as default}; diff --git a/dist/static/js/Bar-d1ff595c.js b/dist/static/js/Bar-d1ff595c.js deleted file mode 100644 index 6c55a9c66..000000000 --- a/dist/static/js/Bar-d1ff595c.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Bar.vue_vue_type_script_setup_true_lang-b4e121e4.js";import"./app-7adcc40f.js";import"./index-c61a73ff.js";export{o as default}; diff --git a/dist/static/js/Bar-e89b7a26.js b/dist/static/js/Bar-e89b7a26.js new file mode 100644 index 000000000..156d329ef --- /dev/null +++ b/dist/static/js/Bar-e89b7a26.js @@ -0,0 +1 @@ +import{_ as o}from"./Bar.vue_vue_type_script_setup_true_lang-41902aae.js";import"./app-9580cee8.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/Bar.vue_vue_type_script_setup_true_lang-41902aae.js b/dist/static/js/Bar.vue_vue_type_script_setup_true_lang-41902aae.js new file mode 100644 index 000000000..4816f4211 --- /dev/null +++ b/dist/static/js/Bar.vue_vue_type_script_setup_true_lang-41902aae.js @@ -0,0 +1 @@ +import{u as n}from"./app-9580cee8.js";import{d as c,an as l,x as f,r as p,ao as d,bq as e,y as h,f as m,k as u,aq as b}from"./index-0dd8d5e4.js";const _=c({__name:"Bar",setup(g){const{isDark:a}=l(),r=f(()=>a.value?"dark":"light"),t=p(null),{setOptions:o,resize:s}=d(t,{theme:r});return o({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{bottom:"20px",right:"10px"},legend:{right:!0,data:["watchers","fork","star"]},xAxis:[{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{interval:0},data:["2021","2022","2023"],triggerEvent:!0}],yAxis:[{type:"value",triggerEvent:!0}],series:[{name:"watchers",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#e6a23c"},{offset:1,color:"#eebe77"}])},data:[200,320,800]},{name:"fork",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#f56c6c"},{offset:1,color:"#f89898"}])},data:[1600,2460,4500]},{name:"star",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#409EFF"},{offset:1,color:"#53a7ff"}])},data:[1450,3620,7500]}],addTooltip:!0},{name:"click",callback:i=>{}}),h(()=>n().getSidebarStatus,()=>{b(600).then(()=>s())}),(i,y)=>(m(),u("div",{ref_key:"barChartRef",ref:t,style:{width:"100%",height:"35vh"}},null,512))}});export{_}; diff --git a/dist/static/js/Bar.vue_vue_type_script_setup_true_lang-b4e121e4.js b/dist/static/js/Bar.vue_vue_type_script_setup_true_lang-b4e121e4.js deleted file mode 100644 index 8175cfe41..000000000 --- a/dist/static/js/Bar.vue_vue_type_script_setup_true_lang-b4e121e4.js +++ /dev/null @@ -1 +0,0 @@ -import{u as c}from"./app-7adcc40f.js";import{B as n,Z as l,ai as e,D as f}from"./index-c61a73ff.js";const m=Vue.defineComponent({__name:"Bar",setup(p){const{isDark:r}=n(),a=Vue.computed(()=>r.value?"dark":"light"),t=Vue.ref(null),{setOptions:o,resize:i}=l(t,{theme:a});return o({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{bottom:"20px",right:"10px"},legend:{right:!0,data:["watchers","fork","star"]},xAxis:[{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{interval:0},data:["2021","2022","2023"],triggerEvent:!0}],yAxis:[{type:"value",triggerEvent:!0}],series:[{name:"watchers",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#e6a23c"},{offset:1,color:"#eebe77"}])},data:[200,320,800]},{name:"fork",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#f56c6c"},{offset:1,color:"#f89898"}])},data:[1600,2460,4500]},{name:"star",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#409EFF"},{offset:1,color:"#53a7ff"}])},data:[1450,3620,7500]}],addTooltip:!0},{name:"click",callback:s=>{}}),Vue.watch(()=>c().getSidebarStatus,()=>{f(600).then(()=>i())}),(s,u)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref_key:"barChartRef",ref:t,style:{width:"100%",height:"35vh"}},null,512))}});export{m as _}; diff --git a/dist/static/js/Card-514d8668.js b/dist/static/js/Card-514d8668.js new file mode 100644 index 000000000..75cb626d2 --- /dev/null +++ b/dist/static/js/Card-514d8668.js @@ -0,0 +1 @@ +import{f as t,k as i,i as o,d as b,x as f,c as s,g as n,w as a,ab as g,e as l,u as d,ae as r,h as u,C as m,_ as I}from"./index-0dd8d5e4.js";import{d as B}from"./more-2-fill-a666858a.js";const S={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-shop",viewBox:"0 0 16 16"},A=o("path",{fill:"currentColor",d:"M8 1a2.5 2.5 0 0 0-2.5 2.5V5h-2a.5.5 0 0 0-.5.5v9c0 .28.22.5.5.5h9a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-2V3.5A2.5 2.5 0 0 0 8 1zm1.5 5v2h1V6H12v8H4V6h1.5v2h1V6h3zm0-1h-3V3.5a1.5 1.5 0 1 1 3 0V5z"},null,-1),N=[A];function O(e,c){return t(),i("svg",S,N)}const j={render:O},D={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-laptop",viewBox:"0 0 16 16"},E=o("path",{fill:"currentColor",d:"M2.5 12a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-11zm0-1h11V4h-11v7zM15 13H1v1h14v-1z"},null,-1),L=[E];function R(e,c){return t(),i("svg",D,L)}const T={render:R},q={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-service",viewBox:"0 0 16 16"},F=o("path",{fill:"currentColor",d:"M2.52 6.37a5.5 5.5 0 0 1 10.98.13v4c0 .05 0 .1-.02.15A4.5 4.5 0 0 1 9 14.7H8v-1h1a3.5 3.5 0 0 0 3.4-2.7h-1.9a.5.5 0 0 1-.5-.5v-4c0-.28.22-.5.5-.5h1.93a4.5 4.5 0 0 0-8.86 0H5.5c.28 0 .5.22.5.5v4a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5v-4c0-.04 0-.09.02-.13zM12.5 7H11v3h1.5V7zm-9 0v3H5V7H3.5z"},null,-1),G=[F];function J(e,c){return t(),i("svg",q,G)}const K={render:J},P={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-calendar",viewBox:"0 0 16 16"},Q=o("path",{fill:"currentColor",d:"M10 3H6V1.5H5V3H3a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-2V1.5h-1V3zM5 5h1V4h4v1h1V4h2v2H3V4h2v1zM3 7h10v6H3V7z"},null,-1),U=[Q];function W(e,c){return t(),i("svg",P,U)}const X={render:W},Y={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-user-avatar",viewBox:"0 0 16 16"},Z=o("path",{fill:"currentColor",d:"M8 10.5c1.24 0 2.42.31 3.5.88v1.12h1v-1.14a.94.94 0 0 0-.49-.84 8.48 8.48 0 0 0-8.02 0 .94.94 0 0 0-.49.84v1.14h1v-1.12A7.47 7.47 0 0 1 8 10.5zM10.5 6a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zm-1 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0z"},null,-1),ee=o("path",{fill:"currentColor",d:"M2.5 1.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11zm11 1v11h-11v-11h11z"},null,-1),te=[Z,ee];function oe(e,c){return t(),i("svg",Y,te)}const ce={render:oe},ne={class:"list-card-item_detail bg-bg_color"},ae={class:"list-card-item_detail--operation"},se={class:"list-card-item_detail--name text-text_color_primary"},de={class:"list-card-item_detail--desc text-text_color_regular"},ie=b({name:"ReCard",__name:"Card",props:{product:{type:Object}},emits:["manage-product","delete-item"],setup(e,{emit:c}){const v=e,x=h=>{c("manage-product",h)},V=h=>{c("delete-item",h)},w=f(()=>["list-card-item",{"list-card-item__disabled":!v.product.isSetup}]),C=f(()=>["list-card-item_detail--logo",{"list-card-item_detail--logo__disabled":!v.product.isSetup}]);return(h,_)=>{const $=s("el-tag"),y=s("IconifyIconOffline"),p=s("el-dropdown-item"),z=s("el-dropdown-menu"),k=s("el-dropdown"),H=s("el-row");return t(),i("div",{class:g(w.value)},[o("div",ne,[n(H,{justify:"space-between"},{default:a(()=>[o("div",{class:g(C.value)},[e.product.type===1?(t(),l(d(j),{key:0})):r("",!0),e.product.type===2?(t(),l(d(X),{key:1})):r("",!0),e.product.type===3?(t(),l(d(K),{key:2})):r("",!0),e.product.type===4?(t(),l(d(ce),{key:3})):r("",!0),e.product.type===5?(t(),l(d(T),{key:4})):r("",!0)],2),o("div",ae,[n($,{color:e.product.isSetup?"#00a870":"#eee",effect:"dark",class:"mx-1 list-card-item_detail--operation--tag"},{default:a(()=>[u(m(e.product.isSetup?"已启用":"已停用"),1)]),_:1},8,["color"]),n(k,{trigger:"click",disabled:!e.product.isSetup},{dropdown:a(()=>[n(z,{disabled:!e.product.isSetup},{default:a(()=>[n(p,{onClick:_[0]||(_[0]=M=>x(e.product))},{default:a(()=>[u(" 管理 ")]),_:1}),n(p,{onClick:_[1]||(_[1]=M=>V(e.product))},{default:a(()=>[u(" 删除 ")]),_:1})]),_:1},8,["disabled"])]),default:a(()=>[n(y,{icon:d(B),class:"text-[24px]"},null,8,["icon"])]),_:1},8,["disabled"])])]),_:1}),o("p",se,m(e.product.name),1),o("p",de,m(e.product.description),1)])],2)}}});const he=I(ie,[["__scopeId","data-v-aa9a6877"]]);export{he as default}; diff --git a/dist/static/js/Card-83689119.js b/dist/static/js/Card-83689119.js deleted file mode 100644 index 47d27b87b..000000000 --- a/dist/static/js/Card-83689119.js +++ /dev/null @@ -1 +0,0 @@ -import{M as p}from"./more-2-fill-4bb0933c.js";import{_ as v}from"./index-c61a73ff.js";const f={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-shop",viewBox:"0 0 16 16"},C=Vue.createElementVNode("path",{fill:"currentColor",d:"M8 1a2.5 2.5 0 0 0-2.5 2.5V5h-2a.5.5 0 0 0-.5.5v9c0 .28.22.5.5.5h9a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-2V3.5A2.5 2.5 0 0 0 8 1zm1.5 5v2h1V6H12v8H4V6h1.5v2h1V6h3zm0-1h-3V3.5a1.5 1.5 0 1 1 3 0V5z"},null,-1),k=[C];function x(e,t){return Vue.openBlock(),Vue.createElementBlock("svg",f,k)}const g={render:x},w={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-laptop",viewBox:"0 0 16 16"},B=Vue.createElementVNode("path",{fill:"currentColor",d:"M2.5 12a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-11zm0-1h11V4h-11v7zM15 13H1v1h14v-1z"},null,-1),N=[B];function $(e,t){return Vue.openBlock(),Vue.createElementBlock("svg",w,N)}const y={render:$},z={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-service",viewBox:"0 0 16 16"},E=Vue.createElementVNode("path",{fill:"currentColor",d:"M2.52 6.37a5.5 5.5 0 0 1 10.98.13v4c0 .05 0 .1-.02.15A4.5 4.5 0 0 1 9 14.7H8v-1h1a3.5 3.5 0 0 0 3.4-2.7h-1.9a.5.5 0 0 1-.5-.5v-4c0-.28.22-.5.5-.5h1.93a4.5 4.5 0 0 0-8.86 0H5.5c.28 0 .5.22.5.5v4a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5v-4c0-.04 0-.09.02-.13zM12.5 7H11v3h1.5V7zm-9 0v3H5V7H3.5z"},null,-1),H=[E];function M(e,t){return Vue.openBlock(),Vue.createElementBlock("svg",z,H)}const b={render:M},I={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-calendar",viewBox:"0 0 16 16"},S=Vue.createElementVNode("path",{fill:"currentColor",d:"M10 3H6V1.5H5V3H3a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-2V1.5h-1V3zM5 5h1V4h4v1h1V4h2v2H3V4h2v1zM3 7h10v6H3V7z"},null,-1),A=[S];function D(e,t){return Vue.openBlock(),Vue.createElementBlock("svg",I,A)}const O={render:D},T={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-user-avatar",viewBox:"0 0 16 16"},j=Vue.createElementVNode("path",{fill:"currentColor",d:"M8 10.5c1.24 0 2.42.31 3.5.88v1.12h1v-1.14a.94.94 0 0 0-.49-.84 8.48 8.48 0 0 0-8.02 0 .94.94 0 0 0-.49.84v1.14h1v-1.12A7.47 7.47 0 0 1 8 10.5zM10.5 6a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zm-1 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0z"},null,-1),F=Vue.createElementVNode("path",{fill:"currentColor",d:"M2.5 1.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11zm11 1v11h-11v-11h11z"},null,-1),L=[j,F];function R(e,t){return Vue.openBlock(),Vue.createElementBlock("svg",T,L)}const q={render:R},G={class:"list-card-item_detail bg-bg_color"},J={class:"list-card-item_detail--operation"},K={class:"list-card-item_detail--name text-text_color_primary"},P={class:"list-card-item_detail--desc text-text_color_regular"},Q=Vue.defineComponent({name:"ReCard",__name:"Card",props:{product:{type:Object}},emits:["manage-product","delete-item"],setup(e,{emit:t}){const n=e,a=o=>{t("manage-product",o)},r=o=>{t("delete-item",o)},d=Vue.computed(()=>["list-card-item",{"list-card-item__disabled":!n.product.isSetup}]),u=Vue.computed(()=>["list-card-item_detail--logo",{"list-card-item_detail--logo__disabled":!n.product.isSetup}]);return(o,c)=>{const i=Vue.resolveComponent("el-tag"),s=Vue.resolveComponent("IconifyIconOffline"),l=Vue.resolveComponent("el-dropdown-item"),V=Vue.resolveComponent("el-dropdown-menu"),m=Vue.resolveComponent("el-dropdown"),h=Vue.resolveComponent("el-row");return Vue.openBlock(),Vue.createElementBlock("div",{class:Vue.normalizeClass(d.value)},[Vue.createElementVNode("div",G,[Vue.createVNode(h,{justify:"space-between"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{class:Vue.normalizeClass(u.value)},[e.product.type===1?(Vue.openBlock(),Vue.createBlock(Vue.unref(g),{key:0})):Vue.createCommentVNode("",!0),e.product.type===2?(Vue.openBlock(),Vue.createBlock(Vue.unref(O),{key:1})):Vue.createCommentVNode("",!0),e.product.type===3?(Vue.openBlock(),Vue.createBlock(Vue.unref(b),{key:2})):Vue.createCommentVNode("",!0),e.product.type===4?(Vue.openBlock(),Vue.createBlock(Vue.unref(q),{key:3})):Vue.createCommentVNode("",!0),e.product.type===5?(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{key:4})):Vue.createCommentVNode("",!0)],2),Vue.createElementVNode("div",J,[Vue.createVNode(i,{color:e.product.isSetup?"#00a870":"#eee",effect:"dark",class:"mx-1 list-card-item_detail--operation--tag"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(e.product.isSetup?"已启用":"已停用"),1)]),_:1},8,["color"]),Vue.createVNode(m,{trigger:"click",disabled:!e.product.isSetup},{dropdown:Vue.withCtx(()=>[Vue.createVNode(V,{disabled:!e.product.isSetup},{default:Vue.withCtx(()=>[Vue.createVNode(l,{onClick:c[0]||(c[0]=_=>a(e.product))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 管理 ")]),_:1}),Vue.createVNode(l,{onClick:c[1]||(c[1]=_=>r(e.product))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 删除 ")]),_:1})]),_:1},8,["disabled"])]),default:Vue.withCtx(()=>[Vue.createVNode(s,{icon:Vue.unref(p),class:"text-[24px]"},null,8,["icon"])]),_:1},8,["disabled"])])]),_:1}),Vue.createElementVNode("p",K,Vue.toDisplayString(e.product.name),1),Vue.createElementVNode("p",P,Vue.toDisplayString(e.product.description),1)])],2)}}});const X=v(Q,[["__scopeId","data-v-aa9a6877"]]);export{X as default}; diff --git a/dist/static/js/DialogForm-8ed6f873.js b/dist/static/js/DialogForm-8ed6f873.js new file mode 100644 index 000000000..0e85de298 --- /dev/null +++ b/dist/static/js/DialogForm-8ed6f873.js @@ -0,0 +1 @@ +import{_ as o}from"./DialogForm.vue_vue_type_script_setup_true_lang-27dd14b2.js";import"./message-ac5811da.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/DialogForm-fd684ffb.js b/dist/static/js/DialogForm-fd684ffb.js deleted file mode 100644 index 7800f16b8..000000000 --- a/dist/static/js/DialogForm-fd684ffb.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./DialogForm.vue_vue_type_script_setup_true_lang-239ec3a6.js";import"./message-9ae1daa3.js";import"./index-c61a73ff.js";export{o as default}; diff --git a/dist/static/js/DialogForm.vue_vue_type_script_setup_true_lang-239ec3a6.js b/dist/static/js/DialogForm.vue_vue_type_script_setup_true_lang-239ec3a6.js deleted file mode 100644 index 4984cf9cb..000000000 --- a/dist/static/js/DialogForm.vue_vue_type_script_setup_true_lang-239ec3a6.js +++ /dev/null @@ -1 +0,0 @@ -import{m as h}from"./message-9ae1daa3.js";const F=Vue.defineComponent({__name:"DialogForm",props:{visible:{type:Boolean,default:!1},data:{type:Object,default:()=>({})}},emits:["update:visible"],setup(c,{emit:v}){const r=c,f=[{label:"网关",value:1},{label:"人工智能",value:2},{label:"CVM",value:3},{label:"防火墙",value:4},{label:"未知",value:5}],V=Vue.ref(),a=Vue.ref(!1),o=Vue.ref(r.data),d=Vue.ref(""),_=async l=>{l&&await l.validate(e=>{e&&(h("提交成功",{type:"success"}),a.value=!1,s(l))})},s=l=>{l&&l.resetFields()},p=()=>{a.value=!1,s(V.value)};Vue.watch(()=>a.value,l=>{v("update:visible",l)}),Vue.watch(()=>r.visible,l=>{a.value=l}),Vue.watch(()=>r.data,l=>{o.value=l});const b={name:[{required:!0,message:"请输入产品名称",trigger:"blur"}]};return(l,e)=>{const n=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-form-item"),i=Vue.resolveComponent("el-radio"),x=Vue.resolveComponent("el-radio-group"),C=Vue.resolveComponent("el-option"),w=Vue.resolveComponent("el-select"),N=Vue.resolveComponent("el-form"),m=Vue.resolveComponent("el-button"),y=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(y,{modelValue:a.value,"onUpdate:modelValue":e[6]||(e[6]=t=>a.value=t),title:"新建产品",width:680,draggable:"","before-close":p},{footer:Vue.withCtx(()=>[Vue.createVNode(m,{onClick:p},{default:Vue.withCtx(()=>[Vue.createTextVNode("取消")]),_:1}),Vue.createVNode(m,{type:"primary",onClick:e[5]||(e[5]=t=>_(V.value))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 确定 ")]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(N,{ref_key:"ruleFormRef",ref:V,model:o.value,rules:b,"label-width":"100px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:"产品名称",prop:"name"},{default:Vue.withCtx(()=>[Vue.createVNode(n,{modelValue:o.value.name,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value.name=t),style:{width:"480px"},placeholder:"请输入产品名称"},null,8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"产品状态",prop:"status"},{default:Vue.withCtx(()=>[Vue.createVNode(x,{modelValue:o.value.status,"onUpdate:modelValue":e[1]||(e[1]=t=>o.value.status=t)},{default:Vue.withCtx(()=>[Vue.createVNode(i,{label:"0"},{default:Vue.withCtx(()=>[Vue.createTextVNode("已停用")]),_:1}),Vue.createVNode(i,{label:"1"},{default:Vue.withCtx(()=>[Vue.createTextVNode("已启用")]),_:1})]),_:1},8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"产品描述",prop:"description"},{default:Vue.withCtx(()=>[Vue.createVNode(n,{modelValue:o.value.description,"onUpdate:modelValue":e[2]||(e[2]=t=>o.value.description=t),style:{width:"480px"},placeholder:"请输入产品描述"},null,8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"产品类型",prop:"type"},{default:Vue.withCtx(()=>[Vue.createVNode(w,{modelValue:o.value.type,"onUpdate:modelValue":e[3]||(e[3]=t=>o.value.type=t),clearable:"",style:{width:"480px"}},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(f,(t,g)=>Vue.createVNode(C,{key:g,value:t.value,label:t.label},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(t.label),1)]),_:2},1032,["value","label"])),64))]),_:1},8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"备注",prop:"mark"},{default:Vue.withCtx(()=>[Vue.createVNode(n,{modelValue:d.value,"onUpdate:modelValue":e[4]||(e[4]=t=>d.value=t),type:"textarea",style:{width:"480px"},placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{F as _}; diff --git a/dist/static/js/DialogForm.vue_vue_type_script_setup_true_lang-27dd14b2.js b/dist/static/js/DialogForm.vue_vue_type_script_setup_true_lang-27dd14b2.js new file mode 100644 index 000000000..f91f550f5 --- /dev/null +++ b/dist/static/js/DialogForm.vue_vue_type_script_setup_true_lang-27dd14b2.js @@ -0,0 +1 @@ +import{m as T}from"./message-ac5811da.js";import{d as L,r as p,y as _,c as n,e as R,w as t,f as g,g as a,h as d,k as j,l as q,C as I,F as M}from"./index-0dd8d5e4.js";const z=L({__name:"DialogForm",props:{visible:{type:Boolean,default:!1},data:{type:Object,default:()=>({})}},emits:["update:visible"],setup(x,{emit:w}){const m=x,k=[{label:"网关",value:1},{label:"人工智能",value:2},{label:"CVM",value:3},{label:"防火墙",value:4},{label:"未知",value:5}],i=p(),s=p(!1),u=p(m.data),v=p(""),C=async o=>{o&&await o.validate(e=>{e&&(T("提交成功",{type:"success"}),s.value=!1,c(o))})},c=o=>{o&&o.resetFields()},b=()=>{s.value=!1,c(i.value)};_(()=>s.value,o=>{w("update:visible",o)}),_(()=>m.visible,o=>{s.value=o}),_(()=>m.data,o=>{u.value=o});const F={name:[{required:!0,message:"请输入产品名称",trigger:"blur"}]};return(o,e)=>{const f=n("el-input"),r=n("el-form-item"),V=n("el-radio"),U=n("el-radio-group"),B=n("el-option"),D=n("el-select"),N=n("el-form"),y=n("el-button"),O=n("el-dialog");return g(),R(O,{modelValue:s.value,"onUpdate:modelValue":e[6]||(e[6]=l=>s.value=l),title:"新建产品",width:680,draggable:"","before-close":b},{footer:t(()=>[a(y,{onClick:b},{default:t(()=>[d("取消")]),_:1}),a(y,{type:"primary",onClick:e[5]||(e[5]=l=>C(i.value))},{default:t(()=>[d(" 确定 ")]),_:1})]),default:t(()=>[a(N,{ref_key:"ruleFormRef",ref:i,model:u.value,rules:F,"label-width":"100px"},{default:t(()=>[a(r,{label:"产品名称",prop:"name"},{default:t(()=>[a(f,{modelValue:u.value.name,"onUpdate:modelValue":e[0]||(e[0]=l=>u.value.name=l),style:{width:"480px"},placeholder:"请输入产品名称"},null,8,["modelValue"])]),_:1}),a(r,{label:"产品状态",prop:"status"},{default:t(()=>[a(U,{modelValue:u.value.status,"onUpdate:modelValue":e[1]||(e[1]=l=>u.value.status=l)},{default:t(()=>[a(V,{label:"0"},{default:t(()=>[d("已停用")]),_:1}),a(V,{label:"1"},{default:t(()=>[d("已启用")]),_:1})]),_:1},8,["modelValue"])]),_:1}),a(r,{label:"产品描述",prop:"description"},{default:t(()=>[a(f,{modelValue:u.value.description,"onUpdate:modelValue":e[2]||(e[2]=l=>u.value.description=l),style:{width:"480px"},placeholder:"请输入产品描述"},null,8,["modelValue"])]),_:1}),a(r,{label:"产品类型",prop:"type"},{default:t(()=>[a(D,{modelValue:u.value.type,"onUpdate:modelValue":e[3]||(e[3]=l=>u.value.type=l),clearable:"",style:{width:"480px"}},{default:t(()=>[(g(),j(M,null,q(k,(l,S)=>a(B,{key:S,value:l.value,label:l.label},{default:t(()=>[d(I(l.label),1)]),_:2},1032,["value","label"])),64))]),_:1},8,["modelValue"])]),_:1}),a(r,{label:"备注",prop:"mark"},{default:t(()=>[a(f,{modelValue:v.value,"onUpdate:modelValue":e[4]||(e[4]=l=>v.value=l),type:"textarea",style:{width:"480px"},placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{z as _}; diff --git a/dist/static/js/Github-04649e33.js b/dist/static/js/Github-04649e33.js deleted file mode 100644 index ccd6b46a4..000000000 --- a/dist/static/js/Github-04649e33.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Github.vue_vue_type_script_setup_true_lang-5f576015.js";import"./columns-d84895c5.js";import"./index-771e958b.js";import"./office-building-cc7a1721.js";import"./iphone-89710f1a.js";import"./user-3-fill-99d174b6.js";export{o as default}; diff --git a/dist/static/js/Github-9cae51b2.js b/dist/static/js/Github-9cae51b2.js new file mode 100644 index 000000000..6802e4ce5 --- /dev/null +++ b/dist/static/js/Github-9cae51b2.js @@ -0,0 +1 @@ +import{_ as o}from"./Github.vue_vue_type_script_setup_true_lang-465cd287.js";import"./columns-534bdbdc.js";import"./index-24d2e7bb.js";import"./index-0dd8d5e4.js";import"./office-building-cc7a1721.js";import"./iphone-bcaa848c.js";import"./user-3-fill-70ba8c19.js";export{o as default}; diff --git a/dist/static/js/Github.vue_vue_type_script_setup_true_lang-465cd287.js b/dist/static/js/Github.vue_vue_type_script_setup_true_lang-465cd287.js new file mode 100644 index 000000000..74293919d --- /dev/null +++ b/dist/static/js/Github.vue_vue_type_script_setup_true_lang-465cd287.js @@ -0,0 +1 @@ +import{useColumns as r}from"./columns-534bdbdc.js";import{d as u,c as t,f as a,k as i,l as p,g as _,F as d}from"./index-0dd8d5e4.js";const g=u({__name:"Github",setup(f){const{columnsA:o,columnsB:c,columnsC:e}=r(),s=[{columns:o,column:3},{columns:c,column:2},{columns:e,column:1}];return(k,C)=>{const l=t("PureDescriptions");return a(),i(d,null,p(s,(n,m)=>_(l,{key:m,columns:n.columns,column:n.column,direction:"vertical",border:""},null,8,["columns","column"])),64)}}});export{g as _}; diff --git a/dist/static/js/Github.vue_vue_type_script_setup_true_lang-5f576015.js b/dist/static/js/Github.vue_vue_type_script_setup_true_lang-5f576015.js deleted file mode 100644 index e7b80456e..000000000 --- a/dist/static/js/Github.vue_vue_type_script_setup_true_lang-5f576015.js +++ /dev/null @@ -1 +0,0 @@ -import{useColumns as m}from"./columns-d84895c5.js";const _=Vue.defineComponent({__name:"Github",setup(r){const{columnsA:e,columnsB:o,columnsC:u}=m(),c=[{columns:e,column:3},{columns:o,column:2},{columns:u,column:1}];return(t,i)=>{const l=Vue.resolveComponent("PureDescriptions");return Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(c,(n,s)=>Vue.createVNode(l,{key:s,columns:n.columns,column:n.column,direction:"vertical",border:""},null,8,["columns","column"])),64)}}});export{_}; diff --git a/dist/static/js/Line-1798cde1.js b/dist/static/js/Line-1798cde1.js deleted file mode 100644 index 4a439629e..000000000 --- a/dist/static/js/Line-1798cde1.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Line.vue_vue_type_script_setup_true_lang-13252cba.js";import"./app-7adcc40f.js";import"./index-c61a73ff.js";export{o as default}; diff --git a/dist/static/js/Line-3d037804.js b/dist/static/js/Line-3d037804.js new file mode 100644 index 000000000..36a1aca33 --- /dev/null +++ b/dist/static/js/Line-3d037804.js @@ -0,0 +1 @@ +import{_ as o}from"./Line.vue_vue_type_script_setup_true_lang-c9d17410.js";import"./app-9580cee8.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/Line.vue_vue_type_script_setup_true_lang-13252cba.js b/dist/static/js/Line.vue_vue_type_script_setup_true_lang-13252cba.js deleted file mode 100644 index dfb4e16f9..000000000 --- a/dist/static/js/Line.vue_vue_type_script_setup_true_lang-13252cba.js +++ /dev/null @@ -1 +0,0 @@ -import{u as m}from"./app-7adcc40f.js";import{B as p,Z as u,r as f,D as d}from"./index-c61a73ff.js";const g=Vue.defineComponent({__name:"Line",setup(h){const{isDark:l}=p(),n=Vue.computed(()=>l.value?"dark":"default"),r=Vue.ref(null),{setOptions:s,getInstance:i,resize:c}=u(r,{theme:n}),o=(()=>{const e=[];for(let a=1;a<31;a++)e.push(`${a}日`);return e})();s({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{bottom:"20px",right:"10px"},legend:{right:!0,data:["fork","star"]},calculable:!0,xAxis:[{triggerEvent:!0,type:"category",splitLine:{show:!1},axisTick:{show:!1},data:o}],yAxis:[{triggerEvent:!0,type:"value",splitLine:{show:!1},axisLine:{show:!0}}],dataZoom:[{type:"slider",show:!1,realtime:!0,startValue:0,endValue:24}],series:[{name:"fork",type:"line",symbolSize:10,symbol:"circle",color:"#f56c6c",markPoint:{label:{color:"#fff"},data:[{type:"max",name:"最大值"},{type:"min",name:"最小值"}]},data:[509,917,2455,2610,2719,3033,3044,3085,2708,2809,2117,2e3,1455,1210,719,733,944,2285,2208,3372,3936,3693,2962,2810,3519,2455,2610,2719,2484,2078]},{name:"star",type:"line",symbolSize:10,symbol:"circle",color:"#53a7ff",markPoint:{label:{color:"#fff"},data:[{type:"max",name:"最大值"},{type:"min",name:"最小值"}]},data:[2136,3693,2962,3810,3519,3484,3915,3823,3455,4310,4019,3433,3544,3885,4208,3372,3484,3915,3748,3675,4009,4433,3544,3285,4208,3372,3484,3915,3823,4265,4298]}],addTooltip:!0},{name:"click",callback:e=>{}},{name:"contextmenu",callback:e=>{}},{type:"zrender",name:"click",callback:e=>{}});let t=1;return f(()=>{t==o.length-24&&(t=0),i().dispatchAction({type:"dataZoom",startValue:t,endValue:t+24}),t++},2e3),Vue.watch(()=>m().getSidebarStatus,()=>{d(600).then(()=>c())}),(e,a)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref_key:"lineChartRef",ref:r,style:{width:"100%",height:"35vh"}},null,512))}});export{g as _}; diff --git a/dist/static/js/Line.vue_vue_type_script_setup_true_lang-c9d17410.js b/dist/static/js/Line.vue_vue_type_script_setup_true_lang-c9d17410.js new file mode 100644 index 000000000..c12ecde39 --- /dev/null +++ b/dist/static/js/Line.vue_vue_type_script_setup_true_lang-c9d17410.js @@ -0,0 +1 @@ +import{u as m}from"./app-9580cee8.js";import{d as p,an as u,x as f,r as d,ao as h,ap as y,y as k,f as x,k as g,aq as b}from"./index-0dd8d5e4.js";const S=p({__name:"Line",setup(_){const{isDark:o}=u(),l=f(()=>o.value?"dark":"default"),r=d(null),{setOptions:n,getInstance:i,resize:c}=h(r,{theme:l}),s=(()=>{const e=[];for(let t=1;t<31;t++)e.push(`${t}日`);return e})();n({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{bottom:"20px",right:"10px"},legend:{right:!0,data:["fork","star"]},calculable:!0,xAxis:[{triggerEvent:!0,type:"category",splitLine:{show:!1},axisTick:{show:!1},data:s}],yAxis:[{triggerEvent:!0,type:"value",splitLine:{show:!1},axisLine:{show:!0}}],dataZoom:[{type:"slider",show:!1,realtime:!0,startValue:0,endValue:24}],series:[{name:"fork",type:"line",symbolSize:10,symbol:"circle",color:"#f56c6c",markPoint:{label:{color:"#fff"},data:[{type:"max",name:"最大值"},{type:"min",name:"最小值"}]},data:[509,917,2455,2610,2719,3033,3044,3085,2708,2809,2117,2e3,1455,1210,719,733,944,2285,2208,3372,3936,3693,2962,2810,3519,2455,2610,2719,2484,2078]},{name:"star",type:"line",symbolSize:10,symbol:"circle",color:"#53a7ff",markPoint:{label:{color:"#fff"},data:[{type:"max",name:"最大值"},{type:"min",name:"最小值"}]},data:[2136,3693,2962,3810,3519,3484,3915,3823,3455,4310,4019,3433,3544,3885,4208,3372,3484,3915,3748,3675,4009,4433,3544,3285,4208,3372,3484,3915,3823,4265,4298]}],addTooltip:!0},{name:"click",callback:e=>{}},{name:"contextmenu",callback:e=>{}},{type:"zrender",name:"click",callback:e=>{}});let a=1;return y(()=>{a==s.length-24&&(a=0),i().dispatchAction({type:"dataZoom",startValue:a,endValue:a+24}),a++},2e3),k(()=>m().getSidebarStatus,()=>{b(600).then(()=>c())}),(e,t)=>(x(),g("div",{ref_key:"lineChartRef",ref:r,style:{width:"100%",height:"35vh"}},null,512))}});export{S as _}; diff --git a/dist/static/js/Pie-0a191e90.js b/dist/static/js/Pie-0a191e90.js deleted file mode 100644 index 18f349589..000000000 --- a/dist/static/js/Pie-0a191e90.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./Pie.vue_vue_type_script_setup_true_lang-ee222e50.js";import"./app-7adcc40f.js";import"./index-c61a73ff.js";export{o as default}; diff --git a/dist/static/js/Pie-c23b2db7.js b/dist/static/js/Pie-c23b2db7.js new file mode 100644 index 000000000..1e98d5759 --- /dev/null +++ b/dist/static/js/Pie-c23b2db7.js @@ -0,0 +1 @@ +import{_ as o}from"./Pie.vue_vue_type_script_setup_true_lang-2dbb1c8a.js";import"./app-9580cee8.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/Pie.vue_vue_type_script_setup_true_lang-2dbb1c8a.js b/dist/static/js/Pie.vue_vue_type_script_setup_true_lang-2dbb1c8a.js new file mode 100644 index 000000000..4d791d0aa --- /dev/null +++ b/dist/static/js/Pie.vue_vue_type_script_setup_true_lang-2dbb1c8a.js @@ -0,0 +1 @@ +import{u as n}from"./app-9580cee8.js";import{d as o,an as i,x as l,r as p,ao as m,y as u,f,k as h,aq as k}from"./index-0dd8d5e4.js";const y=o({__name:"Pie",setup(d){const{isDark:t}=i(),r=l(()=>t.value?"dark":"light"),e=p(null),{setOptions:s,resize:c}=m(e,{theme:r});return s({tooltip:{trigger:"item"},legend:{icon:"circle",right:!0},series:[{name:"Github信息",type:"pie",top:"20%",radius:"80%",center:["40%","50%"],color:["#e6a23c","#f56c6c","#53a7ff"],data:[{value:400,name:"watchers"},{value:1600,name:"forks"},{value:7200,name:"star"}]}]},{name:"click",callback:a=>{}},{type:"zrender",name:"click",callback:a=>{}}),u(()=>n().getSidebarStatus,()=>{k(600).then(()=>c())}),(a,_)=>(f(),h("div",{ref_key:"pieChartRef",ref:e,style:{width:"100%",height:"35vh"}},null,512))}});export{y as _}; diff --git a/dist/static/js/Pie.vue_vue_type_script_setup_true_lang-ee222e50.js b/dist/static/js/Pie.vue_vue_type_script_setup_true_lang-ee222e50.js deleted file mode 100644 index a9ce78314..000000000 --- a/dist/static/js/Pie.vue_vue_type_script_setup_true_lang-ee222e50.js +++ /dev/null @@ -1 +0,0 @@ -import{u as o}from"./app-7adcc40f.js";import{B as i,Z as s,D as l}from"./index-c61a73ff.js";const f=Vue.defineComponent({__name:"Pie",setup(u){const{isDark:r}=i(),a=Vue.computed(()=>r.value?"dark":"light"),e=Vue.ref(null),{setOptions:c,resize:n}=s(e,{theme:a});return c({tooltip:{trigger:"item"},legend:{icon:"circle",right:!0},series:[{name:"Github信息",type:"pie",top:"20%",radius:"80%",center:["40%","50%"],color:["#e6a23c","#f56c6c","#53a7ff"],data:[{value:400,name:"watchers"},{value:1600,name:"forks"},{value:7200,name:"star"}]}]},{name:"click",callback:t=>{}},{type:"zrender",name:"click",callback:t=>{}}),Vue.watch(()=>o().getSidebarStatus,()=>{l(600).then(()=>n())}),(t,p)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref_key:"pieChartRef",ref:e,style:{width:"100%",height:"35vh"}},null,512))}});export{f as _}; diff --git a/dist/static/js/_vue_commonjs-external-c09696f7.js b/dist/static/js/_vue_commonjs-external-c09696f7.js deleted file mode 100644 index c49407bd0..000000000 --- a/dist/static/js/_vue_commonjs-external-c09696f7.js +++ /dev/null @@ -1 +0,0 @@ -const e=Vue;export{e as _}; diff --git a/dist/static/js/add-circle-line-438b436c.js b/dist/static/js/add-circle-line-a03ff6bd.js similarity index 82% rename from dist/static/js/add-circle-line-438b436c.js rename to dist/static/js/add-circle-line-a03ff6bd.js index 371871bf0..2cbe70ef4 100644 --- a/dist/static/js/add-circle-line-438b436c.js +++ b/dist/static/js/add-circle-line-a03ff6bd.js @@ -1 +1 @@ -const h={width:24,height:24,body:''},t=h;export{t as A}; +const h={width:24,height:24,body:''};export{h as d}; diff --git a/dist/static/js/app-7adcc40f.js b/dist/static/js/app-7adcc40f.js deleted file mode 100644 index b246ad0ae..000000000 --- a/dist/static/js/app-7adcc40f.js +++ /dev/null @@ -1 +0,0 @@ -import{s as a,w as i,x as o,L as r,y as u}from"./index-c61a73ff.js";const d=Pinia.defineStore({id:"pure-app",state:()=>{var e,t;return{sidebar:{opened:((e=a().getItem(`${i()}layout`))==null?void 0:e.sidebarStatus)??o().SidebarStatus,withoutAnimation:!1,isClickCollapse:!1},layout:((t=a().getItem(`${i()}layout`))==null?void 0:t.layout)??o().Layout,device:r()?"mobile":"desktop",sortSwap:!1}},getters:{getSidebarStatus(e){return e.sidebar.opened},getDevice(e){return e.device}},actions:{TOGGLE_SIDEBAR(e,t){const s=a().getItem(`${i()}layout`);e&&t?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!0,s.sidebarStatus=!0):!e&&t?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!1,s.sidebarStatus=!1):!e&&!t&&(this.sidebar.withoutAnimation=!1,this.sidebar.opened=!this.sidebar.opened,this.sidebar.isClickCollapse=!this.sidebar.opened,s.sidebarStatus=this.sidebar.opened),a().setItem(`${i()}layout`,s)},async toggleSideBar(e,t){await this.TOGGLE_SIDEBAR(e,t)},toggleDevice(e){this.device=e},setLayout(e){this.layout=e},setSortSwap(e){this.sortSwap=e}}});function l(){return d(u)}export{l as u}; diff --git a/dist/static/js/app-9580cee8.js b/dist/static/js/app-9580cee8.js new file mode 100644 index 000000000..dc6e68297 --- /dev/null +++ b/dist/static/js/app-9580cee8.js @@ -0,0 +1 @@ +import{ar as r,as as s,at as i,au as o,a4 as u,av as d}from"./index-0dd8d5e4.js";const n=r({id:"pure-app",state:()=>{var e,t;return{sidebar:{opened:((e=s().getItem(`${i()}layout`))==null?void 0:e.sidebarStatus)??o().SidebarStatus,withoutAnimation:!1,isClickCollapse:!1},layout:((t=s().getItem(`${i()}layout`))==null?void 0:t.layout)??o().Layout,device:u()?"mobile":"desktop",sortSwap:!1}},getters:{getSidebarStatus(e){return e.sidebar.opened},getDevice(e){return e.device}},actions:{TOGGLE_SIDEBAR(e,t){const a=s().getItem(`${i()}layout`);e&&t?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!0,a.sidebarStatus=!0):!e&&t?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!1,a.sidebarStatus=!1):!e&&!t&&(this.sidebar.withoutAnimation=!1,this.sidebar.opened=!this.sidebar.opened,this.sidebar.isClickCollapse=!this.sidebar.opened,a.sidebarStatus=this.sidebar.opened),s().setItem(`${i()}layout`,a)},async toggleSideBar(e,t){await this.TOGGLE_SIDEBAR(e,t)},toggleDevice(e){this.device=e},setLayout(e){this.layout=e},setSortSwap(e){this.sortSwap=e}}});function p(){return n(d)}export{p as u}; diff --git a/dist/static/js/arrow-right-s-line-2977cc7e.js b/dist/static/js/arrow-right-s-line-2977cc7e.js new file mode 100644 index 000000000..a713661d8 --- /dev/null +++ b/dist/static/js/arrow-right-s-line-2977cc7e.js @@ -0,0 +1 @@ +const l={width:24,height:24,body:''};export{l as d}; diff --git a/dist/static/js/arrow-right-s-line-bcf0e8c6.js b/dist/static/js/arrow-right-s-line-bcf0e8c6.js deleted file mode 100644 index 872bb156b..000000000 --- a/dist/static/js/arrow-right-s-line-bcf0e8c6.js +++ /dev/null @@ -1 +0,0 @@ -const t={width:24,height:24,body:''},l=t;export{l as A}; diff --git a/dist/static/js/barcode-6d872a2e.js b/dist/static/js/barcode-6d872a2e.js deleted file mode 100644 index 8736f9533..000000000 --- a/dist/static/js/barcode-6d872a2e.js +++ /dev/null @@ -1 +0,0 @@ -import{g as Rt,H as At}from"./index-c61a73ff.js";var le={},X={},l={};Object.defineProperty(l,"__esModule",{value:!0});function Pt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Tt=function t(e,r){Pt(this,t),this.data=e,this.text=r.text||e,this.options=r};l.default=Tt;Object.defineProperty(X,"__esModule",{value:!0});X.CODE39=void 0;var Mt=function(){function t(e,r){for(var n=0;n=200){u=n.shift()-105;var d=h.SWAP[u];d!==void 0?o=e.next(n,a+1,d):((i===h.SET_A||i===h.SET_B)&&u===h.SHIFT&&(n[0]=i===h.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),o=e.next(n,a+1,i))}else u=e.correctIndex(n,i),o=e.next(n,a+1,i);var g=e.getBar(u),St=u*a;return{result:g+o.result,checksum:St+o.checksum}}}]),e}(Jt.default);P.default=Kt;var he={};Object.defineProperty(he,"__esModule",{value:!0});var O=f,ot=function(e){return e.match(new RegExp("^"+O.A_CHARS+"*"))[0].length},ut=function(e){return e.match(new RegExp("^"+O.B_CHARS+"*"))[0].length},ft=function(e){return e.match(new RegExp("^"+O.C_CHARS+"*"))[0]};function _e(t,e){var r=e?O.A_CHARS:O.B_CHARS,n=t.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(n)return n[1]+String.fromCharCode(204)+ct(t.substring(n[1].length));var a=t.match(new RegExp("^"+r+"+"))[0];return a.length===t.length?t:a+String.fromCharCode(e?205:206)+_e(t.substring(a.length),!e)}function ct(t){var e=ft(t),r=e.length;if(r===t.length)return t;t=t.substring(r);var n=ot(t)>=ut(t);return e+String.fromCharCode(n?206:205)+_e(t,n)}he.default=function(t){var e=void 0,r=ft(t).length;if(r>=2)e=O.C_START_CHAR+ct(t);else{var n=ot(t)>ut(t);e=(n?O.A_START_CHAR:O.B_START_CHAR)+_e(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(a,i){return String.fromCharCode(203)+i})};Object.defineProperty(de,"__esModule",{value:!0});var en=P,tn=lt(en),nn=he,rn=lt(nn);function lt(t){return t&&t.__esModule?t:{default:t}}function an(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function re(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function on(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var un=function(t){on(e,t);function e(r,n){if(an(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(r))var a=re(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,rn.default)(r),n));else var a=re(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n));return re(a)}return e}(tn.default);de.default=un;var ve={};Object.defineProperty(ve,"__esModule",{value:!0});var fn=function(){function t(e,r){for(var n=0;nn.width*10?n.width*10:n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return Hn(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(n,a){return this.text.substr(n,a)}},{key:"leftEncode",value:function(n,a){return(0,ze.default)(n,a)}},{key:"rightText",value:function(n,a){return this.text.substr(n,a)}},{key:"rightEncode",value:function(n,a){return(0,ze.default)(n,a)}},{key:"encodeGuarded",value:function(){var n={fontSize:this.fontSize},a={height:this.guardHeight};return[{data:x.SIDE_BIN,options:a},{data:this.leftEncode(),text:this.leftText(),options:n},{data:x.MIDDLE_BIN,options:a},{data:this.rightEncode(),text:this.rightText(),options:n},{data:x.SIDE_BIN,options:a}]}},{key:"encodeFlat",value:function(){var n=[x.SIDE_BIN,this.leftEncode(),x.MIDDLE_BIN,this.rightEncode(),x.SIDE_BIN];return{data:n.join(""),text:this.text}}}]),e}(Xn.default);q.default=Qn;Object.defineProperty(pe,"__esModule",{value:!0});var Wn=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return Dr(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==ue(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=(0,S.default)(this.data.substr(0,6),"LLLLLL"),n+="01010",n+=(0,S.default)(this.data.substr(6,6),"RRRRRR"),n+="101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101"+(0,S.default)(this.data[0],"L"),options:{height:this.guardHeight}}),n.push({data:(0,S.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),n.push({data:"01010",options:{height:this.guardHeight}}),n.push({data:(0,S.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),n.push({data:(0,S.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),n}}]),e}(Lr.default);function ue(t){var e=0,r;for(r=1;r<11;r+=2)e+=parseInt(t[r]);for(r=0;r<11;r+=2)e+=parseInt(t[r])*3;return(10-e%10)%10}L.default=Vr;var be={};Object.defineProperty(be,"__esModule",{value:!0});var Hr=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return Hr(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=this.encodeMiddleDigits(),n+="010101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101",options:{height:this.guardHeight}}),n.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),n.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),n}},{key:"encodeMiddleDigits",value:function(){var n=this.upcA[0],a=this.upcA[this.upcA.length-1],i=Yr[parseInt(a)][parseInt(n)];return(0,zr.default)(this.middleDigits,i)}}]),e}(Ur.default);function qe(t,e){for(var r=parseInt(t[t.length-1]),n=Wr[r],a="",i=0,o=0;o=3&&this.number<=131070}}]),e}(Ti.default);Q.pharmacode=Bi;var W={};Object.defineProperty(W,"__esModule",{value:!0});W.codabar=void 0;var ji=function(){function t(e,r){for(var n=0;n0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function Ot(t,e,r){if(r.displayValue&&ee&&(e=t[r].height);return e}function go(t,e,r){var n;if(r)n=r;else if(typeof document<"u")n=document.createElement("canvas").getContext("2d");else return 0;n.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var a=n.measureText(t);if(!a)return 0;var i=a.width;return i}_.getMaximumHeightOfEncodings=po;_.getEncodingHeight=gt;_.getBarcodePadding=Ot;_.calculateEncodingAttributes=so;_.getTotalWidthOfEncodings=yo;Object.defineProperty(ke,"__esModule",{value:!0});var Oo=function(){function t(e,r){for(var n=0;n0?(o=0,a.textAlign="left"):r.textAlign=="right"?(o=n.width-1,a.textAlign="right"):(o=n.width/2,a.textAlign="center"),a.fillText(n.text,o,u)}}},{key:"moveCanvasDrawing",value:function(r){var n=this.canvas.getContext("2d");n.translate(r.width,0)}},{key:"restoreCanvas",value:function(){var r=this.canvas.getContext("2d");r.restore()}}]),t}();ke.default=$o;var Ie={};Object.defineProperty(Ie,"__esModule",{value:!0});var xo=function(){function t(e,r){for(var n=0;n0&&(this.drawRect(d-n.width*u,o,n.width*u,n.height,r),u=0);u>0&&this.drawRect(d-n.width*(u-1),o,n.width*u,n.height,r)}},{key:"drawSVGText",value:function(r,n,a){var i=this.document.createElementNS(z,"text");if(n.displayValue){var o,u;i.setAttribute("style","font:"+n.fontOptions+" "+n.fontSize+"px "+n.font),n.textPosition=="top"?u=n.fontSize-n.textMargin:u=n.height+n.textMargin+n.fontSize,n.textAlign=="left"||a.barcodePadding>0?(o=0,i.setAttribute("text-anchor","start")):n.textAlign=="right"?(o=a.width-1,i.setAttribute("text-anchor","end")):(o=a.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",o),i.setAttribute("y",u),i.appendChild(this.document.createTextNode(a.text)),r.appendChild(i)}}},{key:"setSvgAttributes",value:function(r,n){var a=this.svg;a.setAttribute("width",r+"px"),a.setAttribute("height",n+"px"),a.setAttribute("x","0px"),a.setAttribute("y","0px"),a.setAttribute("viewBox","0 0 "+r+" "+n),a.setAttribute("xmlns",z),a.setAttribute("version","1.1"),a.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(r,n,a){var i=this.document.createElementNS(z,"g");return i.setAttribute("transform","translate("+r+", "+n+")"),a.appendChild(i),i}},{key:"setGroupOptions",value:function(r,n){r.setAttribute("style","fill:"+n.lineColor+";")}},{key:"drawRect",value:function(r,n,a,i,o){var u=this.document.createElementNS(z,"rect");return u.setAttribute("x",r),u.setAttribute("y",n),u.setAttribute("width",a),u.setAttribute("height",i),o.appendChild(u),u}}]),t}();Ie.default=To;var De={};Object.defineProperty(De,"__esModule",{value:!0});var Mo=function(){function t(e,r){for(var n=0;n"u"?"undefined":Fo(t))==="object"&&!t.nodeName)return{element:t,renderer:j.default.ObjectRenderer};throw new Uo.InvalidElementException}}function qo(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var r=[],n=0;n"u")throw Error("No element to render on was provided.");return a._renderProperties=(0,ru.default)(e),a._encodings=[],a._options=wt.default,a._errorHandler=new uu.default(a),typeof r<"u"&&(n=n||{},n.format||(n.format=xt()),a.options(n)[n.format](r,n).render()),a};ee.getModule=function(t){return b.default[t]};for(var et in b.default)b.default.hasOwnProperty(et)&&cu(b.default,et);function cu(t,e){p.prototype[e]=p.prototype[e.toUpperCase()]=p.prototype[e.toLowerCase()]=function(r,n){var a=this;return a._errorHandler.wrapBarcodeCall(function(){n.text=typeof n.text>"u"?void 0:""+n.text;var i=(0,G.default)(a._options,n);i=(0,iu.default)(i);var o=t[e],u=$t(r,o,i);return a._encodings.push(u),a})}}function $t(t,e,r){t=""+t;var n=new e(t,r);if(!n.valid())throw new mt.InvalidInputException(n.constructor.name,t);var a=n.encode();a=(0,bt.default)(a);for(var i=0;i{const n={...e.options,format:e.type};du(r.value,e.text,n)}),(n,a)=>(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(t.tag),{ref_key:"wrapEl",ref:r},null,512))}}),_u=At(hu),vu=_u,su={class:"font-medium"},pu=Vue.defineComponent({name:"BarCode",__name:"barcode",setup(t){const e=[{text:"CODE128",type:"CODE128",options:{}},{text:"CODE39",type:"CODE39",options:{lineColor:"#990000"}},{text:"123456",type:"pharmacode",options:{background:"#eee",width:5}}];return(r,n)=>{const a=Vue.resolveComponent("el-link"),i=Vue.resolveComponent("el-card"),o=Vue.resolveComponent("el-col"),u=Vue.resolveComponent("el-row");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(i,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",su,[Vue.createTextVNode(" 条形码(基于 "),Vue.createVNode(a,{href:"https://lindell.me/JsBarcode/",target:"_blank",style:{margin:"0 5px 4px 0","font-size":"16px"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" JsBarcode ")]),_:1}),Vue.createTextVNode(" 生成) ")])]),default:Vue.withCtx(()=>[Vue.createVNode(u,{gutter:12},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e,(d,g)=>Vue.createVNode(o,{key:g,xs:24,sm:24,md:12,lg:8,xl:8},{default:Vue.withCtx(()=>[Vue.createVNode(i,{shadow:"hover",class:"flex justify-center"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(vu),{text:d.text,type:d.type,options:d.options},null,8,["text","type","options"])]),_:2},1024)]),_:2},1024)),64))]),_:1})]),_:1})])}}});export{pu as default}; diff --git a/dist/static/js/barcode-7cfa344e.js b/dist/static/js/barcode-7cfa344e.js new file mode 100644 index 000000000..4b753dbab --- /dev/null +++ b/dist/static/js/barcode-7cfa344e.js @@ -0,0 +1 @@ +import{O as Dt,d as ut,r as Bt,a as jt,e as Lt,Q as Nt,f as de,R as Ct,c as z,k as Ve,g as x,w as S,i as Gt,h as ae,F as Ft,l as Ht,u as zt}from"./index-0dd8d5e4.js";var se={},J={},l={};Object.defineProperty(l,"__esModule",{value:!0});function Xt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ut=function t(e,r){Xt(this,t),this.data=e,this.text=r.text||e,this.options=r};l.default=Ut;Object.defineProperty(J,"__esModule",{value:!0});J.CODE39=void 0;var Vt=function(){function t(e,r){for(var n=0;n=200){u=n.shift()-105;var d=h.SWAP[u];d!==void 0?o=e.next(n,a+1,d):((i===h.SET_A||i===h.SET_B)&&u===h.SHIFT&&(n[0]=i===h.SET_A?n[0]>95?n[0]-96:n[0]:n[0]<32?n[0]+96:n[0]),o=e.next(n,a+1,i))}else u=e.correctIndex(n,i),o=e.next(n,a+1,i);var g=e.getBar(u),It=u*a;return{result:g+o.result,checksum:It+o.checksum}}}]),e}(ln.default);M.default=sn;var pe={};Object.defineProperty(pe,"__esModule",{value:!0});var O=f,_t=function(e){return e.match(new RegExp("^"+O.A_CHARS+"*"))[0].length},vt=function(e){return e.match(new RegExp("^"+O.B_CHARS+"*"))[0].length},st=function(e){return e.match(new RegExp("^"+O.C_CHARS+"*"))[0]};function ge(t,e){var r=e?O.A_CHARS:O.B_CHARS,n=t.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(n)return n[1]+String.fromCharCode(204)+yt(t.substring(n[1].length));var a=t.match(new RegExp("^"+r+"+"))[0];return a.length===t.length?t:a+String.fromCharCode(e?205:206)+ge(t.substring(a.length),!e)}function yt(t){var e=st(t),r=e.length;if(r===t.length)return t;t=t.substring(r);var n=_t(t)>=vt(t);return e+String.fromCharCode(n?206:205)+ge(t,n)}pe.default=function(t){var e=void 0,r=st(t).length;if(r>=2)e=O.C_START_CHAR+yt(t);else{var n=_t(t)>vt(t);e=(n?O.A_START_CHAR:O.B_START_CHAR)+ge(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(a,i){return String.fromCharCode(203)+i})};Object.defineProperty(ye,"__esModule",{value:!0});var yn=M,pn=pt(yn),gn=pe,On=pt(gn);function pt(t){return t&&t.__esModule?t:{default:t}}function En(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ue(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function bn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mn=function(t){bn(e,t);function e(r,n){if(En(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(r))var a=ue(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,On.default)(r),n));else var a=ue(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r,n));return ue(a)}return e}(pn.default);ye.default=mn;var Oe={};Object.defineProperty(Oe,"__esModule",{value:!0});var wn=function(){function t(e,r){for(var n=0;nn.width*10?n.width*10:n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return rr(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(n,a){return this.text.substr(n,a)}},{key:"leftEncode",value:function(n,a){return(0,We.default)(n,a)}},{key:"rightText",value:function(n,a){return this.text.substr(n,a)}},{key:"rightEncode",value:function(n,a){return(0,We.default)(n,a)}},{key:"encodeGuarded",value:function(){var n={fontSize:this.fontSize},a={height:this.guardHeight};return[{data:R.SIDE_BIN,options:a},{data:this.leftEncode(),text:this.leftText(),options:n},{data:R.MIDDLE_BIN,options:a},{data:this.rightEncode(),text:this.rightText(),options:n},{data:R.SIDE_BIN,options:a}]}},{key:"encodeFlat",value:function(){var n=[R.SIDE_BIN,this.leftEncode(),R.MIDDLE_BIN,this.rightEncode(),R.SIDE_BIN];return{data:n.join(""),text:this.text}}}]),e}(or.default);W.default=lr;Object.defineProperty(me,"__esModule",{value:!0});var dr=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return Qr(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==he(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=(0,A.default)(this.data.substr(0,6),"LLLLLL"),n+="01010",n+=(0,A.default)(this.data.substr(6,6),"RRRRRR"),n+="101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101"+(0,A.default)(this.data[0],"L"),options:{height:this.guardHeight}}),n.push({data:(0,A.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),n.push({data:"01010",options:{height:this.guardHeight}}),n.push({data:(0,A.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),n.push({data:(0,A.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),n}}]),e}(Zr.default);function he(t){var e=0,r;for(r=1;r<11;r+=2)e+=parseInt(t[r]);for(r=0;r<11;r+=2)e+=parseInt(t[r])*3;return(10-e%10)%10}C.default=na;var Se={};Object.defineProperty(Se,"__esModule",{value:!0});var ra=function(){function t(e,r){for(var n=0;nn.width*10?a.fontSize=n.width*10:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return ra(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var n="";return n+="101",n+=this.encodeMiddleDigits(),n+="010101",{data:n,text:this.text}}},{key:"guardedEncoding",value:function(){var n=[];return this.displayValue&&n.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),n.push({data:"101",options:{height:this.guardHeight}}),n.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),n.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&n.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),n}},{key:"encodeMiddleDigits",value:function(){var n=this.upcA[0],a=this.upcA[this.upcA.length-1],i=ha[parseInt(a)][parseInt(n)];return(0,ia.default)(this.middleDigits,i)}}]),e}(ua.default);function Ke(t,e){for(var r=parseInt(t[t.length-1]),n=da[r],a="",i=0,o=0;o=3&&this.number<=131070}}]),e}(Ui.default);Z.pharmacode=Wi;var K={};Object.defineProperty(K,"__esModule",{value:!0});K.codabar=void 0;var Yi=function(){function t(e,r){for(var n=0;n0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function St(t,e,r){if(r.displayValue&&ee&&(e=t[r].height);return e}function Io(t,e,r){var n;if(r)n=r;else if(typeof document<"u")n=document.createElement("canvas").getContext("2d");else return 0;n.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var a=n.measureText(t);if(!a)return 0;var i=a.width;return i}_.getMaximumHeightOfEncodings=ko;_.getEncodingHeight=xt;_.getBarcodePadding=St;_.calculateEncodingAttributes=To;_.getTotalWidthOfEncodings=Mo;Object.defineProperty(Le,"__esModule",{value:!0});var Do=function(){function t(e,r){for(var n=0;n0?(o=0,a.textAlign="left"):r.textAlign=="right"?(o=n.width-1,a.textAlign="right"):(o=n.width/2,a.textAlign="center"),a.fillText(n.text,o,u)}}},{key:"moveCanvasDrawing",value:function(r){var n=this.canvas.getContext("2d");n.translate(r.width,0)}},{key:"restoreCanvas",value:function(){var r=this.canvas.getContext("2d");r.restore()}}]),t}();Le.default=Co;var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});var Go=function(){function t(e,r){for(var n=0;n0&&(this.drawRect(d-n.width*u,o,n.width*u,n.height,r),u=0);u>0&&this.drawRect(d-n.width*(u-1),o,n.width*u,n.height,r)}},{key:"drawSVGText",value:function(r,n,a){var i=this.document.createElementNS(q,"text");if(n.displayValue){var o,u;i.setAttribute("style","font:"+n.fontOptions+" "+n.fontSize+"px "+n.font),n.textPosition=="top"?u=n.fontSize-n.textMargin:u=n.height+n.textMargin+n.fontSize,n.textAlign=="left"||a.barcodePadding>0?(o=0,i.setAttribute("text-anchor","start")):n.textAlign=="right"?(o=a.width-1,i.setAttribute("text-anchor","end")):(o=a.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",o),i.setAttribute("y",u),i.appendChild(this.document.createTextNode(a.text)),r.appendChild(i)}}},{key:"setSvgAttributes",value:function(r,n){var a=this.svg;a.setAttribute("width",r+"px"),a.setAttribute("height",n+"px"),a.setAttribute("x","0px"),a.setAttribute("y","0px"),a.setAttribute("viewBox","0 0 "+r+" "+n),a.setAttribute("xmlns",q),a.setAttribute("version","1.1"),a.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(r,n,a){var i=this.document.createElementNS(q,"g");return i.setAttribute("transform","translate("+r+", "+n+")"),a.appendChild(i),i}},{key:"setGroupOptions",value:function(r,n){r.setAttribute("style","fill:"+n.lineColor+";")}},{key:"drawRect",value:function(r,n,a,i,o){var u=this.document.createElementNS(q,"rect");return u.setAttribute("x",r),u.setAttribute("y",n),u.setAttribute("width",a),u.setAttribute("height",i),o.appendChild(u),u}}]),t}();Ne.default=Uo;var Ce={};Object.defineProperty(Ce,"__esModule",{value:!0});var Vo=function(){function t(e,r){for(var n=0;n"u"?"undefined":au(t))==="object"&&!t.nodeName)return{element:t,renderer:N.default.ObjectRenderer};throw new uu.InvalidElementException}}function fu(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var r=[],n=0;n"u")throw Error("No element to render on was provided.");return a._renderProperties=(0,gu.default)(e),a._encodings=[],a._options=Tt.default,a._errorHandler=new mu.default(a),typeof r<"u"&&(n=n||{},n.format||(n.format=kt()),a.options(n)[n.format](r,n).render()),a};re.getModule=function(t){return b.default[t]};for(var ot in b.default)b.default.hasOwnProperty(ot)&&$u(b.default,ot);function $u(t,e){p.prototype[e]=p.prototype[e.toUpperCase()]=p.prototype[e.toLowerCase()]=function(r,n){var a=this;return a._errorHandler.wrapBarcodeCall(function(){n.text=typeof n.text>"u"?void 0:""+n.text;var i=(0,H.default)(a._options,n);i=(0,Eu.default)(i);var o=t[e],u=Mt(r,o,i);return a._encodings.push(u),a})}}function Mt(t,e,r){t=""+t;var n=new e(t,r);if(!n.valid())throw new Pt.InvalidInputException(n.constructor.name,t);var a=n.encode();a=(0,At.default)(a);for(var i=0;i{const n={...e.options,format:e.type};Su(r.value,e.text,n)}),(n,a)=>(de(),Lt(Nt(t.tag),{ref_key:"wrapEl",ref:r},null,512))}}),Au=Ct(Ru),Pu={class:"font-medium"},Mu=ut({name:"BarCode",__name:"barcode",setup(t){const e=[{text:"CODE128",type:"CODE128",options:{}},{text:"CODE39",type:"CODE39",options:{lineColor:"#990000"}},{text:"123456",type:"pharmacode",options:{background:"#eee",width:5}}];return(r,n)=>{const a=z("el-link"),i=z("el-card"),o=z("el-col"),u=z("el-row");return de(),Ve("div",null,[x(i,{shadow:"never"},{header:S(()=>[Gt("div",Pu,[ae(" 条形码(基于 "),x(a,{href:"https://lindell.me/JsBarcode/",target:"_blank",style:{margin:"0 5px 4px 0","font-size":"16px"}},{default:S(()=>[ae(" JsBarcode ")]),_:1}),ae(" 生成) ")])]),default:S(()=>[x(u,{gutter:12},{default:S(()=>[(de(),Ve(Ft,null,Ht(e,(d,g)=>x(o,{key:g,xs:24,sm:24,md:12,lg:8,xl:8},{default:S(()=>[x(i,{shadow:"hover",class:"flex justify-center"},{default:S(()=>[x(zt(Au),{text:d.text,type:d.type,options:d.options},null,8,["text","type","options"])]),_:2},1024)]),_:2},1024)),64))]),_:1})]),_:1})])}}});export{Mu as default}; diff --git a/dist/static/js/base-d29aa544.js b/dist/static/js/base-d29aa544.js new file mode 100644 index 000000000..9bae4fef6 --- /dev/null +++ b/dist/static/js/base-d29aa544.js @@ -0,0 +1 @@ +import{_ as o}from"./base.vue_vue_type_script_setup_true_lang-fc0b0c63.js";import"./data-7bb4b374.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/base-f3d75240.js b/dist/static/js/base-f3d75240.js deleted file mode 100644 index 593d5e96d..000000000 --- a/dist/static/js/base-f3d75240.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./base.vue_vue_type_script_setup_true_lang-ae528376.js";import"./data-5ec60fc2.js";import"./index-c61a73ff.js";export{o as default}; diff --git a/dist/static/js/base.vue_vue_type_script_setup_true_lang-ae528376.js b/dist/static/js/base.vue_vue_type_script_setup_true_lang-ae528376.js deleted file mode 100644 index 9c1040fb7..000000000 --- a/dist/static/js/base.vue_vue_type_script_setup_true_lang-ae528376.js +++ /dev/null @@ -1 +0,0 @@ -import{t as o}from"./data-5ec60fc2.js";const l=Vue.defineComponent({__name:"base",setup(t){const e=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(n,p)=>{const a=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(a,{data:Vue.unref(o),columns:e},null,8,["data"])}}});export{l as _}; diff --git a/dist/static/js/base.vue_vue_type_script_setup_true_lang-fc0b0c63.js b/dist/static/js/base.vue_vue_type_script_setup_true_lang-fc0b0c63.js new file mode 100644 index 000000000..0eec94cbe --- /dev/null +++ b/dist/static/js/base.vue_vue_type_script_setup_true_lang-fc0b0c63.js @@ -0,0 +1 @@ +import{t as o}from"./data-7bb4b374.js";import{d as t,c as n,f as r,e as p,u as s}from"./index-0dd8d5e4.js";const b=t({__name:"base",setup(l){const e=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(c,_)=>{const a=n("pure-table");return r(),p(a,{data:s(o),columns:e},null,8,["data"])}}});export{b as _}; diff --git a/dist/static/js/basic-09712a8c.js b/dist/static/js/basic-09712a8c.js new file mode 100644 index 000000000..6125cc427 --- /dev/null +++ b/dist/static/js/basic-09712a8c.js @@ -0,0 +1 @@ +import{C as _,a as m,b as d,c as l,d as i,e as D}from"./index.esm-04a1a156.js";import{d as h,_ as b,c,j as F,f as p,k as r,m as B,g as e,w as t,h as u,p as w,q as E,i as x}from"./index-0dd8d5e4.js";const I=h({name:"ExampleSimple",components:{[_.name]:_,[m.name]:m,[d.name]:d,[l.name]:l,[i.name]:i},directives:{contextmenu:D}});const C=o=>(w("data-v-17318510"),o=o(),E(),o),S=C(()=>x("h1",null,"基本使用",-1)),A={class:"wrapper"},$=C(()=>x("code",null,"右键点击此区域",-1)),k=[$];function G(o,N,V,g,y,j){const n=c("v-contextmenu-item"),a=c("v-contextmenu-divider"),s=c("v-contextmenu-submenu"),v=c("v-contextmenu"),f=F("contextmenu");return p(),r("div",null,[S,B((p(),r("div",A,k)),[[f,void 0,"contextmenu"]]),e(v,{ref:"contextmenu"},{default:t(()=>[e(n,null,{default:t(()=>[u("GitHub")]),_:1}),e(n,null,{default:t(()=>[u("GitLab")]),_:1}),e(a),e(s,{title:"蔬菜菜"},{default:t(()=>[e(n,null,{default:t(()=>[u("土豆")]),_:1}),e(s,{title:"青菜"},{default:t(()=>[e(n,null,{default:t(()=>[u("小油菜")]),_:1}),e(n,null,{default:t(()=>[u("空心菜")]),_:1})]),_:1}),e(n,null,{default:t(()=>[u("黄瓜")]),_:1})]),_:1}),e(n,{disabled:""},{default:t(()=>[u("菠萝蜜")]),_:1}),e(a),e(n,null,{default:t(()=>[u("哈密瓜")]),_:1})]),_:1},512)])}const L=b(I,[["render",G],["__scopeId","data-v-17318510"]]);export{L as default}; diff --git a/dist/static/js/basic-568930cb.js b/dist/static/js/basic-568930cb.js deleted file mode 100644 index f56603224..000000000 --- a/dist/static/js/basic-568930cb.js +++ /dev/null @@ -1 +0,0 @@ -import{C as n,a as c,b as V,c as a,d,e as l}from"./index.esm-ba027bbc.js";import{_ as m}from"./index-c61a73ff.js";const s=Vue.defineComponent({name:"ExampleSimple",components:{[n.name]:n,[c.name]:c,[V.name]:V,[a.name]:a,[d.name]:d},directives:{contextmenu:l}});const _=t=>(Vue.pushScopeId("data-v-17318510"),t=t(),Vue.popScopeId(),t),x=_(()=>Vue.createElementVNode("h1",null,"基本使用",-1)),C={class:"wrapper"},p=_(()=>Vue.createElementVNode("code",null,"右键点击此区域",-1)),v=[p];function N(t,f,h,w,D,b){const e=Vue.resolveComponent("v-contextmenu-item"),u=Vue.resolveComponent("v-contextmenu-divider"),o=Vue.resolveComponent("v-contextmenu-submenu"),r=Vue.resolveComponent("v-contextmenu"),i=Vue.resolveDirective("contextmenu");return Vue.openBlock(),Vue.createElementBlock("div",null,[x,Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",C,v)),[[i,void 0,"contextmenu"]]),Vue.createVNode(r,{ref:"contextmenu"},{default:Vue.withCtx(()=>[Vue.createVNode(e,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("GitHub")]),_:1}),Vue.createVNode(e,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("GitLab")]),_:1}),Vue.createVNode(u),Vue.createVNode(o,{title:"蔬菜菜"},{default:Vue.withCtx(()=>[Vue.createVNode(e,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("土豆")]),_:1}),Vue.createVNode(o,{title:"青菜"},{default:Vue.withCtx(()=>[Vue.createVNode(e,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("小油菜")]),_:1}),Vue.createVNode(e,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("空心菜")]),_:1})]),_:1}),Vue.createVNode(e,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("黄瓜")]),_:1})]),_:1}),Vue.createVNode(e,{disabled:""},{default:Vue.withCtx(()=>[Vue.createTextVNode("菠萝蜜")]),_:1}),Vue.createVNode(u),Vue.createVNode(e,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("哈密瓜")]),_:1})]),_:1},512)])}const E=m(s,[["render",N],["__scopeId","data-v-17318510"]]);export{E as default}; diff --git a/dist/static/js/border-79d46992.js b/dist/static/js/border-e0f7cd9d.js similarity index 58% rename from dist/static/js/border-79d46992.js rename to dist/static/js/border-e0f7cd9d.js index fcace0066..ccf2745e2 100644 --- a/dist/static/js/border-79d46992.js +++ b/dist/static/js/border-e0f7cd9d.js @@ -1 +1 @@ -import{_ as o}from"./border.vue_vue_type_script_setup_true_lang-0ee9f7f0.js";import"./data-5ec60fc2.js";import"./index-c61a73ff.js";export{o as default}; +import{_ as o}from"./border.vue_vue_type_script_setup_true_lang-61cc9adb.js";import"./data-7bb4b374.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/border.vue_vue_type_script_setup_true_lang-0ee9f7f0.js b/dist/static/js/border.vue_vue_type_script_setup_true_lang-0ee9f7f0.js deleted file mode 100644 index 277953bcd..000000000 --- a/dist/static/js/border.vue_vue_type_script_setup_true_lang-0ee9f7f0.js +++ /dev/null @@ -1 +0,0 @@ -import{t as a}from"./data-5ec60fc2.js";const l=Vue.defineComponent({__name:"border",setup(r){const e=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(t,n)=>{const o=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(o,{data:Vue.unref(a),columns:e,border:""},null,8,["data"])}}});export{l as _}; diff --git a/dist/static/js/border.vue_vue_type_script_setup_true_lang-61cc9adb.js b/dist/static/js/border.vue_vue_type_script_setup_true_lang-61cc9adb.js new file mode 100644 index 000000000..15d3f8471 --- /dev/null +++ b/dist/static/js/border.vue_vue_type_script_setup_true_lang-61cc9adb.js @@ -0,0 +1 @@ +import{t as o}from"./data-7bb4b374.js";import{d as r,c as t,f as n,e as p,u as s}from"./index-0dd8d5e4.js";const u=r({__name:"border",setup(l){const e=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(c,_)=>{const a=t("pure-table");return n(),p(a,{data:s(o),columns:e,border:""},null,8,["data"])}}});export{u as _}; diff --git a/dist/static/js/cascader-7d8981a0.js b/dist/static/js/cascader-7d8981a0.js deleted file mode 100644 index 9fa78f1c5..000000000 --- a/dist/static/js/cascader-7d8981a0.js +++ /dev/null @@ -1 +0,0 @@ -import{g as C,K as _,_ as D}from"./index-c61a73ff.js";const b={86:{11e4:"北京市",12e4:"天津市",13e4:"河北省",14e4:"山西省",15e4:"内蒙古自治区",21e4:"辽宁省",22e4:"吉林省",23e4:"黑龙江省",31e4:"上海市",32e4:"江苏省",33e4:"浙江省",34e4:"安徽省",35e4:"福建省",36e4:"江西省",37e4:"山东省",41e4:"河南省",42e4:"湖北省",43e4:"湖南省",44e4:"广东省",45e4:"广西壮族自治区",46e4:"海南省",5e5:"重庆市",51e4:"四川省",52e4:"贵州省",53e4:"云南省",54e4:"西藏自治区",61e4:"陕西省",62e4:"甘肃省",63e4:"青海省",64e4:"宁夏回族自治区",65e4:"新疆维吾尔自治区",71e4:"台湾省",81e4:"香港特别行政区",82e4:"澳门特别行政区"},11e4:{110100:"市辖区"},110100:{110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110118:"密云区",110119:"延庆区"},12e4:{120100:"市辖区"},120100:{120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120117:"宁河区",120118:"静海区",120119:"蓟州区"},13e4:{130100:"石家庄市",130200:"唐山市",130300:"秦皇岛市",130400:"邯郸市",130500:"邢台市",130600:"保定市",130700:"张家口市",130800:"承德市",130900:"沧州市",131e3:"廊坊市",131100:"衡水市"},130100:{130101:"市辖区",130102:"长安区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130109:"藁城区",130110:"鹿泉区",130111:"栾城区",130121:"井陉县",130123:"正定县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130171:"石家庄高新技术产业开发区",130172:"石家庄循环化工园区",130181:"辛集市",130183:"晋州市",130184:"新乐市"},130200:{130201:"市辖区",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130209:"曹妃甸区",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130271:"河北唐山芦台经济开发区",130272:"唐山市汉沽管理区",130273:"唐山高新技术产业开发区",130274:"河北唐山海港经济开发区",130281:"遵化市",130283:"迁安市",130284:"滦州市"},130300:{130301:"市辖区",130302:"海港区",130303:"山海关区",130304:"北戴河区",130306:"抚宁区",130321:"青龙满族自治县",130322:"昌黎县",130324:"卢龙县",130371:"秦皇岛市经济技术开发区",130372:"北戴河新区"},130400:{130401:"市辖区",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130407:"肥乡区",130408:"永年区",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130471:"邯郸经济技术开发区",130473:"邯郸冀南新区",130481:"武安市"},130500:{130501:"市辖区",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130571:"河北邢台经济开发区",130581:"南宫市",130582:"沙河市"},130600:{130601:"市辖区",130602:"竞秀区",130606:"莲池区",130607:"满城区",130608:"清苑区",130609:"徐水区",130623:"涞水县",130624:"阜平县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130671:"保定高新技术产业开发区",130672:"保定白沟新城",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市"},130700:{130701:"市辖区",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130708:"万全区",130709:"崇礼区",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130771:"张家口经济开发区",130772:"张家口市察北管理区",130773:"张家口市塞北管理区"},130800:{130801:"市辖区",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130871:"承德高新技术产业开发区",130881:"平泉市"},130900:{130901:"市辖区",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130971:"河北沧州经济开发区",130972:"沧州高新技术产业开发区",130973:"沧州渤海新区",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市"},131e3:{131001:"市辖区",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131071:"廊坊经济技术开发区",131081:"霸州市",131082:"三河市"},131100:{131101:"市辖区",131102:"桃城区",131103:"冀州区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131171:"河北衡水高新技术产业开发区",131172:"衡水滨湖新区",131182:"深州市"},14e4:{140100:"太原市",140200:"大同市",140300:"阳泉市",140400:"长治市",140500:"晋城市",140600:"朔州市",140700:"晋中市",140800:"运城市",140900:"忻州市",141e3:"临汾市",141100:"吕梁市"},140100:{140101:"市辖区",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140171:"山西转型综合改革示范区",140181:"古交市"},140200:{140201:"市辖区",140212:"新荣区",140213:"平城区",140214:"云冈区",140215:"云州区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140271:"山西大同经济开发区"},140300:{140301:"市辖区",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县"},140400:{140401:"市辖区",140403:"潞州区",140404:"上党区",140405:"屯留区",140406:"潞城区",140423:"襄垣县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140471:"山西长治高新技术产业园区"},140500:{140501:"市辖区",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市"},140600:{140601:"市辖区",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140671:"山西朔州经济开发区",140681:"怀仁市"},140700:{140701:"市辖区",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市"},140800:{140801:"市辖区",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市"},140900:{140901:"市辖区",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140971:"五台山风景名胜区",140981:"原平市"},141e3:{141001:"市辖区",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市"},141100:{141101:"市辖区",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市"},15e4:{150100:"呼和浩特市",150200:"包头市",150300:"乌海市",150400:"赤峰市",150500:"通辽市",150600:"鄂尔多斯市",150700:"呼伦贝尔市",150800:"巴彦淖尔市",150900:"乌兰察布市",152200:"兴安盟",152500:"锡林郭勒盟",152900:"阿拉善盟"},150100:{150101:"市辖区",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150171:"呼和浩特金海工业园区",150172:"呼和浩特经济技术开发区"},150200:{150201:"市辖区",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150271:"包头稀土高新技术产业开发区"},150300:{150301:"市辖区",150302:"海勃湾区",150303:"海南区",150304:"乌达区"},150400:{150401:"市辖区",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗"},150500:{150501:"市辖区",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150571:"通辽经济技术开发区",150581:"霍林郭勒市"},150600:{150601:"市辖区",150602:"东胜区",150603:"康巴什区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗"},150700:{150701:"市辖区",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市"},150800:{150801:"市辖区",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗"},150900:{150901:"市辖区",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市"},152200:{152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县"},152500:{152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152571:"乌拉盖管委会"},152900:{152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152971:"内蒙古阿拉善经济开发区"},21e4:{210100:"沈阳市",210200:"大连市",210300:"鞍山市",210400:"抚顺市",210500:"本溪市",210600:"丹东市",210700:"锦州市",210800:"营口市",210900:"阜新市",211e3:"辽阳市",211100:"盘锦市",211200:"铁岭市",211300:"朝阳市",211400:"葫芦岛市"},210100:{210101:"市辖区",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"浑南区",210113:"沈北新区",210114:"于洪区",210115:"辽中区",210123:"康平县",210124:"法库县",210181:"新民市"},210200:{210201:"市辖区",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210214:"普兰店区",210224:"长海县",210281:"瓦房店市",210283:"庄河市"},210300:{210301:"市辖区",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市"},210400:{210401:"市辖区",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县"},210500:{210501:"市辖区",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县"},210600:{210601:"市辖区",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市"},210700:{210701:"市辖区",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市"},210800:{210801:"市辖区",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市"},210900:{210901:"市辖区",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县"},211e3:{211001:"市辖区",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市"},211100:{211101:"市辖区",211102:"双台子区",211103:"兴隆台区",211104:"大洼区",211122:"盘山县"},211200:{211201:"市辖区",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市"},211300:{211301:"市辖区",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市"},211400:{211401:"市辖区",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市"},22e4:{220100:"长春市",220200:"吉林市",220300:"四平市",220400:"辽源市",220500:"通化市",220600:"白山市",220700:"松原市",220800:"白城市",222400:"延边朝鲜族自治州"},220100:{220101:"市辖区",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220113:"九台区",220122:"农安县",220171:"长春经济技术开发区",220172:"长春净月高新技术产业开发区",220173:"长春高新技术产业开发区",220174:"长春汽车经济技术开发区",220182:"榆树市",220183:"德惠市"},220200:{220201:"市辖区",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220271:"吉林经济开发区",220272:"吉林高新技术产业开发区",220273:"吉林中国新加坡食品区",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市"},220300:{220301:"市辖区",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市"},220400:{220401:"市辖区",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县"},220500:{220501:"市辖区",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市"},220600:{220601:"市辖区",220602:"浑江区",220605:"江源区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220681:"临江市"},220700:{220701:"市辖区",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220771:"吉林松原经济开发区",220781:"扶余市"},220800:{220801:"市辖区",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220871:"吉林白城经济开发区",220881:"洮南市",220882:"大安市"},222400:{222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县"},23e4:{230100:"哈尔滨市",230200:"齐齐哈尔市",230300:"鸡西市",230400:"鹤岗市",230500:"双鸭山市",230600:"大庆市",230700:"伊春市",230800:"佳木斯市",230900:"七台河市",231e3:"牡丹江市",231100:"黑河市",231200:"绥化市",232700:"大兴安岭地区"},230100:{230101:"市辖区",230102:"道里区",230103:"南岗区",230104:"道外区",230108:"平房区",230109:"松北区",230110:"香坊区",230111:"呼兰区",230112:"阿城区",230113:"双城区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230183:"尚志市",230184:"五常市"},230200:{230201:"市辖区",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市"},230300:{230301:"市辖区",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市"},230400:{230401:"市辖区",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县"},230500:{230501:"市辖区",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县"},230600:{230601:"市辖区",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230671:"大庆高新技术产业开发区"},230700:{230701:"市辖区",230717:"伊美区",230718:"乌翠区",230719:"友好区",230722:"嘉荫县",230723:"汤旺县",230724:"丰林县",230725:"大箐山县",230726:"南岔县",230751:"金林区",230781:"铁力市"},230800:{230801:"市辖区",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230881:"同江市",230882:"富锦市",230883:"抚远市"},230900:{230901:"市辖区",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县"},231e3:{231001:"市辖区",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231025:"林口县",231071:"牡丹江经济技术开发区",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"东宁市"},231100:{231101:"市辖区",231102:"爱辉区",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"嫩江市"},231200:{231201:"市辖区",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市"},232700:{232701:"漠河市",232721:"呼玛县",232722:"塔河县",232761:"加格达奇区",232762:"松岭区",232763:"新林区",232764:"呼中区"},31e4:{310100:"市辖区"},310100:{310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310151:"崇明区"},32e4:{320100:"南京市",320200:"无锡市",320300:"徐州市",320400:"常州市",320500:"苏州市",320600:"南通市",320700:"连云港市",320800:"淮安市",320900:"盐城市",321e3:"扬州市",321100:"镇江市",321200:"泰州市",321300:"宿迁市"},320100:{320101:"市辖区",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320117:"溧水区",320118:"高淳区"},320200:{320201:"市辖区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320213:"梁溪区",320214:"新吴区",320281:"江阴市",320282:"宜兴市"},320300:{320301:"市辖区",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320312:"铜山区",320321:"丰县",320322:"沛县",320324:"睢宁县",320371:"徐州经济技术开发区",320381:"新沂市",320382:"邳州市"},320400:{320401:"市辖区",320402:"天宁区",320404:"钟楼区",320411:"新北区",320412:"武进区",320413:"金坛区",320481:"溧阳市"},320500:{320501:"市辖区",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320509:"吴江区",320571:"苏州工业园区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320585:"太仓市"},320600:{320601:"市辖区",320602:"崇川区",320611:"港闸区",320612:"通州区",320623:"如东县",320671:"南通经济技术开发区",320681:"启东市",320682:"如皋市",320684:"海门市",320685:"海安市"},320700:{320701:"市辖区",320703:"连云区",320706:"海州区",320707:"赣榆区",320722:"东海县",320723:"灌云县",320724:"灌南县",320771:"连云港经济技术开发区",320772:"连云港高新技术产业开发区"},320800:{320801:"市辖区",320803:"淮安区",320804:"淮阴区",320812:"清江浦区",320813:"洪泽区",320826:"涟水县",320830:"盱眙县",320831:"金湖县",320871:"淮安经济技术开发区"},320900:{320901:"市辖区",320902:"亭湖区",320903:"盐都区",320904:"大丰区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320971:"盐城经济技术开发区",320981:"东台市"},321e3:{321001:"市辖区",321002:"广陵区",321003:"邗江区",321012:"江都区",321023:"宝应县",321071:"扬州经济技术开发区",321081:"仪征市",321084:"高邮市"},321100:{321101:"市辖区",321102:"京口区",321111:"润州区",321112:"丹徒区",321171:"镇江新区",321181:"丹阳市",321182:"扬中市",321183:"句容市"},321200:{321201:"市辖区",321202:"海陵区",321203:"高港区",321204:"姜堰区",321271:"泰州医药高新技术产业开发区",321281:"兴化市",321282:"靖江市",321283:"泰兴市"},321300:{321301:"市辖区",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321371:"宿迁经济技术开发区"},33e4:{330100:"杭州市",330200:"宁波市",330300:"温州市",330400:"嘉兴市",330500:"湖州市",330600:"绍兴市",330700:"金华市",330800:"衢州市",330900:"舟山市",331e3:"台州市",331100:"丽水市"},330100:{330101:"市辖区",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330111:"富阳区",330112:"临安区",330122:"桐庐县",330127:"淳安县",330182:"建德市"},330200:{330201:"市辖区",330203:"海曙区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330213:"奉化区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市"},330300:{330301:"市辖区",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330305:"洞头区",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330371:"温州经济技术开发区",330381:"瑞安市",330382:"乐清市",330383:"龙港市"},330400:{330401:"市辖区",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市"},330500:{330501:"市辖区",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县"},330600:{330601:"市辖区",330602:"越城区",330603:"柯桥区",330604:"上虞区",330624:"新昌县",330681:"诸暨市",330683:"嵊州市"},330700:{330701:"市辖区",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市"},330800:{330801:"市辖区",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市"},330900:{330901:"市辖区",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县"},331e3:{331001:"市辖区",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"玉环市"},331100:{331101:"市辖区",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市"},34e4:{340100:"合肥市",340200:"芜湖市",340300:"蚌埠市",340400:"淮南市",340500:"马鞍山市",340600:"淮北市",340700:"铜陵市",340800:"安庆市",341e3:"黄山市",341100:"滁州市",341200:"阜阳市",341300:"宿州市",341500:"六安市",341600:"亳州市",341700:"池州市",341800:"宣城市"},340100:{340101:"市辖区",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340124:"庐江县",340171:"合肥高新技术产业开发区",340172:"合肥经济技术开发区",340173:"合肥新站高新技术产业开发区",340181:"巢湖市"},340200:{340201:"市辖区",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340225:"无为县",340271:"芜湖经济技术开发区",340272:"安徽芜湖长江大桥经济开发区"},340300:{340301:"市辖区",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340371:"蚌埠市高新技术开发区",340372:"蚌埠市经济开发区"},340400:{340401:"市辖区",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"寿县"},340500:{340501:"市辖区",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"含山县",340523:"和县"},340600:{340601:"市辖区",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县"},340700:{340701:"市辖区",340705:"铜官区",340706:"义安区",340711:"郊区",340722:"枞阳县"},340800:{340801:"市辖区",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340871:"安徽安庆经济开发区",340881:"桐城市",340882:"潜山市"},341e3:{341001:"市辖区",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县"},341100:{341101:"市辖区",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341171:"苏滁现代产业园",341172:"滁州经济技术开发区",341181:"天长市",341182:"明光市"},341200:{341201:"市辖区",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341271:"阜阳合肥现代产业园区",341272:"阜阳经济技术开发区",341282:"界首市"},341300:{341301:"市辖区",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341371:"宿州马鞍山现代产业园区",341372:"宿州经济技术开发区"},341500:{341501:"市辖区",341502:"金安区",341503:"裕安区",341504:"叶集区",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县"},341600:{341601:"市辖区",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县"},341700:{341701:"市辖区",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县"},341800:{341801:"市辖区",341802:"宣州区",341821:"郎溪县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341871:"宣城市经济开发区",341881:"宁国市",341882:"广德市"},35e4:{350100:"福州市",350200:"厦门市",350300:"莆田市",350400:"三明市",350500:"泉州市",350600:"漳州市",350700:"南平市",350800:"龙岩市",350900:"宁德市"},350100:{350101:"市辖区",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350112:"长乐区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市"},350200:{350201:"市辖区",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区"},350300:{350301:"市辖区",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县"},350400:{350401:"市辖区",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市"},350500:{350501:"市辖区",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市"},350600:{350601:"市辖区",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市"},350700:{350701:"市辖区",350702:"延平区",350703:"建阳区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市"},350800:{350801:"市辖区",350802:"新罗区",350803:"永定区",350821:"长汀县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市"},350900:{350901:"市辖区",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市"},36e4:{360100:"南昌市",360200:"景德镇市",360300:"萍乡市",360400:"九江市",360500:"新余市",360600:"鹰潭市",360700:"赣州市",360800:"吉安市",360900:"宜春市",361e3:"抚州市",361100:"上饶市"},360100:{360101:"市辖区",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360112:"新建区",360121:"南昌县",360123:"安义县",360124:"进贤县"},360200:{360201:"市辖区",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市"},360300:{360301:"市辖区",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县"},360400:{360401:"市辖区",360402:"濂溪区",360403:"浔阳区",360404:"柴桑区",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"共青城市",360483:"庐山市"},360500:{360501:"市辖区",360502:"渝水区",360521:"分宜县"},360600:{360601:"市辖区",360602:"月湖区",360603:"余江区",360681:"贵溪市"},360700:{360701:"市辖区",360702:"章贡区",360703:"南康区",360704:"赣县区",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市"},360800:{360801:"市辖区",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市"},360900:{360901:"市辖区",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市"},361e3:{361001:"市辖区",361002:"临川区",361003:"东乡区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361030:"广昌县"},361100:{361101:"市辖区",361102:"信州区",361103:"广丰区",361104:"广信区",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市"},37e4:{370100:"济南市",370200:"青岛市",370300:"淄博市",370400:"枣庄市",370500:"东营市",370600:"烟台市",370700:"潍坊市",370800:"济宁市",370900:"泰安市",371e3:"威海市",371100:"日照市",371300:"临沂市",371400:"德州市",371500:"聊城市",371600:"滨州市",371700:"菏泽市"},370100:{370101:"市辖区",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370114:"章丘区",370115:"济阳区",370116:"莱芜区",370117:"钢城区",370124:"平阴县",370126:"商河县",370171:"济南高新技术产业开发区"},370200:{370201:"市辖区",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370215:"即墨区",370271:"青岛高新技术产业开发区",370281:"胶州市",370283:"平度市",370285:"莱西市"},370300:{370301:"市辖区",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县"},370400:{370401:"市辖区",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市"},370500:{370501:"市辖区",370502:"东营区",370503:"河口区",370505:"垦利区",370522:"利津县",370523:"广饶县",370571:"东营经济技术开发区",370572:"东营港经济开发区"},370600:{370601:"市辖区",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370671:"烟台高新技术产业开发区",370672:"烟台经济技术开发区",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市"},370700:{370701:"市辖区",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370772:"潍坊滨海经济技术开发区",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市"},370800:{370801:"市辖区",370811:"任城区",370812:"兖州区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370871:"济宁高新技术产业开发区",370881:"曲阜市",370883:"邹城市"},370900:{370901:"市辖区",370902:"泰山区",370911:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市"},371e3:{371001:"市辖区",371002:"环翠区",371003:"文登区",371071:"威海火炬高技术产业开发区",371072:"威海经济技术开发区",371073:"威海临港经济技术开发区",371082:"荣成市",371083:"乳山市"},371100:{371101:"市辖区",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371171:"日照经济技术开发区"},371300:{371301:"市辖区",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"兰陵县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371371:"临沂高新技术产业开发区",371372:"临沂经济技术开发区",371373:"临沂临港经济开发区"},371400:{371401:"市辖区",371402:"德城区",371403:"陵城区",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371471:"德州经济技术开发区",371472:"德州运河经济开发区",371481:"乐陵市",371482:"禹城市"},371500:{371501:"市辖区",371502:"东昌府区",371503:"茌平区",371521:"阳谷县",371522:"莘县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市"},371600:{371601:"市辖区",371602:"滨城区",371603:"沾化区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371625:"博兴县",371681:"邹平市"},371700:{371701:"市辖区",371702:"牡丹区",371703:"定陶区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371728:"东明县",371771:"菏泽经济技术开发区",371772:"菏泽高新技术开发区"},41e4:{410100:"郑州市",410200:"开封市",410300:"洛阳市",410400:"平顶山市",410500:"安阳市",410600:"鹤壁市",410700:"新乡市",410800:"焦作市",410900:"濮阳市",411e3:"许昌市",411100:"漯河市",411200:"三门峡市",411300:"南阳市",411400:"商丘市",411500:"信阳市",411600:"周口市",411700:"驻马店市",419e3:"省直辖县级行政区划"},410100:{410101:"市辖区",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410171:"郑州经济技术开发区",410172:"郑州高新技术产业开发区",410173:"郑州航空港经济综合实验区",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市"},410200:{410201:"市辖区",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410212:"祥符区",410221:"杞县",410222:"通许县",410223:"尉氏县",410225:"兰考县"},410300:{410301:"市辖区",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410311:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410371:"洛阳高新技术产业开发区",410381:"偃师市"},410400:{410401:"市辖区",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410471:"平顶山高新技术产业开发区",410472:"平顶山市城乡一体化示范区",410481:"舞钢市",410482:"汝州市"},410500:{410501:"市辖区",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410571:"安阳高新技术产业开发区",410581:"林州市"},410600:{410601:"市辖区",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410671:"鹤壁经济技术开发区"},410700:{410701:"市辖区",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410771:"新乡高新技术产业开发区",410772:"新乡经济技术开发区",410773:"新乡市平原城乡一体化示范区",410781:"卫辉市",410782:"辉县市",410783:"长垣市"},410800:{410801:"市辖区",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410871:"焦作城乡一体化示范区",410882:"沁阳市",410883:"孟州市"},410900:{410901:"市辖区",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410971:"河南濮阳工业园区",410972:"濮阳经济技术开发区"},411e3:{411001:"市辖区",411002:"魏都区",411003:"建安区",411024:"鄢陵县",411025:"襄城县",411071:"许昌经济技术开发区",411081:"禹州市",411082:"长葛市"},411100:{411101:"市辖区",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411171:"漯河经济技术开发区"},411200:{411201:"市辖区",411202:"湖滨区",411203:"陕州区",411221:"渑池县",411224:"卢氏县",411271:"河南三门峡经济开发区",411281:"义马市",411282:"灵宝市"},411300:{411301:"市辖区",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411371:"南阳高新技术产业开发区",411372:"南阳市城乡一体化示范区",411381:"邓州市"},411400:{411401:"市辖区",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411471:"豫东综合物流产业聚集区",411472:"河南商丘经济开发区",411481:"永城市"},411500:{411501:"市辖区",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411571:"信阳高新技术产业开发区"},411600:{411601:"市辖区",411602:"川汇区",411603:"淮阳区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411627:"太康县",411628:"鹿邑县",411671:"河南周口经济开发区",411681:"项城市"},411700:{411701:"市辖区",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411771:"河南驻马店经济开发区"},419e3:{419001:"济源市"},42e4:{420100:"武汉市",420200:"黄石市",420300:"十堰市",420500:"宜昌市",420600:"襄阳市",420700:"鄂州市",420800:"荆门市",420900:"孝感市",421e3:"荆州市",421100:"黄冈市",421200:"咸宁市",421300:"随州市",422800:"恩施土家族苗族自治州",429e3:"省直辖县级行政区划"},420100:{420101:"市辖区",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区"},420200:{420201:"市辖区",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市"},420300:{420301:"市辖区",420302:"茅箭区",420303:"张湾区",420304:"郧阳区",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市"},420500:{420501:"市辖区",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市"},420600:{420601:"市辖区",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市"},420700:{420701:"市辖区",420702:"梁子湖区",420703:"华容区",420704:"鄂城区"},420800:{420801:"市辖区",420802:"东宝区",420804:"掇刀区",420822:"沙洋县",420881:"钟祥市",420882:"京山市"},420900:{420901:"市辖区",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市"},421e3:{421001:"市辖区",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421071:"荆州经济技术开发区",421081:"石首市",421083:"洪湖市",421087:"松滋市"},421100:{421101:"市辖区",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421171:"龙感湖管理区",421181:"麻城市",421182:"武穴市"},421200:{421201:"市辖区",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市"},421300:{421301:"市辖区",421303:"曾都区",421321:"随县",421381:"广水市"},422800:{422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县"},429e3:{429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区"},43e4:{430100:"长沙市",430200:"株洲市",430300:"湘潭市",430400:"衡阳市",430500:"邵阳市",430600:"岳阳市",430700:"常德市",430800:"张家界市",430900:"益阳市",431e3:"郴州市",431100:"永州市",431200:"怀化市",431300:"娄底市",433100:"湘西土家族苗族自治州"},430100:{430101:"市辖区",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430112:"望城区",430121:"长沙县",430181:"浏阳市",430182:"宁乡市"},430200:{430201:"市辖区",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430212:"渌口区",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430271:"云龙示范区",430281:"醴陵市"},430300:{430301:"市辖区",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430371:"湖南湘潭高新技术产业园区",430372:"湘潭昭山示范区",430373:"湘潭九华示范区",430381:"湘乡市",430382:"韶山市"},430400:{430401:"市辖区",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430471:"衡阳综合保税区",430472:"湖南衡阳高新技术产业园区",430473:"湖南衡阳松木经济开发区",430481:"耒阳市",430482:"常宁市"},430500:{430501:"市辖区",430502:"双清区",430503:"大祥区",430511:"北塔区",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"邵东市"},430600:{430601:"市辖区",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430671:"岳阳市屈原管理区",430681:"汨罗市",430682:"临湘市"},430700:{430701:"市辖区",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430771:"常德市西洞庭管理区",430781:"津市市"},430800:{430801:"市辖区",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县"},430900:{430901:"市辖区",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430971:"益阳市大通湖管理区",430972:"湖南益阳高新技术产业园区",430981:"沅江市"},431e3:{431001:"市辖区",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市"},431100:{431101:"市辖区",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431171:"永州经济技术开发区",431172:"永州市金洞管理区",431173:"永州市回龙圩管理区"},431200:{431201:"市辖区",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431271:"怀化市洪江管理区",431281:"洪江市"},431300:{431301:"市辖区",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市"},433100:{433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433173:"湖南永顺经济开发区"},44e4:{440100:"广州市",440200:"韶关市",440300:"深圳市",440400:"珠海市",440500:"汕头市",440600:"佛山市",440700:"江门市",440800:"湛江市",440900:"茂名市",441200:"肇庆市",441300:"惠州市",441400:"梅州市",441500:"汕尾市",441600:"河源市",441700:"阳江市",441800:"清远市",441900:"东莞市",442e3:"中山市",445100:"潮州市",445200:"揭阳市",445300:"云浮市"},440100:{440101:"市辖区",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440117:"从化区",440118:"增城区"},440200:{440201:"市辖区",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市"},440300:{440301:"市辖区",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"龙华区",440310:"坪山区",440311:"光明区"},440400:{440401:"市辖区",440402:"香洲区",440403:"斗门区",440404:"金湾区"},440500:{440501:"市辖区",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县"},440600:{440601:"市辖区",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区"},440700:{440701:"市辖区",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市"},440800:{440801:"市辖区",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市"},440900:{440901:"市辖区",440902:"茂南区",440904:"电白区",440981:"高州市",440982:"化州市",440983:"信宜市"},441200:{441201:"市辖区",441202:"端州区",441203:"鼎湖区",441204:"高要区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441284:"四会市"},441300:{441301:"市辖区",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县"},441400:{441401:"市辖区",441402:"梅江区",441403:"梅县区",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市"},441500:{441501:"市辖区",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市"},441600:{441601:"市辖区",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县"},441700:{441701:"市辖区",441702:"江城区",441704:"阳东区",441721:"阳西县",441781:"阳春市"},441800:{441801:"市辖区",441802:"清城区",441803:"清新区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441881:"英德市",441882:"连州市"},441900:{441900003:"东城街道",441900004:"南城街道",441900005:"万江街道",441900006:"莞城街道",441900101:"石碣镇",441900102:"石龙镇",441900103:"茶山镇",441900104:"石排镇",441900105:"企石镇",441900106:"横沥镇",441900107:"桥头镇",441900108:"谢岗镇",441900109:"东坑镇",441900110:"常平镇",441900111:"寮步镇",441900112:"樟木头镇",441900113:"大朗镇",441900114:"黄江镇",441900115:"清溪镇",441900116:"塘厦镇",441900117:"凤岗镇",441900118:"大岭山镇",441900119:"长安镇",441900121:"虎门镇",441900122:"厚街镇",441900123:"沙田镇",441900124:"道滘镇",441900125:"洪梅镇",441900126:"麻涌镇",441900127:"望牛墩镇",441900128:"中堂镇",441900129:"高埗镇",441900401:"松山湖",441900402:"东莞港",441900403:"东莞生态园"},442e3:{442000001:"石岐街道",442000002:"东区街道",442000003:"中山港街道",442000004:"西区街道",442000005:"南区街道",442000006:"五桂山街道",442000100:"小榄镇",442000101:"黄圃镇",442000102:"民众镇",442000103:"东凤镇",442000104:"东升镇",442000105:"古镇镇",442000106:"沙溪镇",442000107:"坦洲镇",442000108:"港口镇",442000109:"三角镇",442000110:"横栏镇",442000111:"南头镇",442000112:"阜沙镇",442000113:"南朗镇",442000114:"三乡镇",442000115:"板芙镇",442000116:"大涌镇",442000117:"神湾镇"},445100:{445101:"市辖区",445102:"湘桥区",445103:"潮安区",445122:"饶平县"},445200:{445201:"市辖区",445202:"榕城区",445203:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市"},445300:{445301:"市辖区",445302:"云城区",445303:"云安区",445321:"新兴县",445322:"郁南县",445381:"罗定市"},45e4:{450100:"南宁市",450200:"柳州市",450300:"桂林市",450400:"梧州市",450500:"北海市",450600:"防城港市",450700:"钦州市",450800:"贵港市",450900:"玉林市",451e3:"百色市",451100:"贺州市",451200:"河池市",451300:"来宾市",451400:"崇左市"},450100:{450101:"市辖区",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450110:"武鸣区",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县"},450200:{450201:"市辖区",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450206:"柳江区",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县"},450300:{450301:"市辖区",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450312:"临桂区",450321:"阳朔县",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450332:"恭城瑶族自治县",450381:"荔浦市"},450400:{450401:"市辖区",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市"},450500:{450501:"市辖区",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县"},450600:{450601:"市辖区",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市"},450700:{450701:"市辖区",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县"},450800:{450801:"市辖区",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市"},450900:{450901:"市辖区",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市"},451e3:{451001:"市辖区",451002:"右江区",451003:"田阳区",451022:"田东县",451023:"平果县",451024:"德保县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451081:"靖西市"},451100:{451101:"市辖区",451102:"八步区",451103:"平桂区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县"},451200:{451201:"市辖区",451202:"金城江区",451203:"宜州区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县"},451300:{451301:"市辖区",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市"},451400:{451401:"市辖区",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市"},46e4:{460100:"海口市",460200:"三亚市",460300:"三沙市",460400:"儋州市",469e3:"省直辖县级行政区划"},460100:{460101:"市辖区",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区"},460200:{460201:"市辖区",460202:"海棠区",460203:"吉阳区",460204:"天涯区",460205:"崖州区"},460300:{460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域"},460400:{460400100:"那大镇",460400101:"和庆镇",460400102:"南丰镇",460400103:"大成镇",460400104:"雅星镇",460400105:"兰洋镇",460400106:"光村镇",460400107:"木棠镇",460400108:"海头镇",460400109:"峨蔓镇",460400111:"王五镇",460400112:"白马井镇",460400113:"中和镇",460400114:"排浦镇",460400115:"东成镇",460400116:"新州镇",460400499:"洋浦经济开发区",460400500:"华南热作学院"},469e3:{469001:"五指山市",469002:"琼海市",469005:"文昌市",469006:"万宁市",469007:"东方市",469021:"定安县",469022:"屯昌县",469023:"澄迈县",469024:"临高县",469025:"白沙黎族自治县",469026:"昌江黎族自治县",469027:"乐东黎族自治县",469028:"陵水黎族自治县",469029:"保亭黎族苗族自治县",469030:"琼中黎族苗族自治县"},5e5:{500100:"市辖区",500200:"县"},500100:{500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"綦江区",500111:"大足区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500116:"江津区",500117:"合川区",500118:"永川区",500119:"南川区",500120:"璧山区",500151:"铜梁区",500152:"潼南区",500153:"荣昌区",500154:"开州区",500155:"梁平区",500156:"武隆区"},500200:{500229:"城口县",500230:"丰都县",500231:"垫江县",500233:"忠县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县"},51e4:{510100:"成都市",510300:"自贡市",510400:"攀枝花市",510500:"泸州市",510600:"德阳市",510700:"绵阳市",510800:"广元市",510900:"遂宁市",511e3:"内江市",511100:"乐山市",511300:"南充市",511400:"眉山市",511500:"宜宾市",511600:"广安市",511700:"达州市",511800:"雅安市",511900:"巴中市",512e3:"资阳市",513200:"阿坝藏族羌族自治州",513300:"甘孜藏族自治州",513400:"凉山彝族自治州"},510100:{510101:"市辖区",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510116:"双流区",510117:"郫都区",510121:"金堂县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"简阳市"},510300:{510301:"市辖区",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县"},510400:{510401:"市辖区",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县"},510500:{510501:"市辖区",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县"},510600:{510601:"市辖区",510603:"旌阳区",510604:"罗江区",510623:"中江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市"},510700:{510701:"市辖区",510703:"涪城区",510704:"游仙区",510705:"安州区",510722:"三台县",510723:"盐亭县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市"},510800:{510801:"市辖区",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县"},510900:{510901:"市辖区",510903:"船山区",510904:"安居区",510921:"蓬溪县",510923:"大英县",510981:"射洪市"},511e3:{511001:"市辖区",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511071:"内江经济开发区",511083:"隆昌市"},511100:{511101:"市辖区",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市"},511300:{511301:"市辖区",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市"},511400:{511401:"市辖区",511402:"东坡区",511403:"彭山区",511421:"仁寿县",511423:"洪雅县",511424:"丹棱县",511425:"青神县"},511500:{511501:"市辖区",511502:"翠屏区",511503:"南溪区",511504:"叙州区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县"},511600:{511601:"市辖区",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市"},511700:{511701:"市辖区",511702:"通川区",511703:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511771:"达州经济开发区",511781:"万源市"},511800:{511801:"市辖区",511802:"雨城区",511803:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县"},511900:{511901:"市辖区",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511971:"巴中经济开发区"},512e3:{512001:"市辖区",512002:"雁江区",512021:"安岳县",512022:"乐至县"},513200:{513201:"马尔康市",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县"},513300:{513301:"康定市",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县"},513400:{513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县"},52e4:{520100:"贵阳市",520200:"六盘水市",520300:"遵义市",520400:"安顺市",520500:"毕节市",520600:"铜仁市",522300:"黔西南布依族苗族自治州",522600:"黔东南苗族侗族自治州",522700:"黔南布依族苗族自治州"},520100:{520101:"市辖区",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520115:"观山湖区",520121:"开阳县",520122:"息烽县",520123:"修文县",520181:"清镇市"},520200:{520201:"钟山区",520203:"六枝特区",520221:"水城县",520281:"盘州市"},520300:{520301:"市辖区",520302:"红花岗区",520303:"汇川区",520304:"播州区",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市"},520400:{520401:"市辖区",520402:"西秀区",520403:"平坝区",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县"},520500:{520501:"市辖区",520502:"七星关区",520521:"大方县",520522:"黔西县",520523:"金沙县",520524:"织金县",520525:"纳雍县",520526:"威宁彝族回族苗族自治县",520527:"赫章县"},520600:{520601:"市辖区",520602:"碧江区",520603:"万山区",520621:"江口县",520622:"玉屏侗族自治县",520623:"石阡县",520624:"思南县",520625:"印江土家族苗族自治县",520626:"德江县",520627:"沿河土家族自治县",520628:"松桃苗族自治县"},522300:{522301:"兴义市",522302:"兴仁市",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县"},522600:{522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县"},522700:{522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县"},53e4:{530100:"昆明市",530300:"曲靖市",530400:"玉溪市",530500:"保山市",530600:"昭通市",530700:"丽江市",530800:"普洱市",530900:"临沧市",532300:"楚雄彝族自治州",532500:"红河哈尼族彝族自治州",532600:"文山壮族苗族自治州",532800:"西双版纳傣族自治州",532900:"大理白族自治州",533100:"德宏傣族景颇族自治州",533300:"怒江傈僳族自治州",533400:"迪庆藏族自治州"},530100:{530101:"市辖区",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530114:"呈贡区",530115:"晋宁区",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市"},530300:{530301:"市辖区",530302:"麒麟区",530303:"沾益区",530304:"马龙区",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530381:"宣威市"},530400:{530401:"市辖区",530402:"红塔区",530403:"江川区",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县"},530500:{530501:"市辖区",530502:"隆阳区",530521:"施甸县",530523:"龙陵县",530524:"昌宁县",530581:"腾冲市"},530600:{530601:"市辖区",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530681:"水富市"},530700:{530701:"市辖区",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县"},530800:{530801:"市辖区",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县"},530900:{530901:"市辖区",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县"},532300:{532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县"},532500:{532501:"个旧市",532502:"开远市",532503:"蒙自市",532504:"弥勒市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县"},532600:{532601:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县"},532800:{532801:"景洪市",532822:"勐海县",532823:"勐腊县"},532900:{532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县"},533100:{533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县"},533300:{533301:"泸水市",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县"},533400:{533401:"香格里拉市",533422:"德钦县",533423:"维西傈僳族自治县"},54e4:{540100:"拉萨市",540200:"日喀则市",540300:"昌都市",540400:"林芝市",540500:"山南市",540600:"那曲市",542500:"阿里地区"},540100:{540101:"市辖区",540102:"城关区",540103:"堆龙德庆区",540104:"达孜区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540127:"墨竹工卡县",540171:"格尔木藏青工业园区",540172:"拉萨经济技术开发区",540173:"西藏文化旅游创意园区",540174:"达孜工业园区"},540200:{540202:"桑珠孜区",540221:"南木林县",540222:"江孜县",540223:"定日县",540224:"萨迦县",540225:"拉孜县",540226:"昂仁县",540227:"谢通门县",540228:"白朗县",540229:"仁布县",540230:"康马县",540231:"定结县",540232:"仲巴县",540233:"亚东县",540234:"吉隆县",540235:"聂拉木县",540236:"萨嘎县",540237:"岗巴县"},540300:{540302:"卡若区",540321:"江达县",540322:"贡觉县",540323:"类乌齐县",540324:"丁青县",540325:"察雅县",540326:"八宿县",540327:"左贡县",540328:"芒康县",540329:"洛隆县",540330:"边坝县"},540400:{540402:"巴宜区",540421:"工布江达县",540422:"米林县",540423:"墨脱县",540424:"波密县",540425:"察隅县",540426:"朗县"},540500:{540501:"市辖区",540502:"乃东区",540521:"扎囊县",540522:"贡嘎县",540523:"桑日县",540524:"琼结县",540525:"曲松县",540526:"措美县",540527:"洛扎县",540528:"加查县",540529:"隆子县",540530:"错那县",540531:"浪卡子县"},540600:{540602:"色尼区",540621:"嘉黎县",540622:"比如县",540623:"聂荣县",540624:"安多县",540625:"申扎县",540626:"索县",540627:"班戈县",540628:"巴青县",540629:"尼玛县",540630:"双湖县"},542500:{542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县"},61e4:{610100:"西安市",610200:"铜川市",610300:"宝鸡市",610400:"咸阳市",610500:"渭南市",610600:"延安市",610700:"汉中市",610800:"榆林市",610900:"安康市",611e3:"商洛市"},610100:{610101:"市辖区",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610117:"高陵区",610118:"鄠邑区",610122:"蓝田县",610124:"周至县"},610200:{610201:"市辖区",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县"},610300:{610301:"市辖区",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县"},610400:{610401:"市辖区",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"彬州市"},610500:{610501:"市辖区",610502:"临渭区",610503:"华州区",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市"},610600:{610601:"市辖区",610602:"宝塔区",610603:"安塞区",610621:"延长县",610622:"延川县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610681:"子长市"},610700:{610701:"市辖区",610702:"汉台区",610703:"南郑区",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县"},610800:{610801:"市辖区",610802:"榆阳区",610803:"横山区",610822:"府谷县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610881:"神木市"},610900:{610901:"市辖区",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县"},611e3:{611001:"市辖区",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县"},62e4:{620100:"兰州市",620200:"嘉峪关市",620300:"金昌市",620400:"白银市",620500:"天水市",620600:"武威市",620700:"张掖市",620800:"平凉市",620900:"酒泉市",621e3:"庆阳市",621100:"定西市",621200:"陇南市",622900:"临夏回族自治州",623e3:"甘南藏族自治州"},620100:{620101:"市辖区",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620171:"兰州新区"},620200:{620201:"市辖区"},620300:{620301:"市辖区",620302:"金川区",620321:"永昌县"},620400:{620401:"市辖区",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县"},620500:{620501:"市辖区",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县"},620600:{620601:"市辖区",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县"},620700:{620701:"市辖区",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县"},620800:{620801:"市辖区",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620825:"庄浪县",620826:"静宁县",620881:"华亭市"},620900:{620901:"市辖区",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市"},621e3:{621001:"市辖区",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县"},621100:{621101:"市辖区",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县"},621200:{621201:"市辖区",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县"},622900:{622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县"},623e3:{623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县"},63e4:{630100:"西宁市",630200:"海东市",632200:"海北藏族自治州",632300:"黄南藏族自治州",632500:"海南藏族自治州",632600:"果洛藏族自治州",632700:"玉树藏族自治州",632800:"海西蒙古族藏族自治州"},630100:{630101:"市辖区",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县"},630200:{630202:"乐都区",630203:"平安区",630222:"民和回族土族自治县",630223:"互助土族自治县",630224:"化隆回族自治县",630225:"循化撒拉族自治县"},632200:{632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县"},632300:{632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县"},632500:{632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县"},632600:{632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县"},632700:{632701:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县"},632800:{632801:"格尔木市",632802:"德令哈市",632803:"茫崖市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632857:"大柴旦行政委员会"},64e4:{640100:"银川市",640200:"石嘴山市",640300:"吴忠市",640400:"固原市",640500:"中卫市"},640100:{640101:"市辖区",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市"},640200:{640201:"市辖区",640202:"大武口区",640205:"惠农区",640221:"平罗县"},640300:{640301:"市辖区",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市"},640400:{640401:"市辖区",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县"},640500:{640501:"市辖区",640502:"沙坡头区",640521:"中宁县",640522:"海原县"},65e4:{650100:"乌鲁木齐市",650200:"克拉玛依市",650400:"吐鲁番市",650500:"哈密市",652300:"昌吉回族自治州",652700:"博尔塔拉蒙古自治州",652800:"巴音郭楞蒙古自治州",652900:"阿克苏地区",653e3:"克孜勒苏柯尔克孜自治州",653100:"喀什地区",653200:"和田地区",654e3:"伊犁哈萨克自治州",654200:"塔城地区",654300:"阿勒泰地区",659e3:"自治区直辖县级行政区划"},650100:{650101:"市辖区",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县"},650200:{650201:"市辖区",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区"},650400:{650402:"高昌区",650421:"鄯善县",650422:"托克逊县"},650500:{650502:"伊州区",650521:"巴里坤哈萨克自治县",650522:"伊吾县"},652300:{652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县"},652700:{652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县"},652800:{652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652871:"库尔勒经济技术开发区"},652900:{652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县"},653e3:{653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县"},653100:{653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县"},653200:{653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县"},654e3:{654002:"伊宁市",654003:"奎屯市",654004:"霍尔果斯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县"},654200:{654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县"},654300:{654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县"},659e3:{659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",659006:"铁门关市"},71e4:{710100:"台北市",710200:"高雄市",710300:"基隆市",710400:"台中市",710500:"台南市",710600:"新竹市",710700:"嘉义市"},710100:{710101:"内湖区",710102:"南港区",710103:"中正区",710104:"松山区",710105:"信义区",710106:"大安区",710107:"中山区",710108:"文山区",710109:"大同区",710110:"万华区",710111:"士林区",710112:"北投区"},710200:{710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区"},710300:{710301:"仁爱区",710302:"信义区",710303:"中正区",710304:"暖暖区",710305:"安乐区",710307:"七堵区"},710400:{710301:"中区",710302:"东区",710303:"南区",710304:"西区",710305:"北区",710306:"北屯区",710307:"西屯区",710308:"南屯区"},710500:{710501:"中西区",710502:"东区",710503:"南区",710504:"北区",710505:"安平区",710506:"安南区"},710600:{710601:"东区",710602:"北区",710603:"香山区"},710700:{710701:"东区",710702:"西区"},81e4:{810001:"中西區",810002:"灣仔區",810003:"東區",810004:"南區",810005:"油尖旺區",810006:"深水埗區",810007:"九龍城區",810008:"黃大仙區",810009:"觀塘區",810010:"荃灣區",810011:"屯門區",810012:"元朗區",810013:"北區",810014:"大埔區",810015:"西貢區",810016:"沙田區",810017:"葵青區",810018:"離島區"},82e4:{820001:"花地瑪堂區",820002:"花王堂區",820003:"望德堂區",820004:"大堂區",820005:"風順堂區",820006:"嘉模堂區",820007:"路氹填海區",820008:"聖方濟各堂區"}};var S=b;const h=C(S),l={},r={},E=h[86],i=[];let p=[];const V="全部";l[""]=V;Object.keys(E).forEach(o=>{const e=E[o];i.push({value:o,label:e}),l[o]=e,r[e]={code:o},r[e][V]={code:""}});i.forEach(o=>{const e=o.value,n=o.label,t=[],u=h[e]??{};Object.keys(u).forEach(a=>{t.push({value:a,label:u[a]}),l[a]=u[a],r[n][u[a]]={code:a},r[n][u[a]][V]={code:""}}),t.length&&(o.children=t)});p=_(i);i.forEach(o=>{const e=o.children,n=o.label;e&&e.forEach(t=>{const u=t.value,a=t.label,f=[],s=h[u]??{};Object.keys(s).forEach(c=>{f.push({value:c,label:s[c]}),l[c]=s[c],r[n][a][s[c]]={code:c}}),f.length&&(t.children=f)})});const g=_(p);g.unshift({value:"",label:V});g.forEach(o=>{const e=o.children;e!=null&&e.length&&(e.unshift({value:"",label:V}),e.forEach(n=>{const t=n.children;t!=null&&t.length&&t.unshift({value:"",label:V})}))});const N=_(i);N.unshift({value:"",label:V});N.forEach(o=>{const e=o.children;e!=null&&e.length&&(e.unshift({value:"",label:V}),e.forEach(n=>{const t=n.children;t!=null&&t.length&&t.unshift({value:"",label:V})}))});function m(o,e,n){let t="";if(o&&r[o]){const u=r[o];if(t=u.code,e&&u[e]){const a=u[e];t=`${t}${e===V?"":", "}${a.code}`,n&&a[n]&&(t=`${t}${n===V?"":", "}${a[n].code}`)}}return t}const w={class:"flex flex-col items-center justify-center"},T={class:"imp"},j={class:"leading-10"},O={class:"flex flex-col items-center justify-center mt-3"},$={class:"imp"},k={class:"leading-10"},A={class:"flex flex-col items-center justify-center mt-3"},U={class:"imp"},B={class:"leading-10"},K={class:"flex flex-col items-center justify-center mt-3"},L={class:"imp"},P={class:"leading-10"},q=Vue.defineComponent({name:"Cascader",__name:"cascader",setup(o){const e=Vue.ref(["110000","110100"]),n=Vue.ref(["120000","120100","120101"]),t=Vue.ref(["130000",""]),u=Vue.ref(["120000","120100",""]),a=f=>{};return(f,s)=>{const c=Vue.resolveComponent("el-cascader"),v=Vue.resolveComponent("el-col"),x=Vue.resolveComponent("el-row"),y=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(y,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createTextVNode(" 区域级联选择器 ")]),default:Vue.withCtx(()=>[Vue.createVNode(x,{gutter:20},{default:Vue.withCtx(()=>[Vue.createVNode(v,{xl:12,lg:12,md:24,sm:24,xs:24},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",w,[Vue.createElementVNode("span",T,[Vue.createTextVNode(" 1. 二级联动(不带“全部”选项) "),Vue.createVNode(c,{options:Vue.unref(p),modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=d=>e.value=d),onChange:a},null,8,["options","modelValue"])]),Vue.createElementVNode("div",j,[Vue.createElementVNode("div",null,"绑定值:"+Vue.toDisplayString(e.value),1),Vue.createElementVNode("div",null," 区域码转汉字: "+Vue.toDisplayString(Vue.unref(l)[e.value[0]])+", "+Vue.toDisplayString(Vue.unref(l)[e.value[1]]),1),Vue.createElementVNode("div",null," 汉字转区域码: "+Vue.toDisplayString(Vue.unref(m)(Vue.unref(l)[e.value[0]],Vue.unref(l)[e.value[1]])),1)])])]),_:1}),Vue.createVNode(v,{xl:12,lg:12,md:24,sm:24,xs:24},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",O,[Vue.createElementVNode("span",$,[Vue.createTextVNode(" 2. 二级联动(带有“全部”选项) "),Vue.createVNode(c,{options:Vue.unref(g),modelValue:t.value,"onUpdate:modelValue":s[1]||(s[1]=d=>t.value=d),onChange:a},null,8,["options","modelValue"])]),Vue.createElementVNode("div",k,[Vue.createElementVNode("div",null,"绑定值:"+Vue.toDisplayString(t.value),1),Vue.createElementVNode("div",null," 区域码转汉字: "+Vue.toDisplayString(Vue.unref(l)[t.value[0]])+", "+Vue.toDisplayString(Vue.unref(l)[t.value[1]]),1),Vue.createElementVNode("div",null," 汉字转区域码: "+Vue.toDisplayString(Vue.unref(m)(Vue.unref(l)[t.value[0]],Vue.unref(l)[t.value[1]])),1)])])]),_:1}),Vue.createVNode(v,{xl:12,lg:12,md:24,sm:24,xs:24},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",A,[Vue.createElementVNode("span",U,[Vue.createTextVNode(" 3. 三级联动(不带“全部”选项) "),Vue.createVNode(c,{options:Vue.unref(i),modelValue:n.value,"onUpdate:modelValue":s[2]||(s[2]=d=>n.value=d),onChange:a},null,8,["options","modelValue"])]),Vue.createElementVNode("div",B,[Vue.createElementVNode("div",null,"绑定值:"+Vue.toDisplayString(n.value),1),Vue.createElementVNode("div",null," 区域码转汉字: "+Vue.toDisplayString(Vue.unref(l)[n.value[0]])+", "+Vue.toDisplayString(Vue.unref(l)[n.value[1]])+", "+Vue.toDisplayString(Vue.unref(l)[n.value[2]]),1),Vue.createElementVNode("div",null," 汉字转区域码: "+Vue.toDisplayString(Vue.unref(m)(Vue.unref(l)[n.value[0]],Vue.unref(l)[n.value[1]],Vue.unref(l)[n.value[2]])),1)])])]),_:1}),Vue.createVNode(v,{xl:12,lg:12,md:24,sm:24,xs:24},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",K,[Vue.createElementVNode("span",L,[Vue.createTextVNode(' 4. 三级联动(带"全部选项") '),Vue.createVNode(c,{options:Vue.unref(N),modelValue:u.value,"onUpdate:modelValue":s[3]||(s[3]=d=>u.value=d),onChange:a},null,8,["options","modelValue"])]),Vue.createElementVNode("div",P,[Vue.createElementVNode("div",null,"绑定值:"+Vue.toDisplayString(u.value),1),Vue.createElementVNode("div",null," 区域码转汉字: "+Vue.toDisplayString(Vue.unref(l)[u.value[0]])+", "+Vue.toDisplayString(Vue.unref(l)[u.value[1]])+", "+Vue.toDisplayString(Vue.unref(l)[u.value[2]]),1),Vue.createElementVNode("div",null," 汉字转区域码: "+Vue.toDisplayString(Vue.unref(m)(Vue.unref(l)[u.value[0]],Vue.unref(l)[u.value[1]],Vue.unref(l)[u.value[2]])),1)])])]),_:1})]),_:1})]),_:1})}}});const G=D(q,[["__scopeId","data-v-4ebc4965"]]);export{G as default}; diff --git a/dist/static/js/cascader-c5c3f147.js b/dist/static/js/cascader-c5c3f147.js new file mode 100644 index 000000000..acc708524 --- /dev/null +++ b/dist/static/js/cascader-c5c3f147.js @@ -0,0 +1 @@ +import{O as A,K as y,d as N,r as b,c as V,e as U,w as h,f as B,h as x,g as _,i as a,u as s,C as u,_ as K}from"./index-0dd8d5e4.js";const L={86:{11e4:"北京市",12e4:"天津市",13e4:"河北省",14e4:"山西省",15e4:"内蒙古自治区",21e4:"辽宁省",22e4:"吉林省",23e4:"黑龙江省",31e4:"上海市",32e4:"江苏省",33e4:"浙江省",34e4:"安徽省",35e4:"福建省",36e4:"江西省",37e4:"山东省",41e4:"河南省",42e4:"湖北省",43e4:"湖南省",44e4:"广东省",45e4:"广西壮族自治区",46e4:"海南省",5e5:"重庆市",51e4:"四川省",52e4:"贵州省",53e4:"云南省",54e4:"西藏自治区",61e4:"陕西省",62e4:"甘肃省",63e4:"青海省",64e4:"宁夏回族自治区",65e4:"新疆维吾尔自治区",71e4:"台湾省",81e4:"香港特别行政区",82e4:"澳门特别行政区"},11e4:{110100:"市辖区"},110100:{110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110118:"密云区",110119:"延庆区"},12e4:{120100:"市辖区"},120100:{120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120117:"宁河区",120118:"静海区",120119:"蓟州区"},13e4:{130100:"石家庄市",130200:"唐山市",130300:"秦皇岛市",130400:"邯郸市",130500:"邢台市",130600:"保定市",130700:"张家口市",130800:"承德市",130900:"沧州市",131e3:"廊坊市",131100:"衡水市"},130100:{130101:"市辖区",130102:"长安区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130109:"藁城区",130110:"鹿泉区",130111:"栾城区",130121:"井陉县",130123:"正定县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130171:"石家庄高新技术产业开发区",130172:"石家庄循环化工园区",130181:"辛集市",130183:"晋州市",130184:"新乐市"},130200:{130201:"市辖区",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130209:"曹妃甸区",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130271:"河北唐山芦台经济开发区",130272:"唐山市汉沽管理区",130273:"唐山高新技术产业开发区",130274:"河北唐山海港经济开发区",130281:"遵化市",130283:"迁安市",130284:"滦州市"},130300:{130301:"市辖区",130302:"海港区",130303:"山海关区",130304:"北戴河区",130306:"抚宁区",130321:"青龙满族自治县",130322:"昌黎县",130324:"卢龙县",130371:"秦皇岛市经济技术开发区",130372:"北戴河新区"},130400:{130401:"市辖区",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130407:"肥乡区",130408:"永年区",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130471:"邯郸经济技术开发区",130473:"邯郸冀南新区",130481:"武安市"},130500:{130501:"市辖区",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130571:"河北邢台经济开发区",130581:"南宫市",130582:"沙河市"},130600:{130601:"市辖区",130602:"竞秀区",130606:"莲池区",130607:"满城区",130608:"清苑区",130609:"徐水区",130623:"涞水县",130624:"阜平县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130671:"保定高新技术产业开发区",130672:"保定白沟新城",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市"},130700:{130701:"市辖区",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130708:"万全区",130709:"崇礼区",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130771:"张家口经济开发区",130772:"张家口市察北管理区",130773:"张家口市塞北管理区"},130800:{130801:"市辖区",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130871:"承德高新技术产业开发区",130881:"平泉市"},130900:{130901:"市辖区",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130971:"河北沧州经济开发区",130972:"沧州高新技术产业开发区",130973:"沧州渤海新区",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市"},131e3:{131001:"市辖区",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131071:"廊坊经济技术开发区",131081:"霸州市",131082:"三河市"},131100:{131101:"市辖区",131102:"桃城区",131103:"冀州区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131171:"河北衡水高新技术产业开发区",131172:"衡水滨湖新区",131182:"深州市"},14e4:{140100:"太原市",140200:"大同市",140300:"阳泉市",140400:"长治市",140500:"晋城市",140600:"朔州市",140700:"晋中市",140800:"运城市",140900:"忻州市",141e3:"临汾市",141100:"吕梁市"},140100:{140101:"市辖区",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140171:"山西转型综合改革示范区",140181:"古交市"},140200:{140201:"市辖区",140212:"新荣区",140213:"平城区",140214:"云冈区",140215:"云州区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140271:"山西大同经济开发区"},140300:{140301:"市辖区",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县"},140400:{140401:"市辖区",140403:"潞州区",140404:"上党区",140405:"屯留区",140406:"潞城区",140423:"襄垣县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140471:"山西长治高新技术产业园区"},140500:{140501:"市辖区",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市"},140600:{140601:"市辖区",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140671:"山西朔州经济开发区",140681:"怀仁市"},140700:{140701:"市辖区",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市"},140800:{140801:"市辖区",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市"},140900:{140901:"市辖区",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140971:"五台山风景名胜区",140981:"原平市"},141e3:{141001:"市辖区",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市"},141100:{141101:"市辖区",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市"},15e4:{150100:"呼和浩特市",150200:"包头市",150300:"乌海市",150400:"赤峰市",150500:"通辽市",150600:"鄂尔多斯市",150700:"呼伦贝尔市",150800:"巴彦淖尔市",150900:"乌兰察布市",152200:"兴安盟",152500:"锡林郭勒盟",152900:"阿拉善盟"},150100:{150101:"市辖区",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150171:"呼和浩特金海工业园区",150172:"呼和浩特经济技术开发区"},150200:{150201:"市辖区",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150271:"包头稀土高新技术产业开发区"},150300:{150301:"市辖区",150302:"海勃湾区",150303:"海南区",150304:"乌达区"},150400:{150401:"市辖区",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗"},150500:{150501:"市辖区",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150571:"通辽经济技术开发区",150581:"霍林郭勒市"},150600:{150601:"市辖区",150602:"东胜区",150603:"康巴什区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗"},150700:{150701:"市辖区",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市"},150800:{150801:"市辖区",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗"},150900:{150901:"市辖区",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市"},152200:{152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县"},152500:{152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152571:"乌拉盖管委会"},152900:{152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152971:"内蒙古阿拉善经济开发区"},21e4:{210100:"沈阳市",210200:"大连市",210300:"鞍山市",210400:"抚顺市",210500:"本溪市",210600:"丹东市",210700:"锦州市",210800:"营口市",210900:"阜新市",211e3:"辽阳市",211100:"盘锦市",211200:"铁岭市",211300:"朝阳市",211400:"葫芦岛市"},210100:{210101:"市辖区",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"浑南区",210113:"沈北新区",210114:"于洪区",210115:"辽中区",210123:"康平县",210124:"法库县",210181:"新民市"},210200:{210201:"市辖区",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210214:"普兰店区",210224:"长海县",210281:"瓦房店市",210283:"庄河市"},210300:{210301:"市辖区",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市"},210400:{210401:"市辖区",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县"},210500:{210501:"市辖区",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县"},210600:{210601:"市辖区",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市"},210700:{210701:"市辖区",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市"},210800:{210801:"市辖区",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市"},210900:{210901:"市辖区",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县"},211e3:{211001:"市辖区",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市"},211100:{211101:"市辖区",211102:"双台子区",211103:"兴隆台区",211104:"大洼区",211122:"盘山县"},211200:{211201:"市辖区",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市"},211300:{211301:"市辖区",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市"},211400:{211401:"市辖区",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市"},22e4:{220100:"长春市",220200:"吉林市",220300:"四平市",220400:"辽源市",220500:"通化市",220600:"白山市",220700:"松原市",220800:"白城市",222400:"延边朝鲜族自治州"},220100:{220101:"市辖区",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220113:"九台区",220122:"农安县",220171:"长春经济技术开发区",220172:"长春净月高新技术产业开发区",220173:"长春高新技术产业开发区",220174:"长春汽车经济技术开发区",220182:"榆树市",220183:"德惠市"},220200:{220201:"市辖区",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220271:"吉林经济开发区",220272:"吉林高新技术产业开发区",220273:"吉林中国新加坡食品区",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市"},220300:{220301:"市辖区",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市"},220400:{220401:"市辖区",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县"},220500:{220501:"市辖区",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市"},220600:{220601:"市辖区",220602:"浑江区",220605:"江源区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220681:"临江市"},220700:{220701:"市辖区",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220771:"吉林松原经济开发区",220781:"扶余市"},220800:{220801:"市辖区",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220871:"吉林白城经济开发区",220881:"洮南市",220882:"大安市"},222400:{222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县"},23e4:{230100:"哈尔滨市",230200:"齐齐哈尔市",230300:"鸡西市",230400:"鹤岗市",230500:"双鸭山市",230600:"大庆市",230700:"伊春市",230800:"佳木斯市",230900:"七台河市",231e3:"牡丹江市",231100:"黑河市",231200:"绥化市",232700:"大兴安岭地区"},230100:{230101:"市辖区",230102:"道里区",230103:"南岗区",230104:"道外区",230108:"平房区",230109:"松北区",230110:"香坊区",230111:"呼兰区",230112:"阿城区",230113:"双城区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230183:"尚志市",230184:"五常市"},230200:{230201:"市辖区",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市"},230300:{230301:"市辖区",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市"},230400:{230401:"市辖区",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县"},230500:{230501:"市辖区",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县"},230600:{230601:"市辖区",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230671:"大庆高新技术产业开发区"},230700:{230701:"市辖区",230717:"伊美区",230718:"乌翠区",230719:"友好区",230722:"嘉荫县",230723:"汤旺县",230724:"丰林县",230725:"大箐山县",230726:"南岔县",230751:"金林区",230781:"铁力市"},230800:{230801:"市辖区",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230881:"同江市",230882:"富锦市",230883:"抚远市"},230900:{230901:"市辖区",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县"},231e3:{231001:"市辖区",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231025:"林口县",231071:"牡丹江经济技术开发区",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"东宁市"},231100:{231101:"市辖区",231102:"爱辉区",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"嫩江市"},231200:{231201:"市辖区",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市"},232700:{232701:"漠河市",232721:"呼玛县",232722:"塔河县",232761:"加格达奇区",232762:"松岭区",232763:"新林区",232764:"呼中区"},31e4:{310100:"市辖区"},310100:{310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310151:"崇明区"},32e4:{320100:"南京市",320200:"无锡市",320300:"徐州市",320400:"常州市",320500:"苏州市",320600:"南通市",320700:"连云港市",320800:"淮安市",320900:"盐城市",321e3:"扬州市",321100:"镇江市",321200:"泰州市",321300:"宿迁市"},320100:{320101:"市辖区",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320117:"溧水区",320118:"高淳区"},320200:{320201:"市辖区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320213:"梁溪区",320214:"新吴区",320281:"江阴市",320282:"宜兴市"},320300:{320301:"市辖区",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320312:"铜山区",320321:"丰县",320322:"沛县",320324:"睢宁县",320371:"徐州经济技术开发区",320381:"新沂市",320382:"邳州市"},320400:{320401:"市辖区",320402:"天宁区",320404:"钟楼区",320411:"新北区",320412:"武进区",320413:"金坛区",320481:"溧阳市"},320500:{320501:"市辖区",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320509:"吴江区",320571:"苏州工业园区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320585:"太仓市"},320600:{320601:"市辖区",320602:"崇川区",320611:"港闸区",320612:"通州区",320623:"如东县",320671:"南通经济技术开发区",320681:"启东市",320682:"如皋市",320684:"海门市",320685:"海安市"},320700:{320701:"市辖区",320703:"连云区",320706:"海州区",320707:"赣榆区",320722:"东海县",320723:"灌云县",320724:"灌南县",320771:"连云港经济技术开发区",320772:"连云港高新技术产业开发区"},320800:{320801:"市辖区",320803:"淮安区",320804:"淮阴区",320812:"清江浦区",320813:"洪泽区",320826:"涟水县",320830:"盱眙县",320831:"金湖县",320871:"淮安经济技术开发区"},320900:{320901:"市辖区",320902:"亭湖区",320903:"盐都区",320904:"大丰区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320971:"盐城经济技术开发区",320981:"东台市"},321e3:{321001:"市辖区",321002:"广陵区",321003:"邗江区",321012:"江都区",321023:"宝应县",321071:"扬州经济技术开发区",321081:"仪征市",321084:"高邮市"},321100:{321101:"市辖区",321102:"京口区",321111:"润州区",321112:"丹徒区",321171:"镇江新区",321181:"丹阳市",321182:"扬中市",321183:"句容市"},321200:{321201:"市辖区",321202:"海陵区",321203:"高港区",321204:"姜堰区",321271:"泰州医药高新技术产业开发区",321281:"兴化市",321282:"靖江市",321283:"泰兴市"},321300:{321301:"市辖区",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321371:"宿迁经济技术开发区"},33e4:{330100:"杭州市",330200:"宁波市",330300:"温州市",330400:"嘉兴市",330500:"湖州市",330600:"绍兴市",330700:"金华市",330800:"衢州市",330900:"舟山市",331e3:"台州市",331100:"丽水市"},330100:{330101:"市辖区",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330111:"富阳区",330112:"临安区",330122:"桐庐县",330127:"淳安县",330182:"建德市"},330200:{330201:"市辖区",330203:"海曙区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330213:"奉化区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市"},330300:{330301:"市辖区",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330305:"洞头区",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330371:"温州经济技术开发区",330381:"瑞安市",330382:"乐清市",330383:"龙港市"},330400:{330401:"市辖区",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市"},330500:{330501:"市辖区",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县"},330600:{330601:"市辖区",330602:"越城区",330603:"柯桥区",330604:"上虞区",330624:"新昌县",330681:"诸暨市",330683:"嵊州市"},330700:{330701:"市辖区",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市"},330800:{330801:"市辖区",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市"},330900:{330901:"市辖区",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县"},331e3:{331001:"市辖区",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"玉环市"},331100:{331101:"市辖区",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市"},34e4:{340100:"合肥市",340200:"芜湖市",340300:"蚌埠市",340400:"淮南市",340500:"马鞍山市",340600:"淮北市",340700:"铜陵市",340800:"安庆市",341e3:"黄山市",341100:"滁州市",341200:"阜阳市",341300:"宿州市",341500:"六安市",341600:"亳州市",341700:"池州市",341800:"宣城市"},340100:{340101:"市辖区",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340124:"庐江县",340171:"合肥高新技术产业开发区",340172:"合肥经济技术开发区",340173:"合肥新站高新技术产业开发区",340181:"巢湖市"},340200:{340201:"市辖区",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340225:"无为县",340271:"芜湖经济技术开发区",340272:"安徽芜湖长江大桥经济开发区"},340300:{340301:"市辖区",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340371:"蚌埠市高新技术开发区",340372:"蚌埠市经济开发区"},340400:{340401:"市辖区",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"寿县"},340500:{340501:"市辖区",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"含山县",340523:"和县"},340600:{340601:"市辖区",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县"},340700:{340701:"市辖区",340705:"铜官区",340706:"义安区",340711:"郊区",340722:"枞阳县"},340800:{340801:"市辖区",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340871:"安徽安庆经济开发区",340881:"桐城市",340882:"潜山市"},341e3:{341001:"市辖区",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县"},341100:{341101:"市辖区",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341171:"苏滁现代产业园",341172:"滁州经济技术开发区",341181:"天长市",341182:"明光市"},341200:{341201:"市辖区",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341271:"阜阳合肥现代产业园区",341272:"阜阳经济技术开发区",341282:"界首市"},341300:{341301:"市辖区",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341371:"宿州马鞍山现代产业园区",341372:"宿州经济技术开发区"},341500:{341501:"市辖区",341502:"金安区",341503:"裕安区",341504:"叶集区",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县"},341600:{341601:"市辖区",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县"},341700:{341701:"市辖区",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县"},341800:{341801:"市辖区",341802:"宣州区",341821:"郎溪县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341871:"宣城市经济开发区",341881:"宁国市",341882:"广德市"},35e4:{350100:"福州市",350200:"厦门市",350300:"莆田市",350400:"三明市",350500:"泉州市",350600:"漳州市",350700:"南平市",350800:"龙岩市",350900:"宁德市"},350100:{350101:"市辖区",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350112:"长乐区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市"},350200:{350201:"市辖区",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区"},350300:{350301:"市辖区",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县"},350400:{350401:"市辖区",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市"},350500:{350501:"市辖区",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市"},350600:{350601:"市辖区",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市"},350700:{350701:"市辖区",350702:"延平区",350703:"建阳区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市"},350800:{350801:"市辖区",350802:"新罗区",350803:"永定区",350821:"长汀县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市"},350900:{350901:"市辖区",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市"},36e4:{360100:"南昌市",360200:"景德镇市",360300:"萍乡市",360400:"九江市",360500:"新余市",360600:"鹰潭市",360700:"赣州市",360800:"吉安市",360900:"宜春市",361e3:"抚州市",361100:"上饶市"},360100:{360101:"市辖区",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360112:"新建区",360121:"南昌县",360123:"安义县",360124:"进贤县"},360200:{360201:"市辖区",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市"},360300:{360301:"市辖区",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县"},360400:{360401:"市辖区",360402:"濂溪区",360403:"浔阳区",360404:"柴桑区",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"共青城市",360483:"庐山市"},360500:{360501:"市辖区",360502:"渝水区",360521:"分宜县"},360600:{360601:"市辖区",360602:"月湖区",360603:"余江区",360681:"贵溪市"},360700:{360701:"市辖区",360702:"章贡区",360703:"南康区",360704:"赣县区",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市"},360800:{360801:"市辖区",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市"},360900:{360901:"市辖区",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市"},361e3:{361001:"市辖区",361002:"临川区",361003:"东乡区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361030:"广昌县"},361100:{361101:"市辖区",361102:"信州区",361103:"广丰区",361104:"广信区",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市"},37e4:{370100:"济南市",370200:"青岛市",370300:"淄博市",370400:"枣庄市",370500:"东营市",370600:"烟台市",370700:"潍坊市",370800:"济宁市",370900:"泰安市",371e3:"威海市",371100:"日照市",371300:"临沂市",371400:"德州市",371500:"聊城市",371600:"滨州市",371700:"菏泽市"},370100:{370101:"市辖区",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370114:"章丘区",370115:"济阳区",370116:"莱芜区",370117:"钢城区",370124:"平阴县",370126:"商河县",370171:"济南高新技术产业开发区"},370200:{370201:"市辖区",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370215:"即墨区",370271:"青岛高新技术产业开发区",370281:"胶州市",370283:"平度市",370285:"莱西市"},370300:{370301:"市辖区",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县"},370400:{370401:"市辖区",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市"},370500:{370501:"市辖区",370502:"东营区",370503:"河口区",370505:"垦利区",370522:"利津县",370523:"广饶县",370571:"东营经济技术开发区",370572:"东营港经济开发区"},370600:{370601:"市辖区",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370671:"烟台高新技术产业开发区",370672:"烟台经济技术开发区",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市"},370700:{370701:"市辖区",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370772:"潍坊滨海经济技术开发区",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市"},370800:{370801:"市辖区",370811:"任城区",370812:"兖州区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370871:"济宁高新技术产业开发区",370881:"曲阜市",370883:"邹城市"},370900:{370901:"市辖区",370902:"泰山区",370911:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市"},371e3:{371001:"市辖区",371002:"环翠区",371003:"文登区",371071:"威海火炬高技术产业开发区",371072:"威海经济技术开发区",371073:"威海临港经济技术开发区",371082:"荣成市",371083:"乳山市"},371100:{371101:"市辖区",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371171:"日照经济技术开发区"},371300:{371301:"市辖区",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"兰陵县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371371:"临沂高新技术产业开发区",371372:"临沂经济技术开发区",371373:"临沂临港经济开发区"},371400:{371401:"市辖区",371402:"德城区",371403:"陵城区",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371471:"德州经济技术开发区",371472:"德州运河经济开发区",371481:"乐陵市",371482:"禹城市"},371500:{371501:"市辖区",371502:"东昌府区",371503:"茌平区",371521:"阳谷县",371522:"莘县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市"},371600:{371601:"市辖区",371602:"滨城区",371603:"沾化区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371625:"博兴县",371681:"邹平市"},371700:{371701:"市辖区",371702:"牡丹区",371703:"定陶区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371728:"东明县",371771:"菏泽经济技术开发区",371772:"菏泽高新技术开发区"},41e4:{410100:"郑州市",410200:"开封市",410300:"洛阳市",410400:"平顶山市",410500:"安阳市",410600:"鹤壁市",410700:"新乡市",410800:"焦作市",410900:"濮阳市",411e3:"许昌市",411100:"漯河市",411200:"三门峡市",411300:"南阳市",411400:"商丘市",411500:"信阳市",411600:"周口市",411700:"驻马店市",419e3:"省直辖县级行政区划"},410100:{410101:"市辖区",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410171:"郑州经济技术开发区",410172:"郑州高新技术产业开发区",410173:"郑州航空港经济综合实验区",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市"},410200:{410201:"市辖区",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410212:"祥符区",410221:"杞县",410222:"通许县",410223:"尉氏县",410225:"兰考县"},410300:{410301:"市辖区",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410311:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410371:"洛阳高新技术产业开发区",410381:"偃师市"},410400:{410401:"市辖区",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410471:"平顶山高新技术产业开发区",410472:"平顶山市城乡一体化示范区",410481:"舞钢市",410482:"汝州市"},410500:{410501:"市辖区",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410571:"安阳高新技术产业开发区",410581:"林州市"},410600:{410601:"市辖区",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410671:"鹤壁经济技术开发区"},410700:{410701:"市辖区",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410771:"新乡高新技术产业开发区",410772:"新乡经济技术开发区",410773:"新乡市平原城乡一体化示范区",410781:"卫辉市",410782:"辉县市",410783:"长垣市"},410800:{410801:"市辖区",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410871:"焦作城乡一体化示范区",410882:"沁阳市",410883:"孟州市"},410900:{410901:"市辖区",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410971:"河南濮阳工业园区",410972:"濮阳经济技术开发区"},411e3:{411001:"市辖区",411002:"魏都区",411003:"建安区",411024:"鄢陵县",411025:"襄城县",411071:"许昌经济技术开发区",411081:"禹州市",411082:"长葛市"},411100:{411101:"市辖区",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411171:"漯河经济技术开发区"},411200:{411201:"市辖区",411202:"湖滨区",411203:"陕州区",411221:"渑池县",411224:"卢氏县",411271:"河南三门峡经济开发区",411281:"义马市",411282:"灵宝市"},411300:{411301:"市辖区",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411371:"南阳高新技术产业开发区",411372:"南阳市城乡一体化示范区",411381:"邓州市"},411400:{411401:"市辖区",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411471:"豫东综合物流产业聚集区",411472:"河南商丘经济开发区",411481:"永城市"},411500:{411501:"市辖区",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411571:"信阳高新技术产业开发区"},411600:{411601:"市辖区",411602:"川汇区",411603:"淮阳区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411627:"太康县",411628:"鹿邑县",411671:"河南周口经济开发区",411681:"项城市"},411700:{411701:"市辖区",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411771:"河南驻马店经济开发区"},419e3:{419001:"济源市"},42e4:{420100:"武汉市",420200:"黄石市",420300:"十堰市",420500:"宜昌市",420600:"襄阳市",420700:"鄂州市",420800:"荆门市",420900:"孝感市",421e3:"荆州市",421100:"黄冈市",421200:"咸宁市",421300:"随州市",422800:"恩施土家族苗族自治州",429e3:"省直辖县级行政区划"},420100:{420101:"市辖区",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区"},420200:{420201:"市辖区",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市"},420300:{420301:"市辖区",420302:"茅箭区",420303:"张湾区",420304:"郧阳区",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市"},420500:{420501:"市辖区",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市"},420600:{420601:"市辖区",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市"},420700:{420701:"市辖区",420702:"梁子湖区",420703:"华容区",420704:"鄂城区"},420800:{420801:"市辖区",420802:"东宝区",420804:"掇刀区",420822:"沙洋县",420881:"钟祥市",420882:"京山市"},420900:{420901:"市辖区",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市"},421e3:{421001:"市辖区",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421071:"荆州经济技术开发区",421081:"石首市",421083:"洪湖市",421087:"松滋市"},421100:{421101:"市辖区",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421171:"龙感湖管理区",421181:"麻城市",421182:"武穴市"},421200:{421201:"市辖区",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市"},421300:{421301:"市辖区",421303:"曾都区",421321:"随县",421381:"广水市"},422800:{422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县"},429e3:{429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区"},43e4:{430100:"长沙市",430200:"株洲市",430300:"湘潭市",430400:"衡阳市",430500:"邵阳市",430600:"岳阳市",430700:"常德市",430800:"张家界市",430900:"益阳市",431e3:"郴州市",431100:"永州市",431200:"怀化市",431300:"娄底市",433100:"湘西土家族苗族自治州"},430100:{430101:"市辖区",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430112:"望城区",430121:"长沙县",430181:"浏阳市",430182:"宁乡市"},430200:{430201:"市辖区",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430212:"渌口区",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430271:"云龙示范区",430281:"醴陵市"},430300:{430301:"市辖区",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430371:"湖南湘潭高新技术产业园区",430372:"湘潭昭山示范区",430373:"湘潭九华示范区",430381:"湘乡市",430382:"韶山市"},430400:{430401:"市辖区",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430471:"衡阳综合保税区",430472:"湖南衡阳高新技术产业园区",430473:"湖南衡阳松木经济开发区",430481:"耒阳市",430482:"常宁市"},430500:{430501:"市辖区",430502:"双清区",430503:"大祥区",430511:"北塔区",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"邵东市"},430600:{430601:"市辖区",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430671:"岳阳市屈原管理区",430681:"汨罗市",430682:"临湘市"},430700:{430701:"市辖区",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430771:"常德市西洞庭管理区",430781:"津市市"},430800:{430801:"市辖区",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县"},430900:{430901:"市辖区",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430971:"益阳市大通湖管理区",430972:"湖南益阳高新技术产业园区",430981:"沅江市"},431e3:{431001:"市辖区",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市"},431100:{431101:"市辖区",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431171:"永州经济技术开发区",431172:"永州市金洞管理区",431173:"永州市回龙圩管理区"},431200:{431201:"市辖区",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431271:"怀化市洪江管理区",431281:"洪江市"},431300:{431301:"市辖区",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市"},433100:{433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433173:"湖南永顺经济开发区"},44e4:{440100:"广州市",440200:"韶关市",440300:"深圳市",440400:"珠海市",440500:"汕头市",440600:"佛山市",440700:"江门市",440800:"湛江市",440900:"茂名市",441200:"肇庆市",441300:"惠州市",441400:"梅州市",441500:"汕尾市",441600:"河源市",441700:"阳江市",441800:"清远市",441900:"东莞市",442e3:"中山市",445100:"潮州市",445200:"揭阳市",445300:"云浮市"},440100:{440101:"市辖区",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440117:"从化区",440118:"增城区"},440200:{440201:"市辖区",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市"},440300:{440301:"市辖区",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"龙华区",440310:"坪山区",440311:"光明区"},440400:{440401:"市辖区",440402:"香洲区",440403:"斗门区",440404:"金湾区"},440500:{440501:"市辖区",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县"},440600:{440601:"市辖区",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区"},440700:{440701:"市辖区",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市"},440800:{440801:"市辖区",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市"},440900:{440901:"市辖区",440902:"茂南区",440904:"电白区",440981:"高州市",440982:"化州市",440983:"信宜市"},441200:{441201:"市辖区",441202:"端州区",441203:"鼎湖区",441204:"高要区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441284:"四会市"},441300:{441301:"市辖区",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县"},441400:{441401:"市辖区",441402:"梅江区",441403:"梅县区",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市"},441500:{441501:"市辖区",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市"},441600:{441601:"市辖区",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县"},441700:{441701:"市辖区",441702:"江城区",441704:"阳东区",441721:"阳西县",441781:"阳春市"},441800:{441801:"市辖区",441802:"清城区",441803:"清新区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441881:"英德市",441882:"连州市"},441900:{441900003:"东城街道",441900004:"南城街道",441900005:"万江街道",441900006:"莞城街道",441900101:"石碣镇",441900102:"石龙镇",441900103:"茶山镇",441900104:"石排镇",441900105:"企石镇",441900106:"横沥镇",441900107:"桥头镇",441900108:"谢岗镇",441900109:"东坑镇",441900110:"常平镇",441900111:"寮步镇",441900112:"樟木头镇",441900113:"大朗镇",441900114:"黄江镇",441900115:"清溪镇",441900116:"塘厦镇",441900117:"凤岗镇",441900118:"大岭山镇",441900119:"长安镇",441900121:"虎门镇",441900122:"厚街镇",441900123:"沙田镇",441900124:"道滘镇",441900125:"洪梅镇",441900126:"麻涌镇",441900127:"望牛墩镇",441900128:"中堂镇",441900129:"高埗镇",441900401:"松山湖",441900402:"东莞港",441900403:"东莞生态园"},442e3:{442000001:"石岐街道",442000002:"东区街道",442000003:"中山港街道",442000004:"西区街道",442000005:"南区街道",442000006:"五桂山街道",442000100:"小榄镇",442000101:"黄圃镇",442000102:"民众镇",442000103:"东凤镇",442000104:"东升镇",442000105:"古镇镇",442000106:"沙溪镇",442000107:"坦洲镇",442000108:"港口镇",442000109:"三角镇",442000110:"横栏镇",442000111:"南头镇",442000112:"阜沙镇",442000113:"南朗镇",442000114:"三乡镇",442000115:"板芙镇",442000116:"大涌镇",442000117:"神湾镇"},445100:{445101:"市辖区",445102:"湘桥区",445103:"潮安区",445122:"饶平县"},445200:{445201:"市辖区",445202:"榕城区",445203:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市"},445300:{445301:"市辖区",445302:"云城区",445303:"云安区",445321:"新兴县",445322:"郁南县",445381:"罗定市"},45e4:{450100:"南宁市",450200:"柳州市",450300:"桂林市",450400:"梧州市",450500:"北海市",450600:"防城港市",450700:"钦州市",450800:"贵港市",450900:"玉林市",451e3:"百色市",451100:"贺州市",451200:"河池市",451300:"来宾市",451400:"崇左市"},450100:{450101:"市辖区",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450110:"武鸣区",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县"},450200:{450201:"市辖区",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450206:"柳江区",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县"},450300:{450301:"市辖区",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450312:"临桂区",450321:"阳朔县",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450332:"恭城瑶族自治县",450381:"荔浦市"},450400:{450401:"市辖区",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市"},450500:{450501:"市辖区",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县"},450600:{450601:"市辖区",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市"},450700:{450701:"市辖区",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县"},450800:{450801:"市辖区",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市"},450900:{450901:"市辖区",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市"},451e3:{451001:"市辖区",451002:"右江区",451003:"田阳区",451022:"田东县",451023:"平果县",451024:"德保县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451081:"靖西市"},451100:{451101:"市辖区",451102:"八步区",451103:"平桂区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县"},451200:{451201:"市辖区",451202:"金城江区",451203:"宜州区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县"},451300:{451301:"市辖区",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市"},451400:{451401:"市辖区",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市"},46e4:{460100:"海口市",460200:"三亚市",460300:"三沙市",460400:"儋州市",469e3:"省直辖县级行政区划"},460100:{460101:"市辖区",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区"},460200:{460201:"市辖区",460202:"海棠区",460203:"吉阳区",460204:"天涯区",460205:"崖州区"},460300:{460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域"},460400:{460400100:"那大镇",460400101:"和庆镇",460400102:"南丰镇",460400103:"大成镇",460400104:"雅星镇",460400105:"兰洋镇",460400106:"光村镇",460400107:"木棠镇",460400108:"海头镇",460400109:"峨蔓镇",460400111:"王五镇",460400112:"白马井镇",460400113:"中和镇",460400114:"排浦镇",460400115:"东成镇",460400116:"新州镇",460400499:"洋浦经济开发区",460400500:"华南热作学院"},469e3:{469001:"五指山市",469002:"琼海市",469005:"文昌市",469006:"万宁市",469007:"东方市",469021:"定安县",469022:"屯昌县",469023:"澄迈县",469024:"临高县",469025:"白沙黎族自治县",469026:"昌江黎族自治县",469027:"乐东黎族自治县",469028:"陵水黎族自治县",469029:"保亭黎族苗族自治县",469030:"琼中黎族苗族自治县"},5e5:{500100:"市辖区",500200:"县"},500100:{500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"綦江区",500111:"大足区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500116:"江津区",500117:"合川区",500118:"永川区",500119:"南川区",500120:"璧山区",500151:"铜梁区",500152:"潼南区",500153:"荣昌区",500154:"开州区",500155:"梁平区",500156:"武隆区"},500200:{500229:"城口县",500230:"丰都县",500231:"垫江县",500233:"忠县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县"},51e4:{510100:"成都市",510300:"自贡市",510400:"攀枝花市",510500:"泸州市",510600:"德阳市",510700:"绵阳市",510800:"广元市",510900:"遂宁市",511e3:"内江市",511100:"乐山市",511300:"南充市",511400:"眉山市",511500:"宜宾市",511600:"广安市",511700:"达州市",511800:"雅安市",511900:"巴中市",512e3:"资阳市",513200:"阿坝藏族羌族自治州",513300:"甘孜藏族自治州",513400:"凉山彝族自治州"},510100:{510101:"市辖区",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510116:"双流区",510117:"郫都区",510121:"金堂县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"简阳市"},510300:{510301:"市辖区",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县"},510400:{510401:"市辖区",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县"},510500:{510501:"市辖区",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县"},510600:{510601:"市辖区",510603:"旌阳区",510604:"罗江区",510623:"中江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市"},510700:{510701:"市辖区",510703:"涪城区",510704:"游仙区",510705:"安州区",510722:"三台县",510723:"盐亭县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市"},510800:{510801:"市辖区",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县"},510900:{510901:"市辖区",510903:"船山区",510904:"安居区",510921:"蓬溪县",510923:"大英县",510981:"射洪市"},511e3:{511001:"市辖区",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511071:"内江经济开发区",511083:"隆昌市"},511100:{511101:"市辖区",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市"},511300:{511301:"市辖区",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市"},511400:{511401:"市辖区",511402:"东坡区",511403:"彭山区",511421:"仁寿县",511423:"洪雅县",511424:"丹棱县",511425:"青神县"},511500:{511501:"市辖区",511502:"翠屏区",511503:"南溪区",511504:"叙州区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县"},511600:{511601:"市辖区",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市"},511700:{511701:"市辖区",511702:"通川区",511703:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511771:"达州经济开发区",511781:"万源市"},511800:{511801:"市辖区",511802:"雨城区",511803:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县"},511900:{511901:"市辖区",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511971:"巴中经济开发区"},512e3:{512001:"市辖区",512002:"雁江区",512021:"安岳县",512022:"乐至县"},513200:{513201:"马尔康市",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县"},513300:{513301:"康定市",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县"},513400:{513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县"},52e4:{520100:"贵阳市",520200:"六盘水市",520300:"遵义市",520400:"安顺市",520500:"毕节市",520600:"铜仁市",522300:"黔西南布依族苗族自治州",522600:"黔东南苗族侗族自治州",522700:"黔南布依族苗族自治州"},520100:{520101:"市辖区",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520115:"观山湖区",520121:"开阳县",520122:"息烽县",520123:"修文县",520181:"清镇市"},520200:{520201:"钟山区",520203:"六枝特区",520221:"水城县",520281:"盘州市"},520300:{520301:"市辖区",520302:"红花岗区",520303:"汇川区",520304:"播州区",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市"},520400:{520401:"市辖区",520402:"西秀区",520403:"平坝区",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县"},520500:{520501:"市辖区",520502:"七星关区",520521:"大方县",520522:"黔西县",520523:"金沙县",520524:"织金县",520525:"纳雍县",520526:"威宁彝族回族苗族自治县",520527:"赫章县"},520600:{520601:"市辖区",520602:"碧江区",520603:"万山区",520621:"江口县",520622:"玉屏侗族自治县",520623:"石阡县",520624:"思南县",520625:"印江土家族苗族自治县",520626:"德江县",520627:"沿河土家族自治县",520628:"松桃苗族自治县"},522300:{522301:"兴义市",522302:"兴仁市",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县"},522600:{522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县"},522700:{522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县"},53e4:{530100:"昆明市",530300:"曲靖市",530400:"玉溪市",530500:"保山市",530600:"昭通市",530700:"丽江市",530800:"普洱市",530900:"临沧市",532300:"楚雄彝族自治州",532500:"红河哈尼族彝族自治州",532600:"文山壮族苗族自治州",532800:"西双版纳傣族自治州",532900:"大理白族自治州",533100:"德宏傣族景颇族自治州",533300:"怒江傈僳族自治州",533400:"迪庆藏族自治州"},530100:{530101:"市辖区",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530114:"呈贡区",530115:"晋宁区",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市"},530300:{530301:"市辖区",530302:"麒麟区",530303:"沾益区",530304:"马龙区",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530381:"宣威市"},530400:{530401:"市辖区",530402:"红塔区",530403:"江川区",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县"},530500:{530501:"市辖区",530502:"隆阳区",530521:"施甸县",530523:"龙陵县",530524:"昌宁县",530581:"腾冲市"},530600:{530601:"市辖区",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530681:"水富市"},530700:{530701:"市辖区",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县"},530800:{530801:"市辖区",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县"},530900:{530901:"市辖区",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县"},532300:{532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县"},532500:{532501:"个旧市",532502:"开远市",532503:"蒙自市",532504:"弥勒市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县"},532600:{532601:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县"},532800:{532801:"景洪市",532822:"勐海县",532823:"勐腊县"},532900:{532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县"},533100:{533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县"},533300:{533301:"泸水市",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县"},533400:{533401:"香格里拉市",533422:"德钦县",533423:"维西傈僳族自治县"},54e4:{540100:"拉萨市",540200:"日喀则市",540300:"昌都市",540400:"林芝市",540500:"山南市",540600:"那曲市",542500:"阿里地区"},540100:{540101:"市辖区",540102:"城关区",540103:"堆龙德庆区",540104:"达孜区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540127:"墨竹工卡县",540171:"格尔木藏青工业园区",540172:"拉萨经济技术开发区",540173:"西藏文化旅游创意园区",540174:"达孜工业园区"},540200:{540202:"桑珠孜区",540221:"南木林县",540222:"江孜县",540223:"定日县",540224:"萨迦县",540225:"拉孜县",540226:"昂仁县",540227:"谢通门县",540228:"白朗县",540229:"仁布县",540230:"康马县",540231:"定结县",540232:"仲巴县",540233:"亚东县",540234:"吉隆县",540235:"聂拉木县",540236:"萨嘎县",540237:"岗巴县"},540300:{540302:"卡若区",540321:"江达县",540322:"贡觉县",540323:"类乌齐县",540324:"丁青县",540325:"察雅县",540326:"八宿县",540327:"左贡县",540328:"芒康县",540329:"洛隆县",540330:"边坝县"},540400:{540402:"巴宜区",540421:"工布江达县",540422:"米林县",540423:"墨脱县",540424:"波密县",540425:"察隅县",540426:"朗县"},540500:{540501:"市辖区",540502:"乃东区",540521:"扎囊县",540522:"贡嘎县",540523:"桑日县",540524:"琼结县",540525:"曲松县",540526:"措美县",540527:"洛扎县",540528:"加查县",540529:"隆子县",540530:"错那县",540531:"浪卡子县"},540600:{540602:"色尼区",540621:"嘉黎县",540622:"比如县",540623:"聂荣县",540624:"安多县",540625:"申扎县",540626:"索县",540627:"班戈县",540628:"巴青县",540629:"尼玛县",540630:"双湖县"},542500:{542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县"},61e4:{610100:"西安市",610200:"铜川市",610300:"宝鸡市",610400:"咸阳市",610500:"渭南市",610600:"延安市",610700:"汉中市",610800:"榆林市",610900:"安康市",611e3:"商洛市"},610100:{610101:"市辖区",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610117:"高陵区",610118:"鄠邑区",610122:"蓝田县",610124:"周至县"},610200:{610201:"市辖区",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县"},610300:{610301:"市辖区",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县"},610400:{610401:"市辖区",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"彬州市"},610500:{610501:"市辖区",610502:"临渭区",610503:"华州区",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市"},610600:{610601:"市辖区",610602:"宝塔区",610603:"安塞区",610621:"延长县",610622:"延川县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610681:"子长市"},610700:{610701:"市辖区",610702:"汉台区",610703:"南郑区",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县"},610800:{610801:"市辖区",610802:"榆阳区",610803:"横山区",610822:"府谷县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610881:"神木市"},610900:{610901:"市辖区",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县"},611e3:{611001:"市辖区",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县"},62e4:{620100:"兰州市",620200:"嘉峪关市",620300:"金昌市",620400:"白银市",620500:"天水市",620600:"武威市",620700:"张掖市",620800:"平凉市",620900:"酒泉市",621e3:"庆阳市",621100:"定西市",621200:"陇南市",622900:"临夏回族自治州",623e3:"甘南藏族自治州"},620100:{620101:"市辖区",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620171:"兰州新区"},620200:{620201:"市辖区"},620300:{620301:"市辖区",620302:"金川区",620321:"永昌县"},620400:{620401:"市辖区",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县"},620500:{620501:"市辖区",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县"},620600:{620601:"市辖区",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县"},620700:{620701:"市辖区",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县"},620800:{620801:"市辖区",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620825:"庄浪县",620826:"静宁县",620881:"华亭市"},620900:{620901:"市辖区",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市"},621e3:{621001:"市辖区",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县"},621100:{621101:"市辖区",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县"},621200:{621201:"市辖区",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县"},622900:{622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县"},623e3:{623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县"},63e4:{630100:"西宁市",630200:"海东市",632200:"海北藏族自治州",632300:"黄南藏族自治州",632500:"海南藏族自治州",632600:"果洛藏族自治州",632700:"玉树藏族自治州",632800:"海西蒙古族藏族自治州"},630100:{630101:"市辖区",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县"},630200:{630202:"乐都区",630203:"平安区",630222:"民和回族土族自治县",630223:"互助土族自治县",630224:"化隆回族自治县",630225:"循化撒拉族自治县"},632200:{632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县"},632300:{632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县"},632500:{632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县"},632600:{632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县"},632700:{632701:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县"},632800:{632801:"格尔木市",632802:"德令哈市",632803:"茫崖市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632857:"大柴旦行政委员会"},64e4:{640100:"银川市",640200:"石嘴山市",640300:"吴忠市",640400:"固原市",640500:"中卫市"},640100:{640101:"市辖区",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市"},640200:{640201:"市辖区",640202:"大武口区",640205:"惠农区",640221:"平罗县"},640300:{640301:"市辖区",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市"},640400:{640401:"市辖区",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县"},640500:{640501:"市辖区",640502:"沙坡头区",640521:"中宁县",640522:"海原县"},65e4:{650100:"乌鲁木齐市",650200:"克拉玛依市",650400:"吐鲁番市",650500:"哈密市",652300:"昌吉回族自治州",652700:"博尔塔拉蒙古自治州",652800:"巴音郭楞蒙古自治州",652900:"阿克苏地区",653e3:"克孜勒苏柯尔克孜自治州",653100:"喀什地区",653200:"和田地区",654e3:"伊犁哈萨克自治州",654200:"塔城地区",654300:"阿勒泰地区",659e3:"自治区直辖县级行政区划"},650100:{650101:"市辖区",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县"},650200:{650201:"市辖区",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区"},650400:{650402:"高昌区",650421:"鄯善县",650422:"托克逊县"},650500:{650502:"伊州区",650521:"巴里坤哈萨克自治县",650522:"伊吾县"},652300:{652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县"},652700:{652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县"},652800:{652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652871:"库尔勒经济技术开发区"},652900:{652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县"},653e3:{653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县"},653100:{653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县"},653200:{653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县"},654e3:{654002:"伊宁市",654003:"奎屯市",654004:"霍尔果斯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县"},654200:{654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县"},654300:{654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县"},659e3:{659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",659006:"铁门关市"},71e4:{710100:"台北市",710200:"高雄市",710300:"基隆市",710400:"台中市",710500:"台南市",710600:"新竹市",710700:"嘉义市"},710100:{710101:"内湖区",710102:"南港区",710103:"中正区",710104:"松山区",710105:"信义区",710106:"大安区",710107:"中山区",710108:"文山区",710109:"大同区",710110:"万华区",710111:"士林区",710112:"北投区"},710200:{710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区"},710300:{710301:"仁爱区",710302:"信义区",710303:"中正区",710304:"暖暖区",710305:"安乐区",710307:"七堵区"},710400:{710301:"中区",710302:"东区",710303:"南区",710304:"西区",710305:"北区",710306:"北屯区",710307:"西屯区",710308:"南屯区"},710500:{710501:"中西区",710502:"东区",710503:"南区",710504:"北区",710505:"安平区",710506:"安南区"},710600:{710601:"东区",710602:"北区",710603:"香山区"},710700:{710701:"东区",710702:"西区"},81e4:{810001:"中西區",810002:"灣仔區",810003:"東區",810004:"南區",810005:"油尖旺區",810006:"深水埗區",810007:"九龍城區",810008:"黃大仙區",810009:"觀塘區",810010:"荃灣區",810011:"屯門區",810012:"元朗區",810013:"北區",810014:"大埔區",810015:"西貢區",810016:"沙田區",810017:"葵青區",810018:"離島區"},82e4:{820001:"花地瑪堂區",820002:"花王堂區",820003:"望德堂區",820004:"大堂區",820005:"風順堂區",820006:"嘉模堂區",820007:"路氹填海區",820008:"聖方濟各堂區"}};var P=L;const O=A(P),n={},m={},T=O[86],g=[];let j=[];const r="全部";n[""]=r;Object.keys(T).forEach(c=>{const e=T[c];g.push({value:c,label:e}),n[c]=e,m[e]={code:c},m[e][r]={code:""}});g.forEach(c=>{const e=c.value,t=c.label,l=[],o=O[e]??{};Object.keys(o).forEach(d=>{l.push({value:d,label:o[d]}),n[d]=o[d],m[t][o[d]]={code:d},m[t][o[d]][r]={code:""}}),l.length&&(c.children=l)});j=y(g);g.forEach(c=>{const e=c.children,t=c.label;e&&e.forEach(l=>{const o=l.value,d=l.label,p=[],i=O[o]??{};Object.keys(i).forEach(v=>{p.push({value:v,label:i[v]}),n[v]=i[v],m[t][d][i[v]]={code:v}}),p.length&&(l.children=p)})});const D=y(j);D.unshift({value:"",label:r});D.forEach(c=>{const e=c.children;e!=null&&e.length&&(e.unshift({value:"",label:r}),e.forEach(t=>{const l=t.children;l!=null&&l.length&&l.unshift({value:"",label:r})}))});const $=y(g);$.unshift({value:"",label:r});$.forEach(c=>{const e=c.children;e!=null&&e.length&&(e.unshift({value:"",label:r}),e.forEach(t=>{const l=t.children;l!=null&&l.length&&l.unshift({value:"",label:r})}))});function E(c,e,t){let l="";if(c&&m[c]){const o=m[c];if(l=o.code,e&&o[e]){const d=o[e];l=`${l}${e===r?"":", "}${d.code}`,t&&d[t]&&(l=`${l}${t===r?"":", "}${d[t].code}`)}}return l}const q={class:"flex flex-col items-center justify-center"},F={class:"imp"},G={class:"leading-10"},R={class:"flex flex-col items-center justify-center mt-3"},S={class:"imp"},X={class:"leading-10"},z={class:"flex flex-col items-center justify-center mt-3"},H={class:"imp"},I={class:"leading-10"},J={class:"flex flex-col items-center justify-center mt-3"},M={class:"imp"},Q={class:"leading-10"},W=N({name:"Cascader",__name:"cascader",setup(c){const e=b(["110000","110100"]),t=b(["120000","120100","120101"]),l=b(["130000",""]),o=b(["120000","120100",""]),d=p=>{};return(p,i)=>{const v=V("el-cascader"),C=V("el-col"),k=V("el-row"),w=V("el-card");return B(),U(w,{shadow:"never"},{header:h(()=>[x(" 区域级联选择器 ")]),default:h(()=>[_(k,{gutter:20},{default:h(()=>[_(C,{xl:12,lg:12,md:24,sm:24,xs:24},{default:h(()=>[a("div",q,[a("span",F,[x(" 1. 二级联动(不带“全部”选项) "),_(v,{options:s(j),modelValue:e.value,"onUpdate:modelValue":i[0]||(i[0]=f=>e.value=f),onChange:d},null,8,["options","modelValue"])]),a("div",G,[a("div",null,"绑定值:"+u(e.value),1),a("div",null," 区域码转汉字: "+u(s(n)[e.value[0]])+", "+u(s(n)[e.value[1]]),1),a("div",null," 汉字转区域码: "+u(s(E)(s(n)[e.value[0]],s(n)[e.value[1]])),1)])])]),_:1}),_(C,{xl:12,lg:12,md:24,sm:24,xs:24},{default:h(()=>[a("div",R,[a("span",S,[x(" 2. 二级联动(带有“全部”选项) "),_(v,{options:s(D),modelValue:l.value,"onUpdate:modelValue":i[1]||(i[1]=f=>l.value=f),onChange:d},null,8,["options","modelValue"])]),a("div",X,[a("div",null,"绑定值:"+u(l.value),1),a("div",null," 区域码转汉字: "+u(s(n)[l.value[0]])+", "+u(s(n)[l.value[1]]),1),a("div",null," 汉字转区域码: "+u(s(E)(s(n)[l.value[0]],s(n)[l.value[1]])),1)])])]),_:1}),_(C,{xl:12,lg:12,md:24,sm:24,xs:24},{default:h(()=>[a("div",z,[a("span",H,[x(" 3. 三级联动(不带“全部”选项) "),_(v,{options:s(g),modelValue:t.value,"onUpdate:modelValue":i[2]||(i[2]=f=>t.value=f),onChange:d},null,8,["options","modelValue"])]),a("div",I,[a("div",null,"绑定值:"+u(t.value),1),a("div",null," 区域码转汉字: "+u(s(n)[t.value[0]])+", "+u(s(n)[t.value[1]])+", "+u(s(n)[t.value[2]]),1),a("div",null," 汉字转区域码: "+u(s(E)(s(n)[t.value[0]],s(n)[t.value[1]],s(n)[t.value[2]])),1)])])]),_:1}),_(C,{xl:12,lg:12,md:24,sm:24,xs:24},{default:h(()=>[a("div",J,[a("span",M,[x(' 4. 三级联动(带"全部选项") '),_(v,{options:s($),modelValue:o.value,"onUpdate:modelValue":i[3]||(i[3]=f=>o.value=f),onChange:d},null,8,["options","modelValue"])]),a("div",Q,[a("div",null,"绑定值:"+u(o.value),1),a("div",null," 区域码转汉字: "+u(s(n)[o.value[0]])+", "+u(s(n)[o.value[1]])+", "+u(s(n)[o.value[2]]),1),a("div",null," 汉字转区域码: "+u(s(E)(s(n)[o.value[0]],s(n)[o.value[1]],s(n)[o.value[2]])),1)])])]),_:1})]),_:1})]),_:1})}}});const Z=K(W,[["__scopeId","data-v-4ebc4965"]]);export{Z as default}; diff --git a/dist/static/js/check-f53d8364.js b/dist/static/js/check-3815600c.js similarity index 61% rename from dist/static/js/check-f53d8364.js rename to dist/static/js/check-3815600c.js index 52f089058..7541fb374 100644 --- a/dist/static/js/check-f53d8364.js +++ b/dist/static/js/check-3815600c.js @@ -1 +1 @@ -const t={width:1024,height:1024,body:''},a=t;export{a as C}; +const t={width:1024,height:1024,body:''};export{t as d}; diff --git a/dist/static/js/columns-0893fc98.js b/dist/static/js/columns-0893fc98.js deleted file mode 100644 index 3144f471b..000000000 --- a/dist/static/js/columns-0893fc98.js +++ /dev/null @@ -1 +0,0 @@ -import{S as c}from"./sortable.esm-679e0872.js";import{J as s}from"./index-c61a73ff.js";import{a as m}from"./data-8e10e21a.js";function v(){const o=Vue.ref(s(m,!0)),e=Vue.ref([{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}]),t=Vue.ref([{label:"ID",prop:r=>e.value[r].prop},{label:"日期",prop:r=>e.value[r].prop},{label:"姓名",prop:r=>e.value[r].prop}]),l=r=>{r.preventDefault(),Vue.nextTick(()=>{const p=document.querySelector(".el-table__header-wrapper tr");c.create(p,{animation:300,delay:0,onEnd:({newIndex:n,oldIndex:a})=>{const u=e.value[a];e.value.splice(a,1),e.value.splice(n,0,u)}})})};return Vue.onMounted(()=>{Vue.nextTick(()=>{l(event)})}),{columns:t,dataList:o,columnsDrag:e}}export{v as useColumns}; diff --git a/dist/static/js/columns-174f6fc9.js b/dist/static/js/columns-174f6fc9.js deleted file mode 100644 index 471d48e09..000000000 --- a/dist/static/js/columns-174f6fc9.js +++ /dev/null @@ -1 +0,0 @@ -import{S as c}from"./sortable.esm-679e0872.js";import{J as s}from"./index-c61a73ff.js";import{a as u}from"./data-8e10e21a.js";function b(){const e=Vue.ref(s(u,!0)),t=o=>{o.preventDefault(),Vue.nextTick(()=>{const r=document.querySelector(".el-table__body-wrapper tbody");c.create(r,{animation:300,handle:".drag-btn",onEnd:({newIndex:a,oldIndex:n})=>{const l=e.value.splice(n,1)[0];e.value.splice(a,0,l)}})})};return{columns:[{label:"ID",prop:"id",cellRenderer:({row:o})=>Vue.createVNode("div",{class:"flex items-center"},[Vue.createVNode(Vue.resolveComponent("iconify-icon-online"),{icon:"icon-park-outline:drag",class:"drag-btn cursor-grab",onMouseenter:r=>t(r)},null),Vue.createVNode("p",{class:"ml-[16px]"},[o.id])])},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}],dataList:e}}export{b as useColumns}; diff --git a/dist/static/js/columns-2721478e.js b/dist/static/js/columns-2721478e.js new file mode 100644 index 000000000..423161209 --- /dev/null +++ b/dist/static/js/columns-2721478e.js @@ -0,0 +1 @@ +import{S as c}from"./sortable.esm-679e0872.js";import{r as p,J as i,g as a,c as u,n as d}from"./index-0dd8d5e4.js";import{a as m}from"./data-4845d266.js";function D(){const e=p(i(m,!0)),n=o=>{o.preventDefault(),d(()=>{const r=document.querySelector(".el-table__body-wrapper tbody");c.create(r,{animation:300,handle:".drag-btn",onEnd:({newIndex:t,oldIndex:l})=>{const s=e.value.splice(l,1)[0];e.value.splice(t,0,s)}})})};return{columns:[{label:"ID",prop:"id",cellRenderer:({row:o})=>a("div",{class:"flex items-center"},[a(u("iconify-icon-online"),{icon:"icon-park-outline:drag",class:"drag-btn cursor-grab",onMouseenter:r=>n(r)},null),a("p",{class:"ml-[16px]"},[o.id])])},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}],dataList:e}}export{D as useColumns}; diff --git a/dist/static/js/columns-39bf1e5b.js b/dist/static/js/columns-39bf1e5b.js new file mode 100644 index 000000000..e63da0a35 --- /dev/null +++ b/dist/static/js/columns-39bf1e5b.js @@ -0,0 +1 @@ +import{m as s}from"./message-ac5811da.js";import{t as c}from"./data-7bb4b374.js";import{g as l,c as n,F as r,h as a}from"./index-0dd8d5e4.js";function f(){const o=[{label:"日期",prop:"date",cellRenderer:({row:e})=>l("div",{style:"display: flex; align-items: center"},[l(n("iconify-icon-online"),{icon:"ep:timer"},null),l("span",{style:"margin-left: 10px"},[e.date])])},{label:"姓名",prop:"name",cellRenderer:({row:e})=>l(n("el-popover"),{effect:"light",trigger:"hover",placement:"top",width:"auto"},{default:()=>l(r,null,[l("div",null,[a("name: "),e.name]),l("div",null,[a("address: "),e.address])]),reference:()=>l(n("el-tag"),null,{default:()=>[e.name]})})},{label:"地址",prop:"address"},{label:"操作",cellRenderer:({index:e,row:t})=>l(r,null,[l(n("el-button"),{size:"small",onClick:()=>i(e+1,t)},{default:()=>[a("Edit")]}),l(n("el-button"),{size:"small",type:"danger",onClick:()=>d(e+1,t)},{default:()=>[a("Delete")]})])}],i=(e,t)=>{s(`您编辑了第 ${e} 行,数据为:${JSON.stringify(t)}`,{type:"success"})},d=(e,t)=>{s(`您删除了第 ${e} 行,数据为:${JSON.stringify(t)}`)};return{columns:o,tableData:c}}export{f as useColumns}; diff --git a/dist/static/js/columns-3d7dbff3.js b/dist/static/js/columns-3d7dbff3.js new file mode 100644 index 000000000..f0fed0af8 --- /dev/null +++ b/dist/static/js/columns-3d7dbff3.js @@ -0,0 +1 @@ +import{m as u}from"./message-ac5811da.js";import{b as r}from"./data-4845d266.js";import{r as p,a7 as i}from"./index-0dd8d5e4.js";function b(t){const a=p(""),o=[{label:"ID",prop:"id",width:80},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],n=i({pageSize:5,currentPage:1,layout:"prev, pager, next",total:r.length,background:!0,small:!0});function l({row:{name:e}}){return{cursor:"pointer",background:e===a.value?"#f5f7fa":""}}function s(e){a.value=e.name,t.value.blur(),u(`当前选中行的数据为:${JSON.stringify(e)}`,{type:"success"})}return{columns:o,pagination:n,selectValue:a,tableDataEdit:r,rowStyle:l,onRowClick:s}}export{b as useColumns}; diff --git a/dist/static/js/columns-3d82d5a7.js b/dist/static/js/columns-3d82d5a7.js deleted file mode 100644 index 3d401caac..000000000 --- a/dist/static/js/columns-3d82d5a7.js +++ /dev/null @@ -1 +0,0 @@ -import{m as l}from"./message-9ae1daa3.js";import{t as r}from"./data-5ec60fc2.js";import"./index-c61a73ff.js";function s(){const o=[{label:"日期",prop:"date",cellRenderer:({row:e})=>Vue.createVNode("div",{style:"display: flex; align-items: center"},[Vue.createVNode(Vue.resolveComponent("iconify-icon-online"),{icon:"ep:timer"},null),Vue.createVNode("span",{style:"margin-left: 10px"},[e.date])])},{label:"姓名",prop:"name",cellRenderer:({row:e})=>Vue.createVNode(Vue.resolveComponent("el-popover"),{effect:"light",trigger:"hover",placement:"top",width:"auto"},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("div",null,[Vue.createTextVNode("name: "),e.name]),Vue.createVNode("div",null,[Vue.createTextVNode("address: "),e.address])]),reference:()=>Vue.createVNode(Vue.resolveComponent("el-tag"),null,{default:()=>[e.name]})})},{label:"地址",prop:"address"},{label:"操作",cellRenderer:({index:e,row:t})=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(Vue.resolveComponent("el-button"),{size:"small",onClick:()=>a(e+1,t)},{default:()=>[Vue.createTextVNode("Edit")]}),Vue.createVNode(Vue.resolveComponent("el-button"),{size:"small",type:"danger",onClick:()=>n(e+1,t)},{default:()=>[Vue.createTextVNode("Delete")]})])}],a=(e,t)=>{l(`您编辑了第 ${e} 行,数据为:${JSON.stringify(t)}`,{type:"success"})},n=(e,t)=>{l(`您删除了第 ${e} 行,数据为:${JSON.stringify(t)}`)};return{columns:o,tableData:r}}export{s as useColumns}; diff --git a/dist/static/js/columns-4858870b.js b/dist/static/js/columns-4858870b.js new file mode 100644 index 000000000..0f676c6ca --- /dev/null +++ b/dist/static/js/columns-4858870b.js @@ -0,0 +1 @@ +import{d as r}from"./arrow-right-s-line-2977cc7e.js";import{g as l,c as e,h as o}from"./index-0dd8d5e4.js";const i={width:24,height:24,body:''};function u(){return{columns:[{cellRenderer:()=>l("span",{class:"flex items-center -mt-6"},[l(e("iconify-icon-offline"),{icon:i,color:"#F56C6C",width:"18px",height:"18px"},null),l("span",{class:"ml-1 mr-4"},[o("您的账户已被冻结")]),l("a",{href:"javascript:void(0);",class:"flex items-center",style:"color: var(--el-color-primary)"},[o("立即解冻"),l(e("iconify-icon-offline"),{icon:r,color:"var(--el-color-primary)",width:"18px",height:"18px"},null)])])},{cellRenderer:()=>l("span",{class:"flex items-center -mt-8"},[l(e("iconify-icon-offline"),{icon:i,color:"#F56C6C",width:"18px",height:"18px"},null),l("span",{class:"ml-1 mr-4"},[o("您的账户还不具备申请资格")]),l("a",{href:"javascript:void(0);",class:"flex items-center",style:"color: var(--el-color-primary)"},[o("立即升级"),l(e("iconify-icon-offline"),{icon:r,color:"var(--el-color-primary)",width:"18px",height:"18px"},null)])])}]}}export{u as useColumns}; diff --git a/dist/static/js/columns-49cce1a9.js b/dist/static/js/columns-49cce1a9.js deleted file mode 100644 index f20afb01a..000000000 --- a/dist/static/js/columns-49cce1a9.js +++ /dev/null @@ -1 +0,0 @@ -import{P as d}from"./print-a6e42845.js";import{b}from"./data-8e10e21a.js";import{J as c}from"./index-c61a73ff.js";function m(e){const a=Vue.ref(c(b,!0)),t=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],o=()=>{d(e.value.getTableDoms().tableWrapper).toPrint};function n({column:{property:r},rowIndex:f}){if(r==="id")return f<3?{background:"#87baf9"}:{background:"#87e8de"}}function l({columnIndex:r}){return r===0?{background:"#f3b2d0"}:{background:"#fafafa"}}function u({rowIndex:r}){return r%2===1?{background:"#ffa39e"}:{background:"#91d5ff"}}return{columns:t,dataList:a,print:o,rowStyle:u,cellStyle:n,headerCellStyle:l}}export{m as useColumns}; diff --git a/dist/static/js/columns-534bdbdc.js b/dist/static/js/columns-534bdbdc.js new file mode 100644 index 000000000..47fc74568 --- /dev/null +++ b/dist/static/js/columns-534bdbdc.js @@ -0,0 +1 @@ +import{T as o}from"./index-24d2e7bb.js";import{d as i}from"./office-building-cc7a1721.js";import{d as c}from"./iphone-bcaa848c.js";import{d as u}from"./user-3-fill-70ba8c19.js";import{g as e,c as l,h as n}from"./index-0dd8d5e4.js";const r={width:1024,height:1024,body:''},s={width:1024,height:1024,body:''},d={width:1024,height:1024,body:''};function C(){const a=[{type:"",label:"善良"},{type:"success",label:"好学"},{type:"info",label:"幽默"},{type:"danger",label:"旅游"},{type:"warning",label:"追剧"}];return{columnsA:[{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:u},null)]}),n("用户名")]),value:"乐于分享的程序员小铭"},{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:c},null)]}),n("手机号")]),value:"123456789"},{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:s},null)]}),n("居住地")]),value:"中国"}],columnsB:[{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:r},null)]}),n("标签")]),cellRenderer:()=>a.map(t=>e(l("el-tag"),{class:"mr-[10px]",type:t.type,size:"small",effect:"dark"},{default:()=>[t.label]}))},{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:i},null)]}),n("联系地址")]),value:"中华人民共和国"}],columnsC:[{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:d},null)]}),n("个性签名")]),cellRenderer:()=>e(o,{className:"github",values:["办法总比困难多"],cursor:!1,speed:100},null)}]}}export{C as useColumns}; diff --git a/dist/static/js/columns-583d93a9.js b/dist/static/js/columns-583d93a9.js deleted file mode 100644 index a0b7bc5d5..000000000 --- a/dist/static/js/columns-583d93a9.js +++ /dev/null @@ -1 +0,0 @@ -function s(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}function n(){const{pkg:e,lastBuildTime:t}={pkg:{dependencies:{"@amap/amap-jsapi-loader":"^1.0.1","@howdyjs/mouse-menu":"^2.0.7","@logicflow/core":"^1.2.5","@logicflow/extension":"^1.2.5","@pureadmin/descriptions":"^1.1.1","@pureadmin/table":"^2.1.0","@pureadmin/utils":"^1.8.9","@vueuse/core":"^10.1.2","@vueuse/motion":"2.0.0-beta.12","@wangeditor/editor":"^5.1.21","@wangeditor/editor-for-vue":"^5.1.12","animate.css":"^4.1.1",axios:"^1.4.0","china-area-data":"^5.0.1",cropperjs:"^1.5.13",dayjs:"^1.11.7",echarts:"^5.4.2","el-table-infinite-scroll":"^3.0.1","element-plus":"^2.3.4","element-resize-detector":"^1.2.4","intro.js":"^7.0.1","js-cookie":"^3.0.5",jsbarcode:"^3.11.5","md-editor-v3":"2.7.2",mitt:"^3.0.0",mockjs:"^1.1.0",nprogress:"^0.2.0",path:"^0.12.7",pinia:"^2.0.36",qrcode:"^1.5.3",qs:"^6.11.1","responsive-storage":"^2.2.0",sortablejs:"^1.15.0",swiper:"^9.3.0",typeit:"^8.7.1","v-contextmenu":"3.0.0",vue:"^3.3.1","vue-i18n":"^9.2.2","vue-json-pretty":"^2.2.4","vue-pdf-embed":"^1.1.6","vue-router":"^4.1.6","vue-types":"^5.0.2","vue-virtual-scroller":"2.0.0-beta.7","vue3-danmaku":"1.4.0-beta.1",vuedraggable:"^4.1.0",xgplayer:"^3.0.2",xlsx:"^0.18.5"},devDependencies:{"@commitlint/cli":"^17.6.3","@commitlint/config-conventional":"^17.6.3","@iconify-icons/ep":"^1.2.11","@iconify-icons/ri":"^1.2.7","@iconify/vue":"^4.1.1","@intlify/unplugin-vue-i18n":"^0.10.0","@pureadmin/theme":"^3.0.0","@types/element-resize-detector":"1.1.3","@types/intro.js":"^5.1.1","@types/js-cookie":"^3.0.3","@types/mockjs":"^1.0.7","@types/node":"^18.15.12","@types/nprogress":"0.2.0","@types/qrcode":"^1.5.0","@types/qs":"^6.9.7","@types/sortablejs":"^1.15.1","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","@vitejs/plugin-vue":"^4.2.2","@vitejs/plugin-vue-jsx":"^3.0.1","@vue/eslint-config-prettier":"^7.1.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.14",cloc:"^2.11.0",cssnano:"^6.0.1",eslint:"^8.40.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^9.12.0",husky:"^8.0.3","lint-staged":"^13.2.2",picocolors:"^1.0.0",postcss:"^8.4.23","postcss-html":"^1.5.0","postcss-import":"^15.1.0","postcss-scss":"^4.0.6",prettier:"^2.8.7","pretty-quick":"3.1.1",rimraf:"^5.0.0","rollup-plugin-visualizer":"^5.9.0",sass:"^1.62.1","sass-loader":"^13.2.2",stylelint:"^15.6.1","stylelint-config-html":"^1.1.0","stylelint-config-recess-order":"^4.0.0","stylelint-config-recommended":"^12.0.0","stylelint-config-recommended-scss":"^11.0.0","stylelint-config-recommended-vue":"^1.4.0","stylelint-config-standard":"^33.0.0","stylelint-config-standard-scss":"^9.0.0","stylelint-order":"^6.0.3","stylelint-prettier":"^3.0.0","stylelint-scss":"^5.0.0",svgo:"^3.0.2",tailwindcss:"^3.3.2",terser:"^5.17.1",typescript:"^5.0.4",vite:"^4.3.5","vite-plugin-cdn-import":"^0.3.5","vite-plugin-compression":"^0.5.1","vite-plugin-mock":"^2.9.6","vite-plugin-remove-console":"^2.1.1","vite-svg-loader":"^4.0.0","vue-eslint-parser":"^9.2.1","vue-tsc":"^1.6.4"},name:"vue-pure-admin",version:"4.0.0"},lastBuildTime:"2023-05-11 20:36:29"},{version:r}=e;return{columns:[{label:"版本",cellRenderer:()=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:"small"},s(r)?r:{default:()=>[r]})},{label:"最后编译时间",cellRenderer:()=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:"small"},s(t)?t:{default:()=>[t]})},{label:"文档地址",cellRenderer:()=>Vue.createVNode("a",{href:"https://yiming_chang.gitee.io/pure-admin-doc",target:"_blank"},[Vue.createVNode("span",{style:"color: var(--el-color-primary)"},[Vue.createTextVNode("文档地址")])])},{label:"预览地址",cellRenderer:()=>Vue.createVNode("a",{href:"https://yiming_chang.gitee.io/vue-pure-admin",target:"_blank"},[Vue.createVNode("span",{style:"color: var(--el-color-primary)"},[Vue.createTextVNode("预览地址")])])},{label:"Github",cellRenderer:()=>Vue.createVNode("a",{href:"https://github.com/pure-admin/vue-pure-admin",target:"_blank"},[Vue.createVNode("span",{style:"color: var(--el-color-primary)"},[Vue.createTextVNode("Github")])])},{label:"QQ交流群",cellRenderer:()=>Vue.createVNode("a",{href:"https://yiming_chang.gitee.io/pure-admin-doc/pages/support/#qq-%E4%BA%A4%E6%B5%81%E7%BE%A4",target:"_blank"},[Vue.createVNode("span",{style:"color: var(--el-color-primary)"},[Vue.createTextVNode("点击加群")])])}]}}export{n as useColumns}; diff --git a/dist/static/js/columns-58fb2122.js b/dist/static/js/columns-58fb2122.js new file mode 100644 index 000000000..b7f26c263 --- /dev/null +++ b/dist/static/js/columns-58fb2122.js @@ -0,0 +1 @@ +import{P as d}from"./print-a6e42845.js";import{b}from"./data-4845d266.js";import{r as c,J as i}from"./index-0dd8d5e4.js";function g(a){const e=c(i(b,!0)),t=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],o=()=>{d(a.value.getTableDoms().tableWrapper).toPrint};function n({column:{property:r},rowIndex:f}){if(r==="id")return f<3?{background:"#87baf9"}:{background:"#87e8de"}}function l({columnIndex:r}){return r===0?{background:"#f3b2d0"}:{background:"#fafafa"}}function u({rowIndex:r}){return r%2===1?{background:"#ffa39e"}:{background:"#91d5ff"}}return{columns:t,dataList:e,print:o,rowStyle:u,cellStyle:n,headerCellStyle:l}}export{g as useColumns}; diff --git a/dist/static/js/columns-5d6f3a23.js b/dist/static/js/columns-5d6f3a23.js deleted file mode 100644 index 9ba574825..000000000 --- a/dist/static/js/columns-5d6f3a23.js +++ /dev/null @@ -1 +0,0 @@ -import{b as m}from"./data-8e10e21a.js";import{m as h}from"./message-9ae1daa3.js";import{J as d,D as b}from"./index-c61a73ff.js";import{d as g}from"./edit-pen-37b5ced2.js";import{C}from"./check-f53d8364.js";function y(){const a=Vue.ref({}),t=Vue.ref({}),o=Vue.ref(-1),r=Vue.ref(d(m,!0)),s=Vue.computed(()=>u=>{var e;return(e=a.value[u])==null?void 0:e.value}),l=Vue.computed(()=>u=>{var e;return(e=t.value[u])==null?void 0:e.editing}),n=Vue.computed(()=>(u,e=!1)=>["cursor-pointer","ml-2","transition","delay-100",e?["hover:scale-110","hover:text-red-500"]:l.value(u)&&["scale-150","text-red-500"]]),c=[{label:"ID(可编辑)",prop:"id",cellRenderer:({row:u,index:e})=>Vue.createVNode("div",{class:"flex-bc w-full h-[32px]",onMouseenter:()=>o.value=e,onMouseleave:()=>i(e)},[Vue.withDirectives(Vue.createVNode("p",null,[u.id]),[[Vue.vShow,!l.value(e)]]),Vue.createVNode(Vue.Transition,{"enter-active-class":"animate__animated animate__fadeInUp animate__faster"},{default:()=>[Vue.withDirectives(Vue.createVNode(Vue.resolveComponent("el-input"),{modelValue:s.value(e),onInput:f=>V(f,e)},null),[[Vue.vShow,l.value(e)]])]}),Vue.withDirectives(Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:C,class:n.value(e),onClick:()=>p(e)},null),[[Vue.vShow,l.value(e)]]),Vue.withDirectives(Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:g,class:n.value(e,!0),onClick:()=>v(u,e)},null),[[Vue.vShow,o.value===e&&!l.value(e)]])])},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];function v({id:u},e){a.value[e]=Object.assign({},a.value[e],{value:u}),t.value[e]=Object.assign({},t.value[e],{editing:!0})}function i(u){var e;(e=a.value[u])!=null&&e.value?o.value=u:o.value=-1}function V(u,e){a.value[e].value=u}function p(u){r.value[u].id=a.value[u].value,h(`您编辑了第 ${u+1} 行,编辑后数据为:${JSON.stringify(r.value[u])}`,{type:"success"}),t.value[u]=Object.assign({},t.value[u],{editing:!1}),b().then(()=>a.value[u].value=null)}return{columns:c,dataList:r}}export{y as useColumns}; diff --git a/dist/static/js/columns-5f812485.js b/dist/static/js/columns-5f812485.js new file mode 100644 index 000000000..d81413e3b --- /dev/null +++ b/dist/static/js/columns-5f812485.js @@ -0,0 +1 @@ +import{u as t,w as m}from"./xlsx-e927f539.js";import{a as u}from"./data-4845d266.js";import{r as i,J as f}from"./index-0dd8d5e4.js";import{m as b}from"./message-ac5811da.js";function _(){const r=i(f(u,!0)),o=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}];return{columns:o,dataList:r,exportExcel:()=>{const s=r.value.map(e=>{const n=[];return o.forEach(c=>{n.push(e[c.prop])}),n}),a=[];o.forEach(e=>{a.push(e.label)}),s.unshift(a);const l=t.aoa_to_sheet(s),p=t.book_new();t.book_append_sheet(p,l,"数据报表"),m(p,"pure-admin-table.xlsx"),b("导出成功",{type:"success"})}}}export{_ as useColumns}; diff --git a/dist/static/js/columns-75cd3c72.js b/dist/static/js/columns-75cd3c72.js new file mode 100644 index 000000000..f68d5101e --- /dev/null +++ b/dist/static/js/columns-75cd3c72.js @@ -0,0 +1 @@ +import{m as o}from"./message-ac5811da.js";import{t as m}from"./data-7bb4b374.js";import{r as d,x as i,g as t,c as s,h as r,F as p}from"./index-0dd8d5e4.js";function C(){const a=d(""),n=i(()=>m.filter(e=>!a.value||e.name.toLowerCase().includes(a.value.toLowerCase()))),u=(e,l)=>{o(`您编辑了第 ${e} 行,数据为:${JSON.stringify(l)}`,{type:"success"})},c=(e,l)=>{o(`您删除了第 ${e} 行,数据为:${JSON.stringify(l)}`)};return{columns:[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"},{align:"right",headerRenderer:()=>t(s("el-input"),{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,size:"small",clearable:!0,placeholder:"Type to search"},null),cellRenderer:({index:e,row:l})=>t(p,null,[t(s("el-button"),{size:"small",onClick:()=>u(e+1,l)},{default:()=>[r("Edit")]}),t(s("el-button"),{size:"small",type:"danger",onClick:()=>c(e+1,l)},{default:()=>[r("Delete")]})])}],filterTableData:n}}export{C as useColumns}; diff --git a/dist/static/js/columns-7628a2c7.js b/dist/static/js/columns-7628a2c7.js new file mode 100644 index 000000000..b960263bf --- /dev/null +++ b/dist/static/js/columns-7628a2c7.js @@ -0,0 +1 @@ +import{b as o}from"./data-4845d266.js";import{r as u,a7 as i}from"./index-0dd8d5e4.js";function h(r,l){const n=u([]),c=[{type:"selection",align:"left"},{label:"ID",prop:"id",width:80},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],s=i({pageSize:10,currentPage:1,layout:"prev, pager, next",total:o.length,background:!0,small:!0});return{columns:c,pagination:s,selectValue:n,tableDataEdit:o,onSure:()=>{r.value.blur()},onClear:()=>{const{clearSelection:e}=l.value.getTableRef();e()},removeTag:e=>{const{toggleRowSelection:a}=l.value.getTableRef();a(o.filter(t=>t.name===e)[0],!1)},handleSelectionChange:e=>{const a=[];e.forEach(t=>{a.push(t.name)}),n.value=a}}}export{h as useColumns}; diff --git a/dist/static/js/columns-7cd72d5c.js b/dist/static/js/columns-7cd72d5c.js new file mode 100644 index 000000000..46624af69 --- /dev/null +++ b/dist/static/js/columns-7cd72d5c.js @@ -0,0 +1 @@ +import{r as i,J as n,an as c,x as p,ao as u}from"./index-0dd8d5e4.js";import{a as f}from"./data-4845d266.js";import{m as h}from"./message-ac5811da.js";import{t as d}from"./index-95b65695.js";function D(){const a=i(n(f,!0).splice(0,4)),t=[{label:"ID",prop:"id"},{label:"姓名",prop:"name"},{label:"日期",prop:"date"},{label:"echarts图表",slot:"echart"}],{isDark:s}=c(),r=p(()=>s.value?"dark":"light");return a.value.forEach((b,e)=>{const{setOptions:o}=u(d(`PieChartRef${e}`),{theme:r});o({tooltip:{trigger:"item",confine:!0},series:[{name:"Github信息",type:"pie",data:[{value:1067,name:"watchers"},{value:4037,name:"star"},{value:859,name:"forks"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},{name:"click",callback:({data:{name:l,value:m}})=>{h(`您点击了第 ${e+1} 行,图表标题为${l},图表数据为:${m}`,{type:"success"})}})}),{columns:t,dataList:a}}export{D as useColumns}; diff --git a/dist/static/js/columns-928b7b53.js b/dist/static/js/columns-928b7b53.js deleted file mode 100644 index 99164b6df..000000000 --- a/dist/static/js/columns-928b7b53.js +++ /dev/null @@ -1,10 +0,0 @@ -import{t as g}from"./data-8e10e21a.js";import{D as r,J as p}from"./index-c61a73ff.js";function V(){const l=Vue.ref([]),a=Vue.ref(!0),t=Vue.ref("nohide"),u=Vue.ref("default"),s=Vue.ref(!1),o=Vue.ref("right"),f=[{label:"日期",prop:"date",hide:()=>t.value==="hideDate"},{label:"姓名",prop:"name",hide:()=>t.value==="hideName"},{label:"地址",prop:"address",hide:()=>t.value==="hideAddress"}],n=Vue.reactive({pageSize:10,currentPage:1,pageSizes:[10,15,20],total:0,align:"right",background:!0,small:!1}),i=Vue.reactive({text:"正在加载第一页...",viewBox:"-10, -10, 50, 50",spinner:` - - `});function c(e){n.small=e}function h(e){}function d(e){i.text=`正在加载第${e}页...`,a.value=!0,r(600).then(()=>{a.value=!1})}return Vue.watchEffect(()=>{n.align=o.value}),Vue.onMounted(()=>{r(600).then(()=>{const e=[];Array.from({length:6}).forEach(()=>{e.push(p(g,!0))}),l.value=e.flat(1/0),n.total=l.value.length,a.value=!1})}),{loading:a,columns:f,dataList:l,hideVal:t,tableSize:u,pagination:n,loadingConfig:i,paginationAlign:o,paginationSmall:s,onChange:c,onSizeChange:h,onCurrentChange:d}}export{V as useColumns}; diff --git a/dist/static/js/columns-97dc43c8.js b/dist/static/js/columns-97dc43c8.js deleted file mode 100644 index 866138adb..000000000 --- a/dist/static/js/columns-97dc43c8.js +++ /dev/null @@ -1 +0,0 @@ -import{J as i,B as c,Z as n}from"./index-c61a73ff.js";import{a as p}from"./data-8e10e21a.js";import{m as u}from"./message-9ae1daa3.js";import{t as f}from"./index-f1e7ee6d.js";function v(){const e=Vue.ref(i(p,!0).splice(0,4)),t=[{label:"ID",prop:"id"},{label:"姓名",prop:"name"},{label:"日期",prop:"date"},{label:"echarts图表",slot:"echart"}],{isDark:r}=c(),s=Vue.computed(()=>r.value?"dark":"light");return e.value.forEach((h,a)=>{const{setOptions:o}=n(f(`PieChartRef${a}`),{theme:s});o({tooltip:{trigger:"item",confine:!0},series:[{name:"Github信息",type:"pie",data:[{value:1067,name:"watchers"},{value:4037,name:"star"},{value:859,name:"forks"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},{name:"click",callback:({data:{name:l,value:m}})=>{u(`您点击了第 ${a+1} 行,图表标题为${l},图表数据为:${m}`,{type:"success"})}})}),{columns:t,dataList:e}}export{v as useColumns}; diff --git a/dist/static/js/columns-9df0a0b6.js b/dist/static/js/columns-9df0a0b6.js new file mode 100644 index 000000000..30c7a41b0 --- /dev/null +++ b/dist/static/js/columns-9df0a0b6.js @@ -0,0 +1 @@ +import{S as m}from"./sortable.esm-679e0872.js";import{r as o,J as i,a as b,n as l}from"./index-0dd8d5e4.js";import{a as v}from"./data-4845d266.js";function S(){const t=o(i(v,!0)),e=o([{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}]),p=o([{label:"ID",prop:a=>e.value[a].prop},{label:"日期",prop:a=>e.value[a].prop},{label:"姓名",prop:a=>e.value[a].prop}]),n=a=>{a.preventDefault(),l(()=>{const s=document.querySelector(".el-table__header-wrapper tr");m.create(s,{animation:300,delay:0,onEnd:({newIndex:u,oldIndex:r})=>{const c=e.value[r];e.value.splice(r,1),e.value.splice(u,0,c)}})})};return b(()=>{l(()=>{n(event)})}),{columns:p,dataList:t,columnsDrag:e}}export{S as useColumns}; diff --git a/dist/static/js/columns-a4182130.js b/dist/static/js/columns-a4182130.js deleted file mode 100644 index 39e47b9f6..000000000 --- a/dist/static/js/columns-a4182130.js +++ /dev/null @@ -1 +0,0 @@ -import{b as l}from"./data-8e10e21a.js";import"./index-c61a73ff.js";function d(r,o){const n=Vue.ref([]),c=[{type:"selection",align:"left"},{label:"ID",prop:"id",width:80},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],s=Vue.reactive({pageSize:10,currentPage:1,layout:"prev, pager, next",total:l.length,background:!0,small:!0});return{columns:c,pagination:s,selectValue:n,tableDataEdit:l,onSure:()=>{r.value.blur()},onClear:()=>{const{clearSelection:e}=o.value.getTableRef();e()},removeTag:e=>{const{toggleRowSelection:a}=o.value.getTableRef();a(l.filter(t=>t.name===e)[0],!1)},handleSelectionChange:e=>{const a=[];e.forEach(t=>{a.push(t.name)}),n.value=a}}}export{d as useColumns}; diff --git a/dist/static/js/columns-ba8e4348.js b/dist/static/js/columns-ba8e4348.js new file mode 100644 index 000000000..5a5461a47 --- /dev/null +++ b/dist/static/js/columns-ba8e4348.js @@ -0,0 +1 @@ +import{g as e,c as n,h as s,aH as o}from"./index-0dd8d5e4.js";function l(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!o(t)}function p(){const{pkg:t,lastBuildTime:i}={pkg:{dependencies:{"@amap/amap-jsapi-loader":"^1.0.1","@howdyjs/mouse-menu":"^2.0.7","@logicflow/core":"^1.2.5","@logicflow/extension":"^1.2.5","@pureadmin/descriptions":"^1.1.1","@pureadmin/table":"^2.1.0","@pureadmin/utils":"^1.8.9","@vueuse/core":"^10.1.2","@vueuse/motion":"2.0.0-beta.12","@wangeditor/editor":"^5.1.21","@wangeditor/editor-for-vue":"^5.1.12","animate.css":"^4.1.1",axios:"^1.4.0","china-area-data":"^5.0.1",cropperjs:"^1.5.13",dayjs:"^1.11.7",echarts:"^5.4.2","el-table-infinite-scroll":"^3.0.1","element-plus":"^2.3.4","element-resize-detector":"^1.2.4","intro.js":"^7.0.1","js-cookie":"^3.0.5",jsbarcode:"^3.11.5","md-editor-v3":"2.7.2",mitt:"^3.0.0",mockjs:"^1.1.0",nprogress:"^0.2.0",path:"^0.12.7",pinia:"^2.0.36",qrcode:"^1.5.3",qs:"^6.11.1","responsive-storage":"^2.2.0",sortablejs:"^1.15.0",swiper:"^9.3.0",typeit:"^8.7.1","v-contextmenu":"3.0.0",vue:"^3.3.1","vue-i18n":"^9.2.2","vue-json-pretty":"^2.2.4","vue-pdf-embed":"^1.1.6","vue-router":"^4.1.6","vue-types":"^5.0.2","vue-virtual-scroller":"2.0.0-beta.7","vue3-danmaku":"1.4.0-beta.1",vuedraggable:"^4.1.0",xgplayer:"^3.0.2",xlsx:"^0.18.5"},devDependencies:{"@commitlint/cli":"^17.6.3","@commitlint/config-conventional":"^17.6.3","@iconify-icons/ep":"^1.2.11","@iconify-icons/ri":"^1.2.7","@iconify/vue":"^4.1.1","@intlify/unplugin-vue-i18n":"^0.10.0","@pureadmin/theme":"^3.0.0","@types/element-resize-detector":"1.1.3","@types/intro.js":"^5.1.1","@types/js-cookie":"^3.0.3","@types/mockjs":"^1.0.7","@types/node":"^18.15.12","@types/nprogress":"0.2.0","@types/qrcode":"^1.5.0","@types/qs":"^6.9.7","@types/sortablejs":"^1.15.1","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","@vitejs/plugin-vue":"^4.2.2","@vitejs/plugin-vue-jsx":"^3.0.1","@vue/eslint-config-prettier":"^7.1.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.14",cloc:"^2.11.0",cssnano:"^6.0.1",eslint:"^8.40.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^9.12.0",husky:"^8.0.3","lint-staged":"^13.2.2",picocolors:"^1.0.0",postcss:"^8.4.23","postcss-html":"^1.5.0","postcss-import":"^15.1.0","postcss-scss":"^4.0.6",prettier:"^2.8.7","pretty-quick":"3.1.1",rimraf:"^5.0.0","rollup-plugin-visualizer":"^5.9.0",sass:"^1.62.1","sass-loader":"^13.2.2",stylelint:"^15.6.1","stylelint-config-html":"^1.1.0","stylelint-config-recess-order":"^4.0.0","stylelint-config-recommended":"^12.0.0","stylelint-config-recommended-scss":"^11.0.0","stylelint-config-recommended-vue":"^1.4.0","stylelint-config-standard":"^33.0.0","stylelint-config-standard-scss":"^9.0.0","stylelint-order":"^6.0.3","stylelint-prettier":"^3.0.0","stylelint-scss":"^5.0.0",svgo:"^3.0.2",tailwindcss:"^3.3.2",terser:"^5.17.1",typescript:"^5.0.4",vite:"^4.3.5","vite-plugin-cdn-import":"^0.3.5","vite-plugin-compression":"^0.5.1","vite-plugin-mock":"^2.9.6","vite-plugin-remove-console":"^2.1.1","vite-svg-loader":"^4.0.0","vue-eslint-parser":"^9.2.1","vue-tsc":"^1.6.4"},name:"vue-pure-admin",version:"4.0.0"},lastBuildTime:"2023-05-11 20:52:38"},{version:r}=t;return{columns:[{label:"版本",cellRenderer:()=>e(n("el-tag"),{size:"small"},l(r)?r:{default:()=>[r]})},{label:"最后编译时间",cellRenderer:()=>e(n("el-tag"),{size:"small"},l(i)?i:{default:()=>[i]})},{label:"文档地址",cellRenderer:()=>e("a",{href:"https://yiming_chang.gitee.io/pure-admin-doc",target:"_blank"},[e("span",{style:"color: var(--el-color-primary)"},[s("文档地址")])])},{label:"预览地址",cellRenderer:()=>e("a",{href:"https://yiming_chang.gitee.io/vue-pure-admin",target:"_blank"},[e("span",{style:"color: var(--el-color-primary)"},[s("预览地址")])])},{label:"Github",cellRenderer:()=>e("a",{href:"https://github.com/pure-admin/vue-pure-admin",target:"_blank"},[e("span",{style:"color: var(--el-color-primary)"},[s("Github")])])},{label:"QQ交流群",cellRenderer:()=>e("a",{href:"https://yiming_chang.gitee.io/pure-admin-doc/pages/support/#qq-%E4%BA%A4%E6%B5%81%E7%BE%A4",target:"_blank"},[e("span",{style:"color: var(--el-color-primary)"},[s("点击加群")])])}]}}export{p as useColumns}; diff --git a/dist/static/js/columns-bbf3abe3.js b/dist/static/js/columns-bbf3abe3.js new file mode 100644 index 000000000..059b36ad1 --- /dev/null +++ b/dist/static/js/columns-bbf3abe3.js @@ -0,0 +1,10 @@ +import{t as m}from"./data-4845d266.js";import{r as e,a7 as r,aO as v,a as b,aq as u,J as C}from"./index-0dd8d5e4.js";function S(){const o=e([]),t=e(!0),n=e("nohide"),f=e("default"),h=e(!1),s=e("right"),c=[{label:"日期",prop:"date",hide:()=>n.value==="hideDate"},{label:"姓名",prop:"name",hide:()=>n.value==="hideName"},{label:"地址",prop:"address",hide:()=>n.value==="hideAddress"}],l=r({pageSize:10,currentPage:1,pageSizes:[10,15,20],total:0,align:"right",background:!0,small:!1}),i=r({text:"正在加载第一页...",viewBox:"-10, -10, 50, 50",spinner:` + + `});function d(a){l.small=a}function g(a){}function p(a){i.text=`正在加载第${a}页...`,t.value=!0,u(600).then(()=>{t.value=!1})}return v(()=>{l.align=s.value}),b(()=>{u(600).then(()=>{const a=[];Array.from({length:6}).forEach(()=>{a.push(C(m,!0))}),o.value=a.flat(1/0),l.total=o.value.length,t.value=!1})}),{loading:t,columns:c,dataList:o,hideVal:n,tableSize:f,pagination:l,loadingConfig:i,paginationAlign:s,paginationSmall:h,onChange:d,onSizeChange:g,onCurrentChange:p}}export{S as useColumns}; diff --git a/dist/static/js/columns-c20796e3.js b/dist/static/js/columns-c20796e3.js new file mode 100644 index 000000000..08622576c --- /dev/null +++ b/dist/static/js/columns-c20796e3.js @@ -0,0 +1 @@ +import{b as r}from"./data-4845d266.js";import{r as s,J as l,a as p,aq as n,o as i}from"./index-0dd8d5e4.js";function u(a){const e=s(l(r,!0)),o=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return p(()=>{n().then(()=>{const{setWatermark:t}=i(a.value.getTableDoms().tableWrapper);t("编程即艺术",{font:"16px Microsoft YaHei",globalAlpha:.8,forever:!0,width:252,height:80})})}),{columns:o,dataList:e}}export{u as useColumns}; diff --git a/dist/static/js/columns-c7818246.js b/dist/static/js/columns-c7818246.js deleted file mode 100644 index f4e18d7f2..000000000 --- a/dist/static/js/columns-c7818246.js +++ /dev/null @@ -1 +0,0 @@ -import{m as a}from"./message-9ae1daa3.js";import{t as u}from"./data-5ec60fc2.js";import"./index-c61a73ff.js";function i(){const t=Vue.ref(""),o=Vue.computed(()=>u.filter(e=>!t.value||e.name.toLowerCase().includes(t.value.toLowerCase()))),r=(e,l)=>{a(`您编辑了第 ${e} 行,数据为:${JSON.stringify(l)}`,{type:"success"})},n=(e,l)=>{a(`您删除了第 ${e} 行,数据为:${JSON.stringify(l)}`)};return{columns:[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"},{align:"right",headerRenderer:()=>Vue.createVNode(Vue.resolveComponent("el-input"),{modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,size:"small",clearable:!0,placeholder:"Type to search"},null),cellRenderer:({index:e,row:l})=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(Vue.resolveComponent("el-button"),{size:"small",onClick:()=>r(e+1,l)},{default:()=>[Vue.createTextVNode("Edit")]}),Vue.createVNode(Vue.resolveComponent("el-button"),{size:"small",type:"danger",onClick:()=>n(e+1,l)},{default:()=>[Vue.createTextVNode("Delete")]})])}],filterTableData:o}}export{i as useColumns}; diff --git a/dist/static/js/columns-d33385ba.js b/dist/static/js/columns-d33385ba.js deleted file mode 100644 index cefad358e..000000000 --- a/dist/static/js/columns-d33385ba.js +++ /dev/null @@ -1 +0,0 @@ -import{m as s}from"./message-9ae1daa3.js";import{b as r}from"./data-8e10e21a.js";import"./index-c61a73ff.js";function m(a){const t=Vue.ref(""),o=[{label:"ID",prop:"id",width:80},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],n=Vue.reactive({pageSize:5,currentPage:1,layout:"prev, pager, next",total:r.length,background:!0,small:!0});function l({row:{name:e}}){return{cursor:"pointer",background:e===t.value?"#f5f7fa":""}}function u(e){t.value=e.name,a.value.blur(),s(`当前选中行的数据为:${JSON.stringify(e)}`,{type:"success"})}return{columns:o,pagination:n,selectValue:t,tableDataEdit:r,rowStyle:l,onRowClick:u}}export{m as useColumns}; diff --git a/dist/static/js/columns-d84895c5.js b/dist/static/js/columns-d84895c5.js deleted file mode 100644 index 296cc0102..000000000 --- a/dist/static/js/columns-d84895c5.js +++ /dev/null @@ -1 +0,0 @@ -import{T as l}from"./index-771e958b.js";import{d as t}from"./office-building-cc7a1721.js";import{I as n}from"./iphone-89710f1a.js";import{U as u}from"./user-3-fill-99d174b6.js";const r={width:1024,height:1024,body:''},a={width:1024,height:1024,body:''},c={width:1024,height:1024,body:''};function v(){const o=[{type:"",label:"善良"},{type:"success",label:"好学"},{type:"info",label:"幽默"},{type:"danger",label:"旅游"},{type:"warning",label:"追剧"}];return{columnsA:[{labelRenderer:()=>Vue.createVNode("div",{class:"flex items-center"},[Vue.createVNode(Vue.resolveComponent("el-icon"),null,{default:()=>[Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:u},null)]}),Vue.createTextVNode("用户名")]),value:"乐于分享的程序员小铭"},{labelRenderer:()=>Vue.createVNode("div",{class:"flex items-center"},[Vue.createVNode(Vue.resolveComponent("el-icon"),null,{default:()=>[Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:n},null)]}),Vue.createTextVNode("手机号")]),value:"123456789"},{labelRenderer:()=>Vue.createVNode("div",{class:"flex items-center"},[Vue.createVNode(Vue.resolveComponent("el-icon"),null,{default:()=>[Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:a},null)]}),Vue.createTextVNode("居住地")]),value:"中国"}],columnsB:[{labelRenderer:()=>Vue.createVNode("div",{class:"flex items-center"},[Vue.createVNode(Vue.resolveComponent("el-icon"),null,{default:()=>[Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:r},null)]}),Vue.createTextVNode("标签")]),cellRenderer:()=>o.map(e=>Vue.createVNode(Vue.resolveComponent("el-tag"),{class:"mr-[10px]",type:e.type,size:"small",effect:"dark"},{default:()=>[e.label]}))},{labelRenderer:()=>Vue.createVNode("div",{class:"flex items-center"},[Vue.createVNode(Vue.resolveComponent("el-icon"),null,{default:()=>[Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:t},null)]}),Vue.createTextVNode("联系地址")]),value:"中华人民共和国"}],columnsC:[{labelRenderer:()=>Vue.createVNode("div",{class:"flex items-center"},[Vue.createVNode(Vue.resolveComponent("el-icon"),null,{default:()=>[Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:c},null)]}),Vue.createTextVNode("个性签名")]),cellRenderer:()=>Vue.createVNode(l,{className:"github",values:["办法总比困难多"],cursor:!1,speed:100},null)}]}}export{v as useColumns}; diff --git a/dist/static/js/columns-db1f92e9.js b/dist/static/js/columns-db1f92e9.js deleted file mode 100644 index 80d1df10c..000000000 --- a/dist/static/js/columns-db1f92e9.js +++ /dev/null @@ -1,188 +0,0 @@ -import{a as N}from"./data-8e10e21a.js";import{J as F}from"./index-c61a73ff.js";import{m as W}from"./message-9ae1daa3.js";/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function S(e,_,i,o){function u(v){return v instanceof i?v:new i(function(n){n(v)})}return new(i||(i=Promise))(function(v,n){function c(s){try{p(o.next(s))}catch(h){n(h)}}function r(s){try{p(o.throw(s))}catch(h){n(h)}}function p(s){s.done?v(s.value):u(s.value).then(c,r)}p((o=o.apply(e,_||[])).next())})}function $(e,_,i){let o=document.createElement(e);return o.setAttribute("class",_),i&&(o.innerText=i),o}const B=function(e){let _=Array.isArray(e)?[]:{};if(e&&typeof e=="object")for(let i in e)e.hasOwnProperty(i)&&(e[i]&&typeof e[i]=="object"?_[i]=B(e[i]):_[i]=e[i]);return _};var f=Vue.defineComponent({name:"MouseMenu",props:{appendToBody:{type:Boolean,default:!0},menuWidth:{type:Number,default:200},menuList:{type:Array,required:!0},menuHiddenFn:{type:Function},hasIcon:{type:Boolean,default:!1},iconType:{type:String,default:"font-icon"},menuWrapperCss:Object,menuItemCss:Object,el:{type:Object,required:!0},params:{type:[String,Number,Array,Object]},useLongPressInMobile:Boolean,longPressDuration:Number,injectCloseListener:{type:Boolean,default:!0},customClass:String,disabled:{type:Function}},setup(e){const _=Vue.ref(0),i=Vue.ref(0),o=Vue.ref(!1),u=Vue.ref(0),v=Vue.ref(0),n=Vue.ref(!1),c=Vue.ref(null),r=Vue.ref([]),p=Vue.computed(()=>e.menuList.some(a=>a.children&&a.children.length>0)),s=Vue.ref(10),h=Vue.ref();Vue.watch(n,a=>S(this,void 0,void 0,function*(){var l,d;if(a){yield Vue.nextTick();let m=h.value;e.menuWrapperCss&&Object.keys(e.menuWrapperCss).map(b=>{m.style.setProperty(`--menu-${b}`,e.menuWrapperCss&&e.menuWrapperCss[b])}),e.menuItemCss&&Object.keys(e.menuItemCss).map(b=>{m.style.setProperty(`--menu-item-${b}`,e.menuItemCss&&e.menuItemCss[b])});let t=(d=(l=e.menuItemCss)===null||l===void 0?void 0:l.arrowSize)===null||d===void 0?void 0:d.match(/\d+/);t?s.value=~~t[0]||10:s.value=10,m.style.setProperty("--menu-item-arrowRealSize",s.value/2+"px")}}));const x=(a,l)=>{a.disabled||(a.fn&&typeof a.fn=="function"&&a.fn(e.params,c.value,e.el,l),n.value=!1)},M=(a,l)=>{a.disabled||(a.fn&&typeof a.fn=="function"&&!a.disabled&&(a.fn(e.params,c.value,e.el,l),o.value=!1),n.value=!1)},z=(a,l)=>{if(l.children&&!l.disabled){o.value=!0;const d=a.currentTarget;if(!d)return;const{offsetWidth:m}=d,t=d.querySelector(".__menu__sub__wrapper");if(!t)return;const{offsetWidth:b,offsetHeight:V}=t,{innerWidth:T,innerHeight:C}=window,{top:k,left:y}=d.getBoundingClientRect();y+m+b>T-5?_.value=y-b+5:_.value=y+m,k+V>C-5?i.value=C-V:i.value=k+5}},g=(a,l,d,m)=>a.map(t=>(t.children&&(t.children=g(t.children,l,d,m)),t.label&&typeof t.label=="function"&&(t.label=t.label(m,l,d)),t.tips&&typeof t.tips=="function"&&(t.tips=t.tips(m,l,d)),t.icon&&typeof t.icon=="function"&&(t.icon=t.icon(m,l,d)),t.hidden&&typeof t.hidden=="function"&&(t.hidden=t.hidden(m,l,d)),t.disabled&&typeof t.disabled=="function"&&(t.disabled=t.disabled(m,l,d)),t)),E=(a=0,l=0)=>S(this,void 0,void 0,function*(){if(c.value=document.elementFromPoint(a-1,l-1),e.menuHiddenFn?n.value=!e.menuHiddenFn(e.params,c.value,e.el):n.value=!0,!n.value)return;r.value=B(e.menuList),r.value=g(r.value,c.value,e.el,e.params),yield Vue.nextTick();const{innerWidth:d,innerHeight:m}=window,b=h.value.offsetHeight,V=e.menuWidth||200;v.value=a+V+1>d?d-V-5:a+1,u.value=l+b+1>m?m-b-5:l+1}),L=()=>{n.value=!1},w=a=>{h.value&&!h.value.contains(a.currentTarget)&&(n.value=!1,document.oncontextmenu=null)};return Vue.watch(()=>e.injectCloseListener,a=>{a?document.addEventListener("mousedown",w):document.removeEventListener("mousedown",w)},{immediate:!0}),Vue.onUnmounted(()=>{document.removeEventListener("mousedown",w)}),{subLeft:_,subTop:i,hoverFlag:o,menuTop:u,menuLeft:v,showMenu:n,clickDomEl:c,calcMenuList:r,arrowSize:s,hasSubMenu:p,MenuWrapper:h,handleMenuItemClick:x,handleSubMenuItemClick:M,handleMenuMouseEnter:z,show:E,close:L}}});Vue.pushScopeId("data-v-3d21bc0a");const H=["onMousedown","onMouseenter"],O={key:0,class:"__menu__item-icon"},D=["innerHTML"],I={class:"__menu__item-label"},A={class:"__menu__item-tips"},R={class:"__menu__item-arrow-after"},j=["onMousedown"],q={class:"__menu__sub__item-label"},P={class:"__menu__sub__item-tips"};Vue.popScopeId();function J(e,_,i,o,u,v){return Vue.openBlock(),Vue.createBlock(Vue.Teleport,{to:"body",disabled:!e.appendToBody},[e.showMenu?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,ref:"MenuWrapper",class:Vue.normalizeClass(["__menu__wrapper",e.customClass]),style:Vue.normalizeStyle({width:`${e.menuWidth}px`,top:`${e.menuTop}px`,left:`${e.menuLeft}px`})},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.calcMenuList,(n,c)=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[!n.hidden&&!n.line?(Vue.openBlock(),Vue.createElementBlock("div",{key:c,class:Vue.normalizeClass(["__menu__item",n.disabled&&"disabled",n.customClass]),onMousedown:Vue.withModifiers(r=>e.handleMenuItemClick(n,r),["stop"]),onMouseenter:r=>e.handleMenuMouseEnter(r,n)},[e.hasIcon?(Vue.openBlock(),Vue.createElementBlock("div",O,[e.iconType==="font-icon"?Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("i",{key:0,class:Vue.normalizeClass(n.icon)},null,2)),[[Vue.vShow,n.icon]]):e.iconType==="svg-icon"?Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",{key:1,class:"__menu__item-icon-svg",innerHTML:n.icon},null,8,D)),[[Vue.vShow,n.icon]]):e.iconType==="vnode-icon"?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(n.icon),{key:2})):Vue.createCommentVNode("v-if",!0)])):Vue.createCommentVNode("v-if",!0),Vue.createElementVNode("span",I,Vue.toDisplayString(n.label),1),Vue.createElementVNode("span",A,Vue.toDisplayString(n.tips||""),1),e.hasSubMenu?(Vue.openBlock(),Vue.createElementBlock("span",{key:1,class:Vue.normalizeClass(["__menu__item-arrow",{show:e.hasSubMenu&&n.children}]),style:Vue.normalizeStyle({width:e.arrowSize+"px",height:e.arrowSize+"px"})},[Vue.withDirectives(Vue.createElementVNode("span",R,null,512),[[Vue.vShow,e.hasSubMenu&&n.children]])],6)):Vue.createCommentVNode("v-if",!0),n.children&&n.children.length>0?Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",{key:2,class:"__menu__sub__wrapper",style:Vue.normalizeStyle({top:`${e.subTop}px`,left:`${e.subLeft}px`})},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.children,(r,p)=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[!r.hidden&&!r.line?(Vue.openBlock(),Vue.createElementBlock("div",{key:p,class:Vue.normalizeClass(["__menu__sub__item",r.disabled&&"disabled",r.customClass]),onMousedown:Vue.withModifiers(s=>e.handleSubMenuItemClick(r,s),["stop"])},[Vue.createElementVNode("span",q,Vue.toDisplayString(r.label),1),Vue.createElementVNode("span",P,Vue.toDisplayString(r.tips||""),1)],42,j)):Vue.createCommentVNode("v-if",!0),r.line?(Vue.openBlock(),Vue.createElementBlock("div",{key:p,class:"__menu__line"})):Vue.createCommentVNode("v-if",!0)],64))),256))],4)),[[Vue.vShow,e.hoverFlag]]):Vue.createCommentVNode("v-if",!0)],42,H)):Vue.createCommentVNode("v-if",!0),!n.hidden&&n.line?(Vue.openBlock(),Vue.createElementBlock("div",{key:c,class:"__menu__line"})):Vue.createCommentVNode("v-if",!0)],64))),256))],6)):Vue.createCommentVNode("v-if",!0)],8,["disabled"])}function U(e,_){_===void 0&&(_={});var i=_.insertAt;if(!(!e||typeof document>"u")){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.type="text/css",i==="top"&&o.firstChild?o.insertBefore(u,o.firstChild):o.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e))}}var G=`.__menu__mask[data-v-3d21bc0a] { - position: fixed; - top: 0; - left: 0; - bottom: 0; - right: 0; - z-index: 999; -} -.__menu__wrapper[data-v-3d21bc0a] { - --menu-background: #c8f2f0; - --menu-boxShadow: 0 1px 5px #888; - --menu-padding: 5px 0; - --menu-borderRadius: 0; - --menu-item-height: 30px; - --menu-item-padding: 0 10px; - --menu-item-iconSize: 20px; - --menu-item-iconFontSize: 14px; - --menu-item-iconColor: #484852; - --menu-item-labelColor: #484852; - --menu-item-labelFontSize: 14px; - --menu-item-tipsColor: #889; - --menu-item-tipsFontSize: 12px; - --menu-item-arrowColor: #484852; - --menu-item-disabledColor: #bcc; - --menu-item-hoverBackground: rgba(255, 255, 255, 0.8); - --menu-item-hoverIconColor: inherit; - --menu-item-hoverLabelColor: inherit; - --menu-item-hoverTipsColor: inherit; - --menu-item-hoverArrowColor: inherit; - --menu-lineColor: #ccc; - --menu-lineMargin: 5px 0; -} -.__menu__wrapper[data-v-3d21bc0a] { - position: fixed; - width: 200px; - background: var(--menu-background); - box-shadow: var(--menu-boxShadow); - padding: var(--menu-padding); - border-radius: var(--menu-borderRadius); - z-index: 99999; -} -.__menu__line[data-v-3d21bc0a], -.__menu__sub__line[data-v-3d21bc0a] { - border-top: 1px solid var(--menu-lineColor); - margin: var(--menu-lineMargin); -} -.__menu__item[data-v-3d21bc0a], -.__menu__sub__item[data-v-3d21bc0a] { - display: flex; - height: var(--menu-item-height); - align-items: center; - cursor: pointer; - padding: var(--menu-item-padding); -} -.__menu__item .__menu__item-icon[data-v-3d21bc0a], -.__menu__sub__item .__menu__item-icon[data-v-3d21bc0a] { - display: flex; - align-items: center; - justify-content: center; - color: var(--menu-item-iconColor); - width: var(--menu-item-iconSize); - height: var(--menu-item-iconSize); -} -.__menu__item .__menu__item-icon i[data-v-3d21bc0a], -.__menu__sub__item .__menu__item-icon i[data-v-3d21bc0a] { - font-size: var(--menu-item-iconFontSize); -} -.__menu__item .__menu__item-icon .__menu__item-icon-svg[data-v-3d21bc0a], -.__menu__sub__item .__menu__item-icon .__menu__item-icon-svg[data-v-3d21bc0a] { - display: flex; - align-items: center; - justify-content: center; - width: 100%; - height: 100%; -} -.__menu__item .__menu__item-label[data-v-3d21bc0a], -.__menu__item .__menu__sub__item-label[data-v-3d21bc0a], -.__menu__sub__item .__menu__item-label[data-v-3d21bc0a], -.__menu__sub__item .__menu__sub__item-label[data-v-3d21bc0a] { - width: 100%; - max-height: 100%; - text-overflow: ellipsis; - white-space: nowrap; - flex: 1; - font-size: var(--menu-item-labelFontSize); - color: var(--menu-item-labelColor); - margin-right: 5px; - overflow: hidden; -} -.__menu__item .__menu__item-tips[data-v-3d21bc0a], -.__menu__item .__menu__sub__item-tips[data-v-3d21bc0a], -.__menu__sub__item .__menu__item-tips[data-v-3d21bc0a], -.__menu__sub__item .__menu__sub__item-tips[data-v-3d21bc0a] { - font-size: var(--menu-item-tipsFontSize); - color: var(--menu-item-tipsColor); -} -.__menu__item .__menu__item-arrow[data-v-3d21bc0a], -.__menu__sub__item .__menu__item-arrow[data-v-3d21bc0a] { - width: 10px; - height: 10px; - margin-left: 5px; - position: relative; -} -.__menu__item.disabled[data-v-3d21bc0a], -.__menu__sub__item.disabled[data-v-3d21bc0a] { - cursor: not-allowed; -} -.__menu__item.disabled .__menu__item-icon[data-v-3d21bc0a], -.__menu__item.disabled .__menu__item-label[data-v-3d21bc0a], -.__menu__item.disabled .__menu__sub__item-label[data-v-3d21bc0a], -.__menu__item.disabled .__menu__item-tips[data-v-3d21bc0a], -.__menu__item.disabled .__menu__sub__item-tips[data-v-3d21bc0a], -.__menu__sub__item.disabled .__menu__item-icon[data-v-3d21bc0a], -.__menu__sub__item.disabled .__menu__item-label[data-v-3d21bc0a], -.__menu__sub__item.disabled .__menu__sub__item-label[data-v-3d21bc0a], -.__menu__sub__item.disabled .__menu__item-tips[data-v-3d21bc0a], -.__menu__sub__item.disabled .__menu__sub__item-tips[data-v-3d21bc0a] { - color: var(--menu-item-disabledColor); -} -.__menu__item.disabled .__menu__item-arrow .__menu__item-arrow-after[data-v-3d21bc0a], -.__menu__sub__item.disabled .__menu__item-arrow .__menu__item-arrow-after[data-v-3d21bc0a] { - border-left: var(--menu-item-arrowRealSize) solid var(--menu-item-disabledColor); -} -.__menu__item[data-v-3d21bc0a]:not(.disabled):hover { - background: var(--menu-item-hoverBackground); -} -.__menu__item:not(.disabled):hover .__menu__item-icon[data-v-3d21bc0a] { - color: var(--menu-item-hoverIconColor); -} -.__menu__item:not(.disabled):hover .__menu__item-label[data-v-3d21bc0a] { - color: var(--menu-item-hoverLabelColor); -} -.__menu__item:not(.disabled):hover .__menu__item-tips[data-v-3d21bc0a] { - color: var(--menu-item-hoverTipsColor); -} -.__menu__item:not(.disabled):hover .__menu__item-arrow[data-v-3d21bc0a] { - color: var(--menu-item-hoverArrowColor); -} -.__menu__sub__item[data-v-3d21bc0a]:not(.disabled):hover { - background: var(--menu-item-hoverBackground); -} -.__menu__sub__item:not(.disabled):hover .__menu__sub__item-label[data-v-3d21bc0a] { - color: var(--menu-item-hoverLabelColor); -} -.__menu__sub__item:not(.disabled):hover .__menu__sub__item-tips[data-v-3d21bc0a] { - color: var(--menu-item-hoverTipsColor); -} -.__menu__item-icon[data-v-3d21bc0a] { - width: 20px; - height: 20px; - text-align: center; - line-height: 20px; - margin-right: 4px; -} -.__menu__item-arrow.show .__menu__item-arrow-after[data-v-3d21bc0a] { - position: absolute; - width: 0; - height: 0; - left: 8px; - border-left: var(--menu-item-arrowRealSize) solid var(--menu-item-arrowColor); - border-top: var(--menu-item-arrowRealSize) solid transparent; - border-bottom: var(--menu-item-arrowRealSize) solid transparent; -} -.__menu__sub__wrapper[data-v-3d21bc0a] { - position: fixed; - visibility: hidden; - width: 200px; - background: var(--menu-background); - box-shadow: var(--menu-boxShadow); - padding: var(--menu-padding); - border-radius: var(--menu-borderRadius); -} -.__menu__item:hover .__menu__sub__wrapper[data-v-3d21bc0a] { - visibility: visible; -}`;U(G);f.render=J;f.__scopeId="data-v-3d21bc0a";f.__file="packages/mouse-menu/mouse-menu.vue";f.install=e=>{e.component(f.name,f)};function K(e){var _;const i="__mouse__menu__container";let o;document.querySelector(`.${i}`)?o=document.querySelector(`.${i}`):o=$("div",i);const u=Vue.h(f,e);return Vue.render(u,o),document.body.appendChild(o),(_=u.component)===null||_===void 0?void 0:_.proxy}function Z(){const e=Vue.ref(F(N,!0)),_=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}],i={menuList:[{label:({id:u})=>`ID为:${u}`,disabled:!0},{label:"编辑",tips:"Edit",fn:u=>W(`您编辑了第 ${e.value.findIndex(v=>v.id===u.id)+1} 行,数据为:${JSON.stringify(u)}`,{type:"success"})}]};function o(u,v,n){n.preventDefault();const{x:c,y:r}=n;K({el:n.currentTarget,params:u,menuWrapperCss:{background:"var(--el-bg-color)"},menuItemCss:{labelColor:"var(--el-text-color)",hoverLabelColor:"var(--el-color-primary)",hoverTipsColor:"var(--el-color-primary)"},...i}).show(c,r)}return{columns:_,dataList:e,showMouseMenu:o}}export{Z as useColumns}; diff --git a/dist/static/js/columns-df5d4455.js b/dist/static/js/columns-df5d4455.js new file mode 100644 index 000000000..471f0b368 --- /dev/null +++ b/dist/static/js/columns-df5d4455.js @@ -0,0 +1 @@ +import{r as n,J as y,x as i,g as t,m as r,ac as c,b9 as D,c as f,aq as I}from"./index-0dd8d5e4.js";import{b as M}from"./data-4845d266.js";import{m as O}from"./message-ac5811da.js";import{d as S}from"./edit-pen-37b5ced2.js";import{d as V}from"./check-3815600c.js";function E(){const l=n({}),u=n({}),s=n(-1),v=n(y(M,!0)),p=i(()=>e=>{var a;return(a=l.value[e])==null?void 0:a.value}),o=i(()=>e=>{var a;return(a=u.value[e])==null?void 0:a.editing}),m=i(()=>(e,a=!1)=>["cursor-pointer","ml-2","transition","delay-100",a?["hover:scale-110","hover:text-red-500"]:o.value(e)&&["scale-150","text-red-500"]]),b=[{label:"ID(可编辑)",prop:"id",cellRenderer:({row:e,index:a})=>t("div",{class:"flex-bc w-full h-[32px]",onMouseenter:()=>s.value=a,onMouseleave:()=>d(a)},[r(t("p",null,[e.id]),[[c,!o.value(a)]]),t(D,{"enter-active-class":"animate__animated animate__fadeInUp animate__faster"},{default:()=>[r(t(f("el-input"),{modelValue:p.value(a),onInput:_=>h(_,a)},null),[[c,o.value(a)]])]}),r(t(f("iconify-icon-offline"),{icon:V,class:m.value(a),onClick:()=>C(a)},null),[[c,o.value(a)]]),r(t(f("iconify-icon-offline"),{icon:S,class:m.value(a,!0),onClick:()=>g(e,a)},null),[[c,s.value===a&&!o.value(a)]])])},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];function g({id:e},a){l.value[a]=Object.assign({},l.value[a],{value:e}),u.value[a]=Object.assign({},u.value[a],{editing:!0})}function d(e){var a;(a=l.value[e])!=null&&a.value?s.value=e:s.value=-1}function h(e,a){l.value[a].value=e}function C(e){v.value[e].id=l.value[e].value,O(`您编辑了第 ${e+1} 行,编辑后数据为:${JSON.stringify(v.value[e])}`,{type:"success"}),u.value[e]=Object.assign({},u.value[e],{editing:!1}),I().then(()=>l.value[e].value=null)}return{columns:b,dataList:v}}export{E as useColumns}; diff --git a/dist/static/js/columns-e5493833.js b/dist/static/js/columns-e5493833.js deleted file mode 100644 index 55e48879a..000000000 --- a/dist/static/js/columns-e5493833.js +++ /dev/null @@ -1 +0,0 @@ -import{u as t,w as u}from"./xlsx-e927f539.js";import{a as m}from"./data-8e10e21a.js";import{J as i}from"./index-c61a73ff.js";import{m as f}from"./message-9ae1daa3.js";function w(){const r=Vue.ref(i(m,!0)),e=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}];return{columns:e,dataList:r,exportExcel:()=>{const s=r.value.map(o=>{const n=[];return e.forEach(c=>{n.push(o[c.prop])}),n}),a=[];e.forEach(o=>{a.push(o.label)}),s.unshift(a);const l=t.aoa_to_sheet(s),p=t.book_new();t.book_append_sheet(p,l,"数据报表"),u(p,"pure-admin-table.xlsx"),f("导出成功",{type:"success"})}}}export{w as useColumns}; diff --git a/dist/static/js/columns-f5c5c5b8.js b/dist/static/js/columns-f5c5c5b8.js new file mode 100644 index 000000000..3ee81a8fa --- /dev/null +++ b/dist/static/js/columns-f5c5c5b8.js @@ -0,0 +1,188 @@ +import{a as Y}from"./data-4845d266.js";import{d as G,r as f,x as K,y as I,a9 as X,p as Z,q as ee,f as m,e as A,k as b,F as k,l as N,ab as x,aY as R,m as z,ac as L,Q as ne,ae as g,i as M,C as T,A as $,aQ as te,n as E,L as ae,bs as ie,J as _e}from"./index-0dd8d5e4.js";import{m as oe}from"./message-ac5811da.js";/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */function j(e,u,a,_){function o(p){return p instanceof a?p:new a(function(n){n(p)})}return new(a||(a=Promise))(function(p,n){function v(c){try{w(_.next(c))}catch(y){n(y)}}function d(c){try{w(_.throw(c))}catch(y){n(y)}}function w(c){c.done?p(c.value):o(c.value).then(v,d)}w((_=_.apply(e,u||[])).next())})}function ue(e,u,a){let _=document.createElement(e);return _.setAttribute("class",u),a&&(_.innerText=a),_}const q=function(e){let u=Array.isArray(e)?[]:{};if(e&&typeof e=="object")for(let a in e)e.hasOwnProperty(a)&&(e[a]&&typeof e[a]=="object"?u[a]=q(e[a]):u[a]=e[a]);return u};var C=G({name:"MouseMenu",props:{appendToBody:{type:Boolean,default:!0},menuWidth:{type:Number,default:200},menuList:{type:Array,required:!0},menuHiddenFn:{type:Function},hasIcon:{type:Boolean,default:!1},iconType:{type:String,default:"font-icon"},menuWrapperCss:Object,menuItemCss:Object,el:{type:Object,required:!0},params:{type:[String,Number,Array,Object]},useLongPressInMobile:Boolean,longPressDuration:Number,injectCloseListener:{type:Boolean,default:!0},customClass:String,disabled:{type:Function}},setup(e){const u=f(0),a=f(0),_=f(!1),o=f(0),p=f(0),n=f(!1),v=f(null),d=f([]),w=K(()=>e.menuList.some(i=>i.children&&i.children.length>0)),c=f(10),y=f();I(n,i=>j(this,void 0,void 0,function*(){var r,s;if(i){yield E();let l=y.value;e.menuWrapperCss&&Object.keys(e.menuWrapperCss).map(h=>{l.style.setProperty(`--menu-${h}`,e.menuWrapperCss&&e.menuWrapperCss[h])}),e.menuItemCss&&Object.keys(e.menuItemCss).map(h=>{l.style.setProperty(`--menu-item-${h}`,e.menuItemCss&&e.menuItemCss[h])});let t=(s=(r=e.menuItemCss)===null||r===void 0?void 0:r.arrowSize)===null||s===void 0?void 0:s.match(/\d+/);t?c.value=~~t[0]||10:c.value=10,l.style.setProperty("--menu-item-arrowRealSize",c.value/2+"px")}}));const D=(i,r)=>{i.disabled||(i.fn&&typeof i.fn=="function"&&i.fn(e.params,v.value,e.el,r),n.value=!1)},P=(i,r)=>{i.disabled||(i.fn&&typeof i.fn=="function"&&!i.disabled&&(i.fn(e.params,v.value,e.el,r),_.value=!1),n.value=!1)},J=(i,r)=>{if(r.children&&!r.disabled){_.value=!0;const s=i.currentTarget;if(!s)return;const{offsetWidth:l}=s,t=s.querySelector(".__menu__sub__wrapper");if(!t)return;const{offsetWidth:h,offsetHeight:S}=t,{innerWidth:U,innerHeight:H}=window,{top:O,left:F}=s.getBoundingClientRect();F+l+h>U-5?u.value=F-h+5:u.value=F+l,O+S>H-5?a.value=H-S:a.value=O+5}},B=(i,r,s,l)=>i.map(t=>(t.children&&(t.children=B(t.children,r,s,l)),t.label&&typeof t.label=="function"&&(t.label=t.label(l,r,s)),t.tips&&typeof t.tips=="function"&&(t.tips=t.tips(l,r,s)),t.icon&&typeof t.icon=="function"&&(t.icon=t.icon(l,r,s)),t.hidden&&typeof t.hidden=="function"&&(t.hidden=t.hidden(l,r,s)),t.disabled&&typeof t.disabled=="function"&&(t.disabled=t.disabled(l,r,s)),t)),Q=(i=0,r=0)=>j(this,void 0,void 0,function*(){if(v.value=document.elementFromPoint(i-1,r-1),e.menuHiddenFn?n.value=!e.menuHiddenFn(e.params,v.value,e.el):n.value=!0,!n.value)return;d.value=q(e.menuList),d.value=B(d.value,v.value,e.el,e.params),yield E();const{innerWidth:s,innerHeight:l}=window,h=y.value.offsetHeight,S=e.menuWidth||200;p.value=i+S+1>s?s-S-5:i+1,o.value=r+h+1>l?l-h-5:r+1}),V=()=>{n.value=!1},W=i=>{y.value&&!y.value.contains(i.currentTarget)&&(n.value=!1,document.oncontextmenu=null)};return I(()=>e.injectCloseListener,i=>{i?document.addEventListener("mousedown",W):document.removeEventListener("mousedown",W)},{immediate:!0}),X(()=>{document.removeEventListener("mousedown",W)}),{subLeft:u,subTop:a,hoverFlag:_,menuTop:o,menuLeft:p,showMenu:n,clickDomEl:v,calcMenuList:d,arrowSize:c,hasSubMenu:w,MenuWrapper:y,handleMenuItemClick:D,handleSubMenuItemClick:P,handleMenuMouseEnter:J,show:Q,close:V}}});Z("data-v-3d21bc0a");const de=["onMousedown","onMouseenter"],re={key:0,class:"__menu__item-icon"},se=["innerHTML"],le={class:"__menu__item-label"},me={class:"__menu__item-tips"},ce={class:"__menu__item-arrow-after"},be=["onMousedown"],ve={class:"__menu__sub__item-label"},pe={class:"__menu__sub__item-tips"};ee();function he(e,u,a,_,o,p){return m(),A(te,{to:"body",disabled:!e.appendToBody},[e.showMenu?(m(),b("div",{key:0,ref:"MenuWrapper",class:x(["__menu__wrapper",e.customClass]),style:$({width:`${e.menuWidth}px`,top:`${e.menuTop}px`,left:`${e.menuLeft}px`})},[(m(!0),b(k,null,N(e.calcMenuList,(n,v)=>(m(),b(k,null,[!n.hidden&&!n.line?(m(),b("div",{key:v,class:x(["__menu__item",n.disabled&&"disabled",n.customClass]),onMousedown:R(d=>e.handleMenuItemClick(n,d),["stop"]),onMouseenter:d=>e.handleMenuMouseEnter(d,n)},[e.hasIcon?(m(),b("div",re,[e.iconType==="font-icon"?z((m(),b("i",{key:0,class:x(n.icon)},null,2)),[[L,n.icon]]):e.iconType==="svg-icon"?z((m(),b("div",{key:1,class:"__menu__item-icon-svg",innerHTML:n.icon},null,8,se)),[[L,n.icon]]):e.iconType==="vnode-icon"?(m(),A(ne(n.icon),{key:2})):g("v-if",!0)])):g("v-if",!0),M("span",le,T(n.label),1),M("span",me,T(n.tips||""),1),e.hasSubMenu?(m(),b("span",{key:1,class:x(["__menu__item-arrow",{show:e.hasSubMenu&&n.children}]),style:$({width:e.arrowSize+"px",height:e.arrowSize+"px"})},[z(M("span",ce,null,512),[[L,e.hasSubMenu&&n.children]])],6)):g("v-if",!0),n.children&&n.children.length>0?z((m(),b("div",{key:2,class:"__menu__sub__wrapper",style:$({top:`${e.subTop}px`,left:`${e.subLeft}px`})},[(m(!0),b(k,null,N(n.children,(d,w)=>(m(),b(k,null,[!d.hidden&&!d.line?(m(),b("div",{key:w,class:x(["__menu__sub__item",d.disabled&&"disabled",d.customClass]),onMousedown:R(c=>e.handleSubMenuItemClick(d,c),["stop"])},[M("span",ve,T(d.label),1),M("span",pe,T(d.tips||""),1)],42,be)):g("v-if",!0),d.line?(m(),b("div",{key:w,class:"__menu__line"})):g("v-if",!0)],64))),256))],4)),[[L,e.hoverFlag]]):g("v-if",!0)],42,de)):g("v-if",!0),!n.hidden&&n.line?(m(),b("div",{key:v,class:"__menu__line"})):g("v-if",!0)],64))),256))],6)):g("v-if",!0)],8,["disabled"])}function fe(e,u){u===void 0&&(u={});var a=u.insertAt;if(!(!e||typeof document>"u")){var _=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",a==="top"&&_.firstChild?_.insertBefore(o,_.firstChild):_.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var we=`.__menu__mask[data-v-3d21bc0a] { + position: fixed; + top: 0; + left: 0; + bottom: 0; + right: 0; + z-index: 999; +} +.__menu__wrapper[data-v-3d21bc0a] { + --menu-background: #c8f2f0; + --menu-boxShadow: 0 1px 5px #888; + --menu-padding: 5px 0; + --menu-borderRadius: 0; + --menu-item-height: 30px; + --menu-item-padding: 0 10px; + --menu-item-iconSize: 20px; + --menu-item-iconFontSize: 14px; + --menu-item-iconColor: #484852; + --menu-item-labelColor: #484852; + --menu-item-labelFontSize: 14px; + --menu-item-tipsColor: #889; + --menu-item-tipsFontSize: 12px; + --menu-item-arrowColor: #484852; + --menu-item-disabledColor: #bcc; + --menu-item-hoverBackground: rgba(255, 255, 255, 0.8); + --menu-item-hoverIconColor: inherit; + --menu-item-hoverLabelColor: inherit; + --menu-item-hoverTipsColor: inherit; + --menu-item-hoverArrowColor: inherit; + --menu-lineColor: #ccc; + --menu-lineMargin: 5px 0; +} +.__menu__wrapper[data-v-3d21bc0a] { + position: fixed; + width: 200px; + background: var(--menu-background); + box-shadow: var(--menu-boxShadow); + padding: var(--menu-padding); + border-radius: var(--menu-borderRadius); + z-index: 99999; +} +.__menu__line[data-v-3d21bc0a], +.__menu__sub__line[data-v-3d21bc0a] { + border-top: 1px solid var(--menu-lineColor); + margin: var(--menu-lineMargin); +} +.__menu__item[data-v-3d21bc0a], +.__menu__sub__item[data-v-3d21bc0a] { + display: flex; + height: var(--menu-item-height); + align-items: center; + cursor: pointer; + padding: var(--menu-item-padding); +} +.__menu__item .__menu__item-icon[data-v-3d21bc0a], +.__menu__sub__item .__menu__item-icon[data-v-3d21bc0a] { + display: flex; + align-items: center; + justify-content: center; + color: var(--menu-item-iconColor); + width: var(--menu-item-iconSize); + height: var(--menu-item-iconSize); +} +.__menu__item .__menu__item-icon i[data-v-3d21bc0a], +.__menu__sub__item .__menu__item-icon i[data-v-3d21bc0a] { + font-size: var(--menu-item-iconFontSize); +} +.__menu__item .__menu__item-icon .__menu__item-icon-svg[data-v-3d21bc0a], +.__menu__sub__item .__menu__item-icon .__menu__item-icon-svg[data-v-3d21bc0a] { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; +} +.__menu__item .__menu__item-label[data-v-3d21bc0a], +.__menu__item .__menu__sub__item-label[data-v-3d21bc0a], +.__menu__sub__item .__menu__item-label[data-v-3d21bc0a], +.__menu__sub__item .__menu__sub__item-label[data-v-3d21bc0a] { + width: 100%; + max-height: 100%; + text-overflow: ellipsis; + white-space: nowrap; + flex: 1; + font-size: var(--menu-item-labelFontSize); + color: var(--menu-item-labelColor); + margin-right: 5px; + overflow: hidden; +} +.__menu__item .__menu__item-tips[data-v-3d21bc0a], +.__menu__item .__menu__sub__item-tips[data-v-3d21bc0a], +.__menu__sub__item .__menu__item-tips[data-v-3d21bc0a], +.__menu__sub__item .__menu__sub__item-tips[data-v-3d21bc0a] { + font-size: var(--menu-item-tipsFontSize); + color: var(--menu-item-tipsColor); +} +.__menu__item .__menu__item-arrow[data-v-3d21bc0a], +.__menu__sub__item .__menu__item-arrow[data-v-3d21bc0a] { + width: 10px; + height: 10px; + margin-left: 5px; + position: relative; +} +.__menu__item.disabled[data-v-3d21bc0a], +.__menu__sub__item.disabled[data-v-3d21bc0a] { + cursor: not-allowed; +} +.__menu__item.disabled .__menu__item-icon[data-v-3d21bc0a], +.__menu__item.disabled .__menu__item-label[data-v-3d21bc0a], +.__menu__item.disabled .__menu__sub__item-label[data-v-3d21bc0a], +.__menu__item.disabled .__menu__item-tips[data-v-3d21bc0a], +.__menu__item.disabled .__menu__sub__item-tips[data-v-3d21bc0a], +.__menu__sub__item.disabled .__menu__item-icon[data-v-3d21bc0a], +.__menu__sub__item.disabled .__menu__item-label[data-v-3d21bc0a], +.__menu__sub__item.disabled .__menu__sub__item-label[data-v-3d21bc0a], +.__menu__sub__item.disabled .__menu__item-tips[data-v-3d21bc0a], +.__menu__sub__item.disabled .__menu__sub__item-tips[data-v-3d21bc0a] { + color: var(--menu-item-disabledColor); +} +.__menu__item.disabled .__menu__item-arrow .__menu__item-arrow-after[data-v-3d21bc0a], +.__menu__sub__item.disabled .__menu__item-arrow .__menu__item-arrow-after[data-v-3d21bc0a] { + border-left: var(--menu-item-arrowRealSize) solid var(--menu-item-disabledColor); +} +.__menu__item[data-v-3d21bc0a]:not(.disabled):hover { + background: var(--menu-item-hoverBackground); +} +.__menu__item:not(.disabled):hover .__menu__item-icon[data-v-3d21bc0a] { + color: var(--menu-item-hoverIconColor); +} +.__menu__item:not(.disabled):hover .__menu__item-label[data-v-3d21bc0a] { + color: var(--menu-item-hoverLabelColor); +} +.__menu__item:not(.disabled):hover .__menu__item-tips[data-v-3d21bc0a] { + color: var(--menu-item-hoverTipsColor); +} +.__menu__item:not(.disabled):hover .__menu__item-arrow[data-v-3d21bc0a] { + color: var(--menu-item-hoverArrowColor); +} +.__menu__sub__item[data-v-3d21bc0a]:not(.disabled):hover { + background: var(--menu-item-hoverBackground); +} +.__menu__sub__item:not(.disabled):hover .__menu__sub__item-label[data-v-3d21bc0a] { + color: var(--menu-item-hoverLabelColor); +} +.__menu__sub__item:not(.disabled):hover .__menu__sub__item-tips[data-v-3d21bc0a] { + color: var(--menu-item-hoverTipsColor); +} +.__menu__item-icon[data-v-3d21bc0a] { + width: 20px; + height: 20px; + text-align: center; + line-height: 20px; + margin-right: 4px; +} +.__menu__item-arrow.show .__menu__item-arrow-after[data-v-3d21bc0a] { + position: absolute; + width: 0; + height: 0; + left: 8px; + border-left: var(--menu-item-arrowRealSize) solid var(--menu-item-arrowColor); + border-top: var(--menu-item-arrowRealSize) solid transparent; + border-bottom: var(--menu-item-arrowRealSize) solid transparent; +} +.__menu__sub__wrapper[data-v-3d21bc0a] { + position: fixed; + visibility: hidden; + width: 200px; + background: var(--menu-background); + box-shadow: var(--menu-boxShadow); + padding: var(--menu-padding); + border-radius: var(--menu-borderRadius); +} +.__menu__item:hover .__menu__sub__wrapper[data-v-3d21bc0a] { + visibility: visible; +}`;fe(we);C.render=he;C.__scopeId="data-v-3d21bc0a";C.__file="packages/mouse-menu/mouse-menu.vue";C.install=e=>{e.component(C.name,C)};function ye(e){var u;const a="__mouse__menu__container";let _;document.querySelector(`.${a}`)?_=document.querySelector(`.${a}`):_=ue("div",a);const o=ae(C,e);return ie(o,_),document.body.appendChild(_),(u=o.component)===null||u===void 0?void 0:u.proxy}function xe(){const e=f(_e(Y,!0)),u=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}],a={menuList:[{label:({id:o})=>`ID为:${o}`,disabled:!0},{label:"编辑",tips:"Edit",fn:o=>oe(`您编辑了第 ${e.value.findIndex(p=>p.id===o.id)+1} 行,数据为:${JSON.stringify(o)}`,{type:"success"})}]};function _(o,p,n){n.preventDefault();const{x:v,y:d}=n;ye({el:n.currentTarget,params:o,menuWrapperCss:{background:"var(--el-bg-color)"},menuItemCss:{labelColor:"var(--el-text-color)",hoverLabelColor:"var(--el-color-primary)",hoverTipsColor:"var(--el-color-primary)"},...a}).show(v,d)}return{columns:u,dataList:e,showMouseMenu:_}}export{xe as useColumns}; diff --git a/dist/static/js/columns-f7651f28.js b/dist/static/js/columns-f7651f28.js deleted file mode 100644 index 6f7d8ca53..000000000 --- a/dist/static/js/columns-f7651f28.js +++ /dev/null @@ -1 +0,0 @@ -import{b as r}from"./data-8e10e21a.js";import{J as l,D as p,o as s}from"./index-c61a73ff.js";function i(e){const o=Vue.ref(l(r,!0)),t=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return Vue.onMounted(()=>{p().then(()=>{const{setWatermark:a}=s(e.value.getTableDoms().tableWrapper);a("编程即艺术",{font:"16px Microsoft YaHei",globalAlpha:.8,forever:!0,width:252,height:80})})}),{columns:t,dataList:o}}export{i as useColumns}; diff --git a/dist/static/js/columns-feb8cdc1.js b/dist/static/js/columns-feb8cdc1.js deleted file mode 100644 index 9db7f532f..000000000 --- a/dist/static/js/columns-feb8cdc1.js +++ /dev/null @@ -1 +0,0 @@ -import{A as e}from"./arrow-right-s-line-bcf0e8c6.js";const o={width:24,height:24,body:''};function u(){return{columns:[{cellRenderer:()=>Vue.createVNode("span",{class:"flex items-center -mt-6"},[Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:o,color:"#F56C6C",width:"18px",height:"18px"},null),Vue.createVNode("span",{class:"ml-1 mr-4"},[Vue.createTextVNode("您的账户已被冻结")]),Vue.createVNode("a",{href:"javascript:void(0);",class:"flex items-center",style:"color: var(--el-color-primary)"},[Vue.createTextVNode("立即解冻"),Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:e,color:"var(--el-color-primary)",width:"18px",height:"18px"},null)])])},{cellRenderer:()=>Vue.createVNode("span",{class:"flex items-center -mt-8"},[Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:o,color:"#F56C6C",width:"18px",height:"18px"},null),Vue.createVNode("span",{class:"ml-1 mr-4"},[Vue.createTextVNode("您的账户还不具备申请资格")]),Vue.createVNode("a",{href:"javascript:void(0);",class:"flex items-center",style:"color: var(--el-color-primary)"},[Vue.createTextVNode("立即升级"),Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:e,color:"var(--el-color-primary)",width:"18px",height:"18px"},null)])])}]}}export{u as useColumns}; diff --git a/dist/static/js/customIndex-b5e8ed2f.js b/dist/static/js/customIndex-b5e8ed2f.js new file mode 100644 index 000000000..77d707aca --- /dev/null +++ b/dist/static/js/customIndex-b5e8ed2f.js @@ -0,0 +1 @@ +import{_ as o}from"./customIndex.vue_vue_type_script_setup_true_lang-e3c9b231.js";import"./data-7bb4b374.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/customIndex-d23805e1.js b/dist/static/js/customIndex-d23805e1.js deleted file mode 100644 index 488be6cb3..000000000 --- a/dist/static/js/customIndex-d23805e1.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./customIndex.vue_vue_type_script_setup_true_lang-ea44b08c.js";import"./data-5ec60fc2.js";import"./index-c61a73ff.js";export{o as default}; diff --git a/dist/static/js/customIndex.vue_vue_type_script_setup_true_lang-e3c9b231.js b/dist/static/js/customIndex.vue_vue_type_script_setup_true_lang-e3c9b231.js new file mode 100644 index 000000000..202e6aff0 --- /dev/null +++ b/dist/static/js/customIndex.vue_vue_type_script_setup_true_lang-e3c9b231.js @@ -0,0 +1 @@ +import{t as a}from"./data-7bb4b374.js";import{d as n,c as r,f as p,e as s,u as c}from"./index-0dd8d5e4.js";const i=n({__name:"customIndex",setup(l){const t=[{type:"index",index:e=>e*2},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(e,m)=>{const o=r("pure-table");return p(),s(o,{data:c(a),columns:t},null,8,["data"])}}});export{i as _}; diff --git a/dist/static/js/customIndex.vue_vue_type_script_setup_true_lang-ea44b08c.js b/dist/static/js/customIndex.vue_vue_type_script_setup_true_lang-ea44b08c.js deleted file mode 100644 index 334fe29d2..000000000 --- a/dist/static/js/customIndex.vue_vue_type_script_setup_true_lang-ea44b08c.js +++ /dev/null @@ -1 +0,0 @@ -import{t as o}from"./data-5ec60fc2.js";const u=Vue.defineComponent({__name:"customIndex",setup(a){const t=[{type:"index",index:e=>e*2},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(e,p)=>{const n=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(n,{data:Vue.unref(o),columns:t},null,8,["data"])}}});export{u as _}; diff --git a/dist/static/js/dark-2f4f0a96.js b/dist/static/js/dark-2f4f0a96.js deleted file mode 100644 index f3e38744a..000000000 --- a/dist/static/js/dark-2f4f0a96.js +++ /dev/null @@ -1,91 +0,0 @@ -import{a9 as x,ad as U,a8 as W,u as q,x as T,ae as H,t as L,af as J,a4 as K,a5 as A,ag as X}from"./index-c61a73ff.js";import{u as Y}from"./app-7adcc40f.js";import{u as $}from"./epTheme-d89c26ff.js";function Z(){const{$storage:t,$config:e}=x(),o=()=>{U().multiTagsCache&&(!t.tags||t.tags.length===0)&&(t.tags=W),t.locale||(t.locale={locale:(e==null?void 0:e.Locale)??"zh"},VueI18n.useI18n().locale.value=(e==null?void 0:e.Locale)??"zh"),t.layout||(t.layout={layout:(e==null?void 0:e.Layout)??"vertical",theme:(e==null?void 0:e.Theme)??"default",darkMode:(e==null?void 0:e.DarkMode)??!1,sidebarStatus:(e==null?void 0:e.SidebarStatus)??!0,epThemeColor:(e==null?void 0:e.EpThemeColor)??"#409EFF"}),t.configure||(t.configure={grey:(e==null?void 0:e.Grey)??!1,weak:(e==null?void 0:e.Weak)??!1,hideTabs:(e==null?void 0:e.HideTabs)??!1,showLogo:(e==null?void 0:e.ShowLogo)??!0,showModel:(e==null?void 0:e.ShowModel)??"smart",multiTagsCache:(e==null?void 0:e.MultiTagsCache)??!1})},n=Vue.computed(()=>t==null?void 0:t.layout.layout),a=Vue.computed(()=>t.layout);return{layout:n,layoutTheme:a,initStorage:o}}const S="当前路由配置不正确,请检查配置";function ee(){var w;const t=Y(),e=VueRouter.useRouter().options.routes,{wholeMenus:o}=Pinia.storeToRefs(q()),n=((w=T())==null?void 0:w.TooltipEffect)??"light",a=Vue.computed(()=>({width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"})),s=Vue.computed(()=>{var u;return(u=H())==null?void 0:u.username}),d=Vue.computed(()=>(u,c)=>({background:u===c?$().epThemeColor:"",color:u===c?"#f4f4f5":"#000"})),m=Vue.computed(()=>(u,c)=>u===c?"":"dark:hover:!text-primary"),f=Vue.computed(()=>s.value?{marginRight:"10px"}:""),b=Vue.computed(()=>!t.getSidebarStatus),v=Vue.computed(()=>t.getDevice),{$storage:l,$config:r}=x(),i=Vue.computed(()=>{var u;return(u=l==null?void 0:l.layout)==null?void 0:u.layout}),y=Vue.computed(()=>r.Title);function C(u){const c=T().Title;c?document.title=`${L(u.title)} | ${c}`:document.title=L(u.title)}function P(){H().logOut()}function R(){J.push(K().path)}function D(){A.emit("openPanel")}function j(){t.toggleSideBar()}function O(u){u==null||u.handleResize()}function F(u){var p;if(!u.children)return console.error(S);const c=/^http(s?):\/\//,h=(p=u.children[0])==null?void 0:p.path;return c.test(h)?u.path+"/"+h:h}function G(u,c){if(o.value.length===0||Q(u))return;let h="";const p=u.lastIndexOf("/");p>0&&(h=u.slice(0,p));function M(B,V){return V?V.map(g=>{g.path===B?g.redirect?M(g.redirect,g.children):A.emit("changLayoutRoute",{indexPath:B,parentPath:h}):g.children&&M(B,g.children)}):console.error(S)}M(u,c)}function Q(u){return X.includes(u)}return{title:y,device:v,layout:i,logout:P,routers:e,$storage:l,backTopMenu:R,onPanel:D,getDivStyle:a,changeTitle:C,toggleSideBar:j,menuSelect:G,handleResize:O,resolvePath:F,isCollapse:b,pureApp:t,username:s,avatarsStyle:f,tooltipEffect:n,getDropdownItemStyle:d,getDropdownItemClass:m}}function Me(t){const{$storage:e,changeTitle:o,handleResize:n}=ee(),{locale:a,t:s}=VueI18n.useI18n(),d=VueRouter.useRoute();function m(){e.locale={locale:"zh"},a.value="zh",t&&n(t.value)}function f(){e.locale={locale:"en"},a.value="en",t&&n(t.value)}return Vue.watch(()=>a.value,()=>{o(d.meta)}),{t:s,route:d,locale:a,translationCh:m,translationEn:f}}const te={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",class:"globalization",viewBox:"0 0 512 512"},ne=Vue.createElementVNode("path",{fill:"currentColor",d:"m478.33 433.6-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362 368 281.65 401.17 362zm-66.99-19.08a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73 39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93.92 1.19 1.83 2.35 2.74 3.51-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59 22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z"},null,-1),oe=[ne];function ue(t,e){return Vue.openBlock(),Vue.createElementBlock("svg",te,oe)}const Be={render:ue},k={outputDir:"",defaultScopeName:"",includeStyleWithColors:[],extract:!0,themeLinkTagId:"theme-link-tag",themeLinkTagInjectTo:"head",removeCssScopeName:!1,customThemeCssFileName:null,arbitraryMode:!1,defaultPrimaryColor:"",customThemeOutputPath:"/Users/zhangyi/Desktop/vue-pure-admin/node_modules/.pnpm/@pureadmin+theme@3.0.0/node_modules/@pureadmin/theme/setCustomTheme.js",styleTagId:"custom-theme-tagid",InjectDefaultStyleTagToHtml:!0,hueDiffControls:{low:0,high:0},multipleScopeVars:[{scopeName:"layout-theme-default",varsContent:` - $subMenuActiveText: #fff !default; - $menuBg: #001529 !default; - $menuHover: #4091f7 !default; - $subMenuBg: #0f0303 !default; - $subMenuActiveBg: #4091f7 !default; - $menuText: rgb(254 254 254 / 65%) !default; - $sidebarLogo: #002140 !default; - $menuTitleHover: #fff !default; - $menuActiveBefore: #4091f7 !default; - `},{scopeName:"layout-theme-light",varsContent:` - $subMenuActiveText: #409eff !default; - $menuBg: #fff !default; - $menuHover: #e0ebf6 !default; - $subMenuBg: #fff !default; - $subMenuActiveBg: #e0ebf6 !default; - $menuText: #7a80b4 !default; - $sidebarLogo: #fff !default; - $menuTitleHover: #000 !default; - $menuActiveBefore: #4091f7 !default; - `},{scopeName:"layout-theme-dusk",varsContent:` - $subMenuActiveText: #fff !default; - $menuBg: #2a0608 !default; - $menuHover: #e13c39 !default; - $subMenuBg: #000 !default; - $subMenuActiveBg: #e13c39 !default; - $menuText: rgb(254 254 254 / 65.1%) !default; - $sidebarLogo: #42090c !default; - $menuTitleHover: #fff !default; - $menuActiveBefore: #e13c39 !default; - `},{scopeName:"layout-theme-volcano",varsContent:` - $subMenuActiveText: #fff !default; - $menuBg: #2b0e05 !default; - $menuHover: #e85f33 !default; - $subMenuBg: #0f0603 !default; - $subMenuActiveBg: #e85f33 !default; - $menuText: rgb(254 254 254 / 65%) !default; - $sidebarLogo: #441708 !default; - $menuTitleHover: #fff !default; - $menuActiveBefore: #e85f33 !default; - `},{scopeName:"layout-theme-yellow",varsContent:` - $subMenuActiveText: #d25f00 !default; - $menuBg: #2b2503 !default; - $menuHover: #f6da4d !default; - $subMenuBg: #0f0603 !default; - $subMenuActiveBg: #f6da4d !default; - $menuText: rgb(254 254 254 / 65%) !default; - $sidebarLogo: #443b05 !default; - $menuTitleHover: #fff !default; - $menuActiveBefore: #f6da4d !default; - `},{scopeName:"layout-theme-mingQing",varsContent:` - $subMenuActiveText: #fff !default; - $menuBg: #032121 !default; - $menuHover: #59bfc1 !default; - $subMenuBg: #000 !default; - $subMenuActiveBg: #59bfc1 !default; - $menuText: #7a80b4 !default; - $sidebarLogo: #053434 !default; - $menuTitleHover: #fff !default; - $menuActiveBefore: #59bfc1 !default; - `},{scopeName:"layout-theme-auroraGreen",varsContent:` - $subMenuActiveText: #fff !default; - $menuBg: #0b1e15 !default; - $menuHover: #60ac80 !default; - $subMenuBg: #000 !default; - $subMenuActiveBg: #60ac80 !default; - $menuText: #7a80b4 !default; - $sidebarLogo: #112f21 !default; - $menuTitleHover: #fff !default; - $menuActiveBefore: #60ac80 !default; - `},{scopeName:"layout-theme-pink",varsContent:` - $subMenuActiveText: #fff !default; - $menuBg: #28081a !default; - $menuHover: #d84493 !default; - $subMenuBg: #000 !default; - $subMenuActiveBg: #d84493 !default; - $menuText: #7a80b4 !default; - $sidebarLogo: #3f0d29 !default; - $menuTitleHover: #fff !default; - $menuActiveBefore: #d84493 !default; - `},{scopeName:"layout-theme-saucePurple",varsContent:` - $subMenuActiveText: #fff !default; - $menuBg: #130824 !default; - $menuHover: #693ac9 !default; - $subMenuBg: #000 !default; - $subMenuActiveBg: #693ac9 !default; - $menuText: #7a80b4 !default; - $sidebarLogo: #1f0c38 !default; - $menuTitleHover: #fff !default; - $menuActiveBefore: #693ac9 !default; - `}]},ae="/vue-pure-admin/",le="assets";function N(t){let e=t.replace("#","").match(/../g);for(let o=0;o<3;o++)e[o]=parseInt(e[o],16);return e}function I(t,e,o){let n=[t.toString(16),e.toString(16),o.toString(16)];for(let a=0;a<3;a++)n[a].length==1&&(n[a]=`0${n[a]}`);return`#${n.join("")}`}function re(t,e){let o=N(t);for(let n=0;n<3;n++)o[n]=Math.floor(o[n]*(1-e));return I(o[0],o[1],o[2])}function se(t,e){let o=N(t);for(let n=0;n<3;n++)o[n]=Math.floor((255-o[n])*e+o[n]);return I(o[0],o[1],o[2])}function _(t){return`(^${t}\\s+|\\s+${t}\\s+|\\s+${t}$|^${t}$)`}function E({scopeName:t,multipleScopeVars:e}){const o=Array.isArray(e)&&e.length?e:k.multipleScopeVars;let n=document.documentElement.className;new RegExp(_(t)).test(n)||(o.forEach(a=>{n=n.replace(new RegExp(_(a.scopeName),"g"),` ${t} `)}),document.documentElement.className=n.replace(/(^\s+|\s+$)/g,""))}function z({id:t,href:e}){const o=document.createElement("link");return o.rel="stylesheet",o.href=e,o.id=t,o}function ce(t){const e={scopeName:"theme-default",customLinkHref:s=>s,...t},o=e.themeLinkTagId||k.themeLinkTagId;let n=document.getElementById(o);const a=e.customLinkHref(`${ae.replace(/\/$/,"")}${`/${le}/${e.scopeName}.css`.replace(/\/+(?=\/)/g,"")}`);if(n){n.id=`${o}_old`;const s=z({id:o,href:a});n.nextSibling?n.parentNode.insertBefore(s,n.nextSibling):n.parentNode.appendChild(s),s.onload=()=>{setTimeout(()=>{n.parentNode.removeChild(n),n=null},60),E(e)};return}n=z({id:o,href:a}),E(e),document[(e.themeLinkTagInjectTo||k.themeLinkTagInjectTo||"").replace("-prepend","")].appendChild(n)}function ke(){var v;const{layoutTheme:t,layout:e}=Z(),o=Vue.ref([{color:"#1b2a47",themeColor:"default"},{color:"#ffffff",themeColor:"light"},{color:"#f5222d",themeColor:"dusk"},{color:"#fa541c",themeColor:"volcano"},{color:"#fadb14",themeColor:"yellow"},{color:"#13c2c2",themeColor:"mingQing"},{color:"#52c41a",themeColor:"auroraGreen"},{color:"#eb2f96",themeColor:"pink"},{color:"#722ed1",themeColor:"saucePurple"}]),{$storage:n}=x(),a=Vue.ref((v=n==null?void 0:n.layout)==null?void 0:v.darkMode),s=document.documentElement;function d(l=T().Theme??"default"){var r,i;if(t.value.theme=l,ce({scopeName:`layout-theme-${l}`}),n.layout={layout:e.value,theme:l,darkMode:a.value,sidebarStatus:(r=n.layout)==null?void 0:r.sidebarStatus,epThemeColor:(i=n.layout)==null?void 0:i.epThemeColor},l==="default"||l==="light")f(T().EpThemeColor);else{const y=o.value.find(C=>C.themeColor===l);f(y.color)}}function m(l,r,i){document.documentElement.style.setProperty(`--el-color-primary-${l}-${r}`,a.value?re(i,r/10):se(i,r/10))}const f=l=>{$().setEpThemeColor(l),document.documentElement.style.setProperty("--el-color-primary",l);for(let r=1;r<=2;r++)m("dark",r,l);for(let r=1;r<=9;r++)m("light",r,l)};function b(){$().epTheme==="light"&&a.value?d("default"):d($().epTheme),a.value?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}return{body:s,dataTheme:a,layoutTheme:t,themeColors:o,dataThemeChange:b,setEpThemeColor:f,setLayoutThemeColor:d}}const de={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},fe=Vue.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),ie=Vue.createElementVNode("path",{d:"M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12zM11 1h2v3h-2V1zm0 19h2v3h-2v-3zM3.515 4.929l1.414-1.414L7.05 5.636 5.636 7.05 3.515 4.93zM16.95 18.364l1.414-1.414 2.121 2.121-1.414 1.414-2.121-2.121zm2.121-14.85 1.414 1.415-2.121 2.121-1.414-1.414 2.121-2.121zM5.636 16.95l1.414 1.414-2.121 2.121-1.414-1.414 2.121-2.121zM23 11v2h-3v-2h3zM4 11v2H1v-2h3z"},null,-1),me=[fe,ie];function he(t,e){return Vue.openBlock(),Vue.createElementBlock("svg",de,me)}const xe={render:he},ge={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},pe=Vue.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),ve=Vue.createElementVNode("path",{d:"M11.38 2.019a7.5 7.5 0 1 0 10.6 10.6C21.662 17.854 17.316 22 12.001 22 6.477 22 2 17.523 2 12c0-5.315 4.146-9.661 9.38-9.981z"},null,-1),$e=[pe,ve];function Te(t,e){return Vue.openBlock(),Vue.createElementBlock("svg",ge,$e)}const we={render:Te};export{Me as a,ke as b,we as c,xe as d,Z as e,Be as g,ce as t,ee as u}; diff --git a/dist/static/js/dark-8da7fda0.js b/dist/static/js/dark-8da7fda0.js new file mode 100644 index 000000000..b0c8f55a4 --- /dev/null +++ b/dist/static/js/dark-8da7fda0.js @@ -0,0 +1,91 @@ +import{bd as H,x as d,bi as K,bc as X,Y as G,a$ as ee,bj as te,D as ne,au as y,bk as z,G as E,bl as oe,b7 as ae,b8 as I,bm as ue,aZ as le,y as re,f as L,k as A,i as b,r as N}from"./index-0dd8d5e4.js";import{u as se}from"./app-9580cee8.js";import{u as T}from"./epTheme-ec99570c.js";function fe(){const{$storage:t,$config:e}=H(),o=()=>{K().multiTagsCache&&(!t.tags||t.tags.length===0)&&(t.tags=X),t.locale||(t.locale={locale:(e==null?void 0:e.Locale)??"zh"},G().locale.value=(e==null?void 0:e.Locale)??"zh"),t.layout||(t.layout={layout:(e==null?void 0:e.Layout)??"vertical",theme:(e==null?void 0:e.Theme)??"default",darkMode:(e==null?void 0:e.DarkMode)??!1,sidebarStatus:(e==null?void 0:e.SidebarStatus)??!0,epThemeColor:(e==null?void 0:e.EpThemeColor)??"#409EFF"}),t.configure||(t.configure={grey:(e==null?void 0:e.Grey)??!1,weak:(e==null?void 0:e.Weak)??!1,hideTabs:(e==null?void 0:e.HideTabs)??!1,showLogo:(e==null?void 0:e.ShowLogo)??!0,showModel:(e==null?void 0:e.ShowModel)??"smart",multiTagsCache:(e==null?void 0:e.MultiTagsCache)??!1})},n=d(()=>t==null?void 0:t.layout.layout),u=d(()=>t.layout);return{layout:n,layoutTheme:u,initStorage:o}}const P="当前路由配置不正确,请检查配置";function de(){var S;const t=se(),e=ee().options.routes,{wholeMenus:o}=te(ne()),n=((S=y())==null?void 0:S.TooltipEffect)??"light",u=d(()=>({width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"})),s=d(()=>{var a;return(a=z())==null?void 0:a.username}),c=d(()=>(a,f)=>({background:a===f?T().epThemeColor:"",color:a===f?"#f4f4f5":"#000"})),h=d(()=>(a,f)=>a===f?"":"dark:hover:!text-primary"),i=d(()=>s.value?{marginRight:"10px"}:""),C=d(()=>!t.getSidebarStatus),$=d(()=>t.getDevice),{$storage:l,$config:r}=H(),m=d(()=>{var a;return(a=l==null?void 0:l.layout)==null?void 0:a.layout}),M=d(()=>r.Title);function B(a){const f=y().Title;f?document.title=`${E(a.title)} | ${f}`:document.title=E(a.title)}function F(){z().logOut()}function Q(){oe.push(ae().path)}function U(){I.emit("openPanel")}function W(){t.toggleSideBar()}function Y(a){a==null||a.handleResize()}function Z(a){var v;if(!a.children)return console.error(P);const f=/^http(s?):\/\//,g=(v=a.children[0])==null?void 0:v.path;return f.test(g)?a.path+"/"+g:g}function q(a,f){if(o.value.length===0||J(a))return;let g="";const v=a.lastIndexOf("/");v>0&&(g=a.slice(0,v));function k(x,_){return _?_.map(p=>{p.path===x?p.redirect?k(p.redirect,p.children):I.emit("changLayoutRoute",{indexPath:x,parentPath:g}):p.children&&k(x,p.children)}):console.error(P)}k(a,f)}function J(a){return ue.includes(a)}return{title:M,device:$,layout:m,logout:F,routers:e,$storage:l,backTopMenu:Q,onPanel:U,getDivStyle:u,changeTitle:B,toggleSideBar:W,menuSelect:q,handleResize:Y,resolvePath:Z,isCollapse:C,pureApp:t,username:s,avatarsStyle:i,tooltipEffect:n,getDropdownItemStyle:c,getDropdownItemClass:h}}function ze(t){const{$storage:e,changeTitle:o,handleResize:n}=de(),{locale:u,t:s}=G(),c=le();function h(){e.locale={locale:"zh"},u.value="zh",t&&n(t.value)}function i(){e.locale={locale:"en"},u.value="en",t&&n(t.value)}return re(()=>u.value,()=>{o(c.meta)}),{t:s,route:c,locale:u,translationCh:h,translationEn:i}}const ce={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",class:"globalization",viewBox:"0 0 512 512"},ie=b("path",{fill:"currentColor",d:"m478.33 433.6-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362 368 281.65 401.17 362zm-66.99-19.08a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73 39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93.92 1.19 1.83 2.35 2.74 3.51-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59 22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z"},null,-1),me=[ie];function he(t,e){return L(),A("svg",ce,me)}const Ee={render:he},w={outputDir:"",defaultScopeName:"",includeStyleWithColors:[],extract:!0,themeLinkTagId:"theme-link-tag",themeLinkTagInjectTo:"head",removeCssScopeName:!1,customThemeCssFileName:null,arbitraryMode:!1,defaultPrimaryColor:"",customThemeOutputPath:"/Users/zhangyi/Desktop/vue-pure-admin/node_modules/.pnpm/@pureadmin+theme@3.0.0/node_modules/@pureadmin/theme/setCustomTheme.js",styleTagId:"custom-theme-tagid",InjectDefaultStyleTagToHtml:!0,hueDiffControls:{low:0,high:0},multipleScopeVars:[{scopeName:"layout-theme-default",varsContent:` + $subMenuActiveText: #fff !default; + $menuBg: #001529 !default; + $menuHover: #4091f7 !default; + $subMenuBg: #0f0303 !default; + $subMenuActiveBg: #4091f7 !default; + $menuText: rgb(254 254 254 / 65%) !default; + $sidebarLogo: #002140 !default; + $menuTitleHover: #fff !default; + $menuActiveBefore: #4091f7 !default; + `},{scopeName:"layout-theme-light",varsContent:` + $subMenuActiveText: #409eff !default; + $menuBg: #fff !default; + $menuHover: #e0ebf6 !default; + $subMenuBg: #fff !default; + $subMenuActiveBg: #e0ebf6 !default; + $menuText: #7a80b4 !default; + $sidebarLogo: #fff !default; + $menuTitleHover: #000 !default; + $menuActiveBefore: #4091f7 !default; + `},{scopeName:"layout-theme-dusk",varsContent:` + $subMenuActiveText: #fff !default; + $menuBg: #2a0608 !default; + $menuHover: #e13c39 !default; + $subMenuBg: #000 !default; + $subMenuActiveBg: #e13c39 !default; + $menuText: rgb(254 254 254 / 65.1%) !default; + $sidebarLogo: #42090c !default; + $menuTitleHover: #fff !default; + $menuActiveBefore: #e13c39 !default; + `},{scopeName:"layout-theme-volcano",varsContent:` + $subMenuActiveText: #fff !default; + $menuBg: #2b0e05 !default; + $menuHover: #e85f33 !default; + $subMenuBg: #0f0603 !default; + $subMenuActiveBg: #e85f33 !default; + $menuText: rgb(254 254 254 / 65%) !default; + $sidebarLogo: #441708 !default; + $menuTitleHover: #fff !default; + $menuActiveBefore: #e85f33 !default; + `},{scopeName:"layout-theme-yellow",varsContent:` + $subMenuActiveText: #d25f00 !default; + $menuBg: #2b2503 !default; + $menuHover: #f6da4d !default; + $subMenuBg: #0f0603 !default; + $subMenuActiveBg: #f6da4d !default; + $menuText: rgb(254 254 254 / 65%) !default; + $sidebarLogo: #443b05 !default; + $menuTitleHover: #fff !default; + $menuActiveBefore: #f6da4d !default; + `},{scopeName:"layout-theme-mingQing",varsContent:` + $subMenuActiveText: #fff !default; + $menuBg: #032121 !default; + $menuHover: #59bfc1 !default; + $subMenuBg: #000 !default; + $subMenuActiveBg: #59bfc1 !default; + $menuText: #7a80b4 !default; + $sidebarLogo: #053434 !default; + $menuTitleHover: #fff !default; + $menuActiveBefore: #59bfc1 !default; + `},{scopeName:"layout-theme-auroraGreen",varsContent:` + $subMenuActiveText: #fff !default; + $menuBg: #0b1e15 !default; + $menuHover: #60ac80 !default; + $subMenuBg: #000 !default; + $subMenuActiveBg: #60ac80 !default; + $menuText: #7a80b4 !default; + $sidebarLogo: #112f21 !default; + $menuTitleHover: #fff !default; + $menuActiveBefore: #60ac80 !default; + `},{scopeName:"layout-theme-pink",varsContent:` + $subMenuActiveText: #fff !default; + $menuBg: #28081a !default; + $menuHover: #d84493 !default; + $subMenuBg: #000 !default; + $subMenuActiveBg: #d84493 !default; + $menuText: #7a80b4 !default; + $sidebarLogo: #3f0d29 !default; + $menuTitleHover: #fff !default; + $menuActiveBefore: #d84493 !default; + `},{scopeName:"layout-theme-saucePurple",varsContent:` + $subMenuActiveText: #fff !default; + $menuBg: #130824 !default; + $menuHover: #693ac9 !default; + $subMenuBg: #000 !default; + $subMenuActiveBg: #693ac9 !default; + $menuText: #7a80b4 !default; + $sidebarLogo: #1f0c38 !default; + $menuTitleHover: #fff !default; + $menuActiveBefore: #693ac9 !default; + `}]},ge="/vue-pure-admin/",pe="assets";function O(t){let e=t.replace("#","").match(/../g);for(let o=0;o<3;o++)e[o]=parseInt(e[o],16);return e}function V(t,e,o){let n=[t.toString(16),e.toString(16),o.toString(16)];for(let u=0;u<3;u++)n[u].length==1&&(n[u]=`0${n[u]}`);return`#${n.join("")}`}function ve(t,e){let o=O(t);for(let n=0;n<3;n++)o[n]=Math.floor(o[n]*(1-e));return V(o[0],o[1],o[2])}function be(t,e){let o=O(t);for(let n=0;n<3;n++)o[n]=Math.floor((255-o[n])*e+o[n]);return V(o[0],o[1],o[2])}function D(t){return`(^${t}\\s+|\\s+${t}\\s+|\\s+${t}$|^${t}$)`}function R({scopeName:t,multipleScopeVars:e}){const o=Array.isArray(e)&&e.length?e:w.multipleScopeVars;let n=document.documentElement.className;new RegExp(D(t)).test(n)||(o.forEach(u=>{n=n.replace(new RegExp(D(u.scopeName),"g"),` ${t} `)}),document.documentElement.className=n.replace(/(^\s+|\s+$)/g,""))}function j({id:t,href:e}){const o=document.createElement("link");return o.rel="stylesheet",o.href=e,o.id=t,o}function $e(t){const e={scopeName:"theme-default",customLinkHref:s=>s,...t},o=e.themeLinkTagId||w.themeLinkTagId;let n=document.getElementById(o);const u=e.customLinkHref(`${ge.replace(/\/$/,"")}${`/${pe}/${e.scopeName}.css`.replace(/\/+(?=\/)/g,"")}`);if(n){n.id=`${o}_old`;const s=j({id:o,href:u});n.nextSibling?n.parentNode.insertBefore(s,n.nextSibling):n.parentNode.appendChild(s),s.onload=()=>{setTimeout(()=>{n.parentNode.removeChild(n),n=null},60),R(e)};return}n=j({id:o,href:u}),R(e),document[(e.themeLinkTagInjectTo||w.themeLinkTagInjectTo||"").replace("-prepend","")].appendChild(n)}function Ie(){var $;const{layoutTheme:t,layout:e}=fe(),o=N([{color:"#1b2a47",themeColor:"default"},{color:"#ffffff",themeColor:"light"},{color:"#f5222d",themeColor:"dusk"},{color:"#fa541c",themeColor:"volcano"},{color:"#fadb14",themeColor:"yellow"},{color:"#13c2c2",themeColor:"mingQing"},{color:"#52c41a",themeColor:"auroraGreen"},{color:"#eb2f96",themeColor:"pink"},{color:"#722ed1",themeColor:"saucePurple"}]),{$storage:n}=H(),u=N(($=n==null?void 0:n.layout)==null?void 0:$.darkMode),s=document.documentElement;function c(l=y().Theme??"default"){var r,m;if(t.value.theme=l,$e({scopeName:`layout-theme-${l}`}),n.layout={layout:e.value,theme:l,darkMode:u.value,sidebarStatus:(r=n.layout)==null?void 0:r.sidebarStatus,epThemeColor:(m=n.layout)==null?void 0:m.epThemeColor},l==="default"||l==="light")i(y().EpThemeColor);else{const M=o.value.find(B=>B.themeColor===l);i(M.color)}}function h(l,r,m){document.documentElement.style.setProperty(`--el-color-primary-${l}-${r}`,u.value?ve(m,r/10):be(m,r/10))}const i=l=>{T().setEpThemeColor(l),document.documentElement.style.setProperty("--el-color-primary",l);for(let r=1;r<=2;r++)h("dark",r,l);for(let r=1;r<=9;r++)h("light",r,l)};function C(){T().epTheme==="light"&&u.value?c("default"):c(T().epTheme),u.value?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}return{body:s,dataTheme:u,layoutTheme:t,themeColors:o,dataThemeChange:C,setEpThemeColor:i,setLayoutThemeColor:c}}const Te={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},ye=b("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),Ce=b("path",{d:"M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12zM11 1h2v3h-2V1zm0 19h2v3h-2v-3zM3.515 4.929l1.414-1.414L7.05 5.636 5.636 7.05 3.515 4.93zM16.95 18.364l1.414-1.414 2.121 2.121-1.414 1.414-2.121-2.121zm2.121-14.85 1.414 1.415-2.121 2.121-1.414-1.414 2.121-2.121zM5.636 16.95l1.414 1.414-2.121 2.121-1.414-1.414 2.121-2.121zM23 11v2h-3v-2h3zM4 11v2H1v-2h3z"},null,-1),Me=[ye,Ce];function Be(t,e){return L(),A("svg",Te,Me)}const Ne={render:Be},ke={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},xe=b("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),we=b("path",{d:"M11.38 2.019a7.5 7.5 0 1 0 10.6 10.6C21.662 17.854 17.316 22 12.001 22 6.477 22 2 17.523 2 12c0-5.315 4.146-9.661 9.38-9.981z"},null,-1),He=[xe,we];function Le(t,e){return L(),A("svg",ke,He)}const Pe={render:Le};export{ze as a,Ie as b,Pe as c,Ne as d,fe as e,Ee as g,$e as t,de as u}; diff --git a/dist/static/js/data-4845d266.js b/dist/static/js/data-4845d266.js new file mode 100644 index 000000000..6fa728303 --- /dev/null +++ b/dist/static/js/data-4845d266.js @@ -0,0 +1 @@ +import{bo as r,J as t}from"./index-0dd8d5e4.js";const s=r(new Date).format("YYYY-MM-DD"),o=[{date:s,name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Jack",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Dick",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Harry",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Sam",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Lucy",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Mary",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Mike",address:"No. 189, Grove St, Los Angeles"}];t(o,!0).map(e=>Object.assign(e,{state:"California",city:"Los Angeles","post-code":"CA 90036"}));t(o,!0).map((e,a)=>Object.assign(e,{image:`https://pure-admin.github.io/pure-admin-table/imgs/${a+1}.jpg`}));t(o,!0).map((e,a)=>{delete e.date,Object.assign(e,{date:`${r(new Date).format("YYYY-MM")}-${a+1}`})});const n=t(o,!0).map((e,a)=>(delete e.address,delete e.date,Object.assign({id:a+1,date:`${r(new Date).format("YYYY-MM")}-${a+1}`},e))),m=t(o,!0).map((e,a)=>(delete e.date,Object.assign({id:a+1,date:`${r(new Date).format("YYYY-MM")}-${a+1}`},e)));export{n as a,m as b,o as t}; diff --git a/dist/static/js/data-5ec60fc2.js b/dist/static/js/data-7bb4b374.js similarity index 76% rename from dist/static/js/data-5ec60fc2.js rename to dist/static/js/data-7bb4b374.js index 88b97295d..f433d122f 100644 --- a/dist/static/js/data-5ec60fc2.js +++ b/dist/static/js/data-7bb4b374.js @@ -1 +1 @@ -import{J as t}from"./index-c61a73ff.js";const a=dayjs(new Date).format("YYYY-MM-DD"),e=[{date:a,name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Jack",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Dick",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Harry",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Sam",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Lucy",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Mary",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Mike",address:"No. 189, Grove St, Los Angeles"}],i=t(e,!0),r=i.map(s=>Object.assign(s,{state:"California",city:"Los Angeles","post-code":"CA 90036"})),o=i.map((s,n)=>Object.assign(s,{image:`https://pure-admin.github.io/pure-admin-table/imgs/${n+1}.jpg`})),S=i.map((s,n)=>Object.assign(s,{date:`${dayjs(new Date).format("YYYY-MM")}-${n+1}`})),d=[{date:"2016-05-03",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-02",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-04",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-01",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-08",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-06",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-07",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]}];export{r as a,S as b,d as c,o as d,e as t}; +import{bo as t,J as e}from"./index-0dd8d5e4.js";const a=t(new Date).format("YYYY-MM-DD"),c=[{date:a,name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Jack",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Dick",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Harry",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Sam",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Lucy",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Mary",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Mike",address:"No. 189, Grove St, Los Angeles"}],i=e(c,!0),o=i.map(s=>Object.assign(s,{state:"California",city:"Los Angeles","post-code":"CA 90036"})),S=i.map((s,n)=>Object.assign(s,{image:`https://pure-admin.github.io/pure-admin-table/imgs/${n+1}.jpg`})),d=i.map((s,n)=>Object.assign(s,{date:`${t(new Date).format("YYYY-MM")}-${n+1}`})),m=[{date:"2016-05-03",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-02",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-04",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-01",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-08",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-06",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-07",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]}];export{o as a,d as b,m as c,S as d,c as t}; diff --git a/dist/static/js/data-8e10e21a.js b/dist/static/js/data-8e10e21a.js deleted file mode 100644 index 39bd96707..000000000 --- a/dist/static/js/data-8e10e21a.js +++ /dev/null @@ -1 +0,0 @@ -import{J as t}from"./index-c61a73ff.js";const s=dayjs(new Date).format("YYYY-MM-DD"),o=[{date:s,name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Jack",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Dick",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Harry",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Sam",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Lucy",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Mary",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Mike",address:"No. 189, Grove St, Los Angeles"}];t(o,!0).map(e=>Object.assign(e,{state:"California",city:"Los Angeles","post-code":"CA 90036"}));t(o,!0).map((e,a)=>Object.assign(e,{image:`https://pure-admin.github.io/pure-admin-table/imgs/${a+1}.jpg`}));t(o,!0).map((e,a)=>{delete e.date,Object.assign(e,{date:`${dayjs(new Date).format("YYYY-MM")}-${a+1}`})});const d=t(o,!0).map((e,a)=>(delete e.address,delete e.date,Object.assign({id:a+1,date:`${dayjs(new Date).format("YYYY-MM")}-${a+1}`},e))),n=t(o,!0).map((e,a)=>(delete e.date,Object.assign({id:a+1,date:`${dayjs(new Date).format("YYYY-MM")}-${a+1}`},e)));export{d as a,n as b,o as t}; diff --git a/dist/static/js/debounce-27797450.js b/dist/static/js/debounce-27797450.js new file mode 100644 index 000000000..e2d638966 --- /dev/null +++ b/dist/static/js/debounce-27797450.js @@ -0,0 +1 @@ +import{m}from"./message-ac5811da.js";import{d as h,c as d,k as f,g as t,w as e,f as p,u as c,h as a,i as o,N as _,S as k}from"./index-0dd8d5e4.js";const C=o("div",null,"防抖:debounce",-1),b=o("div",{class:"mb-5"}," 所谓防抖,就是指触发事件后在 n 秒内函数只能执行一次,如果在 n 秒内又触发了事件,则会重新计算函数执行时间。 ",-1),v=o("div",null,"节流:throttle",-1),w=o("div",{class:"mb-5"}," 所谓节流,就是指连续触发事件但是在 n 秒中只执行一次函数。节流会稀释函数的执行频率。 ",-1),D=h({name:"Debounce",__name:"debounce",setup(x){const n=()=>m("恭喜你,这是一条成功消息",{type:"success"}),i=_(n,1e3,!0),r=_(n,1e3),u=k(n);return(N,B)=>{const s=d("el-button"),l=d("el-card");return p(),f("div",null,[t(l,{class:"mb-5",shadow:"never"},{header:e(()=>[C]),default:e(()=>[b,t(s,{onClick:c(i)},{default:e(()=>[a(" 连续点击我,只会执行第一次点击事件,立即执行 ")]),_:1},8,["onClick"]),t(s,{onClick:c(r)},{default:e(()=>[a(" 连续点击我,只会执行最后一次点击事件,延后执行 ")]),_:1},8,["onClick"])]),_:1}),t(l,{shadow:"never"},{header:e(()=>[v]),default:e(()=>[w,t(s,{onClick:c(u)},{default:e(()=>[a(" 连续点击我,每一秒只会执行一次点击事件 ")]),_:1},8,["onClick"])]),_:1})])}}});export{D as default}; diff --git a/dist/static/js/debounce-e8eccde8.js b/dist/static/js/debounce-e8eccde8.js deleted file mode 100644 index 21008af7b..000000000 --- a/dist/static/js/debounce-e8eccde8.js +++ /dev/null @@ -1 +0,0 @@ -import{m as d}from"./message-9ae1daa3.js";import{E as n,S as l}from"./index-c61a73ff.js";const V=Vue.createElementVNode("div",null,"防抖:debounce",-1),r=Vue.createElementVNode("div",{class:"mb-5"}," 所谓防抖,就是指触发事件后在 n 秒内函数只能执行一次,如果在 n 秒内又触发了事件,则会重新计算函数执行时间。 ",-1),s=Vue.createElementVNode("div",null,"节流:throttle",-1),i=Vue.createElementVNode("div",{class:"mb-5"}," 所谓节流,就是指连续触发事件但是在 n 秒中只执行一次函数。节流会稀释函数的执行频率。 ",-1),p=Vue.defineComponent({name:"Debounce",__name:"debounce",setup(_){const e=()=>d("恭喜你,这是一条成功消息",{type:"success"}),c=n(e,1e3,!0),u=n(e,1e3),a=l(e);return(m,h)=>{const t=Vue.resolveComponent("el-button"),o=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(o,{class:"mb-5",shadow:"never"},{header:Vue.withCtx(()=>[V]),default:Vue.withCtx(()=>[r,Vue.createVNode(t,{onClick:Vue.unref(c)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 连续点击我,只会执行第一次点击事件,立即执行 ")]),_:1},8,["onClick"]),Vue.createVNode(t,{onClick:Vue.unref(u)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 连续点击我,只会执行最后一次点击事件,延后执行 ")]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(o,{shadow:"never"},{header:Vue.withCtx(()=>[s]),default:Vue.withCtx(()=>[i,Vue.createVNode(t,{onClick:Vue.unref(a)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 连续点击我,每一秒只会执行一次点击事件 ")]),_:1},8,["onClick"])]),_:1})])}}});export{p as default}; diff --git a/dist/static/js/download-82053b96.js b/dist/static/js/download-82053b96.js new file mode 100644 index 000000000..50669f72b --- /dev/null +++ b/dist/static/js/download-82053b96.js @@ -0,0 +1 @@ +import{d as L,c as u,e as d,w as a,f as l,i as r,g as o,h as i,u as s,I as q,z as m,P as h,s as w,t as c}from"./index-0dd8d5e4.js";const g=r("span",{class:"font-medium"},"文件下载功能",-1),H={class:"flex flex-wrap"},x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALEAAAAwCAYAAABexZu4AAAAAXNSR0IArs4c6QAAC5pJREFUeF7tnQ9wFNUdx7+/vQQsiOb2orHyp0JuQ/1TpFVbS+2I7RS1aqdlKu2oU2WqQvbQFmtrO7QFpp22U0ZhgNuQInXa6rTFKo5oi3XGPzNqiwIWBDTZS2Boi8aQDQxYId7tr/M2CZNc7u69vdtLLrI7k2GG/b3fe+/3Pvu737597/cIRVw1ydaZEWAmE13MwEwCojj5R+PA/B4IxwA6RuD3uPff3UzYRhneU/X++7s7vn/xe0VUHRYJLTDEAqRqk5qV+2q0senbANwKYKZquVxyBHQy0eNw+XEnYfy9FF0jWbZmjT1bVv/hu4wXZDK57st0V42pbjm04Ly3i9FdzjKnr7bPqiJcWKiOYm2ST6cSxHqyZRkocivA5wVvAH7NMRs+raR34+4xNR1jZ1VrJ7Z1Ji46plSmTEJRy36eACnEbgZX+R00Vd2OaSiNX5lMkFOtbtksq4+BF7pN4yqZnOr9gkbQ19uT8AEeAHCjqkLfckRvOI3xGYXKCa+kRehegL8A4CN9sq8A2qOOWb/Kd50BFFAFLYR4qLGHDWLdap0P0G8DGO+CKgi0rsuMN+YTija1XU/sbs6rhPmPTqLhpnK3M1t/CHFui1eMJ44lW29jooeGAwwm3NLdaDySq67aDZ0T3BOH3wJwbqG2cET7fPeC+peGo739dYQQVzDEsWTbZUzuq8MFhEvpqYcbz9+fqz49aX8bhAcV2rLBMY3bFeQCEwkhrlCI61bsHN8zftyLBFwS2GgXVrTHMY2L8onoVmszQHcqtKWwnnX2BewiKdNDGhLOQmOvTE7cDyGuUIhjVurHDP6ZyiAGJFPQg+pW6jGA58rrYscxG2L55HpfDPG8TI+fl7AQ4gqEONrcdialM6+DaKpssIfcJ7wFF7tAfICAA3DpgKtpaWL3HCLUMXMdiOoYqBs0LcW43UkYG/LVF2tKLWLmNdL2SF7uQoilFgxMYERf7HTL/i6Alb56w+5ykLbFMY1/+innQaW5s92eMasOL556OF/ZM9fan9I0vELA2IL6JQ9DCLGf0SlNduQg3sgR/VDbDoALztcO6p6GC1Xjx1LMEk3avyTCDwvoeMYxjWsK1RFCXMoI+Cs7YhDH1rXNZdd9TLW5THRFd2P8ZVX5UuV6vxhqS7P1EOORyJjI9969Y1pHCHGpVg6m/IhBHG1K/ZyYl6h0g4AlXabxCxXZIGX0ZOoaBl8JwuXE2A7CVsc0HlWpI/TEKlYKRmbEINYt+xkAc2TdYGB7t2lcKpOrtPshxMM3IiMD8VLW9LqUWEzTvyYhb48ZtKDbjP9m+EwSTE0hxMHYUUVLMRDrydQsIDOHNS1GzLUgisHlQwy0E1O7y2gvtIiKate1Xeq67msKDTzomMZEBbnARHx8/p6XK7Q4e317XbonczFAM0C8opSG9aRx9rG7jc5+HZU4TxxN2kkQLijUTw042mUaX5HZQvRPJkPsvugkpi8bKKcKcSRSfZObPrGASbuZgLisLoB2gTObsusT5Uh1ao2AzSqdlzdGXSLfC90QDewu7+9cbfP+j3Km56cswAXE3+nqNeaXzP4QUokQqwAkeqiyhFNFV67VaKrlVJax5hmNIV9nSU/aD4CwWDrQA0CRygYkUAzEymV8trEUiH1WBYpgqcogZ8OoAlAlQOzXHtnyDKS6TcPo/3+KJu3fEeFbMsVM2g3djfVPyeSCvK8M5IAHTLmMz4YWC7HPanyJn6oQ9xnpUcc05nnhRKzJ3syM62XW0zTtskML67cVkvMAKvJiihzMfmlUBjKE2LP6qeKJT3pgjW7tWhj/PelN9itgfFbGXkTTGjoX1tv55JSBK1DREM+S5yNHoZhYb7KXglH0w5SveaEnHmqZYmNiGWs+7j/nmMYXSbdSLQA3yApWE9V1NMbfDSHutYDqi53MrqXcP8XDiV7TMV0rZicOAci7jLHfyHoap6XuNk5UPMSq3tsnPaEnDt4TE/A6AzuI+aWMS97GCNJwtWStzOCGMO4XEEt3p4pSThqnYRRALNqaa7u76nrifGxnT7aHnhgoIZz4mwb6ySEzvj2vU7TsbjGUCr5mJ+lWa5eYLpYJZ0/2Z8tXSkycqx8j+cVOZtdS7o/acEJhuja6ru3L5LpPq9iHopZtq3wxyUQQP7LAaKv0cCKEWD7sI/2xAwoQi17oVuurAF0m65EIJ8SC9s/IBDMuLjmyyNgRQuzzxY6wDK7rK8kJk3blh/pjhzLE9p8AfEPGpoD4rwCulQnK9p+F4URuC8rslquUarz9YQ4nej2xfT+Ae2RsUixpP8yEm2WCYLrXScSF0rxXvvxhKi9V3stjVlom5QdD8mSPZEwcQpwDF3VPrLRljqJW62oC3SWHuPhMO8ozICHE3jCEnriXxpjV8lWGtknGJil7O6DVMY3pMoW57ocQ+8uMGULcS5GebJ8DyogNGwUvqrVSl7jggmsi+jUU89PYF9uozUWHnjj0xANw1ZP210GQbkHz3pp1y/6vLN+ZkGOG1Z0wErInI/t+6IlDTzyICeWYuG0+4EqTWvZBrJYuihmdFMFsv1v1Q4hDiIuCONn6HRBJU/d6EEct+xYC/qDoYQvmPQtj4sEWKCYEC2Pi/hc7tbRqHsQ1a/d+TNOqc2amzAWl3yTJoSeuLE9M5E7qapwuQsi8l8qYFb12QjGciFn2DgY+KXOuJ78kRS17LQHK8a7ogKZpa7oW1j8uq0TFIEJHueaJo02pz4mVUrJ2QpIOa2B5VW85zJ5Y7FofL+unSptUxqycEOtrW78EjVTOczl6EmJ9tX0BqrDV/8ZKeo3ALQzaT8StYPdthhZlUBTgKBhTiGDKDFtOiGut9ukuMiJZt+wSCVkulwn1hWAVd2aHbqX2qZ2rQiscM/6DfP3Um+yrwdgis0MpEFf/7/iKQidoKe/9BHYO+qYfs+xfMXCfrPHlul8uTzyhuaW2OqOd3G4vaf/LGvBrYtrbmYinvHNLTmCys8j4R+V7YrUFM14/2F2uRaqeihw99qY77owJGUqLQ4XEAyyS6EiXIXgqchwgo+LB++x4kEBPZjL8Z1Sl94tE67GmFpESYiKY5jNooRJnTM2DII6u2j2Fxpy2FeBzlBQELFQuiEUzfRg3d6+y4rhKDCdE3gnVX70ghq5EiINoAth1rxuyusrnTEUgDelXUmaIN5Z0CtRogFh2SE+go1WyJw6iNe2OadTnXCIYs+wEA2uDqMWPjnJCHLVSdxK42U97BsmOBoi9ROnubhAmFd1PHwUrwBMvdkxjVd51rjHL/hEDw5r9spwQn/Hgv/WqnuNvqHyZzDmOowBiL2xqsheDvbMHy36NJMQMeqLbjH9NdLLwYYyWfaOXHUhhS3/JFmPe5CQaBp3Pobw4SXHeMdpk30yMh4tq6yiBuC/+Ly10GmggRgcIdbls5h9iehrg64qy/+BCe6BhXv+XY6UdB97T7eKeMv1MPZZJ474jdw/d+hQ0xN4AJ+05IIiE4v5ytI0iiAMC+TjAawESx8GJh2LI5R9izBNHVzBhCRgfLxLmQQBLPfHASsTB09URnktEwltKcxlLGriFiZ+PUOS5QlmF+hazi4Ma8x7G6K3nICRUE26LdkXXvPkJqqoSJ6beBHEojsqVBXHMsp9k4AZZUdkG21zlVXXL9sr1JYsUefamyNo54P4eAM8yIg91m9N2eZlFP8i8kxPiHAvCCs4CVWOyc4fxHxHaRXqO30HgbwKketj9QbC7Xqsa25x9MLuSJ87ugAB6rOZewRSZxuBpBExjwlkERAUj3p/3M8QdAL3DQAeBO5h4ezrjPnt00fldPoxaNtGalftqImN7ZgPa5Sz6AHh9AZAB0AJGi0gsThG84HfRU9kaXYRiXYSFvXPAE8E8EUTnEjCRAbHTvb03D3Bmnwt64nCi4V9FVFF0EW+5JTDL+5UXfy4me/+e5EfbC3L/kuHjzx0xZ4ht/EOu/wNFbO2YhmAeMQAAAABJRU5ErkJggg==",b=L({name:"Download",__name:"download",setup(C){function E(){w.get("https://pure-admin.github.io/pure-admin-doc/img/pure.png",{responseType:"blob"}).then(({data:n})=>{c(n,"test-data.png")})}return(n,e)=>{const t=u("el-button"),p=u("el-card");return l(),d(p,{shadow:"never"},{header:a(()=>[g]),default:a(()=>[r("div",H,[o(t,{onClick:e[0]||(e[0]=A=>s(q)("https://pure-admin.github.io/pure-admin-doc/img/pure.png","test-url.png"))},{default:a(()=>[i(" 下载在线图片 ")]),_:1}),o(t,{onClick:e[1]||(e[1]=A=>s(m)(x,"test-base64.png"))},{default:a(()=>[i(" 基于 base64 下载图片 ")]),_:1}),o(t,{onClick:e[2]||(e[2]=A=>s(h)("https://github.com/xiaoxian521/xiaoxian521/archive/refs/heads/main.zip","xiaoxian521.zip"))},{default:a(()=>[i(" 根据文件地址下载文件 ")]),_:1}),o(t,{onClick:E},{default:a(()=>[i(" 根据后台接口文件流下载 ")]),_:1})])]),_:1})}}});export{b as default}; diff --git a/dist/static/js/download-a3bbbdbf.js b/dist/static/js/download-a3bbbdbf.js deleted file mode 100644 index 4eca27c98..000000000 --- a/dist/static/js/download-a3bbbdbf.js +++ /dev/null @@ -1 +0,0 @@ -import{I as u,z as s,P as r,a as A}from"./index-c61a73ff.js";const E=Vue.createElementVNode("span",{class:"font-medium"},"文件下载功能",-1),V={class:"flex flex-wrap"},p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALEAAAAwCAYAAABexZu4AAAAAXNSR0IArs4c6QAAC5pJREFUeF7tnQ9wFNUdx7+/vQQsiOb2orHyp0JuQ/1TpFVbS+2I7RS1aqdlKu2oU2WqQvbQFmtrO7QFpp22U0ZhgNuQInXa6rTFKo5oi3XGPzNqiwIWBDTZS2Boi8aQDQxYId7tr/M2CZNc7u69vdtLLrI7k2GG/b3fe+/3Pvu737597/cIRVw1ydaZEWAmE13MwEwCojj5R+PA/B4IxwA6RuD3uPff3UzYRhneU/X++7s7vn/xe0VUHRYJLTDEAqRqk5qV+2q0senbANwKYKZquVxyBHQy0eNw+XEnYfy9FF0jWbZmjT1bVv/hu4wXZDK57st0V42pbjm04Ly3i9FdzjKnr7bPqiJcWKiOYm2ST6cSxHqyZRkocivA5wVvAH7NMRs+raR34+4xNR1jZ1VrJ7Z1Ji46plSmTEJRy36eACnEbgZX+R00Vd2OaSiNX5lMkFOtbtksq4+BF7pN4yqZnOr9gkbQ19uT8AEeAHCjqkLfckRvOI3xGYXKCa+kRehegL8A4CN9sq8A2qOOWb/Kd50BFFAFLYR4qLGHDWLdap0P0G8DGO+CKgi0rsuMN+YTija1XU/sbs6rhPmPTqLhpnK3M1t/CHFui1eMJ44lW29jooeGAwwm3NLdaDySq67aDZ0T3BOH3wJwbqG2cET7fPeC+peGo739dYQQVzDEsWTbZUzuq8MFhEvpqYcbz9+fqz49aX8bhAcV2rLBMY3bFeQCEwkhrlCI61bsHN8zftyLBFwS2GgXVrTHMY2L8onoVmszQHcqtKWwnnX2BewiKdNDGhLOQmOvTE7cDyGuUIhjVurHDP6ZyiAGJFPQg+pW6jGA58rrYscxG2L55HpfDPG8TI+fl7AQ4gqEONrcdialM6+DaKpssIfcJ7wFF7tAfICAA3DpgKtpaWL3HCLUMXMdiOoYqBs0LcW43UkYG/LVF2tKLWLmNdL2SF7uQoilFgxMYERf7HTL/i6Alb56w+5ykLbFMY1/+innQaW5s92eMasOL556OF/ZM9fan9I0vELA2IL6JQ9DCLGf0SlNduQg3sgR/VDbDoALztcO6p6GC1Xjx1LMEk3avyTCDwvoeMYxjWsK1RFCXMoI+Cs7YhDH1rXNZdd9TLW5THRFd2P8ZVX5UuV6vxhqS7P1EOORyJjI9969Y1pHCHGpVg6m/IhBHG1K/ZyYl6h0g4AlXabxCxXZIGX0ZOoaBl8JwuXE2A7CVsc0HlWpI/TEKlYKRmbEINYt+xkAc2TdYGB7t2lcKpOrtPshxMM3IiMD8VLW9LqUWEzTvyYhb48ZtKDbjP9m+EwSTE0hxMHYUUVLMRDrydQsIDOHNS1GzLUgisHlQwy0E1O7y2gvtIiKate1Xeq67msKDTzomMZEBbnARHx8/p6XK7Q4e317XbonczFAM0C8opSG9aRx9rG7jc5+HZU4TxxN2kkQLijUTw042mUaX5HZQvRPJkPsvugkpi8bKKcKcSRSfZObPrGASbuZgLisLoB2gTObsusT5Uh1ao2AzSqdlzdGXSLfC90QDewu7+9cbfP+j3Km56cswAXE3+nqNeaXzP4QUokQqwAkeqiyhFNFV67VaKrlVJax5hmNIV9nSU/aD4CwWDrQA0CRygYkUAzEymV8trEUiH1WBYpgqcogZ8OoAlAlQOzXHtnyDKS6TcPo/3+KJu3fEeFbMsVM2g3djfVPyeSCvK8M5IAHTLmMz4YWC7HPanyJn6oQ9xnpUcc05nnhRKzJ3syM62XW0zTtskML67cVkvMAKvJiihzMfmlUBjKE2LP6qeKJT3pgjW7tWhj/PelN9itgfFbGXkTTGjoX1tv55JSBK1DREM+S5yNHoZhYb7KXglH0w5SveaEnHmqZYmNiGWs+7j/nmMYXSbdSLQA3yApWE9V1NMbfDSHutYDqi53MrqXcP8XDiV7TMV0rZicOAci7jLHfyHoap6XuNk5UPMSq3tsnPaEnDt4TE/A6AzuI+aWMS97GCNJwtWStzOCGMO4XEEt3p4pSThqnYRRALNqaa7u76nrifGxnT7aHnhgoIZz4mwb6ySEzvj2vU7TsbjGUCr5mJ+lWa5eYLpYJZ0/2Z8tXSkycqx8j+cVOZtdS7o/acEJhuja6ru3L5LpPq9iHopZtq3wxyUQQP7LAaKv0cCKEWD7sI/2xAwoQi17oVuurAF0m65EIJ8SC9s/IBDMuLjmyyNgRQuzzxY6wDK7rK8kJk3blh/pjhzLE9p8AfEPGpoD4rwCulQnK9p+F4URuC8rslquUarz9YQ4nej2xfT+Ae2RsUixpP8yEm2WCYLrXScSF0rxXvvxhKi9V3stjVlom5QdD8mSPZEwcQpwDF3VPrLRljqJW62oC3SWHuPhMO8ozICHE3jCEnriXxpjV8lWGtknGJil7O6DVMY3pMoW57ocQ+8uMGULcS5GebJ8DyogNGwUvqrVSl7jggmsi+jUU89PYF9uozUWHnjj0xANw1ZP210GQbkHz3pp1y/6vLN+ZkGOG1Z0wErInI/t+6IlDTzyICeWYuG0+4EqTWvZBrJYuihmdFMFsv1v1Q4hDiIuCONn6HRBJU/d6EEct+xYC/qDoYQvmPQtj4sEWKCYEC2Pi/hc7tbRqHsQ1a/d+TNOqc2amzAWl3yTJoSeuLE9M5E7qapwuQsi8l8qYFb12QjGciFn2DgY+KXOuJ78kRS17LQHK8a7ogKZpa7oW1j8uq0TFIEJHueaJo02pz4mVUrJ2QpIOa2B5VW85zJ5Y7FofL+unSptUxqycEOtrW78EjVTOczl6EmJ9tX0BqrDV/8ZKeo3ALQzaT8StYPdthhZlUBTgKBhTiGDKDFtOiGut9ukuMiJZt+wSCVkulwn1hWAVd2aHbqX2qZ2rQiscM/6DfP3Um+yrwdgis0MpEFf/7/iKQidoKe/9BHYO+qYfs+xfMXCfrPHlul8uTzyhuaW2OqOd3G4vaf/LGvBrYtrbmYinvHNLTmCys8j4R+V7YrUFM14/2F2uRaqeihw99qY77owJGUqLQ4XEAyyS6EiXIXgqchwgo+LB++x4kEBPZjL8Z1Sl94tE67GmFpESYiKY5jNooRJnTM2DII6u2j2Fxpy2FeBzlBQELFQuiEUzfRg3d6+y4rhKDCdE3gnVX70ghq5EiINoAth1rxuyusrnTEUgDelXUmaIN5Z0CtRogFh2SE+go1WyJw6iNe2OadTnXCIYs+wEA2uDqMWPjnJCHLVSdxK42U97BsmOBoi9ROnubhAmFd1PHwUrwBMvdkxjVd51rjHL/hEDw5r9spwQn/Hgv/WqnuNvqHyZzDmOowBiL2xqsheDvbMHy36NJMQMeqLbjH9NdLLwYYyWfaOXHUhhS3/JFmPe5CQaBp3Pobw4SXHeMdpk30yMh4tq6yiBuC/+Ly10GmggRgcIdbls5h9iehrg64qy/+BCe6BhXv+XY6UdB97T7eKeMv1MPZZJ474jdw/d+hQ0xN4AJ+05IIiE4v5ytI0iiAMC+TjAawESx8GJh2LI5R9izBNHVzBhCRgfLxLmQQBLPfHASsTB09URnktEwltKcxlLGriFiZ+PUOS5QlmF+hazi4Ma8x7G6K3nICRUE26LdkXXvPkJqqoSJ6beBHEojsqVBXHMsp9k4AZZUdkG21zlVXXL9sr1JYsUefamyNo54P4eAM8yIg91m9N2eZlFP8i8kxPiHAvCCs4CVWOyc4fxHxHaRXqO30HgbwKketj9QbC7Xqsa25x9MLuSJ87ugAB6rOZewRSZxuBpBExjwlkERAUj3p/3M8QdAL3DQAeBO5h4ezrjPnt00fldPoxaNtGalftqImN7ZgPa5Sz6AHh9AZAB0AJGi0gsThG84HfRU9kaXYRiXYSFvXPAE8E8EUTnEjCRAbHTvb03D3Bmnwt64nCi4V9FVFF0EW+5JTDL+5UXfy4me/+e5EfbC3L/kuHjzx0xZ4ht/EOu/wNFbO2YhmAeMQAAAABJRU5ErkJggg==",l=Vue.defineComponent({name:"Download",__name:"download",setup(d){function n(){axios.get("https://pure-admin.github.io/pure-admin-doc/img/pure.png",{responseType:"blob"}).then(({data:o})=>{A(o,"test-data.png")})}return(o,e)=>{const t=Vue.resolveComponent("el-button"),i=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(i,{shadow:"never"},{header:Vue.withCtx(()=>[E]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",V,[Vue.createVNode(t,{onClick:e[0]||(e[0]=a=>Vue.unref(u)("https://pure-admin.github.io/pure-admin-doc/img/pure.png","test-url.png"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 下载在线图片 ")]),_:1}),Vue.createVNode(t,{onClick:e[1]||(e[1]=a=>Vue.unref(s)(p,"test-base64.png"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 基于 base64 下载图片 ")]),_:1}),Vue.createVNode(t,{onClick:e[2]||(e[2]=a=>Vue.unref(r)("https://github.com/xiaoxian521/xiaoxian521/archive/refs/heads/main.zip","xiaoxian521.zip"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 根据文件地址下载文件 ")]),_:1}),Vue.createVNode(t,{onClick:n},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 根据后台接口文件流下载 ")]),_:1})])]),_:1})}}});export{l as default}; diff --git a/dist/static/js/edit-542ce8b5.js b/dist/static/js/edit-d219f0c6.js similarity index 95% rename from dist/static/js/edit-542ce8b5.js rename to dist/static/js/edit-d219f0c6.js index 8384edad1..a9ae7d1d9 100644 --- a/dist/static/js/edit-542ce8b5.js +++ b/dist/static/js/edit-d219f0c6.js @@ -1 +1 @@ -const a={width:1024,height:1024,body:''},l=a;export{l as E}; +const a={width:1024,height:1024,body:''};export{a as d}; diff --git a/dist/static/js/epTheme-d89c26ff.js b/dist/static/js/epTheme-d89c26ff.js deleted file mode 100644 index 8a7324e76..000000000 --- a/dist/static/js/epTheme-d89c26ff.js +++ /dev/null @@ -1 +0,0 @@ -import{s as o,w as r,x as m,y as h}from"./index-c61a73ff.js";const s=Pinia.defineStore({id:"pure-epTheme",state:()=>{var e,t;return{epThemeColor:((e=o().getItem(`${r()}layout`))==null?void 0:e.epThemeColor)??m().EpThemeColor,epTheme:((t=o().getItem(`${r()}layout`))==null?void 0:t.theme)??m().Theme}},getters:{getEpThemeColor(e){return e.epThemeColor},fill(e){return e.epTheme==="light"?"#409eff":e.epTheme==="yellow"?"#d25f00":"#fff"}},actions:{setEpThemeColor(e){const t=o().getItem(`${r()}layout`);this.epTheme=t==null?void 0:t.theme,this.epThemeColor=e,t&&(t.epThemeColor=e,o().setItem(`${r()}layout`,t))}}});function l(){return s(h)}export{l as u}; diff --git a/dist/static/js/epTheme-ec99570c.js b/dist/static/js/epTheme-ec99570c.js new file mode 100644 index 000000000..94cb44f7e --- /dev/null +++ b/dist/static/js/epTheme-ec99570c.js @@ -0,0 +1 @@ +import{ar as s,as as o,at as r,au as m,av as h}from"./index-0dd8d5e4.js";const p=s({id:"pure-epTheme",state:()=>{var e,t;return{epThemeColor:((e=o().getItem(`${r()}layout`))==null?void 0:e.epThemeColor)??m().EpThemeColor,epTheme:((t=o().getItem(`${r()}layout`))==null?void 0:t.theme)??m().Theme}},getters:{getEpThemeColor(e){return e.epThemeColor},fill(e){return e.epTheme==="light"?"#409eff":e.epTheme==="yellow"?"#d25f00":"#fff"}},actions:{setEpThemeColor(e){const t=o().getItem(`${r()}layout`);this.epTheme=t==null?void 0:t.theme,this.epThemeColor=e,t&&(t.epThemeColor=e,o().setItem(`${r()}layout`,t))}}});function l(){return p(h)}export{l as u}; diff --git a/dist/static/js/execl-40f04d43.js b/dist/static/js/execl-40f04d43.js deleted file mode 100644 index a9ea50987..000000000 --- a/dist/static/js/execl-40f04d43.js +++ /dev/null @@ -1 +0,0 @@ -import{u as s,w as p}from"./xlsx-e927f539.js";const h={class:"font-medium"},x={class:"h-[25rem] mt-3"},w=Vue.defineComponent({name:"Excel",__name:"execl",setup(f){const V=(o=10,t="column-",n)=>Array.from({length:o}).map((r,e)=>({...n,key:`${t}${e}`,dataKey:`${t}${e}`,title:`Column ${e}`,width:150})),d=(o,t=200,n="row-")=>Array.from({length:t}).map((r,e)=>o.reduce((a,u,l)=>(a[u.dataKey]=`Row ${e} - Col ${l}`,a),{id:`${n}${e}`,parentId:null})),c=V(10),_=d(c,1e3),i=()=>{const o=_.map(e=>{const a=[];return c.forEach(u=>{a.push(e[u.dataKey])}),a}),t=[];c.forEach(e=>{t.push(e.title)}),o.unshift(t);const n=s.aoa_to_sheet(o),r=s.book_new();s.book_append_sheet(r,n,"数据报表"),p(r,"tableV2.xlsx")};return(o,t)=>{const n=Vue.resolveComponent("el-link"),r=Vue.resolveComponent("el-button"),e=Vue.resolveComponent("el-table-v2"),a=Vue.resolveComponent("el-auto-resizer"),u=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(u,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",h,[Vue.createTextVNode(" 导出Execl( "),Vue.createVNode(n,{href:"https://github.com/SheetJS/sheetjs",target:"_blank",style:{margin:"0 5px 4px 0","font-size":"16px"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" github地址 ")]),_:1}),Vue.createTextVNode(" ) ")])]),default:Vue.withCtx(()=>[Vue.createVNode(r,{type:"primary",onClick:i},{default:Vue.withCtx(()=>[Vue.createTextVNode("导出Excel")]),_:1}),Vue.createElementVNode("div",x,[Vue.createVNode(a,null,{default:Vue.withCtx(({height:l,width:m})=>[Vue.createVNode(e,{columns:Vue.unref(c),data:Vue.unref(_),width:m,height:l,fixed:""},null,8,["columns","data","width","height"])]),_:1})])]),_:1})}}});export{w as default}; diff --git a/dist/static/js/execl-48f63f3f.js b/dist/static/js/execl-48f63f3f.js new file mode 100644 index 000000000..db0f09993 --- /dev/null +++ b/dist/static/js/execl-48f63f3f.js @@ -0,0 +1 @@ +import{u as d,w as y}from"./xlsx-e927f539.js";import{d as $,c,e as g,w as l,f as C,i as h,h as i,g as u,u as f}from"./index-0dd8d5e4.js";const v={class:"font-medium"},E={class:"h-[25rem] mt-3"},z=$({name:"Excel",__name:"execl",setup(B){const k=(o=10,t="column-",a)=>Array.from({length:o}).map((s,e)=>({...a,key:`${t}${e}`,dataKey:`${t}${e}`,title:`Column ${e}`,width:150})),x=(o,t=200,a="row-")=>Array.from({length:t}).map((s,e)=>o.reduce((n,r,m)=>(n[r.dataKey]=`Row ${e} - Col ${m}`,n),{id:`${a}${e}`,parentId:null})),_=k(10),p=x(_,1e3),b=()=>{const o=p.map(e=>{const n=[];return _.forEach(r=>{n.push(e[r.dataKey])}),n}),t=[];_.forEach(e=>{t.push(e.title)}),o.unshift(t);const a=d.aoa_to_sheet(o),s=d.book_new();d.book_append_sheet(s,a,"数据报表"),y(s,"tableV2.xlsx")};return(o,t)=>{const a=c("el-link"),s=c("el-button"),e=c("el-table-v2"),n=c("el-auto-resizer"),r=c("el-card");return C(),g(r,{shadow:"never"},{header:l(()=>[h("div",v,[i(" 导出Execl( "),u(a,{href:"https://github.com/SheetJS/sheetjs",target:"_blank",style:{margin:"0 5px 4px 0","font-size":"16px"}},{default:l(()=>[i(" github地址 ")]),_:1}),i(" ) ")])]),default:l(()=>[u(s,{type:"primary",onClick:b},{default:l(()=>[i("导出Excel")]),_:1}),h("div",E,[u(n,null,{default:l(({height:m,width:w})=>[u(e,{columns:f(_),data:f(p),width:w,height:m,fixed:""},null,8,["columns","data","width","height"])]),_:1})])]),_:1})}}});export{z as default}; diff --git a/dist/static/js/expand-fbc86f9f.js b/dist/static/js/expand-88bf21af.js similarity index 58% rename from dist/static/js/expand-fbc86f9f.js rename to dist/static/js/expand-88bf21af.js index 7ce172872..a6048d9c1 100644 --- a/dist/static/js/expand-fbc86f9f.js +++ b/dist/static/js/expand-88bf21af.js @@ -1 +1 @@ -import{_ as o}from"./expand.vue_vue_type_script_setup_true_lang-61ed44df.js";import"./data-5ec60fc2.js";import"./index-c61a73ff.js";export{o as default}; +import{_ as o}from"./expand.vue_vue_type_script_setup_true_lang-72453caf.js";import"./data-7bb4b374.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/expand.vue_vue_type_script_setup_true_lang-61ed44df.js b/dist/static/js/expand.vue_vue_type_script_setup_true_lang-61ed44df.js deleted file mode 100644 index 8633604f5..000000000 --- a/dist/static/js/expand.vue_vue_type_script_setup_true_lang-61ed44df.js +++ /dev/null @@ -1 +0,0 @@ -import{c as r}from"./data-5ec60fc2.js";const u={class:"m-4"},p={class:"mb-2"},c={class:"mb-2"},V={class:"mb-2"},i={class:"mb-4"},m=Vue.createElementVNode("h3",null,"Family",-1),h=Vue.defineComponent({__name:"expand",setup(_){const a=Vue.ref(!1),l=Vue.ref(!1),s=[{type:"expand",slot:"expand"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}],d=[{label:"Name",prop:"name"},{label:"State",prop:"state"},{label:"City",prop:"city"},{label:"Address",prop:"address"},{label:"Zip",prop:"zip"}];return(b,t)=>{const o=Vue.resolveComponent("el-switch"),n=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createTextVNode(" switch parent border: "),Vue.createVNode(o,{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e)},null,8,["modelValue"]),Vue.createTextVNode(" switch child border: "),Vue.createVNode(o,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=e=>l.value=e)},null,8,["modelValue"]),Vue.createVNode(n,{data:Vue.unref(r),columns:s,border:a.value},{expand:Vue.withCtx(({row:e})=>[Vue.createElementVNode("div",u,[Vue.createElementVNode("p",p,"State: "+Vue.toDisplayString(e.state),1),Vue.createElementVNode("p",c,"City: "+Vue.toDisplayString(e.city),1),Vue.createElementVNode("p",V,"Address: "+Vue.toDisplayString(e.address),1),Vue.createElementVNode("p",i,"Zip: "+Vue.toDisplayString(e.zip),1),m,Vue.createVNode(n,{data:e.family,columns:d,border:l.value},null,8,["data","border"])])]),_:1},8,["data","border"])])}}});export{h as _}; diff --git a/dist/static/js/expand.vue_vue_type_script_setup_true_lang-72453caf.js b/dist/static/js/expand.vue_vue_type_script_setup_true_lang-72453caf.js new file mode 100644 index 000000000..54bb262b9 --- /dev/null +++ b/dist/static/js/expand.vue_vue_type_script_setup_true_lang-72453caf.js @@ -0,0 +1 @@ +import{c as _}from"./data-7bb4b374.js";import{d as b,r,c,f as h,k as f,h as i,g as l,w as v,i as a,C as s,u as x}from"./index-0dd8d5e4.js";const V={class:"m-4"},y={class:"mb-2"},C={class:"mb-2"},B={class:"mb-2"},N={class:"mb-4"},k=a("h3",null,"Family",-1),A=b({__name:"expand",setup(S){const o=r(!1),d=r(!1),m=[{type:"expand",slot:"expand"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}],u=[{label:"Name",prop:"name"},{label:"State",prop:"state"},{label:"City",prop:"city"},{label:"Address",prop:"address"},{label:"Zip",prop:"zip"}];return(g,t)=>{const n=c("el-switch"),p=c("pure-table");return h(),f("div",null,[i(" switch parent border: "),l(n,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e)},null,8,["modelValue"]),i(" switch child border: "),l(n,{modelValue:d.value,"onUpdate:modelValue":t[1]||(t[1]=e=>d.value=e)},null,8,["modelValue"]),l(p,{data:x(_),columns:m,border:o.value},{expand:v(({row:e})=>[a("div",V,[a("p",y,"State: "+s(e.state),1),a("p",C,"City: "+s(e.city),1),a("p",B,"Address: "+s(e.address),1),a("p",N,"Zip: "+s(e.zip),1),k,l(p,{data:e.family,columns:u,border:d.value},null,8,["data","border"])])]),_:1},8,["data","border"])])}}});export{A as _}; diff --git a/dist/static/js/fail-faba5431.js b/dist/static/js/fail-faba5431.js new file mode 100644 index 000000000..6fa970131 --- /dev/null +++ b/dist/static/js/fail-faba5431.js @@ -0,0 +1 @@ +import{useColumns as d}from"./columns-4858870b.js";import{d as p,c as t,e as i,w as o,f as u,g as s,h as m,u as f,p as h,q as b,i as a,_ as v}from"./index-0dd8d5e4.js";import"./arrow-right-s-line-2977cc7e.js";const x=e=>(h("data-v-3a9748db"),e=e(),b(),e),g=x(()=>a("div",{class:"card-header"},[a("span",{class:"font-medium"},"失败页")],-1)),w=p({name:"Fail",__name:"fail",setup(e){const{columns:c}=d();return(y,C)=>{const n=t("el-button"),_=t("el-result"),r=t("PureDescriptions"),l=t("el-card");return u(),i(l,{shadow:"never"},{header:o(()=>[g]),default:o(()=>[s(_,{icon:"error",title:"提交失败","sub-title":"请核对并修改以下信息后,再重新提交。"},{extra:o(()=>[s(n,{type:"primary"},{default:o(()=>[m("返回修改")]),_:1})]),_:1}),s(r,{columns:f(c),title:"您提交的内容有如下错误:",class:"p-6 ml-10 mr-10 bg-[#fafafa] dark:bg-[#1d1d1d]"},null,8,["columns"])]),_:1})}}});const N=v(w,[["__scopeId","data-v-3a9748db"]]);export{N as default}; diff --git a/dist/static/js/fail-fee57cd2.js b/dist/static/js/fail-fee57cd2.js deleted file mode 100644 index 5cc492e90..000000000 --- a/dist/static/js/fail-fee57cd2.js +++ /dev/null @@ -1 +0,0 @@ -import{useColumns as a}from"./columns-feb8cdc1.js";import{_ as r}from"./index-c61a73ff.js";import"./arrow-right-s-line-bcf0e8c6.js";const u=e=>(Vue.pushScopeId("data-v-3a9748db"),e=e(),Vue.popScopeId(),e),_=u(()=>Vue.createElementVNode("div",{class:"card-header"},[Vue.createElementVNode("span",{class:"font-medium"},"失败页")],-1)),l=Vue.defineComponent({name:"Fail",__name:"fail",setup(e){const{columns:t}=a();return(d,p)=>{const o=Vue.resolveComponent("el-button"),n=Vue.resolveComponent("el-result"),c=Vue.resolveComponent("PureDescriptions"),s=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(s,{shadow:"never"},{header:Vue.withCtx(()=>[_]),default:Vue.withCtx(()=>[Vue.createVNode(n,{icon:"error",title:"提交失败","sub-title":"请核对并修改以下信息后,再重新提交。"},{extra:Vue.withCtx(()=>[Vue.createVNode(o,{type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode("返回修改")]),_:1})]),_:1}),Vue.createVNode(c,{columns:Vue.unref(t),title:"您提交的内容有如下错误:",class:"p-6 ml-10 mr-10 bg-[#fafafa] dark:bg-[#1d1d1d]"},null,8,["columns"])]),_:1})}}});const f=r(l,[["__scopeId","data-v-3a9748db"]]);export{f as default}; diff --git a/dist/static/js/filters-73e71ffe.js b/dist/static/js/filters-73e71ffe.js new file mode 100644 index 000000000..b63eb1d1c --- /dev/null +++ b/dist/static/js/filters-73e71ffe.js @@ -0,0 +1 @@ +import{_ as m}from"./filters.vue_vue_type_script_setup_true_lang-4819fc0e.js";import"./index-0dd8d5e4.js";export{m as default}; diff --git a/dist/static/js/filters-ad96158d.js b/dist/static/js/filters-ad96158d.js deleted file mode 100644 index 50c047649..000000000 --- a/dist/static/js/filters-ad96158d.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as f}from"./filters.vue_vue_type_script_setup_true_lang-28ab2539.js";export{f as default}; diff --git a/dist/static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js b/dist/static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js deleted file mode 100644 index 69148c314..000000000 --- a/dist/static/js/filters.vue_vue_type_script_setup_true_lang-28ab2539.js +++ /dev/null @@ -1 +0,0 @@ -const m=Vue.defineComponent({__name:"filters",setup(i){const l=Vue.ref(),r=e=>{const{clearFilter:t}=l.value.getTableRef();t(e)},s=()=>{r(["date"])},c=[{label:"日期",prop:"date",sortable:!0,columnKey:"date",filters:[{text:"2016-05-01",value:"2016-05-01"},{text:"2016-05-02",value:"2016-05-02"},{text:"2016-05-03",value:"2016-05-03"},{text:"2016-05-04",value:"2016-05-04"}],filterMethod:(e,t,o)=>{const a=o.property;return t[a]===e}},{label:"姓名",prop:"name"},{label:"地址",prop:"address"},{label:"标签",prop:"tag",filters:[{text:"Home",value:"Home"},{text:"Office",value:"Office"}],filterMethod:(e,t)=>t.tag===e,filterPlacement:"bottom-end",slot:"tag"}],u=[{date:"2016-05-03",name:"Tom",address:"No. 189, Grove St, Los Angeles",tag:"Home"},{date:"2016-05-02",name:"Tom",address:"No. 189, Grove St, Los Angeles",tag:"Office"},{date:"2016-05-04",name:"Tom",address:"No. 189, Grove St, Los Angeles",tag:"Home"},{date:"2016-05-01",name:"Tom",address:"No. 189, Grove St, Los Angeles",tag:"Office"}];return(e,t)=>{const o=Vue.resolveComponent("el-button"),a=Vue.resolveComponent("el-tag"),d=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(o,{onClick:s},{default:Vue.withCtx(()=>[Vue.createTextVNode("reset date filter")]),_:1}),Vue.createVNode(o,{onClick:r},{default:Vue.withCtx(()=>[Vue.createTextVNode("reset all filters")]),_:1}),Vue.createVNode(d,{ref_key:"tableRef",ref:l,"row-key":"date",data:u,columns:c},{tag:Vue.withCtx(({row:n})=>[Vue.createVNode(a,{type:n.tag==="Home"?"":"success","disable-transitions":""},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(n.tag),1)]),_:2},1032,["type"])]),_:1},512)])}}});export{m as _}; diff --git a/dist/static/js/filters.vue_vue_type_script_setup_true_lang-4819fc0e.js b/dist/static/js/filters.vue_vue_type_script_setup_true_lang-4819fc0e.js new file mode 100644 index 000000000..2ed8313f0 --- /dev/null +++ b/dist/static/js/filters.vue_vue_type_script_setup_true_lang-4819fc0e.js @@ -0,0 +1 @@ +import{d as _,r as g,c as s,f as b,k as v,g as o,w as l,h as n,C as x}from"./index-0dd8d5e4.js";const C=_({__name:"filters",setup(y){const c=g(),d=e=>{const{clearFilter:t}=c.value.getTableRef();t(e)},i=()=>{d(["date"])},m=[{label:"日期",prop:"date",sortable:!0,columnKey:"date",filters:[{text:"2016-05-01",value:"2016-05-01"},{text:"2016-05-02",value:"2016-05-02"},{text:"2016-05-03",value:"2016-05-03"},{text:"2016-05-04",value:"2016-05-04"}],filterMethod:(e,t,a)=>{const r=a.property;return t[r]===e}},{label:"姓名",prop:"name"},{label:"地址",prop:"address"},{label:"标签",prop:"tag",filters:[{text:"Home",value:"Home"},{text:"Office",value:"Office"}],filterMethod:(e,t)=>t.tag===e,filterPlacement:"bottom-end",slot:"tag"}],p=[{date:"2016-05-03",name:"Tom",address:"No. 189, Grove St, Los Angeles",tag:"Home"},{date:"2016-05-02",name:"Tom",address:"No. 189, Grove St, Los Angeles",tag:"Office"},{date:"2016-05-04",name:"Tom",address:"No. 189, Grove St, Los Angeles",tag:"Home"},{date:"2016-05-01",name:"Tom",address:"No. 189, Grove St, Los Angeles",tag:"Office"}];return(e,t)=>{const a=s("el-button"),r=s("el-tag"),u=s("pure-table");return b(),v("div",null,[o(a,{onClick:i},{default:l(()=>[n("reset date filter")]),_:1}),o(a,{onClick:d},{default:l(()=>[n("reset all filters")]),_:1}),o(u,{ref_key:"tableRef",ref:c,"row-key":"date",data:p,columns:m},{tag:l(({row:f})=>[o(r,{type:f.tag==="Home"?"":"success","disable-transitions":""},{default:l(()=>[n(x(f.tag),1)]),_:2},1032,["type"])]),_:1},512)])}}});export{C as _}; diff --git a/dist/static/js/fixColumn-0a0ff886.js b/dist/static/js/fixColumn-0a0ff886.js deleted file mode 100644 index 59ffdec90..000000000 --- a/dist/static/js/fixColumn-0a0ff886.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./fixColumn.vue_vue_type_script_setup_true_lang-8f46e4a1.js";import"./data-5ec60fc2.js";import"./index-c61a73ff.js";export{o as default}; diff --git a/dist/static/js/fixColumn-26d38edf.js b/dist/static/js/fixColumn-26d38edf.js new file mode 100644 index 000000000..08ad2b724 --- /dev/null +++ b/dist/static/js/fixColumn-26d38edf.js @@ -0,0 +1 @@ +import{_ as o}from"./fixColumn.vue_vue_type_script_setup_true_lang-5b704527.js";import"./data-7bb4b374.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/fixColumn.vue_vue_type_script_setup_true_lang-5b704527.js b/dist/static/js/fixColumn.vue_vue_type_script_setup_true_lang-5b704527.js new file mode 100644 index 000000000..17ae214ee --- /dev/null +++ b/dist/static/js/fixColumn.vue_vue_type_script_setup_true_lang-5b704527.js @@ -0,0 +1 @@ +import{a as e}from"./data-7bb4b374.js";import{d as m,c as n,f as u,e as _,w as a,g as i,h as r,u as t}from"./index-0dd8d5e4.js";const x=m({__name:"fixColumn",props:{height:{default:null}},setup(p){const o=p,s=[{label:"日期",prop:"date",width:"260",fixed:!0},{label:"姓名",prop:"name",width:"260"},{label:"地区",prop:"state",width:"260"},{label:"城市",prop:"city",width:"260"},{label:"地址",prop:"address",width:"260"},{label:"邮编",prop:"post-code",width:"260"},{label:"操作",width:"120",fixed:"right",slot:"operation"}];function f(c){}return(c,b)=>{const l=n("el-button"),d=n("pure-table");return u(),_(d,{data:o.height?t(e).concat(t(e)).concat(t(e)):t(e),columns:s,height:o.height},{operation:a(({row:h})=>[i(l,{link:"",type:"primary",size:"small",onClick:w=>void 0},{default:a(()=>[r(" Detail ")]),_:2},1032,["onClick"]),i(l,{link:"",type:"primary",size:"small"},{default:a(()=>[r("Edit")]),_:1})]),_:1},8,["data","height"])}}});export{x as _}; diff --git a/dist/static/js/fixColumn.vue_vue_type_script_setup_true_lang-8f46e4a1.js b/dist/static/js/fixColumn.vue_vue_type_script_setup_true_lang-8f46e4a1.js deleted file mode 100644 index bfda84623..000000000 --- a/dist/static/js/fixColumn.vue_vue_type_script_setup_true_lang-8f46e4a1.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e}from"./data-5ec60fc2.js";const h=Vue.defineComponent({__name:"fixColumn",props:{height:{default:null}},setup(a){const t=a,n=[{label:"日期",prop:"date",width:"260",fixed:!0},{label:"姓名",prop:"name",width:"260"},{label:"地区",prop:"state",width:"260"},{label:"城市",prop:"city",width:"260"},{label:"地址",prop:"address",width:"260"},{label:"邮编",prop:"post-code",width:"260"},{label:"操作",width:"120",fixed:"right",slot:"operation"}];function i(l){}return(l,u)=>{const o=Vue.resolveComponent("el-button"),r=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(r,{data:t.height?Vue.unref(e).concat(Vue.unref(e)).concat(Vue.unref(e)):Vue.unref(e),columns:n,height:t.height},{operation:Vue.withCtx(({row:p})=>[Vue.createVNode(o,{link:"",type:"primary",size:"small",onClick:c=>void 0},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Detail ")]),_:2},1032,["onClick"]),Vue.createVNode(o,{link:"",type:"primary",size:"small"},{default:Vue.withCtx(()=>[Vue.createTextVNode("Edit")]),_:1})]),_:1},8,["data","height"])}}});export{h as _}; diff --git a/dist/static/js/fixHeader-7b66ac91.js b/dist/static/js/fixHeader-7b66ac91.js new file mode 100644 index 000000000..c250eee19 --- /dev/null +++ b/dist/static/js/fixHeader-7b66ac91.js @@ -0,0 +1 @@ +import{_ as o}from"./fixHeader.vue_vue_type_script_setup_true_lang-c5d733cd.js";import"./data-7bb4b374.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/fixHeader-ce0b6275.js b/dist/static/js/fixHeader-ce0b6275.js deleted file mode 100644 index 072a4968d..000000000 --- a/dist/static/js/fixHeader-ce0b6275.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./fixHeader.vue_vue_type_script_setup_true_lang-b89a2c5c.js";import"./data-5ec60fc2.js";import"./index-c61a73ff.js";export{o as default}; diff --git a/dist/static/js/fixHeader.vue_vue_type_script_setup_true_lang-b89a2c5c.js b/dist/static/js/fixHeader.vue_vue_type_script_setup_true_lang-b89a2c5c.js deleted file mode 100644 index 9d1b43786..000000000 --- a/dist/static/js/fixHeader.vue_vue_type_script_setup_true_lang-b89a2c5c.js +++ /dev/null @@ -1 +0,0 @@ -import{t as e}from"./data-5ec60fc2.js";const u=Vue.defineComponent({__name:"fixHeader",setup(n){const a=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(o,r)=>{const t=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(t,{data:Vue.unref(e).concat(Vue.unref(e)).concat(Vue.unref(e)),columns:a,height:"360"},null,8,["data"])}}});export{u as _}; diff --git a/dist/static/js/fixHeader.vue_vue_type_script_setup_true_lang-c5d733cd.js b/dist/static/js/fixHeader.vue_vue_type_script_setup_true_lang-c5d733cd.js new file mode 100644 index 000000000..9cd80c6d1 --- /dev/null +++ b/dist/static/js/fixHeader.vue_vue_type_script_setup_true_lang-c5d733cd.js @@ -0,0 +1 @@ +import{t as e}from"./data-7bb4b374.js";import{d as n,c as r,f as p,e as c,u as a}from"./index-0dd8d5e4.js";const d=n({__name:"fixHeader",setup(s){const o=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(l,_)=>{const t=r("pure-table");return p(),c(t,{data:a(e).concat(a(e)).concat(a(e)),columns:o,height:"360"},null,8,["data"])}}});export{d as _}; diff --git a/dist/static/js/fluidHeight-54a7bb59.js b/dist/static/js/fluidHeight-54a7bb59.js deleted file mode 100644 index 68693b82f..000000000 --- a/dist/static/js/fluidHeight-54a7bb59.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./fluidHeight.vue_vue_type_script_setup_true_lang-91bcfb99.js";import"./data-5ec60fc2.js";import"./index-c61a73ff.js";export{o as default}; diff --git a/dist/static/js/fluidHeight-8db64373.js b/dist/static/js/fluidHeight-8db64373.js new file mode 100644 index 000000000..dc6f58ca0 --- /dev/null +++ b/dist/static/js/fluidHeight-8db64373.js @@ -0,0 +1 @@ +import{_ as o}from"./fluidHeight.vue_vue_type_script_setup_true_lang-88785cb7.js";import"./index-0dd8d5e4.js";import"./data-7bb4b374.js";export{o as default}; diff --git a/dist/static/js/fluidHeight.vue_vue_type_script_setup_true_lang-88785cb7.js b/dist/static/js/fluidHeight.vue_vue_type_script_setup_true_lang-88785cb7.js new file mode 100644 index 000000000..7739458c6 --- /dev/null +++ b/dist/static/js/fluidHeight.vue_vue_type_script_setup_true_lang-88785cb7.js @@ -0,0 +1 @@ +import{d as _,r as u,c as n,f as h,k as b,g as a,w as o,aY as f,h as r,bo as w}from"./index-0dd8d5e4.js";import{a as v}from"./data-7bb4b374.js";const y=_({__name:"fluidHeight",setup(C){const i=[{label:"日期",prop:"date",width:"260",fixed:!0},{label:"姓名",prop:"name",width:"260"},{label:"地区",prop:"state",width:"260"},{label:"城市",prop:"city",width:"260"},{label:"地址",prop:"address",width:"260"},{label:"邮编",prop:"post-code",width:"260"},{label:"操作",width:"120",fixed:"right",slot:"operation"}],e=new Date,t=u(v),d=s=>{t.value.splice(s,1)},p=()=>{e.setDate(e.getDate()+1),t.value.push({date:w(e).format("YYYY-MM-DD"),name:"Tom",address:"No. 189, Grove St, Los Angeles",state:"California",city:"Los Angeles","post-code":"CA 90036"})};return(s,g)=>{const l=n("el-button"),c=n("pure-table");return h(),b("div",null,[a(c,{data:t.value,columns:i,maxHeight:"500"},{operation:o(({$index:m})=>[a(l,{link:"",type:"primary",size:"small",onClick:f(k=>d(m),["prevent"])},{default:o(()=>[r(" Remove ")]),_:2},1032,["onClick"])]),_:1},8,["data"]),a(l,{class:"mt-4",style:{width:"100%"},onClick:p},{default:o(()=>[r(" Add Item ")]),_:1})])}}});export{y as _}; diff --git a/dist/static/js/fluidHeight.vue_vue_type_script_setup_true_lang-91bcfb99.js b/dist/static/js/fluidHeight.vue_vue_type_script_setup_true_lang-91bcfb99.js deleted file mode 100644 index 6e67d115b..000000000 --- a/dist/static/js/fluidHeight.vue_vue_type_script_setup_true_lang-91bcfb99.js +++ /dev/null @@ -1 +0,0 @@ -import{a as i}from"./data-5ec60fc2.js";const V=Vue.defineComponent({__name:"fluidHeight",setup(p){const l=[{label:"日期",prop:"date",width:"260",fixed:!0},{label:"姓名",prop:"name",width:"260"},{label:"地区",prop:"state",width:"260"},{label:"城市",prop:"city",width:"260"},{label:"地址",prop:"address",width:"260"},{label:"邮编",prop:"post-code",width:"260"},{label:"操作",width:"120",fixed:"right",slot:"operation"}],e=new Date,t=Vue.ref(i),n=o=>{t.value.splice(o,1)},r=()=>{e.setDate(e.getDate()+1),t.value.push({date:dayjs(e).format("YYYY-MM-DD"),name:"Tom",address:"No. 189, Grove St, Los Angeles",state:"California",city:"Los Angeles","post-code":"CA 90036"})};return(o,c)=>{const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(s,{data:t.value,columns:l,maxHeight:"500"},{operation:Vue.withCtx(({$index:d})=>[Vue.createVNode(a,{link:"",type:"primary",size:"small",onClick:Vue.withModifiers(u=>n(d),["prevent"])},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Remove ")]),_:2},1032,["onClick"])]),_:1},8,["data"]),Vue.createVNode(a,{class:"mt-4",style:{width:"100%"},onClick:r},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Add Item ")]),_:1})])}}});export{V as _}; diff --git a/dist/static/js/form-3aa257b6.js b/dist/static/js/form-3aa257b6.js deleted file mode 100644 index be5f41186..000000000 --- a/dist/static/js/form-3aa257b6.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./form.vue_vue_type_script_setup_true_lang-910ce83a.js";import"./index-c61a73ff.js";export{m as default}; diff --git a/dist/static/js/form-81ec7fbb.js b/dist/static/js/form-81ec7fbb.js new file mode 100644 index 000000000..cb2238913 --- /dev/null +++ b/dist/static/js/form-81ec7fbb.js @@ -0,0 +1 @@ +import{_ as m}from"./form.vue_vue_type_script_setup_true_lang-26a36b44.js";import"./index-0dd8d5e4.js";export{m as default}; diff --git a/dist/static/js/form-a3057bb7.js b/dist/static/js/form-a3057bb7.js deleted file mode 100644 index b370c5988..000000000 --- a/dist/static/js/form-a3057bb7.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as f}from"./form.vue_vue_type_script_setup_true_lang-ef5d82af.js";export{f as default}; diff --git a/dist/static/js/form-c4e26200.js b/dist/static/js/form-c4e26200.js new file mode 100644 index 000000000..2f455cb3d --- /dev/null +++ b/dist/static/js/form-c4e26200.js @@ -0,0 +1 @@ +import{_ as m}from"./form.vue_vue_type_script_setup_true_lang-e871bdbd.js";import"./index-0dd8d5e4.js";export{m as default}; diff --git a/dist/static/js/form.vue_vue_type_script_setup_true_lang-26a36b44.js b/dist/static/js/form.vue_vue_type_script_setup_true_lang-26a36b44.js new file mode 100644 index 000000000..6d1fc8268 --- /dev/null +++ b/dist/static/js/form.vue_vue_type_script_setup_true_lang-26a36b44.js @@ -0,0 +1 @@ +import{a7 as B,bt as I,bx as R,d as g,L as S,by as D,an as E,x as v,r as _,c as i,f as b,e as N,w as l,g as e,u as s,i as F,C as V,k as L,ae as O,A as P}from"./index-0dd8d5e4.js";const $=B({name:[{required:!0,message:"部门名称为必填项",trigger:"blur"}],phone:[{validator:(u,r,n)=>{r===""||I(r)?n():n(new Error("请输入正确的手机号码格式"))},trigger:"blur"}],email:[{validator:(u,r,n)=>{r===""||R(r)?n():n(new Error("请输入正确的邮箱格式"))},trigger:"blur"}]}),d=g({name:"ReCol",props:{value:{type:Number,default:24}},render(){const u=this.$attrs,r=this.value;return S(D,{xs:r,sm:r,md:r,lg:r,xl:r,...u},{default:()=>this.$slots.default()})}});function q(){const{isDark:u}=E(),r=v(()=>({"--el-switch-on-color":"#6abe39","--el-switch-off-color":"#e84749"})),n=v(()=>f=>f===1?{"--el-tag-text-color":u.value?"#6abe39":"#389e0d","--el-tag-bg-color":u.value?"#172412":"#f6ffed","--el-tag-border-color":u.value?"#274a17":"#b7eb8f"}:{"--el-tag-text-color":u.value?"#e84749":"#cf1322","--el-tag-bg-color":u.value?"#2b1316":"#fff1f0","--el-tag-border-color":u.value?"#58191c":"#ffa39e"});return{isDark:u,switchStyle:r,tagStyle:n}}const z={key:0},j=g({__name:"form",props:{formInline:{default:()=>({higherDeptOptions:[],parentId:0,name:"",principal:"",phone:"",email:"",sort:0,status:1,remark:""})}},setup(u,{expose:r}){const n=u,f=_(),{switchStyle:x}=q(),a=_(n.formInline);function h(){return f.value}return r({getRef:h}),(A,o)=>{const w=i("el-cascader"),m=i("el-form-item"),p=i("el-input"),y=i("el-input-number"),U=i("el-switch"),k=i("el-row"),C=i("el-form");return b(),N(C,{ref_key:"ruleFormRef",ref:f,model:a.value,rules:s($),"label-width":"82px"},{default:l(()=>[e(k,{gutter:30},{default:l(()=>[e(s(d),null,{default:l(()=>[e(m,{label:"上级部门"},{default:l(()=>[e(w,{class:"w-full",modelValue:a.value.parentId,"onUpdate:modelValue":o[0]||(o[0]=t=>a.value.parentId=t),options:a.value.higherDeptOptions,props:{value:"id",label:"name",emitPath:!1,checkStrictly:!0},clearable:"",filterable:"",placeholder:"请选择上级部门"},{default:l(({node:t,data:c})=>[F("span",null,V(c.name),1),t.isLeaf?O("",!0):(b(),L("span",z," ("+V(c.children.length)+") ",1))]),_:1},8,["modelValue","options"])]),_:1})]),_:1}),e(s(d),{value:12,xs:24,sm:24},{default:l(()=>[e(m,{label:"部门名称",prop:"name"},{default:l(()=>[e(p,{modelValue:a.value.name,"onUpdate:modelValue":o[1]||(o[1]=t=>a.value.name=t),clearable:"",placeholder:"请输入部门名称"},null,8,["modelValue"])]),_:1})]),_:1}),e(s(d),{value:12,xs:24,sm:24},{default:l(()=>[e(m,{label:"部门负责人"},{default:l(()=>[e(p,{modelValue:a.value.principal,"onUpdate:modelValue":o[2]||(o[2]=t=>a.value.principal=t),clearable:"",placeholder:"请输入部门负责人"},null,8,["modelValue"])]),_:1})]),_:1}),e(s(d),{value:12,xs:24,sm:24},{default:l(()=>[e(m,{label:"手机号",prop:"phone"},{default:l(()=>[e(p,{modelValue:a.value.phone,"onUpdate:modelValue":o[3]||(o[3]=t=>a.value.phone=t),clearable:"",placeholder:"请输入手机号"},null,8,["modelValue"])]),_:1})]),_:1}),e(s(d),{value:12,xs:24,sm:24},{default:l(()=>[e(m,{label:"邮箱",prop:"email"},{default:l(()=>[e(p,{modelValue:a.value.email,"onUpdate:modelValue":o[4]||(o[4]=t=>a.value.email=t),clearable:"",placeholder:"请输入邮箱"},null,8,["modelValue"])]),_:1})]),_:1}),e(s(d),{value:12,xs:24,sm:24},{default:l(()=>[e(m,{label:"排序"},{default:l(()=>[e(y,{modelValue:a.value.sort,"onUpdate:modelValue":o[5]||(o[5]=t=>a.value.sort=t),min:0,max:9999,"controls-position":"right"},null,8,["modelValue"])]),_:1})]),_:1}),e(s(d),{value:12,xs:24,sm:24},{default:l(()=>[e(m,{label:"部门状态"},{default:l(()=>[e(U,{modelValue:a.value.status,"onUpdate:modelValue":o[6]||(o[6]=t=>a.value.status=t),"inline-prompt":"","active-value":1,"inactive-value":0,"active-text":"启用","inactive-text":"停用",style:P(s(x))},null,8,["modelValue","style"])]),_:1})]),_:1}),e(s(d),null,{default:l(()=>[e(m,{label:"备注"},{default:l(()=>[e(p,{modelValue:a.value.remark,"onUpdate:modelValue":o[7]||(o[7]=t=>a.value.remark=t),placeholder:"请输入备注信息",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])}}});export{j as _,q as u}; diff --git a/dist/static/js/form.vue_vue_type_script_setup_true_lang-910ce83a.js b/dist/static/js/form.vue_vue_type_script_setup_true_lang-910ce83a.js deleted file mode 100644 index e59f3792b..000000000 --- a/dist/static/js/form.vue_vue_type_script_setup_true_lang-910ce83a.js +++ /dev/null @@ -1 +0,0 @@ -import{aj as h,an as _,B as w}from"./index-c61a73ff.js";const C=Vue.reactive({name:[{required:!0,message:"部门名称为必填项",trigger:"blur"}],phone:[{validator:(o,u,a)=>{u===""||h(u)?a():a(new Error("请输入正确的手机号码格式"))},trigger:"blur"}],email:[{validator:(o,u,a)=>{u===""||_(u)?a():a(new Error("请输入正确的邮箱格式"))},trigger:"blur"}]}),n=Vue.defineComponent({name:"ReCol",props:{value:{type:Number,default:24}},render(){const o=this.$attrs,u=this.value;return Vue.h(ElementPlus.ElCol,{xs:u,sm:u,md:u,lg:u,xl:u,...o},{default:()=>this.$slots.default()})}});function b(){const{isDark:o}=w(),u=Vue.computed(()=>({"--el-switch-on-color":"#6abe39","--el-switch-off-color":"#e84749"})),a=Vue.computed(()=>d=>d===1?{"--el-tag-text-color":o.value?"#6abe39":"#389e0d","--el-tag-bg-color":o.value?"#172412":"#f6ffed","--el-tag-border-color":o.value?"#274a17":"#b7eb8f"}:{"--el-tag-text-color":o.value?"#e84749":"#cf1322","--el-tag-bg-color":o.value?"#2b1316":"#fff1f0","--el-tag-border-color":o.value?"#58191c":"#ffa39e"});return{isDark:o,switchStyle:u,tagStyle:a}}const N={key:0},U=Vue.defineComponent({__name:"form",props:{formInline:{default:()=>({higherDeptOptions:[],parentId:0,name:"",principal:"",phone:"",email:"",sort:0,status:1,remark:""})}},setup(o,{expose:u}){const a=o,d=Vue.ref(),{switchStyle:m}=b(),e=Vue.ref(a.formInline);function i(){return d.value}return u({getRef:i}),(g,t)=>{const p=Vue.resolveComponent("el-cascader"),r=Vue.resolveComponent("el-form-item"),V=Vue.resolveComponent("el-input"),f=Vue.resolveComponent("el-input-number"),c=Vue.resolveComponent("el-switch"),v=Vue.resolveComponent("el-row"),x=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(x,{ref_key:"ruleFormRef",ref:d,model:e.value,rules:Vue.unref(C),"label-width":"82px"},{default:Vue.withCtx(()=>[Vue.createVNode(v,{gutter:30},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(n),null,{default:Vue.withCtx(()=>[Vue.createVNode(r,{label:"上级部门"},{default:Vue.withCtx(()=>[Vue.createVNode(p,{class:"w-full",modelValue:e.value.parentId,"onUpdate:modelValue":t[0]||(t[0]=l=>e.value.parentId=l),options:e.value.higherDeptOptions,props:{value:"id",label:"name",emitPath:!1,checkStrictly:!0},clearable:"",filterable:"",placeholder:"请选择上级部门"},{default:Vue.withCtx(({node:l,data:s})=>[Vue.createElementVNode("span",null,Vue.toDisplayString(s.name),1),l.isLeaf?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("span",N," ("+Vue.toDisplayString(s.children.length)+") ",1))]),_:1},8,["modelValue","options"])]),_:1})]),_:1}),Vue.createVNode(Vue.unref(n),{value:12,xs:24,sm:24},{default:Vue.withCtx(()=>[Vue.createVNode(r,{label:"部门名称",prop:"name"},{default:Vue.withCtx(()=>[Vue.createVNode(V,{modelValue:e.value.name,"onUpdate:modelValue":t[1]||(t[1]=l=>e.value.name=l),clearable:"",placeholder:"请输入部门名称"},null,8,["modelValue"])]),_:1})]),_:1}),Vue.createVNode(Vue.unref(n),{value:12,xs:24,sm:24},{default:Vue.withCtx(()=>[Vue.createVNode(r,{label:"部门负责人"},{default:Vue.withCtx(()=>[Vue.createVNode(V,{modelValue:e.value.principal,"onUpdate:modelValue":t[2]||(t[2]=l=>e.value.principal=l),clearable:"",placeholder:"请输入部门负责人"},null,8,["modelValue"])]),_:1})]),_:1}),Vue.createVNode(Vue.unref(n),{value:12,xs:24,sm:24},{default:Vue.withCtx(()=>[Vue.createVNode(r,{label:"手机号",prop:"phone"},{default:Vue.withCtx(()=>[Vue.createVNode(V,{modelValue:e.value.phone,"onUpdate:modelValue":t[3]||(t[3]=l=>e.value.phone=l),clearable:"",placeholder:"请输入手机号"},null,8,["modelValue"])]),_:1})]),_:1}),Vue.createVNode(Vue.unref(n),{value:12,xs:24,sm:24},{default:Vue.withCtx(()=>[Vue.createVNode(r,{label:"邮箱",prop:"email"},{default:Vue.withCtx(()=>[Vue.createVNode(V,{modelValue:e.value.email,"onUpdate:modelValue":t[4]||(t[4]=l=>e.value.email=l),clearable:"",placeholder:"请输入邮箱"},null,8,["modelValue"])]),_:1})]),_:1}),Vue.createVNode(Vue.unref(n),{value:12,xs:24,sm:24},{default:Vue.withCtx(()=>[Vue.createVNode(r,{label:"排序"},{default:Vue.withCtx(()=>[Vue.createVNode(f,{modelValue:e.value.sort,"onUpdate:modelValue":t[5]||(t[5]=l=>e.value.sort=l),min:0,max:9999,"controls-position":"right"},null,8,["modelValue"])]),_:1})]),_:1}),Vue.createVNode(Vue.unref(n),{value:12,xs:24,sm:24},{default:Vue.withCtx(()=>[Vue.createVNode(r,{label:"部门状态"},{default:Vue.withCtx(()=>[Vue.createVNode(c,{modelValue:e.value.status,"onUpdate:modelValue":t[6]||(t[6]=l=>e.value.status=l),"inline-prompt":"","active-value":1,"inactive-value":0,"active-text":"启用","inactive-text":"停用",style:Vue.normalizeStyle(Vue.unref(m))},null,8,["modelValue","style"])]),_:1})]),_:1}),Vue.createVNode(Vue.unref(n),null,{default:Vue.withCtx(()=>[Vue.createVNode(r,{label:"备注"},{default:Vue.withCtx(()=>[Vue.createVNode(V,{modelValue:e.value.remark,"onUpdate:modelValue":t[7]||(t[7]=l=>e.value.remark=l),placeholder:"请输入备注信息",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])}}});export{U as _,b as u}; diff --git a/dist/static/js/form.vue_vue_type_script_setup_true_lang-e871bdbd.js b/dist/static/js/form.vue_vue_type_script_setup_true_lang-e871bdbd.js new file mode 100644 index 000000000..05bfc3d8c --- /dev/null +++ b/dist/static/js/form.vue_vue_type_script_setup_true_lang-e871bdbd.js @@ -0,0 +1 @@ +import{d as c,r as d,c as o,f,e as i,w as t,g as e}from"./index-0dd8d5e4.js";const w=c({__name:"form",props:{formInline:{default:()=>({user:"",region:""})}},setup(m){const l=d(m.formInline);return(V,n)=>{const u=o("el-input"),s=o("el-form-item"),a=o("el-option"),p=o("el-select"),_=o("el-form");return f(),i(_,{model:l.value},{default:t(()=>[e(s,{label:"姓名"},{default:t(()=>[e(u,{class:"!w-[220px]",modelValue:l.value.user,"onUpdate:modelValue":n[0]||(n[0]=r=>l.value.user=r),placeholder:"请输入姓名"},null,8,["modelValue"])]),_:1}),e(s,{label:"城市"},{default:t(()=>[e(p,{class:"!w-[220px]",modelValue:l.value.region,"onUpdate:modelValue":n[1]||(n[1]=r=>l.value.region=r),placeholder:"请选择城市"},{default:t(()=>[e(a,{label:"上海",value:"上海"}),e(a,{label:"浙江",value:"浙江"}),e(a,{label:"深圳",value:"深圳"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])}}});export{w as _}; diff --git a/dist/static/js/form.vue_vue_type_script_setup_true_lang-ef5d82af.js b/dist/static/js/form.vue_vue_type_script_setup_true_lang-ef5d82af.js deleted file mode 100644 index 11d8062a6..000000000 --- a/dist/static/js/form.vue_vue_type_script_setup_true_lang-ef5d82af.js +++ /dev/null @@ -1 +0,0 @@ -const s=Vue.defineComponent({__name:"form",props:{formInline:{default:()=>({user:"",region:""})}},setup(u){const a=u,e=Vue.ref(a.formInline);return(p,o)=>{const r=Vue.resolveComponent("el-input"),n=Vue.resolveComponent("el-form-item"),l=Vue.resolveComponent("el-option"),V=Vue.resolveComponent("el-select"),m=Vue.resolveComponent("el-form");return Vue.openBlock(),Vue.createBlock(m,{model:e.value},{default:Vue.withCtx(()=>[Vue.createVNode(n,{label:"姓名"},{default:Vue.withCtx(()=>[Vue.createVNode(r,{class:"!w-[220px]",modelValue:e.value.user,"onUpdate:modelValue":o[0]||(o[0]=t=>e.value.user=t),placeholder:"请输入姓名"},null,8,["modelValue"])]),_:1}),Vue.createVNode(n,{label:"城市"},{default:Vue.withCtx(()=>[Vue.createVNode(V,{class:"!w-[220px]",modelValue:e.value.region,"onUpdate:modelValue":o[1]||(o[1]=t=>e.value.region=t),placeholder:"请选择城市"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:"上海",value:"上海"}),Vue.createVNode(l,{label:"浙江",value:"浙江"}),Vue.createVNode(l,{label:"深圳",value:"深圳"})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])}}});export{s as _}; diff --git a/dist/static/js/frameView-17abd35a.js b/dist/static/js/frameView-17abd35a.js new file mode 100644 index 000000000..6e11b764c --- /dev/null +++ b/dist/static/js/frameView-17abd35a.js @@ -0,0 +1 @@ +import{d as v,Y as p,r as o,aZ as g,u as e,a as h,j as x,m as k,f as w,k as V,i as R,n as y,_ as B}from"./index-0dd8d5e4.js";const E=["element-loading-text"],L=["src"],S=v({name:"FrameView",__name:"frameView",setup(b){var f,_,l;const{t:m}=p(),r=o(!0),t=g(),c=o(""),i=o(null);(f=e(t.meta))!=null&&f.frameSrc&&(c.value=(_=e(t.meta))==null?void 0:_.frameSrc),((l=e(t.meta))==null?void 0:l.frameLoading)===!1&&n();function n(){r.value=!1}function u(){y(()=>{const a=e(i);if(!a)return;const s=a;s.attachEvent?s.attachEvent("onload",()=>{n()}):a.onload=()=>{n()}})}return h(()=>{u()}),(a,s)=>{const d=x("loading");return k((w(),V("div",{class:"frame","element-loading-text":e(m)("status.hsLoad")},[R("iframe",{src:c.value,class:"frame-iframe",ref_key:"frameRef",ref:i},null,8,L)],8,E)),[[d,r.value]])}}});const I=B(S,[["__scopeId","data-v-94a6f1bc"]]);export{I as default}; diff --git a/dist/static/js/frameView-535a4e9c.js b/dist/static/js/frameView-535a4e9c.js deleted file mode 100644 index dd342f1e3..000000000 --- a/dist/static/js/frameView-535a4e9c.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./index-c61a73ff.js";const d=["element-loading-text"],V=["src"],v=Vue.defineComponent({name:"FrameView",__name:"frameView",setup(p){var c,f,s;const{t:i}=VueI18n.useI18n(),r=Vue.ref(!0),t=VueRouter.useRoute(),o=Vue.ref(""),u=Vue.ref(null);(c=Vue.unref(t.meta))!=null&&c.frameSrc&&(o.value=(f=Vue.unref(t.meta))==null?void 0:f.frameSrc),((s=Vue.unref(t.meta))==null?void 0:s.frameLoading)===!1&&n();function n(){r.value=!1}function l(){Vue.nextTick(()=>{const e=Vue.unref(u);if(!e)return;const a=e;a.attachEvent?a.attachEvent("onload",()=>{n()}):e.onload=()=>{n()}})}return Vue.onMounted(()=>{l()}),(e,a)=>{const _=Vue.resolveDirective("loading");return Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",{class:"frame","element-loading-text":Vue.unref(i)("status.hsLoad")},[Vue.createElementVNode("iframe",{src:o.value,class:"frame-iframe",ref_key:"frameRef",ref:u},null,8,V)],8,d)),[[_,r.value]])}}});const h=m(v,[["__scopeId","data-v-94a6f1bc"]]);export{h as default}; diff --git a/dist/static/js/groupHeader-03d30b86.js b/dist/static/js/groupHeader-03d30b86.js deleted file mode 100644 index 866147bc8..000000000 --- a/dist/static/js/groupHeader-03d30b86.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./groupHeader.vue_vue_type_script_setup_true_lang-1d591a0b.js";import"./data-5ec60fc2.js";import"./index-c61a73ff.js";export{o as default}; diff --git a/dist/static/js/groupHeader-88104433.js b/dist/static/js/groupHeader-88104433.js new file mode 100644 index 000000000..17731219e --- /dev/null +++ b/dist/static/js/groupHeader-88104433.js @@ -0,0 +1 @@ +import{_ as o}from"./groupHeader.vue_vue_type_script_setup_true_lang-4a87b79d.js";import"./data-7bb4b374.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/groupHeader.vue_vue_type_script_setup_true_lang-1d591a0b.js b/dist/static/js/groupHeader.vue_vue_type_script_setup_true_lang-1d591a0b.js deleted file mode 100644 index a77d63e35..000000000 --- a/dist/static/js/groupHeader.vue_vue_type_script_setup_true_lang-1d591a0b.js +++ /dev/null @@ -1 +0,0 @@ -import{a}from"./data-5ec60fc2.js";const p=Vue.defineComponent({__name:"groupHeader",setup(r){const e=[{label:"日期",prop:"date",fixed:!0},{label:"姓名",prop:"name",children:[{label:"地区",children:[{label:"城市",prop:"city"},{label:"地址",prop:"address"}]}]},{label:"邮编",prop:"post-code"}];return(l,t)=>{const o=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(o,{data:Vue.unref(a),columns:e,alignWhole:"center"},null,8,["data"])}}});export{p as _}; diff --git a/dist/static/js/groupHeader.vue_vue_type_script_setup_true_lang-4a87b79d.js b/dist/static/js/groupHeader.vue_vue_type_script_setup_true_lang-4a87b79d.js new file mode 100644 index 000000000..e109fa1fc --- /dev/null +++ b/dist/static/js/groupHeader.vue_vue_type_script_setup_true_lang-4a87b79d.js @@ -0,0 +1 @@ +import{a as o}from"./data-7bb4b374.js";import{d as r,c as l,f as t,e as p,u as n}from"./index-0dd8d5e4.js";const u=r({__name:"groupHeader",setup(c){const e=[{label:"日期",prop:"date",fixed:!0},{label:"姓名",prop:"name",children:[{label:"地区",children:[{label:"城市",prop:"city"},{label:"地址",prop:"address"}]}]},{label:"邮编",prop:"post-code"}];return(s,d)=>{const a=l("pure-table");return t(),p(a,{data:n(o),columns:e,alignWhole:"center"},null,8,["data"])}}});export{u as _}; diff --git a/dist/static/js/high-25613d81.js b/dist/static/js/high-25613d81.js new file mode 100644 index 000000000..b75500c59 --- /dev/null +++ b/dist/static/js/high-25613d81.js @@ -0,0 +1,2 @@ +import{list as k}from"./list-18420425.js";import{d as g,r as y,c as t,e as r,w as e,f as a,i as p,h as i,g as n,k as v,l as x,C,Q as w,ae as B,u as N,F as T,_ as V}from"./index-0dd8d5e4.js";import"./index.vue_vue_type_script_setup_true_lang-80e8a030.js";import"./columns-bbf3abe3.js";import"./data-4845d266.js";import"./index.vue_vue_type_script_setup_true_lang-d5647728.js";import"./columns-2721478e.js";import"./sortable.esm-679e0872.js";import"./index.vue_vue_type_script_setup_true_lang-07f5e3b9.js";import"./columns-9df0a0b6.js";import"./index.vue_vue_type_script_setup_true_lang-316dae94.js";import"./columns-f5c5c5b8.js";import"./message-ac5811da.js";import"./index.vue_vue_type_script_setup_true_lang-b2941bf3.js";import"./columns-5f812485.js";import"./xlsx-e927f539.js";import"./index.vue_vue_type_script_setup_true_lang-376130a5.js";import"./columns-df5d4455.js";import"./edit-pen-37b5ced2.js";import"./check-3815600c.js";import"./index.vue_vue_type_script_setup_true_lang-f7bd604c.js";import"./columns-c20796e3.js";import"./index.vue_vue_type_script_setup_true_lang-22762134.js";import"./columns-58fb2122.js";import"./print-a6e42845.js";import"./index.vue_vue_type_script_setup_true_lang-fa1f2931.js";import"./columns-7cd72d5c.js";import"./index-95b65695.js";import"./index.vue_vue_type_script_setup_true_lang-e40cdb80.js";import"./index.vue_vue_type_script_setup_true_lang-f3b36626.js";import"./columns-3d7dbff3.js";import"./index.vue_vue_type_script_setup_true_lang-c6a3d999.js";import"./columns-7628a2c7.js";const z={class:"card-header"},D={class:"font-medium"},F=g({name:"PureTableHigh",__name:"high",setup($){const l=y(0);function c({index:s}){l.value=s}return(s,E)=>{const _=t("el-link"),d=t("el-alert"),u=t("el-tooltip"),f=t("el-tab-pane"),h=t("el-tabs"),b=t("el-card");return a(),r(b,{shadow:"never"},{header:e(()=>[p("div",z,[p("span",D,[i(" 高级用法全部采用 tsx 语法,充分发挥 "),n(_,{href:"https://github.com/pure-admin/pure-admin-table",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:e(()=>[i(" @pureadmin/table ")]),_:1}),i(" 的灵活性,维护整体表格只需操作 columns 配置即可 ")])])]),default:e(()=>[n(d,{title:`高级用法中所有表格都设置了 row-key ,后端需返回唯一值的字段,比如id 作用:1. 用来优化 Table + 的渲染,尤其当字段在深层结构中;2. 防止拖拽后表格组件内部混乱(拖拽必须设置哦,坑都帮您们踩过啦 ❤️)`,type:"info",closable:!1}),n(h,{onTabClick:c},{default:e(()=>[(a(!0),v(T,null,x(N(k),(o,m)=>(a(),r(f,{key:o.key,lazy:!0},{label:e(()=>[n(u,{content:`(第 ${m+1} 个示例)${o.content}`,placement:"top-end"},{default:e(()=>[p("span",null,C(o.title),1)]),_:2},1032,["content"])]),default:e(()=>[l.value==m?(a(),r(w(o.component),{key:0})):B("",!0)]),_:2},1024))),128))]),_:1})]),_:1})}}});const de=V(F,[["__scopeId","data-v-d1e9a4ec"]]);export{de as default}; diff --git a/dist/static/js/high-5ebc0ab0.js b/dist/static/js/high-5ebc0ab0.js deleted file mode 100644 index 2d43cee38..000000000 --- a/dist/static/js/high-5ebc0ab0.js +++ /dev/null @@ -1,2 +0,0 @@ -import{list as u}from"./list-937f8d1f.js";import{_}from"./index-c61a73ff.js";import"./index.vue_vue_type_script_setup_true_lang-ffe395c1.js";import"./columns-928b7b53.js";import"./data-8e10e21a.js";import"./index.vue_vue_type_script_setup_true_lang-dba0d268.js";import"./columns-174f6fc9.js";import"./sortable.esm-679e0872.js";import"./index.vue_vue_type_script_setup_true_lang-c22a8fe5.js";import"./columns-0893fc98.js";import"./index.vue_vue_type_script_setup_true_lang-57395104.js";import"./columns-db1f92e9.js";import"./message-9ae1daa3.js";import"./index.vue_vue_type_script_setup_true_lang-cf392244.js";import"./columns-e5493833.js";import"./xlsx-e927f539.js";import"./index.vue_vue_type_script_setup_true_lang-2716c923.js";import"./columns-5d6f3a23.js";import"./edit-pen-37b5ced2.js";import"./check-f53d8364.js";import"./index.vue_vue_type_script_setup_true_lang-717fb06e.js";import"./columns-f7651f28.js";import"./index.vue_vue_type_script_setup_true_lang-a932c026.js";import"./columns-49cce1a9.js";import"./print-a6e42845.js";import"./index.vue_vue_type_script_setup_true_lang-e92884ca.js";import"./columns-97dc43c8.js";import"./index-f1e7ee6d.js";import"./index.vue_vue_type_script_setup_true_lang-32e05a0c.js";import"./index.vue_vue_type_script_setup_true_lang-60e264d2.js";import"./columns-d33385ba.js";import"./index.vue_vue_type_script_setup_true_lang-7b4568aa.js";import"./columns-a4182130.js";const s={class:"card-header"},V={class:"font-medium"},d=Vue.defineComponent({name:"PureTableHigh",__name:"high",setup(h){const t=Vue.ref(0);function r({index:o}){t.value=o}return(o,f)=>{const p=Vue.resolveComponent("el-link"),l=Vue.resolveComponent("el-alert"),a=Vue.resolveComponent("el-tooltip"),i=Vue.resolveComponent("el-tab-pane"),c=Vue.resolveComponent("el-tabs"),m=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(m,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",s,[Vue.createElementVNode("span",V,[Vue.createTextVNode(" 高级用法全部采用 tsx 语法,充分发挥 "),Vue.createVNode(p,{href:"https://github.com/pure-admin/pure-admin-table",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" @pureadmin/table ")]),_:1}),Vue.createTextVNode(" 的灵活性,维护整体表格只需操作 columns 配置即可 ")])])]),default:Vue.withCtx(()=>[Vue.createVNode(l,{title:`高级用法中所有表格都设置了 row-key ,后端需返回唯一值的字段,比如id 作用:1. 用来优化 Table - 的渲染,尤其当字段在深层结构中;2. 防止拖拽后表格组件内部混乱(拖拽必须设置哦,坑都帮您们踩过啦 ❤️)`,type:"info",closable:!1}),Vue.createVNode(c,{onTabClick:r},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(u),(e,n)=>(Vue.openBlock(),Vue.createBlock(i,{key:e.key,lazy:!0},{label:Vue.withCtx(()=>[Vue.createVNode(a,{content:`(第 ${n+1} 个示例)${e.content}`,placement:"top-end"},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(e.title),1)]),_:2},1032,["content"])]),default:Vue.withCtx(()=>[t.value==n?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(e.component),{key:0})):Vue.createCommentVNode("",!0)]),_:2},1024))),128))]),_:1})]),_:1})}}});const X=_(d,[["__scopeId","data-v-d1e9a4ec"]]);export{X as default}; diff --git a/dist/static/js/hook-2b5b194c.js b/dist/static/js/hook-2b5b194c.js new file mode 100644 index 000000000..75393b108 --- /dev/null +++ b/dist/static/js/hook-2b5b194c.js @@ -0,0 +1 @@ +import{a7 as i,r as o,x as W,a as w,g as u,c,bo as z,br as M}from"./index-0dd8d5e4.js";import{m as T}from"./message-ac5811da.js";import{a as S}from"./system-5c5ef8e0.js";function j(){const d=i({name:"",code:"",status:""}),s=o([]),n=o(!0),a=o({}),r=i({total:0,pageSize:10,currentPage:1,background:!0}),m=[{label:"序号",type:"index",width:70,fixed:"left"},{label:"角色编号",prop:"id",minWidth:100},{label:"角色名称",prop:"name",minWidth:120},{label:"角色标识",prop:"code",minWidth:150},{label:"角色类型",prop:"type",minWidth:150,cellRenderer:({row:e,props:t})=>u(c("el-tag"),{size:t.size,type:e.type===1?"danger":"",effect:"plain"},{default:()=>[e.type===1?"内置":"自定义"]})},{label:"显示顺序",prop:"sort",minWidth:100},{label:"状态",minWidth:130,cellRenderer:e=>{var t;return u(c("el-switch"),{size:e.props.size==="small"?"small":"default",loading:(t=a.value[e.index])==null?void 0:t.loading,modelValue:e.row.status,"onUpdate:modelValue":C=>e.row.status=C,"active-value":1,"inactive-value":0,"active-text":"已开启","inactive-text":"已关闭","inline-prompt":!0,onChange:()=>g(e)},null)}},{label:"创建时间",minWidth:180,prop:"createTime",formatter:({createTime:e})=>z(e).format("YYYY-MM-DD HH:mm:ss")},{label:"操作",fixed:"right",width:180,slot:"operation"}],p=W(()=>["!h-[20px]","reset-margin","!text-gray-500","dark:!text-white","dark:hover:!text-primary"]);function g({row:e,index:t}){M.confirm(`确认要${e.status===0?"停用":"启用"}${e.name}角色吗?`,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",dangerouslyUseHTMLString:!0,draggable:!0}).then(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!0}),setTimeout(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!1}),T("已成功修改角色状态",{type:"success"})},300)}).catch(()=>{e.status===0?e.status=1:e.status=0})}function h(e){}function f(e){}function v(e){}function b(e){}function y(e){}async function l(){n.value=!0;const{data:e}=await S();s.value=e.list,r.total=e.total,setTimeout(()=>{n.value=!1},500)}const x=e=>{e&&(e.resetFields(),l())};return w(()=>{l()}),{form:d,loading:n,columns:m,dataList:s,pagination:r,buttonClass:p,onSearch:l,resetForm:x,handleUpdate:h,handleDelete:f,handleSizeChange:v,handleCurrentChange:b,handleSelectionChange:y}}export{j as useRole}; diff --git a/dist/static/js/hook-4e63e5b1.js b/dist/static/js/hook-4e63e5b1.js new file mode 100644 index 000000000..38ad1a0f6 --- /dev/null +++ b/dist/static/js/hook-4e63e5b1.js @@ -0,0 +1 @@ +import{a7 as i,r as l,x as W,a as w,g as u,c,bo as z,br as M}from"./index-0dd8d5e4.js";import{m as T}from"./message-ac5811da.js";import{b as S}from"./system-5c5ef8e0.js";function Y(){const d=i({username:"",mobile:"",status:""}),r=l([]),n=l(!0),a=l({}),o=i({total:0,pageSize:10,currentPage:1,background:!0}),m=[{label:"序号",type:"index",width:70,fixed:"left"},{label:"用户编号",prop:"id",minWidth:130},{label:"用户名称",prop:"username",minWidth:130},{label:"用户昵称",prop:"nickname",minWidth:130},{label:"性别",prop:"sex",minWidth:90,cellRenderer:({row:e,props:t})=>u(c("el-tag"),{size:t.size,type:e.sex===1?"danger":"",effect:"plain"},{default:()=>[e.sex===1?"女":"男"]})},{label:"部门",prop:"dept",minWidth:90,formatter:({dept:e})=>e.name},{label:"手机号码",prop:"mobile",minWidth:90},{label:"状态",prop:"status",minWidth:90,cellRenderer:e=>{var t;return u(c("el-switch"),{size:e.props.size==="small"?"small":"default",loading:(t=a.value[e.index])==null?void 0:t.loading,modelValue:e.row.status,"onUpdate:modelValue":C=>e.row.status=C,"active-value":1,"inactive-value":0,"active-text":"已开启","inactive-text":"已关闭","inline-prompt":!0,onChange:()=>g(e)},null)}},{label:"创建时间",minWidth:90,prop:"createTime",formatter:({createTime:e})=>z(e).format("YYYY-MM-DD HH:mm:ss")},{label:"操作",fixed:"right",width:180,slot:"operation"}],p=W(()=>["!h-[20px]","reset-margin","!text-gray-500","dark:!text-white","dark:hover:!text-primary"]);function g({row:e,index:t}){M.confirm(`确认要${e.status===0?"停用":"启用"}${e.username}用户吗?`,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",dangerouslyUseHTMLString:!0,draggable:!0}).then(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!0}),setTimeout(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!1}),T("已成功修改用户状态",{type:"success"})},300)}).catch(()=>{e.status===0?e.status=1:e.status=0})}function h(e){}function f(e){}function v(e){}function b(e){}function x(e){}async function s(){n.value=!0;const{data:e}=await S();r.value=e.list,o.total=e.total,setTimeout(()=>{n.value=!1},500)}const y=e=>{e&&(e.resetFields(),s())};return w(()=>{s()}),{form:d,loading:n,columns:m,dataList:r,pagination:o,buttonClass:p,onSearch:s,resetForm:y,handleUpdate:h,handleDelete:f,handleSizeChange:v,handleCurrentChange:b,handleSelectionChange:x}}export{Y as useUser}; diff --git a/dist/static/js/hook-676946a2.js b/dist/static/js/hook-676946a2.js deleted file mode 100644 index 0fdfdb2d5..000000000 --- a/dist/static/js/hook-676946a2.js +++ /dev/null @@ -1 +0,0 @@ -import{m as V}from"./message-9ae1daa3.js";import{a as b}from"./system-13d4d7cb.js";import"./index-c61a73ff.js";function W(){const i=Vue.reactive({name:"",code:"",status:""}),o=Vue.ref([]),n=Vue.ref(!0),a=Vue.ref({}),r=Vue.reactive({total:0,pageSize:10,currentPage:1,background:!0}),s=[{label:"序号",type:"index",width:70,fixed:"left"},{label:"角色编号",prop:"id",minWidth:100},{label:"角色名称",prop:"name",minWidth:120},{label:"角色标识",prop:"code",minWidth:150},{label:"角色类型",prop:"type",minWidth:150,cellRenderer:({row:e,props:t})=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:t.size,type:e.type===1?"danger":"",effect:"plain"},{default:()=>[e.type===1?"内置":"自定义"]})},{label:"显示顺序",prop:"sort",minWidth:100},{label:"状态",minWidth:130,cellRenderer:e=>{var t;return Vue.createVNode(Vue.resolveComponent("el-switch"),{size:e.props.size==="small"?"small":"default",loading:(t=a.value[e.index])==null?void 0:t.loading,modelValue:e.row.status,"onUpdate:modelValue":v=>e.row.status=v,"active-value":1,"inactive-value":0,"active-text":"已开启","inactive-text":"已关闭","inline-prompt":!0,onChange:()=>c(e)},null)}},{label:"创建时间",minWidth:180,prop:"createTime",formatter:({createTime:e})=>dayjs(e).format("YYYY-MM-DD HH:mm:ss")},{label:"操作",fixed:"right",width:180,slot:"operation"}],u=Vue.computed(()=>["!h-[20px]","reset-margin","!text-gray-500","dark:!text-white","dark:hover:!text-primary"]);function c({row:e,index:t}){ElementPlus.ElMessageBox.confirm(`确认要${e.status===0?"停用":"启用"}${e.name}角色吗?`,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",dangerouslyUseHTMLString:!0,draggable:!0}).then(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!0}),setTimeout(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!1}),V("已成功修改角色状态",{type:"success"})},300)}).catch(()=>{e.status===0?e.status=1:e.status=0})}function d(e){}function m(e){}function p(e){}function g(e){}function h(e){}async function l(){n.value=!0;const{data:e}=await b();o.value=e.list,r.total=e.total,setTimeout(()=>{n.value=!1},500)}const f=e=>{e&&(e.resetFields(),l())};return Vue.onMounted(()=>{l()}),{form:i,loading:n,columns:s,dataList:o,pagination:r,buttonClass:u,onSearch:l,resetForm:f,handleUpdate:d,handleDelete:m,handleSizeChange:p,handleCurrentChange:g,handleSelectionChange:h}}export{W as useRole}; diff --git a/dist/static/js/hook-dbd437de.js b/dist/static/js/hook-dbd437de.js new file mode 100644 index 000000000..4faca34eb --- /dev/null +++ b/dist/static/js/hook-dbd437de.js @@ -0,0 +1 @@ +import{a7 as H,r as u,a as I,g as M,c as S,bo as T,bb as p,bz as W,a0 as Y,K as $,L as z}from"./index-0dd8d5e4.js";import{u as C,_ as F}from"./form.vue_vue_type_script_setup_true_lang-26a36b44.js";import{m as o}from"./message-ac5811da.js";import{g as O}from"./system-5c5ef8e0.js";function j(){const n=H({name:"",status:null}),m=u(),l=u([]),i=u(!0),{tagStyle:r}=C(),d=[{label:"部门名称",prop:"name",width:180,align:"left"},{label:"排序",prop:"sort",minWidth:70},{label:"状态",prop:"status",minWidth:100,cellRenderer:({row:a,props:e})=>M(S("el-tag"),{size:e.size,style:r.value(a.status)},{default:()=>[a.status===1?"启用":"停用"]})},{label:"创建时间",minWidth:200,prop:"createTime",formatter:({createTime:a})=>T(a).format("YYYY-MM-DD HH:mm:ss")},{label:"备注",prop:"remark",minWidth:320},{label:"操作",fixed:"right",width:160,slot:"operation"}];function h(a){}function g(a){a&&(a.resetFields(),s())}async function s(){i.value=!0;const{data:a}=await O();let e=a;p(n.name)||(e=e.filter(t=>t.name.includes(n.name))),p(n.status)||(e=e.filter(t=>t.status===n.status)),l.value=W(e),setTimeout(()=>{i.value=!1},500)}function c(a){if(!a||!a.length)return;const e=[];for(let t=0;tz(F,{ref:m}),beforeSure:(t,{options:v})=>{const y=m.value.getRef(),k=v.props.formInline;function f(){o(`您${a}了部门名称为${k.name}的这条数据`,{type:"success"}),t(),s()}y.validate(R=>{R&&f()})}})}function D(a){o(`您删除了部门名称为${a.name}的这条数据`,{type:"success"}),s()}return I(()=>{s()}),{form:n,loading:i,columns:d,dataList:l,onSearch:s,resetForm:g,openDialog:b,handleDelete:D,handleSelectionChange:h}}export{j as useDept}; diff --git a/dist/static/js/hook-f5f24eb4.js b/dist/static/js/hook-f5f24eb4.js deleted file mode 100644 index 6dccf6088..000000000 --- a/dist/static/js/hook-f5f24eb4.js +++ /dev/null @@ -1 +0,0 @@ -import{m as b}from"./message-9ae1daa3.js";import{b as V}from"./system-13d4d7cb.js";import"./index-c61a73ff.js";function W(){const i=Vue.reactive({username:"",mobile:"",status:""}),r=Vue.ref([]),n=Vue.ref(!0),a=Vue.ref({}),o=Vue.reactive({total:0,pageSize:10,currentPage:1,background:!0}),s=[{label:"序号",type:"index",width:70,fixed:"left"},{label:"用户编号",prop:"id",minWidth:130},{label:"用户名称",prop:"username",minWidth:130},{label:"用户昵称",prop:"nickname",minWidth:130},{label:"性别",prop:"sex",minWidth:90,cellRenderer:({row:e,props:t})=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:t.size,type:e.sex===1?"danger":"",effect:"plain"},{default:()=>[e.sex===1?"女":"男"]})},{label:"部门",prop:"dept",minWidth:90,formatter:({dept:e})=>e.name},{label:"手机号码",prop:"mobile",minWidth:90},{label:"状态",prop:"status",minWidth:90,cellRenderer:e=>{var t;return Vue.createVNode(Vue.resolveComponent("el-switch"),{size:e.props.size==="small"?"small":"default",loading:(t=a.value[e.index])==null?void 0:t.loading,modelValue:e.row.status,"onUpdate:modelValue":v=>e.row.status=v,"active-value":1,"inactive-value":0,"active-text":"已开启","inactive-text":"已关闭","inline-prompt":!0,onChange:()=>c(e)},null)}},{label:"创建时间",minWidth:90,prop:"createTime",formatter:({createTime:e})=>dayjs(e).format("YYYY-MM-DD HH:mm:ss")},{label:"操作",fixed:"right",width:180,slot:"operation"}],u=Vue.computed(()=>["!h-[20px]","reset-margin","!text-gray-500","dark:!text-white","dark:hover:!text-primary"]);function c({row:e,index:t}){ElementPlus.ElMessageBox.confirm(`确认要${e.status===0?"停用":"启用"}${e.username}用户吗?`,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",dangerouslyUseHTMLString:!0,draggable:!0}).then(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!0}),setTimeout(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!1}),b("已成功修改用户状态",{type:"success"})},300)}).catch(()=>{e.status===0?e.status=1:e.status=0})}function d(e){}function m(e){}function p(e){}function g(e){}function h(e){}async function l(){n.value=!0;const{data:e}=await V();r.value=e.list,o.total=e.total,setTimeout(()=>{n.value=!1},500)}const f=e=>{e&&(e.resetFields(),l())};return Vue.onMounted(()=>{l()}),{form:i,loading:n,columns:s,dataList:r,pagination:o,buttonClass:u,onSearch:l,resetForm:f,handleUpdate:d,handleDelete:m,handleSizeChange:p,handleCurrentChange:g,handleSelectionChange:h}}export{W as useUser}; diff --git a/dist/static/js/hook-f735a073.js b/dist/static/js/hook-f735a073.js deleted file mode 100644 index e5131eccd..000000000 --- a/dist/static/js/hook-f735a073.js +++ /dev/null @@ -1 +0,0 @@ -import{u as k,_ as R}from"./form.vue_vue_type_script_setup_true_lang-910ce83a.js";import{a7 as c,ao as H,f as I,K as M}from"./index-c61a73ff.js";import{m as p}from"./message-9ae1daa3.js";import{g as S}from"./system-13d4d7cb.js";function C(){const n=Vue.reactive({name:"",status:null}),u=Vue.ref(),l=Vue.ref([]),i=Vue.ref(!0),{tagStyle:o}=k(),r=[{label:"部门名称",prop:"name",width:180,align:"left"},{label:"排序",prop:"sort",minWidth:70},{label:"状态",prop:"status",minWidth:100,cellRenderer:({row:t,props:e})=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:e.size,style:o.value(t.status)},{default:()=>[t.status===1?"启用":"停用"]})},{label:"创建时间",minWidth:200,prop:"createTime",formatter:({createTime:t})=>dayjs(t).format("YYYY-MM-DD HH:mm:ss")},{label:"备注",prop:"remark",minWidth:320},{label:"操作",fixed:"right",width:160,slot:"operation"}];function d(t){}function h(t){t&&(t.resetFields(),s())}async function s(){i.value=!0;const{data:t}=await S();let e=t;c(n.name)||(e=e.filter(a=>a.name.includes(n.name))),c(n.status)||(e=e.filter(a=>a.status===n.status)),l.value=H(e),setTimeout(()=>{i.value=!1},500)}function f(t){if(!t||!t.length)return;const e=[];for(let a=0;aVue.h(R,{ref:u}),beforeSure:(a,{options:b})=>{const v=u.value.getRef(),V=b.props.formInline;function m(){p(`您${t}了部门名称为${V.name}的这条数据`,{type:"success"}),a(),s()}v.validate(y=>{y&&m()})}})}function D(t){p(`您删除了部门名称为${t.name}的这条数据`,{type:"success"}),s()}return Vue.onMounted(()=>{s()}),{form:n,loading:i,columns:r,dataList:l,onSearch:s,resetForm:h,openDialog:g,handleDelete:D,handleSelectionChange:d}}export{C as useDept}; diff --git a/dist/static/js/hooks-55e29a46.js b/dist/static/js/hooks-55e29a46.js deleted file mode 100644 index fdd10c86f..000000000 --- a/dist/static/js/hooks-55e29a46.js +++ /dev/null @@ -1 +0,0 @@ -import{F as s,A as f,C as i}from"./index-c61a73ff.js";function d(e,t){const o=/^IF-/;if(o.test(e)){const n=e.split(o)[1],r=n.slice(0,n.indexOf(" ")==-1?n.length:n.indexOf(" ")),u=n.slice(n.indexOf(" ")+1,n.length);return Vue.defineComponent({name:"FontIcon",render(){return Vue.h(s,{icon:r,iconType:u,...t})}})}else return typeof e=="function"||typeof(e==null?void 0:e.render)=="function"?e:typeof e=="object"?Vue.defineComponent({name:"OfflineIcon",render(){return Vue.h(f,{icon:e,...t})}}):Vue.defineComponent({name:"Icon",render(){const n=e&&e.includes(":")?i:f;return Vue.h(n,{icon:e,...t})}})}export{d as u}; diff --git a/dist/static/js/hooks-62079556.js b/dist/static/js/hooks-62079556.js new file mode 100644 index 000000000..caa3a0916 --- /dev/null +++ b/dist/static/js/hooks-62079556.js @@ -0,0 +1 @@ +import{d as r,L as f,aw as u,ax as s,ay as a}from"./index-0dd8d5e4.js";function I(e,t){const o=/^IF-/;if(o.test(e)){const n=e.split(o)[1],c=n.slice(0,n.indexOf(" ")==-1?n.length:n.indexOf(" ")),i=n.slice(n.indexOf(" ")+1,n.length);return r({name:"FontIcon",render(){return f(u,{icon:c,iconType:i,...t})}})}else return typeof e=="function"||typeof(e==null?void 0:e.render)=="function"?e:typeof e=="object"?r({name:"OfflineIcon",render(){return f(s,{icon:e,...t})}}):r({name:"Icon",render(){const n=e&&e.includes(":")?a:s;return f(n,{icon:e,...t})}})}export{I as u}; diff --git a/dist/static/js/hooks-65e1ad34.js b/dist/static/js/hooks-65e1ad34.js new file mode 100644 index 000000000..5bf19623e --- /dev/null +++ b/dist/static/js/hooks-65e1ad34.js @@ -0,0 +1 @@ +import{aZ as p,a$ as h,b2 as n,a8 as f}from"./index-0dd8d5e4.js";function D(){var s,o,u;const t=p(),e=h(),i=(s=t.query)!=null&&s.id?(o=t.query)==null?void 0:o.id:(u=t.params)==null?void 0:u.id;function r(a,m){m==="query"?(n().handleTags("push",{path:"/tabs/query-detail",name:"TabQueryDetail",query:{id:String(a)},meta:{title:{zh:`No.${a} - 详情信息`,en:`No.${a} - DetailInfo`},dynamicLevel:3}}),e.push({name:"TabQueryDetail",query:{id:String(a)}})):(n().handleTags("push",{path:"/tabs/params-detail/:id",name:"TabParamsDetail",params:{id:String(a)},meta:{title:{zh:`No.${a} - 详情信息`,en:`No.${a} - DetailInfo`}}}),e.push({name:"TabParamsDetail",params:{id:String(a)}}))}function l(a){f(()=>{i&&r(i,a)})}return{toDetail:r,initToDetail:l,id:i,router:e}}export{D as u}; diff --git a/dist/static/js/hooks-f5028e91.js b/dist/static/js/hooks-f5028e91.js deleted file mode 100644 index b10c78056..000000000 --- a/dist/static/js/hooks-f5028e91.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as n}from"./index-c61a73ff.js";function h(){var i,o,s;const a=VueRouter.useRoute(),t=VueRouter.useRouter(),u=(i=a.query)!=null&&i.id?(o=a.query)==null?void 0:o.id:(s=a.params)==null?void 0:s.id;function r(e,m){m==="query"?(n().handleTags("push",{path:"/tabs/query-detail",name:"TabQueryDetail",query:{id:String(e)},meta:{title:{zh:`No.${e} - 详情信息`,en:`No.${e} - DetailInfo`},dynamicLevel:3}}),t.push({name:"TabQueryDetail",query:{id:String(e)}})):(n().handleTags("push",{path:"/tabs/params-detail/:id",name:"TabParamsDetail",params:{id:String(e)},meta:{title:{zh:`No.${e} - 详情信息`,en:`No.${e} - DetailInfo`}}}),t.push({name:"TabParamsDetail",params:{id:String(e)}}))}function l(e){Vue.onBeforeMount(()=>{u&&r(u,e)})}return{toDetail:r,initToDetail:l,id:u,router:t}}export{h as u}; diff --git a/dist/static/js/horizontal-0e874426.js b/dist/static/js/horizontal-0e874426.js new file mode 100644 index 000000000..c4d0bdc3d --- /dev/null +++ b/dist/static/js/horizontal-0e874426.js @@ -0,0 +1 @@ +import{s as v,a as x}from"./vue-virtual-scroller.esm-490d869b.js";import{d as y,r as d,x as g,c as _,f as w,k as z,i as n,h as C,g as o,w as m,u as p,A as I,C as V,_ as k}from"./index-0dd8d5e4.js";const b={class:"dynamic-scroller-demo"},B={class:"flex-ac mb-4 shadow-2xl"},N={class:"text-center"},S=y({__name:"horizontal",setup($){const l=d([]),a=d("");for(let e=0;e<800;e++)l.value.push({id:e});const u=g(()=>{if(!a.value)return l.value;const e=a.value;return l.value.filter(s=>s.id==e)});return(e,s)=>{const h=_("el-input"),f=_("IconifyIconOnline");return w(),z("div",b,[n("div",B,[C(" 水平模式 horizontal "),o(h,{class:"mr-2 !w-[1/1.5]",clearable:"",modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=t=>a.value=t),placeholder:"Filter...",style:{width:"300px"}},null,8,["modelValue"])]),o(p(x),{items:u.value,"min-item-size":54,direction:"horizontal",class:"scroller"},{default:m(({item:t,index:i,active:c})=>{var r;return[o(p(v),{item:t,active:c,"size-dependencies":[t.id],"data-index":i,"data-active":c,title:`Click to change message ${i}`,style:I({width:`${Math.max(130,Math.round(((r=t.id)==null?void 0:r.length)/20*20))}px`}),class:"message"},{default:m(()=>[n("div",null,[o(f,{icon:"openmoji:beaming-face-with-smiling-eyes",width:"40"}),n("p",N,V(t.id),1)])]),_:2},1032,["item","active","size-dependencies","data-index","data-active","title","style"])]}),_:1},8,["items"])])}}});const j=k(S,[["__scopeId","data-v-c066a931"]]);export{j as default}; diff --git a/dist/static/js/horizontal-47dea087.js b/dist/static/js/horizontal-47dea087.js deleted file mode 100644 index 3b873697b..000000000 --- a/dist/static/js/horizontal-47dea087.js +++ /dev/null @@ -1 +0,0 @@ -import{s as d,a as m}from"./vue-virtual-scroller.esm-909b27d4.js";import{_ as V}from"./index-c61a73ff.js";const _={class:"dynamic-scroller-demo"},p={class:"flex-ac mb-4 shadow-2xl"},h={class:"text-center"},f=Vue.defineComponent({__name:"horizontal",setup(v){const n=Vue.ref([]),o=Vue.ref("");for(let e=0;e<800;e++)n.value.push({id:e});const c=Vue.computed(()=>{if(!o.value)return n.value;const e=o.value;return n.value.filter(a=>a.id==e)});return(e,a)=>{const r=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("IconifyIconOnline");return Vue.openBlock(),Vue.createElementBlock("div",_,[Vue.createElementVNode("div",p,[Vue.createTextVNode(" 水平模式 horizontal "),Vue.createVNode(r,{class:"mr-2 !w-[1/1.5]",clearable:"",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=t=>o.value=t),placeholder:"Filter...",style:{width:"300px"}},null,8,["modelValue"])]),Vue.createVNode(Vue.unref(d),{items:c.value,"min-item-size":54,direction:"horizontal",class:"scroller"},{default:Vue.withCtx(({item:t,index:l,active:s})=>{var i;return[Vue.createVNode(Vue.unref(m),{item:t,active:s,"size-dependencies":[t.id],"data-index":l,"data-active":s,title:`Click to change message ${l}`,style:Vue.normalizeStyle({width:`${Math.max(130,Math.round(((i=t.id)==null?void 0:i.length)/20*20))}px`}),class:"message"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",null,[Vue.createVNode(u,{icon:"openmoji:beaming-face-with-smiling-eyes",width:"40"}),Vue.createElementVNode("p",h,Vue.toDisplayString(t.id),1)])]),_:2},1032,["item","active","size-dependencies","data-index","data-active","title","style"])]}),_:1},8,["items"])])}}});const w=V(f,[["__scopeId","data-v-c066a931"]]);export{w as default}; diff --git a/dist/static/js/icon-select-1e86bdde.js b/dist/static/js/icon-select-1e86bdde.js new file mode 100644 index 000000000..7f964cbc8 --- /dev/null +++ b/dist/static/js/icon-select-1e86bdde.js @@ -0,0 +1 @@ +import{d as S,r as n,v as R,K as D,x as V,y as j,c as l,f as b,k,g as r,w as c,i as v,F as C,l as I,A as G,u as H,_ as M,e as Q}from"./index-0dd8d5e4.js";const W={"ep:":["add-location","aim","alarm-clock","apple","arrow-down","arrow-down-bold","arrow-left","arrow-left-bold","arrow-right","arrow-right-bold","arrow-up","arrow-up-bold","avatar","back","baseball","basketball","bell","bell-filled","bicycle","bottom","bottom-left","bottom-right","bowl","box","briefcase","brush","brush-filled","burger","calendar","camera","camera-filled","caret-bottom","caret-left","caret-right","caret-top","cellphone","chat-dot-round","chat-dot-square","chat-line-round","chat-line-square","chat-round","chat-square","check","checked","cherry","chicken","circle-check","circle-check-filled","circle-close","circle-close-filled","circle-plus","circle-plus-filled","clock","close","close-bold","cloudy","coffee","coffee-cup","coin","cold-drink","collection","collection-tag","comment","compass","connection","coordinate","copy-document","cpu","credit-card","crop","d-arrow-left","d-arrow-right","d-caret","data-analysis","data-board","data-line","delete","delete-filled","delete-location","dessert","discount","dish","dish-dot","document","document-add","document-checked","document-copy","document-delete","document-remove","download","drizzling","edit","edit-pen","eleme","eleme-filled","expand","failed","female","files","film","filter","finished","first-aid-kit","flag","fold","folder","folder-add","folder-checked","folder-delete","folder-opened","folder-remove","food","football","fork-spoon","fries","full-screen","goblet","goblet-full","goblet-square","goblet-square-full","goods","goods-filled","grape","grid","guide","headset","help","help-filled","histogram","home-filled","hot-water","house","ice-cream","ice-cream-round","ice-cream-square","ice-drink","ice-tea","info-filled","iphone","key","knife-fork","lightning","link","list","loading","location","location-filled","location-information","lock","lollipop","magic-stick","magnet","male","management","map-location","medal","menu","message","message-box","mic","microphone","milk-tea","minus","money","monitor","moon","moon-night","more","more-filled","mostly-cloudy","mouse","mug","mute","mute-notification","no-smoking","notebook","notification","odometer","office-building","open","operation","opportunity","orange","paperclip","partly-cloudy","pear","phone","phone-filled","picture","picture-filled","picture-rounded","pie-chart","place","platform","plus","pointer","position","postcard","pouring","present","price-tag","printer","promotion","question-filled","rank","reading","reading-lamp","refresh","refresh-left","refresh-right","refrigerator","remove","remove-filled","right","scale-to-original","school","scissor","search","select","sell","semi-select","service","set-up","setting","share","ship","shop","shopping-bag","shopping-cart","shopping-cart-full","smoking","soccer","sold-out","sort","sort-down","sort-up","stamp","star","star-filled","stopwatch","success-filled","sugar","suitcase","sunny","sunrise","sunset","switch","switch-button","takeaway-box","ticket","tickets","timer","toilet-paper","tools","top","top-left","top-right","trend-charts","trophy","turn-off","umbrella","unlock","upload","upload-filled","user","user-filled","van","video-camera","video-camera-filled","video-pause","video-play","view","wallet","wallet-filled","warning","warning-filled","watch","watermelon","wind-power","zoom-in","zoom-out"],"fa:":["500px","address-book","address-book-o","address-card","address-card-o","adjust","adn","align-center","align-justify","align-left","amazon","ambulance","american-sign-language-interpreting","anchor","android","angellist","angle-double-left","angle-double-up","angle-down","angle-left","angle-up","apple","archive","area-chart","arrow-circle-left","arrow-circle-o-left","arrow-circle-o-up","arrow-circle-up","arrow-left","arrow-up","arrows","arrows-alt","arrows-h","arrows-v","assistive-listening-systems","asterisk","at","audio-description","automobile","backward","balance-scale","ban","bandcamp","bank","bar-chart","barcode","bars","bath","battery","battery-0","battery-1","battery-2","battery-3","bed","beer","behance","behance-square","bell","bell-o","bell-slash","bell-slash-o","bicycle","binoculars","birthday-cake","bitbucket","bitbucket-square","bitcoin","black-tie","blind","bluetooth","bluetooth-b","bold","bolt","bomb","book","bookmark","bookmark-o","braille","briefcase","bug","building","building-o","bullhorn","bullseye","bus","buysellads","cab","calculator","calendar","calendar-check-o","calendar-minus-o","calendar-o","calendar-plus-o","calendar-times-o","camera","camera-retro","caret-down","caret-left","caret-square-o-left","caret-square-o-up","caret-up","cart-arrow-down","cart-plus","cc","cc-amex","cc-diners-club","cc-discover","cc-jcb","cc-mastercard","cc-paypal","cc-stripe","cc-visa","certificate","chain","chain-broken","check","check-circle","check-circle-o","check-square","check-square-o","chevron-circle-left","chevron-circle-up","chevron-down","chevron-left","chevron-up","child","chrome","circle","circle-o","circle-o-notch","circle-thin","clipboard","clock-o","clone","close","cloud","cloud-download","cloud-upload","cny","code","code-fork","codepen","codiepie","coffee","cog","cogs","columns","comment","comment-o","commenting","commenting-o","comments","comments-o","compass","compress","connectdevelop","contao","copy","copyright","creative-commons","credit-card","credit-card-alt","crop","crosshairs","css3","cube","cubes","cut","cutlery","dashboard","dashcube","database","deaf","dedent","delicious","desktop","deviantart","diamond","digg","dollar","dot-circle-o","download","dribbble","drivers-license","drivers-license-o","dropbox","drupal","edge","edit","eercast","eject","ellipsis-h","ellipsis-v","empire","envelope","envelope-o","envelope-open","envelope-open-o","envelope-square","envira","eraser","etsy","eur","exchange","exclamation","exclamation-circle","exclamation-triangle","expand","expeditedssl","external-link","external-link-square","eye","eye-slash","eyedropper","fa","facebook","facebook-official","facebook-square","fast-backward","fax","feed","female","fighter-jet","file","file-archive-o","file-audio-o","file-code-o","file-excel-o","file-image-o","file-movie-o","file-o","file-pdf-o","file-powerpoint-o","file-text","file-text-o","file-word-o","film","filter","fire","fire-extinguisher","firefox","first-order","flag","flag-checkered","flag-o","flask","flickr","floppy-o","folder","folder-o","folder-open","folder-open-o","font","fonticons","fort-awesome","forumbee","foursquare","free-code-camp","frown-o","futbol-o","gamepad","gavel","gbp","genderless","get-pocket","gg","gg-circle","gift","git","git-square","github","github-alt","github-square","gitlab","gittip","glass","glide","glide-g","globe","google","google-plus","google-plus-circle","google-plus-square","google-wallet","graduation-cap","grav","group","h-square","hacker-news","hand-grab-o","hand-lizard-o","hand-o-left","hand-o-up","hand-paper-o","hand-peace-o","hand-pointer-o","hand-scissors-o","hand-spock-o","handshake-o","hashtag","hdd-o","header","headphones","heart","heart-o","heartbeat","history","home","hospital-o","hourglass","hourglass-1","hourglass-2","hourglass-3","hourglass-o","houzz","html5","i-cursor","id-badge","ils","image","imdb","inbox","indent","industry","info","info-circle","inr","instagram","internet-explorer","intersex","ioxhost","italic","joomla","jsfiddle","key","keyboard-o","krw","language","laptop","lastfm","lastfm-square","leaf","leanpub","lemon-o","level-up","life-bouy","lightbulb-o","line-chart","linkedin","linkedin-square","linode","linux","list","list-alt","list-ol","list-ul","location-arrow","lock","long-arrow-left","long-arrow-up","low-vision","magic","magnet","mail-forward","mail-reply","mail-reply-all","male","map","map-marker","map-o","map-pin","map-signs","mars","mars-double","mars-stroke","mars-stroke-h","mars-stroke-v","maxcdn","meanpath","medium","medkit","meetup","meh-o","mercury","microchip","microphone","microphone-slash","minus","minus-circle","minus-square","minus-square-o","mixcloud","mobile","modx","money","moon-o","motorcycle","mouse-pointer","music","neuter","newspaper-o","object-group","object-ungroup","odnoklassniki","odnoklassniki-square","opencart","openid","opera","optin-monster","pagelines","paint-brush","paper-plane","paper-plane-o","paperclip","paragraph","pause","pause-circle","pause-circle-o","paw","paypal","pencil","pencil-square","percent","phone","phone-square","pie-chart","pied-piper","pied-piper-alt","pied-piper-pp","pinterest","pinterest-p","pinterest-square","plane","play","play-circle","play-circle-o","plug","plus","plus-circle","plus-square","plus-square-o","podcast","power-off","print","product-hunt","puzzle-piece","qq","qrcode","question","question-circle","question-circle-o","quora","quote-left","quote-right","ra","random","ravelry","recycle","reddit","reddit-alien","reddit-square","refresh","registered","renren","repeat","retweet","road","rocket","rotate-left","rouble","rss-square","safari","scribd","search","search-minus","search-plus","sellsy","server","share-alt","share-alt-square","share-square","share-square-o","shield","ship","shirtsinbulk","shopping-bag","shopping-basket","shopping-cart","shower","sign-in","sign-language","sign-out","signal","simplybuilt","sitemap","skyatlas","skype","slack","sliders","slideshare","smile-o","snapchat","snapchat-ghost","snapchat-square","snowflake-o","sort","sort-alpha-asc","sort-alpha-desc","sort-amount-asc","sort-amount-desc","sort-asc","sort-numeric-asc","sort-numeric-desc","soundcloud","space-shuttle","spinner","spoon","spotify","square","square-o","stack-exchange","stack-overflow","star","star-half","star-half-empty","star-o","steam","steam-square","step-backward","stethoscope","sticky-note","sticky-note-o","stop","stop-circle","stop-circle-o","street-view","strikethrough","stumbleupon","stumbleupon-circle","subscript","subway","suitcase","sun-o","superpowers","superscript","table","tablet","tag","tags","tasks","telegram","television","tencent-weibo","terminal","text-height","text-width","th","th-large","th-list","themeisle","thermometer","thermometer-0","thermometer-1","thermometer-2","thermometer-3","thumb-tack","thumbs-down","thumbs-o-up","thumbs-up","ticket","times-circle","times-circle-o","times-rectangle","times-rectangle-o","tint","toggle-off","toggle-on","trademark","train","transgender-alt","trash","trash-o","tree","trello","tripadvisor","trophy","truck","try","tty","tumblr","tumblr-square","twitch","twitter","twitter-square","umbrella","underline","universal-access","unlock","unlock-alt","upload","usb","user","user-circle","user-circle-o","user-md","user-o","user-plus","user-secret","user-times","venus","venus-double","venus-mars","viacoin","viadeo","viadeo-square","video-camera","vimeo","vimeo-square","vine","vk","volume-control-phone","volume-down","volume-off","volume-up","wechat","weibo","whatsapp","wheelchair","wheelchair-alt","wifi","wikipedia-w","window-maximize","window-minimize","window-restore","windows","wordpress","wpbeginner","wpexplorer","wpforms","wrench","xing","xing-square","y-combinator","yahoo","yelp","yoast","youtube","youtube-play","youtube-square"],"fa-solid:":["abacus","ad","address-book","address-card","adjust","air-freshener","align-center","align-justify","align-left","align-right","allergies","ambulance","american-sign-language-interpreting","anchor","angle-double-down","angle-double-left","angle-double-right","angle-double-up","angle-down","angle-left","angle-right","angle-up","angry","ankh","apple-alt","archive","archway","arrow-alt-circle-down","arrow-alt-circle-left","arrow-alt-circle-right","arrow-alt-circle-up","arrow-circle-down","arrow-circle-left","arrow-circle-right","arrow-circle-up","arrow-down","arrow-left","arrow-right","arrow-up","arrows-alt","arrows-alt-h","arrows-alt-v","assistive-listening-systems","asterisk","at","atlas","atom","audio-description","award","baby","baby-carriage","backspace","backward","bacon","bacteria","bacterium","bahai","balance-scale","balance-scale-left","balance-scale-right","ban","band-aid","barcode","bars","baseball-ball","basketball-ball","bath","battery-empty","battery-full","battery-half","battery-quarter","battery-three-quarters","bed","beer","bell","bell-slash","bezier-curve","bible","bicycle","biking","binoculars","biohazard","birthday-cake","blender","blender-phone","blind","blog","bold","bolt","bomb","bone","bong","book","book-dead","book-medical","book-open","book-reader","bookmark","border-all","border-none","border-style","bowling-ball","box","box-open","box-tissue","boxes","braille","brain","bread-slice","briefcase","briefcase-medical","broadcast-tower","broom","brush","bug","building","bullhorn","bullseye","burn","bus","bus-alt","business-time","calculator","calculator-alt","calendar","calendar-alt","calendar-check","calendar-day","calendar-minus","calendar-plus","calendar-times","calendar-week","camera","camera-retro","campground","candy-cane","cannabis","capsules","car","car-alt","car-battery","car-crash","car-side","caravan","caret-down","caret-left","caret-right","caret-square-down","caret-square-left","caret-square-right","caret-square-up","caret-up","carrot","cart-arrow-down","cart-plus","cash-register","cat","certificate","chair","chalkboard","chalkboard-teacher","charging-station","chart-area","chart-bar","chart-line","chart-pie","check","check-circle","check-double","check-square","cheese","chess","chess-bishop","chess-board","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","chevron-circle-down","chevron-circle-left","chevron-circle-right","chevron-circle-up","chevron-down","chevron-left","chevron-right","chevron-up","child","church","circle","circle-notch","city","clinic-medical","clipboard","clipboard-check","clipboard-list","clock","clone","closed-captioning","cloud","cloud-download-alt","cloud-meatball","cloud-moon","cloud-moon-rain","cloud-rain","cloud-showers-heavy","cloud-sun","cloud-sun-rain","cloud-upload-alt","cocktail","code","code-branch","coffee","cog","cogs","coins","columns","comment","comment-alt","comment-dollar","comment-dots","comment-medical","comment-slash","comments","comments-dollar","compact-disc","compass","compress","compress-alt","compress-arrows-alt","concierge-bell","cookie","cookie-bite","copy","copyright","couch","credit-card","crop","crop-alt","cross","crosshairs","crow","crown","crutch","cube","cubes","cut","database","deaf","democrat","desktop","dharmachakra","diagnoses","dice","dice-d20","dice-d6","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","digital-tachograph","directions","disease","divide","dizzy","dna","dog","dollar-sign","dolly","dolly-flatbed","donate","door-closed","door-open","dot-circle","dove","download","drafting-compass","dragon","draw-polygon","drum","drum-steelpan","drumstick-bite","dumbbell","dumpster","dumpster-fire","dungeon","edit","egg","eject","ellipsis-h","ellipsis-v","empty-set","envelope","envelope-open","envelope-open-text","envelope-square","equals","eraser","ethernet","euro-sign","exchange-alt","exclamation","exclamation-circle","exclamation-triangle","expand","expand-alt","expand-arrows-alt","external-link-alt","external-link-square-alt","eye","eye-dropper","eye-slash","fan","fast-backward","fast-forward","faucet","fax","feather","feather-alt","female","fighter-jet","file","file-alt","file-archive","file-audio","file-code","file-contract","file-csv","file-download","file-excel","file-export","file-image","file-import","file-invoice","file-invoice-dollar","file-medical","file-medical-alt","file-pdf","file-powerpoint","file-prescription","file-signature","file-upload","file-video","file-word","fill","fill-drip","film","filter","fingerprint","fire","fire-alt","fire-extinguisher","first-aid","fish","fist-raised","flag","flag-checkered","flag-usa","flask","flushed","folder","folder-minus","folder-open","folder-plus","font","football-ball","forward","frog","frown","frown-open","function","funnel-dollar","futbol","gamepad","gas-pump","gavel","gem","genderless","ghost","gift","gifts","glass-cheers","glass-martini","glass-martini-alt","glass-whiskey","glasses","globe","globe-africa","globe-americas","globe-asia","globe-europe","golf-ball","gopuram","graduation-cap","greater-than","greater-than-equal","grimace","grin","grin-alt","grin-beam","grin-beam-sweat","grin-hearts","grin-squint","grin-squint-tears","grin-stars","grin-tears","grin-tongue","grin-tongue-squint","grin-tongue-wink","grin-wink","grip-horizontal","grip-lines","grip-lines-vertical","grip-vertical","guitar","h-square","hamburger","hammer","hamsa","hand-holding","hand-holding-heart","hand-holding-medical","hand-holding-usd","hand-holding-water","hand-lizard","hand-middle-finger","hand-paper","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","hand-pointer","hand-rock","hand-scissors","hand-sparkles","hand-spock","hands","hands-helping","hands-wash","handshake","handshake-alt-slash","handshake-slash","hanukiah","hard-hat","hashtag","hat-cowboy","hat-cowboy-side","hat-wizard","hdd","head-side-cough","head-side-cough-slash","head-side-mask","head-side-virus","heading","headphones","headphones-alt","headset","heart","heart-broken","heartbeat","helicopter","highlighter","hiking","hippo","history","hockey-puck","holly-berry","home","horse","horse-head","hospital","hospital-alt","hospital-symbol","hospital-user","hot-tub","hotdog","hotel","hourglass","hourglass-end","hourglass-half","hourglass-start","house-damage","house-user","hryvnia","i-cursor","ice-cream","icicles","icons","id-badge","id-card","id-card-alt","igloo","image","images","inbox","indent","industry","infinity","info","info-circle","integral","intersection","italic","jedi","joint","journal-whills","kaaba","key","keyboard","khanda","kiss","kiss-beam","kiss-wink-heart","kiwi-bird","lambda","landmark","language","laptop","laptop-code","laptop-house","laptop-medical","laugh","laugh-beam","laugh-squint","laugh-wink","layer-group","leaf","lemon","less-than","less-than-equal","level-down-alt","level-up-alt","life-ring","lightbulb","link","lira-sign","list","list-alt","list-ol","list-ul","location-arrow","lock","lock-open","long-arrow-alt-down","long-arrow-alt-left","long-arrow-alt-right","long-arrow-alt-up","low-vision","luggage-cart","lungs","lungs-virus","magic","magnet","mail-bulk","male","map","map-marked","map-marked-alt","map-marker","map-marker-alt","map-pin","map-signs","marker","mars","mars-double","mars-stroke","mars-stroke-h","mars-stroke-v","mask","medal","medkit","meh","meh-blank","meh-rolling-eyes","memory","menorah","mercury","meteor","microchip","microphone","microphone-alt","microphone-alt-slash","microphone-slash","microscope","minus","minus-circle","minus-square","mitten","mobile","mobile-alt","money-bill","money-bill-alt","money-bill-wave","money-bill-wave-alt","money-check","money-check-alt","monument","moon","mortar-pestle","mosque","motorcycle","mountain","mouse","mouse-pointer","mug-hot","music","network-wired","neuter","newspaper","not-equal","notes-medical","object-group","object-ungroup","oil-can","om","omega","otter","outdent","pager","paint-brush","paint-roller","palette","pallet","paper-plane","paperclip","parachute-box","paragraph","parking","passport","pastafarianism","paste","pause","pause-circle","paw","peace","pen","pen-alt","pen-fancy","pen-nib","pen-square","pencil-alt","pencil-ruler","people-arrows","people-carry","pepper-hot","percent","percentage","person-booth","phone","phone-alt","phone-slash","phone-square","phone-square-alt","phone-volume","photo-video","pi","piggy-bank","pills","pizza-slice","place-of-worship","plane","plane-arrival","plane-departure","plane-slash","play","play-circle","plug","plus","plus-circle","plus-square","podcast","poll","poll-h","poo","poo-storm","poop","portrait","pound-sign","power-off","pray","praying-hands","prescription","prescription-bottle","prescription-bottle-alt","print","procedures","project-diagram","pump-medical","pump-soap","puzzle-piece","qrcode","question","question-circle","quidditch","quote-left","quote-right","quran","radiation","radiation-alt","rainbow","random","receipt","record-vinyl","recycle","redo","redo-alt","registered","remove-format","reply","reply-all","republican","restroom","retweet","ribbon","ring","road","robot","rocket","route","rss","rss-square","ruble-sign","ruler","ruler-combined","ruler-horizontal","ruler-vertical","running","rupee-sign","sad-cry","sad-tear","satellite","satellite-dish","save","school","screwdriver","scroll","sd-card","search","search-dollar","search-location","search-minus","search-plus","seedling","server","shapes","share","share-alt","share-alt-square","share-square","shekel-sign","shield-alt","shield-virus","ship","shipping-fast","shoe-prints","shopping-bag","shopping-basket","shopping-cart","shower","shuttle-van","sigma","sign","sign-in-alt","sign-language","sign-out-alt","signal","signal-alt","signal-alt-slash","signal-slash","signature","sim-card","sink","sitemap","skating","skiing","skiing-nordic","skull","skull-crossbones","slash","sleigh","sliders-h","smile","smile-beam","smile-wink","smog","smoking","smoking-ban","sms","snowboarding","snowflake","snowman","snowplow","soap","socks","solar-panel","sort","sort-alpha-down","sort-alpha-down-alt","sort-alpha-up","sort-alpha-up-alt","sort-amount-down","sort-amount-down-alt","sort-amount-up","sort-amount-up-alt","sort-down","sort-numeric-down","sort-numeric-down-alt","sort-numeric-up","sort-numeric-up-alt","sort-up","spa","space-shuttle","spell-check","spider","spinner","splotch","spray-can","square","square-full","square-root","square-root-alt","stamp","star","star-and-crescent","star-half","star-half-alt","star-of-david","star-of-life","step-backward","step-forward","stethoscope","sticky-note","stop","stop-circle","stopwatch","stopwatch-20","store","store-alt","store-alt-slash","store-slash","stream","street-view","strikethrough","stroopwafel","subscript","subway","suitcase","suitcase-rolling","sun","superscript","surprise","swatchbook","swimmer","swimming-pool","synagogue","sync","sync-alt","syringe","table","table-tennis","tablet","tablet-alt","tablets","tachometer-alt","tag","tags","tally","tape","tasks","taxi","teeth","teeth-open","temperature-high","temperature-low","tenge","terminal","text-height","text-width","th","th-large","th-list","theater-masks","thermometer","thermometer-empty","thermometer-full","thermometer-half","thermometer-quarter","thermometer-three-quarters","theta","thumbs-down","thumbs-up","thumbtack","ticket-alt","tilde","times","times-circle","tint","tint-slash","tired","toggle-off","toggle-on","toilet","toilet-paper","toilet-paper-slash","toolbox","tools","tooth","torah","torii-gate","tractor","trademark","traffic-light","trailer","train","tram","transgender","transgender-alt","trash","trash-alt","trash-restore","trash-restore-alt","tree","trophy","truck","truck-loading","truck-monster","truck-moving","truck-pickup","tshirt","tty","tv","umbrella","umbrella-beach","underline","undo","undo-alt","union","universal-access","university","unlink","unlock","unlock-alt","upload","user","user-alt","user-alt-slash","user-astronaut","user-check","user-circle","user-clock","user-cog","user-edit","user-friends","user-graduate","user-injured","user-lock","user-md","user-minus","user-ninja","user-nurse","user-plus","user-secret","user-shield","user-slash","user-tag","user-tie","user-times","users","users-cog","users-slash","utensil-spoon","utensils","value-absolute","vector-square","venus","venus-double","venus-mars","vest","vest-patches","vial","vials","video","video-slash","vihara","virus","virus-slash","viruses","voicemail","volleyball-ball","volume","volume-down","volume-mute","volume-off","volume-slash","volume-up","vote-yea","vr-cardboard","walking","wallet","warehouse","water","wave-square","weight","weight-hanging","wheelchair","wifi","wifi-slash","wind","window-close","window-maximize","window-minimize","window-restore","wine-bottle","wine-glass","wine-glass-alt","won-sign","wrench","x-ray","yen-sign","yin-yang"]},X={class:"selector w-[350px]"},Y={class:"flex flex-wrap px-2 ml-2"},Z=["title","onClick"],ee=S({name:"IconSelect",__name:"Select",props:{modelValue:{require:!1,type:String}},emits:["update:modelValue"],setup(x,{emit:d}){const t=x,u=n(!1),p=R(t,"modelValue"),h=n(W),f=n("add-location"),e=n("ep:"),y=D(h.value),m=n(96),s=n(1),g=n(""),L=[{label:"Element Plus",name:"ep:"},{label:"Font Awesome 4",name:"fa:"},{label:"Font Awesome 5 Solid",name:"fa-solid:"}],A=V(()=>s.value===1?y[e.value].filter(a=>a.includes(g.value)).slice(s.value-1,m.value):y[e.value].filter(a=>a.includes(g.value)).slice(m.value*(s.value-1),m.value*(s.value-1)+m.value)),B=V(()=>a=>{if(p.value===e.value+a)return{borderColor:"var(--el-color-primary)",color:"var(--el-color-primary)"}});function F({props:a}){s.value=1,e.value=a.name,d("update:modelValue",e.value+h.value[e.value][0]),f.value=h.value[e.value][0]}function O(a){f.value=a,d("update:modelValue",e.value+a),u.value=!1}function U(a){s.value=a}return j(()=>t.modelValue,()=>{t.modelValue&&(e.value=t.modelValue.substring(0,t.modelValue.indexOf(":")+1),f.value=t.modelValue.substring(t.modelValue.indexOf(":")+1))}),j(()=>g.value,()=>{s.value=1}),(a,i)=>{const _=l("IconifyIconOnline"),z=l("el-input"),q=l("el-divider"),$=l("el-scrollbar"),E=l("el-tab-pane"),K=l("el-tabs"),N=l("el-pagination"),P=l("el-popover");return b(),k("div",X,[r(z,{modelValue:p.value,"onUpdate:modelValue":i[3]||(i[3]=o=>p.value=o),disabled:""},{append:c(()=>[r(P,{width:350,trigger:"click","popper-class":"pure-popper","popper-options":{placement:"auto"},visible:u.value},{reference:c(()=>[v("div",{class:"w-[40px] h-[32px] cursor-pointer flex justify-center items-center",onClick:i[0]||(i[0]=o=>u.value=!u.value)},[r(_,{icon:e.value+f.value},null,8,["icon"])])]),default:c(()=>[r(z,{class:"p-2",modelValue:g.value,"onUpdate:modelValue":i[1]||(i[1]=o=>g.value=o),placeholder:"搜索图标",clearable:""},null,8,["modelValue"]),r(q,{"border-style":"dashed"}),r(K,{modelValue:e.value,"onUpdate:modelValue":i[2]||(i[2]=o=>e.value=o),onTabClick:F},{default:c(()=>[(b(),k(C,null,I(L,(o,T)=>r(E,{key:T,label:o.label,name:o.name},{default:c(()=>[r(q,{class:"tab-divider","border-style":"dashed"}),r($,{height:"220px"},{default:c(()=>[v("ul",Y,[(b(!0),k(C,null,I(A.value,(w,J)=>(b(),k("li",{key:J,title:w,class:"icon-item p-2 w-[1/10] cursor-pointer mr-2 mt-1 flex justify-center items-center border border-solid",style:G(B.value(w)),onClick:oe=>O(w)},[r(_,{icon:e.value+w},null,8,["icon"])],12,Z))),128))])]),_:1})]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"]),r(q,{"border-style":"dashed"}),r(N,{small:"",total:H(y)[e.value].length,"page-size":m.value,"current-page":s.value,background:"",layout:"prev, pager, next",class:"flex items-center justify-center h-10",onCurrentChange:U},null,8,["total","page-size","current-page"])]),_:1},8,["visible"])]),_:1},8,["modelValue"])])}}});const ae=M(ee,[["__scopeId","data-v-fb1b5ec7"]]),re=v("div",{class:"card-header"},[v("span",{class:"font-medium"},"图标选择器")],-1),te=S({name:"IconSelect",__name:"icon-select",setup(x){const d=n("ep:add-location");return(t,u)=>{const p=l("el-card");return b(),Q(p,{shadow:"never"},{header:c(()=>[re]),default:c(()=>[r(ae,{modelValue:d.value,"onUpdate:modelValue":u[0]||(u[0]=h=>d.value=h)},null,8,["modelValue"])]),_:1})}}});export{te as default}; diff --git a/dist/static/js/icon-select-7261ae3c.js b/dist/static/js/icon-select-7261ae3c.js deleted file mode 100644 index 62549c260..000000000 --- a/dist/static/js/icon-select-7261ae3c.js +++ /dev/null @@ -1 +0,0 @@ -import{K as S,_ as E}from"./index-c61a73ff.js";const L={"ep:":["add-location","aim","alarm-clock","apple","arrow-down","arrow-down-bold","arrow-left","arrow-left-bold","arrow-right","arrow-right-bold","arrow-up","arrow-up-bold","avatar","back","baseball","basketball","bell","bell-filled","bicycle","bottom","bottom-left","bottom-right","bowl","box","briefcase","brush","brush-filled","burger","calendar","camera","camera-filled","caret-bottom","caret-left","caret-right","caret-top","cellphone","chat-dot-round","chat-dot-square","chat-line-round","chat-line-square","chat-round","chat-square","check","checked","cherry","chicken","circle-check","circle-check-filled","circle-close","circle-close-filled","circle-plus","circle-plus-filled","clock","close","close-bold","cloudy","coffee","coffee-cup","coin","cold-drink","collection","collection-tag","comment","compass","connection","coordinate","copy-document","cpu","credit-card","crop","d-arrow-left","d-arrow-right","d-caret","data-analysis","data-board","data-line","delete","delete-filled","delete-location","dessert","discount","dish","dish-dot","document","document-add","document-checked","document-copy","document-delete","document-remove","download","drizzling","edit","edit-pen","eleme","eleme-filled","expand","failed","female","files","film","filter","finished","first-aid-kit","flag","fold","folder","folder-add","folder-checked","folder-delete","folder-opened","folder-remove","food","football","fork-spoon","fries","full-screen","goblet","goblet-full","goblet-square","goblet-square-full","goods","goods-filled","grape","grid","guide","headset","help","help-filled","histogram","home-filled","hot-water","house","ice-cream","ice-cream-round","ice-cream-square","ice-drink","ice-tea","info-filled","iphone","key","knife-fork","lightning","link","list","loading","location","location-filled","location-information","lock","lollipop","magic-stick","magnet","male","management","map-location","medal","menu","message","message-box","mic","microphone","milk-tea","minus","money","monitor","moon","moon-night","more","more-filled","mostly-cloudy","mouse","mug","mute","mute-notification","no-smoking","notebook","notification","odometer","office-building","open","operation","opportunity","orange","paperclip","partly-cloudy","pear","phone","phone-filled","picture","picture-filled","picture-rounded","pie-chart","place","platform","plus","pointer","position","postcard","pouring","present","price-tag","printer","promotion","question-filled","rank","reading","reading-lamp","refresh","refresh-left","refresh-right","refrigerator","remove","remove-filled","right","scale-to-original","school","scissor","search","select","sell","semi-select","service","set-up","setting","share","ship","shop","shopping-bag","shopping-cart","shopping-cart-full","smoking","soccer","sold-out","sort","sort-down","sort-up","stamp","star","star-filled","stopwatch","success-filled","sugar","suitcase","sunny","sunrise","sunset","switch","switch-button","takeaway-box","ticket","tickets","timer","toilet-paper","tools","top","top-left","top-right","trend-charts","trophy","turn-off","umbrella","unlock","upload","upload-filled","user","user-filled","van","video-camera","video-camera-filled","video-pause","video-play","view","wallet","wallet-filled","warning","warning-filled","watch","watermelon","wind-power","zoom-in","zoom-out"],"fa:":["500px","address-book","address-book-o","address-card","address-card-o","adjust","adn","align-center","align-justify","align-left","amazon","ambulance","american-sign-language-interpreting","anchor","android","angellist","angle-double-left","angle-double-up","angle-down","angle-left","angle-up","apple","archive","area-chart","arrow-circle-left","arrow-circle-o-left","arrow-circle-o-up","arrow-circle-up","arrow-left","arrow-up","arrows","arrows-alt","arrows-h","arrows-v","assistive-listening-systems","asterisk","at","audio-description","automobile","backward","balance-scale","ban","bandcamp","bank","bar-chart","barcode","bars","bath","battery","battery-0","battery-1","battery-2","battery-3","bed","beer","behance","behance-square","bell","bell-o","bell-slash","bell-slash-o","bicycle","binoculars","birthday-cake","bitbucket","bitbucket-square","bitcoin","black-tie","blind","bluetooth","bluetooth-b","bold","bolt","bomb","book","bookmark","bookmark-o","braille","briefcase","bug","building","building-o","bullhorn","bullseye","bus","buysellads","cab","calculator","calendar","calendar-check-o","calendar-minus-o","calendar-o","calendar-plus-o","calendar-times-o","camera","camera-retro","caret-down","caret-left","caret-square-o-left","caret-square-o-up","caret-up","cart-arrow-down","cart-plus","cc","cc-amex","cc-diners-club","cc-discover","cc-jcb","cc-mastercard","cc-paypal","cc-stripe","cc-visa","certificate","chain","chain-broken","check","check-circle","check-circle-o","check-square","check-square-o","chevron-circle-left","chevron-circle-up","chevron-down","chevron-left","chevron-up","child","chrome","circle","circle-o","circle-o-notch","circle-thin","clipboard","clock-o","clone","close","cloud","cloud-download","cloud-upload","cny","code","code-fork","codepen","codiepie","coffee","cog","cogs","columns","comment","comment-o","commenting","commenting-o","comments","comments-o","compass","compress","connectdevelop","contao","copy","copyright","creative-commons","credit-card","credit-card-alt","crop","crosshairs","css3","cube","cubes","cut","cutlery","dashboard","dashcube","database","deaf","dedent","delicious","desktop","deviantart","diamond","digg","dollar","dot-circle-o","download","dribbble","drivers-license","drivers-license-o","dropbox","drupal","edge","edit","eercast","eject","ellipsis-h","ellipsis-v","empire","envelope","envelope-o","envelope-open","envelope-open-o","envelope-square","envira","eraser","etsy","eur","exchange","exclamation","exclamation-circle","exclamation-triangle","expand","expeditedssl","external-link","external-link-square","eye","eye-slash","eyedropper","fa","facebook","facebook-official","facebook-square","fast-backward","fax","feed","female","fighter-jet","file","file-archive-o","file-audio-o","file-code-o","file-excel-o","file-image-o","file-movie-o","file-o","file-pdf-o","file-powerpoint-o","file-text","file-text-o","file-word-o","film","filter","fire","fire-extinguisher","firefox","first-order","flag","flag-checkered","flag-o","flask","flickr","floppy-o","folder","folder-o","folder-open","folder-open-o","font","fonticons","fort-awesome","forumbee","foursquare","free-code-camp","frown-o","futbol-o","gamepad","gavel","gbp","genderless","get-pocket","gg","gg-circle","gift","git","git-square","github","github-alt","github-square","gitlab","gittip","glass","glide","glide-g","globe","google","google-plus","google-plus-circle","google-plus-square","google-wallet","graduation-cap","grav","group","h-square","hacker-news","hand-grab-o","hand-lizard-o","hand-o-left","hand-o-up","hand-paper-o","hand-peace-o","hand-pointer-o","hand-scissors-o","hand-spock-o","handshake-o","hashtag","hdd-o","header","headphones","heart","heart-o","heartbeat","history","home","hospital-o","hourglass","hourglass-1","hourglass-2","hourglass-3","hourglass-o","houzz","html5","i-cursor","id-badge","ils","image","imdb","inbox","indent","industry","info","info-circle","inr","instagram","internet-explorer","intersex","ioxhost","italic","joomla","jsfiddle","key","keyboard-o","krw","language","laptop","lastfm","lastfm-square","leaf","leanpub","lemon-o","level-up","life-bouy","lightbulb-o","line-chart","linkedin","linkedin-square","linode","linux","list","list-alt","list-ol","list-ul","location-arrow","lock","long-arrow-left","long-arrow-up","low-vision","magic","magnet","mail-forward","mail-reply","mail-reply-all","male","map","map-marker","map-o","map-pin","map-signs","mars","mars-double","mars-stroke","mars-stroke-h","mars-stroke-v","maxcdn","meanpath","medium","medkit","meetup","meh-o","mercury","microchip","microphone","microphone-slash","minus","minus-circle","minus-square","minus-square-o","mixcloud","mobile","modx","money","moon-o","motorcycle","mouse-pointer","music","neuter","newspaper-o","object-group","object-ungroup","odnoklassniki","odnoklassniki-square","opencart","openid","opera","optin-monster","pagelines","paint-brush","paper-plane","paper-plane-o","paperclip","paragraph","pause","pause-circle","pause-circle-o","paw","paypal","pencil","pencil-square","percent","phone","phone-square","pie-chart","pied-piper","pied-piper-alt","pied-piper-pp","pinterest","pinterest-p","pinterest-square","plane","play","play-circle","play-circle-o","plug","plus","plus-circle","plus-square","plus-square-o","podcast","power-off","print","product-hunt","puzzle-piece","qq","qrcode","question","question-circle","question-circle-o","quora","quote-left","quote-right","ra","random","ravelry","recycle","reddit","reddit-alien","reddit-square","refresh","registered","renren","repeat","retweet","road","rocket","rotate-left","rouble","rss-square","safari","scribd","search","search-minus","search-plus","sellsy","server","share-alt","share-alt-square","share-square","share-square-o","shield","ship","shirtsinbulk","shopping-bag","shopping-basket","shopping-cart","shower","sign-in","sign-language","sign-out","signal","simplybuilt","sitemap","skyatlas","skype","slack","sliders","slideshare","smile-o","snapchat","snapchat-ghost","snapchat-square","snowflake-o","sort","sort-alpha-asc","sort-alpha-desc","sort-amount-asc","sort-amount-desc","sort-asc","sort-numeric-asc","sort-numeric-desc","soundcloud","space-shuttle","spinner","spoon","spotify","square","square-o","stack-exchange","stack-overflow","star","star-half","star-half-empty","star-o","steam","steam-square","step-backward","stethoscope","sticky-note","sticky-note-o","stop","stop-circle","stop-circle-o","street-view","strikethrough","stumbleupon","stumbleupon-circle","subscript","subway","suitcase","sun-o","superpowers","superscript","table","tablet","tag","tags","tasks","telegram","television","tencent-weibo","terminal","text-height","text-width","th","th-large","th-list","themeisle","thermometer","thermometer-0","thermometer-1","thermometer-2","thermometer-3","thumb-tack","thumbs-down","thumbs-o-up","thumbs-up","ticket","times-circle","times-circle-o","times-rectangle","times-rectangle-o","tint","toggle-off","toggle-on","trademark","train","transgender-alt","trash","trash-o","tree","trello","tripadvisor","trophy","truck","try","tty","tumblr","tumblr-square","twitch","twitter","twitter-square","umbrella","underline","universal-access","unlock","unlock-alt","upload","usb","user","user-circle","user-circle-o","user-md","user-o","user-plus","user-secret","user-times","venus","venus-double","venus-mars","viacoin","viadeo","viadeo-square","video-camera","vimeo","vimeo-square","vine","vk","volume-control-phone","volume-down","volume-off","volume-up","wechat","weibo","whatsapp","wheelchair","wheelchair-alt","wifi","wikipedia-w","window-maximize","window-minimize","window-restore","windows","wordpress","wpbeginner","wpexplorer","wpforms","wrench","xing","xing-square","y-combinator","yahoo","yelp","yoast","youtube","youtube-play","youtube-square"],"fa-solid:":["abacus","ad","address-book","address-card","adjust","air-freshener","align-center","align-justify","align-left","align-right","allergies","ambulance","american-sign-language-interpreting","anchor","angle-double-down","angle-double-left","angle-double-right","angle-double-up","angle-down","angle-left","angle-right","angle-up","angry","ankh","apple-alt","archive","archway","arrow-alt-circle-down","arrow-alt-circle-left","arrow-alt-circle-right","arrow-alt-circle-up","arrow-circle-down","arrow-circle-left","arrow-circle-right","arrow-circle-up","arrow-down","arrow-left","arrow-right","arrow-up","arrows-alt","arrows-alt-h","arrows-alt-v","assistive-listening-systems","asterisk","at","atlas","atom","audio-description","award","baby","baby-carriage","backspace","backward","bacon","bacteria","bacterium","bahai","balance-scale","balance-scale-left","balance-scale-right","ban","band-aid","barcode","bars","baseball-ball","basketball-ball","bath","battery-empty","battery-full","battery-half","battery-quarter","battery-three-quarters","bed","beer","bell","bell-slash","bezier-curve","bible","bicycle","biking","binoculars","biohazard","birthday-cake","blender","blender-phone","blind","blog","bold","bolt","bomb","bone","bong","book","book-dead","book-medical","book-open","book-reader","bookmark","border-all","border-none","border-style","bowling-ball","box","box-open","box-tissue","boxes","braille","brain","bread-slice","briefcase","briefcase-medical","broadcast-tower","broom","brush","bug","building","bullhorn","bullseye","burn","bus","bus-alt","business-time","calculator","calculator-alt","calendar","calendar-alt","calendar-check","calendar-day","calendar-minus","calendar-plus","calendar-times","calendar-week","camera","camera-retro","campground","candy-cane","cannabis","capsules","car","car-alt","car-battery","car-crash","car-side","caravan","caret-down","caret-left","caret-right","caret-square-down","caret-square-left","caret-square-right","caret-square-up","caret-up","carrot","cart-arrow-down","cart-plus","cash-register","cat","certificate","chair","chalkboard","chalkboard-teacher","charging-station","chart-area","chart-bar","chart-line","chart-pie","check","check-circle","check-double","check-square","cheese","chess","chess-bishop","chess-board","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","chevron-circle-down","chevron-circle-left","chevron-circle-right","chevron-circle-up","chevron-down","chevron-left","chevron-right","chevron-up","child","church","circle","circle-notch","city","clinic-medical","clipboard","clipboard-check","clipboard-list","clock","clone","closed-captioning","cloud","cloud-download-alt","cloud-meatball","cloud-moon","cloud-moon-rain","cloud-rain","cloud-showers-heavy","cloud-sun","cloud-sun-rain","cloud-upload-alt","cocktail","code","code-branch","coffee","cog","cogs","coins","columns","comment","comment-alt","comment-dollar","comment-dots","comment-medical","comment-slash","comments","comments-dollar","compact-disc","compass","compress","compress-alt","compress-arrows-alt","concierge-bell","cookie","cookie-bite","copy","copyright","couch","credit-card","crop","crop-alt","cross","crosshairs","crow","crown","crutch","cube","cubes","cut","database","deaf","democrat","desktop","dharmachakra","diagnoses","dice","dice-d20","dice-d6","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","digital-tachograph","directions","disease","divide","dizzy","dna","dog","dollar-sign","dolly","dolly-flatbed","donate","door-closed","door-open","dot-circle","dove","download","drafting-compass","dragon","draw-polygon","drum","drum-steelpan","drumstick-bite","dumbbell","dumpster","dumpster-fire","dungeon","edit","egg","eject","ellipsis-h","ellipsis-v","empty-set","envelope","envelope-open","envelope-open-text","envelope-square","equals","eraser","ethernet","euro-sign","exchange-alt","exclamation","exclamation-circle","exclamation-triangle","expand","expand-alt","expand-arrows-alt","external-link-alt","external-link-square-alt","eye","eye-dropper","eye-slash","fan","fast-backward","fast-forward","faucet","fax","feather","feather-alt","female","fighter-jet","file","file-alt","file-archive","file-audio","file-code","file-contract","file-csv","file-download","file-excel","file-export","file-image","file-import","file-invoice","file-invoice-dollar","file-medical","file-medical-alt","file-pdf","file-powerpoint","file-prescription","file-signature","file-upload","file-video","file-word","fill","fill-drip","film","filter","fingerprint","fire","fire-alt","fire-extinguisher","first-aid","fish","fist-raised","flag","flag-checkered","flag-usa","flask","flushed","folder","folder-minus","folder-open","folder-plus","font","football-ball","forward","frog","frown","frown-open","function","funnel-dollar","futbol","gamepad","gas-pump","gavel","gem","genderless","ghost","gift","gifts","glass-cheers","glass-martini","glass-martini-alt","glass-whiskey","glasses","globe","globe-africa","globe-americas","globe-asia","globe-europe","golf-ball","gopuram","graduation-cap","greater-than","greater-than-equal","grimace","grin","grin-alt","grin-beam","grin-beam-sweat","grin-hearts","grin-squint","grin-squint-tears","grin-stars","grin-tears","grin-tongue","grin-tongue-squint","grin-tongue-wink","grin-wink","grip-horizontal","grip-lines","grip-lines-vertical","grip-vertical","guitar","h-square","hamburger","hammer","hamsa","hand-holding","hand-holding-heart","hand-holding-medical","hand-holding-usd","hand-holding-water","hand-lizard","hand-middle-finger","hand-paper","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","hand-pointer","hand-rock","hand-scissors","hand-sparkles","hand-spock","hands","hands-helping","hands-wash","handshake","handshake-alt-slash","handshake-slash","hanukiah","hard-hat","hashtag","hat-cowboy","hat-cowboy-side","hat-wizard","hdd","head-side-cough","head-side-cough-slash","head-side-mask","head-side-virus","heading","headphones","headphones-alt","headset","heart","heart-broken","heartbeat","helicopter","highlighter","hiking","hippo","history","hockey-puck","holly-berry","home","horse","horse-head","hospital","hospital-alt","hospital-symbol","hospital-user","hot-tub","hotdog","hotel","hourglass","hourglass-end","hourglass-half","hourglass-start","house-damage","house-user","hryvnia","i-cursor","ice-cream","icicles","icons","id-badge","id-card","id-card-alt","igloo","image","images","inbox","indent","industry","infinity","info","info-circle","integral","intersection","italic","jedi","joint","journal-whills","kaaba","key","keyboard","khanda","kiss","kiss-beam","kiss-wink-heart","kiwi-bird","lambda","landmark","language","laptop","laptop-code","laptop-house","laptop-medical","laugh","laugh-beam","laugh-squint","laugh-wink","layer-group","leaf","lemon","less-than","less-than-equal","level-down-alt","level-up-alt","life-ring","lightbulb","link","lira-sign","list","list-alt","list-ol","list-ul","location-arrow","lock","lock-open","long-arrow-alt-down","long-arrow-alt-left","long-arrow-alt-right","long-arrow-alt-up","low-vision","luggage-cart","lungs","lungs-virus","magic","magnet","mail-bulk","male","map","map-marked","map-marked-alt","map-marker","map-marker-alt","map-pin","map-signs","marker","mars","mars-double","mars-stroke","mars-stroke-h","mars-stroke-v","mask","medal","medkit","meh","meh-blank","meh-rolling-eyes","memory","menorah","mercury","meteor","microchip","microphone","microphone-alt","microphone-alt-slash","microphone-slash","microscope","minus","minus-circle","minus-square","mitten","mobile","mobile-alt","money-bill","money-bill-alt","money-bill-wave","money-bill-wave-alt","money-check","money-check-alt","monument","moon","mortar-pestle","mosque","motorcycle","mountain","mouse","mouse-pointer","mug-hot","music","network-wired","neuter","newspaper","not-equal","notes-medical","object-group","object-ungroup","oil-can","om","omega","otter","outdent","pager","paint-brush","paint-roller","palette","pallet","paper-plane","paperclip","parachute-box","paragraph","parking","passport","pastafarianism","paste","pause","pause-circle","paw","peace","pen","pen-alt","pen-fancy","pen-nib","pen-square","pencil-alt","pencil-ruler","people-arrows","people-carry","pepper-hot","percent","percentage","person-booth","phone","phone-alt","phone-slash","phone-square","phone-square-alt","phone-volume","photo-video","pi","piggy-bank","pills","pizza-slice","place-of-worship","plane","plane-arrival","plane-departure","plane-slash","play","play-circle","plug","plus","plus-circle","plus-square","podcast","poll","poll-h","poo","poo-storm","poop","portrait","pound-sign","power-off","pray","praying-hands","prescription","prescription-bottle","prescription-bottle-alt","print","procedures","project-diagram","pump-medical","pump-soap","puzzle-piece","qrcode","question","question-circle","quidditch","quote-left","quote-right","quran","radiation","radiation-alt","rainbow","random","receipt","record-vinyl","recycle","redo","redo-alt","registered","remove-format","reply","reply-all","republican","restroom","retweet","ribbon","ring","road","robot","rocket","route","rss","rss-square","ruble-sign","ruler","ruler-combined","ruler-horizontal","ruler-vertical","running","rupee-sign","sad-cry","sad-tear","satellite","satellite-dish","save","school","screwdriver","scroll","sd-card","search","search-dollar","search-location","search-minus","search-plus","seedling","server","shapes","share","share-alt","share-alt-square","share-square","shekel-sign","shield-alt","shield-virus","ship","shipping-fast","shoe-prints","shopping-bag","shopping-basket","shopping-cart","shower","shuttle-van","sigma","sign","sign-in-alt","sign-language","sign-out-alt","signal","signal-alt","signal-alt-slash","signal-slash","signature","sim-card","sink","sitemap","skating","skiing","skiing-nordic","skull","skull-crossbones","slash","sleigh","sliders-h","smile","smile-beam","smile-wink","smog","smoking","smoking-ban","sms","snowboarding","snowflake","snowman","snowplow","soap","socks","solar-panel","sort","sort-alpha-down","sort-alpha-down-alt","sort-alpha-up","sort-alpha-up-alt","sort-amount-down","sort-amount-down-alt","sort-amount-up","sort-amount-up-alt","sort-down","sort-numeric-down","sort-numeric-down-alt","sort-numeric-up","sort-numeric-up-alt","sort-up","spa","space-shuttle","spell-check","spider","spinner","splotch","spray-can","square","square-full","square-root","square-root-alt","stamp","star","star-and-crescent","star-half","star-half-alt","star-of-david","star-of-life","step-backward","step-forward","stethoscope","sticky-note","stop","stop-circle","stopwatch","stopwatch-20","store","store-alt","store-alt-slash","store-slash","stream","street-view","strikethrough","stroopwafel","subscript","subway","suitcase","suitcase-rolling","sun","superscript","surprise","swatchbook","swimmer","swimming-pool","synagogue","sync","sync-alt","syringe","table","table-tennis","tablet","tablet-alt","tablets","tachometer-alt","tag","tags","tally","tape","tasks","taxi","teeth","teeth-open","temperature-high","temperature-low","tenge","terminal","text-height","text-width","th","th-large","th-list","theater-masks","thermometer","thermometer-empty","thermometer-full","thermometer-half","thermometer-quarter","thermometer-three-quarters","theta","thumbs-down","thumbs-up","thumbtack","ticket-alt","tilde","times","times-circle","tint","tint-slash","tired","toggle-off","toggle-on","toilet","toilet-paper","toilet-paper-slash","toolbox","tools","tooth","torah","torii-gate","tractor","trademark","traffic-light","trailer","train","tram","transgender","transgender-alt","trash","trash-alt","trash-restore","trash-restore-alt","tree","trophy","truck","truck-loading","truck-monster","truck-moving","truck-pickup","tshirt","tty","tv","umbrella","umbrella-beach","underline","undo","undo-alt","union","universal-access","university","unlink","unlock","unlock-alt","upload","user","user-alt","user-alt-slash","user-astronaut","user-check","user-circle","user-clock","user-cog","user-edit","user-friends","user-graduate","user-injured","user-lock","user-md","user-minus","user-ninja","user-nurse","user-plus","user-secret","user-shield","user-slash","user-tag","user-tie","user-times","users","users-cog","users-slash","utensil-spoon","utensils","value-absolute","vector-square","venus","venus-double","venus-mars","vest","vest-patches","vial","vials","video","video-slash","vihara","virus","virus-slash","viruses","voicemail","volleyball-ball","volume","volume-down","volume-mute","volume-off","volume-slash","volume-up","vote-yea","vr-cardboard","walking","wallet","warehouse","water","wave-square","weight","weight-hanging","wheelchair","wifi","wifi-slash","wind","window-close","window-maximize","window-minimize","window-restore","wine-bottle","wine-glass","wine-glass-alt","won-sign","wrench","x-ray","yen-sign","yin-yang"]},F={class:"selector w-[350px]"},O={class:"flex flex-wrap px-2 ml-2"},U=["title","onClick"],$=Vue.defineComponent({name:"IconSelect",__name:"Select",props:{modelValue:{require:!1,type:String}},emits:["update:modelValue"],setup(b,{emit:i}){const o=b,s=Vue.ref(!1),n=Vue.toRef(o,"modelValue"),c=Vue.ref(L),p=Vue.ref("add-location"),e=Vue.ref("ep:"),m=S(c.value),u=Vue.ref(96),l=Vue.ref(1),d=Vue.ref(""),k=[{label:"Element Plus",name:"ep:"},{label:"Font Awesome 4",name:"fa:"},{label:"Font Awesome 5 Solid",name:"fa-solid:"}],v=Vue.computed(()=>l.value===1?m[e.value].filter(a=>a.includes(d.value)).slice(l.value-1,u.value):m[e.value].filter(a=>a.includes(d.value)).slice(u.value*(l.value-1),u.value*(l.value-1)+u.value)),y=Vue.computed(()=>a=>{if(n.value===e.value+a)return{borderColor:"var(--el-color-primary)",color:"var(--el-color-primary)"}});function V({props:a}){l.value=1,e.value=a.name,i("update:modelValue",e.value+c.value[e.value][0]),p.value=c.value[e.value][0]}function q(a){p.value=a,i("update:modelValue",e.value+a),s.value=!1}function x(a){l.value=a}return Vue.watch(()=>o.modelValue,()=>{o.modelValue&&(e.value=o.modelValue.substring(0,o.modelValue.indexOf(":")+1),p.value=o.modelValue.substring(o.modelValue.indexOf(":")+1))}),Vue.watch(()=>d.value,()=>{l.value=1}),(a,t)=>{const f=Vue.resolveComponent("IconifyIconOnline"),w=Vue.resolveComponent("el-input"),g=Vue.resolveComponent("el-divider"),_=Vue.resolveComponent("el-scrollbar"),z=Vue.resolveComponent("el-tab-pane"),C=Vue.resolveComponent("el-tabs"),j=Vue.resolveComponent("el-pagination"),N=Vue.resolveComponent("el-popover");return Vue.openBlock(),Vue.createElementBlock("div",F,[Vue.createVNode(w,{modelValue:n.value,"onUpdate:modelValue":t[3]||(t[3]=r=>n.value=r),disabled:""},{append:Vue.withCtx(()=>[Vue.createVNode(N,{width:350,trigger:"click","popper-class":"pure-popper","popper-options":{placement:"auto"},visible:s.value},{reference:Vue.withCtx(()=>[Vue.createElementVNode("div",{class:"w-[40px] h-[32px] cursor-pointer flex justify-center items-center",onClick:t[0]||(t[0]=r=>s.value=!s.value)},[Vue.createVNode(f,{icon:e.value+p.value},null,8,["icon"])])]),default:Vue.withCtx(()=>[Vue.createVNode(w,{class:"p-2",modelValue:d.value,"onUpdate:modelValue":t[1]||(t[1]=r=>d.value=r),placeholder:"搜索图标",clearable:""},null,8,["modelValue"]),Vue.createVNode(g,{"border-style":"dashed"}),Vue.createVNode(C,{modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=r=>e.value=r),onTabClick:V},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(k,(r,I)=>Vue.createVNode(z,{key:I,label:r.label,name:r.name},{default:Vue.withCtx(()=>[Vue.createVNode(g,{class:"tab-divider","border-style":"dashed"}),Vue.createVNode(_,{height:"220px"},{default:Vue.withCtx(()=>[Vue.createElementVNode("ul",O,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(v.value,(h,B)=>(Vue.openBlock(),Vue.createElementBlock("li",{key:B,title:h,class:"icon-item p-2 w-[1/10] cursor-pointer mr-2 mt-1 flex justify-center items-center border border-solid",style:Vue.normalizeStyle(y.value(h)),onClick:P=>q(h)},[Vue.createVNode(f,{icon:e.value+h},null,8,["icon"])],12,U))),128))])]),_:1})]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"]),Vue.createVNode(g,{"border-style":"dashed"}),Vue.createVNode(j,{small:"",total:Vue.unref(m)[e.value].length,"page-size":u.value,"current-page":l.value,background:"",layout:"prev, pager, next",class:"flex items-center justify-center h-10",onCurrentChange:x},null,8,["total","page-size","current-page"])]),_:1},8,["visible"])]),_:1},8,["modelValue"])])}}});const A=E($,[["__scopeId","data-v-fb1b5ec7"]]),K=Vue.createElementVNode("div",{class:"card-header"},[Vue.createElementVNode("span",{class:"font-medium"},"图标选择器")],-1),J=Vue.defineComponent({name:"IconSelect",__name:"icon-select",setup(b){const i=Vue.ref("ep:add-location");return(o,s)=>{const n=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(n,{shadow:"never"},{header:Vue.withCtx(()=>[K]),default:Vue.withCtx(()=>[Vue.createVNode(A,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=c=>i.value=c)},null,8,["modelValue"])]),_:1})}}});export{J as default}; diff --git a/dist/static/js/imgPreview-4dc4fa68.js b/dist/static/js/imgPreview-4dc4fa68.js new file mode 100644 index 000000000..b0ae401d6 --- /dev/null +++ b/dist/static/js/imgPreview-4dc4fa68.js @@ -0,0 +1 @@ +import{_ as o}from"./imgPreview.vue_vue_type_script_setup_true_lang-bcaea8a2.js";import"./data-7bb4b374.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/imgPreview-b8d58cc5.js b/dist/static/js/imgPreview-b8d58cc5.js deleted file mode 100644 index 55dc85a85..000000000 --- a/dist/static/js/imgPreview-b8d58cc5.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./imgPreview.vue_vue_type_script_setup_true_lang-cd30c44a.js";import"./data-5ec60fc2.js";import"./index-c61a73ff.js";export{o as default}; diff --git a/dist/static/js/imgPreview.vue_vue_type_script_setup_true_lang-bcaea8a2.js b/dist/static/js/imgPreview.vue_vue_type_script_setup_true_lang-bcaea8a2.js new file mode 100644 index 000000000..e86721396 --- /dev/null +++ b/dist/static/js/imgPreview.vue_vue_type_script_setup_true_lang-bcaea8a2.js @@ -0,0 +1 @@ +import{d as e}from"./data-7bb4b374.js";import{d as m,c as a,f as d,e as _,w as o,g,u as t,i}from"./index-0dd8d5e4.js";const u=i("video",{width:"180",height:"180",controls:""},[i("source",{src:"https://yiming_chang.gitee.io/pure-admin-doc/video/url.mov",type:"video/mp4"})],-1),x=m({__name:"imgPreview",setup(v){const s=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"},{label:"视频",slot:"video"},{label:"图像",slot:"image"}];return(h,b)=>{const r=a("el-image"),l=a("pure-table");return d(),_(l,{data:t(e),columns:s},{video:o(()=>[u]),image:o(({row:n,index:p})=>[g(r,{"preview-teleported":"",loading:"lazy",src:n.image,"preview-src-list":t(e).map(c=>c.image),"initial-index":p,fit:"cover",class:"w-[100px] h-[100px]"},null,8,["src","preview-src-list","initial-index"])]),_:1},8,["data"])}}});export{x as _}; diff --git a/dist/static/js/imgPreview.vue_vue_type_script_setup_true_lang-cd30c44a.js b/dist/static/js/imgPreview.vue_vue_type_script_setup_true_lang-cd30c44a.js deleted file mode 100644 index 47674542b..000000000 --- a/dist/static/js/imgPreview.vue_vue_type_script_setup_true_lang-cd30c44a.js +++ /dev/null @@ -1 +0,0 @@ -import{d as e}from"./data-5ec60fc2.js";const l=Vue.createElementVNode("video",{width:"180",height:"180",controls:""},[Vue.createElementVNode("source",{src:"https://yiming_chang.gitee.io/pure-admin-doc/video/url.mov",type:"video/mp4"})],-1),u=Vue.defineComponent({__name:"imgPreview",setup(p){const t=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"},{label:"视频",slot:"video"},{label:"图像",slot:"image"}];return(s,c)=>{const o=Vue.resolveComponent("el-image"),a=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(a,{data:Vue.unref(e),columns:t},{video:Vue.withCtx(()=>[l]),image:Vue.withCtx(({row:i,index:n})=>[Vue.createVNode(o,{"preview-teleported":"",loading:"lazy",src:i.image,"preview-src-list":Vue.unref(e).map(r=>r.image),"initial-index":n,fit:"cover",class:"w-[100px] h-[100px]"},null,8,["src","preview-src-list","initial-index"])]),_:1},8,["data"])}}});export{u as _}; diff --git a/dist/static/js/index-03a042a0.js b/dist/static/js/index-03a042a0.js new file mode 100644 index 000000000..ffb36a57d --- /dev/null +++ b/dist/static/js/index-03a042a0.js @@ -0,0 +1,4 @@ +import{p as n}from"./propTypes-c3354283.js";import{d as S,a7 as D,x as w,y as z,af as A,a as k,g as a,F as h,u as m,r as _,a8 as B,b as R,h as r,R as v,c as q,e as E,w as T,f as F,i as g,k as $,l as M}from"./index-0dd8d5e4.js";const G={startVal:n.number.def(0),endVal:n.number.def(2020),duration:n.number.def(1300),autoplay:n.bool.def(!0),decimals:{type:Number,required:!1,default:0,validator(t){return t>=0}},color:n.string.def(),fontSize:n.string.def(),decimal:n.string.def("."),separator:n.string.def(","),prefix:n.string.def(""),suffix:n.string.def(""),useEasing:n.bool.def(!0),easingFn:{type:Function,default(t,u,e,i){return e*(-Math.pow(2,-10*t/i)+1)*1024/1023+u}}},L=S({name:"ReNormalCountTo",props:G,emits:["mounted","callback"],setup(t,{emit:u}){const e=D({localStartVal:t.startVal,displayValue:p(t.startVal),printVal:null,paused:!1,localDuration:t.duration,startTime:null,timestamp:null,remaining:null,rAF:null,color:null,fontSize:"16px"}),i=w(()=>t.startVal>t.endVal);z([()=>t.startVal,()=>t.endVal],()=>{t.autoplay&&c()});function c(){const{startVal:o,duration:V,color:f,fontSize:l}=t;e.localStartVal=o,e.startTime=null,e.localDuration=V,e.paused=!1,e.color=f,e.fontSize=l,e.rAF=requestAnimationFrame(d)}function d(o){const{useEasing:V,easingFn:f,endVal:l}=t;e.startTime||(e.startTime=o),e.timestamp=o;const s=o-e.startTime;e.remaining=e.localDuration-s,V?m(i)?e.printVal=e.localStartVal-f(s,0,e.localStartVal-l,e.localDuration):e.printVal=f(s,e.localStartVal,l-e.localStartVal,e.localDuration):m(i)?e.printVal=e.localStartVal-(e.localStartVal-l)*(s/e.localDuration):e.printVal=e.localStartVal+(l-e.localStartVal)*(s/e.localDuration),m(i)?e.printVal=e.printVall?l:e.printVal,e.displayValue=p(e.printVal),s1?f+y[1]:"",x=/(\d+)(\d{3})/;if(l&&!A(l))for(;x.test(b);)b=b.replace(x,"$1"+l+"$2");return C+b+N+s}return k(()=>{t.autoplay&&c(),u("mounted")}),()=>a(h,null,[a("span",{style:{color:t.color,fontSize:t.fontSize}},[e.displayValue])])}});const P={delay:n.number.def(1),blur:n.number.def(2),i:{type:Number,required:!1,default:0,validator(t){return t<10&&t>=0&&Number.isInteger(t)}}},U=S({name:"ReboundCountTo",props:P,setup(t){const u=_(),e=_(null);return B(()=>{const i=navigator.userAgent.toLowerCase(),c=p=>p.test(i);c(/safari/g)&&!c(/chrome/g)&&(e.value=setTimeout(()=>{u.value.setAttribute("style",` + animation: none; + transform: translateY(calc(var(--i) * -9.09%)) + `)},t.delay*1e3))}),R(()=>{clearTimeout(m(e))}),()=>a(h,null,[a("div",{class:"scroll-num",style:{"--i":t.i,"--delay":t.delay}},[a("ul",{ref:"ulRef",style:{fontSize:"32px"}},[a("li",null,[r("0")]),a("li",null,[r("1")]),a("li",null,[r("2")]),a("li",null,[r("3")]),a("li",null,[r("4")]),a("li",null,[r("5")]),a("li",null,[r("6")]),a("li",null,[r("7")]),a("li",null,[r("8")]),a("li",null,[r("9")]),a("li",null,[r("0")])]),a("svg",{width:"0",height:"0"},[a("filter",{id:"blur"},[a("feGaussianBlur",{in:"SourceGraphic",stdDeviation:`0 ${t.blur}`},null)])])])])}}),H=v(L),I=v(U),Y=g("div",{class:"card-header"},[g("span",{class:"font-medium"},"数字动画组件")],-1),j={class:"flex items-center"},J={class:"flex ml-8"},Q=S({name:"CountTo",__name:"index",setup(t){return(u,e)=>{const i=q("el-card");return F(),E(i,{shadow:"never"},{header:T(()=>[Y]),default:T(()=>[g("div",j,[a(m(H),{prefix:"$",duration:1e3,color:"#409EFF",fontSize:"2em",startVal:1,endVal:1e3}),g("ul",J,[(F(),$(h,null,M([1,6,6,6],(c,d)=>a(m(I),{key:d,i:c,blur:d,delay:d+1},null,8,["i","blur","delay"])),64))])])]),_:1})}}});export{Q as default}; diff --git a/dist/static/js/index-04f26cf0.js b/dist/static/js/index-04f26cf0.js new file mode 100644 index 000000000..24cedb1b1 --- /dev/null +++ b/dist/static/js/index-04f26cf0.js @@ -0,0 +1 @@ +import c from"./basic-09712a8c.js";import m from"./menuGroup-03365b00.js";import l from"./menuDynamic-f234f67c.js";import{d as _,c as a,e as d,w as o,f as p,g as e,i as s}from"./index-0dd8d5e4.js";import"./index.esm-04a1a156.js";const u=s("div",{class:"card-header"},[s("span",{class:"font-medium"},"右键菜单组件")],-1),B=_({name:"ContextMenu",__name:"index",setup(f){return(i,x)=>{const t=a("el-col"),n=a("el-row"),r=a("el-card");return p(),d(r,{shadow:"never"},{header:o(()=>[u]),default:o(()=>[e(n,{gutter:24},{default:o(()=>[e(t,{xs:24,sm:10,md:10,lg:8,xl:10},{default:o(()=>[e(c)]),_:1}),e(t,{xs:24,sm:10,md:10,lg:8,xl:10},{default:o(()=>[e(m)]),_:1}),e(t,{xs:24,sm:10,md:10,lg:8,xl:10},{default:o(()=>[e(l)]),_:1})]),_:1})]),_:1})}}});export{B as default}; diff --git a/dist/static/js/index-08cd3286.js b/dist/static/js/index-08cd3286.js deleted file mode 100644 index 565e12b8a..000000000 --- a/dist/static/js/index-08cd3286.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-e92884ca.js";import"./columns-97dc43c8.js";import"./index-c61a73ff.js";import"./data-8e10e21a.js";import"./message-9ae1daa3.js";import"./index-f1e7ee6d.js";export{o as default}; diff --git a/dist/static/js/index-0a0d5e28.js b/dist/static/js/index-0a0d5e28.js deleted file mode 100644 index 82fd246d1..000000000 --- a/dist/static/js/index-0a0d5e28.js +++ /dev/null @@ -1,6 +0,0 @@ -import{S as dt,a as Ut}from"./sortable.esm-679e0872.js";import{u as ft}from"./app-7adcc40f.js";import{u as qt}from"./hooks-55e29a46.js";import{_ as Kt}from"./index-c61a73ff.js";/**! - * Sortable 1.14.0 - * @author RubaXa - * @author owenm - * @license MIT - */function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function j(t){for(var e=1;e=0)&&(n[r]=t[r]);return n}function Jt(t,e){if(t==null)return{};var n=Qt(t,e),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}var en="1.14.0";function $(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var q=$(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),xe=$(/Edge/i),pt=$(/firefox/i),ye=$(/safari/i)&&!$(/chrome/i)&&!$(/android/i),xt=$(/iP(ad|od|hone)/i),tn=$(/chrome/i)&&$(/android/i),Vt={capture:!1,passive:!1};function w(t,e,n){t.addEventListener(e,n,!q&&Vt)}function b(t,e,n){t.removeEventListener(e,n,!q&&Vt)}function Re(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function nn(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function H(t,e,n,o){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Re(t,e):Re(t,e))||o&&t===n)return t;if(t===n)break}while(t=nn(t))}return null}var mt=/\s+/g;function P(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(mt," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(mt," ")}}function h(t,e,n){var o=t&&t.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in o)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),o[e]=n+(typeof n=="string"?"":"px")}}function de(t,e){var n="";if(typeof t=="string")n=t;else do{var o=h(t,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Tt(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r=i:a=r<=i,!a)return o;if(o===W())break;o=ee(o,!1)}return!1}function fe(t,e,n,o){for(var r=0,i=0,a=t.children;i2&&arguments[2]!==void 0?arguments[2]:{},r=o.evt,i=Jt(o,dn);Ve.pluginEvent.bind(p)(e,n,j({dragEl:c,parentEl:D,ghostEl:g,rootEl:E,nextEl:ae,lastDownEl:Fe,cloneEl:S,cloneHidden:J,dragStarted:be,putSortable:V,activeSortable:p.active,originalEvent:r,oldIndex:ce,oldDraggableIndex:De,newIndex:F,newDraggableIndex:Q,hideGhostForTarget:kt,unhideGhostForTarget:Mt,cloneNowHidden:function(){J=!0},cloneNowShown:function(){J=!1},dispatchSortableEvent:function(l){O({sortable:n,name:l,originalEvent:r})}},i))};function O(t){cn(j({putSortable:V,cloneEl:S,targetEl:c,rootEl:E,oldIndex:ce,oldDraggableIndex:De,newIndex:F,newDraggableIndex:Q},t))}var c,D,g,E,ae,Fe,S,J,ce,F,De,Q,Ie,V,ue=!1,Be=!1,Xe=[],re,B,ze,$e,bt,_t,be,se,Se,Ce=!1,Oe=!1,ke,T,Ue=[],tt=!1,Ye=[],We=typeof document<"u",Ne=xt,wt=xe||q?"cssFloat":"float",fn=We&&!tn&&!xt&&"draggable"in document.createElement("div"),At=function(){if(We){if(q)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),Pt=function(e,n){var o=h(e),r=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=fe(e,0,n),a=fe(e,1,n),l=i&&h(i),s=a&&h(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+x(i).width,d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+x(a).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=r&&o[wt]==="none"||a&&o[wt]==="none"&&u+d>r)?"vertical":"horizontal"},hn=function(e,n,o){var r=o?e.left:e.top,i=o?e.right:e.bottom,a=o?e.width:e.height,l=o?n.left:n.top,s=o?n.right:n.bottom,u=o?n.width:n.height;return r===l||i===s||r+a/2===l+u/2},pn=function(e,n){var o;return Xe.some(function(r){var i=r[k].options.emptyInsertThreshold;if(!(!i||at(r))){var a=x(r),l=e>=a.left-i&&e<=a.right+i,s=n>=a.top-i&&n<=a.bottom+i;if(l&&s)return o=r}}),o},Ft=function(e){function n(i,a){return function(l,s,u,d){var f=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(i==null&&(a||f))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(l,s,u,d),a)(l,s,u,d);var m=(a?l:s).options.group.name;return i===!0||typeof i=="string"&&i===m||i.join&&i.indexOf(m)>-1}}var o={},r=e.group;(!r||Pe(r)!="object")&&(r={name:r}),o.name=r.name,o.checkPull=n(r.pull,!0),o.checkPut=n(r.put),o.revertClone=r.revertClone,e.group=o},kt=function(){!At&&g&&h(g,"display","none")},Mt=function(){!At&&g&&h(g,"display","")};We&&document.addEventListener("click",function(t){if(Be)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Be=!1,!1},!0);var ie=function(e){if(c){e=e.touches?e.touches[0]:e;var n=pn(e.clientX,e.clientY);if(n){var o={};for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[k]._onDragOver(o)}}},mn=function(e){c&&c.parentNode[k]._isOutsideThisEl(e.target)};function p(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=U({},e),t[k]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Pt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:p.supportPointer!==!1&&"PointerEvent"in window&&!ye,emptyInsertThreshold:5};Ve.initializePlugins(this,t,n);for(var o in n)!(o in e)&&(e[o]=n[o]);Ft(e);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:fn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?w(t,"pointerdown",this._onTapStart):(w(t,"mousedown",this._onTapStart),w(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(t,"dragover",this),w(t,"dragenter",this)),Xe.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),U(this,ln())}p.prototype={constructor:p,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(se=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,c):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,o=this.el,r=this.options,i=r.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,d=r.filter;if(Dn(o),!c&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&ye&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=H(s,r.draggable,o,!1),!(s&&s.animated)&&Fe!==s)){if(ce=M(s),De=M(s,r.draggable),typeof d=="function"){if(d.call(this,e,s,this)){O({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:o,fromEl:o}),N("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(d&&(d=d.split(",").some(function(f){if(f=H(u,f.trim(),o,!1),f)return O({sortable:n,rootEl:f,name:"filter",targetEl:s,fromEl:o,toEl:o}),N("filter",n,{evt:e}),!0}),d)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!H(u,r.handle,o,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,n,o){var r=this,i=r.el,a=r.options,l=i.ownerDocument,s;if(o&&!c&&o.parentNode===i){var u=x(o);if(E=i,c=o,D=c.parentNode,ae=c.nextSibling,Fe=o,Ie=a.group,p.dragged=c,re={target:c,clientX:(n||e).clientX,clientY:(n||e).clientY},bt=re.clientX-u.left,_t=re.clientY-u.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,c.style["will-change"]="all",s=function(){if(N("delayEnded",r,{evt:e}),p.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!pt&&r.nativeDraggable&&(c.draggable=!0),r._triggerDragStart(e,n),O({sortable:r,name:"choose",originalEvent:e}),P(c,a.chosenClass,!0)},a.ignore.split(",").forEach(function(d){Tt(c,d.trim(),qe)}),w(l,"dragover",ie),w(l,"mousemove",ie),w(l,"touchmove",ie),w(l,"mouseup",r._onDrop),w(l,"touchend",r._onDrop),w(l,"touchcancel",r._onDrop),pt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),N("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(xe||q))){if(p.eventCanceled){this._onDrop();return}w(l,"mouseup",r._disableDelayedDrag),w(l,"touchend",r._disableDelayedDrag),w(l,"touchcancel",r._disableDelayedDrag),w(l,"mousemove",r._delayedDragTouchMoveHandler),w(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&w(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&qe(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._disableDelayedDrag),b(e,"touchend",this._disableDelayedDrag),b(e,"touchcancel",this._disableDelayedDrag),b(e,"mousemove",this._delayedDragTouchMoveHandler),b(e,"touchmove",this._delayedDragTouchMoveHandler),b(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):n?w(document,"touchmove",this._onTouchMove):w(document,"mousemove",this._onTouchMove):(w(c,"dragend",this),w(E,"dragstart",this._onDragStart));try{document.selection?Me(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(ue=!1,E&&c){N("dragStarted",this,{evt:n}),this.nativeDraggable&&w(document,"dragover",mn);var o=this.options;!e&&P(c,o.dragClass,!1),P(c,o.ghostClass,!0),p.active=this,e&&this._appendGhost(),O({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(B){this._lastX=B.clientX,this._lastY=B.clientY,kt();for(var e=document.elementFromPoint(B.clientX,B.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(B.clientX,B.clientY),e!==n);)n=e;if(c.parentNode[k]._isOutsideThisEl(e),n)do{if(n[k]){var o=void 0;if(o=n[k]._onDragOver({clientX:B.clientX,clientY:B.clientY,target:e,rootEl:n}),o&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);Mt()}},_onTouchMove:function(e){if(re){var n=this.options,o=n.fallbackTolerance,r=n.fallbackOffset,i=e.touches?e.touches[0]:e,a=g&&de(g,!0),l=g&&a&&a.a,s=g&&a&&a.d,u=Ne&&T&&vt(T),d=(i.clientX-re.clientX+r.x)/(l||1)+(u?u[0]-Ue[0]:0)/(l||1),f=(i.clientY-re.clientY+r.y)/(s||1)+(u?u[1]-Ue[1]:0)/(s||1);if(!p.active&&!ue){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(O({rootEl:D,name:"add",toEl:D,fromEl:E,originalEvent:e}),O({sortable:this,name:"remove",toEl:D,originalEvent:e}),O({rootEl:D,name:"sort",toEl:D,fromEl:E,originalEvent:e}),O({sortable:this,name:"sort",toEl:D,originalEvent:e})),V&&V.save()):F!==ce&&F>=0&&(O({sortable:this,name:"update",toEl:D,originalEvent:e}),O({sortable:this,name:"sort",toEl:D,originalEvent:e})),p.active&&((F==null||F===-1)&&(F=ce,Q=De),O({sortable:this,name:"end",toEl:D,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){N("nulling",this),E=c=D=g=ae=S=Fe=J=re=B=be=F=Q=ce=De=se=Se=V=Ie=p.dragged=p.ghost=p.clone=p.active=null,Ye.forEach(function(e){e.checked=!0}),Ye.length=ze=$e=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":c&&(this._onDragOver(e),gn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,o=this.el.children,r=0,i=o.length,a=this.options;ro.right+r||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+r}function wn(t,e,n,o,r,i,a,l){var s=o?t.clientY:t.clientX,u=o?n.height:n.width,d=o?n.top:n.left,f=o?n.bottom:n.right,m=!1;if(!a){if(l&&ked+u*i/2:sf-ke)return-Se}else if(s>d+u*(1-r)/2&&sf-u*i/2)?s>d+u/2?1:-1:0}function yn(t){return M(c)t.replace(Tn,(e,n)=>n.toUpperCase())),Rt=["Start","Add","Remove","Update","End"],Bt=["Choose","Unchoose","Sort","Filter","Clone"],Xt=["Move"],On=[Xt,Rt,Bt].flatMap(t=>t).map(t=>`on${t}`),it={manage:Xt,manageAndEmit:Rt,emit:Bt};function Nn(t){return On.indexOf(t)!==-1}const An=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function Pn(t){return An.includes(t)}function Fn(t){return["transition-group","TransitionGroup"].includes(t)}function Yt(t){return["id","class","role","style"].includes(t)||t.startsWith("data-")||t.startsWith("aria-")||t.startsWith("on")}function Ht(t){return t.reduce((e,[n,o])=>(e[n]=o,e),{})}function kn({$attrs:t,componentData:e={}}){return{...Ht(Object.entries(t).filter(([o,r])=>Yt(o))),...e}}function Mn({$attrs:t,callBackBuilder:e}){const n=Ht(Wt(t));Object.entries(e).forEach(([r,i])=>{it[r].forEach(a=>{n[`on${a}`]=i(a)})});const o=`[data-draggable]${n.draggable||""}`;return{...n,draggable:o}}function Wt(t){return Object.entries(t).filter(([e,n])=>!Yt(e)).map(([e,n])=>[In(e),n]).filter(([e,n])=>!Nn(e))}const Dt=({el:t})=>t,Ln=(t,e)=>t.__draggable_context=e,St=t=>t.__draggable_context;class Rn{constructor({nodes:{header:e,default:n,footer:o},root:r,realList:i}){this.defaultNodes=n,this.children=[...e,...n,...o],this.externalComponent=r.externalComponent,this.rootTransition=r.transition,this.tag=r.tag,this.realList=i}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,n){const{tag:o,children:r,_isRootComponent:i}=this;return e(o,n,i?{default:()=>r}:r)}updated(){const{defaultNodes:e,realList:n}=this;e.forEach((o,r)=>{Ln(Dt(o),{element:n[r],index:r})})}getUnderlyingVm(e){return St(e)}getVmIndexFromDomIndex(e,n){const{defaultNodes:o}=this,{length:r}=o,i=n.children,a=i.item(e);if(a===null)return r;const l=St(a);if(l)return l.index;if(r===0)return 0;const s=Dt(o[0]),u=[...i].findIndex(d=>d===s);return eBn(t,s)),{item:a}=t;if(!a)throw new Error("draggable element must have an item slot");const l=o.flatMap((s,u)=>a({element:s,index:u}).map(d=>(d.key=n(s),d.props={...d.props||{},"data-draggable":!0},d)));if(l.length!==o.length)throw new Error("Item slot must have only one child");return{header:r,footer:i,default:l}}function Yn(t){const e=Fn(t),n=!Pn(t)&&!e;return{transition:e,externalComponent:n,tag:n?Vue.resolveComponent(t):e?Vue.TransitionGroup:t}}function Hn({$slots:t,tag:e,realList:n,getKey:o}){const r=Xn({$slots:t,realList:n,getKey:o}),i=Yn(e);return new Rn({nodes:r,root:i,realList:n})}function jt(t,e){Vue.nextTick(()=>this.$emit(t.toLowerCase(),e))}function Gt(t){return(e,n)=>{if(this.realList!==null)return this[`onDrag${t}`](e,n)}}function Wn(t){const e=Gt.call(this,t);return(n,o)=>{e.call(this,n,o),jt.call(this,t,n)}}let et=null;const jn={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Gn=["update:modelValue","change",...[...it.manageAndEmit,...it.emit].map(t=>t.toLowerCase())],zn=Vue.defineComponent({name:"draggable",inheritAttrs:!1,props:jn,emits:Gn,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:t,$attrs:e,tag:n,componentData:o,realList:r,getKey:i}=this,a=Hn({$slots:t,tag:n,realList:r,getKey:i});this.componentStructure=a;const l=kn({$attrs:e,componentData:o});return a.render(Vue.h,l)}catch(t){return this.error=!0,Vue.h("pre",{style:{color:"red"}},t.stack)}},created(){this.list!==null&&this.modelValue!==null&&xn.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:t,$el:e,componentStructure:n}=this;n.updated();const o=Mn({$attrs:t,callBackBuilder:{manageAndEmit:i=>Wn.call(this,i),emit:i=>jt.bind(this,i),manage:i=>Gt.call(this,i)}}),r=e.nodeType===1?e:e.parentElement;this._sortable=new p(r,o),this.targetDomElement=r,r.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:t}=this;return t||this.modelValue},getKey(){const{itemKey:t}=this;return typeof t=="function"?t:e=>e[t]}},watch:{$attrs:{handler(t){const{_sortable:e}=this;e&&Wt(t).forEach(([n,o])=>{e.option(n,o)})},deep:!0}},methods:{getUnderlyingVm(t){return this.componentStructure.getUnderlyingVm(t)||null},getUnderlyingPotencialDraggableComponent(t){return t.__draggable_component__},emitChanges(t){Vue.nextTick(()=>this.$emit("change",t))},alterList(t){if(this.list){t(this.list);return}const e=[...this.modelValue];t(e),this.$emit("update:modelValue",e)},spliceList(){const t=e=>e.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=o=>o.splice(e,0,o.splice(t,1)[0]);this.alterList(n)},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getUnderlyingPotencialDraggableComponent(t);if(!n)return{component:n};const o=n.realList,r={list:o,component:n};return t!==e&&o?{...n.getUnderlyingVm(e)||{},...r}:r},getVmIndexFromDomIndex(t){return this.componentStructure.getVmIndexFromDomIndex(t,this.targetDomElement)},onDragStart(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),et=t.item},onDragAdd(t){const e=t.item._underlying_vm_;if(e===void 0)return;Je(t.item);const n=this.getVmIndexFromDomIndex(t.newIndex);this.spliceList(n,0,e);const o={element:e,newIndex:n};this.emitChanges({added:o})},onDragRemove(t){if(Et(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){Je(t.clone);return}const{index:e,element:n}=this.context;this.spliceList(e,1);const o={element:n,oldIndex:e};this.emitChanges({removed:o})},onDragUpdate(t){Je(t.item),Et(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndexFromDomIndex(t.newIndex);this.updatePosition(e,n);const o={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:o})},computeFutureIndex(t,e){if(!t.element)return 0;const n=[...e.to.children].filter(a=>a.style.display!=="none"),o=n.indexOf(e.related),r=t.component.getVmIndexFromDomIndex(o);return n.indexOf(et)!==-1||!e.willInsertAfter?r:r+1},onDragMove(t,e){const{move:n,realList:o}=this;if(!n||!o)return!0;const r=this.getRelatedContextFromMoveEvent(t),i=this.computeFutureIndex(r,t),a={...this.context,futureIndex:i},l={...t,relatedContext:r,draggedContext:a};return n(l,e)},onDragEnd(){et=null}}}),Ct=zn,$n={width:1024,height:1024,body:''},Un=$n,ut=t=>(Vue.pushScopeId("data-v-3f26dabd"),t=t(),Vue.popScopeId(),t),qn={class:"card-header"},Kn={class:"font-medium"},Zn={class:"drag-container"},Qn=ut(()=>Vue.createElementVNode("div",{class:"card-header"},[Vue.createElementVNode("span",null,"grid列表拖拽")],-1)),Jn=ut(()=>Vue.createElementVNode("div",{class:"card-header"},[Vue.createElementVNode("span",null,"单列拖拽")],-1)),eo={class:"item-single"},to=ut(()=>Vue.createElementVNode("div",{class:"card-header"},[Vue.createElementVNode("span",null,"拖拽实现元素位置交换")],-1)),no={class:"cut-container"},oo=Vue.defineComponent({name:"Draggable",__name:"index",setup(t){const{setSortSwap:e}=ft(),n=Vue.ref([{grid:"cn",num:1},{grid:"cn",num:2},{grid:"cn",num:3},{grid:"cn",num:4},{grid:"cn",num:5},{grid:"cn",num:6},{grid:"cn",num:7},{grid:"cn",num:8},{grid:"cn",num:9}]),o=Vue.ref([{people:"cn",id:1,name:"www.itxst.com"},{people:"cn",id:2,name:"www.baidu.com"},{people:"cn",id:3,name:"www.taobao.com"},{people:"cn",id:4,name:"www.google.com"}]),r=Vue.ref([{people:"cn",id:1,name:"cut1"},{people:"cn",id:2,name:"cut2"},{people:"cn",id:3,name:"cut3"},{people:"cn",id:4,name:"cut4"}]),i=a=>{};return Vue.onMounted(()=>{ft().sortSwap||dt.mount(new Ut),e(!0),new dt(document.querySelector(".cut-container"),{swap:!0,forceFallback:!0,chosenClass:"chosen",swapClass:"highlight",animation:300})}),(a,l)=>{const s=Vue.resolveComponent("el-link"),u=Vue.resolveComponent("el-card"),d=Vue.resolveComponent("el-col"),f=Vue.resolveComponent("el-row");return Vue.openBlock(),Vue.createBlock(u,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",qn,[Vue.createElementVNode("span",Kn,[Vue.createTextVNode(" 拖拽组件,采用开源的 "),Vue.createVNode(s,{href:"https://sortablejs.github.io/vue.draggable.next/#/simple",target:"_blank",icon:Vue.unref(qt)(Vue.unref(Un)),style:{margin:"0 4px 5px","font-size":"16px"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" vuedraggable ")]),_:1},8,["icon"])])])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",Zn,[Vue.createVNode(f,{gutter:25},{default:Vue.withCtx(()=>[Vue.createVNode(d,{xs:25,sm:8,md:8,lg:8},{default:Vue.withCtx(()=>[Vue.createVNode(u,{shadow:"never"},{header:Vue.withCtx(()=>[Qn]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(Ct),{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=m=>n.value=m),class:"grid-container","item-key":"grid",animation:"300",chosenClass:"chosen",forceFallback:"true"},{item:Vue.withCtx(({element:m})=>[Vue.createElementVNode("div",{class:Vue.normalizeClass("item item-"+m.num)},Vue.toDisplayString(m.num),3)]),_:1},8,["modelValue"])]),_:1})]),_:1}),Vue.createVNode(d,{xs:25,sm:8,md:8,lg:8},{default:Vue.withCtx(()=>[Vue.createVNode(u,{shadow:"never"},{header:Vue.withCtx(()=>[Jn]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(Ct),{modelValue:o.value,"onUpdate:modelValue":l[1]||(l[1]=m=>o.value=m),"item-key":"name",onChange:i,"chosen-class":"chosen","force-fallback":"true",animation:"300"},{item:Vue.withCtx(({element:m,index:_})=>[Vue.createElementVNode("div",eo,Vue.toDisplayString(m.name)+" "+Vue.toDisplayString(_),1)]),_:1},8,["modelValue"])]),_:1})]),_:1}),Vue.createVNode(d,{xs:25,sm:8,md:8,lg:8},{default:Vue.withCtx(()=>[Vue.createVNode(u,{shadow:"never"},{header:Vue.withCtx(()=>[to]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",no,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(r.value,(m,_)=>(Vue.openBlock(),Vue.createElementBlock("div",{class:"item-cut",key:_},[Vue.createElementVNode("p",null,Vue.toDisplayString(m.name),1)]))),128))])]),_:1})]),_:1})]),_:1})])]),_:1})}}});const uo=Kt(oo,[["__scopeId","data-v-3f26dabd"]]);export{uo as default}; diff --git a/dist/static/js/index-0bcb1434.js b/dist/static/js/index-0bcb1434.js new file mode 100644 index 000000000..983828693 --- /dev/null +++ b/dist/static/js/index-0bcb1434.js @@ -0,0 +1 @@ +import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-c6a3d999.js";import"./columns-7628a2c7.js";import"./data-4845d266.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/index-0dd8d5e4.js b/dist/static/js/index-0dd8d5e4.js new file mode 100644 index 000000000..86c28b618 --- /dev/null +++ b/dist/static/js/index-0dd8d5e4.js @@ -0,0 +1,158 @@ +var zi=Object.defineProperty;var Hi=($,oe,ae)=>oe in $?zi($,oe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):$[oe]=ae;var ao=($,oe,ae)=>(Hi($,typeof oe!="symbol"?oe+"":oe,ae),ae);(function(){const oe=document.createElement("link").relList;if(oe&&oe.supports&&oe.supports("modulepreload"))return;for(const le of document.querySelectorAll('link[rel="modulepreload"]'))ie(le);new MutationObserver(le=>{for(const pe of le)if(pe.type==="childList")for(const _e of pe.addedNodes)_e.tagName==="LINK"&&_e.rel==="modulepreload"&&ie(_e)}).observe(document,{childList:!0,subtree:!0});function ae(le){const pe={};return le.integrity&&(pe.integrity=le.integrity),le.referrerPolicy&&(pe.referrerPolicy=le.referrerPolicy),le.crossOrigin==="use-credentials"?pe.credentials="include":le.crossOrigin==="anonymous"?pe.credentials="omit":pe.credentials="same-origin",pe}function ie(le){if(le.ep)return;le.ep=!0;const pe=ae(le);fetch(le.href,pe)}})();function makeMap($,oe){const ae=Object.create(null),ie=$.split(",");for(let le=0;le!!ae[le.toLowerCase()]:le=>!!ae[le]}const EMPTY_OBJ$1={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=$=>onRE.test($),isModelListener=$=>$.startsWith("onUpdate:"),extend$2=Object.assign,remove=($,oe)=>{const ae=$.indexOf(oe);ae>-1&&$.splice(ae,1)},hasOwnProperty$g=Object.prototype.hasOwnProperty,hasOwn$4=($,oe)=>hasOwnProperty$g.call($,oe),isArray$c=Array.isArray,isMap$3=$=>toTypeString$1($)==="[object Map]",isSet$3=$=>toTypeString$1($)==="[object Set]",isDate$3=$=>toTypeString$1($)==="[object Date]",isRegExp$5=$=>toTypeString$1($)==="[object RegExp]",isFunction$5=$=>typeof $=="function",isString$7=$=>typeof $=="string",isSymbol$2=$=>typeof $=="symbol",isObject$8=$=>$!==null&&typeof $=="object",isPromise=$=>isObject$8($)&&isFunction$5($.then)&&isFunction$5($.catch),objectToString$3=Object.prototype.toString,toTypeString$1=$=>objectToString$3.call($),toRawType=$=>toTypeString$1($).slice(8,-1),isPlainObject$4=$=>toTypeString$1($)==="[object Object]",isIntegerKey=$=>isString$7($)&&$!=="NaN"&&$[0]!=="-"&&""+parseInt($,10)===$,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=$=>{const oe=Object.create(null);return ae=>oe[ae]||(oe[ae]=$(ae))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction($=>$.replace(camelizeRE,(oe,ae)=>ae?ae.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction($=>$.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$2=cacheStringFunction($=>$.charAt(0).toUpperCase()+$.slice(1)),toHandlerKey=cacheStringFunction($=>$?`on${capitalize$2($)}`:""),hasChanged=($,oe)=>!Object.is($,oe),invokeArrayFns=($,oe)=>{for(let ae=0;ae<$.length;ae++)$[ae](oe)},def=($,oe,ae)=>{Object.defineProperty($,oe,{configurable:!0,enumerable:!1,value:ae})},looseToNumber=$=>{const oe=parseFloat($);return isNaN(oe)?$:oe},toNumber$1=$=>{const oe=isString$7($)?Number($):NaN;return isNaN(oe)?$:oe};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),GLOBALS_WHITE_LISTED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",isGloballyWhitelisted=makeMap(GLOBALS_WHITE_LISTED);function normalizeStyle$1($){if(isArray$c($)){const oe={};for(let ae=0;ae<$.length;ae++){const ie=$[ae],le=isString$7(ie)?parseStringStyle(ie):normalizeStyle$1(ie);if(le)for(const pe in le)oe[pe]=le[pe]}return oe}else{if(isString$7($))return $;if(isObject$8($))return $}}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=new RegExp("\\/\\*.*?\\*\\/","gs");function parseStringStyle($){const oe={};return $.replace(styleCommentRE,"").split(listDelimiterRE).forEach(ae=>{if(ae){const ie=ae.split(propertyDelimiterRE);ie.length>1&&(oe[ie[0].trim()]=ie[1].trim())}}),oe}function normalizeClass($){let oe="";if(isString$7($))oe=$;else if(isArray$c($))for(let ae=0;ae<$.length;ae++){const ie=normalizeClass($[ae]);ie&&(oe+=ie+" ")}else if(isObject$8($))for(const ae in $)$[ae]&&(oe+=ae+" ");return oe.trim()}function normalizeProps($){if(!$)return null;let{class:oe,style:ae}=$;return oe&&!isString$7(oe)&&($.class=normalizeClass(oe)),ae&&($.style=normalizeStyle$1(ae)),$}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr($){return!!$||$===""}function looseCompareArrays($,oe){if($.length!==oe.length)return!1;let ae=!0;for(let ie=0;ae&&ie<$.length;ie++)ae=looseEqual($[ie],oe[ie]);return ae}function looseEqual($,oe){if($===oe)return!0;let ae=isDate$3($),ie=isDate$3(oe);if(ae||ie)return ae&&ie?$.getTime()===oe.getTime():!1;if(ae=isSymbol$2($),ie=isSymbol$2(oe),ae||ie)return $===oe;if(ae=isArray$c($),ie=isArray$c(oe),ae||ie)return ae&&ie?looseCompareArrays($,oe):!1;if(ae=isObject$8($),ie=isObject$8(oe),ae||ie){if(!ae||!ie)return!1;const le=Object.keys($).length,pe=Object.keys(oe).length;if(le!==pe)return!1;for(const _e in $){const Ce=$.hasOwnProperty(_e),$e=oe.hasOwnProperty(_e);if(Ce&&!$e||!Ce&&$e||!looseEqual($[_e],oe[_e]))return!1}}return String($)===String(oe)}function looseIndexOf($,oe){return $.findIndex(ae=>looseEqual(ae,oe))}const toDisplayString$1=$=>isString$7($)?$:$==null?"":isArray$c($)||isObject$8($)&&($.toString===objectToString$3||!isFunction$5($.toString))?JSON.stringify($,replacer,2):String($),replacer=($,oe)=>oe&&oe.__v_isRef?replacer($,oe.value):isMap$3(oe)?{[`Map(${oe.size})`]:[...oe.entries()].reduce((ae,[ie,le])=>(ae[`${ie} =>`]=le,ae),{})}:isSet$3(oe)?{[`Set(${oe.size})`]:[...oe.values()]}:isObject$8(oe)&&!isArray$c(oe)&&!isPlainObject$4(oe)?String(oe):oe;let activeEffectScope;class EffectScope{constructor(oe=!1){this.detached=oe,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!oe&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(oe){if(this._active){const ae=activeEffectScope;try{return activeEffectScope=this,oe()}finally{activeEffectScope=ae}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(oe){if(this._active){let ae,ie;for(ae=0,ie=this.effects.length;ae{const oe=new Set($);return oe.w=0,oe.n=0,oe},wasTracked=$=>($.w&trackOpBit)>0,newTracked=$=>($.n&trackOpBit)>0,initDepMarkers=({deps:$})=>{if($.length)for(let oe=0;oe<$.length;oe++)$[oe].w|=trackOpBit},finalizeDepMarkers=$=>{const{deps:oe}=$;if(oe.length){let ae=0;for(let ie=0;ie{(Ie==="length"||Ie>=$e)&&Ce.push(xe)})}else switch(ae!==void 0&&Ce.push(_e.get(ae)),oe){case"add":isArray$c($)?isIntegerKey(ae)&&Ce.push(_e.get("length")):(Ce.push(_e.get(ITERATE_KEY)),isMap$3($)&&Ce.push(_e.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$c($)||(Ce.push(_e.get(ITERATE_KEY)),isMap$3($)&&Ce.push(_e.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$3($)&&Ce.push(_e.get(ITERATE_KEY));break}if(Ce.length===1)Ce[0]&&triggerEffects(Ce[0]);else{const $e=[];for(const xe of Ce)xe&&$e.push(...xe);triggerEffects(createDep($e))}}function triggerEffects($,oe){const ae=isArray$c($)?$:[...$];for(const ie of ae)ie.computed&&triggerEffect(ie);for(const ie of ae)ie.computed||triggerEffect(ie)}function triggerEffect($,oe){($!==activeEffect||$.allowRecurse)&&($.scheduler?$.scheduler():$.run())}function getDepFromReactive($,oe){var ae;return(ae=targetMap.get($))==null?void 0:ae.get(oe)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter($=>$!=="arguments"&&$!=="caller").map($=>Symbol[$]).filter(isSymbol$2)),get$1$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const $={};return["includes","indexOf","lastIndexOf"].forEach(oe=>{$[oe]=function(...ae){const ie=toRaw(this);for(let pe=0,_e=this.length;pe<_e;pe++)track(ie,"get",pe+"");const le=ie[oe](...ae);return le===-1||le===!1?ie[oe](...ae.map(toRaw)):le}}),["push","pop","shift","unshift","splice"].forEach(oe=>{$[oe]=function(...ae){pauseTracking();const ie=toRaw(this)[oe].apply(this,ae);return resetTracking(),ie}}),$}function hasOwnProperty$f($){const oe=toRaw(this);return track(oe,"has",$),oe.hasOwnProperty($)}function createGetter($=!1,oe=!1){return function(ie,le,pe){if(le==="__v_isReactive")return!$;if(le==="__v_isReadonly")return $;if(le==="__v_isShallow")return oe;if(le==="__v_raw"&&pe===($?oe?shallowReadonlyMap:readonlyMap:oe?shallowReactiveMap:reactiveMap).get(ie))return ie;const _e=isArray$c(ie);if(!$){if(_e&&hasOwn$4(arrayInstrumentations,le))return Reflect.get(arrayInstrumentations,le,pe);if(le==="hasOwnProperty")return hasOwnProperty$f}const Ce=Reflect.get(ie,le,pe);return(isSymbol$2(le)?builtInSymbols.has(le):isNonTrackableKeys(le))||($||track(ie,"get",le),oe)?Ce:isRef(Ce)?_e&&isIntegerKey(le)?Ce:Ce.value:isObject$8(Ce)?$?readonly(Ce):reactive(Ce):Ce}}const set$1$1=createSetter(),shallowSet=createSetter(!0);function createSetter($=!1){return function(ae,ie,le,pe){let _e=ae[ie];if(isReadonly(_e)&&isRef(_e)&&!isRef(le))return!1;if(!$&&(!isShallow(le)&&!isReadonly(le)&&(_e=toRaw(_e),le=toRaw(le)),!isArray$c(ae)&&isRef(_e)&&!isRef(le)))return _e.value=le,!0;const Ce=isArray$c(ae)&&isIntegerKey(ie)?Number(ie)$,getProto$1=$=>Reflect.getPrototypeOf($);function get$2($,oe,ae=!1,ie=!1){$=$.__v_raw;const le=toRaw($),pe=toRaw(oe);ae||(oe!==pe&&track(le,"get",oe),track(le,"get",pe));const{has:_e}=getProto$1(le),Ce=ie?toShallow:ae?toReadonly:toReactive;if(_e.call(le,oe))return Ce($.get(oe));if(_e.call(le,pe))return Ce($.get(pe));$!==le&&$.get(oe)}function has$5($,oe=!1){const ae=this.__v_raw,ie=toRaw(ae),le=toRaw($);return oe||($!==le&&track(ie,"has",$),track(ie,"has",le)),$===le?ae.has($):ae.has($)||ae.has(le)}function size($,oe=!1){return $=$.__v_raw,!oe&&track(toRaw($),"iterate",ITERATE_KEY),Reflect.get($,"size",$)}function add$1($){$=toRaw($);const oe=toRaw(this);return getProto$1(oe).has.call(oe,$)||(oe.add($),trigger$2(oe,"add",$,$)),this}function set$4($,oe){oe=toRaw(oe);const ae=toRaw(this),{has:ie,get:le}=getProto$1(ae);let pe=ie.call(ae,$);pe||($=toRaw($),pe=ie.call(ae,$));const _e=le.call(ae,$);return ae.set($,oe),pe?hasChanged(oe,_e)&&trigger$2(ae,"set",$,oe):trigger$2(ae,"add",$,oe),this}function deleteEntry($){const oe=toRaw(this),{has:ae,get:ie}=getProto$1(oe);let le=ae.call(oe,$);le||($=toRaw($),le=ae.call(oe,$)),ie&&ie.call(oe,$);const pe=oe.delete($);return le&&trigger$2(oe,"delete",$,void 0),pe}function clear$2(){const $=toRaw(this),oe=$.size!==0,ae=$.clear();return oe&&trigger$2($,"clear",void 0,void 0),ae}function createForEach($,oe){return function(ie,le){const pe=this,_e=pe.__v_raw,Ce=toRaw(_e),$e=oe?toShallow:$?toReadonly:toReactive;return!$&&track(Ce,"iterate",ITERATE_KEY),_e.forEach((xe,Ie)=>ie.call(le,$e(xe),$e(Ie),pe))}}function createIterableMethod($,oe,ae){return function(...ie){const le=this.__v_raw,pe=toRaw(le),_e=isMap$3(pe),Ce=$==="entries"||$===Symbol.iterator&&_e,$e=$==="keys"&&_e,xe=le[$](...ie),Ie=ae?toShallow:oe?toReadonly:toReactive;return!oe&&track(pe,"iterate",$e?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:Ne,done:Fe}=xe.next();return Fe?{value:Ne,done:Fe}:{value:Ce?[Ie(Ne[0]),Ie(Ne[1])]:Ie(Ne),done:Fe}},[Symbol.iterator](){return this}}}}function createReadonlyMethod($){return function(...oe){return $==="delete"?!1:this}}function createInstrumentations(){const $={get(pe){return get$2(this,pe)},get size(){return size(this)},has:has$5,add:add$1,set:set$4,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!1)},oe={get(pe){return get$2(this,pe,!1,!0)},get size(){return size(this)},has:has$5,add:add$1,set:set$4,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!0)},ae={get(pe){return get$2(this,pe,!0)},get size(){return size(this,!0)},has(pe){return has$5.call(this,pe,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},ie={get(pe){return get$2(this,pe,!0,!0)},get size(){return size(this,!0)},has(pe){return has$5.call(this,pe,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(pe=>{$[pe]=createIterableMethod(pe,!1,!1),ae[pe]=createIterableMethod(pe,!0,!1),oe[pe]=createIterableMethod(pe,!1,!0),ie[pe]=createIterableMethod(pe,!0,!0)}),[$,ae,oe,ie]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter($,oe){const ae=oe?$?shallowReadonlyInstrumentations:shallowInstrumentations:$?readonlyInstrumentations:mutableInstrumentations;return(ie,le,pe)=>le==="__v_isReactive"?!$:le==="__v_isReadonly"?$:le==="__v_raw"?ie:Reflect.get(hasOwn$4(ae,le)&&le in ie?ae:ie,le,pe)}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($){switch($){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType($){return $.__v_skip||!Object.isExtensible($)?0:targetTypeMap(toRawType($))}function reactive($){return isReadonly($)?$:createReactiveObject($,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive($){return createReactiveObject($,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly($){return createReactiveObject($,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly($){return createReactiveObject($,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject($,oe,ae,ie,le){if(!isObject$8($)||$.__v_raw&&!(oe&&$.__v_isReactive))return $;const pe=le.get($);if(pe)return pe;const _e=getTargetType($);if(_e===0)return $;const Ce=new Proxy($,_e===2?ie:ae);return le.set($,Ce),Ce}function isReactive($){return isReadonly($)?isReactive($.__v_raw):!!($&&$.__v_isReactive)}function isReadonly($){return!!($&&$.__v_isReadonly)}function isShallow($){return!!($&&$.__v_isShallow)}function isProxy($){return isReactive($)||isReadonly($)}function toRaw($){const oe=$&&$.__v_raw;return oe?toRaw(oe):$}function markRaw($){return def($,"__v_skip",!0),$}const toReactive=$=>isObject$8($)?reactive($):$,toReadonly=$=>isObject$8($)?readonly($):$;function trackRefValue($){shouldTrack&&activeEffect&&($=toRaw($),trackEffects($.dep||($.dep=createDep())))}function triggerRefValue($,oe){$=toRaw($);const ae=$.dep;ae&&triggerEffects(ae)}function isRef($){return!!($&&$.__v_isRef===!0)}function ref($){return createRef($,!1)}function shallowRef($){return createRef($,!0)}function createRef($,oe){return isRef($)?$:new RefImpl($,oe)}class RefImpl{constructor(oe,ae){this.__v_isShallow=ae,this.dep=void 0,this.__v_isRef=!0,this._rawValue=ae?oe:toRaw(oe),this._value=ae?oe:toReactive(oe)}get value(){return trackRefValue(this),this._value}set value(oe){const ae=this.__v_isShallow||isShallow(oe)||isReadonly(oe);oe=ae?oe:toRaw(oe),hasChanged(oe,this._rawValue)&&(this._rawValue=oe,this._value=ae?oe:toReactive(oe),triggerRefValue(this))}}function triggerRef($){triggerRefValue($)}function unref($){return isRef($)?$.value:$}function toValue$1($){return isFunction$5($)?$():unref($)}const shallowUnwrapHandlers={get:($,oe,ae)=>unref(Reflect.get($,oe,ae)),set:($,oe,ae,ie)=>{const le=$[oe];return isRef(le)&&!isRef(ae)?(le.value=ae,!0):Reflect.set($,oe,ae,ie)}};function proxyRefs($){return isReactive($)?$:new Proxy($,shallowUnwrapHandlers)}class CustomRefImpl{constructor(oe){this.dep=void 0,this.__v_isRef=!0;const{get:ae,set:ie}=oe(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=ae,this._set=ie}get value(){return this._get()}set value(oe){this._set(oe)}}function customRef($){return new CustomRefImpl($)}function toRefs($){const oe=isArray$c($)?new Array($.length):{};for(const ae in $)oe[ae]=propertyToRef($,ae);return oe}class ObjectRefImpl{constructor(oe,ae,ie){this._object=oe,this._key=ae,this._defaultValue=ie,this.__v_isRef=!0}get value(){const oe=this._object[this._key];return oe===void 0?this._defaultValue:oe}set value(oe){this._object[this._key]=oe}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(oe){this._getter=oe,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef$1($,oe,ae){return isRef($)?$:isFunction$5($)?new GetterRefImpl($):isObject$8($)&&arguments.length>1?propertyToRef($,oe,ae):ref($)}function propertyToRef($,oe,ae){const ie=$[oe];return isRef(ie)?ie:new ObjectRefImpl($,oe,ae)}class ComputedRefImpl{constructor(oe,ae,ie,le){this._setter=ae,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(oe,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!le,this.__v_isReadonly=ie}get value(){const oe=toRaw(this);return trackRefValue(oe),(oe._dirty||!oe._cacheable)&&(oe._dirty=!1,oe._value=oe.effect.run()),oe._value}set value(oe){this._setter(oe)}}function computed$1($,oe,ae=!1){let ie,le;const pe=isFunction$5($);return pe?(ie=$,le=NOOP):(ie=$.get,le=$.set),new ComputedRefImpl(ie,le,pe||!le,ae)}function warn$2($,...oe){}function assertNumber($,oe){}function callWithErrorHandling($,oe,ae,ie){let le;try{le=ie?$(...ie):$()}catch(pe){handleError(pe,oe,ae)}return le}function callWithAsyncErrorHandling($,oe,ae,ie){if(isFunction$5($)){const pe=callWithErrorHandling($,oe,ae,ie);return pe&&isPromise(pe)&&pe.catch(_e=>{handleError(_e,oe,ae)}),pe}const le=[];for(let pe=0;pe<$.length;pe++)le.push(callWithAsyncErrorHandling($[pe],oe,ae,ie));return le}function handleError($,oe,ae,ie=!0){const le=oe?oe.vnode:null;if(oe){let pe=oe.parent;const _e=oe.proxy,Ce=ae;for(;pe;){const xe=pe.ec;if(xe){for(let Ie=0;Ie>>1;getId$1(queue[ie])<$?oe=ie+1:ae=ie}return oe}function queueJob($){(!queue.length||!queue.includes($,isFlushing&&$.allowRecurse?flushIndex+1:flushIndex))&&($.id==null?queue.push($):queue.splice(findInsertionIndex($.id),0,$),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob($){const oe=queue.indexOf($);oe>flushIndex&&queue.splice(oe,1)}function queuePostFlushCb($){isArray$c($)?pendingPostFlushCbs.push(...$):(!activePostFlushCbs||!activePostFlushCbs.includes($,$.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push($),queueFlush()}function flushPreFlushCbs($,oe=isFlushing?flushIndex+1:0){for(;oegetId$1(ae)-getId$1(ie)),postFlushIndex=0;postFlushIndex$.id==null?1/0:$.id,comparator=($,oe)=>{const ae=getId$1($)-getId$1(oe);if(ae===0){if($.pre&&!oe.pre)return-1;if(oe.pre&&!$.pre)return 1}return ae};function flushJobs($){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const oe=NOOP;try{for(flushIndex=0;flushIndexdevtools.emit(le,...pe)),buffer=[]):typeof window<"u"&&window.HTMLElement&&!((ie=(ae=window.navigator)==null?void 0:ae.userAgent)!=null&&ie.includes("jsdom"))?((oe.__VUE_DEVTOOLS_HOOK_REPLAY__=oe.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(pe=>{setDevtoolsHook(pe,oe)}),setTimeout(()=>{devtools||(oe.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}function emit($,oe,...ae){if($.isUnmounted)return;const ie=$.vnode.props||EMPTY_OBJ$1;let le=ae;const pe=oe.startsWith("update:"),_e=pe&&oe.slice(7);if(_e&&_e in ie){const Ie=`${_e==="modelValue"?"model":_e}Modifiers`,{number:Ne,trim:Fe}=ie[Ie]||EMPTY_OBJ$1;Fe&&(le=ae.map(ze=>isString$7(ze)?ze.trim():ze)),Ne&&(le=ae.map(looseToNumber))}let Ce,$e=ie[Ce=toHandlerKey(oe)]||ie[Ce=toHandlerKey(camelize(oe))];!$e&&pe&&($e=ie[Ce=toHandlerKey(hyphenate(oe))]),$e&&callWithAsyncErrorHandling($e,$,6,le);const xe=ie[Ce+"Once"];if(xe){if(!$.emitted)$.emitted={};else if($.emitted[Ce])return;$.emitted[Ce]=!0,callWithAsyncErrorHandling(xe,$,6,le)}}function normalizeEmitsOptions($,oe,ae=!1){const ie=oe.emitsCache,le=ie.get($);if(le!==void 0)return le;const pe=$.emits;let _e={},Ce=!1;if(!isFunction$5($)){const $e=xe=>{const Ie=normalizeEmitsOptions(xe,oe,!0);Ie&&(Ce=!0,extend$2(_e,Ie))};!ae&&oe.mixins.length&&oe.mixins.forEach($e),$.extends&&$e($.extends),$.mixins&&$.mixins.forEach($e)}return!pe&&!Ce?(isObject$8($)&&ie.set($,null),null):(isArray$c(pe)?pe.forEach($e=>_e[$e]=null):extend$2(_e,pe),isObject$8($)&&ie.set($,_e),_e)}function isEmitListener($,oe){return!$||!isOn(oe)?!1:(oe=oe.slice(2).replace(/Once$/,""),hasOwn$4($,oe[0].toLowerCase()+oe.slice(1))||hasOwn$4($,hyphenate(oe))||hasOwn$4($,oe))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance($){const oe=currentRenderingInstance;return currentRenderingInstance=$,currentScopeId=$&&$.type.__scopeId||null,oe}function pushScopeId($){currentScopeId=$}function popScopeId(){currentScopeId=null}const withScopeId=$=>withCtx;function withCtx($,oe=currentRenderingInstance,ae){if(!oe||$._n)return $;const ie=(...le)=>{ie._d&&setBlockTracking(-1);const pe=setCurrentRenderingInstance(oe);let _e;try{_e=$(...le)}finally{setCurrentRenderingInstance(pe),ie._d&&setBlockTracking(1)}return _e};return ie._n=!0,ie._c=!0,ie._d=!0,ie}function markAttrsAccessed(){}function renderComponentRoot($){const{type:oe,vnode:ae,proxy:ie,withProxy:le,props:pe,propsOptions:[_e],slots:Ce,attrs:$e,emit:xe,render:Ie,renderCache:Ne,data:Fe,setupState:ze,ctx:At,inheritAttrs:Lt}=$;let hn,vn;const _n=setCurrentRenderingInstance($);try{if(ae.shapeFlag&4){const Cn=le||ie;hn=normalizeVNode(Ie.call(Cn,Cn,Ne,pe,ze,Fe,At)),vn=$e}else{const Cn=oe;hn=normalizeVNode(Cn.length>1?Cn(pe,{attrs:$e,slots:Ce,emit:xe}):Cn(pe,null)),vn=oe.props?$e:getFunctionalFallthrough($e)}}catch(Cn){blockStack.length=0,handleError(Cn,$,1),hn=createVNode(Comment)}let bn=hn;if(vn&&Lt!==!1){const Cn=Object.keys(vn),{shapeFlag:En}=bn;Cn.length&&En&7&&(_e&&Cn.some(isModelListener)&&(vn=filterModelListeners(vn,_e)),bn=cloneVNode(bn,vn))}return ae.dirs&&(bn=cloneVNode(bn),bn.dirs=bn.dirs?bn.dirs.concat(ae.dirs):ae.dirs),ae.transition&&(bn.transition=ae.transition),hn=bn,setCurrentRenderingInstance(_n),hn}function filterSingleRoot($){let oe;for(let ae=0;ae<$.length;ae++){const ie=$[ae];if(isVNode$1(ie)){if(ie.type!==Comment||ie.children==="v-if"){if(oe)return;oe=ie}}else return}return oe}const getFunctionalFallthrough=$=>{let oe;for(const ae in $)(ae==="class"||ae==="style"||isOn(ae))&&((oe||(oe={}))[ae]=$[ae]);return oe},filterModelListeners=($,oe)=>{const ae={};for(const ie in $)(!isModelListener(ie)||!(ie.slice(9)in oe))&&(ae[ie]=$[ie]);return ae};function shouldUpdateComponent($,oe,ae){const{props:ie,children:le,component:pe}=$,{props:_e,children:Ce,patchFlag:$e}=oe,xe=pe.emitsOptions;if(oe.dirs||oe.transition)return!0;if(ae&&$e>=0){if($e&1024)return!0;if($e&16)return ie?hasPropsChanged(ie,_e,xe):!!_e;if($e&8){const Ie=oe.dynamicProps;for(let Ne=0;Ne$.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process($,oe,ae,ie,le,pe,_e,Ce,$e,xe){$==null?mountSuspense(oe,ae,ie,le,pe,_e,Ce,$e,xe):patchSuspense($,oe,ae,ie,le,_e,Ce,$e,xe)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent$1($,oe){const ae=$.props&&$.props[oe];isFunction$5(ae)&&ae()}function mountSuspense($,oe,ae,ie,le,pe,_e,Ce,$e){const{p:xe,o:{createElement:Ie}}=$e,Ne=Ie("div"),Fe=$.suspense=createSuspenseBoundary($,le,ie,oe,Ne,ae,pe,_e,Ce,$e);xe(null,Fe.pendingBranch=$.ssContent,Ne,null,ie,Fe,pe,_e),Fe.deps>0?(triggerEvent$1($,"onPending"),triggerEvent$1($,"onFallback"),xe(null,$.ssFallback,oe,ae,ie,null,pe,_e),setActiveBranch(Fe,$.ssFallback)):Fe.resolve(!1,!0)}function patchSuspense($,oe,ae,ie,le,pe,_e,Ce,{p:$e,um:xe,o:{createElement:Ie}}){const Ne=oe.suspense=$.suspense;Ne.vnode=oe,oe.el=$.el;const Fe=oe.ssContent,ze=oe.ssFallback,{activeBranch:At,pendingBranch:Lt,isInFallback:hn,isHydrating:vn}=Ne;if(Lt)Ne.pendingBranch=Fe,isSameVNodeType(Fe,Lt)?($e(Lt,Fe,Ne.hiddenContainer,null,le,Ne,pe,_e,Ce),Ne.deps<=0?Ne.resolve():hn&&($e(At,ze,ae,ie,le,null,pe,_e,Ce),setActiveBranch(Ne,ze))):(Ne.pendingId++,vn?(Ne.isHydrating=!1,Ne.activeBranch=Lt):xe(Lt,le,Ne),Ne.deps=0,Ne.effects.length=0,Ne.hiddenContainer=Ie("div"),hn?($e(null,Fe,Ne.hiddenContainer,null,le,Ne,pe,_e,Ce),Ne.deps<=0?Ne.resolve():($e(At,ze,ae,ie,le,null,pe,_e,Ce),setActiveBranch(Ne,ze))):At&&isSameVNodeType(Fe,At)?($e(At,Fe,ae,ie,le,Ne,pe,_e,Ce),Ne.resolve(!0)):($e(null,Fe,Ne.hiddenContainer,null,le,Ne,pe,_e,Ce),Ne.deps<=0&&Ne.resolve()));else if(At&&isSameVNodeType(Fe,At))$e(At,Fe,ae,ie,le,Ne,pe,_e,Ce),setActiveBranch(Ne,Fe);else if(triggerEvent$1(oe,"onPending"),Ne.pendingBranch=Fe,Ne.pendingId++,$e(null,Fe,Ne.hiddenContainer,null,le,Ne,pe,_e,Ce),Ne.deps<=0)Ne.resolve();else{const{timeout:_n,pendingId:bn}=Ne;_n>0?setTimeout(()=>{Ne.pendingId===bn&&Ne.fallback(ze)},_n):_n===0&&Ne.fallback(ze)}}function createSuspenseBoundary($,oe,ae,ie,le,pe,_e,Ce,$e,xe,Ie=!1){const{p:Ne,m:Fe,um:ze,n:At,o:{parentNode:Lt,remove:hn}}=xe;let vn;const _n=isVNodeSuspensible($);_n&&oe!=null&&oe.pendingBranch&&(vn=oe.pendingId,oe.deps++);const bn=$.props?toNumber$1($.props.timeout):void 0,Cn={vnode:$,parent:oe,parentComponent:ae,isSVG:_e,container:ie,hiddenContainer:le,anchor:pe,deps:0,pendingId:0,timeout:typeof bn=="number"?bn:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:Ie,isUnmounted:!1,effects:[],resolve(En=!1,$n=!1){const{vnode:wn,activeBranch:Tn,pendingBranch:xn,pendingId:kn,effects:An,parentComponent:On,container:Nn}=Cn;if(Cn.isHydrating)Cn.isHydrating=!1;else if(!En){const Bn=Tn&&xn.transition&&xn.transition.mode==="out-in";Bn&&(Tn.transition.afterLeave=()=>{kn===Cn.pendingId&&Fe(xn,Nn,Mn,0)});let{anchor:Mn}=Cn;Tn&&(Mn=At(Tn),ze(Tn,On,Cn,!0)),Bn||Fe(xn,Nn,Mn,0)}setActiveBranch(Cn,xn),Cn.pendingBranch=null,Cn.isInFallback=!1;let Rn=Cn.parent,zn=!1;for(;Rn;){if(Rn.pendingBranch){Rn.effects.push(...An),zn=!0;break}Rn=Rn.parent}zn||queuePostFlushCb(An),Cn.effects=[],_n&&oe&&oe.pendingBranch&&vn===oe.pendingId&&(oe.deps--,oe.deps===0&&!$n&&oe.resolve()),triggerEvent$1(wn,"onResolve")},fallback(En){if(!Cn.pendingBranch)return;const{vnode:$n,activeBranch:wn,parentComponent:Tn,container:xn,isSVG:kn}=Cn;triggerEvent$1($n,"onFallback");const An=At(wn),On=()=>{Cn.isInFallback&&(Ne(null,En,xn,An,Tn,null,kn,Ce,$e),setActiveBranch(Cn,En))},Nn=En.transition&&En.transition.mode==="out-in";Nn&&(wn.transition.afterLeave=On),Cn.isInFallback=!0,ze(wn,Tn,null,!0),Nn||On()},move(En,$n,wn){Cn.activeBranch&&Fe(Cn.activeBranch,En,$n,wn),Cn.container=En},next(){return Cn.activeBranch&&At(Cn.activeBranch)},registerDep(En,$n){const wn=!!Cn.pendingBranch;wn&&Cn.deps++;const Tn=En.vnode.el;En.asyncDep.catch(xn=>{handleError(xn,En,0)}).then(xn=>{if(En.isUnmounted||Cn.isUnmounted||Cn.pendingId!==En.suspenseId)return;En.asyncResolved=!0;const{vnode:kn}=En;handleSetupResult(En,xn,!1),Tn&&(kn.el=Tn);const An=!Tn&&En.subTree.el;$n(En,kn,Lt(Tn||En.subTree.el),Tn?null:At(En.subTree),Cn,_e,$e),An&&hn(An),updateHOCHostEl(En,kn.el),wn&&--Cn.deps===0&&Cn.resolve()})},unmount(En,$n){Cn.isUnmounted=!0,Cn.activeBranch&&ze(Cn.activeBranch,ae,En,$n),Cn.pendingBranch&&ze(Cn.pendingBranch,ae,En,$n)}};return Cn}function hydrateSuspense($,oe,ae,ie,le,pe,_e,Ce,$e){const xe=oe.suspense=createSuspenseBoundary(oe,ie,ae,$.parentNode,document.createElement("div"),null,le,pe,_e,Ce,!0),Ie=$e($,xe.pendingBranch=oe.ssContent,ae,xe,pe,_e);return xe.deps===0&&xe.resolve(!1,!0),Ie}function normalizeSuspenseChildren($){const{shapeFlag:oe,children:ae}=$,ie=oe&32;$.ssContent=normalizeSuspenseSlot(ie?ae.default:ae),$.ssFallback=ie?normalizeSuspenseSlot(ae.fallback):createVNode(Comment)}function normalizeSuspenseSlot($){let oe;if(isFunction$5($)){const ae=isBlockTreeEnabled&&$._c;ae&&($._d=!1,openBlock()),$=$(),ae&&($._d=!0,oe=currentBlock,closeBlock())}return isArray$c($)&&($=filterSingleRoot($)),$=normalizeVNode($),oe&&!$.dynamicChildren&&($.dynamicChildren=oe.filter(ae=>ae!==$)),$}function queueEffectWithSuspense($,oe){oe&&oe.pendingBranch?isArray$c($)?oe.effects.push(...$):oe.effects.push($):queuePostFlushCb($)}function setActiveBranch($,oe){$.activeBranch=oe;const{vnode:ae,parentComponent:ie}=$,le=ae.el=oe.el;ie&&ie.subTree===ae&&(ie.vnode.el=le,updateHOCHostEl(ie,le))}function isVNodeSuspensible($){var oe;return((oe=$.props)==null?void 0:oe.suspensible)!=null&&$.props.suspensible!==!1}function watchEffect($,oe){return doWatch($,null,oe)}function watchPostEffect($,oe){return doWatch($,null,{flush:"post"})}function watchSyncEffect($,oe){return doWatch($,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch($,oe,ae){return doWatch($,oe,ae)}function doWatch($,oe,{immediate:ae,deep:ie,flush:le,onTrack:pe,onTrigger:_e}=EMPTY_OBJ$1){var Ce;const $e=getCurrentScope()===((Ce=currentInstance)==null?void 0:Ce.scope)?currentInstance:null;let xe,Ie=!1,Ne=!1;if(isRef($)?(xe=()=>$.value,Ie=isShallow($)):isReactive($)?(xe=()=>$,ie=!0):isArray$c($)?(Ne=!0,Ie=$.some(Cn=>isReactive(Cn)||isShallow(Cn)),xe=()=>$.map(Cn=>{if(isRef(Cn))return Cn.value;if(isReactive(Cn))return traverse(Cn);if(isFunction$5(Cn))return callWithErrorHandling(Cn,$e,2)})):isFunction$5($)?oe?xe=()=>callWithErrorHandling($,$e,2):xe=()=>{if(!($e&&$e.isUnmounted))return Fe&&Fe(),callWithAsyncErrorHandling($,$e,3,[ze])}:xe=NOOP,oe&&ie){const Cn=xe;xe=()=>traverse(Cn())}let Fe,ze=Cn=>{Fe=_n.onStop=()=>{callWithErrorHandling(Cn,$e,4)}},At;if(isInSSRComponentSetup)if(ze=NOOP,oe?ae&&callWithAsyncErrorHandling(oe,$e,3,[xe(),Ne?[]:void 0,ze]):xe(),le==="sync"){const Cn=useSSRContext();At=Cn.__watcherHandles||(Cn.__watcherHandles=[])}else return NOOP;let Lt=Ne?new Array($.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const hn=()=>{if(_n.active)if(oe){const Cn=_n.run();(ie||Ie||(Ne?Cn.some((En,$n)=>hasChanged(En,Lt[$n])):hasChanged(Cn,Lt)))&&(Fe&&Fe(),callWithAsyncErrorHandling(oe,$e,3,[Cn,Lt===INITIAL_WATCHER_VALUE?void 0:Ne&&Lt[0]===INITIAL_WATCHER_VALUE?[]:Lt,ze]),Lt=Cn)}else _n.run()};hn.allowRecurse=!!oe;let vn;le==="sync"?vn=hn:le==="post"?vn=()=>queuePostRenderEffect(hn,$e&&$e.suspense):(hn.pre=!0,$e&&(hn.id=$e.uid),vn=()=>queueJob(hn));const _n=new ReactiveEffect(xe,vn);oe?ae?hn():Lt=_n.run():le==="post"?queuePostRenderEffect(_n.run.bind(_n),$e&&$e.suspense):_n.run();const bn=()=>{_n.stop(),$e&&$e.scope&&remove($e.scope.effects,_n)};return At&&At.push(bn),bn}function instanceWatch($,oe,ae){const ie=this.proxy,le=isString$7($)?$.includes(".")?createPathGetter(ie,$):()=>ie[$]:$.bind(ie,ie);let pe;isFunction$5(oe)?pe=oe:(pe=oe.handler,ae=oe);const _e=currentInstance;setCurrentInstance(this);const Ce=doWatch(le,pe.bind(ie),ae);return _e?setCurrentInstance(_e):unsetCurrentInstance(),Ce}function createPathGetter($,oe){const ae=oe.split(".");return()=>{let ie=$;for(let le=0;le{traverse(ae,oe)});else if(isPlainObject$4($))for(const ae in $)traverse($[ae],oe);return $}function withDirectives($,oe){const ae=currentRenderingInstance;if(ae===null)return $;const ie=getExposeProxy(ae)||ae.proxy,le=$.dirs||($.dirs=[]);for(let pe=0;pe{$.isMounted=!0}),onBeforeUnmount(()=>{$.isUnmounting=!0}),$}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},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup($,{slots:oe}){const ae=getCurrentInstance(),ie=useTransitionState();let le;return()=>{const pe=oe.default&&getTransitionRawChildren(oe.default(),!0);if(!pe||!pe.length)return;let _e=pe[0];if(pe.length>1){for(const Lt of pe)if(Lt.type!==Comment){_e=Lt;break}}const Ce=toRaw($),{mode:$e}=Ce;if(ie.isLeaving)return emptyPlaceholder(_e);const xe=getKeepAliveChild(_e);if(!xe)return emptyPlaceholder(_e);const Ie=resolveTransitionHooks(xe,Ce,ie,ae);setTransitionHooks(xe,Ie);const Ne=ae.subTree,Fe=Ne&&getKeepAliveChild(Ne);let ze=!1;const{getTransitionKey:At}=xe.type;if(At){const Lt=At();le===void 0?le=Lt:Lt!==le&&(le=Lt,ze=!0)}if(Fe&&Fe.type!==Comment&&(!isSameVNodeType(xe,Fe)||ze)){const Lt=resolveTransitionHooks(Fe,Ce,ie,ae);if(setTransitionHooks(Fe,Lt),$e==="out-in")return ie.isLeaving=!0,Lt.afterLeave=()=>{ie.isLeaving=!1,ae.update.active!==!1&&ae.update()},emptyPlaceholder(_e);$e==="in-out"&&xe.type!==Comment&&(Lt.delayLeave=(hn,vn,_n)=>{const bn=getLeavingNodesForType(ie,Fe);bn[String(Fe.key)]=Fe,hn._leaveCb=()=>{vn(),hn._leaveCb=void 0,delete Ie.delayedLeave},Ie.delayedLeave=_n})}return _e}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType($,oe){const{leavingVNodes:ae}=$;let ie=ae.get(oe.type);return ie||(ie=Object.create(null),ae.set(oe.type,ie)),ie}function resolveTransitionHooks($,oe,ae,ie){const{appear:le,mode:pe,persisted:_e=!1,onBeforeEnter:Ce,onEnter:$e,onAfterEnter:xe,onEnterCancelled:Ie,onBeforeLeave:Ne,onLeave:Fe,onAfterLeave:ze,onLeaveCancelled:At,onBeforeAppear:Lt,onAppear:hn,onAfterAppear:vn,onAppearCancelled:_n}=oe,bn=String($.key),Cn=getLeavingNodesForType(ae,$),En=(Tn,xn)=>{Tn&&callWithAsyncErrorHandling(Tn,ie,9,xn)},$n=(Tn,xn)=>{const kn=xn[1];En(Tn,xn),isArray$c(Tn)?Tn.every(An=>An.length<=1)&&kn():Tn.length<=1&&kn()},wn={mode:pe,persisted:_e,beforeEnter(Tn){let xn=Ce;if(!ae.isMounted)if(le)xn=Lt||Ce;else return;Tn._leaveCb&&Tn._leaveCb(!0);const kn=Cn[bn];kn&&isSameVNodeType($,kn)&&kn.el._leaveCb&&kn.el._leaveCb(),En(xn,[Tn])},enter(Tn){let xn=$e,kn=xe,An=Ie;if(!ae.isMounted)if(le)xn=hn||$e,kn=vn||xe,An=_n||Ie;else return;let On=!1;const Nn=Tn._enterCb=Rn=>{On||(On=!0,Rn?En(An,[Tn]):En(kn,[Tn]),wn.delayedLeave&&wn.delayedLeave(),Tn._enterCb=void 0)};xn?$n(xn,[Tn,Nn]):Nn()},leave(Tn,xn){const kn=String($.key);if(Tn._enterCb&&Tn._enterCb(!0),ae.isUnmounting)return xn();En(Ne,[Tn]);let An=!1;const On=Tn._leaveCb=Nn=>{An||(An=!0,xn(),Nn?En(At,[Tn]):En(ze,[Tn]),Tn._leaveCb=void 0,Cn[kn]===$&&delete Cn[kn])};Cn[kn]=$,Fe?$n(Fe,[Tn,On]):On()},clone(Tn){return resolveTransitionHooks(Tn,oe,ae,ie)}};return wn}function emptyPlaceholder($){if(isKeepAlive($))return $=cloneVNode($),$.children=null,$}function getKeepAliveChild($){return isKeepAlive($)?$.children?$.children[0]:void 0:$}function setTransitionHooks($,oe){$.shapeFlag&6&&$.component?setTransitionHooks($.component.subTree,oe):$.shapeFlag&128?($.ssContent.transition=oe.clone($.ssContent),$.ssFallback.transition=oe.clone($.ssFallback)):$.transition=oe}function getTransitionRawChildren($,oe=!1,ae){let ie=[],le=0;for(let pe=0;pe<$.length;pe++){let _e=$[pe];const Ce=ae==null?_e.key:String(ae)+String(_e.key!=null?_e.key:pe);_e.type===Fragment?(_e.patchFlag&128&&le++,ie=ie.concat(getTransitionRawChildren(_e.children,oe,Ce))):(oe||_e.type!==Comment)&&ie.push(Ce!=null?cloneVNode(_e,{key:Ce}):_e)}if(le>1)for(let pe=0;peextend$2({name:$.name},oe,{setup:$}))():$}const isAsyncWrapper=$=>!!$.type.__asyncLoader;function defineAsyncComponent($){isFunction$5($)&&($={loader:$});const{loader:oe,loadingComponent:ae,errorComponent:ie,delay:le=200,timeout:pe,suspensible:_e=!0,onError:Ce}=$;let $e=null,xe,Ie=0;const Ne=()=>(Ie++,$e=null,Fe()),Fe=()=>{let ze;return $e||(ze=$e=oe().catch(At=>{if(At=At instanceof Error?At:new Error(String(At)),Ce)return new Promise((Lt,hn)=>{Ce(At,()=>Lt(Ne()),()=>hn(At),Ie+1)});throw At}).then(At=>ze!==$e&&$e?$e:(At&&(At.__esModule||At[Symbol.toStringTag]==="Module")&&(At=At.default),xe=At,At)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:Fe,get __asyncResolved(){return xe},setup(){const ze=currentInstance;if(xe)return()=>createInnerComp(xe,ze);const At=_n=>{$e=null,handleError(_n,ze,13,!ie)};if(_e&&ze.suspense||isInSSRComponentSetup)return Fe().then(_n=>()=>createInnerComp(_n,ze)).catch(_n=>(At(_n),()=>ie?createVNode(ie,{error:_n}):null));const Lt=ref(!1),hn=ref(),vn=ref(!!le);return le&&setTimeout(()=>{vn.value=!1},le),pe!=null&&setTimeout(()=>{if(!Lt.value&&!hn.value){const _n=new Error(`Async component timed out after ${pe}ms.`);At(_n),hn.value=_n}},pe),Fe().then(()=>{Lt.value=!0,ze.parent&&isKeepAlive(ze.parent.vnode)&&queueJob(ze.parent.update)}).catch(_n=>{At(_n),hn.value=_n}),()=>{if(Lt.value&&xe)return createInnerComp(xe,ze);if(hn.value&&ie)return createVNode(ie,{error:hn.value});if(ae&&!vn.value)return createVNode(ae)}}})}function createInnerComp($,oe){const{ref:ae,props:ie,children:le,ce:pe}=oe.vnode,_e=createVNode($,ie,le);return _e.ref=ae,_e.ce=pe,delete oe.vnode.ce,_e}const isKeepAlive=$=>$.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup($,{slots:oe}){const ae=getCurrentInstance(),ie=ae.ctx;if(!ie.renderer)return()=>{const _n=oe.default&&oe.default();return _n&&_n.length===1?_n[0]:_n};const le=new Map,pe=new Set;let _e=null;const Ce=ae.suspense,{renderer:{p:$e,m:xe,um:Ie,o:{createElement:Ne}}}=ie,Fe=Ne("div");ie.activate=(_n,bn,Cn,En,$n)=>{const wn=_n.component;xe(_n,bn,Cn,0,Ce),$e(wn.vnode,_n,bn,Cn,wn,Ce,En,_n.slotScopeIds,$n),queuePostRenderEffect(()=>{wn.isDeactivated=!1,wn.a&&invokeArrayFns(wn.a);const Tn=_n.props&&_n.props.onVnodeMounted;Tn&&invokeVNodeHook(Tn,wn.parent,_n)},Ce)},ie.deactivate=_n=>{const bn=_n.component;xe(_n,Fe,null,1,Ce),queuePostRenderEffect(()=>{bn.da&&invokeArrayFns(bn.da);const Cn=_n.props&&_n.props.onVnodeUnmounted;Cn&&invokeVNodeHook(Cn,bn.parent,_n),bn.isDeactivated=!0},Ce)};function ze(_n){resetShapeFlag(_n),Ie(_n,ae,Ce,!0)}function At(_n){le.forEach((bn,Cn)=>{const En=getComponentName(bn.type);En&&(!_n||!_n(En))&&Lt(Cn)})}function Lt(_n){const bn=le.get(_n);!_e||!isSameVNodeType(bn,_e)?ze(bn):_e&&resetShapeFlag(_e),le.delete(_n),pe.delete(_n)}watch(()=>[$.include,$.exclude],([_n,bn])=>{_n&&At(Cn=>matches(_n,Cn)),bn&&At(Cn=>!matches(bn,Cn))},{flush:"post",deep:!0});let hn=null;const vn=()=>{hn!=null&&le.set(hn,getInnerChild(ae.subTree))};return onMounted(vn),onUpdated(vn),onBeforeUnmount(()=>{le.forEach(_n=>{const{subTree:bn,suspense:Cn}=ae,En=getInnerChild(bn);if(_n.type===En.type&&_n.key===En.key){resetShapeFlag(En);const $n=En.component.da;$n&&queuePostRenderEffect($n,Cn);return}ze(_n)})}),()=>{if(hn=null,!oe.default)return null;const _n=oe.default(),bn=_n[0];if(_n.length>1)return _e=null,_n;if(!isVNode$1(bn)||!(bn.shapeFlag&4)&&!(bn.shapeFlag&128))return _e=null,bn;let Cn=getInnerChild(bn);const En=Cn.type,$n=getComponentName(isAsyncWrapper(Cn)?Cn.type.__asyncResolved||{}:En),{include:wn,exclude:Tn,max:xn}=$;if(wn&&(!$n||!matches(wn,$n))||Tn&&$n&&matches(Tn,$n))return _e=Cn,bn;const kn=Cn.key==null?En:Cn.key,An=le.get(kn);return Cn.el&&(Cn=cloneVNode(Cn),bn.shapeFlag&128&&(bn.ssContent=Cn)),hn=kn,An?(Cn.el=An.el,Cn.component=An.component,Cn.transition&&setTransitionHooks(Cn,Cn.transition),Cn.shapeFlag|=512,pe.delete(kn),pe.add(kn)):(pe.add(kn),xn&&pe.size>parseInt(xn,10)&&Lt(pe.values().next().value)),Cn.shapeFlag|=256,_e=Cn,isSuspense(bn.type)?bn:Cn}}},KeepAlive=KeepAliveImpl;function matches($,oe){return isArray$c($)?$.some(ae=>matches(ae,oe)):isString$7($)?$.split(",").includes(oe):isRegExp$5($)?$.test(oe):!1}function onActivated($,oe){registerKeepAliveHook($,"a",oe)}function onDeactivated($,oe){registerKeepAliveHook($,"da",oe)}function registerKeepAliveHook($,oe,ae=currentInstance){const ie=$.__wdc||($.__wdc=()=>{let le=ae;for(;le;){if(le.isDeactivated)return;le=le.parent}return $()});if(injectHook(oe,ie,ae),ae){let le=ae.parent;for(;le&&le.parent;)isKeepAlive(le.parent.vnode)&&injectToKeepAliveRoot(ie,oe,ae,le),le=le.parent}}function injectToKeepAliveRoot($,oe,ae,ie){const le=injectHook(oe,$,ie,!0);onUnmounted(()=>{remove(ie[oe],le)},ae)}function resetShapeFlag($){$.shapeFlag&=-257,$.shapeFlag&=-513}function getInnerChild($){return $.shapeFlag&128?$.ssContent:$}function injectHook($,oe,ae=currentInstance,ie=!1){if(ae){const le=ae[$]||(ae[$]=[]),pe=oe.__weh||(oe.__weh=(..._e)=>{if(ae.isUnmounted)return;pauseTracking(),setCurrentInstance(ae);const Ce=callWithAsyncErrorHandling(oe,ae,$,_e);return unsetCurrentInstance(),resetTracking(),Ce});return ie?le.unshift(pe):le.push(pe),pe}}const createHook=$=>(oe,ae=currentInstance)=>(!isInSSRComponentSetup||$==="sp")&&injectHook($,(...ie)=>oe(...ie),ae),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($,oe=currentInstance){injectHook("ec",$,oe)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent($,oe){return resolveAsset(COMPONENTS,$,!0,oe)||$}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent($){return isString$7($)?resolveAsset(COMPONENTS,$,!1)||$:$||NULL_DYNAMIC_COMPONENT}function resolveDirective($){return resolveAsset(DIRECTIVES,$)}function resolveAsset($,oe,ae=!0,ie=!1){const le=currentRenderingInstance||currentInstance;if(le){const pe=le.type;if($===COMPONENTS){const Ce=getComponentName(pe,!1);if(Ce&&(Ce===oe||Ce===camelize(oe)||Ce===capitalize$2(camelize(oe))))return pe}const _e=resolve(le[$]||pe[$],oe)||resolve(le.appContext[$],oe);return!_e&&ie?pe:_e}}function resolve($,oe){return $&&($[oe]||$[camelize(oe)]||$[capitalize$2(camelize(oe))])}function renderList($,oe,ae,ie){let le;const pe=ae&&ae[ie];if(isArray$c($)||isString$7($)){le=new Array($.length);for(let _e=0,Ce=$.length;_eoe(_e,Ce,void 0,pe&&pe[Ce]));else{const _e=Object.keys($);le=new Array(_e.length);for(let Ce=0,$e=_e.length;Ce<$e;Ce++){const xe=_e[Ce];le[Ce]=oe($[xe],xe,Ce,pe&&pe[Ce])}}else le=[];return ae&&(ae[ie]=le),le}function createSlots($,oe){for(let ae=0;ae{const pe=ie.fn(...le);return pe&&(pe.key=ie.key),pe}:ie.fn)}return $}function renderSlot($,oe,ae={},ie,le){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.isCE)return oe!=="default"&&(ae.name=oe),createVNode("slot",ae,ie&&ie());let pe=$[oe];pe&&pe._c&&(pe._d=!1),openBlock();const _e=pe&&ensureValidVNode(pe(ae)),Ce=createBlock(Fragment,{key:ae.key||_e&&_e.key||`_${oe}`},_e||(ie?ie():[]),_e&&$._===1?64:-2);return!le&&Ce.scopeId&&(Ce.slotScopeIds=[Ce.scopeId+"-s"]),pe&&pe._c&&(pe._d=!0),Ce}function ensureValidVNode($){return $.some(oe=>isVNode$1(oe)?!(oe.type===Comment||oe.type===Fragment&&!ensureValidVNode(oe.children)):!0)?$:null}function toHandlers($,oe){const ae={};for(const ie in $)ae[oe&&/[A-Z]/.test(ie)?`on:${ie}`:toHandlerKey(ie)]=$[ie];return ae}const getPublicInstance=$=>$?isStatefulComponent($)?getExposeProxy($)||$.proxy:getPublicInstance($.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:$=>$,$el:$=>$.vnode.el,$data:$=>$.data,$props:$=>$.props,$attrs:$=>$.attrs,$slots:$=>$.slots,$refs:$=>$.refs,$parent:$=>getPublicInstance($.parent),$root:$=>getPublicInstance($.root),$emit:$=>$.emit,$options:$=>resolveMergedOptions($),$forceUpdate:$=>$.f||($.f=()=>queueJob($.update)),$nextTick:$=>$.n||($.n=nextTick.bind($.proxy)),$watch:$=>instanceWatch.bind($)}),hasSetupBinding=($,oe)=>$!==EMPTY_OBJ$1&&!$.__isScriptSetup&&hasOwn$4($,oe),PublicInstanceProxyHandlers={get({_:$},oe){const{ctx:ae,setupState:ie,data:le,props:pe,accessCache:_e,type:Ce,appContext:$e}=$;let xe;if(oe[0]!=="$"){const ze=_e[oe];if(ze!==void 0)switch(ze){case 1:return ie[oe];case 2:return le[oe];case 4:return ae[oe];case 3:return pe[oe]}else{if(hasSetupBinding(ie,oe))return _e[oe]=1,ie[oe];if(le!==EMPTY_OBJ$1&&hasOwn$4(le,oe))return _e[oe]=2,le[oe];if((xe=$.propsOptions[0])&&hasOwn$4(xe,oe))return _e[oe]=3,pe[oe];if(ae!==EMPTY_OBJ$1&&hasOwn$4(ae,oe))return _e[oe]=4,ae[oe];shouldCacheAccess&&(_e[oe]=0)}}const Ie=publicPropertiesMap[oe];let Ne,Fe;if(Ie)return oe==="$attrs"&&track($,"get",oe),Ie($);if((Ne=Ce.__cssModules)&&(Ne=Ne[oe]))return Ne;if(ae!==EMPTY_OBJ$1&&hasOwn$4(ae,oe))return _e[oe]=4,ae[oe];if(Fe=$e.config.globalProperties,hasOwn$4(Fe,oe))return Fe[oe]},set({_:$},oe,ae){const{data:ie,setupState:le,ctx:pe}=$;return hasSetupBinding(le,oe)?(le[oe]=ae,!0):ie!==EMPTY_OBJ$1&&hasOwn$4(ie,oe)?(ie[oe]=ae,!0):hasOwn$4($.props,oe)||oe[0]==="$"&&oe.slice(1)in $?!1:(pe[oe]=ae,!0)},has({_:{data:$,setupState:oe,accessCache:ae,ctx:ie,appContext:le,propsOptions:pe}},_e){let Ce;return!!ae[_e]||$!==EMPTY_OBJ$1&&hasOwn$4($,_e)||hasSetupBinding(oe,_e)||(Ce=pe[0])&&hasOwn$4(Ce,_e)||hasOwn$4(ie,_e)||hasOwn$4(publicPropertiesMap,_e)||hasOwn$4(le.config.globalProperties,_e)},defineProperty($,oe,ae){return ae.get!=null?$._.accessCache[oe]=0:hasOwn$4(ae,"value")&&this.set($,oe,ae.value,null),Reflect.defineProperty($,oe,ae)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$2({},PublicInstanceProxyHandlers,{get($,oe){if(oe!==Symbol.unscopables)return PublicInstanceProxyHandlers.get($,oe,$)},has($,oe){return oe[0]!=="_"&&!isGloballyWhitelisted(oe)}});function defineProps(){return null}function defineEmits(){return null}function defineExpose($){}function defineOptions($){}function defineSlots(){return null}function defineModel(){}function withDefaults($,oe){return null}function useSlots(){return getContext().slots}function useAttrs$1(){return getContext().attrs}function useModel($,oe,ae){const ie=getCurrentInstance();if(ae&&ae.local){const le=ref($[oe]);return watch(()=>$[oe],pe=>le.value=pe),watch(le,pe=>{pe!==$[oe]&&ie.emit(`update:${oe}`,pe)}),le}else return{__v_isRef:!0,get value(){return $[oe]},set value(le){ie.emit(`update:${oe}`,le)}}}function getContext(){const $=getCurrentInstance();return $.setupContext||($.setupContext=createSetupContext($))}function normalizePropsOrEmits($){return isArray$c($)?$.reduce((oe,ae)=>(oe[ae]=null,oe),{}):$}function mergeDefaults($,oe){const ae=normalizePropsOrEmits($);for(const ie in oe){if(ie.startsWith("__skip"))continue;let le=ae[ie];le?isArray$c(le)||isFunction$5(le)?le=ae[ie]={type:le,default:oe[ie]}:le.default=oe[ie]:le===null&&(le=ae[ie]={default:oe[ie]}),le&&oe[`__skip_${ie}`]&&(le.skipFactory=!0)}return ae}function mergeModels($,oe){return!$||!oe?$||oe:isArray$c($)&&isArray$c(oe)?$.concat(oe):extend$2({},normalizePropsOrEmits($),normalizePropsOrEmits(oe))}function createPropsRestProxy($,oe){const ae={};for(const ie in $)oe.includes(ie)||Object.defineProperty(ae,ie,{enumerable:!0,get:()=>$[ie]});return ae}function withAsyncContext($){const oe=getCurrentInstance();let ae=$();return unsetCurrentInstance(),isPromise(ae)&&(ae=ae.catch(ie=>{throw setCurrentInstance(oe),ie})),[ae,()=>setCurrentInstance(oe)]}let shouldCacheAccess=!0;function applyOptions($){const oe=resolveMergedOptions($),ae=$.proxy,ie=$.ctx;shouldCacheAccess=!1,oe.beforeCreate&&callHook$1(oe.beforeCreate,$,"bc");const{data:le,computed:pe,methods:_e,watch:Ce,provide:$e,inject:xe,created:Ie,beforeMount:Ne,mounted:Fe,beforeUpdate:ze,updated:At,activated:Lt,deactivated:hn,beforeDestroy:vn,beforeUnmount:_n,destroyed:bn,unmounted:Cn,render:En,renderTracked:$n,renderTriggered:wn,errorCaptured:Tn,serverPrefetch:xn,expose:kn,inheritAttrs:An,components:On,directives:Nn,filters:Rn}=oe;if(xe&&resolveInjections(xe,ie,null),_e)for(const Mn in _e){const Fn=_e[Mn];isFunction$5(Fn)&&(ie[Mn]=Fn.bind(ae))}if(le){const Mn=le.call(ae,ae);isObject$8(Mn)&&($.data=reactive(Mn))}if(shouldCacheAccess=!0,pe)for(const Mn in pe){const Fn=pe[Mn],Vn=isFunction$5(Fn)?Fn.bind(ae,ae):isFunction$5(Fn.get)?Fn.get.bind(ae,ae):NOOP,jn=!isFunction$5(Fn)&&isFunction$5(Fn.set)?Fn.set.bind(ae):NOOP,Zn=computed({get:Vn,set:jn});Object.defineProperty(ie,Mn,{enumerable:!0,configurable:!0,get:()=>Zn.value,set:Gn=>Zn.value=Gn})}if(Ce)for(const Mn in Ce)createWatcher(Ce[Mn],ie,ae,Mn);if($e){const Mn=isFunction$5($e)?$e.call(ae):$e;Reflect.ownKeys(Mn).forEach(Fn=>{provide(Fn,Mn[Fn])})}Ie&&callHook$1(Ie,$,"c");function Bn(Mn,Fn){isArray$c(Fn)?Fn.forEach(Vn=>Mn(Vn.bind(ae))):Fn&&Mn(Fn.bind(ae))}if(Bn(onBeforeMount,Ne),Bn(onMounted,Fe),Bn(onBeforeUpdate,ze),Bn(onUpdated,At),Bn(onActivated,Lt),Bn(onDeactivated,hn),Bn(onErrorCaptured,Tn),Bn(onRenderTracked,$n),Bn(onRenderTriggered,wn),Bn(onBeforeUnmount,_n),Bn(onUnmounted,Cn),Bn(onServerPrefetch,xn),isArray$c(kn))if(kn.length){const Mn=$.exposed||($.exposed={});kn.forEach(Fn=>{Object.defineProperty(Mn,Fn,{get:()=>ae[Fn],set:Vn=>ae[Fn]=Vn})})}else $.exposed||($.exposed={});En&&$.render===NOOP&&($.render=En),An!=null&&($.inheritAttrs=An),On&&($.components=On),Nn&&($.directives=Nn)}function resolveInjections($,oe,ae=NOOP){isArray$c($)&&($=normalizeInject($));for(const ie in $){const le=$[ie];let pe;isObject$8(le)?"default"in le?pe=inject(le.from||ie,le.default,!0):pe=inject(le.from||ie):pe=inject(le),isRef(pe)?Object.defineProperty(oe,ie,{enumerable:!0,configurable:!0,get:()=>pe.value,set:_e=>pe.value=_e}):oe[ie]=pe}}function callHook$1($,oe,ae){callWithAsyncErrorHandling(isArray$c($)?$.map(ie=>ie.bind(oe.proxy)):$.bind(oe.proxy),oe,ae)}function createWatcher($,oe,ae,ie){const le=ie.includes(".")?createPathGetter(ae,ie):()=>ae[ie];if(isString$7($)){const pe=oe[$];isFunction$5(pe)&&watch(le,pe)}else if(isFunction$5($))watch(le,$.bind(ae));else if(isObject$8($))if(isArray$c($))$.forEach(pe=>createWatcher(pe,oe,ae,ie));else{const pe=isFunction$5($.handler)?$.handler.bind(ae):oe[$.handler];isFunction$5(pe)&&watch(le,pe,$)}}function resolveMergedOptions($){const oe=$.type,{mixins:ae,extends:ie}=oe,{mixins:le,optionsCache:pe,config:{optionMergeStrategies:_e}}=$.appContext,Ce=pe.get(oe);let $e;return Ce?$e=Ce:!le.length&&!ae&&!ie?$e=oe:($e={},le.length&&le.forEach(xe=>mergeOptions$2($e,xe,_e,!0)),mergeOptions$2($e,oe,_e)),isObject$8(oe)&&pe.set(oe,$e),$e}function mergeOptions$2($,oe,ae,ie=!1){const{mixins:le,extends:pe}=oe;pe&&mergeOptions$2($,pe,ae,!0),le&&le.forEach(_e=>mergeOptions$2($,_e,ae,!0));for(const _e in oe)if(!(ie&&_e==="expose")){const Ce=internalOptionMergeStrats[_e]||ae&&ae[_e];$[_e]=Ce?Ce($[_e],oe[_e]):oe[_e]}return $}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($,oe){return oe?$?function(){return extend$2(isFunction$5($)?$.call(this,this):$,isFunction$5(oe)?oe.call(this,this):oe)}:oe:$}function mergeInject($,oe){return mergeObjectOptions(normalizeInject($),normalizeInject(oe))}function normalizeInject($){if(isArray$c($)){const oe={};for(let ae=0;ae<$.length;ae++)oe[$[ae]]=$[ae];return oe}return $}function mergeAsArray($,oe){return $?[...new Set([].concat($,oe))]:oe}function mergeObjectOptions($,oe){return $?extend$2(Object.create(null),$,oe):oe}function mergeEmitsOrPropsOptions($,oe){return $?isArray$c($)&&isArray$c(oe)?[...new Set([...$,...oe])]:extend$2(Object.create(null),normalizePropsOrEmits($),normalizePropsOrEmits(oe??{})):oe}function mergeWatchOptions($,oe){if(!$)return oe;if(!oe)return $;const ae=extend$2(Object.create(null),$);for(const ie in oe)ae[ie]=mergeAsArray($[ie],oe[ie]);return ae}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI($,oe){return function(ie,le=null){isFunction$5(ie)||(ie=extend$2({},ie)),le!=null&&!isObject$8(le)&&(le=null);const pe=createAppContext(),_e=new Set;let Ce=!1;const $e=pe.app={_uid:uid$1++,_component:ie,_props:le,_container:null,_context:pe,_instance:null,version:version$3,get config(){return pe.config},set config(xe){},use(xe,...Ie){return _e.has(xe)||(xe&&isFunction$5(xe.install)?(_e.add(xe),xe.install($e,...Ie)):isFunction$5(xe)&&(_e.add(xe),xe($e,...Ie))),$e},mixin(xe){return pe.mixins.includes(xe)||pe.mixins.push(xe),$e},component(xe,Ie){return Ie?(pe.components[xe]=Ie,$e):pe.components[xe]},directive(xe,Ie){return Ie?(pe.directives[xe]=Ie,$e):pe.directives[xe]},mount(xe,Ie,Ne){if(!Ce){const Fe=createVNode(ie,le);return Fe.appContext=pe,Ie&&oe?oe(Fe,xe):$(Fe,xe,Ne),Ce=!0,$e._container=xe,xe.__vue_app__=$e,getExposeProxy(Fe.component)||Fe.component.proxy}},unmount(){Ce&&($(null,$e._container),delete $e._container.__vue_app__)},provide(xe,Ie){return pe.provides[xe]=Ie,$e},runWithContext(xe){currentApp=$e;try{return xe()}finally{currentApp=null}}};return $e}}let currentApp=null;function provide($,oe){if(currentInstance){let ae=currentInstance.provides;const ie=currentInstance.parent&¤tInstance.parent.provides;ie===ae&&(ae=currentInstance.provides=Object.create(ie)),ae[$]=oe}}function inject($,oe,ae=!1){const ie=currentInstance||currentRenderingInstance;if(ie||currentApp){const le=ie?ie.parent==null?ie.vnode.appContext&&ie.vnode.appContext.provides:ie.parent.provides:currentApp._context.provides;if(le&&$ in le)return le[$];if(arguments.length>1)return ae&&isFunction$5(oe)?oe.call(ie&&ie.proxy):oe}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}function initProps$1($,oe,ae,ie=!1){const le={},pe={};def(pe,InternalObjectKey,1),$.propsDefaults=Object.create(null),setFullProps($,oe,le,pe);for(const _e in $.propsOptions[0])_e in le||(le[_e]=void 0);ae?$.props=ie?le:shallowReactive(le):$.type.props?$.props=le:$.props=pe,$.attrs=pe}function updateProps$2($,oe,ae,ie){const{props:le,attrs:pe,vnode:{patchFlag:_e}}=$,Ce=toRaw(le),[$e]=$.propsOptions;let xe=!1;if((ie||_e>0)&&!(_e&16)){if(_e&8){const Ie=$.vnode.dynamicProps;for(let Ne=0;Ne{$e=!0;const[Fe,ze]=normalizePropsOptions(Ne,oe,!0);extend$2(_e,Fe),ze&&Ce.push(...ze)};!ae&&oe.mixins.length&&oe.mixins.forEach(Ie),$.extends&&Ie($.extends),$.mixins&&$.mixins.forEach(Ie)}if(!pe&&!$e)return isObject$8($)&&ie.set($,EMPTY_ARR),EMPTY_ARR;if(isArray$c(pe))for(let Ie=0;Ie-1,ze[1]=Lt<0||At-1||hasOwn$4(ze,"default"))&&Ce.push(Ne)}}}const xe=[_e,Ce];return isObject$8($)&&ie.set($,xe),xe}function validatePropName($){return $[0]!=="$"}function getType($){const oe=$&&$.toString().match(/^\s*(function|class) (\w+)/);return oe?oe[2]:$===null?"null":""}function isSameType($,oe){return getType($)===getType(oe)}function getTypeIndex($,oe){return isArray$c(oe)?oe.findIndex(ae=>isSameType(ae,$)):isFunction$5(oe)&&isSameType(oe,$)?0:-1}const isInternalKey=$=>$[0]==="_"||$==="$stable",normalizeSlotValue=$=>isArray$c($)?$.map(normalizeVNode):[normalizeVNode($)],normalizeSlot$1=($,oe,ae)=>{if(oe._n)return oe;const ie=withCtx((...le)=>normalizeSlotValue(oe(...le)),ae);return ie._c=!1,ie},normalizeObjectSlots=($,oe,ae)=>{const ie=$._ctx;for(const le in $){if(isInternalKey(le))continue;const pe=$[le];if(isFunction$5(pe))oe[le]=normalizeSlot$1(le,pe,ie);else if(pe!=null){const _e=normalizeSlotValue(pe);oe[le]=()=>_e}}},normalizeVNodeSlots=($,oe)=>{const ae=normalizeSlotValue(oe);$.slots.default=()=>ae},initSlots=($,oe)=>{if($.vnode.shapeFlag&32){const ae=oe._;ae?($.slots=toRaw(oe),def(oe,"_",ae)):normalizeObjectSlots(oe,$.slots={})}else $.slots={},oe&&normalizeVNodeSlots($,oe);def($.slots,InternalObjectKey,1)},updateSlots=($,oe,ae)=>{const{vnode:ie,slots:le}=$;let pe=!0,_e=EMPTY_OBJ$1;if(ie.shapeFlag&32){const Ce=oe._;Ce?ae&&Ce===1?pe=!1:(extend$2(le,oe),!ae&&Ce===1&&delete le._):(pe=!oe.$stable,normalizeObjectSlots(oe,le)),_e=oe}else oe&&(normalizeVNodeSlots($,oe),_e={default:1});if(pe)for(const Ce in le)!isInternalKey(Ce)&&!(Ce in _e)&&delete le[Ce]};function setRef($,oe,ae,ie,le=!1){if(isArray$c($)){$.forEach((Fe,ze)=>setRef(Fe,oe&&(isArray$c(oe)?oe[ze]:oe),ae,ie,le));return}if(isAsyncWrapper(ie)&&!le)return;const pe=ie.shapeFlag&4?getExposeProxy(ie.component)||ie.component.proxy:ie.el,_e=le?null:pe,{i:Ce,r:$e}=$,xe=oe&&oe.r,Ie=Ce.refs===EMPTY_OBJ$1?Ce.refs={}:Ce.refs,Ne=Ce.setupState;if(xe!=null&&xe!==$e&&(isString$7(xe)?(Ie[xe]=null,hasOwn$4(Ne,xe)&&(Ne[xe]=null)):isRef(xe)&&(xe.value=null)),isFunction$5($e))callWithErrorHandling($e,Ce,12,[_e,Ie]);else{const Fe=isString$7($e),ze=isRef($e);if(Fe||ze){const At=()=>{if($.f){const Lt=Fe?hasOwn$4(Ne,$e)?Ne[$e]:Ie[$e]:$e.value;le?isArray$c(Lt)&&remove(Lt,pe):isArray$c(Lt)?Lt.includes(pe)||Lt.push(pe):Fe?(Ie[$e]=[pe],hasOwn$4(Ne,$e)&&(Ne[$e]=Ie[$e])):($e.value=[pe],$.k&&(Ie[$.k]=$e.value))}else Fe?(Ie[$e]=_e,hasOwn$4(Ne,$e)&&(Ne[$e]=_e)):ze&&($e.value=_e,$.k&&(Ie[$.k]=_e))};_e?(At.id=-1,queuePostRenderEffect(At,ae)):At()}}}let hasMismatch=!1;const isSVGContainer=$=>/svg/.test($.namespaceURI)&&$.tagName!=="foreignObject",isComment$1=$=>$.nodeType===8;function createHydrationFunctions($){const{mt:oe,p:ae,o:{patchProp:ie,createText:le,nextSibling:pe,parentNode:_e,remove:Ce,insert:$e,createComment:xe}}=$,Ie=(vn,_n)=>{if(!_n.hasChildNodes()){ae(null,vn,_n),flushPostFlushCbs(),_n._vnode=vn;return}hasMismatch=!1,Ne(_n.firstChild,vn,null,null,null),flushPostFlushCbs(),_n._vnode=vn,hasMismatch&&console.error("Hydration completed but contains mismatches.")},Ne=(vn,_n,bn,Cn,En,$n=!1)=>{const wn=isComment$1(vn)&&vn.data==="[",Tn=()=>Lt(vn,_n,bn,Cn,En,wn),{type:xn,ref:kn,shapeFlag:An,patchFlag:On}=_n;let Nn=vn.nodeType;_n.el=vn,On===-2&&($n=!1,_n.dynamicChildren=null);let Rn=null;switch(xn){case Text$1:Nn!==3?_n.children===""?($e(_n.el=le(""),_e(vn),vn),Rn=vn):Rn=Tn():(vn.data!==_n.children&&(hasMismatch=!0,vn.data=_n.children),Rn=pe(vn));break;case Comment:Nn!==8||wn?Rn=Tn():Rn=pe(vn);break;case Static:if(wn&&(vn=pe(vn),Nn=vn.nodeType),Nn===1||Nn===3){Rn=vn;const zn=!_n.children.length;for(let Bn=0;Bn<_n.staticCount;Bn++)zn&&(_n.children+=Rn.nodeType===1?Rn.outerHTML:Rn.data),Bn===_n.staticCount-1&&(_n.anchor=Rn),Rn=pe(Rn);return wn?pe(Rn):Rn}else Tn();break;case Fragment:wn?Rn=At(vn,_n,bn,Cn,En,$n):Rn=Tn();break;default:if(An&1)Nn!==1||_n.type.toLowerCase()!==vn.tagName.toLowerCase()?Rn=Tn():Rn=Fe(vn,_n,bn,Cn,En,$n);else if(An&6){_n.slotScopeIds=En;const zn=_e(vn);if(oe(_n,zn,null,bn,Cn,isSVGContainer(zn),$n),Rn=wn?hn(vn):pe(vn),Rn&&isComment$1(Rn)&&Rn.data==="teleport end"&&(Rn=pe(Rn)),isAsyncWrapper(_n)){let Bn;wn?(Bn=createVNode(Fragment),Bn.anchor=Rn?Rn.previousSibling:zn.lastChild):Bn=vn.nodeType===3?createTextVNode(""):createVNode("div"),Bn.el=vn,_n.component.subTree=Bn}}else An&64?Nn!==8?Rn=Tn():Rn=_n.type.hydrate(vn,_n,bn,Cn,En,$n,$,ze):An&128&&(Rn=_n.type.hydrate(vn,_n,bn,Cn,isSVGContainer(_e(vn)),En,$n,$,Ne))}return kn!=null&&setRef(kn,null,Cn,_n),Rn},Fe=(vn,_n,bn,Cn,En,$n)=>{$n=$n||!!_n.dynamicChildren;const{type:wn,props:Tn,patchFlag:xn,shapeFlag:kn,dirs:An}=_n,On=wn==="input"&&An||wn==="option";if(On||xn!==-1){if(An&&invokeDirectiveHook(_n,null,bn,"created"),Tn)if(On||!$n||xn&48)for(const Rn in Tn)(On&&Rn.endsWith("value")||isOn(Rn)&&!isReservedProp(Rn))&&ie(vn,Rn,null,Tn[Rn],!1,void 0,bn);else Tn.onClick&&ie(vn,"onClick",null,Tn.onClick,!1,void 0,bn);let Nn;if((Nn=Tn&&Tn.onVnodeBeforeMount)&&invokeVNodeHook(Nn,bn,_n),An&&invokeDirectiveHook(_n,null,bn,"beforeMount"),((Nn=Tn&&Tn.onVnodeMounted)||An)&&queueEffectWithSuspense(()=>{Nn&&invokeVNodeHook(Nn,bn,_n),An&&invokeDirectiveHook(_n,null,bn,"mounted")},Cn),kn&16&&!(Tn&&(Tn.innerHTML||Tn.textContent))){let Rn=ze(vn.firstChild,_n,vn,bn,Cn,En,$n);for(;Rn;){hasMismatch=!0;const zn=Rn;Rn=Rn.nextSibling,Ce(zn)}}else kn&8&&vn.textContent!==_n.children&&(hasMismatch=!0,vn.textContent=_n.children)}return vn.nextSibling},ze=(vn,_n,bn,Cn,En,$n,wn)=>{wn=wn||!!_n.dynamicChildren;const Tn=_n.children,xn=Tn.length;for(let kn=0;kn{const{slotScopeIds:wn}=_n;wn&&(En=En?En.concat(wn):wn);const Tn=_e(vn),xn=ze(pe(vn),_n,Tn,bn,Cn,En,$n);return xn&&isComment$1(xn)&&xn.data==="]"?pe(_n.anchor=xn):(hasMismatch=!0,$e(_n.anchor=xe("]"),Tn,xn),xn)},Lt=(vn,_n,bn,Cn,En,$n)=>{if(hasMismatch=!0,_n.el=null,$n){const xn=hn(vn);for(;;){const kn=pe(vn);if(kn&&kn!==xn)Ce(kn);else break}}const wn=pe(vn),Tn=_e(vn);return Ce(vn),ae(null,_n,Tn,wn,bn,Cn,isSVGContainer(Tn),En),wn},hn=vn=>{let _n=0;for(;vn;)if(vn=pe(vn),vn&&isComment$1(vn)&&(vn.data==="["&&_n++,vn.data==="]")){if(_n===0)return pe(vn);_n--}return vn};return[Ie,Ne]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer($){return baseCreateRenderer($)}function createHydrationRenderer($){return baseCreateRenderer($,createHydrationFunctions)}function baseCreateRenderer($,oe){const ae=getGlobalThis();ae.__VUE__=!0;const{insert:ie,remove:le,patchProp:pe,createElement:_e,createText:Ce,createComment:$e,setText:xe,setElementText:Ie,parentNode:Ne,nextSibling:Fe,setScopeId:ze=NOOP,insertStaticContent:At}=$,Lt=(Un,tr,ur,_r=null,Er=null,sr=null,Pr=!1,Sr=null,kr=!!tr.dynamicChildren)=>{if(Un===tr)return;Un&&!isSameVNodeType(Un,tr)&&(_r=rr(Un),Gn(Un,Er,sr,!0),Un=null),tr.patchFlag===-2&&(kr=!1,tr.dynamicChildren=null);const{type:mr,ref:lr,shapeFlag:hr}=tr;switch(mr){case Text$1:hn(Un,tr,ur,_r);break;case Comment:vn(Un,tr,ur,_r);break;case Static:Un==null&&_n(tr,ur,_r,Pr);break;case Fragment:On(Un,tr,ur,_r,Er,sr,Pr,Sr,kr);break;default:hr&1?En(Un,tr,ur,_r,Er,sr,Pr,Sr,kr):hr&6?Nn(Un,tr,ur,_r,Er,sr,Pr,Sr,kr):(hr&64||hr&128)&&mr.process(Un,tr,ur,_r,Er,sr,Pr,Sr,kr,Yn)}lr!=null&&Er&&setRef(lr,Un&&Un.ref,sr,tr||Un,!tr)},hn=(Un,tr,ur,_r)=>{if(Un==null)ie(tr.el=Ce(tr.children),ur,_r);else{const Er=tr.el=Un.el;tr.children!==Un.children&&xe(Er,tr.children)}},vn=(Un,tr,ur,_r)=>{Un==null?ie(tr.el=$e(tr.children||""),ur,_r):tr.el=Un.el},_n=(Un,tr,ur,_r)=>{[Un.el,Un.anchor]=At(Un.children,tr,ur,_r,Un.el,Un.anchor)},bn=({el:Un,anchor:tr},ur,_r)=>{let Er;for(;Un&&Un!==tr;)Er=Fe(Un),ie(Un,ur,_r),Un=Er;ie(tr,ur,_r)},Cn=({el:Un,anchor:tr})=>{let ur;for(;Un&&Un!==tr;)ur=Fe(Un),le(Un),Un=ur;le(tr)},En=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr)=>{Pr=Pr||tr.type==="svg",Un==null?$n(tr,ur,_r,Er,sr,Pr,Sr,kr):xn(Un,tr,Er,sr,Pr,Sr,kr)},$n=(Un,tr,ur,_r,Er,sr,Pr,Sr)=>{let kr,mr;const{type:lr,props:hr,shapeFlag:gr,transition:Or,dirs:Lr}=Un;if(kr=Un.el=_e(Un.type,sr,hr&&hr.is,hr),gr&8?Ie(kr,Un.children):gr&16&&Tn(Un.children,kr,null,_r,Er,sr&&lr!=="foreignObject",Pr,Sr),Lr&&invokeDirectiveHook(Un,null,_r,"created"),wn(kr,Un,Un.scopeId,Pr,_r),hr){for(const Rr in hr)Rr!=="value"&&!isReservedProp(Rr)&&pe(kr,Rr,null,hr[Rr],sr,Un.children,_r,Er,er);"value"in hr&&pe(kr,"value",null,hr.value),(mr=hr.onVnodeBeforeMount)&&invokeVNodeHook(mr,_r,Un)}Lr&&invokeDirectiveHook(Un,null,_r,"beforeMount");const Vr=(!Er||Er&&!Er.pendingBranch)&&Or&&!Or.persisted;Vr&&Or.beforeEnter(kr),ie(kr,tr,ur),((mr=hr&&hr.onVnodeMounted)||Vr||Lr)&&queuePostRenderEffect(()=>{mr&&invokeVNodeHook(mr,_r,Un),Vr&&Or.enter(kr),Lr&&invokeDirectiveHook(Un,null,_r,"mounted")},Er)},wn=(Un,tr,ur,_r,Er)=>{if(ur&&ze(Un,ur),_r)for(let sr=0;sr<_r.length;sr++)ze(Un,_r[sr]);if(Er){let sr=Er.subTree;if(tr===sr){const Pr=Er.vnode;wn(Un,Pr,Pr.scopeId,Pr.slotScopeIds,Er.parent)}}},Tn=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr=0)=>{for(let mr=kr;mr{const Sr=tr.el=Un.el;let{patchFlag:kr,dynamicChildren:mr,dirs:lr}=tr;kr|=Un.patchFlag&16;const hr=Un.props||EMPTY_OBJ$1,gr=tr.props||EMPTY_OBJ$1;let Or;ur&&toggleRecurse(ur,!1),(Or=gr.onVnodeBeforeUpdate)&&invokeVNodeHook(Or,ur,tr,Un),lr&&invokeDirectiveHook(tr,Un,ur,"beforeUpdate"),ur&&toggleRecurse(ur,!0);const Lr=Er&&tr.type!=="foreignObject";if(mr?kn(Un.dynamicChildren,mr,Sr,ur,_r,Lr,sr):Pr||Fn(Un,tr,Sr,null,ur,_r,Lr,sr,!1),kr>0){if(kr&16)An(Sr,tr,hr,gr,ur,_r,Er);else if(kr&2&&hr.class!==gr.class&&pe(Sr,"class",null,gr.class,Er),kr&4&&pe(Sr,"style",hr.style,gr.style,Er),kr&8){const Vr=tr.dynamicProps;for(let Rr=0;Rr{Or&&invokeVNodeHook(Or,ur,tr,Un),lr&&invokeDirectiveHook(tr,Un,ur,"updated")},_r)},kn=(Un,tr,ur,_r,Er,sr,Pr)=>{for(let Sr=0;Sr{if(ur!==_r){if(ur!==EMPTY_OBJ$1)for(const Sr in ur)!isReservedProp(Sr)&&!(Sr in _r)&&pe(Un,Sr,ur[Sr],null,Pr,tr.children,Er,sr,er);for(const Sr in _r){if(isReservedProp(Sr))continue;const kr=_r[Sr],mr=ur[Sr];kr!==mr&&Sr!=="value"&&pe(Un,Sr,mr,kr,Pr,tr.children,Er,sr,er)}"value"in _r&&pe(Un,"value",ur.value,_r.value)}},On=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr)=>{const mr=tr.el=Un?Un.el:Ce(""),lr=tr.anchor=Un?Un.anchor:Ce("");let{patchFlag:hr,dynamicChildren:gr,slotScopeIds:Or}=tr;Or&&(Sr=Sr?Sr.concat(Or):Or),Un==null?(ie(mr,ur,_r),ie(lr,ur,_r),Tn(tr.children,ur,lr,Er,sr,Pr,Sr,kr)):hr>0&&hr&64&&gr&&Un.dynamicChildren?(kn(Un.dynamicChildren,gr,ur,Er,sr,Pr,Sr),(tr.key!=null||Er&&tr===Er.subTree)&&traverseStaticChildren(Un,tr,!0)):Fn(Un,tr,ur,lr,Er,sr,Pr,Sr,kr)},Nn=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr)=>{tr.slotScopeIds=Sr,Un==null?tr.shapeFlag&512?Er.ctx.activate(tr,ur,_r,Pr,kr):Rn(tr,ur,_r,Er,sr,Pr,kr):zn(Un,tr,kr)},Rn=(Un,tr,ur,_r,Er,sr,Pr)=>{const Sr=Un.component=createComponentInstance(Un,_r,Er);if(isKeepAlive(Un)&&(Sr.ctx.renderer=Yn),setupComponent(Sr),Sr.asyncDep){if(Er&&Er.registerDep(Sr,Bn),!Un.el){const kr=Sr.subTree=createVNode(Comment);vn(null,kr,tr,ur)}return}Bn(Sr,Un,tr,ur,Er,sr,Pr)},zn=(Un,tr,ur)=>{const _r=tr.component=Un.component;if(shouldUpdateComponent(Un,tr,ur))if(_r.asyncDep&&!_r.asyncResolved){Mn(_r,tr,ur);return}else _r.next=tr,invalidateJob(_r.update),_r.update();else tr.el=Un.el,_r.vnode=tr},Bn=(Un,tr,ur,_r,Er,sr,Pr)=>{const Sr=()=>{if(Un.isMounted){let{next:lr,bu:hr,u:gr,parent:Or,vnode:Lr}=Un,Vr=lr,Rr;toggleRecurse(Un,!1),lr?(lr.el=Lr.el,Mn(Un,lr,Pr)):lr=Lr,hr&&invokeArrayFns(hr),(Rr=lr.props&&lr.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Rr,Or,lr,Lr),toggleRecurse(Un,!0);const $r=renderComponentRoot(Un),Tr=Un.subTree;Un.subTree=$r,Lt(Tr,$r,Ne(Tr.el),rr(Tr),Un,Er,sr),lr.el=$r.el,Vr===null&&updateHOCHostEl(Un,$r.el),gr&&queuePostRenderEffect(gr,Er),(Rr=lr.props&&lr.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Rr,Or,lr,Lr),Er)}else{let lr;const{el:hr,props:gr}=tr,{bm:Or,m:Lr,parent:Vr}=Un,Rr=isAsyncWrapper(tr);if(toggleRecurse(Un,!1),Or&&invokeArrayFns(Or),!Rr&&(lr=gr&&gr.onVnodeBeforeMount)&&invokeVNodeHook(lr,Vr,tr),toggleRecurse(Un,!0),hr&&pr){const $r=()=>{Un.subTree=renderComponentRoot(Un),pr(hr,Un.subTree,Un,Er,null)};Rr?tr.type.__asyncLoader().then(()=>!Un.isUnmounted&&$r()):$r()}else{const $r=Un.subTree=renderComponentRoot(Un);Lt(null,$r,ur,_r,Un,Er,sr),tr.el=$r.el}if(Lr&&queuePostRenderEffect(Lr,Er),!Rr&&(lr=gr&&gr.onVnodeMounted)){const $r=tr;queuePostRenderEffect(()=>invokeVNodeHook(lr,Vr,$r),Er)}(tr.shapeFlag&256||Vr&&isAsyncWrapper(Vr.vnode)&&Vr.vnode.shapeFlag&256)&&Un.a&&queuePostRenderEffect(Un.a,Er),Un.isMounted=!0,tr=ur=_r=null}},kr=Un.effect=new ReactiveEffect(Sr,()=>queueJob(mr),Un.scope),mr=Un.update=()=>kr.run();mr.id=Un.uid,toggleRecurse(Un,!0),mr()},Mn=(Un,tr,ur)=>{tr.component=Un;const _r=Un.vnode.props;Un.vnode=tr,Un.next=null,updateProps$2(Un,tr.props,_r,ur),updateSlots(Un,tr.children,ur),pauseTracking(),flushPreFlushCbs(),resetTracking()},Fn=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr=!1)=>{const mr=Un&&Un.children,lr=Un?Un.shapeFlag:0,hr=tr.children,{patchFlag:gr,shapeFlag:Or}=tr;if(gr>0){if(gr&128){jn(mr,hr,ur,_r,Er,sr,Pr,Sr,kr);return}else if(gr&256){Vn(mr,hr,ur,_r,Er,sr,Pr,Sr,kr);return}}Or&8?(lr&16&&er(mr,Er,sr),hr!==mr&&Ie(ur,hr)):lr&16?Or&16?jn(mr,hr,ur,_r,Er,sr,Pr,Sr,kr):er(mr,Er,sr,!0):(lr&8&&Ie(ur,""),Or&16&&Tn(hr,ur,_r,Er,sr,Pr,Sr,kr))},Vn=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr)=>{Un=Un||EMPTY_ARR,tr=tr||EMPTY_ARR;const mr=Un.length,lr=tr.length,hr=Math.min(mr,lr);let gr;for(gr=0;grlr?er(Un,Er,sr,!0,!1,hr):Tn(tr,ur,_r,Er,sr,Pr,Sr,kr,hr)},jn=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr)=>{let mr=0;const lr=tr.length;let hr=Un.length-1,gr=lr-1;for(;mr<=hr&&mr<=gr;){const Or=Un[mr],Lr=tr[mr]=kr?cloneIfMounted(tr[mr]):normalizeVNode(tr[mr]);if(isSameVNodeType(Or,Lr))Lt(Or,Lr,ur,null,Er,sr,Pr,Sr,kr);else break;mr++}for(;mr<=hr&&mr<=gr;){const Or=Un[hr],Lr=tr[gr]=kr?cloneIfMounted(tr[gr]):normalizeVNode(tr[gr]);if(isSameVNodeType(Or,Lr))Lt(Or,Lr,ur,null,Er,sr,Pr,Sr,kr);else break;hr--,gr--}if(mr>hr){if(mr<=gr){const Or=gr+1,Lr=Orgr)for(;mr<=hr;)Gn(Un[mr],Er,sr,!0),mr++;else{const Or=mr,Lr=mr,Vr=new Map;for(mr=Lr;mr<=gr;mr++){const Ir=tr[mr]=kr?cloneIfMounted(tr[mr]):normalizeVNode(tr[mr]);Ir.key!=null&&Vr.set(Ir.key,mr)}let Rr,$r=0;const Tr=gr-Lr+1;let dr=!1,Jn=0;const ir=new Array(Tr);for(mr=0;mr=Tr){Gn(Ir,Er,sr,!0);continue}let Hr;if(Ir.key!=null)Hr=Vr.get(Ir.key);else for(Rr=Lr;Rr<=gr;Rr++)if(ir[Rr-Lr]===0&&isSameVNodeType(Ir,tr[Rr])){Hr=Rr;break}Hr===void 0?Gn(Ir,Er,sr,!0):(ir[Hr-Lr]=mr+1,Hr>=Jn?Jn=Hr:dr=!0,Lt(Ir,tr[Hr],ur,null,Er,sr,Pr,Sr,kr),$r++)}const xr=dr?getSequence(ir):EMPTY_ARR;for(Rr=xr.length-1,mr=Tr-1;mr>=0;mr--){const Ir=Lr+mr,Hr=tr[Ir],Cr=Ir+1{const{el:sr,type:Pr,transition:Sr,children:kr,shapeFlag:mr}=Un;if(mr&6){Zn(Un.component.subTree,tr,ur,_r);return}if(mr&128){Un.suspense.move(tr,ur,_r);return}if(mr&64){Pr.move(Un,tr,ur,Yn);return}if(Pr===Fragment){ie(sr,tr,ur);for(let hr=0;hrSr.enter(sr),Er);else{const{leave:hr,delayLeave:gr,afterLeave:Or}=Sr,Lr=()=>ie(sr,tr,ur),Vr=()=>{hr(sr,()=>{Lr(),Or&&Or()})};gr?gr(sr,Lr,Vr):Vr()}else ie(sr,tr,ur)},Gn=(Un,tr,ur,_r=!1,Er=!1)=>{const{type:sr,props:Pr,ref:Sr,children:kr,dynamicChildren:mr,shapeFlag:lr,patchFlag:hr,dirs:gr}=Un;if(Sr!=null&&setRef(Sr,null,ur,Un,!0),lr&256){tr.ctx.deactivate(Un);return}const Or=lr&1&&gr,Lr=!isAsyncWrapper(Un);let Vr;if(Lr&&(Vr=Pr&&Pr.onVnodeBeforeUnmount)&&invokeVNodeHook(Vr,tr,Un),lr&6)nr(Un.component,ur,_r);else{if(lr&128){Un.suspense.unmount(ur,_r);return}Or&&invokeDirectiveHook(Un,null,tr,"beforeUnmount"),lr&64?Un.type.remove(Un,tr,ur,Er,Yn,_r):mr&&(sr!==Fragment||hr>0&&hr&64)?er(mr,tr,ur,!1,!0):(sr===Fragment&&hr&384||!Er&&lr&16)&&er(kr,tr,ur),_r&&Xn(Un)}(Lr&&(Vr=Pr&&Pr.onVnodeUnmounted)||Or)&&queuePostRenderEffect(()=>{Vr&&invokeVNodeHook(Vr,tr,Un),Or&&invokeDirectiveHook(Un,null,tr,"unmounted")},ur)},Xn=Un=>{const{type:tr,el:ur,anchor:_r,transition:Er}=Un;if(tr===Fragment){cr(ur,_r);return}if(tr===Static){Cn(Un);return}const sr=()=>{le(ur),Er&&!Er.persisted&&Er.afterLeave&&Er.afterLeave()};if(Un.shapeFlag&1&&Er&&!Er.persisted){const{leave:Pr,delayLeave:Sr}=Er,kr=()=>Pr(ur,sr);Sr?Sr(Un.el,sr,kr):kr()}else sr()},cr=(Un,tr)=>{let ur;for(;Un!==tr;)ur=Fe(Un),le(Un),Un=ur;le(tr)},nr=(Un,tr,ur)=>{const{bum:_r,scope:Er,update:sr,subTree:Pr,um:Sr}=Un;_r&&invokeArrayFns(_r),Er.stop(),sr&&(sr.active=!1,Gn(Pr,Un,tr,ur)),Sr&&queuePostRenderEffect(Sr,tr),queuePostRenderEffect(()=>{Un.isUnmounted=!0},tr),tr&&tr.pendingBranch&&!tr.isUnmounted&&Un.asyncDep&&!Un.asyncResolved&&Un.suspenseId===tr.pendingId&&(tr.deps--,tr.deps===0&&tr.resolve())},er=(Un,tr,ur,_r=!1,Er=!1,sr=0)=>{for(let Pr=sr;PrUn.shapeFlag&6?rr(Un.component.subTree):Un.shapeFlag&128?Un.suspense.next():Fe(Un.anchor||Un.el),qn=(Un,tr,ur)=>{Un==null?tr._vnode&&Gn(tr._vnode,null,null,!0):Lt(tr._vnode||null,Un,tr,null,null,null,ur),flushPreFlushCbs(),flushPostFlushCbs(),tr._vnode=Un},Yn={p:Lt,um:Gn,m:Zn,r:Xn,mt:Rn,mc:Tn,pc:Fn,pbc:kn,n:rr,o:$};let ar,pr;return oe&&([ar,pr]=oe(Yn)),{render:qn,hydrate:ar,createApp:createAppAPI(qn,ar)}}function toggleRecurse({effect:$,update:oe},ae){$.allowRecurse=oe.allowRecurse=ae}function traverseStaticChildren($,oe,ae=!1){const ie=$.children,le=oe.children;if(isArray$c(ie)&&isArray$c(le))for(let pe=0;pe>1,$[ae[Ce]]0&&(oe[ie]=ae[pe-1]),ae[pe]=ie)}}for(pe=ae.length,_e=ae[pe-1];pe-- >0;)ae[pe]=_e,_e=oe[_e];return ae}const isTeleport=$=>$.__isTeleport,isTeleportDisabled=$=>$&&($.disabled||$.disabled===""),isTargetSVG=$=>typeof SVGElement<"u"&&$ instanceof SVGElement,resolveTarget=($,oe)=>{const ae=$&&$.to;return isString$7(ae)?oe?oe(ae):null:ae},TeleportImpl={__isTeleport:!0,process($,oe,ae,ie,le,pe,_e,Ce,$e,xe){const{mc:Ie,pc:Ne,pbc:Fe,o:{insert:ze,querySelector:At,createText:Lt,createComment:hn}}=xe,vn=isTeleportDisabled(oe.props);let{shapeFlag:_n,children:bn,dynamicChildren:Cn}=oe;if($==null){const En=oe.el=Lt(""),$n=oe.anchor=Lt("");ze(En,ae,ie),ze($n,ae,ie);const wn=oe.target=resolveTarget(oe.props,At),Tn=oe.targetAnchor=Lt("");wn&&(ze(Tn,wn),_e=_e||isTargetSVG(wn));const xn=(kn,An)=>{_n&16&&Ie(bn,kn,An,le,pe,_e,Ce,$e)};vn?xn(ae,$n):wn&&xn(wn,Tn)}else{oe.el=$.el;const En=oe.anchor=$.anchor,$n=oe.target=$.target,wn=oe.targetAnchor=$.targetAnchor,Tn=isTeleportDisabled($.props),xn=Tn?ae:$n,kn=Tn?En:wn;if(_e=_e||isTargetSVG($n),Cn?(Fe($.dynamicChildren,Cn,xn,le,pe,_e,Ce),traverseStaticChildren($,oe,!0)):$e||Ne($,oe,xn,kn,le,pe,_e,Ce,!1),vn)Tn||moveTeleport(oe,ae,En,xe,1);else if((oe.props&&oe.props.to)!==($.props&&$.props.to)){const An=oe.target=resolveTarget(oe.props,At);An&&moveTeleport(oe,An,null,xe,0)}else Tn&&moveTeleport(oe,$n,wn,xe,1)}updateCssVars(oe)},remove($,oe,ae,ie,{um:le,o:{remove:pe}},_e){const{shapeFlag:Ce,children:$e,anchor:xe,targetAnchor:Ie,target:Ne,props:Fe}=$;if(Ne&&pe(Ie),(_e||!isTeleportDisabled(Fe))&&(pe(xe),Ce&16))for(let ze=0;ze<$e.length;ze++){const At=$e[ze];le(At,oe,ae,!0,!!At.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport($,oe,ae,{o:{insert:ie},m:le},pe=2){pe===0&&ie($.targetAnchor,oe,ae);const{el:_e,anchor:Ce,shapeFlag:$e,children:xe,props:Ie}=$,Ne=pe===2;if(Ne&&ie(_e,oe,ae),(!Ne||isTeleportDisabled(Ie))&&$e&16)for(let Fe=0;Fe0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push($),$}function createElementBlock($,oe,ae,ie,le,pe){return setupBlock(createBaseVNode($,oe,ae,ie,le,pe,!0))}function createBlock($,oe,ae,ie,le){return setupBlock(createVNode($,oe,ae,ie,le,!0))}function isVNode$1($){return $?$.__v_isVNode===!0:!1}function isSameVNodeType($,oe){return $.type===oe.type&&$.key===oe.key}function transformVNodeArgs($){}const InternalObjectKey="__vInternal",normalizeKey=({key:$})=>$??null,normalizeRef=({ref:$,ref_key:oe,ref_for:ae})=>(typeof $=="number"&&($=""+$),$!=null?isString$7($)||isRef($)||isFunction$5($)?{i:currentRenderingInstance,r:$,k:oe,f:!!ae}:$:null);function createBaseVNode($,oe=null,ae=null,ie=0,le=null,pe=$===Fragment?0:1,_e=!1,Ce=!1){const $e={__v_isVNode:!0,__v_skip:!0,type:$,props:oe,key:oe&&normalizeKey(oe),ref:oe&&normalizeRef(oe),scopeId:currentScopeId,slotScopeIds:null,children:ae,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:pe,patchFlag:ie,dynamicProps:le,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return Ce?(normalizeChildren($e,ae),pe&128&&$.normalize($e)):ae&&($e.shapeFlag|=isString$7(ae)?8:16),isBlockTreeEnabled>0&&!_e&¤tBlock&&($e.patchFlag>0||pe&6)&&$e.patchFlag!==32&¤tBlock.push($e),$e}const createVNode=_createVNode;function _createVNode($,oe=null,ae=null,ie=0,le=null,pe=!1){if((!$||$===NULL_DYNAMIC_COMPONENT)&&($=Comment),isVNode$1($)){const Ce=cloneVNode($,oe,!0);return ae&&normalizeChildren(Ce,ae),isBlockTreeEnabled>0&&!pe&¤tBlock&&(Ce.shapeFlag&6?currentBlock[currentBlock.indexOf($)]=Ce:currentBlock.push(Ce)),Ce.patchFlag|=-2,Ce}if(isClassComponent($)&&($=$.__vccOpts),oe){oe=guardReactiveProps(oe);let{class:Ce,style:$e}=oe;Ce&&!isString$7(Ce)&&(oe.class=normalizeClass(Ce)),isObject$8($e)&&(isProxy($e)&&!isArray$c($e)&&($e=extend$2({},$e)),oe.style=normalizeStyle$1($e))}const _e=isString$7($)?1:isSuspense($)?128:isTeleport($)?64:isObject$8($)?4:isFunction$5($)?2:0;return createBaseVNode($,oe,ae,ie,le,_e,pe,!0)}function guardReactiveProps($){return $?isProxy($)||InternalObjectKey in $?extend$2({},$):$:null}function cloneVNode($,oe,ae=!1){const{props:ie,ref:le,patchFlag:pe,children:_e}=$,Ce=oe?mergeProps(ie||{},oe):ie;return{__v_isVNode:!0,__v_skip:!0,type:$.type,props:Ce,key:Ce&&normalizeKey(Ce),ref:oe&&oe.ref?ae&&le?isArray$c(le)?le.concat(normalizeRef(oe)):[le,normalizeRef(oe)]:normalizeRef(oe):le,scopeId:$.scopeId,slotScopeIds:$.slotScopeIds,children:_e,target:$.target,targetAnchor:$.targetAnchor,staticCount:$.staticCount,shapeFlag:$.shapeFlag,patchFlag:oe&&$.type!==Fragment?pe===-1?16:pe|16:pe,dynamicProps:$.dynamicProps,dynamicChildren:$.dynamicChildren,appContext:$.appContext,dirs:$.dirs,transition:$.transition,component:$.component,suspense:$.suspense,ssContent:$.ssContent&&cloneVNode($.ssContent),ssFallback:$.ssFallback&&cloneVNode($.ssFallback),el:$.el,anchor:$.anchor,ctx:$.ctx,ce:$.ce}}function createTextVNode($=" ",oe=0){return createVNode(Text$1,null,$,oe)}function createStaticVNode($,oe){const ae=createVNode(Static,null,$);return ae.staticCount=oe,ae}function createCommentVNode($="",oe=!1){return oe?(openBlock(),createBlock(Comment,null,$)):createVNode(Comment,null,$)}function normalizeVNode($){return $==null||typeof $=="boolean"?createVNode(Comment):isArray$c($)?createVNode(Fragment,null,$.slice()):typeof $=="object"?cloneIfMounted($):createVNode(Text$1,null,String($))}function cloneIfMounted($){return $.el===null&&$.patchFlag!==-1||$.memo?$:cloneVNode($)}function normalizeChildren($,oe){let ae=0;const{shapeFlag:ie}=$;if(oe==null)oe=null;else if(isArray$c(oe))ae=16;else if(typeof oe=="object")if(ie&65){const le=oe.default;le&&(le._c&&(le._d=!1),normalizeChildren($,le()),le._c&&(le._d=!0));return}else{ae=32;const le=oe._;!le&&!(InternalObjectKey in oe)?oe._ctx=currentRenderingInstance:le===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?oe._=1:(oe._=2,$.patchFlag|=1024))}else isFunction$5(oe)?(oe={default:oe,_ctx:currentRenderingInstance},ae=32):(oe=String(oe),ie&64?(ae=16,oe=[createTextVNode(oe)]):ae=8);$.children=oe,$.shapeFlag|=ae}function mergeProps(...$){const oe={};for(let ae=0;ae<$.length;ae++){const ie=$[ae];for(const le in ie)if(le==="class")oe.class!==ie.class&&(oe.class=normalizeClass([oe.class,ie.class]));else if(le==="style")oe.style=normalizeStyle$1([oe.style,ie.style]);else if(isOn(le)){const pe=oe[le],_e=ie[le];_e&&pe!==_e&&!(isArray$c(pe)&&pe.includes(_e))&&(oe[le]=pe?[].concat(pe,_e):_e)}else le!==""&&(oe[le]=ie[le])}return oe}function invokeVNodeHook($,oe,ae,ie=null){callWithAsyncErrorHandling($,oe,7,[ae,ie])}const emptyAppContext=createAppContext();let uid$2=0;function createComponentInstance($,oe,ae){const ie=$.type,le=(oe?oe.appContext:$.appContext)||emptyAppContext,pe={uid:uid$2++,vnode:$,type:ie,parent:oe,appContext:le,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:oe?oe.provides:Object.create(le.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(ie,le),emitsOptions:normalizeEmitsOptions(ie,le),emit:null,emitted:null,propsDefaults:EMPTY_OBJ$1,inheritAttrs:ie.inheritAttrs,ctx:EMPTY_OBJ$1,data:EMPTY_OBJ$1,props:EMPTY_OBJ$1,attrs:EMPTY_OBJ$1,slots:EMPTY_OBJ$1,refs:EMPTY_OBJ$1,setupState:EMPTY_OBJ$1,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:ae,suspenseId:ae?ae.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return pe.ctx={_:pe},pe.root=oe?oe.root:pe,pe.emit=emit.bind(null,pe),$.ce&&$.ce(pe),pe}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis()[settersKey]=[]),globalCurrentInstanceSetters.push($=>currentInstance=$),internalSetCurrentInstance=$=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(oe=>oe($)):globalCurrentInstanceSetters[0]($)};const setCurrentInstance=$=>{internalSetCurrentInstance($),$.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent($){return $.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent($,oe=!1){isInSSRComponentSetup=oe;const{props:ae,children:ie}=$.vnode,le=isStatefulComponent($);initProps$1($,ae,le,oe),initSlots($,ie);const pe=le?setupStatefulComponent($,oe):void 0;return isInSSRComponentSetup=!1,pe}function setupStatefulComponent($,oe){const ae=$.type;$.accessCache=Object.create(null),$.proxy=markRaw(new Proxy($.ctx,PublicInstanceProxyHandlers));const{setup:ie}=ae;if(ie){const le=$.setupContext=ie.length>1?createSetupContext($):null;setCurrentInstance($),pauseTracking();const pe=callWithErrorHandling(ie,$,0,[$.props,le]);if(resetTracking(),unsetCurrentInstance(),isPromise(pe)){if(pe.then(unsetCurrentInstance,unsetCurrentInstance),oe)return pe.then(_e=>{handleSetupResult($,_e,oe)}).catch(_e=>{handleError(_e,$,0)});$.asyncDep=pe}else handleSetupResult($,pe,oe)}else finishComponentSetup($,oe)}function handleSetupResult($,oe,ae){isFunction$5(oe)?$.type.__ssrInlineRender?$.ssrRender=oe:$.render=oe:isObject$8(oe)&&($.setupState=proxyRefs(oe)),finishComponentSetup($,ae)}let compile$1,installWithProxy;function registerRuntimeCompiler($){compile$1=$,installWithProxy=oe=>{oe.render._rc&&(oe.withProxy=new Proxy(oe.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$1;function finishComponentSetup($,oe,ae){const ie=$.type;if(!$.render){if(!oe&&compile$1&&!ie.render){const le=ie.template||resolveMergedOptions($).template;if(le){const{isCustomElement:pe,compilerOptions:_e}=$.appContext.config,{delimiters:Ce,compilerOptions:$e}=ie,xe=extend$2(extend$2({isCustomElement:pe,delimiters:Ce},_e),$e);ie.render=compile$1(le,xe)}}$.render=ie.render||NOOP,installWithProxy&&installWithProxy($)}setCurrentInstance($),pauseTracking(),applyOptions($),resetTracking(),unsetCurrentInstance()}function getAttrsProxy($){return $.attrsProxy||($.attrsProxy=new Proxy($.attrs,{get(oe,ae){return track($,"get","$attrs"),oe[ae]}}))}function createSetupContext($){const oe=ae=>{$.exposed=ae||{}};return{get attrs(){return getAttrsProxy($)},slots:$.slots,emit:$.emit,expose:oe}}function getExposeProxy($){if($.exposed)return $.exposeProxy||($.exposeProxy=new Proxy(proxyRefs(markRaw($.exposed)),{get(oe,ae){if(ae in oe)return oe[ae];if(ae in publicPropertiesMap)return publicPropertiesMap[ae]($)},has(oe,ae){return ae in oe||ae in publicPropertiesMap}}))}function getComponentName($,oe=!0){return isFunction$5($)?$.displayName||$.name:$.name||oe&&$.__name}function isClassComponent($){return isFunction$5($)&&"__vccOpts"in $}const computed=($,oe)=>computed$1($,oe,isInSSRComponentSetup);function h$3($,oe,ae){const ie=arguments.length;return ie===2?isObject$8(oe)&&!isArray$c(oe)?isVNode$1(oe)?createVNode($,null,[oe]):createVNode($,oe):createVNode($,null,oe):(ie>3?ae=Array.prototype.slice.call(arguments,2):ie===3&&isVNode$1(ae)&&(ae=[ae]),createVNode($,oe,ae))}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function initCustomFormatter(){}function withMemo($,oe,ae,ie){const le=ae[ie];if(le&&isMemoSame(le,$))return le;const pe=oe();return pe.memo=$.slice(),ae[ie]=pe}function isMemoSame($,oe){const ae=$.memo;if(ae.length!=oe.length)return!1;for(let ie=0;ie0&¤tBlock&¤tBlock.push($),!0}const version$3="3.3.1",_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode:isVNode$1,normalizeVNode},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,svgNS="http://www.w3.org/2000/svg",doc$1=typeof document<"u"?document:null,templateContainer=doc$1&&doc$1.createElement("template"),nodeOps={insert:($,oe,ae)=>{oe.insertBefore($,ae||null)},remove:$=>{const oe=$.parentNode;oe&&oe.removeChild($)},createElement:($,oe,ae,ie)=>{const le=oe?doc$1.createElementNS(svgNS,$):doc$1.createElement($,ae?{is:ae}:void 0);return $==="select"&&ie&&ie.multiple!=null&&le.setAttribute("multiple",ie.multiple),le},createText:$=>doc$1.createTextNode($),createComment:$=>doc$1.createComment($),setText:($,oe)=>{$.nodeValue=oe},setElementText:($,oe)=>{$.textContent=oe},parentNode:$=>$.parentNode,nextSibling:$=>$.nextSibling,querySelector:$=>doc$1.querySelector($),setScopeId($,oe){$.setAttribute(oe,"")},insertStaticContent($,oe,ae,ie,le,pe){const _e=ae?ae.previousSibling:oe.lastChild;if(le&&(le===pe||le.nextSibling))for(;oe.insertBefore(le.cloneNode(!0),ae),!(le===pe||!(le=le.nextSibling)););else{templateContainer.innerHTML=ie?`${$}`:$;const Ce=templateContainer.content;if(ie){const $e=Ce.firstChild;for(;$e.firstChild;)Ce.appendChild($e.firstChild);Ce.removeChild($e)}oe.insertBefore(Ce,ae)}return[_e?_e.nextSibling:oe.firstChild,ae?ae.previousSibling:oe.lastChild]}};function patchClass($,oe,ae){const ie=$._vtc;ie&&(oe=(oe?[oe,...ie]:[...ie]).join(" ")),oe==null?$.removeAttribute("class"):ae?$.setAttribute("class",oe):$.className=oe}function patchStyle($,oe,ae){const ie=$.style,le=isString$7(ae);if(ae&&!le){if(oe&&!isString$7(oe))for(const pe in oe)ae[pe]==null&&setStyle(ie,pe,"");for(const pe in ae)setStyle(ie,pe,ae[pe])}else{const pe=ie.display;le?oe!==ae&&(ie.cssText=ae):oe&&$.removeAttribute("style"),"_vod"in $&&(ie.display=pe)}}const importantRE=/\s*!important$/;function setStyle($,oe,ae){if(isArray$c(ae))ae.forEach(ie=>setStyle($,oe,ie));else if(ae==null&&(ae=""),oe.startsWith("--"))$.setProperty(oe,ae);else{const ie=autoPrefix($,oe);importantRE.test(ae)?$.setProperty(hyphenate(ie),ae.replace(importantRE,""),"important"):$[ie]=ae}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix($,oe){const ae=prefixCache[oe];if(ae)return ae;let ie=camelize(oe);if(ie!=="filter"&&ie in $)return prefixCache[oe]=ie;ie=capitalize$2(ie);for(let le=0;lecachedNow||(p$3.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker($,oe){const ae=ie=>{if(!ie._vts)ie._vts=Date.now();else if(ie._vts<=ae.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(ie,ae.value),oe,5,[ie])};return ae.value=$,ae.attached=getNow(),ae}function patchStopImmediatePropagation($,oe){if(isArray$c(oe)){const ae=$.stopImmediatePropagation;return $.stopImmediatePropagation=()=>{ae.call($),$._stopped=!0},oe.map(ie=>le=>!le._stopped&&ie&&ie(le))}else return oe}const nativeOnRE=/^on[a-z]/,patchProp=($,oe,ae,ie,le=!1,pe,_e,Ce,$e)=>{oe==="class"?patchClass($,ie,le):oe==="style"?patchStyle($,ae,ie):isOn(oe)?isModelListener(oe)||patchEvent($,oe,ae,ie,_e):(oe[0]==="."?(oe=oe.slice(1),!0):oe[0]==="^"?(oe=oe.slice(1),!1):shouldSetAsProp($,oe,ie,le))?patchDOMProp($,oe,ie,pe,_e,Ce,$e):(oe==="true-value"?$._trueValue=ie:oe==="false-value"&&($._falseValue=ie),patchAttr($,oe,ie,le))};function shouldSetAsProp($,oe,ae,ie){return ie?!!(oe==="innerHTML"||oe==="textContent"||oe in $&&nativeOnRE.test(oe)&&isFunction$5(ae)):oe==="spellcheck"||oe==="draggable"||oe==="translate"||oe==="form"||oe==="list"&&$.tagName==="INPUT"||oe==="type"&&$.tagName==="TEXTAREA"||nativeOnRE.test(oe)&&isString$7(ae)?!1:oe in $}function defineCustomElement($,oe){const ae=defineComponent($);class ie extends VueElement{constructor(pe){super(ae,pe,oe)}}return ie.def=ae,ie}const defineSSRCustomElement=$=>defineCustomElement($,hydrate),BaseClass=typeof HTMLElement<"u"?HTMLElement:class{};class VueElement extends BaseClass{constructor(oe,ae={},ie){super(),this._def=oe,this._props=ae,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&ie?ie(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,nextTick(()=>{this._connected||(render$4(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let ie=0;ie{for(const le of ie)this._setAttr(le.attributeName)}).observe(this,{attributes:!0});const oe=(ie,le=!1)=>{const{props:pe,styles:_e}=ie;let Ce;if(pe&&!isArray$c(pe))for(const $e in pe){const xe=pe[$e];(xe===Number||xe&&xe.type===Number)&&($e in this._props&&(this._props[$e]=toNumber$1(this._props[$e])),(Ce||(Ce=Object.create(null)))[camelize($e)]=!0)}this._numberProps=Ce,le&&this._resolveProps(ie),this._applyStyles(_e),this._update()},ae=this._def.__asyncLoader;ae?ae().then(ie=>oe(ie,!0)):oe(this._def)}_resolveProps(oe){const{props:ae}=oe,ie=isArray$c(ae)?ae:Object.keys(ae||{});for(const le of Object.keys(this))le[0]!=="_"&&ie.includes(le)&&this._setProp(le,this[le],!0,!1);for(const le of ie.map(camelize))Object.defineProperty(this,le,{get(){return this._getProp(le)},set(pe){this._setProp(le,pe)}})}_setAttr(oe){let ae=this.getAttribute(oe);const ie=camelize(oe);this._numberProps&&this._numberProps[ie]&&(ae=toNumber$1(ae)),this._setProp(ie,ae,!1)}_getProp(oe){return this._props[oe]}_setProp(oe,ae,ie=!0,le=!0){ae!==this._props[oe]&&(this._props[oe]=ae,le&&this._instance&&this._update(),ie&&(ae===!0?this.setAttribute(hyphenate(oe),""):typeof ae=="string"||typeof ae=="number"?this.setAttribute(hyphenate(oe),ae+""):ae||this.removeAttribute(hyphenate(oe))))}_update(){render$4(this._createVNode(),this.shadowRoot)}_createVNode(){const oe=createVNode(this._def,extend$2({},this._props));return this._instance||(oe.ce=ae=>{this._instance=ae,ae.isCE=!0;const ie=(pe,_e)=>{this.dispatchEvent(new CustomEvent(pe,{detail:_e}))};ae.emit=(pe,..._e)=>{ie(pe,_e),hyphenate(pe)!==pe&&ie(hyphenate(pe),_e)};let le=this;for(;le=le&&(le.parentNode||le.host);)if(le instanceof VueElement){ae.parent=le._instance,ae.provides=le._instance.provides;break}}),oe}_applyStyles(oe){oe&&oe.forEach(ae=>{const ie=document.createElement("style");ie.textContent=ae,this.shadowRoot.appendChild(ie)})}}function useCssModule($="$style"){{const oe=getCurrentInstance();if(!oe)return EMPTY_OBJ$1;const ae=oe.type.__cssModules;if(!ae)return EMPTY_OBJ$1;const ie=ae[$];return ie||EMPTY_OBJ$1}}function useCssVars($){const oe=getCurrentInstance();if(!oe)return;const ae=oe.ut=(le=$(oe.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${oe.uid}"]`)).forEach(pe=>setVarsOnNode(pe,le))},ie=()=>{const le=$(oe.proxy);setVarsOnVNode(oe.subTree,le),ae(le)};watchPostEffect(ie),onMounted(()=>{const le=new MutationObserver(ie);le.observe(oe.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>le.disconnect())})}function setVarsOnVNode($,oe){if($.shapeFlag&128){const ae=$.suspense;$=ae.activeBranch,ae.pendingBranch&&!ae.isHydrating&&ae.effects.push(()=>{setVarsOnVNode(ae.activeBranch,oe)})}for(;$.component;)$=$.component.subTree;if($.shapeFlag&1&&$.el)setVarsOnNode($.el,oe);else if($.type===Fragment)$.children.forEach(ae=>setVarsOnVNode(ae,oe));else if($.type===Static){let{el:ae,anchor:ie}=$;for(;ae&&(setVarsOnNode(ae,oe),ae!==ie);)ae=ae.nextSibling}}function setVarsOnNode($,oe){if($.nodeType===1){const ae=$.style;for(const ie in oe)ae.setProperty(`--${ie}`,oe[ie])}}const TRANSITION="transition",ANIMATION="animation",Transition=($,{slots:oe})=>h$3(BaseTransition,resolveTransitionProps($),oe);Transition.displayName="Transition";const 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=Transition.props=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=($,oe=[])=>{isArray$c($)?$.forEach(ae=>ae(...oe)):$&&$(...oe)},hasExplicitCallback=$=>$?isArray$c($)?$.some(oe=>oe.length>1):$.length>1:!1;function resolveTransitionProps($){const oe={};for(const On in $)On in DOMTransitionPropsValidators||(oe[On]=$[On]);if($.css===!1)return oe;const{name:ae="v",type:ie,duration:le,enterFromClass:pe=`${ae}-enter-from`,enterActiveClass:_e=`${ae}-enter-active`,enterToClass:Ce=`${ae}-enter-to`,appearFromClass:$e=pe,appearActiveClass:xe=_e,appearToClass:Ie=Ce,leaveFromClass:Ne=`${ae}-leave-from`,leaveActiveClass:Fe=`${ae}-leave-active`,leaveToClass:ze=`${ae}-leave-to`}=$,At=normalizeDuration(le),Lt=At&&At[0],hn=At&&At[1],{onBeforeEnter:vn,onEnter:_n,onEnterCancelled:bn,onLeave:Cn,onLeaveCancelled:En,onBeforeAppear:$n=vn,onAppear:wn=_n,onAppearCancelled:Tn=bn}=oe,xn=(On,Nn,Rn)=>{removeTransitionClass(On,Nn?Ie:Ce),removeTransitionClass(On,Nn?xe:_e),Rn&&Rn()},kn=(On,Nn)=>{On._isLeaving=!1,removeTransitionClass(On,Ne),removeTransitionClass(On,ze),removeTransitionClass(On,Fe),Nn&&Nn()},An=On=>(Nn,Rn)=>{const zn=On?wn:_n,Bn=()=>xn(Nn,On,Rn);callHook(zn,[Nn,Bn]),nextFrame(()=>{removeTransitionClass(Nn,On?$e:pe),addTransitionClass(Nn,On?Ie:Ce),hasExplicitCallback(zn)||whenTransitionEnds(Nn,ie,Lt,Bn)})};return extend$2(oe,{onBeforeEnter(On){callHook(vn,[On]),addTransitionClass(On,pe),addTransitionClass(On,_e)},onBeforeAppear(On){callHook($n,[On]),addTransitionClass(On,$e),addTransitionClass(On,xe)},onEnter:An(!1),onAppear:An(!0),onLeave(On,Nn){On._isLeaving=!0;const Rn=()=>kn(On,Nn);addTransitionClass(On,Ne),forceReflow(),addTransitionClass(On,Fe),nextFrame(()=>{On._isLeaving&&(removeTransitionClass(On,Ne),addTransitionClass(On,ze),hasExplicitCallback(Cn)||whenTransitionEnds(On,ie,hn,Rn))}),callHook(Cn,[On,Rn])},onEnterCancelled(On){xn(On,!1),callHook(bn,[On])},onAppearCancelled(On){xn(On,!0),callHook(Tn,[On])},onLeaveCancelled(On){kn(On),callHook(En,[On])}})}function normalizeDuration($){if($==null)return null;if(isObject$8($))return[NumberOf($.enter),NumberOf($.leave)];{const oe=NumberOf($);return[oe,oe]}}function NumberOf($){return toNumber$1($)}function addTransitionClass($,oe){oe.split(/\s+/).forEach(ae=>ae&&$.classList.add(ae)),($._vtc||($._vtc=new Set)).add(oe)}function removeTransitionClass($,oe){oe.split(/\s+/).forEach(ie=>ie&&$.classList.remove(ie));const{_vtc:ae}=$;ae&&(ae.delete(oe),ae.size||($._vtc=void 0))}function nextFrame($){requestAnimationFrame(()=>{requestAnimationFrame($)})}let endId=0;function whenTransitionEnds($,oe,ae,ie){const le=$._endId=++endId,pe=()=>{le===$._endId&&ie()};if(ae)return setTimeout(pe,ae);const{type:_e,timeout:Ce,propCount:$e}=getTransitionInfo($,oe);if(!_e)return ie();const xe=_e+"end";let Ie=0;const Ne=()=>{$.removeEventListener(xe,Fe),pe()},Fe=ze=>{ze.target===$&&++Ie>=$e&&Ne()};setTimeout(()=>{Ie<$e&&Ne()},Ce+1),$.addEventListener(xe,Fe)}function getTransitionInfo($,oe){const ae=window.getComputedStyle($),ie=At=>(ae[At]||"").split(", "),le=ie(`${TRANSITION}Delay`),pe=ie(`${TRANSITION}Duration`),_e=getTimeout(le,pe),Ce=ie(`${ANIMATION}Delay`),$e=ie(`${ANIMATION}Duration`),xe=getTimeout(Ce,$e);let Ie=null,Ne=0,Fe=0;oe===TRANSITION?_e>0&&(Ie=TRANSITION,Ne=_e,Fe=pe.length):oe===ANIMATION?xe>0&&(Ie=ANIMATION,Ne=xe,Fe=$e.length):(Ne=Math.max(_e,xe),Ie=Ne>0?_e>xe?TRANSITION:ANIMATION:null,Fe=Ie?Ie===TRANSITION?pe.length:$e.length:0);const ze=Ie===TRANSITION&&/\b(transform|all)(,|$)/.test(ie(`${TRANSITION}Property`).toString());return{type:Ie,timeout:Ne,propCount:Fe,hasTransform:ze}}function getTimeout($,oe){for(;$.lengthtoMs(ae)+toMs($[ie])))}function toMs($){return Number($.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$2({},TransitionPropsValidators,{tag:String,moveClass:String}),setup($,{slots:oe}){const ae=getCurrentInstance(),ie=useTransitionState();let le,pe;return onUpdated(()=>{if(!le.length)return;const _e=$.moveClass||`${$.name||"v"}-move`;if(!hasCSSTransform(le[0].el,ae.vnode.el,_e))return;le.forEach(callPendingCbs),le.forEach(recordPosition);const Ce=le.filter(applyTranslation);forceReflow(),Ce.forEach($e=>{const xe=$e.el,Ie=xe.style;addTransitionClass(xe,_e),Ie.transform=Ie.webkitTransform=Ie.transitionDuration="";const Ne=xe._moveCb=Fe=>{Fe&&Fe.target!==xe||(!Fe||/transform$/.test(Fe.propertyName))&&(xe.removeEventListener("transitionend",Ne),xe._moveCb=null,removeTransitionClass(xe,_e))};xe.addEventListener("transitionend",Ne)})}),()=>{const _e=toRaw($),Ce=resolveTransitionProps(_e);let $e=_e.tag||Fragment;le=pe,pe=oe.default?getTransitionRawChildren(oe.default()):[];for(let xe=0;xedelete $.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs($){const oe=$.el;oe._moveCb&&oe._moveCb(),oe._enterCb&&oe._enterCb()}function recordPosition($){newPositionMap.set($,$.el.getBoundingClientRect())}function applyTranslation($){const oe=positionMap.get($),ae=newPositionMap.get($),ie=oe.left-ae.left,le=oe.top-ae.top;if(ie||le){const pe=$.el.style;return pe.transform=pe.webkitTransform=`translate(${ie}px,${le}px)`,pe.transitionDuration="0s",$}}function hasCSSTransform($,oe,ae){const ie=$.cloneNode();$._vtc&&$._vtc.forEach(_e=>{_e.split(/\s+/).forEach(Ce=>Ce&&ie.classList.remove(Ce))}),ae.split(/\s+/).forEach(_e=>_e&&ie.classList.add(_e)),ie.style.display="none";const le=oe.nodeType===1?oe:oe.parentNode;le.appendChild(ie);const{hasTransform:pe}=getTransitionInfo(ie);return le.removeChild(ie),pe}const getModelAssigner=$=>{const oe=$.props["onUpdate:modelValue"]||!1;return isArray$c(oe)?ae=>invokeArrayFns(oe,ae):oe};function onCompositionStart($){$.target.composing=!0}function onCompositionEnd($){const oe=$.target;oe.composing&&(oe.composing=!1,oe.dispatchEvent(new Event("input")))}const vModelText={created($,{modifiers:{lazy:oe,trim:ae,number:ie}},le){$._assign=getModelAssigner(le);const pe=ie||le.props&&le.props.type==="number";addEventListener$1($,oe?"change":"input",_e=>{if(_e.target.composing)return;let Ce=$.value;ae&&(Ce=Ce.trim()),pe&&(Ce=looseToNumber(Ce)),$._assign(Ce)}),ae&&addEventListener$1($,"change",()=>{$.value=$.value.trim()}),oe||(addEventListener$1($,"compositionstart",onCompositionStart),addEventListener$1($,"compositionend",onCompositionEnd),addEventListener$1($,"change",onCompositionEnd))},mounted($,{value:oe}){$.value=oe??""},beforeUpdate($,{value:oe,modifiers:{lazy:ae,trim:ie,number:le}},pe){if($._assign=getModelAssigner(pe),$.composing||document.activeElement===$&&$.type!=="range"&&(ae||ie&&$.value.trim()===oe||(le||$.type==="number")&&looseToNumber($.value)===oe))return;const _e=oe??"";$.value!==_e&&($.value=_e)}},vModelCheckbox={deep:!0,created($,oe,ae){$._assign=getModelAssigner(ae),addEventListener$1($,"change",()=>{const ie=$._modelValue,le=getValue$2($),pe=$.checked,_e=$._assign;if(isArray$c(ie)){const Ce=looseIndexOf(ie,le),$e=Ce!==-1;if(pe&&!$e)_e(ie.concat(le));else if(!pe&&$e){const xe=[...ie];xe.splice(Ce,1),_e(xe)}}else if(isSet$3(ie)){const Ce=new Set(ie);pe?Ce.add(le):Ce.delete(le),_e(Ce)}else _e(getCheckboxValue($,pe))})},mounted:setChecked,beforeUpdate($,oe,ae){$._assign=getModelAssigner(ae),setChecked($,oe,ae)}};function setChecked($,{value:oe,oldValue:ae},ie){$._modelValue=oe,isArray$c(oe)?$.checked=looseIndexOf(oe,ie.props.value)>-1:isSet$3(oe)?$.checked=oe.has(ie.props.value):oe!==ae&&($.checked=looseEqual(oe,getCheckboxValue($,!0)))}const vModelRadio={created($,{value:oe},ae){$.checked=looseEqual(oe,ae.props.value),$._assign=getModelAssigner(ae),addEventListener$1($,"change",()=>{$._assign(getValue$2($))})},beforeUpdate($,{value:oe,oldValue:ae},ie){$._assign=getModelAssigner(ie),oe!==ae&&($.checked=looseEqual(oe,ie.props.value))}},vModelSelect={deep:!0,created($,{value:oe,modifiers:{number:ae}},ie){const le=isSet$3(oe);addEventListener$1($,"change",()=>{const pe=Array.prototype.filter.call($.options,_e=>_e.selected).map(_e=>ae?looseToNumber(getValue$2(_e)):getValue$2(_e));$._assign($.multiple?le?new Set(pe):pe:pe[0])}),$._assign=getModelAssigner(ie)},mounted($,{value:oe}){setSelected($,oe)},beforeUpdate($,oe,ae){$._assign=getModelAssigner(ae)},updated($,{value:oe}){setSelected($,oe)}};function setSelected($,oe){const ae=$.multiple;if(!(ae&&!isArray$c(oe)&&!isSet$3(oe))){for(let ie=0,le=$.options.length;ie-1:pe.selected=oe.has(_e);else if(looseEqual(getValue$2(pe),oe)){$.selectedIndex!==ie&&($.selectedIndex=ie);return}}!ae&&$.selectedIndex!==-1&&($.selectedIndex=-1)}}function getValue$2($){return"_value"in $?$._value:$.value}function getCheckboxValue($,oe){const ae=oe?"_trueValue":"_falseValue";return ae in $?$[ae]:oe}const vModelDynamic={created($,oe,ae){callModelHook($,oe,ae,null,"created")},mounted($,oe,ae){callModelHook($,oe,ae,null,"mounted")},beforeUpdate($,oe,ae,ie){callModelHook($,oe,ae,ie,"beforeUpdate")},updated($,oe,ae,ie){callModelHook($,oe,ae,ie,"updated")}};function resolveDynamicModel($,oe){switch($){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(oe){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook($,oe,ae,ie,le){const _e=resolveDynamicModel($.tagName,ae.props&&ae.props.type)[le];_e&&_e($,oe,ae,ie)}function initVModelForSSR(){vModelText.getSSRProps=({value:$})=>({value:$}),vModelRadio.getSSRProps=({value:$},oe)=>{if(oe.props&&looseEqual(oe.props.value,$))return{checked:!0}},vModelCheckbox.getSSRProps=({value:$},oe)=>{if(isArray$c($)){if(oe.props&&looseIndexOf($,oe.props.value)>-1)return{checked:!0}}else if(isSet$3($)){if(oe.props&&$.has(oe.props.value))return{checked:!0}}else if($)return{checked:!0}},vModelDynamic.getSSRProps=($,oe)=>{if(typeof oe.type!="string")return;const ae=resolveDynamicModel(oe.type.toUpperCase(),oe.props&&oe.props.type);if(ae.getSSRProps)return ae.getSSRProps($,oe)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:$=>$.stopPropagation(),prevent:$=>$.preventDefault(),self:$=>$.target!==$.currentTarget,ctrl:$=>!$.ctrlKey,shift:$=>!$.shiftKey,alt:$=>!$.altKey,meta:$=>!$.metaKey,left:$=>"button"in $&&$.button!==0,middle:$=>"button"in $&&$.button!==1,right:$=>"button"in $&&$.button!==2,exact:($,oe)=>systemModifiers.some(ae=>$[`${ae}Key`]&&!oe.includes(ae))},withModifiers=($,oe)=>(ae,...ie)=>{for(let le=0;leae=>{if(!("key"in ae))return;const ie=hyphenate(ae.key);if(oe.some(le=>le===ie||keyNames[le]===ie))return $(ae)},vShow={beforeMount($,{value:oe},{transition:ae}){$._vod=$.style.display==="none"?"":$.style.display,ae&&oe?ae.beforeEnter($):setDisplay($,oe)},mounted($,{value:oe},{transition:ae}){ae&&oe&&ae.enter($)},updated($,{value:oe,oldValue:ae},{transition:ie}){!oe!=!ae&&(ie?oe?(ie.beforeEnter($),setDisplay($,!0),ie.enter($)):ie.leave($,()=>{setDisplay($,!1)}):setDisplay($,oe))},beforeUnmount($,{value:oe}){setDisplay($,oe)}};function setDisplay($,oe){$.style.display=oe?$._vod:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:$})=>{if(!$)return{style:{display:"none"}}}}const rendererOptions=extend$2({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render$4=(...$)=>{ensureRenderer().render(...$)},hydrate=(...$)=>{ensureHydrationRenderer().hydrate(...$)},createApp=(...$)=>{const oe=ensureRenderer().createApp(...$),{mount:ae}=oe;return oe.mount=ie=>{const le=normalizeContainer(ie);if(!le)return;const pe=oe._component;!isFunction$5(pe)&&!pe.render&&!pe.template&&(pe.template=le.innerHTML),le.innerHTML="";const _e=ae(le,!1,le instanceof SVGElement);return le instanceof Element&&(le.removeAttribute("v-cloak"),le.setAttribute("data-v-app","")),_e},oe},createSSRApp=(...$)=>{const oe=ensureHydrationRenderer().createApp(...$),{mount:ae}=oe;return oe.mount=ie=>{const le=normalizeContainer(ie);if(le)return ae(le,!0,le instanceof SVGElement)},oe};function normalizeContainer($){return isString$7($)?document.querySelector($):$}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())},compile=()=>{},vue_runtime_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition,BaseTransitionPropsValidators,Comment,EffectScope,Fragment,KeepAlive,ReactiveEffect,Static,Suspense,Teleport,Text:Text$1,Transition,TransitionGroup,VueElement,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,camelize,capitalize:capitalize$2,cloneVNode,compatUtils,compile,computed,createApp,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSSRApp,createSlots,createStaticVNode,createTextVNode,createVNode,customRef,defineAsyncComponent,defineComponent,defineCustomElement,defineEmits,defineExpose,defineModel,defineOptions,defineProps,defineSSRCustomElement,defineSlots,get devtools(){return devtools},effect,effectScope,getCurrentInstance,getCurrentScope,getTransitionRawChildren,guardReactiveProps,h:h$3,handleError,hasInjectionContext,hydrate,initCustomFormatter,initDirectivesForSSR,inject,isMemoSame,isProxy,isReactive,isReadonly,isRef,isRuntimeOnly,isShallow,isVNode:isVNode$1,markRaw,mergeDefaults,mergeModels,mergeProps,nextTick,normalizeClass,normalizeProps,normalizeStyle:normalizeStyle$1,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onScopeDispose,onServerPrefetch,onUnmounted,onUpdated,openBlock,popScopeId,provide,proxyRefs,pushScopeId,queuePostFlushCb,reactive,readonly,ref,registerRuntimeCompiler,render:render$4,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,shallowReactive,shallowReadonly,shallowRef,ssrContextKey,ssrUtils,stop:stop$1,toDisplayString:toDisplayString$1,toHandlerKey,toHandlers,toRaw,toRef:toRef$1,toRefs,toValue:toValue$1,transformVNodeArgs,triggerRef,unref,useAttrs:useAttrs$1,useCssModule,useCssVars,useModel,useSSRContext,useSlots,useTransitionState,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,version:version$3,warn:warn$2,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withKeys,withMemo,withModifiers,withScopeId},Symbol.toStringTag,{value:"Module"})),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])',isVisible=$=>getComputedStyle($).position==="fixed"?!1:$.offsetParent!==null,obtainAllFocusableElements$1=$=>Array.from($.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter(oe=>isFocusable(oe)&&isVisible(oe)),isFocusable=$=>{if($.tabIndex>0||$.tabIndex===0&&$.getAttribute("tabIndex")!==null)return!0;if($.disabled)return!1;switch($.nodeName){case"A":return!!$.href&&$.rel!=="ignore";case"INPUT":return!($.type==="hidden"||$.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},triggerEvent=function($,oe,...ae){let ie;oe.includes("mouse")||oe.includes("click")?ie="MouseEvents":oe.includes("key")?ie="KeyboardEvent":ie="HTMLEvents";const le=document.createEvent(ie);return le.initEvent(oe,...ae),$.dispatchEvent(le),$},isLeaf=$=>!$.getAttribute("aria-owns"),getSibling=($,oe,ae)=>{const{parentNode:ie}=$;if(!ie)return null;const le=ie.querySelectorAll(ae),pe=Array.prototype.indexOf.call(le,$);return le[pe+oe]||null},focusNode=$=>{$&&($.focus(),!isLeaf($)&&$.click())},composeEventHandlers=($,oe,{checkForDefaultPrevented:ae=!0}={})=>le=>{const pe=$==null?void 0:$(le);if(ae===!1||!pe)return oe==null?void 0:oe(le)},whenMouse=$=>oe=>oe.pointerType==="mouse"?$(oe):void 0;var isVue2=!1;function set$3($,oe,ae){return Array.isArray($)?($.length=Math.max($.length,oe),$.splice(oe,1,ae),ae):($[oe]=ae,ae)}function del($,oe){if(Array.isArray($)){$.splice(oe,1);return}delete $[oe]}var __defProp$9=Object.defineProperty,__defProps$6=Object.defineProperties,__getOwnPropDescs$6=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$b=Object.getOwnPropertySymbols,__hasOwnProp$b=Object.prototype.hasOwnProperty,__propIsEnum$b=Object.prototype.propertyIsEnumerable,__defNormalProp$9=($,oe,ae)=>oe in $?__defProp$9($,oe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):$[oe]=ae,__spreadValues$9=($,oe)=>{for(var ae in oe||(oe={}))__hasOwnProp$b.call(oe,ae)&&__defNormalProp$9($,ae,oe[ae]);if(__getOwnPropSymbols$b)for(var ae of __getOwnPropSymbols$b(oe))__propIsEnum$b.call(oe,ae)&&__defNormalProp$9($,ae,oe[ae]);return $},__spreadProps$6=($,oe)=>__defProps$6($,__getOwnPropDescs$6(oe));function computedEager($,oe){var ae;const ie=shallowRef();return watchEffect(()=>{ie.value=$()},__spreadProps$6(__spreadValues$9({},oe),{flush:(ae=oe==null?void 0:oe.flush)!=null?ae:"sync"})),readonly(ie)}var _a$2;const isClient$2=typeof window<"u",isDef=$=>typeof $<"u",isFunction$4=$=>typeof $=="function",isString$6=$=>typeof $=="string",noop$7=()=>{},isIOS$1=isClient$2&&((_a$2=window==null?void 0:window.navigator)==null?void 0:_a$2.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref($){return typeof $=="function"?$():unref($)}function createFilterWrapper$1($,oe){function ae(...ie){return new Promise((le,pe)=>{Promise.resolve($(()=>oe.apply(this,ie),{fn:oe,thisArg:this,args:ie})).then(le).catch(pe)})}return ae}function debounceFilter$1($,oe={}){let ae,ie,le=noop$7;const pe=Ce=>{clearTimeout(Ce),le(),le=noop$7};return Ce=>{const $e=resolveUnref($),xe=resolveUnref(oe.maxWait);return ae&&pe(ae),$e<=0||xe!==void 0&&xe<=0?(ie&&(pe(ie),ie=null),Promise.resolve(Ce())):new Promise((Ie,Ne)=>{le=oe.rejectOnCancel?Ne:Ie,xe&&!ie&&(ie=setTimeout(()=>{ae&&pe(ae),ie=null,Ie(Ce())},xe)),ae=setTimeout(()=>{ie&&pe(ie),ie=null,Ie(Ce())},$e)})}}function throttleFilter($,oe=!0,ae=!0,ie=!1){let le=0,pe,_e=!0,Ce=noop$7,$e;const xe=()=>{pe&&(clearTimeout(pe),pe=void 0,Ce(),Ce=noop$7)};return Ne=>{const Fe=resolveUnref($),ze=Date.now()-le,At=()=>$e=Ne();return xe(),Fe<=0?(le=Date.now(),At()):(ze>Fe&&(ae||!_e)?(le=Date.now(),At()):oe&&($e=new Promise((Lt,hn)=>{Ce=ie?hn:Lt,pe=setTimeout(()=>{le=Date.now(),_e=!0,Lt(At()),xe()},Math.max(0,Fe-ze))})),!ae&&!pe&&(pe=setTimeout(()=>_e=!0,Fe)),_e=!1,$e)}}function identity$2($){return $}function tryOnScopeDispose$2($){return getCurrentScope()?(onScopeDispose($),!0):!1}function useDebounceFn$1($,oe=200,ae={}){return createFilterWrapper$1(debounceFilter$1(oe,ae),$)}function refDebounced($,oe=200,ae={}){const ie=ref($.value),le=useDebounceFn$1(()=>{ie.value=$.value},oe,ae);return watch($,()=>le()),ie}function useThrottleFn($,oe=200,ae=!1,ie=!0,le=!1){return createFilterWrapper$1(throttleFilter(oe,ae,ie,le),$)}function tryOnMounted$1($,oe=!0){getCurrentInstance()?onMounted($):oe?$():nextTick($)}function useTimeoutFn$1($,oe,ae={}){const{immediate:ie=!0}=ae,le=ref(!1);let pe=null;function _e(){pe&&(clearTimeout(pe),pe=null)}function Ce(){le.value=!1,_e()}function $e(...xe){_e(),le.value=!0,pe=setTimeout(()=>{le.value=!1,pe=null,$(...xe)},resolveUnref(oe))}return ie&&(le.value=!0,isClient$2&&$e()),tryOnScopeDispose$2(Ce),{isPending:readonly(le),start:$e,stop:Ce}}function unrefElement$1($){var oe;const ae=resolveUnref($);return(oe=ae==null?void 0:ae.$el)!=null?oe:ae}const defaultWindow$1=isClient$2?window:void 0,defaultDocument=isClient$2?window.document:void 0;function useEventListener$1(...$){let oe,ae,ie,le;if(isString$6($[0])||Array.isArray($[0])?([ae,ie,le]=$,oe=defaultWindow$1):[oe,ae,ie,le]=$,!oe)return noop$7;Array.isArray(ae)||(ae=[ae]),Array.isArray(ie)||(ie=[ie]);const pe=[],_e=()=>{pe.forEach(Ie=>Ie()),pe.length=0},Ce=(Ie,Ne,Fe,ze)=>(Ie.addEventListener(Ne,Fe,ze),()=>Ie.removeEventListener(Ne,Fe,ze)),$e=watch(()=>[unrefElement$1(oe),resolveUnref(le)],([Ie,Ne])=>{_e(),Ie&&pe.push(...ae.flatMap(Fe=>ie.map(ze=>Ce(Ie,Fe,ze,Ne))))},{immediate:!0,flush:"post"}),xe=()=>{$e(),_e()};return tryOnScopeDispose$2(xe),xe}let _iOSWorkaround=!1;function onClickOutside($,oe,ae={}){const{window:ie=defaultWindow$1,ignore:le=[],capture:pe=!0,detectIframe:_e=!1}=ae;if(!ie)return;isIOS$1&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(ie.document.body.children).forEach(Fe=>Fe.addEventListener("click",noop$7)));let Ce=!0;const $e=Fe=>le.some(ze=>{if(typeof ze=="string")return Array.from(ie.document.querySelectorAll(ze)).some(At=>At===Fe.target||Fe.composedPath().includes(At));{const At=unrefElement$1(ze);return At&&(Fe.target===At||Fe.composedPath().includes(At))}}),Ie=[useEventListener$1(ie,"click",Fe=>{const ze=unrefElement$1($);if(!(!ze||ze===Fe.target||Fe.composedPath().includes(ze))){if(Fe.detail===0&&(Ce=!$e(Fe)),!Ce){Ce=!0;return}oe(Fe)}},{passive:!0,capture:pe}),useEventListener$1(ie,"pointerdown",Fe=>{const ze=unrefElement$1($);ze&&(Ce=!Fe.composedPath().includes(ze)&&!$e(Fe))},{passive:!0}),_e&&useEventListener$1(ie,"blur",Fe=>{var ze;const At=unrefElement$1($);((ze=ie.document.activeElement)==null?void 0:ze.tagName)==="IFRAME"&&!(At!=null&&At.contains(ie.document.activeElement))&&oe(Fe)})].filter(Boolean);return()=>Ie.forEach(Fe=>Fe())}function useSupported($,oe=!1){const ae=ref(),ie=()=>ae.value=!!$();return ie(),tryOnMounted$1(ie,oe),ae}function cloneFnJSON($){return JSON.parse(JSON.stringify($))}const _global$2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey$1="__vueuse_ssr_handlers__";_global$2[globalKey$1]=_global$2[globalKey$1]||{};function useCssVar($,oe,{window:ae=defaultWindow$1,initialValue:ie=""}={}){const le=ref(ie),pe=computed(()=>{var _e;return unrefElement$1(oe)||((_e=ae==null?void 0:ae.document)==null?void 0:_e.documentElement)});return watch([pe,()=>resolveUnref($)],([_e,Ce])=>{var $e;if(_e&&ae){const xe=($e=ae.getComputedStyle(_e).getPropertyValue(Ce))==null?void 0:$e.trim();le.value=xe||ie}},{immediate:!0}),watch(le,_e=>{var Ce;(Ce=pe.value)!=null&&Ce.style&&pe.value.style.setProperty(resolveUnref($),_e)}),le}function useDocumentVisibility({document:$=defaultDocument}={}){if(!$)return ref("visible");const oe=ref($.visibilityState);return useEventListener$1($,"visibilitychange",()=>{oe.value=$.visibilityState}),oe}var __getOwnPropSymbols$g=Object.getOwnPropertySymbols,__hasOwnProp$g=Object.prototype.hasOwnProperty,__propIsEnum$g=Object.prototype.propertyIsEnumerable,__objRest$2=($,oe)=>{var ae={};for(var ie in $)__hasOwnProp$g.call($,ie)&&oe.indexOf(ie)<0&&(ae[ie]=$[ie]);if($!=null&&__getOwnPropSymbols$g)for(var ie of __getOwnPropSymbols$g($))oe.indexOf(ie)<0&&__propIsEnum$g.call($,ie)&&(ae[ie]=$[ie]);return ae};function useResizeObserver($,oe,ae={}){const ie=ae,{window:le=defaultWindow$1}=ie,pe=__objRest$2(ie,["window"]);let _e;const Ce=useSupported(()=>le&&"ResizeObserver"in le),$e=()=>{_e&&(_e.disconnect(),_e=void 0)},xe=watch(()=>unrefElement$1($),Ne=>{$e(),Ce.value&&le&&Ne&&(_e=new ResizeObserver(oe),_e.observe(Ne,pe))},{immediate:!0,flush:"post"}),Ie=()=>{$e(),xe()};return tryOnScopeDispose$2(Ie),{isSupported:Ce,stop:Ie}}function useElementBounding($,oe={}){const{reset:ae=!0,windowResize:ie=!0,windowScroll:le=!0,immediate:pe=!0}=oe,_e=ref(0),Ce=ref(0),$e=ref(0),xe=ref(0),Ie=ref(0),Ne=ref(0),Fe=ref(0),ze=ref(0);function At(){const Lt=unrefElement$1($);if(!Lt){ae&&(_e.value=0,Ce.value=0,$e.value=0,xe.value=0,Ie.value=0,Ne.value=0,Fe.value=0,ze.value=0);return}const hn=Lt.getBoundingClientRect();_e.value=hn.height,Ce.value=hn.bottom,$e.value=hn.left,xe.value=hn.right,Ie.value=hn.top,Ne.value=hn.width,Fe.value=hn.x,ze.value=hn.y}return useResizeObserver($,At),watch(()=>unrefElement$1($),Lt=>!Lt&&At()),le&&useEventListener$1("scroll",At,{capture:!0,passive:!0}),ie&&useEventListener$1("resize",At,{passive:!0}),tryOnMounted$1(()=>{pe&&At()}),{height:_e,bottom:Ce,left:$e,right:xe,top:Ie,width:Ne,x:Fe,y:ze,update:At}}var SwipeDirection$1;(function($){$.UP="UP",$.RIGHT="RIGHT",$.DOWN="DOWN",$.LEFT="LEFT",$.NONE="NONE"})(SwipeDirection$1||(SwipeDirection$1={}));var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=($,oe,ae)=>oe in $?__defProp($,oe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):$[oe]=ae,__spreadValues=($,oe)=>{for(var ae in oe||(oe={}))__hasOwnProp.call(oe,ae)&&__defNormalProp($,ae,oe[ae]);if(__getOwnPropSymbols)for(var ae of __getOwnPropSymbols(oe))__propIsEnum.call(oe,ae)&&__defNormalProp($,ae,oe[ae]);return $};const _TransitionPresets={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues({linear:identity$2},_TransitionPresets);function useVModel($,oe,ae,ie={}){var le,pe,_e;const{clone:Ce=!1,passive:$e=!1,eventName:xe,deep:Ie=!1,defaultValue:Ne}=ie,Fe=getCurrentInstance(),ze=ae||(Fe==null?void 0:Fe.emit)||((le=Fe==null?void 0:Fe.$emit)==null?void 0:le.bind(Fe))||((_e=(pe=Fe==null?void 0:Fe.proxy)==null?void 0:pe.$emit)==null?void 0:_e.bind(Fe==null?void 0:Fe.proxy));let At=xe;oe||(oe="modelValue"),At=xe||At||`update:${oe.toString()}`;const Lt=vn=>Ce?isFunction$4(Ce)?Ce(vn):cloneFnJSON(vn):vn,hn=()=>isDef($[oe])?Lt($[oe]):Ne;if($e){const vn=hn(),_n=ref(vn);return watch(()=>$[oe],bn=>_n.value=Lt(bn)),watch(_n,bn=>{(bn!==$[oe]||Ie)&&ze(At,bn)},{deep:Ie}),_n}else return computed({get(){return hn()},set(vn){ze(At,vn)}})}function useWindowFocus({window:$=defaultWindow$1}={}){if(!$)return ref(!1);const oe=ref($.document.hasFocus());return useEventListener$1($,"blur",()=>{oe.value=!1}),useEventListener$1($,"focus",()=>{oe.value=!0}),oe}function useWindowSize($={}){const{window:oe=defaultWindow$1,initialWidth:ae=1/0,initialHeight:ie=1/0,listenOrientation:le=!0,includeScrollbar:pe=!0}=$,_e=ref(ae),Ce=ref(ie),$e=()=>{oe&&(pe?(_e.value=oe.innerWidth,Ce.value=oe.innerHeight):(_e.value=oe.document.documentElement.clientWidth,Ce.value=oe.document.documentElement.clientHeight))};return $e(),tryOnMounted$1($e),useEventListener$1("resize",$e,{passive:!0}),le&&useEventListener$1("orientationchange",$e,{passive:!0}),{width:_e,height:Ce}}const isFirefox=()=>isClient$2&&/firefox/i.test(window.navigator.userAgent),isInContainer=($,oe)=>{if(!isClient$2||!$||!oe)return!1;const ae=$.getBoundingClientRect();let ie;return oe instanceof Element?ie=oe.getBoundingClientRect():ie={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},ae.topie.top&&ae.right>ie.left&&ae.left{let oe=0,ae=$;for(;ae;)oe+=ae.offsetTop,ae=ae.offsetParent;return oe},getOffsetTopDistance=($,oe)=>Math.abs(getOffsetTop($)-getOffsetTop(oe)),getClientXY=$=>{let oe,ae;return $.type==="touchend"?(ae=$.changedTouches[0].clientY,oe=$.changedTouches[0].clientX):$.type.startsWith("touch")?(ae=$.touches[0].clientY,oe=$.touches[0].clientX):(ae=$.clientY,oe=$.clientX),{clientX:oe,clientY:ae}};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$2=root$1.Symbol;const Symbol$3=Symbol$2;var objectProto$f=Object.prototype,hasOwnProperty$e=objectProto$f.hasOwnProperty,nativeObjectToString$1=objectProto$f.toString,symToStringTag$1=Symbol$3?Symbol$3.toStringTag:void 0;function getRawTag($){var oe=hasOwnProperty$e.call($,symToStringTag$1),ae=$[symToStringTag$1];try{$[symToStringTag$1]=void 0;var ie=!0}catch{}var le=nativeObjectToString$1.call($);return ie&&(oe?$[symToStringTag$1]=ae:delete $[symToStringTag$1]),le}var objectProto$e=Object.prototype,nativeObjectToString=objectProto$e.toString;function objectToString$2($){return nativeObjectToString.call($)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag($){return $==null?$===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object($)?getRawTag($):objectToString$2($)}function isObjectLike($){return $!=null&&typeof $=="object"}var symbolTag$3="[object Symbol]";function isSymbol$1($){return typeof $=="symbol"||isObjectLike($)&&baseGetTag($)==symbolTag$3}function arrayMap($,oe){for(var ae=-1,ie=$==null?0:$.length,le=Array(ie);++ae0){if(++oe>=HOT_COUNT)return arguments[0]}else oe=0;return $.apply(void 0,arguments)}}function constant($){return function(){return $}}var defineProperty=function(){try{var $=getNative(Object,"defineProperty");return $({},"",{}),$}catch{}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function($,oe){return defineProperty$1($,"toString",{configurable:!0,enumerable:!1,value:constant(oe),writable:!0})}:identity$1;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach($,oe){for(var ae=-1,ie=$==null?0:$.length;++ae-1}var MAX_SAFE_INTEGER$2=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex($,oe){var ae=typeof $;return oe=oe??MAX_SAFE_INTEGER$2,!!oe&&(ae=="number"||ae!="symbol"&&reIsUint.test($))&&$>-1&&$%1==0&&$-1&&$%1==0&&$<=MAX_SAFE_INTEGER$1}function isArrayLike$1($){return $!=null&&isLength($.length)&&!isFunction$3($)}function isIterateeCall($,oe,ae){if(!isObject$7(ae))return!1;var ie=typeof oe;return(ie=="number"?isArrayLike$1(ae)&&isIndex(oe,ae.length):ie=="string"&&oe in ae)?eq(ae[oe],$):!1}function createAssigner($){return baseRest(function(oe,ae){var ie=-1,le=ae.length,pe=le>1?ae[le-1]:void 0,_e=le>2?ae[2]:void 0;for(pe=$.length>3&&typeof pe=="function"?(le--,pe):void 0,_e&&isIterateeCall(ae[0],ae[1],_e)&&(pe=le<3?void 0:pe,le=1),oe=Object(oe);++ie-1}function listCacheSet$1($,oe){var ae=this.__data__,ie=assocIndexOf(ae,$);return ie<0?(++this.size,ae.push([$,oe])):ae[ie][1]=oe,this}function ListCache($){var oe=-1,ae=$==null?0:$.length;for(this.clear();++oe0&&ae(Ce)?oe>1?baseFlatten(Ce,oe-1,ae,ie,le):arrayPush(le,Ce):ie||(le[le.length]=Ce)}return le}function flatten($){var oe=$==null?0:$.length;return oe?baseFlatten($,1):[]}function flatRest($){return setToString$1(overRest($,void 0,flatten),$+"")}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$4=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$5=objectProto$4.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$3($){if(!isObjectLike($)||baseGetTag($)!=objectTag$3)return!1;var oe=getPrototype$1($);if(oe===null)return!0;var ae=hasOwnProperty$5.call(oe,"constructor")&&oe.constructor;return typeof ae=="function"&&ae instanceof ae&&funcToString.call(ae)==objectCtorString}function castArray$1(){if(!arguments.length)return[];var $=arguments[0];return isArray$b($)?$:[$]}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete($){var oe=this.__data__,ae=oe.delete($);return this.size=oe.size,ae}function stackGet($){return this.__data__.get($)}function stackHas($){return this.__data__.has($)}var LARGE_ARRAY_SIZE$1=200;function stackSet($,oe){var ae=this.__data__;if(ae instanceof ListCache){var ie=ae.__data__;if(!Map$2||ie.lengthCe))return!1;var xe=pe.get($),Ie=pe.get(oe);if(xe&&Ie)return xe==oe&&Ie==$;var Ne=-1,Fe=!0,ze=ae&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(pe.set($,oe),pe.set(oe,$);++Ne=oe||wn<0||Ne&&Tn>=pe}function vn(){var $n=now$1();if(hn($n))return _n($n);Ce=setTimeout(vn,Lt($n))}function _n($n){return Ce=void 0,Fe&&ie?ze($n):(ie=le=void 0,_e)}function bn(){Ce!==void 0&&clearTimeout(Ce),xe=0,ie=$e=le=Ce=void 0}function Cn(){return Ce===void 0?_e:_n(now$1())}function En(){var $n=now$1(),wn=hn($n);if(ie=arguments,le=this,$e=$n,wn){if(Ce===void 0)return At($e);if(Ne)return clearTimeout(Ce),Ce=setTimeout(vn,oe),ze($e)}return Ce===void 0&&(Ce=setTimeout(vn,oe)),_e}return En.cancel=bn,En.flush=Cn,En}function assignMergeValue($,oe,ae){(ae!==void 0&&!eq($[oe],ae)||ae===void 0&&!(oe in $))&&baseAssignValue($,oe,ae)}function isArrayLikeObject($){return isObjectLike($)&&isArrayLike$1($)}function safeGet($,oe){if(!(oe==="constructor"&&typeof $[oe]=="function")&&oe!="__proto__")return $[oe]}function toPlainObject($){return copyObject($,keysIn($))}function baseMergeDeep($,oe,ae,ie,le,pe,_e){var Ce=safeGet($,ae),$e=safeGet(oe,ae),xe=_e.get($e);if(xe){assignMergeValue($,ae,xe);return}var Ie=pe?pe(Ce,$e,ae+"",$,oe,_e):void 0,Ne=Ie===void 0;if(Ne){var Fe=isArray$b($e),ze=!Fe&&isBuffer$3($e),At=!Fe&&!ze&&isTypedArray$3($e);Ie=$e,Fe||ze||At?isArray$b(Ce)?Ie=Ce:isArrayLikeObject(Ce)?Ie=copyArray(Ce):ze?(Ne=!1,Ie=cloneBuffer($e,!0)):At?(Ne=!1,Ie=cloneTypedArray($e,!0)):Ie=[]:isPlainObject$3($e)||isArguments$1($e)?(Ie=Ce,isArguments$1(Ce)?Ie=toPlainObject(Ce):(!isObject$7(Ce)||isFunction$3(Ce))&&(Ie=initCloneObject($e))):Ne=!1}Ne&&(_e.set($e,Ie),le(Ie,$e,ie,pe,_e),_e.delete($e)),assignMergeValue($,ae,Ie)}function baseMerge($,oe,ae,ie,le){$!==oe&&baseFor$1(oe,function(pe,_e){if(le||(le=new Stack),isObject$7(pe))baseMergeDeep($,oe,_e,ae,baseMerge,ie,le);else{var Ce=ie?ie(safeGet($,_e),pe,_e+"",$,oe,le):void 0;Ce===void 0&&(Ce=pe),assignMergeValue($,_e,Ce)}},keysIn)}function arrayIncludesWith($,oe,ae){for(var ie=-1,le=$==null?0:$.length;++ie=LARGE_ARRAY_SIZE){var xe=oe?null:createSet$1($);if(xe)return setToArray(xe);_e=!1,le=cacheHas,$e=new SetCache}else $e=oe?[]:Ce;e:for(;++ie$===void 0,isBoolean$3=$=>typeof $=="boolean",isNumber$5=$=>typeof $=="number",isEmpty=$=>!$&&$!==0||isArray$c($)&&$.length===0||isObject$8($)&&!Object.keys($).length,isElement$2=$=>typeof Element>"u"?!1:$ instanceof Element,isPropAbsent=$=>isNil($),isStringNumber=$=>isString$7($)?!Number.isNaN(Number($)):!1,escapeStringRegexp=($="")=>$.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),capitalize$1=$=>capitalize$2($),keysOf=$=>Object.keys($),entriesOf=$=>Object.entries($),getProp=($,oe,ae)=>({get value(){return get$1($,oe,ae)},set value(ie){set$2($,oe,ie)}});class ElementPlusError extends Error{constructor(oe){super(oe),this.name="ElementPlusError"}}function throwError$1($,oe){throw new ElementPlusError(`[${$}] ${oe}`)}function debugWarn($,oe){}const classNameToArray=($="")=>$.split(" ").filter(oe=>!!oe.trim()),hasClass=($,oe)=>{if(!$||!oe)return!1;if(oe.includes(" "))throw new Error("className should not contain space.");return $.classList.contains(oe)},addClass=($,oe)=>{!$||!oe.trim()||$.classList.add(...classNameToArray(oe))},removeClass=($,oe)=>{!$||!oe.trim()||$.classList.remove(...classNameToArray(oe))},getStyle$1=($,oe)=>{var ae;if(!isClient$2||!$||!oe)return"";let ie=camelize(oe);ie==="float"&&(ie="cssFloat");try{const le=$.style[ie];if(le)return le;const pe=(ae=document.defaultView)==null?void 0:ae.getComputedStyle($,"");return pe?pe[ie]:""}catch{return $.style[ie]}};function addUnit($,oe="px"){if(!$)return"";if(isNumber$5($)||isStringNumber($))return`${$}${oe}`;if(isString$7($))return $}const isScroll=($,oe)=>{if(!isClient$2)return!1;const ae={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(oe)],ie=getStyle$1($,ae);return["scroll","auto","overlay"].some(le=>ie.includes(le))},getScrollContainer=($,oe)=>{if(!isClient$2)return;let ae=$;for(;ae;){if([window,document,document.documentElement].includes(ae))return window;if(isScroll(ae,oe))return ae;ae=ae.parentNode}return ae};let scrollBarWidth;const getScrollBarWidth=$=>{var oe;if(!isClient$2)return 0;if(scrollBarWidth!==void 0)return scrollBarWidth;const ae=document.createElement("div");ae.className=`${$}-scrollbar__wrap`,ae.style.visibility="hidden",ae.style.width="100px",ae.style.position="absolute",ae.style.top="-9999px",document.body.appendChild(ae);const ie=ae.offsetWidth;ae.style.overflow="scroll";const le=document.createElement("div");le.style.width="100%",ae.appendChild(le);const pe=le.offsetWidth;return(oe=ae.parentNode)==null||oe.removeChild(ae),scrollBarWidth=ie-pe,scrollBarWidth};function scrollIntoView($,oe){if(!isClient$2)return;if(!oe){$.scrollTop=0;return}const ae=[];let ie=oe.offsetParent;for(;ie!==null&&$!==ie&&$.contains(ie);)ae.push(ie),ie=ie.offsetParent;const le=oe.offsetTop+ae.reduce(($e,xe)=>$e+xe.offsetTop,0),pe=le+oe.offsetHeight,_e=$.scrollTop,Ce=_e+$.clientHeight;le<_e?$.scrollTop=le:pe>Ce&&($.scrollTop=pe-$.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var export_helper_default=($,oe)=>{let ae=$.__vccOpts||$;for(let[ie,le]of oe)ae[ie]=le;return ae},arrow_down_vue_vue_type_script_lang_default={name:"ArrowDown"},_hoisted_16$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_26=createBaseVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 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.592 30.592 0 0 0-42.752 0z"},null,-1),_hoisted_36=[_hoisted_26];function _sfc_render6($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_16$1,_hoisted_36)}var arrow_down_default=export_helper_default(arrow_down_vue_vue_type_script_lang_default,[["render",_sfc_render6],["__file","arrow-down.vue"]]),arrow_left_vue_vue_type_script_lang_default={name:"ArrowLeft"},_hoisted_18$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_28=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.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_38=[_hoisted_28];function _sfc_render8($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_18$1,_hoisted_38)}var arrow_left_default=export_helper_default(arrow_left_vue_vue_type_script_lang_default,[["render",_sfc_render8],["__file","arrow-left.vue"]]),arrow_right_vue_vue_type_script_lang_default={name:"ArrowRight"},_hoisted_110={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_210=createBaseVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 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"},null,-1),_hoisted_310=[_hoisted_210];function _sfc_render10($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_110,_hoisted_310)}var arrow_right_default=export_helper_default(arrow_right_vue_vue_type_script_lang_default,[["render",_sfc_render10],["__file","arrow-right.vue"]]),arrow_up_vue_vue_type_script_lang_default={name:"ArrowUp"},_hoisted_112={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_212=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 0z"},null,-1),_hoisted_312=[_hoisted_212];function _sfc_render12($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_112,_hoisted_312)}var arrow_up_default=export_helper_default(arrow_up_vue_vue_type_script_lang_default,[["render",_sfc_render12],["__file","arrow-up.vue"]]),back_vue_vue_type_script_lang_default={name:"Back"},_hoisted_114={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_214=createBaseVNode("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),_hoisted_314=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.312L237.248 512z"},null,-1),_hoisted_44=[_hoisted_214,_hoisted_314];function _sfc_render14($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_114,_hoisted_44)}var back_default=export_helper_default(back_vue_vue_type_script_lang_default,[["render",_sfc_render14],["__file","back.vue"]]),calendar_vue_vue_type_script_lang_default={name:"Calendar"},_hoisted_129={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_229=createBaseVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-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 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),_hoisted_328=[_hoisted_229];function _sfc_render29($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_129,_hoisted_328)}var calendar_default=export_helper_default(calendar_vue_vue_type_script_lang_default,[["render",_sfc_render29],["__file","calendar.vue"]]),caret_right_vue_vue_type_script_lang_default={name:"CaretRight"},_hoisted_134={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_234=createBaseVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),_hoisted_333=[_hoisted_234];function _sfc_render34($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_134,_hoisted_333)}var caret_right_default=export_helper_default(caret_right_vue_vue_type_script_lang_default,[["render",_sfc_render34],["__file","caret-right.vue"]]),caret_top_vue_vue_type_script_lang_default={name:"CaretTop"},_hoisted_135={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_235=createBaseVNode("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),_hoisted_334=[_hoisted_235];function _sfc_render35($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_135,_hoisted_334)}var caret_top_default=export_helper_default(caret_top_vue_vue_type_script_lang_default,[["render",_sfc_render35],["__file","caret-top.vue"]]),check_vue_vue_type_script_lang_default={name:"Check"},_hoisted_143={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_243=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"},null,-1),_hoisted_342=[_hoisted_243];function _sfc_render43($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_143,_hoisted_342)}var check_default=export_helper_default(check_vue_vue_type_script_lang_default,[["render",_sfc_render43],["__file","check.vue"]]),circle_check_filled_vue_vue_type_script_lang_default={name:"CircleCheckFilled"},_hoisted_148={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_248=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_347=[_hoisted_248];function _sfc_render48($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_148,_hoisted_347)}var circle_check_filled_default=export_helper_default(circle_check_filled_vue_vue_type_script_lang_default,[["render",_sfc_render48],["__file","circle-check-filled.vue"]]),circle_check_vue_vue_type_script_lang_default={name:"CircleCheck"},_hoisted_149={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_249=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_348=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.752l265.344-265.408z"},null,-1),_hoisted_415=[_hoisted_249,_hoisted_348];function _sfc_render49($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_149,_hoisted_415)}var circle_check_default=export_helper_default(circle_check_vue_vue_type_script_lang_default,[["render",_sfc_render49],["__file","circle-check.vue"]]),circle_close_filled_vue_vue_type_script_lang_default={name:"CircleCloseFilled"},_hoisted_150={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_250=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 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.336L512 457.664z"},null,-1),_hoisted_349=[_hoisted_250];function _sfc_render50($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_150,_hoisted_349)}var circle_close_filled_default=export_helper_default(circle_close_filled_vue_vue_type_script_lang_default,[["render",_sfc_render50],["__file","circle-close-filled.vue"]]),circle_close_vue_vue_type_script_lang_default={name:"CircleClose"},_hoisted_151={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_251=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.248L466.752 512z"},null,-1),_hoisted_350=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_416=[_hoisted_251,_hoisted_350];function _sfc_render51($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_151,_hoisted_416)}var circle_close_default=export_helper_default(circle_close_vue_vue_type_script_lang_default,[["render",_sfc_render51],["__file","circle-close.vue"]]),clock_vue_vue_type_script_lang_default={name:"Clock"},_hoisted_154={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_254=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_353=createBaseVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),_hoisted_418=createBaseVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),_hoisted_56=[_hoisted_254,_hoisted_353,_hoisted_418];function _sfc_render54($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_154,_hoisted_56)}var clock_default=export_helper_default(clock_vue_vue_type_script_lang_default,[["render",_sfc_render54],["__file","clock.vue"]]),close_vue_vue_type_script_lang_default={name:"Close"},_hoisted_156={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_256=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"},null,-1),_hoisted_355=[_hoisted_256];function _sfc_render56($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_156,_hoisted_355)}var close_default=export_helper_default(close_vue_vue_type_script_lang_default,[["render",_sfc_render56],["__file","close.vue"]]),d_arrow_left_vue_vue_type_script_lang_default={name:"DArrowLeft"},_hoisted_172={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_272=createBaseVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 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.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 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.672l331.648-340.224z"},null,-1),_hoisted_371=[_hoisted_272];function _sfc_render72($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_172,_hoisted_371)}var d_arrow_left_default=export_helper_default(d_arrow_left_vue_vue_type_script_lang_default,[["render",_sfc_render72],["__file","d-arrow-left.vue"]]),d_arrow_right_vue_vue_type_script_lang_default={name:"DArrowRight"},_hoisted_173={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_273=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.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-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.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),_hoisted_372=[_hoisted_273];function _sfc_render73($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_173,_hoisted_372)}var d_arrow_right_default=export_helper_default(d_arrow_right_vue_vue_type_script_lang_default,[["render",_sfc_render73],["__file","d-arrow-right.vue"]]),delete_vue_vue_type_script_lang_default={name:"Delete"},_hoisted_180={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_280=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-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),_hoisted_379=[_hoisted_280];function _sfc_render80($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_180,_hoisted_379)}var delete_default=export_helper_default(delete_vue_vue_type_script_lang_default,[["render",_sfc_render80],["__file","delete.vue"]]),document_vue_vue_type_script_lang_default={name:"Document"},_hoisted_190={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_290=createBaseVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),_hoisted_389=[_hoisted_290];function _sfc_render90($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_190,_hoisted_389)}var document_default=export_helper_default(document_vue_vue_type_script_lang_default,[["render",_sfc_render90],["__file","document.vue"]]),full_screen_vue_vue_type_script_lang_default={name:"FullScreen"},_hoisted_1118={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2118=createBaseVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),_hoisted_3117=[_hoisted_2118];function _sfc_render118($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1118,_hoisted_3117)}var full_screen_default=export_helper_default(full_screen_vue_vue_type_script_lang_default,[["render",_sfc_render118],["__file","full-screen.vue"]]),hide_vue_vue_type_script_lang_default={name:"Hide"},_hoisted_1133={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2133=createBaseVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-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 176C44.8 438.4 0 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.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 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.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.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.6-28.8 48-80 105.6-153.6 172.8-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-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),_hoisted_3132=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 112-32 28.8-67.2 48-112 48Z"},null,-1),_hoisted_438=[_hoisted_2133,_hoisted_3132];function _sfc_render133($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1133,_hoisted_438)}var hide_default=export_helper_default(hide_vue_vue_type_script_lang_default,[["render",_sfc_render133],["__file","hide.vue"]]),info_filled_vue_vue_type_script_lang_default={name:"InfoFilled"},_hoisted_1143={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2143=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.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.344zM590.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.992 12.992 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"},null,-1),_hoisted_3142=[_hoisted_2143];function _sfc_render143($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1143,_hoisted_3142)}var info_filled_default=export_helper_default(info_filled_vue_vue_type_script_lang_default,[["render",_sfc_render143],["__file","info-filled.vue"]]),loading_vue_vue_type_script_lang_default={name:"Loading"},_hoisted_1150={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2150=createBaseVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.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.248zm452.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.248zM828.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 0zm-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 0z"},null,-1),_hoisted_3149=[_hoisted_2150];function _sfc_render150($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1150,_hoisted_3149)}var loading_default=export_helper_default(loading_vue_vue_type_script_lang_default,[["render",_sfc_render150],["__file","loading.vue"]]),minus_vue_vue_type_script_lang_default={name:"Minus"},_hoisted_1169={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2169=createBaseVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),_hoisted_3168=[_hoisted_2169];function _sfc_render169($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1169,_hoisted_3168)}var minus_default=export_helper_default(minus_vue_vue_type_script_lang_default,[["render",_sfc_render169],["__file","minus.vue"]]),more_filled_vue_vue_type_script_lang_default={name:"MoreFilled"},_hoisted_1174={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2174=createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),_hoisted_3173=[_hoisted_2174];function _sfc_render174($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1174,_hoisted_3173)}var more_filled_default=export_helper_default(more_filled_vue_vue_type_script_lang_default,[["render",_sfc_render174],["__file","more-filled.vue"]]),more_vue_vue_type_script_lang_default={name:"More"},_hoisted_1175={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2175=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-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),_hoisted_3174=[_hoisted_2175];function _sfc_render175($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1175,_hoisted_3174)}var more_default=export_helper_default(more_vue_vue_type_script_lang_default,[["render",_sfc_render175],["__file","more.vue"]]),picture_filled_vue_vue_type_script_lang_default={name:"PictureFilled"},_hoisted_1195={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2195=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 32H96zm315.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.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),_hoisted_3194=[_hoisted_2195];function _sfc_render195($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1195,_hoisted_3194)}var picture_filled_default=export_helper_default(picture_filled_vue_vue_type_script_lang_default,[["render",_sfc_render195],["__file","picture-filled.vue"]]),plus_vue_vue_type_script_lang_default={name:"Plus"},_hoisted_1201={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2201=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-64h352z"},null,-1),_hoisted_3200=[_hoisted_2201];function _sfc_render201($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1201,_hoisted_3200)}var plus_default=export_helper_default(plus_vue_vue_type_script_lang_default,[["render",_sfc_render201],["__file","plus.vue"]]),question_filled_vue_vue_type_script_lang_default={name:"QuestionFilled"},_hoisted_1211={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2211=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.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.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 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.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),_hoisted_3210=[_hoisted_2211];function _sfc_render211($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1211,_hoisted_3210)}var question_filled_default=export_helper_default(question_filled_vue_vue_type_script_lang_default,[["render",_sfc_render211],["__file","question-filled.vue"]]),refresh_left_vue_vue_type_script_lang_default={name:"RefreshLeft"},_hoisted_1215={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2215=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"},null,-1),_hoisted_3214=[_hoisted_2215];function _sfc_render215($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1215,_hoisted_3214)}var refresh_left_default=export_helper_default(refresh_left_vue_vue_type_script_lang_default,[["render",_sfc_render215],["__file","refresh-left.vue"]]),refresh_right_vue_vue_type_script_lang_default={name:"RefreshRight"},_hoisted_1216={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2216=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.88z"},null,-1),_hoisted_3215=[_hoisted_2216];function _sfc_render216($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1216,_hoisted_3215)}var refresh_right_default=export_helper_default(refresh_right_vue_vue_type_script_lang_default,[["render",_sfc_render216],["__file","refresh-right.vue"]]),scale_to_original_vue_vue_type_script_lang_default={name:"ScaleToOriginal"},_hoisted_1222={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2222=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.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),_hoisted_3221=[_hoisted_2222];function _sfc_render222($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1222,_hoisted_3221)}var scale_to_original_default=export_helper_default(scale_to_original_vue_vue_type_script_lang_default,[["render",_sfc_render222],["__file","scale-to-original.vue"]]),search_vue_vue_type_script_lang_default={name:"Search"},_hoisted_1225={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2225=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 704z"},null,-1),_hoisted_3224=[_hoisted_2225];function _sfc_render225($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1225,_hoisted_3224)}var search_default=export_helper_default(search_vue_vue_type_script_lang_default,[["render",_sfc_render225],["__file","search.vue"]]),sort_down_vue_vue_type_script_lang_default={name:"SortDown"},_hoisted_1242={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2242=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 0z"},null,-1),_hoisted_3241=[_hoisted_2242];function _sfc_render242($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1242,_hoisted_3241)}var sort_down_default=export_helper_default(sort_down_vue_vue_type_script_lang_default,[["render",_sfc_render242],["__file","sort-down.vue"]]),sort_up_vue_vue_type_script_lang_default={name:"SortUp"},_hoisted_1243={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2243=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.248z"},null,-1),_hoisted_3242=[_hoisted_2243];function _sfc_render243($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1243,_hoisted_3242)}var sort_up_default=export_helper_default(sort_up_vue_vue_type_script_lang_default,[["render",_sfc_render243],["__file","sort-up.vue"]]),star_filled_vue_vue_type_script_lang_default={name:"StarFilled"},_hoisted_1246={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2246=createBaseVNode("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.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.72z"},null,-1),_hoisted_3245=[_hoisted_2246];function _sfc_render246($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1246,_hoisted_3245)}var star_filled_default=export_helper_default(star_filled_vue_vue_type_script_lang_default,[["render",_sfc_render246],["__file","star-filled.vue"]]),star_vue_vue_type_script_lang_default={name:"Star"},_hoisted_1247={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2247=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.72L512 747.84zM313.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"},null,-1),_hoisted_3246=[_hoisted_2247];function _sfc_render247($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1247,_hoisted_3246)}var star_default=export_helper_default(star_vue_vue_type_script_lang_default,[["render",_sfc_render247],["__file","star.vue"]]),success_filled_vue_vue_type_script_lang_default={name:"SuccessFilled"},_hoisted_1249={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2249=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_3248=[_hoisted_2249];function _sfc_render249($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1249,_hoisted_3248)}var success_filled_default=export_helper_default(success_filled_vue_vue_type_script_lang_default,[["render",_sfc_render249],["__file","success-filled.vue"]]),view_vue_vue_type_script_lang_default={name:"View"},_hoisted_1283={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2283=createBaseVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 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-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),_hoisted_3282=[_hoisted_2283];function _sfc_render283($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1283,_hoisted_3282)}var view_default=export_helper_default(view_vue_vue_type_script_lang_default,[["render",_sfc_render283],["__file","view.vue"]]),warning_filled_vue_vue_type_script_lang_default={name:"WarningFilled"},_hoisted_1287={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2287=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),_hoisted_3286=[_hoisted_2287];function _sfc_render287($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1287,_hoisted_3286)}var warning_filled_default=export_helper_default(warning_filled_vue_vue_type_script_lang_default,[["render",_sfc_render287],["__file","warning-filled.vue"]]),zoom_in_vue_vue_type_script_lang_default={name:"ZoomIn"},_hoisted_1292={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2292=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 704zm-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-64h96z"},null,-1),_hoisted_3291=[_hoisted_2292];function _sfc_render292($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1292,_hoisted_3291)}var zoom_in_default=export_helper_default(zoom_in_vue_vue_type_script_lang_default,[["render",_sfc_render292],["__file","zoom-in.vue"]]),zoom_out_vue_vue_type_script_lang_default={name:"ZoomOut"},_hoisted_1293={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2293=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 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),_hoisted_3292=[_hoisted_2293];function _sfc_render293($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1293,_hoisted_3292)}var zoom_out_default=export_helper_default(zoom_out_vue_vue_type_script_lang_default,[["render",_sfc_render293],["__file","zoom-out.vue"]]);const epPropKey="__epPropKey",definePropType=$=>$,isEpProp=$=>isObject$8($)&&!!$[epPropKey],buildProp=($,oe)=>{if(!isObject$8($)||isEpProp($))return $;const{values:ae,required:ie,default:le,type:pe,validator:_e}=$,$e={type:pe,required:!!ie,validator:ae||_e?xe=>{let Ie=!1,Ne=[];if(ae&&(Ne=Array.from(ae),hasOwn$4($,"default")&&Ne.push(le),Ie||(Ie=Ne.includes(xe))),_e&&(Ie||(Ie=_e(xe))),!Ie&&Ne.length>0){const Fe=[...new Set(Ne)].map(ze=>JSON.stringify(ze)).join(", ");warn$2(`Invalid prop: validation failed${oe?` for prop "${oe}"`:""}. Expected one of [${Fe}], got value ${JSON.stringify(xe)}.`)}return Ie}:void 0,[epPropKey]:!0};return hasOwn$4($,"default")&&($e.default=le),$e},buildProps=$=>fromPairs(Object.entries($).map(([oe,ae])=>[oe,buildProp(ae,oe)])),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={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},withInstall=($,oe)=>{if($.install=ae=>{for(const ie of[$,...Object.values(oe??{})])ae.component(ie.name,ie)},oe)for(const[ae,ie]of Object.entries(oe))$[ae]=ie;return $},withInstallFunction=($,oe)=>($.install=ae=>{$._context=ae._context,ae.config.globalProperties[oe]=$},$),withInstallDirective=($,oe)=>($.install=ae=>{ae.directive(oe,$)},$),withNoopInstall=$=>($.install=NOOP,$),composeRefs=(...$)=>oe=>{$.forEach(ae=>{isFunction$5(ae)?ae(oe):ae.value=oe})},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"},datePickTypes=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],WEEK_DAYS=["sun","mon","tue","wed","thu","fri","sat"],UPDATE_MODEL_EVENT="update:modelValue",CHANGE_EVENT="change",INPUT_EVENT="input",INSTALLED_KEY=Symbol("INSTALLED_KEY"),componentSizes=["","default","small","large"],componentSizeMap={large:40,default:32,small:24},getComponentSize=$=>componentSizeMap[$||"default"],isValidComponentSize=$=>["",...componentSizes].includes($);var PatchFlags=($=>($[$.TEXT=1]="TEXT",$[$.CLASS=2]="CLASS",$[$.STYLE=4]="STYLE",$[$.PROPS=8]="PROPS",$[$.FULL_PROPS=16]="FULL_PROPS",$[$.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",$[$.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",$[$.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",$[$.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",$[$.NEED_PATCH=512]="NEED_PATCH",$[$.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",$[$.HOISTED=-1]="HOISTED",$[$.BAIL=-2]="BAIL",$))(PatchFlags||{});function isFragment($){return isVNode$1($)&&$.type===Fragment}function isComment($){return isVNode$1($)&&$.type===Comment}function isValidElementNode($){return isVNode$1($)&&!isFragment($)&&!isComment($)}const getNormalizedProps=$=>{if(!isVNode$1($))return{};const oe=$.props||{},ae=(isVNode$1($.type)?$.type.props:void 0)||{},ie={};return Object.keys(ae).forEach(le=>{hasOwn$4(ae[le],"default")&&(ie[le]=ae[le].default)}),Object.keys(oe).forEach(le=>{ie[camelize(le)]=oe[le]}),ie},ensureOnlyChild=$=>{if(!isArray$c($)||$.length>1)throw new Error("expect to receive a single Vue element child");return $[0]},flattedChildren=$=>{const oe=isArray$c($)?$:[$],ae=[];return oe.forEach(ie=>{var le;isArray$c(ie)?ae.push(...flattedChildren(ie)):isVNode$1(ie)&&isArray$c(ie.children)?ae.push(...flattedChildren(ie.children)):(ae.push(ie),isVNode$1(ie)&&((le=ie.component)!=null&&le.subTree)&&ae.push(...flattedChildren(ie.component.subTree)))}),ae},unique=$=>[...new Set($)],castArray=$=>!$&&$!==0?[]:Array.isArray($)?$:[$],isKorean=$=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test($),rAF=$=>isClient$2?window.requestAnimationFrame($):setTimeout($,16),cAF=$=>isClient$2?window.cancelAnimationFrame($):clearTimeout($),generateId=()=>Math.floor(Math.random()*1e4),mutable=$=>$,DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]/,useAttrs=($={})=>{const{excludeListeners:oe=!1,excludeKeys:ae}=$,ie=computed(()=>((ae==null?void 0:ae.value)||[]).concat(DEFAULT_EXCLUDE_KEYS)),le=getCurrentInstance();return computed(le?()=>{var pe;return fromPairs(Object.entries((pe=le.proxy)==null?void 0:pe.$attrs).filter(([_e])=>!ie.value.includes(_e)&&!(oe&&LISTENER_PREFIX.test(_e))))}:()=>({}))},useDeprecated=({from:$,replacement:oe,scope:ae,version:ie,ref:le,type:pe="API"},_e)=>{watch(()=>unref(_e),Ce=>{},{immediate:!0})},useDraggable=($,oe,ae)=>{let ie={offsetX:0,offsetY:0};const le=Ce=>{const $e=Ce.clientX,xe=Ce.clientY,{offsetX:Ie,offsetY:Ne}=ie,Fe=$.value.getBoundingClientRect(),ze=Fe.left,At=Fe.top,Lt=Fe.width,hn=Fe.height,vn=document.documentElement.clientWidth,_n=document.documentElement.clientHeight,bn=-ze+Ie,Cn=-At+Ne,En=vn-ze-Lt+Ie,$n=_n-At-hn+Ne,wn=xn=>{const kn=Math.min(Math.max(Ie+xn.clientX-$e,bn),En),An=Math.min(Math.max(Ne+xn.clientY-xe,Cn),$n);ie={offsetX:kn,offsetY:An},$.value.style.transform=`translate(${addUnit(kn)}, ${addUnit(An)})`},Tn=()=>{document.removeEventListener("mousemove",wn),document.removeEventListener("mouseup",Tn)};document.addEventListener("mousemove",wn),document.addEventListener("mouseup",Tn)},pe=()=>{oe.value&&$.value&&oe.value.addEventListener("mousedown",le)},_e=()=>{oe.value&&$.value&&oe.value.removeEventListener("mousedown",le)};onMounted(()=>{watchEffect(()=>{ae.value?pe():_e()})}),onBeforeUnmount(()=>{_e()})},useFocus=$=>({focus:()=>{var oe,ae;(ae=(oe=$.value)==null?void 0:oe.focus)==null||ae.call(oe)}});var English={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new 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",week:"week",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"},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"},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"}}};const buildTranslator=$=>(oe,ae)=>translate$2(oe,ae,unref($)),translate$2=($,oe,ae)=>get$1(ae,$,$).replace(/\{(\w+)\}/g,(ie,le)=>{var pe;return`${(pe=oe==null?void 0:oe[le])!=null?pe:`{${le}}`}`}),buildLocaleContext=$=>{const oe=computed(()=>unref($).name),ae=isRef($)?$:ref($);return{lang:oe,locale:ae,t:buildTranslator($)}},localeContextKey=Symbol("localeContextKey"),useLocale=$=>{const oe=$||inject(localeContextKey,ref());return buildLocaleContext(computed(()=>oe.value||English))},defaultNamespace="el",statePrefix="is-",_bem=($,oe,ae,ie,le)=>{let pe=`${$}-${oe}`;return ae&&(pe+=`-${ae}`),ie&&(pe+=`__${ie}`),le&&(pe+=`--${le}`),pe},namespaceContextKey=Symbol("namespaceContextKey"),useGetDerivedNamespace=$=>{const oe=$||inject(namespaceContextKey,ref(defaultNamespace));return computed(()=>unref(oe)||defaultNamespace)},useNamespace=($,oe)=>{const ae=useGetDerivedNamespace(oe);return{namespace:ae,b:(Lt="")=>_bem(ae.value,$,Lt,"",""),e:Lt=>Lt?_bem(ae.value,$,"",Lt,""):"",m:Lt=>Lt?_bem(ae.value,$,"","",Lt):"",be:(Lt,hn)=>Lt&&hn?_bem(ae.value,$,Lt,hn,""):"",em:(Lt,hn)=>Lt&&hn?_bem(ae.value,$,"",Lt,hn):"",bm:(Lt,hn)=>Lt&&hn?_bem(ae.value,$,Lt,"",hn):"",bem:(Lt,hn,vn)=>Lt&&hn&&vn?_bem(ae.value,$,Lt,hn,vn):"",is:(Lt,...hn)=>{const vn=hn.length>=1?hn[0]:!0;return Lt&&vn?`${statePrefix}${Lt}`:""},cssVar:Lt=>{const hn={};for(const vn in Lt)Lt[vn]&&(hn[`--${ae.value}-${vn}`]=Lt[vn]);return hn},cssVarName:Lt=>`--${ae.value}-${Lt}`,cssVarBlock:Lt=>{const hn={};for(const vn in Lt)Lt[vn]&&(hn[`--${ae.value}-${$}-${vn}`]=Lt[vn]);return hn},cssVarBlockName:Lt=>`--${ae.value}-${$}-${Lt}`}},useLockscreen=($,oe={})=>{isRef($)||throwError$1("[useLockscreen]","You need to pass a ref param to this function");const ae=oe.ns||useNamespace("popup"),ie=computed$1(()=>ae.bm("parent","hidden"));if(!isClient$2||hasClass(document.body,ie.value))return;let le=0,pe=!1,_e="0";const Ce=()=>{setTimeout(()=>{removeClass(document==null?void 0:document.body,ie.value),pe&&document&&(document.body.style.width=_e)},200)};watch($,$e=>{if(!$e){Ce();return}pe=!hasClass(document.body,ie.value),pe&&(_e=document.body.style.width),le=getScrollBarWidth(ae.namespace.value);const xe=document.documentElement.clientHeight0&&(xe||Ie==="scroll")&&pe&&(document.body.style.width=`calc(100% - ${le}px)`),addClass(document.body,ie.value)}),onScopeDispose(()=>Ce())},_prop=buildProp({type:definePropType(Boolean),default:null}),_event=buildProp({type:definePropType(Function)}),createModelToggleComposable=$=>{const oe=`update:${$}`,ae=`onUpdate:${$}`,ie=[oe],le={[$]:_prop,[ae]:_event};return{useModelToggle:({indicator:_e,toggleReason:Ce,shouldHideWhenRouteChanges:$e,shouldProceed:xe,onShow:Ie,onHide:Ne})=>{const Fe=getCurrentInstance(),{emit:ze}=Fe,At=Fe.props,Lt=computed(()=>isFunction$5(At[ae])),hn=computed(()=>At[$]===null),vn=wn=>{_e.value!==!0&&(_e.value=!0,Ce&&(Ce.value=wn),isFunction$5(Ie)&&Ie(wn))},_n=wn=>{_e.value!==!1&&(_e.value=!1,Ce&&(Ce.value=wn),isFunction$5(Ne)&&Ne(wn))},bn=wn=>{if(At.disabled===!0||isFunction$5(xe)&&!xe())return;const Tn=Lt.value&&isClient$2;Tn&&ze(oe,!0),(hn.value||!Tn)&&vn(wn)},Cn=wn=>{if(At.disabled===!0||!isClient$2)return;const Tn=Lt.value&&isClient$2;Tn&&ze(oe,!1),(hn.value||!Tn)&&_n(wn)},En=wn=>{isBoolean$3(wn)&&(At.disabled&&wn?Lt.value&&ze(oe,!1):_e.value!==wn&&(wn?vn():_n()))},$n=()=>{_e.value?Cn():bn()};return watch(()=>At[$],En),$e&&Fe.appContext.config.globalProperties.$route!==void 0&&watch(()=>({...Fe.proxy.$route}),()=>{$e.value&&_e.value&&Cn()}),onMounted(()=>{En(At[$])}),{hide:Cn,show:bn,toggle:$n,hasUpdateHandler:Lt}},useModelToggleProps:le,useModelToggleEmits:ie}};createModelToggleComposable("modelValue");const useProp=$=>{const oe=getCurrentInstance();return computed(()=>{var ae,ie;return(ie=(ae=oe==null?void 0:oe.proxy)==null?void 0:ae.$props)==null?void 0:ie[$]})};var E$2="top",R$1="bottom",W$1="right",P$3="left",me$1="auto",G$1=[E$2,R$1,W$1,P$3],U$2="start",J$2="end",Xe$1="clippingParents",je="viewport",K$2="popper",Ye="reference",De=G$1.reduce(function($,oe){return $.concat([oe+"-"+U$2,oe+"-"+J$2])},[]),Ee=[].concat(G$1,[me$1]).reduce(function($,oe){return $.concat([oe,oe+"-"+U$2,oe+"-"+J$2])},[]),Ge="beforeRead",Je$1="read",Ke$1="afterRead",Qe="beforeMain",Ze="main",et$1="afterMain",tt$1="beforeWrite",nt="write",rt$2="afterWrite",ot$1=[Ge,Je$1,Ke$1,Qe,Ze,et$1,tt$1,nt,rt$2];function C$1($){return $?($.nodeName||"").toLowerCase():null}function H$3($){if($==null)return window;if($.toString()!=="[object Window]"){var oe=$.ownerDocument;return oe&&oe.defaultView||window}return $}function Q$1($){var oe=H$3($).Element;return $ instanceof oe||$ instanceof Element}function B($){var oe=H$3($).HTMLElement;return $ instanceof oe||$ instanceof HTMLElement}function Pe($){if(typeof ShadowRoot>"u")return!1;var oe=H$3($).ShadowRoot;return $ instanceof oe||$ instanceof ShadowRoot}function Mt$1($){var oe=$.state;Object.keys(oe.elements).forEach(function(ae){var ie=oe.styles[ae]||{},le=oe.attributes[ae]||{},pe=oe.elements[ae];!B(pe)||!C$1(pe)||(Object.assign(pe.style,ie),Object.keys(le).forEach(function(_e){var Ce=le[_e];Ce===!1?pe.removeAttribute(_e):pe.setAttribute(_e,Ce===!0?"":Ce)}))})}function Rt$1($){var oe=$.state,ae={popper:{position:oe.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(oe.elements.popper.style,ae.popper),oe.styles=ae,oe.elements.arrow&&Object.assign(oe.elements.arrow.style,ae.arrow),function(){Object.keys(oe.elements).forEach(function(ie){var le=oe.elements[ie],pe=oe.attributes[ie]||{},_e=Object.keys(oe.styles.hasOwnProperty(ie)?oe.styles[ie]:ae[ie]),Ce=_e.reduce(function($e,xe){return $e[xe]="",$e},{});!B(le)||!C$1(le)||(Object.assign(le.style,Ce),Object.keys(pe).forEach(function($e){le.removeAttribute($e)}))})}}var Ae$1={name:"applyStyles",enabled:!0,phase:"write",fn:Mt$1,effect:Rt$1,requires:["computeStyles"]};function q$1($){return $.split("-")[0]}var X$1=Math.max,ve=Math.min,Z=Math.round;function ee$1($,oe){oe===void 0&&(oe=!1);var ae=$.getBoundingClientRect(),ie=1,le=1;if(B($)&&oe){var pe=$.offsetHeight,_e=$.offsetWidth;_e>0&&(ie=Z(ae.width)/_e||1),pe>0&&(le=Z(ae.height)/pe||1)}return{width:ae.width/ie,height:ae.height/le,top:ae.top/le,right:ae.right/ie,bottom:ae.bottom/le,left:ae.left/ie,x:ae.left/ie,y:ae.top/le}}function ke($){var oe=ee$1($),ae=$.offsetWidth,ie=$.offsetHeight;return Math.abs(oe.width-ae)<=1&&(ae=oe.width),Math.abs(oe.height-ie)<=1&&(ie=oe.height),{x:$.offsetLeft,y:$.offsetTop,width:ae,height:ie}}function it$1($,oe){var ae=oe.getRootNode&&oe.getRootNode();if($.contains(oe))return!0;if(ae&&Pe(ae)){var ie=oe;do{if(ie&&$.isSameNode(ie))return!0;ie=ie.parentNode||ie.host}while(ie)}return!1}function N$2($){return H$3($).getComputedStyle($)}function Wt$1($){return["table","td","th"].indexOf(C$1($))>=0}function I$2($){return((Q$1($)?$.ownerDocument:$.document)||window.document).documentElement}function ge$1($){return C$1($)==="html"?$:$.assignedSlot||$.parentNode||(Pe($)?$.host:null)||I$2($)}function at$1($){return!B($)||N$2($).position==="fixed"?null:$.offsetParent}function Bt$1($){var oe=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,ae=navigator.userAgent.indexOf("Trident")!==-1;if(ae&&B($)){var ie=N$2($);if(ie.position==="fixed")return null}var le=ge$1($);for(Pe(le)&&(le=le.host);B(le)&&["html","body"].indexOf(C$1(le))<0;){var pe=N$2(le);if(pe.transform!=="none"||pe.perspective!=="none"||pe.contain==="paint"||["transform","perspective"].indexOf(pe.willChange)!==-1||oe&&pe.willChange==="filter"||oe&&pe.filter&&pe.filter!=="none")return le;le=le.parentNode}return null}function se$1($){for(var oe=H$3($),ae=at$1($);ae&&Wt$1(ae)&&N$2(ae).position==="static";)ae=at$1(ae);return ae&&(C$1(ae)==="html"||C$1(ae)==="body"&&N$2(ae).position==="static")?oe:ae||Bt$1($)||oe}function Le($){return["top","bottom"].indexOf($)>=0?"x":"y"}function fe$1($,oe,ae){return X$1($,ve(oe,ae))}function St($,oe,ae){var ie=fe$1($,oe,ae);return ie>ae?ae:ie}function st(){return{top:0,right:0,bottom:0,left:0}}function ft$1($){return Object.assign({},st(),$)}function ct($,oe){return oe.reduce(function(ae,ie){return ae[ie]=$,ae},{})}var Tt$1=function($,oe){return $=typeof $=="function"?$(Object.assign({},oe.rects,{placement:oe.placement})):$,ft$1(typeof $!="number"?$:ct($,G$1))};function Ht$1($){var oe,ae=$.state,ie=$.name,le=$.options,pe=ae.elements.arrow,_e=ae.modifiersData.popperOffsets,Ce=q$1(ae.placement),$e=Le(Ce),xe=[P$3,W$1].indexOf(Ce)>=0,Ie=xe?"height":"width";if(!(!pe||!_e)){var Ne=Tt$1(le.padding,ae),Fe=ke(pe),ze=$e==="y"?E$2:P$3,At=$e==="y"?R$1:W$1,Lt=ae.rects.reference[Ie]+ae.rects.reference[$e]-_e[$e]-ae.rects.popper[Ie],hn=_e[$e]-ae.rects.reference[$e],vn=se$1(pe),_n=vn?$e==="y"?vn.clientHeight||0:vn.clientWidth||0:0,bn=Lt/2-hn/2,Cn=Ne[ze],En=_n-Fe[Ie]-Ne[At],$n=_n/2-Fe[Ie]/2+bn,wn=fe$1(Cn,$n,En),Tn=$e;ae.modifiersData[ie]=(oe={},oe[Tn]=wn,oe.centerOffset=wn-$n,oe)}}function Ct$1($){var oe=$.state,ae=$.options,ie=ae.element,le=ie===void 0?"[data-popper-arrow]":ie;le!=null&&(typeof le=="string"&&(le=oe.elements.popper.querySelector(le),!le)||!it$1(oe.elements.popper,le)||(oe.elements.arrow=le))}var pt$1={name:"arrow",enabled:!0,phase:"main",fn:Ht$1,effect:Ct$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te($){return $.split("-")[1]}var qt$1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt($){var oe=$.x,ae=$.y,ie=window,le=ie.devicePixelRatio||1;return{x:Z(oe*le)/le||0,y:Z(ae*le)/le||0}}function ut$1($){var oe,ae=$.popper,ie=$.popperRect,le=$.placement,pe=$.variation,_e=$.offsets,Ce=$.position,$e=$.gpuAcceleration,xe=$.adaptive,Ie=$.roundOffsets,Ne=$.isFixed,Fe=_e.x,ze=Fe===void 0?0:Fe,At=_e.y,Lt=At===void 0?0:At,hn=typeof Ie=="function"?Ie({x:ze,y:Lt}):{x:ze,y:Lt};ze=hn.x,Lt=hn.y;var vn=_e.hasOwnProperty("x"),_n=_e.hasOwnProperty("y"),bn=P$3,Cn=E$2,En=window;if(xe){var $n=se$1(ae),wn="clientHeight",Tn="clientWidth";if($n===H$3(ae)&&($n=I$2(ae),N$2($n).position!=="static"&&Ce==="absolute"&&(wn="scrollHeight",Tn="scrollWidth")),$n=$n,le===E$2||(le===P$3||le===W$1)&&pe===J$2){Cn=R$1;var xn=Ne&&$n===En&&En.visualViewport?En.visualViewport.height:$n[wn];Lt-=xn-ie.height,Lt*=$e?1:-1}if(le===P$3||(le===E$2||le===R$1)&&pe===J$2){bn=W$1;var kn=Ne&&$n===En&&En.visualViewport?En.visualViewport.width:$n[Tn];ze-=kn-ie.width,ze*=$e?1:-1}}var An=Object.assign({position:Ce},xe&&qt$1),On=Ie===!0?Vt({x:ze,y:Lt}):{x:ze,y:Lt};if(ze=On.x,Lt=On.y,$e){var Nn;return Object.assign({},An,(Nn={},Nn[Cn]=_n?"0":"",Nn[bn]=vn?"0":"",Nn.transform=(En.devicePixelRatio||1)<=1?"translate("+ze+"px, "+Lt+"px)":"translate3d("+ze+"px, "+Lt+"px, 0)",Nn))}return Object.assign({},An,(oe={},oe[Cn]=_n?Lt+"px":"",oe[bn]=vn?ze+"px":"",oe.transform="",oe))}function Nt$1($){var oe=$.state,ae=$.options,ie=ae.gpuAcceleration,le=ie===void 0?!0:ie,pe=ae.adaptive,_e=pe===void 0?!0:pe,Ce=ae.roundOffsets,$e=Ce===void 0?!0:Ce,xe={placement:q$1(oe.placement),variation:te(oe.placement),popper:oe.elements.popper,popperRect:oe.rects.popper,gpuAcceleration:le,isFixed:oe.options.strategy==="fixed"};oe.modifiersData.popperOffsets!=null&&(oe.styles.popper=Object.assign({},oe.styles.popper,ut$1(Object.assign({},xe,{offsets:oe.modifiersData.popperOffsets,position:oe.options.strategy,adaptive:_e,roundOffsets:$e})))),oe.modifiersData.arrow!=null&&(oe.styles.arrow=Object.assign({},oe.styles.arrow,ut$1(Object.assign({},xe,{offsets:oe.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:$e})))),oe.attributes.popper=Object.assign({},oe.attributes.popper,{"data-popper-placement":oe.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt$1,data:{}},ye$1={passive:!0};function It$1($){var oe=$.state,ae=$.instance,ie=$.options,le=ie.scroll,pe=le===void 0?!0:le,_e=ie.resize,Ce=_e===void 0?!0:_e,$e=H$3(oe.elements.popper),xe=[].concat(oe.scrollParents.reference,oe.scrollParents.popper);return pe&&xe.forEach(function(Ie){Ie.addEventListener("scroll",ae.update,ye$1)}),Ce&&$e.addEventListener("resize",ae.update,ye$1),function(){pe&&xe.forEach(function(Ie){Ie.removeEventListener("scroll",ae.update,ye$1)}),Ce&&$e.removeEventListener("resize",ae.update,ye$1)}}var Re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:It$1,data:{}},_t$1={left:"right",right:"left",bottom:"top",top:"bottom"};function be$1($){return $.replace(/left|right|bottom|top/g,function(oe){return _t$1[oe]})}var zt$1={start:"end",end:"start"};function lt$2($){return $.replace(/start|end/g,function(oe){return zt$1[oe]})}function We($){var oe=H$3($),ae=oe.pageXOffset,ie=oe.pageYOffset;return{scrollLeft:ae,scrollTop:ie}}function Be$1($){return ee$1(I$2($)).left+We($).scrollLeft}function Ft($){var oe=H$3($),ae=I$2($),ie=oe.visualViewport,le=ae.clientWidth,pe=ae.clientHeight,_e=0,Ce=0;return ie&&(le=ie.width,pe=ie.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(_e=ie.offsetLeft,Ce=ie.offsetTop)),{width:le,height:pe,x:_e+Be$1($),y:Ce}}function Ut$1($){var oe,ae=I$2($),ie=We($),le=(oe=$.ownerDocument)==null?void 0:oe.body,pe=X$1(ae.scrollWidth,ae.clientWidth,le?le.scrollWidth:0,le?le.clientWidth:0),_e=X$1(ae.scrollHeight,ae.clientHeight,le?le.scrollHeight:0,le?le.clientHeight:0),Ce=-ie.scrollLeft+Be$1($),$e=-ie.scrollTop;return N$2(le||ae).direction==="rtl"&&(Ce+=X$1(ae.clientWidth,le?le.clientWidth:0)-pe),{width:pe,height:_e,x:Ce,y:$e}}function Se$1($){var oe=N$2($),ae=oe.overflow,ie=oe.overflowX,le=oe.overflowY;return/auto|scroll|overlay|hidden/.test(ae+le+ie)}function dt$1($){return["html","body","#document"].indexOf(C$1($))>=0?$.ownerDocument.body:B($)&&Se$1($)?$:dt$1(ge$1($))}function ce$1($,oe){var ae;oe===void 0&&(oe=[]);var ie=dt$1($),le=ie===((ae=$.ownerDocument)==null?void 0:ae.body),pe=H$3(ie),_e=le?[pe].concat(pe.visualViewport||[],Se$1(ie)?ie:[]):ie,Ce=oe.concat(_e);return le?Ce:Ce.concat(ce$1(ge$1(_e)))}function Te($){return Object.assign({},$,{left:$.x,top:$.y,right:$.x+$.width,bottom:$.y+$.height})}function Xt$1($){var oe=ee$1($);return oe.top=oe.top+$.clientTop,oe.left=oe.left+$.clientLeft,oe.bottom=oe.top+$.clientHeight,oe.right=oe.left+$.clientWidth,oe.width=$.clientWidth,oe.height=$.clientHeight,oe.x=oe.left,oe.y=oe.top,oe}function ht($,oe){return oe===je?Te(Ft($)):Q$1(oe)?Xt$1(oe):Te(Ut$1(I$2($)))}function Yt($){var oe=ce$1(ge$1($)),ae=["absolute","fixed"].indexOf(N$2($).position)>=0,ie=ae&&B($)?se$1($):$;return Q$1(ie)?oe.filter(function(le){return Q$1(le)&&it$1(le,ie)&&C$1(le)!=="body"}):[]}function Gt($,oe,ae){var ie=oe==="clippingParents"?Yt($):[].concat(oe),le=[].concat(ie,[ae]),pe=le[0],_e=le.reduce(function(Ce,$e){var xe=ht($,$e);return Ce.top=X$1(xe.top,Ce.top),Ce.right=ve(xe.right,Ce.right),Ce.bottom=ve(xe.bottom,Ce.bottom),Ce.left=X$1(xe.left,Ce.left),Ce},ht($,pe));return _e.width=_e.right-_e.left,_e.height=_e.bottom-_e.top,_e.x=_e.left,_e.y=_e.top,_e}function mt($){var oe=$.reference,ae=$.element,ie=$.placement,le=ie?q$1(ie):null,pe=ie?te(ie):null,_e=oe.x+oe.width/2-ae.width/2,Ce=oe.y+oe.height/2-ae.height/2,$e;switch(le){case E$2:$e={x:_e,y:oe.y-ae.height};break;case R$1:$e={x:_e,y:oe.y+oe.height};break;case W$1:$e={x:oe.x+oe.width,y:Ce};break;case P$3:$e={x:oe.x-ae.width,y:Ce};break;default:$e={x:oe.x,y:oe.y}}var xe=le?Le(le):null;if(xe!=null){var Ie=xe==="y"?"height":"width";switch(pe){case U$2:$e[xe]=$e[xe]-(oe[Ie]/2-ae[Ie]/2);break;case J$2:$e[xe]=$e[xe]+(oe[Ie]/2-ae[Ie]/2);break}}return $e}function ne$1($,oe){oe===void 0&&(oe={});var ae=oe,ie=ae.placement,le=ie===void 0?$.placement:ie,pe=ae.boundary,_e=pe===void 0?Xe$1:pe,Ce=ae.rootBoundary,$e=Ce===void 0?je:Ce,xe=ae.elementContext,Ie=xe===void 0?K$2:xe,Ne=ae.altBoundary,Fe=Ne===void 0?!1:Ne,ze=ae.padding,At=ze===void 0?0:ze,Lt=ft$1(typeof At!="number"?At:ct(At,G$1)),hn=Ie===K$2?Ye:K$2,vn=$.rects.popper,_n=$.elements[Fe?hn:Ie],bn=Gt(Q$1(_n)?_n:_n.contextElement||I$2($.elements.popper),_e,$e),Cn=ee$1($.elements.reference),En=mt({reference:Cn,element:vn,strategy:"absolute",placement:le}),$n=Te(Object.assign({},vn,En)),wn=Ie===K$2?$n:Cn,Tn={top:bn.top-wn.top+Lt.top,bottom:wn.bottom-bn.bottom+Lt.bottom,left:bn.left-wn.left+Lt.left,right:wn.right-bn.right+Lt.right},xn=$.modifiersData.offset;if(Ie===K$2&&xn){var kn=xn[le];Object.keys(Tn).forEach(function(An){var On=[W$1,R$1].indexOf(An)>=0?1:-1,Nn=[E$2,R$1].indexOf(An)>=0?"y":"x";Tn[An]+=kn[Nn]*On})}return Tn}function Jt($,oe){oe===void 0&&(oe={});var ae=oe,ie=ae.placement,le=ae.boundary,pe=ae.rootBoundary,_e=ae.padding,Ce=ae.flipVariations,$e=ae.allowedAutoPlacements,xe=$e===void 0?Ee:$e,Ie=te(ie),Ne=Ie?Ce?De:De.filter(function(At){return te(At)===Ie}):G$1,Fe=Ne.filter(function(At){return xe.indexOf(At)>=0});Fe.length===0&&(Fe=Ne);var ze=Fe.reduce(function(At,Lt){return At[Lt]=ne$1($,{placement:Lt,boundary:le,rootBoundary:pe,padding:_e})[q$1(Lt)],At},{});return Object.keys(ze).sort(function(At,Lt){return ze[At]-ze[Lt]})}function Kt($){if(q$1($)===me$1)return[];var oe=be$1($);return[lt$2($),oe,lt$2(oe)]}function Qt($){var oe=$.state,ae=$.options,ie=$.name;if(!oe.modifiersData[ie]._skip){for(var le=ae.mainAxis,pe=le===void 0?!0:le,_e=ae.altAxis,Ce=_e===void 0?!0:_e,$e=ae.fallbackPlacements,xe=ae.padding,Ie=ae.boundary,Ne=ae.rootBoundary,Fe=ae.altBoundary,ze=ae.flipVariations,At=ze===void 0?!0:ze,Lt=ae.allowedAutoPlacements,hn=oe.options.placement,vn=q$1(hn),_n=vn===hn,bn=$e||(_n||!At?[be$1(hn)]:Kt(hn)),Cn=[hn].concat(bn).reduce(function(cr,nr){return cr.concat(q$1(nr)===me$1?Jt(oe,{placement:nr,boundary:Ie,rootBoundary:Ne,padding:xe,flipVariations:At,allowedAutoPlacements:Lt}):nr)},[]),En=oe.rects.reference,$n=oe.rects.popper,wn=new Map,Tn=!0,xn=Cn[0],kn=0;kn=0,zn=Rn?"width":"height",Bn=ne$1(oe,{placement:An,boundary:Ie,rootBoundary:Ne,altBoundary:Fe,padding:xe}),Mn=Rn?Nn?W$1:P$3:Nn?R$1:E$2;En[zn]>$n[zn]&&(Mn=be$1(Mn));var Fn=be$1(Mn),Vn=[];if(pe&&Vn.push(Bn[On]<=0),Ce&&Vn.push(Bn[Mn]<=0,Bn[Fn]<=0),Vn.every(function(cr){return cr})){xn=An,Tn=!1;break}wn.set(An,Vn)}if(Tn)for(var jn=At?3:1,Zn=function(cr){var nr=Cn.find(function(er){var rr=wn.get(er);if(rr)return rr.slice(0,cr).every(function(qn){return qn})});if(nr)return xn=nr,"break"},Gn=jn;Gn>0;Gn--){var Xn=Zn(Gn);if(Xn==="break")break}oe.placement!==xn&&(oe.modifiersData[ie]._skip=!0,oe.placement=xn,oe.reset=!0)}}var vt={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt($,oe,ae){return ae===void 0&&(ae={x:0,y:0}),{top:$.top-oe.height-ae.y,right:$.right-oe.width+ae.x,bottom:$.bottom-oe.height+ae.y,left:$.left-oe.width-ae.x}}function yt($){return[E$2,W$1,R$1,P$3].some(function(oe){return $[oe]>=0})}function Zt($){var oe=$.state,ae=$.name,ie=oe.rects.reference,le=oe.rects.popper,pe=oe.modifiersData.preventOverflow,_e=ne$1(oe,{elementContext:"reference"}),Ce=ne$1(oe,{altBoundary:!0}),$e=gt(_e,ie),xe=gt(Ce,le,pe),Ie=yt($e),Ne=yt(xe);oe.modifiersData[ae]={referenceClippingOffsets:$e,popperEscapeOffsets:xe,isReferenceHidden:Ie,hasPopperEscaped:Ne},oe.attributes.popper=Object.assign({},oe.attributes.popper,{"data-popper-reference-hidden":Ie,"data-popper-escaped":Ne})}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en$1($,oe,ae){var ie=q$1($),le=[P$3,E$2].indexOf(ie)>=0?-1:1,pe=typeof ae=="function"?ae(Object.assign({},oe,{placement:$})):ae,_e=pe[0],Ce=pe[1];return _e=_e||0,Ce=(Ce||0)*le,[P$3,W$1].indexOf(ie)>=0?{x:Ce,y:_e}:{x:_e,y:Ce}}function tn$1($){var oe=$.state,ae=$.options,ie=$.name,le=ae.offset,pe=le===void 0?[0,0]:le,_e=Ee.reduce(function(Ie,Ne){return Ie[Ne]=en$1(Ne,oe.rects,pe),Ie},{}),Ce=_e[oe.placement],$e=Ce.x,xe=Ce.y;oe.modifiersData.popperOffsets!=null&&(oe.modifiersData.popperOffsets.x+=$e,oe.modifiersData.popperOffsets.y+=xe),oe.modifiersData[ie]=_e}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn$1};function nn($){var oe=$.state,ae=$.name;oe.modifiersData[ae]=mt({reference:oe.rects.reference,element:oe.rects.popper,strategy:"absolute",placement:oe.placement})}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn($){return $==="x"?"y":"x"}function on($){var oe=$.state,ae=$.options,ie=$.name,le=ae.mainAxis,pe=le===void 0?!0:le,_e=ae.altAxis,Ce=_e===void 0?!1:_e,$e=ae.boundary,xe=ae.rootBoundary,Ie=ae.altBoundary,Ne=ae.padding,Fe=ae.tether,ze=Fe===void 0?!0:Fe,At=ae.tetherOffset,Lt=At===void 0?0:At,hn=ne$1(oe,{boundary:$e,rootBoundary:xe,padding:Ne,altBoundary:Ie}),vn=q$1(oe.placement),_n=te(oe.placement),bn=!_n,Cn=Le(vn),En=rn(Cn),$n=oe.modifiersData.popperOffsets,wn=oe.rects.reference,Tn=oe.rects.popper,xn=typeof Lt=="function"?Lt(Object.assign({},oe.rects,{placement:oe.placement})):Lt,kn=typeof xn=="number"?{mainAxis:xn,altAxis:xn}:Object.assign({mainAxis:0,altAxis:0},xn),An=oe.modifiersData.offset?oe.modifiersData.offset[oe.placement]:null,On={x:0,y:0};if($n){if(pe){var Nn,Rn=Cn==="y"?E$2:P$3,zn=Cn==="y"?R$1:W$1,Bn=Cn==="y"?"height":"width",Mn=$n[Cn],Fn=Mn+hn[Rn],Vn=Mn-hn[zn],jn=ze?-Tn[Bn]/2:0,Zn=_n===U$2?wn[Bn]:Tn[Bn],Gn=_n===U$2?-Tn[Bn]:-wn[Bn],Xn=oe.elements.arrow,cr=ze&&Xn?ke(Xn):{width:0,height:0},nr=oe.modifiersData["arrow#persistent"]?oe.modifiersData["arrow#persistent"].padding:st(),er=nr[Rn],rr=nr[zn],qn=fe$1(0,wn[Bn],cr[Bn]),Yn=bn?wn[Bn]/2-jn-qn-er-kn.mainAxis:Zn-qn-er-kn.mainAxis,ar=bn?-wn[Bn]/2+jn+qn+rr+kn.mainAxis:Gn+qn+rr+kn.mainAxis,pr=oe.elements.arrow&&se$1(oe.elements.arrow),Un=pr?Cn==="y"?pr.clientTop||0:pr.clientLeft||0:0,tr=(Nn=An==null?void 0:An[Cn])!=null?Nn:0,ur=Mn+Yn-tr-Un,_r=Mn+ar-tr,Er=fe$1(ze?ve(Fn,ur):Fn,Mn,ze?X$1(Vn,_r):Vn);$n[Cn]=Er,On[Cn]=Er-Mn}if(Ce){var sr,Pr=Cn==="x"?E$2:P$3,Sr=Cn==="x"?R$1:W$1,kr=$n[En],mr=En==="y"?"height":"width",lr=kr+hn[Pr],hr=kr-hn[Sr],gr=[E$2,P$3].indexOf(vn)!==-1,Or=(sr=An==null?void 0:An[En])!=null?sr:0,Lr=gr?lr:kr-wn[mr]-Tn[mr]-Or+kn.altAxis,Vr=gr?kr+wn[mr]+Tn[mr]-Or-kn.altAxis:hr,Rr=ze&&gr?St(Lr,kr,Vr):fe$1(ze?Lr:lr,kr,ze?Vr:hr);$n[En]=Rr,On[En]=Rr-kr}oe.modifiersData[ie]=On}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function an($){return{scrollLeft:$.scrollLeft,scrollTop:$.scrollTop}}function sn($){return $===H$3($)||!B($)?We($):an($)}function fn($){var oe=$.getBoundingClientRect(),ae=Z(oe.width)/$.offsetWidth||1,ie=Z(oe.height)/$.offsetHeight||1;return ae!==1||ie!==1}function cn($,oe,ae){ae===void 0&&(ae=!1);var ie=B(oe),le=B(oe)&&fn(oe),pe=I$2(oe),_e=ee$1($,le),Ce={scrollLeft:0,scrollTop:0},$e={x:0,y:0};return(ie||!ie&&!ae)&&((C$1(oe)!=="body"||Se$1(pe))&&(Ce=sn(oe)),B(oe)?($e=ee$1(oe,!0),$e.x+=oe.clientLeft,$e.y+=oe.clientTop):pe&&($e.x=Be$1(pe))),{x:_e.left+Ce.scrollLeft-$e.x,y:_e.top+Ce.scrollTop-$e.y,width:_e.width,height:_e.height}}function pn($){var oe=new Map,ae=new Set,ie=[];$.forEach(function(pe){oe.set(pe.name,pe)});function le(pe){ae.add(pe.name);var _e=[].concat(pe.requires||[],pe.requiresIfExists||[]);_e.forEach(function(Ce){if(!ae.has(Ce)){var $e=oe.get(Ce);$e&&le($e)}}),ie.push(pe)}return $.forEach(function(pe){ae.has(pe.name)||le(pe)}),ie}function un($){var oe=pn($);return ot$1.reduce(function(ae,ie){return ae.concat(oe.filter(function(le){return le.phase===ie}))},[])}function ln($){var oe;return function(){return oe||(oe=new Promise(function(ae){Promise.resolve().then(function(){oe=void 0,ae($())})})),oe}}function dn($){var oe=$.reduce(function(ae,ie){var le=ae[ie.name];return ae[ie.name]=le?Object.assign({},le,ie,{options:Object.assign({},le.options,ie.options),data:Object.assign({},le.data,ie.data)}):ie,ae},{});return Object.keys(oe).map(function(ae){return oe[ae]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t$2(){for(var $=arguments.length,oe=new Array($),ae=0;ae<$;ae++)oe[ae]=arguments[ae];return!oe.some(function(ie){return!(ie&&typeof ie.getBoundingClientRect=="function")})}function we($){$===void 0&&($={});var oe=$,ae=oe.defaultModifiers,ie=ae===void 0?[]:ae,le=oe.defaultOptions,pe=le===void 0?Ot:le;return function(_e,Ce,$e){$e===void 0&&($e=pe);var xe={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,pe),modifiersData:{},elements:{reference:_e,popper:Ce},attributes:{},styles:{}},Ie=[],Ne=!1,Fe={state:xe,setOptions:function(Lt){var hn=typeof Lt=="function"?Lt(xe.options):Lt;At(),xe.options=Object.assign({},pe,xe.options,hn),xe.scrollParents={reference:Q$1(_e)?ce$1(_e):_e.contextElement?ce$1(_e.contextElement):[],popper:ce$1(Ce)};var vn=un(dn([].concat(ie,xe.options.modifiers)));return xe.orderedModifiers=vn.filter(function(_n){return _n.enabled}),ze(),Fe.update()},forceUpdate:function(){if(!Ne){var Lt=xe.elements,hn=Lt.reference,vn=Lt.popper;if($t$2(hn,vn)){xe.rects={reference:cn(hn,se$1(vn),xe.options.strategy==="fixed"),popper:ke(vn)},xe.reset=!1,xe.placement=xe.options.placement,xe.orderedModifiers.forEach(function(Tn){return xe.modifiersData[Tn.name]=Object.assign({},Tn.data)});for(var _n=0;_n{const ie={name:"updateState",enabled:!0,phase:"write",fn:({state:$e})=>{const xe=deriveState($e);Object.assign(_e.value,xe)},requires:["computeStyles"]},le=computed(()=>{const{onFirstUpdate:$e,placement:xe,strategy:Ie,modifiers:Ne}=unref(ae);return{onFirstUpdate:$e,placement:xe||"bottom",strategy:Ie||"absolute",modifiers:[...Ne||[],ie,{name:"applyStyles",enabled:!1}]}}),pe=shallowRef(),_e=ref({styles:{popper:{position:unref(le).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),Ce=()=>{pe.value&&(pe.value.destroy(),pe.value=void 0)};return watch(le,$e=>{const xe=unref(pe);xe&&xe.setOptions($e)},{deep:!0}),watch([$,oe],([$e,xe])=>{Ce(),!(!$e||!xe)&&(pe.value=yn($e,xe,unref(le)))}),onBeforeUnmount(()=>{Ce()}),{state:computed(()=>{var $e;return{...(($e=unref(pe))==null?void 0:$e.state)||{}}}),styles:computed(()=>unref(_e).styles),attributes:computed(()=>unref(_e).attributes),update:()=>{var $e;return($e=unref(pe))==null?void 0:$e.update()},forceUpdate:()=>{var $e;return($e=unref(pe))==null?void 0:$e.forceUpdate()},instanceRef:computed(()=>unref(pe))}};function deriveState($){const oe=Object.keys($.elements),ae=fromPairs(oe.map(le=>[le,$.styles[le]||{}])),ie=fromPairs(oe.map(le=>[le,$.attributes[le]]));return{styles:ae,attributes:ie}}const useRestoreActive=($,oe)=>{let ae;watch(()=>$.value,ie=>{var le,pe;ie?(ae=document.activeElement,isRef(oe)&&((pe=(le=oe.value).focus)==null||pe.call(le))):ae.focus()})},useSameTarget=$=>{if(!$)return{onClick:NOOP,onMousedown:NOOP,onMouseup:NOOP};let oe=!1,ae=!1;return{onClick:_e=>{oe&&ae&&$(_e),oe=ae=!1},onMousedown:_e=>{oe=_e.target===_e.currentTarget},onMouseup:_e=>{ae=_e.target===_e.currentTarget}}},useThrottleRender=($,oe=0)=>{if(oe===0)return $;const ae=ref(!1);let ie=0;const le=()=>{ie&&clearTimeout(ie),ie=window.setTimeout(()=>{ae.value=$.value},oe)};return onMounted(le),watch(()=>$.value,pe=>{pe?le():ae.value=pe}),ae};function useTimeout(){let $;const oe=(ie,le)=>{ae(),$=window.setTimeout(ie,le)},ae=()=>window.clearTimeout($);return tryOnScopeDispose$2(()=>ae()),{registerTimeout:oe,cancelTimeout:ae}}const defaultIdInjection={prefix:Math.floor(Math.random()*1e4),current:0},ID_INJECTION_KEY=Symbol("elIdInjection"),useIdInjection=()=>getCurrentInstance()?inject(ID_INJECTION_KEY,defaultIdInjection):defaultIdInjection,useId=$=>{const oe=useIdInjection(),ae=useGetDerivedNamespace();return computed(()=>unref($)||`${ae.value}-id-${oe.prefix}-${oe.current++}`)};let registeredEscapeHandlers=[];const cachedHandler=$=>{const oe=$;oe.key===EVENT_CODE.esc&®isteredEscapeHandlers.forEach(ae=>ae(oe))},useEscapeKeydown=$=>{onMounted(()=>{registeredEscapeHandlers.length===0&&document.addEventListener("keydown",cachedHandler),isClient$2&®isteredEscapeHandlers.push($)}),onBeforeUnmount(()=>{registeredEscapeHandlers=registeredEscapeHandlers.filter(oe=>oe!==$),registeredEscapeHandlers.length===0&&isClient$2&&document.removeEventListener("keydown",cachedHandler)})};let cachedContainer;const usePopperContainerId=()=>{const $=useGetDerivedNamespace(),oe=useIdInjection(),ae=computed(()=>`${$.value}-popper-container-${oe.prefix}`),ie=computed(()=>`#${ae.value}`);return{id:ae,selector:ie}},createContainer=$=>{const oe=document.createElement("div");return oe.id=$,document.body.appendChild(oe),oe},usePopperContainer=()=>{const{id:$,selector:oe}=usePopperContainerId();return onBeforeMount(()=>{isClient$2&&!cachedContainer&&!document.body.querySelector(oe.value)&&(cachedContainer=createContainer($.value))}),{id:$,selector:oe}},useDelayedToggleProps=buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),useDelayedToggle=({showAfter:$,hideAfter:oe,autoClose:ae,open:ie,close:le})=>{const{registerTimeout:pe}=useTimeout(),{registerTimeout:_e,cancelTimeout:Ce}=useTimeout();return{onOpen:Ie=>{pe(()=>{ie(Ie);const Ne=unref(ae);isNumber$5(Ne)&&Ne>0&&_e(()=>{le(Ie)},Ne)},unref($))},onClose:Ie=>{Ce(),pe(()=>{le(Ie)},unref(oe))}}},FORWARD_REF_INJECTION_KEY=Symbol("elForwardRef"),useForwardRef=$=>{provide(FORWARD_REF_INJECTION_KEY,{setForwardRef:ae=>{$.value=ae}})},useForwardRefDirective=$=>({mounted(oe){$(oe)},updated(oe){$(oe)},unmounted(){$(null)}}),zIndex=ref(0),defaultInitialZIndex=2e3,zIndexContextKey=Symbol("zIndexContextKey"),useZIndex=$=>{const oe=$||inject(zIndexContextKey,void 0),ae=computed(()=>{const pe=unref(oe);return isNumber$5(pe)?pe:defaultInitialZIndex}),ie=computed(()=>ae.value+zIndex.value);return{initialZIndex:ae,currentZIndex:ie,nextZIndex:()=>(zIndex.value++,ie.value)}};function t($){return $.split("-")[1]}function e$1($){return $==="y"?"height":"width"}function n$2($){return $.split("-")[0]}function o$2($){return["top","bottom"].includes(n$2($))?"x":"y"}function i$2($,oe,ae){let{reference:ie,floating:le}=$;const pe=ie.x+ie.width/2-le.width/2,_e=ie.y+ie.height/2-le.height/2,Ce=o$2(oe),$e=e$1(Ce),xe=ie[$e]/2-le[$e]/2,Ie=Ce==="x";let Ne;switch(n$2(oe)){case"top":Ne={x:pe,y:ie.y-le.height};break;case"bottom":Ne={x:pe,y:ie.y+ie.height};break;case"right":Ne={x:ie.x+ie.width,y:_e};break;case"left":Ne={x:ie.x-le.width,y:_e};break;default:Ne={x:ie.x,y:ie.y}}switch(t(oe)){case"start":Ne[Ce]-=xe*(ae&&Ie?-1:1);break;case"end":Ne[Ce]+=xe*(ae&&Ie?-1:1)}return Ne}const r$1=async($,oe,ae)=>{const{placement:ie="bottom",strategy:le="absolute",middleware:pe=[],platform:_e}=ae,Ce=pe.filter(Boolean),$e=await(_e.isRTL==null?void 0:_e.isRTL(oe));let xe=await _e.getElementRects({reference:$,floating:oe,strategy:le}),{x:Ie,y:Ne}=i$2(xe,ie,$e),Fe=ie,ze={},At=0;for(let Lt=0;Lt({name:"arrow",options:$,async fn(oe){const{element:ae,padding:ie=0}=$||{},{x:le,y:pe,placement:_e,rects:Ce,platform:$e,elements:xe}=oe;if(ae==null)return{};const Ie=a$3(ie),Ne={x:le,y:pe},Fe=o$2(_e),ze=e$1(Fe),At=await $e.getDimensions(ae),Lt=Fe==="y",hn=Lt?"top":"left",vn=Lt?"bottom":"right",_n=Lt?"clientHeight":"clientWidth",bn=Ce.reference[ze]+Ce.reference[Fe]-Ne[Fe]-Ce.floating[ze],Cn=Ne[Fe]-Ce.reference[Fe],En=await($e.getOffsetParent==null?void 0:$e.getOffsetParent(ae));let $n=En?En[_n]:0;$n&&await($e.isElement==null?void 0:$e.isElement(En))||($n=xe.floating[_n]||Ce.floating[ze]);const wn=bn/2-Cn/2,Tn=Ie[hn],xn=$n-At[ze]-Ie[vn],kn=$n/2-At[ze]/2+wn,An=m$5(Tn,kn,xn),On=t(_e)!=null&&kn!=An&&Ce.reference[ze]/2-(kn$.concat(oe,oe+"-start",oe+"-end"),[]);const D$4=function($){return $===void 0&&($=0),{name:"offset",options:$,async fn(oe){const{x:ae,y:ie}=oe,le=await async function(pe,_e){const{placement:Ce,platform:$e,elements:xe}=pe,Ie=await($e.isRTL==null?void 0:$e.isRTL(xe.floating)),Ne=n$2(Ce),Fe=t(Ce),ze=o$2(Ce)==="x",At=["left","top"].includes(Ne)?-1:1,Lt=Ie&&ze?-1:1,hn=typeof _e=="function"?_e(pe):_e;let{mainAxis:vn,crossAxis:_n,alignmentAxis:bn}=typeof hn=="number"?{mainAxis:hn,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...hn};return Fe&&typeof bn=="number"&&(_n=Fe==="end"?-1*bn:bn),ze?{x:_n*Lt,y:vn*At}:{x:vn*At,y:_n*Lt}}(oe,$);return{x:ae+le.x,y:ie+le.y,data:le}}}};function n$1($){var oe;return((oe=$.ownerDocument)==null?void 0:oe.defaultView)||window}function o$1($){return n$1($).getComputedStyle($)}function i$1($){return $ instanceof n$1($).Node}function r($){return i$1($)?($.nodeName||"").toLowerCase():""}let l$1;function c$3(){if(l$1)return l$1;const $=navigator.userAgentData;return $&&Array.isArray($.brands)?(l$1=$.brands.map(oe=>oe.brand+"/"+oe.version).join(" "),l$1):navigator.userAgent}function s$1($){return $ instanceof n$1($).HTMLElement}function f$2($){return $ instanceof n$1($).Element}function u$2($){return typeof ShadowRoot>"u"?!1:$ instanceof n$1($).ShadowRoot||$ instanceof ShadowRoot}function a$2($){const{overflow:oe,overflowX:ae,overflowY:ie,display:le}=o$1($);return/auto|scroll|overlay|hidden|clip/.test(oe+ie+ae)&&!["inline","contents"].includes(le)}function d$2($){return["table","td","th"].includes(r($))}function h$2($){const oe=/firefox/i.test(c$3()),ae=o$1($),ie=ae.backdropFilter||ae.WebkitBackdropFilter;return ae.transform!=="none"||ae.perspective!=="none"||!!ie&&ie!=="none"||oe&&ae.willChange==="filter"||oe&&!!ae.filter&&ae.filter!=="none"||["transform","perspective"].some(le=>ae.willChange.includes(le))||["paint","layout","strict","content"].some(le=>{const pe=ae.contain;return pe!=null&&pe.includes(le)})}function p$2(){return/^((?!chrome|android).)*safari/i.test(c$3())}function g$1($){return["html","body","#document"].includes(r($))}const m$4=Math.min,y$1=Math.max,x$1=Math.round;function w$1($){const oe=o$1($);let ae=parseFloat(oe.width),ie=parseFloat(oe.height);const le=s$1($),pe=le?$.offsetWidth:ae,_e=le?$.offsetHeight:ie,Ce=x$1(ae)!==pe||x$1(ie)!==_e;return Ce&&(ae=pe,ie=_e),{width:ae,height:ie,fallback:Ce}}function v$1($){return f$2($)?$:$.contextElement}const b$2={x:1,y:1};function L$2($){const oe=v$1($);if(!s$1(oe))return b$2;const ae=oe.getBoundingClientRect(),{width:ie,height:le,fallback:pe}=w$1(oe);let _e=(pe?x$1(ae.width):ae.width)/ie,Ce=(pe?x$1(ae.height):ae.height)/le;return _e&&Number.isFinite(_e)||(_e=1),Ce&&Number.isFinite(Ce)||(Ce=1),{x:_e,y:Ce}}function E$1($,oe,ae,ie){var le,pe;oe===void 0&&(oe=!1),ae===void 0&&(ae=!1);const _e=$.getBoundingClientRect(),Ce=v$1($);let $e=b$2;oe&&(ie?f$2(ie)&&($e=L$2(ie)):$e=L$2($));const xe=Ce?n$1(Ce):window,Ie=p$2()&&ae;let Ne=(_e.left+(Ie&&((le=xe.visualViewport)==null?void 0:le.offsetLeft)||0))/$e.x,Fe=(_e.top+(Ie&&((pe=xe.visualViewport)==null?void 0:pe.offsetTop)||0))/$e.y,ze=_e.width/$e.x,At=_e.height/$e.y;if(Ce){const Lt=n$1(Ce),hn=ie&&f$2(ie)?n$1(ie):ie;let vn=Lt.frameElement;for(;vn&&ie&&hn!==Lt;){const _n=L$2(vn),bn=vn.getBoundingClientRect(),Cn=getComputedStyle(vn);bn.x+=(vn.clientLeft+parseFloat(Cn.paddingLeft))*_n.x,bn.y+=(vn.clientTop+parseFloat(Cn.paddingTop))*_n.y,Ne*=_n.x,Fe*=_n.y,ze*=_n.x,At*=_n.y,Ne+=bn.x,Fe+=bn.y,vn=n$1(vn).frameElement}}return l$2({width:ze,height:At,x:Ne,y:Fe})}function T$2($){return((i$1($)?$.ownerDocument:$.document)||window.document).documentElement}function R($){return f$2($)?{scrollLeft:$.scrollLeft,scrollTop:$.scrollTop}:{scrollLeft:$.pageXOffset,scrollTop:$.pageYOffset}}function C($){return E$1(T$2($)).left+R($).scrollLeft}function F$1($){if(r($)==="html")return $;const oe=$.assignedSlot||$.parentNode||u$2($)&&$.host||T$2($);return u$2(oe)?oe.host:oe}function W($){const oe=F$1($);return g$1(oe)?oe.ownerDocument.body:s$1(oe)&&a$2(oe)?oe:W(oe)}function D$3($,oe){var ae;oe===void 0&&(oe=[]);const ie=W($),le=ie===((ae=$.ownerDocument)==null?void 0:ae.body),pe=n$1(ie);return le?oe.concat(pe,pe.visualViewport||[],a$2(ie)?ie:[]):oe.concat(ie,D$3(ie))}function S$2($,oe,ae){let ie;if(oe==="viewport")ie=function(_e,Ce){const $e=n$1(_e),xe=T$2(_e),Ie=$e.visualViewport;let Ne=xe.clientWidth,Fe=xe.clientHeight,ze=0,At=0;if(Ie){Ne=Ie.width,Fe=Ie.height;const Lt=p$2();(!Lt||Lt&&Ce==="fixed")&&(ze=Ie.offsetLeft,At=Ie.offsetTop)}return{width:Ne,height:Fe,x:ze,y:At}}($,ae);else if(oe==="document")ie=function(_e){const Ce=T$2(_e),$e=R(_e),xe=_e.ownerDocument.body,Ie=y$1(Ce.scrollWidth,Ce.clientWidth,xe.scrollWidth,xe.clientWidth),Ne=y$1(Ce.scrollHeight,Ce.clientHeight,xe.scrollHeight,xe.clientHeight);let Fe=-$e.scrollLeft+C(_e);const ze=-$e.scrollTop;return o$1(xe).direction==="rtl"&&(Fe+=y$1(Ce.clientWidth,xe.clientWidth)-Ie),{width:Ie,height:Ne,x:Fe,y:ze}}(T$2($));else if(f$2(oe))ie=function(_e,Ce){const $e=E$1(_e,!0,Ce==="fixed"),xe=$e.top+_e.clientTop,Ie=$e.left+_e.clientLeft,Ne=s$1(_e)?L$2(_e):{x:1,y:1};return{width:_e.clientWidth*Ne.x,height:_e.clientHeight*Ne.y,x:Ie*Ne.x,y:xe*Ne.y}}(oe,ae);else{const _e={...oe};if(p$2()){var le,pe;const Ce=n$1($);_e.x-=((le=Ce.visualViewport)==null?void 0:le.offsetLeft)||0,_e.y-=((pe=Ce.visualViewport)==null?void 0:pe.offsetTop)||0}ie=_e}return l$2(ie)}function A$1($,oe){return s$1($)&&o$1($).position!=="fixed"?oe?oe($):$.offsetParent:null}function H$2($,oe){const ae=n$1($);if(!s$1($))return ae;let ie=A$1($,oe);for(;ie&&d$2(ie)&&o$1(ie).position==="static";)ie=A$1(ie,oe);return ie&&(r(ie)==="html"||r(ie)==="body"&&o$1(ie).position==="static"&&!h$2(ie))?ae:ie||function(le){let pe=F$1(le);for(;s$1(pe)&&!g$1(pe);){if(h$2(pe))return pe;pe=F$1(pe)}return null}($)||ae}function V($,oe,ae){const ie=s$1(oe),le=T$2(oe),pe=E$1($,!0,ae==="fixed",oe);let _e={scrollLeft:0,scrollTop:0};const Ce={x:0,y:0};if(ie||!ie&&ae!=="fixed")if((r(oe)!=="body"||a$2(le))&&(_e=R(oe)),s$1(oe)){const $e=E$1(oe,!0);Ce.x=$e.x+oe.clientLeft,Ce.y=$e.y+oe.clientTop}else le&&(Ce.x=C(le));return{x:pe.left+_e.scrollLeft-Ce.x,y:pe.top+_e.scrollTop-Ce.y,width:pe.width,height:pe.height}}const O$2={getClippingRect:function($){let{element:oe,boundary:ae,rootBoundary:ie,strategy:le}=$;const pe=ae==="clippingAncestors"?function(xe,Ie){const Ne=Ie.get(xe);if(Ne)return Ne;let Fe=D$3(xe).filter(hn=>f$2(hn)&&r(hn)!=="body"),ze=null;const At=o$1(xe).position==="fixed";let Lt=At?F$1(xe):xe;for(;f$2(Lt)&&!g$1(Lt);){const hn=o$1(Lt),vn=h$2(Lt);hn.position==="fixed"&&(ze=null),(At?vn||ze:vn||hn.position!=="static"||!ze||!["absolute","fixed"].includes(ze.position))?ze=hn:Fe=Fe.filter(_n=>_n!==Lt),Lt=F$1(Lt)}return Ie.set(xe,Fe),Fe}(oe,this._c):[].concat(ae),_e=[...pe,ie],Ce=_e[0],$e=_e.reduce((xe,Ie)=>{const Ne=S$2(oe,Ie,le);return xe.top=y$1(Ne.top,xe.top),xe.right=m$4(Ne.right,xe.right),xe.bottom=m$4(Ne.bottom,xe.bottom),xe.left=y$1(Ne.left,xe.left),xe},S$2(oe,Ce,le));return{width:$e.right-$e.left,height:$e.bottom-$e.top,x:$e.left,y:$e.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function($){let{rect:oe,offsetParent:ae,strategy:ie}=$;const le=s$1(ae),pe=T$2(ae);if(ae===pe)return oe;let _e={scrollLeft:0,scrollTop:0},Ce={x:1,y:1};const $e={x:0,y:0};if((le||!le&&ie!=="fixed")&&((r(ae)!=="body"||a$2(pe))&&(_e=R(ae)),s$1(ae))){const xe=E$1(ae);Ce=L$2(ae),$e.x=xe.x+ae.clientLeft,$e.y=xe.y+ae.clientTop}return{width:oe.width*Ce.x,height:oe.height*Ce.y,x:oe.x*Ce.x-_e.scrollLeft*Ce.x+$e.x,y:oe.y*Ce.y-_e.scrollTop*Ce.y+$e.y}},isElement:f$2,getDimensions:function($){return w$1($)},getOffsetParent:H$2,getDocumentElement:T$2,getScale:L$2,async getElementRects($){let{reference:oe,floating:ae,strategy:ie}=$;const le=this.getOffsetParent||H$2,pe=this.getDimensions;return{reference:V(oe,await le(ae),ie),floating:{x:0,y:0,...await pe(ae)}}},getClientRects:$=>Array.from($.getClientRects()),isRTL:$=>o$1($).direction==="rtl"},z=($,oe,ae)=>{const ie=new Map,le={platform:O$2,...ae},pe={...le.platform,_c:ie};return r$1($,oe,{...le,platform:pe})};buildProps({});const unrefReference=$=>{if(!isClient$2)return;if(!$)return $;const oe=unrefElement$1($);return oe||(isRef($)?oe:$)},useFloating=({middleware:$,placement:oe,strategy:ae})=>{const ie=ref(),le=ref(),pe=ref(),_e=ref(),Ce=ref({}),$e={x:pe,y:_e,placement:oe,strategy:ae,middlewareData:Ce},xe=async()=>{if(!isClient$2)return;const Ie=unrefReference(ie),Ne=unrefElement$1(le);if(!Ie||!Ne)return;const Fe=await z(Ie,Ne,{placement:unref(oe),strategy:unref(ae),middleware:unref($)});keysOf($e).forEach(ze=>{$e[ze].value=Fe[ze]})};return onMounted(()=>{watchEffect(()=>{xe()})}),{...$e,update:xe,referenceRef:ie,contentRef:le}},arrowMiddleware=({arrowRef:$,padding:oe})=>({name:"arrow",options:{element:$,padding:oe},fn(ae){const ie=unref($);return ie?u$3({element:ie,padding:oe}).fn(ae):{}}});function useCursor($){const oe=ref();function ae(){if($.value==null)return;const{selectionStart:le,selectionEnd:pe,value:_e}=$.value;if(le==null||pe==null)return;const Ce=_e.slice(0,Math.max(0,le)),$e=_e.slice(Math.max(0,pe));oe.value={selectionStart:le,selectionEnd:pe,value:_e,beforeTxt:Ce,afterTxt:$e}}function ie(){if($.value==null||oe.value==null)return;const{value:le}=$.value,{beforeTxt:pe,afterTxt:_e,selectionStart:Ce}=oe.value;if(pe==null||_e==null||Ce==null)return;let $e=le.length;if(le.endsWith(_e))$e=le.length-_e.length;else if(le.startsWith(pe))$e=pe.length;else{const xe=pe[Ce-1],Ie=le.indexOf(xe,Ce-1);Ie!==-1&&($e=Ie+1)}$.value.setSelectionRange($e,$e)}return[ae,ie]}const getOrderedChildren=($,oe,ae)=>flattedChildren($.subTree).filter(pe=>{var _e;return isVNode$1(pe)&&((_e=pe.type)==null?void 0:_e.name)===oe&&!!pe.component}).map(pe=>pe.component.uid).map(pe=>ae[pe]).filter(pe=>!!pe),useOrderedChildren=($,oe)=>{const ae={},ie=shallowRef([]);return{children:ie,addChild:_e=>{ae[_e.uid]=_e,ie.value=getOrderedChildren($,oe,ae)},removeChild:_e=>{delete ae[_e],ie.value=ie.value.filter(Ce=>Ce.uid!==_e)}}},useSizeProp=buildProp({type:String,values:componentSizes,required:!1}),SIZE_INJECTION_KEY=Symbol("size"),useGlobalSize=()=>{const $=inject(SIZE_INJECTION_KEY,{});return computed(()=>unref($.size)||"")},configProviderContextKey=Symbol(),globalConfig=ref();function useGlobalConfig($,oe=void 0){const ae=getCurrentInstance()?inject(configProviderContextKey,globalConfig):globalConfig;return $?computed(()=>{var ie,le;return(le=(ie=ae.value)==null?void 0:ie[$])!=null?le:oe}):ae}function useGlobalComponentSettings($,oe){const ae=useGlobalConfig(),ie=useNamespace($,computed(()=>{var Ce;return((Ce=ae.value)==null?void 0:Ce.namespace)||defaultNamespace})),le=useLocale(computed(()=>{var Ce;return(Ce=ae.value)==null?void 0:Ce.locale})),pe=useZIndex(computed(()=>{var Ce;return((Ce=ae.value)==null?void 0:Ce.zIndex)||defaultInitialZIndex})),_e=computed(()=>{var Ce;return unref(oe)||((Ce=ae.value)==null?void 0:Ce.size)||""});return provideGlobalConfig(computed(()=>unref(ae)||{})),{ns:ie,locale:le,zIndex:pe,size:_e}}const provideGlobalConfig=($,oe,ae=!1)=>{var ie;const le=!!getCurrentInstance(),pe=le?useGlobalConfig():void 0,_e=(ie=oe==null?void 0:oe.provide)!=null?ie:le?provide:void 0;if(!_e)return;const Ce=computed(()=>{const $e=unref($);return pe!=null&&pe.value?mergeConfig$1(pe.value,$e):$e});return _e(configProviderContextKey,Ce),_e(localeContextKey,computed(()=>Ce.value.locale)),_e(namespaceContextKey,computed(()=>Ce.value.namespace)),_e(zIndexContextKey,computed(()=>Ce.value.zIndex)),_e(SIZE_INJECTION_KEY,{size:computed(()=>Ce.value.size||"")}),(ae||!globalConfig.value)&&(globalConfig.value=Ce.value),Ce},mergeConfig$1=($,oe)=>{var ae;const ie=[...new Set([...keysOf($),...keysOf(oe)])],le={};for(const pe of ie)le[pe]=(ae=oe[pe])!=null?ae:$[pe];return le},configProviderProps=buildProps({a11y:{type:Boolean,default:!0},locale:{type:definePropType(Object)},size:useSizeProp,button:{type:definePropType(Object)},experimentalFeatures:{type:definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),messageConfig={},ConfigProvider=defineComponent({name:"ElConfigProvider",props:configProviderProps,setup($,{slots:oe}){watch(()=>$.message,ie=>{Object.assign(messageConfig,ie??{})},{immediate:!0,deep:!0});const ae=provideGlobalConfig($);return()=>renderSlot(oe,"default",{config:ae==null?void 0:ae.value})}}),ElConfigProvider=withInstall(ConfigProvider),version$2="2.3.4",makeInstaller=($=[])=>({version:version$2,install:(ae,ie)=>{ae[INSTALLED_KEY]||(ae[INSTALLED_KEY]=!0,$.forEach(le=>ae.use(le)),ie&&provideGlobalConfig(ie,ae,!0))}}),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"}}),affixEmits={scroll:({scrollTop:$,fixed:oe})=>isNumber$5($)&&isBoolean$3(oe),[CHANGE_EVENT]:$=>isBoolean$3($)};var _export_sfc$1=($,oe)=>{const ae=$.__vccOpts||$;for(const[ie,le]of oe)ae[ie]=le;return ae};const COMPONENT_NAME$n="ElAffix",__default__$1C=defineComponent({name:COMPONENT_NAME$n}),_sfc_main$2k=defineComponent({...__default__$1C,props:affixProps,emits:affixEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useNamespace("affix"),pe=shallowRef(),_e=shallowRef(),Ce=shallowRef(),{height:$e}=useWindowSize(),{height:xe,width:Ie,top:Ne,bottom:Fe,update:ze}=useElementBounding(_e,{windowScroll:!1}),At=useElementBounding(pe),Lt=ref(!1),hn=ref(0),vn=ref(0),_n=computed(()=>({height:Lt.value?`${xe.value}px`:"",width:Lt.value?`${Ie.value}px`:""})),bn=computed(()=>{if(!Lt.value)return{};const $n=ie.offset?addUnit(ie.offset):0;return{height:`${xe.value}px`,width:`${Ie.value}px`,top:ie.position==="top"?$n:"",bottom:ie.position==="bottom"?$n:"",transform:vn.value?`translateY(${vn.value}px)`:"",zIndex:ie.zIndex}}),Cn=()=>{if(Ce.value)if(hn.value=Ce.value instanceof Window?document.documentElement.scrollTop:Ce.value.scrollTop||0,ie.position==="top")if(ie.target){const $n=At.bottom.value-ie.offset-xe.value;Lt.value=ie.offset>Ne.value&&At.bottom.value>0,vn.value=$n<0?$n:0}else Lt.value=ie.offset>Ne.value;else if(ie.target){const $n=$e.value-At.top.value-ie.offset-xe.value;Lt.value=$e.value-ie.offsetAt.top.value,vn.value=$n<0?-$n:0}else Lt.value=$e.value-ie.offset{ze(),ae("scroll",{scrollTop:hn.value,fixed:Lt.value})};return watch(Lt,$n=>ae("change",$n)),onMounted(()=>{var $n;ie.target?(pe.value=($n=document.querySelector(ie.target))!=null?$n:void 0,pe.value||throwError$1(COMPONENT_NAME$n,`Target is not existed: ${ie.target}`)):pe.value=document.documentElement,Ce.value=getScrollContainer(_e.value,!0),ze()}),useEventListener$1(Ce,"scroll",En),watchEffect(Cn),oe({update:Cn,updateRoot:ze}),($n,wn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:_e,class:normalizeClass(unref(le).b()),style:normalizeStyle$1(unref(_n))},[createBaseVNode("div",{class:normalizeClass({[unref(le).m("fixed")]:Lt.value}),style:normalizeStyle$1(unref(bn))},[renderSlot($n.$slots,"default")],6)],6))}});var Affix=_export_sfc$1(_sfc_main$2k,[["__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}}),__default__$1B=defineComponent({name:"ElIcon",inheritAttrs:!1}),_sfc_main$2j=defineComponent({...__default__$1B,props:iconProps,setup($){const oe=$,ae=useNamespace("icon"),ie=computed(()=>{const{size:le,color:pe}=oe;return!le&&!pe?{}:{fontSize:isUndefined$1(le)?void 0:addUnit(le),"--color":pe}});return(le,pe)=>(openBlock(),createElementBlock("i",mergeProps({class:unref(ae).b(),style:unref(ie)},le.$attrs),[renderSlot(le.$slots,"default")],16))}});var Icon$2=_export_sfc$1(_sfc_main$2j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ElIcon=withInstall(Icon$2),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"}}),alertEmits={close:$=>$ instanceof MouseEvent},__default__$1A=defineComponent({name:"ElAlert"}),_sfc_main$2i=defineComponent({...__default__$1A,props:alertProps,emits:alertEmits,setup($,{emit:oe}){const ae=$,{Close:ie}=TypeComponents,le=useSlots(),pe=useNamespace("alert"),_e=ref(!0),Ce=computed(()=>TypeComponentsMap[ae.type]),$e=computed(()=>[pe.e("icon"),{[pe.is("big")]:!!ae.description||!!le.default}]),xe=computed(()=>({[pe.is("bold")]:ae.description||le.default})),Ie=Ne=>{_e.value=!1,oe("close",Ne)};return(Ne,Fe)=>(openBlock(),createBlock(Transition,{name:unref(pe).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:normalizeClass([unref(pe).b(),unref(pe).m(Ne.type),unref(pe).is("center",Ne.center),unref(pe).is(Ne.effect)]),role:"alert"},[Ne.showIcon&&unref(Ce)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref($e))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ce))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(pe).e("content"))},[Ne.title||Ne.$slots.title?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(pe).e("title"),unref(xe)])},[renderSlot(Ne.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(Ne.title),1)])],2)):createCommentVNode("v-if",!0),Ne.$slots.default||Ne.description?(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(unref(pe).e("description"))},[renderSlot(Ne.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ne.description),1)])],2)):createCommentVNode("v-if",!0),Ne.closable?(openBlock(),createElementBlock(Fragment,{key:2},[Ne.closeText?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(pe).e("close-btn"),unref(pe).is("customed")]),onClick:Ie},toDisplayString$1(Ne.closeText),3)):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(pe).e("close-btn")),onClick:Ie},{default:withCtx(()=>[createVNode(unref(ie))]),_:1},8,["class"]))],64)):createCommentVNode("v-if",!0)],2)],2),[[vShow,_e.value]])]),_:3},8,["name"]))}});var Alert=_export_sfc$1(_sfc_main$2i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const ElAlert=withInstall(Alert),formContextKey=Symbol("formContextKey"),formItemContextKey=Symbol("formItemContextKey"),useFormSize=($,oe={})=>{const ae=ref(void 0),ie=oe.prop?ae:useProp("size"),le=oe.global?ae:useGlobalSize(),pe=oe.form?{size:void 0}:inject(formContextKey,void 0),_e=oe.formItem?{size:void 0}:inject(formItemContextKey,void 0);return computed(()=>ie.value||unref($)||(_e==null?void 0:_e.size)||(pe==null?void 0:pe.size)||le.value||"")},useFormDisabled=$=>{const oe=useProp("disabled"),ae=inject(formContextKey,void 0);return computed(()=>oe.value||unref($)||(ae==null?void 0:ae.disabled)||!1)},useFormItem=()=>{const $=inject(formContextKey,void 0),oe=inject(formItemContextKey,void 0);return{form:$,formItem:oe}},useFormItemInputId=($,{formItemContext:oe,disableIdGeneration:ae,disableIdManagement:ie})=>{ae||(ae=ref(!1)),ie||(ie=ref(!1));const le=ref();let pe;const _e=computed(()=>{var Ce;return!!(!$.label&&oe&&oe.inputIds&&((Ce=oe.inputIds)==null?void 0:Ce.length)<=1)});return onMounted(()=>{pe=watch([toRef$1($,"id"),ae],([Ce,$e])=>{const xe=Ce??($e?void 0:useId().value);xe!==le.value&&(oe!=null&&oe.removeInputId&&(le.value&&oe.removeInputId(le.value),!(ie!=null&&ie.value)&&!$e&&xe&&oe.addInputId(xe)),le.value=xe)},{immediate:!0})}),onUnmounted(()=>{pe&&pe(),oe!=null&&oe.removeInputId&&le.value&&oe.removeInputId(le.value)}),{isLabeledByFormItem:_e,inputId:le}},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:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),formEmits={validate:($,oe,ae)=>(isArray$c($)||isString$7($))&&isBoolean$3(oe)&&isString$7(ae)};function useFormLabelWidth(){const $=ref([]),oe=computed(()=>{if(!$.value.length)return"0";const pe=Math.max(...$.value);return pe?`${pe}px`:""});function ae(pe){const _e=$.value.indexOf(pe);return _e===-1&&oe.value,_e}function ie(pe,_e){if(pe&&_e){const Ce=ae(_e);$.value.splice(Ce,1,pe)}else pe&&$.value.push(pe)}function le(pe){const _e=ae(pe);_e>-1&&$.value.splice(_e,1)}return{autoLabelWidth:oe,registerLabelWidth:ie,deregisterLabelWidth:le}}const filterFields=($,oe)=>{const ae=castArray$1(oe);return ae.length>0?$.filter(ie=>ie.prop&&ae.includes(ie.prop)):$},COMPONENT_NAME$m="ElForm",__default__$1z=defineComponent({name:COMPONENT_NAME$m}),_sfc_main$2h=defineComponent({...__default__$1z,props:formProps,emits:formEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=[],pe=useFormSize(),_e=useNamespace("form"),Ce=computed(()=>{const{labelPosition:_n,inline:bn}=ie;return[_e.b(),_e.m(pe.value||"default"),{[_e.m(`label-${_n}`)]:_n,[_e.m("inline")]:bn}]}),$e=_n=>{le.push(_n)},xe=_n=>{_n.prop&&le.splice(le.indexOf(_n),1)},Ie=(_n=[])=>{ie.model&&filterFields(le,_n).forEach(bn=>bn.resetField())},Ne=(_n=[])=>{filterFields(le,_n).forEach(bn=>bn.clearValidate())},Fe=computed(()=>!!ie.model),ze=_n=>{if(le.length===0)return[];const bn=filterFields(le,_n);return bn.length?bn:[]},At=async _n=>hn(void 0,_n),Lt=async(_n=[])=>{if(!Fe.value)return!1;const bn=ze(_n);if(bn.length===0)return!0;let Cn={};for(const En of bn)try{await En.validate("")}catch($n){Cn={...Cn,...$n}}return Object.keys(Cn).length===0?!0:Promise.reject(Cn)},hn=async(_n=[],bn)=>{const Cn=!isFunction$5(bn);try{const En=await Lt(_n);return En===!0&&(bn==null||bn(En)),En}catch(En){if(En instanceof Error)throw En;const $n=En;return ie.scrollToError&&vn(Object.keys($n)[0]),bn==null||bn(!1,$n),Cn&&Promise.reject($n)}},vn=_n=>{var bn;const Cn=filterFields(le,_n)[0];Cn&&((bn=Cn.$el)==null||bn.scrollIntoView(ie.scrollIntoViewOptions))};return watch(()=>ie.rules,()=>{ie.validateOnRuleChange&&At().catch(_n=>void 0)},{deep:!0}),provide(formContextKey,reactive({...toRefs(ie),emit:ae,resetFields:Ie,clearValidate:Ne,validateField:hn,addField:$e,removeField:xe,...useFormLabelWidth()})),oe({validate:At,validateField:hn,resetFields:Ie,clearValidate:Ne,scrollToField:vn}),(_n,bn)=>(openBlock(),createElementBlock("form",{class:normalizeClass(unref(Ce))},[renderSlot(_n.$slots,"default")],2))}});var Form=_export_sfc$1(_sfc_main$2h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function($){for(var oe=1;oe"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($,oe,ae){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(le,pe,_e){var Ce=[null];Ce.push.apply(Ce,pe);var $e=Function.bind.apply(le,Ce),xe=new $e;return _e&&_setPrototypeOf(xe,_e.prototype),xe},_construct.apply(null,arguments)}function _isNativeFunction($){return Function.toString.call($).indexOf("[native code]")!==-1}function _wrapNativeSuper($){var oe=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(ie){if(ie===null||!_isNativeFunction(ie))return ie;if(typeof ie!="function")throw new TypeError("Super expression must either be null or a function");if(typeof oe<"u"){if(oe.has(ie))return oe.get(ie);oe.set(ie,le)}function le(){return _construct(ie,arguments,_getPrototypeOf(this).constructor)}return le.prototype=Object.create(ie.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(le,ie)},_wrapNativeSuper($)}var formatRegExp=/%[sdj%]/g,warning$1=function(){};typeof process<"u"&&process.env;function convertFieldsError($){if(!$||!$.length)return null;var oe={};return $.forEach(function(ae){var ie=ae.field;oe[ie]=oe[ie]||[],oe[ie].push(ae)}),oe}function format$2($){for(var oe=arguments.length,ae=new Array(oe>1?oe-1:0),ie=1;ie=pe)return Ce;switch(Ce){case"%s":return String(ae[le++]);case"%d":return Number(ae[le++]);case"%j":try{return JSON.stringify(ae[le++])}catch{return"[Circular]"}break;default:return Ce}});return _e}return $}function isNativeStringType($){return $==="string"||$==="url"||$==="hex"||$==="email"||$==="date"||$==="pattern"}function isEmptyValue($,oe){return!!($==null||oe==="array"&&Array.isArray($)&&!$.length||isNativeStringType(oe)&&typeof $=="string"&&!$)}function asyncParallelArray($,oe,ae){var ie=[],le=0,pe=$.length;function _e(Ce){ie.push.apply(ie,Ce||[]),le++,le===pe&&ae(ie)}$.forEach(function(Ce){oe(Ce,_e)})}function asyncSerialArray($,oe,ae){var ie=0,le=$.length;function pe(_e){if(_e&&_e.length){ae(_e);return}var Ce=ie;ie=ie+1,Ce()\[\]\\.,;:\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$1={integer:function(oe){return types$1.number(oe)&&parseInt(oe,10)===oe},float:function(oe){return types$1.number(oe)&&!types$1.integer(oe)},array:function(oe){return Array.isArray(oe)},regexp:function(oe){if(oe instanceof RegExp)return!0;try{return!!new RegExp(oe)}catch{return!1}},date:function(oe){return typeof oe.getTime=="function"&&typeof oe.getMonth=="function"&&typeof oe.getYear=="function"&&!isNaN(oe.getTime())},number:function(oe){return isNaN(oe)?!1:typeof oe=="number"},object:function(oe){return typeof oe=="object"&&!types$1.array(oe)},method:function(oe){return typeof oe=="function"},email:function(oe){return typeof oe=="string"&&oe.length<=320&&!!oe.match(pattern$2.email)},url:function(oe){return typeof oe=="string"&&oe.length<=2048&&!!oe.match(getUrlRegex())},hex:function(oe){return typeof oe=="string"&&!!oe.match(pattern$2.hex)}},type$1=function(oe,ae,ie,le,pe){if(oe.required&&ae===void 0){required$1(oe,ae,ie,le,pe);return}var _e=["integer","float","array","regexp","object","method","email","number","date","url","hex"],Ce=oe.type;_e.indexOf(Ce)>-1?types$1[Ce](ae)||le.push(format$2(pe.messages.types[Ce],oe.fullField,oe.type)):Ce&&typeof ae!==oe.type&&le.push(format$2(pe.messages.types[Ce],oe.fullField,oe.type))},range=function(oe,ae,ie,le,pe){var _e=typeof oe.len=="number",Ce=typeof oe.min=="number",$e=typeof oe.max=="number",xe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ie=ae,Ne=null,Fe=typeof ae=="number",ze=typeof ae=="string",At=Array.isArray(ae);if(Fe?Ne="number":ze?Ne="string":At&&(Ne="array"),!Ne)return!1;At&&(Ie=ae.length),ze&&(Ie=ae.replace(xe,"_").length),_e?Ie!==oe.len&&le.push(format$2(pe.messages[Ne].len,oe.fullField,oe.len)):Ce&&!$e&&Ieoe.max?le.push(format$2(pe.messages[Ne].max,oe.fullField,oe.max)):Ce&&$e&&(Ieoe.max)&&le.push(format$2(pe.messages[Ne].range,oe.fullField,oe.min,oe.max))},ENUM$1="enum",enumerable$1=function(oe,ae,ie,le,pe){oe[ENUM$1]=Array.isArray(oe[ENUM$1])?oe[ENUM$1]:[],oe[ENUM$1].indexOf(ae)===-1&&le.push(format$2(pe.messages[ENUM$1],oe.fullField,oe[ENUM$1].join(", ")))},pattern$1=function(oe,ae,ie,le,pe){if(oe.pattern){if(oe.pattern instanceof RegExp)oe.pattern.lastIndex=0,oe.pattern.test(ae)||le.push(format$2(pe.messages.pattern.mismatch,oe.fullField,ae,oe.pattern));else if(typeof oe.pattern=="string"){var _e=new RegExp(oe.pattern);_e.test(ae)||le.push(format$2(pe.messages.pattern.mismatch,oe.fullField,ae,oe.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae,"string")&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe,"string"),isEmptyValue(ae,"string")||(rules.type(oe,ae,le,_e,pe),rules.range(oe,ae,le,_e,pe),rules.pattern(oe,ae,le,_e,pe),oe.whitespace===!0&&rules.whitespace(oe,ae,le,_e,pe))}ie(_e)},method=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&rules.type(oe,ae,le,_e,pe)}ie(_e)},number$3=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(ae===""&&(ae=void 0),isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&(rules.type(oe,ae,le,_e,pe),rules.range(oe,ae,le,_e,pe))}ie(_e)},_boolean=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&rules.type(oe,ae,le,_e,pe)}ie(_e)},regexp$1=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),isEmptyValue(ae)||rules.type(oe,ae,le,_e,pe)}ie(_e)},integer=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&(rules.type(oe,ae,le,_e,pe),rules.range(oe,ae,le,_e,pe))}ie(_e)},floatFn=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&(rules.type(oe,ae,le,_e,pe),rules.range(oe,ae,le,_e,pe))}ie(_e)},array=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(ae==null&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe,"array"),ae!=null&&(rules.type(oe,ae,le,_e,pe),rules.range(oe,ae,le,_e,pe))}ie(_e)},object$1=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&rules.type(oe,ae,le,_e,pe)}ie(_e)},ENUM="enum",enumerable=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&rules[ENUM](oe,ae,le,_e,pe)}ie(_e)},pattern=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae,"string")&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),isEmptyValue(ae,"string")||rules.pattern(oe,ae,le,_e,pe)}ie(_e)},date$1=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae,"date")&&!oe.required)return ie();if(rules.required(oe,ae,le,_e,pe),!isEmptyValue(ae,"date")){var $e;ae instanceof Date?$e=ae:$e=new Date(ae),rules.type(oe,$e,le,_e,pe),$e&&rules.range(oe,$e.getTime(),le,_e,pe)}}ie(_e)},required=function(oe,ae,ie,le,pe){var _e=[],Ce=Array.isArray(ae)?"array":typeof ae;rules.required(oe,ae,le,_e,pe,Ce),ie(_e)},type=function(oe,ae,ie,le,pe){var _e=oe.type,Ce=[],$e=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if($e){if(isEmptyValue(ae,_e)&&!oe.required)return ie();rules.required(oe,ae,le,Ce,pe,_e),isEmptyValue(ae,_e)||rules.type(oe,ae,le,Ce,pe)}ie(Ce)},any=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe)}ie(_e)},validators$2={string,method,number:number$3,boolean:_boolean,regexp:regexp$1,integer,float:floatFn,array,object:object$1,enum:enumerable,pattern,date:date$1,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 oe=JSON.parse(JSON.stringify(this));return oe.clone=this.clone,oe}}}var messages=newMessages(),Schema=function(){function $(ae){this.rules=null,this._messages=messages,this.define(ae)}var oe=$.prototype;return oe.define=function(ie){var le=this;if(!ie)throw new Error("Cannot configure a schema with no rules");if(typeof ie!="object"||Array.isArray(ie))throw new Error("Rules must be an object");this.rules={},Object.keys(ie).forEach(function(pe){var _e=ie[pe];le.rules[pe]=Array.isArray(_e)?_e:[_e]})},oe.messages=function(ie){return ie&&(this._messages=deepMerge(newMessages(),ie)),this._messages},oe.validate=function(ie,le,pe){var _e=this;le===void 0&&(le={}),pe===void 0&&(pe=function(){});var Ce=ie,$e=le,xe=pe;if(typeof $e=="function"&&(xe=$e,$e={}),!this.rules||Object.keys(this.rules).length===0)return xe&&xe(null,Ce),Promise.resolve(Ce);function Ie(Lt){var hn=[],vn={};function _n(Cn){if(Array.isArray(Cn)){var En;hn=(En=hn).concat.apply(En,Cn)}else hn.push(Cn)}for(var bn=0;bn");const le=useNamespace("form"),pe=ref(),_e=ref(0),Ce=()=>{var Ie;if((Ie=pe.value)!=null&&Ie.firstElementChild){const Ne=window.getComputedStyle(pe.value.firstElementChild).width;return Math.ceil(Number.parseFloat(Ne))}else return 0},$e=(Ie="update")=>{nextTick(()=>{oe.default&&$.isAutoWidth&&(Ie==="update"?_e.value=Ce():Ie==="remove"&&(ae==null||ae.deregisterLabelWidth(_e.value)))})},xe=()=>$e("update");return onMounted(()=>{xe()}),onBeforeUnmount(()=>{$e("remove")}),onUpdated(()=>xe()),watch(_e,(Ie,Ne)=>{$.updateAll&&(ae==null||ae.registerLabelWidth(Ie,Ne))}),useResizeObserver(computed(()=>{var Ie,Ne;return(Ne=(Ie=pe.value)==null?void 0:Ie.firstElementChild)!=null?Ne:null}),xe),()=>{var Ie,Ne;if(!oe)return null;const{isAutoWidth:Fe}=$;if(Fe){const ze=ae==null?void 0:ae.autoLabelWidth,At=ie==null?void 0:ie.hasLabel,Lt={};if(At&&ze&&ze!=="auto"){const hn=Math.max(0,Number.parseInt(ze,10)-_e.value),vn=ae.labelPosition==="left"?"marginRight":"marginLeft";hn&&(Lt[vn]=`${hn}px`)}return createVNode("div",{ref:pe,class:[le.be("item","label-wrap")],style:Lt},[(Ie=oe.default)==null?void 0:Ie.call(oe)])}else return createVNode(Fragment,{ref:pe},[(Ne=oe.default)==null?void 0:Ne.call(oe)])}}});const _hoisted_1$14=["role","aria-labelledby"],__default__$1y=defineComponent({name:"ElFormItem"}),_sfc_main$2g=defineComponent({...__default__$1y,props:formItemProps,setup($,{expose:oe}){const ae=$,ie=useSlots(),le=inject(formContextKey,void 0),pe=inject(formItemContextKey,void 0),_e=useFormSize(void 0,{formItem:!1}),Ce=useNamespace("form-item"),$e=useId().value,xe=ref([]),Ie=ref(""),Ne=refDebounced(Ie,100),Fe=ref(""),ze=ref();let At,Lt=!1;const hn=computed(()=>{if((le==null?void 0:le.labelPosition)==="top")return{};const rr=addUnit(ae.labelWidth||(le==null?void 0:le.labelWidth)||"");return rr?{width:rr}:{}}),vn=computed(()=>{if((le==null?void 0:le.labelPosition)==="top"||le!=null&&le.inline)return{};if(!ae.label&&!ae.labelWidth&&xn)return{};const rr=addUnit(ae.labelWidth||(le==null?void 0:le.labelWidth)||"");return!ae.label&&!ie.label?{marginLeft:rr}:{}}),_n=computed(()=>[Ce.b(),Ce.m(_e.value),Ce.is("error",Ie.value==="error"),Ce.is("validating",Ie.value==="validating"),Ce.is("success",Ie.value==="success"),Ce.is("required",Rn.value||ae.required),Ce.is("no-asterisk",le==null?void 0:le.hideRequiredAsterisk),(le==null?void 0:le.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[Ce.m("feedback")]:le==null?void 0:le.statusIcon}]),bn=computed(()=>isBoolean$3(ae.inlineMessage)?ae.inlineMessage:(le==null?void 0:le.inlineMessage)||!1),Cn=computed(()=>[Ce.e("error"),{[Ce.em("error","inline")]:bn.value}]),En=computed(()=>ae.prop?isString$7(ae.prop)?ae.prop:ae.prop.join("."):""),$n=computed(()=>!!(ae.label||ie.label)),wn=computed(()=>ae.for||xe.value.length===1?xe.value[0]:void 0),Tn=computed(()=>!wn.value&&$n.value),xn=!!pe,kn=computed(()=>{const rr=le==null?void 0:le.model;if(!(!rr||!ae.prop))return getProp(rr,ae.prop).value}),An=computed(()=>{const{required:rr}=ae,qn=[];ae.rules&&qn.push(...castArray$1(ae.rules));const Yn=le==null?void 0:le.rules;if(Yn&&ae.prop){const ar=getProp(Yn,ae.prop).value;ar&&qn.push(...castArray$1(ar))}if(rr!==void 0){const ar=qn.map((pr,Un)=>[pr,Un]).filter(([pr])=>Object.keys(pr).includes("required"));if(ar.length>0)for(const[pr,Un]of ar)pr.required!==rr&&(qn[Un]={...pr,required:rr});else qn.push({required:rr})}return qn}),On=computed(()=>An.value.length>0),Nn=rr=>An.value.filter(Yn=>!Yn.trigger||!rr?!0:Array.isArray(Yn.trigger)?Yn.trigger.includes(rr):Yn.trigger===rr).map(({trigger:Yn,...ar})=>ar),Rn=computed(()=>An.value.some(rr=>rr.required)),zn=computed(()=>{var rr;return Ne.value==="error"&&ae.showMessage&&((rr=le==null?void 0:le.showMessage)!=null?rr:!0)}),Bn=computed(()=>`${ae.label||""}${(le==null?void 0:le.labelSuffix)||""}`),Mn=rr=>{Ie.value=rr},Fn=rr=>{var qn,Yn;const{errors:ar,fields:pr}=rr;(!ar||!pr)&&console.error(rr),Mn("error"),Fe.value=ar?(Yn=(qn=ar==null?void 0:ar[0])==null?void 0:qn.message)!=null?Yn:`${ae.prop} is required`:"",le==null||le.emit("validate",ae.prop,!1,Fe.value)},Vn=()=>{Mn("success"),le==null||le.emit("validate",ae.prop,!0,"")},jn=async rr=>{const qn=En.value;return new Schema({[qn]:rr}).validate({[qn]:kn.value},{firstFields:!0}).then(()=>(Vn(),!0)).catch(ar=>(Fn(ar),Promise.reject(ar)))},Zn=async(rr,qn)=>{if(Lt||!ae.prop)return!1;const Yn=isFunction$5(qn);if(!On.value)return qn==null||qn(!1),!1;const ar=Nn(rr);return ar.length===0?(qn==null||qn(!0),!0):(Mn("validating"),jn(ar).then(()=>(qn==null||qn(!0),!0)).catch(pr=>{const{fields:Un}=pr;return qn==null||qn(!1,Un),Yn?!1:Promise.reject(Un)}))},Gn=()=>{Mn(""),Fe.value="",Lt=!1},Xn=async()=>{const rr=le==null?void 0:le.model;if(!rr||!ae.prop)return;const qn=getProp(rr,ae.prop);Lt=!0,qn.value=clone$4(At),await nextTick(),Gn(),Lt=!1},cr=rr=>{xe.value.includes(rr)||xe.value.push(rr)},nr=rr=>{xe.value=xe.value.filter(qn=>qn!==rr)};watch(()=>ae.error,rr=>{Fe.value=rr||"",Mn(rr?"error":"")},{immediate:!0}),watch(()=>ae.validateStatus,rr=>Mn(rr||""));const er=reactive({...toRefs(ae),$el:ze,size:_e,validateState:Ie,labelId:$e,inputIds:xe,isGroup:Tn,hasLabel:$n,addInputId:cr,removeInputId:nr,resetField:Xn,clearValidate:Gn,validate:Zn});return provide(formItemContextKey,er),onMounted(()=>{ae.prop&&(le==null||le.addField(er),At=clone$4(kn.value))}),onBeforeUnmount(()=>{le==null||le.removeField(er)}),oe({size:_e,validateMessage:Fe,validateState:Ie,validate:Zn,clearValidate:Gn,resetField:Xn}),(rr,qn)=>{var Yn;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:ze,class:normalizeClass(unref(_n)),role:unref(Tn)?"group":void 0,"aria-labelledby":unref(Tn)?unref($e):void 0},[createVNode(unref(FormLabelWrap),{"is-auto-width":unref(hn).width==="auto","update-all":((Yn=unref(le))==null?void 0:Yn.labelWidth)==="auto"},{default:withCtx(()=>[unref($n)?(openBlock(),createBlock(resolveDynamicComponent(unref(wn)?"label":"div"),{key:0,id:unref($e),for:unref(wn),class:normalizeClass(unref(Ce).e("label")),style:normalizeStyle$1(unref(hn))},{default:withCtx(()=>[renderSlot(rr.$slots,"label",{label:unref(Bn)},()=>[createTextVNode(toDisplayString$1(unref(Bn)),1)])]),_:3},8,["id","for","class","style"])):createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),createBaseVNode("div",{class:normalizeClass(unref(Ce).e("content")),style:normalizeStyle$1(unref(vn))},[renderSlot(rr.$slots,"default"),createVNode(TransitionGroup,{name:`${unref(Ce).namespace.value}-zoom-in-top`},{default:withCtx(()=>[unref(zn)?renderSlot(rr.$slots,"error",{key:0,error:Fe.value},()=>[createBaseVNode("div",{class:normalizeClass(unref(Cn))},toDisplayString$1(Fe.value),3)]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,_hoisted_1$14)}}});var FormItem=_export_sfc$1(_sfc_main$2g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const ElForm=withInstall(Form,{FormItem}),ElFormItem=withNoopInstall(FormItem);let hiddenTextarea;const HIDDEN_STYLE=` + height:0 !important; + visibility:hidden !important; + ${isFirefox()?"":"overflow:hidden !important;"} + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,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"];function calculateNodeStyling($){const oe=window.getComputedStyle($),ae=oe.getPropertyValue("box-sizing"),ie=Number.parseFloat(oe.getPropertyValue("padding-bottom"))+Number.parseFloat(oe.getPropertyValue("padding-top")),le=Number.parseFloat(oe.getPropertyValue("border-bottom-width"))+Number.parseFloat(oe.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(_e=>`${_e}:${oe.getPropertyValue(_e)}`).join(";"),paddingSize:ie,borderSize:le,boxSizing:ae}}function calcTextareaHeight($,oe=1,ae){var ie;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:le,borderSize:pe,boxSizing:_e,contextStyle:Ce}=calculateNodeStyling($);hiddenTextarea.setAttribute("style",`${Ce};${HIDDEN_STYLE}`),hiddenTextarea.value=$.value||$.placeholder||"";let $e=hiddenTextarea.scrollHeight;const xe={};_e==="border-box"?$e=$e+pe:_e==="content-box"&&($e=$e-le),hiddenTextarea.value="";const Ie=hiddenTextarea.scrollHeight-le;if(isNumber$5(oe)){let Ne=Ie*oe;_e==="border-box"&&(Ne=Ne+le+pe),$e=Math.max(Ne,$e),xe.minHeight=`${Ne}px`}if(isNumber$5(ae)){let Ne=Ie*ae;_e==="border-box"&&(Ne=Ne+le+pe),$e=Math.min(Ne,$e)}return xe.height=`${$e}px`,(ie=hiddenTextarea.parentNode)==null||ie.removeChild(hiddenTextarea),hiddenTextarea=void 0,xe}const inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:definePropType([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:iconPropType},prefixIcon:{type:iconPropType},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:definePropType([Object,Array,String]),default:()=>mutable({})}}),inputEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($),input:$=>isString$7($),change:$=>isString$7($),focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,clear:()=>!0,mouseleave:$=>$ instanceof MouseEvent,mouseenter:$=>$ instanceof MouseEvent,keydown:$=>$ instanceof Event,compositionstart:$=>$ instanceof CompositionEvent,compositionupdate:$=>$ instanceof CompositionEvent,compositionend:$=>$ instanceof CompositionEvent},_hoisted_1$13=["role"],_hoisted_2$H=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],_hoisted_3$m=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],__default__$1x=defineComponent({name:"ElInput",inheritAttrs:!1}),_sfc_main$2f=defineComponent({...__default__$1x,props:inputProps,emits:inputEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useAttrs$1(),pe=useSlots(),_e=computed(()=>{const gr={};return ie.containerRole==="combobox"&&(gr["aria-haspopup"]=le["aria-haspopup"],gr["aria-owns"]=le["aria-owns"],gr["aria-expanded"]=le["aria-expanded"]),gr}),Ce=computed(()=>[ie.type==="textarea"?hn.b():Lt.b(),Lt.m(ze.value),Lt.is("disabled",At.value),Lt.is("exceed",Zn.value),{[Lt.b("group")]:pe.prepend||pe.append,[Lt.bm("group","append")]:pe.append,[Lt.bm("group","prepend")]:pe.prepend,[Lt.m("prefix")]:pe.prefix||ie.prefixIcon,[Lt.m("suffix")]:pe.suffix||ie.suffixIcon||ie.clearable||ie.showPassword,[Lt.bm("suffix","password-clear")]:Mn.value&&Fn.value},le.class]),$e=computed(()=>[Lt.e("wrapper"),Lt.is("focus",bn.value)]),xe=useAttrs({excludeKeys:computed(()=>Object.keys(_e.value))}),{form:Ie,formItem:Ne}=useFormItem(),{inputId:Fe}=useFormItemInputId(ie,{formItemContext:Ne}),ze=useFormSize(),At=useFormDisabled(),Lt=useNamespace("input"),hn=useNamespace("textarea"),vn=shallowRef(),_n=shallowRef(),bn=ref(!1),Cn=ref(!1),En=ref(!1),$n=ref(!1),wn=ref(),Tn=shallowRef(ie.inputStyle),xn=computed(()=>vn.value||_n.value),kn=computed(()=>{var gr;return(gr=Ie==null?void 0:Ie.statusIcon)!=null?gr:!1}),An=computed(()=>(Ne==null?void 0:Ne.validateState)||""),On=computed(()=>An.value&&ValidateComponentsMap[An.value]),Nn=computed(()=>$n.value?view_default:hide_default),Rn=computed(()=>[le.style,ie.inputStyle]),zn=computed(()=>[ie.inputStyle,Tn.value,{resize:ie.resize}]),Bn=computed(()=>isNil(ie.modelValue)?"":String(ie.modelValue)),Mn=computed(()=>ie.clearable&&!At.value&&!ie.readonly&&!!Bn.value&&(bn.value||Cn.value)),Fn=computed(()=>ie.showPassword&&!At.value&&!ie.readonly&&!!Bn.value&&(!!Bn.value||bn.value)),Vn=computed(()=>ie.showWordLimit&&!!xe.value.maxlength&&(ie.type==="text"||ie.type==="textarea")&&!At.value&&!ie.readonly&&!ie.showPassword),jn=computed(()=>Bn.value.length),Zn=computed(()=>!!Vn.value&&jn.value>Number(xe.value.maxlength)),Gn=computed(()=>!!pe.suffix||!!ie.suffixIcon||Mn.value||ie.showPassword||Vn.value||!!An.value&&kn.value),[Xn,cr]=useCursor(vn);useResizeObserver(_n,gr=>{if(rr(),!Vn.value||ie.resize!=="both")return;const Or=gr[0],{width:Lr}=Or.contentRect;wn.value={right:`calc(100% - ${Lr+15+6}px)`}});const nr=()=>{const{type:gr,autosize:Or}=ie;if(!(!isClient$2||gr!=="textarea"||!_n.value))if(Or){const Lr=isObject$8(Or)?Or.minRows:void 0,Vr=isObject$8(Or)?Or.maxRows:void 0,Rr=calcTextareaHeight(_n.value,Lr,Vr);Tn.value={overflowY:"hidden",...Rr},nextTick(()=>{_n.value.offsetHeight,Tn.value=Rr})}else Tn.value={minHeight:calcTextareaHeight(_n.value).minHeight}},rr=(gr=>{let Or=!1;return()=>{var Lr;if(Or||!ie.autosize)return;((Lr=_n.value)==null?void 0:Lr.offsetParent)===null||(gr(),Or=!0)}})(nr),qn=()=>{const gr=xn.value;!gr||gr.value===Bn.value||(gr.value=Bn.value)},Yn=async gr=>{Xn();let{value:Or}=gr.target;if(ie.formatter&&(Or=ie.parser?ie.parser(Or):Or,Or=ie.formatter(Or)),!En.value){if(Or===Bn.value){qn();return}ae(UPDATE_MODEL_EVENT,Or),ae("input",Or),await nextTick(),qn(),cr()}},ar=gr=>{ae("change",gr.target.value)},pr=gr=>{ae("compositionstart",gr),En.value=!0},Un=gr=>{var Or;ae("compositionupdate",gr);const Lr=(Or=gr.target)==null?void 0:Or.value,Vr=Lr[Lr.length-1]||"";En.value=!isKorean(Vr)},tr=gr=>{ae("compositionend",gr),En.value&&(En.value=!1,Yn(gr))},ur=()=>{$n.value=!$n.value,_r()},_r=async()=>{var gr;await nextTick(),(gr=xn.value)==null||gr.focus()},Er=()=>{var gr;return(gr=xn.value)==null?void 0:gr.blur()},sr=gr=>{bn.value=!0,ae("focus",gr)},Pr=gr=>{var Or;bn.value=!1,ae("blur",gr),ie.validateEvent&&((Or=Ne==null?void 0:Ne.validate)==null||Or.call(Ne,"blur").catch(Lr=>void 0))},Sr=gr=>{Cn.value=!1,ae("mouseleave",gr)},kr=gr=>{Cn.value=!0,ae("mouseenter",gr)},mr=gr=>{ae("keydown",gr)},lr=()=>{var gr;(gr=xn.value)==null||gr.select()},hr=()=>{ae(UPDATE_MODEL_EVENT,""),ae("change",""),ae("clear"),ae("input","")};return watch(()=>ie.modelValue,()=>{var gr;nextTick(()=>nr()),ie.validateEvent&&((gr=Ne==null?void 0:Ne.validate)==null||gr.call(Ne,"change").catch(Or=>void 0))}),watch(Bn,()=>qn()),watch(()=>ie.type,async()=>{await nextTick(),qn(),nr()}),onMounted(()=>{!ie.formatter&&ie.parser,qn(),nextTick(nr)}),oe({input:vn,textarea:_n,ref:xn,textareaStyle:zn,autosize:toRef$1(ie,"autosize"),focus:_r,blur:Er,select:lr,clear:hr,resizeTextarea:nr}),(gr,Or)=>withDirectives((openBlock(),createElementBlock("div",mergeProps(unref(_e),{class:unref(Ce),style:unref(Rn),role:gr.containerRole,onMouseenter:kr,onMouseleave:Sr}),[createCommentVNode(" input "),gr.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),gr.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Lt).be("group","prepend"))},[renderSlot(gr.$slots,"prepend")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref($e))},[createCommentVNode(" prefix slot "),gr.$slots.prefix||gr.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(Lt).e("prefix"))},[createBaseVNode("span",{class:normalizeClass(unref(Lt).e("prefix-inner")),onClick:_r},[renderSlot(gr.$slots,"prefix"),gr.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Lt).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(gr.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("input",mergeProps({id:unref(Fe),ref_key:"input",ref:vn,class:unref(Lt).e("inner")},unref(xe),{type:gr.showPassword?$n.value?"text":"password":gr.type,disabled:unref(At),formatter:gr.formatter,parser:gr.parser,readonly:gr.readonly,autocomplete:gr.autocomplete,tabindex:gr.tabindex,"aria-label":gr.label,placeholder:gr.placeholder,style:gr.inputStyle,form:ie.form,onCompositionstart:pr,onCompositionupdate:Un,onCompositionend:tr,onInput:Yn,onFocus:sr,onBlur:Pr,onChange:ar,onKeydown:mr}),null,16,_hoisted_2$H),createCommentVNode(" suffix slot "),unref(Gn)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(Lt).e("suffix"))},[createBaseVNode("span",{class:normalizeClass(unref(Lt).e("suffix-inner")),onClick:_r},[!unref(Mn)||!unref(Fn)||!unref(Vn)?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(gr.$slots,"suffix"),gr.suffixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Lt).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(gr.suffixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0),unref(Mn)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(Lt).e("icon"),unref(Lt).e("clear")]),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:hr},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),unref(Fn)?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(Lt).e("icon"),unref(Lt).e("password")]),onClick:ur},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Nn))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),unref(Vn)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(unref(Lt).e("count"))},[createBaseVNode("span",{class:normalizeClass(unref(Lt).e("count-inner"))},toDisplayString$1(unref(jn))+" / "+toDisplayString$1(unref(xe).maxlength),3)],2)):createCommentVNode("v-if",!0),unref(An)&&unref(On)&&unref(kn)?(openBlock(),createBlock(unref(ElIcon),{key:4,class:normalizeClass([unref(Lt).e("icon"),unref(Lt).e("validateIcon"),unref(Lt).is("loading",unref(An)==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(On))))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0)],2),createCommentVNode(" append slot "),gr.$slots.append?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(Lt).be("group","append"))},[renderSlot(gr.$slots,"append")],2)):createCommentVNode("v-if",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" textarea "),createBaseVNode("textarea",mergeProps({id:unref(Fe),ref_key:"textarea",ref:_n,class:unref(hn).e("inner")},unref(xe),{tabindex:gr.tabindex,disabled:unref(At),readonly:gr.readonly,autocomplete:gr.autocomplete,style:unref(zn),"aria-label":gr.label,placeholder:gr.placeholder,form:ie.form,onCompositionstart:pr,onCompositionupdate:Un,onCompositionend:tr,onInput:Yn,onFocus:sr,onBlur:Pr,onChange:ar,onKeydown:mr}),null,16,_hoisted_3$m),unref(Vn)?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle$1(wn.value),class:normalizeClass(unref(Lt).e("count"))},toDisplayString$1(unref(jn))+" / "+toDisplayString$1(unref(xe).maxlength),7)):createCommentVNode("v-if",!0)],64))],16,_hoisted_1$13)),[[vShow,gr.type!=="hidden"]])}});var Input=_export_sfc$1(_sfc_main$2f,[["__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:$,size:oe,bar:ae})=>({[ae.size]:oe,transform:`translate${ae.axis}(${$}%)`}),scrollbarContextKey=Symbol("scrollbarContextKey"),thumbProps=buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),COMPONENT_NAME$k="Thumb",_sfc_main$2e=defineComponent({__name:"thumb",props:thumbProps,setup($){const oe=$,ae=inject(scrollbarContextKey),ie=useNamespace("scrollbar");ae||throwError$1(COMPONENT_NAME$k,"can not inject scrollbar context");const le=ref(),pe=ref(),_e=ref({}),Ce=ref(!1);let $e=!1,xe=!1,Ie=isClient$2?document.onselectstart:null;const Ne=computed(()=>BAR_MAP[oe.vertical?"vertical":"horizontal"]),Fe=computed(()=>renderThumbStyle$1({size:oe.size,move:oe.move,bar:Ne.value})),ze=computed(()=>le.value[Ne.value.offset]**2/ae.wrapElement[Ne.value.scrollSize]/oe.ratio/pe.value[Ne.value.offset]),At=$n=>{var wn;if($n.stopPropagation(),$n.ctrlKey||[1,2].includes($n.button))return;(wn=window.getSelection())==null||wn.removeAllRanges(),hn($n);const Tn=$n.currentTarget;Tn&&(_e.value[Ne.value.axis]=Tn[Ne.value.offset]-($n[Ne.value.client]-Tn.getBoundingClientRect()[Ne.value.direction]))},Lt=$n=>{if(!pe.value||!le.value||!ae.wrapElement)return;const wn=Math.abs($n.target.getBoundingClientRect()[Ne.value.direction]-$n[Ne.value.client]),Tn=pe.value[Ne.value.offset]/2,xn=(wn-Tn)*100*ze.value/le.value[Ne.value.offset];ae.wrapElement[Ne.value.scroll]=xn*ae.wrapElement[Ne.value.scrollSize]/100},hn=$n=>{$n.stopImmediatePropagation(),$e=!0,document.addEventListener("mousemove",vn),document.addEventListener("mouseup",_n),Ie=document.onselectstart,document.onselectstart=()=>!1},vn=$n=>{if(!le.value||!pe.value||$e===!1)return;const wn=_e.value[Ne.value.axis];if(!wn)return;const Tn=(le.value.getBoundingClientRect()[Ne.value.direction]-$n[Ne.value.client])*-1,xn=pe.value[Ne.value.offset]-wn,kn=(Tn-xn)*100*ze.value/le.value[Ne.value.offset];ae.wrapElement[Ne.value.scroll]=kn*ae.wrapElement[Ne.value.scrollSize]/100},_n=()=>{$e=!1,_e.value[Ne.value.axis]=0,document.removeEventListener("mousemove",vn),document.removeEventListener("mouseup",_n),En(),xe&&(Ce.value=!1)},bn=()=>{xe=!1,Ce.value=!!oe.size},Cn=()=>{xe=!0,Ce.value=$e};onBeforeUnmount(()=>{En(),document.removeEventListener("mouseup",_n)});const En=()=>{document.onselectstart!==Ie&&(document.onselectstart=Ie)};return useEventListener$1(toRef$1(ae,"scrollbarElement"),"mousemove",bn),useEventListener$1(toRef$1(ae,"scrollbarElement"),"mouseleave",Cn),($n,wn)=>(openBlock(),createBlock(Transition,{name:unref(ie).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{ref_key:"instance",ref:le,class:normalizeClass([unref(ie).e("bar"),unref(ie).is(unref(Ne).key)]),onMousedown:Lt},[createBaseVNode("div",{ref_key:"thumb",ref:pe,class:normalizeClass(unref(ie).e("thumb")),style:normalizeStyle$1(unref(Fe)),onMousedown:At},null,38)],34),[[vShow,$n.always||Ce.value]])]),_:1},8,["name"]))}});var Thumb=_export_sfc$1(_sfc_main$2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const barProps=buildProps({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),_sfc_main$2d=defineComponent({__name:"bar",props:barProps,setup($,{expose:oe}){const ae=$,ie=ref(0),le=ref(0);return oe({handleScroll:_e=>{if(_e){const Ce=_e.offsetHeight-GAP,$e=_e.offsetWidth-GAP;le.value=_e.scrollTop*100/Ce*ae.ratioY,ie.value=_e.scrollLeft*100/$e*ae.ratioX}}}),(_e,Ce)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(Thumb,{move:ie.value,ratio:_e.ratioX,size:_e.width,always:_e.always},null,8,["move","ratio","size","always"]),createVNode(Thumb,{move:le.value,ratio:_e.ratioY,size:_e.height,vertical:"",always:_e.always},null,8,["move","ratio","size","always"])],64))}});var Bar=_export_sfc$1(_sfc_main$2d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const scrollbarProps=buildProps({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},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}}),scrollbarEmits={scroll:({scrollTop:$,scrollLeft:oe})=>[$,oe].every(isNumber$5)},COMPONENT_NAME$j="ElScrollbar",__default__$1w=defineComponent({name:COMPONENT_NAME$j}),_sfc_main$2c=defineComponent({...__default__$1w,props:scrollbarProps,emits:scrollbarEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useNamespace("scrollbar");let pe,_e;const Ce=ref(),$e=ref(),xe=ref(),Ie=ref("0"),Ne=ref("0"),Fe=ref(),ze=ref(1),At=ref(1),Lt=computed(()=>{const wn={};return ie.height&&(wn.height=addUnit(ie.height)),ie.maxHeight&&(wn.maxHeight=addUnit(ie.maxHeight)),[ie.wrapStyle,wn]}),hn=computed(()=>[ie.wrapClass,le.e("wrap"),{[le.em("wrap","hidden-default")]:!ie.native}]),vn=computed(()=>[le.e("view"),ie.viewClass]),_n=()=>{var wn;$e.value&&((wn=Fe.value)==null||wn.handleScroll($e.value),ae("scroll",{scrollTop:$e.value.scrollTop,scrollLeft:$e.value.scrollLeft}))};function bn(wn,Tn){isObject$8(wn)?$e.value.scrollTo(wn):isNumber$5(wn)&&isNumber$5(Tn)&&$e.value.scrollTo(wn,Tn)}const Cn=wn=>{isNumber$5(wn)&&($e.value.scrollTop=wn)},En=wn=>{isNumber$5(wn)&&($e.value.scrollLeft=wn)},$n=()=>{if(!$e.value)return;const wn=$e.value.offsetHeight-GAP,Tn=$e.value.offsetWidth-GAP,xn=wn**2/$e.value.scrollHeight,kn=Tn**2/$e.value.scrollWidth,An=Math.max(xn,ie.minSize),On=Math.max(kn,ie.minSize);ze.value=xn/(wn-xn)/(An/(wn-An)),At.value=kn/(Tn-kn)/(On/(Tn-On)),Ne.value=An+GAPie.noresize,wn=>{wn?(pe==null||pe(),_e==null||_e()):({stop:pe}=useResizeObserver(xe,$n),_e=useEventListener$1("resize",$n))},{immediate:!0}),watch(()=>[ie.maxHeight,ie.height],()=>{ie.native||nextTick(()=>{var wn;$n(),$e.value&&((wn=Fe.value)==null||wn.handleScroll($e.value))})}),provide(scrollbarContextKey,reactive({scrollbarElement:Ce,wrapElement:$e})),onMounted(()=>{ie.native||nextTick(()=>{$n()})}),onUpdated(()=>$n()),oe({wrapRef:$e,update:$n,scrollTo:bn,setScrollTop:Cn,setScrollLeft:En,handleScroll:_n}),(wn,Tn)=>(openBlock(),createElementBlock("div",{ref_key:"scrollbarRef",ref:Ce,class:normalizeClass(unref(le).b())},[createBaseVNode("div",{ref_key:"wrapRef",ref:$e,class:normalizeClass(unref(hn)),style:normalizeStyle$1(unref(Lt)),onScroll:_n},[(openBlock(),createBlock(resolveDynamicComponent(wn.tag),{ref_key:"resizeRef",ref:xe,class:normalizeClass(unref(vn)),style:normalizeStyle$1(wn.viewStyle)},{default:withCtx(()=>[renderSlot(wn.$slots,"default")]),_:3},8,["class","style"]))],38),wn.native?createCommentVNode("v-if",!0):(openBlock(),createBlock(Bar,{key:0,ref_key:"barRef",ref:Fe,height:Ne.value,width:Ie.value,always:wn.always,"ratio-x":At.value,"ratio-y":ze.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Scrollbar=_export_sfc$1(_sfc_main$2c,[["__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"}}),__default__$1v=defineComponent({name:"ElPopper",inheritAttrs:!1}),_sfc_main$2b=defineComponent({...__default__$1v,props:popperProps,setup($,{expose:oe}){const ae=$,ie=ref(),le=ref(),pe=ref(),_e=ref(),Ce=computed(()=>ae.role),$e={triggerRef:ie,popperInstanceRef:le,contentRef:pe,referenceRef:_e,role:Ce};return oe($e),provide(POPPER_INJECTION_KEY,$e),(xe,Ie)=>renderSlot(xe.$slots,"default")}});var Popper=_export_sfc$1(_sfc_main$2b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const popperArrowProps=buildProps({arrowOffset:{type:Number,default:5}}),__default__$1u=defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),_sfc_main$2a=defineComponent({...__default__$1u,props:popperArrowProps,setup($,{expose:oe}){const ae=$,ie=useNamespace("popper"),{arrowOffset:le,arrowRef:pe,arrowStyle:_e}=inject(POPPER_CONTENT_INJECTION_KEY,void 0);return watch(()=>ae.arrowOffset,Ce=>{le.value=Ce}),onBeforeUnmount(()=>{pe.value=void 0}),oe({arrowRef:pe}),(Ce,$e)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:pe,class:normalizeClass(unref(ie).e("arrow")),style:normalizeStyle$1(unref(_e)),"data-popper-arrow":""},null,6))}});var ElPopperArrow=_export_sfc$1(_sfc_main$2a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const NAME="ElOnlyChild",OnlyChild=defineComponent({name:NAME,setup($,{slots:oe,attrs:ae}){var ie;const le=inject(FORWARD_REF_INJECTION_KEY),pe=useForwardRefDirective((ie=le==null?void 0:le.setForwardRef)!=null?ie:NOOP);return()=>{var _e;const Ce=(_e=oe.default)==null?void 0:_e.call(oe,ae);if(!Ce||Ce.length>1)return null;const $e=findFirstLegitChild(Ce);return $e?withDirectives(cloneVNode($e,ae),[[pe]]):null}}});function findFirstLegitChild($){if(!$)return null;const oe=$;for(const ae of oe){if(isObject$8(ae))switch(ae.type){case Comment:continue;case Text$1:case"svg":return wrapTextContent(ae);case Fragment:return findFirstLegitChild(ae.children);default:return ae}return wrapTextContent(ae)}return null}function wrapTextContent($){const oe=useNamespace("only-child");return createVNode("span",{class:oe.e("content")},[$])}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}),__default__$1t=defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),_sfc_main$29=defineComponent({...__default__$1t,props:popperTriggerProps,setup($,{expose:oe}){const ae=$,{role:ie,triggerRef:le}=inject(POPPER_INJECTION_KEY,void 0);useForwardRef(le);const pe=computed(()=>Ce.value?ae.id:void 0),_e=computed(()=>{if(ie&&ie.value==="tooltip")return ae.open&&ae.id?ae.id:void 0}),Ce=computed(()=>{if(ie&&ie.value!=="tooltip")return ie.value}),$e=computed(()=>Ce.value?`${ae.open}`:void 0);let xe;return onMounted(()=>{watch(()=>ae.virtualRef,Ie=>{Ie&&(le.value=unrefElement$1(Ie))},{immediate:!0}),watch(le,(Ie,Ne)=>{xe==null||xe(),xe=void 0,isElement$2(Ie)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(Fe=>{var ze;const At=ae[Fe];At&&(Ie.addEventListener(Fe.slice(2).toLowerCase(),At),(ze=Ne==null?void 0:Ne.removeEventListener)==null||ze.call(Ne,Fe.slice(2).toLowerCase(),At))}),xe=watch([pe,_e,Ce,$e],Fe=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((ze,At)=>{isNil(Fe[At])?Ie.removeAttribute(ze):Ie.setAttribute(ze,Fe[At])})},{immediate:!0})),isElement$2(Ne)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(Fe=>Ne.removeAttribute(Fe))},{immediate:!0})}),onBeforeUnmount(()=>{xe==null||xe(),xe=void 0}),oe({triggerRef:le}),(Ie,Ne)=>Ie.virtualTriggering?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(OnlyChild),mergeProps({key:0},Ie.$attrs,{"aria-controls":unref(pe),"aria-describedby":unref(_e),"aria-expanded":unref($e),"aria-haspopup":unref(Ce)}),{default:withCtx(()=>[renderSlot(Ie.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ElPopperTrigger=_export_sfc$1(_sfc_main$29,[["__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=$=>{const oe=[],ae=document.createTreeWalker($,NodeFilter.SHOW_ELEMENT,{acceptNode:ie=>{const le=ie.tagName==="INPUT"&&ie.type==="hidden";return ie.disabled||ie.hidden||le?NodeFilter.FILTER_SKIP:ie.tabIndex>=0||ie===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;ae.nextNode();)oe.push(ae.currentNode);return oe},getVisibleElement=($,oe)=>{for(const ae of $)if(!isHidden(ae,oe))return ae},isHidden=($,oe)=>{if(getComputedStyle($).visibility==="hidden")return!0;for(;$;){if(oe&&$===oe)return!1;if(getComputedStyle($).display==="none")return!0;$=$.parentElement}return!1},getEdges=$=>{const oe=obtainAllFocusableElements($),ae=getVisibleElement(oe,$),ie=getVisibleElement(oe.reverse(),$);return[ae,ie]},isSelectable=$=>$ instanceof HTMLInputElement&&"select"in $,tryFocus=($,oe)=>{if($&&$.focus){const ae=document.activeElement;$.focus({preventScroll:!0}),lastAutomatedFocusTimestamp.value=window.performance.now(),$!==ae&&isSelectable($)&&oe&&$.select()}};function removeFromStack($,oe){const ae=[...$],ie=$.indexOf(oe);return ie!==-1&&ae.splice(ie,1),ae}const createFocusableStack=()=>{let $=[];return{push:ie=>{const le=$[0];le&&ie!==le&&le.pause(),$=removeFromStack($,ie),$.unshift(ie)},remove:ie=>{var le,pe;$=removeFromStack($,ie),(pe=(le=$[0])==null?void 0:le.resume)==null||pe.call(le)}}},focusFirstDescendant=($,oe=!1)=>{const ae=document.activeElement;for(const ie of $)if(tryFocus(ie,oe),document.activeElement!==ae)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=$=>new CustomEvent(FOCUSOUT_PREVENTED,{...FOCUSOUT_PREVENTED_OPTS,detail:$}),_sfc_main$28=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($,{emit:oe}){const ae=ref();let ie,le;const{focusReason:pe}=useFocusReason();useEscapeKeydown(At=>{$.trapped&&!_e.paused&&oe("release-requested",At)});const _e={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},Ce=At=>{if(!$.loop&&!$.trapped||_e.paused)return;const{key:Lt,altKey:hn,ctrlKey:vn,metaKey:_n,currentTarget:bn,shiftKey:Cn}=At,{loop:En}=$,$n=Lt===EVENT_CODE.tab&&!hn&&!vn&&!_n,wn=document.activeElement;if($n&&wn){const Tn=bn,[xn,kn]=getEdges(Tn);if(xn&&kn){if(!Cn&&wn===kn){const On=createFocusOutPreventedEvent({focusReason:pe.value});oe("focusout-prevented",On),On.defaultPrevented||(At.preventDefault(),En&&tryFocus(xn,!0))}else if(Cn&&[xn,Tn].includes(wn)){const On=createFocusOutPreventedEvent({focusReason:pe.value});oe("focusout-prevented",On),On.defaultPrevented||(At.preventDefault(),En&&tryFocus(kn,!0))}}else if(wn===Tn){const On=createFocusOutPreventedEvent({focusReason:pe.value});oe("focusout-prevented",On),On.defaultPrevented||At.preventDefault()}}};provide(FOCUS_TRAP_INJECTION_KEY,{focusTrapRef:ae,onKeydown:Ce}),watch(()=>$.focusTrapEl,At=>{At&&(ae.value=At)},{immediate:!0}),watch([ae],([At],[Lt])=>{At&&(At.addEventListener("keydown",Ce),At.addEventListener("focusin",Ie),At.addEventListener("focusout",Ne)),Lt&&(Lt.removeEventListener("keydown",Ce),Lt.removeEventListener("focusin",Ie),Lt.removeEventListener("focusout",Ne))});const $e=At=>{oe(ON_TRAP_FOCUS_EVT,At)},xe=At=>oe(ON_RELEASE_FOCUS_EVT,At),Ie=At=>{const Lt=unref(ae);if(!Lt)return;const hn=At.target,vn=At.relatedTarget,_n=hn&&Lt.contains(hn);$.trapped||vn&&Lt.contains(vn)||(ie=vn),_n&&oe("focusin",At),!_e.paused&&$.trapped&&(_n?le=hn:tryFocus(le,!0))},Ne=At=>{const Lt=unref(ae);if(!(_e.paused||!Lt))if($.trapped){const hn=At.relatedTarget;!isNil(hn)&&!Lt.contains(hn)&&setTimeout(()=>{if(!_e.paused&&$.trapped){const vn=createFocusOutPreventedEvent({focusReason:pe.value});oe("focusout-prevented",vn),vn.defaultPrevented||tryFocus(le,!0)}},0)}else{const hn=At.target;hn&&Lt.contains(hn)||oe("focusout",At)}};async function Fe(){await nextTick();const At=unref(ae);if(At){focusableStack.push(_e);const Lt=At.contains(document.activeElement)?ie:document.activeElement;if(ie=Lt,!At.contains(Lt)){const vn=new Event(FOCUS_AFTER_TRAPPED,FOCUS_AFTER_TRAPPED_OPTS);At.addEventListener(FOCUS_AFTER_TRAPPED,$e),At.dispatchEvent(vn),vn.defaultPrevented||nextTick(()=>{let _n=$.focusStartEl;isString$7(_n)||(tryFocus(_n),document.activeElement!==_n&&(_n="first")),_n==="first"&&focusFirstDescendant(obtainAllFocusableElements(At),!0),(document.activeElement===Lt||_n==="container")&&tryFocus(At)})}}}function ze(){const At=unref(ae);if(At){At.removeEventListener(FOCUS_AFTER_TRAPPED,$e);const Lt=new CustomEvent(FOCUS_AFTER_RELEASED,{...FOCUS_AFTER_TRAPPED_OPTS,detail:{focusReason:pe.value}});At.addEventListener(FOCUS_AFTER_RELEASED,xe),At.dispatchEvent(Lt),!Lt.defaultPrevented&&(pe.value=="keyboard"||!isFocusCausedByUserEvent()||At.contains(document.activeElement))&&tryFocus(ie??document.body),At.removeEventListener(FOCUS_AFTER_RELEASED,$e),focusableStack.remove(_e)}}return onMounted(()=>{$.trapped&&Fe(),watch(()=>$.trapped,At=>{At?Fe():ze()})}),onBeforeUnmount(()=>{$.trapped&&ze()}),{onKeydown:Ce}}});function _sfc_render$w($,oe,ae,ie,le,pe){return renderSlot($.$slots,"default",{handleKeydown:$.onKeydown})}var ElFocusTrap=_export_sfc$1(_sfc_main$28,[["render",_sfc_render$w],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const POSITIONING_STRATEGIES=["fixed","absolute"],popperCoreConfigProps=buildProps({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:definePropType(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ee,default:"bottom"},popperOptions:{type:definePropType(Object),default:()=>({})},strategy:{type:String,values:POSITIONING_STRATEGIES,default:"absolute"}}),popperContentProps=buildProps({...popperCoreConfigProps,id:String,style:{type:definePropType([String,Array,Object])},className:{type:definePropType([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},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},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),popperContentEmits={mouseenter:$=>$ instanceof MouseEvent,mouseleave:$=>$ instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},buildPopperOptions=($,oe=[])=>{const{placement:ae,strategy:ie,popperOptions:le}=$,pe={placement:ae,strategy:ie,...le,modifiers:[...genModifiers($),...oe]};return deriveExtraModifiers(pe,le==null?void 0:le.modifiers),pe},unwrapMeasurableEl=$=>{if(isClient$2)return unrefElement$1($)};function genModifiers($){const{offset:oe,gpuAcceleration:ae,fallbackPlacements:ie}=$;return[{name:"offset",options:{offset:[0,oe??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:ie}},{name:"computeStyles",options:{gpuAcceleration:ae}}]}function deriveExtraModifiers($,oe){oe&&($.modifiers=[...$.modifiers,...oe??[]])}const DEFAULT_ARROW_OFFSET=0,usePopperContent=$=>{const{popperInstanceRef:oe,contentRef:ae,triggerRef:ie,role:le}=inject(POPPER_INJECTION_KEY,void 0),pe=ref(),_e=ref(),Ce=computed(()=>({name:"eventListeners",enabled:!!$.visible})),$e=computed(()=>{var vn;const _n=unref(pe),bn=(vn=unref(_e))!=null?vn:DEFAULT_ARROW_OFFSET;return{name:"arrow",enabled:!isUndefined$2(_n),options:{element:_n,padding:bn}}}),xe=computed(()=>({onFirstUpdate:()=>{At()},...buildPopperOptions($,[unref($e),unref(Ce)])})),Ie=computed(()=>unwrapMeasurableEl($.referenceEl)||unref(ie)),{attributes:Ne,state:Fe,styles:ze,update:At,forceUpdate:Lt,instanceRef:hn}=usePopper(Ie,ae,xe);return watch(hn,vn=>oe.value=vn),onMounted(()=>{watch(()=>{var vn;return(vn=unref(Ie))==null?void 0:vn.getBoundingClientRect()},()=>{At()})}),{attributes:Ne,arrowRef:pe,contentRef:ae,instanceRef:hn,state:Fe,styles:ze,role:le,forceUpdate:Lt,update:At}},usePopperContentDOM=($,{attributes:oe,styles:ae,role:ie})=>{const{nextZIndex:le}=useZIndex(),pe=useNamespace("popper"),_e=computed(()=>unref(oe).popper),Ce=ref($.zIndex||le()),$e=computed(()=>[pe.b(),pe.is("pure",$.pure),pe.is($.effect),$.popperClass]),xe=computed(()=>[{zIndex:unref(Ce)},$.popperStyle||{},unref(ae).popper]),Ie=computed(()=>ie.value==="dialog"?"false":void 0),Ne=computed(()=>unref(ae).arrow||{});return{ariaModal:Ie,arrowStyle:Ne,contentAttrs:_e,contentClass:$e,contentStyle:xe,contentZIndex:Ce,updateZIndex:()=>{Ce.value=$.zIndex||le()}}},usePopperContentFocusTrap=($,oe)=>{const ae=ref(!1),ie=ref();return{focusStartRef:ie,trapped:ae,onFocusAfterReleased:xe=>{var Ie;((Ie=xe.detail)==null?void 0:Ie.focusReason)!=="pointer"&&(ie.value="first",oe("blur"))},onFocusAfterTrapped:()=>{oe("focus")},onFocusInTrap:xe=>{$.visible&&!ae.value&&(xe.target&&(ie.value=xe.target),ae.value=!0)},onFocusoutPrevented:xe=>{$.trapping||(xe.detail.focusReason==="pointer"&&xe.preventDefault(),ae.value=!1)},onReleaseRequested:()=>{ae.value=!1,oe("close")}}},__default__$1s=defineComponent({name:"ElPopperContent"}),_sfc_main$27=defineComponent({...__default__$1s,props:popperContentProps,emits:popperContentEmits,setup($,{expose:oe,emit:ae}){const ie=$,{focusStartRef:le,trapped:pe,onFocusAfterReleased:_e,onFocusAfterTrapped:Ce,onFocusInTrap:$e,onFocusoutPrevented:xe,onReleaseRequested:Ie}=usePopperContentFocusTrap(ie,ae),{attributes:Ne,arrowRef:Fe,contentRef:ze,styles:At,instanceRef:Lt,role:hn,update:vn}=usePopperContent(ie),{ariaModal:_n,arrowStyle:bn,contentAttrs:Cn,contentClass:En,contentStyle:$n,updateZIndex:wn}=usePopperContentDOM(ie,{styles:At,attributes:Ne,role:hn}),Tn=inject(formItemContextKey,void 0),xn=ref();provide(POPPER_CONTENT_INJECTION_KEY,{arrowStyle:bn,arrowRef:Fe,arrowOffset:xn}),Tn&&(Tn.addInputId||Tn.removeInputId)&&provide(formItemContextKey,{...Tn,addInputId:NOOP,removeInputId:NOOP});let kn;const An=(Nn=!0)=>{vn(),Nn&&wn()},On=()=>{An(!1),ie.visible&&ie.focusOnShow?pe.value=!0:ie.visible===!1&&(pe.value=!1)};return onMounted(()=>{watch(()=>ie.triggerTargetEl,(Nn,Rn)=>{kn==null||kn(),kn=void 0;const zn=unref(Nn||ze.value),Bn=unref(Rn||ze.value);isElement$2(zn)&&(kn=watch([hn,()=>ie.ariaLabel,_n,()=>ie.id],Mn=>{["role","aria-label","aria-modal","id"].forEach((Fn,Vn)=>{isNil(Mn[Vn])?zn.removeAttribute(Fn):zn.setAttribute(Fn,Mn[Vn])})},{immediate:!0})),Bn!==zn&&isElement$2(Bn)&&["role","aria-label","aria-modal","id"].forEach(Mn=>{Bn.removeAttribute(Mn)})},{immediate:!0}),watch(()=>ie.visible,On,{immediate:!0})}),onBeforeUnmount(()=>{kn==null||kn(),kn=void 0}),oe({popperContentRef:ze,popperInstanceRef:Lt,updatePopper:An,contentStyle:$n}),(Nn,Rn)=>(openBlock(),createElementBlock("div",mergeProps({ref_key:"contentRef",ref:ze},unref(Cn),{style:unref($n),class:unref(En),tabindex:"-1",onMouseenter:Rn[0]||(Rn[0]=zn=>Nn.$emit("mouseenter",zn)),onMouseleave:Rn[1]||(Rn[1]=zn=>Nn.$emit("mouseleave",zn))}),[createVNode(unref(ElFocusTrap),{trapped:unref(pe),"trap-on-focus-in":!0,"focus-trap-el":unref(ze),"focus-start-el":unref(le),onFocusAfterTrapped:unref(Ce),onFocusAfterReleased:unref(_e),onFocusin:unref($e),onFocusoutPrevented:unref(xe),onReleaseRequested:unref(Ie)},{default:withCtx(()=>[renderSlot(Nn.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var ElPopperContent=_export_sfc$1(_sfc_main$27,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const ElPopper=withInstall(Popper),TOOLTIP_INJECTION_KEY=Symbol("elTooltip"),useTooltipContentProps=buildProps({...useDelayedToggleProps,...popperContentProps,appendTo:{type:definePropType([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:definePropType(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),useTooltipTriggerProps=buildProps({...popperTriggerProps,disabled:Boolean,trigger:{type:definePropType([String,Array]),default:"hover"},triggerKeys:{type:definePropType(Array),default:()=>[EVENT_CODE.enter,EVENT_CODE.space]}}),{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=($,oe)=>isArray$c($)?$.includes(oe):$===oe,whenTrigger=($,oe,ae)=>ie=>{isTriggerType(unref($),oe)&&ae(ie)},__default__$1r=defineComponent({name:"ElTooltipTrigger"}),_sfc_main$26=defineComponent({...__default__$1r,props:useTooltipTriggerProps,setup($,{expose:oe}){const ae=$,ie=useNamespace("tooltip"),{controlled:le,id:pe,open:_e,onOpen:Ce,onClose:$e,onToggle:xe}=inject(TOOLTIP_INJECTION_KEY,void 0),Ie=ref(null),Ne=()=>{if(unref(le)||ae.disabled)return!0},Fe=toRef$1(ae,"trigger"),ze=composeEventHandlers(Ne,whenTrigger(Fe,"hover",Ce)),At=composeEventHandlers(Ne,whenTrigger(Fe,"hover",$e)),Lt=composeEventHandlers(Ne,whenTrigger(Fe,"click",Cn=>{Cn.button===0&&xe(Cn)})),hn=composeEventHandlers(Ne,whenTrigger(Fe,"focus",Ce)),vn=composeEventHandlers(Ne,whenTrigger(Fe,"focus",$e)),_n=composeEventHandlers(Ne,whenTrigger(Fe,"contextmenu",Cn=>{Cn.preventDefault(),xe(Cn)})),bn=composeEventHandlers(Ne,Cn=>{const{code:En}=Cn;ae.triggerKeys.includes(En)&&(Cn.preventDefault(),xe(Cn))});return oe({triggerRef:Ie}),(Cn,En)=>(openBlock(),createBlock(unref(ElPopperTrigger),{id:unref(pe),"virtual-ref":Cn.virtualRef,open:unref(_e),"virtual-triggering":Cn.virtualTriggering,class:normalizeClass(unref(ie).e("trigger")),onBlur:unref(vn),onClick:unref(Lt),onContextmenu:unref(_n),onFocus:unref(hn),onMouseenter:unref(ze),onMouseleave:unref(At),onKeydown:unref(bn)},{default:withCtx(()=>[renderSlot(Cn.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var ElTooltipTrigger=_export_sfc$1(_sfc_main$26,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const __default__$1q=defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),_sfc_main$25=defineComponent({...__default__$1q,props:useTooltipContentProps,setup($,{expose:oe}){const ae=$,{selector:ie}=usePopperContainerId(),le=useNamespace("tooltip"),pe=ref(null),_e=ref(!1),{controlled:Ce,id:$e,open:xe,trigger:Ie,onClose:Ne,onOpen:Fe,onShow:ze,onHide:At,onBeforeShow:Lt,onBeforeHide:hn}=inject(TOOLTIP_INJECTION_KEY,void 0),vn=computed(()=>ae.transition||`${le.namespace.value}-fade-in-linear`),_n=computed(()=>ae.persistent);onBeforeUnmount(()=>{_e.value=!0});const bn=computed(()=>unref(_n)?!0:unref(xe)),Cn=computed(()=>ae.disabled?!1:unref(xe)),En=computed(()=>ae.appendTo||ie.value),$n=computed(()=>{var Mn;return(Mn=ae.style)!=null?Mn:{}}),wn=computed(()=>!unref(xe)),Tn=()=>{At()},xn=()=>{if(unref(Ce))return!0},kn=composeEventHandlers(xn,()=>{ae.enterable&&unref(Ie)==="hover"&&Fe()}),An=composeEventHandlers(xn,()=>{unref(Ie)==="hover"&&Ne()}),On=()=>{var Mn,Fn;(Fn=(Mn=pe.value)==null?void 0:Mn.updatePopper)==null||Fn.call(Mn),Lt==null||Lt()},Nn=()=>{hn==null||hn()},Rn=()=>{ze(),Bn=onClickOutside(computed(()=>{var Mn;return(Mn=pe.value)==null?void 0:Mn.popperContentRef}),()=>{if(unref(Ce))return;unref(Ie)!=="hover"&&Ne()})},zn=()=>{ae.virtualTriggering||Ne()};let Bn;return watch(()=>unref(xe),Mn=>{Mn||Bn==null||Bn()},{flush:"post"}),watch(()=>ae.content,()=>{var Mn,Fn;(Fn=(Mn=pe.value)==null?void 0:Mn.updatePopper)==null||Fn.call(Mn)}),oe({contentRef:pe}),(Mn,Fn)=>(openBlock(),createBlock(Teleport,{disabled:!Mn.teleported,to:unref(En)},[createVNode(Transition,{name:unref(vn),onAfterLeave:Tn,onBeforeEnter:On,onAfterEnter:Rn,onBeforeLeave:Nn},{default:withCtx(()=>[unref(bn)?withDirectives((openBlock(),createBlock(unref(ElPopperContent),mergeProps({key:0,id:unref($e),ref_key:"contentRef",ref:pe},Mn.$attrs,{"aria-label":Mn.ariaLabel,"aria-hidden":unref(wn),"boundaries-padding":Mn.boundariesPadding,"fallback-placements":Mn.fallbackPlacements,"gpu-acceleration":Mn.gpuAcceleration,offset:Mn.offset,placement:Mn.placement,"popper-options":Mn.popperOptions,strategy:Mn.strategy,effect:Mn.effect,enterable:Mn.enterable,pure:Mn.pure,"popper-class":Mn.popperClass,"popper-style":[Mn.popperStyle,unref($n)],"reference-el":Mn.referenceEl,"trigger-target-el":Mn.triggerTargetEl,visible:unref(Cn),"z-index":Mn.zIndex,onMouseenter:unref(kn),onMouseleave:unref(An),onBlur:zn,onClose:unref(Ne)}),{default:withCtx(()=>[_e.value?createCommentVNode("v-if",!0):renderSlot(Mn.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[vShow,unref(Cn)]]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var ElTooltipContent=_export_sfc$1(_sfc_main$25,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const _hoisted_1$12=["innerHTML"],_hoisted_2$G={key:1},__default__$1p=defineComponent({name:"ElTooltip"}),_sfc_main$24=defineComponent({...__default__$1p,props:useTooltipProps,emits:tooltipEmits,setup($,{expose:oe,emit:ae}){const ie=$;usePopperContainer();const le=useId(),pe=ref(),_e=ref(),Ce=()=>{var vn;const _n=unref(pe);_n&&((vn=_n.popperInstanceRef)==null||vn.update())},$e=ref(!1),xe=ref(),{show:Ie,hide:Ne,hasUpdateHandler:Fe}=useTooltipModelToggle({indicator:$e,toggleReason:xe}),{onOpen:ze,onClose:At}=useDelayedToggle({showAfter:toRef$1(ie,"showAfter"),hideAfter:toRef$1(ie,"hideAfter"),autoClose:toRef$1(ie,"autoClose"),open:Ie,close:Ne}),Lt=computed(()=>isBoolean$3(ie.visible)&&!Fe.value);provide(TOOLTIP_INJECTION_KEY,{controlled:Lt,id:le,open:readonly($e),trigger:toRef$1(ie,"trigger"),onOpen:vn=>{ze(vn)},onClose:vn=>{At(vn)},onToggle:vn=>{unref($e)?At(vn):ze(vn)},onShow:()=>{ae("show",xe.value)},onHide:()=>{ae("hide",xe.value)},onBeforeShow:()=>{ae("before-show",xe.value)},onBeforeHide:()=>{ae("before-hide",xe.value)},updatePopper:Ce}),watch(()=>ie.disabled,vn=>{vn&&$e.value&&($e.value=!1)});const hn=()=>{var vn,_n;const bn=(_n=(vn=_e.value)==null?void 0:vn.contentRef)==null?void 0:_n.popperContentRef;return bn&&bn.contains(document.activeElement)};return onDeactivated(()=>$e.value&&Ne()),oe({popperRef:pe,contentRef:_e,isFocusInsideContent:hn,updatePopper:Ce,onOpen:ze,onClose:At,hide:Ne}),(vn,_n)=>(openBlock(),createBlock(unref(ElPopper),{ref_key:"popperRef",ref:pe,role:vn.role},{default:withCtx(()=>[createVNode(ElTooltipTrigger,{disabled:vn.disabled,trigger:vn.trigger,"trigger-keys":vn.triggerKeys,"virtual-ref":vn.virtualRef,"virtual-triggering":vn.virtualTriggering},{default:withCtx(()=>[vn.$slots.default?renderSlot(vn.$slots,"default",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),createVNode(ElTooltipContent,{ref_key:"contentRef",ref:_e,"aria-label":vn.ariaLabel,"boundaries-padding":vn.boundariesPadding,content:vn.content,disabled:vn.disabled,effect:vn.effect,enterable:vn.enterable,"fallback-placements":vn.fallbackPlacements,"hide-after":vn.hideAfter,"gpu-acceleration":vn.gpuAcceleration,offset:vn.offset,persistent:vn.persistent,"popper-class":vn.popperClass,"popper-style":vn.popperStyle,placement:vn.placement,"popper-options":vn.popperOptions,pure:vn.pure,"raw-content":vn.rawContent,"reference-el":vn.referenceEl,"trigger-target-el":vn.triggerTargetEl,"show-after":vn.showAfter,strategy:vn.strategy,teleported:vn.teleported,transition:vn.transition,"virtual-triggering":vn.virtualTriggering,"z-index":vn.zIndex,"append-to":vn.appendTo},{default:withCtx(()=>[renderSlot(vn.$slots,"content",{},()=>[vn.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:vn.content},null,8,_hoisted_1$12)):(openBlock(),createElementBlock("span",_hoisted_2$G,toDisplayString$1(vn.content),1))]),vn.showArrow?(openBlock(),createBlock(unref(ElPopperArrow),{key:0,"arrow-offset":vn.arrowOffset},null,8,["arrow-offset"])):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","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Tooltip=_export_sfc$1(_sfc_main$24,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ElTooltip=withInstall(Tooltip),autocompleteProps=buildProps({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:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:useTooltipContentProps.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),autocompleteEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($),[INPUT_EVENT]:$=>isString$7($),[CHANGE_EVENT]:$=>isString$7($),focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,clear:()=>!0,select:$=>isObject$8($)},_hoisted_1$11=["aria-expanded","aria-owns"],_hoisted_2$F={key:0},_hoisted_3$l=["id","aria-selected","onClick"],COMPONENT_NAME$i="ElAutocomplete",__default__$1o=defineComponent({name:COMPONENT_NAME$i,inheritAttrs:!1}),_sfc_main$23=defineComponent({...__default__$1o,props:autocompleteProps,emits:autocompleteEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useAttrs(),pe=useAttrs$1(),_e=useFormDisabled(),Ce=useNamespace("autocomplete"),$e=ref(),xe=ref(),Ie=ref(),Ne=ref();let Fe=!1,ze=!1;const At=ref([]),Lt=ref(-1),hn=ref(""),vn=ref(!1),_n=ref(!1),bn=ref(!1),Cn=computed(()=>Ce.b(String(generateId()))),En=computed(()=>pe.style),$n=computed(()=>(At.value.length>0||bn.value)&&vn.value),wn=computed(()=>!ie.hideLoading&&bn.value),Tn=computed(()=>$e.value?Array.from($e.value.$el.querySelectorAll("input")):[]),xn=async()=>{await nextTick(),$n.value&&(hn.value=`${$e.value.$el.offsetWidth}px`)},kn=()=>{Lt.value=-1},On=debounce(async er=>{if(_n.value)return;const rr=qn=>{bn.value=!1,!_n.value&&(isArray$c(qn)?(At.value=qn,Lt.value=ie.highlightFirstItem?0:-1):throwError$1(COMPONENT_NAME$i,"autocomplete suggestions must be an array"))};if(bn.value=!0,isArray$c(ie.fetchSuggestions))rr(ie.fetchSuggestions);else{const qn=await ie.fetchSuggestions(er,rr);isArray$c(qn)&&rr(qn)}},ie.debounce),Nn=er=>{const rr=!!er;if(ae(INPUT_EVENT,er),ae(UPDATE_MODEL_EVENT,er),_n.value=!1,vn.value||(vn.value=rr),!ie.triggerOnFocus&&!er){_n.value=!0,At.value=[];return}On(er)},Rn=er=>{var rr;_e.value||(((rr=er.target)==null?void 0:rr.tagName)!=="INPUT"||Tn.value.includes(document.activeElement))&&(vn.value=!0)},zn=er=>{ae(CHANGE_EVENT,er)},Bn=er=>{ze?ze=!1:(vn.value=!0,ae("focus",er),ie.triggerOnFocus&&!Fe&&On(String(ie.modelValue)))},Mn=er=>{setTimeout(()=>{var rr;if((rr=Ie.value)!=null&&rr.isFocusInsideContent()){ze=!0;return}vn.value&&Zn(),ae("blur",er)})},Fn=()=>{vn.value=!1,ae(UPDATE_MODEL_EVENT,""),ae("clear")},Vn=async()=>{$n.value&&Lt.value>=0&&Lt.value{$n.value&&(er.preventDefault(),er.stopPropagation(),Zn())},Zn=()=>{vn.value=!1},Gn=()=>{var er;(er=$e.value)==null||er.focus()},Xn=()=>{var er;(er=$e.value)==null||er.blur()},cr=async er=>{ae(INPUT_EVENT,er[ie.valueKey]),ae(UPDATE_MODEL_EVENT,er[ie.valueKey]),ae("select",er),At.value=[],Lt.value=-1},nr=er=>{if(!$n.value||bn.value)return;if(er<0){Lt.value=-1;return}er>=At.value.length&&(er=At.value.length-1);const rr=xe.value.querySelector(`.${Ce.be("suggestion","wrap")}`),Yn=rr.querySelectorAll(`.${Ce.be("suggestion","list")} li`)[er],ar=rr.scrollTop,{offsetTop:pr,scrollHeight:Un}=Yn;pr+Un>ar+rr.clientHeight&&(rr.scrollTop+=Un),pr{$n.value&&Zn()}),onMounted(()=>{$e.value.ref.setAttribute("role","textbox"),$e.value.ref.setAttribute("aria-autocomplete","list"),$e.value.ref.setAttribute("aria-controls","id"),$e.value.ref.setAttribute("aria-activedescendant",`${Cn.value}-item-${Lt.value}`),Fe=$e.value.ref.hasAttribute("readonly")}),oe({highlightedIndex:Lt,activated:vn,loading:bn,inputRef:$e,popperRef:Ie,suggestions:At,handleSelect:cr,handleKeyEnter:Vn,focus:Gn,blur:Xn,close:Zn,highlight:nr}),(er,rr)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popperRef",ref:Ie,visible:unref($n),placement:er.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[unref(Ce).e("popper"),er.popperClass],teleported:er.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${unref(Ce).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:xn,onHide:kn},{content:withCtx(()=>[createBaseVNode("div",{ref_key:"regionRef",ref:xe,class:normalizeClass([unref(Ce).b("suggestion"),unref(Ce).is("loading",unref(wn))]),style:normalizeStyle$1({[er.fitInputWidth?"width":"minWidth"]:hn.value,outline:"none"}),role:"region"},[createVNode(unref(ElScrollbar),{id:unref(Cn),tag:"ul","wrap-class":unref(Ce).be("suggestion","wrap"),"view-class":unref(Ce).be("suggestion","list"),role:"listbox"},{default:withCtx(()=>[unref(wn)?(openBlock(),createElementBlock("li",_hoisted_2$F,[createVNode(unref(ElIcon),{class:normalizeClass(unref(Ce).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(At.value,(qn,Yn)=>(openBlock(),createElementBlock("li",{id:`${unref(Cn)}-item-${Yn}`,key:Yn,class:normalizeClass({highlighted:Lt.value===Yn}),role:"option","aria-selected":Lt.value===Yn,onClick:ar=>cr(qn)},[renderSlot(er.$slots,"default",{item:qn},()=>[createTextVNode(toDisplayString$1(qn[er.valueKey]),1)])],10,_hoisted_3$l))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:withCtx(()=>[createBaseVNode("div",{ref_key:"listboxRef",ref:Ne,class:normalizeClass([unref(Ce).b(),er.$attrs.class]),style:normalizeStyle$1(unref(En)),role:"combobox","aria-haspopup":"listbox","aria-expanded":unref($n),"aria-owns":unref(Cn)},[createVNode(unref(ElInput),mergeProps({ref_key:"inputRef",ref:$e},unref(le),{clearable:er.clearable,disabled:unref(_e),name:er.name,"model-value":er.modelValue,onInput:Nn,onChange:zn,onFocus:Bn,onBlur:Mn,onClear:Fn,onKeydown:[rr[0]||(rr[0]=withKeys(withModifiers(qn=>nr(Lt.value-1),["prevent"]),["up"])),rr[1]||(rr[1]=withKeys(withModifiers(qn=>nr(Lt.value+1),["prevent"]),["down"])),withKeys(Vn,["enter"]),withKeys(Zn,["tab"]),withKeys(jn,["esc"])],onMousedown:Rn}),createSlots({_:2},[er.$slots.prepend?{name:"prepend",fn:withCtx(()=>[renderSlot(er.$slots,"prepend")])}:void 0,er.$slots.append?{name:"append",fn:withCtx(()=>[renderSlot(er.$slots,"append")])}:void 0,er.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(er.$slots,"prefix")])}:void 0,er.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot(er.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,_hoisted_1$11)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Autocomplete=_export_sfc$1(_sfc_main$23,[["__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,default:"",validator:$=>isNumber$5($)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:definePropType(String),default:"cover"}}),avatarEmits={error:$=>$ instanceof Event},_hoisted_1$10=["src","alt","srcset"],__default__$1n=defineComponent({name:"ElAvatar"}),_sfc_main$22=defineComponent({...__default__$1n,props:avatarProps,emits:avatarEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("avatar"),le=ref(!1),pe=computed(()=>{const{size:xe,icon:Ie,shape:Ne}=ae,Fe=[ie.b()];return isString$7(xe)&&Fe.push(ie.m(xe)),Ie&&Fe.push(ie.m("icon")),Ne&&Fe.push(ie.m(Ne)),Fe}),_e=computed(()=>{const{size:xe}=ae;return isNumber$5(xe)?ie.cssVarBlock({size:addUnit(xe)||""}):void 0}),Ce=computed(()=>({objectFit:ae.fit}));watch(()=>ae.src,()=>le.value=!1);function $e(xe){le.value=!0,oe("error",xe)}return(xe,Ie)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(pe)),style:normalizeStyle$1(unref(_e))},[(xe.src||xe.srcSet)&&!le.value?(openBlock(),createElementBlock("img",{key:0,src:xe.src,alt:xe.alt,srcset:xe.srcSet,style:normalizeStyle$1(unref(Ce)),onError:$e},null,44,_hoisted_1$10)):xe.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(xe.icon)))]),_:1})):renderSlot(xe.$slots,"default",{key:2})],6))}});var Avatar=_export_sfc$1(_sfc_main$22,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const ElAvatar=withInstall(Avatar),backtopProps={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},backtopEmits={click:$=>$ instanceof MouseEvent},useBackTop=($,oe,ae)=>{const ie=shallowRef(),le=shallowRef(),pe=ref(!1),_e=()=>{ie.value&&(pe.value=ie.value.scrollTop>=$.visibilityHeight)},Ce=xe=>{var Ie;(Ie=ie.value)==null||Ie.scrollTo({top:0,behavior:"smooth"}),oe("click",xe)},$e=useThrottleFn(_e,300,!0);return useEventListener$1(le,"scroll",$e),onMounted(()=>{var xe;le.value=document,ie.value=document.documentElement,$.target&&(ie.value=(xe=document.querySelector($.target))!=null?xe:void 0,ie.value||throwError$1(ae,`target does not exist: ${$.target}`),le.value=ie.value)}),{visible:pe,handleClick:Ce}},COMPONENT_NAME$h="ElBacktop",__default__$1m=defineComponent({name:COMPONENT_NAME$h}),_sfc_main$21=defineComponent({...__default__$1m,props:backtopProps,emits:backtopEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("backtop"),{handleClick:le,visible:pe}=useBackTop(ae,oe,COMPONENT_NAME$h),_e=computed(()=>({right:`${ae.right}px`,bottom:`${ae.bottom}px`}));return(Ce,$e)=>(openBlock(),createBlock(Transition,{name:`${unref(ie).namespace.value}-fade-in`},{default:withCtx(()=>[unref(pe)?(openBlock(),createElementBlock("div",{key:0,style:normalizeStyle$1(unref(_e)),class:normalizeClass(unref(ie).b()),onClick:$e[0]||($e[0]=withModifiers((...xe)=>unref(le)&&unref(le)(...xe),["stop"]))},[renderSlot(Ce.$slots,"default",{},()=>[createVNode(unref(ElIcon),{class:normalizeClass(unref(ie).e("icon"))},{default:withCtx(()=>[createVNode(unref(caret_top_default))]),_:1},8,["class"])])],6)):createCommentVNode("v-if",!0)]),_:3},8,["name"]))}});var Backtop=_export_sfc$1(_sfc_main$21,[["__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"}}),_hoisted_1$$=["textContent"],__default__$1l=defineComponent({name:"ElBadge"}),_sfc_main$20=defineComponent({...__default__$1l,props:badgeProps,setup($,{expose:oe}){const ae=$,ie=useNamespace("badge"),le=computed(()=>ae.isDot?"":isNumber$5(ae.value)&&isNumber$5(ae.max)?ae.max(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ie).b())},[renderSlot(pe.$slots,"default"),createVNode(Transition,{name:`${unref(ie).namespace.value}-zoom-in-center`,persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(ie).e("content"),unref(ie).em("content",pe.type),unref(ie).is("fixed",!!pe.$slots.default),unref(ie).is("dot",pe.isDot)]),textContent:toDisplayString$1(unref(le))},null,10,_hoisted_1$$),[[vShow,!pe.hidden&&(unref(le)||pe.isDot)]])]),_:1},8,["name"])],2))}});var Badge=_export_sfc$1(_sfc_main$20,[["__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}}),__default__$1k=defineComponent({name:"ElBreadcrumb"}),_sfc_main$1$=defineComponent({...__default__$1k,props:breadcrumbProps,setup($){const oe=$,ae=useNamespace("breadcrumb"),ie=ref();return provide(breadcrumbKey,oe),onMounted(()=>{const le=ie.value.querySelectorAll(`.${ae.e("item")}`);le.length&&le[le.length-1].setAttribute("aria-current","page")}),(le,pe)=>(openBlock(),createElementBlock("div",{ref_key:"breadcrumb",ref:ie,class:normalizeClass(unref(ae).b()),"aria-label":"Breadcrumb",role:"navigation"},[renderSlot(le.$slots,"default")],2))}});var Breadcrumb=_export_sfc$1(_sfc_main$1$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const breadcrumbItemProps=buildProps({to:{type:definePropType([String,Object]),default:""},replace:{type:Boolean,default:!1}}),__default__$1j=defineComponent({name:"ElBreadcrumbItem"}),_sfc_main$1_=defineComponent({...__default__$1j,props:breadcrumbItemProps,setup($){const oe=$,ae=getCurrentInstance(),ie=inject(breadcrumbKey,void 0),le=useNamespace("breadcrumb"),{separator:pe,separatorIcon:_e}=toRefs(ie),Ce=ae.appContext.config.globalProperties.$router,$e=ref(),xe=()=>{!oe.to||!Ce||(oe.replace?Ce.replace(oe.to):Ce.push(oe.to))};return(Ie,Ne)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(le).e("item"))},[createBaseVNode("span",{ref_key:"link",ref:$e,class:normalizeClass([unref(le).e("inner"),unref(le).is("link",!!Ie.to)]),role:"link",onClick:xe},[renderSlot(Ie.$slots,"default")],2),unref(_e)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("separator"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(_e))))]),_:1},8,["class"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(le).e("separator")),role:"presentation"},toDisplayString$1(unref(pe)),3))],2))}});var BreadcrumbItem=_export_sfc$1(_sfc_main$1_,[["__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"),useButton=($,oe)=>{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(()=>$.type==="text"));const ae=inject(buttonGroupContextKey,void 0),ie=useGlobalConfig("button"),{form:le}=useFormItem(),pe=useFormSize(computed(()=>ae==null?void 0:ae.size)),_e=useFormDisabled(),Ce=ref(),$e=useSlots(),xe=computed(()=>$.type||(ae==null?void 0:ae.type)||""),Ie=computed(()=>{var At,Lt,hn;return(hn=(Lt=$.autoInsertSpace)!=null?Lt:(At=ie.value)==null?void 0:At.autoInsertSpace)!=null?hn:!1}),Ne=computed(()=>$.tag==="button"?{ariaDisabled:_e.value||$.loading,disabled:_e.value||$.loading,autofocus:$.autofocus,type:$.nativeType}:{}),Fe=computed(()=>{var At;const Lt=(At=$e.default)==null?void 0:At.call($e);if(Ie.value&&(Lt==null?void 0:Lt.length)===1){const hn=Lt[0];if((hn==null?void 0:hn.type)===Text$1){const vn=hn.children;return/^\p{Unified_Ideograph}{2}$/u.test(vn.trim())}}return!1});return{_disabled:_e,_size:pe,_type:xe,_ref:Ce,_props:Ne,shouldAddSpace:Fe,handleClick:At=>{$.nativeType==="reset"&&(le==null||le.resetFields()),oe("click",At)}}},buttonTypes=["default","primary","success","warning","info","danger","text",""],buttonNativeTypes=["button","submit","reset"],buttonProps=buildProps({size:useSizeProp,disabled:Boolean,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:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:definePropType([String,Object]),default:"button"}}),buttonEmits={click:$=>$ instanceof MouseEvent};function bound01$1($,oe){isOnePointZero$1($)&&($="100%");var ae=isPercentage$1($);return $=oe===360?$:Math.min(oe,Math.max(0,parseFloat($))),ae&&($=parseInt(String($*oe),10)/100),Math.abs($-oe)<1e-6?1:(oe===360?$=($<0?$%oe+oe:$%oe)/parseFloat(String(oe)):$=$%oe/parseFloat(String(oe)),$)}function clamp01($){return Math.min(1,Math.max(0,$))}function isOnePointZero$1($){return typeof $=="string"&&$.indexOf(".")!==-1&&parseFloat($)===1}function isPercentage$1($){return typeof $=="string"&&$.indexOf("%")!==-1}function boundAlpha($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function convertToPercentage($){return $<=1?"".concat(Number($)*100,"%"):$}function pad2($){return $.length===1?"0"+$:String($)}function rgbToRgb($,oe,ae){return{r:bound01$1($,255)*255,g:bound01$1(oe,255)*255,b:bound01$1(ae,255)*255}}function rgbToHsl($,oe,ae){$=bound01$1($,255),oe=bound01$1(oe,255),ae=bound01$1(ae,255);var ie=Math.max($,oe,ae),le=Math.min($,oe,ae),pe=0,_e=0,Ce=(ie+le)/2;if(ie===le)_e=0,pe=0;else{var $e=ie-le;switch(_e=Ce>.5?$e/(2-ie-le):$e/(ie+le),ie){case $:pe=(oe-ae)/$e+(oe1&&(ae-=1),ae<1/6?$+(oe-$)*(6*ae):ae<1/2?oe:ae<2/3?$+(oe-$)*(2/3-ae)*6:$}function hslToRgb($,oe,ae){var ie,le,pe;if($=bound01$1($,360),oe=bound01$1(oe,100),ae=bound01$1(ae,100),oe===0)le=ae,pe=ae,ie=ae;else{var _e=ae<.5?ae*(1+oe):ae+oe-ae*oe,Ce=2*ae-_e;ie=hue2rgb(Ce,_e,$+1/3),le=hue2rgb(Ce,_e,$),pe=hue2rgb(Ce,_e,$-1/3)}return{r:ie*255,g:le*255,b:pe*255}}function rgbToHsv($,oe,ae){$=bound01$1($,255),oe=bound01$1(oe,255),ae=bound01$1(ae,255);var ie=Math.max($,oe,ae),le=Math.min($,oe,ae),pe=0,_e=ie,Ce=ie-le,$e=ie===0?0:Ce/ie;if(ie===le)pe=0;else{switch(ie){case $:pe=(oe-ae)/Ce+(oe>16,g:($&65280)>>8,b:$&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($){var oe={r:0,g:0,b:0},ae=1,ie=null,le=null,pe=null,_e=!1,Ce=!1;return typeof $=="string"&&($=stringInputToObject($)),typeof $=="object"&&(isValidCSSUnit($.r)&&isValidCSSUnit($.g)&&isValidCSSUnit($.b)?(oe=rgbToRgb($.r,$.g,$.b),_e=!0,Ce=String($.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit($.h)&&isValidCSSUnit($.s)&&isValidCSSUnit($.v)?(ie=convertToPercentage($.s),le=convertToPercentage($.v),oe=hsvToRgb($.h,ie,le),_e=!0,Ce="hsv"):isValidCSSUnit($.h)&&isValidCSSUnit($.s)&&isValidCSSUnit($.l)&&(ie=convertToPercentage($.s),pe=convertToPercentage($.l),oe=hslToRgb($.h,ie,pe),_e=!0,Ce="hsl"),Object.prototype.hasOwnProperty.call($,"a")&&(ae=$.a)),ae=boundAlpha(ae),{ok:_e,format:$.format||Ce,r:Math.min(255,Math.max(oe.r,0)),g:Math.min(255,Math.max(oe.g,0)),b:Math.min(255,Math.max(oe.b,0)),a:ae}}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($){if($=$.trim().toLowerCase(),$.length===0)return!1;var oe=!1;if(names[$])$=names[$],oe=!0;else if($==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ae=matchers.rgb.exec($);return ae?{r:ae[1],g:ae[2],b:ae[3]}:(ae=matchers.rgba.exec($),ae?{r:ae[1],g:ae[2],b:ae[3],a:ae[4]}:(ae=matchers.hsl.exec($),ae?{h:ae[1],s:ae[2],l:ae[3]}:(ae=matchers.hsla.exec($),ae?{h:ae[1],s:ae[2],l:ae[3],a:ae[4]}:(ae=matchers.hsv.exec($),ae?{h:ae[1],s:ae[2],v:ae[3]}:(ae=matchers.hsva.exec($),ae?{h:ae[1],s:ae[2],v:ae[3],a:ae[4]}:(ae=matchers.hex8.exec($),ae?{r:parseIntFromHex(ae[1]),g:parseIntFromHex(ae[2]),b:parseIntFromHex(ae[3]),a:convertHexToDecimal(ae[4]),format:oe?"name":"hex8"}:(ae=matchers.hex6.exec($),ae?{r:parseIntFromHex(ae[1]),g:parseIntFromHex(ae[2]),b:parseIntFromHex(ae[3]),format:oe?"name":"hex"}:(ae=matchers.hex4.exec($),ae?{r:parseIntFromHex(ae[1]+ae[1]),g:parseIntFromHex(ae[2]+ae[2]),b:parseIntFromHex(ae[3]+ae[3]),a:convertHexToDecimal(ae[4]+ae[4]),format:oe?"name":"hex8"}:(ae=matchers.hex3.exec($),ae?{r:parseIntFromHex(ae[1]+ae[1]),g:parseIntFromHex(ae[2]+ae[2]),b:parseIntFromHex(ae[3]+ae[3]),format:oe?"name":"hex"}:!1)))))))))}function isValidCSSUnit($){return!!matchers.CSS_UNIT.exec(String($))}var TinyColor=function(){function $(oe,ae){oe===void 0&&(oe=""),ae===void 0&&(ae={});var ie;if(oe instanceof $)return oe;typeof oe=="number"&&(oe=numberInputToObject(oe)),this.originalInput=oe;var le=inputToRGB(oe);this.originalInput=oe,this.r=le.r,this.g=le.g,this.b=le.b,this.a=le.a,this.roundA=Math.round(100*this.a)/100,this.format=(ie=ae.format)!==null&&ie!==void 0?ie:le.format,this.gradientType=ae.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=le.ok}return $.prototype.isDark=function(){return this.getBrightness()<128},$.prototype.isLight=function(){return!this.isDark()},$.prototype.getBrightness=function(){var oe=this.toRgb();return(oe.r*299+oe.g*587+oe.b*114)/1e3},$.prototype.getLuminance=function(){var oe=this.toRgb(),ae,ie,le,pe=oe.r/255,_e=oe.g/255,Ce=oe.b/255;return pe<=.03928?ae=pe/12.92:ae=Math.pow((pe+.055)/1.055,2.4),_e<=.03928?ie=_e/12.92:ie=Math.pow((_e+.055)/1.055,2.4),Ce<=.03928?le=Ce/12.92:le=Math.pow((Ce+.055)/1.055,2.4),.2126*ae+.7152*ie+.0722*le},$.prototype.getAlpha=function(){return this.a},$.prototype.setAlpha=function(oe){return this.a=boundAlpha(oe),this.roundA=Math.round(100*this.a)/100,this},$.prototype.isMonochrome=function(){var oe=this.toHsl().s;return oe===0},$.prototype.toHsv=function(){var oe=rgbToHsv(this.r,this.g,this.b);return{h:oe.h*360,s:oe.s,v:oe.v,a:this.a}},$.prototype.toHsvString=function(){var oe=rgbToHsv(this.r,this.g,this.b),ae=Math.round(oe.h*360),ie=Math.round(oe.s*100),le=Math.round(oe.v*100);return this.a===1?"hsv(".concat(ae,", ").concat(ie,"%, ").concat(le,"%)"):"hsva(".concat(ae,", ").concat(ie,"%, ").concat(le,"%, ").concat(this.roundA,")")},$.prototype.toHsl=function(){var oe=rgbToHsl(this.r,this.g,this.b);return{h:oe.h*360,s:oe.s,l:oe.l,a:this.a}},$.prototype.toHslString=function(){var oe=rgbToHsl(this.r,this.g,this.b),ae=Math.round(oe.h*360),ie=Math.round(oe.s*100),le=Math.round(oe.l*100);return this.a===1?"hsl(".concat(ae,", ").concat(ie,"%, ").concat(le,"%)"):"hsla(".concat(ae,", ").concat(ie,"%, ").concat(le,"%, ").concat(this.roundA,")")},$.prototype.toHex=function(oe){return oe===void 0&&(oe=!1),rgbToHex(this.r,this.g,this.b,oe)},$.prototype.toHexString=function(oe){return oe===void 0&&(oe=!1),"#"+this.toHex(oe)},$.prototype.toHex8=function(oe){return oe===void 0&&(oe=!1),rgbaToHex(this.r,this.g,this.b,this.a,oe)},$.prototype.toHex8String=function(oe){return oe===void 0&&(oe=!1),"#"+this.toHex8(oe)},$.prototype.toHexShortString=function(oe){return oe===void 0&&(oe=!1),this.a===1?this.toHexString(oe):this.toHex8String(oe)},$.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},$.prototype.toRgbString=function(){var oe=Math.round(this.r),ae=Math.round(this.g),ie=Math.round(this.b);return this.a===1?"rgb(".concat(oe,", ").concat(ae,", ").concat(ie,")"):"rgba(".concat(oe,", ").concat(ae,", ").concat(ie,", ").concat(this.roundA,")")},$.prototype.toPercentageRgb=function(){var oe=function(ae){return"".concat(Math.round(bound01$1(ae,255)*100),"%")};return{r:oe(this.r),g:oe(this.g),b:oe(this.b),a:this.a}},$.prototype.toPercentageRgbString=function(){var oe=function(ae){return Math.round(bound01$1(ae,255)*100)};return this.a===1?"rgb(".concat(oe(this.r),"%, ").concat(oe(this.g),"%, ").concat(oe(this.b),"%)"):"rgba(".concat(oe(this.r),"%, ").concat(oe(this.g),"%, ").concat(oe(this.b),"%, ").concat(this.roundA,")")},$.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var oe="#"+rgbToHex(this.r,this.g,this.b,!1),ae=0,ie=Object.entries(names);ae=0,pe=!ae&&le&&(oe.startsWith("hex")||oe==="name");return pe?oe==="name"&&this.a===0?this.toName():this.toRgbString():(oe==="rgb"&&(ie=this.toRgbString()),oe==="prgb"&&(ie=this.toPercentageRgbString()),(oe==="hex"||oe==="hex6")&&(ie=this.toHexString()),oe==="hex3"&&(ie=this.toHexString(!0)),oe==="hex4"&&(ie=this.toHex8String(!0)),oe==="hex8"&&(ie=this.toHex8String()),oe==="name"&&(ie=this.toName()),oe==="hsl"&&(ie=this.toHslString()),oe==="hsv"&&(ie=this.toHsvString()),ie||this.toHexString())},$.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},$.prototype.clone=function(){return new $(this.toString())},$.prototype.lighten=function(oe){oe===void 0&&(oe=10);var ae=this.toHsl();return ae.l+=oe/100,ae.l=clamp01(ae.l),new $(ae)},$.prototype.brighten=function(oe){oe===void 0&&(oe=10);var ae=this.toRgb();return ae.r=Math.max(0,Math.min(255,ae.r-Math.round(255*-(oe/100)))),ae.g=Math.max(0,Math.min(255,ae.g-Math.round(255*-(oe/100)))),ae.b=Math.max(0,Math.min(255,ae.b-Math.round(255*-(oe/100)))),new $(ae)},$.prototype.darken=function(oe){oe===void 0&&(oe=10);var ae=this.toHsl();return ae.l-=oe/100,ae.l=clamp01(ae.l),new $(ae)},$.prototype.tint=function(oe){return oe===void 0&&(oe=10),this.mix("white",oe)},$.prototype.shade=function(oe){return oe===void 0&&(oe=10),this.mix("black",oe)},$.prototype.desaturate=function(oe){oe===void 0&&(oe=10);var ae=this.toHsl();return ae.s-=oe/100,ae.s=clamp01(ae.s),new $(ae)},$.prototype.saturate=function(oe){oe===void 0&&(oe=10);var ae=this.toHsl();return ae.s+=oe/100,ae.s=clamp01(ae.s),new $(ae)},$.prototype.greyscale=function(){return this.desaturate(100)},$.prototype.spin=function(oe){var ae=this.toHsl(),ie=(ae.h+oe)%360;return ae.h=ie<0?360+ie:ie,new $(ae)},$.prototype.mix=function(oe,ae){ae===void 0&&(ae=50);var ie=this.toRgb(),le=new $(oe).toRgb(),pe=ae/100,_e={r:(le.r-ie.r)*pe+ie.r,g:(le.g-ie.g)*pe+ie.g,b:(le.b-ie.b)*pe+ie.b,a:(le.a-ie.a)*pe+ie.a};return new $(_e)},$.prototype.analogous=function(oe,ae){oe===void 0&&(oe=6),ae===void 0&&(ae=30);var ie=this.toHsl(),le=360/ae,pe=[this];for(ie.h=(ie.h-(le*oe>>1)+720)%360;--oe;)ie.h=(ie.h+le)%360,pe.push(new $(ie));return pe},$.prototype.complement=function(){var oe=this.toHsl();return oe.h=(oe.h+180)%360,new $(oe)},$.prototype.monochromatic=function(oe){oe===void 0&&(oe=6);for(var ae=this.toHsv(),ie=ae.h,le=ae.s,pe=ae.v,_e=[],Ce=1/oe;oe--;)_e.push(new $({h:ie,s:le,v:pe})),pe=(pe+Ce)%1;return _e},$.prototype.splitcomplement=function(){var oe=this.toHsl(),ae=oe.h;return[this,new $({h:(ae+72)%360,s:oe.s,l:oe.l}),new $({h:(ae+216)%360,s:oe.s,l:oe.l})]},$.prototype.onBackground=function(oe){var ae=this.toRgb(),ie=new $(oe).toRgb(),le=ae.a+ie.a*(1-ae.a);return new $({r:(ae.r*ae.a+ie.r*ie.a*(1-ae.a))/le,g:(ae.g*ae.a+ie.g*ie.a*(1-ae.a))/le,b:(ae.b*ae.a+ie.b*ie.a*(1-ae.a))/le,a:le})},$.prototype.triad=function(){return this.polyad(3)},$.prototype.tetrad=function(){return this.polyad(4)},$.prototype.polyad=function(oe){for(var ae=this.toHsl(),ie=ae.h,le=[this],pe=360/oe,_e=1;_e{let ie={};const le=$.color;if(le){const pe=new TinyColor(le),_e=$.dark?pe.tint(20).toString():darken(pe,20);if($.plain)ie=ae.cssVarBlock({"bg-color":$.dark?darken(pe,90):pe.tint(90).toString(),"text-color":le,"border-color":$.dark?darken(pe,50):pe.tint(50).toString(),"hover-text-color":`var(${ae.cssVarName("color-white")})`,"hover-bg-color":le,"hover-border-color":le,"active-bg-color":_e,"active-text-color":`var(${ae.cssVarName("color-white")})`,"active-border-color":_e}),oe.value&&(ie[ae.cssVarBlockName("disabled-bg-color")]=$.dark?darken(pe,90):pe.tint(90).toString(),ie[ae.cssVarBlockName("disabled-text-color")]=$.dark?darken(pe,50):pe.tint(50).toString(),ie[ae.cssVarBlockName("disabled-border-color")]=$.dark?darken(pe,80):pe.tint(80).toString());else{const Ce=$.dark?darken(pe,30):pe.tint(30).toString(),$e=pe.isDark()?`var(${ae.cssVarName("color-white")})`:`var(${ae.cssVarName("color-black")})`;if(ie=ae.cssVarBlock({"bg-color":le,"text-color":$e,"border-color":le,"hover-bg-color":Ce,"hover-text-color":$e,"hover-border-color":Ce,"active-bg-color":_e,"active-border-color":_e}),oe.value){const xe=$.dark?darken(pe,50):pe.tint(50).toString();ie[ae.cssVarBlockName("disabled-bg-color")]=xe,ie[ae.cssVarBlockName("disabled-text-color")]=$.dark?"rgba(255, 255, 255, 0.5)":`var(${ae.cssVarName("color-white")})`,ie[ae.cssVarBlockName("disabled-border-color")]=xe}}}return ie})}const __default__$1i=defineComponent({name:"ElButton"}),_sfc_main$1Z=defineComponent({...__default__$1i,props:buttonProps,emits:buttonEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useButtonCustomStyle(ie),pe=useNamespace("button"),{_ref:_e,_size:Ce,_type:$e,_disabled:xe,_props:Ie,shouldAddSpace:Ne,handleClick:Fe}=useButton(ie,ae);return oe({ref:_e,size:Ce,type:$e,disabled:xe,shouldAddSpace:Ne}),(ze,At)=>(openBlock(),createBlock(resolveDynamicComponent(ze.tag),mergeProps({ref_key:"_ref",ref:_e},unref(Ie),{class:[unref(pe).b(),unref(pe).m(unref($e)),unref(pe).m(unref(Ce)),unref(pe).is("disabled",unref(xe)),unref(pe).is("loading",ze.loading),unref(pe).is("plain",ze.plain),unref(pe).is("round",ze.round),unref(pe).is("circle",ze.circle),unref(pe).is("text",ze.text),unref(pe).is("link",ze.link),unref(pe).is("has-bg",ze.bg)],style:unref(le),onClick:unref(Fe)}),{default:withCtx(()=>[ze.loading?(openBlock(),createElementBlock(Fragment,{key:0},[ze.$slots.loading?renderSlot(ze.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(pe).is("loading"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ze.loadingIcon)))]),_:1},8,["class"]))],64)):ze.icon||ze.$slots.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[ze.icon?(openBlock(),createBlock(resolveDynamicComponent(ze.icon),{key:0})):renderSlot(ze.$slots,"icon",{key:1})]),_:3})):createCommentVNode("v-if",!0),ze.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass({[unref(pe).em("text","expand")]:unref(Ne)})},[renderSlot(ze.$slots,"default")],2)):createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Button=_export_sfc$1(_sfc_main$1Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const buttonGroupProps={size:buttonProps.size,type:buttonProps.type},__default__$1h=defineComponent({name:"ElButtonGroup"}),_sfc_main$1Y=defineComponent({...__default__$1h,props:buttonGroupProps,setup($){const oe=$;provide(buttonGroupContextKey,reactive({size:toRef$1(oe,"size"),type:toRef$1(oe,"type")}));const ae=useNamespace("button");return(ie,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass(`${unref(ae).b("group")}`)},[renderSlot(ie.$slots,"default")],2))}});var ButtonGroup=_export_sfc$1(_sfc_main$1Y,[["__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($){return $&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$}function getAugmentedNamespace($){if($.__esModule)return $;var oe=$.default;if(typeof oe=="function"){var ae=function ie(){if(this instanceof ie){var le=[null];le.push.apply(le,arguments);var pe=Function.bind.apply(oe,le);return new pe}return oe.apply(this,arguments)};ae.prototype=oe.prototype}else ae={};return Object.defineProperty(ae,"__esModule",{value:!0}),Object.keys($).forEach(function(ie){var le=Object.getOwnPropertyDescriptor($,ie);Object.defineProperty(ae,ie,le.get?le:{enumerable:!0,get:function(){return $[ie]}})}),ae}var dayjs_min={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){var ae=1e3,ie=6e4,le=36e5,pe="millisecond",_e="second",Ce="minute",$e="hour",xe="day",Ie="week",Ne="month",Fe="quarter",ze="year",At="date",Lt="Invalid Date",hn=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,vn=/\[([^\]]+)]|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,_n={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(Nn){var Rn=["th","st","nd","rd"],zn=Nn%100;return"["+Nn+(Rn[(zn-20)%10]||Rn[zn]||Rn[0])+"]"}},bn=function(Nn,Rn,zn){var Bn=String(Nn);return!Bn||Bn.length>=Rn?Nn:""+Array(Rn+1-Bn.length).join(zn)+Nn},Cn={s:bn,z:function(Nn){var Rn=-Nn.utcOffset(),zn=Math.abs(Rn),Bn=Math.floor(zn/60),Mn=zn%60;return(Rn<=0?"+":"-")+bn(Bn,2,"0")+":"+bn(Mn,2,"0")},m:function Nn(Rn,zn){if(Rn.date()1)return Nn(Vn[0])}else{var jn=Rn.name;$n[jn]=Rn,Mn=jn}return!Bn&&Mn&&(En=Mn),Mn||!Bn&&En},xn=function(Nn,Rn){if(wn(Nn))return Nn.clone();var zn=typeof Rn=="object"?Rn:{};return zn.date=Nn,zn.args=arguments,new An(zn)},kn=Cn;kn.l=Tn,kn.i=wn,kn.w=function(Nn,Rn){return xn(Nn,{locale:Rn.$L,utc:Rn.$u,x:Rn.$x,$offset:Rn.$offset})};var An=function(){function Nn(zn){this.$L=Tn(zn.locale,null,!0),this.parse(zn)}var Rn=Nn.prototype;return Rn.parse=function(zn){this.$d=function(Bn){var Mn=Bn.date,Fn=Bn.utc;if(Mn===null)return new Date(NaN);if(kn.u(Mn))return new Date;if(Mn instanceof Date)return new Date(Mn);if(typeof Mn=="string"&&!/Z$/i.test(Mn)){var Vn=Mn.match(hn);if(Vn){var jn=Vn[2]-1||0,Zn=(Vn[7]||"0").substring(0,3);return Fn?new Date(Date.UTC(Vn[1],jn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,Zn)):new Date(Vn[1],jn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,Zn)}}return new Date(Mn)}(zn),this.$x=zn.x||{},this.init()},Rn.init=function(){var zn=this.$d;this.$y=zn.getFullYear(),this.$M=zn.getMonth(),this.$D=zn.getDate(),this.$W=zn.getDay(),this.$H=zn.getHours(),this.$m=zn.getMinutes(),this.$s=zn.getSeconds(),this.$ms=zn.getMilliseconds()},Rn.$utils=function(){return kn},Rn.isValid=function(){return this.$d.toString()!==Lt},Rn.isSame=function(zn,Bn){var Mn=xn(zn);return this.startOf(Bn)<=Mn&&Mn<=this.endOf(Bn)},Rn.isAfter=function(zn,Bn){return xn(zn)68?1900:2e3)},xe=function(Lt){return function(hn){this[Lt]=+hn}},Ie=[/[+-]\d\d:?(\d\d)?|Z/,function(Lt){(this.zone||(this.zone={})).offset=function(hn){if(!hn||hn==="Z")return 0;var vn=hn.match(/([+-]|\d\d)/g),_n=60*vn[1]+(+vn[2]||0);return _n===0?0:vn[0]==="+"?-_n:_n}(Lt)}],Ne=function(Lt){var hn=Ce[Lt];return hn&&(hn.indexOf?hn:hn.s.concat(hn.f))},Fe=function(Lt,hn){var vn,_n=Ce.meridiem;if(_n){for(var bn=1;bn<=24;bn+=1)if(Lt.indexOf(_n(bn,0,hn))>-1){vn=bn>12;break}}else vn=Lt===(hn?"pm":"PM");return vn},ze={A:[_e,function(Lt){this.afternoon=Fe(Lt,!1)}],a:[_e,function(Lt){this.afternoon=Fe(Lt,!0)}],S:[/\d/,function(Lt){this.milliseconds=100*+Lt}],SS:[le,function(Lt){this.milliseconds=10*+Lt}],SSS:[/\d{3}/,function(Lt){this.milliseconds=+Lt}],s:[pe,xe("seconds")],ss:[pe,xe("seconds")],m:[pe,xe("minutes")],mm:[pe,xe("minutes")],H:[pe,xe("hours")],h:[pe,xe("hours")],HH:[pe,xe("hours")],hh:[pe,xe("hours")],D:[pe,xe("day")],DD:[le,xe("day")],Do:[_e,function(Lt){var hn=Ce.ordinal,vn=Lt.match(/\d+/);if(this.day=vn[0],hn)for(var _n=1;_n<=31;_n+=1)hn(_n).replace(/\[|\]/g,"")===Lt&&(this.day=_n)}],M:[pe,xe("month")],MM:[le,xe("month")],MMM:[_e,function(Lt){var hn=Ne("months"),vn=(Ne("monthsShort")||hn.map(function(_n){return _n.slice(0,3)})).indexOf(Lt)+1;if(vn<1)throw new Error;this.month=vn%12||vn}],MMMM:[_e,function(Lt){var hn=Ne("months").indexOf(Lt)+1;if(hn<1)throw new Error;this.month=hn%12||hn}],Y:[/[+-]?\d+/,xe("year")],YY:[le,function(Lt){this.year=$e(Lt)}],YYYY:[/\d{4}/,xe("year")],Z:Ie,ZZ:Ie};function At(Lt){var hn,vn;hn=Lt,vn=Ce&&Ce.formats;for(var _n=(Lt=hn.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(xn,kn,An){var On=An&&An.toUpperCase();return kn||vn[An]||ae[An]||vn[On].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Nn,Rn,zn){return Rn||zn.slice(1)})})).match(ie),bn=_n.length,Cn=0;Cn-1)return new Date((Mn==="X"?1e3:1)*Bn);var Vn=At(Mn)(Bn),jn=Vn.year,Zn=Vn.month,Gn=Vn.day,Xn=Vn.hours,cr=Vn.minutes,nr=Vn.seconds,er=Vn.milliseconds,rr=Vn.zone,qn=new Date,Yn=Gn||(jn||Zn?1:qn.getDate()),ar=jn||qn.getFullYear(),pr=0;jn&&!Zn||(pr=Zn>0?Zn-1:qn.getMonth());var Un=Xn||0,tr=cr||0,ur=nr||0,_r=er||0;return rr?new Date(Date.UTC(ar,pr,Yn,Un,tr,ur,_r+60*rr.offset*1e3)):Fn?new Date(Date.UTC(ar,pr,Yn,Un,tr,ur,_r)):new Date(ar,pr,Yn,Un,tr,ur,_r)}catch{return new Date("")}}(En,Tn,$n),this.init(),On&&On!==!0&&(this.$L=this.locale(On).$L),An&&En!=this.format(Tn)&&(this.$d=new Date("")),Ce={}}else if(Tn instanceof Array)for(var Nn=Tn.length,Rn=1;Rn<=Nn;Rn+=1){wn[1]=Tn[Rn-1];var zn=vn.apply(this,wn);if(zn.isValid()){this.$d=zn.$d,this.$L=zn.$L,this.init();break}Rn===Nn&&(this.$d=new Date(""))}else bn.call(this,Cn)}}})})(customParseFormat$1);var customParseFormatExports=customParseFormat$1.exports;const customParseFormat=getDefaultExportFromCjs(customParseFormatExports),timeUnits$2=["hours","minutes","seconds"],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",month:"YYYY-MM",datetime:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`,monthrange:"YYYY-MM",daterange:DEFAULT_FORMATS_DATE,datetimerange:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`},buildTimeList=($,oe)=>[$>0?$-1:void 0,$,$Array.from(Array.from({length:$}).keys()),extractDateFormat=$=>$.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),extractTimeFormat=$=>$.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),dateEquals=function($,oe){const ae=isDate$3($),ie=isDate$3(oe);return ae&&ie?$.getTime()===oe.getTime():!ae&&!ie?$===oe:!1},valueEquals=function($,oe){const ae=isArray$c($),ie=isArray$c(oe);return ae&&ie?$.length!==oe.length?!1:$.every((le,pe)=>dateEquals(le,oe[pe])):!ae&&!ie?dateEquals($,oe):!1},parseDate$1=function($,oe,ae){const ie=isEmpty(oe)||oe==="x"?dayjs($).locale(ae):dayjs($,oe).locale(ae);return ie.isValid()?ie:void 0},formatter=function($,oe,ae){return isEmpty(oe)?$:oe==="x"?+$:dayjs($).locale(ae).format(oe)},makeList=($,oe)=>{var ae;const ie=[],le=oe==null?void 0:oe();for(let pe=0;pe<$;pe++)ie.push((ae=le==null?void 0:le.includes(pe))!=null?ae:!1);return ie},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({id:{type:definePropType([Array,String])},name:{type:definePropType([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat: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:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},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:{type:Boolean,default:!1},...disabledTimeListsProps,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:definePropType([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),_hoisted_1$_=["id","name","placeholder","value","disabled","readonly"],_hoisted_2$E=["id","name","placeholder","value","disabled","readonly"],__default__$1g=defineComponent({name:"Picker"}),_sfc_main$1X=defineComponent({...__default__$1g,props:timePickerDefaultProps,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup($,{expose:oe,emit:ae}){const ie=$,{lang:le}=useLocale(),pe=useNamespace("date"),_e=useNamespace("input"),Ce=useNamespace("range"),{form:$e,formItem:xe}=useFormItem(),Ie=inject("ElPopperOptions",{}),Ne=ref(),Fe=ref(),ze=ref(!1),At=ref(!1),Lt=ref(null);let hn=!1,vn=!1;watch(ze,Jn=>{Jn?nextTick(()=>{Jn&&(Lt.value=ie.modelValue)}):(sr.value=null,nextTick(()=>{_n(ie.modelValue)}))});const _n=(Jn,ir)=>{(ir||!valueEquals(Jn,Lt.value))&&(ae("change",Jn),ie.validateEvent&&(xe==null||xe.validate("change").catch(xr=>void 0)))},bn=Jn=>{if(!valueEquals(ie.modelValue,Jn)){let ir;isArray$c(Jn)?ir=Jn.map(xr=>formatter(xr,ie.valueFormat,le.value)):Jn&&(ir=formatter(Jn,ie.valueFormat,le.value)),ae("update:modelValue",Jn&&ir,le.value)}},Cn=Jn=>{ae("keydown",Jn)},En=computed(()=>{if(Fe.value){const Jn=tr.value?Fe.value:Fe.value.$el;return Array.from(Jn.querySelectorAll("input"))}return[]}),$n=(Jn,ir,xr)=>{const Ir=En.value;Ir.length&&(!xr||xr==="min"?(Ir[0].setSelectionRange(Jn,ir),Ir[0].focus()):xr==="max"&&(Ir[1].setSelectionRange(Jn,ir),Ir[1].focus()))},wn=()=>{zn(!0,!0),nextTick(()=>{vn=!1})},Tn=(Jn="",ir=!1)=>{ir||(vn=!0),ze.value=ir;let xr;isArray$c(Jn)?xr=Jn.map(Ir=>Ir.toDate()):xr=Jn&&Jn.toDate(),sr.value=null,bn(xr)},xn=()=>{At.value=!0},kn=()=>{ae("visible-change",!0)},An=Jn=>{(Jn==null?void 0:Jn.key)===EVENT_CODE.esc&&zn(!0,!0)},On=()=>{At.value=!1,ze.value=!1,vn=!1,ae("visible-change",!1)},Nn=()=>{ze.value=!0},Rn=()=>{ze.value=!1},zn=(Jn=!0,ir=!1)=>{vn=ir;const[xr,Ir]=unref(En);let Hr=xr;!Jn&&tr.value&&(Hr=Ir),Hr&&Hr.focus()},Bn=Jn=>{ie.readonly||Vn.value||ze.value||vn||(ze.value=!0,ae("focus",Jn))};let Mn;const Fn=Jn=>{const ir=async()=>{setTimeout(()=>{var xr;Mn===ir&&(!((xr=Ne.value)!=null&&xr.isFocusInsideContent()&&!hn)&&En.value.filter(Ir=>Ir.contains(document.activeElement)).length===0&&(Pr(),ze.value=!1,ae("blur",Jn),ie.validateEvent&&(xe==null||xe.validate("blur").catch(Ir=>void 0))),hn=!1)},0)};Mn=ir,ir()},Vn=computed(()=>ie.disabled||($e==null?void 0:$e.disabled)),jn=computed(()=>{let Jn;if(qn.value?Rr.value.getDefaultValue&&(Jn=Rr.value.getDefaultValue()):isArray$c(ie.modelValue)?Jn=ie.modelValue.map(ir=>parseDate$1(ir,ie.valueFormat,le.value)):Jn=parseDate$1(ie.modelValue,ie.valueFormat,le.value),Rr.value.getRangeAvailableTime){const ir=Rr.value.getRangeAvailableTime(Jn);isEqual$1(ir,Jn)||(Jn=ir,bn(isArray$c(Jn)?Jn.map(xr=>xr.toDate()):Jn.toDate()))}return isArray$c(Jn)&&Jn.some(ir=>!ir)&&(Jn=[]),Jn}),Zn=computed(()=>{if(!Rr.value.panelReady)return"";const Jn=kr(jn.value);return isArray$c(sr.value)?[sr.value[0]||Jn&&Jn[0]||"",sr.value[1]||Jn&&Jn[1]||""]:sr.value!==null?sr.value:!Xn.value&&qn.value||!ze.value&&qn.value?"":Jn?cr.value?Jn.join(", "):Jn:""}),Gn=computed(()=>ie.type.includes("time")),Xn=computed(()=>ie.type.startsWith("time")),cr=computed(()=>ie.type==="dates"),nr=computed(()=>ie.prefixIcon||(Gn.value?clock_default:calendar_default)),er=ref(!1),rr=Jn=>{ie.readonly||Vn.value||er.value&&(Jn.stopPropagation(),wn(),bn(null),_n(null,!0),er.value=!1,ze.value=!1,Rr.value.handleClear&&Rr.value.handleClear())},qn=computed(()=>{const{modelValue:Jn}=ie;return!Jn||isArray$c(Jn)&&!Jn.filter(Boolean).length}),Yn=async Jn=>{var ir;ie.readonly||Vn.value||(((ir=Jn.target)==null?void 0:ir.tagName)!=="INPUT"||En.value.includes(document.activeElement))&&(ze.value=!0)},ar=()=>{ie.readonly||Vn.value||!qn.value&&ie.clearable&&(er.value=!0)},pr=()=>{er.value=!1},Un=Jn=>{var ir;ie.readonly||Vn.value||(((ir=Jn.touches[0].target)==null?void 0:ir.tagName)!=="INPUT"||En.value.includes(document.activeElement))&&(ze.value=!0)},tr=computed(()=>ie.type.includes("range")),ur=useFormSize(),_r=computed(()=>{var Jn,ir;return(ir=(Jn=unref(Ne))==null?void 0:Jn.popperRef)==null?void 0:ir.contentRef}),Er=computed(()=>{var Jn;return unref(tr)?unref(Fe):(Jn=unref(Fe))==null?void 0:Jn.$el});onClickOutside(Er,Jn=>{const ir=unref(_r),xr=unref(Er);ir&&(Jn.target===ir||Jn.composedPath().includes(ir))||Jn.target===xr||Jn.composedPath().includes(xr)||(ze.value=!1)});const sr=ref(null),Pr=()=>{if(sr.value){const Jn=Sr(Zn.value);Jn&&mr(Jn)&&(bn(isArray$c(Jn)?Jn.map(ir=>ir.toDate()):Jn.toDate()),sr.value=null)}sr.value===""&&(bn(null),_n(null),sr.value=null)},Sr=Jn=>Jn?Rr.value.parseUserInput(Jn):null,kr=Jn=>Jn?Rr.value.formatToString(Jn):null,mr=Jn=>Rr.value.isValidValue(Jn),lr=async Jn=>{if(ie.readonly||Vn.value)return;const{code:ir}=Jn;if(Cn(Jn),ir===EVENT_CODE.esc){ze.value===!0&&(ze.value=!1,Jn.preventDefault(),Jn.stopPropagation());return}if(ir===EVENT_CODE.down&&(Rr.value.handleFocusPicker&&(Jn.preventDefault(),Jn.stopPropagation()),ze.value===!1&&(ze.value=!0,await nextTick()),Rr.value.handleFocusPicker)){Rr.value.handleFocusPicker();return}if(ir===EVENT_CODE.tab){hn=!0;return}if(ir===EVENT_CODE.enter||ir===EVENT_CODE.numpadEnter){(sr.value===null||sr.value===""||mr(Sr(Zn.value)))&&(Pr(),ze.value=!1),Jn.stopPropagation();return}if(sr.value){Jn.stopPropagation();return}Rr.value.handleKeydownInput&&Rr.value.handleKeydownInput(Jn)},hr=Jn=>{sr.value=Jn,ze.value||(ze.value=!0)},gr=Jn=>{const ir=Jn.target;sr.value?sr.value=[ir.value,sr.value[1]]:sr.value=[ir.value,null]},Or=Jn=>{const ir=Jn.target;sr.value?sr.value=[sr.value[0],ir.value]:sr.value=[null,ir.value]},Lr=()=>{var Jn;const ir=sr.value,xr=Sr(ir&&ir[0]),Ir=unref(jn);if(xr&&xr.isValid()){sr.value=[kr(xr),((Jn=Zn.value)==null?void 0:Jn[1])||null];const Hr=[xr,Ir&&(Ir[1]||null)];mr(Hr)&&(bn(Hr),sr.value=null)}},Vr=()=>{var Jn;const ir=unref(sr),xr=Sr(ir&&ir[1]),Ir=unref(jn);if(xr&&xr.isValid()){sr.value=[((Jn=unref(Zn))==null?void 0:Jn[0])||null,kr(xr)];const Hr=[Ir&&Ir[0],xr];mr(Hr)&&(bn(Hr),sr.value=null)}},Rr=ref({}),$r=Jn=>{Rr.value[Jn[0]]=Jn[1],Rr.value.panelReady=!0},Tr=Jn=>{ae("calendar-change",Jn)},dr=(Jn,ir,xr)=>{ae("panel-change",Jn,ir,xr)};return provide("EP_PICKER_BASE",{props:ie}),oe({focus:zn,handleFocusInput:Bn,handleBlurInput:Fn,handleOpen:Nn,handleClose:Rn,onPick:Tn}),(Jn,ir)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"refPopper",ref:Ne,visible:ze.value,effect:"light",pure:"",trigger:"click"},Jn.$attrs,{role:"dialog",teleported:"",transition:`${unref(pe).namespace.value}-zoom-in-top`,"popper-class":[`${unref(pe).namespace.value}-picker__popper`,Jn.popperClass],"popper-options":unref(Ie),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:xn,onShow:kn,onHide:On}),{default:withCtx(()=>[unref(tr)?(openBlock(),createElementBlock("div",{key:1,ref_key:"inputRef",ref:Fe,class:normalizeClass([unref(pe).b("editor"),unref(pe).bm("editor",Jn.type),unref(_e).e("wrapper"),unref(pe).is("disabled",unref(Vn)),unref(pe).is("active",ze.value),unref(Ce).b("editor"),unref(ur)?unref(Ce).bm("editor",unref(ur)):"",Jn.$attrs.class]),style:normalizeStyle$1(Jn.$attrs.style),onClick:Bn,onMouseenter:ar,onMouseleave:pr,onTouchstart:Un,onKeydown:lr},[unref(nr)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(_e).e("icon"),unref(Ce).e("icon")]),onMousedown:withModifiers(Yn,["prevent"]),onTouchstart:Un},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(nr))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),createBaseVNode("input",{id:Jn.id&&Jn.id[0],autocomplete:"off",name:Jn.name&&Jn.name[0],placeholder:Jn.startPlaceholder,value:unref(Zn)&&unref(Zn)[0],disabled:unref(Vn),readonly:!Jn.editable||Jn.readonly,class:normalizeClass(unref(Ce).b("input")),onMousedown:Yn,onInput:gr,onChange:Lr,onFocus:Bn,onBlur:Fn},null,42,_hoisted_1$_),renderSlot(Jn.$slots,"range-separator",{},()=>[createBaseVNode("span",{class:normalizeClass(unref(Ce).b("separator"))},toDisplayString$1(Jn.rangeSeparator),3)]),createBaseVNode("input",{id:Jn.id&&Jn.id[1],autocomplete:"off",name:Jn.name&&Jn.name[1],placeholder:Jn.endPlaceholder,value:unref(Zn)&&unref(Zn)[1],disabled:unref(Vn),readonly:!Jn.editable||Jn.readonly,class:normalizeClass(unref(Ce).b("input")),onMousedown:Yn,onFocus:Bn,onBlur:Fn,onInput:Or,onChange:Vr},null,42,_hoisted_2$E),Jn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(_e).e("icon"),unref(Ce).e("close-icon"),{[unref(Ce).e("close-icon--hidden")]:!er.value}]),onClick:rr},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Jn.clearIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],38)):(openBlock(),createBlock(unref(ElInput),{key:0,id:Jn.id,ref_key:"inputRef",ref:Fe,"container-role":"combobox","model-value":unref(Zn),name:Jn.name,size:unref(ur),disabled:unref(Vn),placeholder:Jn.placeholder,class:normalizeClass([unref(pe).b("editor"),unref(pe).bm("editor",Jn.type),Jn.$attrs.class]),style:normalizeStyle$1(Jn.$attrs.style),readonly:!Jn.editable||Jn.readonly||unref(cr)||Jn.type==="week",label:Jn.label,tabindex:Jn.tabindex,"validate-event":!1,onInput:hr,onFocus:Bn,onBlur:Fn,onKeydown:lr,onChange:Pr,onMousedown:Yn,onMouseenter:ar,onMouseleave:pr,onTouchstart:Un,onClick:ir[0]||(ir[0]=withModifiers(()=>{},["stop"]))},{prefix:withCtx(()=>[unref(nr)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(_e).e("icon")),onMousedown:withModifiers(Yn,["prevent"]),onTouchstart:Un},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(nr))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0)]),suffix:withCtx(()=>[er.value&&Jn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(`${unref(_e).e("icon")} clear-icon`),onClick:withModifiers(rr,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Jn.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:withCtx(()=>[renderSlot(Jn.$slots,"default",{visible:ze.value,actualVisible:At.value,parsedValue:unref(jn),format:Jn.format,unlinkPanels:Jn.unlinkPanels,type:Jn.type,defaultValue:Jn.defaultValue,onPick:Tn,onSelectRange:$n,onSetPickerOption:$r,onCalendarChange:Tr,onPanelChange:dr,onKeydown:An,onMousedown:ir[1]||(ir[1]=withModifiers(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var CommonPicker=_export_sfc$1(_sfc_main$1X,[["__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:$,getAvailableMinutes:oe,getAvailableSeconds:ae})=>{const ie=(_e,Ce,$e,xe)=>{const Ie={hour:$,minute:oe,second:ae};let Ne=_e;return["hour","minute","second"].forEach(Fe=>{if(Ie[Fe]){let ze;const At=Ie[Fe];switch(Fe){case"minute":{ze=At(Ne.hour(),Ce,xe);break}case"second":{ze=At(Ne.hour(),Ne.minute(),Ce,xe);break}default:{ze=At(Ce,xe);break}}if(ze!=null&&ze.length&&!ze.includes(Ne[Fe]())){const Lt=$e?0:ze.length-1;Ne=Ne[Fe](ze[Lt])}}}),Ne},le={};return{timePickerOptions:le,getAvailableTime:ie,onSetOption:([_e,Ce])=>{le[_e]=Ce}}},makeAvailableArr=$=>{const oe=(ie,le)=>ie||le,ae=ie=>ie!==!0;return $.map(oe).filter(ae)},getTimeLists=($,oe,ae)=>({getHoursList:(_e,Ce)=>makeList(24,$&&(()=>$==null?void 0:$(_e,Ce))),getMinutesList:(_e,Ce,$e)=>makeList(60,oe&&(()=>oe==null?void 0:oe(_e,Ce,$e))),getSecondsList:(_e,Ce,$e,xe)=>makeList(60,ae&&(()=>ae==null?void 0:ae(_e,Ce,$e,xe)))}),buildAvailableTimeSlotGetter=($,oe,ae)=>{const{getHoursList:ie,getMinutesList:le,getSecondsList:pe}=getTimeLists($,oe,ae);return{getAvailableHours:(xe,Ie)=>makeAvailableArr(ie(xe,Ie)),getAvailableMinutes:(xe,Ie,Ne)=>makeAvailableArr(le(xe,Ie,Ne)),getAvailableSeconds:(xe,Ie,Ne,Fe)=>makeAvailableArr(pe(xe,Ie,Ne,Fe))}},useOldValue=$=>{const oe=ref($.parsedValue);return watch(()=>$.visible,ae=>{ae||(oe.value=$.parsedValue)}),oe},nodeList=new Map;let startClick;isClient$2&&(document.addEventListener("mousedown",$=>startClick=$),document.addEventListener("mouseup",$=>{for(const oe of nodeList.values())for(const{documentHandler:ae}of oe)ae($,startClick)}));function createDocumentHandler($,oe){let ae=[];return Array.isArray(oe.arg)?ae=oe.arg:isElement$2(oe.arg)&&ae.push(oe.arg),function(ie,le){const pe=oe.instance.popperRef,_e=ie.target,Ce=le==null?void 0:le.target,$e=!oe||!oe.instance,xe=!_e||!Ce,Ie=$.contains(_e)||$.contains(Ce),Ne=$===_e,Fe=ae.length&&ae.some(At=>At==null?void 0:At.contains(_e))||ae.length&&ae.includes(Ce),ze=pe&&(pe.contains(_e)||pe.contains(Ce));$e||xe||Ie||Ne||Fe||ze||oe.value(ie,le)}}const ClickOutside={beforeMount($,oe){nodeList.has($)||nodeList.set($,[]),nodeList.get($).push({documentHandler:createDocumentHandler($,oe),bindingFn:oe.value})},updated($,oe){nodeList.has($)||nodeList.set($,[]);const ae=nodeList.get($),ie=ae.findIndex(pe=>pe.bindingFn===oe.oldValue),le={documentHandler:createDocumentHandler($,oe),bindingFn:oe.value};ie>=0?ae.splice(ie,1,le):ae.push(le)},unmounted($){nodeList.delete($)}},REPEAT_INTERVAL=100,REPEAT_DELAY=600,vRepeatClick={beforeMount($,oe){const ae=oe.value,{interval:ie=REPEAT_INTERVAL,delay:le=REPEAT_DELAY}=isFunction$5(ae)?{}:ae;let pe,_e;const Ce=()=>isFunction$5(ae)?ae():ae.handler(),$e=()=>{_e&&(clearTimeout(_e),_e=void 0),pe&&(clearInterval(pe),pe=void 0)};$.addEventListener("mousedown",xe=>{xe.button===0&&($e(),Ce(),document.addEventListener("mouseup",()=>$e(),{once:!0}),_e=setTimeout(()=>{pe=setInterval(()=>{Ce()},ie)},le))})}},FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=$=>{if(FOCUS_STACK.length===0)return;const oe=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(oe.length>0&&$.code===EVENT_CODE.tab){if(oe.length===1){$.preventDefault(),document.activeElement!==oe[0]&&oe[0].focus();return}const ae=$.shiftKey,ie=$.target===oe[0],le=$.target===oe[oe.length-1];ie&&ae&&($.preventDefault(),oe[oe.length-1].focus()),le&&!ae&&($.preventDefault(),oe[0].focus())}},TrapFocus={beforeMount($){$[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1($),FOCUS_STACK.push($),FOCUS_STACK.length<=1&&document.addEventListener("keydown",FOCUS_HANDLER)},updated($){nextTick(()=>{$[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1($)})},unmounted(){FOCUS_STACK.shift(),FOCUS_STACK.length===0&&document.removeEventListener("keydown",FOCUS_HANDLER)}};var v=!1,o,f$1,s,u$1,d$1,N$1,l,p$1,m$3,w,D$2,x,E,M$1,F;function a$1(){if(!v){v=!0;var $=navigator.userAgent,oe=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec($),ae=/(Mac OS X)|(Windows)|(Linux)/.exec($);if(x=/\b(iPhone|iP[ao]d)/.exec($),E=/\b(iP[ao]d)/.exec($),w=/Android/i.exec($),M$1=/FBAN\/\w+;/i.exec($),F=/Mobile/i.exec($),D$2=!!/Win64/.exec($),oe){o=oe[1]?parseFloat(oe[1]):oe[5]?parseFloat(oe[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var ie=/(?:Trident\/(\d+.\d+))/.exec($);N$1=ie?parseFloat(ie[1])+4:o,f$1=oe[2]?parseFloat(oe[2]):NaN,s=oe[3]?parseFloat(oe[3]):NaN,u$1=oe[4]?parseFloat(oe[4]):NaN,u$1?(oe=/(?:Chrome\/(\d+\.\d+))/.exec($),d$1=oe&&oe[1]?parseFloat(oe[1]):NaN):d$1=NaN}else o=f$1=s=d$1=u$1=NaN;if(ae){if(ae[1]){var le=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec($);l=le?parseFloat(le[1].replace("_",".")):!0}else l=!1;p$1=!!ae[2],m$3=!!ae[3]}else l=p$1=m$3=!1}}var _$2={ie:function(){return a$1()||o},ieCompatibilityMode:function(){return a$1()||N$1>o},ie64:function(){return _$2.ie()&&D$2},firefox:function(){return a$1()||f$1},opera:function(){return a$1()||s},webkit:function(){return a$1()||u$1},safari:function(){return _$2.webkit()},chrome:function(){return a$1()||d$1},windows:function(){return a$1()||p$1},osx:function(){return a$1()||l},linux:function(){return a$1()||m$3},iphone:function(){return a$1()||x},mobile:function(){return a$1()||x||E||w||F},nativeApp:function(){return a$1()||M$1},android:function(){return a$1()||w},ipad:function(){return a$1()||E}},A=_$2,c$2=!!(typeof window<"u"&&window.document&&window.document.createElement),U$1={canUseDOM:c$2,canUseWorkers:typeof Worker<"u",canUseEventListeners:c$2&&!!(window.addEventListener||window.attachEvent),canUseViewport:c$2&&!!window.screen,isInWorker:!c$2},h$1=U$1,X;h$1.canUseDOM&&(X=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function S$1($,oe){if(!h$1.canUseDOM||oe&&!("addEventListener"in document))return!1;var ae="on"+$,ie=ae in document;if(!ie){var le=document.createElement("div");le.setAttribute(ae,"return;"),ie=typeof le[ae]=="function"}return!ie&&X&&$==="wheel"&&(ie=document.implementation.hasFeature("Events.wheel","3.0")),ie}var b$1=S$1,O$1=10,I$1=40,P$2=800;function T$1($){var oe=0,ae=0,ie=0,le=0;return"detail"in $&&(ae=$.detail),"wheelDelta"in $&&(ae=-$.wheelDelta/120),"wheelDeltaY"in $&&(ae=-$.wheelDeltaY/120),"wheelDeltaX"in $&&(oe=-$.wheelDeltaX/120),"axis"in $&&$.axis===$.HORIZONTAL_AXIS&&(oe=ae,ae=0),ie=oe*O$1,le=ae*O$1,"deltaY"in $&&(le=$.deltaY),"deltaX"in $&&(ie=$.deltaX),(ie||le)&&$.deltaMode&&($.deltaMode==1?(ie*=I$1,le*=I$1):(ie*=P$2,le*=P$2)),ie&&!oe&&(oe=ie<1?-1:1),le&&!ae&&(ae=le<1?-1:1),{spinX:oe,spinY:ae,pixelX:ie,pixelY:le}}T$1.getEventType=function(){return A.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 mousewheel=function($,oe){if($&&$.addEventListener){const ae=function(ie){const le=Y(ie);oe&&Reflect.apply(oe,this,[ie,le])};$.addEventListener("wheel",ae,{passive:!0})}},Mousewheel={beforeMount($,oe){mousewheel($,oe.value)}},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}),_hoisted_1$Z=["onClick"],_hoisted_2$D=["onMouseenter"],_sfc_main$1W=defineComponent({__name:"basic-time-spinner",props:basicTimeSpinnerProps,emits:["change","select-range","set-option"],setup($,{emit:oe}){const ae=$,ie=useNamespace("time"),{getHoursList:le,getMinutesList:pe,getSecondsList:_e}=getTimeLists(ae.disabledHours,ae.disabledMinutes,ae.disabledSeconds);let Ce=!1;const $e=ref(),xe=ref(),Ie=ref(),Ne=ref(),Fe={hours:xe,minutes:Ie,seconds:Ne},ze=computed(()=>ae.showSeconds?timeUnits$2:timeUnits$2.slice(0,2)),At=computed(()=>{const{spinnerDate:Vn}=ae,jn=Vn.hour(),Zn=Vn.minute(),Gn=Vn.second();return{hours:jn,minutes:Zn,seconds:Gn}}),Lt=computed(()=>{const{hours:Vn,minutes:jn}=unref(At);return{hours:le(ae.role),minutes:pe(Vn,ae.role),seconds:_e(Vn,jn,ae.role)}}),hn=computed(()=>{const{hours:Vn,minutes:jn,seconds:Zn}=unref(At);return{hours:buildTimeList(Vn,23),minutes:buildTimeList(jn,59),seconds:buildTimeList(Zn,59)}}),vn=debounce(Vn=>{Ce=!1,Cn(Vn)},200),_n=Vn=>{if(!!!ae.amPmMode)return"";const Zn=ae.amPmMode==="A";let Gn=Vn<12?" am":" pm";return Zn&&(Gn=Gn.toUpperCase()),Gn},bn=Vn=>{let jn;switch(Vn){case"hours":jn=[0,2];break;case"minutes":jn=[3,5];break;case"seconds":jn=[6,8];break}const[Zn,Gn]=jn;oe("select-range",Zn,Gn),$e.value=Vn},Cn=Vn=>{wn(Vn,unref(At)[Vn])},En=()=>{Cn("hours"),Cn("minutes"),Cn("seconds")},$n=Vn=>Vn.querySelector(`.${ie.namespace.value}-scrollbar__wrap`),wn=(Vn,jn)=>{if(ae.arrowControl)return;const Zn=unref(Fe[Vn]);Zn&&Zn.$el&&($n(Zn.$el).scrollTop=Math.max(0,jn*Tn(Vn)))},Tn=Vn=>{const jn=unref(Fe[Vn]);return(jn==null?void 0:jn.$el.querySelector("li").offsetHeight)||0},xn=()=>{An(1)},kn=()=>{An(-1)},An=Vn=>{$e.value||bn("hours");const jn=$e.value,Zn=unref(At)[jn],Gn=$e.value==="hours"?24:60,Xn=On(jn,Zn,Vn,Gn);Nn(jn,Xn),wn(jn,Xn),nextTick(()=>bn(jn))},On=(Vn,jn,Zn,Gn)=>{let Xn=(jn+Zn+Gn)%Gn;const cr=unref(Lt)[Vn];for(;cr[Xn]&&Xn!==jn;)Xn=(Xn+Zn+Gn)%Gn;return Xn},Nn=(Vn,jn)=>{if(unref(Lt)[Vn][jn])return;const{hours:Xn,minutes:cr,seconds:nr}=unref(At);let er;switch(Vn){case"hours":er=ae.spinnerDate.hour(jn).minute(cr).second(nr);break;case"minutes":er=ae.spinnerDate.hour(Xn).minute(jn).second(nr);break;case"seconds":er=ae.spinnerDate.hour(Xn).minute(cr).second(jn);break}oe("change",er)},Rn=(Vn,{value:jn,disabled:Zn})=>{Zn||(Nn(Vn,jn),bn(Vn),wn(Vn,jn))},zn=Vn=>{Ce=!0,vn(Vn);const jn=Math.min(Math.round(($n(unref(Fe[Vn]).$el).scrollTop-(Bn(Vn)*.5-10)/Tn(Vn)+3)/Tn(Vn)),Vn==="hours"?23:59);Nn(Vn,jn)},Bn=Vn=>unref(Fe[Vn]).$el.offsetHeight,Mn=()=>{const Vn=jn=>{const Zn=unref(Fe[jn]);Zn&&Zn.$el&&($n(Zn.$el).onscroll=()=>{zn(jn)})};Vn("hours"),Vn("minutes"),Vn("seconds")};onMounted(()=>{nextTick(()=>{!ae.arrowControl&&Mn(),En(),ae.role==="start"&&bn("hours")})});const Fn=(Vn,jn)=>{Fe[jn].value=Vn};return oe("set-option",[`${ae.role}_scrollDown`,An]),oe("set-option",[`${ae.role}_emitSelectRange`,bn]),watch(()=>ae.spinnerDate,()=>{Ce||En()}),(Vn,jn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b("spinner"),{"has-seconds":Vn.showSeconds}])},[Vn.arrowControl?createCommentVNode("v-if",!0):(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(unref(ze),Zn=>(openBlock(),createBlock(unref(ElScrollbar),{key:Zn,ref_for:!0,ref:Gn=>Fn(Gn,Zn),class:normalizeClass(unref(ie).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":unref(ie).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:Gn=>bn(Zn),onMousemove:Gn=>Cn(Zn)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Lt)[Zn],(Gn,Xn)=>(openBlock(),createElementBlock("li",{key:Xn,class:normalizeClass([unref(ie).be("spinner","item"),unref(ie).is("active",Xn===unref(At)[Zn]),unref(ie).is("disabled",Gn)]),onClick:cr=>Rn(Zn,{value:Xn,disabled:Gn})},[Zn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(Vn.amPmMode?Xn%12||12:Xn)).slice(-2))+toDisplayString$1(_n(Xn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Xn).slice(-2)),1)],64))],10,_hoisted_1$Z))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),Vn.arrowControl?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(unref(ze),Zn=>(openBlock(),createElementBlock("div",{key:Zn,class:normalizeClass([unref(ie).be("spinner","wrapper"),unref(ie).is("arrow")]),onMouseenter:Gn=>bn(Zn)},[withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-up",unref(ie).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_up_default))]),_:1},8,["class"])),[[unref(vRepeatClick),kn]]),withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-down",unref(ie).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"])),[[unref(vRepeatClick),xn]]),createBaseVNode("ul",{class:normalizeClass(unref(ie).be("spinner","list"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(hn)[Zn],(Gn,Xn)=>(openBlock(),createElementBlock("li",{key:Xn,class:normalizeClass([unref(ie).be("spinner","item"),unref(ie).is("active",Gn===unref(At)[Zn]),unref(ie).is("disabled",unref(Lt)[Zn][Gn])])},[typeof Gn=="number"?(openBlock(),createElementBlock(Fragment,{key:0},[Zn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(Vn.amPmMode?Gn%12||12:Gn)).slice(-2))+toDisplayString$1(_n(Gn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Gn).slice(-2)),1)],64))],64)):createCommentVNode("v-if",!0)],2))),128))],2)],42,_hoisted_2$D))),128)):createCommentVNode("v-if",!0)],2))}});var TimeSpinner=_export_sfc$1(_sfc_main$1W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const _sfc_main$1V=defineComponent({__name:"panel-time-pick",props:panelTimePickerProps,emits:["pick","select-range","set-picker-option"],setup($,{emit:oe}){const ae=$,ie=inject("EP_PICKER_BASE"),{arrowControl:le,disabledHours:pe,disabledMinutes:_e,disabledSeconds:Ce,defaultValue:$e}=ie.props,{getAvailableHours:xe,getAvailableMinutes:Ie,getAvailableSeconds:Ne}=buildAvailableTimeSlotGetter(pe,_e,Ce),Fe=useNamespace("time"),{t:ze,lang:At}=useLocale(),Lt=ref([0,2]),hn=useOldValue(ae),vn=computed(()=>isUndefined$1(ae.actualVisible)?`${Fe.namespace.value}-zoom-in-top`:""),_n=computed(()=>ae.format.includes("ss")),bn=computed(()=>ae.format.includes("A")?"A":ae.format.includes("a")?"a":""),Cn=Fn=>{const Vn=dayjs(Fn).locale(At.value),jn=Rn(Vn);return Vn.isSame(jn)},En=()=>{oe("pick",hn.value,!1)},$n=(Fn=!1,Vn=!1)=>{Vn||oe("pick",ae.parsedValue,Fn)},wn=Fn=>{if(!ae.visible)return;const Vn=Rn(Fn).millisecond(0);oe("pick",Vn,!0)},Tn=(Fn,Vn)=>{oe("select-range",Fn,Vn),Lt.value=[Fn,Vn]},xn=Fn=>{const Vn=[0,3].concat(_n.value?[6]:[]),jn=["hours","minutes"].concat(_n.value?["seconds"]:[]),Gn=(Vn.indexOf(Lt.value[0])+Fn+Vn.length)%Vn.length;An.start_emitSelectRange(jn[Gn])},kn=Fn=>{const Vn=Fn.code,{left:jn,right:Zn,up:Gn,down:Xn}=EVENT_CODE;if([jn,Zn].includes(Vn)){xn(Vn===jn?-1:1),Fn.preventDefault();return}if([Gn,Xn].includes(Vn)){const cr=Vn===Gn?-1:1;An.start_scrollDown(cr),Fn.preventDefault();return}},{timePickerOptions:An,onSetOption:On,getAvailableTime:Nn}=useTimePanel({getAvailableHours:xe,getAvailableMinutes:Ie,getAvailableSeconds:Ne}),Rn=Fn=>Nn(Fn,ae.datetimeRole||"",!0),zn=Fn=>Fn?dayjs(Fn,ae.format).locale(At.value):null,Bn=Fn=>Fn?Fn.format(ae.format):null,Mn=()=>dayjs($e).locale(At.value);return oe("set-picker-option",["isValidValue",Cn]),oe("set-picker-option",["formatToString",Bn]),oe("set-picker-option",["parseUserInput",zn]),oe("set-picker-option",["handleKeydownInput",kn]),oe("set-picker-option",["getRangeAvailableTime",Rn]),oe("set-picker-option",["getDefaultValue",Mn]),(Fn,Vn)=>(openBlock(),createBlock(Transition,{name:unref(vn)},{default:withCtx(()=>[Fn.actualVisible||Fn.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Fe).b("panel"))},[createBaseVNode("div",{class:normalizeClass([unref(Fe).be("panel","content"),{"has-seconds":unref(_n)}])},[createVNode(TimeSpinner,{ref:"spinner",role:Fn.datetimeRole||"start","arrow-control":unref(le),"show-seconds":unref(_n),"am-pm-mode":unref(bn),"spinner-date":Fn.parsedValue,"disabled-hours":unref(pe),"disabled-minutes":unref(_e),"disabled-seconds":unref(Ce),onChange:wn,onSetOption:unref(On),onSelectRange:Tn},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(Fe).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Fe).be("panel","btn"),"cancel"]),onClick:En},toDisplayString$1(unref(ze)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Fe).be("panel","btn"),"confirm"]),onClick:Vn[0]||(Vn[0]=jn=>$n())},toDisplayString$1(unref(ze)("el.datepicker.confirm")),3)],2)],2)):createCommentVNode("v-if",!0)]),_:1},8,["name"]))}});var TimePickPanel=_export_sfc$1(_sfc_main$1V,[["__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$Y=["disabled"],_sfc_main$1U=defineComponent({__name:"panel-time-range",props:panelTimeRangeProps,emits:["pick","select-range","set-picker-option"],setup($,{emit:oe}){const ae=$,ie=(Yn,ar)=>{const pr=[];for(let Un=Yn;Un<=ar;Un++)pr.push(Un);return pr},{t:le,lang:pe}=useLocale(),_e=useNamespace("time"),Ce=useNamespace("picker"),$e=inject("EP_PICKER_BASE"),{arrowControl:xe,disabledHours:Ie,disabledMinutes:Ne,disabledSeconds:Fe,defaultValue:ze}=$e.props,At=computed(()=>ae.parsedValue[0]),Lt=computed(()=>ae.parsedValue[1]),hn=useOldValue(ae),vn=()=>{oe("pick",hn.value,!1)},_n=computed(()=>ae.format.includes("ss")),bn=computed(()=>ae.format.includes("A")?"A":ae.format.includes("a")?"a":""),Cn=(Yn=!1)=>{oe("pick",[At.value,Lt.value],Yn)},En=Yn=>{Tn(Yn.millisecond(0),Lt.value)},$n=Yn=>{Tn(At.value,Yn.millisecond(0))},wn=Yn=>{const ar=Yn.map(Un=>dayjs(Un).locale(pe.value)),pr=Vn(ar);return ar[0].isSame(pr[0])&&ar[1].isSame(pr[1])},Tn=(Yn,ar)=>{oe("pick",[Yn,ar],!0)},xn=computed(()=>At.value>Lt.value),kn=ref([0,2]),An=(Yn,ar)=>{oe("select-range",Yn,ar,"min"),kn.value=[Yn,ar]},On=computed(()=>_n.value?11:8),Nn=(Yn,ar)=>{oe("select-range",Yn,ar,"max");const pr=unref(On);kn.value=[Yn+pr,ar+pr]},Rn=Yn=>{const ar=_n.value?[0,3,6,11,14,17]:[0,3,8,11],pr=["hours","minutes"].concat(_n.value?["seconds"]:[]),tr=(ar.indexOf(kn.value[0])+Yn+ar.length)%ar.length,ur=ar.length/2;tr{const ar=Yn.code,{left:pr,right:Un,up:tr,down:ur}=EVENT_CODE;if([pr,Un].includes(ar)){Rn(ar===pr?-1:1),Yn.preventDefault();return}if([tr,ur].includes(ar)){const _r=ar===tr?-1:1,Er=kn.value[0]{const pr=Ie?Ie(Yn):[],Un=Yn==="start",ur=(ar||(Un?Lt.value:At.value)).hour(),_r=Un?ie(ur+1,23):ie(0,ur-1);return union$1(pr,_r)},Mn=(Yn,ar,pr)=>{const Un=Ne?Ne(Yn,ar):[],tr=ar==="start",ur=pr||(tr?Lt.value:At.value),_r=ur.hour();if(Yn!==_r)return Un;const Er=ur.minute(),sr=tr?ie(Er+1,59):ie(0,Er-1);return union$1(Un,sr)},Fn=(Yn,ar,pr,Un)=>{const tr=Fe?Fe(Yn,ar,pr):[],ur=pr==="start",_r=Un||(ur?Lt.value:At.value),Er=_r.hour(),sr=_r.minute();if(Yn!==Er||ar!==sr)return tr;const Pr=_r.second(),Sr=ur?ie(Pr+1,59):ie(0,Pr-1);return union$1(tr,Sr)},Vn=([Yn,ar])=>[cr(Yn,"start",!0,ar),cr(ar,"end",!1,Yn)],{getAvailableHours:jn,getAvailableMinutes:Zn,getAvailableSeconds:Gn}=buildAvailableTimeSlotGetter(Bn,Mn,Fn),{timePickerOptions:Xn,getAvailableTime:cr,onSetOption:nr}=useTimePanel({getAvailableHours:jn,getAvailableMinutes:Zn,getAvailableSeconds:Gn}),er=Yn=>Yn?isArray$c(Yn)?Yn.map(ar=>dayjs(ar,ae.format).locale(pe.value)):dayjs(Yn,ae.format).locale(pe.value):null,rr=Yn=>Yn?isArray$c(Yn)?Yn.map(ar=>ar.format(ae.format)):Yn.format(ae.format):null,qn=()=>{if(isArray$c(ze))return ze.map(ar=>dayjs(ar).locale(pe.value));const Yn=dayjs(ze).locale(pe.value);return[Yn,Yn.add(60,"m")]};return oe("set-picker-option",["formatToString",rr]),oe("set-picker-option",["parseUserInput",er]),oe("set-picker-option",["isValidValue",wn]),oe("set-picker-option",["handleKeydownInput",zn]),oe("set-picker-option",["getDefaultValue",qn]),oe("set-picker-option",["getRangeAvailableTime",Vn]),(Yn,ar)=>Yn.actualVisible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(_e).b("range-picker"),unref(Ce).b("panel")])},[createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","content"))},[createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","header"))},toDisplayString$1(unref(le)("el.datepicker.startTime")),3),createBaseVNode("div",{class:normalizeClass([unref(_e).be("range-picker","body"),unref(_e).be("panel","content"),unref(_e).is("arrow",unref(xe)),{"has-seconds":unref(_n)}])},[createVNode(TimeSpinner,{ref:"minSpinner",role:"start","show-seconds":unref(_n),"am-pm-mode":unref(bn),"arrow-control":unref(xe),"spinner-date":unref(At),"disabled-hours":Bn,"disabled-minutes":Mn,"disabled-seconds":Fn,onChange:En,onSetOption:unref(nr),onSelectRange:An},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","header"))},toDisplayString$1(unref(le)("el.datepicker.endTime")),3),createBaseVNode("div",{class:normalizeClass([unref(_e).be("range-picker","body"),unref(_e).be("panel","content"),unref(_e).is("arrow",unref(xe)),{"has-seconds":unref(_n)}])},[createVNode(TimeSpinner,{ref:"maxSpinner",role:"end","show-seconds":unref(_n),"am-pm-mode":unref(bn),"arrow-control":unref(xe),"spinner-date":unref(Lt),"disabled-hours":Bn,"disabled-minutes":Mn,"disabled-seconds":Fn,onChange:$n,onSetOption:unref(nr),onSelectRange:Nn},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),createBaseVNode("div",{class:normalizeClass(unref(_e).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(_e).be("panel","btn"),"cancel"]),onClick:ar[0]||(ar[0]=pr=>vn())},toDisplayString$1(unref(le)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(_e).be("panel","btn"),"confirm"]),disabled:unref(xn),onClick:ar[1]||(ar[1]=pr=>Cn())},toDisplayString$1(unref(le)("el.datepicker.confirm")),11,_hoisted_1$Y)],2)],2)):createCommentVNode("v-if",!0)}});var TimeRangePanel=_export_sfc$1(_sfc_main$1U,[["__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:{type:Boolean,default:!1}},emits:["update:modelValue"],setup($,oe){const ae=ref(),[ie,le]=$.isRange?["timerange",TimeRangePanel]:["time",TimePickPanel],pe=_e=>oe.emit("update:modelValue",_e);return provide("ElPopperOptions",$.popperOptions),oe.expose({focus:_e=>{var Ce;(Ce=ae.value)==null||Ce.handleFocusInput(_e)},blur:_e=>{var Ce;(Ce=ae.value)==null||Ce.handleBlurInput(_e)},handleOpen:()=>{var _e;(_e=ae.value)==null||_e.handleOpen()},handleClose:()=>{var _e;(_e=ae.value)==null||_e.handleClose()}}),()=>{var _e;const Ce=(_e=$.format)!=null?_e:DEFAULT_FORMATS_TIME;return createVNode(CommonPicker,mergeProps($,{ref:ae,type:ie,format:Ce,"onUpdate:modelValue":pe}),{default:$e=>createVNode(le,$e,null)})}}});const _TimePicker=TimePicker;_TimePicker.install=$=>{$.component(_TimePicker.name,_TimePicker)};const ElTimePicker=_TimePicker,getPrevMonthLastDays=($,oe)=>{const ae=$.subtract(1,"month").endOf("month").date();return rangeArr(oe).map((ie,le)=>ae-(oe-le-1))},getMonthDays=$=>{const oe=$.daysInMonth();return rangeArr(oe).map((ae,ie)=>ie+1)},toNestedArr=$=>rangeArr($.length/7).map(oe=>{const ae=oe*7;return $.slice(ae,ae+7)}),dateTableProps=buildProps({selectedDay:{type:definePropType(Object)},range:{type:definePropType(Array)},date:{type:definePropType(Object),required:!0},hideHeader:{type:Boolean}}),dateTableEmits={pick:$=>isObject$8($)};var localeData$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){return function(ae,ie,le){var pe=ie.prototype,_e=function(Ne){return Ne&&(Ne.indexOf?Ne:Ne.s)},Ce=function(Ne,Fe,ze,At,Lt){var hn=Ne.name?Ne:Ne.$locale(),vn=_e(hn[Fe]),_n=_e(hn[ze]),bn=vn||_n.map(function(En){return En.slice(0,At)});if(!Lt)return bn;var Cn=hn.weekStart;return bn.map(function(En,$n){return bn[($n+(Cn||0))%7]})},$e=function(){return le.Ls[le.locale()]},xe=function(Ne,Fe){return Ne.formats[Fe]||function(ze){return ze.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(At,Lt,hn){return Lt||hn.slice(1)})}(Ne.formats[Fe.toUpperCase()])},Ie=function(){var Ne=this;return{months:function(Fe){return Fe?Fe.format("MMMM"):Ce(Ne,"months")},monthsShort:function(Fe){return Fe?Fe.format("MMM"):Ce(Ne,"monthsShort","months",3)},firstDayOfWeek:function(){return Ne.$locale().weekStart||0},weekdays:function(Fe){return Fe?Fe.format("dddd"):Ce(Ne,"weekdays")},weekdaysMin:function(Fe){return Fe?Fe.format("dd"):Ce(Ne,"weekdaysMin","weekdays",2)},weekdaysShort:function(Fe){return Fe?Fe.format("ddd"):Ce(Ne,"weekdaysShort","weekdays",3)},longDateFormat:function(Fe){return xe(Ne.$locale(),Fe)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};pe.localeData=function(){return Ie.bind(this)()},le.localeData=function(){var Ne=$e();return{firstDayOfWeek:function(){return Ne.weekStart||0},weekdays:function(){return le.weekdays()},weekdaysShort:function(){return le.weekdaysShort()},weekdaysMin:function(){return le.weekdaysMin()},months:function(){return le.months()},monthsShort:function(){return le.monthsShort()},longDateFormat:function(Fe){return xe(Ne,Fe)},meridiem:Ne.meridiem,ordinal:Ne.ordinal}},le.months=function(){return Ce($e(),"months")},le.monthsShort=function(){return Ce($e(),"monthsShort","months",3)},le.weekdays=function(Ne){return Ce($e(),"weekdays",null,null,Ne)},le.weekdaysShort=function(Ne){return Ce($e(),"weekdaysShort","weekdays",3,Ne)},le.weekdaysMin=function(Ne){return Ce($e(),"weekdaysMin","weekdays",2,Ne)}}})})(localeData$1);var localeDataExports=localeData$1.exports;const localeData=getDefaultExportFromCjs(localeDataExports),useDateTable=($,oe)=>{dayjs.extend(localeData);const ae=dayjs.localeData().firstDayOfWeek(),{t:ie,lang:le}=useLocale(),pe=dayjs().locale(le.value),_e=computed(()=>!!$.range&&!!$.range.length),Ce=computed(()=>{let Fe=[];if(_e.value){const[ze,At]=$.range,Lt=rangeArr(At.date()-ze.date()+1).map(_n=>({text:ze.date()+_n,type:"current"}));let hn=Lt.length%7;hn=hn===0?0:7-hn;const vn=rangeArr(hn).map((_n,bn)=>({text:bn+1,type:"next"}));Fe=Lt.concat(vn)}else{const ze=$.date.startOf("month").day(),At=getPrevMonthLastDays($.date,(ze-ae+7)%7).map(_n=>({text:_n,type:"prev"})),Lt=getMonthDays($.date).map(_n=>({text:_n,type:"current"}));Fe=[...At,...Lt];const hn=7-(Fe.length%7||7),vn=rangeArr(hn).map((_n,bn)=>({text:bn+1,type:"next"}));Fe=Fe.concat(vn)}return toNestedArr(Fe)}),$e=computed(()=>{const Fe=ae;return Fe===0?WEEK_DAYS.map(ze=>ie(`el.datepicker.weeks.${ze}`)):WEEK_DAYS.slice(Fe).concat(WEEK_DAYS.slice(0,Fe)).map(ze=>ie(`el.datepicker.weeks.${ze}`))}),xe=(Fe,ze)=>{switch(ze){case"prev":return $.date.startOf("month").subtract(1,"month").date(Fe);case"next":return $.date.startOf("month").add(1,"month").date(Fe);case"current":return $.date.date(Fe)}};return{now:pe,isInRange:_e,rows:Ce,weekDays:$e,getFormattedDate:xe,handlePickDay:({text:Fe,type:ze})=>{const At=xe(Fe,ze);oe("pick",At)},getSlotData:({text:Fe,type:ze})=>{const At=xe(Fe,ze);return{isSelected:At.isSame($.selectedDay),type:`${ze}-month`,day:At.format("YYYY-MM-DD"),date:At.toDate()}}}},_hoisted_1$X={key:0},_hoisted_2$C=["onClick"],__default__$1f=defineComponent({name:"DateTable"}),_sfc_main$1T=defineComponent({...__default__$1f,props:dateTableProps,emits:dateTableEmits,setup($,{expose:oe,emit:ae}){const ie=$,{isInRange:le,now:pe,rows:_e,weekDays:Ce,getFormattedDate:$e,handlePickDay:xe,getSlotData:Ie}=useDateTable(ie,ae),Ne=useNamespace("calendar-table"),Fe=useNamespace("calendar-day"),ze=({text:At,type:Lt})=>{const hn=[Lt];if(Lt==="current"){const vn=$e(At,Lt);vn.isSame(ie.selectedDay,"day")&&hn.push(Fe.is("selected")),vn.isSame(pe,"day")&&hn.push(Fe.is("today"))}return hn};return oe({getFormattedDate:$e}),(At,Lt)=>(openBlock(),createElementBlock("table",{class:normalizeClass([unref(Ne).b(),unref(Ne).is("range",unref(le))]),cellspacing:"0",cellpadding:"0"},[At.hideHeader?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("thead",_hoisted_1$X,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ce),hn=>(openBlock(),createElementBlock("th",{key:hn},toDisplayString$1(hn),1))),128))])),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(_e),(hn,vn)=>(openBlock(),createElementBlock("tr",{key:vn,class:normalizeClass({[unref(Ne).e("row")]:!0,[unref(Ne).em("row","hide-border")]:vn===0&&At.hideHeader})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(hn,(_n,bn)=>(openBlock(),createElementBlock("td",{key:bn,class:normalizeClass(ze(_n)),onClick:Cn=>unref(xe)(_n)},[createBaseVNode("div",{class:normalizeClass(unref(Fe).b())},[renderSlot(At.$slots,"date-cell",{data:unref(Ie)(_n)},()=>[createBaseVNode("span",null,toDisplayString$1(_n.text),1)])],2)],10,_hoisted_2$C))),128))],2))),128))])],2))}});var DateTable$1=_export_sfc$1(_sfc_main$1T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const adjacentMonth=($,oe)=>{const ae=$.endOf("month"),ie=oe.startOf("month"),pe=ae.isSame(ie,"week")?ie.add(1,"week"):ie;return[[$,ae],[pe.startOf("week"),oe]]},threeConsecutiveMonth=($,oe)=>{const ae=$.endOf("month"),ie=$.add(1,"month").startOf("month"),le=ae.isSame(ie,"week")?ie.add(1,"week"):ie,pe=le.endOf("month"),_e=oe.startOf("month"),Ce=pe.isSame(_e,"week")?_e.add(1,"week"):_e;return[[$,ae],[le.startOf("week"),pe],[Ce.startOf("week"),oe]]},useCalendar=($,oe,ae)=>{const ie=useSlots(),{lang:le}=useLocale(),pe=ref(),_e=dayjs().locale(le.value),Ce=computed({get(){return $.modelValue?xe.value:pe.value},set(vn){if(!vn)return;pe.value=vn;const _n=vn.toDate();oe(INPUT_EVENT,_n),oe(UPDATE_MODEL_EVENT,_n)}}),$e=computed(()=>{if(!$.range)return[];const vn=$.range.map(Cn=>dayjs(Cn).locale(le.value)),[_n,bn]=vn;return _n.isAfter(bn)?[]:_n.isSame(bn,"month")?At(_n,bn):_n.add(1,"month").month()!==bn.month()?[]:At(_n,bn)}),xe=computed(()=>$.modelValue?dayjs($.modelValue).locale(le.value):Ce.value||($e.value.length?$e.value[0][0]:_e)),Ie=computed(()=>xe.value.subtract(1,"month").date(1)),Ne=computed(()=>xe.value.add(1,"month").date(1)),Fe=computed(()=>xe.value.subtract(1,"year").date(1)),ze=computed(()=>xe.value.add(1,"year").date(1)),At=(vn,_n)=>{const bn=vn.startOf("week"),Cn=_n.endOf("week"),En=bn.get("month"),$n=Cn.get("month");return En===$n?[[bn,Cn]]:(En+1)%12===$n?adjacentMonth(bn,Cn):En+2===$n||(En+1)%11===$n?threeConsecutiveMonth(bn,Cn):[]},Lt=vn=>{Ce.value=vn},hn=vn=>{const bn={"prev-month":Ie.value,"next-month":Ne.value,"prev-year":Fe.value,"next-year":ze.value,today:_e}[vn];bn.isSame(xe.value,"day")||Lt(bn)};return useDeprecated({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},computed(()=>!!ie.dateCell)),{calculateValidatedDateRange:At,date:xe,realSelectedDay:Ce,pickDay:Lt,selectDate:hn,validatedRange:$e}},isValidRange$1=$=>isArray$c($)&&$.length===2&&$.every(oe=>isDate$3(oe)),calendarProps=buildProps({modelValue:{type:Date},range:{type:definePropType(Array),validator:isValidRange$1}}),calendarEmits={[UPDATE_MODEL_EVENT]:$=>isDate$3($),[INPUT_EVENT]:$=>isDate$3($)},COMPONENT_NAME$g="ElCalendar",__default__$1e=defineComponent({name:COMPONENT_NAME$g}),_sfc_main$1S=defineComponent({...__default__$1e,props:calendarProps,emits:calendarEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useNamespace("calendar"),{calculateValidatedDateRange:pe,date:_e,pickDay:Ce,realSelectedDay:$e,selectDate:xe,validatedRange:Ie}=useCalendar(ie,ae),{t:Ne}=useLocale(),Fe=computed(()=>{const ze=`el.datepicker.month${_e.value.format("M")}`;return`${_e.value.year()} ${Ne("el.datepicker.year")} ${Ne(ze)}`});return oe({selectedDay:$e,pickDay:Ce,selectDate:xe,calculateValidatedDateRange:pe}),(ze,At)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le).b())},[createBaseVNode("div",{class:normalizeClass(unref(le).e("header"))},[renderSlot(ze.$slots,"header",{date:unref(Fe)},()=>[createBaseVNode("div",{class:normalizeClass(unref(le).e("title"))},toDisplayString$1(unref(Fe)),3),unref(Ie).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("button-group"))},[createVNode(unref(ElButtonGroup$1),null,{default:withCtx(()=>[createVNode(unref(ElButton),{size:"small",onClick:At[0]||(At[0]=Lt=>unref(xe)("prev-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ne)("el.datepicker.prevMonth")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:At[1]||(At[1]=Lt=>unref(xe)("today"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ne)("el.datepicker.today")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:At[2]||(At[2]=Lt=>unref(xe)("next-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ne)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):createCommentVNode("v-if",!0)])],2),unref(Ie).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("body"))},[createVNode(DateTable$1,{date:unref(_e),"selected-day":unref($e),onPick:unref(Ce)},createSlots({_:2},[ze.$slots["date-cell"]||ze.$slots.dateCell?{name:"date-cell",fn:withCtx(Lt=>[ze.$slots["date-cell"]?renderSlot(ze.$slots,"date-cell",normalizeProps(mergeProps({key:0},Lt))):renderSlot(ze.$slots,"dateCell",normalizeProps(mergeProps({key:1},Lt)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(le).e("body"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),(Lt,hn)=>(openBlock(),createBlock(DateTable$1,{key:hn,date:Lt[0],"selected-day":unref($e),range:Lt,"hide-header":hn!==0,onPick:unref(Ce)},createSlots({_:2},[ze.$slots["date-cell"]||ze.$slots.dateCell?{name:"date-cell",fn:withCtx(vn=>[ze.$slots["date-cell"]?renderSlot(ze.$slots,"date-cell",normalizeProps(mergeProps({key:0},vn))):renderSlot(ze.$slots,"dateCell",normalizeProps(mergeProps({key:1},vn)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var Calendar=_export_sfc$1(_sfc_main$1S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const ElCalendar=withInstall(Calendar),cardProps=buildProps({header:{type:String,default:""},bodyStyle:{type:definePropType([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),__default__$1d=defineComponent({name:"ElCard"}),_sfc_main$1R=defineComponent({...__default__$1d,props:cardProps,setup($){const oe=useNamespace("card");return(ae,ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).b(),unref(oe).is(`${ae.shadow}-shadow`)])},[ae.$slots.header||ae.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("header"))},[renderSlot(ae.$slots,"header",{},()=>[createTextVNode(toDisplayString$1(ae.header),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("body")),style:normalizeStyle$1(ae.bodyStyle)},[renderSlot(ae.$slots,"default")],6)],2))}});var Card=_export_sfc$1(_sfc_main$1R,[["__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:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),carouselEmits={change:($,oe)=>[$,oe].every(isNumber$5)},carouselContextKey=Symbol("carouselContextKey"),THROTTLE_TIME=300,useCarousel=($,oe,ae)=>{const{children:ie,addChild:le,removeChild:pe}=useOrderedChildren(getCurrentInstance(),"ElCarouselItem"),_e=ref(-1),Ce=ref(null),$e=ref(!1),xe=ref(),Ie=computed(()=>$.arrow!=="never"&&!unref(ze)),Ne=computed(()=>ie.value.some(Bn=>Bn.props.label.toString().length>0)),Fe=computed(()=>$.type==="card"),ze=computed(()=>$.direction==="vertical"),At=throttle$1(Bn=>{bn(Bn)},THROTTLE_TIME,{trailing:!0}),Lt=throttle$1(Bn=>{An(Bn)},THROTTLE_TIME);function hn(){Ce.value&&(clearInterval(Ce.value),Ce.value=null)}function vn(){$.interval<=0||!$.autoplay||Ce.value||(Ce.value=setInterval(()=>_n(),$.interval))}const _n=()=>{_e.valuejn.props.name===Bn);Vn.length>0&&(Bn=ie.value.indexOf(Vn[0]))}if(Bn=Number(Bn),Number.isNaN(Bn)||Bn!==Math.floor(Bn))return;const Mn=ie.value.length,Fn=_e.value;Bn<0?_e.value=$.loop?Mn-1:0:Bn>=Mn?_e.value=$.loop?0:Mn-1:_e.value=Bn,Fn===_e.value&&Cn(Fn),Rn()}function Cn(Bn){ie.value.forEach((Mn,Fn)=>{Mn.translateItem(Fn,_e.value,Bn)})}function En(Bn,Mn){var Fn,Vn,jn,Zn;const Gn=unref(ie),Xn=Gn.length;if(Xn===0||!Bn.states.inStage)return!1;const cr=Mn+1,nr=Mn-1,er=Xn-1,rr=Gn[er].states.active,qn=Gn[0].states.active,Yn=(Vn=(Fn=Gn[cr])==null?void 0:Fn.states)==null?void 0:Vn.active,ar=(Zn=(jn=Gn[nr])==null?void 0:jn.states)==null?void 0:Zn.active;return Mn===er&&qn||Yn?"left":Mn===0&&rr||ar?"right":!1}function $n(){$e.value=!0,$.pauseOnHover&&hn()}function wn(){$e.value=!1,vn()}function Tn(Bn){unref(ze)||ie.value.forEach((Mn,Fn)=>{Bn===En(Mn,Fn)&&(Mn.states.hover=!0)})}function xn(){unref(ze)||ie.value.forEach(Bn=>{Bn.states.hover=!1})}function kn(Bn){_e.value=Bn}function An(Bn){$.trigger==="hover"&&Bn!==_e.value&&(_e.value=Bn)}function On(){bn(_e.value-1)}function Nn(){bn(_e.value+1)}function Rn(){hn(),vn()}watch(()=>_e.value,(Bn,Mn)=>{Cn(Mn),Mn>-1&&oe("change",Bn,Mn)}),watch(()=>$.autoplay,Bn=>{Bn?vn():hn()}),watch(()=>$.loop,()=>{bn(_e.value)}),watch(()=>$.interval,()=>{Rn()}),watch(()=>ie.value,()=>{ie.value.length>0&&bn($.initialIndex)});const zn=shallowRef();return onMounted(()=>{zn.value=useResizeObserver(xe.value,()=>{Cn()}),vn()}),onBeforeUnmount(()=>{hn(),xe.value&&zn.value&&zn.value.stop()}),provide(carouselContextKey,{root:xe,isCardType:Fe,isVertical:ze,items:ie,loop:$.loop,addItem:le,removeItem:pe,setActiveItem:bn}),{root:xe,activeIndex:_e,arrowDisplay:Ie,hasLabel:Ne,hover:$e,isCardType:Fe,items:ie,handleButtonEnter:Tn,handleButtonLeave:xn,handleIndicatorClick:kn,handleMouseEnter:$n,handleMouseLeave:wn,setActiveItem:bn,prev:On,next:Nn,throttledArrowClick:At,throttledIndicatorHover:Lt}},_hoisted_1$W=["onMouseenter","onClick"],_hoisted_2$B={key:0},COMPONENT_NAME$f="ElCarousel",__default__$1c=defineComponent({name:COMPONENT_NAME$f}),_sfc_main$1Q=defineComponent({...__default__$1c,props:carouselProps,emits:carouselEmits,setup($,{expose:oe,emit:ae}){const ie=$,{root:le,activeIndex:pe,arrowDisplay:_e,hasLabel:Ce,hover:$e,isCardType:xe,items:Ie,handleButtonEnter:Ne,handleButtonLeave:Fe,handleIndicatorClick:ze,handleMouseEnter:At,handleMouseLeave:Lt,setActiveItem:hn,prev:vn,next:_n,throttledArrowClick:bn,throttledIndicatorHover:Cn}=useCarousel(ie,ae),En=useNamespace("carousel"),$n=computed(()=>{const Tn=[En.b(),En.m(ie.direction)];return unref(xe)&&Tn.push(En.m("card")),Tn}),wn=computed(()=>{const Tn=[En.e("indicators"),En.em("indicators",ie.direction)];return unref(Ce)&&Tn.push(En.em("indicators","labels")),(ie.indicatorPosition==="outside"||unref(xe))&&Tn.push(En.em("indicators","outside")),Tn});return oe({setActiveItem:hn,prev:vn,next:_n}),(Tn,xn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:le,class:normalizeClass(unref($n)),onMouseenter:xn[6]||(xn[6]=withModifiers((...kn)=>unref(At)&&unref(At)(...kn),["stop"])),onMouseleave:xn[7]||(xn[7]=withModifiers((...kn)=>unref(Lt)&&unref(Lt)(...kn),["stop"]))},[createBaseVNode("div",{class:normalizeClass(unref(En).e("container")),style:normalizeStyle$1({height:Tn.height})},[unref(_e)?(openBlock(),createBlock(Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(En).e("arrow"),unref(En).em("arrow","left")]),onMouseenter:xn[0]||(xn[0]=kn=>unref(Ne)("left")),onMouseleave:xn[1]||(xn[1]=(...kn)=>unref(Fe)&&unref(Fe)(...kn)),onClick:xn[2]||(xn[2]=withModifiers(kn=>unref(bn)(unref(pe)-1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],34),[[vShow,(Tn.arrow==="always"||unref($e))&&(ie.loop||unref(pe)>0)]])]),_:1})):createCommentVNode("v-if",!0),unref(_e)?(openBlock(),createBlock(Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(En).e("arrow"),unref(En).em("arrow","right")]),onMouseenter:xn[3]||(xn[3]=kn=>unref(Ne)("right")),onMouseleave:xn[4]||(xn[4]=(...kn)=>unref(Fe)&&unref(Fe)(...kn)),onClick:xn[5]||(xn[5]=withModifiers(kn=>unref(bn)(unref(pe)+1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],34),[[vShow,(Tn.arrow==="always"||unref($e))&&(ie.loop||unref(pe)(openBlock(),createElementBlock("li",{key:An,class:normalizeClass([unref(En).e("indicator"),unref(En).em("indicator",Tn.direction),unref(En).is("active",An===unref(pe))]),onMouseenter:On=>unref(Cn)(An),onClick:withModifiers(On=>unref(ze)(An),["stop"])},[createBaseVNode("button",{class:normalizeClass(unref(En).e("button"))},[unref(Ce)?(openBlock(),createElementBlock("span",_hoisted_2$B,toDisplayString$1(kn.props.label),1)):createCommentVNode("v-if",!0)],2)],42,_hoisted_1$W))),128))],2)):createCommentVNode("v-if",!0)],34))}});var Carousel=_export_sfc$1(_sfc_main$1Q,[["__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=($,oe)=>{const ae=inject(carouselContextKey),ie=getCurrentInstance(),le=.83,pe=ref(!1),_e=ref(0),Ce=ref(1),$e=ref(!1),xe=ref(!1),Ie=ref(!1),Ne=ref(!1),{isCardType:Fe,isVertical:ze}=ae;function At(bn,Cn,En){const $n=En-1,wn=Cn-1,Tn=Cn+1,xn=En/2;return Cn===0&&bn===$n?-1:Cn===$n&&bn===0?En:bn=xn?En+1:bn>Tn&&bn-Cn>=xn?-2:bn}function Lt(bn,Cn){var En;const $n=((En=ae.root.value)==null?void 0:En.offsetWidth)||0;return Ie.value?$n*((2-le)*(bn-Cn)+1)/4:bn{var $n;const wn=unref(Fe),Tn=($n=ae.items.value.length)!=null?$n:Number.NaN,xn=bn===Cn;!wn&&!isUndefined$1(En)&&(Ne.value=xn||bn===En),!xn&&Tn>2&&ae.loop&&(bn=At(bn,Cn,Tn));const kn=unref(ze);$e.value=xn,wn?(Ie.value=Math.round(Math.abs(bn-Cn))<=1,_e.value=Lt(bn,Cn),Ce.value=unref($e)?1:le):_e.value=hn(bn,Cn,kn),xe.value=!0};function _n(){if(ae&&unref(Fe)){const bn=ae.items.value.findIndex(({uid:Cn})=>Cn===ie.uid);ae.setActiveItem(bn)}}return onMounted(()=>{ae.addItem({props:$,states:reactive({hover:pe,translate:_e,scale:Ce,active:$e,ready:xe,inStage:Ie,animating:Ne}),uid:ie.uid,translateItem:vn})}),onUnmounted(()=>{ae.removeItem(ie.uid)}),{active:$e,animating:Ne,hover:pe,inStage:Ie,isVertical:ze,translate:_e,isCardType:Fe,scale:Ce,ready:xe,handleItemClick:_n}},__default__$1b=defineComponent({name:"ElCarouselItem"}),_sfc_main$1P=defineComponent({...__default__$1b,props:carouselItemProps,setup($){const oe=$,ae=useNamespace("carousel"),{active:ie,animating:le,hover:pe,inStage:_e,isVertical:Ce,translate:$e,isCardType:xe,scale:Ie,ready:Ne,handleItemClick:Fe}=useCarouselItem(oe),ze=computed(()=>{const Lt=`${`translate${unref(Ce)?"Y":"X"}`}(${unref($e)}px)`,hn=`scale(${unref(Ie)})`;return{transform:[Lt,hn].join(" ")}});return(At,Lt)=>withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).e("item"),unref(ae).is("active",unref(ie)),unref(ae).is("in-stage",unref(_e)),unref(ae).is("hover",unref(pe)),unref(ae).is("animating",unref(le)),{[unref(ae).em("item","card")]:unref(xe)}]),style:normalizeStyle$1(unref(ze)),onClick:Lt[0]||(Lt[0]=(...hn)=>unref(Fe)&&unref(Fe)(...hn))},[unref(xe)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("mask"))},null,2)),[[vShow,!unref(ie)]]):createCommentVNode("v-if",!0),renderSlot(At.$slots,"default")],6)),[[vShow,unref(Ne)]])}});var CarouselItem=_export_sfc$1(_sfc_main$1P,[["__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]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:useSizeProp,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},checkboxEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($)||isNumber$5($)||isBoolean$3($),change:$=>isString$7($)||isNumber$5($)||isBoolean$3($)},checkboxGroupContextKey=Symbol("checkboxGroupContextKey"),useCheckboxDisabled=({model:$,isChecked:oe})=>{const ae=inject(checkboxGroupContextKey,void 0),ie=computed(()=>{var pe,_e;const Ce=(pe=ae==null?void 0:ae.max)==null?void 0:pe.value,$e=(_e=ae==null?void 0:ae.min)==null?void 0:_e.value;return!isUndefined$1(Ce)&&$.value.length>=Ce&&!oe.value||!isUndefined$1($e)&&$.value.length<=$e&&oe.value});return{isDisabled:useFormDisabled(computed(()=>(ae==null?void 0:ae.disabled.value)||ie.value)),isLimitDisabled:ie}},useCheckboxEvent=($,{model:oe,isLimitExceeded:ae,hasOwnLabel:ie,isDisabled:le,isLabeledByFormItem:pe})=>{const _e=inject(checkboxGroupContextKey,void 0),{formItem:Ce}=useFormItem(),{emit:$e}=getCurrentInstance();function xe(At){var Lt,hn;return At===$.trueLabel||At===!0?(Lt=$.trueLabel)!=null?Lt:!0:(hn=$.falseLabel)!=null?hn:!1}function Ie(At,Lt){$e("change",xe(At),Lt)}function Ne(At){if(ae.value)return;const Lt=At.target;$e("change",xe(Lt.checked),At)}async function Fe(At){ae.value||!ie.value&&!le.value&&pe.value&&(At.composedPath().some(vn=>vn.tagName==="LABEL")||(oe.value=xe([!1,$.falseLabel].includes(oe.value)),await nextTick(),Ie(oe.value,At)))}const ze=computed(()=>(_e==null?void 0:_e.validateEvent)||$.validateEvent);return watch(()=>$.modelValue,()=>{ze.value&&(Ce==null||Ce.validate("change").catch(At=>void 0))}),{handleChange:Ne,onClickRoot:Fe}},useCheckboxModel=$=>{const oe=ref(!1),{emit:ae}=getCurrentInstance(),ie=inject(checkboxGroupContextKey,void 0),le=computed(()=>isUndefined$1(ie)===!1),pe=ref(!1);return{model:computed({get(){var Ce,$e;return le.value?(Ce=ie==null?void 0:ie.modelValue)==null?void 0:Ce.value:($e=$.modelValue)!=null?$e:oe.value},set(Ce){var $e,xe;le.value&&isArray$c(Ce)?(pe.value=(($e=ie==null?void 0:ie.max)==null?void 0:$e.value)!==void 0&&Ce.length>(ie==null?void 0:ie.max.value),pe.value===!1&&((xe=ie==null?void 0:ie.changeEvent)==null||xe.call(ie,Ce))):(ae(UPDATE_MODEL_EVENT,Ce),oe.value=Ce)}}),isGroup:le,isLimitExceeded:pe}},useCheckboxStatus=($,oe,{model:ae})=>{const ie=inject(checkboxGroupContextKey,void 0),le=ref(!1),pe=computed(()=>{const xe=ae.value;return isBoolean$3(xe)?xe:isArray$c(xe)?isObject$8($.label)?xe.map(toRaw).some(Ie=>isEqual$1(Ie,$.label)):xe.map(toRaw).includes($.label):xe!=null?xe===$.trueLabel:!!xe}),_e=useFormSize(computed(()=>{var xe;return(xe=ie==null?void 0:ie.size)==null?void 0:xe.value}),{prop:!0}),Ce=useFormSize(computed(()=>{var xe;return(xe=ie==null?void 0:ie.size)==null?void 0:xe.value})),$e=computed(()=>!!(oe.default||$.label));return{checkboxButtonSize:_e,isChecked:pe,isFocused:le,checkboxSize:Ce,hasOwnLabel:$e}},setStoreValue=($,{model:oe})=>{function ae(){isArray$c(oe.value)&&!oe.value.includes($.label)?oe.value.push($.label):oe.value=$.trueLabel||!0}$.checked&&ae()},useCheckbox=($,oe)=>{const{formItem:ae}=useFormItem(),{model:ie,isGroup:le,isLimitExceeded:pe}=useCheckboxModel($),{isFocused:_e,isChecked:Ce,checkboxButtonSize:$e,checkboxSize:xe,hasOwnLabel:Ie}=useCheckboxStatus($,oe,{model:ie}),{isDisabled:Ne}=useCheckboxDisabled({model:ie,isChecked:Ce}),{inputId:Fe,isLabeledByFormItem:ze}=useFormItemInputId($,{formItemContext:ae,disableIdGeneration:Ie,disableIdManagement:le}),{handleChange:At,onClickRoot:Lt}=useCheckboxEvent($,{model:ie,isLimitExceeded:pe,hasOwnLabel:Ie,isDisabled:Ne,isLabeledByFormItem:ze});return setStoreValue($,{model:ie}),{inputId:Fe,isLabeledByFormItem:ze,isChecked:Ce,isDisabled:Ne,isFocused:_e,checkboxButtonSize:$e,checkboxSize:xe,hasOwnLabel:Ie,model:ie,handleChange:At,onClickRoot:Lt}},_hoisted_1$V=["tabindex","role","aria-checked"],_hoisted_2$A=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],_hoisted_3$k=["id","aria-hidden","disabled","value","name","tabindex"],__default__$1a=defineComponent({name:"ElCheckbox"}),_sfc_main$1O=defineComponent({...__default__$1a,props:checkboxProps,emits:checkboxEmits,setup($){const oe=$,ae=useSlots(),{inputId:ie,isLabeledByFormItem:le,isChecked:pe,isDisabled:_e,isFocused:Ce,checkboxSize:$e,hasOwnLabel:xe,model:Ie,handleChange:Ne,onClickRoot:Fe}=useCheckbox(oe,ae),ze=useNamespace("checkbox"),At=computed(()=>[ze.b(),ze.m($e.value),ze.is("disabled",_e.value),ze.is("bordered",oe.border),ze.is("checked",pe.value)]),Lt=computed(()=>[ze.e("input"),ze.is("disabled",_e.value),ze.is("checked",pe.value),ze.is("indeterminate",oe.indeterminate),ze.is("focus",Ce.value)]);return(hn,vn)=>(openBlock(),createBlock(resolveDynamicComponent(!unref(xe)&&unref(le)?"span":"label"),{class:normalizeClass(unref(At)),"aria-controls":hn.indeterminate?hn.controls:null,onClick:unref(Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(Lt)),tabindex:hn.indeterminate?0:void 0,role:hn.indeterminate?"checkbox":void 0,"aria-checked":hn.indeterminate?"mixed":void 0},[hn.trueLabel||hn.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,id:unref(ie),"onUpdate:modelValue":vn[0]||(vn[0]=_n=>isRef(Ie)?Ie.value=_n:null),class:normalizeClass(unref(ze).e("original")),type:"checkbox","aria-hidden":hn.indeterminate?"true":"false",name:hn.name,tabindex:hn.tabindex,disabled:unref(_e),"true-value":hn.trueLabel,"false-value":hn.falseLabel,onChange:vn[1]||(vn[1]=(..._n)=>unref(Ne)&&unref(Ne)(..._n)),onFocus:vn[2]||(vn[2]=_n=>Ce.value=!0),onBlur:vn[3]||(vn[3]=_n=>Ce.value=!1)},null,42,_hoisted_2$A)),[[vModelCheckbox,unref(Ie)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,id:unref(ie),"onUpdate:modelValue":vn[4]||(vn[4]=_n=>isRef(Ie)?Ie.value=_n:null),class:normalizeClass(unref(ze).e("original")),type:"checkbox","aria-hidden":hn.indeterminate?"true":"false",disabled:unref(_e),value:hn.label,name:hn.name,tabindex:hn.tabindex,onChange:vn[5]||(vn[5]=(..._n)=>unref(Ne)&&unref(Ne)(..._n)),onFocus:vn[6]||(vn[6]=_n=>Ce.value=!0),onBlur:vn[7]||(vn[7]=_n=>Ce.value=!1)},null,42,_hoisted_3$k)),[[vModelCheckbox,unref(Ie)]]),createBaseVNode("span",{class:normalizeClass(unref(ze).e("inner"))},null,2)],10,_hoisted_1$V),unref(xe)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ze).e("label"))},[renderSlot(hn.$slots,"default"),hn.$slots.default?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(hn.label),1)],64))],2)):createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Checkbox=_export_sfc$1(_sfc_main$1O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const _hoisted_1$U=["name","tabindex","disabled","true-value","false-value"],_hoisted_2$z=["name","tabindex","disabled","value"],__default__$19=defineComponent({name:"ElCheckboxButton"}),_sfc_main$1N=defineComponent({...__default__$19,props:checkboxProps,emits:checkboxEmits,setup($){const oe=$,ae=useSlots(),{isFocused:ie,isChecked:le,isDisabled:pe,checkboxButtonSize:_e,model:Ce,handleChange:$e}=useCheckbox(oe,ae),xe=inject(checkboxGroupContextKey,void 0),Ie=useNamespace("checkbox"),Ne=computed(()=>{var ze,At,Lt,hn;const vn=(At=(ze=xe==null?void 0:xe.fill)==null?void 0:ze.value)!=null?At:"";return{backgroundColor:vn,borderColor:vn,color:(hn=(Lt=xe==null?void 0:xe.textColor)==null?void 0:Lt.value)!=null?hn:"",boxShadow:vn?`-1px 0 0 0 ${vn}`:void 0}}),Fe=computed(()=>[Ie.b("button"),Ie.bm("button",_e.value),Ie.is("disabled",pe.value),Ie.is("checked",le.value),Ie.is("focus",ie.value)]);return(ze,At)=>(openBlock(),createElementBlock("label",{class:normalizeClass(unref(Fe))},[ze.trueLabel||ze.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":At[0]||(At[0]=Lt=>isRef(Ce)?Ce.value=Lt:null),class:normalizeClass(unref(Ie).be("button","original")),type:"checkbox",name:ze.name,tabindex:ze.tabindex,disabled:unref(pe),"true-value":ze.trueLabel,"false-value":ze.falseLabel,onChange:At[1]||(At[1]=(...Lt)=>unref($e)&&unref($e)(...Lt)),onFocus:At[2]||(At[2]=Lt=>ie.value=!0),onBlur:At[3]||(At[3]=Lt=>ie.value=!1)},null,42,_hoisted_1$U)),[[vModelCheckbox,unref(Ce)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,"onUpdate:modelValue":At[4]||(At[4]=Lt=>isRef(Ce)?Ce.value=Lt:null),class:normalizeClass(unref(Ie).be("button","original")),type:"checkbox",name:ze.name,tabindex:ze.tabindex,disabled:unref(pe),value:ze.label,onChange:At[5]||(At[5]=(...Lt)=>unref($e)&&unref($e)(...Lt)),onFocus:At[6]||(At[6]=Lt=>ie.value=!0),onBlur:At[7]||(At[7]=Lt=>ie.value=!1)},null,42,_hoisted_2$z)),[[vModelCheckbox,unref(Ce)]]),ze.$slots.default||ze.label?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass(unref(Ie).be("button","inner")),style:normalizeStyle$1(unref(le)?unref(Ne):void 0)},[renderSlot(ze.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(ze.label),1)])],6)):createCommentVNode("v-if",!0)],2))}});var CheckboxButton=_export_sfc$1(_sfc_main$1N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const checkboxGroupProps=buildProps({modelValue:{type:definePropType(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:useSizeProp,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),checkboxGroupEmits={[UPDATE_MODEL_EVENT]:$=>isArray$c($),change:$=>isArray$c($)},__default__$18=defineComponent({name:"ElCheckboxGroup"}),_sfc_main$1M=defineComponent({...__default__$18,props:checkboxGroupProps,emits:checkboxGroupEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("checkbox"),{formItem:le}=useFormItem(),{inputId:pe,isLabeledByFormItem:_e}=useFormItemInputId(ae,{formItemContext:le}),Ce=async xe=>{oe(UPDATE_MODEL_EVENT,xe),await nextTick(),oe("change",xe)},$e=computed({get(){return ae.modelValue},set(xe){Ce(xe)}});return provide(checkboxGroupContextKey,{...pick$1(toRefs(ae),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:$e,changeEvent:Ce}),watch(()=>ae.modelValue,()=>{ae.validateEvent&&(le==null||le.validate("change").catch(xe=>void 0))}),(xe,Ie)=>{var Ne;return openBlock(),createBlock(resolveDynamicComponent(xe.tag),{id:unref(pe),class:normalizeClass(unref(ie).b("group")),role:"group","aria-label":unref(_e)?void 0:xe.label||"checkbox-group","aria-labelledby":unref(_e)?(Ne=unref(le))==null?void 0:Ne.labelId:void 0},{default:withCtx(()=>[renderSlot(xe.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var CheckboxGroup=_export_sfc$1(_sfc_main$1M,[["__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$1=withNoopInstall(CheckboxGroup),radioPropsBase=buildProps({size:useSizeProp,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),radioProps=buildProps({...radioPropsBase,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),radioEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($)||isNumber$5($)||isBoolean$3($),[CHANGE_EVENT]:$=>isString$7($)||isNumber$5($)||isBoolean$3($)},radioGroupKey=Symbol("radioGroupKey"),useRadio=($,oe)=>{const ae=ref(),ie=inject(radioGroupKey,void 0),le=computed(()=>!!ie),pe=computed({get(){return le.value?ie.modelValue:$.modelValue},set(Ie){le.value?ie.changeEvent(Ie):oe&&oe(UPDATE_MODEL_EVENT,Ie),ae.value.checked=$.modelValue===$.label}}),_e=useFormSize(computed(()=>ie==null?void 0:ie.size)),Ce=useFormDisabled(computed(()=>ie==null?void 0:ie.disabled)),$e=ref(!1),xe=computed(()=>Ce.value||le.value&&pe.value!==$.label?-1:0);return{radioRef:ae,isGroup:le,radioGroup:ie,focus:$e,size:_e,disabled:Ce,tabIndex:xe,modelValue:pe}},_hoisted_1$T=["value","name","disabled"],__default__$17=defineComponent({name:"ElRadio"}),_sfc_main$1L=defineComponent({...__default__$17,props:radioProps,emits:radioEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("radio"),{radioRef:le,radioGroup:pe,focus:_e,size:Ce,disabled:$e,modelValue:xe}=useRadio(ae,oe);function Ie(){nextTick(()=>oe("change",xe.value))}return(Ne,Fe)=>{var ze;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(ie).b(),unref(ie).is("disabled",unref($e)),unref(ie).is("focus",unref(_e)),unref(ie).is("bordered",Ne.border),unref(ie).is("checked",unref(xe)===Ne.label),unref(ie).m(unref(Ce))])},[createBaseVNode("span",{class:normalizeClass([unref(ie).e("input"),unref(ie).is("disabled",unref($e)),unref(ie).is("checked",unref(xe)===Ne.label)])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:le,"onUpdate:modelValue":Fe[0]||(Fe[0]=At=>isRef(xe)?xe.value=At:null),class:normalizeClass(unref(ie).e("original")),value:Ne.label,name:Ne.name||((ze=unref(pe))==null?void 0:ze.name),disabled:unref($e),type:"radio",onFocus:Fe[1]||(Fe[1]=At=>_e.value=!0),onBlur:Fe[2]||(Fe[2]=At=>_e.value=!1),onChange:Ie},null,42,_hoisted_1$T),[[vModelRadio,unref(xe)]]),createBaseVNode("span",{class:normalizeClass(unref(ie).e("inner"))},null,2)],2),createBaseVNode("span",{class:normalizeClass(unref(ie).e("label")),onKeydown:Fe[3]||(Fe[3]=withModifiers(()=>{},["stop"]))},[renderSlot(Ne.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ne.label),1)])],34)],2)}}});var Radio=_export_sfc$1(_sfc_main$1L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const radioButtonProps=buildProps({...radioPropsBase,name:{type:String,default:""}}),_hoisted_1$S=["value","name","disabled"],__default__$16=defineComponent({name:"ElRadioButton"}),_sfc_main$1K=defineComponent({...__default__$16,props:radioButtonProps,setup($){const oe=$,ae=useNamespace("radio"),{radioRef:ie,focus:le,size:pe,disabled:_e,modelValue:Ce,radioGroup:$e}=useRadio(oe),xe=computed(()=>({backgroundColor:($e==null?void 0:$e.fill)||"",borderColor:($e==null?void 0:$e.fill)||"",boxShadow:$e!=null&&$e.fill?`-1px 0 0 0 ${$e.fill}`:"",color:($e==null?void 0:$e.textColor)||""}));return(Ie,Ne)=>{var Fe;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(ae).b("button"),unref(ae).is("active",unref(Ce)===Ie.label),unref(ae).is("disabled",unref(_e)),unref(ae).is("focus",unref(le)),unref(ae).bm("button",unref(pe))])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:ie,"onUpdate:modelValue":Ne[0]||(Ne[0]=ze=>isRef(Ce)?Ce.value=ze:null),class:normalizeClass(unref(ae).be("button","original-radio")),value:Ie.label,type:"radio",name:Ie.name||((Fe=unref($e))==null?void 0:Fe.name),disabled:unref(_e),onFocus:Ne[1]||(Ne[1]=ze=>le.value=!0),onBlur:Ne[2]||(Ne[2]=ze=>le.value=!1)},null,42,_hoisted_1$S),[[vModelRadio,unref(Ce)]]),createBaseVNode("span",{class:normalizeClass(unref(ae).be("button","inner")),style:normalizeStyle$1(unref(Ce)===Ie.label?unref(xe):{}),onKeydown:Ne[3]||(Ne[3]=withModifiers(()=>{},["stop"]))},[renderSlot(Ie.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ie.label),1)])],38)],2)}}});var RadioButton=_export_sfc$1(_sfc_main$1K,[["__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:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),radioGroupEmits=radioEmits,_hoisted_1$R=["id","aria-label","aria-labelledby"],__default__$15=defineComponent({name:"ElRadioGroup"}),_sfc_main$1J=defineComponent({...__default__$15,props:radioGroupProps,emits:radioGroupEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("radio"),le=useId(),pe=ref(),{formItem:_e}=useFormItem(),{inputId:Ce,isLabeledByFormItem:$e}=useFormItemInputId(ae,{formItemContext:_e}),xe=Ne=>{oe(UPDATE_MODEL_EVENT,Ne),nextTick(()=>oe("change",Ne))};onMounted(()=>{const Ne=pe.value.querySelectorAll("[type=radio]"),Fe=Ne[0];!Array.from(Ne).some(ze=>ze.checked)&&Fe&&(Fe.tabIndex=0)});const Ie=computed(()=>ae.name||le.value);return provide(radioGroupKey,reactive({...toRefs(ae),changeEvent:xe,name:Ie})),watch(()=>ae.modelValue,()=>{ae.validateEvent&&(_e==null||_e.validate("change").catch(Ne=>void 0))}),(Ne,Fe)=>(openBlock(),createElementBlock("div",{id:unref(Ce),ref_key:"radioGroupRef",ref:pe,class:normalizeClass(unref(ie).b("group")),role:"radiogroup","aria-label":unref($e)?void 0:Ne.label||"radio-group","aria-labelledby":unref($e)?unref(_e).labelId:void 0},[renderSlot(Ne.$slots,"default")],10,_hoisted_1$R))}});var RadioGroup=_export_sfc$1(_sfc_main$1J,[["__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);var NodeContent$1=defineComponent({name:"NodeContent",setup(){return{ns:useNamespace("cascader-node")}},render(){const{ns:$}=this,{node:oe,panel:ae}=this.$parent,{data:ie,label:le}=oe,{renderLabelFn:pe}=ae;return h$3("span",{class:$.e("label")},pe?pe({node:oe,data:ie}):le)}});const CASCADER_PANEL_INJECTION_KEY=Symbol(),_sfc_main$1I=defineComponent({name:"ElCascaderNode",components:{ElCheckbox,ElRadio,NodeContent:NodeContent$1,ElIcon,Check:check_default,Loading:loading_default,ArrowRight:arrow_right_default},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup($,{emit:oe}){const ae=inject(CASCADER_PANEL_INJECTION_KEY),ie=useNamespace("cascader-node"),le=computed(()=>ae.isHoverMenu),pe=computed(()=>ae.config.multiple),_e=computed(()=>ae.config.checkStrictly),Ce=computed(()=>{var $n;return($n=ae.checkedNodes[0])==null?void 0:$n.uid}),$e=computed(()=>$.node.isDisabled),xe=computed(()=>$.node.isLeaf),Ie=computed(()=>_e.value&&!xe.value||!$e.value),Ne=computed(()=>ze(ae.expandingNode)),Fe=computed(()=>_e.value&&ae.checkedNodes.some(ze)),ze=$n=>{var wn;const{level:Tn,uid:xn}=$.node;return((wn=$n==null?void 0:$n.pathNodes[Tn-1])==null?void 0:wn.uid)===xn},At=()=>{Ne.value||ae.expandNode($.node)},Lt=$n=>{const{node:wn}=$;$n!==wn.checked&&ae.handleCheckChange(wn,$n)},hn=()=>{ae.lazyLoad($.node,()=>{xe.value||At()})},vn=$n=>{le.value&&(_n(),!xe.value&&oe("expand",$n))},_n=()=>{const{node:$n}=$;!Ie.value||$n.loading||($n.loaded?At():hn())},bn=()=>{le.value&&!xe.value||(xe.value&&!$e.value&&!_e.value&&!pe.value?En(!0):_n())},Cn=$n=>{_e.value?(Lt($n),$.node.loaded&&At()):En($n)},En=$n=>{$.node.loaded?(Lt($n),!_e.value&&At()):hn()};return{panel:ae,isHoverMenu:le,multiple:pe,checkStrictly:_e,checkedNodeId:Ce,isDisabled:$e,isLeaf:xe,expandable:Ie,inExpandingPath:Ne,inCheckedPath:Fe,ns:ie,handleHoverExpand:vn,handleExpand:_n,handleClick:bn,handleCheck:En,handleSelectCheck:Cn}}}),_hoisted_1$Q=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],_hoisted_2$y=createBaseVNode("span",null,null,-1);function _sfc_render$v($,oe,ae,ie,le,pe){const _e=resolveComponent("el-checkbox"),Ce=resolveComponent("el-radio"),$e=resolveComponent("check"),xe=resolveComponent("el-icon"),Ie=resolveComponent("node-content"),Ne=resolveComponent("loading"),Fe=resolveComponent("arrow-right");return openBlock(),createElementBlock("li",{id:`${$.menuId}-${$.node.uid}`,role:"menuitem","aria-haspopup":!$.isLeaf,"aria-owns":$.isLeaf?null:$.menuId,"aria-expanded":$.inExpandingPath,tabindex:$.expandable?-1:void 0,class:normalizeClass([$.ns.b(),$.ns.is("selectable",$.checkStrictly),$.ns.is("active",$.node.checked),$.ns.is("disabled",!$.expandable),$.inExpandingPath&&"in-active-path",$.inCheckedPath&&"in-checked-path"]),onMouseenter:oe[2]||(oe[2]=(...ze)=>$.handleHoverExpand&&$.handleHoverExpand(...ze)),onFocus:oe[3]||(oe[3]=(...ze)=>$.handleHoverExpand&&$.handleHoverExpand(...ze)),onClick:oe[4]||(oe[4]=(...ze)=>$.handleClick&&$.handleClick(...ze))},[createCommentVNode(" prefix "),$.multiple?(openBlock(),createBlock(_e,{key:0,"model-value":$.node.checked,indeterminate:$.node.indeterminate,disabled:$.isDisabled,onClick:oe[0]||(oe[0]=withModifiers(()=>{},["stop"])),"onUpdate:modelValue":$.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):$.checkStrictly?(openBlock(),createBlock(Ce,{key:1,"model-value":$.checkedNodeId,label:$.node.uid,disabled:$.isDisabled,"onUpdate:modelValue":$.handleSelectCheck,onClick:oe[1]||(oe[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 + `),_hoisted_2$y]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):$.isLeaf&&$.node.checked?(openBlock(),createBlock(xe,{key:2,class:normalizeClass($.ns.e("prefix"))},{default:withCtx(()=>[createVNode($e)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode(Ie),createCommentVNode(" postfix "),$.isLeaf?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[$.node.loading?(openBlock(),createBlock(xe,{key:0,class:normalizeClass([$.ns.is("loading"),$.ns.e("postfix")])},{default:withCtx(()=>[createVNode(Ne)]),_:1},8,["class"])):(openBlock(),createBlock(xe,{key:1,class:normalizeClass(["arrow-right",$.ns.e("postfix")])},{default:withCtx(()=>[createVNode(Fe)]),_:1},8,["class"]))],64))],42,_hoisted_1$Q)}var ElCascaderNode=_export_sfc$1(_sfc_main$1I,[["render",_sfc_render$v],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const _sfc_main$1H=defineComponent({name:"ElCascaderMenu",components:{Loading:loading_default,ElIcon,ElScrollbar,ElCascaderNode},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup($){const oe=getCurrentInstance(),ae=useNamespace("cascader-menu"),{t:ie}=useLocale(),le=generateId();let pe=null,_e=null;const Ce=inject(CASCADER_PANEL_INJECTION_KEY),$e=ref(null),xe=computed(()=>!$.nodes.length),Ie=computed(()=>!Ce.initialLoaded),Ne=computed(()=>`cascader-menu-${le}-${$.index}`),Fe=hn=>{pe=hn.target},ze=hn=>{if(!(!Ce.isHoverMenu||!pe||!$e.value))if(pe.contains(hn.target)){At();const vn=oe.vnode.el,{left:_n}=vn.getBoundingClientRect(),{offsetWidth:bn,offsetHeight:Cn}=vn,En=hn.clientX-_n,$n=pe.offsetTop,wn=$n+pe.offsetHeight;$e.value.innerHTML=` + + + `}else _e||(_e=window.setTimeout(Lt,Ce.config.hoverThreshold))},At=()=>{_e&&(clearTimeout(_e),_e=null)},Lt=()=>{$e.value&&($e.value.innerHTML="",At())};return{ns:ae,panel:Ce,hoverZone:$e,isEmpty:xe,isLoading:Ie,menuId:Ne,t:ie,handleExpand:Fe,handleMouseMove:ze,clearHoverZone:Lt}}});function _sfc_render$u($,oe,ae,ie,le,pe){const _e=resolveComponent("el-cascader-node"),Ce=resolveComponent("loading"),$e=resolveComponent("el-icon"),xe=resolveComponent("el-scrollbar");return openBlock(),createBlock(xe,{key:$.menuId,tag:"ul",role:"menu",class:normalizeClass($.ns.b()),"wrap-class":$.ns.e("wrap"),"view-class":[$.ns.e("list"),$.ns.is("empty",$.isEmpty)],onMousemove:$.handleMouseMove,onMouseleave:$.clearHoverZone},{default:withCtx(()=>{var Ie;return[(openBlock(!0),createElementBlock(Fragment,null,renderList($.nodes,Ne=>(openBlock(),createBlock(_e,{key:Ne.uid,node:Ne,"menu-id":$.menuId,onExpand:$.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),$.isLoading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("empty-text"))},[createVNode($e,{size:"14",class:normalizeClass($.ns.is("loading"))},{default:withCtx(()=>[createVNode(Ce)]),_:1},8,["class"]),createTextVNode(" "+toDisplayString$1($.t("el.cascader.loading")),1)],2)):$.isEmpty?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("empty-text"))},toDisplayString$1($.t("el.cascader.noData")),3)):(Ie=$.panel)!=null&&Ie.isHoverMenu?(openBlock(),createElementBlock("svg",{key:2,ref:"hoverZone",class:normalizeClass($.ns.e("hover-zone"))},null,2)):createCommentVNode("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var ElCascaderMenu=_export_sfc$1(_sfc_main$1H,[["render",_sfc_render$u],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let uid=0;const calculatePathNodes=$=>{const oe=[$];let{parent:ae}=$;for(;ae;)oe.unshift(ae),ae=ae.parent;return oe};let Node$1=class _o{constructor(oe,ae,ie,le=!1){this.data=oe,this.config=ae,this.parent=ie,this.root=le,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:pe,label:_e,children:Ce}=ae,$e=oe[Ce],xe=calculatePathNodes(this);this.level=le?0:ie?ie.level+1:1,this.value=oe[pe],this.label=oe[_e],this.pathNodes=xe,this.pathValues=xe.map(Ie=>Ie.value),this.pathLabels=xe.map(Ie=>Ie.label),this.childrenData=$e,this.children=($e||[]).map(Ie=>new _o(Ie,ae,this)),this.loaded=!ae.lazy||this.isLeaf||!isEmpty($e)}get isDisabled(){const{data:oe,parent:ae,config:ie}=this,{disabled:le,checkStrictly:pe}=ie;return(isFunction$5(le)?le(oe,this):!!oe[le])||!pe&&(ae==null?void 0:ae.isDisabled)}get isLeaf(){const{data:oe,config:ae,childrenData:ie,loaded:le}=this,{lazy:pe,leaf:_e}=ae,Ce=isFunction$5(_e)?_e(oe,this):oe[_e];return isUndefined$1(Ce)?pe&&!le?!1:!(Array.isArray(ie)&&ie.length):!!Ce}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(oe){const{childrenData:ae,children:ie}=this,le=new _o(oe,this.config,this);return Array.isArray(ae)?ae.push(oe):this.childrenData=[oe],ie.push(le),le}calcText(oe,ae){const ie=oe?this.pathLabels.join(ae):this.label;return this.text=ie,ie}broadcast(oe,...ae){const ie=`onParent${capitalize$1(oe)}`;this.children.forEach(le=>{le&&(le.broadcast(oe,...ae),le[ie]&&le[ie](...ae))})}emit(oe,...ae){const{parent:ie}=this,le=`onChild${capitalize$1(oe)}`;ie&&(ie[le]&&ie[le](...ae),ie.emit(oe,...ae))}onParentCheck(oe){this.isDisabled||this.setCheckState(oe)}onChildCheck(){const{children:oe}=this,ae=oe.filter(le=>!le.isDisabled),ie=ae.length?ae.every(le=>le.checked):!1;this.setCheckState(ie)}setCheckState(oe){const ae=this.children.length,ie=this.children.reduce((le,pe)=>{const _e=pe.checked?1:pe.indeterminate?.5:0;return le+_e},0);this.checked=this.loaded&&this.children.filter(le=>!le.isDisabled).every(le=>le.loaded&&le.checked)&&oe,this.indeterminate=this.loaded&&ie!==ae&&ie>0}doCheck(oe){if(this.checked===oe)return;const{checkStrictly:ae,multiple:ie}=this.config;ae||!ie?this.checked=oe:(this.broadcast("check",oe),this.setCheckState(oe),this.emit("check"))}};const flatNodes=($,oe)=>$.reduce((ae,ie)=>(ie.isLeaf?ae.push(ie):(!oe&&ae.push(ie),ae=ae.concat(flatNodes(ie.children,oe))),ae),[]);class Store{constructor(oe,ae){this.config=ae;const ie=(oe||[]).map(le=>new Node$1(le,this.config));this.nodes=ie,this.allNodes=flatNodes(ie,!1),this.leafNodes=flatNodes(ie,!0)}getNodes(){return this.nodes}getFlattedNodes(oe){return oe?this.leafNodes:this.allNodes}appendNode(oe,ae){const ie=ae?ae.appendChild(oe):new Node$1(oe,this.config);ae||this.nodes.push(ie),this.allNodes.push(ie),ie.isLeaf&&this.leafNodes.push(ie)}appendNodes(oe,ae){oe.forEach(ie=>this.appendNode(ie,ae))}getNodeByValue(oe,ae=!1){return!oe&&oe!==0?null:this.getFlattedNodes(ae).find(le=>isEqual$1(le.value,oe)||isEqual$1(le.pathValues,oe))||null}getSameNode(oe){return oe&&this.getFlattedNodes(!1).find(({value:ie,level:le})=>isEqual$1(oe.value,ie)&&oe.level===le)||null}}const CommonProps=buildProps({modelValue:{type:definePropType([Number,String,Array])},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},useCascaderConfig=$=>computed(()=>({...DefaultProps,...$.props})),getMenuIndex=$=>{if(!$)return 0;const oe=$.id.split("-");return Number(oe[oe.length-2])},checkNode=$=>{if(!$)return;const oe=$.querySelector("input");oe?oe.click():isLeaf($)&&$.click()},sortByOriginalOrder=($,oe)=>{const ae=oe.slice(0),ie=ae.map(pe=>pe.uid),le=$.reduce((pe,_e)=>{const Ce=ie.indexOf(_e.uid);return Ce>-1&&(pe.push(_e),ae.splice(Ce,1),ie.splice(Ce,1)),pe},[]);return le.push(...ae),le},_sfc_main$1G=defineComponent({name:"ElCascaderPanel",components:{ElCascaderMenu},props:{...CommonProps,border:{type:Boolean,default:!0},renderLabel:Function},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"close","expand-change"],setup($,{emit:oe,slots:ae}){let ie=!1;const le=useNamespace("cascader"),pe=useCascaderConfig($);let _e=null;const Ce=ref(!0),$e=ref([]),xe=ref(null),Ie=ref([]),Ne=ref(null),Fe=ref([]),ze=computed(()=>pe.value.expandTrigger==="hover"),At=computed(()=>$.renderLabel||ae.default),Lt=()=>{const{options:On}=$,Nn=pe.value;ie=!1,_e=new Store(On,Nn),Ie.value=[_e.getNodes()],Nn.lazy&&isEmpty($.options)?(Ce.value=!1,hn(void 0,Rn=>{Rn&&(_e=new Store(Rn,Nn),Ie.value=[_e.getNodes()]),Ce.value=!0,Tn(!1,!0)})):Tn(!1,!0)},hn=(On,Nn)=>{const Rn=pe.value;On=On||new Node$1({},Rn,void 0,!0),On.loading=!0;const zn=Bn=>{const Mn=On,Fn=Mn.root?null:Mn;Bn&&(_e==null||_e.appendNodes(Bn,Fn)),Mn.loading=!1,Mn.loaded=!0,Mn.childrenData=Mn.childrenData||[],Nn&&Nn(Bn)};Rn.lazyLoad(On,zn)},vn=(On,Nn)=>{var Rn;const{level:zn}=On,Bn=Ie.value.slice(0,zn);let Mn;On.isLeaf?Mn=On.pathNodes[zn-2]:(Mn=On,Bn.push(On.children)),((Rn=Ne.value)==null?void 0:Rn.uid)!==(Mn==null?void 0:Mn.uid)&&(Ne.value=On,Ie.value=Bn,!Nn&&oe("expand-change",(On==null?void 0:On.pathValues)||[]))},_n=(On,Nn,Rn=!0)=>{const{checkStrictly:zn,multiple:Bn}=pe.value,Mn=Fe.value[0];ie=!0,!Bn&&(Mn==null||Mn.doCheck(!1)),On.doCheck(Nn),wn(),Rn&&!Bn&&!zn&&oe("close"),!Rn&&!Bn&&!zn&&bn(On)},bn=On=>{On&&(On=On.parent,bn(On),On&&vn(On))},Cn=On=>_e==null?void 0:_e.getFlattedNodes(On),En=On=>{var Nn;return(Nn=Cn(On))==null?void 0:Nn.filter(Rn=>Rn.checked!==!1)},$n=()=>{Fe.value.forEach(On=>On.doCheck(!1)),wn(),Ie.value=Ie.value.slice(0,1),Ne.value=null,oe("expand-change",[])},wn=()=>{var On;const{checkStrictly:Nn,multiple:Rn}=pe.value,zn=Fe.value,Bn=En(!Nn),Mn=sortByOriginalOrder(zn,Bn),Fn=Mn.map(Vn=>Vn.valueByOption);Fe.value=Mn,xe.value=Rn?Fn:(On=Fn[0])!=null?On:null},Tn=(On=!1,Nn=!1)=>{const{modelValue:Rn}=$,{lazy:zn,multiple:Bn,checkStrictly:Mn}=pe.value,Fn=!Mn;if(!(!Ce.value||ie||!Nn&&isEqual$1(Rn,xe.value)))if(zn&&!On){const jn=unique(flattenDeep(castArray(Rn))).map(Zn=>_e==null?void 0:_e.getNodeByValue(Zn)).filter(Zn=>!!Zn&&!Zn.loaded&&!Zn.loading);jn.length?jn.forEach(Zn=>{hn(Zn,()=>Tn(!1,Nn))}):Tn(!0,Nn)}else{const Vn=Bn?castArray(Rn):[Rn],jn=unique(Vn.map(Zn=>_e==null?void 0:_e.getNodeByValue(Zn,Fn)));xn(jn,Nn),xe.value=cloneDeep(Rn)}},xn=(On,Nn=!0)=>{const{checkStrictly:Rn}=pe.value,zn=Fe.value,Bn=On.filter(Vn=>!!Vn&&(Rn||Vn.isLeaf)),Mn=_e==null?void 0:_e.getSameNode(Ne.value),Fn=Nn&&Mn||Bn[0];Fn?Fn.pathNodes.forEach(Vn=>vn(Vn,!0)):Ne.value=null,zn.forEach(Vn=>Vn.doCheck(!1)),Bn.forEach(Vn=>Vn.doCheck(!0)),Fe.value=Bn,nextTick(kn)},kn=()=>{isClient$2&&$e.value.forEach(On=>{const Nn=On==null?void 0:On.$el;if(Nn){const Rn=Nn.querySelector(`.${le.namespace.value}-scrollbar__wrap`),zn=Nn.querySelector(`.${le.b("node")}.${le.is("active")}`)||Nn.querySelector(`.${le.b("node")}.in-active-path`);scrollIntoView(Rn,zn)}})},An=On=>{const Nn=On.target,{code:Rn}=On;switch(Rn){case EVENT_CODE.up:case EVENT_CODE.down:{On.preventDefault();const zn=Rn===EVENT_CODE.up?-1:1;focusNode(getSibling(Nn,zn,`.${le.b("node")}[tabindex="-1"]`));break}case EVENT_CODE.left:{On.preventDefault();const zn=$e.value[getMenuIndex(Nn)-1],Bn=zn==null?void 0:zn.$el.querySelector(`.${le.b("node")}[aria-expanded="true"]`);focusNode(Bn);break}case EVENT_CODE.right:{On.preventDefault();const zn=$e.value[getMenuIndex(Nn)+1],Bn=zn==null?void 0:zn.$el.querySelector(`.${le.b("node")}[tabindex="-1"]`);focusNode(Bn);break}case EVENT_CODE.enter:checkNode(Nn);break}};return provide(CASCADER_PANEL_INJECTION_KEY,reactive({config:pe,expandingNode:Ne,checkedNodes:Fe,isHoverMenu:ze,initialLoaded:Ce,renderLabelFn:At,lazyLoad:hn,expandNode:vn,handleCheckChange:_n})),watch([pe,()=>$.options],Lt,{deep:!0,immediate:!0}),watch(()=>$.modelValue,()=>{ie=!1,Tn()},{deep:!0}),watch(()=>xe.value,On=>{isEqual$1(On,$.modelValue)||(oe(UPDATE_MODEL_EVENT,On),oe(CHANGE_EVENT,On))}),onBeforeUpdate(()=>$e.value=[]),onMounted(()=>!isEmpty($.modelValue)&&Tn()),{ns:le,menuList:$e,menus:Ie,checkedNodes:Fe,handleKeyDown:An,handleCheckChange:_n,getFlattedNodes:Cn,getCheckedNodes:En,clearCheckedNodes:$n,calculateCheckedValue:wn,scrollToExpandingNode:kn}}});function _sfc_render$t($,oe,ae,ie,le,pe){const _e=resolveComponent("el-cascader-menu");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b("panel"),$.ns.is("bordered",$.border)]),onKeydown:oe[0]||(oe[0]=(...Ce)=>$.handleKeyDown&&$.handleKeyDown(...Ce))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.menus,(Ce,$e)=>(openBlock(),createBlock(_e,{key:$e,ref_for:!0,ref:xe=>$.menuList[$e]=xe,index:$e,nodes:[...Ce]},null,8,["index","nodes"]))),128))],34)}var CascaderPanel=_export_sfc$1(_sfc_main$1G,[["render",_sfc_render$t],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);CascaderPanel.install=$=>{$.component(CascaderPanel.name,CascaderPanel)};const _CascaderPanel=CascaderPanel,ElCascaderPanel=_CascaderPanel,tagProps=buildProps({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:componentSizes,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),tagEmits={close:$=>$ instanceof MouseEvent,click:$=>$ instanceof MouseEvent},__default__$14=defineComponent({name:"ElTag"}),_sfc_main$1F=defineComponent({...__default__$14,props:tagProps,emits:tagEmits,setup($,{emit:oe}){const ae=$,ie=useFormSize(),le=useNamespace("tag"),pe=computed(()=>{const{type:$e,hit:xe,effect:Ie,closable:Ne,round:Fe}=ae;return[le.b(),le.is("closable",Ne),le.m($e),le.m(ie.value),le.m(Ie),le.is("hit",xe),le.is("round",Fe)]}),_e=$e=>{oe("close",$e)},Ce=$e=>{oe("click",$e)};return($e,xe)=>$e.disableTransitions?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(pe)),style:normalizeStyle$1({backgroundColor:$e.color}),onClick:Ce},[createBaseVNode("span",{class:normalizeClass(unref(le).e("content"))},[renderSlot($e.$slots,"default")],2),$e.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("close")),onClick:withModifiers(_e,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)):(openBlock(),createBlock(Transition,{key:1,name:`${unref(le).namespace.value}-zoom-in-center`,appear:""},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(pe)),style:normalizeStyle$1({backgroundColor:$e.color}),onClick:Ce},[createBaseVNode("span",{class:normalizeClass(unref(le).e("content"))},[renderSlot($e.$slots,"default")],2),$e.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("close")),onClick:withModifiers(_e,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var Tag=_export_sfc$1(_sfc_main$1F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const ElTag=withInstall(Tag),cascaderProps=buildProps({...CommonProps,size:useSizeProp,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:definePropType(Function),default:($,oe)=>$.text.includes(oe)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:definePropType(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:useTooltipContentProps.teleported,tagType:{...tagProps.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),cascaderEmits={[UPDATE_MODEL_EVENT]:$=>!!$||$===null,[CHANGE_EVENT]:$=>!!$||$===null,focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,visibleChange:$=>isBoolean$3($),expandChange:$=>!!$,removeTag:$=>!!$},_hoisted_1$P={key:0},_hoisted_2$x=["placeholder","onKeydown"],_hoisted_3$j=["onClick"],COMPONENT_NAME$e="ElCascader",__default__$13=defineComponent({name:COMPONENT_NAME$e}),_sfc_main$1E=defineComponent({...__default__$13,props:cascaderProps,emits:cascaderEmits,setup($,{expose:oe,emit:ae}){const ie=$,le={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:dr})=>{const{modifiersData:Jn,placement:ir}=dr;["right","left","bottom","top"].includes(ir)||(Jn.arrow.x=35)},requires:["arrow"]}]},pe=useAttrs$1();let _e=0,Ce=0;const $e=useNamespace("cascader"),xe=useNamespace("input"),{t:Ie}=useLocale(),{form:Ne,formItem:Fe}=useFormItem(),ze=ref(null),At=ref(null),Lt=ref(null),hn=ref(null),vn=ref(null),_n=ref(!1),bn=ref(!1),Cn=ref(!1),En=ref(!1),$n=ref(""),wn=ref(""),Tn=ref([]),xn=ref([]),kn=ref([]),An=ref(!1),On=computed(()=>pe.style),Nn=computed(()=>ie.disabled||(Ne==null?void 0:Ne.disabled)),Rn=computed(()=>ie.placeholder||Ie("el.cascader.placeholder")),zn=computed(()=>wn.value||Tn.value.length>0||An.value?"":Rn.value),Bn=useFormSize(),Mn=computed(()=>["small"].includes(Bn.value)?"small":"default"),Fn=computed(()=>!!ie.props.multiple),Vn=computed(()=>!ie.filterable||Fn.value),jn=computed(()=>Fn.value?wn.value:$n.value),Zn=computed(()=>{var dr;return((dr=hn.value)==null?void 0:dr.checkedNodes)||[]}),Gn=computed(()=>!ie.clearable||Nn.value||Cn.value||!bn.value?!1:!!Zn.value.length),Xn=computed(()=>{const{showAllLevels:dr,separator:Jn}=ie,ir=Zn.value;return ir.length?Fn.value?"":ir[0].calcText(dr,Jn):""}),cr=computed({get(){return cloneDeep(ie.modelValue)},set(dr){ae(UPDATE_MODEL_EVENT,dr),ae(CHANGE_EVENT,dr),ie.validateEvent&&(Fe==null||Fe.validate("change").catch(Jn=>void 0))}}),nr=computed(()=>[$e.b(),$e.m(Bn.value),$e.is("disabled",Nn.value),pe.class]),er=computed(()=>[xe.e("icon"),"icon-arrow-down",$e.is("reverse",_n.value)]),rr=computed(()=>$e.is("focus",_n.value||En.value)),qn=computed(()=>{var dr,Jn;return(Jn=(dr=ze.value)==null?void 0:dr.popperRef)==null?void 0:Jn.contentRef}),Yn=dr=>{var Jn,ir,xr;Nn.value||(dr=dr??!_n.value,dr!==_n.value&&(_n.value=dr,(ir=(Jn=At.value)==null?void 0:Jn.input)==null||ir.setAttribute("aria-expanded",`${dr}`),dr?(ar(),nextTick((xr=hn.value)==null?void 0:xr.scrollToExpandingNode)):ie.filterable&&hr(),ae("visibleChange",dr)))},ar=()=>{nextTick(()=>{var dr;(dr=ze.value)==null||dr.updatePopper()})},pr=()=>{Cn.value=!1},Un=dr=>{const{showAllLevels:Jn,separator:ir}=ie;return{node:dr,key:dr.uid,text:dr.calcText(Jn,ir),hitState:!1,closable:!Nn.value&&!dr.isDisabled,isCollapseTag:!1}},tr=dr=>{var Jn;const ir=dr.node;ir.doCheck(!1),(Jn=hn.value)==null||Jn.calculateCheckedValue(),ae("removeTag",ir.valueByOption)},ur=()=>{if(!Fn.value)return;const dr=Zn.value,Jn=[],ir=[];if(dr.forEach(xr=>ir.push(Un(xr))),xn.value=ir,dr.length){const[xr,...Ir]=dr,Hr=Ir.length;Jn.push(Un(xr)),Hr&&(ie.collapseTags?Jn.push({key:-1,text:`+ ${Hr}`,closable:!1,isCollapseTag:!0}):Ir.forEach(Cr=>Jn.push(Un(Cr))))}Tn.value=Jn},_r=()=>{var dr,Jn;const{filterMethod:ir,showAllLevels:xr,separator:Ir}=ie,Hr=(Jn=(dr=hn.value)==null?void 0:dr.getFlattedNodes(!ie.props.checkStrictly))==null?void 0:Jn.filter(Cr=>Cr.isDisabled?!1:(Cr.calcText(xr,Ir),ir(Cr,jn.value)));Fn.value&&(Tn.value.forEach(Cr=>{Cr.hitState=!1}),xn.value.forEach(Cr=>{Cr.hitState=!1})),Cn.value=!0,kn.value=Hr,ar()},Er=()=>{var dr;let Jn;Cn.value&&vn.value?Jn=vn.value.$el.querySelector(`.${$e.e("suggestion-item")}`):Jn=(dr=hn.value)==null?void 0:dr.$el.querySelector(`.${$e.b("node")}[tabindex="-1"]`),Jn&&(Jn.focus(),!Cn.value&&Jn.click())},sr=()=>{var dr,Jn;const ir=(dr=At.value)==null?void 0:dr.input,xr=Lt.value,Ir=(Jn=vn.value)==null?void 0:Jn.$el;if(!(!isClient$2||!ir)){if(Ir){const Hr=Ir.querySelector(`.${$e.e("suggestion-list")}`);Hr.style.minWidth=`${ir.offsetWidth}px`}if(xr){const{offsetHeight:Hr}=xr,Cr=Tn.value.length>0?`${Math.max(Hr+6,_e)}px`:`${_e}px`;ir.style.height=Cr,ar()}}},Pr=dr=>{var Jn;return(Jn=hn.value)==null?void 0:Jn.getCheckedNodes(dr)},Sr=dr=>{ar(),ae("expandChange",dr)},kr=dr=>{var Jn;const ir=(Jn=dr.target)==null?void 0:Jn.value;if(dr.type==="compositionend")An.value=!1,nextTick(()=>Tr(ir));else{const xr=ir[ir.length-1]||"";An.value=!isKorean(xr)}},mr=dr=>{if(!An.value)switch(dr.code){case EVENT_CODE.enter:Yn();break;case EVENT_CODE.down:Yn(!0),nextTick(Er),dr.preventDefault();break;case EVENT_CODE.esc:_n.value===!0&&(dr.preventDefault(),dr.stopPropagation(),Yn(!1));break;case EVENT_CODE.tab:Yn(!1);break}},lr=()=>{var dr;(dr=hn.value)==null||dr.clearCheckedNodes(),!_n.value&&ie.filterable&&hr(),Yn(!1)},hr=()=>{const{value:dr}=Xn;$n.value=dr,wn.value=dr},gr=dr=>{var Jn,ir;const{checked:xr}=dr;Fn.value?(Jn=hn.value)==null||Jn.handleCheckChange(dr,!xr,!1):(!xr&&((ir=hn.value)==null||ir.handleCheckChange(dr,!0,!1)),Yn(!1))},Or=dr=>{const Jn=dr.target,{code:ir}=dr;switch(ir){case EVENT_CODE.up:case EVENT_CODE.down:{const xr=ir===EVENT_CODE.up?-1:1;focusNode(getSibling(Jn,xr,`.${$e.e("suggestion-item")}[tabindex="-1"]`));break}case EVENT_CODE.enter:Jn.click();break}},Lr=()=>{const dr=Tn.value,Jn=dr[dr.length-1];Ce=wn.value?0:Ce+1,!(!Jn||!Ce||ie.collapseTags&&dr.length>1)&&(Jn.hitState?tr(Jn):Jn.hitState=!0)},Vr=dr=>{const Jn=dr.target,ir=$e.e("search-input");Jn.className===ir&&(En.value=!0),ae("focus",dr)},Rr=dr=>{En.value=!1,ae("blur",dr)},$r=debounce(()=>{const{value:dr}=jn;if(!dr)return;const Jn=ie.beforeFilter(dr);isPromise(Jn)?Jn.then(_r).catch(()=>{}):Jn!==!1?_r():pr()},ie.debounce),Tr=(dr,Jn)=>{!_n.value&&Yn(!0),!(Jn!=null&&Jn.isComposing)&&(dr?$r():pr())};return watch(Cn,ar),watch([Zn,Nn],ur),watch(Tn,()=>{nextTick(()=>sr())}),watch(Xn,hr,{immediate:!0}),onMounted(()=>{const dr=At.value.input,Jn=Number.parseFloat(useCssVar(xe.cssVarName("input-height"),dr).value)-2;_e=dr.offsetHeight||Jn,useResizeObserver(dr,sr)}),oe({getCheckedNodes:Pr,cascaderPanelRef:hn,togglePopperVisible:Yn,contentRef:qn}),(dr,Jn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"tooltipRef",ref:ze,visible:_n.value,teleported:dr.teleported,"popper-class":[unref($e).e("dropdown"),dr.popperClass],"popper-options":le,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${unref($e).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:pr},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(unref(nr)),style:normalizeStyle$1(unref(On)),onClick:Jn[5]||(Jn[5]=()=>Yn(unref(Vn)?void 0:!0)),onKeydown:mr,onMouseenter:Jn[6]||(Jn[6]=ir=>bn.value=!0),onMouseleave:Jn[7]||(Jn[7]=ir=>bn.value=!1)},[createVNode(unref(ElInput),{ref_key:"input",ref:At,modelValue:$n.value,"onUpdate:modelValue":Jn[1]||(Jn[1]=ir=>$n.value=ir),placeholder:unref(zn),readonly:unref(Vn),disabled:unref(Nn),"validate-event":!1,size:unref(Bn),class:normalizeClass(unref(rr)),tabindex:unref(Fn)&&dr.filterable&&!unref(Nn)?-1:void 0,onCompositionstart:kr,onCompositionupdate:kr,onCompositionend:kr,onFocus:Vr,onBlur:Rr,onInput:Tr},{suffix:withCtx(()=>[unref(Gn)?(openBlock(),createBlock(unref(ElIcon),{key:"clear",class:normalizeClass([unref(xe).e("icon"),"icon-circle-close"]),onClick:withModifiers(lr,["stop"])},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onClick"])):(openBlock(),createBlock(unref(ElIcon),{key:"arrow-down",class:normalizeClass(unref(er)),onClick:Jn[0]||(Jn[0]=withModifiers(ir=>Yn(),["stop"]))},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),unref(Fn)?(openBlock(),createElementBlock("div",{key:0,ref_key:"tagWrapper",ref:Lt,class:normalizeClass(unref($e).e("tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Tn.value,ir=>(openBlock(),createBlock(unref(ElTag),{key:ir.key,type:dr.tagType,size:unref(Mn),hit:ir.hitState,closable:ir.closable,"disable-transitions":"",onClose:xr=>tr(ir)},{default:withCtx(()=>[ir.isCollapseTag===!1?(openBlock(),createElementBlock("span",_hoisted_1$P,toDisplayString$1(ir.text),1)):(openBlock(),createBlock(unref(ElTooltip),{key:1,disabled:_n.value||!dr.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(ir.text),1)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref($e).e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(xn.value.slice(1),(xr,Ir)=>(openBlock(),createElementBlock("div",{key:Ir,class:normalizeClass(unref($e).e("collapse-tag"))},[(openBlock(),createBlock(unref(ElTag),{key:xr.key,class:"in-tooltip",type:dr.tagType,size:unref(Mn),hit:xr.hitState,closable:xr.closable,"disable-transitions":"",onClose:Hr=>tr(xr)},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(xr.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),dr.filterable&&!unref(Nn)?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":Jn[2]||(Jn[2]=ir=>wn.value=ir),type:"text",class:normalizeClass(unref($e).e("search-input")),placeholder:unref(Xn)?"":unref(Rn),onInput:Jn[3]||(Jn[3]=ir=>Tr(wn.value,ir)),onClick:Jn[4]||(Jn[4]=withModifiers(ir=>Yn(!0),["stop"])),onKeydown:withKeys(Lr,["delete"]),onCompositionstart:kr,onCompositionupdate:kr,onCompositionend:kr,onFocus:Vr,onBlur:Rr},null,42,_hoisted_2$x)),[[vModelText,wn.value]]):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],38)),[[unref(ClickOutside),()=>Yn(!1),unref(qn)]])]),content:withCtx(()=>[withDirectives(createVNode(unref(_CascaderPanel),{ref_key:"cascaderPanelRef",ref:hn,modelValue:unref(cr),"onUpdate:modelValue":Jn[8]||(Jn[8]=ir=>isRef(cr)?cr.value=ir:null),options:dr.options,props:ie.props,border:!1,"render-label":dr.$slots.default,onExpandChange:Sr,onClose:Jn[9]||(Jn[9]=ir=>dr.$nextTick(()=>Yn(!1)))},null,8,["modelValue","options","props","render-label"]),[[vShow,!Cn.value]]),dr.filterable?withDirectives((openBlock(),createBlock(unref(ElScrollbar),{key:0,ref_key:"suggestionPanel",ref:vn,tag:"ul",class:normalizeClass(unref($e).e("suggestion-panel")),"view-class":unref($e).e("suggestion-list"),onKeydown:Or},{default:withCtx(()=>[kn.value.length?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(kn.value,ir=>(openBlock(),createElementBlock("li",{key:ir.uid,class:normalizeClass([unref($e).e("suggestion-item"),unref($e).is("checked",ir.checked)]),tabindex:-1,onClick:xr=>gr(ir)},[createBaseVNode("span",null,toDisplayString$1(ir.text),1),ir.checked?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1})):createCommentVNode("v-if",!0)],10,_hoisted_3$j))),128)):renderSlot(dr.$slots,"empty",{key:1},()=>[createBaseVNode("li",{class:normalizeClass(unref($e).e("empty-text"))},toDisplayString$1(unref(Ie)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[vShow,Cn.value]]):createCommentVNode("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var Cascader=_export_sfc$1(_sfc_main$1E,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);Cascader.install=$=>{$.component(Cascader.name,Cascader)};const _Cascader=Cascader,ElCascader=_Cascader,checkTagProps=buildProps({checked:{type:Boolean,default:!1}}),checkTagEmits={"update:checked":$=>isBoolean$3($),[CHANGE_EVENT]:$=>isBoolean$3($)},__default__$12=defineComponent({name:"ElCheckTag"}),_sfc_main$1D=defineComponent({...__default__$12,props:checkTagProps,emits:checkTagEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("check-tag"),le=()=>{const pe=!ae.checked;oe(CHANGE_EVENT,pe),oe("update:checked",pe)};return(pe,_e)=>(openBlock(),createElementBlock("span",{class:normalizeClass([unref(ie).b(),unref(ie).is("checked",pe.checked)]),onClick:le},[renderSlot(pe.$slots,"default")],2))}});var CheckTag=_export_sfc$1(_sfc_main$1D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const ElCheckTag=withInstall(CheckTag),rowContextKey=Symbol("rowContextKey"),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,default:"top"}}),__default__$11=defineComponent({name:"ElRow"}),_sfc_main$1C=defineComponent({...__default__$11,props:rowProps,setup($){const oe=$,ae=useNamespace("row"),ie=computed(()=>oe.gutter);provide(rowContextKey,{gutter:ie});const le=computed(()=>{const _e={};return oe.gutter&&(_e.marginRight=_e.marginLeft=`-${oe.gutter/2}px`),_e}),pe=computed(()=>[ae.b(),ae.is(`justify-${oe.justify}`,oe.justify!=="start"),ae.is(`align-${oe.align}`,oe.align!=="top")]);return(_e,Ce)=>(openBlock(),createBlock(resolveDynamicComponent(_e.tag),{class:normalizeClass(unref(pe)),style:normalizeStyle$1(unref(le))},{default:withCtx(()=>[renderSlot(_e.$slots,"default")]),_:3},8,["class","style"]))}});var Row=_export_sfc$1(_sfc_main$1C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const ElRow=withInstall(Row),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({})}}),__default__$10=defineComponent({name:"ElCol"}),_sfc_main$1B=defineComponent({...__default__$10,props:colProps,setup($){const oe=$,{gutter:ae}=inject(rowContextKey,{gutter:computed(()=>0)}),ie=useNamespace("col"),le=computed(()=>{const _e={};return ae.value&&(_e.paddingLeft=_e.paddingRight=`${ae.value/2}px`),_e}),pe=computed(()=>{const _e=[];return["span","offset","pull","push"].forEach(xe=>{const Ie=oe[xe];isNumber$5(Ie)&&(xe==="span"?_e.push(ie.b(`${oe[xe]}`)):Ie>0&&_e.push(ie.b(`${xe}-${oe[xe]}`)))}),["xs","sm","md","lg","xl"].forEach(xe=>{isNumber$5(oe[xe])?_e.push(ie.b(`${xe}-${oe[xe]}`)):isObject$8(oe[xe])&&Object.entries(oe[xe]).forEach(([Ie,Ne])=>{_e.push(Ie!=="span"?ie.b(`${xe}-${Ie}-${Ne}`):ie.b(`${xe}-${Ne}`))})}),ae.value&&_e.push(ie.is("guttered")),[ie.b(),_e]});return(_e,Ce)=>(openBlock(),createBlock(resolveDynamicComponent(_e.tag),{class:normalizeClass(unref(pe)),style:normalizeStyle$1(unref(le))},{default:withCtx(()=>[renderSlot(_e.$slots,"default")]),_:3},8,["class","style"]))}});var Col=_export_sfc$1(_sfc_main$1B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const ElCol=withInstall(Col),emitChangeFn=$=>typeof isNumber$5($),collapseProps=buildProps({accordion:Boolean,modelValue:{type:definePropType([Array,String,Number]),default:()=>mutable([])}}),collapseEmits={[UPDATE_MODEL_EVENT]:emitChangeFn,[CHANGE_EVENT]:emitChangeFn},collapseContextKey=Symbol("collapseContextKey"),useCollapse=($,oe)=>{const ae=ref(castArray$1($.modelValue)),ie=pe=>{ae.value=pe;const _e=$.accordion?ae.value[0]:ae.value;oe(UPDATE_MODEL_EVENT,_e),oe(CHANGE_EVENT,_e)},le=pe=>{if($.accordion)ie([ae.value[0]===pe?"":pe]);else{const _e=[...ae.value],Ce=_e.indexOf(pe);Ce>-1?_e.splice(Ce,1):_e.push(pe),ie(_e)}};return watch(()=>$.modelValue,()=>ae.value=castArray$1($.modelValue),{deep:!0}),provide(collapseContextKey,{activeNames:ae,handleItemClick:le}),{activeNames:ae,setActiveNames:ie}},useCollapseDOM=()=>{const $=useNamespace("collapse");return{rootKls:computed(()=>$.b())}},__default__$$=defineComponent({name:"ElCollapse"}),_sfc_main$1A=defineComponent({...__default__$$,props:collapseProps,emits:collapseEmits,setup($,{expose:oe,emit:ae}){const ie=$,{activeNames:le,setActiveNames:pe}=useCollapse(ie,ae),{rootKls:_e}=useCollapseDOM();return oe({activeNames:le,setActiveNames:pe}),(Ce,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(_e)),role:"tablist","aria-multiselectable":"true"},[renderSlot(Ce.$slots,"default")],2))}});var Collapse=_export_sfc$1(_sfc_main$1A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const __default__$_=defineComponent({name:"ElCollapseTransition"}),_sfc_main$1z=defineComponent({...__default__$_,setup($){const oe=useNamespace("collapse-transition"),ae={beforeEnter(ie){ie.dataset||(ie.dataset={}),ie.dataset.oldPaddingTop=ie.style.paddingTop,ie.dataset.oldPaddingBottom=ie.style.paddingBottom,ie.style.maxHeight=0,ie.style.paddingTop=0,ie.style.paddingBottom=0},enter(ie){ie.dataset.oldOverflow=ie.style.overflow,ie.scrollHeight!==0?(ie.style.maxHeight=`${ie.scrollHeight}px`,ie.style.paddingTop=ie.dataset.oldPaddingTop,ie.style.paddingBottom=ie.dataset.oldPaddingBottom):(ie.style.maxHeight=0,ie.style.paddingTop=ie.dataset.oldPaddingTop,ie.style.paddingBottom=ie.dataset.oldPaddingBottom),ie.style.overflow="hidden"},afterEnter(ie){ie.style.maxHeight="",ie.style.overflow=ie.dataset.oldOverflow},beforeLeave(ie){ie.dataset||(ie.dataset={}),ie.dataset.oldPaddingTop=ie.style.paddingTop,ie.dataset.oldPaddingBottom=ie.style.paddingBottom,ie.dataset.oldOverflow=ie.style.overflow,ie.style.maxHeight=`${ie.scrollHeight}px`,ie.style.overflow="hidden"},leave(ie){ie.scrollHeight!==0&&(ie.style.maxHeight=0,ie.style.paddingTop=0,ie.style.paddingBottom=0)},afterLeave(ie){ie.style.maxHeight="",ie.style.overflow=ie.dataset.oldOverflow,ie.style.paddingTop=ie.dataset.oldPaddingTop,ie.style.paddingBottom=ie.dataset.oldPaddingBottom}};return(ie,le)=>(openBlock(),createBlock(Transition,mergeProps({name:unref(oe).b()},toHandlers(ae)),{default:withCtx(()=>[renderSlot(ie.$slots,"default")]),_:3},16,["name"]))}});var CollapseTransition=_export_sfc$1(_sfc_main$1z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);CollapseTransition.install=$=>{$.component(CollapseTransition.name,CollapseTransition)};const _CollapseTransition=CollapseTransition,ElCollapseTransition=_CollapseTransition,collapseItemProps=buildProps({title:{type:String,default:""},name:{type:definePropType([String,Number]),default:()=>generateId()},disabled:Boolean}),useCollapseItem=$=>{const oe=inject(collapseContextKey),ae=ref(!1),ie=ref(!1),le=ref(generateId()),pe=computed(()=>oe==null?void 0:oe.activeNames.value.includes($.name));return{focusing:ae,id:le,isActive:pe,handleFocus:()=>{setTimeout(()=>{ie.value?ie.value=!1:ae.value=!0},50)},handleHeaderClick:()=>{$.disabled||(oe==null||oe.handleItemClick($.name),ae.value=!1,ie.value=!0)},handleEnterClick:()=>{oe==null||oe.handleItemClick($.name)}}},useCollapseItemDOM=($,{focusing:oe,isActive:ae,id:ie})=>{const le=useNamespace("collapse"),pe=computed(()=>[le.b("item"),le.is("active",unref(ae)),le.is("disabled",$.disabled)]),_e=computed(()=>[le.be("item","header"),le.is("active",unref(ae)),{focusing:unref(oe)&&!$.disabled}]),Ce=computed(()=>[le.be("item","arrow"),le.is("active",unref(ae))]),$e=computed(()=>le.be("item","wrap")),xe=computed(()=>le.be("item","content")),Ie=computed(()=>le.b(`content-${unref(ie)}`)),Ne=computed(()=>le.b(`head-${unref(ie)}`));return{arrowKls:Ce,headKls:_e,rootKls:pe,itemWrapperKls:$e,itemContentKls:xe,scopedContentId:Ie,scopedHeadId:Ne}},_hoisted_1$O=["aria-expanded","aria-controls","aria-describedby"],_hoisted_2$w=["id","tabindex"],_hoisted_3$i=["id","aria-hidden","aria-labelledby"],__default__$Z=defineComponent({name:"ElCollapseItem"}),_sfc_main$1y=defineComponent({...__default__$Z,props:collapseItemProps,setup($,{expose:oe}){const ae=$,{focusing:ie,id:le,isActive:pe,handleFocus:_e,handleHeaderClick:Ce,handleEnterClick:$e}=useCollapseItem(ae),{arrowKls:xe,headKls:Ie,rootKls:Ne,itemWrapperKls:Fe,itemContentKls:ze,scopedContentId:At,scopedHeadId:Lt}=useCollapseItemDOM(ae,{focusing:ie,isActive:pe,id:le});return oe({isActive:pe}),(hn,vn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Ne))},[createBaseVNode("div",{role:"tab","aria-expanded":unref(pe),"aria-controls":unref(At),"aria-describedby":unref(At)},[createBaseVNode("div",{id:unref(Lt),class:normalizeClass(unref(Ie)),role:"button",tabindex:hn.disabled?-1:0,onClick:vn[0]||(vn[0]=(..._n)=>unref(Ce)&&unref(Ce)(..._n)),onKeypress:vn[1]||(vn[1]=withKeys(withModifiers((..._n)=>unref($e)&&unref($e)(..._n),["stop","prevent"]),["space","enter"])),onFocus:vn[2]||(vn[2]=(..._n)=>unref(_e)&&unref(_e)(..._n)),onBlur:vn[3]||(vn[3]=_n=>ie.value=!1)},[renderSlot(hn.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(hn.title),1)]),createVNode(unref(ElIcon),{class:normalizeClass(unref(xe))},{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1},8,["class"])],42,_hoisted_2$w)],8,_hoisted_1$O),createVNode(unref(_CollapseTransition),null,{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:unref(At),class:normalizeClass(unref(Fe)),role:"tabpanel","aria-hidden":!unref(pe),"aria-labelledby":unref(Lt)},[createBaseVNode("div",{class:normalizeClass(unref(ze))},[renderSlot(hn.$slots,"default")],2)],10,_hoisted_3$i),[[vShow,unref(pe)]])]),_:3})],2))}});var CollapseItem=_export_sfc$1(_sfc_main$1y,[["__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:{type:Boolean,default:!1}});let isDragging=!1;function draggable($,oe){if(!isClient$2)return;const ae=function(pe){var _e;(_e=oe.drag)==null||_e.call(oe,pe)},ie=function(pe){var _e;document.removeEventListener("mousemove",ae),document.removeEventListener("mouseup",ie),document.removeEventListener("touchmove",ae),document.removeEventListener("touchend",ie),document.onselectstart=null,document.ondragstart=null,isDragging=!1,(_e=oe.end)==null||_e.call(oe,pe)},le=function(pe){var _e;isDragging||(pe.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",ae),document.addEventListener("mouseup",ie),document.addEventListener("touchmove",ae),document.addEventListener("touchend",ie),isDragging=!0,(_e=oe.start)==null||_e.call(oe,pe))};$.addEventListener("mousedown",le),$.addEventListener("touchstart",le)}const useAlphaSlider=$=>{const oe=getCurrentInstance(),ae=shallowRef(),ie=shallowRef();function le(_e){_e.target!==ae.value&&pe(_e)}function pe(_e){if(!ie.value||!ae.value)return;const $e=oe.vnode.el.getBoundingClientRect(),{clientX:xe,clientY:Ie}=getClientXY(_e);if($.vertical){let Ne=Ie-$e.top;Ne=Math.max(ae.value.offsetHeight/2,Ne),Ne=Math.min(Ne,$e.height-ae.value.offsetHeight/2),$.color.set("alpha",Math.round((Ne-ae.value.offsetHeight/2)/($e.height-ae.value.offsetHeight)*100))}else{let Ne=xe-$e.left;Ne=Math.max(ae.value.offsetWidth/2,Ne),Ne=Math.min(Ne,$e.width-ae.value.offsetWidth/2),$.color.set("alpha",Math.round((Ne-ae.value.offsetWidth/2)/($e.width-ae.value.offsetWidth)*100))}}return{thumb:ae,bar:ie,handleDrag:pe,handleClick:le}},useAlphaSliderDOM=($,{bar:oe,thumb:ae,handleDrag:ie})=>{const le=getCurrentInstance(),pe=useNamespace("color-alpha-slider"),_e=ref(0),Ce=ref(0),$e=ref();function xe(){if(!ae.value||$.vertical)return 0;const _n=le.vnode.el,bn=$.color.get("alpha");return _n?Math.round(bn*(_n.offsetWidth-ae.value.offsetWidth/2)/100):0}function Ie(){if(!ae.value)return 0;const _n=le.vnode.el;if(!$.vertical)return 0;const bn=$.color.get("alpha");return _n?Math.round(bn*(_n.offsetHeight-ae.value.offsetHeight/2)/100):0}function Ne(){if($.color&&$.color.value){const{r:_n,g:bn,b:Cn}=$.color.toRgb();return`linear-gradient(to right, rgba(${_n}, ${bn}, ${Cn}, 0) 0%, rgba(${_n}, ${bn}, ${Cn}, 1) 100%)`}return""}function Fe(){_e.value=xe(),Ce.value=Ie(),$e.value=Ne()}onMounted(()=>{if(!oe.value||!ae.value)return;const _n={drag:bn=>{ie(bn)},end:bn=>{ie(bn)}};draggable(oe.value,_n),draggable(ae.value,_n),Fe()}),watch(()=>$.color.get("alpha"),()=>Fe()),watch(()=>$.color.value,()=>Fe());const ze=computed(()=>[pe.b(),pe.is("vertical",$.vertical)]),At=computed(()=>pe.e("bar")),Lt=computed(()=>pe.e("thumb")),hn=computed(()=>({background:$e.value})),vn=computed(()=>({left:addUnit(_e.value),top:addUnit(Ce.value)}));return{rootKls:ze,barKls:At,barStyle:hn,thumbKls:Lt,thumbStyle:vn,update:Fe}},COMPONENT_NAME$d="ElColorAlphaSlider",__default__$Y=defineComponent({name:COMPONENT_NAME$d}),_sfc_main$1x=defineComponent({...__default__$Y,props:alphaSliderProps,setup($,{expose:oe}){const ae=$,{bar:ie,thumb:le,handleDrag:pe,handleClick:_e}=useAlphaSlider(ae),{rootKls:Ce,barKls:$e,barStyle:xe,thumbKls:Ie,thumbStyle:Ne,update:Fe}=useAlphaSliderDOM(ae,{bar:ie,thumb:le,handleDrag:pe});return oe({update:Fe,bar:ie,thumb:le}),(ze,At)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Ce))},[createBaseVNode("div",{ref_key:"bar",ref:ie,class:normalizeClass(unref($e)),style:normalizeStyle$1(unref(xe)),onClick:At[0]||(At[0]=(...Lt)=>unref(_e)&&unref(_e)(...Lt))},null,6),createBaseVNode("div",{ref_key:"thumb",ref:le,class:normalizeClass(unref(Ie)),style:normalizeStyle$1(unref(Ne))},null,6)],2))}});var AlphaSlider=_export_sfc$1(_sfc_main$1x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const _sfc_main$1w=defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup($){const oe=useNamespace("color-hue-slider"),ae=getCurrentInstance(),ie=ref(),le=ref(),pe=ref(0),_e=ref(0),Ce=computed(()=>$.color.get("hue"));watch(()=>Ce.value,()=>{Fe()});function $e(ze){ze.target!==ie.value&&xe(ze)}function xe(ze){if(!le.value||!ie.value)return;const Lt=ae.vnode.el.getBoundingClientRect(),{clientX:hn,clientY:vn}=getClientXY(ze);let _n;if($.vertical){let bn=vn-Lt.top;bn=Math.min(bn,Lt.height-ie.value.offsetHeight/2),bn=Math.max(ie.value.offsetHeight/2,bn),_n=Math.round((bn-ie.value.offsetHeight/2)/(Lt.height-ie.value.offsetHeight)*360)}else{let bn=hn-Lt.left;bn=Math.min(bn,Lt.width-ie.value.offsetWidth/2),bn=Math.max(ie.value.offsetWidth/2,bn),_n=Math.round((bn-ie.value.offsetWidth/2)/(Lt.width-ie.value.offsetWidth)*360)}$.color.set("hue",_n)}function Ie(){if(!ie.value)return 0;const ze=ae.vnode.el;if($.vertical)return 0;const At=$.color.get("hue");return ze?Math.round(At*(ze.offsetWidth-ie.value.offsetWidth/2)/360):0}function Ne(){if(!ie.value)return 0;const ze=ae.vnode.el;if(!$.vertical)return 0;const At=$.color.get("hue");return ze?Math.round(At*(ze.offsetHeight-ie.value.offsetHeight/2)/360):0}function Fe(){pe.value=Ie(),_e.value=Ne()}return onMounted(()=>{if(!le.value||!ie.value)return;const ze={drag:At=>{xe(At)},end:At=>{xe(At)}};draggable(le.value,ze),draggable(ie.value,ze),Fe()}),{bar:le,thumb:ie,thumbLeft:pe,thumbTop:_e,hueValue:Ce,handleClick:$e,update:Fe,ns:oe}}});function _sfc_render$s($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),$.ns.is("vertical",$.vertical)])},[createBaseVNode("div",{ref:"bar",class:normalizeClass($.ns.e("bar")),onClick:oe[0]||(oe[0]=(..._e)=>$.handleClick&&$.handleClick(..._e))},null,2),createBaseVNode("div",{ref:"thumb",class:normalizeClass($.ns.e("thumb")),style:normalizeStyle$1({left:$.thumbLeft+"px",top:$.thumbTop+"px"})},null,6)],2)}var HueSlider=_export_sfc$1(_sfc_main$1w,[["render",_sfc_render$s],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const colorPickerProps=buildProps({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:useSizeProp,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:definePropType(Array)},validateEvent:{type:Boolean,default:!0}}),colorPickerEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($)||isNil($),[CHANGE_EVENT]:$=>isString$7($)||isNil($),activeChange:$=>isString$7($)||isNil($)},colorPickerContextKey=Symbol("colorPickerContextKey"),hsv2hsl=function($,oe,ae){return[$,oe*ae/(($=(2-oe)*ae)<1?$:2-$)||0,$/2]},isOnePointZero=function($){return typeof $=="string"&&$.includes(".")&&Number.parseFloat($)===1},isPercentage=function($){return typeof $=="string"&&$.includes("%")},bound01=function($,oe){isOnePointZero($)&&($="100%");const ae=isPercentage($);return $=Math.min(oe,Math.max(0,Number.parseFloat(`${$}`))),ae&&($=Number.parseInt(`${$*oe}`,10)/100),Math.abs($-oe)<1e-6?1:$%oe/Number.parseFloat(oe)},INT_HEX_MAP={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},hexOne=$=>{$=Math.min(Math.round($),255);const oe=Math.floor($/16),ae=$%16;return`${INT_HEX_MAP[oe]||oe}${INT_HEX_MAP[ae]||ae}`},toHex$1=function({r:$,g:oe,b:ae}){return Number.isNaN(+$)||Number.isNaN(+oe)||Number.isNaN(+ae)?"":`#${hexOne($)}${hexOne(oe)}${hexOne(ae)}`},HEX_INT_MAP={A:10,B:11,C:12,D:13,E:14,F:15},parseHexChannel=function($){return $.length===2?(HEX_INT_MAP[$[0].toUpperCase()]||+$[0])*16+(HEX_INT_MAP[$[1].toUpperCase()]||+$[1]):HEX_INT_MAP[$[1].toUpperCase()]||+$[1]},hsl2hsv=function($,oe,ae){oe=oe/100,ae=ae/100;let ie=oe;const le=Math.max(ae,.01);ae*=2,oe*=ae<=1?ae:2-ae,ie*=le<=1?le:2-le;const pe=(ae+oe)/2,_e=ae===0?2*ie/(le+ie):2*oe/(ae+oe);return{h:$,s:_e*100,v:pe*100}},rgb2hsv=($,oe,ae)=>{$=bound01($,255),oe=bound01(oe,255),ae=bound01(ae,255);const ie=Math.max($,oe,ae),le=Math.min($,oe,ae);let pe;const _e=ie,Ce=ie-le,$e=ie===0?0:Ce/ie;if(ie===le)pe=0;else{switch(ie){case $:{pe=(oe-ae)/Ce+(oe{this._hue=Math.max(0,Math.min(360,ie)),this._saturation=Math.max(0,Math.min(100,le)),this._value=Math.max(0,Math.min(100,pe)),this.doOnChange()};if(oe.includes("hsl")){const ie=oe.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(le=>le!=="").map((le,pe)=>pe>2?Number.parseFloat(le):Number.parseInt(le,10));if(ie.length===4?this._alpha=Number.parseFloat(ie[3])*100:ie.length===3&&(this._alpha=100),ie.length>=3){const{h:le,s:pe,v:_e}=hsl2hsv(ie[0],ie[1],ie[2]);ae(le,pe,_e)}}else if(oe.includes("hsv")){const ie=oe.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(le=>le!=="").map((le,pe)=>pe>2?Number.parseFloat(le):Number.parseInt(le,10));ie.length===4?this._alpha=Number.parseFloat(ie[3])*100:ie.length===3&&(this._alpha=100),ie.length>=3&&ae(ie[0],ie[1],ie[2])}else if(oe.includes("rgb")){const ie=oe.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(le=>le!=="").map((le,pe)=>pe>2?Number.parseFloat(le):Number.parseInt(le,10));if(ie.length===4?this._alpha=Number.parseFloat(ie[3])*100:ie.length===3&&(this._alpha=100),ie.length>=3){const{h:le,s:pe,v:_e}=rgb2hsv(ie[0],ie[1],ie[2]);ae(le,pe,_e)}}else if(oe.includes("#")){const ie=oe.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(ie))return;let le,pe,_e;ie.length===3?(le=parseHexChannel(ie[0]+ie[0]),pe=parseHexChannel(ie[1]+ie[1]),_e=parseHexChannel(ie[2]+ie[2])):(ie.length===6||ie.length===8)&&(le=parseHexChannel(ie.slice(0,2)),pe=parseHexChannel(ie.slice(2,4)),_e=parseHexChannel(ie.slice(4,6))),ie.length===8?this._alpha=parseHexChannel(ie.slice(6))/255*100:(ie.length===3||ie.length===6)&&(this._alpha=100);const{h:Ce,s:$e,v:xe}=rgb2hsv(le,pe,_e);ae(Ce,$e,xe)}}compare(oe){return Math.abs(oe._hue-this._hue)<2&&Math.abs(oe._saturation-this._saturation)<1&&Math.abs(oe._value-this._value)<1&&Math.abs(oe._alpha-this._alpha)<1}doOnChange(){const{_hue:oe,_saturation:ae,_value:ie,_alpha:le,format:pe}=this;if(this.enableAlpha)switch(pe){case"hsl":{const _e=hsv2hsl(oe,ae/100,ie/100);this.value=`hsla(${oe}, ${Math.round(_e[1]*100)}%, ${Math.round(_e[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${oe}, ${Math.round(ae)}%, ${Math.round(ie)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${toHex$1(hsv2rgb(oe,ae,ie))}${hexOne(le*255/100)}`;break}default:{const{r:_e,g:Ce,b:$e}=hsv2rgb(oe,ae,ie);this.value=`rgba(${_e}, ${Ce}, ${$e}, ${this.get("alpha")/100})`}}else switch(pe){case"hsl":{const _e=hsv2hsl(oe,ae/100,ie/100);this.value=`hsl(${oe}, ${Math.round(_e[1]*100)}%, ${Math.round(_e[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${oe}, ${Math.round(ae)}%, ${Math.round(ie)}%)`;break}case"rgb":{const{r:_e,g:Ce,b:$e}=hsv2rgb(oe,ae,ie);this.value=`rgb(${_e}, ${Ce}, ${$e})`;break}default:this.value=toHex$1(hsv2rgb(oe,ae,ie))}}}const _sfc_main$1v=defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup($){const oe=useNamespace("color-predefine"),{currentColor:ae}=inject(colorPickerContextKey),ie=ref(pe($.colors,$.color));watch(()=>ae.value,_e=>{const Ce=new Color;Ce.fromString(_e),ie.value.forEach($e=>{$e.selected=Ce.compare($e)})}),watchEffect(()=>{ie.value=pe($.colors,$.color)});function le(_e){$.color.fromString($.colors[_e])}function pe(_e,Ce){return _e.map($e=>{const xe=new Color;return xe.enableAlpha=!0,xe.format="rgba",xe.fromString($e),xe.selected=xe.value===Ce.value,xe})}return{rgbaColors:ie,handleSelect:le,ns:oe}}}),_hoisted_1$N=["onClick"];function _sfc_render$r($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("div",{class:normalizeClass($.ns.b())},[createBaseVNode("div",{class:normalizeClass($.ns.e("colors"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.rgbaColors,(_e,Ce)=>(openBlock(),createElementBlock("div",{key:$.colors[Ce],class:normalizeClass([$.ns.e("color-selector"),$.ns.is("alpha",_e._alpha<100),{selected:_e.selected}]),onClick:$e=>$.handleSelect(Ce)},[createBaseVNode("div",{style:normalizeStyle$1({backgroundColor:_e.value})},null,4)],10,_hoisted_1$N))),128))],2)],2)}var Predefine=_export_sfc$1(_sfc_main$1v,[["render",_sfc_render$r],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const _sfc_main$1u=defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup($){const oe=useNamespace("color-svpanel"),ae=getCurrentInstance(),ie=ref(0),le=ref(0),pe=ref("hsl(0, 100%, 50%)"),_e=computed(()=>{const xe=$.color.get("hue"),Ie=$.color.get("value");return{hue:xe,value:Ie}});function Ce(){const xe=$.color.get("saturation"),Ie=$.color.get("value"),Ne=ae.vnode.el,{clientWidth:Fe,clientHeight:ze}=Ne;le.value=xe*Fe/100,ie.value=(100-Ie)*ze/100,pe.value=`hsl(${$.color.get("hue")}, 100%, 50%)`}function $e(xe){const Ne=ae.vnode.el.getBoundingClientRect(),{clientX:Fe,clientY:ze}=getClientXY(xe);let At=Fe-Ne.left,Lt=ze-Ne.top;At=Math.max(0,At),At=Math.min(At,Ne.width),Lt=Math.max(0,Lt),Lt=Math.min(Lt,Ne.height),le.value=At,ie.value=Lt,$.color.set({saturation:At/Ne.width*100,value:100-Lt/Ne.height*100})}return watch(()=>_e.value,()=>{Ce()}),onMounted(()=>{draggable(ae.vnode.el,{drag:xe=>{$e(xe)},end:xe=>{$e(xe)}}),Ce()}),{cursorTop:ie,cursorLeft:le,background:pe,colorValue:_e,handleDrag:$e,update:Ce,ns:oe}}}),_hoisted_1$M=createBaseVNode("div",null,null,-1),_hoisted_2$v=[_hoisted_1$M];function _sfc_render$q($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("div",{class:normalizeClass($.ns.b()),style:normalizeStyle$1({backgroundColor:$.background})},[createBaseVNode("div",{class:normalizeClass($.ns.e("white"))},null,2),createBaseVNode("div",{class:normalizeClass($.ns.e("black"))},null,2),createBaseVNode("div",{class:normalizeClass($.ns.e("cursor")),style:normalizeStyle$1({top:$.cursorTop+"px",left:$.cursorLeft+"px"})},_hoisted_2$v,6)],6)}var SvPanel=_export_sfc$1(_sfc_main$1u,[["render",_sfc_render$q],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const _hoisted_1$L=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],__default__$X=defineComponent({name:"ElColorPicker"}),_sfc_main$1t=defineComponent({...__default__$X,props:colorPickerProps,emits:colorPickerEmits,setup($,{expose:oe,emit:ae}){const ie=$,{t:le}=useLocale(),pe=useNamespace("color"),{formItem:_e}=useFormItem(),Ce=useFormSize(),$e=useFormDisabled(),{inputId:xe,isLabeledByFormItem:Ie}=useFormItemInputId(ie,{formItemContext:_e}),Ne=ref(),Fe=ref(),ze=ref(),At=ref();let Lt=!0;const hn=reactive(new Color({enableAlpha:ie.showAlpha,format:ie.colorFormat||"",value:ie.modelValue})),vn=ref(!1),_n=ref(!1),bn=ref(""),Cn=computed(()=>!ie.modelValue&&!_n.value?"transparent":xn(hn,ie.showAlpha)),En=computed(()=>!ie.modelValue&&!_n.value?"":hn.value),$n=computed(()=>Ie.value?void 0:ie.label||le("el.colorpicker.defaultLabel")),wn=computed(()=>Ie.value?_e==null?void 0:_e.labelId:void 0),Tn=computed(()=>[pe.b("picker"),pe.is("disabled",$e.value),pe.bm("picker",Ce.value)]);function xn(Vn,jn){if(!(Vn instanceof Color))throw new TypeError("color should be instance of _color Class");const{r:Zn,g:Gn,b:Xn}=Vn.toRgb();return jn?`rgba(${Zn}, ${Gn}, ${Xn}, ${Vn.get("alpha")/100})`:`rgb(${Zn}, ${Gn}, ${Xn})`}function kn(Vn){vn.value=Vn}const An=debounce(kn,100);function On(){$e.value||kn(!0)}function Nn(){An(!1),Rn()}function Rn(){nextTick(()=>{ie.modelValue?hn.fromString(ie.modelValue):(hn.value="",nextTick(()=>{_n.value=!1}))})}function zn(){$e.value||An(!vn.value)}function Bn(){hn.fromString(bn.value)}function Mn(){const Vn=hn.value;ae(UPDATE_MODEL_EVENT,Vn),ae("change",Vn),ie.validateEvent&&(_e==null||_e.validate("change").catch(jn=>void 0)),An(!1),nextTick(()=>{const jn=new Color({enableAlpha:ie.showAlpha,format:ie.colorFormat||"",value:ie.modelValue});hn.compare(jn)||Rn()})}function Fn(){An(!1),ae(UPDATE_MODEL_EVENT,null),ae("change",null),ie.modelValue!==null&&ie.validateEvent&&(_e==null||_e.validate("change").catch(Vn=>void 0)),Rn()}return onMounted(()=>{ie.modelValue&&(bn.value=En.value)}),watch(()=>ie.modelValue,Vn=>{Vn?Vn&&Vn!==hn.value&&(Lt=!1,hn.fromString(Vn)):_n.value=!1}),watch(()=>En.value,Vn=>{bn.value=Vn,Lt&&ae("activeChange",Vn),Lt=!0}),watch(()=>hn.value,()=>{!ie.modelValue&&!_n.value&&(_n.value=!0)}),watch(()=>vn.value,()=>{nextTick(()=>{var Vn,jn,Zn;(Vn=Ne.value)==null||Vn.update(),(jn=Fe.value)==null||jn.update(),(Zn=ze.value)==null||Zn.update()})}),provide(colorPickerContextKey,{currentColor:En}),oe({color:hn,show:On,hide:Nn}),(Vn,jn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popper",ref:At,visible:vn.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[unref(pe).be("picker","panel"),unref(pe).b("dropdown"),Vn.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${unref(pe).namespace.value}-zoom-in-top`,persistent:""},{content:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",null,[createBaseVNode("div",{class:normalizeClass(unref(pe).be("dropdown","main-wrapper"))},[createVNode(HueSlider,{ref_key:"hue",ref:Ne,class:"hue-slider",color:unref(hn),vertical:""},null,8,["color"]),createVNode(SvPanel,{ref:"svPanel",color:unref(hn)},null,8,["color"])],2),Vn.showAlpha?(openBlock(),createBlock(AlphaSlider,{key:0,ref_key:"alpha",ref:ze,color:unref(hn)},null,8,["color"])):createCommentVNode("v-if",!0),Vn.predefine?(openBlock(),createBlock(Predefine,{key:1,ref:"predefine",color:unref(hn),colors:Vn.predefine},null,8,["color","colors"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(pe).be("dropdown","btns"))},[createBaseVNode("span",{class:normalizeClass(unref(pe).be("dropdown","value"))},[createVNode(unref(ElInput),{modelValue:bn.value,"onUpdate:modelValue":jn[0]||(jn[0]=Zn=>bn.value=Zn),"validate-event":!1,size:"small",onKeyup:withKeys(Bn,["enter"]),onBlur:Bn},null,8,["modelValue","onKeyup"])],2),createVNode(unref(ElButton),{class:normalizeClass(unref(pe).be("dropdown","link-btn")),text:"",size:"small",onClick:Fn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(le)("el.colorpicker.clear")),1)]),_:1},8,["class"]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(pe).be("dropdown","btn")),onClick:Mn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(le)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[unref(ClickOutside),Nn]])]),default:withCtx(()=>[createBaseVNode("div",{id:unref(xe),class:normalizeClass(unref(Tn)),role:"button","aria-label":unref($n),"aria-labelledby":unref(wn),"aria-description":unref(le)("el.colorpicker.description",{color:Vn.modelValue||""}),tabindex:Vn.tabindex,onKeydown:withKeys(zn,["enter"])},[unref($e)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(pe).be("picker","mask"))},null,2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(pe).be("picker","trigger")),onClick:zn},[createBaseVNode("span",{class:normalizeClass([unref(pe).be("picker","color"),unref(pe).is("alpha",Vn.showAlpha)])},[createBaseVNode("span",{class:normalizeClass(unref(pe).be("picker","color-inner")),style:normalizeStyle$1({backgroundColor:unref(Cn)})},[withDirectives(createVNode(unref(ElIcon),{class:normalizeClass([unref(pe).be("picker","icon"),unref(pe).is("icon-arrow-down")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"]),[[vShow,Vn.modelValue||_n.value]]),!Vn.modelValue&&!_n.value?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(pe).be("picker","empty"),unref(pe).is("icon-close")])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)],2)],2)],42,_hoisted_1$L)]),_:1},8,["visible","popper-class","transition"]))}});var ColorPicker=_export_sfc$1(_sfc_main$1t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const ElColorPicker=withInstall(ColorPicker),__default__$W=defineComponent({name:"ElContainer"}),_sfc_main$1s=defineComponent({...__default__$W,props:{direction:{type:String}},setup($){const oe=$,ae=useSlots(),ie=useNamespace("container"),le=computed(()=>oe.direction==="vertical"?!0:oe.direction==="horizontal"?!1:ae&&ae.default?ae.default().some(_e=>{const Ce=_e.type.name;return Ce==="ElHeader"||Ce==="ElFooter"}):!1);return(pe,_e)=>(openBlock(),createElementBlock("section",{class:normalizeClass([unref(ie).b(),unref(ie).is("vertical",unref(le))])},[renderSlot(pe.$slots,"default")],2))}});var Container=_export_sfc$1(_sfc_main$1s,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const __default__$V=defineComponent({name:"ElAside"}),_sfc_main$1r=defineComponent({...__default__$V,props:{width:{type:String,default:null}},setup($){const oe=$,ae=useNamespace("aside"),ie=computed(()=>oe.width?ae.cssVarBlock({width:oe.width}):{});return(le,pe)=>(openBlock(),createElementBlock("aside",{class:normalizeClass(unref(ae).b()),style:normalizeStyle$1(unref(ie))},[renderSlot(le.$slots,"default")],6))}});var Aside=_export_sfc$1(_sfc_main$1r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const __default__$U=defineComponent({name:"ElFooter"}),_sfc_main$1q=defineComponent({...__default__$U,props:{height:{type:String,default:null}},setup($){const oe=$,ae=useNamespace("footer"),ie=computed(()=>oe.height?ae.cssVarBlock({height:oe.height}):{});return(le,pe)=>(openBlock(),createElementBlock("footer",{class:normalizeClass(unref(ae).b()),style:normalizeStyle$1(unref(ie))},[renderSlot(le.$slots,"default")],6))}});var Footer$2=_export_sfc$1(_sfc_main$1q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const __default__$T=defineComponent({name:"ElHeader"}),_sfc_main$1p=defineComponent({...__default__$T,props:{height:{type:String,default:null}},setup($){const oe=$,ae=useNamespace("header"),ie=computed(()=>oe.height?ae.cssVarBlock({height:oe.height}):{});return(le,pe)=>(openBlock(),createElementBlock("header",{class:normalizeClass(unref(ae).b()),style:normalizeStyle$1(unref(ie))},[renderSlot(le.$slots,"default")],6))}});var Header=_export_sfc$1(_sfc_main$1p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const __default__$S=defineComponent({name:"ElMain"}),_sfc_main$1o=defineComponent({...__default__$S,setup($){const oe=useNamespace("main");return(ae,ie)=>(openBlock(),createElementBlock("main",{class:normalizeClass(unref(oe).b())},[renderSlot(ae.$slots,"default")],2))}});var Main=_export_sfc$1(_sfc_main$1o,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const ElContainer=withInstall(Container,{Aside,Footer:Footer$2,Header,Main}),ElAside=withNoopInstall(Aside),ElFooter=withNoopInstall(Footer$2),ElHeader=withNoopInstall(Header),ElMain=withNoopInstall(Main);var advancedFormat$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){return function(ae,ie){var le=ie.prototype,pe=le.format;le.format=function(_e){var Ce=this,$e=this.$locale();if(!this.isValid())return pe.bind(this)(_e);var xe=this.$utils(),Ie=(_e||"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(Ne){switch(Ne){case"Q":return Math.ceil((Ce.$M+1)/3);case"Do":return $e.ordinal(Ce.$D);case"gggg":return Ce.weekYear();case"GGGG":return Ce.isoWeekYear();case"wo":return $e.ordinal(Ce.week(),"W");case"w":case"ww":return xe.s(Ce.week(),Ne==="w"?1:2,"0");case"W":case"WW":return xe.s(Ce.isoWeek(),Ne==="W"?1:2,"0");case"k":case"kk":return xe.s(String(Ce.$H===0?24:Ce.$H),Ne==="k"?1:2,"0");case"X":return Math.floor(Ce.$d.getTime()/1e3);case"x":return Ce.$d.getTime();case"z":return"["+Ce.offsetName()+"]";case"zzz":return"["+Ce.offsetName("long")+"]";default:return Ne}});return pe.bind(this)(Ie)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var weekOfYear$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){var ae="week",ie="year";return function(le,pe,_e){var Ce=pe.prototype;Ce.week=function($e){if($e===void 0&&($e=null),$e!==null)return this.add(7*($e-this.week()),"day");var xe=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var Ie=_e(this).startOf(ie).add(1,ie).date(xe),Ne=_e(this).endOf(ae);if(Ie.isBefore(Ne))return 1}var Fe=_e(this).startOf(ie).date(xe).startOf(ae).subtract(1,"millisecond"),ze=this.diff(Fe,ae,!0);return ze<0?_e(this).startOf("week").week():Math.ceil(ze)},Ce.weeks=function($e){return $e===void 0&&($e=null),this.week($e)}}})})(weekOfYear$1);var weekOfYearExports=weekOfYear$1.exports;const weekOfYear=getDefaultExportFromCjs(weekOfYearExports);var weekYear$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){return function(ae,ie){ie.prototype.weekYear=function(){var le=this.month(),pe=this.week(),_e=this.year();return pe===1&&le===11?_e+1:le===0&&pe>=52?_e-1:_e}}})})(weekYear$1);var weekYearExports=weekYear$1.exports;const weekYear=getDefaultExportFromCjs(weekYearExports);var dayOfYear$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){return function(ae,ie,le){ie.prototype.dayOfYear=function(pe){var _e=Math.round((le(this).startOf("day")-le(this).startOf("year"))/864e5)+1;return pe==null?_e:this.add(pe-_e,"day")}}})})(dayOfYear$1);var dayOfYearExports=dayOfYear$1.exports;const dayOfYear=getDefaultExportFromCjs(dayOfYearExports);var isSameOrAfter$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){return function(ae,ie){ie.prototype.isSameOrAfter=function(le,pe){return this.isSame(le,pe)||this.isAfter(le,pe)}}})})(isSameOrAfter$1);var isSameOrAfterExports=isSameOrAfter$1.exports;const isSameOrAfter=getDefaultExportFromCjs(isSameOrAfterExports);var isSameOrBefore$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){return function(ae,ie){ie.prototype.isSameOrBefore=function(le,pe){return this.isSame(le,pe)||this.isBefore(le,pe)}}})})(isSameOrBefore$1);var isSameOrBeforeExports=isSameOrBefore$1.exports;const isSameOrBefore=getDefaultExportFromCjs(isSameOrBeforeExports),ROOT_PICKER_INJECTION_KEY=Symbol(),datePickerProps=buildProps({...timePickerDefaultProps,type:{type:definePropType(String),default:"date"}}),selectionModes=["date","dates","year","month","week","range"],datePickerSharedProps=buildProps({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})}}),panelSharedProps=buildProps({type:{type:definePropType(String),required:!0,values:datePickTypes}}),panelRangeSharedProps=buildProps({unlinkPanels:Boolean,parsedValue:{type:definePropType(Array)}}),selectionModeWithDefault=$=>({type:String,values:selectionModes,default:$}),panelDatePickProps=buildProps({...panelSharedProps,parsedValue:{type:definePropType([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),basicDateTableProps=buildProps({...datePickerSharedProps,cellClassName:{type:definePropType(Function)},showWeekNumber:Boolean,selectionMode:selectionModeWithDefault("date")}),isValidRange=$=>{if(!isArray$c($))return!1;const[oe,ae]=$;return dayjs.isDayjs(oe)&&dayjs.isDayjs(ae)&&oe.isSameOrBefore(ae)},getDefaultValue=($,{lang:oe,unit:ae,unlinkPanels:ie})=>{let le;if(isArray$c($)){let[pe,_e]=$.map(Ce=>dayjs(Ce).locale(oe));return ie||(_e=pe.add(1,ae)),[pe,_e]}else $?le=dayjs($):le=dayjs();return le=le.locale(oe),[le,le.add(1,ae)]},buildPickerTable=($,oe,{columnIndexOffset:ae,startDate:ie,nextEndDate:le,now:pe,unit:_e,relativeDateGetter:Ce,setCellMetadata:$e,setRowMetadata:xe})=>{for(let Ie=0;Ie<$.row;Ie++){const Ne=oe[Ie];for(let Fe=0;Fe<$.column;Fe++){let ze=Ne[Fe+ae];ze||(ze={row:Ie,column:Fe,type:"normal",inRange:!1,start:!1,end:!1});const At=Ie*$.column+Fe,Lt=Ce(At);ze.dayjs=Lt,ze.date=Lt.toDate(),ze.timestamp=Lt.valueOf(),ze.type="normal",ze.inRange=!!(ie&&Lt.isSameOrAfter(ie,_e)&&le&&Lt.isSameOrBefore(le,_e))||!!(ie&&Lt.isSameOrBefore(ie,_e)&&le&&Lt.isSameOrAfter(le,_e)),ie!=null&&ie.isSameOrAfter(le)?(ze.start=!!le&&Lt.isSame(le,_e),ze.end=ie&&Lt.isSame(ie,_e)):(ze.start=!!ie&&Lt.isSame(ie,_e),ze.end=!!le&&Lt.isSame(le,_e)),Lt.isSame(pe,_e)&&(ze.type="today"),$e==null||$e(ze,{rowIndex:Ie,columnIndex:Fe}),Ne[Fe+ae]=ze}xe==null||xe(Ne)}},basicCellProps=buildProps({cell:{type:definePropType(Object)}});var ElDatePickerCell=defineComponent({name:"ElDatePickerCell",props:basicCellProps,setup($){const oe=useNamespace("date-table-cell"),{slots:ae}=inject(ROOT_PICKER_INJECTION_KEY);return()=>{const{cell:ie}=$;if(ae.default){const le=ae.default(ie).filter(pe=>pe.patchFlag!==-2&&pe.type.toString()!=="Symbol(Comment)");if(le.length)return le}return createVNode("div",{class:oe.b()},[createVNode("span",{class:oe.e("text")},[ie==null?void 0:ie.text])])}}});const _hoisted_1$K=["aria-label","onMousedown"],_hoisted_2$u={key:0,scope:"col"},_hoisted_3$h=["aria-label"],_hoisted_4$c=["aria-current","aria-selected","tabindex"],_sfc_main$1n=defineComponent({__name:"basic-date-table",props:basicDateTableProps,emits:["changerange","pick","select"],setup($,{expose:oe,emit:ae}){const ie=$,le=useNamespace("date-table"),{t:pe,lang:_e}=useLocale(),Ce=ref(),$e=ref(),xe=ref(),Ie=ref(),Ne=ref([[],[],[],[],[],[]]);let Fe=!1;const ze=ie.date.$locale().weekStart||7,At=ie.date.locale("en").localeData().weekdaysShort().map(Gn=>Gn.toLowerCase()),Lt=computed(()=>ze>3?7-ze:-ze),hn=computed(()=>{const Gn=ie.date.startOf("month");return Gn.subtract(Gn.day()||7,"day")}),vn=computed(()=>At.concat(At).slice(ze,ze+7)),_n=computed(()=>flatten(Tn.value).some(Gn=>Gn.isCurrent)),bn=computed(()=>{const Gn=ie.date.startOf("month"),Xn=Gn.day()||7,cr=Gn.daysInMonth(),nr=Gn.subtract(1,"month").daysInMonth();return{startOfMonthDay:Xn,dateCountOfMonth:cr,dateCountOfLastMonth:nr}}),Cn=computed(()=>ie.selectionMode==="dates"?castArray(ie.parsedValue):[]),En=(Gn,{count:Xn,rowIndex:cr,columnIndex:nr})=>{const{startOfMonthDay:er,dateCountOfMonth:rr,dateCountOfLastMonth:qn}=unref(bn),Yn=unref(Lt);if(cr>=0&&cr<=1){const ar=er+Yn<0?7+er+Yn:er+Yn;if(nr+cr*7>=ar)return Gn.text=Xn,!0;Gn.text=qn-(ar-nr%7)+1+cr*7,Gn.type="prev-month"}else return Xn<=rr?Gn.text=Xn:(Gn.text=Xn-rr,Gn.type="next-month"),!0;return!1},$n=(Gn,{columnIndex:Xn,rowIndex:cr},nr)=>{const{disabledDate:er,cellClassName:rr}=ie,qn=unref(Cn),Yn=En(Gn,{count:nr,rowIndex:cr,columnIndex:Xn}),ar=Gn.dayjs.toDate();return Gn.selected=qn.find(pr=>pr.valueOf()===Gn.dayjs.valueOf()),Gn.isSelected=!!Gn.selected,Gn.isCurrent=An(Gn),Gn.disabled=er==null?void 0:er(ar),Gn.customClass=rr==null?void 0:rr(ar),Yn},wn=Gn=>{if(ie.selectionMode==="week"){const[Xn,cr]=ie.showWeekNumber?[1,7]:[0,6],nr=Zn(Gn[Xn+1]);Gn[Xn].inRange=nr,Gn[Xn].start=nr,Gn[cr].inRange=nr,Gn[cr].end=nr}},Tn=computed(()=>{const{minDate:Gn,maxDate:Xn,rangeState:cr,showWeekNumber:nr}=ie,er=Lt.value,rr=Ne.value,qn="day";let Yn=1;if(nr)for(let ar=0;ar<6;ar++)rr[ar][0]||(rr[ar][0]={type:"week",text:hn.value.add(ar*7+1,qn).week()});return buildPickerTable({row:6,column:7},rr,{startDate:Gn,columnIndexOffset:nr?1:0,nextEndDate:cr.endDate||Xn||cr.selecting&&Gn||null,now:dayjs().locale(unref(_e)).startOf(qn),unit:qn,relativeDateGetter:ar=>hn.value.add(ar-er,qn),setCellMetadata:(...ar)=>{$n(...ar,Yn)&&(Yn+=1)},setRowMetadata:wn}),rr});watch(()=>ie.date,async()=>{var Gn,Xn;(Gn=Ce.value)!=null&&Gn.contains(document.activeElement)&&(await nextTick(),(Xn=$e.value)==null||Xn.focus())});const xn=async()=>{var Gn;(Gn=$e.value)==null||Gn.focus()},kn=(Gn="")=>["normal","today"].includes(Gn),An=Gn=>ie.selectionMode==="date"&&kn(Gn.type)&&On(Gn,ie.parsedValue),On=(Gn,Xn)=>Xn?dayjs(Xn).locale(_e.value).isSame(ie.date.date(Number(Gn.text)),"day"):!1,Nn=Gn=>{const Xn=[];return kn(Gn.type)&&!Gn.disabled?(Xn.push("available"),Gn.type==="today"&&Xn.push("today")):Xn.push(Gn.type),An(Gn)&&Xn.push("current"),Gn.inRange&&(kn(Gn.type)||ie.selectionMode==="week")&&(Xn.push("in-range"),Gn.start&&Xn.push("start-date"),Gn.end&&Xn.push("end-date")),Gn.disabled&&Xn.push("disabled"),Gn.selected&&Xn.push("selected"),Gn.customClass&&Xn.push(Gn.customClass),Xn.join(" ")},Rn=(Gn,Xn)=>{const cr=Gn*7+(Xn-(ie.showWeekNumber?1:0))-Lt.value;return hn.value.add(cr,"day")},zn=Gn=>{var Xn;if(!ie.rangeState.selecting)return;let cr=Gn.target;if(cr.tagName==="SPAN"&&(cr=(Xn=cr.parentNode)==null?void 0:Xn.parentNode),cr.tagName==="DIV"&&(cr=cr.parentNode),cr.tagName!=="TD")return;const nr=cr.parentNode.rowIndex-1,er=cr.cellIndex;Tn.value[nr][er].disabled||(nr!==xe.value||er!==Ie.value)&&(xe.value=nr,Ie.value=er,ae("changerange",{selecting:!0,endDate:Rn(nr,er)}))},Bn=Gn=>!_n.value&&(Gn==null?void 0:Gn.text)===1&&Gn.type==="normal"||Gn.isCurrent,Mn=Gn=>{Fe||_n.value||ie.selectionMode!=="date"||jn(Gn,!0)},Fn=Gn=>{Gn.target.closest("td")&&(Fe=!0)},Vn=Gn=>{Gn.target.closest("td")&&(Fe=!1)},jn=(Gn,Xn=!1)=>{const cr=Gn.target.closest("td");if(!cr)return;const nr=cr.parentNode.rowIndex-1,er=cr.cellIndex,rr=Tn.value[nr][er];if(rr.disabled||rr.type==="week")return;const qn=Rn(nr,er);if(ie.selectionMode==="range")!ie.rangeState.selecting||!ie.minDate?(ae("pick",{minDate:qn,maxDate:null}),ae("select",!0)):(qn>=ie.minDate?ae("pick",{minDate:ie.minDate,maxDate:qn}):ae("pick",{minDate:qn,maxDate:ie.minDate}),ae("select",!1));else if(ie.selectionMode==="date")ae("pick",qn,Xn);else if(ie.selectionMode==="week"){const Yn=qn.week(),ar=`${qn.year()}w${Yn}`;ae("pick",{year:qn.year(),week:Yn,value:ar,date:qn.startOf("week")})}else if(ie.selectionMode==="dates"){const Yn=rr.selected?castArray(ie.parsedValue).filter(ar=>(ar==null?void 0:ar.valueOf())!==qn.valueOf()):castArray(ie.parsedValue).concat([qn]);ae("pick",Yn)}},Zn=Gn=>{if(ie.selectionMode!=="week")return!1;let Xn=ie.date.startOf("day");if(Gn.type==="prev-month"&&(Xn=Xn.subtract(1,"month")),Gn.type==="next-month"&&(Xn=Xn.add(1,"month")),Xn=Xn.date(Number.parseInt(Gn.text,10)),ie.parsedValue&&!Array.isArray(ie.parsedValue)){const cr=(ie.parsedValue.day()-ze+7)%7-1;return ie.parsedValue.subtract(cr,"day").isSame(Xn,"day")}return!1};return oe({focus:xn}),(Gn,Xn)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(pe)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:normalizeClass([unref(le).b(),{"is-week-mode":Gn.selectionMode==="week"}]),onClick:jn,onMousemove:zn,onMousedown:withModifiers(Fn,["prevent"]),onMouseup:Vn},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:Ce},[createBaseVNode("tr",null,[Gn.showWeekNumber?(openBlock(),createElementBlock("th",_hoisted_2$u,toDisplayString$1(unref(pe)("el.datepicker.week")),1)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(vn),(cr,nr)=>(openBlock(),createElementBlock("th",{key:nr,scope:"col","aria-label":unref(pe)("el.datepicker.weeksFull."+cr)},toDisplayString$1(unref(pe)("el.datepicker.weeks."+cr)),9,_hoisted_3$h))),128))]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Tn),(cr,nr)=>(openBlock(),createElementBlock("tr",{key:nr,class:normalizeClass([unref(le).e("row"),{current:Zn(cr[1])}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(cr,(er,rr)=>(openBlock(),createElementBlock("td",{key:`${nr}.${rr}`,ref_for:!0,ref:qn=>Bn(er)&&($e.value=qn),class:normalizeClass(Nn(er)),"aria-current":er.isCurrent?"date":void 0,"aria-selected":er.isCurrent,tabindex:Bn(er)?0:-1,onFocus:Mn},[createVNode(unref(ElDatePickerCell),{cell:er},null,8,["cell"])],42,_hoisted_4$c))),128))],2))),128))],512)],42,_hoisted_1$K))}});var DateTable=_export_sfc$1(_sfc_main$1n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const basicMonthTableProps=buildProps({...datePickerSharedProps,selectionMode:selectionModeWithDefault("month")}),_hoisted_1$J=["aria-label"],_hoisted_2$t=["aria-selected","aria-label","tabindex","onKeydown"],_hoisted_3$g={class:"cell"},_sfc_main$1m=defineComponent({__name:"basic-month-table",props:basicMonthTableProps,emits:["changerange","pick","select"],setup($,{expose:oe,emit:ae}){const ie=$,le=(Cn,En,$n)=>{const wn=dayjs().locale($n).startOf("month").month(En).year(Cn),Tn=wn.daysInMonth();return rangeArr(Tn).map(xn=>wn.add(xn,"day").toDate())},pe=useNamespace("month-table"),{t:_e,lang:Ce}=useLocale(),$e=ref(),xe=ref(),Ie=ref(ie.date.locale("en").localeData().monthsShort().map(Cn=>Cn.toLowerCase())),Ne=ref([[],[],[]]),Fe=ref(),ze=ref(),At=computed(()=>{var Cn,En;const $n=Ne.value,wn=dayjs().locale(Ce.value).startOf("month");for(let Tn=0;Tn<3;Tn++){const xn=$n[Tn];for(let kn=0;kn<4;kn++){const An=xn[kn]||(xn[kn]={row:Tn,column:kn,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});An.type="normal";const On=Tn*4+kn,Nn=ie.date.startOf("year").month(On),Rn=ie.rangeState.endDate||ie.maxDate||ie.rangeState.selecting&&ie.minDate||null;An.inRange=!!(ie.minDate&&Nn.isSameOrAfter(ie.minDate,"month")&&Rn&&Nn.isSameOrBefore(Rn,"month"))||!!(ie.minDate&&Nn.isSameOrBefore(ie.minDate,"month")&&Rn&&Nn.isSameOrAfter(Rn,"month")),(Cn=ie.minDate)!=null&&Cn.isSameOrAfter(Rn)?(An.start=!!(Rn&&Nn.isSame(Rn,"month")),An.end=ie.minDate&&Nn.isSame(ie.minDate,"month")):(An.start=!!(ie.minDate&&Nn.isSame(ie.minDate,"month")),An.end=!!(Rn&&Nn.isSame(Rn,"month"))),wn.isSame(Nn)&&(An.type="today"),An.text=On,An.disabled=((En=ie.disabledDate)==null?void 0:En.call(ie,Nn.toDate()))||!1}}return $n}),Lt=()=>{var Cn;(Cn=xe.value)==null||Cn.focus()},hn=Cn=>{const En={},$n=ie.date.year(),wn=new Date,Tn=Cn.text;return En.disabled=ie.disabledDate?le($n,Tn,Ce.value).every(ie.disabledDate):!1,En.current=castArray(ie.parsedValue).findIndex(xn=>dayjs.isDayjs(xn)&&xn.year()===$n&&xn.month()===Tn)>=0,En.today=wn.getFullYear()===$n&&wn.getMonth()===Tn,Cn.inRange&&(En["in-range"]=!0,Cn.start&&(En["start-date"]=!0),Cn.end&&(En["end-date"]=!0)),En},vn=Cn=>{const En=ie.date.year(),$n=Cn.text;return castArray(ie.date).findIndex(wn=>wn.year()===En&&wn.month()===$n)>=0},_n=Cn=>{var En;if(!ie.rangeState.selecting)return;let $n=Cn.target;if($n.tagName==="A"&&($n=(En=$n.parentNode)==null?void 0:En.parentNode),$n.tagName==="DIV"&&($n=$n.parentNode),$n.tagName!=="TD")return;const wn=$n.parentNode.rowIndex,Tn=$n.cellIndex;At.value[wn][Tn].disabled||(wn!==Fe.value||Tn!==ze.value)&&(Fe.value=wn,ze.value=Tn,ae("changerange",{selecting:!0,endDate:ie.date.startOf("year").month(wn*4+Tn)}))},bn=Cn=>{var En;const $n=(En=Cn.target)==null?void 0:En.closest("td");if(($n==null?void 0:$n.tagName)!=="TD"||hasClass($n,"disabled"))return;const wn=$n.cellIndex,xn=$n.parentNode.rowIndex*4+wn,kn=ie.date.startOf("year").month(xn);ie.selectionMode==="range"?ie.rangeState.selecting?(ie.minDate&&kn>=ie.minDate?ae("pick",{minDate:ie.minDate,maxDate:kn}):ae("pick",{minDate:kn,maxDate:ie.minDate}),ae("select",!1)):(ae("pick",{minDate:kn,maxDate:null}),ae("select",!0)):ae("pick",xn)};return watch(()=>ie.date,async()=>{var Cn,En;(Cn=$e.value)!=null&&Cn.contains(document.activeElement)&&(await nextTick(),(En=xe.value)==null||En.focus())}),oe({focus:Lt}),(Cn,En)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(_e)("el.datepicker.monthTablePrompt"),class:normalizeClass(unref(pe).b()),onClick:bn,onMousemove:_n},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:$e},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(At),($n,wn)=>(openBlock(),createElementBlock("tr",{key:wn},[(openBlock(!0),createElementBlock(Fragment,null,renderList($n,(Tn,xn)=>(openBlock(),createElementBlock("td",{key:xn,ref_for:!0,ref:kn=>vn(Tn)&&(xe.value=kn),class:normalizeClass(hn(Tn)),"aria-selected":`${vn(Tn)}`,"aria-label":unref(_e)(`el.datepicker.month${+Tn.text+1}`),tabindex:vn(Tn)?0:-1,onKeydown:[withKeys(withModifiers(bn,["prevent","stop"]),["space"]),withKeys(withModifiers(bn,["prevent","stop"]),["enter"])]},[createBaseVNode("div",null,[createBaseVNode("span",_hoisted_3$g,toDisplayString$1(unref(_e)("el.datepicker.months."+Ie.value[Tn.text])),1)])],42,_hoisted_2$t))),128))]))),128))],512)],42,_hoisted_1$J))}});var MonthTable=_export_sfc$1(_sfc_main$1m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date,disabledDate,parsedValue}=datePickerSharedProps,basicYearTableProps=buildProps({date,disabledDate,parsedValue}),_hoisted_1$I=["aria-label"],_hoisted_2$s=["aria-selected","tabindex","onKeydown"],_hoisted_3$f={class:"cell"},_hoisted_4$b={key:1},_sfc_main$1l=defineComponent({__name:"basic-year-table",props:basicYearTableProps,emits:["pick"],setup($,{expose:oe,emit:ae}){const ie=$,le=(Lt,hn)=>{const vn=dayjs(String(Lt)).locale(hn).startOf("year"),bn=vn.endOf("year").dayOfYear();return rangeArr(bn).map(Cn=>vn.add(Cn,"day").toDate())},pe=useNamespace("year-table"),{t:_e,lang:Ce}=useLocale(),$e=ref(),xe=ref(),Ie=computed(()=>Math.floor(ie.date.year()/10)*10),Ne=()=>{var Lt;(Lt=xe.value)==null||Lt.focus()},Fe=Lt=>{const hn={},vn=dayjs().locale(Ce.value);return hn.disabled=ie.disabledDate?le(Lt,Ce.value).every(ie.disabledDate):!1,hn.current=castArray(ie.parsedValue).findIndex(_n=>_n.year()===Lt)>=0,hn.today=vn.year()===Lt,hn},ze=Lt=>Lt===Ie.value&&ie.date.year()Ie.value+9||castArray(ie.date).findIndex(hn=>hn.year()===Lt)>=0,At=Lt=>{const vn=Lt.target.closest("td");if(vn&&vn.textContent){if(hasClass(vn,"disabled"))return;const _n=vn.textContent||vn.innerText;ae("pick",Number(_n))}};return watch(()=>ie.date,async()=>{var Lt,hn;(Lt=$e.value)!=null&&Lt.contains(document.activeElement)&&(await nextTick(),(hn=xe.value)==null||hn.focus())}),oe({focus:Ne}),(Lt,hn)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(_e)("el.datepicker.yearTablePrompt"),class:normalizeClass(unref(pe).b()),onClick:At},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:$e},[(openBlock(),createElementBlock(Fragment,null,renderList(3,(vn,_n)=>createBaseVNode("tr",{key:_n},[(openBlock(),createElementBlock(Fragment,null,renderList(4,(bn,Cn)=>(openBlock(),createElementBlock(Fragment,{key:_n+"_"+Cn},[_n*4+Cn<10?(openBlock(),createElementBlock("td",{key:0,ref_for:!0,ref:En=>ze(unref(Ie)+_n*4+Cn)&&(xe.value=En),class:normalizeClass(["available",Fe(unref(Ie)+_n*4+Cn)]),"aria-selected":`${ze(unref(Ie)+_n*4+Cn)}`,tabindex:ze(unref(Ie)+_n*4+Cn)?0:-1,onKeydown:[withKeys(withModifiers(At,["prevent","stop"]),["space"]),withKeys(withModifiers(At,["prevent","stop"]),["enter"])]},[createBaseVNode("span",_hoisted_3$f,toDisplayString$1(unref(Ie)+_n*4+Cn),1)],42,_hoisted_2$s)):(openBlock(),createElementBlock("td",_hoisted_4$b))],64))),64))])),64))],512)],10,_hoisted_1$I))}});var YearTable=_export_sfc$1(_sfc_main$1l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const _hoisted_1$H=["onClick"],_hoisted_2$r=["aria-label"],_hoisted_3$e=["aria-label"],_hoisted_4$a=["aria-label"],_hoisted_5$7=["aria-label"],_sfc_main$1k=defineComponent({__name:"panel-date-pick",props:panelDatePickProps,emits:["pick","set-picker-option","panel-change"],setup($,{emit:oe}){const ae=$,ie=($r,Tr,dr)=>!0,le=useNamespace("picker-panel"),pe=useNamespace("date-picker"),_e=useAttrs$1(),Ce=useSlots(),{t:$e,lang:xe}=useLocale(),Ie=inject("EP_PICKER_BASE"),Ne=inject(TOOLTIP_INJECTION_KEY),{shortcuts:Fe,disabledDate:ze,cellClassName:At,defaultTime:Lt,arrowControl:hn}=Ie.props,vn=toRef$1(Ie.props,"defaultValue"),_n=ref(),bn=ref(dayjs().locale(xe.value)),Cn=ref(!1),En=computed(()=>dayjs(Lt).locale(xe.value)),$n=computed(()=>bn.value.month()),wn=computed(()=>bn.value.year()),Tn=ref([]),xn=ref(null),kn=ref(null),An=$r=>Tn.value.length>0?ie($r,Tn.value,ae.format||"HH:mm:ss"):!0,On=$r=>Lt&&!Un.value&&!Cn.value?En.value.year($r.year()).month($r.month()).date($r.date()):er.value?$r.millisecond(0):$r.startOf("day"),Nn=($r,...Tr)=>{if(!$r)oe("pick",$r,...Tr);else if(isArray$c($r)){const dr=$r.map(On);oe("pick",dr,...Tr)}else oe("pick",On($r),...Tr);xn.value=null,kn.value=null,Cn.value=!1},Rn=($r,Tr)=>{if(jn.value==="date"){$r=$r;let dr=ae.parsedValue?ae.parsedValue.year($r.year()).month($r.month()).date($r.date()):$r;An(dr)||(dr=Tn.value[0][0].year($r.year()).month($r.month()).date($r.date())),bn.value=dr,Nn(dr,er.value||Tr)}else jn.value==="week"?Nn($r.date):jn.value==="dates"&&Nn($r,!0)},zn=$r=>{const Tr=$r?"add":"subtract";bn.value=bn.value[Tr](1,"month"),Rr("month")},Bn=$r=>{const Tr=bn.value,dr=$r?"add":"subtract";bn.value=Mn.value==="year"?Tr[dr](10,"year"):Tr[dr](1,"year"),Rr("year")},Mn=ref("date"),Fn=computed(()=>{const $r=$e("el.datepicker.year");if(Mn.value==="year"){const Tr=Math.floor(wn.value/10)*10;return $r?`${Tr} ${$r} - ${Tr+9} ${$r}`:`${Tr} - ${Tr+9}`}return`${wn.value} ${$r}`}),Vn=$r=>{const Tr=isFunction$5($r.value)?$r.value():$r.value;if(Tr){Nn(dayjs(Tr).locale(xe.value));return}$r.onClick&&$r.onClick({attrs:_e,slots:Ce,emit:oe})},jn=computed(()=>{const{type:$r}=ae;return["week","month","year","dates"].includes($r)?$r:"date"}),Zn=computed(()=>jn.value==="date"?Mn.value:jn.value),Gn=computed(()=>!!Fe.length),Xn=async $r=>{bn.value=bn.value.startOf("month").month($r),jn.value==="month"?Nn(bn.value,!1):(Mn.value="date",["month","year","date","week"].includes(jn.value)&&(Nn(bn.value,!0),await nextTick(),Or())),Rr("month")},cr=async $r=>{jn.value==="year"?(bn.value=bn.value.startOf("year").year($r),Nn(bn.value,!1)):(bn.value=bn.value.year($r),Mn.value="month",["month","year","date","week"].includes(jn.value)&&(Nn(bn.value,!0),await nextTick(),Or())),Rr("year")},nr=async $r=>{Mn.value=$r,await nextTick(),Or()},er=computed(()=>ae.type==="datetime"||ae.type==="datetimerange"),rr=computed(()=>er.value||jn.value==="dates"),qn=()=>{if(jn.value==="dates")Nn(ae.parsedValue);else{let $r=ae.parsedValue;if(!$r){const Tr=dayjs(Lt).locale(xe.value),dr=gr();$r=Tr.year(dr.year()).month(dr.month()).date(dr.date())}bn.value=$r,Nn($r)}},Yn=()=>{const Tr=dayjs().locale(xe.value).toDate();Cn.value=!0,(!ze||!ze(Tr))&&An(Tr)&&(bn.value=dayjs().locale(xe.value),Nn(bn.value))},ar=computed(()=>extractTimeFormat(ae.format)),pr=computed(()=>extractDateFormat(ae.format)),Un=computed(()=>{if(kn.value)return kn.value;if(!(!ae.parsedValue&&!vn.value))return(ae.parsedValue||bn.value).format(ar.value)}),tr=computed(()=>{if(xn.value)return xn.value;if(!(!ae.parsedValue&&!vn.value))return(ae.parsedValue||bn.value).format(pr.value)}),ur=ref(!1),_r=()=>{ur.value=!0},Er=()=>{ur.value=!1},sr=$r=>({hour:$r.hour(),minute:$r.minute(),second:$r.second(),year:$r.year(),month:$r.month(),date:$r.date()}),Pr=($r,Tr,dr)=>{const{hour:Jn,minute:ir,second:xr}=sr($r),Ir=ae.parsedValue?ae.parsedValue.hour(Jn).minute(ir).second(xr):$r;bn.value=Ir,Nn(bn.value,!0),dr||(ur.value=Tr)},Sr=$r=>{const Tr=dayjs($r,ar.value).locale(xe.value);if(Tr.isValid()&&An(Tr)){const{year:dr,month:Jn,date:ir}=sr(bn.value);bn.value=Tr.year(dr).month(Jn).date(ir),kn.value=null,ur.value=!1,Nn(bn.value,!0)}},kr=$r=>{const Tr=dayjs($r,pr.value).locale(xe.value);if(Tr.isValid()){if(ze&&ze(Tr.toDate()))return;const{hour:dr,minute:Jn,second:ir}=sr(bn.value);bn.value=Tr.hour(dr).minute(Jn).second(ir),xn.value=null,Nn(bn.value,!0)}},mr=$r=>dayjs.isDayjs($r)&&$r.isValid()&&(ze?!ze($r.toDate()):!0),lr=$r=>jn.value==="dates"?$r.map(Tr=>Tr.format(ae.format)):$r.format(ae.format),hr=$r=>dayjs($r,ae.format).locale(xe.value),gr=()=>{const $r=dayjs(vn.value).locale(xe.value);if(!vn.value){const Tr=En.value;return dayjs().hour(Tr.hour()).minute(Tr.minute()).second(Tr.second()).locale(xe.value)}return $r},Or=async()=>{var $r;["week","month","year","date"].includes(jn.value)&&(($r=_n.value)==null||$r.focus(),jn.value==="week"&&Vr(EVENT_CODE.down))},Lr=$r=>{const{code:Tr}=$r;[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(Tr)&&(Vr(Tr),$r.stopPropagation(),$r.preventDefault()),[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.numpadEnter].includes(Tr)&&xn.value===null&&kn.value===null&&($r.preventDefault(),Nn(bn.value,!1))},Vr=$r=>{var Tr;const{up:dr,down:Jn,left:ir,right:xr,home:Ir,end:Hr,pageUp:Cr,pageDown:Mr}=EVENT_CODE,Ur={year:{[dr]:-4,[Jn]:4,[ir]:-1,[xr]:1,offset:(Wr,Xr)=>Wr.setFullYear(Wr.getFullYear()+Xr)},month:{[dr]:-4,[Jn]:4,[ir]:-1,[xr]:1,offset:(Wr,Xr)=>Wr.setMonth(Wr.getMonth()+Xr)},week:{[dr]:-1,[Jn]:1,[ir]:-1,[xr]:1,offset:(Wr,Xr)=>Wr.setDate(Wr.getDate()+Xr*7)},date:{[dr]:-7,[Jn]:7,[ir]:-1,[xr]:1,[Ir]:Wr=>-Wr.getDay(),[Hr]:Wr=>-Wr.getDay()+6,[Cr]:Wr=>-new Date(Wr.getFullYear(),Wr.getMonth(),0).getDate(),[Mr]:Wr=>new Date(Wr.getFullYear(),Wr.getMonth()+1,0).getDate(),offset:(Wr,Xr)=>Wr.setDate(Wr.getDate()+Xr)}},jr=bn.value.toDate();for(;Math.abs(bn.value.diff(jr,"year",!0))<1;){const Wr=Ur[Zn.value];if(!Wr)return;if(Wr.offset(jr,isFunction$5(Wr[$r])?Wr[$r](jr):(Tr=Wr[$r])!=null?Tr:0),ze&&ze(jr))break;const Xr=dayjs(jr).locale(xe.value);bn.value=Xr,oe("pick",Xr,!0);break}},Rr=$r=>{oe("panel-change",bn.value.toDate(),$r,Mn.value)};return watch(()=>jn.value,$r=>{if(["month","year"].includes($r)){Mn.value=$r;return}Mn.value="date"},{immediate:!0}),watch(()=>Mn.value,()=>{Ne==null||Ne.updatePopper()}),watch(()=>vn.value,$r=>{$r&&(bn.value=gr())},{immediate:!0}),watch(()=>ae.parsedValue,$r=>{if($r){if(jn.value==="dates"||Array.isArray($r))return;bn.value=$r}else bn.value=gr()},{immediate:!0}),oe("set-picker-option",["isValidValue",mr]),oe("set-picker-option",["formatToString",lr]),oe("set-picker-option",["parseUserInput",hr]),oe("set-picker-option",["handleFocusPicker",Or]),($r,Tr)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(le).b(),unref(pe).b(),{"has-sidebar":$r.$slots.sidebar||unref(Gn),"has-time":unref(er)}])},[createBaseVNode("div",{class:normalizeClass(unref(le).e("body-wrapper"))},[renderSlot($r.$slots,"sidebar",{class:normalizeClass(unref(le).e("sidebar"))}),unref(Gn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fe),(dr,Jn)=>(openBlock(),createElementBlock("button",{key:Jn,type:"button",class:normalizeClass(unref(le).e("shortcut")),onClick:ir=>Vn(dr)},toDisplayString$1(dr.text),11,_hoisted_1$H))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).e("body"))},[unref(er)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(pe).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(pe).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref($e)("el.datepicker.selectDate"),"model-value":unref(tr),size:"small","validate-event":!1,onInput:Tr[0]||(Tr[0]=dr=>xn.value=dr),onChange:kr},null,8,["placeholder","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(pe).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref($e)("el.datepicker.selectTime"),"model-value":unref(Un),size:"small","validate-event":!1,onFocus:_r,onInput:Tr[1]||(Tr[1]=dr=>kn.value=dr),onChange:Sr},null,8,["placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:ur.value,format:unref(ar),"time-arrow-control":unref(hn),"parsed-value":bn.value,onPick:Pr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),Er]])],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{class:normalizeClass([unref(pe).e("header"),(Mn.value==="year"||Mn.value==="month")&&unref(pe).e("header--bordered")])},[createBaseVNode("span",{class:normalizeClass(unref(pe).e("prev-btn"))},[createBaseVNode("button",{type:"button","aria-label":unref($e)("el.datepicker.prevYear"),class:normalizeClass(["d-arrow-left",unref(le).e("icon-btn")]),onClick:Tr[2]||(Tr[2]=dr=>Bn(!1))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_2$r),withDirectives(createBaseVNode("button",{type:"button","aria-label":unref($e)("el.datepicker.prevMonth"),class:normalizeClass([unref(le).e("icon-btn"),"arrow-left"]),onClick:Tr[3]||(Tr[3]=dr=>zn(!1))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_3$e),[[vShow,Mn.value==="date"]])],2),createBaseVNode("span",{role:"button",class:normalizeClass(unref(pe).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Tr[4]||(Tr[4]=withKeys(dr=>nr("year"),["enter"])),onClick:Tr[5]||(Tr[5]=dr=>nr("year"))},toDisplayString$1(unref(Fn)),35),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:"0",class:normalizeClass([unref(pe).e("header-label"),{active:Mn.value==="month"}]),onKeydown:Tr[6]||(Tr[6]=withKeys(dr=>nr("month"),["enter"])),onClick:Tr[7]||(Tr[7]=dr=>nr("month"))},toDisplayString$1(unref($e)(`el.datepicker.month${unref($n)+1}`)),35),[[vShow,Mn.value==="date"]]),createBaseVNode("span",{class:normalizeClass(unref(pe).e("next-btn"))},[withDirectives(createBaseVNode("button",{type:"button","aria-label":unref($e)("el.datepicker.nextMonth"),class:normalizeClass([unref(le).e("icon-btn"),"arrow-right"]),onClick:Tr[8]||(Tr[8]=dr=>zn(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_4$a),[[vShow,Mn.value==="date"]]),createBaseVNode("button",{type:"button","aria-label":unref($e)("el.datepicker.nextYear"),class:normalizeClass([unref(le).e("icon-btn"),"d-arrow-right"]),onClick:Tr[9]||(Tr[9]=dr=>Bn(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_5$7)],2)],2),[[vShow,Mn.value!=="time"]]),createBaseVNode("div",{class:normalizeClass(unref(le).e("content")),onKeydown:Lr},[Mn.value==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"currentViewRef",ref:_n,"selection-mode":unref(jn),date:bn.value,"parsed-value":$r.parsedValue,"disabled-date":unref(ze),"cell-class-name":unref(At),onPick:Rn},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):createCommentVNode("v-if",!0),Mn.value==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"currentViewRef",ref:_n,date:bn.value,"disabled-date":unref(ze),"parsed-value":$r.parsedValue,onPick:cr},null,8,["date","disabled-date","parsed-value"])):createCommentVNode("v-if",!0),Mn.value==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"currentViewRef",ref:_n,date:bn.value,"parsed-value":$r.parsedValue,"disabled-date":unref(ze),onPick:Xn},null,8,["date","parsed-value","disabled-date"])):createCommentVNode("v-if",!0)],34)],2)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(le).e("footer"))},[withDirectives(createVNode(unref(ElButton),{text:"",size:"small",class:normalizeClass(unref(le).e("link-btn")),onClick:Yn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref($e)("el.datepicker.now")),1)]),_:1},8,["class"]),[[vShow,unref(jn)!=="dates"]]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(le).e("link-btn")),onClick:qn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref($e)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[vShow,unref(rr)&&Mn.value==="date"]])],2))}});var DatePickPanel=_export_sfc$1(_sfc_main$1k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const panelDateRangeProps=buildProps({...panelSharedProps,...panelRangeSharedProps}),useShortcut=$=>{const{emit:oe}=getCurrentInstance(),ae=useAttrs$1(),ie=useSlots();return pe=>{const _e=isFunction$5(pe.value)?pe.value():pe.value;if(_e){oe("pick",[dayjs(_e[0]).locale($.value),dayjs(_e[1]).locale($.value)]);return}pe.onClick&&pe.onClick({attrs:ae,slots:ie,emit:oe})}},useRangePicker=($,{defaultValue:oe,leftDate:ae,rightDate:ie,unit:le,onParsedValueChanged:pe})=>{const{emit:_e}=getCurrentInstance(),{pickerNs:Ce}=inject(ROOT_PICKER_INJECTION_KEY),$e=useNamespace("date-range-picker"),{t:xe,lang:Ie}=useLocale(),Ne=useShortcut(Ie),Fe=ref(),ze=ref(),At=ref({endDate:null,selecting:!1}),Lt=bn=>{At.value=bn},hn=(bn=!1)=>{const Cn=unref(Fe),En=unref(ze);isValidRange([Cn,En])&&_e("pick",[Cn,En],bn)},vn=bn=>{At.value.selecting=bn,bn||(At.value.endDate=null)},_n=()=>{const[bn,Cn]=getDefaultValue(unref(oe),{lang:unref(Ie),unit:le,unlinkPanels:$.unlinkPanels});Fe.value=void 0,ze.value=void 0,ae.value=bn,ie.value=Cn};return watch(oe,bn=>{bn&&_n()},{immediate:!0}),watch(()=>$.parsedValue,bn=>{if(isArray$c(bn)&&bn.length===2){const[Cn,En]=bn;Fe.value=Cn,ae.value=Cn,ze.value=En,pe(unref(Fe),unref(ze))}else _n()},{immediate:!0}),{minDate:Fe,maxDate:ze,rangeState:At,lang:Ie,ppNs:Ce,drpNs:$e,handleChangeRange:Lt,handleRangeConfirm:hn,handleShortcutClick:Ne,onSelect:vn,t:xe}},_hoisted_1$G=["onClick"],_hoisted_2$q=["disabled"],_hoisted_3$d=["disabled"],_hoisted_4$9=["disabled"],_hoisted_5$6=["disabled"],unit$1="month",_sfc_main$1j=defineComponent({__name:"panel-date-range",props:panelDateRangeProps,emits:["pick","set-picker-option","calendar-change","panel-change"],setup($,{emit:oe}){const ae=$,ie=inject("EP_PICKER_BASE"),{disabledDate:le,cellClassName:pe,format:_e,defaultTime:Ce,arrowControl:$e,clearable:xe}=ie.props,Ie=toRef$1(ie.props,"shortcuts"),Ne=toRef$1(ie.props,"defaultValue"),{lang:Fe}=useLocale(),ze=ref(dayjs().locale(Fe.value)),At=ref(dayjs().locale(Fe.value).add(1,unit$1)),{minDate:Lt,maxDate:hn,rangeState:vn,ppNs:_n,drpNs:bn,handleChangeRange:Cn,handleRangeConfirm:En,handleShortcutClick:$n,onSelect:wn,t:Tn}=useRangePicker(ae,{defaultValue:Ne,leftDate:ze,rightDate:At,unit:unit$1,onParsedValueChanged:Jn}),xn=ref({min:null,max:null}),kn=ref({min:null,max:null}),An=computed(()=>`${ze.value.year()} ${Tn("el.datepicker.year")} ${Tn(`el.datepicker.month${ze.value.month()+1}`)}`),On=computed(()=>`${At.value.year()} ${Tn("el.datepicker.year")} ${Tn(`el.datepicker.month${At.value.month()+1}`)}`),Nn=computed(()=>ze.value.year()),Rn=computed(()=>ze.value.month()),zn=computed(()=>At.value.year()),Bn=computed(()=>At.value.month()),Mn=computed(()=>!!Ie.value.length),Fn=computed(()=>xn.value.min!==null?xn.value.min:Lt.value?Lt.value.format(Xn.value):""),Vn=computed(()=>xn.value.max!==null?xn.value.max:hn.value||Lt.value?(hn.value||Lt.value).format(Xn.value):""),jn=computed(()=>kn.value.min!==null?kn.value.min:Lt.value?Lt.value.format(Gn.value):""),Zn=computed(()=>kn.value.max!==null?kn.value.max:hn.value||Lt.value?(hn.value||Lt.value).format(Gn.value):""),Gn=computed(()=>extractTimeFormat(_e)),Xn=computed(()=>extractDateFormat(_e)),cr=()=>{ze.value=ze.value.subtract(1,"year"),ae.unlinkPanels||(At.value=ze.value.add(1,"month")),Un("year")},nr=()=>{ze.value=ze.value.subtract(1,"month"),ae.unlinkPanels||(At.value=ze.value.add(1,"month")),Un("month")},er=()=>{ae.unlinkPanels?At.value=At.value.add(1,"year"):(ze.value=ze.value.add(1,"year"),At.value=ze.value.add(1,"month")),Un("year")},rr=()=>{ae.unlinkPanels?At.value=At.value.add(1,"month"):(ze.value=ze.value.add(1,"month"),At.value=ze.value.add(1,"month")),Un("month")},qn=()=>{ze.value=ze.value.add(1,"year"),Un("year")},Yn=()=>{ze.value=ze.value.add(1,"month"),Un("month")},ar=()=>{At.value=At.value.subtract(1,"year"),Un("year")},pr=()=>{At.value=At.value.subtract(1,"month"),Un("month")},Un=ir=>{oe("panel-change",[ze.value.toDate(),At.value.toDate()],ir)},tr=computed(()=>{const ir=(Rn.value+1)%12,xr=Rn.value+1>=12?1:0;return ae.unlinkPanels&&new Date(Nn.value+xr,ir)ae.unlinkPanels&&zn.value*12+Bn.value-(Nn.value*12+Rn.value+1)>=12),_r=computed(()=>!(Lt.value&&hn.value&&!vn.value.selecting&&isValidRange([Lt.value,hn.value]))),Er=computed(()=>ae.type==="datetime"||ae.type==="datetimerange"),sr=(ir,xr)=>{if(ir)return Ce?dayjs(Ce[xr]||Ce).locale(Fe.value).year(ir.year()).month(ir.month()).date(ir.date()):ir},Pr=(ir,xr=!0)=>{const Ir=ir.minDate,Hr=ir.maxDate,Cr=sr(Ir,0),Mr=sr(Hr,1);hn.value===Mr&&Lt.value===Cr||(oe("calendar-change",[Ir.toDate(),Hr&&Hr.toDate()]),hn.value=Mr,Lt.value=Cr,!(!xr||Er.value)&&En())},Sr=ref(!1),kr=ref(!1),mr=()=>{Sr.value=!1},lr=()=>{kr.value=!1},hr=(ir,xr)=>{xn.value[xr]=ir;const Ir=dayjs(ir,Xn.value).locale(Fe.value);if(Ir.isValid()){if(le&&le(Ir.toDate()))return;xr==="min"?(ze.value=Ir,Lt.value=(Lt.value||ze.value).year(Ir.year()).month(Ir.month()).date(Ir.date()),ae.unlinkPanels||(At.value=Ir.add(1,"month"),hn.value=Lt.value.add(1,"month"))):(At.value=Ir,hn.value=(hn.value||At.value).year(Ir.year()).month(Ir.month()).date(Ir.date()),ae.unlinkPanels||(ze.value=Ir.subtract(1,"month"),Lt.value=hn.value.subtract(1,"month")))}},gr=(ir,xr)=>{xn.value[xr]=null},Or=(ir,xr)=>{kn.value[xr]=ir;const Ir=dayjs(ir,Gn.value).locale(Fe.value);Ir.isValid()&&(xr==="min"?(Sr.value=!0,Lt.value=(Lt.value||ze.value).hour(Ir.hour()).minute(Ir.minute()).second(Ir.second()),(!hn.value||hn.value.isBefore(Lt.value))&&(hn.value=Lt.value)):(kr.value=!0,hn.value=(hn.value||At.value).hour(Ir.hour()).minute(Ir.minute()).second(Ir.second()),At.value=hn.value,hn.value&&hn.value.isBefore(Lt.value)&&(Lt.value=hn.value)))},Lr=(ir,xr)=>{kn.value[xr]=null,xr==="min"?(ze.value=Lt.value,Sr.value=!1):(At.value=hn.value,kr.value=!1)},Vr=(ir,xr,Ir)=>{kn.value.min||(ir&&(ze.value=ir,Lt.value=(Lt.value||ze.value).hour(ir.hour()).minute(ir.minute()).second(ir.second())),Ir||(Sr.value=xr),(!hn.value||hn.value.isBefore(Lt.value))&&(hn.value=Lt.value,At.value=ir))},Rr=(ir,xr,Ir)=>{kn.value.max||(ir&&(At.value=ir,hn.value=(hn.value||At.value).hour(ir.hour()).minute(ir.minute()).second(ir.second())),Ir||(kr.value=xr),hn.value&&hn.value.isBefore(Lt.value)&&(Lt.value=hn.value))},$r=()=>{ze.value=getDefaultValue(unref(Ne),{lang:unref(Fe),unit:"month",unlinkPanels:ae.unlinkPanels})[0],At.value=ze.value.add(1,"month"),oe("pick",null)},Tr=ir=>isArray$c(ir)?ir.map(xr=>xr.format(_e)):ir.format(_e),dr=ir=>isArray$c(ir)?ir.map(xr=>dayjs(xr,_e).locale(Fe.value)):dayjs(ir,_e).locale(Fe.value);function Jn(ir,xr){if(ae.unlinkPanels&&xr){const Ir=(ir==null?void 0:ir.year())||0,Hr=(ir==null?void 0:ir.month())||0,Cr=xr.year(),Mr=xr.month();At.value=Ir===Cr&&Hr===Mr?xr.add(1,unit$1):xr}else At.value=ze.value.add(1,unit$1),xr&&(At.value=At.value.hour(xr.hour()).minute(xr.minute()).second(xr.second()))}return oe("set-picker-option",["isValidValue",isValidRange]),oe("set-picker-option",["parseUserInput",dr]),oe("set-picker-option",["formatToString",Tr]),oe("set-picker-option",["handleClear",$r]),(ir,xr)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(_n).b(),unref(bn).b(),{"has-sidebar":ir.$slots.sidebar||unref(Mn),"has-time":unref(Er)}])},[createBaseVNode("div",{class:normalizeClass(unref(_n).e("body-wrapper"))},[renderSlot(ir.$slots,"sidebar",{class:normalizeClass(unref(_n).e("sidebar"))}),unref(Mn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(_n).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),(Ir,Hr)=>(openBlock(),createElementBlock("button",{key:Hr,type:"button",class:normalizeClass(unref(_n).e("shortcut")),onClick:Cr=>unref($n)(Ir)},toDisplayString$1(Ir.text),11,_hoisted_1$G))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(_n).e("body"))},[unref(Er)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(bn).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(bn).e("editors-wrap"))},[createBaseVNode("span",{class:normalizeClass(unref(bn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",disabled:unref(vn).selecting,placeholder:unref(Tn)("el.datepicker.startDate"),class:normalizeClass(unref(bn).e("editor")),"model-value":unref(Fn),"validate-event":!1,onInput:xr[0]||(xr[0]=Ir=>hr(Ir,"min")),onChange:xr[1]||(xr[1]=Ir=>gr(Ir,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(bn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(bn).e("editor")),disabled:unref(vn).selecting,placeholder:unref(Tn)("el.datepicker.startTime"),"model-value":unref(jn),"validate-event":!1,onFocus:xr[2]||(xr[2]=Ir=>Sr.value=!0),onInput:xr[3]||(xr[3]=Ir=>Or(Ir,"min")),onChange:xr[4]||(xr[4]=Ir=>Lr(Ir,"min"))},null,8,["class","disabled","placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:Sr.value,format:unref(Gn),"datetime-role":"start","time-arrow-control":unref($e),"parsed-value":ze.value,onPick:Vr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),mr]])],2),createBaseVNode("span",null,[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})]),createBaseVNode("span",{class:normalizeClass([unref(bn).e("editors-wrap"),"is-right"])},[createBaseVNode("span",{class:normalizeClass(unref(bn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(bn).e("editor")),disabled:unref(vn).selecting,placeholder:unref(Tn)("el.datepicker.endDate"),"model-value":unref(Vn),readonly:!unref(Lt),"validate-event":!1,onInput:xr[5]||(xr[5]=Ir=>hr(Ir,"max")),onChange:xr[6]||(xr[6]=Ir=>gr(Ir,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(bn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(bn).e("editor")),disabled:unref(vn).selecting,placeholder:unref(Tn)("el.datepicker.endTime"),"model-value":unref(Zn),readonly:!unref(Lt),"validate-event":!1,onFocus:xr[7]||(xr[7]=Ir=>unref(Lt)&&(kr.value=!0)),onInput:xr[8]||(xr[8]=Ir=>Or(Ir,"max")),onChange:xr[9]||(xr[9]=Ir=>Lr(Ir,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),createVNode(unref(TimePickPanel),{"datetime-role":"end",visible:kr.value,format:unref(Gn),"time-arrow-control":unref($e),"parsed-value":At.value,onPick:Rr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),lr]])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([[unref(_n).e("content"),unref(bn).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(bn).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(_n).e("icon-btn"),"d-arrow-left"]),onClick:cr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(_n).e("icon-btn"),"arrow-left"]),onClick:nr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),ir.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(ur),class:normalizeClass([[unref(_n).e("icon-btn"),{"is-disabled":!unref(ur)}],"d-arrow-right"]),onClick:qn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_2$q)):createCommentVNode("v-if",!0),ir.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(tr),class:normalizeClass([[unref(_n).e("icon-btn"),{"is-disabled":!unref(tr)}],"arrow-right"]),onClick:Yn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_3$d)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString$1(unref(An)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:ze.value,"min-date":unref(Lt),"max-date":unref(hn),"range-state":unref(vn),"disabled-date":unref(le),"cell-class-name":unref(pe),onChangerange:unref(Cn),onPick:Pr,onSelect:unref(wn)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(_n).e("content"),unref(bn).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(bn).e("header"))},[ir.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(ur),class:normalizeClass([[unref(_n).e("icon-btn"),{"is-disabled":!unref(ur)}],"d-arrow-left"]),onClick:ar},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_4$9)):createCommentVNode("v-if",!0),ir.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(tr),class:normalizeClass([[unref(_n).e("icon-btn"),{"is-disabled":!unref(tr)}],"arrow-left"]),onClick:pr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_5$6)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(_n).e("icon-btn"),"d-arrow-right"]),onClick:er},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(_n).e("icon-btn"),"arrow-right"]),onClick:rr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString$1(unref(On)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:At.value,"min-date":unref(Lt),"max-date":unref(hn),"range-state":unref(vn),"disabled-date":unref(le),"cell-class-name":unref(pe),onChangerange:unref(Cn),onPick:Pr,onSelect:unref(wn)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),unref(Er)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(_n).e("footer"))},[unref(xe)?(openBlock(),createBlock(unref(ElButton),{key:0,text:"",size:"small",class:normalizeClass(unref(_n).e("link-btn")),onClick:$r},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Tn)("el.datepicker.clear")),1)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(_n).e("link-btn")),disabled:unref(_r),onClick:xr[10]||(xr[10]=Ir=>unref(En)(!1))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Tn)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):createCommentVNode("v-if",!0)],2))}});var DateRangePickPanel=_export_sfc$1(_sfc_main$1j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const panelMonthRangeProps=buildProps({...panelRangeSharedProps}),panelMonthRangeEmits=["pick","set-picker-option"],useMonthRangeHeader=({unlinkPanels:$,leftDate:oe,rightDate:ae})=>{const{t:ie}=useLocale(),le=()=>{oe.value=oe.value.subtract(1,"year"),$.value||(ae.value=ae.value.subtract(1,"year"))},pe=()=>{$.value||(oe.value=oe.value.add(1,"year")),ae.value=ae.value.add(1,"year")},_e=()=>{oe.value=oe.value.add(1,"year")},Ce=()=>{ae.value=ae.value.subtract(1,"year")},$e=computed(()=>`${oe.value.year()} ${ie("el.datepicker.year")}`),xe=computed(()=>`${ae.value.year()} ${ie("el.datepicker.year")}`),Ie=computed(()=>oe.value.year()),Ne=computed(()=>ae.value.year()===oe.value.year()?oe.value.year()+1:ae.value.year());return{leftPrevYear:le,rightNextYear:pe,leftNextYear:_e,rightPrevYear:Ce,leftLabel:$e,rightLabel:xe,leftYear:Ie,rightYear:Ne}},_hoisted_1$F=["onClick"],_hoisted_2$p=["disabled"],_hoisted_3$c=["disabled"],unit="year",__default__$R=defineComponent({name:"DatePickerMonthRange"}),_sfc_main$1i=defineComponent({...__default__$R,props:panelMonthRangeProps,emits:panelMonthRangeEmits,setup($,{emit:oe}){const ae=$,{lang:ie}=useLocale(),le=inject("EP_PICKER_BASE"),{shortcuts:pe,disabledDate:_e,format:Ce}=le.props,$e=toRef$1(le.props,"defaultValue"),xe=ref(dayjs().locale(ie.value)),Ie=ref(dayjs().locale(ie.value).add(1,unit)),{minDate:Ne,maxDate:Fe,rangeState:ze,ppNs:At,drpNs:Lt,handleChangeRange:hn,handleRangeConfirm:vn,handleShortcutClick:_n,onSelect:bn}=useRangePicker(ae,{defaultValue:$e,leftDate:xe,rightDate:Ie,unit,onParsedValueChanged:Bn}),Cn=computed(()=>!!pe.length),{leftPrevYear:En,rightNextYear:$n,leftNextYear:wn,rightPrevYear:Tn,leftLabel:xn,rightLabel:kn,leftYear:An,rightYear:On}=useMonthRangeHeader({unlinkPanels:toRef$1(ae,"unlinkPanels"),leftDate:xe,rightDate:Ie}),Nn=computed(()=>ae.unlinkPanels&&On.value>An.value+1),Rn=(Mn,Fn=!0)=>{const Vn=Mn.minDate,jn=Mn.maxDate;Fe.value===jn&&Ne.value===Vn||(Fe.value=jn,Ne.value=Vn,Fn&&vn())},zn=Mn=>Mn.map(Fn=>Fn.format(Ce));function Bn(Mn,Fn){if(ae.unlinkPanels&&Fn){const Vn=(Mn==null?void 0:Mn.year())||0,jn=Fn.year();Ie.value=Vn===jn?Fn.add(1,unit):Fn}else Ie.value=xe.value.add(1,unit)}return oe("set-picker-option",["formatToString",zn]),(Mn,Fn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(At).b(),unref(Lt).b(),{"has-sidebar":!!Mn.$slots.sidebar||unref(Cn)}])},[createBaseVNode("div",{class:normalizeClass(unref(At).e("body-wrapper"))},[renderSlot(Mn.$slots,"sidebar",{class:normalizeClass(unref(At).e("sidebar"))}),unref(Cn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(At).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(pe),(Vn,jn)=>(openBlock(),createElementBlock("button",{key:jn,type:"button",class:normalizeClass(unref(At).e("shortcut")),onClick:Zn=>unref(_n)(Vn)},toDisplayString$1(Vn.text),11,_hoisted_1$F))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(At).e("body"))},[createBaseVNode("div",{class:normalizeClass([[unref(At).e("content"),unref(Lt).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(Lt).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(At).e("icon-btn"),"d-arrow-left"]),onClick:Fn[0]||(Fn[0]=(...Vn)=>unref(En)&&unref(En)(...Vn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),Mn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(Nn),class:normalizeClass([[unref(At).e("icon-btn"),{[unref(At).is("disabled")]:!unref(Nn)}],"d-arrow-right"]),onClick:Fn[1]||(Fn[1]=(...Vn)=>unref(wn)&&unref(wn)(...Vn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_2$p)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString$1(unref(xn)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:xe.value,"min-date":unref(Ne),"max-date":unref(Fe),"range-state":unref(ze),"disabled-date":unref(_e),onChangerange:unref(hn),onPick:Rn,onSelect:unref(bn)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(At).e("content"),unref(Lt).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(Lt).e("header"))},[Mn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(Nn),class:normalizeClass([[unref(At).e("icon-btn"),{"is-disabled":!unref(Nn)}],"d-arrow-left"]),onClick:Fn[2]||(Fn[2]=(...Vn)=>unref(Tn)&&unref(Tn)(...Vn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_3$c)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(At).e("icon-btn"),"d-arrow-right"]),onClick:Fn[3]||(Fn[3]=(...Vn)=>unref($n)&&unref($n)(...Vn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString$1(unref(kn)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:Ie.value,"min-date":unref(Ne),"max-date":unref(Fe),"range-state":unref(ze),"disabled-date":unref(_e),onChangerange:unref(hn),onPick:Rn,onSelect:unref(bn)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var MonthRangePickPanel=_export_sfc$1(_sfc_main$1i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const getPanel=function($){switch($){case"daterange":case"datetimerange":return DateRangePickPanel;case"monthrange":return MonthRangePickPanel;default:return DatePickPanel}};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 DatePicker=defineComponent({name:"ElDatePicker",install:null,props:datePickerProps,emits:["update:modelValue"],setup($,{expose:oe,emit:ae,slots:ie}){const le=useNamespace("picker-panel");provide("ElPopperOptions",reactive(toRef$1($,"popperOptions"))),provide(ROOT_PICKER_INJECTION_KEY,{slots:ie,pickerNs:le});const pe=ref();oe({focus:($e=!0)=>{var xe;(xe=pe.value)==null||xe.focus($e)},handleOpen:()=>{var $e;($e=pe.value)==null||$e.handleOpen()},handleClose:()=>{var $e;($e=pe.value)==null||$e.handleClose()}});const Ce=$e=>{ae("update:modelValue",$e)};return()=>{var $e;const xe=($e=$.format)!=null?$e:DEFAULT_FORMATS_DATEPICKER[$.type]||DEFAULT_FORMATS_DATE,Ie=getPanel($.type);return createVNode(CommonPicker,mergeProps($,{format:xe,type:$.type,ref:pe,"onUpdate:modelValue":Ce}),{default:Ne=>createVNode(Ie,Ne,null),"range-separator":ie["range-separator"]})}}});const _DatePicker=DatePicker;_DatePicker.install=$=>{$.component(_DatePicker.name,_DatePicker)};const ElDatePicker=_DatePicker,descriptionsKey=Symbol("elDescriptions");var ElDescriptionsCell=defineComponent({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:inject(descriptionsKey,{})}},render(){var $,oe,ae,ie,le,pe;const _e=getNormalizedProps(this.cell),{border:Ce,direction:$e}=this.descriptions,xe=$e==="vertical",Ie=((ae=(oe=($=this.cell)==null?void 0:$.children)==null?void 0:oe.label)==null?void 0:ae.call(oe))||_e.label,Ne=(pe=(le=(ie=this.cell)==null?void 0:ie.children)==null?void 0:le.default)==null?void 0:pe.call(le),Fe=_e.span,ze=_e.align?`is-${_e.align}`:"",At=_e.labelAlign?`is-${_e.labelAlign}`:ze,Lt=_e.className,hn=_e.labelClassName,vn={width:addUnit(_e.width),minWidth:addUnit(_e.minWidth)},_n=useNamespace("descriptions");switch(this.type){case"label":return h$3(this.tag,{style:vn,class:[_n.e("cell"),_n.e("label"),_n.is("bordered-label",Ce),_n.is("vertical-label",xe),At,hn],colSpan:xe?Fe:1},Ie);case"content":return h$3(this.tag,{style:vn,class:[_n.e("cell"),_n.e("content"),_n.is("bordered-content",Ce),_n.is("vertical-content",xe),ze,Lt],colSpan:xe?Fe:Fe*2-1},Ne);default:return h$3("td",{style:vn,class:[_n.e("cell"),ze],colSpan:Fe},[isNil(Ie)?void 0:h$3("span",{class:[_n.e("label"),hn]},Ie),h$3("span",{class:[_n.e("content"),Lt]},Ne)])}}});const descriptionsRowProps=buildProps({row:{type:Array,default:()=>[]}}),_hoisted_1$E={key:1},__default__$Q=defineComponent({name:"ElDescriptionsRow"}),_sfc_main$1h=defineComponent({...__default__$Q,props:descriptionsRowProps,setup($){const oe=inject(descriptionsKey,{});return(ae,ie)=>unref(oe).direction==="vertical"?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ae.row,(le,pe)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr1-${pe}`,cell:le,tag:"th",type:"label"},null,8,["cell"]))),128))]),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ae.row,(le,pe)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr2-${pe}`,cell:le,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(openBlock(),createElementBlock("tr",_hoisted_1$E,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ae.row,(le,pe)=>(openBlock(),createElementBlock(Fragment,{key:`tr3-${pe}`},[unref(oe).border?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(unref(ElDescriptionsCell),{cell:le,tag:"td",type:"label"},null,8,["cell"]),createVNode(unref(ElDescriptionsCell),{cell:le,tag:"td",type:"content"},null,8,["cell"])],64)):(openBlock(),createBlock(unref(ElDescriptionsCell),{key:1,cell:le,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var ElDescriptionsRow=_export_sfc$1(_sfc_main$1h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const descriptionProps=buildProps({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:useSizeProp,title:{type:String,default:""},extra:{type:String,default:""}}),__default__$P=defineComponent({name:"ElDescriptions"}),_sfc_main$1g=defineComponent({...__default__$P,props:descriptionProps,setup($){const oe=$,ae=useNamespace("descriptions"),ie=useFormSize(),le=useSlots();provide(descriptionsKey,oe);const pe=computed(()=>[ae.b(),ae.m(ie.value)]),_e=($e,xe,Ie,Ne=!1)=>($e.props||($e.props={}),xe>Ie&&($e.props.span=Ie),Ne&&($e.props.span=xe),$e),Ce=()=>{var $e;const xe=flattedChildren(($e=le.default)==null?void 0:$e.call(le)).filter(At=>{var Lt;return((Lt=At==null?void 0:At.type)==null?void 0:Lt.name)==="ElDescriptionsItem"}),Ie=[];let Ne=[],Fe=oe.column,ze=0;return xe.forEach((At,Lt)=>{var hn;const vn=((hn=At.props)==null?void 0:hn.span)||1;if(LtFe?Fe:vn),Lt===xe.length-1){const _n=oe.column-ze%oe.column;Ne.push(_e(At,_n,Fe,!0)),Ie.push(Ne);return}vn(openBlock(),createElementBlock("div",{class:normalizeClass(unref(pe))},[$e.title||$e.extra||$e.$slots.title||$e.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(ae).e("title"))},[renderSlot($e.$slots,"title",{},()=>[createTextVNode(toDisplayString$1($e.title),1)])],2),createBaseVNode("div",{class:normalizeClass(unref(ae).e("extra"))},[renderSlot($e.$slots,"extra",{},()=>[createTextVNode(toDisplayString$1($e.extra),1)])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ae).e("body"))},[createBaseVNode("table",{class:normalizeClass([unref(ae).e("table"),unref(ae).is("bordered",$e.border)])},[createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ce(),(Ie,Ne)=>(openBlock(),createBlock(ElDescriptionsRow,{key:Ne,row:Ie},null,8,["row"]))),128))])],2)],2)],2))}});var Descriptions=_export_sfc$1(_sfc_main$1g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),DescriptionsItem=defineComponent({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const ElDescriptions=withInstall(Descriptions,{DescriptionsItem}),ElDescriptionsItem=withNoopInstall(DescriptionsItem),overlayProps=buildProps({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:definePropType([String,Array,Object])},zIndex:{type:definePropType([String,Number])}}),overlayEmits={click:$=>$ instanceof MouseEvent},BLOCK="overlay";var Overlay$1=defineComponent({name:"ElOverlay",props:overlayProps,emits:overlayEmits,setup($,{slots:oe,emit:ae}){const ie=useNamespace(BLOCK),le=$e=>{ae("click",$e)},{onClick:pe,onMousedown:_e,onMouseup:Ce}=useSameTarget($.customMaskEvent?void 0:le);return()=>$.mask?createVNode("div",{class:[ie.b(),$.overlayClass],style:{zIndex:$.zIndex},onClick:pe,onMousedown:_e,onMouseup:Ce},[renderSlot(oe,"default")],PatchFlags.STYLE|PatchFlags.CLASS|PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):h$3("div",{class:$.overlayClass,style:{zIndex:$.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[renderSlot(oe,"default")])}});const ElOverlay=Overlay$1,dialogInjectionKey=Symbol("dialogInjectionKey"),dialogContentProps=buildProps({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:iconPropType},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),dialogContentEmits={close:()=>!0},_hoisted_1$D=["aria-label"],_hoisted_2$o=["id"],__default__$O=defineComponent({name:"ElDialogContent"}),_sfc_main$1f=defineComponent({...__default__$O,props:dialogContentProps,emits:dialogContentEmits,setup($){const oe=$,{t:ae}=useLocale(),{Close:ie}=CloseComponents,{dialogRef:le,headerRef:pe,bodyId:_e,ns:Ce,style:$e}=inject(dialogInjectionKey),{focusTrapRef:xe}=inject(FOCUS_TRAP_INJECTION_KEY),Ie=composeRefs(xe,le),Ne=computed(()=>oe.draggable);return useDraggable(le,pe,Ne),(Fe,ze)=>(openBlock(),createElementBlock("div",{ref:unref(Ie),class:normalizeClass([unref(Ce).b(),unref(Ce).is("fullscreen",Fe.fullscreen),unref(Ce).is("draggable",unref(Ne)),unref(Ce).is("align-center",Fe.alignCenter),{[unref(Ce).m("center")]:Fe.center},Fe.customClass]),style:normalizeStyle$1(unref($e)),tabindex:"-1"},[createBaseVNode("header",{ref_key:"headerRef",ref:pe,class:normalizeClass(unref(Ce).e("header"))},[renderSlot(Fe.$slots,"header",{},()=>[createBaseVNode("span",{role:"heading",class:normalizeClass(unref(Ce).e("title"))},toDisplayString$1(Fe.title),3)]),Fe.showClose?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref(ae)("el.dialog.close"),class:normalizeClass(unref(Ce).e("headerbtn")),type:"button",onClick:ze[0]||(ze[0]=At=>Fe.$emit("close"))},[createVNode(unref(ElIcon),{class:normalizeClass(unref(Ce).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Fe.closeIcon||unref(ie))))]),_:1},8,["class"])],10,_hoisted_1$D)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{id:unref(_e),class:normalizeClass(unref(Ce).e("body"))},[renderSlot(Fe.$slots,"default")],10,_hoisted_2$o),Fe.$slots.footer?(openBlock(),createElementBlock("footer",{key:0,class:normalizeClass(unref(Ce).e("footer"))},[renderSlot(Fe.$slots,"footer")],2)):createCommentVNode("v-if",!0)],6))}});var ElDialogContent=_export_sfc$1(_sfc_main$1f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const dialogProps=buildProps({...dialogContentProps,appendToBody:{type:Boolean,default:!1},beforeClose:{type:definePropType(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),dialogEmits={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[UPDATE_MODEL_EVENT]:$=>isBoolean$3($),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},useDialog=($,oe)=>{const ie=getCurrentInstance().emit,{nextZIndex:le}=useZIndex();let pe="";const _e=useId(),Ce=useId(),$e=ref(!1),xe=ref(!1),Ie=ref(!1),Ne=ref($.zIndex||le());let Fe,ze;const At=useGlobalConfig("namespace",defaultNamespace),Lt=computed(()=>{const Rn={},zn=`--${At.value}-dialog`;return $.fullscreen||($.top&&(Rn[`${zn}-margin-top`]=$.top),$.width&&(Rn[`${zn}-width`]=addUnit($.width))),Rn}),hn=computed(()=>$.alignCenter?{display:"flex"}:{});function vn(){ie("opened")}function _n(){ie("closed"),ie(UPDATE_MODEL_EVENT,!1),$.destroyOnClose&&(Ie.value=!1)}function bn(){ie("close")}function Cn(){ze==null||ze(),Fe==null||Fe(),$.openDelay&&$.openDelay>0?{stop:Fe}=useTimeoutFn$1(()=>Tn(),$.openDelay):Tn()}function En(){Fe==null||Fe(),ze==null||ze(),$.closeDelay&&$.closeDelay>0?{stop:ze}=useTimeoutFn$1(()=>xn(),$.closeDelay):xn()}function $n(){function Rn(zn){zn||(xe.value=!0,$e.value=!1)}$.beforeClose?$.beforeClose(Rn):En()}function wn(){$.closeOnClickModal&&$n()}function Tn(){isClient$2&&($e.value=!0)}function xn(){$e.value=!1}function kn(){ie("openAutoFocus")}function An(){ie("closeAutoFocus")}function On(Rn){var zn;((zn=Rn.detail)==null?void 0:zn.focusReason)==="pointer"&&Rn.preventDefault()}$.lockScroll&&useLockscreen($e);function Nn(){$.closeOnPressEscape&&$n()}return watch(()=>$.modelValue,Rn=>{Rn?(xe.value=!1,Cn(),Ie.value=!0,Ne.value=$.zIndex?Ne.value++:le(),nextTick(()=>{ie("open"),oe.value&&(oe.value.scrollTop=0)})):$e.value&&En()}),watch(()=>$.fullscreen,Rn=>{oe.value&&(Rn?(pe=oe.value.style.transform,oe.value.style.transform=""):oe.value.style.transform=pe)}),onMounted(()=>{$.modelValue&&($e.value=!0,Ie.value=!0,Cn())}),{afterEnter:vn,afterLeave:_n,beforeLeave:bn,handleClose:$n,onModalClick:wn,close:En,doClose:xn,onOpenAutoFocus:kn,onCloseAutoFocus:An,onCloseRequested:Nn,onFocusoutPrevented:On,titleId:_e,bodyId:Ce,closed:xe,style:Lt,overlayDialogStyle:hn,rendered:Ie,visible:$e,zIndex:Ne}},_hoisted_1$C=["aria-label","aria-labelledby","aria-describedby"],__default__$N=defineComponent({name:"ElDialog",inheritAttrs:!1}),_sfc_main$1e=defineComponent({...__default__$N,props:dialogProps,emits:dialogEmits,setup($,{expose:oe}){const ae=$,ie=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(()=>!!ie.title)),useDeprecated({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},computed(()=>!!ae.customClass));const le=useNamespace("dialog"),pe=ref(),_e=ref(),Ce=ref(),{visible:$e,titleId:xe,bodyId:Ie,style:Ne,overlayDialogStyle:Fe,rendered:ze,zIndex:At,afterEnter:Lt,afterLeave:hn,beforeLeave:vn,handleClose:_n,onModalClick:bn,onOpenAutoFocus:Cn,onCloseAutoFocus:En,onCloseRequested:$n,onFocusoutPrevented:wn}=useDialog(ae,pe);provide(dialogInjectionKey,{dialogRef:pe,headerRef:_e,bodyId:Ie,ns:le,rendered:ze,style:Ne});const Tn=useSameTarget(bn),xn=computed(()=>ae.draggable&&!ae.fullscreen);return oe({visible:$e,dialogContentRef:Ce}),(kn,An)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!kn.appendToBody},[createVNode(Transition,{name:"dialog-fade",onAfterEnter:unref(Lt),onAfterLeave:unref(hn),onBeforeLeave:unref(vn),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(unref(ElOverlay),{"custom-mask-event":"",mask:kn.modal,"overlay-class":kn.modalClass,"z-index":unref(At)},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-modal":"true","aria-label":kn.title||void 0,"aria-labelledby":kn.title?void 0:unref(xe),"aria-describedby":unref(Ie),class:normalizeClass(`${unref(le).namespace.value}-overlay-dialog`),style:normalizeStyle$1(unref(Fe)),onClick:An[0]||(An[0]=(...On)=>unref(Tn).onClick&&unref(Tn).onClick(...On)),onMousedown:An[1]||(An[1]=(...On)=>unref(Tn).onMousedown&&unref(Tn).onMousedown(...On)),onMouseup:An[2]||(An[2]=(...On)=>unref(Tn).onMouseup&&unref(Tn).onMouseup(...On))},[createVNode(unref(ElFocusTrap),{loop:"",trapped:unref($e),"focus-start-el":"container",onFocusAfterTrapped:unref(Cn),onFocusAfterReleased:unref(En),onFocusoutPrevented:unref(wn),onReleaseRequested:unref($n)},{default:withCtx(()=>[unref(ze)?(openBlock(),createBlock(ElDialogContent,mergeProps({key:0,ref_key:"dialogContentRef",ref:Ce},kn.$attrs,{"custom-class":kn.customClass,center:kn.center,"align-center":kn.alignCenter,"close-icon":kn.closeIcon,draggable:unref(xn),fullscreen:kn.fullscreen,"show-close":kn.showClose,title:kn.title,onClose:unref(_n)}),createSlots({header:withCtx(()=>[kn.$slots.title?renderSlot(kn.$slots,"title",{key:1}):renderSlot(kn.$slots,"header",{key:0,close:unref(_n),titleId:unref(xe),titleClass:unref(le).e("title")})]),default:withCtx(()=>[renderSlot(kn.$slots,"default")]),_:2},[kn.$slots.footer?{name:"footer",fn:withCtx(()=>[renderSlot(kn.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,_hoisted_1$C)]),_:3},8,["mask","overlay-class","z-index"]),[[vShow,unref($e)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var Dialog=_export_sfc$1(_sfc_main$1e,[["__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"}}),__default__$M=defineComponent({name:"ElDivider"}),_sfc_main$1d=defineComponent({...__default__$M,props:dividerProps,setup($){const oe=$,ae=useNamespace("divider"),ie=computed(()=>ae.cssVar({"border-style":oe.borderStyle}));return(le,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).b(),unref(ae).m(le.direction)]),style:normalizeStyle$1(unref(ie)),role:"separator"},[le.$slots.default&&le.direction!=="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(ae).e("text"),unref(ae).is(le.contentPosition)])},[renderSlot(le.$slots,"default")],2)):createCommentVNode("v-if",!0)],6))}});var Divider=_export_sfc$1(_sfc_main$1d,[["__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"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),drawerEmits=dialogEmits,_sfc_main$1c=defineComponent({name:"ElDrawer",components:{ElOverlay,ElFocusTrap,ElIcon,Close:close_default},inheritAttrs:!1,props:drawerProps,emits:drawerEmits,setup($,{slots:oe}){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(()=>!!oe.title)),useDeprecated({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},computed(()=>!!$.customClass));const ae=ref(),ie=ref(),le=useNamespace("drawer"),{t:pe}=useLocale(),_e=computed(()=>$.direction==="rtl"||$.direction==="ltr"),Ce=computed(()=>addUnit($.size));return{...useDialog($,ae),drawerRef:ae,focusStartRef:ie,isHorizontal:_e,drawerSize:Ce,ns:le,t:pe}}}),_hoisted_1$B=["aria-label","aria-labelledby","aria-describedby"],_hoisted_2$n=["id"],_hoisted_3$b=["aria-label"],_hoisted_4$8=["id"];function _sfc_render$p($,oe,ae,ie,le,pe){const _e=resolveComponent("close"),Ce=resolveComponent("el-icon"),$e=resolveComponent("el-focus-trap"),xe=resolveComponent("el-overlay");return openBlock(),createBlock(Teleport,{to:"body",disabled:!$.appendToBody},[createVNode(Transition,{name:$.ns.b("fade"),onAfterEnter:$.afterEnter,onAfterLeave:$.afterLeave,onBeforeLeave:$.beforeLeave,persisted:""},{default:withCtx(()=>[withDirectives(createVNode(xe,{mask:$.modal,"overlay-class":$.modalClass,"z-index":$.zIndex,onClick:$.onModalClick},{default:withCtx(()=>[createVNode($e,{loop:"",trapped:$.visible,"focus-trap-el":$.drawerRef,"focus-start-el":$.focusStartRef,onReleaseRequested:$.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",mergeProps({ref:"drawerRef","aria-modal":"true","aria-label":$.title||void 0,"aria-labelledby":$.title?void 0:$.titleId,"aria-describedby":$.bodyId},$.$attrs,{class:[$.ns.b(),$.direction,$.visible&&"open",$.customClass],style:$.isHorizontal?"width: "+$.drawerSize:"height: "+$.drawerSize,role:"dialog",onClick:oe[1]||(oe[1]=withModifiers(()=>{},["stop"]))}),[createBaseVNode("span",{ref:"focusStartRef",class:normalizeClass($.ns.e("sr-focus")),tabindex:"-1"},null,2),$.withHeader?(openBlock(),createElementBlock("header",{key:0,class:normalizeClass($.ns.e("header"))},[$.$slots.title?renderSlot($.$slots,"title",{key:1},()=>[createCommentVNode(" DEPRECATED SLOT ")]):renderSlot($.$slots,"header",{key:0,close:$.handleClose,titleId:$.titleId,titleClass:$.ns.e("title")},()=>[$.$slots.title?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,id:$.titleId,role:"heading",class:normalizeClass($.ns.e("title"))},toDisplayString$1($.title),11,_hoisted_2$n))]),$.showClose?(openBlock(),createElementBlock("button",{key:2,"aria-label":$.t("el.drawer.close"),class:normalizeClass($.ns.e("close-btn")),type:"button",onClick:oe[0]||(oe[0]=(...Ie)=>$.handleClose&&$.handleClose(...Ie))},[createVNode(Ce,{class:normalizeClass($.ns.e("close"))},{default:withCtx(()=>[createVNode(_e)]),_:1},8,["class"])],10,_hoisted_3$b)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),$.rendered?(openBlock(),createElementBlock("div",{key:1,id:$.bodyId,class:normalizeClass($.ns.e("body"))},[renderSlot($.$slots,"default")],10,_hoisted_4$8)):createCommentVNode("v-if",!0),$.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass($.ns.e("footer"))},[renderSlot($.$slots,"footer")],2)):createCommentVNode("v-if",!0)],16,_hoisted_1$B)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[vShow,$.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Drawer=_export_sfc$1(_sfc_main$1c,[["render",_sfc_render$p],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const ElDrawer=withInstall(Drawer),_sfc_main$1b=defineComponent({inheritAttrs:!1});function _sfc_render$o($,oe,ae,ie,le,pe){return renderSlot($.$slots,"default")}var Collection=_export_sfc$1(_sfc_main$1b,[["render",_sfc_render$o],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const _sfc_main$1a=defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function _sfc_render$n($,oe,ae,ie,le,pe){return renderSlot($.$slots,"default")}var CollectionItem=_export_sfc$1(_sfc_main$1a,[["render",_sfc_render$n],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const COLLECTION_ITEM_SIGN="data-el-collection-item",createCollectionWithScope=$=>{const oe=`El${$}Collection`,ae=`${oe}Item`,ie=Symbol(oe),le=Symbol(ae),pe={...Collection,name:oe,setup(){const Ce=ref(null),$e=new Map;provide(ie,{itemMap:$e,getItems:()=>{const Ie=unref(Ce);if(!Ie)return[];const Ne=Array.from(Ie.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));return[...$e.values()].sort((ze,At)=>Ne.indexOf(ze.ref)-Ne.indexOf(At.ref))},collectionRef:Ce})}},_e={...CollectionItem,name:ae,setup(Ce,{attrs:$e}){const xe=ref(null),Ie=inject(ie,void 0);provide(le,{collectionItemRef:xe}),onMounted(()=>{const Ne=unref(xe);Ne&&Ie.itemMap.set(Ne,{ref:Ne,...$e})}),onBeforeUnmount(()=>{const Ne=unref(xe);Ie.itemMap.delete(Ne)})}};return{COLLECTION_INJECTION_KEY:ie,COLLECTION_ITEM_INJECTION_KEY:le,ElCollection:pe,ElCollectionItem:_e}},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:ElCollection$1,ElCollectionItem:ElCollectionItem$1,COLLECTION_INJECTION_KEY:COLLECTION_INJECTION_KEY$1,COLLECTION_ITEM_INJECTION_KEY:COLLECTION_ITEM_INJECTION_KEY$1}=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=($,oe)=>{if(oe!=="rtl")return $;switch($){case EVENT_CODE.right:return EVENT_CODE.left;case EVENT_CODE.left:return EVENT_CODE.right;default:return $}},getFocusIntent=($,oe,ae)=>{const ie=getDirectionAwareKey($.key,ae);if(!(oe==="vertical"&&[EVENT_CODE.left,EVENT_CODE.right].includes(ie))&&!(oe==="horizontal"&&[EVENT_CODE.up,EVENT_CODE.down].includes(ie)))return MAP_KEY_TO_FOCUS_INTENT[ie]},reorderArray=($,oe)=>$.map((ae,ie)=>$[(ie+oe)%$.length]),focusFirst=$=>{const{activeElement:oe}=document;for(const ae of $)if(ae===oe||(ae.focus(),oe!==document.activeElement))return},CURRENT_TAB_ID_CHANGE_EVT="currentTabIdChange",ENTRY_FOCUS_EVT="rovingFocusGroup.entryFocus",EVT_OPTS={bubbles:!1,cancelable:!0},_sfc_main$19=defineComponent({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:rovingFocusGroupProps,emits:[CURRENT_TAB_ID_CHANGE_EVT,"entryFocus"],setup($,{emit:oe}){var ae;const ie=ref((ae=$.currentTabId||$.defaultCurrentTabId)!=null?ae:null),le=ref(!1),pe=ref(!1),_e=ref(null),{getItems:Ce}=inject(COLLECTION_INJECTION_KEY$1,void 0),$e=computed(()=>[{outline:"none"},$.style]),xe=Lt=>{oe(CURRENT_TAB_ID_CHANGE_EVT,Lt)},Ie=()=>{le.value=!0},Ne=composeEventHandlers(Lt=>{var hn;(hn=$.onMousedown)==null||hn.call($,Lt)},()=>{pe.value=!0}),Fe=composeEventHandlers(Lt=>{var hn;(hn=$.onFocus)==null||hn.call($,Lt)},Lt=>{const hn=!unref(pe),{target:vn,currentTarget:_n}=Lt;if(vn===_n&&hn&&!unref(le)){const bn=new Event(ENTRY_FOCUS_EVT,EVT_OPTS);if(_n==null||_n.dispatchEvent(bn),!bn.defaultPrevented){const Cn=Ce().filter(xn=>xn.focusable),En=Cn.find(xn=>xn.active),$n=Cn.find(xn=>xn.id===unref(ie)),Tn=[En,$n,...Cn].filter(Boolean).map(xn=>xn.ref);focusFirst(Tn)}}pe.value=!1}),ze=composeEventHandlers(Lt=>{var hn;(hn=$.onBlur)==null||hn.call($,Lt)},()=>{le.value=!1}),At=(...Lt)=>{oe("entryFocus",...Lt)};provide(ROVING_FOCUS_GROUP_INJECTION_KEY,{currentTabbedId:readonly(ie),loop:toRef$1($,"loop"),tabIndex:computed(()=>unref(le)?-1:0),rovingFocusGroupRef:_e,rovingFocusGroupRootStyle:$e,orientation:toRef$1($,"orientation"),dir:toRef$1($,"dir"),onItemFocus:xe,onItemShiftTab:Ie,onBlur:ze,onFocus:Fe,onMousedown:Ne}),watch(()=>$.currentTabId,Lt=>{ie.value=Lt??null}),useEventListener$1(_e,ENTRY_FOCUS_EVT,At)}});function _sfc_render$m($,oe,ae,ie,le,pe){return renderSlot($.$slots,"default")}var ElRovingFocusGroupImpl=_export_sfc$1(_sfc_main$19,[["render",_sfc_render$m],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const _sfc_main$18=defineComponent({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ElCollection$1,ElRovingFocusGroupImpl}});function _sfc_render$l($,oe,ae,ie,le,pe){const _e=resolveComponent("el-roving-focus-group-impl"),Ce=resolveComponent("el-focus-group-collection");return openBlock(),createBlock(Ce,null,{default:withCtx(()=>[createVNode(_e,normalizeProps(guardReactiveProps($.$attrs)),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16)]),_:3})}var ElRovingFocusGroup=_export_sfc$1(_sfc_main$18,[["render",_sfc_render$l],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const _sfc_main$17=defineComponent({components:{ElRovingFocusCollectionItem:ElCollectionItem$1},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup($,{emit:oe}){const{currentTabbedId:ae,loop:ie,onItemFocus:le,onItemShiftTab:pe}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{getItems:_e}=inject(COLLECTION_INJECTION_KEY$1,void 0),Ce=useId(),$e=ref(null),xe=composeEventHandlers(ze=>{oe("mousedown",ze)},ze=>{$.focusable?le(unref(Ce)):ze.preventDefault()}),Ie=composeEventHandlers(ze=>{oe("focus",ze)},()=>{le(unref(Ce))}),Ne=composeEventHandlers(ze=>{oe("keydown",ze)},ze=>{const{key:At,shiftKey:Lt,target:hn,currentTarget:vn}=ze;if(At===EVENT_CODE.tab&&Lt){pe();return}if(hn!==vn)return;const _n=getFocusIntent(ze);if(_n){ze.preventDefault();let Cn=_e().filter(En=>En.focusable).map(En=>En.ref);switch(_n){case"last":{Cn.reverse();break}case"prev":case"next":{_n==="prev"&&Cn.reverse();const En=Cn.indexOf(vn);Cn=ie.value?reorderArray(Cn,En+1):Cn.slice(En+1);break}}nextTick(()=>{focusFirst(Cn)})}}),Fe=computed(()=>ae.value===unref(Ce));return provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:$e,tabIndex:computed(()=>unref(Fe)?0:-1),handleMousedown:xe,handleFocus:Ie,handleKeydown:Ne}),{id:Ce,handleKeydown:Ne,handleFocus:Ie,handleMousedown:xe}}});function _sfc_render$k($,oe,ae,ie,le,pe){const _e=resolveComponent("el-roving-focus-collection-item");return openBlock(),createBlock(_e,{id:$.id,focusable:$.focusable,active:$.active},{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},8,["id","focusable","active"])}var ElRovingFocusItem=_export_sfc$1(_sfc_main$17,[["render",_sfc_render$k],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const dropdownProps=buildProps({trigger:useTooltipTriggerProps.trigger,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},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:definePropType([Number,String]),default:0},maxHeight:{type:definePropType([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:definePropType(Object)},teleported:useTooltipContentProps.teleported}),dropdownItemProps=buildProps({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:iconPropType}}),dropdownMenuProps=buildProps({onKeydown:{type:definePropType(Function)}}),FIRST_KEYS=[EVENT_CODE.down,EVENT_CODE.pageDown,EVENT_CODE.home],LAST_KEYS=[EVENT_CODE.up,EVENT_CODE.pageUp,EVENT_CODE.end],FIRST_LAST_KEYS=[...FIRST_KEYS,...LAST_KEYS],{ElCollection,ElCollectionItem,COLLECTION_INJECTION_KEY,COLLECTION_ITEM_INJECTION_KEY}=createCollectionWithScope("Dropdown"),DROPDOWN_INJECTION_KEY=Symbol("elDropdown"),{ButtonGroup:ElButtonGroup}=ElButton,_sfc_main$16=defineComponent({name:"ElDropdown",components:{ElButton,ElButtonGroup,ElScrollbar,ElDropdownCollection:ElCollection,ElTooltip,ElRovingFocusGroup,ElOnlyChild:OnlyChild,ElIcon,ArrowDown:arrow_down_default},props:dropdownProps,emits:["visible-change","click","command"],setup($,{emit:oe}){const ae=getCurrentInstance(),ie=useNamespace("dropdown"),{t:le}=useLocale(),pe=ref(),_e=ref(),Ce=ref(null),$e=ref(null),xe=ref(null),Ie=ref(null),Ne=ref(!1),Fe=[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.down],ze=computed(()=>({maxHeight:addUnit($.maxHeight)})),At=computed(()=>[ie.m(Cn.value)]),Lt=useId().value,hn=computed(()=>$.id||Lt);watch([pe,toRef$1($,"trigger")],([Bn,Mn],[Fn])=>{var Vn,jn,Zn;const Gn=isArray$c(Mn)?Mn:[Mn];(Vn=Fn==null?void 0:Fn.$el)!=null&&Vn.removeEventListener&&Fn.$el.removeEventListener("pointerenter",$n),(jn=Bn==null?void 0:Bn.$el)!=null&&jn.removeEventListener&&Bn.$el.removeEventListener("pointerenter",$n),(Zn=Bn==null?void 0:Bn.$el)!=null&&Zn.addEventListener&&Gn.includes("hover")&&Bn.$el.addEventListener("pointerenter",$n)},{immediate:!0}),onBeforeUnmount(()=>{var Bn,Mn;(Mn=(Bn=pe.value)==null?void 0:Bn.$el)!=null&&Mn.removeEventListener&&pe.value.$el.removeEventListener("pointerenter",$n)});function vn(){_n()}function _n(){var Bn;(Bn=Ce.value)==null||Bn.onClose()}function bn(){var Bn;(Bn=Ce.value)==null||Bn.onOpen()}const Cn=useFormSize();function En(...Bn){oe("command",...Bn)}function $n(){var Bn,Mn;(Mn=(Bn=pe.value)==null?void 0:Bn.$el)==null||Mn.focus()}function wn(){}function Tn(){const Bn=unref($e);Bn==null||Bn.focus(),Ie.value=null}function xn(Bn){Ie.value=Bn}function kn(Bn){Ne.value||(Bn.preventDefault(),Bn.stopImmediatePropagation())}function An(){oe("visible-change",!0)}function On(Bn){(Bn==null?void 0:Bn.type)==="keydown"&&$e.value.focus()}function Nn(){oe("visible-change",!1)}return provide(DROPDOWN_INJECTION_KEY,{contentRef:$e,role:computed(()=>$.role),triggerId:hn,isUsingKeyboard:Ne,onItemEnter:wn,onItemLeave:Tn}),provide("elDropdown",{instance:ae,dropdownSize:Cn,handleClick:vn,commandHandler:En,trigger:toRef$1($,"trigger"),hideOnClick:toRef$1($,"hideOnClick")}),{t:le,ns:ie,scrollbar:xe,wrapStyle:ze,dropdownTriggerKls:At,dropdownSize:Cn,triggerId:hn,triggerKeys:Fe,currentTabId:Ie,handleCurrentTabIdChange:xn,handlerMainButtonClick:Bn=>{oe("click",Bn)},handleEntryFocus:kn,handleClose:_n,handleOpen:bn,handleBeforeShowTooltip:An,handleShowTooltip:On,handleBeforeHideTooltip:Nn,onFocusAfterTrapped:Bn=>{var Mn,Fn;Bn.preventDefault(),(Fn=(Mn=$e.value)==null?void 0:Mn.focus)==null||Fn.call(Mn,{preventScroll:!0})},popperRef:Ce,contentRef:$e,triggeringElementRef:pe,referenceElementRef:_e}}});function _sfc_render$j($,oe,ae,ie,le,pe){var _e;const Ce=resolveComponent("el-dropdown-collection"),$e=resolveComponent("el-roving-focus-group"),xe=resolveComponent("el-scrollbar"),Ie=resolveComponent("el-only-child"),Ne=resolveComponent("el-tooltip"),Fe=resolveComponent("el-button"),ze=resolveComponent("arrow-down"),At=resolveComponent("el-icon"),Lt=resolveComponent("el-button-group");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),$.ns.is("disabled",$.disabled)])},[createVNode(Ne,{ref:"popperRef",role:$.role,effect:$.effect,"fallback-placements":["bottom","top"],"popper-options":$.popperOptions,"gpu-acceleration":!1,"hide-after":$.trigger==="hover"?$.hideTimeout:0,"manual-mode":!0,placement:$.placement,"popper-class":[$.ns.e("popper"),$.popperClass],"reference-element":(_e=$.referenceElementRef)==null?void 0:_e.$el,trigger:$.trigger,"trigger-keys":$.triggerKeys,"trigger-target-el":$.contentRef,"show-after":$.trigger==="hover"?$.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":$.triggeringElementRef,"virtual-triggering":$.splitButton,disabled:$.disabled,transition:`${$.ns.namespace.value}-zoom-in-top`,teleported:$.teleported,pure:"",persistent:"",onBeforeShow:$.handleBeforeShowTooltip,onShow:$.handleShowTooltip,onBeforeHide:$.handleBeforeHideTooltip},createSlots({content:withCtx(()=>[createVNode(xe,{ref:"scrollbar","wrap-style":$.wrapStyle,tag:"div","view-class":$.ns.e("list")},{default:withCtx(()=>[createVNode($e,{loop:$.loop,"current-tab-id":$.currentTabId,orientation:"horizontal",onCurrentTabIdChange:$.handleCurrentTabIdChange,onEntryFocus:$.handleEntryFocus},{default:withCtx(()=>[createVNode(Ce,null,{default:withCtx(()=>[renderSlot($.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[$.splitButton?void 0:{name:"default",fn:withCtx(()=>[createVNode(Ie,{id:$.triggerId,ref:"triggeringElementRef",role:"button",tabindex:$.tabindex},{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),$.splitButton?(openBlock(),createBlock(Lt,{key:0},{default:withCtx(()=>[createVNode(Fe,mergeProps({ref:"referenceElementRef"},$.buttonProps,{size:$.dropdownSize,type:$.type,disabled:$.disabled,tabindex:$.tabindex,onClick:$.handlerMainButtonClick}),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),createVNode(Fe,mergeProps({id:$.triggerId,ref:"triggeringElementRef"},$.buttonProps,{role:"button",size:$.dropdownSize,type:$.type,class:$.ns.e("caret-button"),disabled:$.disabled,tabindex:$.tabindex,"aria-label":$.t("el.dropdown.toggleDropdown")}),{default:withCtx(()=>[createVNode(At,{class:normalizeClass($.ns.e("icon"))},{default:withCtx(()=>[createVNode(ze)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):createCommentVNode("v-if",!0)],2)}var Dropdown=_export_sfc$1(_sfc_main$16,[["render",_sfc_render$j],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const _sfc_main$15=defineComponent({name:"DropdownItemImpl",components:{ElIcon},props:dropdownItemProps,emits:["pointermove","pointerleave","click","clickimpl"],setup($,{emit:oe}){const ae=useNamespace("dropdown"),{role:ie}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionItemRef:le}=inject(COLLECTION_ITEM_INJECTION_KEY,void 0),{collectionItemRef:pe}=inject(COLLECTION_ITEM_INJECTION_KEY$1,void 0),{rovingFocusGroupItemRef:_e,tabIndex:Ce,handleFocus:$e,handleKeydown:xe,handleMousedown:Ie}=inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,void 0),Ne=composeRefs(le,pe,_e),Fe=computed(()=>ie.value==="menu"?"menuitem":ie.value==="navigation"?"link":"button"),ze=composeEventHandlers(At=>{const{code:Lt}=At;if(Lt===EVENT_CODE.enter||Lt===EVENT_CODE.space)return At.preventDefault(),At.stopImmediatePropagation(),oe("clickimpl",At),!0},xe);return{ns:ae,itemRef:Ne,dataset:{[COLLECTION_ITEM_SIGN]:""},role:Fe,tabIndex:Ce,handleFocus:$e,handleKeydown:ze,handleMousedown:Ie}}}),_hoisted_1$A=["aria-disabled","tabindex","role"];function _sfc_render$i($,oe,ae,ie,le,pe){const _e=resolveComponent("el-icon");return openBlock(),createElementBlock(Fragment,null,[$.divided?(openBlock(),createElementBlock("li",mergeProps({key:0,role:"separator",class:$.ns.bem("menu","item","divided")},$.$attrs),null,16)):createCommentVNode("v-if",!0),createBaseVNode("li",mergeProps({ref:$.itemRef},{...$.dataset,...$.$attrs},{"aria-disabled":$.disabled,class:[$.ns.be("menu","item"),$.ns.is("disabled",$.disabled)],tabindex:$.tabIndex,role:$.role,onClick:oe[0]||(oe[0]=Ce=>$.$emit("clickimpl",Ce)),onFocus:oe[1]||(oe[1]=(...Ce)=>$.handleFocus&&$.handleFocus(...Ce)),onKeydown:oe[2]||(oe[2]=withModifiers((...Ce)=>$.handleKeydown&&$.handleKeydown(...Ce),["self"])),onMousedown:oe[3]||(oe[3]=(...Ce)=>$.handleMousedown&&$.handleMousedown(...Ce)),onPointermove:oe[4]||(oe[4]=Ce=>$.$emit("pointermove",Ce)),onPointerleave:oe[5]||(oe[5]=Ce=>$.$emit("pointerleave",Ce))}),[$.icon?(openBlock(),createBlock(_e,{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.icon)))]),_:1})):createCommentVNode("v-if",!0),renderSlot($.$slots,"default")],16,_hoisted_1$A)],64)}var ElDropdownItemImpl=_export_sfc$1(_sfc_main$15,[["render",_sfc_render$i],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const useDropdown=()=>{const $=inject("elDropdown",{}),oe=computed(()=>$==null?void 0:$.dropdownSize);return{elDropdown:$,_elDropdownSize:oe}},_sfc_main$14=defineComponent({name:"ElDropdownItem",components:{ElDropdownCollectionItem:ElCollectionItem,ElRovingFocusItem,ElDropdownItemImpl},inheritAttrs:!1,props:dropdownItemProps,emits:["pointermove","pointerleave","click"],setup($,{emit:oe,attrs:ae}){const{elDropdown:ie}=useDropdown(),le=getCurrentInstance(),pe=ref(null),_e=computed(()=>{var ze,At;return(At=(ze=unref(pe))==null?void 0:ze.textContent)!=null?At:""}),{onItemEnter:Ce,onItemLeave:$e}=inject(DROPDOWN_INJECTION_KEY,void 0),xe=composeEventHandlers(ze=>(oe("pointermove",ze),ze.defaultPrevented),whenMouse(ze=>{if($.disabled){$e(ze);return}const At=ze.currentTarget;At===document.activeElement||At.contains(document.activeElement)||(Ce(ze),ze.defaultPrevented||At==null||At.focus())})),Ie=composeEventHandlers(ze=>(oe("pointerleave",ze),ze.defaultPrevented),whenMouse(ze=>{$e(ze)})),Ne=composeEventHandlers(ze=>{if(!$.disabled)return oe("click",ze),ze.type!=="keydown"&&ze.defaultPrevented},ze=>{var At,Lt,hn;if($.disabled){ze.stopImmediatePropagation();return}(At=ie==null?void 0:ie.hideOnClick)!=null&&At.value&&((Lt=ie.handleClick)==null||Lt.call(ie)),(hn=ie.commandHandler)==null||hn.call(ie,$.command,le,ze)}),Fe=computed(()=>({...$,...ae}));return{handleClick:Ne,handlePointerMove:xe,handlePointerLeave:Ie,textContent:_e,propsAndAttrs:Fe}}});function _sfc_render$h($,oe,ae,ie,le,pe){var _e;const Ce=resolveComponent("el-dropdown-item-impl"),$e=resolveComponent("el-roving-focus-item"),xe=resolveComponent("el-dropdown-collection-item");return openBlock(),createBlock(xe,{disabled:$.disabled,"text-value":(_e=$.textValue)!=null?_e:$.textContent},{default:withCtx(()=>[createVNode($e,{focusable:!$.disabled},{default:withCtx(()=>[createVNode(Ce,mergeProps($.propsAndAttrs,{onPointerleave:$.handlePointerLeave,onPointermove:$.handlePointerMove,onClickimpl:$.handleClick}),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var DropdownItem=_export_sfc$1(_sfc_main$14,[["render",_sfc_render$h],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const _sfc_main$13=defineComponent({name:"ElDropdownMenu",props:dropdownMenuProps,setup($){const oe=useNamespace("dropdown"),{_elDropdownSize:ae}=useDropdown(),ie=ae.value,{focusTrapRef:le,onKeydown:pe}=inject(FOCUS_TRAP_INJECTION_KEY,void 0),{contentRef:_e,role:Ce,triggerId:$e}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionRef:xe,getItems:Ie}=inject(COLLECTION_INJECTION_KEY,void 0),{rovingFocusGroupRef:Ne,rovingFocusGroupRootStyle:Fe,tabIndex:ze,onBlur:At,onFocus:Lt,onMousedown:hn}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{collectionRef:vn}=inject(COLLECTION_INJECTION_KEY$1,void 0),_n=computed(()=>[oe.b("menu"),oe.bm("menu",ie==null?void 0:ie.value)]),bn=composeRefs(_e,xe,le,Ne,vn),Cn=composeEventHandlers($n=>{var wn;(wn=$.onKeydown)==null||wn.call($,$n)},$n=>{const{currentTarget:wn,code:Tn,target:xn}=$n;if(wn.contains(xn),EVENT_CODE.tab===Tn&&$n.stopImmediatePropagation(),$n.preventDefault(),xn!==unref(_e)||!FIRST_LAST_KEYS.includes(Tn))return;const An=Ie().filter(On=>!On.disabled).map(On=>On.ref);LAST_KEYS.includes(Tn)&&An.reverse(),focusFirst(An)});return{size:ie,rovingFocusGroupRootStyle:Fe,tabIndex:ze,dropdownKls:_n,role:Ce,triggerId:$e,dropdownListWrapperRef:bn,handleKeydown:$n=>{Cn($n),pe($n)},onBlur:At,onFocus:Lt,onMousedown:hn}}}),_hoisted_1$z=["role","aria-labelledby"];function _sfc_render$g($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("ul",{ref:$.dropdownListWrapperRef,class:normalizeClass($.dropdownKls),style:normalizeStyle$1($.rovingFocusGroupRootStyle),tabindex:-1,role:$.role,"aria-labelledby":$.triggerId,onBlur:oe[0]||(oe[0]=(..._e)=>$.onBlur&&$.onBlur(..._e)),onFocus:oe[1]||(oe[1]=(..._e)=>$.onFocus&&$.onFocus(..._e)),onKeydown:oe[2]||(oe[2]=withModifiers((..._e)=>$.handleKeydown&&$.handleKeydown(..._e),["self"])),onMousedown:oe[3]||(oe[3]=withModifiers((..._e)=>$.onMousedown&&$.onMousedown(..._e),["self"]))},[renderSlot($.$slots,"default")],46,_hoisted_1$z)}var DropdownMenu=_export_sfc$1(_sfc_main$13,[["render",_sfc_render$g],["__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$y={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$m=["id"],_hoisted_3$a=["stop-color"],_hoisted_4$7=["stop-color"],_hoisted_5$5=["id"],_hoisted_6$1=["stop-color"],_hoisted_7=["stop-color"],_hoisted_8=["id"],_hoisted_9={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_hoisted_10={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},_hoisted_11={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},_hoisted_12=["fill"],_hoisted_13=["fill"],_hoisted_14={id:"Group-Copy",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={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},_hoisted_21=["fill","xlink:href"],_hoisted_22=["fill","mask"],_hoisted_23=["fill"],__default__$L=defineComponent({name:"ImgEmpty"}),_sfc_main$12=defineComponent({...__default__$L,setup($){const oe=useNamespace("empty"),ae=useId();return(ie,le)=>(openBlock(),createElementBlock("svg",_hoisted_1$y,[createBaseVNode("defs",null,[createBaseVNode("linearGradient",{id:`linearGradient-1-${unref(ae)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[createBaseVNode("stop",{"stop-color":`var(${unref(oe).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_3$a),createBaseVNode("stop",{"stop-color":`var(${unref(oe).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,_hoisted_4$7)],8,_hoisted_2$m),createBaseVNode("linearGradient",{id:`linearGradient-2-${unref(ae)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[createBaseVNode("stop",{"stop-color":`var(${unref(oe).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_6$1),createBaseVNode("stop",{"stop-color":`var(${unref(oe).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,_hoisted_7)],8,_hoisted_5$5),createBaseVNode("rect",{id:`path-3-${unref(ae)}`,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",{id:"Oval-Copy-2",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(oe).cssVarBlockName("fill-color-3")})`},null,8,_hoisted_12),createBaseVNode("polygon",{id:"Rectangle-Copy-14",fill:`var(${unref(oe).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",{id:"Rectangle-Copy-10",fill:`var(${unref(oe).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",{id:"Rectangle-Copy-11",fill:`var(${unref(oe).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,_hoisted_16),createBaseVNode("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${unref(ae)})`,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",{id:"Rectangle-Copy-13",fill:`var(${unref(oe).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",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${unref(ae)})`,x:"13",y:"45",width:"40",height:"36"},null,8,_hoisted_19),createBaseVNode("g",_hoisted_20,[createBaseVNode("use",{id:"Mask",fill:`var(${unref(oe).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${unref(ae)}`},null,8,_hoisted_21),createBaseVNode("polygon",{id:"Rectangle-Copy",fill:`var(${unref(oe).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${unref(ae)})`,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",{id:"Rectangle-Copy-18",fill:`var(${unref(oe).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$1(_sfc_main$12,[["__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$x=["src"],_hoisted_2$l={key:1},__default__$K=defineComponent({name:"ElEmpty"}),_sfc_main$11=defineComponent({...__default__$K,props:emptyProps,setup($){const oe=$,{t:ae}=useLocale(),ie=useNamespace("empty"),le=computed(()=>oe.description||ae("el.table.emptyText")),pe=computed(()=>({width:addUnit(oe.imageSize)}));return(_e,Ce)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ie).b())},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("image")),style:normalizeStyle$1(unref(pe))},[_e.image?(openBlock(),createElementBlock("img",{key:0,src:_e.image,ondragstart:"return false"},null,8,_hoisted_1$x)):renderSlot(_e.$slots,"image",{key:1},()=>[createVNode(ImgEmpty)])],6),createBaseVNode("div",{class:normalizeClass(unref(ie).e("description"))},[_e.$slots.description?renderSlot(_e.$slots,"description",{key:0}):(openBlock(),createElementBlock("p",_hoisted_2$l,toDisplayString$1(unref(le)),1))],2),_e.$slots.default?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("bottom"))},[renderSlot(_e.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var Empty=_export_sfc$1(_sfc_main$11,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const ElEmpty=withInstall(Empty),imageViewerProps=buildProps({urlList:{type:definePropType(Array),default:()=>mutable([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),imageViewerEmits={close:()=>!0,switch:$=>isNumber$5($)},_hoisted_1$w=["src"],__default__$J=defineComponent({name:"ElImageViewer"}),_sfc_main$10=defineComponent({...__default__$J,props:imageViewerProps,emits:imageViewerEmits,setup($,{expose:oe,emit:ae}){const ie=$,le={CONTAIN:{name:"contain",icon:markRaw(full_screen_default)},ORIGINAL:{name:"original",icon:markRaw(scale_to_original_default)}},{t:pe}=useLocale(),_e=useNamespace("image-viewer"),{nextZIndex:Ce}=useZIndex(),$e=ref(),xe=ref([]),Ie=effectScope(),Ne=ref(!0),Fe=ref(ie.initialIndex),ze=shallowRef(le.CONTAIN),At=ref({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),Lt=computed(()=>{const{urlList:Mn}=ie;return Mn.length<=1}),hn=computed(()=>Fe.value===0),vn=computed(()=>Fe.value===ie.urlList.length-1),_n=computed(()=>ie.urlList[Fe.value]),bn=computed(()=>{const{scale:Mn,deg:Fn,offsetX:Vn,offsetY:jn,enableTransition:Zn}=At.value;let Gn=Vn/Mn,Xn=jn/Mn;switch(Fn%360){case 90:case-270:[Gn,Xn]=[Xn,-Gn];break;case 180:case-180:[Gn,Xn]=[-Gn,-Xn];break;case 270:case-90:[Gn,Xn]=[-Xn,Gn];break}const cr={transform:`scale(${Mn}) rotate(${Fn}deg) translate(${Gn}px, ${Xn}px)`,transition:Zn?"transform .3s":""};return ze.value.name===le.CONTAIN.name&&(cr.maxWidth=cr.maxHeight="100%"),cr}),Cn=computed(()=>isNumber$5(ie.zIndex)?ie.zIndex:Ce());function En(){wn(),ae("close")}function $n(){const Mn=throttle$1(Vn=>{switch(Vn.code){case EVENT_CODE.esc:ie.closeOnPressEscape&&En();break;case EVENT_CODE.space:On();break;case EVENT_CODE.left:Rn();break;case EVENT_CODE.up:Bn("zoomIn");break;case EVENT_CODE.right:zn();break;case EVENT_CODE.down:Bn("zoomOut");break}}),Fn=throttle$1(Vn=>{const jn=Vn.deltaY||Vn.deltaX;Bn(jn<0?"zoomIn":"zoomOut",{zoomRate:ie.zoomRate,enableTransition:!1})});Ie.run(()=>{useEventListener$1(document,"keydown",Mn),useEventListener$1(document,"wheel",Fn)})}function wn(){Ie.stop()}function Tn(){Ne.value=!1}function xn(Mn){Ne.value=!1,Mn.target.alt=pe("el.image.error")}function kn(Mn){if(Ne.value||Mn.button!==0||!$e.value)return;At.value.enableTransition=!1;const{offsetX:Fn,offsetY:Vn}=At.value,jn=Mn.pageX,Zn=Mn.pageY,Gn=throttle$1(cr=>{At.value={...At.value,offsetX:Fn+cr.pageX-jn,offsetY:Vn+cr.pageY-Zn}}),Xn=useEventListener$1(document,"mousemove",Gn);useEventListener$1(document,"mouseup",()=>{Xn()}),Mn.preventDefault()}function An(){At.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function On(){if(Ne.value)return;const Mn=keysOf(le),Fn=Object.values(le),Vn=ze.value.name,Zn=(Fn.findIndex(Gn=>Gn.name===Vn)+1)%Mn.length;ze.value=le[Mn[Zn]],An()}function Nn(Mn){const Fn=ie.urlList.length;Fe.value=(Mn+Fn)%Fn}function Rn(){hn.value&&!ie.infinite||Nn(Fe.value-1)}function zn(){vn.value&&!ie.infinite||Nn(Fe.value+1)}function Bn(Mn,Fn={}){if(Ne.value)return;const{zoomRate:Vn,rotateDeg:jn,enableTransition:Zn}={zoomRate:ie.zoomRate,rotateDeg:90,enableTransition:!0,...Fn};switch(Mn){case"zoomOut":At.value.scale>.2&&(At.value.scale=Number.parseFloat((At.value.scale/Vn).toFixed(3)));break;case"zoomIn":At.value.scale<7&&(At.value.scale=Number.parseFloat((At.value.scale*Vn).toFixed(3)));break;case"clockwise":At.value.deg+=jn;break;case"anticlockwise":At.value.deg-=jn;break}At.value.enableTransition=Zn}return watch(_n,()=>{nextTick(()=>{const Mn=xe.value[0];Mn!=null&&Mn.complete||(Ne.value=!0)})}),watch(Fe,Mn=>{An(),ae("switch",Mn)}),onMounted(()=>{var Mn,Fn;$n(),(Fn=(Mn=$e.value)==null?void 0:Mn.focus)==null||Fn.call(Mn)}),oe({setActiveItem:Nn}),(Mn,Fn)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!Mn.teleported},[createVNode(Transition,{name:"viewer-fade",appear:""},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"wrapper",ref:$e,tabindex:-1,class:normalizeClass(unref(_e).e("wrapper")),style:normalizeStyle$1({zIndex:unref(Cn)})},[createBaseVNode("div",{class:normalizeClass(unref(_e).e("mask")),onClick:Fn[0]||(Fn[0]=withModifiers(Vn=>Mn.hideOnClickModal&&En(),["self"]))},null,2),createCommentVNode(" CLOSE "),createBaseVNode("span",{class:normalizeClass([unref(_e).e("btn"),unref(_e).e("close")]),onClick:En},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(close_default))]),_:1})],2),createCommentVNode(" ARROW "),unref(Lt)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",{class:normalizeClass([unref(_e).e("btn"),unref(_e).e("prev"),unref(_e).is("disabled",!Mn.infinite&&unref(hn))]),onClick:Rn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),createBaseVNode("span",{class:normalizeClass([unref(_e).e("btn"),unref(_e).e("next"),unref(_e).is("disabled",!Mn.infinite&&unref(vn))]),onClick:zn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2)],64)),createCommentVNode(" ACTIONS "),createBaseVNode("div",{class:normalizeClass([unref(_e).e("btn"),unref(_e).e("actions")])},[createBaseVNode("div",{class:normalizeClass(unref(_e).e("actions__inner"))},[createVNode(unref(ElIcon),{onClick:Fn[1]||(Fn[1]=Vn=>Bn("zoomOut"))},{default:withCtx(()=>[createVNode(unref(zoom_out_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Fn[2]||(Fn[2]=Vn=>Bn("zoomIn"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(_e).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:On},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(ze).icon)))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(_e).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:Fn[3]||(Fn[3]=Vn=>Bn("anticlockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_left_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Fn[4]||(Fn[4]=Vn=>Bn("clockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_right_default))]),_:1})],2)],2),createCommentVNode(" CANVAS "),createBaseVNode("div",{class:normalizeClass(unref(_e).e("canvas"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Mn.urlList,(Vn,jn)=>withDirectives((openBlock(),createElementBlock("img",{ref_for:!0,ref:Zn=>xe.value[jn]=Zn,key:Vn,src:Vn,style:normalizeStyle$1(unref(bn)),class:normalizeClass(unref(_e).e("img")),onLoad:Tn,onError:xn,onMousedown:kn},null,46,_hoisted_1$w)),[[vShow,jn===Fe.value]])),128))],2),renderSlot(Mn.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var ImageViewer=_export_sfc$1(_sfc_main$10,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const ElImageViewer=withInstall(ImageViewer),imageProps=buildProps({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:definePropType([String,Object])},previewSrcList:{type:definePropType(Array),default:()=>mutable([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),imageEmits={load:$=>$ instanceof Event,error:$=>$ instanceof Event,switch:$=>isNumber$5($),close:()=>!0,show:()=>!0},_hoisted_1$v=["src","loading"],_hoisted_2$k={key:0},__default__$I=defineComponent({name:"ElImage",inheritAttrs:!1}),_sfc_main$$=defineComponent({...__default__$I,props:imageProps,emits:imageEmits,setup($,{emit:oe}){const ae=$;let ie="";const{t:le}=useLocale(),pe=useNamespace("image"),_e=useAttrs$1(),Ce=useAttrs(),$e=ref(),xe=ref(!1),Ie=ref(!0),Ne=ref(!1),Fe=ref(),ze=ref(),At=isClient$2&&"loading"in HTMLImageElement.prototype;let Lt,hn;const vn=computed(()=>_e.style),_n=computed(()=>{const{fit:Mn}=ae;return isClient$2&&Mn?{objectFit:Mn}:{}}),bn=computed(()=>{const{previewSrcList:Mn}=ae;return Array.isArray(Mn)&&Mn.length>0}),Cn=computed(()=>{const{previewSrcList:Mn,initialIndex:Fn}=ae;let Vn=Fn;return Fn>Mn.length-1&&(Vn=0),Vn}),En=computed(()=>ae.loading==="eager"?!1:!At&&ae.loading==="lazy"||ae.lazy),$n=()=>{isClient$2&&(Ie.value=!0,xe.value=!1,$e.value=ae.src)};function wn(Mn){Ie.value=!1,xe.value=!1,oe("load",Mn)}function Tn(Mn){Ie.value=!1,xe.value=!0,oe("error",Mn)}function xn(){isInContainer(Fe.value,ze.value)&&($n(),On())}const kn=useThrottleFn(xn,200);async function An(){var Mn;if(!isClient$2)return;await nextTick();const{scrollContainer:Fn}=ae;isElement$2(Fn)?ze.value=Fn:isString$7(Fn)&&Fn!==""?ze.value=(Mn=document.querySelector(Fn))!=null?Mn:void 0:Fe.value&&(ze.value=getScrollContainer(Fe.value)),ze.value&&(Lt=useEventListener$1(ze,"scroll",kn),setTimeout(()=>xn(),100))}function On(){!isClient$2||!ze.value||!kn||(Lt==null||Lt(),ze.value=void 0)}function Nn(Mn){if(Mn.ctrlKey){if(Mn.deltaY<0)return Mn.preventDefault(),!1;if(Mn.deltaY>0)return Mn.preventDefault(),!1}}function Rn(){bn.value&&(hn=useEventListener$1("wheel",Nn,{passive:!1}),ie=document.body.style.overflow,document.body.style.overflow="hidden",Ne.value=!0,oe("show"))}function zn(){hn==null||hn(),document.body.style.overflow=ie,Ne.value=!1,oe("close")}function Bn(Mn){oe("switch",Mn)}return watch(()=>ae.src,()=>{En.value?(Ie.value=!0,xe.value=!1,On(),An()):$n()}),onMounted(()=>{En.value?An():$n()}),(Mn,Fn)=>(openBlock(),createElementBlock("div",{ref_key:"container",ref:Fe,class:normalizeClass([unref(pe).b(),Mn.$attrs.class]),style:normalizeStyle$1(unref(vn))},[xe.value?renderSlot(Mn.$slots,"error",{key:0},()=>[createBaseVNode("div",{class:normalizeClass(unref(pe).e("error"))},toDisplayString$1(unref(le)("el.image.error")),3)]):(openBlock(),createElementBlock(Fragment,{key:1},[$e.value!==void 0?(openBlock(),createElementBlock("img",mergeProps({key:0},unref(Ce),{src:$e.value,loading:Mn.loading,style:unref(_n),class:[unref(pe).e("inner"),unref(bn)&&unref(pe).e("preview"),Ie.value&&unref(pe).is("loading")],onClick:Rn,onLoad:wn,onError:Tn}),null,16,_hoisted_1$v)):createCommentVNode("v-if",!0),Ie.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(pe).e("wrapper"))},[renderSlot(Mn.$slots,"placeholder",{},()=>[createBaseVNode("div",{class:normalizeClass(unref(pe).e("placeholder"))},null,2)])],2)):createCommentVNode("v-if",!0)],64)),unref(bn)?(openBlock(),createElementBlock(Fragment,{key:2},[Ne.value?(openBlock(),createBlock(unref(ElImageViewer),{key:0,"z-index":Mn.zIndex,"initial-index":unref(Cn),infinite:Mn.infinite,"zoom-rate":Mn.zoomRate,"url-list":Mn.previewSrcList,"hide-on-click-modal":Mn.hideOnClickModal,teleported:Mn.previewTeleported,"close-on-press-escape":Mn.closeOnPressEscape,onClose:zn,onSwitch:Bn},{default:withCtx(()=>[Mn.$slots.viewer?(openBlock(),createElementBlock("div",_hoisted_2$k,[renderSlot(Mn.$slots,"viewer")])):createCommentVNode("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0)],6))}});var Image$1=_export_sfc$1(_sfc_main$$,[["__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.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:useSizeProp,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:$=>$===null||isNumber$5($)||["min","max"].includes($),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:$=>$>=0&&$===Number.parseInt(`${$}`,10)},validateEvent:{type:Boolean,default:!0}}),inputNumberEmits={[CHANGE_EVENT]:($,oe)=>oe!==$,blur:$=>$ instanceof FocusEvent,focus:$=>$ instanceof FocusEvent,[INPUT_EVENT]:$=>isNumber$5($)||isNil($),[UPDATE_MODEL_EVENT]:$=>isNumber$5($)||isNil($)},_hoisted_1$u=["aria-label","onKeydown"],_hoisted_2$j=["aria-label","onKeydown"],__default__$H=defineComponent({name:"ElInputNumber"}),_sfc_main$_=defineComponent({...__default__$H,props:inputNumberProps,emits:inputNumberEmits,setup($,{expose:oe,emit:ae}){const ie=$,{t:le}=useLocale(),pe=useNamespace("input-number"),_e=ref(),Ce=reactive({currentValue:ie.modelValue,userInput:null}),{formItem:$e}=useFormItem(),xe=computed(()=>isNumber$5(ie.modelValue)&&ie.modelValue<=ie.min),Ie=computed(()=>isNumber$5(ie.modelValue)&&ie.modelValue>=ie.max),Ne=computed(()=>{const Nn=vn(ie.step);return isUndefined$1(ie.precision)?Math.max(vn(ie.modelValue),Nn):(Nn>ie.precision,ie.precision)}),Fe=computed(()=>ie.controls&&ie.controlsPosition==="right"),ze=useFormSize(),At=useFormDisabled(),Lt=computed(()=>{if(Ce.userInput!==null)return Ce.userInput;let Nn=Ce.currentValue;if(isNil(Nn))return"";if(isNumber$5(Nn)){if(Number.isNaN(Nn))return"";isUndefined$1(ie.precision)||(Nn=Nn.toFixed(ie.precision))}return Nn}),hn=(Nn,Rn)=>{if(isUndefined$1(Rn)&&(Rn=Ne.value),Rn===0)return Math.round(Nn);let zn=String(Nn);const Bn=zn.indexOf(".");if(Bn===-1||!zn.replace(".","").split("")[Bn+Rn])return Nn;const Vn=zn.length;return zn.charAt(Vn-1)==="5"&&(zn=`${zn.slice(0,Math.max(0,Vn-1))}6`),Number.parseFloat(Number(zn).toFixed(Rn))},vn=Nn=>{if(isNil(Nn))return 0;const Rn=Nn.toString(),zn=Rn.indexOf(".");let Bn=0;return zn!==-1&&(Bn=Rn.length-zn-1),Bn},_n=(Nn,Rn=1)=>isNumber$5(Nn)?hn(Nn+ie.step*Rn):Ce.currentValue,bn=()=>{if(ie.readonly||At.value||Ie.value)return;const Nn=Number(Lt.value)||0,Rn=_n(Nn);$n(Rn),ae(INPUT_EVENT,Ce.currentValue)},Cn=()=>{if(ie.readonly||At.value||xe.value)return;const Nn=Number(Lt.value)||0,Rn=_n(Nn,-1);$n(Rn),ae(INPUT_EVENT,Ce.currentValue)},En=(Nn,Rn)=>{const{max:zn,min:Bn,step:Mn,precision:Fn,stepStrictly:Vn,valueOnClear:jn}=ie;let Zn=Number(Nn);if(isNil(Nn)||Number.isNaN(Zn))return null;if(Nn===""){if(jn===null)return null;Zn=isString$7(jn)?{min:Bn,max:zn}[jn]:jn}return Vn&&(Zn=hn(Math.round(Zn/Mn)*Mn,Fn)),isUndefined$1(Fn)||(Zn=hn(Zn,Fn)),(Zn>zn||Znzn?zn:Bn,Rn&&ae(UPDATE_MODEL_EVENT,Zn)),Zn},$n=(Nn,Rn=!0)=>{var zn;const Bn=Ce.currentValue,Mn=En(Nn);if(!Rn){ae(UPDATE_MODEL_EVENT,Mn);return}Bn!==Mn&&(Ce.userInput=null,ae(UPDATE_MODEL_EVENT,Mn),ae(CHANGE_EVENT,Mn,Bn),ie.validateEvent&&((zn=$e==null?void 0:$e.validate)==null||zn.call($e,"change").catch(Fn=>void 0)),Ce.currentValue=Mn)},wn=Nn=>{Ce.userInput=Nn;const Rn=Nn===""?null:Number(Nn);ae(INPUT_EVENT,Rn),$n(Rn,!1)},Tn=Nn=>{const Rn=Nn!==""?Number(Nn):"";(isNumber$5(Rn)&&!Number.isNaN(Rn)||Nn==="")&&$n(Rn),Ce.userInput=null},xn=()=>{var Nn,Rn;(Rn=(Nn=_e.value)==null?void 0:Nn.focus)==null||Rn.call(Nn)},kn=()=>{var Nn,Rn;(Rn=(Nn=_e.value)==null?void 0:Nn.blur)==null||Rn.call(Nn)},An=Nn=>{ae("focus",Nn)},On=Nn=>{var Rn;ae("blur",Nn),ie.validateEvent&&((Rn=$e==null?void 0:$e.validate)==null||Rn.call($e,"blur").catch(zn=>void 0))};return watch(()=>ie.modelValue,Nn=>{const Rn=En(Ce.userInput),zn=En(Nn,!0);!isNumber$5(Rn)&&(!Rn||Rn!==zn)&&(Ce.currentValue=zn,Ce.userInput=null)},{immediate:!0}),onMounted(()=>{var Nn;const{min:Rn,max:zn,modelValue:Bn}=ie,Mn=(Nn=_e.value)==null?void 0:Nn.input;if(Mn.setAttribute("role","spinbutton"),Number.isFinite(zn)?Mn.setAttribute("aria-valuemax",String(zn)):Mn.removeAttribute("aria-valuemax"),Number.isFinite(Rn)?Mn.setAttribute("aria-valuemin",String(Rn)):Mn.removeAttribute("aria-valuemin"),Mn.setAttribute("aria-valuenow",String(Ce.currentValue)),Mn.setAttribute("aria-disabled",String(At.value)),!isNumber$5(Bn)&&Bn!=null){let Fn=Number(Bn);Number.isNaN(Fn)&&(Fn=null),ae(UPDATE_MODEL_EVENT,Fn)}}),onUpdated(()=>{var Nn;const Rn=(Nn=_e.value)==null?void 0:Nn.input;Rn==null||Rn.setAttribute("aria-valuenow",`${Ce.currentValue}`)}),oe({focus:xn,blur:kn}),(Nn,Rn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(pe).b(),unref(pe).m(unref(ze)),unref(pe).is("disabled",unref(At)),unref(pe).is("without-controls",!Nn.controls),unref(pe).is("controls-right",unref(Fe))]),onDragstart:Rn[1]||(Rn[1]=withModifiers(()=>{},["prevent"]))},[Nn.controls?withDirectives((openBlock(),createElementBlock("span",{key:0,role:"button","aria-label":unref(le)("el.inputNumber.decrease"),class:normalizeClass([unref(pe).e("decrease"),unref(pe).is("disabled",unref(xe))]),onKeydown:withKeys(Cn,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(Fe)?(openBlock(),createBlock(unref(arrow_down_default),{key:0})):(openBlock(),createBlock(unref(minus_default),{key:1}))]),_:1})],42,_hoisted_1$u)),[[unref(vRepeatClick),Cn]]):createCommentVNode("v-if",!0),Nn.controls?withDirectives((openBlock(),createElementBlock("span",{key:1,role:"button","aria-label":unref(le)("el.inputNumber.increase"),class:normalizeClass([unref(pe).e("increase"),unref(pe).is("disabled",unref(Ie))]),onKeydown:withKeys(bn,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(Fe)?(openBlock(),createBlock(unref(arrow_up_default),{key:0})):(openBlock(),createBlock(unref(plus_default),{key:1}))]),_:1})],42,_hoisted_2$j)),[[unref(vRepeatClick),bn]]):createCommentVNode("v-if",!0),createVNode(unref(ElInput),{id:Nn.id,ref_key:"input",ref:_e,type:"number",step:Nn.step,"model-value":unref(Lt),placeholder:Nn.placeholder,readonly:Nn.readonly,disabled:unref(At),size:unref(ze),max:Nn.max,min:Nn.min,name:Nn.name,label:Nn.label,"validate-event":!1,onWheel:Rn[0]||(Rn[0]=withModifiers(()=>{},["prevent"])),onKeydown:[withKeys(withModifiers(bn,["prevent"]),["up"]),withKeys(withModifiers(Cn,["prevent"]),["down"])],onBlur:On,onFocus:An,onInput:wn,onChange:Tn},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var InputNumber=_export_sfc$1(_sfc_main$_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const ElInputNumber=withInstall(InputNumber),linkProps=buildProps({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:iconPropType}}),linkEmits={click:$=>$ instanceof MouseEvent},_hoisted_1$t=["href"],__default__$G=defineComponent({name:"ElLink"}),_sfc_main$Z=defineComponent({...__default__$G,props:linkProps,emits:linkEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("link"),le=computed(()=>[ie.b(),ie.m(ae.type),ie.is("disabled",ae.disabled),ie.is("underline",ae.underline&&!ae.disabled)]);function pe(_e){ae.disabled||oe("click",_e)}return(_e,Ce)=>(openBlock(),createElementBlock("a",{class:normalizeClass(unref(le)),href:_e.disabled||!_e.href?void 0:_e.href,onClick:pe},[_e.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(_e.icon)))]),_:1})):createCommentVNode("v-if",!0),_e.$slots.default?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(ie).e("inner"))},[renderSlot(_e.$slots,"default")],2)):createCommentVNode("v-if",!0),_e.$slots.icon?renderSlot(_e.$slots,"icon",{key:2}):createCommentVNode("v-if",!0)],10,_hoisted_1$t))}});var Link=_export_sfc$1(_sfc_main$Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const ElLink=withInstall(Link);let SubMenu$1=class{constructor(oe,ae){this.parent=oe,this.domNode=ae,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(oe){oe===this.subMenuItems.length?oe=0:oe<0&&(oe=this.subMenuItems.length-1),this.subMenuItems[oe].focus(),this.subIndex=oe}addListeners(){const oe=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,ae=>{ae.addEventListener("keydown",ie=>{let le=!1;switch(ie.code){case EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),le=!0;break}case EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),le=!0;break}case EVENT_CODE.tab:{triggerEvent(oe,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{le=!0,ie.currentTarget.click();break}}return le&&(ie.preventDefault(),ie.stopPropagation()),!1})})}},MenuItem$1=class{constructor(oe,ae){this.domNode=oe,this.submenu=null,this.submenu=null,this.init(ae)}init(oe){this.domNode.setAttribute("tabindex","0");const ae=this.domNode.querySelector(`.${oe}-menu`);ae&&(this.submenu=new SubMenu$1(this,ae)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",oe=>{let ae=!1;switch(oe.code){case EVENT_CODE.down:{triggerEvent(oe.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),ae=!0;break}case EVENT_CODE.up:{triggerEvent(oe.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),ae=!0;break}case EVENT_CODE.tab:{triggerEvent(oe.currentTarget,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{ae=!0,oe.currentTarget.click();break}}ae&&oe.preventDefault()})}},Menu$1=class{constructor(oe,ae){this.domNode=oe,this.init(ae)}init(oe){const ae=this.domNode.childNodes;Array.from(ae).forEach(ie=>{ie.nodeType===1&&new MenuItem$1(ie,oe)})}};const _sfc_main$Y=defineComponent({name:"ElMenuCollapseTransition",setup(){const $=useNamespace("menu");return{listeners:{onBeforeEnter:ae=>ae.style.opacity="0.2",onEnter(ae,ie){addClass(ae,`${$.namespace.value}-opacity-transition`),ae.style.opacity="1",ie()},onAfterEnter(ae){removeClass(ae,`${$.namespace.value}-opacity-transition`),ae.style.opacity=""},onBeforeLeave(ae){ae.dataset||(ae.dataset={}),hasClass(ae,$.m("collapse"))?(removeClass(ae,$.m("collapse")),ae.dataset.oldOverflow=ae.style.overflow,ae.dataset.scrollWidth=ae.clientWidth.toString(),addClass(ae,$.m("collapse"))):(addClass(ae,$.m("collapse")),ae.dataset.oldOverflow=ae.style.overflow,ae.dataset.scrollWidth=ae.clientWidth.toString(),removeClass(ae,$.m("collapse"))),ae.style.width=`${ae.scrollWidth}px`,ae.style.overflow="hidden"},onLeave(ae){addClass(ae,"horizontal-collapse-transition"),ae.style.width=`${ae.dataset.scrollWidth}px`}}}}});function _sfc_render$f($,oe,ae,ie,le,pe){return openBlock(),createBlock(Transition,mergeProps({mode:"out-in"},$.listeners),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16)}var ElMenuCollapseTransition=_export_sfc$1(_sfc_main$Y,[["render",_sfc_render$f],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function useMenu($,oe){const ae=computed(()=>{let le=$.parent;const pe=[oe.value];for(;le.type.name!=="ElMenu";)le.props.index&&pe.unshift(le.props.index),le=le.parent;return pe});return{parentMenu:computed(()=>{let le=$.parent;for(;le&&!["ElMenu","ElSubMenu"].includes(le.type.name);)le=le.parent;return le}),indexPath:ae}}function useMenuColor($){return computed(()=>{const ae=$.backgroundColor;return ae?new TinyColor(ae).shade(20).toString():""})}const useMenuCssVar=($,oe)=>{const ae=useNamespace("menu");return computed(()=>ae.cssVarBlock({"text-color":$.textColor||"","hover-text-color":$.textColor||"","bg-color":$.backgroundColor||"","hover-bg-color":useMenuColor($).value||"","active-color":$.activeTextColor||"",level:`${oe}`}))},subMenuProps=buildProps({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:iconPropType},expandOpenIcon:{type:iconPropType},collapseCloseIcon:{type:iconPropType},collapseOpenIcon:{type:iconPropType}}),COMPONENT_NAME$c="ElSubMenu";var SubMenu=defineComponent({name:COMPONENT_NAME$c,props:subMenuProps,setup($,{slots:oe,expose:ae}){useDeprecated({from:"popper-append-to-body",replacement:"teleported",scope:COMPONENT_NAME$c,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},computed(()=>$.popperAppendToBody!==void 0));const ie=getCurrentInstance(),{indexPath:le,parentMenu:pe}=useMenu(ie,computed(()=>$.index)),_e=useNamespace("menu"),Ce=useNamespace("sub-menu"),$e=inject("rootMenu");$e||throwError$1(COMPONENT_NAME$c,"can not inject root menu");const xe=inject(`subMenu:${pe.value.uid}`);xe||throwError$1(COMPONENT_NAME$c,"can not inject sub menu");const Ie=ref({}),Ne=ref({});let Fe;const ze=ref(!1),At=ref(),Lt=ref(null),hn=computed(()=>An.value==="horizontal"&&_n.value?"bottom-start":"right-start"),vn=computed(()=>An.value==="horizontal"&&_n.value||An.value==="vertical"&&!$e.props.collapse?$.expandCloseIcon&&$.expandOpenIcon?$n.value?$.expandOpenIcon:$.expandCloseIcon:arrow_down_default:$.collapseCloseIcon&&$.collapseOpenIcon?$n.value?$.collapseOpenIcon:$.collapseCloseIcon:arrow_right_default),_n=computed(()=>xe.level===0),bn=computed(()=>{var jn;const Zn=(jn=$.teleported)!=null?jn:$.popperAppendToBody;return Zn===void 0?_n.value:Zn}),Cn=computed(()=>$e.props.collapse?`${_e.namespace.value}-zoom-in-left`:`${_e.namespace.value}-zoom-in-top`),En=computed(()=>An.value==="horizontal"&&_n.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),$n=computed(()=>$e.openedMenus.includes($.index)),wn=computed(()=>{let jn=!1;return Object.values(Ie.value).forEach(Zn=>{Zn.active&&(jn=!0)}),Object.values(Ne.value).forEach(Zn=>{Zn.active&&(jn=!0)}),jn}),Tn=computed(()=>$e.props.backgroundColor||""),xn=computed(()=>$e.props.activeTextColor||""),kn=computed(()=>$e.props.textColor||""),An=computed(()=>$e.props.mode),On=reactive({index:$.index,indexPath:le,active:wn}),Nn=useMenuCssVar($e.props,xe.level+1),Rn=computed(()=>An.value!=="horizontal"?{color:kn.value}:{borderBottomColor:wn.value?$e.props.activeTextColor?xn.value:"":"transparent",color:wn.value?xn.value:kn.value}),zn=()=>{var jn,Zn,Gn;return(Gn=(Zn=(jn=Lt.value)==null?void 0:jn.popperRef)==null?void 0:Zn.popperInstanceRef)==null?void 0:Gn.destroy()},Bn=jn=>{jn||zn()},Mn=()=>{$e.props.menuTrigger==="hover"&&$e.props.mode==="horizontal"||$e.props.collapse&&$e.props.mode==="vertical"||$.disabled||$e.handleSubMenuClick({index:$.index,indexPath:le.value,active:wn.value})},Fn=(jn,Zn=$.showTimeout)=>{var Gn;jn.type!=="focus"&&($e.props.menuTrigger==="click"&&$e.props.mode==="horizontal"||!$e.props.collapse&&$e.props.mode==="vertical"||$.disabled||(xe.mouseInChild.value=!0,Fe==null||Fe(),{stop:Fe}=useTimeoutFn$1(()=>{$e.openMenu($.index,le.value)},Zn),bn.value&&((Gn=pe.value.vnode.el)==null||Gn.dispatchEvent(new MouseEvent("mouseenter")))))},Vn=(jn=!1)=>{var Zn,Gn;$e.props.menuTrigger==="click"&&$e.props.mode==="horizontal"||!$e.props.collapse&&$e.props.mode==="vertical"||(Fe==null||Fe(),xe.mouseInChild.value=!1,{stop:Fe}=useTimeoutFn$1(()=>!ze.value&&$e.closeMenu($.index,le.value),$.hideTimeout),bn.value&&jn&&((Zn=ie.parent)==null?void 0:Zn.type.name)==="ElSubMenu"&&((Gn=xe.handleMouseleave)==null||Gn.call(xe,!0)))};watch(()=>$e.props.collapse,jn=>Bn(!!jn));{const jn=Gn=>{Ne.value[Gn.index]=Gn},Zn=Gn=>{delete Ne.value[Gn.index]};provide(`subMenu:${ie.uid}`,{addSubMenu:jn,removeSubMenu:Zn,handleMouseleave:Vn,mouseInChild:ze,level:xe.level+1})}return ae({opened:$n}),onMounted(()=>{$e.addSubMenu(On),xe.addSubMenu(On)}),onBeforeUnmount(()=>{xe.removeSubMenu(On),$e.removeSubMenu(On)}),()=>{var jn;const Zn=[(jn=oe.title)==null?void 0:jn.call(oe),h$3(ElIcon,{class:Ce.e("icon-arrow"),style:{transform:$n.value?$.expandCloseIcon&&$.expandOpenIcon||$.collapseCloseIcon&&$.collapseOpenIcon&&$e.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>isString$7(vn.value)?h$3(ie.appContext.components[vn.value]):h$3(vn.value)})],Gn=$e.isMenuPopup?h$3(ElTooltip,{ref:Lt,visible:$n.value,effect:"light",pure:!0,offset:$.popperOffset,showArrow:!1,persistent:!0,popperClass:$.popperClass,placement:hn.value,teleported:bn.value,fallbackPlacements:En.value,transition:Cn.value,gpuAcceleration:!1},{content:()=>{var Xn;return h$3("div",{class:[_e.m(An.value),_e.m("popup-container"),$.popperClass],onMouseenter:cr=>Fn(cr,100),onMouseleave:()=>Vn(!0),onFocus:cr=>Fn(cr,100)},[h$3("ul",{class:[_e.b(),_e.m("popup"),_e.m(`popup-${hn.value}`)],style:Nn.value},[(Xn=oe.default)==null?void 0:Xn.call(oe)])])},default:()=>h$3("div",{class:Ce.e("title"),style:[Rn.value,{backgroundColor:Tn.value}],onClick:Mn},Zn)}):h$3(Fragment,{},[h$3("div",{class:Ce.e("title"),style:[Rn.value,{backgroundColor:Tn.value}],ref:At,onClick:Mn},Zn),h$3(_CollapseTransition,{},{default:()=>{var Xn;return withDirectives(h$3("ul",{role:"menu",class:[_e.b(),_e.m("inline")],style:Nn.value},[(Xn=oe.default)==null?void 0:Xn.call(oe)]),[[vShow,$n.value]])}})]);return h$3("li",{class:[Ce.b(),Ce.is("active",wn.value),Ce.is("opened",$n.value),Ce.is("disabled",$.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:$n.value,onMouseenter:Fn,onMouseleave:()=>Vn(!0),onFocus:Fn},[Gn])}}});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,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),checkIndexPath=$=>Array.isArray($)&&$.every(oe=>isString$7(oe)),menuEmits={close:($,oe)=>isString$7($)&&checkIndexPath(oe),open:($,oe)=>isString$7($)&&checkIndexPath(oe),select:($,oe,ae,ie)=>isString$7($)&&checkIndexPath(oe)&&isObject$8(ae)&&(ie===void 0||ie instanceof Promise)};var Menu=defineComponent({name:"ElMenu",props:menuProps,emits:menuEmits,setup($,{emit:oe,slots:ae,expose:ie}){const le=getCurrentInstance(),pe=le.appContext.config.globalProperties.$router,_e=ref(),Ce=useNamespace("menu"),$e=useNamespace("sub-menu"),xe=ref(-1),Ie=ref($.defaultOpeneds&&!$.collapse?$.defaultOpeneds.slice(0):[]),Ne=ref($.defaultActive),Fe=ref({}),ze=ref({}),At=computed(()=>$.mode==="horizontal"||$.mode==="vertical"&&$.collapse),Lt=()=>{const An=Ne.value&&Fe.value[Ne.value];if(!An||$.mode==="horizontal"||$.collapse)return;An.indexPath.forEach(Nn=>{const Rn=ze.value[Nn];Rn&&hn(Nn,Rn.indexPath)})},hn=(An,On)=>{Ie.value.includes(An)||($.uniqueOpened&&(Ie.value=Ie.value.filter(Nn=>On.includes(Nn))),Ie.value.push(An),oe("open",An,On))},vn=An=>{const On=Ie.value.indexOf(An);On!==-1&&Ie.value.splice(On,1)},_n=(An,On)=>{vn(An),oe("close",An,On)},bn=({index:An,indexPath:On})=>{Ie.value.includes(An)?_n(An,On):hn(An,On)},Cn=An=>{($.mode==="horizontal"||$.collapse)&&(Ie.value=[]);const{index:On,indexPath:Nn}=An;if(!(isNil(On)||isNil(Nn)))if($.router&&pe){const Rn=An.route||On,zn=pe.push(Rn).then(Bn=>(Bn||(Ne.value=On),Bn));oe("select",On,Nn,{index:On,indexPath:Nn,route:Rn},zn)}else Ne.value=On,oe("select",On,Nn,{index:On,indexPath:Nn})},En=An=>{const On=Fe.value,Nn=On[An]||Ne.value&&On[Ne.value]||On[$.defaultActive];Nn?Ne.value=Nn.index:Ne.value=An},$n=()=>{var An,On;if(!_e.value)return-1;const Nn=Array.from((On=(An=_e.value)==null?void 0:An.childNodes)!=null?On:[]).filter(jn=>jn.nodeName!=="#text"||jn.nodeValue),Rn=64,zn=Number.parseInt(getComputedStyle(_e.value).paddingLeft,10),Bn=Number.parseInt(getComputedStyle(_e.value).paddingRight,10),Mn=_e.value.clientWidth-zn-Bn;let Fn=0,Vn=0;return Nn.forEach((jn,Zn)=>{Fn+=jn.offsetWidth||0,Fn<=Mn-Rn&&(Vn=Zn+1)}),Vn===Nn.length?-1:Vn},wn=(An,On=33.34)=>{let Nn;return()=>{Nn&&clearTimeout(Nn),Nn=setTimeout(()=>{An()},On)}};let Tn=!0;const xn=()=>{const An=()=>{xe.value=-1,nextTick(()=>{xe.value=$n()})};Tn?An():wn(An)(),Tn=!1};watch(()=>$.defaultActive,An=>{Fe.value[An]||(Ne.value=""),En(An)}),watch(()=>$.collapse,An=>{An&&(Ie.value=[])}),watch(Fe.value,Lt);let kn;watchEffect(()=>{$.mode==="horizontal"&&$.ellipsis?kn=useResizeObserver(_e,xn).stop:kn==null||kn()});{const An=zn=>{ze.value[zn.index]=zn},On=zn=>{delete ze.value[zn.index]};provide("rootMenu",reactive({props:$,openedMenus:Ie,items:Fe,subMenus:ze,activeIndex:Ne,isMenuPopup:At,addMenuItem:zn=>{Fe.value[zn.index]=zn},removeMenuItem:zn=>{delete Fe.value[zn.index]},addSubMenu:An,removeSubMenu:On,openMenu:hn,closeMenu:_n,handleMenuItemClick:Cn,handleSubMenuClick:bn})),provide(`subMenu:${le.uid}`,{addSubMenu:An,removeSubMenu:On,mouseInChild:ref(!1),level:0})}return onMounted(()=>{$.mode==="horizontal"&&new Menu$1(le.vnode.el,Ce.namespace.value)}),ie({open:On=>{const{indexPath:Nn}=ze.value[On];Nn.forEach(Rn=>hn(Rn,Nn))},close:vn,handleResize:xn}),()=>{var An,On;let Nn=(On=(An=ae.default)==null?void 0:An.call(ae))!=null?On:[];const Rn=[];if($.mode==="horizontal"&&_e.value){const Mn=flattedChildren(Nn),Fn=xe.value===-1?Mn:Mn.slice(0,xe.value),Vn=xe.value===-1?[]:Mn.slice(xe.value);Vn!=null&&Vn.length&&$.ellipsis&&(Nn=Fn,Rn.push(h$3(SubMenu,{index:"sub-menu-more",class:$e.e("hide-arrow")},{title:()=>h$3(ElIcon,{class:$e.e("icon-more")},{default:()=>h$3(more_default)}),default:()=>Vn})))}const zn=useMenuCssVar($,0),Bn=h$3("ul",{key:String($.collapse),role:"menubar",ref:_e,style:zn.value,class:{[Ce.b()]:!0,[Ce.m($.mode)]:!0,[Ce.m("collapse")]:$.collapse}},[...Nn,...Rn]);return $.collapseTransition&&$.mode==="vertical"?h$3(ElMenuCollapseTransition,()=>Bn):Bn}}});const menuItemProps=buildProps({index:{type:definePropType([String,null]),default:null},route:{type:definePropType([String,Object])},disabled:Boolean}),menuItemEmits={click:$=>isString$7($.index)&&Array.isArray($.indexPath)},COMPONENT_NAME$b="ElMenuItem",_sfc_main$X=defineComponent({name:COMPONENT_NAME$b,components:{ElTooltip},props:menuItemProps,emits:menuItemEmits,setup($,{emit:oe}){const ae=getCurrentInstance(),ie=inject("rootMenu"),le=useNamespace("menu"),pe=useNamespace("menu-item");ie||throwError$1(COMPONENT_NAME$b,"can not inject root menu");const{parentMenu:_e,indexPath:Ce}=useMenu(ae,toRef$1($,"index")),$e=inject(`subMenu:${_e.value.uid}`);$e||throwError$1(COMPONENT_NAME$b,"can not inject sub menu");const xe=computed(()=>$.index===ie.activeIndex),Ie=reactive({index:$.index,indexPath:Ce,active:xe}),Ne=()=>{$.disabled||(ie.handleMenuItemClick({index:$.index,indexPath:Ce.value,route:$.route}),oe("click",Ie))};return onMounted(()=>{$e.addSubMenu(Ie),ie.addMenuItem(Ie)}),onBeforeUnmount(()=>{$e.removeSubMenu(Ie),ie.removeMenuItem(Ie)}),{parentMenu:_e,rootMenu:ie,active:xe,nsMenu:le,nsMenuItem:pe,handleClick:Ne}}});function _sfc_render$e($,oe,ae,ie,le,pe){const _e=resolveComponent("el-tooltip");return openBlock(),createElementBlock("li",{class:normalizeClass([$.nsMenuItem.b(),$.nsMenuItem.is("active",$.active),$.nsMenuItem.is("disabled",$.disabled)]),role:"menuitem",tabindex:"-1",onClick:oe[0]||(oe[0]=(...Ce)=>$.handleClick&&$.handleClick(...Ce))},[$.parentMenu.type.name==="ElMenu"&&$.rootMenu.props.collapse&&$.$slots.title?(openBlock(),createBlock(_e,{key:0,effect:$.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:withCtx(()=>[renderSlot($.$slots,"title")]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsMenu.be("tooltip","trigger"))},[renderSlot($.$slots,"default")],2)]),_:3},8,["effect"])):(openBlock(),createElementBlock(Fragment,{key:1},[renderSlot($.$slots,"default"),renderSlot($.$slots,"title")],64))],2)}var MenuItem=_export_sfc$1(_sfc_main$X,[["render",_sfc_render$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const menuItemGroupProps={title:String},COMPONENT_NAME$a="ElMenuItemGroup",_sfc_main$W=defineComponent({name:COMPONENT_NAME$a,props:menuItemGroupProps,setup(){return{ns:useNamespace("menu-item-group")}}});function _sfc_render$d($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("li",{class:normalizeClass($.ns.b())},[createBaseVNode("div",{class:normalizeClass($.ns.e("title"))},[$.$slots.title?renderSlot($.$slots,"title",{key:1}):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1($.title),1)],64))],2),createBaseVNode("ul",null,[renderSlot($.$slots,"default")])],2)}var MenuItemGroup=_export_sfc$1(_sfc_main$W,[["render",_sfc_render$d],["__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$s=["aria-label"],__default__$F=defineComponent({name:"ElPageHeader"}),_sfc_main$V=defineComponent({...__default__$F,props:pageHeaderProps,emits:pageHeaderEmits,setup($,{emit:oe}){const ae=useSlots(),{t:ie}=useLocale(),le=useNamespace("page-header"),pe=computed(()=>[le.b(),{[le.m("has-breadcrumb")]:!!ae.breadcrumb,[le.m("has-extra")]:!!ae.extra,[le.is("contentful")]:!!ae.default}]);function _e(){oe("back")}return(Ce,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(pe))},[Ce.$slots.breadcrumb?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("breadcrumb"))},[renderSlot(Ce.$slots,"breadcrumb")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(le).e("left"))},[createBaseVNode("div",{class:normalizeClass(unref(le).e("back")),role:"button",tabindex:"0",onClick:_e},[Ce.icon||Ce.$slots.icon?(openBlock(),createElementBlock("div",{key:0,"aria-label":Ce.title||unref(ie)("el.pageHeader.title"),class:normalizeClass(unref(le).e("icon"))},[renderSlot(Ce.$slots,"icon",{},()=>[Ce.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ce.icon)))]),_:1})):createCommentVNode("v-if",!0)])],10,_hoisted_1$s)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).e("title"))},[renderSlot(Ce.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(Ce.title||unref(ie)("el.pageHeader.title")),1)])],2)],2),createVNode(unref(ElDivider),{direction:"vertical"}),createBaseVNode("div",{class:normalizeClass(unref(le).e("content"))},[renderSlot(Ce.$slots,"content",{},()=>[createTextVNode(toDisplayString$1(Ce.content),1)])],2)],2),Ce.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("extra"))},[renderSlot(Ce.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2),Ce.$slots.default?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(le).e("main"))},[renderSlot(Ce.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var PageHeader=_export_sfc$1(_sfc_main$V,[["__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:$=>$ instanceof MouseEvent},_hoisted_1$r=["disabled","aria-label","aria-disabled"],_hoisted_2$i={key:0},__default__$E=defineComponent({name:"ElPaginationPrev"}),_sfc_main$U=defineComponent({...__default__$E,props:paginationPrevProps,emits:paginationPrevEmits,setup($){const oe=$,{t:ae}=useLocale(),ie=computed(()=>oe.disabled||oe.currentPage<=1);return(le,pe)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-prev",disabled:unref(ie),"aria-label":le.prevText||unref(ae)("el.pagination.prev"),"aria-disabled":unref(ie),onClick:pe[0]||(pe[0]=_e=>le.$emit("click",_e))},[le.prevText?(openBlock(),createElementBlock("span",_hoisted_2$i,toDisplayString$1(le.prevText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(le.prevIcon)))]),_:1}))],8,_hoisted_1$r))}});var Prev=_export_sfc$1(_sfc_main$U,[["__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$q=["disabled","aria-label","aria-disabled"],_hoisted_2$h={key:0},__default__$D=defineComponent({name:"ElPaginationNext"}),_sfc_main$T=defineComponent({...__default__$D,props:paginationNextProps,emits:["click"],setup($){const oe=$,{t:ae}=useLocale(),ie=computed(()=>oe.disabled||oe.currentPage===oe.pageCount||oe.pageCount===0);return(le,pe)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-next",disabled:unref(ie),"aria-label":le.nextText||unref(ae)("el.pagination.next"),"aria-disabled":unref(ie),onClick:pe[0]||(pe[0]=_e=>le.$emit("click",_e))},[le.nextText?(openBlock(),createElementBlock("span",_hoisted_2$h,toDisplayString$1(le.nextText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(le.nextIcon)))]),_:1}))],8,_hoisted_1$q))}});var Next=_export_sfc$1(_sfc_main$T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const selectGroupKey=Symbol("ElSelectGroup"),selectKey=Symbol("ElSelect");function useOption$1($,oe){const ae=inject(selectKey),ie=inject(selectGroupKey,{disabled:!1}),le=computed(()=>Object.prototype.toString.call($.value).toLowerCase()==="[object object]"),pe=computed(()=>ae.props.multiple?Ne(ae.props.modelValue,$.value):Fe($.value,ae.props.modelValue)),_e=computed(()=>{if(ae.props.multiple){const Lt=ae.props.modelValue||[];return!pe.value&&Lt.length>=ae.props.multipleLimit&&ae.props.multipleLimit>0}else return!1}),Ce=computed(()=>$.label||(le.value?"":$.value)),$e=computed(()=>$.value||$.label||""),xe=computed(()=>$.disabled||oe.groupDisabled||_e.value),Ie=getCurrentInstance(),Ne=(Lt=[],hn)=>{if(le.value){const vn=ae.props.valueKey;return Lt&&Lt.some(_n=>toRaw(get$1(_n,vn))===get$1(hn,vn))}else return Lt&&Lt.includes(hn)},Fe=(Lt,hn)=>{if(le.value){const{valueKey:vn}=ae.props;return get$1(Lt,vn)===get$1(hn,vn)}else return Lt===hn},ze=()=>{!$.disabled&&!ie.disabled&&(ae.hoverIndex=ae.optionsArray.indexOf(Ie.proxy))};watch(()=>Ce.value,()=>{!$.created&&!ae.props.remote&&ae.setSelected()}),watch(()=>$.value,(Lt,hn)=>{const{remote:vn,valueKey:_n}=ae.props;if(Object.is(Lt,hn)||(ae.onOptionDestroy(hn,Ie.proxy),ae.onOptionCreate(Ie.proxy)),!$.created&&!vn){if(_n&&typeof Lt=="object"&&typeof hn=="object"&&Lt[_n]===hn[_n])return;ae.setSelected()}}),watch(()=>ie.disabled,()=>{oe.groupDisabled=ie.disabled},{immediate:!0});const{queryChange:At}=toRaw(ae);return watch(At,Lt=>{const{query:hn}=unref(Lt),vn=new RegExp(escapeStringRegexp(hn),"i");oe.visible=vn.test(Ce.value)||$.created,oe.visible||ae.filteredOptionsCount--},{immediate:!0}),{select:ae,currentLabel:Ce,currentValue:$e,itemSelected:pe,isDisabled:xe,hoverItem:ze}}const _sfc_main$S=defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup($){const oe=useNamespace("select"),ae=reactive({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:ie,itemSelected:le,isDisabled:pe,select:_e,hoverItem:Ce}=useOption$1($,ae),{visible:$e,hover:xe}=toRefs(ae),Ie=getCurrentInstance().proxy;_e.onOptionCreate(Ie),onBeforeUnmount(()=>{const Fe=Ie.value,{selected:ze}=_e,Lt=(_e.props.multiple?ze:[ze]).some(hn=>hn.value===Ie.value);nextTick(()=>{_e.cachedOptions.get(Fe)===Ie&&!Lt&&_e.cachedOptions.delete(Fe)}),_e.onOptionDestroy(Fe,Ie)});function Ne(){$.disabled!==!0&&ae.groupDisabled!==!0&&_e.handleOptionSelect(Ie,!0)}return{ns:oe,currentLabel:ie,itemSelected:le,isDisabled:pe,select:_e,hoverItem:Ce,visible:$e,hover:xe,selectOptionClick:Ne,states:ae}}});function _sfc_render$c($,oe,ae,ie,le,pe){return withDirectives((openBlock(),createElementBlock("li",{class:normalizeClass([$.ns.be("dropdown","item"),$.ns.is("disabled",$.isDisabled),{selected:$.itemSelected,hover:$.hover}]),onMouseenter:oe[0]||(oe[0]=(..._e)=>$.hoverItem&&$.hoverItem(..._e)),onClick:oe[1]||(oe[1]=withModifiers((..._e)=>$.selectOptionClick&&$.selectOptionClick(..._e),["stop"]))},[renderSlot($.$slots,"default",{},()=>[createBaseVNode("span",null,toDisplayString$1($.currentLabel),1)])],34)),[[vShow,$.visible]])}var Option=_export_sfc$1(_sfc_main$S,[["render",_sfc_render$c],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const _sfc_main$R=defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const $=inject(selectKey),oe=useNamespace("select"),ae=computed(()=>$.props.popperClass),ie=computed(()=>$.props.multiple),le=computed(()=>$.props.fitInputWidth),pe=ref("");function _e(){var Ce;pe.value=`${(Ce=$.selectWrapper)==null?void 0:Ce.offsetWidth}px`}return onMounted(()=>{_e(),useResizeObserver($.selectWrapper,_e)}),{ns:oe,minWidth:pe,popperClass:ae,isMultiple:ie,isFitInputWidth:le}}});function _sfc_render$b($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b("dropdown"),$.ns.is("multiple",$.isMultiple),$.popperClass]),style:normalizeStyle$1({[$.isFitInputWidth?"width":"minWidth"]:$.minWidth})},[renderSlot($.$slots,"default")],6)}var ElSelectMenu$1=_export_sfc$1(_sfc_main$R,[["render",_sfc_render$b],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function useSelectStates($){const{t:oe}=useLocale();return reactive({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:$.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:oe("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const useSelect$2=($,oe,ae)=>{const{t:ie}=useLocale(),le=useNamespace("select");useDeprecated({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},computed(()=>$.suffixTransition===!1));const pe=ref(null),_e=ref(null),Ce=ref(null),$e=ref(null),xe=ref(null),Ie=ref(null),Ne=ref(null),Fe=ref(-1),ze=shallowRef({query:""}),At=shallowRef(""),Lt=ref([]);let hn=0;const{form:vn,formItem:_n}=useFormItem(),bn=computed(()=>!$.filterable||$.multiple||!oe.visible),Cn=computed(()=>$.disabled||(vn==null?void 0:vn.disabled)),En=computed(()=>{const Cr=$.multiple?Array.isArray($.modelValue)&&$.modelValue.length>0:$.modelValue!==void 0&&$.modelValue!==null&&$.modelValue!=="";return $.clearable&&!Cn.value&&oe.inputHovering&&Cr}),$n=computed(()=>$.remote&&$.filterable&&!$.remoteShowSuffix?"":$.suffixIcon),wn=computed(()=>le.is("reverse",$n.value&&oe.visible&&$.suffixTransition)),Tn=computed(()=>$.remote?300:0),xn=computed(()=>$.loading?$.loadingText||ie("el.select.loading"):$.remote&&oe.query===""&&oe.options.size===0?!1:$.filterable&&oe.query&&oe.options.size>0&&oe.filteredOptionsCount===0?$.noMatchText||ie("el.select.noMatch"):oe.options.size===0?$.noDataText||ie("el.select.noData"):null),kn=computed(()=>{const Cr=Array.from(oe.options.values()),Mr=[];return Lt.value.forEach(Ur=>{const jr=Cr.findIndex(Wr=>Wr.currentLabel===Ur);jr>-1&&Mr.push(Cr[jr])}),Mr.length?Mr:Cr}),An=computed(()=>Array.from(oe.cachedOptions.values())),On=computed(()=>{const Cr=kn.value.filter(Mr=>!Mr.created).some(Mr=>Mr.currentLabel===oe.query);return $.filterable&&$.allowCreate&&oe.query!==""&&!Cr}),Nn=useFormSize(),Rn=computed(()=>["small"].includes(Nn.value)?"small":"default"),zn=computed({get(){return oe.visible&&xn.value!==!1},set(Cr){oe.visible=Cr}});watch([()=>Cn.value,()=>Nn.value,()=>vn==null?void 0:vn.size],()=>{nextTick(()=>{Bn()})}),watch(()=>$.placeholder,Cr=>{oe.cachedPlaceHolder=oe.currentPlaceholder=Cr}),watch(()=>$.modelValue,(Cr,Mr)=>{$.multiple&&(Bn(),Cr&&Cr.length>0||_e.value&&oe.query!==""?oe.currentPlaceholder="":oe.currentPlaceholder=oe.cachedPlaceHolder,$.filterable&&!$.reserveKeyword&&(oe.query="",Mn(oe.query))),jn(),$.filterable&&!$.multiple&&(oe.inputLength=20),!isEqual$1(Cr,Mr)&&$.validateEvent&&(_n==null||_n.validate("change").catch(Ur=>void 0))},{flush:"post",deep:!0}),watch(()=>oe.visible,Cr=>{var Mr,Ur,jr,Wr,Xr;Cr?((Ur=(Mr=$e.value)==null?void 0:Mr.updatePopper)==null||Ur.call(Mr),$.filterable&&(oe.filteredOptionsCount=oe.optionsCount,oe.query=$.remote?"":oe.selectedLabel,(Wr=(jr=Ce.value)==null?void 0:jr.focus)==null||Wr.call(jr),$.multiple?(Xr=_e.value)==null||Xr.focus():oe.selectedLabel&&(oe.currentPlaceholder=`${oe.selectedLabel}`,oe.selectedLabel=""),Mn(oe.query),!$.multiple&&!$.remote&&(ze.value.query="",triggerRef(ze),triggerRef(At)))):($.filterable&&(isFunction$5($.filterMethod)&&$.filterMethod(""),isFunction$5($.remoteMethod)&&$.remoteMethod("")),_e.value&&_e.value.blur(),oe.query="",oe.previousQuery=null,oe.selectedLabel="",oe.inputLength=20,oe.menuVisibleOnFocus=!1,Gn(),nextTick(()=>{_e.value&&_e.value.value===""&&oe.selected.length===0&&(oe.currentPlaceholder=oe.cachedPlaceHolder)}),$.multiple||(oe.selected&&($.filterable&&$.allowCreate&&oe.createdSelected&&oe.createdLabel?oe.selectedLabel=oe.createdLabel:oe.selectedLabel=oe.selected.currentLabel,$.filterable&&(oe.query=oe.selectedLabel)),$.filterable&&(oe.currentPlaceholder=oe.cachedPlaceHolder))),ae.emit("visible-change",Cr)}),watch(()=>oe.options.entries(),()=>{var Cr,Mr,Ur;if(!isClient$2)return;(Mr=(Cr=$e.value)==null?void 0:Cr.updatePopper)==null||Mr.call(Cr),$.multiple&&Bn();const jr=((Ur=Ie.value)==null?void 0:Ur.querySelectorAll("input"))||[];Array.from(jr).includes(document.activeElement)||jn(),$.defaultFirstOption&&($.filterable||$.remote)&&oe.filteredOptionsCount&&Vn()},{flush:"post"}),watch(()=>oe.hoverIndex,Cr=>{isNumber$5(Cr)&&Cr>-1?Fe.value=kn.value[Cr]||{}:Fe.value={},kn.value.forEach(Mr=>{Mr.hover=Fe.value===Mr})});const Bn=()=>{nextTick(()=>{var Cr,Mr;if(!pe.value)return;const Ur=pe.value.$el.querySelector("input");hn=hn||(Ur.clientHeight>0?Ur.clientHeight+2:0);const jr=xe.value,Wr=getComponentSize(Nn.value||(vn==null?void 0:vn.size)),Xr=Nn.value||Wr===hn||hn<=0?Wr:hn;!(Ur.offsetParent===null)&&(Ur.style.height=`${(oe.selected.length===0?Xr:Math.max(jr?jr.clientHeight+(jr.clientHeight>Xr?6:0):0,Xr))-2}px`),oe.tagInMultiLine=Number.parseFloat(Ur.style.height)>=Xr,oe.visible&&xn.value!==!1&&((Mr=(Cr=$e.value)==null?void 0:Cr.updatePopper)==null||Mr.call(Cr))})},Mn=async Cr=>{if(!(oe.previousQuery===Cr||oe.isOnComposition)){if(oe.previousQuery===null&&(isFunction$5($.filterMethod)||isFunction$5($.remoteMethod))){oe.previousQuery=Cr;return}oe.previousQuery=Cr,nextTick(()=>{var Mr,Ur;oe.visible&&((Ur=(Mr=$e.value)==null?void 0:Mr.updatePopper)==null||Ur.call(Mr))}),oe.hoverIndex=-1,$.multiple&&$.filterable&&nextTick(()=>{const Mr=_e.value.value.length*15+20;oe.inputLength=$.collapseTags?Math.min(50,Mr):Mr,Fn(),Bn()}),$.remote&&isFunction$5($.remoteMethod)?(oe.hoverIndex=-1,$.remoteMethod(Cr)):isFunction$5($.filterMethod)?($.filterMethod(Cr),triggerRef(At)):(oe.filteredOptionsCount=oe.optionsCount,ze.value.query=Cr,triggerRef(ze),triggerRef(At)),$.defaultFirstOption&&($.filterable||$.remote)&&oe.filteredOptionsCount&&(await nextTick(),Vn())}},Fn=()=>{oe.currentPlaceholder!==""&&(oe.currentPlaceholder=_e.value.value?"":oe.cachedPlaceHolder)},Vn=()=>{const Cr=kn.value.filter(jr=>jr.visible&&!jr.disabled&&!jr.states.groupDisabled),Mr=Cr.find(jr=>jr.created),Ur=Cr[0];oe.hoverIndex=tr(kn.value,Mr||Ur)},jn=()=>{var Cr;if($.multiple)oe.selectedLabel="";else{const Ur=Zn($.modelValue);(Cr=Ur.props)!=null&&Cr.created?(oe.createdLabel=Ur.props.value,oe.createdSelected=!0):oe.createdSelected=!1,oe.selectedLabel=Ur.currentLabel,oe.selected=Ur,$.filterable&&(oe.query=oe.selectedLabel);return}const Mr=[];Array.isArray($.modelValue)&&$.modelValue.forEach(Ur=>{Mr.push(Zn(Ur))}),oe.selected=Mr,nextTick(()=>{Bn()})},Zn=Cr=>{let Mr;const Ur=toRawType(Cr).toLowerCase()==="object",jr=toRawType(Cr).toLowerCase()==="null",Wr=toRawType(Cr).toLowerCase()==="undefined";for(let Ar=oe.cachedOptions.size-1;Ar>=0;Ar--){const Dr=An.value[Ar];if(Ur?get$1(Dr.value,$.valueKey)===get$1(Cr,$.valueKey):Dr.value===Cr){Mr={value:Cr,currentLabel:Dr.currentLabel,isDisabled:Dr.isDisabled};break}}if(Mr)return Mr;const Xr=Ur?Cr.label:!jr&&!Wr?Cr:"",Qr={value:Cr,currentLabel:Xr};return $.multiple&&(Qr.hitState=!1),Qr},Gn=()=>{setTimeout(()=>{const Cr=$.valueKey;$.multiple?oe.selected.length>0?oe.hoverIndex=Math.min.apply(null,oe.selected.map(Mr=>kn.value.findIndex(Ur=>get$1(Ur,Cr)===get$1(Mr,Cr)))):oe.hoverIndex=-1:oe.hoverIndex=kn.value.findIndex(Mr=>Tr(Mr)===Tr(oe.selected))},300)},Xn=()=>{var Cr,Mr;cr(),(Mr=(Cr=$e.value)==null?void 0:Cr.updatePopper)==null||Mr.call(Cr),$.multiple&&Bn()},cr=()=>{var Cr;oe.inputWidth=(Cr=pe.value)==null?void 0:Cr.$el.offsetWidth},nr=()=>{$.filterable&&oe.query!==oe.selectedLabel&&(oe.query=oe.selectedLabel,Mn(oe.query))},er=debounce(()=>{nr()},Tn.value),rr=debounce(Cr=>{Mn(Cr.target.value)},Tn.value),qn=Cr=>{isEqual$1($.modelValue,Cr)||ae.emit(CHANGE_EVENT,Cr)},Yn=Cr=>{if(Cr.code!==EVENT_CODE.delete){if(Cr.target.value.length<=0&&!Sr()){const Mr=$.modelValue.slice();Mr.pop(),ae.emit(UPDATE_MODEL_EVENT,Mr),qn(Mr)}Cr.target.value.length===1&&$.modelValue.length===0&&(oe.currentPlaceholder=oe.cachedPlaceHolder)}},ar=(Cr,Mr)=>{const Ur=oe.selected.indexOf(Mr);if(Ur>-1&&!Cn.value){const jr=$.modelValue.slice();jr.splice(Ur,1),ae.emit(UPDATE_MODEL_EVENT,jr),qn(jr),ae.emit("remove-tag",Mr.value)}Cr.stopPropagation()},pr=Cr=>{Cr.stopPropagation();const Mr=$.multiple?[]:"";if(!isString$7(Mr))for(const Ur of oe.selected)Ur.isDisabled&&Mr.push(Ur.value);ae.emit(UPDATE_MODEL_EVENT,Mr),qn(Mr),oe.hoverIndex=-1,oe.visible=!1,ae.emit("clear")},Un=(Cr,Mr)=>{var Ur;if($.multiple){const jr=($.modelValue||[]).slice(),Wr=tr(jr,Cr.value);Wr>-1?jr.splice(Wr,1):($.multipleLimit<=0||jr.length<$.multipleLimit)&&jr.push(Cr.value),ae.emit(UPDATE_MODEL_EVENT,jr),qn(jr),Cr.created&&(oe.query="",Mn(""),oe.inputLength=20),$.filterable&&((Ur=_e.value)==null||Ur.focus())}else ae.emit(UPDATE_MODEL_EVENT,Cr.value),qn(Cr.value),oe.visible=!1;oe.isSilentBlur=Mr,ur(),!oe.visible&&nextTick(()=>{_r(Cr)})},tr=(Cr=[],Mr)=>{if(!isObject$8(Mr))return Cr.indexOf(Mr);const Ur=$.valueKey;let jr=-1;return Cr.some((Wr,Xr)=>toRaw(get$1(Wr,Ur))===get$1(Mr,Ur)?(jr=Xr,!0):!1),jr},ur=()=>{oe.softFocus=!0;const Cr=_e.value||pe.value;Cr&&(Cr==null||Cr.focus())},_r=Cr=>{var Mr,Ur,jr,Wr,Xr;const Qr=Array.isArray(Cr)?Cr[0]:Cr;let Ar=null;if(Qr!=null&&Qr.value){const Dr=kn.value.filter(Yr=>Yr.value===Qr.value);Dr.length>0&&(Ar=Dr[0].$el)}if($e.value&&Ar){const Dr=(Wr=(jr=(Ur=(Mr=$e.value)==null?void 0:Mr.popperRef)==null?void 0:Ur.contentRef)==null?void 0:jr.querySelector)==null?void 0:Wr.call(jr,`.${le.be("dropdown","wrap")}`);Dr&&scrollIntoView(Dr,Ar)}(Xr=Ne.value)==null||Xr.handleScroll()},Er=Cr=>{oe.optionsCount++,oe.filteredOptionsCount++,oe.options.set(Cr.value,Cr),oe.cachedOptions.set(Cr.value,Cr)},sr=(Cr,Mr)=>{oe.options.get(Cr)===Mr&&(oe.optionsCount--,oe.filteredOptionsCount--,oe.options.delete(Cr))},Pr=Cr=>{Cr.code!==EVENT_CODE.backspace&&Sr(!1),oe.inputLength=_e.value.value.length*15+20,Bn()},Sr=Cr=>{if(!Array.isArray(oe.selected))return;const Mr=oe.selected[oe.selected.length-1];if(Mr)return Cr===!0||Cr===!1?(Mr.hitState=Cr,Cr):(Mr.hitState=!Mr.hitState,Mr.hitState)},kr=Cr=>{const Mr=Cr.target.value;if(Cr.type==="compositionend")oe.isOnComposition=!1,nextTick(()=>Mn(Mr));else{const Ur=Mr[Mr.length-1]||"";oe.isOnComposition=!isKorean(Ur)}},mr=()=>{nextTick(()=>_r(oe.selected))},lr=Cr=>{oe.softFocus?oe.softFocus=!1:(($.automaticDropdown||$.filterable)&&($.filterable&&!oe.visible&&(oe.menuVisibleOnFocus=!0),oe.visible=!0),ae.emit("focus",Cr))},hr=()=>{var Cr,Mr,Ur;oe.visible=!1,(Cr=pe.value)==null||Cr.blur(),(Ur=(Mr=Ce.value)==null?void 0:Mr.blur)==null||Ur.call(Mr)},gr=Cr=>{nextTick(()=>{oe.isSilentBlur?oe.isSilentBlur=!1:ae.emit("blur",Cr)}),oe.softFocus=!1},Or=Cr=>{pr(Cr)},Lr=()=>{oe.visible=!1},Vr=Cr=>{oe.visible&&(Cr.preventDefault(),Cr.stopPropagation(),oe.visible=!1)},Rr=Cr=>{var Mr;Cr&&!oe.mouseEnter||Cn.value||(oe.menuVisibleOnFocus?oe.menuVisibleOnFocus=!1:(!$e.value||!$e.value.isFocusInsideContent())&&(oe.visible=!oe.visible),oe.visible&&((Mr=_e.value||pe.value)==null||Mr.focus()))},$r=()=>{oe.visible?kn.value[oe.hoverIndex]&&Un(kn.value[oe.hoverIndex],void 0):Rr()},Tr=Cr=>isObject$8(Cr.value)?get$1(Cr.value,$.valueKey):Cr.value,dr=computed(()=>kn.value.filter(Cr=>Cr.visible).every(Cr=>Cr.disabled)),Jn=computed(()=>oe.selected.slice(0,$.maxCollapseTags)),ir=computed(()=>oe.selected.slice($.maxCollapseTags)),xr=Cr=>{if(!oe.visible){oe.visible=!0;return}if(!(oe.options.size===0||oe.filteredOptionsCount===0)&&!oe.isOnComposition&&!dr.value){Cr==="next"?(oe.hoverIndex++,oe.hoverIndex===oe.options.size&&(oe.hoverIndex=0)):Cr==="prev"&&(oe.hoverIndex--,oe.hoverIndex<0&&(oe.hoverIndex=oe.options.size-1));const Mr=kn.value[oe.hoverIndex];(Mr.disabled===!0||Mr.states.groupDisabled===!0||!Mr.visible)&&xr(Cr),nextTick(()=>_r(Fe.value))}};return{optionList:Lt,optionsArray:kn,selectSize:Nn,handleResize:Xn,debouncedOnInputChange:er,debouncedQueryChange:rr,deletePrevTag:Yn,deleteTag:ar,deleteSelected:pr,handleOptionSelect:Un,scrollToOption:_r,readonly:bn,resetInputHeight:Bn,showClose:En,iconComponent:$n,iconReverse:wn,showNewOption:On,collapseTagSize:Rn,setSelected:jn,managePlaceholder:Fn,selectDisabled:Cn,emptyText:xn,toggleLastOptionHitState:Sr,resetInputState:Pr,handleComposition:kr,onOptionCreate:Er,onOptionDestroy:sr,handleMenuEnter:mr,handleFocus:lr,blur:hr,handleBlur:gr,handleClearClick:Or,handleClose:Lr,handleKeydownEscape:Vr,toggleMenu:Rr,selectOption:$r,getValueKey:Tr,navigateOptions:xr,dropMenuVisible:zn,queryChange:ze,groupQueryChange:At,showTagList:Jn,collapseTagList:ir,reference:pe,input:_e,iOSInput:Ce,tooltipRef:$e,tags:xe,selectWrapper:Ie,scrollbar:Ne,handleMouseEnter:()=>{oe.mouseEnter=!0},handleMouseLeave:()=>{oe.mouseEnter=!1}}};var ElOptions=defineComponent({name:"ElOptions",emits:["update-options"],setup($,{slots:oe,emit:ae}){let ie=[];function le(pe,_e){if(pe.length!==_e.length)return!1;for(const[Ce]of pe.entries())if(pe[Ce]!=_e[Ce])return!1;return!0}return()=>{var pe,_e;const Ce=(pe=oe.default)==null?void 0:pe.call(oe),$e=[];function xe(Ie){Array.isArray(Ie)&&Ie.forEach(Ne=>{var Fe,ze,At,Lt;const hn=(Fe=(Ne==null?void 0:Ne.type)||{})==null?void 0:Fe.name;hn==="ElOptionGroup"?xe(!isString$7(Ne.children)&&!Array.isArray(Ne.children)&&isFunction$5((ze=Ne.children)==null?void 0:ze.default)?(At=Ne.children)==null?void 0:At.default():Ne.children):hn==="ElOption"?$e.push((Lt=Ne.props)==null?void 0:Lt.label):Array.isArray(Ne.children)&&xe(Ne.children)})}return Ce.length&&xe((_e=Ce[0])==null?void 0:_e.children),le($e,ie)||(ie=$e,ae("update-options",$e)),Ce}}});const COMPONENT_NAME$9="ElSelect",_sfc_main$Q=defineComponent({name:COMPONENT_NAME$9,componentName:COMPONENT_NAME$9,components:{ElInput,ElSelectMenu:ElSelectMenu$1,ElOption:Option,ElOptions,ElTag,ElScrollbar,ElTooltip,ElIcon},directives:{ClickOutside},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:isValidComponentSize},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod: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:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:iconPropType,default:circle_close_default},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:iconPropType,default:arrow_down_default},tagType:{...tagProps.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Ee,default:"bottom-start"}},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup($,oe){const ae=useNamespace("select"),ie=useNamespace("input"),{t:le}=useLocale(),pe=useSelectStates($),{optionList:_e,optionsArray:Ce,selectSize:$e,readonly:xe,handleResize:Ie,collapseTagSize:Ne,debouncedOnInputChange:Fe,debouncedQueryChange:ze,deletePrevTag:At,deleteTag:Lt,deleteSelected:hn,handleOptionSelect:vn,scrollToOption:_n,setSelected:bn,resetInputHeight:Cn,managePlaceholder:En,showClose:$n,selectDisabled:wn,iconComponent:Tn,iconReverse:xn,showNewOption:kn,emptyText:An,toggleLastOptionHitState:On,resetInputState:Nn,handleComposition:Rn,onOptionCreate:zn,onOptionDestroy:Bn,handleMenuEnter:Mn,handleFocus:Fn,blur:Vn,handleBlur:jn,handleClearClick:Zn,handleClose:Gn,handleKeydownEscape:Xn,toggleMenu:cr,selectOption:nr,getValueKey:er,navigateOptions:rr,dropMenuVisible:qn,reference:Yn,input:ar,iOSInput:pr,tooltipRef:Un,tags:tr,selectWrapper:ur,scrollbar:_r,queryChange:Er,groupQueryChange:sr,handleMouseEnter:Pr,handleMouseLeave:Sr,showTagList:kr,collapseTagList:mr}=useSelect$2($,pe,oe),{focus:lr}=useFocus(Yn),{inputWidth:hr,selected:gr,inputLength:Or,filteredOptionsCount:Lr,visible:Vr,softFocus:Rr,selectedLabel:$r,hoverIndex:Tr,query:dr,inputHovering:Jn,currentPlaceholder:ir,menuVisibleOnFocus:xr,isOnComposition:Ir,isSilentBlur:Hr,options:Cr,cachedOptions:Mr,optionsCount:Ur,prefixWidth:jr,tagInMultiLine:Wr}=toRefs(pe),Xr=computed(()=>{const qr=[ae.b()],Fr=unref($e);return Fr&&qr.push(ae.m(Fr)),$.disabled&&qr.push(ae.m("disabled")),qr}),Qr=computed(()=>({maxWidth:`${unref(hr)-32}px`,width:"100%"})),Ar=computed(()=>({maxWidth:`${unref(hr)>123?unref(hr)-123:unref(hr)-75}px`}));provide(selectKey,reactive({props:$,options:Cr,optionsArray:Ce,cachedOptions:Mr,optionsCount:Ur,filteredOptionsCount:Lr,hoverIndex:Tr,handleOptionSelect:vn,onOptionCreate:zn,onOptionDestroy:Bn,selectWrapper:ur,selected:gr,setSelected:bn,queryChange:Er,groupQueryChange:sr})),onMounted(()=>{pe.cachedPlaceHolder=ir.value=$.placeholder||(()=>le("el.select.placeholder")),$.multiple&&Array.isArray($.modelValue)&&$.modelValue.length>0&&(ir.value=""),useResizeObserver(ur,Ie),$.remote&&$.multiple&&Cn(),nextTick(()=>{const qr=Yn.value&&Yn.value.$el;if(qr&&(hr.value=qr.getBoundingClientRect().width,oe.slots.prefix)){const Fr=qr.querySelector(`.${ie.e("prefix")}`);jr.value=Math.max(Fr.getBoundingClientRect().width+5,30)}}),bn()}),$.multiple&&!Array.isArray($.modelValue)&&oe.emit(UPDATE_MODEL_EVENT,[]),!$.multiple&&Array.isArray($.modelValue)&&oe.emit(UPDATE_MODEL_EVENT,"");const Dr=computed(()=>{var qr,Fr;return(Fr=(qr=Un.value)==null?void 0:qr.popperRef)==null?void 0:Fr.contentRef});return{isIOS:isIOS$1,onOptionsRendered:qr=>{_e.value=qr},tagInMultiLine:Wr,prefixWidth:jr,selectSize:$e,readonly:xe,handleResize:Ie,collapseTagSize:Ne,debouncedOnInputChange:Fe,debouncedQueryChange:ze,deletePrevTag:At,deleteTag:Lt,deleteSelected:hn,handleOptionSelect:vn,scrollToOption:_n,inputWidth:hr,selected:gr,inputLength:Or,filteredOptionsCount:Lr,visible:Vr,softFocus:Rr,selectedLabel:$r,hoverIndex:Tr,query:dr,inputHovering:Jn,currentPlaceholder:ir,menuVisibleOnFocus:xr,isOnComposition:Ir,isSilentBlur:Hr,options:Cr,resetInputHeight:Cn,managePlaceholder:En,showClose:$n,selectDisabled:wn,iconComponent:Tn,iconReverse:xn,showNewOption:kn,emptyText:An,toggleLastOptionHitState:On,resetInputState:Nn,handleComposition:Rn,handleMenuEnter:Mn,handleFocus:Fn,blur:Vn,handleBlur:jn,handleClearClick:Zn,handleClose:Gn,handleKeydownEscape:Xn,toggleMenu:cr,selectOption:nr,getValueKey:er,navigateOptions:rr,dropMenuVisible:qn,focus:lr,reference:Yn,input:ar,iOSInput:pr,tooltipRef:Un,popperPaneRef:Dr,tags:tr,selectWrapper:ur,scrollbar:_r,wrapperKls:Xr,selectTagsStyle:Qr,nsSelect:ae,tagTextStyle:Ar,handleMouseEnter:Pr,handleMouseLeave:Sr,showTagList:kr,collapseTagList:mr}}}),_hoisted_1$p=["disabled","autocomplete"],_hoisted_2$g=["disabled"],_hoisted_3$9={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function _sfc_render$a($,oe,ae,ie,le,pe){const _e=resolveComponent("el-tag"),Ce=resolveComponent("el-tooltip"),$e=resolveComponent("el-icon"),xe=resolveComponent("el-input"),Ie=resolveComponent("el-option"),Ne=resolveComponent("el-options"),Fe=resolveComponent("el-scrollbar"),ze=resolveComponent("el-select-menu"),At=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectWrapper",class:normalizeClass($.wrapperKls),onMouseenter:oe[21]||(oe[21]=(...Lt)=>$.handleMouseEnter&&$.handleMouseEnter(...Lt)),onMouseleave:oe[22]||(oe[22]=(...Lt)=>$.handleMouseLeave&&$.handleMouseLeave(...Lt)),onClick:oe[23]||(oe[23]=withModifiers((...Lt)=>$.toggleMenu&&$.toggleMenu(...Lt),["stop"]))},[createVNode(Ce,{ref:"tooltipRef",visible:$.dropMenuVisible,placement:$.placement,teleported:$.teleported,"popper-class":[$.nsSelect.e("popper"),$.popperClass],"popper-options":$.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:$.effect,pure:"",trigger:"click",transition:`${$.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:$.persistent,onShow:$.handleMenuEnter},{default:withCtx(()=>[createBaseVNode("div",{class:"select-trigger",onMouseenter:oe[19]||(oe[19]=Lt=>$.inputHovering=!0),onMouseleave:oe[20]||(oe[20]=Lt=>$.inputHovering=!1)},[$.multiple?(openBlock(),createElementBlock("div",{key:0,ref:"tags",class:normalizeClass([$.nsSelect.e("tags"),$.nsSelect.is("disabled",$.selectDisabled)]),style:normalizeStyle$1($.selectTagsStyle)},[$.collapseTags&&$.selected.length?(openBlock(),createBlock(Transition,{key:0,onAfterLeave:$.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass([$.nsSelect.b("tags-wrapper"),{"has-prefix":$.prefixWidth&&$.selected.length}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.showTagList,Lt=>(openBlock(),createBlock(_e,{key:$.getValueKey(Lt),closable:!$.selectDisabled&&!Lt.isDisabled,size:$.collapseTagSize,hit:Lt.hitState,type:$.tagType,"disable-transitions":"",onClose:hn=>$.deleteTag(hn,Lt)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1($.tagTextStyle)},toDisplayString$1(Lt.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),$.selected.length>$.maxCollapseTags?(openBlock(),createBlock(_e,{key:0,closable:!1,size:$.collapseTagSize,type:$.tagType,"disable-transitions":""},{default:withCtx(()=>[$.collapseTagsTooltip?(openBlock(),createBlock(Ce,{key:0,disabled:$.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:$.effect,placement:"bottom",teleported:$.teleported},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text"))},"+ "+toDisplayString$1($.selected.length-$.maxCollapseTags),3)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsSelect.e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.collapseTagList,Lt=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Lt),class:normalizeClass($.nsSelect.e("collapse-tag"))},[createVNode(_e,{class:"in-tooltip",closable:!$.selectDisabled&&!Lt.isDisabled,size:$.collapseTagSize,hit:Lt.hitState,type:$.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:hn=>$.deleteTag(hn,Lt)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:$.inputWidth-75+"px"})},toDisplayString$1(Lt.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass($.nsSelect.e("tags-text"))},"+ "+toDisplayString$1($.selected.length-$.maxCollapseTags),3))]),_:1},8,["size","type"])):createCommentVNode("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):createCommentVNode("v-if",!0),$.collapseTags?createCommentVNode("v-if",!0):(openBlock(),createBlock(Transition,{key:1,onAfterLeave:$.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass([$.nsSelect.b("tags-wrapper"),{"has-prefix":$.prefixWidth&&$.selected.length}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.selected,Lt=>(openBlock(),createBlock(_e,{key:$.getValueKey(Lt),closable:!$.selectDisabled&&!Lt.isDisabled,size:$.collapseTagSize,hit:Lt.hitState,type:$.tagType,"disable-transitions":"",onClose:hn=>$.deleteTag(hn,Lt)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:$.inputWidth-75+"px"})},toDisplayString$1(Lt.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),$.filterable?withDirectives((openBlock(),createElementBlock("input",{key:2,ref:"input","onUpdate:modelValue":oe[0]||(oe[0]=Lt=>$.query=Lt),type:"text",class:normalizeClass([$.nsSelect.e("input"),$.nsSelect.is($.selectSize),$.nsSelect.is("disabled",$.selectDisabled)]),disabled:$.selectDisabled,autocomplete:$.autocomplete,style:normalizeStyle$1({marginLeft:$.prefixWidth&&!$.selected.length||$.tagInMultiLine?`${$.prefixWidth}px`:"",flexGrow:1,width:`${$.inputLength/($.inputWidth-32)}%`,maxWidth:`${$.inputWidth-42}px`}),onFocus:oe[1]||(oe[1]=(...Lt)=>$.handleFocus&&$.handleFocus(...Lt)),onBlur:oe[2]||(oe[2]=(...Lt)=>$.handleBlur&&$.handleBlur(...Lt)),onKeyup:oe[3]||(oe[3]=(...Lt)=>$.managePlaceholder&&$.managePlaceholder(...Lt)),onKeydown:[oe[4]||(oe[4]=(...Lt)=>$.resetInputState&&$.resetInputState(...Lt)),oe[5]||(oe[5]=withKeys(withModifiers(Lt=>$.navigateOptions("next"),["prevent"]),["down"])),oe[6]||(oe[6]=withKeys(withModifiers(Lt=>$.navigateOptions("prev"),["prevent"]),["up"])),oe[7]||(oe[7]=withKeys((...Lt)=>$.handleKeydownEscape&&$.handleKeydownEscape(...Lt),["esc"])),oe[8]||(oe[8]=withKeys(withModifiers((...Lt)=>$.selectOption&&$.selectOption(...Lt),["stop","prevent"]),["enter"])),oe[9]||(oe[9]=withKeys((...Lt)=>$.deletePrevTag&&$.deletePrevTag(...Lt),["delete"])),oe[10]||(oe[10]=withKeys(Lt=>$.visible=!1,["tab"]))],onCompositionstart:oe[11]||(oe[11]=(...Lt)=>$.handleComposition&&$.handleComposition(...Lt)),onCompositionupdate:oe[12]||(oe[12]=(...Lt)=>$.handleComposition&&$.handleComposition(...Lt)),onCompositionend:oe[13]||(oe[13]=(...Lt)=>$.handleComposition&&$.handleComposition(...Lt)),onInput:oe[14]||(oe[14]=(...Lt)=>$.debouncedQueryChange&&$.debouncedQueryChange(...Lt))},null,46,_hoisted_1$p)),[[vModelText,$.query]]):createCommentVNode("v-if",!0)],6)):createCommentVNode("v-if",!0),createCommentVNode(" fix: https://github.com/element-plus/element-plus/issues/11415 "),$.isIOS&&!$.multiple&&$.filterable&&$.readonly?(openBlock(),createElementBlock("input",{key:1,ref:"iOSInput",class:normalizeClass([$.nsSelect.e("input"),$.nsSelect.is($.selectSize),$.nsSelect.em("input","iOS")]),disabled:$.selectDisabled,type:"text"},null,10,_hoisted_2$g)):createCommentVNode("v-if",!0),createVNode(xe,{id:$.id,ref:"reference",modelValue:$.selectedLabel,"onUpdate:modelValue":oe[15]||(oe[15]=Lt=>$.selectedLabel=Lt),type:"text",placeholder:typeof $.currentPlaceholder=="function"?$.currentPlaceholder():$.currentPlaceholder,name:$.name,autocomplete:$.autocomplete,size:$.selectSize,disabled:$.selectDisabled,readonly:$.readonly,"validate-event":!1,class:normalizeClass([$.nsSelect.is("focus",$.visible)]),tabindex:$.multiple&&$.filterable?-1:void 0,onFocus:$.handleFocus,onBlur:$.handleBlur,onInput:$.debouncedOnInputChange,onPaste:$.debouncedOnInputChange,onCompositionstart:$.handleComposition,onCompositionupdate:$.handleComposition,onCompositionend:$.handleComposition,onKeydown:[oe[16]||(oe[16]=withKeys(withModifiers(Lt=>$.navigateOptions("next"),["stop","prevent"]),["down"])),oe[17]||(oe[17]=withKeys(withModifiers(Lt=>$.navigateOptions("prev"),["stop","prevent"]),["up"])),withKeys(withModifiers($.selectOption,["stop","prevent"]),["enter"]),withKeys($.handleKeydownEscape,["esc"]),oe[18]||(oe[18]=withKeys(Lt=>$.visible=!1,["tab"]))]},createSlots({suffix:withCtx(()=>[$.iconComponent&&!$.showClose?(openBlock(),createBlock($e,{key:0,class:normalizeClass([$.nsSelect.e("caret"),$.nsSelect.e("icon"),$.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),$.showClose&&$.clearIcon?(openBlock(),createBlock($e,{key:1,class:normalizeClass([$.nsSelect.e("caret"),$.nsSelect.e("icon")]),onClick:$.handleClearClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:2},[$.$slots.prefix?{name:"prefix",fn:withCtx(()=>[createBaseVNode("div",_hoisted_3$9,[renderSlot($.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:withCtx(()=>[createVNode(ze,null,{default:withCtx(()=>[withDirectives(createVNode(Fe,{ref:"scrollbar",tag:"ul","wrap-class":$.nsSelect.be("dropdown","wrap"),"view-class":$.nsSelect.be("dropdown","list"),class:normalizeClass([$.nsSelect.is("empty",!$.allowCreate&&!!$.query&&$.filteredOptionsCount===0)])},{default:withCtx(()=>[$.showNewOption?(openBlock(),createBlock(Ie,{key:0,value:$.query,created:!0},null,8,["value"])):createCommentVNode("v-if",!0),createVNode(Ne,{onUpdateOptions:$.onOptionsRendered},{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[vShow,$.options.size>0&&!$.loading]]),$.emptyText&&(!$.allowCreate||$.loading||$.allowCreate&&$.options.size===0)?(openBlock(),createElementBlock(Fragment,{key:0},[$.$slots.empty?renderSlot($.$slots,"empty",{key:0}):(openBlock(),createElementBlock("p",{key:1,class:normalizeClass($.nsSelect.be("dropdown","empty"))},toDisplayString$1($.emptyText),3))],64)):createCommentVNode("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[At,$.handleClose,$.popperPaneRef]])}var Select$1=_export_sfc$1(_sfc_main$Q,[["render",_sfc_render$a],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const _sfc_main$P=defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup($){const oe=useNamespace("select"),ae=ref(!0),ie=getCurrentInstance(),le=ref([]);provide(selectGroupKey,reactive({...toRefs($)}));const pe=inject(selectKey);onMounted(()=>{le.value=_e(ie.subTree)});const _e=$e=>{const xe=[];return Array.isArray($e.children)&&$e.children.forEach(Ie=>{var Ne;Ie.type&&Ie.type.name==="ElOption"&&Ie.component&&Ie.component.proxy?xe.push(Ie.component.proxy):(Ne=Ie.children)!=null&&Ne.length&&xe.push(..._e(Ie))}),xe},{groupQueryChange:Ce}=toRaw(pe);return watch(Ce,()=>{ae.value=le.value.some($e=>$e.visible===!0)},{flush:"post"}),{visible:ae,ns:oe}}});function _sfc_render$9($,oe,ae,ie,le,pe){return withDirectives((openBlock(),createElementBlock("ul",{class:normalizeClass($.ns.be("group","wrap"))},[createBaseVNode("li",{class:normalizeClass($.ns.be("group","title"))},toDisplayString$1($.label),3),createBaseVNode("li",null,[createBaseVNode("ul",{class:normalizeClass($.ns.b("group"))},[renderSlot($.$slots,"default")],2)])],2)),[[vShow,$.visible]])}var OptionGroup=_export_sfc$1(_sfc_main$P,[["render",_sfc_render$9],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const ElSelect=withInstall(Select$1,{Option,OptionGroup}),ElOption=withNoopInstall(Option),ElOptionGroup=withNoopInstall(OptionGroup),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},disabled:Boolean,size:{type:String,values:componentSizes}}),__default__$C=defineComponent({name:"ElPaginationSizes"}),_sfc_main$O=defineComponent({...__default__$C,props:paginationSizesProps,emits:["page-size-change"],setup($,{emit:oe}){const ae=$,{t:ie}=useLocale(),le=useNamespace("pagination"),pe=usePagination(),_e=ref(ae.pageSize);watch(()=>ae.pageSizes,(xe,Ie)=>{if(!isEqual$1(xe,Ie)&&Array.isArray(xe)){const Ne=xe.includes(ae.pageSize)?ae.pageSize:ae.pageSizes[0];oe("page-size-change",Ne)}}),watch(()=>ae.pageSize,xe=>{_e.value=xe});const Ce=computed(()=>ae.pageSizes);function $e(xe){var Ie;xe!==_e.value&&(_e.value=xe,(Ie=pe.handleSizeChange)==null||Ie.call(pe,Number(xe)))}return(xe,Ie)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(le).e("sizes"))},[createVNode(unref(ElSelect),{"model-value":_e.value,disabled:xe.disabled,"popper-class":xe.popperClass,size:xe.size,"validate-event":!1,onChange:$e},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ce),Ne=>(openBlock(),createBlock(unref(ElOption),{key:Ne,value:Ne,label:Ne+unref(ie)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var Sizes=_export_sfc$1(_sfc_main$O,[["__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$o=["disabled"],__default__$B=defineComponent({name:"ElPaginationJumper"}),_sfc_main$N=defineComponent({...__default__$B,props:paginationJumperProps,setup($){const{t:oe}=useLocale(),ae=useNamespace("pagination"),{pageCount:ie,disabled:le,currentPage:pe,changeEvent:_e}=usePagination(),Ce=ref(),$e=computed(()=>{var Ne;return(Ne=Ce.value)!=null?Ne:pe==null?void 0:pe.value});function xe(Ne){Ce.value=Ne?+Ne:""}function Ie(Ne){Ne=Math.trunc(+Ne),_e==null||_e(Ne),Ce.value=void 0}return(Ne,Fe)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ae).e("jump")),disabled:unref(le)},[createBaseVNode("span",{class:normalizeClass([unref(ae).e("goto")])},toDisplayString$1(unref(oe)("el.pagination.goto")),3),createVNode(unref(ElInput),{size:Ne.size,class:normalizeClass([unref(ae).e("editor"),unref(ae).is("in-pagination")]),min:1,max:unref(ie),disabled:unref(le),"model-value":unref($e),"validate-event":!1,label:unref(oe)("el.pagination.page"),type:"number","onUpdate:modelValue":xe,onChange:Ie},null,8,["size","class","max","disabled","model-value","label"]),createBaseVNode("span",{class:normalizeClass([unref(ae).e("classifier")])},toDisplayString$1(unref(oe)("el.pagination.pageClassifier")),3)],10,_hoisted_1$o))}});var Jumper=_export_sfc$1(_sfc_main$N,[["__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$n=["disabled"],__default__$A=defineComponent({name:"ElPaginationTotal"}),_sfc_main$M=defineComponent({...__default__$A,props:paginationTotalProps,setup($){const{t:oe}=useLocale(),ae=useNamespace("pagination"),{disabled:ie}=usePagination();return(le,pe)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ae).e("total")),disabled:unref(ie)},toDisplayString$1(unref(oe)("el.pagination.total",{total:le.total})),11,_hoisted_1$n))}});var Total=_export_sfc$1(_sfc_main$M,[["__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$m=["onKeyup"],_hoisted_2$f=["aria-current","aria-label","tabindex"],_hoisted_3$8=["tabindex","aria-label"],_hoisted_4$6=["aria-current","aria-label","tabindex"],_hoisted_5$4=["tabindex","aria-label"],_hoisted_6=["aria-current","aria-label","tabindex"],__default__$z=defineComponent({name:"ElPaginationPager"}),_sfc_main$L=defineComponent({...__default__$z,props:paginationPagerProps,emits:["change"],setup($,{emit:oe}){const ae=$,ie=useNamespace("pager"),le=useNamespace("icon"),{t:pe}=useLocale(),_e=ref(!1),Ce=ref(!1),$e=ref(!1),xe=ref(!1),Ie=ref(!1),Ne=ref(!1),Fe=computed(()=>{const _n=ae.pagerCount,bn=(_n-1)/2,Cn=Number(ae.currentPage),En=Number(ae.pageCount);let $n=!1,wn=!1;En>_n&&(Cn>_n-bn&&($n=!0),Cnae.disabled?-1:0);watchEffect(()=>{const _n=(ae.pagerCount-1)/2;_e.value=!1,Ce.value=!1,ae.pageCount>ae.pagerCount&&(ae.currentPage>ae.pagerCount-_n&&(_e.value=!0),ae.currentPageEn&&(Cn=En)),Cn!==$n&&oe("change",Cn)}return(_n,bn)=>(openBlock(),createElementBlock("ul",{class:normalizeClass(unref(ie).b()),onClick:vn,onKeyup:withKeys(hn,["enter"])},[_n.pageCount>0?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass([[unref(ie).is("active",_n.currentPage===1),unref(ie).is("disabled",_n.disabled)],"number"]),"aria-current":_n.currentPage===1,"aria-label":unref(pe)("el.pagination.currentPage",{pager:1}),tabindex:unref(ze)}," 1 ",10,_hoisted_2$f)):createCommentVNode("v-if",!0),_e.value?(openBlock(),createElementBlock("li",{key:1,class:normalizeClass(["more","btn-quickprev",unref(le).b(),unref(ie).is("disabled",_n.disabled)]),tabindex:unref(ze),"aria-label":unref(pe)("el.pagination.prevPages",{pager:_n.pagerCount-2}),onMouseenter:bn[0]||(bn[0]=Cn=>At(!0)),onMouseleave:bn[1]||(bn[1]=Cn=>$e.value=!1),onFocus:bn[2]||(bn[2]=Cn=>Lt(!0)),onBlur:bn[3]||(bn[3]=Cn=>Ie.value=!1)},[($e.value||Ie.value)&&!_n.disabled?(openBlock(),createBlock(unref(d_arrow_left_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_3$8)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fe),Cn=>(openBlock(),createElementBlock("li",{key:Cn,class:normalizeClass([[unref(ie).is("active",_n.currentPage===Cn),unref(ie).is("disabled",_n.disabled)],"number"]),"aria-current":_n.currentPage===Cn,"aria-label":unref(pe)("el.pagination.currentPage",{pager:Cn}),tabindex:unref(ze)},toDisplayString$1(Cn),11,_hoisted_4$6))),128)),Ce.value?(openBlock(),createElementBlock("li",{key:2,class:normalizeClass(["more","btn-quicknext",unref(le).b(),unref(ie).is("disabled",_n.disabled)]),tabindex:unref(ze),"aria-label":unref(pe)("el.pagination.nextPages",{pager:_n.pagerCount-2}),onMouseenter:bn[4]||(bn[4]=Cn=>At()),onMouseleave:bn[5]||(bn[5]=Cn=>xe.value=!1),onFocus:bn[6]||(bn[6]=Cn=>Lt()),onBlur:bn[7]||(bn[7]=Cn=>Ne.value=!1)},[(xe.value||Ne.value)&&!_n.disabled?(openBlock(),createBlock(unref(d_arrow_right_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_5$4)):createCommentVNode("v-if",!0),_n.pageCount>1?(openBlock(),createElementBlock("li",{key:3,class:normalizeClass([[unref(ie).is("active",_n.currentPage===_n.pageCount),unref(ie).is("disabled",_n.disabled)],"number"]),"aria-current":_n.currentPage===_n.pageCount,"aria-label":unref(pe)("el.pagination.currentPage",{pager:_n.pageCount}),tabindex:unref(ze)},toDisplayString$1(_n.pageCount),11,_hoisted_6)):createCommentVNode("v-if",!0)],42,_hoisted_1$m))}});var Pager=_export_sfc$1(_sfc_main$L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const isAbsent=$=>typeof $!="number",paginationProps=buildProps({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:$=>isNumber$5($)&&Math.trunc($)===$&&$>4&&$<22&&$%2===1,default:7},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:""},prevText:{type:String,default:""},prevIcon:{type:iconPropType,default:()=>arrow_left_default},nextText:{type:String,default:""},nextIcon:{type:iconPropType,default:()=>arrow_right_default},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),paginationEmits={"update:current-page":$=>isNumber$5($),"update:page-size":$=>isNumber$5($),"size-change":$=>isNumber$5($),"current-change":$=>isNumber$5($),"prev-click":$=>isNumber$5($),"next-click":$=>isNumber$5($)},componentName="ElPagination";var Pagination=defineComponent({name:componentName,props:paginationProps,emits:paginationEmits,setup($,{emit:oe,slots:ae}){const{t:ie}=useLocale(),le=useNamespace("pagination"),pe=getCurrentInstance().vnode.props||{},_e="onUpdate:currentPage"in pe||"onUpdate:current-page"in pe||"onCurrentChange"in pe,Ce="onUpdate:pageSize"in pe||"onUpdate:page-size"in pe||"onSizeChange"in pe,$e=computed(()=>{if(isAbsent($.total)&&isAbsent($.pageCount)||!isAbsent($.currentPage)&&!_e)return!1;if($.layout.includes("sizes")){if(isAbsent($.pageCount)){if(!isAbsent($.total)&&!isAbsent($.pageSize)&&!Ce)return!1}else if(!Ce)return!1}return!0}),xe=ref(isAbsent($.defaultPageSize)?10:$.defaultPageSize),Ie=ref(isAbsent($.defaultCurrentPage)?1:$.defaultCurrentPage),Ne=computed({get(){return isAbsent($.pageSize)?xe.value:$.pageSize},set(bn){isAbsent($.pageSize)&&(xe.value=bn),Ce&&(oe("update:page-size",bn),oe("size-change",bn))}}),Fe=computed(()=>{let bn=0;return isAbsent($.pageCount)?isAbsent($.total)||(bn=Math.max(1,Math.ceil($.total/Ne.value))):bn=$.pageCount,bn}),ze=computed({get(){return isAbsent($.currentPage)?Ie.value:$.currentPage},set(bn){let Cn=bn;bn<1?Cn=1:bn>Fe.value&&(Cn=Fe.value),isAbsent($.currentPage)&&(Ie.value=Cn),_e&&(oe("update:current-page",Cn),oe("current-change",Cn))}});watch(Fe,bn=>{ze.value>bn&&(ze.value=bn)});function At(bn){ze.value=bn}function Lt(bn){Ne.value=bn;const Cn=Fe.value;ze.value>Cn&&(ze.value=Cn)}function hn(){$.disabled||(ze.value-=1,oe("prev-click",ze.value))}function vn(){$.disabled||(ze.value+=1,oe("next-click",ze.value))}function _n(bn,Cn){bn&&(bn.props||(bn.props={}),bn.props.class=[bn.props.class,Cn].join(" "))}return provide(elPaginationKey,{pageCount:Fe,disabled:computed(()=>$.disabled),currentPage:ze,changeEvent:At,handleSizeChange:Lt}),()=>{var bn,Cn;if(!$e.value)return ie("el.pagination.deprecationWarning"),null;if(!$.layout||$.hideOnSinglePage&&Fe.value<=1)return null;const En=[],$n=[],wn=h$3("div",{class:le.e("rightwrapper")},$n),Tn={prev:h$3(Prev,{disabled:$.disabled,currentPage:ze.value,prevText:$.prevText,prevIcon:$.prevIcon,onClick:hn}),jumper:h$3(Jumper,{size:$.small?"small":"default"}),pager:h$3(Pager,{currentPage:ze.value,pageCount:Fe.value,pagerCount:$.pagerCount,onChange:At,disabled:$.disabled}),next:h$3(Next,{disabled:$.disabled,currentPage:ze.value,pageCount:Fe.value,nextText:$.nextText,nextIcon:$.nextIcon,onClick:vn}),sizes:h$3(Sizes,{pageSize:Ne.value,pageSizes:$.pageSizes,popperClass:$.popperClass,disabled:$.disabled,size:$.small?"small":"default"}),slot:(Cn=(bn=ae==null?void 0:ae.default)==null?void 0:bn.call(ae))!=null?Cn:null,total:h$3(Total,{total:isAbsent($.total)?0:$.total})},xn=$.layout.split(",").map(An=>An.trim());let kn=!1;return xn.forEach(An=>{if(An==="->"){kn=!0;return}kn?$n.push(Tn[An]):En.push(Tn[An])}),_n(En[0],le.is("first")),_n(En[En.length-1],le.is("last")),kn&&$n.length>0&&(_n($n[0],le.is("first")),_n($n[$n.length-1],le.is("last")),En.push(wn)),h$3("div",{class:[le.b(),le.is("background",$.background),{[le.m("small")]:$.small}]},En)}}});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:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:useTooltipContentProps.teleported,persistent:useTooltipContentProps.persistent,width:{type:[String,Number],default:150}}),popconfirmEmits={confirm:$=>$ instanceof MouseEvent,cancel:$=>$ instanceof MouseEvent},__default__$y=defineComponent({name:"ElPopconfirm"}),_sfc_main$K=defineComponent({...__default__$y,props:popconfirmProps,emits:popconfirmEmits,setup($,{emit:oe}){const ae=$,{t:ie}=useLocale(),le=useNamespace("popconfirm"),pe=ref(),_e=()=>{var Fe,ze;(ze=(Fe=pe.value)==null?void 0:Fe.onClose)==null||ze.call(Fe)},Ce=computed(()=>({width:addUnit(ae.width)})),$e=Fe=>{oe("confirm",Fe),_e()},xe=Fe=>{oe("cancel",Fe),_e()},Ie=computed(()=>ae.confirmButtonText||ie("el.popconfirm.confirmButtonText")),Ne=computed(()=>ae.cancelButtonText||ie("el.popconfirm.cancelButtonText"));return(Fe,ze)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:pe,trigger:"click",effect:"light"},Fe.$attrs,{"popper-class":`${unref(le).namespace.value}-popover`,"popper-style":unref(Ce),teleported:Fe.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":Fe.hideAfter,persistent:Fe.persistent}),{content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(le).b())},[createBaseVNode("div",{class:normalizeClass(unref(le).e("main"))},[!Fe.hideIcon&&Fe.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("icon")),style:normalizeStyle$1({color:Fe.iconColor})},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Fe.icon)))]),_:1},8,["class","style"])):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString$1(Fe.title),1)],2),createBaseVNode("div",{class:normalizeClass(unref(le).e("action"))},[createVNode(unref(ElButton),{size:"small",type:Fe.cancelButtonType==="text"?"":Fe.cancelButtonType,text:Fe.cancelButtonType==="text",onClick:xe},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ne)),1)]),_:1},8,["type","text"]),createVNode(unref(ElButton),{size:"small",type:Fe.confirmButtonType==="text"?"":Fe.confirmButtonType,text:Fe.confirmButtonType==="text",onClick:$e},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ie)),1)]),_:1},8,["type","text"])],2)],2)]),default:withCtx(()=>[Fe.$slots.reference?renderSlot(Fe.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Popconfirm=_export_sfc$1(_sfc_main$K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const ElPopconfirm=withInstall(Popconfirm),popoverProps=buildProps({trigger:useTooltipTriggerProps.trigger,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,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":$=>isBoolean$3($),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},updateEventKeyRaw="onUpdate:visible",__default__$x=defineComponent({name:"ElPopover"}),_sfc_main$J=defineComponent({...__default__$x,props:popoverProps,emits:popoverEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=computed(()=>ie[updateEventKeyRaw]),pe=useNamespace("popover"),_e=ref(),Ce=computed(()=>{var hn;return(hn=unref(_e))==null?void 0:hn.popperRef}),$e=computed(()=>[{width:addUnit(ie.width)},ie.popperStyle]),xe=computed(()=>[pe.b(),ie.popperClass,{[pe.m("plain")]:!!ie.content}]),Ie=computed(()=>ie.transition===`${pe.namespace.value}-fade-in-linear`),Ne=()=>{var hn;(hn=_e.value)==null||hn.hide()},Fe=()=>{ae("before-enter")},ze=()=>{ae("before-leave")},At=()=>{ae("after-enter")},Lt=()=>{ae("update:visible",!1),ae("after-leave")};return oe({popperRef:Ce,hide:Ne}),(hn,vn)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:_e},hn.$attrs,{trigger:hn.trigger,placement:hn.placement,disabled:hn.disabled,visible:hn.visible,transition:hn.transition,"popper-options":hn.popperOptions,tabindex:hn.tabindex,content:hn.content,offset:hn.offset,"show-after":hn.showAfter,"hide-after":hn.hideAfter,"auto-close":hn.autoClose,"show-arrow":hn.showArrow,"aria-label":hn.title,effect:hn.effect,enterable:hn.enterable,"popper-class":unref(xe),"popper-style":unref($e),teleported:hn.teleported,persistent:hn.persistent,"gpu-acceleration":unref(Ie),"onUpdate:visible":unref(le),onBeforeShow:Fe,onBeforeHide:ze,onShow:At,onHide:Lt}),{content:withCtx(()=>[hn.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(pe).e("title")),role:"title"},toDisplayString$1(hn.title),3)):createCommentVNode("v-if",!0),renderSlot(hn.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(hn.content),1)])]),default:withCtx(()=>[hn.$slots.reference?renderSlot(hn.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["trigger","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","persistent","gpu-acceleration","onUpdate:visible"]))}});var Popover=_export_sfc$1(_sfc_main$J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const attachEvents=($,oe)=>{const ae=oe.arg||oe.value,ie=ae==null?void 0:ae.popperRef;ie&&(ie.triggerRef=$)};var PopoverDirective={mounted($,oe){attachEvents($,oe)},updated($,oe){attachEvents($,oe)}};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:$=>$>=0&&$<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:definePropType(String),default:"round"},textInside:{type:Boolean,default:!1},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:$=>`${$}%`}}),_hoisted_1$l=["aria-valuenow"],_hoisted_2$e={viewBox:"0 0 100 100"},_hoisted_3$7=["d","stroke","stroke-width"],_hoisted_4$5=["d","stroke","opacity","stroke-linecap","stroke-width"],_hoisted_5$3={key:0},__default__$w=defineComponent({name:"ElProgress"}),_sfc_main$I=defineComponent({...__default__$w,props:progressProps,setup($){const oe=$,ae={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},ie=useNamespace("progress"),le=computed(()=>({width:`${oe.percentage}%`,animationDuration:`${oe.duration}s`,backgroundColor:_n(oe.percentage)})),pe=computed(()=>(oe.strokeWidth/oe.width*100).toFixed(1)),_e=computed(()=>["circle","dashboard"].includes(oe.type)?Number.parseInt(`${50-Number.parseFloat(pe.value)/2}`,10):0),Ce=computed(()=>{const bn=_e.value,Cn=oe.type==="dashboard";return` + M 50 50 + m 0 ${Cn?"":"-"}${bn} + a ${bn} ${bn} 0 1 1 0 ${Cn?"-":""}${bn*2} + a ${bn} ${bn} 0 1 1 0 ${Cn?"":"-"}${bn*2} + `}),$e=computed(()=>2*Math.PI*_e.value),xe=computed(()=>oe.type==="dashboard"?.75:1),Ie=computed(()=>`${-1*$e.value*(1-xe.value)/2}px`),Ne=computed(()=>({strokeDasharray:`${$e.value*xe.value}px, ${$e.value}px`,strokeDashoffset:Ie.value})),Fe=computed(()=>({strokeDasharray:`${$e.value*xe.value*(oe.percentage/100)}px, ${$e.value}px`,strokeDashoffset:Ie.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),ze=computed(()=>{let bn;return oe.color?bn=_n(oe.percentage):bn=ae[oe.status]||ae.default,bn}),At=computed(()=>oe.status==="warning"?warning_filled_default:oe.type==="line"?oe.status==="success"?circle_check_default:circle_close_default:oe.status==="success"?check_default:close_default),Lt=computed(()=>oe.type==="line"?12+oe.strokeWidth*.4:oe.width*.111111+2),hn=computed(()=>oe.format(oe.percentage));function vn(bn){const Cn=100/bn.length;return bn.map(($n,wn)=>isString$7($n)?{color:$n,percentage:(wn+1)*Cn}:$n).sort(($n,wn)=>$n.percentage-wn.percentage)}const _n=bn=>{var Cn;const{color:En}=oe;if(isFunction$5(En))return En(bn);if(isString$7(En))return En;{const $n=vn(En);for(const wn of $n)if(wn.percentage>bn)return wn.color;return(Cn=$n[$n.length-1])==null?void 0:Cn.color}};return(bn,Cn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b(),unref(ie).m(bn.type),unref(ie).is(bn.status),{[unref(ie).m("without-text")]:!bn.showText,[unref(ie).m("text-inside")]:bn.textInside}]),role:"progressbar","aria-valuenow":bn.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[bn.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(ie).be("bar","outer")),style:normalizeStyle$1({height:`${bn.strokeWidth}px`})},[createBaseVNode("div",{class:normalizeClass([unref(ie).be("bar","inner"),{[unref(ie).bem("bar","inner","indeterminate")]:bn.indeterminate},{[unref(ie).bem("bar","inner","striped")]:bn.striped},{[unref(ie).bem("bar","inner","striped-flow")]:bn.stripedFlow}]),style:normalizeStyle$1(unref(le))},[(bn.showText||bn.$slots.default)&&bn.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).be("bar","innerText"))},[renderSlot(bn.$slots,"default",{percentage:bn.percentage},()=>[createBaseVNode("span",null,toDisplayString$1(unref(hn)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).b("circle")),style:normalizeStyle$1({height:`${bn.width}px`,width:`${bn.width}px`})},[(openBlock(),createElementBlock("svg",_hoisted_2$e,[createBaseVNode("path",{class:normalizeClass(unref(ie).be("circle","track")),d:unref(Ce),stroke:`var(${unref(ie).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":unref(pe),fill:"none",style:normalizeStyle$1(unref(Ne))},null,14,_hoisted_3$7),createBaseVNode("path",{class:normalizeClass(unref(ie).be("circle","path")),d:unref(Ce),stroke:unref(ze),fill:"none",opacity:bn.percentage?1:0,"stroke-linecap":bn.strokeLinecap,"stroke-width":unref(pe),style:normalizeStyle$1(unref(Fe))},null,14,_hoisted_4$5)]))],6)),(bn.showText||bn.$slots.default)&&!bn.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(ie).e("text")),style:normalizeStyle$1({fontSize:`${unref(Lt)}px`})},[renderSlot(bn.$slots,"default",{percentage:bn.percentage},()=>[bn.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(At))))]),_:1})):(openBlock(),createElementBlock("span",_hoisted_5$3,toDisplayString$1(unref(hn)),1))])],6)):createCommentVNode("v-if",!0)],10,_hoisted_1$l))}});var Progress=_export_sfc$1(_sfc_main$I,[["__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:Boolean,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,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),rateEmits={[CHANGE_EVENT]:$=>isNumber$5($),[UPDATE_MODEL_EVENT]:$=>isNumber$5($)},_hoisted_1$k=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],_hoisted_2$d=["onMousemove","onClick"],__default__$v=defineComponent({name:"ElRate"}),_sfc_main$H=defineComponent({...__default__$v,props:rateProps,emits:rateEmits,setup($,{expose:oe,emit:ae}){const ie=$;function le(Bn,Mn){const Fn=Zn=>isObject$8(Zn),Vn=Object.keys(Mn).map(Zn=>+Zn).filter(Zn=>{const Gn=Mn[Zn];return(Fn(Gn)?Gn.excluded:!1)?BnZn-Gn),jn=Mn[Vn[0]];return Fn(jn)&&jn.value||jn}const pe=inject(formContextKey,void 0),_e=inject(formItemContextKey,void 0),Ce=useFormSize(),$e=useNamespace("rate"),{inputId:xe,isLabeledByFormItem:Ie}=useFormItemInputId(ie,{formItemContext:_e}),Ne=ref(ie.modelValue),Fe=ref(-1),ze=ref(!0),At=computed(()=>[$e.b(),$e.m(Ce.value)]),Lt=computed(()=>ie.disabled||(pe==null?void 0:pe.disabled)),hn=computed(()=>$e.cssVarBlock({"void-color":ie.voidColor,"disabled-void-color":ie.disabledVoidColor,"fill-color":Cn.value})),vn=computed(()=>{let Bn="";return ie.showScore?Bn=ie.scoreTemplate.replace(/\{\s*value\s*\}/,Lt.value?`${ie.modelValue}`:`${Ne.value}`):ie.showText&&(Bn=ie.texts[Math.ceil(Ne.value)-1]),Bn}),_n=computed(()=>ie.modelValue*100-Math.floor(ie.modelValue)*100),bn=computed(()=>isArray$c(ie.colors)?{[ie.lowThreshold]:ie.colors[0],[ie.highThreshold]:{value:ie.colors[1],excluded:!0},[ie.max]:ie.colors[2]}:ie.colors),Cn=computed(()=>{const Bn=le(Ne.value,bn.value);return isObject$8(Bn)?"":Bn}),En=computed(()=>{let Bn="";return Lt.value?Bn=`${_n.value}%`:ie.allowHalf&&(Bn="50%"),{color:Cn.value,width:Bn}}),$n=computed(()=>{let Bn=isArray$c(ie.icons)?[...ie.icons]:{...ie.icons};return Bn=markRaw(Bn),isArray$c(Bn)?{[ie.lowThreshold]:Bn[0],[ie.highThreshold]:{value:Bn[1],excluded:!0},[ie.max]:Bn[2]}:Bn}),wn=computed(()=>le(ie.modelValue,$n.value)),Tn=computed(()=>Lt.value?isString$7(ie.disabledVoidIcon)?ie.disabledVoidIcon:markRaw(ie.disabledVoidIcon):isString$7(ie.voidIcon)?ie.voidIcon:markRaw(ie.voidIcon)),xn=computed(()=>le(Ne.value,$n.value));function kn(Bn){const Mn=Lt.value&&_n.value>0&&Bn-1ie.modelValue,Fn=ie.allowHalf&&ze.value&&Bn-.5<=Ne.value&&Bn>Ne.value;return Mn||Fn}function An(Bn){ie.clearable&&Bn===ie.modelValue&&(Bn=0),ae(UPDATE_MODEL_EVENT,Bn),ie.modelValue!==Bn&&ae("change",Bn)}function On(Bn){Lt.value||(ie.allowHalf&&ze.value?An(Ne.value):An(Bn))}function Nn(Bn){if(Lt.value)return;let Mn=Ne.value;const Fn=Bn.code;return Fn===EVENT_CODE.up||Fn===EVENT_CODE.right?(ie.allowHalf?Mn+=.5:Mn+=1,Bn.stopPropagation(),Bn.preventDefault()):(Fn===EVENT_CODE.left||Fn===EVENT_CODE.down)&&(ie.allowHalf?Mn-=.5:Mn-=1,Bn.stopPropagation(),Bn.preventDefault()),Mn=Mn<0?0:Mn,Mn=Mn>ie.max?ie.max:Mn,ae(UPDATE_MODEL_EVENT,Mn),ae("change",Mn),Mn}function Rn(Bn,Mn){if(!Lt.value){if(ie.allowHalf&&Mn){let Fn=Mn.target;hasClass(Fn,$e.e("item"))&&(Fn=Fn.querySelector(`.${$e.e("icon")}`)),(Fn.clientWidth===0||hasClass(Fn,$e.e("decimal")))&&(Fn=Fn.parentNode),ze.value=Mn.offsetX*2<=Fn.clientWidth,Ne.value=ze.value?Bn-.5:Bn}else Ne.value=Bn;Fe.value=Bn}}function zn(){Lt.value||(ie.allowHalf&&(ze.value=ie.modelValue!==Math.floor(ie.modelValue)),Ne.value=ie.modelValue,Fe.value=-1)}return watch(()=>ie.modelValue,Bn=>{Ne.value=Bn,ze.value=ie.modelValue!==Math.floor(ie.modelValue)}),ie.modelValue||ae(UPDATE_MODEL_EVENT,0),oe({setCurrentValue:Rn,resetCurrentValue:zn}),(Bn,Mn)=>{var Fn;return openBlock(),createElementBlock("div",{id:unref(xe),class:normalizeClass([unref(At),unref($e).is("disabled",unref(Lt))]),role:"slider","aria-label":unref(Ie)?void 0:Bn.label||"rating","aria-labelledby":unref(Ie)?(Fn=unref(_e))==null?void 0:Fn.labelId:void 0,"aria-valuenow":Ne.value,"aria-valuetext":unref(vn)||void 0,"aria-valuemin":"0","aria-valuemax":Bn.max,tabindex:"0",style:normalizeStyle$1(unref(hn)),onKeydown:Nn},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.max,(Vn,jn)=>(openBlock(),createElementBlock("span",{key:jn,class:normalizeClass(unref($e).e("item")),onMousemove:Zn=>Rn(Vn,Zn),onMouseleave:zn,onClick:Zn=>On(Vn)},[createVNode(unref(ElIcon),{class:normalizeClass([unref($e).e("icon"),{hover:Fe.value===Vn},unref($e).is("active",Vn<=Ne.value)])},{default:withCtx(()=>[kn(Vn)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref(xn)),null,null,512)),[[vShow,Vn<=Ne.value]]),withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref(Tn)),null,null,512)),[[vShow,!(Vn<=Ne.value)]])],64)),kn(Vn)?(openBlock(),createBlock(unref(ElIcon),{key:1,style:normalizeStyle$1(unref(En)),class:normalizeClass([unref($e).e("icon"),unref($e).e("decimal")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(wn))))]),_:1},8,["style","class"])):createCommentVNode("v-if",!0)]),_:2},1032,["class"])],42,_hoisted_2$d))),128)),Bn.showText||Bn.showScore?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref($e).e("text"))},toDisplayString$1(unref(vn)),3)):createCommentVNode("v-if",!0)],46,_hoisted_1$k)}}});var Rate=_export_sfc$1(_sfc_main$H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const ElRate=withInstall(Rate),IconMap={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},IconComponentMap={[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:["success","warning","info","error"],default:"info"}}),__default__$u=defineComponent({name:"ElResult"}),_sfc_main$G=defineComponent({...__default__$u,props:resultProps,setup($){const oe=$,ae=useNamespace("result"),ie=computed(()=>{const le=oe.icon,pe=le&&IconMap[le]?IconMap[le]:"icon-info",_e=IconComponentMap[pe]||IconComponentMap["icon-info"];return{class:pe,component:_e}});return(le,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ae).b())},[createBaseVNode("div",{class:normalizeClass(unref(ae).e("icon"))},[renderSlot(le.$slots,"icon",{},()=>[unref(ie).component?(openBlock(),createBlock(resolveDynamicComponent(unref(ie).component),{key:0,class:normalizeClass(unref(ie).class)},null,8,["class"])):createCommentVNode("v-if",!0)])],2),le.title||le.$slots.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("title"))},[renderSlot(le.$slots,"title",{},()=>[createBaseVNode("p",null,toDisplayString$1(le.title),1)])],2)):createCommentVNode("v-if",!0),le.subTitle||le.$slots["sub-title"]?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ae).e("subtitle"))},[renderSlot(le.$slots,"sub-title",{},()=>[createBaseVNode("p",null,toDisplayString$1(le.subTitle),1)])],2)):createCommentVNode("v-if",!0),le.$slots.extra?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(ae).e("extra"))},[renderSlot(le.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2))}});var Result=_export_sfc$1(_sfc_main$G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const ElResult=withInstall(Result);var safeIsNaN=Number.isNaN||function(oe){return typeof oe=="number"&&oe!==oe};function isEqual($,oe){return!!($===oe||safeIsNaN($)&&safeIsNaN(oe))}function areInputsEqual($,oe){if($.length!==oe.length)return!1;for(var ae=0;ae<$.length;ae++)if(!isEqual($[ae],oe[ae]))return!1;return!0}function memoizeOne($,oe){oe===void 0&&(oe=areInputsEqual);var ae=null;function ie(){for(var le=[],pe=0;pe{const oe=getCurrentInstance().proxy.$props;return computed(()=>{const ae=(ie,le,pe)=>({});return oe.perfMode?memoize(ae):memoizeOne(ae)})},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$1="horizontal",VERTICAL$1="vertical",LTR="ltr",RTL="rtl",RTL_OFFSET_NAG="negative",RTL_OFFSET_POS_ASC="positive-ascending",RTL_OFFSET_POS_DESC="positive-descending",ScrollbarDirKey={[HORIZONTAL$1]:"left",[VERTICAL$1]:"top"},SCROLLBAR_MIN_SIZE=20,LayoutKeys={[HORIZONTAL$1]:"deltaX",[VERTICAL$1]:"deltaY"},useWheel=({atEndEdge:$,atStartEdge:oe,layout:ae},ie)=>{let le,pe=0;const _e=$e=>$e<0&&oe.value||$e>0&&$.value;return{hasReachedEdge:_e,onWheel:$e=>{cAF(le);const xe=$e[LayoutKeys[ae.value]];_e(pe)&&_e(pe+xe)||(pe+=xe,isFirefox()||$e.preventDefault(),le=rAF(()=>{ie(pe),pe=0}))}}},itemSize$1=buildProp({type:definePropType([Number,Function]),required:!0}),estimatedItemSize=buildProp({type:Number}),cache$1=buildProp({type:Number,default:2}),direction=buildProp({type:String,values:["ltr","rtl"],default:"ltr"}),initScrollOffset=buildProp({type:Number,default:0}),total=buildProp({type:Number,required:!0}),layout$3=buildProp({type:String,values:["horizontal","vertical"],default:VERTICAL$1}),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"},style:{type:definePropType([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),virtualizedListProps=buildProps({cache:cache$1,estimatedItemSize,layout:layout$3,initScrollOffset,total,itemSize:itemSize$1,...virtualizedProps}),scrollbarSize={type:Number,default:6},startGap={type:Number,default:0},endGap={type:Number,default:2},virtualizedGridProps=buildProps({columnCache:cache$1,columnWidth:itemSize$1,estimatedColumnWidth:estimatedItemSize,estimatedRowHeight:estimatedItemSize,initScrollLeft:initScrollOffset,initScrollTop:initScrollOffset,itemKey:{type:definePropType(Function),default:({columnIndex:$,rowIndex:oe})=>`${oe}:${$}`},rowCache:cache$1,rowHeight:itemSize$1,totalColumn:total,totalRow:total,hScrollbarSize:scrollbarSize,vScrollbarSize:scrollbarSize,scrollbarStartGap:startGap,scrollbarEndGap:endGap,role:String,...virtualizedProps}),virtualizedScrollbarProps=buildProps({alwaysOn:Boolean,class:String,layout:layout$3,total,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize,startGap,endGap,visible:Boolean}),getScrollDir=($,oe)=>$$===LTR||$===RTL||$===HORIZONTAL$1,isRTL=$=>$===RTL;let cachedRTLResult=null;function getRTLOffsetType($=!1){if(cachedRTLResult===null||$){const oe=document.createElement("div"),ae=oe.style;ae.width="50px",ae.height="50px",ae.overflow="scroll",ae.direction="rtl";const ie=document.createElement("div"),le=ie.style;return le.width="100px",le.height="100px",oe.appendChild(ie),document.body.appendChild(oe),oe.scrollLeft>0?cachedRTLResult=RTL_OFFSET_POS_DESC:(oe.scrollLeft=1,oe.scrollLeft===0?cachedRTLResult=RTL_OFFSET_NAG:cachedRTLResult=RTL_OFFSET_POS_ASC),document.body.removeChild(oe),cachedRTLResult}return cachedRTLResult}function renderThumbStyle({move:$,size:oe,bar:ae},ie){const le={},pe=`translate${ae.axis}(${$}px)`;return le[ae.size]=oe,le.transform=pe,le.msTransform=pe,le.webkitTransform=pe,ie==="horizontal"?le.height="100%":le.width="100%",le}const ScrollBar=defineComponent({name:"ElVirtualScrollBar",props:virtualizedScrollbarProps,emits:["scroll","start-move","stop-move"],setup($,{emit:oe}){const ae=computed(()=>$.startGap+$.endGap),ie=useNamespace("virtual-scrollbar"),le=useNamespace("scrollbar"),pe=ref(),_e=ref();let Ce=null,$e=null;const xe=reactive({isDragging:!1,traveled:0}),Ie=computed(()=>BAR_MAP[$.layout]),Ne=computed(()=>$.clientSize-unref(ae)),Fe=computed(()=>({position:"absolute",width:`${HORIZONTAL$1===$.layout?Ne.value:$.scrollbarSize}px`,height:`${HORIZONTAL$1===$.layout?$.scrollbarSize:Ne.value}px`,[ScrollbarDirKey[$.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),ze=computed(()=>{const $n=$.ratio,wn=$.clientSize;if($n>=100)return Number.POSITIVE_INFINITY;if($n>=50)return $n*wn/100;const Tn=wn/3;return Math.floor(Math.min(Math.max($n*wn,SCROLLBAR_MIN_SIZE),Tn))}),At=computed(()=>{if(!Number.isFinite(ze.value))return{display:"none"};const $n=`${ze.value}px`;return renderThumbStyle({bar:Ie.value,size:$n,move:xe.traveled},$.layout)}),Lt=computed(()=>Math.floor($.clientSize-ze.value-unref(ae))),hn=()=>{window.addEventListener("mousemove",Cn),window.addEventListener("mouseup",bn);const $n=unref(_e);$n&&($e=document.onselectstart,document.onselectstart=()=>!1,$n.addEventListener("touchmove",Cn),$n.addEventListener("touchend",bn))},vn=()=>{window.removeEventListener("mousemove",Cn),window.removeEventListener("mouseup",bn),document.onselectstart=$e,$e=null;const $n=unref(_e);$n&&($n.removeEventListener("touchmove",Cn),$n.removeEventListener("touchend",bn))},_n=$n=>{$n.stopImmediatePropagation(),!($n.ctrlKey||[1,2].includes($n.button))&&(xe.isDragging=!0,xe[Ie.value.axis]=$n.currentTarget[Ie.value.offset]-($n[Ie.value.client]-$n.currentTarget.getBoundingClientRect()[Ie.value.direction]),oe("start-move"),hn())},bn=()=>{xe.isDragging=!1,xe[Ie.value.axis]=0,oe("stop-move"),vn()},Cn=$n=>{const{isDragging:wn}=xe;if(!wn||!_e.value||!pe.value)return;const Tn=xe[Ie.value.axis];if(!Tn)return;cAF(Ce);const xn=(pe.value.getBoundingClientRect()[Ie.value.direction]-$n[Ie.value.client])*-1,kn=_e.value[Ie.value.offset]-Tn,An=xn-kn;Ce=rAF(()=>{xe.traveled=Math.max($.startGap,Math.min(An,Lt.value)),oe("scroll",An,Lt.value)})},En=$n=>{const wn=Math.abs($n.target.getBoundingClientRect()[Ie.value.direction]-$n[Ie.value.client]),Tn=_e.value[Ie.value.offset]/2,xn=wn-Tn;xe.traveled=Math.max(0,Math.min(xn,Lt.value)),oe("scroll",xn,Lt.value)};return watch(()=>$.scrollFrom,$n=>{xe.isDragging||(xe.traveled=Math.ceil($n*Lt.value))}),onBeforeUnmount(()=>{vn()}),()=>h$3("div",{role:"presentation",ref:pe,class:[ie.b(),$.class,($.alwaysOn||xe.isDragging)&&"always-on"],style:Fe.value,onMousedown:withModifiers(En,["stop","prevent"]),onTouchstartPrevent:_n},h$3("div",{ref:_e,class:le.e("thumb"),style:At.value,onMousedown:_n},[]))}}),createList$1=({name:$,getOffset:oe,getItemSize:ae,getItemOffset:ie,getEstimatedTotalSize:le,getStartIndexForOffset:pe,getStopIndexForStartIndex:_e,initCache:Ce,clearCache:$e,validateProps:xe})=>defineComponent({name:$??"ElVirtualList",props:virtualizedListProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(Ie,{emit:Ne,expose:Fe}){xe(Ie);const ze=getCurrentInstance(),At=useNamespace("vl"),Lt=ref(Ce(Ie,ze)),hn=useCache(),vn=ref(),_n=ref(),bn=ref(),Cn=ref({isScrolling:!1,scrollDir:"forward",scrollOffset:isNumber$5(Ie.initScrollOffset)?Ie.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:Ie.scrollbarAlwaysOn}),En=computed(()=>{const{total:Xn,cache:cr}=Ie,{isScrolling:nr,scrollDir:er,scrollOffset:rr}=unref(Cn);if(Xn===0)return[0,0,0,0];const qn=pe(Ie,rr,unref(Lt)),Yn=_e(Ie,qn,rr,unref(Lt)),ar=!nr||er===BACKWARD?Math.max(1,cr):1,pr=!nr||er===FORWARD?Math.max(1,cr):1;return[Math.max(0,qn-ar),Math.max(0,Math.min(Xn-1,Yn+pr)),qn,Yn]}),$n=computed(()=>le(Ie,unref(Lt))),wn=computed(()=>isHorizontal(Ie.layout)),Tn=computed(()=>[{position:"relative",[`overflow-${wn.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:Ie.direction,height:isNumber$5(Ie.height)?`${Ie.height}px`:Ie.height,width:isNumber$5(Ie.width)?`${Ie.width}px`:Ie.width},Ie.style]),xn=computed(()=>{const Xn=unref($n),cr=unref(wn);return{height:cr?"100%":`${Xn}px`,pointerEvents:unref(Cn).isScrolling?"none":void 0,width:cr?`${Xn}px`:"100%"}}),kn=computed(()=>wn.value?Ie.width:Ie.height),{onWheel:An}=useWheel({atStartEdge:computed(()=>Cn.value.scrollOffset<=0),atEndEdge:computed(()=>Cn.value.scrollOffset>=$n.value),layout:computed(()=>Ie.layout)},Xn=>{var cr,nr;(nr=(cr=bn.value).onMouseUp)==null||nr.call(cr),Mn(Math.min(Cn.value.scrollOffset+Xn,$n.value-kn.value))}),On=()=>{const{total:Xn}=Ie;if(Xn>0){const[rr,qn,Yn,ar]=unref(En);Ne(ITEM_RENDER_EVT,rr,qn,Yn,ar)}const{scrollDir:cr,scrollOffset:nr,updateRequested:er}=unref(Cn);Ne(SCROLL_EVT,cr,nr,er)},Nn=Xn=>{const{clientHeight:cr,scrollHeight:nr,scrollTop:er}=Xn.currentTarget,rr=unref(Cn);if(rr.scrollOffset===er)return;const qn=Math.max(0,Math.min(er,nr-cr));Cn.value={...rr,isScrolling:!0,scrollDir:getScrollDir(rr.scrollOffset,qn),scrollOffset:qn,updateRequested:!1},nextTick(jn)},Rn=Xn=>{const{clientWidth:cr,scrollLeft:nr,scrollWidth:er}=Xn.currentTarget,rr=unref(Cn);if(rr.scrollOffset===nr)return;const{direction:qn}=Ie;let Yn=nr;if(qn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{Yn=-nr;break}case RTL_OFFSET_POS_DESC:{Yn=er-cr-nr;break}}Yn=Math.max(0,Math.min(Yn,er-cr)),Cn.value={...rr,isScrolling:!0,scrollDir:getScrollDir(rr.scrollOffset,Yn),scrollOffset:Yn,updateRequested:!1},nextTick(jn)},zn=Xn=>{unref(wn)?Rn(Xn):Nn(Xn),On()},Bn=(Xn,cr)=>{const nr=($n.value-kn.value)/cr*Xn;Mn(Math.min($n.value-kn.value,nr))},Mn=Xn=>{Xn=Math.max(Xn,0),Xn!==unref(Cn).scrollOffset&&(Cn.value={...unref(Cn),scrollOffset:Xn,scrollDir:getScrollDir(unref(Cn).scrollOffset,Xn),updateRequested:!0},nextTick(jn))},Fn=(Xn,cr=AUTO_ALIGNMENT)=>{const{scrollOffset:nr}=unref(Cn);Xn=Math.max(0,Math.min(Xn,Ie.total-1)),Mn(oe(Ie,Xn,cr,nr,unref(Lt)))},Vn=Xn=>{const{direction:cr,itemSize:nr,layout:er}=Ie,rr=hn.value($e&&nr,$e&&er,$e&&cr);let qn;if(hasOwn$4(rr,String(Xn)))qn=rr[Xn];else{const Yn=ie(Ie,Xn,unref(Lt)),ar=ae(Ie,Xn,unref(Lt)),pr=unref(wn),Un=cr===RTL,tr=pr?Yn:0;rr[Xn]=qn={position:"absolute",left:Un?void 0:`${tr}px`,right:Un?`${tr}px`:void 0,top:pr?0:`${Yn}px`,height:pr?"100%":`${ar}px`,width:pr?`${ar}px`:"100%"}}return qn},jn=()=>{Cn.value.isScrolling=!1,nextTick(()=>{hn.value(-1,null,null)})},Zn=()=>{const Xn=vn.value;Xn&&(Xn.scrollTop=0)};onMounted(()=>{if(!isClient$2)return;const{initScrollOffset:Xn}=Ie,cr=unref(vn);isNumber$5(Xn)&&cr&&(unref(wn)?cr.scrollLeft=Xn:cr.scrollTop=Xn),On()}),onUpdated(()=>{const{direction:Xn,layout:cr}=Ie,{scrollOffset:nr,updateRequested:er}=unref(Cn),rr=unref(vn);if(er&&rr)if(cr===HORIZONTAL$1)if(Xn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{rr.scrollLeft=-nr;break}case RTL_OFFSET_POS_ASC:{rr.scrollLeft=nr;break}default:{const{clientWidth:qn,scrollWidth:Yn}=rr;rr.scrollLeft=Yn-qn-nr;break}}else rr.scrollLeft=nr;else rr.scrollTop=nr});const Gn={ns:At,clientSize:kn,estimatedTotalSize:$n,windowStyle:Tn,windowRef:vn,innerRef:_n,innerStyle:xn,itemsToRender:En,scrollbarRef:bn,states:Cn,getItemStyle:Vn,onScroll:zn,onScrollbarScroll:Bn,onWheel:An,scrollTo:Mn,scrollToItem:Fn,resetScrollTop:Zn};return Fe({windowRef:vn,innerRef:_n,getItemStyleCache:hn,scrollTo:Mn,scrollToItem:Fn,resetScrollTop:Zn,states:Cn}),Gn},render(Ie){var Ne;const{$slots:Fe,className:ze,clientSize:At,containerElement:Lt,data:hn,getItemStyle:vn,innerElement:_n,itemsToRender:bn,innerStyle:Cn,layout:En,total:$n,onScroll:wn,onScrollbarScroll:Tn,onWheel:xn,states:kn,useIsScrolling:An,windowStyle:On,ns:Nn}=Ie,[Rn,zn]=bn,Bn=resolveDynamicComponent(Lt),Mn=resolveDynamicComponent(_n),Fn=[];if($n>0)for(let Gn=Rn;Gn<=zn;Gn++)Fn.push((Ne=Fe.default)==null?void 0:Ne.call(Fe,{data:hn,key:Gn,index:Gn,isScrolling:An?kn.isScrolling:void 0,style:vn(Gn)}));const Vn=[h$3(Mn,{style:Cn,ref:"innerRef"},isString$7(Mn)?Fn:{default:()=>Fn})],jn=h$3(ScrollBar,{ref:"scrollbarRef",clientSize:At,layout:En,onScroll:Tn,ratio:At*100/this.estimatedTotalSize,scrollFrom:kn.scrollOffset/(this.estimatedTotalSize-At),total:$n}),Zn=h$3(Bn,{class:[Nn.e("window"),ze],style:On,onScroll:wn,onWheel:xn,ref:"windowRef",key:0},isString$7(Bn)?[Vn]:{default:()=>[Vn]});return h$3("div",{key:0,class:[Nn.e("wrapper"),kn.scrollbarAlwaysOn?"always-on":""]},[Zn,jn])}}),FixedSizeList=createList$1({name:"ElFixedSizeList",getItemOffset:({itemSize:$},oe)=>oe*$,getItemSize:({itemSize:$})=>$,getEstimatedTotalSize:({total:$,itemSize:oe})=>oe*$,getOffset:({height:$,total:oe,itemSize:ae,layout:ie,width:le},pe,_e,Ce)=>{const $e=isHorizontal(ie)?le:$,xe=Math.max(0,oe*ae-$e),Ie=Math.min(xe,pe*ae),Ne=Math.max(0,(pe+1)*ae-$e);switch(_e===SMART_ALIGNMENT&&(Ce>=Ne-$e&&Ce<=Ie+$e?_e=AUTO_ALIGNMENT:_e=CENTERED_ALIGNMENT),_e){case START_ALIGNMENT:return Ie;case END_ALIGNMENT:return Ne;case CENTERED_ALIGNMENT:{const Fe=Math.round(Ne+(Ie-Ne)/2);return Fexe+Math.floor($e/2)?xe:Fe}case AUTO_ALIGNMENT:default:return Ce>=Ne&&Ce<=Ie?Ce:CeMath.max(0,Math.min($-1,Math.floor(ae/oe))),getStopIndexForStartIndex:({height:$,total:oe,itemSize:ae,layout:ie,width:le},pe,_e)=>{const Ce=pe*ae,$e=isHorizontal(ie)?le:$,xe=Math.ceil(($e+_e-Ce)/ae);return Math.max(0,Math.min(oe-1,pe+xe-1))},initCache(){},clearCache:!0,validateProps(){}}),getItemFromCache$1=($,oe,ae)=>{const{itemSize:ie}=$,{items:le,lastVisitedIndex:pe}=ae;if(oe>pe){let _e=0;if(pe>=0){const Ce=le[pe];_e=Ce.offset+Ce.size}for(let Ce=pe+1;Ce<=oe;Ce++){const $e=ie(Ce);le[Ce]={offset:_e,size:$e},_e+=$e}ae.lastVisitedIndex=oe}return le[oe]},findItem$1=($,oe,ae)=>{const{items:ie,lastVisitedIndex:le}=oe;return(le>0?ie[le].offset:0)>=ae?bs$1($,oe,0,le,ae):es$1($,oe,Math.max(0,le),ae)},bs$1=($,oe,ae,ie,le)=>{for(;ae<=ie;){const pe=ae+Math.floor((ie-ae)/2),_e=getItemFromCache$1($,pe,oe).offset;if(_e===le)return pe;_ele&&(ie=pe-1)}return Math.max(0,ae-1)},es$1=($,oe,ae,ie)=>{const{total:le}=$;let pe=1;for(;ae{let le=0;if(ie>=$&&(ie=$-1),ie>=0){const Ce=oe[ie];le=Ce.offset+Ce.size}const _e=($-ie-1)*ae;return le+_e},DynamicSizeList=createList$1({name:"ElDynamicSizeList",getItemOffset:($,oe,ae)=>getItemFromCache$1($,oe,ae).offset,getItemSize:($,oe,{items:ae})=>ae[oe].size,getEstimatedTotalSize,getOffset:($,oe,ae,ie,le)=>{const{height:pe,layout:_e,width:Ce}=$,$e=isHorizontal(_e)?Ce:pe,xe=getItemFromCache$1($,oe,le),Ie=getEstimatedTotalSize($,le),Ne=Math.max(0,Math.min(Ie-$e,xe.offset)),Fe=Math.max(0,xe.offset-$e+xe.size);switch(ae===SMART_ALIGNMENT&&(ie>=Fe-$e&&ie<=Ne+$e?ae=AUTO_ALIGNMENT:ae=CENTERED_ALIGNMENT),ae){case START_ALIGNMENT:return Ne;case END_ALIGNMENT:return Fe;case CENTERED_ALIGNMENT:return Math.round(Fe+(Ne-Fe)/2);case AUTO_ALIGNMENT:default:return ie>=Fe&&ie<=Ne?ie:iefindItem$1($,ae,oe),getStopIndexForStartIndex:($,oe,ae,ie)=>{const{height:le,total:pe,layout:_e,width:Ce}=$,$e=isHorizontal(_e)?Ce:le,xe=getItemFromCache$1($,oe,ie),Ie=ae+$e;let Ne=xe.offset+xe.size,Fe=oe;for(;Fe{var pe,_e;ae.lastVisitedIndex=Math.min(ae.lastVisitedIndex,ie-1),(pe=oe.exposed)==null||pe.getItemStyleCache(-1),le&&((_e=oe.proxy)==null||_e.$forceUpdate())},ae},clearCache:!1,validateProps:({itemSize:$})=>{}}),useGridWheel=({atXEndEdge:$,atXStartEdge:oe,atYEndEdge:ae,atYStartEdge:ie},le)=>{let pe=null,_e=0,Ce=0;const $e=(Ie,Ne)=>{const Fe=Ie<=0&&oe.value||Ie>=0&&$.value,ze=Ne<=0&&ie.value||Ne>=0&&ae.value;return Fe&&ze};return{hasReachedEdge:$e,onWheel:Ie=>{cAF(pe);let Ne=Ie.deltaX,Fe=Ie.deltaY;Math.abs(Ne)>Math.abs(Fe)?Fe=0:Ne=0,Ie.shiftKey&&Fe!==0&&(Ne=Fe,Fe=0),!($e(_e,Ce)&&$e(_e+Ne,Ce+Fe))&&(_e+=Ne,Ce+=Fe,Ie.preventDefault(),pe=rAF(()=>{le(_e,Ce),_e=0,Ce=0}))}}},createGrid=({name:$,clearCache:oe,getColumnPosition:ae,getColumnStartIndexForOffset:ie,getColumnStopIndexForStartIndex:le,getEstimatedTotalHeight:pe,getEstimatedTotalWidth:_e,getColumnOffset:Ce,getRowOffset:$e,getRowPosition:xe,getRowStartIndexForOffset:Ie,getRowStopIndexForStartIndex:Ne,initCache:Fe,injectToInstance:ze,validateProps:At})=>defineComponent({name:$??"ElVirtualList",props:virtualizedGridProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(Lt,{emit:hn,expose:vn,slots:_n}){const bn=useNamespace("vl");At(Lt);const Cn=getCurrentInstance(),En=ref(Fe(Lt,Cn));ze==null||ze(Cn,En);const $n=ref(),wn=ref(),Tn=ref(),xn=ref(null),kn=ref({isScrolling:!1,scrollLeft:isNumber$5(Lt.initScrollLeft)?Lt.initScrollLeft:0,scrollTop:isNumber$5(Lt.initScrollTop)?Lt.initScrollTop:0,updateRequested:!1,xAxisScrollDir:FORWARD,yAxisScrollDir:FORWARD}),An=useCache(),On=computed(()=>Number.parseInt(`${Lt.height}`,10)),Nn=computed(()=>Number.parseInt(`${Lt.width}`,10)),Rn=computed(()=>{const{totalColumn:sr,totalRow:Pr,columnCache:Sr}=Lt,{isScrolling:kr,xAxisScrollDir:mr,scrollLeft:lr}=unref(kn);if(sr===0||Pr===0)return[0,0,0,0];const hr=ie(Lt,lr,unref(En)),gr=le(Lt,hr,lr,unref(En)),Or=!kr||mr===BACKWARD?Math.max(1,Sr):1,Lr=!kr||mr===FORWARD?Math.max(1,Sr):1;return[Math.max(0,hr-Or),Math.max(0,Math.min(sr-1,gr+Lr)),hr,gr]}),zn=computed(()=>{const{totalColumn:sr,totalRow:Pr,rowCache:Sr}=Lt,{isScrolling:kr,yAxisScrollDir:mr,scrollTop:lr}=unref(kn);if(sr===0||Pr===0)return[0,0,0,0];const hr=Ie(Lt,lr,unref(En)),gr=Ne(Lt,hr,lr,unref(En)),Or=!kr||mr===BACKWARD?Math.max(1,Sr):1,Lr=!kr||mr===FORWARD?Math.max(1,Sr):1;return[Math.max(0,hr-Or),Math.max(0,Math.min(Pr-1,gr+Lr)),hr,gr]}),Bn=computed(()=>pe(Lt,unref(En))),Mn=computed(()=>_e(Lt,unref(En))),Fn=computed(()=>{var sr;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:Lt.direction,height:isNumber$5(Lt.height)?`${Lt.height}px`:Lt.height,width:isNumber$5(Lt.width)?`${Lt.width}px`:Lt.width},(sr=Lt.style)!=null?sr:{}]}),Vn=computed(()=>{const sr=`${unref(Mn)}px`;return{height:`${unref(Bn)}px`,pointerEvents:unref(kn).isScrolling?"none":void 0,width:sr}}),jn=()=>{const{totalColumn:sr,totalRow:Pr}=Lt;if(sr>0&&Pr>0){const[gr,Or,Lr,Vr]=unref(Rn),[Rr,$r,Tr,dr]=unref(zn);hn(ITEM_RENDER_EVT,{columnCacheStart:gr,columnCacheEnd:Or,rowCacheStart:Rr,rowCacheEnd:$r,columnVisibleStart:Lr,columnVisibleEnd:Vr,rowVisibleStart:Tr,rowVisibleEnd:dr})}const{scrollLeft:Sr,scrollTop:kr,updateRequested:mr,xAxisScrollDir:lr,yAxisScrollDir:hr}=unref(kn);hn(SCROLL_EVT,{xAxisScrollDir:lr,scrollLeft:Sr,yAxisScrollDir:hr,scrollTop:kr,updateRequested:mr})},Zn=sr=>{const{clientHeight:Pr,clientWidth:Sr,scrollHeight:kr,scrollLeft:mr,scrollTop:lr,scrollWidth:hr}=sr.currentTarget,gr=unref(kn);if(gr.scrollTop===lr&&gr.scrollLeft===mr)return;let Or=mr;if(isRTL(Lt.direction))switch(getRTLOffsetType()){case RTL_OFFSET_NAG:Or=-mr;break;case RTL_OFFSET_POS_DESC:Or=hr-Sr-mr;break}kn.value={...gr,isScrolling:!0,scrollLeft:Or,scrollTop:Math.max(0,Math.min(lr,kr-Pr)),updateRequested:!0,xAxisScrollDir:getScrollDir(gr.scrollLeft,Or),yAxisScrollDir:getScrollDir(gr.scrollTop,lr)},nextTick(()=>qn()),Yn(),jn()},Gn=(sr,Pr)=>{const Sr=unref(On),kr=(Bn.value-Sr)/Pr*sr;nr({scrollTop:Math.min(Bn.value-Sr,kr)})},Xn=(sr,Pr)=>{const Sr=unref(Nn),kr=(Mn.value-Sr)/Pr*sr;nr({scrollLeft:Math.min(Mn.value-Sr,kr)})},{onWheel:cr}=useGridWheel({atXStartEdge:computed(()=>kn.value.scrollLeft<=0),atXEndEdge:computed(()=>kn.value.scrollLeft>=Mn.value-unref(Nn)),atYStartEdge:computed(()=>kn.value.scrollTop<=0),atYEndEdge:computed(()=>kn.value.scrollTop>=Bn.value-unref(On))},(sr,Pr)=>{var Sr,kr,mr,lr;(kr=(Sr=wn.value)==null?void 0:Sr.onMouseUp)==null||kr.call(Sr),(lr=(mr=wn.value)==null?void 0:mr.onMouseUp)==null||lr.call(mr);const hr=unref(Nn),gr=unref(On);nr({scrollLeft:Math.min(kn.value.scrollLeft+sr,Mn.value-hr),scrollTop:Math.min(kn.value.scrollTop+Pr,Bn.value-gr)})}),nr=({scrollLeft:sr=kn.value.scrollLeft,scrollTop:Pr=kn.value.scrollTop})=>{sr=Math.max(sr,0),Pr=Math.max(Pr,0);const Sr=unref(kn);Pr===Sr.scrollTop&&sr===Sr.scrollLeft||(kn.value={...Sr,xAxisScrollDir:getScrollDir(Sr.scrollLeft,sr),yAxisScrollDir:getScrollDir(Sr.scrollTop,Pr),scrollLeft:sr,scrollTop:Pr,updateRequested:!0},nextTick(()=>qn()),Yn(),jn())},er=(sr=0,Pr=0,Sr=AUTO_ALIGNMENT)=>{const kr=unref(kn);Pr=Math.max(0,Math.min(Pr,Lt.totalColumn-1)),sr=Math.max(0,Math.min(sr,Lt.totalRow-1));const mr=getScrollBarWidth(bn.namespace.value),lr=unref(En),hr=pe(Lt,lr),gr=_e(Lt,lr);nr({scrollLeft:Ce(Lt,Pr,Sr,kr.scrollLeft,lr,gr>Lt.width?mr:0),scrollTop:$e(Lt,sr,Sr,kr.scrollTop,lr,hr>Lt.height?mr:0)})},rr=(sr,Pr)=>{const{columnWidth:Sr,direction:kr,rowHeight:mr}=Lt,lr=An.value(oe&&Sr,oe&&mr,oe&&kr),hr=`${sr},${Pr}`;if(hasOwn$4(lr,hr))return lr[hr];{const[,gr]=ae(Lt,Pr,unref(En)),Or=unref(En),Lr=isRTL(kr),[Vr,Rr]=xe(Lt,sr,Or),[$r]=ae(Lt,Pr,Or);return lr[hr]={position:"absolute",left:Lr?void 0:`${gr}px`,right:Lr?`${gr}px`:void 0,top:`${Rr}px`,height:`${Vr}px`,width:`${$r}px`},lr[hr]}},qn=()=>{kn.value.isScrolling=!1,nextTick(()=>{An.value(-1,null,null)})};onMounted(()=>{if(!isClient$2)return;const{initScrollLeft:sr,initScrollTop:Pr}=Lt,Sr=unref($n);Sr&&(isNumber$5(sr)&&(Sr.scrollLeft=sr),isNumber$5(Pr)&&(Sr.scrollTop=Pr)),jn()});const Yn=()=>{const{direction:sr}=Lt,{scrollLeft:Pr,scrollTop:Sr,updateRequested:kr}=unref(kn),mr=unref($n);if(kr&&mr){if(sr===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{mr.scrollLeft=-Pr;break}case RTL_OFFSET_POS_ASC:{mr.scrollLeft=Pr;break}default:{const{clientWidth:lr,scrollWidth:hr}=mr;mr.scrollLeft=hr-lr-Pr;break}}else mr.scrollLeft=Math.max(0,Pr);mr.scrollTop=Math.max(0,Sr)}},{resetAfterColumnIndex:ar,resetAfterRowIndex:pr,resetAfter:Un}=Cn.proxy;vn({windowRef:$n,innerRef:xn,getItemStyleCache:An,scrollTo:nr,scrollToItem:er,states:kn,resetAfterColumnIndex:ar,resetAfterRowIndex:pr,resetAfter:Un});const tr=()=>{const{scrollbarAlwaysOn:sr,scrollbarStartGap:Pr,scrollbarEndGap:Sr,totalColumn:kr,totalRow:mr}=Lt,lr=unref(Nn),hr=unref(On),gr=unref(Mn),Or=unref(Bn),{scrollLeft:Lr,scrollTop:Vr}=unref(kn),Rr=h$3(ScrollBar,{ref:wn,alwaysOn:sr,startGap:Pr,endGap:Sr,class:bn.e("horizontal"),clientSize:lr,layout:"horizontal",onScroll:Xn,ratio:lr*100/gr,scrollFrom:Lr/(gr-lr),total:mr,visible:!0}),$r=h$3(ScrollBar,{ref:Tn,alwaysOn:sr,startGap:Pr,endGap:Sr,class:bn.e("vertical"),clientSize:hr,layout:"vertical",onScroll:Gn,ratio:hr*100/Or,scrollFrom:Vr/(Or-hr),total:kr,visible:!0});return{horizontalScrollbar:Rr,verticalScrollbar:$r}},ur=()=>{var sr;const[Pr,Sr]=unref(Rn),[kr,mr]=unref(zn),{data:lr,totalColumn:hr,totalRow:gr,useIsScrolling:Or,itemKey:Lr}=Lt,Vr=[];if(gr>0&&hr>0)for(let Rr=kr;Rr<=mr;Rr++)for(let $r=Pr;$r<=Sr;$r++)Vr.push((sr=_n.default)==null?void 0:sr.call(_n,{columnIndex:$r,data:lr,key:Lr({columnIndex:$r,data:lr,rowIndex:Rr}),isScrolling:Or?unref(kn).isScrolling:void 0,style:rr(Rr,$r),rowIndex:Rr}));return Vr},_r=()=>{const sr=resolveDynamicComponent(Lt.innerElement),Pr=ur();return[h$3(sr,{style:unref(Vn),ref:xn},isString$7(sr)?Pr:{default:()=>Pr})]};return()=>{const sr=resolveDynamicComponent(Lt.containerElement),{horizontalScrollbar:Pr,verticalScrollbar:Sr}=tr(),kr=_r();return h$3("div",{key:0,class:bn.e("wrapper"),role:Lt.role},[h$3(sr,{class:Lt.className,style:unref(Fn),onScroll:Zn,onWheel:cr,ref:$n},isString$7(sr)?kr:{default:()=>kr}),Pr,Sr])}}}),FixedSizeGrid=createGrid({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:$},oe)=>[$,oe*$],getRowPosition:({rowHeight:$},oe)=>[$,oe*$],getEstimatedTotalHeight:({totalRow:$,rowHeight:oe})=>oe*$,getEstimatedTotalWidth:({totalColumn:$,columnWidth:oe})=>oe*$,getColumnOffset:({totalColumn:$,columnWidth:oe,width:ae},ie,le,pe,_e,Ce)=>{ae=Number(ae);const $e=Math.max(0,$*oe-ae),xe=Math.min($e,ie*oe),Ie=Math.max(0,ie*oe-ae+Ce+oe);switch(le==="smart"&&(pe>=Ie-ae&&pe<=xe+ae?le=AUTO_ALIGNMENT:le=CENTERED_ALIGNMENT),le){case START_ALIGNMENT:return xe;case END_ALIGNMENT:return Ie;case CENTERED_ALIGNMENT:{const Ne=Math.round(Ie+(xe-Ie)/2);return Ne$e+Math.floor(ae/2)?$e:Ne}case AUTO_ALIGNMENT:default:return pe>=Ie&&pe<=xe?pe:Ie>xe||pe{oe=Number(oe);const $e=Math.max(0,ae*$-oe),xe=Math.min($e,ie*$),Ie=Math.max(0,ie*$-oe+Ce+$);switch(le===SMART_ALIGNMENT&&(pe>=Ie-oe&&pe<=xe+oe?le=AUTO_ALIGNMENT:le=CENTERED_ALIGNMENT),le){case START_ALIGNMENT:return xe;case END_ALIGNMENT:return Ie;case CENTERED_ALIGNMENT:{const Ne=Math.round(Ie+(xe-Ie)/2);return Ne$e+Math.floor(oe/2)?$e:Ne}case AUTO_ALIGNMENT:default:return pe>=Ie&&pe<=xe?pe:Ie>xe||peMath.max(0,Math.min(oe-1,Math.floor(ae/$))),getColumnStopIndexForStartIndex:({columnWidth:$,totalColumn:oe,width:ae},ie,le)=>{const pe=ie*$,_e=Math.ceil((ae+le-pe)/$);return Math.max(0,Math.min(oe-1,ie+_e-1))},getRowStartIndexForOffset:({rowHeight:$,totalRow:oe},ae)=>Math.max(0,Math.min(oe-1,Math.floor(ae/$))),getRowStopIndexForStartIndex:({rowHeight:$,totalRow:oe,height:ae},ie,le)=>{const pe=ie*$,_e=Math.ceil((ae+le-pe)/$);return Math.max(0,Math.min(oe-1,ie+_e-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:$,rowHeight:oe})=>{}}),{max:max$2,min:min$2,floor}=Math,ACCESS_SIZER_KEY_MAP={column:"columnWidth",row:"rowHeight"},ACCESS_LAST_VISITED_KEY_MAP={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},getItemFromCache=($,oe,ae,ie)=>{const[le,pe,_e]=[ae[ie],$[ACCESS_SIZER_KEY_MAP[ie]],ae[ACCESS_LAST_VISITED_KEY_MAP[ie]]];if(oe>_e){let Ce=0;if(_e>=0){const $e=le[_e];Ce=$e.offset+$e.size}for(let $e=_e+1;$e<=oe;$e++){const xe=pe($e);le[$e]={offset:Ce,size:xe},Ce+=xe}ae[ACCESS_LAST_VISITED_KEY_MAP[ie]]=oe}return le[oe]},bs=($,oe,ae,ie,le,pe)=>{for(;ae<=ie;){const _e=ae+floor((ie-ae)/2),Ce=getItemFromCache($,_e,oe,pe).offset;if(Ce===le)return _e;Ce{const pe=le==="column"?$.totalColumn:$.totalRow;let _e=1;for(;ae{const[le,pe]=[oe[ie],oe[ACCESS_LAST_VISITED_KEY_MAP[ie]]];return(pe>0?le[pe].offset:0)>=ae?bs($,oe,0,pe,ae,ie):es($,oe,max$2(0,pe),ae,ie)},getEstimatedTotalHeight=({totalRow:$},{estimatedRowHeight:oe,lastVisitedRowIndex:ae,row:ie})=>{let le=0;if(ae>=$&&(ae=$-1),ae>=0){const Ce=ie[ae];le=Ce.offset+Ce.size}const _e=($-ae-1)*oe;return le+_e},getEstimatedTotalWidth=({totalColumn:$},{column:oe,estimatedColumnWidth:ae,lastVisitedColumnIndex:ie})=>{let le=0;if(ie>$&&(ie=$-1),ie>=0){const Ce=oe[ie];le=Ce.offset+Ce.size}const _e=($-ie-1)*ae;return le+_e},ACCESS_ESTIMATED_SIZE_KEY_MAP={column:getEstimatedTotalWidth,row:getEstimatedTotalHeight},getOffset$1=($,oe,ae,ie,le,pe,_e)=>{const[Ce,$e]=[pe==="row"?$.height:$.width,ACCESS_ESTIMATED_SIZE_KEY_MAP[pe]],xe=getItemFromCache($,oe,le,pe),Ie=$e($,le),Ne=max$2(0,min$2(Ie-Ce,xe.offset)),Fe=max$2(0,xe.offset-Ce+_e+xe.size);switch(ae===SMART_ALIGNMENT&&(ie>=Fe-Ce&&ie<=Ne+Ce?ae=AUTO_ALIGNMENT:ae=CENTERED_ALIGNMENT),ae){case START_ALIGNMENT:return Ne;case END_ALIGNMENT:return Fe;case CENTERED_ALIGNMENT:return Math.round(Fe+(Ne-Fe)/2);case AUTO_ALIGNMENT:default:return ie>=Fe&&ie<=Ne?ie:Fe>Ne||ie{const ie=getItemFromCache($,oe,ae,"column");return[ie.size,ie.offset]},getRowPosition:($,oe,ae)=>{const ie=getItemFromCache($,oe,ae,"row");return[ie.size,ie.offset]},getColumnOffset:($,oe,ae,ie,le,pe)=>getOffset$1($,oe,ae,ie,le,"column",pe),getRowOffset:($,oe,ae,ie,le,pe)=>getOffset$1($,oe,ae,ie,le,"row",pe),getColumnStartIndexForOffset:($,oe,ae)=>findItem($,ae,oe,"column"),getColumnStopIndexForStartIndex:($,oe,ae,ie)=>{const le=getItemFromCache($,oe,ie,"column"),pe=ae+$.width;let _e=le.offset+le.size,Ce=oe;for(;Ce<$.totalColumn-1&&_efindItem($,ae,oe,"row"),getRowStopIndexForStartIndex:($,oe,ae,ie)=>{const{totalRow:le,height:pe}=$,_e=getItemFromCache($,oe,ie,"row"),Ce=ae+pe;let $e=_e.size+_e.offset,xe=oe;for(;xe{const ae=({columnIndex:pe,rowIndex:_e},Ce)=>{var $e,xe;Ce=isUndefined$1(Ce)?!0:Ce,isNumber$5(pe)&&(oe.value.lastVisitedColumnIndex=Math.min(oe.value.lastVisitedColumnIndex,pe-1)),isNumber$5(_e)&&(oe.value.lastVisitedRowIndex=Math.min(oe.value.lastVisitedRowIndex,_e-1)),($e=$.exposed)==null||$e.getItemStyleCache.value(-1,null,null),Ce&&((xe=$.proxy)==null||xe.$forceUpdate())},ie=(pe,_e)=>{ae({columnIndex:pe},_e)},le=(pe,_e)=>{ae({rowIndex:pe},_e)};Object.assign($.proxy,{resetAfterColumnIndex:ie,resetAfterRowIndex:le,resetAfter:ae})},initCache:({estimatedColumnWidth:$=DEFAULT_DYNAMIC_LIST_ITEM_SIZE,estimatedRowHeight:oe=DEFAULT_DYNAMIC_LIST_ITEM_SIZE})=>({column:{},estimatedColumnWidth:$,estimatedRowHeight:oe,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:$,rowHeight:oe})=>{}}),_sfc_main$F=defineComponent({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:useNamespace("select")}}});function _sfc_render$8($,oe,ae,ie,le,pe){return $.item.isTitle?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.be("group","title")),style:normalizeStyle$1([$.style,{lineHeight:`${$.height}px`}])},toDisplayString$1($.item.label),7)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.be("group","split")),style:normalizeStyle$1($.style)},[createBaseVNode("span",{class:normalizeClass($.ns.be("group","split-dash")),style:normalizeStyle$1({top:`${$.height/2}px`})},null,6)],6))}var GroupItem=_export_sfc$1(_sfc_main$F,[["render",_sfc_render$8],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function useOption($,{emit:oe}){return{hoverItem:()=>{$.disabled||oe("hover",$.index)},selectOptionClick:()=>{$.disabled||oe("select",$.item,$.index)}}}const SelectProps={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:circle_close_default},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:isValidComponentSize},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:definePropType(String),values:Ee,default:"bottom-start"}},OptionProps={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},_sfc_main$E=defineComponent({props:OptionProps,emits:["select","hover"],setup($,{emit:oe}){const ae=useNamespace("select"),{hoverItem:ie,selectOptionClick:le}=useOption($,{emit:oe});return{ns:ae,hoverItem:ie,selectOptionClick:le}}}),_hoisted_1$j=["aria-selected"];function _sfc_render$7($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("li",{"aria-selected":$.selected,style:normalizeStyle$1($.style),class:normalizeClass([$.ns.be("dropdown","option-item"),$.ns.is("selected",$.selected),$.ns.is("disabled",$.disabled),$.ns.is("created",$.created),{hover:$.hovering}]),onMouseenter:oe[0]||(oe[0]=(..._e)=>$.hoverItem&&$.hoverItem(..._e)),onClick:oe[1]||(oe[1]=withModifiers((..._e)=>$.selectOptionClick&&$.selectOptionClick(..._e),["stop"]))},[renderSlot($.$slots,"default",{item:$.item,index:$.index,disabled:$.disabled},()=>[createBaseVNode("span",null,toDisplayString$1($.item.label),1)])],46,_hoisted_1$j)}var OptionItem=_export_sfc$1(_sfc_main$E,[["render",_sfc_render$7],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const selectV2InjectionKey=Symbol("ElSelectV2Injection");var ElSelectMenu=defineComponent({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup($,{slots:oe,expose:ae}){const ie=inject(selectV2InjectionKey),le=useNamespace("select"),pe=ref([]),_e=ref(),Ce=computed(()=>$.data.length);watch(()=>Ce.value,()=>{var Tn,xn;(xn=(Tn=ie.popper.value).updatePopper)==null||xn.call(Tn)});const $e=computed(()=>isUndefined$1(ie.props.estimatedOptionHeight)),xe=computed(()=>$e.value?{itemSize:ie.props.itemHeight}:{estimatedSize:ie.props.estimatedOptionHeight,itemSize:Tn=>pe.value[Tn]}),Ie=(Tn=[],xn)=>{const{props:{valueKey:kn}}=ie;return isObject$8(xn)?Tn&&Tn.some(An=>get$1(An,kn)===get$1(xn,kn)):Tn.includes(xn)},Ne=(Tn,xn)=>{if(isObject$8(xn)){const{valueKey:kn}=ie.props;return get$1(Tn,kn)===get$1(xn,kn)}else return Tn===xn},Fe=(Tn,xn)=>{const{valueKey:kn}=ie.props;return ie.props.multiple?Ie(Tn,get$1(xn,kn)):Ne(Tn,get$1(xn,kn))},ze=(Tn,xn)=>{const{disabled:kn,multiple:An,multipleLimit:On}=ie.props;return kn||!xn&&(An?On>0&&Tn.length>=On:!1)},At=Tn=>$.hoveringIndex===Tn;ae({listRef:_e,isSized:$e,isItemDisabled:ze,isItemHovering:At,isItemSelected:Fe,scrollToItem:Tn=>{const xn=_e.value;xn&&xn.scrollToItem(Tn)},resetScrollTop:()=>{const Tn=_e.value;Tn&&Tn.resetScrollTop()}});const vn=Tn=>{const{index:xn,data:kn,style:An}=Tn,On=unref($e),{itemSize:Nn,estimatedSize:Rn}=unref(xe),{modelValue:zn}=ie.props,{onSelect:Bn,onHover:Mn}=ie,Fn=kn[xn];if(Fn.type==="Group")return createVNode(GroupItem,{item:Fn,style:An,height:On?Nn:Rn},null);const Vn=Fe(zn,Fn),jn=ze(zn,Vn),Zn=At(xn);return createVNode(OptionItem,mergeProps(Tn,{selected:Vn,disabled:Fn.disabled||jn,created:!!Fn.created,hovering:Zn,item:Fn,onSelect:Bn,onHover:Mn}),{default:Gn=>{var Xn;return((Xn=oe.default)==null?void 0:Xn.call(oe,Gn))||createVNode("span",null,[Fn.label])}})},{onKeyboardNavigate:_n,onKeyboardSelect:bn}=ie,Cn=()=>{_n("forward")},En=()=>{_n("backward")},$n=()=>{ie.expanded=!1},wn=Tn=>{const{code:xn}=Tn,{tab:kn,esc:An,down:On,up:Nn,enter:Rn}=EVENT_CODE;switch(xn!==kn&&(Tn.preventDefault(),Tn.stopPropagation()),xn){case kn:case An:{$n();break}case On:{Cn();break}case Nn:{En();break}case Rn:{bn();break}}};return()=>{var Tn;const{data:xn,width:kn}=$,{height:An,multiple:On,scrollbarAlwaysOn:Nn}=ie.props;if(xn.length===0)return createVNode("div",{class:le.b("dropdown"),style:{width:`${kn}px`}},[(Tn=oe.empty)==null?void 0:Tn.call(oe)]);const Rn=unref($e)?FixedSizeList:DynamicSizeList;return createVNode("div",{class:[le.b("dropdown"),le.is("multiple",On)]},[createVNode(Rn,mergeProps({ref:_e},unref(xe),{className:le.be("dropdown","list"),scrollbarAlwaysOn:Nn,data:xn,height:An,width:kn,total:xn.length,onKeydown:wn}),{default:zn=>createVNode(vn,zn,null)})])}}});function useAllowCreate($,oe){const ae=ref(0),ie=ref(null),le=computed(()=>$.allowCreate&&$.filterable);function pe(Ie){const Ne=Fe=>Fe.value===Ie;return $.options&&$.options.some(Ne)||oe.createdOptions.some(Ne)}function _e(Ie){le.value&&($.multiple&&Ie.created?ae.value++:ie.value=Ie)}function Ce(Ie){if(le.value)if(Ie&&Ie.length>0&&!pe(Ie)){const Ne={value:Ie,label:Ie,created:!0,disabled:!1};oe.createdOptions.length>=ae.value?oe.createdOptions[ae.value]=Ne:oe.createdOptions.push(Ne)}else if($.multiple)oe.createdOptions.length=ae.value;else{const Ne=ie.value;oe.createdOptions.length=0,Ne&&Ne.created&&oe.createdOptions.push(Ne)}}function $e(Ie){if(!le.value||!Ie||!Ie.created||Ie.created&&$.reserveKeyword&&oe.inputValue===Ie.label)return;const Ne=oe.createdOptions.findIndex(Fe=>Fe.value===Ie.value);~Ne&&(oe.createdOptions.splice(Ne,1),ae.value--)}function xe(){le.value&&(oe.createdOptions.length=0,ae.value=0)}return{createNewOption:Ce,removeNewOption:$e,selectNewOption:_e,clearAllNewOption:xe}}const flattenOptions=$=>{const oe=[];return $.forEach(ae=>{isArray$c(ae.options)?(oe.push({label:ae.label,isTitle:!0,type:"Group"}),ae.options.forEach(ie=>{oe.push(ie)}),oe.push({type:"Group"})):oe.push(ae)}),oe};function useInput($){const oe=ref(!1);return{handleCompositionStart:()=>{oe.value=!0},handleCompositionUpdate:pe=>{const _e=pe.target.value,Ce=_e[_e.length-1]||"";oe.value=!isKorean(Ce)},handleCompositionEnd:pe=>{oe.value&&(oe.value=!1,isFunction$5($)&&$(pe))}}}const DEFAULT_INPUT_PLACEHOLDER="",MINIMUM_INPUT_WIDTH=11,TAG_BASE_WIDTH={larget:51,default:42,small:33},useSelect$1=($,oe)=>{const{t:ae}=useLocale(),ie=useNamespace("select-v2"),le=useNamespace("input"),{form:pe,formItem:_e}=useFormItem(),Ce=reactive({inputValue:DEFAULT_INPUT_PLACEHOLDER,displayInputValue:DEFAULT_INPUT_PLACEHOLDER,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),$e=ref(-1),xe=ref(-1),Ie=ref(null),Ne=ref(null),Fe=ref(null),ze=ref(null),At=ref(null),Lt=ref(null),hn=ref(null),vn=ref(!1),_n=computed(()=>$.disabled||(pe==null?void 0:pe.disabled)),bn=computed(()=>{const Ar=On.value.length*34;return Ar>$.height?$.height:Ar}),Cn=computed(()=>!isNil($.modelValue)),En=computed(()=>{const Ar=$.multiple?Array.isArray($.modelValue)&&$.modelValue.length>0:Cn.value;return $.clearable&&!_n.value&&Ce.comboBoxHovering&&Ar}),$n=computed(()=>$.remote&&$.filterable?"":arrow_up_default),wn=computed(()=>$n.value&&ie.is("reverse",vn.value)),Tn=computed(()=>(_e==null?void 0:_e.validateState)||""),xn=computed(()=>ValidateComponentsMap[Tn.value]),kn=computed(()=>$.remote?300:0),An=computed(()=>{const Ar=On.value;return $.loading?$.loadingText||ae("el.select.loading"):$.remote&&Ce.inputValue===""&&Ar.length===0?!1:$.filterable&&Ce.inputValue&&Ar.length>0?$.noMatchText||ae("el.select.noMatch"):Ar.length===0?$.noDataText||ae("el.select.noData"):null}),On=computed(()=>{const Ar=Dr=>{const Yr=Ce.inputValue,qr=new RegExp(escapeStringRegexp(Yr),"i");return Yr?qr.test(Dr.label||""):!0};return $.loading?[]:flattenOptions($.options.concat(Ce.createdOptions).map(Dr=>{if(isArray$c(Dr.options)){const Yr=Dr.options.filter(Ar);if(Yr.length>0)return{...Dr,options:Yr}}else if($.remote||Ar(Dr))return Dr;return null}).filter(Dr=>Dr!==null))}),Nn=computed(()=>On.value.every(Ar=>Ar.disabled)),Rn=useFormSize(),zn=computed(()=>Rn.value==="small"?"small":"default"),Bn=computed(()=>{const Ar=Lt.value,Dr=zn.value||"default",Yr=Ar?Number.parseInt(getComputedStyle(Ar).paddingLeft):0,qr=Ar?Number.parseInt(getComputedStyle(Ar).paddingRight):0;return Ce.selectWidth-qr-Yr-TAG_BASE_WIDTH[Dr]}),Mn=()=>{var Ar;xe.value=((Ar=At.value)==null?void 0:Ar.offsetWidth)||200},Fn=computed(()=>({width:`${Ce.calculatedWidth===0?MINIMUM_INPUT_WIDTH:Math.ceil(Ce.calculatedWidth)+MINIMUM_INPUT_WIDTH}px`})),Vn=computed(()=>isArray$c($.modelValue)?$.modelValue.length===0&&!Ce.displayInputValue:$.filterable?Ce.displayInputValue.length===0:!0),jn=computed(()=>{const Ar=$.placeholder||ae("el.select.placeholder");return $.multiple||isNil($.modelValue)?Ar:Ce.selectedLabel}),Zn=computed(()=>{var Ar,Dr;return(Dr=(Ar=ze.value)==null?void 0:Ar.popperRef)==null?void 0:Dr.contentRef}),Gn=computed(()=>{if($.multiple){const Ar=$.modelValue.length;if($.modelValue.length>0)return On.value.findIndex(Dr=>Dr.value===$.modelValue[Ar-1])}else if($.modelValue)return On.value.findIndex(Ar=>Ar.value===$.modelValue);return-1}),Xn=computed({get(){return vn.value&&An.value!==!1},set(Ar){vn.value=Ar}}),cr=computed(()=>Ce.cachedOptions.slice(0,$.maxCollapseTags)),nr=computed(()=>Ce.cachedOptions.slice($.maxCollapseTags)),{createNewOption:er,removeNewOption:rr,selectNewOption:qn,clearAllNewOption:Yn}=useAllowCreate($,Ce),{handleCompositionStart:ar,handleCompositionUpdate:pr,handleCompositionEnd:Un}=useInput(Ar=>Ur(Ar)),tr=()=>{var Ar,Dr,Yr;(Dr=(Ar=Ne.value)==null?void 0:Ar.focus)==null||Dr.call(Ar),(Yr=ze.value)==null||Yr.updatePopper()},ur=()=>{if(!$.automaticDropdown&&!_n.value)return Ce.isComposing&&(Ce.softFocus=!0),nextTick(()=>{var Ar,Dr;vn.value=!vn.value,(Dr=(Ar=Ne.value)==null?void 0:Ar.focus)==null||Dr.call(Ar)})},_r=()=>($.filterable&&Ce.inputValue!==Ce.selectedLabel&&(Ce.query=Ce.selectedLabel),sr(Ce.inputValue),nextTick(()=>{er(Ce.inputValue)})),Er=debounce(_r,kn.value),sr=Ar=>{Ce.previousQuery!==Ar&&(Ce.previousQuery=Ar,$.filterable&&isFunction$5($.filterMethod)?$.filterMethod(Ar):$.filterable&&$.remote&&isFunction$5($.remoteMethod)&&$.remoteMethod(Ar))},Pr=Ar=>{isEqual$1($.modelValue,Ar)||oe(CHANGE_EVENT,Ar)},Sr=Ar=>{oe(UPDATE_MODEL_EVENT,Ar),Pr(Ar),Ce.previousValue=Ar==null?void 0:Ar.toString()},kr=(Ar=[],Dr)=>{if(!isObject$8(Dr))return Ar.indexOf(Dr);const Yr=$.valueKey;let qr=-1;return Ar.some((Fr,eo)=>get$1(Fr,Yr)===get$1(Dr,Yr)?(qr=eo,!0):!1),qr},mr=Ar=>isObject$8(Ar)?get$1(Ar,$.valueKey):Ar,lr=Ar=>isObject$8(Ar)?Ar.label:Ar,hr=()=>nextTick(()=>{var Ar,Dr;if(!Ne.value)return;const Yr=Lt.value;At.value.height=Yr.offsetHeight,vn.value&&An.value!==!1&&((Dr=(Ar=ze.value)==null?void 0:Ar.updatePopper)==null||Dr.call(Ar))}),gr=()=>{var Ar,Dr;if(Or(),Mn(),(Dr=(Ar=ze.value)==null?void 0:Ar.updatePopper)==null||Dr.call(Ar),$.multiple)return hr()},Or=()=>{const Ar=Lt.value;Ar&&(Ce.selectWidth=Ar.getBoundingClientRect().width)},Lr=(Ar,Dr,Yr=!0)=>{var qr,Fr;if($.multiple){let eo=$.modelValue.slice();const ro=kr(eo,mr(Ar));ro>-1?(eo=[...eo.slice(0,ro),...eo.slice(ro+1)],Ce.cachedOptions.splice(ro,1),rr(Ar)):($.multipleLimit<=0||eo.length<$.multipleLimit)&&(eo=[...eo,mr(Ar)],Ce.cachedOptions.push(Ar),qn(Ar),Hr(Dr)),Sr(eo),Ar.created&&(Ce.query="",sr(""),Ce.inputLength=20),$.filterable&&!$.reserveKeyword&&((Fr=(qr=Ne.value).focus)==null||Fr.call(qr),ir("")),$.filterable&&(Ce.calculatedWidth=hn.value.getBoundingClientRect().width),hr(),Mr()}else $e.value=Dr,Ce.selectedLabel=Ar.label,Sr(mr(Ar)),vn.value=!1,Ce.isComposing=!1,Ce.isSilentBlur=Yr,qn(Ar),Ar.created||Yn(),Hr(Dr)},Vr=(Ar,Dr)=>{const{valueKey:Yr}=$,qr=$.modelValue.indexOf(get$1(Dr,Yr));if(qr>-1&&!_n.value){const Fr=[...$.modelValue.slice(0,qr),...$.modelValue.slice(qr+1)];return Ce.cachedOptions.splice(qr,1),Sr(Fr),oe("remove-tag",get$1(Dr,Yr)),Ce.softFocus=!0,rr(Dr),nextTick(tr)}Ar.stopPropagation()},Rr=Ar=>{const Dr=Ce.isComposing;Ce.isComposing=!0,Ce.softFocus?Ce.softFocus=!1:Dr||oe("focus",Ar)},$r=Ar=>(Ce.softFocus=!1,nextTick(()=>{var Dr,Yr;(Yr=(Dr=Ne.value)==null?void 0:Dr.blur)==null||Yr.call(Dr),hn.value&&(Ce.calculatedWidth=hn.value.getBoundingClientRect().width),Ce.isSilentBlur?Ce.isSilentBlur=!1:Ce.isComposing&&oe("blur",Ar),Ce.isComposing=!1})),Tr=()=>{Ce.displayInputValue.length>0?ir(""):vn.value=!1},dr=Ar=>{if(Ce.displayInputValue.length===0){Ar.preventDefault();const Dr=$.modelValue.slice();Dr.pop(),rr(Ce.cachedOptions.pop()),Sr(Dr)}},Jn=()=>{let Ar;return isArray$c($.modelValue)?Ar=[]:Ar=void 0,Ce.softFocus=!0,$.multiple?Ce.cachedOptions=[]:Ce.selectedLabel="",vn.value=!1,Sr(Ar),oe("clear"),Yn(),nextTick(tr)},ir=Ar=>{Ce.displayInputValue=Ar,Ce.inputValue=Ar},xr=(Ar,Dr=void 0)=>{const Yr=On.value;if(!["forward","backward"].includes(Ar)||_n.value||Yr.length<=0||Nn.value)return;if(!vn.value)return ur();Dr===void 0&&(Dr=Ce.hoveringIndex);let qr=-1;Ar==="forward"?(qr=Dr+1,qr>=Yr.length&&(qr=0)):Ar==="backward"&&(qr=Dr-1,(qr<0||qr>=Yr.length)&&(qr=Yr.length-1));const Fr=Yr[qr];if(Fr.disabled||Fr.type==="Group")return xr(Ar,qr);Hr(qr),Xr(qr)},Ir=()=>{if(vn.value)~Ce.hoveringIndex&&On.value[Ce.hoveringIndex]&&Lr(On.value[Ce.hoveringIndex],Ce.hoveringIndex,!1);else return ur()},Hr=Ar=>{Ce.hoveringIndex=Ar},Cr=()=>{Ce.hoveringIndex=-1},Mr=()=>{var Ar;const Dr=Ne.value;Dr&&((Ar=Dr.focus)==null||Ar.call(Dr))},Ur=Ar=>{const Dr=Ar.target.value;if(ir(Dr),Ce.displayInputValue.length>0&&!vn.value&&(vn.value=!0),Ce.calculatedWidth=hn.value.getBoundingClientRect().width,$.multiple&&hr(),$.remote)Er();else return _r()},jr=()=>(vn.value=!1,$r()),Wr=()=>(Ce.inputValue=Ce.displayInputValue,nextTick(()=>{~Gn.value&&(Hr(Gn.value),Xr(Ce.hoveringIndex))})),Xr=Ar=>{Fe.value.scrollToItem(Ar)},Qr=()=>{if(Cr(),$.multiple)if($.modelValue.length>0){let Ar=!1;Ce.cachedOptions.length=0,Ce.previousValue=$.modelValue.toString(),$.modelValue.forEach(Dr=>{const Yr=On.value.findIndex(qr=>mr(qr)===Dr);~Yr&&(Ce.cachedOptions.push(On.value[Yr]),Ar||Hr(Yr),Ar=!0)})}else Ce.cachedOptions=[],Ce.previousValue=void 0;else if(Cn.value){Ce.previousValue=$.modelValue;const Ar=On.value,Dr=Ar.findIndex(Yr=>mr(Yr)===mr($.modelValue));~Dr?(Ce.selectedLabel=Ar[Dr].label,Hr(Dr)):Ce.selectedLabel=`${$.modelValue}`}else Ce.selectedLabel="",Ce.previousValue=void 0;Yn(),Mn()};return watch(vn,Ar=>{var Dr,Yr;oe("visible-change",Ar),Ar?(Yr=(Dr=ze.value).update)==null||Yr.call(Dr):(Ce.displayInputValue="",Ce.previousQuery=null,er(""))}),watch(()=>$.modelValue,(Ar,Dr)=>{var Yr;(!Ar||Ar.toString()!==Ce.previousValue)&&Qr(),!isEqual$1(Ar,Dr)&&$.validateEvent&&((Yr=_e==null?void 0:_e.validate)==null||Yr.call(_e,"change").catch(qr=>void 0))},{deep:!0}),watch(()=>$.options,()=>{const Ar=Ne.value;(!Ar||Ar&&document.activeElement!==Ar)&&Qr()},{deep:!0}),watch(On,()=>nextTick(Fe.value.resetScrollTop)),watch(()=>Xn.value,Ar=>{Ar||Cr()}),onMounted(()=>{Qr()}),useResizeObserver(At,gr),{collapseTagSize:zn,currentPlaceholder:jn,expanded:vn,emptyText:An,popupHeight:bn,debounce:kn,filteredOptions:On,iconComponent:$n,iconReverse:wn,inputWrapperStyle:Fn,popperSize:xe,dropdownMenuVisible:Xn,hasModelValue:Cn,shouldShowPlaceholder:Vn,selectDisabled:_n,selectSize:Rn,showClearBtn:En,states:Ce,tagMaxWidth:Bn,nsSelectV2:ie,nsInput:le,calculatorRef:hn,controlRef:Ie,inputRef:Ne,menuRef:Fe,popper:ze,selectRef:At,selectionRef:Lt,popperRef:Zn,validateState:Tn,validateIcon:xn,showTagList:cr,collapseTagList:nr,debouncedOnInputChange:Er,deleteTag:Vr,getLabel:lr,getValueKey:mr,handleBlur:$r,handleClear:Jn,handleClickOutside:jr,handleDel:dr,handleEsc:Tr,handleFocus:Rr,handleMenuEnter:Wr,handleResize:gr,toggleMenu:ur,scrollTo:Xr,onInput:Ur,onKeyboardNavigate:xr,onKeyboardSelect:Ir,onSelect:Lr,onHover:Hr,onUpdateInputValue:ir,handleCompositionStart:ar,handleCompositionEnd:Un,handleCompositionUpdate:pr}},_sfc_main$D=defineComponent({name:"ElSelectV2",components:{ElSelectMenu,ElTag,ElTooltip,ElIcon},directives:{ClickOutside,ModelText:vModelText},props:SelectProps,emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup($,{emit:oe}){const ae=computed(()=>{const{modelValue:le,multiple:pe}=$,_e=pe?[]:void 0;return isArray$c(le)?pe?le:_e:pe?_e:le}),ie=useSelect$1(reactive({...toRefs($),modelValue:ae}),oe);return provide(selectV2InjectionKey,{props:reactive({...toRefs($),height:ie.popupHeight,modelValue:ae}),popper:ie.popper,onSelect:ie.onSelect,onHover:ie.onHover,onKeyboardNavigate:ie.onKeyboardNavigate,onKeyboardSelect:ie.onKeyboardSelect}),{...ie,modelValue:ae}}}),_hoisted_1$i={key:0},_hoisted_2$c=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],_hoisted_3$6=["textContent"],_hoisted_4$4=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],_hoisted_5$2=["textContent"];function _sfc_render$6($,oe,ae,ie,le,pe){const _e=resolveComponent("el-tag"),Ce=resolveComponent("el-tooltip"),$e=resolveComponent("el-icon"),xe=resolveComponent("el-select-menu"),Ie=resolveDirective("model-text"),Ne=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectRef",class:normalizeClass([$.nsSelectV2.b(),$.nsSelectV2.m($.selectSize)]),onClick:oe[24]||(oe[24]=withModifiers((...Fe)=>$.toggleMenu&&$.toggleMenu(...Fe),["stop"])),onMouseenter:oe[25]||(oe[25]=Fe=>$.states.comboBoxHovering=!0),onMouseleave:oe[26]||(oe[26]=Fe=>$.states.comboBoxHovering=!1)},[createVNode(Ce,{ref:"popper",visible:$.dropdownMenuVisible,teleported:$.teleported,"popper-class":[$.nsSelectV2.e("popper"),$.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":$.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:$.effect,placement:$.placement,pure:"",transition:`${$.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:$.persistent,onBeforeShow:$.handleMenuEnter,onHide:oe[23]||(oe[23]=Fe=>$.states.inputValue=$.states.displayInputValue)},{default:withCtx(()=>[createBaseVNode("div",{ref:"selectionRef",class:normalizeClass([$.nsSelectV2.e("wrapper"),$.nsSelectV2.is("focused",$.states.isComposing||$.expanded),$.nsSelectV2.is("hovering",$.states.comboBoxHovering),$.nsSelectV2.is("filterable",$.filterable),$.nsSelectV2.is("disabled",$.selectDisabled)])},[$.$slots.prefix?(openBlock(),createElementBlock("div",_hoisted_1$i,[renderSlot($.$slots,"prefix")])):createCommentVNode("v-if",!0),$.multiple?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.nsSelectV2.e("selection"))},[$.collapseTags&&$.modelValue.length>0?(openBlock(),createElementBlock(Fragment,{key:0},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.showTagList,Fe=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Fe),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(_e,{closable:!$.selectDisabled&&!(Fe!=null&&Fe.disable),size:$.collapseTagSize,type:"info","disable-transitions":"",onClose:ze=>$.deleteTag(ze,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1(Fe==null?void 0:Fe.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),createBaseVNode("div",{class:normalizeClass($.nsSelectV2.e("selected-item"))},[$.modelValue.length>$.maxCollapseTags?(openBlock(),createBlock(_e,{key:0,closable:!1,size:$.collapseTagSize,type:"info","disable-transitions":""},{default:withCtx(()=>[$.collapseTagsTooltip?(openBlock(),createBlock(Ce,{key:0,disabled:$.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:$.effect,placement:"bottom",teleported:!1},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},"+ "+toDisplayString$1($.modelValue.length-$.maxCollapseTags),7)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsSelectV2.e("selection"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.collapseTagList,Fe=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Fe),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(_e,{closable:!$.selectDisabled&&!Fe.disabled,size:$.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:ze=>$.deleteTag(ze,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1($.getLabel(Fe)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},"+ "+toDisplayString$1($.modelValue.length-$.maxCollapseTags),7))]),_:1},8,["size"])):createCommentVNode("v-if",!0)],2)],64)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList($.states.cachedOptions,Fe=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Fe),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(_e,{closable:!$.selectDisabled&&!Fe.disabled,size:$.collapseTagSize,type:"info","disable-transitions":"",onClose:ze=>$.deleteTag(ze,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1($.getLabel(Fe)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),createBaseVNode("div",{class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-wrapper")]),style:normalizeStyle$1($.inputWrapperStyle)},[withDirectives(createBaseVNode("input",{id:$.id,ref:"inputRef",autocomplete:$.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":$.expanded,"aria-labelledby":$.label,class:normalizeClass([$.nsSelectV2.is($.selectSize),$.nsSelectV2.e("combobox-input")]),disabled:$.disabled,role:"combobox",readonly:!$.filterable,spellcheck:"false",type:"text",name:$.name,unselectable:$.expanded?"on":void 0,"onUpdate:modelValue":oe[0]||(oe[0]=(...Fe)=>$.onUpdateInputValue&&$.onUpdateInputValue(...Fe)),onFocus:oe[1]||(oe[1]=(...Fe)=>$.handleFocus&&$.handleFocus(...Fe)),onBlur:oe[2]||(oe[2]=(...Fe)=>$.handleBlur&&$.handleBlur(...Fe)),onInput:oe[3]||(oe[3]=(...Fe)=>$.onInput&&$.onInput(...Fe)),onCompositionstart:oe[4]||(oe[4]=(...Fe)=>$.handleCompositionStart&&$.handleCompositionStart(...Fe)),onCompositionupdate:oe[5]||(oe[5]=(...Fe)=>$.handleCompositionUpdate&&$.handleCompositionUpdate(...Fe)),onCompositionend:oe[6]||(oe[6]=(...Fe)=>$.handleCompositionEnd&&$.handleCompositionEnd(...Fe)),onKeydown:[oe[7]||(oe[7]=withKeys(withModifiers(Fe=>$.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),oe[8]||(oe[8]=withKeys(withModifiers(Fe=>$.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),oe[9]||(oe[9]=withKeys(withModifiers((...Fe)=>$.onKeyboardSelect&&$.onKeyboardSelect(...Fe),["stop","prevent"]),["enter"])),oe[10]||(oe[10]=withKeys(withModifiers((...Fe)=>$.handleEsc&&$.handleEsc(...Fe),["stop","prevent"]),["esc"])),oe[11]||(oe[11]=withKeys(withModifiers((...Fe)=>$.handleDel&&$.handleDel(...Fe),["stop"]),["delete"]))]},null,42,_hoisted_2$c),[[Ie,$.states.displayInputValue]]),$.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass($.nsSelectV2.e("input-calculator")),textContent:toDisplayString$1($.states.displayInputValue)},null,10,_hoisted_3$6)):createCommentVNode("v-if",!0)],6)],2)):(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",{class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-wrapper")])},[withDirectives(createBaseVNode("input",{id:$.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":$.label,"aria-expanded":$.expanded,autocapitalize:"off",autocomplete:$.autocomplete,class:normalizeClass($.nsSelectV2.e("combobox-input")),disabled:$.disabled,name:$.name,role:"combobox",readonly:!$.filterable,spellcheck:"false",type:"text",unselectable:$.expanded?"on":void 0,onCompositionstart:oe[12]||(oe[12]=(...Fe)=>$.handleCompositionStart&&$.handleCompositionStart(...Fe)),onCompositionupdate:oe[13]||(oe[13]=(...Fe)=>$.handleCompositionUpdate&&$.handleCompositionUpdate(...Fe)),onCompositionend:oe[14]||(oe[14]=(...Fe)=>$.handleCompositionEnd&&$.handleCompositionEnd(...Fe)),onFocus:oe[15]||(oe[15]=(...Fe)=>$.handleFocus&&$.handleFocus(...Fe)),onBlur:oe[16]||(oe[16]=(...Fe)=>$.handleBlur&&$.handleBlur(...Fe)),onInput:oe[17]||(oe[17]=(...Fe)=>$.onInput&&$.onInput(...Fe)),onKeydown:[oe[18]||(oe[18]=withKeys(withModifiers(Fe=>$.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),oe[19]||(oe[19]=withKeys(withModifiers(Fe=>$.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),oe[20]||(oe[20]=withKeys(withModifiers((...Fe)=>$.onKeyboardSelect&&$.onKeyboardSelect(...Fe),["stop","prevent"]),["enter"])),oe[21]||(oe[21]=withKeys(withModifiers((...Fe)=>$.handleEsc&&$.handleEsc(...Fe),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":oe[22]||(oe[22]=(...Fe)=>$.onUpdateInputValue&&$.onUpdateInputValue(...Fe))},null,42,_hoisted_4$4),[[Ie,$.states.displayInputValue]])],2),$.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-calculator")]),textContent:toDisplayString$1($.states.displayInputValue)},null,10,_hoisted_5$2)):createCommentVNode("v-if",!0)],64)),$.shouldShowPlaceholder?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass([$.nsSelectV2.e("placeholder"),$.nsSelectV2.is("transparent",$.multiple?$.modelValue.length===0:!$.hasModelValue)])},toDisplayString$1($.currentPlaceholder),3)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("suffix"))},[$.iconComponent?withDirectives((openBlock(),createBlock($e,{key:0,class:normalizeClass([$.nsSelectV2.e("caret"),$.nsInput.e("icon"),$.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])),[[vShow,!$.showClearBtn]]):createCommentVNode("v-if",!0),$.showClearBtn&&$.clearIcon?(openBlock(),createBlock($e,{key:1,class:normalizeClass([$.nsSelectV2.e("caret"),$.nsInput.e("icon")]),onClick:withModifiers($.handleClear,["prevent","stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),$.validateState&&$.validateIcon?(openBlock(),createBlock($e,{key:2,class:normalizeClass([$.nsInput.e("icon"),$.nsInput.e("validateIcon")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)]),content:withCtx(()=>[createVNode(xe,{ref:"menuRef",data:$.filteredOptions,width:$.popperSize,"hovering-index":$.states.hoveringIndex,"scrollbar-always-on":$.scrollbarAlwaysOn},{default:withCtx(Fe=>[renderSlot($.$slots,"default",normalizeProps(guardReactiveProps(Fe)))]),empty:withCtx(()=>[renderSlot($.$slots,"empty",{},()=>[createBaseVNode("p",{class:normalizeClass($.nsSelectV2.e("empty"))},toDisplayString$1($.emptyText?$.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[Ne,$.handleClickOutside,$.popperRef]])}var Select=_export_sfc$1(_sfc_main$D,[["render",_sfc_render$6],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Select.install=$=>{$.component(Select.name,Select)};const _Select=Select,ElSelectV2=_Select,skeletonProps=buildProps({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),skeletonItemProps=buildProps({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),__default__$t=defineComponent({name:"ElSkeletonItem"}),_sfc_main$C=defineComponent({...__default__$t,props:skeletonItemProps,setup($){const oe=useNamespace("skeleton");return(ae,ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).e("item"),unref(oe).e(ae.variant)])},[ae.variant==="image"?(openBlock(),createBlock(unref(picture_filled_default),{key:0})):createCommentVNode("v-if",!0)],2))}});var SkeletonItem=_export_sfc$1(_sfc_main$C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const __default__$s=defineComponent({name:"ElSkeleton"}),_sfc_main$B=defineComponent({...__default__$s,props:skeletonProps,setup($,{expose:oe}){const ae=$,ie=useNamespace("skeleton"),le=useThrottleRender(toRef$1(ae,"loading"),ae.throttle);return oe({uiLoading:le}),(pe,_e)=>unref(le)?(openBlock(),createElementBlock("div",mergeProps({key:0,class:[unref(ie).b(),unref(ie).is("animated",pe.animated)]},pe.$attrs),[(openBlock(!0),createElementBlock(Fragment,null,renderList(pe.count,Ce=>(openBlock(),createElementBlock(Fragment,{key:Ce},[pe.loading?renderSlot(pe.$slots,"template",{key:Ce},()=>[createVNode(SkeletonItem,{class:normalizeClass(unref(ie).is("first")),variant:"p"},null,8,["class"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(pe.rows,$e=>(openBlock(),createBlock(SkeletonItem,{key:$e,class:normalizeClass([unref(ie).e("paragraph"),unref(ie).is("last",$e===pe.rows&&pe.rows>1)]),variant:"p"},null,8,["class"]))),128))]):createCommentVNode("v-if",!0)],64))),128))],16)):renderSlot(pe.$slots,"default",normalizeProps(mergeProps({key:1},pe.$attrs)))}});var Skeleton=_export_sfc$1(_sfc_main$B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const ElSkeleton=withInstall(Skeleton,{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:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},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}}),isValidValue$1=$=>isNumber$5($)||isArray$c($)&&$.every(isNumber$5),sliderEmits={[UPDATE_MODEL_EVENT]:isValidValue$1,[INPUT_EVENT]:isValidValue$1,[CHANGE_EVENT]:isValidValue$1},useLifecycle=($,oe,ae)=>{const ie=ref();return onMounted(async()=>{$.range?(Array.isArray($.modelValue)?(oe.firstValue=Math.max($.min,$.modelValue[0]),oe.secondValue=Math.min($.max,$.modelValue[1])):(oe.firstValue=$.min,oe.secondValue=$.max),oe.oldValue=[oe.firstValue,oe.secondValue]):(typeof $.modelValue!="number"||Number.isNaN($.modelValue)?oe.firstValue=$.min:oe.firstValue=Math.min($.max,Math.max($.min,$.modelValue)),oe.oldValue=oe.firstValue),useEventListener$1(window,"resize",ae),await nextTick(),ae()}),{sliderWrapper:ie}},useMarks=$=>computed(()=>$.marks?Object.keys($.marks).map(Number.parseFloat).sort((ae,ie)=>ae-ie).filter(ae=>ae<=$.max&&ae>=$.min).map(ae=>({point:ae,position:(ae-$.min)*100/($.max-$.min),mark:$.marks[ae]})):[]),useSlide=($,oe,ae)=>{const{form:ie,formItem:le}=useFormItem(),pe=shallowRef(),_e=ref(),Ce=ref(),$e={firstButton:_e,secondButton:Ce},xe=computed(()=>$.disabled||(ie==null?void 0:ie.disabled)||!1),Ie=computed(()=>Math.min(oe.firstValue,oe.secondValue)),Ne=computed(()=>Math.max(oe.firstValue,oe.secondValue)),Fe=computed(()=>$.range?`${100*(Ne.value-Ie.value)/($.max-$.min)}%`:`${100*(oe.firstValue-$.min)/($.max-$.min)}%`),ze=computed(()=>$.range?`${100*(Ie.value-$.min)/($.max-$.min)}%`:"0%"),At=computed(()=>$.vertical?{height:$.height}:{}),Lt=computed(()=>$.vertical?{height:Fe.value,bottom:ze.value}:{width:Fe.value,left:ze.value}),hn=()=>{pe.value&&(oe.sliderSize=pe.value[`client${$.vertical?"Height":"Width"}`])},vn=An=>{const On=$.min+An*($.max-$.min)/100;if(!$.range)return _e;let Nn;return Math.abs(Ie.value-On)oe.secondValue?"firstButton":"secondButton",$e[Nn]},_n=An=>{const On=vn(An);return On.value.setPosition(An),On},bn=An=>{oe.firstValue=An,En($.range?[Ie.value,Ne.value]:An)},Cn=An=>{oe.secondValue=An,$.range&&En([Ie.value,Ne.value])},En=An=>{ae(UPDATE_MODEL_EVENT,An),ae(INPUT_EVENT,An)},$n=async()=>{await nextTick(),ae(CHANGE_EVENT,$.range?[Ie.value,Ne.value]:$.modelValue)},wn=An=>{var On,Nn,Rn,zn,Bn,Mn;if(xe.value||oe.dragging)return;hn();let Fn=0;if($.vertical){const Vn=(Rn=(Nn=(On=An.touches)==null?void 0:On.item(0))==null?void 0:Nn.clientY)!=null?Rn:An.clientY;Fn=(pe.value.getBoundingClientRect().bottom-Vn)/oe.sliderSize*100}else{const Vn=(Mn=(Bn=(zn=An.touches)==null?void 0:zn.item(0))==null?void 0:Bn.clientX)!=null?Mn:An.clientX,jn=pe.value.getBoundingClientRect().left;Fn=(Vn-jn)/oe.sliderSize*100}if(!(Fn<0||Fn>100))return _n(Fn)};return{elFormItem:le,slider:pe,firstButton:_e,secondButton:Ce,sliderDisabled:xe,minValue:Ie,maxValue:Ne,runwayStyle:At,barStyle:Lt,resetSize:hn,setPosition:_n,emitChange:$n,onSliderWrapperPrevent:An=>{var On,Nn;((On=$e.firstButton.value)!=null&&On.dragging||(Nn=$e.secondButton.value)!=null&&Nn.dragging)&&An.preventDefault()},onSliderClick:An=>{wn(An)&&$n()},onSliderDown:async An=>{const On=wn(An);On&&(await nextTick(),On.value.onButtonDown(An))},setFirstValue:bn,setSecondValue:Cn}},{left,down,right,up,home:home$2,end:end$1,pageUp,pageDown}=EVENT_CODE,useTooltip=($,oe,ae)=>{const ie=ref(),le=ref(!1),pe=computed(()=>oe.value instanceof Function),_e=computed(()=>pe.value&&oe.value($.modelValue)||$.modelValue),Ce=debounce(()=>{ae.value&&(le.value=!0)},50),$e=debounce(()=>{ae.value&&(le.value=!1)},50);return{tooltip:ie,tooltipVisible:le,formatValue:_e,displayTooltip:Ce,hideTooltip:$e}},useSliderButton=($,oe,ae)=>{const{disabled:ie,min:le,max:pe,step:_e,showTooltip:Ce,precision:$e,sliderSize:xe,formatTooltip:Ie,emitChange:Ne,resetSize:Fe,updateDragging:ze}=inject(sliderContextKey),{tooltip:At,tooltipVisible:Lt,formatValue:hn,displayTooltip:vn,hideTooltip:_n}=useTooltip($,Ie,Ce),bn=ref(),Cn=computed(()=>`${($.modelValue-le.value)/(pe.value-le.value)*100}%`),En=computed(()=>$.vertical?{bottom:Cn.value}:{left:Cn.value}),$n=()=>{oe.hovering=!0,vn()},wn=()=>{oe.hovering=!1,oe.dragging||_n()},Tn=Gn=>{ie.value||(Gn.preventDefault(),Fn(Gn),window.addEventListener("mousemove",Vn),window.addEventListener("touchmove",Vn),window.addEventListener("mouseup",jn),window.addEventListener("touchend",jn),window.addEventListener("contextmenu",jn),bn.value.focus())},xn=Gn=>{ie.value||(oe.newPosition=Number.parseFloat(Cn.value)+Gn/(pe.value-le.value)*100,Zn(oe.newPosition),Ne())},kn=()=>{xn(-_e.value)},An=()=>{xn(_e.value)},On=()=>{xn(-_e.value*4)},Nn=()=>{xn(_e.value*4)},Rn=()=>{ie.value||(Zn(0),Ne())},zn=()=>{ie.value||(Zn(100),Ne())},Bn=Gn=>{let Xn=!0;[left,down].includes(Gn.key)?kn():[right,up].includes(Gn.key)?An():Gn.key===home$2?Rn():Gn.key===end$1?zn():Gn.key===pageDown?On():Gn.key===pageUp?Nn():Xn=!1,Xn&&Gn.preventDefault()},Mn=Gn=>{let Xn,cr;return Gn.type.startsWith("touch")?(cr=Gn.touches[0].clientY,Xn=Gn.touches[0].clientX):(cr=Gn.clientY,Xn=Gn.clientX),{clientX:Xn,clientY:cr}},Fn=Gn=>{oe.dragging=!0,oe.isClick=!0;const{clientX:Xn,clientY:cr}=Mn(Gn);$.vertical?oe.startY=cr:oe.startX=Xn,oe.startPosition=Number.parseFloat(Cn.value),oe.newPosition=oe.startPosition},Vn=Gn=>{if(oe.dragging){oe.isClick=!1,vn(),Fe();let Xn;const{clientX:cr,clientY:nr}=Mn(Gn);$.vertical?(oe.currentY=nr,Xn=(oe.startY-oe.currentY)/xe.value*100):(oe.currentX=cr,Xn=(oe.currentX-oe.startX)/xe.value*100),oe.newPosition=oe.startPosition+Xn,Zn(oe.newPosition)}},jn=()=>{oe.dragging&&(setTimeout(()=>{oe.dragging=!1,oe.hovering||_n(),oe.isClick||Zn(oe.newPosition),Ne()},0),window.removeEventListener("mousemove",Vn),window.removeEventListener("touchmove",Vn),window.removeEventListener("mouseup",jn),window.removeEventListener("touchend",jn),window.removeEventListener("contextmenu",jn))},Zn=async Gn=>{if(Gn===null||Number.isNaN(+Gn))return;Gn<0?Gn=0:Gn>100&&(Gn=100);const Xn=100/((pe.value-le.value)/_e.value);let nr=Math.round(Gn/Xn)*Xn*(pe.value-le.value)*.01+le.value;nr=Number.parseFloat(nr.toFixed($e.value)),nr!==$.modelValue&&ae(UPDATE_MODEL_EVENT,nr),!oe.dragging&&$.modelValue!==oe.oldValue&&(oe.oldValue=$.modelValue),await nextTick(),oe.dragging&&vn(),At.value.updatePopper()};return watch(()=>oe.dragging,Gn=>{ze(Gn)}),{disabled:ie,button:bn,tooltip:At,tooltipVisible:Lt,showTooltip:Ce,wrapperStyle:En,formatValue:hn,handleMouseEnter:$n,handleMouseLeave:wn,onButtonDown:Tn,onKeyDown:Bn,setPosition:Zn}},useStops=($,oe,ae,ie)=>({stops:computed(()=>{if(!$.showStops||$.min>$.max)return[];if($.step===0)return[];const _e=($.max-$.min)/$.step,Ce=100*$.step/($.max-$.min),$e=Array.from({length:_e-1}).map((xe,Ie)=>(Ie+1)*Ce);return $.range?$e.filter(xe=>xe<100*(ae.value-$.min)/($.max-$.min)||xe>100*(ie.value-$.min)/($.max-$.min)):$e.filter(xe=>xe>100*(oe.firstValue-$.min)/($.max-$.min))}),getStopStyle:_e=>$.vertical?{bottom:`${_e}%`}:{left:`${_e}%`}}),useWatch=($,oe,ae,ie,le,pe)=>{const _e=xe=>{le(UPDATE_MODEL_EVENT,xe),le(INPUT_EVENT,xe)},Ce=()=>$.range?![ae.value,ie.value].every((xe,Ie)=>xe===oe.oldValue[Ie]):$.modelValue!==oe.oldValue,$e=()=>{var xe,Ie;$.min>$.max&&throwError$1("Slider","min should not be greater than max.");const Ne=$.modelValue;$.range&&Array.isArray(Ne)?Ne[1]<$.min?_e([$.min,$.min]):Ne[0]>$.max?_e([$.max,$.max]):Ne[0]<$.min?_e([$.min,Ne[1]]):Ne[1]>$.max?_e([Ne[0],$.max]):(oe.firstValue=Ne[0],oe.secondValue=Ne[1],Ce()&&($.validateEvent&&((xe=pe==null?void 0:pe.validate)==null||xe.call(pe,"change").catch(Fe=>void 0)),oe.oldValue=Ne.slice())):!$.range&&typeof Ne=="number"&&!Number.isNaN(Ne)&&(Ne<$.min?_e($.min):Ne>$.max?_e($.max):(oe.firstValue=Ne,Ce()&&($.validateEvent&&((Ie=pe==null?void 0:pe.validate)==null||Ie.call(pe,"change").catch(Fe=>void 0)),oe.oldValue=Ne)))};$e(),watch(()=>oe.dragging,xe=>{xe||$e()}),watch(()=>$.modelValue,(xe,Ie)=>{oe.dragging||Array.isArray(xe)&&Array.isArray(Ie)&&xe.every((Ne,Fe)=>Ne===Ie[Fe])&&oe.firstValue===xe[0]&&oe.secondValue===xe[1]||$e()},{deep:!0}),watch(()=>[$.min,$.max],()=>{$e()})},sliderButtonProps=buildProps({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ee,default:"top"}}),sliderButtonEmits={[UPDATE_MODEL_EVENT]:$=>isNumber$5($)},_hoisted_1$h=["tabindex"],__default__$r=defineComponent({name:"ElSliderButton"}),_sfc_main$A=defineComponent({...__default__$r,props:sliderButtonProps,emits:sliderButtonEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useNamespace("slider"),pe=reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:ie.modelValue}),{disabled:_e,button:Ce,tooltip:$e,showTooltip:xe,tooltipVisible:Ie,wrapperStyle:Ne,formatValue:Fe,handleMouseEnter:ze,handleMouseLeave:At,onButtonDown:Lt,onKeyDown:hn,setPosition:vn}=useSliderButton(ie,pe,ae),{hovering:_n,dragging:bn}=toRefs(pe);return oe({onButtonDown:Lt,onKeyDown:hn,setPosition:vn,hovering:_n,dragging:bn}),(Cn,En)=>(openBlock(),createElementBlock("div",{ref_key:"button",ref:Ce,class:normalizeClass([unref(le).e("button-wrapper"),{hover:unref(_n),dragging:unref(bn)}]),style:normalizeStyle$1(unref(Ne)),tabindex:unref(_e)?-1:0,onMouseenter:En[0]||(En[0]=(...$n)=>unref(ze)&&unref(ze)(...$n)),onMouseleave:En[1]||(En[1]=(...$n)=>unref(At)&&unref(At)(...$n)),onMousedown:En[2]||(En[2]=(...$n)=>unref(Lt)&&unref(Lt)(...$n)),onTouchstart:En[3]||(En[3]=(...$n)=>unref(Lt)&&unref(Lt)(...$n)),onFocus:En[4]||(En[4]=(...$n)=>unref(ze)&&unref(ze)(...$n)),onBlur:En[5]||(En[5]=(...$n)=>unref(At)&&unref(At)(...$n)),onKeydown:En[6]||(En[6]=(...$n)=>unref(hn)&&unref(hn)(...$n))},[createVNode(unref(ElTooltip),{ref_key:"tooltip",ref:$e,visible:unref(Ie),placement:Cn.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":Cn.tooltipClass,disabled:!unref(xe),persistent:""},{content:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(unref(Fe)),1)]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([unref(le).e("button"),{hover:unref(_n),dragging:unref(bn)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,_hoisted_1$h))}});var SliderButton=_export_sfc$1(_sfc_main$A,[["__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($){const oe=useNamespace("slider"),ae=computed(()=>isString$7($.mark)?$.mark:$.mark.label),ie=computed(()=>isString$7($.mark)?void 0:$.mark.style);return()=>h$3("div",{class:oe.e("marks-text"),style:ie.value},ae.value)}});const _hoisted_1$g=["id","role","aria-label","aria-labelledby"],_hoisted_2$b={key:1},__default__$q=defineComponent({name:"ElSlider"}),_sfc_main$z=defineComponent({...__default__$q,props:sliderProps,emits:sliderEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useNamespace("slider"),{t:pe}=useLocale(),_e=reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:Ce,slider:$e,firstButton:xe,secondButton:Ie,sliderDisabled:Ne,minValue:Fe,maxValue:ze,runwayStyle:At,barStyle:Lt,resetSize:hn,emitChange:vn,onSliderWrapperPrevent:_n,onSliderClick:bn,onSliderDown:Cn,setFirstValue:En,setSecondValue:$n}=useSlide(ie,_e,ae),{stops:wn,getStopStyle:Tn}=useStops(ie,_e,Fe,ze),{inputId:xn,isLabeledByFormItem:kn}=useFormItemInputId(ie,{formItemContext:Ce}),An=useFormSize(),On=computed(()=>ie.inputSize||An.value),Nn=computed(()=>ie.label||pe("el.slider.defaultLabel",{min:ie.min,max:ie.max})),Rn=computed(()=>ie.range?ie.rangeStartLabel||pe("el.slider.defaultRangeStartLabel"):Nn.value),zn=computed(()=>ie.formatValueText?ie.formatValueText(Gn.value):`${Gn.value}`),Bn=computed(()=>ie.rangeEndLabel||pe("el.slider.defaultRangeEndLabel")),Mn=computed(()=>ie.formatValueText?ie.formatValueText(Xn.value):`${Xn.value}`),Fn=computed(()=>[le.b(),le.m(An.value),le.is("vertical",ie.vertical),{[le.m("with-input")]:ie.showInput}]),Vn=useMarks(ie);useWatch(ie,_e,Fe,ze,ae,Ce);const jn=computed(()=>{const er=[ie.min,ie.max,ie.step].map(rr=>{const qn=`${rr}`.split(".")[1];return qn?qn.length:0});return Math.max.apply(null,er)}),{sliderWrapper:Zn}=useLifecycle(ie,_e,hn),{firstValue:Gn,secondValue:Xn,sliderSize:cr}=toRefs(_e),nr=er=>{_e.dragging=er};return provide(sliderContextKey,{...toRefs(ie),sliderSize:cr,disabled:Ne,precision:jn,emitChange:vn,resetSize:hn,updateDragging:nr}),oe({onSliderClick:bn}),(er,rr)=>{var qn,Yn;return openBlock(),createElementBlock("div",{id:er.range?unref(xn):void 0,ref_key:"sliderWrapper",ref:Zn,class:normalizeClass(unref(Fn)),role:er.range?"group":void 0,"aria-label":er.range&&!unref(kn)?unref(Nn):void 0,"aria-labelledby":er.range&&unref(kn)?(qn=unref(Ce))==null?void 0:qn.labelId:void 0,onTouchstart:rr[2]||(rr[2]=(...ar)=>unref(_n)&&unref(_n)(...ar)),onTouchmove:rr[3]||(rr[3]=(...ar)=>unref(_n)&&unref(_n)(...ar))},[createBaseVNode("div",{ref_key:"slider",ref:$e,class:normalizeClass([unref(le).e("runway"),{"show-input":er.showInput&&!er.range},unref(le).is("disabled",unref(Ne))]),style:normalizeStyle$1(unref(At)),onMousedown:rr[0]||(rr[0]=(...ar)=>unref(Cn)&&unref(Cn)(...ar)),onTouchstart:rr[1]||(rr[1]=(...ar)=>unref(Cn)&&unref(Cn)(...ar))},[createBaseVNode("div",{class:normalizeClass(unref(le).e("bar")),style:normalizeStyle$1(unref(Lt))},null,6),createVNode(SliderButton,{id:er.range?void 0:unref(xn),ref_key:"firstButton",ref:xe,"model-value":unref(Gn),vertical:er.vertical,"tooltip-class":er.tooltipClass,placement:er.placement,role:"slider","aria-label":er.range||!unref(kn)?unref(Rn):void 0,"aria-labelledby":!er.range&&unref(kn)?(Yn=unref(Ce))==null?void 0:Yn.labelId:void 0,"aria-valuemin":er.min,"aria-valuemax":er.range?unref(Xn):er.max,"aria-valuenow":unref(Gn),"aria-valuetext":unref(zn),"aria-orientation":er.vertical?"vertical":"horizontal","aria-disabled":unref(Ne),"onUpdate:modelValue":unref(En)},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"]),er.range?(openBlock(),createBlock(SliderButton,{key:0,ref_key:"secondButton",ref:Ie,"model-value":unref(Xn),vertical:er.vertical,"tooltip-class":er.tooltipClass,placement:er.placement,role:"slider","aria-label":unref(Bn),"aria-valuemin":unref(Gn),"aria-valuemax":er.max,"aria-valuenow":unref(Xn),"aria-valuetext":unref(Mn),"aria-orientation":er.vertical?"vertical":"horizontal","aria-disabled":unref(Ne),"onUpdate:modelValue":unref($n)},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),er.showStops?(openBlock(),createElementBlock("div",_hoisted_2$b,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(wn),(ar,pr)=>(openBlock(),createElementBlock("div",{key:pr,class:normalizeClass(unref(le).e("stop")),style:normalizeStyle$1(unref(Tn)(ar))},null,6))),128))])):createCommentVNode("v-if",!0),unref(Vn).length>0?(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Vn),(ar,pr)=>(openBlock(),createElementBlock("div",{key:pr,style:normalizeStyle$1(unref(Tn)(ar.position)),class:normalizeClass([unref(le).e("stop"),unref(le).e("marks-stop")])},null,6))),128))]),createBaseVNode("div",{class:normalizeClass(unref(le).e("marks"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Vn),(ar,pr)=>(openBlock(),createBlock(unref(SliderMarker),{key:pr,mark:ar.mark,style:normalizeStyle$1(unref(Tn)(ar.position))},null,8,["mark","style"]))),128))],2)],64)):createCommentVNode("v-if",!0)],38),er.showInput&&!er.range?(openBlock(),createBlock(unref(ElInputNumber),{key:0,ref:"input","model-value":unref(Gn),class:normalizeClass(unref(le).e("input")),step:er.step,disabled:unref(Ne),controls:er.showInputControls,min:er.min,max:er.max,debounce:er.debounce,size:unref(On),"onUpdate:modelValue":unref(En),onChange:unref(vn)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):createCommentVNode("v-if",!0)],42,_hoisted_1$g)}}});var Slider=_export_sfc$1(_sfc_main$z,[["__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($,{slots:oe}){const ae=useNamespace("space"),ie=computed(()=>`${$.prefixCls||ae.b()}__item`);return()=>h$3("div",{class:ie.value},renderSlot(oe,"default"))}}),SIZE_MAP={small:8,default:12,large:16};function useSpace($){const oe=useNamespace("space"),ae=computed(()=>[oe.b(),oe.m($.direction),$.class]),ie=ref(0),le=ref(0),pe=computed(()=>{const Ce=$.wrap||$.fill?{flexWrap:"wrap",marginBottom:`-${le.value}px`}:{},$e={alignItems:$.alignment};return[Ce,$e,$.style]}),_e=computed(()=>{const Ce={paddingBottom:`${le.value}px`,marginRight:`${ie.value}px`},$e=$.fill?{flexGrow:1,minWidth:`${$.fillRatio}%`}:{};return[Ce,$e]});return watchEffect(()=>{const{size:Ce="small",wrap:$e,direction:xe,fill:Ie}=$;if(isArray$c(Ce)){const[Ne=0,Fe=0]=Ce;ie.value=Ne,le.value=Fe}else{let Ne;isNumber$5(Ce)?Ne=Ce:Ne=SIZE_MAP[Ce||"small"]||SIZE_MAP.small,($e||Ie)&&xe==="horizontal"?ie.value=le.value=Ne:xe==="horizontal"?(ie.value=Ne,le.value=0):(le.value=Ne,ie.value=0)}}),{classes:ae,containerStyle:pe,itemStyle:_e}}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:$=>isVNode$1($)||isNumber$5($)||isString$7($)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:componentSizes,validator:$=>isNumber$5($)||isArray$c($)&&$.length===2&&$.every(isNumber$5)}}),Space=defineComponent({name:"ElSpace",props:spaceProps,setup($,{slots:oe}){const{classes:ae,containerStyle:ie,itemStyle:le}=useSpace($);function pe(_e,Ce="",$e=[]){const{prefixCls:xe}=$;return _e.forEach((Ie,Ne)=>{isFragment(Ie)?isArray$c(Ie.children)&&Ie.children.forEach((Fe,ze)=>{isFragment(Fe)&&isArray$c(Fe.children)?pe(Fe.children,`${Ce+ze}-`,$e):$e.push(createVNode(SpaceItem,{style:le.value,prefixCls:xe,key:`nested-${Ce+ze}`},{default:()=>[Fe]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}):isValidElementNode(Ie)&&$e.push(createVNode(SpaceItem,{style:le.value,prefixCls:xe,key:`LoopKey${Ce+Ne}`},{default:()=>[Ie]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}),$e}return()=>{var _e;const{spacer:Ce,direction:$e}=$,xe=renderSlot(oe,"default",{key:0},()=>[]);if(((_e=xe.children)!=null?_e:[]).length===0)return null;if(isArray$c(xe.children)){let Ie=pe(xe.children);if(Ce){const Ne=Ie.length-1;Ie=Ie.reduce((Fe,ze,At)=>{const Lt=[...Fe,ze];return At!==Ne&&Lt.push(createVNode("span",{style:[le.value,$e==="vertical"?"width: 100%":null],key:At},[isVNode$1(Ce)?Ce:createTextVNode(Ce,PatchFlags.TEXT)],PatchFlags.STYLE)),Lt},[])}return createVNode("div",{class:ae.value,style:ie.value},Ie,PatchFlags.STYLE|PatchFlags.CLASS)}return xe.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])}}),__default__$p=defineComponent({name:"ElStatistic"}),_sfc_main$y=defineComponent({...__default__$p,props:statisticProps,setup($,{expose:oe}){const ae=$,ie=useNamespace("statistic"),le=computed(()=>{const{value:pe,formatter:_e,precision:Ce,decimalSeparator:$e,groupSeparator:xe}=ae;if(isFunction$5(_e))return _e(pe);if(!isNumber$5(pe))return pe;let[Ie,Ne=""]=String(pe).split(".");return Ne=Ne.padEnd(Ce,"0").slice(0,Ce>0?Ce:0),Ie=Ie.replace(/\B(?=(\d{3})+(?!\d))/g,xe),[Ie,Ne].join(Ne?$e:"")});return oe({displayValue:le}),(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ie).b())},[pe.$slots.title||pe.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("head"))},[renderSlot(pe.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(pe.title),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).e("content"))},[pe.$slots.prefix||pe.prefix?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("prefix"))},[renderSlot(pe.$slots,"prefix",{},()=>[createBaseVNode("span",null,toDisplayString$1(pe.prefix),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(unref(ie).e("number")),style:normalizeStyle$1(pe.valueStyle)},toDisplayString$1(unref(le)),7),pe.$slots.suffix||pe.suffix?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).e("suffix"))},[renderSlot(pe.$slots,"suffix",{},()=>[createBaseVNode("span",null,toDisplayString$1(pe.suffix),1)])],2)):createCommentVNode("v-if",!0)],2)],2))}});var Statistic=_export_sfc$1(_sfc_main$y,[["__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]:$=>isNumber$5($)},timeUnits$1=[["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=$=>isNumber$5($)?new Date($).getTime():$.valueOf(),formatTime$2=($,oe)=>{let ae=$;const ie=/\[([^\]]*)]/g;return timeUnits$1.reduce((pe,[_e,Ce])=>{const $e=new RegExp(`${_e}+(?![^\\[\\]]*\\])`,"g");if($e.test(pe)){const xe=Math.floor(ae/Ce);return ae-=xe*Ce,pe.replace($e,Ie=>String(xe).padStart(Ie.length,"0"))}return pe},oe).replace(ie,"$1")},__default__$o=defineComponent({name:"ElCountdown"}),_sfc_main$x=defineComponent({...__default__$o,props:countdownProps,emits:countdownEmits,setup($,{expose:oe,emit:ae}){const ie=$;let le;const pe=ref(getTime$1(ie.value)-Date.now()),_e=computed(()=>formatTime$2(pe.value,ie.format)),Ce=Ie=>formatTime$2(Ie,ie.format),$e=()=>{le&&(cAF(le),le=void 0)},xe=()=>{const Ie=getTime$1(ie.value),Ne=()=>{let Fe=Ie-Date.now();ae("change",Fe),Fe<=0?(Fe=0,$e(),ae("finish")):le=rAF(Ne),pe.value=Fe};le=rAF(Ne)};return watch(()=>[ie.value,ie.format],()=>{$e(),xe()},{immediate:!0}),onBeforeUnmount(()=>{$e()}),oe({displayValue:_e}),(Ie,Ne)=>(openBlock(),createBlock(unref(ElStatistic),{value:pe.value,title:Ie.title,prefix:Ie.prefix,suffix:Ie.suffix,"value-style":Ie.valueStyle,formatter:Ce},createSlots({_:2},[renderList(Ie.$slots,(Fe,ze)=>({name:ze,fn:withCtx(()=>[renderSlot(Ie.$slots,ze)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Countdown=_export_sfc$1(_sfc_main$x,[["__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]:($,oe)=>[$,oe].every(isNumber$5)},__default__$n=defineComponent({name:"ElSteps"}),_sfc_main$w=defineComponent({...__default__$n,props:stepsProps,emits:stepsEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("steps"),le=ref([]);return watch(le,()=>{le.value.forEach((pe,_e)=>{pe.setIndex(_e)})}),provide("ElSteps",{props:ae,steps:le}),watch(()=>ae.active,(pe,_e)=>{oe(CHANGE_EVENT,pe,_e)}),(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b(),unref(ie).m(pe.simple?"simple":pe.direction)])},[renderSlot(pe.$slots,"default")],2))}});var Steps=_export_sfc$1(_sfc_main$w,[["__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:""}}),__default__$m=defineComponent({name:"ElStep"}),_sfc_main$v=defineComponent({...__default__$m,props:stepProps,setup($){const oe=$,ae=useNamespace("step"),ie=ref(-1),le=ref({}),pe=ref(""),_e=inject("ElSteps"),Ce=getCurrentInstance();onMounted(()=>{watch([()=>_e.props.active,()=>_e.props.processStatus,()=>_e.props.finishStatus],([En])=>{bn(En)},{immediate:!0})}),onBeforeUnmount(()=>{_e.steps.value=_e.steps.value.filter(En=>En.uid!==(Ce==null?void 0:Ce.uid))});const $e=computed(()=>oe.status||pe.value),xe=computed(()=>{const En=_e.steps.value[ie.value-1];return En?En.currentStatus:"wait"}),Ie=computed(()=>_e.props.alignCenter),Ne=computed(()=>_e.props.direction==="vertical"),Fe=computed(()=>_e.props.simple),ze=computed(()=>_e.steps.value.length),At=computed(()=>{var En;return((En=_e.steps.value[ze.value-1])==null?void 0:En.uid)===(Ce==null?void 0:Ce.uid)}),Lt=computed(()=>Fe.value?"":_e.props.space),hn=computed(()=>{const En={flexBasis:isNumber$5(Lt.value)?`${Lt.value}px`:Lt.value?Lt.value:`${100/(ze.value-(Ie.value?0:1))}%`};return Ne.value||At.value&&(En.maxWidth=`${100/ze.value}%`),En}),vn=En=>{ie.value=En},_n=En=>{const $n=En==="wait",wn={transitionDelay:`${$n?"-":""}${150*ie.value}ms`},Tn=En===_e.props.processStatus||$n?0:100;wn.borderWidth=Tn&&!Fe.value?"1px":0,wn[_e.props.direction==="vertical"?"height":"width"]=`${Tn}%`,le.value=wn},bn=En=>{En>ie.value?pe.value=_e.props.finishStatus:En===ie.value&&xe.value!=="error"?pe.value=_e.props.processStatus:pe.value="wait";const $n=_e.steps.value[ie.value-1];$n&&$n.calcProgress(pe.value)},Cn=reactive({uid:computed(()=>Ce==null?void 0:Ce.uid),currentStatus:$e,setIndex:vn,calcProgress:_n});return _e.steps.value=[..._e.steps.value,Cn],(En,$n)=>(openBlock(),createElementBlock("div",{style:normalizeStyle$1(unref(hn)),class:normalizeClass([unref(ae).b(),unref(ae).is(unref(Fe)?"simple":unref(_e).props.direction),unref(ae).is("flex",unref(At)&&!unref(Lt)&&!unref(Ie)),unref(ae).is("center",unref(Ie)&&!unref(Ne)&&!unref(Fe))])},[createCommentVNode(" icon & line "),createBaseVNode("div",{class:normalizeClass([unref(ae).e("head"),unref(ae).is(unref($e))])},[unref(Fe)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("line"))},[createBaseVNode("i",{class:normalizeClass(unref(ae).e("line-inner")),style:normalizeStyle$1(le.value)},null,6)],2)),createBaseVNode("div",{class:normalizeClass([unref(ae).e("icon"),unref(ae).is(En.icon||En.$slots.icon?"icon":"text")])},[renderSlot(En.$slots,"icon",{},()=>[En.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ae).e("icon-inner"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(En.icon)))]),_:1},8,["class"])):unref($e)==="success"?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(ae).e("icon-inner"),unref(ae).is("status")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):unref($e)==="error"?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(ae).e("icon-inner"),unref(ae).is("status")])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class"])):unref(Fe)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(unref(ae).e("icon-inner"))},toDisplayString$1(ie.value+1),3))])],2)],2),createCommentVNode(" title & description "),createBaseVNode("div",{class:normalizeClass(unref(ae).e("main"))},[createBaseVNode("div",{class:normalizeClass([unref(ae).e("title"),unref(ae).is(unref($e))])},[renderSlot(En.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(En.title),1)])],2),unref(Fe)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("arrow"))},null,2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(ae).e("description"),unref(ae).is(unref($e))])},[renderSlot(En.$slots,"description",{},()=>[createTextVNode(toDisplayString$1(En.description),1)])],2))],2)],6))}});var Step=_export_sfc$1(_sfc_main$v,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const ElSteps=withInstall(Steps,{Step}),ElStep=withNoopInstall(Step),switchProps=buildProps({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:iconPropType},inactiveIcon:{type:iconPropType},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{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},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:definePropType(Function)},size:{type:String,validator:isValidComponentSize},tabindex:{type:[String,Number]}}),switchEmits={[UPDATE_MODEL_EVENT]:$=>isBoolean$3($)||isString$7($)||isNumber$5($),[CHANGE_EVENT]:$=>isBoolean$3($)||isString$7($)||isNumber$5($),[INPUT_EVENT]:$=>isBoolean$3($)||isString$7($)||isNumber$5($)},_hoisted_1$f=["onClick"],_hoisted_2$a=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],_hoisted_3$5=["aria-hidden"],_hoisted_4$3=["aria-hidden"],_hoisted_5$1=["aria-hidden"],COMPONENT_NAME$8="ElSwitch",__default__$l=defineComponent({name:COMPONENT_NAME$8}),_sfc_main$u=defineComponent({...__default__$l,props:switchProps,emits:switchEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=getCurrentInstance(),{formItem:pe}=useFormItem(),_e=useFormSize(),Ce=useNamespace("switch");useDeprecated({from:'"value"',replacement:'"model-value" or "v-model"',scope:COMPONENT_NAME$8,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},computed(()=>{var En;return!!((En=le.vnode.props)!=null&&En.value)}));const{inputId:$e}=useFormItemInputId(ie,{formItemContext:pe}),xe=useFormDisabled(computed(()=>ie.loading)),Ie=ref(ie.modelValue!==!1),Ne=ref(),Fe=ref(),ze=computed(()=>[Ce.b(),Ce.m(_e.value),Ce.is("disabled",xe.value),Ce.is("checked",hn.value)]),At=computed(()=>({width:addUnit(ie.width)}));watch(()=>ie.modelValue,()=>{Ie.value=!0}),watch(()=>ie.value,()=>{Ie.value=!1});const Lt=computed(()=>Ie.value?ie.modelValue:ie.value),hn=computed(()=>Lt.value===ie.activeValue);[ie.activeValue,ie.inactiveValue].includes(Lt.value)||(ae(UPDATE_MODEL_EVENT,ie.inactiveValue),ae(CHANGE_EVENT,ie.inactiveValue),ae(INPUT_EVENT,ie.inactiveValue)),watch(hn,En=>{var $n;Ne.value.checked=En,ie.validateEvent&&(($n=pe==null?void 0:pe.validate)==null||$n.call(pe,"change").catch(wn=>void 0))});const vn=()=>{const En=hn.value?ie.inactiveValue:ie.activeValue;ae(UPDATE_MODEL_EVENT,En),ae(CHANGE_EVENT,En),ae(INPUT_EVENT,En),nextTick(()=>{Ne.value.checked=hn.value})},_n=()=>{if(xe.value)return;const{beforeChange:En}=ie;if(!En){vn();return}const $n=En();[isPromise($n),isBoolean$3($n)].includes(!0)||throwError$1(COMPONENT_NAME$8,"beforeChange must return type `Promise` or `boolean`"),isPromise($n)?$n.then(Tn=>{Tn&&vn()}).catch(Tn=>{}):$n&&vn()},bn=computed(()=>Ce.cssVarBlock({...ie.activeColor?{"on-color":ie.activeColor}:null,...ie.inactiveColor?{"off-color":ie.inactiveColor}:null,...ie.borderColor?{"border-color":ie.borderColor}:null})),Cn=()=>{var En,$n;($n=(En=Ne.value)==null?void 0:En.focus)==null||$n.call(En)};return onMounted(()=>{Ne.value.checked=hn.value}),oe({focus:Cn,checked:hn}),(En,$n)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ze)),style:normalizeStyle$1(unref(bn)),onClick:withModifiers(_n,["prevent"])},[createBaseVNode("input",{id:unref($e),ref_key:"input",ref:Ne,class:normalizeClass(unref(Ce).e("input")),type:"checkbox",role:"switch","aria-checked":unref(hn),"aria-disabled":unref(xe),name:En.name,"true-value":En.activeValue,"false-value":En.inactiveValue,disabled:unref(xe),tabindex:En.tabindex,onChange:vn,onKeydown:withKeys(_n,["enter"])},null,42,_hoisted_2$a),!En.inlinePrompt&&(En.inactiveIcon||En.inactiveText)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(Ce).e("label"),unref(Ce).em("label","left"),unref(Ce).is("active",!unref(hn))])},[En.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(En.inactiveIcon)))]),_:1})):createCommentVNode("v-if",!0),!En.inactiveIcon&&En.inactiveText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":unref(hn)},toDisplayString$1(En.inactiveText),9,_hoisted_3$5)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{ref_key:"core",ref:Fe,class:normalizeClass(unref(Ce).e("core")),style:normalizeStyle$1(unref(At))},[En.inlinePrompt?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ce).e("inner"))},[En.activeIcon||En.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Ce).is("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(hn)?En.activeIcon:En.inactiveIcon)))]),_:1},8,["class"])):En.activeText||En.inactiveText?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(Ce).is("text")),"aria-hidden":!unref(hn)},toDisplayString$1(unref(hn)?En.activeText:En.inactiveText),11,_hoisted_4$3)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Ce).e("action"))},[En.loading?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Ce).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],6),!En.inlinePrompt&&(En.activeIcon||En.activeText)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass([unref(Ce).e("label"),unref(Ce).em("label","right"),unref(Ce).is("active",unref(hn))])},[En.activeIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(En.activeIcon)))]),_:1})):createCommentVNode("v-if",!0),!En.activeIcon&&En.activeText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":!unref(hn)},toDisplayString$1(En.activeText),9,_hoisted_5$1)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],14,_hoisted_1$f))}});var Switch=_export_sfc$1(_sfc_main$u,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const ElSwitch=withInstall(Switch);/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var matchHtmlRegExp=/["'&<>]/,escapeHtml_1=escapeHtml$1;function escapeHtml$1($){var oe=""+$,ae=matchHtmlRegExp.exec(oe);if(!ae)return oe;var ie,le="",pe=0,_e=0;for(pe=ae.index;petypeof xe=="string"?get$1(Ce,xe):xe(Ce,$e,$))):(oe!=="$key"&&isObject$8(Ce)&&"$value"in Ce&&(Ce=Ce.$value),[isObject$8(Ce)?get$1(Ce,oe):Ce])},_e=function(Ce,$e){if(ie)return ie(Ce.value,$e.value);for(let xe=0,Ie=Ce.key.length;xe$e.key[xe])return 1}return 0};return $.map((Ce,$e)=>({value:Ce,index:$e,key:pe?pe(Ce,$e):null})).sort((Ce,$e)=>{let xe=_e(Ce,$e);return xe||(xe=Ce.index-$e.index),xe*+ae}).map(Ce=>Ce.value)},getColumnById=function($,oe){let ae=null;return $.columns.forEach(ie=>{ie.id===oe&&(ae=ie)}),ae},getColumnByKey=function($,oe){let ae=null;for(let ie=0;ie<$.columns.length;ie++){const le=$.columns[ie];if(le.columnKey===oe){ae=le;break}}return ae||throwError$1("ElTable",`No column matching with column-key: ${oe}`),ae},getColumnByCell=function($,oe,ae){const ie=(oe.className||"").match(new RegExp(`${ae}-table_[^\\s]+`,"gm"));return ie?getColumnById($,ie[0]):null},getRowIdentity=($,oe)=>{if(!$)throw new Error("Row is required when get row identity");if(typeof oe=="string"){if(!oe.includes("."))return`${$[oe]}`;const ae=oe.split(".");let ie=$;for(const le of ae)ie=ie[le];return`${ie}`}else if(typeof oe=="function")return oe.call(null,$)},getKeysMap=function($,oe){const ae={};return($||[]).forEach((ie,le)=>{ae[getRowIdentity(ie,oe)]={row:ie,index:le}}),ae};function mergeOptions$1($,oe){const ae={};let ie;for(ie in $)ae[ie]=$[ie];for(ie in oe)if(hasOwn$4(oe,ie)){const le=oe[ie];typeof le<"u"&&(ae[ie]=le)}return ae}function parseWidth($){return $===""||$!==void 0&&($=Number.parseInt($,10),Number.isNaN($)&&($="")),$}function parseMinWidth($){return $===""||$!==void 0&&($=parseWidth($),Number.isNaN($)&&($=80)),$}function parseHeight($){return typeof $=="number"?$:typeof $=="string"?/^\d+(?:px)?$/.test($)?Number.parseInt($,10):$:null}function compose(...$){return $.length===0?oe=>oe:$.length===1?$[0]:$.reduce((oe,ae)=>(...ie)=>oe(ae(...ie)))}function toggleRowStatus($,oe,ae){let ie=!1;const le=$.indexOf(oe),pe=le!==-1,_e=Ce=>{Ce==="add"?$.push(oe):$.splice(le,1),ie=!0,isArray$c(oe.children)&&oe.children.forEach($e=>{toggleRowStatus($,$e,ae??!pe)})};return isBoolean$3(ae)?ae&&!pe?_e("add"):!ae&&pe&&_e("remove"):_e(pe?"remove":"add"),ie}function walkTreeNode($,oe,ae="children",ie="hasChildren"){const le=_e=>!(Array.isArray(_e)&&_e.length);function pe(_e,Ce,$e){oe(_e,Ce,$e),Ce.forEach(xe=>{if(xe[ie]){oe(xe,null,$e+1);return}const Ie=xe[ae];le(Ie)||pe(xe,Ie,$e+1)})}$.forEach(_e=>{if(_e[ie]){oe(_e,null,0);return}const Ce=_e[ae];le(Ce)||pe(_e,Ce,0)})}let removePopper;function createTablePopper($,oe,ae,ie,le){le=merge$4({enterable:!0,showArrow:!0},le);const pe=$==null?void 0:$.dataset.prefix,_e=$==null?void 0:$.querySelector(`.${pe}-scrollbar__wrap`);function Ce(){const hn=le.effect==="light",vn=document.createElement("div");return vn.className=[`${pe}-popper`,hn?"is-light":"is-dark",le.popperClass||""].join(" "),ae=escapeHtml$2(ae),vn.innerHTML=ae,vn.style.zIndex=String(ie()),$==null||$.appendChild(vn),vn}function $e(){const hn=document.createElement("div");return hn.className=`${pe}-popper__arrow`,hn}function xe(){Ie&&Ie.update()}removePopper==null||removePopper(),removePopper=()=>{try{Ie&&Ie.destroy(),ze&&($==null||$.removeChild(ze)),oe.removeEventListener("mouseenter",Ne),oe.removeEventListener("mouseleave",Fe),_e==null||_e.removeEventListener("scroll",removePopper),removePopper=void 0}catch{}};let Ie=null,Ne=xe,Fe=removePopper;le.enterable&&({onOpen:Ne,onClose:Fe}=useDelayedToggle({showAfter:le.showAfter,hideAfter:le.hideAfter,open:xe,close:removePopper}));const ze=Ce();ze.onmouseenter=Ne,ze.onmouseleave=Fe;const At=[];if(le.offset&&At.push({name:"offset",options:{offset:[0,le.offset]}}),le.showArrow){const hn=ze.appendChild($e());At.push({name:"arrow",options:{element:hn,padding:10}})}const Lt=le.popperOptions||{};return Ie=yn(oe,ze,{placement:le.placement||"top",strategy:"fixed",...Lt,modifiers:Lt.modifiers?At.concat(Lt.modifiers):At}),oe.addEventListener("mouseenter",Ne),oe.addEventListener("mouseleave",Fe),_e==null||_e.addEventListener("scroll",removePopper),Ie}function getCurrentColumns($){return $.children?flatMap($.children,getCurrentColumns):[$]}function getColSpan($,oe){return $+oe.colSpan}const isFixedColumn=($,oe,ae,ie)=>{let le=0,pe=$;const _e=ae.states.columns.value;if(ie){const $e=getCurrentColumns(ie[$]);le=_e.slice(0,_e.indexOf($e[0])).reduce(getColSpan,0),pe=le+$e.reduce(getColSpan,0)-1}else le=$;let Ce;switch(oe){case"left":pe=_e.length-ae.states.rightFixedLeafColumnsLength.value&&(Ce="right");break;default:pe=_e.length-ae.states.rightFixedLeafColumnsLength.value&&(Ce="right")}return Ce?{direction:Ce,start:le,after:pe}:{}},getFixedColumnsClass=($,oe,ae,ie,le,pe=0)=>{const _e=[],{direction:Ce,start:$e,after:xe}=isFixedColumn(oe,ae,ie,le);if(Ce){const Ie=Ce==="left";_e.push(`${$}-fixed-column--${Ce}`),Ie&&xe+pe===ie.states.fixedLeafColumnsLength.value-1?_e.push("is-last-column"):!Ie&&$e-pe===ie.states.columns.value.length-ie.states.rightFixedLeafColumnsLength.value&&_e.push("is-first-column")}return _e};function getOffset($,oe){return $+(oe.realWidth===null||Number.isNaN(oe.realWidth)?Number(oe.width):oe.realWidth)}const getFixedColumnOffset=($,oe,ae,ie)=>{const{direction:le,start:pe=0,after:_e=0}=isFixedColumn($,oe,ae,ie);if(!le)return;const Ce={},$e=le==="left",xe=ae.states.columns.value;return $e?Ce.left=xe.slice(0,pe).reduce(getOffset,0):Ce.right=xe.slice(_e+1).reverse().reduce(getOffset,0),Ce},ensurePosition=($,oe)=>{$&&(Number.isNaN($[oe])||($[oe]=`${$[oe]}px`))};function useExpand($){const oe=getCurrentInstance(),ae=ref(!1),ie=ref([]);return{updateExpandRows:()=>{const $e=$.data.value||[],xe=$.rowKey.value;if(ae.value)ie.value=$e.slice();else if(xe){const Ie=getKeysMap(ie.value,xe);ie.value=$e.reduce((Ne,Fe)=>{const ze=getRowIdentity(Fe,xe);return Ie[ze]&&Ne.push(Fe),Ne},[])}else ie.value=[]},toggleRowExpansion:($e,xe)=>{toggleRowStatus(ie.value,$e,xe)&&oe.emit("expand-change",$e,ie.value.slice())},setExpandRowKeys:$e=>{oe.store.assertRowKey();const xe=$.data.value||[],Ie=$.rowKey.value,Ne=getKeysMap(xe,Ie);ie.value=$e.reduce((Fe,ze)=>{const At=Ne[ze];return At&&Fe.push(At.row),Fe},[])},isRowExpanded:$e=>{const xe=$.rowKey.value;return xe?!!getKeysMap(ie.value,xe)[getRowIdentity($e,xe)]:ie.value.includes($e)},states:{expandRows:ie,defaultExpandAll:ae}}}function useCurrent($){const oe=getCurrentInstance(),ae=ref(null),ie=ref(null),le=xe=>{oe.store.assertRowKey(),ae.value=xe,_e(xe)},pe=()=>{ae.value=null},_e=xe=>{const{data:Ie,rowKey:Ne}=$;let Fe=null;Ne.value&&(Fe=(unref(Ie)||[]).find(ze=>getRowIdentity(ze,Ne.value)===xe)),ie.value=Fe,oe.emit("current-change",ie.value,null)};return{setCurrentRowKey:le,restoreCurrentRowKey:pe,setCurrentRowByKey:_e,updateCurrentRow:xe=>{const Ie=ie.value;if(xe&&xe!==Ie){ie.value=xe,oe.emit("current-change",ie.value,Ie);return}!xe&&Ie&&(ie.value=null,oe.emit("current-change",null,Ie))},updateCurrentRowData:()=>{const xe=$.rowKey.value,Ie=$.data.value||[],Ne=ie.value;if(!Ie.includes(Ne)&&Ne){if(xe){const Fe=getRowIdentity(Ne,xe);_e(Fe)}else ie.value=null;ie.value===null&&oe.emit("current-change",null,Ne)}else ae.value&&(_e(ae.value),pe())},states:{_currentRowKey:ae,currentRow:ie}}}function useTree$2($){const oe=ref([]),ae=ref({}),ie=ref(16),le=ref(!1),pe=ref({}),_e=ref("hasChildren"),Ce=ref("children"),$e=getCurrentInstance(),xe=computed(()=>{if(!$.rowKey.value)return{};const vn=$.data.value||[];return Ne(vn)}),Ie=computed(()=>{const vn=$.rowKey.value,_n=Object.keys(pe.value),bn={};return _n.length&&_n.forEach(Cn=>{if(pe.value[Cn].length){const En={children:[]};pe.value[Cn].forEach($n=>{const wn=getRowIdentity($n,vn);En.children.push(wn),$n[_e.value]&&!bn[wn]&&(bn[wn]={children:[]})}),bn[Cn]=En}}),bn}),Ne=vn=>{const _n=$.rowKey.value,bn={};return walkTreeNode(vn,(Cn,En,$n)=>{const wn=getRowIdentity(Cn,_n);Array.isArray(En)?bn[wn]={children:En.map(Tn=>getRowIdentity(Tn,_n)),level:$n}:le.value&&(bn[wn]={children:[],lazy:!0,level:$n})},Ce.value,_e.value),bn},Fe=(vn=!1,_n=(bn=>(bn=$e.store)==null?void 0:bn.states.defaultExpandAll.value)())=>{var bn;const Cn=xe.value,En=Ie.value,$n=Object.keys(Cn),wn={};if($n.length){const Tn=unref(ae),xn=[],kn=(On,Nn)=>{if(vn)return oe.value?_n||oe.value.includes(Nn):!!(_n||On!=null&&On.expanded);{const Rn=_n||oe.value&&oe.value.includes(Nn);return!!(On!=null&&On.expanded||Rn)}};$n.forEach(On=>{const Nn=Tn[On],Rn={...Cn[On]};if(Rn.expanded=kn(Nn,On),Rn.lazy){const{loaded:zn=!1,loading:Bn=!1}=Nn||{};Rn.loaded=!!zn,Rn.loading=!!Bn,xn.push(On)}wn[On]=Rn});const An=Object.keys(En);le.value&&An.length&&xn.length&&An.forEach(On=>{const Nn=Tn[On],Rn=En[On].children;if(xn.includes(On)){if(wn[On].children.length!==0)throw new Error("[ElTable]children must be an empty array.");wn[On].children=Rn}else{const{loaded:zn=!1,loading:Bn=!1}=Nn||{};wn[On]={lazy:!0,loaded:!!zn,loading:!!Bn,expanded:kn(Nn,On),children:Rn,level:""}}})}ae.value=wn,(bn=$e.store)==null||bn.updateTableScrollY()};watch(()=>oe.value,()=>{Fe(!0)}),watch(()=>xe.value,()=>{Fe()}),watch(()=>Ie.value,()=>{Fe()});const ze=vn=>{oe.value=vn,Fe()},At=(vn,_n)=>{$e.store.assertRowKey();const bn=$.rowKey.value,Cn=getRowIdentity(vn,bn),En=Cn&&ae.value[Cn];if(Cn&&En&&"expanded"in En){const $n=En.expanded;_n=typeof _n>"u"?!En.expanded:_n,ae.value[Cn].expanded=_n,$n!==_n&&$e.emit("expand-change",vn,_n),$e.store.updateTableScrollY()}},Lt=vn=>{$e.store.assertRowKey();const _n=$.rowKey.value,bn=getRowIdentity(vn,_n),Cn=ae.value[bn];le.value&&Cn&&"loaded"in Cn&&!Cn.loaded?hn(vn,bn,Cn):At(vn,void 0)},hn=(vn,_n,bn)=>{const{load:Cn}=$e.props;Cn&&!ae.value[_n].loaded&&(ae.value[_n].loading=!0,Cn(vn,bn,En=>{if(!Array.isArray(En))throw new TypeError("[ElTable] data must be an array");ae.value[_n].loading=!1,ae.value[_n].loaded=!0,ae.value[_n].expanded=!0,En.length&&(pe.value[_n]=En),$e.emit("expand-change",vn,!0)}))};return{loadData:hn,loadOrToggle:Lt,toggleTreeExpansion:At,updateTreeExpandKeys:ze,updateTreeData:Fe,normalize:Ne,states:{expandRowKeys:oe,treeData:ae,indent:ie,lazy:le,lazyTreeNodeMap:pe,lazyColumnIdentifier:_e,childrenColumnName:Ce}}}const sortData=($,oe)=>{const ae=oe.sortingColumn;return!ae||typeof ae.sortable=="string"?$:orderBy($,oe.sortProp,oe.sortOrder,ae.sortMethod,ae.sortBy)},doFlattenColumns=$=>{const oe=[];return $.forEach(ae=>{ae.children?oe.push.apply(oe,doFlattenColumns(ae.children)):oe.push(ae)}),oe};function useWatcher$1(){var $;const oe=getCurrentInstance(),{size:ae}=toRefs(($=oe.proxy)==null?void 0:$.$props),ie=ref(null),le=ref([]),pe=ref([]),_e=ref(!1),Ce=ref([]),$e=ref([]),xe=ref([]),Ie=ref([]),Ne=ref([]),Fe=ref([]),ze=ref([]),At=ref([]),Lt=[],hn=ref(0),vn=ref(0),_n=ref(0),bn=ref(!1),Cn=ref([]),En=ref(!1),$n=ref(!1),wn=ref(null),Tn=ref({}),xn=ref(null),kn=ref(null),An=ref(null),On=ref(null),Nn=ref(null);watch(le,()=>oe.state&&Mn(!1),{deep:!0});const Rn=()=>{if(!ie.value)throw new Error("[ElTable] prop row-key is required")},zn=Tr=>{var dr;(dr=Tr.children)==null||dr.forEach(Jn=>{Jn.fixed=Tr.fixed,zn(Jn)})},Bn=()=>{Ce.value.forEach(xr=>{zn(xr)}),Ie.value=Ce.value.filter(xr=>xr.fixed===!0||xr.fixed==="left"),Ne.value=Ce.value.filter(xr=>xr.fixed==="right"),Ie.value.length>0&&Ce.value[0]&&Ce.value[0].type==="selection"&&!Ce.value[0].fixed&&(Ce.value[0].fixed=!0,Ie.value.unshift(Ce.value[0]));const Tr=Ce.value.filter(xr=>!xr.fixed);$e.value=[].concat(Ie.value).concat(Tr).concat(Ne.value);const dr=doFlattenColumns(Tr),Jn=doFlattenColumns(Ie.value),ir=doFlattenColumns(Ne.value);hn.value=dr.length,vn.value=Jn.length,_n.value=ir.length,xe.value=[].concat(Jn).concat(dr).concat(ir),_e.value=Ie.value.length>0||Ne.value.length>0},Mn=(Tr,dr=!1)=>{Tr&&Bn(),dr?oe.state.doLayout():oe.state.debouncedUpdateLayout()},Fn=Tr=>Cn.value.includes(Tr),Vn=()=>{bn.value=!1,Cn.value.length&&(Cn.value=[],oe.emit("selection-change",[]))},jn=()=>{let Tr;if(ie.value){Tr=[];const dr=getKeysMap(Cn.value,ie.value),Jn=getKeysMap(le.value,ie.value);for(const ir in dr)hasOwn$4(dr,ir)&&!Jn[ir]&&Tr.push(dr[ir].row)}else Tr=Cn.value.filter(dr=>!le.value.includes(dr));if(Tr.length){const dr=Cn.value.filter(Jn=>!Tr.includes(Jn));Cn.value=dr,oe.emit("selection-change",dr.slice())}},Zn=()=>(Cn.value||[]).slice(),Gn=(Tr,dr=void 0,Jn=!0)=>{if(toggleRowStatus(Cn.value,Tr,dr)){const xr=(Cn.value||[]).slice();Jn&&oe.emit("select",xr,Tr),oe.emit("selection-change",xr)}},Xn=()=>{var Tr,dr;const Jn=$n.value?!bn.value:!(bn.value||Cn.value.length);bn.value=Jn;let ir=!1,xr=0;const Ir=(dr=(Tr=oe==null?void 0:oe.store)==null?void 0:Tr.states)==null?void 0:dr.rowKey.value;le.value.forEach((Hr,Cr)=>{const Mr=Cr+xr;wn.value?wn.value.call(null,Hr,Mr)&&toggleRowStatus(Cn.value,Hr,Jn)&&(ir=!0):toggleRowStatus(Cn.value,Hr,Jn)&&(ir=!0),xr+=er(getRowIdentity(Hr,Ir))}),ir&&oe.emit("selection-change",Cn.value?Cn.value.slice():[]),oe.emit("select-all",Cn.value)},cr=()=>{const Tr=getKeysMap(Cn.value,ie.value);le.value.forEach(dr=>{const Jn=getRowIdentity(dr,ie.value),ir=Tr[Jn];ir&&(Cn.value[ir.index]=dr)})},nr=()=>{var Tr,dr,Jn;if(((Tr=le.value)==null?void 0:Tr.length)===0){bn.value=!1;return}let ir;ie.value&&(ir=getKeysMap(Cn.value,ie.value));const xr=function(Mr){return ir?!!ir[getRowIdentity(Mr,ie.value)]:Cn.value.includes(Mr)};let Ir=!0,Hr=0,Cr=0;for(let Mr=0,Ur=(le.value||[]).length;Mr{var dr;if(!oe||!oe.store)return 0;const{treeData:Jn}=oe.store.states;let ir=0;const xr=(dr=Jn.value[Tr])==null?void 0:dr.children;return xr&&(ir+=xr.length,xr.forEach(Ir=>{ir+=er(Ir)})),ir},rr=(Tr,dr)=>{Array.isArray(Tr)||(Tr=[Tr]);const Jn={};return Tr.forEach(ir=>{Tn.value[ir.id]=dr,Jn[ir.columnKey||ir.id]=dr}),Jn},qn=(Tr,dr,Jn)=>{kn.value&&kn.value!==Tr&&(kn.value.order=null),kn.value=Tr,An.value=dr,On.value=Jn},Yn=()=>{let Tr=unref(pe);Object.keys(Tn.value).forEach(dr=>{const Jn=Tn.value[dr];if(!Jn||Jn.length===0)return;const ir=getColumnById({columns:xe.value},dr);ir&&ir.filterMethod&&(Tr=Tr.filter(xr=>Jn.some(Ir=>ir.filterMethod.call(null,Ir,xr,ir))))}),xn.value=Tr},ar=()=>{le.value=sortData(xn.value,{sortingColumn:kn.value,sortProp:An.value,sortOrder:On.value})},pr=(Tr=void 0)=>{Tr&&Tr.filter||Yn(),ar()},Un=Tr=>{const{tableHeaderRef:dr}=oe.refs;if(!dr)return;const Jn=Object.assign({},dr.filterPanels),ir=Object.keys(Jn);if(ir.length)if(typeof Tr=="string"&&(Tr=[Tr]),Array.isArray(Tr)){const xr=Tr.map(Ir=>getColumnByKey({columns:xe.value},Ir));ir.forEach(Ir=>{const Hr=xr.find(Cr=>Cr.id===Ir);Hr&&(Hr.filteredValue=[])}),oe.store.commit("filterChange",{column:xr,values:[],silent:!0,multi:!0})}else ir.forEach(xr=>{const Ir=xe.value.find(Hr=>Hr.id===xr);Ir&&(Ir.filteredValue=[])}),Tn.value={},oe.store.commit("filterChange",{column:{},values:[],silent:!0})},tr=()=>{kn.value&&(qn(null,null,null),oe.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ur,toggleRowExpansion:_r,updateExpandRows:Er,states:sr,isRowExpanded:Pr}=useExpand({data:le,rowKey:ie}),{updateTreeExpandKeys:Sr,toggleTreeExpansion:kr,updateTreeData:mr,loadOrToggle:lr,states:hr}=useTree$2({data:le,rowKey:ie}),{updateCurrentRowData:gr,updateCurrentRow:Or,setCurrentRowKey:Lr,states:Vr}=useCurrent({data:le,rowKey:ie});return{assertRowKey:Rn,updateColumns:Bn,scheduleLayout:Mn,isSelected:Fn,clearSelection:Vn,cleanSelection:jn,getSelectionRows:Zn,toggleRowSelection:Gn,_toggleAllSelection:Xn,toggleAllSelection:null,updateSelectionByRowKey:cr,updateAllSelected:nr,updateFilters:rr,updateCurrentRow:Or,updateSort:qn,execFilter:Yn,execSort:ar,execQuery:pr,clearFilter:Un,clearSort:tr,toggleRowExpansion:_r,setExpandRowKeysAdapter:Tr=>{ur(Tr),Sr(Tr)},setCurrentRowKey:Lr,toggleRowExpansionAdapter:(Tr,dr)=>{xe.value.some(({type:ir})=>ir==="expand")?_r(Tr,dr):kr(Tr,dr)},isRowExpanded:Pr,updateExpandRows:Er,updateCurrentRowData:gr,loadOrToggle:lr,updateTreeData:mr,states:{tableSize:ae,rowKey:ie,data:le,_data:pe,isComplex:_e,_columns:Ce,originColumns:$e,columns:xe,fixedColumns:Ie,rightFixedColumns:Ne,leafColumns:Fe,fixedLeafColumns:ze,rightFixedLeafColumns:At,updateOrderFns:Lt,leafColumnsLength:hn,fixedLeafColumnsLength:vn,rightFixedLeafColumnsLength:_n,isAllSelected:bn,selection:Cn,reserveSelection:En,selectOnIndeterminate:$n,selectable:wn,filters:Tn,filteredData:xn,sortingColumn:kn,sortProp:An,sortOrder:On,hoverRow:Nn,...sr,...hr,...Vr}}}function replaceColumn($,oe){return $.map(ae=>{var ie;return ae.id===oe.id?oe:((ie=ae.children)!=null&&ie.length&&(ae.children=replaceColumn(ae.children,oe)),ae)})}function sortColumn($){$.forEach(oe=>{var ae,ie;oe.no=(ae=oe.getColumnIndex)==null?void 0:ae.call(oe),(ie=oe.children)!=null&&ie.length&&sortColumn(oe.children)}),$.sort((oe,ae)=>oe.no-ae.no)}function useStore(){const $=getCurrentInstance(),oe=useWatcher$1();return{ns:useNamespace("table"),...oe,mutations:{setData(_e,Ce){const $e=unref(_e._data)!==Ce;_e.data.value=Ce,_e._data.value=Ce,$.store.execQuery(),$.store.updateCurrentRowData(),$.store.updateExpandRows(),$.store.updateTreeData($.store.states.defaultExpandAll.value),unref(_e.reserveSelection)?($.store.assertRowKey(),$.store.updateSelectionByRowKey()):$e?$.store.clearSelection():$.store.cleanSelection(),$.store.updateAllSelected(),$.$ready&&$.store.scheduleLayout()},insertColumn(_e,Ce,$e,xe){const Ie=unref(_e._columns);let Ne=[];$e?($e&&!$e.children&&($e.children=[]),$e.children.push(Ce),Ne=replaceColumn(Ie,$e)):(Ie.push(Ce),Ne=Ie),sortColumn(Ne),_e._columns.value=Ne,_e.updateOrderFns.push(xe),Ce.type==="selection"&&(_e.selectable.value=Ce.selectable,_e.reserveSelection.value=Ce.reserveSelection),$.$ready&&($.store.updateColumns(),$.store.scheduleLayout())},updateColumnOrder(_e,Ce){var $e;(($e=Ce.getColumnIndex)==null?void 0:$e.call(Ce))!==Ce.no&&(sortColumn(_e._columns.value),$.$ready&&$.store.updateColumns())},removeColumn(_e,Ce,$e,xe){const Ie=unref(_e._columns)||[];if($e)$e.children.splice($e.children.findIndex(Fe=>Fe.id===Ce.id),1),nextTick(()=>{var Fe;((Fe=$e.children)==null?void 0:Fe.length)===0&&delete $e.children}),_e._columns.value=replaceColumn(Ie,$e);else{const Fe=Ie.indexOf(Ce);Fe>-1&&(Ie.splice(Fe,1),_e._columns.value=Ie)}const Ne=_e.updateOrderFns.indexOf(xe);Ne>-1&&_e.updateOrderFns.splice(Ne,1),$.$ready&&($.store.updateColumns(),$.store.scheduleLayout())},sort(_e,Ce){const{prop:$e,order:xe,init:Ie}=Ce;if($e){const Ne=unref(_e.columns).find(Fe=>Fe.property===$e);Ne&&(Ne.order=xe,$.store.updateSort(Ne,$e,xe),$.store.commit("changeSortCondition",{init:Ie}))}},changeSortCondition(_e,Ce){const{sortingColumn:$e,sortProp:xe,sortOrder:Ie}=_e,Ne=unref($e),Fe=unref(xe),ze=unref(Ie);ze===null&&(_e.sortingColumn.value=null,_e.sortProp.value=null);const At={filter:!0};$.store.execQuery(At),(!Ce||!(Ce.silent||Ce.init))&&$.emit("sort-change",{column:Ne,prop:Fe,order:ze}),$.store.updateTableScrollY()},filterChange(_e,Ce){const{column:$e,values:xe,silent:Ie}=Ce,Ne=$.store.updateFilters($e,xe);$.store.execQuery(),Ie||$.emit("filter-change",Ne),$.store.updateTableScrollY()},toggleAllSelection(){$.store.toggleAllSelection()},rowSelectedChanged(_e,Ce){$.store.toggleRowSelection(Ce),$.store.updateAllSelected()},setHoverRow(_e,Ce){_e.hoverRow.value=Ce},setCurrentRow(_e,Ce){$.store.updateCurrentRow(Ce)}},commit:function(_e,...Ce){const $e=$.store.mutations;if($e[_e])$e[_e].apply($,[$.store.states].concat(Ce));else throw new Error(`Action not found: ${_e}`)},updateTableScrollY:function(){nextTick(()=>$.layout.updateScrollY.apply($.layout))}}}const InitialStateMap={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function createStore($,oe){if(!$)throw new Error("Table is required.");const ae=useStore();return ae.toggleAllSelection=debounce(ae._toggleAllSelection,10),Object.keys(InitialStateMap).forEach(ie=>{handleValue(getArrKeysValue(oe,ie),ie,ae)}),proxyTableProps(ae,oe),ae}function proxyTableProps($,oe){Object.keys(InitialStateMap).forEach(ae=>{watch(()=>getArrKeysValue(oe,ae),ie=>{handleValue(ie,ae,$)})})}function handleValue($,oe,ae){let ie=$,le=InitialStateMap[oe];typeof InitialStateMap[oe]=="object"&&(le=le.key,ie=ie||InitialStateMap[oe].default),ae.states[le].value=ie}function getArrKeysValue($,oe){if(oe.includes(".")){const ae=oe.split(".");let ie=$;return ae.forEach(le=>{ie=ie[le]}),ie}else return $[oe]}class TableLayout{constructor(oe){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 ae in oe)hasOwn$4(oe,ae)&&(isRef(this[ae])?this[ae].value=oe[ae]:this[ae]=oe[ae]);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(){if(this.height.value===null)return!1;const ae=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(ae!=null&&ae.wrapRef)){let ie=!0;const le=this.scrollY.value;return ie=ae.wrapRef.scrollHeight>ae.wrapRef.clientHeight,this.scrollY.value=ie,le!==ie}return!1}setHeight(oe,ae="height"){if(!isClient$2)return;const ie=this.table.vnode.el;if(oe=parseHeight(oe),this.height.value=Number(oe),!ie&&(oe||oe===0))return nextTick(()=>this.setHeight(oe,ae));typeof oe=="number"?(ie.style[ae]=`${oe}px`,this.updateElsHeight()):typeof oe=="string"&&(ie.style[ae]=oe,this.updateElsHeight())}setMaxHeight(oe){this.setHeight(oe,"max-height")}getFlattenColumns(){const oe=[];return this.table.store.states.columns.value.forEach(ie=>{ie.isColumnGroup?oe.push.apply(oe,ie.columns):oe.push(ie)}),oe}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(oe){if(!oe)return!0;let ae=oe;for(;ae.tagName!=="DIV";){if(getComputedStyle(ae).display==="none")return!0;ae=ae.parentElement}return!1}updateColumnsWidth(){if(!isClient$2)return;const oe=this.fit,ae=this.table.vnode.el.clientWidth;let ie=0;const le=this.getFlattenColumns(),pe=le.filter($e=>typeof $e.width!="number");if(le.forEach($e=>{typeof $e.width=="number"&&$e.realWidth&&($e.realWidth=null)}),pe.length>0&&oe){if(le.forEach($e=>{ie+=Number($e.width||$e.minWidth||80)}),ie<=ae){this.scrollX.value=!1;const $e=ae-ie;if(pe.length===1)pe[0].realWidth=Number(pe[0].minWidth||80)+$e;else{const xe=pe.reduce((Fe,ze)=>Fe+Number(ze.minWidth||80),0),Ie=$e/xe;let Ne=0;pe.forEach((Fe,ze)=>{if(ze===0)return;const At=Math.floor(Number(Fe.minWidth||80)*Ie);Ne+=At,Fe.realWidth=Number(Fe.minWidth||80)+At}),pe[0].realWidth=Number(pe[0].minWidth||80)+$e-Ne}}else this.scrollX.value=!0,pe.forEach($e=>{$e.realWidth=Number($e.minWidth)});this.bodyWidth.value=Math.max(ie,ae),this.table.state.resizeState.value.width=this.bodyWidth.value}else le.forEach($e=>{!$e.width&&!$e.minWidth?$e.realWidth=80:$e.realWidth=Number($e.width||$e.minWidth),ie+=$e.realWidth}),this.scrollX.value=ie>ae,this.bodyWidth.value=ie;const _e=this.store.states.fixedColumns.value;if(_e.length>0){let $e=0;_e.forEach(xe=>{$e+=Number(xe.realWidth||xe.width)}),this.fixedWidth.value=$e}const Ce=this.store.states.rightFixedColumns.value;if(Ce.length>0){let $e=0;Ce.forEach(xe=>{$e+=Number(xe.realWidth||xe.width)}),this.rightFixedWidth.value=$e}this.notifyObservers("columns")}addObserver(oe){this.observers.push(oe)}removeObserver(oe){const ae=this.observers.indexOf(oe);ae!==-1&&this.observers.splice(ae,1)}notifyObservers(oe){this.observers.forEach(ie=>{var le,pe;switch(oe){case"columns":(le=ie.state)==null||le.onColumnsChange(this);break;case"scrollable":(pe=ie.state)==null||pe.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${oe}.`)}})}}const{CheckboxGroup:ElCheckboxGroup}=ElCheckbox,_sfc_main$t=defineComponent({name:"ElTableFilterPanel",components:{ElCheckbox,ElCheckboxGroup,ElScrollbar,ElTooltip,ElIcon,ArrowDown:arrow_down_default,ArrowUp:arrow_up_default},directives:{ClickOutside},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup($){const oe=getCurrentInstance(),{t:ae}=useLocale(),ie=useNamespace("table-filter"),le=oe==null?void 0:oe.parent;le.filterPanels.value[$.column.id]||(le.filterPanels.value[$.column.id]=oe);const pe=ref(!1),_e=ref(null),Ce=computed(()=>$.column&&$.column.filters),$e=computed({get:()=>{var Cn;return(((Cn=$.column)==null?void 0:Cn.filteredValue)||[])[0]},set:Cn=>{xe.value&&(typeof Cn<"u"&&Cn!==null?xe.value.splice(0,1,Cn):xe.value.splice(0,1))}}),xe=computed({get(){return $.column?$.column.filteredValue||[]:[]},set(Cn){$.column&&$.upDataColumn("filteredValue",Cn)}}),Ie=computed(()=>$.column?$.column.filterMultiple:!0),Ne=Cn=>Cn.value===$e.value,Fe=()=>{pe.value=!1},ze=Cn=>{Cn.stopPropagation(),pe.value=!pe.value},At=()=>{pe.value=!1},Lt=()=>{_n(xe.value),Fe()},hn=()=>{xe.value=[],_n(xe.value),Fe()},vn=Cn=>{$e.value=Cn,_n(typeof Cn<"u"&&Cn!==null?xe.value:[]),Fe()},_n=Cn=>{$.store.commit("filterChange",{column:$.column,values:Cn}),$.store.updateAllSelected()};watch(pe,Cn=>{$.column&&$.upDataColumn("filterOpened",Cn)},{immediate:!0});const bn=computed(()=>{var Cn,En;return(En=(Cn=_e.value)==null?void 0:Cn.popperRef)==null?void 0:En.contentRef});return{tooltipVisible:pe,multiple:Ie,filteredValue:xe,filterValue:$e,filters:Ce,handleConfirm:Lt,handleReset:hn,handleSelect:vn,isActive:Ne,t:ae,ns:ie,showFilterPanel:ze,hideFilterPanel:At,popperPaneRef:bn,tooltip:_e}}}),_hoisted_1$e={key:0},_hoisted_2$9=["disabled"],_hoisted_3$4=["label","onClick"];function _sfc_render$5($,oe,ae,ie,le,pe){const _e=resolveComponent("el-checkbox"),Ce=resolveComponent("el-checkbox-group"),$e=resolveComponent("el-scrollbar"),xe=resolveComponent("arrow-up"),Ie=resolveComponent("arrow-down"),Ne=resolveComponent("el-icon"),Fe=resolveComponent("el-tooltip"),ze=resolveDirective("click-outside");return openBlock(),createBlock(Fe,{ref:"tooltip",visible:$.tooltipVisible,offset:0,placement:$.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":$.ns.b(),persistent:""},{content:withCtx(()=>[$.multiple?(openBlock(),createElementBlock("div",_hoisted_1$e,[createBaseVNode("div",{class:normalizeClass($.ns.e("content"))},[createVNode($e,{"wrap-class":$.ns.e("wrap")},{default:withCtx(()=>[createVNode(Ce,{modelValue:$.filteredValue,"onUpdate:modelValue":oe[0]||(oe[0]=At=>$.filteredValue=At),class:normalizeClass($.ns.e("checkbox-group"))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList($.filters,At=>(openBlock(),createBlock(_e,{key:At.value,label:At.value},{default:withCtx(()=>[createTextVNode(toDisplayString$1(At.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),createBaseVNode("div",{class:normalizeClass($.ns.e("bottom"))},[createBaseVNode("button",{class:normalizeClass({[$.ns.is("disabled")]:$.filteredValue.length===0}),disabled:$.filteredValue.length===0,type:"button",onClick:oe[1]||(oe[1]=(...At)=>$.handleConfirm&&$.handleConfirm(...At))},toDisplayString$1($.t("el.table.confirmFilter")),11,_hoisted_2$9),createBaseVNode("button",{type:"button",onClick:oe[2]||(oe[2]=(...At)=>$.handleReset&&$.handleReset(...At))},toDisplayString$1($.t("el.table.resetFilter")),1)],2)])):(openBlock(),createElementBlock("ul",{key:1,class:normalizeClass($.ns.e("list"))},[createBaseVNode("li",{class:normalizeClass([$.ns.e("list-item"),{[$.ns.is("active")]:$.filterValue===void 0||$.filterValue===null}]),onClick:oe[3]||(oe[3]=At=>$.handleSelect(null))},toDisplayString$1($.t("el.table.clearFilter")),3),(openBlock(!0),createElementBlock(Fragment,null,renderList($.filters,At=>(openBlock(),createElementBlock("li",{key:At.value,class:normalizeClass([$.ns.e("list-item"),$.ns.is("active",$.isActive(At))]),label:At.value,onClick:Lt=>$.handleSelect(At.value)},toDisplayString$1(At.text),11,_hoisted_3$4))),128))],2))]),default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass([`${$.ns.namespace.value}-table__column-filter-trigger`,`${$.ns.namespace.value}-none-outline`]),onClick:oe[4]||(oe[4]=(...At)=>$.showFilterPanel&&$.showFilterPanel(...At))},[createVNode(Ne,null,{default:withCtx(()=>[$.column.filterOpened?(openBlock(),createBlock(xe,{key:0})):(openBlock(),createBlock(Ie,{key:1}))]),_:1})],2)),[[ze,$.hideFilterPanel,$.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var FilterPanel=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$5],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function useLayoutObserver($){const oe=getCurrentInstance();onBeforeMount(()=>{ae.value.addObserver(oe)}),onMounted(()=>{ie(ae.value),le(ae.value)}),onUpdated(()=>{ie(ae.value),le(ae.value)}),onUnmounted(()=>{ae.value.removeObserver(oe)});const ae=computed(()=>{const pe=$.layout;if(!pe)throw new Error("Can not find table layout.");return pe}),ie=pe=>{var _e;const Ce=((_e=$.vnode.el)==null?void 0:_e.querySelectorAll("colgroup > col"))||[];if(!Ce.length)return;const $e=pe.getFlattenColumns(),xe={};$e.forEach(Ie=>{xe[Ie.id]=Ie});for(let Ie=0,Ne=Ce.length;Ie{var _e,Ce;const $e=((_e=$.vnode.el)==null?void 0:_e.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let Ie=0,Ne=$e.length;Ie{Lt.stopPropagation()},pe=(Lt,hn)=>{!hn.filters&&hn.sortable?At(Lt,hn,!1):hn.filterable&&!hn.sortable&&le(Lt),ie==null||ie.emit("header-click",hn,Lt)},_e=(Lt,hn)=>{ie==null||ie.emit("header-contextmenu",hn,Lt)},Ce=ref(null),$e=ref(!1),xe=ref({}),Ie=(Lt,hn)=>{if(isClient$2&&!(hn.children&&hn.children.length>0)&&Ce.value&&$.border){$e.value=!0;const vn=ie;oe("set-drag-visible",!0);const bn=(vn==null?void 0:vn.vnode.el).getBoundingClientRect().left,Cn=ae.vnode.el.querySelector(`th.${hn.id}`),En=Cn.getBoundingClientRect(),$n=En.left-bn+30;addClass(Cn,"noclick"),xe.value={startMouseLeft:Lt.clientX,startLeft:En.right-bn,startColumnLeft:En.left-bn,tableLeft:bn};const wn=vn==null?void 0:vn.refs.resizeProxy;wn.style.left=`${xe.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const Tn=kn=>{const An=kn.clientX-xe.value.startMouseLeft,On=xe.value.startLeft+An;wn.style.left=`${Math.max($n,On)}px`},xn=()=>{if($e.value){const{startColumnLeft:kn,startLeft:An}=xe.value,Nn=Number.parseInt(wn.style.left,10)-kn;hn.width=hn.realWidth=Nn,vn==null||vn.emit("header-dragend",hn.width,An-kn,hn,Lt),requestAnimationFrame(()=>{$.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",$e.value=!1,Ce.value=null,xe.value={},oe("set-drag-visible",!1)}document.removeEventListener("mousemove",Tn),document.removeEventListener("mouseup",xn),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{removeClass(Cn,"noclick")},0)};document.addEventListener("mousemove",Tn),document.addEventListener("mouseup",xn)}},Ne=(Lt,hn)=>{var vn;if(hn.children&&hn.children.length>0)return;const _n=(vn=Lt.target)==null?void 0:vn.closest("th");if(!(!hn||!hn.resizable)&&!$e.value&&$.border){const bn=_n.getBoundingClientRect(),Cn=document.body.style;bn.width>12&&bn.right-Lt.pageX<8?(Cn.cursor="col-resize",hasClass(_n,"is-sortable")&&(_n.style.cursor="col-resize"),Ce.value=hn):$e.value||(Cn.cursor="",hasClass(_n,"is-sortable")&&(_n.style.cursor="pointer"),Ce.value=null)}},Fe=()=>{isClient$2&&(document.body.style.cursor="")},ze=({order:Lt,sortOrders:hn})=>{if(Lt==="")return hn[0];const vn=hn.indexOf(Lt||null);return hn[vn>hn.length-2?0:vn+1]},At=(Lt,hn,vn)=>{var _n;Lt.stopPropagation();const bn=hn.order===vn?null:vn||ze(hn),Cn=(_n=Lt.target)==null?void 0:_n.closest("th");if(Cn&&hasClass(Cn,"noclick")){removeClass(Cn,"noclick");return}if(!hn.sortable)return;const En=$.store.states;let $n=En.sortProp.value,wn;const Tn=En.sortingColumn.value;(Tn!==hn||Tn===hn&&Tn.order===null)&&(Tn&&(Tn.order=null),En.sortingColumn.value=hn,$n=hn.property),bn?wn=hn.order=bn:wn=hn.order=null,En.sortProp.value=$n,En.sortOrder.value=wn,ie==null||ie.store.commit("changeSortCondition")};return{handleHeaderClick:pe,handleHeaderContextMenu:_e,handleMouseDown:Ie,handleMouseMove:Ne,handleMouseOut:Fe,handleSortClick:At,handleFilterClick:le}}function useStyle$2($){const oe=inject(TABLE_INJECTION_KEY),ae=useNamespace("table");return{getHeaderRowStyle:Ce=>{const $e=oe==null?void 0:oe.props.headerRowStyle;return typeof $e=="function"?$e.call(null,{rowIndex:Ce}):$e},getHeaderRowClass:Ce=>{const $e=[],xe=oe==null?void 0:oe.props.headerRowClassName;return typeof xe=="string"?$e.push(xe):typeof xe=="function"&&$e.push(xe.call(null,{rowIndex:Ce})),$e.join(" ")},getHeaderCellStyle:(Ce,$e,xe,Ie)=>{var Ne;let Fe=(Ne=oe==null?void 0:oe.props.headerCellStyle)!=null?Ne:{};typeof Fe=="function"&&(Fe=Fe.call(null,{rowIndex:Ce,columnIndex:$e,row:xe,column:Ie}));const ze=getFixedColumnOffset($e,Ie.fixed,$.store,xe);return ensurePosition(ze,"left"),ensurePosition(ze,"right"),Object.assign({},Fe,ze)},getHeaderCellClass:(Ce,$e,xe,Ie)=>{const Ne=getFixedColumnsClass(ae.b(),$e,Ie.fixed,$.store,xe),Fe=[Ie.id,Ie.order,Ie.headerAlign,Ie.className,Ie.labelClassName,...Ne];Ie.children||Fe.push("is-leaf"),Ie.sortable&&Fe.push("is-sortable");const ze=oe==null?void 0:oe.props.headerCellClassName;return typeof ze=="string"?Fe.push(ze):typeof ze=="function"&&Fe.push(ze.call(null,{rowIndex:Ce,columnIndex:$e,row:xe,column:Ie})),Fe.push(ae.e("cell")),Fe.filter(At=>!!At).join(" ")}}}const getAllColumns=$=>{const oe=[];return $.forEach(ae=>{ae.children?(oe.push(ae),oe.push.apply(oe,getAllColumns(ae.children))):oe.push(ae)}),oe},convertToRows=$=>{let oe=1;const ae=(pe,_e)=>{if(_e&&(pe.level=_e.level+1,oe{ae($e,pe),Ce+=$e.colSpan}),pe.colSpan=Ce}else pe.colSpan=1};$.forEach(pe=>{pe.level=1,ae(pe,void 0)});const ie=[];for(let pe=0;pe{pe.children?(pe.rowSpan=1,pe.children.forEach(_e=>_e.isSubColumn=!0)):pe.rowSpan=oe-pe.level+1,ie[pe.level-1].push(pe)}),ie};function useUtils$1($){const oe=inject(TABLE_INJECTION_KEY),ae=computed(()=>convertToRows($.store.states.originColumns.value));return{isGroup:computed(()=>{const pe=ae.value.length>1;return pe&&oe&&(oe.state.isGroup.value=!0),pe}),toggleAllSelection:pe=>{pe.stopPropagation(),oe==null||oe.store.commit("toggleAllSelection")},columnRows:ae}}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:""})}},setup($,{emit:oe}){const ae=getCurrentInstance(),ie=inject(TABLE_INJECTION_KEY),le=useNamespace("table"),pe=ref({}),{onColumnsChange:_e,onScrollableChange:Ce}=useLayoutObserver(ie);onMounted(async()=>{await nextTick(),await nextTick();const{prop:$n,order:wn}=$.defaultSort;ie==null||ie.store.commit("sort",{prop:$n,order:wn,init:!0})});const{handleHeaderClick:$e,handleHeaderContextMenu:xe,handleMouseDown:Ie,handleMouseMove:Ne,handleMouseOut:Fe,handleSortClick:ze,handleFilterClick:At}=useEvent($,oe),{getHeaderRowStyle:Lt,getHeaderRowClass:hn,getHeaderCellStyle:vn,getHeaderCellClass:_n}=useStyle$2($),{isGroup:bn,toggleAllSelection:Cn,columnRows:En}=useUtils$1($);return ae.state={onColumnsChange:_e,onScrollableChange:Ce},ae.filterPanels=pe,{ns:le,filterPanels:pe,onColumnsChange:_e,onScrollableChange:Ce,columnRows:En,getHeaderRowClass:hn,getHeaderRowStyle:Lt,getHeaderCellClass:_n,getHeaderCellStyle:vn,handleHeaderClick:$e,handleHeaderContextMenu:xe,handleMouseDown:Ie,handleMouseMove:Ne,handleMouseOut:Fe,handleSortClick:ze,handleFilterClick:At,isGroup:bn,toggleAllSelection:Cn}},render(){const{ns:$,isGroup:oe,columnRows:ae,getHeaderCellStyle:ie,getHeaderCellClass:le,getHeaderRowClass:pe,getHeaderRowStyle:_e,handleHeaderClick:Ce,handleHeaderContextMenu:$e,handleMouseDown:xe,handleMouseMove:Ie,handleSortClick:Ne,handleMouseOut:Fe,store:ze,$parent:At}=this;let Lt=1;return h$3("thead",{class:{[$.is("group")]:oe}},ae.map((hn,vn)=>h$3("tr",{class:pe(vn),key:vn,style:_e(vn)},hn.map((_n,bn)=>(_n.rowSpan>Lt&&(Lt=_n.rowSpan),h$3("th",{class:le(vn,bn,hn,_n),colspan:_n.colSpan,key:`${_n.id}-thead`,rowspan:_n.rowSpan,style:ie(vn,bn,hn,_n),onClick:Cn=>Ce(Cn,_n),onContextmenu:Cn=>$e(Cn,_n),onMousedown:Cn=>xe(Cn,_n),onMousemove:Cn=>Ie(Cn,_n),onMouseout:Fe},[h$3("div",{class:["cell",_n.filteredValue&&_n.filteredValue.length>0?"highlight":""]},[_n.renderHeader?_n.renderHeader({column:_n,$index:bn,store:ze,_self:At}):_n.label,_n.sortable&&h$3("span",{onClick:Cn=>Ne(Cn,_n),class:"caret-wrapper"},[h$3("i",{onClick:Cn=>Ne(Cn,_n,"ascending"),class:"sort-caret ascending"}),h$3("i",{onClick:Cn=>Ne(Cn,_n,"descending"),class:"sort-caret descending"})]),_n.filterable&&h$3(FilterPanel,{store:ze,placement:_n.filterPlacement||"bottom-start",column:_n,upDataColumn:(Cn,En)=>{_n[Cn]=En}})])]))))))}});function useEvents($){const oe=inject(TABLE_INJECTION_KEY),ae=ref(""),ie=ref(h$3("div")),{nextZIndex:le}=useZIndex(),pe=(ze,At,Lt)=>{var hn;const vn=oe,_n=getCell(ze);let bn;const Cn=(hn=vn==null?void 0:vn.vnode.el)==null?void 0:hn.dataset.prefix;_n&&(bn=getColumnByCell({columns:$.store.states.columns.value},_n,Cn),bn&&(vn==null||vn.emit(`cell-${Lt}`,At,bn,_n,ze))),vn==null||vn.emit(`row-${Lt}`,At,bn,ze)},_e=(ze,At)=>{pe(ze,At,"dblclick")},Ce=(ze,At)=>{$.store.commit("setCurrentRow",At),pe(ze,At,"click")},$e=(ze,At)=>{pe(ze,At,"contextmenu")},xe=debounce(ze=>{$.store.commit("setHoverRow",ze)},30),Ie=debounce(()=>{$.store.commit("setHoverRow",null)},30);return{handleDoubleClick:_e,handleClick:Ce,handleContextMenu:$e,handleMouseEnter:xe,handleMouseLeave:Ie,handleCellMouseEnter:(ze,At,Lt)=>{var hn;const vn=oe,_n=getCell(ze),bn=(hn=vn==null?void 0:vn.vnode.el)==null?void 0:hn.dataset.prefix;if(_n){const Tn=getColumnByCell({columns:$.store.states.columns.value},_n,bn),xn=vn.hoverState={cell:_n,column:Tn,row:At};vn==null||vn.emit("cell-mouse-enter",xn.row,xn.column,xn.cell,ze)}if(!Lt)return;const Cn=ze.target.querySelector(".cell");if(!(hasClass(Cn,`${bn}-tooltip`)&&Cn.childNodes.length))return;const En=document.createRange();En.setStart(Cn,0),En.setEnd(Cn,Cn.childNodes.length);const $n=Math.round(En.getBoundingClientRect().width),wn=(Number.parseInt(getStyle$1(Cn,"paddingLeft"),10)||0)+(Number.parseInt(getStyle$1(Cn,"paddingRight"),10)||0);($n+wn>Cn.offsetWidth||Cn.scrollWidth>Cn.offsetWidth)&&createTablePopper(oe==null?void 0:oe.refs.tableWrapper,_n,_n.innerText||_n.textContent,le,Lt)},handleCellMouseLeave:ze=>{if(!getCell(ze))return;const Lt=oe==null?void 0:oe.hoverState;oe==null||oe.emit("cell-mouse-leave",Lt==null?void 0:Lt.row,Lt==null?void 0:Lt.column,Lt==null?void 0:Lt.cell,ze)},tooltipContent:ae,tooltipTrigger:ie}}function useStyles$1($){const oe=inject(TABLE_INJECTION_KEY),ae=useNamespace("table");return{getRowStyle:(xe,Ie)=>{const Ne=oe==null?void 0:oe.props.rowStyle;return typeof Ne=="function"?Ne.call(null,{row:xe,rowIndex:Ie}):Ne||null},getRowClass:(xe,Ie)=>{const Ne=[ae.e("row")];oe!=null&&oe.props.highlightCurrentRow&&xe===$.store.states.currentRow.value&&Ne.push("current-row"),$.stripe&&Ie%2===1&&Ne.push(ae.em("row","striped"));const Fe=oe==null?void 0:oe.props.rowClassName;return typeof Fe=="string"?Ne.push(Fe):typeof Fe=="function"&&Ne.push(Fe.call(null,{row:xe,rowIndex:Ie})),Ne},getCellStyle:(xe,Ie,Ne,Fe)=>{const ze=oe==null?void 0:oe.props.cellStyle;let At=ze??{};typeof ze=="function"&&(At=ze.call(null,{rowIndex:xe,columnIndex:Ie,row:Ne,column:Fe}));const Lt=getFixedColumnOffset(Ie,$==null?void 0:$.fixed,$.store);return ensurePosition(Lt,"left"),ensurePosition(Lt,"right"),Object.assign({},At,Lt)},getCellClass:(xe,Ie,Ne,Fe,ze)=>{const At=getFixedColumnsClass(ae.b(),Ie,$==null?void 0:$.fixed,$.store,void 0,ze),Lt=[Fe.id,Fe.align,Fe.className,...At],hn=oe==null?void 0:oe.props.cellClassName;return typeof hn=="string"?Lt.push(hn):typeof hn=="function"&&Lt.push(hn.call(null,{rowIndex:xe,columnIndex:Ie,row:Ne,column:Fe})),Lt.push(ae.e("cell")),Lt.filter(vn=>!!vn).join(" ")},getSpan:(xe,Ie,Ne,Fe)=>{let ze=1,At=1;const Lt=oe==null?void 0:oe.props.spanMethod;if(typeof Lt=="function"){const hn=Lt({row:xe,column:Ie,rowIndex:Ne,columnIndex:Fe});Array.isArray(hn)?(ze=hn[0],At=hn[1]):typeof hn=="object"&&(ze=hn.rowspan,At=hn.colspan)}return{rowspan:ze,colspan:At}},getColspanRealWidth:(xe,Ie,Ne)=>{if(Ie<1)return xe[Ne].realWidth;const Fe=xe.map(({realWidth:ze,width:At})=>ze||At).slice(Ne,Ne+Ie);return Number(Fe.reduce((ze,At)=>Number(ze)+Number(At),-1))}}}function useRender$1($){const oe=inject(TABLE_INJECTION_KEY),ae=useNamespace("table"),{handleDoubleClick:ie,handleClick:le,handleContextMenu:pe,handleMouseEnter:_e,handleMouseLeave:Ce,handleCellMouseEnter:$e,handleCellMouseLeave:xe,tooltipContent:Ie,tooltipTrigger:Ne}=useEvents($),{getRowStyle:Fe,getRowClass:ze,getCellStyle:At,getCellClass:Lt,getSpan:hn,getColspanRealWidth:vn}=useStyles$1($),_n=computed(()=>$.store.states.columns.value.findIndex(({type:wn})=>wn==="default")),bn=(wn,Tn)=>{const xn=oe.props.rowKey;return xn?getRowIdentity(wn,xn):Tn},Cn=(wn,Tn,xn,kn=!1)=>{const{tooltipEffect:An,tooltipOptions:On,store:Nn}=$,{indent:Rn,columns:zn}=Nn.states,Bn=ze(wn,Tn);let Mn=!0;return xn&&(Bn.push(ae.em("row",`level-${xn.level}`)),Mn=xn.display),h$3("tr",{style:[Mn?null:{display:"none"},Fe(wn,Tn)],class:Bn,key:bn(wn,Tn),onDblclick:Vn=>ie(Vn,wn),onClick:Vn=>le(Vn,wn),onContextmenu:Vn=>pe(Vn,wn),onMouseenter:()=>_e(Tn),onMouseleave:Ce},zn.value.map((Vn,jn)=>{const{rowspan:Zn,colspan:Gn}=hn(wn,Vn,Tn,jn);if(!Zn||!Gn)return null;const Xn={...Vn};Xn.realWidth=vn(zn.value,Gn,jn);const cr={store:$.store,_self:$.context||oe,column:Xn,row:wn,$index:Tn,cellIndex:jn,expanded:kn};jn===_n.value&&xn&&(cr.treeNode={indent:xn.level*Rn.value,level:xn.level},typeof xn.expanded=="boolean"&&(cr.treeNode.expanded=xn.expanded,"loading"in xn&&(cr.treeNode.loading=xn.loading),"noLazyChildren"in xn&&(cr.treeNode.noLazyChildren=xn.noLazyChildren)));const nr=`${Tn},${jn}`,er=Xn.columnKey||Xn.rawColumnKey||"",rr=En(jn,Vn,cr),qn=Vn.showOverflowTooltip&&merge$4({effect:An},On,Vn.showOverflowTooltip);return h$3("td",{style:At(Tn,jn,wn,Vn),class:Lt(Tn,jn,wn,Vn,Gn-1),key:`${er}${nr}`,rowspan:Zn,colspan:Gn,onMouseenter:Yn=>$e(Yn,wn,qn),onMouseleave:xe},[rr])}))},En=(wn,Tn,xn)=>Tn.renderCell(xn);return{wrappedRowRender:(wn,Tn)=>{const xn=$.store,{isRowExpanded:kn,assertRowKey:An}=xn,{treeData:On,lazyTreeNodeMap:Nn,childrenColumnName:Rn,rowKey:zn}=xn.states,Bn=xn.states.columns.value;if(Bn.some(({type:Fn})=>Fn==="expand")){const Fn=kn(wn),Vn=Cn(wn,Tn,void 0,Fn),jn=oe.renderExpanded;return Fn?jn?[[Vn,h$3("tr",{key:`expanded-row__${Vn.key}`},[h$3("td",{colspan:Bn.length,class:`${ae.e("cell")} ${ae.e("expanded-cell")}`},[jn({row:wn,$index:Tn,store:xn,expanded:Fn})])])]]:(console.error("[Element Error]renderExpanded is required."),Vn):[[Vn]]}else if(Object.keys(On.value).length){An();const Fn=getRowIdentity(wn,zn.value);let Vn=On.value[Fn],jn=null;Vn&&(jn={expanded:Vn.expanded,level:Vn.level,display:!0},typeof Vn.lazy=="boolean"&&(typeof Vn.loaded=="boolean"&&Vn.loaded&&(jn.noLazyChildren=!(Vn.children&&Vn.children.length)),jn.loading=Vn.loading));const Zn=[Cn(wn,Tn,jn)];if(Vn){let Gn=0;const Xn=(nr,er)=>{nr&&nr.length&&er&&nr.forEach(rr=>{const qn={display:er.display&&er.expanded,level:er.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Yn=getRowIdentity(rr,zn.value);if(Yn==null)throw new Error("For nested data item, row-key is required.");if(Vn={...On.value[Yn]},Vn&&(qn.expanded=Vn.expanded,Vn.level=Vn.level||qn.level,Vn.display=!!(Vn.expanded&&qn.display),typeof Vn.lazy=="boolean"&&(typeof Vn.loaded=="boolean"&&Vn.loaded&&(qn.noLazyChildren=!(Vn.children&&Vn.children.length)),qn.loading=Vn.loading)),Gn++,Zn.push(Cn(rr,Tn+Gn,qn)),Vn){const ar=Nn.value[Yn]||rr[Rn.value];Xn(ar,Vn)}})};Vn.display=!0;const cr=Nn.value[Fn]||wn[Rn.value];Xn(cr,Vn)}return Zn}else return Cn(wn,Tn,void 0)},tooltipContent:Ie,tooltipTrigger:Ne}}const defaultProps$2={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$2,setup($){const oe=getCurrentInstance(),ae=inject(TABLE_INJECTION_KEY),ie=useNamespace("table"),{wrappedRowRender:le,tooltipContent:pe,tooltipTrigger:_e}=useRender$1($),{onColumnsChange:Ce,onScrollableChange:$e}=useLayoutObserver(ae);return watch($.store.states.hoverRow,(xe,Ie)=>{if(!$.store.states.isComplex.value||!isClient$2)return;let Ne=window.requestAnimationFrame;Ne||(Ne=Fe=>window.setTimeout(Fe,16)),Ne(()=>{const Fe=oe==null?void 0:oe.vnode.el,ze=Array.from((Fe==null?void 0:Fe.children)||[]).filter(hn=>hn==null?void 0:hn.classList.contains(`${ie.e("row")}`)),At=ze[Ie],Lt=ze[xe];At&&removeClass(At,"hover-row"),Lt&&addClass(Lt,"hover-row")})}),onUnmounted(()=>{var xe;(xe=removePopper)==null||xe()}),{ns:ie,onColumnsChange:Ce,onScrollableChange:$e,wrappedRowRender:le,tooltipContent:pe,tooltipTrigger:_e}},render(){const{wrappedRowRender:$,store:oe}=this,ae=oe.states.data.value||[];return h$3("tbody",{},[ae.reduce((ie,le)=>ie.concat($(le,ie.length)),[])])}});function hColgroup($){const oe=$.tableLayout==="auto";let ae=$.columns||[];oe&&ae.every(le=>le.width===void 0)&&(ae=[]);const ie=le=>{const pe={key:`${$.tableLayout}_${le.id}`,style:{},name:void 0};return oe?pe.style={width:`${le.width}px`}:pe.name=le.id,pe};return h$3("colgroup",{},ae.map(le=>h$3("col",ie(le))))}hColgroup.props=["columns","tableLayout"];function useMapState(){const $=inject(TABLE_INJECTION_KEY),oe=$==null?void 0:$.store,ae=computed(()=>oe.states.fixedLeafColumnsLength.value),ie=computed(()=>oe.states.rightFixedColumns.value.length),le=computed(()=>oe.states.columns.value.length),pe=computed(()=>oe.states.fixedColumns.value.length),_e=computed(()=>oe.states.rightFixedColumns.value.length);return{leftFixedLeafCount:ae,rightFixedLeafCount:ie,columnsCount:le,leftFixedCount:pe,rightFixedCount:_e,columns:oe.states.columns}}function useStyle$1($){const{columns:oe}=useMapState(),ae=useNamespace("table");return{getCellClasses:(pe,_e)=>{const Ce=pe[_e],$e=[ae.e("cell"),Ce.id,Ce.align,Ce.labelClassName,...getFixedColumnsClass(ae.b(),_e,Ce.fixed,$.store)];return Ce.className&&$e.push(Ce.className),Ce.children||$e.push(ae.is("leaf")),$e},getCellStyles:(pe,_e)=>{const Ce=getFixedColumnOffset(_e,pe.fixed,$.store);return ensurePosition(Ce,"left"),ensurePosition(Ce,"right"),Ce},columns:oe}}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($){const{getCellClasses:oe,getCellStyles:ae,columns:ie}=useStyle$1($);return{ns:useNamespace("table"),getCellClasses:oe,getCellStyles:ae,columns:ie}},render(){const{columns:$,getCellStyles:oe,getCellClasses:ae,summaryMethod:ie,sumText:le,ns:pe}=this,_e=this.store.states.data.value;let Ce=[];return ie?Ce=ie({columns:$,data:_e}):$.forEach(($e,xe)=>{if(xe===0){Ce[xe]=le;return}const Ie=_e.map(At=>Number(At[$e.property])),Ne=[];let Fe=!0;Ie.forEach(At=>{if(!Number.isNaN(+At)){Fe=!1;const Lt=`${At}`.split(".")[1];Ne.push(Lt?Lt.length:0)}});const ze=Math.max.apply(null,Ne);Fe?Ce[xe]="":Ce[xe]=Ie.reduce((At,Lt)=>{const hn=Number(Lt);return Number.isNaN(+hn)?At:Number.parseFloat((At+Lt).toFixed(Math.min(ze,20)))},0)}),h$3("table",{class:pe.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[hColgroup({columns:$}),h$3("tbody",[h$3("tr",{},[...$.map(($e,xe)=>h$3("td",{key:xe,colspan:$e.colSpan,rowspan:$e.rowSpan,class:ae($,xe),style:oe($e,xe)},[h$3("div",{class:["cell",$e.labelClassName]},[Ce[xe]])]))])])])}});function useUtils($){return{setCurrentRow:Ie=>{$.commit("setCurrentRow",Ie)},getSelectionRows:()=>$.getSelectionRows(),toggleRowSelection:(Ie,Ne)=>{$.toggleRowSelection(Ie,Ne,!1),$.updateAllSelected()},clearSelection:()=>{$.clearSelection()},clearFilter:Ie=>{$.clearFilter(Ie)},toggleAllSelection:()=>{$.commit("toggleAllSelection")},toggleRowExpansion:(Ie,Ne)=>{$.toggleRowExpansionAdapter(Ie,Ne)},clearSort:()=>{$.clearSort()},sort:(Ie,Ne)=>{$.commit("sort",{prop:Ie,order:Ne})}}}function useStyle($,oe,ae,ie){const le=ref(!1),pe=ref(null),_e=ref(!1),Ce=Fn=>{_e.value=Fn},$e=ref({width:null,height:null,headerHeight:null}),xe=ref(!1),Ie={display:"inline-block",verticalAlign:"middle"},Ne=ref(),Fe=ref(0),ze=ref(0),At=ref(0),Lt=ref(0);watchEffect(()=>{oe.setHeight($.height)}),watchEffect(()=>{oe.setMaxHeight($.maxHeight)}),watch(()=>[$.currentRowKey,ae.states.rowKey],([Fn,Vn])=>{!unref(Vn)||!unref(Fn)||ae.setCurrentRowKey(`${Fn}`)},{immediate:!0}),watch(()=>$.data,Fn=>{ie.store.commit("setData",Fn)},{immediate:!0,deep:!0}),watchEffect(()=>{$.expandRowKeys&&ae.setExpandRowKeysAdapter($.expandRowKeys)});const hn=()=>{ie.store.commit("setHoverRow",null),ie.hoverState&&(ie.hoverState=null)},vn=(Fn,Vn)=>{const{pixelX:jn,pixelY:Zn}=Vn;Math.abs(jn)>=Math.abs(Zn)&&(ie.refs.bodyWrapper.scrollLeft+=Vn.pixelX/5)},_n=computed(()=>$.height||$.maxHeight||ae.states.fixedColumns.value.length>0||ae.states.rightFixedColumns.value.length>0),bn=computed(()=>({width:oe.bodyWidth.value?`${oe.bodyWidth.value}px`:""})),Cn=()=>{_n.value&&oe.updateElsHeight(),oe.updateColumnsWidth(),requestAnimationFrame(Tn)};onMounted(async()=>{await nextTick(),ae.updateColumns(),xn(),requestAnimationFrame(Cn);const Fn=ie.vnode.el,Vn=ie.refs.headerWrapper;$.flexible&&Fn&&Fn.parentElement&&(Fn.parentElement.style.minWidth="0"),$e.value={width:Ne.value=Fn.offsetWidth,height:Fn.offsetHeight,headerHeight:$.showHeader&&Vn?Vn.offsetHeight:null},ae.states.columns.value.forEach(jn=>{jn.filteredValue&&jn.filteredValue.length&&ie.store.commit("filterChange",{column:jn,values:jn.filteredValue,silent:!0})}),ie.$ready=!0});const En=(Fn,Vn)=>{if(!Fn)return;const jn=Array.from(Fn.classList).filter(Zn=>!Zn.startsWith("is-scrolling-"));jn.push(oe.scrollX.value?Vn:"is-scrolling-none"),Fn.className=jn.join(" ")},$n=Fn=>{const{tableWrapper:Vn}=ie.refs;En(Vn,Fn)},wn=Fn=>{const{tableWrapper:Vn}=ie.refs;return!!(Vn&&Vn.classList.contains(Fn))},Tn=function(){if(!ie.refs.scrollBarRef)return;if(!oe.scrollX.value){const nr="is-scrolling-none";wn(nr)||$n(nr);return}const Fn=ie.refs.scrollBarRef.wrapRef;if(!Fn)return;const{scrollLeft:Vn,offsetWidth:jn,scrollWidth:Zn}=Fn,{headerWrapper:Gn,footerWrapper:Xn}=ie.refs;Gn&&(Gn.scrollLeft=Vn),Xn&&(Xn.scrollLeft=Vn);const cr=Zn-jn-1;Vn>=cr?$n("is-scrolling-right"):$n(Vn===0?"is-scrolling-left":"is-scrolling-middle")},xn=()=>{ie.refs.scrollBarRef&&(ie.refs.scrollBarRef.wrapRef&&useEventListener$1(ie.refs.scrollBarRef.wrapRef,"scroll",Tn,{passive:!0}),$.fit?useResizeObserver(ie.vnode.el,kn):useEventListener$1(window,"resize",kn),useResizeObserver(ie.refs.bodyWrapper,()=>{var Fn,Vn;kn(),(Vn=(Fn=ie.refs)==null?void 0:Fn.scrollBarRef)==null||Vn.update()}))},kn=()=>{var Fn,Vn,jn;const Zn=ie.vnode.el;if(!ie.$ready||!Zn)return;let Gn=!1;const{width:Xn,height:cr,headerHeight:nr}=$e.value,er=Ne.value=Zn.offsetWidth;Xn!==er&&(Gn=!0);const rr=Zn.offsetHeight;($.height||_n.value)&&cr!==rr&&(Gn=!0);const qn=$.tableLayout==="fixed"?ie.refs.headerWrapper:(Fn=ie.refs.tableHeaderRef)==null?void 0:Fn.$el;$.showHeader&&(qn==null?void 0:qn.offsetHeight)!==nr&&(Gn=!0),Fe.value=((Vn=ie.refs.tableWrapper)==null?void 0:Vn.scrollHeight)||0,At.value=(qn==null?void 0:qn.scrollHeight)||0,Lt.value=((jn=ie.refs.footerWrapper)==null?void 0:jn.offsetHeight)||0,ze.value=Fe.value-At.value-Lt.value,Gn&&($e.value={width:er,height:rr,headerHeight:$.showHeader&&(qn==null?void 0:qn.offsetHeight)||0},Cn())},An=useFormSize(),On=computed(()=>{const{bodyWidth:Fn,scrollY:Vn,gutterWidth:jn}=oe;return Fn.value?`${Fn.value-(Vn.value?jn:0)}px`:""}),Nn=computed(()=>$.maxHeight?"fixed":$.tableLayout),Rn=computed(()=>{if($.data&&$.data.length)return null;let Fn="100%";$.height&&ze.value&&(Fn=`${ze.value}px`);const Vn=Ne.value;return{width:Vn?`${Vn}px`:"",height:Fn}}),zn=computed(()=>$.height?{height:Number.isNaN(Number($.height))?$.height:`${$.height}px`}:$.maxHeight?{maxHeight:Number.isNaN(Number($.maxHeight))?$.maxHeight:`${$.maxHeight}px`}:{}),Bn=computed(()=>{if($.height)return{height:"100%"};if($.maxHeight){if(Number.isNaN(Number($.maxHeight)))return{maxHeight:`calc(${$.maxHeight} - ${At.value+Lt.value}px)`};{const Fn=$.maxHeight;if(Fe.value>=Number(Fn))return{maxHeight:`${Fe.value-At.value-Lt.value}px`}}}return{}});return{isHidden:le,renderExpanded:pe,setDragVisible:Ce,isGroup:xe,handleMouseLeave:hn,handleHeaderFooterMousewheel:vn,tableSize:An,emptyBlockStyle:Rn,handleFixedMousewheel:(Fn,Vn)=>{const jn=ie.refs.bodyWrapper;if(Math.abs(Vn.spinY)>0){const Zn=jn.scrollTop;Vn.pixelY<0&&Zn!==0&&Fn.preventDefault(),Vn.pixelY>0&&jn.scrollHeight-jn.clientHeight>Zn&&Fn.preventDefault(),jn.scrollTop+=Math.ceil(Vn.pixelY/5)}else jn.scrollLeft+=Math.ceil(Vn.pixelX/5)},resizeProxyVisible:_e,bodyWidth:On,resizeState:$e,doLayout:Cn,tableBodyStyles:bn,tableLayout:Nn,scrollbarViewStyle:Ie,tableInnerStyle:zn,scrollbarStyle:Bn}}function useKeyRender($){const oe=ref(),ae=()=>{const le=$.vnode.el.querySelector(".hidden-columns"),pe={childList:!0,subtree:!0},_e=$.store.states.updateOrderFns;oe.value=new MutationObserver(()=>{_e.forEach(Ce=>Ce())}),oe.value.observe(le,pe)};onMounted(()=>{ae()}),onUnmounted(()=>{var ie;(ie=oe.value)==null||ie.disconnect()})}var defaultProps$1={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"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const useScrollbar$1=()=>{const $=ref(),oe=(pe,_e)=>{const Ce=$.value;Ce&&Ce.scrollTo(pe,_e)},ae=(pe,_e)=>{const Ce=$.value;Ce&&isNumber$5(_e)&&["Top","Left"].includes(pe)&&Ce[`setScroll${pe}`](_e)};return{scrollBarRef:$,scrollTo:oe,setScrollTop:pe=>ae("Top",pe),setScrollLeft:pe=>ae("Left",pe)}};let tableIdSeed=1;const _sfc_main$s=defineComponent({name:"ElTable",directives:{Mousewheel},components:{TableHeader,TableBody,TableFooter,ElScrollbar,hColgroup},props:defaultProps$1,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"],setup($){const{t:oe}=useLocale(),ae=useNamespace("table"),ie=getCurrentInstance();provide(TABLE_INJECTION_KEY,ie);const le=createStore(ie,$);ie.store=le;const pe=new TableLayout({store:ie.store,table:ie,fit:$.fit,showHeader:$.showHeader});ie.layout=pe;const _e=computed(()=>(le.states.data.value||[]).length===0),{setCurrentRow:Ce,getSelectionRows:$e,toggleRowSelection:xe,clearSelection:Ie,clearFilter:Ne,toggleAllSelection:Fe,toggleRowExpansion:ze,clearSort:At,sort:Lt}=useUtils(le),{isHidden:hn,renderExpanded:vn,setDragVisible:_n,isGroup:bn,handleMouseLeave:Cn,handleHeaderFooterMousewheel:En,tableSize:$n,emptyBlockStyle:wn,handleFixedMousewheel:Tn,resizeProxyVisible:xn,bodyWidth:kn,resizeState:An,doLayout:On,tableBodyStyles:Nn,tableLayout:Rn,scrollbarViewStyle:zn,tableInnerStyle:Bn,scrollbarStyle:Mn}=useStyle($,pe,le,ie),{scrollBarRef:Fn,scrollTo:Vn,setScrollLeft:jn,setScrollTop:Zn}=useScrollbar$1(),Gn=debounce(On,50),Xn=`${ae.namespace.value}-table_${tableIdSeed++}`;ie.tableId=Xn,ie.state={isGroup:bn,resizeState:An,doLayout:On,debouncedUpdateLayout:Gn};const cr=computed(()=>$.sumText||oe("el.table.sumText")),nr=computed(()=>$.emptyText||oe("el.table.emptyText"));return useKeyRender(ie),{ns:ae,layout:pe,store:le,handleHeaderFooterMousewheel:En,handleMouseLeave:Cn,tableId:Xn,tableSize:$n,isHidden:hn,isEmpty:_e,renderExpanded:vn,resizeProxyVisible:xn,resizeState:An,isGroup:bn,bodyWidth:kn,tableBodyStyles:Nn,emptyBlockStyle:wn,debouncedUpdateLayout:Gn,handleFixedMousewheel:Tn,setCurrentRow:Ce,getSelectionRows:$e,toggleRowSelection:xe,clearSelection:Ie,clearFilter:Ne,toggleAllSelection:Fe,toggleRowExpansion:ze,clearSort:At,doLayout:On,sort:Lt,t:oe,setDragVisible:_n,context:ie,computedSumText:cr,computedEmptyText:nr,tableLayout:Rn,scrollbarViewStyle:zn,tableInnerStyle:Bn,scrollbarStyle:Mn,scrollBarRef:Fn,scrollTo:Vn,setScrollLeft:jn,setScrollTop:Zn}}}),_hoisted_1$d=["data-prefix"],_hoisted_2$8={ref:"hiddenColumns",class:"hidden-columns"};function _sfc_render$4($,oe,ae,ie,le,pe){const _e=resolveComponent("hColgroup"),Ce=resolveComponent("table-header"),$e=resolveComponent("table-body"),xe=resolveComponent("el-scrollbar"),Ie=resolveComponent("table-footer"),Ne=resolveDirective("mousewheel");return openBlock(),createElementBlock("div",{ref:"tableWrapper",class:normalizeClass([{[$.ns.m("fit")]:$.fit,[$.ns.m("striped")]:$.stripe,[$.ns.m("border")]:$.border||$.isGroup,[$.ns.m("hidden")]:$.isHidden,[$.ns.m("group")]:$.isGroup,[$.ns.m("fluid-height")]:$.maxHeight,[$.ns.m("scrollable-x")]:$.layout.scrollX.value,[$.ns.m("scrollable-y")]:$.layout.scrollY.value,[$.ns.m("enable-row-hover")]:!$.store.states.isComplex.value,[$.ns.m("enable-row-transition")]:($.store.states.data.value||[]).length!==0&&($.store.states.data.value||[]).length<100,"has-footer":$.showSummary},$.ns.m($.tableSize),$.className,$.ns.b(),$.ns.m(`layout-${$.tableLayout}`)]),style:normalizeStyle$1($.style),"data-prefix":$.ns.namespace.value,onMouseleave:oe[0]||(oe[0]=(...Fe)=>$.handleMouseLeave&&$.handleMouseLeave(...Fe))},[createBaseVNode("div",{class:normalizeClass($.ns.e("inner-wrapper")),style:normalizeStyle$1($.tableInnerStyle)},[createBaseVNode("div",_hoisted_2$8,[renderSlot($.$slots,"default")],512),$.showHeader&&$.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"headerWrapper",class:normalizeClass($.ns.e("header-wrapper"))},[createBaseVNode("table",{ref:"tableHeader",class:normalizeClass($.ns.e("header")),style:normalizeStyle$1($.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[createVNode(_e,{columns:$.store.states.columns.value,"table-layout":$.tableLayout},null,8,["columns","table-layout"]),createVNode(Ce,{ref:"tableHeaderRef",border:$.border,"default-sort":$.defaultSort,store:$.store,onSetDragVisible:$.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[Ne,$.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"bodyWrapper",class:normalizeClass($.ns.e("body-wrapper"))},[createVNode(xe,{ref:"scrollBarRef","view-style":$.scrollbarViewStyle,"wrap-style":$.scrollbarStyle,always:$.scrollbarAlwaysOn},{default:withCtx(()=>[createBaseVNode("table",{ref:"tableBody",class:normalizeClass($.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle$1({width:$.bodyWidth,tableLayout:$.tableLayout})},[createVNode(_e,{columns:$.store.states.columns.value,"table-layout":$.tableLayout},null,8,["columns","table-layout"]),$.showHeader&&$.tableLayout==="auto"?(openBlock(),createBlock(Ce,{key:0,ref:"tableHeaderRef",border:$.border,"default-sort":$.defaultSort,store:$.store,onSetDragVisible:$.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):createCommentVNode("v-if",!0),createVNode($e,{context:$.context,highlight:$.highlightCurrentRow,"row-class-name":$.rowClassName,"tooltip-effect":$.tooltipEffect,"tooltip-options":$.tooltipOptions,"row-style":$.rowStyle,store:$.store,stripe:$.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),$.isEmpty?(openBlock(),createElementBlock("div",{key:0,ref:"emptyBlock",style:normalizeStyle$1($.emptyBlockStyle),class:normalizeClass($.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass($.ns.e("empty-text"))},[renderSlot($.$slots,"empty",{},()=>[createTextVNode(toDisplayString$1($.computedEmptyText),1)])],2)],6)):createCommentVNode("v-if",!0),$.$slots.append?(openBlock(),createElementBlock("div",{key:1,ref:"appendWrapper",class:normalizeClass($.ns.e("append-wrapper"))},[renderSlot($.$slots,"append")],2)):createCommentVNode("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),$.showSummary?withDirectives((openBlock(),createElementBlock("div",{key:1,ref:"footerWrapper",class:normalizeClass($.ns.e("footer-wrapper"))},[createVNode(Ie,{border:$.border,"default-sort":$.defaultSort,store:$.store,style:normalizeStyle$1($.tableBodyStyles),"sum-text":$.computedSumText,"summary-method":$.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[vShow,!$.isEmpty],[Ne,$.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),$.border||$.isGroup?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass($.ns.e("border-left-patch"))},null,2)):createCommentVNode("v-if",!0)],6),withDirectives(createBaseVNode("div",{ref:"resizeProxy",class:normalizeClass($.ns.e("column-resize-proxy"))},null,2),[[vShow,$.resizeProxyVisible]])],46,_hoisted_1$d)}var Table=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$4],["__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=$=>defaultClassNames[$]||"",cellForced={selection:{renderHeader({store:$}){function oe(){return $.states.data.value&&$.states.data.value.length===0}return h$3(ElCheckbox,{disabled:oe(),size:$.states.tableSize.value,indeterminate:$.states.selection.value.length>0&&!$.states.isAllSelected.value,"onUpdate:modelValue":$.toggleAllSelection,modelValue:$.states.isAllSelected.value})},renderCell({row:$,column:oe,store:ae,$index:ie}){return h$3(ElCheckbox,{disabled:oe.selectable?!oe.selectable.call(null,$,ie):!1,size:ae.states.tableSize.value,onChange:()=>{ae.commit("rowSelectedChanged",$)},onClick:le=>le.stopPropagation(),modelValue:ae.isSelected($)})},sortable:!1,resizable:!1},index:{renderHeader({column:$}){return $.label||"#"},renderCell({column:$,$index:oe}){let ae=oe+1;const ie=$.index;return typeof ie=="number"?ae=oe+ie:typeof ie=="function"&&(ae=ie(oe)),h$3("div",{},[ae])},sortable:!1},expand:{renderHeader({column:$}){return $.label||""},renderCell({row:$,store:oe,expanded:ae}){const{ns:ie}=oe,le=[ie.e("expand-icon")];return ae&&le.push(ie.em("expand-icon","expanded")),h$3("div",{class:le,onClick:function(_e){_e.stopPropagation(),oe.toggleRowExpansion($)}},{default:()=>[h$3(ElIcon,null,{default:()=>[h$3(arrow_right_default)]})]})},sortable:!1,resizable:!1}};function defaultRenderCell({row:$,column:oe,$index:ae}){var ie;const le=oe.property,pe=le&&getProp($,le).value;return oe&&oe.formatter?oe.formatter($,oe,pe,ae):((ie=pe==null?void 0:pe.toString)==null?void 0:ie.call(pe))||""}function treeCellPrefix({row:$,treeNode:oe,store:ae},ie=!1){const{ns:le}=ae;if(!oe)return ie?[h$3("span",{class:le.e("placeholder")})]:null;const pe=[],_e=function(Ce){Ce.stopPropagation(),!oe.loading&&ae.loadOrToggle($)};if(oe.indent&&pe.push(h$3("span",{class:le.e("indent"),style:{"padding-left":`${oe.indent}px`}})),typeof oe.expanded=="boolean"&&!oe.noLazyChildren){const Ce=[le.e("expand-icon"),oe.expanded?le.em("expand-icon","expanded"):""];let $e=arrow_right_default;oe.loading&&($e=loading_default),pe.push(h$3("div",{class:Ce,onClick:_e},{default:()=>[h$3(ElIcon,{class:{[le.is("loading")]:oe.loading}},{default:()=>[h$3($e)]})]}))}else pe.push(h$3("span",{class:le.e("placeholder")}));return pe}function getAllAliases($,oe){return $.reduce((ae,ie)=>(ae[ie]=ie,ae),oe)}function useWatcher($,oe){const ae=getCurrentInstance();return{registerComplexWatchers:()=>{const pe=["fixed"],_e={realWidth:"width",realMinWidth:"minWidth"},Ce=getAllAliases(pe,_e);Object.keys(Ce).forEach($e=>{const xe=_e[$e];hasOwn$4(oe,xe)&&watch(()=>oe[xe],Ie=>{let Ne=Ie;xe==="width"&&$e==="realWidth"&&(Ne=parseWidth(Ie)),xe==="minWidth"&&$e==="realMinWidth"&&(Ne=parseMinWidth(Ie)),ae.columnConfig.value[xe]=Ne,ae.columnConfig.value[$e]=Ne;const Fe=xe==="fixed";$.value.store.scheduleLayout(Fe)})})},registerNormalWatchers:()=>{const pe=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],_e={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},Ce=getAllAliases(pe,_e);Object.keys(Ce).forEach($e=>{const xe=_e[$e];hasOwn$4(oe,xe)&&watch(()=>oe[xe],Ie=>{ae.columnConfig.value[$e]=Ie})})}}}function useRender($,oe,ae){const ie=getCurrentInstance(),le=ref(""),pe=ref(!1),_e=ref(),Ce=ref(),$e=useNamespace("table");watchEffect(()=>{_e.value=$.align?`is-${$.align}`:null,_e.value}),watchEffect(()=>{Ce.value=$.headerAlign?`is-${$.headerAlign}`:_e.value,Ce.value});const xe=computed(()=>{let Cn=ie.vnode.vParent||ie.parent;for(;Cn&&!Cn.tableId&&!Cn.columnId;)Cn=Cn.vnode.vParent||Cn.parent;return Cn}),Ie=computed(()=>{const{store:Cn}=ie.parent;if(!Cn)return!1;const{treeData:En}=Cn.states,$n=En.value;return $n&&Object.keys($n).length>0}),Ne=ref(parseWidth($.width)),Fe=ref(parseMinWidth($.minWidth)),ze=Cn=>(Ne.value&&(Cn.width=Ne.value),Fe.value&&(Cn.minWidth=Fe.value),!Ne.value&&Fe.value&&(Cn.width=void 0),Cn.minWidth||(Cn.minWidth=80),Cn.realWidth=Number(Cn.width===void 0?Cn.minWidth:Cn.width),Cn),At=Cn=>{const En=Cn.type,$n=cellForced[En]||{};Object.keys($n).forEach(Tn=>{const xn=$n[Tn];Tn!=="className"&&xn!==void 0&&(Cn[Tn]=xn)});const wn=getDefaultClassName(En);if(wn){const Tn=`${unref($e.namespace)}-${wn}`;Cn.className=Cn.className?`${Cn.className} ${Tn}`:Tn}return Cn},Lt=Cn=>{Array.isArray(Cn)?Cn.forEach($n=>En($n)):En(Cn);function En($n){var wn;((wn=$n==null?void 0:$n.type)==null?void 0:wn.name)==="ElTableColumn"&&($n.vParent=ie)}};return{columnId:le,realAlign:_e,isSubColumn:pe,realHeaderAlign:Ce,columnOrTableParent:xe,setColumnWidth:ze,setColumnForcedProps:At,setColumnRenders:Cn=>{$.renderHeader||Cn.type!=="selection"&&(Cn.renderHeader=$n=>{ie.columnConfig.value.label;const wn=oe.header;return wn?wn($n):Cn.label});let En=Cn.renderCell;return Cn.type==="expand"?(Cn.renderCell=$n=>h$3("div",{class:"cell"},[En($n)]),ae.value.renderExpanded=$n=>oe.default?oe.default($n):oe.default):(En=En||defaultRenderCell,Cn.renderCell=$n=>{let wn=null;if(oe.default){const Nn=oe.default($n);wn=Nn.some(Rn=>Rn.type!==Comment)?Nn:En($n)}else wn=En($n);const{columns:Tn}=ae.value.store.states,xn=Tn.value.findIndex(Nn=>Nn.type==="default"),kn=Ie.value&&$n.cellIndex===xn,An=treeCellPrefix($n,kn),On={class:"cell",style:{}};return Cn.showOverflowTooltip&&(On.class=`${On.class} ${unref($e.namespace)}-tooltip`,On.style={width:`${($n.column.realWidth||Number($n.column.width))-1}px`}),Lt(wn),h$3("div",On,[An,wn])}),Cn},getPropsData:(...Cn)=>Cn.reduce((En,$n)=>(Array.isArray($n)&&$n.forEach(wn=>{En[wn]=$[wn]}),En),{}),getColumnElIndex:(Cn,En)=>Array.prototype.indexOf.call(Cn,En),updateColumnOrder:()=>{ae.value.store.commit("updateColumnOrder",ie.columnConfig.value)}}}var defaultProps={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:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:$=>$.every(oe=>["ascending","descending",null].includes(oe))}};let columnIdSeed=1;var ElTableColumn$1=defineComponent({name:"ElTableColumn",components:{ElCheckbox},props:defaultProps,setup($,{slots:oe}){const ae=getCurrentInstance(),ie=ref({}),le=computed(()=>{let bn=ae.parent;for(;bn&&!bn.tableId;)bn=bn.parent;return bn}),{registerNormalWatchers:pe,registerComplexWatchers:_e}=useWatcher(le,$),{columnId:Ce,isSubColumn:$e,realHeaderAlign:xe,columnOrTableParent:Ie,setColumnWidth:Ne,setColumnForcedProps:Fe,setColumnRenders:ze,getPropsData:At,getColumnElIndex:Lt,realAlign:hn,updateColumnOrder:vn}=useRender($,oe,le),_n=Ie.value;Ce.value=`${_n.tableId||_n.columnId}_column_${columnIdSeed++}`,onBeforeMount(()=>{$e.value=le.value!==_n;const bn=$.type||"default",Cn=$.sortable===""?!0:$.sortable,En={...cellStarts[bn],id:Ce.value,type:bn,property:$.prop||$.property,align:hn,headerAlign:xe,showOverflowTooltip:$.showOverflowTooltip,filterable:$.filters||$.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:Cn,index:$.index,rawColumnKey:ae.vnode.key};let kn=At(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);kn=mergeOptions$1(En,kn),kn=compose(ze,Ne,Fe)(kn),ie.value=kn,pe(),_e()}),onMounted(()=>{var bn;const Cn=Ie.value,En=$e.value?Cn.vnode.el.children:(bn=Cn.refs.hiddenColumns)==null?void 0:bn.children,$n=()=>Lt(En||[],ae.vnode.el);ie.value.getColumnIndex=$n,$n()>-1&&le.value.store.commit("insertColumn",ie.value,$e.value?Cn.columnConfig.value:null,vn)}),onBeforeUnmount(()=>{le.value.store.commit("removeColumn",ie.value,$e.value?_n.columnConfig.value:null,vn)}),ae.columnId=Ce.value,ae.columnConfig=ie},render(){var $,oe,ae;try{const ie=(oe=($=this.$slots).default)==null?void 0:oe.call($,{row:{},column:{},$index:-1}),le=[];if(Array.isArray(ie))for(const _e of ie)((ae=_e.type)==null?void 0:ae.name)==="ElTableColumn"||_e.shapeFlag&2?le.push(_e):_e.type===Fragment&&Array.isArray(_e.children)&&_e.children.forEach(Ce=>{(Ce==null?void 0:Ce.patchFlag)!==1024&&!isString$7(Ce==null?void 0:Ce.children)&&le.push(Ce)});return h$3("div",le)}catch{return h$3("div",[])}}});const ElTable=withInstall(Table,{TableColumn:ElTableColumn$1}),ElTableColumn=withNoopInstall(ElTableColumn$1);var SortOrder=($=>($.ASC="asc",$.DESC="desc",$))(SortOrder||{}),Alignment=($=>($.CENTER="center",$.RIGHT="right",$))(Alignment||{}),FixedDir=($=>($.LEFT="left",$.RIGHT="right",$))(FixedDir||{});const oppositeOrderMap={asc:"desc",desc:"asc"},placeholderSign=Symbol("placeholder"),calcColumnStyle=($,oe,ae)=>{var ie;const le={flexGrow:0,flexShrink:0,...ae?{}:{flexGrow:$.flexGrow||0,flexShrink:$.flexShrink||1}};ae||(le.flexShrink=1);const pe={...(ie=$.style)!=null?ie:{},...le,flexBasis:"auto",width:$.width};return oe||($.maxWidth&&(pe.maxWidth=$.maxWidth),$.minWidth&&(pe.minWidth=$.minWidth)),pe};function useColumns($,oe,ae){const ie=computed(()=>unref(oe).filter(Lt=>!Lt.hidden)),le=computed(()=>unref(ie).filter(Lt=>Lt.fixed==="left"||Lt.fixed===!0)),pe=computed(()=>unref(ie).filter(Lt=>Lt.fixed==="right")),_e=computed(()=>unref(ie).filter(Lt=>!Lt.fixed)),Ce=computed(()=>{const Lt=[];return unref(le).forEach(hn=>{Lt.push({...hn,placeholderSign})}),unref(_e).forEach(hn=>{Lt.push(hn)}),unref(pe).forEach(hn=>{Lt.push({...hn,placeholderSign})}),Lt}),$e=computed(()=>unref(le).length||unref(pe).length),xe=computed(()=>unref(oe).reduce((hn,vn)=>(hn[vn.key]=calcColumnStyle(vn,unref(ae),$.fixed),hn),{})),Ie=computed(()=>unref(ie).reduce((Lt,hn)=>Lt+hn.width,0)),Ne=Lt=>unref(oe).find(hn=>hn.key===Lt),Fe=Lt=>unref(xe)[Lt],ze=(Lt,hn)=>{Lt.width=hn};function At(Lt){var hn;const{key:vn}=Lt.currentTarget.dataset;if(!vn)return;const{sortState:_n,sortBy:bn}=$;let Cn=SortOrder.ASC;isObject$8(_n)?Cn=oppositeOrderMap[_n[vn]]:Cn=oppositeOrderMap[bn.order],(hn=$.onColumnSort)==null||hn.call($,{column:Ne(vn),key:vn,order:Cn})}return{columns:oe,columnsStyles:xe,columnsTotalWidth:Ie,fixedColumnsOnLeft:le,fixedColumnsOnRight:pe,hasFixedColumns:$e,mainColumns:Ce,normalColumns:_e,visibleColumns:ie,getColumn:Ne,getColumnStyle:Fe,updateColumnWidth:ze,onColumnSorted:At}}const useScrollbar=($,{mainTableRef:oe,leftTableRef:ae,rightTableRef:ie,onMaybeEndReached:le})=>{const pe=ref({scrollLeft:0,scrollTop:0});function _e(ze){var At,Lt,hn;const{scrollTop:vn}=ze;(At=oe.value)==null||At.scrollTo(ze),(Lt=ae.value)==null||Lt.scrollToTop(vn),(hn=ie.value)==null||hn.scrollToTop(vn)}function Ce(ze){pe.value=ze,_e(ze)}function $e(ze){pe.value.scrollTop=ze,_e(unref(pe))}function xe(ze){var At,Lt;pe.value.scrollLeft=ze,(Lt=(At=oe.value)==null?void 0:At.scrollTo)==null||Lt.call(At,unref(pe))}function Ie(ze){var At;Ce(ze),(At=$.onScroll)==null||At.call($,ze)}function Ne({scrollTop:ze}){const{scrollTop:At}=unref(pe);ze!==At&&$e(ze)}function Fe(ze,At="auto"){var Lt;(Lt=oe.value)==null||Lt.scrollToRow(ze,At)}return watch(()=>unref(pe).scrollTop,(ze,At)=>{ze>At&&le()}),{scrollPos:pe,scrollTo:Ce,scrollToLeft:xe,scrollToTop:$e,scrollToRow:Fe,onScroll:Ie,onVerticalScroll:Ne}},useRow=($,{mainTableRef:oe,leftTableRef:ae,rightTableRef:ie})=>{const le=getCurrentInstance(),{emit:pe}=le,_e=shallowRef(!1),Ce=shallowRef(null),$e=ref($.defaultExpandedRowKeys||[]),xe=ref(-1),Ie=shallowRef(null),Ne=ref({}),Fe=ref({}),ze=shallowRef({}),At=shallowRef({}),Lt=shallowRef({}),hn=computed(()=>isNumber$5($.estimatedRowHeight));function vn(Tn){var xn;(xn=$.onRowsRendered)==null||xn.call($,Tn),Tn.rowCacheEnd>unref(xe)&&(xe.value=Tn.rowCacheEnd)}function _n({hovered:Tn,rowKey:xn}){Ce.value=Tn?xn:null}function bn({expanded:Tn,rowData:xn,rowIndex:kn,rowKey:An}){var On,Nn;const Rn=[...unref($e)],zn=Rn.indexOf(An);Tn?zn===-1&&Rn.push(An):zn>-1&&Rn.splice(zn,1),$e.value=Rn,pe("update:expandedRowKeys",Rn),(On=$.onRowExpand)==null||On.call($,{expanded:Tn,rowData:xn,rowIndex:kn,rowKey:An}),(Nn=$.onExpandedRowsChange)==null||Nn.call($,Rn)}const Cn=debounce(()=>{var Tn,xn,kn,An;_e.value=!0,Ne.value={...unref(Ne),...unref(Fe)},En(unref(Ie),!1),Fe.value={},Ie.value=null,(Tn=oe.value)==null||Tn.forceUpdate(),(xn=ae.value)==null||xn.forceUpdate(),(kn=ie.value)==null||kn.forceUpdate(),(An=le.proxy)==null||An.$forceUpdate(),_e.value=!1},0);function En(Tn,xn=!1){unref(hn)&&[oe,ae,ie].forEach(kn=>{const An=unref(kn);An&&An.resetAfterRowIndex(Tn,xn)})}function $n(Tn,xn,kn){const An=unref(Ie);(An===null||An>kn)&&(Ie.value=kn),Fe.value[Tn]=xn}function wn({rowKey:Tn,height:xn,rowIndex:kn},An){An?An===FixedDir.RIGHT?Lt.value[Tn]=xn:ze.value[Tn]=xn:At.value[Tn]=xn;const On=Math.max(...[ze,Lt,At].map(Nn=>Nn.value[Tn]||0));unref(Ne)[Tn]!==On&&($n(Tn,On,kn),Cn())}return{hoveringRowKey:Ce,expandedRowKeys:$e,lastRenderedRowIndex:xe,isDynamic:hn,isResetting:_e,rowHeights:Ne,resetAfterIndex:En,onRowExpanded:bn,onRowHovered:_n,onRowsRendered:vn,onRowHeightChange:wn}},useData=($,{expandedRowKeys:oe,lastRenderedRowIndex:ae,resetAfterIndex:ie})=>{const le=ref({}),pe=computed(()=>{const Ce={},{data:$e,rowKey:xe}=$,Ie=unref(oe);if(!Ie||!Ie.length)return $e;const Ne=[],Fe=new Set;Ie.forEach(At=>Fe.add(At));let ze=$e.slice();for(ze.forEach(At=>Ce[At[xe]]=0);ze.length>0;){const At=ze.shift();Ne.push(At),Fe.has(At[xe])&&Array.isArray(At.children)&&At.children.length>0&&(ze=[...At.children,...ze],At.children.forEach(Lt=>Ce[Lt[xe]]=Ce[At[xe]]+1))}return le.value=Ce,Ne}),_e=computed(()=>{const{data:Ce,expandColumnKey:$e}=$;return $e?unref(pe):Ce});return watch(_e,(Ce,$e)=>{Ce!==$e&&(ae.value=-1,ie(0,!0))}),{data:_e,depthMap:le}},sumReducer=($,oe)=>$+oe,sum=$=>isArray$c($)?$.reduce(sumReducer,0):$,tryCall=($,oe,ae={})=>isFunction$5($)?$(oe):$??ae,enforceUnit=$=>(["width","maxWidth","minWidth","height"].forEach(oe=>{$[oe]=addUnit($[oe])}),$),componentToSlot=$=>isVNode$1($)?oe=>h$3($,oe):$,useStyles=($,{columnsTotalWidth:oe,data:ae,fixedColumnsOnLeft:ie,fixedColumnsOnRight:le})=>{const pe=computed(()=>{const{fixed:bn,width:Cn,vScrollbarSize:En}=$,$n=Cn-En;return bn?Math.max(Math.round(unref(oe)),$n):$n}),_e=computed(()=>unref(pe)+($.fixed?$.vScrollbarSize:0)),Ce=computed(()=>{const{height:bn=0,maxHeight:Cn=0,footerHeight:En,hScrollbarSize:$n}=$;if(Cn>0){const wn=unref(At),Tn=unref($e),kn=unref(ze)+wn+Tn+$n;return Math.min(kn,Cn-En)}return bn-En}),$e=computed(()=>{const{rowHeight:bn,estimatedRowHeight:Cn}=$,En=unref(ae);return isNumber$5(Cn)?En.length*Cn:En.length*bn}),xe=computed(()=>{const{maxHeight:bn}=$,Cn=unref(Ce);if(isNumber$5(bn)&&bn>0)return Cn;const En=unref($e)+unref(ze)+unref(At);return Math.min(Cn,En)}),Ie=bn=>bn.width,Ne=computed(()=>sum(unref(ie).map(Ie))),Fe=computed(()=>sum(unref(le).map(Ie))),ze=computed(()=>sum($.headerHeight)),At=computed(()=>{var bn;return(((bn=$.fixedData)==null?void 0:bn.length)||0)*$.rowHeight}),Lt=computed(()=>unref(Ce)-unref(ze)-unref(At)),hn=computed(()=>{const{style:bn={},height:Cn,width:En}=$;return enforceUnit({...bn,height:Cn,width:En})}),vn=computed(()=>enforceUnit({height:$.footerHeight})),_n=computed(()=>({top:addUnit(unref(ze)),bottom:addUnit($.footerHeight),width:addUnit($.width)}));return{bodyWidth:pe,fixedTableHeight:xe,mainTableHeight:Ce,leftTableWidth:Ne,rightTableWidth:Fe,headerWidth:_e,rowsHeight:$e,windowHeight:Lt,footerHeight:vn,emptyStyle:_n,rootStyle:hn,headerHeight:ze}},useAutoResize=$=>{const oe=ref(),ae=ref(0),ie=ref(0);let le;return onMounted(()=>{le=useResizeObserver(oe,([pe])=>{const{width:_e,height:Ce}=pe.contentRect,{paddingLeft:$e,paddingRight:xe,paddingTop:Ie,paddingBottom:Ne}=getComputedStyle(pe.target),Fe=Number.parseInt($e)||0,ze=Number.parseInt(xe)||0,At=Number.parseInt(Ie)||0,Lt=Number.parseInt(Ne)||0;ae.value=_e-Fe-ze,ie.value=Ce-At-Lt}).stop}),onBeforeUnmount(()=>{le==null||le()}),watch([ae,ie],([pe,_e])=>{var Ce;(Ce=$.onResize)==null||Ce.call($,{width:pe,height:_e})}),{sizer:oe,width:ae,height:ie}};function useTable($){const oe=ref(),ae=ref(),ie=ref(),{columns:le,columnsStyles:pe,columnsTotalWidth:_e,fixedColumnsOnLeft:Ce,fixedColumnsOnRight:$e,hasFixedColumns:xe,mainColumns:Ie,onColumnSorted:Ne}=useColumns($,toRef$1($,"columns"),toRef$1($,"fixed")),{scrollTo:Fe,scrollToLeft:ze,scrollToTop:At,scrollToRow:Lt,onScroll:hn,onVerticalScroll:vn,scrollPos:_n}=useScrollbar($,{mainTableRef:oe,leftTableRef:ae,rightTableRef:ie,onMaybeEndReached:Un}),{expandedRowKeys:bn,hoveringRowKey:Cn,lastRenderedRowIndex:En,isDynamic:$n,isResetting:wn,rowHeights:Tn,resetAfterIndex:xn,onRowExpanded:kn,onRowHeightChange:An,onRowHovered:On,onRowsRendered:Nn}=useRow($,{mainTableRef:oe,leftTableRef:ae,rightTableRef:ie}),{data:Rn,depthMap:zn}=useData($,{expandedRowKeys:bn,lastRenderedRowIndex:En,resetAfterIndex:xn}),{bodyWidth:Bn,fixedTableHeight:Mn,mainTableHeight:Fn,leftTableWidth:Vn,rightTableWidth:jn,headerWidth:Zn,rowsHeight:Gn,windowHeight:Xn,footerHeight:cr,emptyStyle:nr,rootStyle:er,headerHeight:rr}=useStyles($,{columnsTotalWidth:_e,data:Rn,fixedColumnsOnLeft:Ce,fixedColumnsOnRight:$e}),qn=shallowRef(!1),Yn=ref(),ar=computed(()=>{const tr=unref(Rn).length===0;return isArray$c($.fixedData)?$.fixedData.length===0&&tr:tr});function pr(tr){const{estimatedRowHeight:ur,rowHeight:_r,rowKey:Er}=$;return ur?unref(Tn)[unref(Rn)[tr][Er]]||ur:_r}function Un(){const{onEndReached:tr}=$;if(!tr)return;const{scrollTop:ur}=unref(_n),_r=unref(Gn),Er=unref(Xn),sr=_r-(ur+Er)+$.hScrollbarSize;unref(En)>=0&&_r===ur+unref(Fn)-unref(rr)&&tr(sr)}return watch(()=>$.expandedRowKeys,tr=>bn.value=tr,{deep:!0}),{columns:le,containerRef:Yn,mainTableRef:oe,leftTableRef:ae,rightTableRef:ie,isDynamic:$n,isResetting:wn,isScrolling:qn,hoveringRowKey:Cn,hasFixedColumns:xe,columnsStyles:pe,columnsTotalWidth:_e,data:Rn,expandedRowKeys:bn,depthMap:zn,fixedColumnsOnLeft:Ce,fixedColumnsOnRight:$e,mainColumns:Ie,bodyWidth:Bn,emptyStyle:nr,rootStyle:er,headerWidth:Zn,footerHeight:cr,mainTableHeight:Fn,fixedTableHeight:Mn,leftTableWidth:Vn,rightTableWidth:jn,showEmpty:ar,getRowHeight:pr,onColumnSorted:Ne,onRowHovered:On,onRowExpanded:kn,onRowsRendered:Nn,onRowHeightChange:An,scrollTo:Fe,scrollToLeft:ze,scrollToTop:At,scrollToRow:Lt,onScroll:hn,onVerticalScroll:vn}}const TableV2InjectionKey=Symbol("tableV2"),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}),TableV2Cell=($,{slots:oe})=>{var ae;const{cellData:ie,style:le}=$,pe=((ae=ie==null?void 0:ie.toString)==null?void 0:ae.call(ie))||"";return createVNode("div",{class:$.class,title:pe,style:le},[oe.default?oe.default($):pe])};TableV2Cell.displayName="ElTableV2Cell";TableV2Cell.inheritAttrs=!1;const HeaderCell=($,{slots:oe})=>{var ae,ie;return oe.default?oe.default($):createVNode("div",{class:$.class,title:(ae=$.column)==null?void 0:ae.title},[(ie=$.column)==null?void 0:ie.title])};HeaderCell.displayName="ElTableV2HeaderCell";HeaderCell.inheritAttrs=!1;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($,{slots:oe}){return()=>{const{columns:ae,columnsStyles:ie,headerIndex:le,style:pe}=$;let _e=ae.map((Ce,$e)=>oe.cell({columns:ae,column:Ce,columnIndex:$e,headerIndex:le,style:ie[Ce.key]}));return oe.header&&(_e=oe.header({cells:_e.map(Ce=>isArray$c(Ce)&&Ce.length===1?Ce[0]:Ce),columns:ae,headerIndex:le})),createVNode("div",{class:$.class,style:pe,role:"row"},[_e])}}}),COMPONENT_NAME$7="ElTableV2Header",TableV2Header=defineComponent({name:COMPONENT_NAME$7,props:tableV2HeaderProps,setup($,{slots:oe,expose:ae}){const ie=useNamespace("table-v2"),le=ref(),pe=computed(()=>enforceUnit({width:$.width,height:$.height})),_e=computed(()=>enforceUnit({width:$.rowWidth,height:$.height})),Ce=computed(()=>castArray$1(unref($.headerHeight))),$e=Ne=>{const Fe=unref(le);nextTick(()=>{Fe!=null&&Fe.scroll&&Fe.scroll({left:Ne})})},xe=()=>{const Ne=ie.e("fixed-header-row"),{columns:Fe,fixedHeaderData:ze,rowHeight:At}=$;return ze==null?void 0:ze.map((Lt,hn)=>{var vn;const _n=enforceUnit({height:At,width:"100%"});return(vn=oe.fixed)==null?void 0:vn.call(oe,{class:Ne,columns:Fe,rowData:Lt,rowIndex:-(hn+1),style:_n})})},Ie=()=>{const Ne=ie.e("dynamic-header-row"),{columns:Fe}=$;return unref(Ce).map((ze,At)=>{var Lt;const hn=enforceUnit({width:"100%",height:ze});return(Lt=oe.dynamic)==null?void 0:Lt.call(oe,{class:Ne,columns:Fe,headerIndex:At,style:hn})})};return ae({scrollToLeft:$e}),()=>{if(!($.height<=0))return createVNode("div",{ref:le,class:$.class,style:unref(pe),role:"rowgroup"},[createVNode("div",{style:unref(_e),class:ie.e("header")},[Ie(),xe()])])}}}),useTableRow=$=>{const{isScrolling:oe}=inject(TableV2InjectionKey),ae=ref(!1),ie=ref(),le=computed(()=>isNumber$5($.estimatedRowHeight)&&$.rowIndex>=0),pe=($e=!1)=>{const xe=unref(ie);if(!xe)return;const{columns:Ie,onRowHeightChange:Ne,rowKey:Fe,rowIndex:ze,style:At}=$,{height:Lt}=xe.getBoundingClientRect();ae.value=!0,nextTick(()=>{if($e||Lt!==Number.parseInt(At.height)){const hn=Ie[0],vn=(hn==null?void 0:hn.placeholderSign)===placeholderSign;Ne==null||Ne({rowKey:Fe,height:Lt,rowIndex:ze},hn&&!vn&&hn.fixed)}})},_e=computed(()=>{const{rowData:$e,rowIndex:xe,rowKey:Ie,onRowHover:Ne}=$,Fe=$.rowEventHandlers||{},ze={};return Object.entries(Fe).forEach(([At,Lt])=>{isFunction$5(Lt)&&(ze[At]=hn=>{Lt({event:hn,rowData:$e,rowIndex:xe,rowKey:Ie})})}),Ne&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:At,hovered:Lt})=>{const hn=ze[At];ze[At]=vn=>{Ne({event:vn,hovered:Lt,rowData:$e,rowIndex:xe,rowKey:Ie}),hn==null||hn(vn)}}),ze}),Ce=$e=>{const{onRowExpand:xe,rowData:Ie,rowIndex:Ne,rowKey:Fe}=$;xe==null||xe({expanded:$e,rowData:Ie,rowIndex:Ne,rowKey:Fe})};return onMounted(()=>{unref(le)&&pe(!0)}),{isScrolling:oe,measurable:le,measured:ae,rowRef:ie,eventHandlers:_e,onExpand:Ce}},COMPONENT_NAME$6="ElTableV2TableRow",TableV2Row=defineComponent({name:COMPONENT_NAME$6,props:tableV2RowProps,setup($,{expose:oe,slots:ae,attrs:ie}){const{eventHandlers:le,isScrolling:pe,measurable:_e,measured:Ce,rowRef:$e,onExpand:xe}=useTableRow($);return oe({onExpand:xe}),()=>{const{columns:Ie,columnsStyles:Ne,expandColumnKey:Fe,depth:ze,rowData:At,rowIndex:Lt,style:hn}=$;let vn=Ie.map((_n,bn)=>{const Cn=isArray$c(At.children)&&At.children.length>0&&_n.key===Fe;return ae.cell({column:_n,columns:Ie,columnIndex:bn,depth:ze,style:Ne[_n.key],rowData:At,rowIndex:Lt,isScrolling:unref(pe),expandIconProps:Cn?{rowData:At,rowIndex:Lt,onExpand:xe}:void 0})});if(ae.row&&(vn=ae.row({cells:vn.map(_n=>isArray$c(_n)&&_n.length===1?_n[0]:_n),style:hn,columns:Ie,depth:ze,rowData:At,rowIndex:Lt,isScrolling:unref(pe)})),unref(_e)){const{height:_n,...bn}=hn||{},Cn=unref(Ce);return createVNode("div",mergeProps({ref:$e,class:$.class,style:Cn?hn:bn,role:"row"},ie,unref(le)),[vn])}return createVNode("div",mergeProps(ie,{ref:$e,class:$.class,style:hn,role:"row"},unref(le)),[vn])}}}),SortIcon=$=>{const{sortOrder:oe}=$;return createVNode(ElIcon,{size:14,class:$.class},{default:()=>[oe===SortOrder.ASC?createVNode(sort_up_default,null,null):createVNode(sort_down_default,null,null)]})},ExpandIcon=$=>{const{expanded:oe,expandable:ae,onExpand:ie,style:le,size:pe}=$,_e={onClick:ae?()=>ie(!oe):void 0,class:$.class};return createVNode(ElIcon,mergeProps(_e,{size:pe,style:le}),{default:()=>[createVNode(arrow_right_default,null,null)]})},COMPONENT_NAME$5="ElTableV2Grid",useTableGrid=$=>{const oe=ref(),ae=ref(),ie=computed(()=>{const{data:Lt,rowHeight:hn,estimatedRowHeight:vn}=$;if(!vn)return Lt.length*hn}),le=computed(()=>{const{fixedData:Lt,rowHeight:hn}=$;return((Lt==null?void 0:Lt.length)||0)*hn}),pe=computed(()=>sum($.headerHeight)),_e=computed(()=>{const{height:Lt}=$;return Math.max(0,Lt-unref(pe)-unref(le))}),Ce=computed(()=>unref(pe)+unref(le)>0),$e=({data:Lt,rowIndex:hn})=>Lt[hn][$.rowKey];function xe({rowCacheStart:Lt,rowCacheEnd:hn,rowVisibleStart:vn,rowVisibleEnd:_n}){var bn;(bn=$.onRowsRendered)==null||bn.call($,{rowCacheStart:Lt,rowCacheEnd:hn,rowVisibleStart:vn,rowVisibleEnd:_n})}function Ie(Lt,hn){var vn;(vn=ae.value)==null||vn.resetAfterRowIndex(Lt,hn)}function Ne(Lt,hn){const vn=unref(oe),_n=unref(ae);!vn||!_n||(isObject$8(Lt)?(vn.scrollToLeft(Lt.scrollLeft),_n.scrollTo(Lt)):(vn.scrollToLeft(Lt),_n.scrollTo({scrollLeft:Lt,scrollTop:hn})))}function Fe(Lt){var hn;(hn=unref(ae))==null||hn.scrollTo({scrollTop:Lt})}function ze(Lt,hn){var vn;(vn=unref(ae))==null||vn.scrollToItem(Lt,1,hn)}function At(){var Lt,hn;(Lt=unref(ae))==null||Lt.$forceUpdate(),(hn=unref(oe))==null||hn.$forceUpdate()}return{bodyRef:ae,forceUpdate:At,fixedRowHeight:le,gridHeight:_e,hasHeader:Ce,headerHeight:pe,headerRef:oe,totalHeight:ie,itemKey:$e,onItemRendered:xe,resetAfterRowIndex:Ie,scrollTo:Ne,scrollToTop:Fe,scrollToRow:ze}},TableGrid=defineComponent({name:COMPONENT_NAME$5,props:tableV2GridProps,setup($,{slots:oe,expose:ae}){const{ns:ie}=inject(TableV2InjectionKey),{bodyRef:le,fixedRowHeight:pe,gridHeight:_e,hasHeader:Ce,headerRef:$e,headerHeight:xe,totalHeight:Ie,forceUpdate:Ne,itemKey:Fe,onItemRendered:ze,resetAfterRowIndex:At,scrollTo:Lt,scrollToTop:hn,scrollToRow:vn}=useTableGrid($);ae({forceUpdate:Ne,totalHeight:Ie,scrollTo:Lt,scrollToTop:hn,scrollToRow:vn,resetAfterRowIndex:At});const _n=()=>$.bodyWidth;return()=>{const{cache:bn,columns:Cn,data:En,fixedData:$n,useIsScrolling:wn,scrollbarAlwaysOn:Tn,scrollbarEndGap:xn,scrollbarStartGap:kn,style:An,rowHeight:On,bodyWidth:Nn,estimatedRowHeight:Rn,headerWidth:zn,height:Bn,width:Mn,getRowHeight:Fn,onScroll:Vn}=$,jn=isNumber$5(Rn),Zn=jn?DynamicSizeGrid:FixedSizeGrid,Gn=unref(xe);return createVNode("div",{role:"table",class:[ie.e("table"),$.class],style:An},[createVNode(Zn,{ref:le,data:En,useIsScrolling:wn,itemKey:Fe,columnCache:0,columnWidth:jn?_n:Nn,totalColumn:1,totalRow:En.length,rowCache:bn,rowHeight:jn?Fn:On,width:Mn,height:unref(_e),class:ie.e("body"),role:"rowgroup",scrollbarStartGap:kn,scrollbarEndGap:xn,scrollbarAlwaysOn:Tn,onScroll:Vn,onItemRendered:ze,perfMode:!1},{default:Xn=>{var cr;const nr=En[Xn.rowIndex];return(cr=oe.row)==null?void 0:cr.call(oe,{...Xn,columns:Cn,rowData:nr})}}),unref(Ce)&&createVNode(TableV2Header,{ref:$e,class:ie.e("header-wrapper"),columns:Cn,headerData:En,headerHeight:$.headerHeight,fixedHeaderData:$n,rowWidth:zn,rowHeight:On,width:Mn,height:Math.min(Gn+unref(pe),Bn)},{dynamic:oe.header,fixed:oe.row})])}}});function _isSlot$5($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const MainTable=($,{slots:oe})=>{const{mainTableRef:ae,...ie}=$;return createVNode(TableGrid,mergeProps({ref:ae},ie),_isSlot$5(oe)?oe:{default:()=>[oe]})};function _isSlot$4($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const LeftTable$1=($,{slots:oe})=>{if(!$.columns.length)return;const{leftTableRef:ae,...ie}=$;return createVNode(TableGrid,mergeProps({ref:ae},ie),_isSlot$4(oe)?oe:{default:()=>[oe]})};function _isSlot$3($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const LeftTable=($,{slots:oe})=>{if(!$.columns.length)return;const{rightTableRef:ae,...ie}=$;return createVNode(TableGrid,mergeProps({ref:ae},ie),_isSlot$3(oe)?oe:{default:()=>[oe]})};function _isSlot$2($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const RowRenderer=($,{slots:oe})=>{const{columns:ae,columnsStyles:ie,depthMap:le,expandColumnKey:pe,expandedRowKeys:_e,estimatedRowHeight:Ce,hasFixedColumns:$e,hoveringRowKey:xe,rowData:Ie,rowIndex:Ne,style:Fe,isScrolling:ze,rowProps:At,rowClass:Lt,rowKey:hn,rowEventHandlers:vn,ns:_n,onRowHovered:bn,onRowExpanded:Cn}=$,En=tryCall(Lt,{columns:ae,rowData:Ie,rowIndex:Ne},""),$n=tryCall(At,{columns:ae,rowData:Ie,rowIndex:Ne}),wn=Ie[hn],Tn=le[wn]||0,xn=!!pe,kn=Ne<0,An=[_n.e("row"),En,{[_n.e(`row-depth-${Tn}`)]:xn&&Ne>=0,[_n.is("expanded")]:xn&&_e.includes(wn),[_n.is("hovered")]:!ze&&wn===xe,[_n.is("fixed")]:!Tn&&kn,[_n.is("customized")]:!!oe.row}],On=$e?bn:void 0,Nn={...$n,columns:ae,columnsStyles:ie,class:An,depth:Tn,expandColumnKey:pe,estimatedRowHeight:kn?void 0:Ce,isScrolling:ze,rowIndex:Ne,rowData:Ie,rowKey:wn,rowEventHandlers:vn,style:Fe};return createVNode(TableV2Row,mergeProps(Nn,{onRowHover:On,onRowExpand:Cn}),_isSlot$2(oe)?oe:{default:()=>[oe]})},CellRenderer=({columns:$,column:oe,columnIndex:ae,depth:ie,expandIconProps:le,isScrolling:pe,rowData:_e,rowIndex:Ce,style:$e,expandedRowKeys:xe,ns:Ie,cellProps:Ne,expandColumnKey:Fe,indentSize:ze,iconSize:At,rowKey:Lt},{slots:hn})=>{const vn=enforceUnit($e);if(oe.placeholderSign===placeholderSign)return createVNode("div",{class:Ie.em("row-cell","placeholder"),style:vn},null);const{cellRenderer:_n,dataKey:bn,dataGetter:Cn}=oe,$n=componentToSlot(_n)||hn.default||(Bn=>createVNode(TableV2Cell,Bn,null)),wn=isFunction$5(Cn)?Cn({columns:$,column:oe,columnIndex:ae,rowData:_e,rowIndex:Ce}):get$1(_e,bn??""),Tn=tryCall(Ne,{cellData:wn,columns:$,column:oe,columnIndex:ae,rowIndex:Ce,rowData:_e}),xn={class:Ie.e("cell-text"),columns:$,column:oe,columnIndex:ae,cellData:wn,isScrolling:pe,rowData:_e,rowIndex:Ce},kn=$n(xn),An=[Ie.e("row-cell"),oe.class,oe.align===Alignment.CENTER&&Ie.is("align-center"),oe.align===Alignment.RIGHT&&Ie.is("align-right")],On=Ce>=0&&oe.key===Fe,Nn=Ce>=0&&xe.includes(_e[Lt]);let Rn;const zn=`margin-inline-start: ${ie*ze}px;`;return On&&(isObject$8(le)?Rn=createVNode(ExpandIcon,mergeProps(le,{class:[Ie.e("expand-icon"),Ie.is("expanded",Nn)],size:At,expanded:Nn,style:zn,expandable:!0}),null):Rn=createVNode("div",{style:[zn,`width: ${At}px; height: ${At}px;`].join(" ")},null)),createVNode("div",mergeProps({class:An,style:vn},Tn,{role:"cell"}),[Rn,kn])};CellRenderer.inheritAttrs=!1;function _isSlot$1($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const HeaderRenderer=({columns:$,columnsStyles:oe,headerIndex:ae,style:ie,headerClass:le,headerProps:pe,ns:_e},{slots:Ce})=>{const $e={columns:$,headerIndex:ae},xe=[_e.e("header-row"),tryCall(le,$e,""),{[_e.is("customized")]:!!Ce.header}],Ie={...tryCall(pe,$e),columnsStyles:oe,class:xe,columns:$,headerIndex:ae,style:ie};return createVNode(TableV2HeaderRow,Ie,_isSlot$1(Ce)?Ce:{default:()=>[Ce]})},HeaderCellRenderer=($,{slots:oe})=>{const{column:ae,ns:ie,style:le,onColumnSorted:pe}=$,_e=enforceUnit(le);if(ae.placeholderSign===placeholderSign)return createVNode("div",{class:ie.em("header-row-cell","placeholder"),style:_e},null);const{headerCellRenderer:Ce,headerClass:$e,sortable:xe}=ae,Ie={...$,class:ie.e("header-cell-text")},Fe=(componentToSlot(Ce)||oe.default||(Cn=>createVNode(HeaderCell,Cn,null)))(Ie),{sortBy:ze,sortState:At,headerCellProps:Lt}=$;let hn,vn;if(At){const Cn=At[ae.key];hn=!!oppositeOrderMap[Cn],vn=hn?Cn:SortOrder.ASC}else hn=ae.key===ze.key,vn=hn?ze.order:SortOrder.ASC;const _n=[ie.e("header-cell"),tryCall($e,$,""),ae.align===Alignment.CENTER&&ie.is("align-center"),ae.align===Alignment.RIGHT&&ie.is("align-right"),xe&&ie.is("sortable")],bn={...tryCall(Lt,$),onClick:ae.sortable?pe:void 0,class:_n,style:_e,["data-key"]:ae.key};return createVNode("div",mergeProps(bn,{role:"columnheader"}),[Fe,xe&&createVNode(SortIcon,{class:[ie.e("sort-icon"),hn&&ie.is("sorting")],sortOrder:vn},null)])},Footer$1=($,{slots:oe})=>{var ae;return createVNode("div",{class:$.class,style:$.style},[(ae=oe.default)==null?void 0:ae.call(oe)])};Footer$1.displayName="ElTableV2Footer";const Footer=($,{slots:oe})=>createVNode("div",{class:$.class,style:$.style},[oe.default?oe.default():createVNode(ElEmpty,null,null)]);Footer.displayName="ElTableV2Empty";const Overlay=($,{slots:oe})=>{var ae;return createVNode("div",{class:$.class,style:$.style},[(ae=oe.default)==null?void 0:ae.call(oe)])};Overlay.displayName="ElTableV2Overlay";function _isSlot($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const COMPONENT_NAME$4="ElTableV2",TableV2=defineComponent({name:COMPONENT_NAME$4,props:tableV2Props,setup($,{slots:oe,expose:ae}){const ie=useNamespace("table-v2"),{columnsStyles:le,fixedColumnsOnLeft:pe,fixedColumnsOnRight:_e,mainColumns:Ce,mainTableHeight:$e,fixedTableHeight:xe,leftTableWidth:Ie,rightTableWidth:Ne,data:Fe,depthMap:ze,expandedRowKeys:At,hasFixedColumns:Lt,hoveringRowKey:hn,mainTableRef:vn,leftTableRef:_n,rightTableRef:bn,isDynamic:Cn,isResetting:En,isScrolling:$n,bodyWidth:wn,emptyStyle:Tn,rootStyle:xn,headerWidth:kn,footerHeight:An,showEmpty:On,scrollTo:Nn,scrollToLeft:Rn,scrollToTop:zn,scrollToRow:Bn,getRowHeight:Mn,onColumnSorted:Fn,onRowHeightChange:Vn,onRowHovered:jn,onRowExpanded:Zn,onRowsRendered:Gn,onScroll:Xn,onVerticalScroll:cr}=useTable($);return ae({scrollTo:Nn,scrollToLeft:Rn,scrollToTop:zn,scrollToRow:Bn}),provide(TableV2InjectionKey,{ns:ie,isResetting:En,hoveringRowKey:hn,isScrolling:$n}),()=>{const{cache:nr,cellProps:er,estimatedRowHeight:rr,expandColumnKey:qn,fixedData:Yn,headerHeight:ar,headerClass:pr,headerProps:Un,headerCellProps:tr,sortBy:ur,sortState:_r,rowHeight:Er,rowClass:sr,rowEventHandlers:Pr,rowKey:Sr,rowProps:kr,scrollbarAlwaysOn:mr,indentSize:lr,iconSize:hr,useIsScrolling:gr,vScrollbarSize:Or,width:Lr}=$,Vr=unref(Fe),Rr={cache:nr,class:ie.e("main"),columns:unref(Ce),data:Vr,fixedData:Yn,estimatedRowHeight:rr,bodyWidth:unref(wn),headerHeight:ar,headerWidth:unref(kn),height:unref($e),mainTableRef:vn,rowKey:Sr,rowHeight:Er,scrollbarAlwaysOn:mr,scrollbarStartGap:2,scrollbarEndGap:Or,useIsScrolling:gr,width:Lr,getRowHeight:Mn,onRowsRendered:Gn,onScroll:Xn},$r=unref(Ie),Tr=unref(xe),dr={cache:nr,class:ie.e("left"),columns:unref(pe),data:Vr,estimatedRowHeight:rr,leftTableRef:_n,rowHeight:Er,bodyWidth:$r,headerWidth:$r,headerHeight:ar,height:Tr,rowKey:Sr,scrollbarAlwaysOn:mr,scrollbarStartGap:2,scrollbarEndGap:Or,useIsScrolling:gr,width:$r,getRowHeight:Mn,onScroll:cr},ir=unref(Ne)+Or,xr={cache:nr,class:ie.e("right"),columns:unref(_e),data:Vr,estimatedRowHeight:rr,rightTableRef:bn,rowHeight:Er,bodyWidth:ir,headerWidth:ir,headerHeight:ar,height:Tr,rowKey:Sr,scrollbarAlwaysOn:mr,scrollbarStartGap:2,scrollbarEndGap:Or,width:ir,style:`--${unref(ie.namespace)}-table-scrollbar-size: ${Or}px`,useIsScrolling:gr,getRowHeight:Mn,onScroll:cr},Ir=unref(le),Hr={ns:ie,depthMap:unref(ze),columnsStyles:Ir,expandColumnKey:qn,expandedRowKeys:unref(At),estimatedRowHeight:rr,hasFixedColumns:unref(Lt),hoveringRowKey:unref(hn),rowProps:kr,rowClass:sr,rowKey:Sr,rowEventHandlers:Pr,onRowHovered:jn,onRowExpanded:Zn,onRowHeightChange:Vn},Cr={cellProps:er,expandColumnKey:qn,indentSize:lr,iconSize:hr,rowKey:Sr,expandedRowKeys:unref(At),ns:ie},Mr={ns:ie,headerClass:pr,headerProps:Un,columnsStyles:Ir},Ur={ns:ie,sortBy:ur,sortState:_r,headerCellProps:tr,onColumnSorted:Fn},jr={row:Qr=>createVNode(RowRenderer,mergeProps(Qr,Hr),{row:oe.row,cell:Ar=>{let Dr;return oe.cell?createVNode(CellRenderer,mergeProps(Ar,Cr,{style:Ir[Ar.column.key]}),_isSlot(Dr=oe.cell(Ar))?Dr:{default:()=>[Dr]}):createVNode(CellRenderer,mergeProps(Ar,Cr,{style:Ir[Ar.column.key]}),null)}}),header:Qr=>createVNode(HeaderRenderer,mergeProps(Qr,Mr),{header:oe.header,cell:Ar=>{let Dr;return oe["header-cell"]?createVNode(HeaderCellRenderer,mergeProps(Ar,Ur,{style:Ir[Ar.column.key]}),_isSlot(Dr=oe["header-cell"](Ar))?Dr:{default:()=>[Dr]}):createVNode(HeaderCellRenderer,mergeProps(Ar,Ur,{style:Ir[Ar.column.key]}),null)}})},Wr=[$.class,ie.b(),ie.e("root"),{[ie.is("dynamic")]:unref(Cn)}],Xr={class:ie.e("footer"),style:unref(An)};return createVNode("div",{class:Wr,style:unref(xn)},[createVNode(MainTable,Rr,_isSlot(jr)?jr:{default:()=>[jr]}),createVNode(LeftTable$1,dr,_isSlot(jr)?jr:{default:()=>[jr]}),createVNode(LeftTable,xr,_isSlot(jr)?jr:{default:()=>[jr]}),oe.footer&&createVNode(Footer$1,Xr,{default:oe.footer}),unref(On)&&createVNode(Footer,{class:ie.e("empty"),style:unref(Tn)},{default:oe.empty}),oe.overlay&&createVNode(Overlay,{class:ie.e("overlay")},{default:oe.overlay})])}}}),autoResizerProps=buildProps({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:definePropType(Function)}}),AutoResizer=defineComponent({name:"ElAutoResizer",props:autoResizerProps,setup($,{slots:oe}){const ae=useNamespace("auto-resizer"),{height:ie,width:le,sizer:pe}=useAutoResize($),_e={width:"100%",height:"100%"};return()=>{var Ce;return createVNode("div",{ref:pe,class:ae.b(),style:_e},[(Ce=oe.default)==null?void 0:Ce.call(oe,{height:ie.value,width:le.value})])}}}),ElTableV2=withInstall(TableV2),ElAutoResizer=withInstall(AutoResizer),tabsRootContextKey=Symbol("tabsRootContextKey"),tabBarProps=buildProps({tabs:{type:definePropType(Array),default:()=>mutable([])}}),COMPONENT_NAME$3="ElTabBar",__default__$k=defineComponent({name:COMPONENT_NAME$3}),_sfc_main$r=defineComponent({...__default__$k,props:tabBarProps,setup($,{expose:oe}){const ae=$,ie=getCurrentInstance(),le=inject(tabsRootContextKey);le||throwError$1(COMPONENT_NAME$3,"");const pe=useNamespace("tabs"),_e=ref(),Ce=ref(),$e=()=>{let Ie=0,Ne=0;const Fe=["top","bottom"].includes(le.props.tabPosition)?"width":"height",ze=Fe==="width"?"x":"y",At=ze==="x"?"left":"top";return ae.tabs.every(Lt=>{var hn,vn;const _n=(vn=(hn=ie.parent)==null?void 0:hn.refs)==null?void 0:vn[`tab-${Lt.uid}`];if(!_n)return!1;if(!Lt.active)return!0;Ie=_n[`offset${capitalize$1(At)}`],Ne=_n[`client${capitalize$1(Fe)}`];const bn=window.getComputedStyle(_n);return Fe==="width"&&(ae.tabs.length>1&&(Ne-=Number.parseFloat(bn.paddingLeft)+Number.parseFloat(bn.paddingRight)),Ie+=Number.parseFloat(bn.paddingLeft)),!1}),{[Fe]:`${Ne}px`,transform:`translate${capitalize$1(ze)}(${Ie}px)`}},xe=()=>Ce.value=$e();return watch(()=>ae.tabs,async()=>{await nextTick(),xe()},{immediate:!0}),useResizeObserver(_e,()=>xe()),oe({ref:_e,update:xe}),(Ie,Ne)=>(openBlock(),createElementBlock("div",{ref_key:"barRef",ref:_e,class:normalizeClass([unref(pe).e("active-bar"),unref(pe).is(unref(le).props.tabPosition)]),style:normalizeStyle$1(Ce.value)},null,6))}});var TabBar=_export_sfc$1(_sfc_main$r,[["__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}),tabNavEmits={tabClick:($,oe,ae)=>ae instanceof Event,tabRemove:($,oe)=>oe instanceof Event},COMPONENT_NAME$2="ElTabNav",TabNav=defineComponent({name:COMPONENT_NAME$2,props:tabNavProps,emits:tabNavEmits,setup($,{expose:oe,emit:ae}){const ie=getCurrentInstance(),le=inject(tabsRootContextKey);le||throwError$1(COMPONENT_NAME$2,"");const pe=useNamespace("tabs"),_e=useDocumentVisibility(),Ce=useWindowFocus(),$e=ref(),xe=ref(),Ie=ref(),Ne=ref(),Fe=ref(!1),ze=ref(0),At=ref(!1),Lt=ref(!0),hn=computed(()=>["top","bottom"].includes(le.props.tabPosition)?"width":"height"),vn=computed(()=>({transform:`translate${hn.value==="width"?"X":"Y"}(-${ze.value}px)`})),_n=()=>{if(!$e.value)return;const xn=$e.value[`offset${capitalize$1(hn.value)}`],kn=ze.value;if(!kn)return;const An=kn>xn?kn-xn:0;ze.value=An},bn=()=>{if(!$e.value||!xe.value)return;const xn=xe.value[`offset${capitalize$1(hn.value)}`],kn=$e.value[`offset${capitalize$1(hn.value)}`],An=ze.value;if(xn-An<=kn)return;const On=xn-An>kn*2?An+kn:xn-kn;ze.value=On},Cn=async()=>{const xn=xe.value;if(!Fe.value||!Ie.value||!$e.value||!xn)return;await nextTick();const kn=Ie.value.querySelector(".is-active");if(!kn)return;const An=$e.value,On=["top","bottom"].includes(le.props.tabPosition),Nn=kn.getBoundingClientRect(),Rn=An.getBoundingClientRect(),zn=On?xn.offsetWidth-Rn.width:xn.offsetHeight-Rn.height,Bn=ze.value;let Mn=Bn;On?(Nn.leftRn.right&&(Mn=Bn+Nn.right-Rn.right)):(Nn.topRn.bottom&&(Mn=Bn+(Nn.bottom-Rn.bottom))),Mn=Math.max(Mn,0),ze.value=Math.min(Mn,zn)},En=()=>{var xn;if(!xe.value||!$e.value)return;$.stretch&&((xn=Ne.value)==null||xn.update());const kn=xe.value[`offset${capitalize$1(hn.value)}`],An=$e.value[`offset${capitalize$1(hn.value)}`],On=ze.value;An0&&(ze.value=0))},$n=xn=>{const kn=xn.code,{up:An,down:On,left:Nn,right:Rn}=EVENT_CODE;if(![An,On,Nn,Rn].includes(kn))return;const zn=Array.from(xn.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Bn=zn.indexOf(xn.target);let Mn;kn===Nn||kn===An?Bn===0?Mn=zn.length-1:Mn=Bn-1:Bn{Lt.value&&(At.value=!0)},Tn=()=>At.value=!1;return watch(_e,xn=>{xn==="hidden"?Lt.value=!1:xn==="visible"&&setTimeout(()=>Lt.value=!0,50)}),watch(Ce,xn=>{xn?setTimeout(()=>Lt.value=!0,50):Lt.value=!1}),useResizeObserver(Ie,En),onMounted(()=>setTimeout(()=>Cn(),0)),onUpdated(()=>En()),oe({scrollToActiveTab:Cn,removeFocus:Tn}),watch(()=>$.panes,()=>ie.update(),{flush:"post",deep:!0}),()=>{const xn=Fe.value?[createVNode("span",{class:[pe.e("nav-prev"),pe.is("disabled",!Fe.value.prev)],onClick:_n},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_left_default,null,null)]})]),createVNode("span",{class:[pe.e("nav-next"),pe.is("disabled",!Fe.value.next)],onClick:bn},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_right_default,null,null)]})])]:null,kn=$.panes.map((An,On)=>{var Nn,Rn,zn,Bn;const Mn=An.uid,Fn=An.props.disabled,Vn=(Rn=(Nn=An.props.name)!=null?Nn:An.index)!=null?Rn:`${On}`,jn=!Fn&&(An.isClosable||$.editable);An.index=`${On}`;const Zn=jn?createVNode(ElIcon,{class:"is-icon-close",onClick:cr=>ae("tabRemove",An,cr)},{default:()=>[createVNode(close_default,null,null)]}):null,Gn=((Bn=(zn=An.slots).label)==null?void 0:Bn.call(zn))||An.props.label,Xn=!Fn&&An.active?0:-1;return createVNode("div",{ref:`tab-${Mn}`,class:[pe.e("item"),pe.is(le.props.tabPosition),pe.is("active",An.active),pe.is("disabled",Fn),pe.is("closable",jn),pe.is("focus",At.value)],id:`tab-${Vn}`,key:`tab-${Mn}`,"aria-controls":`pane-${Vn}`,role:"tab","aria-selected":An.active,tabindex:Xn,onFocus:()=>wn(),onBlur:()=>Tn(),onClick:cr=>{Tn(),ae("tabClick",An,Vn,cr)},onKeydown:cr=>{jn&&(cr.code===EVENT_CODE.delete||cr.code===EVENT_CODE.backspace)&&ae("tabRemove",An,cr)}},[Gn,Zn])});return createVNode("div",{ref:Ie,class:[pe.e("nav-wrap"),pe.is("scrollable",!!Fe.value),pe.is(le.props.tabPosition)]},[xn,createVNode("div",{class:pe.e("nav-scroll"),ref:$e},[createVNode("div",{class:[pe.e("nav"),pe.is(le.props.tabPosition),pe.is("stretch",$.stretch&&["top","bottom"].includes(le.props.tabPosition))],ref:xe,style:vn.value,role:"tablist",onKeydown:$n},[$.type?null:createVNode(TabBar,{ref:Ne,tabs:[...$.panes]},null),kn])])])}}}),tabsProps=buildProps({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:definePropType(Function),default:()=>!0},stretch:Boolean}),isPaneName=$=>isString$7($)||isNumber$5($),tabsEmits={[UPDATE_MODEL_EVENT]:$=>isPaneName($),tabClick:($,oe)=>oe instanceof Event,tabChange:$=>isPaneName($),edit:($,oe)=>["remove","add"].includes(oe),tabRemove:$=>isPaneName($),tabAdd:()=>!0};var Tabs=defineComponent({name:"ElTabs",props:tabsProps,emits:tabsEmits,setup($,{emit:oe,slots:ae,expose:ie}){var le,pe;const _e=useNamespace("tabs"),{children:Ce,addChild:$e,removeChild:xe}=useOrderedChildren(getCurrentInstance(),"ElTabPane"),Ie=ref(),Ne=ref((pe=(le=$.modelValue)!=null?le:$.activeName)!=null?pe:"0"),Fe=vn=>{Ne.value=vn,oe(UPDATE_MODEL_EVENT,vn),oe("tabChange",vn)},ze=async vn=>{var _n,bn,Cn;if(!(Ne.value===vn||isUndefined$1(vn)))try{await((_n=$.beforeLeave)==null?void 0:_n.call($,vn,Ne.value))!==!1&&(Fe(vn),(Cn=(bn=Ie.value)==null?void 0:bn.removeFocus)==null||Cn.call(bn))}catch{}},At=(vn,_n,bn)=>{vn.props.disabled||(ze(_n),oe("tabClick",vn,bn))},Lt=(vn,_n)=>{vn.props.disabled||isUndefined$1(vn.props.name)||(_n.stopPropagation(),oe("edit",vn.props.name,"remove"),oe("tabRemove",vn.props.name))},hn=()=>{oe("edit",void 0,"add"),oe("tabAdd")};return useDeprecated({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},computed(()=>!!$.activeName)),watch(()=>$.activeName,vn=>ze(vn)),watch(()=>$.modelValue,vn=>ze(vn)),watch(Ne,async()=>{var vn;await nextTick(),(vn=Ie.value)==null||vn.scrollToActiveTab()}),provide(tabsRootContextKey,{props:$,currentName:Ne,registerPane:$e,unregisterPane:xe}),ie({currentName:Ne}),()=>{const vn=$.editable||$.addable?createVNode("span",{class:_e.e("new-tab"),tabindex:"0",onClick:hn,onKeydown:Cn=>{Cn.code===EVENT_CODE.enter&&hn()}},[createVNode(ElIcon,{class:_e.is("icon-plus")},{default:()=>[createVNode(plus_default,null,null)]})]):null,_n=createVNode("div",{class:[_e.e("header"),_e.is($.tabPosition)]},[vn,createVNode(TabNav,{ref:Ie,currentName:Ne.value,editable:$.editable,type:$.type,panes:Ce.value,stretch:$.stretch,onTabClick:At,onTabRemove:Lt},null)]),bn=createVNode("div",{class:_e.e("content")},[renderSlot(ae,"default")]);return createVNode("div",{class:[_e.b(),_e.m($.tabPosition),{[_e.m("card")]:$.type==="card",[_e.m("border-card")]:$.type==="border-card"}]},[...$.tabPosition!=="bottom"?[_n,bn]:[bn,_n]])}}});const tabPaneProps=buildProps({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),_hoisted_1$c=["id","aria-hidden","aria-labelledby"],COMPONENT_NAME$1="ElTabPane",__default__$j=defineComponent({name:COMPONENT_NAME$1}),_sfc_main$q=defineComponent({...__default__$j,props:tabPaneProps,setup($){const oe=$,ae=getCurrentInstance(),ie=useSlots(),le=inject(tabsRootContextKey);le||throwError$1(COMPONENT_NAME$1,"usage: ");const pe=useNamespace("tab-pane"),_e=ref(),Ce=computed(()=>oe.closable||le.props.closable),$e=computedEager(()=>{var ze;return le.currentName.value===((ze=oe.name)!=null?ze:_e.value)}),xe=ref($e.value),Ie=computed(()=>{var ze;return(ze=oe.name)!=null?ze:_e.value}),Ne=computedEager(()=>!oe.lazy||xe.value||$e.value);watch($e,ze=>{ze&&(xe.value=!0)});const Fe=reactive({uid:ae.uid,slots:ie,props:oe,paneName:Ie,active:$e,index:_e,isClosable:Ce});return onMounted(()=>{le.registerPane(Fe)}),onUnmounted(()=>{le.unregisterPane(Fe.uid)}),(ze,At)=>unref(Ne)?withDirectives((openBlock(),createElementBlock("div",{key:0,id:`pane-${unref(Ie)}`,class:normalizeClass(unref(pe).b()),role:"tabpanel","aria-hidden":!unref($e),"aria-labelledby":`tab-${unref(Ie)}`},[renderSlot(ze.$slots,"default")],10,_hoisted_1$c)),[[vShow,unref($e)]]):createCommentVNode("v-if",!0)}});var TabPane=_export_sfc$1(_sfc_main$q,[["__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:{type:Boolean},tag:{type:String,default:"span"}}),__default__$i=defineComponent({name:"ElText"}),_sfc_main$p=defineComponent({...__default__$i,props:textProps,setup($){const oe=$,ae=useFormSize(),ie=useNamespace("text"),le=computed(()=>[ie.b(),ie.m(oe.type),ie.m(ae.value),ie.is("truncated",oe.truncated)]);return(pe,_e)=>(openBlock(),createBlock(resolveDynamicComponent(pe.tag),{class:normalizeClass(unref(le))},{default:withCtx(()=>[renderSlot(pe.$slots,"default")]),_:3},8,["class"]))}});var Text=_export_sfc$1(_sfc_main$p,[["__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:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type: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:String,maxTime:String,name:String,prefixIcon:{type:definePropType([String,Object]),default:()=>clock_default},clearIcon:{type:definePropType([String,Object]),default:()=>circle_close_default}}),parseTime=$=>{const oe=($||"").split(":");if(oe.length>=2){let ae=Number.parseInt(oe[0],10);const ie=Number.parseInt(oe[1],10),le=$.toUpperCase();return le.includes("AM")&&ae===12?ae=0:le.includes("PM")&&ae!==12&&(ae+=12),{hours:ae,minutes:ie}}return null},compareTime=($,oe)=>{const ae=parseTime($);if(!ae)return-1;const ie=parseTime(oe);if(!ie)return-1;const le=ae.minutes+ae.hours*60,pe=ie.minutes+ie.hours*60;return le===pe?0:le>pe?1:-1},padTime=$=>`${$}`.padStart(2,"0"),formatTime$1=$=>`${padTime($.hours)}:${padTime($.minutes)}`,nextTime=($,oe)=>{const ae=parseTime($);if(!ae)return"";const ie=parseTime(oe);if(!ie)return"";const le={hours:ae.hours,minutes:ae.minutes};return le.minutes+=ie.minutes,le.hours+=ie.hours,le.hours+=Math.floor(le.minutes/60),le.minutes=le.minutes%60,formatTime$1(le)},__default__$h=defineComponent({name:"ElTimeSelect"}),_sfc_main$o=defineComponent({...__default__$h,props:timeSelectProps,emits:["change","blur","focus","update:modelValue"],setup($,{expose:oe}){const ae=$;dayjs.extend(customParseFormat);const{Option:ie}=ElSelect,le=useNamespace("input"),pe=ref(),_e=useFormDisabled(),Ce=computed(()=>ae.modelValue),$e=computed(()=>{const hn=parseTime(ae.start);return hn?formatTime$1(hn):null}),xe=computed(()=>{const hn=parseTime(ae.end);return hn?formatTime$1(hn):null}),Ie=computed(()=>{const hn=parseTime(ae.step);return hn?formatTime$1(hn):null}),Ne=computed(()=>{const hn=parseTime(ae.minTime||"");return hn?formatTime$1(hn):null}),Fe=computed(()=>{const hn=parseTime(ae.maxTime||"");return hn?formatTime$1(hn):null}),ze=computed(()=>{const hn=[];if(ae.start&&ae.end&&ae.step){let vn=$e.value,_n;for(;vn&&xe.value&&compareTime(vn,xe.value)<=0;)_n=dayjs(vn,"HH:mm").format(ae.format),hn.push({value:_n,disabled:compareTime(vn,Ne.value||"-1:-1")<=0||compareTime(vn,Fe.value||"100:100")>=0}),vn=nextTime(vn,Ie.value)}return hn});return oe({blur:()=>{var hn,vn;(vn=(hn=pe.value)==null?void 0:hn.blur)==null||vn.call(hn)},focus:()=>{var hn,vn;(vn=(hn=pe.value)==null?void 0:hn.focus)==null||vn.call(hn)}}),(hn,vn)=>(openBlock(),createBlock(unref(ElSelect),{ref_key:"select",ref:pe,"model-value":unref(Ce),disabled:unref(_e),clearable:hn.clearable,"clear-icon":hn.clearIcon,size:hn.size,effect:hn.effect,placeholder:hn.placeholder,"default-first-option":"",filterable:hn.editable,"onUpdate:modelValue":vn[0]||(vn[0]=_n=>hn.$emit("update:modelValue",_n)),onChange:vn[1]||(vn[1]=_n=>hn.$emit("change",_n)),onBlur:vn[2]||(vn[2]=_n=>hn.$emit("blur",_n)),onFocus:vn[3]||(vn[3]=_n=>hn.$emit("focus",_n))},{prefix:withCtx(()=>[hn.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("prefix-icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(hn.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ze),_n=>(openBlock(),createBlock(unref(ie),{key:_n.value,label:_n.value,value:_n.value,disabled:_n.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var TimeSelect=_export_sfc$1(_sfc_main$o,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);TimeSelect.install=$=>{$.component(TimeSelect.name,TimeSelect)};const _TimeSelect=TimeSelect,ElTimeSelect=_TimeSelect,Timeline=defineComponent({name:"ElTimeline",setup($,{slots:oe}){const ae=useNamespace("timeline");return provide("timeline",oe),()=>h$3("ul",{class:[ae.b()]},[renderSlot(oe,"default")])}}),timelineItemProps=buildProps({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},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:{type:Boolean,default:!1}}),__default__$g=defineComponent({name:"ElTimelineItem"}),_sfc_main$n=defineComponent({...__default__$g,props:timelineItemProps,setup($){const oe=useNamespace("timeline-item");return(ae,ie)=>(openBlock(),createElementBlock("li",{class:normalizeClass([unref(oe).b(),{[unref(oe).e("center")]:ae.center}])},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("tail"))},null,2),ae.$slots.dot?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(oe).e("node"),unref(oe).em("node",ae.size||""),unref(oe).em("node",ae.type||""),unref(oe).is("hollow",ae.hollow)]),style:normalizeStyle$1({backgroundColor:ae.color})},[ae.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(oe).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ae.icon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)),ae.$slots.dot?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(oe).e("dot"))},[renderSlot(ae.$slots,"dot")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("wrapper"))},[!ae.hideTimestamp&&ae.placement==="top"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(oe).e("timestamp"),unref(oe).is("top")])},toDisplayString$1(ae.timestamp),3)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("content"))},[renderSlot(ae.$slots,"default")],2),!ae.hideTimestamp&&ae.placement==="bottom"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(oe).e("timestamp"),unref(oe).is("bottom")])},toDisplayString$1(ae.timestamp),3)):createCommentVNode("v-if",!0)],2)],2))}});var TimelineItem=_export_sfc$1(_sfc_main$n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const ElTimeline=withInstall(Timeline,{TimelineItem}),ElTimelineItem=withNoopInstall(TimelineItem),tooltipV2CommonProps=buildProps({nowrap:Boolean});var TooltipV2Sides=($=>($.top="top",$.bottom="bottom",$.left="left",$.right="right",$))(TooltipV2Sides||{});const tooltipV2Sides=Object.values(TooltipV2Sides),tooltipV2ArrowProps=buildProps({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:definePropType(Object),default:null}}),tooltipV2ArrowSpecialProps=buildProps({side:{type:definePropType(String),values:tooltipV2Sides,required:!0}}),tooltipV2Strategies=["absolute","fixed"],tooltipV2Placements=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],tooltipV2ContentProps=buildProps({ariaLabel:String,arrowPadding:{type:definePropType(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:definePropType(String),values:tooltipV2Placements,default:"bottom"},reference:{type:definePropType(Object),default:null},offset:{type:Number,default:8},strategy:{type:definePropType(String),values:tooltipV2Strategies,default:"absolute"},showArrow:{type:Boolean,default:!1}}),tooltipV2RootProps=buildProps({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:definePropType(Function)},"onUpdate:open":{type:definePropType(Function)}}),EventHandler={type:definePropType(Function)},tooltipV2TriggerProps=buildProps({onBlur:EventHandler,onClick:EventHandler,onFocus:EventHandler,onMouseDown:EventHandler,onMouseEnter:EventHandler,onMouseLeave:EventHandler}),tooltipV2Props=buildProps({...tooltipV2RootProps,...tooltipV2ArrowProps,...tooltipV2TriggerProps,...tooltipV2ContentProps,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:definePropType(Object),default:null},teleported:Boolean,to:{type:definePropType(String),default:"body"}}),tooltipV2RootKey=Symbol("tooltipV2"),tooltipV2ContentKey=Symbol("tooltipV2Content"),TOOLTIP_V2_OPEN="tooltip_v2.open",__default__$f=defineComponent({name:"ElTooltipV2Root"}),_sfc_main$m=defineComponent({...__default__$f,props:tooltipV2RootProps,setup($,{expose:oe}){const ae=$,ie=ref(ae.defaultOpen),le=ref(null),pe=computed({get:()=>isPropAbsent(ae.open)?ie.value:ae.open,set:hn=>{var vn;ie.value=hn,(vn=ae["onUpdate:open"])==null||vn.call(ae,hn)}}),_e=computed(()=>isNumber$5(ae.delayDuration)&&ae.delayDuration>0),{start:Ce,stop:$e}=useTimeoutFn$1(()=>{pe.value=!0},computed(()=>ae.delayDuration),{immediate:!1}),xe=useNamespace("tooltip-v2"),Ie=useId(),Ne=()=>{$e(),pe.value=!0},Fe=()=>{unref(_e)?Ce():Ne()},ze=Ne,At=()=>{$e(),pe.value=!1};return watch(pe,hn=>{var vn;hn&&(document.dispatchEvent(new CustomEvent(TOOLTIP_V2_OPEN)),ze()),(vn=ae.onOpenChange)==null||vn.call(ae,hn)}),onMounted(()=>{document.addEventListener(TOOLTIP_V2_OPEN,At)}),onBeforeUnmount(()=>{$e(),document.removeEventListener(TOOLTIP_V2_OPEN,At)}),provide(tooltipV2RootKey,{contentId:Ie,triggerRef:le,ns:xe,onClose:At,onDelayOpen:Fe,onOpen:ze}),oe({onOpen:ze,onClose:At}),(hn,vn)=>renderSlot(hn.$slots,"default",{open:unref(pe)})}});var TooltipV2Root=_export_sfc$1(_sfc_main$m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const __default__$e=defineComponent({name:"ElTooltipV2Arrow"}),_sfc_main$l=defineComponent({...__default__$e,props:{...tooltipV2ArrowProps,...tooltipV2ArrowSpecialProps},setup($){const oe=$,{ns:ae}=inject(tooltipV2RootKey),{arrowRef:ie}=inject(tooltipV2ContentKey),le=computed(()=>{const{style:pe,width:_e,height:Ce}=oe,$e=ae.namespace.value;return{[`--${$e}-tooltip-v2-arrow-width`]:`${_e}px`,[`--${$e}-tooltip-v2-arrow-height`]:`${Ce}px`,[`--${$e}-tooltip-v2-arrow-border-width`]:`${_e/2}px`,[`--${$e}-tooltip-v2-arrow-cover-width`]:_e/2-1,...pe||{}}});return(pe,_e)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:ie,style:normalizeStyle$1(unref(le)),class:normalizeClass(unref(ae).e("arrow"))},null,6))}});var TooltipV2Arrow=_export_sfc$1(_sfc_main$l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const visualHiddenProps=buildProps({style:{type:definePropType([String,Object,Array]),default:()=>({})}}),__default__$d=defineComponent({name:"ElVisuallyHidden"}),_sfc_main$k=defineComponent({...__default__$d,props:visualHiddenProps,setup($){const oe=$,ae=computed(()=>[oe.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(ie,le)=>(openBlock(),createElementBlock("span",mergeProps(ie.$attrs,{style:unref(ae)}),[renderSlot(ie.$slots,"default")],16))}});var ElVisuallyHidden=_export_sfc$1(_sfc_main$k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const _hoisted_1$b=["data-side"],__default__$c=defineComponent({name:"ElTooltipV2Content"}),_sfc_main$j=defineComponent({...__default__$c,props:{...tooltipV2ContentProps,...tooltipV2CommonProps},setup($){const oe=$,{triggerRef:ae,contentId:ie}=inject(tooltipV2RootKey),le=ref(oe.placement),pe=ref(oe.strategy),_e=ref(null),{referenceRef:Ce,contentRef:$e,middlewareData:xe,x:Ie,y:Ne,update:Fe}=useFloating({placement:le,strategy:pe,middleware:computed(()=>{const bn=[D$4(oe.offset)];return oe.showArrow&&bn.push(arrowMiddleware({arrowRef:_e})),bn})}),ze=useZIndex().nextZIndex(),At=useNamespace("tooltip-v2"),Lt=computed(()=>le.value.split("-")[0]),hn=computed(()=>({position:unref(pe),top:`${unref(Ne)||0}px`,left:`${unref(Ie)||0}px`,zIndex:ze})),vn=computed(()=>{if(!oe.showArrow)return{};const{arrow:bn}=unref(xe);return{[`--${At.namespace.value}-tooltip-v2-arrow-x`]:`${bn==null?void 0:bn.x}px`||"",[`--${At.namespace.value}-tooltip-v2-arrow-y`]:`${bn==null?void 0:bn.y}px`||""}}),_n=computed(()=>[At.e("content"),At.is("dark",oe.effect==="dark"),At.is(unref(pe)),oe.contentClass]);return watch(_e,()=>Fe()),watch(()=>oe.placement,bn=>le.value=bn),onMounted(()=>{watch(()=>oe.reference||ae.value,bn=>{Ce.value=bn||void 0},{immediate:!0})}),provide(tooltipV2ContentKey,{arrowRef:_e}),(bn,Cn)=>(openBlock(),createElementBlock("div",{ref_key:"contentRef",ref:$e,style:normalizeStyle$1(unref(hn)),"data-tooltip-v2-root":""},[bn.nowrap?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,"data-side":unref(Lt),class:normalizeClass(unref(_n))},[renderSlot(bn.$slots,"default",{contentStyle:unref(hn),contentClass:unref(_n)}),createVNode(unref(ElVisuallyHidden),{id:unref(ie),role:"tooltip"},{default:withCtx(()=>[bn.ariaLabel?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(bn.ariaLabel),1)],64)):renderSlot(bn.$slots,"default",{key:1})]),_:3},8,["id"]),renderSlot(bn.$slots,"arrow",{style:normalizeStyle$1(unref(vn)),side:unref(Lt)})],10,_hoisted_1$b))],4))}});var TooltipV2Content=_export_sfc$1(_sfc_main$j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const forwardRefProps=buildProps({setRef:{type:definePropType(Function),required:!0},onlyChild:Boolean});var ForwardRef=defineComponent({props:forwardRefProps,setup($,{slots:oe}){const ae=ref(),ie=composeRefs(ae,le=>{le?$.setRef(le.nextElementSibling):$.setRef(null)});return()=>{var le;const[pe]=((le=oe.default)==null?void 0:le.call(oe))||[],_e=$.onlyChild?ensureOnlyChild(pe.children):pe.children;return createVNode(Fragment,{ref:ie},[_e])}}});const __default__$b=defineComponent({name:"ElTooltipV2Trigger"}),_sfc_main$i=defineComponent({...__default__$b,props:{...tooltipV2CommonProps,...tooltipV2TriggerProps},setup($){const oe=$,{onClose:ae,onOpen:ie,onDelayOpen:le,triggerRef:pe,contentId:_e}=inject(tooltipV2RootKey);let Ce=!1;const $e=_n=>{pe.value=_n},xe=()=>{Ce=!1},Ie=composeEventHandlers(oe.onMouseEnter,le),Ne=composeEventHandlers(oe.onMouseLeave,ae),Fe=composeEventHandlers(oe.onMouseDown,()=>{ae(),Ce=!0,document.addEventListener("mouseup",xe,{once:!0})}),ze=composeEventHandlers(oe.onFocus,()=>{Ce||ie()}),At=composeEventHandlers(oe.onBlur,ae),Lt=composeEventHandlers(oe.onClick,_n=>{_n.detail===0&&ae()}),hn={blur:At,click:Lt,focus:ze,mousedown:Fe,mouseenter:Ie,mouseleave:Ne},vn=(_n,bn,Cn)=>{_n&&Object.entries(bn).forEach(([En,$n])=>{_n[Cn](En,$n)})};return watch(pe,(_n,bn)=>{vn(_n,hn,"addEventListener"),vn(bn,hn,"removeEventListener"),_n&&_n.setAttribute("aria-describedby",_e.value)}),onBeforeUnmount(()=>{vn(pe.value,hn,"removeEventListener"),document.removeEventListener("mouseup",xe)}),(_n,bn)=>_n.nowrap?(openBlock(),createBlock(unref(ForwardRef),{key:0,"set-ref":$e,"only-child":""},{default:withCtx(()=>[renderSlot(_n.$slots,"default")]),_:3})):(openBlock(),createElementBlock("button",mergeProps({key:1,ref_key:"triggerRef",ref:pe},_n.$attrs),[renderSlot(_n.$slots,"default")],16))}});var TooltipV2Trigger=_export_sfc$1(_sfc_main$i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const __default__$a=defineComponent({name:"ElTooltipV2"}),_sfc_main$h=defineComponent({...__default__$a,props:tooltipV2Props,setup($){const ae=toRefs($),ie=reactive(pick$1(ae,Object.keys(tooltipV2ArrowProps))),le=reactive(pick$1(ae,Object.keys(tooltipV2ContentProps))),pe=reactive(pick$1(ae,Object.keys(tooltipV2RootProps))),_e=reactive(pick$1(ae,Object.keys(tooltipV2TriggerProps)));return(Ce,$e)=>(openBlock(),createBlock(TooltipV2Root,normalizeProps(guardReactiveProps(pe)),{default:withCtx(({open:xe})=>[createVNode(TooltipV2Trigger,mergeProps(_e,{nowrap:""}),{default:withCtx(()=>[renderSlot(Ce.$slots,"trigger")]),_:3},16),(openBlock(),createBlock(Teleport,{to:Ce.to,disabled:!Ce.teleported},[Ce.fullTransition?(openBlock(),createBlock(Transition,normalizeProps(mergeProps({key:0},Ce.transitionProps)),{default:withCtx(()=>[Ce.alwaysOn||xe?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},le)),{arrow:withCtx(({style:Ie,side:Ne})=>[Ce.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},ie,{style:Ie,side:Ne}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(Ce.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)]),_:2},1040)):(openBlock(),createElementBlock(Fragment,{key:1},[Ce.alwaysOn||xe?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},le)),{arrow:withCtx(({style:Ie,side:Ne})=>[Ce.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},ie,{style:Ie,side:Ne}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(Ce.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var TooltipV2=_export_sfc$1(_sfc_main$h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const ElTooltipV2=withInstall(TooltipV2),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=($,oe)=>[$,oe].every(isArray$c)||isArray$c($)&&isNil(oe),transferEmits={[CHANGE_EVENT]:($,oe,ae)=>[$,ae].every(isArray$c)&&["left","right"].includes(oe),[UPDATE_MODEL_EVENT]:$=>isArray$c($),[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=$=>{const oe={label:"label",key:"key",disabled:"disabled"};return computed(()=>({...oe,...$.props}))},useCheck$1=($,oe,ae)=>{const ie=usePropsAlias($),le=computed(()=>$.data.filter(Ie=>isFunction$5($.filterMethod)?$.filterMethod(oe.query,Ie):String(Ie[ie.value.label]||Ie[ie.value.key]).toLowerCase().includes(oe.query.toLowerCase()))),pe=computed(()=>le.value.filter(Ie=>!Ie[ie.value.disabled])),_e=computed(()=>{const Ie=oe.checked.length,Ne=$.data.length,{noChecked:Fe,hasChecked:ze}=$.format;return Fe&&ze?Ie>0?ze.replace(/\${checked}/g,Ie.toString()).replace(/\${total}/g,Ne.toString()):Fe.replace(/\${total}/g,Ne.toString()):`${Ie}/${Ne}`}),Ce=computed(()=>{const Ie=oe.checked.length;return Ie>0&&Ie{const Ie=pe.value.map(Ne=>Ne[ie.value.key]);oe.allChecked=Ie.length>0&&Ie.every(Ne=>oe.checked.includes(Ne))},xe=Ie=>{oe.checked=Ie?pe.value.map(Ne=>Ne[ie.value.key]):[]};return watch(()=>oe.checked,(Ie,Ne)=>{if($e(),oe.checkChangeByUser){const Fe=Ie.concat(Ne).filter(ze=>!Ie.includes(ze)||!Ne.includes(ze));ae(CHECKED_CHANGE_EVENT,Ie,Fe)}else ae(CHECKED_CHANGE_EVENT,Ie),oe.checkChangeByUser=!0}),watch(pe,()=>{$e()}),watch(()=>$.data,()=>{const Ie=[],Ne=le.value.map(Fe=>Fe[ie.value.key]);oe.checked.forEach(Fe=>{Ne.includes(Fe)&&Ie.push(Fe)}),oe.checkChangeByUser=!1,oe.checked=Ie}),watch(()=>$.defaultChecked,(Ie,Ne)=>{if(Ne&&Ie.length===Ne.length&&Ie.every(At=>Ne.includes(At)))return;const Fe=[],ze=pe.value.map(At=>At[ie.value.key]);Ie.forEach(At=>{ze.includes(At)&&Fe.push(At)}),oe.checkChangeByUser=!1,oe.checked=Fe},{immediate:!0}),{filteredData:le,checkableData:pe,checkedSummary:_e,isIndeterminate:Ce,updateAllChecked:$e,handleAllCheckedChange:xe}},useCheckedChange=($,oe)=>({onSourceCheckedChange:(le,pe)=>{$.leftChecked=le,pe&&oe(LEFT_CHECK_CHANGE_EVENT,le,pe)},onTargetCheckedChange:(le,pe)=>{$.rightChecked=le,pe&&oe(RIGHT_CHECK_CHANGE_EVENT,le,pe)}}),useComputedData=$=>{const oe=usePropsAlias($),ae=computed(()=>$.data.reduce((pe,_e)=>(pe[_e[oe.value.key]]=_e)&&pe,{})),ie=computed(()=>$.data.filter(pe=>!$.modelValue.includes(pe[oe.value.key]))),le=computed(()=>$.targetOrder==="original"?$.data.filter(pe=>$.modelValue.includes(pe[oe.value.key])):$.modelValue.reduce((pe,_e)=>{const Ce=ae.value[_e];return Ce&&pe.push(Ce),pe},[]));return{sourceData:ie,targetData:le}},useMove=($,oe,ae)=>{const ie=usePropsAlias($),le=(Ce,$e,xe)=>{ae(UPDATE_MODEL_EVENT,Ce),ae(CHANGE_EVENT,Ce,$e,xe)};return{addToLeft:()=>{const Ce=$.modelValue.slice();oe.rightChecked.forEach($e=>{const xe=Ce.indexOf($e);xe>-1&&Ce.splice(xe,1)}),le(Ce,"left",oe.rightChecked)},addToRight:()=>{let Ce=$.modelValue.slice();const $e=$.data.filter(xe=>{const Ie=xe[ie.value.key];return oe.leftChecked.includes(Ie)&&!$.modelValue.includes(Ie)}).map(xe=>xe[ie.value.key]);Ce=$.targetOrder==="unshift"?$e.concat(Ce):Ce.concat($e),$.targetOrder==="original"&&(Ce=$.data.filter(xe=>Ce.includes(xe[ie.value.key])).map(xe=>xe[ie.value.key])),le(Ce,"right",oe.leftChecked)}}},__default__$9=defineComponent({name:"ElTransferPanel"}),_sfc_main$g=defineComponent({...__default__$9,props:transferPanelProps,emits:transferPanelEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useSlots(),pe=({option:bn})=>bn,{t:_e}=useLocale(),Ce=useNamespace("transfer"),$e=reactive({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),xe=usePropsAlias(ie),{filteredData:Ie,checkedSummary:Ne,isIndeterminate:Fe,handleAllCheckedChange:ze}=useCheck$1(ie,$e,ae),At=computed(()=>!isEmpty($e.query)&&isEmpty(Ie.value)),Lt=computed(()=>!isEmpty(le.default()[0].children)),{checked:hn,allChecked:vn,query:_n}=toRefs($e);return oe({query:_n}),(bn,Cn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Ce).b("panel"))},[createBaseVNode("p",{class:normalizeClass(unref(Ce).be("panel","header"))},[createVNode(unref(ElCheckbox),{modelValue:unref(vn),"onUpdate:modelValue":Cn[0]||(Cn[0]=En=>isRef(vn)?vn.value=En:null),indeterminate:unref(Fe),"validate-event":!1,onChange:unref(ze)},{default:withCtx(()=>[createTextVNode(toDisplayString$1(bn.title)+" ",1),createBaseVNode("span",null,toDisplayString$1(unref(Ne)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),createBaseVNode("div",{class:normalizeClass([unref(Ce).be("panel","body"),unref(Ce).is("with-footer",unref(Lt))])},[bn.filterable?(openBlock(),createBlock(unref(ElInput),{key:0,modelValue:unref(_n),"onUpdate:modelValue":Cn[1]||(Cn[1]=En=>isRef(_n)?_n.value=En:null),class:normalizeClass(unref(Ce).be("panel","filter")),size:"default",placeholder:bn.placeholder,"prefix-icon":unref(search_default),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):createCommentVNode("v-if",!0),withDirectives(createVNode(unref(ElCheckboxGroup$1),{modelValue:unref(hn),"onUpdate:modelValue":Cn[2]||(Cn[2]=En=>isRef(hn)?hn.value=En:null),"validate-event":!1,class:normalizeClass([unref(Ce).is("filterable",bn.filterable),unref(Ce).be("panel","list")])},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),En=>(openBlock(),createBlock(unref(ElCheckbox),{key:En[unref(xe).key],class:normalizeClass(unref(Ce).be("panel","item")),label:En[unref(xe).key],disabled:En[unref(xe).disabled],"validate-event":!1},{default:withCtx(()=>{var $n;return[createVNode(pe,{option:($n=bn.optionRender)==null?void 0:$n.call(bn,En)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[vShow,!unref(At)&&!unref(isEmpty)(bn.data)]]),withDirectives(createBaseVNode("p",{class:normalizeClass(unref(Ce).be("panel","empty"))},toDisplayString$1(unref(At)?unref(_e)("el.transfer.noMatch"):unref(_e)("el.transfer.noData")),3),[[vShow,unref(At)||unref(isEmpty)(bn.data)]])],2),unref(Lt)?(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(Ce).be("panel","footer"))},[renderSlot(bn.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var TransferPanel=_export_sfc$1(_sfc_main$g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const _hoisted_1$a={key:0},_hoisted_2$7={key:0},__default__$8=defineComponent({name:"ElTransfer"}),_sfc_main$f=defineComponent({...__default__$8,props:transferProps,emits:transferEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useSlots(),{t:pe}=useLocale(),_e=useNamespace("transfer"),{formItem:Ce}=useFormItem(),$e=reactive({leftChecked:[],rightChecked:[]}),xe=usePropsAlias(ie),{sourceData:Ie,targetData:Ne}=useComputedData(ie),{onSourceCheckedChange:Fe,onTargetCheckedChange:ze}=useCheckedChange($e,ae),{addToLeft:At,addToRight:Lt}=useMove(ie,$e,ae),hn=ref(),vn=ref(),_n=Tn=>{switch(Tn){case"left":hn.value.query="";break;case"right":vn.value.query="";break}},bn=computed(()=>ie.buttonTexts.length===2),Cn=computed(()=>ie.titles[0]||pe("el.transfer.titles.0")),En=computed(()=>ie.titles[1]||pe("el.transfer.titles.1")),$n=computed(()=>ie.filterPlaceholder||pe("el.transfer.filterPlaceholder"));watch(()=>ie.modelValue,()=>{var Tn;ie.validateEvent&&((Tn=Ce==null?void 0:Ce.validate)==null||Tn.call(Ce,"change").catch(xn=>void 0))});const wn=computed(()=>Tn=>ie.renderContent?ie.renderContent(h$3,Tn):le.default?le.default({option:Tn}):h$3("span",Tn[xe.value.label]||Tn[xe.value.key]));return oe({clearQuery:_n,leftPanel:hn,rightPanel:vn}),(Tn,xn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(_e).b())},[createVNode(TransferPanel,{ref_key:"leftPanel",ref:hn,data:unref(Ie),"option-render":unref(wn),placeholder:unref($n),title:unref(Cn),filterable:Tn.filterable,format:Tn.format,"filter-method":Tn.filterMethod,"default-checked":Tn.leftDefaultChecked,props:ie.props,onCheckedChange:unref(Fe)},{default:withCtx(()=>[renderSlot(Tn.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),createBaseVNode("div",{class:normalizeClass(unref(_e).e("buttons"))},[createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(_e).e("button"),unref(_e).is("with-texts",unref(bn))]),disabled:unref(isEmpty)($e.rightChecked),onClick:unref(At)},{default:withCtx(()=>[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1}),unref(isUndefined$1)(Tn.buttonTexts[0])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_1$a,toDisplayString$1(Tn.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(_e).e("button"),unref(_e).is("with-texts",unref(bn))]),disabled:unref(isEmpty)($e.leftChecked),onClick:unref(Lt)},{default:withCtx(()=>[unref(isUndefined$1)(Tn.buttonTexts[1])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_2$7,toDisplayString$1(Tn.buttonTexts[1]),1)),createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),createVNode(TransferPanel,{ref_key:"rightPanel",ref:vn,data:unref(Ne),"option-render":unref(wn),placeholder:unref($n),filterable:Tn.filterable,format:Tn.format,"filter-method":Tn.filterMethod,title:unref(En),"default-checked":Tn.rightDefaultChecked,props:ie.props,onCheckedChange:unref(ze)},{default:withCtx(()=>[renderSlot(Tn.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Transfer=_export_sfc$1(_sfc_main$f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const ElTransfer=withInstall(Transfer),NODE_KEY="$treeNodeId",markNodeData=function($,oe){!oe||oe[NODE_KEY]||Object.defineProperty(oe,NODE_KEY,{value:$.id,enumerable:!1,configurable:!1,writable:!1})},getNodeKey=function($,oe){return $?oe[$]:oe[NODE_KEY]},handleCurrentChange=($,oe,ae)=>{const ie=$.value.currentNode;ae();const le=$.value.currentNode;ie!==le&&oe("current-change",le?le.data:null,le)},getChildState=$=>{let oe=!0,ae=!0,ie=!0;for(let le=0,pe=$.length;le"u"){const pe=ie[oe];return pe===void 0?"":pe}};let nodeIdSeed=0;class Node{constructor(oe){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 ae in oe)hasOwn$4(oe,ae)&&(this[ae]=oe[ae]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const oe=this.store;if(!oe)throw new Error("[Node]store is required!");oe.registerNode(this);const ae=oe.props;if(ae&&typeof ae.isLeaf<"u"){const pe=getPropertyFromData(this,"isLeaf");typeof pe=="boolean"&&(this.isLeafByUser=pe)}if(oe.lazy!==!0&&this.data?(this.setData(this.data),oe.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&oe.lazy&&oe.defaultExpandAll&&this.expand(),Array.isArray(this.data)||markNodeData(this,this.data),!this.data)return;const ie=oe.defaultExpandedKeys,le=oe.key;le&&ie&&ie.includes(this.key)&&this.expand(null,oe.autoExpandParent),le&&oe.currentNodeKey!==void 0&&this.key===oe.currentNodeKey&&(oe.currentNode=this,oe.currentNode.isCurrent=!0),oe.lazy&&oe._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(oe){Array.isArray(oe)||markNodeData(this,oe),this.data=oe,this.childNodes=[];let ae;this.level===0&&Array.isArray(this.data)?ae=this.data:ae=getPropertyFromData(this,"children")||[];for(let ie=0,le=ae.length;ie-1)return oe.childNodes[ae+1]}return null}get previousSibling(){const oe=this.parent;if(oe){const ae=oe.childNodes.indexOf(this);if(ae>-1)return ae>0?oe.childNodes[ae-1]:null}return null}contains(oe,ae=!0){return(this.childNodes||[]).some(ie=>ie===oe||ae&&ie.contains(oe))}remove(){const oe=this.parent;oe&&oe.removeChild(this)}insertChild(oe,ae,ie){if(!oe)throw new Error("InsertChild error: child is required.");if(!(oe instanceof Node)){if(!ie){const le=this.getChildren(!0);le.includes(oe.data)||(typeof ae>"u"||ae<0?le.push(oe.data):le.splice(ae,0,oe.data))}Object.assign(oe,{parent:this,store:this.store}),oe=reactive(new Node(oe)),oe instanceof Node&&oe.initialize()}oe.level=this.level+1,typeof ae>"u"||ae<0?this.childNodes.push(oe):this.childNodes.splice(ae,0,oe),this.updateLeafState()}insertBefore(oe,ae){let ie;ae&&(ie=this.childNodes.indexOf(ae)),this.insertChild(oe,ie)}insertAfter(oe,ae){let ie;ae&&(ie=this.childNodes.indexOf(ae),ie!==-1&&(ie+=1)),this.insertChild(oe,ie)}removeChild(oe){const ae=this.getChildren()||[],ie=ae.indexOf(oe.data);ie>-1&&ae.splice(ie,1);const le=this.childNodes.indexOf(oe);le>-1&&(this.store&&this.store.deregisterNode(oe),oe.parent=null,this.childNodes.splice(le,1)),this.updateLeafState()}removeChildByData(oe){let ae=null;for(let ie=0;ie{if(ae){let le=this.parent;for(;le.level>0;)le.expanded=!0,le=le.parent}this.expanded=!0,oe&&oe(),this.childNodes.forEach(le=>{le.canFocus=!0})};this.shouldLoadData()?this.loadData(le=>{Array.isArray(le)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||reInitChecked(this),ie())}):ie()}doCreateChildren(oe,ae={}){oe.forEach(ie=>{this.insertChild(Object.assign({data:ie},ae),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(oe=>{oe.canFocus=!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;return}const oe=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!oe||oe.length===0;return}this.isLeaf=!1}setChecked(oe,ae,ie,le){if(this.indeterminate=oe==="half",this.checked=oe===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:_e,allWithoutDisable:Ce}=getChildState(this.childNodes);!this.isLeaf&&!_e&&Ce&&(this.checked=!1,oe=!1);const $e=()=>{if(ae){const xe=this.childNodes;for(let Fe=0,ze=xe.length;Fe{$e(),reInitChecked(this)},{checked:oe!==!1});return}else $e()}const pe=this.parent;!pe||pe.level===0||ie||reInitChecked(pe)}getChildren(oe=!1){if(this.level===0)return this.data;const ae=this.data;if(!ae)return null;const ie=this.store.props;let le="children";return ie&&(le=ie.children||"children"),ae[le]===void 0&&(ae[le]=null),oe&&!ae[le]&&(ae[le]=[]),ae[le]}updateChildren(){const oe=this.getChildren()||[],ae=this.childNodes.map(pe=>pe.data),ie={},le=[];oe.forEach((pe,_e)=>{const Ce=pe[NODE_KEY];!!Ce&&ae.findIndex(xe=>xe[NODE_KEY]===Ce)>=0?ie[Ce]={index:_e,data:pe}:le.push({index:_e,data:pe})}),this.store.lazy||ae.forEach(pe=>{ie[pe[NODE_KEY]]||this.removeChildByData(pe)}),le.forEach(({index:pe,data:_e})=>{this.insertChild({data:_e},pe)}),this.updateLeafState()}loadData(oe,ae={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(ae).length)){this.loading=!0;const ie=le=>{this.childNodes=[],this.doCreateChildren(le,ae),this.loaded=!0,this.loading=!1,this.updateLeafState(),oe&&oe.call(this,le)};this.store.load(this,ie)}else oe&&oe.call(this)}}class TreeStore{constructor(oe){this.currentNode=null,this.currentNodeKey=null;for(const ae in oe)hasOwn$4(oe,ae)&&(this[ae]=oe[ae]);this.nodesMap={}}initialize(){if(this.root=new Node({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const oe=this.load;oe(this.root,ae=>{this.root.doCreateChildren(ae),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(oe){const ae=this.filterNodeMethod,ie=this.lazy,le=function(pe){const _e=pe.root?pe.root.childNodes:pe.childNodes;if(_e.forEach(Ce=>{Ce.visible=ae.call(Ce,oe,Ce.data,Ce),le(Ce)}),!pe.visible&&_e.length){let Ce=!0;Ce=!_e.some($e=>$e.visible),pe.root?pe.root.visible=Ce===!1:pe.visible=Ce===!1}oe&&pe.visible&&!pe.isLeaf&&!ie&&pe.expand()};le(this)}setData(oe){oe!==this.root.data?(this.root.setData(oe),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(oe){if(oe instanceof Node)return oe;const ae=isObject$8(oe)?getNodeKey(this.key,oe):oe;return this.nodesMap[ae]||null}insertBefore(oe,ae){const ie=this.getNode(ae);ie.parent.insertBefore({data:oe},ie)}insertAfter(oe,ae){const ie=this.getNode(ae);ie.parent.insertAfter({data:oe},ie)}remove(oe){const ae=this.getNode(oe);ae&&ae.parent&&(ae===this.currentNode&&(this.currentNode=null),ae.parent.removeChild(ae))}append(oe,ae){const ie=ae?this.getNode(ae):this.root;ie&&ie.insertChild({data:oe})}_initDefaultCheckedNodes(){const oe=this.defaultCheckedKeys||[],ae=this.nodesMap;oe.forEach(ie=>{const le=ae[ie];le&&le.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(oe){(this.defaultCheckedKeys||[]).includes(oe.key)&&oe.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(oe){oe!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=oe,this._initDefaultCheckedNodes())}registerNode(oe){const ae=this.key;!oe||!oe.data||(ae?oe.key!==void 0&&(this.nodesMap[oe.key]=oe):this.nodesMap[oe.id]=oe)}deregisterNode(oe){!this.key||!oe||!oe.data||(oe.childNodes.forEach(ie=>{this.deregisterNode(ie)}),delete this.nodesMap[oe.key])}getCheckedNodes(oe=!1,ae=!1){const ie=[],le=function(pe){(pe.root?pe.root.childNodes:pe.childNodes).forEach(Ce=>{(Ce.checked||ae&&Ce.indeterminate)&&(!oe||oe&&Ce.isLeaf)&&ie.push(Ce.data),le(Ce)})};return le(this),ie}getCheckedKeys(oe=!1){return this.getCheckedNodes(oe).map(ae=>(ae||{})[this.key])}getHalfCheckedNodes(){const oe=[],ae=function(ie){(ie.root?ie.root.childNodes:ie.childNodes).forEach(pe=>{pe.indeterminate&&oe.push(pe.data),ae(pe)})};return ae(this),oe}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(oe=>(oe||{})[this.key])}_getAllNodes(){const oe=[],ae=this.nodesMap;for(const ie in ae)hasOwn$4(ae,ie)&&oe.push(ae[ie]);return oe}updateChildren(oe,ae){const ie=this.nodesMap[oe];if(!ie)return;const le=ie.childNodes;for(let pe=le.length-1;pe>=0;pe--){const _e=le[pe];this.remove(_e.data)}for(let pe=0,_e=ae.length;pe<_e;pe++){const Ce=ae[pe];this.append(Ce,ie.data)}}_setCheckedKeys(oe,ae=!1,ie){const le=this._getAllNodes().sort((Ce,$e)=>$e.level-Ce.level),pe=Object.create(null),_e=Object.keys(ie);le.forEach(Ce=>Ce.setChecked(!1,!1));for(let Ce=0,$e=le.length;Ce<$e;Ce++){const xe=le[Ce],Ie=xe.data[oe].toString();if(!_e.includes(Ie)){xe.checked&&!pe[Ie]&&xe.setChecked(!1,!1);continue}let Fe=xe.parent;for(;Fe&&Fe.level>0;)pe[Fe.data[oe]]=!0,Fe=Fe.parent;if(xe.isLeaf||this.checkStrictly){xe.setChecked(!0,!1);continue}if(xe.setChecked(!0,!0),ae){xe.setChecked(!1,!1);const ze=function(At){At.childNodes.forEach(hn=>{hn.isLeaf||hn.setChecked(!1,!1),ze(hn)})};ze(xe)}}}setCheckedNodes(oe,ae=!1){const ie=this.key,le={};oe.forEach(pe=>{le[(pe||{})[ie]]=!0}),this._setCheckedKeys(ie,ae,le)}setCheckedKeys(oe,ae=!1){this.defaultCheckedKeys=oe;const ie=this.key,le={};oe.forEach(pe=>{le[pe]=!0}),this._setCheckedKeys(ie,ae,le)}setDefaultExpandedKeys(oe){oe=oe||[],this.defaultExpandedKeys=oe,oe.forEach(ae=>{const ie=this.getNode(ae);ie&&ie.expand(null,this.autoExpandParent)})}setChecked(oe,ae,ie){const le=this.getNode(oe);le&&le.setChecked(!!ae,ie)}getCurrentNode(){return this.currentNode}setCurrentNode(oe){const ae=this.currentNode;ae&&(ae.isCurrent=!1),this.currentNode=oe,this.currentNode.isCurrent=!0}setUserCurrentNode(oe,ae=!0){const ie=oe[this.key],le=this.nodesMap[ie];this.setCurrentNode(le),ae&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(oe,ae=!0){if(oe==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const ie=this.getNode(oe);ie&&(this.setCurrentNode(ie),ae&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const _sfc_main$e=defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup($){const oe=useNamespace("tree"),ae=inject("NodeInstance"),ie=inject("RootTree");return()=>{const le=$.node,{data:pe,store:_e}=le;return $.renderContent?$.renderContent(h$3,{_self:ae,node:le,data:pe,store:_e}):ie.ctx.slots.default?ie.ctx.slots.default({node:le,data:pe}):h$3("span",{class:oe.be("node","label")},[le.label])}}});var NodeContent=_export_sfc$1(_sfc_main$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function useNodeExpandEventBroadcast($){const oe=inject("TreeNodeMap",null),ae={treeNodeExpand:ie=>{$.node!==ie&&$.node.collapse()},children:[]};return oe&&oe.children.push(ae),provide("TreeNodeMap",ae),{broadcastExpanded:ie=>{if($.accordion)for(const le of ae.children)le.treeNodeExpand(ie)}}}const dragEventsKey=Symbol("dragEvents");function useDragNodeHandler({props:$,ctx:oe,el$:ae,dropIndicator$:ie,store:le}){const pe=useNamespace("tree"),_e=ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return provide(dragEventsKey,{treeNodeDragStart:({event:Ie,treeNode:Ne})=>{if(typeof $.allowDrag=="function"&&!$.allowDrag(Ne.node))return Ie.preventDefault(),!1;Ie.dataTransfer.effectAllowed="move";try{Ie.dataTransfer.setData("text/plain","")}catch{}_e.value.draggingNode=Ne,oe.emit("node-drag-start",Ne.node,Ie)},treeNodeDragOver:({event:Ie,treeNode:Ne})=>{const Fe=Ne,ze=_e.value.dropNode;ze&&ze!==Fe&&removeClass(ze.$el,pe.is("drop-inner"));const At=_e.value.draggingNode;if(!At||!Fe)return;let Lt=!0,hn=!0,vn=!0,_n=!0;typeof $.allowDrop=="function"&&(Lt=$.allowDrop(At.node,Fe.node,"prev"),_n=hn=$.allowDrop(At.node,Fe.node,"inner"),vn=$.allowDrop(At.node,Fe.node,"next")),Ie.dataTransfer.dropEffect=hn||Lt||vn?"move":"none",(Lt||hn||vn)&&ze!==Fe&&(ze&&oe.emit("node-drag-leave",At.node,ze.node,Ie),oe.emit("node-drag-enter",At.node,Fe.node,Ie)),(Lt||hn||vn)&&(_e.value.dropNode=Fe),Fe.node.nextSibling===At.node&&(vn=!1),Fe.node.previousSibling===At.node&&(Lt=!1),Fe.node.contains(At.node,!1)&&(hn=!1),(At.node===Fe.node||At.node.contains(Fe.node))&&(Lt=!1,hn=!1,vn=!1);const bn=Fe.$el.getBoundingClientRect(),Cn=ae.value.getBoundingClientRect();let En;const $n=Lt?hn?.25:vn?.45:1:-1,wn=vn?hn?.75:Lt?.55:0:1;let Tn=-9999;const xn=Ie.clientY-bn.top;xnbn.height*wn?En="after":hn?En="inner":En="none";const kn=Fe.$el.querySelector(`.${pe.be("node","expand-icon")}`).getBoundingClientRect(),An=ie.value;En==="before"?Tn=kn.top-Cn.top:En==="after"&&(Tn=kn.bottom-Cn.top),An.style.top=`${Tn}px`,An.style.left=`${kn.right-Cn.left}px`,En==="inner"?addClass(Fe.$el,pe.is("drop-inner")):removeClass(Fe.$el,pe.is("drop-inner")),_e.value.showDropIndicator=En==="before"||En==="after",_e.value.allowDrop=_e.value.showDropIndicator||_n,_e.value.dropType=En,oe.emit("node-drag-over",At.node,Fe.node,Ie)},treeNodeDragEnd:Ie=>{const{draggingNode:Ne,dropType:Fe,dropNode:ze}=_e.value;if(Ie.preventDefault(),Ie.dataTransfer.dropEffect="move",Ne&&ze){const At={data:Ne.node.data};Fe!=="none"&&Ne.node.remove(),Fe==="before"?ze.node.parent.insertBefore(At,ze.node):Fe==="after"?ze.node.parent.insertAfter(At,ze.node):Fe==="inner"&&ze.node.insertChild(At),Fe!=="none"&&le.value.registerNode(At),removeClass(ze.$el,pe.is("drop-inner")),oe.emit("node-drag-end",Ne.node,ze.node,Fe,Ie),Fe!=="none"&&oe.emit("node-drop",Ne.node,ze.node,Fe,Ie)}Ne&&!ze&&oe.emit("node-drag-end",Ne.node,null,Fe,Ie),_e.value.showDropIndicator=!1,_e.value.draggingNode=null,_e.value.dropNode=null,_e.value.allowDrop=!0}}),{dragState:_e}}const _sfc_main$d=defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:_CollapseTransition,ElCheckbox,NodeContent,ElIcon,Loading:loading_default},props:{node:{type:Node,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup($,oe){const ae=useNamespace("tree"),{broadcastExpanded:ie}=useNodeExpandEventBroadcast($),le=inject("RootTree"),pe=ref(!1),_e=ref(!1),Ce=ref(null),$e=ref(null),xe=ref(null),Ie=inject(dragEventsKey),Ne=getCurrentInstance();provide("NodeInstance",Ne),$.node.expanded&&(pe.value=!0,_e.value=!0);const Fe=le.props.children||"children";watch(()=>{const xn=$.node.data[Fe];return xn&&[...xn]},()=>{$.node.updateChildren()}),watch(()=>$.node.indeterminate,xn=>{Lt($.node.checked,xn)}),watch(()=>$.node.checked,xn=>{Lt(xn,$.node.indeterminate)}),watch(()=>$.node.expanded,xn=>{nextTick(()=>pe.value=xn),xn&&(_e.value=!0)});const ze=xn=>getNodeKey(le.props.nodeKey,xn.data),At=xn=>{const kn=$.props.class;if(!kn)return{};let An;if(isFunction$5(kn)){const{data:On}=xn;An=kn(On,xn)}else An=kn;return isString$7(An)?{[An]:!0}:An},Lt=(xn,kn)=>{(Ce.value!==xn||$e.value!==kn)&&le.ctx.emit("check-change",$.node.data,xn,kn),Ce.value=xn,$e.value=kn},hn=xn=>{handleCurrentChange(le.store,le.ctx.emit,()=>le.store.value.setCurrentNode($.node)),le.currentNode.value=$.node,le.props.expandOnClickNode&&_n(),le.props.checkOnClickNode&&!$.node.disabled&&bn(null,{target:{checked:!$.node.checked}}),le.ctx.emit("node-click",$.node.data,$.node,Ne,xn)},vn=xn=>{le.instance.vnode.props.onNodeContextmenu&&(xn.stopPropagation(),xn.preventDefault()),le.ctx.emit("node-contextmenu",xn,$.node.data,$.node,Ne)},_n=()=>{$.node.isLeaf||(pe.value?(le.ctx.emit("node-collapse",$.node.data,$.node,Ne),$.node.collapse()):($.node.expand(),oe.emit("node-expand",$.node.data,$.node,Ne)))},bn=(xn,kn)=>{$.node.setChecked(kn.target.checked,!le.props.checkStrictly),nextTick(()=>{const An=le.store.value;le.ctx.emit("check",$.node.data,{checkedNodes:An.getCheckedNodes(),checkedKeys:An.getCheckedKeys(),halfCheckedNodes:An.getHalfCheckedNodes(),halfCheckedKeys:An.getHalfCheckedKeys()})})};return{ns:ae,node$:xe,tree:le,expanded:pe,childNodeRendered:_e,oldChecked:Ce,oldIndeterminate:$e,getNodeKey:ze,getNodeClass:At,handleSelectChange:Lt,handleClick:hn,handleContextMenu:vn,handleExpandIconClick:_n,handleCheckChange:bn,handleChildNodeExpand:(xn,kn,An)=>{ie(kn),le.ctx.emit("node-expand",xn,kn,An)},handleDragStart:xn=>{le.props.draggable&&Ie.treeNodeDragStart({event:xn,treeNode:$})},handleDragOver:xn=>{xn.preventDefault(),le.props.draggable&&Ie.treeNodeDragOver({event:xn,treeNode:{$el:xe.value,node:$.node}})},handleDrop:xn=>{xn.preventDefault()},handleDragEnd:xn=>{le.props.draggable&&Ie.treeNodeDragEnd(xn)},CaretRight:caret_right_default}}}),_hoisted_1$9=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],_hoisted_2$6=["aria-expanded"];function _sfc_render$3($,oe,ae,ie,le,pe){const _e=resolveComponent("el-icon"),Ce=resolveComponent("el-checkbox"),$e=resolveComponent("loading"),xe=resolveComponent("node-content"),Ie=resolveComponent("el-tree-node"),Ne=resolveComponent("el-collapse-transition");return withDirectives((openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([$.ns.b("node"),$.ns.is("expanded",$.expanded),$.ns.is("current",$.node.isCurrent),$.ns.is("hidden",!$.node.visible),$.ns.is("focusable",!$.node.disabled),$.ns.is("checked",!$.node.disabled&&$.node.checked),$.getNodeClass($.node)]),role:"treeitem",tabindex:"-1","aria-expanded":$.expanded,"aria-disabled":$.node.disabled,"aria-checked":$.node.checked,draggable:$.tree.props.draggable,"data-key":$.getNodeKey($.node),onClick:oe[1]||(oe[1]=withModifiers((...Fe)=>$.handleClick&&$.handleClick(...Fe),["stop"])),onContextmenu:oe[2]||(oe[2]=(...Fe)=>$.handleContextMenu&&$.handleContextMenu(...Fe)),onDragstart:oe[3]||(oe[3]=withModifiers((...Fe)=>$.handleDragStart&&$.handleDragStart(...Fe),["stop"])),onDragover:oe[4]||(oe[4]=withModifiers((...Fe)=>$.handleDragOver&&$.handleDragOver(...Fe),["stop"])),onDragend:oe[5]||(oe[5]=withModifiers((...Fe)=>$.handleDragEnd&&$.handleDragEnd(...Fe),["stop"])),onDrop:oe[6]||(oe[6]=withModifiers((...Fe)=>$.handleDrop&&$.handleDrop(...Fe),["stop"]))},[createBaseVNode("div",{class:normalizeClass($.ns.be("node","content")),style:normalizeStyle$1({paddingLeft:($.node.level-1)*$.tree.props.indent+"px"})},[$.tree.props.icon||$.CaretRight?(openBlock(),createBlock(_e,{key:0,class:normalizeClass([$.ns.be("node","expand-icon"),$.ns.is("leaf",$.node.isLeaf),{expanded:!$.node.isLeaf&&$.expanded}]),onClick:withModifiers($.handleExpandIconClick,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.tree.props.icon||$.CaretRight)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),$.showCheckbox?(openBlock(),createBlock(Ce,{key:1,"model-value":$.node.checked,indeterminate:$.node.indeterminate,disabled:!!$.node.disabled,onClick:oe[0]||(oe[0]=withModifiers(()=>{},["stop"])),onChange:$.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):createCommentVNode("v-if",!0),$.node.loading?(openBlock(),createBlock(_e,{key:2,class:normalizeClass([$.ns.be("node","loading-icon"),$.ns.is("loading")])},{default:withCtx(()=>[createVNode($e)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(xe,{node:$.node,"render-content":$.renderContent},null,8,["node","render-content"])],6),createVNode(Ne,null,{default:withCtx(()=>[!$.renderAfterExpand||$.childNodeRendered?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.be("node","children")),role:"group","aria-expanded":$.expanded},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.node.childNodes,Fe=>(openBlock(),createBlock(Ie,{key:$.getNodeKey(Fe),"render-content":$.renderContent,"render-after-expand":$.renderAfterExpand,"show-checkbox":$.showCheckbox,node:Fe,accordion:$.accordion,props:$.props,onNodeExpand:$.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,_hoisted_2$6)),[[vShow,$.expanded]]):createCommentVNode("v-if",!0)]),_:1})],42,_hoisted_1$9)),[[vShow,$.node.visible]])}var ElTreeNode$1=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$3],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function useKeydown({el$:$},oe){const ae=useNamespace("tree"),ie=shallowRef([]),le=shallowRef([]);onMounted(()=>{_e()}),onUpdated(()=>{ie.value=Array.from($.value.querySelectorAll("[role=treeitem]")),le.value=Array.from($.value.querySelectorAll("input[type=checkbox]"))}),watch(le,Ce=>{Ce.forEach($e=>{$e.setAttribute("tabindex","-1")})}),useEventListener$1($,"keydown",Ce=>{const $e=Ce.target;if(!$e.className.includes(ae.b("node")))return;const xe=Ce.code;ie.value=Array.from($.value.querySelectorAll(`.${ae.is("focusable")}[role=treeitem]`));const Ie=ie.value.indexOf($e);let Ne;if([EVENT_CODE.up,EVENT_CODE.down].includes(xe)){if(Ce.preventDefault(),xe===EVENT_CODE.up){Ne=Ie===-1?0:Ie!==0?Ie-1:ie.value.length-1;const ze=Ne;for(;!oe.value.getNode(ie.value[Ne].dataset.key).canFocus;){if(Ne--,Ne===ze){Ne=-1;break}Ne<0&&(Ne=ie.value.length-1)}}else{Ne=Ie===-1?0:Ie=ie.value.length&&(Ne=0)}}Ne!==-1&&ie.value[Ne].focus()}[EVENT_CODE.left,EVENT_CODE.right].includes(xe)&&(Ce.preventDefault(),$e.click());const Fe=$e.querySelector('[type="checkbox"]');[EVENT_CODE.enter,EVENT_CODE.space].includes(xe)&&Fe&&(Ce.preventDefault(),Fe.click())});const _e=()=>{var Ce;ie.value=Array.from($.value.querySelectorAll(`.${ae.is("focusable")}[role=treeitem]`)),le.value=Array.from($.value.querySelectorAll("input[type=checkbox]"));const $e=$.value.querySelectorAll(`.${ae.is("checked")}[role=treeitem]`);if($e.length){$e[0].setAttribute("tabindex","0");return}(Ce=ie.value[0])==null||Ce.setAttribute("tabindex","0")}}const _sfc_main$c=defineComponent({name:"ElTree",components:{ElTreeNode:ElTreeNode$1},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:iconPropType}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup($,oe){const{t:ae}=useLocale(),ie=useNamespace("tree"),le=ref(new TreeStore({key:$.nodeKey,data:$.data,lazy:$.lazy,props:$.props,load:$.load,currentNodeKey:$.currentNodeKey,checkStrictly:$.checkStrictly,checkDescendants:$.checkDescendants,defaultCheckedKeys:$.defaultCheckedKeys,defaultExpandedKeys:$.defaultExpandedKeys,autoExpandParent:$.autoExpandParent,defaultExpandAll:$.defaultExpandAll,filterNodeMethod:$.filterNodeMethod}));le.value.initialize();const pe=ref(le.value.root),_e=ref(null),Ce=ref(null),$e=ref(null),{broadcastExpanded:xe}=useNodeExpandEventBroadcast($),{dragState:Ie}=useDragNodeHandler({props:$,ctx:oe,el$:Ce,dropIndicator$:$e,store:le});useKeydown({el$:Ce},le);const Ne=computed(()=>{const{childNodes:Mn}=pe.value;return!Mn||Mn.length===0||Mn.every(({visible:Fn})=>!Fn)});watch(()=>$.currentNodeKey,Mn=>{le.value.setCurrentNodeKey(Mn)}),watch(()=>$.defaultCheckedKeys,Mn=>{le.value.setDefaultCheckedKey(Mn)}),watch(()=>$.defaultExpandedKeys,Mn=>{le.value.setDefaultExpandedKeys(Mn)}),watch(()=>$.data,Mn=>{le.value.setData(Mn)},{deep:!0}),watch(()=>$.checkStrictly,Mn=>{le.value.checkStrictly=Mn});const Fe=Mn=>{if(!$.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");le.value.filter(Mn)},ze=Mn=>getNodeKey($.nodeKey,Mn.data),At=Mn=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const Fn=le.value.getNode(Mn);if(!Fn)return[];const Vn=[Fn.data];let jn=Fn.parent;for(;jn&&jn!==pe.value;)Vn.push(jn.data),jn=jn.parent;return Vn.reverse()},Lt=(Mn,Fn)=>le.value.getCheckedNodes(Mn,Fn),hn=Mn=>le.value.getCheckedKeys(Mn),vn=()=>{const Mn=le.value.getCurrentNode();return Mn?Mn.data:null},_n=()=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const Mn=vn();return Mn?Mn[$.nodeKey]:null},bn=(Mn,Fn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");le.value.setCheckedNodes(Mn,Fn)},Cn=(Mn,Fn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");le.value.setCheckedKeys(Mn,Fn)},En=(Mn,Fn,Vn)=>{le.value.setChecked(Mn,Fn,Vn)},$n=()=>le.value.getHalfCheckedNodes(),wn=()=>le.value.getHalfCheckedKeys(),Tn=(Mn,Fn=!0)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");handleCurrentChange(le,oe.emit,()=>le.value.setUserCurrentNode(Mn,Fn))},xn=(Mn,Fn=!0)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");handleCurrentChange(le,oe.emit,()=>le.value.setCurrentNodeKey(Mn,Fn))},kn=Mn=>le.value.getNode(Mn),An=Mn=>{le.value.remove(Mn)},On=(Mn,Fn)=>{le.value.append(Mn,Fn)},Nn=(Mn,Fn)=>{le.value.insertBefore(Mn,Fn)},Rn=(Mn,Fn)=>{le.value.insertAfter(Mn,Fn)},zn=(Mn,Fn,Vn)=>{xe(Fn),oe.emit("node-expand",Mn,Fn,Vn)},Bn=(Mn,Fn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");le.value.updateChildren(Mn,Fn)};return provide("RootTree",{ctx:oe,props:$,store:le,root:pe,currentNode:_e,instance:getCurrentInstance()}),provide(formItemContextKey,void 0),{ns:ie,store:le,root:pe,currentNode:_e,dragState:Ie,el$:Ce,dropIndicator$:$e,isEmpty:Ne,filter:Fe,getNodeKey:ze,getNodePath:At,getCheckedNodes:Lt,getCheckedKeys:hn,getCurrentNode:vn,getCurrentKey:_n,setCheckedNodes:bn,setCheckedKeys:Cn,setChecked:En,getHalfCheckedNodes:$n,getHalfCheckedKeys:wn,setCurrentNode:Tn,setCurrentKey:xn,t:ae,getNode:kn,remove:An,append:On,insertBefore:Nn,insertAfter:Rn,handleNodeExpand:zn,updateKeyChildren:Bn}}});function _sfc_render$2($,oe,ae,ie,le,pe){const _e=resolveComponent("el-tree-node");return openBlock(),createElementBlock("div",{ref:"el$",class:normalizeClass([$.ns.b(),$.ns.is("dragging",!!$.dragState.draggingNode),$.ns.is("drop-not-allow",!$.dragState.allowDrop),$.ns.is("drop-inner",$.dragState.dropType==="inner"),{[$.ns.m("highlight-current")]:$.highlightCurrent}]),role:"tree"},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.root.childNodes,Ce=>(openBlock(),createBlock(_e,{key:$.getNodeKey(Ce),node:Ce,props:$.props,accordion:$.accordion,"render-after-expand":$.renderAfterExpand,"show-checkbox":$.showCheckbox,"render-content":$.renderContent,onNodeExpand:$.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),$.isEmpty?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("empty-block"))},[renderSlot($.$slots,"empty",{},()=>{var Ce;return[createBaseVNode("span",{class:normalizeClass($.ns.e("empty-text"))},toDisplayString$1((Ce=$.emptyText)!=null?Ce:$.t("el.tree.emptyText")),3)]})],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{ref:"dropIndicator$",class:normalizeClass($.ns.e("drop-indicator"))},null,2),[[vShow,$.dragState.showDropIndicator]])],2)}var Tree=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$2],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Tree.install=$=>{$.component(Tree.name,Tree)};const _Tree=Tree,ElTree=_Tree,useSelect=($,{attrs:oe},{tree:ae,key:ie})=>{const le=useNamespace("tree-select"),pe={...pick$1(toRefs($),Object.keys(ElSelect.props)),...oe,valueKey:ie,popperClass:computed(()=>{const _e=[le.e("popper")];return $.popperClass&&_e.push($.popperClass),_e.join(" ")}),filterMethod:(_e="")=>{$.filterMethod&&$.filterMethod(_e),nextTick(()=>{var Ce;(Ce=ae.value)==null||Ce.filter(_e)})},onVisibleChange:_e=>{var Ce;(Ce=oe.onVisibleChange)==null||Ce.call(oe,_e),$.filterable&&_e&&pe.filterMethod()}};return pe},component=defineComponent({extends:ElOption,setup($,oe){const ae=ElOption.setup($,oe);delete ae.selectOptionClick;const ie=getCurrentInstance().proxy;return nextTick(()=>{ae.select.cachedOptions.get(ie.value)||ae.select.onOptionCreate(ie)}),ae},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function isValidValue($){return $||$===0}function isValidArray($){return Array.isArray($)&&$.length}function toValidArray($){return Array.isArray($)?$:isValidValue($)?[$]:[]}function treeFind($,oe,ae,ie,le){for(let pe=0;pe<$.length;pe++){const _e=$[pe];if(oe(_e,pe,$,le))return ie?ie(_e,pe,$,le):_e;{const Ce=ae(_e);if(isValidArray(Ce)){const $e=treeFind(Ce,oe,ae,ie,_e);if($e)return $e}}}}function treeEach($,oe,ae,ie){for(let le=0;le<$.length;le++){const pe=$[le];oe(pe,le,$,ie);const _e=ae(pe);isValidArray(_e)&&treeEach(_e,oe,ae,pe)}}const useTree$1=($,{attrs:oe,slots:ae,emit:ie},{select:le,tree:pe,key:_e})=>{watch(()=>$.modelValue,()=>{$.showCheckbox&&nextTick(()=>{const Ne=pe.value;Ne&&!isEqual$1(Ne.getCheckedKeys(),toValidArray($.modelValue))&&Ne.setCheckedKeys(toValidArray($.modelValue))})},{immediate:!0,deep:!0});const Ce=computed(()=>({value:_e.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...$.props})),$e=(Ne,Fe)=>{var ze;const At=Ce.value[Ne];return isFunction$5(At)?At(Fe,(ze=pe.value)==null?void 0:ze.getNode($e("value",Fe))):Fe[At]},xe=toValidArray($.modelValue).map(Ne=>treeFind($.data||[],Fe=>$e("value",Fe)===Ne,Fe=>$e("children",Fe),(Fe,ze,At,Lt)=>Lt&&$e("value",Lt))).filter(Ne=>isValidValue(Ne)),Ie=computed(()=>{if(!$.renderAfterExpand&&!$.lazy)return[];const Ne=[];return treeEach($.data.concat($.cacheData),Fe=>{const ze=$e("value",Fe);Ne.push({value:ze,currentLabel:$e("label",Fe),isDisabled:$e("disabled",Fe)})},Fe=>$e("children",Fe)),Ne});return{...pick$1(toRefs($),Object.keys(_Tree.props)),...oe,nodeKey:_e,expandOnClickNode:computed(()=>!$.checkStrictly&&$.expandOnClickNode),defaultExpandedKeys:computed(()=>$.defaultExpandedKeys?$.defaultExpandedKeys.concat(xe):xe),renderContent:(Ne,{node:Fe,data:ze,store:At})=>Ne(component,{value:$e("value",ze),label:$e("label",ze),disabled:$e("disabled",ze)},$.renderContent?()=>$.renderContent(Ne,{node:Fe,data:ze,store:At}):ae.default?()=>ae.default({node:Fe,data:ze,store:At}):void 0),filterNodeMethod:(Ne,Fe,ze)=>{var At;return $.filterNodeMethod?$.filterNodeMethod(Ne,Fe,ze):Ne?(At=$e("label",Fe))==null?void 0:At.includes(Ne):!0},onNodeClick:(Ne,Fe,ze)=>{var At,Lt,hn;if((At=oe.onNodeClick)==null||At.call(oe,Ne,Fe,ze),!($.showCheckbox&&$.checkOnClickNode))if(!$.showCheckbox&&($.checkStrictly||Fe.isLeaf)){if(!$e("disabled",Ne)){const vn=(Lt=le.value)==null?void 0:Lt.options.get($e("value",Ne));(hn=le.value)==null||hn.handleOptionSelect(vn,!0)}}else $.expandOnClickNode&&ze.proxy.handleExpandIconClick()},onCheck:(Ne,Fe)=>{var ze;(ze=oe.onCheck)==null||ze.call(oe,Ne,Fe);const At=$e("value",Ne);if($.checkStrictly)ie(UPDATE_MODEL_EVENT,$.multiple?Fe.checkedKeys:Fe.checkedKeys.includes(At)?At:void 0);else if($.multiple)ie(UPDATE_MODEL_EVENT,pe.value.getCheckedKeys(!0));else{const Lt=treeFind([Ne],_n=>!isValidArray($e("children",_n))&&!$e("disabled",_n),_n=>$e("children",_n)),hn=Lt?$e("value",Lt):void 0,vn=isValidValue($.modelValue)&&!!treeFind([Ne],_n=>$e("value",_n)===$.modelValue,_n=>$e("children",_n));ie(UPDATE_MODEL_EVENT,hn===$.modelValue||vn?void 0:hn)}},cacheOptions:Ie}};var CacheOptions=defineComponent({props:{data:{type:Array,default:()=>[]}},setup($){const oe=inject(selectKey);return watch(()=>$.data,()=>{var ae;$.data.forEach(le=>{oe.cachedOptions.has(le.value)||oe.cachedOptions.set(le.value,le)});const ie=((ae=oe.selectWrapper)==null?void 0:ae.querySelectorAll("input"))||[];Array.from(ie).includes(document.activeElement)||oe.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const _sfc_main$b=defineComponent({name:"ElTreeSelect",inheritAttrs:!1,props:{...ElSelect.props,..._Tree.props,cacheData:{type:Array,default:()=>[]}},setup($,oe){const{slots:ae,expose:ie}=oe,le=ref(),pe=ref(),_e=computed(()=>$.nodeKey||$.valueKey||"value"),Ce=useSelect($,oe,{select:le,tree:pe,key:_e}),{cacheOptions:$e,...xe}=useTree$1($,oe,{select:le,tree:pe,key:_e}),Ie=reactive({});return ie(Ie),onMounted(()=>{Object.assign(Ie,{...pick$1(pe.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...pick$1(le.value,["focus","blur"])})}),()=>h$3(ElSelect,reactive({...Ce,ref:Ne=>le.value=Ne}),{...ae,default:()=>[h$3(CacheOptions,{data:$e.value}),h$3(_Tree,reactive({...xe,ref:Ne=>pe.value=Ne}))]})}});var TreeSelect=_export_sfc$1(_sfc_main$b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);TreeSelect.install=$=>{$.component(TreeSelect.name,TreeSelect)};const _TreeSelect=TreeSelect,ElTreeSelect=_TreeSelect,ROOT_TREE_INJECTION_KEY=Symbol(),EMPTY_NODE={key:-1,level:-1,data:{}};var TreeOptionsEnum=($=>($.KEY="id",$.LABEL="label",$.CHILDREN="children",$.DISABLED="disabled",$))(TreeOptionsEnum||{}),SetOperationEnum=($=>($.ADD="add",$.DELETE="delete",$))(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"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:definePropType(Array),default:()=>mutable([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:definePropType(Array),default:()=>mutable([])},indent:{type:Number,default:16},itemSize,icon:{type:iconPropType},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:definePropType([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:definePropType(Function)},perfMode:{type:Boolean,default:!0}}),treeNodeProps=buildProps({node:{type:definePropType(Object),default:()=>mutable(EMPTY_NODE)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize}),treeNodeContentProps=buildProps({node:{type:definePropType(Object),required:!0}}),NODE_CLICK="node-click",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]:($,oe,ae)=>$&&oe&&ae,[NODE_EXPAND]:($,oe)=>$&&oe,[NODE_COLLAPSE]:($,oe)=>$&&oe,[CURRENT_CHANGE]:($,oe)=>$&&oe,[NODE_CHECK]:($,oe)=>$&&oe,[NODE_CHECK_CHANGE]:($,oe)=>$&&typeof oe=="boolean",[NODE_CONTEXTMENU]:($,oe,ae)=>$&&oe&&ae},treeNodeEmits={click:($,oe)=>!!($&&oe),toggle:$=>!!$,check:($,oe)=>$&&typeof oe=="boolean"};function useCheck($,oe){const ae=ref(new Set),ie=ref(new Set),{emit:le}=getCurrentInstance();watch([()=>oe.value,()=>$.defaultCheckedKeys],()=>nextTick(()=>{_n($.defaultCheckedKeys)}),{immediate:!0});const pe=()=>{if(!oe.value||!$.showCheckbox||$.checkStrictly)return;const{levelTreeNodeMap:bn,maxLevel:Cn}=oe.value,En=ae.value,$n=new Set;for(let wn=Cn-1;wn>=1;--wn){const Tn=bn.get(wn);Tn&&Tn.forEach(xn=>{const kn=xn.children;if(kn){let An=!0,On=!1;for(const Nn of kn){const Rn=Nn.key;if(En.has(Rn))On=!0;else if($n.has(Rn)){An=!1,On=!0;break}else An=!1}An?En.add(xn.key):On?($n.add(xn.key),En.delete(xn.key)):(En.delete(xn.key),$n.delete(xn.key))}})}ie.value=$n},_e=bn=>ae.value.has(bn.key),Ce=bn=>ie.value.has(bn.key),$e=(bn,Cn,En=!0)=>{const $n=ae.value,wn=(Tn,xn)=>{$n[xn?SetOperationEnum.ADD:SetOperationEnum.DELETE](Tn.key);const kn=Tn.children;!$.checkStrictly&&kn&&kn.forEach(An=>{An.disabled||wn(An,xn)})};wn(bn,Cn),pe(),En&&xe(bn,Cn)},xe=(bn,Cn)=>{const{checkedNodes:En,checkedKeys:$n}=At(),{halfCheckedNodes:wn,halfCheckedKeys:Tn}=Lt();le(NODE_CHECK,bn.data,{checkedKeys:$n,checkedNodes:En,halfCheckedKeys:Tn,halfCheckedNodes:wn}),le(NODE_CHECK_CHANGE,bn.data,Cn)};function Ie(bn=!1){return At(bn).checkedKeys}function Ne(bn=!1){return At(bn).checkedNodes}function Fe(){return Lt().halfCheckedKeys}function ze(){return Lt().halfCheckedNodes}function At(bn=!1){const Cn=[],En=[];if(oe!=null&&oe.value&&$.showCheckbox){const{treeNodeMap:$n}=oe.value;ae.value.forEach(wn=>{const Tn=$n.get(wn);Tn&&(!bn||bn&&Tn.isLeaf)&&(En.push(wn),Cn.push(Tn.data))})}return{checkedKeys:En,checkedNodes:Cn}}function Lt(){const bn=[],Cn=[];if(oe!=null&&oe.value&&$.showCheckbox){const{treeNodeMap:En}=oe.value;ie.value.forEach($n=>{const wn=En.get($n);wn&&(Cn.push($n),bn.push(wn.data))})}return{halfCheckedNodes:bn,halfCheckedKeys:Cn}}function hn(bn){ae.value.clear(),ie.value.clear(),_n(bn)}function vn(bn,Cn){if(oe!=null&&oe.value&&$.showCheckbox){const En=oe.value.treeNodeMap.get(bn);En&&$e(En,Cn,!1)}}function _n(bn){if(oe!=null&&oe.value){const{treeNodeMap:Cn}=oe.value;if($.showCheckbox&&Cn&&bn)for(const En of bn){const $n=Cn.get(En);$n&&!_e($n)&&$e($n,!0,!1)}}}return{updateCheckedKeys:pe,toggleCheckbox:$e,isChecked:_e,isIndeterminate:Ce,getCheckedKeys:Ie,getCheckedNodes:Ne,getHalfCheckedKeys:Fe,getHalfCheckedNodes:ze,setChecked:vn,setCheckedKeys:hn}}function useFilter($,oe){const ae=ref(new Set([])),ie=ref(new Set([])),le=computed(()=>isFunction$5($.filterMethod));function pe(Ce){var $e;if(!le.value)return;const xe=new Set,Ie=ie.value,Ne=ae.value,Fe=[],ze=(($e=oe.value)==null?void 0:$e.treeNodes)||[],At=$.filterMethod;Ne.clear();function Lt(hn){hn.forEach(vn=>{Fe.push(vn),At!=null&&At(Ce,vn.data)?Fe.forEach(bn=>{xe.add(bn.key)}):vn.isLeaf&&Ne.add(vn.key);const _n=vn.children;if(_n&&Lt(_n),!vn.isLeaf){if(!xe.has(vn.key))Ne.add(vn.key);else if(_n){let bn=!0;for(const Cn of _n)if(!Ne.has(Cn.key)){bn=!1;break}bn?Ie.add(vn.key):Ie.delete(vn.key)}}Fe.pop()})}return Lt(ze),xe}function _e(Ce){return ie.value.has(Ce.key)}return{hiddenExpandIconKeySet:ie,hiddenNodeKeySet:ae,doFilter:pe,isForceHiddenExpandIcon:_e}}function useTree($,oe){const ae=ref(new Set($.defaultExpandedKeys)),ie=ref(),le=shallowRef();watch(()=>$.currentNodeKey,qn=>{ie.value=qn},{immediate:!0}),watch(()=>$.data,qn=>{er(qn)},{immediate:!0});const{isIndeterminate:pe,isChecked:_e,toggleCheckbox:Ce,getCheckedKeys:$e,getCheckedNodes:xe,getHalfCheckedKeys:Ie,getHalfCheckedNodes:Ne,setChecked:Fe,setCheckedKeys:ze}=useCheck($,le),{doFilter:At,hiddenNodeKeySet:Lt,isForceHiddenExpandIcon:hn}=useFilter($,le),vn=computed(()=>{var qn;return((qn=$.props)==null?void 0:qn.value)||TreeOptionsEnum.KEY}),_n=computed(()=>{var qn;return((qn=$.props)==null?void 0:qn.children)||TreeOptionsEnum.CHILDREN}),bn=computed(()=>{var qn;return((qn=$.props)==null?void 0:qn.disabled)||TreeOptionsEnum.DISABLED}),Cn=computed(()=>{var qn;return((qn=$.props)==null?void 0:qn.label)||TreeOptionsEnum.LABEL}),En=computed(()=>{const qn=ae.value,Yn=Lt.value,ar=[],pr=le.value&&le.value.treeNodes||[];function Un(){const tr=[];for(let ur=pr.length-1;ur>=0;--ur)tr.push(pr[ur]);for(;tr.length;){const ur=tr.pop();if(ur&&(Yn.has(ur.key)||ar.push(ur),qn.has(ur.key))){const _r=ur.children;if(_r){const Er=_r.length;for(let sr=Er-1;sr>=0;--sr)tr.push(_r[sr])}}}}return Un(),ar}),$n=computed(()=>En.value.length>0);function wn(qn){const Yn=new Map,ar=new Map;let pr=1;function Un(ur,_r=1,Er=void 0){var sr;const Pr=[];for(const Sr of ur){const kr=kn(Sr),mr={level:_r,key:kr,data:Sr};mr.label=On(Sr),mr.parent=Er;const lr=xn(Sr);mr.disabled=An(Sr),mr.isLeaf=!lr||lr.length===0,lr&&lr.length&&(mr.children=Un(lr,_r+1,mr)),Pr.push(mr),Yn.set(kr,mr),ar.has(_r)||ar.set(_r,[]),(sr=ar.get(_r))==null||sr.push(mr)}return _r>pr&&(pr=_r),Pr}const tr=Un(qn);return{treeNodeMap:Yn,levelTreeNodeMap:ar,maxLevel:pr,treeNodes:tr}}function Tn(qn){const Yn=At(qn);Yn&&(ae.value=Yn)}function xn(qn){return qn[_n.value]}function kn(qn){return qn?qn[vn.value]:""}function An(qn){return qn[bn.value]}function On(qn){return qn[Cn.value]}function Nn(qn){ae.value.has(qn.key)?Vn(qn):Fn(qn)}function Rn(qn){ae.value=new Set(qn)}function zn(qn,Yn){oe(NODE_CLICK,qn.data,qn,Yn),Bn(qn),$.expandOnClickNode&&Nn(qn),$.showCheckbox&&$.checkOnClickNode&&!qn.disabled&&Ce(qn,!_e(qn),!0)}function Bn(qn){Gn(qn)||(ie.value=qn.key,oe(CURRENT_CHANGE,qn.data,qn))}function Mn(qn,Yn){Ce(qn,Yn)}function Fn(qn){const Yn=ae.value;if(le.value&&$.accordion){const{treeNodeMap:ar}=le.value;Yn.forEach(pr=>{const Un=ar.get(pr);qn&&qn.level===(Un==null?void 0:Un.level)&&Yn.delete(pr)})}Yn.add(qn.key),oe(NODE_EXPAND,qn.data,qn)}function Vn(qn){ae.value.delete(qn.key),oe(NODE_COLLAPSE,qn.data,qn)}function jn(qn){return ae.value.has(qn.key)}function Zn(qn){return!!qn.disabled}function Gn(qn){const Yn=ie.value;return!!Yn&&Yn===qn.key}function Xn(){var qn,Yn;if(ie.value)return(Yn=(qn=le.value)==null?void 0:qn.treeNodeMap.get(ie.value))==null?void 0:Yn.data}function cr(){return ie.value}function nr(qn){ie.value=qn}function er(qn){nextTick(()=>le.value=wn(qn))}function rr(qn){var Yn;const ar=isObject$8(qn)?kn(qn):qn;return(Yn=le.value)==null?void 0:Yn.treeNodeMap.get(ar)}return{tree:le,flattenTree:En,isNotEmpty:$n,getKey:kn,getChildren:xn,toggleExpand:Nn,toggleCheckbox:Ce,isExpanded:jn,isChecked:_e,isIndeterminate:pe,isDisabled:Zn,isCurrent:Gn,isForceHiddenExpandIcon:hn,handleNodeClick:zn,handleNodeCheck:Mn,getCurrentNode:Xn,getCurrentKey:cr,setCurrentKey:nr,getCheckedKeys:$e,getCheckedNodes:xe,getHalfCheckedKeys:Ie,getHalfCheckedNodes:Ne,setChecked:Fe,setCheckedKeys:ze,filter:Tn,setData:er,getNode:rr,expandNode:Fn,collapseNode:Vn,setExpandedKeys:Rn}}var ElNodeContent=defineComponent({name:"ElTreeNodeContent",props:treeNodeContentProps,setup($){const oe=inject(ROOT_TREE_INJECTION_KEY),ae=useNamespace("tree");return()=>{const ie=$.node,{data:le}=ie;return oe!=null&&oe.ctx.slots.default?oe.ctx.slots.default({node:ie,data:le}):h$3("span",{class:ae.be("node","label")},[ie==null?void 0:ie.label])}}});const _hoisted_1$8=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],__default__$7=defineComponent({name:"ElTreeNode"}),_sfc_main$a=defineComponent({...__default__$7,props:treeNodeProps,emits:treeNodeEmits,setup($,{emit:oe}){const ae=$,ie=inject(ROOT_TREE_INJECTION_KEY),le=useNamespace("tree"),pe=computed(()=>{var Ne;return(Ne=ie==null?void 0:ie.props.indent)!=null?Ne:16}),_e=computed(()=>{var Ne;return(Ne=ie==null?void 0:ie.props.icon)!=null?Ne:caret_right_default}),Ce=Ne=>{oe("click",ae.node,Ne)},$e=()=>{oe("toggle",ae.node)},xe=Ne=>{oe("check",ae.node,Ne)},Ie=Ne=>{var Fe,ze,At,Lt;(At=(ze=(Fe=ie==null?void 0:ie.instance)==null?void 0:Fe.vnode)==null?void 0:ze.props)!=null&&At.onNodeContextmenu&&(Ne.stopPropagation(),Ne.preventDefault()),ie==null||ie.ctx.emit(NODE_CONTEXTMENU,Ne,(Lt=ae.node)==null?void 0:Lt.data,ae.node)};return(Ne,Fe)=>{var ze,At,Lt;return openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([unref(le).b("node"),unref(le).is("expanded",Ne.expanded),unref(le).is("current",Ne.current),unref(le).is("focusable",!Ne.disabled),unref(le).is("checked",!Ne.disabled&&Ne.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":Ne.expanded,"aria-disabled":Ne.disabled,"aria-checked":Ne.checked,"data-key":(ze=Ne.node)==null?void 0:ze.key,onClick:withModifiers(Ce,["stop"]),onContextmenu:Ie},[createBaseVNode("div",{class:normalizeClass(unref(le).be("node","content")),style:normalizeStyle$1({paddingLeft:`${(Ne.node.level-1)*unref(pe)}px`,height:Ne.itemSize+"px"})},[unref(_e)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(le).is("leaf",!!((At=Ne.node)!=null&&At.isLeaf)),unref(le).is("hidden",Ne.hiddenExpandIcon),{expanded:!((Lt=Ne.node)!=null&&Lt.isLeaf)&&Ne.expanded},unref(le).be("node","expand-icon")]),onClick:withModifiers($e,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(_e))))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),Ne.showCheckbox?(openBlock(),createBlock(unref(ElCheckbox),{key:1,"model-value":Ne.checked,indeterminate:Ne.indeterminate,disabled:Ne.disabled,onChange:xe,onClick:Fe[0]||(Fe[0]=withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):createCommentVNode("v-if",!0),createVNode(unref(ElNodeContent),{node:Ne.node},null,8,["node"])],6)],42,_hoisted_1$8)}}});var ElTreeNode=_export_sfc$1(_sfc_main$a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const __default__$6=defineComponent({name:"ElTreeV2"}),_sfc_main$9=defineComponent({...__default__$6,props:treeProps,emits:treeEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useSlots(),pe=computed(()=>ie.itemSize);provide(ROOT_TREE_INJECTION_KEY,{ctx:{emit:ae,slots:le},props:ie,instance:getCurrentInstance()}),provide(formItemContextKey,void 0);const{t:_e}=useLocale(),Ce=useNamespace("tree"),{flattenTree:$e,isNotEmpty:xe,toggleExpand:Ie,isExpanded:Ne,isIndeterminate:Fe,isChecked:ze,isDisabled:At,isCurrent:Lt,isForceHiddenExpandIcon:hn,handleNodeClick:vn,handleNodeCheck:_n,toggleCheckbox:bn,getCurrentNode:Cn,getCurrentKey:En,setCurrentKey:$n,getCheckedKeys:wn,getCheckedNodes:Tn,getHalfCheckedKeys:xn,getHalfCheckedNodes:kn,setChecked:An,setCheckedKeys:On,filter:Nn,setData:Rn,getNode:zn,expandNode:Bn,collapseNode:Mn,setExpandedKeys:Fn}=useTree(ie,ae);return oe({toggleCheckbox:bn,getCurrentNode:Cn,getCurrentKey:En,setCurrentKey:$n,getCheckedKeys:wn,getCheckedNodes:Tn,getHalfCheckedKeys:xn,getHalfCheckedNodes:kn,setChecked:An,setCheckedKeys:On,filter:Nn,setData:Rn,getNode:zn,expandNode:Bn,collapseNode:Mn,setExpandedKeys:Fn}),(Vn,jn)=>{var Zn;return openBlock(),createElementBlock("div",{class:normalizeClass([unref(Ce).b(),{[unref(Ce).m("highlight-current")]:Vn.highlightCurrent}]),role:"tree"},[unref(xe)?(openBlock(),createBlock(unref(FixedSizeList),{key:0,"class-name":unref(Ce).b("virtual-list"),data:unref($e),total:unref($e).length,height:Vn.height,"item-size":unref(pe),"perf-mode":Vn.perfMode},{default:withCtx(({data:Gn,index:Xn,style:cr})=>[(openBlock(),createBlock(ElTreeNode,{key:Gn[Xn].key,style:normalizeStyle$1(cr),node:Gn[Xn],expanded:unref(Ne)(Gn[Xn]),"show-checkbox":Vn.showCheckbox,checked:unref(ze)(Gn[Xn]),indeterminate:unref(Fe)(Gn[Xn]),"item-size":unref(pe),disabled:unref(At)(Gn[Xn]),current:unref(Lt)(Gn[Xn]),"hidden-expand-icon":unref(hn)(Gn[Xn]),onClick:unref(vn),onToggle:unref(Ie),onCheck:unref(_n)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(Ce).e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(unref(Ce).e("empty-text"))},toDisplayString$1((Zn=Vn.emptyText)!=null?Zn:unref(_e)("el.tree.emptyText")),3)],2))],2)}}});var TreeV2=_export_sfc$1(_sfc_main$9,[["__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(oe,ae,ie,le){super(oe),this.name="UploadAjaxError",this.status=ae,this.method=ie,this.url=le}}function getError($,oe,ae){let ie;return ae.response?ie=`${ae.response.error||ae.response}`:ae.responseText?ie=`${ae.responseText}`:ie=`fail to ${oe.method} ${$} ${ae.status}`,new UploadAjaxError(ie,ae.status,oe.method,$)}function getBody($){const oe=$.responseText||$.response;if(!oe)return oe;try{return JSON.parse(oe)}catch{return oe}}const ajaxUpload=$=>{typeof XMLHttpRequest>"u"&&throwError$1(SCOPE$2,"XMLHttpRequest is undefined");const oe=new XMLHttpRequest,ae=$.action;oe.upload&&oe.upload.addEventListener("progress",pe=>{const _e=pe;_e.percent=pe.total>0?pe.loaded/pe.total*100:0,$.onProgress(_e)});const ie=new FormData;if($.data)for(const[pe,_e]of Object.entries($.data))Array.isArray(_e)?ie.append(pe,..._e):ie.append(pe,_e);ie.append($.filename,$.file,$.file.name),oe.addEventListener("error",()=>{$.onError(getError(ae,$,oe))}),oe.addEventListener("load",()=>{if(oe.status<200||oe.status>=300)return $.onError(getError(ae,$,oe));$.onSuccess(getBody(oe))}),oe.open($.method,ae,!0),$.withCredentials&&"withCredentials"in oe&&(oe.withCredentials=!0);const le=$.headers||{};if(le instanceof Headers)le.forEach((pe,_e)=>oe.setRequestHeader(_e,pe));else for(const[pe,_e]of Object.entries(le))isNil(_e)||oe.setRequestHeader(pe,String(_e));return oe.send(ie),oe},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:Object,default:()=>mutable({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},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:Boolean,limit:Number}),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}}),uploadListProps=buildProps({files:{type:definePropType(Array),default:()=>mutable([])},disabled:{type:Boolean,default:!1},handlePreview:{type:definePropType(Function),default:NOOP},listType:{type:String,values:uploadListTypes,default:"text"}}),uploadListEmits={remove:$=>!!$},_hoisted_1$7=["onKeydown"],_hoisted_2$5=["src"],_hoisted_3$3=["onClick"],_hoisted_4$2=["onClick"],_hoisted_5=["onClick"],__default__$5=defineComponent({name:"ElUploadList"}),_sfc_main$8=defineComponent({...__default__$5,props:uploadListProps,emits:uploadListEmits,setup($,{emit:oe}){const{t:ae}=useLocale(),ie=useNamespace("upload"),le=useNamespace("icon"),pe=useNamespace("list"),_e=useFormDisabled(),Ce=ref(!1),$e=xe=>{oe("remove",xe)};return(xe,Ie)=>(openBlock(),createBlock(TransitionGroup,{tag:"ul",class:normalizeClass([unref(ie).b("list"),unref(ie).bm("list",xe.listType),unref(ie).is("disabled",unref(_e))]),name:unref(pe).b()},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(xe.files,Ne=>(openBlock(),createElementBlock("li",{key:Ne.uid||Ne.name,class:normalizeClass([unref(ie).be("list","item"),unref(ie).is(Ne.status),{focusing:Ce.value}]),tabindex:"0",onKeydown:withKeys(Fe=>!unref(_e)&&$e(Ne),["delete"]),onFocus:Ie[0]||(Ie[0]=Fe=>Ce.value=!0),onBlur:Ie[1]||(Ie[1]=Fe=>Ce.value=!1),onClick:Ie[2]||(Ie[2]=Fe=>Ce.value=!1)},[renderSlot(xe.$slots,"default",{file:Ne},()=>[xe.listType==="picture"||Ne.status!=="uploading"&&xe.listType==="picture-card"?(openBlock(),createElementBlock("img",{key:0,class:normalizeClass(unref(ie).be("list","item-thumbnail")),src:Ne.url,alt:""},null,10,_hoisted_2$5)):createCommentVNode("v-if",!0),Ne.status==="uploading"||xe.listType!=="picture-card"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).be("list","item-info"))},[createBaseVNode("a",{class:normalizeClass(unref(ie).be("list","item-name")),onClick:withModifiers(Fe=>xe.handlePreview(Ne),["prevent"])},[createVNode(unref(ElIcon),{class:normalizeClass(unref(le).m("document"))},{default:withCtx(()=>[createVNode(unref(document_default))]),_:1},8,["class"]),createBaseVNode("span",{class:normalizeClass(unref(ie).be("list","item-file-name"))},toDisplayString$1(Ne.name),3)],10,_hoisted_3$3),Ne.status==="uploading"?(openBlock(),createBlock(unref(ElProgress),{key:0,type:xe.listType==="picture-card"?"circle":"line","stroke-width":xe.listType==="picture-card"?6:2,percentage:Number(Ne.percentage),style:normalizeStyle$1(xe.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(ie).be("list","item-status-label"))},[xe.listType==="text"?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(le).m("upload-success"),unref(le).m("circle-check")])},{default:withCtx(()=>[createVNode(unref(circle_check_default))]),_:1},8,["class"])):["picture-card","picture"].includes(xe.listType)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(le).m("upload-success"),unref(le).m("check")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2),unref(_e)?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(le).m("close")),onClick:Fe=>$e(Ne)},{default:withCtx(()=>[createVNode(unref(close_default))]),_:2},1032,["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(_e)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("i",{key:3,class:normalizeClass(unref(le).m("close-tip"))},toDisplayString$1(unref(ae)("el.upload.deleteTip")),3)),xe.listType==="picture-card"?(openBlock(),createElementBlock("span",{key:4,class:normalizeClass(unref(ie).be("list","item-actions"))},[createBaseVNode("span",{class:normalizeClass(unref(ie).be("list","item-preview")),onClick:Fe=>xe.handlePreview(Ne)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(le).m("zoom-in"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1},8,["class"])],10,_hoisted_4$2),unref(_e)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ie).be("list","item-delete")),onClick:Fe=>$e(Ne)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(le).m("delete"))},{default:withCtx(()=>[createVNode(unref(delete_default))]),_:1},8,["class"])],10,_hoisted_5))],2)):createCommentVNode("v-if",!0)])],42,_hoisted_1$7))),128)),renderSlot(xe.$slots,"append")]),_:3},8,["class","name"]))}});var UploadList=_export_sfc$1(_sfc_main$8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const uploadDraggerProps=buildProps({disabled:{type:Boolean,default:!1}}),uploadDraggerEmits={file:$=>isArray$c($)},_hoisted_1$6=["onDrop","onDragover"],COMPONENT_NAME="ElUploadDrag",__default__$4=defineComponent({name:COMPONENT_NAME}),_sfc_main$7=defineComponent({...__default__$4,props:uploadDraggerProps,emits:uploadDraggerEmits,setup($,{emit:oe}){const ae=inject(uploadContextKey);ae||throwError$1(COMPONENT_NAME,"usage: ");const ie=useNamespace("upload"),le=ref(!1),pe=useFormDisabled(),_e=$e=>{if(pe.value)return;le.value=!1,$e.stopPropagation();const xe=Array.from($e.dataTransfer.files),Ie=ae.accept.value;if(!Ie){oe("file",xe);return}const Ne=xe.filter(Fe=>{const{type:ze,name:At}=Fe,Lt=At.includes(".")?`.${At.split(".").pop()}`:"",hn=ze.replace(/\/.*$/,"");return Ie.split(",").map(vn=>vn.trim()).filter(vn=>vn).some(vn=>vn.startsWith(".")?Lt===vn:/\/\*$/.test(vn)?hn===vn.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(vn)?ze===vn:!1)});oe("file",Ne)},Ce=()=>{pe.value||(le.value=!0)};return($e,xe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b("dragger"),unref(ie).is("dragover",le.value)]),onDrop:withModifiers(_e,["prevent"]),onDragover:withModifiers(Ce,["prevent"]),onDragleave:xe[0]||(xe[0]=withModifiers(Ie=>le.value=!1,["prevent"]))},[renderSlot($e.$slots,"default")],42,_hoisted_1$6))}});var UploadDragger=_export_sfc$1(_sfc_main$7,[["__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$5=["onKeydown"],_hoisted_2$4=["name","multiple","accept"],__default__$3=defineComponent({name:"ElUploadContent",inheritAttrs:!1}),_sfc_main$6=defineComponent({...__default__$3,props:uploadContentProps,setup($,{expose:oe}){const ae=$,ie=useNamespace("upload"),le=useFormDisabled(),pe=shallowRef({}),_e=shallowRef(),Ce=At=>{if(At.length===0)return;const{autoUpload:Lt,limit:hn,fileList:vn,multiple:_n,onStart:bn,onExceed:Cn}=ae;if(hn&&vn.length+At.length>hn){Cn(At,vn);return}_n||(At=At.slice(0,1));for(const En of At){const $n=En;$n.uid=genFileId(),bn($n),Lt&&$e($n)}},$e=async At=>{if(_e.value.value="",!ae.beforeUpload)return xe(At);let Lt,hn={};try{const _n=ae.beforeUpload(At);hn=isObject$8(ae.data)?cloneDeep(ae.data):ae.data,Lt=await _n}catch{Lt=!1}if(Lt===!1){ae.onRemove(At);return}let vn=At;Lt instanceof Blob&&(Lt instanceof File?vn=Lt:vn=new File([Lt],At.name,{type:At.type})),xe(Object.assign(vn,{uid:At.uid}),hn)},xe=(At,Lt)=>{const{headers:hn,data:vn,method:_n,withCredentials:bn,name:Cn,action:En,onProgress:$n,onSuccess:wn,onError:Tn,httpRequest:xn}=ae,{uid:kn}=At,An={headers:hn||{},withCredentials:bn,file:At,data:Lt??vn,method:_n,filename:Cn,action:En,onProgress:Nn=>{$n(Nn,At)},onSuccess:Nn=>{wn(Nn,At),delete pe.value[kn]},onError:Nn=>{Tn(Nn,At),delete pe.value[kn]}},On=xn(An);pe.value[kn]=On,On instanceof Promise&&On.then(An.onSuccess,An.onError)},Ie=At=>{const Lt=At.target.files;Lt&&Ce(Array.from(Lt))},Ne=()=>{le.value||(_e.value.value="",_e.value.click())},Fe=()=>{Ne()};return oe({abort:At=>{entriesOf(pe.value).filter(At?([hn])=>String(At.uid)===hn:()=>!0).forEach(([hn,vn])=>{vn instanceof XMLHttpRequest&&vn.abort(),delete pe.value[hn]})},upload:$e}),(At,Lt)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b(),unref(ie).m(At.listType),unref(ie).is("drag",At.drag)]),tabindex:"0",onClick:Ne,onKeydown:withKeys(withModifiers(Fe,["self"]),["enter","space"])},[At.drag?(openBlock(),createBlock(UploadDragger,{key:0,disabled:unref(le),onFile:Ce},{default:withCtx(()=>[renderSlot(At.$slots,"default")]),_:3},8,["disabled"])):renderSlot(At.$slots,"default",{key:1}),createBaseVNode("input",{ref_key:"inputRef",ref:_e,class:normalizeClass(unref(ie).e("input")),name:At.name,multiple:At.multiple,accept:At.accept,type:"file",onChange:Ie,onClick:Lt[0]||(Lt[0]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_2$4)],42,_hoisted_1$5))}});var UploadContent=_export_sfc$1(_sfc_main$6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const SCOPE$1="ElUpload",revokeObjectURL=$=>{var oe;(oe=$.url)!=null&&oe.startsWith("blob:")&&URL.revokeObjectURL($.url)},useHandlers=($,oe)=>{const ae=useVModel($,"fileList",void 0,{passive:!0}),ie=Fe=>ae.value.find(ze=>ze.uid===Fe.uid);function le(Fe){var ze;(ze=oe.value)==null||ze.abort(Fe)}function pe(Fe=["ready","uploading","success","fail"]){ae.value=ae.value.filter(ze=>!Fe.includes(ze.status))}const _e=(Fe,ze)=>{const At=ie(ze);At&&(console.error(Fe),At.status="fail",ae.value.splice(ae.value.indexOf(At),1),$.onError(Fe,At,ae.value),$.onChange(At,ae.value))},Ce=(Fe,ze)=>{const At=ie(ze);At&&($.onProgress(Fe,At,ae.value),At.status="uploading",At.percentage=Math.round(Fe.percent))},$e=(Fe,ze)=>{const At=ie(ze);At&&(At.status="success",At.response=Fe,$.onSuccess(Fe,At,ae.value),$.onChange(At,ae.value))},xe=Fe=>{isNil(Fe.uid)&&(Fe.uid=genFileId());const ze={name:Fe.name,percentage:0,status:"ready",size:Fe.size,raw:Fe,uid:Fe.uid};if($.listType==="picture-card"||$.listType==="picture")try{ze.url=URL.createObjectURL(Fe)}catch(At){At.message,$.onError(At,ze,ae.value)}ae.value=[...ae.value,ze],$.onChange(ze,ae.value)},Ie=async Fe=>{const ze=Fe instanceof File?ie(Fe):Fe;ze||throwError$1(SCOPE$1,"file to be removed not found");const At=Lt=>{le(Lt);const hn=ae.value;hn.splice(hn.indexOf(Lt),1),$.onRemove(Lt,hn),revokeObjectURL(Lt)};$.beforeRemove?await $.beforeRemove(ze,ae.value)!==!1&&At(ze):At(ze)};function Ne(){ae.value.filter(({status:Fe})=>Fe==="ready").forEach(({raw:Fe})=>{var ze;return Fe&&((ze=oe.value)==null?void 0:ze.upload(Fe))})}return watch(()=>$.listType,Fe=>{Fe!=="picture-card"&&Fe!=="picture"||(ae.value=ae.value.map(ze=>{const{raw:At,url:Lt}=ze;if(!Lt&&At)try{ze.url=URL.createObjectURL(At)}catch(hn){$.onError(hn,ze,ae.value)}return ze}))}),watch(ae,Fe=>{for(const ze of Fe)ze.uid||(ze.uid=genFileId()),ze.status||(ze.status="success")},{immediate:!0,deep:!0}),{uploadFiles:ae,abort:le,clearFiles:pe,handleError:_e,handleProgress:Ce,handleStart:xe,handleSuccess:$e,handleRemove:Ie,submit:Ne}},__default__$2=defineComponent({name:"ElUpload"}),_sfc_main$5=defineComponent({...__default__$2,props:uploadProps,setup($,{expose:oe}){const ae=$,ie=useSlots(),le=useFormDisabled(),pe=shallowRef(),{abort:_e,submit:Ce,clearFiles:$e,uploadFiles:xe,handleStart:Ie,handleError:Ne,handleRemove:Fe,handleSuccess:ze,handleProgress:At}=useHandlers(ae,pe),Lt=computed(()=>ae.listType==="picture-card"),hn=computed(()=>({...ae,fileList:xe.value,onStart:Ie,onProgress:At,onSuccess:ze,onError:Ne,onRemove:Fe}));return onBeforeUnmount(()=>{xe.value.forEach(({url:vn})=>{vn!=null&&vn.startsWith("blob:")&&URL.revokeObjectURL(vn)})}),provide(uploadContextKey,{accept:toRef$1(ae,"accept")}),oe({abort:_e,submit:Ce,clearFiles:$e,handleStart:Ie,handleRemove:Fe}),(vn,_n)=>(openBlock(),createElementBlock("div",null,[unref(Lt)&&vn.showFileList?(openBlock(),createBlock(UploadList,{key:0,disabled:unref(le),"list-type":vn.listType,files:unref(xe),"handle-preview":vn.onPreview,onRemove:unref(Fe)},createSlots({append:withCtx(()=>[createVNode(UploadContent,mergeProps({ref_key:"uploadRef",ref:pe},unref(hn)),{default:withCtx(()=>[unref(ie).trigger?renderSlot(vn.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(ie).trigger&&unref(ie).default?renderSlot(vn.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)]),_:2},[vn.$slots.file?{name:"default",fn:withCtx(({file:bn})=>[renderSlot(vn.$slots,"file",{file:bn})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0),!unref(Lt)||unref(Lt)&&!vn.showFileList?(openBlock(),createBlock(UploadContent,mergeProps({key:1,ref_key:"uploadRef",ref:pe},unref(hn)),{default:withCtx(()=>[unref(ie).trigger?renderSlot(vn.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(ie).trigger&&unref(ie).default?renderSlot(vn.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)):createCommentVNode("v-if",!0),vn.$slots.trigger?renderSlot(vn.$slots,"default",{key:2}):createCommentVNode("v-if",!0),renderSlot(vn.$slots,"tip"),!unref(Lt)&&vn.showFileList?(openBlock(),createBlock(UploadList,{key:3,disabled:unref(le),"list-type":vn.listType,files:unref(xe),"handle-preview":vn.onPreview,onRemove:unref(Fe)},createSlots({_:2},[vn.$slots.file?{name:"default",fn:withCtx(({file:bn})=>[renderSlot(vn.$slots,"file",{file:bn})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0)]))}});var Upload=_export_sfc$1(_sfc_main$5,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const ElUpload=withInstall(Upload);var Components=[ElAffix,ElAlert,ElAutocomplete,ElAutoResizer,ElAvatar,ElBacktop,ElBadge,ElBreadcrumb,ElBreadcrumbItem,ElButton,ElButtonGroup$1,ElCalendar,ElCard,ElCarousel,ElCarouselItem,ElCascader,ElCascaderPanel,ElCheckTag,ElCheckbox,ElCheckboxButton,ElCheckboxGroup$1,ElCol,ElCollapse,ElCollapseItem,ElCollapseTransition,ElColorPicker,ElConfigProvider,ElContainer,ElAside,ElFooter,ElHeader,ElMain,ElDatePicker,ElDescriptions,ElDescriptionsItem,ElDialog,ElDivider,ElDrawer,ElDropdown,ElDropdownItem,ElDropdownMenu,ElEmpty,ElForm,ElFormItem,ElIcon,ElImage,ElImageViewer,ElInput,ElInputNumber,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,ElTooltipV2,ElTransfer,ElTree,ElTreeSelect,ElTreeV2,ElUpload];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=($,oe)=>Object.entries(attributes).reduce((ae,[ie,le])=>{var pe,_e;const{type:Ce,default:$e}=le,xe=$.getAttribute(`infinite-scroll-${ie}`);let Ie=(_e=(pe=oe[xe])!=null?pe:xe)!=null?_e:$e;return Ie=Ie==="false"?!1:Ie,Ie=Ce(Ie),ae[ie]=Number.isNaN(Ie)?$e:Ie,ae},{}),destroyObserver=$=>{const{observer:oe}=$[SCOPE];oe&&(oe.disconnect(),delete $[SCOPE].observer)},handleScroll=($,oe)=>{const{container:ae,containerEl:ie,instance:le,observer:pe,lastScrollTop:_e}=$[SCOPE],{disabled:Ce,distance:$e}=getScrollOptions($,le),{clientHeight:xe,scrollHeight:Ie,scrollTop:Ne}=ie,Fe=Ne-_e;if($[SCOPE].lastScrollTop=Ne,pe||Ce||Fe<0)return;let ze=!1;if(ae===$)ze=Ie-(xe+Ne)<=$e;else{const{clientTop:At,scrollHeight:Lt}=$,hn=getOffsetTopDistance($,ie);ze=Ne+xe>=hn+At+Lt-$e}ze&&oe.call(le)};function checkFull($,oe){const{containerEl:ae,instance:ie}=$[SCOPE],{disabled:le}=getScrollOptions($,ie);le||ae.clientHeight===0||(ae.scrollHeight<=ae.clientHeight?oe.call(ie):destroyObserver($))}const InfiniteScroll={async mounted($,oe){const{instance:ae,value:ie}=oe;isFunction$5(ie)||throwError$1(SCOPE,"'v-infinite-scroll' binding value must be a function"),await nextTick();const{delay:le,immediate:pe}=getScrollOptions($,ae),_e=getScrollContainer($,!0),Ce=_e===window?document.documentElement:_e,$e=throttle$1(handleScroll.bind(null,$,ie),le);if(_e){if($[SCOPE]={instance:ae,container:_e,containerEl:Ce,delay:le,cb:ie,onScroll:$e,lastScrollTop:Ce.scrollTop},pe){const xe=new MutationObserver(throttle$1(checkFull.bind(null,$,ie),CHECK_INTERVAL));$[SCOPE].observer=xe,xe.observe($,{childList:!0,subtree:!0}),checkFull($,ie)}_e.addEventListener("scroll",$e)}},unmounted($){const{container:oe,onScroll:ae}=$[SCOPE];oe==null||oe.removeEventListener("scroll",ae),destroyObserver($)},async updated($){if(!$[SCOPE])await nextTick();else{const{containerEl:oe,cb:ae,observer:ie}=$[SCOPE];oe.clientHeight&&ie&&checkFull($,ae)}}},_InfiniteScroll=InfiniteScroll;_InfiniteScroll.install=$=>{$.directive("InfiniteScroll",_InfiniteScroll)};const ElInfiniteScroll=_InfiniteScroll;function createLoadingComponent($){let oe;const ae=ref(!1),ie=reactive({...$,originalPosition:"",originalOverflow:"",visible:!1});function le(Fe){ie.text=Fe}function pe(){const Fe=ie.parent,ze=Ne.ns;if(!Fe.vLoadingAddClassList){let At=Fe.getAttribute("loading-number");At=Number.parseInt(At)-1,At?Fe.setAttribute("loading-number",At.toString()):(removeClass(Fe,ze.bm("parent","relative")),Fe.removeAttribute("loading-number")),removeClass(Fe,ze.bm("parent","hidden"))}_e(),Ie.unmount()}function _e(){var Fe,ze;(ze=(Fe=Ne.$el)==null?void 0:Fe.parentNode)==null||ze.removeChild(Ne.$el)}function Ce(){var Fe;$.beforeClose&&!$.beforeClose()||(ae.value=!0,clearTimeout(oe),oe=window.setTimeout($e,400),ie.visible=!1,(Fe=$.closed)==null||Fe.call($))}function $e(){if(!ae.value)return;const Fe=ie.parent;ae.value=!1,Fe.vLoadingAddClassList=void 0,pe()}const xe=defineComponent({name:"ElLoading",setup(Fe,{expose:ze}){const{ns:At,zIndex:Lt}=useGlobalComponentSettings("loading");return ze({ns:At,zIndex:Lt}),()=>{const hn=ie.spinner||ie.svg,vn=h$3("svg",{class:"circular",viewBox:ie.svgViewBox?ie.svgViewBox:"0 0 50 50",...hn?{innerHTML:hn}:{}},[h$3("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),_n=ie.text?h$3("p",{class:At.b("text")},[ie.text]):void 0;return h$3(Transition,{name:At.b("fade"),onAfterLeave:$e},{default:withCtx(()=>[withDirectives(createVNode("div",{style:{backgroundColor:ie.background||""},class:[At.b("mask"),ie.customClass,ie.fullscreen?"is-fullscreen":""]},[h$3("div",{class:At.b("spinner")},[vn,_n])]),[[vShow,ie.visible]])])})}}}),Ie=createApp(xe),Ne=Ie.mount(document.createElement("div"));return{...toRefs(ie),setText:le,removeElLoadingChild:_e,close:Ce,handleAfterLeave:$e,vm:Ne,get $el(){return Ne.$el}}}let fullscreenInstance;const Loading=function($={}){if(!isClient$2)return;const oe=resolveOptions($);if(oe.fullscreen&&fullscreenInstance)return fullscreenInstance;const ae=createLoadingComponent({...oe,closed:()=>{var le;(le=oe.closed)==null||le.call(oe),oe.fullscreen&&(fullscreenInstance=void 0)}});addStyle(oe,oe.parent,ae),addClassList(oe,oe.parent,ae),oe.parent.vLoadingAddClassList=()=>addClassList(oe,oe.parent,ae);let ie=oe.parent.getAttribute("loading-number");return ie?ie=`${Number.parseInt(ie)+1}`:ie="1",oe.parent.setAttribute("loading-number",ie),oe.parent.appendChild(ae.$el),nextTick(()=>ae.visible.value=oe.visible),oe.fullscreen&&(fullscreenInstance=ae),ae},resolveOptions=$=>{var oe,ae,ie,le;let pe;return isString$7($.target)?pe=(oe=document.querySelector($.target))!=null?oe:document.body:pe=$.target||document.body,{parent:pe===document.body||$.body?document.body:pe,background:$.background||"",svg:$.svg||"",svgViewBox:$.svgViewBox||"",spinner:$.spinner||!1,text:$.text||"",fullscreen:pe===document.body&&((ae=$.fullscreen)!=null?ae:!0),lock:(ie=$.lock)!=null?ie:!1,customClass:$.customClass||"",visible:(le=$.visible)!=null?le:!0,target:pe}},addStyle=async($,oe,ae)=>{const{nextZIndex:ie}=ae.vm.zIndex,le={};if($.fullscreen)ae.originalPosition.value=getStyle$1(document.body,"position"),ae.originalOverflow.value=getStyle$1(document.body,"overflow"),le.zIndex=ie();else if($.parent===document.body){ae.originalPosition.value=getStyle$1(document.body,"position"),await nextTick();for(const pe of["top","left"]){const _e=pe==="top"?"scrollTop":"scrollLeft";le[pe]=`${$.target.getBoundingClientRect()[pe]+document.body[_e]+document.documentElement[_e]-Number.parseInt(getStyle$1(document.body,`margin-${pe}`),10)}px`}for(const pe of["height","width"])le[pe]=`${$.target.getBoundingClientRect()[pe]}px`}else ae.originalPosition.value=getStyle$1(oe,"position");for(const[pe,_e]of Object.entries(le))ae.$el.style[pe]=_e},addClassList=($,oe,ae)=>{const ie=ae.vm.ns;["absolute","fixed","sticky"].includes(ae.originalPosition.value)?removeClass(oe,ie.bm("parent","relative")):addClass(oe,ie.bm("parent","relative")),$.fullscreen&&$.lock?addClass(oe,ie.bm("parent","hidden")):removeClass(oe,ie.bm("parent","hidden"))},INSTANCE_KEY=Symbol("ElLoading"),createInstance$1=($,oe)=>{var ae,ie,le,pe;const _e=oe.instance,Ce=Fe=>isObject$8(oe.value)?oe.value[Fe]:void 0,$e=Fe=>{const ze=isString$7(Fe)&&(_e==null?void 0:_e[Fe])||Fe;return ze&&ref(ze)},xe=Fe=>$e(Ce(Fe)||$.getAttribute(`element-loading-${hyphenate(Fe)}`)),Ie=(ae=Ce("fullscreen"))!=null?ae:oe.modifiers.fullscreen,Ne={text:xe("text"),svg:xe("svg"),svgViewBox:xe("svgViewBox"),spinner:xe("spinner"),background:xe("background"),customClass:xe("customClass"),fullscreen:Ie,target:(ie=Ce("target"))!=null?ie:Ie?void 0:$,body:(le=Ce("body"))!=null?le:oe.modifiers.body,lock:(pe=Ce("lock"))!=null?pe:oe.modifiers.lock};$[INSTANCE_KEY]={options:Ne,instance:Loading(Ne)}},updateOptions=($,oe)=>{for(const ae of Object.keys(oe))isRef(oe[ae])&&(oe[ae].value=$[ae])},vLoading={mounted($,oe){oe.value&&createInstance$1($,oe)},updated($,oe){const ae=$[INSTANCE_KEY];oe.oldValue!==oe.value&&(oe.value&&!oe.oldValue?createInstance$1($,oe):oe.value&&oe.oldValue?isObject$8(oe.value)&&updateOptions(oe.value,ae.options):ae==null||ae.instance.close())},unmounted($){var oe;(oe=$[INSTANCE_KEY])==null||oe.instance.close()}},ElLoading={install($){$.directive("loading",vLoading),$.config.globalProperties.$loading=Loading},directive:vLoading,service:Loading},messageTypes=["success","info","warning","error"],messageDefaults=mutable({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:isClient$2?document.body:void 0}),messageProps=buildProps({customClass:{type:String,default:messageDefaults.customClass},center:{type:Boolean,default:messageDefaults.center},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),required:!1},showClose:{type:Boolean,default:messageDefaults.showClose},type:{type:String,values:messageTypes,default:messageDefaults.type},offset:{type:Number,default:messageDefaults.offset},zIndex:{type:Number,default:messageDefaults.zIndex},grouping:{type:Boolean,default:messageDefaults.grouping},repeatNum:{type:Number,default:messageDefaults.repeatNum}}),messageEmits={destroy:()=>!0},instances$2=shallowReactive([]),getInstance$1=$=>{const oe=instances$2.findIndex(le=>le.id===$),ae=instances$2[oe];let ie;return oe>0&&(ie=instances$2[oe-1]),{current:ae,prev:ie}},getLastOffset=$=>{const{prev:oe}=getInstance$1($);return oe?oe.vm.exposed.bottom.value:0},getOffsetOrSpace=($,oe)=>instances$2.findIndex(ie=>ie.id===$)>0?20:oe,_hoisted_1$4=["id"],_hoisted_2$3=["innerHTML"],__default__$1=defineComponent({name:"ElMessage"}),_sfc_main$4=defineComponent({...__default__$1,props:messageProps,emits:messageEmits,setup($,{expose:oe}){const ae=$,{Close:ie}=TypeComponents,{ns:le,zIndex:pe}=useGlobalComponentSettings("message"),{currentZIndex:_e,nextZIndex:Ce}=pe,$e=ref(),xe=ref(!1),Ie=ref(0);let Ne;const Fe=computed(()=>ae.type?ae.type==="error"?"danger":ae.type:"info"),ze=computed(()=>{const wn=ae.type;return{[le.bm("icon",wn)]:wn&&TypeComponentsMap[wn]}}),At=computed(()=>ae.icon||TypeComponentsMap[ae.type]||""),Lt=computed(()=>getLastOffset(ae.id)),hn=computed(()=>getOffsetOrSpace(ae.id,ae.offset)+Lt.value),vn=computed(()=>Ie.value+hn.value),_n=computed(()=>({top:`${hn.value}px`,zIndex:_e.value}));function bn(){ae.duration!==0&&({stop:Ne}=useTimeoutFn$1(()=>{En()},ae.duration))}function Cn(){Ne==null||Ne()}function En(){xe.value=!1}function $n({code:wn}){wn===EVENT_CODE.esc&&En()}return onMounted(()=>{bn(),Ce(),xe.value=!0}),watch(()=>ae.repeatNum,()=>{Cn(),bn()}),useEventListener$1(document,"keydown",$n),useResizeObserver($e,()=>{Ie.value=$e.value.getBoundingClientRect().height}),oe({visible:xe,bottom:vn,close:En}),(wn,Tn)=>(openBlock(),createBlock(Transition,{name:unref(le).b("fade"),onBeforeLeave:wn.onClose,onAfterLeave:Tn[0]||(Tn[0]=xn=>wn.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:wn.id,ref_key:"messageRef",ref:$e,class:normalizeClass([unref(le).b(),{[unref(le).m(wn.type)]:wn.type&&!wn.icon},unref(le).is("center",wn.center),unref(le).is("closable",wn.showClose),wn.customClass]),style:normalizeStyle$1(unref(_n)),role:"alert",onMouseenter:Cn,onMouseleave:bn},[wn.repeatNum>1?(openBlock(),createBlock(unref(ElBadge),{key:0,value:wn.repeatNum,type:unref(Fe),class:normalizeClass(unref(le).e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",!0),unref(At)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(le).e("icon"),unref(ze)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(At))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),renderSlot(wn.$slots,"default",{},()=>[wn.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(le).e("content")),innerHTML:wn.message},null,10,_hoisted_2$3)],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(le).e("content"))},toDisplayString$1(wn.message),3))]),wn.showClose?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(le).e("closeBtn")),onClick:withModifiers(En,["stop"])},{default:withCtx(()=>[createVNode(unref(ie))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],46,_hoisted_1$4),[[vShow,xe.value]])]),_:3},8,["name","onBeforeLeave"]))}});var MessageConstructor=_export_sfc$1(_sfc_main$4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let seed$1=1;const normalizeOptions=$=>{const oe=!$||isString$7($)||isVNode$1($)||isFunction$5($)?{message:$}:$,ae={...messageDefaults,...oe};if(!ae.appendTo)ae.appendTo=document.body;else if(isString$7(ae.appendTo)){let ie=document.querySelector(ae.appendTo);isElement$2(ie)||(ie=document.body),ae.appendTo=ie}return ae},closeMessage=$=>{const oe=instances$2.indexOf($);if(oe===-1)return;instances$2.splice(oe,1);const{handler:ae}=$;ae.close()},createMessage=({appendTo:$,...oe},ae)=>{const ie=`message_${seed$1++}`,le=oe.onClose,pe=document.createElement("div"),_e={...oe,id:ie,onClose:()=>{le==null||le(),closeMessage(Ie)},onDestroy:()=>{render$4(null,pe)}},Ce=createVNode(MessageConstructor,_e,isFunction$5(_e.message)||isVNode$1(_e.message)?{default:isFunction$5(_e.message)?_e.message:()=>_e.message}:null);Ce.appContext=ae||message._context,render$4(Ce,pe),$.appendChild(pe.firstElementChild);const $e=Ce.component,Ie={id:ie,vnode:Ce,vm:$e,handler:{close:()=>{$e.exposed.visible.value=!1}},props:Ce.component.props};return Ie},message=($={},oe)=>{if(!isClient$2)return{close:()=>{}};if(isNumber$5(messageConfig.max)&&instances$2.length>=messageConfig.max)return{close:()=>{}};const ae=normalizeOptions($);if(ae.grouping&&instances$2.length){const le=instances$2.find(({vnode:pe})=>{var _e;return((_e=pe.props)==null?void 0:_e.message)===ae.message});if(le)return le.props.repeatNum+=1,le.props.type=ae.type,le.handler}const ie=createMessage(ae,oe);return instances$2.push(ie),ie.handler};messageTypes.forEach($=>{message[$]=(oe={},ae)=>{const ie=normalizeOptions(oe);return message({...ie,type:$},ae)}});function closeAll$1($){for(const oe of instances$2)(!$||$===oe.props.type)&&oe.handler.close()}message.closeAll=closeAll$1;message._context=null;const ElMessage=withInstallFunction(message,"$message"),_sfc_main$3=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,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup($,{emit:oe}){const{locale:ae,zIndex:ie,ns:le,size:pe}=useGlobalComponentSettings("message-box",computed(()=>$.buttonSize)),{t:_e}=ae,{nextZIndex:Ce}=ie,$e=ref(!1),xe=reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:Ce()}),Ie=computed(()=>{const zn=xe.type;return{[le.bm("icon",zn)]:zn&&TypeComponentsMap[zn]}}),Ne=useId(),Fe=useId(),ze=computed(()=>xe.icon||TypeComponentsMap[xe.type]||""),At=computed(()=>!!xe.message),Lt=ref(),hn=ref(),vn=ref(),_n=ref(),bn=ref(),Cn=computed(()=>xe.confirmButtonClass);watch(()=>xe.inputValue,async zn=>{await nextTick(),$.boxType==="prompt"&&zn!==null&&An()},{immediate:!0}),watch(()=>$e.value,zn=>{var Bn,Mn;zn&&($.boxType!=="prompt"&&(xe.autofocus?vn.value=(Mn=(Bn=bn.value)==null?void 0:Bn.$el)!=null?Mn:Lt.value:vn.value=Lt.value),xe.zIndex=Ce()),$.boxType==="prompt"&&(zn?nextTick().then(()=>{var Fn;_n.value&&_n.value.$el&&(xe.autofocus?vn.value=(Fn=On())!=null?Fn:Lt.value:vn.value=Lt.value)}):(xe.editorErrorMessage="",xe.validateError=!1))});const En=computed(()=>$.draggable);useDraggable(Lt,hn,En),onMounted(async()=>{await nextTick(),$.closeOnHashChange&&window.addEventListener("hashchange",$n)}),onBeforeUnmount(()=>{$.closeOnHashChange&&window.removeEventListener("hashchange",$n)});function $n(){$e.value&&($e.value=!1,nextTick(()=>{xe.action&&oe("action",xe.action)}))}const wn=()=>{$.closeOnClickModal&&kn(xe.distinguishCancelAndClose?"close":"cancel")},Tn=useSameTarget(wn),xn=zn=>{if(xe.inputType!=="textarea")return zn.preventDefault(),kn("confirm")},kn=zn=>{var Bn;$.boxType==="prompt"&&zn==="confirm"&&!An()||(xe.action=zn,xe.beforeClose?(Bn=xe.beforeClose)==null||Bn.call(xe,zn,xe,$n):$n())},An=()=>{if($.boxType==="prompt"){const zn=xe.inputPattern;if(zn&&!zn.test(xe.inputValue||""))return xe.editorErrorMessage=xe.inputErrorMessage||_e("el.messagebox.error"),xe.validateError=!0,!1;const Bn=xe.inputValidator;if(typeof Bn=="function"){const Mn=Bn(xe.inputValue);if(Mn===!1)return xe.editorErrorMessage=xe.inputErrorMessage||_e("el.messagebox.error"),xe.validateError=!0,!1;if(typeof Mn=="string")return xe.editorErrorMessage=Mn,xe.validateError=!0,!1}}return xe.editorErrorMessage="",xe.validateError=!1,!0},On=()=>{const zn=_n.value.$refs;return zn.input||zn.textarea},Nn=()=>{kn("close")},Rn=()=>{$.closeOnPressEscape&&Nn()};return $.lockScroll&&useLockscreen($e),useRestoreActive($e),{...toRefs(xe),ns:le,overlayEvent:Tn,visible:$e,hasMessage:At,typeClass:Ie,contentId:Ne,inputId:Fe,btnSize:pe,iconComponent:ze,confirmButtonClasses:Cn,rootRef:Lt,focusStartRef:vn,headerRef:hn,inputRef:_n,confirmRef:bn,doClose:$n,handleClose:Nn,onCloseRequested:Rn,handleWrapperClick:wn,handleInputEnter:xn,handleAction:kn,t:_e}}}),_hoisted_1$3=["aria-label","aria-describedby"],_hoisted_2$2=["aria-label"],_hoisted_3$2=["id"];function _sfc_render$1($,oe,ae,ie,le,pe){const _e=resolveComponent("el-icon"),Ce=resolveComponent("close"),$e=resolveComponent("el-input"),xe=resolveComponent("el-button"),Ie=resolveComponent("el-focus-trap"),Ne=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:oe[11]||(oe[11]=Fe=>$.$emit("vanish")),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(Ne,{"z-index":$.zIndex,"overlay-class":[$.ns.is("message-box"),$.modalClass],mask:$.modal},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-label":$.title,"aria-modal":"true","aria-describedby":$.showInput?void 0:$.contentId,class:normalizeClass(`${$.ns.namespace.value}-overlay-message-box`),onClick:oe[8]||(oe[8]=(...Fe)=>$.overlayEvent.onClick&&$.overlayEvent.onClick(...Fe)),onMousedown:oe[9]||(oe[9]=(...Fe)=>$.overlayEvent.onMousedown&&$.overlayEvent.onMousedown(...Fe)),onMouseup:oe[10]||(oe[10]=(...Fe)=>$.overlayEvent.onMouseup&&$.overlayEvent.onMouseup(...Fe))},[createVNode(Ie,{loop:"",trapped:$.visible,"focus-trap-el":$.rootRef,"focus-start-el":$.focusStartRef,onReleaseRequested:$.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",{ref:"rootRef",class:normalizeClass([$.ns.b(),$.customClass,$.ns.is("draggable",$.draggable),{[$.ns.m("center")]:$.center}]),style:normalizeStyle$1($.customStyle),tabindex:"-1",onClick:oe[7]||(oe[7]=withModifiers(()=>{},["stop"]))},[$.title!==null&&$.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass($.ns.e("header"))},[createBaseVNode("div",{class:normalizeClass($.ns.e("title"))},[$.iconComponent&&$.center?(openBlock(),createBlock(_e,{key:0,class:normalizeClass([$.ns.e("status"),$.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("span",null,toDisplayString$1($.title),1)],2),$.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass($.ns.e("headerbtn")),"aria-label":$.t("el.messagebox.close"),onClick:oe[0]||(oe[0]=Fe=>$.handleAction($.distinguishCancelAndClose?"close":"cancel")),onKeydown:oe[1]||(oe[1]=withKeys(withModifiers(Fe=>$.handleAction($.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[createVNode(_e,{class:normalizeClass($.ns.e("close"))},{default:withCtx(()=>[createVNode(Ce)]),_:1},8,["class"])],42,_hoisted_2$2)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{id:$.contentId,class:normalizeClass($.ns.e("content"))},[createBaseVNode("div",{class:normalizeClass($.ns.e("container"))},[$.iconComponent&&!$.center&&$.hasMessage?(openBlock(),createBlock(_e,{key:0,class:normalizeClass([$.ns.e("status"),$.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),$.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("message"))},[renderSlot($.$slots,"default",{},()=>[$.dangerouslyUseHTMLString?(openBlock(),createBlock(resolveDynamicComponent($.showInput?"label":"p"),{key:1,for:$.showInput?$.inputId:void 0,innerHTML:$.message},null,8,["for","innerHTML"])):(openBlock(),createBlock(resolveDynamicComponent($.showInput?"label":"p"),{key:0,for:$.showInput?$.inputId:void 0},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.dangerouslyUseHTMLString?"":$.message),1)]),_:1},8,["for"]))])],2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{class:normalizeClass($.ns.e("input"))},[createVNode($e,{id:$.inputId,ref:"inputRef",modelValue:$.inputValue,"onUpdate:modelValue":oe[2]||(oe[2]=Fe=>$.inputValue=Fe),type:$.inputType,placeholder:$.inputPlaceholder,"aria-invalid":$.validateError,class:normalizeClass({invalid:$.validateError}),onKeydown:withKeys($.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),createBaseVNode("div",{class:normalizeClass($.ns.e("errormsg")),style:normalizeStyle$1({visibility:$.editorErrorMessage?"visible":"hidden"})},toDisplayString$1($.editorErrorMessage),7)],2),[[vShow,$.showInput]])],10,_hoisted_3$2),createBaseVNode("div",{class:normalizeClass($.ns.e("btns"))},[$.showCancelButton?(openBlock(),createBlock(xe,{key:0,loading:$.cancelButtonLoading,class:normalizeClass([$.cancelButtonClass]),round:$.roundButton,size:$.btnSize,onClick:oe[3]||(oe[3]=Fe=>$.handleAction("cancel")),onKeydown:oe[4]||(oe[4]=withKeys(withModifiers(Fe=>$.handleAction("cancel"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.cancelButtonText||$.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):createCommentVNode("v-if",!0),withDirectives(createVNode(xe,{ref:"confirmRef",type:"primary",loading:$.confirmButtonLoading,class:normalizeClass([$.confirmButtonClasses]),round:$.roundButton,disabled:$.confirmButtonDisabled,size:$.btnSize,onClick:oe[5]||(oe[5]=Fe=>$.handleAction("confirm")),onKeydown:oe[6]||(oe[6]=withKeys(withModifiers(Fe=>$.handleAction("confirm"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.confirmButtonText||$.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[vShow,$.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,_hoisted_1$3)]),_:3},8,["z-index","overlay-class","mask"]),[[vShow,$.visible]])]),_:3})}var MessageBoxConstructor=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$1],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const messageInstance=new Map,getAppendToElement=$=>{let oe=document.body;return $.appendTo&&(isString$7($.appendTo)&&(oe=document.querySelector($.appendTo)),isElement$2($.appendTo)&&(oe=$.appendTo),isElement$2(oe)||(oe=document.body)),oe},initInstance=($,oe,ae=null)=>{const ie=createVNode(MessageBoxConstructor,$,isFunction$5($.message)||isVNode$1($.message)?{default:isFunction$5($.message)?$.message:()=>$.message}:null);return ie.appContext=ae,render$4(ie,oe),getAppendToElement($).appendChild(oe.firstElementChild),ie.component},genContainer=()=>document.createElement("div"),showMessage=($,oe)=>{const ae=genContainer();$.onVanish=()=>{render$4(null,ae),messageInstance.delete(le)},$.onAction=pe=>{const _e=messageInstance.get(le);let Ce;$.showInput?Ce={value:le.inputValue,action:pe}:Ce=pe,$.callback?$.callback(Ce,ie.proxy):pe==="cancel"||pe==="close"?$.distinguishCancelAndClose&&pe!=="cancel"?_e.reject("close"):_e.reject("cancel"):_e.resolve(Ce)};const ie=initInstance($,ae,oe),le=ie.proxy;for(const pe in $)hasOwn$4($,pe)&&!hasOwn$4(le.$props,pe)&&(le[pe]=$[pe]);return le.visible=!0,le};function MessageBox($,oe=null){if(!isClient$2)return Promise.reject();let ae;return isString$7($)||isVNode$1($)?$={message:$}:ae=$.callback,new Promise((ie,le)=>{const pe=showMessage($,oe??MessageBox._context);messageInstance.set(pe,{options:$,callback:ae,resolve:ie,reject:le})})}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($=>{MessageBox[$]=messageBoxFactory($)});function messageBoxFactory($){return(oe,ae,ie,le)=>{let pe="";return isObject$8(ae)?(ie=ae,pe=""):isUndefined$1(ae)?pe="":pe=ae,MessageBox(Object.assign({title:pe,message:oe,type:"",...MESSAGE_BOX_DEFAULT_OPTS[$]},ie,{boxType:$}),le)}}MessageBox.close=()=>{messageInstance.forEach(($,oe)=>{oe.doClose()}),messageInstance.clear()};MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=$=>{_MessageBox._context=$._context,$.config.globalProperties.$msgbox=_MessageBox,$.config.globalProperties.$messageBox=_MessageBox,$.config.globalProperties.$alert=_MessageBox.alert,$.config.globalProperties.$confirm=_MessageBox.confirm,$.config.globalProperties.$prompt=_MessageBox.prompt};const ElMessageBox=_MessageBox,notificationTypes=["success","info","warning","error"],notificationProps=buildProps({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:iconPropType},id:{type:String,default:""},message:{type:definePropType([String,Object]),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:{type:Number,default:0}}),notificationEmits={destroy:()=>!0},_hoisted_1$2=["id"],_hoisted_2$1=["textContent"],_hoisted_3$1={key:0},_hoisted_4$1=["innerHTML"],__default__=defineComponent({name:"ElNotification"}),_sfc_main$2=defineComponent({...__default__,props:notificationProps,emits:notificationEmits,setup($,{expose:oe}){const ae=$,{ns:ie,zIndex:le}=useGlobalComponentSettings("notification"),{nextZIndex:pe,currentZIndex:_e}=le,{Close:Ce}=CloseComponents,$e=ref(!1);let xe;const Ie=computed(()=>{const bn=ae.type;return bn&&TypeComponentsMap[ae.type]?ie.m(bn):""}),Ne=computed(()=>ae.type&&TypeComponentsMap[ae.type]||ae.icon),Fe=computed(()=>ae.position.endsWith("right")?"right":"left"),ze=computed(()=>ae.position.startsWith("top")?"top":"bottom"),At=computed(()=>({[ze.value]:`${ae.offset}px`,zIndex:_e.value}));function Lt(){ae.duration>0&&({stop:xe}=useTimeoutFn$1(()=>{$e.value&&vn()},ae.duration))}function hn(){xe==null||xe()}function vn(){$e.value=!1}function _n({code:bn}){bn===EVENT_CODE.delete||bn===EVENT_CODE.backspace?hn():bn===EVENT_CODE.esc?$e.value&&vn():Lt()}return onMounted(()=>{Lt(),pe(),$e.value=!0}),useEventListener$1(document,"keydown",_n),oe({visible:$e,close:vn}),(bn,Cn)=>(openBlock(),createBlock(Transition,{name:unref(ie).b("fade"),onBeforeLeave:bn.onClose,onAfterLeave:Cn[1]||(Cn[1]=En=>bn.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:bn.id,class:normalizeClass([unref(ie).b(),bn.customClass,unref(Fe)]),style:normalizeStyle$1(unref(At)),role:"alert",onMouseenter:hn,onMouseleave:Lt,onClick:Cn[0]||(Cn[0]=(...En)=>bn.onClick&&bn.onClick(...En))},[unref(Ne)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(ie).e("icon"),unref(Ie)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ne))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).e("group"))},[createBaseVNode("h2",{class:normalizeClass(unref(ie).e("title")),textContent:toDisplayString$1(bn.title)},null,10,_hoisted_2$1),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(ie).e("content")),style:normalizeStyle$1(bn.title?void 0:{margin:0})},[renderSlot(bn.$slots,"default",{},()=>[bn.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{innerHTML:bn.message},null,8,_hoisted_4$1)],2112)):(openBlock(),createElementBlock("p",_hoisted_3$1,toDisplayString$1(bn.message),1))])],6),[[vShow,bn.message]]),bn.showClose?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("closeBtn")),onClick:withModifiers(vn,["stop"])},{default:withCtx(()=>[createVNode(unref(Ce))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],2)],46,_hoisted_1$2),[[vShow,$e.value]])]),_:3},8,["name","onBeforeLeave"]))}});var NotificationConstructor=_export_sfc$1(_sfc_main$2,[["__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($={},oe=null){if(!isClient$2)return{close:()=>{}};(typeof $=="string"||isVNode$1($))&&($={message:$});const ae=$.position||"top-right";let ie=$.offset||0;notifications[ae].forEach(({vm:Ie})=>{var Ne;ie+=(((Ne=Ie.el)==null?void 0:Ne.offsetHeight)||0)+GAP_SIZE}),ie+=GAP_SIZE;const le=`notification_${seed++}`,pe=$.onClose,_e={...$,offset:ie,id:le,onClose:()=>{close(le,ae,pe)}};let Ce=document.body;isElement$2($.appendTo)?Ce=$.appendTo:isString$7($.appendTo)&&(Ce=document.querySelector($.appendTo)),isElement$2(Ce)||(Ce=document.body);const $e=document.createElement("div"),xe=createVNode(NotificationConstructor,_e,isVNode$1(_e.message)?{default:()=>_e.message}:null);return xe.appContext=oe??notify._context,xe.props.onDestroy=()=>{render$4(null,$e)},render$4(xe,$e),notifications[ae].push({vm:xe}),Ce.appendChild($e.firstElementChild),{close:()=>{xe.component.exposed.visible.value=!1}}};notificationTypes.forEach($=>{notify[$]=(oe={})=>((typeof oe=="string"||isVNode$1(oe))&&(oe={message:oe}),notify({...oe,type:$}))});function close($,oe,ae){const ie=notifications[oe],le=ie.findIndex(({vm:xe})=>{var Ie;return((Ie=xe.component)==null?void 0:Ie.props.id)===$});if(le===-1)return;const{vm:pe}=ie[le];if(!pe)return;ae==null||ae(pe);const _e=pe.el.offsetHeight,Ce=oe.split("-")[0];ie.splice(le,1);const $e=ie.length;if(!($e<1))for(let xe=le;xe<$e;xe++){const{el:Ie,component:Ne}=ie[xe].vm,Fe=Number.parseInt(Ie.style[Ce],10)-_e-GAP_SIZE;Ne.props.offset=Fe}}function closeAll(){for(const $ of Object.values(notifications))$.forEach(({vm:oe})=>{oe.component.exposed.visible.value=!1})}notify.closeAll=closeAll;notify._context=null;const ElNotification=withInstallFunction(notify,"$notify");var Plugins=[ElInfiniteScroll,ElLoading,ElMessage,ElMessageBox,ElNotification,ElPopoverDirective],installer=makeInstaller([...Components,...Plugins]),zhCn={};(function($){Object.defineProperty($,"__esModule",{value:!0});var oe={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};$.default=oe})(zhCn);const zhLocale=getDefaultExportFromCjs(zhCn);var en={};(function($){Object.defineProperty($,"__esModule",{value:!0});var oe={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new 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",week:"week",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"},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"},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"}}};$.default=oe})(en);const enLocale=getDefaultExportFromCjs(en);var ot=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Rt=Object.getOwnPropertyNames,Dt=Object.prototype.hasOwnProperty,$t$1=($,oe)=>{for(var ae in oe)ot($,ae,{get:oe[ae],enumerable:!0})},rt$1=($,oe,ae,ie)=>{if(oe&&typeof oe=="object"||typeof oe=="function")for(let le of Rt(oe))!Dt.call($,le)&&le!==ae&&ot($,le,{get:()=>oe[le],enumerable:!(ie=kt(oe,le))||ie.enumerable});return $},G=($,oe,ae)=>(rt$1($,oe,"default"),ae&&rt$1(ae,oe,"default"));function it($){let oe=$.split(","),ae=oe[0].match(/:(.*?);/)[1],ie=window.atob(oe[1]),le=ie.length,pe=new Uint8Array(le);for(;le--;)pe[le]=ie.charCodeAt(le);return new Blob([pe],{type:ae})}function at($,oe,ae){return new Promise((ie,le)=>{let pe=document.createElement("CANVAS"),_e=pe.getContext("2d"),Ce=new Image;Ce.crossOrigin="",Ce.onload=function(){if(!pe||!_e)return le();pe.height=Ce.height,pe.width=Ce.width,_e.drawImage(Ce,0,0);let $e=pe.toDataURL(oe||"image/png",ae);pe=null,ie($e)},Ce.src=$})}var It=Object.prototype.toString;function L$1($,oe){return It.call($)===`[object ${oe}]`}function N($){return $!==null&&L$1($,"Object")}function k($){return typeof $<"u"}function lt$1($){return!k($)}function ft($){return $===null}function Pt($){return ft($)||lt$1($)}function Ut($){return J$1($)||S($)?$.length===0:$ instanceof Map||$ instanceof Set?$.size===0:N($)?Object.keys($).length===0:!1}function P$1($){return!!(Ut($)||Pt($))}function pt($){return L$1($,"Number")}function S($){return L$1($,"String")}function ut($){return typeof $=="function"}function Ae($){return L$1($,"Boolean")}function J$1($){return $&&Array.isArray($)}var K$1=typeof window>"u",Q=!K$1;function dt($){let oe="^((https|http|ftp|rtsp|mms)?://)(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z].[a-z]{2,6})(:[0-9]{1,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$";return new RegExp(oe,"ig").test($)}function Ue($){return/^[1](([3][0-9])|([4][0,1,4-9])|([5][0-3,5-9])|([6][2,5,6,7])|([7][0-8])|([8][0-9])|([9][0-3,5-9]))[0-9]{8}$/.test($)}function Be($){return/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test($)}var j$2=($,oe)=>!!($!=null&&$.className.match(new RegExp("(\\s|^)"+oe+"(\\s|$)"))),qe=($,oe,ae)=>{j$2($,oe)||($.className+=" "+oe),ae&&!j$2($,ae)&&($.className+=" "+ae)},Xe=($,oe,ae)=>{if(j$2($,oe)){let ie=new RegExp("(\\s|^)"+oe+"(\\s|$)");$.className=$.className.replace(ie," ").trim()}if(ae&&j$2($,ae)){let ie=new RegExp("(\\s|^)"+ae+"(\\s|$)");$.className=$.className.replace(ie," ").trim()}},Ve=($,oe,ae)=>{let ie=ae||document.body,{className:le}=ie,pe=le.replace(oe,"").trim().split(/\s+/).join(" ");ie.className=$?`${pe} ${oe}`:pe},Bt=Object.prototype.toString;function Nt($,oe){return $&&$.hasOwnProperty?$.hasOwnProperty(oe):!1}function jt($,oe,ae){if($)if($.forEach)$.forEach(oe,ae);else for(let ie=0,le=$.length;ie{let oe=($==null?void 0:$.type)??"rgb",ae=($==null?void 0:$.num)??0;if(ae===0)switch(oe){case"rgb":return window.crypto.getRandomValues(new Uint8Array(3)).toString();case"hex":return`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`;case"hsl":return[360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString()}else switch(oe){case"rgb":let ie=[];for(let _e=0;_enew Promise(oe=>setTimeout(oe,$)),Et=($,oe=200,ae=!1)=>{let ie,le=oe,pe;return function(){ie&&clearTimeout(ie),ae?(ie||$.call(pe,...arguments),ie=setTimeout(()=>ie=null,le)):ie=setTimeout(()=>$.call(pe,...arguments),le)}},Sn=($,oe=1e3)=>{let ae;return function(){ae||(ae=setTimeout(()=>{$.call(void 0,...arguments),ae=null},oe))}},Ln=()=>{let $=navigator.userAgent.toLowerCase(),oe=$.match(/midp/i)=="midp",ae=$.match(/ucweb/i)=="ucweb",ie=$.match(/android/i)=="android",le=$.match(/iphone os/i)=="iphone os",pe=$.match(/windows ce/i)=="windows ce",_e=$.match(/rv:1.2.3.4/i)=="rv:1.2.3.4",Ce=$.match(/windows mobile/i)=="windows mobile";return oe||ae||ie||le||pe||_e||Ce},Tt=($,oe="_blank")=>{let ae=document.createElement("a");ae.setAttribute("href",$),ae.setAttribute("target",oe),ae.setAttribute("rel","noreferrer noopener"),ae.setAttribute("id","external");let ie=document.getElementById("external");ie&&document.body.removeChild(ie),document.body.appendChild(ae),ae.click(),ae.remove()};function In($,oe,ae,ie){at($).then(le=>{zt(le,oe,ae,ie)})}function zt($,oe,ae,ie){let le=it($);_t(le,oe,ae,ie)}function _t($,oe,ae,ie){let le=typeof ie<"u"?[ie,$]:[$],pe=new Blob(le,{type:ae||"application/octet-stream"}),_e=window.URL.createObjectURL(pe),Ce=document.createElement("a");Ce.style.display="none",Ce.href=_e,Ce.setAttribute("download",oe),typeof Ce.download>"u"&&Ce.setAttribute("target","_blank"),document.body.appendChild(Ce),Ce.click(),document.body.removeChild(Ce),window.URL.revokeObjectURL(_e)}function Pn($,oe,ae="_self"){let ie=window.navigator.userAgent.toLowerCase().indexOf("chrome")>-1,le=window.navigator.userAgent.toLowerCase().indexOf("safari")>-1;if(/(iP)/g.test(window.navigator.userAgent))return console.error("Your browser does not support download!"),!1;if(ie||le){let pe=document.createElement("a");if(pe.href=$,pe.target=ae,pe.download!==void 0&&(pe.download=oe||$.substring($.lastIndexOf("/")+1,$.length)),document.createEvent){let _e=document.createEvent("MouseEvents");return _e.initEvent("click",!0,!0),pe.dispatchEvent(_e),!0}}return $.indexOf("?")===-1&&($+="?download"),Tt($,ae),!0}function Wt($,oe){if(!$||!oe||$.length!==oe.length)return!1;for(let ae of Object.keys($))if(!Mt($[ae],oe[ae]))return!1;return!0}function qt($,oe){if(!$||!oe)return!1;let{length:ae}=$;if(ae!==oe.length)return!1;for(let ie=0;ie{if($.install=ae=>{for(let ie of[$,...Object.values(oe??{})])ae.component(ie.name,ie)},oe)for(let[ae,ie]of Object.entries(oe))$[ae]=ie;return $},U=class{constructor($){ao(this,"storage");this.storage=$}setItem($,oe){P$1(this.storage)||this.storage.setItem($,JSON.stringify(oe))}getItem($){if(!P$1(this.storage))return JSON.parse(this.storage.getItem($))}removeItem($){P$1(this.storage)||this.storage.removeItem($)}clear(){P$1(this.storage)||this.storage.clear()}},q=class extends U{constructor($){super($)}},Kn=()=>Q?new q(window.localStorage):new q(""),Qn=()=>Q?new U(window.sessionStorage):new U("");function Xt($,oe){return S(oe)?$.substring(0,$.indexOf(oe)):""}function fr($){if(!dt($))return console.error(`${$}不符合超链接规范`),{};let oe=$.indexOf("?"),ae=$.slice(oe+1).split("&"),ie={};for(let le=0;leoe.some(ie=>ie===ae))}var yr=(...$)=>[...$].reduce((oe,ae)=>oe.filter(ie=>ae.includes(ie)));function wr($,oe){let ae=[];for(let ie of $)ie[oe]&&ae.push(ie[oe]);return Array.from(new Set(ae))}var i={};$t$1(i,{Vue:()=>vue_runtime_esmBundler});G(i,vue_runtime_esmBundler);var ee=["class","style"],ne=/^on[A-Z]/;function re($){return Object.keys($).map(oe=>[oe,$[oe]])}function vr($={}){let oe=(0,i.getCurrentInstance)();if(!oe)return{};let{excludeListeners:ae=!1,excludeKeys:ie=[]}=$,le=(0,i.shallowRef)({}),pe=ie.concat(ee);return oe.attrs=(0,i.reactive)(oe.attrs),(0,i.watchEffect)(()=>{let _e=re(oe.attrs).reduce((Ce,[$e,xe])=>(!pe.includes($e)&&!(ae&&ne.test($e))&&(Ce[$e]=xe),Ce),{});le.value=_e}),le}function O($){(0,i.getCurrentInstance)()&&(0,i.onUnmounted)($)}var Br=()=>{let $=(0,i.ref)(!1),oe,ae=()=>{$.value=document.documentElement.classList.contains("dark")};return O(()=>{oe.takeRecords(),oe.disconnect()}),(0,i.onBeforeMount)(()=>{ae(),oe=new MutationObserver(ae),oe.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:$}};function Ct(){let{appContext:{config:{globalProperties:$}}}=(0,i.getCurrentInstance)();return $}var Zr=($,oe)=>{let ae=(oe==null?void 0:oe.theme)??(0,i.ref)("default"),ie=(oe==null?void 0:oe.tooltipId)??"tooltipElement",le=Ct().$echarts,pe=null,_e=(0,i.ref)({}),Ce=(0,i.ref)(),$e=(0,i.computed)(()=>ae.value!=="dark"?_e.value:{backgroundColor:"transparent",..._e.value});function xe(xn){let kn=(0,i.unref)($);!kn||!(0,i.unref)(kn)||(pe=le.init(kn,xn))}function Ie(xn,...kn){var An;if(_e.value=xn,Ce.value=kn,((An=(0,i.unref)($))==null?void 0:An.offsetHeight)===0){D$1().then(()=>Ie((0,i.unref)($e),...kn));return}(0,i.nextTick)(()=>{D$1().then(()=>{!pe&&xe(ae.value),(xn.clear??!0)&&Ne(),pe==null||pe.setOption((0,i.unref)($e)),kn&&kn.map(On=>{(On==null?void 0:On.type)!=="zrender"&&typeof(On==null?void 0:On.callback)=="function"&&(pe==null||pe.on(On==null?void 0:On.name,On!=null&&On.query?On==null?void 0:On.query:"",Nn=>{On==null||On.callback(Nn)})),(On==null?void 0:On.type)==="zrender"&&typeof(On==null?void 0:On.callback)=="function"&&(pe==null||pe.getZr().on(On==null?void 0:On.name,Nn=>{Nn.target||(On==null||On.callback(Nn))}))}),xn!=null&&xn.addTooltip&&wn(xn.addTooltip)})})}function Ne(){pe&&pe.clear()}function Fe(){pe.resize()}function ze(xn){let kn=(xn==null?void 0:xn.type)??"default",An=(xn==null?void 0:xn.opts)??{};pe.showLoading(kn,An)}function At(){pe.hideLoading()}function Lt(xn){pe.appendData(xn)}function hn(){return pe.getWidth()}function vn(){return pe.getHeight()}function _n(){return pe||xe(ae.value),pe}function bn(){return pe.getDom()}function Cn(){return pe.getOption()}function En(xn){return pe.getDataURL(xn)}function $n(xn){return pe.getConnectedDataURL(xn)}function wn(xn){if(!xn)return;let kn=document.querySelector("html");if(!document.getElementById(ie)){let Nn=document.createElement("div");Nn.setAttribute("id",ie),Nn.style.display="block",kn.appendChild(Nn)}let An=document.querySelector(`#${ie}`),On=Nn=>{if((Nn==null?void 0:Nn.targetType)!=="axisLabel")return;let Rn=` + padding: 5px; + font-size: 12px; + display: inline; + border-radius: 4px; + position: absolute; + background-color: #303133; + z-index: 99999;color: #fff; + box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 8px; + `;An.style.cssText=Rn,An.innerHTML=Nn==null?void 0:Nn.value,kn.onmousemove=zn=>{let Bn=zn.pageX-10,Mn=zn.pageY+15;An.style.top=Mn+"px",An.style.left=Bn+"px"}};pe==null||pe.on("mouseover",Nn=>{(xn==="x"&&Nn.componentType=="xAxis"||xn==="y"&&Nn.componentType=="yAxis"||xn.toString()==="true"&&Nn.componentType.includes("Axis"))&&On(Nn)}),pe==null||pe.on("mouseout",()=>{kn.onmousemove=null,An.style.cssText="display:none"})}(0,i.watch)(()=>ae.value,xn=>{pe&&(pe.dispose(),xe(xn),Ie(_e.value,...Ce.value))});function Tn(){var xn;!pe||D$1(((xn=_e.value)==null?void 0:xn.delay)??300).then(()=>{Fe()})}return(0,i.onMounted)(()=>{(0,i.nextTick)(()=>{window.addEventListener("resize",Tn)})}),O(()=>{var xn;window.removeEventListener("resize",Tn),pe&&(pe.dispose(),pe=null,(xn=document.querySelector(`#${ie}`))==null||xn.remove())}),{echarts:le,clear:Ne,resize:Fe,getDom:bn,getWidth:hn,getOption:Cn,getHeight:vn,addTooltip:wn,getDataURL:En,setOptions:Ie,appendData:Lt,getInstance:_n,showLoading:ze,hideLoading:At,getConnectedDataURL:$n}},se=Symbol("watermark-dom"),oo=($=(0,i.ref)(document.body))=>{let oe=se.toString(),ae=(0,i.shallowRef)(),ie=()=>{let Ne=(0,i.unref)(ae);ae.value=void 0;let Fe=(0,i.unref)($);!Fe||Ne&&Fe.removeChild(Ne)};function le(Ne,Fe){let ze=document.createElement("canvas"),At=(Fe==null?void 0:Fe.width)??250,Lt=(Fe==null?void 0:Fe.height)??100;Object.assign(ze,{width:At,height:Lt});let hn=ze.getContext("2d");if(hn){if(hn.rotate(((Fe==null?void 0:Fe.rotate)??-10*Math.PI)/120),hn.font=(Fe==null?void 0:Fe.font)??"15px Reggae One",(Fe==null?void 0:Fe.gradient)&&J$1(Fe==null?void 0:Fe.gradient)){let vn=hn.createLinearGradient(0,0,At,0);Fe==null||Fe.gradient.forEach(_n=>{vn.addColorStop(_n.value,_n.color)}),hn.fillStyle=vn}else hn.fillStyle=(Fe==null?void 0:Fe.fillStyle)??"rgba(0, 0, 0, 0.15)";if(hn.textAlign="left",hn.textBaseline="middle",Fe!=null&&Fe.globalAlpha&&(hn.globalAlpha=Fe.globalAlpha),Fe==null?void 0:Fe.shadowConfig){let{shadowConfig:vn}=Fe;hn.shadowBlur=vn[0],hn.shadowColor=(vn==null?void 0:vn[1])??"#000000",hn.shadowOffsetX=(vn==null?void 0:vn[2])??0,hn.shadowOffsetY=(vn==null?void 0:vn[3])??0}hn.fillText(Ne,At/((Fe==null?void 0:Fe.fillTextWidth)??20),Lt/((Fe==null?void 0:Fe.fillTextHeight)??2))}return ze.toDataURL("image/png")}function pe(Ne={}){let Fe=(0,i.unref)(ae);!Fe||(k(Ne.width)&&(Fe.style.width=`${Ne.width}px`),k(Ne.height)&&(Fe.style.height=`${Ne.height}px`),k(Ne.str)&&(Fe.style.background=`url(${le(Ne.str,Ne.attr)}) left top repeat`))}let _e=Et(()=>{let Ne=(0,i.unref)($);if(!Ne)return;let{clientHeight:Fe,clientWidth:ze}=Ne;pe({height:Fe,width:ze})}),Ce=(Ne,Fe)=>{var vn;if((0,i.unref)(ae))return pe({str:Ne,attr:Fe}),oe;let ze=document.createElement("div");ae.value=ze,ze.id=oe,ze.style.pointerEvents="none",ze.style.top="0px",ze.style.left="0px",ze.style.position="absolute",ze.style.zIndex=(Fe==null?void 0:Fe.zIndex)??"100000";let At=(0,i.unref)($);if(!At)return oe;let{clientHeight:Lt,clientWidth:hn}=At;return pe({str:Ne,width:hn,height:Lt,attr:Fe}),(vn=At==null?void 0:At.style)!=null&&vn.position||(At.style.position="relative"),At.appendChild(ze),oe};function $e(Ne,{str:Fe,attr:ze}){Ne[0].removedNodes[0]&&Ne[0].removedNodes[0].id===oe&&(ae.value=void 0,Ce(Fe,ze))}function xe(Ne,Fe){let ze={childList:!0,attributes:!0,characterData:!0,subtree:!0};new MutationObserver(At=>$e(At,{str:Ne,attr:Fe})).observe((0,i.unref)($),ze)}function Ie(Ne,Fe){Ce(Ne,Fe),window.addEventListener("resize",_e),Fe!=null&&Fe.forever&&xe(Ne,Fe),(0,i.getCurrentInstance)()&&ie&&ie()}return O(()=>{window.removeEventListener("resize",_e)}),{clear:ie,setWatermark:Ie}};const _hoisted_1$1={key:1},_sfc_main$1=defineComponent({__name:"index",setup($){const oe=computed(()=>le=>{var pe;return((pe=le==null?void 0:le.footerButtons)==null?void 0:pe.length)>0?le.footerButtons:[{label:"取消",text:!0,bg:!0,btnClick:({dialog:{options:_e,index:Ce}})=>{const $e=()=>closeDialog(_e,Ce,{command:"cancel"});_e!=null&&_e.beforeCancel&&ut(_e==null?void 0:_e.beforeCancel)?_e.beforeCancel($e,{options:_e,index:Ce}):$e()}},{label:"确定",type:"primary",text:!0,bg:!0,btnClick:({dialog:{options:_e,index:Ce}})=>{const $e=()=>closeDialog(_e,Ce,{command:"sure"});_e!=null&&_e.beforeSure&&ut(_e==null?void 0:_e.beforeSure)?_e.beforeSure($e,{options:_e,index:Ce}):$e()}}]});function ae(le,pe,_e){if(pe!=null&&pe[le]&&ut(pe==null?void 0:pe[le]))return pe==null?void 0:pe[le]({options:pe,index:_e})}function ie(le,pe,_e={command:"close"}){closeDialog(le,pe,_e),ae("close",le,pe)}return(le,pe)=>{const _e=resolveComponent("el-button"),Ce=resolveComponent("el-dialog");return openBlock(!0),createElementBlock(Fragment,null,renderList(unref(dialogStore),($e,xe)=>(openBlock(),createBlock(Ce,mergeProps({key:xe},$e,{modelValue:$e.visible,"onUpdate:modelValue":Ie=>$e.visible=Ie,onOpened:Ie=>ae("open",$e,xe),onClose:Ie=>ie($e,xe),onOpenAutoFocus:Ie=>ae("openAutoFocus",$e,xe),onCloseAutoFocus:Ie=>ae("closeAutoFocus",$e,xe)}),createSlots({default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($e.contentRenderer({options:$e,index:xe})),mergeProps($e==null?void 0:$e.props,{onClose:Ie=>ie($e,xe,Ie)}),null,16,["onClose"]))]),_:2},[$e!=null&&$e.headerRenderer?{name:"header",fn:withCtx(({close:Ie,titleId:Ne,titleClass:Fe})=>[(openBlock(),createBlock(resolveDynamicComponent($e==null?void 0:$e.headerRenderer({close:Ie,titleId:Ne,titleClass:Fe}))))]),key:"0"}:void 0,$e!=null&&$e.hideFooter?void 0:{name:"footer",fn:withCtx(()=>[$e!=null&&$e.footerRenderer?(openBlock(),createBlock(resolveDynamicComponent($e==null?void 0:$e.footerRenderer({options:$e,index:xe})),{key:0})):(openBlock(),createElementBlock("span",_hoisted_1$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(oe.value($e),(Ie,Ne)=>(openBlock(),createBlock(_e,mergeProps({key:Ne},Ie,{onClick:Fe=>Ie.btnClick({dialog:{options:$e,index:xe},button:{btn:Ie,index:Ne}})}),{default:withCtx(()=>[createTextVNode(toDisplayString$1(Ie==null?void 0:Ie.label),1)]),_:2},1040,["onClick"]))),128))]))]),key:"1"}]),1040,["modelValue","onUpdate:modelValue","onOpened","onClose","onOpenAutoFocus","onCloseAutoFocus"]))),128)}}});function tryOnScopeDispose$1($){return getCurrentScope()?(onScopeDispose($),!0):!1}function toValue($){return typeof $=="function"?$():unref($)}const isClient$1=typeof window<"u",noop$5=()=>{},isIOS=getIsIOS();function getIsIOS(){var $;return isClient$1&&(($=window==null?void 0:window.navigator)==null?void 0:$.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper($,oe){function ae(...ie){return new Promise((le,pe)=>{Promise.resolve($(()=>oe.apply(this,ie),{fn:oe,thisArg:this,args:ie})).then(le).catch(pe)})}return ae}function debounceFilter($,oe={}){let ae,ie,le=noop$5;const pe=Ce=>{clearTimeout(Ce),le(),le=noop$5};return Ce=>{const $e=toValue($),xe=toValue(oe.maxWait);return ae&&pe(ae),$e<=0||xe!==void 0&&xe<=0?(ie&&(pe(ie),ie=null),Promise.resolve(Ce())):new Promise((Ie,Ne)=>{le=oe.rejectOnCancel?Ne:Ie,xe&&!ie&&(ie=setTimeout(()=>{ae&&pe(ae),ie=null,Ie(Ce())},xe)),ae=setTimeout(()=>{ie&&pe(ie),ie=null,Ie(Ce())},$e)})}}function toRef(...$){if($.length!==1)return toRef$1(...$);const oe=$[0];return typeof oe=="function"?readonly(customRef(()=>({get:oe,set:noop$5}))):ref(oe)}function useDebounceFn($,oe=200,ae={}){return createFilterWrapper(debounceFilter(oe,ae),$)}function tryOnMounted($,oe=!0){getCurrentInstance()?onMounted($):oe?$():nextTick($)}function tryOnUnmounted$1($){getCurrentInstance()&&onUnmounted($)}function useIntervalFn($,oe=1e3,ae={}){const{immediate:ie=!0,immediateCallback:le=!1}=ae;let pe=null;const _e=ref(!1);function Ce(){pe&&(clearInterval(pe),pe=null)}function $e(){_e.value=!1,Ce()}function xe(){const Ie=toValue(oe);Ie<=0||(_e.value=!0,le&&$(),Ce(),pe=setInterval($,Ie))}if(ie&&isClient$1&&xe(),isRef(oe)||typeof oe=="function"){const Ie=watch(oe,()=>{_e.value&&isClient$1&&xe()});tryOnScopeDispose$1(Ie)}return tryOnScopeDispose$1($e),{isActive:_e,pause:$e,resume:xe}}function useTimeoutFn($,oe,ae={}){const{immediate:ie=!0}=ae,le=ref(!1);let pe=null;function _e(){pe&&(clearTimeout(pe),pe=null)}function Ce(){le.value=!1,_e()}function $e(...xe){_e(),le.value=!0,pe=setTimeout(()=>{le.value=!1,pe=null,$(...xe)},toValue(oe))}return ie&&(le.value=!0,isClient$1&&$e()),tryOnScopeDispose$1(Ce),{isPending:readonly(le),start:$e,stop:Ce}}const dialogStore=ref([]),addDialog=$=>{const oe=()=>dialogStore.value.push(Object.assign($,{visible:!0}));$!=null&&$.openDelay?useTimeoutFn(()=>{oe()},$.openDelay):oe()},closeDialog=($,oe,ae)=>{dialogStore.value.splice(oe,1),$.closeCallBack&&$.closeCallBack({options:$,index:oe,args:ae})},closeAllDialog=()=>{dialogStore.value=[]},ReDialog=Hn(_sfc_main$1),_sfc_main=defineComponent({name:"app",components:{[ElConfigProvider.name]:ElConfigProvider,ReDialog},computed:{currentLocale(){var $;return(($=this.$storage.locale)==null?void 0:$.locale)==="zh"?zhLocale:enLocale}}}),_export_sfc=($,oe)=>{const ae=$.__vccOpts||$;for(const[ie,le]of oe)ae[ie]=le;return ae};function _sfc_render($,oe,ae,ie,le,pe){const _e=resolveComponent("router-view"),Ce=resolveComponent("ReDialog"),$e=resolveComponent("el-config-provider");return openBlock(),createBlock($e,{locale:$.currentLocale},{default:withCtx(()=>[createVNode(_e),createVNode(Ce)]),_:1},8,["locale"])}const App=_export_sfc(_sfc_main,[["render",_sfc_render]]),scriptRel="modulepreload",assetsURL=function($){return"/vue-pure-admin/"+$},seen={},__vitePreload=function(oe,ae,ie){if(!ae||ae.length===0)return oe();const le=document.getElementsByTagName("link");return Promise.all(ae.map(pe=>{if(pe=assetsURL(pe),pe in seen)return;seen[pe]=!0;const _e=pe.endsWith(".css"),Ce=_e?'[rel="stylesheet"]':"";if(!!ie)for(let Ie=le.length-1;Ie>=0;Ie--){const Ne=le[Ie];if(Ne.href===pe&&(!_e||Ne.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${pe}"]${Ce}`))return;const xe=document.createElement("link");if(xe.rel=_e?"stylesheet":scriptRel,_e||(xe.as="script",xe.crossOrigin=""),xe.href=pe,document.head.appendChild(xe),_e)return new Promise((Ie,Ne)=>{xe.addEventListener("load",Ie),xe.addEventListener("error",()=>Ne(new Error(`Unable to preload CSS for ${pe}`)))})})).then(()=>oe())},resource$1={buttons:{hsLoginOut:$=>{const{normalize:oe}=$;return oe(["LoginOut"])},hsfullscreen:$=>{const{normalize:oe}=$;return oe(["FullScreen"])},hsexitfullscreen:$=>{const{normalize:oe}=$;return oe(["ExitFullscreen"])},hsrefreshRoute:$=>{const{normalize:oe}=$;return oe(["RefreshRoute"])},hslogin:$=>{const{normalize:oe}=$;return oe(["Login"])},hsadd:$=>{const{normalize:oe}=$;return oe(["Add"])},hsmark:$=>{const{normalize:oe}=$;return oe(["Mark/Cancel"])},hssave:$=>{const{normalize:oe}=$;return oe(["Save"])},hssearch:$=>{const{normalize:oe}=$;return oe(["Search"])},hsexpendAll:$=>{const{normalize:oe}=$;return oe(["Expand All"])},hscollapseAll:$=>{const{normalize:oe}=$;return oe(["Collapse All"])},hssystemSet:$=>{const{normalize:oe}=$;return oe(["Open ProjectConfig"])},hsdelete:$=>{const{normalize:oe}=$;return oe(["Delete"])},hsreload:$=>{const{normalize:oe}=$;return oe(["Reload"])},hscloseCurrentTab:$=>{const{normalize:oe}=$;return oe(["Close CurrentTab"])},hscloseLeftTabs:$=>{const{normalize:oe}=$;return oe(["Close LeftTabs"])},hscloseRightTabs:$=>{const{normalize:oe}=$;return oe(["Close RightTabs"])},hscloseOtherTabs:$=>{const{normalize:oe}=$;return oe(["Close OtherTabs"])},hscloseAllTabs:$=>{const{normalize:oe}=$;return oe(["Close AllTabs"])},hswholeFullScreen:$=>{const{normalize:oe}=$;return oe(["FullScreen"])},hswholeExitFullScreen:$=>{const{normalize:oe}=$;return oe(["ExitFull"])},hscontentFullScreen:$=>{const{normalize:oe}=$;return oe(["Content FullScreen"])},hscontentExitFullScreen:$=>{const{normalize:oe}=$;return oe(["Content ExitFullScreen"])}},menus:{hshome:$=>{const{normalize:oe}=$;return oe(["Home"])},hslogin:$=>{const{normalize:oe}=$;return oe(["Login"])},hsempty:$=>{const{normalize:oe}=$;return oe(["Empty Page"])},hssysManagement:$=>{const{normalize:oe}=$;return oe(["System Manage"])},hsUser:$=>{const{normalize:oe}=$;return oe(["User Manage"])},hsRole:$=>{const{normalize:oe}=$;return oe(["Role Manage"])},hsDept:$=>{const{normalize:oe}=$;return oe(["Dept Manage"])},hseditor:$=>{const{normalize:oe}=$;return oe(["Editor"])},hsabnormal:$=>{const{normalize:oe}=$;return oe(["Abnormal Page"])},hsfourZeroFour:$=>{const{normalize:oe}=$;return oe(["404"])},hsfourZeroOne:$=>{const{normalize:oe}=$;return oe(["403"])},hsFive:$=>{const{normalize:oe}=$;return oe(["500"])},hscomponents:$=>{const{normalize:oe}=$;return oe(["Components"])},hsdialog:$=>{const{normalize:oe}=$;return oe(["Dialog Components"])},hsmessage:$=>{const{normalize:oe}=$;return oe(["Message Tips Components"])},hsvideo:$=>{const{normalize:oe}=$;return oe(["Video Components"])},hsmap:$=>{const{normalize:oe}=$;return oe(["Map Components"])},hsdraggable:$=>{const{normalize:oe}=$;return oe(["Draggable Components"])},hssplitPane:$=>{const{normalize:oe}=$;return oe(["Split Pane"])},hsbutton:$=>{const{normalize:oe}=$;return oe(["Button Components"])},hscropping:$=>{const{normalize:oe}=$;return oe(["Picture Cropping"])},hscountTo:$=>{const{normalize:oe}=$;return oe(["Digital Animation"])},hsselector:$=>{const{normalize:oe}=$;return oe(["Selector Components"])},hsflowChart:$=>{const{normalize:oe}=$;return oe(["Flow Chart"])},hsseamless:$=>{const{normalize:oe}=$;return oe(["Seamless Scroll"])},hscontextmenu:$=>{const{normalize:oe}=$;return oe(["Context Menu"])},hstypeit:$=>{const{normalize:oe}=$;return oe(["Typeit Components"])},hsjsoneditor:$=>{const{normalize:oe}=$;return oe(["JSON Editor"])},hsmenus:$=>{const{normalize:oe}=$;return oe(["MultiLevel Menu"])},hsmenu1:$=>{const{normalize:oe}=$;return oe(["Menu1"])},"hsmenu1-1":$=>{const{normalize:oe}=$;return oe(["Menu1-1"])},"hsmenu1-2":$=>{const{normalize:oe}=$;return oe(["Menu1-2"])},"hsmenu1-2-1":$=>{const{normalize:oe}=$;return oe(["Menu1-2-1"])},"hsmenu1-2-2":$=>{const{normalize:oe}=$;return oe(["Menu1-2-2"])},"hsmenu1-3":$=>{const{normalize:oe}=$;return oe(["Menu1-3"])},hsmenu2:$=>{const{normalize:oe}=$;return oe(["Menu2"])},permission:$=>{const{normalize:oe}=$;return oe(["Permission Manage"])},permissionPage:$=>{const{normalize:oe}=$;return oe(["Page Permission"])},permissionButton:$=>{const{normalize:oe}=$;return oe(["Button Permission"])},hstabs:$=>{const{normalize:oe}=$;return oe(["Tabs Operate"])},hsguide:$=>{const{normalize:oe}=$;return oe(["Guide"])},hsAble:$=>{const{normalize:oe}=$;return oe(["Able"])},hsMenuTree:$=>{const{normalize:oe}=$;return oe(["Menu Tree"])},hsWatermark:$=>{const{normalize:oe}=$;return oe(["Water Mark"])},hsPrint:$=>{const{normalize:oe}=$;return oe(["Print"])},hsDownload:$=>{const{normalize:oe}=$;return oe(["Download"])},hsExternalPage:$=>{const{normalize:oe}=$;return oe(["External Page"])},hsPureDocument:$=>{const{normalize:oe}=$;return oe(["Pure Doc(Embedded)"])},externalLink:$=>{const{normalize:oe}=$;return oe(["Pure Doc(External)"])},hsEpDocument:$=>{const{normalize:oe}=$;return oe(["Element Plus Doc(Embedded)"])},hsVueDocument:$=>{const{normalize:oe}=$;return oe(["Vue3 Doc(Embedded)"])},hsViteDocument:$=>{const{normalize:oe}=$;return oe(["Vite Doc(Embedded)"])},hsPiniaDocument:$=>{const{normalize:oe}=$;return oe(["Pinia Doc(Embedded)"])},hsRouterDocument:$=>{const{normalize:oe}=$;return oe(["Vue Router Doc(Embedded)"])},hsTailwindcssDocument:$=>{const{normalize:oe}=$;return oe(["Tailwindcss Doc(Embedded)"])},hsAbout:$=>{const{normalize:oe}=$;return oe(["About"])},hsResult:$=>{const{normalize:oe}=$;return oe(["Result Page"])},hsSuccess:$=>{const{normalize:oe}=$;return oe(["Success Page"])},hsFail:$=>{const{normalize:oe}=$;return oe(["Fail Page"])},hsIconSelect:$=>{const{normalize:oe}=$;return oe(["Icon Select"])},hsTimeline:$=>{const{normalize:oe}=$;return oe(["Time Line"])},hsLineTree:$=>{const{normalize:oe}=$;return oe(["LineTree"])},hsList:$=>{const{normalize:oe}=$;return oe(["List Page"])},hsListCard:$=>{const{normalize:oe}=$;return oe(["Card List Page"])},hsDebounce:$=>{const{normalize:oe}=$;return oe(["Debounce & Throttle"])},hsFormDesign:$=>{const{normalize:oe}=$;return oe(["Form Design"])},hsBarcode:$=>{const{normalize:oe}=$;return oe(["Barcode"])},hsQrcode:$=>{const{normalize:oe}=$;return oe(["Qrcode"])},hsCascader:$=>{const{normalize:oe}=$;return oe(["Area Cascader"])},hsSwiper:$=>{const{normalize:oe}=$;return oe(["Swiper Plugin"])},hsVirtualList:$=>{const{normalize:oe}=$;return oe(["Virtual List"])},hsPdf:$=>{const{normalize:oe}=$;return oe(["PDF Preview"])},hsExecl:$=>{const{normalize:oe}=$;return oe(["Export Excel"])},hsInfiniteScroll:$=>{const{normalize:oe}=$;return oe(["Table Infinite Scroll"])},hsdanmaku:$=>{const{normalize:oe}=$;return oe(["Danmaku Components"])},hsPureTableBase:$=>{const{normalize:oe}=$;return oe(["Base Usage"])},hsPureTableHigh:$=>{const{normalize:oe}=$;return oe(["High Usage"])},hsTree:$=>{const{normalize:oe}=$;return oe(["Big Data Tree"])},hsMenuoverflow:$=>{const{normalize:oe}=$;return oe(["Menu Overflow Show Tooltip Text"])},hsChildMenuoverflow:$=>{const{normalize:oe}=$;return oe(["Child Menu Overflow Show Tooltip Text"])}},status:{hsLoad:$=>{const{normalize:oe}=$;return oe(["Loading..."])}},login:{username:$=>{const{normalize:oe}=$;return oe(["Username"])},password:$=>{const{normalize:oe}=$;return oe(["Password"])},verifyCode:$=>{const{normalize:oe}=$;return oe(["VerifyCode"])},remember:$=>{const{normalize:oe}=$;return oe(["Remember Password"])},sure:$=>{const{normalize:oe}=$;return oe(["Sure Password"])},forget:$=>{const{normalize:oe}=$;return oe(["Forget Password?"])},login:$=>{const{normalize:oe}=$;return oe(["Login"])},thirdLogin:$=>{const{normalize:oe}=$;return oe(["Third Login"])},phoneLogin:$=>{const{normalize:oe}=$;return oe(["Phone Login"])},qRCodeLogin:$=>{const{normalize:oe}=$;return oe(["QRCode Login"])},register:$=>{const{normalize:oe}=$;return oe(["Register"])},weChatLogin:$=>{const{normalize:oe}=$;return oe(["WeChat Login"])},alipayLogin:$=>{const{normalize:oe}=$;return oe(["Alipay Login"])},qqLogin:$=>{const{normalize:oe}=$;return oe(["QQ Login"])},weiboLogin:$=>{const{normalize:oe}=$;return oe(["Weibo Login"])},phone:$=>{const{normalize:oe}=$;return oe(["Phone"])},smsVerifyCode:$=>{const{normalize:oe}=$;return oe(["SMS VerifyCode"])},back:$=>{const{normalize:oe}=$;return oe(["Back"])},test:$=>{const{normalize:oe}=$;return oe(["Mock Test"])},tip:$=>{const{normalize:oe}=$;return oe(['After scanning the code, click "Confirm" to complete the login'])},definite:$=>{const{normalize:oe}=$;return oe(["Definite"])},loginSuccess:$=>{const{normalize:oe}=$;return oe(["Login Success"])},registerSuccess:$=>{const{normalize:oe}=$;return oe(["Regist Success"])},tickPrivacy:$=>{const{normalize:oe}=$;return oe(["Please tick Privacy Policy"])},readAccept:$=>{const{normalize:oe}=$;return oe(["I have read it carefully and accept"])},privacyPolicy:$=>{const{normalize:oe}=$;return oe(["Privacy Policy"])},getVerifyCode:$=>{const{normalize:oe}=$;return oe(["Get VerifyCode"])},info:$=>{const{normalize:oe}=$;return oe(["Seconds"])},usernameReg:$=>{const{normalize:oe}=$;return oe(["Please enter username"])},passwordReg:$=>{const{normalize:oe}=$;return oe(["Please enter password"])},verifyCodeReg:$=>{const{normalize:oe}=$;return oe(["Please enter verify code"])},verifyCodeCorrectReg:$=>{const{normalize:oe}=$;return oe(["Please enter correct verify code"])},verifyCodeSixReg:$=>{const{normalize:oe}=$;return oe(["Please enter a 6-digit verify code"])},phoneReg:$=>{const{normalize:oe}=$;return oe(["Please enter the phone"])},phoneCorrectReg:$=>{const{normalize:oe}=$;return oe(["Please enter the correct phone number format"])},passwordRuleReg:$=>{const{normalize:oe}=$;return oe(["The password format should be any combination of 8-18 digits"])},passwordSureReg:$=>{const{normalize:oe}=$;return oe(["Please enter confirm password"])},passwordDifferentReg:$=>{const{normalize:oe}=$;return oe(["The two passwords do not match!"])},passwordUpdateReg:$=>{const{normalize:oe}=$;return oe(["Password has been updated"])}}},__vite_glob_0_0$2=Object.freeze(Object.defineProperty({__proto__:null,default:resource$1},Symbol.toStringTag,{value:"Module"})),resource={buttons:{hsLoginOut:$=>{const{normalize:oe}=$;return oe(["退出系统"])},hsfullscreen:$=>{const{normalize:oe}=$;return oe(["全屏"])},hsexitfullscreen:$=>{const{normalize:oe}=$;return oe(["退出全屏"])},hsrefreshRoute:$=>{const{normalize:oe}=$;return oe(["刷新路由"])},hslogin:$=>{const{normalize:oe}=$;return oe(["登录"])},hsadd:$=>{const{normalize:oe}=$;return oe(["新增"])},hsmark:$=>{const{normalize:oe}=$;return oe(["标记/取消"])},hssave:$=>{const{normalize:oe}=$;return oe(["保存"])},hssearch:$=>{const{normalize:oe}=$;return oe(["搜索"])},hsexpendAll:$=>{const{normalize:oe}=$;return oe(["全部展开"])},hscollapseAll:$=>{const{normalize:oe}=$;return oe(["全部折叠"])},hssystemSet:$=>{const{normalize:oe}=$;return oe(["打开项目配置"])},hsdelete:$=>{const{normalize:oe}=$;return oe(["删除"])},hsreload:$=>{const{normalize:oe}=$;return oe(["重新加载"])},hscloseCurrentTab:$=>{const{normalize:oe}=$;return oe(["关闭当前标签页"])},hscloseLeftTabs:$=>{const{normalize:oe}=$;return oe(["关闭左侧标签页"])},hscloseRightTabs:$=>{const{normalize:oe}=$;return oe(["关闭右侧标签页"])},hscloseOtherTabs:$=>{const{normalize:oe}=$;return oe(["关闭其他标签页"])},hscloseAllTabs:$=>{const{normalize:oe}=$;return oe(["关闭全部标签页"])},hswholeFullScreen:$=>{const{normalize:oe}=$;return oe(["全屏"])},hswholeExitFullScreen:$=>{const{normalize:oe}=$;return oe(["退出全屏"])},hscontentFullScreen:$=>{const{normalize:oe}=$;return oe(["内容区全屏"])},hscontentExitFullScreen:$=>{const{normalize:oe}=$;return oe(["内容区退出全屏"])}},menus:{hshome:$=>{const{normalize:oe}=$;return oe(["首页"])},hslogin:$=>{const{normalize:oe}=$;return oe(["登录"])},hsempty:$=>{const{normalize:oe}=$;return oe(["无Layout页"])},hssysManagement:$=>{const{normalize:oe}=$;return oe(["系统管理"])},hsUser:$=>{const{normalize:oe}=$;return oe(["用户管理"])},hsRole:$=>{const{normalize:oe}=$;return oe(["角色管理"])},hsDept:$=>{const{normalize:oe}=$;return oe(["部门管理"])},hseditor:$=>{const{normalize:oe}=$;return oe(["编辑器"])},hsabnormal:$=>{const{normalize:oe}=$;return oe(["异常页面"])},hsfourZeroFour:$=>{const{normalize:oe}=$;return oe(["404"])},hsfourZeroOne:$=>{const{normalize:oe}=$;return oe(["403"])},hsFive:$=>{const{normalize:oe}=$;return oe(["500"])},hscomponents:$=>{const{normalize:oe}=$;return oe(["组件"])},hsdialog:$=>{const{normalize:oe}=$;return oe(["函数式弹框组件"])},hsmessage:$=>{const{normalize:oe}=$;return oe(["消息提示组件"])},hsvideo:$=>{const{normalize:oe}=$;return oe(["视频组件"])},hsmap:$=>{const{normalize:oe}=$;return oe(["地图组件"])},hsdraggable:$=>{const{normalize:oe}=$;return oe(["拖拽组件"])},hssplitPane:$=>{const{normalize:oe}=$;return oe(["切割面板"])},hsbutton:$=>{const{normalize:oe}=$;return oe(["按钮组件"])},hscropping:$=>{const{normalize:oe}=$;return oe(["图片裁剪"])},hscountTo:$=>{const{normalize:oe}=$;return oe(["数字动画"])},hsselector:$=>{const{normalize:oe}=$;return oe(["选择器组件"])},hsflowChart:$=>{const{normalize:oe}=$;return oe(["流程图"])},hsseamless:$=>{const{normalize:oe}=$;return oe(["无缝滚动"])},hscontextmenu:$=>{const{normalize:oe}=$;return oe(["右键菜单"])},hstypeit:$=>{const{normalize:oe}=$;return oe(["打字机组件"])},hsjsoneditor:$=>{const{normalize:oe}=$;return oe(["JSON编辑器"])},hsmenus:$=>{const{normalize:oe}=$;return oe(["多级菜单"])},hsmenu1:$=>{const{normalize:oe}=$;return oe(["菜单1"])},"hsmenu1-1":$=>{const{normalize:oe}=$;return oe(["菜单1-1"])},"hsmenu1-2":$=>{const{normalize:oe}=$;return oe(["菜单1-2"])},"hsmenu1-2-1":$=>{const{normalize:oe}=$;return oe(["菜单1-2-1"])},"hsmenu1-2-2":$=>{const{normalize:oe}=$;return oe(["菜单1-2-2"])},"hsmenu1-3":$=>{const{normalize:oe}=$;return oe(["菜单1-3"])},hsmenu2:$=>{const{normalize:oe}=$;return oe(["菜单2"])},permission:$=>{const{normalize:oe}=$;return oe(["权限管理"])},permissionPage:$=>{const{normalize:oe}=$;return oe(["页面权限"])},permissionButton:$=>{const{normalize:oe}=$;return oe(["按钮权限"])},hstabs:$=>{const{normalize:oe}=$;return oe(["标签页操作"])},hsguide:$=>{const{normalize:oe}=$;return oe(["引导页"])},hsAble:$=>{const{normalize:oe}=$;return oe(["功能"])},hsMenuTree:$=>{const{normalize:oe}=$;return oe(["菜单树结构"])},hsWatermark:$=>{const{normalize:oe}=$;return oe(["水印"])},hsPrint:$=>{const{normalize:oe}=$;return oe(["打印"])},hsDownload:$=>{const{normalize:oe}=$;return oe(["下载"])},hsExternalPage:$=>{const{normalize:oe}=$;return oe(["外部页面"])},hsPureDocument:$=>{const{normalize:oe}=$;return oe(["平台文档(内嵌)"])},externalLink:$=>{const{normalize:oe}=$;return oe(["平台文档(外链)"])},hsEpDocument:$=>{const{normalize:oe}=$;return oe(["Element Plus 文档(内嵌)"])},hsVueDocument:$=>{const{normalize:oe}=$;return oe(["Vue3 文档(内嵌)"])},hsViteDocument:$=>{const{normalize:oe}=$;return oe(["Vite 文档(内嵌)"])},hsPiniaDocument:$=>{const{normalize:oe}=$;return oe(["Pinia 文档(内嵌)"])},hsRouterDocument:$=>{const{normalize:oe}=$;return oe(["Vue Router 文档(内嵌)"])},hsTailwindcssDocument:$=>{const{normalize:oe}=$;return oe(["Tailwindcss 文档(内嵌)"])},hsAbout:$=>{const{normalize:oe}=$;return oe(["关于"])},hsResult:$=>{const{normalize:oe}=$;return oe(["结果页面"])},hsSuccess:$=>{const{normalize:oe}=$;return oe(["成功页面"])},hsFail:$=>{const{normalize:oe}=$;return oe(["失败页面"])},hsIconSelect:$=>{const{normalize:oe}=$;return oe(["图标选择器"])},hsTimeline:$=>{const{normalize:oe}=$;return oe(["时间线"])},hsLineTree:$=>{const{normalize:oe}=$;return oe(["树形连接线"])},hsList:$=>{const{normalize:oe}=$;return oe(["列表页"])},hsListCard:$=>{const{normalize:oe}=$;return oe(["卡片列表页"])},hsDebounce:$=>{const{normalize:oe}=$;return oe(["防抖节流"])},hsFormDesign:$=>{const{normalize:oe}=$;return oe(["表单设计器"])},hsBarcode:$=>{const{normalize:oe}=$;return oe(["条形码"])},hsQrcode:$=>{const{normalize:oe}=$;return oe(["二维码"])},hsCascader:$=>{const{normalize:oe}=$;return oe(["区域级联选择器"])},hsSwiper:$=>{const{normalize:oe}=$;return oe(["Swiper插件"])},hsVirtualList:$=>{const{normalize:oe}=$;return oe(["虚拟列表"])},hsPdf:$=>{const{normalize:oe}=$;return oe(["PDF预览"])},hsExecl:$=>{const{normalize:oe}=$;return oe(["导出Excel"])},hsInfiniteScroll:$=>{const{normalize:oe}=$;return oe(["表格无限滚动"])},hsdanmaku:$=>{const{normalize:oe}=$;return oe(["弹幕组件"])},hsPureTableBase:$=>{const{normalize:oe}=$;return oe(["基础用法(23个示例)"])},hsPureTableHigh:$=>{const{normalize:oe}=$;return oe(["高级用法(10个示例)"])},hsTree:$=>{const{normalize:oe}=$;return oe(["大数据树业务组件"])},hsMenuoverflow:$=>{const{normalize:oe}=$;return oe(["目录超出显示 Tooltip 文字提示"])},hsChildMenuoverflow:$=>{const{normalize:oe}=$;return oe(["菜单超出显示 Tooltip 文字提示"])}},status:{hsLoad:$=>{const{normalize:oe}=$;return oe(["加载中..."])}},login:{username:$=>{const{normalize:oe}=$;return oe(["账号"])},password:$=>{const{normalize:oe}=$;return oe(["密码"])},verifyCode:$=>{const{normalize:oe}=$;return oe(["验证码"])},remember:$=>{const{normalize:oe}=$;return oe(["记住密码"])},sure:$=>{const{normalize:oe}=$;return oe(["确认密码"])},forget:$=>{const{normalize:oe}=$;return oe(["忘记密码?"])},login:$=>{const{normalize:oe}=$;return oe(["登录"])},thirdLogin:$=>{const{normalize:oe}=$;return oe(["第三方登录"])},phoneLogin:$=>{const{normalize:oe}=$;return oe(["手机登录"])},qRCodeLogin:$=>{const{normalize:oe}=$;return oe(["二维码登录"])},register:$=>{const{normalize:oe}=$;return oe(["注册"])},weChatLogin:$=>{const{normalize:oe}=$;return oe(["微信登录"])},alipayLogin:$=>{const{normalize:oe}=$;return oe(["支付宝登录"])},qqLogin:$=>{const{normalize:oe}=$;return oe(["QQ登录"])},weiboLogin:$=>{const{normalize:oe}=$;return oe(["微博登录"])},phone:$=>{const{normalize:oe}=$;return oe(["手机号码"])},smsVerifyCode:$=>{const{normalize:oe}=$;return oe(["短信验证码"])},back:$=>{const{normalize:oe}=$;return oe(["返回"])},test:$=>{const{normalize:oe}=$;return oe(["模拟测试"])},tip:$=>{const{normalize:oe}=$;return oe(['扫码后点击"确认",即可完成登录'])},definite:$=>{const{normalize:oe}=$;return oe(["确定"])},loginSuccess:$=>{const{normalize:oe}=$;return oe(["登录成功"])},registerSuccess:$=>{const{normalize:oe}=$;return oe(["注册成功"])},tickPrivacy:$=>{const{normalize:oe}=$;return oe(["请勾选隐私政策"])},readAccept:$=>{const{normalize:oe}=$;return oe(["我已仔细阅读并接受"])},privacyPolicy:$=>{const{normalize:oe}=$;return oe(["《隐私政策》"])},getVerifyCode:$=>{const{normalize:oe}=$;return oe(["获取验证码"])},info:$=>{const{normalize:oe}=$;return oe(["秒后重新获取"])},usernameReg:$=>{const{normalize:oe}=$;return oe(["请输入账号"])},passwordReg:$=>{const{normalize:oe}=$;return oe(["请输入密码"])},verifyCodeReg:$=>{const{normalize:oe}=$;return oe(["请输入验证码"])},verifyCodeCorrectReg:$=>{const{normalize:oe}=$;return oe(["请输入正确的验证码"])},verifyCodeSixReg:$=>{const{normalize:oe}=$;return oe(["请输入6位数字验证码"])},phoneReg:$=>{const{normalize:oe}=$;return oe(["请输入手机号码"])},phoneCorrectReg:$=>{const{normalize:oe}=$;return oe(["请输入正确的手机号码格式"])},passwordRuleReg:$=>{const{normalize:oe}=$;return oe(["密码格式应为8-18位数字、字母、符号的任意两种组合"])},passwordSureReg:$=>{const{normalize:oe}=$;return oe(["请输入确认密码"])},passwordDifferentReg:$=>{const{normalize:oe}=$;return oe(["两次密码不一致!"])},passwordUpdateReg:$=>{const{normalize:oe}=$;return oe(["修改密码成功"])}}},__vite_glob_0_1$2=Object.freeze(Object.defineProperty({__proto__:null,default:resource},Symbol.toStringTag,{value:"Module"}));/*! + * shared v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const inBrowser=typeof window<"u",hasSymbol=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",makeSymbol=$=>hasSymbol?Symbol($):$,generateFormatCacheKey=($,oe,ae)=>friendlyJSONstringify({l:$,k:oe,s:ae}),friendlyJSONstringify=$=>JSON.stringify($).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$4=$=>typeof $=="number"&&isFinite($),isDate$2=$=>toTypeString($)==="[object Date]",isRegExp$4=$=>toTypeString($)==="[object RegExp]",isEmptyObject=$=>isPlainObject$2($)&&Object.keys($).length===0;function warn$1($,oe){typeof console<"u"&&(console.warn("[intlify] "+$),oe&&console.warn(oe.stack))}const assign$4=Object.assign;function escapeHtml($){return $.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty$1=Object.prototype.hasOwnProperty;function hasOwn$3($,oe){return hasOwnProperty$1.call($,oe)}const isArray$9=Array.isArray,isFunction$2=$=>typeof $=="function",isString$5=$=>typeof $=="string",isBoolean$2=$=>typeof $=="boolean",isObject$6=$=>$!==null&&typeof $=="object",objectToString$1=Object.prototype.toString,toTypeString=$=>objectToString$1.call($),isPlainObject$2=$=>toTypeString($)==="[object Object]",toDisplayString=$=>$==null?"":isArray$9($)||isPlainObject$2($)&&$.toString===objectToString$1?JSON.stringify($,null,2):String($);/*! + * message-compiler v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function createCompileError($,oe,ae={}){const{domain:ie,messages:le,args:pe}=ae,_e=$,Ce=new SyntaxError(String(_e));return Ce.code=$,oe&&(Ce.location=oe),Ce.domain=ie,Ce}/*! + * core-base v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],["["]:[4],o:[7]};pathStateMachine[1]={w:[1],["."]:[2],["["]:[4],o:[7]};pathStateMachine[2]={w:[2],i:[3,0],[0]:[3,0]};pathStateMachine[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};pathStateMachine[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};pathStateMachine[5]={["'"]:[4,0],o:8,l:[5,0]};pathStateMachine[6]={['"']:[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral($){return literalValueRE.test($)}function stripQuotes($){const oe=$.charCodeAt(0),ae=$.charCodeAt($.length-1);return oe===ae&&(oe===34||oe===39)?$.slice(1,-1):$}function getPathCharType($){if($==null)return"o";switch($.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return $;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath($){const oe=$.trim();return $.charAt(0)==="0"&&isNaN(parseInt($))?!1:isLiteral(oe)?stripQuotes(oe):"*"+oe}function parse$5($){const oe=[];let ae=-1,ie=0,le=0,pe,_e,Ce,$e,xe,Ie,Ne;const Fe=[];Fe[0]=()=>{_e===void 0?_e=Ce:_e+=Ce},Fe[1]=()=>{_e!==void 0&&(oe.push(_e),_e=void 0)},Fe[2]=()=>{Fe[0](),le++},Fe[3]=()=>{if(le>0)le--,ie=4,Fe[0]();else{if(le=0,_e===void 0||(_e=formatSubPath(_e),_e===!1))return!1;Fe[1]()}};function ze(){const At=$[ae+1];if(ie===5&&At==="'"||ie===6&&At==='"')return ae++,Ce="\\"+At,Fe[0](),!0}for(;ie!==null;)if(ae++,pe=$[ae],!(pe==="\\"&&ze())){if($e=getPathCharType(pe),Ne=pathStateMachine[ie],xe=Ne[$e]||Ne.l||8,xe===8||(ie=xe[0],xe[1]!==void 0&&(Ie=Fe[xe[1]],Ie&&(Ce=pe,Ie()===!1))))return;if(ie===7)return oe}}const cache=new Map;function resolveWithKeyValue($,oe){return isObject$6($)?$[oe]:null}function resolveValue($,oe){if(!isObject$6($))return null;let ae=cache.get(oe);if(ae||(ae=parse$5(oe),ae&&cache.set(oe,ae)),!ae)return null;const ie=ae.length;let le=$,pe=0;for(;pe$,DEFAULT_MESSAGE=$=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=$=>$.length===0?"":$.join(""),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault($,oe){return $=Math.abs($),oe===2?$?$>1?1:0:1:$?Math.min($,2):0}function getPluralIndex($){const oe=isNumber$4($.pluralIndex)?$.pluralIndex:-1;return $.named&&(isNumber$4($.named.count)||isNumber$4($.named.n))?isNumber$4($.named.count)?$.named.count:isNumber$4($.named.n)?$.named.n:oe:oe}function normalizeNamed($,oe){oe.count||(oe.count=$),oe.n||(oe.n=$)}function createMessageContext($={}){const oe=$.locale,ae=getPluralIndex($),ie=isObject$6($.pluralRules)&&isString$5(oe)&&isFunction$2($.pluralRules[oe])?$.pluralRules[oe]:pluralDefault,le=isObject$6($.pluralRules)&&isString$5(oe)&&isFunction$2($.pluralRules[oe])?pluralDefault:void 0,pe=vn=>vn[ie(ae,vn.length,le)],_e=$.list||[],Ce=vn=>_e[vn],$e=$.named||{};isNumber$4($.pluralIndex)&&normalizeNamed(ae,$e);const xe=vn=>$e[vn];function Ie(vn){const _n=isFunction$2($.messages)?$.messages(vn):isObject$6($.messages)?$.messages[vn]:!1;return _n||($.parent?$.parent.message(vn):DEFAULT_MESSAGE)}const Ne=vn=>$.modifiers?$.modifiers[vn]:DEFAULT_MODIFIER,Fe=isPlainObject$2($.processor)&&isFunction$2($.processor.normalize)?$.processor.normalize:DEFAULT_NORMALIZE,ze=isPlainObject$2($.processor)&&isFunction$2($.processor.interpolate)?$.processor.interpolate:DEFAULT_INTERPOLATE,At=isPlainObject$2($.processor)&&isString$5($.processor.type)?$.processor.type:DEFAULT_MESSAGE_DATA_TYPE,hn={list:Ce,named:xe,plural:pe,linked:(vn,..._n)=>{const[bn,Cn]=_n;let En="text",$n="";_n.length===1?isObject$6(bn)?($n=bn.modifier||$n,En=bn.type||En):isString$5(bn)&&($n=bn||$n):_n.length===2&&(isString$5(bn)&&($n=bn||$n),isString$5(Cn)&&(En=Cn||En));let wn=Ie(vn)(hn);return En==="vnode"&&isArray$9(wn)&&$n&&(wn=wn[0]),$n?Ne($n)(wn,En):wn},message:Ie,type:At,interpolate:ze,normalize:Fe};return hn}function fallbackWithSimple($,oe,ae){return[...new Set([ae,...isArray$9(oe)?oe:isObject$6(oe)?Object.keys(oe):isString$5(oe)?[oe]:[ae]])]}function fallbackWithLocaleChain($,oe,ae){const ie=isString$5(ae)?ae:DEFAULT_LOCALE$1,le=$;le.__localeChainCache||(le.__localeChainCache=new Map);let pe=le.__localeChainCache.get(ie);if(!pe){pe=[];let _e=[ae];for(;isArray$9(_e);)_e=appendBlockToChain(pe,_e,oe);const Ce=isArray$9(oe)||!isPlainObject$2(oe)?oe:oe.default?oe.default:null;_e=isString$5(Ce)?[Ce]:Ce,isArray$9(_e)&&appendBlockToChain(pe,_e,!1),le.__localeChainCache.set(ie,pe)}return pe}function appendBlockToChain($,oe,ae){let ie=!0;for(let le=0;le`${$.charAt(0).toLocaleUpperCase()}${$.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:($,oe)=>oe==="text"&&isString$5($)?$.toUpperCase():oe==="vnode"&&isObject$6($)&&"__v_isVNode"in $?$.children.toUpperCase():$,lower:($,oe)=>oe==="text"&&isString$5($)?$.toLowerCase():oe==="vnode"&&isObject$6($)&&"__v_isVNode"in $?$.children.toLowerCase():$,capitalize:($,oe)=>oe==="text"&&isString$5($)?capitalize($):oe==="vnode"&&isObject$6($)&&"__v_isVNode"in $?capitalize($.children):$}}let _compiler,_resolver;function registerMessageResolver($){_resolver=$}let _fallbacker;function registerLocaleFallbacker($){_fallbacker=$}let _cid=0;function createCoreContext($={}){const oe=isString$5($.version)?$.version:VERSION$2,ae=isString$5($.locale)?$.locale:DEFAULT_LOCALE$1,ie=isArray$9($.fallbackLocale)||isPlainObject$2($.fallbackLocale)||isString$5($.fallbackLocale)||$.fallbackLocale===!1?$.fallbackLocale:ae,le=isPlainObject$2($.messages)?$.messages:{[ae]:{}},pe=isPlainObject$2($.datetimeFormats)?$.datetimeFormats:{[ae]:{}},_e=isPlainObject$2($.numberFormats)?$.numberFormats:{[ae]:{}},Ce=assign$4({},$.modifiers||{},getDefaultLinkedModifiers()),$e=$.pluralRules||{},xe=isFunction$2($.missing)?$.missing:null,Ie=isBoolean$2($.missingWarn)||isRegExp$4($.missingWarn)?$.missingWarn:!0,Ne=isBoolean$2($.fallbackWarn)||isRegExp$4($.fallbackWarn)?$.fallbackWarn:!0,Fe=!!$.fallbackFormat,ze=!!$.unresolving,At=isFunction$2($.postTranslation)?$.postTranslation:null,Lt=isPlainObject$2($.processor)?$.processor:null,hn=isBoolean$2($.warnHtmlMessage)?$.warnHtmlMessage:!0,vn=!!$.escapeParameter,_n=isFunction$2($.messageCompiler)?$.messageCompiler:_compiler,bn=isFunction$2($.messageResolver)?$.messageResolver:_resolver||resolveWithKeyValue,Cn=isFunction$2($.localeFallbacker)?$.localeFallbacker:_fallbacker||fallbackWithSimple,En=isObject$6($.fallbackContext)?$.fallbackContext:void 0,$n=isFunction$2($.onWarn)?$.onWarn:warn$1,wn=$,Tn=isObject$6(wn.__datetimeFormatters)?wn.__datetimeFormatters:new Map,xn=isObject$6(wn.__numberFormatters)?wn.__numberFormatters:new Map,kn=isObject$6(wn.__meta)?wn.__meta:{};_cid++;const An={version:oe,cid:_cid,locale:ae,fallbackLocale:ie,messages:le,modifiers:Ce,pluralRules:$e,missing:xe,missingWarn:Ie,fallbackWarn:Ne,fallbackFormat:Fe,unresolving:ze,postTranslation:At,processor:Lt,warnHtmlMessage:hn,escapeParameter:vn,messageCompiler:_n,messageResolver:bn,localeFallbacker:Cn,fallbackContext:En,onWarn:$n,__meta:kn};return An.datetimeFormats=pe,An.numberFormats=_e,An.__datetimeFormatters=Tn,An.__numberFormatters=xn,An}function handleMissing($,oe,ae,ie,le){const{missing:pe,onWarn:_e}=$;if(pe!==null){const Ce=pe($,ae,oe,le);return isString$5(Ce)?Ce:oe}else return oe}function updateFallbackLocale($,oe,ae){const ie=$;ie.__localeChainCache=new Map,$.localeFallbacker($,ae,oe)}let code$1=CompileErrorCodes.__EXTEND_POINT__;const inc$1=()=>++code$1,CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),__EXTEND_POINT__:inc$1()};function createCoreError($){return createCompileError($,null,void 0)}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=$=>isFunction$2($);function translate$1($,...oe){const{fallbackFormat:ae,postTranslation:ie,unresolving:le,messageCompiler:pe,fallbackLocale:_e,messages:Ce}=$,[$e,xe]=parseTranslateArgs(...oe),Ie=isBoolean$2(xe.missingWarn)?xe.missingWarn:$.missingWarn,Ne=isBoolean$2(xe.fallbackWarn)?xe.fallbackWarn:$.fallbackWarn,Fe=isBoolean$2(xe.escapeParameter)?xe.escapeParameter:$.escapeParameter,ze=!!xe.resolvedMessage,At=isString$5(xe.default)||isBoolean$2(xe.default)?isBoolean$2(xe.default)?pe?$e:()=>$e:xe.default:ae?pe?$e:()=>$e:"",Lt=ae||At!=="",hn=isString$5(xe.locale)?xe.locale:$.locale;Fe&&escapeParams(xe);let[vn,_n,bn]=ze?[$e,hn,Ce[hn]||{}]:resolveMessageFormat($,$e,hn,_e,Ne,Ie),Cn=vn,En=$e;if(!ze&&!(isString$5(Cn)||isMessageFunction(Cn))&&Lt&&(Cn=At,En=Cn),!ze&&(!(isString$5(Cn)||isMessageFunction(Cn))||!isString$5(_n)))return le?NOT_REOSLVED:$e;let $n=!1;const wn=()=>{$n=!0},Tn=isMessageFunction(Cn)?Cn:compileMessageFormat($,$e,_n,Cn,En,wn);if($n)return Cn;const xn=getMessageContextOptions($,_n,bn,xe),kn=createMessageContext(xn),An=evaluateMessage($,Tn,kn);return ie?ie(An,$e):An}function escapeParams($){isArray$9($.list)?$.list=$.list.map(oe=>isString$5(oe)?escapeHtml(oe):oe):isObject$6($.named)&&Object.keys($.named).forEach(oe=>{isString$5($.named[oe])&&($.named[oe]=escapeHtml($.named[oe]))})}function resolveMessageFormat($,oe,ae,ie,le,pe){const{messages:_e,onWarn:Ce,messageResolver:$e,localeFallbacker:xe}=$,Ie=xe($,ie,ae);let Ne={},Fe,ze=null;const At="translate";for(let Lt=0;Ltie;return xe.locale=ae,xe.key=oe,xe}const $e=_e(ie,getCompileOptions($,ae,le,ie,Ce,pe));return $e.locale=ae,$e.key=oe,$e.source=ie,$e}function evaluateMessage($,oe,ae){return oe(ae)}function parseTranslateArgs(...$){const[oe,ae,ie]=$,le={};if(!isString$5(oe)&&!isNumber$4(oe)&&!isMessageFunction(oe))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const pe=isNumber$4(oe)?String(oe):(isMessageFunction(oe),oe);return isNumber$4(ae)?le.plural=ae:isString$5(ae)?le.default=ae:isPlainObject$2(ae)&&!isEmptyObject(ae)?le.named=ae:isArray$9(ae)&&(le.list=ae),isNumber$4(ie)?le.plural=ie:isString$5(ie)?le.default=ie:isPlainObject$2(ie)&&assign$4(le,ie),[pe,le]}function getCompileOptions($,oe,ae,ie,le,pe){return{warnHtmlMessage:le,onError:_e=>{throw pe&&pe(_e),_e},onCacheKey:_e=>generateFormatCacheKey(oe,ae,_e)}}function getMessageContextOptions($,oe,ae,ie){const{modifiers:le,pluralRules:pe,messageResolver:_e,fallbackLocale:Ce,fallbackWarn:$e,missingWarn:xe,fallbackContext:Ie}=$,Fe={locale:oe,modifiers:le,pluralRules:pe,messages:ze=>{let At=_e(ae,ze);if(At==null&&Ie){const[,,Lt]=resolveMessageFormat(Ie,ze,oe,Ce,$e,xe);At=_e(Lt,ze)}if(isString$5(At)){let Lt=!1;const vn=compileMessageFormat($,ze,oe,At,ze,()=>{Lt=!0});return Lt?NOOP_MESSAGE_FUNCTION:vn}else return isMessageFunction(At)?At:NOOP_MESSAGE_FUNCTION}};return $.processor&&(Fe.processor=$.processor),ie.list&&(Fe.list=ie.list),ie.named&&(Fe.named=ie.named),isNumber$4(ie.plural)&&(Fe.pluralIndex=ie.plural),Fe}function datetime($,...oe){const{datetimeFormats:ae,unresolving:ie,fallbackLocale:le,onWarn:pe,localeFallbacker:_e}=$,{__datetimeFormatters:Ce}=$,[$e,xe,Ie,Ne]=parseDateTimeArgs(...oe),Fe=isBoolean$2(Ie.missingWarn)?Ie.missingWarn:$.missingWarn;isBoolean$2(Ie.fallbackWarn)?Ie.fallbackWarn:$.fallbackWarn;const ze=!!Ie.part,At=isString$5(Ie.locale)?Ie.locale:$.locale,Lt=_e($,le,At);if(!isString$5($e)||$e==="")return new Intl.DateTimeFormat(At,Ne).format(xe);let hn={},vn,_n=null;const bn="datetime format";for(let $n=0;$n{DATETIME_FORMAT_OPTIONS_KEYS.includes($e)?_e[$e]=ae[$e]:pe[$e]=ae[$e]}),isString$5(ie)?pe.locale=ie:isPlainObject$2(ie)&&(_e=ie),isPlainObject$2(le)&&(_e=le),[pe.key||"",Ce,pe,_e]}function clearDateTimeFormat($,oe,ae){const ie=$;for(const le in ae){const pe=`${oe}__${le}`;ie.__datetimeFormatters.has(pe)&&ie.__datetimeFormatters.delete(pe)}}function number$2($,...oe){const{numberFormats:ae,unresolving:ie,fallbackLocale:le,onWarn:pe,localeFallbacker:_e}=$,{__numberFormatters:Ce}=$,[$e,xe,Ie,Ne]=parseNumberArgs(...oe),Fe=isBoolean$2(Ie.missingWarn)?Ie.missingWarn:$.missingWarn;isBoolean$2(Ie.fallbackWarn)?Ie.fallbackWarn:$.fallbackWarn;const ze=!!Ie.part,At=isString$5(Ie.locale)?Ie.locale:$.locale,Lt=_e($,le,At);if(!isString$5($e)||$e==="")return new Intl.NumberFormat(At,Ne).format(xe);let hn={},vn,_n=null;const bn="number format";for(let $n=0;$n{NUMBER_FORMAT_OPTIONS_KEYS.includes($e)?_e[$e]=ae[$e]:pe[$e]=ae[$e]}),isString$5(ie)?pe.locale=ie:isPlainObject$2(ie)&&(_e=ie),isPlainObject$2(le)&&(_e=le),[pe.key||"",Ce,pe,_e]}function clearNumberFormat($,oe,ae){const ie=$;for(const le in ae){const pe=`${oe}__${le}`;ie.__numberFormatters.has(pe)&&ie.__numberFormatters.delete(pe)}}/*! + * vue-i18n v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const VERSION$1="9.2.2";let code=CompileErrorCodes.__EXTEND_POINT__;const inc=()=>++code,I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSLALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSLALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError($,...oe){return createCompileError($,null,void 0)}const TransrateVNodeSymbol=makeSymbol("__transrateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules");makeSymbol("__intlifyMeta");const InejctWithOption=makeSymbol("__injectWithOption");function handleFlatJson($){if(!isObject$6($))return $;for(const oe in $)if(hasOwn$3($,oe))if(!oe.includes("."))isObject$6($[oe])&&handleFlatJson($[oe]);else{const ae=oe.split("."),ie=ae.length-1;let le=$;for(let pe=0;pe{if("locale"in Ce&&"resource"in Ce){const{locale:$e,resource:xe}=Ce;$e?(_e[$e]=_e[$e]||{},deepCopy(xe,_e[$e])):deepCopy(xe,_e)}else isString$5(Ce)&&deepCopy(JSON.parse(Ce),_e)}),le==null&&pe)for(const Ce in _e)hasOwn$3(_e,Ce)&&handleFlatJson(_e[Ce]);return _e}const isNotObjectOrIsArray=$=>!isObject$6($)||isArray$9($);function deepCopy($,oe){if(isNotObjectOrIsArray($)||isNotObjectOrIsArray(oe))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const ae in $)hasOwn$3($,ae)&&(isNotObjectOrIsArray($[ae])||isNotObjectOrIsArray(oe[ae])?oe[ae]=$[ae]:deepCopy($[ae],oe[ae]))}function getComponentOptions($){return $.type}function adjustI18nResources($,oe,ae){let ie=isObject$6(oe.messages)?oe.messages:{};"__i18nGlobal"in ae&&(ie=getLocaleMessages($.locale.value,{messages:ie,__i18n:ae.__i18nGlobal}));const le=Object.keys(ie);le.length&&le.forEach(pe=>{$.mergeLocaleMessage(pe,ie[pe])});{if(isObject$6(oe.datetimeFormats)){const pe=Object.keys(oe.datetimeFormats);pe.length&&pe.forEach(_e=>{$.mergeDateTimeFormat(_e,oe.datetimeFormats[_e])})}if(isObject$6(oe.numberFormats)){const pe=Object.keys(oe.numberFormats);pe.length&&pe.forEach(_e=>{$.mergeNumberFormat(_e,oe.numberFormats[_e])})}}}function createTextNode($){return createVNode(Text$1,null,$,0)}let composerID=0;function defineCoreMissingHandler($){return(oe,ae,ie,le)=>$(ae,ie,getCurrentInstance()||void 0,le)}function createComposer($={},oe){const{__root:ae}=$,ie=ae===void 0;let le=isBoolean$2($.inheritLocale)?$.inheritLocale:!0;const pe=ref(ae&&le?ae.locale.value:isString$5($.locale)?$.locale:DEFAULT_LOCALE$1),_e=ref(ae&&le?ae.fallbackLocale.value:isString$5($.fallbackLocale)||isArray$9($.fallbackLocale)||isPlainObject$2($.fallbackLocale)||$.fallbackLocale===!1?$.fallbackLocale:pe.value),Ce=ref(getLocaleMessages(pe.value,$)),$e=ref(isPlainObject$2($.datetimeFormats)?$.datetimeFormats:{[pe.value]:{}}),xe=ref(isPlainObject$2($.numberFormats)?$.numberFormats:{[pe.value]:{}});let Ie=ae?ae.missingWarn:isBoolean$2($.missingWarn)||isRegExp$4($.missingWarn)?$.missingWarn:!0,Ne=ae?ae.fallbackWarn:isBoolean$2($.fallbackWarn)||isRegExp$4($.fallbackWarn)?$.fallbackWarn:!0,Fe=ae?ae.fallbackRoot:isBoolean$2($.fallbackRoot)?$.fallbackRoot:!0,ze=!!$.fallbackFormat,At=isFunction$2($.missing)?$.missing:null,Lt=isFunction$2($.missing)?defineCoreMissingHandler($.missing):null,hn=isFunction$2($.postTranslation)?$.postTranslation:null,vn=ae?ae.warnHtmlMessage:isBoolean$2($.warnHtmlMessage)?$.warnHtmlMessage:!0,_n=!!$.escapeParameter;const bn=ae?ae.modifiers:isPlainObject$2($.modifiers)?$.modifiers:{};let Cn=$.pluralRules||ae&&ae.pluralRules,En;En=(()=>{const lr={version:VERSION$1,locale:pe.value,fallbackLocale:_e.value,messages:Ce.value,modifiers:bn,pluralRules:Cn,missing:Lt===null?void 0:Lt,missingWarn:Ie,fallbackWarn:Ne,fallbackFormat:ze,unresolving:!0,postTranslation:hn===null?void 0:hn,warnHtmlMessage:vn,escapeParameter:_n,messageResolver:$.messageResolver,__meta:{framework:"vue"}};return lr.datetimeFormats=$e.value,lr.numberFormats=xe.value,lr.__datetimeFormatters=isPlainObject$2(En)?En.__datetimeFormatters:void 0,lr.__numberFormatters=isPlainObject$2(En)?En.__numberFormatters:void 0,createCoreContext(lr)})(),updateFallbackLocale(En,pe.value,_e.value);function wn(){return[pe.value,_e.value,Ce.value,$e.value,xe.value]}const Tn=computed({get:()=>pe.value,set:lr=>{pe.value=lr,En.locale=pe.value}}),xn=computed({get:()=>_e.value,set:lr=>{_e.value=lr,En.fallbackLocale=_e.value,updateFallbackLocale(En,pe.value,lr)}}),kn=computed(()=>Ce.value),An=computed(()=>$e.value),On=computed(()=>xe.value);function Nn(){return isFunction$2(hn)?hn:null}function Rn(lr){hn=lr,En.postTranslation=lr}function zn(){return At}function Bn(lr){lr!==null&&(Lt=defineCoreMissingHandler(lr)),At=lr,En.missing=Lt}const Mn=(lr,hr,gr,Or,Lr,Vr)=>{wn();let Rr;if(Rr=lr(En),isNumber$4(Rr)&&Rr===NOT_REOSLVED){const[$r,Tr]=hr();return ae&&Fe?Or(ae):Lr($r)}else{if(Vr(Rr))return Rr;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Fn(...lr){return Mn(hr=>Reflect.apply(translate$1,null,[hr,...lr]),()=>parseTranslateArgs(...lr),"translate",hr=>Reflect.apply(hr.t,hr,[...lr]),hr=>hr,hr=>isString$5(hr))}function Vn(...lr){const[hr,gr,Or]=lr;if(Or&&!isObject$6(Or))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Fn(hr,gr,assign$4({resolvedMessage:!0},Or||{}))}function jn(...lr){return Mn(hr=>Reflect.apply(datetime,null,[hr,...lr]),()=>parseDateTimeArgs(...lr),"datetime format",hr=>Reflect.apply(hr.d,hr,[...lr]),()=>MISSING_RESOLVE_VALUE,hr=>isString$5(hr))}function Zn(...lr){return Mn(hr=>Reflect.apply(number$2,null,[hr,...lr]),()=>parseNumberArgs(...lr),"number format",hr=>Reflect.apply(hr.n,hr,[...lr]),()=>MISSING_RESOLVE_VALUE,hr=>isString$5(hr))}function Gn(lr){return lr.map(hr=>isString$5(hr)||isNumber$4(hr)||isBoolean$2(hr)?createTextNode(String(hr)):hr)}const cr={normalize:Gn,interpolate:lr=>lr,type:"vnode"};function nr(...lr){return Mn(hr=>{let gr;const Or=hr;try{Or.processor=cr,gr=Reflect.apply(translate$1,null,[Or,...lr])}finally{Or.processor=null}return gr},()=>parseTranslateArgs(...lr),"translate",hr=>hr[TransrateVNodeSymbol](...lr),hr=>[createTextNode(hr)],hr=>isArray$9(hr))}function er(...lr){return Mn(hr=>Reflect.apply(number$2,null,[hr,...lr]),()=>parseNumberArgs(...lr),"number format",hr=>hr[NumberPartsSymbol](...lr),()=>[],hr=>isString$5(hr)||isArray$9(hr))}function rr(...lr){return Mn(hr=>Reflect.apply(datetime,null,[hr,...lr]),()=>parseDateTimeArgs(...lr),"datetime format",hr=>hr[DatetimePartsSymbol](...lr),()=>[],hr=>isString$5(hr)||isArray$9(hr))}function qn(lr){Cn=lr,En.pluralRules=Cn}function Yn(lr,hr){const gr=isString$5(hr)?hr:pe.value,Or=Un(gr);return En.messageResolver(Or,lr)!==null}function ar(lr){let hr=null;const gr=fallbackWithLocaleChain(En,_e.value,pe.value);for(let Or=0;Or{le&&(pe.value=lr,En.locale=lr,updateFallbackLocale(En,pe.value,_e.value))}),watch(ae.fallbackLocale,lr=>{le&&(_e.value=lr,En.fallbackLocale=lr,updateFallbackLocale(En,pe.value,_e.value))}));const mr={id:composerID,locale:Tn,fallbackLocale:xn,get inheritLocale(){return le},set inheritLocale(lr){le=lr,lr&&ae&&(pe.value=ae.locale.value,_e.value=ae.fallbackLocale.value,updateFallbackLocale(En,pe.value,_e.value))},get availableLocales(){return Object.keys(Ce.value).sort()},messages:kn,get modifiers(){return bn},get pluralRules(){return Cn||{}},get isGlobal(){return ie},get missingWarn(){return Ie},set missingWarn(lr){Ie=lr,En.missingWarn=Ie},get fallbackWarn(){return Ne},set fallbackWarn(lr){Ne=lr,En.fallbackWarn=Ne},get fallbackRoot(){return Fe},set fallbackRoot(lr){Fe=lr},get fallbackFormat(){return ze},set fallbackFormat(lr){ze=lr,En.fallbackFormat=ze},get warnHtmlMessage(){return vn},set warnHtmlMessage(lr){vn=lr,En.warnHtmlMessage=lr},get escapeParameter(){return _n},set escapeParameter(lr){_n=lr,En.escapeParameter=lr},t:Fn,getLocaleMessage:Un,setLocaleMessage:tr,mergeLocaleMessage:ur,getPostTranslationHandler:Nn,setPostTranslationHandler:Rn,getMissingHandler:zn,setMissingHandler:Bn,[SetPluralRulesSymbol]:qn};return mr.datetimeFormats=An,mr.numberFormats=On,mr.rt=Vn,mr.te=Yn,mr.tm=pr,mr.d=jn,mr.n=Zn,mr.getDateTimeFormat=_r,mr.setDateTimeFormat=Er,mr.mergeDateTimeFormat=sr,mr.getNumberFormat=Pr,mr.setNumberFormat=Sr,mr.mergeNumberFormat=kr,mr[InejctWithOption]=$.__injectWithOption,mr[TransrateVNodeSymbol]=nr,mr[DatetimePartsSymbol]=rr,mr[NumberPartsSymbol]=er,mr}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:$=>$==="parent"||$==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:$},oe){return oe.length===1&&oe[0]==="default"?($.default?$.default():[]).reduce((ie,le)=>ie=[...ie,...isArray$9(le.children)?le.children:[le]],[]):oe.reduce((ae,ie)=>{const le=$[ie];return le&&(ae[ie]=le()),ae},{})}function getFragmentableTag($){return Fragment}const Translation={name:"i18n-t",props:assign$4({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:$=>isNumber$4($)||!isNaN($)}},baseFormatProps),setup($,oe){const{slots:ae,attrs:ie}=oe,le=$.i18n||useI18n$1({useScope:$.scope,__useComponent:!0});return()=>{const pe=Object.keys(ae).filter(Ne=>Ne!=="_"),_e={};$.locale&&(_e.locale=$.locale),$.plural!==void 0&&(_e.plural=isString$5($.plural)?+$.plural:$.plural);const Ce=getInterpolateArg(oe,pe),$e=le[TransrateVNodeSymbol]($.keypath,Ce,_e),xe=assign$4({},ie),Ie=isString$5($.tag)||isObject$6($.tag)?$.tag:getFragmentableTag();return h$3(Ie,xe,$e)}}};function isVNode($){return isArray$9($)&&!isString$5($[0])}function renderFormatter($,oe,ae,ie){const{slots:le,attrs:pe}=oe;return()=>{const _e={part:!0};let Ce={};$.locale&&(_e.locale=$.locale),isString$5($.format)?_e.key=$.format:isObject$6($.format)&&(isString$5($.format.key)&&(_e.key=$.format.key),Ce=Object.keys($.format).reduce((Fe,ze)=>ae.includes(ze)?assign$4({},Fe,{[ze]:$.format[ze]}):Fe,{}));const $e=ie($.value,_e,Ce);let xe=[_e.key];isArray$9($e)?xe=$e.map((Fe,ze)=>{const At=le[Fe.type],Lt=At?At({[Fe.type]:Fe.value,index:ze,parts:$e}):[Fe.value];return isVNode(Lt)&&(Lt[0].key=`${Fe.type}-${ze}`),Lt}):isString$5($e)&&(xe=[$e]);const Ie=assign$4({},pe),Ne=isString$5($.tag)||isObject$6($.tag)?$.tag:getFragmentableTag();return h$3(Ne,Ie,xe)}}const NumberFormat={name:"i18n-n",props:assign$4({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup($,oe){const ae=$.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter($,oe,NUMBER_FORMAT_OPTIONS_KEYS,(...ie)=>ae[NumberPartsSymbol](...ie))}},DatetimeFormat={name:"i18n-d",props:assign$4({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup($,oe){const ae=$.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter($,oe,DATETIME_FORMAT_OPTIONS_KEYS,(...ie)=>ae[DatetimePartsSymbol](...ie))}};function getComposer$2($,oe){const ae=$;if($.mode==="composition")return ae.__getInstance(oe)||$.global;{const ie=ae.__getInstance(oe);return ie!=null?ie.__composer:$.global.__composer}}function vTDirective($){const oe=_e=>{const{instance:Ce,modifiers:$e,value:xe}=_e;if(!Ce||!Ce.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const Ie=getComposer$2($,Ce.$),Ne=parseValue(xe);return[Reflect.apply(Ie.t,Ie,[...makeParams(Ne)]),Ie]};return{created:(_e,Ce)=>{const[$e,xe]=oe(Ce);inBrowser&&$.global===xe&&(_e.__i18nWatcher=watch(xe.locale,()=>{Ce.instance&&Ce.instance.$forceUpdate()})),_e.__composer=xe,_e.textContent=$e},unmounted:_e=>{inBrowser&&_e.__i18nWatcher&&(_e.__i18nWatcher(),_e.__i18nWatcher=void 0,delete _e.__i18nWatcher),_e.__composer&&(_e.__composer=void 0,delete _e.__composer)},beforeUpdate:(_e,{value:Ce})=>{if(_e.__composer){const $e=_e.__composer,xe=parseValue(Ce);_e.textContent=Reflect.apply($e.t,$e,[...makeParams(xe)])}},getSSRProps:_e=>{const[Ce]=oe(_e);return{textContent:Ce}}}}function parseValue($){if(isString$5($))return{path:$};if(isPlainObject$2($)){if(!("path"in $))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return $}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams($){const{path:oe,locale:ae,args:ie,choice:le,plural:pe}=$,_e={},Ce=ie||{};return isString$5(ae)&&(_e.locale=ae),isNumber$4(le)&&(_e.plural=le),isNumber$4(pe)&&(_e.plural=pe),[oe,Ce,_e]}function apply($,oe,...ae){const ie=isPlainObject$2(ae[0])?ae[0]:{},le=!!ie.useI18nComponentName;(isBoolean$2(ie.globalInstall)?ie.globalInstall:!0)&&($.component(le?"i18n":Translation.name,Translation),$.component(NumberFormat.name,NumberFormat),$.component(DatetimeFormat.name,DatetimeFormat)),$.directive("t",vTDirective(oe))}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n($={},oe){const ae=isBoolean$2($.globalInjection)?$.globalInjection:!0,ie=!0,le=new Map,[pe,_e]=createGlobal($),Ce=makeSymbol("");function $e(Ne){return le.get(Ne)||null}function xe(Ne,Fe){le.set(Ne,Fe)}function Ie(Ne){le.delete(Ne)}{const Ne={get mode(){return"composition"},get allowComposition(){return ie},async install(Fe,...ze){Fe.__VUE_I18N_SYMBOL__=Ce,Fe.provide(Fe.__VUE_I18N_SYMBOL__,Ne),ae&&injectGlobalFields(Fe,Ne.global),apply(Fe,Ne,...ze);const At=Fe.unmount;Fe.unmount=()=>{Ne.dispose(),At()}},get global(){return _e},dispose(){pe.stop()},__instances:le,__getInstance:$e,__setInstance:xe,__deleteInstance:Ie};return Ne}}function useI18n$1($={}){const oe=getCurrentInstance();if(oe==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!oe.isCE&&oe.appContext.app!=null&&!oe.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSLALLED);const ae=getI18nInstance(oe),ie=getGlobalComposer(ae),le=getComponentOptions(oe),pe=getScope($,le);if(pe==="global")return adjustI18nResources(ie,$,le),ie;if(pe==="parent"){let $e=getComposer(ae,oe,$.__useComponent);return $e==null&&($e=ie),$e}const _e=ae;let Ce=_e.__getInstance(oe);if(Ce==null){const $e=assign$4({},$);"__i18n"in le&&($e.__i18n=le.__i18n),ie&&($e.__root=ie),Ce=createComposer($e),setupLifeCycle(_e,oe),_e.__setInstance(oe,Ce)}return Ce}function createGlobal($,oe,ae){const ie=effectScope();{const le=ie.run(()=>createComposer($));if(le==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[ie,le]}}function getI18nInstance($){{const oe=inject($.isCE?I18nInjectionKey:$.appContext.app.__VUE_I18N_SYMBOL__);if(!oe)throw createI18nError($.isCE?I18nErrorCodes.NOT_INSLALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return oe}}function getScope($,oe){return isEmptyObject($)?"__i18n"in oe?"local":"global":$.useScope?$.useScope:"local"}function getGlobalComposer($){return $.mode==="composition"?$.global:$.global.__composer}function getComposer($,oe,ae=!1){let ie=null;const le=oe.root;let pe=oe.parent;for(;pe!=null;){const _e=$;if($.mode==="composition"&&(ie=_e.__getInstance(pe)),ie!=null||le===pe)break;pe=pe.parent}return ie}function setupLifeCycle($,oe,ae){onMounted(()=>{},oe),onUnmounted(()=>{$.__deleteInstance(oe)},oe)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm"];function injectGlobalFields($,oe){const ae=Object.create(null);globalExportProps.forEach(ie=>{const le=Object.getOwnPropertyDescriptor(oe,ie);if(!le)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const pe=isRef(le.value)?{get(){return le.value.value},set(_e){le.value.value=_e}}:{get(){return le.get&&le.get()}};Object.defineProperty(ae,ie,pe)}),$.config.globalProperties.$i18n=ae,globalExportMethods.forEach(ie=>{const le=Object.getOwnPropertyDescriptor(oe,ie);if(!le||!le.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty($.config.globalProperties,`$${ie}`,le)})}registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);function bind$4($,oe){return function(){return $.apply(oe,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=($=>oe=>{const ae=toString$1.call(oe);return $[ae]||($[ae]=ae.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=$=>($=$.toLowerCase(),oe=>kindOf(oe)===$),typeOfTest=$=>oe=>typeof oe===$,{isArray:isArray$8}=Array,isUndefined=typeOfTest("undefined");function isBuffer$1($){return $!==null&&!isUndefined($)&&$.constructor!==null&&!isUndefined($.constructor)&&isFunction$1($.constructor.isBuffer)&&$.constructor.isBuffer($)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView($){let oe;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?oe=ArrayBuffer.isView($):oe=$&&$.buffer&&isArrayBuffer($.buffer),oe}const isString$4=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$3=typeOfTest("number"),isObject$5=$=>$!==null&&typeof $=="object",isBoolean$1=$=>$===!0||$===!1,isPlainObject$1=$=>{if(kindOf($)!=="object")return!1;const oe=getPrototypeOf($);return(oe===null||oe===Object.prototype||Object.getPrototypeOf(oe)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=$=>isObject$5($)&&isFunction$1($.pipe),isFormData=$=>{let oe;return $&&(typeof FormData=="function"&&$ instanceof FormData||isFunction$1($.append)&&((oe=kindOf($))==="formdata"||oe==="object"&&isFunction$1($.toString)&&$.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim$2=$=>$.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$2($,oe,{allOwnKeys:ae=!1}={}){if($===null||typeof $>"u")return;let ie,le;if(typeof $!="object"&&($=[$]),isArray$8($))for(ie=0,le=$.length;ie0;)if(le=ae[ie],oe===le.toLowerCase())return le;return null}const _global$1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=$=>!isUndefined($)&&$!==_global$1;function merge$2(){const{caseless:$}=isContextDefined(this)&&this||{},oe={},ae=(ie,le)=>{const pe=$&&findKey(oe,le)||le;isPlainObject$1(oe[pe])&&isPlainObject$1(ie)?oe[pe]=merge$2(oe[pe],ie):isPlainObject$1(ie)?oe[pe]=merge$2({},ie):isArray$8(ie)?oe[pe]=ie.slice():oe[pe]=ie};for(let ie=0,le=arguments.length;ie(forEach$2(oe,(le,pe)=>{ae&&isFunction$1(le)?$[pe]=bind$4(le,ae):$[pe]=le},{allOwnKeys:ie}),$),stripBOM=$=>($.charCodeAt(0)===65279&&($=$.slice(1)),$),inherits$1=($,oe,ae,ie)=>{$.prototype=Object.create(oe.prototype,ie),$.prototype.constructor=$,Object.defineProperty($,"super",{value:oe.prototype}),ae&&Object.assign($.prototype,ae)},toFlatObject=($,oe,ae,ie)=>{let le,pe,_e;const Ce={};if(oe=oe||{},$==null)return oe;do{for(le=Object.getOwnPropertyNames($),pe=le.length;pe-- >0;)_e=le[pe],(!ie||ie(_e,$,oe))&&!Ce[_e]&&(oe[_e]=$[_e],Ce[_e]=!0);$=ae!==!1&&getPrototypeOf($)}while($&&(!ae||ae($,oe))&&$!==Object.prototype);return oe},endsWith=($,oe,ae)=>{$=String($),(ae===void 0||ae>$.length)&&(ae=$.length),ae-=oe.length;const ie=$.indexOf(oe,ae);return ie!==-1&&ie===ae},toArray$1=$=>{if(!$)return null;if(isArray$8($))return $;let oe=$.length;if(!isNumber$3(oe))return null;const ae=new Array(oe);for(;oe-- >0;)ae[oe]=$[oe];return ae},isTypedArray$1=($=>oe=>$&&oe instanceof $)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=($,oe)=>{const ie=($&&$[Symbol.iterator]).call($);let le;for(;(le=ie.next())&&!le.done;){const pe=le.value;oe.call($,pe[0],pe[1])}},matchAll=($,oe)=>{let ae;const ie=[];for(;(ae=$.exec(oe))!==null;)ie.push(ae);return ie},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase$1=$=>$.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(ae,ie,le){return ie.toUpperCase()+le}),hasOwnProperty=(({hasOwnProperty:$})=>(oe,ae)=>$.call(oe,ae))(Object.prototype),isRegExp$3=kindOfTest("RegExp"),reduceDescriptors=($,oe)=>{const ae=Object.getOwnPropertyDescriptors($),ie={};forEach$2(ae,(le,pe)=>{oe(le,pe,$)!==!1&&(ie[pe]=le)}),Object.defineProperties($,ie)},freezeMethods=$=>{reduceDescriptors($,(oe,ae)=>{if(isFunction$1($)&&["arguments","caller","callee"].indexOf(ae)!==-1)return!1;const ie=$[ae];if(isFunction$1(ie)){if(oe.enumerable=!1,"writable"in oe){oe.writable=!1;return}oe.set||(oe.set=()=>{throw Error("Can not rewrite read-only method '"+ae+"'")})}})},toObjectSet=($,oe)=>{const ae={},ie=le=>{le.forEach(pe=>{ae[pe]=!0})};return isArray$8($)?ie($):ie(String($).split(oe)),ae},noop$4=()=>{},toFiniteNumber=($,oe)=>($=+$,Number.isFinite($)?$:oe),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=($=16,oe=ALPHABET.ALPHA_DIGIT)=>{let ae="";const{length:ie}=oe;for(;$--;)ae+=oe[Math.random()*ie|0];return ae};function isSpecCompliantForm($){return!!($&&isFunction$1($.append)&&$[Symbol.toStringTag]==="FormData"&&$[Symbol.iterator])}const toJSONObject=$=>{const oe=new Array(10),ae=(ie,le)=>{if(isObject$5(ie)){if(oe.indexOf(ie)>=0)return;if(!("toJSON"in ie)){oe[le]=ie;const pe=isArray$8(ie)?[]:{};return forEach$2(ie,(_e,Ce)=>{const $e=ae(_e,le+1);!isUndefined($e)&&(pe[Ce]=$e)}),oe[le]=void 0,pe}}return ie};return ae($,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=$=>$&&(isObject$5($)||isFunction$1($))&&isFunction$1($.then)&&isFunction$1($.catch),utils$8={isArray:isArray$8,isArrayBuffer,isBuffer:isBuffer$1,isFormData,isArrayBufferView,isString:isString$4,isNumber:isNumber$3,isBoolean:isBoolean$1,isObject:isObject$5,isPlainObject:isPlainObject$1,isUndefined,isDate:isDate$1,isFile,isBlob,isRegExp:isRegExp$3,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray:isTypedArray$1,isFileList,forEach:forEach$2,merge:merge$2,extend:extend$1,trim:trim$2,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase:toCamelCase$1,noop:noop$4,toFiniteNumber,findKey,global:_global$1,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError($,oe,ae,ie,le){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=$,this.name="AxiosError",oe&&(this.code=oe),ae&&(this.config=ae),ie&&(this.request=ie),le&&(this.response=le)}utils$8.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$8.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach($=>{descriptors[$]={value:$}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=($,oe,ae,ie,le,pe)=>{const _e=Object.create(prototype$1);return utils$8.toFlatObject($,_e,function($e){return $e!==Error.prototype},Ce=>Ce!=="isAxiosError"),AxiosError.call(_e,$.message,oe,ae,ie,le),_e.cause=$,_e.name=$.name,pe&&Object.assign(_e,pe),_e};const httpAdapter=null;function isVisitable($){return utils$8.isPlainObject($)||utils$8.isArray($)}function removeBrackets($){return utils$8.endsWith($,"[]")?$.slice(0,-2):$}function renderKey($,oe,ae){return $?$.concat(oe).map(function(le,pe){return le=removeBrackets(le),!ae&&pe?"["+le+"]":le}).join(ae?".":""):oe}function isFlatArray($){return utils$8.isArray($)&&!$.some(isVisitable)}const predicates=utils$8.toFlatObject(utils$8,{},null,function(oe){return/^is[A-Z]/.test(oe)});function toFormData($,oe,ae){if(!utils$8.isObject($))throw new TypeError("target must be an object");oe=oe||new FormData,ae=utils$8.toFlatObject(ae,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Lt,hn){return!utils$8.isUndefined(hn[Lt])});const ie=ae.metaTokens,le=ae.visitor||Ie,pe=ae.dots,_e=ae.indexes,$e=(ae.Blob||typeof Blob<"u"&&Blob)&&utils$8.isSpecCompliantForm(oe);if(!utils$8.isFunction(le))throw new TypeError("visitor must be a function");function xe(At){if(At===null)return"";if(utils$8.isDate(At))return At.toISOString();if(!$e&&utils$8.isBlob(At))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$8.isArrayBuffer(At)||utils$8.isTypedArray(At)?$e&&typeof Blob=="function"?new Blob([At]):Buffer.from(At):At}function Ie(At,Lt,hn){let vn=At;if(At&&!hn&&typeof At=="object"){if(utils$8.endsWith(Lt,"{}"))Lt=ie?Lt:Lt.slice(0,-2),At=JSON.stringify(At);else if(utils$8.isArray(At)&&isFlatArray(At)||(utils$8.isFileList(At)||utils$8.endsWith(Lt,"[]"))&&(vn=utils$8.toArray(At)))return Lt=removeBrackets(Lt),vn.forEach(function(bn,Cn){!(utils$8.isUndefined(bn)||bn===null)&&oe.append(_e===!0?renderKey([Lt],Cn,pe):_e===null?Lt:Lt+"[]",xe(bn))}),!1}return isVisitable(At)?!0:(oe.append(renderKey(hn,Lt,pe),xe(At)),!1)}const Ne=[],Fe=Object.assign(predicates,{defaultVisitor:Ie,convertValue:xe,isVisitable});function ze(At,Lt){if(!utils$8.isUndefined(At)){if(Ne.indexOf(At)!==-1)throw Error("Circular reference detected in "+Lt.join("."));Ne.push(At),utils$8.forEach(At,function(vn,_n){(!(utils$8.isUndefined(vn)||vn===null)&&le.call(oe,vn,utils$8.isString(_n)?_n.trim():_n,Lt,Fe))===!0&&ze(vn,Lt?Lt.concat(_n):[_n])}),Ne.pop()}}if(!utils$8.isObject($))throw new TypeError("data must be an object");return ze($),oe}function encode$2($){const oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent($).replace(/[!'()~]|%20|%00/g,function(ie){return oe[ie]})}function AxiosURLSearchParams($,oe){this._pairs=[],$&&toFormData($,this,oe)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(oe,ae){this._pairs.push([oe,ae])};prototype.toString=function(oe){const ae=oe?function(ie){return oe.call(this,ie,encode$2)}:encode$2;return this._pairs.map(function(le){return ae(le[0])+"="+ae(le[1])},"").join("&")};function encode$1($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL($,oe,ae){if(!oe)return $;const ie=ae&&ae.encode||encode$1,le=ae&&ae.serialize;let pe;if(le?pe=le(oe,ae):pe=utils$8.isURLSearchParams(oe)?oe.toString():new AxiosURLSearchParams(oe,ae).toString(ie),pe){const _e=$.indexOf("#");_e!==-1&&($=$.slice(0,_e)),$+=($.indexOf("?")===-1?"?":"&")+pe}return $}class InterceptorManager{constructor(){this.handlers=[]}use(oe,ae,ie){return this.handlers.push({fulfilled:oe,rejected:ae,synchronous:ie?ie.synchronous:!1,runWhen:ie?ie.runWhen:null}),this.handlers.length-1}eject(oe){this.handlers[oe]&&(this.handlers[oe]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(oe){utils$8.forEach(this.handlers,function(ie){ie!==null&&oe(ie)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,isStandardBrowserEnv=(()=>{let $;return typeof navigator<"u"&&(($=navigator.product)==="ReactNative"||$==="NativeScript"||$==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),isStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},isStandardBrowserEnv,isStandardBrowserWebWorkerEnv,protocols:["http","https","file","blob","url","data"]};function toURLEncodedForm($,oe){return toFormData($,new platform$1.classes.URLSearchParams,Object.assign({visitor:function(ae,ie,le,pe){return platform$1.isNode&&utils$8.isBuffer(ae)?(this.append(ie,ae.toString("base64")),!1):pe.defaultVisitor.apply(this,arguments)}},oe))}function parsePropPath($){return utils$8.matchAll(/\w+|\[(\w*)]/g,$).map(oe=>oe[0]==="[]"?"":oe[1]||oe[0])}function arrayToObject$1($){const oe={},ae=Object.keys($);let ie;const le=ae.length;let pe;for(ie=0;ie=ae.length;return _e=!_e&&utils$8.isArray(le)?le.length:_e,$e?(utils$8.hasOwnProp(le,_e)?le[_e]=[le[_e],ie]:le[_e]=ie,!Ce):((!le[_e]||!utils$8.isObject(le[_e]))&&(le[_e]=[]),oe(ae,ie,le[_e],pe)&&utils$8.isArray(le[_e])&&(le[_e]=arrayToObject$1(le[_e])),!Ce)}if(utils$8.isFormData($)&&utils$8.isFunction($.entries)){const ae={};return utils$8.forEachEntry($,(ie,le)=>{oe(parsePropPath(ie),le,ae,0)}),ae}return null}const DEFAULT_CONTENT_TYPE={"Content-Type":void 0};function stringifySafely($,oe,ae){if(utils$8.isString($))try{return(oe||JSON.parse)($),utils$8.trim($)}catch(ie){if(ie.name!=="SyntaxError")throw ie}return(ae||JSON.stringify)($)}const defaults$3={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(oe,ae){const ie=ae.getContentType()||"",le=ie.indexOf("application/json")>-1,pe=utils$8.isObject(oe);if(pe&&utils$8.isHTMLForm(oe)&&(oe=new FormData(oe)),utils$8.isFormData(oe))return le&&le?JSON.stringify(formDataToJSON(oe)):oe;if(utils$8.isArrayBuffer(oe)||utils$8.isBuffer(oe)||utils$8.isStream(oe)||utils$8.isFile(oe)||utils$8.isBlob(oe))return oe;if(utils$8.isArrayBufferView(oe))return oe.buffer;if(utils$8.isURLSearchParams(oe))return ae.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),oe.toString();let Ce;if(pe){if(ie.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(oe,this.formSerializer).toString();if((Ce=utils$8.isFileList(oe))||ie.indexOf("multipart/form-data")>-1){const $e=this.env&&this.env.FormData;return toFormData(Ce?{"files[]":oe}:oe,$e&&new $e,this.formSerializer)}}return pe||le?(ae.setContentType("application/json",!1),stringifySafely(oe)):oe}],transformResponse:[function(oe){const ae=this.transitional||defaults$3.transitional,ie=ae&&ae.forcedJSONParsing,le=this.responseType==="json";if(oe&&utils$8.isString(oe)&&(ie&&!this.responseType||le)){const _e=!(ae&&ae.silentJSONParsing)&≤try{return JSON.parse(oe)}catch(Ce){if(_e)throw Ce.name==="SyntaxError"?AxiosError.from(Ce,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):Ce}}return oe}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform$1.classes.FormData,Blob:platform$1.classes.Blob},validateStatus:function(oe){return oe>=200&&oe<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$8.forEach(["delete","get","head"],function(oe){defaults$3.headers[oe]={}});utils$8.forEach(["post","put","patch"],function(oe){defaults$3.headers[oe]=utils$8.merge(DEFAULT_CONTENT_TYPE)});const defaults$4=defaults$3,ignoreDuplicateOf=utils$8.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=$=>{const oe={};let ae,ie,le;return $&&$.split(` +`).forEach(function(_e){le=_e.indexOf(":"),ae=_e.substring(0,le).trim().toLowerCase(),ie=_e.substring(le+1).trim(),!(!ae||oe[ae]&&ignoreDuplicateOf[ae])&&(ae==="set-cookie"?oe[ae]?oe[ae].push(ie):oe[ae]=[ie]:oe[ae]=oe[ae]?oe[ae]+", "+ie:ie)}),oe},$internals=Symbol("internals");function normalizeHeader($){return $&&String($).trim().toLowerCase()}function normalizeValue($){return $===!1||$==null?$:utils$8.isArray($)?$.map(normalizeValue):String($)}function parseTokens($){const oe=Object.create(null),ae=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let ie;for(;ie=ae.exec($);)oe[ie[1]]=ie[2];return oe}const isValidHeaderName=$=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim());function matchHeaderValue($,oe,ae,ie,le){if(utils$8.isFunction(ie))return ie.call(this,oe,ae);if(le&&(oe=ae),!!utils$8.isString(oe)){if(utils$8.isString(ie))return oe.indexOf(ie)!==-1;if(utils$8.isRegExp(ie))return ie.test(oe)}}function formatHeader($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(oe,ae,ie)=>ae.toUpperCase()+ie)}function buildAccessors($,oe){const ae=utils$8.toCamelCase(" "+oe);["get","set","has"].forEach(ie=>{Object.defineProperty($,ie+ae,{value:function(le,pe,_e){return this[ie].call(this,oe,le,pe,_e)},configurable:!0})})}class AxiosHeaders{constructor(oe){oe&&this.set(oe)}set(oe,ae,ie){const le=this;function pe(Ce,$e,xe){const Ie=normalizeHeader($e);if(!Ie)throw new Error("header name must be a non-empty string");const Ne=utils$8.findKey(le,Ie);(!Ne||le[Ne]===void 0||xe===!0||xe===void 0&&le[Ne]!==!1)&&(le[Ne||$e]=normalizeValue(Ce))}const _e=(Ce,$e)=>utils$8.forEach(Ce,(xe,Ie)=>pe(xe,Ie,$e));return utils$8.isPlainObject(oe)||oe instanceof this.constructor?_e(oe,ae):utils$8.isString(oe)&&(oe=oe.trim())&&!isValidHeaderName(oe)?_e(parseHeaders(oe),ae):oe!=null&&pe(ae,oe,ie),this}get(oe,ae){if(oe=normalizeHeader(oe),oe){const ie=utils$8.findKey(this,oe);if(ie){const le=this[ie];if(!ae)return le;if(ae===!0)return parseTokens(le);if(utils$8.isFunction(ae))return ae.call(this,le,ie);if(utils$8.isRegExp(ae))return ae.exec(le);throw new TypeError("parser must be boolean|regexp|function")}}}has(oe,ae){if(oe=normalizeHeader(oe),oe){const ie=utils$8.findKey(this,oe);return!!(ie&&this[ie]!==void 0&&(!ae||matchHeaderValue(this,this[ie],ie,ae)))}return!1}delete(oe,ae){const ie=this;let le=!1;function pe(_e){if(_e=normalizeHeader(_e),_e){const Ce=utils$8.findKey(ie,_e);Ce&&(!ae||matchHeaderValue(ie,ie[Ce],Ce,ae))&&(delete ie[Ce],le=!0)}}return utils$8.isArray(oe)?oe.forEach(pe):pe(oe),le}clear(oe){const ae=Object.keys(this);let ie=ae.length,le=!1;for(;ie--;){const pe=ae[ie];(!oe||matchHeaderValue(this,this[pe],pe,oe,!0))&&(delete this[pe],le=!0)}return le}normalize(oe){const ae=this,ie={};return utils$8.forEach(this,(le,pe)=>{const _e=utils$8.findKey(ie,pe);if(_e){ae[_e]=normalizeValue(le),delete ae[pe];return}const Ce=oe?formatHeader(pe):String(pe).trim();Ce!==pe&&delete ae[pe],ae[Ce]=normalizeValue(le),ie[Ce]=!0}),this}concat(...oe){return this.constructor.concat(this,...oe)}toJSON(oe){const ae=Object.create(null);return utils$8.forEach(this,(ie,le)=>{ie!=null&&ie!==!1&&(ae[le]=oe&&utils$8.isArray(ie)?ie.join(", "):ie)}),ae}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([oe,ae])=>oe+": "+ae).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(oe){return oe instanceof this?oe:new this(oe)}static concat(oe,...ae){const ie=new this(oe);return ae.forEach(le=>ie.set(le)),ie}static accessor(oe){const ie=(this[$internals]=this[$internals]={accessors:{}}).accessors,le=this.prototype;function pe(_e){const Ce=normalizeHeader(_e);ie[Ce]||(buildAccessors(le,_e),ie[Ce]=!0)}return utils$8.isArray(oe)?oe.forEach(pe):pe(oe),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$8.freezeMethods(AxiosHeaders.prototype);utils$8.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData($,oe){const ae=this||defaults$4,ie=oe||ae,le=AxiosHeaders$1.from(ie.headers);let pe=ie.data;return utils$8.forEach($,function(Ce){pe=Ce.call(ae,pe,le.normalize(),oe?oe.status:void 0)}),le.normalize(),pe}function isCancel($){return!!($&&$.__CANCEL__)}function CanceledError($,oe,ae){AxiosError.call(this,$??"canceled",AxiosError.ERR_CANCELED,oe,ae),this.name="CanceledError"}utils$8.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle($,oe,ae){const ie=ae.config.validateStatus;!ae.status||!ie||ie(ae.status)?$(ae):oe(new AxiosError("Request failed with status code "+ae.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(ae.status/100)-4],ae.config,ae.request,ae))}const cookies=platform$1.isStandardBrowserEnv?function(){return{write:function(ae,ie,le,pe,_e,Ce){const $e=[];$e.push(ae+"="+encodeURIComponent(ie)),utils$8.isNumber(le)&&$e.push("expires="+new Date(le).toGMTString()),utils$8.isString(pe)&&$e.push("path="+pe),utils$8.isString(_e)&&$e.push("domain="+_e),Ce===!0&&$e.push("secure"),document.cookie=$e.join("; ")},read:function(ae){const ie=document.cookie.match(new RegExp("(^|;\\s*)("+ae+")=([^;]*)"));return ie?decodeURIComponent(ie[3]):null},remove:function(ae){this.write(ae,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL($){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test($)}function combineURLs($,oe){return oe?$.replace(/\/+$/,"")+"/"+oe.replace(/^\/+/,""):$}function buildFullPath($,oe){return $&&!isAbsoluteURL(oe)?combineURLs($,oe):oe}const isURLSameOrigin=platform$1.isStandardBrowserEnv?function(){const oe=/(msie|trident)/i.test(navigator.userAgent),ae=document.createElement("a");let ie;function le(pe){let _e=pe;return oe&&(ae.setAttribute("href",_e),_e=ae.href),ae.setAttribute("href",_e),{href:ae.href,protocol:ae.protocol?ae.protocol.replace(/:$/,""):"",host:ae.host,search:ae.search?ae.search.replace(/^\?/,""):"",hash:ae.hash?ae.hash.replace(/^#/,""):"",hostname:ae.hostname,port:ae.port,pathname:ae.pathname.charAt(0)==="/"?ae.pathname:"/"+ae.pathname}}return ie=le(window.location.href),function(_e){const Ce=utils$8.isString(_e)?le(_e):_e;return Ce.protocol===ie.protocol&&Ce.host===ie.host}}():function(){return function(){return!0}}();function parseProtocol($){const oe=/^([-+\w]{1,25})(:?\/\/|:)/.exec($);return oe&&oe[1]||""}function speedometer($,oe){$=$||10;const ae=new Array($),ie=new Array($);let le=0,pe=0,_e;return oe=oe!==void 0?oe:1e3,function($e){const xe=Date.now(),Ie=ie[pe];_e||(_e=xe),ae[le]=$e,ie[le]=xe;let Ne=pe,Fe=0;for(;Ne!==le;)Fe+=ae[Ne++],Ne=Ne%$;if(le=(le+1)%$,le===pe&&(pe=(pe+1)%$),xe-_e{const pe=le.loaded,_e=le.lengthComputable?le.total:void 0,Ce=pe-ae,$e=ie(Ce),xe=pe<=_e;ae=pe;const Ie={loaded:pe,total:_e,progress:_e?pe/_e:void 0,bytes:Ce,rate:$e||void 0,estimated:$e&&_e&&xe?(_e-pe)/$e:void 0,event:le};Ie[oe?"download":"upload"]=!0,$(Ie)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function($){return new Promise(function(ae,ie){let le=$.data;const pe=AxiosHeaders$1.from($.headers).normalize(),_e=$.responseType;let Ce;function $e(){$.cancelToken&&$.cancelToken.unsubscribe(Ce),$.signal&&$.signal.removeEventListener("abort",Ce)}utils$8.isFormData(le)&&(platform$1.isStandardBrowserEnv||platform$1.isStandardBrowserWebWorkerEnv?pe.setContentType(!1):pe.setContentType("multipart/form-data;",!1));let xe=new XMLHttpRequest;if($.auth){const ze=$.auth.username||"",At=$.auth.password?unescape(encodeURIComponent($.auth.password)):"";pe.set("Authorization","Basic "+btoa(ze+":"+At))}const Ie=buildFullPath($.baseURL,$.url);xe.open($.method.toUpperCase(),buildURL(Ie,$.params,$.paramsSerializer),!0),xe.timeout=$.timeout;function Ne(){if(!xe)return;const ze=AxiosHeaders$1.from("getAllResponseHeaders"in xe&&xe.getAllResponseHeaders()),Lt={data:!_e||_e==="text"||_e==="json"?xe.responseText:xe.response,status:xe.status,statusText:xe.statusText,headers:ze,config:$,request:xe};settle(function(vn){ae(vn),$e()},function(vn){ie(vn),$e()},Lt),xe=null}if("onloadend"in xe?xe.onloadend=Ne:xe.onreadystatechange=function(){!xe||xe.readyState!==4||xe.status===0&&!(xe.responseURL&&xe.responseURL.indexOf("file:")===0)||setTimeout(Ne)},xe.onabort=function(){xe&&(ie(new AxiosError("Request aborted",AxiosError.ECONNABORTED,$,xe)),xe=null)},xe.onerror=function(){ie(new AxiosError("Network Error",AxiosError.ERR_NETWORK,$,xe)),xe=null},xe.ontimeout=function(){let At=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded";const Lt=$.transitional||transitionalDefaults;$.timeoutErrorMessage&&(At=$.timeoutErrorMessage),ie(new AxiosError(At,Lt.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,$,xe)),xe=null},platform$1.isStandardBrowserEnv){const ze=($.withCredentials||isURLSameOrigin(Ie))&&$.xsrfCookieName&&cookies.read($.xsrfCookieName);ze&&pe.set($.xsrfHeaderName,ze)}le===void 0&&pe.setContentType(null),"setRequestHeader"in xe&&utils$8.forEach(pe.toJSON(),function(At,Lt){xe.setRequestHeader(Lt,At)}),utils$8.isUndefined($.withCredentials)||(xe.withCredentials=!!$.withCredentials),_e&&_e!=="json"&&(xe.responseType=$.responseType),typeof $.onDownloadProgress=="function"&&xe.addEventListener("progress",progressEventReducer($.onDownloadProgress,!0)),typeof $.onUploadProgress=="function"&&xe.upload&&xe.upload.addEventListener("progress",progressEventReducer($.onUploadProgress)),($.cancelToken||$.signal)&&(Ce=ze=>{xe&&(ie(!ze||ze.type?new CanceledError(null,$,xe):ze),xe.abort(),xe=null)},$.cancelToken&&$.cancelToken.subscribe(Ce),$.signal&&($.signal.aborted?Ce():$.signal.addEventListener("abort",Ce)));const Fe=parseProtocol(Ie);if(Fe&&platform$1.protocols.indexOf(Fe)===-1){ie(new AxiosError("Unsupported protocol "+Fe+":",AxiosError.ERR_BAD_REQUEST,$));return}xe.send(le||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$8.forEach(knownAdapters,($,oe)=>{if($){try{Object.defineProperty($,"name",{value:oe})}catch{}Object.defineProperty($,"adapterName",{value:oe})}});const adapters={getAdapter:$=>{$=utils$8.isArray($)?$:[$];const{length:oe}=$;let ae,ie;for(let le=0;le$ instanceof AxiosHeaders$1?$.toJSON():$;function mergeConfig($,oe){oe=oe||{};const ae={};function ie(xe,Ie,Ne){return utils$8.isPlainObject(xe)&&utils$8.isPlainObject(Ie)?utils$8.merge.call({caseless:Ne},xe,Ie):utils$8.isPlainObject(Ie)?utils$8.merge({},Ie):utils$8.isArray(Ie)?Ie.slice():Ie}function le(xe,Ie,Ne){if(utils$8.isUndefined(Ie)){if(!utils$8.isUndefined(xe))return ie(void 0,xe,Ne)}else return ie(xe,Ie,Ne)}function pe(xe,Ie){if(!utils$8.isUndefined(Ie))return ie(void 0,Ie)}function _e(xe,Ie){if(utils$8.isUndefined(Ie)){if(!utils$8.isUndefined(xe))return ie(void 0,xe)}else return ie(void 0,Ie)}function Ce(xe,Ie,Ne){if(Ne in oe)return ie(xe,Ie);if(Ne in $)return ie(void 0,xe)}const $e={url:pe,method:pe,data:pe,baseURL:_e,transformRequest:_e,transformResponse:_e,paramsSerializer:_e,timeout:_e,timeoutMessage:_e,withCredentials:_e,adapter:_e,responseType:_e,xsrfCookieName:_e,xsrfHeaderName:_e,onUploadProgress:_e,onDownloadProgress:_e,decompress:_e,maxContentLength:_e,maxBodyLength:_e,beforeRedirect:_e,transport:_e,httpAgent:_e,httpsAgent:_e,cancelToken:_e,socketPath:_e,responseEncoding:_e,validateStatus:Ce,headers:(xe,Ie)=>le(headersToObject(xe),headersToObject(Ie),!0)};return utils$8.forEach(Object.keys(Object.assign({},$,oe)),function(Ie){const Ne=$e[Ie]||le,Fe=Ne($[Ie],oe[Ie],Ie);utils$8.isUndefined(Fe)&&Ne!==Ce||(ae[Ie]=Fe)}),ae}const VERSION="1.4.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach(($,oe)=>{validators$1[$]=function(ie){return typeof ie===$||"a"+(oe<1?"n ":" ")+$}});const deprecatedWarnings={};validators$1.transitional=function(oe,ae,ie){function le(pe,_e){return"[Axios v"+VERSION+"] Transitional option '"+pe+"'"+_e+(ie?". "+ie:"")}return(pe,_e,Ce)=>{if(oe===!1)throw new AxiosError(le(_e," has been removed"+(ae?" in "+ae:"")),AxiosError.ERR_DEPRECATED);return ae&&!deprecatedWarnings[_e]&&(deprecatedWarnings[_e]=!0,console.warn(le(_e," has been deprecated since v"+ae+" and will be removed in the near future"))),oe?oe(pe,_e,Ce):!0}};function assertOptions($,oe,ae){if(typeof $!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const ie=Object.keys($);let le=ie.length;for(;le-- >0;){const pe=ie[le],_e=oe[pe];if(_e){const Ce=$[pe],$e=Ce===void 0||_e(Ce,pe,$);if($e!==!0)throw new AxiosError("option "+pe+" must be "+$e,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(ae!==!0)throw new AxiosError("Unknown option "+pe,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(oe){this.defaults=oe,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(oe,ae){typeof oe=="string"?(ae=ae||{},ae.url=oe):ae=oe||{},ae=mergeConfig(this.defaults,ae);const{transitional:ie,paramsSerializer:le,headers:pe}=ae;ie!==void 0&&validator.assertOptions(ie,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),le!=null&&(utils$8.isFunction(le)?ae.paramsSerializer={serialize:le}:validator.assertOptions(le,{encode:validators.function,serialize:validators.function},!0)),ae.method=(ae.method||this.defaults.method||"get").toLowerCase();let _e;_e=pe&&utils$8.merge(pe.common,pe[ae.method]),_e&&utils$8.forEach(["delete","get","head","post","put","patch","common"],At=>{delete pe[At]}),ae.headers=AxiosHeaders$1.concat(_e,pe);const Ce=[];let $e=!0;this.interceptors.request.forEach(function(Lt){typeof Lt.runWhen=="function"&&Lt.runWhen(ae)===!1||($e=$e&&Lt.synchronous,Ce.unshift(Lt.fulfilled,Lt.rejected))});const xe=[];this.interceptors.response.forEach(function(Lt){xe.push(Lt.fulfilled,Lt.rejected)});let Ie,Ne=0,Fe;if(!$e){const At=[dispatchRequest.bind(this),void 0];for(At.unshift.apply(At,Ce),At.push.apply(At,xe),Fe=At.length,Ie=Promise.resolve(ae);Ne{if(!ie._listeners)return;let pe=ie._listeners.length;for(;pe-- >0;)ie._listeners[pe](le);ie._listeners=null}),this.promise.then=le=>{let pe;const _e=new Promise(Ce=>{ie.subscribe(Ce),pe=Ce}).then(le);return _e.cancel=function(){ie.unsubscribe(pe)},_e},oe(function(pe,_e,Ce){ie.reason||(ie.reason=new CanceledError(pe,_e,Ce),ae(ie.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(oe){if(this.reason){oe(this.reason);return}this._listeners?this._listeners.push(oe):this._listeners=[oe]}unsubscribe(oe){if(!this._listeners)return;const ae=this._listeners.indexOf(oe);ae!==-1&&this._listeners.splice(ae,1)}static source(){let oe;return{token:new CancelToken(function(le){oe=le}),cancel:oe}}}const CancelToken$1=CancelToken;function spread($){return function(ae){return $.apply(null,ae)}}function isAxiosError($){return utils$8.isObject($)&&$.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([$,oe])=>{HttpStatusCode[oe]=$});const HttpStatusCode$1=HttpStatusCode;function createInstance($){const oe=new Axios$1($),ae=bind$4(Axios$1.prototype.request,oe);return utils$8.extend(ae,Axios$1.prototype,oe,{allOwnKeys:!0}),utils$8.extend(ae,oe,null,{allOwnKeys:!0}),ae.create=function(le){return createInstance(mergeConfig($,le))},ae}const axios=createInstance(defaults$4);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(oe){return Promise.all(oe)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=$=>formDataToJSON(utils$8.isHTMLForm($)?new FormData($):$);axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios;let config={};const{VITE_PUBLIC_PATH}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},setConfig=$=>{config=Object.assign(config,$)},getConfig=$=>{if(typeof $=="string"){const oe=$.split(".");if(oe&&oe.length){let ae=config;return oe.forEach(ie=>{ae&&typeof ae[ie]<"u"?ae=ae[ie]:ae=null}),ae}}return config},getServerConfig=async $=>($.config.globalProperties.$config=getConfig(),axios$1({method:"get",url:`${VITE_PUBLIC_PATH}serverConfig.json`}).then(({data:oe})=>{let ae=$.config.globalProperties.$config;return $&&ae&&typeof oe=="object"&&(ae=Object.assign(ae,oe),$.config.globalProperties.$config=ae,setConfig(ae)),ae}).catch(()=>{throw"请在public文件夹下添加serverConfig.json配置文件"})),responsiveStorageNameSpace=()=>getConfig().ResponsiveStorageNameSpace;function siphonI18n($="zh-CN"){return Object.fromEntries(Object.entries(Object.assign({"../../locales/en.yaml":__vite_glob_0_0$2,"../../locales/zh-CN.yaml":__vite_glob_0_1$2})).map(([oe,ae])=>[oe.match(/([A-Za-z0-9-_]+)\./i)[1],ae.default]))[$]}const localesConfigs={zh:{...siphonI18n("zh-CN"),...zhLocale},en:{...siphonI18n("en"),...enLocale}};function transformI18n($=""){var ae;if(!$)return"";if(typeof $=="object"){const ie=i18n.global.locale;return $[ie==null?void 0:ie.value]}const oe=(ae=$.match(/(\S*)\./))==null?void 0:ae[1];return oe&&Object.keys(siphonI18n("zh-CN")).includes(oe)||!oe&&Object.keys(siphonI18n("zh-CN")).includes($)?i18n.global.t.call(i18n.global.locale,$):$}const $t=$=>$;var ea;const i18n=createI18n({legacy:!1,locale:((ea=Kn().getItem(`${responsiveStorageNameSpace()}locale`))==null?void 0:ea.locale)??"zh",fallbackLocale:"en",messages:localesConfigs});function useI18n($){$.use(i18n)}const home$1=0,doc=1,utils$7=2,table$1=3,components$1=4,able$1=5,frame$1=6,nested$1=7,result$1=8,error$1=9,list$2=10,permission=11,system$1=12,tabs=13,formdesign$1=14,flowchart$1=15,ppt$1=16,editor$1=17,guide$1=18,menuoverflow$1=19,about$1=20,able={path:"/able",redirect:"/able/watermark",meta:{icon:"ubuntuFill",title:$t("menus.hsAble"),rank:able$1},children:[{path:"/able/watermark",name:"WaterMark",component:()=>__vitePreload(()=>import("./watermark-11783896.js"),[]),meta:{title:$t("menus.hsWatermark")}},{path:"/able/print",name:"Print",component:()=>__vitePreload(()=>import("./print-ab6bd646.js"),["static/js/print-ab6bd646.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-c9d17410.js","static/js/app-9580cee8.js","static/css/print-8831c8b6.css"]),meta:{title:$t("menus.hsPrint")}},{path:"/able/download",name:"Download",component:()=>__vitePreload(()=>import("./download-82053b96.js"),[]),meta:{title:$t("menus.hsDownload")}},{path:"/able/iconSelect",name:"IconSelect",component:()=>__vitePreload(()=>import("./icon-select-1e86bdde.js"),["static/js/icon-select-1e86bdde.js","static/css/icon-select-f6ac52ad.css"]),meta:{title:$t("menus.hsIconSelect")}},{path:"/able/timeline",name:"TimeLine",component:()=>__vitePreload(()=>import("./timeline-3ea27185.js"),["static/js/timeline-3ea27185.js","static/js/index-3bb45c48.js","static/css/index-18417f34.css","static/js/hooks-62079556.js","static/js/iphone-bcaa848c.js","static/css/timeline-0391e3d4.css"]),meta:{title:$t("menus.hsTimeline")}},{path:"/able/menuTree",name:"MenuTree",component:()=>__vitePreload(()=>import("./menu-tree-a38122a5.js"),["static/js/menu-tree-a38122a5.js","static/js/hooks-62079556.js"]),meta:{title:$t("menus.hsMenuTree")}},{path:"/able/lineTree",name:"LineTree",component:()=>__vitePreload(()=>import("./line-tree-f3ff15d7.js"),["static/js/line-tree-f3ff15d7.js","static/css/line-tree-970a113a.css"]),meta:{title:$t("menus.hsLineTree")}},{path:"/able/debounce",name:"Debounce",component:()=>__vitePreload(()=>import("./debounce-27797450.js"),["static/js/debounce-27797450.js","static/js/message-ac5811da.js"]),meta:{title:$t("menus.hsDebounce")}},{path:"/able/barcode",name:"BarCode",component:()=>__vitePreload(()=>import("./barcode-7cfa344e.js"),[]),meta:{title:$t("menus.hsBarcode")}},{path:"/able/qrcode",name:"QrCode",component:()=>__vitePreload(()=>import("./qrcode-eb62c949.js"),["static/js/qrcode-eb62c949.js","static/js/message-ac5811da.js","static/js/index-639cd49d.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),meta:{title:$t("menus.hsQrcode")}},{path:"/able/cascader",name:"Cascader",component:()=>__vitePreload(()=>import("./cascader-c5c3f147.js"),["static/js/cascader-c5c3f147.js","static/css/cascader-843853c0.css"]),meta:{title:$t("menus.hsCascader")}},{path:"/able/swiper",name:"Swiper",component:()=>__vitePreload(()=>import("./swiper-3eeb0cd1.js"),["static/js/swiper-3eeb0cd1.js","static/css/swiper-4182dcb7.css"]),meta:{title:$t("menus.hsSwiper")}},{path:"/able/virtualList",name:"VirtualList",component:()=>__vitePreload(()=>import("./index-62aa1b91.js"),["static/js/index-62aa1b91.js","static/js/vertical-44eee916.js","static/js/vue-virtual-scroller.esm-490d869b.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-0e874426.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),meta:{title:$t("menus.hsVirtualList")}},{path:"/able/pdf",name:"Pdf",component:()=>__vitePreload(()=>import("./pdf-8be0f9a8.js"),["static/js/pdf-8be0f9a8.js","static/js/vue.runtime.esm-bundler-c42d439d.js"]),meta:{title:$t("menus.hsPdf")}},{path:"/able/execl",name:"Execl",component:()=>__vitePreload(()=>import("./execl-48f63f3f.js"),["static/js/execl-48f63f3f.js","static/js/xlsx-e927f539.js"]),meta:{title:$t("menus.hsExecl")}},{path:"/able/infiniteScroll",name:"InfiniteScroll",component:()=>__vitePreload(()=>import("./infinite-scroll-7fd0a6d1.js"),[]),meta:{title:$t("menus.hsInfiniteScroll")}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:able},Symbol.toStringTag,{value:"Module"})),about={path:"/about",redirect:"/about/index",meta:{title:$t("menus.hsAbout"),rank:about$1},children:[{path:"/about/index",name:"About",component:()=>__vitePreload(()=>import("./index-4a5b9d97.js"),["static/js/index-4a5b9d97.js","static/js/columns-ba8e4348.js","static/css/index-14544c94.css"]),meta:{title:$t("menus.hsAbout")}}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:about},Symbol.toStringTag,{value:"Module"})),components={path:"/components",redirect:"/components/video",meta:{icon:"menu",title:$t("menus.hscomponents"),rank:components$1},children:[{path:"/components/dialog",name:"Dialog",component:()=>__vitePreload(()=>import("./index-b21cf265.js"),["static/js/index-b21cf265.js","static/js/message-ac5811da.js","static/js/form.vue_vue_type_script_setup_true_lang-e871bdbd.js"]),meta:{title:$t("menus.hsdialog"),extraIcon:"IF-pure-iconfont-new svg",transition:{enterTransition:"animate__fadeInLeft",leaveTransition:"animate__fadeOutRight"}}},{path:"/components/message",name:"Message",component:()=>__vitePreload(()=>import("./index-c7941fd5.js"),["static/js/index-c7941fd5.js","static/js/message-ac5811da.js","static/js/hooks-62079556.js","static/js/check-3815600c.js"]),meta:{title:$t("menus.hsmessage")}},{path:"/components/video",name:"Video",component:()=>__vitePreload(()=>import("./index-7c86d1c0.js"),["static/js/index-7c86d1c0.js","static/js/hooks-62079556.js","static/css/index-11b4621f.css"]),meta:{title:$t("menus.hsvideo")}},{path:"/components/map",name:"Map",component:()=>__vitePreload(()=>import("./index-b93c607c.js"),["static/js/index-b93c607c.js","static/css/index-d504fa9c.css"]),meta:{title:$t("menus.hsmap"),keepAlive:!0,transition:{name:"fade"}}},{path:"/components/draggable",name:"Draggable",component:()=>__vitePreload(()=>import("./index-4e7937cc.js"),["static/js/index-4e7937cc.js","static/js/sortable.esm-679e0872.js","static/js/app-9580cee8.js","static/js/hooks-62079556.js","static/css/index-b2ddca14.css"]),meta:{title:$t("menus.hsdraggable"),transition:{enterTransition:"animate__zoomIn",leaveTransition:"animate__zoomOut"}}},{path:"/components/splitPane",name:"SplitPane",component:()=>__vitePreload(()=>import("./index-59ff87b7.js"),["static/js/index-59ff87b7.js","static/css/index-e0a7f2a0.css"]),meta:{title:$t("menus.hssplitPane")}},{path:"/components/button",name:"Button",component:()=>__vitePreload(()=>import("./index-d79fa351.js"),[]),meta:{title:$t("menus.hsbutton")}},{path:"/components/cropping",name:"Cropping",component:()=>__vitePreload(()=>import("./index-159573b9.js"),["static/js/index-159573b9.js","static/css/index-fdfcfa11.css"]),meta:{title:$t("menus.hscropping")}},{path:"/components/countTo",name:"CountTo",component:()=>__vitePreload(()=>import("./index-03a042a0.js"),["static/js/index-03a042a0.js","static/js/propTypes-c3354283.js","static/css/index-a129e600.css"]),meta:{title:$t("menus.hscountTo")}},{path:"/components/selector",name:"Selector",component:()=>__vitePreload(()=>import("./index-9320116d.js"),["static/js/index-9320116d.js","static/css/index-ea4ab5c7.css"]),meta:{title:$t("menus.hsselector")}},{path:"/components/seamlessScroll",name:"SeamlessScroll",component:()=>__vitePreload(()=>import("./index-1f4723fd.js"),["static/js/index-1f4723fd.js","static/js/index-95b65695.js","static/css/index-53a917f7.css"]),meta:{title:$t("menus.hsseamless")}},{path:"/components/contextmenu",name:"ContextMenu",component:()=>__vitePreload(()=>import("./index-04f26cf0.js"),["static/js/index-04f26cf0.js","static/js/basic-09712a8c.js","static/js/index.esm-04a1a156.js","static/css/basic-d842f1a0.css","static/js/menuGroup-03365b00.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-f234f67c.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),meta:{title:$t("menus.hscontextmenu")}},{path:"/components/typeit",name:"Typeit",component:()=>__vitePreload(()=>import("./index-10e75e7a.js"),["static/js/index-10e75e7a.js","static/js/index-24d2e7bb.js"]),meta:{title:$t("menus.hstypeit")}},{path:"/components/json-editor",name:"JsonEditor",component:()=>__vitePreload(()=>import("./index-49272547.js"),["static/js/index-49272547.js","static/js/styles-cf4bf16f.js","static/js/vue.runtime.esm-bundler-c42d439d.js","static/css/styles-670012e0.css"]),meta:{title:$t("menus.hsjsoneditor")}},{path:"/components/danmaku",name:"Danmaku",component:()=>__vitePreload(()=>import("./index-41258481.js"),["static/js/index-41258481.js","static/css/index-14392f45.css"]),meta:{title:$t("menus.hsdanmaku")}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:components},Symbol.toStringTag,{value:"Module"})),editor={path:"/editor",redirect:"/editor/index",meta:{icon:"edit",title:$t("menus.hseditor"),rank:editor$1},children:[{path:"/editor/index",name:"Editor",component:()=>__vitePreload(()=>import("./index-a0fc3b02.js"),["static/js/index-a0fc3b02.js","static/js/hooks-62079556.js","static/js/edit-d219f0c6.js","static/css/index-f38a3df6.css"]),meta:{title:$t("menus.hseditor"),keepAlive:!0}}]},__vite_glob_0_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:editor},Symbol.toStringTag,{value:"Module"})),error={path:"/error",redirect:"/error/403",meta:{icon:"informationLine",title:$t("menus.hsabnormal"),rank:error$1},children:[{path:"/error/403",name:"403",component:()=>__vitePreload(()=>import("./403-aace6d52.js"),[]),meta:{title:$t("menus.hsfourZeroOne")}},{path:"/error/404",name:"404",component:()=>__vitePreload(()=>import("./404-4055428e.js"),[]),meta:{title:$t("menus.hsfourZeroFour")}},{path:"/error/500",name:"500",component:()=>__vitePreload(()=>import("./500-68cbae6c.js"),[]),meta:{title:$t("menus.hsFive")}}]},__vite_glob_0_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:error},Symbol.toStringTag,{value:"Module"})),flowchart={path:"/flowChart",redirect:"/flowChart/index",meta:{icon:"setUp",title:$t("menus.hsflowChart"),rank:flowchart$1},children:[{path:"/flowChart/index",name:"FlowChart",component:()=>__vitePreload(()=>import("./index-9a545244.js"),["static/js/index-9a545244.js","static/js/hooks-62079556.js","static/js/styles-cf4bf16f.js","static/js/vue.runtime.esm-bundler-c42d439d.js","static/css/styles-670012e0.css","static/js/set-up-e6942411.js","static/css/index-6bd35e69.css"]),meta:{title:$t("menus.hsflowChart")}}]},__vite_glob_0_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:flowchart},Symbol.toStringTag,{value:"Module"})),IFrame$4=()=>__vitePreload(()=>import("./frameView-17abd35a.js"),["static/js/frameView-17abd35a.js","static/css/frameView-ed080731.css"]),formdesign={path:"/formDesign",redirect:"/formDesign/index",meta:{icon:"terminalWindowLine",title:$t("menus.hsFormDesign"),rank:formdesign$1},children:[{path:"/formDesign/index",name:"FormDesign",component:IFrame$4,meta:{title:$t("menus.hsFormDesign"),frameSrc:"https://haixin-fang.github.io/starfish-vue3-lowcode/playground/index.html#/"}}]},__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:formdesign},Symbol.toStringTag,{value:"Module"})),guide={path:"/guide",redirect:"/guide/index",meta:{icon:"guide",title:$t("menus.hsguide"),rank:guide$1},children:[{path:"/guide/index",name:"Guide",component:()=>__vitePreload(()=>import("./index-a24a88b8.js"),["static/js/index-a24a88b8.js","static/css/index-38ef32bb.css"]),meta:{title:$t("menus.hsguide")}}]},__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:guide},Symbol.toStringTag,{value:"Module"})),{VITE_HIDE_HOME:VITE_HIDE_HOME$2}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},Layout$1=()=>__vitePreload(()=>import("./index-2c9a69b7.js"),["static/js/index-2c9a69b7.js","static/js/menu-a4fe64fb.js","static/js/edit-d219f0c6.js","static/js/set-up-e6942411.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-8da7fda0.js","static/js/app-9580cee8.js","static/js/epTheme-ec99570c.js","static/js/hooks-62079556.js","static/js/index-95b65695.js","static/js/search-cc37b371.js","static/js/check-3815600c.js","static/js/refresh-right-6177e75c.js","static/js/arrow-right-s-line-2977cc7e.js","static/css/index-17881e6a.css"]),home={path:"/",name:"Home",component:Layout$1,redirect:"/welcome",meta:{icon:"homeFilled",title:$t("menus.hshome"),rank:home$1},children:[{path:"/welcome",name:"Welcome",component:()=>__vitePreload(()=>import("./index-5820af99.js"),["static/js/index-5820af99.js","static/js/Bar.vue_vue_type_script_setup_true_lang-41902aae.js","static/js/app-9580cee8.js","static/js/Pie.vue_vue_type_script_setup_true_lang-2dbb1c8a.js","static/js/Line.vue_vue_type_script_setup_true_lang-c9d17410.js","static/js/index-24d2e7bb.js","static/js/index-95b65695.js","static/js/Github.vue_vue_type_script_setup_true_lang-465cd287.js","static/js/columns-534bdbdc.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js","static/js/index-3bb45c48.js","static/css/index-18417f34.css","static/css/index-e89363d8.css"]),meta:{title:$t("menus.hshome"),showLink:VITE_HIDE_HOME$2!=="true"}}]},__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:home},Symbol.toStringTag,{value:"Module"})),list$1={path:"/list",redirect:"/list/card",meta:{icon:"listCheck",title:$t("menus.hsList"),rank:list$2},children:[{path:"/list/card",name:"ListCard",component:()=>__vitePreload(()=>import("./index-8c8a5e0e.js"),["static/js/index-8c8a5e0e.js","static/js/Card-514d8668.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css","static/js/message-ac5811da.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-27dd14b2.js","static/js/hooks-62079556.js","static/js/search-cc37b371.js","static/js/add-circle-line-a03ff6bd.js"]),meta:{icon:"card",title:$t("menus.hsListCard"),showParent:!0}}]},__vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:list$1},Symbol.toStringTag,{value:"Module"})),menuoverflow={path:"/menuoverflow",redirect:"/menuoverflow/index",meta:{title:$t("menus.hsMenuoverflow"),rank:menuoverflow$1},children:[{path:"/menuoverflow/index",name:"MenuOverflow",component:()=>__vitePreload(()=>import("./index-bcc6313c.js"),[]),meta:{title:$t("menus.hsChildMenuoverflow"),showParent:!0}}]},__vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:menuoverflow},Symbol.toStringTag,{value:"Module"})),nested={path:"/nested",redirect:"/nested/menu1/menu1-1",meta:{title:$t("menus.hsmenus"),icon:"histogram",rank:nested$1},children:[{path:"/nested/menu1",meta:{title:$t("menus.hsmenu1"),keepAlive:!0},redirect:"/nested/menu1/menu1-1",children:[{path:"/nested/menu1/menu1-1",component:()=>__vitePreload(()=>import("./index-54e3e3b4.js"),[]),name:"Menu1-1",meta:{title:$t("menus.hsmenu1-1"),keepAlive:!0}},{path:"/nested/menu1/menu1-2",redirect:"/nested/menu1/menu1-2/menu1-2-1",meta:{title:$t("menus.hsmenu1-2"),keepAlive:!0},children:[{path:"/nested/menu1/menu1-2/menu1-2-1",component:()=>__vitePreload(()=>import("./index-2b3bdafa.js"),[]),name:"Menu1-2-1",meta:{title:$t("menus.hsmenu1-2-1"),keepAlive:!0}},{path:"/nested/menu1/menu1-2/menu1-2-2",component:()=>__vitePreload(()=>import("./index-5f0193e2.js"),[]),name:"Menu1-2-2",meta:{title:$t("menus.hsmenu1-2-2"),keepAlive:!0,extraIcon:"IF-pure-iconfont-new svg"}}]},{path:"/nested/menu1/menu1-3",component:()=>__vitePreload(()=>import("./index-32849726.js"),[]),name:"Menu1-3",meta:{title:$t("menus.hsmenu1-3"),keepAlive:!0}}]},{path:"/nested/menu2",name:"Menu2",component:()=>__vitePreload(()=>import("./index-7ba69997.js"),[]),meta:{title:$t("menus.hsmenu2"),keepAlive:!0}}]},__vite_glob_0_11=Object.freeze(Object.defineProperty({__proto__:null,default:nested},Symbol.toStringTag,{value:"Module"})),IFrame$3=()=>__vitePreload(()=>import("./frameView-17abd35a.js"),["static/js/frameView-17abd35a.js","static/css/frameView-ed080731.css"]),ppt={path:"/ppt",redirect:"/ppt/index",meta:{icon:"ppt",title:"PPT",rank:ppt$1},children:[{path:"/ppt/index",name:"FramePpt",component:IFrame$3,meta:{title:"PPT",frameSrc:"https://pipipi-pikachu.github.io/PPTist/",frameLoading:!1}}]},__vite_glob_0_12=Object.freeze(Object.defineProperty({__proto__:null,default:ppt},Symbol.toStringTag,{value:"Module"})),_hoisted_1={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 1024 1024"},_hoisted_2=createBaseVNode("path",{fill:"#FF5D50",d:"M428.698 107.315c-6.503 72.192-36.352 207.258-160.256 337.408 3.686-48.025-7.117-83.763-19.047-107.673-6.605-13.159-26.06-10.599-28.877 3.84-5.734 29.44-20.582 75.059-57.6 137.779-71.628 121.395-62.566 459.878 340.736 459.878S934.093 585.728 876.8 442.522c-37.376-93.44-93.952-152.525-128.82-182.324-11.417-9.779-29.132-1.945-29.593 13.056-.921 30.464-7.321 73.37-33.075 102.144-.666-52.787-38.144-208.384-202.445-296.857-23.296-12.544-51.763 2.457-54.17 28.774z"},null,-1),_hoisted_3=createBaseVNode("path",{fill:"#FFDF99",d:"M702.26 678.4c-4.2-45.056-60.673-166.554-212.634-246.426-10.599-5.58-23.092 3.124-21.504 15.002 6.246 46.848 12.953 140.493-24.064 184.73 4.044-40.397-18.125-73.83-36.66-94.31-8.396-9.217-23.552-4.66-25.497 7.68-3.533 22.322-12.851 56.268-36.557 97.945-42.086 74.035-86.989 188.672 124.57 294.656 10.956.563 22.17.87 33.74.87a617.97 617.97 0 0 0 32.717-.87C694.631 878.182 709.837 759.706 702.26 678.4z"},null,-1),_hoisted_4=[_hoisted_2,_hoisted_3];function render$3($,oe){return openBlock(),createElementBlock("svg",_hoisted_1,_hoisted_4)}const hot={render:render$3},IFrame$2=()=>__vitePreload(()=>import("./frameView-17abd35a.js"),["static/js/frameView-17abd35a.js","static/css/frameView-ed080731.css"]),puredoc={path:"/pure-admin-doc",redirect:"/pure-admin-doc/index",meta:{icon:hot,title:"pure-admin-doc",rank:doc},children:[{path:"/pure-admin-doc/index",name:"FrameDoc",component:IFrame$2,meta:{title:"pure-admin-doc",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc/"}}]},__vite_glob_0_13=Object.freeze(Object.defineProperty({__proto__:null,default:puredoc},Symbol.toStringTag,{value:"Module"})),IFrame$1=()=>__vitePreload(()=>import("./frameView-17abd35a.js"),["static/js/frameView-17abd35a.js","static/css/frameView-ed080731.css"]),pureutils={path:"/pure-admin-utils",redirect:"/pure-admin-utils/index",meta:{icon:hot,title:"pure-admin-utils",rank:utils$7},children:[{path:"/pure-admin-utils/index",name:"FrameUtils",component:IFrame$1,meta:{title:"pure-admin-utils",frameSrc:"https://pure-admin-utils.netlify.app/"}}]},__vite_glob_0_14=Object.freeze(Object.defineProperty({__proto__:null,default:pureutils},Symbol.toStringTag,{value:"Module"})),result={path:"/result",redirect:"/result/success",meta:{icon:"checkboxCircleLine",title:$t("menus.hsResult"),rank:result$1},children:[{path:"/result/success",name:"Success",component:()=>__vitePreload(()=>import("./success-945d4baa.js"),["static/js/success-945d4baa.js","static/css/success-42084dfc.css"]),meta:{title:$t("menus.hsSuccess")}},{path:"/result/fail",name:"Fail",component:()=>__vitePreload(()=>import("./fail-faba5431.js"),["static/js/fail-faba5431.js","static/js/columns-4858870b.js","static/js/arrow-right-s-line-2977cc7e.js","static/css/fail-8c7d12a4.css"]),meta:{title:$t("menus.hsFail")}}]},__vite_glob_0_15=Object.freeze(Object.defineProperty({__proto__:null,default:result},Symbol.toStringTag,{value:"Module"})),table={path:"/pure-table",redirect:"/pure-table/index",meta:{icon:hot,title:"pure-admin-table",rank:table$1},children:[{path:"/pure-table/index",name:"PureTable",component:()=>__vitePreload(()=>import("./index-dfcdfd2f.js"),["static/js/index-dfcdfd2f.js","static/js/list-90b3344f.js","static/js/base.vue_vue_type_script_setup_true_lang-fc0b0c63.js","static/js/data-7bb4b374.js","static/js/stripe.vue_vue_type_script_setup_true_lang-9b1733b5.js","static/js/border.vue_vue_type_script_setup_true_lang-61cc9adb.js","static/js/status.vue_vue_type_style_index_0_lang-b71c06dd.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c5d733cd.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-5b704527.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-88785cb7.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-4a87b79d.js","static/js/radio.vue_vue_type_script_setup_true_lang-3d02b222.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-cf211278.js","static/js/sortable.vue_vue_type_script_setup_true_lang-8fb6878f.js","static/js/filters.vue_vue_type_script_setup_true_lang-4819fc0e.js","static/js/index.vue_vue_type_script_setup_true_lang-b3e381b1.js","static/js/columns-39bf1e5b.js","static/js/message-ac5811da.js","static/js/index.vue_vue_type_script_setup_true_lang-0429dccb.js","static/js/columns-75cd3c72.js","static/js/expand.vue_vue_type_script_setup_true_lang-72453caf.js","static/js/tree.vue_vue_type_script_setup_true_lang-d55e7056.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-4312dd4f.js","static/js/merge.vue_vue_type_script_setup_true_lang-a510a2fc.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-e3c9b231.js","static/js/layout.vue_vue_type_script_setup_true_lang-d00641f6.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-628ba7d1.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-bcaea8a2.js","static/css/index-c6b6432d.css"]),meta:{title:$t("menus.hsPureTableBase")}},{path:"/pure-table/high",name:"PureTableHigh",component:()=>__vitePreload(()=>import("./high-25613d81.js"),["static/js/high-25613d81.js","static/js/list-18420425.js","static/js/index.vue_vue_type_script_setup_true_lang-80e8a030.js","static/js/columns-bbf3abe3.js","static/js/data-4845d266.js","static/js/index.vue_vue_type_script_setup_true_lang-d5647728.js","static/js/columns-2721478e.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-07f5e3b9.js","static/js/columns-9df0a0b6.js","static/js/index.vue_vue_type_script_setup_true_lang-316dae94.js","static/js/columns-f5c5c5b8.js","static/js/message-ac5811da.js","static/js/index.vue_vue_type_script_setup_true_lang-b2941bf3.js","static/js/columns-5f812485.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-376130a5.js","static/js/columns-df5d4455.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-f7bd604c.js","static/js/columns-c20796e3.js","static/js/index.vue_vue_type_script_setup_true_lang-22762134.js","static/js/columns-58fb2122.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-fa1f2931.js","static/js/columns-7cd72d5c.js","static/js/index-95b65695.js","static/js/index.vue_vue_type_script_setup_true_lang-e40cdb80.js","static/js/index.vue_vue_type_script_setup_true_lang-f3b36626.js","static/js/columns-3d7dbff3.js","static/js/index.vue_vue_type_script_setup_true_lang-c6a3d999.js","static/js/columns-7628a2c7.js","static/css/high-5bc3f1f1.css"]),meta:{title:$t("menus.hsPureTableHigh")}}]},__vite_glob_0_16=Object.freeze(Object.defineProperty({__proto__:null,default:table},Symbol.toStringTag,{value:"Module"}));/*! js-cookie v3.0.5 | MIT */function assign$3($){for(var oe=1;oe"u")){_e=assign$3({},oe,_e),typeof _e.expires=="number"&&(_e.expires=new Date(Date.now()+_e.expires*864e5)),_e.expires&&(_e.expires=_e.expires.toUTCString()),le=encodeURIComponent(le).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var Ce="";for(var $e in _e)_e[$e]&&(Ce+="; "+$e,_e[$e]!==!0&&(Ce+="="+_e[$e].split(";")[0]));return document.cookie=le+"="+$.write(pe,le)+Ce}}function ie(le){if(!(typeof document>"u"||arguments.length&&!le)){for(var pe=document.cookie?document.cookie.split("; "):[],_e={},Ce=0;CeactivePinia=$,piniaSymbol=Symbol();function isPlainObject($){return $&&typeof $=="object"&&Object.prototype.toString.call($)==="[object Object]"&&typeof $.toJSON!="function"}var MutationType;(function($){$.direct="direct",$.patchObject="patch object",$.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const $=effectScope(!0),oe=$.run(()=>ref({}));let ae=[],ie=[];const le=markRaw({install(pe){setActivePinia(le),le._a=pe,pe.provide(piniaSymbol,le),pe.config.globalProperties.$pinia=le,ie.forEach(_e=>ae.push(_e)),ie=[]},use(pe){return!this._a&&!isVue2?ie.push(pe):ae.push(pe),this},_p:ae,_a:null,_e:$,_s:new Map,state:oe});return le}const noop$3=()=>{};function addSubscription($,oe,ae,ie=noop$3){$.push(oe);const le=()=>{const pe=$.indexOf(oe);pe>-1&&($.splice(pe,1),ie())};return!ae&&getCurrentScope()&&onScopeDispose(le),le}function triggerSubscriptions($,...oe){$.slice().forEach(ae=>{ae(...oe)})}function mergeReactiveObjects($,oe){$ instanceof Map&&oe instanceof Map&&oe.forEach((ae,ie)=>$.set(ie,ae)),$ instanceof Set&&oe instanceof Set&&oe.forEach($.add,$);for(const ae in oe){if(!oe.hasOwnProperty(ae))continue;const ie=oe[ae],le=$[ae];isPlainObject(le)&&isPlainObject(ie)&&$.hasOwnProperty(ae)&&!isRef(ie)&&!isReactive(ie)?$[ae]=mergeReactiveObjects(le,ie):$[ae]=ie}return $}const skipHydrateSymbol=Symbol();function shouldHydrate($){return!isPlainObject($)||!$.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$2}=Object;function isComputed($){return!!(isRef($)&&$.effect)}function createOptionsStore($,oe,ae,ie){const{state:le,actions:pe,getters:_e}=oe,Ce=ae.state.value[$];let $e;function xe(){Ce||(ae.state.value[$]=le?le():{});const Ie=toRefs(ae.state.value[$]);return assign$2(Ie,pe,Object.keys(_e||{}).reduce((Ne,Fe)=>(Ne[Fe]=markRaw(computed(()=>{setActivePinia(ae);const ze=ae._s.get($);return _e[Fe].call(ze,ze)})),Ne),{}))}return $e=createSetupStore($,xe,oe,ae,ie,!0),$e}function createSetupStore($,oe,ae={},ie,le,pe){let _e;const Ce=assign$2({actions:{}},ae),$e={deep:!0};let xe,Ie,Ne=markRaw([]),Fe=markRaw([]),ze;const At=ie.state.value[$];!pe&&!At&&(ie.state.value[$]={}),ref({});let Lt;function hn(wn){let Tn;xe=Ie=!1,typeof wn=="function"?(wn(ie.state.value[$]),Tn={type:MutationType.patchFunction,storeId:$,events:ze}):(mergeReactiveObjects(ie.state.value[$],wn),Tn={type:MutationType.patchObject,payload:wn,storeId:$,events:ze});const xn=Lt=Symbol();nextTick().then(()=>{Lt===xn&&(xe=!0)}),Ie=!0,triggerSubscriptions(Ne,Tn,ie.state.value[$])}const vn=pe?function(){const{state:Tn}=ae,xn=Tn?Tn():{};this.$patch(kn=>{assign$2(kn,xn)})}:noop$3;function _n(){_e.stop(),Ne=[],Fe=[],ie._s.delete($)}function bn(wn,Tn){return function(){setActivePinia(ie);const xn=Array.from(arguments),kn=[],An=[];function On(zn){kn.push(zn)}function Nn(zn){An.push(zn)}triggerSubscriptions(Fe,{args:xn,name:wn,store:En,after:On,onError:Nn});let Rn;try{Rn=Tn.apply(this&&this.$id===$?this:En,xn)}catch(zn){throw triggerSubscriptions(An,zn),zn}return Rn instanceof Promise?Rn.then(zn=>(triggerSubscriptions(kn,zn),zn)).catch(zn=>(triggerSubscriptions(An,zn),Promise.reject(zn))):(triggerSubscriptions(kn,Rn),Rn)}}const Cn={_p:ie,$id:$,$onAction:addSubscription.bind(null,Fe),$patch:hn,$reset:vn,$subscribe(wn,Tn={}){const xn=addSubscription(Ne,wn,Tn.detached,()=>kn()),kn=_e.run(()=>watch(()=>ie.state.value[$],An=>{(Tn.flush==="sync"?Ie:xe)&&wn({storeId:$,type:MutationType.direct,events:ze},An)},assign$2({},$e,Tn)));return xn},$dispose:_n},En=reactive(Cn);ie._s.set($,En);const $n=ie._e.run(()=>(_e=effectScope(),_e.run(()=>oe())));for(const wn in $n){const Tn=$n[wn];if(isRef(Tn)&&!isComputed(Tn)||isReactive(Tn))pe||(At&&shouldHydrate(Tn)&&(isRef(Tn)?Tn.value=At[wn]:mergeReactiveObjects(Tn,At[wn])),ie.state.value[$][wn]=Tn);else if(typeof Tn=="function"){const xn=bn(wn,Tn);$n[wn]=xn,Ce.actions[wn]=Tn}}return assign$2(En,$n),assign$2(toRaw(En),$n),Object.defineProperty(En,"$state",{get:()=>ie.state.value[$],set:wn=>{hn(Tn=>{assign$2(Tn,wn)})}}),ie._p.forEach(wn=>{assign$2(En,_e.run(()=>wn({store:En,app:ie._a,pinia:ie,options:Ce})))}),At&&pe&&ae.hydrate&&ae.hydrate(En.$state,At),xe=!0,Ie=!0,En}function defineStore($,oe,ae){let ie,le;const pe=typeof oe=="function";typeof $=="string"?(ie=$,le=pe?ae:oe):(le=$,ie=$.id);function _e(Ce,$e){const xe=getCurrentInstance();return Ce=Ce||xe&&inject(piniaSymbol,null),Ce&&setActivePinia(Ce),Ce=activePinia,Ce._s.has(ie)||(pe?createSetupStore(ie,oe,le,Ce):createOptionsStore(ie,le,Ce)),Ce._s.get(ie)}return _e.$id=ie,_e}function storeToRefs($){{$=toRaw($);const oe={};for(const ae in $){const ie=$[ae];(isRef(ie)||isReactive(ie))&&(oe[ae]=toRef$1($,ae))}return oe}}const store=createPinia();function setupStore($){$.use(store)}const{VITE_HIDE_HOME:VITE_HIDE_HOME$1}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},routerArrays=VITE_HIDE_HOME$1==="false"?[{path:"/welcome",parentPath:"/",meta:{title:"menus.hshome",icon:"homeFilled"}}]:[];var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var oe={},ae=Symbol("test"),ie=Object(ae);if(typeof ae=="string"||Object.prototype.toString.call(ae)!=="[object Symbol]"||Object.prototype.toString.call(ie)!=="[object Symbol]")return!1;var le=42;oe[ae]=le;for(ae in oe)return!1;if(typeof Object.keys=="function"&&Object.keys(oe).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(oe).length!==0)return!1;var pe=Object.getOwnPropertySymbols(oe);if(pe.length!==1||pe[0]!==ae||!Object.prototype.propertyIsEnumerable.call(oe,ae))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var _e=Object.getOwnPropertyDescriptor(oe,ae);if(_e.value!==le||_e.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice$1=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function(oe){var ae=this;if(typeof ae!="function"||toStr$1.call(ae)!==funcType)throw new TypeError(ERROR_MESSAGE+ae);for(var ie=slice$1.call(arguments,1),le,pe=function(){if(this instanceof le){var Ie=ae.apply(this,ie.concat(slice$1.call(arguments)));return Object(Ie)===Ie?Ie:this}else return ae.apply(oe,ie.concat(slice$1.call(arguments)))},_e=Math.max(0,ae.length-ie.length),Ce=[],$e=0;$e<_e;$e++)Ce.push("$"+$e);if(le=Function("binder","return function ("+Ce.join(",")+"){ return binder.apply(this,arguments); }")(pe),ae.prototype){var xe=function(){};xe.prototype=ae.prototype,le.prototype=new xe,xe.prototype=null}return le},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,bind$3=functionBind,src=bind$3.call(Function.call,Object.prototype.hasOwnProperty),undefined$1,$SyntaxError=SyntaxError,$Function=Function,$TypeError$1=TypeError,getEvalledConstructor=function($){try{return $Function('"use strict"; return ('+$+").constructor;")()}catch{}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch{$gOPD=null}var throwTypeError=function(){throw new $TypeError$1},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),getProto=Object.getPrototypeOf||function($){return $.__proto__},needsEval={},TypedArray=typeof Uint8Array>"u"?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};try{null.error}catch($){var errorProto=getProto(getProto($));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function $(oe){var ae;if(oe==="%AsyncFunction%")ae=getEvalledConstructor("async function () {}");else if(oe==="%GeneratorFunction%")ae=getEvalledConstructor("function* () {}");else if(oe==="%AsyncGeneratorFunction%")ae=getEvalledConstructor("async function* () {}");else if(oe==="%AsyncGenerator%"){var ie=$("%AsyncGeneratorFunction%");ie&&(ae=ie.prototype)}else if(oe==="%AsyncIteratorPrototype%"){var le=$("%AsyncGenerator%");le&&(ae=getProto(le.prototype))}return INTRINSICS[oe]=ae,ae},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$2=functionBind,hasOwn$2=src,$concat$1=bind$2.call(Function.call,Array.prototype.concat),$spliceApply=bind$2.call(Function.apply,Array.prototype.splice),$replace$1=bind$2.call(Function.call,String.prototype.replace),$strSlice=bind$2.call(Function.call,String.prototype.slice),$exec=bind$2.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(oe){var ae=$strSlice(oe,0,1),ie=$strSlice(oe,-1);if(ae==="%"&&ie!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(ie==="%"&&ae!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var le=[];return $replace$1(oe,rePropName,function(pe,_e,Ce,$e){le[le.length]=Ce?$replace$1($e,reEscapeChar,"$1"):_e||pe}),le},getBaseIntrinsic=function(oe,ae){var ie=oe,le;if(hasOwn$2(LEGACY_ALIASES,ie)&&(le=LEGACY_ALIASES[ie],ie="%"+le[0]+"%"),hasOwn$2(INTRINSICS,ie)){var pe=INTRINSICS[ie];if(pe===needsEval&&(pe=doEval(ie)),typeof pe>"u"&&!ae)throw new $TypeError$1("intrinsic "+oe+" exists, but is not available. Please file an issue!");return{alias:le,name:ie,value:pe}}throw new $SyntaxError("intrinsic "+oe+" does not exist!")},getIntrinsic=function(oe,ae){if(typeof oe!="string"||oe.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ae!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,oe)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ie=stringToPath(oe),le=ie.length>0?ie[0]:"",pe=getBaseIntrinsic("%"+le+"%",ae),_e=pe.name,Ce=pe.value,$e=!1,xe=pe.alias;xe&&(le=xe[0],$spliceApply(ie,$concat$1([0,1],xe)));for(var Ie=1,Ne=!0;Ie=ie.length){var Lt=$gOPD(Ce,Fe);Ne=!!Lt,Ne&&"get"in Lt&&!("originalValue"in Lt.get)?Ce=Lt.get:Ce=Ce[Fe]}else Ne=hasOwn$2(Ce,Fe),Ce=Ce[Fe];Ne&&!$e&&(INTRINSICS[_e]=Ce)}}return Ce},callBind$1={exports:{}};(function($){var oe=functionBind,ae=getIntrinsic,ie=ae("%Function.prototype.apply%"),le=ae("%Function.prototype.call%"),pe=ae("%Reflect.apply%",!0)||oe.call(le,ie),_e=ae("%Object.getOwnPropertyDescriptor%",!0),Ce=ae("%Object.defineProperty%",!0),$e=ae("%Math.max%");if(Ce)try{Ce({},"a",{value:1})}catch{Ce=null}$.exports=function(Ne){var Fe=pe(oe,le,arguments);if(_e&&Ce){var ze=_e(Fe,"length");ze.configurable&&Ce(Fe,"length",{value:1+$e(0,Ne.length-(arguments.length-1))})}return Fe};var xe=function(){return pe(oe,ie,arguments)};Ce?Ce($.exports,"apply",{value:xe}):$.exports.apply=xe})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(oe,ae){var ie=GetIntrinsic$1(oe,!!ae);return typeof ie=="function"&&$indexOf(oe,".prototype.")>-1?callBind(ie):ie};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function($){return $.__proto__}:null);function addNumericSeparator($,oe){if($===1/0||$===-1/0||$!==$||$&&$>-1e3&&$<1e3||$test.call(/e/,oe))return oe;var ae=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof $=="number"){var ie=$<0?-$floor(-$):$floor($);if(ie!==$){var le=String(ie),pe=$slice.call(oe,le.length+1);return $replace.call(le,ae,"$&_")+"."+$replace.call($replace.call(pe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(oe,ae,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function $(oe,ae,ie,le){var pe=ae||{};if(has$4(pe,"quoteStyle")&&pe.quoteStyle!=="single"&&pe.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$4(pe,"maxStringLength")&&(typeof pe.maxStringLength=="number"?pe.maxStringLength<0&&pe.maxStringLength!==1/0:pe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _e=has$4(pe,"customInspect")?pe.customInspect:!0;if(typeof _e!="boolean"&&_e!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$4(pe,"indent")&&pe.indent!==null&&pe.indent!==" "&&!(parseInt(pe.indent,10)===pe.indent&&pe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$4(pe,"numericSeparator")&&typeof pe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ce=pe.numericSeparator;if(typeof oe>"u")return"undefined";if(oe===null)return"null";if(typeof oe=="boolean")return oe?"true":"false";if(typeof oe=="string")return inspectString(oe,pe);if(typeof oe=="number"){if(oe===0)return 1/0/oe>0?"0":"-0";var $e=String(oe);return Ce?addNumericSeparator(oe,$e):$e}if(typeof oe=="bigint"){var xe=String(oe)+"n";return Ce?addNumericSeparator(oe,xe):xe}var Ie=typeof pe.depth>"u"?5:pe.depth;if(typeof ie>"u"&&(ie=0),ie>=Ie&&Ie>0&&typeof oe=="object")return isArray$7(oe)?"[Array]":"[Object]";var Ne=getIndent(pe,ie);if(typeof le>"u")le=[];else if(indexOf$1(le,oe)>=0)return"[Circular]";function Fe(Nn,Rn,zn){if(Rn&&(le=$arrSlice.call(le),le.push(Rn)),zn){var Bn={depth:pe.depth};return has$4(pe,"quoteStyle")&&(Bn.quoteStyle=pe.quoteStyle),$(Nn,Bn,ie+1,le)}return $(Nn,pe,ie+1,le)}if(typeof oe=="function"&&!isRegExp$2(oe)){var ze=nameOf(oe),At=arrObjKeys(oe,Fe);return"[Function"+(ze?": "+ze:" (anonymous)")+"]"+(At.length>0?" { "+$join.call(At,", ")+" }":"")}if(isSymbol(oe)){var Lt=hasShammedSymbols?$replace.call(String(oe),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(oe);return typeof oe=="object"&&!hasShammedSymbols?markBoxed(Lt):Lt}if(isElement$1(oe)){for(var hn="<"+$toLowerCase.call(String(oe.nodeName)),vn=oe.attributes||[],_n=0;_n",hn}if(isArray$7(oe)){if(oe.length===0)return"[]";var bn=arrObjKeys(oe,Fe);return Ne&&!singleLineValues(bn)?"["+indentedJoin(bn,Ne)+"]":"[ "+$join.call(bn,", ")+" ]"}if(isError(oe)){var Cn=arrObjKeys(oe,Fe);return!("cause"in Error.prototype)&&"cause"in oe&&!isEnumerable.call(oe,"cause")?"{ ["+String(oe)+"] "+$join.call($concat.call("[cause]: "+Fe(oe.cause),Cn),", ")+" }":Cn.length===0?"["+String(oe)+"]":"{ ["+String(oe)+"] "+$join.call(Cn,", ")+" }"}if(typeof oe=="object"&&_e){if(inspectSymbol&&typeof oe[inspectSymbol]=="function"&&utilInspect)return utilInspect(oe,{depth:Ie-ie});if(_e!=="symbol"&&typeof oe.inspect=="function")return oe.inspect()}if(isMap(oe)){var En=[];return mapForEach&&mapForEach.call(oe,function(Nn,Rn){En.push(Fe(Rn,oe,!0)+" => "+Fe(Nn,oe))}),collectionOf("Map",mapSize.call(oe),En,Ne)}if(isSet(oe)){var $n=[];return setForEach&&setForEach.call(oe,function(Nn){$n.push(Fe(Nn,oe))}),collectionOf("Set",setSize.call(oe),$n,Ne)}if(isWeakMap(oe))return weakCollectionOf("WeakMap");if(isWeakSet(oe))return weakCollectionOf("WeakSet");if(isWeakRef(oe))return weakCollectionOf("WeakRef");if(isNumber$2(oe))return markBoxed(Fe(Number(oe)));if(isBigInt(oe))return markBoxed(Fe(bigIntValueOf.call(oe)));if(isBoolean(oe))return markBoxed(booleanValueOf.call(oe));if(isString$3(oe))return markBoxed(Fe(String(oe)));if(!isDate(oe)&&!isRegExp$2(oe)){var wn=arrObjKeys(oe,Fe),Tn=gPO?gPO(oe)===Object.prototype:oe instanceof Object||oe.constructor===Object,xn=oe instanceof Object?"":"null prototype",kn=!Tn&&toStringTag&&Object(oe)===oe&&toStringTag in oe?$slice.call(toStr(oe),8,-1):xn?"Object":"",An=Tn||typeof oe.constructor!="function"?"":oe.constructor.name?oe.constructor.name+" ":"",On=An+(kn||xn?"["+$join.call($concat.call([],kn||[],xn||[]),": ")+"] ":"");return wn.length===0?On+"{}":Ne?On+"{"+indentedJoin(wn,Ne)+"}":On+"{ "+$join.call(wn,", ")+" }"}return String(oe)};function wrapQuotes($,oe,ae){var ie=(ae.quoteStyle||oe)==="double"?'"':"'";return ie+$+ie}function quote($){return $replace.call(String($),/"/g,""")}function isArray$7($){return toStr($)==="[object Array]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isDate($){return toStr($)==="[object Date]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isRegExp$2($){return toStr($)==="[object RegExp]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isError($){return toStr($)==="[object Error]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isString$3($){return toStr($)==="[object String]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isNumber$2($){return toStr($)==="[object Number]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isBoolean($){return toStr($)==="[object Boolean]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isSymbol($){if(hasShammedSymbols)return $&&typeof $=="object"&&$ instanceof Symbol;if(typeof $=="symbol")return!0;if(!$||typeof $!="object"||!symToString)return!1;try{return symToString.call($),!0}catch{}return!1}function isBigInt($){if(!$||typeof $!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call($),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function($){return $ in this};function has$4($,oe){return hasOwn$1.call($,oe)}function toStr($){return objectToString.call($)}function nameOf($){if($.name)return $.name;var oe=$match.call(functionToString.call($),/^function\s*([\w$]+)/);return oe?oe[1]:null}function indexOf$1($,oe){if($.indexOf)return $.indexOf(oe);for(var ae=0,ie=$.length;aeoe.maxStringLength){var ae=$.length-oe.maxStringLength,ie="... "+ae+" more character"+(ae>1?"s":"");return inspectString($slice.call($,0,oe.maxStringLength),oe)+ie}var le=$replace.call($replace.call($,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(le,"single",oe)}function lowbyte($){var oe=$.charCodeAt(0),ae={8:"b",9:"t",10:"n",12:"f",13:"r"}[oe];return ae?"\\"+ae:"\\x"+(oe<16?"0":"")+$toUpperCase.call(oe.toString(16))}function markBoxed($){return"Object("+$+")"}function weakCollectionOf($){return $+" { ? }"}function collectionOf($,oe,ae,ie){var le=ie?indentedJoin(ae,ie):$join.call(ae,", ");return $+" ("+oe+") {"+le+"}"}function singleLineValues($){for(var oe=0;oe<$.length;oe++)if(indexOf$1($[oe],` +`)>=0)return!1;return!0}function getIndent($,oe){var ae;if($.indent===" ")ae=" ";else if(typeof $.indent=="number"&&$.indent>0)ae=$join.call(Array($.indent+1)," ");else return null;return{base:ae,prev:$join.call(Array(oe+1),ae)}}function indentedJoin($,oe){if($.length===0)return"";var ae=` +`+oe.prev+oe.base;return ae+$join.call($,","+ae)+` +`+oe.prev}function arrObjKeys($,oe){var ae=isArray$7($),ie=[];if(ae){ie.length=$.length;for(var le=0;le<$.length;le++)ie[le]=has$4($,le)?oe($[le],$):""}var pe=typeof gOPS=="function"?gOPS($):[],_e;if(hasShammedSymbols){_e={};for(var Ce=0;Ce1;){var ae=oe.pop(),ie=ae.obj[ae.prop];if(isArray$6(ie)){for(var le=[],pe=0;pe=48&&xe<=57||xe>=65&&xe<=90||xe>=97&&xe<=122||pe===formats$2.RFC1738&&(xe===40||xe===41)){Ce+=_e.charAt($e);continue}if(xe<128){Ce=Ce+hexTable[xe];continue}if(xe<2048){Ce=Ce+(hexTable[192|xe>>6]+hexTable[128|xe&63]);continue}if(xe<55296||xe>=57344){Ce=Ce+(hexTable[224|xe>>12]+hexTable[128|xe>>6&63]+hexTable[128|xe&63]);continue}$e+=1,xe=65536+((xe&1023)<<10|_e.charCodeAt($e)&1023),Ce+=hexTable[240|xe>>18]+hexTable[128|xe>>12&63]+hexTable[128|xe>>6&63]+hexTable[128|xe&63]}return Ce},compact=function(oe){for(var ae=[{obj:{o:oe},prop:"o"}],ie=[],le=0;le"u"&&(bn=0)}if(typeof $e=="function"?vn=$e(ae,vn):vn instanceof Date?vn=Ne(vn):ie==="comma"&&isArray$5(vn)&&(vn=utils$5.maybeMap(vn,function(Bn){return Bn instanceof Date?Ne(Bn):Bn})),vn===null){if(pe)return Ce&&!At?Ce(ae,defaults$2.encoder,Lt,"key",Fe):ae;vn=""}if(isNonNullishPrimitive(vn)||utils$5.isBuffer(vn)){if(Ce){var $n=At?ae:Ce(ae,defaults$2.encoder,Lt,"key",Fe);return[ze($n)+"="+ze(Ce(vn,defaults$2.encoder,Lt,"value",Fe))]}return[ze(ae)+"="+ze(String(vn))]}var wn=[];if(typeof vn>"u")return wn;var Tn;if(ie==="comma"&&isArray$5(vn))At&&Ce&&(vn=utils$5.maybeMap(vn,Ce)),Tn=[{value:vn.length>0?vn.join(",")||null:void 0}];else if(isArray$5($e))Tn=$e;else{var xn=Object.keys(vn);Tn=xe?xn.sort(xe):xn}for(var kn=le&&isArray$5(vn)&&vn.length===1?ae+"[]":ae,An=0;An"u"?defaults$2.allowDots:!!oe.allowDots,charset:ae,charsetSentinel:typeof oe.charsetSentinel=="boolean"?oe.charsetSentinel:defaults$2.charsetSentinel,delimiter:typeof oe.delimiter>"u"?defaults$2.delimiter:oe.delimiter,encode:typeof oe.encode=="boolean"?oe.encode:defaults$2.encode,encoder:typeof oe.encoder=="function"?oe.encoder:defaults$2.encoder,encodeValuesOnly:typeof oe.encodeValuesOnly=="boolean"?oe.encodeValuesOnly:defaults$2.encodeValuesOnly,filter:pe,format:ie,formatter:le,serializeDate:typeof oe.serializeDate=="function"?oe.serializeDate:defaults$2.serializeDate,skipNulls:typeof oe.skipNulls=="boolean"?oe.skipNulls:defaults$2.skipNulls,sort:typeof oe.sort=="function"?oe.sort:null,strictNullHandling:typeof oe.strictNullHandling=="boolean"?oe.strictNullHandling:defaults$2.strictNullHandling}},stringify_1=function($,oe){var ae=$,ie=normalizeStringifyOptions(oe),le,pe;typeof ie.filter=="function"?(pe=ie.filter,ae=pe("",ae)):isArray$5(ie.filter)&&(pe=ie.filter,le=pe);var _e=[];if(typeof ae!="object"||ae===null)return"";var Ce;oe&&oe.arrayFormat in arrayPrefixGenerators?Ce=oe.arrayFormat:oe&&"indices"in oe?Ce=oe.indices?"indices":"repeat":Ce="indices";var $e=arrayPrefixGenerators[Ce];if(oe&&"commaRoundTrip"in oe&&typeof oe.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var xe=$e==="comma"&&oe&&oe.commaRoundTrip;le||(le=Object.keys(ae)),ie.sort&&le.sort(ie.sort);for(var Ie=getSideChannel(),Ne=0;Ne0?At+ze:""},utils$4=utils$6,has$1=Object.prototype.hasOwnProperty,isArray$4=Array.isArray,defaults$1={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$4.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function($){return $.replace(/&#(\d+);/g,function(oe,ae){return String.fromCharCode(parseInt(ae,10))})},parseArrayValue=function($,oe){return $&&typeof $=="string"&&oe.comma&&$.indexOf(",")>-1?$.split(","):$},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(oe,ae){var ie={},le=ae.ignoreQueryPrefix?oe.replace(/^\?/,""):oe,pe=ae.parameterLimit===1/0?void 0:ae.parameterLimit,_e=le.split(ae.delimiter,pe),Ce=-1,$e,xe=ae.charset;if(ae.charsetSentinel)for($e=0;$e<_e.length;++$e)_e[$e].indexOf("utf8=")===0&&(_e[$e]===charsetSentinel?xe="utf-8":_e[$e]===isoSentinel&&(xe="iso-8859-1"),Ce=$e,$e=_e.length);for($e=0;$e<_e.length;++$e)if($e!==Ce){var Ie=_e[$e],Ne=Ie.indexOf("]="),Fe=Ne===-1?Ie.indexOf("="):Ne+1,ze,At;Fe===-1?(ze=ae.decoder(Ie,defaults$1.decoder,xe,"key"),At=ae.strictNullHandling?null:""):(ze=ae.decoder(Ie.slice(0,Fe),defaults$1.decoder,xe,"key"),At=utils$4.maybeMap(parseArrayValue(Ie.slice(Fe+1),ae),function(Lt){return ae.decoder(Lt,defaults$1.decoder,xe,"value")})),At&&ae.interpretNumericEntities&&xe==="iso-8859-1"&&(At=interpretNumericEntities(At)),Ie.indexOf("[]=")>-1&&(At=isArray$4(At)?[At]:At),has$1.call(ie,ze)?ie[ze]=utils$4.combine(ie[ze],At):ie[ze]=At}return ie},parseObject=function($,oe,ae,ie){for(var le=ie?oe:parseArrayValue(oe,ae),pe=$.length-1;pe>=0;--pe){var _e,Ce=$[pe];if(Ce==="[]"&&ae.parseArrays)_e=[].concat(le);else{_e=ae.plainObjects?Object.create(null):{};var $e=Ce.charAt(0)==="["&&Ce.charAt(Ce.length-1)==="]"?Ce.slice(1,-1):Ce,xe=parseInt($e,10);!ae.parseArrays&&$e===""?_e={0:le}:!isNaN(xe)&&Ce!==$e&&String(xe)===$e&&xe>=0&&ae.parseArrays&&xe<=ae.arrayLimit?(_e=[],_e[xe]=le):$e!=="__proto__"&&(_e[$e]=le)}le=_e}return le},parseKeys=function(oe,ae,ie,le){if(oe){var pe=ie.allowDots?oe.replace(/\.([^.[]+)/g,"[$1]"):oe,_e=/(\[[^[\]]*])/,Ce=/(\[[^[\]]*])/g,$e=ie.depth>0&&_e.exec(pe),xe=$e?pe.slice(0,$e.index):pe,Ie=[];if(xe){if(!ie.plainObjects&&has$1.call(Object.prototype,xe)&&!ie.allowPrototypes)return;Ie.push(xe)}for(var Ne=0;ie.depth>0&&($e=Ce.exec(pe))!==null&&Ne"u"?defaults$1.charset:oe.charset;return{allowDots:typeof oe.allowDots>"u"?defaults$1.allowDots:!!oe.allowDots,allowPrototypes:typeof oe.allowPrototypes=="boolean"?oe.allowPrototypes:defaults$1.allowPrototypes,allowSparse:typeof oe.allowSparse=="boolean"?oe.allowSparse:defaults$1.allowSparse,arrayLimit:typeof oe.arrayLimit=="number"?oe.arrayLimit:defaults$1.arrayLimit,charset:ae,charsetSentinel:typeof oe.charsetSentinel=="boolean"?oe.charsetSentinel:defaults$1.charsetSentinel,comma:typeof oe.comma=="boolean"?oe.comma:defaults$1.comma,decoder:typeof oe.decoder=="function"?oe.decoder:defaults$1.decoder,delimiter:typeof oe.delimiter=="string"||utils$4.isRegExp(oe.delimiter)?oe.delimiter:defaults$1.delimiter,depth:typeof oe.depth=="number"||oe.depth===!1?+oe.depth:defaults$1.depth,ignoreQueryPrefix:oe.ignoreQueryPrefix===!0,interpretNumericEntities:typeof oe.interpretNumericEntities=="boolean"?oe.interpretNumericEntities:defaults$1.interpretNumericEntities,parameterLimit:typeof oe.parameterLimit=="number"?oe.parameterLimit:defaults$1.parameterLimit,parseArrays:oe.parseArrays!==!1,plainObjects:typeof oe.plainObjects=="boolean"?oe.plainObjects:defaults$1.plainObjects,strictNullHandling:typeof oe.strictNullHandling=="boolean"?oe.strictNullHandling:defaults$1.strictNullHandling}},parse$4=function($,oe){var ae=normalizeParseOptions(oe);if($===""||$===null||typeof $>"u")return ae.plainObjects?Object.create(null):{};for(var ie=typeof $=="string"?parseValues($,ae):$,le=ae.plainObjects?Object.create(null):{},pe=Object.keys(ie),_e=0;_e
'};ae.configure=function(At){var Lt,hn;for(Lt in At)hn=At[Lt],hn!==void 0&&At.hasOwnProperty(Lt)&&(ie[Lt]=hn);return this},ae.status=null,ae.set=function(At){var Lt=ae.isStarted();At=le(At,ie.minimum,1),ae.status=At===1?null:At;var hn=ae.render(!Lt),vn=hn.querySelector(ie.barSelector),_n=ie.speed,bn=ie.easing;return hn.offsetWidth,Ce(function(Cn){ie.positionUsing===""&&(ie.positionUsing=ae.getPositioningCSS()),$e(vn,_e(At,_n,bn)),At===1?($e(hn,{transition:"none",opacity:1}),hn.offsetWidth,setTimeout(function(){$e(hn,{transition:"all "+_n+"ms linear",opacity:0}),setTimeout(function(){ae.remove(),Cn()},_n)},_n)):setTimeout(Cn,_n)}),this},ae.isStarted=function(){return typeof ae.status=="number"},ae.start=function(){ae.status||ae.set(0);var At=function(){setTimeout(function(){ae.status&&(ae.trickle(),At())},ie.trickleSpeed)};return ie.trickle&&At(),this},ae.done=function(At){return!At&&!ae.status?this:ae.inc(.3+.5*Math.random()).set(1)},ae.inc=function(At){var Lt=ae.status;return Lt?(typeof At!="number"&&(At=(1-Lt)*le(Math.random()*Lt,.1,.95)),Lt=le(Lt+At,0,.994),ae.set(Lt)):ae.start()},ae.trickle=function(){return ae.inc(Math.random()*ie.trickleRate)},function(){var At=0,Lt=0;ae.promise=function(hn){return!hn||hn.state()==="resolved"?this:(Lt===0&&ae.start(),At++,Lt++,hn.always(function(){Lt--,Lt===0?(At=0,ae.done()):ae.set((At-Lt)/At)}),this)}}(),ae.render=function(At){if(ae.isRendered())return document.getElementById("nprogress");Ie(document.documentElement,"nprogress-busy");var Lt=document.createElement("div");Lt.id="nprogress",Lt.innerHTML=ie.template;var hn=Lt.querySelector(ie.barSelector),vn=At?"-100":pe(ae.status||0),_n=document.querySelector(ie.parent),bn;return $e(hn,{transition:"all 0 linear",transform:"translate3d("+vn+"%,0,0)"}),ie.showSpinner||(bn=Lt.querySelector(ie.spinnerSelector),bn&&ze(bn)),_n!=document.body&&Ie(_n,"nprogress-custom-parent"),_n.appendChild(Lt),Lt},ae.remove=function(){Ne(document.documentElement,"nprogress-busy"),Ne(document.querySelector(ie.parent),"nprogress-custom-parent");var At=document.getElementById("nprogress");At&&ze(At)},ae.isRendered=function(){return!!document.getElementById("nprogress")},ae.getPositioningCSS=function(){var At=document.body.style,Lt="WebkitTransform"in At?"Webkit":"MozTransform"in At?"Moz":"msTransform"in At?"ms":"OTransform"in At?"O":"";return Lt+"Perspective"in At?"translate3d":Lt+"Transform"in At?"translate":"margin"};function le(At,Lt,hn){return Athn?hn:At}function pe(At){return(-1+At)*100}function _e(At,Lt,hn){var vn;return ie.positionUsing==="translate3d"?vn={transform:"translate3d("+pe(At)+"%,0,0)"}:ie.positionUsing==="translate"?vn={transform:"translate("+pe(At)+"%,0)"}:vn={"margin-left":pe(At)+"%"},vn.transition="all "+Lt+"ms "+hn,vn}var Ce=function(){var At=[];function Lt(){var hn=At.shift();hn&&hn(Lt)}return function(hn){At.push(hn),At.length==1&&Lt()}}(),$e=function(){var At=["Webkit","O","Moz","ms"],Lt={};function hn(Cn){return Cn.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(En,$n){return $n.toUpperCase()})}function vn(Cn){var En=document.body.style;if(Cn in En)return Cn;for(var $n=At.length,wn=Cn.charAt(0).toUpperCase()+Cn.slice(1),Tn;$n--;)if(Tn=At[$n]+wn,Tn in En)return Tn;return Cn}function _n(Cn){return Cn=hn(Cn),Lt[Cn]||(Lt[Cn]=vn(Cn))}function bn(Cn,En,$n){En=_n(En),Cn.style[En]=$n}return function(Cn,En){var $n=arguments,wn,Tn;if($n.length==2)for(wn in En)Tn=En[wn],Tn!==void 0&&En.hasOwnProperty(wn)&&bn(Cn,wn,Tn);else bn(Cn,$n[1],$n[2])}}();function xe(At,Lt){var hn=typeof At=="string"?At:Fe(At);return hn.indexOf(" "+Lt+" ")>=0}function Ie(At,Lt){var hn=Fe(At),vn=hn+Lt;xe(hn,Lt)||(At.className=vn.substring(1))}function Ne(At,Lt){var hn=Fe(At),vn;xe(At,Lt)&&(vn=hn.replace(" "+Lt+" "," "),At.className=vn.substring(1,vn.length-1))}function Fe(At){return(" "+(At.className||"")+" ").replace(/\s+/gi," ")}function ze(At){At&&At.parentNode&&At.parentNode.removeChild(At)}return ae})})(nprogress$1);var nprogressExports=nprogress$1.exports;const NProgress=getDefaultExportFromCjs(nprogressExports),nprogress="";NProgress.configure({easing:"ease",speed:500,showSpinner:!1,trickleSpeed:200,minimum:.3});const defaultConfig$1={timeout:1e4,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},paramsSerializer:{serialize:lib.stringify}},to=class{constructor(){this.httpInterceptorsRequest(),this.httpInterceptorsResponse()}static retryOriginalRequest(oe){return new Promise(ae=>{to.requests.push(ie=>{oe.headers.Authorization=formatToken(ie),ae(oe)})})}httpInterceptorsRequest(){to.axiosInstance.interceptors.request.use(async oe=>(NProgress.start(),typeof oe.beforeRequestCallback=="function"?(oe.beforeRequestCallback(oe),oe):to.initConfig.beforeRequestCallback?(to.initConfig.beforeRequestCallback(oe),oe):["/refreshToken","/login"].some(ie=>oe.url.indexOf(ie)>-1)?oe:new Promise(ie=>{const le=getToken();if(le){const pe=new Date().getTime();parseInt(le.expires)-pe<=0?(to.isRefreshing||(to.isRefreshing=!0,useUserStoreHook().handRefreshToken({refreshToken:le.refreshToken}).then(Ce=>{const $e=Ce.data.accessToken;oe.headers.Authorization=formatToken($e),to.requests.forEach(xe=>xe($e)),to.requests=[]}).finally(()=>{to.isRefreshing=!1})),ie(to.retryOriginalRequest(oe))):(oe.headers.Authorization=formatToken(le.accessToken),ie(oe))}else ie(oe)})),oe=>Promise.reject(oe))}httpInterceptorsResponse(){to.axiosInstance.interceptors.response.use(ae=>{const ie=ae.config;return NProgress.done(),typeof ie.beforeResponseCallback=="function"?(ie.beforeResponseCallback(ae),ae.data):(to.initConfig.beforeResponseCallback&&to.initConfig.beforeResponseCallback(ae),ae.data)},ae=>{const ie=ae;return ie.isCancelRequest=axios$1.isCancel(ie),NProgress.done(),Promise.reject(ie)})}request(oe,ae,ie,le){const pe={method:oe,url:ae,...ie,...le};return new Promise((_e,Ce)=>{to.axiosInstance.request(pe).then($e=>{_e($e)}).catch($e=>{Ce($e)})})}post(oe,ae,ie){return this.request("post",oe,ae,ie)}get(oe,ae,ie){return this.request("get",oe,ae,ie)}};let PureHttp=to;ao(PureHttp,"requests",[]),ao(PureHttp,"isRefreshing",!1),ao(PureHttp,"initConfig",{}),ao(PureHttp,"axiosInstance",axios$1.create(defaultConfig$1));const http=new PureHttp,getLogin=$=>http.request("post","/login",{data:$}),refreshTokenApi=$=>http.request("post","/refreshToken",{data:$}),useMultiTagsStore=defineStore({id:"pure-multiTags",state:()=>{var $,oe;return{multiTags:($=Kn().getItem(`${responsiveStorageNameSpace()}configure`))!=null&&$.multiTagsCache?Kn().getItem(`${responsiveStorageNameSpace()}tags`):[...routerArrays],multiTagsCache:(oe=Kn().getItem(`${responsiveStorageNameSpace()}configure`))==null?void 0:oe.multiTagsCache}},getters:{getMultiTagsCache($){return $.multiTagsCache}},actions:{multiTagsCacheChange($){this.multiTagsCache=$,$?Kn().setItem(`${responsiveStorageNameSpace()}tags`,this.multiTags):Kn().removeItem(`${responsiveStorageNameSpace()}tags`)},tagsCache($){this.getMultiTagsCache&&Kn().setItem(`${responsiveStorageNameSpace()}tags`,$)},handleTags($,oe,ae){var ie,le,pe,_e,Ce;switch($){case"equal":this.multiTags=oe,this.tagsCache(this.multiTags);break;case"push":{const $e=oe;if((ie=$e==null?void 0:$e.meta)!=null&&ie.hiddenTag||dt($e==null?void 0:$e.name)||((le=$e==null?void 0:$e.meta)==null?void 0:le.title.length)===0||Ae((pe=$e==null?void 0:$e.meta)==null?void 0:pe.showLink)&&!((_e=$e==null?void 0:$e.meta)!=null&&_e.showLink))return;const xe=$e.path,Ie=this.multiTags.some(At=>At.path===xe),Ne=this.multiTags.some(At=>Mt(At==null?void 0:At.query,$e==null?void 0:$e.query)),Fe=this.multiTags.some(At=>Mt(At==null?void 0:At.params,$e==null?void 0:$e.params));if(Ie&&Ne&&Fe)return;const ze=((Ce=$e==null?void 0:$e.meta)==null?void 0:Ce.dynamicLevel)??-1;if(ze>0&&this.multiTags.filter(At=>(At==null?void 0:At.path)===xe).length>=ze){const At=this.multiTags.findIndex(Lt=>(Lt==null?void 0:Lt.path)===xe);At!==-1&&this.multiTags.splice(At,1)}this.multiTags.push(oe),this.tagsCache(this.multiTags)}break;case"splice":if(ae)this.multiTags.splice(ae==null?void 0:ae.startIndex,ae==null?void 0:ae.length);else{const $e=this.multiTags.findIndex(xe=>xe.path===oe);if($e===-1)return;this.multiTags.splice($e,1)}return this.tagsCache(this.multiTags),this.multiTags;case"slice":return this.multiTags.slice(-1)}}}});function useMultiTagsStoreHook(){return useMultiTagsStore(store)}const useUserStore=defineStore({id:"pure-user",state:()=>{var $,oe;return{username:(($=Qn().getItem(sessionKey))==null?void 0:$.username)??"",roles:((oe=Qn().getItem(sessionKey))==null?void 0:oe.roles)??[],verifyCode:"",currentPage:0}},actions:{SET_USERNAME($){this.username=$},SET_ROLES($){this.roles=$},SET_VERIFYCODE($){this.verifyCode=$},SET_CURRENTPAGE($){this.currentPage=$},async loginByUsername($){return new Promise((oe,ae)=>{getLogin($).then(ie=>{ie&&(setToken(ie.data),oe(ie))}).catch(ie=>{ae(ie)})})},logOut(){this.username="",this.roles=[],removeToken(),useMultiTagsStoreHook().handleTags("equal",[...routerArrays]),resetRouter(),router.push("/login")},async handRefreshToken($){return new Promise((oe,ae)=>{refreshTokenApi($).then(ie=>{ie&&(setToken(ie.data),oe(ie))}).catch(ie=>{ae(ie)})})}}});function useUserStoreHook(){return useUserStore(store)}const sessionKey="user-info",TokenKey="authorized-token";function getToken(){return api.get(TokenKey)?JSON.parse(api.get(TokenKey)):Qn().getItem(sessionKey)}function setToken($){var _e,Ce;let oe=0;const{accessToken:ae,refreshToken:ie}=$;oe=new Date($.expires).getTime();const le=JSON.stringify({accessToken:ae,expires:oe});oe>0?api.set(TokenKey,le,{expires:(oe-Date.now())/864e5}):api.set(TokenKey,le);function pe($e,xe){useUserStoreHook().SET_USERNAME($e),useUserStoreHook().SET_ROLES(xe),Qn().setItem(sessionKey,{refreshToken:ie,expires:oe,username:$e,roles:xe})}if($.username&&$.roles){const{username:$e,roles:xe}=$;pe($e,xe)}else{const $e=((_e=Qn().getItem(sessionKey))==null?void 0:_e.username)??"",xe=((Ce=Qn().getItem(sessionKey))==null?void 0:Ce.roles)??[];pe($e,xe)}}function removeToken(){api.remove(TokenKey),sessionStorage.clear()}const formatToken=$=>"Bearer "+$;(function(){const $=fr(location.href),oe=["username","roles","accessToken"],ae=oe.length;if(Object.keys($).length!==ae)return;let ie=[],le=0;for(;le{},isArray$3=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=$=>$.replace(TRAILING_SLASH_RE,"");function parseURL($,oe,ae="/"){let ie,le={},pe="",_e="";const Ce=oe.indexOf("#");let $e=oe.indexOf("?");return Ce<$e&&Ce>=0&&($e=-1),$e>-1&&(ie=oe.slice(0,$e),pe=oe.slice($e+1,Ce>-1?Ce:oe.length),le=$(pe)),Ce>-1&&(ie=ie||oe.slice(0,Ce),_e=oe.slice(Ce,oe.length)),ie=resolveRelativePath(ie??oe,ae),{fullPath:ie+(pe&&"?")+pe+_e,path:ie,query:le,hash:_e}}function stringifyURL($,oe){const ae=oe.query?$(oe.query):"";return oe.path+(ae&&"?")+ae+(oe.hash||"")}function stripBase($,oe){return!oe||!$.toLowerCase().startsWith(oe.toLowerCase())?$:$.slice(oe.length)||"/"}function isSameRouteLocation($,oe,ae){const ie=oe.matched.length-1,le=ae.matched.length-1;return ie>-1&&ie===le&&isSameRouteRecord(oe.matched[ie],ae.matched[le])&&isSameRouteLocationParams(oe.params,ae.params)&&$(oe.query)===$(ae.query)&&oe.hash===ae.hash}function isSameRouteRecord($,oe){return($.aliasOf||$)===(oe.aliasOf||oe)}function isSameRouteLocationParams($,oe){if(Object.keys($).length!==Object.keys(oe).length)return!1;for(const ae in $)if(!isSameRouteLocationParamsValue($[ae],oe[ae]))return!1;return!0}function isSameRouteLocationParamsValue($,oe){return isArray$3($)?isEquivalentArray($,oe):isArray$3(oe)?isEquivalentArray(oe,$):$===oe}function isEquivalentArray($,oe){return isArray$3(oe)?$.length===oe.length&&$.every((ae,ie)=>ae===oe[ie]):$.length===1&&$[0]===oe}function resolveRelativePath($,oe){if($.startsWith("/"))return $;if(!$)return oe;const ae=oe.split("/"),ie=$.split("/");let le=ae.length-1,pe,_e;for(pe=0;pe1&&le--;else break;return ae.slice(0,le).join("/")+"/"+ie.slice(pe-(pe===ie.length?1:0)).join("/")}var NavigationType;(function($){$.pop="pop",$.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function($){$.back="back",$.forward="forward",$.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase($){if(!$)if(isBrowser$1){const oe=document.querySelector("base");$=oe&&oe.getAttribute("href")||"/",$=$.replace(/^\w+:\/\/[^\/]+/,"")}else $="/";return $[0]!=="/"&&$[0]!=="#"&&($="/"+$),removeTrailingSlash($)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref($,oe){return $.replace(BEFORE_HASH_RE,"#")+oe}function getElementPosition($,oe){const ae=document.documentElement.getBoundingClientRect(),ie=$.getBoundingClientRect();return{behavior:oe.behavior,left:ie.left-ae.left-(oe.left||0),top:ie.top-ae.top-(oe.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition($){let oe;if("el"in $){const ae=$.el,ie=typeof ae=="string"&&ae.startsWith("#"),le=typeof ae=="string"?ie?document.getElementById(ae.slice(1)):document.querySelector(ae):ae;if(!le)return;oe=getElementPosition(le,$)}else oe=$;"scrollBehavior"in document.documentElement.style?window.scrollTo(oe):window.scrollTo(oe.left!=null?oe.left:window.pageXOffset,oe.top!=null?oe.top:window.pageYOffset)}function getScrollKey($,oe){return(history.state?history.state.position-oe:-1)+$}const scrollPositions=new Map;function saveScrollPosition($,oe){scrollPositions.set($,oe)}function getSavedScrollPosition($){const oe=scrollPositions.get($);return scrollPositions.delete($),oe}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation($,oe){const{pathname:ae,search:ie,hash:le}=oe,pe=$.indexOf("#");if(pe>-1){let Ce=le.includes($.slice(pe))?$.slice(pe).length:1,$e=le.slice(Ce);return $e[0]!=="/"&&($e="/"+$e),stripBase($e,"")}return stripBase(ae,$)+ie+le}function useHistoryListeners($,oe,ae,ie){let le=[],pe=[],_e=null;const Ce=({state:Fe})=>{const ze=createCurrentLocation($,location),At=ae.value,Lt=oe.value;let hn=0;if(Fe){if(ae.value=ze,oe.value=Fe,_e&&_e===At){_e=null;return}hn=Lt?Fe.position-Lt.position:0}else ie(ze);le.forEach(vn=>{vn(ae.value,At,{delta:hn,type:NavigationType.pop,direction:hn?hn>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function $e(){_e=ae.value}function xe(Fe){le.push(Fe);const ze=()=>{const At=le.indexOf(Fe);At>-1&&le.splice(At,1)};return pe.push(ze),ze}function Ie(){const{history:Fe}=window;Fe.state&&Fe.replaceState(assign({},Fe.state,{scroll:computeScrollPosition()}),"")}function Ne(){for(const Fe of pe)Fe();pe=[],window.removeEventListener("popstate",Ce),window.removeEventListener("beforeunload",Ie)}return window.addEventListener("popstate",Ce),window.addEventListener("beforeunload",Ie),{pauseListeners:$e,listen:xe,destroy:Ne}}function buildState($,oe,ae,ie=!1,le=!1){return{back:$,current:oe,forward:ae,replaced:ie,position:window.history.length,scroll:le?computeScrollPosition():null}}function useHistoryStateNavigation($){const{history:oe,location:ae}=window,ie={value:createCurrentLocation($,ae)},le={value:oe.state};le.value||pe(ie.value,{back:null,current:ie.value,forward:null,position:oe.length-1,replaced:!0,scroll:null},!0);function pe($e,xe,Ie){const Ne=$.indexOf("#"),Fe=Ne>-1?(ae.host&&document.querySelector("base")?$:$.slice(Ne))+$e:createBaseLocation()+$+$e;try{oe[Ie?"replaceState":"pushState"](xe,"",Fe),le.value=xe}catch(ze){console.error(ze),ae[Ie?"replace":"assign"](Fe)}}function _e($e,xe){const Ie=assign({},oe.state,buildState(le.value.back,$e,le.value.forward,!0),xe,{position:le.value.position});pe($e,Ie,!0),ie.value=$e}function Ce($e,xe){const Ie=assign({},le.value,oe.state,{forward:$e,scroll:computeScrollPosition()});pe(Ie.current,Ie,!0);const Ne=assign({},buildState(ie.value,$e,null),{position:Ie.position+1},xe);pe($e,Ne,!1),ie.value=$e}return{location:ie,state:le,push:Ce,replace:_e}}function createWebHistory($){$=normalizeBase($);const oe=useHistoryStateNavigation($),ae=useHistoryListeners($,oe.state,oe.location,oe.replace);function ie(pe,_e=!0){_e||ae.pauseListeners(),history.go(pe)}const le=assign({location:"",base:$,go:ie,createHref:createHref.bind(null,$)},oe,ae);return Object.defineProperty(le,"location",{enumerable:!0,get:()=>oe.location.value}),Object.defineProperty(le,"state",{enumerable:!0,get:()=>oe.state.value}),le}function createWebHashHistory($){return $=location.host?$||location.pathname+location.search:"",$.includes("#")||($+="#"),createWebHistory($)}function isRouteLocation($){return typeof $=="string"||$&&typeof $=="object"}function isRouteName($){return typeof $=="string"||typeof $=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function($){$[$.aborted=4]="aborted",$[$.cancelled=8]="cancelled",$[$.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError($,oe){return assign(new Error,{type:$,[NavigationFailureSymbol]:!0},oe)}function isNavigationFailure($,oe){return $ instanceof Error&&NavigationFailureSymbol in $&&(oe==null||!!($.type&oe))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser($,oe){const ae=assign({},BASE_PATH_PARSER_OPTIONS,oe),ie=[];let le=ae.start?"^":"";const pe=[];for(const xe of $){const Ie=xe.length?[]:[90];ae.strict&&!xe.length&&(le+="/");for(let Ne=0;Neoe.length?oe.length===1&&oe[0]===40+40?1:-1:0}function comparePathParserScore($,oe){let ae=0;const ie=$.score,le=oe.score;for(;ae0&&oe[oe.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath($){if(!$)return[[]];if($==="/")return[[ROOT_TOKEN]];if(!$.startsWith("/"))throw new Error(`Invalid path "${$}"`);function oe(ze){throw new Error(`ERR (${ae})/"${xe}": ${ze}`)}let ae=0,ie=ae;const le=[];let pe;function _e(){pe&&le.push(pe),pe=[]}let Ce=0,$e,xe="",Ie="";function Ne(){xe&&(ae===0?pe.push({type:0,value:xe}):ae===1||ae===2||ae===3?(pe.length>1&&($e==="*"||$e==="+")&&oe(`A repeatable param (${xe}) must be alone in its segment. eg: '/:ids+.`),pe.push({type:1,value:xe,regexp:Ie,repeatable:$e==="*"||$e==="+",optional:$e==="*"||$e==="?"})):oe("Invalid state to consume buffer"),xe="")}function Fe(){xe+=$e}for(;Ce<$.length;){if($e=$[Ce++],$e==="\\"&&ae!==2){ie=ae,ae=4;continue}switch(ae){case 0:$e==="/"?(xe&&Ne(),_e()):$e===":"?(Ne(),ae=1):Fe();break;case 4:Fe(),ae=ie;break;case 1:$e==="("?ae=2:VALID_PARAM_RE.test($e)?Fe():(Ne(),ae=0,$e!=="*"&&$e!=="?"&&$e!=="+"&&Ce--);break;case 2:$e===")"?Ie[Ie.length-1]=="\\"?Ie=Ie.slice(0,-1)+$e:ae=3:Ie+=$e;break;case 3:Ne(),ae=0,$e!=="*"&&$e!=="?"&&$e!=="+"&&Ce--,Ie="";break;default:oe("Unknown state");break}}return ae===2&&oe(`Unfinished custom RegExp for param "${xe}"`),Ne(),_e(),le}function createRouteRecordMatcher($,oe,ae){const ie=tokensToParser(tokenizePath($.path),ae),le=assign(ie,{record:$,parent:oe,children:[],alias:[]});return oe&&!le.record.aliasOf==!oe.record.aliasOf&&oe.children.push(le),le}function createRouterMatcher($,oe){const ae=[],ie=new Map;oe=mergeOptions({strict:!1,end:!0,sensitive:!1},oe);function le(Ie){return ie.get(Ie)}function pe(Ie,Ne,Fe){const ze=!Fe,At=normalizeRouteRecord(Ie);At.aliasOf=Fe&&Fe.record;const Lt=mergeOptions(oe,Ie),hn=[At];if("alias"in Ie){const bn=typeof Ie.alias=="string"?[Ie.alias]:Ie.alias;for(const Cn of bn)hn.push(assign({},At,{components:Fe?Fe.record.components:At.components,path:Cn,aliasOf:Fe?Fe.record:At}))}let vn,_n;for(const bn of hn){const{path:Cn}=bn;if(Ne&&Cn[0]!=="/"){const En=Ne.record.path,$n=En[En.length-1]==="/"?"":"/";bn.path=Ne.record.path+(Cn&&$n+Cn)}if(vn=createRouteRecordMatcher(bn,Ne,Lt),Fe?Fe.alias.push(vn):(_n=_n||vn,_n!==vn&&_n.alias.push(vn),ze&&Ie.name&&!isAliasRecord(vn)&&_e(Ie.name)),At.children){const En=At.children;for(let $n=0;$n{_e(_n)}:noop$2}function _e(Ie){if(isRouteName(Ie)){const Ne=ie.get(Ie);Ne&&(ie.delete(Ie),ae.splice(ae.indexOf(Ne),1),Ne.children.forEach(_e),Ne.alias.forEach(_e))}else{const Ne=ae.indexOf(Ie);Ne>-1&&(ae.splice(Ne,1),Ie.record.name&&ie.delete(Ie.record.name),Ie.children.forEach(_e),Ie.alias.forEach(_e))}}function Ce(){return ae}function $e(Ie){let Ne=0;for(;Ne=0&&(Ie.record.path!==ae[Ne].record.path||!isRecordChildOf(Ie,ae[Ne]));)Ne++;ae.splice(Ne,0,Ie),Ie.record.name&&!isAliasRecord(Ie)&&ie.set(Ie.record.name,Ie)}function xe(Ie,Ne){let Fe,ze={},At,Lt;if("name"in Ie&&Ie.name){if(Fe=ie.get(Ie.name),!Fe)throw createRouterError(1,{location:Ie});Lt=Fe.record.name,ze=assign(paramsFromLocation(Ne.params,Fe.keys.filter(_n=>!_n.optional).map(_n=>_n.name)),Ie.params&¶msFromLocation(Ie.params,Fe.keys.map(_n=>_n.name))),At=Fe.stringify(ze)}else if("path"in Ie)At=Ie.path,Fe=ae.find(_n=>_n.re.test(At)),Fe&&(ze=Fe.parse(At),Lt=Fe.record.name);else{if(Fe=Ne.name?ie.get(Ne.name):ae.find(_n=>_n.re.test(Ne.path)),!Fe)throw createRouterError(1,{location:Ie,currentLocation:Ne});Lt=Fe.record.name,ze=assign({},Ne.params,Ie.params),At=Fe.stringify(ze)}const hn=[];let vn=Fe;for(;vn;)hn.unshift(vn.record),vn=vn.parent;return{name:Lt,path:At,params:ze,matched:hn,meta:mergeMetaFields(hn)}}return $.forEach(Ie=>pe(Ie)),{addRoute:pe,resolve:xe,removeRoute:_e,getRoutes:Ce,getRecordMatcher:le}}function paramsFromLocation($,oe){const ae={};for(const ie of oe)ie in $&&(ae[ie]=$[ie]);return ae}function normalizeRouteRecord($){return{path:$.path,redirect:$.redirect,name:$.name,meta:$.meta||{},aliasOf:void 0,beforeEnter:$.beforeEnter,props:normalizeRecordProps($),children:$.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in $?$.components||null:$.component&&{default:$.component}}}function normalizeRecordProps($){const oe={},ae=$.props||!1;if("component"in $)oe.default=ae;else for(const ie in $.components)oe[ie]=typeof ae=="boolean"?ae:ae[ie];return oe}function isAliasRecord($){for(;$;){if($.record.aliasOf)return!0;$=$.parent}return!1}function mergeMetaFields($){return $.reduce((oe,ae)=>assign(oe,ae.meta),{})}function mergeOptions($,oe){const ae={};for(const ie in $)ae[ie]=ie in oe?oe[ie]:$[ie];return ae}function isRecordChildOf($,oe){return oe.children.some(ae=>ae===$||isRecordChildOf($,ae))}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode($){return encodeURI(""+$).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash($){return commonEncode($).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue($){return commonEncode($).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey($){return encodeQueryValue($).replace(EQUAL_RE,"%3D")}function encodePath($){return commonEncode($).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam($){return $==null?"":encodePath($).replace(SLASH_RE,"%2F")}function decode$1($){try{return decodeURIComponent(""+$)}catch{}return""+$}function parseQuery($){const oe={};if($===""||$==="?")return oe;const ie=($[0]==="?"?$.slice(1):$).split("&");for(let le=0;lepe&&encodeQueryValue(pe)):[ie&&encodeQueryValue(ie)]).forEach(pe=>{pe!==void 0&&(oe+=(oe.length?"&":"")+ae,pe!=null&&(oe+="="+pe))})}return oe}function normalizeQuery($){const oe={};for(const ae in $){const ie=$[ae];ie!==void 0&&(oe[ae]=isArray$3(ie)?ie.map(le=>le==null?null:""+le):ie==null?ie:""+ie)}return oe}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let $=[];function oe(ie){return $.push(ie),()=>{const le=$.indexOf(ie);le>-1&&$.splice(le,1)}}function ae(){$=[]}return{add:oe,list:()=>$,reset:ae}}function guardToPromiseFn($,oe,ae,ie,le){const pe=ie&&(ie.enterCallbacks[le]=ie.enterCallbacks[le]||[]);return()=>new Promise((_e,Ce)=>{const $e=Ne=>{Ne===!1?Ce(createRouterError(4,{from:ae,to:oe})):Ne instanceof Error?Ce(Ne):isRouteLocation(Ne)?Ce(createRouterError(2,{from:oe,to:Ne})):(pe&&ie.enterCallbacks[le]===pe&&typeof Ne=="function"&&pe.push(Ne),_e())},xe=$.call(ie&&ie.instances[le],oe,ae,$e);let Ie=Promise.resolve(xe);$.length<3&&(Ie=Ie.then($e)),Ie.catch(Ne=>Ce(Ne))})}function extractComponentsGuards($,oe,ae,ie){const le=[];for(const pe of $)for(const _e in pe.components){let Ce=pe.components[_e];if(!(oe!=="beforeRouteEnter"&&!pe.instances[_e]))if(isRouteComponent(Ce)){const xe=(Ce.__vccOpts||Ce)[oe];xe&&le.push(guardToPromiseFn(xe,ae,ie,pe,_e))}else{let $e=Ce();le.push(()=>$e.then(xe=>{if(!xe)return Promise.reject(new Error(`Couldn't resolve component "${_e}" at "${pe.path}"`));const Ie=isESModule(xe)?xe.default:xe;pe.components[_e]=Ie;const Fe=(Ie.__vccOpts||Ie)[oe];return Fe&&guardToPromiseFn(Fe,ae,ie,pe,_e)()}))}}return le}function isRouteComponent($){return typeof $=="object"||"displayName"in $||"props"in $||"__vccOpts"in $}function useLink($){const oe=inject(routerKey),ae=inject(routeLocationKey),ie=computed(()=>oe.resolve(unref($.to))),le=computed(()=>{const{matched:$e}=ie.value,{length:xe}=$e,Ie=$e[xe-1],Ne=ae.matched;if(!Ie||!Ne.length)return-1;const Fe=Ne.findIndex(isSameRouteRecord.bind(null,Ie));if(Fe>-1)return Fe;const ze=getOriginalPath($e[xe-2]);return xe>1&&getOriginalPath(Ie)===ze&&Ne[Ne.length-1].path!==ze?Ne.findIndex(isSameRouteRecord.bind(null,$e[xe-2])):Fe}),pe=computed(()=>le.value>-1&&includesParams(ae.params,ie.value.params)),_e=computed(()=>le.value>-1&&le.value===ae.matched.length-1&&isSameRouteLocationParams(ae.params,ie.value.params));function Ce($e={}){return guardEvent($e)?oe[unref($.replace)?"replace":"push"](unref($.to)).catch(noop$2):Promise.resolve()}return{route:ie,href:computed(()=>ie.value.href),isActive:pe,isExactActive:_e,navigate:Ce}}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup($,{slots:oe}){const ae=reactive(useLink($)),{options:ie}=inject(routerKey),le=computed(()=>({[getLinkClass($.activeClass,ie.linkActiveClass,"router-link-active")]:ae.isActive,[getLinkClass($.exactActiveClass,ie.linkExactActiveClass,"router-link-exact-active")]:ae.isExactActive}));return()=>{const pe=oe.default&&oe.default(ae);return $.custom?pe:h$3("a",{"aria-current":ae.isExactActive?$.ariaCurrentValue:null,href:ae.href,onClick:ae.navigate,class:le.value},pe)}}}),RouterLink=RouterLinkImpl;function guardEvent($){if(!($.metaKey||$.altKey||$.ctrlKey||$.shiftKey)&&!$.defaultPrevented&&!($.button!==void 0&&$.button!==0)){if($.currentTarget&&$.currentTarget.getAttribute){const oe=$.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(oe))return}return $.preventDefault&&$.preventDefault(),!0}}function includesParams($,oe){for(const ae in oe){const ie=oe[ae],le=$[ae];if(typeof ie=="string"){if(ie!==le)return!1}else if(!isArray$3(le)||le.length!==ie.length||ie.some((pe,_e)=>pe!==le[_e]))return!1}return!0}function getOriginalPath($){return $?$.aliasOf?$.aliasOf.path:$.path:""}const getLinkClass=($,oe,ae)=>$??oe??ae,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup($,{attrs:oe,slots:ae}){const ie=inject(routerViewLocationKey),le=computed(()=>$.route||ie.value),pe=inject(viewDepthKey,0),_e=computed(()=>{let xe=unref(pe);const{matched:Ie}=le.value;let Ne;for(;(Ne=Ie[xe])&&!Ne.components;)xe++;return xe}),Ce=computed(()=>le.value.matched[_e.value]);provide(viewDepthKey,computed(()=>_e.value+1)),provide(matchedRouteKey,Ce),provide(routerViewLocationKey,le);const $e=ref();return watch(()=>[$e.value,Ce.value,$.name],([xe,Ie,Ne],[Fe,ze,At])=>{Ie&&(Ie.instances[Ne]=xe,ze&&ze!==Ie&&xe&&xe===Fe&&(Ie.leaveGuards.size||(Ie.leaveGuards=ze.leaveGuards),Ie.updateGuards.size||(Ie.updateGuards=ze.updateGuards))),xe&&Ie&&(!ze||!isSameRouteRecord(Ie,ze)||!Fe)&&(Ie.enterCallbacks[Ne]||[]).forEach(Lt=>Lt(xe))},{flush:"post"}),()=>{const xe=le.value,Ie=$.name,Ne=Ce.value,Fe=Ne&&Ne.components[Ie];if(!Fe)return normalizeSlot(ae.default,{Component:Fe,route:xe});const ze=Ne.props[Ie],At=ze?ze===!0?xe.params:typeof ze=="function"?ze(xe):ze:null,hn=h$3(Fe,assign({},At,oe,{onVnodeUnmounted:vn=>{vn.component.isUnmounted&&(Ne.instances[Ie]=null)},ref:$e}));return normalizeSlot(ae.default,{Component:hn,route:xe})||hn}}});function normalizeSlot($,oe){if(!$)return null;const ae=$(oe);return ae.length===1?ae[0]:ae}const RouterView=RouterViewImpl;function createRouter($){const oe=createRouterMatcher($.routes,$),ae=$.parseQuery||parseQuery,ie=$.stringifyQuery||stringifyQuery,le=$.history,pe=useCallbacks(),_e=useCallbacks(),Ce=useCallbacks(),$e=shallowRef(START_LOCATION_NORMALIZED);let xe=START_LOCATION_NORMALIZED;isBrowser$1&&$.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const Ie=applyToParams.bind(null,nr=>""+nr),Ne=applyToParams.bind(null,encodeParam),Fe=applyToParams.bind(null,decode$1);function ze(nr,er){let rr,qn;return isRouteName(nr)?(rr=oe.getRecordMatcher(nr),qn=er):qn=nr,oe.addRoute(qn,rr)}function At(nr){const er=oe.getRecordMatcher(nr);er&&oe.removeRoute(er)}function Lt(){return oe.getRoutes().map(nr=>nr.record)}function hn(nr){return!!oe.getRecordMatcher(nr)}function vn(nr,er){if(er=assign({},er||$e.value),typeof nr=="string"){const Un=parseURL(ae,nr,er.path),tr=oe.resolve({path:Un.path},er),ur=le.createHref(Un.fullPath);return assign(Un,tr,{params:Fe(tr.params),hash:decode$1(Un.hash),redirectedFrom:void 0,href:ur})}let rr;if("path"in nr)rr=assign({},nr,{path:parseURL(ae,nr.path,er.path).path});else{const Un=assign({},nr.params);for(const tr in Un)Un[tr]==null&&delete Un[tr];rr=assign({},nr,{params:Ne(nr.params)}),er.params=Ne(er.params)}const qn=oe.resolve(rr,er),Yn=nr.hash||"";qn.params=Ie(Fe(qn.params));const ar=stringifyURL(ie,assign({},nr,{hash:encodeHash(Yn),path:qn.path})),pr=le.createHref(ar);return assign({fullPath:ar,hash:Yn,query:ie===stringifyQuery?normalizeQuery(nr.query):nr.query||{}},qn,{redirectedFrom:void 0,href:pr})}function _n(nr){return typeof nr=="string"?parseURL(ae,nr,$e.value.path):assign({},nr)}function bn(nr,er){if(xe!==nr)return createRouterError(8,{from:er,to:nr})}function Cn(nr){return wn(nr)}function En(nr){return Cn(assign(_n(nr),{replace:!0}))}function $n(nr){const er=nr.matched[nr.matched.length-1];if(er&&er.redirect){const{redirect:rr}=er;let qn=typeof rr=="function"?rr(nr):rr;return typeof qn=="string"&&(qn=qn.includes("?")||qn.includes("#")?qn=_n(qn):{path:qn},qn.params={}),assign({query:nr.query,hash:nr.hash,params:"path"in qn?{}:nr.params},qn)}}function wn(nr,er){const rr=xe=vn(nr),qn=$e.value,Yn=nr.state,ar=nr.force,pr=nr.replace===!0,Un=$n(rr);if(Un)return wn(assign(_n(Un),{state:typeof Un=="object"?assign({},Yn,Un.state):Yn,force:ar,replace:pr}),er||rr);const tr=rr;tr.redirectedFrom=er;let ur;return!ar&&isSameRouteLocation(ie,qn,rr)&&(ur=createRouterError(16,{to:tr,from:qn}),jn(qn,qn,!0,!1)),(ur?Promise.resolve(ur):xn(tr,qn)).catch(_r=>isNavigationFailure(_r)?isNavigationFailure(_r,2)?_r:Vn(_r):Mn(_r,tr,qn)).then(_r=>{if(_r){if(isNavigationFailure(_r,2))return wn(assign({replace:pr},_n(_r.to),{state:typeof _r.to=="object"?assign({},Yn,_r.to.state):Yn,force:ar}),er||tr)}else _r=An(tr,qn,!0,pr,Yn);return kn(tr,qn,_r),_r})}function Tn(nr,er){const rr=bn(nr,er);return rr?Promise.reject(rr):Promise.resolve()}function xn(nr,er){let rr;const[qn,Yn,ar]=extractChangingRecords(nr,er);rr=extractComponentsGuards(qn.reverse(),"beforeRouteLeave",nr,er);for(const Un of qn)Un.leaveGuards.forEach(tr=>{rr.push(guardToPromiseFn(tr,nr,er))});const pr=Tn.bind(null,nr,er);return rr.push(pr),runGuardQueue(rr).then(()=>{rr=[];for(const Un of pe.list())rr.push(guardToPromiseFn(Un,nr,er));return rr.push(pr),runGuardQueue(rr)}).then(()=>{rr=extractComponentsGuards(Yn,"beforeRouteUpdate",nr,er);for(const Un of Yn)Un.updateGuards.forEach(tr=>{rr.push(guardToPromiseFn(tr,nr,er))});return rr.push(pr),runGuardQueue(rr)}).then(()=>{rr=[];for(const Un of nr.matched)if(Un.beforeEnter&&!er.matched.includes(Un))if(isArray$3(Un.beforeEnter))for(const tr of Un.beforeEnter)rr.push(guardToPromiseFn(tr,nr,er));else rr.push(guardToPromiseFn(Un.beforeEnter,nr,er));return rr.push(pr),runGuardQueue(rr)}).then(()=>(nr.matched.forEach(Un=>Un.enterCallbacks={}),rr=extractComponentsGuards(ar,"beforeRouteEnter",nr,er),rr.push(pr),runGuardQueue(rr))).then(()=>{rr=[];for(const Un of _e.list())rr.push(guardToPromiseFn(Un,nr,er));return rr.push(pr),runGuardQueue(rr)}).catch(Un=>isNavigationFailure(Un,8)?Un:Promise.reject(Un))}function kn(nr,er,rr){for(const qn of Ce.list())qn(nr,er,rr)}function An(nr,er,rr,qn,Yn){const ar=bn(nr,er);if(ar)return ar;const pr=er===START_LOCATION_NORMALIZED,Un=isBrowser$1?history.state:{};rr&&(qn||pr?le.replace(nr.fullPath,assign({scroll:pr&&Un&&Un.scroll},Yn)):le.push(nr.fullPath,Yn)),$e.value=nr,jn(nr,er,rr,pr),Vn()}let On;function Nn(){On||(On=le.listen((nr,er,rr)=>{if(!cr.listening)return;const qn=vn(nr),Yn=$n(qn);if(Yn){wn(assign(Yn,{replace:!0}),qn).catch(noop$2);return}xe=qn;const ar=$e.value;isBrowser$1&&saveScrollPosition(getScrollKey(ar.fullPath,rr.delta),computeScrollPosition()),xn(qn,ar).catch(pr=>isNavigationFailure(pr,12)?pr:isNavigationFailure(pr,2)?(wn(pr.to,qn).then(Un=>{isNavigationFailure(Un,20)&&!rr.delta&&rr.type===NavigationType.pop&&le.go(-1,!1)}).catch(noop$2),Promise.reject()):(rr.delta&&le.go(-rr.delta,!1),Mn(pr,qn,ar))).then(pr=>{pr=pr||An(qn,ar,!1),pr&&(rr.delta&&!isNavigationFailure(pr,8)?le.go(-rr.delta,!1):rr.type===NavigationType.pop&&isNavigationFailure(pr,20)&&le.go(-1,!1)),kn(qn,ar,pr)}).catch(noop$2)}))}let Rn=useCallbacks(),zn=useCallbacks(),Bn;function Mn(nr,er,rr){Vn(nr);const qn=zn.list();return qn.length?qn.forEach(Yn=>Yn(nr,er,rr)):console.error(nr),Promise.reject(nr)}function Fn(){return Bn&&$e.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((nr,er)=>{Rn.add([nr,er])})}function Vn(nr){return Bn||(Bn=!nr,Nn(),Rn.list().forEach(([er,rr])=>nr?rr(nr):er()),Rn.reset()),nr}function jn(nr,er,rr,qn){const{scrollBehavior:Yn}=$;if(!isBrowser$1||!Yn)return Promise.resolve();const ar=!rr&&getSavedScrollPosition(getScrollKey(nr.fullPath,0))||(qn||!rr)&&history.state&&history.state.scroll||null;return nextTick().then(()=>Yn(nr,er,ar)).then(pr=>pr&&scrollToPosition(pr)).catch(pr=>Mn(pr,nr,er))}const Zn=nr=>le.go(nr);let Gn;const Xn=new Set,cr={currentRoute:$e,listening:!0,addRoute:ze,removeRoute:At,hasRoute:hn,getRoutes:Lt,resolve:vn,options:$,push:Cn,replace:En,go:Zn,back:()=>Zn(-1),forward:()=>Zn(1),beforeEach:pe.add,beforeResolve:_e.add,afterEach:Ce.add,onError:zn.add,isReady:Fn,install(nr){const er=this;nr.component("RouterLink",RouterLink),nr.component("RouterView",RouterView),nr.config.globalProperties.$router=er,Object.defineProperty(nr.config.globalProperties,"$route",{enumerable:!0,get:()=>unref($e)}),isBrowser$1&&!Gn&&$e.value===START_LOCATION_NORMALIZED&&(Gn=!0,Cn(le.location).catch(Yn=>{}));const rr={};for(const Yn in START_LOCATION_NORMALIZED)rr[Yn]=computed(()=>$e.value[Yn]);nr.provide(routerKey,er),nr.provide(routeLocationKey,reactive(rr)),nr.provide(routerViewLocationKey,$e);const qn=nr.unmount;Xn.add(nr),nr.unmount=function(){Xn.delete(nr),Xn.size<1&&(xe=START_LOCATION_NORMALIZED,On&&On(),On=null,$e.value=START_LOCATION_NORMALIZED,Gn=!1,Bn=!1),qn()}}};return cr}function runGuardQueue($){return $.reduce((oe,ae)=>oe.then(()=>ae()),Promise.resolve())}function extractChangingRecords($,oe){const ae=[],ie=[],le=[],pe=Math.max(oe.matched.length,$.matched.length);for(let _e=0;_eisSameRouteRecord(xe,Ce))?ie.push(Ce):ae.push(Ce));const $e=$.matched[_e];$e&&(oe.matched.find(xe=>isSameRouteRecord(xe,$e))||le.push($e))}return[ae,ie,le]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}const extractPathList=$=>{if(!Array.isArray($))return console.warn("tree must be an array"),[];if(!$||$.length===0)return[];const oe=[];for(const ae of $)ae.children&&ae.children.length>0&&extractPathList(ae.children),oe.push(ae.uniqueId);return oe},deleteChildren=($,oe=[])=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];for(const[ae,ie]of $.entries())ie.children&&ie.children.length===1&&delete ie.children,ie.id=ae,ie.parentId=oe.length?oe[oe.length-1]:null,ie.pathList=[...oe,ie.id],ie.uniqueId=ie.pathList.length>1?ie.pathList.join("-"):ie.pathList[0],ie.children&&ie.children.length>0&&deleteChildren(ie.children,ie.pathList);return $},buildHierarchyTree=($,oe=[])=>{if(!Array.isArray($))return console.warn("tree must be an array"),[];if(!$||$.length===0)return[];for(const[ae,ie]of $.entries())ie.id=ae,ie.parentId=oe.length?oe[oe.length-1]:null,ie.pathList=[...oe,ie.id],ie.children&&ie.children.length>0&&buildHierarchyTree(ie.children,ie.pathList);return $},getNodeByUniqueId=($,oe)=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];const ae=$.find(le=>le.uniqueId===oe);if(ae)return ae;const ie=$.filter(le=>le.children).map(le=>le.children).flat(1);return getNodeByUniqueId(ie,oe)},appendFieldByUniqueId=($,oe,ae)=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];for(const ie of $){const le=ie.children&&ie.children.length>0;ie.uniqueId===oe&&Object.prototype.toString.call(ae)==="[object Object]"&&Object.assign(ie,ae),le&&appendFieldByUniqueId(ie.children,oe,ae)}return $},handleTree=($,oe,ae,ie)=>{if(!Array.isArray($))return console.warn("data must be an array"),[];const le={id:oe||"id",parentId:ae||"parentId",childrenList:ie||"children"},pe={},_e={},Ce=[];for(const xe of $){const Ie=xe[le.parentId];pe[Ie]==null&&(pe[Ie]=[]),_e[xe[le.id]]=xe,pe[Ie].push(xe)}for(const xe of $){const Ie=xe[le.parentId];_e[Ie]==null&&Ce.push(xe)}for(const xe of Ce)$e(xe);function $e(xe){if(pe[xe[le.id]]!==null&&(xe[le.childrenList]=pe[xe[le.id]]),xe[le.childrenList])for(const Ie of xe[le.childrenList])$e(Ie)}return Ce},getAsyncRoutes=()=>http.request("get","/getAsyncRoutes"),IFrame=()=>__vitePreload(()=>import("./frameView-17abd35a.js"),["static/js/frameView-17abd35a.js","static/css/frameView-ed080731.css"]),modulesRoutes=Object.assign({"/src/views/able/barcode.vue":()=>__vitePreload(()=>import("./barcode-7cfa344e.js"),[]),"/src/views/able/cascader.vue":()=>__vitePreload(()=>import("./cascader-c5c3f147.js"),["static/js/cascader-c5c3f147.js","static/css/cascader-843853c0.css"]),"/src/views/able/debounce.vue":()=>__vitePreload(()=>import("./debounce-27797450.js"),["static/js/debounce-27797450.js","static/js/message-ac5811da.js"]),"/src/views/able/download.vue":()=>__vitePreload(()=>import("./download-82053b96.js"),[]),"/src/views/able/execl.vue":()=>__vitePreload(()=>import("./execl-48f63f3f.js"),["static/js/execl-48f63f3f.js","static/js/xlsx-e927f539.js"]),"/src/views/able/icon-select.vue":()=>__vitePreload(()=>import("./icon-select-1e86bdde.js"),["static/js/icon-select-1e86bdde.js","static/css/icon-select-f6ac52ad.css"]),"/src/views/able/infinite-scroll.vue":()=>__vitePreload(()=>import("./infinite-scroll-7fd0a6d1.js"),[]),"/src/views/able/line-tree.vue":()=>__vitePreload(()=>import("./line-tree-f3ff15d7.js"),["static/js/line-tree-f3ff15d7.js","static/css/line-tree-970a113a.css"]),"/src/views/able/menu-tree.vue":()=>__vitePreload(()=>import("./menu-tree-a38122a5.js"),["static/js/menu-tree-a38122a5.js","static/js/hooks-62079556.js"]),"/src/views/able/pdf.vue":()=>__vitePreload(()=>import("./pdf-8be0f9a8.js"),["static/js/pdf-8be0f9a8.js","static/js/vue.runtime.esm-bundler-c42d439d.js"]),"/src/views/able/print.vue":()=>__vitePreload(()=>import("./print-ab6bd646.js"),["static/js/print-ab6bd646.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-c9d17410.js","static/js/app-9580cee8.js","static/css/print-8831c8b6.css"]),"/src/views/able/qrcode.vue":()=>__vitePreload(()=>import("./qrcode-eb62c949.js"),["static/js/qrcode-eb62c949.js","static/js/message-ac5811da.js","static/js/index-639cd49d.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/able/swiper.vue":()=>__vitePreload(()=>import("./swiper-3eeb0cd1.js"),["static/js/swiper-3eeb0cd1.js","static/css/swiper-4182dcb7.css"]),"/src/views/able/timeline.vue":()=>__vitePreload(()=>import("./timeline-3ea27185.js"),["static/js/timeline-3ea27185.js","static/js/index-3bb45c48.js","static/css/index-18417f34.css","static/js/hooks-62079556.js","static/js/iphone-bcaa848c.js","static/css/timeline-0391e3d4.css"]),"/src/views/able/virtual-list/horizontal.vue":()=>__vitePreload(()=>import("./horizontal-0e874426.js"),["static/js/horizontal-0e874426.js","static/js/vue-virtual-scroller.esm-490d869b.js","static/css/horizontal-f9c9bac5.css"]),"/src/views/able/virtual-list/index.vue":()=>__vitePreload(()=>import("./index-62aa1b91.js"),["static/js/index-62aa1b91.js","static/js/vertical-44eee916.js","static/js/vue-virtual-scroller.esm-490d869b.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-0e874426.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),"/src/views/able/virtual-list/vertical.vue":()=>__vitePreload(()=>import("./vertical-44eee916.js"),["static/js/vertical-44eee916.js","static/js/vue-virtual-scroller.esm-490d869b.js","static/css/vertical-c0ec8bec.css"]),"/src/views/able/watermark.vue":()=>__vitePreload(()=>import("./watermark-11783896.js"),[]),"/src/views/about/columns.tsx":()=>__vitePreload(()=>import("./columns-ba8e4348.js"),[]),"/src/views/about/index.vue":()=>__vitePreload(()=>import("./index-4a5b9d97.js"),["static/js/index-4a5b9d97.js","static/js/columns-ba8e4348.js","static/css/index-14544c94.css"]),"/src/views/components/button/index.vue":()=>__vitePreload(()=>import("./index-d79fa351.js"),[]),"/src/views/components/contextmenu/basic.vue":()=>__vitePreload(()=>import("./basic-09712a8c.js"),["static/js/basic-09712a8c.js","static/js/index.esm-04a1a156.js","static/css/basic-d842f1a0.css"]),"/src/views/components/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-04f26cf0.js"),["static/js/index-04f26cf0.js","static/js/basic-09712a8c.js","static/js/index.esm-04a1a156.js","static/css/basic-d842f1a0.css","static/js/menuGroup-03365b00.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-f234f67c.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),"/src/views/components/contextmenu/menuDynamic.vue":()=>__vitePreload(()=>import("./menuDynamic-f234f67c.js"),["static/js/menuDynamic-f234f67c.js","static/js/index.esm-04a1a156.js","static/css/menuDynamic-8e12a25c.css"]),"/src/views/components/contextmenu/menuGroup.vue":()=>__vitePreload(()=>import("./menuGroup-03365b00.js"),["static/js/menuGroup-03365b00.js","static/js/index.esm-04a1a156.js","static/css/menuGroup-1ac3332c.css"]),"/src/views/components/count-to/index.vue":()=>__vitePreload(()=>import("./index-03a042a0.js"),["static/js/index-03a042a0.js","static/js/propTypes-c3354283.js","static/css/index-a129e600.css"]),"/src/views/components/cropping/index.vue":()=>__vitePreload(()=>import("./index-159573b9.js"),["static/js/index-159573b9.js","static/css/index-fdfcfa11.css"]),"/src/views/components/danmaku/index.vue":()=>__vitePreload(()=>import("./index-41258481.js"),["static/js/index-41258481.js","static/css/index-14392f45.css"]),"/src/views/components/dialog/form.vue":()=>__vitePreload(()=>import("./form-c4e26200.js"),["static/js/form-c4e26200.js","static/js/form.vue_vue_type_script_setup_true_lang-e871bdbd.js"]),"/src/views/components/dialog/index.vue":()=>__vitePreload(()=>import("./index-b21cf265.js"),["static/js/index-b21cf265.js","static/js/message-ac5811da.js","static/js/form.vue_vue_type_script_setup_true_lang-e871bdbd.js"]),"/src/views/components/draggable/index.vue":()=>__vitePreload(()=>import("./index-4e7937cc.js"),["static/js/index-4e7937cc.js","static/js/sortable.esm-679e0872.js","static/js/app-9580cee8.js","static/js/hooks-62079556.js","static/css/index-b2ddca14.css"]),"/src/views/components/json-editor/index.vue":()=>__vitePreload(()=>import("./index-49272547.js"),["static/js/index-49272547.js","static/js/styles-cf4bf16f.js","static/js/vue.runtime.esm-bundler-c42d439d.js","static/css/styles-670012e0.css"]),"/src/views/components/map/index.vue":()=>__vitePreload(()=>import("./index-b93c607c.js"),["static/js/index-b93c607c.js","static/css/index-d504fa9c.css"]),"/src/views/components/message/index.vue":()=>__vitePreload(()=>import("./index-c7941fd5.js"),["static/js/index-c7941fd5.js","static/js/message-ac5811da.js","static/js/hooks-62079556.js","static/js/check-3815600c.js"]),"/src/views/components/seamless-scroll/index.vue":()=>__vitePreload(()=>import("./index-1f4723fd.js"),["static/js/index-1f4723fd.js","static/js/index-95b65695.js","static/css/index-53a917f7.css"]),"/src/views/components/selector/index.vue":()=>__vitePreload(()=>import("./index-9320116d.js"),["static/js/index-9320116d.js","static/css/index-ea4ab5c7.css"]),"/src/views/components/split-pane/index.vue":()=>__vitePreload(()=>import("./index-59ff87b7.js"),["static/js/index-59ff87b7.js","static/css/index-e0a7f2a0.css"]),"/src/views/components/typeit/index.vue":()=>__vitePreload(()=>import("./index-10e75e7a.js"),["static/js/index-10e75e7a.js","static/js/index-24d2e7bb.js"]),"/src/views/components/video/index.vue":()=>__vitePreload(()=>import("./index-7c86d1c0.js"),["static/js/index-7c86d1c0.js","static/js/hooks-62079556.js","static/css/index-11b4621f.css"]),"/src/views/editor/index.vue":()=>__vitePreload(()=>import("./index-a0fc3b02.js"),["static/js/index-a0fc3b02.js","static/js/hooks-62079556.js","static/js/edit-d219f0c6.js","static/css/index-f38a3df6.css"]),"/src/views/empty/index.vue":()=>__vitePreload(()=>import("./index-1e673eb0.js"),["static/js/index-1e673eb0.js","static/css/index-218e4ba3.css"]),"/src/views/error/403.vue":()=>__vitePreload(()=>import("./403-aace6d52.js"),[]),"/src/views/error/404.vue":()=>__vitePreload(()=>import("./404-4055428e.js"),[]),"/src/views/error/500.vue":()=>__vitePreload(()=>import("./500-68cbae6c.js"),[]),"/src/views/flow-chart/index.vue":()=>__vitePreload(()=>import("./index-9a545244.js"),["static/js/index-9a545244.js","static/js/hooks-62079556.js","static/js/styles-cf4bf16f.js","static/js/vue.runtime.esm-bundler-c42d439d.js","static/css/styles-670012e0.css","static/js/set-up-e6942411.js","static/css/index-6bd35e69.css"]),"/src/views/guide/index.vue":()=>__vitePreload(()=>import("./index-a24a88b8.js"),["static/js/index-a24a88b8.js","static/css/index-38ef32bb.css"]),"/src/views/list/card/components/Card.vue":()=>__vitePreload(()=>import("./Card-514d8668.js"),["static/js/Card-514d8668.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css"]),"/src/views/list/card/components/DialogForm.vue":()=>__vitePreload(()=>import("./DialogForm-8ed6f873.js"),["static/js/DialogForm-8ed6f873.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-27dd14b2.js","static/js/message-ac5811da.js"]),"/src/views/list/card/index.vue":()=>__vitePreload(()=>import("./index-8c8a5e0e.js"),["static/js/index-8c8a5e0e.js","static/js/Card-514d8668.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css","static/js/message-ac5811da.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-27dd14b2.js","static/js/hooks-62079556.js","static/js/search-cc37b371.js","static/js/add-circle-line-a03ff6bd.js"]),"/src/views/login/components/phone.vue":()=>__vitePreload(()=>import("./phone-9b362354.js"),["static/js/phone-9b362354.js","static/js/phone.vue_vue_type_script_setup_true_lang-434cabb8.js","static/js/motion-8d1b992b.js","static/js/message-ac5811da.js","static/js/verifyCode-5a2fb2bf.js","static/js/hooks-62079556.js","static/js/iphone-bcaa848c.js"]),"/src/views/login/components/qrCode.vue":()=>__vitePreload(()=>import("./qrCode-8e6fa10c.js"),["static/js/qrCode-8e6fa10c.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-14b58f53.js","static/js/motion-8d1b992b.js","static/js/index-639cd49d.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/login/components/regist.vue":()=>__vitePreload(()=>import("./regist-4094a63f.js"),["static/js/regist-4094a63f.js","static/js/regist.vue_vue_type_script_setup_true_lang-8e834687.js","static/js/motion-8d1b992b.js","static/js/message-ac5811da.js","static/js/verifyCode-5a2fb2bf.js","static/js/hooks-62079556.js","static/js/lock-fill-34b71c6c.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js"]),"/src/views/login/components/update.vue":()=>__vitePreload(()=>import("./update-5989ca5a.js"),["static/js/update-5989ca5a.js","static/js/update.vue_vue_type_script_setup_true_lang-2c86fdf0.js","static/js/motion-8d1b992b.js","static/js/message-ac5811da.js","static/js/verifyCode-5a2fb2bf.js","static/js/hooks-62079556.js","static/js/lock-fill-34b71c6c.js","static/js/iphone-bcaa848c.js"]),"/src/views/login/index.vue":()=>__vitePreload(()=>import("./index-86e35936.js"),["static/js/index-86e35936.js","static/js/motion-8d1b992b.js","static/js/message-ac5811da.js","static/js/verifyCode-5a2fb2bf.js","static/js/phone.vue_vue_type_script_setup_true_lang-434cabb8.js","static/js/hooks-62079556.js","static/js/iphone-bcaa848c.js","static/js/index-24d2e7bb.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-14b58f53.js","static/js/index-639cd49d.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-8e834687.js","static/js/lock-fill-34b71c6c.js","static/js/user-3-fill-70ba8c19.js","static/js/update.vue_vue_type_script_setup_true_lang-2c86fdf0.js","static/js/dark-8da7fda0.js","static/js/app-9580cee8.js","static/js/epTheme-ec99570c.js","static/js/check-3815600c.js","static/css/index-90a3ebb5.css"]),"/src/views/menuoverflow/index.vue":()=>__vitePreload(()=>import("./index-bcc6313c.js"),[]),"/src/views/nested/menu1/menu1-1/index.vue":()=>__vitePreload(()=>import("./index-54e3e3b4.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue":()=>__vitePreload(()=>import("./index-2b3bdafa.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue":()=>__vitePreload(()=>import("./index-5f0193e2.js"),[]),"/src/views/nested/menu1/menu1-3/index.vue":()=>__vitePreload(()=>import("./index-32849726.js"),[]),"/src/views/nested/menu2/index.vue":()=>__vitePreload(()=>import("./index-7ba69997.js"),[]),"/src/views/permission/button/index.vue":()=>__vitePreload(()=>import("./index-68e6cf05.js"),[]),"/src/views/permission/page/index.vue":()=>__vitePreload(()=>import("./index-ef352e72.js"),[]),"/src/views/pure-table/base/base.vue":()=>__vitePreload(()=>import("./base-d29aa544.js"),["static/js/base-d29aa544.js","static/js/base.vue_vue_type_script_setup_true_lang-fc0b0c63.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/border.vue":()=>__vitePreload(()=>import("./border-e0f7cd9d.js"),["static/js/border-e0f7cd9d.js","static/js/border.vue_vue_type_script_setup_true_lang-61cc9adb.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/column-template/columns.tsx":()=>__vitePreload(()=>import("./columns-39bf1e5b.js"),["static/js/columns-39bf1e5b.js","static/js/message-ac5811da.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/column-template/index.vue":()=>__vitePreload(()=>import("./index-3bc4724e.js"),["static/js/index-3bc4724e.js","static/js/index.vue_vue_type_script_setup_true_lang-b3e381b1.js","static/js/columns-39bf1e5b.js","static/js/message-ac5811da.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/customIndex.vue":()=>__vitePreload(()=>import("./customIndex-b5e8ed2f.js"),["static/js/customIndex-b5e8ed2f.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-e3c9b231.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/expand.vue":()=>__vitePreload(()=>import("./expand-88bf21af.js"),["static/js/expand-88bf21af.js","static/js/expand.vue_vue_type_script_setup_true_lang-72453caf.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/filters.vue":()=>__vitePreload(()=>import("./filters-73e71ffe.js"),["static/js/filters-73e71ffe.js","static/js/filters.vue_vue_type_script_setup_true_lang-4819fc0e.js"]),"/src/views/pure-table/base/fixColumn.vue":()=>__vitePreload(()=>import("./fixColumn-26d38edf.js"),["static/js/fixColumn-26d38edf.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-5b704527.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/fixHeader.vue":()=>__vitePreload(()=>import("./fixHeader-7b66ac91.js"),["static/js/fixHeader-7b66ac91.js","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c5d733cd.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/fluidHeight.vue":()=>__vitePreload(()=>import("./fluidHeight-8db64373.js"),["static/js/fluidHeight-8db64373.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-88785cb7.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/groupHeader.vue":()=>__vitePreload(()=>import("./groupHeader-88104433.js"),["static/js/groupHeader-88104433.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-4a87b79d.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/header-renderer/columns.tsx":()=>__vitePreload(()=>import("./columns-75cd3c72.js"),["static/js/columns-75cd3c72.js","static/js/message-ac5811da.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/header-renderer/index.vue":()=>__vitePreload(()=>import("./index-e4e3402a.js"),["static/js/index-e4e3402a.js","static/js/index.vue_vue_type_script_setup_true_lang-0429dccb.js","static/js/columns-75cd3c72.js","static/js/message-ac5811da.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/imgPreview.vue":()=>__vitePreload(()=>import("./imgPreview-4dc4fa68.js"),["static/js/imgPreview-4dc4fa68.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-bcaea8a2.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/layout.vue":()=>__vitePreload(()=>import("./layout-fdf6a375.js"),["static/js/layout-fdf6a375.js","static/js/layout.vue_vue_type_script_setup_true_lang-d00641f6.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/list.tsx":()=>__vitePreload(()=>import("./list-90b3344f.js"),["static/js/list-90b3344f.js","static/js/base.vue_vue_type_script_setup_true_lang-fc0b0c63.js","static/js/data-7bb4b374.js","static/js/stripe.vue_vue_type_script_setup_true_lang-9b1733b5.js","static/js/border.vue_vue_type_script_setup_true_lang-61cc9adb.js","static/js/status.vue_vue_type_style_index_0_lang-b71c06dd.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c5d733cd.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-5b704527.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-88785cb7.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-4a87b79d.js","static/js/radio.vue_vue_type_script_setup_true_lang-3d02b222.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-cf211278.js","static/js/sortable.vue_vue_type_script_setup_true_lang-8fb6878f.js","static/js/filters.vue_vue_type_script_setup_true_lang-4819fc0e.js","static/js/index.vue_vue_type_script_setup_true_lang-b3e381b1.js","static/js/columns-39bf1e5b.js","static/js/message-ac5811da.js","static/js/index.vue_vue_type_script_setup_true_lang-0429dccb.js","static/js/columns-75cd3c72.js","static/js/expand.vue_vue_type_script_setup_true_lang-72453caf.js","static/js/tree.vue_vue_type_script_setup_true_lang-d55e7056.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-4312dd4f.js","static/js/merge.vue_vue_type_script_setup_true_lang-a510a2fc.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-e3c9b231.js","static/js/layout.vue_vue_type_script_setup_true_lang-d00641f6.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-628ba7d1.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-bcaea8a2.js"]),"/src/views/pure-table/base/merge.vue":()=>__vitePreload(()=>import("./merge-109ffa89.js"),["static/js/merge-109ffa89.js","static/js/merge.vue_vue_type_script_setup_true_lang-a510a2fc.js"]),"/src/views/pure-table/base/multipleChoice.vue":()=>__vitePreload(()=>import("./multipleChoice-c5fd1518.js"),["static/js/multipleChoice-c5fd1518.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-cf211278.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/nestProp.vue":()=>__vitePreload(()=>import("./nestProp-72426afc.js"),["static/js/nestProp-72426afc.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-628ba7d1.js"]),"/src/views/pure-table/base/radio.vue":()=>__vitePreload(()=>import("./radio-43e7c06f.js"),["static/js/radio-43e7c06f.js","static/js/radio.vue_vue_type_script_setup_true_lang-3d02b222.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/sortable.vue":()=>__vitePreload(()=>import("./sortable-12882810.js"),["static/js/sortable-12882810.js","static/js/sortable.vue_vue_type_script_setup_true_lang-8fb6878f.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/status.vue":()=>__vitePreload(()=>import("./status-d9184a7d.js"),["static/js/status-d9184a7d.js","static/js/status.vue_vue_type_style_index_0_lang-b71c06dd.js","static/js/data-7bb4b374.js","static/css/status-3db11369.css"]),"/src/views/pure-table/base/stripe.vue":()=>__vitePreload(()=>import("./stripe-30d40381.js"),["static/js/stripe-30d40381.js","static/js/stripe.vue_vue_type_script_setup_true_lang-9b1733b5.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/totalRow.vue":()=>__vitePreload(()=>import("./totalRow-3ef42bb0.js"),["static/js/totalRow-3ef42bb0.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-4312dd4f.js"]),"/src/views/pure-table/base/tree.vue":()=>__vitePreload(()=>import("./tree-b4a3bbde.js"),["static/js/tree-b4a3bbde.js","static/js/tree.vue_vue_type_script_setup_true_lang-d55e7056.js"]),"/src/views/pure-table/high.vue":()=>__vitePreload(()=>import("./high-25613d81.js"),["static/js/high-25613d81.js","static/js/list-18420425.js","static/js/index.vue_vue_type_script_setup_true_lang-80e8a030.js","static/js/columns-bbf3abe3.js","static/js/data-4845d266.js","static/js/index.vue_vue_type_script_setup_true_lang-d5647728.js","static/js/columns-2721478e.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-07f5e3b9.js","static/js/columns-9df0a0b6.js","static/js/index.vue_vue_type_script_setup_true_lang-316dae94.js","static/js/columns-f5c5c5b8.js","static/js/message-ac5811da.js","static/js/index.vue_vue_type_script_setup_true_lang-b2941bf3.js","static/js/columns-5f812485.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-376130a5.js","static/js/columns-df5d4455.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-f7bd604c.js","static/js/columns-c20796e3.js","static/js/index.vue_vue_type_script_setup_true_lang-22762134.js","static/js/columns-58fb2122.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-fa1f2931.js","static/js/columns-7cd72d5c.js","static/js/index-95b65695.js","static/js/index.vue_vue_type_script_setup_true_lang-e40cdb80.js","static/js/index.vue_vue_type_script_setup_true_lang-f3b36626.js","static/js/columns-3d7dbff3.js","static/js/index.vue_vue_type_script_setup_true_lang-c6a3d999.js","static/js/columns-7628a2c7.js","static/css/high-5bc3f1f1.css"]),"/src/views/pure-table/high/contextmenu/columns.tsx":()=>__vitePreload(()=>import("./columns-f5c5c5b8.js"),["static/js/columns-f5c5c5b8.js","static/js/data-4845d266.js","static/js/message-ac5811da.js"]),"/src/views/pure-table/high/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-6cb6f2c7.js"),["static/js/index-6cb6f2c7.js","static/js/index.vue_vue_type_script_setup_true_lang-316dae94.js","static/js/columns-f5c5c5b8.js","static/js/data-4845d266.js","static/js/message-ac5811da.js"]),"/src/views/pure-table/high/drag/column/columns.tsx":()=>__vitePreload(()=>import("./columns-9df0a0b6.js"),["static/js/columns-9df0a0b6.js","static/js/sortable.esm-679e0872.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/drag/column/index.vue":()=>__vitePreload(()=>import("./index-a8023d07.js"),["static/js/index-a8023d07.js","static/js/index.vue_vue_type_script_setup_true_lang-07f5e3b9.js","static/js/columns-9df0a0b6.js","static/js/sortable.esm-679e0872.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/drag/row/columns.tsx":()=>__vitePreload(()=>import("./columns-2721478e.js"),["static/js/columns-2721478e.js","static/js/sortable.esm-679e0872.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/drag/row/index.vue":()=>__vitePreload(()=>import("./index-8a1a3626.js"),["static/js/index-8a1a3626.js","static/js/index.vue_vue_type_script_setup_true_lang-d5647728.js","static/js/columns-2721478e.js","static/js/sortable.esm-679e0872.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/echarts/columns.tsx":()=>__vitePreload(()=>import("./columns-7cd72d5c.js"),["static/js/columns-7cd72d5c.js","static/js/data-4845d266.js","static/js/message-ac5811da.js","static/js/index-95b65695.js"]),"/src/views/pure-table/high/echarts/index.vue":()=>__vitePreload(()=>import("./index-9d51f22a.js"),["static/js/index-9d51f22a.js","static/js/index.vue_vue_type_script_setup_true_lang-fa1f2931.js","static/js/columns-7cd72d5c.js","static/js/data-4845d266.js","static/js/message-ac5811da.js","static/js/index-95b65695.js"]),"/src/views/pure-table/high/edit/columns.tsx":()=>__vitePreload(()=>import("./columns-df5d4455.js"),["static/js/columns-df5d4455.js","static/js/data-4845d266.js","static/js/message-ac5811da.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js"]),"/src/views/pure-table/high/edit/index.vue":()=>__vitePreload(()=>import("./index-fe860b62.js"),["static/js/index-fe860b62.js","static/js/index.vue_vue_type_script_setup_true_lang-376130a5.js","static/js/columns-df5d4455.js","static/js/data-4845d266.js","static/js/message-ac5811da.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js"]),"/src/views/pure-table/high/execl/columns.tsx":()=>__vitePreload(()=>import("./columns-5f812485.js"),["static/js/columns-5f812485.js","static/js/xlsx-e927f539.js","static/js/data-4845d266.js","static/js/message-ac5811da.js"]),"/src/views/pure-table/high/execl/index.vue":()=>__vitePreload(()=>import("./index-36aff547.js"),["static/js/index-36aff547.js","static/js/index.vue_vue_type_script_setup_true_lang-b2941bf3.js","static/js/columns-5f812485.js","static/js/xlsx-e927f539.js","static/js/data-4845d266.js","static/js/message-ac5811da.js"]),"/src/views/pure-table/high/list.tsx":()=>__vitePreload(()=>import("./list-18420425.js"),["static/js/list-18420425.js","static/js/index.vue_vue_type_script_setup_true_lang-80e8a030.js","static/js/columns-bbf3abe3.js","static/js/data-4845d266.js","static/js/index.vue_vue_type_script_setup_true_lang-d5647728.js","static/js/columns-2721478e.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-07f5e3b9.js","static/js/columns-9df0a0b6.js","static/js/index.vue_vue_type_script_setup_true_lang-316dae94.js","static/js/columns-f5c5c5b8.js","static/js/message-ac5811da.js","static/js/index.vue_vue_type_script_setup_true_lang-b2941bf3.js","static/js/columns-5f812485.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-376130a5.js","static/js/columns-df5d4455.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-f7bd604c.js","static/js/columns-c20796e3.js","static/js/index.vue_vue_type_script_setup_true_lang-22762134.js","static/js/columns-58fb2122.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-fa1f2931.js","static/js/columns-7cd72d5c.js","static/js/index-95b65695.js","static/js/index.vue_vue_type_script_setup_true_lang-e40cdb80.js","static/js/index.vue_vue_type_script_setup_true_lang-f3b36626.js","static/js/columns-3d7dbff3.js","static/js/index.vue_vue_type_script_setup_true_lang-c6a3d999.js","static/js/columns-7628a2c7.js"]),"/src/views/pure-table/high/page/columns.tsx":()=>__vitePreload(()=>import("./columns-bbf3abe3.js"),["static/js/columns-bbf3abe3.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/page/index.vue":()=>__vitePreload(()=>import("./index-32adabbc.js"),["static/js/index-32adabbc.js","static/js/index.vue_vue_type_script_setup_true_lang-80e8a030.js","static/js/columns-bbf3abe3.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/prints/columns.tsx":()=>__vitePreload(()=>import("./columns-58fb2122.js"),["static/js/columns-58fb2122.js","static/js/print-a6e42845.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/prints/index.vue":()=>__vitePreload(()=>import("./index-6a61427f.js"),["static/js/index-6a61427f.js","static/js/index.vue_vue_type_script_setup_true_lang-22762134.js","static/js/columns-58fb2122.js","static/js/print-a6e42845.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/table-select/index.vue":()=>__vitePreload(()=>import("./index-4d64ed58.js"),["static/js/index-4d64ed58.js","static/js/index.vue_vue_type_script_setup_true_lang-e40cdb80.js","static/js/index.vue_vue_type_script_setup_true_lang-f3b36626.js","static/js/columns-3d7dbff3.js","static/js/message-ac5811da.js","static/js/data-4845d266.js","static/js/index.vue_vue_type_script_setup_true_lang-c6a3d999.js","static/js/columns-7628a2c7.js"]),"/src/views/pure-table/high/table-select/multiple/columns.tsx":()=>__vitePreload(()=>import("./columns-7628a2c7.js"),["static/js/columns-7628a2c7.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/table-select/multiple/index.vue":()=>__vitePreload(()=>import("./index-0bcb1434.js"),["static/js/index-0bcb1434.js","static/js/index.vue_vue_type_script_setup_true_lang-c6a3d999.js","static/js/columns-7628a2c7.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/table-select/radio/columns.tsx":()=>__vitePreload(()=>import("./columns-3d7dbff3.js"),["static/js/columns-3d7dbff3.js","static/js/message-ac5811da.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/table-select/radio/index.vue":()=>__vitePreload(()=>import("./index-e44afdd4.js"),["static/js/index-e44afdd4.js","static/js/index.vue_vue_type_script_setup_true_lang-f3b36626.js","static/js/columns-3d7dbff3.js","static/js/message-ac5811da.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/watermark/columns.tsx":()=>__vitePreload(()=>import("./columns-c20796e3.js"),["static/js/columns-c20796e3.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/watermark/index.vue":()=>__vitePreload(()=>import("./index-7be406e1.js"),["static/js/index-7be406e1.js","static/js/index.vue_vue_type_script_setup_true_lang-f7bd604c.js","static/js/columns-c20796e3.js","static/js/data-4845d266.js"]),"/src/views/pure-table/index.vue":()=>__vitePreload(()=>import("./index-dfcdfd2f.js"),["static/js/index-dfcdfd2f.js","static/js/list-90b3344f.js","static/js/base.vue_vue_type_script_setup_true_lang-fc0b0c63.js","static/js/data-7bb4b374.js","static/js/stripe.vue_vue_type_script_setup_true_lang-9b1733b5.js","static/js/border.vue_vue_type_script_setup_true_lang-61cc9adb.js","static/js/status.vue_vue_type_style_index_0_lang-b71c06dd.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c5d733cd.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-5b704527.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-88785cb7.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-4a87b79d.js","static/js/radio.vue_vue_type_script_setup_true_lang-3d02b222.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-cf211278.js","static/js/sortable.vue_vue_type_script_setup_true_lang-8fb6878f.js","static/js/filters.vue_vue_type_script_setup_true_lang-4819fc0e.js","static/js/index.vue_vue_type_script_setup_true_lang-b3e381b1.js","static/js/columns-39bf1e5b.js","static/js/message-ac5811da.js","static/js/index.vue_vue_type_script_setup_true_lang-0429dccb.js","static/js/columns-75cd3c72.js","static/js/expand.vue_vue_type_script_setup_true_lang-72453caf.js","static/js/tree.vue_vue_type_script_setup_true_lang-d55e7056.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-4312dd4f.js","static/js/merge.vue_vue_type_script_setup_true_lang-a510a2fc.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-e3c9b231.js","static/js/layout.vue_vue_type_script_setup_true_lang-d00641f6.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-628ba7d1.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-bcaea8a2.js","static/css/index-c6b6432d.css"]),"/src/views/result/columns.tsx":()=>__vitePreload(()=>import("./columns-4858870b.js"),["static/js/columns-4858870b.js","static/js/arrow-right-s-line-2977cc7e.js"]),"/src/views/result/fail.vue":()=>__vitePreload(()=>import("./fail-faba5431.js"),["static/js/fail-faba5431.js","static/js/columns-4858870b.js","static/js/arrow-right-s-line-2977cc7e.js","static/css/fail-8c7d12a4.css"]),"/src/views/result/success.vue":()=>__vitePreload(()=>import("./success-945d4baa.js"),["static/js/success-945d4baa.js","static/css/success-42084dfc.css"]),"/src/views/system/dept/form.vue":()=>__vitePreload(()=>import("./form-81ec7fbb.js"),["static/js/form-81ec7fbb.js","static/js/form.vue_vue_type_script_setup_true_lang-26a36b44.js"]),"/src/views/system/dept/hook.tsx":()=>__vitePreload(()=>import("./hook-dbd437de.js"),["static/js/hook-dbd437de.js","static/js/form.vue_vue_type_script_setup_true_lang-26a36b44.js","static/js/message-ac5811da.js","static/js/system-5c5ef8e0.js"]),"/src/views/system/dept/index.vue":()=>__vitePreload(()=>import("./index-59b6ef2b.js"),["static/js/index-59b6ef2b.js","static/js/hook-dbd437de.js","static/js/form.vue_vue_type_script_setup_true_lang-26a36b44.js","static/js/message-ac5811da.js","static/js/system-5c5ef8e0.js","static/js/refresh-43caf749.js","static/js/epTheme-ec99570c.js","static/js/sortable.esm-679e0872.js","static/js/hooks-62079556.js","static/js/edit-pen-37b5ced2.js","static/js/search-cc37b371.js","static/js/add-circle-line-a03ff6bd.js"]),"/src/views/system/role/hook.tsx":()=>__vitePreload(()=>import("./hook-2b5b194c.js"),["static/js/hook-2b5b194c.js","static/js/message-ac5811da.js","static/js/system-5c5ef8e0.js"]),"/src/views/system/role/index.vue":()=>__vitePreload(()=>import("./index-cd4ccea0.js"),["static/js/index-cd4ccea0.js","static/js/hook-2b5b194c.js","static/js/message-ac5811da.js","static/js/system-5c5ef8e0.js","static/js/refresh-43caf749.js","static/js/epTheme-ec99570c.js","static/js/sortable.esm-679e0872.js","static/js/hooks-62079556.js","static/js/more-filled-c44d3178.js","static/js/edit-pen-37b5ced2.js","static/js/search-cc37b371.js","static/js/menu-a4fe64fb.js","static/js/add-circle-line-a03ff6bd.js","static/css/index-9f62158a.css"]),"/src/views/system/user/hook.tsx":()=>__vitePreload(()=>import("./hook-4e63e5b1.js"),["static/js/hook-4e63e5b1.js","static/js/message-ac5811da.js","static/js/system-5c5ef8e0.js"]),"/src/views/system/user/index.vue":()=>__vitePreload(()=>import("./index-cd1a5b58.js"),["static/js/index-cd1a5b58.js","static/js/tree-a0484b07.js","static/js/system-5c5ef8e0.js","static/js/hooks-62079556.js","static/js/git-branch-line-aa4cb38f.js","static/js/search-cc37b371.js","static/js/more-2-fill-a666858a.js","static/js/office-building-cc7a1721.js","static/css/tree-12381322.css","static/js/hook-4e63e5b1.js","static/js/message-ac5811da.js","static/js/refresh-43caf749.js","static/js/epTheme-ec99570c.js","static/js/sortable.esm-679e0872.js","static/js/admin-line-92b9acda.js","static/js/more-filled-c44d3178.js","static/js/edit-pen-37b5ced2.js","static/js/add-circle-line-a03ff6bd.js","static/css/index-7734e749.css"]),"/src/views/system/user/tree.vue":()=>__vitePreload(()=>import("./tree-a0484b07.js"),["static/js/tree-a0484b07.js","static/js/system-5c5ef8e0.js","static/js/hooks-62079556.js","static/js/git-branch-line-aa4cb38f.js","static/js/search-cc37b371.js","static/js/more-2-fill-a666858a.js","static/js/office-building-cc7a1721.js","static/css/tree-12381322.css"]),"/src/views/tabs/index.vue":()=>__vitePreload(()=>import("./index-6c22368c.js"),["static/js/index-6c22368c.js","static/js/hooks-65e1ad34.js"]),"/src/views/tabs/params-detail.vue":()=>__vitePreload(()=>import("./params-detail-1e5eb068.js"),["static/js/params-detail-1e5eb068.js","static/js/hooks-65e1ad34.js"]),"/src/views/tabs/query-detail.vue":()=>__vitePreload(()=>import("./query-detail-493cb769.js"),["static/js/query-detail-493cb769.js","static/js/hooks-65e1ad34.js"]),"/src/views/welcome/components/Bar.vue":()=>__vitePreload(()=>import("./Bar-e89b7a26.js"),["static/js/Bar-e89b7a26.js","static/js/Bar.vue_vue_type_script_setup_true_lang-41902aae.js","static/js/app-9580cee8.js"]),"/src/views/welcome/components/Github.vue":()=>__vitePreload(()=>import("./Github-9cae51b2.js"),["static/js/Github-9cae51b2.js","static/js/Github.vue_vue_type_script_setup_true_lang-465cd287.js","static/js/columns-534bdbdc.js","static/js/index-24d2e7bb.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js"]),"/src/views/welcome/components/Line.vue":()=>__vitePreload(()=>import("./Line-3d037804.js"),["static/js/Line-3d037804.js","static/js/Line.vue_vue_type_script_setup_true_lang-c9d17410.js","static/js/app-9580cee8.js"]),"/src/views/welcome/components/Pie.vue":()=>__vitePreload(()=>import("./Pie-c23b2db7.js"),["static/js/Pie-c23b2db7.js","static/js/Pie.vue_vue_type_script_setup_true_lang-2dbb1c8a.js","static/js/app-9580cee8.js"]),"/src/views/welcome/components/columns.tsx":()=>__vitePreload(()=>import("./columns-534bdbdc.js"),["static/js/columns-534bdbdc.js","static/js/index-24d2e7bb.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js"]),"/src/views/welcome/index.vue":()=>__vitePreload(()=>import("./index-5820af99.js"),["static/js/index-5820af99.js","static/js/Bar.vue_vue_type_script_setup_true_lang-41902aae.js","static/js/app-9580cee8.js","static/js/Pie.vue_vue_type_script_setup_true_lang-2dbb1c8a.js","static/js/Line.vue_vue_type_script_setup_true_lang-c9d17410.js","static/js/index-24d2e7bb.js","static/js/index-95b65695.js","static/js/Github.vue_vue_type_script_setup_true_lang-465cd287.js","static/js/columns-534bdbdc.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js","static/js/index-3bb45c48.js","static/css/index-18417f34.css","static/css/index-e89363d8.css"])});function handRank($){const{name:oe,path:ae,parentId:ie,meta:le}=$;return P$1(ie)?!!(P$1(le==null?void 0:le.rank)||(le==null?void 0:le.rank)===0&&oe!=="Home"&&ae!=="/"):!1}function ascending($){return $.forEach((oe,ae)=>{handRank(oe)&&(oe.meta.rank=ae+2)}),$.sort((oe,ae)=>(oe==null?void 0:oe.meta.rank)-(ae==null?void 0:ae.meta.rank))}function filterTree($){const oe=Ke($).filter(ae=>{var ie;return((ie=ae.meta)==null?void 0:ie.showLink)!==!1});return oe.forEach(ae=>ae.children&&(ae.children=filterTree(ae.children))),oe}function filterChildrenTree($){const oe=Ke($).filter(ae=>{var ie;return((ie=ae==null?void 0:ae.children)==null?void 0:ie.length)!==0});return oe.forEach(ae=>ae.children&&(ae.children=filterTree(ae.children))),oe}function isOneOfArray($,oe){return Array.isArray($)&&Array.isArray(oe)?yr($,oe).length>0:!0}function filterNoPermissionTree($){var ie;const oe=((ie=Qn().getItem(sessionKey))==null?void 0:ie.roles)??[],ae=Ke($).filter(le=>{var pe;return isOneOfArray((pe=le.meta)==null?void 0:pe.roles,oe)});return ae.forEach(le=>le.children&&(le.children=filterNoPermissionTree(le.children))),filterChildrenTree(ae)}function getParentPaths($,oe,ae="path"){function ie(le,pe,_e){for(let Ce=0;Ceie.path==$);if(ae)return isProxy(ae)?toRaw(ae):ae;for(let ie=0;ie0&&(ae=findRouteByPath($,oe[ie].children),ae))return isProxy(ae)?toRaw(ae):ae;return null}function addPathMatch(){router.hasRoute("pathMatch")||router.addRoute({path:"/:pathMatch(.*)",name:"pathMatch",redirect:"/error/404"})}function handleAsyncRoutes($){$.length===0||formatFlatteningRoutes(addAsyncRoutes($)).map(oe=>{if(router.options.routes[0].children.findIndex(ae=>ae.path===oe.path)===-1){router.options.routes[0].children.push(oe),ascending(router.options.routes[0].children),router.hasRoute(oe==null?void 0:oe.name)||router.addRoute(oe);const ae=router.getRoutes().find(ie=>ie.path==="/");router.addRoute(ae)}}),usePermissionStoreHook().handleWholeMenus($),addPathMatch()}function initRouter(){var $;if(($=getConfig())!=null&&$.CachingAsyncRoutes){const oe="async-routes",ae=Qn().getItem(oe);return ae&&(ae==null?void 0:ae.length)>0?new Promise(ie=>{handleAsyncRoutes(ae),ie(router)}):new Promise(ie=>{getAsyncRoutes().then(({data:le})=>{handleAsyncRoutes(Ke(le)),Qn().setItem(oe,le),ie(router)})})}else return new Promise(oe=>{getAsyncRoutes().then(({data:ae})=>{handleAsyncRoutes(Ke(ae)),oe(router)})})}function formatFlatteningRoutes($){if($.length===0)return $;let oe=buildHierarchyTree($);for(let ae=0;ae{var ie;ae.path==="/"?oe.push({component:ae.component,name:ae.name,path:ae.path,redirect:ae.redirect,meta:ae.meta,children:[]}):(ie=oe[0])==null||ie.children.push({...ae})}),oe}function handleAliveRoute({name:$},oe){switch(oe){case"add":usePermissionStoreHook().cacheOperate({mode:"add",name:$});break;case"delete":usePermissionStoreHook().cacheOperate({mode:"delete",name:$});break;case"refresh":usePermissionStoreHook().cacheOperate({mode:"refresh",name:$});break;default:usePermissionStoreHook().cacheOperate({mode:"delete",name:$}),useTimeoutFn(()=>{usePermissionStoreHook().cacheOperate({mode:"add",name:$})},100)}}function addAsyncRoutes($){if(!$||!$.length)return;const oe=Object.keys(modulesRoutes);return $.forEach(ae=>{var ie;if(ae.meta.backstage=!0,ae!=null&&ae.children&&ae.children.length&&!ae.redirect&&(ae.redirect=ae.children[0].path),ae!=null&&ae.children&&ae.children.length&&!ae.name&&(ae.name=ae.children[0].name+"Parent"),(ie=ae.meta)!=null&&ie.frameSrc)ae.component=IFrame;else{const le=ae!=null&&ae.component?oe.findIndex(pe=>pe.includes(ae.component)):oe.findIndex(pe=>pe.includes(ae.path));ae.component=modulesRoutes[oe[le]]}ae!=null&&ae.children&&ae.children.length&&addAsyncRoutes(ae.children)}),$}function getHistoryMode($){const oe=$.split(","),ae=oe[0],ie=oe[1];if(oe.length===1){if(ae==="hash")return createWebHashHistory("");if(ae==="h5")return createWebHistory("")}else if(oe.length===2){if(ae==="hash")return createWebHashHistory(ie);if(ae==="h5")return createWebHistory(ie)}}function getAuths(){return router.currentRoute.value.meta.auths}function hasAuth($){if(!$)return!1;const oe=getAuths();return oe?!!(S($)?oe.includes($):br($,oe)):!1}function getTopMenu($=!1){var ae;const oe=(ae=usePermissionStoreHook().wholeMenus[0])==null?void 0:ae.children[0];return $&&useMultiTagsStoreHook().handleTags("push",oe),oe}const usePermissionStore=defineStore({id:"pure-permission",state:()=>({constantMenus,wholeMenus:[],cachePageList:[]}),actions:{handleWholeMenus($){this.wholeMenus=filterNoPermissionTree(filterTree(ascending(this.constantMenus.concat($))))},cacheOperate({mode:$,name:oe}){const ae=this.cachePageList.findIndex(ie=>ie===oe);switch($){case"refresh":this.cachePageList=this.cachePageList.filter(ie=>ie!==oe);break;case"add":this.cachePageList.push(oe);break;case"delete":ae!==-1&&this.cachePageList.splice(ae,1);break}(()=>{let ie=this.cachePageList.length;const le=wr(useMultiTagsStoreHook().multiTags,"name");for(;ie>0;)le.findIndex(pe=>pe===this.cachePageList[ie-1])===-1&&this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[ie-1]),1),ie--})()},clearAllCachePage(){this.wholeMenus=[],this.cachePageList=[]}}});function usePermissionStoreHook(){return usePermissionStore(store)}const Layout=()=>__vitePreload(()=>import("./index-2c9a69b7.js"),["static/js/index-2c9a69b7.js","static/js/menu-a4fe64fb.js","static/js/edit-d219f0c6.js","static/js/set-up-e6942411.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-8da7fda0.js","static/js/app-9580cee8.js","static/js/epTheme-ec99570c.js","static/js/hooks-62079556.js","static/js/index-95b65695.js","static/js/search-cc37b371.js","static/js/check-3815600c.js","static/js/refresh-right-6177e75c.js","static/js/arrow-right-s-line-2977cc7e.js","static/css/index-17881e6a.css"]),remainingRouter=[{path:"/login",name:"Login",component:()=>__vitePreload(()=>import("./index-86e35936.js"),["static/js/index-86e35936.js","static/js/motion-8d1b992b.js","static/js/message-ac5811da.js","static/js/verifyCode-5a2fb2bf.js","static/js/phone.vue_vue_type_script_setup_true_lang-434cabb8.js","static/js/hooks-62079556.js","static/js/iphone-bcaa848c.js","static/js/index-24d2e7bb.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-14b58f53.js","static/js/index-639cd49d.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-8e834687.js","static/js/lock-fill-34b71c6c.js","static/js/user-3-fill-70ba8c19.js","static/js/update.vue_vue_type_script_setup_true_lang-2c86fdf0.js","static/js/dark-8da7fda0.js","static/js/app-9580cee8.js","static/js/epTheme-ec99570c.js","static/js/check-3815600c.js","static/css/index-90a3ebb5.css"]),meta:{title:$t("menus.hslogin"),showLink:!1,rank:101}},{path:"/redirect",component:Layout,meta:{title:$t("status.hsLoad"),showLink:!1,rank:102},children:[{path:"/redirect/:path(.*)",name:"Redirect",component:()=>__vitePreload(()=>import("./redirect-483f1a7b.js"),[])}]},{path:"/empty",name:"Empty",component:()=>__vitePreload(()=>import("./index-1e673eb0.js"),["static/js/index-1e673eb0.js","static/css/index-218e4ba3.css"]),meta:{title:$t("menus.hsempty"),showLink:!1,rank:103}}],modules$1=Object.assign({"./modules/able.ts":__vite_glob_0_0$1,"./modules/about.ts":__vite_glob_0_1$1,"./modules/components.ts":__vite_glob_0_2$1,"./modules/editor.ts":__vite_glob_0_3$1,"./modules/error.ts":__vite_glob_0_4$1,"./modules/flowchart.ts":__vite_glob_0_5$1,"./modules/formdesign.ts":__vite_glob_0_6,"./modules/guide.ts":__vite_glob_0_7,"./modules/home.ts":__vite_glob_0_8,"./modules/list.ts":__vite_glob_0_9,"./modules/menuoverflow.ts":__vite_glob_0_10,"./modules/nested.ts":__vite_glob_0_11,"./modules/ppt.ts":__vite_glob_0_12,"./modules/puredoc.ts":__vite_glob_0_13,"./modules/pureutils.ts":__vite_glob_0_14,"./modules/result.ts":__vite_glob_0_15,"./modules/table.ts":__vite_glob_0_16}),routes=[];Object.keys(modules$1).forEach($=>{routes.push(modules$1[$].default)});const constantRoutes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes)))),constantMenus=ascending(routes).concat(...remainingRouter),remainingPaths=Object.keys(remainingRouter).map($=>remainingRouter[$].path),router=createRouter({history:getHistoryMode("hash"),routes:constantRoutes.concat(...remainingRouter),strict:!0,scrollBehavior($,oe,ae){return new Promise(ie=>{if(ae)return ae;if(oe.meta.saveSrollTop){const le=document.documentElement.scrollTop||document.body.scrollTop;ie({left:0,top:le})}})}});function resetRouter(){router.getRoutes().forEach($=>{const{name:oe,meta:ae}=$;oe&&router.hasRoute(oe)&&(ae!=null&&ae.backstage)&&(router.removeRoute(oe),router.options.routes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes)))))}),usePermissionStoreHook().clearAllCachePage()}const whiteList=["/login"],{VITE_HIDE_HOME}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};router.beforeEach(($,oe,ae)=>{var _e,Ce,$e;(_e=$.meta)!=null&&_e.keepAlive&&(handleAliveRoute($,"add"),(oe.name===void 0||oe.name==="Redirect")&&handleAliveRoute($));const ie=Qn().getItem(sessionKey);NProgress.start();const le=dt($==null?void 0:$.name);le||$.matched.some(xe=>{if(!xe.meta.title)return"";const Ie=getConfig().Title;Ie?document.title=`${transformI18n(xe.meta.title)} | ${Ie}`:document.title=transformI18n(xe.meta.title)});function pe(){whiteList.includes($.fullPath)?ae(oe.fullPath):ae()}ie?((Ce=$.meta)!=null&&Ce.roles&&!isOneOfArray(($e=$.meta)==null?void 0:$e.roles,ie==null?void 0:ie.roles)&&ae({path:"/error/403"}),VITE_HIDE_HOME==="true"&&$.fullPath==="/welcome"&&ae({path:"/error/404"}),oe!=null&&oe.name?le?(Tt($==null?void 0:$.name),NProgress.done()):pe():(usePermissionStoreHook().wholeMenus.length===0&&$.path!=="/login"&&initRouter().then(xe=>{var Ie;if(!useMultiTagsStoreHook().getMultiTagsCache){const{path:Ne}=$,Fe=findRouteByPath(Ne,xe.options.routes[0].children);getTopMenu(!0),Fe&&((Ie=Fe.meta)!=null&&Ie.title)&&useMultiTagsStoreHook().handleTags("push",{path:Fe.path,name:Fe.name,meta:Fe.meta})}xe.push($.fullPath)}),pe())):$.path!=="/login"?whiteList.indexOf($.path)!==-1?ae():ae({path:"/login"}):ae()});router.afterEach(()=>{NProgress.done()});var _a$1;const isClient=typeof window<"u",toString=Object.prototype.toString,isNumber$1=$=>typeof $=="number",isString$2=$=>typeof $=="string",isObject$4=$=>toString.call($)==="[object Object]",noop$1=()=>{};isClient&&((_a$1=window==null?void 0:window.navigator)!=null&&_a$1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function tryOnScopeDispose($){return getCurrentScope()?(onScopeDispose($),!0):!1}function tryOnUnmounted($){getCurrentInstance()&&onUnmounted($)}function unrefElement($){var oe;const ae=unref($);return(oe=ae==null?void 0:ae.$el)!=null?oe:ae}const defaultWindow=isClient?window:void 0;function useEventListener(...$){let oe,ae,ie,le;if(isString$2($[0])?([ae,ie,le]=$,oe=defaultWindow):[oe,ae,ie,le]=$,!oe)return noop$1;let pe=noop$1;const _e=watch(()=>unrefElement(oe),$e=>{pe(),$e&&($e.addEventListener(ae,ie,le),pe=()=>{$e.removeEventListener(ae,ie,le),pe=noop$1})},{immediate:!0,flush:"post"}),Ce=()=>{_e(),pe()};return tryOnScopeDispose(Ce),Ce}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};function useIntersectionObserver($,oe,ae={}){const{root:ie,rootMargin:le="0px",threshold:pe=.1,window:_e=defaultWindow}=ae,Ce=_e&&"IntersectionObserver"in _e;let $e=noop$1;const xe=Ce?watch(()=>({el:unrefElement($),root:unrefElement(ie)}),({el:Ne,root:Fe})=>{if($e(),!Ne)return;const ze=new IntersectionObserver(oe,{root:Fe,rootMargin:le,threshold:pe});ze.observe(Ne),$e=()=>{ze.disconnect(),$e=noop$1}},{immediate:!0,flush:"post"}):noop$1,Ie=()=>{$e(),xe()};return tryOnScopeDispose(Ie),{isSupported:Ce,stop:Ie}}var SwipeDirection;(function($){$.UP="UP",$.RIGHT="RIGHT",$.DOWN="DOWN",$.LEFT="LEFT",$.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));const defaultTimestep=1/60*1e3,getCurrentTime=typeof performance<"u"?()=>performance.now():()=>Date.now(),onNextFrame=typeof window<"u"?$=>window.requestAnimationFrame($):$=>setTimeout(()=>$(getCurrentTime()),defaultTimestep);function createRenderStep($){let oe=[],ae=[],ie=0,le=!1,pe=!1;const _e=new WeakSet,Ce={schedule:($e,xe=!1,Ie=!1)=>{const Ne=Ie&&le,Fe=Ne?oe:ae;return xe&&_e.add($e),Fe.indexOf($e)===-1&&(Fe.push($e),Ne&&le&&(ie=oe.length)),$e},cancel:$e=>{const xe=ae.indexOf($e);xe!==-1&&ae.splice(xe,1),_e.delete($e)},process:$e=>{if(le){pe=!0;return}if(le=!0,[oe,ae]=[ae,oe],ae.length=0,ie=oe.length,ie)for(let xe=0;xe($[oe]=createRenderStep(()=>runNextFrame=!0),$),{}),sync=stepsOrder.reduce(($,oe)=>{const ae=steps[oe];return $[oe]=(ie,le=!1,pe=!1)=>(runNextFrame||startLoop(),ae.schedule(ie,le,pe)),$},{}),cancelSync=stepsOrder.reduce(($,oe)=>($[oe]=steps[oe].cancel,$),{});stepsOrder.reduce(($,oe)=>($[oe]=()=>steps[oe].process(frame),$),{});const processStep=$=>steps[$].process(frame),processFrame=$=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min($-frame.timestamp,maxElapsed),1),frame.timestamp=$,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},getFrameData=()=>frame;function __rest($,oe){var ae={};for(var ie in $)Object.prototype.hasOwnProperty.call($,ie)&&oe.indexOf(ie)<0&&(ae[ie]=$[ie]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,ie=Object.getOwnPropertySymbols($);leMath.min(Math.max(ae,$),oe),safeMin=.001,minDuration=.01,maxDuration=10,minDamping=.05,maxDamping=1;function findSpring({duration:$=800,bounce:oe=.25,velocity:ae=0,mass:ie=1}){let le,pe;warning($<=maxDuration*1e3);let _e=1-oe;_e=clamp$2(minDamping,maxDamping,_e),$=clamp$2(minDuration,maxDuration,$/1e3),_e<1?(le=xe=>{const Ie=xe*_e,Ne=Ie*$,Fe=Ie-ae,ze=calcAngularFreq(xe,_e),At=Math.exp(-Ne);return safeMin-Fe/ze*At},pe=xe=>{const Ne=xe*_e*$,Fe=Ne*ae+ae,ze=Math.pow(_e,2)*Math.pow(xe,2)*$,At=Math.exp(-Ne),Lt=calcAngularFreq(Math.pow(xe,2),_e);return(-le(xe)+safeMin>0?-1:1)*((Fe-ze)*At)/Lt}):(le=xe=>{const Ie=Math.exp(-xe*$),Ne=(xe-ae)*$+1;return-safeMin+Ie*Ne},pe=xe=>{const Ie=Math.exp(-xe*$),Ne=(ae-xe)*($*$);return Ie*Ne});const Ce=5/$,$e=approximateRoot(le,pe,Ce);if($=$*1e3,isNaN($e))return{stiffness:100,damping:10,duration:$};{const xe=Math.pow($e,2)*ie;return{stiffness:xe,damping:_e*2*Math.sqrt(ie*xe),duration:$}}}const rootIterations=12;function approximateRoot($,oe,ae){let ie=ae;for(let le=1;le$[ae]!==void 0)}function getSpringOptions($){let oe=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},$);if(!isSpringType($,physicsKeys)&&isSpringType($,durationKeys)){const ae=findSpring($);oe=Object.assign(Object.assign(Object.assign({},oe),ae),{velocity:0,mass:1}),oe.isResolvedFromDuration=!0}return oe}function spring($){var{from:oe=0,to:ae=1,restSpeed:ie=2,restDelta:le}=$,pe=__rest($,["from","to","restSpeed","restDelta"]);const _e={done:!1,value:oe};let{stiffness:Ce,damping:$e,mass:xe,velocity:Ie,duration:Ne,isResolvedFromDuration:Fe}=getSpringOptions(pe),ze=zero,At=zero;function Lt(){const hn=Ie?-(Ie/1e3):0,vn=ae-oe,_n=$e/(2*Math.sqrt(Ce*xe)),bn=Math.sqrt(Ce/xe)/1e3;if(le===void 0&&(le=Math.min(Math.abs(ae-oe)/100,.4)),_n<1){const Cn=calcAngularFreq(bn,_n);ze=En=>{const $n=Math.exp(-_n*bn*En);return ae-$n*((hn+_n*bn*vn)/Cn*Math.sin(Cn*En)+vn*Math.cos(Cn*En))},At=En=>{const $n=Math.exp(-_n*bn*En);return _n*bn*$n*(Math.sin(Cn*En)*(hn+_n*bn*vn)/Cn+vn*Math.cos(Cn*En))-$n*(Math.cos(Cn*En)*(hn+_n*bn*vn)-Cn*vn*Math.sin(Cn*En))}}else if(_n===1)ze=Cn=>ae-Math.exp(-bn*Cn)*(vn+(hn+bn*vn)*Cn);else{const Cn=bn*Math.sqrt(_n*_n-1);ze=En=>{const $n=Math.exp(-_n*bn*En),wn=Math.min(Cn*En,300);return ae-$n*((hn+_n*bn*vn)*Math.sinh(wn)+Cn*vn*Math.cosh(wn))/Cn}}}return Lt(),{next:hn=>{const vn=ze(hn);if(Fe)_e.done=hn>=Ne;else{const _n=At(hn)*1e3,bn=Math.abs(_n)<=ie,Cn=Math.abs(ae-vn)<=le;_e.done=bn&&Cn}return _e.value=_e.done?ae:vn,_e},flipTarget:()=>{Ie=-Ie,[oe,ae]=[ae,oe],Lt()}}}spring.needsInterpolation=($,oe)=>typeof $=="string"||typeof oe=="string";const zero=$=>0,progress=($,oe,ae)=>{const ie=oe-$;return ie===0?1:(ae-$)/ie},mix=($,oe,ae)=>-ae*$+ae*oe+$,clamp$1=($,oe)=>ae=>Math.max(Math.min(ae,oe),$),sanitize=$=>$%1?Number($.toFixed(5)):$,floatRegex=/(-)?([\d]*\.?[\d])+/g,colorRegex=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,singleColorRegex=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString$1($){return typeof $=="string"}const number$1={test:$=>typeof $=="number",parse:parseFloat,transform:$=>$},alpha=Object.assign(Object.assign({},number$1),{transform:clamp$1(0,1)}),scale$3=Object.assign(Object.assign({},number$1),{default:1}),createUnitType=$=>({test:oe=>isString$1(oe)&&oe.endsWith($)&&oe.split(" ").length===1,parse:parseFloat,transform:oe=>`${oe}${$}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),progressPercentage=Object.assign(Object.assign({},percent),{parse:$=>percent.parse($)/100,transform:$=>percent.transform($*100)}),isColorString=($,oe)=>ae=>!!(isString$1(ae)&&singleColorRegex.test(ae)&&ae.startsWith($)||oe&&Object.prototype.hasOwnProperty.call(ae,oe)),splitColor=($,oe,ae)=>ie=>{if(!isString$1(ie))return ie;const[le,pe,_e,Ce]=ie.match(floatRegex);return{[$]:parseFloat(le),[oe]:parseFloat(pe),[ae]:parseFloat(_e),alpha:Ce!==void 0?parseFloat(Ce):1}},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:$,saturation:oe,lightness:ae,alpha:ie=1})=>"hsla("+Math.round($)+", "+percent.transform(sanitize(oe))+", "+percent.transform(sanitize(ae))+", "+sanitize(alpha.transform(ie))+")"},clampRgbUnit=clamp$1(0,255),rgbUnit=Object.assign(Object.assign({},number$1),{transform:$=>Math.round(clampRgbUnit($))}),rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:$,green:oe,blue:ae,alpha:ie=1})=>"rgba("+rgbUnit.transform($)+", "+rgbUnit.transform(oe)+", "+rgbUnit.transform(ae)+", "+sanitize(alpha.transform(ie))+")"};function parseHex($){let oe="",ae="",ie="",le="";return $.length>5?(oe=$.substr(1,2),ae=$.substr(3,2),ie=$.substr(5,2),le=$.substr(7,2)):(oe=$.substr(1,1),ae=$.substr(2,1),ie=$.substr(3,1),le=$.substr(4,1),oe+=oe,ae+=ae,ie+=ie,le+=le),{red:parseInt(oe,16),green:parseInt(ae,16),blue:parseInt(ie,16),alpha:le?parseInt(le,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},color$1={test:$=>rgba.test($)||hex.test($)||hsla.test($),parse:$=>rgba.test($)?rgba.parse($):hsla.test($)?hsla.parse($):hex.parse($),transform:$=>isString$1($)?$:$.hasOwnProperty("red")?rgba.transform($):hsla.transform($)},colorToken="${c}",numberToken="${n}";function test($){var oe,ae,ie,le;return isNaN($)&&isString$1($)&&((ae=(oe=$.match(floatRegex))===null||oe===void 0?void 0:oe.length)!==null&&ae!==void 0?ae:0)+((le=(ie=$.match(colorRegex))===null||ie===void 0?void 0:ie.length)!==null&&le!==void 0?le:0)>0}function analyse$1($){typeof $=="number"&&($=`${$}`);const oe=[];let ae=0;const ie=$.match(colorRegex);ie&&(ae=ie.length,$=$.replace(colorRegex,colorToken),oe.push(...ie.map(color$1.parse)));const le=$.match(floatRegex);return le&&($=$.replace(floatRegex,numberToken),oe.push(...le.map(number$1.parse))),{values:oe,numColors:ae,tokenised:$}}function parse$2($){return analyse$1($).values}function createTransformer($){const{values:oe,numColors:ae,tokenised:ie}=analyse$1($),le=oe.length;return pe=>{let _e=ie;for(let Ce=0;Cetypeof $=="number"?0:$;function getAnimatableNone$1($){const oe=parse$2($);return createTransformer($)(oe.map(convertNumbersToZero))}const complex={test,parse:parse$2,createTransformer,getAnimatableNone:getAnimatableNone$1},maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter($){let[oe,ae]=$.slice(0,-1).split("(");if(oe==="drop-shadow")return $;const[ie]=ae.match(floatRegex)||[];if(!ie)return $;const le=ae.replace(ie,"");let pe=maxDefaults.has(oe)?1:0;return ie!==ae&&(pe*=100),oe+"("+pe+le+")"}const functionRegex=/([a-z-]*)\(.*?\)/g,filter$1=Object.assign(Object.assign({},complex),{getAnimatableNone:$=>{const oe=$.match(functionRegex);return oe?oe.map(applyDefaultFilter).join(" "):$}});function hueToRgb($,oe,ae){return ae<0&&(ae+=1),ae>1&&(ae-=1),ae<1/6?$+(oe-$)*6*ae:ae<1/2?oe:ae<2/3?$+(oe-$)*(2/3-ae)*6:$}function hslaToRgba({hue:$,saturation:oe,lightness:ae,alpha:ie}){$/=360,oe/=100,ae/=100;let le=0,pe=0,_e=0;if(!oe)le=pe=_e=ae;else{const Ce=ae<.5?ae*(1+oe):ae+oe-ae*oe,$e=2*ae-Ce;le=hueToRgb($e,Ce,$+1/3),pe=hueToRgb($e,Ce,$),_e=hueToRgb($e,Ce,$-1/3)}return{red:Math.round(le*255),green:Math.round(pe*255),blue:Math.round(_e*255),alpha:ie}}const mixLinearColor=($,oe,ae)=>{const ie=$*$,le=oe*oe;return Math.sqrt(Math.max(0,ae*(le-ie)+ie))},colorTypes=[hex,rgba,hsla],getColorType=$=>colorTypes.find(oe=>oe.test($)),mixColor=($,oe)=>{let ae=getColorType($),ie=getColorType(oe),le=ae.parse($),pe=ie.parse(oe);ae===hsla&&(le=hslaToRgba(le),ae=rgba),ie===hsla&&(pe=hslaToRgba(pe),ie=rgba);const _e=Object.assign({},le);return Ce=>{for(const $e in _e)$e!=="alpha"&&(_e[$e]=mixLinearColor(le[$e],pe[$e],Ce));return _e.alpha=mix(le.alpha,pe.alpha,Ce),ae.transform(_e)}},isNum=$=>typeof $=="number",combineFunctions=($,oe)=>ae=>oe($(ae)),pipe=(...$)=>$.reduce(combineFunctions);function getMixer($,oe){return isNum($)?ae=>mix($,oe,ae):color$1.test($)?mixColor($,oe):mixComplex($,oe)}const mixArray=($,oe)=>{const ae=[...$],ie=ae.length,le=$.map((pe,_e)=>getMixer(pe,oe[_e]));return pe=>{for(let _e=0;_e{const ae=Object.assign(Object.assign({},$),oe),ie={};for(const le in ae)$[le]!==void 0&&oe[le]!==void 0&&(ie[le]=getMixer($[le],oe[le]));return le=>{for(const pe in ie)ae[pe]=ie[pe](le);return ae}};function analyse($){const oe=complex.parse($),ae=oe.length;let ie=0,le=0,pe=0;for(let _e=0;_e{const ae=complex.createTransformer(oe),ie=analyse($),le=analyse(oe);return ie.numHSL===le.numHSL&&ie.numRGB===le.numRGB&&ie.numNumbers>=le.numNumbers?pipe(mixArray(ie.parsed,le.parsed),ae):_e=>`${_e>0?oe:$}`},mixNumber=($,oe)=>ae=>mix($,oe,ae);function detectMixerFactory($){if(typeof $=="number")return mixNumber;if(typeof $=="string")return color$1.test($)?mixColor:mixComplex;if(Array.isArray($))return mixArray;if(typeof $=="object")return mixObject}function createMixers($,oe,ae){const ie=[],le=ae||detectMixerFactory($[0]),pe=$.length-1;for(let _e=0;_eae(progress($,oe,ie))}function slowInterpolate($,oe){const ae=$.length,ie=ae-1;return le=>{let pe=0,_e=!1;if(le<=$[0]?_e=!0:le>=$[ie]&&(pe=ie-1,_e=!0),!_e){let $e=1;for(;$ele||$e===ie);$e++);pe=$e-1}const Ce=progress($[pe],$[pe+1],le);return oe[pe](Ce)}}function interpolate($,oe,{clamp:ae=!0,ease:ie,mixer:le}={}){const pe=$.length;invariant(pe===oe.length),invariant(!ie||!Array.isArray(ie)||ie.length===pe-1),$[0]>$[pe-1]&&($=[].concat($),oe=[].concat(oe),$.reverse(),oe.reverse());const _e=createMixers(oe,ie,le),Ce=pe===2?fastInterpolate($,_e):slowInterpolate($,_e);return ae?$e=>Ce(clamp$2($[0],$[pe-1],$e)):Ce}const reverseEasing=$=>oe=>1-$(1-oe),mirrorEasing=$=>oe=>oe<=.5?$(2*oe)/2:(2-$(2*(1-oe)))/2,createExpoIn=$=>oe=>Math.pow(oe,$),createBackIn=$=>oe=>oe*oe*(($+1)*oe-$),createAnticipate=$=>{const oe=createBackIn($);return ae=>(ae*=2)<1?.5*oe(ae):.5*(2-Math.pow(2,-10*(ae-1)))},DEFAULT_OVERSHOOT_STRENGTH=1.525,BOUNCE_FIRST_THRESHOLD=4/11,BOUNCE_SECOND_THRESHOLD=8/11,BOUNCE_THIRD_THRESHOLD=9/10,linear=$=>$,easeIn=createExpoIn(2),easeOut=reverseEasing(easeIn),easeInOut=mirrorEasing(easeIn),circIn=$=>1-Math.sin(Math.acos($)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circOut),backIn=createBackIn(DEFAULT_OVERSHOOT_STRENGTH),backOut=reverseEasing(backIn),backInOut=mirrorEasing(backIn),anticipate=createAnticipate(DEFAULT_OVERSHOOT_STRENGTH),ca=4356/361,cb=35442/1805,cc=16061/1805,bounceOut=$=>{if($===1||$===0)return $;const oe=$*$;return $$<.5?.5*(1-bounceOut(1-$*2)):.5*bounceOut($*2-1)+.5;function defaultEasing($,oe){return $.map(()=>oe||easeInOut).splice(0,$.length-1)}function defaultOffset($){const oe=$.length;return $.map((ae,ie)=>ie!==0?ie/(oe-1):0)}function convertOffsetToTimes($,oe){return $.map(ae=>ae*oe)}function keyframes$1({from:$=0,to:oe=1,ease:ae,offset:ie,duration:le=300}){const pe={done:!1,value:$},_e=Array.isArray(oe)?oe:[$,oe],Ce=convertOffsetToTimes(ie&&ie.length===_e.length?ie:defaultOffset(_e),le);function $e(){return interpolate(Ce,_e,{ease:Array.isArray(ae)?ae:defaultEasing(_e,ae)})}let xe=$e();return{next:Ie=>(pe.value=xe(Ie),pe.done=Ie>=le,pe),flipTarget:()=>{_e.reverse(),xe=$e()}}}function decay({velocity:$=0,from:oe=0,power:ae=.8,timeConstant:ie=350,restDelta:le=.5,modifyTarget:pe}){const _e={done:!1,value:oe};let Ce=ae*$;const $e=oe+Ce,xe=pe===void 0?$e:pe($e);return xe!==$e&&(Ce=xe-oe),{next:Ie=>{const Ne=-Ce*Math.exp(-Ie/ie);return _e.done=!(Ne>le||Ne<-le),_e.value=_e.done?xe:xe+Ne,_e},flipTarget:()=>{}}}const types={keyframes:keyframes$1,spring,decay};function detectAnimationFromOptions($){if(Array.isArray($.to))return keyframes$1;if(types[$.type])return types[$.type];const oe=new Set(Object.keys($));return oe.has("ease")||oe.has("duration")&&!oe.has("dampingRatio")?keyframes$1:oe.has("dampingRatio")||oe.has("stiffness")||oe.has("mass")||oe.has("damping")||oe.has("restSpeed")||oe.has("restDelta")?spring:keyframes$1}function loopElapsed($,oe,ae=0){return $-oe-ae}function reverseElapsed($,oe,ae=0,ie=!0){return ie?loopElapsed(oe+-$,oe,ae):oe-($-oe)+ae}function hasRepeatDelayElapsed($,oe,ae,ie){return ie?$>=oe+ae:$<=-ae}const framesync=$=>{const oe=({delta:ae})=>$(ae);return{start:()=>sync.update(oe,!0),stop:()=>cancelSync.update(oe)}};function animate($){var oe,ae,{from:ie,autoplay:le=!0,driver:pe=framesync,elapsed:_e=0,repeat:Ce=0,repeatType:$e="loop",repeatDelay:xe=0,onPlay:Ie,onStop:Ne,onComplete:Fe,onRepeat:ze,onUpdate:At}=$,Lt=__rest($,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:hn}=Lt,vn,_n=0,bn=Lt.duration,Cn,En=!1,$n=!0,wn;const Tn=detectAnimationFromOptions(Lt);!((ae=(oe=Tn).needsInterpolation)===null||ae===void 0)&&ae.call(oe,ie,hn)&&(wn=interpolate([0,100],[ie,hn],{clamp:!1}),ie=0,hn=100);const xn=Tn(Object.assign(Object.assign({},Lt),{from:ie,to:hn}));function kn(){_n++,$e==="reverse"?($n=_n%2===0,_e=reverseElapsed(_e,bn,xe,$n)):(_e=loopElapsed(_e,bn,xe),$e==="mirror"&&xn.flipTarget()),En=!1,ze&&ze()}function An(){vn.stop(),Fe&&Fe()}function On(Rn){if($n||(Rn=-Rn),_e+=Rn,!En){const zn=xn.next(Math.max(0,_e));Cn=zn.value,wn&&(Cn=wn(Cn)),En=$n?zn.done:_e<=0}At==null||At(Cn),En&&(_n===0&&(bn??(bn=_e)),_n{Ne==null||Ne(),vn.stop()}}}function velocityPerSecond($,oe){return oe?$*(1e3/oe):0}function inertia({from:$=0,velocity:oe=0,min:ae,max:ie,power:le=.8,timeConstant:pe=750,bounceStiffness:_e=500,bounceDamping:Ce=10,restDelta:$e=1,modifyTarget:xe,driver:Ie,onUpdate:Ne,onComplete:Fe,onStop:ze}){let At;function Lt(bn){return ae!==void 0&&bnie}function hn(bn){return ae===void 0?ie:ie===void 0||Math.abs(ae-bn){var En;Ne==null||Ne(Cn),(En=bn.onUpdate)===null||En===void 0||En.call(bn,Cn)},onComplete:Fe,onStop:ze}))}function _n(bn){vn(Object.assign({type:"spring",stiffness:_e,damping:Ce,restDelta:$e},bn))}if(Lt($))_n({from:$,velocity:oe,to:hn($)});else{let bn=le*oe+$;typeof xe<"u"&&(bn=xe(bn));const Cn=hn(bn),En=Cn===ae?-1:1;let $n,wn;const Tn=xn=>{$n=wn,wn=xn,oe=velocityPerSecond(xn-$n,getFrameData().delta),(En===1&&xn>Cn||En===-1&&xnAt==null?void 0:At.stop()}}const a=($,oe)=>1-3*oe+3*$,b=($,oe)=>3*oe-6*$,c$1=$=>3*$,calcBezier=($,oe,ae)=>((a(oe,ae)*$+b(oe,ae))*$+c$1(oe))*$,getSlope=($,oe,ae)=>3*a(oe,ae)*$*$+2*b(oe,ae)*$+c$1(oe),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide($,oe,ae,ie,le){let pe,_e,Ce=0;do _e=oe+(ae-oe)/2,pe=calcBezier(_e,ie,le)-$,pe>0?ae=_e:oe=_e;while(Math.abs(pe)>subdivisionPrecision&&++Ce=newtonMinSlope?newtonRaphsonIterate(_e,Ne,$,ae):Fe===0?Ne:binarySubdivide(_e,Ce,Ce+kSampleStepSize,$,ae)}return _e=>_e===0||_e===1?_e:calcBezier(pe(_e),oe,ie)}const motionState={};class SubscriptionManager{constructor(){this.subscriptions=new Set}add(oe){return this.subscriptions.add(oe),()=>this.subscriptions.delete(oe)}notify(oe,ae,ie){if(this.subscriptions.size)for(const le of this.subscriptions)le(oe,ae,ie)}clear(){this.subscriptions.clear()}}const isFloat=$=>!isNaN(parseFloat($));class MotionValue{constructor(oe){this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new SubscriptionManager,this.canTrackVelocity=!1,this.updateAndNotify=ae=>{this.prev=this.current,this.current=ae;const{delta:ie,timestamp:le}=getFrameData();this.lastUpdated!==le&&(this.timeDelta=ie,this.lastUpdated=le),sync.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>sync.postRender(this.velocityCheck),this.velocityCheck=({timestamp:ae})=>{this.canTrackVelocity||(this.canTrackVelocity=isFloat(this.current)),ae!==this.lastUpdated&&(this.prev=this.current)},this.prev=this.current=oe,this.canTrackVelocity=isFloat(this.current)}onChange(oe){return this.updateSubscribers.add(oe)}clearListeners(){this.updateSubscribers.clear()}set(oe){this.updateAndNotify(oe)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(oe){return this.stop(),new Promise(ae=>{const{stop:ie}=oe(ae);this.stopAnimation=ie}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function getMotionValue($){return new MotionValue($)}const{isArray:isArray$2}=Array;function useMotionValues(){const $=ref({}),oe=ie=>{const le=pe=>{$.value[pe]&&($.value[pe].stop(),$.value[pe].destroy(),del($.value,pe))};ie?isArray$2(ie)?ie.forEach(le):le(ie):Object.keys($.value).forEach(le)},ae=(ie,le,pe)=>{if($.value[ie])return $.value[ie];const _e=getMotionValue(le);return _e.onChange(Ce=>{set$3(pe,ie,Ce)}),set$3($.value,ie,_e),_e};return tryOnUnmounted(oe),{motionValues:$,get:ae,stop:oe}}const isKeyframesTarget=$=>Array.isArray($),underDampedSpring=()=>({type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}),criticallyDampedSpring=$=>({type:"spring",stiffness:550,damping:$===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}),overDampedSpring=$=>({type:"spring",stiffness:550,damping:$===0?100:30,restDelta:.01,restSpeed:10}),linearTween=()=>({type:"keyframes",ease:"linear",duration:300}),keyframes=$=>({type:"keyframes",duration:800,values:$}),defaultTransitions={default:overDampedSpring,x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,backgroundColor:linearTween,color:linearTween,opacity:linearTween},getDefaultTransition=($,oe)=>{let ae;return isKeyframesTarget(oe)?ae=keyframes:ae=defaultTransitions[$]||defaultTransitions.default,{to:oe,...ae(oe)}},int={...number$1,transform:Math.round},valueTypes={color:color$1,backgroundColor:color$1,outlineColor:color$1,fill:color$1,stroke:color$1,borderColor:color$1,borderTopColor:color$1,borderRightColor:color$1,borderBottomColor:color$1,borderLeftColor:color$1,borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale:scale$3,scaleX:scale$3,scaleY:scale$3,scaleZ:scale$3,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int,filter:filter$1,WebkitFilter:filter$1,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},getValueType=$=>valueTypes[$],getValueAsType=($,oe)=>oe&&typeof $=="number"&&oe.transform?oe.transform($):$;function getAnimatableNone($,oe){let ae=getValueType($);return ae!==filter$1&&(ae=complex),ae.getAnimatableNone?ae.getAnimatableNone(oe):void 0}const easingLookup={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut},easingDefinitionToFunction=$=>{if(Array.isArray($)){const[oe,ae,ie,le]=$;return cubicBezier(oe,ae,ie,le)}else if(typeof $=="string")return easingLookup[$];return $},isEasingArray=$=>Array.isArray($)&&typeof $[0]!="number",isAnimatable=($,oe)=>$==="zIndex"?!1:!!(typeof oe=="number"||Array.isArray(oe)||typeof oe=="string"&&complex.test(oe)&&!oe.startsWith("url("));function hydrateKeyframes($){return Array.isArray($.to)&&$.to[0]===null&&($.to=[...$.to],$.to[0]=$.from),$}function convertTransitionToAnimationOptions({ease:$,times:oe,delay:ae,...ie}){const le={...ie};return oe&&(le.offset=oe),$&&(le.ease=isEasingArray($)?$.map(easingDefinitionToFunction):easingDefinitionToFunction($)),ae&&(le.elapsed=-ae),le}function getPopmotionAnimationOptions($,oe,ae){return Array.isArray(oe.to)&&($.duration||($.duration=800)),hydrateKeyframes(oe),isTransitionDefined($)||($={...$,...getDefaultTransition(ae,oe.to)}),{...oe,...convertTransitionToAnimationOptions($)}}function isTransitionDefined({delay:$,repeat:oe,repeatType:ae,repeatDelay:ie,from:le,...pe}){return!!Object.keys(pe).length}function getValueTransition($,oe){return $[oe]||$.default||$}function getAnimation($,oe,ae,ie,le){const pe=getValueTransition(ie,$);let _e=pe.from===null||pe.from===void 0?oe.get():pe.from;const Ce=isAnimatable($,ae);_e==="none"&&Ce&&typeof ae=="string"&&(_e=getAnimatableNone($,ae));const $e=isAnimatable($,_e);function xe(Ne){const Fe={from:_e,to:ae,velocity:ie.velocity?ie.velocity:oe.getVelocity(),onUpdate:ze=>oe.set(ze)};return pe.type==="inertia"||pe.type==="decay"?inertia({...Fe,...pe}):animate({...getPopmotionAnimationOptions(pe,Fe,$),onUpdate:ze=>{Fe.onUpdate(ze),pe.onUpdate&&pe.onUpdate(ze)},onComplete:()=>{ie.onComplete&&ie.onComplete(),le&&le(),Ne&&Ne()}})}function Ie(Ne){return oe.set(ae),ie.onComplete&&ie.onComplete(),le&&le(),Ne&&Ne(),{stop:()=>{}}}return!$e||!Ce||pe.type===!1?Ie:xe}function useMotionTransitions(){const{motionValues:$,stop:oe,get:ae}=useMotionValues();return{motionValues:$,stop:oe,push:(le,pe,_e,Ce={},$e)=>{const xe=_e[le],Ie=ae(le,xe,_e);if(Ce&&Ce.immediate){Ie.set(pe);return}const Ne=getAnimation(le,Ie,pe,Ce,$e);Ie.start(Ne)}}}function useMotionControls($,oe={},{motionValues:ae,push:ie,stop:le}=useMotionTransitions()){const pe=unref(oe),_e=ref(!1),Ce=watch(ae,Fe=>{_e.value=Object.values(Fe).filter(ze=>ze.isAnimating()).length>0},{immediate:!0,deep:!0}),$e=Fe=>{if(!pe||!pe[Fe])throw new Error(`The variant ${Fe} does not exist.`);return pe[Fe]},xe=Fe=>(typeof Fe=="string"&&(Fe=$e(Fe)),Promise.all(Object.entries(Fe).map(([ze,At])=>{if(ze!=="transition")return new Promise(Lt=>{ie(ze,At,$,Fe.transition||getDefaultTransition(ze,Fe[ze]),Lt)})}).filter(Boolean)));return{isAnimating:_e,apply:xe,set:Fe=>{const ze=isObject$4(Fe)?Fe:$e(Fe);Object.entries(ze).forEach(([At,Lt])=>{At!=="transition"&&ie(At,Lt,$,{immediate:!0})})},stopTransitions:()=>{Ce(),le()},leave:async Fe=>{let ze;if(pe&&(pe.leave&&(ze=pe.leave),!pe.leave&&pe.initial&&(ze=pe.initial)),!ze){Fe();return}await xe(ze),Fe()}}}const isBrowser=typeof window<"u",supportsPointerEvents=()=>isBrowser&&window.onpointerdown===null,supportsTouchEvents=()=>isBrowser&&window.ontouchstart===null,supportsMouseEvents=()=>isBrowser&&window.onmousedown===null;function registerEventListeners({target:$,state:oe,variants:ae,apply:ie}){const le=unref(ae),pe=[],_e=(...At)=>{const Lt=useEventListener.apply(null,At);return pe.push(Lt),Lt},Ce=ref(!1),$e=ref(!1),xe=ref(!1),Ie=computed(()=>{let At=[];return le&&(le.hovered&&(At=[...At,...Object.keys(le.hovered)]),le.tapped&&(At=[...At,...Object.keys(le.tapped)]),le.focused&&(At=[...At,...Object.keys(le.focused)])),At}),Ne=computed(()=>{const At={};Object.assign(At,oe.value),Ce.value&&le.hovered&&Object.assign(At,le.hovered),$e.value&&le.tapped&&Object.assign(At,le.tapped),xe.value&&le.focused&&Object.assign(At,le.focused);for(const Lt in At)Ie.value.includes(Lt)||delete At[Lt];return At});le.hovered&&(_e($,"mouseenter",()=>{Ce.value=!0}),_e($,"mouseleave",()=>{Ce.value=!1,$e.value=!1}),_e($,"mouseout",()=>{Ce.value=!1,$e.value=!1})),le.tapped&&(supportsMouseEvents()&&(_e($,"mousedown",()=>{$e.value=!0}),_e($,"mouseup",()=>{$e.value=!1})),supportsPointerEvents()&&(_e($,"pointerdown",()=>{$e.value=!0}),_e($,"pointerup",()=>{$e.value=!1})),supportsTouchEvents()&&(_e($,"touchstart",()=>{$e.value=!0}),_e($,"touchend",()=>{$e.value=!1}))),le.focused&&(_e($,"focus",()=>{xe.value=!0}),_e($,"blur",()=>{xe.value=!1}));const Fe=watch(Ne,ie);return{stop:()=>{pe.forEach(At=>At()),Fe()}}}function registerLifeCycleHooks({set:$,target:oe,variants:ae,variant:ie}){const le=unref(ae);return{stop:watch(()=>oe,()=>{le&&(le.initial&&$("initial"),le.enter&&(ie.value="enter"))},{immediate:!0,flush:"pre"})}}function registerVariantsSync({state:$,apply:oe}){return{stop:watch($,ie=>{ie&&oe(ie)},{immediate:!0})}}function registerVisibilityHooks({target:$,variants:oe,variant:ae}){const ie=unref(oe);let le=noop$1;if(ie&&(ie.visible||ie.visibleOnce)){const{stop:pe}=useIntersectionObserver($,([{isIntersecting:_e}])=>{ie.visible?_e?ae.value="visible":ae.value="initial":ie.visibleOnce&&(_e?ae.value!=="visibleOnce"&&(ae.value="visibleOnce"):ae.value||(ae.value="initial"))});le=pe}return{stop:le}}function useMotionFeatures($,oe={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){const ae=ref([]);if(oe.lifeCycleHooks){const{stop:le}=registerLifeCycleHooks($);ae.value.push(le)}if(oe.syncVariants){const{stop:le}=registerVariantsSync($);ae.value.push(le)}if(oe.visibilityHooks){const{stop:le}=registerVisibilityHooks($);ae.value.push(le)}if(oe.eventListeners){const{stop:le}=registerEventListeners($);ae.value.push(le)}const ie=()=>ae.value.forEach(le=>le());return tryOnUnmounted(ie),{stop:ie}}function reactiveStyle($={}){const oe=reactive({...$}),ae=ref({});return watch(oe,()=>{const ie={};for(const[le,pe]of Object.entries(oe)){const _e=getValueType(le),Ce=getValueAsType(pe,_e);ie[le]=Ce}ae.value=ie},{immediate:!0,deep:!0}),{state:oe,style:ae}}const transformAxes=["","X","Y","Z"],order=["perspective","translate","scale","rotate","skew"],transformProps=["transformPerspective","x","y","z"];order.forEach($=>{transformAxes.forEach(oe=>{const ae=$+oe;transformProps.push(ae)})});const transformPropSet=new Set(transformProps);function isTransformProp($){return transformPropSet.has($)}const transformOriginProps=new Set(["originX","originY","originZ"]);function isTransformOriginProp($){return transformOriginProps.has($)}function splitValues($){const oe={},ae={};return Object.entries($).forEach(([ie,le])=>{isTransformProp(ie)||isTransformOriginProp(ie)?oe[ie]=le:ae[ie]=le}),{transform:oe,style:ae}}function useElementStyle($,oe){let ae,ie;const{state:le,style:pe}=reactiveStyle(),_e=watch(()=>unrefElement($),xe=>{if(xe){ie=xe;for(const Ie of Object.keys(valueTypes))xe.style[Ie]===null||xe.style[Ie]===""||isTransformProp(Ie)||isTransformOriginProp(Ie)||set$3(le,Ie,xe.style[Ie]);ae&&Object.entries(ae).forEach(([Ie,Ne])=>set$3(xe.style,Ie,Ne)),oe&&oe(le)}},{immediate:!0}),Ce=watch(pe,xe=>{if(!ie){ae=xe;return}for(const Ie in xe)set$3(ie.style,Ie,xe[Ie])},{immediate:!0});return{style:le,stop:()=>{ie=void 0,ae=void 0,_e(),Ce()}}}const translateAlias={x:"translateX",y:"translateY",z:"translateZ"};function reactiveTransform($={},oe=!0){const ae=reactive({...$}),ie=ref("");return watch(ae,le=>{let pe="",_e=!1;if(oe&&(le.x||le.y||le.z)){const Ce=[le.x||0,le.y||0,le.z||0].map(px.transform).join(",");pe+=`translate3d(${Ce}) `,_e=!0}for(const[Ce,$e]of Object.entries(le)){if(oe&&(Ce==="x"||Ce==="y"||Ce==="z"))continue;const xe=getValueType(Ce),Ie=getValueAsType($e,xe);pe+=`${translateAlias[Ce]||Ce}(${Ie}) `}oe&&!_e&&(pe+="translateZ(0px) "),ie.value=pe.trim()},{immediate:!0,deep:!0}),{state:ae,transform:ie}}function parseTransform($){const oe=$.trim().split(/\) |\)/);if(oe.length===1)return{};const ae=ie=>ie.endsWith("px")||ie.endsWith("deg")?parseFloat(ie):isNaN(Number(ie))?Number(ie):ie;return oe.reduce((ie,le)=>{if(!le)return ie;const[pe,_e]=le.split("("),$e=_e.split(",").map(Ie=>ae(Ie.endsWith(")")?Ie.replace(")",""):Ie.trim())),xe=$e.length===1?$e[0]:$e;return{...ie,[pe]:xe}},{})}function stateFromTransform($,oe){Object.entries(parseTransform(oe)).forEach(([ae,ie])=>{ie=parseFloat(ie);const le=["x","y","z"];if(ae==="translate3d"){if(ie===0){le.forEach(pe=>{set$3($,pe,0)});return}ie.forEach((pe,_e)=>{set$3($,le[_e],pe)});return}if(ae==="translateX"){set$3($,"x",ie);return}if(ae==="translateY"){set$3($,"y",ie);return}if(ae==="translateZ"){set$3($,"z",ie);return}set$3($,ae,ie)})}function useElementTransform($,oe){let ae,ie;const{state:le,transform:pe}=reactiveTransform(),_e=watch(()=>unrefElement($),xe=>{xe&&(ie=xe,xe.style.transform&&stateFromTransform(le,xe.style.transform),ae&&(xe.style.transform=ae),oe&&oe(le))},{immediate:!0}),Ce=watch(pe,xe=>{if(!ie){ae=xe;return}ie.style.transform=xe},{immediate:!0});return{transform:le,stop:()=>{ae=void 0,ie=void 0,_e(),Ce()}}}function useMotionProperties($,oe){const ae=reactive({}),ie=Ne=>{Object.entries(Ne).forEach(([Fe,ze])=>{set$3(ae,Fe,ze)})},{style:le,stop:pe}=useElementStyle($,ie),{transform:_e,stop:Ce}=useElementTransform($,ie),$e=watch(ae,Ne=>{Object.entries(Ne).forEach(([Fe,ze])=>{const At=isTransformProp(Fe)?_e:le;At[Fe]&&At[Fe]===ze||set$3(At,Fe,ze)})},{immediate:!0,deep:!0}),xe=watch(()=>unrefElement($),Ne=>{Ne&&oe&&ie(oe)},{immediate:!0});return{motionProperties:ae,style:le,transform:_e,stop:()=>{pe(),Ce(),$e(),xe()}}}function useMotionVariants($={}){const oe=unref($),ae=ref();return{state:computed(()=>{if(ae.value)return oe[ae.value]}),variant:ae}}function useMotion($,oe={},ae){const{motionProperties:ie,stop:le}=useMotionProperties($),{variant:pe,state:_e}=useMotionVariants(oe),Ce=useMotionControls(ie,oe),$e={target:$,variant:pe,variants:oe,state:_e,motionProperties:ie,...Ce,stop:(Ie=!1)=>{}},{stop:xe}=useMotionFeatures($e,ae);return $e.stop=(Ie=!1)=>{const Ne=()=>{$e.stopTransitions(),le(),xe()};if(!Ie&&oe.value&&oe.value.leave){const Fe=watch($e.isAnimating,ze=>{ze||(Fe(),Ne())})}else Ne()},tryOnUnmounted(()=>$e.stop()),$e}const directivePropsKeys=["initial","enter","leave","visible","visible-once","hovered","tapped","focused","delay"],resolveVariants=($,oe)=>{const ae=$.props?$.props:$.data&&$.data.attrs?$.data.attrs:{};ae&&(ae.variants&&isObject$4(ae.variants)&&(oe.value={...oe.value,...ae.variants}),directivePropsKeys.forEach(ie=>{if(ie==="delay"){if(ae&&ae[ie]&&isNumber$1(ae[ie])){const le=ae[ie];oe&&oe.value&&(oe.value.enter&&(oe.value.enter.transition||(oe.value.enter.transition={}),oe.value.enter.transition={...oe.value.enter.transition,delay:le}),oe.value.visible&&(oe.value.visible.transition||(oe.value.visible.transition={}),oe.value.visible.transition={...oe.value.visible.transition,delay:le}),oe.value.visibleOnce&&(oe.value.visibleOnce.transition||(oe.value.visibleOnce.transition={}),oe.value.visibleOnce.transition={...oe.value.visibleOnce.transition,delay:le}))}return}ie==="visible-once"&&(ie="visibleOnce"),ae&&ae[ie]&&isObject$4(ae[ie])&&(oe.value[ie]=ae[ie])}))},directive=$=>{const oe=(ie,le,pe)=>{const _e=le.value&&typeof le.value=="string"?le.value:pe.key;_e&&motionState[_e]&&motionState[_e].stop();const Ce=ref($||{});typeof le.value=="object"&&(Ce.value=le.value),resolveVariants(pe,Ce);const $e=useMotion(ie,Ce);ie.motionInstance=$e,_e&&set$3(motionState,_e,$e)},ae=ie=>{ie.motionInstance&&ie.motionInstance.stop()};return{created:oe,unmounted:ae,bind:oe,unbind:ae,getSSRProps(ie,le){const{initial:pe}=ie.value||le.props||{};if(!pe||Object.keys(pe).length===0)return;const{transform:_e,style:Ce}=splitValues(pe),{transform:$e}=reactiveTransform(_e),{style:xe}=reactiveStyle(Ce);return $e.value&&(xe.value.transform=$e.value),{style:xe.value}}}},fade={initial:{opacity:0},enter:{opacity:1}},fadeVisible={initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce={initial:{opacity:0},visibleOnce:{opacity:1}},pop$1={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollLeft={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleLeft={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceLeft={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollRight={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleRight={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollTop={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleTop={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceTop={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollBottom={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceBottom={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},slideLeft={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideVisibleLeft={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceLeft={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideRight={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideVisibleRight={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceRight={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideTop={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleTop={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceTop={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideBottom={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceBottom={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},presets={__proto__:null,fade,fadeVisible,fadeVisibleOnce,pop:pop$1,popVisible,popVisibleOnce,rollBottom,rollLeft,rollRight,rollTop,rollVisibleBottom,rollVisibleLeft,rollVisibleRight,rollVisibleTop,rollVisibleOnceBottom,rollVisibleOnceLeft,rollVisibleOnceRight,rollVisibleOnceTop,slideBottom,slideLeft,slideRight,slideTop,slideVisibleBottom,slideVisibleLeft,slideVisibleRight,slideVisibleTop,slideVisibleOnceBottom,slideVisibleOnceLeft,slideVisibleOnceRight,slideVisibleOnceTop};function slugify($){const oe="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",ae="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",ie=new RegExp(oe.split("").join("|"),"g");return $.toString().replace(/[A-Z]/g,le=>`-${le}`).toLowerCase().replace(/\s+/g,"-").replace(ie,le=>ae.charAt(oe.indexOf(le))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const MotionPlugin={install($,oe){if($.directive("motion",directive()),!oe||oe&&!oe.excludePresets)for(const ae in presets){const ie=presets[ae];$.directive(`motion-${slugify(ae)}`,directive(ie))}if(oe&&oe.directives)for(const ae in oe.directives){const ie=oe.directives[ae];!ie.initial&&__DEV__&&console.warn(`Your directive v-motion-${ae} is missing initial variant!`),$.directive(`motion-${ae}`,directive(ie))}}};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var extendStatics=function($,oe){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,ie){ae.__proto__=ie}||function(ae,ie){for(var le in ie)Object.prototype.hasOwnProperty.call(ie,le)&&(ae[le]=ie[le])},extendStatics($,oe)};function __extends($,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Class extends value "+String(oe)+" is not a constructor or null");extendStatics($,oe);function ae(){this.constructor=$}$.prototype=oe===null?Object.create(oe):(ae.prototype=oe.prototype,new ae)}var Browser=function(){function $(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return $}(),Env=function(){function $(){this.browser=new Browser,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return $}(),env=new Env;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(env.wxa=!0,env.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?env.worker=!0:typeof navigator>"u"?(env.node=!0,env.svgSupported=!0):detect(navigator.userAgent,env);function detect($,oe){var ae=oe.browser,ie=$.match(/Firefox\/([\d.]+)/),le=$.match(/MSIE\s([\d.]+)/)||$.match(/Trident\/.+?rv:(([\d.]+))/),pe=$.match(/Edge?\/([\d.]+)/),_e=/micromessenger/i.test($);ie&&(ae.firefox=!0,ae.version=ie[1]),le&&(ae.ie=!0,ae.version=le[1]),pe&&(ae.edge=!0,ae.version=pe[1],ae.newEdge=+pe[1].split(".")[0]>18),_e&&(ae.weChat=!0),oe.svgSupported=typeof SVGRect<"u",oe.touchEventsSupported="ontouchstart"in window&&!ae.ie&&!ae.edge,oe.pointerEventsSupported="onpointerdown"in window&&(ae.edge||ae.ie&&+ae.version>=11),oe.domSupported=typeof document<"u";var Ce=document.documentElement.style;oe.transform3dSupported=(ae.ie&&"transition"in Ce||ae.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in Ce)&&!("OTransition"in Ce),oe.transformSupported=oe.transform3dSupported||ae.ie&&+ae.version>=9}const env$1=env;var DEFAULT_FONT_SIZE=12,DEFAULT_FONT_FAMILY="sans-serif",DEFAULT_FONT=DEFAULT_FONT_SIZE+"px "+DEFAULT_FONT_FAMILY,OFFSET=20,SCALE=100,defaultWidthMapStr="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function getTextWidthMap($){var oe={};if(typeof JSON>"u")return oe;for(var ae=0;ae<$.length;ae++){var ie=String.fromCharCode(ae+32),le=($.charCodeAt(ae)-OFFSET)/SCALE;oe[ie]=le}return oe}var DEFAULT_TEXT_WIDTH_MAP=getTextWidthMap(defaultWidthMapStr),platformApi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var $,oe;return function(ae,ie){if(!$){var le=platformApi.createCanvas();$=le&&le.getContext("2d")}if($)return oe!==ie&&(oe=$.font=ie||DEFAULT_FONT),$.measureText(ae);ae=ae||"",ie=ie||DEFAULT_FONT;var pe=/(\d+)px/.exec(ie),_e=pe&&+pe[1]||DEFAULT_FONT_SIZE,Ce=0;if(ie.indexOf("mono")>=0)Ce=_e*ae.length;else for(var $e=0;$e>1)%2;Ce.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",ie[$e]+":0",le[xe]+":0",ie[1-$e]+":auto",le[1-xe]+":auto",""].join("!important;"),$.appendChild(_e),ae.push(_e)}return ae}function preparePointerTransformer($,oe,ae){for(var ie=ae?"invTrans":"trans",le=oe[ie],pe=oe.srcCoords,_e=[],Ce=[],$e=!0,xe=0;xe<4;xe++){var Ie=$[xe].getBoundingClientRect(),Ne=2*xe,Fe=Ie.left,ze=Ie.top;_e.push(Fe,ze),$e=$e&&pe&&Fe===pe[Ne]&&ze===pe[Ne+1],Ce.push($[xe].offsetLeft,$[xe].offsetTop)}return $e&&le?le:(oe.srcCoords=_e,oe[ie]=ae?buildTransformer(Ce,_e):buildTransformer(_e,Ce))}function isCanvasEl($){return $.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&","<":"<",">":">",'"':""","'":"'"};function encodeHTML($){return $==null?"":($+"").replace(replaceReg,function(oe,ae){return replaceMap[ae]})}var MOUSE_EVENT_REG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_calcOut=[],firefoxNotSupportOffsetXY=env$1.browser.firefox&&+env$1.browser.version.split(".")[0]<39;function clientToLocal($,oe,ae,ie){return ae=ae||{},ie?calculateZrXY($,oe,ae):firefoxNotSupportOffsetXY&&oe.layerX!=null&&oe.layerX!==oe.offsetX?(ae.zrX=oe.layerX,ae.zrY=oe.layerY):oe.offsetX!=null?(ae.zrX=oe.offsetX,ae.zrY=oe.offsetY):calculateZrXY($,oe,ae),ae}function calculateZrXY($,oe,ae){if(env$1.domSupported&&$.getBoundingClientRect){var ie=oe.clientX,le=oe.clientY;if(isCanvasEl($)){var pe=$.getBoundingClientRect();ae.zrX=ie-pe.left,ae.zrY=le-pe.top;return}else if(transformCoordWithViewport(_calcOut,$,ie,le)){ae.zrX=_calcOut[0],ae.zrY=_calcOut[1];return}}ae.zrX=ae.zrY=0}function getNativeEvent($){return $||window.event}function normalizeEvent($,oe,ae){if(oe=getNativeEvent(oe),oe.zrX!=null)return oe;var ie=oe.type,le=ie&&ie.indexOf("touch")>=0;if(le){var _e=ie!=="touchend"?oe.targetTouches[0]:oe.changedTouches[0];_e&&clientToLocal($,_e,oe,ae)}else{clientToLocal($,oe,oe,ae);var pe=getWheelDeltaMayPolyfill(oe);oe.zrDelta=pe?pe/120:-(oe.detail||0)/3}var Ce=oe.button;return oe.which==null&&Ce!==void 0&&MOUSE_EVENT_REG.test(oe.type)&&(oe.which=Ce&1?1:Ce&2?3:Ce&4?2:0),oe}function getWheelDeltaMayPolyfill($){var oe=$.wheelDelta;if(oe)return oe;var ae=$.deltaX,ie=$.deltaY;if(ae==null||ie==null)return oe;var le=Math.abs(ie!==0?ie:ae),pe=ie>0?-1:ie<0?1:ae>0?-1:1;return 3*le*pe}function addEventListener($,oe,ae,ie){$.addEventListener(oe,ae,ie)}function removeEventListener($,oe,ae,ie){$.removeEventListener(oe,ae,ie)}var stop=function($){$.preventDefault(),$.stopPropagation(),$.cancelBubble=!0};function isMiddleOrRightButtonOnMouseUpDown($){return $.which===2||$.which===3}var GestureMgr=function(){function $(){this._track=[]}return $.prototype.recognize=function(oe,ae,ie){return this._doTrack(oe,ae,ie),this._recognize(oe)},$.prototype.clear=function(){return this._track.length=0,this},$.prototype._doTrack=function(oe,ae,ie){var le=oe.touches;if(le){for(var pe={points:[],touches:[],target:ae,event:oe},_e=0,Ce=le.length;_e1&&ie&&ie.length>1){var pe=dist(ie)/dist(le);!isFinite(pe)&&(pe=1),oe.pinchScale=pe;var _e=center(ie);return oe.pinchX=_e[0],oe.pinchY=_e[1],{type:"pinch",target:$[0].target,event:oe}}}}};function create(){return[1,0,0,1,0,0]}function identity($){return $[0]=1,$[1]=0,$[2]=0,$[3]=1,$[4]=0,$[5]=0,$}function copy($,oe){return $[0]=oe[0],$[1]=oe[1],$[2]=oe[2],$[3]=oe[3],$[4]=oe[4],$[5]=oe[5],$}function mul($,oe,ae){var ie=oe[0]*ae[0]+oe[2]*ae[1],le=oe[1]*ae[0]+oe[3]*ae[1],pe=oe[0]*ae[2]+oe[2]*ae[3],_e=oe[1]*ae[2]+oe[3]*ae[3],Ce=oe[0]*ae[4]+oe[2]*ae[5]+oe[4],$e=oe[1]*ae[4]+oe[3]*ae[5]+oe[5];return $[0]=ie,$[1]=le,$[2]=pe,$[3]=_e,$[4]=Ce,$[5]=$e,$}function translate($,oe,ae){return $[0]=oe[0],$[1]=oe[1],$[2]=oe[2],$[3]=oe[3],$[4]=oe[4]+ae[0],$[5]=oe[5]+ae[1],$}function rotate($,oe,ae){var ie=oe[0],le=oe[2],pe=oe[4],_e=oe[1],Ce=oe[3],$e=oe[5],xe=Math.sin(ae),Ie=Math.cos(ae);return $[0]=ie*Ie+_e*xe,$[1]=-ie*xe+_e*Ie,$[2]=le*Ie+Ce*xe,$[3]=-le*xe+Ie*Ce,$[4]=Ie*pe+xe*$e,$[5]=Ie*$e-xe*pe,$}function scale$1($,oe,ae){var ie=ae[0],le=ae[1];return $[0]=oe[0]*ie,$[1]=oe[1]*le,$[2]=oe[2]*ie,$[3]=oe[3]*le,$[4]=oe[4]*ie,$[5]=oe[5]*le,$}function invert($,oe){var ae=oe[0],ie=oe[2],le=oe[4],pe=oe[1],_e=oe[3],Ce=oe[5],$e=ae*_e-pe*ie;return $e?($e=1/$e,$[0]=_e*$e,$[1]=-pe*$e,$[2]=-ie*$e,$[3]=ae*$e,$[4]=(ie*Ce-_e*le)*$e,$[5]=(pe*le-ae*Ce)*$e,$):null}function clone$1($){var oe=create();return copy(oe,$),oe}const matrix=Object.freeze(Object.defineProperty({__proto__:null,clone:clone$1,copy,create,identity,invert,mul,rotate,scale:scale$1,translate},Symbol.toStringTag,{value:"Module"}));var Point=function(){function $(oe,ae){this.x=oe||0,this.y=ae||0}return $.prototype.copy=function(oe){return this.x=oe.x,this.y=oe.y,this},$.prototype.clone=function(){return new $(this.x,this.y)},$.prototype.set=function(oe,ae){return this.x=oe,this.y=ae,this},$.prototype.equal=function(oe){return oe.x===this.x&&oe.y===this.y},$.prototype.add=function(oe){return this.x+=oe.x,this.y+=oe.y,this},$.prototype.scale=function(oe){this.x*=oe,this.y*=oe},$.prototype.scaleAndAdd=function(oe,ae){this.x+=oe.x*ae,this.y+=oe.y*ae},$.prototype.sub=function(oe){return this.x-=oe.x,this.y-=oe.y,this},$.prototype.dot=function(oe){return this.x*oe.x+this.y*oe.y},$.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},$.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},$.prototype.normalize=function(){var oe=this.len();return this.x/=oe,this.y/=oe,this},$.prototype.distance=function(oe){var ae=this.x-oe.x,ie=this.y-oe.y;return Math.sqrt(ae*ae+ie*ie)},$.prototype.distanceSquare=function(oe){var ae=this.x-oe.x,ie=this.y-oe.y;return ae*ae+ie*ie},$.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},$.prototype.transform=function(oe){if(oe){var ae=this.x,ie=this.y;return this.x=oe[0]*ae+oe[2]*ie+oe[4],this.y=oe[1]*ae+oe[3]*ie+oe[5],this}},$.prototype.toArray=function(oe){return oe[0]=this.x,oe[1]=this.y,oe},$.prototype.fromArray=function(oe){this.x=oe[0],this.y=oe[1]},$.set=function(oe,ae,ie){oe.x=ae,oe.y=ie},$.copy=function(oe,ae){oe.x=ae.x,oe.y=ae.y},$.len=function(oe){return Math.sqrt(oe.x*oe.x+oe.y*oe.y)},$.lenSquare=function(oe){return oe.x*oe.x+oe.y*oe.y},$.dot=function(oe,ae){return oe.x*ae.x+oe.y*ae.y},$.add=function(oe,ae,ie){oe.x=ae.x+ie.x,oe.y=ae.y+ie.y},$.sub=function(oe,ae,ie){oe.x=ae.x-ie.x,oe.y=ae.y-ie.y},$.scale=function(oe,ae,ie){oe.x=ae.x*ie,oe.y=ae.y*ie},$.scaleAndAdd=function(oe,ae,ie,le){oe.x=ae.x+ie.x*le,oe.y=ae.y+ie.y*le},$.lerp=function(oe,ae,ie,le){var pe=1-le;oe.x=pe*ae.x+le*ie.x,oe.y=pe*ae.y+le*ie.y},$}();const Point$1=Point;var mathMin$8=Math.min,mathMax$8=Math.max,lt=new Point$1,rb=new Point$1,lb=new Point$1,rt=new Point$1,minTv$1=new Point$1,maxTv$1=new Point$1,BoundingRect=function(){function $(oe,ae,ie,le){ie<0&&(oe=oe+ie,ie=-ie),le<0&&(ae=ae+le,le=-le),this.x=oe,this.y=ae,this.width=ie,this.height=le}return $.prototype.union=function(oe){var ae=mathMin$8(oe.x,this.x),ie=mathMin$8(oe.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$8(oe.x+oe.width,this.x+this.width)-ae:this.width=oe.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$8(oe.y+oe.height,this.y+this.height)-ie:this.height=oe.height,this.x=ae,this.y=ie},$.prototype.applyTransform=function(oe){$.applyTransform(this,this,oe)},$.prototype.calculateTransform=function(oe){var ae=this,ie=oe.width/ae.width,le=oe.height/ae.height,pe=create();return translate(pe,pe,[-ae.x,-ae.y]),scale$1(pe,pe,[ie,le]),translate(pe,pe,[oe.x,oe.y]),pe},$.prototype.intersect=function(oe,ae){if(!oe)return!1;oe instanceof $||(oe=$.create(oe));var ie=this,le=ie.x,pe=ie.x+ie.width,_e=ie.y,Ce=ie.y+ie.height,$e=oe.x,xe=oe.x+oe.width,Ie=oe.y,Ne=oe.y+oe.height,Fe=!(pe<$e||xeAt&&(At=bn,LtAt&&(At=Cn,vn<_n?Point$1.set(maxTv$1,0,-vn):Point$1.set(maxTv$1,0,_n)):bn=ie.x&&oe<=ie.x+ie.width&&ae>=ie.y&&ae<=ie.y+ie.height},$.prototype.clone=function(){return new $(this.x,this.y,this.width,this.height)},$.prototype.copy=function(oe){$.copy(this,oe)},$.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},$.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},$.prototype.isZero=function(){return this.width===0||this.height===0},$.create=function(oe){return new $(oe.x,oe.y,oe.width,oe.height)},$.copy=function(oe,ae){oe.x=ae.x,oe.y=ae.y,oe.width=ae.width,oe.height=ae.height},$.applyTransform=function(oe,ae,ie){if(!ie){oe!==ae&&$.copy(oe,ae);return}if(ie[1]<1e-5&&ie[1]>-1e-5&&ie[2]<1e-5&&ie[2]>-1e-5){var le=ie[0],pe=ie[3],_e=ie[4],Ce=ie[5];oe.x=ae.x*le+_e,oe.y=ae.y*pe+Ce,oe.width=ae.width*le,oe.height=ae.height*pe,oe.width<0&&(oe.x+=oe.width,oe.width=-oe.width),oe.height<0&&(oe.y+=oe.height,oe.height=-oe.height);return}lt.x=lb.x=ae.x,lt.y=rt.y=ae.y,rb.x=rt.x=ae.x+ae.width,rb.y=lb.y=ae.y+ae.height,lt.transform(ie),rt.transform(ie),rb.transform(ie),lb.transform(ie),oe.x=mathMin$8(lt.x,rb.x,lb.x,rt.x),oe.y=mathMin$8(lt.y,rb.y,lb.y,rt.y);var $e=mathMax$8(lt.x,rb.x,lb.x,rt.x),xe=mathMax$8(lt.y,rb.y,lb.y,rt.y);oe.width=$e-oe.x,oe.height=xe-oe.y},$}();const BoundingRect$1=BoundingRect;var SILENT="silent";function makeEventPacket($,oe,ae){return{type:$,event:ae,target:oe.target,topTarget:oe.topTarget,cancelBubble:!1,offsetX:ae.zrX,offsetY:ae.zrY,gestureEvent:ae.gestureEvent,pinchX:ae.pinchX,pinchY:ae.pinchY,pinchScale:ae.pinchScale,wheelDelta:ae.zrDelta,zrByTouch:ae.zrByTouch,which:ae.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.handler=null,ae}return oe.prototype.dispose=function(){},oe.prototype.setCursor=function(){},oe}(Eventful$1),HoveredResult=function(){function $(oe,ae){this.x=oe,this.y=ae}return $}(),handlerNames=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tmpRect$1=new BoundingRect$1(0,0,0,0),Handler=function($){__extends(oe,$);function oe(ae,ie,le,pe,_e){var Ce=$.call(this)||this;return Ce._hovered=new HoveredResult(0,0),Ce.storage=ae,Ce.painter=ie,Ce.painterRoot=pe,Ce._pointerSize=_e,le=le||new EmptyProxy,Ce.proxy=null,Ce.setHandlerProxy(le),Ce._draggingMgr=new Draggable$1(Ce),Ce}return oe.prototype.setHandlerProxy=function(ae){this.proxy&&this.proxy.dispose(),ae&&(each$c(handlerNames,function(ie){ae.on&&ae.on(ie,this[ie],this)},this),ae.handler=this),this.proxy=ae},oe.prototype.mousemove=function(ae){var ie=ae.zrX,le=ae.zrY,pe=isOutsideBoundary(this,ie,le),_e=this._hovered,Ce=_e.target;Ce&&!Ce.__zr&&(_e=this.findHover(_e.x,_e.y),Ce=_e.target);var $e=this._hovered=pe?new HoveredResult(ie,le):this.findHover(ie,le),xe=$e.target,Ie=this.proxy;Ie.setCursor&&Ie.setCursor(xe?xe.cursor:"default"),Ce&&xe!==Ce&&this.dispatchToElement(_e,"mouseout",ae),this.dispatchToElement($e,"mousemove",ae),xe&&xe!==Ce&&this.dispatchToElement($e,"mouseover",ae)},oe.prototype.mouseout=function(ae){var ie=ae.zrEventControl;ie!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",ae),ie!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:ae})},oe.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},oe.prototype.dispatch=function(ae,ie){var le=this[ae];le&&le.call(this,ie)},oe.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},oe.prototype.setCursorStyle=function(ae){var ie=this.proxy;ie.setCursor&&ie.setCursor(ae)},oe.prototype.dispatchToElement=function(ae,ie,le){ae=ae||{};var pe=ae.target;if(!(pe&&pe.silent)){for(var _e="on"+ie,Ce=makeEventPacket(ie,ae,le);pe&&(pe[_e]&&(Ce.cancelBubble=!!pe[_e].call(pe,Ce)),pe.trigger(ie,Ce),pe=pe.__hostTarget?pe.__hostTarget:pe.parent,!Ce.cancelBubble););Ce.cancelBubble||(this.trigger(ie,Ce),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function($e){typeof $e[_e]=="function"&&$e[_e].call($e,Ce),$e.trigger&&$e.trigger(ie,Ce)}))}},oe.prototype.findHover=function(ae,ie,le){var pe=this.storage.getDisplayList(),_e=new HoveredResult(ae,ie);if(setHoverTarget(pe,_e,ae,ie,le),this._pointerSize&&!_e.target){for(var Ce=[],$e=this._pointerSize,xe=$e/2,Ie=new BoundingRect$1(ae-xe,ie-xe,$e,$e),Ne=pe.length-1;Ne>=0;Ne--){var Fe=pe[Ne];Fe!==le&&!Fe.ignore&&!Fe.ignoreCoarsePointer&&(!Fe.parent||!Fe.parent.ignoreCoarsePointer)&&(tmpRect$1.copy(Fe.getBoundingRect()),Fe.transform&&tmpRect$1.applyTransform(Fe.transform),tmpRect$1.intersect(Ie)&&Ce.push(Fe))}if(Ce.length)for(var ze=4,At=Math.PI/12,Lt=Math.PI*2,hn=0;hn4)return;this._downPoint=null}this.dispatchToElement(pe,$,oe)}});function isHover($,oe,ae){if($[$.rectHover?"rectContain":"contain"](oe,ae)){for(var ie=$,le=void 0,pe=!1;ie;){if(ie.ignoreClip&&(pe=!0),!pe){var _e=ie.getClipPath();if(_e&&!_e.contain(oe,ae))return!1;ie.silent&&(le=!0)}var Ce=ie.__hostTarget;ie=Ce||ie.parent}return le?SILENT:!0}return!1}function setHoverTarget($,oe,ae,ie,le){for(var pe=$.length-1;pe>=0;pe--){var _e=$[pe],Ce=void 0;if(_e!==le&&!_e.ignore&&(Ce=isHover(_e,ae,ie))&&(!oe.topTarget&&(oe.topTarget=_e),Ce!==SILENT)){oe.target=_e;break}}}function isOutsideBoundary($,oe,ae){var ie=$.painter;return oe<0||oe>ie.getWidth()||ae<0||ae>ie.getHeight()}const Handler$1=Handler;var DEFAULT_MIN_MERGE=32,DEFAULT_MIN_GALLOPING=7;function minRunLength($){for(var oe=0;$>=DEFAULT_MIN_MERGE;)oe|=$&1,$>>=1;return $+oe}function makeAscendingRun($,oe,ae,ie){var le=oe+1;if(le===ae)return 1;if(ie($[le++],$[oe])<0){for(;le=0;)le++;return le-oe}function reverseRun($,oe,ae){for(ae--;oe>>1,le(pe,$[$e])<0?Ce=$e:_e=$e+1;var xe=ie-_e;switch(xe){case 3:$[_e+3]=$[_e+2];case 2:$[_e+2]=$[_e+1];case 1:$[_e+1]=$[_e];break;default:for(;xe>0;)$[_e+xe]=$[_e+xe-1],xe--}$[_e]=pe}}function gallopLeft($,oe,ae,ie,le,pe){var _e=0,Ce=0,$e=1;if(pe($,oe[ae+le])>0){for(Ce=ie-le;$e0;)_e=$e,$e=($e<<1)+1,$e<=0&&($e=Ce);$e>Ce&&($e=Ce),_e+=le,$e+=le}else{for(Ce=le+1;$eCe&&($e=Ce);var xe=_e;_e=le-$e,$e=le-xe}for(_e++;_e<$e;){var Ie=_e+($e-_e>>>1);pe($,oe[ae+Ie])>0?_e=Ie+1:$e=Ie}return $e}function gallopRight($,oe,ae,ie,le,pe){var _e=0,Ce=0,$e=1;if(pe($,oe[ae+le])<0){for(Ce=le+1;$eCe&&($e=Ce);var xe=_e;_e=le-$e,$e=le-xe}else{for(Ce=ie-le;$e=0;)_e=$e,$e=($e<<1)+1,$e<=0&&($e=Ce);$e>Ce&&($e=Ce),_e+=le,$e+=le}for(_e++;_e<$e;){var Ie=_e+($e-_e>>>1);pe($,oe[ae+Ie])<0?$e=Ie:_e=Ie+1}return $e}function TimSort($,oe){var ae=DEFAULT_MIN_GALLOPING,ie,le,pe=0;$.length;var _e=[];ie=[],le=[];function Ce(ze,At){ie[pe]=ze,le[pe]=At,pe+=1}function $e(){for(;pe>1;){var ze=pe-2;if(ze>=1&&le[ze-1]<=le[ze]+le[ze+1]||ze>=2&&le[ze-2]<=le[ze]+le[ze-1])le[ze-1]le[ze+1])break;Ie(ze)}}function xe(){for(;pe>1;){var ze=pe-2;ze>0&&le[ze-1]=DEFAULT_MIN_GALLOPING||wn>=DEFAULT_MIN_GALLOPING);if(Tn)break;En<0&&(En=0),En+=2}if(ae=En,ae<1&&(ae=1),At===1){for(vn=0;vn=0;vn--)$[$n+vn]=$[En+vn];$[Cn]=_e[bn];return}for(var wn=ae;;){var Tn=0,xn=0,kn=!1;do if(oe(_e[bn],$[_n])<0){if($[Cn--]=$[_n--],Tn++,xn=0,--At===0){kn=!0;break}}else if($[Cn--]=_e[bn--],xn++,Tn=0,--hn===1){kn=!0;break}while((Tn|xn)=0;vn--)$[$n+vn]=$[En+vn];if(At===0){kn=!0;break}}if($[Cn--]=_e[bn--],--hn===1){kn=!0;break}if(xn=hn-gallopLeft($[_n],_e,0,hn,hn-1,oe),xn!==0){for(Cn-=xn,bn-=xn,hn-=xn,$n=Cn+1,En=bn+1,vn=0;vn=DEFAULT_MIN_GALLOPING||xn>=DEFAULT_MIN_GALLOPING);if(kn)break;wn<0&&(wn=0),wn+=2}if(ae=wn,ae<1&&(ae=1),hn===1){for(Cn-=At,_n-=At,$n=Cn+1,En=_n+1,vn=At-1;vn>=0;vn--)$[$n+vn]=$[En+vn];$[Cn]=_e[bn]}else{if(hn===0)throw new Error;for(En=Cn-(hn-1),vn=0;vnCe&&($e=Ce),binaryInsertionSort($,ae,ae+$e,ae+pe,oe),pe=$e}_e.pushRun(ae,pe),_e.mergeRuns(),le-=pe,ae+=pe}while(le!==0);_e.forceMergeRuns()}}var REDRAW_BIT=1,STYLE_CHANGED_BIT=2,SHAPE_CHANGED_BIT=4,invalidZErrorLogged=!1;function logInvalidZError(){invalidZErrorLogged||(invalidZErrorLogged=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function shapeCompareFunc($,oe){return $.zlevel===oe.zlevel?$.z===oe.z?$.z2-oe.z2:$.z-oe.z:$.zlevel-oe.zlevel}var Storage=function(){function $(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=shapeCompareFunc}return $.prototype.traverse=function(oe,ae){for(var ie=0;ie0&&(Ie.__clipPaths=[]),isNaN(Ie.z)&&(logInvalidZError(),Ie.z=0),isNaN(Ie.z2)&&(logInvalidZError(),Ie.z2=0),isNaN(Ie.zlevel)&&(logInvalidZError(),Ie.zlevel=0),this._displayList[this._displayListLen++]=Ie}var Ne=oe.getDecalElement&&oe.getDecalElement();Ne&&this._updateAndAddDisplayable(Ne,ae,ie);var Fe=oe.getTextGuideLine();Fe&&this._updateAndAddDisplayable(Fe,ae,ie);var ze=oe.getTextContent();ze&&this._updateAndAddDisplayable(ze,ae,ie)}},$.prototype.addRoot=function(oe){oe.__zr&&oe.__zr.storage===this||this._roots.push(oe)},$.prototype.delRoot=function(oe){if(oe instanceof Array){for(var ae=0,ie=oe.length;ae=0&&this._roots.splice(le,1)},$.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},$.prototype.getRoots=function(){return this._roots},$.prototype.dispose=function(){this._displayList=null,this._roots=null},$}();const Storage$1=Storage;var requestAnimationFrame$1;requestAnimationFrame$1=env$1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function($){return setTimeout($,16)};const requestAnimationFrame$2=requestAnimationFrame$1;var easingFuncs={linear:function($){return $},quadraticIn:function($){return $*$},quadraticOut:function($){return $*(2-$)},quadraticInOut:function($){return($*=2)<1?.5*$*$:-.5*(--$*($-2)-1)},cubicIn:function($){return $*$*$},cubicOut:function($){return--$*$*$+1},cubicInOut:function($){return($*=2)<1?.5*$*$*$:.5*(($-=2)*$*$+2)},quarticIn:function($){return $*$*$*$},quarticOut:function($){return 1- --$*$*$*$},quarticInOut:function($){return($*=2)<1?.5*$*$*$*$:-.5*(($-=2)*$*$*$-2)},quinticIn:function($){return $*$*$*$*$},quinticOut:function($){return--$*$*$*$*$+1},quinticInOut:function($){return($*=2)<1?.5*$*$*$*$*$:.5*(($-=2)*$*$*$*$+2)},sinusoidalIn:function($){return 1-Math.cos($*Math.PI/2)},sinusoidalOut:function($){return Math.sin($*Math.PI/2)},sinusoidalInOut:function($){return .5*(1-Math.cos(Math.PI*$))},exponentialIn:function($){return $===0?0:Math.pow(1024,$-1)},exponentialOut:function($){return $===1?1:1-Math.pow(2,-10*$)},exponentialInOut:function($){return $===0?0:$===1?1:($*=2)<1?.5*Math.pow(1024,$-1):.5*(-Math.pow(2,-10*($-1))+2)},circularIn:function($){return 1-Math.sqrt(1-$*$)},circularOut:function($){return Math.sqrt(1- --$*$)},circularInOut:function($){return($*=2)<1?-.5*(Math.sqrt(1-$*$)-1):.5*(Math.sqrt(1-($-=2)*$)+1)},elasticIn:function($){var oe,ae=.1,ie=.4;return $===0?0:$===1?1:(!ae||ae<1?(ae=1,oe=ie/4):oe=ie*Math.asin(1/ae)/(2*Math.PI),-(ae*Math.pow(2,10*($-=1))*Math.sin(($-oe)*(2*Math.PI)/ie)))},elasticOut:function($){var oe,ae=.1,ie=.4;return $===0?0:$===1?1:(!ae||ae<1?(ae=1,oe=ie/4):oe=ie*Math.asin(1/ae)/(2*Math.PI),ae*Math.pow(2,-10*$)*Math.sin(($-oe)*(2*Math.PI)/ie)+1)},elasticInOut:function($){var oe,ae=.1,ie=.4;return $===0?0:$===1?1:(!ae||ae<1?(ae=1,oe=ie/4):oe=ie*Math.asin(1/ae)/(2*Math.PI),($*=2)<1?-.5*(ae*Math.pow(2,10*($-=1))*Math.sin(($-oe)*(2*Math.PI)/ie)):ae*Math.pow(2,-10*($-=1))*Math.sin(($-oe)*(2*Math.PI)/ie)*.5+1)},backIn:function($){var oe=1.70158;return $*$*((oe+1)*$-oe)},backOut:function($){var oe=1.70158;return--$*$*((oe+1)*$+oe)+1},backInOut:function($){var oe=2.5949095;return($*=2)<1?.5*($*$*((oe+1)*$-oe)):.5*(($-=2)*$*((oe+1)*$+oe)+2)},bounceIn:function($){return 1-easingFuncs.bounceOut(1-$)},bounceOut:function($){return $<1/2.75?7.5625*$*$:$<2/2.75?7.5625*($-=1.5/2.75)*$+.75:$<2.5/2.75?7.5625*($-=2.25/2.75)*$+.9375:7.5625*($-=2.625/2.75)*$+.984375},bounceInOut:function($){return $<.5?easingFuncs.bounceIn($*2)*.5:easingFuncs.bounceOut($*2-1)*.5+.5}};const easingFuncs$1=easingFuncs;var mathPow$2=Math.pow,mathSqrt$3=Math.sqrt,EPSILON$3=1e-8,EPSILON_NUMERIC=1e-4,THREE_SQRT=mathSqrt$3(3),ONE_THIRD=1/3,_v0=create$1(),_v1=create$1(),_v2=create$1();function isAroundZero($){return $>-EPSILON$3&&$EPSILON$3||$<-EPSILON$3}function cubicAt($,oe,ae,ie,le){var pe=1-le;return pe*pe*(pe*$+3*le*oe)+le*le*(le*ie+3*pe*ae)}function cubicDerivativeAt($,oe,ae,ie,le){var pe=1-le;return 3*(((oe-$)*pe+2*(ae-oe)*le)*pe+(ie-ae)*le*le)}function cubicRootAt($,oe,ae,ie,le,pe){var _e=ie+3*(oe-ae)-$,Ce=3*(ae-oe*2+$),$e=3*(oe-$),xe=$-le,Ie=Ce*Ce-3*_e*$e,Ne=Ce*$e-9*_e*xe,Fe=$e*$e-3*Ce*xe,ze=0;if(isAroundZero(Ie)&&isAroundZero(Ne))if(isAroundZero(Ce))pe[0]=0;else{var At=-$e/Ce;At>=0&&At<=1&&(pe[ze++]=At)}else{var Lt=Ne*Ne-4*Ie*Fe;if(isAroundZero(Lt)){var hn=Ne/Ie,At=-Ce/_e+hn,vn=-hn/2;At>=0&&At<=1&&(pe[ze++]=At),vn>=0&&vn<=1&&(pe[ze++]=vn)}else if(Lt>0){var _n=mathSqrt$3(Lt),bn=Ie*Ce+1.5*_e*(-Ne+_n),Cn=Ie*Ce+1.5*_e*(-Ne-_n);bn<0?bn=-mathPow$2(-bn,ONE_THIRD):bn=mathPow$2(bn,ONE_THIRD),Cn<0?Cn=-mathPow$2(-Cn,ONE_THIRD):Cn=mathPow$2(Cn,ONE_THIRD);var At=(-Ce-(bn+Cn))/(3*_e);At>=0&&At<=1&&(pe[ze++]=At)}else{var En=(2*Ie*Ce-3*_e*Ne)/(2*mathSqrt$3(Ie*Ie*Ie)),$n=Math.acos(En)/3,wn=mathSqrt$3(Ie),Tn=Math.cos($n),At=(-Ce-2*wn*Tn)/(3*_e),vn=(-Ce+wn*(Tn+THREE_SQRT*Math.sin($n)))/(3*_e),xn=(-Ce+wn*(Tn-THREE_SQRT*Math.sin($n)))/(3*_e);At>=0&&At<=1&&(pe[ze++]=At),vn>=0&&vn<=1&&(pe[ze++]=vn),xn>=0&&xn<=1&&(pe[ze++]=xn)}}return ze}function cubicExtrema($,oe,ae,ie,le){var pe=6*ae-12*oe+6*$,_e=9*oe+3*ie-3*$-9*ae,Ce=3*oe-3*$,$e=0;if(isAroundZero(_e)){if(isNotAroundZero$1(pe)){var xe=-Ce/pe;xe>=0&&xe<=1&&(le[$e++]=xe)}}else{var Ie=pe*pe-4*_e*Ce;if(isAroundZero(Ie))le[0]=-pe/(2*_e);else if(Ie>0){var Ne=mathSqrt$3(Ie),xe=(-pe+Ne)/(2*_e),Fe=(-pe-Ne)/(2*_e);xe>=0&&xe<=1&&(le[$e++]=xe),Fe>=0&&Fe<=1&&(le[$e++]=Fe)}}return $e}function cubicSubdivide($,oe,ae,ie,le,pe){var _e=(oe-$)*le+$,Ce=(ae-oe)*le+oe,$e=(ie-ae)*le+ae,xe=(Ce-_e)*le+_e,Ie=($e-Ce)*le+Ce,Ne=(Ie-xe)*le+xe;pe[0]=$,pe[1]=_e,pe[2]=xe,pe[3]=Ne,pe[4]=Ne,pe[5]=Ie,pe[6]=$e,pe[7]=ie}function cubicProjectPoint($,oe,ae,ie,le,pe,_e,Ce,$e,xe,Ie){var Ne,Fe=.005,ze=1/0,At,Lt,hn,vn;_v0[0]=$e,_v0[1]=xe;for(var _n=0;_n<1;_n+=.05)_v1[0]=cubicAt($,ae,le,_e,_n),_v1[1]=cubicAt(oe,ie,pe,Ce,_n),hn=distSquare(_v0,_v1),hn=0&&hn=0&&xe<=1&&(le[$e++]=xe)}}else{var Ie=_e*_e-4*pe*Ce;if(isAroundZero(Ie)){var xe=-_e/(2*pe);xe>=0&&xe<=1&&(le[$e++]=xe)}else if(Ie>0){var Ne=mathSqrt$3(Ie),xe=(-_e+Ne)/(2*pe),Fe=(-_e-Ne)/(2*pe);xe>=0&&xe<=1&&(le[$e++]=xe),Fe>=0&&Fe<=1&&(le[$e++]=Fe)}}return $e}function quadraticExtremum($,oe,ae){var ie=$+ae-2*oe;return ie===0?.5:($-oe)/ie}function quadraticSubdivide($,oe,ae,ie,le){var pe=(oe-$)*ie+$,_e=(ae-oe)*ie+oe,Ce=(_e-pe)*ie+pe;le[0]=$,le[1]=pe,le[2]=Ce,le[3]=Ce,le[4]=_e,le[5]=ae}function quadraticProjectPoint($,oe,ae,ie,le,pe,_e,Ce,$e){var xe,Ie=.005,Ne=1/0;_v0[0]=_e,_v0[1]=Ce;for(var Fe=0;Fe<1;Fe+=.05){_v1[0]=quadraticAt($,ae,le,Fe),_v1[1]=quadraticAt(oe,ie,pe,Fe);var ze=distSquare(_v0,_v1);ze=0&&ze=1?1:cubicRootAt(0,ie,pe,1,$e,Ce)&&cubicAt(0,le,_e,1,Ce[0])}}}var Clip=function(){function $(oe){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=oe.life||1e3,this._delay=oe.delay||0,this.loop=oe.loop||!1,this.onframe=oe.onframe||noop,this.ondestroy=oe.ondestroy||noop,this.onrestart=oe.onrestart||noop,oe.easing&&this.setEasing(oe.easing)}return $.prototype.step=function(oe,ae){if(this._inited||(this._startTime=oe+this._delay,this._inited=!0),this._paused){this._pausedTime+=ae;return}var ie=this._life,le=oe-this._startTime-this._pausedTime,pe=le/ie;pe<0&&(pe=0),pe=Math.min(pe,1);var _e=this.easingFunc,Ce=_e?_e(pe):pe;if(this.onframe(Ce),pe===1)if(this.loop){var $e=le%ie;this._startTime=oe-$e,this._pausedTime=0,this.onrestart()}else return!0;return!1},$.prototype.pause=function(){this._paused=!0},$.prototype.resume=function(){this._paused=!1},$.prototype.setEasing=function(oe){this.easing=oe,this.easingFunc=isFunction(oe)?oe:easingFuncs$1[oe]||createCubicEasingFunc(oe)},$}();const Clip$1=Clip;var Entry=function(){function $(oe){this.value=oe}return $}(),LinkedList=function(){function $(){this._len=0}return $.prototype.insert=function(oe){var ae=new Entry(oe);return this.insertEntry(ae),ae},$.prototype.insertEntry=function(oe){this.head?(this.tail.next=oe,oe.prev=this.tail,oe.next=null,this.tail=oe):this.head=this.tail=oe,this._len++},$.prototype.remove=function(oe){var ae=oe.prev,ie=oe.next;ae?ae.next=ie:this.head=ie,ie?ie.prev=ae:this.tail=ae,oe.next=oe.prev=null,this._len--},$.prototype.len=function(){return this._len},$.prototype.clear=function(){this.head=this.tail=null,this._len=0},$}(),LRU=function(){function $(oe){this._list=new LinkedList,this._maxSize=10,this._map={},this._maxSize=oe}return $.prototype.put=function(oe,ae){var ie=this._list,le=this._map,pe=null;if(le[oe]==null){var _e=ie.len(),Ce=this._lastRemovedEntry;if(_e>=this._maxSize&&_e>0){var $e=ie.head;ie.remove($e),delete le[$e.key],pe=$e.value,this._lastRemovedEntry=$e}Ce?Ce.value=ae:Ce=new Entry(ae),Ce.key=oe,ie.insertEntry(Ce),le[oe]=Ce}return pe},$.prototype.get=function(oe){var ae=this._map[oe],ie=this._list;if(ae!=null)return ae!==ie.tail&&(ie.remove(ae),ie.insertEntry(ae)),ae.value},$.prototype.clear=function(){this._list.clear(),this._map={}},$.prototype.len=function(){return this._list.len()},$}();const LRU$1=LRU;var kCSSColorTable={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function clampCssByte($){return $=Math.round($),$<0?0:$>255?255:$}function clampCssAngle($){return $=Math.round($),$<0?0:$>360?360:$}function clampCssFloat($){return $<0?0:$>1?1:$}function parseCssInt($){var oe=$;return oe.length&&oe.charAt(oe.length-1)==="%"?clampCssByte(parseFloat(oe)/100*255):clampCssByte(parseInt(oe,10))}function parseCssFloat($){var oe=$;return oe.length&&oe.charAt(oe.length-1)==="%"?clampCssFloat(parseFloat(oe)/100):clampCssFloat(parseFloat(oe))}function cssHueToRgb($,oe,ae){return ae<0?ae+=1:ae>1&&(ae-=1),ae*6<1?$+(oe-$)*ae*6:ae*2<1?oe:ae*3<2?$+(oe-$)*(2/3-ae)*6:$}function lerpNumber($,oe,ae){return $+(oe-$)*ae}function setRgba($,oe,ae,ie,le){return $[0]=oe,$[1]=ae,$[2]=ie,$[3]=le,$}function copyRgba($,oe){return $[0]=oe[0],$[1]=oe[1],$[2]=oe[2],$[3]=oe[3],$}var colorCache=new LRU$1(20),lastRemovedArr=null;function putToCache($,oe){lastRemovedArr&©Rgba(lastRemovedArr,oe),lastRemovedArr=colorCache.put($,lastRemovedArr||oe.slice())}function parse$1($,oe){if($){oe=oe||[];var ae=colorCache.get($);if(ae)return copyRgba(oe,ae);$=$+"";var ie=$.replace(/ /g,"").toLowerCase();if(ie in kCSSColorTable)return copyRgba(oe,kCSSColorTable[ie]),putToCache($,oe),oe;var le=ie.length;if(ie.charAt(0)==="#"){if(le===4||le===5){var pe=parseInt(ie.slice(1,4),16);if(!(pe>=0&&pe<=4095)){setRgba(oe,0,0,0,1);return}return setRgba(oe,(pe&3840)>>4|(pe&3840)>>8,pe&240|(pe&240)>>4,pe&15|(pe&15)<<4,le===5?parseInt(ie.slice(4),16)/15:1),putToCache($,oe),oe}else if(le===7||le===9){var pe=parseInt(ie.slice(1,7),16);if(!(pe>=0&&pe<=16777215)){setRgba(oe,0,0,0,1);return}return setRgba(oe,(pe&16711680)>>16,(pe&65280)>>8,pe&255,le===9?parseInt(ie.slice(7),16)/255:1),putToCache($,oe),oe}return}var _e=ie.indexOf("("),Ce=ie.indexOf(")");if(_e!==-1&&Ce+1===le){var $e=ie.substr(0,_e),xe=ie.substr(_e+1,Ce-(_e+1)).split(","),Ie=1;switch($e){case"rgba":if(xe.length!==4)return xe.length===3?setRgba(oe,+xe[0],+xe[1],+xe[2],1):setRgba(oe,0,0,0,1);Ie=parseCssFloat(xe.pop());case"rgb":if(xe.length>=3)return setRgba(oe,parseCssInt(xe[0]),parseCssInt(xe[1]),parseCssInt(xe[2]),xe.length===3?Ie:parseCssFloat(xe[3])),putToCache($,oe),oe;setRgba(oe,0,0,0,1);return;case"hsla":if(xe.length!==4){setRgba(oe,0,0,0,1);return}return xe[3]=parseCssFloat(xe[3]),hsla2rgba(xe,oe),putToCache($,oe),oe;case"hsl":if(xe.length!==3){setRgba(oe,0,0,0,1);return}return hsla2rgba(xe,oe),putToCache($,oe),oe;default:return}}setRgba(oe,0,0,0,1)}}function hsla2rgba($,oe){var ae=(parseFloat($[0])%360+360)%360/360,ie=parseCssFloat($[1]),le=parseCssFloat($[2]),pe=le<=.5?le*(ie+1):le+ie-le*ie,_e=le*2-pe;return oe=oe||[],setRgba(oe,clampCssByte(cssHueToRgb(_e,pe,ae+1/3)*255),clampCssByte(cssHueToRgb(_e,pe,ae)*255),clampCssByte(cssHueToRgb(_e,pe,ae-1/3)*255),1),$.length===4&&(oe[3]=$[3]),oe}function rgba2hsla($){if($){var oe=$[0]/255,ae=$[1]/255,ie=$[2]/255,le=Math.min(oe,ae,ie),pe=Math.max(oe,ae,ie),_e=pe-le,Ce=(pe+le)/2,$e,xe;if(_e===0)$e=0,xe=0;else{Ce<.5?xe=_e/(pe+le):xe=_e/(2-pe-le);var Ie=((pe-oe)/6+_e/2)/_e,Ne=((pe-ae)/6+_e/2)/_e,Fe=((pe-ie)/6+_e/2)/_e;oe===pe?$e=Fe-Ne:ae===pe?$e=1/3+Ie-Fe:ie===pe&&($e=2/3+Ne-Ie),$e<0&&($e+=1),$e>1&&($e-=1)}var ze=[$e*360,xe,Ce];return $[3]!=null&&ze.push($[3]),ze}}function lift($,oe){var ae=parse$1($);if(ae){for(var ie=0;ie<3;ie++)oe<0?ae[ie]=ae[ie]*(1-oe)|0:ae[ie]=(255-ae[ie])*oe+ae[ie]|0,ae[ie]>255?ae[ie]=255:ae[ie]<0&&(ae[ie]=0);return stringify(ae,ae.length===4?"rgba":"rgb")}}function toHex($){var oe=parse$1($);if(oe)return((1<<24)+(oe[0]<<16)+(oe[1]<<8)+ +oe[2]).toString(16).slice(1)}function fastLerp($,oe,ae){if(!(!(oe&&oe.length)||!($>=0&&$<=1))){ae=ae||[];var ie=$*(oe.length-1),le=Math.floor(ie),pe=Math.ceil(ie),_e=oe[le],Ce=oe[pe],$e=ie-le;return ae[0]=clampCssByte(lerpNumber(_e[0],Ce[0],$e)),ae[1]=clampCssByte(lerpNumber(_e[1],Ce[1],$e)),ae[2]=clampCssByte(lerpNumber(_e[2],Ce[2],$e)),ae[3]=clampCssFloat(lerpNumber(_e[3],Ce[3],$e)),ae}}var fastMapToColor=fastLerp;function lerp($,oe,ae){if(!(!(oe&&oe.length)||!($>=0&&$<=1))){var ie=$*(oe.length-1),le=Math.floor(ie),pe=Math.ceil(ie),_e=parse$1(oe[le]),Ce=parse$1(oe[pe]),$e=ie-le,xe=stringify([clampCssByte(lerpNumber(_e[0],Ce[0],$e)),clampCssByte(lerpNumber(_e[1],Ce[1],$e)),clampCssByte(lerpNumber(_e[2],Ce[2],$e)),clampCssFloat(lerpNumber(_e[3],Ce[3],$e))],"rgba");return ae?{color:xe,leftIndex:le,rightIndex:pe,value:ie}:xe}}var mapToColor=lerp;function modifyHSL($,oe,ae,ie){var le=parse$1($);if($)return le=rgba2hsla(le),oe!=null&&(le[0]=clampCssAngle(oe)),ae!=null&&(le[1]=parseCssFloat(ae)),ie!=null&&(le[2]=parseCssFloat(ie)),stringify(hsla2rgba(le),"rgba")}function modifyAlpha($,oe){var ae=parse$1($);if(ae&&oe!=null)return ae[3]=clampCssFloat(oe),stringify(ae,"rgba")}function stringify($,oe){if(!(!$||!$.length)){var ae=$[0]+","+$[1]+","+$[2];return(oe==="rgba"||oe==="hsva"||oe==="hsla")&&(ae+=","+$[3]),oe+"("+ae+")"}}function lum($,oe){var ae=parse$1($);return ae?(.299*ae[0]+.587*ae[1]+.114*ae[2])*ae[3]/255+(1-ae[3])*oe:0}function random(){return stringify([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const color=Object.freeze(Object.defineProperty({__proto__:null,fastLerp,fastMapToColor,lerp,lift,lum,mapToColor,modifyAlpha,modifyHSL,parse:parse$1,random,stringify,toHex},Symbol.toStringTag,{value:"Module"}));function isLinearGradient($){return $.type==="linear"}function isRadialGradient($){return $.type==="radial"}(function(){return env$1.hasGlobalWindow&&isFunction(window.btoa)?function($){return window.btoa(unescape(encodeURIComponent($)))}:typeof Buffer<"u"?function($){return Buffer.from($).toString("base64")}:function($){return null}})();var arraySlice=Array.prototype.slice;function interpolateNumber$1($,oe,ae){return(oe-$)*ae+$}function interpolate1DArray($,oe,ae,ie){for(var le=oe.length,pe=0;peie?oe:$,pe=Math.min(ae,ie),_e=le[pe-1]||{color:[0,0,0,0],offset:0},Ce=pe;Ce_e;if(Ce)ie.length=_e;else for(var $e=pe;$e<_e;$e++)ie.push(ae===1?le[$e]:arraySlice.call(le[$e]))}for(var xe=ie[0]&&ie[0].length,$e=0;$e=1},$.prototype.getAdditiveTrack=function(){return this._additiveTrack},$.prototype.addKeyframe=function(oe,ae,ie){this._needsSort=!0;var le=this.keyframes,pe=le.length,_e=!1,Ce=VALUE_TYPE_UNKOWN,$e=ae;if(isArrayLike(ae)){var xe=guessArrayDim(ae);Ce=xe,(xe===1&&!isNumber(ae[0])||xe===2&&!isNumber(ae[0][0]))&&(_e=!0)}else if(isNumber(ae)&&!eqNaN(ae))Ce=VALUE_TYPE_NUMBER;else if(isString(ae))if(!isNaN(+ae))Ce=VALUE_TYPE_NUMBER;else{var Ie=parse$1(ae);Ie&&($e=Ie,Ce=VALUE_TYPE_COLOR)}else if(isGradientObject(ae)){var Ne=extend({},$e);Ne.colorStops=map$2(ae.colorStops,function(ze){return{offset:ze.offset,color:parse$1(ze.color)}}),isLinearGradient(ae)?Ce=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(ae)&&(Ce=VALUE_TYPE_RADIAL_GRADIENT),$e=Ne}pe===0?this.valType=Ce:(Ce!==this.valType||Ce===VALUE_TYPE_UNKOWN)&&(_e=!0),this.discrete=this.discrete||_e;var Fe={time:oe,value:$e,rawValue:ae,percent:0};return ie&&(Fe.easing=ie,Fe.easingFunc=isFunction(ie)?ie:easingFuncs$1[ie]||createCubicEasingFunc(ie)),le.push(Fe),Fe},$.prototype.prepare=function(oe,ae){var ie=this.keyframes;this._needsSort&&ie.sort(function(Lt,hn){return Lt.time-hn.time});for(var le=this.valType,pe=ie.length,_e=ie[pe-1],Ce=this.discrete,$e=isArrayValueType(le),xe=isGradientValueType(le),Ie=0;Ie=0&&!(_e[Ie].percent<=ae);Ie--);Ie=Fe(Ie,Ce-2)}else{for(Ie=Ne;Ieae);Ie++);Ie=Fe(Ie-1,Ce-2)}At=_e[Ie+1],ze=_e[Ie]}if(ze&&At){this._lastFr=Ie,this._lastFrP=ae;var hn=At.percent-ze.percent,vn=hn===0?1:Fe((ae-ze.percent)/hn,1);At.easingFunc&&(vn=At.easingFunc(vn));var _n=ie?this._additiveValue:xe?tmpRgba:oe[$e];if((isArrayValueType(pe)||xe)&&!_n&&(_n=this._additiveValue=[]),this.discrete)oe[$e]=vn<1?ze.rawValue:At.rawValue;else if(isArrayValueType(pe))pe===VALUE_TYPE_1D_ARRAY?interpolate1DArray(_n,ze[le],At[le],vn):interpolate2DArray(_n,ze[le],At[le],vn);else if(isGradientValueType(pe)){var bn=ze[le],Cn=At[le],En=pe===VALUE_TYPE_LINEAR_GRADIENT;oe[$e]={type:En?"linear":"radial",x:interpolateNumber$1(bn.x,Cn.x,vn),y:interpolateNumber$1(bn.y,Cn.y,vn),colorStops:map$2(bn.colorStops,function(wn,Tn){var xn=Cn.colorStops[Tn];return{offset:interpolateNumber$1(wn.offset,xn.offset,vn),color:rgba2String(interpolate1DArray([],wn.color,xn.color,vn))}}),global:Cn.global},En?(oe[$e].x2=interpolateNumber$1(bn.x2,Cn.x2,vn),oe[$e].y2=interpolateNumber$1(bn.y2,Cn.y2,vn)):oe[$e].r=interpolateNumber$1(bn.r,Cn.r,vn)}else if(xe)interpolate1DArray(_n,ze[le],At[le],vn),ie||(oe[$e]=rgba2String(_n));else{var $n=interpolateNumber$1(ze[le],At[le],vn);ie?this._additiveValue=$n:oe[$e]=$n}ie&&this._addToTarget(oe)}}},$.prototype._addToTarget=function(oe){var ae=this.valType,ie=this.propName,le=this._additiveValue;ae===VALUE_TYPE_NUMBER?oe[ie]=oe[ie]+le:ae===VALUE_TYPE_COLOR?(parse$1(oe[ie],tmpRgba),add1DArray(tmpRgba,tmpRgba,le,1),oe[ie]=rgba2String(tmpRgba)):ae===VALUE_TYPE_1D_ARRAY?add1DArray(oe[ie],oe[ie],le,1):ae===VALUE_TYPE_2D_ARRAY&&add2DArray(oe[ie],oe[ie],le,1)},$}(),Animator=function(){function $(oe,ae,ie,le){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=oe,this._loop=ae,ae&&le){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=le,this._allowDiscrete=ie}return $.prototype.getMaxTime=function(){return this._maxTime},$.prototype.getDelay=function(){return this._delay},$.prototype.getLoop=function(){return this._loop},$.prototype.getTarget=function(){return this._target},$.prototype.changeTarget=function(oe){this._target=oe},$.prototype.when=function(oe,ae,ie){return this.whenWithKeys(oe,ae,keys(ae),ie)},$.prototype.whenWithKeys=function(oe,ae,ie,le){for(var pe=this._tracks,_e=0;_e0&&$e.addKeyframe(0,cloneValue(xe),le),this._trackKeys.push(Ce)}$e.addKeyframe(oe,cloneValue(ae[Ce]),le)}return this._maxTime=Math.max(this._maxTime,oe),this},$.prototype.pause=function(){this._clip.pause(),this._paused=!0},$.prototype.resume=function(){this._clip.resume(),this._paused=!1},$.prototype.isPaused=function(){return!!this._paused},$.prototype.duration=function(oe){return this._maxTime=oe,this._force=!0,this},$.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var oe=this._doneCbs;if(oe)for(var ae=oe.length,ie=0;ie0)){this._started=1;for(var ae=this,ie=[],le=this._maxTime||0,pe=0;pe1){var Ce=_e.pop();pe.addKeyframe(Ce.time,oe[le]),pe.prepare(this._maxTime,pe.getAdditiveTrack())}}}},$}();const Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function($){__extends(oe,$);function oe(ae){var ie=$.call(this)||this;return ie._running=!1,ie._time=0,ie._pausedTime=0,ie._pauseStart=0,ie._paused=!1,ae=ae||{},ie.stage=ae.stage||{},ie}return oe.prototype.addClip=function(ae){ae.animation&&this.removeClip(ae),this._head?(this._tail.next=ae,ae.prev=this._tail,ae.next=null,this._tail=ae):this._head=this._tail=ae,ae.animation=this},oe.prototype.addAnimator=function(ae){ae.animation=this;var ie=ae.getClip();ie&&this.addClip(ie)},oe.prototype.removeClip=function(ae){if(ae.animation){var ie=ae.prev,le=ae.next;ie?ie.next=le:this._head=le,le?le.prev=ie:this._tail=ie,ae.next=ae.prev=ae.animation=null}},oe.prototype.removeAnimator=function(ae){var ie=ae.getClip();ie&&this.removeClip(ie),ae.animation=null},oe.prototype.update=function(ae){for(var ie=getTime()-this._pausedTime,le=ie-this._time,pe=this._head;pe;){var _e=pe.next,Ce=pe.step(ie,le);Ce&&(pe.ondestroy(),this.removeClip(pe)),pe=_e}this._time=ie,ae||(this.trigger("frame",le),this.stage.update&&this.stage.update())},oe.prototype._startLoop=function(){var ae=this;this._running=!0;function ie(){ae._running&&(requestAnimationFrame$2(ie),!ae._paused&&ae.update())}requestAnimationFrame$2(ie)},oe.prototype.start=function(){this._running||(this._time=getTime(),this._pausedTime=0,this._startLoop())},oe.prototype.stop=function(){this._running=!1},oe.prototype.pause=function(){this._paused||(this._pauseStart=getTime(),this._paused=!0)},oe.prototype.resume=function(){this._paused&&(this._pausedTime+=getTime()-this._pauseStart,this._paused=!1)},oe.prototype.clear=function(){for(var ae=this._head;ae;){var ie=ae.next;ae.prev=ae.next=ae.animation=null,ae=ie}this._head=this._tail=null},oe.prototype.isFinished=function(){return this._head==null},oe.prototype.animate=function(ae,ie){ie=ie||{},this.start();var le=new Animator$1(ae,ie.loop);return this.addAnimator(le),le},oe}(Eventful$1);const Animation$1=Animation;var TOUCH_CLICK_DELAY=300,globalEventSupported=env$1.domSupported,localNativeListenerNames=function(){var $=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],oe=["touchstart","touchend","touchmove"],ae={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},ie=map$2($,function(le){var pe=le.replace("mouse","pointer");return ae.hasOwnProperty(pe)?pe:le});return{mouse:$,touch:oe,pointer:ie}}(),globalNativeListenerNames={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wheelEventSupported=!1;function isPointerFromTouch($){var oe=$.pointerType;return oe==="pen"||oe==="touch"}function setTouchTimer($){$.touching=!0,$.touchTimer!=null&&(clearTimeout($.touchTimer),$.touchTimer=null),$.touchTimer=setTimeout(function(){$.touching=!1,$.touchTimer=null},700)}function markTouch($){$&&($.zrByTouch=!0)}function normalizeGlobalEvent($,oe){return normalizeEvent($.dom,new FakeGlobalEvent($,oe),!0)}function isLocalEl($,oe){for(var ae=oe,ie=!1;ae&&ae.nodeType!==9&&!(ie=ae.domBelongToZr||ae!==oe&&ae===$.painterRoot);)ae=ae.parentNode;return ie}var FakeGlobalEvent=function(){function $(oe,ae){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=ae.type,this.target=this.currentTarget=oe.dom,this.pointerType=ae.pointerType,this.clientX=ae.clientX,this.clientY=ae.clientY}return $}(),localDOMHandlers={mousedown:function($){$=normalizeEvent(this.dom,$),this.__mayPointerCapture=[$.zrX,$.zrY],this.trigger("mousedown",$)},mousemove:function($){$=normalizeEvent(this.dom,$);var oe=this.__mayPointerCapture;oe&&($.zrX!==oe[0]||$.zrY!==oe[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",$)},mouseup:function($){$=normalizeEvent(this.dom,$),this.__togglePointerCapture(!1),this.trigger("mouseup",$)},mouseout:function($){$=normalizeEvent(this.dom,$);var oe=$.toElement||$.relatedTarget;isLocalEl(this,oe)||(this.__pointerCapturing&&($.zrEventControl="no_globalout"),this.trigger("mouseout",$))},wheel:function($){wheelEventSupported=!0,$=normalizeEvent(this.dom,$),this.trigger("mousewheel",$)},mousewheel:function($){wheelEventSupported||($=normalizeEvent(this.dom,$),this.trigger("mousewheel",$))},touchstart:function($){$=normalizeEvent(this.dom,$),markTouch($),this.__lastTouchMoment=new Date,this.handler.processGesture($,"start"),localDOMHandlers.mousemove.call(this,$),localDOMHandlers.mousedown.call(this,$)},touchmove:function($){$=normalizeEvent(this.dom,$),markTouch($),this.handler.processGesture($,"change"),localDOMHandlers.mousemove.call(this,$)},touchend:function($){$=normalizeEvent(this.dom,$),markTouch($),this.handler.processGesture($,"end"),localDOMHandlers.mouseup.call(this,$),+new Date-+this.__lastTouchMomentEPSILON$2||$<-EPSILON$2}var scaleTmp=[],tmpTransform=[],originTransform=create(),abs=Math.abs,Transformable=function(){function $(){}return $.prototype.getLocalTransform=function(oe){return $.getLocalTransform(this,oe)},$.prototype.setPosition=function(oe){this.x=oe[0],this.y=oe[1]},$.prototype.setScale=function(oe){this.scaleX=oe[0],this.scaleY=oe[1]},$.prototype.setSkew=function(oe){this.skewX=oe[0],this.skewY=oe[1]},$.prototype.setOrigin=function(oe){this.originX=oe[0],this.originY=oe[1]},$.prototype.needLocalTransform=function(){return isNotAroundZero(this.rotation)||isNotAroundZero(this.x)||isNotAroundZero(this.y)||isNotAroundZero(this.scaleX-1)||isNotAroundZero(this.scaleY-1)||isNotAroundZero(this.skewX)||isNotAroundZero(this.skewY)},$.prototype.updateTransform=function(){var oe=this.parent&&this.parent.transform,ae=this.needLocalTransform(),ie=this.transform;if(!(ae||oe)){ie&&mIdentity(ie);return}ie=ie||create(),ae?this.getLocalTransform(ie):mIdentity(ie),oe&&(ae?mul(ie,oe,ie):copy(ie,oe)),this.transform=ie,this._resolveGlobalScaleRatio(ie)},$.prototype._resolveGlobalScaleRatio=function(oe){var ae=this.globalScaleRatio;if(ae!=null&&ae!==1){this.getGlobalScale(scaleTmp);var ie=scaleTmp[0]<0?-1:1,le=scaleTmp[1]<0?-1:1,pe=((scaleTmp[0]-ie)*ae+ie)/scaleTmp[0]||0,_e=((scaleTmp[1]-le)*ae+le)/scaleTmp[1]||0;oe[0]*=pe,oe[1]*=pe,oe[2]*=_e,oe[3]*=_e}this.invTransform=this.invTransform||create(),invert(this.invTransform,oe)},$.prototype.getComputedTransform=function(){for(var oe=this,ae=[];oe;)ae.push(oe),oe=oe.parent;for(;oe=ae.pop();)oe.updateTransform();return this.transform},$.prototype.setLocalTransform=function(oe){if(oe){var ae=oe[0]*oe[0]+oe[1]*oe[1],ie=oe[2]*oe[2]+oe[3]*oe[3],le=Math.atan2(oe[1],oe[0]),pe=Math.PI/2+le-Math.atan2(oe[3],oe[2]);ie=Math.sqrt(ie)*Math.cos(pe),ae=Math.sqrt(ae),this.skewX=pe,this.skewY=0,this.rotation=-le,this.x=+oe[4],this.y=+oe[5],this.scaleX=ae,this.scaleY=ie,this.originX=0,this.originY=0}},$.prototype.decomposeTransform=function(){if(this.transform){var oe=this.parent,ae=this.transform;oe&&oe.transform&&(mul(tmpTransform,oe.invTransform,ae),ae=tmpTransform);var ie=this.originX,le=this.originY;(ie||le)&&(originTransform[4]=ie,originTransform[5]=le,mul(tmpTransform,ae,originTransform),tmpTransform[4]-=ie,tmpTransform[5]-=le,ae=tmpTransform),this.setLocalTransform(ae)}},$.prototype.getGlobalScale=function(oe){var ae=this.transform;return oe=oe||[],ae?(oe[0]=Math.sqrt(ae[0]*ae[0]+ae[1]*ae[1]),oe[1]=Math.sqrt(ae[2]*ae[2]+ae[3]*ae[3]),ae[0]<0&&(oe[0]=-oe[0]),ae[3]<0&&(oe[1]=-oe[1]),oe):(oe[0]=1,oe[1]=1,oe)},$.prototype.transformCoordToLocal=function(oe,ae){var ie=[oe,ae],le=this.invTransform;return le&&applyTransform$1(ie,ie,le),ie},$.prototype.transformCoordToGlobal=function(oe,ae){var ie=[oe,ae],le=this.transform;return le&&applyTransform$1(ie,ie,le),ie},$.prototype.getLineScale=function(){var oe=this.transform;return oe&&abs(oe[0]-1)>1e-10&&abs(oe[3]-1)>1e-10?Math.sqrt(abs(oe[0]*oe[3]-oe[2]*oe[1])):1},$.prototype.copyTransform=function(oe){copyTransform(this,oe)},$.getLocalTransform=function(oe,ae){ae=ae||[];var ie=oe.originX||0,le=oe.originY||0,pe=oe.scaleX,_e=oe.scaleY,Ce=oe.anchorX,$e=oe.anchorY,xe=oe.rotation||0,Ie=oe.x,Ne=oe.y,Fe=oe.skewX?Math.tan(oe.skewX):0,ze=oe.skewY?Math.tan(-oe.skewY):0;if(ie||le||Ce||$e){var At=ie+Ce,Lt=le+$e;ae[4]=-At*pe-Fe*Lt*_e,ae[5]=-Lt*_e-ze*At*pe}else ae[4]=ae[5]=0;return ae[0]=pe,ae[3]=_e,ae[1]=ze*pe,ae[2]=Fe*_e,xe&&rotate(ae,ae,xe),ae[4]+=ie+Ie,ae[5]+=le+Ne,ae},$.initDefaultProps=function(){var oe=$.prototype;oe.scaleX=oe.scaleY=oe.globalScaleRatio=1,oe.x=oe.y=oe.originX=oe.originY=oe.skewX=oe.skewY=oe.rotation=oe.anchorX=oe.anchorY=0}(),$}(),TRANSFORMABLE_PROPS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function copyTransform($,oe){for(var ae=0;ae=0?parseFloat($)/100*oe:parseFloat($):$}function calculateTextPosition($,oe,ae){var ie=oe.position||"inside",le=oe.distance!=null?oe.distance:5,pe=ae.height,_e=ae.width,Ce=pe/2,$e=ae.x,xe=ae.y,Ie="left",Ne="top";if(ie instanceof Array)$e+=parsePercent$1(ie[0],ae.width),xe+=parsePercent$1(ie[1],ae.height),Ie=null,Ne=null;else switch(ie){case"left":$e-=le,xe+=Ce,Ie="right",Ne="middle";break;case"right":$e+=le+_e,xe+=Ce,Ne="middle";break;case"top":$e+=_e/2,xe-=le,Ie="center",Ne="bottom";break;case"bottom":$e+=_e/2,xe+=pe+le,Ie="center";break;case"inside":$e+=_e/2,xe+=Ce,Ie="center",Ne="middle";break;case"insideLeft":$e+=le,xe+=Ce,Ne="middle";break;case"insideRight":$e+=_e-le,xe+=Ce,Ie="right",Ne="middle";break;case"insideTop":$e+=_e/2,xe+=le,Ie="center";break;case"insideBottom":$e+=_e/2,xe+=pe-le,Ie="center",Ne="bottom";break;case"insideTopLeft":$e+=le,xe+=le;break;case"insideTopRight":$e+=_e-le,xe+=le,Ie="right";break;case"insideBottomLeft":$e+=le,xe+=pe-le,Ne="bottom";break;case"insideBottomRight":$e+=_e-le,xe+=pe-le,Ie="right",Ne="bottom";break}return $=$||{},$.x=$e,$.y=xe,$.align=Ie,$.verticalAlign=Ne,$}var PRESERVED_NORMAL_STATE="__zr_normal__",PRIMARY_STATES_KEYS$1=TRANSFORMABLE_PROPS.concat(["ignore"]),DEFAULT_ANIMATABLE_MAP=reduce(TRANSFORMABLE_PROPS,function($,oe){return $[oe]=!0,$},{ignore:!1}),tmpTextPosCalcRes={},tmpBoundingRect=new BoundingRect$1(0,0,0,0),Element$1=function(){function $(oe){this.id=guid(),this.animators=[],this.currentStates=[],this.states={},this._init(oe)}return $.prototype._init=function(oe){this.attr(oe)},$.prototype.drift=function(oe,ae,ie){switch(this.draggable){case"horizontal":ae=0;break;case"vertical":oe=0;break}var le=this.transform;le||(le=this.transform=[1,0,0,1,0,0]),le[4]+=oe,le[5]+=ae,this.decomposeTransform(),this.markRedraw()},$.prototype.beforeUpdate=function(){},$.prototype.afterUpdate=function(){},$.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},$.prototype.updateInnerText=function(oe){var ae=this._textContent;if(ae&&(!ae.ignore||oe)){this.textConfig||(this.textConfig={});var ie=this.textConfig,le=ie.local,pe=ae.innerTransformable,_e=void 0,Ce=void 0,$e=!1;pe.parent=le?this:null;var xe=!1;if(pe.copyTransform(ae),ie.position!=null){var Ie=tmpBoundingRect;ie.layoutRect?Ie.copy(ie.layoutRect):Ie.copy(this.getBoundingRect()),le||Ie.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,ie,Ie):calculateTextPosition(tmpTextPosCalcRes,ie,Ie),pe.x=tmpTextPosCalcRes.x,pe.y=tmpTextPosCalcRes.y,_e=tmpTextPosCalcRes.align,Ce=tmpTextPosCalcRes.verticalAlign;var Ne=ie.origin;if(Ne&&ie.rotation!=null){var Fe=void 0,ze=void 0;Ne==="center"?(Fe=Ie.width*.5,ze=Ie.height*.5):(Fe=parsePercent$1(Ne[0],Ie.width),ze=parsePercent$1(Ne[1],Ie.height)),xe=!0,pe.originX=-pe.x+Fe+(le?0:Ie.x),pe.originY=-pe.y+ze+(le?0:Ie.y)}}ie.rotation!=null&&(pe.rotation=ie.rotation);var At=ie.offset;At&&(pe.x+=At[0],pe.y+=At[1],xe||(pe.originX=-At[0],pe.originY=-At[1]));var Lt=ie.inside==null?typeof ie.position=="string"&&ie.position.indexOf("inside")>=0:ie.inside,hn=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),vn=void 0,_n=void 0,bn=void 0;Lt&&this.canBeInsideText()?(vn=ie.insideFill,_n=ie.insideStroke,(vn==null||vn==="auto")&&(vn=this.getInsideTextFill()),(_n==null||_n==="auto")&&(_n=this.getInsideTextStroke(vn),bn=!0)):(vn=ie.outsideFill,_n=ie.outsideStroke,(vn==null||vn==="auto")&&(vn=this.getOutsideFill()),(_n==null||_n==="auto")&&(_n=this.getOutsideStroke(vn),bn=!0)),vn=vn||"#000",(vn!==hn.fill||_n!==hn.stroke||bn!==hn.autoStroke||_e!==hn.align||Ce!==hn.verticalAlign)&&($e=!0,hn.fill=vn,hn.stroke=_n,hn.autoStroke=bn,hn.align=_e,hn.verticalAlign=Ce,ae.setDefaultTextStyle(hn)),ae.__dirty|=REDRAW_BIT,$e&&ae.dirtyStyle(!0)}},$.prototype.canBeInsideText=function(){return!0},$.prototype.getInsideTextFill=function(){return"#fff"},$.prototype.getInsideTextStroke=function(oe){return"#000"},$.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?LIGHT_LABEL_COLOR:DARK_LABEL_COLOR},$.prototype.getOutsideStroke=function(oe){var ae=this.__zr&&this.__zr.getBackgroundColor(),ie=typeof ae=="string"&&parse$1(ae);ie||(ie=[255,255,255,1]);for(var le=ie[3],pe=this.__zr.isDarkMode(),_e=0;_e<3;_e++)ie[_e]=ie[_e]*le+(pe?0:255)*(1-le);return ie[3]=1,stringify(ie,"rgba")},$.prototype.traverse=function(oe,ae){},$.prototype.attrKV=function(oe,ae){oe==="textConfig"?this.setTextConfig(ae):oe==="textContent"?this.setTextContent(ae):oe==="clipPath"?this.setClipPath(ae):oe==="extra"?(this.extra=this.extra||{},extend(this.extra,ae)):this[oe]=ae},$.prototype.hide=function(){this.ignore=!0,this.markRedraw()},$.prototype.show=function(){this.ignore=!1,this.markRedraw()},$.prototype.attr=function(oe,ae){if(typeof oe=="string")this.attrKV(oe,ae);else if(isObject$3(oe))for(var ie=oe,le=keys(ie),pe=0;pe0},$.prototype.getState=function(oe){return this.states[oe]},$.prototype.ensureState=function(oe){var ae=this.states;return ae[oe]||(ae[oe]={}),ae[oe]},$.prototype.clearStates=function(oe){this.useState(PRESERVED_NORMAL_STATE,!1,oe)},$.prototype.useState=function(oe,ae,ie,le){var pe=oe===PRESERVED_NORMAL_STATE,_e=this.hasState();if(!(!_e&&pe)){var Ce=this.currentStates,$e=this.stateTransition;if(!(indexOf(Ce,oe)>=0&&(ae||Ce.length===1))){var xe;if(this.stateProxy&&!pe&&(xe=this.stateProxy(oe)),xe||(xe=this.states&&this.states[oe]),!xe&&!pe){logError("State "+oe+" not exists.");return}pe||this.saveCurrentToNormalState(xe);var Ie=!!(xe&&xe.hoverLayer||le);Ie&&this._toggleHoverLayerFlag(!0),this._applyStateObj(oe,xe,this._normalState,ae,!ie&&!this.__inHover&&$e&&$e.duration>0,$e);var Ne=this._textContent,Fe=this._textGuide;return Ne&&Ne.useState(oe,ae,ie,Ie),Fe&&Fe.useState(oe,ae,ie,Ie),pe?(this.currentStates=[],this._normalState={}):ae?this.currentStates.push(oe):this.currentStates=[oe],this._updateAnimationTargets(),this.markRedraw(),!Ie&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),xe}}},$.prototype.useStates=function(oe,ae,ie){if(!oe.length)this.clearStates();else{var le=[],pe=this.currentStates,_e=oe.length,Ce=_e===pe.length;if(Ce){for(var $e=0;$e<_e;$e++)if(oe[$e]!==pe[$e]){Ce=!1;break}}if(Ce)return;for(var $e=0;$e<_e;$e++){var xe=oe[$e],Ie=void 0;this.stateProxy&&(Ie=this.stateProxy(xe,oe)),Ie||(Ie=this.states[xe]),Ie&&le.push(Ie)}var Ne=le[_e-1],Fe=!!(Ne&&Ne.hoverLayer||ie);Fe&&this._toggleHoverLayerFlag(!0);var ze=this._mergeStates(le),At=this.stateTransition;this.saveCurrentToNormalState(ze),this._applyStateObj(oe.join(","),ze,this._normalState,!1,!ae&&!this.__inHover&&At&&At.duration>0,At);var Lt=this._textContent,hn=this._textGuide;Lt&&Lt.useStates(oe,ae,Fe),hn&&hn.useStates(oe,ae,Fe),this._updateAnimationTargets(),this.currentStates=oe.slice(),this.markRedraw(),!Fe&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},$.prototype._updateAnimationTargets=function(){for(var oe=0;oe=0){var ie=this.currentStates.slice();ie.splice(ae,1),this.useStates(ie)}},$.prototype.replaceState=function(oe,ae,ie){var le=this.currentStates.slice(),pe=indexOf(le,oe),_e=indexOf(le,ae)>=0;pe>=0?_e?le.splice(pe,1):le[pe]=ae:ie&&!_e&&le.push(ae),this.useStates(le)},$.prototype.toggleState=function(oe,ae){ae?this.useState(oe,!0):this.removeState(oe)},$.prototype._mergeStates=function(oe){for(var ae={},ie,le=0;le=0&&pe.splice(_e,1)}),this.animators.push(oe),ie&&ie.animation.addAnimator(oe),ie&&ie.wakeUp()},$.prototype.updateDuringAnimation=function(oe){this.markRedraw()},$.prototype.stopAnimation=function(oe,ae){for(var ie=this.animators,le=ie.length,pe=[],_e=0;_e0&&ae.during&&pe[0].during(function(At,Lt){ae.during(Lt)});for(var Fe=0;Fe0||le.force&&!_e.length){var Tn=void 0,xn=void 0,kn=void 0;if(Ce){xn={},Fe&&(Tn={});for(var Cn=0;Cn=0&&(le.splice(pe,0,ae),this._doAdd(ae))}return this},oe.prototype.replace=function(ae,ie){var le=indexOf(this._children,ae);return le>=0&&this.replaceAt(ie,le),this},oe.prototype.replaceAt=function(ae,ie){var le=this._children,pe=le[ie];if(ae&&ae!==this&&ae.parent!==this&&ae!==pe){le[ie]=ae,pe.parent=null;var _e=this.__zr;_e&&pe.removeSelfFromZr(_e),this._doAdd(ae)}return this},oe.prototype._doAdd=function(ae){ae.parent&&ae.parent.remove(ae),ae.parent=this;var ie=this.__zr;ie&&ie!==ae.__zr&&ae.addSelfToZr(ie),ie&&ie.refresh()},oe.prototype.remove=function(ae){var ie=this.__zr,le=this._children,pe=indexOf(le,ae);return pe<0?this:(le.splice(pe,1),ae.parent=null,ie&&ae.removeSelfFromZr(ie),ie&&ie.refresh(),this)},oe.prototype.removeAll=function(){for(var ae=this._children,ie=this.__zr,le=0;le0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},$.prototype.setSleepAfterStill=function(oe){this._sleepAfterStill=oe},$.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},$.prototype.refreshHover=function(){this._needsRefreshHover=!0},$.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},$.prototype.resize=function(oe){oe=oe||{},this.painter.resize(oe.width,oe.height),this.handler.resize()},$.prototype.clearAnimation=function(){this.animation.clear()},$.prototype.getWidth=function(){return this.painter.getWidth()},$.prototype.getHeight=function(){return this.painter.getHeight()},$.prototype.setCursorStyle=function(oe){this.handler.setCursorStyle(oe)},$.prototype.findHover=function(oe,ae){return this.handler.findHover(oe,ae)},$.prototype.on=function(oe,ae,ie){return this.handler.on(oe,ae,ie),this},$.prototype.off=function(oe,ae){this.handler.off(oe,ae)},$.prototype.trigger=function(oe,ae){this.handler.trigger(oe,ae)},$.prototype.clear=function(){for(var oe=this.storage.getRoots(),ae=0;ae0){if($<=le)return _e;if($>=pe)return Ce}else{if($>=le)return _e;if($<=pe)return Ce}else{if($===le)return _e;if($===pe)return Ce}return($-le)/$e*xe+_e}function parsePercent($,oe){switch($){case"center":case"middle":$="50%";break;case"left":case"top":$="0%";break;case"right":case"bottom":$="100%";break}return isString($)?_trim($).match(/%$/)?parseFloat($)/100*oe:parseFloat($):$==null?NaN:+$}function round$1($,oe,ae){return oe==null&&(oe=10),oe=Math.min(Math.max(0,oe),ROUND_SUPPORTED_PRECISION_MAX),$=(+$).toFixed(oe),ae?$:+$}function asc$2($){return $.sort(function(oe,ae){return oe-ae}),$}function getPrecision($){if($=+$,isNaN($))return 0;if($>1e-14){for(var oe=1,ae=0;ae<15;ae++,oe*=10)if(Math.round($*oe)/oe===$)return ae}return getPrecisionSafe($)}function getPrecisionSafe($){var oe=$.toString().toLowerCase(),ae=oe.indexOf("e"),ie=ae>0?+oe.slice(ae+1):0,le=ae>0?ae:oe.length,pe=oe.indexOf("."),_e=pe<0?0:le-1-pe;return Math.max(0,_e-ie)}function getPixelPrecision($,oe){var ae=Math.log,ie=Math.LN10,le=Math.floor(ae($[1]-$[0])/ie),pe=Math.round(ae(Math.abs(oe[1]-oe[0]))/ie),_e=Math.min(Math.max(-le+pe,0),20);return isFinite(_e)?_e:20}function getPercentWithPrecision($,oe,ae){if(!$[oe])return 0;var ie=getPercentSeats($,ae);return ie[oe]||0}function getPercentSeats($,oe){var ae=reduce($,function(ze,At){return ze+(isNaN(At)?0:At)},0);if(ae===0)return[];for(var ie=Math.pow(10,oe),le=map$2($,function(ze){return(isNaN(ze)?0:ze)/ae*ie*100}),pe=ie*100,_e=map$2(le,function(ze){return Math.floor(ze)}),Ce=reduce(_e,function(ze,At){return ze+At},0),$e=map$2(le,function(ze,At){return ze-_e[At]});Cexe&&(xe=$e[Ne],Ie=Ne);++_e[Ie],$e[Ie]=0,++Ce}return map$2(_e,function(ze){return ze/ie})}function addSafe($,oe){var ae=Math.max(getPrecision($),getPrecision(oe)),ie=$+oe;return ae>ROUND_SUPPORTED_PRECISION_MAX?ie:round$1(ie,ae)}var MAX_SAFE_INTEGER=9007199254740991;function remRadian($){var oe=Math.PI*2;return($%oe+oe)%oe}function isRadianAroundZero($){return $>-RADIAN_EPSILON&&$=10&&oe++,oe}function nice($,oe){var ae=quantityExponent($),ie=Math.pow(10,ae),le=$/ie,pe;return oe?le<1.5?pe=1:le<2.5?pe=2:le<4?pe=3:le<7?pe=5:pe=10:le<1?pe=1:le<2?pe=2:le<3?pe=3:le<5?pe=5:pe=10,$=pe*ie,ae>=-20?+$.toFixed(ae<0?-ae:0):$}function quantile($,oe){var ae=($.length-1)*oe+1,ie=Math.floor(ae),le=+$[ie-1],pe=ae-ie;return pe?le+pe*($[ie]-le):le}function reformIntervals($){$.sort(function($e,xe){return Ce($e,xe,0)?-1:1});for(var oe=-1/0,ae=1,ie=0;ie<$.length;){for(var le=$[ie].interval,pe=$[ie].close,_e=0;_e<2;_e++)le[_e]<=oe&&(le[_e]=oe,pe[_e]=_e?1:1-ae),oe=le[_e],ae=pe[_e];le[0]===le[1]&&pe[0]*pe[1]!==1?$.splice(ie,1):ie++}return $;function Ce($e,xe,Ie){return $e.interval[Ie]=0||pe&&indexOf(pe,$e)<0)){var xe=ie.getShallow($e,oe);xe!=null&&(_e[$[Ce][0]]=xe)}}return _e}}var AREA_STYLE_KEY_MAP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],getAreaStyle=makeStyleMapper(AREA_STYLE_KEY_MAP),AreaStyleMixin=function(){function $(){}return $.prototype.getAreaStyle=function(oe,ae){return getAreaStyle(this,oe,ae)},$}(),globalImageCache=new LRU$1(50);function findExistImage($){if(typeof $=="string"){var oe=globalImageCache.get($);return oe&&oe.image}else return $}function createOrUpdateImage($,oe,ae,ie,le){if($)if(typeof $=="string"){if(oe&&oe.__zrImageSrc===$||!ae)return oe;var pe=globalImageCache.get($),_e={hostEl:ae,cb:ie,cbPayload:le};return pe?(oe=pe.image,!isImageReady(oe)&&pe.pending.push(_e)):(oe=platformApi.loadImage($,imageOnLoad,imageOnLoad),oe.__zrImageSrc=$,globalImageCache.put($,oe.__cachedImgObj={image:oe,pending:[_e]})),oe}else return $;else return oe}function imageOnLoad(){var $=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var oe=0;oe<$.pending.length;oe++){var ae=$.pending[oe],ie=ae.cb;ie&&ie(this,ae.cbPayload),ae.hostEl.dirty()}$.pending.length=0}function isImageReady($){return $&&$.width&&$.height}var STYLE_REG=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function truncateText($,oe,ae,ie,le){if(!oe)return"";var pe=($+"").split(` +`);le=prepareTruncateOptions(oe,ae,ie,le);for(var _e=0,Ce=pe.length;_e=_e;$e++)Ce-=_e;var xe=getWidth(ae,oe);return xe>Ce&&(ae="",xe=0),Ce=$-xe,le.ellipsis=ae,le.ellipsisWidth=xe,le.contentWidth=Ce,le.containerWidth=$,le}function truncateSingleLine($,oe){var ae=oe.containerWidth,ie=oe.font,le=oe.contentWidth;if(!ae)return"";var pe=getWidth($,ie);if(pe<=ae)return $;for(var _e=0;;_e++){if(pe<=le||_e>=oe.maxIterations){$+=oe.ellipsis;break}var Ce=_e===0?estimateLength($,le,oe.ascCharWidth,oe.cnCharWidth):pe>0?Math.floor($.length*le/pe):0;$=$.substr(0,Ce),pe=getWidth($,ie)}return $===""&&($=oe.placeholder),$}function estimateLength($,oe,ae,ie){for(var le=0,pe=0,_e=$.length;pe<_e&&leze&&xe){var At=Math.floor(ze/Ce);Ne=Ne.slice(0,At)}if($&&pe&&Ie!=null)for(var Lt=prepareTruncateOptions(Ie,le,oe.ellipsis,{minChar:oe.truncateMinChar,placeholder:oe.placeholder}),hn=0;hnCe&&pushTokens(ae,$.substring(Ce,xe),oe,_e),pushTokens(ae,$e[2],oe,_e,$e[1]),Ce=STYLE_REG.lastIndex}Ce<$.length&&pushTokens(ae,$.substring(Ce,$.length),oe,_e);var Ie=[],Ne=0,Fe=0,ze=oe.padding,At=pe==="truncate",Lt=oe.lineOverflow==="truncate";function hn(Fn,Vn,jn){Fn.width=Vn,Fn.lineHeight=jn,Ne+=jn,Fe=Math.max(Fe,Vn)}e:for(var vn=0;vnle){En>0?(_n.tokens=_n.tokens.slice(0,En),hn(_n,Cn,bn),ae.lines=ae.lines.slice(0,vn+1)):ae.lines=ae.lines.slice(0,vn);break e}var On=wn.width,Nn=On==null||On==="auto";if(typeof On=="string"&&On.charAt(On.length-1)==="%")$n.percentWidth=On,Ie.push($n),$n.contentWidth=getWidth($n.text,kn);else{if(Nn){var Rn=wn.backgroundColor,zn=Rn&&Rn.image;zn&&(zn=findExistImage(zn),isImageReady(zn)&&($n.width=Math.max($n.width,zn.width*An/zn.height)))}var Bn=At&&ie!=null?ie-Cn:null;Bn!=null&&Bn<$n.width?!Nn||Bn0&&At+ie.accumWidth>ie.width&&(Ie=oe.split(` +`),xe=!0),ie.accumWidth=At}else{var Lt=wrapText(oe,$e,ie.width,ie.breakAll,ie.accumWidth);ie.accumWidth=Lt.accumWidth+ze,Ne=Lt.linesWidths,Ie=Lt.lines}}else Ie=oe.split(` +`);for(var hn=0;hn=32&&oe<=591||oe>=880&&oe<=4351||oe>=4608&&oe<=5119||oe>=7680&&oe<=8303}var breakCharMap=reduce(",&?/;] ".split(""),function($,oe){return $[oe]=!0,$},{});function isWordBreakChar($){return isAlphabeticLetter($)?!!breakCharMap[$]:!0}function wrapText($,oe,ae,ie,le){for(var pe=[],_e=[],Ce="",$e="",xe=0,Ie=0,Ne=0;Ne<$.length;Ne++){var Fe=$.charAt(Ne);if(Fe===` +`){$e&&(Ce+=$e,Ie+=xe),pe.push(Ce),_e.push(Ie),Ce="",$e="",xe=0,Ie=0;continue}var ze=getWidth(Fe,oe),At=ie?!1:!isWordBreakChar(Fe);if(pe.length?Ie+ze>ae:le+Ie+ze>ae){Ie?(Ce||$e)&&(At?(Ce||(Ce=$e,$e="",xe=0,Ie=xe),pe.push(Ce),_e.push(Ie-xe),$e+=Fe,xe+=ze,Ce="",Ie=xe):($e&&(Ce+=$e,$e="",xe=0),pe.push(Ce),_e.push(Ie),Ce=Fe,Ie=ze)):At?(pe.push($e),_e.push(xe),$e=Fe,xe=ze):(pe.push(Fe),_e.push(ze));continue}Ie+=ze,At?($e+=Fe,xe+=ze):($e&&(Ce+=$e,$e="",xe=0),Ce+=Fe)}return!pe.length&&!Ce&&(Ce=$,$e="",xe=0),$e&&(Ce+=$e),Ce&&(pe.push(Ce),_e.push(Ie)),pe.length===1&&(Ie+=le),{accumWidth:Ie,lines:pe,linesWidths:_e}}var STYLE_MAGIC_KEY="__zr_style_"+Math.round(Math.random()*10),DEFAULT_COMMON_STYLE={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},DEFAULT_COMMON_ANIMATION_PROPS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};DEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY]=!0;var PRIMARY_STATES_KEYS=["z","z2","invisible"],PRIMARY_STATES_KEYS_IN_HOVER_LAYER=["invisible"],Displayable=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype._init=function(ae){for(var ie=keys(ae),le=0;le1e-4){Ce[0]=$-ae,Ce[1]=oe-ie,$e[0]=$+ae,$e[1]=oe+ie;return}if(start[0]=mathCos$3(le)*ae+$,start[1]=mathSin$3(le)*ie+oe,end[0]=mathCos$3(pe)*ae+$,end[1]=mathSin$3(pe)*ie+oe,xe(Ce,start,end),Ie($e,start,end),le=le%PI2$6,le<0&&(le=le+PI2$6),pe=pe%PI2$6,pe<0&&(pe=pe+PI2$6),le>pe&&!_e?pe+=PI2$6:lele&&(extremity[0]=mathCos$3(ze)*ae+$,extremity[1]=mathSin$3(ze)*ie+oe,xe(Ce,extremity,Ce),Ie($e,extremity,$e))}var CMD$2={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tmpOutX=[],tmpOutY=[],min=[],max=[],min2=[],max2=[],mathMin$6=Math.min,mathMax$6=Math.max,mathCos$2=Math.cos,mathSin$2=Math.sin,mathAbs$1=Math.abs,PI$4=Math.PI,PI2$5=PI$4*2,hasTypedArray=typeof Float32Array<"u",tmpAngles=[];function modPI2($){var oe=Math.round($/PI$4*1e8)/1e8;return oe%2*PI$4}function normalizeArcAngles($,oe){var ae=modPI2($[0]);ae<0&&(ae+=PI2$5);var ie=ae-$[0],le=$[1];le+=ie,!oe&&le-ae>=PI2$5?le=ae+PI2$5:oe&&ae-le>=PI2$5?le=ae-PI2$5:!oe&&ae>le?le=ae+(PI2$5-modPI2(ae-le)):oe&&ae0&&(this._ux=mathAbs$1(ie/devicePixelRatio/oe)||0,this._uy=mathAbs$1(ie/devicePixelRatio/ae)||0)},$.prototype.setDPR=function(oe){this.dpr=oe},$.prototype.setContext=function(oe){this._ctx=oe},$.prototype.getContext=function(){return this._ctx},$.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},$.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},$.prototype.moveTo=function(oe,ae){return this._drawPendingPt(),this.addData(CMD$2.M,oe,ae),this._ctx&&this._ctx.moveTo(oe,ae),this._x0=oe,this._y0=ae,this._xi=oe,this._yi=ae,this},$.prototype.lineTo=function(oe,ae){var ie=mathAbs$1(oe-this._xi),le=mathAbs$1(ae-this._yi),pe=ie>this._ux||le>this._uy;if(this.addData(CMD$2.L,oe,ae),this._ctx&&pe&&this._ctx.lineTo(oe,ae),pe)this._xi=oe,this._yi=ae,this._pendingPtDist=0;else{var _e=ie*ie+le*le;_e>this._pendingPtDist&&(this._pendingPtX=oe,this._pendingPtY=ae,this._pendingPtDist=_e)}return this},$.prototype.bezierCurveTo=function(oe,ae,ie,le,pe,_e){return this._drawPendingPt(),this.addData(CMD$2.C,oe,ae,ie,le,pe,_e),this._ctx&&this._ctx.bezierCurveTo(oe,ae,ie,le,pe,_e),this._xi=pe,this._yi=_e,this},$.prototype.quadraticCurveTo=function(oe,ae,ie,le){return this._drawPendingPt(),this.addData(CMD$2.Q,oe,ae,ie,le),this._ctx&&this._ctx.quadraticCurveTo(oe,ae,ie,le),this._xi=ie,this._yi=le,this},$.prototype.arc=function(oe,ae,ie,le,pe,_e){this._drawPendingPt(),tmpAngles[0]=le,tmpAngles[1]=pe,normalizeArcAngles(tmpAngles,_e),le=tmpAngles[0],pe=tmpAngles[1];var Ce=pe-le;return this.addData(CMD$2.A,oe,ae,ie,ie,le,Ce,0,_e?0:1),this._ctx&&this._ctx.arc(oe,ae,ie,le,pe,_e),this._xi=mathCos$2(pe)*ie+oe,this._yi=mathSin$2(pe)*ie+ae,this},$.prototype.arcTo=function(oe,ae,ie,le,pe){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(oe,ae,ie,le,pe),this},$.prototype.rect=function(oe,ae,ie,le){return this._drawPendingPt(),this._ctx&&this._ctx.rect(oe,ae,ie,le),this.addData(CMD$2.R,oe,ae,ie,le),this},$.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$2.Z);var oe=this._ctx,ae=this._x0,ie=this._y0;return oe&&oe.closePath(),this._xi=ae,this._yi=ie,this},$.prototype.fill=function(oe){oe&&oe.fill(),this.toStatic()},$.prototype.stroke=function(oe){oe&&oe.stroke(),this.toStatic()},$.prototype.len=function(){return this._len},$.prototype.setData=function(oe){var ae=oe.length;!(this.data&&this.data.length===ae)&&hasTypedArray&&(this.data=new Float32Array(ae));for(var ie=0;ieIe.length&&(this._expandData(),Ie=this.data);for(var Ne=0;Ne0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},$.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var oe=[],ae=0;ae11&&(this.data=new Float32Array(oe)))}},$.prototype.getBoundingRect=function(){min[0]=min[1]=min2[0]=min2[1]=Number.MAX_VALUE,max[0]=max[1]=max2[0]=max2[1]=-Number.MAX_VALUE;var oe=this.data,ae=0,ie=0,le=0,pe=0,_e;for(_e=0;_eie||mathAbs$1(bn)>le||Fe===ae-1)&&(Lt=Math.sqrt(_n*_n+bn*bn),pe=hn,_e=vn);break}case CMD$2.C:{var Cn=oe[Fe++],En=oe[Fe++],hn=oe[Fe++],vn=oe[Fe++],$n=oe[Fe++],wn=oe[Fe++];Lt=cubicLength(pe,_e,Cn,En,hn,vn,$n,wn,10),pe=$n,_e=wn;break}case CMD$2.Q:{var Cn=oe[Fe++],En=oe[Fe++],hn=oe[Fe++],vn=oe[Fe++];Lt=quadraticLength(pe,_e,Cn,En,hn,vn,10),pe=hn,_e=vn;break}case CMD$2.A:var Tn=oe[Fe++],xn=oe[Fe++],kn=oe[Fe++],An=oe[Fe++],On=oe[Fe++],Nn=oe[Fe++],Rn=Nn+On;Fe+=1,oe[Fe++],At&&(Ce=mathCos$2(On)*kn+Tn,$e=mathSin$2(On)*An+xn),Lt=mathMax$6(kn,An)*mathMin$6(PI2$5,Math.abs(Nn)),pe=mathCos$2(Rn)*kn+Tn,_e=mathSin$2(Rn)*An+xn;break;case CMD$2.R:{Ce=pe=oe[Fe++],$e=_e=oe[Fe++];var zn=oe[Fe++],Bn=oe[Fe++];Lt=zn*2+Bn*2;break}case CMD$2.Z:{var _n=Ce-pe,bn=$e-_e;Lt=Math.sqrt(_n*_n+bn*bn),pe=Ce,_e=$e;break}}Lt>=0&&(xe[Ne++]=Lt,Ie+=Lt)}return this._pathLen=Ie,Ie},$.prototype.rebuildPath=function(oe,ae){var ie=this.data,le=this._ux,pe=this._uy,_e=this._len,Ce,$e,xe,Ie,Ne,Fe,ze=ae<1,At,Lt,hn=0,vn=0,_n,bn=0,Cn,En;if(!(ze&&(this._pathSegLen||this._calculateLength(),At=this._pathSegLen,Lt=this._pathLen,_n=ae*Lt,!_n)))e:for(var $n=0;$n<_e;){var wn=ie[$n++],Tn=$n===1;switch(Tn&&(xe=ie[$n],Ie=ie[$n+1],Ce=xe,$e=Ie),wn!==CMD$2.L&&bn>0&&(oe.lineTo(Cn,En),bn=0),wn){case CMD$2.M:Ce=xe=ie[$n++],$e=Ie=ie[$n++],oe.moveTo(xe,Ie);break;case CMD$2.L:{Ne=ie[$n++],Fe=ie[$n++];var xn=mathAbs$1(Ne-xe),kn=mathAbs$1(Fe-Ie);if(xn>le||kn>pe){if(ze){var An=At[vn++];if(hn+An>_n){var On=(_n-hn)/An;oe.lineTo(xe*(1-On)+Ne*On,Ie*(1-On)+Fe*On);break e}hn+=An}oe.lineTo(Ne,Fe),xe=Ne,Ie=Fe,bn=0}else{var Nn=xn*xn+kn*kn;Nn>bn&&(Cn=Ne,En=Fe,bn=Nn)}break}case CMD$2.C:{var Rn=ie[$n++],zn=ie[$n++],Bn=ie[$n++],Mn=ie[$n++],Fn=ie[$n++],Vn=ie[$n++];if(ze){var An=At[vn++];if(hn+An>_n){var On=(_n-hn)/An;cubicSubdivide(xe,Rn,Bn,Fn,On,tmpOutX),cubicSubdivide(Ie,zn,Mn,Vn,On,tmpOutY),oe.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}hn+=An}oe.bezierCurveTo(Rn,zn,Bn,Mn,Fn,Vn),xe=Fn,Ie=Vn;break}case CMD$2.Q:{var Rn=ie[$n++],zn=ie[$n++],Bn=ie[$n++],Mn=ie[$n++];if(ze){var An=At[vn++];if(hn+An>_n){var On=(_n-hn)/An;quadraticSubdivide(xe,Rn,Bn,On,tmpOutX),quadraticSubdivide(Ie,zn,Mn,On,tmpOutY),oe.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}hn+=An}oe.quadraticCurveTo(Rn,zn,Bn,Mn),xe=Bn,Ie=Mn;break}case CMD$2.A:var jn=ie[$n++],Zn=ie[$n++],Gn=ie[$n++],Xn=ie[$n++],cr=ie[$n++],nr=ie[$n++],er=ie[$n++],rr=!ie[$n++],qn=Gn>Xn?Gn:Xn,Yn=mathAbs$1(Gn-Xn)>.001,ar=cr+nr,pr=!1;if(ze){var An=At[vn++];hn+An>_n&&(ar=cr+nr*(_n-hn)/An,pr=!0),hn+=An}if(Yn&&oe.ellipse?oe.ellipse(jn,Zn,Gn,Xn,er,cr,ar,rr):oe.arc(jn,Zn,qn,cr,ar,rr),pr)break e;Tn&&(Ce=mathCos$2(cr)*Gn+jn,$e=mathSin$2(cr)*Xn+Zn),xe=mathCos$2(ar)*Gn+jn,Ie=mathSin$2(ar)*Xn+Zn;break;case CMD$2.R:Ce=xe=ie[$n],$e=Ie=ie[$n+1],Ne=ie[$n++],Fe=ie[$n++];var Un=ie[$n++],tr=ie[$n++];if(ze){var An=At[vn++];if(hn+An>_n){var ur=_n-hn;oe.moveTo(Ne,Fe),oe.lineTo(Ne+mathMin$6(ur,Un),Fe),ur-=Un,ur>0&&oe.lineTo(Ne+Un,Fe+mathMin$6(ur,tr)),ur-=tr,ur>0&&oe.lineTo(Ne+mathMax$6(Un-ur,0),Fe+tr),ur-=Un,ur>0&&oe.lineTo(Ne,Fe+mathMax$6(tr-ur,0));break e}hn+=An}oe.rect(Ne,Fe,Un,tr);break;case CMD$2.Z:if(ze){var An=At[vn++];if(hn+An>_n){var On=(_n-hn)/An;oe.lineTo(xe*(1-On)+Ce*On,Ie*(1-On)+$e*On);break e}hn+=An}oe.closePath(),xe=Ce,Ie=$e}}},$.prototype.clone=function(){var oe=new $,ae=this.data;return oe.data=ae.slice?ae.slice():Array.prototype.slice.call(ae),oe._len=this._len,oe},$.CMD=CMD$2,$.initDefaultProps=function(){var oe=$.prototype;oe._saveData=!0,oe._ux=0,oe._uy=0,oe._pendingPtDist=0,oe._version=0}(),$}();const PathProxy$1=PathProxy;function containStroke$4($,oe,ae,ie,le,pe,_e){if(le===0)return!1;var Ce=le,$e=0,xe=$;if(_e>oe+Ce&&_e>ie+Ce||_e$+Ce&&pe>ae+Ce||pe<$-Ce&&peoe+Ne&&Ie>ie+Ne&&Ie>pe+Ne&&Ie>Ce+Ne||Ie$+Ne&&xe>ae+Ne&&xe>le+Ne&&xe>_e+Ne||xe<$-Ne&&xeoe+xe&&$e>ie+xe&&$e>pe+xe||$e$+xe&&Ce>ae+xe&&Ce>le+xe||Ce<$-xe&&Ceae||Ie+xele&&(le+=PI2$3);var Fe=Math.atan2($e,Ce);return Fe<0&&(Fe+=PI2$3),Fe>=ie&&Fe<=le||Fe+PI2$3>=ie&&Fe+PI2$3<=le}function windingLine($,oe,ae,ie,le,pe){if(pe>oe&&pe>ie||pele?Ce:0}var CMD$1=PathProxy$1.CMD,PI2$2=Math.PI*2,EPSILON$1=1e-4;function isAroundEqual$1($,oe){return Math.abs($-oe)oe&&xe>ie&&xe>pe&&xe>Ce||xe1&&swapExtrema(),ze=cubicAt(oe,ie,pe,Ce,extrema[0]),Fe>1&&(At=cubicAt(oe,ie,pe,Ce,extrema[1]))),Fe===2?hnoe&&Ce>ie&&Ce>pe||Ce=0&&xe<=1){for(var Ie=0,Ne=quadraticAt(oe,ie,pe,xe),Fe=0;Fe<$e;Fe++){var ze=roots[Fe]===0||roots[Fe]===1?.5:1,At=quadraticAt($,ae,le,roots[Fe]);At<_e||(roots[Fe]ae||Ce<-ae)return 0;var $e=Math.sqrt(ae*ae-Ce*Ce);roots[0]=-$e,roots[1]=$e;var xe=Math.abs(ie-le);if(xe<1e-4)return 0;if(xe>=PI2$2-1e-4){ie=0,le=PI2$2;var Ie=pe?1:-1;return _e>=roots[0]+$&&_e<=roots[1]+$?Ie:0}if(ie>le){var Ne=ie;ie=le,le=Ne}ie<0&&(ie+=PI2$2,le+=PI2$2);for(var Fe=0,ze=0;ze<2;ze++){var At=roots[ze];if(At+$>_e){var Lt=Math.atan2(Ce,At),Ie=pe?1:-1;Lt<0&&(Lt=PI2$2+Lt),(Lt>=ie&&Lt<=le||Lt+PI2$2>=ie&&Lt+PI2$2<=le)&&(Lt>Math.PI/2&&Lt1&&(ae||(Ce+=windingLine($e,xe,Ie,Ne,ie,le))),hn&&($e=pe[At],xe=pe[At+1],Ie=$e,Ne=xe),Lt){case CMD$1.M:Ie=pe[At++],Ne=pe[At++],$e=Ie,xe=Ne;break;case CMD$1.L:if(ae){if(containStroke$4($e,xe,pe[At],pe[At+1],oe,ie,le))return!0}else Ce+=windingLine($e,xe,pe[At],pe[At+1],ie,le)||0;$e=pe[At++],xe=pe[At++];break;case CMD$1.C:if(ae){if(containStroke$3($e,xe,pe[At++],pe[At++],pe[At++],pe[At++],pe[At],pe[At+1],oe,ie,le))return!0}else Ce+=windingCubic($e,xe,pe[At++],pe[At++],pe[At++],pe[At++],pe[At],pe[At+1],ie,le)||0;$e=pe[At++],xe=pe[At++];break;case CMD$1.Q:if(ae){if(containStroke$2($e,xe,pe[At++],pe[At++],pe[At],pe[At+1],oe,ie,le))return!0}else Ce+=windingQuadratic($e,xe,pe[At++],pe[At++],pe[At],pe[At+1],ie,le)||0;$e=pe[At++],xe=pe[At++];break;case CMD$1.A:var vn=pe[At++],_n=pe[At++],bn=pe[At++],Cn=pe[At++],En=pe[At++],$n=pe[At++];At+=1;var wn=!!(1-pe[At++]);Fe=Math.cos(En)*bn+vn,ze=Math.sin(En)*Cn+_n,hn?(Ie=Fe,Ne=ze):Ce+=windingLine($e,xe,Fe,ze,ie,le);var Tn=(ie-vn)*Cn/bn+vn;if(ae){if(containStroke$1(vn,_n,Cn,En,En+$n,wn,oe,Tn,le))return!0}else Ce+=windingArc(vn,_n,Cn,En,En+$n,wn,Tn,le);$e=Math.cos(En+$n)*bn+vn,xe=Math.sin(En+$n)*Cn+_n;break;case CMD$1.R:Ie=$e=pe[At++],Ne=xe=pe[At++];var xn=pe[At++],kn=pe[At++];if(Fe=Ie+xn,ze=Ne+kn,ae){if(containStroke$4(Ie,Ne,Fe,Ne,oe,ie,le)||containStroke$4(Fe,Ne,Fe,ze,oe,ie,le)||containStroke$4(Fe,ze,Ie,ze,oe,ie,le)||containStroke$4(Ie,ze,Ie,Ne,oe,ie,le))return!0}else Ce+=windingLine(Fe,Ne,Fe,ze,ie,le),Ce+=windingLine(Ie,ze,Ie,Ne,ie,le);break;case CMD$1.Z:if(ae){if(containStroke$4($e,xe,Ie,Ne,oe,ie,le))return!0}else Ce+=windingLine($e,xe,Ie,Ne,ie,le);$e=Ie,xe=Ne;break}}return!ae&&!isAroundEqual$1(xe,Ne)&&(Ce+=windingLine($e,xe,Ie,Ne,ie,le)||0),Ce!==0}function contain$2($,oe,ae){return containPath($,0,!1,oe,ae)}function containStroke($,oe,ae,ie){return containPath($,oe,!0,ae,ie)}var DEFAULT_PATH_STYLE=defaults({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},DEFAULT_COMMON_STYLE),DEFAULT_PATH_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},pathCopyParams=TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),Path=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.update=function(){var ae=this;$.prototype.update.call(this);var ie=this.style;if(ie.decal){var le=this._decalEl=this._decalEl||new oe;le.buildPath===oe.prototype.buildPath&&(le.buildPath=function($e){ae.buildPath($e,ae.shape)}),le.silent=!0;var pe=le.style;for(var _e in ie)pe[_e]!==ie[_e]&&(pe[_e]=ie[_e]);pe.fill=ie.fill?ie.decal:null,pe.decal=null,pe.shadowColor=null,ie.strokeFirst&&(pe.stroke=null);for(var Ce=0;Ce.5?DARK_LABEL_COLOR:ie>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(ae)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},oe.prototype.getInsideTextStroke=function(ae){var ie=this.style.fill;if(isString(ie)){var le=this.__zr,pe=!!(le&&le.isDarkMode()),_e=lum(ae,0)0))},oe.prototype.hasFill=function(){var ae=this.style,ie=ae.fill;return ie!=null&&ie!=="none"},oe.prototype.getBoundingRect=function(){var ae=this._rect,ie=this.style,le=!ae;if(le){var pe=!1;this.path||(pe=!0,this.createPathProxy());var _e=this.path;(pe||this.__dirty&SHAPE_CHANGED_BIT)&&(_e.beginPath(),this.buildPath(_e,this.shape,!1),this.pathUpdated()),ae=_e.getBoundingRect()}if(this._rect=ae,this.hasStroke()&&this.path&&this.path.len()>0){var Ce=this._rectStroke||(this._rectStroke=ae.clone());if(this.__dirty||le){Ce.copy(ae);var $e=ie.strokeNoScale?this.getLineScale():1,xe=ie.lineWidth;if(!this.hasFill()){var Ie=this.strokeContainThreshold;xe=Math.max(xe,Ie??4)}$e>1e-10&&(Ce.width+=xe/$e,Ce.height+=xe/$e,Ce.x-=xe/$e/2,Ce.y-=xe/$e/2)}return Ce}return ae},oe.prototype.contain=function(ae,ie){var le=this.transformCoordToLocal(ae,ie),pe=this.getBoundingRect(),_e=this.style;if(ae=le[0],ie=le[1],pe.contain(ae,ie)){var Ce=this.path;if(this.hasStroke()){var $e=_e.lineWidth,xe=_e.strokeNoScale?this.getLineScale():1;if(xe>1e-10&&(this.hasFill()||($e=Math.max($e,this.strokeContainThreshold)),containStroke(Ce,$e/xe,ae,ie)))return!0}if(this.hasFill())return contain$2(Ce,ae,ie)}return!1},oe.prototype.dirtyShape=function(){this.__dirty|=SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},oe.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},oe.prototype.animateShape=function(ae){return this.animate("shape",ae)},oe.prototype.updateDuringAnimation=function(ae){ae==="style"?this.dirtyStyle():ae==="shape"?this.dirtyShape():this.markRedraw()},oe.prototype.attrKV=function(ae,ie){ae==="shape"?this.setShape(ie):$.prototype.attrKV.call(this,ae,ie)},oe.prototype.setShape=function(ae,ie){var le=this.shape;return le||(le=this.shape={}),typeof ae=="string"?le[ae]=ie:extend(le,ae),this.dirtyShape(),this},oe.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},oe.prototype.createStyle=function(ae){return createObject(DEFAULT_PATH_STYLE,ae)},oe.prototype._innerSaveToNormal=function(ae){$.prototype._innerSaveToNormal.call(this,ae);var ie=this._normalState;ae.shape&&!ie.shape&&(ie.shape=extend({},this.shape))},oe.prototype._applyStateObj=function(ae,ie,le,pe,_e,Ce){$.prototype._applyStateObj.call(this,ae,ie,le,pe,_e,Ce);var $e=!(ie&&pe),xe;if(ie&&ie.shape?_e?pe?xe=ie.shape:(xe=extend({},le.shape),extend(xe,ie.shape)):(xe=extend({},pe?this.shape:le.shape),extend(xe,ie.shape)):$e&&(xe=le.shape),xe)if(_e){this.shape=extend({},this.shape);for(var Ie={},Ne=keys(xe),Fe=0;Fe0},oe.prototype.hasFill=function(){var ae=this.style,ie=ae.fill;return ie!=null&&ie!=="none"},oe.prototype.createStyle=function(ae){return createObject(DEFAULT_TSPAN_STYLE,ae)},oe.prototype.setBoundingRect=function(ae){this._rect=ae},oe.prototype.getBoundingRect=function(){var ae=this.style;if(!this._rect){var ie=ae.text;ie!=null?ie+="":ie="";var le=getBoundingRect(ie,ae.font,ae.textAlign,ae.textBaseline);if(le.x+=ae.x||0,le.y+=ae.y||0,this.hasStroke()){var pe=ae.lineWidth;le.x-=pe/2,le.y-=pe/2,le.width+=pe,le.height+=pe}this._rect=le}return this._rect},oe.initDefaultProps=function(){var ae=oe.prototype;ae.dirtyRectTolerance=10}(),oe}(Displayable$1);TSpan.prototype.type="tspan";const TSpan$1=TSpan;var DEFAULT_IMAGE_STYLE=defaults({x:0,y:0},DEFAULT_COMMON_STYLE),DEFAULT_IMAGE_ANIMATION_PROPS={style:defaults({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)};function isImageLike($){return!!($&&typeof $!="string"&&$.width&&$.height)}var ZRImage=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.createStyle=function(ae){return createObject(DEFAULT_IMAGE_STYLE,ae)},oe.prototype._getSize=function(ae){var ie=this.style,le=ie[ae];if(le!=null)return le;var pe=isImageLike(ie.image)?ie.image:this.__image;if(!pe)return 0;var _e=ae==="width"?"height":"width",Ce=ie[_e];return Ce==null?pe[ae]:pe[ae]/pe[_e]*Ce},oe.prototype.getWidth=function(){return this._getSize("width")},oe.prototype.getHeight=function(){return this._getSize("height")},oe.prototype.getAnimationStyleProps=function(){return DEFAULT_IMAGE_ANIMATION_PROPS},oe.prototype.getBoundingRect=function(){var ae=this.style;return this._rect||(this._rect=new BoundingRect$1(ae.x||0,ae.y||0,this.getWidth(),this.getHeight())),this._rect},oe}(Displayable$1);ZRImage.prototype.type="image";const ZRImage$1=ZRImage;function buildPath$2($,oe){var ae=oe.x,ie=oe.y,le=oe.width,pe=oe.height,_e=oe.r,Ce,$e,xe,Ie;le<0&&(ae=ae+le,le=-le),pe<0&&(ie=ie+pe,pe=-pe),typeof _e=="number"?Ce=$e=xe=Ie=_e:_e instanceof Array?_e.length===1?Ce=$e=xe=Ie=_e[0]:_e.length===2?(Ce=xe=_e[0],$e=Ie=_e[1]):_e.length===3?(Ce=_e[0],$e=Ie=_e[1],xe=_e[2]):(Ce=_e[0],$e=_e[1],xe=_e[2],Ie=_e[3]):Ce=$e=xe=Ie=0;var Ne;Ce+$e>le&&(Ne=Ce+$e,Ce*=le/Ne,$e*=le/Ne),xe+Ie>le&&(Ne=xe+Ie,xe*=le/Ne,Ie*=le/Ne),$e+xe>pe&&(Ne=$e+xe,$e*=pe/Ne,xe*=pe/Ne),Ce+Ie>pe&&(Ne=Ce+Ie,Ce*=pe/Ne,Ie*=pe/Ne),$.moveTo(ae+Ce,ie),$.lineTo(ae+le-$e,ie),$e!==0&&$.arc(ae+le-$e,ie+$e,$e,-Math.PI/2,0),$.lineTo(ae+le,ie+pe-xe),xe!==0&&$.arc(ae+le-xe,ie+pe-xe,xe,0,Math.PI/2),$.lineTo(ae+Ie,ie+pe),Ie!==0&&$.arc(ae+Ie,ie+pe-Ie,Ie,Math.PI/2,Math.PI),$.lineTo(ae,ie+Ce),Ce!==0&&$.arc(ae+Ce,ie+Ce,Ce,Math.PI,Math.PI*1.5)}var round=Math.round;function subPixelOptimizeLine$1($,oe,ae){if(oe){var ie=oe.x1,le=oe.x2,pe=oe.y1,_e=oe.y2;$.x1=ie,$.x2=le,$.y1=pe,$.y2=_e;var Ce=ae&&ae.lineWidth;return Ce&&(round(ie*2)===round(le*2)&&($.x1=$.x2=subPixelOptimize$1(ie,Ce,!0)),round(pe*2)===round(_e*2)&&($.y1=$.y2=subPixelOptimize$1(pe,Ce,!0))),$}}function subPixelOptimizeRect$1($,oe,ae){if(oe){var ie=oe.x,le=oe.y,pe=oe.width,_e=oe.height;$.x=ie,$.y=le,$.width=pe,$.height=_e;var Ce=ae&&ae.lineWidth;return Ce&&($.x=subPixelOptimize$1(ie,Ce,!0),$.y=subPixelOptimize$1(le,Ce,!0),$.width=Math.max(subPixelOptimize$1(ie+pe,Ce,!1)-$.x,pe===0?0:1),$.height=Math.max(subPixelOptimize$1(le+_e,Ce,!1)-$.y,_e===0?0:1)),$}}function subPixelOptimize$1($,oe,ae){if(!oe)return $;var ie=round($*2);return(ie+round(oe))%2===0?ie/2:(ie+(ae?1:-1))/2}var RectShape=function(){function $(){this.x=0,this.y=0,this.width=0,this.height=0}return $}(),subPixelOptimizeOutputShape$1={},Rect$1=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.getDefaultShape=function(){return new RectShape},oe.prototype.buildPath=function(ae,ie){var le,pe,_e,Ce;if(this.subPixelOptimize){var $e=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,ie,this.style);le=$e.x,pe=$e.y,_e=$e.width,Ce=$e.height,$e.r=ie.r,ie=$e}else le=ie.x,pe=ie.y,_e=ie.width,Ce=ie.height;ie.r?buildPath$2(ae,ie):ae.rect(le,pe,_e,Ce)},oe.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},oe}(Path$1);Rect$1.prototype.type="rect";const Rect$2=Rect$1;var DEFAULT_RICH_TEXT_COLOR={fill:"#000"},DEFAULT_STROKE_LINE_WIDTH=2,DEFAULT_TEXT_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},ZRText=function($){__extends(oe,$);function oe(ae){var ie=$.call(this)||this;return ie.type="text",ie._children=[],ie._defaultStyle=DEFAULT_RICH_TEXT_COLOR,ie.attr(ae),ie}return oe.prototype.childrenRef=function(){return this._children},oe.prototype.update=function(){$.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var ae=0;ae0,On=ae.width!=null&&(ae.overflow==="truncate"||ae.overflow==="break"||ae.overflow==="breakAll"),Nn=_e.calculatedLineHeight,Rn=0;Rn=0&&(Rn=$n[Nn],Rn.align==="right");)this._placeToken(Rn,ae,Tn,vn,On,"right",bn),xn-=Rn.width,On-=Rn.width,Nn--;for(An+=(pe-(An-hn)-(_n-On)-xn)/2;kn<=Nn;)Rn=$n[kn],this._placeToken(Rn,ae,Tn,vn,An+Rn.width/2,"center",bn),An+=Rn.width,kn++;vn+=Tn}},oe.prototype._placeToken=function(ae,ie,le,pe,_e,Ce,$e){var xe=ie.rich[ae.styleName]||{};xe.text=ae.text;var Ie=ae.verticalAlign,Ne=pe+le/2;Ie==="top"?Ne=pe+ae.height/2:Ie==="bottom"&&(Ne=pe+le-ae.height/2);var Fe=!ae.isLineHolder&&needDrawBackground(xe);Fe&&this._renderBackground(xe,ie,Ce==="right"?_e-ae.width:Ce==="center"?_e-ae.width/2:_e,Ne-ae.height/2,ae.width,ae.height);var ze=!!xe.backgroundColor,At=ae.textPadding;At&&(_e=getTextXForPadding(_e,Ce,At),Ne-=ae.height/2-At[0]-ae.innerHeight/2);var Lt=this._getOrCreateChild(TSpan$1),hn=Lt.createStyle();Lt.useStyle(hn);var vn=this._defaultStyle,_n=!1,bn=0,Cn=getFill("fill"in xe?xe.fill:"fill"in ie?ie.fill:(_n=!0,vn.fill)),En=getStroke("stroke"in xe?xe.stroke:"stroke"in ie?ie.stroke:!ze&&!$e&&(!vn.autoStroke||_n)?(bn=DEFAULT_STROKE_LINE_WIDTH,vn.stroke):null),$n=xe.textShadowBlur>0||ie.textShadowBlur>0;hn.text=ae.text,hn.x=_e,hn.y=Ne,$n&&(hn.shadowBlur=xe.textShadowBlur||ie.textShadowBlur||0,hn.shadowColor=xe.textShadowColor||ie.textShadowColor||"transparent",hn.shadowOffsetX=xe.textShadowOffsetX||ie.textShadowOffsetX||0,hn.shadowOffsetY=xe.textShadowOffsetY||ie.textShadowOffsetY||0),hn.textAlign=Ce,hn.textBaseline="middle",hn.font=ae.font||DEFAULT_FONT,hn.opacity=retrieve3(xe.opacity,ie.opacity,1),setSeparateFont(hn,xe),En&&(hn.lineWidth=retrieve3(xe.lineWidth,ie.lineWidth,bn),hn.lineDash=retrieve2(xe.lineDash,ie.lineDash),hn.lineDashOffset=ie.lineDashOffset||0,hn.stroke=En),Cn&&(hn.fill=Cn);var wn=ae.contentWidth,Tn=ae.contentHeight;Lt.setBoundingRect(new BoundingRect$1(adjustTextX(hn.x,wn,hn.textAlign),adjustTextY(hn.y,Tn,hn.textBaseline),wn,Tn))},oe.prototype._renderBackground=function(ae,ie,le,pe,_e,Ce){var $e=ae.backgroundColor,xe=ae.borderWidth,Ie=ae.borderColor,Ne=$e&&$e.image,Fe=$e&&!Ne,ze=ae.borderRadius,At=this,Lt,hn;if(Fe||ae.lineHeight||xe&&Ie){Lt=this._getOrCreateChild(Rect$2),Lt.useStyle(Lt.createStyle()),Lt.style.fill=null;var vn=Lt.shape;vn.x=le,vn.y=pe,vn.width=_e,vn.height=Ce,vn.r=ze,Lt.dirtyShape()}if(Fe){var _n=Lt.style;_n.fill=$e||null,_n.fillOpacity=retrieve2(ae.fillOpacity,1)}else if(Ne){hn=this._getOrCreateChild(ZRImage$1),hn.onload=function(){At.dirtyStyle()};var bn=hn.style;bn.image=$e.image,bn.x=le,bn.y=pe,bn.width=_e,bn.height=Ce}if(xe&&Ie){var _n=Lt.style;_n.lineWidth=xe,_n.stroke=Ie,_n.strokeOpacity=retrieve2(ae.strokeOpacity,1),_n.lineDash=ae.borderDash,_n.lineDashOffset=ae.borderDashOffset||0,Lt.strokeContainThreshold=0,Lt.hasFill()&&Lt.hasStroke()&&(_n.strokeFirst=!0,_n.lineWidth*=2)}var Cn=(Lt||hn).style;Cn.shadowBlur=ae.shadowBlur||0,Cn.shadowColor=ae.shadowColor||"transparent",Cn.shadowOffsetX=ae.shadowOffsetX||0,Cn.shadowOffsetY=ae.shadowOffsetY||0,Cn.opacity=retrieve3(ae.opacity,ie.opacity,1)},oe.makeFont=function(ae){var ie="";return hasSeparateFont(ae)&&(ie=[ae.fontStyle,ae.fontWeight,parseFontSize(ae.fontSize),ae.fontFamily||"sans-serif"].join(" ")),ie&&trim$1(ie)||ae.textFont||ae.font},oe}(Displayable$1),VALID_TEXT_ALIGN={left:!0,right:1,center:1},VALID_TEXT_VERTICAL_ALIGN={top:1,bottom:1,middle:1},FONT_PARTS=["fontStyle","fontWeight","fontSize","fontFamily"];function parseFontSize($){return typeof $=="string"&&($.indexOf("px")!==-1||$.indexOf("rem")!==-1||$.indexOf("em")!==-1)?$:isNaN(+$)?DEFAULT_FONT_SIZE+"px":$+"px"}function setSeparateFont($,oe){for(var ae=0;ae=0,pe=!1;if($ instanceof Path$1){var _e=getSavedStates($),Ce=le&&_e.selectFill||_e.normalFill,$e=le&&_e.selectStroke||_e.normalStroke;if(hasFillOrStroke(Ce)||hasFillOrStroke($e)){ie=ie||{};var xe=ie.style||{};xe.fill==="inherit"?(pe=!0,ie=extend({},ie),xe=extend({},xe),xe.fill=Ce):!hasFillOrStroke(xe.fill)&&hasFillOrStroke(Ce)?(pe=!0,ie=extend({},ie),xe=extend({},xe),xe.fill=liftColor(Ce)):!hasFillOrStroke(xe.stroke)&&hasFillOrStroke($e)&&(pe||(ie=extend({},ie),xe=extend({},xe)),xe.stroke=liftColor($e)),ie.style=xe}}if(ie&&ie.z2==null){pe||(ie=extend({},ie));var Ie=$.z2EmphasisLift;ie.z2=$.z2+(Ie??Z2_EMPHASIS_LIFT)}return ie}function createSelectDefaultState($,oe,ae){if(ae&&ae.z2==null){ae=extend({},ae);var ie=$.z2SelectLift;ae.z2=$.z2+(ie??Z2_SELECT_LIFT)}return ae}function createBlurDefaultState($,oe,ae){var ie=indexOf($.currentStates,oe)>=0,le=$.style.opacity,pe=ie?null:getFromStateStyle($,["opacity"],oe,{opacity:1});ae=ae||{};var _e=ae.style||{};return _e.opacity==null&&(ae=extend({},ae),_e=extend({opacity:ie?le:pe.opacity*.1},_e),ae.style=_e),ae}function elementStateProxy($,oe){var ae=this.states[$];if(this.style){if($==="emphasis")return createEmphasisDefaultState(this,$,oe,ae);if($==="blur")return createBlurDefaultState(this,$,ae);if($==="select")return createSelectDefaultState(this,$,ae)}return ae}function setDefaultStateProxy($){$.stateProxy=elementStateProxy;var oe=$.getTextContent(),ae=$.getTextGuideLine();oe&&(oe.stateProxy=elementStateProxy),ae&&(ae.stateProxy=elementStateProxy)}function enterEmphasisWhenMouseOver($,oe){!shouldSilent($,oe)&&!$.__highByOuter&&traverseUpdateState($,singleEnterEmphasis)}function leaveEmphasisWhenMouseOut($,oe){!shouldSilent($,oe)&&!$.__highByOuter&&traverseUpdateState($,singleLeaveEmphasis)}function enterEmphasis($,oe){$.__highByOuter|=1<<(oe||0),traverseUpdateState($,singleEnterEmphasis)}function leaveEmphasis($,oe){!($.__highByOuter&=~(1<<(oe||0)))&&traverseUpdateState($,singleLeaveEmphasis)}function enterBlur($){traverseUpdateState($,singleEnterBlur)}function leaveBlur($){traverseUpdateState($,singleLeaveBlur)}function enterSelect($){traverseUpdateState($,singleEnterSelect)}function leaveSelect($){traverseUpdateState($,singleLeaveSelect)}function shouldSilent($,oe){return $.__highDownSilentOnTouch&&oe.zrByTouch}function allLeaveBlur($){var oe=$.getModel(),ae=[],ie=[];oe.eachComponent(function(le,pe){var _e=getComponentStates(pe),Ce=le==="series",$e=Ce?$.getViewOfSeriesModel(pe):$.getViewOfComponentModel(pe);!Ce&&ie.push($e),_e.isBlured&&($e.group.traverse(function(xe){singleLeaveBlur(xe)}),Ce&&ae.push(pe)),_e.isBlured=!1}),each$c(ie,function(le){le&&le.toggleBlurSeries&&le.toggleBlurSeries(ae,!1,oe)})}function blurSeries($,oe,ae,ie){var le=ie.getModel();ae=ae||"coordinateSystem";function pe(xe,Ie){for(var Ne=0;Ne0){var Ce={dataIndex:_e,seriesIndex:ae.seriesIndex};pe!=null&&(Ce.dataType=pe),oe.push(Ce)}})}),oe}function enableHoverEmphasis($,oe,ae){setAsHighDownDispatcher($,!0),traverseUpdateState($,setDefaultStateProxy),enableHoverFocus($,oe,ae)}function disableHoverEmphasis($){setAsHighDownDispatcher($,!1)}function toggleHoverEmphasis($,oe,ae,ie){ie?disableHoverEmphasis($):enableHoverEmphasis($,oe,ae)}function enableHoverFocus($,oe,ae){var ie=getECData($);oe!=null?(ie.focus=oe,ie.blurScope=ae):ie.focus&&(ie.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel($,oe,ae,ie){ae=ae||"itemStyle";for(var le=0;le1&&(_e*=mathSqrt$1(At),Ce*=mathSqrt$1(At));var Lt=(le===pe?-1:1)*mathSqrt$1((_e*_e*(Ce*Ce)-_e*_e*(ze*ze)-Ce*Ce*(Fe*Fe))/(_e*_e*(ze*ze)+Ce*Ce*(Fe*Fe)))||0,hn=Lt*_e*ze/Ce,vn=Lt*-Ce*Fe/_e,_n=($+ae)/2+mathCos$1(Ne)*hn-mathSin$1(Ne)*vn,bn=(oe+ie)/2+mathSin$1(Ne)*hn+mathCos$1(Ne)*vn,Cn=vAngle([1,0],[(Fe-hn)/_e,(ze-vn)/Ce]),En=[(Fe-hn)/_e,(ze-vn)/Ce],$n=[(-1*Fe-hn)/_e,(-1*ze-vn)/Ce],wn=vAngle(En,$n);if(vRatio(En,$n)<=-1&&(wn=PI$3),vRatio(En,$n)>=1&&(wn=0),wn<0){var Tn=Math.round(wn/PI$3*1e6)/1e6;wn=PI$3*2+Tn%2*PI$3}Ie.addData(xe,_n,bn,_e,Ce,Cn,wn,Ne,pe)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString($){var oe=new PathProxy$1;if(!$)return oe;var ae=0,ie=0,le=ae,pe=ie,_e,Ce=PathProxy$1.CMD,$e=$.match(commandReg);if(!$e)return oe;for(var xe=0;xe<$e.length;xe++){for(var Ie=$e[xe],Ne=Ie.charAt(0),Fe=void 0,ze=Ie.match(numberReg)||[],At=ze.length,Lt=0;LtRn*Rn+zn*zn&&(Tn=kn,xn=An),{cx:Tn,cy:xn,x0:-Ie,y0:-Ne,x1:Tn*(le/En-1),y1:xn*(le/En-1)}}function normalizeCornerRadius($){var oe;if(isArray$1($)){var ae=$.length;if(!ae)return $;ae===1?oe=[$[0],$[0],0,0]:ae===2?oe=[$[0],$[0],$[1],$[1]]:ae===3?oe=$.concat($[2]):oe=$}else oe=[$,$,$,$];return oe}function buildPath$1($,oe){var ae,ie=mathMax$5(oe.r,0),le=mathMax$5(oe.r0||0,0),pe=ie>0,_e=le>0;if(!(!pe&&!_e)){if(pe||(ie=le,le=0),le>ie){var Ce=ie;ie=le,le=Ce}var $e=oe.startAngle,xe=oe.endAngle;if(!(isNaN($e)||isNaN(xe))){var Ie=oe.cx,Ne=oe.cy,Fe=!!oe.clockwise,ze=mathAbs(xe-$e),At=ze>PI2$1&&ze%PI2$1;if(At>e&&(ze=At),!(ie>e))$.moveTo(Ie,Ne);else if(ze>PI2$1-e)$.moveTo(Ie+ie*mathCos($e),Ne+ie*mathSin($e)),$.arc(Ie,Ne,ie,$e,xe,!Fe),le>e&&($.moveTo(Ie+le*mathCos(xe),Ne+le*mathSin(xe)),$.arc(Ie,Ne,le,xe,$e,Fe));else{var Lt=void 0,hn=void 0,vn=void 0,_n=void 0,bn=void 0,Cn=void 0,En=void 0,$n=void 0,wn=void 0,Tn=void 0,xn=void 0,kn=void 0,An=void 0,On=void 0,Nn=void 0,Rn=void 0,zn=ie*mathCos($e),Bn=ie*mathSin($e),Mn=le*mathCos(xe),Fn=le*mathSin(xe),Vn=ze>e;if(Vn){var jn=oe.cornerRadius;jn&&(ae=normalizeCornerRadius(jn),Lt=ae[0],hn=ae[1],vn=ae[2],_n=ae[3]);var Zn=mathAbs(ie-le)/2;if(bn=mathMin$5(Zn,vn),Cn=mathMin$5(Zn,_n),En=mathMin$5(Zn,Lt),$n=mathMin$5(Zn,hn),xn=wn=mathMax$5(bn,Cn),kn=Tn=mathMax$5(En,$n),(wn>e||Tn>e)&&(An=ie*mathCos(xe),On=ie*mathSin(xe),Nn=le*mathCos($e),Rn=le*mathSin($e),zee){var Yn=mathMin$5(vn,xn),ar=mathMin$5(_n,xn),pr=computeCornerTangents(Nn,Rn,zn,Bn,ie,Yn,Fe),Un=computeCornerTangents(An,On,Mn,Fn,ie,ar,Fe);$.moveTo(Ie+pr.cx+pr.x0,Ne+pr.cy+pr.y0),xn0&&$.arc(Ie+pr.cx,Ne+pr.cy,Yn,mathATan2(pr.y0,pr.x0),mathATan2(pr.y1,pr.x1),!Fe),$.arc(Ie,Ne,ie,mathATan2(pr.cy+pr.y1,pr.cx+pr.x1),mathATan2(Un.cy+Un.y1,Un.cx+Un.x1),!Fe),ar>0&&$.arc(Ie+Un.cx,Ne+Un.cy,ar,mathATan2(Un.y1,Un.x1),mathATan2(Un.y0,Un.x0),!Fe))}else $.moveTo(Ie+zn,Ne+Bn),$.arc(Ie,Ne,ie,$e,xe,!Fe);if(!(le>e)||!Vn)$.lineTo(Ie+Mn,Ne+Fn);else if(kn>e){var Yn=mathMin$5(Lt,kn),ar=mathMin$5(hn,kn),pr=computeCornerTangents(Mn,Fn,An,On,le,-ar,Fe),Un=computeCornerTangents(zn,Bn,Nn,Rn,le,-Yn,Fe);$.lineTo(Ie+pr.cx+pr.x0,Ne+pr.cy+pr.y0),kn0&&$.arc(Ie+pr.cx,Ne+pr.cy,ar,mathATan2(pr.y0,pr.x0),mathATan2(pr.y1,pr.x1),!Fe),$.arc(Ie,Ne,le,mathATan2(pr.cy+pr.y1,pr.cx+pr.x1),mathATan2(Un.cy+Un.y1,Un.cx+Un.x1),Fe),Yn>0&&$.arc(Ie+Un.cx,Ne+Un.cy,Yn,mathATan2(Un.y1,Un.x1),mathATan2(Un.y0,Un.x0),!Fe))}else $.lineTo(Ie+Mn,Ne+Fn),$.arc(Ie,Ne,le,xe,$e,Fe)}$.closePath()}}}var SectorShape=function(){function $(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return $}(),Sector=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.getDefaultShape=function(){return new SectorShape},oe.prototype.buildPath=function(ae,ie){buildPath$1(ae,ie)},oe.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},oe}(Path$1);Sector.prototype.type="sector";const Sector$1=Sector;var RingShape=function(){function $(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return $}(),Ring=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.getDefaultShape=function(){return new RingShape},oe.prototype.buildPath=function(ae,ie){var le=ie.cx,pe=ie.cy,_e=Math.PI*2;ae.moveTo(le+ie.r,pe),ae.arc(le,pe,ie.r,0,_e,!1),ae.moveTo(le+ie.r0,pe),ae.arc(le,pe,ie.r0,0,_e,!0)},oe}(Path$1);Ring.prototype.type="ring";const Ring$1=Ring;function smoothBezier($,oe,ae,ie){var le=[],pe=[],_e=[],Ce=[],$e,xe,Ie,Ne;if(ie){Ie=[1/0,1/0],Ne=[-1/0,-1/0];for(var Fe=0,ze=$.length;Fe=2){if(ie){var pe=smoothBezier(le,ie,ae,oe.smoothConstraint);$.moveTo(le[0][0],le[0][1]);for(var _e=le.length,Ce=0;Ce<(ae?_e:_e-1);Ce++){var $e=pe[Ce*2],xe=pe[Ce*2+1],Ie=le[(Ce+1)%_e];$.bezierCurveTo($e[0],$e[1],xe[0],xe[1],Ie[0],Ie[1])}}else{$.moveTo(le[0][0],le[0][1]);for(var Ce=1,Ne=le.length;Ceextent2[1]){if(Ce=!1,pe)return Ce;var Ie=Math.abs(extent2[0]-extent[1]),Ne=Math.abs(extent[0]-extent2[1]);Math.min(Ie,Ne)>le.len()&&(Ie0){var Ne=Ie.duration,Fe=Ie.delay,ze=Ie.easing,At={duration:Ne,delay:Fe||0,easing:ze,done:pe,force:!!pe||!!_e,setToFinal:!xe,scope:$,during:_e};Ce?oe.animateFrom(ae,At):oe.animateTo(ae,At)}else oe.stopAnimation(),!Ce&&oe.attr(ae),_e&&_e(1),pe&&pe()}function updateProps$1($,oe,ae,ie,le,pe){animateOrSetProps("update",$,oe,ae,ie,le,pe)}function initProps($,oe,ae,ie,le,pe){animateOrSetProps("enter",$,oe,ae,ie,le,pe)}function isElementRemoved($){if(!$.__zr)return!0;for(var oe=0;oe<$.animators.length;oe++){var ae=$.animators[oe];if(ae.scope==="leave")return!0}return!1}function removeElement($,oe,ae,ie,le,pe){isElementRemoved($)||animateOrSetProps("leave",$,oe,ae,ie,le,pe)}function fadeOutDisplayable($,oe,ae,ie){$.removeTextContent(),$.removeTextGuideLine(),removeElement($,{style:{opacity:0}},oe,ae,ie)}function removeElementWithFadeOut($,oe,ae){function ie(){$.parent&&$.parent.remove($)}$.isGroup?$.traverse(function(le){le.isGroup||fadeOutDisplayable(le,oe,ae,ie)}):fadeOutDisplayable($,oe,ae,ie)}function saveOldStyle($){transitionStore($).oldStyle=$.style}var mathMax$4=Math.max,mathMin$4=Math.min,_customShapeMap={};function extendShape($){return Path$1.extend($)}var extendPathFromString=extendFromString;function extendPath($,oe){return extendPathFromString($,oe)}function registerShape($,oe){_customShapeMap[$]=oe}function getShapeClass($){if(_customShapeMap.hasOwnProperty($))return _customShapeMap[$]}function makePath($,oe,ae,ie){var le=createFromString($,oe);return ae&&(ie==="center"&&(ae=centerGraphic(ae,le.getBoundingRect())),resizePath(le,ae)),le}function makeImage($,oe,ae){var ie=new ZRImage$1({style:{image:$,x:oe.x,y:oe.y,width:oe.width,height:oe.height},onload:function(le){if(ae==="center"){var pe={width:le.width,height:le.height};ie.setStyle(centerGraphic(oe,pe))}}});return ie}function centerGraphic($,oe){var ae=oe.width/oe.height,ie=$.height*ae,le;ie<=$.width?le=$.height:(ie=$.width,le=ie/ae);var pe=$.x+$.width/2,_e=$.y+$.height/2;return{x:pe-ie/2,y:_e-le/2,width:ie,height:le}}var mergePath=mergePath$1;function resizePath($,oe){if($.applyTransform){var ae=$.getBoundingRect(),ie=ae.calculateTransform(oe);$.applyTransform(ie)}}function subPixelOptimizeLine($,oe){return subPixelOptimizeLine$1($,$,{lineWidth:oe}),$}function subPixelOptimizeRect($){return subPixelOptimizeRect$1($.shape,$.shape,$.style),$}var subPixelOptimize=subPixelOptimize$1;function getTransform$1($,oe){for(var ae=identity([]);$&&$!==oe;)mul(ae,$.getLocalTransform(),ae),$=$.parent;return ae}function applyTransform($,oe,ae){return oe&&!isArrayLike(oe)&&(oe=Transformable$1.getLocalTransform(oe)),ae&&(oe=invert([],oe)),applyTransform$1([],$,oe)}function transformDirection($,oe,ae){var ie=oe[4]===0||oe[5]===0||oe[0]===0?1:Math.abs(2*oe[4]/oe[0]),le=oe[4]===0||oe[5]===0||oe[2]===0?1:Math.abs(2*oe[4]/oe[2]),pe=[$==="left"?-ie:$==="right"?ie:0,$==="top"?-le:$==="bottom"?le:0];return pe=applyTransform(pe,oe,ae),Math.abs(pe[0])>Math.abs(pe[1])?pe[0]>0?"right":"left":pe[1]>0?"bottom":"top"}function isNotGroup($){return!$.isGroup}function isPath($){return $.shape!=null}function groupTransition($,oe,ae){if(!$||!oe)return;function ie(_e){var Ce={};return _e.traverse(function($e){isNotGroup($e)&&$e.anid&&(Ce[$e.anid]=$e)}),Ce}function le(_e){var Ce={x:_e.x,y:_e.y,rotation:_e.rotation};return isPath(_e)&&(Ce.shape=extend({},_e.shape)),Ce}var pe=ie($);oe.traverse(function(_e){if(isNotGroup(_e)&&_e.anid){var Ce=pe[_e.anid];if(Ce){var $e=le(_e);_e.attr(le(Ce)),updateProps$1(_e,$e,ae,getECData(_e).dataIndex)}}})}function clipPointsByRect($,oe){return map$2($,function(ae){var ie=ae[0];ie=mathMax$4(ie,oe.x),ie=mathMin$4(ie,oe.x+oe.width);var le=ae[1];return le=mathMax$4(le,oe.y),le=mathMin$4(le,oe.y+oe.height),[ie,le]})}function clipRectByRect($,oe){var ae=mathMax$4($.x,oe.x),ie=mathMin$4($.x+$.width,oe.x+oe.width),le=mathMax$4($.y,oe.y),pe=mathMin$4($.y+$.height,oe.y+oe.height);if(ie>=ae&&pe>=le)return{x:ae,y:le,width:ie-ae,height:pe-le}}function createIcon($,oe,ae){var ie=extend({rectHover:!0},oe),le=ie.style={strokeNoScale:!0};if(ae=ae||{x:-1,y:-1,width:2,height:2},$)return $.indexOf("image://")===0?(le.image=$.slice(8),defaults(le,ae),new ZRImage$1(ie)):makePath($.replace("path://",""),ie,ae,"center")}function linePolygonIntersect($,oe,ae,ie,le){for(var pe=0,_e=le[le.length-1];pe1)return!1;var hn=crossProduct2d(ze,At,Ie,Ne)/Fe;return!(hn<0||hn>1)}function crossProduct2d($,oe,ae,ie){return $*ie-ae*oe}function nearZero($){return $<=1e-6&&$>=-1e-6}function setTooltipConfig($){var oe=$.itemTooltipOption,ae=$.componentModel,ie=$.itemName,le=isString(oe)?{formatter:oe}:oe,pe=ae.mainType,_e=ae.componentIndex,Ce={componentType:pe,name:ie,$vars:["name"]};Ce[pe+"Index"]=_e;var $e=$.formatterParamsExtra;$e&&each$c(keys($e),function(Ie){hasOwn(Ce,Ie)||(Ce[Ie]=$e[Ie],Ce.$vars.push(Ie))});var xe=getECData($.el);xe.componentMainType=pe,xe.componentIndex=_e,xe.tooltipConfig={name:ie,option:defaults({content:ie,formatterParams:Ce},le)}}function traverseElement($,oe){var ae;$.isGroup&&(ae=oe($)),ae||$.traverse(oe)}function traverseElements($,oe){if($)if(isArray$1($))for(var ae=0;ae<$.length;ae++)traverseElement($[ae],oe);else traverseElement($,oe)}registerShape("circle",Circle$1);registerShape("ellipse",Ellipse$1);registerShape("sector",Sector$1);registerShape("ring",Ring$1);registerShape("polygon",Polygon$1);registerShape("polyline",Polyline$1);registerShape("rect",Rect$2);registerShape("line",Line$1);registerShape("bezierCurve",BezierCurve$1);registerShape("arc",Arc$1);const graphic$1=Object.freeze(Object.defineProperty({__proto__:null,Arc:Arc$1,BezierCurve:BezierCurve$1,BoundingRect:BoundingRect$1,Circle:Circle$1,CompoundPath:CompoundPath$1,Ellipse:Ellipse$1,Group:Group$3,Image:ZRImage$1,IncrementalDisplayable:IncrementalDisplayable$1,Line:Line$1,LinearGradient:LinearGradient$1,OrientedBoundingRect:OrientedBoundingRect$1,Path:Path$1,Point:Point$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,applyTransform,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,groupTransition,initProps,isElementRemoved,lineLineIntersect,linePolygonIntersect,makeImage,makePath,mergePath,registerShape,removeElement,removeElementWithFadeOut,resizePath,setTooltipConfig,subPixelOptimize,subPixelOptimizeLine,subPixelOptimizeRect,transformDirection,traverseElements,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"}));var EMPTY_OBJ={};function setLabelText($,oe){for(var ae=0;ae=0&&Ce.push($e)}),Ce}}function inheritDefaultOption($,oe){return merge(merge({},$,!0),oe,!0)}const langEN={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},langZH={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var LOCALE_ZH="ZH",LOCALE_EN="EN",DEFAULT_LOCALE=LOCALE_EN,localeStorage={},localeModels={},SYSTEM_LANG=env$1.domSupported?function(){var $=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return $.indexOf(LOCALE_ZH)>-1?LOCALE_ZH:DEFAULT_LOCALE}():DEFAULT_LOCALE;function registerLocale($,oe){$=$.toUpperCase(),localeModels[$]=new Model$1(oe),localeStorage[$]=oe}function createLocaleObject($){if(isString($)){var oe=localeStorage[$.toUpperCase()]||{};return $===LOCALE_ZH||$===LOCALE_EN?clone$3(oe):merge(clone$3(oe),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$3($),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}function getLocaleModel($){return localeModels[$]}function getDefaultLocaleModel(){return localeModels[DEFAULT_LOCALE]}registerLocale(LOCALE_EN,langEN);registerLocale(LOCALE_ZH,langZH);var ONE_SECOND=1e3,ONE_MINUTE=ONE_SECOND*60,ONE_HOUR=ONE_MINUTE*60,ONE_DAY=ONE_HOUR*24,ONE_YEAR=ONE_DAY*365,defaultLeveledFormatter={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},fullDayFormatter="{yyyy}-{MM}-{dd}",fullLeveledFormatter={year:"{yyyy}",month:"{yyyy}-{MM}",day:fullDayFormatter,hour:fullDayFormatter+" "+defaultLeveledFormatter.hour,minute:fullDayFormatter+" "+defaultLeveledFormatter.minute,second:fullDayFormatter+" "+defaultLeveledFormatter.second,millisecond:defaultLeveledFormatter.none},primaryTimeUnits=["year","month","day","hour","minute","second","millisecond"],timeUnits=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pad($,oe){return $+="","0000".substr(0,oe-$.length)+$}function getPrimaryTimeUnit($){switch($){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return $}}function isPrimaryTimeUnit($){return $===getPrimaryTimeUnit($)}function getDefaultFormatPrecisionOfInterval($){switch($){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function format$1($,oe,ae,ie){var le=parseDate($),pe=le[fullYearGetterName(ae)](),_e=le[monthGetterName(ae)]()+1,Ce=Math.floor((_e-1)/3)+1,$e=le[dateGetterName(ae)](),xe=le["get"+(ae?"UTC":"")+"Day"](),Ie=le[hoursGetterName(ae)](),Ne=(Ie-1)%12+1,Fe=le[minutesGetterName(ae)](),ze=le[secondsGetterName(ae)](),At=le[millisecondsGetterName(ae)](),Lt=ie instanceof Model$1?ie:getLocaleModel(ie||SYSTEM_LANG)||getDefaultLocaleModel(),hn=Lt.getModel("time"),vn=hn.get("month"),_n=hn.get("monthAbbr"),bn=hn.get("dayOfWeek"),Cn=hn.get("dayOfWeekAbbr");return(oe||"").replace(/{yyyy}/g,pe+"").replace(/{yy}/g,pe%100+"").replace(/{Q}/g,Ce+"").replace(/{MMMM}/g,vn[_e-1]).replace(/{MMM}/g,_n[_e-1]).replace(/{MM}/g,pad(_e,2)).replace(/{M}/g,_e+"").replace(/{dd}/g,pad($e,2)).replace(/{d}/g,$e+"").replace(/{eeee}/g,bn[xe]).replace(/{ee}/g,Cn[xe]).replace(/{e}/g,xe+"").replace(/{HH}/g,pad(Ie,2)).replace(/{H}/g,Ie+"").replace(/{hh}/g,pad(Ne+"",2)).replace(/{h}/g,Ne+"").replace(/{mm}/g,pad(Fe,2)).replace(/{m}/g,Fe+"").replace(/{ss}/g,pad(ze,2)).replace(/{s}/g,ze+"").replace(/{SSS}/g,pad(At,3)).replace(/{S}/g,At+"")}function leveledFormat($,oe,ae,ie,le){var pe=null;if(isString(ae))pe=ae;else if(isFunction(ae))pe=ae($.value,oe,{level:$.level});else{var _e=extend({},defaultLeveledFormatter);if($.level>0)for(var Ce=0;Ce=0;--Ce)if($e[xe]){pe=$e[xe];break}pe=pe||_e.none}if(isArray$1(pe)){var Ne=$.level==null?0:$.level>=0?$.level:pe.length+$.level;Ne=Math.min(Ne,pe.length-1),pe=pe[Ne]}}return format$1(new Date($.value),pe,le,ie)}function getUnitFromValue($,oe){var ae=parseDate($),ie=ae[monthGetterName(oe)]()+1,le=ae[dateGetterName(oe)](),pe=ae[hoursGetterName(oe)](),_e=ae[minutesGetterName(oe)](),Ce=ae[secondsGetterName(oe)](),$e=ae[millisecondsGetterName(oe)](),xe=$e===0,Ie=xe&&Ce===0,Ne=Ie&&_e===0,Fe=Ne&&pe===0,ze=Fe&&le===1,At=ze&&ie===1;return At?"year":ze?"month":Fe?"day":Ne?"hour":Ie?"minute":xe?"second":"millisecond"}function getUnitValue($,oe,ae){var ie=isNumber($)?parseDate($):$;switch(oe=oe||getUnitFromValue($,ae),oe){case"year":return ie[fullYearGetterName(ae)]();case"half-year":return ie[monthGetterName(ae)]()>=6?1:0;case"quarter":return Math.floor((ie[monthGetterName(ae)]()+1)/4);case"month":return ie[monthGetterName(ae)]();case"day":return ie[dateGetterName(ae)]();case"half-day":return ie[hoursGetterName(ae)]()/24;case"hour":return ie[hoursGetterName(ae)]();case"minute":return ie[minutesGetterName(ae)]();case"second":return ie[secondsGetterName(ae)]();case"millisecond":return ie[millisecondsGetterName(ae)]()}}function fullYearGetterName($){return $?"getUTCFullYear":"getFullYear"}function monthGetterName($){return $?"getUTCMonth":"getMonth"}function dateGetterName($){return $?"getUTCDate":"getDate"}function hoursGetterName($){return $?"getUTCHours":"getHours"}function minutesGetterName($){return $?"getUTCMinutes":"getMinutes"}function secondsGetterName($){return $?"getUTCSeconds":"getSeconds"}function millisecondsGetterName($){return $?"getUTCMilliseconds":"getMilliseconds"}function fullYearSetterName($){return $?"setUTCFullYear":"setFullYear"}function monthSetterName($){return $?"setUTCMonth":"setMonth"}function dateSetterName($){return $?"setUTCDate":"setDate"}function hoursSetterName($){return $?"setUTCHours":"setHours"}function minutesSetterName($){return $?"setUTCMinutes":"setMinutes"}function secondsSetterName($){return $?"setUTCSeconds":"setSeconds"}function millisecondsSetterName($){return $?"setUTCMilliseconds":"setMilliseconds"}function getTextRect($,oe,ae,ie,le,pe,_e,Ce){var $e=new ZRText$1({style:{text:$,font:oe,align:ae,verticalAlign:ie,padding:le,rich:pe,overflow:_e?"truncate":null,lineHeight:Ce}});return $e.getBoundingRect()}function addCommas($){if(!isNumeric($))return isString($)?$:"-";var oe=($+"").split(".");return oe[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(oe.length>1?"."+oe[1]:"")}function toCamelCase($,oe){return $=($||"").toLowerCase().replace(/-(.)/g,function(ae,ie){return ie.toUpperCase()}),oe&&$&&($=$.charAt(0).toUpperCase()+$.slice(1)),$}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable($,oe,ae){var ie="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function le(Ie){return Ie&&trim$1(Ie)?Ie:"-"}function pe(Ie){return!!(Ie!=null&&!isNaN(Ie)&&isFinite(Ie))}var _e=oe==="time",Ce=$ instanceof Date;if(_e||Ce){var $e=_e?parseDate($):$;if(isNaN(+$e)){if(Ce)return"-"}else return format$1($e,ie,ae)}if(oe==="ordinal")return isStringSafe($)?le($):isNumber($)&&pe($)?$+"":"-";var xe=numericToNumber($);return pe(xe)?addCommas(xe):isStringSafe($)?le($):typeof $=="boolean"?$+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function($,oe){return"{"+$+(oe??"")+"}"};function formatTpl($,oe,ae){isArray$1(oe)||(oe=[oe]);var ie=oe.length;if(!ie)return"";for(var le=oe[0].$vars||[],pe=0;pe':'';var _e=ae.markerId||"markerX";return{renderMode:pe,content:"{"+_e+"|} ",style:le==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:ie}:{width:10,height:10,borderRadius:5,backgroundColor:ie}}}function formatTime($,oe,ae){($==="week"||$==="month"||$==="quarter"||$==="half-year"||$==="year")&&($=`MM-dd +yyyy`);var ie=parseDate(oe),le=ae?"getUTC":"get",pe=ie[le+"FullYear"](),_e=ie[le+"Month"]()+1,Ce=ie[le+"Date"](),$e=ie[le+"Hours"](),xe=ie[le+"Minutes"](),Ie=ie[le+"Seconds"](),Ne=ie[le+"Milliseconds"]();return $=$.replace("MM",pad(_e,2)).replace("M",_e).replace("yyyy",pe).replace("yy",pad(pe%100+"",2)).replace("dd",pad(Ce,2)).replace("d",Ce).replace("hh",pad($e,2)).replace("h",$e).replace("mm",pad(xe,2)).replace("m",xe).replace("ss",pad(Ie,2)).replace("s",Ie).replace("SSS",pad(Ne,3)),$}function capitalFirst($){return $&&$.charAt(0).toUpperCase()+$.substr(1)}function convertToColorString($,oe){return oe=oe||"transparent",isString($)?$:isObject$3($)&&$.colorStops&&($.colorStops[0]||{}).color||oe}function windowOpen($,oe){if(oe==="_blank"||oe==="blank"){var ae=window.open();ae.opener=null,ae.location.href=$}else window.open($,oe)}var each$b=each$c,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout($,oe,ae,ie,le){var pe=0,_e=0;ie==null&&(ie=1/0),le==null&&(le=1/0);var Ce=0;oe.eachChild(function($e,xe){var Ie=$e.getBoundingRect(),Ne=oe.childAt(xe+1),Fe=Ne&&Ne.getBoundingRect(),ze,At;if($==="horizontal"){var Lt=Ie.width+(Fe?-Fe.x+Ie.x:0);ze=pe+Lt,ze>ie||$e.newline?(pe=0,ze=Lt,_e+=Ce+ae,Ce=Ie.height):Ce=Math.max(Ce,Ie.height)}else{var hn=Ie.height+(Fe?-Fe.y+Ie.y:0);At=_e+hn,At>le||$e.newline?(pe+=Ce+ae,_e=0,At=hn,Ce=Ie.width):Ce=Math.max(Ce,Ie.width)}$e.newline||($e.x=pe,$e.y=_e,$e.markRedraw(),$==="horizontal"?pe=ze+ae:_e=At+ae)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getLayoutRect($,oe,ae){ae=normalizeCssArray(ae||0);var ie=oe.width,le=oe.height,pe=parsePercent($.left,ie),_e=parsePercent($.top,le),Ce=parsePercent($.right,ie),$e=parsePercent($.bottom,le),xe=parsePercent($.width,ie),Ie=parsePercent($.height,le),Ne=ae[2]+ae[0],Fe=ae[1]+ae[3],ze=$.aspect;switch(isNaN(xe)&&(xe=ie-Ce-Fe-pe),isNaN(Ie)&&(Ie=le-$e-Ne-_e),ze!=null&&(isNaN(xe)&&isNaN(Ie)&&(ze>ie/le?xe=ie*.8:Ie=le*.8),isNaN(xe)&&(xe=ze*Ie),isNaN(Ie)&&(Ie=xe/ze)),isNaN(pe)&&(pe=ie-Ce-xe-Fe),isNaN(_e)&&(_e=le-$e-Ie-Ne),$.left||$.right){case"center":pe=ie/2-xe/2-ae[3];break;case"right":pe=ie-xe-Fe;break}switch($.top||$.bottom){case"middle":case"center":_e=le/2-Ie/2-ae[0];break;case"bottom":_e=le-Ie-Ne;break}pe=pe||0,_e=_e||0,isNaN(xe)&&(xe=ie-Fe-pe-(Ce||0)),isNaN(Ie)&&(Ie=le-Ne-_e-($e||0));var At=new BoundingRect$1(pe+ae[3],_e+ae[0],xe,Ie);return At.margin=ae,At}function positionElement($,oe,ae,ie,le,pe){var _e=!le||!le.hv||le.hv[0],Ce=!le||!le.hv||le.hv[1],$e=le&&le.boundingMode||"all";if(pe=pe||$,pe.x=$.x,pe.y=$.y,!_e&&!Ce)return!1;var xe;if($e==="raw")xe=$.type==="group"?new BoundingRect$1(0,0,+oe.width||0,+oe.height||0):$.getBoundingRect();else if(xe=$.getBoundingRect(),$.needLocalTransform()){var Ie=$.getLocalTransform();xe=xe.clone(),xe.applyTransform(Ie)}var Ne=getLayoutRect(defaults({width:xe.width,height:xe.height},oe),ae,ie),Fe=_e?Ne.x-xe.x:0,ze=Ce?Ne.y-xe.y:0;return $e==="raw"?(pe.x=Fe,pe.y=ze):(pe.x+=Fe,pe.y+=ze),pe===$&&$.markRedraw(),!0}function fetchLayoutMode($){var oe=$.layoutMode||$.constructor.layoutMode;return isObject$3(oe)?oe:oe?{type:oe}:null}function mergeLayoutParam($,oe,ae){var ie=ae&&ae.ignoreSize;!isArray$1(ie)&&(ie=[ie,ie]);var le=_e(HV_NAMES[0],0),pe=_e(HV_NAMES[1],1);xe(HV_NAMES[0],$,le),xe(HV_NAMES[1],$,pe);function _e(Ie,Ne){var Fe={},ze=0,At={},Lt=0,hn=2;if(each$b(Ie,function(bn){At[bn]=$[bn]}),each$b(Ie,function(bn){Ce(oe,bn)&&(Fe[bn]=At[bn]=oe[bn]),$e(Fe,bn)&&ze++,$e(At,bn)&&Lt++}),ie[Ne])return $e(oe,Ie[1])?At[Ie[2]]=null:$e(oe,Ie[2])&&(At[Ie[1]]=null),At;if(Lt===hn||!ze)return At;if(ze>=hn)return Fe;for(var vn=0;vn=0;$e--)Ce=merge(Ce,le[$e],!0);ie.defaultOption=Ce}return ie.defaultOption},oe.prototype.getReferringComponents=function(ae,ie){var le=ae+"Index",pe=ae+"Id";return queryReferringComponents(this.ecModel,ae,{index:this.get(le,!0),id:this.get(pe,!0)},ie)},oe.prototype.getBoxLayoutParams=function(){var ae=this;return{left:ae.get("left"),top:ae.get("top"),right:ae.get("right"),bottom:ae.get("bottom"),width:ae.get("width"),height:ae.get("height")}},oe.prototype.getZLevelKey=function(){return""},oe.prototype.setZLevel=function(ae){this.option.zlevel=ae},oe.protoInitialize=function(){var ae=oe.prototype;ae.type="component",ae.id="",ae.name="",ae.mainType="",ae.subType="",ae.componentIndex=0}(),oe}(Model$1);mountExtend(ComponentModel,Model$1);enableClassManagement(ComponentModel);enableSubTypeDefaulter(ComponentModel);enableTopologicalTravel(ComponentModel,getDependencies);function getDependencies($){var oe=[];return each$c(ComponentModel.getClassesByMainType($),function(ae){oe=oe.concat(ae.dependencies||ae.prototype.dependencies||[])}),oe=map$2(oe,function(ae){return parseClassType(ae).main}),$!=="dataset"&&indexOf(oe,"dataset")<=0&&oe.unshift("dataset"),oe}const ComponentModel$1=ComponentModel;var platform="";typeof navigator<"u"&&(platform=navigator.platform||"");var decalColor="rgba(0, 0, 0, 0.2)";const globalDefault={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:decalColor,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:decalColor,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:decalColor,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:decalColor,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:decalColor,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:decalColor,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:platform.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var VISUAL_DIMENSIONS=createHashMap(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),SOURCE_FORMAT_ORIGINAL="original",SOURCE_FORMAT_ARRAY_ROWS="arrayRows",SOURCE_FORMAT_OBJECT_ROWS="objectRows",SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",SOURCE_FORMAT_TYPED_ARRAY="typedArray",SOURCE_FORMAT_UNKNOWN="unknown",SERIES_LAYOUT_BY_COLUMN="column",SERIES_LAYOUT_BY_ROW="row",BE_ORDINAL={Must:1,Might:2,Not:3},innerGlobalModel=makeInner();function resetSourceDefaulter($){innerGlobalModel($).datasetMap=createHashMap()}function makeSeriesEncodeForAxisCoordSys($,oe,ae){var ie={},le=querySeriesUpstreamDatasetModel(oe);if(!le||!$)return ie;var pe=[],_e=[],Ce=oe.ecModel,$e=innerGlobalModel(Ce).datasetMap,xe=le.uid+"_"+ae.seriesLayoutBy,Ie,Ne;$=$.slice(),each$c($,function(Lt,hn){var vn=isObject$3(Lt)?Lt:$[hn]={name:Lt};vn.type==="ordinal"&&Ie==null&&(Ie=hn,Ne=At(vn)),ie[vn.name]=[]});var Fe=$e.get(xe)||$e.set(xe,{categoryWayDim:Ne,valueWayDim:0});each$c($,function(Lt,hn){var vn=Lt.name,_n=At(Lt);if(Ie==null){var bn=Fe.valueWayDim;ze(ie[vn],bn,_n),ze(_e,bn,_n),Fe.valueWayDim+=_n}else if(Ie===hn)ze(ie[vn],0,_n),ze(pe,0,_n);else{var bn=Fe.categoryWayDim;ze(ie[vn],bn,_n),ze(_e,bn,_n),Fe.categoryWayDim+=_n}});function ze(Lt,hn,vn){for(var _n=0;_noe)return $[ie];return $[ae-1]}function getFromPalette($,oe,ae,ie,le,pe,_e){pe=pe||$;var Ce=oe(pe),$e=Ce.paletteIdx||0,xe=Ce.paletteNameMap=Ce.paletteNameMap||{};if(xe.hasOwnProperty(le))return xe[le];var Ie=_e==null||!ie?ae:getNearestPalette(ie,_e);if(Ie=Ie||ae,!(!Ie||!Ie.length)){var Ne=Ie[$e];return le&&(xe[le]=Ne),Ce.paletteIdx=($e+1)%Ie.length,Ne}}function clearPalette($,oe){oe($).paletteIdx=0,oe($).paletteNameMap={}}var reCreateSeriesIndices,assertSeriesInitialized,initBase,OPTION_INNER_KEY="\0_ec_inner",OPTION_INNER_VALUE=1,GlobalModel=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.init=function(ae,ie,le,pe,_e,Ce){pe=pe||{},this.option=null,this._theme=new Model$1(pe),this._locale=new Model$1(_e),this._optionManager=Ce},oe.prototype.setOption=function(ae,ie,le){var pe=normalizeSetOptionInput(ie);this._optionManager.setOption(ae,le,pe),this._resetOption(null,pe)},oe.prototype.resetOption=function(ae,ie){return this._resetOption(ae,normalizeSetOptionInput(ie))},oe.prototype._resetOption=function(ae,ie){var le=!1,pe=this._optionManager;if(!ae||ae==="recreate"){var _e=pe.mountOption(ae==="recreate");!this.option||ae==="recreate"?initBase(this,_e):(this.restoreData(),this._mergeOption(_e,ie)),le=!0}if((ae==="timeline"||ae==="media")&&this.restoreData(),!ae||ae==="recreate"||ae==="timeline"){var Ce=pe.getTimelineOption(this);Ce&&(le=!0,this._mergeOption(Ce,ie))}if(!ae||ae==="recreate"||ae==="media"){var $e=pe.getMediaOption(this);$e.length&&each$c($e,function(xe){le=!0,this._mergeOption(xe,ie)},this)}return le},oe.prototype.mergeOption=function(ae){this._mergeOption(ae,null)},oe.prototype._mergeOption=function(ae,ie){var le=this.option,pe=this._componentsMap,_e=this._componentsCount,Ce=[],$e=createHashMap(),xe=ie&&ie.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$c(ae,function(Ne,Fe){Ne!=null&&(ComponentModel$1.hasClass(Fe)?Fe&&(Ce.push(Fe),$e.set(Fe,!0)):le[Fe]=le[Fe]==null?clone$3(Ne):merge(le[Fe],Ne,!0))}),xe&&xe.each(function(Ne,Fe){ComponentModel$1.hasClass(Fe)&&!$e.get(Fe)&&(Ce.push(Fe),$e.set(Fe,!0))}),ComponentModel$1.topologicalTravel(Ce,ComponentModel$1.getAllClassMainTypes(),Ie,this);function Ie(Ne){var Fe=concatInternalOptions(this,Ne,normalizeToArray(ae[Ne])),ze=pe.get(Ne),At=ze?xe&&xe.get(Ne)?"replaceMerge":"normalMerge":"replaceAll",Lt=mappingToExists(ze,Fe,At);setComponentTypeToKeyInfo(Lt,Ne,ComponentModel$1),le[Ne]=null,pe.set(Ne,null),_e.set(Ne,0);var hn=[],vn=[],_n=0,bn;each$c(Lt,function(Cn,En){var $n=Cn.existing,wn=Cn.newOption;if(!wn)$n&&($n.mergeOption({},this),$n.optionUpdated({},!1));else{var Tn=Ne==="series",xn=ComponentModel$1.getClass(Ne,Cn.keyInfo.subType,!Tn);if(!xn)return;if(Ne==="tooltip"){if(bn)return;bn=!0}if($n&&$n.constructor===xn)$n.name=Cn.keyInfo.name,$n.mergeOption(wn,this),$n.optionUpdated(wn,!1);else{var kn=extend({componentIndex:En},Cn.keyInfo);$n=new xn(wn,this,this,kn),extend($n,kn),Cn.brandNew&&($n.__requireNewView=!0),$n.init(wn,this,this),$n.optionUpdated(null,!0)}}$n?(hn.push($n.option),vn.push($n),_n++):(hn.push(void 0),vn.push(void 0))},this),le[Ne]=hn,pe.set(Ne,vn),_e.set(Ne,_n),Ne==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},oe.prototype.getOption=function(){var ae=clone$3(this.option);return each$c(ae,function(ie,le){if(ComponentModel$1.hasClass(le)){for(var pe=normalizeToArray(ie),_e=pe.length,Ce=!1,$e=_e-1;$e>=0;$e--)pe[$e]&&!isComponentIdInternal(pe[$e])?Ce=!0:(pe[$e]=null,!Ce&&_e--);pe.length=_e,ae[le]=pe}}),delete ae[OPTION_INNER_KEY],ae},oe.prototype.getTheme=function(){return this._theme},oe.prototype.getLocaleModel=function(){return this._locale},oe.prototype.setUpdatePayload=function(ae){this._payload=ae},oe.prototype.getUpdatePayload=function(){return this._payload},oe.prototype.getComponent=function(ae,ie){var le=this._componentsMap.get(ae);if(le){var pe=le[ie||0];if(pe)return pe;if(ie==null){for(var _e=0;_e=oe:ae==="max"?$<=oe:$===oe}function indicesEquals($,oe){return $.join(",")===oe.join(",")}const OptionManager$1=OptionManager;var each$a=each$c,isObject$2=isObject$3,POSSIBLE_STYLES=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function compatEC2ItemStyle($){var oe=$&&$.itemStyle;if(oe)for(var ae=0,ie=POSSIBLE_STYLES.length;ae=0;hn--){var vn=$[hn];if(Ce||(At=vn.data.rawIndexOf(vn.stackedByDimension,ze)),At>=0){var _n=vn.data.getByRawIndex(vn.stackResultDimension,At);if($e==="all"||$e==="positive"&&_n>0||$e==="negative"&&_n<0||$e==="samesign"&&Fe>=0&&_n>0||$e==="samesign"&&Fe<=0&&_n<0){Fe=addSafe(Fe,_n),Lt=_n;break}}}return ie[0]=Fe,ie[1]=Lt,ie})})}var SourceImpl=function(){function $(oe){this.data=oe.data||(oe.sourceFormat===SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=oe.sourceFormat||SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=oe.seriesLayoutBy||SERIES_LAYOUT_BY_COLUMN,this.startIndex=oe.startIndex||0,this.dimensionsDetectedCount=oe.dimensionsDetectedCount,this.metaRawOption=oe.metaRawOption;var ae=this.dimensionsDefine=oe.dimensionsDefine;if(ae)for(var ie=0;ieLt&&(Lt=bn)}ze[0]=At,ze[1]=Lt}},le=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(oe={},oe[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:pe},oe[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},oe[SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:pe},oe[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(_e){var Ce=this._data;each$c(_e,function($e,xe){for(var Ie=Ce[xe]||(Ce[xe]=[]),Ne=0;Ne<($e||[]).length;Ne++)Ie.push($e[Ne])})}},oe[SOURCE_FORMAT_ORIGINAL]={appendData:pe},oe[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(_e){this._data=_e},clean:function(){this._offset+=this.count(),this._data=null}},oe);function pe(_e){for(var Ce=0;Ce<_e.length;Ce++)this._data.push(_e[Ce])}}(),$}(),getItemSimply=function($,oe,ae,ie){return $[ie]},rawSourceItemGetterMap=(_a={},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function($,oe,ae,ie){return $[ie+oe]},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function($,oe,ae,ie,le){ie+=oe;for(var pe=le||[],_e=$,Ce=0;Ce<_e.length;Ce++){var $e=_e[Ce];pe[Ce]=$e?$e[ie]:null}return pe},_a[SOURCE_FORMAT_OBJECT_ROWS]=getItemSimply,_a[SOURCE_FORMAT_KEYED_COLUMNS]=function($,oe,ae,ie,le){for(var pe=le||[],_e=0;_e=0&&(Lt=_e.interpolatedValue[hn])}return Lt!=null?Lt+"":""})}},$.prototype.getRawValue=function(oe,ae){return retrieveRawValue(this.getData(ae),oe)},$.prototype.formatTooltip=function(oe,ae,ie){},$}();function normalizeTooltipFormatResult($){var oe,ae;return isObject$3($)?$.type&&(ae=$):oe=$,{text:oe,frag:ae}}function createTask($){return new Task($)}var Task=function(){function $(oe){oe=oe||{},this._reset=oe.reset,this._plan=oe.plan,this._count=oe.count,this._onDirty=oe.onDirty,this._dirty=!0}return $.prototype.perform=function(oe){var ae=this._upstream,ie=oe&&oe.skip;if(this._dirty&&ae){var le=this.context;le.data=le.outputData=ae.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var pe;this._plan&&!ie&&(pe=this._plan(this.context));var _e=Ie(this._modBy),Ce=this._modDataCount||0,$e=Ie(oe&&oe.modBy),xe=oe&&oe.modDataCount||0;(_e!==$e||Ce!==xe)&&(pe="reset");function Ie(_n){return!(_n>=1)&&(_n=1),_n}var Ne;(this._dirty||pe==="reset")&&(this._dirty=!1,Ne=this._doReset(ie)),this._modBy=$e,this._modDataCount=xe;var Fe=oe&&oe.step;if(ae?this._dueEnd=ae._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var ze=this._dueIndex,At=Math.min(Fe!=null?this._dueIndex+Fe:1/0,this._dueEnd);if(!ie&&(Ne||ze1&&ie>0?Ce:_e}};return pe;function _e(){return oe<$?oe++:null}function Ce(){var $e=oe%le*ae+Math.ceil(oe/le),xe=oe>=$?null:$ele?-this._resultLT:0},$}(),ExternalSource=function(){function $(){}return $.prototype.getRawData=function(){throw new Error("not supported")},$.prototype.getRawDataItem=function(oe){throw new Error("not supported")},$.prototype.cloneRawData=function(){},$.prototype.getDimensionInfo=function(oe){},$.prototype.cloneAllDimensionInfo=function(){},$.prototype.count=function(){},$.prototype.retrieveValue=function(oe,ae){},$.prototype.retrieveValueFromItem=function(oe,ae){},$.prototype.convertValue=function(oe,ae){return parseDataValue(oe,ae)},$}();function createExternalSource($,oe){var ae=new ExternalSource,ie=$.data,le=ae.sourceFormat=$.sourceFormat,pe=$.startIndex,_e="";$.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(_e);var Ce=[],$e={},xe=$.dimensionsDefine;if(xe)each$c(xe,function(Lt,hn){var vn=Lt.name,_n={index:hn,name:vn,displayName:Lt.displayName};if(Ce.push(_n),vn!=null){var bn="";hasOwn($e,vn)&&throwError(bn),$e[vn]=_n}});else for(var Ie=0;Ie<$.dimensionsDetectedCount;Ie++)Ce.push({index:Ie});var Ne=getRawSourceItemGetter(le,SERIES_LAYOUT_BY_COLUMN);oe.__isBuiltIn&&(ae.getRawDataItem=function(Lt){return Ne(ie,pe,Ce,Lt)},ae.getRawData=bind$1(getRawData,null,$)),ae.cloneRawData=bind$1(cloneRawData,null,$);var Fe=getRawSourceDataCounter(le,SERIES_LAYOUT_BY_COLUMN);ae.count=bind$1(Fe,null,ie,pe,Ce);var ze=getRawSourceValueGetter(le);ae.retrieveValue=function(Lt,hn){var vn=Ne(ie,pe,Ce,Lt);return At(vn,hn)};var At=ae.retrieveValueFromItem=function(Lt,hn){if(Lt!=null){var vn=Ce[hn];if(vn)return ze(Lt,hn,vn.name)}};return ae.getDimensionInfo=bind$1(getDimensionInfo,null,Ce,$e),ae.cloneAllDimensionInfo=bind$1(cloneAllDimensionInfo,null,Ce),ae}function getRawData($){var oe=$.sourceFormat;if(!isSupportedSourceFormat(oe)){var ae="";throwError(ae)}return $.data}function cloneRawData($){var oe=$.sourceFormat,ae=$.data;if(!isSupportedSourceFormat(oe)){var ie="";throwError(ie)}if(oe===SOURCE_FORMAT_ARRAY_ROWS){for(var le=[],pe=0,_e=ae.length;pe<_e;pe++)le.push(ae[pe].slice());return le}else if(oe===SOURCE_FORMAT_OBJECT_ROWS){for(var le=[],pe=0,_e=ae.length;pe<_e;pe++)le.push(extend({},ae[pe]));return le}}function getDimensionInfo($,oe,ae){if(ae!=null){if(isNumber(ae)||!isNaN(ae)&&!hasOwn(oe,ae))return $[ae];if(hasOwn(oe,ae))return oe[ae]}}function cloneAllDimensionInfo($){return clone$3($)}var externalTransformMap=createHashMap();function registerExternalTransform($){$=clone$3($);var oe=$.type,ae="";oe||throwError(ae);var ie=oe.split(":");ie.length!==2&&throwError(ae);var le=!1;ie[0]==="echarts"&&(oe=ie[1],le=!0),$.__isBuiltIn=le,externalTransformMap.set(oe,$)}function applyDataTransform($,oe,ae){var ie=normalizeToArray($),le=ie.length,pe="";le||throwError(pe);for(var _e=0,Ce=le;_e65535?CtorUint32Array:CtorUint16Array}function getInitialExtent(){return[1/0,-1/0]}function cloneChunk($){var oe=$.constructor;return oe===Array?$.slice():new oe($)}function prepareStore($,oe,ae,ie,le){var pe=dataCtors[ae||"float"];if(le){var _e=$[oe],Ce=_e&&_e.length;if(Ce!==ie){for(var $e=new pe(ie),xe=0;xehn[1]&&(hn[1]=Lt)}return this._rawCount=this._count=$e,{start:Ce,end:$e}},$.prototype._initDataFromProvider=function(oe,ae,ie){for(var le=this._provider,pe=this._chunks,_e=this._dimensions,Ce=_e.length,$e=this._rawExtent,xe=map$2(_e,function(_n){return _n.property}),Ie=0;Ievn[1]&&(vn[1]=hn)}}!le.persistent&&le.clean&&le.clean(),this._rawCount=this._count=ae,this._extent=[]},$.prototype.count=function(){return this._count},$.prototype.get=function(oe,ae){if(!(ae>=0&&ae=0&&ae=this._rawCount||oe<0)return-1;if(!this._indices)return oe;var ae=this._indices,ie=ae[oe];if(ie!=null&&ieoe)pe=_e-1;else return _e}return-1},$.prototype.indicesOfNearest=function(oe,ae,ie){var le=this._chunks,pe=le[oe],_e=[];if(!pe)return _e;ie==null&&(ie=1/0);for(var Ce=1/0,$e=-1,xe=0,Ie=0,Ne=this.count();Ie=0&&$e<0)&&(Ce=At,$e=ze,xe=0),ze===$e&&(_e[xe++]=Ie))}return _e.length=xe,_e},$.prototype.getIndices=function(){var oe,ae=this._indices;if(ae){var ie=ae.constructor,le=this._count;if(ie===Array){oe=new ie(le);for(var pe=0;pe=Ne&&_n<=Fe||isNaN(_n))&&($e[xe++]=Lt),Lt++}At=!0}else if(pe===2){for(var hn=ze[le[0]],bn=ze[le[1]],Cn=oe[le[1]][0],En=oe[le[1]][1],vn=0;vn=Ne&&_n<=Fe||isNaN(_n))&&($n>=Cn&&$n<=En||isNaN($n))&&($e[xe++]=Lt),Lt++}At=!0}}if(!At)if(pe===1)for(var vn=0;vn<_e;vn++){var wn=ae.getRawIndex(vn),_n=ze[le[0]][wn];(_n>=Ne&&_n<=Fe||isNaN(_n))&&($e[xe++]=wn)}else for(var vn=0;vn<_e;vn++){for(var Tn=!0,wn=ae.getRawIndex(vn),xn=0;xnoe[kn][1])&&(Tn=!1)}Tn&&($e[xe++]=ae.getRawIndex(vn))}return xe<_e&&(ae._indices=$e),ae._count=xe,ae._extent=[],ae._updateGetRawIdx(),ae},$.prototype.map=function(oe,ae){var ie=this.clone(oe);return this._updateDims(ie,oe,ae),ie},$.prototype.modify=function(oe,ae){this._updateDims(this,oe,ae)},$.prototype._updateDims=function(oe,ae,ie){for(var le=oe._chunks,pe=[],_e=ae.length,Ce=oe.count(),$e=[],xe=oe._rawExtent,Ie=0;Ievn[1]&&(vn[1]=hn)}}}},$.prototype.lttbDownSample=function(oe,ae){var ie=this.clone([oe],!0),le=ie._chunks,pe=le[oe],_e=this.count(),Ce=0,$e=Math.floor(1/ae),xe=this.getRawIndex(0),Ie,Ne,Fe,ze=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(_e/$e)+2)*2,_e));ze[Ce++]=xe;for(var At=1;At<_e-1;At+=$e){for(var Lt=Math.min(At+$e,_e-1),hn=Math.min(At+$e*2,_e),vn=(hn+Lt)/2,_n=0,bn=Lt;bnIe&&(Ie=Ne,Fe=Cn)}An>0&&AnIe-At&&($e=Ie-At,Ce.length=$e);for(var Lt=0;Lt<$e;Lt++){var hn=this.getRawIndex(At+Lt);Ce[Lt]=xe[hn]}var vn=ie(Ce),_n=this.getRawIndex(Math.min(At+le(Ce,vn)||0,Ie-1));xe[_n]=vn,vnNe[1]&&(Ne[1]=vn),Fe[ze++]=_n}return pe._count=ze,pe._indices=Fe,pe._updateGetRawIdx(),pe},$.prototype.each=function(oe,ae){if(this._count)for(var ie=oe.length,le=this._chunks,pe=0,_e=this.count();pe<_e;pe++){var Ce=this.getRawIndex(pe);switch(ie){case 0:ae(pe);break;case 1:ae(le[oe[0]][Ce],pe);break;case 2:ae(le[oe[0]][Ce],le[oe[1]][Ce],pe);break;default:for(var $e=0,xe=[];$e$e&&($e=Ne)}return _e=[Ce,$e],this._extent[oe]=_e,_e},$.prototype.getRawDataItem=function(oe){var ae=this.getRawIndex(oe);if(this._provider.persistent)return this._provider.getItem(ae);for(var ie=[],le=this._chunks,pe=0;pe=0?this._indices[oe]:-1},$.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},$.internalField=function(){function oe(ae,ie,le,pe){return parseDataValue(ae[pe],this._dimensions[pe])}defaultDimValueGetters={arrayRows:oe,objectRows:function(ae,ie,le,pe){return parseDataValue(ae[ie],this._dimensions[pe])},keyedColumns:oe,original:function(ae,ie,le,pe){var _e=ae&&(ae.value==null?ae:ae.value);return parseDataValue(_e instanceof Array?_e[pe]:_e,this._dimensions[pe])},typedArray:function(ae,ie,le,pe){return ae[pe]}}}(),$}();const DataStore$1=DataStore;var SourceManager=function(){function $(oe){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=oe}return $.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},$.prototype._setLocalSource=function(oe,ae){this._sourceList=oe,this._upstreamSignList=ae,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},$.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},$.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},$.prototype._createSource=function(){this._setLocalSource([],[]);var oe=this._sourceHost,ae=this._getUpstreamSourceManagers(),ie=!!ae.length,le,pe;if(isSeries(oe)){var _e=oe,Ce=void 0,$e=void 0,xe=void 0;if(ie){var Ie=ae[0];Ie.prepareSource(),xe=Ie.getSource(),Ce=xe.data,$e=xe.sourceFormat,pe=[Ie._getVersionSign()]}else Ce=_e.get("data",!0),$e=isTypedArray(Ce)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,pe=[];var Ne=this._getSourceMetaRawOption()||{},Fe=xe&&xe.metaRawOption||{},ze=retrieve2(Ne.seriesLayoutBy,Fe.seriesLayoutBy)||null,At=retrieve2(Ne.sourceHeader,Fe.sourceHeader),Lt=retrieve2(Ne.dimensions,Fe.dimensions),hn=ze!==Fe.seriesLayoutBy||!!At!=!!Fe.sourceHeader||Lt;le=hn?[createSource(Ce,{seriesLayoutBy:ze,sourceHeader:At,dimensions:Lt},$e)]:[]}else{var vn=oe;if(ie){var _n=this._applyTransform(ae);le=_n.sourceList,pe=_n.upstreamSignList}else{var bn=vn.get("source",!0);le=[createSource(bn,this._getSourceMetaRawOption(),null)],pe=[]}}this._setLocalSource(le,pe)},$.prototype._applyTransform=function(oe){var ae=this._sourceHost,ie=ae.get("transform",!0),le=ae.get("fromTransformResult",!0);if(le!=null){var pe="";oe.length!==1&&doThrow(pe)}var _e,Ce=[],$e=[];return each$c(oe,function(xe){xe.prepareSource();var Ie=xe.getSource(le||0),Ne="";le!=null&&!Ie&&doThrow(Ne),Ce.push(Ie),$e.push(xe._getVersionSign())}),ie?_e=applyDataTransform(ie,Ce,{datasetIndex:ae.componentIndex}):le!=null&&(_e=[cloneSourceShallow(Ce[0])]),{sourceList:_e,upstreamSignList:$e}},$.prototype._isDirty=function(){if(this._dirty)return!0;for(var oe=this._getUpstreamSourceManagers(),ae=0;ae1||ae>0&&!$.noHeader;return each$c($.blocks,function(le){var pe=getBlockGapLevel(le);pe>=oe&&(oe=pe+ +(ie&&(!pe||isSectionFragment(le)&&!le.noHeader)))}),oe}return 0}function buildSection($,oe,ae,ie){var le=oe.noHeader,pe=getGap(getBlockGapLevel(oe)),_e=[],Ce=oe.blocks||[];assert(!Ce||isArray$1(Ce)),Ce=Ce||[];var $e=$.orderMode;if(oe.sortBlocks&&$e){Ce=Ce.slice();var xe={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(xe,$e)){var Ie=new SortOrderComparator(xe[$e],null);Ce.sort(function(At,Lt){return Ie.evaluate(At.sortParam,Lt.sortParam)})}else $e==="seriesDesc"&&Ce.reverse()}each$c(Ce,function(At,Lt){var hn=oe.valueFormatter,vn=getBuilder(At)(hn?extend(extend({},$),{valueFormatter:hn}):$,At,Lt>0?pe.html:0,ie);vn!=null&&_e.push(vn)});var Ne=$.renderMode==="richText"?_e.join(pe.richText):wrapBlockHTML(_e.join(""),le?ae:pe.html);if(le)return Ne;var Fe=makeValueReadable(oe.header,"ordinal",$.useUTC),ze=getTooltipTextStyle(ie,$.renderMode).nameStyle;return $.renderMode==="richText"?wrapInlineNameRichText($,Fe,ze)+pe.richText+Ne:wrapBlockHTML('
'+encodeHTML(Fe)+"
"+Ne,ae)}function buildNameValue($,oe,ae,ie){var le=$.renderMode,pe=oe.noName,_e=oe.noValue,Ce=!oe.markerType,$e=oe.name,xe=$.useUTC,Ie=oe.valueFormatter||$.valueFormatter||function(Cn){return Cn=isArray$1(Cn)?Cn:[Cn],map$2(Cn,function(En,$n){return makeValueReadable(En,isArray$1(ze)?ze[$n]:ze,xe)})};if(!(pe&&_e)){var Ne=Ce?"":$.markupStyleCreator.makeTooltipMarker(oe.markerType,oe.markerColor||"#333",le),Fe=pe?"":makeValueReadable($e,"ordinal",xe),ze=oe.valueType,At=_e?[]:Ie(oe.value),Lt=!Ce||!pe,hn=!Ce&&pe,vn=getTooltipTextStyle(ie,le),_n=vn.nameStyle,bn=vn.valueStyle;return le==="richText"?(Ce?"":Ne)+(pe?"":wrapInlineNameRichText($,Fe,_n))+(_e?"":wrapInlineValueRichText($,At,Lt,hn,bn)):wrapBlockHTML((Ce?"":Ne)+(pe?"":wrapInlineNameHTML(Fe,!Ce,_n))+(_e?"":wrapInlineValueHTML(At,Lt,hn,bn)),ae)}}function buildTooltipMarkup($,oe,ae,ie,le,pe){if($){var _e=getBuilder($),Ce={useUTC:le,renderMode:ae,orderMode:ie,markupStyleCreator:oe,valueFormatter:$.valueFormatter};return _e(Ce,$,0,pe)}}function getGap($){return{html:HTML_GAPS[$],richText:RICH_TEXT_GAPS[$]}}function wrapBlockHTML($,oe){var ae='
',ie="margin: "+oe+"px 0 0";return'
'+$+ae+"
"}function wrapInlineNameHTML($,oe,ae){var ie=oe?"margin-left:2px":"";return''+encodeHTML($)+""}function wrapInlineValueHTML($,oe,ae,ie){var le=ae?"10px":"20px",pe=oe?"float:right;margin-left:"+le:"";return $=isArray$1($)?$:[$],''+map$2($,function(_e){return encodeHTML(_e)}).join("  ")+""}function wrapInlineNameRichText($,oe,ae){return $.markupStyleCreator.wrapRichTextStyle(oe,ae)}function wrapInlineValueRichText($,oe,ae,ie,le){var pe=[le],_e=ie?10:20;return ae&&pe.push({padding:[0,0,0,_e],align:"right"}),$.markupStyleCreator.wrapRichTextStyle(isArray$1(oe)?oe.join(" "):oe,pe)}function retrieveVisualColorForTooltipMarker($,oe){var ae=$.getData().getItemVisual(oe,"style"),ie=ae[$.visualDrawType];return convertToColorString(ie)}function getPaddingFromTooltipModel($,oe){var ae=$.get("padding");return ae??(oe==="richText"?[8,10]:10)}var TooltipMarkupStyleCreator=function(){function $(){this.richTextStyles={},this._nextStyleNameId=getRandomIdBase()}return $.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},$.prototype.makeTooltipMarker=function(oe,ae,ie){var le=ie==="richText"?this._generateStyleName():null,pe=getTooltipMarker({color:ae,type:oe,renderMode:ie,markerId:le});return isString(pe)?pe:(this.richTextStyles[le]=pe.style,pe.content)},$.prototype.wrapRichTextStyle=function(oe,ae){var ie={};isArray$1(ae)?each$c(ae,function(pe){return extend(ie,pe)}):extend(ie,ae);var le=this._generateStyleName();return this.richTextStyles[le]=ie,"{"+le+"|"+oe+"}"},$}();function defaultSeriesFormatTooltip($){var oe=$.series,ae=$.dataIndex,ie=$.multipleSeries,le=oe.getData(),pe=le.mapDimensionsAll("defaultedTooltip"),_e=pe.length,Ce=oe.getRawValue(ae),$e=isArray$1(Ce),xe=retrieveVisualColorForTooltipMarker(oe,ae),Ie,Ne,Fe,ze;if(_e>1||$e&&!_e){var At=formatTooltipArrayValue(Ce,oe,ae,pe,xe);Ie=At.inlineValues,Ne=At.inlineValueTypes,Fe=At.blocks,ze=At.inlineValues[0]}else if(_e){var Lt=le.getDimensionInfo(pe[0]);ze=Ie=retrieveRawValue(le,ae,pe[0]),Ne=Lt.type}else ze=Ie=$e?Ce[0]:Ce;var hn=isNameSpecified(oe),vn=hn&&oe.name||"",_n=le.getName(ae),bn=ie?vn:_n;return createTooltipMarkup("section",{header:vn,noHeader:ie||!hn,sortParam:ze,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:xe,name:bn,noName:!trim$1(bn),value:Ie,valueType:Ne})].concat(Fe||[])})}function formatTooltipArrayValue($,oe,ae,ie,le){var pe=oe.getData(),_e=reduce($,function(Ne,Fe,ze){var At=pe.getDimensionInfo(ze);return Ne=Ne||At&&At.tooltip!==!1&&At.displayName!=null},!1),Ce=[],$e=[],xe=[];ie.length?each$c(ie,function(Ne){Ie(retrieveRawValue(pe,ae,Ne),Ne)}):each$c($,Ie);function Ie(Ne,Fe){var ze=pe.getDimensionInfo(Fe);!ze||ze.otherDims.tooltip===!1||(_e?xe.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:le,name:ze.displayName,value:Ne,valueType:ze.type})):(Ce.push(Ne),$e.push(ze.type)))}return{inlineValues:Ce,inlineValueTypes:$e,blocks:xe}}var inner$b=makeInner();function getSelectionKey($,oe){return $.getName(oe)||$.getId(oe)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae._selectedDataIndicesMap={},ae}return oe.prototype.init=function(ae,ie,le){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(ae,le);var pe=inner$b(this).sourceManager=new SourceManager(this);pe.prepareSource();var _e=this.getInitialData(ae,le);wrapData(_e,this),this.dataTask.context.data=_e,inner$b(this).dataBeforeProcessed=_e,autoSeriesName(this),this._initSelectedMapFromData(_e)},oe.prototype.mergeDefaultAndTheme=function(ae,ie){var le=fetchLayoutMode(this),pe=le?getLayoutParams(ae):{},_e=this.subType;ComponentModel$1.hasClass(_e)&&(_e+="Series"),merge(ae,ie.getTheme().get(this.subType)),merge(ae,this.getDefaultOption()),defaultEmphasis(ae,"label",["show"]),this.fillDataTextStyle(ae.data),le&&mergeLayoutParam(ae,pe,le)},oe.prototype.mergeOption=function(ae,ie){ae=merge(this.option,ae,!0),this.fillDataTextStyle(ae.data);var le=fetchLayoutMode(this);le&&mergeLayoutParam(this.option,ae,le);var pe=inner$b(this).sourceManager;pe.dirty(),pe.prepareSource();var _e=this.getInitialData(ae,ie);wrapData(_e,this),this.dataTask.dirty(),this.dataTask.context.data=_e,inner$b(this).dataBeforeProcessed=_e,autoSeriesName(this),this._initSelectedMapFromData(_e)},oe.prototype.fillDataTextStyle=function(ae){if(ae&&!isTypedArray(ae))for(var ie=["show"],le=0;lethis.getShallow("animationThreshold")&&(ie=!1),!!ie},oe.prototype.restoreData=function(){this.dataTask.dirty()},oe.prototype.getColorFromPalette=function(ae,ie,le){var pe=this.ecModel,_e=PaletteMixin.prototype.getColorFromPalette.call(this,ae,ie,le);return _e||(_e=pe.getColorFromPalette(ae,ie,le)),_e},oe.prototype.coordDimToDataDim=function(ae){return this.getRawData().mapDimensionsAll(ae)},oe.prototype.getProgressive=function(){return this.get("progressive")},oe.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},oe.prototype.select=function(ae,ie){this._innerSelect(this.getData(ie),ae)},oe.prototype.unselect=function(ae,ie){var le=this.option.selectedMap;if(le){var pe=this.option.selectedMode,_e=this.getData(ie);if(pe==="series"||le==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var Ce=0;Ce=0&&le.push(_e)}return le},oe.prototype.isSelected=function(ae,ie){var le=this.option.selectedMap;if(!le)return!1;var pe=this.getData(ie);return(le==="all"||le[getSelectionKey(pe,ae)])&&!pe.getItemModel(ae).get(["select","disabled"])},oe.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var ae=this.option.universalTransition;return ae?ae===!0?!0:ae&&ae.enabled:!1},oe.prototype._innerSelect=function(ae,ie){var le,pe,_e=this.option,Ce=_e.selectedMode,$e=ie.length;if(!(!Ce||!$e)){if(Ce==="series")_e.selectedMap="all";else if(Ce==="multiple"){isObject$3(_e.selectedMap)||(_e.selectedMap={});for(var xe=_e.selectedMap,Ie=0;Ie<$e;Ie++){var Ne=ie[Ie],Fe=getSelectionKey(ae,Ne);xe[Fe]=!0,this._selectedDataIndicesMap[Fe]=ae.getRawIndex(Ne)}}else if(Ce==="single"||Ce===!0){var ze=ie[$e-1],Fe=getSelectionKey(ae,ze);_e.selectedMap=(le={},le[Fe]=!0,le),this._selectedDataIndicesMap=(pe={},pe[Fe]=ae.getRawIndex(ze),pe)}}},oe.prototype._initSelectedMapFromData=function(ae){if(!this.option.selectedMap){var ie=[];ae.hasItemOption&&ae.each(function(le){var pe=ae.getRawDataItem(le);pe&&pe.selected&&ie.push(le)}),ie.length>0&&this._innerSelect(ae,ie)}},oe.registerClass=function(ae){return ComponentModel$1.registerClass(ae)},oe.protoInitialize=function(){var ae=oe.prototype;ae.type="series.__base__",ae.seriesIndex=0,ae.ignoreStyleOnData=!1,ae.hasSymbolVisual=!1,ae.defaultSymbol="circle",ae.visualStyleAccessPath="itemStyle",ae.visualDrawType="fill"}(),oe}(ComponentModel$1);mixin(SeriesModel,DataFormatMixin);mixin(SeriesModel,PaletteMixin);mountExtend(SeriesModel,ComponentModel$1);function autoSeriesName($){var oe=$.name;isNameSpecified($)||($.name=getSeriesAutoName($)||oe)}function getSeriesAutoName($){var oe=$.getRawData(),ae=oe.mapDimensionsAll("seriesName"),ie=[];return each$c(ae,function(le){var pe=oe.getDimensionInfo(le);pe.displayName&&ie.push(pe.displayName)}),ie.join(" ")}function dataTaskCount($){return $.model.getRawData().count()}function dataTaskReset($){var oe=$.model;return oe.setData(oe.getRawData().cloneShallow()),dataTaskProgress}function dataTaskProgress($,oe){oe.outputData&&$.end>oe.outputData.count()&&oe.model.getRawData().cloneShallow(oe.outputData)}function wrapData($,oe){each$c(concatArray($.CHANGABLE_METHODS,$.DOWNSAMPLE_METHODS),function(ae){$.wrapMethod(ae,curry$1(onDataChange,oe))})}function onDataChange($,oe){var ae=getCurrentTask($);return ae&&ae.setOutputEnd((oe||this).count()),oe}function getCurrentTask($){var oe=($.ecModel||{}).scheduler,ae=oe&&oe.getPipeline($.uid);if(ae){var ie=ae.currentTask;if(ie){var le=ie.agentStubMap;le&&(ie=le.get($.uid))}return ie}}const SeriesModel$1=SeriesModel;var ComponentView=function(){function $(){this.group=new Group$3,this.uid=getUID("viewComponent")}return $.prototype.init=function(oe,ae){},$.prototype.render=function(oe,ae,ie,le){},$.prototype.dispose=function(oe,ae){},$.prototype.updateView=function(oe,ae,ie,le){},$.prototype.updateLayout=function(oe,ae,ie,le){},$.prototype.updateVisual=function(oe,ae,ie,le){},$.prototype.toggleBlurSeries=function(oe,ae,ie){},$.prototype.eachRendered=function(oe){var ae=this.group;ae&&ae.traverse(oe)},$}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);const ComponentView$1=ComponentView;function createRenderPlanner(){var $=makeInner();return function(oe){var ae=$(oe),ie=oe.pipelineContext,le=!!ae.large,pe=!!ae.progressiveRender,_e=ae.large=!!(ie&&ie.large),Ce=ae.progressiveRender=!!(ie&&ie.progressiveRender);return(le!==_e||pe!==Ce)&&"reset"}}var inner$a=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function $(){this.group=new Group$3,this.uid=getUID("viewChart"),this.renderTask=createTask({plan:renderTaskPlan,reset:renderTaskReset}),this.renderTask.context={view:this}}return $.prototype.init=function(oe,ae){},$.prototype.render=function(oe,ae,ie,le){},$.prototype.highlight=function(oe,ae,ie,le){var pe=oe.getData(le&&le.dataType);pe&&toggleHighlight(pe,le,"emphasis")},$.prototype.downplay=function(oe,ae,ie,le){var pe=oe.getData(le&&le.dataType);pe&&toggleHighlight(pe,le,"normal")},$.prototype.remove=function(oe,ae){this.group.removeAll()},$.prototype.dispose=function(oe,ae){},$.prototype.updateView=function(oe,ae,ie,le){this.render(oe,ae,ie,le)},$.prototype.updateLayout=function(oe,ae,ie,le){this.render(oe,ae,ie,le)},$.prototype.updateVisual=function(oe,ae,ie,le){this.render(oe,ae,ie,le)},$.prototype.eachRendered=function(oe){traverseElements(this.group,oe)},$.markUpdateMethod=function(oe,ae){inner$a(oe).updateMethod=ae},$.protoInitialize=function(){var oe=$.prototype;oe.type="chart"}(),$}();function elSetState($,oe,ae){$&&isHighDownDispatcher($)&&(oe==="emphasis"?enterEmphasis:leaveEmphasis)($,ae)}function toggleHighlight($,oe,ae){var ie=queryDataIndex($,oe),le=oe&&oe.highlightKey!=null?getHighlightDigit(oe.highlightKey):null;ie!=null?each$c(normalizeToArray(ie),function(pe){elSetState($.getItemGraphicEl(pe),ae,le)}):$.eachItemGraphicEl(function(pe){elSetState(pe,ae,le)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan($){return renderPlanner($.model)}function renderTaskReset($){var oe=$.model,ae=$.ecModel,ie=$.api,le=$.payload,pe=oe.pipelineContext.progressiveRender,_e=$.view,Ce=le&&inner$a(le).updateMethod,$e=pe?"incrementalPrepareRender":Ce&&_e[Ce]?Ce:"render";return $e!=="render"&&_e[$e](oe,ae,ie,le),progressMethodMap[$e]}var progressMethodMap={incrementalPrepareRender:{progress:function($,oe){oe.view.incrementalRender($,oe.model,oe.ecModel,oe.api,oe.payload)}},render:{forceFirstProgress:!0,progress:function($,oe){oe.view.render(oe.model,oe.ecModel,oe.api,oe.payload)}}};const ChartView$1=ChartView;var ORIGIN_METHOD="\0__throttleOriginMethod",RATE="\0__throttleRate",THROTTLE_TYPE="\0__throttleType";function throttle($,oe,ae){var ie,le=0,pe=0,_e=null,Ce,$e,xe,Ie;oe=oe||0;function Ne(){pe=new Date().getTime(),_e=null,$.apply($e,xe||[])}var Fe=function(){for(var ze=[],At=0;At=0?Ne():_e=setTimeout(Ne,-Ce),le=ie};return Fe.clear=function(){_e&&(clearTimeout(_e),_e=null)},Fe.debounceNextCall=function(ze){Ie=ze},Fe}function createOrUpdate($,oe,ae,ie){var le=$[oe];if(le){var pe=le[ORIGIN_METHOD]||le,_e=le[THROTTLE_TYPE],Ce=le[RATE];if(Ce!==ae||_e!==ie){if(ae==null||!ie)return $[oe]=pe;le=$[oe]=throttle(pe,ae,ie==="debounce"),le[ORIGIN_METHOD]=pe,le[THROTTLE_TYPE]=ie,le[RATE]=ae}return le}}function clear$1($,oe){var ae=$[oe];ae&&ae[ORIGIN_METHOD]&&(ae.clear&&ae.clear(),$[oe]=ae[ORIGIN_METHOD])}var inner$9=makeInner(),defaultStyleMappers={itemStyle:makeStyleMapper(ITEM_STYLE_KEY_MAP,!0),lineStyle:makeStyleMapper(LINE_STYLE_KEY_MAP,!0)},defaultColorKey={lineStyle:"stroke",itemStyle:"fill"};function getStyleMapper($,oe){var ae=$.visualStyleMapper||defaultStyleMappers[oe];return ae||(console.warn("Unknown style type '"+oe+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey($,oe){var ae=$.visualDrawType||defaultColorKey[oe];return ae||(console.warn("Unknown style type '"+oe+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,oe){var ae=$.getData(),ie=$.visualStyleAccessPath||"itemStyle",le=$.getModel(ie),pe=getStyleMapper($,ie),_e=pe(le),Ce=le.getShallow("decal");Ce&&(ae.setVisual("decal",Ce),Ce.dirty=!0);var $e=getDefaultColorKey($,ie),xe=_e[$e],Ie=isFunction(xe)?xe:null,Ne=_e.fill==="auto"||_e.stroke==="auto";if(!_e[$e]||Ie||Ne){var Fe=$.getColorFromPalette($.name,null,oe.getSeriesCount());_e[$e]||(_e[$e]=Fe,ae.setVisual("colorFromPalette",!0)),_e.fill=_e.fill==="auto"||isFunction(_e.fill)?Fe:_e.fill,_e.stroke=_e.stroke==="auto"||isFunction(_e.stroke)?Fe:_e.stroke}if(ae.setVisual("style",_e),ae.setVisual("drawType",$e),!oe.isSeriesFiltered($)&&Ie)return ae.setVisual("colorFromPalette",!1),{dataEach:function(ze,At){var Lt=$.getDataParams(At),hn=extend({},_e);hn[$e]=Ie(Lt),ze.setItemVisual(At,"style",hn)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,oe){if(!($.ignoreStyleOnData||oe.isSeriesFiltered($))){var ae=$.getData(),ie=$.visualStyleAccessPath||"itemStyle",le=getStyleMapper($,ie),pe=ae.getVisual("drawType");return{dataEach:ae.hasItemOption?function(_e,Ce){var $e=_e.getRawDataItem(Ce);if($e&&$e[ie]){sharedModel.option=$e[ie];var xe=le(sharedModel),Ie=_e.ensureUniqueItemVisual(Ce,"style");extend(Ie,xe),sharedModel.option.decal&&(_e.setItemVisual(Ce,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),pe in xe&&_e.setItemVisual(Ce,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function($){var oe=createHashMap();$.eachSeries(function(ae){var ie=ae.getColorBy();if(!ae.isColorBySeries()){var le=ae.type+"-"+ie,pe=oe.get(le);pe||(pe={},oe.set(le,pe)),inner$9(ae).scope=pe}}),$.eachSeries(function(ae){if(!(ae.isColorBySeries()||$.isSeriesFiltered(ae))){var ie=ae.getRawData(),le={},pe=ae.getData(),_e=inner$9(ae).scope,Ce=ae.visualStyleAccessPath||"itemStyle",$e=getDefaultColorKey(ae,Ce);pe.each(function(xe){var Ie=pe.getRawIndex(xe);le[Ie]=xe}),ie.each(function(xe){var Ie=le[xe],Ne=pe.getItemVisual(Ie,"colorFromPalette");if(Ne){var Fe=pe.ensureUniqueItemVisual(Ie,"style"),ze=ie.getName(xe)||xe+"",At=ie.count();Fe[$e]=ae.getColorFromPalette(ze,_e,At)}})}})}},PI$1=Math.PI;function defaultLoading($,oe){oe=oe||{},defaults(oe,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var ae=new Group$3,ie=new Rect$2({style:{fill:oe.maskColor},zlevel:oe.zlevel,z:1e4});ae.add(ie);var le=new ZRText$1({style:{text:oe.text,fill:oe.textColor,fontSize:oe.fontSize,fontWeight:oe.fontWeight,fontStyle:oe.fontStyle,fontFamily:oe.fontFamily},zlevel:oe.zlevel,z:10001}),pe=new Rect$2({style:{fill:"none"},textContent:le,textConfig:{position:"right",distance:10},zlevel:oe.zlevel,z:10001});ae.add(pe);var _e;return oe.showSpinner&&(_e=new Arc$1({shape:{startAngle:-PI$1/2,endAngle:-PI$1/2+.1,r:oe.spinnerRadius},style:{stroke:oe.color,lineCap:"round",lineWidth:oe.lineWidth},zlevel:oe.zlevel,z:10001}),_e.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),_e.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),ae.add(_e)),ae.resize=function(){var Ce=le.getBoundingRect().width,$e=oe.showSpinner?oe.spinnerRadius:0,xe=($.getWidth()-$e*2-(oe.showSpinner&&Ce?10:0)-Ce)/2-(oe.showSpinner&&Ce?0:5+Ce/2)+(oe.showSpinner?0:Ce/2)+(Ce?0:$e),Ie=$.getHeight()/2;oe.showSpinner&&_e.setShape({cx:xe,cy:Ie}),pe.setShape({x:xe-$e,y:Ie-$e,width:$e*2,height:$e*2}),ie.setShape({x:0,y:0,width:$.getWidth(),height:$.getHeight()})},ae.resize(),ae}var Scheduler=function(){function $(oe,ae,ie,le){this._stageTaskMap=createHashMap(),this.ecInstance=oe,this.api=ae,ie=this._dataProcessorHandlers=ie.slice(),le=this._visualHandlers=le.slice(),this._allHandlers=ie.concat(le)}return $.prototype.restoreData=function(oe,ae){oe.restoreData(ae),this._stageTaskMap.each(function(ie){var le=ie.overallTask;le&&le.dirty()})},$.prototype.getPerformArgs=function(oe,ae){if(oe.__pipeline){var ie=this._pipelineMap.get(oe.__pipeline.id),le=ie.context,pe=!ae&&ie.progressiveEnabled&&(!le||le.progressiveRender)&&oe.__idxInPipeline>ie.blockIndex,_e=pe?ie.step:null,Ce=le&&le.modDataCount,$e=Ce!=null?Math.ceil(Ce/_e):null;return{step:_e,modBy:$e,modDataCount:Ce}}},$.prototype.getPipeline=function(oe){return this._pipelineMap.get(oe)},$.prototype.updateStreamModes=function(oe,ae){var ie=this._pipelineMap.get(oe.uid),le=oe.getData(),pe=le.count(),_e=ie.progressiveEnabled&&ae.incrementalPrepareRender&&pe>=ie.threshold,Ce=oe.get("large")&&pe>=oe.get("largeThreshold"),$e=oe.get("progressiveChunkMode")==="mod"?pe:null;oe.pipelineContext=ie.context={progressiveRender:_e,modDataCount:$e,large:Ce}},$.prototype.restorePipelines=function(oe){var ae=this,ie=ae._pipelineMap=createHashMap();oe.eachSeries(function(le){var pe=le.getProgressive(),_e=le.uid;ie.set(_e,{id:_e,head:null,tail:null,threshold:le.getProgressiveThreshold(),progressiveEnabled:pe&&!(le.preventIncremental&&le.preventIncremental()),blockIndex:-1,step:Math.round(pe||700),count:0}),ae._pipe(le,le.dataTask)})},$.prototype.prepareStageTasks=function(){var oe=this._stageTaskMap,ae=this.api.getModel(),ie=this.api;each$c(this._allHandlers,function(le){var pe=oe.get(le.uid)||oe.set(le.uid,{}),_e="";assert(!(le.reset&&le.overallReset),_e),le.reset&&this._createSeriesStageTask(le,pe,ae,ie),le.overallReset&&this._createOverallStageTask(le,pe,ae,ie)},this)},$.prototype.prepareView=function(oe,ae,ie,le){var pe=oe.renderTask,_e=pe.context;_e.model=ae,_e.ecModel=ie,_e.api=le,pe.__block=!oe.incrementalPrepareRender,this._pipe(ae,pe)},$.prototype.performDataProcessorTasks=function(oe,ae){this._performStageTasks(this._dataProcessorHandlers,oe,ae,{block:!0})},$.prototype.performVisualTasks=function(oe,ae,ie){this._performStageTasks(this._visualHandlers,oe,ae,ie)},$.prototype._performStageTasks=function(oe,ae,ie,le){le=le||{};var pe=!1,_e=this;each$c(oe,function($e,xe){if(!(le.visualType&&le.visualType!==$e.visualType)){var Ie=_e._stageTaskMap.get($e.uid),Ne=Ie.seriesTaskMap,Fe=Ie.overallTask;if(Fe){var ze,At=Fe.agentStubMap;At.each(function(hn){Ce(le,hn)&&(hn.dirty(),ze=!0)}),ze&&Fe.dirty(),_e.updatePayload(Fe,ie);var Lt=_e.getPerformArgs(Fe,le.block);At.each(function(hn){hn.perform(Lt)}),Fe.perform(Lt)&&(pe=!0)}else Ne&&Ne.each(function(hn,vn){Ce(le,hn)&&hn.dirty();var _n=_e.getPerformArgs(hn,le.block);_n.skip=!$e.performRawSeries&&ae.isSeriesFiltered(hn.context.model),_e.updatePayload(hn,ie),hn.perform(_n)&&(pe=!0)})}});function Ce($e,xe){return $e.setDirty&&(!$e.dirtyMap||$e.dirtyMap.get(xe.__pipeline.id))}this.unfinished=pe||this.unfinished},$.prototype.performSeriesTasks=function(oe){var ae;oe.eachSeries(function(ie){ae=ie.dataTask.perform()||ae}),this.unfinished=ae||this.unfinished},$.prototype.plan=function(){this._pipelineMap.each(function(oe){var ae=oe.tail;do{if(ae.__block){oe.blockIndex=ae.__idxInPipeline;break}ae=ae.getUpstream()}while(ae)})},$.prototype.updatePayload=function(oe,ae){ae!=="remain"&&(oe.context.payload=ae)},$.prototype._createSeriesStageTask=function(oe,ae,ie,le){var pe=this,_e=ae.seriesTaskMap,Ce=ae.seriesTaskMap=createHashMap(),$e=oe.seriesType,xe=oe.getTargetSeries;oe.createOnAllSeries?ie.eachRawSeries(Ie):$e?ie.eachRawSeriesByType($e,Ie):xe&&xe(ie,le).each(Ie);function Ie(Ne){var Fe=Ne.uid,ze=Ce.set(Fe,_e&&_e.get(Fe)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));ze.context={model:Ne,ecModel:ie,api:le,useClearVisual:oe.isVisual&&!oe.isLayout,plan:oe.plan,reset:oe.reset,scheduler:pe},pe._pipe(Ne,ze)}},$.prototype._createOverallStageTask=function(oe,ae,ie,le){var pe=this,_e=ae.overallTask=ae.overallTask||createTask({reset:overallTaskReset});_e.context={ecModel:ie,api:le,overallReset:oe.overallReset,scheduler:pe};var Ce=_e.agentStubMap,$e=_e.agentStubMap=createHashMap(),xe=oe.seriesType,Ie=oe.getTargetSeries,Ne=!0,Fe=!1,ze="";assert(!oe.createOnAllSeries,ze),xe?ie.eachRawSeriesByType(xe,At):Ie?Ie(ie,le).each(At):(Ne=!1,each$c(ie.getSeries(),At));function At(Lt){var hn=Lt.uid,vn=$e.set(hn,Ce&&Ce.get(hn)||(Fe=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));vn.context={model:Lt,overallProgress:Ne},vn.agent=_e,vn.__block=Ne,pe._pipe(Lt,vn)}Fe&&_e.dirty()},$.prototype._pipe=function(oe,ae){var ie=oe.uid,le=this._pipelineMap.get(ie);!le.head&&(le.head=ae),le.tail&&le.tail.pipe(ae),le.tail=ae,ae.__idxInPipeline=le.count++,ae.__pipeline=le},$.wrapStageHandler=function(oe,ae){return isFunction(oe)&&(oe={overallReset:oe,seriesType:detectSeriseType(oe)}),oe.uid=getUID("stageHandler"),ae&&(oe.visualType=ae),oe},$}();function overallTaskReset($){$.overallReset($.ecModel,$.api,$.payload)}function stubReset($){return $.overallProgress&&stubProgress}function stubProgress(){this.agent.dirty(),this.getDownstream().dirty()}function stubOnDirty(){this.agent&&this.agent.dirty()}function seriesTaskPlan($){return $.plan?$.plan($.model,$.ecModel,$.api,$.payload):null}function seriesTaskReset($){$.useClearVisual&&$.data.clearAllVisual();var oe=$.resetDefines=normalizeToArray($.reset($.model,$.ecModel,$.api,$.payload));return oe.length>1?map$2(oe,function(ae,ie){return makeSeriesTaskProgress(ie)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress($){return function(oe,ae){var ie=ae.data,le=ae.resetDefines[$];if(le&&le.dataEach)for(var pe=oe.start;pe0&&ze===xe.length-Fe.length){var At=xe.slice(0,ze);At!=="data"&&(ae.mainType=At,ae[Fe.toLowerCase()]=$e,Ie=!0)}}Ce.hasOwnProperty(xe)&&(ie[xe]=$e,Ie=!0),Ie||(le[xe]=$e)})}return{cptQuery:ae,dataQuery:ie,otherQuery:le}},$.prototype.filter=function(oe,ae){var ie=this.eventInfo;if(!ie)return!0;var le=ie.targetEl,pe=ie.packedEvent,_e=ie.model,Ce=ie.view;if(!_e||!Ce)return!0;var $e=ae.cptQuery,xe=ae.dataQuery;return Ie($e,_e,"mainType")&&Ie($e,_e,"subType")&&Ie($e,_e,"index","componentIndex")&&Ie($e,_e,"name")&&Ie($e,_e,"id")&&Ie(xe,pe,"name")&&Ie(xe,pe,"dataIndex")&&Ie(xe,pe,"dataType")&&(!Ce.filterForExposedEvent||Ce.filterForExposedEvent(oe,ae.otherQuery,le,pe));function Ie(Ne,Fe,ze,At){return Ne[ze]==null||Fe[At||ze]===Ne[ze]}},$.prototype.afterTrigger=function(){this.eventInfo=null},$}(),SYMBOL_PROPS_WITH_CB=["symbol","symbolSize","symbolRotate","symbolOffset"],SYMBOL_PROPS=SYMBOL_PROPS_WITH_CB.concat(["symbolKeepAspect"]),seriesSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,oe){var ae=$.getData();if($.legendIcon&&ae.setVisual("legendIcon",$.legendIcon),!$.hasSymbolVisual)return;for(var ie={},le={},pe=!1,_e=0;_e=0&&isSafeNum($e)?$e:.5;var xe=$.createRadialGradient(_e,Ce,0,_e,Ce,$e);return xe}function getCanvasGradient($,oe,ae){for(var ie=oe.type==="radial"?createRadialGradient($,oe,ae):createLinearGradient($,oe,ae),le=oe.colorStops,pe=0;pe0)?null:$==="dashed"?[4*oe,2*oe]:$==="dotted"?[oe]:isNumber($)?[$]:isArray$1($)?$:null}function getLineDash($){var oe=$.style,ae=oe.lineDash&&oe.lineWidth>0&&normalizeLineDash(oe.lineDash,oe.lineWidth),ie=oe.lineDashOffset;if(ae){var le=oe.strokeNoScale&&$.getLineScale?$.getLineScale():1;le&&le!==1&&(ae=map$2(ae,function(pe){return pe/le}),ie/=le)}return[ae,ie]}var pathProxyForDraw=new PathProxy$1(!0);function styleHasStroke($){var oe=$.stroke;return!(oe==null||oe==="none"||!($.lineWidth>0))}function isValidStrokeFillStyle($){return typeof $=="string"&&$!=="none"}function styleHasFill($){var oe=$.fill;return oe!=null&&oe!=="none"}function doFillPath($,oe){if(oe.fillOpacity!=null&&oe.fillOpacity!==1){var ae=$.globalAlpha;$.globalAlpha=oe.fillOpacity*oe.opacity,$.fill(),$.globalAlpha=ae}else $.fill()}function doStrokePath($,oe){if(oe.strokeOpacity!=null&&oe.strokeOpacity!==1){var ae=$.globalAlpha;$.globalAlpha=oe.strokeOpacity*oe.opacity,$.stroke(),$.globalAlpha=ae}else $.stroke()}function createCanvasPattern($,oe,ae){var ie=createOrUpdateImage(oe.image,oe.__image,ae);if(isImageReady(ie)){var le=$.createPattern(ie,oe.repeat||"repeat");if(typeof DOMMatrix=="function"&&le&&le.setTransform){var pe=new DOMMatrix;pe.translateSelf(oe.x||0,oe.y||0),pe.rotateSelf(0,0,(oe.rotation||0)*RADIAN_TO_DEGREE),pe.scaleSelf(oe.scaleX||1,oe.scaleY||1),le.setTransform(pe)}return le}}function brushPath($,oe,ae,ie){var le,pe=styleHasStroke(ae),_e=styleHasFill(ae),Ce=ae.strokePercent,$e=Ce<1,xe=!oe.path;(!oe.silent||$e)&&xe&&oe.createPathProxy();var Ie=oe.path||pathProxyForDraw,Ne=oe.__dirty;if(!ie){var Fe=ae.fill,ze=ae.stroke,At=_e&&!!Fe.colorStops,Lt=pe&&!!ze.colorStops,hn=_e&&!!Fe.image,vn=pe&&!!ze.image,_n=void 0,bn=void 0,Cn=void 0,En=void 0,$n=void 0;(At||Lt)&&($n=oe.getBoundingRect()),At&&(_n=Ne?getCanvasGradient($,Fe,$n):oe.__canvasFillGradient,oe.__canvasFillGradient=_n),Lt&&(bn=Ne?getCanvasGradient($,ze,$n):oe.__canvasStrokeGradient,oe.__canvasStrokeGradient=bn),hn&&(Cn=Ne||!oe.__canvasFillPattern?createCanvasPattern($,Fe,oe):oe.__canvasFillPattern,oe.__canvasFillPattern=Cn),vn&&(En=Ne||!oe.__canvasStrokePattern?createCanvasPattern($,ze,oe):oe.__canvasStrokePattern,oe.__canvasStrokePattern=Cn),At?$.fillStyle=_n:hn&&(Cn?$.fillStyle=Cn:_e=!1),Lt?$.strokeStyle=bn:vn&&(En?$.strokeStyle=En:pe=!1)}var wn=oe.getGlobalScale();Ie.setScale(wn[0],wn[1],oe.segmentIgnoreThreshold);var Tn,xn;$.setLineDash&&ae.lineDash&&(le=getLineDash(oe),Tn=le[0],xn=le[1]);var kn=!0;(xe||Ne&SHAPE_CHANGED_BIT)&&(Ie.setDPR($.dpr),$e?Ie.setContext(null):(Ie.setContext($),kn=!1),Ie.reset(),oe.buildPath(Ie,oe.shape,ie),Ie.toStatic(),oe.pathUpdated()),kn&&Ie.rebuildPath($,$e?Ce:1),Tn&&($.setLineDash(Tn),$.lineDashOffset=xn),ie||(ae.strokeFirst?(pe&&doStrokePath($,ae),_e&&doFillPath($,ae)):(_e&&doFillPath($,ae),pe&&doStrokePath($,ae))),Tn&&$.setLineDash([])}function brushImage($,oe,ae){var ie=oe.__image=createOrUpdateImage(ae.image,oe.__image,oe,oe.onload);if(!(!ie||!isImageReady(ie))){var le=ae.x||0,pe=ae.y||0,_e=oe.getWidth(),Ce=oe.getHeight(),$e=ie.width/ie.height;if(_e==null&&Ce!=null?_e=Ce*$e:Ce==null&&_e!=null?Ce=_e/$e:_e==null&&Ce==null&&(_e=ie.width,Ce=ie.height),ae.sWidth&&ae.sHeight){var xe=ae.sx||0,Ie=ae.sy||0;$.drawImage(ie,xe,Ie,ae.sWidth,ae.sHeight,le,pe,_e,Ce)}else if(ae.sx&&ae.sy){var xe=ae.sx,Ie=ae.sy,Ne=_e-xe,Fe=Ce-Ie;$.drawImage(ie,xe,Ie,Ne,Fe,le,pe,_e,Ce)}else $.drawImage(ie,le,pe,_e,Ce)}}function brushText($,oe,ae){var ie,le=ae.text;if(le!=null&&(le+=""),le){$.font=ae.font||DEFAULT_FONT,$.textAlign=ae.textAlign,$.textBaseline=ae.textBaseline;var pe=void 0,_e=void 0;$.setLineDash&&ae.lineDash&&(ie=getLineDash(oe),pe=ie[0],_e=ie[1]),pe&&($.setLineDash(pe),$.lineDashOffset=_e),ae.strokeFirst?(styleHasStroke(ae)&&$.strokeText(le,ae.x,ae.y),styleHasFill(ae)&&$.fillText(le,ae.x,ae.y)):(styleHasFill(ae)&&$.fillText(le,ae.x,ae.y),styleHasStroke(ae)&&$.strokeText(le,ae.x,ae.y)),pe&&$.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps($,oe,ae,ie,le){var pe=!1;if(!ie&&(ae=ae||{},oe===ae))return!1;if(ie||oe.opacity!==ae.opacity){flushPathDrawn($,le),pe=!0;var _e=Math.max(Math.min(oe.opacity,1),0);$.globalAlpha=isNaN(_e)?DEFAULT_COMMON_STYLE.opacity:_e}(ie||oe.blend!==ae.blend)&&(pe||(flushPathDrawn($,le),pe=!0),$.globalCompositeOperation=oe.blend||DEFAULT_COMMON_STYLE.blend);for(var Ce=0;Ce0&&ae.unfinished);ae.unfinished||this._zr.flush()}}},oe.prototype.getDom=function(){return this._dom},oe.prototype.getId=function(){return this.id},oe.prototype.getZr=function(){return this._zr},oe.prototype.isSSR=function(){return this._ssr},oe.prototype.setOption=function(ae,ie,le){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var pe,_e,Ce;if(isObject$3(ie)&&(le=ie.lazyUpdate,pe=ie.silent,_e=ie.replaceMerge,Ce=ie.transition,ie=ie.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||ie){var $e=new OptionManager$1(this._api),xe=this._theme,Ie=this._model=new GlobalModel$1;Ie.scheduler=this._scheduler,Ie.ssr=this._ssr,Ie.init(null,null,null,xe,this._locale,$e)}this._model.setOption(ae,{replaceMerge:_e},optionPreprocessorFuncs);var Ne={seriesTransition:Ce,optionChanged:!0};if(le)this[PENDING_UPDATE]={silent:pe,updateParams:Ne},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare$1(this),updateMethods.update.call(this,null,Ne)}catch(Fe){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,Fe}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,pe),triggerUpdatedEvent.call(this,pe)}}},oe.prototype.setTheme=function(){},oe.prototype.getModel=function(){return this._model},oe.prototype.getOption=function(){return this._model&&this._model.getOption()},oe.prototype.getWidth=function(){return this._zr.getWidth()},oe.prototype.getHeight=function(){return this._zr.getHeight()},oe.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||env$1.hasGlobalWindow&&window.devicePixelRatio||1},oe.prototype.getRenderedCanvas=function(ae){return this.renderToCanvas(ae)},oe.prototype.renderToCanvas=function(ae){ae=ae||{};var ie=this._zr.painter;return ie.getRenderedCanvas({backgroundColor:ae.backgroundColor||this._model.get("backgroundColor"),pixelRatio:ae.pixelRatio||this.getDevicePixelRatio()})},oe.prototype.renderToSVGString=function(ae){ae=ae||{};var ie=this._zr.painter;return ie.renderToString({useViewBox:ae.useViewBox})},oe.prototype.getSvgDataURL=function(){if(env$1.svgSupported){var ae=this._zr,ie=ae.storage.getDisplayList();return each$c(ie,function(le){le.stopAnimation(null,!0)}),ae.painter.toDataURL()}},oe.prototype.getDataURL=function(ae){if(this._disposed){this.id;return}ae=ae||{};var ie=ae.excludeComponents,le=this._model,pe=[],_e=this;each$c(ie,function($e){le.eachComponent({mainType:$e},function(xe){var Ie=_e._componentsMap[xe.__viewId];Ie.group.ignore||(pe.push(Ie),Ie.group.ignore=!0)})});var Ce=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(ae).toDataURL("image/"+(ae&&ae.type||"png"));return each$c(pe,function($e){$e.group.ignore=!1}),Ce},oe.prototype.getConnectedDataURL=function(ae){if(this._disposed){this.id;return}var ie=ae.type==="svg",le=this.group,pe=Math.min,_e=Math.max,Ce=1/0;if(connectedGroups[le]){var $e=Ce,xe=Ce,Ie=-Ce,Ne=-Ce,Fe=[],ze=ae&&ae.pixelRatio||this.getDevicePixelRatio();each$c(instances,function(bn,Cn){if(bn.group===le){var En=ie?bn.getZr().painter.getSvgDom().innerHTML:bn.renderToCanvas(clone$3(ae)),$n=bn.getDom().getBoundingClientRect();$e=pe($n.left,$e),xe=pe($n.top,xe),Ie=_e($n.right,Ie),Ne=_e($n.bottom,Ne),Fe.push({dom:En,left:$n.left,top:$n.top})}}),$e*=ze,xe*=ze,Ie*=ze,Ne*=ze;var At=Ie-$e,Lt=Ne-xe,hn=platformApi.createCanvas(),vn=init$1(hn,{renderer:ie?"svg":"canvas"});if(vn.resize({width:At,height:Lt}),ie){var _n="";return each$c(Fe,function(bn){var Cn=bn.left-$e,En=bn.top-xe;_n+=''+bn.dom+""}),vn.painter.getSvgRoot().innerHTML=_n,ae.connectedBackgroundColor&&vn.painter.setBackgroundColor(ae.connectedBackgroundColor),vn.refreshImmediately(),vn.painter.toDataURL()}else return ae.connectedBackgroundColor&&vn.add(new Rect$2({shape:{x:0,y:0,width:At,height:Lt},style:{fill:ae.connectedBackgroundColor}})),each$c(Fe,function(bn){var Cn=new ZRImage$1({style:{x:bn.left*ze-$e,y:bn.top*ze-xe,image:bn.dom}});vn.add(Cn)}),vn.refreshImmediately(),hn.toDataURL("image/"+(ae&&ae.type||"png"))}else return this.getDataURL(ae)},oe.prototype.convertToPixel=function(ae,ie){return doConvertPixel(this,"convertToPixel",ae,ie)},oe.prototype.convertFromPixel=function(ae,ie){return doConvertPixel(this,"convertFromPixel",ae,ie)},oe.prototype.containPixel=function(ae,ie){if(this._disposed){this.id;return}var le=this._model,pe,_e=parseFinder$1(le,ae);return each$c(_e,function(Ce,$e){$e.indexOf("Models")>=0&&each$c(Ce,function(xe){var Ie=xe.coordinateSystem;if(Ie&&Ie.containPoint)pe=pe||!!Ie.containPoint(ie);else if($e==="seriesModels"){var Ne=this._chartsMap[xe.__viewId];Ne&&Ne.containPoint&&(pe=pe||Ne.containPoint(ie,xe))}},this)},this),!!pe},oe.prototype.getVisual=function(ae,ie){var le=this._model,pe=parseFinder$1(le,ae,{defaultMainType:"series"}),_e=pe.seriesModel,Ce=_e.getData(),$e=pe.hasOwnProperty("dataIndexInside")?pe.dataIndexInside:pe.hasOwnProperty("dataIndex")?Ce.indexOfRawIndex(pe.dataIndex):null;return $e!=null?getItemVisualFromData(Ce,$e,ie):getVisualFromData(Ce,ie)},oe.prototype.getViewOfComponentModel=function(ae){return this._componentsMap[ae.__viewId]},oe.prototype.getViewOfSeriesModel=function(ae){return this._chartsMap[ae.__viewId]},oe.prototype._initEvents=function(){var ae=this;each$c(MOUSE_EVENT_NAMES,function(ie){var le=function(pe){var _e=ae.getModel(),Ce=pe.target,$e,xe=ie==="globalout";if(xe?$e={}:Ce&&findEventDispatcher(Ce,function(At){var Lt=getECData(At);if(Lt&&Lt.dataIndex!=null){var hn=Lt.dataModel||_e.getSeriesByIndex(Lt.seriesIndex);return $e=hn&&hn.getDataParams(Lt.dataIndex,Lt.dataType)||{},!0}else if(Lt.eventData)return $e=extend({},Lt.eventData),!0},!0),$e){var Ie=$e.componentType,Ne=$e.componentIndex;(Ie==="markLine"||Ie==="markPoint"||Ie==="markArea")&&(Ie="series",Ne=$e.seriesIndex);var Fe=Ie&&Ne!=null&&_e.getComponent(Ie,Ne),ze=Fe&&ae[Fe.mainType==="series"?"_chartsMap":"_componentsMap"][Fe.__viewId];$e.event=pe,$e.type=ie,ae._$eventProcessor.eventInfo={targetEl:Ce,packedEvent:$e,model:Fe,view:ze},ae.trigger(ie,$e)}};le.zrEventfulCallAtLast=!0,ae._zr.on(ie,le,ae)}),each$c(eventActionMap,function(ie,le){ae._messageCenter.on(le,function(pe){this.trigger(le,pe)},ae)}),each$c(["selectchanged"],function(ie){ae._messageCenter.on(ie,function(le){this.trigger(ie,le)},ae)}),handleLegacySelectEvents(this._messageCenter,this,this._api)},oe.prototype.isDisposed=function(){return this._disposed},oe.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},oe.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var ae=this.getDom();ae&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var ie=this,le=ie._api,pe=ie._model;each$c(ie._componentsViews,function(_e){_e.dispose(pe,le)}),each$c(ie._chartsViews,function(_e){_e.dispose(pe,le)}),ie._zr.dispose(),ie._dom=ie._model=ie._chartsMap=ie._componentsMap=ie._chartsViews=ie._componentsViews=ie._scheduler=ie._api=ie._zr=ie._throttledZrFlush=ie._theme=ie._coordSysMgr=ie._messageCenter=null,delete instances[ie.id]},oe.prototype.resize=function(ae){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(ae);var ie=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!ie){var le=ie.resetOption("media"),pe=ae&&ae.silent;this[PENDING_UPDATE]&&(pe==null&&(pe=this[PENDING_UPDATE].silent),le=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{le&&prepare$1(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},ae&&ae.animation)})}catch(_e){throw this[IN_MAIN_PROCESS_KEY]=!1,_e}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,pe),triggerUpdatedEvent.call(this,pe)}}},oe.prototype.showLoading=function(ae,ie){if(this._disposed){this.id;return}if(isObject$3(ae)&&(ie=ae,ae=""),ae=ae||"default",this.hideLoading(),!!loadingEffects[ae]){var le=loadingEffects[ae](this._api,ie),pe=this._zr;this._loadingFX=le,pe.add(le)}},oe.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},oe.prototype.makeActionFromEvent=function(ae){var ie=extend({},ae);return ie.type=eventActionMap[ae.type],ie},oe.prototype.dispatchAction=function(ae,ie){if(this._disposed){this.id;return}if(isObject$3(ie)||(ie={silent:!!ie}),!!actions[ae.type]&&this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(ae);return}var le=ie.silent;doDispatchAction.call(this,ae,le);var pe=ie.flush;pe?this._zr.flush():pe!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,le),triggerUpdatedEvent.call(this,le)}},oe.prototype.updateLabelLayout=function(){lifecycle$1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},oe.prototype.appendData=function(ae){if(this._disposed){this.id;return}var ie=ae.seriesIndex,le=this.getModel(),pe=le.getSeriesByIndex(ie);pe.appendData(ae),this._scheduler.unfinished=!0,this.getZr().wakeUp()},oe.internalField=function(){prepare$1=function(Ne){var Fe=Ne._scheduler;Fe.restorePipelines(Ne._model),Fe.prepareStageTasks(),prepareView(Ne,!0),prepareView(Ne,!1),Fe.plan()},prepareView=function(Ne,Fe){for(var ze=Ne._model,At=Ne._scheduler,Lt=Fe?Ne._componentsViews:Ne._chartsViews,hn=Fe?Ne._componentsMap:Ne._chartsMap,vn=Ne._zr,_n=Ne._api,bn=0;bnFe.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&Fe.eachSeries(function(hn){if(!hn.preventUsingHoverLayer){var vn=Ne._chartsMap[hn.__viewId];vn.__alive&&vn.eachRendered(function(_n){_n.states.emphasis&&(_n.states.emphasis.hoverLayer=!0)})}})}function _e(Ne,Fe){var ze=Ne.get("blendMode")||null;Fe.eachRendered(function(At){At.isGroup||(At.style.blend=ze)})}function Ce(Ne,Fe){if(!Ne.preventAutoZ){var ze=Ne.get("z")||0,At=Ne.get("zlevel")||0;Fe.eachRendered(function(Lt){return $e(Lt,ze,At,-1/0),!0})}}function $e(Ne,Fe,ze,At){var Lt=Ne.getTextContent(),hn=Ne.getTextGuideLine(),vn=Ne.isGroup;if(vn)for(var _n=Ne.childrenRef(),bn=0;bn<_n.length;bn++)At=Math.max($e(_n[bn],Fe,ze,At),At);else Ne.z=Fe,Ne.zlevel=ze,At=Math.max(Ne.z2,At);if(Lt&&(Lt.z=Fe,Lt.zlevel=ze,isFinite(At)&&(Lt.z2=At+2)),hn){var Cn=Ne.textGuideLineConfig;hn.z=Fe,hn.zlevel=ze,isFinite(At)&&(hn.z2=At+(Cn&&Cn.showAbove?1:-1))}return At}function xe(Ne,Fe){Fe.eachRendered(function(ze){if(!isElementRemoved(ze)){var At=ze.getTextContent(),Lt=ze.getTextGuideLine();ze.stateTransition&&(ze.stateTransition=null),At&&At.stateTransition&&(At.stateTransition=null),Lt&&Lt.stateTransition&&(Lt.stateTransition=null),ze.hasState()?(ze.prevStates=ze.currentStates,ze.clearStates()):ze.prevStates&&(ze.prevStates=null)}})}function Ie(Ne,Fe){var ze=Ne.getModel("stateAnimation"),At=Ne.isAnimationEnabled(),Lt=ze.get("duration"),hn=Lt>0?{duration:Lt,delay:ze.get("delay"),easing:ze.get("easing")}:null;Fe.eachRendered(function(vn){if(vn.states&&vn.states.emphasis){if(isElementRemoved(vn))return;if(vn instanceof Path$1&&savePathStates(vn),vn.__dirty){var _n=vn.prevStates;_n&&vn.useStates(_n)}if(At){vn.stateTransition=hn;var bn=vn.getTextContent(),Cn=vn.getTextGuideLine();bn&&(bn.stateTransition=hn),Cn&&(Cn.stateTransition=hn)}vn.__dirty&&le(vn)}})}createExtensionAPI=function(Ne){return new(function(Fe){__extends(ze,Fe);function ze(){return Fe!==null&&Fe.apply(this,arguments)||this}return ze.prototype.getCoordinateSystems=function(){return Ne._coordSysMgr.getCoordinateSystems()},ze.prototype.getComponentByElement=function(At){for(;At;){var Lt=At.__ecComponentInfo;if(Lt!=null)return Ne._model.getComponent(Lt.mainType,Lt.index);At=At.parent}},ze.prototype.enterEmphasis=function(At,Lt){enterEmphasis(At,Lt),markStatusToUpdate(Ne)},ze.prototype.leaveEmphasis=function(At,Lt){leaveEmphasis(At,Lt),markStatusToUpdate(Ne)},ze.prototype.enterBlur=function(At){enterBlur(At),markStatusToUpdate(Ne)},ze.prototype.leaveBlur=function(At){leaveBlur(At),markStatusToUpdate(Ne)},ze.prototype.enterSelect=function(At){enterSelect(At),markStatusToUpdate(Ne)},ze.prototype.leaveSelect=function(At){leaveSelect(At),markStatusToUpdate(Ne)},ze.prototype.getModel=function(){return Ne.getModel()},ze.prototype.getViewOfComponentModel=function(At){return Ne.getViewOfComponentModel(At)},ze.prototype.getViewOfSeriesModel=function(At){return Ne.getViewOfSeriesModel(At)},ze}(ExtensionAPI$1))(Ne)},enableConnect=function(Ne){function Fe(ze,At){for(var Lt=0;Lt=0)){registeredTasks.push(ae);var pe=Scheduler$1.wrapStageHandler(ae,le);pe.__prio=oe,pe.__raw=ae,$.push(pe)}}function registerLoading($,oe){loadingEffects[$]=oe}function setCanvasCreator($){setPlatformAPI({createCanvas:$})}function registerMap($,oe,ae){var ie=getImpl("registerMap");ie&&ie($,oe,ae)}function getMap($){var oe=getImpl("getMap");return oe&&oe($)}var registerTransform=registerExternalTransform;registerVisual(PRIORITY_VISUAL_GLOBAL,seriesStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataColorPaletteTask);registerVisual(PRIORITY_VISUAL_GLOBAL,seriesSymbolTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataSymbolTask);registerVisual(PRIORITY_VISUAL_DECAL,decalVisual);registerPreprocessor(globalBackwardCompat);registerProcessor(PRIORITY_PROCESSOR_DATASTACK,dataStack$1);registerLoading("default",defaultLoading);registerAction({type:HIGHLIGHT_ACTION_TYPE,event:HIGHLIGHT_ACTION_TYPE,update:HIGHLIGHT_ACTION_TYPE},noop);registerAction({type:DOWNPLAY_ACTION_TYPE,event:DOWNPLAY_ACTION_TYPE,update:DOWNPLAY_ACTION_TYPE},noop);registerAction({type:SELECT_ACTION_TYPE,event:SELECT_ACTION_TYPE,update:SELECT_ACTION_TYPE},noop);registerAction({type:UNSELECT_ACTION_TYPE,event:UNSELECT_ACTION_TYPE,update:UNSELECT_ACTION_TYPE},noop);registerAction({type:TOGGLE_SELECT_ACTION_TYPE,event:TOGGLE_SELECT_ACTION_TYPE,update:TOGGLE_SELECT_ACTION_TYPE},noop);registerTheme("light",lightTheme);registerTheme("dark",darkTheme);var dataTool={};function dataIndexMapValueLength($){return $==null?0:$.length||1}function defaultKeyGetter($){return $}var DataDiffer=function(){function $(oe,ae,ie,le,pe,_e){this._old=oe,this._new=ae,this._oldKeyGetter=ie||defaultKeyGetter,this._newKeyGetter=le||defaultKeyGetter,this.context=pe,this._diffModeMultiple=_e==="multiple"}return $.prototype.add=function(oe){return this._add=oe,this},$.prototype.update=function(oe){return this._update=oe,this},$.prototype.updateManyToOne=function(oe){return this._updateManyToOne=oe,this},$.prototype.updateOneToMany=function(oe){return this._updateOneToMany=oe,this},$.prototype.updateManyToMany=function(oe){return this._updateManyToMany=oe,this},$.prototype.remove=function(oe){return this._remove=oe,this},$.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},$.prototype._executeOneToOne=function(){var oe=this._old,ae=this._new,ie={},le=new Array(oe.length),pe=new Array(ae.length);this._initIndexMap(oe,null,le,"_oldKeyGetter"),this._initIndexMap(ae,ie,pe,"_newKeyGetter");for(var _e=0;_e1){var Ie=$e.shift();$e.length===1&&(ie[Ce]=$e[0]),this._update&&this._update(Ie,_e)}else xe===1?(ie[Ce]=null,this._update&&this._update($e,_e)):this._remove&&this._remove(_e)}this._performRestAdd(pe,ie)},$.prototype._executeMultiple=function(){var oe=this._old,ae=this._new,ie={},le={},pe=[],_e=[];this._initIndexMap(oe,ie,pe,"_oldKeyGetter"),this._initIndexMap(ae,le,_e,"_newKeyGetter");for(var Ce=0;Ce1&&Fe===1)this._updateManyToOne&&this._updateManyToOne(Ie,xe),le[$e]=null;else if(Ne===1&&Fe>1)this._updateOneToMany&&this._updateOneToMany(Ie,xe),le[$e]=null;else if(Ne===1&&Fe===1)this._update&&this._update(Ie,xe),le[$e]=null;else if(Ne>1&&Fe>1)this._updateManyToMany&&this._updateManyToMany(Ie,xe),le[$e]=null;else if(Ne>1)for(var ze=0;ze1)for(var Ce=0;Ce<_e;Ce++)this._add&&this._add(pe[Ce]);else _e===1&&this._add&&this._add(pe);ae[le]=null}},$.prototype._initIndexMap=function(oe,ae,ie,le){for(var pe=this._diffModeMultiple,_e=0;_e30}var isObject$1=isObject$3,map$1=map$2,CtorInt32Array=typeof Int32Array>"u"?Array:Int32Array,ID_PREFIX="e\0\0",INDEX_NOT_FOUND=-1,TRANSFERABLE_PROPERTIES=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CLONE_PROPERTIES=["_approximateExtent"],prepareInvertedIndex,getId,getIdNameFromStore,normalizeDimensions,transferProperties,cloneListForMapAndSample,makeIdFromName,SeriesData=function(){function $(oe,ae){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var ie,le=!1;isSeriesDataSchema(oe)?(ie=oe.dimensions,this._dimOmitted=oe.isDimensionOmitted(),this._schema=oe):(le=!0,ie=oe),ie=ie||["x","y"];for(var pe={},_e=[],Ce={},$e=!1,xe={},Ie=0;Ie=ae)){var ie=this._store,le=ie.getProvider();this._updateOrdinalMeta();var pe=this._nameList,_e=this._idList,Ce=le.getSource().sourceFormat,$e=Ce===SOURCE_FORMAT_ORIGINAL;if($e&&!le.pure)for(var xe=[],Ie=oe;Ie0},$.prototype.ensureUniqueItemVisual=function(oe,ae){var ie=this._itemVisuals,le=ie[oe];le||(le=ie[oe]={});var pe=le[ae];return pe==null&&(pe=this.getVisual(ae),isArray$1(pe)?pe=pe.slice():isObject$1(pe)&&(pe=extend({},pe)),le[ae]=pe),pe},$.prototype.setItemVisual=function(oe,ae,ie){var le=this._itemVisuals[oe]||{};this._itemVisuals[oe]=le,isObject$1(ae)?extend(le,ae):le[ae]=ie},$.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},$.prototype.setLayout=function(oe,ae){isObject$1(oe)?extend(this._layout,oe):this._layout[oe]=ae},$.prototype.getLayout=function(oe){return this._layout[oe]},$.prototype.getItemLayout=function(oe){return this._itemLayouts[oe]},$.prototype.setItemLayout=function(oe,ae,ie){this._itemLayouts[oe]=ie?extend(this._itemLayouts[oe]||{},ae):ae},$.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},$.prototype.setItemGraphicEl=function(oe,ae){var ie=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(ie,this.dataType,oe,ae),this._graphicEls[oe]=ae},$.prototype.getItemGraphicEl=function(oe){return this._graphicEls[oe]},$.prototype.eachItemGraphicEl=function(oe,ae){each$c(this._graphicEls,function(ie,le){ie&&oe&&oe.call(ae,ie,le)})},$.prototype.cloneShallow=function(oe){return oe||(oe=new $(this._schema?this._schema:map$1(this.dimensions,this._getDimInfo,this),this.hostModel)),transferProperties(oe,this),oe._store=this._store,oe},$.prototype.wrapMethod=function(oe,ae){var ie=this[oe];isFunction(ie)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(oe),this[oe]=function(){var le=ie.apply(this,arguments);return ae.apply(this,[le].concat(slice(arguments)))})},$.internalField=function(){prepareInvertedIndex=function(oe){var ae=oe._invertedIndicesMap;each$c(ae,function(ie,le){var pe=oe._dimInfos[le],_e=pe.ordinalMeta,Ce=oe._store;if(_e){ie=ae[le]=new CtorInt32Array(_e.categories.length);for(var $e=0;$e1&&($e+="__ec__"+Ie),le[ae]=$e}}}(),$}();const SeriesData$1=SeriesData;function createDimensions($,oe){return prepareSeriesDataSchema($,oe).dimensions}function prepareSeriesDataSchema($,oe){isSourceInstance($)||($=createSourceFromSeriesDataOption($)),oe=oe||{};var ae=oe.coordDimensions||[],ie=oe.dimensionsDefine||$.dimensionsDefine||[],le=createHashMap(),pe=[],_e=getDimCount($,ae,ie,oe.dimensionsCount),Ce=oe.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(_e),$e=ie===$.dimensionsDefine,xe=$e?ensureSourceDimNameMap($):createDimNameMap(ie),Ie=oe.encodeDefine;!Ie&&oe.encodeDefaulter&&(Ie=oe.encodeDefaulter($,_e));for(var Ne=createHashMap(Ie),Fe=new CtorInt32Array$1(_e),ze=0;ze0&&(ie.name=le+(pe-1)),pe++,oe.set(le,pe)}}function getDimCount($,oe,ae,ie){var le=Math.max($.dimensionsDetectedCount||1,oe.length,ae.length,ie||0);return each$c(oe,function(pe){var _e;isObject$3(pe)&&(_e=pe.dimsDef)&&(le=Math.max(le,_e.length))}),le}function genCoordDimName($,oe,ae){if(ae||oe.hasKey($)){for(var ie=0;oe.hasKey($+ie);)ie++;$+=ie}return oe.set($,!0),$}var CoordSysInfo=function(){function $(oe){this.coordSysDims=[],this.axisMap=createHashMap(),this.categoryAxisMap=createHashMap(),this.coordSysName=oe}return $}();function getCoordSysInfoBySeries($){var oe=$.get("coordinateSystem"),ae=new CoordSysInfo(oe),ie=fetchers[oe];if(ie)return ie($,ae,ae.axisMap,ae.categoryAxisMap),ae}var fetchers={cartesian2d:function($,oe,ae,ie){var le=$.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],pe=$.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];oe.coordSysDims=["x","y"],ae.set("x",le),ae.set("y",pe),isCategory(le)&&(ie.set("x",le),oe.firstCategoryDimIndex=0),isCategory(pe)&&(ie.set("y",pe),oe.firstCategoryDimIndex==null&&(oe.firstCategoryDimIndex=1))},singleAxis:function($,oe,ae,ie){var le=$.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];oe.coordSysDims=["single"],ae.set("single",le),isCategory(le)&&(ie.set("single",le),oe.firstCategoryDimIndex=0)},polar:function($,oe,ae,ie){var le=$.getReferringComponents("polar",SINGLE_REFERRING).models[0],pe=le.findAxisModel("radiusAxis"),_e=le.findAxisModel("angleAxis");oe.coordSysDims=["radius","angle"],ae.set("radius",pe),ae.set("angle",_e),isCategory(pe)&&(ie.set("radius",pe),oe.firstCategoryDimIndex=0),isCategory(_e)&&(ie.set("angle",_e),oe.firstCategoryDimIndex==null&&(oe.firstCategoryDimIndex=1))},geo:function($,oe,ae,ie){oe.coordSysDims=["lng","lat"]},parallel:function($,oe,ae,ie){var le=$.ecModel,pe=le.getComponent("parallel",$.get("parallelIndex")),_e=oe.coordSysDims=pe.dimensions.slice();each$c(pe.parallelAxisIndex,function(Ce,$e){var xe=le.getComponent("parallelAxis",Ce),Ie=_e[$e];ae.set(Ie,xe),isCategory(xe)&&(ie.set(Ie,xe),oe.firstCategoryDimIndex==null&&(oe.firstCategoryDimIndex=$e))})}};function isCategory($){return $.get("type")==="category"}function enableDataStack($,oe,ae){ae=ae||{};var ie=ae.byIndex,le=ae.stackedCoordDimension,pe,_e,Ce;isLegacyDimensionsInput(oe)?pe=oe:(_e=oe.schema,pe=_e.dimensions,Ce=oe.store);var $e=!!($&&$.get("stack")),xe,Ie,Ne,Fe;if(each$c(pe,function(_n,bn){isString(_n)&&(pe[bn]=_n={name:_n}),$e&&!_n.isExtraCoord&&(!ie&&!xe&&_n.ordinalMeta&&(xe=_n),!Ie&&_n.type!=="ordinal"&&_n.type!=="time"&&(!le||le===_n.coordDim)&&(Ie=_n))}),Ie&&!ie&&!xe&&(ie=!0),Ie){Ne="__\0ecstackresult_"+$.id,Fe="__\0ecstackedover_"+$.id,xe&&(xe.createInvertedIndices=!0);var ze=Ie.coordDim,At=Ie.type,Lt=0;each$c(pe,function(_n){_n.coordDim===ze&&Lt++});var hn={name:Ne,coordDim:ze,coordDimIndex:Lt,type:At,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:pe.length},vn={name:Fe,coordDim:Fe,coordDimIndex:Lt+1,type:At,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:pe.length+1};_e?(Ce&&(hn.storeDimIndex=Ce.ensureCalculationDimension(Fe,At),vn.storeDimIndex=Ce.ensureCalculationDimension(Ne,At)),_e.appendCalculationDimension(hn),_e.appendCalculationDimension(vn)):(pe.push(hn),pe.push(vn))}return{stackedDimension:Ie&&Ie.name,stackedByDimension:xe&&xe.name,isStackedByIndex:ie,stackedOverDimension:Fe,stackResultDimension:Ne}}function isLegacyDimensionsInput($){return!isSeriesDataSchema($.schema)}function isDimensionStacked($,oe){return!!oe&&oe===$.getCalculationInfo("stackedDimension")}function getStackedDimension($,oe){return isDimensionStacked($,oe)?$.getCalculationInfo("stackResultDimension"):oe}function getCoordSysDimDefs($,oe){var ae=$.get("coordinateSystem"),ie=CoordinateSystem.get(ae),le;return oe&&oe.coordSysDims&&(le=map$2(oe.coordSysDims,function(pe){var _e={name:pe},Ce=oe.axisMap.get(pe);if(Ce){var $e=Ce.get("type");_e.type=getDimensionTypeByAxis($e)}return _e})),le||(le=ie&&(ie.getDimensionsInfo?ie.getDimensionsInfo():ie.dimensions.slice())||["x","y"]),le}function injectOrdinalMeta($,oe,ae){var ie,le;return ae&&each$c($,function(pe,_e){var Ce=pe.coordDim,$e=ae.categoryAxisMap.get(Ce);$e&&(ie==null&&(ie=_e),pe.ordinalMeta=$e.getOrdinalMeta(),oe&&(pe.createInvertedIndices=!0)),pe.otherDims.itemName!=null&&(le=!0)}),!le&&ie!=null&&($[ie].otherDims.itemName=0),ie}function createSeriesData($,oe,ae){ae=ae||{};var ie=oe.getSourceManager(),le,pe=!1;$?(pe=!0,le=createSourceFromSeriesDataOption($)):(le=ie.getSource(),pe=le.sourceFormat===SOURCE_FORMAT_ORIGINAL);var _e=getCoordSysInfoBySeries(oe),Ce=getCoordSysDimDefs(oe,_e),$e=ae.useEncodeDefaulter,xe=isFunction($e)?$e:$e?curry$1(makeSeriesEncodeForAxisCoordSys,Ce,oe):null,Ie={coordDimensions:Ce,generateCoord:ae.generateCoord,encodeDefine:oe.getEncode(),encodeDefaulter:xe,canOmitUnusedDimensions:!pe},Ne=prepareSeriesDataSchema(le,Ie),Fe=injectOrdinalMeta(Ne.dimensions,ae.createInvertedIndices,_e),ze=pe?null:ie.getSharedDataStore(Ne),At=enableDataStack(oe,{schema:Ne,store:ze}),Lt=new SeriesData$1(Ne,oe);Lt.setCalculationInfo(At);var hn=Fe!=null&&isNeedCompleteOrdinalData(le)?function(vn,_n,bn,Cn){return Cn===Fe?bn:this.defaultDimValueGetter(vn,_n,bn,Cn)}:null;return Lt.hasItemOption=!1,Lt.initData(pe?le:ze,null,hn),Lt}function isNeedCompleteOrdinalData($){if($.sourceFormat===SOURCE_FORMAT_ORIGINAL){var oe=firstDataNotNull($.data||[]);return!isArray$1(getDataItemValue(oe))}}function firstDataNotNull($){for(var oe=0;oe<$.length&&$[oe]==null;)oe++;return $[oe]}var Scale=function(){function $(oe){this._setting=oe||{},this._extent=[1/0,-1/0]}return $.prototype.getSetting=function(oe){return this._setting[oe]},$.prototype.unionExtent=function(oe){var ae=this._extent;oe[0]ae[1]&&(ae[1]=oe[1])},$.prototype.unionExtentFromData=function(oe,ae){this.unionExtent(oe.getApproximateExtent(ae))},$.prototype.getExtent=function(){return this._extent.slice()},$.prototype.setExtent=function(oe,ae){var ie=this._extent;isNaN(oe)||(ie[0]=oe),isNaN(ae)||(ie[1]=ae)},$.prototype.isInExtentRange=function(oe){return this._extent[0]<=oe&&this._extent[1]>=oe},$.prototype.isBlank=function(){return this._isBlank},$.prototype.setBlank=function(oe){this._isBlank=oe},$}();enableClassManagement(Scale);const Scale$1=Scale;var uidBase=0,OrdinalMeta=function(){function $(oe){this.categories=oe.categories||[],this._needCollect=oe.needCollect,this._deduplication=oe.deduplication,this.uid=++uidBase}return $.createByAxisModel=function(oe){var ae=oe.option,ie=ae.data,le=ie&&map$2(ie,getName);return new $({categories:le,needCollect:!le,deduplication:ae.dedplication!==!1})},$.prototype.getOrdinal=function(oe){return this._getOrCreateMap().get(oe)},$.prototype.parseAndCollect=function(oe){var ae,ie=this._needCollect;if(!isString(oe)&&!ie)return oe;if(ie&&!this._deduplication)return ae=this.categories.length,this.categories[ae]=oe,ae;var le=this._getOrCreateMap();return ae=le.get(oe),ae==null&&(ie?(ae=this.categories.length,this.categories[ae]=oe,le.set(oe,ae)):ae=NaN),ae},$.prototype._getOrCreateMap=function(){return this._map||(this._map=createHashMap(this.categories))},$}();function getName($){return isObject$3($)&&$.value!=null?$.value:$+""}const OrdinalMeta$1=OrdinalMeta;function isIntervalOrLogScale($){return $.type==="interval"||$.type==="log"}function intervalScaleNiceTicks($,oe,ae,ie){var le={},pe=$[1]-$[0],_e=le.interval=nice(pe/oe,!0);ae!=null&&_eie&&(_e=le.interval=ie);var Ce=le.intervalPrecision=getIntervalPrecision(_e),$e=le.niceTickExtent=[round$1(Math.ceil($[0]/_e)*_e,Ce),round$1(Math.floor($[1]/_e)*_e,Ce)];return fixExtent($e,$),le}function increaseInterval($){var oe=Math.pow(10,quantityExponent($)),ae=$/oe;return ae?ae===2?ae=3:ae===3?ae=5:ae*=2:ae=1,round$1(ae*oe)}function getIntervalPrecision($){return getPrecision($)+2}function clamp($,oe,ae){$[oe]=Math.max(Math.min($[oe],ae[1]),ae[0])}function fixExtent($,oe){!isFinite($[0])&&($[0]=oe[0]),!isFinite($[1])&&($[1]=oe[1]),clamp($,0,oe),clamp($,1,oe),$[0]>$[1]&&($[0]=$[1])}function contain$1($,oe){return $>=oe[0]&&$<=oe[1]}function normalize($,oe){return oe[1]===oe[0]?.5:($-oe[0])/(oe[1]-oe[0])}function scale($,oe){return $*(oe[1]-oe[0])+oe[0]}var OrdinalScale=function($){__extends(oe,$);function oe(ae){var ie=$.call(this,ae)||this;ie.type="ordinal";var le=ie.getSetting("ordinalMeta");return le||(le=new OrdinalMeta$1({})),isArray$1(le)&&(le=new OrdinalMeta$1({categories:map$2(le,function(pe){return isObject$3(pe)?pe.value:pe})})),ie._ordinalMeta=le,ie._extent=ie.getSetting("extent")||[0,le.categories.length-1],ie}return oe.prototype.parse=function(ae){return ae==null?NaN:isString(ae)?this._ordinalMeta.getOrdinal(ae):Math.round(ae)},oe.prototype.contain=function(ae){return ae=this.parse(ae),contain$1(ae,this._extent)&&this._ordinalMeta.categories[ae]!=null},oe.prototype.normalize=function(ae){return ae=this._getTickNumber(this.parse(ae)),normalize(ae,this._extent)},oe.prototype.scale=function(ae){return ae=Math.round(scale(ae,this._extent)),this.getRawOrdinalNumber(ae)},oe.prototype.getTicks=function(){for(var ae=[],ie=this._extent,le=ie[0];le<=ie[1];)ae.push({value:le}),le++;return ae},oe.prototype.getMinorTicks=function(ae){},oe.prototype.setSortInfo=function(ae){if(ae==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var ie=ae.ordinalNumbers,le=this._ordinalNumbersByTick=[],pe=this._ticksByOrdinalNumber=[],_e=0,Ce=this._ordinalMeta.categories.length,$e=Math.min(Ce,ie.length);_e<$e;++_e){var xe=ie[_e];le[_e]=xe,pe[xe]=_e}for(var Ie=0;_e=0&&ae=0&&ae=ae},oe.prototype.getOrdinalMeta=function(){return this._ordinalMeta},oe.prototype.calcNiceTicks=function(){},oe.prototype.calcNiceExtent=function(){},oe.type="ordinal",oe}(Scale$1);Scale$1.registerClass(OrdinalScale);const OrdinalScale$1=OrdinalScale;var roundNumber=round$1,IntervalScale=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type="interval",ae._interval=0,ae._intervalPrecision=2,ae}return oe.prototype.parse=function(ae){return ae},oe.prototype.contain=function(ae){return contain$1(ae,this._extent)},oe.prototype.normalize=function(ae){return normalize(ae,this._extent)},oe.prototype.scale=function(ae){return scale(ae,this._extent)},oe.prototype.setExtent=function(ae,ie){var le=this._extent;isNaN(ae)||(le[0]=parseFloat(ae)),isNaN(ie)||(le[1]=parseFloat(ie))},oe.prototype.unionExtent=function(ae){var ie=this._extent;ae[0]ie[1]&&(ie[1]=ae[1]),this.setExtent(ie[0],ie[1])},oe.prototype.getInterval=function(){return this._interval},oe.prototype.setInterval=function(ae){this._interval=ae,this._niceExtent=this._extent.slice(),this._intervalPrecision=getIntervalPrecision(ae)},oe.prototype.getTicks=function(ae){var ie=this._interval,le=this._extent,pe=this._niceExtent,_e=this._intervalPrecision,Ce=[];if(!ie)return Ce;var $e=1e4;le[0]$e)return[];var Ie=Ce.length?Ce[Ce.length-1].value:pe[1];return le[1]>Ie&&(ae?Ce.push({value:roundNumber(Ie+ie,_e)}):Ce.push({value:le[1]})),Ce},oe.prototype.getMinorTicks=function(ae){for(var ie=this.getTicks(!0),le=[],pe=this.getExtent(),_e=1;_epe[0]&&ze0&&(pe=pe===null?Ce:Math.min(pe,Ce))}ae[ie]=pe}}return ae}function makeColumnLayout($){var oe=getValueAxesMinGaps($),ae=[];return each$c($,function(ie){var le=ie.coordinateSystem,pe=le.getBaseAxis(),_e=pe.getExtent(),Ce;if(pe.type==="category")Ce=pe.getBandWidth();else if(pe.type==="value"||pe.type==="time"){var $e=pe.dim+"_"+pe.index,xe=oe[$e],Ie=Math.abs(_e[1]-_e[0]),Ne=pe.scale.getExtent(),Fe=Math.abs(Ne[1]-Ne[0]);Ce=xe?Ie/Fe*xe:Ie}else{var ze=ie.getData();Ce=Math.abs(_e[1]-_e[0])/ze.count()}var At=parsePercent(ie.get("barWidth"),Ce),Lt=parsePercent(ie.get("barMaxWidth"),Ce),hn=parsePercent(ie.get("barMinWidth")||(isInLargeMode(ie)?.5:1),Ce),vn=ie.get("barGap"),_n=ie.get("barCategoryGap");ae.push({bandWidth:Ce,barWidth:At,barMaxWidth:Lt,barMinWidth:hn,barGap:vn,barCategoryGap:_n,axisKey:getAxisKey(pe),stackId:getSeriesStackId(ie)})}),doCalBarWidthAndOffset(ae)}function doCalBarWidthAndOffset($){var oe={};each$c($,function(ie,le){var pe=ie.axisKey,_e=ie.bandWidth,Ce=oe[pe]||{bandWidth:_e,remainedWidth:_e,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},$e=Ce.stacks;oe[pe]=Ce;var xe=ie.stackId;$e[xe]||Ce.autoWidthCount++,$e[xe]=$e[xe]||{width:0,maxWidth:0};var Ie=ie.barWidth;Ie&&!$e[xe].width&&($e[xe].width=Ie,Ie=Math.min(Ce.remainedWidth,Ie),Ce.remainedWidth-=Ie);var Ne=ie.barMaxWidth;Ne&&($e[xe].maxWidth=Ne);var Fe=ie.barMinWidth;Fe&&($e[xe].minWidth=Fe);var ze=ie.barGap;ze!=null&&(Ce.gap=ze);var At=ie.barCategoryGap;At!=null&&(Ce.categoryGap=At)});var ae={};return each$c(oe,function(ie,le){ae[le]={};var pe=ie.stacks,_e=ie.bandWidth,Ce=ie.categoryGap;if(Ce==null){var $e=keys(pe).length;Ce=Math.max(35-$e*4,15)+"%"}var xe=parsePercent(Ce,_e),Ie=parsePercent(ie.gap,1),Ne=ie.remainedWidth,Fe=ie.autoWidthCount,ze=(Ne-xe)/(Fe+(Fe-1)*Ie);ze=Math.max(ze,0),each$c(pe,function(vn){var _n=vn.maxWidth,bn=vn.minWidth;if(vn.width){var Cn=vn.width;_n&&(Cn=Math.min(Cn,_n)),bn&&(Cn=Math.max(Cn,bn)),vn.width=Cn,Ne-=Cn+Ie*Cn,Fe--}else{var Cn=ze;_n&&_nCn&&(Cn=bn),Cn!==ze&&(vn.width=Cn,Ne-=Cn+Ie*Cn,Fe--)}}),ze=(Ne-xe)/(Fe+(Fe-1)*Ie),ze=Math.max(ze,0);var At=0,Lt;each$c(pe,function(vn,_n){vn.width||(vn.width=ze),Lt=vn,At+=vn.width*(1+Ie)}),Lt&&(At-=Lt.width*Ie);var hn=-At/2;each$c(pe,function(vn,_n){ae[le][_n]=ae[le][_n]||{bandWidth:_e,offset:hn,width:vn.width},hn+=vn.width*(1+Ie)})}),ae}function retrieveColumnLayout($,oe,ae){if($&&oe){var ie=$[getAxisKey(oe)];return ie!=null&&ae!=null?ie[getSeriesStackId(ae)]:ie}}function layout$2($,oe){var ae=prepareLayoutBarSeries($,oe),ie=makeColumnLayout(ae);each$c(ae,function(le){var pe=le.getData(),_e=le.coordinateSystem,Ce=_e.getBaseAxis(),$e=getSeriesStackId(le),xe=ie[getAxisKey(Ce)][$e],Ie=xe.offset,Ne=xe.width;pe.setLayout({bandWidth:xe.bandWidth,offset:Ie,size:Ne})})}function createProgressiveLayout($){return{seriesType:$,plan:createRenderPlanner(),reset:function(oe){if(isOnCartesian(oe)){var ae=oe.getData(),ie=oe.coordinateSystem,le=ie.getBaseAxis(),pe=ie.getOtherAxis(le),_e=ae.getDimensionIndex(ae.mapDimension(pe.dim)),Ce=ae.getDimensionIndex(ae.mapDimension(le.dim)),$e=oe.get("showBackground",!0),xe=ae.mapDimension(pe.dim),Ie=ae.getCalculationInfo("stackResultDimension"),Ne=isDimensionStacked(ae,xe)&&!!ae.getCalculationInfo("stackedOnSeries"),Fe=pe.isHorizontal(),ze=getValueAxisStart(le,pe),At=isInLargeMode(oe),Lt=oe.get("barMinHeight")||0,hn=Ie&&ae.getDimensionIndex(Ie),vn=ae.getLayout("size"),_n=ae.getLayout("offset");return{progress:function(bn,Cn){for(var En=bn.count,$n=At&&createFloat32Array(En*3),wn=At&&$e&&createFloat32Array(En*3),Tn=At&&createFloat32Array(En),xn=ie.master.getRect(),kn=Fe?xn.width:xn.height,An,On=Cn.getStore(),Nn=0;(An=bn.next())!=null;){var Rn=On.get(Ne?hn:_e,An),zn=On.get(Ce,An),Bn=ze,Mn=void 0;Ne&&(Mn=+Rn-On.get(_e,An));var Fn=void 0,Vn=void 0,jn=void 0,Zn=void 0;if(Fe){var Gn=ie.dataToPoint([Rn,zn]);if(Ne){var Xn=ie.dataToPoint([Mn,zn]);Bn=Xn[0]}Fn=Bn,Vn=Gn[1]+_n,jn=Gn[0]-Bn,Zn=vn,Math.abs(jn)>>1;$[le][1]le&&(this._approxInterval=le);var Ce=scaleIntervals.length,$e=Math.min(bisect(scaleIntervals,this._approxInterval,0,Ce),Ce-1);this._interval=scaleIntervals[$e][1],this._minLevelUnit=scaleIntervals[Math.max($e-1,0)][0]},oe.prototype.parse=function(ae){return isNumber(ae)?ae:+parseDate(ae)},oe.prototype.contain=function(ae){return contain$1(this.parse(ae),this._extent)},oe.prototype.normalize=function(ae){return normalize(this.parse(ae),this._extent)},oe.prototype.scale=function(ae){return scale(ae,this._extent)},oe.type="time",oe}(IntervalScale$1),scaleIntervals=[["second",ONE_SECOND],["minute",ONE_MINUTE],["hour",ONE_HOUR],["quarter-day",ONE_HOUR*6],["half-day",ONE_HOUR*12],["day",ONE_DAY*1.2],["half-week",ONE_DAY*3.5],["week",ONE_DAY*7],["month",ONE_DAY*31],["quarter",ONE_DAY*95],["half-year",ONE_YEAR/2],["year",ONE_YEAR]];function isUnitValueSame($,oe,ae,ie){var le=parseDate(oe),pe=parseDate(ae),_e=function(At){return getUnitValue(le,At,ie)===getUnitValue(pe,At,ie)},Ce=function(){return _e("year")},$e=function(){return Ce()&&_e("month")},xe=function(){return $e()&&_e("day")},Ie=function(){return xe()&&_e("hour")},Ne=function(){return Ie()&&_e("minute")},Fe=function(){return Ne()&&_e("second")},ze=function(){return Fe()&&_e("millisecond")};switch($){case"year":return Ce();case"month":return $e();case"day":return xe();case"hour":return Ie();case"minute":return Ne();case"second":return Fe();case"millisecond":return ze()}}function getDateInterval($,oe){return $/=ONE_DAY,$>16?16:$>7.5?7:$>3.5?4:$>1.5?2:1}function getMonthInterval($){var oe=30*ONE_DAY;return $/=oe,$>6?6:$>3?3:$>2?2:1}function getHourInterval($){return $/=ONE_HOUR,$>12?12:$>6?6:$>3.5?4:$>2?2:1}function getMinutesAndSecondsInterval($,oe){return $/=oe?ONE_MINUTE:ONE_SECOND,$>30?30:$>20?20:$>15?15:$>10?10:$>5?5:$>2?2:1}function getMillisecondsInterval($){return nice($,!0)}function getFirstTimestampOfUnit($,oe,ae){var ie=new Date($);switch(getPrimaryTimeUnit(oe)){case"year":case"month":ie[monthSetterName(ae)](0);case"day":ie[dateSetterName(ae)](1);case"hour":ie[hoursSetterName(ae)](0);case"minute":ie[minutesSetterName(ae)](0);case"second":ie[secondsSetterName(ae)](0),ie[millisecondsSetterName(ae)](0)}return ie.getTime()}function getIntervalTicks($,oe,ae,ie){var le=1e4,pe=timeUnits,_e=0;function Ce(kn,An,On,Nn,Rn,zn,Bn){for(var Mn=new Date(An),Fn=An,Vn=Mn[Nn]();Fn1&&zn===0&&On.unshift({value:On[0].value-Fn})}}for(var zn=0;zn=ie[0]&&_n<=ie[1]&&Ne++)}var bn=(ie[1]-ie[0])/oe;if(Ne>bn*1.5&&Fe>bn/1.5||(xe.push(hn),Ne>bn||$===pe[ze]))break}Ie=[]}}}for(var Cn=filter(map$2(xe,function(kn){return filter(kn,function(An){return An.value>=ie[0]&&An.value<=ie[1]&&!An.notAdd})}),function(kn){return kn.length>0}),En=[],$n=Cn.length-1,ze=0;ze0;)pe*=10;var Ce=[round$1(mathCeil(ie[0]/pe)*pe),round$1(mathFloor(ie[1]/pe)*pe)];this._interval=pe,this._niceExtent=Ce}},oe.prototype.calcNiceExtent=function(ae){intervalScaleProto.calcNiceExtent.call(this,ae),this._fixMin=ae.fixMin,this._fixMax=ae.fixMax},oe.prototype.parse=function(ae){return ae},oe.prototype.contain=function(ae){return ae=mathLog$1(ae)/mathLog$1(this.base),contain$1(ae,this._extent)},oe.prototype.normalize=function(ae){return ae=mathLog$1(ae)/mathLog$1(this.base),normalize(ae,this._extent)},oe.prototype.scale=function(ae){return ae=scale(ae,this._extent),mathPow$1(this.base,ae)},oe.type="log",oe}(Scale$1),proto=LogScale.prototype;proto.getMinorTicks=intervalScaleProto.getMinorTicks;proto.getLabel=intervalScaleProto.getLabel;function fixRoundingError($,oe){return roundingErrorFix($,getPrecision(oe))}Scale$1.registerClass(LogScale);const LogScale$1=LogScale;var ScaleRawExtentInfo=function(){function $(oe,ae,ie){this._prepareParams(oe,ae,ie)}return $.prototype._prepareParams=function(oe,ae,ie){ie[1]0&&$e>0&&!xe&&(Ce=0),Ce<0&&$e<0&&!Ie&&($e=0));var Fe=this._determinedMin,ze=this._determinedMax;return Fe!=null&&(Ce=Fe,xe=!0),ze!=null&&($e=ze,Ie=!0),{min:Ce,max:$e,minFixed:xe,maxFixed:Ie,isBlank:Ne}},$.prototype.modifyDataMinMax=function(oe,ae){this[DATA_MIN_MAX_ATTR[oe]]=ae},$.prototype.setDeterminedMinMax=function(oe,ae){var ie=DETERMINED_MIN_MAX_ATTR[oe];this[ie]=ae},$.prototype.freeze=function(){this.frozen=!0},$}(),DETERMINED_MIN_MAX_ATTR={min:"_determinedMin",max:"_determinedMax"},DATA_MIN_MAX_ATTR={min:"_dataMin",max:"_dataMax"};function ensureScaleRawExtentInfo($,oe,ae){var ie=$.rawExtentInfo;return ie||(ie=new ScaleRawExtentInfo($,oe,ae),$.rawExtentInfo=ie,ie)}function parseAxisModelMinMax($,oe){return oe==null?null:eqNaN(oe)?NaN:$.parse(oe)}function getScaleExtent($,oe){var ae=$.type,ie=ensureScaleRawExtentInfo($,oe,$.getExtent()).calculate();$.setBlank(ie.isBlank);var le=ie.min,pe=ie.max,_e=oe.ecModel;if(_e&&ae==="time"){var Ce=prepareLayoutBarSeries("bar",_e),$e=!1;if(each$c(Ce,function(Ne){$e=$e||Ne.getBaseAxis()===oe.axis}),$e){var xe=makeColumnLayout(Ce),Ie=adjustScaleForOverflow(le,pe,oe,xe);le=Ie.min,pe=Ie.max}}return{extent:[le,pe],fixMin:ie.minFixed,fixMax:ie.maxFixed}}function adjustScaleForOverflow($,oe,ae,ie){var le=ae.axis.getExtent(),pe=le[1]-le[0],_e=retrieveColumnLayout(ie,ae.axis);if(_e===void 0)return{min:$,max:oe};var Ce=1/0;each$c(_e,function(ze){Ce=Math.min(ze.offset,Ce)});var $e=-1/0;each$c(_e,function(ze){$e=Math.max(ze.offset+ze.width,$e)}),Ce=Math.abs(Ce),$e=Math.abs($e);var xe=Ce+$e,Ie=oe-$,Ne=1-(Ce+$e)/pe,Fe=Ie/Ne-Ie;return oe+=Fe*($e/xe),$-=Fe*(Ce/xe),{min:$,max:oe}}function niceScaleExtent($,oe){var ae=oe,ie=getScaleExtent($,ae),le=ie.extent,pe=ae.get("splitNumber");$ instanceof LogScale$1&&($.base=ae.get("logBase"));var _e=$.type,Ce=ae.get("interval"),$e=_e==="interval"||_e==="time";$.setExtent(le[0],le[1]),$.calcNiceExtent({splitNumber:pe,fixMin:ie.fixMin,fixMax:ie.fixMax,minInterval:$e?ae.get("minInterval"):null,maxInterval:$e?ae.get("maxInterval"):null}),Ce!=null&&$.setInterval&&$.setInterval(Ce)}function createScaleByModel($,oe){if(oe=oe||$.get("type"),oe)switch(oe){case"category":return new OrdinalScale$1({ordinalMeta:$.getOrdinalMeta?$.getOrdinalMeta():$.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale$1({locale:$.ecModel.getLocaleModel(),useUTC:$.ecModel.get("useUTC")});default:return new(Scale$1.getClass(oe)||IntervalScale$1)}}function ifAxisCrossZero($){var oe=$.scale.getExtent(),ae=oe[0],ie=oe[1];return!(ae>0&&ie>0||ae<0&&ie<0)}function makeLabelFormatter($){var oe=$.getLabelModel().get("formatter"),ae=$.type==="category"?$.scale.getExtent()[0]:null;return $.scale.type==="time"?function(ie){return function(le,pe){return $.scale.getFormattedLabel(le,pe,ie)}}(oe):isString(oe)?function(ie){return function(le){var pe=$.scale.getLabel(le),_e=ie.replace("{value}",pe??"");return _e}}(oe):isFunction(oe)?function(ie){return function(le,pe){return ae!=null&&(pe=le.value-ae),ie(getAxisRawValue($,le),pe,le.level!=null?{level:le.level}:null)}}(oe):function(ie){return $.scale.getLabel(ie)}}function getAxisRawValue($,oe){return $.type==="category"?$.scale.getLabel(oe):oe.value}function estimateLabelUnionRect($){var oe=$.model,ae=$.scale;if(!(!oe.get(["axisLabel","show"])||ae.isBlank())){var ie,le,pe=ae.getExtent();ae instanceof OrdinalScale$1?le=ae.count():(ie=ae.getTicks(),le=ie.length);var _e=$.getLabelModel(),Ce=makeLabelFormatter($),$e,xe=1;le>40&&(xe=Math.ceil(le/40));for(var Ie=0;Ie$[1]&&($[1]=le[1])})}var AxisModelCommonMixin=function(){function $(){}return $.prototype.getNeedCrossZero=function(){var oe=this.option;return!oe.scale},$.prototype.getCoordSysModel=function(){},$}();function createList($){return createSeriesData(null,$)}var dataStack={isDimensionStacked,enableDataStack,getStackedDimension};function createScale($,oe){var ae=oe;oe instanceof Model$1||(ae=new Model$1(oe));var ie=createScaleByModel(ae);return ie.setExtent($[0],$[1]),niceScaleExtent(ie,ae),ie}function mixinAxisModelCommonMethods($){mixin($,AxisModelCommonMixin)}function createTextStyle($,oe){return oe=oe||{},createTextStyle$1($,null,null,oe.state!=="normal")}const helper=Object.freeze(Object.defineProperty({__proto__:null,createDimensions,createList,createScale,createSymbol,createTextStyle,dataStack,enableHoverEmphasis,getECData,getLayoutRect,mixinAxisModelCommonMethods},Symbol.toStringTag,{value:"Module"}));var extensions=[],extensionRegisters={registerPreprocessor,registerProcessor,registerPostInit,registerPostUpdate,registerUpdateLifecycle,registerAction,registerCoordinateSystem,registerLayout,registerVisual,registerTransform,registerLoading,registerMap,registerImpl,PRIORITY,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,SeriesModel:SeriesModel$1,ChartView:ChartView$1,registerComponentModel:function($){ComponentModel$1.registerClass($)},registerComponentView:function($){ComponentView$1.registerClass($)},registerSeriesModel:function($){SeriesModel$1.registerClass($)},registerChartView:function($){ChartView$1.registerClass($)},registerSubTypeDefaulter:function($,oe){ComponentModel$1.registerSubTypeDefaulter($,oe)},registerPainter:function($,oe){registerPainter($,oe)}};function use$1($){if(isArray$1($)){each$c($,function(oe){use$1(oe)});return}indexOf(extensions,$)>=0||(extensions.push($),isFunction($)&&($={install:$}),$.install(extensionRegisters))}var EPSILON=1e-8;function isAroundEqual($,oe){return Math.abs($-oe)le&&(ie=_e,le=$e)}if(ie)return centroid(ie.exterior);var xe=this.getBoundingRect();return[xe.x+xe.width/2,xe.y+xe.height/2]},oe.prototype.getBoundingRect=function(ae){var ie=this._rect;if(ie&&!ae)return ie;var le=[1/0,1/0],pe=[-1/0,-1/0],_e=this.geometries;return each$c(_e,function(Ce){Ce.type==="polygon"?updateBBoxFromPoints(Ce.exterior,le,pe,ae):each$c(Ce.points,function($e){updateBBoxFromPoints($e,le,pe,ae)})}),isFinite(le[0])&&isFinite(le[1])&&isFinite(pe[0])&&isFinite(pe[1])||(le[0]=le[1]=pe[0]=pe[1]=0),ie=new BoundingRect$1(le[0],le[1],pe[0]-le[0],pe[1]-le[1]),ae||(this._rect=ie),ie},oe.prototype.contain=function(ae){var ie=this.getBoundingRect(),le=this.geometries;if(!ie.contain(ae[0],ae[1]))return!1;e:for(var pe=0,_e=le.length;pe<_e;pe++){var Ce=le[pe];if(Ce.type==="polygon"){var $e=Ce.exterior,xe=Ce.interiors;if(contain($e,ae[0],ae[1])){for(var Ie=0;Ie<(xe?xe.length:0);Ie++)if(contain(xe[Ie],ae[0],ae[1]))continue e;return!0}}}return!1},oe.prototype.transformTo=function(ae,ie,le,pe){var _e=this.getBoundingRect(),Ce=_e.width/_e.height;le?pe||(pe=le/Ce):le=Ce*pe;for(var $e=new BoundingRect$1(ae,ie,le,pe),xe=_e.calculateTransform($e),Ie=this.geometries,Ne=0;Ne>1^-(Ce&1),$e=$e>>1^-($e&1),Ce+=le,$e+=pe,le=Ce,pe=$e,ie.push([Ce/ae,$e/ae])}return ie}function parseGeoJSON($,oe){return $=decode($),map$2(filter($.features,function(ae){return ae.geometry&&ae.properties&&ae.geometry.coordinates.length>0}),function(ae){var ie=ae.properties,le=ae.geometry,pe=[];switch(le.type){case"Polygon":var _e=le.coordinates;pe.push(new GeoJSONPolygonGeometry(_e[0],_e.slice(1)));break;case"MultiPolygon":each$c(le.coordinates,function($e){$e[0]&&pe.push(new GeoJSONPolygonGeometry($e[0],$e.slice(1)))});break;case"LineString":pe.push(new GeoJSONLineStringGeometry([le.coordinates]));break;case"MultiLineString":pe.push(new GeoJSONLineStringGeometry(le.coordinates))}var Ce=new GeoJSONRegion(ie[oe||"name"],pe,ie.cp);return Ce.properties=ie,Ce})}const number=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER,asc:asc$2,getPercentWithPrecision,getPixelPrecision,getPrecision,getPrecisionSafe,isNumeric,isRadianAroundZero,linearMap:linearMap$2,nice,numericToNumber,parseDate,quantile,quantity,quantityExponent,reformIntervals,remRadian,round:round$1},Symbol.toStringTag,{value:"Module"})),time=Object.freeze(Object.defineProperty({__proto__:null,format:format$1,parse:parseDate},Symbol.toStringTag,{value:"Module"})),graphic=Object.freeze(Object.defineProperty({__proto__:null,Arc:Arc$1,BezierCurve:BezierCurve$1,BoundingRect:BoundingRect$1,Circle:Circle$1,CompoundPath:CompoundPath$1,Ellipse:Ellipse$1,Group:Group$3,Image:ZRImage$1,IncrementalDisplayable:IncrementalDisplayable$1,Line:Line$1,LinearGradient:LinearGradient$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,initProps,makeImage,makePath,mergePath,registerShape,resizePath,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"})),format=Object.freeze(Object.defineProperty({__proto__:null,addCommas,capitalFirst,encodeHTML,formatTime,formatTpl,getTextRect,getTooltipMarker,normalizeCssArray,toCamelCase,truncateText},Symbol.toStringTag,{value:"Module"})),util=Object.freeze(Object.defineProperty({__proto__:null,bind:bind$1,clone:clone$3,curry:curry$1,defaults,each:each$c,extend,filter,indexOf,inherits,isArray:isArray$1,isFunction,isObject:isObject$3,isString,map:map$2,merge,reduce},Symbol.toStringTag,{value:"Module"}));var inner$7=makeInner();function createAxisLabels($){return $.type==="category"?makeCategoryLabels($):makeRealNumberLabels($)}function createAxisTicks($,oe){return $.type==="category"?makeCategoryTicks($,oe):{ticks:map$2($.scale.getTicks(),function(ae){return ae.value})}}function makeCategoryLabels($){var oe=$.getLabelModel(),ae=makeCategoryLabelsActually($,oe);return!oe.get("show")||$.scale.isBlank()?{labels:[],labelCategoryInterval:ae.labelCategoryInterval}:ae}function makeCategoryLabelsActually($,oe){var ae=getListCache($,"labels"),ie=getOptionCategoryInterval(oe),le=listCacheGet(ae,ie);if(le)return le;var pe,_e;return isFunction(ie)?pe=makeLabelsByCustomizedCategoryInterval($,ie):(_e=ie==="auto"?makeAutoCategoryInterval($):ie,pe=makeLabelsByNumericCategoryInterval($,_e)),listCacheSet(ae,ie,{labels:pe,labelCategoryInterval:_e})}function makeCategoryTicks($,oe){var ae=getListCache($,"ticks"),ie=getOptionCategoryInterval(oe),le=listCacheGet(ae,ie);if(le)return le;var pe,_e;if((!oe.get("show")||$.scale.isBlank())&&(pe=[]),isFunction(ie))pe=makeLabelsByCustomizedCategoryInterval($,ie,!0);else if(ie==="auto"){var Ce=makeCategoryLabelsActually($,$.getLabelModel());_e=Ce.labelCategoryInterval,pe=map$2(Ce.labels,function($e){return $e.tickValue})}else _e=ie,pe=makeLabelsByNumericCategoryInterval($,_e,!0);return listCacheSet(ae,ie,{ticks:pe,tickCategoryInterval:_e})}function makeRealNumberLabels($){var oe=$.scale.getTicks(),ae=makeLabelFormatter($);return{labels:map$2(oe,function(ie,le){return{level:ie.level,formattedLabel:ae(ie,le),rawLabel:$.scale.getLabel(ie),tickValue:ie.value}})}}function getListCache($,oe){return inner$7($)[oe]||(inner$7($)[oe]=[])}function listCacheGet($,oe){for(var ae=0;ae<$.length;ae++)if($[ae].key===oe)return $[ae].value}function listCacheSet($,oe,ae){return $.push({key:oe,value:ae}),ae}function makeAutoCategoryInterval($){var oe=inner$7($).autoInterval;return oe??(inner$7($).autoInterval=$.calculateCategoryInterval())}function calculateCategoryInterval($){var oe=fetchAutoCategoryIntervalCalculationParams($),ae=makeLabelFormatter($),ie=(oe.axisRotate-oe.labelRotate)/180*Math.PI,le=$.scale,pe=le.getExtent(),_e=le.count();if(pe[1]-pe[0]<1)return 0;var Ce=1;_e>40&&(Ce=Math.max(1,Math.floor(_e/40)));for(var $e=pe[0],xe=$.dataToCoord($e+1)-$.dataToCoord($e),Ie=Math.abs(xe*Math.cos(ie)),Ne=Math.abs(xe*Math.sin(ie)),Fe=0,ze=0;$e<=pe[1];$e+=Ce){var At=0,Lt=0,hn=getBoundingRect(ae({value:$e}),oe.font,"center","top");At=hn.width*1.3,Lt=hn.height*1.3,Fe=Math.max(Fe,At,7),ze=Math.max(ze,Lt,7)}var vn=Fe/Ie,_n=ze/Ne;isNaN(vn)&&(vn=1/0),isNaN(_n)&&(_n=1/0);var bn=Math.max(0,Math.floor(Math.min(vn,_n))),Cn=inner$7($.model),En=$.getExtent(),$n=Cn.lastAutoInterval,wn=Cn.lastTickCount;return $n!=null&&wn!=null&&Math.abs($n-bn)<=1&&Math.abs(wn-_e)<=1&&$n>bn&&Cn.axisExtent0===En[0]&&Cn.axisExtent1===En[1]?bn=$n:(Cn.lastTickCount=_e,Cn.lastAutoInterval=bn,Cn.axisExtent0=En[0],Cn.axisExtent1=En[1]),bn}function fetchAutoCategoryIntervalCalculationParams($){var oe=$.getLabelModel();return{axisRotate:$.getRotate?$.getRotate():$.isHorizontal&&!$.isHorizontal()?90:0,labelRotate:oe.get("rotate")||0,font:oe.getFont()}}function makeLabelsByNumericCategoryInterval($,oe,ae){var ie=makeLabelFormatter($),le=$.scale,pe=le.getExtent(),_e=$.getLabelModel(),Ce=[],$e=Math.max((oe||0)+1,1),xe=pe[0],Ie=le.count();xe!==0&&$e>1&&Ie/$e>2&&(xe=Math.round(Math.ceil(xe/$e)*$e));var Ne=shouldShowAllLabels($),Fe=_e.get("showMinLabel")||Ne,ze=_e.get("showMaxLabel")||Ne;Fe&&xe!==pe[0]&&Lt(pe[0]);for(var At=xe;At<=pe[1];At+=$e)Lt(At);ze&&At-$e!==pe[1]&&Lt(pe[1]);function Lt(hn){var vn={value:hn};Ce.push(ae?hn:{formattedLabel:ie(vn),rawLabel:le.getLabel(vn),tickValue:hn})}return Ce}function makeLabelsByCustomizedCategoryInterval($,oe,ae){var ie=$.scale,le=makeLabelFormatter($),pe=[];return each$c(ie.getTicks(),function(_e){var Ce=ie.getLabel(_e),$e=_e.value;oe(_e.value,Ce)&&pe.push(ae?$e:{formattedLabel:le(_e),rawLabel:Ce,tickValue:$e})}),pe}var NORMALIZED_EXTENT=[0,1],Axis=function(){function $(oe,ae,ie){this.onBand=!1,this.inverse=!1,this.dim=oe,this.scale=ae,this._extent=ie||[0,0]}return $.prototype.contain=function(oe){var ae=this._extent,ie=Math.min(ae[0],ae[1]),le=Math.max(ae[0],ae[1]);return oe>=ie&&oe<=le},$.prototype.containData=function(oe){return this.scale.contain(oe)},$.prototype.getExtent=function(){return this._extent.slice()},$.prototype.getPixelPrecision=function(oe){return getPixelPrecision(oe||this.scale.getExtent(),this._extent)},$.prototype.setExtent=function(oe,ae){var ie=this._extent;ie[0]=oe,ie[1]=ae},$.prototype.dataToCoord=function(oe,ae){var ie=this._extent,le=this.scale;return oe=le.normalize(oe),this.onBand&&le.type==="ordinal"&&(ie=ie.slice(),fixExtentWithBands(ie,le.count())),linearMap$2(oe,NORMALIZED_EXTENT,ie,ae)},$.prototype.coordToData=function(oe,ae){var ie=this._extent,le=this.scale;this.onBand&&le.type==="ordinal"&&(ie=ie.slice(),fixExtentWithBands(ie,le.count()));var pe=linearMap$2(oe,ie,NORMALIZED_EXTENT,ae);return this.scale.scale(pe)},$.prototype.pointToData=function(oe,ae){},$.prototype.getTicksCoords=function(oe){oe=oe||{};var ae=oe.tickModel||this.getTickModel(),ie=createAxisTicks(this,ae),le=ie.ticks,pe=map$2(le,function(Ce){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(Ce):Ce),tickValue:Ce}},this),_e=ae.get("alignWithLabel");return fixOnBandTicksCoords(this,pe,_e,oe.clamp),pe},$.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var oe=this.model.getModel("minorTick"),ae=oe.get("splitNumber");ae>0&&ae<100||(ae=5);var ie=this.scale.getMinorTicks(ae),le=map$2(ie,function(pe){return map$2(pe,function(_e){return{coord:this.dataToCoord(_e),tickValue:_e}},this)},this);return le},$.prototype.getViewLabels=function(){return createAxisLabels(this).labels},$.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},$.prototype.getTickModel=function(){return this.model.getModel("axisTick")},$.prototype.getBandWidth=function(){var oe=this._extent,ae=this.scale.getExtent(),ie=ae[1]-ae[0]+(this.onBand?1:0);ie===0&&(ie=1);var le=Math.abs(oe[1]-oe[0]);return Math.abs(le)/ie},$.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},$}();function fixExtentWithBands($,oe){var ae=$[1]-$[0],ie=oe,le=ae/ie/2;$[0]+=le,$[1]-=le}function fixOnBandTicksCoords($,oe,ae,ie){var le=oe.length;if(!$.onBand||ae||!le)return;var pe=$.getExtent(),_e,Ce;if(le===1)oe[0].coord=pe[0],_e=oe[1]={coord:pe[0]};else{var $e=oe[le-1].tickValue-oe[0].tickValue,xe=(oe[le-1].coord-oe[0].coord)/$e;each$c(oe,function(ze){ze.coord-=xe/2});var Ie=$.scale.getExtent();Ce=1+Ie[1]-oe[le-1].tickValue,_e={coord:oe[le-1].coord+xe*Ce},oe.push(_e)}var Ne=pe[0]>pe[1];Fe(oe[0].coord,pe[0])&&(ie?oe[0].coord=pe[0]:oe.shift()),ie&&Fe(pe[0],oe[0].coord)&&oe.unshift({coord:pe[0]}),Fe(pe[1],_e.coord)&&(ie?_e.coord=pe[1]:oe.pop()),ie&&Fe(_e.coord,pe[1])&&oe.push({coord:pe[1]});function Fe(ze,At){return ze=round$1(ze),At=round$1(At),Ne?ze>At:ze0){oe=oe/180*Math.PI,pt0.fromArray($[0]),pt1.fromArray($[1]),pt2.fromArray($[2]),Point$1.sub(dir,pt0,pt1),Point$1.sub(dir2,pt2,pt1);var ae=dir.len(),ie=dir2.len();if(!(ae<.001||ie<.001)){dir.scale(1/ae),dir2.scale(1/ie);var le=dir.dot(dir2),pe=Math.cos(oe);if(pe1&&Point$1.copy(tmpProjPoint,pt2),tmpProjPoint.toArray($[1])}}}}function limitSurfaceAngle($,oe,ae){if(ae<=180&&ae>0){ae=ae/180*Math.PI,pt0.fromArray($[0]),pt1.fromArray($[1]),pt2.fromArray($[2]),Point$1.sub(dir,pt1,pt0),Point$1.sub(dir2,pt2,pt1);var ie=dir.len(),le=dir2.len();if(!(ie<.001||le<.001)){dir.scale(1/ie),dir2.scale(1/le);var pe=dir.dot(oe),_e=Math.cos(ae);if(pe<_e){var Ce=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr);var $e=Math.PI/2,xe=Math.acos(dir2.dot(oe)),Ie=$e+xe-ae;if(Ie>=$e)Point$1.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,Ce/Math.tan(Math.PI/2-Ie));var Ne=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(Ne))return;Ne<0?Point$1.copy(tmpProjPoint,pt1):Ne>1&&Point$1.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray($[1])}}}}function setLabelLineState($,oe,ae,ie){var le=ae==="normal",pe=le?$:$.ensureState(ae);pe.ignore=oe;var _e=ie.get("smooth");_e&&_e===!0&&(_e=.3),pe.shape=pe.shape||{},_e>0&&(pe.shape.smooth=_e);var Ce=ie.getModel("lineStyle").getLineStyle();le?$.useStyle(Ce):pe.style=Ce}function buildLabelLinePath($,oe){var ae=oe.smooth,ie=oe.points;if(ie)if($.moveTo(ie[0][0],ie[0][1]),ae>0&&ie.length>=3){var le=dist$1(ie[0],ie[1]),pe=dist$1(ie[1],ie[2]);if(!le||!pe){$.lineTo(ie[1][0],ie[1][1]),$.lineTo(ie[2][0],ie[2][1]);return}var _e=Math.min(le,pe)*ae,Ce=lerp$1([],ie[1],ie[0],_e/le),$e=lerp$1([],ie[1],ie[2],_e/pe),xe=lerp$1([],Ce,$e,.5);$.bezierCurveTo(Ce[0],Ce[1],Ce[0],Ce[1],xe[0],xe[1]),$.bezierCurveTo($e[0],$e[1],$e[0],$e[1],ie[2][0],ie[2][1])}else for(var Ie=1;Ie0&&pe&&En(-Ie/_e,0,_e);var Lt=$[0],hn=$[_e-1],vn,_n;bn(),vn<0&&$n(-vn,.8),_n<0&&$n(_n,.8),bn(),Cn(vn,_n,1),Cn(_n,vn,-1),bn(),vn<0&&wn(-vn),_n<0&&wn(_n);function bn(){vn=Lt.rect[oe]-ie,_n=le-hn.rect[oe]-hn.rect[ae]}function Cn(Tn,xn,kn){if(Tn<0){var An=Math.min(xn,-Tn);if(An>0){En(An*kn,0,_e);var On=An+Tn;On<0&&$n(-On*kn,1)}else $n(-Tn*kn,1)}}function En(Tn,xn,kn){Tn!==0&&(xe=!0);for(var An=xn;An0)for(var On=0;On<_e-1;On++){var Bn=kn[On]*zn;En(Bn,0,On+1)}else for(var On=_e-1;On>0;On--){var Bn=kn[On-1]*zn;En(-Bn,On,_e)}}}function wn(Tn){var xn=Tn<0?-1:1;Tn=Math.abs(Tn);for(var kn=Math.ceil(Tn/(_e-1)),An=0;An<_e-1;An++)if(xn>0?En(kn,0,An+1):En(-kn,_e-An-1,_e),Tn-=kn,Tn<=0)return}return xe}function shiftLayoutOnY($,oe,ae,ie){return shiftLayout($,"y","height",oe,ae,ie)}function hideOverlap($){var oe=[];$.sort(function(Lt,hn){return hn.priority-Lt.priority});var ae=new BoundingRect$1(0,0,0,0);function ie(Lt){if(!Lt.ignore){var hn=Lt.ensureState("emphasis");hn.ignore==null&&(hn.ignore=!1)}Lt.ignore=!0}for(var le=0;le<$.length;le++){var pe=$[le],_e=pe.axisAligned,Ce=pe.localRect,$e=pe.transform,xe=pe.label,Ie=pe.labelLine;ae.copy(pe.rect),ae.width-=.1,ae.height-=.1,ae.x+=.05,ae.y+=.05;for(var Ne=pe.obb,Fe=!1,ze=0;ze=Ce)}}for(var Ne=this.__startIndex;Ne15)break}}Rn.prevElClipPaths&&vn.restore()};if(_n)if(_n.length===0)Tn=hn.__endIndex;else for(var kn=ze.dpr,An=0;An<_n.length;++An){var On=_n[An];vn.save(),vn.beginPath(),vn.rect(On.x*kn,On.y*kn,On.width*kn,On.height*kn),vn.clip(),xn(On),vn.restore()}else vn.save(),xn(),vn.restore();hn.__drawIndex=Tn,hn.__drawIndex0&&oe>le[0]){for($e=0;$eoe);$e++);Ce=ie[le[$e]]}if(le.splice($e+1,0,oe),ie[oe]=ae,!ae.virtual)if(Ce){var xe=Ce.dom;xe.nextSibling?_e.insertBefore(ae.dom,xe.nextSibling):_e.appendChild(ae.dom)}else _e.firstChild?_e.insertBefore(ae.dom,_e.firstChild):_e.appendChild(ae.dom);ae.__painter=this}},$.prototype.eachLayer=function(oe,ae){for(var ie=this._zlevelList,le=0;le0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),Ie.__builtin__||logError("ZLevel "+xe+" has been used by unkown layer "+Ie.id),Ie!==pe&&(Ie.__used=!0,Ie.__startIndex!==$e&&(Ie.__dirty=!0),Ie.__startIndex=$e,Ie.incremental?Ie.__drawIndex=-1:Ie.__drawIndex=$e,ae($e),pe=Ie),le.__dirty&REDRAW_BIT&&!le.__inHover&&(Ie.__dirty=!0,Ie.incremental&&Ie.__drawIndex<0&&(Ie.__drawIndex=$e))}ae($e),this.eachBuiltinLayer(function(Ne,Fe){!Ne.__used&&Ne.getElementCount()>0&&(Ne.__dirty=!0,Ne.__startIndex=Ne.__endIndex=Ne.__drawIndex=0),Ne.__dirty&&Ne.__drawIndex<0&&(Ne.__drawIndex=Ne.__startIndex)})},$.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},$.prototype._clearLayer=function(oe){oe.clear()},$.prototype.setBackgroundColor=function(oe){this._backgroundColor=oe,each$c(this._layers,function(ae){ae.setUnpainted()})},$.prototype.configLayer=function(oe,ae){if(ae){var ie=this._layerConfig;ie[oe]?merge(ie[oe],ae,!0):ie[oe]=ae;for(var le=0;le-1&&(xe.style.stroke=xe.style.fill,xe.style.fill="#fff",xe.style.lineWidth=2),ie},oe.type="series.line",oe.dependencies=["grid","polar"],oe.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},oe}(SeriesModel$1);const LineSeries=LineSeriesModel;function getDefaultLabel($,oe){var ae=$.mapDimensionsAll("defaultedLabel"),ie=ae.length;if(ie===1){var le=retrieveRawValue($,oe,ae[0]);return le!=null?le+"":null}else if(ie){for(var pe=[],_e=0;_e=0&&ie.push(oe[pe])}return ie.join(" ")}var Symbol$1=function($){__extends(oe,$);function oe(ae,ie,le,pe){var _e=$.call(this)||this;return _e.updateData(ae,ie,le,pe),_e}return oe.prototype._createSymbol=function(ae,ie,le,pe,_e){this.removeAll();var Ce=createSymbol(ae,-1,-1,2,2,null,_e);Ce.attr({z2:100,culling:!0,scaleX:pe[0]/2,scaleY:pe[1]/2}),Ce.drift=driftSymbol,this._symbolType=ae,this.add(Ce)},oe.prototype.stopSymbolAnimation=function(ae){this.childAt(0).stopAnimation(null,ae)},oe.prototype.getSymbolType=function(){return this._symbolType},oe.prototype.getSymbolPath=function(){return this.childAt(0)},oe.prototype.highlight=function(){enterEmphasis(this.childAt(0))},oe.prototype.downplay=function(){leaveEmphasis(this.childAt(0))},oe.prototype.setZ=function(ae,ie){var le=this.childAt(0);le.zlevel=ae,le.z=ie},oe.prototype.setDraggable=function(ae,ie){var le=this.childAt(0);le.draggable=ae,le.cursor=!ie&&ae?"move":le.cursor},oe.prototype.updateData=function(ae,ie,le,pe){this.silent=!1;var _e=ae.getItemVisual(ie,"symbol")||"circle",Ce=ae.hostModel,$e=oe.getSymbolSize(ae,ie),xe=_e!==this._symbolType,Ie=pe&&pe.disableAnimation;if(xe){var Ne=ae.getItemVisual(ie,"symbolKeepAspect");this._createSymbol(_e,ae,ie,$e,Ne)}else{var Fe=this.childAt(0);Fe.silent=!1;var ze={scaleX:$e[0]/2,scaleY:$e[1]/2};Ie?Fe.attr(ze):updateProps$1(Fe,ze,Ce,ie),saveOldStyle(Fe)}if(this._updateCommon(ae,ie,$e,le,pe),xe){var Fe=this.childAt(0);if(!Ie){var ze={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:Fe.style.opacity}};Fe.scaleX=Fe.scaleY=0,Fe.style.opacity=0,initProps(Fe,ze,Ce,ie)}}Ie&&this.childAt(0).stopAnimation("leave")},oe.prototype._updateCommon=function(ae,ie,le,pe,_e){var Ce=this.childAt(0),$e=ae.hostModel,xe,Ie,Ne,Fe,ze,At,Lt,hn,vn;if(pe&&(xe=pe.emphasisItemStyle,Ie=pe.blurItemStyle,Ne=pe.selectItemStyle,Fe=pe.focus,ze=pe.blurScope,Lt=pe.labelStatesModels,hn=pe.hoverScale,vn=pe.cursorStyle,At=pe.emphasisDisabled),!pe||ae.hasItemOption){var _n=pe&&pe.itemModel?pe.itemModel:ae.getItemModel(ie),bn=_n.getModel("emphasis");xe=bn.getModel("itemStyle").getItemStyle(),Ne=_n.getModel(["select","itemStyle"]).getItemStyle(),Ie=_n.getModel(["blur","itemStyle"]).getItemStyle(),Fe=bn.get("focus"),ze=bn.get("blurScope"),At=bn.get("disabled"),Lt=getLabelStatesModels(_n),hn=bn.getShallow("scale"),vn=_n.getShallow("cursor")}var Cn=ae.getItemVisual(ie,"symbolRotate");Ce.attr("rotation",(Cn||0)*Math.PI/180||0);var En=normalizeSymbolOffset(ae.getItemVisual(ie,"symbolOffset"),le);En&&(Ce.x=En[0],Ce.y=En[1]),vn&&Ce.attr("cursor",vn);var $n=ae.getItemVisual(ie,"style"),wn=$n.fill;if(Ce instanceof ZRImage$1){var Tn=Ce.style;Ce.useStyle(extend({image:Tn.image,x:Tn.x,y:Tn.y,width:Tn.width,height:Tn.height},$n))}else Ce.__isEmptyBrush?Ce.useStyle(extend({},$n)):Ce.useStyle($n),Ce.style.decal=null,Ce.setColor(wn,_e&&_e.symbolInnerColor),Ce.style.strokeNoScale=!0;var xn=ae.getItemVisual(ie,"liftZ"),kn=this._z2;xn!=null?kn==null&&(this._z2=Ce.z2,Ce.z2+=xn):kn!=null&&(Ce.z2=kn,this._z2=null);var An=_e&&_e.useNameLabel;setLabelStyle(Ce,Lt,{labelFetcher:$e,labelDataIndex:ie,defaultText:On,inheritColor:wn,defaultOpacity:$n.opacity});function On(zn){return An?ae.getName(zn):getDefaultLabel(ae,zn)}this._sizeX=le[0]/2,this._sizeY=le[1]/2;var Nn=Ce.ensureState("emphasis");Nn.style=xe,Ce.ensureState("select").style=Ne,Ce.ensureState("blur").style=Ie;var Rn=hn==null||hn===!0?Math.max(1.1,3/this._sizeY):isFinite(hn)&&hn>0?+hn:1;Nn.scaleX=this._sizeX*Rn,Nn.scaleY=this._sizeY*Rn,this.setSymbolScale(1),toggleHoverEmphasis(this,Fe,ze,At)},oe.prototype.setSymbolScale=function(ae){this.scaleX=this.scaleY=ae},oe.prototype.fadeOut=function(ae,ie,le){var pe=this.childAt(0),_e=getECData(this).dataIndex,Ce=le&&le.animation;if(this.silent=pe.silent=!0,le&&le.fadeLabel){var $e=pe.getTextContent();$e&&removeElement($e,{style:{opacity:0}},ie,{dataIndex:_e,removeOpt:Ce,cb:function(){pe.removeTextContent()}})}else pe.removeTextContent();removeElement(pe,{style:{opacity:0},scaleX:0,scaleY:0},ie,{dataIndex:_e,cb:ae,removeOpt:Ce})},oe.getSymbolSize=function(ae,ie){return normalizeSymbolSize(ae.getItemVisual(ie,"symbolSize"))},oe}(Group$3);function driftSymbol($,oe){this.parent.drift($,oe)}const SymbolClz=Symbol$1;function symbolNeedsDraw($,oe,ae,ie){return oe&&!isNaN(oe[0])&&!isNaN(oe[1])&&!(ie.isIgnore&&ie.isIgnore(ae))&&!(ie.clipShape&&!ie.clipShape.contain(oe[0],oe[1]))&&$.getItemVisual(ae,"symbol")!=="none"}function normalizeUpdateOpt($){return $!=null&&!isObject$3($)&&($={isIgnore:$}),$||{}}function makeSeriesScope($){var oe=$.hostModel,ae=oe.getModel("emphasis");return{emphasisItemStyle:ae.getModel("itemStyle").getItemStyle(),blurItemStyle:oe.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:oe.getModel(["select","itemStyle"]).getItemStyle(),focus:ae.get("focus"),blurScope:ae.get("blurScope"),emphasisDisabled:ae.get("disabled"),hoverScale:ae.get("scale"),labelStatesModels:getLabelStatesModels(oe),cursorStyle:oe.get("cursor")}}var SymbolDraw=function(){function $(oe){this.group=new Group$3,this._SymbolCtor=oe||SymbolClz}return $.prototype.updateData=function(oe,ae){this._progressiveEls=null,ae=normalizeUpdateOpt(ae);var ie=this.group,le=oe.hostModel,pe=this._data,_e=this._SymbolCtor,Ce=ae.disableAnimation,$e=makeSeriesScope(oe),xe={disableAnimation:Ce},Ie=ae.getSymbolPoint||function(Ne){return oe.getItemLayout(Ne)};pe||ie.removeAll(),oe.diff(pe).add(function(Ne){var Fe=Ie(Ne);if(symbolNeedsDraw(oe,Fe,Ne,ae)){var ze=new _e(oe,Ne,$e,xe);ze.setPosition(Fe),oe.setItemGraphicEl(Ne,ze),ie.add(ze)}}).update(function(Ne,Fe){var ze=pe.getItemGraphicEl(Fe),At=Ie(Ne);if(!symbolNeedsDraw(oe,At,Ne,ae)){ie.remove(ze);return}var Lt=oe.getItemVisual(Ne,"symbol")||"circle",hn=ze&&ze.getSymbolType&&ze.getSymbolType();if(!ze||hn&&hn!==Lt)ie.remove(ze),ze=new _e(oe,Ne,$e,xe),ze.setPosition(At);else{ze.updateData(oe,Ne,$e,xe);var vn={x:At[0],y:At[1]};Ce?ze.attr(vn):updateProps$1(ze,vn,le)}ie.add(ze),oe.setItemGraphicEl(Ne,ze)}).remove(function(Ne){var Fe=pe.getItemGraphicEl(Ne);Fe&&Fe.fadeOut(function(){ie.remove(Fe)},le)}).execute(),this._getSymbolPoint=Ie,this._data=oe},$.prototype.updateLayout=function(){var oe=this,ae=this._data;ae&&ae.eachItemGraphicEl(function(ie,le){var pe=oe._getSymbolPoint(le);ie.setPosition(pe),ie.markRedraw()})},$.prototype.incrementalPrepareUpdate=function(oe){this._seriesScope=makeSeriesScope(oe),this._data=null,this.group.removeAll()},$.prototype.incrementalUpdate=function(oe,ae,ie){this._progressiveEls=[],ie=normalizeUpdateOpt(ie);function le($e){$e.isGroup||($e.incremental=!0,$e.ensureState("emphasis").hoverLayer=!0)}for(var pe=oe.start;pe0?ae=ie[0]:ie[1]<0&&(ae=ie[1]),ae}function getStackedOnPoint($,oe,ae,ie){var le=NaN;$.stacked&&(le=ae.get(ae.getCalculationInfo("stackedOverDimension"),ie)),isNaN(le)&&(le=$.valueStart);var pe=$.baseDataOffset,_e=[];return _e[pe]=ae.get($.baseDim,ie),_e[1-pe]=le,oe.dataToPoint(_e)}function diffData($,oe){var ae=[];return oe.diff($).add(function(ie){ae.push({cmd:"+",idx:ie})}).update(function(ie,le){ae.push({cmd:"=",idx:le,idx1:ie})}).remove(function(ie){ae.push({cmd:"-",idx:ie})}).execute(),ae}function lineAnimationDiff($,oe,ae,ie,le,pe,_e,Ce){for(var $e=diffData($,oe),xe=[],Ie=[],Ne=[],Fe=[],ze=[],At=[],Lt=[],hn=prepareDataCoordInfo(le,oe,_e),vn=$.getLayout("points")||[],_n=oe.getLayout("points")||[],bn=0;bn<$e.length;bn++){var Cn=$e[bn],En=!0,$n=void 0,wn=void 0;switch(Cn.cmd){case"=":$n=Cn.idx*2,wn=Cn.idx1*2;var Tn=vn[$n],xn=vn[$n+1],kn=_n[wn],An=_n[wn+1];(isNaN(Tn)||isNaN(xn))&&(Tn=kn,xn=An),xe.push(Tn,xn),Ie.push(kn,An),Ne.push(ae[$n],ae[$n+1]),Fe.push(ie[wn],ie[wn+1]),Lt.push(oe.getRawIndex(Cn.idx1));break;case"+":var On=Cn.idx,Nn=hn.dataDimsForPoint,Rn=le.dataToPoint([oe.get(Nn[0],On),oe.get(Nn[1],On)]);wn=On*2,xe.push(Rn[0],Rn[1]),Ie.push(_n[wn],_n[wn+1]);var zn=getStackedOnPoint(hn,le,oe,On);Ne.push(zn[0],zn[1]),Fe.push(ie[wn],ie[wn+1]),Lt.push(oe.getRawIndex(On));break;case"-":En=!1}En&&(ze.push(Cn),At.push(At.length))}At.sort(function(nr,er){return Lt[nr]-Lt[er]});for(var Bn=xe.length,Mn=createFloat32Array(Bn),Fn=createFloat32Array(Bn),Vn=createFloat32Array(Bn),jn=createFloat32Array(Bn),Zn=[],bn=0;bn=le||Lt<0)break;if(isPointNull$1(vn,_n)){if($e){Lt+=pe;continue}break}if(Lt===ae)$[pe>0?"moveTo":"lineTo"](vn,_n),Ne=vn,Fe=_n;else{var bn=vn-xe,Cn=_n-Ie;if(bn*bn+Cn*Cn<.5){Lt+=pe;continue}if(_e>0){for(var En=Lt+pe,$n=oe[En*2],wn=oe[En*2+1];$n===vn&&wn===_n&&hn=ie||isPointNull$1($n,wn))ze=vn,At=_n;else{kn=$n-xe,An=wn-Ie;var Rn=vn-xe,zn=$n-vn,Bn=_n-Ie,Mn=wn-_n,Fn=void 0,Vn=void 0;if(Ce==="x"){Fn=Math.abs(Rn),Vn=Math.abs(zn);var jn=kn>0?1:-1;ze=vn-jn*Fn*_e,At=_n,On=vn+jn*Vn*_e,Nn=_n}else if(Ce==="y"){Fn=Math.abs(Bn),Vn=Math.abs(Mn);var Zn=An>0?1:-1;ze=vn,At=_n-Zn*Fn*_e,On=vn,Nn=_n+Zn*Vn*_e}else Fn=Math.sqrt(Rn*Rn+Bn*Bn),Vn=Math.sqrt(zn*zn+Mn*Mn),xn=Vn/(Vn+Fn),ze=vn-kn*_e*(1-xn),At=_n-An*_e*(1-xn),On=vn+kn*_e*xn,Nn=_n+An*_e*xn,On=mathMin$3(On,mathMax$3($n,vn)),Nn=mathMin$3(Nn,mathMax$3(wn,_n)),On=mathMax$3(On,mathMin$3($n,vn)),Nn=mathMax$3(Nn,mathMin$3(wn,_n)),kn=On-vn,An=Nn-_n,ze=vn-kn*Fn/Vn,At=_n-An*Fn/Vn,ze=mathMin$3(ze,mathMax$3(xe,vn)),At=mathMin$3(At,mathMax$3(Ie,_n)),ze=mathMax$3(ze,mathMin$3(xe,vn)),At=mathMax$3(At,mathMin$3(Ie,_n)),kn=vn-ze,An=_n-At,On=vn+kn*Vn/Fn,Nn=_n+An*Vn/Fn}$.bezierCurveTo(Ne,Fe,ze,At,vn,_n),Ne=On,Fe=Nn}else $.lineTo(vn,_n)}xe=vn,Ie=_n,Lt+=pe}return hn}var ECPolylineShape=function(){function $(){this.smooth=0,this.smoothConstraint=!0}return $}(),ECPolyline=function($){__extends(oe,$);function oe(ae){var ie=$.call(this,ae)||this;return ie.type="ec-polyline",ie}return oe.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},oe.prototype.getDefaultShape=function(){return new ECPolylineShape},oe.prototype.buildPath=function(ae,ie){var le=ie.points,pe=0,_e=le.length/2;if(ie.connectNulls){for(;_e>0&&isPointNull$1(le[_e*2-2],le[_e*2-1]);_e--);for(;pe<_e&&isPointNull$1(le[pe*2],le[pe*2+1]);pe++);}for(;pe<_e;)pe+=drawSegment(ae,le,pe,_e,_e,1,ie.smooth,ie.smoothMonotone,ie.connectNulls)+1},oe.prototype.getPointOn=function(ae,ie){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var le=this.path,pe=le.data,_e=PathProxy$1.CMD,Ce,$e,xe=ie==="x",Ie=[],Ne=0;Ne=0){var Cn=xe?(At-$e)*bn+$e:(ze-Ce)*bn+Ce;return xe?[ae,Cn]:[Cn,ae]}Ce=ze,$e=At;break;case _e.C:ze=pe[Ne++],At=pe[Ne++],Lt=pe[Ne++],hn=pe[Ne++],vn=pe[Ne++],_n=pe[Ne++];var En=xe?cubicRootAt(Ce,ze,Lt,vn,ae,Ie):cubicRootAt($e,At,hn,_n,ae,Ie);if(En>0)for(var $n=0;$n=0){var Cn=xe?cubicAt($e,At,hn,_n,wn):cubicAt(Ce,ze,Lt,vn,wn);return xe?[ae,Cn]:[Cn,ae]}}Ce=vn,$e=_n;break}}},oe}(Path$1),ECPolygonShape=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe}(ECPolylineShape),ECPolygon=function($){__extends(oe,$);function oe(ae){var ie=$.call(this,ae)||this;return ie.type="ec-polygon",ie}return oe.prototype.getDefaultShape=function(){return new ECPolygonShape},oe.prototype.buildPath=function(ae,ie){var le=ie.points,pe=ie.stackedOnPoints,_e=0,Ce=le.length/2,$e=ie.smoothMonotone;if(ie.connectNulls){for(;Ce>0&&isPointNull$1(le[Ce*2-2],le[Ce*2-1]);Ce--);for(;_eoe){pe?ae.push(_e(pe,$e,oe)):le&&ae.push(_e(le,$e,0),_e(le,$e,oe));break}else le&&(ae.push(_e(le,$e,0)),le=null),ae.push($e),pe=$e}return ae}function getVisualGradient($,oe,ae){var ie=$.getVisual("visualMeta");if(!(!ie||!ie.length||!$.count())&&oe.type==="cartesian2d"){for(var le,pe,_e=ie.length-1;_e>=0;_e--){var Ce=$.getDimensionInfo(ie[_e].dimension);if(le=Ce&&Ce.coordDim,le==="x"||le==="y"){pe=ie[_e];break}}if(pe){var $e=oe.getAxis(le),xe=map$2(pe.stops,function(bn){return{coord:$e.toGlobalCoord($e.dataToCoord(bn.value)),color:bn.color}}),Ie=xe.length,Ne=pe.outerColors.slice();Ie&&xe[0].coord>xe[Ie-1].coord&&(xe.reverse(),Ne.reverse());var Fe=clipColorStops(xe,le==="x"?ae.getWidth():ae.getHeight()),ze=Fe.length;if(!ze&&Ie)return xe[0].coord<0?Ne[1]?Ne[1]:xe[Ie-1].color:Ne[0]?Ne[0]:xe[0].color;var At=10,Lt=Fe[0].coord-At,hn=Fe[ze-1].coord+At,vn=hn-Lt;if(vn<.001)return"transparent";each$c(Fe,function(bn){bn.offset=(bn.coord-Lt)/vn}),Fe.push({offset:ze?Fe[ze-1].offset:.5,color:Ne[1]||"transparent"}),Fe.unshift({offset:ze?Fe[0].offset:.5,color:Ne[0]||"transparent"});var _n=new LinearGradient$1(0,0,0,0,Fe,!0);return _n[le]=Lt,_n[le+"2"]=hn,_n}}}function getIsIgnoreFunc($,oe,ae){var ie=$.get("showAllSymbol"),le=ie==="auto";if(!(ie&&!le)){var pe=ae.getAxesByScale("ordinal")[0];if(pe&&!(le&&canShowAllSymbolForCategory(pe,oe))){var _e=oe.mapDimension(pe.dim),Ce={};return each$c(pe.getViewLabels(),function($e){var xe=pe.scale.getRawOrdinalNumber($e.tickValue);Ce[xe]=1}),function($e){return!Ce.hasOwnProperty(oe.get(_e,$e))}}}}function canShowAllSymbolForCategory($,oe){var ae=$.getExtent(),ie=Math.abs(ae[1]-ae[0])/$.scale.count();isNaN(ie)&&(ie=0);for(var le=oe.count(),pe=Math.max(1,Math.round(le/5)),_e=0;_eie)return!1;return!0}function isPointNull($,oe){return isNaN($)||isNaN(oe)}function getLastIndexNotNull($){for(var oe=$.length/2;oe>0&&isPointNull($[oe*2-2],$[oe*2-1]);oe--);return oe-1}function getPointAtIndex($,oe){return[$[oe*2],$[oe*2+1]]}function getIndexRange($,oe,ae){for(var ie=$.length/2,le=ae==="x"?0:1,pe,_e,Ce=0,$e=-1,xe=0;xe=oe||pe>=oe&&_e<=oe){$e=xe;break}Ce=xe,pe=_e}return{range:[Ce,$e],t:(oe-pe)/(_e-pe)}}function anyStateShowEndLabel($){if($.get(["endLabel","show"]))return!0;for(var oe=0;oe0&&ae.get(["emphasis","lineStyle","width"])==="bolder"){var jn=Lt.getState("emphasis").style;jn.lineWidth=+Lt.style.lineWidth+1}getECData(Lt).seriesIndex=ae.seriesIndex,toggleHoverEmphasis(Lt,Mn,Fn,Vn);var Zn=getSmooth(ae.get("smooth")),Gn=ae.get("smoothMonotone");if(Lt.setShape({smooth:Zn,smoothMonotone:Gn,connectNulls:Tn}),hn){var Xn=$e.getCalculationInfo("stackedOnSeries"),cr=0;hn.useStyle(defaults(Ie.getAreaStyle(),{fill:Nn,opacity:.7,lineJoin:"bevel",decal:$e.getVisual("style").decal})),Xn&&(cr=getSmooth(Xn.get("smooth"))),hn.setShape({smooth:Zn,stackedOnSmooth:cr,smoothMonotone:Gn,connectNulls:Tn}),setStatesStylesFromModel(hn,ae,"areaStyle"),getECData(hn).seriesIndex=ae.seriesIndex,toggleHoverEmphasis(hn,Mn,Fn,Vn)}var nr=function(er){pe._changePolyState(er)};$e.eachItemGraphicEl(function(er){er&&(er.onHoverStateChange=nr)}),this._polyline.onHoverStateChange=nr,this._data=$e,this._coordSys=_e,this._stackedOnPoints=$n,this._points=Ne,this._step=An,this._valueOrigin=Cn,ae.get("triggerLineEvent")&&(this.packEventData(ae,Lt),hn&&this.packEventData(ae,hn))},oe.prototype.packEventData=function(ae,ie){getECData(ie).eventData={componentType:"series",componentSubType:"line",componentIndex:ae.componentIndex,seriesIndex:ae.seriesIndex,seriesName:ae.name,seriesType:"line"}},oe.prototype.highlight=function(ae,ie,le,pe){var _e=ae.getData(),Ce=queryDataIndex(_e,pe);if(this._changePolyState("emphasis"),!(Ce instanceof Array)&&Ce!=null&&Ce>=0){var $e=_e.getLayout("points"),xe=_e.getItemGraphicEl(Ce);if(!xe){var Ie=$e[Ce*2],Ne=$e[Ce*2+1];if(isNaN(Ie)||isNaN(Ne)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(Ie,Ne))return;var Fe=ae.get("zlevel")||0,ze=ae.get("z")||0;xe=new SymbolClz(_e,Ce),xe.x=Ie,xe.y=Ne,xe.setZ(Fe,ze);var At=xe.getSymbolPath().getTextContent();At&&(At.zlevel=Fe,At.z=ze,At.z2=this._polyline.z2+1),xe.__temp=!0,_e.setItemGraphicEl(Ce,xe),xe.stopSymbolAnimation(!0),this.group.add(xe)}xe.highlight()}else ChartView$1.prototype.highlight.call(this,ae,ie,le,pe)},oe.prototype.downplay=function(ae,ie,le,pe){var _e=ae.getData(),Ce=queryDataIndex(_e,pe);if(this._changePolyState("normal"),Ce!=null&&Ce>=0){var $e=_e.getItemGraphicEl(Ce);$e&&($e.__temp?(_e.setItemGraphicEl(Ce,null),this.group.remove($e)):$e.downplay())}else ChartView$1.prototype.downplay.call(this,ae,ie,le,pe)},oe.prototype._changePolyState=function(ae){var ie=this._polygon;setStatesFlag(this._polyline,ae),ie&&setStatesFlag(ie,ae)},oe.prototype._newPolyline=function(ae){var ie=this._polyline;return ie&&this._lineGroup.remove(ie),ie=new ECPolyline({shape:{points:ae},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(ie),this._polyline=ie,ie},oe.prototype._newPolygon=function(ae,ie){var le=this._polygon;return le&&this._lineGroup.remove(le),le=new ECPolygon({shape:{points:ae,stackedOnPoints:ie},segmentIgnoreThreshold:2}),this._lineGroup.add(le),this._polygon=le,le},oe.prototype._initSymbolLabelAnimation=function(ae,ie,le){var pe,_e,Ce=ie.getBaseAxis(),$e=Ce.inverse;ie.type==="cartesian2d"?(pe=Ce.isHorizontal(),_e=!1):ie.type==="polar"&&(pe=Ce.dim==="angle",_e=!0);var xe=ae.hostModel,Ie=xe.get("animationDuration");isFunction(Ie)&&(Ie=Ie(null));var Ne=xe.get("animationDelay")||0,Fe=isFunction(Ne)?Ne(null):Ne;ae.eachItemGraphicEl(function(ze,At){var Lt=ze;if(Lt){var hn=[ze.x,ze.y],vn=void 0,_n=void 0,bn=void 0;if(le)if(_e){var Cn=le,En=ie.pointToCoord(hn);pe?(vn=Cn.startAngle,_n=Cn.endAngle,bn=-En[1]/180*Math.PI):(vn=Cn.r0,_n=Cn.r,bn=En[0])}else{var $n=le;pe?(vn=$n.x,_n=$n.x+$n.width,bn=ze.x):(vn=$n.y+$n.height,_n=$n.y,bn=ze.y)}var wn=_n===vn?0:(bn-vn)/(_n-vn);$e&&(wn=1-wn);var Tn=isFunction(Ne)?Ne(At):Ie*wn+Fe,xn=Lt.getSymbolPath(),kn=xn.getTextContent();Lt.attr({scaleX:0,scaleY:0}),Lt.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:Tn}),kn&&kn.animateFrom({style:{opacity:0}},{duration:300,delay:Tn}),xn.disableLabelAnimation=!0}})},oe.prototype._initOrUpdateEndLabel=function(ae,ie,le){var pe=ae.getModel("endLabel");if(anyStateShowEndLabel(ae)){var _e=ae.getData(),Ce=this._polyline,$e=_e.getLayout("points");if(!$e){Ce.removeTextContent(),this._endLabel=null;return}var xe=this._endLabel;xe||(xe=this._endLabel=new ZRText$1({z2:200}),xe.ignoreClip=!0,Ce.setTextContent(this._endLabel),Ce.disableLabelAnimation=!0);var Ie=getLastIndexNotNull($e);Ie>=0&&(setLabelStyle(Ce,getLabelStatesModels(ae,"endLabel"),{inheritColor:le,labelFetcher:ae,labelDataIndex:Ie,defaultText:function(Ne,Fe,ze){return ze!=null?getDefaultInterpolatedLabel(_e,ze):getDefaultLabel(_e,Ne)},enableTextSetter:!0},getEndLabelStateSpecified(pe,ie)),Ce.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},oe.prototype._endLabelOnDuring=function(ae,ie,le,pe,_e,Ce,$e){var xe=this._endLabel,Ie=this._polyline;if(xe){ae<1&&pe.originalX==null&&(pe.originalX=xe.x,pe.originalY=xe.y);var Ne=le.getLayout("points"),Fe=le.hostModel,ze=Fe.get("connectNulls"),At=Ce.get("precision"),Lt=Ce.get("distance")||0,hn=$e.getBaseAxis(),vn=hn.isHorizontal(),_n=hn.inverse,bn=ie.shape,Cn=_n?vn?bn.x:bn.y+bn.height:vn?bn.x+bn.width:bn.y,En=(vn?Lt:0)*(_n?-1:1),$n=(vn?0:-Lt)*(_n?-1:1),wn=vn?"x":"y",Tn=getIndexRange(Ne,Cn,wn),xn=Tn.range,kn=xn[1]-xn[0],An=void 0;if(kn>=1){if(kn>1&&!ze){var On=getPointAtIndex(Ne,xn[0]);xe.attr({x:On[0]+En,y:On[1]+$n}),_e&&(An=Fe.getRawValue(xn[0]))}else{var On=Ie.getPointOn(Cn,wn);On&&xe.attr({x:On[0]+En,y:On[1]+$n});var Nn=Fe.getRawValue(xn[0]),Rn=Fe.getRawValue(xn[1]);_e&&(An=interpolateRawValues(le,At,Nn,Rn,Tn.t))}pe.lastFrameIndex=xn[0]}else{var zn=ae===1||pe.lastFrameIndex>0?xn[0]:0,On=getPointAtIndex(Ne,zn);_e&&(An=Fe.getRawValue(zn)),xe.attr({x:On[0]+En,y:On[1]+$n})}_e&&labelInner(xe).setLabelText(An)}},oe.prototype._doUpdateAnimation=function(ae,ie,le,pe,_e,Ce,$e){var xe=this._polyline,Ie=this._polygon,Ne=ae.hostModel,Fe=lineAnimationDiff(this._data,ae,this._stackedOnPoints,ie,this._coordSys,le,this._valueOrigin),ze=Fe.current,At=Fe.stackedOnCurrent,Lt=Fe.next,hn=Fe.stackedOnNext;if(_e&&(ze=turnPointsIntoStep(Fe.current,le,_e,$e),At=turnPointsIntoStep(Fe.stackedOnCurrent,le,_e,$e),Lt=turnPointsIntoStep(Fe.next,le,_e,$e),hn=turnPointsIntoStep(Fe.stackedOnNext,le,_e,$e)),getBoundingDiff(ze,Lt)>3e3||Ie&&getBoundingDiff(At,hn)>3e3){xe.stopAnimation(),xe.setShape({points:Lt}),Ie&&(Ie.stopAnimation(),Ie.setShape({points:Lt,stackedOnPoints:hn}));return}xe.shape.__points=Fe.current,xe.shape.points=ze;var vn={shape:{points:Lt}};Fe.current!==ze&&(vn.shape.__points=Fe.next),xe.stopAnimation(),updateProps$1(xe,vn,Ne),Ie&&(Ie.setShape({points:ze,stackedOnPoints:At}),Ie.stopAnimation(),updateProps$1(Ie,{shape:{stackedOnPoints:hn}},Ne),xe.shape.points!==Ie.shape.points&&(Ie.shape.points=xe.shape.points));for(var _n=[],bn=Fe.status,Cn=0;Cnoe&&(oe=$[ae]);return isFinite(oe)?oe:NaN},min:function($){for(var oe=1/0,ae=0;ae<$.length;ae++)$[ae]10&&_e.type==="cartesian2d"&&pe){var $e=_e.getBaseAxis(),xe=_e.getOtherAxis($e),Ie=$e.getExtent(),Ne=ie.getDevicePixelRatio(),Fe=Math.abs(Ie[1]-Ie[0])*(Ne||1),ze=Math.round(Ce/Fe);if(isFinite(ze)&&ze>1){pe==="lttb"&&oe.setData(le.lttbDownSample(le.mapDimension(xe.dim),1/ze));var At=void 0;isString(pe)?At=samplers[pe]:isFunction(pe)&&(At=pe),At&&oe.setData(le.downSample(le.mapDimension(xe.dim),1/ze,At,indexSampler))}}}}}function install$j($){$.registerChartView(LineView$1),$.registerSeriesModel(LineSeries),$.registerLayout(pointsLayout("line",!0)),$.registerVisual({seriesType:"line",reset:function(oe){var ae=oe.getData(),ie=oe.getModel("lineStyle").getLineStyle();ie&&!ie.stroke&&(ie.stroke=ae.getVisual("style").fill),ae.setVisual("legendLineStyle",ie)}}),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var BaseBarSeriesModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.getInitialData=function(ae,ie){return createSeriesData(null,this,{useEncodeDefaulter:!0})},oe.prototype.getMarkerPosition=function(ae,ie,le){var pe=this.coordinateSystem;if(pe&&pe.clampData){var _e=pe.clampData(ae),Ce=pe.dataToPoint(_e);if(le)each$c(pe.getAxes(),function(Fe,ze){if(Fe.type==="category"&&ie!=null){var At=Fe.getTicksCoords(),Lt=_e[ze],hn=ie[ze]==="x1"||ie[ze]==="y1";if(hn&&(Lt+=1),At.length<2)return;if(At.length===2){Ce[ze]=Fe.toGlobalCoord(Fe.getExtent()[hn?1:0]);return}for(var vn=void 0,_n=void 0,bn=1,Cn=0;CnLt){_n=(En+vn)/2;break}Cn===1&&(bn=$n-At[0].tickValue)}_n==null&&(vn?vn&&(_n=At[At.length-1].coord):_n=At[0].coord),Ce[ze]=Fe.toGlobalCoord(_n)}});else{var $e=this.getData(),xe=$e.getLayout("offset"),Ie=$e.getLayout("size"),Ne=pe.getBaseAxis().isHorizontal()?0:1;Ce[Ne]+=xe+Ie/2}return Ce}return[NaN,NaN]},oe.type="series.__base_bar__",oe.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},oe}(SeriesModel$1);SeriesModel$1.registerClass(BaseBarSeriesModel);const BaseBarSeriesModel$1=BaseBarSeriesModel;var BarSeriesModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.getInitialData=function(){return createSeriesData(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},oe.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},oe.prototype.getProgressiveThreshold=function(){var ae=this.get("progressiveThreshold"),ie=this.get("largeThreshold");return ie>ae&&(ae=ie),ae},oe.prototype.brushSelector=function(ae,ie,le){return le.rect(ie.getItemLayout(ae))},oe.type="series.bar",oe.dependencies=["grid","polar"],oe.defaultOption=inheritDefaultOption(BaseBarSeriesModel$1.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),oe}(BaseBarSeriesModel$1);const BarSeries=BarSeriesModel;var SausageShape=function(){function $(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return $}(),SausagePath=function($){__extends(oe,$);function oe(ae){var ie=$.call(this,ae)||this;return ie.type="sausage",ie}return oe.prototype.getDefaultShape=function(){return new SausageShape},oe.prototype.buildPath=function(ae,ie){var le=ie.cx,pe=ie.cy,_e=Math.max(ie.r0||0,0),Ce=Math.max(ie.r,0),$e=(Ce-_e)*.5,xe=_e+$e,Ie=ie.startAngle,Ne=ie.endAngle,Fe=ie.clockwise,ze=Math.PI*2,At=Fe?Ne-IeMath.PI/2&&IeCe)return!0;Ce=Ne}return!1},oe.prototype._isOrderDifferentInView=function(ae,ie){for(var le=ie.scale,pe=le.getExtent(),_e=Math.max(0,pe[0]),Ce=Math.min(pe[1],le.getOrdinalMeta().categories.length-1);_e<=Ce;++_e)if(ae.ordinalNumbers[_e]!==le.getRawOrdinalNumber(_e))return!0},oe.prototype._updateSortWithinSameData=function(ae,ie,le,pe){if(this._isOrderChangedWithinSameData(ae,ie,le)){var _e=this._dataSort(ae,le,ie);this._isOrderDifferentInView(_e,le)&&(this._removeOnRenderedListener(pe),pe.dispatchAction({type:"changeAxisOrder",componentType:le.dim+"Axis",axisId:le.index,sortInfo:_e}))}},oe.prototype._dispatchInitSort=function(ae,ie,le){var pe=ie.baseAxis,_e=this._dataSort(ae,pe,function(Ce){return ae.get(ae.mapDimension(ie.otherAxis.dim),Ce)});le.dispatchAction({type:"changeAxisOrder",componentType:pe.dim+"Axis",isInitSort:!0,axisId:pe.index,sortInfo:_e})},oe.prototype.remove=function(ae,ie){this._clear(this._model),this._removeOnRenderedListener(ie)},oe.prototype.dispose=function(ae,ie){this._removeOnRenderedListener(ie)},oe.prototype._removeOnRenderedListener=function(ae){this._onRendered&&(ae.getZr().off("rendered",this._onRendered),this._onRendered=null)},oe.prototype._clear=function(ae){var ie=this.group,le=this._data;ae&&ae.isAnimationEnabled()&&le&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],le.eachItemGraphicEl(function(pe){removeElementWithFadeOut(pe,ae,getECData(pe).dataIndex)})):ie.removeAll(),this._data=null,this._isFirstFrame=!0},oe.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},oe.type="bar",oe}(ChartView$1),clip={cartesian2d:function($,oe){var ae=oe.width<0?-1:1,ie=oe.height<0?-1:1;ae<0&&(oe.x+=oe.width,oe.width=-oe.width),ie<0&&(oe.y+=oe.height,oe.height=-oe.height);var le=$.x+$.width,pe=$.y+$.height,_e=mathMax$2(oe.x,$.x),Ce=mathMin$2(oe.x+oe.width,le),$e=mathMax$2(oe.y,$.y),xe=mathMin$2(oe.y+oe.height,pe),Ie=Ce<_e,Ne=xe<$e;return oe.x=Ie&&_e>le?Ce:_e,oe.y=Ne&&$e>pe?xe:$e,oe.width=Ie?0:Ce-_e,oe.height=Ne?0:xe-$e,ae<0&&(oe.x+=oe.width,oe.width=-oe.width),ie<0&&(oe.y+=oe.height,oe.height=-oe.height),Ie||Ne},polar:function($,oe){var ae=oe.r0<=oe.r?1:-1;if(ae<0){var ie=oe.r;oe.r=oe.r0,oe.r0=ie}var le=mathMin$2(oe.r,$.r),pe=mathMax$2(oe.r0,$.r0);oe.r=le,oe.r0=pe;var _e=le-pe<0;if(ae<0){var ie=oe.r;oe.r=oe.r0,oe.r0=ie}return _e}},elementCreator={cartesian2d:function($,oe,ae,ie,le,pe,_e,Ce,$e){var xe=new Rect$2({shape:extend({},ie),z2:1});if(xe.__dataIndex=ae,xe.name="item",pe){var Ie=xe.shape,Ne=le?"height":"width";Ie[Ne]=0}return xe},polar:function($,oe,ae,ie,le,pe,_e,Ce,$e){var xe=!le&&$e?Sausage:Sector$1,Ie=new xe({shape:ie,z2:1});Ie.name="item";var Ne=createPolarPositionMapping(le);if(Ie.calculateTextPosition=createSectorCalculateTextPosition(Ne,{isRoundCap:xe===Sausage}),pe){var Fe=Ie.shape,ze=le?"r":"endAngle",At={};Fe[ze]=le?ie.r0:ie.startAngle,At[ze]=ie[ze],(Ce?updateProps$1:initProps)(Ie,{shape:At},pe)}return Ie}};function shouldRealtimeSort($,oe){var ae=$.get("realtimeSort",!0),ie=oe.getBaseAxis();if(ae&&ie.type==="category"&&oe.type==="cartesian2d")return{baseAxis:ie,otherAxis:oe.getOtherAxis(ie)}}function updateRealtimeAnimation($,oe,ae,ie,le,pe,_e,Ce){var $e,xe;pe?(xe={x:ie.x,width:ie.width},$e={y:ie.y,height:ie.height}):(xe={y:ie.y,height:ie.height},$e={x:ie.x,width:ie.width}),Ce||(_e?updateProps$1:initProps)(ae,{shape:$e},oe,le,null);var Ie=oe?$.baseAxis.model:null;(_e?updateProps$1:initProps)(ae,{shape:xe},Ie,le)}function checkPropertiesNotValid($,oe){for(var ae=0;ae0?1:-1,_e=ie.height>0?1:-1;return{x:ie.x+pe*le/2,y:ie.y+_e*le/2,width:ie.width-pe*le,height:ie.height-_e*le}},polar:function($,oe,ae){var ie=$.getItemLayout(oe);return{cx:ie.cx,cy:ie.cy,r0:ie.r0,r:ie.r,startAngle:ie.startAngle,endAngle:ie.endAngle,clockwise:ie.clockwise}}};function isZeroOnPolar($){return $.startAngle!=null&&$.endAngle!=null&&$.startAngle===$.endAngle}function createPolarPositionMapping($){return function(oe){var ae=oe?"Arc":"Angle";return function(ie){switch(ie){case"start":case"insideStart":case"end":case"insideEnd":return ie+ae;default:return ie}}}($)}function updateStyle($,oe,ae,ie,le,pe,_e,Ce){var $e=oe.getItemVisual(ae,"style");if(Ce){if(!pe.get("roundCap")){var Ie=$.shape,Ne=getSectorCornerRadius(ie.getModel("itemStyle"),Ie,!0);extend(Ie,Ne),$.setShape(Ie)}}else{var xe=ie.get(["itemStyle","borderRadius"])||0;$.setShape("r",xe)}$.useStyle($e);var Fe=ie.getShallow("cursor");Fe&&$.attr("cursor",Fe);var ze=Ce?_e?le.r>=le.r0?"endArc":"startArc":le.endAngle>=le.startAngle?"endAngle":"startAngle":_e?le.height>=0?"bottom":"top":le.width>=0?"right":"left",At=getLabelStatesModels(ie);setLabelStyle($,At,{labelFetcher:pe,labelDataIndex:ae,defaultText:getDefaultLabel(pe.getData(),ae),inheritColor:$e.fill,defaultOpacity:$e.opacity,defaultOutsidePosition:ze});var Lt=$.getTextContent();if(Ce&&Lt){var hn=ie.get(["label","position"]);$.textConfig.inside=hn==="middle"?!0:null,setSectorTextRotation($,hn==="outside"?ze:hn,createPolarPositionMapping(_e),ie.get(["label","rotate"]))}setLabelValueAnimation(Lt,At,pe.getRawValue(ae),function(_n){return getDefaultInterpolatedLabel(oe,_n)});var vn=ie.getModel(["emphasis"]);toggleHoverEmphasis($,vn.get("focus"),vn.get("blurScope"),vn.get("disabled")),setStatesStylesFromModel($,ie),isZeroOnPolar(le)&&($.style.fill="none",$.style.stroke="none",each$c($.states,function(_n){_n.style&&(_n.style.fill=_n.style.stroke="none")}))}function getLineWidth($,oe){var ae=$.get(["itemStyle","borderColor"]);if(!ae||ae==="none")return 0;var ie=$.get(["itemStyle","borderWidth"])||0,le=isNaN(oe.width)?Number.MAX_VALUE:Math.abs(oe.width),pe=isNaN(oe.height)?Number.MAX_VALUE:Math.abs(oe.height);return Math.min(ie,le,pe)}var LagePathShape=function(){function $(){}return $}(),LargePath=function($){__extends(oe,$);function oe(ae){var ie=$.call(this,ae)||this;return ie.type="largeBar",ie}return oe.prototype.getDefaultShape=function(){return new LagePathShape},oe.prototype.buildPath=function(ae,ie){for(var le=ie.points,pe=this.baseDimIdx,_e=1-this.baseDimIdx,Ce=[],$e=[],xe=this.barWidth,Ie=0;Ie=0?ae:null},30,!1);function largePathFindDataIndex($,oe,ae){for(var ie=$.baseDimIdx,le=1-ie,pe=$.shape.points,_e=$.largeDataIndices,Ce=[],$e=[],xe=$.barWidth,Ie=0,Ne=pe.length/3;Ie=Ce[0]&&oe<=Ce[0]+$e[0]&&ae>=Ce[1]&&ae<=Ce[1]+$e[1])return _e[Ie]}return-1}function createBackgroundShape($,oe,ae){if(isCoordinateSystemType(ae,"cartesian2d")){var ie=oe,le=ae.getArea();return{x:$?ie.x:le.x,y:$?le.y:ie.y,width:$?ie.width:le.width,height:$?le.height:ie.height}}else{var le=ae.getArea(),pe=oe;return{cx:le.cx,cy:le.cy,r0:$?le.r0:pe.r0,r:$?le.r:pe.r,startAngle:$?pe.startAngle:0,endAngle:$?pe.endAngle:Math.PI*2}}}function createBackgroundEl($,oe,ae){var ie=$.type==="polar"?Sector$1:Rect$2;return new ie({shape:createBackgroundShape(oe,ae,$),silent:!0,z2:0})}const BarView$1=BarView;function install$i($){$.registerChartView(BarView$1),$.registerSeriesModel(BarSeries),$.registerLayout($.PRIORITY.VISUAL.LAYOUT,curry$1(layout$2,"bar")),$.registerLayout($.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,createProgressiveLayout("bar")),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,dataSample("bar")),$.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(oe,ae){var ie=oe.componentType||"series";ae.eachComponent({mainType:ie,query:oe},function(le){oe.sortInfo&&le.axis.setCategorySortInfo(oe.sortInfo)})})}var PI2=Math.PI*2,RADIAN$1=Math.PI/180;function getViewRect($,oe){return getLayoutRect($.getBoxLayoutParams(),{width:oe.getWidth(),height:oe.getHeight()})}function getBasicPieLayout($,oe){var ae=getViewRect($,oe),ie=$.get("center"),le=$.get("radius");isArray$1(le)||(le=[0,le]);var pe=parsePercent(ae.width,oe.getWidth()),_e=parsePercent(ae.height,oe.getHeight()),Ce=Math.min(pe,_e),$e=parsePercent(le[0],Ce/2),xe=parsePercent(le[1],Ce/2),Ie,Ne,Fe=$.coordinateSystem;if(Fe){var ze=Fe.dataToPoint(ie);Ie=ze[0]||0,Ne=ze[1]||0}else isArray$1(ie)||(ie=[ie,ie]),Ie=parsePercent(ie[0],pe)+ae.x,Ne=parsePercent(ie[1],_e)+ae.y;return{cx:Ie,cy:Ne,r0:$e,r:xe}}function pieLayout($,oe,ae){oe.eachSeriesByType($,function(ie){var le=ie.getData(),pe=le.mapDimension("value"),_e=getViewRect(ie,ae),Ce=getBasicPieLayout(ie,ae),$e=Ce.cx,xe=Ce.cy,Ie=Ce.r,Ne=Ce.r0,Fe=-ie.get("startAngle")*RADIAN$1,ze=ie.get("minAngle")*RADIAN$1,At=0;le.each(pe,function(kn){!isNaN(kn)&&At++});var Lt=le.getSum(pe),hn=Math.PI/(Lt||At)*2,vn=ie.get("clockwise"),_n=ie.get("roseType"),bn=ie.get("stillShowZeroSum"),Cn=le.getDataExtent(pe);Cn[0]=0;var En=PI2,$n=0,wn=Fe,Tn=vn?1:-1;if(le.setLayout({viewRect:_e,r:Ie}),le.each(pe,function(kn,An){var On;if(isNaN(kn)){le.setItemLayout(An,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:vn,cx:$e,cy:xe,r0:Ne,r:_n?NaN:Ie});return}_n!=="area"?On=Lt===0&&bn?hn:kn*hn:On=PI2/At,Onae?vn:hn,En=Math.abs(bn.label.y-ae);if(En>=Cn.maxY){var $n=bn.label.x-oe-bn.len2*le,wn=ie+bn.len,Tn=Math.abs($n)$.unconstrainedWidth?null:ze:null;ie.setStyle("width",At)}var Lt=ie.getBoundingRect();pe.width=Lt.width;var hn=(ie.style.margin||0)+2.1;pe.height=Lt.height+hn,pe.y-=(pe.height-Ne)/2}}}function isPositionCenter($){return $.position==="center"}function pieLabelLayout($){var oe=$.getData(),ae=[],ie,le,pe=!1,_e=($.get("minShowLabelAngle")||0)*RADIAN,Ce=oe.getLayout("viewRect"),$e=oe.getLayout("r"),xe=Ce.width,Ie=Ce.x,Ne=Ce.y,Fe=Ce.height;function ze($n){$n.ignore=!0}function At($n){if(!$n.ignore)return!0;for(var wn in $n.states)if($n.states[wn].ignore===!1)return!0;return!1}oe.each(function($n){var wn=oe.getItemGraphicEl($n),Tn=wn.shape,xn=wn.getTextContent(),kn=wn.getTextGuideLine(),An=oe.getItemModel($n),On=An.getModel("label"),Nn=On.get("position")||An.get(["emphasis","label","position"]),Rn=On.get("distanceToLabelLine"),zn=On.get("alignTo"),Bn=parsePercent(On.get("edgeDistance"),xe),Mn=On.get("bleedMargin"),Fn=An.getModel("labelLine"),Vn=Fn.get("length");Vn=parsePercent(Vn,xe);var jn=Fn.get("length2");if(jn=parsePercent(jn,xe),Math.abs(Tn.endAngle-Tn.startAngle)<_e){each$c(xn.states,ze),xn.ignore=!0,kn&&(each$c(kn.states,ze),kn.ignore=!0);return}if(At(xn)){var Zn=(Tn.startAngle+Tn.endAngle)/2,Gn=Math.cos(Zn),Xn=Math.sin(Zn),cr,nr,er,rr;ie=Tn.cx,le=Tn.cy;var qn=Nn==="inside"||Nn==="inner";if(Nn==="center")cr=Tn.cx,nr=Tn.cy,rr="center";else{var Yn=(qn?(Tn.r+Tn.r0)/2*Gn:Tn.r*Gn)+ie,ar=(qn?(Tn.r+Tn.r0)/2*Xn:Tn.r*Xn)+le;if(cr=Yn+Gn*3,nr=ar+Xn*3,!qn){var pr=Yn+Gn*(Vn+$e-Tn.r),Un=ar+Xn*(Vn+$e-Tn.r),tr=pr+(Gn<0?-1:1)*jn,ur=Un;zn==="edge"?cr=Gn<0?Ie+Bn:Ie+xe-Bn:cr=tr+(Gn<0?-Rn:Rn),nr=ur,er=[[Yn,ar],[pr,Un],[tr,ur]]}rr=qn?"center":zn==="edge"?Gn>0?"right":"left":Gn>0?"left":"right"}var _r=Math.PI,Er=0,sr=On.get("rotate");if(isNumber(sr))Er=sr*(_r/180);else if(Nn==="center")Er=0;else if(sr==="radial"||sr===!0){var Pr=Gn<0?-Zn+_r:-Zn;Er=Pr}else if(sr==="tangential"&&Nn!=="outside"&&Nn!=="outer"){var Sr=Math.atan2(Gn,Xn);Sr<0&&(Sr=_r*2+Sr);var kr=Xn>0;kr&&(Sr=_r+Sr),Er=Sr-_r}if(pe=!!Er,xn.x=cr,xn.y=nr,xn.rotation=Er,xn.setStyle({verticalAlign:"middle"}),qn){xn.setStyle({align:rr});var hr=xn.states.select;hr&&(hr.x+=xn.x,hr.y+=xn.y)}else{var mr=xn.getBoundingRect().clone();mr.applyTransform(xn.getComputedTransform());var lr=(xn.style.margin||0)+2.1;mr.y-=lr/2,mr.height+=lr,ae.push({label:xn,labelLine:kn,position:Nn,len:Vn,len2:jn,minTurnAngle:Fn.get("minTurnAngle"),maxSurfaceAngle:Fn.get("maxSurfaceAngle"),surfaceNormal:new Point$1(Gn,Xn),linePoints:er,textAlign:rr,labelDistance:Rn,labelAlignTo:zn,edgeDistance:Bn,bleedMargin:Mn,rect:mr,unconstrainedWidth:mr.width,labelStyleWidth:xn.style.width})}wn.setTextConfig({inside:qn})}}),!pe&&$.get("avoidLabelOverlap")&&avoidOverlap(ae,ie,le,$e,xe,Fe,Ie,Ne);for(var Lt=0;Lt0){for(var Ie=_e.getItemLayout(0),Ne=1;isNaN(Ie&&Ie.startAngle)&&Ne<_e.count();++Ne)Ie=_e.getItemLayout(Ne);Ie&&(xe=Ie.startAngle)}if(this._emptyCircleSector&&$e.remove(this._emptyCircleSector),_e.count()===0&&ae.get("showEmptyCircle")){var Fe=new Sector$1({shape:getBasicPieLayout(ae,le)});Fe.useStyle(ae.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=Fe,$e.add(Fe)}_e.diff(Ce).add(function(ze){var At=new PiePiece(_e,ze,xe);_e.setItemGraphicEl(ze,At),$e.add(At)}).update(function(ze,At){var Lt=Ce.getItemGraphicEl(At);Lt.updateData(_e,ze,xe),Lt.off("click"),$e.add(Lt),_e.setItemGraphicEl(ze,Lt)}).remove(function(ze){var At=Ce.getItemGraphicEl(ze);removeElementWithFadeOut(At,ae,ze)}).execute(),pieLabelLayout(ae),ae.get("animationTypeUpdate")!=="expansion"&&(this._data=_e)},oe.prototype.dispose=function(){},oe.prototype.containPoint=function(ae,ie){var le=ie.getData(),pe=le.getItemLayout(0);if(pe){var _e=ae[0]-pe.cx,Ce=ae[1]-pe.cy,$e=Math.sqrt(_e*_e+Ce*Ce);return $e<=pe.r&&$e>=pe.r0}},oe.type="pie",oe}(ChartView$1);const PieView$1=PieView;function createSeriesDataSimply($,oe,ae){oe=isArray$1(oe)&&{coordDimensions:oe}||extend({encodeDefine:$.getEncode()},oe);var ie=$.getSource(),le=prepareSeriesDataSchema(ie,oe).dimensions,pe=new SeriesData$1(le,$);return pe.initData(ie,ae),pe}var LegendVisualProvider=function(){function $(oe,ae){this._getDataWithEncodedVisual=oe,this._getRawData=ae}return $.prototype.getAllNames=function(){var oe=this._getRawData();return oe.mapArray(oe.getName)},$.prototype.containName=function(oe){var ae=this._getRawData();return ae.indexOfName(oe)>=0},$.prototype.indexOfName=function(oe){var ae=this._getDataWithEncodedVisual();return ae.indexOfName(oe)},$.prototype.getItemVisual=function(oe,ae){var ie=this._getDataWithEncodedVisual();return ie.getItemVisual(oe,ae)},$}();const LegendVisualProvider$1=LegendVisualProvider;var innerData=makeInner(),PieSeriesModel=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.init=function(ae){$.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this)),this._defaultLabelLine(ae)},oe.prototype.mergeOption=function(){$.prototype.mergeOption.apply(this,arguments)},oe.prototype.getInitialData=function(){return createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:curry$1(makeSeriesEncodeForNameBased,this)})},oe.prototype.getDataParams=function(ae){var ie=this.getData(),le=innerData(ie),pe=le.seats;if(!pe){var _e=[];ie.each(ie.mapDimension("value"),function($e){_e.push($e)}),pe=le.seats=getPercentSeats(_e,ie.hostModel.get("percentPrecision"))}var Ce=$.prototype.getDataParams.call(this,ae);return Ce.percent=pe[ae]||0,Ce.$vars.push("percent"),Ce},oe.prototype._defaultLabelLine=function(ae){defaultEmphasis(ae,"labelLine",["show"]);var ie=ae.labelLine,le=ae.emphasis.labelLine;ie.show=ie.show&&ae.label.show,le.show=le.show&&ae.emphasis.label.show},oe.type="series.pie",oe.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},oe}(SeriesModel$1);const PieSeriesModel$1=PieSeriesModel;function negativeDataFilter($){return{seriesType:$,reset:function(oe,ae){var ie=oe.getData();ie.filterSelf(function(le){var pe=ie.mapDimension("value"),_e=ie.get(pe,le);return!(isNumber(_e)&&!isNaN(_e)&&_e<0)})}}}function install$h($){$.registerChartView(PieView$1),$.registerSeriesModel(PieSeriesModel$1),createLegacyDataSelectAction("pie",$.registerAction),$.registerLayout(curry$1(pieLayout,"pie")),$.registerProcessor(dataFilter("pie")),$.registerProcessor(negativeDataFilter("pie"))}var GridModel=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.type="grid",oe.dependencies=["xAxis","yAxis"],oe.layoutMode="box",oe.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},oe}(ComponentModel$1);const GridModel$1=GridModel;var CartesianAxisModel=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",SINGLE_REFERRING).models[0]},oe.type="cartesian2dAxis",oe}(ComponentModel$1);mixin(CartesianAxisModel,AxisModelCommonMixin);var defaultOption$1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},categoryAxis=merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},defaultOption$1),valueAxis=merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},defaultOption$1),timeAxis=merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},valueAxis),logAxis=defaults({logBase:10},valueAxis);const axisDefault={category:categoryAxis,value:valueAxis,time:timeAxis,log:logAxis};var AXIS_TYPES={value:1,category:1,time:1,log:1};function axisModelCreator($,oe,ae,ie){each$c(AXIS_TYPES,function(le,pe){var _e=merge(merge({},axisDefault[pe],!0),ie,!0),Ce=function($e){__extends(xe,$e);function xe(){var Ie=$e!==null&&$e.apply(this,arguments)||this;return Ie.type=oe+"Axis."+pe,Ie}return xe.prototype.mergeDefaultAndTheme=function(Ie,Ne){var Fe=fetchLayoutMode(this),ze=Fe?getLayoutParams(Ie):{},At=Ne.getTheme();merge(Ie,At.get(pe+"Axis")),merge(Ie,this.getDefaultOption()),Ie.type=getAxisType(Ie),Fe&&mergeLayoutParam(Ie,ze,Fe)},xe.prototype.optionUpdated=function(){var Ie=this.option;Ie.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},xe.prototype.getCategories=function(Ie){var Ne=this.option;if(Ne.type==="category")return Ie?Ne.data:this.__ordinalMeta.categories},xe.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},xe.type=oe+"Axis."+pe,xe.defaultOption=_e,xe}(ae);$.registerComponentModel(Ce)}),$.registerSubTypeDefaulter(oe+"Axis",getAxisType)}function getAxisType($){return $.type||($.data?"category":"value")}var Cartesian=function(){function $(oe){this.type="cartesian",this._dimList=[],this._axes={},this.name=oe||""}return $.prototype.getAxis=function(oe){return this._axes[oe]},$.prototype.getAxes=function(){return map$2(this._dimList,function(oe){return this._axes[oe]},this)},$.prototype.getAxesByScale=function(oe){return oe=oe.toLowerCase(),filter(this.getAxes(),function(ae){return ae.scale.type===oe})},$.prototype.addAxis=function(oe){var ae=oe.dim;this._axes[ae]=oe,this._dimList.push(ae)},$}();const Cartesian$1=Cartesian;var cartesian2DDimensions=["x","y"];function canCalculateAffineTransform($){return $.type==="interval"||$.type==="time"}var Cartesian2D=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type="cartesian2d",ae.dimensions=cartesian2DDimensions,ae}return oe.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var ae=this.getAxis("x").scale,ie=this.getAxis("y").scale;if(!(!canCalculateAffineTransform(ae)||!canCalculateAffineTransform(ie))){var le=ae.getExtent(),pe=ie.getExtent(),_e=this.dataToPoint([le[0],pe[0]]),Ce=this.dataToPoint([le[1],pe[1]]),$e=le[1]-le[0],xe=pe[1]-pe[0];if(!(!$e||!xe)){var Ie=(Ce[0]-_e[0])/$e,Ne=(Ce[1]-_e[1])/xe,Fe=_e[0]-le[0]*Ie,ze=_e[1]-pe[0]*Ne,At=this._transform=[Ie,0,0,Ne,Fe,ze];this._invTransform=invert([],At)}}},oe.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},oe.prototype.containPoint=function(ae){var ie=this.getAxis("x"),le=this.getAxis("y");return ie.contain(ie.toLocalCoord(ae[0]))&&le.contain(le.toLocalCoord(ae[1]))},oe.prototype.containData=function(ae){return this.getAxis("x").containData(ae[0])&&this.getAxis("y").containData(ae[1])},oe.prototype.containZone=function(ae,ie){var le=this.dataToPoint(ae),pe=this.dataToPoint(ie),_e=this.getArea(),Ce=new BoundingRect$1(le[0],le[1],pe[0]-le[0],pe[1]-le[1]);return _e.intersect(Ce)},oe.prototype.dataToPoint=function(ae,ie,le){le=le||[];var pe=ae[0],_e=ae[1];if(this._transform&&pe!=null&&isFinite(pe)&&_e!=null&&isFinite(_e))return applyTransform$1(le,ae,this._transform);var Ce=this.getAxis("x"),$e=this.getAxis("y");return le[0]=Ce.toGlobalCoord(Ce.dataToCoord(pe,ie)),le[1]=$e.toGlobalCoord($e.dataToCoord(_e,ie)),le},oe.prototype.clampData=function(ae,ie){var le=this.getAxis("x").scale,pe=this.getAxis("y").scale,_e=le.getExtent(),Ce=pe.getExtent(),$e=le.parse(ae[0]),xe=pe.parse(ae[1]);return ie=ie||[],ie[0]=Math.min(Math.max(Math.min(_e[0],_e[1]),$e),Math.max(_e[0],_e[1])),ie[1]=Math.min(Math.max(Math.min(Ce[0],Ce[1]),xe),Math.max(Ce[0],Ce[1])),ie},oe.prototype.pointToData=function(ae,ie){var le=[];if(this._invTransform)return applyTransform$1(le,ae,this._invTransform);var pe=this.getAxis("x"),_e=this.getAxis("y");return le[0]=pe.coordToData(pe.toLocalCoord(ae[0]),ie),le[1]=_e.coordToData(_e.toLocalCoord(ae[1]),ie),le},oe.prototype.getOtherAxis=function(ae){return this.getAxis(ae.dim==="x"?"y":"x")},oe.prototype.getArea=function(){var ae=this.getAxis("x").getGlobalExtent(),ie=this.getAxis("y").getGlobalExtent(),le=Math.min(ae[0],ae[1]),pe=Math.min(ie[0],ie[1]),_e=Math.max(ae[0],ae[1])-le,Ce=Math.max(ie[0],ie[1])-pe;return new BoundingRect$1(le,pe,_e,Ce)},oe}(Cartesian$1),Axis2D=function($){__extends(oe,$);function oe(ae,ie,le,pe,_e){var Ce=$.call(this,ae,ie,le)||this;return Ce.index=0,Ce.type=pe||"value",Ce.position=_e||"bottom",Ce}return oe.prototype.isHorizontal=function(){var ae=this.position;return ae==="top"||ae==="bottom"},oe.prototype.getGlobalExtent=function(ae){var ie=this.getExtent();return ie[0]=this.toGlobalCoord(ie[0]),ie[1]=this.toGlobalCoord(ie[1]),ae&&ie[0]>ie[1]&&ie.reverse(),ie},oe.prototype.pointToData=function(ae,ie){return this.coordToData(this.toLocalCoord(ae[this.dim==="x"?0:1]),ie)},oe.prototype.setCategorySortInfo=function(ae){if(this.type!=="category")return!1;this.model.option.categorySortInfo=ae,this.scale.setSortInfo(ae)},oe}(Axis$1);const Axis2D$1=Axis2D;function layout$1($,oe,ae){ae=ae||{};var ie=$.coordinateSystem,le=oe.axis,pe={},_e=le.getAxesOnZeroOf()[0],Ce=le.position,$e=_e?"onZero":Ce,xe=le.dim,Ie=ie.getRect(),Ne=[Ie.x,Ie.x+Ie.width,Ie.y,Ie.y+Ie.height],Fe={left:0,right:1,top:0,bottom:1,onZero:2},ze=oe.get("offset")||0,At=xe==="x"?[Ne[2]-ze,Ne[3]+ze]:[Ne[0]-ze,Ne[1]+ze];if(_e){var Lt=_e.toGlobalCoord(_e.dataToCoord(0));At[Fe.onZero]=Math.max(Math.min(Lt,At[1]),At[0])}pe.position=[xe==="y"?At[Fe[$e]]:Ne[0],xe==="x"?At[Fe[$e]]:Ne[3]],pe.rotation=Math.PI/2*(xe==="x"?0:1);var hn={top:-1,bottom:1,left:-1,right:1};pe.labelDirection=pe.tickDirection=pe.nameDirection=hn[Ce],pe.labelOffset=_e?At[Fe[Ce]]-At[Fe.onZero]:0,oe.get(["axisTick","inside"])&&(pe.tickDirection=-pe.tickDirection),retrieve(ae.labelInside,oe.get(["axisLabel","inside"]))&&(pe.labelDirection=-pe.labelDirection);var vn=oe.get(["axisLabel","rotate"]);return pe.labelRotate=$e==="top"?-vn:vn,pe.z2=1,pe}function isCartesian2DSeries($){return $.get("coordinateSystem")==="cartesian2d"}function findAxisModels($){var oe={xAxisModel:null,yAxisModel:null};return each$c(oe,function(ae,ie){var le=ie.replace(/Model$/,""),pe=$.getReferringComponents(le,SINGLE_REFERRING).models[0];oe[ie]=pe}),oe}var mathLog=Math.log;function alignScaleTicks($,oe,ae){var ie=IntervalScale$1.prototype,le=ie.getTicks.call(ae),pe=ie.getTicks.call(ae,!0),_e=le.length-1,Ce=ie.getInterval.call(ae),$e=getScaleExtent($,oe),xe=$e.extent,Ie=$e.fixMin,Ne=$e.fixMax;if($.type==="log"){var Fe=mathLog($.base);xe=[mathLog(xe[0])/Fe,mathLog(xe[1])/Fe]}$.setExtent(xe[0],xe[1]),$.calcNiceExtent({splitNumber:_e,fixMin:Ie,fixMax:Ne});var ze=ie.getExtent.call($);Ie&&(xe[0]=ze[0]),Ne&&(xe[1]=ze[1]);var At=ie.getInterval.call($),Lt=xe[0],hn=xe[1];if(Ie&&Ne)At=(hn-Lt)/_e;else if(Ie)for(hn=xe[0]+At*_e;hnxe[0]&&isFinite(Lt)&&isFinite(xe[0]);)At=increaseInterval(At),Lt=xe[1]-At*_e;else{var vn=$.getTicks().length-1;vn>_e&&(At=increaseInterval(At));var _n=At*_e;hn=Math.ceil(xe[1]/At)*At,Lt=round$1(hn-_n),Lt<0&&xe[0]>=0?(Lt=0,hn=round$1(_n)):hn>0&&xe[1]<=0&&(hn=0,Lt=-round$1(_n))}var bn=(le[0].value-pe[0].value)/Ce,Cn=(le[_e].value-pe[_e].value)/Ce;ie.setExtent.call($,Lt+At*bn,hn+At*Cn),ie.setInterval.call($,At),(bn||Cn)&&ie.setNiceExtent.call($,Lt+At,hn-At)}var Grid=function(){function $(oe,ae,ie){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cartesian2DDimensions,this._initCartesian(oe,ae,ie),this.model=oe}return $.prototype.getRect=function(){return this._rect},$.prototype.update=function(oe,ae){var ie=this._axesMap;this._updateScale(oe,this.model);function le(_e){var Ce,$e=keys(_e),xe=$e.length;if(xe){for(var Ie=[],Ne=xe-1;Ne>=0;Ne--){var Fe=+$e[Ne],ze=_e[Fe],At=ze.model,Lt=ze.scale;isIntervalOrLogScale(Lt)&&At.get("alignTicks")&&At.get("interval")==null?Ie.push(ze):(niceScaleExtent(Lt,At),isIntervalOrLogScale(Lt)&&(Ce=ze))}Ie.length&&(Ce||(Ce=Ie.pop(),niceScaleExtent(Ce.scale,Ce.model)),each$c(Ie,function(hn){alignScaleTicks(hn.scale,hn.model,Ce.scale)}))}}le(ie.x),le(ie.y);var pe={};each$c(ie.x,function(_e){fixAxisOnZero(ie,"y",_e,pe)}),each$c(ie.y,function(_e){fixAxisOnZero(ie,"x",_e,pe)}),this.resize(this.model,ae)},$.prototype.resize=function(oe,ae,ie){var le=oe.getBoxLayoutParams(),pe=!ie&&oe.get("containLabel"),_e=getLayoutRect(le,{width:ae.getWidth(),height:ae.getHeight()});this._rect=_e;var Ce=this._axesList;$e(),pe&&(each$c(Ce,function(xe){if(!xe.model.get(["axisLabel","inside"])){var Ie=estimateLabelUnionRect(xe);if(Ie){var Ne=xe.isHorizontal()?"height":"width",Fe=xe.model.get(["axisLabel","margin"]);_e[Ne]-=Ie[Ne]+Fe,xe.position==="top"?_e.y+=Ie.height+Fe:xe.position==="left"&&(_e.x+=Ie.width+Fe)}}}),$e()),each$c(this._coordsList,function(xe){xe.calcAffineTransform()});function $e(){each$c(Ce,function(xe){var Ie=xe.isHorizontal(),Ne=Ie?[0,_e.width]:[0,_e.height],Fe=xe.inverse?1:0;xe.setExtent(Ne[Fe],Ne[1-Fe]),updateAxisTransform(xe,Ie?_e.x:_e.y)})}},$.prototype.getAxis=function(oe,ae){var ie=this._axesMap[oe];if(ie!=null)return ie[ae||0]},$.prototype.getAxes=function(){return this._axesList.slice()},$.prototype.getCartesian=function(oe,ae){if(oe!=null&&ae!=null){var ie="x"+oe+"y"+ae;return this._coordsMap[ie]}isObject$3(oe)&&(ae=oe.yAxisIndex,oe=oe.xAxisIndex);for(var le=0,pe=this._coordsList;le0?"top":"bottom",pe="center"):isRadianAroundZero(le-PI)?(_e=ie>0?"bottom":"top",pe="center"):(_e="middle",le>0&&le0?"right":"left":pe=ie>0?"left":"right"),{rotation:le,textAlign:pe,textVerticalAlign:_e}},$.makeAxisEventDataBase=function(oe){var ae={componentType:oe.mainType,componentIndex:oe.componentIndex};return ae[oe.mainType+"Index"]=oe.componentIndex,ae},$.isLabelSilent=function(oe){var ae=oe.get("tooltip");return oe.get("silent")||!(oe.get("triggerEvent")||ae&&ae.show)},$}(),builders={axisLine:function($,oe,ae,ie){var le=oe.get(["axisLine","show"]);if(le==="auto"&&$.handleAutoShown&&(le=$.handleAutoShown("axisLine")),!!le){var pe=oe.axis.getExtent(),_e=ie.transform,Ce=[pe[0],0],$e=[pe[1],0],xe=Ce[0]>$e[0];_e&&(applyTransform$1(Ce,Ce,_e),applyTransform$1($e,$e,_e));var Ie=extend({lineCap:"round"},oe.getModel(["axisLine","lineStyle"]).getLineStyle()),Ne=new Line$1({shape:{x1:Ce[0],y1:Ce[1],x2:$e[0],y2:$e[1]},style:Ie,strokeContainThreshold:$.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(Ne.shape,Ne.style.lineWidth),Ne.anid="line",ae.add(Ne);var Fe=oe.get(["axisLine","symbol"]);if(Fe!=null){var ze=oe.get(["axisLine","symbolSize"]);isString(Fe)&&(Fe=[Fe,Fe]),(isString(ze)||isNumber(ze))&&(ze=[ze,ze]);var At=normalizeSymbolOffset(oe.get(["axisLine","symbolOffset"])||0,ze),Lt=ze[0],hn=ze[1];each$c([{rotate:$.rotation+Math.PI/2,offset:At[0],r:0},{rotate:$.rotation-Math.PI/2,offset:At[1],r:Math.sqrt((Ce[0]-$e[0])*(Ce[0]-$e[0])+(Ce[1]-$e[1])*(Ce[1]-$e[1]))}],function(vn,_n){if(Fe[_n]!=="none"&&Fe[_n]!=null){var bn=createSymbol(Fe[_n],-Lt/2,-hn/2,Lt,hn,Ie.stroke,!0),Cn=vn.r+vn.offset,En=xe?$e:Ce;bn.attr({rotation:vn.rotate,x:En[0]+Cn*Math.cos($.rotation),y:En[1]-Cn*Math.sin($.rotation),silent:!0,z2:11}),ae.add(bn)}})}}},axisTickLabel:function($,oe,ae,ie){var le=buildAxisMajorTicks(ae,ie,oe,$),pe=buildAxisLabel(ae,ie,oe,$);if(fixMinMaxLabelShow(oe,pe,le),buildAxisMinorTicks(ae,ie,oe,$.tickDirection),oe.get(["axisLabel","hideOverlap"])){var _e=prepareLayoutList(map$2(pe,function(Ce){return{label:Ce,priority:Ce.z2,defaultAttr:{ignore:Ce.ignore}}}));hideOverlap(_e)}},axisName:function($,oe,ae,ie){var le=retrieve($.axisName,oe.get("name"));if(le){var pe=oe.get("nameLocation"),_e=$.nameDirection,Ce=oe.getModel("nameTextStyle"),$e=oe.get("nameGap")||0,xe=oe.axis.getExtent(),Ie=xe[0]>xe[1]?-1:1,Ne=[pe==="start"?xe[0]-Ie*$e:pe==="end"?xe[1]+Ie*$e:(xe[0]+xe[1])/2,isNameLocationCenter(pe)?$.labelOffset+_e*$e:0],Fe,ze=oe.get("nameRotate");ze!=null&&(ze=ze*PI/180);var At;isNameLocationCenter(pe)?Fe=AxisBuilder.innerTextLayout($.rotation,ze??$.rotation,_e):(Fe=endTextLayout($.rotation,pe,ze||0,xe),At=$.axisNameAvailableWidth,At!=null&&(At=Math.abs(At/Math.sin(Fe.rotation)),!isFinite(At)&&(At=null)));var Lt=Ce.getFont(),hn=oe.get("nameTruncate",!0)||{},vn=hn.ellipsis,_n=retrieve($.nameTruncateMaxWidth,hn.maxWidth,At),bn=new ZRText$1({x:Ne[0],y:Ne[1],rotation:Fe.rotation,silent:AxisBuilder.isLabelSilent(oe),style:createTextStyle$1(Ce,{text:le,font:Lt,overflow:"truncate",width:_n,ellipsis:vn,fill:Ce.getTextColor()||oe.get(["axisLine","lineStyle","color"]),align:Ce.get("align")||Fe.textAlign,verticalAlign:Ce.get("verticalAlign")||Fe.textVerticalAlign}),z2:1});if(setTooltipConfig({el:bn,componentModel:oe,itemName:le}),bn.__fullText=le,bn.anid="name",oe.get("triggerEvent")){var Cn=AxisBuilder.makeAxisEventDataBase(oe);Cn.targetType="axisName",Cn.name=le,getECData(bn).eventData=Cn}ie.add(bn),bn.updateTransform(),ae.add(bn),bn.decomposeTransform()}}};function endTextLayout($,oe,ae,ie){var le=remRadian(ae-$),pe,_e,Ce=ie[0]>ie[1],$e=oe==="start"&&!Ce||oe!=="start"&&Ce;return isRadianAroundZero(le-PI/2)?(_e=$e?"bottom":"top",pe="center"):isRadianAroundZero(le-PI*1.5)?(_e=$e?"top":"bottom",pe="center"):(_e="middle",lePI/2?pe=$e?"left":"right":pe=$e?"right":"left"),{rotation:le,textAlign:pe,textVerticalAlign:_e}}function fixMinMaxLabelShow($,oe,ae){if(!shouldShowAllLabels($.axis)){var ie=$.get(["axisLabel","showMinLabel"]),le=$.get(["axisLabel","showMaxLabel"]);oe=oe||[],ae=ae||[];var pe=oe[0],_e=oe[1],Ce=oe[oe.length-1],$e=oe[oe.length-2],xe=ae[0],Ie=ae[1],Ne=ae[ae.length-1],Fe=ae[ae.length-2];ie===!1?(ignoreEl(pe),ignoreEl(xe)):isTwoLabelOverlapped(pe,_e)&&(ie?(ignoreEl(_e),ignoreEl(Ie)):(ignoreEl(pe),ignoreEl(xe))),le===!1?(ignoreEl(Ce),ignoreEl(Ne)):isTwoLabelOverlapped($e,Ce)&&(le?(ignoreEl($e),ignoreEl(Fe)):(ignoreEl(Ce),ignoreEl(Ne)))}}function ignoreEl($){$&&($.ignore=!0)}function isTwoLabelOverlapped($,oe){var ae=$&&$.getBoundingRect().clone(),ie=oe&&oe.getBoundingRect().clone();if(!(!ae||!ie)){var le=identity([]);return rotate(le,le,-$.rotation),ae.applyTransform(mul([],le,$.getLocalTransform())),ie.applyTransform(mul([],le,oe.getLocalTransform())),ae.intersect(ie)}}function isNameLocationCenter($){return $==="middle"||$==="center"}function createTicks($,oe,ae,ie,le){for(var pe=[],_e=[],Ce=[],$e=0;$e<$.length;$e++){var xe=$[$e].coord;_e[0]=xe,_e[1]=0,Ce[0]=xe,Ce[1]=ae,oe&&(applyTransform$1(_e,_e,oe),applyTransform$1(Ce,Ce,oe));var Ie=new Line$1({shape:{x1:_e[0],y1:_e[1],x2:Ce[0],y2:Ce[1]},style:ie,z2:2,autoBatch:!0,silent:!0});subPixelOptimizeLine(Ie.shape,Ie.style.lineWidth),Ie.anid=le+"_"+$[$e].tickValue,pe.push(Ie)}return pe}function buildAxisMajorTicks($,oe,ae,ie){var le=ae.axis,pe=ae.getModel("axisTick"),_e=pe.get("show");if(_e==="auto"&&ie.handleAutoShown&&(_e=ie.handleAutoShown("axisTick")),!(!_e||le.scale.isBlank())){for(var Ce=pe.getModel("lineStyle"),$e=ie.tickDirection*pe.get("length"),xe=le.getTicksCoords(),Ie=createTicks(xe,oe.transform,$e,defaults(Ce.getLineStyle(),{stroke:ae.get(["axisLine","lineStyle","color"])}),"ticks"),Ne=0;Ne=0||$===oe}function fixValue($){var oe=getAxisInfo($);if(oe){var ae=oe.axisPointerModel,ie=oe.axis.scale,le=ae.option,pe=ae.get("status"),_e=ae.get("value");_e!=null&&(_e=ie.parse(_e));var Ce=isHandleTrigger(ae);pe==null&&(le.status=Ce?"show":"hide");var $e=ie.getExtent().slice();$e[0]>$e[1]&&$e.reverse(),(_e==null||_e>$e[1])&&(_e=$e[1]),_e<$e[0]&&(_e=$e[0]),le.value=_e,Ce&&(le.status=oe.axis.scale.isBlank()?"hide":"show")}}function getAxisInfo($){var oe=($.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return oe&&oe.axesInfo[makeKey($)]}function getAxisPointerModel($){var oe=getAxisInfo($);return oe&&oe.axisPointerModel}function isHandleTrigger($){return!!$.get(["handle","show"])}function makeKey($){return $.type+"||"+$.id}var axisPointerClazz={},AxisView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.render=function(ae,ie,le,pe){this.axisPointerClass&&fixValue(ae),$.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(ae,le,!0)},oe.prototype.updateAxisPointer=function(ae,ie,le,pe){this._doUpdateAxisPointerClass(ae,le,!1)},oe.prototype.remove=function(ae,ie){var le=this._axisPointer;le&&le.remove(ie)},oe.prototype.dispose=function(ae,ie){this._disposeAxisPointer(ie),$.prototype.dispose.apply(this,arguments)},oe.prototype._doUpdateAxisPointerClass=function(ae,ie,le){var pe=oe.getAxisPointerClass(this.axisPointerClass);if(pe){var _e=getAxisPointerModel(ae);_e?(this._axisPointer||(this._axisPointer=new pe)).render(ae,_e,ie,le):this._disposeAxisPointer(ie)}},oe.prototype._disposeAxisPointer=function(ae){this._axisPointer&&this._axisPointer.dispose(ae),this._axisPointer=null},oe.registerAxisPointerClass=function(ae,ie){axisPointerClazz[ae]=ie},oe.getAxisPointerClass=function(ae){return ae&&axisPointerClazz[ae]},oe.type="axis",oe}(ComponentView$1);const AxisView$1=AxisView;var inner$6=makeInner();function rectCoordAxisBuildSplitArea($,oe,ae,ie){var le=ae.axis;if(!le.scale.isBlank()){var pe=ae.getModel("splitArea"),_e=pe.getModel("areaStyle"),Ce=_e.get("color"),$e=ie.coordinateSystem.getRect(),xe=le.getTicksCoords({tickModel:pe,clamp:!0});if(xe.length){var Ie=Ce.length,Ne=inner$6($).splitAreaColors,Fe=createHashMap(),ze=0;if(Ne)for(var At=0;At3?1.4:_e>1?1.2:1.1,Ie=pe>0?xe:1/xe;checkPointerAndTrigger(this,"zoom","zoomOnMouseWheel",ae,{scale:Ie,originX:Ce,originY:$e,isAvailableBehavior:null})}if(le){var Ne=Math.abs(pe),Fe=(pe>0?1:-1)*(Ne>3?.4:Ne>1?.15:.05);checkPointerAndTrigger(this,"scrollMove","moveOnMouseWheel",ae,{scrollDelta:Fe,originX:Ce,originY:$e,isAvailableBehavior:null})}}},oe.prototype._pinchHandler=function(ae){if(!isTaken(this._zr,"globalPan")){var ie=ae.pinchScale>1?1.1:1/1.1;checkPointerAndTrigger(this,"zoom",null,ae,{scale:ie,originX:ae.pinchX,originY:ae.pinchY,isAvailableBehavior:null})}},oe}(Eventful$1);function checkPointerAndTrigger($,oe,ae,ie,le){$.pointerChecker&&$.pointerChecker(ie,le.originX,le.originY)&&(stop(ie.event),trigger$1($,oe,ae,ie,le))}function trigger$1($,oe,ae,ie,le){le.isAvailableBehavior=bind$1(isAvailableBehavior,null,ae,ie),$.trigger(oe,le)}function isAvailableBehavior($,oe,ae){var ie=ae[$];return!$||ie&&(!isString(ie)||oe.event[ie+"Key"])}const RoamController$1=RoamController;var IRRELEVANT_EXCLUDES={axisPointer:1,tooltip:1,brush:1};function onIrrelevantElement($,oe,ae){var ie=oe.getComponentByElement($.topTarget),le=ie&&ie.coordinateSystem;return ie&&ie!==ae&&!IRRELEVANT_EXCLUDES.hasOwnProperty(ie.mainType)&&le&&le.model!==ae}var each$9=each$c,isObject=isObject$3,CATEGORY_DEFAULT_VISUAL_INDEX=-1,VisualMapping=function(){function $(oe){var ae=oe.mappingMethod,ie=oe.type,le=this.option=clone$3(oe);this.type=ie,this.mappingMethod=ae,this._normalizeData=normalizers[ae];var pe=$.visualHandlers[ie];this.applyVisual=pe.applyVisual,this.getColorMapper=pe.getColorMapper,this._normalizedToVisual=pe._normalizedToVisual[ae],ae==="piecewise"?(normalizeVisualRange(le),preprocessForPiecewise(le)):ae==="category"?le.categories?preprocessForSpecifiedCategory(le):normalizeVisualRange(le,!0):(assert(ae!=="linear"||le.dataExtent),normalizeVisualRange(le))}return $.prototype.mapValueToVisual=function(oe){var ae=this._normalizeData(oe);return this._normalizedToVisual(ae,oe)},$.prototype.getNormalizer=function(){return bind$1(this._normalizeData,this)},$.listVisualTypes=function(){return keys($.visualHandlers)},$.isValidType=function(oe){return $.visualHandlers.hasOwnProperty(oe)},$.eachVisual=function(oe,ae,ie){isObject$3(oe)?each$c(oe,ae,ie):ae.call(ie,oe)},$.mapVisual=function(oe,ae,ie){var le,pe=isArray$1(oe)?[]:isObject$3(oe)?{}:(le=!0,null);return $.eachVisual(oe,function(_e,Ce){var $e=ae.call(ie,_e,Ce);le?pe=$e:pe[Ce]=$e}),pe},$.retrieveVisuals=function(oe){var ae={},ie;return oe&&each$9($.visualHandlers,function(le,pe){oe.hasOwnProperty(pe)&&(ae[pe]=oe[pe],ie=!0)}),ie?ae:null},$.prepareVisualTypes=function(oe){if(isArray$1(oe))oe=oe.slice();else if(isObject(oe)){var ae=[];each$9(oe,function(ie,le){ae.push(le)}),oe=ae}else return[];return oe.sort(function(ie,le){return le==="color"&&ie!=="color"&&ie.indexOf("color")===0?1:-1}),oe},$.dependsOn=function(oe,ae){return ae==="color"?!!(oe&&oe.indexOf(ae)===0):oe===ae},$.findPieceIndex=function(oe,ae,ie){for(var le,pe=1/0,_e=0,Ce=ae.length;_e=0;pe--)ie[pe]==null&&(delete ae[oe[pe]],oe.pop())}function normalizeVisualRange($,oe){var ae=$.visual,ie=[];isObject$3(ae)?each$9(ae,function(pe){ie.push(pe)}):ae!=null&&ie.push(ae);var le={color:1,symbol:1};!oe&&ie.length===1&&!le.hasOwnProperty($.type)&&(ie[1]=ie[0]),setVisualToOption($,ie)}function makePartialColorVisualHandler($){return{applyVisual:function(oe,ae,ie){var le=this.mapValueToVisual(oe);ie("color",$(ae("color"),le))},_normalizedToVisual:createNormalizedToNumericVisual([0,1])}}function doMapToArray($){var oe=this.option.visual;return oe[Math.round(linearMap$2($,[0,1],[0,oe.length-1],!0))]||{}}function makeApplyVisual($){return function(oe,ae,ie){ie($,this.mapValueToVisual(oe))}}function doMapCategory($){var oe=this.option.visual;return oe[this.option.loop&&$!==CATEGORY_DEFAULT_VISUAL_INDEX?$%oe.length:$]}function doMapFixed(){return this.option.visual[0]}function createNormalizedToNumericVisual($){return{linear:function(oe){return linearMap$2(oe,$,this.option.visual,!0)},category:doMapCategory,piecewise:function(oe,ae){var ie=getSpecifiedVisual.call(this,ae);return ie==null&&(ie=linearMap$2(oe,$,this.option.visual,!0)),ie},fixed:doMapFixed}}function getSpecifiedVisual($){var oe=this.option,ae=oe.pieceList;if(oe.hasSpecialVisual){var ie=VisualMapping.findPieceIndex($,ae),le=ae[ie];if(le&&le.visual)return le.visual[this.type]}}function setVisualToOption($,oe){return $.visual=oe,$.type==="color"&&($.parsedVisual=map$2(oe,function(ae){var ie=parse$1(ae);return ie||[0,0,0,1]})),oe}var normalizers={linear:function($){return linearMap$2($,this.option.dataExtent,[0,1],!0)},piecewise:function($){var oe=this.option.pieceList,ae=VisualMapping.findPieceIndex($,oe,!0);if(ae!=null)return linearMap$2(ae,[0,oe.length-1],[0,1],!0)},category:function($){var oe=this.option.categories?this.option.categoryMap[$]:$;return oe??CATEGORY_DEFAULT_VISUAL_INDEX},fixed:noop};function littleThan($,oe,ae){return $?oe<=ae:oepe&&(oe[1-ie]=oe[ie]+Ne.sign*pe),oe}function getSpanSign($,oe){var ae=$[oe]-$[1-oe];return{span:Math.abs(ae),sign:ae>0?-1:ae<0?1:oe?-1:1}}function restrict($,oe){return Math.min(oe[1]!=null?oe[1]:1/0,Math.max(oe[0]!=null?oe[0]:-1/0,$))}var BRUSH_PANEL_GLOBAL=!0,mathMin$1=Math.min,mathMax$1=Math.max,mathPow=Math.pow,COVER_Z=1e4,UNSELECT_THRESHOLD=6,MIN_RESIZE_LINE_WIDTH=6,MUTEX_RESOURCE_KEY="globalPan",DIRECTION_MAP={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},CURSOR_MAP={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},DEFAULT_BRUSH_OPT={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},baseUID=0,BrushController=function($){__extends(oe,$);function oe(ae){var ie=$.call(this)||this;return ie._track=[],ie._covers=[],ie._handlers={},ie._zr=ae,ie.group=new Group$3,ie._uid="brushController_"+baseUID++,each$c(pointerHandlers,function(le,pe){this._handlers[pe]=bind$1(le,this)},ie),ie}return oe.prototype.enableBrush=function(ae){return this._brushType&&this._doDisableBrush(),ae.brushType&&this._doEnableBrush(ae),this},oe.prototype._doEnableBrush=function(ae){var ie=this._zr;this._enableGlobalPan||take(ie,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(le,pe){ie.on(pe,le)}),this._brushType=ae.brushType,this._brushOption=merge(clone$3(DEFAULT_BRUSH_OPT),ae,!0)},oe.prototype._doDisableBrush=function(){var ae=this._zr;release(ae,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(ie,le){ae.off(le,ie)}),this._brushType=this._brushOption=null},oe.prototype.setPanels=function(ae){if(ae&&ae.length){var ie=this._panels={};each$c(ae,function(le){ie[le.panelId]=clone$3(le)})}else this._panels=null;return this},oe.prototype.mount=function(ae){ae=ae||{},this._enableGlobalPan=ae.enableGlobalPan;var ie=this.group;return this._zr.add(ie),ie.attr({x:ae.x||0,y:ae.y||0,rotation:ae.rotation||0,scaleX:ae.scaleX||1,scaleY:ae.scaleY||1}),this._transform=ie.getLocalTransform(),this},oe.prototype.updateCovers=function(ae){ae=map$2(ae,function(Fe){return merge(clone$3(DEFAULT_BRUSH_OPT),Fe,!0)});var ie="\0-brush-index-",le=this._covers,pe=this._covers=[],_e=this,Ce=this._creatingCover;return new DataDiffer$1(le,ae,xe,$e).add(Ie).update(Ie).remove(Ne).execute(),this;function $e(Fe,ze){return(Fe.id!=null?Fe.id:ie+ze)+"-"+Fe.brushType}function xe(Fe,ze){return $e(Fe.__brushOption,ze)}function Ie(Fe,ze){var At=ae[Fe];if(ze!=null&&le[ze]===Ce)pe[Fe]=le[ze];else{var Lt=pe[Fe]=ze!=null?(le[ze].__brushOption=At,le[ze]):endCreating(_e,createCover(_e,At));updateCoverAfterCreation(_e,Lt)}}function Ne(Fe){le[Fe]!==Ce&&_e.group.remove(le[Fe])}},oe.prototype.unmount=function(){return this.enableBrush(!1),clearCovers(this),this._zr.remove(this.group),this},oe.prototype.dispose=function(){this.unmount(),this.off()},oe}(Eventful$1);function createCover($,oe){var ae=coverRenderers[oe.brushType].createCover($,oe);return ae.__brushOption=oe,updateZ(ae,oe),$.group.add(ae),ae}function endCreating($,oe){var ae=getCoverRenderer(oe);return ae.endCreating&&(ae.endCreating($,oe),updateZ(oe,oe.__brushOption)),oe}function updateCoverShape($,oe){var ae=oe.__brushOption;getCoverRenderer(oe).updateCoverShape($,oe,ae.range,ae)}function updateZ($,oe){var ae=oe.z;ae==null&&(ae=COVER_Z),$.traverse(function(ie){ie.z=ae,ie.z2=ae})}function updateCoverAfterCreation($,oe){getCoverRenderer(oe).updateCommon($,oe),updateCoverShape($,oe)}function getCoverRenderer($){return coverRenderers[$.__brushOption.brushType]}function getPanelByPoint($,oe,ae){var ie=$._panels;if(!ie)return BRUSH_PANEL_GLOBAL;var le,pe=$._transform;return each$c(ie,function(_e){_e.isTargetByCursor(oe,ae,pe)&&(le=_e)}),le}function getPanelByCover($,oe){var ae=$._panels;if(!ae)return BRUSH_PANEL_GLOBAL;var ie=oe.__brushOption.panelId;return ie!=null?ae[ie]:BRUSH_PANEL_GLOBAL}function clearCovers($){var oe=$._covers,ae=oe.length;return each$c(oe,function(ie){$.group.remove(ie)},$),oe.length=0,!!ae}function trigger($,oe){var ae=map$2($._covers,function(ie){var le=ie.__brushOption,pe=clone$3(le.range);return{brushType:le.brushType,panelId:le.panelId,range:pe}});$.trigger("brush",{areas:ae,isEnd:!!oe.isEnd,removeOnClick:!!oe.removeOnClick})}function shouldShowCover($){var oe=$._track;if(!oe.length)return!1;var ae=oe[oe.length-1],ie=oe[0],le=ae[0]-ie[0],pe=ae[1]-ie[1],_e=mathPow(le*le+pe*pe,.5);return _e>UNSELECT_THRESHOLD}function getTrackEnds($){var oe=$.length-1;return oe<0&&(oe=0),[$[0],$[oe]]}function createBaseRectCover($,oe,ae,ie){var le=new Group$3;return le.add(new Rect$2({name:"main",style:makeStyle(ae),silent:!0,draggable:!0,cursor:"move",drift:curry$1(driftRect,$,oe,le,["n","s","w","e"]),ondragend:curry$1(trigger,oe,{isEnd:!0})})),each$c(ie,function(pe){le.add(new Rect$2({name:pe.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:curry$1(driftRect,$,oe,le,pe),ondragend:curry$1(trigger,oe,{isEnd:!0})}))}),le}function updateBaseRect($,oe,ae,ie){var le=ie.brushStyle.lineWidth||0,pe=mathMax$1(le,MIN_RESIZE_LINE_WIDTH),_e=ae[0][0],Ce=ae[1][0],$e=_e-le/2,xe=Ce-le/2,Ie=ae[0][1],Ne=ae[1][1],Fe=Ie-pe+le/2,ze=Ne-pe+le/2,At=Ie-_e,Lt=Ne-Ce,hn=At+le,vn=Lt+le;updateRectShape($,oe,"main",_e,Ce,At,Lt),ie.transformable&&(updateRectShape($,oe,"w",$e,xe,pe,vn),updateRectShape($,oe,"e",Fe,xe,pe,vn),updateRectShape($,oe,"n",$e,xe,hn,pe),updateRectShape($,oe,"s",$e,ze,hn,pe),updateRectShape($,oe,"nw",$e,xe,pe,pe),updateRectShape($,oe,"ne",Fe,xe,pe,pe),updateRectShape($,oe,"sw",$e,ze,pe,pe),updateRectShape($,oe,"se",Fe,ze,pe,pe))}function updateCommon($,oe){var ae=oe.__brushOption,ie=ae.transformable,le=oe.childAt(0);le.useStyle(makeStyle(ae)),le.attr({silent:!ie,cursor:ie?"move":"default"}),each$c([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(pe){var _e=oe.childOfName(pe.join("")),Ce=pe.length===1?getGlobalDirection1($,pe[0]):getGlobalDirection2($,pe);_e&&_e.attr({silent:!ie,invisible:!ie,cursor:ie?CURSOR_MAP[Ce]+"-resize":null})})}function updateRectShape($,oe,ae,ie,le,pe,_e){var Ce=oe.childOfName(ae);Ce&&Ce.setShape(pointsToRect(clipByPanel($,oe,[[ie,le],[ie+pe,le+_e]])))}function makeStyle($){return defaults({strokeNoScale:!0},$.brushStyle)}function formatRectRange($,oe,ae,ie){var le=[mathMin$1($,ae),mathMin$1(oe,ie)],pe=[mathMax$1($,ae),mathMax$1(oe,ie)];return[[le[0],pe[0]],[le[1],pe[1]]]}function getTransform($){return getTransform$1($.group)}function getGlobalDirection1($,oe){var ae={w:"left",e:"right",n:"top",s:"bottom"},ie={left:"w",right:"e",top:"n",bottom:"s"},le=transformDirection(ae[oe],getTransform($));return ie[le]}function getGlobalDirection2($,oe){var ae=[getGlobalDirection1($,oe[0]),getGlobalDirection1($,oe[1])];return(ae[0]==="e"||ae[0]==="w")&&ae.reverse(),ae.join("")}function driftRect($,oe,ae,ie,le,pe){var _e=ae.__brushOption,Ce=$.toRectRange(_e.range),$e=toLocalDelta(oe,le,pe);each$c(ie,function(xe){var Ie=DIRECTION_MAP[xe];Ce[Ie[0]][Ie[1]]+=$e[Ie[0]]}),_e.range=$.fromRectRange(formatRectRange(Ce[0][0],Ce[1][0],Ce[0][1],Ce[1][1])),updateCoverAfterCreation(oe,ae),trigger(oe,{isEnd:!1})}function driftPolygon($,oe,ae,ie){var le=oe.__brushOption.range,pe=toLocalDelta($,ae,ie);each$c(le,function(_e){_e[0]+=pe[0],_e[1]+=pe[1]}),updateCoverAfterCreation($,oe),trigger($,{isEnd:!1})}function toLocalDelta($,oe,ae){var ie=$.group,le=ie.transformCoordToLocal(oe,ae),pe=ie.transformCoordToLocal(0,0);return[le[0]-pe[0],le[1]-pe[1]]}function clipByPanel($,oe,ae){var ie=getPanelByCover($,oe);return ie&&ie!==BRUSH_PANEL_GLOBAL?ie.clipPath(ae,$._transform):clone$3(ae)}function pointsToRect($){var oe=mathMin$1($[0][0],$[1][0]),ae=mathMin$1($[0][1],$[1][1]),ie=mathMax$1($[0][0],$[1][0]),le=mathMax$1($[0][1],$[1][1]);return{x:oe,y:ae,width:ie-oe,height:le-ae}}function resetCursor($,oe,ae){if(!(!$._brushType||isOutsideZrArea($,oe.offsetX,oe.offsetY))){var ie=$._zr,le=$._covers,pe=getPanelByPoint($,oe,ae);if(!$._dragging)for(var _e=0;_eie.getWidth()||ae<0||ae>ie.getHeight()}var coverRenderers={lineX:getLineRenderer(0),lineY:getLineRenderer(1),rect:{createCover:function($,oe){function ae(ie){return ie}return createBaseRectCover({toRectRange:ae,fromRectRange:ae},$,oe,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function($){var oe=getTrackEnds($);return formatRectRange(oe[1][0],oe[1][1],oe[0][0],oe[0][1])},updateCoverShape:function($,oe,ae,ie){updateBaseRect($,oe,ae,ie)},updateCommon,contain:mainShapeContain},polygon:{createCover:function($,oe){var ae=new Group$3;return ae.add(new Polyline$1({name:"main",style:makeStyle(oe),silent:!0})),ae},getCreatingRange:function($){return $},endCreating:function($,oe){oe.remove(oe.childAt(0)),oe.add(new Polygon$1({name:"main",draggable:!0,drift:curry$1(driftPolygon,$,oe),ondragend:curry$1(trigger,$,{isEnd:!0})}))},updateCoverShape:function($,oe,ae,ie){oe.childAt(0).setShape({points:clipByPanel($,oe,ae)})},updateCommon,contain:mainShapeContain}};function getLineRenderer($){return{createCover:function(oe,ae){return createBaseRectCover({toRectRange:function(ie){var le=[ie,[0,100]];return $&&le.reverse(),le},fromRectRange:function(ie){return ie[$]}},oe,ae,[[["w"],["e"]],[["n"],["s"]]][$])},getCreatingRange:function(oe){var ae=getTrackEnds(oe),ie=mathMin$1(ae[0][$],ae[1][$]),le=mathMax$1(ae[0][$],ae[1][$]);return[ie,le]},updateCoverShape:function(oe,ae,ie,le){var pe,_e=getPanelByCover(oe,ae);if(_e!==BRUSH_PANEL_GLOBAL&&_e.getLinearBrushOtherExtent)pe=_e.getLinearBrushOtherExtent($);else{var Ce=oe._zr;pe=[0,[Ce.getWidth(),Ce.getHeight()][1-$]]}var $e=[ie,pe];$&&$e.reverse(),updateBaseRect(oe,ae,$e,le)},updateCommon,contain:mainShapeContain}}const BrushController$1=BrushController;function makeRectPanelClipPath($){return $=normalizeRect($),function(oe){return clipPointsByRect(oe,$)}}function makeLinearBrushOtherExtent($,oe){return $=normalizeRect($),function(ae){var ie=oe??ae,le=ie?$.width:$.height,pe=ie?$.x:$.y;return[pe,pe+(le||0)]}}function makeRectIsTargetByCursor($,oe,ae){var ie=normalizeRect($);return function(le,pe){return ie.contain(pe[0],pe[1])&&!onIrrelevantElement(le,oe,ae)}}function normalizeRect($){return BoundingRect$1.create($)}function isEC4CompatibleStyle($,oe,ae,ie){return $&&($.legacy||$.legacy!==!1&&!ae&&!ie&&oe!=="tspan"&&(oe==="text"||hasOwn($,"text")))}function convertFromEC4CompatibleStyle($,oe,ae){var ie=$,le,pe,_e;if(oe==="text")_e=ie;else{_e={},hasOwn(ie,"text")&&(_e.text=ie.text),hasOwn(ie,"rich")&&(_e.rich=ie.rich),hasOwn(ie,"textFill")&&(_e.fill=ie.textFill),hasOwn(ie,"textStroke")&&(_e.stroke=ie.textStroke),hasOwn(ie,"fontFamily")&&(_e.fontFamily=ie.fontFamily),hasOwn(ie,"fontSize")&&(_e.fontSize=ie.fontSize),hasOwn(ie,"fontStyle")&&(_e.fontStyle=ie.fontStyle),hasOwn(ie,"fontWeight")&&(_e.fontWeight=ie.fontWeight),pe={type:"text",style:_e,silent:!0},le={};var Ce=hasOwn(ie,"textPosition");ae?le.position=Ce?ie.textPosition:"inside":Ce&&(le.position=ie.textPosition),hasOwn(ie,"textPosition")&&(le.position=ie.textPosition),hasOwn(ie,"textOffset")&&(le.offset=ie.textOffset),hasOwn(ie,"textRotation")&&(le.rotation=ie.textRotation),hasOwn(ie,"textDistance")&&(le.distance=ie.textDistance)}return convertEC4CompatibleRichItem(_e,$),each$c(_e.rich,function($e){convertEC4CompatibleRichItem($e,$e)}),{textConfig:le,textContent:pe}}function convertEC4CompatibleRichItem($,oe){oe&&(oe.font=oe.textFont||oe.font,hasOwn(oe,"textStrokeWidth")&&($.lineWidth=oe.textStrokeWidth),hasOwn(oe,"textAlign")&&($.align=oe.textAlign),hasOwn(oe,"textVerticalAlign")&&($.verticalAlign=oe.textVerticalAlign),hasOwn(oe,"textLineHeight")&&($.lineHeight=oe.textLineHeight),hasOwn(oe,"textWidth")&&($.width=oe.textWidth),hasOwn(oe,"textHeight")&&($.height=oe.textHeight),hasOwn(oe,"textBackgroundColor")&&($.backgroundColor=oe.textBackgroundColor),hasOwn(oe,"textPadding")&&($.padding=oe.textPadding),hasOwn(oe,"textBorderColor")&&($.borderColor=oe.textBorderColor),hasOwn(oe,"textBorderWidth")&&($.borderWidth=oe.textBorderWidth),hasOwn(oe,"textBorderRadius")&&($.borderRadius=oe.textBorderRadius),hasOwn(oe,"textBoxShadowColor")&&($.shadowColor=oe.textBoxShadowColor),hasOwn(oe,"textBoxShadowBlur")&&($.shadowBlur=oe.textBoxShadowBlur),hasOwn(oe,"textBoxShadowOffsetX")&&($.shadowOffsetX=oe.textBoxShadowOffsetX),hasOwn(oe,"textBoxShadowOffsetY")&&($.shadowOffsetY=oe.textBoxShadowOffsetY))}var LEGACY_TRANSFORM_PROPS_MAP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},LEGACY_TRANSFORM_PROPS=keys(LEGACY_TRANSFORM_PROPS_MAP);reduce(TRANSFORMABLE_PROPS,function($,oe){return $[oe]=1,$},{});TRANSFORMABLE_PROPS.join(", ");var ELEMENT_ANIMATABLE_PROPS=["","style","shape","extra"],transitionInnerStore=makeInner();function getElementAnimationConfig($,oe,ae,ie,le){var pe=$+"Animation",_e=getAnimationConfig($,ie,le)||{},Ce=transitionInnerStore(oe).userDuring;return _e.duration>0&&(_e.during=Ce?bind$1(duringCall,{el:oe,userDuring:Ce}):null,_e.setToFinal=!0,_e.scope=$),extend(_e,ae[pe]),_e}function applyUpdateTransition($,oe,ae,ie){ie=ie||{};var le=ie.dataIndex,pe=ie.isInit,_e=ie.clearStyle,Ce=ae.isAnimationEnabled(),$e=transitionInnerStore($),xe=oe.style;$e.userDuring=oe.during;var Ie={},Ne={};if(prepareTransformAllPropsFinal($,oe,Ne),prepareShapeOrExtraAllPropsFinal("shape",oe,Ne),prepareShapeOrExtraAllPropsFinal("extra",oe,Ne),!pe&&Ce&&(prepareTransformTransitionFrom($,oe,Ie),prepareShapeOrExtraTransitionFrom("shape",$,oe,Ie),prepareShapeOrExtraTransitionFrom("extra",$,oe,Ie),prepareStyleTransitionFrom($,oe,xe,Ie)),Ne.style=xe,applyPropsDirectly($,Ne,_e),applyMiscProps($,oe),Ce)if(pe){var Fe={};each$c(ELEMENT_ANIMATABLE_PROPS,function(At){var Lt=At?oe[At]:oe;Lt&&Lt.enterFrom&&(At&&(Fe[At]=Fe[At]||{}),extend(At?Fe[At]:Fe,Lt.enterFrom))});var ze=getElementAnimationConfig("enter",$,oe,ae,le);ze.duration>0&&$.animateFrom(Fe,ze)}else applyPropsTransition($,oe,le||0,ae,Ie);updateLeaveTo($,oe),xe?$.dirty():$.markRedraw()}function updateLeaveTo($,oe){for(var ae=transitionInnerStore($).leaveToProps,ie=0;ie0&&$.animateFrom(le,pe)}}function applyMiscProps($,oe){hasOwn(oe,"silent")&&($.silent=oe.silent),hasOwn(oe,"ignore")&&($.ignore=oe.ignore),$ instanceof Displayable$1&&hasOwn(oe,"invisible")&&($.invisible=oe.invisible),$ instanceof Path$1&&hasOwn(oe,"autoBatch")&&($.autoBatch=oe.autoBatch)}var tmpDuringScope={},transitionDuringAPI={setTransform:function($,oe){return tmpDuringScope.el[$]=oe,this},getTransform:function($){return tmpDuringScope.el[$]},setShape:function($,oe){var ae=tmpDuringScope.el,ie=ae.shape||(ae.shape={});return ie[$]=oe,ae.dirtyShape&&ae.dirtyShape(),this},getShape:function($){var oe=tmpDuringScope.el.shape;if(oe)return oe[$]},setStyle:function($,oe){var ae=tmpDuringScope.el,ie=ae.style;return ie&&(ie[$]=oe,ae.dirtyStyle&&ae.dirtyStyle()),this},getStyle:function($){var oe=tmpDuringScope.el.style;if(oe)return oe[$]},setExtra:function($,oe){var ae=tmpDuringScope.el.extra||(tmpDuringScope.el.extra={});return ae[$]=oe,this},getExtra:function($){var oe=tmpDuringScope.el.extra;if(oe)return oe[$]}};function duringCall(){var $=this,oe=$.el;if(oe){var ae=transitionInnerStore(oe).userDuring,ie=$.userDuring;if(ae!==ie){$.el=$.userDuring=null;return}tmpDuringScope.el=oe,ie(transitionDuringAPI)}}function prepareShapeOrExtraTransitionFrom($,oe,ae,ie){var le=ae[$];if(le){var pe=oe[$],_e;if(pe){var Ce=ae.transition,$e=le.transition;if($e)if(!_e&&(_e=ie[$]={}),isTransitionAll($e))extend(_e,pe);else for(var xe=normalizeToArray($e),Ie=0;Ie=0){!_e&&(_e=ie[$]={});for(var ze=keys(pe),Ie=0;Ie=0)){var Fe=$.getAnimationStyleProps(),ze=Fe?Fe.style:null;if(ze){!pe&&(pe=ie.style={});for(var At=keys(ae),xe=0;xeCe)return!0;if(_e){var $e=getAxisInfo(oe).seriesDataCount,xe=le.getExtent();return Math.abs(xe[0]-xe[1])/$e>Ce}return!1}return ie===!0},$.prototype.makeElOption=function(oe,ae,ie,le,pe){},$.prototype.createPointerEl=function(oe,ae,ie,le){var pe=ae.pointer;if(pe){var _e=inner$5(oe).pointerEl=new graphic$1[pe.type](clone(ae.pointer));oe.add(_e)}},$.prototype.createLabelEl=function(oe,ae,ie,le){if(ae.label){var pe=inner$5(oe).labelEl=new ZRText$1(clone(ae.label));oe.add(pe),updateLabelShowHide(pe,le)}},$.prototype.updatePointerEl=function(oe,ae,ie){var le=inner$5(oe).pointerEl;le&&ae.pointer&&(le.setStyle(ae.pointer.style),ie(le,{shape:ae.pointer.shape}))},$.prototype.updateLabelEl=function(oe,ae,ie,le){var pe=inner$5(oe).labelEl;pe&&(pe.setStyle(ae.label.style),ie(pe,{x:ae.label.x,y:ae.label.y}),updateLabelShowHide(pe,le))},$.prototype._renderHandle=function(oe){if(!(this._dragging||!this.updateHandleTransform)){var ae=this._axisPointerModel,ie=this._api.getZr(),le=this._handle,pe=ae.getModel("handle"),_e=ae.get("status");if(!pe.get("show")||!_e||_e==="hide"){le&&ie.remove(le),this._handle=null;return}var Ce;this._handle||(Ce=!0,le=this._handle=createIcon(pe.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(xe){stop(xe.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),ie.add(le)),updateMandatoryProps(le,ae,!1),le.setStyle(pe.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var $e=pe.get("size");isArray$1($e)||($e=[$e,$e]),le.scaleX=$e[0]/2,le.scaleY=$e[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",pe.get("throttle")||0,"fixRate"),this._moveHandleToValue(oe,Ce)}},$.prototype._moveHandleToValue=function(oe,ae){updateProps(this._axisPointerModel,!ae&&this._moveAnimation,this._handle,getHandleTransProps(this.getHandleTransform(oe,this._axisModel,this._axisPointerModel)))},$.prototype._onHandleDragMove=function(oe,ae){var ie=this._handle;if(ie){this._dragging=!0;var le=this.updateHandleTransform(getHandleTransProps(ie),[oe,ae],this._axisModel,this._axisPointerModel);this._payloadInfo=le,ie.stopAnimation(),ie.attr(getHandleTransProps(le)),inner$5(ie).lastProp=null,this._doDispatchAxisPointer()}},$.prototype._doDispatchAxisPointer=function(){var oe=this._handle;if(oe){var ae=this._payloadInfo,ie=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:ae.cursorPoint[0],y:ae.cursorPoint[1],tooltipOption:ae.tooltipOption,axesInfo:[{axisDim:ie.axis.dim,axisIndex:ie.componentIndex}]})}},$.prototype._onHandleDragEnd=function(){this._dragging=!1;var oe=this._handle;if(oe){var ae=this._axisPointerModel.get("value");this._moveHandleToValue(ae),this._api.dispatchAction({type:"hideTip"})}},$.prototype.clear=function(oe){this._lastValue=null,this._lastStatus=null;var ae=oe.getZr(),ie=this._group,le=this._handle;ae&&ie&&(this._lastGraphicKey=null,ie&&ae.remove(ie),le&&ae.remove(le),this._group=null,this._handle=null,this._payloadInfo=null),clear$1(this,"_doDispatchAxisPointer")},$.prototype.doClear=function(){},$.prototype.buildLabel=function(oe,ae,ie){return ie=ie||0,{x:oe[ie],y:oe[1-ie],width:ae[ie],height:ae[1-ie]}},$}();function updateProps($,oe,ae,ie){propsEqual(inner$5(ae).lastProp,ie)||(inner$5(ae).lastProp=ie,oe?updateProps$1(ae,ie,$):(ae.stopAnimation(),ae.attr(ie)))}function propsEqual($,oe){if(isObject$3($)&&isObject$3(oe)){var ae=!0;return each$c(oe,function(ie,le){ae=ae&&propsEqual($[le],ie)}),!!ae}else return $===oe}function updateLabelShowHide($,oe){$[oe.get(["label","show"])?"show":"hide"]()}function getHandleTransProps($){return{x:$.x||0,y:$.y||0,rotation:$.rotation||0}}function updateMandatoryProps($,oe,ae){var ie=oe.get("z"),le=oe.get("zlevel");$&&$.traverse(function(pe){pe.type!=="group"&&(ie!=null&&(pe.z=ie),le!=null&&(pe.zlevel=le),pe.silent=ae)})}const BaseAxisPointer$1=BaseAxisPointer;function buildElStyle($){var oe=$.get("type"),ae=$.getModel(oe+"Style"),ie;return oe==="line"?(ie=ae.getLineStyle(),ie.fill=null):oe==="shadow"&&(ie=ae.getAreaStyle(),ie.stroke=null),ie}function buildLabelElOption($,oe,ae,ie,le){var pe=ae.get("value"),_e=getValueLabel(pe,oe.axis,oe.ecModel,ae.get("seriesDataIndices"),{precision:ae.get(["label","precision"]),formatter:ae.get(["label","formatter"])}),Ce=ae.getModel("label"),$e=normalizeCssArray(Ce.get("padding")||0),xe=Ce.getFont(),Ie=getBoundingRect(_e,xe),Ne=le.position,Fe=Ie.width+$e[1]+$e[3],ze=Ie.height+$e[0]+$e[2],At=le.align;At==="right"&&(Ne[0]-=Fe),At==="center"&&(Ne[0]-=Fe/2);var Lt=le.verticalAlign;Lt==="bottom"&&(Ne[1]-=ze),Lt==="middle"&&(Ne[1]-=ze/2),confineInContainer(Ne,Fe,ze,ie);var hn=Ce.get("backgroundColor");(!hn||hn==="auto")&&(hn=oe.get(["axisLine","lineStyle","color"])),$.label={x:Ne[0],y:Ne[1],style:createTextStyle$1(Ce,{text:_e,font:xe,fill:Ce.getTextColor(),padding:$e,backgroundColor:hn}),z2:10}}function confineInContainer($,oe,ae,ie){var le=ie.getWidth(),pe=ie.getHeight();$[0]=Math.min($[0]+oe,le)-oe,$[1]=Math.min($[1]+ae,pe)-ae,$[0]=Math.max($[0],0),$[1]=Math.max($[1],0)}function getValueLabel($,oe,ae,ie,le){$=oe.scale.parse($);var pe=oe.scale.getLabel({value:$},{precision:le.precision}),_e=le.formatter;if(_e){var Ce={value:getAxisRawValue(oe,{value:$}),axisDimension:oe.dim,axisIndex:oe.index,seriesData:[]};each$c(ie,function($e){var xe=ae.getSeriesByIndex($e.seriesIndex),Ie=$e.dataIndexInside,Ne=xe&&xe.getDataParams(Ie);Ne&&Ce.seriesData.push(Ne)}),isString(_e)?pe=_e.replace("{value}",pe):isFunction(_e)&&(pe=_e(Ce))}return pe}function getTransformedPosition($,oe,ae){var ie=create();return rotate(ie,ie,ae.rotation),translate(ie,ie,ae.position),applyTransform([$.dataToCoord(oe),(ae.labelOffset||0)+(ae.labelDirection||1)*(ae.labelMargin||0)],ie)}function buildCartesianSingleLabelElOption($,oe,ae,ie,le,pe){var _e=AxisBuilder$1.innerTextLayout(ae.rotation,0,ae.labelDirection);ae.labelMargin=le.get(["label","margin"]),buildLabelElOption(oe,ie,le,pe,{position:getTransformedPosition(ie.axis,$,ae),align:_e.textAlign,verticalAlign:_e.textVerticalAlign})}function makeLineShape($,oe,ae){return ae=ae||0,{x1:$[ae],y1:$[1-ae],x2:oe[ae],y2:oe[1-ae]}}function makeRectShape($,oe,ae){return ae=ae||0,{x:$[ae],y:$[1-ae],width:oe[ae],height:oe[1-ae]}}var CartesianAxisPointer=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.makeElOption=function(ae,ie,le,pe,_e){var Ce=le.axis,$e=Ce.grid,xe=pe.get("type"),Ie=getCartesian($e,Ce).getOtherAxis(Ce).getGlobalExtent(),Ne=Ce.toGlobalCoord(Ce.dataToCoord(ie,!0));if(xe&&xe!=="none"){var Fe=buildElStyle(pe),ze=pointerShapeBuilder[xe](Ce,Ne,Ie);ze.style=Fe,ae.graphicKey=ze.type,ae.pointer=ze}var At=layout$1($e.model,le);buildCartesianSingleLabelElOption(ie,ae,At,le,pe,_e)},oe.prototype.getHandleTransform=function(ae,ie,le){var pe=layout$1(ie.axis.grid.model,ie,{labelInside:!1});pe.labelMargin=le.get(["handle","margin"]);var _e=getTransformedPosition(ie.axis,ae,pe);return{x:_e[0],y:_e[1],rotation:pe.rotation+(pe.labelDirection<0?Math.PI:0)}},oe.prototype.updateHandleTransform=function(ae,ie,le,pe){var _e=le.axis,Ce=_e.grid,$e=_e.getGlobalExtent(!0),xe=getCartesian(Ce,_e).getOtherAxis(_e).getGlobalExtent(),Ie=_e.dim==="x"?0:1,Ne=[ae.x,ae.y];Ne[Ie]+=ie[Ie],Ne[Ie]=Math.min($e[1],Ne[Ie]),Ne[Ie]=Math.max($e[0],Ne[Ie]);var Fe=(xe[1]+xe[0])/2,ze=[Fe,Fe];ze[Ie]=Ne[Ie];var At=[{verticalAlign:"middle"},{align:"center"}];return{x:Ne[0],y:Ne[1],rotation:ae.rotation,cursorPoint:ze,tooltipOption:At[Ie]}},oe}(BaseAxisPointer$1);function getCartesian($,oe){var ae={};return ae[oe.dim+"AxisIndex"]=oe.index,$.getCartesian(ae)}var pointerShapeBuilder={line:function($,oe,ae){var ie=makeLineShape([oe,ae[0]],[oe,ae[1]],getAxisDimIndex($));return{type:"Line",subPixelOptimize:!0,shape:ie}},shadow:function($,oe,ae){var ie=Math.max(1,$.getBandWidth()),le=ae[1]-ae[0];return{type:"Rect",shape:makeRectShape([oe-ie/2,ae[0]],[ie,le],getAxisDimIndex($))}}};function getAxisDimIndex($){return $.dim==="x"?0:1}const CartesianAxisPointer$1=CartesianAxisPointer;var AxisPointerModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.type="axisPointer",oe.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},oe}(ComponentModel$1);const AxisPointerModel$1=AxisPointerModel;var inner$4=makeInner(),each$8=each$c;function register($,oe,ae){if(!env$1.node){var ie=oe.getZr();inner$4(ie).records||(inner$4(ie).records={}),initGlobalListeners(ie,oe);var le=inner$4(ie).records[$]||(inner$4(ie).records[$]={});le.handler=ae}}function initGlobalListeners($,oe){if(inner$4($).initialized)return;inner$4($).initialized=!0,ae("click",curry$1(doEnter,"click")),ae("mousemove",curry$1(doEnter,"mousemove")),ae("globalout",onLeave);function ae(ie,le){$.on(ie,function(pe){var _e=makeDispatchAction$1(oe);each$8(inner$4($).records,function(Ce){Ce&&le(Ce,pe,_e.dispatchAction)}),dispatchTooltipFinally(_e.pendings,oe)})}}function dispatchTooltipFinally($,oe){var ae=$.showTip.length,ie=$.hideTip.length,le;ae?le=$.showTip[ae-1]:ie&&(le=$.hideTip[ie-1]),le&&(le.dispatchAction=null,oe.dispatchAction(le))}function onLeave($,oe,ae){$.handler("leave",null,ae)}function doEnter($,oe,ae,ie){oe.handler($,ae,ie)}function makeDispatchAction$1($){var oe={showTip:[],hideTip:[]},ae=function(ie){var le=oe[ie.type];le?le.push(ie):(ie.dispatchAction=ae,$.dispatchAction(ie))};return{dispatchAction:ae,pendings:oe}}function unregister($,oe){if(!env$1.node){var ae=oe.getZr(),ie=(inner$4(ae).records||{})[$];ie&&(inner$4(ae).records[$]=null)}}var AxisPointerView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.render=function(ae,ie,le){var pe=ie.getComponent("tooltip"),_e=ae.get("triggerOn")||pe&&pe.get("triggerOn")||"mousemove|click";register("axisPointer",le,function(Ce,$e,xe){_e!=="none"&&(Ce==="leave"||_e.indexOf(Ce)>=0)&&xe({type:"updateAxisPointer",currTrigger:Ce,x:$e&&$e.offsetX,y:$e&&$e.offsetY})})},oe.prototype.remove=function(ae,ie){unregister("axisPointer",ie)},oe.prototype.dispose=function(ae,ie){unregister("axisPointer",ie)},oe.type="axisPointer",oe}(ComponentView$1);const AxisPointerView$1=AxisPointerView;function findPointFromSeries($,oe){var ae=[],ie=$.seriesIndex,le;if(ie==null||!(le=oe.getSeriesByIndex(ie)))return{point:[]};var pe=le.getData(),_e=queryDataIndex(pe,$);if(_e==null||_e<0||isArray$1(_e))return{point:[]};var Ce=pe.getItemGraphicEl(_e),$e=le.coordinateSystem;if(le.getTooltipPosition)ae=le.getTooltipPosition(_e)||[];else if($e&&$e.dataToPoint)if($.isStacked){var xe=$e.getBaseAxis(),Ie=$e.getOtherAxis(xe),Ne=Ie.dim,Fe=xe.dim,ze=Ne==="x"||Ne==="radius"?1:0,At=pe.mapDimension(Fe),Lt=[];Lt[ze]=pe.get(At,_e),Lt[1-ze]=pe.get(pe.getCalculationInfo("stackResultDimension"),_e),ae=$e.dataToPoint(Lt)||[]}else ae=$e.dataToPoint(pe.getValues(map$2($e.dimensions,function(vn){return pe.mapDimension(vn)}),_e))||[];else if(Ce){var hn=Ce.getBoundingRect().clone();hn.applyTransform(Ce.transform),ae=[hn.x+hn.width/2,hn.y+hn.height/2]}return{point:ae,el:Ce}}var inner$3=makeInner();function axisTrigger($,oe,ae){var ie=$.currTrigger,le=[$.x,$.y],pe=$,_e=$.dispatchAction||bind$1(ae.dispatchAction,ae),Ce=oe.getComponent("axisPointer").coordSysAxesInfo;if(Ce){illegalPoint(le)&&(le=findPointFromSeries({seriesIndex:pe.seriesIndex,dataIndex:pe.dataIndex},oe).point);var $e=illegalPoint(le),xe=pe.axesInfo,Ie=Ce.axesInfo,Ne=ie==="leave"||illegalPoint(le),Fe={},ze={},At={list:[],map:{}},Lt={showPointer:curry$1(showPointer,ze),showTooltip:curry$1(showTooltip,At)};each$c(Ce.coordSysMap,function(vn,_n){var bn=$e||vn.containPoint(le);each$c(Ce.coordSysAxesInfo[_n],function(Cn,En){var $n=Cn.axis,wn=findInputAxisInfo(xe,Cn);if(!Ne&&bn&&(!xe||wn)){var Tn=wn&&wn.value;Tn==null&&!$e&&(Tn=$n.pointToData(le)),Tn!=null&&processOnAxis(Cn,Tn,Lt,!1,Fe)}})});var hn={};return each$c(Ie,function(vn,_n){var bn=vn.linkGroup;bn&&!ze[_n]&&each$c(bn.axesInfo,function(Cn,En){var $n=ze[En];if(Cn!==vn&&$n){var wn=$n.value;bn.mapper&&(wn=vn.axis.scale.parse(bn.mapper(wn,makeMapperParam(Cn),makeMapperParam(vn)))),hn[vn.key]=wn}})}),each$c(hn,function(vn,_n){processOnAxis(Ie[_n],vn,Lt,!0,Fe)}),updateModelActually(ze,Ie,Fe),dispatchTooltipActually(At,le,$,_e),dispatchHighDownActually(Ie,_e,ae),Fe}}function processOnAxis($,oe,ae,ie,le){var pe=$.axis;if(!(pe.scale.isBlank()||!pe.containData(oe))){if(!$.involveSeries){ae.showPointer($,oe);return}var _e=buildPayloadsBySeries(oe,$),Ce=_e.payloadBatch,$e=_e.snapToValue;Ce[0]&&le.seriesIndex==null&&extend(le,Ce[0]),!ie&&$.snap&&pe.containData($e)&&$e!=null&&(oe=$e),ae.showPointer($,oe,Ce),ae.showTooltip($,_e,$e)}}function buildPayloadsBySeries($,oe){var ae=oe.axis,ie=ae.dim,le=$,pe=[],_e=Number.MAX_VALUE,Ce=-1;return each$c(oe.seriesModels,function($e,xe){var Ie=$e.getData().mapDimensionsAll(ie),Ne,Fe;if($e.getAxisTooltipData){var ze=$e.getAxisTooltipData(Ie,$,ae);Fe=ze.dataIndices,Ne=ze.nestestValue}else{if(Fe=$e.getData().indicesOfNearest(Ie[0],$,ae.type==="category"?.5:null),!Fe.length)return;Ne=$e.getData().get(Ie[0],Fe[0])}if(!(Ne==null||!isFinite(Ne))){var At=$-Ne,Lt=Math.abs(At);Lt<=_e&&((Lt<_e||At>=0&&Ce<0)&&(_e=Lt,Ce=At,le=Ne,pe.length=0),each$c(Fe,function(hn){pe.push({seriesIndex:$e.seriesIndex,dataIndexInside:hn,dataIndex:$e.getData().getRawIndex(hn)})}))}}),{payloadBatch:pe,snapToValue:le}}function showPointer($,oe,ae,ie){$[oe.key]={value:ae,payloadBatch:ie}}function showTooltip($,oe,ae,ie){var le=ae.payloadBatch,pe=oe.axis,_e=pe.model,Ce=oe.axisPointerModel;if(!(!oe.triggerTooltip||!le.length)){var $e=oe.coordSys.model,xe=makeKey($e),Ie=$.map[xe];Ie||(Ie=$.map[xe]={coordSysId:$e.id,coordSysIndex:$e.componentIndex,coordSysType:$e.type,coordSysMainType:$e.mainType,dataByAxis:[]},$.list.push(Ie)),Ie.dataByAxis.push({axisDim:pe.dim,axisIndex:_e.componentIndex,axisType:_e.type,axisId:_e.id,value:ie,valueLabelOpt:{precision:Ce.get(["label","precision"]),formatter:Ce.get(["label","formatter"])},seriesDataIndices:le.slice()})}}function updateModelActually($,oe,ae){var ie=ae.axesInfo=[];each$c(oe,function(le,pe){var _e=le.axisPointerModel.option,Ce=$[pe];Ce?(!le.useHandle&&(_e.status="show"),_e.value=Ce.value,_e.seriesDataIndices=(Ce.payloadBatch||[]).slice()):!le.useHandle&&(_e.status="hide"),_e.status==="show"&&ie.push({axisDim:le.axis.dim,axisIndex:le.axis.model.componentIndex,value:_e.value})})}function dispatchTooltipActually($,oe,ae,ie){if(illegalPoint(oe)||!$.list.length){ie({type:"hideTip"});return}var le=(($.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};ie({type:"showTip",escapeConnect:!0,x:oe[0],y:oe[1],tooltipOption:ae.tooltipOption,position:ae.position,dataIndexInside:le.dataIndexInside,dataIndex:le.dataIndex,seriesIndex:le.seriesIndex,dataByCoordSys:$.list})}function dispatchHighDownActually($,oe,ae){var ie=ae.getZr(),le="axisPointerLastHighlights",pe=inner$3(ie)[le]||{},_e=inner$3(ie)[le]={};each$c($,function(xe,Ie){var Ne=xe.axisPointerModel.option;Ne.status==="show"&&each$c(Ne.seriesDataIndices,function(Fe){var ze=Fe.seriesIndex+" | "+Fe.dataIndex;_e[ze]=Fe})});var Ce=[],$e=[];each$c(pe,function(xe,Ie){!_e[Ie]&&$e.push(xe)}),each$c(_e,function(xe,Ie){!pe[Ie]&&Ce.push(xe)}),$e.length&&ae.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:$e}),Ce.length&&ae.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:Ce})}function findInputAxisInfo($,oe){for(var ae=0;ae<($||[]).length;ae++){var ie=$[ae];if(oe.axis.dim===ie.axisDim&&oe.axis.model.componentIndex===ie.axisIndex)return ie}}function makeMapperParam($){var oe=$.axis.model,ae={},ie=ae.axisDim=$.axis.dim;return ae.axisIndex=ae[ie+"AxisIndex"]=oe.componentIndex,ae.axisName=ae[ie+"AxisName"]=oe.name,ae.axisId=ae[ie+"AxisId"]=oe.id,ae}function illegalPoint($){return!$||$[0]==null||isNaN($[0])||$[1]==null||isNaN($[1])}function install$f($){AxisView$1.registerAxisPointerClass("CartesianAxisPointer",CartesianAxisPointer$1),$.registerComponentModel(AxisPointerModel$1),$.registerComponentView(AxisPointerView$1),$.registerPreprocessor(function(oe){if(oe){(!oe.axisPointer||oe.axisPointer.length===0)&&(oe.axisPointer={});var ae=oe.axisPointer.link;ae&&!isArray$1(ae)&&(oe.axisPointer.link=[ae])}}),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,function(oe,ae){oe.getComponent("axisPointer").coordSysAxesInfo=collect(oe,ae)}),$.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},axisTrigger)}function install$e($){use$1(install$g),use$1(install$f)}function setKeyInfoToNewElOption($,oe){var ae=$.existing;if(oe.id=$.keyInfo.id,!oe.type&&ae&&(oe.type=ae.type),oe.parentId==null){var ie=oe.parentOption;ie?oe.parentId=ie.id:ae&&(oe.parentId=ae.parentId)}oe.parentOption=null}function isSetLoc($,oe){var ae;return each$c(oe,function(ie){$[ie]!=null&&$[ie]!=="auto"&&(ae=!0)}),ae}function mergeNewElOptionToExist($,oe,ae){var ie=extend({},ae),le=$[oe],pe=ae.$action||"merge";pe==="merge"?le?(merge(le,ie,!0),mergeLayoutParam(le,ie,{ignoreSize:!0}),copyLayoutParams(ae,le),copyTransitionInfo(ae,le),copyTransitionInfo(ae,le,"shape"),copyTransitionInfo(ae,le,"style"),copyTransitionInfo(ae,le,"extra"),ae.clipPath=le.clipPath):$[oe]=ie:pe==="replace"?$[oe]=ie:pe==="remove"&&le&&($[oe]=null)}var TRANSITION_PROPS_TO_COPY=["transition","enterFrom","leaveTo"],ROOT_TRANSITION_PROPS_TO_COPY=TRANSITION_PROPS_TO_COPY.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function copyTransitionInfo($,oe,ae){if(ae&&(!$[ae]&&oe[ae]&&($[ae]={}),$=$[ae],oe=oe[ae]),!(!$||!oe))for(var ie=ae?TRANSITION_PROPS_TO_COPY:ROOT_TRANSITION_PROPS_TO_COPY,le=0;le=0;Ie--){var Ne=le[Ie],Fe=convertOptionIdName(Ne.id,null),ze=Fe!=null?_e.get(Fe):null;if(ze){var At=ze.parent,vn=inner$2(At),_n=At===pe?{width:Ce,height:$e}:{width:vn.width,height:vn.height},bn={},Cn=positionElement(ze,Ne,_n,null,{hv:Ne.hv,boundingMode:Ne.bounding},bn);if(!inner$2(ze).isNew&&Cn){for(var En=Ne.transition,$n={},wn=0;wn=0)?$n[Tn]=xn:ze[Tn]=xn}updateProps$1(ze,$n,ae,0)}else ze.attr(bn)}}},oe.prototype._clear=function(){var ae=this,ie=this._elMap;ie.each(function(le){removeEl(le,inner$2(le).option,ie,ae._lastGraphicModel)}),this._elMap=createHashMap()},oe.prototype.dispose=function(){this._clear()},oe.type="graphic",oe}(ComponentView$1);function newEl($){var oe=hasOwn(nonShapeGraphicElements,$)?nonShapeGraphicElements[$]:getShapeClass($),ae=new oe({});return inner$2(ae).type=$,ae}function createEl($,oe,ae,ie){var le=newEl(ae);return oe.add(le),ie.set($,le),inner$2(le).id=$,inner$2(le).isNew=!0,le}function removeEl($,oe,ae,ie){var le=$&&$.parent;le&&($.type==="group"&&$.traverse(function(pe){removeEl(pe,oe,ae,ie)}),applyLeaveTransition($,oe,ie),ae.removeKey(inner$2($).id))}function updateCommonAttrs($,oe,ae,ie){$.isGroup||each$c([["cursor",Displayable$1.prototype.cursor],["zlevel",ie||0],["z",ae||0],["z2",0]],function(le){var pe=le[0];hasOwn(oe,pe)?$[pe]=retrieve2(oe[pe],le[1]):$[pe]==null&&($[pe]=le[1])}),each$c(keys(oe),function(le){if(le.indexOf("on")===0){var pe=oe[le];$[le]=isFunction(pe)?pe:null}}),hasOwn(oe,"draggable")&&($.draggable=oe.draggable),oe.name!=null&&($.name=oe.name),oe.id!=null&&($.id=oe.id)}function getCleanedElOption($){return $=extend({},$),each$c(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(LOCATION_PARAMS),function(oe){delete $[oe]}),$}function setEventData($,oe,ae){var ie=getECData($).eventData;!$.silent&&!$.ignore&&!ie&&(ie=getECData($).eventData={componentType:"graphic",componentIndex:oe.componentIndex,name:$.name}),ie&&(ie.info=ae.info)}function install$d($){$.registerComponentModel(GraphicComponentModel),$.registerComponentView(GraphicComponentView),$.registerPreprocessor(function(oe){var ae=oe.graphic;isArray$1(ae)?!ae[0]||!ae[0].elements?oe.graphic=[{elements:ae}]:oe.graphic=[oe.graphic[0]]:ae&&!ae.elements&&(oe.graphic=[{elements:[ae]}])})}var DATA_ZOOM_AXIS_DIMENSIONS=["x","y","radius","angle","single"],SERIES_COORDS=["cartesian2d","polar","singleAxis"];function isCoordSupported($){var oe=$.get("coordinateSystem");return indexOf(SERIES_COORDS,oe)>=0}function getAxisMainType($){return $+"Axis"}function findEffectedDataZooms($,oe){var ae=createHashMap(),ie=[],le=createHashMap();$.eachComponent({mainType:"dataZoom",query:oe},function(Ie){le.get(Ie.uid)||Ce(Ie)});var pe;do pe=!1,$.eachComponent("dataZoom",_e);while(pe);function _e(Ie){!le.get(Ie.uid)&&$e(Ie)&&(Ce(Ie),pe=!0)}function Ce(Ie){le.set(Ie.uid,!0),ie.push(Ie),xe(Ie)}function $e(Ie){var Ne=!1;return Ie.eachTargetAxis(function(Fe,ze){var At=ae.get(Fe);At&&At[ze]&&(Ne=!0)}),Ne}function xe(Ie){Ie.eachTargetAxis(function(Ne,Fe){(ae.get(Ne)||ae.set(Ne,[]))[Fe]=!0})}return ie}function collectReferCoordSysModelInfo($){var oe=$.ecModel,ae={infoList:[],infoMap:createHashMap()};return $.eachTargetAxis(function(ie,le){var pe=oe.getComponent(getAxisMainType(ie),le);if(pe){var _e=pe.getCoordSysModel();if(_e){var Ce=_e.uid,$e=ae.infoMap.get(Ce);$e||($e={model:_e,axisModels:[]},ae.infoList.push($e),ae.infoMap.set(Ce,$e)),$e.axisModels.push(pe)}}}),ae}var DataZoomAxisInfo=function(){function $(){this.indexList=[],this.indexMap=[]}return $.prototype.add=function(oe){this.indexMap[oe]||(this.indexList.push(oe),this.indexMap[oe]=!0)},$}(),DataZoomModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae._autoThrottle=!0,ae._noTarget=!0,ae._rangePropMode=["percent","percent"],ae}return oe.prototype.init=function(ae,ie,le){var pe=retrieveRawOption(ae);this.settledOption=pe,this.mergeDefaultAndTheme(ae,le),this._doInit(pe)},oe.prototype.mergeOption=function(ae){var ie=retrieveRawOption(ae);merge(this.option,ae,!0),merge(this.settledOption,ie,!0),this._doInit(ie)},oe.prototype._doInit=function(ae){var ie=this.option;this._setDefaultThrottle(ae),this._updateRangeUse(ae);var le=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(pe,_e){this._rangePropMode[_e]==="value"&&(ie[pe[0]]=le[pe[0]]=null)},this),this._resetTarget()},oe.prototype._resetTarget=function(){var ae=this.get("orient",!0),ie=this._targetAxisInfoMap=createHashMap(),le=this._fillSpecifiedTargetAxis(ie);le?this._orient=ae||this._makeAutoOrientByTargetAxis():(this._orient=ae||"horizontal",this._fillAutoTargetAxisByOrient(ie,this._orient)),this._noTarget=!0,ie.each(function(pe){pe.indexList.length&&(this._noTarget=!1)},this)},oe.prototype._fillSpecifiedTargetAxis=function(ae){var ie=!1;return each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(le){var pe=this.getReferringComponents(getAxisMainType(le),MULTIPLE_REFERRING);if(pe.specified){ie=!0;var _e=new DataZoomAxisInfo;each$c(pe.models,function(Ce){_e.add(Ce.componentIndex)}),ae.set(le,_e)}},this),ie},oe.prototype._fillAutoTargetAxisByOrient=function(ae,ie){var le=this.ecModel,pe=!0;if(pe){var _e=ie==="vertical"?"y":"x",Ce=le.findComponents({mainType:_e+"Axis"});$e(Ce,_e)}if(pe){var Ce=le.findComponents({mainType:"singleAxis",filter:function(Ie){return Ie.get("orient",!0)===ie}});$e(Ce,"single")}function $e(xe,Ie){var Ne=xe[0];if(Ne){var Fe=new DataZoomAxisInfo;if(Fe.add(Ne.componentIndex),ae.set(Ie,Fe),pe=!1,Ie==="x"||Ie==="y"){var ze=Ne.getReferringComponents("grid",SINGLE_REFERRING).models[0];ze&&each$c(xe,function(At){Ne.componentIndex!==At.componentIndex&&ze===At.getReferringComponents("grid",SINGLE_REFERRING).models[0]&&Fe.add(At.componentIndex)})}}}pe&&each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(xe){if(pe){var Ie=le.findComponents({mainType:getAxisMainType(xe),filter:function(Fe){return Fe.get("type",!0)==="category"}});if(Ie[0]){var Ne=new DataZoomAxisInfo;Ne.add(Ie[0].componentIndex),ae.set(xe,Ne),pe=!1}}},this)},oe.prototype._makeAutoOrientByTargetAxis=function(){var ae;return this.eachTargetAxis(function(ie){!ae&&(ae=ie)},this),ae==="y"?"vertical":"horizontal"},oe.prototype._setDefaultThrottle=function(ae){if(ae.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var ie=this.ecModel.option;this.option.throttle=ie.animation&&ie.animationDurationUpdate>0?100:20}},oe.prototype._updateRangeUse=function(ae){var ie=this._rangePropMode,le=this.get("rangeMode");each$c([["start","startValue"],["end","endValue"]],function(pe,_e){var Ce=ae[pe[0]]!=null,$e=ae[pe[1]]!=null;Ce&&!$e?ie[_e]="percent":!Ce&&$e?ie[_e]="value":le?ie[_e]=le[_e]:Ce&&(ie[_e]="percent")})},oe.prototype.noTarget=function(){return this._noTarget},oe.prototype.getFirstTargetAxisModel=function(){var ae;return this.eachTargetAxis(function(ie,le){ae==null&&(ae=this.ecModel.getComponent(getAxisMainType(ie),le))},this),ae},oe.prototype.eachTargetAxis=function(ae,ie){this._targetAxisInfoMap.each(function(le,pe){each$c(le.indexList,function(_e){ae.call(ie,pe,_e)})})},oe.prototype.getAxisProxy=function(ae,ie){var le=this.getAxisModel(ae,ie);if(le)return le.__dzAxisProxy},oe.prototype.getAxisModel=function(ae,ie){var le=this._targetAxisInfoMap.get(ae);if(le&&le.indexMap[ie])return this.ecModel.getComponent(getAxisMainType(ae),ie)},oe.prototype.setRawRange=function(ae){var ie=this.option,le=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(pe){(ae[pe[0]]!=null||ae[pe[1]]!=null)&&(ie[pe[0]]=le[pe[0]]=ae[pe[0]],ie[pe[1]]=le[pe[1]]=ae[pe[1]])},this),this._updateRangeUse(ae)},oe.prototype.setCalculatedRange=function(ae){var ie=this.option;each$c(["start","startValue","end","endValue"],function(le){ie[le]=ae[le]})},oe.prototype.getPercentRange=function(){var ae=this.findRepresentativeAxisProxy();if(ae)return ae.getDataPercentWindow()},oe.prototype.getValueRange=function(ae,ie){if(ae==null&&ie==null){var le=this.findRepresentativeAxisProxy();if(le)return le.getDataValueWindow()}else return this.getAxisProxy(ae,ie).getDataValueWindow()},oe.prototype.findRepresentativeAxisProxy=function(ae){if(ae)return ae.__dzAxisProxy;for(var ie,le=this._targetAxisInfoMap.keys(),pe=0;pe_e[1];if(bn&&!Cn&&!En)return!0;bn&&(hn=!0),Cn&&(At=!0),En&&(Lt=!0)}return hn&&At&&Lt})}else each$7(Ie,function(ze){if(pe==="empty")$e.setData(xe=xe.map(ze,function(Lt){return Ce(Lt)?Lt:NaN}));else{var At={};At[ze]=_e,xe.selectRange(At)}});each$7(Ie,function(ze){xe.setApproximateExtent(_e,ze)})}});function Ce($e){return $e>=_e[0]&&$e<=_e[1]}},$.prototype._updateMinMaxSpan=function(){var oe=this._minMaxSpan={},ae=this._dataZoomModel,ie=this._dataExtent;each$7(["min","max"],function(le){var pe=ae.get(le+"Span"),_e=ae.get(le+"ValueSpan");_e!=null&&(_e=this.getAxisModel().axis.scale.parse(_e)),_e!=null?pe=linearMap$2(ie[0]+_e,ie,[0,100],!0):pe!=null&&(_e=linearMap$2(pe,[0,100],ie,!0)-ie[0]),oe[le+"Span"]=pe,oe[le+"ValueSpan"]=_e},this)},$.prototype._setAxisModel=function(){var oe=this.getAxisModel(),ae=this._percentWindow,ie=this._valueWindow;if(ae){var le=getPixelPrecision(ie,[0,500]);le=Math.min(le,20);var pe=oe.axis.scale.rawExtentInfo;ae[0]!==0&&pe.setDeterminedMinMax("min",+ie[0].toFixed(le)),ae[1]!==100&&pe.setDeterminedMinMax("max",+ie[1].toFixed(le)),pe.freeze()}},$}();function calculateDataExtent($,oe,ae){var ie=[1/0,-1/0];each$7(ae,function(_e){unionAxisExtentFromData(ie,_e.getData(),oe)});var le=$.getAxisModel(),pe=ensureScaleRawExtentInfo(le.axis.scale,le,ie).calculate();return[pe.min,pe.max]}const AxisProxy$1=AxisProxy;var dataZoomProcessor={getTargetSeries:function($){function oe(le){$.eachComponent("dataZoom",function(pe){pe.eachTargetAxis(function(_e,Ce){var $e=$.getComponent(getAxisMainType(_e),Ce);le(_e,Ce,$e,pe)})})}oe(function(le,pe,_e,Ce){_e.__dzAxisProxy=null});var ae=[];oe(function(le,pe,_e,Ce){_e.__dzAxisProxy||(_e.__dzAxisProxy=new AxisProxy$1(le,pe,Ce,$),ae.push(_e.__dzAxisProxy))});var ie=createHashMap();return each$c(ae,function(le){each$c(le.getTargetSeriesModels(),function(pe){ie.set(pe.uid,pe)})}),ie},overallReset:function($,oe){$.eachComponent("dataZoom",function(ae){ae.eachTargetAxis(function(ie,le){ae.getAxisProxy(ie,le).reset(ae)}),ae.eachTargetAxis(function(ie,le){ae.getAxisProxy(ie,le).filterData(ae,oe)})}),$.eachComponent("dataZoom",function(ae){var ie=ae.findRepresentativeAxisProxy();if(ie){var le=ie.getDataPercentWindow(),pe=ie.getDataValueWindow();ae.setCalculatedRange({start:le[0],end:le[1],startValue:pe[0],endValue:pe[1]})}})}};const dataZoomProcessor$1=dataZoomProcessor;function installDataZoomAction($){$.registerAction("dataZoom",function(oe,ae){var ie=findEffectedDataZooms(ae,oe);each$c(ie,function(le){le.setRawRange({start:oe.start,end:oe.end,startValue:oe.startValue,endValue:oe.endValue})})})}var installed$1=!1;function installCommon$1($){installed$1||(installed$1=!0,$.registerProcessor($.PRIORITY.PROCESSOR.FILTER,dataZoomProcessor$1),installDataZoomAction($),$.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function install$c($){$.registerComponentModel(SelectZoomModel),$.registerComponentView(SelectZoomView),installCommon$1($)}var ToolboxFeature=function(){function $(){}return $}(),features={};function registerFeature($,oe){features[$]=oe}function getFeature($){return features[$]}var ToolboxModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.optionUpdated=function(){$.prototype.optionUpdated.apply(this,arguments);var ae=this.ecModel;each$c(this.option.feature,function(ie,le){var pe=getFeature(le);pe&&(pe.getDefaultOption&&(pe.defaultOption=pe.getDefaultOption(ae)),merge(ie,pe.defaultOption))})},oe.type="toolbox",oe.layoutMode={type:"box",ignoreSize:!0},oe.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},oe}(ComponentModel$1);const ToolboxModel$1=ToolboxModel;function layout($,oe,ae){var ie=oe.getBoxLayoutParams(),le=oe.get("padding"),pe={width:ae.getWidth(),height:ae.getHeight()},_e=getLayoutRect(ie,pe,le);box(oe.get("orient"),$,oe.get("itemGap"),_e.width,_e.height),positionElement($,ie,pe,le)}function makeBackground($,oe){var ae=normalizeCssArray(oe.get("padding")),ie=oe.getItemStyle(["color","opacity"]);return ie.fill=oe.get("backgroundColor"),$=new Rect$2({shape:{x:$.x-ae[3],y:$.y-ae[0],width:$.width+ae[1]+ae[3],height:$.height+ae[0]+ae[2],r:oe.get("borderRadius")},style:ie,silent:!0,z2:-1}),$}var ToolboxView=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.render=function(ae,ie,le,pe){var _e=this.group;if(_e.removeAll(),!ae.get("show"))return;var Ce=+ae.get("itemSize"),$e=ae.get("orient")==="vertical",xe=ae.get("feature")||{},Ie=this._features||(this._features={}),Ne=[];each$c(xe,function(At,Lt){Ne.push(Lt)}),new DataDiffer$1(this._featureNames||[],Ne).add(Fe).update(Fe).remove(curry$1(Fe,null)).execute(),this._featureNames=Ne;function Fe(At,Lt){var hn=Ne[At],vn=Ne[Lt],_n=xe[hn],bn=new Model$1(_n,ae,ae.ecModel),Cn;if(pe&&pe.newTitle!=null&&pe.featureName===hn&&(_n.title=pe.newTitle),hn&&!vn){if(isUserFeatureName(hn))Cn={onclick:bn.option.onclick,featureName:hn};else{var En=getFeature(hn);if(!En)return;Cn=new En}Ie[hn]=Cn}else if(Cn=Ie[vn],!Cn)return;Cn.uid=getUID("toolbox-feature"),Cn.model=bn,Cn.ecModel=ie,Cn.api=le;var $n=Cn instanceof ToolboxFeature;if(!hn&&vn){$n&&Cn.dispose&&Cn.dispose(ie,le);return}if(!bn.get("show")||$n&&Cn.unusable){$n&&Cn.remove&&Cn.remove(ie,le);return}ze(bn,Cn,hn),bn.setIconStatus=function(wn,Tn){var xn=this.option,kn=this.iconPaths;xn.iconStatus=xn.iconStatus||{},xn.iconStatus[wn]=Tn,kn[wn]&&(Tn==="emphasis"?enterEmphasis:leaveEmphasis)(kn[wn])},Cn instanceof ToolboxFeature&&Cn.render&&Cn.render(bn,ie,le,pe)}function ze(At,Lt,hn){var vn=At.getModel("iconStyle"),_n=At.getModel(["emphasis","iconStyle"]),bn=Lt instanceof ToolboxFeature&&Lt.getIcons?Lt.getIcons():At.get("icon"),Cn=At.get("title")||{},En,$n;isString(bn)?(En={},En[hn]=bn):En=bn,isString(Cn)?($n={},$n[hn]=Cn):$n=Cn;var wn=At.iconPaths={};each$c(En,function(Tn,xn){var kn=createIcon(Tn,{},{x:-Ce/2,y:-Ce/2,width:Ce,height:Ce});kn.setStyle(vn.getItemStyle());var An=kn.ensureState("emphasis");An.style=_n.getItemStyle();var On=new ZRText$1({style:{text:$n[xn],align:_n.get("textAlign"),borderRadius:_n.get("textBorderRadius"),padding:_n.get("textPadding"),fill:null},ignore:!0});kn.setTextContent(On),setTooltipConfig({el:kn,componentModel:ae,itemName:xn,formatterParamsExtra:{title:$n[xn]}}),kn.__title=$n[xn],kn.on("mouseover",function(){var Nn=_n.getItemStyle(),Rn=$e?ae.get("right")==null&&ae.get("left")!=="right"?"right":"left":ae.get("bottom")==null&&ae.get("top")!=="bottom"?"bottom":"top";On.setStyle({fill:_n.get("textFill")||Nn.fill||Nn.stroke||"#000",backgroundColor:_n.get("textBackgroundColor")}),kn.setTextConfig({position:_n.get("textPosition")||Rn}),On.ignore=!ae.get("showTitle"),le.enterEmphasis(this)}).on("mouseout",function(){At.get(["iconStatus",xn])!=="emphasis"&&le.leaveEmphasis(this),On.hide()}),(At.get(["iconStatus",xn])==="emphasis"?enterEmphasis:leaveEmphasis)(kn),_e.add(kn),kn.on("click",bind$1(Lt.onclick,Lt,ie,le,xn)),wn[xn]=kn})}layout(_e,ae,le),_e.add(makeBackground(_e.getBoundingRect(),ae)),$e||_e.eachChild(function(At){var Lt=At.__title,hn=At.ensureState("emphasis"),vn=hn.textConfig||(hn.textConfig={}),_n=At.getTextContent(),bn=_n&&_n.ensureState("emphasis");if(bn&&!isFunction(bn)&&Lt){var Cn=bn.style||(bn.style={}),En=getBoundingRect(Lt,ZRText$1.makeFont(Cn)),$n=At.x+_e.x,wn=At.y+_e.y+Ce,Tn=!1;wn+En.height>le.getHeight()&&(vn.position="top",Tn=!0);var xn=Tn?-5-En.height:Ce+10;$n+En.width/2>le.getWidth()?(vn.position=["100%",xn],Cn.align="right"):$n-En.width/2<0&&(vn.position=[0,xn],Cn.align="left")}})},oe.prototype.updateView=function(ae,ie,le,pe){each$c(this._features,function(_e){_e instanceof ToolboxFeature&&_e.updateView&&_e.updateView(_e.model,ie,le,pe)})},oe.prototype.remove=function(ae,ie){each$c(this._features,function(le){le instanceof ToolboxFeature&&le.remove&&le.remove(ae,ie)}),this.group.removeAll()},oe.prototype.dispose=function(ae,ie){each$c(this._features,function(le){le instanceof ToolboxFeature&&le.dispose&&le.dispose(ae,ie)})},oe.type="toolbox",oe}(ComponentView$1);function isUserFeatureName($){return $.indexOf("my")===0}const ToolboxView$1=ToolboxView;var SaveAsImage=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.onclick=function(ae,ie){var le=this.model,pe=le.get("name")||ae.get("title.0.text")||"echarts",_e=ie.getZr().painter.getType()==="svg",Ce=_e?"svg":le.get("type",!0)||"png",$e=ie.getConnectedDataURL({type:Ce,backgroundColor:le.get("backgroundColor",!0)||ae.get("backgroundColor")||"#fff",connectedBackgroundColor:le.get("connectedBackgroundColor"),excludeComponents:le.get("excludeComponents"),pixelRatio:le.get("pixelRatio")}),xe=env$1.browser;if(isFunction(MouseEvent)&&(xe.newEdge||!xe.ie&&!xe.edge)){var Ie=document.createElement("a");Ie.download=pe+"."+Ce,Ie.target="_blank",Ie.href=$e;var Ne=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});Ie.dispatchEvent(Ne)}else if(window.navigator.msSaveOrOpenBlob||_e){var Fe=$e.split(","),ze=Fe[0].indexOf("base64")>-1,At=_e?decodeURIComponent(Fe[1]):Fe[1];ze&&(At=window.atob(At));var Lt=pe+"."+Ce;if(window.navigator.msSaveOrOpenBlob){for(var hn=At.length,vn=new Uint8Array(hn);hn--;)vn[hn]=At.charCodeAt(hn);var _n=new Blob([vn]);window.navigator.msSaveOrOpenBlob(_n,Lt)}else{var bn=document.createElement("iframe");document.body.appendChild(bn);var Cn=bn.contentWindow,En=Cn.document;En.open("image/svg+xml","replace"),En.write(At),En.close(),Cn.focus(),En.execCommand("SaveAs",!0,Lt),document.body.removeChild(bn)}}else{var $n=le.get("lang"),wn='',Tn=window.open();Tn.document.write(wn),Tn.document.title=pe}},oe.getDefaultOption=function(ae){var ie={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:ae.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:ae.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return ie},oe}(ToolboxFeature);const SaveAsImage$1=SaveAsImage;var INNER_STACK_KEYWORD="__ec_magicType_stack__",radioTypes=[["line","bar"],["stack"]],MagicType=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.getIcons=function(){var ae=this.model,ie=ae.get("icon"),le={};return each$c(ae.get("type"),function(pe){ie[pe]&&(le[pe]=ie[pe])}),le},oe.getDefaultOption=function(ae){var ie={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:ae.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return ie},oe.prototype.onclick=function(ae,ie,le){var pe=this.model,_e=pe.get(["seriesIndex",le]);if(seriesOptGenreator[le]){var Ce={series:[]},$e=function(Ne){var Fe=Ne.subType,ze=Ne.id,At=seriesOptGenreator[le](Fe,ze,Ne,pe);At&&(defaults(At,Ne.option),Ce.series.push(At));var Lt=Ne.coordinateSystem;if(Lt&&Lt.type==="cartesian2d"&&(le==="line"||le==="bar")){var hn=Lt.getAxesByScale("ordinal")[0];if(hn){var vn=hn.dim,_n=vn+"Axis",bn=Ne.getReferringComponents(_n,SINGLE_REFERRING).models[0],Cn=bn.componentIndex;Ce[_n]=Ce[_n]||[];for(var En=0;En<=Cn;En++)Ce[_n][Cn]=Ce[_n][Cn]||{};Ce[_n][Cn].boundaryGap=le==="bar"}}};each$c(radioTypes,function(Ne){indexOf(Ne,le)>=0&&each$c(Ne,function(Fe){pe.setIconStatus(Fe,"normal")})}),pe.setIconStatus(le,"emphasis"),ae.eachComponent({mainType:"series",query:_e==null?null:{seriesIndex:_e}},$e);var xe,Ie=le;le==="stack"&&(xe=merge({stack:pe.option.title.tiled,tiled:pe.option.title.stack},pe.option.title),pe.get(["iconStatus",le])!=="emphasis"&&(Ie="tiled")),ie.dispatchAction({type:"changeMagicType",currentType:Ie,newOption:Ce,newTitle:xe,featureName:"magicType"})}},oe}(ToolboxFeature),seriesOptGenreator={line:function($,oe,ae,ie){if($==="bar")return merge({id:oe,type:"line",data:ae.get("data"),stack:ae.get("stack"),markPoint:ae.get("markPoint"),markLine:ae.get("markLine")},ie.get(["option","line"])||{},!0)},bar:function($,oe,ae,ie){if($==="line")return merge({id:oe,type:"bar",data:ae.get("data"),stack:ae.get("stack"),markPoint:ae.get("markPoint"),markLine:ae.get("markLine")},ie.get(["option","bar"])||{},!0)},stack:function($,oe,ae,ie){var le=ae.get("stack")===INNER_STACK_KEYWORD;if($==="line"||$==="bar")return ie.setIconStatus("stack",le?"normal":"emphasis"),merge({id:oe,stack:le?"":INNER_STACK_KEYWORD},ie.get(["option","stack"])||{},!0)}};registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function($,oe){oe.mergeOption($.newOption)});const MagicType$1=MagicType;var BLOCK_SPLITER=new Array(60).join("-"),ITEM_SPLITER=" ";function groupSeries($){var oe={},ae=[],ie=[];return $.eachRawSeries(function(le){var pe=le.coordinateSystem;if(pe&&(pe.type==="cartesian2d"||pe.type==="polar")){var _e=pe.getBaseAxis();if(_e.type==="category"){var Ce=_e.dim+"_"+_e.index;oe[Ce]||(oe[Ce]={categoryAxis:_e,valueAxis:pe.getOtherAxis(_e),series:[]},ie.push({axisDim:_e.dim,axisIndex:_e.index})),oe[Ce].series.push(le)}else ae.push(le)}else ae.push(le)}),{seriesGroupByCategoryAxis:oe,other:ae,meta:ie}}function assembleSeriesWithCategoryAxis($){var oe=[];return each$c($,function(ae,ie){var le=ae.categoryAxis,pe=ae.valueAxis,_e=pe.dim,Ce=[" "].concat(map$2(ae.series,function(ze){return ze.name})),$e=[le.model.getCategories()];each$c(ae.series,function(ze){var At=ze.getRawData();$e.push(ze.getRawData().mapArray(At.mapDimension(_e),function(Lt){return Lt}))});for(var xe=[Ce.join(ITEM_SPLITER)],Ie=0;Ie<$e[0].length;Ie++){for(var Ne=[],Fe=0;Fe<$e.length;Fe++)Ne.push($e[Fe][Ie]);xe.push(Ne.join(ITEM_SPLITER))}oe.push(xe.join(` +`))}),oe.join(` + +`+BLOCK_SPLITER+` + +`)}function assembleOtherSeries($){return map$2($,function(oe){var ae=oe.getRawData(),ie=[oe.name],le=[];return ae.each(ae.dimensions,function(){for(var pe=arguments.length,_e=arguments[pe-1],Ce=ae.getName(_e),$e=0;$e=0)return!0}var itemSplitRegex=new RegExp("["+ITEM_SPLITER+"]+","g");function parseTSVContents($){for(var oe=$.split(/\n+/g),ae=trim(oe.shift()).split(itemSplitRegex),ie=[],le=map$2(ae,function($e){return{name:$e,data:[]}}),pe=0;pe=0;pe--){var _e=ae[pe];if(_e[le])break}if(pe<0){var Ce=$.queryComponents({mainType:"dataZoom",subType:"select",id:le})[0];if(Ce){var $e=Ce.getPercentRange();ae[0][le]={dataZoomId:le,start:$e[0],end:$e[1]}}}}),ae.push(oe)}function pop($){var oe=getStoreSnapshots($),ae=oe[oe.length-1];oe.length>1&&oe.pop();var ie={};return each$6(ae,function(le,pe){for(var _e=oe.length-1;_e>=0;_e--)if(le=oe[_e][pe],le){ie[pe]=le;break}}),ie}function clear($){inner$1($).snapshots=null}function count($){return getStoreSnapshots($).length}function getStoreSnapshots($){var oe=inner$1($);return oe.snapshots||(oe.snapshots=[{}]),oe.snapshots}var RestoreOption=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.onclick=function(ae,ie){clear(ae),ie.dispatchAction({type:"restore",from:this.uid})},oe.getDefaultOption=function(ae){var ie={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:ae.getLocaleModel().get(["toolbox","restore","title"])};return ie},oe}(ToolboxFeature);registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function($,oe){oe.resetOption("recreate")});const Restore=RestoreOption;var INCLUDE_FINDER_MAIN_TYPES=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BrushTargetManager=function(){function $(oe,ae,ie){var le=this;this._targetInfoList=[];var pe=parseFinder(ae,oe);each$c(targetInfoBuilders,function(_e,Ce){(!ie||!ie.include||indexOf(ie.include,Ce)>=0)&&_e(pe,le._targetInfoList)})}return $.prototype.setOutputRanges=function(oe,ae){return this.matchOutputRanges(oe,ae,function(ie,le,pe){if((ie.coordRanges||(ie.coordRanges=[])).push(le),!ie.coordRange){ie.coordRange=le;var _e=coordConvert[ie.brushType](0,pe,le);ie.__rangeOffset={offset:diffProcessor[ie.brushType](_e.values,ie.range,[1,1]),xyMinMax:_e.xyMinMax}}}),oe},$.prototype.matchOutputRanges=function(oe,ae,ie){each$c(oe,function(le){var pe=this.findTargetInfo(le,ae);pe&&pe!==!0&&each$c(pe.coordSyses,function(_e){var Ce=coordConvert[le.brushType](1,_e,le.range,!0);ie(le,Ce.values,_e,ae)})},this)},$.prototype.setInputRanges=function(oe,ae){each$c(oe,function(ie){var le=this.findTargetInfo(ie,ae);if(ie.range=ie.range||[],le&&le!==!0){ie.panelId=le.panelId;var pe=coordConvert[ie.brushType](0,le.coordSys,ie.coordRange),_e=ie.__rangeOffset;ie.range=_e?diffProcessor[ie.brushType](pe.values,_e.offset,getScales(pe.xyMinMax,_e.xyMinMax)):pe.values}},this)},$.prototype.makePanelOpts=function(oe,ae){return map$2(this._targetInfoList,function(ie){var le=ie.getPanelRect();return{panelId:ie.panelId,defaultBrushType:ae?ae(ie):null,clipPath:makeRectPanelClipPath(le),isTargetByCursor:makeRectIsTargetByCursor(le,oe,ie.coordSysModel),getLinearBrushOtherExtent:makeLinearBrushOtherExtent(le)}})},$.prototype.controlSeries=function(oe,ae,ie){var le=this.findTargetInfo(oe,ie);return le===!0||le&&indexOf(le.coordSyses,ae.coordinateSystem)>=0},$.prototype.findTargetInfo=function(oe,ae){for(var ie=this._targetInfoList,le=parseFinder(ae,oe),pe=0;pe$[1]&&$.reverse(),$}function parseFinder($,oe){return parseFinder$1($,oe,{includeMainTypes:INCLUDE_FINDER_MAIN_TYPES})}var targetInfoBuilders={grid:function($,oe){var ae=$.xAxisModels,ie=$.yAxisModels,le=$.gridModels,pe=createHashMap(),_e={},Ce={};!ae&&!ie&&!le||(each$c(ae,function($e){var xe=$e.axis.grid.model;pe.set(xe.id,xe),_e[xe.id]=!0}),each$c(ie,function($e){var xe=$e.axis.grid.model;pe.set(xe.id,xe),Ce[xe.id]=!0}),each$c(le,function($e){pe.set($e.id,$e),_e[$e.id]=!0,Ce[$e.id]=!0}),pe.each(function($e){var xe=$e.coordinateSystem,Ie=[];each$c(xe.getCartesians(),function(Ne,Fe){(indexOf(ae,Ne.getAxis("x").model)>=0||indexOf(ie,Ne.getAxis("y").model)>=0)&&Ie.push(Ne)}),oe.push({panelId:"grid--"+$e.id,gridModel:$e,coordSysModel:$e,coordSys:Ie[0],coordSyses:Ie,getPanelRect:panelRectBuilders.grid,xAxisDeclared:_e[$e.id],yAxisDeclared:Ce[$e.id]})}))},geo:function($,oe){each$c($.geoModels,function(ae){var ie=ae.coordinateSystem;oe.push({panelId:"geo--"+ae.id,geoModel:ae,coordSysModel:ae,coordSys:ie,coordSyses:[ie],getPanelRect:panelRectBuilders.geo})})}},targetInfoMatchers=[function($,oe){var ae=$.xAxisModel,ie=$.yAxisModel,le=$.gridModel;return!le&&ae&&(le=ae.axis.grid.model),!le&&ie&&(le=ie.axis.grid.model),le&&le===oe.gridModel},function($,oe){var ae=$.geoModel;return ae&&ae===oe.geoModel}],panelRectBuilders={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var $=this.coordSys,oe=$.getBoundingRect().clone();return oe.applyTransform(getTransform$1($)),oe}},coordConvert={lineX:curry$1(axisConvert,0),lineY:curry$1(axisConvert,1),rect:function($,oe,ae,ie){var le=$?oe.pointToData([ae[0][0],ae[1][0]],ie):oe.dataToPoint([ae[0][0],ae[1][0]],ie),pe=$?oe.pointToData([ae[0][1],ae[1][1]],ie):oe.dataToPoint([ae[0][1],ae[1][1]],ie),_e=[formatMinMax([le[0],pe[0]]),formatMinMax([le[1],pe[1]])];return{values:_e,xyMinMax:_e}},polygon:function($,oe,ae,ie){var le=[[1/0,-1/0],[1/0,-1/0]],pe=map$2(ae,function(_e){var Ce=$?oe.pointToData(_e,ie):oe.dataToPoint(_e,ie);return le[0][0]=Math.min(le[0][0],Ce[0]),le[1][0]=Math.min(le[1][0],Ce[1]),le[0][1]=Math.max(le[0][1],Ce[0]),le[1][1]=Math.max(le[1][1],Ce[1]),Ce});return{values:pe,xyMinMax:le}}};function axisConvert($,oe,ae,ie){var le=ae.getAxis(["x","y"][$]),pe=formatMinMax(map$2([0,1],function(Ce){return oe?le.coordToData(le.toLocalCoord(ie[Ce]),!0):le.toGlobalCoord(le.dataToCoord(ie[Ce]))})),_e=[];return _e[$]=pe,_e[1-$]=[NaN,NaN],{values:pe,xyMinMax:_e}}var diffProcessor={lineX:curry$1(axisDiffProcessor,0),lineY:curry$1(axisDiffProcessor,1),rect:function($,oe,ae){return[[$[0][0]-ae[0]*oe[0][0],$[0][1]-ae[0]*oe[0][1]],[$[1][0]-ae[1]*oe[1][0],$[1][1]-ae[1]*oe[1][1]]]},polygon:function($,oe,ae){return map$2($,function(ie,le){return[ie[0]-ae[0]*oe[le][0],ie[1]-ae[1]*oe[le][1]]})}};function axisDiffProcessor($,oe,ae,ie){return[oe[0]-ie[$]*ae[0],oe[1]-ie[$]*ae[1]]}function getScales($,oe){var ae=getSize($),ie=getSize(oe),le=[ae[0]/ie[0],ae[1]/ie[1]];return isNaN(le[0])&&(le[0]=1),isNaN(le[1])&&(le[1]=1),le}function getSize($){return $?[$[0][1]-$[0][0],$[1][1]-$[1][0]]:[NaN,NaN]}const BrushTargetManager$1=BrushTargetManager;var each$5=each$c,DATA_ZOOM_ID_BASE=makeInternalComponentId("toolbox-dataZoom_"),DataZoomFeature=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.render=function(ae,ie,le,pe){this._brushController||(this._brushController=new BrushController$1(le.getZr()),this._brushController.on("brush",bind$1(this._onBrush,this)).mount()),updateZoomBtnStatus(ae,ie,this,pe,le),updateBackBtnStatus(ae,ie)},oe.prototype.onclick=function(ae,ie,le){handlers[le].call(this)},oe.prototype.remove=function(ae,ie){this._brushController&&this._brushController.unmount()},oe.prototype.dispose=function(ae,ie){this._brushController&&this._brushController.dispose()},oe.prototype._onBrush=function(ae){var ie=ae.areas;if(!ae.isEnd||!ie.length)return;var le={},pe=this.ecModel;this._brushController.updateCovers([]);var _e=new BrushTargetManager$1(makeAxisFinder(this.model),pe,{include:["grid"]});_e.matchOutputRanges(ie,pe,function(xe,Ie,Ne){if(Ne.type==="cartesian2d"){var Fe=xe.brushType;Fe==="rect"?(Ce("x",Ne,Ie[0]),Ce("y",Ne,Ie[1])):Ce({lineX:"x",lineY:"y"}[Fe],Ne,Ie)}}),push(pe,le),this._dispatchZoomAction(le);function Ce(xe,Ie,Ne){var Fe=Ie.getAxis(xe),ze=Fe.model,At=$e(xe,ze,pe),Lt=At.findRepresentativeAxisProxy(ze).getMinMaxSpan();(Lt.minValueSpan!=null||Lt.maxValueSpan!=null)&&(Ne=sliderMove(0,Ne.slice(),Fe.scale.getExtent(),0,Lt.minValueSpan,Lt.maxValueSpan)),At&&(le[At.id]={dataZoomId:At.id,startValue:Ne[0],endValue:Ne[1]})}function $e(xe,Ie,Ne){var Fe;return Ne.eachComponent({mainType:"dataZoom",subType:"select"},function(ze){var At=ze.getAxisModel(xe,Ie.componentIndex);At&&(Fe=ze)}),Fe}},oe.prototype._dispatchZoomAction=function(ae){var ie=[];each$5(ae,function(le,pe){ie.push(clone$3(le))}),ie.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:ie})},oe.getDefaultOption=function(ae){var ie={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:ae.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return ie},oe}(ToolboxFeature),handlers={zoom:function(){var $=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:$})},back:function(){this._dispatchZoomAction(pop(this.ecModel))}};function makeAxisFinder($){var oe={xAxisIndex:$.get("xAxisIndex",!0),yAxisIndex:$.get("yAxisIndex",!0),xAxisId:$.get("xAxisId",!0),yAxisId:$.get("yAxisId",!0)};return oe.xAxisIndex==null&&oe.xAxisId==null&&(oe.xAxisIndex="all"),oe.yAxisIndex==null&&oe.yAxisId==null&&(oe.yAxisIndex="all"),oe}function updateBackBtnStatus($,oe){$.setIconStatus("back",count(oe)>1?"emphasis":"normal")}function updateZoomBtnStatus($,oe,ae,ie,le){var pe=ae._isZoomActive;ie&&ie.type==="takeGlobalCursor"&&(pe=ie.key==="dataZoomSelect"?ie.dataZoomSelectActive:!1),ae._isZoomActive=pe,$.setIconStatus("zoom",pe?"emphasis":"normal");var _e=new BrushTargetManager$1(makeAxisFinder($),oe,{include:["grid"]}),Ce=_e.makePanelOpts(le,function($e){return $e.xAxisDeclared&&!$e.yAxisDeclared?"lineX":!$e.xAxisDeclared&&$e.yAxisDeclared?"lineY":"rect"});ae._brushController.setPanels(Ce).enableBrush(pe&&Ce.length?{brushType:"auto",brushStyle:$.getModel("brushStyle").getItemStyle()}:!1)}registerInternalOptionCreator("dataZoom",function($){var oe=$.getComponent("toolbox",0),ae=["feature","dataZoom"];if(!oe||oe.get(ae)==null)return;var ie=oe.getModel(ae),le=[],pe=makeAxisFinder(ie),_e=parseFinder$1($,pe);each$5(_e.xAxisModels,function($e){return Ce($e,"xAxis","xAxisIndex")}),each$5(_e.yAxisModels,function($e){return Ce($e,"yAxis","yAxisIndex")});function Ce($e,xe,Ie){var Ne=$e.componentIndex,Fe={type:"select",$fromToolbox:!0,filterMode:ie.get("filterMode",!0)||"filter",id:DATA_ZOOM_ID_BASE+xe+Ne};Fe[Ie]=Ne,le.push(Fe)}return le});const DataZoom=DataZoomFeature;function install$b($){$.registerComponentModel(ToolboxModel$1),$.registerComponentView(ToolboxView$1),registerFeature("saveAsImage",SaveAsImage$1),registerFeature("magicType",MagicType$1),registerFeature("dataView",DataView$2),registerFeature("dataZoom",DataZoom),registerFeature("restore",Restore),use$1(install$c)}var TooltipModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.type="tooltip",oe.dependencies=["axisPointer"],oe.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},oe}(ComponentModel$1);const TooltipModel$1=TooltipModel;function shouldTooltipConfine($){var oe=$.get("confine");return oe!=null?!!oe:$.get("renderMode")==="richText"}function testStyle($){if(env$1.domSupported){for(var oe=document.documentElement.style,ae=0,ie=$.length;ae-1?(Ce+="top:50%",$e+="translateY(-50%) rotate("+(xe=pe==="left"?-225:-45)+"deg)"):(Ce+="left:50%",$e+="translateX(-50%) rotate("+(xe=pe==="top"?225:45)+"deg)");var Ie=xe*Math.PI/180,Ne=_e+le,Fe=Ne*Math.abs(Math.cos(Ie))+Ne*Math.abs(Math.sin(Ie)),ze=Math.round(((Fe-Math.SQRT2*le)/2+Math.SQRT2*le-(Fe-Ne)/2)*100)/100;Ce+=";"+pe+":-"+ze+"px";var At=oe+" solid "+le+"px;",Lt=["position:absolute;width:"+_e+"px;height:"+_e+"px;z-index:-1;",Ce+";"+$e+";","border-bottom:"+At,"border-right:"+At,"background-color:"+ie+";"];return'
'}function assembleTransition($,oe){var ae="cubic-bezier(0.23,1,0.32,1)",ie=" "+$/2+"s "+ae,le="opacity"+ie+",visibility"+ie;return oe||(ie=" "+$+"s "+ae,le+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+ie:",left"+ie+",top"+ie),CSS_TRANSITION_VENDOR+":"+le}function assembleTransform($,oe,ae){var ie=$.toFixed(0)+"px",le=oe.toFixed(0)+"px";if(!env$1.transformSupported)return ae?"top:"+le+";left:"+ie+";":[["top",le],["left",ie]];var pe=env$1.transform3dSupported,_e="translate"+(pe?"3d":"")+"("+ie+","+le+(pe?",0":"")+")";return ae?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+_e+";":[["top",0],["left",0],[TRANSFORM_VENDOR,_e]]}function assembleFont($){var oe=[],ae=$.get("fontSize"),ie=$.getTextColor();ie&&oe.push("color:"+ie),oe.push("font:"+$.getFont()),ae&&oe.push("line-height:"+Math.round(ae*3/2)+"px");var le=$.get("textShadowColor"),pe=$.get("textShadowBlur")||0,_e=$.get("textShadowOffsetX")||0,Ce=$.get("textShadowOffsetY")||0;return le&&pe&&oe.push("text-shadow:"+_e+"px "+Ce+"px "+pe+"px "+le),each$c(["decoration","align"],function($e){var xe=$.get($e);xe&&oe.push("text-"+$e+":"+xe)}),oe.join(";")}function assembleCssText($,oe,ae){var ie=[],le=$.get("transitionDuration"),pe=$.get("backgroundColor"),_e=$.get("shadowBlur"),Ce=$.get("shadowColor"),$e=$.get("shadowOffsetX"),xe=$.get("shadowOffsetY"),Ie=$.getModel("textStyle"),Ne=getPaddingFromTooltipModel($,"html"),Fe=$e+"px "+xe+"px "+_e+"px "+Ce;return ie.push("box-shadow:"+Fe),oe&&le&&ie.push(assembleTransition(le,ae)),pe&&ie.push("background-color:"+pe),each$c(["width","color","radius"],function(ze){var At="border-"+ze,Lt=toCamelCase(At),hn=$.get(Lt);hn!=null&&ie.push(At+":"+hn+(ze==="color"?"":"px"))}),ie.push(assembleFont(Ie)),Ne!=null&&ie.push("padding:"+normalizeCssArray(Ne).join("px ")+"px"),ie.join(";")+";"}function makeStyleCoord$1($,oe,ae,ie,le){var pe=oe&&oe.painter;if(ae){var _e=pe&&pe.getViewportRoot();_e&&transformLocalCoord($,_e,document.body,ie,le)}else{$[0]=ie,$[1]=le;var Ce=pe&&pe.getViewportRootOffset();Ce&&($[0]+=Ce.offsetLeft,$[1]+=Ce.offsetTop)}$[2]=$[0]/oe.getWidth(),$[3]=$[1]/oe.getHeight()}var TooltipHTMLContent=function(){function $(oe,ae,ie){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,env$1.wxa)return null;var le=document.createElement("div");le.domBelongToZr=!0,this.el=le;var pe=this._zr=ae.getZr(),_e=this._appendToBody=ie&&ie.appendToBody;makeStyleCoord$1(this._styleCoord,pe,_e,ae.getWidth()/2,ae.getHeight()/2),_e?document.body.appendChild(le):oe.appendChild(le),this._container=oe;var Ce=this;le.onmouseenter=function(){Ce._enterable&&(clearTimeout(Ce._hideTimeout),Ce._show=!0),Ce._inContent=!0},le.onmousemove=function($e){if($e=$e||window.event,!Ce._enterable){var xe=pe.handler,Ie=pe.painter.getViewportRoot();normalizeEvent(Ie,$e,!0),xe.dispatch("mousemove",$e)}},le.onmouseleave=function(){Ce._inContent=!1,Ce._enterable&&Ce._show&&Ce.hideLater(Ce._hideDelay)}}return $.prototype.update=function(oe){var ae=this._container,ie=getComputedStyle$1(ae,"position"),le=ae.style;le.position!=="absolute"&&ie!=="absolute"&&(le.position="relative");var pe=oe.get("alwaysShowContent");pe&&this._moveIfResized(),this._alwaysShowContent=pe,this.el.className=oe.get("className")||""},$.prototype.show=function(oe,ae){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var ie=this.el,le=ie.style,pe=this._styleCoord;ie.innerHTML?le.cssText=gCssText+assembleCssText(oe,!this._firstShow,this._longHide)+assembleTransform(pe[0],pe[1],!0)+("border-color:"+convertToColorString(ae)+";")+(oe.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):le.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},$.prototype.setContent=function(oe,ae,ie,le,pe){var _e=this.el;if(oe==null){_e.innerHTML="";return}var Ce="";if(isString(pe)&&ie.get("trigger")==="item"&&!shouldTooltipConfine(ie)&&(Ce=assembleArrow(ie,le,pe)),isString(oe))_e.innerHTML=oe+Ce;else if(oe){_e.innerHTML="",isArray$1(oe)||(oe=[oe]);for(var $e=0;$e=0?this._tryShow(pe,_e):le==="leave"&&this._hide(_e))},this))},oe.prototype._keepShow=function(){var ae=this._tooltipModel,ie=this._ecModel,le=this._api,pe=ae.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&pe!=="none"&&pe!=="click"){var _e=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!le.isDisposed()&&_e.manuallyShowTip(ae,ie,le,{x:_e._lastX,y:_e._lastY,dataByCoordSys:_e._lastDataByCoordSys})})}},oe.prototype.manuallyShowTip=function(ae,ie,le,pe){if(!(pe.from===this.uid||env$1.node||!le.getDom())){var _e=makeDispatchAction(pe,le);this._ticket="";var Ce=pe.dataByCoordSys,$e=findComponentReference(pe,ie,le);if($e){var xe=$e.el.getBoundingRect().clone();xe.applyTransform($e.el.transform),this._tryShow({offsetX:xe.x+xe.width/2,offsetY:xe.y+xe.height/2,target:$e.el,position:pe.position,positionDefault:"bottom"},_e)}else if(pe.tooltip&&pe.x!=null&&pe.y!=null){var Ie=proxyRect;Ie.x=pe.x,Ie.y=pe.y,Ie.update(),getECData(Ie).tooltipConfig={name:null,option:pe.tooltip},this._tryShow({offsetX:pe.x,offsetY:pe.y,target:Ie},_e)}else if(Ce)this._tryShow({offsetX:pe.x,offsetY:pe.y,position:pe.position,dataByCoordSys:Ce,tooltipOption:pe.tooltipOption},_e);else if(pe.seriesIndex!=null){if(this._manuallyAxisShowTip(ae,ie,le,pe))return;var Ne=findPointFromSeries(pe,ie),Fe=Ne.point[0],ze=Ne.point[1];Fe!=null&&ze!=null&&this._tryShow({offsetX:Fe,offsetY:ze,target:Ne.el,position:pe.position,positionDefault:"bottom"},_e)}else pe.x!=null&&pe.y!=null&&(le.dispatchAction({type:"updateAxisPointer",x:pe.x,y:pe.y}),this._tryShow({offsetX:pe.x,offsetY:pe.y,position:pe.position,target:le.getZr().findHover(pe.x,pe.y).target},_e))}},oe.prototype.manuallyHideTip=function(ae,ie,le,pe){var _e=this._tooltipContent;this._tooltipModel&&_e.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,pe.from!==this.uid&&this._hide(makeDispatchAction(pe,le))},oe.prototype._manuallyAxisShowTip=function(ae,ie,le,pe){var _e=pe.seriesIndex,Ce=pe.dataIndex,$e=ie.getComponent("axisPointer").coordSysAxesInfo;if(!(_e==null||Ce==null||$e==null)){var xe=ie.getSeriesByIndex(_e);if(xe){var Ie=xe.getData(),Ne=buildTooltipModel([Ie.getItemModel(Ce),xe,(xe.coordinateSystem||{}).model],this._tooltipModel);if(Ne.get("trigger")==="axis")return le.dispatchAction({type:"updateAxisPointer",seriesIndex:_e,dataIndex:Ce,position:pe.position}),!0}}},oe.prototype._tryShow=function(ae,ie){var le=ae.target,pe=this._tooltipModel;if(pe){this._lastX=ae.offsetX,this._lastY=ae.offsetY;var _e=ae.dataByCoordSys;if(_e&&_e.length)this._showAxisTooltip(_e,ae);else if(le){this._lastDataByCoordSys=null;var Ce,$e;findEventDispatcher(le,function(xe){if(getECData(xe).dataIndex!=null)return Ce=xe,!0;if(getECData(xe).tooltipConfig!=null)return $e=xe,!0},!0),Ce?this._showSeriesItemTooltip(ae,Ce,ie):$e?this._showComponentItemTooltip(ae,$e,ie):this._hide(ie)}else this._lastDataByCoordSys=null,this._hide(ie)}},oe.prototype._showOrMove=function(ae,ie){var le=ae.get("showDelay");ie=bind$1(ie,this),clearTimeout(this._showTimout),le>0?this._showTimout=setTimeout(ie,le):ie()},oe.prototype._showAxisTooltip=function(ae,ie){var le=this._ecModel,pe=this._tooltipModel,_e=[ie.offsetX,ie.offsetY],Ce=buildTooltipModel([ie.tooltipOption],pe),$e=this._renderMode,xe=[],Ie=createTooltipMarkup("section",{blocks:[],noHeader:!0}),Ne=[],Fe=new TooltipMarkupStyleCreator;each$c(ae,function(_n){each$c(_n.dataByAxis,function(bn){var Cn=le.getComponent(bn.axisDim+"Axis",bn.axisIndex),En=bn.value;if(!(!Cn||En==null)){var $n=getValueLabel(En,Cn.axis,le,bn.seriesDataIndices,bn.valueLabelOpt),wn=createTooltipMarkup("section",{header:$n,noHeader:!trim$1($n),sortBlocks:!0,blocks:[]});Ie.blocks.push(wn),each$c(bn.seriesDataIndices,function(Tn){var xn=le.getSeriesByIndex(Tn.seriesIndex),kn=Tn.dataIndexInside,An=xn.getDataParams(kn);if(!(An.dataIndex<0)){An.axisDim=bn.axisDim,An.axisIndex=bn.axisIndex,An.axisType=bn.axisType,An.axisId=bn.axisId,An.axisValue=getAxisRawValue(Cn.axis,{value:En}),An.axisValueLabel=$n,An.marker=Fe.makeTooltipMarker("item",convertToColorString(An.color),$e);var On=normalizeTooltipFormatResult(xn.formatTooltip(kn,!0,null)),Nn=On.frag;if(Nn){var Rn=buildTooltipModel([xn],pe).get("valueFormatter");wn.blocks.push(Rn?extend({valueFormatter:Rn},Nn):Nn)}On.text&&Ne.push(On.text),xe.push(An)}})}})}),Ie.blocks.reverse(),Ne.reverse();var ze=ie.position,At=Ce.get("order"),Lt=buildTooltipMarkup(Ie,Fe,$e,At,le.get("useUTC"),Ce.get("textStyle"));Lt&&Ne.unshift(Lt);var hn=$e==="richText"?` + +`:"
",vn=Ne.join(hn);this._showOrMove(Ce,function(){this._updateContentNotChangedOnAxis(ae,xe)?this._updatePosition(Ce,ze,_e[0],_e[1],this._tooltipContent,xe):this._showTooltipContent(Ce,vn,xe,Math.random()+"",_e[0],_e[1],ze,null,Fe)})},oe.prototype._showSeriesItemTooltip=function(ae,ie,le){var pe=this._ecModel,_e=getECData(ie),Ce=_e.seriesIndex,$e=pe.getSeriesByIndex(Ce),xe=_e.dataModel||$e,Ie=_e.dataIndex,Ne=_e.dataType,Fe=xe.getData(Ne),ze=this._renderMode,At=ae.positionDefault,Lt=buildTooltipModel([Fe.getItemModel(Ie),xe,$e&&($e.coordinateSystem||{}).model],this._tooltipModel,At?{position:At}:null),hn=Lt.get("trigger");if(!(hn!=null&&hn!=="item")){var vn=xe.getDataParams(Ie,Ne),_n=new TooltipMarkupStyleCreator;vn.marker=_n.makeTooltipMarker("item",convertToColorString(vn.color),ze);var bn=normalizeTooltipFormatResult(xe.formatTooltip(Ie,!1,Ne)),Cn=Lt.get("order"),En=Lt.get("valueFormatter"),$n=bn.frag,wn=$n?buildTooltipMarkup(En?extend({valueFormatter:En},$n):$n,_n,ze,Cn,pe.get("useUTC"),Lt.get("textStyle")):bn.text,Tn="item_"+xe.name+"_"+Ie;this._showOrMove(Lt,function(){this._showTooltipContent(Lt,wn,vn,Tn,ae.offsetX,ae.offsetY,ae.position,ae.target,_n)}),le({type:"showTip",dataIndexInside:Ie,dataIndex:Fe.getRawIndex(Ie),seriesIndex:Ce,from:this.uid})}},oe.prototype._showComponentItemTooltip=function(ae,ie,le){var pe=getECData(ie),_e=pe.tooltipConfig,Ce=_e.option||{};if(isString(Ce)){var $e=Ce;Ce={content:$e,formatter:$e}}var xe=[Ce],Ie=this._ecModel.getComponent(pe.componentMainType,pe.componentIndex);Ie&&xe.push(Ie),xe.push({formatter:Ce.content});var Ne=ae.positionDefault,Fe=buildTooltipModel(xe,this._tooltipModel,Ne?{position:Ne}:null),ze=Fe.get("content"),At=Math.random()+"",Lt=new TooltipMarkupStyleCreator;this._showOrMove(Fe,function(){var hn=clone$3(Fe.get("formatterParams")||{});this._showTooltipContent(Fe,ze,hn,At,ae.offsetX,ae.offsetY,ae.position,ie,Lt)}),le({type:"showTip",from:this.uid})},oe.prototype._showTooltipContent=function(ae,ie,le,pe,_e,Ce,$e,xe,Ie){if(this._ticket="",!(!ae.get("showContent")||!ae.get("show"))){var Ne=this._tooltipContent;Ne.setEnterable(ae.get("enterable"));var Fe=ae.get("formatter");$e=$e||ae.get("position");var ze=ie,At=this._getNearestPoint([_e,Ce],le,ae.get("trigger"),ae.get("borderColor")),Lt=At.color;if(Fe)if(isString(Fe)){var hn=ae.ecModel.get("useUTC"),vn=isArray$1(le)?le[0]:le,_n=vn&&vn.axisType&&vn.axisType.indexOf("time")>=0;ze=Fe,_n&&(ze=format$1(vn.axisValue,ze,hn)),ze=formatTpl(ze,le,!0)}else if(isFunction(Fe)){var bn=bind$1(function(Cn,En){Cn===this._ticket&&(Ne.setContent(En,Ie,ae,Lt,$e),this._updatePosition(ae,$e,_e,Ce,Ne,le,xe))},this);this._ticket=pe,ze=Fe(le,pe,bn)}else ze=Fe;Ne.setContent(ze,Ie,ae,Lt,$e),Ne.show(ae,Lt),this._updatePosition(ae,$e,_e,Ce,Ne,le,xe)}},oe.prototype._getNearestPoint=function(ae,ie,le,pe){if(le==="axis"||isArray$1(ie))return{color:pe||(this._renderMode==="html"?"#fff":"none")};if(!isArray$1(ie))return{color:pe||ie.color||ie.borderColor}},oe.prototype._updatePosition=function(ae,ie,le,pe,_e,Ce,$e){var xe=this._api.getWidth(),Ie=this._api.getHeight();ie=ie||ae.get("position");var Ne=_e.getSize(),Fe=ae.get("align"),ze=ae.get("verticalAlign"),At=$e&&$e.getBoundingRect().clone();if($e&&At.applyTransform($e.transform),isFunction(ie)&&(ie=ie([le,pe],Ce,_e.el,At,{viewSize:[xe,Ie],contentSize:Ne.slice()})),isArray$1(ie))le=parsePercent(ie[0],xe),pe=parsePercent(ie[1],Ie);else if(isObject$3(ie)){var Lt=ie;Lt.width=Ne[0],Lt.height=Ne[1];var hn=getLayoutRect(Lt,{width:xe,height:Ie});le=hn.x,pe=hn.y,Fe=null,ze=null}else if(isString(ie)&&$e){var vn=calcTooltipPosition(ie,At,Ne,ae.get("borderWidth"));le=vn[0],pe=vn[1]}else{var vn=refixTooltipPosition(le,pe,_e,xe,Ie,Fe?null:20,ze?null:20);le=vn[0],pe=vn[1]}if(Fe&&(le-=isCenterAlign(Fe)?Ne[0]/2:Fe==="right"?Ne[0]:0),ze&&(pe-=isCenterAlign(ze)?Ne[1]/2:ze==="bottom"?Ne[1]:0),shouldTooltipConfine(ae)){var vn=confineTooltipPosition(le,pe,_e,xe,Ie);le=vn[0],pe=vn[1]}_e.moveTo(le,pe)},oe.prototype._updateContentNotChangedOnAxis=function(ae,ie){var le=this._lastDataByCoordSys,pe=this._cbParamsList,_e=!!le&&le.length===ae.length;return _e&&each$c(le,function(Ce,$e){var xe=Ce.dataByAxis||[],Ie=ae[$e]||{},Ne=Ie.dataByAxis||[];_e=_e&&xe.length===Ne.length,_e&&each$c(xe,function(Fe,ze){var At=Ne[ze]||{},Lt=Fe.seriesDataIndices||[],hn=At.seriesDataIndices||[];_e=_e&&Fe.value===At.value&&Fe.axisType===At.axisType&&Fe.axisId===At.axisId&&Lt.length===hn.length,_e&&each$c(Lt,function(vn,_n){var bn=hn[_n];_e=_e&&vn.seriesIndex===bn.seriesIndex&&vn.dataIndex===bn.dataIndex}),pe&&each$c(Fe.seriesDataIndices,function(vn){var _n=vn.seriesIndex,bn=ie[_n],Cn=pe[_n];bn&&Cn&&Cn.data!==bn.data&&(_e=!1)})})}),this._lastDataByCoordSys=ae,this._cbParamsList=ie,!!_e},oe.prototype._hide=function(ae){this._lastDataByCoordSys=null,ae({type:"hideTip",from:this.uid})},oe.prototype.dispose=function(ae,ie){env$1.node||!ie.getDom()||(clear$1(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",ie))},oe.type="tooltip",oe}(ComponentView$1);function buildTooltipModel($,oe,ae){var ie=oe.ecModel,le;ae?(le=new Model$1(ae,ie,ie),le=new Model$1(oe.option,le,ie)):le=oe;for(var pe=$.length-1;pe>=0;pe--){var _e=$[pe];_e&&(_e instanceof Model$1&&(_e=_e.get("tooltip",!0)),isString(_e)&&(_e={formatter:_e}),_e&&(le=new Model$1(_e,le,ie)))}return le}function makeDispatchAction($,oe){return $.dispatchAction||bind$1(oe.dispatchAction,oe)}function refixTooltipPosition($,oe,ae,ie,le,pe,_e){var Ce=ae.getSize(),$e=Ce[0],xe=Ce[1];return pe!=null&&($+$e+pe+2>ie?$-=$e+pe:$+=pe),_e!=null&&(oe+xe+_e>le?oe-=xe+_e:oe+=_e),[$,oe]}function confineTooltipPosition($,oe,ae,ie,le){var pe=ae.getSize(),_e=pe[0],Ce=pe[1];return $=Math.min($+_e,ie)-_e,oe=Math.min(oe+Ce,le)-Ce,$=Math.max($,0),oe=Math.max(oe,0),[$,oe]}function calcTooltipPosition($,oe,ae,ie){var le=ae[0],pe=ae[1],_e=Math.ceil(Math.SQRT2*ie)+8,Ce=0,$e=0,xe=oe.width,Ie=oe.height;switch($){case"inside":Ce=oe.x+xe/2-le/2,$e=oe.y+Ie/2-pe/2;break;case"top":Ce=oe.x+xe/2-le/2,$e=oe.y-pe-_e;break;case"bottom":Ce=oe.x+xe/2-le/2,$e=oe.y+Ie+_e;break;case"left":Ce=oe.x-le-_e,$e=oe.y+Ie/2-pe/2;break;case"right":Ce=oe.x+xe+_e,$e=oe.y+Ie/2-pe/2}return[Ce,$e]}function isCenterAlign($){return $==="center"||$==="middle"}function findComponentReference($,oe,ae){var ie=preParseFinder($).queryOptionMap,le=ie.keys()[0];if(!(!le||le==="series")){var pe=queryReferringComponents(oe,le,ie.get(le),{useDefault:!1,enableAll:!1,enableNone:!1}),_e=pe.models[0];if(_e){var Ce=ae.getViewOfComponentModel(_e),$e;if(Ce.group.traverse(function(xe){var Ie=getECData(xe).tooltipConfig;if(Ie&&Ie.name===$.name)return $e=xe,!0}),$e)return{componentMainType:le,componentIndex:_e.componentIndex,el:$e}}}}const TooltipView$1=TooltipView;function install$a($){use$1(install$f),$.registerComponentModel(TooltipModel$1),$.registerComponentView(TooltipView$1),$.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},noop),$.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},noop)}var each$4=each$c;function hasKeys($){if($){for(var oe in $)if($.hasOwnProperty(oe))return!0}}function createVisualMappings($,oe,ae){var ie={};return each$4(oe,function(pe){var _e=ie[pe]=le();each$4($[pe],function(Ce,$e){if(VisualMapping$1.isValidType($e)){var xe={type:$e,visual:Ce};ae&&ae(xe,pe),_e[$e]=new VisualMapping$1(xe),$e==="opacity"&&(xe=clone$3(xe),xe.type="colorAlpha",_e.__hidden.__alphaForOpacity=new VisualMapping$1(xe))}})}),ie;function le(){var pe=function(){};pe.prototype.__hidden=pe.prototype;var _e=new pe;return _e}}function replaceVisualOption($,oe,ae){var ie;each$c(ae,function(le){oe.hasOwnProperty(le)&&hasKeys(oe[le])&&(ie=!0)}),ie&&each$c(ae,function(le){oe.hasOwnProperty(le)&&hasKeys(oe[le])?$[le]=clone$3(oe[le]):delete $[le]})}function incrementalApplyVisual($,oe,ae,ie){var le={};return each$c($,function(pe){var _e=VisualMapping$1.prepareVisualTypes(oe[pe]);le[pe]=_e}),{progress:function(_e,Ce){var $e;ie!=null&&($e=Ce.getDimensionIndex(ie));function xe(En){return getItemVisualFromData(Ce,Ne,En)}function Ie(En,$n){setItemVisualFromData(Ce,Ne,En,$n)}for(var Ne,Fe=Ce.getStore();(Ne=_e.next())!=null;){var ze=Ce.getRawDataItem(Ne);if(!(ze&&ze.visualMap===!1))for(var At=ie!=null?Fe.get($e,Ne):Ne,Lt=ae(At),hn=oe[Lt],vn=le[Lt],_n=0,bn=vn.length;_n=0},oe.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},oe.type="legend.plain",oe.dependencies=["series"],oe.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},oe}(ComponentModel$1);const LegendModel$1=LegendModel;var curry=curry$1,each$3=each$c,Group$1=Group$3,LegendView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae.newlineDisabled=!1,ae}return oe.prototype.init=function(){this.group.add(this._contentGroup=new Group$1),this.group.add(this._selectorGroup=new Group$1),this._isFirstRender=!0},oe.prototype.getContentGroup=function(){return this._contentGroup},oe.prototype.getSelectorGroup=function(){return this._selectorGroup},oe.prototype.render=function(ae,ie,le){var pe=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!ae.get("show",!0)){var _e=ae.get("align"),Ce=ae.get("orient");(!_e||_e==="auto")&&(_e=ae.get("left")==="right"&&Ce==="vertical"?"right":"left");var $e=ae.get("selector",!0),xe=ae.get("selectorPosition",!0);$e&&(!xe||xe==="auto")&&(xe=Ce==="horizontal"?"end":"start"),this.renderInner(_e,ae,ie,le,$e,Ce,xe);var Ie=ae.getBoxLayoutParams(),Ne={width:le.getWidth(),height:le.getHeight()},Fe=ae.get("padding"),ze=getLayoutRect(Ie,Ne,Fe),At=this.layoutInner(ae,_e,ze,pe,$e,xe),Lt=getLayoutRect(defaults({width:At.width,height:At.height},Ie),Ne,Fe);this.group.x=Lt.x-At.x,this.group.y=Lt.y-At.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(At,ae))}},oe.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},oe.prototype.renderInner=function(ae,ie,le,pe,_e,Ce,$e){var xe=this.getContentGroup(),Ie=createHashMap(),Ne=ie.get("selectedMode"),Fe=[];le.eachRawSeries(function(ze){!ze.get("legendHoverLink")&&Fe.push(ze.id)}),each$3(ie.getData(),function(ze,At){var Lt=ze.get("name");if(!this.newlineDisabled&&(Lt===""||Lt===` +`)){var hn=new Group$1;hn.newline=!0,xe.add(hn);return}var vn=le.getSeriesByName(Lt)[0];if(!Ie.get(Lt))if(vn){var _n=vn.getData(),bn=_n.getVisual("legendLineStyle")||{},Cn=_n.getVisual("legendIcon"),En=_n.getVisual("style"),$n=this._createItem(vn,Lt,At,ze,ie,ae,bn,En,Cn,Ne,pe);$n.on("click",curry(dispatchSelectAction,Lt,null,pe,Fe)).on("mouseover",curry(dispatchHighlightAction,vn.name,null,pe,Fe)).on("mouseout",curry(dispatchDownplayAction,vn.name,null,pe,Fe)),Ie.set(Lt,!0)}else le.eachRawSeries(function(wn){if(!Ie.get(Lt)&&wn.legendVisualProvider){var Tn=wn.legendVisualProvider;if(!Tn.containName(Lt))return;var xn=Tn.indexOfName(Lt),kn=Tn.getItemVisual(xn,"style"),An=Tn.getItemVisual(xn,"legendIcon"),On=parse$1(kn.fill);On&&On[3]===0&&(On[3]=.2,kn=extend(extend({},kn),{fill:stringify(On,"rgba")}));var Nn=this._createItem(wn,Lt,At,ze,ie,ae,{},kn,An,Ne,pe);Nn.on("click",curry(dispatchSelectAction,null,Lt,pe,Fe)).on("mouseover",curry(dispatchHighlightAction,null,Lt,pe,Fe)).on("mouseout",curry(dispatchDownplayAction,null,Lt,pe,Fe)),Ie.set(Lt,!0)}},this)},this),_e&&this._createSelector(_e,ie,pe,Ce,$e)},oe.prototype._createSelector=function(ae,ie,le,pe,_e){var Ce=this.getSelectorGroup();each$3(ae,function(xe){var Ie=xe.type,Ne=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){le.dispatchAction({type:Ie==="all"?"legendAllSelect":"legendInverseSelect"})}});Ce.add(Ne);var Fe=ie.getModel("selectorLabel"),ze=ie.getModel(["emphasis","selectorLabel"]);setLabelStyle(Ne,{normal:Fe,emphasis:ze},{defaultText:xe.title}),enableHoverEmphasis(Ne)})},oe.prototype._createItem=function(ae,ie,le,pe,_e,Ce,$e,xe,Ie,Ne,Fe){var ze=ae.visualDrawType,At=_e.get("itemWidth"),Lt=_e.get("itemHeight"),hn=_e.isSelected(ie),vn=pe.get("symbolRotate"),_n=pe.get("symbolKeepAspect"),bn=pe.get("icon");Ie=bn||Ie||"roundRect";var Cn=getLegendStyle(Ie,pe,$e,xe,ze,hn,Fe),En=new Group$1,$n=pe.getModel("textStyle");if(isFunction(ae.getLegendIcon)&&(!bn||bn==="inherit"))En.add(ae.getLegendIcon({itemWidth:At,itemHeight:Lt,icon:Ie,iconRotate:vn,itemStyle:Cn.itemStyle,lineStyle:Cn.lineStyle,symbolKeepAspect:_n}));else{var wn=bn==="inherit"&&ae.getData().getVisual("symbol")?vn==="inherit"?ae.getData().getVisual("symbolRotate"):vn:0;En.add(getDefaultLegendIcon({itemWidth:At,itemHeight:Lt,icon:Ie,iconRotate:wn,itemStyle:Cn.itemStyle,lineStyle:Cn.lineStyle,symbolKeepAspect:_n}))}var Tn=Ce==="left"?At+5:-5,xn=Ce,kn=_e.get("formatter"),An=ie;isString(kn)&&kn?An=kn.replace("{name}",ie??""):isFunction(kn)&&(An=kn(ie));var On=pe.get("inactiveColor");En.add(new ZRText$1({style:createTextStyle$1($n,{text:An,x:Tn,y:Lt/2,fill:hn?$n.getTextColor():On,align:xn,verticalAlign:"middle"})}));var Nn=new Rect$2({shape:En.getBoundingRect(),invisible:!0}),Rn=pe.getModel("tooltip");return Rn.get("show")&&setTooltipConfig({el:Nn,componentModel:_e,itemName:ie,itemTooltipOption:Rn.option}),En.add(Nn),En.eachChild(function(zn){zn.silent=!0}),Nn.silent=!Ne,this.getContentGroup().add(En),enableHoverEmphasis(En),En.__legendDataIndex=le,En},oe.prototype.layoutInner=function(ae,ie,le,pe,_e,Ce){var $e=this.getContentGroup(),xe=this.getSelectorGroup();box(ae.get("orient"),$e,ae.get("itemGap"),le.width,le.height);var Ie=$e.getBoundingRect(),Ne=[-Ie.x,-Ie.y];if(xe.markRedraw(),$e.markRedraw(),_e){box("horizontal",xe,ae.get("selectorItemGap",!0));var Fe=xe.getBoundingRect(),ze=[-Fe.x,-Fe.y],At=ae.get("selectorButtonGap",!0),Lt=ae.getOrient().index,hn=Lt===0?"width":"height",vn=Lt===0?"height":"width",_n=Lt===0?"y":"x";Ce==="end"?ze[Lt]+=Ie[hn]+At:Ne[Lt]+=Fe[hn]+At,ze[1-Lt]+=Ie[vn]/2-Fe[vn]/2,xe.x=ze[0],xe.y=ze[1],$e.x=Ne[0],$e.y=Ne[1];var bn={x:0,y:0};return bn[hn]=Ie[hn]+At+Fe[hn],bn[vn]=Math.max(Ie[vn],Fe[vn]),bn[_n]=Math.min(0,Fe[_n]+ze[1-Lt]),bn}else return $e.x=Ne[0],$e.y=Ne[1],this.group.getBoundingRect()},oe.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},oe.type="legend.plain",oe}(ComponentView$1);function getLegendStyle($,oe,ae,ie,le,pe,_e){function Ce(hn,vn){hn.lineWidth==="auto"&&(hn.lineWidth=vn.lineWidth>0?2:0),each$3(hn,function(_n,bn){hn[bn]==="inherit"&&(hn[bn]=vn[bn])})}var $e=oe.getModel("itemStyle"),xe=$e.getItemStyle(),Ie=$.lastIndexOf("empty",0)===0?"fill":"stroke",Ne=$e.getShallow("decal");xe.decal=!Ne||Ne==="inherit"?ie.decal:createOrUpdatePatternFromDecal(Ne,_e),xe.fill==="inherit"&&(xe.fill=ie[le]),xe.stroke==="inherit"&&(xe.stroke=ie[Ie]),xe.opacity==="inherit"&&(xe.opacity=(le==="fill"?ie:ae).opacity),Ce(xe,ie);var Fe=oe.getModel("lineStyle"),ze=Fe.getLineStyle();if(Ce(ze,ae),xe.fill==="auto"&&(xe.fill=ie.fill),xe.stroke==="auto"&&(xe.stroke=ie.fill),ze.stroke==="auto"&&(ze.stroke=ie.fill),!pe){var At=oe.get("inactiveBorderWidth"),Lt=xe[Ie];xe.lineWidth=At==="auto"?ie.lineWidth>0&&Lt?2:0:xe.lineWidth,xe.fill=oe.get("inactiveColor"),xe.stroke=oe.get("inactiveBorderColor"),ze.stroke=Fe.get("inactiveColor"),ze.lineWidth=Fe.get("inactiveWidth")}return{itemStyle:xe,lineStyle:ze}}function getDefaultLegendIcon($){var oe=$.icon||"roundRect",ae=createSymbol(oe,0,0,$.itemWidth,$.itemHeight,$.itemStyle.fill,$.symbolKeepAspect);return ae.setStyle($.itemStyle),ae.rotation=($.iconRotate||0)*Math.PI/180,ae.setOrigin([$.itemWidth/2,$.itemHeight/2]),oe.indexOf("empty")>-1&&(ae.style.stroke=ae.style.fill,ae.style.fill="#fff",ae.style.lineWidth=2),ae}function dispatchSelectAction($,oe,ae,ie){dispatchDownplayAction($,oe,ae,ie),ae.dispatchAction({type:"legendToggleSelect",name:$??oe}),dispatchHighlightAction($,oe,ae,ie)}function isUseHoverLayer($){for(var oe=$.getZr().storage.getDisplayList(),ae,ie=0,le=oe.length;iele[_e],hn=[-ze.x,-ze.y];ie||(hn[pe]=Ie[xe]);var vn=[0,0],_n=[-At.x,-At.y],bn=retrieve2(ae.get("pageButtonGap",!0),ae.get("itemGap",!0));if(Lt){var Cn=ae.get("pageButtonPosition",!0);Cn==="end"?_n[pe]+=le[_e]-At[_e]:vn[pe]+=At[_e]+bn}_n[1-pe]+=ze[Ce]/2-At[Ce]/2,Ie.setPosition(hn),Ne.setPosition(vn),Fe.setPosition(_n);var En={x:0,y:0};if(En[_e]=Lt?le[_e]:ze[_e],En[Ce]=Math.max(ze[Ce],At[Ce]),En[$e]=Math.min(0,At[$e]+_n[1-pe]),Ne.__rectSize=le[_e],Lt){var $n={x:0,y:0};$n[_e]=Math.max(le[_e]-At[_e]-bn,0),$n[Ce]=En[Ce],Ne.setClipPath(new Rect$2({shape:$n})),Ne.__rectSize=$n[_e]}else Fe.eachChild(function(Tn){Tn.attr({invisible:!0,silent:!0})});var wn=this._getPageInfo(ae);return wn.pageIndex!=null&&updateProps$1(Ie,{x:wn.contentPosition[0],y:wn.contentPosition[1]},Lt?ae:null),this._updatePageInfoView(ae,wn),En},oe.prototype._pageGo=function(ae,ie,le){var pe=this._getPageInfo(ie)[ae];pe!=null&&le.dispatchAction({type:"legendScroll",scrollDataIndex:pe,legendId:ie.id})},oe.prototype._updatePageInfoView=function(ae,ie){var le=this._controllerGroup;each$c(["pagePrev","pageNext"],function(Ie){var Ne=Ie+"DataIndex",Fe=ie[Ne]!=null,ze=le.childOfName(Ie);ze&&(ze.setStyle("fill",Fe?ae.get("pageIconColor",!0):ae.get("pageIconInactiveColor",!0)),ze.cursor=Fe?"pointer":"default")});var pe=le.childOfName("pageText"),_e=ae.get("pageFormatter"),Ce=ie.pageIndex,$e=Ce!=null?Ce+1:0,xe=ie.pageCount;pe&&_e&&pe.setStyle("text",isString(_e)?_e.replace("{current}",$e==null?"":$e+"").replace("{total}",xe==null?"":xe+""):_e({current:$e,total:xe}))},oe.prototype._getPageInfo=function(ae){var ie=ae.get("scrollDataIndex",!0),le=this.getContentGroup(),pe=this._containerGroup.__rectSize,_e=ae.getOrient().index,Ce=WH[_e],$e=XY[_e],xe=this._findTargetItemIndex(ie),Ie=le.children(),Ne=Ie[xe],Fe=Ie.length,ze=Fe?1:0,At={contentPosition:[le.x,le.y],pageCount:ze,pageIndex:ze-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!Ne)return At;var Lt=Cn(Ne);At.contentPosition[_e]=-Lt.s;for(var hn=xe+1,vn=Lt,_n=Lt,bn=null;hn<=Fe;++hn)bn=Cn(Ie[hn]),(!bn&&_n.e>vn.s+pe||bn&&!En(bn,vn.s))&&(_n.i>vn.i?vn=_n:vn=bn,vn&&(At.pageNextDataIndex==null&&(At.pageNextDataIndex=vn.i),++At.pageCount)),_n=bn;for(var hn=xe-1,vn=Lt,_n=Lt,bn=null;hn>=-1;--hn)bn=Cn(Ie[hn]),(!bn||!En(_n,bn.s))&&vn.i<_n.i&&(_n=vn,At.pagePrevDataIndex==null&&(At.pagePrevDataIndex=vn.i),++At.pageCount,++At.pageIndex),vn=bn;return At;function Cn($n){if($n){var wn=$n.getBoundingRect(),Tn=wn[$e]+$n[$e];return{s:Tn,e:Tn+wn[Ce],i:$n.__legendDataIndex}}}function En($n,wn){return $n.e>=wn&&$n.s<=wn+pe}},oe.prototype._findTargetItemIndex=function(ae){if(!this._showController)return 0;var ie,le=this.getContentGroup(),pe;return le.eachChild(function(_e,Ce){var $e=_e.__legendDataIndex;pe==null&&$e!=null&&(pe=Ce),$e===ae&&(ie=Ce)}),ie??pe},oe.type="legend.scroll",oe}(LegendView$1);const ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction($){$.registerAction("legendScroll","legendscroll",function(oe,ae){var ie=oe.scrollDataIndex;ie!=null&&ae.eachComponent({mainType:"legend",subType:"scroll",query:oe},function(le){le.setScrollDataIndex(ie)})})}function install$7($){use$1(install$8),$.registerComponentModel(ScrollableLegendModel$1),$.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction($)}function install$6($){use$1(install$8),use$1(install$7)}var InsideZoomModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.type="dataZoom.inside",oe.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),oe}(DataZoomModel$1);const InsideZoomModel$1=InsideZoomModel;var inner=makeInner();function setViewInfoToCoordSysRecord($,oe,ae){inner($).coordSysRecordMap.each(function(ie){var le=ie.dataZoomInfoMap.get(oe.uid);le&&(le.getRange=ae)})}function disposeCoordSysRecordIfNeeded($,oe){for(var ae=inner($).coordSysRecordMap,ie=ae.keys(),le=0;leie[ae+oe]&&(oe=Ce),le=le&&_e.get("preventDefaultMouseMove",!0)}),{controlType:oe,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!le}}}function installDataZoomRoamProcessor($){$.registerProcessor($.PRIORITY.PROCESSOR.FILTER,function(oe,ae){var ie=inner(ae),le=ie.coordSysRecordMap||(ie.coordSysRecordMap=createHashMap());le.each(function(pe){pe.dataZoomInfoMap=null}),oe.eachComponent({mainType:"dataZoom",subType:"inside"},function(pe){var _e=collectReferCoordSysModelInfo(pe);each$c(_e.infoList,function(Ce){var $e=Ce.model.uid,xe=le.get($e)||le.set($e,createCoordSysRecord(ae,Ce.model)),Ie=xe.dataZoomInfoMap||(xe.dataZoomInfoMap=createHashMap());Ie.set(pe.uid,{dzReferCoordSysInfo:Ce,model:pe,getRange:null})})}),le.each(function(pe){var _e=pe.controller,Ce,$e=pe.dataZoomInfoMap;if($e){var xe=$e.keys()[0];xe!=null&&(Ce=$e.get(xe))}if(!Ce){disposeCoordSysRecord(le,pe);return}var Ie=mergeControllerParams($e);_e.enable(Ie.controlType,Ie.opt),_e.setPointerChecker(pe.containsPoint),createOrUpdate(pe,"dispatchAction",Ce.model.get("throttle",!0),"fixRate")})})}var InsideZoomView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type="dataZoom.inside",ae}return oe.prototype.render=function(ae,ie,le){if($.prototype.render.apply(this,arguments),ae.noTarget()){this._clear();return}this.range=ae.getPercentRange(),setViewInfoToCoordSysRecord(le,ae,{pan:bind$1(getRangeHandlers.pan,this),zoom:bind$1(getRangeHandlers.zoom,this),scrollMove:bind$1(getRangeHandlers.scrollMove,this)})},oe.prototype.dispose=function(){this._clear(),$.prototype.dispose.apply(this,arguments)},oe.prototype._clear=function(){disposeCoordSysRecordIfNeeded(this.api,this.dataZoomModel),this.range=null},oe.type="dataZoom.inside",oe}(DataZoomView$1),getRangeHandlers={zoom:function($,oe,ae,ie){var le=this.range,pe=le.slice(),_e=$.axisModels[0];if(_e){var Ce=getDirectionInfo[oe](null,[ie.originX,ie.originY],_e,ae,$),$e=(Ce.signal>0?Ce.pixelStart+Ce.pixelLength-Ce.pixel:Ce.pixel-Ce.pixelStart)/Ce.pixelLength*(pe[1]-pe[0])+pe[0],xe=Math.max(1/ie.scale,0);pe[0]=(pe[0]-$e)*xe+$e,pe[1]=(pe[1]-$e)*xe+$e;var Ie=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,pe,[0,100],0,Ie.minSpan,Ie.maxSpan),this.range=pe,le[0]!==pe[0]||le[1]!==pe[1])return pe}},pan:makeMover(function($,oe,ae,ie,le,pe){var _e=getDirectionInfo[ie]([pe.oldX,pe.oldY],[pe.newX,pe.newY],oe,le,ae);return _e.signal*($[1]-$[0])*_e.pixel/_e.pixelLength}),scrollMove:makeMover(function($,oe,ae,ie,le,pe){var _e=getDirectionInfo[ie]([0,0],[pe.scrollDelta,pe.scrollDelta],oe,le,ae);return _e.signal*($[1]-$[0])*pe.scrollDelta})};function makeMover($){return function(oe,ae,ie,le){var pe=this.range,_e=pe.slice(),Ce=oe.axisModels[0];if(Ce){var $e=$(_e,Ce,oe,ae,ie,le);if(sliderMove($e,_e,[0,100],"all"),this.range=_e,pe[0]!==_e[0]||pe[1]!==_e[1])return _e}}}var getDirectionInfo={grid:function($,oe,ae,ie,le){var pe=ae.axis,_e={},Ce=le.model.coordinateSystem.getRect();return $=$||[0,0],pe.dim==="x"?(_e.pixel=oe[0]-$[0],_e.pixelLength=Ce.width,_e.pixelStart=Ce.x,_e.signal=pe.inverse?1:-1):(_e.pixel=oe[1]-$[1],_e.pixelLength=Ce.height,_e.pixelStart=Ce.y,_e.signal=pe.inverse?-1:1),_e},polar:function($,oe,ae,ie,le){var pe=ae.axis,_e={},Ce=le.model.coordinateSystem,$e=Ce.getRadiusAxis().getExtent(),xe=Ce.getAngleAxis().getExtent();return $=$?Ce.pointToCoord($):[0,0],oe=Ce.pointToCoord(oe),ae.mainType==="radiusAxis"?(_e.pixel=oe[0]-$[0],_e.pixelLength=$e[1]-$e[0],_e.pixelStart=$e[0],_e.signal=pe.inverse?1:-1):(_e.pixel=oe[1]-$[1],_e.pixelLength=xe[1]-xe[0],_e.pixelStart=xe[0],_e.signal=pe.inverse?-1:1),_e},singleAxis:function($,oe,ae,ie,le){var pe=ae.axis,_e=le.model.coordinateSystem.getRect(),Ce={};return $=$||[0,0],pe.orient==="horizontal"?(Ce.pixel=oe[0]-$[0],Ce.pixelLength=_e.width,Ce.pixelStart=_e.x,Ce.signal=pe.inverse?1:-1):(Ce.pixel=oe[1]-$[1],Ce.pixelLength=_e.height,Ce.pixelStart=_e.y,Ce.signal=pe.inverse?-1:1),Ce}};const InsideZoomView$1=InsideZoomView;function install$5($){installCommon$1($),$.registerComponentModel(InsideZoomModel$1),$.registerComponentView(InsideZoomView$1),installDataZoomRoamProcessor($)}var SliderZoomModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.type="dataZoom.slider",oe.layoutMode="box",oe.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),oe}(DataZoomModel$1);const SliderZoomModel$1=SliderZoomModel;var Rect=Rect$2,DEFAULT_LOCATION_EDGE_GAP=7,DEFAULT_FRAME_BORDER_WIDTH=1,DEFAULT_FILLER_SIZE=30,DEFAULT_MOVE_HANDLE_SIZE=7,HORIZONTAL="horizontal",VERTICAL="vertical",LABEL_GAP=5,SHOW_DATA_SHADOW_SERIES_TYPE=["line","bar","candlestick","scatter"],REALTIME_ANIMATION_CONFIG={easing:"cubicOut",duration:100,delay:0},SliderZoomView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae._displayables={},ae}return oe.prototype.init=function(ae,ie){this.api=ie,this._onBrush=bind$1(this._onBrush,this),this._onBrushEnd=bind$1(this._onBrushEnd,this)},oe.prototype.render=function(ae,ie,le,pe){if($.prototype.render.apply(this,arguments),createOrUpdate(this,"_dispatchZoomAction",ae.get("throttle"),"fixRate"),this._orient=ae.getOrient(),ae.get("show")===!1){this.group.removeAll();return}if(ae.noTarget()){this._clear(),this.group.removeAll();return}(!pe||pe.type!=="dataZoom"||pe.from!==this.uid)&&this._buildView(),this._updateView()},oe.prototype.dispose=function(){this._clear(),$.prototype.dispose.apply(this,arguments)},oe.prototype._clear=function(){clear$1(this,"_dispatchZoomAction");var ae=this.api.getZr();ae.off("mousemove",this._onBrush),ae.off("mouseup",this._onBrushEnd)},oe.prototype._buildView=function(){var ae=this.group;ae.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var ie=this._displayables.sliderGroup=new Group$3;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),ae.add(ie),this._positionGroup()},oe.prototype._resetLocation=function(){var ae=this.dataZoomModel,ie=this.api,le=ae.get("brushSelect"),pe=le?DEFAULT_MOVE_HANDLE_SIZE:0,_e=this._findCoordRect(),Ce={width:ie.getWidth(),height:ie.getHeight()},$e=this._orient===HORIZONTAL?{right:Ce.width-_e.x-_e.width,top:Ce.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-pe,width:_e.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:_e.y,width:DEFAULT_FILLER_SIZE,height:_e.height},xe=getLayoutParams(ae.option);each$c(["right","top","width","height"],function(Ne){xe[Ne]==="ph"&&(xe[Ne]=$e[Ne])});var Ie=getLayoutRect(xe,Ce);this._location={x:Ie.x,y:Ie.y},this._size=[Ie.width,Ie.height],this._orient===VERTICAL&&this._size.reverse()},oe.prototype._positionGroup=function(){var ae=this.group,ie=this._location,le=this._orient,pe=this.dataZoomModel.getFirstTargetAxisModel(),_e=pe&&pe.get("inverse"),Ce=this._displayables.sliderGroup,$e=(this._dataShadowInfo||{}).otherAxisInverse;Ce.attr(le===HORIZONTAL&&!_e?{scaleY:$e?1:-1,scaleX:1}:le===HORIZONTAL&&_e?{scaleY:$e?1:-1,scaleX:-1}:le===VERTICAL&&!_e?{scaleY:$e?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:$e?-1:1,scaleX:-1,rotation:Math.PI/2});var xe=ae.getBoundingRect([Ce]);ae.x=ie.x-xe.x,ae.y=ie.y-xe.y,ae.markRedraw()},oe.prototype._getViewExtent=function(){return[0,this._size[0]]},oe.prototype._renderBackground=function(){var ae=this.dataZoomModel,ie=this._size,le=this._displayables.sliderGroup,pe=ae.get("brushSelect");le.add(new Rect({silent:!0,shape:{x:0,y:0,width:ie[0],height:ie[1]},style:{fill:ae.get("backgroundColor")},z2:-40}));var _e=new Rect({shape:{x:0,y:0,width:ie[0],height:ie[1]},style:{fill:"transparent"},z2:0,onclick:bind$1(this._onClickPanel,this)}),Ce=this.api.getZr();pe?(_e.on("mousedown",this._onBrushStart,this),_e.cursor="crosshair",Ce.on("mousemove",this._onBrush),Ce.on("mouseup",this._onBrushEnd)):(Ce.off("mousemove",this._onBrush),Ce.off("mouseup",this._onBrushEnd)),le.add(_e)},oe.prototype._renderDataShadow=function(){var ae=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!ae)return;var ie=this._size,le=this._shadowSize||[],pe=ae.series,_e=pe.getRawData(),Ce=pe.getShadowDim&&pe.getShadowDim(),$e=Ce&&_e.getDimensionInfo(Ce)?pe.getShadowDim():ae.otherDim;if($e==null)return;var xe=this._shadowPolygonPts,Ie=this._shadowPolylinePts;if(_e!==this._shadowData||$e!==this._shadowDim||ie[0]!==le[0]||ie[1]!==le[1]){var Ne=_e.getDataExtent($e),Fe=(Ne[1]-Ne[0])*.3;Ne=[Ne[0]-Fe,Ne[1]+Fe];var ze=[0,ie[1]],At=[0,ie[0]],Lt=[[ie[0],0],[0,0]],hn=[],vn=At[1]/(_e.count()-1),_n=0,bn=Math.round(_e.count()/ie[0]),Cn;_e.each([$e],function(xn,kn){if(bn>0&&kn%bn){_n+=vn;return}var An=xn==null||isNaN(xn)||xn==="",On=An?0:linearMap$2(xn,Ne,ze,!0);An&&!Cn&&kn?(Lt.push([Lt[Lt.length-1][0],0]),hn.push([hn[hn.length-1][0],0])):!An&&Cn&&(Lt.push([_n,0]),hn.push([_n,0])),Lt.push([_n,On]),hn.push([_n,On]),_n+=vn,Cn=An}),xe=this._shadowPolygonPts=Lt,Ie=this._shadowPolylinePts=hn}this._shadowData=_e,this._shadowDim=$e,this._shadowSize=[ie[0],ie[1]];var En=this.dataZoomModel;function $n(xn){var kn=En.getModel(xn?"selectedDataBackground":"dataBackground"),An=new Group$3,On=new Polygon$1({shape:{points:xe},segmentIgnoreThreshold:1,style:kn.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),Nn=new Polyline$1({shape:{points:Ie},segmentIgnoreThreshold:1,style:kn.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return An.add(On),An.add(Nn),An}for(var wn=0;wn<3;wn++){var Tn=$n(wn===1);this._displayables.sliderGroup.add(Tn),this._displayables.dataShadowSegs.push(Tn)}},oe.prototype._prepareDataShadowInfo=function(){var ae=this.dataZoomModel,ie=ae.get("showDataShadow");if(ie!==!1){var le,pe=this.ecModel;return ae.eachTargetAxis(function(_e,Ce){var $e=ae.getAxisProxy(_e,Ce).getTargetSeriesModels();each$c($e,function(xe){if(!le&&!(ie!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,xe.get("type"))<0)){var Ie=pe.getComponent(getAxisMainType(_e),Ce).axis,Ne=getOtherDim(_e),Fe,ze=xe.coordinateSystem;Ne!=null&&ze.getOtherAxis&&(Fe=ze.getOtherAxis(Ie).inverse),Ne=xe.getData().mapDimension(Ne),le={thisAxis:Ie,series:xe,thisDim:_e,otherDim:Ne,otherAxisInverse:Fe}}},this)},this),le}},oe.prototype._renderHandle=function(){var ae=this.group,ie=this._displayables,le=ie.handles=[null,null],pe=ie.handleLabels=[null,null],_e=this._displayables.sliderGroup,Ce=this._size,$e=this.dataZoomModel,xe=this.api,Ie=$e.get("borderRadius")||0,Ne=$e.get("brushSelect"),Fe=ie.filler=new Rect({silent:Ne,style:{fill:$e.get("fillerColor")},textConfig:{position:"inside"}});_e.add(Fe),_e.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:Ce[0],height:Ce[1],r:Ie},style:{stroke:$e.get("dataBackgroundColor")||$e.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$c([0,1],function(bn){var Cn=$e.get("handleIcon");!symbolBuildProxies[Cn]&&Cn.indexOf("path://")<0&&Cn.indexOf("image://")<0&&(Cn="path://"+Cn);var En=createSymbol(Cn,-1,0,2,2,null,!0);En.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,bn),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var $n=En.getBoundingRect(),wn=$e.get("handleSize");this._handleHeight=parsePercent(wn,this._size[1]),this._handleWidth=$n.width/$n.height*this._handleHeight,En.setStyle($e.getModel("handleStyle").getItemStyle()),En.style.strokeNoScale=!0,En.rectHover=!0,En.ensureState("emphasis").style=$e.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(En);var Tn=$e.get("handleColor");Tn!=null&&(En.style.fill=Tn),_e.add(le[bn]=En);var xn=$e.getModel("textStyle");ae.add(pe[bn]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(xn,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:xn.getTextColor(),font:xn.getFont()}),z2:10}))},this);var ze=Fe;if(Ne){var At=parsePercent($e.get("moveHandleSize"),Ce[1]),Lt=ie.moveHandle=new Rect$2({style:$e.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:Ce[1]-.5,height:At}}),hn=At*.8,vn=ie.moveHandleIcon=createSymbol($e.get("moveHandleIcon"),-hn/2,-hn/2,hn,hn,"#fff",!0);vn.silent=!0,vn.y=Ce[1]+At/2-.5,Lt.ensureState("emphasis").style=$e.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var _n=Math.min(Ce[1]/2,Math.max(At,10));ze=ie.moveZone=new Rect$2({invisible:!0,shape:{y:Ce[1]-_n,height:At+_n}}),ze.on("mouseover",function(){xe.enterEmphasis(Lt)}).on("mouseout",function(){xe.leaveEmphasis(Lt)}),_e.add(Lt),_e.add(vn),_e.add(ze)}ze.attr({draggable:!0,cursor:getCursor$1(this._orient),drift:bind$1(this._onDragMove,this,"all"),ondragstart:bind$1(this._showDataInfo,this,!0),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1)})},oe.prototype._resetInterval=function(){var ae=this._range=this.dataZoomModel.getPercentRange(),ie=this._getViewExtent();this._handleEnds=[linearMap$2(ae[0],[0,100],ie,!0),linearMap$2(ae[1],[0,100],ie,!0)]},oe.prototype._updateInterval=function(ae,ie){var le=this.dataZoomModel,pe=this._handleEnds,_e=this._getViewExtent(),Ce=le.findRepresentativeAxisProxy().getMinMaxSpan(),$e=[0,100];sliderMove(ie,pe,_e,le.get("zoomLock")?"all":ae,Ce.minSpan!=null?linearMap$2(Ce.minSpan,$e,_e,!0):null,Ce.maxSpan!=null?linearMap$2(Ce.maxSpan,$e,_e,!0):null);var xe=this._range,Ie=this._range=asc$2([linearMap$2(pe[0],_e,$e,!0),linearMap$2(pe[1],_e,$e,!0)]);return!xe||xe[0]!==Ie[0]||xe[1]!==Ie[1]},oe.prototype._updateView=function(ae){var ie=this._displayables,le=this._handleEnds,pe=asc$2(le.slice()),_e=this._size;each$c([0,1],function(ze){var At=ie.handles[ze],Lt=this._handleHeight;At.attr({scaleX:Lt/2,scaleY:Lt/2,x:le[ze]+(ze?-1:1),y:_e[1]/2-Lt/2})},this),ie.filler.setShape({x:pe[0],y:0,width:pe[1]-pe[0],height:_e[1]});var Ce={x:pe[0],width:pe[1]-pe[0]};ie.moveHandle&&(ie.moveHandle.setShape(Ce),ie.moveZone.setShape(Ce),ie.moveZone.getBoundingRect(),ie.moveHandleIcon&&ie.moveHandleIcon.attr("x",Ce.x+Ce.width/2));for(var $e=ie.dataShadowSegs,xe=[0,pe[0],pe[1],_e[0]],Ie=0;Ie<$e.length;Ie++){var Ne=$e[Ie],Fe=Ne.getClipPath();Fe||(Fe=new Rect$2,Ne.setClipPath(Fe)),Fe.setShape({x:xe[Ie],y:0,width:xe[Ie+1]-xe[Ie],height:_e[1]})}this._updateDataInfo(ae)},oe.prototype._updateDataInfo=function(ae){var ie=this.dataZoomModel,le=this._displayables,pe=le.handleLabels,_e=this._orient,Ce=["",""];if(ie.get("showDetail")){var $e=ie.findRepresentativeAxisProxy();if($e){var xe=$e.getAxisModel().axis,Ie=this._range,Ne=ae?$e.calculateDataWindow({start:Ie[0],end:Ie[1]}).valueWindow:$e.getDataValueWindow();Ce=[this._formatLabel(Ne[0],xe),this._formatLabel(Ne[1],xe)]}}var Fe=asc$2(this._handleEnds.slice());ze.call(this,0),ze.call(this,1);function ze(At){var Lt=getTransform$1(le.handles[At].parent,this.group),hn=transformDirection(At===0?"right":"left",Lt),vn=this._handleWidth/2+LABEL_GAP,_n=applyTransform([Fe[At]+(At===0?-vn:vn),this._size[1]/2],Lt);pe[At].setStyle({x:_n[0],y:_n[1],verticalAlign:_e===HORIZONTAL?"middle":hn,align:_e===HORIZONTAL?hn:"center",text:Ce[At]})}},oe.prototype._formatLabel=function(ae,ie){var le=this.dataZoomModel,pe=le.get("labelFormatter"),_e=le.get("labelPrecision");(_e==null||_e==="auto")&&(_e=ie.getPixelPrecision());var Ce=ae==null||isNaN(ae)?"":ie.type==="category"||ie.type==="time"?ie.scale.getLabel({value:Math.round(ae)}):ae.toFixed(Math.min(_e,20));return isFunction(pe)?pe(ae,Ce):isString(pe)?pe.replace("{value}",Ce):Ce},oe.prototype._showDataInfo=function(ae){ae=this._dragging||ae;var ie=this._displayables,le=ie.handleLabels;le[0].attr("invisible",!ae),le[1].attr("invisible",!ae),ie.moveHandle&&this.api[ae?"enterEmphasis":"leaveEmphasis"](ie.moveHandle,1)},oe.prototype._onDragMove=function(ae,ie,le,pe){this._dragging=!0,stop(pe.event);var _e=this._displayables.sliderGroup.getLocalTransform(),Ce=applyTransform([ie,le],_e,!0),$e=this._updateInterval(ae,Ce[0]),xe=this.dataZoomModel.get("realtime");this._updateView(!xe),$e&&xe&&this._dispatchZoomAction(!0)},oe.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var ae=this.dataZoomModel.get("realtime");!ae&&this._dispatchZoomAction(!1)},oe.prototype._onClickPanel=function(ae){var ie=this._size,le=this._displayables.sliderGroup.transformCoordToLocal(ae.offsetX,ae.offsetY);if(!(le[0]<0||le[0]>ie[0]||le[1]<0||le[1]>ie[1])){var pe=this._handleEnds,_e=(pe[0]+pe[1])/2,Ce=this._updateInterval("all",le[0]-_e);this._updateView(),Ce&&this._dispatchZoomAction(!1)}},oe.prototype._onBrushStart=function(ae){var ie=ae.offsetX,le=ae.offsetY;this._brushStart=new Point$1(ie,le),this._brushing=!0,this._brushStartTime=+new Date},oe.prototype._onBrushEnd=function(ae){if(this._brushing){var ie=this._displayables.brushRect;if(this._brushing=!1,!!ie){ie.attr("ignore",!0);var le=ie.shape,pe=+new Date;if(!(pe-this._brushStartTime<200&&Math.abs(le.width)<5)){var _e=this._getViewExtent(),Ce=[0,100];this._range=asc$2([linearMap$2(le.x,_e,Ce,!0),linearMap$2(le.x+le.width,_e,Ce,!0)]),this._handleEnds=[le.x,le.x+le.width],this._updateView(),this._dispatchZoomAction(!1)}}}},oe.prototype._onBrush=function(ae){this._brushing&&(stop(ae.event),this._updateBrushRect(ae.offsetX,ae.offsetY))},oe.prototype._updateBrushRect=function(ae,ie){var le=this._displayables,pe=this.dataZoomModel,_e=le.brushRect;_e||(_e=le.brushRect=new Rect({silent:!0,style:pe.getModel("brushStyle").getItemStyle()}),le.sliderGroup.add(_e)),_e.attr("ignore",!1);var Ce=this._brushStart,$e=this._displayables.sliderGroup,xe=$e.transformCoordToLocal(ae,ie),Ie=$e.transformCoordToLocal(Ce.x,Ce.y),Ne=this._size;xe[0]=Math.max(Math.min(Ne[0],xe[0]),0),_e.setShape({x:Ie[0],y:0,width:xe[0]-Ie[0],height:Ne[1]})},oe.prototype._dispatchZoomAction=function(ae){var ie=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:ae?REALTIME_ANIMATION_CONFIG:null,start:ie[0],end:ie[1]})},oe.prototype._findCoordRect=function(){var ae,ie=collectReferCoordSysModelInfo(this.dataZoomModel).infoList;if(!ae&&ie.length){var le=ie[0].model.coordinateSystem;ae=le.getRect&&le.getRect()}if(!ae){var pe=this.api.getWidth(),_e=this.api.getHeight();ae={x:pe*.2,y:_e*.2,width:pe*.6,height:_e*.6}}return ae},oe.type="dataZoom.slider",oe}(DataZoomView$1);function getOtherDim($){var oe={x:"y",y:"x",radius:"angle",angle:"radius"};return oe[$]}function getCursor$1($){return $==="vertical"?"ns-resize":"ew-resize"}const SliderZoomView$1=SliderZoomView;function install$4($){$.registerComponentModel(SliderZoomModel$1),$.registerComponentView(SliderZoomView$1),installCommon$1($)}function install$3($){use$1(install$5),use$1(install$4)}var visualDefault={get:function($,oe,ae){var ie=clone$3((defaultOption[$]||{})[oe]);return ae&&isArray$1(ie)?ie[ie.length-1]:ie}},defaultOption={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const visualDefault$1=visualDefault;var mapVisual=VisualMapping$1.mapVisual,eachVisual=VisualMapping$1.eachVisual,isArray=isArray$1,each$2=each$c,asc=asc$2,linearMap$1=linearMap$2,VisualMapModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae.stateList=["inRange","outOfRange"],ae.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],ae.layoutMode={type:"box",ignoreSize:!0},ae.dataBound=[-1/0,1/0],ae.targetVisuals={},ae.controllerVisuals={},ae}return oe.prototype.init=function(ae,ie,le){this.mergeDefaultAndTheme(ae,le)},oe.prototype.optionUpdated=function(ae,ie){var le=this.option;!ie&&replaceVisualOption(le,ae,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},oe.prototype.resetVisual=function(ae){var ie=this.stateList;ae=bind$1(ae,this),this.controllerVisuals=createVisualMappings(this.option.controller,ie,ae),this.targetVisuals=createVisualMappings(this.option.target,ie,ae)},oe.prototype.getItemSymbol=function(){return null},oe.prototype.getTargetSeriesIndices=function(){var ae=this.option.seriesIndex,ie=[];return ae==null||ae==="all"?this.ecModel.eachSeries(function(le,pe){ie.push(pe)}):ie=normalizeToArray(ae),ie},oe.prototype.eachTargetSeries=function(ae,ie){each$c(this.getTargetSeriesIndices(),function(le){var pe=this.ecModel.getSeriesByIndex(le);pe&&ae.call(ie,pe)},this)},oe.prototype.isTargetSeries=function(ae){var ie=!1;return this.eachTargetSeries(function(le){le===ae&&(ie=!0)}),ie},oe.prototype.formatValueText=function(ae,ie,le){var pe=this.option,_e=pe.precision,Ce=this.dataBound,$e=pe.formatter,xe;le=le||["<",">"],isArray$1(ae)&&(ae=ae.slice(),xe=!0);var Ie=ie?ae:xe?[Ne(ae[0]),Ne(ae[1])]:Ne(ae);if(isString($e))return $e.replace("{value}",xe?Ie[0]:Ie).replace("{value2}",xe?Ie[1]:Ie);if(isFunction($e))return xe?$e(ae[0],ae[1]):$e(ae);if(xe)return ae[0]===Ce[0]?le[0]+" "+Ie[1]:ae[1]===Ce[1]?le[1]+" "+Ie[0]:Ie[0]+" - "+Ie[1];return Ie;function Ne(Fe){return Fe===Ce[0]?"min":Fe===Ce[1]?"max":(+Fe).toFixed(Math.min(_e,20))}},oe.prototype.resetExtent=function(){var ae=this.option,ie=asc([ae.min,ae.max]);this._dataExtent=ie},oe.prototype.getDataDimensionIndex=function(ae){var ie=this.option.dimension;if(ie!=null)return ae.getDimensionIndex(ie);for(var le=ae.dimensions,pe=le.length-1;pe>=0;pe--){var _e=le[pe],Ce=ae.getDimensionInfo(_e);if(!Ce.isCalculationCoord)return Ce.storeDimIndex}},oe.prototype.getExtent=function(){return this._dataExtent.slice()},oe.prototype.completeVisualOption=function(){var ae=this.ecModel,ie=this.option,le={inRange:ie.inRange,outOfRange:ie.outOfRange},pe=ie.target||(ie.target={}),_e=ie.controller||(ie.controller={});merge(pe,le),merge(_e,le);var Ce=this.isCategory();$e.call(this,pe),$e.call(this,_e),xe.call(this,pe,"inRange","outOfRange"),Ie.call(this,_e);function $e(Ne){isArray(ie.color)&&!Ne.inRange&&(Ne.inRange={color:ie.color.slice().reverse()}),Ne.inRange=Ne.inRange||{color:ae.get("gradientColor")}}function xe(Ne,Fe,ze){var At=Ne[Fe],Lt=Ne[ze];At&&!Lt&&(Lt=Ne[ze]={},each$2(At,function(hn,vn){if(VisualMapping$1.isValidType(vn)){var _n=visualDefault$1.get(vn,"inactive",Ce);_n!=null&&(Lt[vn]=_n,vn==="color"&&!Lt.hasOwnProperty("opacity")&&!Lt.hasOwnProperty("colorAlpha")&&(Lt.opacity=[0,0]))}}))}function Ie(Ne){var Fe=(Ne.inRange||{}).symbol||(Ne.outOfRange||{}).symbol,ze=(Ne.inRange||{}).symbolSize||(Ne.outOfRange||{}).symbolSize,At=this.get("inactiveColor"),Lt=this.getItemSymbol(),hn=Lt||"roundRect";each$2(this.stateList,function(vn){var _n=this.itemSize,bn=Ne[vn];bn||(bn=Ne[vn]={color:Ce?At:[At]}),bn.symbol==null&&(bn.symbol=Fe&&clone$3(Fe)||(Ce?hn:[hn])),bn.symbolSize==null&&(bn.symbolSize=ze&&clone$3(ze)||(Ce?_n[0]:[_n[0],_n[0]])),bn.symbol=mapVisual(bn.symbol,function($n){return $n==="none"?hn:$n});var Cn=bn.symbolSize;if(Cn!=null){var En=-1/0;eachVisual(Cn,function($n){$n>En&&(En=$n)}),bn.symbolSize=mapVisual(Cn,function($n){return linearMap$1($n,[0,En],[0,_n[0]],!0)})}},this)}},oe.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},oe.prototype.isCategory=function(){return!!this.option.categories},oe.prototype.setSelected=function(ae){},oe.prototype.getSelected=function(){return null},oe.prototype.getValueState=function(ae){return null},oe.prototype.getVisualMeta=function(ae){return null},oe.type="visualMap",oe.dependencies=["series"],oe.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},oe}(ComponentModel$1);const VisualMapModel$1=VisualMapModel;var DEFAULT_BAR_BOUND=[20,140],ContinuousModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.optionUpdated=function(ae,ie){$.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(le){le.mappingMethod="linear",le.dataExtent=this.getExtent()}),this._resetRange()},oe.prototype.resetItemSize=function(){$.prototype.resetItemSize.apply(this,arguments);var ae=this.itemSize;(ae[0]==null||isNaN(ae[0]))&&(ae[0]=DEFAULT_BAR_BOUND[0]),(ae[1]==null||isNaN(ae[1]))&&(ae[1]=DEFAULT_BAR_BOUND[1])},oe.prototype._resetRange=function(){var ae=this.getExtent(),ie=this.option.range;!ie||ie.auto?(ae.auto=1,this.option.range=ae):isArray$1(ie)&&(ie[0]>ie[1]&&ie.reverse(),ie[0]=Math.max(ie[0],ae[0]),ie[1]=Math.min(ie[1],ae[1]))},oe.prototype.completeVisualOption=function(){$.prototype.completeVisualOption.apply(this,arguments),each$c(this.stateList,function(ae){var ie=this.option.controller[ae].symbolSize;ie&&ie[0]!==ie[1]&&(ie[0]=ie[1]/3)},this)},oe.prototype.setSelected=function(ae){this.option.range=ae.slice(),this._resetRange()},oe.prototype.getSelected=function(){var ae=this.getExtent(),ie=asc$2((this.get("range")||[]).slice());return ie[0]>ae[1]&&(ie[0]=ae[1]),ie[1]>ae[1]&&(ie[1]=ae[1]),ie[0]=le[1]||ae<=ie[1])?"inRange":"outOfRange"},oe.prototype.findTargetDataIndices=function(ae){var ie=[];return this.eachTargetSeries(function(le){var pe=[],_e=le.getData();_e.each(this.getDataDimensionIndex(_e),function(Ce,$e){ae[0]<=Ce&&Ce<=ae[1]&&pe.push($e)},this),ie.push({seriesId:le.id,dataIndex:pe})},this),ie},oe.prototype.getVisualMeta=function(ae){var ie=getColorStopValues(this,"outOfRange",this.getExtent()),le=getColorStopValues(this,"inRange",this.option.range.slice()),pe=[];function _e(ze,At){pe.push({value:ze,color:ae(ze,At)})}for(var Ce=0,$e=0,xe=le.length,Ie=ie.length;$eae[1])break;pe.push({color:this.getControllerVisual($e,"color",ie),offset:Ce/le})}return pe.push({color:this.getControllerVisual(ae[1],"color",ie),offset:1}),pe},oe.prototype._createBarPoints=function(ae,ie){var le=this.visualMapModel.itemSize;return[[le[0]-ie[0],ae[0]],[le[0],ae[0]],[le[0],ae[1]],[le[0]-ie[1],ae[1]]]},oe.prototype._createBarGroup=function(ae){var ie=this._orient,le=this.visualMapModel.get("inverse");return new Group$3(ie==="horizontal"&&!le?{scaleX:ae==="bottom"?1:-1,rotation:Math.PI/2}:ie==="horizontal"&&le?{scaleX:ae==="bottom"?-1:1,rotation:-Math.PI/2}:ie==="vertical"&&!le?{scaleX:ae==="left"?1:-1,scaleY:-1}:{scaleX:ae==="left"?1:-1})},oe.prototype._updateHandle=function(ae,ie){if(this._useHandle){var le=this._shapes,pe=this.visualMapModel,_e=le.handleThumbs,Ce=le.handleLabels,$e=pe.itemSize,xe=pe.getExtent();each$1([0,1],function(Ie){var Ne=_e[Ie];Ne.setStyle("fill",ie.handlesColor[Ie]),Ne.y=ae[Ie];var Fe=linearMap(ae[Ie],[0,$e[1]],xe,!0),ze=this.getControllerVisual(Fe,"symbolSize");Ne.scaleX=Ne.scaleY=ze/$e[0],Ne.x=$e[0]-ze/2;var At=applyTransform(le.handleLabelPoints[Ie],getTransform$1(Ne,this.group));Ce[Ie].setStyle({x:At[0],y:At[1],text:pe.formatValueText(this._dataInterval[Ie]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",le.mainGroup):"center"})},this)}},oe.prototype._showIndicator=function(ae,ie,le,pe){var _e=this.visualMapModel,Ce=_e.getExtent(),$e=_e.itemSize,xe=[0,$e[1]],Ie=this._shapes,Ne=Ie.indicator;if(Ne){Ne.attr("invisible",!1);var Fe={convertOpacityToAlpha:!0},ze=this.getControllerVisual(ae,"color",Fe),At=this.getControllerVisual(ae,"symbolSize"),Lt=linearMap(ae,Ce,xe,!0),hn=$e[0]-At/2,vn={x:Ne.x,y:Ne.y};Ne.y=Lt,Ne.x=hn;var _n=applyTransform(Ie.indicatorLabelPoint,getTransform$1(Ne,this.group)),bn=Ie.indicatorLabel;bn.attr("invisible",!1);var Cn=this._applyTransform("left",Ie.mainGroup),En=this._orient,$n=En==="horizontal";bn.setStyle({text:(le||"")+_e.formatValueText(ie),verticalAlign:$n?Cn:"middle",align:$n?"center":Cn});var wn={x:hn,y:Lt,style:{fill:ze}},Tn={style:{x:_n[0],y:_n[1]}};if(_e.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var xn={duration:100,easing:"cubicInOut",additive:!0};Ne.x=vn.x,Ne.y=vn.y,Ne.animateTo(wn,xn),bn.animateTo(Tn,xn)}else Ne.attr(wn),bn.attr(Tn);this._firstShowIndicator=!1;var kn=this._shapes.handleLabels;if(kn)for(var An=0;An_e[1]&&(Ne[1]=1/0),ie&&(Ne[0]===-1/0?this._showIndicator(Ie,Ne[1],"< ",$e):Ne[1]===1/0?this._showIndicator(Ie,Ne[0],"> ",$e):this._showIndicator(Ie,Ie,"≈ ",$e));var Fe=this._hoverLinkDataIndices,ze=[];(ie||useHoverLinkOnHandle(le))&&(ze=this._hoverLinkDataIndices=le.findTargetDataIndices(Ne));var At=compressBatches(Fe,ze);this._dispatchHighDown("downplay",makeHighDownBatch(At[0],le)),this._dispatchHighDown("highlight",makeHighDownBatch(At[1],le))}},oe.prototype._hoverLinkFromSeriesMouseOver=function(ae){var ie;if(findEventDispatcher(ae.target,function($e){var xe=getECData($e);if(xe.dataIndex!=null)return ie=xe,!0},!0),!!ie){var le=this.ecModel.getSeriesByIndex(ie.seriesIndex),pe=this.visualMapModel;if(pe.isTargetSeries(le)){var _e=le.getData(ie.dataType),Ce=_e.getStore().get(pe.getDataDimensionIndex(_e),ie.dataIndex);isNaN(Ce)||this._showIndicator(Ce,Ce)}}},oe.prototype._hideIndicator=function(){var ae=this._shapes;ae.indicator&&ae.indicator.attr("invisible",!0),ae.indicatorLabel&&ae.indicatorLabel.attr("invisible",!0);var ie=this._shapes.handleLabels;if(ie)for(var le=0;le=0&&(pe.dimension=_e,ie.push(pe))}}),$.getData().setVisual("visualMeta",ie)}}];function getColorVisual($,oe,ae,ie){for(var le=oe.targetVisuals[ie],pe=VisualMapping$1.prepareVisualTypes(le),_e={color:getVisualFromData($.getData(),"color")},Ce=0,$e=pe.length;Ce<$e;Ce++){var xe=pe[Ce],Ie=le[xe==="opacity"?"__alphaForOpacity":xe];Ie&&Ie.applyVisual(ae,Ne,Fe)}return _e.color;function Ne(ze){return _e[ze]}function Fe(ze,At){_e[ze]=At}}var each=each$c;function visualMapPreprocessor($){var oe=$&&$.visualMap;isArray$1(oe)||(oe=oe?[oe]:[]),each(oe,function(ae){if(ae){has(ae,"splitList")&&!has(ae,"pieces")&&(ae.pieces=ae.splitList,delete ae.splitList);var ie=ae.pieces;ie&&isArray$1(ie)&&each(ie,function(le){isObject$3(le)&&(has(le,"start")&&!has(le,"min")&&(le.min=le.start),has(le,"end")&&!has(le,"max")&&(le.max=le.end))})}})}function has($,oe){return $&&$.hasOwnProperty&&$.hasOwnProperty(oe)}var installed=!1;function installCommon($){installed||(installed=!0,$.registerSubTypeDefaulter("visualMap",function(oe){return!oe.categories&&(!(oe.pieces?oe.pieces.length>0:oe.splitNumber>0)||oe.calculable)?"continuous":"piecewise"}),$.registerAction(visualMapActionInfo,visualMapActionHander),each$c(visualMapEncodingHandlers,function(oe){$.registerVisual($.PRIORITY.VISUAL.COMPONENT,oe)}),$.registerPreprocessor(visualMapPreprocessor))}function install$2($){$.registerComponentModel(ContinuousModel$1),$.registerComponentView(ContinuousView$1),installCommon($)}var PiecewiseModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae._pieceList=[],ae}return oe.prototype.optionUpdated=function(ae,ie){$.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var le=this._mode=this._determineMode();this._pieceList=[],resetMethods[this._mode].call(this,this._pieceList),this._resetSelected(ae,ie);var pe=this.option.categories;this.resetVisual(function(_e,Ce){le==="categories"?(_e.mappingMethod="category",_e.categories=clone$3(pe)):(_e.dataExtent=this.getExtent(),_e.mappingMethod="piecewise",_e.pieceList=map$2(this._pieceList,function($e){return $e=clone$3($e),Ce!=="inRange"&&($e.visual=null),$e}))})},oe.prototype.completeVisualOption=function(){var ae=this.option,ie={},le=VisualMapping$1.listVisualTypes(),pe=this.isCategory();each$c(ae.pieces,function(Ce){each$c(le,function($e){Ce.hasOwnProperty($e)&&(ie[$e]=1)})}),each$c(ie,function(Ce,$e){var xe=!1;each$c(this.stateList,function(Ie){xe=xe||_e(ae,Ie,$e)||_e(ae.target,Ie,$e)},this),!xe&&each$c(this.stateList,function(Ie){(ae[Ie]||(ae[Ie]={}))[$e]=visualDefault$1.get($e,Ie==="inRange"?"active":"inactive",pe)})},this);function _e(Ce,$e,xe){return Ce&&Ce[$e]&&Ce[$e].hasOwnProperty(xe)}$.prototype.completeVisualOption.apply(this,arguments)},oe.prototype._resetSelected=function(ae,ie){var le=this.option,pe=this._pieceList,_e=(ie?le:ae).selected||{};if(le.selected=_e,each$c(pe,function($e,xe){var Ie=this.getSelectedMapKey($e);_e.hasOwnProperty(Ie)||(_e[Ie]=!0)},this),le.selectedMode==="single"){var Ce=!1;each$c(pe,function($e,xe){var Ie=this.getSelectedMapKey($e);_e[Ie]&&(Ce?_e[Ie]=!1:Ce=!0)},this)}},oe.prototype.getItemSymbol=function(){return this.get("itemSymbol")},oe.prototype.getSelectedMapKey=function(ae){return this._mode==="categories"?ae.value+"":ae.index+""},oe.prototype.getPieceList=function(){return this._pieceList},oe.prototype._determineMode=function(){var ae=this.option;return ae.pieces&&ae.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},oe.prototype.setSelected=function(ae){this.option.selected=clone$3(ae)},oe.prototype.getValueState=function(ae){var ie=VisualMapping$1.findPieceIndex(ae,this._pieceList);return ie!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[ie])]?"inRange":"outOfRange"},oe.prototype.findTargetDataIndices=function(ae){var ie=[],le=this._pieceList;return this.eachTargetSeries(function(pe){var _e=[],Ce=pe.getData();Ce.each(this.getDataDimensionIndex(Ce),function($e,xe){var Ie=VisualMapping$1.findPieceIndex($e,le);Ie===ae&&_e.push(xe)},this),ie.push({seriesId:pe.id,dataIndex:_e})},this),ie},oe.prototype.getRepresentValue=function(ae){var ie;if(this.isCategory())ie=ae.value;else if(ae.value!=null)ie=ae.value;else{var le=ae.interval||[];ie=le[0]===-1/0&&le[1]===1/0?0:(le[0]+le[1])/2}return ie},oe.prototype.getVisualMeta=function(ae){if(this.isCategory())return;var ie=[],le=["",""],pe=this;function _e(Ie,Ne){var Fe=pe.getRepresentValue({interval:Ie});Ne||(Ne=pe.getValueState(Fe));var ze=ae(Fe,Ne);Ie[0]===-1/0?le[0]=ze:Ie[1]===1/0?le[1]=ze:ie.push({value:Ie[0],color:ze},{value:Ie[1],color:ze})}var Ce=this._pieceList.slice();if(!Ce.length)Ce.push({interval:[-1/0,1/0]});else{var $e=Ce[0].interval[0];$e!==-1/0&&Ce.unshift({interval:[-1/0,$e]}),$e=Ce[Ce.length-1].interval[1],$e!==1/0&&Ce.push({interval:[$e,1/0]})}var xe=-1/0;return each$c(Ce,function(Ie){var Ne=Ie.interval;Ne&&(Ne[0]>xe&&_e([xe,Ne[0]],"outOfRange"),_e(Ne.slice()),xe=Ne[1])},this),{stops:ie,outerColors:le}},oe.type="visualMap.piecewise",oe.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),oe}(VisualMapModel$1),resetMethods={splitNumber:function($){var oe=this.option,ae=Math.min(oe.precision,20),ie=this.getExtent(),le=oe.splitNumber;le=Math.max(parseInt(le,10),1),oe.splitNumber=le;for(var pe=(ie[1]-ie[0])/le;+pe.toFixed(ae)!==pe&&ae<5;)ae++;oe.precision=ae,pe=+pe.toFixed(ae),oe.minOpen&&$.push({interval:[-1/0,ie[0]],close:[0,0]});for(var _e=0,Ce=ie[0];_e","≥"][ie[0]]];ae.text=ae.text||this.formatValueText(ae.value!=null?ae.value:ae.interval,!1,le)},this)}};function normalizeReverse($,oe){var ae=$.inverse;($.orient==="vertical"?!ae:ae)&&oe.reverse()}const PiecewiseModel$1=PiecewiseModel;var PiecewiseVisualMapView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.doRender=function(){var ae=this.group;ae.removeAll();var ie=this.visualMapModel,le=ie.get("textGap"),pe=ie.textStyleModel,_e=pe.getFont(),Ce=pe.getTextColor(),$e=this._getItemAlign(),xe=ie.itemSize,Ie=this._getViewData(),Ne=Ie.endsText,Fe=retrieve(ie.get("showLabel",!0),!Ne);Ne&&this._renderEndsText(ae,Ne[0],xe,Fe,$e),each$c(Ie.viewPieceList,function(ze){var At=ze.piece,Lt=new Group$3;Lt.onclick=bind$1(this._onItemClick,this,At),this._enableHoverLink(Lt,ze.indexInModelPieceList);var hn=ie.getRepresentValue(At);if(this._createItemSymbol(Lt,hn,[0,0,xe[0],xe[1]]),Fe){var vn=this.visualMapModel.getValueState(hn);Lt.add(new ZRText$1({style:{x:$e==="right"?-le:xe[0]+le,y:xe[1]/2,text:At.text,verticalAlign:"middle",align:$e,font:_e,fill:Ce,opacity:vn==="outOfRange"?.5:1}}))}ae.add(Lt)},this),Ne&&this._renderEndsText(ae,Ne[1],xe,Fe,$e),box(ie.get("orient"),ae,ie.get("itemGap")),this.renderBackground(ae),this.positionGroup(ae)},oe.prototype._enableHoverLink=function(ae,ie){var le=this;ae.on("mouseover",function(){return pe("highlight")}).on("mouseout",function(){return pe("downplay")});var pe=function(_e){var Ce=le.visualMapModel;Ce.option.hoverLink&&le.api.dispatchAction({type:_e,batch:makeHighDownBatch(Ce.findTargetDataIndices(ie),Ce)})}},oe.prototype._getItemAlign=function(){var ae=this.visualMapModel,ie=ae.option;if(ie.orient==="vertical")return getItemAlign(ae,this.api,ae.itemSize);var le=ie.align;return(!le||le==="auto")&&(le="left"),le},oe.prototype._renderEndsText=function(ae,ie,le,pe,_e){if(ie){var Ce=new Group$3,$e=this.visualMapModel.textStyleModel;Ce.add(new ZRText$1({style:createTextStyle$1($e,{x:pe?_e==="right"?le[0]:0:le[0]/2,y:le[1]/2,verticalAlign:"middle",align:pe?_e:"center",text:ie})})),ae.add(Ce)}},oe.prototype._getViewData=function(){var ae=this.visualMapModel,ie=map$2(ae.getPieceList(),function(Ce,$e){return{piece:Ce,indexInModelPieceList:$e}}),le=ae.get("text"),pe=ae.get("orient"),_e=ae.get("inverse");return(pe==="horizontal"?_e:!_e)?ie.reverse():le&&(le=le.slice().reverse()),{viewPieceList:ie,endsText:le}},oe.prototype._createItemSymbol=function(ae,ie,le){ae.add(createSymbol(this.getControllerVisual(ie,"symbol"),le[0],le[1],le[2],le[3],this.getControllerVisual(ie,"color")))},oe.prototype._onItemClick=function(ae){var ie=this.visualMapModel,le=ie.option,pe=le.selectedMode;if(pe){var _e=clone$3(le.selected),Ce=ie.getSelectedMapKey(ae);pe==="single"||pe===!0?(_e[Ce]=!0,each$c(_e,function($e,xe){_e[xe]=xe===Ce})):_e[Ce]=!_e[Ce],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:_e})}},oe.type="visualMap.piecewise",oe}(VisualMapView$1);const PiecewiseView=PiecewiseVisualMapView;function install$1($){$.registerComponentModel(PiecewiseModel$1),$.registerComponentView(PiecewiseView),installCommon($)}function install($){use$1(install$2),use$1(install$1)}const{use}=echarts;use([install$h,install$i,install$j,install$k,install$e,install$9,install$6,install$d,install$b,install$a,install$3,install]);function useEcharts($){$.config.globalProperties.$echarts=echarts}var p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,j$1=Object.prototype.hasOwnProperty,_$1=($,oe,ae)=>oe in $?p($,oe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):$[oe]=ae,P=($,oe)=>{for(var ae in oe)p($,ae,{get:oe[ae],enumerable:!0})},y=($,oe,ae,ie)=>{if(oe&&typeof oe=="object"||typeof oe=="function")for(let le of u(oe))!j$1.call($,le)&&le!==ae&&p($,le,{get:()=>oe[le],enumerable:!(ie=d(oe,le))||ie.enumerable});return $},m$1=($,oe,ae)=>(y($,oe,"default"),ae&&y(ae,oe,"default")),f=($,oe,ae)=>(_$1($,typeof oe!="symbol"?oe+"":oe,ae),ae),c={};P(c,{Vue:()=>vue_runtime_esmBundler});m$1(c,vue_runtime_esmBundler);var g=class{static install($,oe){let{nameSpace:ae=this._nameSpace,memory:ie}=oe;return ie&&this.clearAll(ae,ie),new g($,oe)}static clearAll($,oe){Object.keys(oe).forEach(ae=>{let ie=$+ae;Object.prototype.hasOwnProperty.call(window.localStorage,ie)&&window.localStorage.removeItem(ie)})}static get($){return JSON.parse(window.localStorage.getItem($))}static set($,oe){oe=typeof oe=="object"?JSON.stringify(oe):oe,window.localStorage.setItem($,oe)}static getData($,oe){if(Object.prototype.hasOwnProperty.call(window.localStorage,this._getStaticKey(oe,$)))return JSON.parse(window.localStorage.getItem(this._getStaticKey(oe,$)))}constructor($,oe){let ae=g,{version:ie=3,nameSpace:le=ae._nameSpace,memory:pe}=oe,_e=xe=>le+xe,Ce=ie===3?(0,c.reactive)(pe):pe;Object.keys(Ce).length===0&&console.warn("key cannot be empty"),Object.keys(Ce).forEach(xe=>{let Ie=Ce[xe];ae.set(_e(xe),Ie),Reflect.defineProperty(Ce,xe,{get:()=>ae.get(_e(xe)),set:Ne=>ae.set(_e(xe),Ne),configurable:!0}),ie===2&&$.util.defineReactive(Ce,xe,Ce[xe])});let $e=ie===3?$.config.globalProperties:$.prototype;Reflect.defineProperty($e,"$storage",{get:()=>Ce})}},n=g;f(n,"_nameSpace","rs-"),f(n,"_getStaticKey",($,oe)=>`${$??g._nameSpace}${oe}`);const injectResponsiveStorage=($,oe)=>{const ae=responsiveStorageNameSpace(),ie=Object.assign({locale:n.getData("locale",ae)??{locale:oe.Locale??"zh"},layout:n.getData("layout",ae)??{layout:oe.Layout??"vertical",theme:oe.Theme??"default",darkMode:oe.DarkMode??!1,sidebarStatus:oe.SidebarStatus??!0,epThemeColor:oe.EpThemeColor??"#409EFF"},configure:n.getData("configure",ae)??{grey:oe.Grey??!1,weak:oe.Weak??!1,hideTabs:oe.HideTabs??!1,showLogo:oe.ShowLogo??!0,showModel:oe.ShowModel??"smart",multiTagsCache:oe.MultiTagsCache??!1}},oe.MultiTagsCache?{tags:n.getData("tags",ae)??routerArrays}:{});$.use(n,{nameSpace:ae,memory:ie})},ue=Object.prototype.hasOwnProperty,D=($,oe)=>ue.call($,oe),_=$=>$!==null&&typeof $=="object",de=(($,oe)=>{if(!_($)||_(ae=$)&&ae.__epPropKey)return $;var ae;const{values:ie,required:le,default:pe,type:_e,validator:Ce}=$,$e=ie||Ce?Ie=>{let Ne=!1,Fe=[];if(ie&&(Fe=Array.from(ie),D($,"default")&&Fe.push(pe),Ne||(Ne=Fe.includes(Ie))),Ce&&(Ne||(Ne=Ce(Ie))),!Ne&&Fe.length>0){const ze=[...new Set(Fe)].map(At=>JSON.stringify(At)).join(", ");warn$2(`Invalid prop: validation failed${oe?` for prop "${oe}"`:""}. Expected one of [${ze}], got value ${JSON.stringify(Ie)}.`)}return Ne}:void 0,xe={type:_e,required:!!le,validator:$e,__epPropKey:!0};return D($,"default")&&(xe.default=pe),xe})({type:String,values:["","default","small","large"],required:!1});var ce={data:{type:Array,default:()=>[]},size:de,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"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const ge={key:{type:String||Number,default:"0"},columns:{type:Array,default:[]},loading:{type:Boolean,default:!1},loadingConfig:{type:Object,default:()=>{}},alignWhole:{type:String,default:"left"},headerAlign:{type:String,default:""},showOverflowTooltip:{type:Boolean,default:!1},rowHoverBgColor:{type:String,default:""},pagination:{type:Object,default:{total:0,pageSize:5,align:"right",background:!1,pageSizes:[5,10,15,20],layout:"total, sizes, prev, pager, next, jumper"}},paginationSmall:{type:Boolean,default:!1},...ce},H=defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:$=>()=>createVNode(Fragment,null,[$.render($.params)])});var J=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,ye=Object.getOwnPropertyNames,me=Object.prototype.hasOwnProperty,K=($,oe,ae,ie)=>{if(oe&&typeof oe=="object"||typeof oe=="function")for(let le of ye(oe))!me.call($,le)&&le!==ae&&J($,le,{get:()=>oe[le],enumerable:!(ie=fe(oe,le))||ie.enumerable});return $},be=Object.prototype.toString;function M($){return typeof $=="function"}function he($){return function(oe,ae){return be.call(oe)===`[object ${ae}]`}($,"Boolean")}var h={};(($,oe)=>{for(var ae in oe)J($,ae,{get:oe[ae],enumerable:!0})})(h,{Vue:()=>vue_runtime_esmBundler}),K(h,vue_runtime_esmBundler,"default");var Oe=()=>{let $,oe=(0,h.ref)(!1),ae=()=>{oe.value=document.documentElement.classList.contains("dark")};return function(ie){(0,h.getCurrentInstance)()&&(0,h.onUnmounted)(ie)}(()=>{$.takeRecords(),$.disconnect()}),(0,h.onBeforeMount)(()=>{ae(),$=new MutationObserver(ae),$.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:oe}};const T=defineComponent({name:"PureTable",props:ge,emits:["page-size-change","page-current-change"],setup($,{slots:oe,attrs:ae,emit:ie,expose:le}){const{isDark:pe}=Oe(),_e=getCurrentInstance();function Ce(){var $n;return($n=_e==null?void 0:_e.proxy)==null?void 0:$n.$refs[`TableRef${$.key}`]}function $e(){return Ce().$refs}onMounted(()=>{nextTick(()=>{$.rowHoverBgColor&&$e().tableWrapper.style.setProperty("--el-table-row-hover-bg-color",$.rowHoverBgColor,"important")})});const{columns:xe,loading:Ie,loadingConfig:Ne,alignWhole:Fe,headerAlign:ze,showOverflowTooltip:At,pagination:Lt}=toRefs($);let hn=computed(()=>{if(!unref(Ne))return;let{text:$n,spinner:wn,svg:Tn,viewBox:xn}=unref(Ne);return{"element-loading-text":$n,"element-loading-spinner":wn,"element-loading-svg":Tn,"element-loading-svg-view-box":xn}});const vn=computed(()=>{var $n,wn;if(unref(Ie))return{"element-loading-background":((wn=($n=unref(Ne))==null?void 0:$n.background)!=null?wn:pe.value)?"rgba(0, 0, 0, 0.45)":"rgba(255, 255, 255, 0.45)"}}),_n=computed(()=>{var $n;return Object.assign({width:"100%",margin:"16px 0",display:"flex",justifyContent:unref(Lt).align==="left"?"flex-start":unref(Lt).align==="center"?"center":"flex-end"},($n=unref(Lt).style)!=null?$n:{})});let bn=unref(Lt)&&unref(Lt).currentPage&&unref(Lt).pageSize;const Cn=($n,wn)=>{const{cellRenderer:Tn,slot:xn,headerRenderer:kn,hide:An,children:On,prop:Nn,...Rn}=$n;if(M(An)&&An(ae))return An(ae);if(he(An)&&An)return An;const zn={default:Fn=>{var Vn;return Tn?createVNode(H,{render:Tn,params:Object.assign(Fn,{index:Fn.$index,props:$,attrs:ae})},null):xn?(Vn=oe==null?void 0:oe[xn])==null?void 0:Vn.call(oe,Object.assign(Fn,{index:Fn.$index,props:$,attrs:ae})):void 0}};let Bn=kn?{header:Fn=>createVNode(H,{render:kn,params:Object.assign(Fn,{index:Fn.$index,props:$,attrs:ae})},null),...zn}:zn;return(On==null?void 0:On.length)>0&&(Bn=On.map(Cn)),createVNode(ElTableColumn,mergeProps({key:wn},Rn,{prop:M(Nn)&&Nn(wn)?Nn(wn):Nn,align:$n!=null&&$n.align?$n.align:unref(Fe),headerAlign:$n!=null&&$n.headerAlign?$n.headerAlign:unref(ze),showOverflowTooltip:$n!=null&&$n.showOverflowTooltip?$n.showOverflowTooltip:unref(At)}),typeof(Mn=Bn)=="function"||Object.prototype.toString.call(Mn)==="[object Object]"&&!isVNode$1(Mn)?Bn:{default:()=>[Bn]});var Mn};le({getTableRef:Ce,getTableDoms:$e});let En=()=>{var $n,wn;return createVNode(Fragment,null,[createVNode(ElTable,mergeProps($,ae,{ref:`TableRef${$.key}`}),{default:()=>unref(xe).map(Cn),append:()=>oe.append&&oe.append(),empty:()=>oe.empty&&oe.empty()}),bn?createVNode(ElPagination,mergeProps(ae,{class:"pure-pagination",style:unref(_n)},unref(Lt),{small:$!=null&&$.paginationSmall?$==null?void 0:$.paginationSmall:!!unref(Lt).small&&unref(Lt).small,layout:($n=unref(Lt).layout)!=null?$n:"total, sizes, prev, pager, next, jumper",pageSizes:(wn=unref(Lt).pageSizes)!=null?wn:[5,10,15,20],onSizeChange:Tn=>(xn=>{unref(Lt).pageSize=xn,ie("page-size-change",xn)})(Tn),onCurrentChange:Tn=>(xn=>{unref(Lt).currentPage=xn,ie("page-current-change",xn)})(Tn)}),null):null])};return()=>withDirectives(createVNode("div",mergeProps({class:"pure-table",style:"width:100%"},unref(vn),unref(hn)),[En()]),[[resolveDirective("loading"),unref(Ie)]])}}),Se=Object.assign(T,{install:function($){$.component(T.name,T)}}),L={data:{type:Array,default:[]},columns:{type:Array,default:[]},loading:{type:Object,default:()=>({load:!1,text:"Loading...",svg:"",spinner:"",svgViewBox:"",background:""})},align:{type:String,default:"left"},labelAlign:{type:String,default:""},...ElDescriptions.props},j=defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:$=>()=>createVNode(Fragment,null,[$.render($.params)])}),m=defineComponent({name:"PureDescriptions",props:L,setup($,{slots:oe,attrs:ae}){const{data:ie,columns:le,align:pe,labelAlign:_e,loading:Ce}=toRefs($),$e={title:()=>(oe==null?void 0:oe.title)&&oe.title({props:$,attrs:ae})},xe={extra:()=>(oe==null?void 0:oe.extra)&&oe.extra({props:$,attrs:ae})},Ie=oe!=null&&oe.title&&!(oe!=null&&oe.extra)?$e:oe!=null&&oe.extra&&!(oe!=null&&oe.title)?xe:oe!=null&&oe.title&&(oe!=null&&oe.extra)?Object.assign($e,xe):null;return()=>{var Ne;return withDirectives(createVNode(ElDescriptions,mergeProps($,ae,{"element-loading-text":(Ne=unref(Ce).text)!=null?Ne:"Loading...","element-loading-svg":unref(Ce).svg,"element-loading-spinner":unref(Ce).spinner,"element-loading-svg-view-box":unref(Ce).svgViewBox,"element-loading-background":unref(Ce).background}),{default:()=>[unref(le).map((Fe,ze)=>{let At=unref(ie).map(bn=>bn[Fe==null?void 0:Fe.prop]);const Lt={default:()=>{var bn;return Fe!=null&&Fe.cellRenderer?createVNode(j,{render:Fe.cellRenderer,params:{props:$,attrs:ae,index:ze,value:At[0]}},null):Fe!=null&&Fe.slot?(bn=oe==null?void 0:oe[Fe.slot])==null?void 0:bn.call(oe,{props:$,attrs:ae,index:ze,value:At[0]}):createVNode(Fragment,null,Fe!=null&&Fe.value?[unref(Fe.value)]:[At])}},hn=Fe!=null&&Fe.labelRenderer?{label:()=>createVNode(j,{render:Fe.labelRenderer,params:{props:$,attrs:ae,index:ze,value:At[0]}},null),...Lt}:Lt;return vn=Fe==null?void 0:Fe.hide,typeof vn=="function"&&(Fe!=null&&Fe.hide(ae))?Fe==null?void 0:Fe.hide(ae):createVNode(ElDescriptionsItem,mergeProps(Fe,{key:ze,align:Fe.align?Fe.align:unref(pe),labelAlign:Fe.labelAlign?Fe.labelAlign:unref(_e)}),typeof(_n=hn)=="function"||Object.prototype.toString.call(_n)==="[object Object]"&&!isVNode$1(_n)?hn:{default:()=>[hn]});var vn,_n})],...Ie}),[[resolveDirective("loading"),unref(Ce).load]])}}}),I=Object.assign(m,{install:function($){$.component(m.name,m)}}),reset="",index$1="",tailwind="",index="";window._iconfont_svg_string_2208059='',function($){var ae=(ae=document.getElementsByTagName("script"))[ae.length-1],oe=ae.getAttribute("data-injectcss"),ae=ae.getAttribute("data-disable-injectsvg");if(!ae){var ie,le,pe,_e,Ce,$e=function(Ne,Fe){Fe.parentNode.insertBefore(Ne,Fe)};if(oe&&!$.__iconfont__svg__cssinject__){$.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(Ne){console&&console.log(Ne)}}ie=function(){var Ne,Fe=document.createElement("div");Fe.innerHTML=$._iconfont_svg_string_2208059,(Fe=Fe.getElementsByTagName("svg")[0])&&(Fe.setAttribute("aria-hidden","true"),Fe.style.position="absolute",Fe.style.width=0,Fe.style.height=0,Fe.style.overflow="hidden",Fe=Fe,(Ne=document.body).firstChild?$e(Fe,Ne.firstChild):Ne.appendChild(Fe))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(ie,0):(le=function(){document.removeEventListener("DOMContentLoaded",le,!1),ie()},document.addEventListener("DOMContentLoaded",le,!1)):document.attachEvent&&(pe=ie,_e=$.document,Ce=!1,Ie(),_e.onreadystatechange=function(){_e.readyState=="complete"&&(_e.onreadystatechange=null,xe())})}function xe(){Ce||(Ce=!0,pe())}function Ie(){try{_e.documentElement.doScroll("left")}catch{return void setTimeout(Ie,50)}xe()}}(window);const iconfont="",auth$1={mounted($,oe){var ie;const{value:ae}=oe;if(ae)!hasAuth(ae)&&((ie=$.parentNode)==null||ie.removeChild($));else throw new Error(`need auths! Like v-auth="['btn.add','btn.edit']"`)}};var collectionUtils={exports:{}},utils$3=collectionUtils.exports={};utils$3.forEach=function($,oe){for(var ae=0;ae<$.length;ae++){var ie=oe($[ae]);if(ie)return ie}};var collectionUtilsExports=collectionUtils.exports,elementUtils=function($){var oe=$.stateHandler.getState;function ae(_e){var Ce=oe(_e);return Ce&&!!Ce.isDetectable}function ie(_e){oe(_e).isDetectable=!0}function le(_e){return!!oe(_e).busy}function pe(_e,Ce){oe(_e).busy=!!Ce}return{isDetectable:ae,markAsDetectable:ie,isBusy:le,markBusy:pe}},listenerHandler=function($){var oe={};function ae(_e){var Ce=$.get(_e);return Ce===void 0?[]:oe[Ce]||[]}function ie(_e,Ce){var $e=$.get(_e);oe[$e]||(oe[$e]=[]),oe[$e].push(Ce)}function le(_e,Ce){for(var $e=ae(_e),xe=0,Ie=$e.length;xe";while(_e[0]);return le>4?le:ie}();return $===ae};detector.isLegacyOpera=function(){return!!window.opera};var browserDetectorExports=browserDetector$2.exports,utils$2={exports:{}},utils$1=utils$2.exports={};utils$1.getOption=getOption$1;function getOption$1($,oe,ae){var ie=$[oe];return ie==null&&ae!==void 0?ae:ie}var utilsExports=utils$2.exports,utils=utilsExports,batchProcessor=function(oe){oe=oe||{};var ae=oe.reporter,ie=utils.getOption(oe,"async",!0),le=utils.getOption(oe,"auto",!0);le&&!ie&&(ae&&ae.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),ie=!0);var pe=Batch(),_e,Ce=!1;function $e(At,Lt){!Ce&&le&&ie&&pe.size()===0&&Ne(),pe.add(At,Lt)}function xe(){for(Ce=!0;pe.size();){var At=pe;pe=Batch(),At.process()}Ce=!1}function Ie(At){Ce||(At===void 0&&(At=ie),_e&&(Fe(_e),_e=null),At?Ne():xe())}function Ne(){_e=ze(xe)}function Fe(At){var Lt=clearTimeout;return Lt(At)}function ze(At){var Lt=function(hn){return setTimeout(hn,0)};return Lt(At)}return{add:$e,force:Ie}};function Batch(){var $={},oe=0,ae=0,ie=0;function le(Ce,$e){$e||($e=Ce,Ce=0),Ce>ae?ae=Ce:Ce div::-webkit-scrollbar { "+xe(["display: none"])+` } + +`,kn+="."+xn+" { "+xe(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+Tn,"animation-name: "+Tn])+` } +`,kn+="@-webkit-keyframes "+Tn+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } +`,kn+="@keyframes "+Tn+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",wn(kn)}}function Fe(Cn){Cn.className+=" "+Ce+"_animation_active"}function ze(Cn,En,$n){if(Cn.addEventListener)Cn.addEventListener(En,$n);else if(Cn.attachEvent)Cn.attachEvent("on"+En,$n);else return oe.error("[scroll] Don't know how to add event listeners.")}function At(Cn,En,$n){if(Cn.removeEventListener)Cn.removeEventListener(En,$n);else if(Cn.detachEvent)Cn.detachEvent("on"+En,$n);else return oe.error("[scroll] Don't know how to remove event listeners.")}function Lt(Cn){return ie(Cn).container.childNodes[0].childNodes[0].childNodes[0]}function hn(Cn){return ie(Cn).container.childNodes[0].childNodes[0].childNodes[1]}function vn(Cn,En){var $n=ie(Cn).listeners;if(!$n.push)throw new Error("Cannot add listener to an element that is not detectable.");ie(Cn).listeners.push(En)}function _n(Cn,En,$n){$n||($n=En,En=Cn,Cn=null),Cn=Cn||{};function wn(){if(Cn.debug){var Yn=Array.prototype.slice.call(arguments);if(Yn.unshift(le.get(En),"Scroll: "),oe.log.apply)oe.log.apply(null,Yn);else for(var ar=0;ar>>0,1):$.set(oe,[]))},emit:function(oe,ae){var ie=$.get(oe);ie&&ie.slice().map(function(le){le(ae)}),(ie=$.get("*"))&&ie.slice().map(function(le){le(oe,ae)})}}}const emitter=mitt(),erd=elementResizeDetectorMaker({strategy:"scroll"}),resize={mounted($,oe,ae){erd.listenTo($,ie=>{const le=ie.offsetWidth,pe=ie.offsetHeight;oe!=null&&oe.instance?emitter.emit("resize",{detail:{width:le,height:pe}}):ae.el.dispatchEvent(new CustomEvent("resize",{detail:{width:le,height:pe}}))})},unmounted($){erd.uninstall($)}},directives=Object.freeze(Object.defineProperty({__proto__:null,auth:auth$1,resize},Symbol.toStringTag,{value:"Module"})),defaultIconDimensions$1=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations$1=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps$1=Object.freeze({...defaultIconDimensions$1,...defaultIconTransformations$1});Object.freeze({...defaultIconProps$1,body:"",hidden:!1});({...defaultIconDimensions$1});const defaultIconSizeCustomisations$1=Object.freeze({width:null,height:null}),defaultIconCustomisations$1=Object.freeze({...defaultIconSizeCustomisations$1,...defaultIconTransformations$1});function mergeCustomisations$1($,oe){const ae={...$};for(const ie in oe){const le=oe[ie],pe=typeof le;ie in defaultIconSizeCustomisations$1?(le===null||le&&(pe==="string"||pe==="number"))&&(ae[ie]=le):pe===typeof ae[ie]&&(ae[ie]=ie==="rotate"?le%4:le)}return ae}const separator$1=/[\s,]+/;function flipFromString$1($,oe){oe.split(separator$1).forEach(ae=>{switch(ae.trim()){case"horizontal":$.hFlip=!0;break;case"vertical":$.vFlip=!0;break}})}function rotateFromString$1($,oe=0){const ae=$.replace(/^-?[0-9.]*/,"");function ie(le){for(;le<0;)le+=4;return le%4}if(ae===""){const le=parseInt($);return isNaN(le)?0:ie(le)}else if(ae!==$){let le=0;switch(ae){case"%":le=25;break;case"deg":le=90}if(le){let pe=parseFloat($.slice(0,$.length-ae.length));return isNaN(pe)?0:(pe=pe/le,pe%1===0?ie(pe):0)}}return oe}const unitsSplit$1=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest$1=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize$1($,oe,ae){if(oe===1)return $;if(ae=ae||100,typeof $=="number")return Math.ceil($*oe*ae)/ae;if(typeof $!="string")return $;const ie=$.split(unitsSplit$1);if(ie===null||!ie.length)return $;const le=[];let pe=ie.shift(),_e=unitsTest$1.test(pe);for(;;){if(_e){const Ce=parseFloat(pe);isNaN(Ce)?le.push(pe):le.push(Math.ceil(Ce*oe*ae)/ae)}else le.push(pe);if(pe=ie.shift(),pe===void 0)return le.join("");_e=!_e}}const isUnsetKeyword$1=$=>$==="unset"||$==="undefined"||$==="none";function iconToSVG$1($,oe){const ae={...defaultIconProps$1,...$},ie={...defaultIconCustomisations$1,...oe},le={left:ae.left,top:ae.top,width:ae.width,height:ae.height};let pe=ae.body;[ae,ie].forEach(At=>{const Lt=[],hn=At.hFlip,vn=At.vFlip;let _n=At.rotate;hn?vn?_n+=2:(Lt.push("translate("+(le.width+le.left).toString()+" "+(0-le.top).toString()+")"),Lt.push("scale(-1 1)"),le.top=le.left=0):vn&&(Lt.push("translate("+(0-le.left).toString()+" "+(le.height+le.top).toString()+")"),Lt.push("scale(1 -1)"),le.top=le.left=0);let bn;switch(_n<0&&(_n-=Math.floor(_n/4)*4),_n=_n%4,_n){case 1:bn=le.height/2+le.top,Lt.unshift("rotate(90 "+bn.toString()+" "+bn.toString()+")");break;case 2:Lt.unshift("rotate(180 "+(le.width/2+le.left).toString()+" "+(le.height/2+le.top).toString()+")");break;case 3:bn=le.width/2+le.left,Lt.unshift("rotate(-90 "+bn.toString()+" "+bn.toString()+")");break}_n%2===1&&(le.left!==le.top&&(bn=le.left,le.left=le.top,le.top=bn),le.width!==le.height&&(bn=le.width,le.width=le.height,le.height=bn)),Lt.length&&(pe=''+pe+"")});const _e=ie.width,Ce=ie.height,$e=le.width,xe=le.height;let Ie,Ne;_e===null?(Ne=Ce===null?"1em":Ce==="auto"?xe:Ce,Ie=calculateSize$1(Ne,$e/xe)):(Ie=_e==="auto"?$e:_e,Ne=Ce===null?calculateSize$1(Ie,xe/$e):Ce==="auto"?xe:Ce);const Fe={},ze=(At,Lt)=>{isUnsetKeyword$1(Lt)||(Fe[At]=Lt.toString())};return ze("width",Ie),ze("height",Ne),Fe.viewBox=le.left.toString()+" "+le.top.toString()+" "+$e.toString()+" "+xe.toString(),{attributes:Fe,body:pe}}const regex$1=/\sid="(\S+)"/g,randomPrefix$1="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter$1=0;function replaceIDs$1($,oe=randomPrefix$1){const ae=[];let ie;for(;ie=regex$1.exec($);)ae.push(ie[1]);if(!ae.length)return $;const le="suffix"+(Math.random()*16777216|Date.now()).toString(16);return ae.forEach(pe=>{const _e=typeof oe=="function"?oe(pe):oe+(counter$1++).toString(),Ce=pe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");$=$.replace(new RegExp('([#;"])('+Ce+')([")]|\\.[a-z])',"g"),"$1"+_e+le+"$3")}),$=$.replace(new RegExp(le,"g"),""),$}function iconToHTML$1($,oe){let ae=$.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const ie in oe)ae+=" "+ie+'="'+oe[ie]+'"';return'"+$+""}function encodeSVGforURL$1($){return $.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData$1($){return"data:image/svg+xml,"+encodeSVGforURL$1($)}function svgToURL$1($){return'url("'+svgToData$1($)+'")'}const defaultExtendedIconCustomisations$1={...defaultIconCustomisations$1,inline:!1},svgDefaults$1={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps$1={display:"inline-block"},monotoneProps$1={backgroundColor:"currentColor"},coloredProps$1={backgroundColor:"transparent"},propsToAdd$1={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo$1={webkitMask:monotoneProps$1,mask:monotoneProps$1,background:coloredProps$1};for(const $ in propsToAddTo$1){const oe=propsToAddTo$1[$];for(const ae in propsToAdd$1)oe[$+ae]=propsToAdd$1[ae]}const customisationAliases$1={};["horizontal","vertical"].forEach($=>{const oe=$.slice(0,1)+"Flip";customisationAliases$1[$+"-flip"]=oe,customisationAliases$1[$.slice(0,1)+"-flip"]=oe,customisationAliases$1[$+"Flip"]=oe});function fixSize$1($){return $+($.match(/^[-0-9.]+$/)?"px":"")}const render$1=($,oe)=>{const ae=mergeCustomisations$1(defaultExtendedIconCustomisations$1,oe),ie={...svgDefaults$1},le=oe.mode||"svg",pe={},_e=oe.style,Ce=typeof _e=="object"&&!(_e instanceof Array)?_e:{};for(let Lt in oe){const hn=oe[Lt];if(hn!==void 0)switch(Lt){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":ae[Lt]=hn===!0||hn==="true"||hn===1;break;case"flip":typeof hn=="string"&&flipFromString$1(ae,hn);break;case"color":pe.color=hn;break;case"rotate":typeof hn=="string"?ae[Lt]=rotateFromString$1(hn):typeof hn=="number"&&(ae[Lt]=hn);break;case"ariaHidden":case"aria-hidden":hn!==!0&&hn!=="true"&&delete ie["aria-hidden"];break;default:{const vn=customisationAliases$1[Lt];vn?(hn===!0||hn==="true"||hn===1)&&(ae[vn]=!0):defaultExtendedIconCustomisations$1[Lt]===void 0&&(ie[Lt]=hn)}}}const $e=iconToSVG$1($,ae),xe=$e.attributes;if(ae.inline&&(pe.verticalAlign="-0.125em"),le==="svg"){ie.style={...pe,...Ce},Object.assign(ie,xe);let Lt=0,hn=oe.id;return typeof hn=="string"&&(hn=hn.replace(/-/g,"_")),ie.innerHTML=replaceIDs$1($e.body,hn?()=>hn+"ID"+Lt++:"iconifyVue"),h$3("svg",ie)}const{body:Ie,width:Ne,height:Fe}=$,ze=le==="mask"||(le==="bg"?!1:Ie.indexOf("currentColor")!==-1),At=iconToHTML$1(Ie,{...xe,width:Ne+"",height:Fe+""});return ie.style={...pe,"--svg":svgToURL$1(At),width:fixSize$1(xe.width),height:fixSize$1(xe.height),...commonProps$1,...ze?monotoneProps$1:coloredProps$1,...Ce},h$3("span",ie)},storage$1=Object.create(null);function addIcon$1($,oe){storage$1[$]=oe}const Icon$1=defineComponent({inheritAttrs:!1,render(){const $=this.$attrs,oe=$.icon,ae=typeof oe=="string"?storage$1[oe]:typeof oe=="object"?oe:null;return ae===null||typeof ae!="object"||typeof ae.body!="string"?this.$slots.default?this.$slots.default():null:render$1({...defaultIconProps$1,...ae},$)}}),iconifyIconOffline=defineComponent({name:"IconifyIconOffline",components:{IconifyIcon:Icon$1},props:{icon:{default:null}},render(){typeof this.icon=="object"&&addIcon$1(this.icon,this.icon);const $=this.$attrs;return h$3(Icon$1,{icon:this.icon,style:$!=null&&$.style?Object.assign($.style,{outline:"none"}):{outline:"none"},...$},{default:()=>[]})}}),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=($,oe,ae,ie="")=>{const le=$.split(":");if($.slice(0,1)==="@"){if(le.length<2||le.length>3)return null;ie=le.shift().slice(1)}if(le.length>3||!le.length)return null;if(le.length>1){const Ce=le.pop(),$e=le.pop(),xe={provider:le.length>0?le[0]:ie,prefix:$e,name:Ce};return oe&&!validateIconName(xe)?null:xe}const pe=le[0],_e=pe.split("-");if(_e.length>1){const Ce={provider:ie,prefix:_e.shift(),name:_e.join("-")};return oe&&!validateIconName(Ce)?null:Ce}if(ae&&ie===""){const Ce={provider:ie,prefix:"",name:pe};return oe&&!validateIconName(Ce,ae)?null:Ce}return null},validateIconName=($,oe)=>$?!!(($.provider===""||$.provider.match(matchIconName))&&(oe&&$.prefix===""||$.prefix.match(matchIconName))&&$.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations($,oe){const ae={};!$.hFlip!=!oe.hFlip&&(ae.hFlip=!0),!$.vFlip!=!oe.vFlip&&(ae.vFlip=!0);const ie=(($.rotate||0)+(oe.rotate||0))%4;return ie&&(ae.rotate=ie),ae}function mergeIconData($,oe){const ae=mergeIconTransformations($,oe);for(const ie in defaultExtendedIconProps)ie in defaultIconTransformations?ie in $&&!(ie in ae)&&(ae[ie]=defaultIconTransformations[ie]):ie in oe?ae[ie]=oe[ie]:ie in $&&(ae[ie]=$[ie]);return ae}function getIconsTree($,oe){const ae=$.icons,ie=$.aliases||Object.create(null),le=Object.create(null);function pe(_e){if(ae[_e])return le[_e]=[];if(!(_e in le)){le[_e]=null;const Ce=ie[_e]&&ie[_e].parent,$e=Ce&&pe(Ce);$e&&(le[_e]=[Ce].concat($e))}return le[_e]}return(oe||Object.keys(ae).concat(Object.keys(ie))).forEach(pe),le}function internalGetIconData($,oe,ae){const ie=$.icons,le=$.aliases||Object.create(null);let pe={};function _e(Ce){pe=mergeIconData(ie[Ce]||le[Ce],pe)}return _e(oe),ae.forEach(_e),mergeIconData($,pe)}function parseIconSet($,oe){const ae=[];if(typeof $!="object"||typeof $.icons!="object")return ae;$.not_found instanceof Array&&$.not_found.forEach(le=>{oe(le,null),ae.push(le)});const ie=getIconsTree($);for(const le in ie){const pe=ie[le];pe&&(oe(le,internalGetIconData($,le,pe)),ae.push(le))}return ae}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps($,oe){for(const ae in oe)if(ae in $&&typeof $[ae]!=typeof oe[ae])return!1;return!0}function quicklyValidateIconSet($){if(typeof $!="object"||$===null)return null;const oe=$;if(typeof oe.prefix!="string"||!$.icons||typeof $.icons!="object"||!checkOptionalProps($,optionalPropertyDefaults))return null;const ae=oe.icons;for(const le in ae){const pe=ae[le];if(!le.match(matchIconName)||typeof pe.body!="string"||!checkOptionalProps(pe,defaultExtendedIconProps))return null}const ie=oe.aliases||Object.create(null);for(const le in ie){const pe=ie[le],_e=pe.parent;if(!le.match(matchIconName)||typeof _e!="string"||!ae[_e]&&!ie[_e]||!checkOptionalProps(pe,defaultExtendedIconProps))return null}return oe}const dataStorage=Object.create(null);function newStorage($,oe){return{provider:$,prefix:oe,icons:Object.create(null),missing:new Set}}function getStorage($,oe){const ae=dataStorage[$]||(dataStorage[$]=Object.create(null));return ae[oe]||(ae[oe]=newStorage($,oe))}function addIconSet($,oe){return quicklyValidateIconSet(oe)?parseIconSet(oe,(ae,ie)=>{ie?$.icons[ae]=ie:$.missing.add(ae)}):[]}function addIconToStorage($,oe,ae){try{if(typeof ae.body=="string")return $.icons[oe]={...ae},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames($){return typeof $=="boolean"&&(simpleNames=$),simpleNames}function getIconData($){const oe=typeof $=="string"?stringToIcon($,!0,simpleNames):$;if(oe){const ae=getStorage(oe.provider,oe.prefix),ie=oe.name;return ae.icons[ie]||(ae.missing.has(ie)?null:void 0)}}function addIcon($,oe){const ae=stringToIcon($,!0,simpleNames);if(!ae)return!1;const ie=getStorage(ae.provider,ae.prefix);return addIconToStorage(ie,ae.name,oe)}function addCollection($,oe){if(typeof $!="object")return!1;if(typeof oe!="string"&&(oe=$.provider||""),simpleNames&&!oe&&!$.prefix){let le=!1;return quicklyValidateIconSet($)&&($.prefix="",parseIconSet($,(pe,_e)=>{_e&&addIcon(pe,_e)&&(le=!0)})),le}const ae=$.prefix;if(!validateIconName({provider:oe,prefix:ae,name:"a"}))return!1;const ie=getStorage(oe,ae);return!!addIconSet(ie,$)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize($,oe,ae){if(oe===1)return $;if(ae=ae||100,typeof $=="number")return Math.ceil($*oe*ae)/ae;if(typeof $!="string")return $;const ie=$.split(unitsSplit);if(ie===null||!ie.length)return $;const le=[];let pe=ie.shift(),_e=unitsTest.test(pe);for(;;){if(_e){const Ce=parseFloat(pe);isNaN(Ce)?le.push(pe):le.push(Math.ceil(Ce*oe*ae)/ae)}else le.push(pe);if(pe=ie.shift(),pe===void 0)return le.join("");_e=!_e}}const isUnsetKeyword=$=>$==="unset"||$==="undefined"||$==="none";function iconToSVG($,oe){const ae={...defaultIconProps,...$},ie={...defaultIconCustomisations,...oe},le={left:ae.left,top:ae.top,width:ae.width,height:ae.height};let pe=ae.body;[ae,ie].forEach(At=>{const Lt=[],hn=At.hFlip,vn=At.vFlip;let _n=At.rotate;hn?vn?_n+=2:(Lt.push("translate("+(le.width+le.left).toString()+" "+(0-le.top).toString()+")"),Lt.push("scale(-1 1)"),le.top=le.left=0):vn&&(Lt.push("translate("+(0-le.left).toString()+" "+(le.height+le.top).toString()+")"),Lt.push("scale(1 -1)"),le.top=le.left=0);let bn;switch(_n<0&&(_n-=Math.floor(_n/4)*4),_n=_n%4,_n){case 1:bn=le.height/2+le.top,Lt.unshift("rotate(90 "+bn.toString()+" "+bn.toString()+")");break;case 2:Lt.unshift("rotate(180 "+(le.width/2+le.left).toString()+" "+(le.height/2+le.top).toString()+")");break;case 3:bn=le.width/2+le.left,Lt.unshift("rotate(-90 "+bn.toString()+" "+bn.toString()+")");break}_n%2===1&&(le.left!==le.top&&(bn=le.left,le.left=le.top,le.top=bn),le.width!==le.height&&(bn=le.width,le.width=le.height,le.height=bn)),Lt.length&&(pe=''+pe+"")});const _e=ie.width,Ce=ie.height,$e=le.width,xe=le.height;let Ie,Ne;_e===null?(Ne=Ce===null?"1em":Ce==="auto"?xe:Ce,Ie=calculateSize(Ne,$e/xe)):(Ie=_e==="auto"?$e:_e,Ne=Ce===null?calculateSize(Ie,xe/$e):Ce==="auto"?xe:Ce);const Fe={},ze=(At,Lt)=>{isUnsetKeyword(Lt)||(Fe[At]=Lt.toString())};return ze("width",Ie),ze("height",Ne),Fe.viewBox=le.left.toString()+" "+le.top.toString()+" "+$e.toString()+" "+xe.toString(),{attributes:Fe,body:pe}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs($,oe=randomPrefix){const ae=[];let ie;for(;ie=regex.exec($);)ae.push(ie[1]);if(!ae.length)return $;const le="suffix"+(Math.random()*16777216|Date.now()).toString(16);return ae.forEach(pe=>{const _e=typeof oe=="function"?oe(pe):oe+(counter++).toString(),Ce=pe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");$=$.replace(new RegExp('([#;"])('+Ce+')([")]|\\.[a-z])',"g"),"$1"+_e+le+"$3")}),$=$.replace(new RegExp(le,"g"),""),$}const storage=Object.create(null);function setAPIModule($,oe){storage[$]=oe}function getAPIModule($){return storage[$]||storage[""]}function createAPIConfig($){let oe;if(typeof $.resources=="string")oe=[$.resources];else if(oe=$.resources,!(oe instanceof Array)||!oe.length)return null;return{resources:oe,path:$.path||"/",maxURL:$.maxURL||500,rotate:$.rotate||750,timeout:$.timeout||5e3,random:$.random===!0,index:$.index||0,dataAfterTimeout:$.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider($,oe){const ae=createAPIConfig(oe);return ae===null?!1:(configStorage[$]=ae,!0)}function getAPIConfig($){return configStorage[$]}const detectFetch=()=>{let $;try{if($=fetch,typeof $=="function")return $}catch{}};let fetchModule=detectFetch();function calculateMaxLength($,oe){const ae=getAPIConfig($);if(!ae)return 0;let ie;if(!ae.maxURL)ie=0;else{let le=0;ae.resources.forEach(_e=>{le=Math.max(le,_e.length)});const pe=oe+".json?icons=";ie=ae.maxURL-le-ae.path.length-pe.length}return ie}function shouldAbort($){return $===404}const prepare=($,oe,ae)=>{const ie=[],le=calculateMaxLength($,oe),pe="icons";let _e={type:pe,provider:$,prefix:oe,icons:[]},Ce=0;return ae.forEach(($e,xe)=>{Ce+=$e.length+1,Ce>=le&&xe>0&&(ie.push(_e),_e={type:pe,provider:$,prefix:oe,icons:[]},Ce=$e.length),_e.icons.push($e)}),ie.push(_e),ie};function getPath($){if(typeof $=="string"){const oe=getAPIConfig($);if(oe)return oe.path}return"/"}const send=($,oe,ae)=>{if(!fetchModule){ae("abort",424);return}let ie=getPath(oe.provider);switch(oe.type){case"icons":{const pe=oe.prefix,Ce=oe.icons.join(","),$e=new URLSearchParams({icons:Ce});ie+=pe+".json?"+$e.toString();break}case"custom":{const pe=oe.uri;ie+=pe.slice(0,1)==="/"?pe.slice(1):pe;break}default:ae("abort",400);return}let le=503;fetchModule($+ie).then(pe=>{const _e=pe.status;if(_e!==200){setTimeout(()=>{ae(shouldAbort(_e)?"abort":"next",_e)});return}return le=501,pe.json()}).then(pe=>{if(typeof pe!="object"||pe===null){setTimeout(()=>{pe===404?ae("abort",pe):ae("next",le)});return}setTimeout(()=>{ae("success",pe)})}).catch(()=>{ae("next",le)})},fetchAPIModule={prepare,send};function sortIcons($){const oe={loaded:[],missing:[],pending:[]},ae=Object.create(null);$.sort((le,pe)=>le.provider!==pe.provider?le.provider.localeCompare(pe.provider):le.prefix!==pe.prefix?le.prefix.localeCompare(pe.prefix):le.name.localeCompare(pe.name));let ie={provider:"",prefix:"",name:""};return $.forEach(le=>{if(ie.name===le.name&&ie.prefix===le.prefix&&ie.provider===le.provider)return;ie=le;const pe=le.provider,_e=le.prefix,Ce=le.name,$e=ae[pe]||(ae[pe]=Object.create(null)),xe=$e[_e]||($e[_e]=getStorage(pe,_e));let Ie;Ce in xe.icons?Ie=oe.loaded:_e===""||xe.missing.has(Ce)?Ie=oe.missing:Ie=oe.pending;const Ne={provider:pe,prefix:_e,name:Ce};Ie.push(Ne)}),oe}function removeCallback($,oe){$.forEach(ae=>{const ie=ae.loaderCallbacks;ie&&(ae.loaderCallbacks=ie.filter(le=>le.id!==oe))})}function updateCallbacks($){$.pendingCallbacksFlag||($.pendingCallbacksFlag=!0,setTimeout(()=>{$.pendingCallbacksFlag=!1;const oe=$.loaderCallbacks?$.loaderCallbacks.slice(0):[];if(!oe.length)return;let ae=!1;const ie=$.provider,le=$.prefix;oe.forEach(pe=>{const _e=pe.icons,Ce=_e.pending.length;_e.pending=_e.pending.filter($e=>{if($e.prefix!==le)return!0;const xe=$e.name;if($.icons[xe])_e.loaded.push({provider:ie,prefix:le,name:xe});else if($.missing.has(xe))_e.missing.push({provider:ie,prefix:le,name:xe});else return ae=!0,!0;return!1}),_e.pending.length!==Ce&&(ae||removeCallback([$],pe.id),pe.callback(_e.loaded.slice(0),_e.missing.slice(0),_e.pending.slice(0),pe.abort))})}))}let idCounter=0;function storeCallback($,oe,ae){const ie=idCounter++,le=removeCallback.bind(null,ae,ie);if(!oe.pending.length)return le;const pe={id:ie,icons:oe,callback:$,abort:le};return ae.forEach(_e=>{(_e.loaderCallbacks||(_e.loaderCallbacks=[])).push(pe)}),le}function listToIcons($,oe=!0,ae=!1){const ie=[];return $.forEach(le=>{const pe=typeof le=="string"?stringToIcon(le,oe,ae):le;pe&&ie.push(pe)}),ie}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery($,oe,ae,ie){const le=$.resources.length,pe=$.random?Math.floor(Math.random()*le):$.index;let _e;if($.random){let $n=$.resources.slice(0);for(_e=[];$n.length>1;){const wn=Math.floor(Math.random()*$n.length);_e.push($n[wn]),$n=$n.slice(0,wn).concat($n.slice(wn+1))}_e=_e.concat($n)}else _e=$.resources.slice(pe).concat($.resources.slice(0,pe));const Ce=Date.now();let $e="pending",xe=0,Ie,Ne=null,Fe=[],ze=[];typeof ie=="function"&&ze.push(ie);function At(){Ne&&(clearTimeout(Ne),Ne=null)}function Lt(){$e==="pending"&&($e="aborted"),At(),Fe.forEach($n=>{$n.status==="pending"&&($n.status="aborted")}),Fe=[]}function hn($n,wn){wn&&(ze=[]),typeof $n=="function"&&ze.push($n)}function vn(){return{startTime:Ce,payload:oe,status:$e,queriesSent:xe,queriesPending:Fe.length,subscribe:hn,abort:Lt}}function _n(){$e="failed",ze.forEach($n=>{$n(void 0,Ie)})}function bn(){Fe.forEach($n=>{$n.status==="pending"&&($n.status="aborted")}),Fe=[]}function Cn($n,wn,Tn){const xn=wn!=="success";switch(Fe=Fe.filter(kn=>kn!==$n),$e){case"pending":break;case"failed":if(xn||!$.dataAfterTimeout)return;break;default:return}if(wn==="abort"){Ie=Tn,_n();return}if(xn){Ie=Tn,Fe.length||(_e.length?En():_n());return}if(At(),bn(),!$.random){const kn=$.resources.indexOf($n.resource);kn!==-1&&kn!==$.index&&($.index=kn)}$e="completed",ze.forEach(kn=>{kn(Tn)})}function En(){if($e!=="pending")return;At();const $n=_e.shift();if($n===void 0){if(Fe.length){Ne=setTimeout(()=>{At(),$e==="pending"&&(bn(),_n())},$.timeout);return}_n();return}const wn={status:"pending",resource:$n,callback:(Tn,xn)=>{Cn(wn,Tn,xn)}};Fe.push(wn),xe++,Ne=setTimeout(En,$.rotate),ae($n,oe,wn.callback)}return setTimeout(En),vn}function initRedundancy($){const oe={...defaultConfig,...$};let ae=[];function ie(){ae=ae.filter(Ce=>Ce().status==="pending")}function le(Ce,$e,xe){const Ie=sendQuery(oe,Ce,$e,(Ne,Fe)=>{ie(),xe&&xe(Ne,Fe)});return ae.push(Ie),Ie}function pe(Ce){return ae.find($e=>Ce($e))||null}return{query:le,find:pe,setIndex:Ce=>{oe.index=Ce},getIndex:()=>oe.index,cleanup:ie}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache($){if(!redundancyCache[$]){const oe=getAPIConfig($);if(!oe)return;const ae=initRedundancy(oe),ie={config:oe,redundancy:ae};redundancyCache[$]=ie}return redundancyCache[$]}function sendAPIQuery($,oe,ae){let ie,le;if(typeof $=="string"){const pe=getAPIModule($);if(!pe)return ae(void 0,424),emptyCallback$1;le=pe.send;const _e=getRedundancyCache($);_e&&(ie=_e.redundancy)}else{const pe=createAPIConfig($);if(pe){ie=initRedundancy(pe);const _e=$.resources?$.resources[0]:"",Ce=getAPIModule(_e);Ce&&(le=Ce.send)}}return!ie||!le?(ae(void 0,424),emptyCallback$1):ie.query(oe,le,ae)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem($,oe){try{return $.getItem(oe)}catch{}}function setStoredItem($,oe,ae){try{return $.setItem(oe,ae),!0}catch{}}function removeStoredItem($,oe){try{$.removeItem(oe)}catch{}}function setBrowserStorageItemsCount($,oe){return setStoredItem($,browserCacheCountKey,oe.toString())}function getBrowserStorageItemsCount($){return parseInt(getStoredItem($,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus($){browserStorageStatus=$}let _window=typeof window>"u"?{}:window;function getBrowserStorage($){const oe=$+"Storage";try{if(_window&&_window[oe]&&typeof _window[oe].length=="number")return _window[oe]}catch{}browserStorageConfig[$]=!1}function iterateBrowserStorage($,oe){const ae=getBrowserStorage($);if(!ae)return;const ie=getStoredItem(ae,browserCacheVersionKey);if(ie!==browserCacheVersion){if(ie){const Ce=getBrowserStorageItemsCount(ae);for(let $e=0;$e{const $e=browserCachePrefix+Ce.toString(),xe=getStoredItem(ae,$e);if(typeof xe=="string"){try{const Ie=JSON.parse(xe);if(typeof Ie=="object"&&typeof Ie.cached=="number"&&Ie.cached>le&&typeof Ie.provider=="string"&&typeof Ie.data=="object"&&typeof Ie.data.prefix=="string"&&oe(Ie,Ce))return!0}catch{}removeStoredItem(ae,$e)}};let _e=getBrowserStorageItemsCount(ae);for(let Ce=_e-1;Ce>=0;Ce--)pe(Ce)||(Ce===_e-1?(_e--,setBrowserStorageItemsCount(ae,_e)):browserStorageEmptyItems[$].add(Ce))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const $ in browserStorageConfig)iterateBrowserStorage($,oe=>{const ae=oe.data,ie=oe.provider,le=ae.prefix,pe=getStorage(ie,le);if(!addIconSet(pe,ae).length)return!1;const _e=ae.lastModified||-1;return pe.lastModifiedCached=pe.lastModifiedCached?Math.min(pe.lastModifiedCached,_e):_e,!0})}}function updateLastModified($,oe){const ae=$.lastModifiedCached;if(ae&&ae>=oe)return ae===oe;if($.lastModifiedCached=oe,ae)for(const ie in browserStorageConfig)iterateBrowserStorage(ie,le=>{const pe=le.data;return le.provider!==$.provider||pe.prefix!==$.prefix||pe.lastModified===oe});return!0}function storeInBrowserStorage($,oe){browserStorageStatus||initBrowserStorage();function ae(ie){let le;if(!browserStorageConfig[ie]||!(le=getBrowserStorage(ie)))return;const pe=browserStorageEmptyItems[ie];let _e;if(pe.size)pe.delete(_e=Array.from(pe).shift());else if(_e=getBrowserStorageItemsCount(le),!setBrowserStorageItemsCount(le,_e+1))return;const Ce={cached:Math.floor(Date.now()/browserStorageHour),provider:$.provider,data:oe};return setStoredItem(le,browserCachePrefix+_e.toString(),JSON.stringify(Ce))}oe.lastModified&&!updateLastModified($,oe.lastModified)||Object.keys(oe.icons).length&&(oe.not_found&&(oe=Object.assign({},oe),delete oe.not_found),ae("local")||ae("session"))}function emptyCallback(){}function loadedNewIcons($){$.iconsLoaderFlag||($.iconsLoaderFlag=!0,setTimeout(()=>{$.iconsLoaderFlag=!1,updateCallbacks($)}))}function loadNewIcons($,oe){$.iconsToLoad?$.iconsToLoad=$.iconsToLoad.concat(oe).sort():$.iconsToLoad=oe,$.iconsQueueFlag||($.iconsQueueFlag=!0,setTimeout(()=>{$.iconsQueueFlag=!1;const{provider:ae,prefix:ie}=$,le=$.iconsToLoad;delete $.iconsToLoad;let pe;if(!le||!(pe=getAPIModule(ae)))return;pe.prepare(ae,ie,le).forEach(Ce=>{sendAPIQuery(ae,Ce,$e=>{if(typeof $e!="object")Ce.icons.forEach(xe=>{$.missing.add(xe)});else try{const xe=addIconSet($,$e);if(!xe.length)return;const Ie=$.pendingIcons;Ie&&xe.forEach(Ne=>{Ie.delete(Ne)}),storeInBrowserStorage($,$e)}catch(xe){console.error(xe)}loadedNewIcons($)})})}))}const loadIcons=($,oe)=>{const ae=listToIcons($,!0,allowSimpleNames()),ie=sortIcons(ae);if(!ie.pending.length){let $e=!0;return oe&&setTimeout(()=>{$e&&oe(ie.loaded,ie.missing,ie.pending,emptyCallback)}),()=>{$e=!1}}const le=Object.create(null),pe=[];let _e,Ce;return ie.pending.forEach($e=>{const{provider:xe,prefix:Ie}=$e;if(Ie===Ce&&xe===_e)return;_e=xe,Ce=Ie,pe.push(getStorage(xe,Ie));const Ne=le[xe]||(le[xe]=Object.create(null));Ne[Ie]||(Ne[Ie]=[])}),ie.pending.forEach($e=>{const{provider:xe,prefix:Ie,name:Ne}=$e,Fe=getStorage(xe,Ie),ze=Fe.pendingIcons||(Fe.pendingIcons=new Set);ze.has(Ne)||(ze.add(Ne),le[xe][Ie].push(Ne))}),pe.forEach($e=>{const{provider:xe,prefix:Ie}=$e;le[xe][Ie].length&&loadNewIcons($e,le[xe][Ie])}),oe?storeCallback(oe,ie,pe):emptyCallback};function mergeCustomisations($,oe){const ae={...$};for(const ie in oe){const le=oe[ie],pe=typeof le;ie in defaultIconSizeCustomisations?(le===null||le&&(pe==="string"||pe==="number"))&&(ae[ie]=le):pe===typeof ae[ie]&&(ae[ie]=ie==="rotate"?le%4:le)}return ae}const separator=/[\s,]+/;function flipFromString($,oe){oe.split(separator).forEach(ae=>{switch(ae.trim()){case"horizontal":$.hFlip=!0;break;case"vertical":$.vFlip=!0;break}})}function rotateFromString($,oe=0){const ae=$.replace(/^-?[0-9.]*/,"");function ie(le){for(;le<0;)le+=4;return le%4}if(ae===""){const le=parseInt($);return isNaN(le)?0:ie(le)}else if(ae!==$){let le=0;switch(ae){case"%":le=25;break;case"deg":le=90}if(le){let pe=parseFloat($.slice(0,$.length-ae.length));return isNaN(pe)?0:(pe=pe/le,pe%1===0?ie(pe):0)}}return oe}function iconToHTML($,oe){let ae=$.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const ie in oe)ae+=" "+ie+'="'+oe[ie]+'"';return'"+$+""}function encodeSVGforURL($){return $.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData($){return"data:image/svg+xml,"+encodeSVGforURL($)}function svgToURL($){return'url("'+svgToData($)+'")'}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={webkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const $ in propsToAddTo){const oe=propsToAddTo[$];for(const ae in propsToAdd)oe[$+ae]=propsToAdd[ae]}const customisationAliases={};["horizontal","vertical"].forEach($=>{const oe=$.slice(0,1)+"Flip";customisationAliases[$+"-flip"]=oe,customisationAliases[$.slice(0,1)+"-flip"]=oe,customisationAliases[$+"Flip"]=oe});function fixSize($){return $+($.match(/^[-0-9.]+$/)?"px":"")}const render=($,oe)=>{const ae=mergeCustomisations(defaultExtendedIconCustomisations,oe),ie={...svgDefaults},le=oe.mode||"svg",pe={},_e=oe.style,Ce=typeof _e=="object"&&!(_e instanceof Array)?_e:{};for(let Lt in oe){const hn=oe[Lt];if(hn!==void 0)switch(Lt){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":ae[Lt]=hn===!0||hn==="true"||hn===1;break;case"flip":typeof hn=="string"&&flipFromString(ae,hn);break;case"color":pe.color=hn;break;case"rotate":typeof hn=="string"?ae[Lt]=rotateFromString(hn):typeof hn=="number"&&(ae[Lt]=hn);break;case"ariaHidden":case"aria-hidden":hn!==!0&&hn!=="true"&&delete ie["aria-hidden"];break;default:{const vn=customisationAliases[Lt];vn?(hn===!0||hn==="true"||hn===1)&&(ae[vn]=!0):defaultExtendedIconCustomisations[Lt]===void 0&&(ie[Lt]=hn)}}}const $e=iconToSVG($,ae),xe=$e.attributes;if(ae.inline&&(pe.verticalAlign="-0.125em"),le==="svg"){ie.style={...pe,...Ce},Object.assign(ie,xe);let Lt=0,hn=oe.id;return typeof hn=="string"&&(hn=hn.replace(/-/g,"_")),ie.innerHTML=replaceIDs($e.body,hn?()=>hn+"ID"+Lt++:"iconifyVue"),h$3("svg",ie)}const{body:Ie,width:Ne,height:Fe}=$,ze=le==="mask"||(le==="bg"?!1:Ie.indexOf("currentColor")!==-1),At=iconToHTML(Ie,{...xe,width:Ne+"",height:Fe+""});return ie.style={...pe,"--svg":svgToURL(At),width:fixSize(xe.width),height:fixSize(xe.height),...commonProps,...ze?monotoneProps:coloredProps,...Ce},h$3("span",ie)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const $=window;if($.IconifyPreload!==void 0){const oe=$.IconifyPreload,ae="Invalid IconifyPreload syntax.";typeof oe=="object"&&oe!==null&&(oe instanceof Array?oe:[oe]).forEach(ie=>{try{(typeof ie!="object"||ie===null||ie instanceof Array||typeof ie.icons!="object"||typeof ie.prefix!="string"||!addCollection(ie))&&console.error(ae)}catch{console.error(ae)}})}if($.IconifyProviders!==void 0){const oe=$.IconifyProviders;if(typeof oe=="object"&&oe!==null)for(let ae in oe){const ie="IconifyProviders["+ae+"] is invalid.";try{const le=oe[ae];if(typeof le!="object"||!le||le.resources===void 0)continue;addAPIProvider(ae,le)||console.error(ie)}catch{console.error(ie)}}}}const emptyIcon={...defaultIconProps,body:""},Icon=defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon($,oe){if(typeof $=="object"&&$!==null&&typeof $.body=="string")return this._name="",this.abortLoading(),{data:$};let ae;if(typeof $!="string"||(ae=stringToIcon($,!1,!0))===null)return this.abortLoading(),null;const ie=getIconData(ae);if(!ie)return(!this._loadingIcon||this._loadingIcon.name!==$)&&(this.abortLoading(),this._name="",ie!==null&&(this._loadingIcon={name:$,abort:loadIcons([ae],()=>{this.counter++})})),null;this.abortLoading(),this._name!==$&&(this._name=$,oe&&oe($));const le=["iconify"];return ae.prefix!==""&&le.push("iconify--"+ae.prefix),ae.provider!==""&&le.push("iconify--"+ae.provider),{data:ie,classes:le}}},render(){this.counter;const $=this.$attrs,oe=this.iconMounted?this.getIcon($.icon,$.onLoad):null;if(!oe)return render(emptyIcon,$);let ae=$;return oe.classes&&(ae={...$,class:(typeof $.class=="string"?$.class+" ":"")+oe.classes.join(" ")}),render({...defaultIconProps,...oe.data},ae)}}),iconifyIconOnline=defineComponent({name:"IconifyIconOnline",components:{IconifyIcon:Icon},props:{icon:{type:String,default:""}},render(){const $=this.$attrs;return h$3(Icon,{icon:`${this.icon}`,style:$!=null&&$.style?Object.assign($.style,{outline:"none"}):{outline:"none"},...$},{default:()=>[]})}}),fontIcon=defineComponent({name:"FontIcon",props:{icon:{type:String,default:""}},render(){const $=this.$attrs;return Object.keys($).includes("uni")||($==null?void 0:$.iconType)==="uni"?h$3("i",{class:"iconfont",...$},this.icon):Object.keys($).includes("svg")||($==null?void 0:$.iconType)==="svg"?h$3("svg",{class:"icon-svg","aria-hidden":!0},{default:()=>[h$3("use",{"xlink:href":`#${this.icon}`})]}):h$3("i",{class:`iconfont ${this.icon}`,...$})}}),IconifyIconOffline=iconifyIconOffline,IconifyIconOnline=iconifyIconOnline,FontIcon=fontIcon,auth=defineComponent({name:"Auth",props:{value:{type:void 0,default:[]}},setup($,{slots:oe}){return()=>{var ae;return oe&&hasAuth($.value)?createVNode(Fragment,null,[(ae=oe.default)==null?void 0:ae.call(oe)]):null}}}),Auth=auth,systemRouter={path:"/system",meta:{icon:"setting",title:"menus.hssysManagement",rank:system$1},children:[{path:"/system/user/index",name:"User",meta:{icon:"flUser",title:"menus.hsUser",roles:["admin"]}},{path:"/system/role/index",name:"Role",meta:{icon:"role",title:"menus.hsRole",roles:["admin"]}},{path:"/system/dept/index",name:"Dept",meta:{icon:"dept",title:"menus.hsDept",roles:["admin"]}}]},permissionRouter={path:"/permission",meta:{title:"menus.permission",icon:"lollipop",rank:permission},children:[{path:"/permission/page/index",name:"PermissionPage",meta:{title:"menus.permissionPage",roles:["admin","common"]}},{path:"/permission/button/index",name:"PermissionButton",meta:{title:"menus.permissionButton",roles:["admin","common"],auths:["btn_add","btn_edit","btn_delete"]}}]},frameRouter={path:"/iframe",meta:{icon:"monitor",title:"menus.hsExternalPage",rank:frame$1},children:[{path:"/external",name:"https://yiming_chang.gitee.io/pure-admin-doc",meta:{title:"menus.externalLink",roles:["admin","common"]}},{path:"/iframe/pure",name:"FramePure",meta:{title:"menus.hsPureDocument",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc",roles:["admin","common"]}},{path:"/iframe/ep",name:"FrameEp",meta:{title:"menus.hsEpDocument",frameSrc:"https://element-plus.org/zh-CN/",roles:["admin","common"]}},{path:"/iframe/vue3",name:"FrameVue",meta:{title:"menus.hsVueDocument",frameSrc:"https://cn.vuejs.org/",roles:["admin","common"]}},{path:"/iframe/vite",name:"FrameVite",meta:{title:"menus.hsViteDocument",frameSrc:"https://cn.vitejs.dev/",roles:["admin","common"]}},{path:"/iframe/pinia",name:"FramePinia",meta:{title:"menus.hsPiniaDocument",frameSrc:"https://pinia.vuejs.org/zh/index.html",roles:["admin","common"]}},{path:"/iframe/vue-router",name:"FrameRouter",meta:{title:"menus.hsRouterDocument",frameSrc:"https://router.vuejs.org/zh/",roles:["admin","common"]}},{path:"/iframe/tailwindcss",name:"FrameTailwindcss",meta:{title:"menus.hsTailwindcssDocument",frameSrc:"https://tailwindcss.com/docs/installation",roles:["admin","common"]}}]},tabsRouter={path:"/tabs",meta:{icon:"IF-pure-iconfont-tabs",title:"menus.hstabs",rank:tabs},children:[{path:"/tabs/index",name:"Tabs",meta:{title:"menus.hstabs",roles:["admin","common"]}},{path:"/tabs/query-detail",name:"TabQueryDetail",meta:{showLink:!1,roles:["admin","common"]}},{path:"/tabs/params-detail/:id",component:"params-detail",name:"TabParamsDetail",meta:{showLink:!1,roles:["admin","common"]}}]},asyncRoutes=[{url:"/getAsyncRoutes",method:"get",response:()=>({success:!0,data:[systemRouter,permissionRouter,frameRouter,tabsRouter]})}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:asyncRoutes},Symbol.toStringTag,{value:"Module"})),list=[{url:"/getCardList",method:"post",response:()=>({success:!0,data:{list:[{index:1,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:2,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:3,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:4,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:5,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:6,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:7,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:8,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:9,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:10,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:11,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:12,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:13,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"云数据库",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:14,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:15,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:16,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:17,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:18,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:19,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:20,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:21,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:22,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:23,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:24,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:25,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:26,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:27,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:28,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:29,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:30,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:31,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:32,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:33,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:34,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:35,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:36,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:37,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:38,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:39,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:40,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:41,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:42,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:43,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:44,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:45,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:46,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:47,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:48,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"}]}})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:list},Symbol.toStringTag,{value:"Module"})),login=[{url:"/login",method:"post",response:({body:$})=>$.username==="admin"?{success:!0,data:{username:"admin",roles:["admin"],accessToken:"eyJhbGciOiJIUzUxMiJ9.admin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.adminRefresh",expires:"2023/10/30 00:00:00"}}:{success:!0,data:{username:"common",roles:["common"],accessToken:"eyJhbGciOiJIUzUxMiJ9.common",refreshToken:"eyJhbGciOiJIUzUxMiJ9.commonRefresh",expires:"2023/10/30 00:00:00"}}}],__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:login},Symbol.toStringTag,{value:"Module"})),mapList=()=>{const $=[];for(let oe=0;oe<200;oe++)$.push({plateNumber:"豫A@natural(11111, 99999)@character('upper')",driver:"@cname()","orientation|1-360":100,"lng|113-114.1-10":1,"lat|34-35.1-10":1});return $},map=[{url:"/getMapInfo",method:"get",response:()=>({success:!0,data:mapList()})}],__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:map},Symbol.toStringTag,{value:"Module"})),refreshToken=[{url:"/refreshToken",method:"post",response:({body:$})=>$.refreshToken?{success:!0,data:{accessToken:"eyJhbGciOiJIUzUxMiJ9.newAdmin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.newAdminRefresh",expires:"2023/10/30 23:59:59"}}:{success:!1,data:{}}}],__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:refreshToken},Symbol.toStringTag,{value:"Module"})),system=[{url:"/role",method:"post",response:()=>({success:!0,data:{list:[{createTime:1605456e6,updateTime:1645477701e3,creator:"admin",updater:"",deleted:!1,tenantId:1,id:1,name:"超级管理员",code:"super_admin",sort:1,status:0,type:1,remark:"超级管理员",dataScope:1,dataScopeDeptIds:null},{createTime:1605456e6,updateTime:16454777e5,creator:"admin",updater:"",deleted:!1,tenantId:1,id:2,name:"普通角色",code:"common",sort:2,status:0,type:1,remark:"普通角色",dataScope:2,dataScopeDeptIds:null},{createTime:1605456e6,updateTime:1647698441e3,creator:"",updater:"1",deleted:!1,tenantId:1,id:101,name:"测试账号",code:"test",sort:0,status:0,type:2,remark:"132",dataScope:1,dataScopeDeptIds:[]}],total:3}})},{url:"/dept",method:"post",response:()=>({success:!0,data:[{name:"杭州总公司",parentId:0,id:100,sort:0,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:1,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"郑州分公司",parentId:100,id:101,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:2,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"研发部门",parentId:101,id:103,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"市场部门",parentId:102,id:108,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"深圳分公司",parentId:100,id:102,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:2,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"市场部门",parentId:101,id:104,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"财务部门",parentId:102,id:109,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"测试部门",parentId:101,id:105,sort:3,phone:"15888888888",principal:"@cname()",email:"@email",status:0,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"财务部门",parentId:101,id:106,sort:4,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"运维部门",parentId:101,id:107,sort:5,phone:"15888888888",principal:"@cname()",email:"@email",status:0,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"}]})},{url:"/user",method:"post",response:()=>({success:!0,data:{list:[{username:"admin",nickname:"admin",remark:"管理员",deptId:103,postIds:[1],mobile:"15888888888",sex:0,id:1,status:0,createTime:1605456e6,dept:{id:103,name:"研发部门"}},{username:"pure",nickname:"pure",remark:"不要吓我",deptId:104,postIds:[1],mobile:"15888888888",sex:0,id:100,status:1,createTime:1605456e6,dept:{id:104,name:"市场部门"}},{username:"小姐姐",nickname:"girl",remark:null,deptId:106,postIds:null,mobile:"15888888888",sex:1,id:103,status:1,createTime:1605456e6,dept:{id:106,name:"财务部门"}},{username:"小哥哥",nickname:"boy",remark:null,deptId:107,postIds:[],mobile:"15888888888",sex:0,id:104,status:0,createTime:1605456e6,dept:{id:107,name:"运维部门"}}],total:4}})}],__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:system},Symbol.toStringTag,{value:"Module"}));var mock={exports:{}};(function(module,exports){(function(oe,ae){module.exports=ae()})(commonjsGlobal,function(){return function($){var oe={};function ae(ie){if(oe[ie])return oe[ie].exports;var le=oe[ie]={exports:{},id:ie,loaded:!1};return $[ie].call(le.exports,le,le.exports,ae),le.loaded=!0,le.exports}return ae.m=$,ae.c=oe,ae.p="",ae(0)}([function($,oe,ae){var ie=ae(1),le=ae(3),pe=ae(5),_e=ae(20),Ce=ae(23),$e=ae(25),xe;typeof window<"u"&&(xe=ae(27));/*! + Mock - 模拟请求 & 模拟数据 + https://github.com/nuysoft/Mock + 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com +*/var Ie={Handler:ie,Random:pe,Util:le,XHR:xe,RE:_e,toJSONSchema:Ce,valid:$e,heredoc:le.heredoc,setup:function(Ne){return xe.setup(Ne)},_mocked:{}};Ie.version="1.0.1-beta3",xe&&(xe.Mock=Ie),Ie.mock=function(Ne,Fe,ze){return arguments.length===1?ie.gen(Ne):(arguments.length===2&&(ze=Fe,Fe=void 0),xe&&(window.XMLHttpRequest=xe),Ie._mocked[Ne+(Fe||"")]={rurl:Ne,rtype:Fe,template:ze},Ie)},$.exports=Ie},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function($,oe,ae){oe=oe==null?"":oe+"",ae=ae||{},ae={path:ae.path||[Constant.GUID],templatePath:ae.templatePath||[Constant.GUID++],currentContext:ae.currentContext,templateCurrentContext:ae.templateCurrentContext||$,root:ae.root||ae.currentContext,templateRoot:ae.templateRoot||ae.templateCurrentContext||$};var ie=Parser.parse(oe),le=Util.type($),pe;return Handler[le]?(pe=Handler[le]({type:le,template:$,name:oe,parsedName:oe&&oe.replace(Constant.RE_KEY,"$1"),rule:ie,context:ae}),ae.root||(ae.root=pe),pe):$},Handler.extend({array:function($){var oe=[],ae,ie;if($.template.length===0)return oe;if($.rule.parameters)if($.rule.min===1&&$.rule.max===void 0)$.context.path.push($.name),$.context.templatePath.push($.name),oe=Random.pick(Handler.gen($.template,void 0,{path:$.context.path,templatePath:$.context.templatePath,currentContext:oe,templateCurrentContext:$.template,root:$.context.root||oe,templateRoot:$.context.templateRoot||$.template})),$.context.path.pop(),$.context.templatePath.pop();else if($.rule.parameters[2])$.template.__order_index=$.template.__order_index||0,$.context.path.push($.name),$.context.templatePath.push($.name),oe=Handler.gen($.template,void 0,{path:$.context.path,templatePath:$.context.templatePath,currentContext:oe,templateCurrentContext:$.template,root:$.context.root||oe,templateRoot:$.context.templateRoot||$.template})[$.template.__order_index%$.template.length],$.template.__order_index+=+$.rule.parameters[2],$.context.path.pop(),$.context.templatePath.pop();else for(ae=0;ae<$.rule.count;ae++)for(ie=0;ie<$.template.length;ie++)$.context.path.push(oe.length),$.context.templatePath.push(ie),oe.push(Handler.gen($.template[ie],oe.length,{path:$.context.path,templatePath:$.context.templatePath,currentContext:oe,templateCurrentContext:$.template,root:$.context.root||oe,templateRoot:$.context.templateRoot||$.template})),$.context.path.pop(),$.context.templatePath.pop();else for(ae=0;ae<$.template.length;ae++)$.context.path.push(ae),$.context.templatePath.push(ae),oe.push(Handler.gen($.template[ae],ae,{path:$.context.path,templatePath:$.context.templatePath,currentContext:oe,templateCurrentContext:$.template,root:$.context.root||oe,templateRoot:$.context.templateRoot||$.template})),$.context.path.pop(),$.context.templatePath.pop();return oe},object:function($){var oe={},ae,ie,le,pe,_e,Ce;if($.rule.min!=null)for(ae=Util.keys($.template),ae=Random.shuffle(ae),ae=ae.slice(0,$.rule.count),Ce=0;Ce1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(le=oe.context.path.slice(0),le.pop(),le=this.normalizePath(le.concat(ie)));try{$=ie[ie.length-1];for(var pe=oe.context.root,_e=oe.context.templateRoot,Ce=1;Ce1/(ae+ie)*ae?!le:le):Math.random()>=.5},bool:function(ae,ie,le){return this.boolean(ae,ie,le)},natural:function(ae,ie){return ae=typeof ae<"u"?parseInt(ae,10):0,ie=typeof ie<"u"?parseInt(ie,10):9007199254740992,Math.round(Math.random()*(ie-ae))+ae},integer:function(ae,ie){return ae=typeof ae<"u"?parseInt(ae,10):-9007199254740992,ie=typeof ie<"u"?parseInt(ie,10):9007199254740992,Math.round(Math.random()*(ie-ae))+ae},int:function(ae,ie){return this.integer(ae,ie)},float:function(ae,ie,le,pe){le=le===void 0?0:le,le=Math.max(Math.min(le,17),0),pe=pe===void 0?17:pe,pe=Math.max(Math.min(pe,17),0);for(var _e=this.integer(ae,ie)+".",Ce=0,$e=this.natural(le,pe);Ce<$e;Ce++)_e+=Ce<$e-1?this.character("number"):this.character("123456789");return parseFloat(_e,10)},character:function(ae){var ie={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",symbol:"!@#$%^&*()[]"};return ie.alpha=ie.lower+ie.upper,ie.undefined=ie.lower+ie.upper+ie.number+ie.symbol,ae=ie[(""+ae).toLowerCase()]||ae,ae.charAt(this.natural(0,ae.length-1))},char:function(ae){return this.character(ae)},string:function(ae,ie,le){var pe;switch(arguments.length){case 0:pe=this.natural(3,7);break;case 1:pe=ae,ae=void 0;break;case 2:typeof arguments[0]=="string"?pe=ie:(pe=this.natural(ae,ie),ae=void 0);break;case 3:pe=this.natural(ie,le);break}for(var _e="",Ce=0;Ce1&&xe--,6*xe<1?Ne=Ce+($e-Ce)*6*xe:2*xe<1?Ne=$e:3*xe<2?Ne=Ce+($e-Ce)*(2/3-xe)*6:Ne=Ce,Ie[Fe]=Ne*255;return Ie},hsl2hsv:function(ie){var le=ie[0],pe=ie[1]/100,_e=ie[2]/100,Ce,$e;return _e*=2,pe*=_e<=1?_e:2-_e,$e=(_e+pe)/2,Ce=2*pe/(_e+pe),[le,Ce*100,$e*100]},hsv2rgb:function(ie){var le=ie[0]/60,pe=ie[1]/100,_e=ie[2]/100,Ce=Math.floor(le)%6,$e=le-Math.floor(le),xe=255*_e*(1-pe),Ie=255*_e*(1-pe*$e),Ne=255*_e*(1-pe*(1-$e));switch(_e=255*_e,Ce){case 0:return[_e,Ne,xe];case 1:return[Ie,_e,xe];case 2:return[xe,_e,Ne];case 3:return[xe,Ie,_e];case 4:return[Ne,xe,_e];case 5:return[_e,xe,Ie]}},hsv2hsl:function(ie){var le=ie[0],pe=ie[1]/100,_e=ie[2]/100,Ce,$e;return $e=(2-pe)*_e,Ce=pe*_e,Ce/=$e<=1?$e:2-$e,$e/=2,[le,Ce*100,$e*100]},rgb2hex:function(ae,ie,le){return"#"+((256+ae<<8|ie)<<8|le).toString(16).slice(1)},hex2rgb:function(ae){return ae="0x"+ae.slice(1).replace(ae.length>4?ae:/./g,"$&$&")|0,[ae>>16,ae>>8&255,ae&255]}}},function($,oe){$.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function($,oe,ae){var ie=ae(6),le=ae(14);function pe(_e,Ce,$e,xe){return $e===void 0?ie.natural(_e,Ce):xe===void 0?$e:ie.natural(parseInt($e,10),parseInt(xe,10))}$.exports={paragraph:function(_e,Ce){for(var $e=pe(3,7,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.sentence());return xe.join(" ")},cparagraph:function(_e,Ce){for(var $e=pe(3,7,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.csentence());return xe.join("")},sentence:function(_e,Ce){for(var $e=pe(12,18,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.word());return le.capitalize(xe.join(" "))+"."},csentence:function(_e,Ce){for(var $e=pe(12,18,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.cword());return xe.join("")+"。"},word:function(_e,Ce){for(var $e=pe(3,10,_e,Ce),xe="",Ie=0;Ie<$e;Ie++)xe+=ie.character("lower");return xe},cword:function(_e,Ce,$e){var xe="的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞",Ie;switch(arguments.length){case 0:_e=xe,Ie=1;break;case 1:typeof arguments[0]=="string"?Ie=1:(Ie=_e,_e=xe);break;case 2:typeof arguments[0]=="string"?Ie=Ce:(Ie=this.natural(_e,Ce),_e=xe);break;case 3:Ie=this.natural(Ce,$e);break}for(var Ne="",Fe=0;Fe1&&(pe=[].slice.call(arguments,0));var _e=le.options,Ce=_e.context.templatePath.join("."),$e=le.cache[Ce]=le.cache[Ce]||{index:0,array:pe};return $e.array[$e.index++%$e.array.length]}}},function($,oe){$.exports={first:function(){var ae=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(ae)},last:function(){var ae=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(ae)},name:function(ae){return this.first()+" "+(ae?this.first()+" ":"")+this.last()},cfirst:function(){var ae="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(ae)},clast:function(){var ae="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(ae)},cname:function(){return this.cfirst()+this.clast()}}},function($,oe){$.exports={url:function(ae,ie){return(ae||this.protocol())+"://"+(ie||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(ae){return this.word()+"."+(ae||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(ae){return this.character("lower")+"."+this.word()+"@"+(ae||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function($,oe,ae){var ie=ae(18),le=["东北","华北","华东","华中","华南","西南","西北"];$.exports={region:function(){return this.pick(le)},province:function(){return this.pick(ie).name},city:function(pe){var _e=this.pick(ie),Ce=this.pick(_e.children);return pe?[_e.name,Ce.name].join(" "):Ce.name},county:function(pe){var _e=this.pick(ie),Ce=this.pick(_e.children),$e=this.pick(Ce.children)||{name:"-"};return pe?[_e.name,Ce.name,$e.name].join(" "):$e.name},zip:function(pe){for(var _e="",Ce=0;Ce<(pe||6);Ce++)_e+=this.natural(0,9);return _e}}},function($,oe){var ae={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function ie(pe){for(var _e={},Ce=0,$e;Ceno;no++)so=wn.charAt(no),so===` +`?(Nr.seenCR||Nr.line++,Nr.column=1,Nr.seenCR=!1):so==="\r"||so==="\u2028"||so==="\u2029"?(Nr.line++,Nr.column=1,Nr.seenCR=!0):(Nr.column++,Nr.seenCR=!1)}return io!==Dn&&(io>Dn&&(io=0,yo={line:1,column:1,seenCR:!1}),Wn(yo,io,Dn),io=Dn),yo}function An(Dn){po>or||(or>po&&(po=or,ho=[]),ho.push(Dn))}function On(Dn){var Wn=0;for(Dn.sort();Wnor?(Nr=wn.charAt(or),or++):(Nr=null,zr===0&&An(Wo)),Nr!==null?(Kr=Dn,Wn=Oi(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}function Mr(){var Dn,Wn,Nr;return Dn=or,wn.charCodeAt(or)===92?(Wn=Ko,or++):(Wn=null,zr===0&&An(Yo)),Wn!==null?(Ii.test(wn.charAt(or))?(Nr=wn.charAt(or),or++):(Nr=null,zr===0&&An(Ni)),Nr!==null?(Kr=Dn,Wn=Mi(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}function Ur(){var Dn,Wn,Nr,Gr;if(Dn=or,wn.substr(or,2)===uo?(Wn=uo,or+=2):(Wn=null,zr===0&&An(qo)),Wn!==null){if(Nr=[],Zo.test(wn.charAt(or))?(Gr=wn.charAt(or),or++):(Gr=null,zr===0&&An(Xo)),Gr!==null)for(;Gr!==null;)Nr.push(Gr),Zo.test(wn.charAt(or))?(Gr=wn.charAt(or),or++):(Gr=null,zr===0&&An(Xo));else Nr=Fr;Nr!==null?(Kr=Dn,Wn=Ri(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)}else or=Dn,Dn=Fr;return Dn}function jr(){var Dn,Wn,Nr,Gr;if(Dn=or,wn.substr(or,2)===Jo?(Wn=Jo,or+=2):(Wn=null,zr===0&&An(Di)),Wn!==null){if(Nr=[],co.test(wn.charAt(or))?(Gr=wn.charAt(or),or++):(Gr=null,zr===0&&An(fo)),Gr!==null)for(;Gr!==null;)Nr.push(Gr),co.test(wn.charAt(or))?(Gr=wn.charAt(or),or++):(Gr=null,zr===0&&An(fo));else Nr=Fr;Nr!==null?(Kr=Dn,Wn=Li(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)}else or=Dn,Dn=Fr;return Dn}function Wr(){var Dn,Wn,Nr,Gr;if(Dn=or,wn.substr(or,2)===Qo?(Wn=Qo,or+=2):(Wn=null,zr===0&&An(Bi)),Wn!==null){if(Nr=[],co.test(wn.charAt(or))?(Gr=wn.charAt(or),or++):(Gr=null,zr===0&&An(fo)),Gr!==null)for(;Gr!==null;)Nr.push(Gr),co.test(wn.charAt(or))?(Gr=wn.charAt(or),or++):(Gr=null,zr===0&&An(fo));else Nr=Fr;Nr!==null?(Kr=Dn,Wn=Vi(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)}else or=Dn,Dn=Fr;return Dn}function Xr(){var Dn,Wn;return Dn=or,wn.substr(or,2)===uo?(Wn=uo,or+=2):(Wn=null,zr===0&&An(qo)),Wn!==null&&(Kr=Dn,Wn=Fi()),Wn===null&&(or=Dn),Dn=Wn,Dn}function Qr(){var Dn,Wn,Nr;return Dn=or,wn.charCodeAt(or)===92?(Wn=Ko,or++):(Wn=null,zr===0&&An(Yo)),Wn!==null?(wn.length>or?(Nr=wn.charAt(or),or++):(Nr=null,zr===0&&An(Wo)),Nr!==null?(Kr=Dn,Wn=go(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}var Ar,Dr=arguments.length>1?arguments[1]:{},Yr={regexp:Nn},qr=Nn,Fr=null,eo="",ro="|",ta='"|"',na=function(Dn,Wn){return Wn?new ie(Dn,Wn[1]):Dn},ra=function(Dn,Wn,Nr){return new le([Dn].concat(Wn).concat([Nr]))},bo="^",So='"^"',oa=function(){return new ae("start")},aa="$",ia='"$"',sa=function(){return new ae("end")},la=function(Dn,Wn){return new Ce(Dn,Wn)},ua="Quantifier",da=function(Dn,Wn){return Wn&&(Dn.greedy=!1),Dn},mo="{",vo='"{"',fa=",",pa='","',Co="}",Eo='"}"',ha=function(Dn,Wn){return new $e(Dn,Wn)},$o=",}",ma='",}"',va=function(Dn){return new $e(Dn,1/0)},ga=function(Dn){return new $e(Dn,Dn)},ya="+",ba='"+"',Sa=function(){return new $e(1,1/0)},Ca="*",Ea='"*"',$a=function(){return new $e(0,1/0)},wo="?",To='"?"',wa=function(){return new $e(0,1)},xo=/^[0-9]/,Po="[0-9]",Ta=function(Dn){return+Dn.join("")},xa="(",Pa='"("',ka=")",Aa='")"',Oa=function(Dn){return Dn},Ia=function(Dn){return new _e(Dn)},ko="?:",Na='"?:"',Ma=function(Dn){return new pe("non-capture-group",Dn)},Ao="?=",Ra='"?="',Da=function(Dn){return new pe("positive-lookahead",Dn)},Oo="?!",La='"?!"',Ba=function(Dn){return new pe("negative-lookahead",Dn)},Va="CharacterSet",Fa="[",za='"["',Ha="]",Ua='"]"',ja=function(Dn,Wn){return new xe(!!Dn,Wn)},Ga="CharacterRange",Wa="-",Ka='"-"',Ya=function(Dn,Wn){return new Ie(Dn,Wn)},qa="Character",Za=/^[^\\\]]/,Xa="[^\\\\\\]]",go=function(Dn){return new Ne(Dn)},Ja=".",Qa='"."',ei=function(){return new ae("any-character")},ti="Literal",ni=/^[^|\\\/.[()?+*$\^]/,ri="[^|\\\\\\/.[()?+*$\\^]",lo="\\b",Io='"\\\\b"',oi=function(){return new ae("backspace")},ai=function(){return new ae("word-boundary")},No="\\B",ii='"\\\\B"',si=function(){return new ae("non-word-boundary")},Mo="\\d",li='"\\\\d"',ui=function(){return new ae("digit")},Ro="\\D",ci='"\\\\D"',di=function(){return new ae("non-digit")},Do="\\f",fi='"\\\\f"',pi=function(){return new ae("form-feed")},Lo="\\n",hi='"\\\\n"',mi=function(){return new ae("line-feed")},Bo="\\r",vi='"\\\\r"',gi=function(){return new ae("carriage-return")},Vo="\\s",yi='"\\\\s"',_i=function(){return new ae("white-space")},Fo="\\S",bi='"\\\\S"',Si=function(){return new ae("non-white-space")},zo="\\t",Ci='"\\\\t"',Ei=function(){return new ae("tab")},Ho="\\v",$i='"\\\\v"',wi=function(){return new ae("vertical-tab")},Uo="\\w",Ti='"\\\\w"',xi=function(){return new ae("word")},jo="\\W",Pi='"\\\\W"',ki=function(){return new ae("non-word")},Go="\\c",Ai='"\\\\c"',Wo="any character",Oi=function(Dn){return new hn(Dn)},Ko="\\",Yo='"\\\\"',Ii=/^[1-9]/,Ni="[1-9]",Mi=function(Dn){return new Lt(Dn)},uo="\\0",qo='"\\\\0"',Zo=/^[0-7]/,Xo="[0-7]",Ri=function(Dn){return new At(Dn.join(""))},Jo="\\x",Di='"\\\\x"',co=/^[0-9a-fA-F]/,fo="[0-9a-fA-F]",Li=function(Dn){return new ze(Dn.join(""))},Qo="\\u",Bi='"\\\\u"',Vi=function(Dn){return new Fe(Dn.join(""))},Fi=function(){return new ae("null-character")},or=0,Kr=0,io=0,yo={line:1,column:1,seenCR:!1},po=0,ho=[],zr=0;if("startRule"in Dr){if(!(Dr.startRule in Yr))throw new Error(`Can't start parsing from rule "`+Dr.startRule+'".');qr=Yr[Dr.startRule]}if(ae.offset=xn,ae.text=Tn,Ar=qr(),Ar!==null&&or===wn.length)return Ar;throw On(ho),Kr=Math.max(or,po),new En(ho,KrFe)return!0;var Lt={path:Ie,type:xe,actual:Ne,expected:Fe,action:"is greater than",message:At};return Lt.message=$e.message(Lt),ze.push(Lt),!1},lessThan:function(xe,Ie,Ne,Fe,ze,At){if(Ne=Fe)return!0;var Lt={path:Ie,type:xe,actual:Ne,expected:Fe,action:"is greater than or equal to",message:At};return Lt.message=$e.message(Lt),ze.push(Lt),!1},lessThanOrEqualTo:function(xe,Ie,Ne,Fe,ze,At){if(Ne<=Fe)return!0;var Lt={path:Ie,type:xe,actual:Ne,expected:Fe,action:"is less than or equal to",message:At};return Lt.message=$e.message(Lt),ze.push(Lt),!1}};_e.Diff=Ce,_e.Assert=$e,$.exports=_e},function($,oe,ae){$.exports=ae(28)},function($,oe,ae){var ie=ae(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(At,Lt,hn,vn){var _n=document.createEvent("CustomEvent");return _n.initCustomEvent(At,Lt,hn,vn),_n}}var le={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},pe="readystatechange loadstart progress abort error load timeout loadend".split(" "),_e="timeout withCredentials".split(" "),Ce="readyState responseURL status statusText responseType response responseText responseXML".split(" "),$e={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function xe(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}xe._settings={timeout:"10-100"},xe.setup=function(ze){return ie.extend(xe._settings,ze),xe._settings},ie.extend(xe,le),ie.extend(xe.prototype,le),xe.prototype.mock=!0,xe.prototype.match=!1,ie.extend(xe.prototype,{open:function(ze,At,Lt,hn,vn){var _n=this;ie.extend(this.custom,{method:ze,url:At,async:typeof Lt=="boolean"?Lt:!0,username:hn,password:vn,options:{url:At,type:ze}}),this.custom.timeout=function(Tn){if(typeof Tn=="number")return Tn;if(typeof Tn=="string"&&!~Tn.indexOf("-"))return parseInt(Tn,10);if(typeof Tn=="string"&&~Tn.indexOf("-")){var xn=Tn.split("-"),kn=parseInt(xn[0],10),An=parseInt(xn[1],10);return Math.round(Math.random()*(An-kn))+kn}}(xe._settings.timeout);var bn=Ne(this.custom.options);function Cn(Tn){for(var xn=0;xn=48&&_e<=57||_e>=65&&_e<=90||_e>=97&&_e<=122||_e===95){le+=$[pe++];continue}break}if(!le)throw new TypeError("Missing parameter name at ".concat(ae));oe.push({type:"NAME",index:ae,value:le}),ae=pe;continue}if(ie==="("){var Ce=1,$e="",pe=ae+1;if($[pe]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(pe));for(;pe<$.length;){if($[pe]==="\\"){$e+=$[pe++]+$[pe++];continue}if($[pe]===")"){if(Ce--,Ce===0){pe++;break}}else if($[pe]==="("&&(Ce++,$[pe+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(pe));$e+=$[pe++]}if(Ce)throw new TypeError("Unbalanced pattern at ".concat(ae));if(!$e)throw new TypeError("Missing pattern at ".concat(ae));oe.push({type:"PATTERN",index:ae,value:$e}),ae=pe;continue}oe.push({type:"CHAR",index:ae,value:$[ae++]})}return oe.push({type:"END",index:ae,value:""}),oe}function parse($,oe){oe===void 0&&(oe={});for(var ae=lexer($),ie=oe.prefixes,le=ie===void 0?"./":ie,pe="[^".concat(escapeString(oe.delimiter||"/#?"),"]+?"),_e=[],Ce=0,$e=0,xe="",Ie=function($n){if($e)?(?!\?)/g,ie=0,le=ae.exec($.source);le;)oe.push({name:le[1]||ie++,prefix:"",suffix:"",modifier:"",pattern:""}),le=ae.exec($.source);return $}function arrayToRegexp($,oe,ae){var ie=$.map(function(le){return pathToRegexp(le,oe,ae).source});return new RegExp("(?:".concat(ie.join("|"),")"),flags(ae))}function stringToRegexp($,oe,ae){return tokensToRegexp(parse($,ae),oe,ae)}function tokensToRegexp($,oe,ae){ae===void 0&&(ae={});for(var ie=ae.strict,le=ie===void 0?!1:ie,pe=ae.start,_e=pe===void 0?!0:pe,Ce=ae.end,$e=Ce===void 0?!0:Ce,xe=ae.encode,Ie=xe===void 0?function(kn){return kn}:xe,Ne=ae.delimiter,Fe=Ne===void 0?"/#?":Ne,ze=ae.endsWith,At=ze===void 0?"":ze,Lt="[".concat(escapeString(At),"]|$"),hn="[".concat(escapeString(Fe),"]"),vn=_e?"^":"",_n=0,bn=$;_n-1:Tn===void 0;le||(vn+="(?:".concat(hn,"(?=").concat(Lt,"))?")),xn||(vn+="(?=".concat(hn,"|").concat(Lt,")"))}return new RegExp(vn,flags(ae))}function pathToRegexp($,oe,ae){return $ instanceof RegExp?regexpToRegexp($,oe):Array.isArray($)?arrayToRegexp($,oe,ae):stringToRegexp($,oe,ae)}const Mock=mockJs;function createProdMockServer($){Mock.XHR.prototype.__send=Mock.XHR.prototype.send,Mock.XHR.prototype.send=function(){if(this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.custom.requestHeaders){const oe={};for(let ae in this.custom.requestHeaders)oe[ae.toString().toLowerCase()]=this.custom.requestHeaders[ae];this.custom.options=Object.assign({},this.custom.options,{headers:oe})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let oe=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&oe&&(this.custom.xhr.responseType=oe)};for(const{url:oe,method:ae,response:ie,timeout:le}of $)__setupMock__(le),Mock.mock(pathToRegexp(oe,void 0,{end:!1}),ae||"get",__XHR2ExpressReqWrapper__(ie))}function __param2Obj__($){const oe=$.split("?")[1];return oe?JSON.parse('{"'+decodeURIComponent(oe).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__($){return function(oe){let ae=null;if(typeof $=="function"){const{body:ie,type:le,url:pe,headers:_e}=oe;let Ce=ie;try{Ce=JSON.parse(ie)}catch{}ae=$({method:le,body:Ce,query:__param2Obj__(pe),headers:_e})}else ae=$;return Mock.mock(ae)}}function __setupMock__($=0){$&&Mock.setup({timeout:$})}const modules=Object.assign({"../mock/asyncRoutes.ts":__vite_glob_0_0,"../mock/list.ts":__vite_glob_0_1,"../mock/login.ts":__vite_glob_0_2,"../mock/map.ts":__vite_glob_0_3,"../mock/refreshToken.ts":__vite_glob_0_4,"../mock/system.ts":__vite_glob_0_5}),mockModules=[];Object.keys(modules).forEach($=>{mockModules.push(...modules[$].default)});function setupProdMockServer(){createProdMockServer(mockModules)}const app=createApp(App);Object.keys(directives).forEach($=>{app.directive($,directives[$])});app.component("IconifyIconOffline",IconifyIconOffline);app.component("IconifyIconOnline",IconifyIconOnline);app.component("FontIcon",FontIcon);app.component("Auth",Auth);getServerConfig(app).then(async $=>{app.use(router),await router.isReady(),injectResponsiveStorage(app,$),setupStore(app),app.use(MotionPlugin).use(useI18n).use(installer).use(Se).use(I).use(useEcharts),app.mount("#app")});setupProdMockServer();export{ElInfiniteScroll as $,normalizeStyle$1 as A,markRaw as B,toDisplayString$1 as C,usePermissionStoreHook as D,extractPathList as E,Fragment as F,transformI18n as G,deleteChildren as H,In as I,Je as J,Ke as K,h$3 as L,ut as M,Et as N,getDefaultExportFromCjs as O,Pn as P,resolveDynamicComponent as Q,Hn as R,Sn as S,onUpdated as T,provide as U,onBeforeUpdate as V,normalizeProps as W,guardReactiveProps as X,useI18n$1 as Y,commonjsGlobal as Z,_export_sfc as _,onMounted as a,useRouter as a$,addDialog as a0,closeDialog as a1,closeAllDialog as a2,hot as a3,Ln as a4,http as a5,getCurrentInstance as a6,reactive as a7,onBeforeMount as a8,onUnmounted as a9,S as aA,withScopeId as aB,shallowReactive as aC,mergeProps as aD,toHandlers as aE,getAugmentedNamespace as aF,vue_runtime_esmBundler as aG,isVNode$1 as aH,customRef as aI,isClient$1 as aJ,noop$5 as aK,toValue as aL,tryOnScopeDispose$1 as aM,isIOS as aN,watchEffect as aO,toRef as aP,Teleport as aQ,inject as aR,isRef as aS,createApp as aT,withKeys as aU,shallowRef as aV,toRaw as aW,createStaticVNode as aX,withModifiers as aY,useRoute as aZ,addIcon$1 as a_,TransitionGroup as aa,normalizeClass as ab,vShow as ac,vr as ad,createCommentVNode as ae,pt as af,Ve as ag,qe as ah,Xe as ai,tryOnMounted as aj,tryOnUnmounted$1 as ak,renderSlot as al,useDebounceFn as am,Br as an,Zr as ao,useIntervalFn as ap,D$1 as aq,defineStore as ar,Kn as as,responsiveStorageNameSpace as at,getConfig as au,store as av,FontIcon as aw,IconifyIconOffline as ax,IconifyIconOnline as ay,ElMessage as az,onBeforeUnmount as b,getParentPaths as b0,findRouteByPath as b1,useMultiTagsStoreHook as b2,Mt as b3,$t as b4,Ae as b5,j$2 as b6,getTopMenu as b7,emitter as b8,Transition as b9,wr as bA,appendFieldByUniqueId as bB,getNodeByUniqueId as bC,handleAliveRoute as ba,P$1 as bb,routerArrays as bc,Ct as bd,KeepAlive as be,removeToken as bf,Qn as bg,resetRouter as bh,useMultiTagsStore as bi,storeToRefs as bj,useUserStoreHook as bk,router as bl,remainingPaths as bm,cloneVNode as bn,dayjs as bo,tn as bp,LinearGradient$1 as bq,ElMessageBox as br,render$4 as bs,Ue as bt,initRouter as bu,getAuths as bv,hasAuth as bw,Be as bx,ElCol as by,handleTree as bz,resolveComponent as c,defineComponent as d,createBlock as e,openBlock as f,createVNode as g,createTextVNode as h,createBaseVNode as i,resolveDirective as j,createElementBlock as k,renderList as l,withDirectives as m,nextTick as n,oo as o,pushScopeId as p,popScopeId as q,ref as r,axios$1 as s,_t as t,unref as u,toRef$1 as v,withCtx as w,computed as x,watch as y,zt as z}; diff --git a/dist/static/js/index-10e75e7a.js b/dist/static/js/index-10e75e7a.js new file mode 100644 index 000000000..eacd1861c --- /dev/null +++ b/dist/static/js/index-10e75e7a.js @@ -0,0 +1 @@ +import{T as s}from"./index-24d2e7bb.js";import{d as o,c as n,e as r,w as e,f as c,g as d,u as _,i as a}from"./index-0dd8d5e4.js";const p=a("div",{class:"card-header"},[a("span",{class:"font-medium"}," 打字机组件 ")],-1),h=o({name:"Typeit",__name:"index",setup(m){return(i,l)=>{const t=n("el-card");return c(),r(t,{shadow:"never"},{header:e(()=>[p]),default:e(()=>[d(_(s),{values:["test1","test2","test3"]})]),_:1})}}});export{h as default}; diff --git a/dist/static/js/index-1245da83.js b/dist/static/js/index-1245da83.js deleted file mode 100644 index da898399a..000000000 --- a/dist/static/js/index-1245da83.js +++ /dev/null @@ -1 +0,0 @@ -import{t as z}from"./index-f1e7ee6d.js";import{l as de,m as me,n as pe,H as he,_ as ve}from"./index-c61a73ff.js";const we=()=>{window.cancelAnimationFrame=(()=>window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(r){return window.clearTimeout(r)})(),window.requestAnimationFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(r){return window.setTimeout(r,1e3/60)}}()},ye=(r,c)=>{if(r===c)return!0;if(r.length!==c.length)return!1;for(let l=0;lVue.unref(e)<0),R=Vue.computed(()=>Math.abs(Vue.unref(e))({step:1,limitMoveNum:5,hoverStop:!0,direction:"top",openTouch:!0,singleHeight:0,singleWidth:0,waitTime:1e3,switchOffset:30,autoPlay:!0,navigation:!1,switchSingleStep:134,switchDelay:400,switchDisabledClass:"disabled",isSingleRemUnit:!1})),u=Vue.computed(()=>p({},Vue.unref(G),d)),J=Vue.computed(()=>Vue.unref(q)?"":Vue.unref(u).switchDisabledClass),K=Vue.computed(()=>Vue.unref(R)?"":Vue.unref(u).switchDisabledClass),Q=Vue.computed(()=>({position:"absolute",margin:`${Vue.unref(h)/2}px 0 0 -${Vue.unref(u).switchOffset}px`,transform:"translate(-100%,-50%)"})),Z=Vue.computed(()=>({position:"absolute",margin:`${Vue.unref(h)/2}px 0 0 ${Vue.unref(a)+Vue.unref(u).switchOffset}px`,transform:"translateY(-50%)"})),A=Vue.computed(()=>Vue.unref(u).direction!=="bottom"&&Vue.unref(u).direction!=="top"),W=Vue.computed(()=>Vue.unref(A)?{float:"left",overflow:"hidden"}:{overflow:"hidden"}),ee=Vue.computed(()=>({transform:`translate(${Vue.unref(e)}px,${Vue.unref(t)}px)`,transition:`all ${T} ${Vue.unref(f)}ms`,overflow:"hidden"})),E=Vue.computed(()=>Vue.unref(u).navigation),M=Vue.computed(()=>Vue.unref(E)?!1:Vue.unref(u).autoPlay),L=Vue.computed(()=>s.data.length>=Vue.unref(u).limitMoveNum),I=Vue.computed(()=>Vue.unref(u).hoverStop&&Vue.unref(M)&&Vue.unref(L)),N=Vue.computed(()=>Vue.unref(u).openTouch),Y=Vue.computed(()=>Vue.unref(u).isSingleRemUnit?parseInt(window.getComputedStyle(document.documentElement,null).fontSize):1),F=Vue.computed(()=>Vue.unref(u).singleWidth*Vue.unref(Y)),$=Vue.computed(()=>Vue.unref(u).singleHeight*Vue.unref(Y)),w=Vue.computed(()=>{let n;const o=Vue.unref(u).step;if(Vue.unref(A)?n=Vue.unref(F):n=Vue.unref($),n>0&&n%o>0)throw"如果设置了单步滚动,step需是单步大小的约数,否则无法保证单步滚动结束的位置是否准确";return o});function te(){e.value=0,t.value=0,S(),U()}function ne(){if(Vue.unref(q)){if(Math.abs(Vue.unref(e)){S()},m+20)):S()}function re(n){if(!Vue.unref(N)||n.targetTouches.length>1||n.scale&&n.scale!==1)return;const o=n.targetTouches[0],{direction:i}=Vue.unref(u),m={x:o.pageX-C.x,y:o.pageY-C.y};n.preventDefault();const _=Math.abs(m.x)0&&(t.value=0);else if(o==="bottom"){const i=Vue.unref(b)/2*-1;Vue.unref(t)0&&(e.value=0);else if(o==="right"){const i=Vue.unref(v)*-1;Vue.unref(e){f.value=0,y()},Vue.unref(f))}function ie(){Vue.unref(I)&&ce()}function se(){Vue.unref(I)&&ae()}function y(){x||(B=requestAnimationFrame(function(){const n=Vue.unref(b)/2,o=Vue.unref(v)/2,{direction:i,waitTime:m}=Vue.unref(u);i==="top"?(Math.abs(Vue.unref(t))>=n&&(l("scrollEnd"),t.value=0),t.value-=w.value):i==="bottom"?(Vue.unref(t)>=0&&(l("scrollEnd"),t.value=n*-1),t.value+=w.value):i==="left"?(Math.abs(Vue.unref(e))>=o&&(l("scrollEnd"),e.value=0),e.value-=w.value):i==="right"&&(Vue.unref(e)>=0&&(l("scrollEnd"),e.value=o*-1),e.value+=w.value),g&&clearTimeout(g),Vue.unref($)?Math.abs(Vue.unref(t))%Vue.unref($){y()},m):y():Vue.unref(F)&&Math.abs(Vue.unref(e))%Vue.unref(F){y()},m):y()}))}function U(){Vue.nextTick(()=>{const{switchDelay:n}=Vue.unref(u);if(k.value="",Vue.unref(A)){h.value=Vue.unref(P).offsetHeight,a.value=Vue.unref(P).offsetWidth;let o=Vue.unref(j).offsetWidth;Vue.unref(M)&&(o=o*2+1),Vue.unref(D).style.width=o+"px",v.value=o}if(Vue.unref(M))T="ease-in",f.value=0;else{T="linear",f.value=n;return}Vue.unref(L)?(k.value=Vue.unref(j).innerHTML,setTimeout(()=>{var o;b.value=(o=Vue.unref(D))==null?void 0:o.offsetHeight,y()},0)):(S(),t.value=e.value=0)})}function ae(){x=!1,y()}function ce(){x=!0,g&&clearTimeout(g),S()}function fe(n){Vue.unref(u).direction==="left"||Vue.unref(u).direction==="right"||pe(()=>{n.deltaY>0?t.value-=w.value:t.value+=w.value},50)()}return de(()=>{U()}),me(()=>{S(),clearTimeout(g)}),c({reset:te}),(n,o)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref:"wrap"+Vue.unref(d).key},[E.value?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,style:Vue.normalizeStyle(Q.value),class:Vue.normalizeClass(J.value),onClick:ne},[Vue.renderSlot(n.$slots,"left-switch")],6)):Vue.createCommentVNode("",!0),E.value?(Vue.openBlock(),Vue.createElementBlock("div",{key:1,style:Vue.normalizeStyle(Z.value),class:Vue.normalizeClass(K.value),onClick:ue},[Vue.renderSlot(n.$slots,"right-switch")],6)):Vue.createCommentVNode("",!0),Vue.createElementVNode("div",{ref:"realBox"+Vue.unref(d).key,style:Vue.normalizeStyle(ee.value),onMouseenter:ie,onMouseleave:se,onTouchstartPassive:oe,onTouchmovePassive:re,onTouchend:le,onMousewheelPassive:fe},[Vue.createElementVNode("div",{ref:"slotList"+Vue.unref(d).key,style:Vue.normalizeStyle(W.value)},[Vue.renderSlot(n.$slots,"default")],4),Vue.createElementVNode("div",{innerHTML:k.value,style:Vue.normalizeStyle(W.value)},null,12,Se)],36)],512))}}),be=he(_e),ke=be,Ce=r=>(Vue.pushScopeId("data-v-28c9d5d1"),r=r(),Vue.popScopeId(),r),xe={class:"card-header"},Te=Ce(()=>Vue.createElementVNode("span",null,"无缝滚动示例",-1)),Ae={class:"item"},Ee=["textContent"],Me=Vue.defineComponent({name:"SeamlessScroll",__name:"index",setup(r){const c=Vue.ref(),l=Vue.ref([{title:"无缝滚动第一行无缝滚动第一行!!!!!!!!!!"},{title:"无缝滚动第二行无缝滚动第二行!!!!!!!!!!"},{title:"无缝滚动第三行无缝滚动第三行!!!!!!!!!!"},{title:"无缝滚动第四行无缝滚动第四行!!!!!!!!!!"},{title:"无缝滚动第五行无缝滚动第五行!!!!!!!!!!"},{title:"无缝滚动第六行无缝滚动第六行!!!!!!!!!!"},{title:"无缝滚动第七行无缝滚动第七行!!!!!!!!!!"},{title:"无缝滚动第八行无缝滚动第八行!!!!!!!!!!"},{title:"无缝滚动第九行无缝滚动第九行!!!!!!!!!!"}]),s=Vue.reactive({direction:"top"});function V(p){Vue.unref(c).reset(),Vue.unref(s).direction=p}return(p,e)=>{const t=Vue.resolveComponent("el-button"),f=Vue.resolveComponent("el-card"),h=Vue.resolveComponent("el-space");return Vue.openBlock(),Vue.createBlock(h,{wrap:""},{default:Vue.withCtx(()=>[Vue.createVNode(f,{class:"box-card",shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",xe,[Te,Vue.createVNode(t,{class:"button",link:"",type:"primary",onClick:e[0]||(e[0]=a=>V("top"))},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:Vue.normalizeStyle({color:s.direction==="top"?"red":""})}," 向上滚动 ",4)]),_:1}),Vue.createVNode(t,{class:"button",link:"",type:"primary",onClick:e[1]||(e[1]=a=>V("bottom"))},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:Vue.normalizeStyle({color:s.direction==="bottom"?"red":""})}," 向下滚动 ",4)]),_:1}),Vue.createVNode(t,{class:"button",link:"",type:"primary",onClick:e[2]||(e[2]=a=>V("left"))},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:Vue.normalizeStyle({color:s.direction==="left"?"red":""})}," 向左滚动 ",4)]),_:1}),Vue.createVNode(t,{class:"button",link:"",type:"primary",onClick:e[3]||(e[3]=a=>V("right"))},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",{style:Vue.normalizeStyle({color:s.direction==="right"?"red":""})}," 向右滚动 ",4)]),_:1})])]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ke),{ref_key:"scroll",ref:c,data:l.value,"class-option":s,class:"warp"},{default:Vue.withCtx(()=>[Vue.createElementVNode("ul",Ae,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(l.value,(a,v)=>(Vue.openBlock(),Vue.createElementBlock("li",{key:v},[Vue.createElementVNode("span",{class:"title",textContent:Vue.toDisplayString(a.title)},null,8,Ee)]))),128))])]),_:1},8,["data","class-option"])]),_:1})]),_:1})}}});const $e=ve(Me,[["__scopeId","data-v-28c9d5d1"]]);export{$e as default}; diff --git a/dist/static/js/index-159573b9.js b/dist/static/js/index-159573b9.js new file mode 100644 index 000000000..852168451 --- /dev/null +++ b/dist/static/js/index-159573b9.js @@ -0,0 +1,10 @@ +import{d as he,r as J,x as Wt,a as Oe,n as ce,g as ot,ad as Ne,F as Se,u as xt,R as Re,c as Ut,e as Ae,w as vt,f as wt,i as Dt,k as jt,ae as Vt,h as _e,C as Ie,p as ke,q as Be,_ as Le}from"./index-0dd8d5e4.js";/*! + * Cropper.js v1.5.13 + * https://fengyuanchen.github.io/cropperjs + * + * Copyright 2015-present Chen Fengyuan + * Released under the MIT license + * + * Date: 2022-11-20T05:30:46.114Z + */function $t(a,t){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);t&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable})),i.push.apply(i,e)}return i}function le(a){for(var t=1;ta.length)&&(t=a.length);for(var i=0,e=new Array(t);i
',Je=Number.isNaN||z.isNaN;function u(a){return typeof a=="number"&&!Je(a)}var ne=function(t){return t>0&&t<1/0};function bt(a){return typeof a>"u"}function F(a){return Et(a)==="object"&&a!==null}var ti=Object.prototype.hasOwnProperty;function Q(a){if(!F(a))return!1;try{var t=a.constructor,i=t.prototype;return t&&i&&ti.call(i,"isPrototypeOf")}catch{return!1}}function S(a){return typeof a=="function"}var ei=Array.prototype.slice;function be(a){return Array.from?Array.from(a):ei.call(a)}function E(a,t){return a&&S(t)&&(Array.isArray(a)||u(a.length)?be(a).forEach(function(i,e){t.call(a,i,e,a)}):F(a)&&Object.keys(a).forEach(function(i){t.call(a,a[i],i,a)})),a}var x=Object.assign||function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),o=1;o0&&e.forEach(function(r){F(r)&&Object.keys(r).forEach(function(n){t[n]=r[n]})}),t},ii=/\.\d*(?:0|9){12}\d*$/;function tt(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return ii.test(a)?Math.round(a*t)/t:a}var ai=/^width|height|left|top|marginLeft|marginTop$/;function W(a,t){var i=a.style;E(t,function(e,o){ai.test(o)&&u(e)&&(e="".concat(e,"px")),i[o]=e})}function ri(a,t){return a.classList?a.classList.contains(t):a.className.indexOf(t)>-1}function O(a,t){if(t){if(u(a.length)){E(a,function(e){O(e,t)});return}if(a.classList){a.classList.add(t);return}var i=a.className.trim();i?i.indexOf(t)<0&&(a.className="".concat(i," ").concat(t)):a.className=t}}function L(a,t){if(t){if(u(a.length)){E(a,function(i){L(i,t)});return}if(a.classList){a.classList.remove(t);return}a.className.indexOf(t)>=0&&(a.className=a.className.replace(t,""))}}function Z(a,t,i){if(t){if(u(a.length)){E(a,function(e){Z(e,t,i)});return}i?O(a,t):L(a,t)}}var ni=/([a-z\d])([A-Z])/g;function zt(a){return a.replace(ni,"$1-$2").toLowerCase()}function _t(a,t){return F(a[t])?a[t]:a.dataset?a.dataset[t]:a.getAttribute("data-".concat(zt(t)))}function ct(a,t,i){F(i)?a[t]=i:a.dataset?a.dataset[t]=i:a.setAttribute("data-".concat(zt(t)),i)}function oi(a,t){if(F(a[t]))try{delete a[t]}catch{a[t]=void 0}else if(a.dataset)try{delete a.dataset[t]}catch{a.dataset[t]=void 0}else a.removeAttribute("data-".concat(zt(t)))}var ye=/\s\s*/,xe=function(){var a=!1;if(ut){var t=!1,i=function(){},e=Object.defineProperty({},"once",{get:function(){return a=!0,t},set:function(r){t=r}});z.addEventListener("test",i,e),z.removeEventListener("test",i,e)}return a}();function k(a,t,i){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=i;t.trim().split(ye).forEach(function(r){if(!xe){var n=a.listeners;n&&n[r]&&n[r][i]&&(o=n[r][i],delete n[r][i],Object.keys(n[r]).length===0&&delete n[r],Object.keys(n).length===0&&delete a.listeners)}a.removeEventListener(r,o,e)})}function I(a,t,i){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=i;t.trim().split(ye).forEach(function(r){if(e.once&&!xe){var n=a.listeners,s=n===void 0?{}:n;o=function(){delete s[r][i],a.removeEventListener(r,o,e);for(var l=arguments.length,h=new Array(l),c=0;cMath.abs(i)&&(i=p)})}),i}function pt(a,t){var i=a.pageX,e=a.pageY,o={endX:i,endY:e};return t?o:le({startX:i,startY:e},o)}function ci(a){var t=0,i=0,e=0;return E(a,function(o){var r=o.startX,n=o.startY;t+=r,i+=n,e+=1}),t/=e,i/=e,{pageX:t,pageY:i}}function U(a){var t=a.aspectRatio,i=a.height,e=a.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",r=ne(e),n=ne(i);if(r&&n){var s=i*t;o==="contain"&&s>e||o==="cover"&&s90?{width:f,height:s}:{width:s,height:f}}function fi(a,t,i,e){var o=t.aspectRatio,r=t.naturalWidth,n=t.naturalHeight,s=t.rotate,f=s===void 0?0:s,l=t.scaleX,h=l===void 0?1:l,c=t.scaleY,p=c===void 0?1:c,m=i.aspectRatio,g=i.naturalWidth,b=i.naturalHeight,v=e.fillColor,M=v===void 0?"transparent":v,T=e.imageSmoothingEnabled,D=T===void 0?!0:T,P=e.imageSmoothingQuality,A=P===void 0?"low":P,d=e.maxWidth,w=d===void 0?1/0:d,C=e.maxHeight,_=C===void 0?1/0:C,Y=e.minWidth,j=Y===void 0?0:Y,V=e.minHeight,X=V===void 0?0:V,B=document.createElement("canvas"),N=B.getContext("2d"),$=U({aspectRatio:m,width:w,height:_}),lt=U({aspectRatio:m,width:j,height:X},"cover"),gt=Math.min($.width,Math.max(lt.width,g)),mt=Math.min($.height,Math.max(lt.height,b)),Pt=U({aspectRatio:o,width:w,height:_}),Yt=U({aspectRatio:o,width:j,height:X},"cover"),Xt=Math.min(Pt.width,Math.max(Yt.width,r)),Ht=Math.min(Pt.height,Math.max(Yt.height,n)),Ce=[-Xt/2,-Ht/2,Xt,Ht];return B.width=tt(gt),B.height=tt(mt),N.fillStyle=M,N.fillRect(0,0,gt,mt),N.save(),N.translate(gt/2,mt/2),N.rotate(f*Math.PI/180),N.scale(h,p),N.imageSmoothingEnabled=D,N.imageSmoothingQuality=A,N.drawImage.apply(N,[a].concat(fe(Ce.map(function(Te){return Math.floor(tt(Te))})))),N.restore(),B}var Ee=String.fromCharCode;function pi(a,t,i){var e="";i+=t;for(var o=t;o0;)i.push(Ee.apply(null,be(o.subarray(0,e)))),o=o.subarray(e);return"data:".concat(t,";base64,").concat(btoa(i.join("")))}function mi(a){var t=new DataView(a),i;try{var e,o,r;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var n=t.byteLength,s=2;s+1=8&&(r=l+c)}}}if(r){var p=t.getUint16(r,e),m,g;for(g=0;g=0?r:ve),height:Math.max(e.offsetHeight,n>=0?n:we)};this.containerData=s,W(o,{width:s.width,height:s.height}),O(t,R),L(o,R)},initCanvas:function(){var t=this.containerData,i=this.imageData,e=this.options.viewMode,o=Math.abs(i.rotate)%180===90,r=o?i.naturalHeight:i.naturalWidth,n=o?i.naturalWidth:i.naturalHeight,s=r/n,f=t.width,l=t.height;t.height*s>t.width?e===3?f=t.height*s:l=t.width/s:e===3?l=t.width/s:f=t.height*s;var h={aspectRatio:s,naturalWidth:r,naturalHeight:n,width:f,height:l};this.canvasData=h,this.limited=e===1||e===2,this.limitCanvas(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.left=(t.width-h.width)/2,h.top=(t.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCanvasData=x({},h)},limitCanvas:function(t,i){var e=this.options,o=this.containerData,r=this.canvasData,n=this.cropBoxData,s=e.viewMode,f=r.aspectRatio,l=this.cropped&&n;if(t){var h=Number(e.minCanvasWidth)||0,c=Number(e.minCanvasHeight)||0;s>1?(h=Math.max(h,o.width),c=Math.max(c,o.height),s===3&&(c*f>h?h=c*f:c=h/f)):s>0&&(h?h=Math.max(h,l?n.width:0):c?c=Math.max(c,l?n.height:0):l&&(h=n.width,c=n.height,c*f>h?h=c*f:c=h/f));var p=U({aspectRatio:f,width:h,height:c});h=p.width,c=p.height,r.minWidth=h,r.minHeight=c,r.maxWidth=1/0,r.maxHeight=1/0}if(i)if(s>(l?0:1)){var m=o.width-r.width,g=o.height-r.height;r.minLeft=Math.min(0,m),r.minTop=Math.min(0,g),r.maxLeft=Math.max(0,m),r.maxTop=Math.max(0,g),l&&this.limited&&(r.minLeft=Math.min(n.left,n.left+(n.width-r.width)),r.minTop=Math.min(n.top,n.top+(n.height-r.height)),r.maxLeft=n.left,r.maxTop=n.top,s===2&&(r.width>=o.width&&(r.minLeft=Math.min(0,m),r.maxLeft=Math.max(0,m)),r.height>=o.height&&(r.minTop=Math.min(0,g),r.maxTop=Math.max(0,g))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=o.width,r.maxTop=o.height},renderCanvas:function(t,i){var e=this.canvasData,o=this.imageData;if(i){var r=li({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),n=r.width,s=r.height,f=e.width*(n/e.naturalWidth),l=e.height*(s/e.naturalHeight);e.left-=(f-e.width)/2,e.top-=(l-e.height)/2,e.width=f,e.height=l,e.aspectRatio=n/s,e.naturalWidth=n,e.naturalHeight=s,this.limitCanvas(!0,!1)}(e.width>e.maxWidth||e.widthe.maxHeight||e.heighti.width?r.height=r.width/e:r.width=r.height*e),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*o),r.height=Math.max(r.minHeight,r.height*o),r.left=i.left+(i.width-r.width)/2,r.top=i.top+(i.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=x({},r)},limitCropBox:function(t,i){var e=this.options,o=this.containerData,r=this.canvasData,n=this.cropBoxData,s=this.limited,f=e.aspectRatio;if(t){var l=Number(e.minCropBoxWidth)||0,h=Number(e.minCropBoxHeight)||0,c=s?Math.min(o.width,r.width,r.width+r.left,o.width-r.left):o.width,p=s?Math.min(o.height,r.height,r.height+r.top,o.height-r.top):o.height;l=Math.min(l,o.width),h=Math.min(h,o.height),f&&(l&&h?h*f>l?h=l/f:l=h*f:l?h=l/f:h&&(l=h*f),p*f>c?p=c/f:c=p*f),n.minWidth=Math.min(l,c),n.minHeight=Math.min(h,p),n.maxWidth=c,n.maxHeight=p}i&&(s?(n.minLeft=Math.max(0,r.left),n.minTop=Math.max(0,r.top),n.maxLeft=Math.min(o.width,r.left+r.width)-n.width,n.maxTop=Math.min(o.height,r.top+r.height)-n.height):(n.minLeft=0,n.minTop=0,n.maxLeft=o.width-n.width,n.maxTop=o.height-n.height))},renderCropBox:function(){var t=this.options,i=this.containerData,e=this.cropBoxData;(e.width>e.maxWidth||e.widthe.maxHeight||e.height=i.width&&e.height>=i.height?de:Bt),W(this.cropBox,x({width:e.width,height:e.height},st({translateX:e.left,translateY:e.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),et(this.element,Ot,this.getData())}},bi={initPreview:function(){var t=this.element,i=this.crossOrigin,e=this.options.preview,o=i?this.crossOriginUrl:this.url,r=t.alt||"The image to preview",n=document.createElement("img");if(i&&(n.crossOrigin=i),n.src=o,n.alt=r,this.viewBox.appendChild(n),this.viewBoxImage=n,!!e){var s=e;typeof e=="string"?s=t.ownerDocument.querySelectorAll(e):e.querySelector&&(s=[e]),this.previews=s,E(s,function(f){var l=document.createElement("img");ct(f,ft,{width:f.offsetWidth,height:f.offsetHeight,html:f.innerHTML}),i&&(l.crossOrigin=i),l.src=o,l.alt=r,l.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',f.innerHTML="",f.appendChild(l)})}},resetPreview:function(){E(this.previews,function(t){var i=_t(t,ft);W(t,{width:i.width,height:i.height}),t.innerHTML=i.html,oi(t,ft)})},preview:function(){var t=this.imageData,i=this.canvasData,e=this.cropBoxData,o=e.width,r=e.height,n=t.width,s=t.height,f=e.left-i.left-t.left,l=e.top-i.top-t.top;!this.cropped||this.disabled||(W(this.viewBoxImage,x({width:n,height:s},st(x({translateX:-f,translateY:-l},t)))),E(this.previews,function(h){var c=_t(h,ft),p=c.width,m=c.height,g=p,b=m,v=1;o&&(v=p/o,b=r*v),r&&b>m&&(v=m/r,g=o*v,b=m),W(h,{width:g,height:b}),W(h.getElementsByTagName("img")[0],x({width:n*v,height:s*v},st(x({translateX:-f*v,translateY:-l*v},t))))}))}},yi={bind:function(){var t=this.element,i=this.options,e=this.cropper;S(i.cropstart)&&I(t,Rt,i.cropstart),S(i.cropmove)&&I(t,St,i.cropmove),S(i.cropend)&&I(t,Nt,i.cropend),S(i.crop)&&I(t,Ot,i.crop),S(i.zoom)&&I(t,At,i.zoom),I(e,Qt,this.onCropStart=this.cropStart.bind(this)),i.zoomable&&i.zoomOnWheel&&I(e,ie,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),i.toggleDragModeOnDblclick&&I(e,Kt,this.onDblclick=this.dblclick.bind(this)),I(t.ownerDocument,Zt,this.onCropMove=this.cropMove.bind(this)),I(t.ownerDocument,Jt,this.onCropEnd=this.cropEnd.bind(this)),i.responsive&&I(window,ee,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,i=this.options,e=this.cropper;S(i.cropstart)&&k(t,Rt,i.cropstart),S(i.cropmove)&&k(t,St,i.cropmove),S(i.cropend)&&k(t,Nt,i.cropend),S(i.crop)&&k(t,Ot,i.crop),S(i.zoom)&&k(t,At,i.zoom),k(e,Qt,this.onCropStart),i.zoomable&&i.zoomOnWheel&&k(e,ie,this.onWheel,{passive:!1,capture:!0}),i.toggleDragModeOnDblclick&&k(e,Kt,this.onDblclick),k(t.ownerDocument,Zt,this.onCropMove),k(t.ownerDocument,Jt,this.onCropEnd),i.responsive&&k(window,ee,this.onResize)}},xi={resize:function(){if(!this.disabled){var t=this.options,i=this.container,e=this.containerData,o=i.offsetWidth/e.width,r=i.offsetHeight/e.height,n=Math.abs(o-1)>Math.abs(r-1)?o:r;if(n!==1){var s,f;t.restore&&(s=this.getCanvasData(),f=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(E(s,function(l,h){s[h]=l*n})),this.setCropBoxData(E(f,function(l,h){f[h]=l*n})))}}},dblclick:function(){this.disabled||this.options.dragMode===me||this.setDragMode(ri(this.dragBox,Ct)?ge:Lt)},wheel:function(t){var i=this,e=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){i.wheeling=!1},50),t.deltaY?o=t.deltaY>0?1:-1:t.wheelDelta?o=-t.wheelDelta/120:t.detail&&(o=t.detail>0?1:-1),this.zoom(-o*e,t)))},cropStart:function(t){var i=t.buttons,e=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(u(i)&&i!==1||u(e)&&e!==0||t.ctrlKey))){var o=this.options,r=this.pointers,n;t.changedTouches?E(t.changedTouches,function(s){r[s.identifier]=pt(s)}):r[t.pointerId||0]=pt(t),Object.keys(r).length>1&&o.zoomable&&o.zoomOnTouch?n=ue:n=_t(t.target,ht),qe.test(n)&&et(this.element,Rt,{originalEvent:t,action:n})!==!1&&(t.preventDefault(),this.action=n,this.cropping=!1,n===pe&&(this.cropping=!0,O(this.dragBox,dt)))}},cropMove:function(t){var i=this.action;if(!(this.disabled||!i)){var e=this.pointers;t.preventDefault(),et(this.element,St,{originalEvent:t,action:i})!==!1&&(t.changedTouches?E(t.changedTouches,function(o){x(e[o.identifier]||{},pt(o,!0))}):x(e[t.pointerId||0]||{},pt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var i=this.action,e=this.pointers;t.changedTouches?E(t.changedTouches,function(o){delete e[o.identifier]}):delete e[t.pointerId||0],i&&(t.preventDefault(),Object.keys(e).length||(this.action=""),this.cropping&&(this.cropping=!1,Z(this.dragBox,dt,this.cropped&&this.options.modal)),et(this.element,Nt,{originalEvent:t,action:i}))}}},Di={change:function(t){var i=this.options,e=this.canvasData,o=this.containerData,r=this.cropBoxData,n=this.pointers,s=this.action,f=i.aspectRatio,l=r.left,h=r.top,c=r.width,p=r.height,m=l+c,g=h+p,b=0,v=0,M=o.width,T=o.height,D=!0,P;!f&&t.shiftKey&&(f=c&&p?c/p:1),this.limited&&(b=r.minLeft,v=r.minTop,M=b+Math.min(o.width,e.width,e.left+e.width),T=v+Math.min(o.height,e.height,e.top+e.height));var A=n[Object.keys(n)[0]],d={x:A.endX-A.startX,y:A.endY-A.startY},w=function(_){switch(_){case G:m+d.x>M&&(d.x=M-m);break;case q:l+d.xT&&(d.y=T-g);break}};switch(s){case Bt:l+=d.x,h+=d.y;break;case G:if(d.x>=0&&(m>=M||f&&(h<=v||g>=T))){D=!1;break}w(G),c+=d.x,c<0&&(s=q,c=-c,l-=c),f&&(p=c/f,h+=(r.height-p)/2);break;case H:if(d.y<=0&&(h<=v||f&&(l<=b||m>=M))){D=!1;break}w(H),p-=d.y,h+=d.y,p<0&&(s=K,p=-p,h-=p),f&&(c=p*f,l+=(r.width-c)/2);break;case q:if(d.x<=0&&(l<=b||f&&(h<=v||g>=T))){D=!1;break}w(q),c-=d.x,l+=d.x,c<0&&(s=G,c=-c,l-=c),f&&(p=c/f,h+=(r.height-p)/2);break;case K:if(d.y>=0&&(g>=T||f&&(l<=b||m>=M))){D=!1;break}w(K),p+=d.y,p<0&&(s=H,p=-p,h-=p),f&&(c=p*f,l+=(r.width-c)/2);break;case it:if(f){if(d.y<=0&&(h<=v||m>=M)){D=!1;break}w(H),p-=d.y,h+=d.y,c=p*f}else w(H),w(G),d.x>=0?mv&&(p-=d.y,h+=d.y):(p-=d.y,h+=d.y);c<0&&p<0?(s=nt,p=-p,c=-c,h-=p,l-=c):c<0?(s=at,c=-c,l-=c):p<0&&(s=rt,p=-p,h-=p);break;case at:if(f){if(d.y<=0&&(h<=v||l<=b)){D=!1;break}w(H),p-=d.y,h+=d.y,c=p*f,l+=r.width-c}else w(H),w(q),d.x<=0?l>b?(c-=d.x,l+=d.x):d.y<=0&&h<=v&&(D=!1):(c-=d.x,l+=d.x),d.y<=0?h>v&&(p-=d.y,h+=d.y):(p-=d.y,h+=d.y);c<0&&p<0?(s=rt,p=-p,c=-c,h-=p,l-=c):c<0?(s=it,c=-c,l-=c):p<0&&(s=nt,p=-p,h-=p);break;case nt:if(f){if(d.x<=0&&(l<=b||g>=T)){D=!1;break}w(q),c-=d.x,l+=d.x,p=c/f}else w(K),w(q),d.x<=0?l>b?(c-=d.x,l+=d.x):d.y>=0&&g>=T&&(D=!1):(c-=d.x,l+=d.x),d.y>=0?g=0&&(m>=M||g>=T)){D=!1;break}w(G),c+=d.x,p=c/f}else w(K),w(G),d.x>=0?m=0&&g>=T&&(D=!1):c+=d.x,d.y>=0?g0?s=d.y>0?rt:it:d.x<0&&(l-=c,s=d.y>0?nt:at),d.y<0&&(h-=p),this.cropped||(L(this.cropBox,R),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}D&&(r.width=c,r.height=p,r.left=l,r.top=h,this.action=s,this.renderCropBox()),E(n,function(C){C.startX=C.endX,C.startY=C.endY})}},Ei={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&O(this.dragBox,dt),L(this.cropBox,R),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=x({},this.initialImageData),this.canvasData=x({},this.initialCanvasData),this.cropBoxData=x({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(x(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),L(this.dragBox,dt),O(this.cropBox,R)),this},replace:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),i?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,E(this.previews,function(e){e.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,L(this.cropper,qt)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,O(this.cropper,qt)),this},destroy:function(){var t=this.element;return t[y]?(t[y]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,e=this.canvasData,o=e.left,r=e.top;return this.moveTo(bt(t)?t:o+Number(t),bt(i)?i:r+Number(i))},moveTo:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,e=this.canvasData,o=!1;return t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.movable&&(u(t)&&(e.left=t,o=!0),u(i)&&(e.top=i,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(t,i){var e=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(e.width*t/e.naturalWidth,null,i)},zoomTo:function(t,i,e){var o=this.options,r=this.canvasData,n=r.width,s=r.height,f=r.naturalWidth,l=r.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&o.zoomable){var h=f*t,c=l*t;if(et(this.element,At,{ratio:t,oldRatio:n/f,originalEvent:e})===!1)return this;if(e){var p=this.pointers,m=De(this.cropper),g=p&&Object.keys(p).length?ci(p):{pageX:e.pageX,pageY:e.pageY};r.left-=(h-n)*((g.pageX-m.left-r.left)/n),r.top-=(c-s)*((g.pageY-m.top-r.top)/s)}else Q(i)&&u(i.x)&&u(i.y)?(r.left-=(h-n)*((i.x-r.left)/n),r.top-=(c-s)*((i.y-r.top)/s)):(r.left-=(h-n)/2,r.top-=(c-s)/2);r.width=h,r.height=c,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),u(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var i=this.imageData.scaleY;return this.scale(t,u(i)?i:1)},scaleY:function(t){var i=this.imageData.scaleX;return this.scale(u(i)?i:1,t)},scale:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,e=this.imageData,o=!1;return t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.scalable&&(u(t)&&(e.scaleX=t,o=!0),u(i)&&(e.scaleY=i,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.options,e=this.imageData,o=this.canvasData,r=this.cropBoxData,n;if(this.ready&&this.cropped){n={x:r.left-o.left,y:r.top-o.top,width:r.width,height:r.height};var s=e.width/e.naturalWidth;if(E(n,function(h,c){n[c]=h/s}),t){var f=Math.round(n.y+n.height),l=Math.round(n.x+n.width);n.x=Math.round(n.x),n.y=Math.round(n.y),n.width=l-n.x,n.height=f-n.y}}else n={x:0,y:0,width:0,height:0};return i.rotatable&&(n.rotate=e.rotate||0),i.scalable&&(n.scaleX=e.scaleX||1,n.scaleY=e.scaleY||1),n},setData:function(t){var i=this.options,e=this.imageData,o=this.canvasData,r={};if(this.ready&&!this.disabled&&Q(t)){var n=!1;i.rotatable&&u(t.rotate)&&t.rotate!==e.rotate&&(e.rotate=t.rotate,n=!0),i.scalable&&(u(t.scaleX)&&t.scaleX!==e.scaleX&&(e.scaleX=t.scaleX,n=!0),u(t.scaleY)&&t.scaleY!==e.scaleY&&(e.scaleY=t.scaleY,n=!0)),n&&this.renderCanvas(!0,!0);var s=e.width/e.naturalWidth;u(t.x)&&(r.left=t.x*s+o.left),u(t.y)&&(r.top=t.y*s+o.top),u(t.width)&&(r.width=t.width*s),u(t.height)&&(r.height=t.height*s),this.setCropBoxData(r)}return this},getContainerData:function(){return this.ready?x({},this.containerData):{}},getImageData:function(){return this.sized?x({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,i={};return this.ready&&E(["left","top","width","height","naturalWidth","naturalHeight"],function(e){i[e]=t[e]}),i},setCanvasData:function(t){var i=this.canvasData,e=i.aspectRatio;return this.ready&&!this.disabled&&Q(t)&&(u(t.left)&&(i.left=t.left),u(t.top)&&(i.top=t.top),u(t.width)?(i.width=t.width,i.height=t.width/e):u(t.height)&&(i.height=t.height,i.width=t.height*e),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,i;return this.ready&&this.cropped&&(i={left:t.left,top:t.top,width:t.width,height:t.height}),i||{}},setCropBoxData:function(t){var i=this.cropBoxData,e=this.options.aspectRatio,o,r;return this.ready&&this.cropped&&!this.disabled&&Q(t)&&(u(t.left)&&(i.left=t.left),u(t.top)&&(i.top=t.top),u(t.width)&&t.width!==i.width&&(o=!0,i.width=t.width),u(t.height)&&t.height!==i.height&&(r=!0,i.height=t.height),e&&(o?i.height=i.width/e:r&&(i.width=i.height*e)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var i=this.canvasData,e=fi(this.image,this.imageData,i,t);if(!this.cropped)return e;var o=this.getData(),r=o.x,n=o.y,s=o.width,f=o.height,l=e.width/Math.floor(i.naturalWidth);l!==1&&(r*=l,n*=l,s*=l,f*=l);var h=s/f,c=U({aspectRatio:h,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),p=U({aspectRatio:h,width:t.minWidth||0,height:t.minHeight||0},"cover"),m=U({aspectRatio:h,width:t.width||(l!==1?e.width:s),height:t.height||(l!==1?e.height:f)}),g=m.width,b=m.height;g=Math.min(c.width,Math.max(p.width,g)),b=Math.min(c.height,Math.max(p.height,b));var v=document.createElement("canvas"),M=v.getContext("2d");v.width=tt(g),v.height=tt(b),M.fillStyle=t.fillColor||"transparent",M.fillRect(0,0,g,b);var T=t.imageSmoothingEnabled,D=T===void 0?!0:T,P=t.imageSmoothingQuality;M.imageSmoothingEnabled=D,P&&(M.imageSmoothingQuality=P);var A=e.width,d=e.height,w=r,C=n,_,Y,j,V,X,B;w<=-s||w>A?(w=0,_=0,j=0,X=0):w<=0?(j=-w,w=0,_=Math.min(A,s+w),X=_):w<=A&&(j=0,_=Math.min(s,A-w),X=_),_<=0||C<=-f||C>d?(C=0,Y=0,V=0,B=0):C<=0?(V=-C,C=0,Y=Math.min(d,f+C),B=Y):C<=d&&(V=0,Y=Math.min(f,d-C),B=Y);var N=[w,C,_,Y];if(X>0&&B>0){var $=g/s;N.push(j*$,V*$,X*$,B*$)}return M.drawImage.apply(M,[e].concat(fe(N.map(function(lt){return Math.floor(tt(lt))})))),v},setAspectRatio:function(t){var i=this.options;return!this.disabled&&!bt(t)&&(i.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var i=this.options,e=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var r=t===Lt,n=i.movable&&t===ge;t=r||n?t:me,i.dragMode=t,ct(e,ht,t),Z(e,Ct,r),Z(e,Tt,n),i.cropBoxMovable||(ct(o,ht,t),Z(o,Ct,r),Z(o,Tt,n))}return this}},Mi=z.Cropper,Me=function(){function a(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ze(this,a),!t||!Qe.test(t.tagName))throw new Error("The first argument is required and must be an or element.");this.element=t,this.options=x({},re,Q(i)&&i),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return Pe(a,[{key:"init",value:function(){var i=this.element,e=i.tagName.toLowerCase(),o;if(!i[y]){if(i[y]=this,e==="img"){if(this.isImg=!0,o=i.getAttribute("src")||"",this.originalUrl=o,!o)return;o=i.src}else e==="canvas"&&window.HTMLCanvasElement&&(o=i.toDataURL());this.load(o)}}},{key:"load",value:function(i){var e=this;if(i){this.url=i,this.imageData={};var o=this.element,r=this.options;if(!r.rotatable&&!r.scalable&&(r.checkOrientation=!1),!r.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Fe.test(i)){Ke.test(i)?this.read(ui(i)):this.clone();return}var n=new XMLHttpRequest,s=this.clone.bind(this);this.reloading=!0,this.xhr=n,n.onabort=s,n.onerror=s,n.ontimeout=s,n.onprogress=function(){n.getResponseHeader("content-type")!==ae&&n.abort()},n.onload=function(){e.read(n.response)},n.onloadend=function(){e.reloading=!1,e.xhr=null},r.checkCrossOrigin&&oe(i)&&o.crossOrigin&&(i=se(i)),n.open("GET",i,!0),n.responseType="arraybuffer",n.withCredentials=o.crossOrigin==="use-credentials",n.send()}}},{key:"read",value:function(i){var e=this.options,o=this.imageData,r=mi(i),n=0,s=1,f=1;if(r>1){this.url=gi(i,ae);var l=vi(r);n=l.rotate,s=l.scaleX,f=l.scaleY}e.rotatable&&(o.rotate=n),e.scalable&&(o.scaleX=s,o.scaleY=f),this.clone()}},{key:"clone",value:function(){var i=this.element,e=this.url,o=i.crossOrigin,r=e;this.options.checkCrossOrigin&&oe(e)&&(o||(o="anonymous"),r=se(e)),this.crossOrigin=o,this.crossOriginUrl=r;var n=document.createElement("img");o&&(n.crossOrigin=o),n.src=r||e,n.alt=i.alt||"The image to crop",this.image=n,n.onload=this.start.bind(this),n.onerror=this.stop.bind(this),O(n,Ft),i.parentNode.insertBefore(n,i.nextSibling)}},{key:"start",value:function(){var i=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var o=z.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(z.navigator.userAgent),r=function(l,h){x(i.imageData,{naturalWidth:l,naturalHeight:h,aspectRatio:l/h}),i.initialImageData=x({},i.imageData),i.sizing=!1,i.sized=!0,i.build()};if(e.naturalWidth&&!o){r(e.naturalWidth,e.naturalHeight);return}var n=document.createElement("img"),s=document.body||document.documentElement;this.sizingImage=n,n.onload=function(){r(n.width,n.height),o||s.removeChild(n)},n.src=e.src,o||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",s.appendChild(n))}},{key:"stop",value:function(){var i=this.image;i.onload=null,i.onerror=null,i.parentNode.removeChild(i),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var i=this.element,e=this.options,o=this.image,r=i.parentNode,n=document.createElement("div");n.innerHTML=Ze;var s=n.querySelector(".".concat(y,"-container")),f=s.querySelector(".".concat(y,"-canvas")),l=s.querySelector(".".concat(y,"-drag-box")),h=s.querySelector(".".concat(y,"-crop-box")),c=h.querySelector(".".concat(y,"-face"));this.container=r,this.cropper=s,this.canvas=f,this.dragBox=l,this.cropBox=h,this.viewBox=s.querySelector(".".concat(y,"-view-box")),this.face=c,f.appendChild(o),O(i,R),r.insertBefore(s,i.nextSibling),L(o,Ft),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,O(h,R),e.guides||O(h.getElementsByClassName("".concat(y,"-dashed")),R),e.center||O(h.getElementsByClassName("".concat(y,"-center")),R),e.background&&O(s,"".concat(y,"-bg")),e.highlight||O(c,je),e.cropBoxMovable&&(O(c,Tt),ct(c,ht,Bt)),e.cropBoxResizable||(O(h.getElementsByClassName("".concat(y,"-line")),R),O(h.getElementsByClassName("".concat(y,"-point")),R)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),S(e.ready)&&I(i,te,e.ready,{once:!0}),et(i,te)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var i=this.cropper.parentNode;i&&i.removeChild(this.cropper),L(this.element,R)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=Mi,a}},{key:"setDefaults",value:function(i){x(re,Q(i)&&i)}}]),a}();x(Me.prototype,wi,bi,yi,xi,Di,Ei);const Ci={aspectRatio:16/9,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,autoCrop:!0,background:!0,highlight:!0,center:!0,responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,scalable:!0,modal:!0,guides:!0,movable:!0,rotatable:!0},Ti={src:{type:String,required:!0},alt:{type:String},width:{type:[String,Number],default:""},height:{type:[String,Number],default:"360px"},crossorigin:{type:String||Object,default:void 0},imageStyle:{type:Object,default(){return{}}},options:{type:Object,default(){return{}}}},Oi=he({name:"ReCropper",props:Ti,setup(a){const t=J(null),i=J(),e=J(!1),o=Wt(()=>({height:a.height,width:a.width,maxWidth:"100%",...a.imageStyle})),r=Wt(()=>{const{height:s,width:f}=a;return{width:`${f}`.replace(/px/,"")+"px",height:`${s}`.replace(/px/,"")+"px"}});function n(){const s=xt(i);s&&(t.value=new Me(s,{...Ci,ready:()=>{e.value=!0},...a.options}))}return Oe(()=>{ce(()=>{n()})}),{props:a,imgElRef:i,cropper:t,getWrapperStyle:r,getImageStyle:o}},render(){return ot(Se,null,[ot("div",{class:Ne({excludeListeners:!0,excludeKeys:["class"]}),style:this.getWrapperStyle},[ot("img",{ref:"imgElRef",src:this.props.src,alt:this.props.alt,crossorigin:this.props.crossorigin,style:this.getImageStyle},null)])])}}),Ni=Re(Oi),Si="/vue-pure-admin/static/jpeg/picture-596f7aa0.jpeg",Ri=a=>(ke("data-v-e6b30337"),a=a(),Be(),a),Ai=Ri(()=>Dt("div",{class:"card-header"},[Dt("span",{class:"font-medium"},"图片裁剪组件")],-1)),_i={class:"cropper-container"},Ii=["src"],ki={key:0},Bi=he({name:"Cropping",__name:"index",setup(a){const t=J(),i=J(null),e=J(""),o=()=>{ce(()=>{t.value.cropper.getCroppedCanvas().toBlob(r=>{const n=new FileReader;n.onloadend=s=>{e.value=s.target.result,i.value=t.value.cropper.getData()},n.readAsDataURL(r)},"image/jpeg")})};return(r,n)=>{const s=Ut("el-button"),f=Ut("el-card");return wt(),Ae(f,{shadow:"never"},{header:vt(()=>[Ai]),default:vt(()=>[Dt("div",_i,[ot(xt(Ni),{ref_key:"refCropper",ref:t,width:"40vw",src:xt(Si)},null,8,["src"]),e.value?(wt(),jt("img",{key:0,src:e.value,class:"croppered"},null,8,Ii)):Vt("",!0)]),ot(s,{type:"primary",onClick:o},{default:vt(()=>[_e("裁剪")]),_:1}),e.value?(wt(),jt("p",ki,"裁剪后图片信息:"+Ie(i.value),1)):Vt("",!0)]),_:1})}}});const zi=Le(Bi,[["__scopeId","data-v-e6b30337"]]);export{zi as default}; diff --git a/dist/static/js/index-1610e1d6.js b/dist/static/js/index-1610e1d6.js deleted file mode 100644 index bdddec0f1..000000000 --- a/dist/static/js/index-1610e1d6.js +++ /dev/null @@ -1 +0,0 @@ -const l={class:"dark:text-white"},V=Vue.defineComponent({name:"Menu2",__name:"index",setup(s){const e=Vue.ref(""),{t}=VueI18n.useI18n();return(a,n)=>{const u=Vue.resolveComponent("el-input");return Vue.openBlock(),Vue.createElementBlock("div",l,[Vue.createElementVNode("p",null,Vue.toDisplayString(Vue.unref(t)("menus.hsmenu2")),1),Vue.createVNode(u,{modelValue:e.value,"onUpdate:modelValue":n[0]||(n[0]=o=>e.value=o)},null,8,["modelValue"])])}}});export{V as default}; diff --git a/dist/static/js/index-16215e41.js b/dist/static/js/index-16215e41.js deleted file mode 100644 index 2af41c54a..000000000 --- a/dist/static/js/index-16215e41.js +++ /dev/null @@ -1,10 +0,0 @@ -import{U as X,x as be,y as vt,_ as Y,n as Qe,K as _t,u as ee,t as ne,L as et,W as Ze,Y as Ee,$ as le,a0 as ge,s as ke,w as Ce,a1 as Q,a2 as gt,a3 as Be,V as ve,a4 as Ae,a5 as Ve,a6 as De,a7 as yt,a8 as tt,a9 as Re,B as nt,E as we,aa as wt,ab as kt,ac as Ct,c as bt,g as xt}from"./index-c61a73ff.js";import{d as Nt}from"./menu-a4fe64fb.js";import{E as St}from"./edit-542ce8b5.js";import{S as Bt}from"./set-up-729eb907.js";import{d as Et}from"./admin-line-92b9acda.js";import{d as $t}from"./git-branch-line-aa4cb38f.js";import{u as se,a as Pe,g as je,b as Mt,t as Tt,d as zt,c as It,e as Dt}from"./dark-2f4f0a96.js";import{u as _e}from"./app-7adcc40f.js";import{u as Lt}from"./epTheme-d89c26ff.js";import{u as de}from"./hooks-55e29a46.js";import{o as Le,u as At,a as Ht,b as Ot,c as Zt}from"./index-f1e7ee6d.js";import{S as ot}from"./search-4b9e88d3.js";import{C as ye}from"./check-f53d8364.js";import{d as Rt}from"./refresh-right-6177e75c.js";import{A as Pt}from"./arrow-right-s-line-bcf0e8c6.js";const jt={width:24,height:24,body:''},Ft={width:24,height:24,body:''},qt={width:24,height:24,body:''},Ut={width:1024,height:1024,body:''},Wt={width:1024,height:1024,body:''},Gt={width:24,height:24,body:''},Kt={width:24,height:24,body:''},Xt={width:1024,height:1024,body:''},Jt={width:24,height:24,body:''},Yt={width:24,height:24,body:''},Qt={width:24,height:24,body:''},en={width:24,height:24,body:''},$e=en,tn={width:1024,height:1024,body:''},nn={width:1024,height:1024,body:''};X("ubuntuFill",jt);X("menu",Nt);X("edit",St);X("informationLine",Ft);X("setUp",Bt);X("terminalWindowLine",qt);X("guide",Ut);X("homeFilled",Wt);X("card",Gt);X("listCheck",Kt);X("histogram",Xt);X("ppt",Jt);X("checkboxCircleLine",Yt);X("flUser",Et);X("role",Qt);X("setting",$e);X("dept",$t);X("lollipop",tn);X("monitor",nn);const on=Pinia.defineStore({id:"pure-setting",state:()=>({title:be().Title,fixedHeader:be().FixedHeader,hiddenSideBar:be().HiddenSideBar}),getters:{getTitle(t){return t.title},getFixedHeader(t){return t.fixedHeader},getHiddenSideBar(t){return t.hiddenSideBar}},actions:{CHANGE_SETTING({key:t,value:e}){Reflect.has(this,t)&&(this[t]=e)},changeSetting(t){this.CHANGE_SETTING(t)}}});function Fe(){return on(vt)}const rn={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},an=Vue.createElementVNode("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"},null,-1),un=[an];function ln(t,e){return Vue.openBlock(),Vue.createElementBlock("svg",rn,un)}const rt={render:ln},sn={width:24,height:24,body:''},cn=sn,dn={class:"result"},Vn=["onMouseenter"],fn={class:"result-item-title"},pn=Vue.defineComponent({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{emit:e}){const n=t,{t:o}=VueI18n.useI18n(),s=Vue.computed(()=>c=>({background:(c==null?void 0:c.path)===u.value?Lt().epThemeColor:"",color:c.path===u.value?"#fff":"",fontSize:c.path===u.value?"16px":"14px"})),u=Vue.computed({get(){return n.value},set(c){e("update:value",c)}});async function l(c){u.value=c.path}function V(){e("enter")}return(c,g)=>(Vue.openBlock(),Vue.createElementBlock("div",dn,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(c.options,f=>{var d,p;return Vue.openBlock(),Vue.createElementBlock("div",{key:f.path,class:"result-item dark:bg-[#1d1d1d]",style:Vue.normalizeStyle(s.value(f)),onClick:V,onMouseenter:_=>l(f)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(de)(((d=f.meta)==null?void 0:d.icon)??Vue.unref(cn))))),Vue.createElementVNode("span",fn,Vue.toDisplayString(Vue.unref(o)((p=f.meta)==null?void 0:p.title)),1),Vue.createVNode(Vue.unref(rt))],44,Vn)}),128))]))}});const hn=Y(pn,[["__scopeId","data-v-2bcad0d6"]]),mn={width:24,height:24,body:''},vn=mn,_n={width:24,height:24,body:''},gn=_n,yn={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},wn=Vue.createElementVNode("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1V7m10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2Z"},null,-1),kn=[wn];function Cn(t,e){return Vue.openBlock(),Vue.createElementBlock("svg",yn,kn)}const bn={render:Cn},xn={class:"search-footer text-[#333] dark:text-white"},Nn={class:"search-footer-item"},Sn={class:"search-footer-item"},Bn={class:"search-footer-item"},En=Vue.defineComponent({__name:"SearchFooter",setup(t){return(e,n)=>{const o=Vue.resolveComponent("IconifyIconOffline");return Vue.openBlock(),Vue.createElementBlock("div",xn,[Vue.createElementVNode("span",Nn,[Vue.createVNode(Vue.unref(rt),{class:"icon"}),Vue.createTextVNode(" 确认 ")]),Vue.createElementVNode("span",Sn,[Vue.createVNode(o,{icon:Vue.unref(vn),class:"icon"},null,8,["icon"]),Vue.createVNode(o,{icon:Vue.unref(gn),class:"icon"},null,8,["icon"]),Vue.createTextVNode(" 切换 ")]),Vue.createElementVNode("span",Bn,[Vue.createVNode(Vue.unref(bn),{class:"icon"}),Vue.createTextVNode(" 关闭 ")])])}}});const $n=Y(En,[["__scopeId","data-v-8f46a26f"]]),Mn={class:"el-input__icon"},Tn={class:"search-result-container"},zn=Vue.defineComponent({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const n=t,{device:o}=se(),s=VueRouter.useRouter(),u=Vue.ref(""),l=Vue.ref(""),V=Vue.ref(null),c=Vue.shallowRef([]),g=Qe(_,300),f=Vue.computed(()=>_t(ee().wholeMenus)),d=Vue.computed({get(){return n.value},set(E){e("update:value",E)}});function p(E){const w=[];function h(m){m.forEach(M=>{w.push(M),M.children&&h(M.children)})}return h(E),w}function _(){var w;const E=p(f.value);c.value=E.filter(h=>{var m;return u.value&&ne((m=h.meta)==null?void 0:m.title).toLocaleLowerCase().includes(u.value.toLocaleLowerCase().trim())}),((w=c.value)==null?void 0:w.length)>0?l.value=c.value[0].path:l.value=""}function S(){d.value=!1,setTimeout(()=>{c.value=[],u.value=""},200)}function x(){const{length:E}=c.value;if(E===0)return;const w=c.value.findIndex(h=>h.path===l.value);w===0?l.value=c.value[E-1].path:l.value=c.value[w-1].path}function b(){const{length:E}=c.value;if(E===0)return;const w=c.value.findIndex(h=>h.path===l.value);w+1===E?l.value=c.value[0].path:l.value=c.value[w+1].path}function k(){const{length:E}=c.value;E===0||l.value===""||(s.push(l.value),S())}return Le("Enter",k),Le("ArrowUp",x),Le("ArrowDown",b),(E,w)=>{const h=Vue.resolveComponent("IconifyIconOffline"),m=Vue.resolveComponent("el-input"),M=Vue.resolveComponent("el-empty"),Z=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(Z,{top:"5vh",modelValue:d.value,"onUpdate:modelValue":w[2]||(w[2]=T=>d.value=T),width:Vue.unref(o)==="mobile"?"80vw":"50vw","before-close":S,onOpened:w[3]||(w[3]=T=>V.value.focus()),onClosed:w[4]||(w[4]=T=>V.value.blur())},{footer:Vue.withCtx(()=>[Vue.createVNode($n)]),default:Vue.withCtx(()=>[Vue.createVNode(m,{ref_key:"inputRef",ref:V,modelValue:u.value,"onUpdate:modelValue":w[0]||(w[0]=T=>u.value=T),clearable:"",placeholder:"请输入关键词搜索",onInput:Vue.unref(g)},{prefix:Vue.withCtx(()=>[Vue.createElementVNode("span",Mn,[Vue.createVNode(h,{icon:Vue.unref(ot)},null,8,["icon"])])]),_:1},8,["modelValue","onInput"]),Vue.createElementVNode("div",Tn,[c.value.length===0?(Vue.openBlock(),Vue.createBlock(M,{key:0,description:"暂无搜索结果"})):(Vue.openBlock(),Vue.createBlock(hn,{key:1,value:l.value,"onUpdate:value":w[1]||(w[1]=T=>l.value=T),options:c.value,onClick:k},null,8,["value","options"]))])]),_:1},8,["modelValue","width"])}}});const In=Y(zn,[["__scopeId","data-v-24e9bf4c"]]);function Dn(t=!1){const e=Vue.ref(t);function n(l){e.value=l}function o(){n(!0)}function s(){n(!1)}function u(){n(!e.value)}return{bool:e,setBool:n,setTrue:o,setFalse:s,toggle:u}}const qe=Vue.defineComponent({__name:"index",setup(t){const{bool:e,toggle:n}=Dn();function o(){n()}return(s,u)=>{const l=Vue.resolveComponent("IconifyIconOffline");return Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[Vue.createElementVNode("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:o},[Vue.createVNode(l,{icon:Vue.unref(ot)},null,8,["icon"])]),Vue.createVNode(Vue.unref(In),{value:Vue.unref(e),"onUpdate:value":u[0]||(u[0]=V=>Vue.isRef(e)?e.value=V:null)},null,8,["value"])],64)}}}),Xe=[{key:"1",name:"通知",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"你收到了 12 份新周报",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"你推荐的 前端高手 已通过第三轮面试",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png",title:"这种模板可以区分多种通知类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"展示标题内容超过一行后的处理方式,如果内容超过1行将自动截断并支持tooltip显示完整标题。",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"}]},{key:"2",name:"消息",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"李白 评论了你",description:"长风破浪会有时,直挂云帆济沧海",datetime:"一年前",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"李白 回复了你",description:"行路难,行路难,多歧路,今安在。",datetime:"一年前",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"标题",description:"请将鼠标移动到此处,以便测试超长的消息在此处将如何处理。本例中设置的描述最大行数为2,超过2行的描述内容将被省略并且可以通过tooltip查看完整内容",datetime:"一年前",type:"2"}]},{key:"3",name:"代办",list:[{avatar:"",title:"任务名称",description:"任务需要在 2022-11-16 20:00 前启动",datetime:"",extra:"未开始",status:"info",type:"3"},{avatar:"",title:"第三方紧急代码变更",description:"一拳提交于 2022-11-16,需在 2022-11-18 前完成代码变更任务",datetime:"",extra:"马上到期",status:"danger",type:"3"},{avatar:"",title:"信息安全考试",description:"指派小仙于 2022-12-12 前完成更新并发布",datetime:"",extra:"已耗时 8 天",status:"warning",type:"3"},{avatar:"",title:"vue-pure-admin 版本发布",description:"vue-pure-admin 版本发布",datetime:"",extra:"进行中",type:"3"}]}],Ln={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},An={class:"notice-container-text"},Hn={class:"notice-text-title text-[#000000d9] dark:text-white"},On={class:"notice-text-datetime text-[#00000073] dark:text-white"},Zn=Vue.defineComponent({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,n=Vue.ref(null),o=Vue.ref(!1),s=Vue.ref(null),u=Vue.ref(!1),{tooltipEffect:l}=se(),V=et();function c(){Vue.nextTick(()=>{var f,d;((f=n.value)==null?void 0:f.scrollWidth)>((d=n.value)==null?void 0:d.clientWidth)?o.value=!0:o.value=!1})}function g(f,d){const p=document.createElement("span");p.innerText=d,p.className="getDescriptionWidth",document.querySelector("body").appendChild(p);const _=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const S=f.target.offsetWidth;_>2*S?u.value=!0:u.value=!1}return(f,d)=>{var x,b;const p=Vue.resolveComponent("el-avatar"),_=Vue.resolveComponent("el-tooltip"),S=Vue.resolveComponent("el-tag");return Vue.openBlock(),Vue.createElementBlock("div",Ln,[e.noticeItem.avatar?(Vue.openBlock(),Vue.createBlock(p,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Vue.createCommentVNode("",!0),Vue.createElementVNode("div",An,[Vue.createElementVNode("div",Hn,[Vue.createVNode(_,{"popper-class":"notice-title-popper",effect:Vue.unref(l),disabled:!o.value,content:e.noticeItem.title,placement:"top-start",enterable:!Vue.unref(V)},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{ref_key:"titleRef",ref:n,class:"notice-title-content",onMouseover:c},Vue.toDisplayString(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(x=e.noticeItem)!=null&&x.extra?(Vue.openBlock(),Vue.createBlock(S,{key:0,type:(b=e.noticeItem)==null?void 0:b.status,size:"small",class:"notice-title-extra"},{default:Vue.withCtx(()=>{var k;return[Vue.createTextVNode(Vue.toDisplayString((k=e.noticeItem)==null?void 0:k.extra),1)]}),_:1},8,["type"])):Vue.createCommentVNode("",!0)]),Vue.createVNode(_,{"popper-class":"notice-title-popper",effect:Vue.unref(l),disabled:!u.value,content:e.noticeItem.description,placement:"top-start"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{ref_key:"descriptionRef",ref:s,class:"notice-text-description",onMouseover:d[0]||(d[0]=k=>g(k,e.noticeItem.description))},Vue.toDisplayString(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),Vue.createElementVNode("div",On,Vue.toDisplayString(e.noticeItem.datetime),1)])])}}});const Rn=Y(Zn,[["__scopeId","data-v-2a7dbc48"]]),Pn={key:0},jn=Vue.defineComponent({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(n,o)=>{const s=Vue.resolveComponent("el-empty");return e.list.length?(Vue.openBlock(),Vue.createElementBlock("div",Pn,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.list,(u,l)=>(Vue.openBlock(),Vue.createBlock(Rn,{noticeItem:u,key:l},null,8,["noticeItem"]))),128))])):(Vue.openBlock(),Vue.createBlock(s,{key:1,description:"暂无数据"}))}}}),Fn={width:1024,height:1024,body:''},qn=Fn,Un={class:"dropdown-badge navbar-bg-hover select-none"},Wn={class:"header-notice-icon"},Gn={class:"noticeList-container"},Kn=Vue.defineComponent({__name:"index",setup(t){const e=Vue.ref(0),n=Vue.ref(Xe),o=Vue.ref(Xe[0].key);return n.value.map(s=>e.value+=s.list.length),(s,u)=>{const l=Vue.resolveComponent("IconifyIconOffline"),V=Vue.resolveComponent("el-badge"),c=Vue.resolveComponent("el-scrollbar"),g=Vue.resolveComponent("el-tab-pane"),f=Vue.resolveComponent("el-tabs"),d=Vue.resolveComponent("el-dropdown-menu"),p=Vue.resolveComponent("el-dropdown");return Vue.openBlock(),Vue.createBlock(p,{trigger:"click",placement:"bottom-end"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(f,{stretch:!0,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=_=>o.value=_),class:"dropdown-tabs"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.value,_=>(Vue.openBlock(),Vue.createBlock(g,{key:_.key,label:`${_.name}(${_.list.length})`,name:`${_.key}`},{default:Vue.withCtx(()=>[Vue.createVNode(c,{"max-height":"330px"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",Gn,[Vue.createVNode(jn,{list:_.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",Un,[Vue.createVNode(V,{value:e.value,max:99},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",Wn,[Vue.createVNode(l,{icon:Vue.unref(qn)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}});const Ue=Y(Kn,[["__scopeId","data-v-4e7fe581"]]),Xn={key:0,class:"flex justify-center items-center"},He=Vue.defineComponent({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(n,o)=>e.extraIcon?(Vue.openBlock(),Vue.createElementBlock("div",Xn,[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(de)(Vue.toRaw(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Vue.createCommentVNode("",!0)}}),Jn={width:24,height:24,body:''},Me=Jn,Yn={key:0,class:"horizontal-header"},Qn={class:"select-none"},eo={class:"horizontal-header-right"},to={class:"check-zh"},no={class:"check-en"},oo={class:"el-dropdown-link navbar-bg-hover select-none"},ro={key:0,class:"dark:text-white"},ao=["title"],uo=Vue.defineComponent({__name:"mixNav",setup(t){const e=Vue.ref(),n=Vue.ref(null),{t:o,route:s,locale:u,translationCh:l,translationEn:V}=Pe(e),{device:c,routers:g,logout:f,onPanel:d,menuSelect:p,resolvePath:_,username:S,getDivStyle:x,avatarsStyle:b,getDropdownItemStyle:k,getDropdownItemClass:E}=se();function w(h){var Z,T;const m=ee().wholeMenus,M=Ze(h,m)[0];n.value=(T=(Z=Ee(M,m))==null?void 0:Z.children[0])==null?void 0:T.path}return Vue.onMounted(()=>{w(s.path)}),Vue.nextTick(()=>{var h;(h=e.value)==null||h.handleResize()}),Vue.watch(()=>[s.path,ee().wholeMenus],()=>{w(s.path)}),(h,m)=>{const M=Vue.resolveComponent("el-menu-item"),Z=Vue.resolveComponent("el-menu"),T=Vue.resolveComponent("IconifyIconOffline"),y=Vue.resolveComponent("el-dropdown-item"),R=Vue.resolveComponent("el-dropdown-menu"),J=Vue.resolveComponent("el-dropdown"),W=Vue.resolveDirective("loading");return Vue.unref(c)!=="mobile"?Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",Yn,[Vue.createVNode(Z,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":n.value,onSelect:m[0]||(m[0]=D=>Vue.unref(p)(D,Vue.unref(g)))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(ee)().wholeMenus,D=>(Vue.openBlock(),Vue.createBlock(M,{key:D.path,index:Vue.unref(_)(D)||D.redirect},{title:Vue.withCtx(()=>[Vue.toRaw(D.meta.icon)?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,class:Vue.normalizeClass(["sub-menu-icon",D.meta.icon])},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(de)(D.meta&&Vue.toRaw(D.meta.icon)))))],2)):Vue.createCommentVNode("",!0),Vue.createElementVNode("div",{style:Vue.normalizeStyle(Vue.unref(x))},[Vue.createElementVNode("span",Qn,Vue.toDisplayString(Vue.unref(ne)(D.meta.title)),1),Vue.createVNode(He,{extraIcon:D.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),Vue.createElementVNode("div",eo,[Vue.createVNode(qe),Vue.createVNode(Ue,{id:"header-notice"}),Vue.createVNode(J,{id:"header-translation",trigger:"click"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(R,{class:"translation"},{default:Vue.withCtx(()=>[Vue.createVNode(y,{style:Vue.normalizeStyle(Vue.unref(k)(Vue.unref(u),"zh")),class:Vue.normalizeClass(["dark:!text-white",Vue.unref(E)(Vue.unref(u),"zh")]),onClick:Vue.unref(l)},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createElementVNode("span",to,[Vue.createVNode(T,{icon:Vue.unref(ye)},null,8,["icon"])],512),[[Vue.vShow,Vue.unref(u)==="zh"]]),Vue.createTextVNode(" 简体中文 ")]),_:1},8,["style","class","onClick"]),Vue.createVNode(y,{style:Vue.normalizeStyle(Vue.unref(k)(Vue.unref(u),"en")),class:Vue.normalizeClass(["dark:!text-white",Vue.unref(E)(Vue.unref(u),"en")]),onClick:Vue.unref(V)},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createElementVNode("span",no,[Vue.createVNode(T,{icon:Vue.unref(ye)},null,8,["icon"])],512),[[Vue.vShow,Vue.unref(u)==="en"]]),Vue.createTextVNode(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(je),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),Vue.createVNode(J,{trigger:"click"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(R,{class:"logout"},{default:Vue.withCtx(()=>[Vue.createVNode(y,{onClick:Vue.unref(f)},{default:Vue.withCtx(()=>[Vue.createVNode(T,{icon:Vue.unref(Me),style:{margin:"5px"}},null,8,["icon"]),Vue.createTextVNode(" "+Vue.toDisplayString(Vue.unref(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",oo,[Vue.createElementVNode("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:Vue.normalizeStyle(Vue.unref(b))},null,4),Vue.unref(S)?(Vue.openBlock(),Vue.createElementBlock("p",ro,Vue.toDisplayString(Vue.unref(S)),1)):Vue.createCommentVNode("",!0)])]),_:1}),Vue.createElementVNode("span",{class:"set-icon navbar-bg-hover",title:Vue.unref(o)("buttons.hssystemSet"),onClick:m[1]||(m[1]=(...D)=>Vue.unref(d)&&Vue.unref(d)(...D))},[Vue.createVNode(T,{icon:Vue.unref($e)},null,8,["icon"])],8,ao)])])),[[W,Vue.unref(ee)().wholeMenus.length===0]]):Vue.createCommentVNode("",!0)}}});const lo=Y(uo,[["__scopeId","data-v-316fde2f"]]),so=["onClick"],io=Vue.defineComponent({__name:"breadCrumb",setup(t){const e=VueRouter.useRoute(),n=Vue.ref([]),o=VueRouter.useRouter(),s=o.options.routes,u=le().multiTags,l=()=>{let c;Object.keys(e.query).length>0?u.forEach(d=>{ge(e.query,d==null?void 0:d.query)&&(c=Vue.toRaw(d))}):Object.keys(e.params).length>0?u.forEach(d=>{ge(e.params,d==null?void 0:d.params)&&(c=Vue.toRaw(d))}):c=Ee(o.currentRoute.value.path,s);const g=Ze(o.currentRoute.value.name,s,"name"),f=[];g.forEach(d=>{d!=="/"&&f.push(Ee(d,s))}),f.push(c),f.forEach((d,p)=>{c!=null&&c.query||c!=null&&c.params||d!=null&&d.children&&d.children.forEach(_=>{var S,x;((S=_==null?void 0:_.meta)==null?void 0:S.title)===((x=d==null?void 0:d.meta)==null?void 0:x.title)&&f.splice(p,1)})}),n.value=f.filter(d=>(d==null?void 0:d.meta)&&(d==null?void 0:d.meta.title)!==!1)},V=c=>{const{redirect:g,path:f}=c;g?o.push(g):o.push(f)};return Vue.onMounted(()=>{l()}),Vue.watch(()=>e.path,()=>{l()},{deep:!0}),(c,g)=>{const f=Vue.resolveComponent("el-breadcrumb-item"),d=Vue.resolveComponent("el-breadcrumb");return Vue.openBlock(),Vue.createBlock(d,{class:"!leading-[50px] select-none",separator:"/"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.TransitionGroup,{name:"breadcrumb"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.value,p=>(Vue.openBlock(),Vue.createBlock(f,{class:"!inline !items-stretch",key:p.path},{default:Vue.withCtx(()=>[Vue.createElementVNode("a",{onClick:Vue.withModifiers(_=>V(p),["prevent"])},Vue.toDisplayString(Vue.unref(ne)(p.meta.title)),9,so)]),_:2},1024))),128))]),_:1})]),_:1})}}}),co={width:24,height:24,body:''},at=co,Vo={width:24,height:24,body:''},fo=Vo,po=["title"],ho=Vue.defineComponent({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,o=()=>{e("toggleClick")};return(s,u)=>{const l=Vue.resolveComponent("IconifyIconOffline");return Vue.openBlock(),Vue.createElementBlock("div",{class:"px-3 mr-1 navbar-bg-hover",title:n.isActive?"点击折叠":"点击展开",onClick:o},[Vue.createVNode(l,{icon:n.isActive?Vue.unref(at):Vue.unref(fo),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,po)}}}),mo={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0, 21, 41, 0.08)] dark:shadow-[#0d0d0d]"},vo={key:3,class:"vertical-header-right"},_o={class:"check-en"},go={class:"el-dropdown-link navbar-bg-hover select-none"},yo={key:0,class:"dark:text-white"},wo=["title"],ko=Vue.defineComponent({__name:"navbar",setup(t){const{layout:e,device:n,logout:o,onPanel:s,pureApp:u,username:l,avatarsStyle:V,toggleSideBar:c,getDropdownItemStyle:g,getDropdownItemClass:f}=se(),{t:d,locale:p,translationCh:_,translationEn:S}=Pe();return(x,b)=>{const k=Vue.resolveComponent("IconifyIconOffline"),E=Vue.resolveComponent("el-dropdown-item"),w=Vue.resolveComponent("el-dropdown-menu"),h=Vue.resolveComponent("el-dropdown");return Vue.openBlock(),Vue.createElementBlock("div",mo,[Vue.unref(n)==="mobile"?(Vue.openBlock(),Vue.createBlock(ho,{key:0,class:"hamburger-container","is-active":Vue.unref(u).sidebar.opened,onToggleClick:Vue.unref(c)},null,8,["is-active","onToggleClick"])):Vue.createCommentVNode("",!0),Vue.unref(e)!=="mix"&&Vue.unref(n)!=="mobile"?(Vue.openBlock(),Vue.createBlock(io,{key:1,class:"breadcrumb-container"})):Vue.createCommentVNode("",!0),Vue.unref(e)==="mix"?(Vue.openBlock(),Vue.createBlock(lo,{key:2})):Vue.createCommentVNode("",!0),Vue.unref(e)==="vertical"?(Vue.openBlock(),Vue.createElementBlock("div",vo,[Vue.createVNode(qe),Vue.createVNode(Ue,{id:"header-notice"}),Vue.createVNode(h,{id:"header-translation",trigger:"click"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(w,{class:"translation"},{default:Vue.withCtx(()=>[Vue.createVNode(E,{style:Vue.normalizeStyle(Vue.unref(g)(Vue.unref(p),"zh")),class:Vue.normalizeClass(["dark:!text-white",Vue.unref(f)(Vue.unref(p),"zh")]),onClick:Vue.unref(_)},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(k,{class:"check-zh",icon:Vue.unref(ye)},null,8,["icon"]),[[Vue.vShow,Vue.unref(p)==="zh"]]),Vue.createTextVNode(" 简体中文 ")]),_:1},8,["style","class","onClick"]),Vue.createVNode(E,{style:Vue.normalizeStyle(Vue.unref(g)(Vue.unref(p),"en")),class:Vue.normalizeClass(["dark:!text-white",Vue.unref(f)(Vue.unref(p),"en")]),onClick:Vue.unref(S)},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createElementVNode("span",_o,[Vue.createVNode(k,{icon:Vue.unref(ye)},null,8,["icon"])],512),[[Vue.vShow,Vue.unref(p)==="en"]]),Vue.createTextVNode(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(je),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),Vue.createVNode(h,{trigger:"click"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(w,{class:"logout"},{default:Vue.withCtx(()=>[Vue.createVNode(E,{onClick:Vue.unref(o)},{default:Vue.withCtx(()=>[Vue.createVNode(k,{icon:Vue.unref(Me),style:{margin:"5px"}},null,8,["icon"]),Vue.createTextVNode(" "+Vue.toDisplayString(Vue.unref(d)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",go,[Vue.createElementVNode("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:Vue.normalizeStyle(Vue.unref(V))},null,4),Vue.unref(l)?(Vue.openBlock(),Vue.createElementBlock("p",yo,Vue.toDisplayString(Vue.unref(l)),1)):Vue.createCommentVNode("",!0)])]),_:1}),Vue.createElementVNode("span",{class:"set-icon navbar-bg-hover",title:Vue.unref(d)("buttons.hssystemSet"),onClick:b[0]||(b[0]=(...m)=>Vue.unref(s)&&Vue.unref(s)(...m))},[Vue.createVNode(k,{icon:Vue.unref($e)},null,8,["icon"])],8,wo)])):Vue.createCommentVNode("",!0)])}}});const Co=Y(ko,[["__scopeId","data-v-b44add8f"]]),bo={width:24,height:24,body:''},xe=bo,xo={width:24,height:24,body:''},No={width:24,height:24,body:''},So={width:24,height:24,body:''},Bo={width:24,height:24,body:''},Eo={width:1024,height:1024,body:''},ut=Eo;function $o(){var T;const t=VueRouter.useRoute(),e=VueRouter.useRouter(),n=Vue.getCurrentInstance(),o=Fe(),s=Vue.ref(0),u=Vue.ref(0),l=Vue.ref(0),V=Vue.ref(!1),c=Vue.ref(-1),g=Vue.ref({}),f=Vue.ref(((T=ke().getItem(`${Ce()}configure`))==null?void 0:T.showModel)||"smart"),d=Vue.ref(ke().getItem(`${Ce()}configure`).hideTabs)??Vue.ref("false"),p=Vue.computed(()=>le().multiTags),_=Vue.reactive([{icon:Rt,text:Q("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:ut,text:Q("buttons.hscloseCurrentTab"),divided:!1,disabled:!(p.value.length>1),show:!0},{icon:Bo,text:Q("buttons.hscloseLeftTabs"),divided:!0,disabled:!(p.value.length>1),show:!0},{icon:So,text:Q("buttons.hscloseRightTabs"),divided:!1,disabled:!(p.value.length>1),show:!0},{icon:No,text:Q("buttons.hscloseOtherTabs"),divided:!0,disabled:!(p.value.length>2),show:!0},{icon:xo,text:Q("buttons.hscloseAllTabs"),divided:!1,disabled:!(p.value.length>1),show:!0},{icon:xe,text:Q("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:xe,text:Q("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function S(y,R,J){var W,D;return gt((W=t==null?void 0:t.meta)==null?void 0:W.showLink)&&((D=t==null?void 0:t.meta)==null?void 0:D.showLink)===!1?Object.keys(t.query).length>0?ge(t.query,y.query)?R:J:ge(t.params,y.params)?R:J:t.path===y.path?R:J}const x=Vue.computed(()=>(y,R)=>{if(R!==0)return S(y,!0,!1)}),b=Vue.computed(()=>y=>S(y,"is-active","")),k=Vue.computed(()=>y=>S(y,"schedule-active","")),E=Vue.computed(()=>({transform:`translateX(${l.value}px)`})),w=Vue.computed(()=>({left:u.value+"px",top:s.value+"px"})),h=()=>{V.value=!1};function m(y){if(y&&(c.value=y),Vue.unref(f)==="smart"){if(Be(n.refs["schedule"+y][0],"schedule-active"))return;ve(!0,"schedule-in",n.refs["schedule"+y][0]),ve(!1,"schedule-out",n.refs["schedule"+y][0])}else{if(Be(n.refs["dynamic"+y][0],"card-active"))return;ve(!0,"card-in",n.refs["dynamic"+y][0]),ve(!1,"card-out",n.refs["dynamic"+y][0])}}function M(y){if(c.value=-1,Vue.unref(f)==="smart"){if(Be(n.refs["schedule"+y][0],"schedule-active"))return;ve(!1,"schedule-in",n.refs["schedule"+y][0]),ve(!0,"schedule-out",n.refs["schedule"+y][0])}else{if(Be(n.refs["dynamic"+y][0],"card-active"))return;ve(!1,"card-in",n.refs["dynamic"+y][0]),ve(!0,"card-out",n.refs["dynamic"+y][0])}}function Z(){o.hiddenSideBar?o.changeSetting({key:"hiddenSideBar",value:!1}):o.changeSetting({key:"hiddenSideBar",value:!0})}return Vue.onMounted(()=>{if(!f.value){const y=ke().getItem(`${Ce()}configure`);y.showModel="card",ke().setItem(`${Ce()}configure`,y)}}),Vue.watch(()=>V.value,()=>{At(document,"click",h)}),{route:t,router:e,visible:V,showTags:d,instance:n,multiTags:p,showModel:f,tagsViews:_,buttonTop:s,buttonLeft:u,translateX:l,pureSetting:o,activeIndex:c,getTabStyle:E,iconIsActive:x,linkIsActive:b,currentSelect:g,scheduleIsActive:k,getContextMenuStyle:w,$t:Q,closeMenu:h,onMounted:Vue.onMounted,onMouseenter:m,onMouseleave:M,transformI18n:ne,onContentFullScreen:Z}}const Je={width:24,height:24,body:''},Mo={width:24,height:24,body:''},To=Mo,zo={width:24,height:24,body:''},Io=zo,Do={width:1024,height:1024,body:''},Lo=Do,Ao={class:"arrow-left"},Ho=["onContextmenu","onMouseenter","onMouseleave","onClick"],Oo=["onClick"],Zo={class:"arrow-right"},Ro=["onClick"],Po={class:"arrow-down"},jo=Vue.defineComponent({__name:"index",setup(t){const{route:e,router:n,visible:o,showTags:s,instance:u,multiTags:l,tagsViews:V,buttonTop:c,buttonLeft:g,showModel:f,translateX:d,pureSetting:p,activeIndex:_,getTabStyle:S,iconIsActive:x,linkIsActive:b,currentSelect:k,scheduleIsActive:E,getContextMenuStyle:w,closeMenu:h,onMounted:m,onMouseenter:M,onMouseleave:Z,transformI18n:T,onContentFullScreen:y}=$o(),R=Vue.ref(),J=Vue.ref(),W=Vue.ref(),D=Vue.ref(!1),ue=Ae().path,{VITE_HIDE_HOME:fe}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"true",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},{isFullscreen:pe,toggle:a}=Ht(),r=()=>{const v=l.value.findIndex(C=>C.query?ge(e.query,C.query):C.params?ge(e.params,C.params):C.path===e.path);i(v)},i=async v=>{var I,q;if(!u.refs["dynamic"+v])return;const B=u.refs["dynamic"+v][0],O=B==null?void 0:B.offsetLeft,K=B==null?void 0:B.offsetWidth,$=W.value?(I=W.value)==null?void 0:I.offsetWidth:0;await Vue.nextTick();const j=R.value?(q=R.value)==null?void 0:q.offsetWidth:0;$<=j?D.value=!0:D.value=!1,j<$||O===0?d.value=0:O<-d.value?d.value=-O+10:O>-d.value&&O+K<-d.value+$?d.value=Math.min(0,$-K-O-10):d.value=-(O-($-10-K))},N=v=>{var O;const C=W.value?(O=W.value)==null?void 0:O.offsetWidth:0,B=R.value?R.value.offsetWidth:0;v>0?d.value=Math.min(0,d.value+v):C=-(B-C)&&(d.value=Math.max(d.value+v,C-B)):d.value=0};function L(v,C){const B=l.value.some(K=>K.path===v);function O(K,$,j){B||K.forEach(I=>{const q=j+I.path;I.path===$||q===$?le().handleTags("push",{path:$,parentPath:`/${j.split("/")[1]}`,meta:I.meta,name:I.name}):I.children&&I.children.length>0&&O(I.children,$,j)})}O(n.options.routes,v,C)}function z(){const{fullPath:v,query:C}=Vue.unref(e);n.replace({path:"/redirect"+v,query:C}),De(e,"refresh")}function A(v,C,B){var j,I,q,ce;const O=l.value.findIndex(re=>{if(re.query){if(re.path===v.path)return re.query===v.query}else if(re.params){if(re.path===v.path)return re.params===v.params}else return re.path===v.path}),K=(re,ht,mt)=>{mt?le().handleTags("equal",[fe==="false"?tt[0]:Vue.toRaw(Ae()),v]):le().handleTags("splice","",{startIndex:re,length:ht}),r()};B==="other"?K(1,1,!0):B==="left"?K(1,O-1):B==="right"?K(O+1,l.value.length):K(O,1);const $=le().handleTags("slice");if(C===e.path){if(B==="left")return;(j=$[0])!=null&&j.query?n.push({name:$[0].name,query:$[0].query}):(I=$[0])!=null&&I.params?n.push({name:$[0].name,params:$[0].params}):n.push({path:$[0].path})}else{if(!l.value.length||l.value.some(re=>re.path===e.path))return;(q=$[0])!=null&&q.query?n.push({name:$[0].name,query:$[0].query}):(ce=$[0])!=null&&ce.params?n.push({name:$[0].name,params:$[0].params}):n.push({path:$[0].path})}}function H(v,C){A(v,v.path,C),De(e)}function F(v,C,B){if(C&&C.disabled)return;let O;switch(B?O={path:B.path,meta:B.meta,name:B.name,query:B==null?void 0:B.query,params:B==null?void 0:B.params}:O={path:e.path,meta:e.meta},v){case 0:z();break;case 1:H(O);break;case 2:H(O,"left");break;case 3:H(O,"right");break;case 4:H(O,"other");break;case 5:le().handleTags("splice","",{startIndex:1,length:l.value.length}),n.push(ue),De(e);break;case 6:a(),setTimeout(()=>{pe.value?(V[6].icon=Je,V[6].text=Q("buttons.hswholeExitFullScreen")):(V[6].icon=xe,V[6].text=Q("buttons.hswholeFullScreen"))},100);break;case 7:y(),setTimeout(()=>{p.hiddenSideBar?(V[7].icon=Je,V[7].text=Q("buttons.hscontentExitFullScreen")):(V[7].icon=xe,V[7].text=Q("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{me(e.fullPath,e.query)})}function te(v){const{key:C,item:B}=v;F(C,B)}function he(v,C){F(v,C,k.value)}function P(v){Array.of(1,2,3,4,5).forEach(C=>{V[C].show=v})}function ie(v){Array.of(1,2,3,4,5).forEach(C=>{V[C].disabled=v})}function me(v,C={},B=!1){const O=l.value,K=l.value.length;let $=-1;yt(C)?$=O.findIndex(j=>j.path===v):$=O.findIndex(j=>ge(j.query,C)),P(!0),B&&(V[0].show=!0),$===1&&K!==2?(V[2].show=!1,Array.of(1,3,4,5).forEach(j=>{V[j].disabled=!1}),V[2].disabled=!0):$===1&&K===2?(ie(!1),Array.of(2,3,4).forEach(j=>{V[j].show=!1,V[j].disabled=!0})):K-1===$&&$!==0?(V[3].show=!1,Array.of(1,2,4,5).forEach(j=>{V[j].disabled=!1}),V[3].disabled=!0):$===0||v===`/redirect${ue}`?ie(!0):ie(!1)}function ft(v,C){h(),v.path===ue?(P(!1),V[0].show=!0):e.path!==v.path&&e.name!==v.name?(V[0].show=!1,me(v.path,v.query)):l.value.length===2&&e.path!==v.path?(P(!0),V[4].show=!1):e.path===v.path&&me(v.path,v.query,!0),k.value=v;const B=105,O=Vue.unref(J).getBoundingClientRect().left,$=Vue.unref(J).offsetWidth-B,j=C.clientX-O+5;j>$?g.value=$:g.value=j,Fe().hiddenSideBar?c.value=C.clientY:c.value=C.clientY-40,Vue.nextTick(()=>{o.value=!0})}function pt(v){const{name:C,path:B}=v;C?v.query?n.push({name:C,query:v.query}):v.params?n.push({name:C,params:v.params}):n.push({name:C}):n.push({path:B})}return Vue.onBeforeMount(()=>{u&&(me(e.fullPath),Ve.on("tagViewsChange",v=>{Vue.unref(s)!==v&&(s.value=v)}),Ve.on("tagViewsShowModel",v=>{f.value=v}),Ve.on("changLayoutRoute",({indexPath:v,parentPath:C})=>{L(v,C),setTimeout(()=>{me(v)})}))}),Vue.watch([e],()=>{_.value=-1,r()}),Vue.watch(pe,()=>{V[6].icon=xe,V[6].text=Q("buttons.hswholeFullScreen")}),m(()=>{Ot(W,Qe(()=>{r()},200))}),(v,C)=>{const B=Vue.resolveComponent("IconifyIconOffline"),O=Vue.resolveComponent("router-link"),K=Vue.resolveComponent("el-dropdown-item"),$=Vue.resolveComponent("el-dropdown-menu"),j=Vue.resolveComponent("el-dropdown");return Vue.unref(s)?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",{key:0,ref_key:"containerDom",ref:J,class:"tags-view"},[Vue.withDirectives(Vue.createElementVNode("span",Ao,[Vue.createVNode(B,{icon:Vue.unref(Io),onClick:C[0]||(C[0]=I=>N(200))},null,8,["icon"])],512),[[Vue.vShow,D.value]]),Vue.createElementVNode("div",{ref_key:"scrollbarDom",ref:W,class:"scroll-container"},[Vue.createElementVNode("div",{class:"tab select-none",ref_key:"tabDom",ref:R,style:Vue.normalizeStyle(Vue.unref(S))},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(l),(I,q)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref_for:!0,ref:"dynamic"+q,key:q,class:Vue.normalizeClass(["scroll-item is-closable",Vue.unref(b)(I),v.$route.path===I.path&&Vue.unref(f)==="card"?"card-active":""]),onContextmenu:Vue.withModifiers(ce=>ft(I,ce),["prevent"]),onMouseenter:Vue.withModifiers(ce=>Vue.unref(M)(q),["prevent"]),onMouseleave:Vue.withModifiers(ce=>Vue.unref(Z)(q),["prevent"]),onClick:ce=>pt(I)},[Vue.createVNode(O,{to:I.path,class:"dark:!text-text_color_primary dark:hover:!text-primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(Vue.unref(T)(I.meta.title)),1)]),_:2},1032,["to"]),Vue.unref(x)(I,q)||q===Vue.unref(_)&&q!==0?(Vue.openBlock(),Vue.createElementBlock("span",{key:0,class:"el-icon-close",onClick:Vue.withModifiers(ce=>H(I),["stop"])},[Vue.createVNode(B,{icon:Vue.unref(Lo)},null,8,["icon"])],8,Oo)):Vue.createCommentVNode("",!0),Vue.unref(f)!=="card"?(Vue.openBlock(),Vue.createElementBlock("div",{key:1,ref_for:!0,ref:"schedule"+q,class:Vue.normalizeClass([Vue.unref(E)(I)])},null,2)):Vue.createCommentVNode("",!0)],42,Ho))),128))],4)],512),Vue.withDirectives(Vue.createElementVNode("span",Zo,[Vue.createVNode(B,{icon:Vue.unref(Pt),onClick:C[1]||(C[1]=I=>N(-200))},null,8,["icon"])],512),[[Vue.vShow,D.value]]),Vue.createVNode(Vue.Transition,{name:"el-zoom-in-top"},{default:Vue.withCtx(()=>[Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("ul",{key:Math.random(),style:Vue.normalizeStyle(Vue.unref(w)),class:"contextmenu"},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(V).slice(0,6),(I,q)=>(Vue.openBlock(),Vue.createElementBlock("div",{key:q,style:{display:"flex","align-items":"center"}},[I.show?(Vue.openBlock(),Vue.createElementBlock("li",{key:0,onClick:ce=>he(q,I)},[Vue.createVNode(B,{icon:I.icon},null,8,["icon"]),Vue.createTextVNode(" "+Vue.toDisplayString(Vue.unref(T)(I.text)),1)],8,Ro)):Vue.createCommentVNode("",!0)]))),128))],4)),[[Vue.vShow,Vue.unref(o)]])]),_:1}),Vue.createVNode(j,{trigger:"click",placement:"bottom-end",onCommand:te},{dropdown:Vue.withCtx(()=>[Vue.createVNode($,null,{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(V),(I,q)=>(Vue.openBlock(),Vue.createBlock(K,{key:q,command:{key:q,item:I},divided:I.divided,disabled:I.disabled},{default:Vue.withCtx(()=>[Vue.createVNode(B,{icon:I.icon},null,8,["icon"]),Vue.createTextVNode(" "+Vue.toDisplayString(Vue.unref(T)(I.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",Po,[Vue.createVNode(B,{icon:Vue.unref(To),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}});const Fo=Y(jo,[["__scopeId","data-v-62893417"]]),qo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Uo=Vue.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),Wo=Vue.createElementVNode("path",{d:"M2.88 18.054a35.897 35.897 0 0 1 8.531-16.32.8.8 0 0 1 1.178 0c.166.18.304.332.413.455a35.897 35.897 0 0 1 8.118 15.865c-2.141.451-4.34.747-6.584.874l-2.089 4.178a.5.5 0 0 1-.894 0l-2.089-4.178a44.019 44.019 0 0 1-6.584-.874zm6.698-1.123 1.157.066L12 19.527l1.265-2.53 1.157-.066a42.137 42.137 0 0 0 4.227-.454A33.913 33.913 0 0 0 12 4.09a33.913 33.913 0 0 0-6.649 12.387c1.395.222 2.805.374 4.227.454zM12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"},null,-1),Go=[Uo,Wo];function Ko(t,e){return Vue.openBlock(),Vue.createElementBlock("svg",qo,Go)}const lt={render:Ko},Xo={key:1},Jo=Vue.defineComponent({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:n,$config:o}=Re(),s=Vue.computed(()=>o==null?void 0:o.KeepAlive),u=Vue.computed(()=>f=>f.meta.transition),l=Vue.computed(()=>n==null?void 0:n.configure.hideTabs),V=Vue.computed(()=>(n==null?void 0:n.layout.layout)==="vertical"),c=Vue.computed(()=>[l.value&&V?"padding-top: 48px;":"",!l.value&&V?"padding-top: 85px;":"",l.value&&!V.value?"padding-top: 48px":"",!l.value&&!V.value?"padding-top: 85px;":"",e.fixedHeader?"":"padding-top: 0;"]),g=Vue.defineComponent({render(){return Vue.h(Vue.Transition,{name:u.value(this.route)&&this.route.meta.transition.enterTransition?"pure-classes-transition":u.value(this.route)&&this.route.meta.transition.name||"fade-transform",enterActiveClass:u.value(this.route)&&`animate__animated ${this.route.meta.transition.enterTransition}`,leaveActiveClass:u.value(this.route)&&`animate__animated ${this.route.meta.transition.leaveTransition}`,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})},props:{route:{type:void 0,required:!0}}});return(f,d)=>{const p=Vue.resolveComponent("el-backtop"),_=Vue.resolveComponent("el-scrollbar"),S=Vue.resolveComponent("router-view");return Vue.openBlock(),Vue.createElementBlock("section",{class:Vue.normalizeClass([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:Vue.normalizeStyle(c.value)},[Vue.createVNode(S,null,{default:Vue.withCtx(({Component:x,route:b})=>[e.fixedHeader?(Vue.openBlock(),Vue.createBlock(_,{key:0},{default:Vue.withCtx(()=>[Vue.createVNode(p,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(lt))]),_:1}),Vue.createVNode(Vue.unref(g),{route:b},{default:Vue.withCtx(()=>[s.value?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,include:Vue.unref(ee)().cachePageList},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(x),{key:b.fullPath,class:"main-content"}))],1032,["include"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(x),{key:b.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),_:2},1024)):(Vue.openBlock(),Vue.createElementBlock("div",Xo,[Vue.createVNode(Vue.unref(g),{route:b},{default:Vue.withCtx(()=>[s.value?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,include:Vue.unref(ee)().cachePageList},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(x),{key:b.fullPath,class:"main-content"}))],1032,["include"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(x),{key:b.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1})],6)}}});const Ye=Y(Jo,[["__scopeId","data-v-ac212d1d"]]),We=t=>(Vue.pushScopeId("data-v-2fe46f27"),t=t(),Vue.popScopeId(),t),Yo=We(()=>Vue.createElementVNode("div",{class:"right-panel-background"},null,-1)),Qo={class:"right-panel-items"},er={class:"project-configuration"},tr=We(()=>Vue.createElementVNode("h4",{class:"dark:text-white"},"项目配置",-1)),nr=We(()=>Vue.createElementVNode("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),or=Vue.defineComponent({__name:"index",setup(t){const e=Vue.ref(null),n=Vue.ref(!1),o=Vue.computed(()=>["mr-[20px]","outline-none","width-[20px]","height-[20px]","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]);return Zt(e,s=>{s.clientX>e.value.offsetLeft||(n.value=!1)}),Ve.on("openPanel",()=>{n.value=!0}),(s,u)=>{const l=Vue.resolveComponent("IconifyIconOffline");return Vue.openBlock(),Vue.createElementBlock("div",{class:Vue.normalizeClass([{show:n.value},"right-panel-container"])},[Yo,Vue.createElementVNode("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[Vue.createElementVNode("div",Qo,[Vue.createElementVNode("div",er,[tr,Vue.createElementVNode("span",{title:"关闭配置",class:Vue.normalizeClass(o.value)},[Vue.createVNode(l,{class:"dark:text-white",width:"20px",height:"20px",icon:Vue.unref(ut),onClick:u[0]||(u[0]=V=>n.value=!n.value)},null,8,["icon"])],2)]),nr,Vue.renderSlot(s.$slots,"default",{},void 0,!0)])],512)],2)}}});const rr=Y(or,[["__scopeId","data-v-2fe46f27"]]),oe=t=>(Vue.pushScopeId("data-v-5945f667"),t=t(),Vue.popScopeId(),t),ar={class:"pure-theme"},ur=oe(()=>Vue.createElementVNode("div",null,null,-1)),lr=oe(()=>Vue.createElementVNode("div",null,null,-1)),sr=[ur,lr],ir=oe(()=>Vue.createElementVNode("div",null,null,-1)),cr=oe(()=>Vue.createElementVNode("div",null,null,-1)),dr=[ir,cr],Vr=oe(()=>Vue.createElementVNode("div",null,null,-1)),fr=oe(()=>Vue.createElementVNode("div",null,null,-1)),pr=[Vr,fr],hr={class:"theme-color"},mr=["onClick"],vr={class:"setting"},_r=oe(()=>Vue.createElementVNode("span",{class:"dark:text-white"},"灰色模式",-1)),gr=oe(()=>Vue.createElementVNode("span",{class:"dark:text-white"},"色弱模式",-1)),yr=oe(()=>Vue.createElementVNode("span",{class:"dark:text-white"},"隐藏标签页",-1)),wr=oe(()=>Vue.createElementVNode("span",{class:"dark:text-white"},"侧边栏Logo",-1)),kr=oe(()=>Vue.createElementVNode("span",{class:"dark:text-white"},"标签页持久化",-1)),Cr=oe(()=>Vue.createElementVNode("span",{class:"dark:text-white"},"标签风格",-1)),br=Vue.defineComponent({__name:"index",setup(t){var pe,a;const e=VueRouter.useRouter(),{isDark:n}=nt(),{device:o,tooltipEffect:s}=se(),{$storage:u}=Re(),l=Vue.ref(),V=Vue.ref(),c=Vue.ref(),{dataTheme:g,layoutTheme:f,themeColors:d,dataThemeChange:p,setEpThemeColor:_,setLayoutThemeColor:S}=Mt();if(Vue.unref(f)){const r=Vue.unref(f).layout,i=Vue.unref(f).theme;Tt({scopeName:`layout-theme-${i}`}),fe(r)}const x=Vue.ref(((pe=u.configure)==null?void 0:pe.showModel)??"smart"),b=Vue.ref(((a=u.configure)==null?void 0:a.showLogo)??!0),k=Vue.reactive({greyVal:u.configure.grey,weakVal:u.configure.weak,tabsVal:u.configure.hideTabs,showLogo:u.configure.showLogo,showModel:u.configure.showModel,multiTagsCache:u.configure.multiTagsCache}),E=Vue.computed(()=>r=>({background:r})),w=Vue.computed(()=>r=>!(r==="light"&&n.value));function h(r,i){const N=u.configure;N[r]=i,u.configure=N}function m(r,i,N){const L=N||document.body;let{className:z}=L;z=z.replace(i,"").trim(),L.className=r?`${z} ${i} `:z}const M=r=>{m(k.greyVal,"html-grey",document.querySelector("html")),h("grey",r)},Z=r=>{m(k.weakVal,"html-weakness",document.querySelector("html")),h("weak",r)},T=()=>{const r=k.tabsVal;h("hideTabs",r),Ve.emit("tagViewsChange",r)},y=()=>{const r=k.multiTagsCache;h("multiTagsCache",r),le().multiTagsCacheChange(r)};function R(){wt(),ke().clear(),kt().clear();const{Grey:r,Weak:i,MultiTagsCache:N,EpThemeColor:L,Layout:z}=be();_e().setLayout(z),_(L),le().multiTagsCacheChange(N),m(r,"html-grey",document.querySelector("html")),m(i,"html-weakness",document.querySelector("html")),e.push("/login"),le().handleTags("equal",[...tt]),Ct()}function J(r){h("showModel",r),Ve.emit("tagViewsShowModel",r)}function W(){Vue.unref(b)?h("showLogo",!0):h("showLogo",!1),Ve.emit("logoChange",Vue.unref(b))}function D(r){r.forEach(i=>{m(!1,"is-select",Vue.unref(i))})}const ue=Vue.computed(()=>r=>r===f.value.theme&&f.value.theme!=="light"?"#fff":r===f.value.theme&&f.value.theme==="light"?"#1d2b45":"transparent");function fe(r){var i,N,L;f.value.layout=r,window.document.body.setAttribute("layout",r),u.layout={layout:r,theme:f.value.theme,darkMode:(i=u.layout)==null?void 0:i.darkMode,sidebarStatus:(N=u.layout)==null?void 0:N.sidebarStatus,epThemeColor:(L=u.layout)==null?void 0:L.epThemeColor},_e().setLayout(r)}return Vue.watch(u,({layout:r})=>{switch(r.layout){case"vertical":m(!0,"is-select",Vue.unref(V)),we(D([c]),50),we(D([l]),50);break;case"horizontal":m(!0,"is-select",Vue.unref(c)),we(D([V]),50),we(D([l]),50);break;case"mix":m(!0,"is-select",Vue.unref(l)),we(D([V]),50),we(D([c]),50);break}}),Vue.onBeforeMount(()=>{p(),Vue.nextTick(()=>{var r,i;k.greyVal&&((r=document.querySelector("html"))==null||r.setAttribute("class","html-grey")),k.weakVal&&((i=document.querySelector("html"))==null||i.setAttribute("class","html-weakness")),k.tabsVal&&T()})}),(r,i)=>{const N=Vue.resolveComponent("el-divider"),L=Vue.resolveComponent("el-switch"),z=Vue.resolveComponent("el-tooltip"),A=Vue.resolveComponent("IconifyIconOffline"),H=Vue.resolveComponent("el-icon"),F=Vue.resolveComponent("el-radio"),te=Vue.resolveComponent("el-radio-group"),he=Vue.resolveComponent("el-button");return Vue.openBlock(),Vue.createBlock(rr,null,{default:Vue.withCtx(()=>[Vue.createVNode(N,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("主题")]),_:1}),Vue.createVNode(L,{modelValue:Vue.unref(g),"onUpdate:modelValue":i[0]||(i[0]=P=>Vue.isRef(g)?g.value=P:null),"inline-prompt":"",class:"pure-datatheme","active-icon":Vue.unref(zt),"inactive-icon":Vue.unref(It),onChange:Vue.unref(p)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),Vue.createVNode(N,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("导航栏模式")]),_:1}),Vue.createElementVNode("ul",ar,[Vue.createVNode(z,{effect:Vue.unref(s),class:"item",content:"左侧模式",placement:"bottom","popper-class":"pure-tooltip"},{default:Vue.withCtx(()=>[Vue.createElementVNode("li",{class:Vue.normalizeClass(Vue.unref(f).layout==="vertical"?"is-select":""),ref_key:"verticalRef",ref:V,onClick:i[1]||(i[1]=P=>fe("vertical"))},sr,2)]),_:1},8,["effect"]),Vue.unref(o)!=="mobile"?(Vue.openBlock(),Vue.createBlock(z,{key:0,effect:Vue.unref(s),class:"item",content:"顶部模式",placement:"bottom","popper-class":"pure-tooltip"},{default:Vue.withCtx(()=>[Vue.createElementVNode("li",{class:Vue.normalizeClass(Vue.unref(f).layout==="horizontal"?"is-select":""),ref_key:"horizontalRef",ref:c,onClick:i[2]||(i[2]=P=>fe("horizontal"))},dr,2)]),_:1},8,["effect"])):Vue.createCommentVNode("",!0),Vue.unref(o)!=="mobile"?(Vue.openBlock(),Vue.createBlock(z,{key:1,effect:Vue.unref(s),class:"item",content:"混合模式",placement:"bottom","popper-class":"pure-tooltip"},{default:Vue.withCtx(()=>[Vue.createElementVNode("li",{class:Vue.normalizeClass(Vue.unref(f).layout==="mix"?"is-select":""),ref_key:"mixRef",ref:l,onClick:i[3]||(i[3]=P=>fe("mix"))},pr,2)]),_:1},8,["effect"])):Vue.createCommentVNode("",!0)]),Vue.createVNode(N,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("主题色")]),_:1}),Vue.createElementVNode("ul",hr,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(d),(P,ie)=>Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("li",{key:ie,style:Vue.normalizeStyle(E.value(P.color)),onClick:me=>Vue.unref(S)(P.themeColor)},[Vue.createVNode(H,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:ue.value(P.themeColor)},{default:Vue.withCtx(()=>[Vue.createVNode(A,{icon:Vue.unref(ye)},null,8,["icon"])]),_:2},1032,["color"])],12,mr)),[[Vue.vShow,w.value(P.themeColor)]])),128))]),Vue.createVNode(N,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("界面显示")]),_:1}),Vue.createElementVNode("ul",vr,[Vue.createElementVNode("li",null,[_r,Vue.createVNode(L,{modelValue:k.greyVal,"onUpdate:modelValue":i[4]||(i[4]=P=>k.greyVal=P),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:M},null,8,["modelValue"])]),Vue.createElementVNode("li",null,[gr,Vue.createVNode(L,{modelValue:k.weakVal,"onUpdate:modelValue":i[5]||(i[5]=P=>k.weakVal=P),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:Z},null,8,["modelValue"])]),Vue.createElementVNode("li",null,[yr,Vue.createVNode(L,{modelValue:k.tabsVal,"onUpdate:modelValue":i[6]||(i[6]=P=>k.tabsVal=P),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:T},null,8,["modelValue"])]),Vue.createElementVNode("li",null,[wr,Vue.createVNode(L,{modelValue:b.value,"onUpdate:modelValue":i[7]||(i[7]=P=>b.value=P),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:W},null,8,["modelValue"])]),Vue.createElementVNode("li",null,[kr,Vue.createVNode(L,{modelValue:k.multiTagsCache,"onUpdate:modelValue":i[8]||(i[8]=P=>k.multiTagsCache=P),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:y},null,8,["modelValue"])]),Vue.createElementVNode("li",null,[Cr,Vue.createVNode(te,{modelValue:x.value,"onUpdate:modelValue":i[9]||(i[9]=P=>x.value=P),size:"small",onChange:J},{default:Vue.withCtx(()=>[Vue.createVNode(F,{label:"card"},{default:Vue.withCtx(()=>[Vue.createTextVNode("卡片")]),_:1}),Vue.createVNode(F,{label:"smart"},{default:Vue.withCtx(()=>[Vue.createTextVNode("灵动")]),_:1})]),_:1},8,["modelValue"])])]),Vue.createVNode(N),Vue.createVNode(he,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:R},{default:Vue.withCtx(()=>[Vue.createVNode(A,{icon:Vue.unref(Me),width:"15",height:"15",style:{"margin-right":"4px"}},null,8,["icon"]),Vue.createTextVNode(" 清空缓存并返回登录页 ")]),_:1})]),_:1})}}});const xr=Y(br,[["__scopeId","data-v-5945f667"]]),Ge="/vue-pure-admin/logo.svg",st=t=>(Vue.pushScopeId("data-v-4cc9900f"),t=t(),Vue.popScopeId(),t),Nr=st(()=>Vue.createElementVNode("img",{src:Ge,alt:"logo"},null,-1)),Sr={class:"sidebar-title"},Br=st(()=>Vue.createElementVNode("img",{src:Ge,alt:"logo"},null,-1)),Er={class:"sidebar-title"},$r=Vue.defineComponent({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:n}=se(),o=Ae().path;return(s,u)=>{const l=Vue.resolveComponent("router-link");return Vue.openBlock(),Vue.createElementBlock("div",{class:Vue.normalizeClass(["sidebar-logo-container",{collapses:e.collapse}])},[Vue.createVNode(Vue.Transition,{name:"sidebarLogoFade"},{default:Vue.withCtx(()=>[e.collapse?(Vue.openBlock(),Vue.createBlock(l,{key:"props.collapse",title:Vue.unref(n),class:"sidebar-logo-link",to:Vue.unref(o)},{default:Vue.withCtx(()=>[Nr,Vue.createElementVNode("span",Sr,Vue.toDisplayString(Vue.unref(n)),1)]),_:1},8,["title","to"])):(Vue.openBlock(),Vue.createBlock(l,{key:"expand",title:Vue.unref(n),class:"sidebar-logo-link",to:Vue.unref(o)},{default:Vue.withCtx(()=>[Br,Vue.createElementVNode("span",Er,Vue.toDisplayString(Vue.unref(n)),1)]),_:1},8,["title","to"]))]),_:1})],2)}}});const Mr=Y($r,[["__scopeId","data-v-4cc9900f"]]);var Se={exports:{}},it={},Tr=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Oe={exports:{}};typeof Object.create=="function"?Oe.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Oe.exports=function(e,n){e.super_=n;var o=function(){};o.prototype=n.prototype,e.prototype=new o,e.prototype.constructor=e};var zr=Oe.exports;(function(t){var e=/%[sdj%]/g;t.format=function(a){if(!w(a)){for(var r=[],i=0;i=L)return H;switch(H){case"%s":return String(N[i++]);case"%d":return Number(N[i++]);case"%j":try{return JSON.stringify(N[i++])}catch{return"[Circular]"}default:return H}}),A=N[i];i=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),x(r)?i.showHidden=r:r&&t._extend(i,r),m(i.showHidden)&&(i.showHidden=!1),m(i.depth)&&(i.depth=2),m(i.colors)&&(i.colors=!1),m(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=u),c(i,a,i.depth)}t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(a,r){var i=s.styles[r];return i?"\x1B["+s.colors[i][0]+"m"+a+"\x1B["+s.colors[i][1]+"m":a}function l(a,r){return a}function V(a){var r={};return a.forEach(function(i,N){r[i]=!0}),r}function c(a,r,i){if(a.customInspect&&r&&R(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var N=r.inspect(i,a);return w(N)||(N=c(a,N,i)),N}var L=g(a,r);if(L)return L;var z=Object.keys(r),A=V(z);if(a.showHidden&&(z=Object.getOwnPropertyNames(r)),y(r)&&(z.indexOf("message")>=0||z.indexOf("description")>=0))return f(r);if(z.length===0){if(R(r)){var H=r.name?": "+r.name:"";return a.stylize("[Function"+H+"]","special")}if(M(r))return a.stylize(RegExp.prototype.toString.call(r),"regexp");if(T(r))return a.stylize(Date.prototype.toString.call(r),"date");if(y(r))return f(r)}var F="",te=!1,he=["{","}"];if(S(r)&&(te=!0,he=["[","]"]),R(r)){var P=r.name?": "+r.name:"";F=" [Function"+P+"]"}if(M(r)&&(F=" "+RegExp.prototype.toString.call(r)),T(r)&&(F=" "+Date.prototype.toUTCString.call(r)),y(r)&&(F=" "+f(r)),z.length===0&&(!te||r.length==0))return he[0]+F+he[1];if(i<0)return M(r)?a.stylize(RegExp.prototype.toString.call(r),"regexp"):a.stylize("[Object]","special");a.seen.push(r);var ie;return te?ie=d(a,r,i,A,z):ie=z.map(function(me){return p(a,r,i,A,me,te)}),a.seen.pop(),_(ie,F,he)}function g(a,r){if(m(r))return a.stylize("undefined","undefined");if(w(r)){var i="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(i,"string")}if(E(r))return a.stylize(""+r,"number");if(x(r))return a.stylize(""+r,"boolean");if(b(r))return a.stylize("null","null")}function f(a){return"["+Error.prototype.toString.call(a)+"]"}function d(a,r,i,N,L){for(var z=[],A=0,H=r.length;A-1&&(z?H=H.split(` -`).map(function(te){return" "+te}).join(` -`).substr(2):H=` -`+H.split(` -`).map(function(te){return" "+te}).join(` -`))):H=a.stylize("[Circular]","special")),m(A)){if(z&&L.match(/^\d+$/))return H;A=JSON.stringify(""+L),A.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(A=A.substr(1,A.length-2),A=a.stylize(A,"name")):(A=A.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),A=a.stylize(A,"string"))}return A+": "+H}function _(a,r,i){var N=a.reduce(function(L,z){return z.indexOf(` -`)>=0,L+z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return N>60?i[0]+(r===""?"":r+` - `)+" "+a.join(`, - `)+" "+i[1]:i[0]+r+" "+a.join(", ")+" "+i[1]}function S(a){return Array.isArray(a)}t.isArray=S;function x(a){return typeof a=="boolean"}t.isBoolean=x;function b(a){return a===null}t.isNull=b;function k(a){return a==null}t.isNullOrUndefined=k;function E(a){return typeof a=="number"}t.isNumber=E;function w(a){return typeof a=="string"}t.isString=w;function h(a){return typeof a=="symbol"}t.isSymbol=h;function m(a){return a===void 0}t.isUndefined=m;function M(a){return Z(a)&&W(a)==="[object RegExp]"}t.isRegExp=M;function Z(a){return typeof a=="object"&&a!==null}t.isObject=Z;function T(a){return Z(a)&&W(a)==="[object Date]"}t.isDate=T;function y(a){return Z(a)&&(W(a)==="[object Error]"||a instanceof Error)}t.isError=y;function R(a){return typeof a=="function"}t.isFunction=R;function J(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||typeof a>"u"}t.isPrimitive=J,t.isBuffer=Tr;function W(a){return Object.prototype.toString.call(a)}function D(a){return a<10?"0"+a.toString(10):a.toString(10)}var ue=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function fe(){var a=new Date,r=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),ue[a.getMonth()],r].join(" ")}t.log=function(){console.log("%s - %s",fe(),t.format.apply(t,arguments))},t.inherits=zr,t._extend=function(a,r){if(!r||!Z(r))return a;for(var i=Object.keys(r),N=i.length;N--;)a[i[N]]=r[i[N]];return a};function pe(a,r){return Object.prototype.hasOwnProperty.call(a,r)}})(it);var Ir=process.platform==="win32",ae=it;function Te(t,e){for(var n=[],o=0;o=0&&!t[o];o--);return n===0&&o===e?t:n>o?[]:t.slice(n,o+1)}var ct=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,Dr=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,U={};function ze(t){var e=ct.exec(t),n=(e[1]||"")+(e[2]||""),o=e[3]||"",s=Dr.exec(o),u=s[1],l=s[2],V=s[3];return[n,u,l,V]}function Ke(t){var e=ct.exec(t),n=e[1]||"",o=!!n&&n[1]!==":";return{device:n,isUnc:o,isAbsolute:o||!!e[2],tail:e[3]}}function dt(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}U.resolve=function(){for(var t="",e="",n=!1,o=arguments.length-1;o>=-1;o--){var s;if(o>=0?s=arguments[o]:t?(s=process.env["="+t],(!s||s.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(s=t+"\\")):s=process.cwd(),ae.isString(s)){if(!s)continue}else throw new TypeError("Arguments to path.resolve must be strings");var u=Ke(s),l=u.device,V=u.isUnc,c=u.isAbsolute,g=u.tail;if(!(l&&t&&l.toLowerCase()!==t.toLowerCase())&&(t||(t=l),n||(e=g+"\\"+e,n=c),t&&n))break}return V&&(t=dt(t)),e=Te(e.split(/[\\\/]+/),!n).join("\\"),t+(n?"\\":"")+e||"."};U.normalize=function(t){var e=Ke(t),n=e.device,o=e.isUnc,s=e.isAbsolute,u=e.tail,l=/[\\\/]$/.test(u);return u=Te(u.split(/[\\\/]+/),!s).join("\\"),!u&&!s&&(u="."),u&&l&&(u+="\\"),o&&(n=dt(n)),n+(s?"\\":"")+u};U.isAbsolute=function(t){return Ke(t).isAbsolute};U.join=function(){for(var t=[],e=0;e=-1&&!e;n--){var o=n>=0?arguments[n]:process.cwd();if(ae.isString(o)){if(!o)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=o+"/"+t,e=o[0]==="/"}return t=Te(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};G.normalize=function(t){var e=G.isAbsolute(t),n=t&&t[t.length-1]==="/";return t=Te(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&n&&(t+="/"),(e?"/":"")+t};G.isAbsolute=function(t){return t.charAt(0)==="/"};G.join=function(){for(var t="",e=0;e'},Zr=Or,Rr={width:1024,height:1024,body:''},Pr=Rr,jr={width:1024,height:1024,body:''},Fr=jr,qr={width:1024,height:1024,body:''},Ur=qr,Wr={key:0},Gr={key:1},Vt=Vue.defineComponent({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const e=t,{layout:n,isCollapse:o,tooltipEffect:s,getDivStyle:u}=se(),l=Vue.computed(()=>({width:"100%",textAlign:"center"})),V=Vue.computed(()=>({display:"flex",alignItems:"center"})),c=Vue.computed(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),g=Vue.computed(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:n.value==="horizontal"?"0 5px 0 0":o.value?"0 auto":"0 5px 0 0"})),f=Vue.computed(()=>o.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),d=Vue.computed(()=>h=>{var m;return o.value?{width:"100%",textAlign:(h==null?void 0:h.parentId)===null||n.value==="mix"&&((m=h==null?void 0:h.pathList)==null?void 0:m.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),p=Vue.computed(()=>{var h;return(h=be())!=null&&h.MenuArrowIconNoTransition?{"expand-close-icon":de(Pr),"expand-open-icon":de(Zr),"collapse-close-icon":de(Ur),"collapse-open-icon":de(Fr)}:""}),_=Vue.ref(null),S=new WeakMap,x=Vue.ref(null);function b(h){S.get(h)||Vue.nextTick(()=>{var m,M;((m=x.value)==null?void 0:m.scrollWidth)>((M=x.value)==null?void 0:M.clientWidth)?Object.assign(h,{showTooltip:!0}):Object.assign(h,{showTooltip:!1}),S.set(h,!0)})}function k(h,m){var Z;const M=((h==null?void 0:h.length)>1?h.toString().slice(0,1):h)+"...";return m&&!(o.value&&(m==null?void 0:m.parentId)===null)?n.value==="mix"&&((Z=m==null?void 0:m.pathList)==null?void 0:Z.length)===2&&o.value?M:h:M}function E(h=[],m){var Z,T;const M=h.filter(y=>(_.value=y,!0));return(T=(Z=M[0])==null?void 0:Z.meta)!=null&&T.showParent?!1:M.length===1?!0:M.length===0?(_.value={...m,path:"",noShowingChildren:!0},!0):!1}function w(h){const m=/^http(s?):\/\//;return m.test(h)||m.test(e.basePath)?h||e.basePath:Hr.posix.resolve(e.basePath,h)}return(h,m)=>{const M=Vue.resolveComponent("el-tooltip"),Z=Vue.resolveComponent("el-menu-item"),T=Vue.resolveComponent("sidebar-item",!0),y=Vue.resolveComponent("el-sub-menu");return E(e.item.children,e.item)&&(!_.value.children||_.value.noShowingChildren)?(Vue.openBlock(),Vue.createBlock(Z,{key:0,index:w(_.value.path),class:Vue.normalizeClass({"submenu-title-noDropdown":!t.isNest}),style:Vue.normalizeStyle(V.value)},{title:Vue.withCtx(()=>[Vue.createElementVNode("div",{style:Vue.normalizeStyle(Vue.unref(u))},[Vue.unref(n)==="horizontal"?(Vue.openBlock(),Vue.createElementBlock("span",Wr,Vue.toDisplayString(Vue.unref(ne)(_.value.meta.title)),1)):(Vue.openBlock(),Vue.createBlock(M,{key:1,placement:"top",effect:Vue.unref(s),offset:-10,disabled:!_.value.showTooltip},{content:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(Vue.unref(ne)(_.value.meta.title)),1)]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",{ref_key:"menuTextRef",ref:x,style:Vue.normalizeStyle(c.value),onMouseover:m[0]||(m[0]=R=>b(_.value))},Vue.toDisplayString(Vue.unref(ne)(_.value.meta.title)),37)]),_:1},8,["effect","disabled"])),Vue.createVNode(He,{extraIcon:_.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:Vue.withCtx(()=>{var R,J,W,D,ue;return[Vue.toRaw(e.item.meta.icon)?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,class:"sub-menu-icon",style:Vue.normalizeStyle(g.value)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(de)(Vue.toRaw(_.value.meta.icon)||e.item.meta&&Vue.toRaw(e.item.meta.icon)))))],4)):Vue.createCommentVNode("",!0),!((R=e.item)!=null&&R.meta.icon)&&Vue.unref(o)&&Vue.unref(n)==="vertical"&&((W=(J=e.item)==null?void 0:J.pathList)==null?void 0:W.length)===1?(Vue.openBlock(),Vue.createElementBlock("span",{key:1,style:Vue.normalizeStyle(l.value)},Vue.toDisplayString(k(Vue.unref(ne)(_.value.meta.title))),5)):Vue.createCommentVNode("",!0),!_.value.meta.icon&&Vue.unref(o)&&Vue.unref(n)==="mix"&&((ue=(D=e.item)==null?void 0:D.pathList)==null?void 0:ue.length)===2?(Vue.openBlock(),Vue.createElementBlock("span",{key:2,style:Vue.normalizeStyle(l.value)},Vue.toDisplayString(k(Vue.unref(ne)(_.value.meta.title))),5)):Vue.createCommentVNode("",!0)]}),_:1},8,["index","class","style"])):(Vue.openBlock(),Vue.createBlock(y,Vue.mergeProps({key:1,ref:"subMenu"},p.value,{index:w(e.item.path)}),{title:Vue.withCtx(()=>[Vue.toRaw(e.item.meta.icon)?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,style:Vue.normalizeStyle(g.value),class:"sub-menu-icon"},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(de)(e.item.meta&&Vue.toRaw(e.item.meta.icon)))))],4)):Vue.createCommentVNode("",!0),Vue.unref(n)==="horizontal"?(Vue.openBlock(),Vue.createElementBlock("span",Gr,Vue.toDisplayString(Vue.unref(ne)(e.item.meta.title)),1)):Vue.createCommentVNode("",!0),Vue.unref(o)&&Vue.toRaw(e.item.meta.icon)&&e.item.parentId===null?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",{key:2,style:Vue.normalizeStyle(d.value(e.item))},[Vue.unref(n)!=="horizontal"?(Vue.openBlock(),Vue.createBlock(M,{key:0,placement:"top",effect:Vue.unref(s),offset:-10,disabled:!e.item.showTooltip},{content:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(Vue.unref(ne)(e.item.meta.title)),1)]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",{ref_key:"menuTextRef",ref:x,style:Vue.normalizeStyle(f.value),onMouseover:m[1]||(m[1]=R=>b(e.item))},Vue.toDisplayString(k(Vue.unref(ne)(e.item.meta.title),e.item)),37)]),_:1},8,["effect","disabled"])):Vue.createCommentVNode("",!0),Vue.unref(o)?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(He,{key:1,extraIcon:e.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.item.children,R=>(Vue.openBlock(),Vue.createBlock(T,{key:R.path,"is-nest":!0,item:R,"base-path":w(R.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Kr={class:"container"},Xr=Vue.defineComponent({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,o=Vue.ref(!1),{tooltipEffect:s}=se(),u=Vue.computed(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","text-primary","cursor-pointer","duration-[100ms]","hover:text-primary","dark:hover:!text-white"]),l=()=>{e("toggleClick")};return(V,c)=>{const g=Vue.resolveComponent("IconifyIconOffline"),f=Vue.resolveComponent("el-tooltip");return Vue.openBlock(),Vue.createElementBlock("div",Kr,[Vue.createVNode(f,{placement:"right",visible:o.value,effect:Vue.unref(s),content:n.isActive?"点击折叠":"点击展开"},{default:Vue.withCtx(()=>[Vue.createVNode(g,{icon:Vue.unref(at),class:Vue.normalizeClass(u.value),style:Vue.normalizeStyle({transform:n.isActive?"none":"rotateY(180deg)"}),onClick:l,onMouseenter:c[0]||(c[0]=d=>o.value=!0),onMouseleave:c[1]||(c[1]=d=>o.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}});const Jr=Y(Xr,[["__scopeId","data-v-ed074d28"]]),Yr=Vue.defineComponent({__name:"vertical",setup(t){var _;const e=VueRouter.useRoute(),n=Vue.ref(((_=ke().getItem(`${Ce()}configure`))==null?void 0:_.showLogo)??!0),{routers:o,device:s,pureApp:u,isCollapse:l,menuSelect:V,toggleSideBar:c}=se(),g=Vue.ref([]),f=Vue.computed(()=>u.layout==="mix"&&s.value!=="mobile"?g.value:ee().wholeMenus),d=Vue.computed(()=>u.layout==="mix"?!1:f.value.length===0);function p(S){g.value=[];const x=Ze(S,ee().wholeMenus),b=Ee(x[0]||S,ee().wholeMenus);b!=null&&b.children&&(g.value=b==null?void 0:b.children)}return p(e.path),Vue.onBeforeMount(()=>{Ve.on("logoChange",S=>{n.value=S})}),Vue.watch(()=>[e.path,ee().wholeMenus],()=>{e.path.includes("/redirect")||(p(e.path),V(e.path,o))}),(S,x)=>{const b=Vue.resolveComponent("el-menu"),k=Vue.resolveComponent("el-scrollbar"),E=Vue.resolveDirective("loading");return Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",{class:Vue.normalizeClass(["sidebar-container",n.value?"has-logo":""])},[n.value?(Vue.openBlock(),Vue.createBlock(Mr,{key:0,collapse:Vue.unref(l)},null,8,["collapse"])):Vue.createCommentVNode("",!0),Vue.createVNode(k,{"wrap-class":"scrollbar-wrapper",class:Vue.normalizeClass([Vue.unref(s)==="mobile"?"mobile":"pc"])},{default:Vue.withCtx(()=>[Vue.createVNode(b,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:Vue.unref(l),"default-active":Vue.unref(e).path,"collapse-transition":!1,onSelect:x[0]||(x[0]=w=>Vue.unref(V)(w,Vue.unref(o)))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(f.value,w=>(Vue.openBlock(),Vue.createBlock(Vt,{key:w.path,item:w,"base-path":w.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),Vue.unref(s)!=="mobile"?(Vue.openBlock(),Vue.createBlock(Jr,{key:1,"is-active":Vue.unref(u).sidebar.opened,onToggleClick:Vue.unref(c)},null,8,["is-active","onToggleClick"])):Vue.createCommentVNode("",!0)],2)),[[E,d.value]])}}});const Qr=Y(Yr,[["__scopeId","data-v-f5a1735a"]]),ea=t=>(Vue.pushScopeId("data-v-adc37727"),t=t(),Vue.popScopeId(),t),ta={class:"horizontal-header"},na=ea(()=>Vue.createElementVNode("img",{src:Ge,alt:"logo"},null,-1)),oa={class:"horizontal-header-right"},ra={class:"check-zh"},aa={class:"check-en"},ua={class:"el-dropdown-link navbar-bg-hover"},la={key:0,class:"dark:text-white"},sa=["title"],ia=Vue.defineComponent({__name:"horizontal",setup(t){const e=Vue.ref(),{t:n,route:o,locale:s,translationCh:u,translationEn:l}=Pe(e),{title:V,routers:c,logout:g,backTopMenu:f,onPanel:d,menuSelect:p,username:_,avatarsStyle:S,getDropdownItemStyle:x,getDropdownItemClass:b}=se();return Vue.nextTick(()=>{var k;(k=e.value)==null||k.handleResize()}),Vue.watch(()=>o.path,()=>{p(o.path,c)}),(k,E)=>{const w=Vue.resolveComponent("el-menu"),h=Vue.resolveComponent("IconifyIconOffline"),m=Vue.resolveComponent("el-dropdown-item"),M=Vue.resolveComponent("el-dropdown-menu"),Z=Vue.resolveComponent("el-dropdown"),T=Vue.resolveDirective("loading");return Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",ta,[Vue.createElementVNode("div",{class:"horizontal-header-left",onClick:E[0]||(E[0]=(...y)=>Vue.unref(f)&&Vue.unref(f)(...y))},[na,Vue.createElementVNode("span",null,Vue.toDisplayString(Vue.unref(V)),1)]),Vue.createVNode(w,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":Vue.unref(o).path,onSelect:E[1]||(E[1]=y=>Vue.unref(p)(y,Vue.unref(c)))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(ee)().wholeMenus,y=>(Vue.openBlock(),Vue.createBlock(Vt,{key:y.path,item:y,"base-path":y.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),Vue.createElementVNode("div",oa,[Vue.createVNode(qe),Vue.createVNode(Ue,{id:"header-notice"}),Vue.createVNode(Z,{id:"header-translation",trigger:"click"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(M,{class:"translation"},{default:Vue.withCtx(()=>[Vue.createVNode(m,{style:Vue.normalizeStyle(Vue.unref(x)(Vue.unref(s),"zh")),class:Vue.normalizeClass(["dark:!text-white",Vue.unref(b)(Vue.unref(s),"zh")]),onClick:Vue.unref(u)},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createElementVNode("span",ra,[Vue.createVNode(h,{icon:Vue.unref(ye)},null,8,["icon"])],512),[[Vue.vShow,Vue.unref(s)==="zh"]]),Vue.createTextVNode(" 简体中文 ")]),_:1},8,["style","class","onClick"]),Vue.createVNode(m,{style:Vue.normalizeStyle(Vue.unref(x)(Vue.unref(s),"en")),class:Vue.normalizeClass(["dark:!text-white",Vue.unref(b)(Vue.unref(s),"en")]),onClick:Vue.unref(l)},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createElementVNode("span",aa,[Vue.createVNode(h,{icon:Vue.unref(ye)},null,8,["icon"])],512),[[Vue.vShow,Vue.unref(s)==="en"]]),Vue.createTextVNode(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(je),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),Vue.createVNode(Z,{trigger:"click"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(M,{class:"logout"},{default:Vue.withCtx(()=>[Vue.createVNode(m,{onClick:Vue.unref(g)},{default:Vue.withCtx(()=>[Vue.createVNode(h,{icon:Vue.unref(Me),style:{margin:"5px"}},null,8,["icon"]),Vue.createTextVNode(" "+Vue.toDisplayString(Vue.unref(n)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",ua,[Vue.createElementVNode("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:Vue.normalizeStyle(Vue.unref(S))},null,4),Vue.unref(_)?(Vue.openBlock(),Vue.createElementBlock("p",la,Vue.toDisplayString(Vue.unref(_)),1)):Vue.createCommentVNode("",!0)])]),_:1}),Vue.createElementVNode("span",{class:"set-icon navbar-bg-hover",title:Vue.unref(n)("buttons.hssystemSet"),onClick:E[2]||(E[2]=(...y)=>Vue.unref(d)&&Vue.unref(d)(...y))},[Vue.createVNode(h,{icon:Vue.unref($e)},null,8,["icon"])],8,sa)])])),[[T,Vue.unref(ee)().wholeMenus.length===0]])}}});const ca=Y(ia,[["__scopeId","data-v-adc37727"]]),da={key:0},Va=Vue.defineComponent({__name:"index",setup(t){const{isDark:e}=nt(),{layout:n}=Dt(),o=et(),s=Fe(),{$storage:u}=Re(),l=Vue.reactive({sidebar:Vue.computed(()=>_e().sidebar),device:Vue.computed(()=>_e().device),fixedHeader:Vue.computed(()=>s.fixedHeader),classes:Vue.computed(()=>({hideSidebar:!l.sidebar.opened,openSidebar:l.sidebar.opened,withoutAnimation:l.sidebar.withoutAnimation,mobile:l.device==="mobile"})),hideTabs:Vue.computed(()=>u==null?void 0:u.configure.hideTabs)});function V(d){var p,_,S,x;window.document.body.setAttribute("layout",d),u.layout={layout:`${d}`,theme:(p=u.layout)==null?void 0:p.theme,darkMode:(_=u.layout)==null?void 0:_.darkMode,sidebarStatus:(S=u.layout)==null?void 0:S.sidebarStatus,epThemeColor:(x=u.layout)==null?void 0:x.epThemeColor}}function c(d,p){_e().toggleDevice(d),_e().toggleSideBar(p,"resize")}let g=!0;Ve.on("resize",({detail:d})=>{if(o)return;const{width:p}=d;p<=760?V("vertical"):V(_e().layout),p>0&&p<=760?(c("mobile",!1),g=!0):p>760&&p<=990?g&&(c("desktop",!1),g=!1):p>990&&(l.sidebar.isClickCollapse||(c("desktop",!0),g=!0))}),Vue.onMounted(()=>{o&&c("mobile",!1)});const f=Vue.defineComponent({render(){return Vue.h("div",{class:{"fixed-header":l.fixedHeader},style:[l.hideTabs&&n.value.includes("horizontal")?e.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!s.hiddenSideBar&&(n.value.includes("vertical")||n.value.includes("mix"))?Vue.h(Co):null,!s.hiddenSideBar&&n.value.includes("horizontal")?Vue.h(ca):null,Vue.h(Fo)]})}});return(d,p)=>{const _=Vue.resolveComponent("el-backtop"),S=Vue.resolveComponent("el-scrollbar"),x=Vue.resolveDirective("resize");return Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",{class:Vue.normalizeClass(["app-wrapper",l.classes])},[Vue.withDirectives(Vue.createElementVNode("div",{class:"app-mask",onClick:p[0]||(p[0]=b=>Vue.unref(_e)().toggleSideBar())},null,512),[[Vue.vShow,l.device==="mobile"&&l.sidebar.opened&&Vue.unref(n).includes("vertical")]]),Vue.withDirectives(Vue.createVNode(Qr,null,null,512),[[Vue.vShow,!Vue.unref(s).hiddenSideBar&&(Vue.unref(n).includes("vertical")||Vue.unref(n).includes("mix"))]]),Vue.createElementVNode("div",{class:Vue.normalizeClass(["main-container",Vue.unref(s).hiddenSideBar?"main-hidden":""])},[l.fixedHeader?(Vue.openBlock(),Vue.createElementBlock("div",da,[Vue.createVNode(Vue.unref(f)),Vue.createVNode(Ye,{"fixed-header":l.fixedHeader},null,8,["fixed-header"])])):(Vue.openBlock(),Vue.createBlock(S,{key:1},{default:Vue.withCtx(()=>[Vue.createVNode(_,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(lt))]),_:1}),Vue.createVNode(Vue.unref(f)),Vue.createVNode(Ye,{"fixed-header":l.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),Vue.createVNode(xr)],2)),[[x]])}}});const Ba=Y(Va,[["__scopeId","data-v-f13df477"]]);export{Ba as default}; diff --git a/dist/static/js/index-17baec95.js b/dist/static/js/index-17baec95.js deleted file mode 100644 index c03780487..000000000 --- a/dist/static/js/index-17baec95.js +++ /dev/null @@ -1 +0,0 @@ -import{c as L,g as x,k as b,L as _,_ as h,H as k}from"./index-c61a73ff.js";var I={exports:{}};(function(v,w){(function(p,M){v.exports=M()})(L,function(){function p(e){var r=[];return e.AMapUI&&r.push(M(e.AMapUI)),e.Loca&&r.push(m(e.Loca)),Promise.all(r)}function M(e){return new Promise(function(r,a){var i=[];if(e.plugins)for(var t=0;tb.request("get","/getMapInfo",{params:v}),P="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAUCAMAAADSpG8HAAAC91BMVEUAAAAAJQskNR8JNS8AAAAHwgAu2CIAZQIDGgccFA8aTDwVvRAtwyUNqQgcZhgsXSUQQQ0BJQcHMwIpJw4BAQCM63sRRDct5xwHswAMOzAv4SAIxAAr3xofuhZWzUwYRTMqnDEvtyRDvjgKMSwBjQCWkJRdxFNnm2A0cy8KLSgknR0hQTEydjNDYzFhjFpocEsXig9wimhcTi45hy0kTy1Vg0hQLx0EPABCSkAYSxwATQc0UjIFCwOU/4mt/6YP7wXI/8Gh/5eK/4CG/3tJfla5/7K3/7Ck/5tL/0Yq/h0ANxDi/9DG/77D/7vA/7jG/7Cz/6yb/5Gd/4WY/4GF/oFrl3Zy9WtTh2Fj319F2kklakMgbjgOSDAx/yoALBgc8RECIQ7N/8bL/7Sx/6m6/6Oq/6Gm/6Cb/5aX/410oYRuln+U/3tklXNZjGtY019Ou15y/1RV/0YlZUUs1j1E/jk8/ysiYisWZiMFUh8CsR0i6hkj/xUd2RMa+hAAPgwK+gDa/8nT/8bW/7/a/73O/7m9/7W//6qLrZyt/5qk/5GY/JB/rI2k/4eK8YeO/3aI/3N6/21w/2Jf/2Jt72Jj5GJNemJLhmBEgVtOxlhR1lZAgVE2aFEzdE0ye0w/5Uk+nkdGzUY1TUVG4EQ+u0ElXzsicTkhZjgsijYsrDI37i0kgiwhSCwAoxsTnBsY0hALgBAAEQgN4gcHowUS/wT/////8PeWt8HI47WlxK/K/6aUuqGm/52f7Zyx/5qt/5XCupS9/5C+pI+U9456m4uI9oSS/4CE/4B+9nqa/3hkjHBVgWxUxWGA/2BNtl5WvFtS4Vll/1hGpFhY2ldd/FRa71Ne+lI6eFJAXlFq/05Ks01U2ExS9EcxTUAldz481zssRDszyDcfWTc9+jAXyzAx2S4PYSwIUiscOSkitygVMSgLwyYCvCEfpiEDyCAAvR4i3xwe1xwQaxoj9xgQShcKaBYKQBYMWBQU7BAMbA8X8A0J1wsFdgsAAABw6AJ/AAAAPXRSTlMAZ1XZBPPiqUM7/v7d04B2aFdSSRb68uzp5+fn5N/e3drT0MzKxsW+vr27tLOysLCrqqmno6CQj4aEd3Ig/fi2ogAAAkNJREFUKM9ioACwmIMIFCEBYz1DU34ODkFLHUYIEORWUpPjkeU1EICp0T1xYGfnpOLKNWveva2sfP3qcfG8eZGXI0J6LhR6+qtCzBPef2by5IiI4yEhR3p7D3U5uqfYrir/5rUh4VZH2MqwLRpgRUbbN62etWR+c1ODNxA0NDa22JbHxdXVbfBysusKu10rBFKkWPD1evjDm82+vr4+Pg4ODokOHeeyor28vP68CT6WHlLKDlLEFrv6pMuyvCY3N9dWPz+gukT/xZk7plXUJfwo9PCYNJEXrKjqTqhLdESLXXJAAEidb2LSglntu7ozD5fVxsbbV0uDFMnULAx1WTrFPy011S4ZqMzVISlyblZOZnd7WY1nvH09K0gRQOLrwIraHN3d01LtgOr8/Bfdzc3NzclCUiS17j7Qukspgenpju670+zsXNsWRU+dPi38VHkVXBHb++c5LssW7LXNCHR0dAwMdHdLufd09pxr02d/9Pz0036zBEgRT2xCePiSxZ1OtrYZGba2Ts62+x48K4qKmhOzvsR+Y221CkiR1o2El1O5lh91dnZ2cnJydp4wsW9FTBFQVRx36aMS+83gcALMbNumz8tXrcgODgrqCQoKDs7O7ltbURETE/e7tOrJrz1hHCBFnAcLPAqvzJyRl3c6/+LZ/PwZM89HFr9Yu/7Lh+8bqydstYCkAv2k/gKPyPnyzJJcc8WYmZmVNbVNFDxWxpZc7RdVZ4KlFSZrPj5+YWAqs2ESgQqxW3EKMTFxArnEAgDLUd+tnLfEzAAAAABJRU5ErkJggg==",B={id:"mapview",ref:"mapview"},R=Vue.defineComponent({name:"Amap",__name:"Amap",setup(v){let w,p;const M=Vue.getCurrentInstance(),m=Vue.reactive({loading:!_()}),o=()=>{p&&p.on("complete",()=>{m.loading=!1})};return Vue.onBeforeMount(()=>{if(!M)return;const{MapConfigure:n}=M.appContext.config.globalProperties.$config,{options:u}=n;E.load({key:n.amapKey,version:"2.0",plugins:["AMap.MarkerCluster"]}).then(d=>{p=new d.Map(M.refs.mapview,u),p.plugin(["AMap.ToolBar","AMap.MapType"],()=>{p.addControl(new d.ToolBar),p.addControl(new d.MapType({defaultType:0}))}),w=new d.MarkerCluster(p,[],{gridSize:80,maxZoom:14,renderMarker(A){const{marker:f,data:e}=A;if(Array.isArray(e)&&e[0]){const{driver:r,plateNumber:a,orientation:i}=e[0],t=``;f.setContent(t),f.setLabel({direction:"bottom",offset:new d.Pixel(-4,0),content:`
${a}(${r})
`}),f.setOffset(new d.Pixel(-18,-10)),f.on("click",({lnglat:l})=>{p.setZoom(13),p.setCenter(l)})}}}),S().then(({data:A})=>{const f=A.map(e=>({lnglat:[e.lng,e.lat],...e}));w&&w.setData(f)}).catch(A=>{}),o()}).catch(()=>{throw m.loading=!1,"地图加载失败,请重新加载"})}),Vue.onUnmounted(()=>{p&&p.destroy()&&p.clearEvents("click")}),(n,u)=>{const d=Vue.resolveDirective("loading");return Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",B,null,512)),[[d,m.loading]])}}});const D=h(R,[["__scopeId","data-v-2ac3e490"]]),V=k(D),F=Vue.defineComponent({name:"Map",__name:"index",setup(v){return(w,p)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(V)))}});const Y=h(F,[["__scopeId","data-v-5f5a86ec"]]);export{Y as default}; diff --git a/dist/static/js/index-19971265.js b/dist/static/js/index-19971265.js deleted file mode 100644 index 4cd4b8173..000000000 --- a/dist/static/js/index-19971265.js +++ /dev/null @@ -1,126 +0,0 @@ -import{_ as zt}from"./Bar.vue_vue_type_script_setup_true_lang-b4e121e4.js";import{_ as It}from"./Pie.vue_vue_type_script_setup_true_lang-ee222e50.js";import{_ as At}from"./Line.vue_vue_type_script_setup_true_lang-13252cba.js";import{T as me}from"./index-771e958b.js";import{d as Ft}from"./index-f1e7ee6d.js";import{_ as Lt}from"./Github.vue_vue_type_script_setup_true_lang-5f576015.js";import{ah as jt,_ as Dt}from"./index-c61a73ff.js";import{u as Rt}from"./index-68a687a6.js";import"./app-7adcc40f.js";import"./columns-d84895c5.js";import"./office-building-cc7a1721.js";import"./iphone-89710f1a.js";import"./user-3-fill-99d174b6.js";var Pt=Object.defineProperty,Ot=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Ze=(i,e,t)=>e in i?Pt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,U=(i,e)=>{for(var t in e||(e={}))Bt.call(e,t)&&Ze(i,t,e[t]);if(Ke)for(var t of Ke(e))Mt.call(e,t)&&Ze(i,t,e[t]);return i},fe=(i,e)=>Ot(i,Ht(e));const c="md-editor",Ut="md-editor-v3",qt="https://at.alicdn.com/t/c/font_2605852_gymddm8qwtd.js",O="https://cdnjs.cloudflare.com/ajax/libs",Kt=`${O}/highlight.js/11.7.0/highlight.min.js`,Ge={main:`${O}/prettier/2.8.0/standalone.js`,markdown:`${O}/prettier/2.8.0/parser-markdown.js`},We={css:`${O}/cropperjs/1.5.13/cropper.min.css`,js:`${O}/cropperjs/1.5.13/cropper.min.js`},Zt=`${O}/screenfull.js/5.2.0/screenfull.min.js`,bt=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","task","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],kt=["markdownTotal","=","scrollSwitch"],Xe={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Img Link",upload:"Upload Img",clip2upload:"Clip Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Word Count",scrollAuto:"Scroll Auto"}}},Gt=`${O}/mermaid/9.3.0/mermaid.min.js`,Qe={js:`${O}/KaTeX/0.16.3/katex.min.js`,css:`${O}/KaTeX/0.16.3/katex.min.css`},Ye={a11y:{light:`${O}/highlight.js/11.7.0/styles/a11y-light.min.css`,dark:`${O}/highlight.js/11.7.0/styles/a11y-dark.min.css`},atom:{light:`${O}/highlight.js/11.7.0/styles/atom-one-light.min.css`,dark:`${O}/highlight.js/11.7.0/styles/atom-one-dark.min.css`},github:{light:`${O}/highlight.js/11.7.0/styles/github.min.css`,dark:`${O}/highlight.js/11.7.0/styles/github-dark.min.css`},gradient:{light:`${O}/highlight.js/11.7.0/styles/gradient-light.min.css`,dark:`${O}/highlight.js/11.7.0/styles/gradient-dark.min.css`},kimbie:{light:`${O}/highlight.js/11.7.0/styles/kimbie-light.min.css`,dark:`${O}/highlight.js/11.7.0/styles/kimbie-dark.min.css`},paraiso:{light:`${O}/highlight.js/11.7.0/styles/paraiso-light.min.css`,dark:`${O}/highlight.js/11.7.0/styles/paraiso-dark.min.css`},qtcreator:{light:`${O}/highlight.js/11.7.0/styles/qtcreator-light.min.css`,dark:`${O}/highlight.js/11.7.0/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${O}/highlight.js/11.7.0/styles/stackoverflow-light.min.css`,dark:`${O}/highlight.js/11.7.0/styles/stackoverflow-dark.min.css`}},B={markedRenderer:i=>i,markedExtensions:[],markedOptions:{},editorExtensions:{},editorConfig:{}},Wt=i=>{if(i)for(const e in i){const t=i[e];t&&(B[e]=t)}};class Xt{constructor(){this.pools={}}remove(e,t,n){const o=this.pools[e]&&this.pools[e][t];o&&(this.pools[e][t]=o.filter(a=>a!==n))}clear(e){this.pools[e]={}}on(e,t){return this.pools[e]||(this.pools[e]={}),this.pools[e][t.name]||(this.pools[e][t.name]=[]),this.pools[e][t.name].push(t.callback),this.pools[e][t.name].includes(t.callback)}emit(e,t,...n){this.pools[e]||(this.pools[e]={});const o=this.pools[e][t];o&&o.forEach(a=>{try{a(...n)}catch(r){console.error(`${t} monitor event exception!`,r)}})}}var v=new Xt;const Y=(i,e=0,t=e)=>new Promise((n,l)=>{i.setSelectionRange?setTimeout(()=>{i.setSelectionRange(e,t),i.focus(),n(!0)},0):(console.error("Can not reset position!"),l())}),je=(i,e,t)=>{const{deviationStart:n=0,deviationEnd:l=0,direct:o=!1,select:a=!1}=t;let r="";if(i.selectionStart||i.selectionStart===0){const d=i.selectionStart,u=i.selectionEnd||0,{prefixVal:s=i.value.substring(0,d),subfixVal:m=i.value.substring(u,i.value.length)}=t;r=s+e+m,Y(i,a?d+n:d+e.length+l,d+e.length+l)}else r+=e;return o&&(i.value=r),r},Qt=(i,e={newWindow:!0,nofollow:!0})=>{i||console.error("error link!");const t=document.createElement("a");t.href=i,t.style.display="none",e.newWindow&&(t.target="_blank"),e.nofollow&&(t.rel="noopener noreferrer"),document.body.appendChild(t),t.click(),document.body.removeChild(t)},Je=(i,e)=>{const t=Fe(()=>{i.removeEventListener("scroll",n),i.addEventListener("scroll",n),e.removeEventListener("scroll",n),e.addEventListener("scroll",n)},50),n=l=>{const o=i.clientHeight,a=e.clientHeight,r=i.scrollHeight,d=e.scrollHeight,u=(r-o)/(d-a);l.target===i?(e.removeEventListener("scroll",n),e.scrollTo({top:i.scrollTop/u}),t()):(i.removeEventListener("scroll",n),i.scrollTo({top:e.scrollTop*u}),t())};return[t,()=>{i.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}]},Yt=(i,e="image.png")=>{const t=i.split(","),n=t[0].match(/:(.*?);/);if(n){const l=n[1],o=atob(t[1]);let a=o.length;const r=new Uint8Array(a);for(;a--;)r[a]=o.charCodeAt(a);return new File([r],e,{type:l})}return null},et=i=>{if(!i.trim())return i;const e=i.split(` -`),t=['"),`${i}${t.join("")}`},Fe=(i,e=200)=>{let t=0;return(...n)=>{t&&clearTimeout(t),t=window.setTimeout(()=>{i.apply(globalThis,n),t=0},e)}},Jt=(i,e=200)=>{let t=0,n=null;return(...l)=>{const o=a=>{t===0&&(t=a),a-t>=e?(i.apply(globalThis,n),n=null,t=0):window.requestAnimationFrame(o)};n===null&&window.requestAnimationFrame(o),n=l}},tt=(i,e="$")=>{const t=i.split(e);let n=e,l="";for(let o=1;o{var e;return navigator.userAgent.indexOf("Firefox")>-1?i.value.substring(i.selectionStart,i.selectionEnd):((e=window.getSelection())==null?void 0:e.toString())||""},tn=(i,e)=>{const t=i==null?void 0:i.getBoundingClientRect();if(e===document.documentElement)return t.top-e.clientTop;const n=e==null?void 0:e.getBoundingClientRect();return t.top-n.top},nn=(i,e)=>{const t=U({},i);return e.forEach(n=>{Reflect.deleteProperty(t,n)}),t},nt=(i,e)=>{const t=n=>{const l=i.parentElement||document.body,o=l.offsetWidth,a=l.offsetHeight,{clientWidth:r}=document.documentElement,{clientHeight:d}=document.documentElement,u=n.offsetX,s=n.offsetY,m=h=>{let V=h.x+document.body.scrollLeft-document.body.clientLeft-u,x=h.y+document.body.scrollTop-document.body.clientTop-s;V=V<1?1:V{document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",p)};document.addEventListener("mouseup",p)};return i.addEventListener("mousedown",t),()=>{i.removeEventListener("mousedown",t)}},Z=(i,e="")=>{const t=document.getElementById(i.id);t?e!==""&&i.onload instanceof Function&&(Reflect.get(window,e)?i.onload(new Event("load")):t.addEventListener("load",i.onload)):document.head.appendChild(i)},ln=Fe((i,e,t)=>{const n=document.getElementById(i);n&&n.setAttribute(e,t)},10),ze="onSave",Oe="changeCatalogVisible",Vt="changeFullscreen",it="pageFullscreenChanged",lt="fullscreenChanged",ot="previewChanged",rt="htmlPreviewChanged",at="catalogVisibleChanged",yt="textarea_focus",on=(i,e)=>{const{editorId:t,noPrettier:n,previewOnly:l}=i,o=Vue.reactive({buildFinished:!1,html:""}),a=r=>{if(r.target===document.querySelector(`#${i.editorId}-textarea`))if(v.emit(t,"selectTextChange"),r.ctrlKey||r.metaKey)switch(r.code){case"KeyS":{r.shiftKey?v.emit(t,"replace","strikeThrough"):(v.emit(t,ze,i.modelValue),r.preventDefault());break}case"KeyB":{v.emit(t,"replace","bold"),r.preventDefault();break}case"KeyU":{r.shiftKey?(v.emit(t,"replace","unorderedList"),r.preventDefault()):(v.emit(t,"replace","underline"),r.preventDefault());break}case"KeyI":{r.shiftKey?(v.emit(t,"openModals","image"),r.preventDefault()):(v.emit(t,"replace","italic"),r.preventDefault());break}case"Digit1":{v.emit(t,"replace","h1"),r.preventDefault();break}case"Digit2":{v.emit(t,"replace","h2"),r.preventDefault();break}case"Digit3":{v.emit(t,"replace","h3"),r.preventDefault();break}case"Digit4":{v.emit(t,"replace","h4"),r.preventDefault();break}case"Digit5":{v.emit(t,"replace","h5"),r.preventDefault();break}case"Digit6":{v.emit(t,"replace","h6"),r.preventDefault();break}case"ArrowUp":{v.emit(t,"replace","sup"),r.preventDefault();break}case"ArrowDown":{v.emit(t,"replace","sub"),r.preventDefault();break}case"KeyQ":{if(r.key==="a"){r.target.select();return}v.emit(t,"replace","quote"),r.preventDefault();break}case"KeyA":if(r.key==="q"){v.emit(t,"replace","quote"),r.preventDefault();break}else return;case"KeyO":{v.emit(t,"replace","orderedList"),r.preventDefault();break}case"KeyC":{if(r.shiftKey)v.emit(t,"replace","code"),r.preventDefault();else if(r.altKey)v.emit(t,"replace","codeRow"),r.preventDefault();else{r.preventDefault(),v.emit(t,"replace","ctrlC");break}break}case"KeyL":{v.emit(t,"openModals","link"),r.preventDefault();break}case"KeyZ":{if(r.key==="w")return;r.shiftKey?(v.emit(t,"ctrlShiftZ"),r.preventDefault()):(v.emit(t,"ctrlZ"),r.preventDefault());break}case"KeyW":if(r.key==="z"){r.shiftKey?(v.emit(t,"ctrlShiftZ"),r.preventDefault()):(v.emit(t,"ctrlZ"),r.preventDefault());break}else return;case"KeyF":{r.shiftKey&&(n||(v.emit(t,"replace","prettier"),r.preventDefault()));break}case"KeyT":{r.altKey&&r.shiftKey&&(v.emit(t,"replace","table"),r.preventDefault());break}case"KeyX":{v.emit(t,"replace","ctrlX"),r.preventDefault();break}case"KeyD":{r.preventDefault(),v.emit(t,"replace","ctrlD");break}}else r.code==="Tab"&&(r.preventDefault(),r.shiftKey?v.emit(t,"replace","shiftTab"):v.emit(t,"replace","tab"))};Vue.watch(()=>i.modelValue,()=>{o.buildFinished=!1}),Vue.onMounted(()=>{l||(window.addEventListener("keydown",a),v.on(t,{name:"buildFinished",callback(r){o.buildFinished=!0,o.html=r}}),v.on(t,{name:ze,callback(){const r=new Promise(d=>{if(o.buildFinished)d(o.html);else{const u=s=>{d(s),v.remove(t,"buildFinished",u)};v.on(t,{name:"buildFinished",callback:u})}});i.onSave?i.onSave(i.modelValue,r):e.emit("onSave",i.modelValue,r)}}))}),Vue.onBeforeUnmount(()=>{l||window.removeEventListener("keydown",a)})},rn=i=>{var e;const{editorId:t,previewOnly:n}=i,l=(e=B==null?void 0:B.editorExtensions)==null?void 0:e.highlight;Vue.provide("editorId",t),Vue.provide("tabWidth",i.tabWidth),Vue.provide("theme",Vue.computed(()=>i.theme)),Vue.provide("highlight",Vue.computed(()=>{const a=U(U({},Ye),l==null?void 0:l.css),r=i.codeStyleReverse&&i.codeStyleReverseList.includes(i.previewTheme)?"dark":i.theme;return{js:(l==null?void 0:l.js)||Kt,css:a[i.codeTheme]?a[i.codeTheme][r]:Ye.atom[r]}})),Vue.provide("historyLength",i.historyLength),Vue.provide("previewOnly",n),Vue.provide("showCodeRowNumber",i.showCodeRowNumber);const o=Vue.computed(()=>{var a;const r=U(U({},Xe),(a=B==null?void 0:B.editorConfig)==null?void 0:a.languageUserDefined);return r[i.language]?r[i.language]:Xe["zh-CN"]});Vue.provide("usedLanguageText",o),Vue.provide("previewTheme",Vue.computed(()=>i.previewTheme))},an=i=>{var e,t,n,l,o,a;const{noPrettier:r,previewOnly:d,noIconfont:u,noUploadImg:s}=i,{editorExtensions:m}=B,p=r||!!((t=(e=B.editorExtensions)==null?void 0:e.prettier)!=null&&t.prettierInstance),h=r||!!((l=(n=B.editorExtensions)==null?void 0:n.prettier)!=null&&l.parserMarkdownInstance),V=s||!!((a=(o=B.editorExtensions)==null?void 0:o.cropper)!=null&&a.instance);Vue.onMounted(()=>{var x,k,f,y;const C=document.createElement("script");C.src=(m==null?void 0:m.iconfont)||qt,C.id=`${c}-icon`;const _=document.createElement("script"),S=document.createElement("script");_.src=((x=m==null?void 0:m.prettier)==null?void 0:x.standaloneJs)||Ge.main,_.id=`${c}-prettier`,S.src=((k=m==null?void 0:m.prettier)==null?void 0:k.parserMarkdownJs)||Ge.markdown,S.id=`${c}-prettierMD`;const F=document.createElement("link");F.rel="stylesheet",F.href=((f=m==null?void 0:m.cropper)==null?void 0:f.css)||We.css,F.id=`${c}-cropperCss`;const z=document.createElement("script");z.src=((y=m==null?void 0:m.cropper)==null?void 0:y.js)||We.js,z.id=`${c}-cropper`,d||(u||Z(C),V||(Z(F),Z(z)),p||Z(_),h||Z(S))})},sn=(i,e)=>{const{editorId:t,previewOnly:n}=i,l=Vue.reactive({pageFullscreen:i.pageFullscreen,fullscreen:!1,preview:i.preview,htmlPreview:i.preview?!1:i.htmlPreview}),o=(d,u)=>{l[d]=u===void 0?!l[d]:u,d==="preview"&&l.preview?l.htmlPreview=!1:d==="htmlPreview"&&l.htmlPreview&&(l.preview=!1)};let a="";const r=()=>{l.pageFullscreen||l.fullscreen?document.body.style.overflow="hidden":document.body.style.overflow=a};return Vue.watch(()=>[l.pageFullscreen,l.fullscreen],r),Vue.onMounted(()=>{n||v.on(t,{name:"uploadImage",callback(d,u){const s=m=>{v.emit(t,"replace","image",{desc:"",urls:m}),u&&u()};i.onUploadImg?i.onUploadImg(d,s):e.emit("onUploadImg",d,s)}}),a=document.body.style.overflow,r()}),[l,o]},un=i=>{const{editorId:e}=i,t=Vue.ref(!1);Vue.onMounted(()=>{v.on(e,{name:Oe,callback:l=>{l===void 0?t.value=!t.value:t.value=l}})});const n=Vue.computed(()=>!i.toolbarsExclude.includes("catalog")&&i.toolbars.includes("catalog"));return[t,n]},cn=(i,e,t,n,l)=>{const{editorId:o}=i;Vue.watch(()=>n.pageFullscreen,r=>{v.emit(o,it,r)}),Vue.watch(()=>n.fullscreen,r=>{v.emit(o,lt,r)}),Vue.watch(()=>n.preview,r=>{v.emit(o,ot,r)}),Vue.watch(()=>n.htmlPreview,r=>{v.emit(o,rt,r)}),Vue.watch(t,r=>{v.emit(o,at,r)});const a={on(r,d){switch(r){case"pageFullscreen":{v.on(o,{name:it,callback(u){d(u)}});break}case"fullscreen":{v.on(o,{name:lt,callback(u){d(u)}});break}case"preview":{v.on(o,{name:ot,callback(u){d(u)}});break}case"htmlPreview":{v.on(o,{name:rt,callback(u){d(u)}});break}case"catalog":{v.on(o,{name:at,callback(u){d(u)}});break}}},togglePageFullscreen(r){l("pageFullscreen",r)},toggleFullscreen(r){v.emit(o,Vt,r)},togglePreview(r){l("preview",r)},toggleHtmlPreview(r){l("htmlPreview",r)},toggleCatalog(r){v.emit(o,Oe,r)},triggerSave(){v.emit(o,ze)},insert(r){v.emit(o,"replace","universal",{generate:r})},focus(){v.emit(o,yt)}};e.expose(a)};var dn=Vue.defineComponent({setup(){return()=>Vue.createVNode("div",{class:`${c}-divider`},null)}});const G=({instance:i,ctx:e,props:t={}},n="default")=>{const l=(i==null?void 0:i.$slots[n])||(e==null?void 0:e.slots[n]);return(l?l(i):"")||t[n]},mn=()=>({trigger:{type:String,default:"hover"},overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>()=>{}},relative:{type:String,default:"html"}});var ue=Vue.defineComponent({props:mn(),setup(i,e){const t=`${c}-dropdown-hidden`,n=Vue.reactive({overlayClass:[t],overlayStyle:{},triggerHover:!1,overlayHover:!1}),l=Vue.ref(),o=Vue.ref(),a=()=>{var m;i.trigger==="hover"&&(n.triggerHover=!0);const p=l.value,h=o.value,V=p.getBoundingClientRect(),x=p.offsetTop,k=p.offsetLeft,f=V.height,y=V.width,C=((m=document.querySelector(i.relative))==null?void 0:m.scrollLeft)||0;n.overlayStyle=fe(U({},n.overlayStyle),{top:x+f+"px",left:k-h.offsetWidth/2+y/2-C+"px"}),i.onChange(!0)},r=()=>{n.overlayHover=!0};Vue.watch(()=>i.visible,m=>{m?n.overlayClass=n.overlayClass.filter(p=>p!==t):n.overlayClass.push(t)});const d=m=>{const p=l.value,h=o.value;!p.contains(m.target)&&!h.contains(m.target)&&i.onChange(!1)};let u=-1;const s=m=>{l.value===m.target?n.triggerHover=!1:n.overlayHover=!1,clearTimeout(u),u=window.setTimeout(()=>{!n.overlayHover&&!n.triggerHover&&i.onChange(!1)},10)};return Vue.onMounted(()=>{i.trigger==="click"?(l.value.addEventListener("click",a),document.addEventListener("click",d)):(l.value.addEventListener("mouseenter",a),l.value.addEventListener("mouseleave",s),o.value.addEventListener("mouseenter",r),o.value.addEventListener("mouseleave",s))}),Vue.onBeforeUnmount(()=>{i.trigger==="click"?(l.value.removeEventListener("click",a),document.removeEventListener("click",d)):(l.value.removeEventListener("mouseenter",a),l.value.removeEventListener("mouseleave",s),o.value.removeEventListener("mouseenter",r),o.value.removeEventListener("mouseleave",s))}),()=>{const m=G({ctx:e}),p=G({props:i,ctx:e},"overlay"),h=Vue.cloneVNode(m instanceof Array?m[0]:m,{ref:l}),V=Vue.createVNode("div",{class:[`${c}-dropdown`,n.overlayClass],style:n.overlayStyle,ref:o},[Vue.createVNode("div",{class:`${c}-dropdown-overlay`},[p instanceof Array?p[0]:p])]);return[h,V]}}});const hn=()=>({title:{type:String,default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClose:{type:Function,default:()=>()=>{}},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>()=>{}},class:{type:String}});var He=Vue.defineComponent({props:hn(),setup(i,e){const t=Vue.ref(i.visible),n=Vue.ref([`${c}-modal`]),l=Vue.ref(),o=Vue.ref();let a=()=>{};const r=Vue.reactive({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}}),d=Vue.computed(()=>i.isFullscreen?{width:"100%",height:"100%"}:{width:i.width,height:i.height});return Vue.onMounted(()=>{a=nt(o.value,(u,s)=>{r.initPos.left=u+"px",r.initPos.top=s+"px"})}),Vue.onBeforeUnmount(()=>{a()}),Vue.watch(()=>i.isFullscreen,u=>{u?a():a=nt(o.value,(s,m)=>{r.initPos.left=s+"px",r.initPos.top=m+"px"})}),Vue.watch(()=>i.visible,u=>{u?(n.value.push("zoom-in"),t.value=u,Vue.nextTick(()=>{const s=l.value.offsetWidth/2,m=l.value.offsetHeight/2,p=document.documentElement.clientWidth/2,h=document.documentElement.clientHeight/2;r.initPos.left=p-s+"px",r.initPos.top=h-m+"px"}),setTimeout(()=>{n.value=n.value.filter(s=>s!=="zoom-in")},140)):(n.value.push("zoom-out"),setTimeout(()=>{n.value=n.value.filter(s=>s!=="zoom-out"),t.value=u},130))}),()=>{const u=G({ctx:e}),s=G({props:i,ctx:e},"title");return Vue.createVNode("div",{class:[i.class],style:{display:t.value?"block":"none"}},[Vue.createVNode("div",{class:`${c}-modal-mask`,onClick:i.onClose},null),Vue.createVNode("div",{class:n.value,style:U(U({},r.initPos),d.value),ref:l},[Vue.createVNode("div",{class:`${c}-modal-header`,ref:o},[s||""]),Vue.createVNode("div",{class:`${c}-modal-body`},[u]),Vue.createVNode("div",{class:`${c}-modal-func`},[i.showAdjust&&Vue.createVNode("div",{class:`${c}-modal-adjust`,onClick:m=>{m.stopPropagation(),i.isFullscreen?r.initPos=r.historyPos:(r.historyPos=r.initPos,r.initPos={left:"0",top:"0"}),i.onAdjust(!i.isFullscreen)}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":`#md-editor-icon-${i.isFullscreen?"suoxiao":"fangda"}`},null)])]),Vue.createVNode("div",{class:`${c}-modal-close`,onClick:m=>{m.stopPropagation(),i.onClose&&i.onClose()}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-close"},null)])])])])])}}});const pn=()=>({type:{type:String,default:"link"},visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}});var fn=Vue.defineComponent({props:pn(),setup(i){const e=Vue.inject("usedLanguageText"),t=Vue.inject("editorId"),n=Vue.computed(()=>{var o,a;switch(i.type){case"link":return(o=e.value.linkModalTips)==null?void 0:o.linkTitle;case"image":return(a=e.value.linkModalTips)==null?void 0:a.imageTitle;default:return""}}),l=Vue.reactive({desc:"",url:""});return Vue.watch(()=>i.visible,o=>{o||setTimeout(()=>{l.desc="",l.url=""},200)}),()=>Vue.createVNode(He,{title:n.value,visible:i.visible,onClose:i.onCancel},{default:()=>{var o,a,r,d,u;return[Vue.createVNode("div",{class:`${c}-form-item`},[Vue.createVNode("label",{class:`${c}-label`,for:`link-desc-${t}`},[(o=e.value.linkModalTips)==null?void 0:o.descLabel]),Vue.createVNode("input",{placeholder:(a=e.value.linkModalTips)==null?void 0:a.descLabelPlaceHolder,class:`${c}-input`,id:`link-desc-${t}`,type:"text",value:l.desc,onChange:s=>{l.desc=s.target.value},autocomplete:"off"},null)]),Vue.createVNode("div",{class:`${c}-form-item`},[Vue.createVNode("label",{class:`${c}-label`,for:`link-url-${t}`},[(r=e.value.linkModalTips)==null?void 0:r.urlLabel]),Vue.createVNode("input",{placeholder:(d=e.value.linkModalTips)==null?void 0:d.urlLabelPlaceHolder,class:`${c}-input`,id:`link-url-${t}`,type:"text",value:l.url,onChange:s=>{l.url=s.target.value},autocomplete:"off"},null)]),Vue.createVNode("div",{class:`${c}-form-item`},[Vue.createVNode("button",{class:[`${c}-btn`,`${c}-btn-row`],type:"button",onClick:()=>{i.onOk(l),l.desc="",l.url=""}},[(u=e.value.linkModalTips)==null?void 0:u.buttonOK])])]}})}});const gn=()=>({visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}});var vn=Vue.defineComponent({props:gn(),setup(i){var e,t;const n=Vue.inject("usedLanguageText"),l=Vue.inject("editorId");let o=(t=(e=B==null?void 0:B.editorExtensions)==null?void 0:e.cropper)==null?void 0:t.instance;const a=Vue.ref(),r=Vue.ref(),d=Vue.ref(),u=Vue.reactive({cropperInited:!1,imgSelected:!1,imgSrc:"",isFullscreen:!1});let s=null;Vue.watch(()=>i.visible,()=>{i.visible&&!u.cropperInited&&(o=o||window.Cropper,a.value.onchange=()=>{if(!o){v.emit(l,"errorCatcher",{name:"Cropper",message:"Cropper is undefined"});return}const p=a.value.files||[];if(u.imgSelected=!0,(p==null?void 0:p.length)>0){const h=new FileReader;h.onload=V=>{u.imgSrc=V.target.result,Vue.nextTick(()=>{s=new o(r.value,{viewMode:2,preview:`.${c}-clip-preview-target`})})},h.readAsDataURL(p[0])}})}),Vue.watch(()=>[u.imgSelected],()=>{d.value.style=""}),Vue.watch(()=>u.isFullscreen,()=>{Vue.nextTick(()=>{s==null||s.destroy(),d.value.style="",r.value&&(s=new o(r.value,{viewMode:2,preview:`.${c}-clip-preview-target`}))})});const m=()=>{s.clear(),s.destroy(),s=null,a.value.value="",u.imgSelected=!1};return()=>{var p;return Vue.createVNode(He,{class:`${c}-modal-clip`,title:(p=n.value.clipModalTips)==null?void 0:p.title,visible:i.visible,onClose:i.onCancel,showAdjust:!0,isFullscreen:u.isFullscreen,onAdjust:h=>{u.isFullscreen=h},width:"668px",height:"421px"},{default:()=>{var h,V;return[Vue.createVNode("div",{class:`${c}-form-item ${c}-clip`},[Vue.createVNode("div",{class:`${c}-clip-main`},[u.imgSelected?Vue.createVNode("div",{class:`${c}-clip-cropper`},[Vue.createVNode("img",{src:u.imgSrc,ref:r,style:{display:"none"},alt:""},null),Vue.createVNode("div",{class:`${c}-clip-delete`,onClick:m},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-delete"},null)])])]):Vue.createVNode("div",{class:`${c}-clip-upload`,onClick:()=>{a.value.click()}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-upload"},null)])])]),Vue.createVNode("div",{class:`${c}-clip-preview`},[Vue.createVNode("div",{class:`${c}-clip-preview-target`,ref:d},null)])]),Vue.createVNode("div",{class:`${c}-form-item`},[Vue.createVNode("button",{class:`${c}-btn`,type:"button",onClick:()=>{if(s){const x=s.getCroppedCanvas();v.emit(l,"uploadImage",[Yt(x.toDataURL("image/png"))],i.onOk),m()}}},[((h=n.value.clipModalTips)==null?void 0:h.buttonUpload)||((V=n.value.linkModalTips)==null?void 0:V.buttonOK)])]),Vue.createVNode("input",{ref:a,accept:"image/*",type:"file",multiple:!1,style:{display:"none"}},null)]}})}}});const bn=()=>({type:{type:String,default:"link"},linkVisible:{type:Boolean,default:!1},clipVisible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}});var kn=Vue.defineComponent({props:bn(),setup(i){return()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(fn,{type:i.type,visible:i.linkVisible,onOk:i.onOk,onCancel:i.onCancel},null),Vue.createVNode(vn,{visible:i.clipVisible,onOk:i.onOk,onCancel:i.onCancel},null)])}});const Vn=i=>{var e,t,n,l;const o=Vue.inject("editorId"),a=Vue.inject("previewOnly");let r=(t=(e=B.editorExtensions)==null?void 0:e.screenfull)==null?void 0:t.instance;const d=(l=(n=B.editorExtensions)==null?void 0:n.screenfull)==null?void 0:l.js,u=Vue.ref(!1),s=h=>{if(!r){v.emit(o,"errorCatcher",{name:"fullscreen",message:"fullscreen is undefined"});return}r.isEnabled?(u.value=!0,(h===void 0?!r.isFullscreen:h)?r.request():r.exit()):console.error("browser does not support screenfull!")},m=()=>{r&&r.isEnabled&&r.on("change",()=>{(u.value||i.setting.fullscreen)&&(u.value=!1,i.updateSetting("fullscreen"))})},p=()=>{r=window.screenfull,m()};return Vue.onMounted(()=>{if(m(),!a&&!r){const h=document.createElement("script");h.src=d||Zt,h.onload=p,h.id=`${c}-screenfull`,Z(h,"screenfull")}}),Vue.onMounted(()=>{a||v.on(o,{name:Vt,callback:s})}),{fullscreenHandler:s}},yn=()=>({tableShape:{type:Array,default:()=>[6,4]},onSelected:{type:Function,default:()=>{}}}),wn=Vue.defineComponent({name:"TableShape",props:yn(),setup(i){const e=Vue.reactive({x:-1,y:-1});return()=>Vue.createVNode("div",{class:`${c}-table-shape`,onMouseleave:()=>{e.x=-1,e.y=-1}},[new Array(i.tableShape[1]).fill("").map((t,n)=>Vue.createVNode("div",{class:`${c}-table-shape-row`,key:`table-shape-row-${n}`},[new Array(i.tableShape[0]).fill("").map((l,o)=>Vue.createVNode("div",{class:`${c}-table-shape-col`,key:`table-shape-col-${o}`,onMouseenter:()=>{e.x=n,e.y=o},onClick:()=>{i.onSelected(e)}},[Vue.createVNode("div",{class:[`${c}-table-shape-col-default`,n<=e.x&&o<=e.y&&`${c}-table-shape-col-include`]},null)]))]))])}}),xn=()=>({noPrettier:{type:Boolean},toolbars:{type:Array,default:()=>[]},toolbarsExclude:{type:Array,default:()=>[]},setting:{type:Object,default:()=>({})},screenfull:{type:Object,default:null},screenfullJs:{type:String,default:""},updateSetting:{type:Function,default:()=>()=>{}},tableShape:{type:Array,default:()=>[6,4]},defToolbars:{type:Object},noUploadImg:{type:Boolean}});var $n=Vue.defineComponent({name:"MDEditorToolbar",props:xn(),setup(i){const e=Vue.inject("editorId"),t=Vue.inject("usedLanguageText"),{fullscreenHandler:n}=Vn(i),l=`${e}-toolbar-wrapper`,o=Vue.reactive({title:!1,catalog:!1,image:!1,table:!1,mermaid:!1,katex:!1}),a=(h,V)=>{v.emit(e,"replace",h,V)},r=Vue.reactive({type:"link",linkVisible:!1,clipVisible:!1}),d=Vue.ref();Vue.onMounted(()=>{v.on(e,{name:"openModals",callback(h){r.type=h,r.linkVisible=!0}})});const u=Vue.computed(()=>{const h=i.toolbars.filter(f=>!i.toolbarsExclude.includes(f)),V=h.indexOf("="),x=V===-1?h:h.slice(0,V+1),k=V===-1?[]:h.slice(V,Number.MAX_SAFE_INTEGER);return[x,k]}),s=Vue.ref(),m=()=>{v.emit(e,"uploadImage",Array.from(s.value.files||[])),s.value.value=""};Vue.onMounted(()=>{s.value.addEventListener("change",m)});const p=h=>{var V,x,k,f,y,C,_,S,F,z,g,H,j,D,E,b,w,A,I,L,q,Q,K,le,ge,ve,be,te,ke,Ve,ne,ye,we,oe,re,xe,$e,ae,Ce,_e,de,Ue,qe;if(bt.includes(h))switch(h){case"-":return Vue.createVNode(dn,null,null);case"bold":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(V=t.value.toolbarTips)==null?void 0:V.bold,onClick:()=>{a("bold")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-bold"},null)])]);case"underline":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(x=t.value.toolbarTips)==null?void 0:x.underline,onClick:()=>{a("underline")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-underline"},null)])]);case"italic":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(k=t.value.toolbarTips)==null?void 0:k.italic,onClick:()=>{a("italic")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-italic"},null)])]);case"strikeThrough":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(f=t.value.toolbarTips)==null?void 0:f.strikeThrough,onClick:()=>{a("strikeThrough")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-strike-through"},null)])]);case"title":return Vue.createVNode(ue,{relative:`#${l}`,visible:o.title,onChange:R=>{o.title=R},overlay:Vue.createVNode("ul",{class:`${c}-menu`,onClick:()=>{o.title=!1}},[Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("h1")}},[(y=t.value.titleItem)==null?void 0:y.h1]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("h2")}},[(C=t.value.titleItem)==null?void 0:C.h2]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("h3")}},[(_=t.value.titleItem)==null?void 0:_.h3]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("h4")}},[(S=t.value.titleItem)==null?void 0:S.h4]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("h5")}},[(F=t.value.titleItem)==null?void 0:F.h5]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("h6")}},[(z=t.value.titleItem)==null?void 0:z.h6])])},{default:()=>{var R;return[Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(R=t.value.toolbarTips)==null?void 0:R.title},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-title"},null)])])]}});case"sub":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(g=t.value.toolbarTips)==null?void 0:g.sub,onClick:()=>{a("sub")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-sub"},null)])]);case"sup":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(H=t.value.toolbarTips)==null?void 0:H.sup,onClick:()=>{a("sup")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-sup"},null)])]);case"quote":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(j=t.value.toolbarTips)==null?void 0:j.quote,onClick:()=>{a("quote")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-quote"},null)])]);case"unorderedList":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(D=t.value.toolbarTips)==null?void 0:D.unorderedList,onClick:()=>{a("unorderedList")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-unordered-list"},null)])]);case"orderedList":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(E=t.value.toolbarTips)==null?void 0:E.orderedList,onClick:()=>{a("orderedList")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-ordered-list"},null)])]);case"task":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(b=t.value.toolbarTips)==null?void 0:b.task,onClick:()=>{a("task")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-task"},null)])]);case"codeRow":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(w=t.value.toolbarTips)==null?void 0:w.codeRow,onClick:()=>{a("codeRow")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-code-row"},null)])]);case"code":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(A=t.value.toolbarTips)==null?void 0:A.code,onClick:()=>{a("code")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-code"},null)])]);case"link":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(I=t.value.toolbarTips)==null?void 0:I.link,onClick:()=>{r.type="link",r.linkVisible=!0}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-link"},null)])]);case"image":return i.noUploadImg?Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(L=t.value.toolbarTips)==null?void 0:L.image,onClick:()=>{r.type="image",r.linkVisible=!0}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-image"},null)])]):Vue.createVNode(ue,{relative:`#${l}`,visible:o.image,onChange:R=>{o.image=R},overlay:Vue.createVNode("ul",{class:`${c}-menu`,onClick:()=>{o.title=!1}},[Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r.type="image",r.linkVisible=!0}},[(q=t.value.imgTitleItem)==null?void 0:q.link]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{s.value.click()}},[(Q=t.value.imgTitleItem)==null?void 0:Q.upload]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{r.clipVisible=!0}},[(K=t.value.imgTitleItem)==null?void 0:K.clip2upload])])},{default:()=>{var R;return[Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(R=t.value.toolbarTips)==null?void 0:R.image},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-image"},null)])])]}});case"table":return Vue.createVNode(ue,{relative:`#${l}`,visible:o.table,onChange:R=>{o.table=R},key:"bar-table",overlay:Vue.createVNode(wn,{tableShape:i.tableShape,onSelected:R=>{a("table",{selectedShape:R})}},null)},{default:()=>{var R;return[Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(R=t.value.toolbarTips)==null?void 0:R.table},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-table"},null)])])]}});case"revoke":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(le=t.value.toolbarTips)==null?void 0:le.revoke,onClick:()=>{v.emit(e,"ctrlZ")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-revoke"},null)])]);case"next":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(ge=t.value.toolbarTips)==null?void 0:ge.next,onClick:()=>{v.emit(e,"ctrlShiftZ")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-next"},null)])]);case"save":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(ve=t.value.toolbarTips)==null?void 0:ve.save,onClick:()=>{v.emit(e,ze)}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-baocun"},null)])]);case"prettier":return i.noPrettier?"":Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(be=t.value.toolbarTips)==null?void 0:be.prettier,onClick:()=>{a("prettier")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-prettier"},null)])]);case"pageFullscreen":return!i.setting.fullscreen&&Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(te=t.value.toolbarTips)==null?void 0:te.pageFullscreen,onClick:()=>{i.updateSetting("pageFullscreen")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":`#md-editor-icon-${i.setting.pageFullscreen?"suoxiao":"fangda"}`},null)])]);case"fullscreen":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(ke=t.value.toolbarTips)==null?void 0:ke.fullscreen,onClick:()=>{n()}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":`#md-editor-icon-${i.setting.fullscreen?"fullscreen-exit":"fullscreen"}`},null)])]);case"preview":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(Ve=t.value.toolbarTips)==null?void 0:Ve.preview,onClick:()=>{i.updateSetting("preview")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-preview"},null)])]);case"htmlPreview":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(ne=t.value.toolbarTips)==null?void 0:ne.htmlPreview,onClick:()=>{i.updateSetting("htmlPreview")}},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-coding"},null)])]);case"catalog":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(ye=t.value.toolbarTips)==null?void 0:ye.catalog,onClick:()=>{v.emit(e,Oe)},key:"bar-catalog"},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-catalog"},null)])]);case"github":return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(we=t.value.toolbarTips)==null?void 0:we.github,onClick:()=>Qt("https://github.com/imzbf/md-editor-v3")},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-github"},null)])]);case"mermaid":return Vue.createVNode(ue,{relative:`#${l}`,visible:o.mermaid,onChange:R=>{o.mermaid=R},overlay:Vue.createVNode("ul",{class:`${c}-menu`,onClick:()=>{o.mermaid=!1}},[Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("flow")}},[(oe=t.value.mermaid)==null?void 0:oe.flow]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("sequence")}},[(re=t.value.mermaid)==null?void 0:re.sequence]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("gantt")}},[(xe=t.value.mermaid)==null?void 0:xe.gantt]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("class")}},[($e=t.value.mermaid)==null?void 0:$e.class]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("state")}},[(ae=t.value.mermaid)==null?void 0:ae.state]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("pie")}},[(Ce=t.value.mermaid)==null?void 0:Ce.pie]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("relationship")}},[(_e=t.value.mermaid)==null?void 0:_e.relationship]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("journey")}},[(de=t.value.mermaid)==null?void 0:de.journey])]),key:"bar-mermaid"},{default:()=>{var R;return[Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(R=t.value.toolbarTips)==null?void 0:R.mermaid},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-mermaid"},null)])])]}});case"katex":return Vue.createVNode(ue,{relative:`#${l}`,visible:o.katex,onChange:R=>{o.katex=R},overlay:Vue.createVNode("ul",{class:`${c}-menu`,onClick:()=>{o.katex=!1}},[Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("katexInline")}},[(Ue=t.value.katex)==null?void 0:Ue.inline]),Vue.createVNode("li",{class:`${c}-menu-item`,onClick:()=>{a("katexBlock")}},[(qe=t.value.katex)==null?void 0:qe.block])]),key:"bar-katex"},{default:()=>{var R;return[Vue.createVNode("div",{class:`${c}-toolbar-item`,title:(R=t.value.toolbarTips)==null?void 0:R.katex},[Vue.createVNode("svg",{class:`${c}-icon`,"aria-hidden":"true"},[Vue.createVNode("use",{"xlink:href":"#md-editor-icon-formula"},null)])])]}})}else return i.defToolbars instanceof Array?i.defToolbars[h]||"":i.defToolbars&&i.defToolbars.children instanceof Array&&i.defToolbars.children[h]||""};return()=>{const h=u.value[0].map(x=>p(x)),V=u.value[1].map(x=>p(x));return Vue.createVNode(Vue.Fragment,null,[i.toolbars.length>0&&Vue.createVNode("div",{class:`${c}-toolbar-wrapper`,id:l},[Vue.createVNode("div",{class:`${c}-toolbar`},[Vue.createVNode("div",{class:`${c}-toolbar-left`,ref:d},[h]),Vue.createVNode("div",{class:`${c}-toolbar-right`},[V])])]),Vue.createVNode("input",{ref:s,accept:"image/*",type:"file",multiple:!0,style:{display:"none"}},null),Vue.createVNode(kn,{linkVisible:r.linkVisible,clipVisible:r.clipVisible,type:r.type,onCancel:()=>{r.linkVisible=!1,r.clipVisible=!1},onOk:x=>{x&&a(r.type,{desc:x.desc,url:x.url}),r.linkVisible=!1,r.clipVisible=!1}},null)])}}});function wt(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let ce=wt();function Cn(i){ce=i}const xt=/[&<>"']/,_n=new RegExp(xt.source,"g"),$t=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,En=new RegExp($t.source,"g"),Sn={"&":"&","<":"<",">":">",'"':""","'":"'"},st=i=>Sn[i];function M(i,e){if(e){if(xt.test(i))return i.replace(_n,st)}else if($t.test(i))return i.replace(En,st);return i}const Nn=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Ct(i){return i.replace(Nn,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Tn=/(^|[^\[])\^/g;function P(i,e){i=typeof i=="string"?i:i.source,e=e||"";const t={replace:(n,l)=>(l=l.source||l,l=l.replace(Tn,"$1"),i=i.replace(n,l),t),getRegex:()=>new RegExp(i,e)};return t}const zn=/[^\w:]/g,In=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ut(i,e,t){if(i){let n;try{n=decodeURIComponent(Ct(t)).replace(zn,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!In.test(t)&&(t=jn(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const Ee={},An=/^[^:]+:\/*[^/]*$/,Fn=/^([^:]+:)[\s\S]*$/,Ln=/^([^:]+:\/*[^/]*)[\s\S]*$/;function jn(i,e){Ee[" "+i]||(An.test(i)?Ee[" "+i]=i+"/":Ee[" "+i]=Ne(i,"/",!0)),i=Ee[" "+i];const t=i.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:i.replace(Fn,"$1")+e:e.charAt(0)==="/"?t?e:i.replace(Ln,"$1")+e:i+e}const Ie={exec:function(){}};function W(i){let e=1,t,n;for(;e{let d=!1,u=a;for(;--u>=0&&r[u]==="\\";)d=!d;return d?"|":" |"}),n=t.split(/ \|/);let l=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length1;)e&1&&(t+=i),e>>=1,i+=i;return t+i}function mt(i,e,t,n){const l=e.href,o=e.title?M(e.title):null,a=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){n.state.inLink=!0;const r={type:"link",raw:t,href:l,title:o,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,r}return{type:"image",raw:t,href:l,title:o,text:M(a)}}function Rn(i,e){const t=i.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(` -`).map(l=>{const o=l.match(/^\s+/);if(o===null)return l;const[a]=o;return a.length>=n.length?l.slice(n.length):l}).join(` -`)}class Be{constructor(e){this.options=e||ce}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Ne(n,` -`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],l=Rn(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:l}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const l=Ne(n,"#");(this.options.pedantic||!l||/ $/.test(l))&&(n=l.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const n=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(n,[]),text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,l,o,a,r,d,u,s,m,p,h,V,x=t[1].trim();const k=x.length>1,f={type:"list",raw:"",ordered:k,start:k?+x.slice(0,-1):"",loose:!1,items:[]};x=k?`\\d{1,9}\\${x.slice(-1)}`:`\\${x}`,this.options.pedantic&&(x=k?x:"[*+-]");const y=new RegExp(`^( {0,3}${x})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(V=!1,!(!(t=y.exec(e))||this.rules.block.hr.test(e)));){if(n=t[0],e=e.substring(n.length),s=t[2].split(` -`,1)[0],m=e.split(` -`,1)[0],this.options.pedantic?(a=2,h=s.trimLeft()):(a=t[2].search(/[^ ]/),a=a>4?1:a,h=s.slice(a),a+=t[1].length),d=!1,!s&&/^ *$/.test(m)&&(n+=m+` -`,e=e.substring(m.length+1),V=!0),!V){const _=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),S=new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),F=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),z=new RegExp(`^ {0,${Math.min(3,a-1)}}#`);for(;e&&(p=e.split(` -`,1)[0],s=p,this.options.pedantic&&(s=s.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(F.test(s)||z.test(s)||_.test(s)||S.test(e)));){if(s.search(/[^ ]/)>=a||!s.trim())h+=` -`+s.slice(a);else if(!d)h+=` -`+s;else break;!d&&!s.trim()&&(d=!0),n+=p+` -`,e=e.substring(p.length+1)}}f.loose||(u?f.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&(l=/^\[[ xX]\] /.exec(h),l&&(o=l[0]!=="[ ] ",h=h.replace(/^\[[ xX]\] +/,""))),f.items.push({type:"list_item",raw:n,task:!!l,checked:o,loose:!1,text:h}),f.raw+=n}f.items[f.items.length-1].raw=n.trimRight(),f.items[f.items.length-1].text=h.trimRight(),f.raw=f.raw.trimRight();const C=f.items.length;for(r=0;rF.type==="space"),S=_.every(F=>{const z=F.raw.split("");let g=0;for(const H of z)if(H===` -`&&(g+=1),g>1)return!0;return!1});!f.loose&&_.length&&S&&(f.loose=!0,f.items[r].loose=!0)}return f}}html(e){const t=this.rules.block.html.exec(e);if(t){const n={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};if(this.options.sanitize){const l=this.options.sanitizer?this.options.sanitizer(t[0]):M(t[0]);n.type="paragraph",n.text=l,n.tokens=this.lexer.inline(l)}return n}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(/\s+/g," "),l=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:l,title:o}}}table(e){const t=this.rules.block.table.exec(e);if(t){const n={type:"table",header:ct(t[1]).map(l=>({text:l})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(` -`):[]};if(n.header.length===n.align.length){n.raw=t[0];let l=n.align.length,o,a,r,d;for(o=0;o({text:u}));for(l=n.header.length,a=0;a/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):M(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const a=Ne(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{const a=Dn(t[2],"()");if(a>-1){const d=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,d).trim(),t[3]=""}}let l=t[2],o="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);a&&(l=a[1],o=a[3])}else o=t[3]?t[3].slice(1,-1):"";return l=l.trim(),/^$/.test(n)?l=l.slice(1):l=l.slice(1,-1)),mt(t,{href:l&&l.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let l=(n[2]||n[1]).replace(/\s+/g," ");if(l=t[l.toLowerCase()],!l){const o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return mt(n,l,n[0],this.lexer)}}emStrong(e,t,n=""){let l=this.rules.inline.emStrong.lDelim.exec(e);if(!l||l[3]&&n.match(/[\p{L}\p{N}]/u))return;const o=l[1]||l[2]||"";if(!o||o&&(n===""||this.rules.inline.punctuation.exec(n))){const a=l[0].length-1;let r,d,u=a,s=0;const m=l[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(m.lastIndex=0,t=t.slice(-1*e.length+a);(l=m.exec(t))!=null;){if(r=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!r)continue;if(d=r.length,l[3]||l[4]){u+=d;continue}else if((l[5]||l[6])&&a%3&&!((a+d)%3)){s+=d;continue}if(u-=d,u>0)continue;d=Math.min(d,d+u+s);const p=e.slice(0,a+l.index+(l[0].length-r.length)+d);if(Math.min(a,d)%2){const V=p.slice(1,-1);return{type:"em",raw:p,text:V,tokens:this.lexer.inlineTokens(V)}}const h=p.slice(2,-2);return{type:"strong",raw:p,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const l=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return l&&o&&(n=n.substring(1,n.length-1)),n=M(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let l,o;return n[2]==="@"?(l=M(this.options.mangle?t(n[1]):n[1]),o="mailto:"+l):(l=M(n[1]),o=l),{type:"link",raw:n[0],text:l,href:o,tokens:[{type:"text",raw:l,text:l}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let l,o;if(n[2]==="@")l=M(this.options.mangle?t(n[0]):n[0]),o="mailto:"+l;else{let a;do a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(a!==n[0]);l=M(n[0]),n[1]==="www."?o="http://"+l:o=l}return{type:"link",raw:n[0],text:l,href:o,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let l;return this.lexer.state.inRawBlock?l=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):M(n[0]):n[0]:l=M(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:l}}}}const T={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Ie,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};T._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;T._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;T.def=P(T.def).replace("label",T._label).replace("title",T._title).getRegex();T.bullet=/(?:[*+-]|\d{1,9}[.)])/;T.listItemStart=P(/^( *)(bull) */).replace("bull",T.bullet).getRegex();T.list=P(T.list).replace(/bull/g,T.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+T.def.source+")").getRegex();T._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";T._comment=/|$)/;T.html=P(T.html,"i").replace("comment",T._comment).replace("tag",T._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();T.paragraph=P(T._paragraph).replace("hr",T.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",T._tag).getRegex();T.blockquote=P(T.blockquote).replace("paragraph",T.paragraph).getRegex();T.normal=W({},T);T.gfm=W({},T.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});T.gfm.table=P(T.gfm.table).replace("hr",T.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",T._tag).getRegex();T.gfm.paragraph=P(T._paragraph).replace("hr",T.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",T.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",T._tag).getRegex();T.pedantic=W({},T.normal,{html:P(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",T._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ie,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:P(T.normal._paragraph).replace("hr",T.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",T.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const $={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ie,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ie,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~";$.punctuation=P($.punctuation).replace(/punctuation/g,$._punctuation).getRegex();$.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;$.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;$._comment=P(T._comment).replace("(?:-->|$)","-->").getRegex();$.emStrong.lDelim=P($.emStrong.lDelim).replace(/punct/g,$._punctuation).getRegex();$.emStrong.rDelimAst=P($.emStrong.rDelimAst,"g").replace(/punct/g,$._punctuation).getRegex();$.emStrong.rDelimUnd=P($.emStrong.rDelimUnd,"g").replace(/punct/g,$._punctuation).getRegex();$._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;$._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;$._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;$.autolink=P($.autolink).replace("scheme",$._scheme).replace("email",$._email).getRegex();$._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;$.tag=P($.tag).replace("comment",$._comment).replace("attribute",$._attribute).getRegex();$._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;$._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;$._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;$.link=P($.link).replace("label",$._label).replace("href",$._href).replace("title",$._title).getRegex();$.reflink=P($.reflink).replace("label",$._label).replace("ref",T._label).getRegex();$.nolink=P($.nolink).replace("ref",T._label).getRegex();$.reflinkSearch=P($.reflinkSearch,"g").replace("reflink",$.reflink).replace("nolink",$.nolink).getRegex();$.normal=W({},$);$.pedantic=W({},$.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",$._label).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$._label).getRegex()});$.gfm=W({},$.normal,{escape:P($.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class ee{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ce,this.options.tokenizer=this.options.tokenizer||new Be,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:T.normal,inline:$.normal};this.options.pedantic?(t.block=T.pedantic,t.inline=$.pedantic):this.options.gfm&&(t.block=T.gfm,this.options.breaks?t.inline=$.breaks:t.inline=$.gfm),this.tokenizer.rules=t}static get rules(){return{block:T,inline:$}}static lex(e,t){return new ee(t).lex(e)}static lexInline(e,t){return new ee(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,` -`),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(r,d,u)=>d+" ".repeat(u.length));let n,l,o,a;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>(n=r.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&t.length>0?t[t.length-1].raw+=` -`:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=` -`+n.raw,l.text+=` -`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&(l.type==="paragraph"||l.type==="text")?(l.raw+=` -`+n.raw,l.text+=` -`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=l.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(o=e,this.options.extensions&&this.options.extensions.startBlock){let r=1/0;const d=e.slice(1);let u;this.options.extensions.startBlock.forEach(function(s){u=s.call({lexer:this},d),typeof u=="number"&&u>=0&&(r=Math.min(r,u))}),r<1/0&&r>=0&&(o=e.substring(0,r+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o))){l=t[t.length-1],a&&l.type==="paragraph"?(l.raw+=` -`+n.raw,l.text+=` -`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n),a=o.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&l.type==="text"?(l.raw+=` -`+n.raw,l.text+=` -`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n);continue}if(e){const r="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(r);break}else throw new Error(r)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,l,o,a=e,r,d,u;if(this.tokens.links){const s=Object.keys(this.tokens.links);if(s.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)s.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,r.index)+"["+dt("a",r[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,r.index)+"["+dt("a",r[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(r=this.tokenizer.rules.inline.escapedEmSt.exec(a))!=null;)a=a.slice(0,r.index+r[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(d||(u=""),d=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(s=>(n=s.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),l=t[t.length-1],l&&n.type==="text"&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),l=t[t.length-1],l&&n.type==="text"&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,a,u)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e,ht)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,ht))){e=e.substring(n.raw.length),t.push(n);continue}if(o=e,this.options.extensions&&this.options.extensions.startInline){let s=1/0;const m=e.slice(1);let p;this.options.extensions.startInline.forEach(function(h){p=h.call({lexer:this},m),typeof p=="number"&&p>=0&&(s=Math.min(s,p))}),s<1/0&&s>=0&&(o=e.substring(0,s+1))}if(n=this.tokenizer.inlineText(o,Pn)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(u=n.raw.slice(-1)),d=!0,l=t[t.length-1],l&&l.type==="text"?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(e){const s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return t}}class Me{constructor(e){this.options=e||ce}code(e,t,n){const l=(t||"").match(/\S*/)[0];if(this.options.highlight){const o=this.options.highlight(e,l);o!=null&&o!==e&&(n=!0,e=o)}return e=e.replace(/\n$/,"")+` -`,l?'
'+(n?e:M(e,!0))+`
-`:"
"+(n?e:M(e,!0))+`
-`}blockquote(e){return`
-${e}
-`}html(e){return e}heading(e,t,n,l){if(this.options.headerIds){const o=this.options.headerPrefix+l.slug(n);return`${e} -`}return`${e} -`}hr(){return this.options.xhtml?`
-`:`
-`}list(e,t,n){const l=t?"ol":"ul",o=t&&n!==1?' start="'+n+'"':"";return"<"+l+o+`> -`+e+" -`}listitem(e){return`
  • ${e}
  • -`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    -`}table(e,t){return t&&(t=`${t}`),` - -`+e+` -`+t+`
    -`}tablerow(e){return` -${e} -`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+` -`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,n){if(e=ut(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let l='",l}image(e,t,n){if(e=ut(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let l=`${n}":">",l}text(e){return e}}class Et{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class St{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,l=0;if(this.seen.hasOwnProperty(n)){l=this.seen[e];do l++,n=e+"-"+l;while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=l,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class X{constructor(e){this.options=e||ce,this.options.renderer=this.options.renderer||new Me,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Et,this.slugger=new St}static parse(e,t){return new X(t).parse(e)}static parseInline(e,t){return new X(t).parseInline(e)}parse(e,t=!0){let n="",l,o,a,r,d,u,s,m,p,h,V,x,k,f,y,C,_,S,F;const z=e.length;for(l=0;l0&&y.tokens[0].type==="paragraph"?(y.tokens[0].text=S+" "+y.tokens[0].text,y.tokens[0].tokens&&y.tokens[0].tokens.length>0&&y.tokens[0].tokens[0].type==="text"&&(y.tokens[0].tokens[0].text=S+" "+y.tokens[0].tokens[0].text)):y.tokens.unshift({type:"text",text:S}):f+=S),f+=this.parse(y.tokens,k),p+=this.renderer.listitem(f,_,C);n+=this.renderer.list(p,V,x);continue}case"html":{n+=this.renderer.html(h.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(h.tokens));continue}case"text":{for(p=h.tokens?this.parseInline(h.tokens):h.text;l+1"u"||i===null)throw new Error("marked(): input parameter is undefined or null");if(typeof i!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected");if(typeof e=="function"&&(t=e,e=null),e=W({},N.defaults,e||{}),_t(e),t){const l=e.highlight;let o;try{o=ee.lex(i,e)}catch(d){return t(d)}const a=function(d){let u;if(!d)try{e.walkTokens&&N.walkTokens(o,e.walkTokens),u=X.parse(o,e)}catch(s){d=s}return e.highlight=l,d?t(d):t(null,u)};if(!l||l.length<3||(delete e.highlight,!o.length))return a();let r=0;N.walkTokens(o,function(d){d.type==="code"&&(r++,setTimeout(()=>{l(d.text,d.lang,function(u,s){if(u)return a(u);s!=null&&s!==d.text&&(d.text=s,d.escaped=!0),r--,r===0&&a()})},0))}),r===0&&a();return}function n(l){if(l.message+=` -Please report this to https://github.com/markedjs/marked.`,e.silent)return"

    An error occurred:

    "+M(l.message+"",!0)+"
    ";throw l}try{const l=ee.lex(i,e);if(e.walkTokens){if(e.async)return Promise.all(N.walkTokens(l,e.walkTokens)).then(()=>X.parse(l,e)).catch(n);N.walkTokens(l,e.walkTokens)}return X.parse(l,e)}catch(l){n(l)}}N.options=N.setOptions=function(i){return W(N.defaults,i),Cn(N.defaults),N};N.getDefaults=wt;N.defaults=ce;N.use=function(...i){const e=N.defaults.extensions||{renderers:{},childTokens:{}};i.forEach(t=>{const n=W({},t);if(n.async=N.defaults.async||n.async,t.extensions&&(t.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if(l.renderer){const o=e.renderers[l.name];o?e.renderers[l.name]=function(...a){let r=l.renderer.apply(this,a);return r===!1&&(r=o.apply(this,a)),r}:e.renderers[l.name]=l.renderer}if(l.tokenizer){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[l.level]?e[l.level].unshift(l.tokenizer):e[l.level]=[l.tokenizer],l.start&&(l.level==="block"?e.startBlock?e.startBlock.push(l.start):e.startBlock=[l.start]:l.level==="inline"&&(e.startInline?e.startInline.push(l.start):e.startInline=[l.start]))}l.childTokens&&(e.childTokens[l.name]=l.childTokens)}),n.extensions=e),t.renderer){const l=N.defaults.renderer||new Me;for(const o in t.renderer){const a=l[o];l[o]=(...r)=>{let d=t.renderer[o].apply(l,r);return d===!1&&(d=a.apply(l,r)),d}}n.renderer=l}if(t.tokenizer){const l=N.defaults.tokenizer||new Be;for(const o in t.tokenizer){const a=l[o];l[o]=(...r)=>{let d=t.tokenizer[o].apply(l,r);return d===!1&&(d=a.apply(l,r)),d}}n.tokenizer=l}if(t.walkTokens){const l=N.defaults.walkTokens;n.walkTokens=function(o){let a=[];return a.push(t.walkTokens.call(this,o)),l&&(a=a.concat(l.call(this,o))),a}}N.setOptions(n)})};N.walkTokens=function(i,e){let t=[];for(const n of i)switch(t=t.concat(e.call(N,n)),n.type){case"table":{for(const l of n.header)t=t.concat(N.walkTokens(l.tokens,e));for(const l of n.rows)for(const o of l)t=t.concat(N.walkTokens(o.tokens,e));break}case"list":{t=t.concat(N.walkTokens(n.items,e));break}default:N.defaults.extensions&&N.defaults.extensions.childTokens&&N.defaults.extensions.childTokens[n.type]?N.defaults.extensions.childTokens[n.type].forEach(function(l){t=t.concat(N.walkTokens(n[l],e))}):n.tokens&&(t=t.concat(N.walkTokens(n.tokens,e)))}return t};N.parseInline=function(i,e){if(typeof i>"u"||i===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof i!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected");e=W({},N.defaults,e||{}),_t(e);try{const t=ee.lexInline(i,e);return e.walkTokens&&N.walkTokens(t,e.walkTokens),X.parseInline(t,e)}catch(t){if(t.message+=` -Please report this to https://github.com/markedjs/marked.`,e.silent)return"

    An error occurred:

    "+M(t.message+"",!0)+"
    ";throw t}};N.Parser=X;N.parser=X.parse;N.Renderer=Me;N.TextRenderer=Et;N.Lexer=ee;N.lexer=ee.lex;N.Tokenizer=Be;N.Slugger=St;N.parse=N;X.parse;ee.lex;var On=function(){var i=document.getSelection();if(!i.rangeCount)return function(){};for(var e=document.activeElement,t=[],n=0;n"u"){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=pt[e.format]||pt.default;window.clipboardData.setData(m,i)}else s.clipboardData.clearData(),s.clipboardData.setData(e.format,i);e.onCopy&&(s.preventDefault(),e.onCopy(s.clipboardData))}),document.body.appendChild(r),o.selectNodeContents(r),a.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");d=!0}catch(s){t&&console.error("unable to copy using execCommand: ",s),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",i),e.onCopy&&e.onCopy(window.clipboardData),d=!0}catch(m){t&&console.error("unable to copy using clipboardData: ",m),t&&console.error("falling back to prompt"),n=Mn("message"in e?e.message:Bn),window.prompt(n,i)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),r&&document.body.removeChild(r),l()}return d}var pe=Un;/*! medium-zoom 1.0.8 | MIT License | https://github.com/francoischalifour/medium-zoom */var ie=Object.assign||function(i){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},n=window.Promise||function(E){function b(){}E(b,b)},l=function(E){var b=E.target;if(b===H){V();return}C.indexOf(b)!==-1&&x({target:b})},o=function(){if(!(S||!g.original)){var E=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(F-E)>z.scrollOffset&&setTimeout(V,150)}},a=function(E){var b=E.key||E.keyCode;(b==="Escape"||b==="Esc"||b===27)&&V()},r=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=E;if(E.background&&(H.style.background=E.background),E.container&&E.container instanceof Object&&(b.container=ie({},z.container,E.container)),E.template){var w=Te(E.template)?E.template:document.querySelector(E.template);b.template=w}return z=ie({},z,b),C.forEach(function(A){A.dispatchEvent(se("medium-zoom:update",{detail:{zoom:j}}))}),j},d=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return i(ie({},z,E))},u=function(){for(var E=arguments.length,b=Array(E),w=0;w0?b.reduce(function(I,L){return[].concat(I,gt(L))},[]):C;return A.forEach(function(I){I.classList.remove("medium-zoom-image"),I.dispatchEvent(se("medium-zoom:detach",{detail:{zoom:j}}))}),C=C.filter(function(I){return A.indexOf(I)===-1}),j},m=function(E,b){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return C.forEach(function(A){A.addEventListener("medium-zoom:"+E,b,w)}),_.push({type:"medium-zoom:"+E,listener:b,options:w}),j},p=function(E,b){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return C.forEach(function(A){A.removeEventListener("medium-zoom:"+E,b,w)}),_=_.filter(function(A){return!(A.type==="medium-zoom:"+E&&A.listener.toString()===b.toString())}),j},h=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=E.target,w=function(){var I={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},L=void 0,q=void 0;if(z.container)if(z.container instanceof Object)I=ie({},I,z.container),L=I.width-I.left-I.right-z.margin*2,q=I.height-I.top-I.bottom-z.margin*2;else{var Q=Te(z.container)?z.container:document.querySelector(z.container),K=Q.getBoundingClientRect(),le=K.width,ge=K.height,ve=K.left,be=K.top;I=ie({},I,{width:le,height:ge,left:ve,top:be})}L=L||I.width-z.margin*2,q=q||I.height-z.margin*2;var te=g.zoomedHd||g.original,ke=ft(te)?L:te.naturalWidth||L,Ve=ft(te)?q:te.naturalHeight||q,ne=te.getBoundingClientRect(),ye=ne.top,we=ne.left,oe=ne.width,re=ne.height,xe=Math.min(Math.max(oe,ke),L)/oe,$e=Math.min(Math.max(re,Ve),q)/re,ae=Math.min(xe,$e),Ce=(-we+(L-oe)/2+z.margin+I.left)/ae,_e=(-ye+(q-re)/2+z.margin+I.top)/ae,de="scale("+ae+") translate3d("+Ce+"px, "+_e+"px, 0)";g.zoomed.style.transform=de,g.zoomedHd&&(g.zoomedHd.style.transform=de)};return new n(function(A){if(b&&C.indexOf(b)===-1){A(j);return}var I=function le(){S=!1,g.zoomed.removeEventListener("transitionend",le),g.original.dispatchEvent(se("medium-zoom:opened",{detail:{zoom:j}})),A(j)};if(g.zoomed){A(j);return}if(b)g.original=b;else if(C.length>0){var L=C;g.original=L[0]}else{A(j);return}if(g.original.dispatchEvent(se("medium-zoom:open",{detail:{zoom:j}})),F=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,S=!0,g.zoomed=Zn(g.original),document.body.appendChild(H),z.template){var q=Te(z.template)?z.template:document.querySelector(z.template);g.template=document.createElement("div"),g.template.appendChild(q.content.cloneNode(!0)),document.body.appendChild(g.template)}if(g.original.parentElement&&g.original.parentElement.tagName==="PICTURE"&&g.original.currentSrc&&(g.zoomed.src=g.original.currentSrc),document.body.appendChild(g.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),g.original.classList.add("medium-zoom-image--hidden"),g.zoomed.classList.add("medium-zoom-image--opened"),g.zoomed.addEventListener("click",V),g.zoomed.addEventListener("transitionend",I),g.original.getAttribute("data-zoom-src")){g.zoomedHd=g.zoomed.cloneNode(),g.zoomedHd.removeAttribute("srcset"),g.zoomedHd.removeAttribute("sizes"),g.zoomedHd.removeAttribute("loading"),g.zoomedHd.src=g.zoomed.getAttribute("data-zoom-src"),g.zoomedHd.onerror=function(){clearInterval(Q),console.warn("Unable to reach the zoom image target "+g.zoomedHd.src),g.zoomedHd=null,w()};var Q=setInterval(function(){g.zoomedHd.complete&&(clearInterval(Q),g.zoomedHd.classList.add("medium-zoom-image--opened"),g.zoomedHd.addEventListener("click",V),document.body.appendChild(g.zoomedHd),w())},10)}else if(g.original.hasAttribute("srcset")){g.zoomedHd=g.zoomed.cloneNode(),g.zoomedHd.removeAttribute("sizes"),g.zoomedHd.removeAttribute("loading");var K=g.zoomedHd.addEventListener("load",function(){g.zoomedHd.removeEventListener("load",K),g.zoomedHd.classList.add("medium-zoom-image--opened"),g.zoomedHd.addEventListener("click",V),document.body.appendChild(g.zoomedHd),w()})}else w()})},V=function(){return new n(function(E){if(S||!g.original){E(j);return}var b=function w(){g.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(g.zoomed),g.zoomedHd&&document.body.removeChild(g.zoomedHd),document.body.removeChild(H),g.zoomed.classList.remove("medium-zoom-image--opened"),g.template&&document.body.removeChild(g.template),S=!1,g.zoomed.removeEventListener("transitionend",w),g.original.dispatchEvent(se("medium-zoom:closed",{detail:{zoom:j}})),g.original=null,g.zoomed=null,g.zoomedHd=null,g.template=null,E(j)};S=!0,document.body.classList.remove("medium-zoom--opened"),g.zoomed.style.transform="",g.zoomedHd&&(g.zoomedHd.style.transform=""),g.template&&(g.template.style.transition="opacity 150ms",g.template.style.opacity=0),g.original.dispatchEvent(se("medium-zoom:close",{detail:{zoom:j}})),g.zoomed.addEventListener("transitionend",b)})},x=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=E.target;return g.original?V():h({target:b})},k=function(){return z},f=function(){return C},y=function(){return g.original},C=[],_=[],S=!1,F=0,z=t,g={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(e)==="[object Object]"?z=e:(e||typeof e=="string")&&u(e),z=ie({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},z);var H=Kn(z.background);document.addEventListener("click",l),document.addEventListener("keyup",a),document.addEventListener("scroll",o),window.addEventListener("resize",V);var j={open:h,close:V,toggle:x,update:r,clone:d,attach:u,detach:s,on:m,off:p,getOptions:k,getImages:f,getZoomedImage:y};return j};function Wn(i,e){e===void 0&&(e={});var t=e.insertAt;if(!(!i||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",t==="top"&&n.firstChild?n.insertBefore(l,n.firstChild):n.appendChild(l),l.styleSheet?l.styleSheet.cssText=i:l.appendChild(document.createTextNode(i))}}var Xn=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";Wn(Xn);var Qn=Gn;const he=i=>{const e=i.value,t=e.substring(0,i.selectionStart),n=e.substring(i.selectionEnd,e.length),l=t.lastIndexOf(` -`),o=t.substring(0,l+1),a=n.indexOf(` -`),r=n.substring(a===-1?n.length:a,n.length),d=t.substring(l+1,t.length),u=n.substring(0,a);return{prefixStr:t,subfixStr:n,prefixStrEndRow:o,subfixStrEndRow:r,prefixSupply:d,subfixSupply:u}},Yn=(i,e="",t,n)=>{var l,o,a,r,d,u;let s="",m=0,p=0,h=!1,V,x;const k=(l=B.editorConfig)==null?void 0:l.mermaidTemplate;if(/^h[1-6]{1}$/.test(i)){const f=i.replace(/^h(\d)/,(y,C)=>new Array(Number(C)).fill("#",0,C).join(""));s=`${f} ${e}`,m=f.length+1}else if(i==="prettier"){const f=window.prettier||((a=(o=B.editorExtensions)==null?void 0:o.prettier)==null?void 0:a.prettierInstance),y=[((r=window.prettierPlugins)==null?void 0:r.markdown)||((u=(d=B.editorExtensions)==null?void 0:d.prettier)==null?void 0:u.parserMarkdownInstance)];return!f||y[0]===void 0?(v.emit(n.editorId,"errorCatcher",{name:"prettier",message:"prettier is undefined"}),t.value):f.format(t.value,{parser:"markdown",plugins:y})}else switch(i){case"bold":{s=`**${e}**`,m=2,p=-2;break}case"underline":{s=`${e}`,m=3,p=-4;break}case"italic":{s=`*${e}*`,m=1,p=-1;break}case"strikeThrough":{s=`~${e}~`,m=1,p=-1;break}case"sub":{s=`${e}`,m=5,p=-6;break}case"sup":{s=`${e}`,m=5,p=-6;break}case"codeRow":{s="`"+e+"`",m=1,p=-1;break}case"quote":{s=`> ${e}`,m=2;break}case"orderedList":{s=`1. ${e}`,m=3;break}case"unorderedList":{s=`- ${e}`,m=2;break}case"task":{s=`- [ ] ${e}`,m=6,h=!0;break}case"code":{const f=n.text||e||"",y=n.mode||"language";s=`\`\`\`${y} -${f} -\`\`\` -`,m=3,p=3+y.length-s.length,h=!0;break}case"table":{s="|";const{selectedShape:f={x:1,y:1}}=n,{x:y,y:C}=f;for(let _=0;_<=C;_++)s+=" col |";s+=` -|`;for(let _=0;_<=C;_++)s+=" - |";for(let _=0;_<=y;_++){s+=` -|`;for(let S=0;S<=C;S++)s+=" content |"}m=2,p=5-s.length,h=!0;break}case"link":{const{desc:f,url:y}=n;s=`[${f}](${y})`;break}case"image":{const{desc:f,url:y,urls:C}=n;C instanceof Array?s=C.reduce((_,S)=>_+`![${f}](${S}) -`,""):s=`![${f}](${y}) -`;break}case"tab":{const{tabWidth:f=2}=n,y=new Array(f).fill(" ").join("");if(e==="")s=y;else if(/\n/.test(e)){const{prefixStr:C,subfixStr:_,prefixSupply:S,subfixSupply:F}=he(t);s=`${S}${e}${F}`.split(` -`).map(H=>`${y}${H}`).join(` -`),V=C.substring(0,C.length-S.length),x=_.substring(F.length,_.length),h=!0,m=f,p=-S.length-F.length}else{const _=t.value.substring(0,t.selectionStart);/\n$/.test(_)||_===""?(s=`${y}${e}`,h=!0):s=y}break}case"shiftTab":{const{tabWidth:f=2}=n,{prefixStr:y,prefixStrEndRow:C,subfixStrEndRow:_,prefixSupply:S,subfixSupply:F}=he(t),z=new RegExp(`^\\s{${f}}`),g=(H=!1,j=!1)=>{const D=`${S}${e}${F}`;if(z.test(D)){const E=y.length-(j?0:f),b=H?E+e.length-f:E;return Y(t,E,b),`${C}${D.replace(z,"")}${_}`}else if(/^\s/.test(D)){const E=D.replace(/^\s/,""),b=D.length-E.length,w=t.selectionStart-(j?0:b),A=H?w+e.length-b:w;return Y(t,w,A),`${C}${E}${_}`}else s=e};if(e===""){const H=g();if(H)return H}else if(/\n/.test(e)){const j=`${S}${e}${F}`.split(` -`);let[D,E]=[0,0];const b=j.map((w,A)=>{if(z.test(w))return A===0&&(D=f),E+=f,w.replace(z,"");if(/^\s/.test(w)){const I=w.replace(/^\s/,"");return E+=w.length-I.length,I}return w}).join(` -`);return Y(t,t.selectionStart-D,t.selectionEnd-E),`${C}${b}${_}`}else{const H=g(!0,!0);if(H)return H}break}case"ctrlC":{const{prefixSupply:f,subfixSupply:y}=he(t);return pe(e===""?`${f}${y}`:e),t.value}case"ctrlX":{const{prefixStrEndRow:f,subfixStrEndRow:y,prefixStr:C,subfixStr:_,prefixSupply:S,subfixSupply:F}=he(t);return e===""?(pe(`${S}${F}`),Y(t,f.length),`${f}${y.replace(/^\n/,"")}`):(pe(e),Y(t,C.length),`${C}${_}`)}case"ctrlD":{const{prefixStrEndRow:f,subfixStrEndRow:y}=he(t);return Y(t,f.length),`${f}${y.replace(/^\n/,"")}`}case"flow":{s=`\`\`\`mermaid -${(k==null?void 0:k.flow)||`flowchart TD - Start --> Stop`} -\`\`\` -`,m=2;break}case"sequence":{s=`\`\`\`mermaid -${(k==null?void 0:k.sequence)||`sequenceDiagram - A->>B: hello! - B-->>A: hi! - A-)B: bye!`} -\`\`\` -`,m=2;break}case"gantt":{s=`\`\`\`mermaid -${(k==null?void 0:k.gantt)||`gantt -title A Gantt Diagram -dateFormat YYYY-MM-DD -section Section -A task :a1, 2014-01-01, 30d -Another task :after a1, 20d`} -\`\`\` -`,m=2;break}case"class":{s=`\`\`\`mermaid -${(k==null?void 0:k.class)||`classDiagram - class Animal - Vehicle <|-- Car`} -\`\`\` -`,m=2;break}case"state":{s=`\`\`\`mermaid -${(k==null?void 0:k.state)||`stateDiagram-v2 - s1 --> s2`} -\`\`\` -`,m=2;break}case"pie":{s=`\`\`\`mermaid -${(k==null?void 0:k.pie)||`pie title Pets adopted by volunteers - "Dogs" : 386 - "Cats" : 85 - "Rats" : 15`} -\`\`\` -`,m=2;break}case"relationship":{s=`\`\`\`mermaid -${(k==null?void 0:k.relationship)||`erDiagram - CAR ||--o{ NAMED-DRIVER : allows - PERSON ||--o{ NAMED-DRIVER : is`} -\`\`\` -`,m=2;break}case"journey":{s=`\`\`\`mermaid -${(k==null?void 0:k.journey)||`journey - title My working day - section Go to work - Make tea: 5: Me - Go upstairs: 3: Me - Do work: 1: Me, Cat - section Go home - Go downstairs: 5: Me - Sit down: 5: Me`} -\`\`\` -`,m=2;break}case"katexInline":{s="$$",m=1,p=-1;break}case"katexBlock":{s=`$$ - -$$ -`,m=1,p=-4;break}case"universal":{const{generate:f}=n,y=f(e);s=y.targetValue,h=y.select,m=y.deviationStart,p=y.deviationEnd}}return je(t,s,{deviationStart:m,deviationEnd:p,select:h,prefixVal:V,subfixVal:x})};var vt={block(i,e){return{name:"KaTexBlockExtension",level:"block",start:t=>{var n;return(n=t.match(/\n\$\$\n/))==null?void 0:n.index},tokenizer(t){if(/^\$\$\n/.test(t)&&t.split("$$").length>2){const n=tt(t,"$$");return{type:"KaTexBlockExtension",raw:n[0],text:n[1].trim(),tokens:[]}}},renderer(t){const n=e||typeof window<"u"&&window.katex;if(n){const l=n.renderToString(t.text,{throwOnError:!1,displayMode:!0});return`

    ${l}

    `}else return`

    ${t.text}

    `}}},inline(i,e){return{name:"KaTexInlineExtension",level:"inline",start:t=>{var n;return(n=t.match(/\$[^\n]*/))==null?void 0:n.index},tokenizer(t){if(/^\$[^\n]*\$/.test(t)){const n=tt(t);return{type:"KaTexInlineExtension",raw:n[0],text:n[1].trim(),tokens:[]}}},renderer(t){const n=e||typeof window<"u"&&window.katex;if(n){const l=n.renderToString(t.text,{throwOnError:!1});return`${l}`}else return`${t.text}`}}}};const Nt=["abstract","attention","bug","caution","danger","error","example","failure","hint","info","note","question","quote","success","tip","warning"],Le=new RegExp(`^!!!\\s+(${Nt.join("|")})\\s+(.*)$`),Jn=/^!!!\s*$/,ei={name:"alert",level:"block",start(i){var e;return(e=i.match(new RegExp(`(^|[\\r\\n])!!!\\s+(${Nt.join("|")})\\s+(.*)`)))==null?void 0:e.index},tokenizer(i){const e=i.split(/\n/);if(Le.test(e[0])){const t={x:-1,y:-1},n=[];for(let l=0,o=e.length;l=0&&(n.push(U({},t)),t.x=-1,t.y=-1));if(n.length){const l=n[0],[o,a,r]=Le.exec(e[l.x])||[],d=e.slice(l.x+1,l.y).join(` -`),s={type:"alert",raw:e.slice(l.x,l.y+1).join(` -`),icon:a,title:r,text:d,titleTokens:[],tokens:[],childTokens:["title","text"]};return this.lexer.inlineTokens(s.title,s.titleTokens),this.lexer.blockTokens(s.text,s.tokens),s}}},renderer(i){return`
    -

    ${this.parser.parseInline(i.titleTokens,null)}

    - ${this.parser.parse(i.tokens)} -
    `}},ti=(i,e,t)=>{var n,l;const o=Vue.inject("previewOnly"),a=Vue.inject("historyLength"),r=Vue.inject("editorId");if(o)return;let d=-1;const u={list:[{content:i.value,startPos:((n=e.value)==null?void 0:n.selectionStart)||0,endPos:((l=e.value)==null?void 0:l.selectionEnd)||0}],userUpdated:!0,curr:0},s=[0,0];let m=s;const p=x=>{var k,f;const y=((k=e.value)==null?void 0:k.selectionStart)||0,C=((f=e.value)==null?void 0:f.selectionEnd)||0;u.list[u.curr].startPos=y,u.list[u.curr].endPos=C,u.userUpdated=!1,u.curr=x;const _=u.list[u.curr];m=[_.startPos,_.endPos],i.onChange(_.content),Y(e.value,_.startPos,_.endPos).then(()=>{v.emit(r,"selectTextChange")})},h=x=>{var k,f;clearTimeout(d);const y=((k=e.value)==null?void 0:k.selectionStart)||0,C=((f=e.value)==null?void 0:f.selectionEnd)||0;d=setTimeout(()=>{if(u.userUpdated){u.curra&&u.list.shift();const _=u.list.pop()||{startPos:0,endPos:0,content:x};_.startPos=m[0],_.endPos=m[1],m=s,Array.prototype.push.call(u.list,_,{content:x,startPos:y,endPos:C}),u.curr=u.list.length-1}else u.userUpdated=!0},150)},V=x=>{var k,f;(m===s||x)&&(m=[(k=e.value)==null?void 0:k.selectionStart,(f=e.value)==null?void 0:f.selectionEnd])};Vue.watch([Vue.toRef(i,"value"),t],()=>{t.value&&h(i.value)}),Vue.watch(()=>i.value,()=>{v.emit(r,"selectTextChange")},{flush:"post"}),Vue.onMounted(()=>{v.on(r,{name:"ctrlZ",callback(){p(u.curr-1<0?0:u.curr-1)}}),v.on(r,{name:"ctrlShiftZ",callback(){p(u.curr+1===u.list.length?u.curr:u.curr+1)}}),v.on(r,{name:"saveHistoryPos",callback:V})})},ni=(i,e)=>{var t,n,l;const{markedRenderer:o,markedExtensions:a,markedOptions:r,editorExtensions:d,editorConfig:u}=B,s=Vue.inject("showCodeRowNumber"),m=Vue.inject("editorId"),p=Vue.inject("highlight"),h=Vue.inject("previewOnly"),V=(t=d==null?void 0:d.highlight)==null?void 0:t.instance,x=(n=d==null?void 0:d.mermaid)==null?void 0:n.instance,k=(l=d==null?void 0:d.katex)==null?void 0:l.instance,f=d==null?void 0:d.katex,y=Vue.ref(!1),C=Vue.ref(!1),_=Vue.ref([]);let S=new N.Renderer;N.use({extensions:[ei]});const F=S.code;S.code=(b,w,A)=>{if(!i.noMermaid&&w==="mermaid"){const I=`${c}-mermaid-${Date.now().toString(36)}`;try{let L;return x?L=x.render(I,b):typeof window<"u"&&window.mermaid?L=window.mermaid.render(I,b):L=`

    ${b}

    `,`

    ${L}

    `}catch(L){return`

    Error: ${(L==null?void 0:L.message)||""}

    `}}return F.call(S,b,w,A)},S.image=(b,w,A)=>`${A||${A||""}`,S.listitem=(b,w)=>w?`
  • ${b}
  • `:`
  • ${b}
  • `;const z=S.heading;o instanceof Function&&(S=o(S));const g=S.heading,H=z!==g;S.heading=(b,w,A,I)=>{if(_.value.push({text:A,level:w}),H)return g.call(S,b,w,A,I,_.value.length);const L=i.markedHeadingId(A,w,_.value.length);return b!==A?`${b}`:`
    ${A}`},N.setOptions(U({breaks:!0},r)),i.noKatex||N.use({extensions:[vt.inline(c,k),vt.block(c,k)]}),V&&N.setOptions({highlight:(b,w)=>{let A;const I=V.getLanguage(w);return w&&I?A=V.highlight(b,{language:w,ignoreIllegals:!0}).value:A=V.highlightAuto(b).value,s?et(A):`${A}`}}),a instanceof Array&&a.length>0&&N.use({extensions:a});const j=Vue.ref(i.sanitize(N(i.value||"",{renderer:S}))),D=Fe(()=>{_.value=[];const b=i.sanitize(N(i.value||"",{renderer:S}));j.value=b,v.emit(m,"buildFinished",b),i.onHtmlChanged(b)},(u==null?void 0:u.renderDelay)!==void 0?u==null?void 0:u.renderDelay:h?0:500);Vue.watch([y,Vue.toRef(e,"reRender"),Vue.toRef(e,"mermaidInited"),C,Vue.toRef(i,"value")],D);const E=()=>{N.setOptions({highlight:(b,w)=>{let A;const I=window.hljs.getLanguage(w);return w&&I?A=window.hljs.highlight(b,{language:w,ignoreIllegals:!0}).value:A=window.hljs.highlightAuto(b).value,s?et(A):`${A}`}}),y.value=!0};return Vue.watch(()=>_.value,b=>{i.onGetCatalog(b),v.emit(m,"catalogChanged",b)}),Vue.onMounted(()=>{if(!i.noKatex&&!k){const b=document.createElement("script");b.src=(f==null?void 0:f.js)||Qe.js,b.onload=()=>{C.value=!0},b.id=`${c}-katex`;const w=document.createElement("link");w.rel="stylesheet",w.href=(f==null?void 0:f.css)||Qe.css,w.id=`${c}-katexCss`,Z(b,"katex"),Z(w)}if(!V){const b=document.createElement("link");b.rel="stylesheet",b.href=p.value.css,b.id=`${c}-hlCss`;const w=document.createElement("script");w.src=p.value.js,w.onload=E,w.id=`${c}-hljs`,Z(b),Z(w,"hljs")}}),Vue.watch(()=>p.value.css,b=>{ln(`${c}-hlCss`,"href",b)}),Vue.onMounted(()=>{v.on(m,{name:"pushCatalog",callback(){v.emit(m,"catalogChanged",_.value)}})}),{html:j}},ii=(i,e,t,n,l)=>{const o=Vue.inject("previewOnly"),a=Vue.inject("usedLanguageText"),r=Vue.inject("editorId");let d=()=>{},u=()=>{};const s=()=>{document.querySelectorAll(`#${r}-preview pre`).forEach(h=>{var V,x;(V=h.querySelector(".copy-button"))==null||V.remove();const k=((x=a.value.copyCode)==null?void 0:x.text)||"复制代码",f=document.createElement("span");f.setAttribute("class","copy-button"),f.innerText=k,f.addEventListener("click",()=>{var y,C;const _=h.querySelector("code").innerText,S=pe(i.formatCopiedText(_)),F=((y=a.value.copyCode)==null?void 0:y.successTips)||"已复制!",z=((C=a.value.copyCode)==null?void 0:C.failTips)||"已复制!";f.innerText=S?F:z,setTimeout(()=>{f.innerText=k},1500)}),h.appendChild(f)})},m=()=>{Vue.nextTick(()=>{i.setting.preview&&!o&&i.scrollAuto&&(d(),u()),s()})},p=h=>{h&&!o&&Vue.nextTick(()=>{d(),[u,d]=Je(t.value,n.value||l.value),u()})};Vue.watch(()=>e.value,m),Vue.watch(()=>a.value,s),Vue.watch(()=>i.setting.preview,p),Vue.watch(()=>i.setting.htmlPreview,p),Vue.watch(()=>i.scrollAuto,h=>{h?u():d()}),Vue.onMounted(()=>{s(),!o&&(n.value||l.value)&&([u,d]=Je(t.value,n.value||l.value)),i.scrollAuto&&u()})},li=(i,e)=>{const t=Vue.inject("previewOnly"),n=Vue.inject("tabWidth"),l=Vue.inject("editorId"),o=Vue.ref("");Vue.onMounted(()=>{var a;t||((a=e.value)==null||a.addEventListener("keypress",r=>{var d,u,s;if(r.key==="Enter"){const m=(d=e.value)==null?void 0:d.selectionStart,p=(u=e.value)==null?void 0:u.value.substring(0,m),h=(s=e.value)==null?void 0:s.value.substring(m),V=p==null?void 0:p.lastIndexOf(` -`),x=p==null?void 0:p.substring(V+1,m);if(/^\d+\.\s|^-\s/.test(x))if(r.cancelBubble=!0,r.preventDefault(),r.stopPropagation(),/^(\d+\.|-)\s+(\[[x\s]\]\s+)?$/.test(x)){const k=p==null?void 0:p.replace(/(\d+\.|-)\s+(\[[x\s]\]\s+)?$/,"");i.onChange(k+h),Y(e.value,k==null?void 0:k.length)}else if(/^-\s+.+/.test(x)){const k=/^-\s+\[[x\s]\]/.test(x)?` -- [ ] `:` -- `;i.onChange(je(e.value,k,{}))}else{const k=x==null?void 0:x.match(/\d+(?=\.)/),f=k&&Number(k[0])+1||1,y=/^\d\.\s+\[[x\s]\]/.test(x)?` -${f}. [ ] `:` -${f}. `;i.onChange(je(e.value,y,{}))}}}),v.on(l,{name:"replace",callback(r,d={}){i.onChange(Yn(r,o.value,e.value,fe(U({},d),{tabWidth:n,editorId:l})))}}))}),Vue.watch(()=>i.value,()=>{o.value=""}),v.on(l,{name:"selectTextChange",callback(){o.value=en(e.value)}})},oi=i=>{const e=Vue.inject("theme"),{editorExtensions:t}=B,n=t==null?void 0:t.mermaid,l=Vue.reactive({reRender:!1,mermaidInited:!!(n!=null&&n.instance)}),o=()=>{i.noMermaid||(n!=null&&n.instance?n.instance.initialize({theme:e.value==="dark"?"dark":"default"}):window.mermaid&&window.mermaid.initialize({theme:e.value==="dark"?"dark":"default"}),l.reRender=!l.reRender)};Vue.watch(()=>e.value,o);let a;return Vue.onMounted(()=>{!i.noMermaid&&!(n!=null&&n.instance)?(a=document.createElement("script"),a.src=(n==null?void 0:n.js)||Gt,a.onload=()=>{window.mermaid.initialize({theme:e.value==="dark"?"dark":"default",logLevel:"Fatal"}),l.mermaidInited=!0},a.id=`${c}-mermaid`,Z(a,"mermaid")):i.noMermaid||o()}),l},ri=(i,e)=>{const t=Vue.inject("editorId"),n=Vue.inject("previewOnly"),l=o=>{if(o.clipboardData){if(o.clipboardData.files.length>0){const{files:a}=o.clipboardData;v.emit(t,"uploadImage",Array.from(a).filter(r=>/image\/.*/.test(r.type))),o.preventDefault()}if(i.autoDetectCode&&o.clipboardData.types.includes("vscode-editor-data")){const a=JSON.parse(o.clipboardData.getData("vscode-editor-data"));v.emit(t,"replace","code",{mode:a.mode,text:o.clipboardData.getData("text/plain")}),o.preventDefault()}}};Vue.onMounted(()=>{n||e.value.addEventListener("paste",l)}),Vue.onBeforeUnmount(()=>{n||e.value.removeEventListener("paste",l)})},ai=(i,e)=>{const t=Vue.inject("editorId"),n=Fe(()=>{const l=document.querySelectorAll(`#${t}-preview img[zoom]`);l.length!==0&&Qn(l,{background:"#00000073"})});Vue.onMounted(n),Vue.watch([e,Vue.toRef(i.setting,"preview")],n)},si=i=>{const e=Vue.inject("editorId");v.on(e,{name:yt,callback(){var t;(t=i.value)==null||t.focus()}})},ui=()=>({value:{type:String,default:""},onChange:{type:Function,default:()=>()=>{}},setting:{type:Object,default:()=>({})},onHtmlChanged:{type:Function,default:()=>()=>{}},onGetCatalog:{type:Function,default:()=>()=>{}},markedHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:i=>i},placeholder:{type:String,default:""},noKatex:{type:Boolean,default:!1},scrollAuto:{type:Boolean},formatCopiedText:{type:Function,default:i=>i},autofocus:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},maxlength:{type:Number},autoDetectCode:{type:Boolean}});var ci=Vue.defineComponent({name:"MDEditorContent",props:ui(),setup(i){const e=Vue.ref(!0),t=Vue.inject("previewOnly"),n=Vue.inject("showCodeRowNumber"),l=Vue.inject("previewTheme"),o=Vue.inject("editorId"),a=Vue.ref(),r=Vue.ref(),d=Vue.ref(),u=oi(i),{html:s}=ni(i,u);return ii(i,s,a,r,d),li(i,a),ti(i,a,e),ri(i,a),ai(i,s),si(a),()=>{const m=nn(i,["formatCopiedText","markedHeadingId","noKatex","noMermaid","onChange","onGetCatalog","onHtmlChanged","sanitize","scrollAuto","setting","autoDetectCode"]);return Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("div",{class:`${c}-content`},[!t&&Vue.createVNode("div",{class:`${c}-input-wrapper`},[Vue.createVNode("textarea",Vue.mergeProps(m,{id:`${o}-textarea`,ref:a,onBlur:()=>{v.emit(o,"selectTextChange")},onKeydown:()=>{v.emit(o,"saveHistoryPos",!0)},onCompositionstart:()=>{e.value=!1},onInput:p=>{i.onChange(p.target.value)},onCompositionend:()=>{e.value=!0},class:[i.setting.preview||i.setting.htmlPreview?"":"textarea-only"]}),null)]),i.setting.preview&&Vue.createVNode("div",{id:`${o}-preview-wrapper`,class:`${c}-preview-wrapper`,ref:r,key:"content-preview-wrapper"},[Vue.createVNode("article",{id:`${o}-preview`,class:[`${c}-preview`,`${l==null?void 0:l.value}-theme`,n&&`${c}-scrn`],innerHTML:s.value},null)]),i.setting.htmlPreview&&Vue.createVNode("div",{class:`${c}-preview-wrapper`,ref:d,key:"html-preview-wrapper"},[Vue.createVNode("div",{class:`${c}-html`},[s.value])])])])}}}),di=Vue.defineComponent({props:{modelValue:{type:String,default:""}},setup(i){const e=Vue.inject("usedLanguageText");return()=>{var t,n;return Vue.createVNode("div",{class:`${c}-footer-item`},[Vue.createVNode("label",{class:`${c}-footer-label`},[`${(t=e.value.footer)==null?void 0:t.markdownTotal}:`]),Vue.createVNode("span",null,[((n=i.modelValue)==null?void 0:n.length)||0])])}}});const mi=()=>({checked:{type:Boolean,default:!1},onChange:{type:Function,default:()=>()=>{}}});var hi=Vue.defineComponent({props:mi(),setup(i){return()=>Vue.createVNode("div",{class:[`${c}-checkbox`,i.checked&&`${c}-checkbox-checked`],onClick:()=>{i.onChange(!i.checked)}},null)}});const pi=()=>({scrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>()=>{}}});var fi=Vue.defineComponent({props:pi(),setup(i){const e=Vue.inject("usedLanguageText");return()=>{var t;return Vue.createVNode("div",{class:`${c}-footer-item`},[Vue.createVNode("label",{class:`${c}-footer-label`,onClick:()=>{i.onScrollAutoChange(!i.scrollAuto)}},[(t=e.value.footer)==null?void 0:t.scrollAuto]),Vue.createVNode(hi,{checked:i.scrollAuto,onChange:i.onScrollAutoChange},null)])}}});const gi=()=>({modelValue:{type:String,default:""},footers:{type:Array,default:[]},scrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>()=>{}},defFooters:{type:Object}});var vi=Vue.defineComponent({name:"MDEditorFooter",props:gi(),setup(i){const e=Vue.computed(()=>{const n=i.footers.indexOf("="),l=n===-1?i.footers:i.footers.slice(0,n),o=n===-1?[]:i.footers.slice(n,Number.MAX_SAFE_INTEGER);return[l,o]}),t=n=>{if(kt.includes(n))switch(n){case"markdownTotal":return Vue.createVNode(di,{modelValue:i.modelValue},null);case"scrollSwitch":return Vue.createVNode(fi,{scrollAuto:i.scrollAuto,onScrollAutoChange:i.onScrollAutoChange},null)}else return i.defFooters instanceof Array?i.defFooters[n]||"":i.defFooters&&i.defFooters.children instanceof Array&&i.defFooters.children[n]||""};return()=>{const n=e.value[0].map(o=>t(o)),l=e.value[1].map(o=>t(o));return Vue.createVNode("div",{class:`${c}-footer`},[Vue.createVNode("div",{class:`${c}-footer-left`},[n]),Vue.createVNode("div",{class:`${c}-footer-right`},[l])])}}});const bi=()=>({tocItem:{type:Object,default:()=>({})},markedHeadingId:{type:Function,default:()=>()=>{}},scrollElement:{type:[String,Object],default:""},onClick:{type:Function,default:()=>()=>{}},scrollElementOffsetTop:{type:Number,default:0}}),Tt=Vue.defineComponent({props:bi(),setup(i){return()=>{const{tocItem:e,markedHeadingId:t,scrollElement:n,onClick:l,scrollElementOffsetTop:o}=i;return Vue.createVNode("div",{class:[`${c}-catalog-link`,e.active&&`${c}-catalog-active`],onClick:a=>{l(a,e),a.stopPropagation();const r=t(e.text,e.level,e.index),d=document.getElementById(r),u=n instanceof Element?n:document.querySelector(n);if(d&&u){let s=d.offsetParent,m=d.offsetTop;if(u.contains(s))for(;s&&u!=s;)m+=s==null?void 0:s.offsetTop,s=s==null?void 0:s.offsetParent;u==null||u.scrollTo({top:m-o,behavior:"smooth"})}}},[Vue.createVNode("span",{title:e.text},[e.text]),Vue.createVNode("div",{class:`${c}-catalog-wrapper`},[e.children&&e.children.map(a=>Vue.createVNode(Tt,{markedHeadingId:t,key:`${e.text}-link-${a.level}-${a.text}`,tocItem:a,scrollElement:n,onClick:l,scrollElementOffsetTop:o},null))])])}}}),ki=()=>({editorId:{type:String},class:{type:String,default:""},markedHeadingId:{type:Function,default:i=>i},scrollElement:{type:[String,Object]},theme:{type:String,default:"light"},offsetTop:{type:Number,default:20},scrollElementOffsetTop:{type:Number,default:0}}),Ae=Vue.defineComponent({name:"MdCatalog",props:ki(),emits:["onClick"],setup(i,e){const t=i.editorId,n=Vue.reactive({list:[],show:!1,scrollElement:i.scrollElement||`#${t}-preview-wrapper`}),l=Vue.computed(()=>{const o=[];return n.list.forEach(({text:a,level:r,active:d},u)=>{const s={level:r,text:a,index:u+1,active:!!d};if(o.length===0)o.push(s);else{let m=o[o.length-1];if(s.level>m.level)for(let p=m.level+1;p<=6;p++){const{children:h}=m;if(!h){m.children=[s];break}if(m=h[h.length-1],s.level<=m.level){h.push(s);break}}else o.push(s)}}),o});return Vue.onMounted(()=>{v.on(t,{name:"catalogChanged",callback:o=>{n.list=o.map((a,r)=>r===0?fe(U({},a),{active:!0}):U({},a))}}),v.emit(t,"pushCatalog")}),Vue.onMounted(()=>{var o;const a=n.scrollElement instanceof HTMLElement?n.scrollElement:document.querySelector(n.scrollElement);(o=a===document.documentElement?window:a)==null||o.addEventListener("scroll",Jt(()=>{if(n.list.length===0)return!1;const{activeHead:r}=n.list.reduce((d,u,s)=>{const m=document.getElementById(i.markedHeadingId(u.text,u.level,s+1));if(m instanceof HTMLElement){const p=tn(m,a);if(pd.minTop)return{activeHead:u,minTop:p}}return d},{activeHead:n.list[0],minTop:Number.MIN_SAFE_INTEGER});n.list=n.list.map(d=>d===r?fe(U({},d),{active:!0}):fe(U({},d),{active:!1}))}))}),()=>Vue.createVNode("div",{class:`${c}-catalog${i.theme==="dark"?"-dark":""} ${i.class}`},[l.value.map(o=>Vue.createVNode(Tt,{markedHeadingId:i.markedHeadingId,tocItem:o,key:`link-${o.level}-${o.text}`,scrollElement:n.scrollElement,onClick:(a,r)=>{e.emit("onClick",a,r)},scrollElementOffsetTop:i.scrollElementOffsetTop},null))])}}),Vi=()=>({modelValue:{type:String,default:""},theme:{type:String,default:"light"},class:{type:String,default:""},historyLength:{type:Number,default:10},onChange:{type:Function},onSave:{type:Function},onUploadImg:{type:Function},pageFullscreen:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},htmlPreview:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},language:{type:String,default:"zh-CN"},toolbars:{type:Array,default:bt},toolbarsExclude:{type:Array,default:[]},noPrettier:{type:Boolean,default:!1},onHtmlChanged:{type:Function},onGetCatalog:{type:Function},editorId:{type:String,default:Ut},tabWidth:{type:Number,default:2},showCodeRowNumber:{type:Boolean,default:!1},previewTheme:{type:String,default:"default"},style:{type:Object,default:()=>({})},markedHeadingId:{type:Function,default:yi},tableShape:{type:Array,default:()=>[6,4]},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:i=>i},placeholder:{type:String,default:""},noKatex:{type:Boolean,default:!1},defToolbars:{type:[String,Object]},onError:{type:Function},codeTheme:{type:String,default:"atom"},footers:{type:Array,default:kt},scrollAuto:{type:Boolean,default:!0},defFooters:{type:[String,Object]},noIconfont:{type:Boolean},formatCopiedText:{type:Function,default:i=>i},noUploadImg:{type:Boolean},codeStyleReverse:{type:Boolean,default:!0},codeStyleReverseList:{type:Array,default:["default","mk-cute"]},autoFocus:{type:Boolean},disabled:{type:Boolean},readOnly:{type:Boolean},maxLength:{type:Number},autoDetectCode:{type:Boolean}}),yi=i=>i,J=Vue.defineComponent({name:"MdEditorV3",props:Vi(),emits:["onChange","onSave","onUploadImg","onHtmlChanged","onGetCatalog","onError","update:modelValue"],setup(i,e){const{editorId:t,previewOnly:n,noKatex:l,noMermaid:o,noPrettier:a,noUploadImg:r}=i,d=Vue.reactive({scrollAuto:i.scrollAuto});on(i,e),rn(i),an(i);const[u,s]=sn(i,e),[m,p]=un(i);return Vue.onBeforeUnmount(()=>{v.clear(t)}),cn(i,e,m,u,s),()=>{var h;const V=G({props:i,ctx:e},"defToolbars"),x=G({props:i,ctx:e},"defFooters");return Vue.createVNode("div",{id:t,class:[c,i.class,i.theme==="dark"&&`${c}-dark`,u.fullscreen||u.pageFullscreen?`${c}-fullscreen`:"",n&&`${c}-previewOnly`],style:i.style},[!n&&Vue.createVNode($n,{noPrettier:a,toolbars:i.toolbars,toolbarsExclude:i.toolbarsExclude,setting:u,updateSetting:s,tableShape:i.tableShape,defToolbars:V,noUploadImg:r},null),Vue.createVNode(ci,{value:i.modelValue,onChange:k=>{v.emit(t,"saveHistoryPos"),i.onChange?i.onChange(k):(e.emit("update:modelValue",k),e.emit("onChange",k))},setting:u,onHtmlChanged:k=>{i.onHtmlChanged?i.onHtmlChanged(k):e.emit("onHtmlChanged",k)},onGetCatalog:k=>{i.onGetCatalog?i.onGetCatalog(k):e.emit("onGetCatalog",k)},markedHeadingId:i.markedHeadingId,noMermaid:o,sanitize:i.sanitize,placeholder:i.placeholder,noKatex:l,scrollAuto:d.scrollAuto,formatCopiedText:i.formatCopiedText,autofocus:i.autoFocus,disabled:i.disabled,readonly:i.readOnly,maxlength:i.maxLength,autoDetectCode:i.autoDetectCode},null),!n&&((h=i.footers)==null?void 0:h.length)>0&&Vue.createVNode(vi,{modelValue:i.modelValue,footers:i.footers,defFooters:x,scrollAuto:d.scrollAuto,onScrollAutoChange:k=>d.scrollAuto=k},null),p.value&&!n&&Vue.createVNode(Ae,{theme:i.theme,style:{display:m.value?"block":"none"},class:`${c}-catalog-editor`,editorId:t,markedHeadingId:i.markedHeadingId},null)])}}}),wi=()=>({title:{type:String,default:""},trigger:{type:[String,Object]},onClick:{type:Function}});var De=Vue.defineComponent({name:"NormalToolbar",props:wi(),emits:["onClick"],setup(i,e){return()=>{const t=G({props:i,ctx:e},"trigger");return Vue.createVNode("div",{class:`${c}-toolbar-item`,title:i.title,onClick:n=>{i.onClick instanceof Function?i.onClick(n):e.emit("onClick",n)}},[t])}}});const xi=()=>({title:{type:String,default:""},visible:{type:Boolean},trigger:{type:[String,Object]},onChange:{type:Function},overlay:{type:[String,Object]}});var Re=Vue.defineComponent({name:"DropdownToolbar",props:xi(),emits:["onChange"],setup(i,e){const t=Vue.inject("editorId");return()=>{const n=G({props:i,ctx:e},"trigger"),l=G({props:i,ctx:e},"overlay");return Vue.createVNode(ue,{relative:`#${t}-toolbar-wrapper`,visible:i.visible,onChange:o=>{i.onChange instanceof Function?i.onChange(o):e.emit("onChange",o)},overlay:l},{default:()=>[Vue.createVNode("div",{class:`${c}-toolbar-item`,title:i.title||""},[n])]})}}});function $i(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Vue.isVNode(i)}const Ci=()=>({title:{type:String,default:""},modalTitle:{type:String,default:""},visible:{type:Boolean},width:{type:String,default:"auto"},height:{type:String,default:"auto"},trigger:{type:[String,Object]},onClick:{type:Function},onClose:{type:Function},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function}});var Pe=Vue.defineComponent({name:"ModalToolbar",props:Ci(),emits:["onClick","onClose","onAdjust"],setup(i,e){return()=>{const t=G({props:i,ctx:e},"trigger"),n=G({props:i,ctx:e},"default");return Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("div",{class:`${c}-toolbar-item`,title:i.title,onClick:()=>{i.onClick instanceof Function?i.onClick():e.emit("onClick")}},[t]),Vue.createVNode(He,{width:i.width,height:i.height,title:i.modalTitle,visible:i.visible,onClose:()=>{i.onClose instanceof Function?i.onClose():e.emit("onClose")},showAdjust:i.showAdjust,isFullscreen:i.isFullscreen,onAdjust:l=>{i.onAdjust instanceof Function?i.onAdjust(l):e.emit("onAdjust",l)}},$i(n)?n:{default:()=>[n]})])}}});J.install=i=>(i.component(J.name,J),i.component(De.name,De),i.component(Re.name,Re),i.component(Ae.name,Ae),i.component(Pe.name,Pe),i);J.NormalToolbar=De;J.DropdownToolbar=Re;J.MdCatalog=Ae;J.ModalToolbar=Pe;J.config=Wt;const _i=Vue.defineComponent({name:"Welcome",__name:"index",setup(i){const e=Vue.ref(),t=Vue.ref(!0),{version:n}={dependencies:{"@amap/amap-jsapi-loader":"^1.0.1","@howdyjs/mouse-menu":"^2.0.7","@logicflow/core":"^1.2.5","@logicflow/extension":"^1.2.5","@pureadmin/descriptions":"^1.1.1","@pureadmin/table":"^2.1.0","@pureadmin/utils":"^1.8.9","@vueuse/core":"^10.1.2","@vueuse/motion":"2.0.0-beta.12","@wangeditor/editor":"^5.1.21","@wangeditor/editor-for-vue":"^5.1.12","animate.css":"^4.1.1",axios:"^1.4.0","china-area-data":"^5.0.1",cropperjs:"^1.5.13",dayjs:"^1.11.7",echarts:"^5.4.2","el-table-infinite-scroll":"^3.0.1","element-plus":"^2.3.4","element-resize-detector":"^1.2.4","intro.js":"^7.0.1","js-cookie":"^3.0.5",jsbarcode:"^3.11.5","md-editor-v3":"2.7.2",mitt:"^3.0.0",mockjs:"^1.1.0",nprogress:"^0.2.0",path:"^0.12.7",pinia:"^2.0.36",qrcode:"^1.5.3",qs:"^6.11.1","responsive-storage":"^2.2.0",sortablejs:"^1.15.0",swiper:"^9.3.0",typeit:"^8.7.1","v-contextmenu":"3.0.0",vue:"^3.3.1","vue-i18n":"^9.2.2","vue-json-pretty":"^2.2.4","vue-pdf-embed":"^1.1.6","vue-router":"^4.1.6","vue-types":"^5.0.2","vue-virtual-scroller":"2.0.0-beta.7","vue3-danmaku":"1.4.0-beta.1",vuedraggable:"^4.1.0",xgplayer:"^3.0.2",xlsx:"^0.18.5"},devDependencies:{"@commitlint/cli":"^17.6.3","@commitlint/config-conventional":"^17.6.3","@iconify-icons/ep":"^1.2.11","@iconify-icons/ri":"^1.2.7","@iconify/vue":"^4.1.1","@intlify/unplugin-vue-i18n":"^0.10.0","@pureadmin/theme":"^3.0.0","@types/element-resize-detector":"1.1.3","@types/intro.js":"^5.1.1","@types/js-cookie":"^3.0.3","@types/mockjs":"^1.0.7","@types/node":"^18.15.12","@types/nprogress":"0.2.0","@types/qrcode":"^1.5.0","@types/qs":"^6.9.7","@types/sortablejs":"^1.15.1","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","@vitejs/plugin-vue":"^4.2.2","@vitejs/plugin-vue-jsx":"^3.0.1","@vue/eslint-config-prettier":"^7.1.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.14",cloc:"^2.11.0",cssnano:"^6.0.1",eslint:"^8.40.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^9.12.0",husky:"^8.0.3","lint-staged":"^13.2.2",picocolors:"^1.0.0",postcss:"^8.4.23","postcss-html":"^1.5.0","postcss-import":"^15.1.0","postcss-scss":"^4.0.6",prettier:"^2.8.7","pretty-quick":"3.1.1",rimraf:"^5.0.0","rollup-plugin-visualizer":"^5.9.0",sass:"^1.62.1","sass-loader":"^13.2.2",stylelint:"^15.6.1","stylelint-config-html":"^1.1.0","stylelint-config-recess-order":"^4.0.0","stylelint-config-recommended":"^12.0.0","stylelint-config-recommended-scss":"^11.0.0","stylelint-config-recommended-vue":"^1.4.0","stylelint-config-standard":"^33.0.0","stylelint-config-standard-scss":"^9.0.0","stylelint-order":"^6.0.3","stylelint-prettier":"^3.0.0","stylelint-scss":"^5.0.0",svgo:"^3.0.2",tailwindcss:"^3.3.2",terser:"^5.17.1",typescript:"^5.0.4",vite:"^4.3.5","vite-plugin-cdn-import":"^0.3.5","vite-plugin-compression":"^0.5.1","vite-plugin-mock":"^2.9.6","vite-plugin-remove-console":"^2.1.1","vite-svg-loader":"^4.0.0","vue-eslint-parser":"^9.2.1","vue-tsc":"^1.6.4"},name:"vue-pure-admin",version:"4.0.0"},l=Vue.computed(()=>["text-base","font-medium"]),{height:o}=Ft();return setTimeout(()=>{t.value=!t.value},800),axios.get("https://api.github.com/repos/pure-admin/vue-pure-admin/releases").then(a=>{e.value=a.data.map(r=>({content:r.body,timestamp:dayjs(r.published_at).format("YYYY/MM/DD hh:mm:ss A"),icon:Vue.markRaw(Rt({background:jt({type:"hex"})}))}))}),(a,r)=>{const d=Vue.resolveComponent("el-timeline-item"),u=Vue.resolveComponent("el-timeline"),s=Vue.resolveComponent("el-empty"),m=Vue.resolveComponent("el-scrollbar"),p=Vue.resolveComponent("el-skeleton"),h=Vue.resolveComponent("el-card"),V=Vue.resolveComponent("el-col"),x=Vue.resolveComponent("el-row"),k=Vue.resolveDirective("motion");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(x,{gutter:24},{default:Vue.withCtx(()=>[Vue.withDirectives((Vue.openBlock(),Vue.createBlock(V,{xs:24,sm:24,md:12,lg:12,xl:12,class:"mb-[18px]",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:200}}},{default:Vue.withCtx(()=>[Vue.createVNode(h,{shadow:"never",style:Vue.normalizeStyle({height:`calc(${Vue.unref(o)}px - 35vh - 250px)`})},{header:Vue.withCtx(()=>[Vue.createElementVNode("a",{class:Vue.normalizeClass(l.value),href:"https://github.com/pure-admin/vue-pure-admin/releases",target:"_black"},[Vue.createVNode(Vue.unref(me),{className:"type-it2",values:[`PureAdmin 版本日志(当前版本 v${Vue.unref(n)})`],cursor:!1,speed:60},null,8,["values"])],2)]),default:Vue.withCtx(()=>[Vue.createVNode(p,{animated:"",rows:7,loading:t.value},{default:Vue.withCtx(()=>[Vue.createVNode(m,{height:`calc(${Vue.unref(o)}px - 35vh - 340px)`},{default:Vue.withCtx(()=>{var f,y;return[Vue.withDirectives(Vue.createVNode(u,null,{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.value,(C,_)=>(Vue.openBlock(),Vue.createBlock(d,{key:_,icon:C.icon,timestamp:C.timestamp},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(J),{modelValue:C.content,"onUpdate:modelValue":S=>C.content=S,"preview-only":""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["icon","timestamp"]))),128))]),_:1},512),[[Vue.vShow,((f=e.value)==null?void 0:f.length)>0]]),Vue.withDirectives(Vue.createVNode(s,null,null,512),[[Vue.vShow,((y=e.value)==null?void 0:y.length)===0]])]}),_:1},8,["height"])]),_:1},8,["loading"])]),_:1},8,["style"])]),_:1})),[[k]]),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(V,{xs:24,sm:24,md:12,lg:12,xl:12,class:"mb-[18px]",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:200}}},{default:Vue.withCtx(()=>[Vue.createVNode(h,{shadow:"never",style:Vue.normalizeStyle({height:`calc(${Vue.unref(o)}px - 35vh - 250px)`})},{header:Vue.withCtx(()=>[Vue.createElementVNode("a",{class:Vue.normalizeClass(l.value),href:"https://github.com/xiaoxian521",target:"_black"},[Vue.createVNode(Vue.unref(me),{className:"type-it1",values:["GitHub信息"],cursor:!1,speed:120})],2)]),default:Vue.withCtx(()=>[Vue.createVNode(p,{animated:"",rows:7,loading:t.value},{default:Vue.withCtx(()=>[Vue.createVNode(Lt)]),_:1},8,["loading"])]),_:1},8,["style"])]),_:1})),[[k]]),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(V,{xs:24,sm:24,md:12,lg:8,xl:8,class:"mb-[18px]",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:400}}},{default:Vue.withCtx(()=>[Vue.createVNode(h,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("a",{class:Vue.normalizeClass(l.value),href:"https://github.com/pure-admin/vue-pure-admin",target:"_black"},[Vue.createVNode(Vue.unref(me),{className:"type-it4",values:["GitHub折线图信息"],cursor:!1,speed:120})],2)]),default:Vue.withCtx(()=>[Vue.createVNode(p,{animated:"",rows:7,loading:t.value},{default:Vue.withCtx(()=>[Vue.createVNode(At)]),_:1},8,["loading"])]),_:1})]),_:1})),[[k]]),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(V,{xs:24,sm:24,md:12,lg:8,xl:8,class:"mb-[18px]",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:400}}},{default:Vue.withCtx(()=>[Vue.createVNode(h,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("a",{class:Vue.normalizeClass(l.value),href:"https://github.com/pure-admin/vue-pure-admin",target:"_black"},[Vue.createVNode(Vue.unref(me),{className:"type-it3",values:["GitHub饼图信息"],cursor:!1,speed:120})],2)]),default:Vue.withCtx(()=>[Vue.createVNode(p,{animated:"",rows:7,loading:t.value},{default:Vue.withCtx(()=>[Vue.createVNode(It)]),_:1},8,["loading"])]),_:1})]),_:1})),[[k]]),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(V,{xs:24,sm:24,md:24,lg:8,xl:8,class:"mb-[18px]",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:400}}},{default:Vue.withCtx(()=>[Vue.createVNode(h,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("a",{class:Vue.normalizeClass(l.value),href:"https://github.com/pure-admin/vue-pure-admin",target:"_black"},[Vue.createVNode(Vue.unref(me),{className:"type-it5",values:["GitHub柱状图信息"],cursor:!1,speed:120})],2)]),default:Vue.withCtx(()=>[Vue.createVNode(p,{animated:"",rows:7,loading:t.value},{default:Vue.withCtx(()=>[Vue.createVNode(zt)]),_:1},8,["loading"])]),_:1})]),_:1})),[[k]])]),_:1})])}}});const Oi=Dt(_i,[["__scopeId","data-v-95dc958c"]]);export{Oi as default}; diff --git a/dist/static/js/index-1b03d1d4.js b/dist/static/js/index-1b03d1d4.js deleted file mode 100644 index 0c5c40c35..000000000 --- a/dist/static/js/index-1b03d1d4.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as c}from"./index-c61a73ff.js";const s={width:"32",height:"32",viewBox:"0 0 48 48"},d=Vue.createElementVNode("path",{fill:"#2F88FF","fill-rule":"evenodd",stroke:"#000","stroke-linejoin":"round","stroke-width":"4",d:"M44 40.836c-4.893-5.973-9.238-9.362-13.036-10.168-3.797-.805-7.412-.927-10.846-.365V41L4 23.545 20.118 7v10.167c6.349.05 11.746 2.328 16.192 6.833 4.445 4.505 7.009 10.117 7.69 16.836Z","clip-rule":"evenodd"},null,-1),l=[d];function _(e,t){return Vue.openBlock(),Vue.createElementBlock("svg",s,l)}const r={render:_},n=e=>(Vue.pushScopeId("data-v-128fbe0e"),e=e(),Vue.popScopeId(),e),u={class:"w-full h-full text-center"},i=n(()=>Vue.createElementVNode("h1",null,"业务内容模块",-1)),a=n(()=>Vue.createElementVNode("p",null,"使用场景:需要外嵌平台某个页面,不需要展示菜单导航以及额外模块",-1)),p=Vue.defineComponent({name:"Empty",__name:"index",setup(e){return(t,o)=>(Vue.openBlock(),Vue.createElementBlock("div",u,[i,a,Vue.createElementVNode("div",{class:"back",title:"返回上一页",onClick:o[0]||(o[0]=V=>t.$router.go(-1))},[Vue.createVNode(Vue.unref(r),{class:"w-[80px] h-[80px]"})])]))}});const f=c(p,[["__scopeId","data-v-128fbe0e"]]);export{f as default}; diff --git a/dist/static/js/index-1e673eb0.js b/dist/static/js/index-1e673eb0.js new file mode 100644 index 000000000..7b2412178 --- /dev/null +++ b/dist/static/js/index-1e673eb0.js @@ -0,0 +1 @@ +import{f as n,k as c,i as t,d as _,g as a,u as i,p as l,q as r,_ as p}from"./index-0dd8d5e4.js";const u={width:"32",height:"32",viewBox:"0 0 48 48"},h=t("path",{fill:"#2F88FF","fill-rule":"evenodd",stroke:"#000","stroke-linejoin":"round","stroke-width":"4",d:"M44 40.836c-4.893-5.973-9.238-9.362-13.036-10.168-3.797-.805-7.412-.927-10.846-.365V41L4 23.545 20.118 7v10.167c6.349.05 11.746 2.328 16.192 6.833 4.445 4.505 7.009 10.117 7.69 16.836Z","clip-rule":"evenodd"},null,-1),f=[h];function v(e,o){return n(),c("svg",u,f)}const x={render:v},d=e=>(l("data-v-128fbe0e"),e=e(),r(),e),k={class:"w-full h-full text-center"},m=d(()=>t("h1",null,"业务内容模块",-1)),w=d(()=>t("p",null,"使用场景:需要外嵌平台某个页面,不需要展示菜单导航以及额外模块",-1)),b=_({name:"Empty",__name:"index",setup(e){return(o,s)=>(n(),c("div",k,[m,w,t("div",{class:"back",title:"返回上一页",onClick:s[0]||(s[0]=g=>o.$router.go(-1))},[a(i(x),{class:"w-[80px] h-[80px]"})])]))}});const B=p(b,[["__scopeId","data-v-128fbe0e"]]);export{B as default}; diff --git a/dist/static/js/index-1f4723fd.js b/dist/static/js/index-1f4723fd.js new file mode 100644 index 000000000..aa77e60a2 --- /dev/null +++ b/dist/static/js/index-1f4723fd.js @@ -0,0 +1 @@ +import{t as I}from"./index-95b65695.js";import{d as ae,r as v,x as r,aj as Ae,ak as Me,k as O,A as g,ab as se,al as N,ae as le,i as h,u as e,n as Fe,am as $e,f as $,R as Oe,a7 as He,c as Y,e as Pe,w as T,g as F,l as je,C as qe,F as De,p as Re,q as Be,_ as Ee}from"./index-0dd8d5e4.js";const We=()=>{window.cancelAnimationFrame=(()=>window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(l){return window.clearTimeout(l)})(),window.requestAnimationFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(l){return window.setTimeout(l,1e3/60)}}()},ze=(l,d)=>{if(l===d)return!0;if(l.length!==d.length)return!1;for(let a=0;ae(t)<0),Z=r(()=>Math.abs(e(t))({step:1,limitMoveNum:5,hoverStop:!0,direction:"top",openTouch:!0,singleHeight:0,singleWidth:0,waitTime:1e3,switchOffset:30,autoPlay:!0,navigation:!1,switchSingleStep:134,switchDelay:400,switchDisabledClass:"disabled",isSingleRemUnit:!1})),i=r(()=>S({},e(ce),w)),ue=r(()=>e(Q)?"":e(i).switchDisabledClass),fe=r(()=>e(Z)?"":e(i).switchDisabledClass),de=r(()=>({position:"absolute",margin:`${e(_)/2}px 0 0 -${e(i).switchOffset}px`,transform:"translate(-100%,-50%)"})),pe=r(()=>({position:"absolute",margin:`${e(_)/2}px 0 0 ${e(f)+e(i).switchOffset}px`,transform:"translateY(-50%)"})),R=r(()=>e(i).direction!=="bottom"&&e(i).direction!=="top"),ee=r(()=>e(R)?{float:"left",overflow:"hidden"}:{overflow:"hidden"}),me=r(()=>({transform:`translate(${e(t)}px,${e(n)}px)`,transition:`all ${D} ${e(p)}ms`,overflow:"hidden"})),B=r(()=>e(i).navigation),E=r(()=>e(B)?!1:e(i).autoPlay),te=r(()=>u.data.length>=e(i).limitMoveNum),ne=r(()=>e(i).hoverStop&&e(E)&&e(te)),W=r(()=>e(i).openTouch),oe=r(()=>e(i).isSingleRemUnit?parseInt(window.getComputedStyle(document.documentElement,null).fontSize):1),z=r(()=>e(i).singleWidth*e(oe)),L=r(()=>e(i).singleHeight*e(oe)),k=r(()=>{let o;const s=e(i).step;if(e(R)?o=e(z):o=e(L),o>0&&o%s>0)throw"如果设置了单步滚动,step需是单步大小的约数,否则无法保证单步滚动结束的位置是否准确";return s});function he(){t.value=0,n.value=0,A(),ie()}function ve(){if(e(Q)){if(Math.abs(e(t)){A()},y+20)):A()}function ge(o){if(!e(W)||o.targetTouches.length>1||o.scale&&o.scale!==1)return;const s=o.targetTouches[0],{direction:c}=e(i),y={x:s.pageX-j.x,y:s.pageY-j.y};o.preventDefault();const M=Math.abs(y.x)0&&(n.value=0);else if(s==="bottom"){const c=e(H)/2*-1;e(n)0&&(t.value=0);else if(s==="right"){const c=e(b)*-1;e(t){p.value=0,x()},e(p))}function _e(){e(ne)&&xe()}function be(){e(ne)&&ke()}function x(){q||(U=requestAnimationFrame(function(){const o=e(H)/2,s=e(b)/2,{direction:c,waitTime:y}=e(i);c==="top"?(Math.abs(e(n))>=o&&(a("scrollEnd"),n.value=0),n.value-=k.value):c==="bottom"?(e(n)>=0&&(a("scrollEnd"),n.value=o*-1),n.value+=k.value):c==="left"?(Math.abs(e(t))>=s&&(a("scrollEnd"),t.value=0),t.value-=k.value):c==="right"&&(e(t)>=0&&(a("scrollEnd"),t.value=s*-1),t.value+=k.value),C&&clearTimeout(C),e(L)?Math.abs(e(n))%e(L){x()},y):x():e(z)&&Math.abs(e(t))%e(z){x()},y):x()}))}function ie(){Fe(()=>{const{switchDelay:o}=e(i);if(P.value="",e(R)){_.value=e(G).offsetHeight,f.value=e(G).offsetWidth;let s=e(J).offsetWidth;e(E)&&(s=s*2+1),e(K).style.width=s+"px",b.value=s}if(e(E))D="ease-in",p.value=0;else{D="linear",p.value=o;return}e(te)?(P.value=e(J).innerHTML,setTimeout(()=>{var s;H.value=(s=e(K))==null?void 0:s.offsetHeight,x()},0)):(A(),n.value=t.value=0)})}function ke(){q=!1,x()}function xe(){q=!0,C&&clearTimeout(C),A()}function Te(o){e(i).direction==="left"||e(i).direction==="right"||$e(()=>{o.deltaY>0?n.value-=k.value:n.value+=k.value},50)()}return Ae(()=>{ie()}),Me(()=>{A(),clearTimeout(C)}),d({reset:he}),(o,s)=>($(),O("div",{ref:"wrap"+e(w).key},[B.value?($(),O("div",{key:0,style:g(de.value),class:se(ue.value),onClick:ve},[N(o.$slots,"left-switch")],6)):le("",!0),B.value?($(),O("div",{key:1,style:g(pe.value),class:se(fe.value),onClick:we},[N(o.$slots,"right-switch")],6)):le("",!0),h("div",{ref:"realBox"+e(w).key,style:g(me.value),onMouseenter:_e,onMouseleave:be,onTouchstartPassive:ye,onTouchmovePassive:ge,onTouchend:Se,onMousewheelPassive:Te},[h("div",{ref:"slotList"+e(w).key,style:g(ee.value)},[N(o.$slots,"default")],4),h("div",{innerHTML:P.value,style:g(ee.value)},null,12,Ie)],36)],512))}}),Ye=Oe(Ne),Ue=l=>(Re("data-v-28c9d5d1"),l=l(),Be(),l),Ve={class:"card-header"},Xe=Ue(()=>h("span",null,"无缝滚动示例",-1)),Ge={class:"item"},Je=["textContent"],Ke=ae({name:"SeamlessScroll",__name:"index",setup(l){const d=v(),a=v([{title:"无缝滚动第一行无缝滚动第一行!!!!!!!!!!"},{title:"无缝滚动第二行无缝滚动第二行!!!!!!!!!!"},{title:"无缝滚动第三行无缝滚动第三行!!!!!!!!!!"},{title:"无缝滚动第四行无缝滚动第四行!!!!!!!!!!"},{title:"无缝滚动第五行无缝滚动第五行!!!!!!!!!!"},{title:"无缝滚动第六行无缝滚动第六行!!!!!!!!!!"},{title:"无缝滚动第七行无缝滚动第七行!!!!!!!!!!"},{title:"无缝滚动第八行无缝滚动第八行!!!!!!!!!!"},{title:"无缝滚动第九行无缝滚动第九行!!!!!!!!!!"}]),u=He({direction:"top"});function m(S){e(d).reset(),e(u).direction=S}return(S,t)=>{const n=Y("el-button"),p=Y("el-card"),_=Y("el-space");return $(),Pe(_,{wrap:""},{default:T(()=>[F(p,{class:"box-card",shadow:"never"},{header:T(()=>[h("div",Ve,[Xe,F(n,{class:"button",link:"",type:"primary",onClick:t[0]||(t[0]=f=>m("top"))},{default:T(()=>[h("span",{style:g({color:u.direction==="top"?"red":""})}," 向上滚动 ",4)]),_:1}),F(n,{class:"button",link:"",type:"primary",onClick:t[1]||(t[1]=f=>m("bottom"))},{default:T(()=>[h("span",{style:g({color:u.direction==="bottom"?"red":""})}," 向下滚动 ",4)]),_:1}),F(n,{class:"button",link:"",type:"primary",onClick:t[2]||(t[2]=f=>m("left"))},{default:T(()=>[h("span",{style:g({color:u.direction==="left"?"red":""})}," 向左滚动 ",4)]),_:1}),F(n,{class:"button",link:"",type:"primary",onClick:t[3]||(t[3]=f=>m("right"))},{default:T(()=>[h("span",{style:g({color:u.direction==="right"?"red":""})}," 向右滚动 ",4)]),_:1})])]),default:T(()=>[F(e(Ye),{ref_key:"scroll",ref:d,data:a.value,"class-option":u,class:"warp"},{default:T(()=>[h("ul",Ge,[($(!0),O(De,null,je(a.value,(f,b)=>($(),O("li",{key:b},[h("span",{class:"title",textContent:qe(f.title)},null,8,Je)]))),128))])]),_:1},8,["data","class-option"])]),_:1})]),_:1})}}});const et=Ee(Ke,[["__scopeId","data-v-28c9d5d1"]]);export{et as default}; diff --git a/dist/static/js/index-24d2e7bb.js b/dist/static/js/index-24d2e7bb.js new file mode 100644 index 000000000..8fc7c05e1 --- /dev/null +++ b/dist/static/js/index-24d2e7bb.js @@ -0,0 +1 @@ +import{d as he,L as be}from"./index-0dd8d5e4.js";const ne=e=>Array.isArray(e),le=e=>ne(e)?e:[e];let ge=function(e){let t=function(f){return le(f).forEach(w=>{var L;return b.set(Symbol((L=w.char)==null?void 0:L.innerText),o({...w}))}),this},n=()=>m().filter(f=>f.typeable),a=function(f,w){let L=[...b.keys()];b.set(L[f],o(w))},o=f=>(f.shouldPauseCursor=function(){return!!(this.typeable||this.cursorable||this.deletable)},f),s=function(){b.forEach(f=>delete f.done)},y=function(){b=new Map,t(e)},d=()=>b,m=()=>Array.from(b.values()),p=f=>b.delete(f),_=(f=!1)=>f?m():m().filter(w=>!w.done),S=(f,w=!1)=>w?b.delete(f):b.get(f).done=!0,b=new Map;return t(e),{add:t,set:a,wipe:y,reset:s,destroy:p,done:S,getItems:_,getQueue:d,getTypeable:n}};const ae=e=>Array.from(e),W=e=>document.createTextNode(e);let j=e=>([...e.childNodes].forEach(t=>{if(t.nodeValue){[...t.nodeValue].forEach(n=>{t.parentNode.insertBefore(W(n),t)}),t.remove();return}j(t)}),e);const se=e=>{let t=document.implementation.createHTMLDocument();return t.body.innerHTML=e,j(t.body)},ie="data-typeit-id",A="ti-cursor",Te="END",Se={started:!1,completed:!1,frozen:!1,destroyed:!1},x={breakLines:!0,cursor:{autoPause:!0,autoPauseDelay:500,animation:{frames:[0,0,1].map(e=>({opacity:e})),options:{iterations:1/0,easing:"steps(2, start)",fill:"forwards"}}},cursorChar:"|",cursorSpeed:1e3,deleteSpeed:null,html:!0,lifeLike:!0,loop:!1,loopDelay:750,nextStringDelay:750,speed:100,startDelay:250,startDelete:!1,strings:[],waitUntilVisible:!1,beforeString:()=>{},afterString:()=>{},beforeStep:()=>{},afterStep:()=>{},afterComplete:()=>{}},we=`[${ie}]:before {content: '.'; display: inline-block; width: 0; visibility: hidden;}`;function oe(e,t=!1,n=!1){let a=e.querySelector(`.${A}`),o=document.createTreeWalker(e,NodeFilter.SHOW_ALL,{acceptNode:d=>{var m,p;if(a&&n){if((m=d.classList)!=null&&m.contains(A))return NodeFilter.FILTER_ACCEPT;if(a.contains(d))return NodeFilter.FILTER_REJECT}return(p=d.classList)!=null&&p.contains(A)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),s,y=[];for(;s=o.nextNode();)s.originalParent||(s.originalParent=s.parentNode),y.push(s);return t?y.reverse():y}function Ee(e){return oe(se(e))}function Ce(e,t=!0){return t?Ee(e):ae(e).map(W)}const H=e=>document.createElement(e),ue=(e,t="")=>{let n=H("style");n.id=t,n.appendChild(W(e)),document.head.appendChild(n)},Y=e=>(ne(e)||(e=[e/2,e/2]),e),Z=(e,t)=>Math.abs(Math.random()*(e+t-(e-t))+(e-t));let ee=e=>e/2;function _e(e){let{speed:t,deleteSpeed:n,lifeLike:a}=e;return n=n!==null?n:t/3,a?[Z(t,ee(t)),Z(n,ee(n))]:[t,n]}const Pe=e=>(e.forEach(clearTimeout),[]),Ie=()=>Math.random().toString().substring(2,9),J=e=>"value"in e;let Ne=e=>J(e)?ae(e.value):oe(e,!0).filter(t=>!(t.childNodes.length>0));const Ae=(e,t)=>{new IntersectionObserver((a,o)=>{a.forEach(s=>{s.isIntersecting&&(t(),o.unobserve(e))})},{threshold:1}).observe(e)};let v=e=>typeof e=="function"?e():e;const de=e=>Number.isInteger(e);let X=(e,t=document,n=!1)=>t[`querySelector${n?"All":""}`](e),Le=e=>/body/i.test(e==null?void 0:e.tagName),De=(e,t)=>{if(J(e)){e.value=`${e.value}${t.textContent}`;return}t.innerHTML="";let n=Le(t.originalParent)?e:t.originalParent||e;n.insertBefore(t,X("."+A,n)||null)},ve=(e,t,n)=>Math.min(Math.max(t+e,0),n.length);const k=(e,t)=>Object.assign({},e,t),xe=(e,t)=>{if(!e)return;let n=e.parentNode;(n.childNodes.length>1||n.isSameNode(t)?e:n).remove()},ke=(e,t,n)=>{let a=t[n-1],o=X(`.${A}`,e);e=(a==null?void 0:a.parentNode)||e,e.insertBefore(o,a||null)};function Me(e){return typeof e=="string"?X(e):e}const Re=e=>/<(.+)>(.*?)<\/(.+)>/.test(e.outerHTML);let $e=(e,t,n)=>new Promise(a=>{let o=async()=>{await e(),a()};n.push(setTimeout(o,t||0))}),Fe={"font-family":"","font-weight":"","font-size":"","font-style":"","line-height":"",color:"",transform:"translateX(-.125em)"},He=(e,t)=>{let a=`${`[${ie}='${e}']`} .${A}`,o=getComputedStyle(t),s=Object.entries(Fe).reduce((y,[d,m])=>`${y} ${d}: var(--ti-cursor-${d}, ${m||o[d]});`,"");ue(`${a} { display: inline-block; width: 0; ${s} }`,e)};const F=(e,t)=>new Array(t).fill(e),te=({queueItems:e,selector:t,cursorPosition:n,to:a})=>{if(de(t))return t*-1;let o=new RegExp(Te,"i").test(a),s=t?[...e].reverse().findIndex(({char:d})=>{let m=d.parentElement,p=m.matches(t);return o&&p?!0:p&&m.firstChild.isSameNode(d)}):-1;s<0&&(s=o?0:e.length-1);let y=o?0:1;return s-n+y};let Q=e=>new Promise(t=>{requestAnimationFrame(async()=>{t(await e())})}),fe=e=>e==null?void 0:e.getAnimations().find(t=>t.id===e.dataset.tiAnimationId),ce=({cursor:e,frames:t,options:n})=>{let a=e.animate(t,n);return a.pause(),a.id=e.dataset.tiAnimationId,Q(()=>{Q(()=>{a.play()})}),a},Qe=({cursor:e,options:t,cursorOptions:n})=>{if(!e||!n)return;let a=fe(e),o;a&&(t.delay=a.effect.getComputedTiming().delay,o=a.currentTime,a.cancel());let s=ce({cursor:e,frames:n.animation.frames,options:t});return o&&(s.currentTime=o),s},re=e=>{var t;return(t=e.func)==null?void 0:t.call(null)},Be=async({index:e,queueItems:t,wait:n,cursor:a,cursorOptions:o})=>{let s=t[e][1],y=[],d=e,m=s,p=()=>m&&!m.delay,_=s.shouldPauseCursor()&&o.autoPause;for(;p();)y.push(m),p()&&d++,m=t[d]?t[d][1]:null;if(y.length)return await Q(async()=>{for(let f of y)await re(f)}),d-1;let S=fe(a),b;return S&&(b={...S.effect.getComputedTiming(),delay:_?o.autoPauseDelay:0}),await n(async()=>{S&&_&&S.cancel(),await Q(()=>{re(s)})},s.delay),await Qe({cursor:a,options:b,cursorOptions:o}),e},qe=e=>{var t,n;if(typeof e=="object"){let a={},{frames:o,options:s}=x.cursor.animation;return a.animation=e.animation||{},a.animation.frames=((t=e.animation)==null?void 0:t.frames)||o,a.animation.options=k(s,((n=e.animation)==null?void 0:n.options)||{}),a.autoPause=e.autoPause??x.cursor.autoPause,a.autoPauseDelay=e.autoPauseDelay||x.cursor.autoPauseDelay,a}return e===!0?x.cursor:e};const Ue=function(e,t={}){let n=async(r,l,u=!1)=>{E.frozen&&await new Promise(c=>{this.unfreeze=()=>{E.frozen=!1,c()}}),u||await i.beforeStep(this),await $e(r,l,q),u||await i.afterStep(this)},a=(r,l)=>Be({index:r,queueItems:l,wait:n,cursor:N,cursorOptions:i.cursor}),o=r=>xe(r,h),s=()=>J(h),y=(r=0)=>_e(i)[r],d=()=>Ne(h),m=(r={})=>{let l=r.delay;l&&g.add({delay:l})},p=(r,l)=>(g.add(r),m(l),this),_=()=>K??D,S=(r={})=>[{func:()=>R(r)},{func:()=>R(i)}],b=r=>{let l=i.nextStringDelay;g.add([{delay:l[0]},...r,{delay:l[1]}])},f=()=>{if(s())return;let r=H("span");return r.className=A,O?(r.innerHTML=se(i.cursorChar).innerHTML,r):(r.style.visibility="hidden",r)},w=async()=>{if(!s()&&N&&h.appendChild(N),O){He(U,h),N.dataset.tiAnimationId=U;let{animation:r}=i.cursor,{frames:l,options:u}=r;ce({frames:l,cursor:N,options:{duration:i.cursorSpeed,...u}})}},L=()=>{let r=i.strings.filter(l=>!!l);r.forEach((l,u)=>{if(this.type(l),u+1===r.length)return;let c=i.breakLines?[{func:()=>B(H("BR")),typeable:!0}]:F({func:$,delay:y(1)},g.getTypeable().length);b(c)})},ye=async r=>{let l=_();l&&await G({value:l});let u=d().map(c=>[Symbol(),{func:$,delay:y(1),deletable:!0,shouldPauseCursor:()=>!0}]);for(let c=0;c{let l=h.innerHTML;return l?(h.innerHTML="",i.startDelete?(h.innerHTML=l,j(h),b(F({func:$,delay:y(1),deletable:!0},d().length)),r):l.replace(//g,"").trim().split(//).concat(r)):r},M=async(r=!0)=>{E.started=!0;let l=u=>{g.done(u,!r)};try{let u=[...g.getQueue()];for(let T=0;Tz+V).forEach(z=>{let[V]=u[z];l(V)}),T=I}l(P)}}if(!r)return this;if(E.completed=!0,await i.afterComplete(this),!i.loop)throw"";let c=i.loopDelay;n(async()=>{await ye(c[0]),M()},c[1])}catch{}return this},G=async r=>{D=ve(r,D,d()),ke(h,d(),D)},B=r=>De(h,r),R=async r=>i=k(i,r),me=async()=>{if(s()){h.value="";return}d().forEach(o)},$=()=>{let r=d();r.length&&(s()?h.value=h.value.slice(0,-1):o(r[D]))};this.break=function(r){return p({func:()=>B(H("BR")),typeable:!0},r)},this.delete=function(r=null,l={}){r=v(r);let u=S(l),c=r,{instant:T,to:P}=l,C=g.getTypeable(),I=(()=>c===null?C.length:de(c)?c:te({queueItems:C,selector:c,cursorPosition:_(),to:P}))();return p([u[0],...F({func:$,delay:T?0:y(1),deletable:!0},I),u[1]],l)},this.empty=function(r={}){return p({func:me},r)},this.exec=function(r,l={}){let u=S(l);return p([u[0],{func:()=>r(this)},u[1]],l)},this.move=function(r,l={}){r=v(r);let u=S(l),{instant:c,to:T}=l,P=te({queueItems:g.getTypeable(),selector:r===null?"":r,to:T,cursorPosition:_()}),C=P<0?-1:1;return K=_()+P,p([u[0],...F({func:()=>G(C),delay:c?0:y(),cursorable:!0},Math.abs(P)),u[1]],l)},this.options=function(r,l={}){return r=v(r),R(r),p({},l)},this.pause=function(r,l={}){return p({delay:v(r)},l)},this.type=function(r,l={}){r=v(r);let{instant:u}=l,c=S(l),P=Ce(r,i.html).map(I=>({func:()=>B(I),char:I,delay:u||Re(I)?0:y(),typeable:I.nodeType===Node.TEXT_NODE})),C=[c[0],{func:async()=>await i.beforeString(r,this)},...P,{func:async()=>await i.afterString(r,this)},c[1]];return p(C,l)},this.is=function(r){return E[r]},this.destroy=function(r=!0){q=Pe(q),v(r)&&N&&o(N),E.destroyed=!0},this.freeze=function(){E.frozen=!0},this.unfreeze=()=>{},this.reset=function(r){!this.is("destroyed")&&this.destroy(),r?(g.wipe(),r(this)):g.reset(),D=0;for(let l in E)E[l]=!1;return h[s()?"value":"innerHTML"]="",this},this.go=function(){return E.started?this:(w(),i.waitUntilVisible?(Ae(h,M.bind(this)),this):(M(),this))},this.flush=function(r=()=>{}){return w(),M(!1).then(r),this},this.getQueue=()=>g,this.getOptions=()=>i,this.updateOptions=r=>R(r),this.getElement=()=>h;let h=Me(e),q=[],D=0,K=null,E=k({},Se);t.cursor=qe(t.cursor??x.cursor);let i=k(x,t);i=k(i,{html:!s()&&i.html,nextStringDelay:Y(i.nextStringDelay),loopDelay:Y(i.loopDelay)});let U=Ie(),g=ge([{delay:i.startDelay}]);h.dataset.typeitId=U,ue(we);let O=!!i.cursor&&!s(),N=f();i.strings=pe(le(i.strings)),i.strings.length&&L()},Ve=he({name:"TypeIt",props:{speed:{type:Number,default:200},values:{type:Array,defalut:[]},className:{type:String,default:"type-it"},cursor:{type:Boolean,default:!0}},render(){return be("span",{class:this.className},{default:()=>[]})},mounted(){new Ue(`.${this.className}`,{strings:this.values,speed:this.speed,cursor:this.cursor}).go()}});export{Ve as T}; diff --git a/dist/static/js/index-29a339f3.js b/dist/static/js/index-29a339f3.js deleted file mode 100644 index a83ad58e5..000000000 --- a/dist/static/js/index-29a339f3.js +++ /dev/null @@ -1,8 +0,0 @@ -import{p as $}from"./propTypes-c3354283.js";import{K as kt,G as mt,H as zt}from"./index-c61a73ff.js";import{d as Ht}from"./refresh-right-6177e75c.js";var O={},Kt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Bt={},M={};let ct;const Ot=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];M.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};M.getSymbolTotalCodewords=function(e){return Ot[e]};M.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};M.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');ct=e};M.isKanjiModeEnabled=function(){return typeof ct<"u"};M.toSJIS=function(e){return ct(e)};var W={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+i)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,o){if(t.isValid(r))return r;try{return e(r)}catch{return o}}})(W);function pt(){this.buffer=[],this.length=0}pt.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let i=0;i>>e-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Jt=pt;function J(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}J.prototype.set=function(t,e,i,r){const o=t*this.size+e;this.data[o]=i,r&&(this.reservedBit[o]=!0)};J.prototype.get=function(t,e){return this.data[t*this.size+e]};J.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i};J.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var Yt=J,bt={};(function(t){const e=M.getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const o=Math.floor(r/7)+2,n=e(r),s=n===145?26:Math.ceil((n-13)/(2*o-2))*2,a=[n-7];for(let u=1;u=0&&o<=7},t.from=function(o){return t.isValid(o)?parseInt(o,10):void 0},t.getPenaltyN1=function(o){const n=o.size;let s=0,a=0,u=0,f=null,d=null;for(let p=0;p=5&&(s+=e.N1+(a-5)),f=w,a=1),w=o.get(C,p),w===d?u++:(u>=5&&(s+=e.N1+(u-5)),d=w,u=1)}a>=5&&(s+=e.N1+(a-5)),u>=5&&(s+=e.N1+(u-5))}return s},t.getPenaltyN2=function(o){const n=o.size;let s=0;for(let a=0;a=10&&(a===1488||a===93)&&s++,u=u<<1&2047|o.get(d,f),d>=10&&(u===1488||u===93)&&s++}return s*e.N3},t.getPenaltyN4=function(o){let n=0;const s=o.data.length;for(let u=0;u=0;){const s=n[0];for(let u=0;u0){const n=new Uint8Array(this.degree);return n.set(r,o),n}return r};var jt=lt,St={},v={},ft={};ft.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var P={};const Mt="[0-9]+",Qt="[A-Z $%*+\\-./:]+";let K="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";K=K.replace(/u/g,"\\u");const Gt="(?:(?![A-Z0-9 $%*+\\-./:]|"+K+`)(?:.|[\r -]))+`;P.KANJI=new RegExp(K,"g");P.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");P.BYTE=new RegExp(Gt,"g");P.NUMERIC=new RegExp(Mt,"g");P.ALPHANUMERIC=new RegExp(Qt,"g");const qt=new RegExp("^"+K+"$"),Wt=new RegExp("^"+Mt+"$"),Xt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");P.testKanji=function(e){return qt.test(e)};P.testNumeric=function(e){return Wt.test(e)};P.testAlphanumeric=function(e){return Xt.test(e)};(function(t){const e=ft,i=P;t.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!e.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},t.getBestModeForData=function(n){return i.testNumeric(n)?t.NUMERIC:i.testAlphanumeric(n)?t.ALPHANUMERIC:i.testKanji(n)?t.KANJI:t.BYTE},t.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},t.isValid=function(n){return n&&n.bit&&n.ccBits};function r(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+o)}}t.from=function(n,s){if(t.isValid(n))return n;try{return r(n)}catch{return s}}})(v);(function(t){const e=M,i=X,r=W,o=v,n=ft,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,a=e.getBCHDigit(s);function u(C,w,y){for(let c=1;c<=40;c++)if(w<=t.getCapacity(c,y,C))return c}function f(C,w){return o.getCharCountIndicator(C,w)+4}function d(C,w){let y=0;return C.forEach(function(c){const E=f(c.mode,w);y+=E+c.getBitsLength()}),y}function p(C,w){for(let y=1;y<=40;y++)if(d(C,y)<=t.getCapacity(y,w,o.MIXED))return y}t.from=function(w,y){return n.isValid(w)?parseInt(w,10):y},t.getCapacity=function(w,y,c){if(!n.isValid(w))throw new Error("Invalid QR Code version");typeof c>"u"&&(c=o.BYTE);const E=e.getSymbolTotalCodewords(w),l=i.getTotalCodewordsCount(w,y),m=(E-l)*8;if(c===o.MIXED)return m;const h=m-f(c,w);switch(c){case o.NUMERIC:return Math.floor(h/10*3);case o.ALPHANUMERIC:return Math.floor(h/11*2);case o.KANJI:return Math.floor(h/13);case o.BYTE:default:return Math.floor(h/8)}},t.getBestVersionForData=function(w,y){let c;const E=r.from(y,r.M);if(Array.isArray(w)){if(w.length>1)return p(w,E);if(w.length===0)return 1;c=w[0]}else c=w;return u(c.mode,c.getLength(),E)},t.getEncodedBits=function(w){if(!n.isValid(w)||w<7)throw new Error("Invalid QR Code version");let y=w<<12;for(;e.getBCHDigit(y)-a>=0;)y^=s<=0;)o^=Rt<0&&(r=this.data.substr(i),o=parseInt(r,10),e.put(o,n*3+1))};var te=V;const ee=v,tt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function U(t){this.mode=ee.ALPHANUMERIC,this.data=t}U.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(e){let i;for(i=0;i+2<=this.data.length;i+=2){let r=tt.indexOf(this.data[i])*45;r+=tt.indexOf(this.data[i+1]),e.put(r,11)}this.data.length%2&&e.put(tt.indexOf(this.data[i]),6)};var ne=U,oe=function(e){for(var i=[],r=e.length,o=0;o=55296&&n<=56319&&r>o+1){var s=e.charCodeAt(o+1);s>=56320&&s<=57343&&(n=(n-55296)*1024+s-56320+65536,o+=1)}if(n<128){i.push(n);continue}if(n<2048){i.push(n>>6|192),i.push(n&63|128);continue}if(n<55296||n>=57344&&n<65536){i.push(n>>12|224),i.push(n>>6&63|128),i.push(n&63|128);continue}if(n>=65536&&n<=1114111){i.push(n>>18|240),i.push(n>>12&63|128),i.push(n>>6&63|128),i.push(n&63|128);continue}i.push(239,191,189)}return new Uint8Array(i).buffer};const re=oe,ie=v;function _(t){this.mode=ie.BYTE,typeof t=="string"&&(t=re(t)),this.data=new Uint8Array(t)}_.getBitsLength=function(e){return e*8};_.prototype.getLength=function(){return this.data.length};_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)};_.prototype.write=function(t){for(let e=0,i=this.data.length;e=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` -Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),t.put(i,13)}};var ce=F,vt={exports:{}};(function(t){var e={single_source_shortest_paths:function(i,r,o){var n={},s={};s[r]=0;var a=e.PriorityQueue.make();a.push(r,0);for(var u,f,d,p,C,w,y,c,E;!a.empty();){u=a.pop(),f=u.value,p=u.cost,C=i[f]||{};for(d in C)C.hasOwnProperty(d)&&(w=C[d],y=p+w,c=s[d],E=typeof s[d]>"u",(E||c>y)&&(s[d]=y,a.push(d,y),n[d]=f))}if(typeof o<"u"&&typeof s[o]>"u"){var l=["Could not find a path from ",r," to ",o,"."].join("");throw new Error(l)}return n},extract_shortest_path_from_predecessor_list:function(i,r){for(var o=[],n=r;n;)o.push(n),i[n],n=i[n];return o.reverse(),o},find_path:function(i,r,o){var n=e.single_source_shortest_paths(i,r,o);return e.extract_shortest_path_from_predecessor_list(n,o)},PriorityQueue:{make:function(i){var r=e.PriorityQueue,o={},n;i=i||{};for(n in r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=i.sorter||r.default_sorter,o},default_sorter:function(i,r){return i.cost-r.cost},push:function(i,r){var o={value:i,cost:r};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(vt);var le=vt.exports;(function(t){const e=v,i=te,r=ne,o=se,n=ce,s=P,a=M,u=le;function f(l){return unescape(encodeURIComponent(l)).length}function d(l,m,h){const g=[];let B;for(;(B=l.exec(h))!==null;)g.push({data:B[0],index:B.index,mode:m,length:B[0].length});return g}function p(l){const m=d(s.NUMERIC,e.NUMERIC,l),h=d(s.ALPHANUMERIC,e.ALPHANUMERIC,l);let g,B;return a.isKanjiModeEnabled()?(g=d(s.BYTE,e.BYTE,l),B=d(s.KANJI,e.KANJI,l)):(g=d(s.BYTE_KANJI,e.BYTE,l),B=[]),m.concat(h,g,B).sort(function(A,S){return A.index-S.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function C(l,m){switch(m){case e.NUMERIC:return i.getBitsLength(l);case e.ALPHANUMERIC:return r.getBitsLength(l);case e.KANJI:return n.getBitsLength(l);case e.BYTE:return o.getBitsLength(l)}}function w(l){return l.reduce(function(m,h){const g=m.length-1>=0?m[m.length-1]:null;return g&&g.mode===h.mode?(m[m.length-1].data+=h.data,m):(m.push(h),m)},[])}function y(l){const m=[];for(let h=0;h=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?t.set(n+a,s+u,!0,!0):t.set(n+a,s+u,!1,!0))}}function Ee(t){const e=t.size;for(let i=8;i>a&1)===1,t.set(o,n,s,!0),t.set(n,o,s,!0)}function ot(t,e,i){const r=t.size,o=me.getEncodedBits(e,i);let n,s;for(n=0;n<15;n++)s=(o>>n&1)===1,n<6?t.set(n,8,s,!0):n<8?t.set(n+1,8,s,!0):t.set(r-15+n,8,s,!0),n<8?t.set(8,r-n-1,s,!0):n<9?t.set(8,15-n-1+1,s,!0):t.set(8,15-n-1,s,!0);t.set(r-8,8,1,!0)}function be(t,e){const i=t.size;let r=-1,o=i-1,n=7,s=0;for(let a=i-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!t.isReserved(o,a-u)){let f=!1;s>>n&1)===1),t.set(o,a-u,f),n--,n===-1&&(s++,n=7)}if(o+=r,o<0||i<=o){o-=r,r=-r;break}}}function Ae(t,e,i){const r=new fe;i.forEach(function(u){r.put(u.mode.bit,4),r.put(u.getLength(),Ce.getCharCountIndicator(u.mode,t)),u.write(r)});const o=x.getSymbolTotalCodewords(t),n=ut.getTotalCodewordsCount(t,e),s=(o-n)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const a=(s-r.getLengthInBits())/8;for(let u=0;u=7&&pe(u,e),be(u,s),isNaN(r)&&(r=st.getBestMask(u,ot.bind(null,u,i))),st.applyMask(r,u),ot(u,i,r),{modules:u,version:e,errorCorrectionLevel:i,maskPattern:r,segments:o}}Bt.create=function(e,i){if(typeof e>"u"||e==="")throw new Error("No input text");let r=et.M,o,n;return typeof i<"u"&&(r=et.from(i.errorCorrectionLevel,et.M),o=q.from(i.version),n=st.from(i.maskPattern),i.toSJISFunc&&x.setToSJISFunction(i.toSJISFunc)),Ne(e,o,r,n)};var Dt={},dt={};(function(t){function e(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let r=i.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+i);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(n){return[n,n]}))),r.length===6&&r.push("F","F");const o=parseInt(r.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+r.slice(0,6).join("")}}t.getOptions=function(r){r||(r={}),r.color||(r.color={});const o=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,n=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:n,scale:n?4:s,margin:o,color:{dark:e(r.color.dark||"#000000ff"),light:e(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},t.getScale=function(r,o){return o.width&&o.width>=r+o.margin*2?o.width/(r+o.margin*2):o.scale},t.getImageWidth=function(r,o){const n=t.getScale(r,o);return Math.floor((r+o.margin*2)*n)},t.qrToImageData=function(r,o,n){const s=o.modules.size,a=o.modules.data,u=t.getScale(s,n),f=Math.floor((s+n.margin*2)*u),d=n.margin*u,p=[n.color.light,n.color.dark];for(let C=0;C=d&&w>=d&&C"u"&&(!s||!s.getContext)&&(u=s,s=void 0),s||(f=r()),u=e.getOptions(u);const d=e.getImageWidth(n.modules.size,u),p=f.getContext("2d"),C=p.createImageData(d,d);return e.qrToImageData(C.data,n,u),i(p,f,d),p.putImageData(C,0,0),f},t.renderToDataURL=function(n,s,a){let u=a;typeof u>"u"&&(!s||!s.getContext)&&(u=s,s=void 0),u||(u={});const f=t.render(n,s,u),d=u.type||"image/png",p=u.rendererOpts||{};return f.toDataURL(d,p.quality)}})(Dt);var Vt={};const Ie=dt;function Et(t,e){const i=t.a/255,r=e+'="'+t.hex+'"';return i<1?r+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':r}function rt(t,e,i){let r=t+e;return typeof i<"u"&&(r+=" "+i),r}function Se(t,e,i){let r="",o=0,n=!1,s=0;for(let a=0;a0&&u>0&&t[a-1]||(r+=n?rt("M",u+i,.5+f+i):rt("m",o,0),o=0,n=!1),u+1':"",f="',d='viewBox="0 0 '+a+" "+a+'"',C=''+u+f+` -`;return typeof r=="function"&&r(null,C),C};const Me=Kt,at=Bt,Ut=Dt,Pe=Vt;function gt(t,e,i,r,o){const n=[].slice.call(arguments,1),s=n.length,a=typeof n[s-1]=="function";if(!a&&!Me())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(o=i,i=e,e=r=void 0):s===3&&(e.getContext&&typeof o>"u"?(o=r,r=void 0):(o=r,r=i,i=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=e,e=r=void 0):s===2&&!e.getContext&&(r=i,i=e,e=void 0),new Promise(function(u,f){try{const d=at.create(i,r);u(t(d,e,r))}catch(d){f(d)}})}try{const u=at.create(i,r);o(null,t(u,e,r))}catch(u){o(u)}}O.create=at.create;O.toCanvas=gt.bind(null,Ut.render);O.toDataURL=gt.bind(null,Ut.renderToDataURL);O.toString=gt.bind(null,function(t,e,i){return Pe.render(t,i)});const Re={tag:$.string.validate(t=>["canvas","img"].includes(t)).def("canvas"),text:{type:[String,Array],default:null},options:{type:Object,default:()=>({})},width:$.number.def(200),logo:{type:[String,Object],default:()=>""},disabled:$.bool.def(!1),disabledText:$.string.def("")},Le=Vue.defineComponent({name:"ReQrcode",props:Re,emits:["done","click","disabled-click"],setup(t,{emit:e}){const{toCanvas:i,toDataURL:r}=O,o=Vue.ref(!0),n=Vue.ref(null),s=Vue.computed(()=>String(t.text)),a=Vue.computed(()=>({width:t.width+"px",height:t.width+"px"})),u=async()=>{await Vue.nextTick();const c=kt(t.options||{});if(t.tag==="canvas"){c.errorCorrectionLevel=c.errorCorrectionLevel||p(Vue.unref(s));const E=await d(Vue.unref(s),c);c.scale=t.width===0?void 0:t.width/E*4;const l=await i(Vue.unref(n),Vue.unref(s),c);if(t.logo){const m=await f(l);e("done",m),o.value=!1}else e("done",l.toDataURL()),o.value=!1}else{const E=await r(s.value,{errorCorrectionLevel:"H",width:t.width,...c});Vue.unref(n).src=E,e("done",E),o.value=!1}};Vue.watch(()=>s.value,c=>{c&&u()},{deep:!0,immediate:!0});const f=c=>{const E=c.width,l=Object.assign({logoSize:.15,bgColor:"#ffffff",borderSize:.05,crossOrigin:"anonymous",borderRadius:8,logoRadius:0},mt(t.logo)?{}:t.logo),{logoSize:m=.15,bgColor:h="#ffffff",borderSize:g=.05,crossOrigin:B="anonymous",borderRadius:b=8,logoRadius:A=0}=l,S=mt(t.logo)?t.logo:t.logo.src,I=E*m,N=E*(1-m)/2,R=E*(m+g),D=E*(1-m-g)/2,T=c.getContext("2d");if(!T)return;C(T)(D,D,R,R,b),T.fillStyle=h,T.fill();const k=new Image;(B||A)&&k.setAttribute("crossOrigin",B),k.src=S;const _t=z=>{T.drawImage(z,N,N,I,I)},Ft=z=>{const Y=document.createElement("canvas");Y.width=N+I,Y.height=N+I;const ht=Y.getContext("2d");if(!ht||!T||(ht.drawImage(z,N,N,I,I),C(T)(N,N,I,I,A),!T))return;const wt=T.createPattern(Y,"no-repeat");wt&&(T.fillStyle=wt,T.fill())};return new Promise(z=>{k.onload=()=>{A?Ft(k):_t(k),z(c.toDataURL())}})},d=async(c,E)=>{const l=document.createElement("canvas");return await i(l,c,E),l.width},p=c=>c.length>36?"M":c.length>16?"Q":"H",C=c=>(E,l,m,h,g)=>{const B=Math.min(m,h);return g>B/2&&(g=B/2),c.beginPath(),c.moveTo(E+g,l),c.arcTo(E+m,l,E+m,l+h,g),c.arcTo(E+m,l+h,E,l+h,g),c.arcTo(E,l+h,E,l,g),c.arcTo(E,l,E+m,l,g),c.closePath(),c},w=()=>{e("click")},y=()=>{e("disabled-click")};return()=>Vue.createVNode(Vue.Fragment,null,[Vue.withDirectives(Vue.createVNode("div",{class:"qrcode relative inline-block",style:Vue.unref(a)},[t.tag==="canvas"?Vue.createVNode("canvas",{ref:n,onClick:w},null):Vue.createVNode("img",{ref:n,onClick:w},null),t.disabled&&Vue.createVNode("div",{class:"qrcode--disabled absolute top-0 left-0 flex w-full h-full items-center justify-center",onClick:y},[Vue.createVNode("div",{class:"absolute top-[50%] left-[50%] font-bold"},[Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{class:"cursor-pointer",icon:Ht,width:"30",color:"var(--el-color-primary)"},null),Vue.createVNode("div",null,[t.disabledText])])])]),[[Vue.resolveDirective("loading"),Vue.unref(o)]])])}}),ve=zt(Le),_e=ve;export{_e as R}; diff --git a/dist/static/js/index-2b3bdafa.js b/dist/static/js/index-2b3bdafa.js new file mode 100644 index 000000000..4a1a6c7b0 --- /dev/null +++ b/dist/static/js/index-2b3bdafa.js @@ -0,0 +1 @@ +import{d as m,r as d,Y as i,c as p,k as r,i as n,C as t,u as s,g as c,f as _}from"./index-0dd8d5e4.js";const f={class:"dark:text-white"},h={style:{"text-indent":"2em"}},x={style:{"text-indent":"4em"}},y=m({name:"Menu1-2-1",__name:"index",setup(V){const o=d(""),{t:e}=i();return(k,a)=>{const u=p("el-input");return _(),r("div",f,[n("p",null,t(s(e)("menus.hsmenu1")),1),n("p",h,t(s(e)("menus.hsmenu1-2")),1),n("p",x,t(s(e)("menus.hsmenu1-2-1")),1),c(u,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l)},null,8,["modelValue"])])}}});export{y as default}; diff --git a/dist/static/js/index-2c9a69b7.js b/dist/static/js/index-2c9a69b7.js new file mode 100644 index 000000000..e7093353d --- /dev/null +++ b/dist/static/js/index-2c9a69b7.js @@ -0,0 +1,10 @@ +import{a_ as he,ar as en,au as Xe,av as tn,f as h,k as I,i as m,d as se,Y as nn,x as F,F as ge,l as ke,A as ne,e as H,Q as Ae,u as t,C as ee,g as i,_ as ve,c as x,h as oe,a$ as ot,r as D,aV as on,K as an,D as _e,w as v,am as Et,G as be,aS as Ot,a4 as Zt,ae as Y,n as Re,aW as we,a as Qe,y as Ne,j as at,m as pe,ab as re,ac as xe,b0 as _t,b1 as nt,aZ as gt,b2 as Me,aa as sn,aY as We,b3 as Be,a6 as ln,as as Ue,at as Ge,a7 as yt,b4 as me,b5 as rn,b6 as tt,ag as Pe,b7 as pt,a8 as bt,b8 as He,b9 as wt,ba as ht,bb as cn,bc as Dt,bd as kt,be as zt,L as Ke,al as un,p as st,q as lt,an as Pt,bf as dn,bg as hn,bh as fn,N as Fe,Z as pn,O as vn,aD as mn}from"./index-0dd8d5e4.js";import{d as _n}from"./menu-a4fe64fb.js";import{d as gn}from"./edit-d219f0c6.js";import{d as yn}from"./set-up-e6942411.js";import{d as bn}from"./admin-line-92b9acda.js";import{d as wn}from"./git-branch-line-aa4cb38f.js";import{u as Te,a as xt,g as Ct,b as kn,t as xn,d as Cn,c as $n,e as Sn}from"./dark-8da7fda0.js";import{u as je}from"./app-9580cee8.js";import{u as In}from"./epTheme-ec99570c.js";import{u as Le}from"./hooks-62079556.js";import{o as ft,u as Mn,a as Tn,b as Vn,c as zn}from"./index-95b65695.js";import{d as jt}from"./search-cc37b371.js";import{d as qe}from"./check-3815600c.js";import{d as Ln}from"./refresh-right-6177e75c.js";import{d as An}from"./arrow-right-s-line-2977cc7e.js";const Hn={width:24,height:24,body:''},En={width:24,height:24,body:''},On={width:24,height:24,body:''},Zn={width:1024,height:1024,body:''},Dn={width:1024,height:1024,body:''},Pn={width:24,height:24,body:''},jn={width:24,height:24,body:''},Nn={width:1024,height:1024,body:''},Bn={width:24,height:24,body:''},Rn={width:24,height:24,body:''},qn={width:24,height:24,body:''},rt={width:24,height:24,body:''},Fn={width:1024,height:1024,body:''},Un={width:1024,height:1024,body:''};he("ubuntuFill",Hn);he("menu",_n);he("edit",gn);he("informationLine",En);he("setUp",yn);he("terminalWindowLine",On);he("guide",Zn);he("homeFilled",Dn);he("card",Pn);he("listCheck",jn);he("histogram",Nn);he("ppt",Bn);he("checkboxCircleLine",Rn);he("flUser",bn);he("role",qn);he("setting",rt);he("dept",wn);he("lollipop",Fn);he("monitor",Un);const Wn=en({id:"pure-setting",state:()=>({title:Xe().Title,fixedHeader:Xe().FixedHeader,hiddenSideBar:Xe().HiddenSideBar}),getters:{getTitle(n){return n.title},getFixedHeader(n){return n.fixedHeader},getHiddenSideBar(n){return n.hiddenSideBar}},actions:{CHANGE_SETTING({key:n,value:e}){Reflect.has(this,n)&&(this[n]=e)},changeSetting(n){this.CHANGE_SETTING(n)}}});function $t(){return Wn(tn)}const Gn={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Kn=m("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"},null,-1),Xn=[Kn];function Jn(n,e){return h(),I("svg",Gn,Xn)}const Nt={render:Jn},Yn={width:24,height:24,body:''},Qn={class:"result"},eo=["onMouseenter"],to={class:"result-item-title"},no=se({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(n,{emit:e}){const o=n,{t:a}=nn(),u=F(()=>f=>({background:(f==null?void 0:f.path)===r.value?In().epThemeColor:"",color:f.path===r.value?"#fff":"",fontSize:f.path===r.value?"16px":"14px"})),r=F({get(){return o.value},set(f){e("update:value",f)}});async function c(f){r.value=f.path}function _(){e("enter")}return(f,$)=>(h(),I("div",Qn,[(h(!0),I(ge,null,ke(f.options,g=>{var p,y;return h(),I("div",{key:g.path,class:"result-item dark:bg-[#1d1d1d]",style:ne(u.value(g)),onClick:_,onMouseenter:C=>c(g)},[(h(),H(Ae(t(Le)(((p=g.meta)==null?void 0:p.icon)??t(Yn))))),m("span",to,ee(t(a)((y=g.meta)==null?void 0:y.title)),1),i(t(Nt))],44,eo)}),128))]))}});const oo=ve(no,[["__scopeId","data-v-2bcad0d6"]]),ao={width:24,height:24,body:''},so={width:24,height:24,body:''},lo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},ro=m("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1V7m10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2Z"},null,-1),io=[ro];function co(n,e){return h(),I("svg",lo,io)}const uo={render:co},ho={class:"search-footer text-[#333] dark:text-white"},fo={class:"search-footer-item"},po={class:"search-footer-item"},vo={class:"search-footer-item"},mo=se({__name:"SearchFooter",setup(n){return(e,o)=>{const a=x("IconifyIconOffline");return h(),I("div",ho,[m("span",fo,[i(t(Nt),{class:"icon"}),oe(" 确认 ")]),m("span",po,[i(a,{icon:t(ao),class:"icon"},null,8,["icon"]),i(a,{icon:t(so),class:"icon"},null,8,["icon"]),oe(" 切换 ")]),m("span",vo,[i(t(uo),{class:"icon"}),oe(" 关闭 ")])])}}});const _o=ve(mo,[["__scopeId","data-v-8f46a26f"]]),go={class:"el-input__icon"},yo={class:"search-result-container"},bo=se({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(n,{emit:e}){const o=n,{device:a}=Te(),u=ot(),r=D(""),c=D(""),_=D(null),f=on([]),$=Et(C,300),g=F(()=>an(_e().wholeMenus)),p=F({get(){return o.value},set(Z){e("update:value",Z)}});function y(Z){const M=[];function b(w){w.forEach(j=>{M.push(j),j.children&&b(j.children)})}return b(Z),M}function C(){var M;const Z=y(g.value);f.value=Z.filter(b=>{var w;return r.value&&be((w=b.meta)==null?void 0:w.title).toLocaleLowerCase().includes(r.value.toLocaleLowerCase().trim())}),((M=f.value)==null?void 0:M.length)>0?c.value=f.value[0].path:c.value=""}function E(){p.value=!1,setTimeout(()=>{f.value=[],r.value=""},200)}function L(){const{length:Z}=f.value;if(Z===0)return;const M=f.value.findIndex(b=>b.path===c.value);M===0?c.value=f.value[Z-1].path:c.value=f.value[M-1].path}function z(){const{length:Z}=f.value;if(Z===0)return;const M=f.value.findIndex(b=>b.path===c.value);M+1===Z?c.value=f.value[0].path:c.value=f.value[M+1].path}function T(){const{length:Z}=f.value;Z===0||c.value===""||(u.push(c.value),E())}return ft("Enter",T),ft("ArrowUp",L),ft("ArrowDown",z),(Z,M)=>{const b=x("IconifyIconOffline"),w=x("el-input"),j=x("el-empty"),X=x("el-dialog");return h(),H(X,{top:"5vh",modelValue:p.value,"onUpdate:modelValue":M[2]||(M[2]=N=>p.value=N),width:t(a)==="mobile"?"80vw":"50vw","before-close":E,onOpened:M[3]||(M[3]=N=>_.value.focus()),onClosed:M[4]||(M[4]=N=>_.value.blur())},{footer:v(()=>[i(_o)]),default:v(()=>[i(w,{ref_key:"inputRef",ref:_,modelValue:r.value,"onUpdate:modelValue":M[0]||(M[0]=N=>r.value=N),clearable:"",placeholder:"请输入关键词搜索",onInput:t($)},{prefix:v(()=>[m("span",go,[i(b,{icon:t(jt)},null,8,["icon"])])]),_:1},8,["modelValue","onInput"]),m("div",yo,[f.value.length===0?(h(),H(j,{key:0,description:"暂无搜索结果"})):(h(),H(oo,{key:1,value:c.value,"onUpdate:value":M[1]||(M[1]=N=>c.value=N),options:f.value,onClick:T},null,8,["value","options"]))])]),_:1},8,["modelValue","width"])}}});const wo=ve(bo,[["__scopeId","data-v-24e9bf4c"]]);function ko(n=!1){const e=D(n);function o(c){e.value=c}function a(){o(!0)}function u(){o(!1)}function r(){o(!e.value)}return{bool:e,setBool:o,setTrue:a,setFalse:u,toggle:r}}const St=se({__name:"index",setup(n){const{bool:e,toggle:o}=ko();function a(){o()}return(u,r)=>{const c=x("IconifyIconOffline");return h(),I(ge,null,[m("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[i(c,{icon:t(jt)},null,8,["icon"])]),i(t(wo),{value:t(e),"onUpdate:value":r[0]||(r[0]=_=>Ot(e)?e.value=_:null)},null,8,["value"])],64)}}}),Lt=[{key:"1",name:"通知",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"你收到了 12 份新周报",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"你推荐的 前端高手 已通过第三轮面试",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png",title:"这种模板可以区分多种通知类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"展示标题内容超过一行后的处理方式,如果内容超过1行将自动截断并支持tooltip显示完整标题。",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"}]},{key:"2",name:"消息",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"李白 评论了你",description:"长风破浪会有时,直挂云帆济沧海",datetime:"一年前",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"李白 回复了你",description:"行路难,行路难,多歧路,今安在。",datetime:"一年前",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"标题",description:"请将鼠标移动到此处,以便测试超长的消息在此处将如何处理。本例中设置的描述最大行数为2,超过2行的描述内容将被省略并且可以通过tooltip查看完整内容",datetime:"一年前",type:"2"}]},{key:"3",name:"代办",list:[{avatar:"",title:"任务名称",description:"任务需要在 2022-11-16 20:00 前启动",datetime:"",extra:"未开始",status:"info",type:"3"},{avatar:"",title:"第三方紧急代码变更",description:"一拳提交于 2022-11-16,需在 2022-11-18 前完成代码变更任务",datetime:"",extra:"马上到期",status:"danger",type:"3"},{avatar:"",title:"信息安全考试",description:"指派小仙于 2022-12-12 前完成更新并发布",datetime:"",extra:"已耗时 8 天",status:"warning",type:"3"},{avatar:"",title:"vue-pure-admin 版本发布",description:"vue-pure-admin 版本发布",datetime:"",extra:"进行中",type:"3"}]}],xo={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Co={class:"notice-container-text"},$o={class:"notice-text-title text-[#000000d9] dark:text-white"},So={class:"notice-text-datetime text-[#00000073] dark:text-white"},Io=se({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(n){const e=n,o=D(null),a=D(!1),u=D(null),r=D(!1),{tooltipEffect:c}=Te(),_=Zt();function f(){Re(()=>{var g,p;((g=o.value)==null?void 0:g.scrollWidth)>((p=o.value)==null?void 0:p.clientWidth)?a.value=!0:a.value=!1})}function $(g,p){const y=document.createElement("span");y.innerText=p,y.className="getDescriptionWidth",document.querySelector("body").appendChild(y);const C=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const E=g.target.offsetWidth;C>2*E?r.value=!0:r.value=!1}return(g,p)=>{var L,z;const y=x("el-avatar"),C=x("el-tooltip"),E=x("el-tag");return h(),I("div",xo,[e.noticeItem.avatar?(h(),H(y,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Y("",!0),m("div",Co,[m("div",$o,[i(C,{"popper-class":"notice-title-popper",effect:t(c),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!t(_)},{default:v(()=>[m("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:f},ee(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(L=e.noticeItem)!=null&&L.extra?(h(),H(E,{key:0,type:(z=e.noticeItem)==null?void 0:z.status,size:"small",class:"notice-title-extra"},{default:v(()=>{var T;return[oe(ee((T=e.noticeItem)==null?void 0:T.extra),1)]}),_:1},8,["type"])):Y("",!0)]),i(C,{"popper-class":"notice-title-popper",effect:t(c),disabled:!r.value,content:e.noticeItem.description,placement:"top-start"},{default:v(()=>[m("div",{ref_key:"descriptionRef",ref:u,class:"notice-text-description",onMouseover:p[0]||(p[0]=T=>$(T,e.noticeItem.description))},ee(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),m("div",So,ee(e.noticeItem.datetime),1)])])}}});const Mo=ve(Io,[["__scopeId","data-v-2a7dbc48"]]),To={key:0},Vo=se({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(n){const e=n;return(o,a)=>{const u=x("el-empty");return e.list.length?(h(),I("div",To,[(h(!0),I(ge,null,ke(e.list,(r,c)=>(h(),H(Mo,{noticeItem:r,key:c},null,8,["noticeItem"]))),128))])):(h(),H(u,{key:1,description:"暂无数据"}))}}}),zo={width:1024,height:1024,body:''},Lo={class:"dropdown-badge navbar-bg-hover select-none"},Ao={class:"header-notice-icon"},Ho={class:"noticeList-container"},Eo=se({__name:"index",setup(n){const e=D(0),o=D(Lt),a=D(Lt[0].key);return o.value.map(u=>e.value+=u.list.length),(u,r)=>{const c=x("IconifyIconOffline"),_=x("el-badge"),f=x("el-scrollbar"),$=x("el-tab-pane"),g=x("el-tabs"),p=x("el-dropdown-menu"),y=x("el-dropdown");return h(),H(y,{trigger:"click",placement:"bottom-end"},{dropdown:v(()=>[i(p,null,{default:v(()=>[i(g,{stretch:!0,modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=C=>a.value=C),class:"dropdown-tabs"},{default:v(()=>[(h(!0),I(ge,null,ke(o.value,C=>(h(),H($,{key:C.key,label:`${C.name}(${C.list.length})`,name:`${C.key}`},{default:v(()=>[i(f,{"max-height":"330px"},{default:v(()=>[m("div",Ho,[i(Vo,{list:C.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1})]),default:v(()=>[m("span",Lo,[i(_,{value:e.value,max:99},{default:v(()=>[m("span",Ao,[i(c,{icon:t(zo)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}});const It=ve(Eo,[["__scopeId","data-v-4e7fe581"]]),Oo={key:0,class:"flex justify-center items-center"},vt=se({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(n){const e=n;return(o,a)=>e.extraIcon?(h(),I("div",Oo,[(h(),H(Ae(t(Le)(we(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Y("",!0)}}),it={width:24,height:24,body:''},Zo={key:0,class:"horizontal-header"},Do={class:"select-none"},Po={class:"horizontal-header-right"},jo={class:"check-zh"},No={class:"check-en"},Bo={class:"el-dropdown-link navbar-bg-hover select-none"},Ro={key:0,class:"dark:text-white"},qo=["title"],Fo=se({__name:"mixNav",setup(n){const e=D(),o=D(null),{t:a,route:u,locale:r,translationCh:c,translationEn:_}=xt(e),{device:f,routers:$,logout:g,onPanel:p,menuSelect:y,resolvePath:C,username:E,getDivStyle:L,avatarsStyle:z,getDropdownItemStyle:T,getDropdownItemClass:Z}=Te();function M(b){var X,N;const w=_e().wholeMenus,j=_t(b,w)[0];o.value=(N=(X=nt(j,w))==null?void 0:X.children[0])==null?void 0:N.path}return Qe(()=>{M(u.path)}),Re(()=>{var b;(b=e.value)==null||b.handleResize()}),Ne(()=>[u.path,_e().wholeMenus],()=>{M(u.path)}),(b,w)=>{const j=x("el-menu-item"),X=x("el-menu"),N=x("IconifyIconOffline"),S=x("el-dropdown-item"),J=x("el-dropdown-menu"),fe=x("el-dropdown"),ce=at("loading");return t(f)!=="mobile"?pe((h(),I("div",Zo,[i(X,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":o.value,onSelect:w[0]||(w[0]=q=>t(y)(q,t($)))},{default:v(()=>[(h(!0),I(ge,null,ke(t(_e)().wholeMenus,q=>(h(),H(j,{key:q.path,index:t(C)(q)||q.redirect},{title:v(()=>[we(q.meta.icon)?(h(),I("div",{key:0,class:re(["sub-menu-icon",q.meta.icon])},[(h(),H(Ae(t(Le)(q.meta&&we(q.meta.icon)))))],2)):Y("",!0),m("div",{style:ne(t(L))},[m("span",Do,ee(t(be)(q.meta.title)),1),i(vt,{extraIcon:q.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),m("div",Po,[i(St),i(It,{id:"header-notice"}),i(fe,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[i(J,{class:"translation"},{default:v(()=>[i(S,{style:ne(t(T)(t(r),"zh")),class:re(["dark:!text-white",t(Z)(t(r),"zh")]),onClick:t(c)},{default:v(()=>[pe(m("span",jo,[i(N,{icon:t(qe)},null,8,["icon"])],512),[[xe,t(r)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(S,{style:ne(t(T)(t(r),"en")),class:re(["dark:!text-white",t(Z)(t(r),"en")]),onClick:t(_)},{default:v(()=>[pe(m("span",No,[i(N,{icon:t(qe)},null,8,["icon"])],512),[[xe,t(r)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[i(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(fe,{trigger:"click"},{dropdown:v(()=>[i(J,{class:"logout"},{default:v(()=>[i(S,{onClick:t(g)},{default:v(()=>[i(N,{icon:t(it),style:{margin:"5px"}},null,8,["icon"]),oe(" "+ee(t(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[m("span",Bo,[m("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:ne(t(z))},null,4),t(E)?(h(),I("p",Ro,ee(t(E)),1)):Y("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:t(a)("buttons.hssystemSet"),onClick:w[1]||(w[1]=(...q)=>t(p)&&t(p)(...q))},[i(N,{icon:t(rt)},null,8,["icon"])],8,qo)])])),[[ce,t(_e)().wholeMenus.length===0]]):Y("",!0)}}});const Uo=ve(Fo,[["__scopeId","data-v-316fde2f"]]),Wo=["onClick"],Go=se({__name:"breadCrumb",setup(n){const e=gt(),o=D([]),a=ot(),u=a.options.routes,r=Me().multiTags,c=()=>{let f;Object.keys(e.query).length>0?r.forEach(p=>{Be(e.query,p==null?void 0:p.query)&&(f=we(p))}):Object.keys(e.params).length>0?r.forEach(p=>{Be(e.params,p==null?void 0:p.params)&&(f=we(p))}):f=nt(a.currentRoute.value.path,u);const $=_t(a.currentRoute.value.name,u,"name"),g=[];$.forEach(p=>{p!=="/"&&g.push(nt(p,u))}),g.push(f),g.forEach((p,y)=>{f!=null&&f.query||f!=null&&f.params||p!=null&&p.children&&p.children.forEach(C=>{var E,L;((E=C==null?void 0:C.meta)==null?void 0:E.title)===((L=p==null?void 0:p.meta)==null?void 0:L.title)&&g.splice(y,1)})}),o.value=g.filter(p=>(p==null?void 0:p.meta)&&(p==null?void 0:p.meta.title)!==!1)},_=f=>{const{redirect:$,path:g}=f;$?a.push($):a.push(g)};return Qe(()=>{c()}),Ne(()=>e.path,()=>{c()},{deep:!0}),(f,$)=>{const g=x("el-breadcrumb-item"),p=x("el-breadcrumb");return h(),H(p,{class:"!leading-[50px] select-none",separator:"/"},{default:v(()=>[i(sn,{name:"breadcrumb"},{default:v(()=>[(h(!0),I(ge,null,ke(o.value,y=>(h(),H(g,{class:"!inline !items-stretch",key:y.path},{default:v(()=>[m("a",{onClick:We(C=>_(y),["prevent"])},ee(t(be)(y.meta.title)),9,Wo)]),_:2},1024))),128))]),_:1})]),_:1})}}}),Bt={width:24,height:24,body:''},Ko={width:24,height:24,body:''},Xo=["title"],Jo=se({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const o=n,a=()=>{e("toggleClick")};return(u,r)=>{const c=x("IconifyIconOffline");return h(),I("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"点击折叠":"点击展开",onClick:a},[i(c,{icon:o.isActive?t(Bt):t(Ko),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,Xo)}}}),Yo={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0, 21, 41, 0.08)] dark:shadow-[#0d0d0d]"},Qo={key:3,class:"vertical-header-right"},ea={class:"check-en"},ta={class:"el-dropdown-link navbar-bg-hover select-none"},na={key:0,class:"dark:text-white"},oa=["title"],aa=se({__name:"navbar",setup(n){const{layout:e,device:o,logout:a,onPanel:u,pureApp:r,username:c,avatarsStyle:_,toggleSideBar:f,getDropdownItemStyle:$,getDropdownItemClass:g}=Te(),{t:p,locale:y,translationCh:C,translationEn:E}=xt();return(L,z)=>{const T=x("IconifyIconOffline"),Z=x("el-dropdown-item"),M=x("el-dropdown-menu"),b=x("el-dropdown");return h(),I("div",Yo,[t(o)==="mobile"?(h(),H(Jo,{key:0,class:"hamburger-container","is-active":t(r).sidebar.opened,onToggleClick:t(f)},null,8,["is-active","onToggleClick"])):Y("",!0),t(e)!=="mix"&&t(o)!=="mobile"?(h(),H(Go,{key:1,class:"breadcrumb-container"})):Y("",!0),t(e)==="mix"?(h(),H(Uo,{key:2})):Y("",!0),t(e)==="vertical"?(h(),I("div",Qo,[i(St),i(It,{id:"header-notice"}),i(b,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[i(M,{class:"translation"},{default:v(()=>[i(Z,{style:ne(t($)(t(y),"zh")),class:re(["dark:!text-white",t(g)(t(y),"zh")]),onClick:t(C)},{default:v(()=>[pe(i(T,{class:"check-zh",icon:t(qe)},null,8,["icon"]),[[xe,t(y)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(Z,{style:ne(t($)(t(y),"en")),class:re(["dark:!text-white",t(g)(t(y),"en")]),onClick:t(E)},{default:v(()=>[pe(m("span",ea,[i(T,{icon:t(qe)},null,8,["icon"])],512),[[xe,t(y)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[i(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(b,{trigger:"click"},{dropdown:v(()=>[i(M,{class:"logout"},{default:v(()=>[i(Z,{onClick:t(a)},{default:v(()=>[i(T,{icon:t(it),style:{margin:"5px"}},null,8,["icon"]),oe(" "+ee(t(p)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[m("span",ta,[m("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:ne(t(_))},null,4),t(c)?(h(),I("p",na,ee(t(c)),1)):Y("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:t(p)("buttons.hssystemSet"),onClick:z[0]||(z[0]=(...w)=>t(u)&&t(u)(...w))},[i(T,{icon:t(rt)},null,8,["icon"])],8,oa)])):Y("",!0)])}}});const sa=ve(aa,[["__scopeId","data-v-b44add8f"]]),Je={width:24,height:24,body:''},la={width:24,height:24,body:''},ra={width:24,height:24,body:''},ia={width:24,height:24,body:''},ca={width:24,height:24,body:''},Rt={width:1024,height:1024,body:''};function ua(){var N;const n=gt(),e=ot(),o=ln(),a=$t(),u=D(0),r=D(0),c=D(0),_=D(!1),f=D(-1),$=D({}),g=D(((N=Ue().getItem(`${Ge()}configure`))==null?void 0:N.showModel)||"smart"),p=D(Ue().getItem(`${Ge()}configure`).hideTabs)??D("false"),y=F(()=>Me().multiTags),C=yt([{icon:Ln,text:me("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:Rt,text:me("buttons.hscloseCurrentTab"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:ca,text:me("buttons.hscloseLeftTabs"),divided:!0,disabled:!(y.value.length>1),show:!0},{icon:ia,text:me("buttons.hscloseRightTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:ra,text:me("buttons.hscloseOtherTabs"),divided:!0,disabled:!(y.value.length>2),show:!0},{icon:la,text:me("buttons.hscloseAllTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:Je,text:me("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:Je,text:me("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function E(S,J,fe){var ce,q;return rn((ce=n==null?void 0:n.meta)==null?void 0:ce.showLink)&&((q=n==null?void 0:n.meta)==null?void 0:q.showLink)===!1?Object.keys(n.query).length>0?Be(n.query,S.query)?J:fe:Be(n.params,S.params)?J:fe:n.path===S.path?J:fe}const L=F(()=>(S,J)=>{if(J!==0)return E(S,!0,!1)}),z=F(()=>S=>E(S,"is-active","")),T=F(()=>S=>E(S,"schedule-active","")),Z=F(()=>({transform:`translateX(${c.value}px)`})),M=F(()=>({left:r.value+"px",top:u.value+"px"})),b=()=>{_.value=!1};function w(S){if(S&&(f.value=S),t(g)==="smart"){if(tt(o.refs["schedule"+S][0],"schedule-active"))return;Pe(!0,"schedule-in",o.refs["schedule"+S][0]),Pe(!1,"schedule-out",o.refs["schedule"+S][0])}else{if(tt(o.refs["dynamic"+S][0],"card-active"))return;Pe(!0,"card-in",o.refs["dynamic"+S][0]),Pe(!1,"card-out",o.refs["dynamic"+S][0])}}function j(S){if(f.value=-1,t(g)==="smart"){if(tt(o.refs["schedule"+S][0],"schedule-active"))return;Pe(!1,"schedule-in",o.refs["schedule"+S][0]),Pe(!0,"schedule-out",o.refs["schedule"+S][0])}else{if(tt(o.refs["dynamic"+S][0],"card-active"))return;Pe(!1,"card-in",o.refs["dynamic"+S][0]),Pe(!0,"card-out",o.refs["dynamic"+S][0])}}function X(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Qe(()=>{if(!g.value){const S=Ue().getItem(`${Ge()}configure`);S.showModel="card",Ue().setItem(`${Ge()}configure`,S)}}),Ne(()=>_.value,()=>{Mn(document,"click",b)}),{route:n,router:e,visible:_,showTags:p,instance:o,multiTags:y,showModel:g,tagsViews:C,buttonTop:u,buttonLeft:r,translateX:c,pureSetting:a,activeIndex:f,getTabStyle:Z,iconIsActive:L,linkIsActive:z,currentSelect:$,scheduleIsActive:T,getContextMenuStyle:M,$t:me,closeMenu:b,onMounted:Qe,onMouseenter:w,onMouseleave:j,transformI18n:be,onContentFullScreen:X}}const At={width:24,height:24,body:''},da={width:24,height:24,body:''},ha={width:24,height:24,body:''},fa={width:1024,height:1024,body:''},pa={class:"arrow-left"},va=["onContextmenu","onMouseenter","onMouseleave","onClick"],ma=["onClick"],_a={class:"arrow-right"},ga=["onClick"],ya={class:"arrow-down"},ba=se({__name:"index",setup(n){const{route:e,router:o,visible:a,showTags:u,instance:r,multiTags:c,tagsViews:_,buttonTop:f,buttonLeft:$,showModel:g,translateX:p,pureSetting:y,activeIndex:C,getTabStyle:E,iconIsActive:L,linkIsActive:z,currentSelect:T,scheduleIsActive:Z,getContextMenuStyle:M,closeMenu:b,onMounted:w,onMouseenter:j,onMouseleave:X,transformI18n:N,onContentFullScreen:S}=ua(),J=D(),fe=D(),ce=D(),q=D(!1),Ie=pt().path,{VITE_HIDE_HOME:Ee}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},{isFullscreen:Oe,toggle:l}=Tn(),s=()=>{const k=c.value.findIndex(V=>V.query?Be(e.query,V.query):V.params?Be(e.params,V.params):V.path===e.path);d(k)},d=async k=>{var R,le;if(!r.refs["dynamic"+k])return;const O=r.refs["dynamic"+k][0],K=O==null?void 0:O.offsetLeft,de=O==null?void 0:O.offsetWidth,P=ce.value?(R=ce.value)==null?void 0:R.offsetWidth:0;await Re();const te=J.value?(le=J.value)==null?void 0:le.offsetWidth:0;P<=te?q.value=!0:q.value=!1,te-p.value&&K+de<-p.value+P?p.value=Math.min(0,P-de-K-10):p.value=-(K-(P-10-de))},A=k=>{var K;const V=ce.value?(K=ce.value)==null?void 0:K.offsetWidth:0,O=J.value?J.value.offsetWidth:0;k>0?p.value=Math.min(0,p.value+k):V=-(O-V)&&(p.value=Math.max(p.value+k,V-O)):p.value=0};function U(k,V){const O=c.value.some(de=>de.path===k);function K(de,P,te){O||de.forEach(R=>{const le=te+R.path;R.path===P||le===P?Me().handleTags("push",{path:P,parentPath:`/${te.split("/")[1]}`,meta:R.meta,name:R.name}):R.children&&R.children.length>0&&K(R.children,P,te)})}K(o.options.routes,k,V)}function B(){const{fullPath:k,query:V}=t(e);o.replace({path:"/redirect"+k,query:V}),ht(e,"refresh")}function W(k,V,O){var te,R,le,ze;const K=c.value.findIndex($e=>{if($e.query){if($e.path===k.path)return $e.query===k.query}else if($e.params){if($e.path===k.path)return $e.params===k.params}else return $e.path===k.path}),de=($e,Yt,Qt)=>{Qt?Me().handleTags("equal",[Ee==="false"?Dt[0]:we(pt()),k]):Me().handleTags("splice","",{startIndex:$e,length:Yt}),s()};O==="other"?de(1,1,!0):O==="left"?de(1,K-1):O==="right"?de(K+1,c.value.length):de(K,1);const P=Me().handleTags("slice");if(V===e.path){if(O==="left")return;(te=P[0])!=null&&te.query?o.push({name:P[0].name,query:P[0].query}):(R=P[0])!=null&&R.params?o.push({name:P[0].name,params:P[0].params}):o.push({path:P[0].path})}else{if(!c.value.length||c.value.some($e=>$e.path===e.path))return;(le=P[0])!=null&&le.query?o.push({name:P[0].name,query:P[0].query}):(ze=P[0])!=null&&ze.params?o.push({name:P[0].name,params:P[0].params}):o.push({path:P[0].path})}}function G(k,V){W(k,k.path,V),ht(e)}function ae(k,V,O){if(V&&V.disabled)return;let K;switch(O?K={path:O.path,meta:O.meta,name:O.name,query:O==null?void 0:O.query,params:O==null?void 0:O.params}:K={path:e.path,meta:e.meta},k){case 0:B();break;case 1:G(K);break;case 2:G(K,"left");break;case 3:G(K,"right");break;case 4:G(K,"other");break;case 5:Me().handleTags("splice","",{startIndex:1,length:c.value.length}),o.push(Ie),ht(e);break;case 6:l(),setTimeout(()=>{Oe.value?(_[6].icon=At,_[6].text=me("buttons.hswholeExitFullScreen")):(_[6].icon=Je,_[6].text=me("buttons.hswholeFullScreen"))},100);break;case 7:S(),setTimeout(()=>{y.hiddenSideBar?(_[7].icon=At,_[7].text=me("buttons.hscontentExitFullScreen")):(_[7].icon=Je,_[7].text=me("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{De(e.fullPath,e.query)})}function ye(k){const{key:V,item:O}=k;ae(V,O)}function Ze(k,V){ae(k,V,T.value)}function Q(k){Array.of(1,2,3,4,5).forEach(V=>{_[V].show=k})}function Ve(k){Array.of(1,2,3,4,5).forEach(V=>{_[V].disabled=k})}function De(k,V={},O=!1){const K=c.value,de=c.value.length;let P=-1;cn(V)?P=K.findIndex(te=>te.path===k):P=K.findIndex(te=>Be(te.query,V)),Q(!0),O&&(_[0].show=!0),P===1&&de!==2?(_[2].show=!1,Array.of(1,3,4,5).forEach(te=>{_[te].disabled=!1}),_[2].disabled=!0):P===1&&de===2?(Ve(!1),Array.of(2,3,4).forEach(te=>{_[te].show=!1,_[te].disabled=!0})):de-1===P&&P!==0?(_[3].show=!1,Array.of(1,2,4,5).forEach(te=>{_[te].disabled=!1}),_[3].disabled=!0):P===0||k===`/redirect${Ie}`?Ve(!0):Ve(!1)}function Xt(k,V){b(),k.path===Ie?(Q(!1),_[0].show=!0):e.path!==k.path&&e.name!==k.name?(_[0].show=!1,De(k.path,k.query)):c.value.length===2&&e.path!==k.path?(Q(!0),_[4].show=!1):e.path===k.path&&De(k.path,k.query,!0),T.value=k;const O=105,K=t(fe).getBoundingClientRect().left,P=t(fe).offsetWidth-O,te=V.clientX-K+5;te>P?$.value=P:$.value=te,$t().hiddenSideBar?f.value=V.clientY:f.value=V.clientY-40,Re(()=>{a.value=!0})}function Jt(k){const{name:V,path:O}=k;V?k.query?o.push({name:V,query:k.query}):k.params?o.push({name:V,params:k.params}):o.push({name:V}):o.push({path:O})}return bt(()=>{r&&(De(e.fullPath),He.on("tagViewsChange",k=>{t(u)!==k&&(u.value=k)}),He.on("tagViewsShowModel",k=>{g.value=k}),He.on("changLayoutRoute",({indexPath:k,parentPath:V})=>{U(k,V),setTimeout(()=>{De(k)})}))}),Ne([e],()=>{C.value=-1,s()}),Ne(Oe,()=>{_[6].icon=Je,_[6].text=me("buttons.hswholeFullScreen")}),w(()=>{Vn(ce,Et(()=>{s()},200))}),(k,V)=>{const O=x("IconifyIconOffline"),K=x("router-link"),de=x("el-dropdown-item"),P=x("el-dropdown-menu"),te=x("el-dropdown");return t(u)?Y("",!0):(h(),I("div",{key:0,ref_key:"containerDom",ref:fe,class:"tags-view"},[pe(m("span",pa,[i(O,{icon:t(ha),onClick:V[0]||(V[0]=R=>A(200))},null,8,["icon"])],512),[[xe,q.value]]),m("div",{ref_key:"scrollbarDom",ref:ce,class:"scroll-container"},[m("div",{class:"tab select-none",ref_key:"tabDom",ref:J,style:ne(t(E))},[(h(!0),I(ge,null,ke(t(c),(R,le)=>(h(),I("div",{ref_for:!0,ref:"dynamic"+le,key:le,class:re(["scroll-item is-closable",t(z)(R),k.$route.path===R.path&&t(g)==="card"?"card-active":""]),onContextmenu:We(ze=>Xt(R,ze),["prevent"]),onMouseenter:We(ze=>t(j)(le),["prevent"]),onMouseleave:We(ze=>t(X)(le),["prevent"]),onClick:ze=>Jt(R)},[i(K,{to:R.path,class:"dark:!text-text_color_primary dark:hover:!text-primary"},{default:v(()=>[oe(ee(t(N)(R.meta.title)),1)]),_:2},1032,["to"]),t(L)(R,le)||le===t(C)&&le!==0?(h(),I("span",{key:0,class:"el-icon-close",onClick:We(ze=>G(R),["stop"])},[i(O,{icon:t(fa)},null,8,["icon"])],8,ma)):Y("",!0),t(g)!=="card"?(h(),I("div",{key:1,ref_for:!0,ref:"schedule"+le,class:re([t(Z)(R)])},null,2)):Y("",!0)],42,va))),128))],4)],512),pe(m("span",_a,[i(O,{icon:t(An),onClick:V[1]||(V[1]=R=>A(-200))},null,8,["icon"])],512),[[xe,q.value]]),i(wt,{name:"el-zoom-in-top"},{default:v(()=>[pe((h(),I("ul",{key:Math.random(),style:ne(t(M)),class:"contextmenu"},[(h(!0),I(ge,null,ke(t(_).slice(0,6),(R,le)=>(h(),I("div",{key:le,style:{display:"flex","align-items":"center"}},[R.show?(h(),I("li",{key:0,onClick:ze=>Ze(le,R)},[i(O,{icon:R.icon},null,8,["icon"]),oe(" "+ee(t(N)(R.text)),1)],8,ga)):Y("",!0)]))),128))],4)),[[xe,t(a)]])]),_:1}),i(te,{trigger:"click",placement:"bottom-end",onCommand:ye},{dropdown:v(()=>[i(P,null,{default:v(()=>[(h(!0),I(ge,null,ke(t(_),(R,le)=>(h(),H(de,{key:le,command:{key:le,item:R},divided:R.divided,disabled:R.disabled},{default:v(()=>[i(O,{icon:R.icon},null,8,["icon"]),oe(" "+ee(t(N)(R.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:v(()=>[m("span",ya,[i(O,{icon:t(da),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}});const wa=ve(ba,[["__scopeId","data-v-62893417"]]),ka={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},xa=m("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),Ca=m("path",{d:"M2.88 18.054a35.897 35.897 0 0 1 8.531-16.32.8.8 0 0 1 1.178 0c.166.18.304.332.413.455a35.897 35.897 0 0 1 8.118 15.865c-2.141.451-4.34.747-6.584.874l-2.089 4.178a.5.5 0 0 1-.894 0l-2.089-4.178a44.019 44.019 0 0 1-6.584-.874zm6.698-1.123 1.157.066L12 19.527l1.265-2.53 1.157-.066a42.137 42.137 0 0 0 4.227-.454A33.913 33.913 0 0 0 12 4.09a33.913 33.913 0 0 0-6.649 12.387c1.395.222 2.805.374 4.227.454zM12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"},null,-1),$a=[xa,Ca];function Sa(n,e){return h(),I("svg",ka,$a)}const qt={render:Sa},Ia={key:1},Ma=se({__name:"appMain",props:{fixedHeader:Boolean},setup(n){const e=n,{$storage:o,$config:a}=kt(),u=F(()=>a==null?void 0:a.KeepAlive),r=F(()=>g=>g.meta.transition),c=F(()=>o==null?void 0:o.configure.hideTabs),_=F(()=>(o==null?void 0:o.layout.layout)==="vertical"),f=F(()=>[c.value&&_?"padding-top: 48px;":"",!c.value&&_?"padding-top: 85px;":"",c.value&&!_.value?"padding-top: 48px":"",!c.value&&!_.value?"padding-top: 85px;":"",e.fixedHeader?"":"padding-top: 0;"]),$=se({render(){return Ke(wt,{name:r.value(this.route)&&this.route.meta.transition.enterTransition?"pure-classes-transition":r.value(this.route)&&this.route.meta.transition.name||"fade-transform",enterActiveClass:r.value(this.route)&&`animate__animated ${this.route.meta.transition.enterTransition}`,leaveActiveClass:r.value(this.route)&&`animate__animated ${this.route.meta.transition.leaveTransition}`,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})},props:{route:{type:void 0,required:!0}}});return(g,p)=>{const y=x("el-backtop"),C=x("el-scrollbar"),E=x("router-view");return h(),I("section",{class:re([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ne(f.value)},[i(E,null,{default:v(({Component:L,route:z})=>[e.fixedHeader?(h(),H(C,{key:0},{default:v(()=>[i(y,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:v(()=>[i(t(qt))]),_:1}),i(t($),{route:z},{default:v(()=>[u.value?(h(),H(zt,{key:0,include:t(_e)().cachePageList},[(h(),H(Ae(L),{key:z.fullPath,class:"main-content"}))],1032,["include"])):(h(),H(Ae(L),{key:z.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),_:2},1024)):(h(),I("div",Ia,[i(t($),{route:z},{default:v(()=>[u.value?(h(),H(zt,{key:0,include:t(_e)().cachePageList},[(h(),H(Ae(L),{key:z.fullPath,class:"main-content"}))],1032,["include"])):(h(),H(Ae(L),{key:z.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1})],6)}}});const Ht=ve(Ma,[["__scopeId","data-v-ac212d1d"]]),Mt=n=>(st("data-v-2fe46f27"),n=n(),lt(),n),Ta=Mt(()=>m("div",{class:"right-panel-background"},null,-1)),Va={class:"right-panel-items"},za={class:"project-configuration"},La=Mt(()=>m("h4",{class:"dark:text-white"},"项目配置",-1)),Aa=Mt(()=>m("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),Ha=se({__name:"index",setup(n){const e=D(null),o=D(!1),a=F(()=>["mr-[20px]","outline-none","width-[20px]","height-[20px]","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]);return zn(e,u=>{u.clientX>e.value.offsetLeft||(o.value=!1)}),He.on("openPanel",()=>{o.value=!0}),(u,r)=>{const c=x("IconifyIconOffline");return h(),I("div",{class:re([{show:o.value},"right-panel-container"])},[Ta,m("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[m("div",Va,[m("div",za,[La,m("span",{title:"关闭配置",class:re(a.value)},[i(c,{class:"dark:text-white",width:"20px",height:"20px",icon:t(Rt),onClick:r[0]||(r[0]=_=>o.value=!o.value)},null,8,["icon"])],2)]),Aa,un(u.$slots,"default",{},void 0,!0)])],512)],2)}}});const Ea=ve(Ha,[["__scopeId","data-v-2fe46f27"]]),Ce=n=>(st("data-v-5945f667"),n=n(),lt(),n),Oa={class:"pure-theme"},Za=Ce(()=>m("div",null,null,-1)),Da=Ce(()=>m("div",null,null,-1)),Pa=[Za,Da],ja=Ce(()=>m("div",null,null,-1)),Na=Ce(()=>m("div",null,null,-1)),Ba=[ja,Na],Ra=Ce(()=>m("div",null,null,-1)),qa=Ce(()=>m("div",null,null,-1)),Fa=[Ra,qa],Ua={class:"theme-color"},Wa=["onClick"],Ga={class:"setting"},Ka=Ce(()=>m("span",{class:"dark:text-white"},"灰色模式",-1)),Xa=Ce(()=>m("span",{class:"dark:text-white"},"色弱模式",-1)),Ja=Ce(()=>m("span",{class:"dark:text-white"},"隐藏标签页",-1)),Ya=Ce(()=>m("span",{class:"dark:text-white"},"侧边栏Logo",-1)),Qa=Ce(()=>m("span",{class:"dark:text-white"},"标签页持久化",-1)),es=Ce(()=>m("span",{class:"dark:text-white"},"标签风格",-1)),ts=se({__name:"index",setup(n){var Oe,l;const e=ot(),{isDark:o}=Pt(),{device:a,tooltipEffect:u}=Te(),{$storage:r}=kt(),c=D(),_=D(),f=D(),{dataTheme:$,layoutTheme:g,themeColors:p,dataThemeChange:y,setEpThemeColor:C,setLayoutThemeColor:E}=kn();if(t(g)){const s=t(g).layout,d=t(g).theme;xn({scopeName:`layout-theme-${d}`}),Ee(s)}const L=D(((Oe=r.configure)==null?void 0:Oe.showModel)??"smart"),z=D(((l=r.configure)==null?void 0:l.showLogo)??!0),T=yt({greyVal:r.configure.grey,weakVal:r.configure.weak,tabsVal:r.configure.hideTabs,showLogo:r.configure.showLogo,showModel:r.configure.showModel,multiTagsCache:r.configure.multiTagsCache}),Z=F(()=>s=>({background:s})),M=F(()=>s=>!(s==="light"&&o.value));function b(s,d){const A=r.configure;A[s]=d,r.configure=A}function w(s,d,A){const U=A||document.body;let{className:B}=U;B=B.replace(d,"").trim(),U.className=s?`${B} ${d} `:B}const j=s=>{w(T.greyVal,"html-grey",document.querySelector("html")),b("grey",s)},X=s=>{w(T.weakVal,"html-weakness",document.querySelector("html")),b("weak",s)},N=()=>{const s=T.tabsVal;b("hideTabs",s),He.emit("tagViewsChange",s)},S=()=>{const s=T.multiTagsCache;b("multiTagsCache",s),Me().multiTagsCacheChange(s)};function J(){dn(),Ue().clear(),hn().clear();const{Grey:s,Weak:d,MultiTagsCache:A,EpThemeColor:U,Layout:B}=Xe();je().setLayout(B),C(U),Me().multiTagsCacheChange(A),w(s,"html-grey",document.querySelector("html")),w(d,"html-weakness",document.querySelector("html")),e.push("/login"),Me().handleTags("equal",[...Dt]),fn()}function fe(s){b("showModel",s),He.emit("tagViewsShowModel",s)}function ce(){t(z)?b("showLogo",!0):b("showLogo",!1),He.emit("logoChange",t(z))}function q(s){s.forEach(d=>{w(!1,"is-select",t(d))})}const Ie=F(()=>s=>s===g.value.theme&&g.value.theme!=="light"?"#fff":s===g.value.theme&&g.value.theme==="light"?"#1d2b45":"transparent");function Ee(s){var d,A,U;g.value.layout=s,window.document.body.setAttribute("layout",s),r.layout={layout:s,theme:g.value.theme,darkMode:(d=r.layout)==null?void 0:d.darkMode,sidebarStatus:(A=r.layout)==null?void 0:A.sidebarStatus,epThemeColor:(U=r.layout)==null?void 0:U.epThemeColor},je().setLayout(s)}return Ne(r,({layout:s})=>{switch(s.layout){case"vertical":w(!0,"is-select",t(_)),Fe(q([f]),50),Fe(q([c]),50);break;case"horizontal":w(!0,"is-select",t(f)),Fe(q([_]),50),Fe(q([c]),50);break;case"mix":w(!0,"is-select",t(c)),Fe(q([_]),50),Fe(q([f]),50);break}}),bt(()=>{y(),Re(()=>{var s,d;T.greyVal&&((s=document.querySelector("html"))==null||s.setAttribute("class","html-grey")),T.weakVal&&((d=document.querySelector("html"))==null||d.setAttribute("class","html-weakness")),T.tabsVal&&N()})}),(s,d)=>{const A=x("el-divider"),U=x("el-switch"),B=x("el-tooltip"),W=x("IconifyIconOffline"),G=x("el-icon"),ae=x("el-radio"),ye=x("el-radio-group"),Ze=x("el-button");return h(),H(Ea,null,{default:v(()=>[i(A,null,{default:v(()=>[oe("主题")]),_:1}),i(U,{modelValue:t($),"onUpdate:modelValue":d[0]||(d[0]=Q=>Ot($)?$.value=Q:null),"inline-prompt":"",class:"pure-datatheme","active-icon":t(Cn),"inactive-icon":t($n),onChange:t(y)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),i(A,null,{default:v(()=>[oe("导航栏模式")]),_:1}),m("ul",Oa,[i(B,{effect:t(u),class:"item",content:"左侧模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[m("li",{class:re(t(g).layout==="vertical"?"is-select":""),ref_key:"verticalRef",ref:_,onClick:d[1]||(d[1]=Q=>Ee("vertical"))},Pa,2)]),_:1},8,["effect"]),t(a)!=="mobile"?(h(),H(B,{key:0,effect:t(u),class:"item",content:"顶部模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[m("li",{class:re(t(g).layout==="horizontal"?"is-select":""),ref_key:"horizontalRef",ref:f,onClick:d[2]||(d[2]=Q=>Ee("horizontal"))},Ba,2)]),_:1},8,["effect"])):Y("",!0),t(a)!=="mobile"?(h(),H(B,{key:1,effect:t(u),class:"item",content:"混合模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[m("li",{class:re(t(g).layout==="mix"?"is-select":""),ref_key:"mixRef",ref:c,onClick:d[3]||(d[3]=Q=>Ee("mix"))},Fa,2)]),_:1},8,["effect"])):Y("",!0)]),i(A,null,{default:v(()=>[oe("主题色")]),_:1}),m("ul",Ua,[(h(!0),I(ge,null,ke(t(p),(Q,Ve)=>pe((h(),I("li",{key:Ve,style:ne(Z.value(Q.color)),onClick:De=>t(E)(Q.themeColor)},[i(G,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Ie.value(Q.themeColor)},{default:v(()=>[i(W,{icon:t(qe)},null,8,["icon"])]),_:2},1032,["color"])],12,Wa)),[[xe,M.value(Q.themeColor)]])),128))]),i(A,null,{default:v(()=>[oe("界面显示")]),_:1}),m("ul",Ga,[m("li",null,[Ka,i(U,{modelValue:T.greyVal,"onUpdate:modelValue":d[4]||(d[4]=Q=>T.greyVal=Q),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:j},null,8,["modelValue"])]),m("li",null,[Xa,i(U,{modelValue:T.weakVal,"onUpdate:modelValue":d[5]||(d[5]=Q=>T.weakVal=Q),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:X},null,8,["modelValue"])]),m("li",null,[Ja,i(U,{modelValue:T.tabsVal,"onUpdate:modelValue":d[6]||(d[6]=Q=>T.tabsVal=Q),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:N},null,8,["modelValue"])]),m("li",null,[Ya,i(U,{modelValue:z.value,"onUpdate:modelValue":d[7]||(d[7]=Q=>z.value=Q),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:ce},null,8,["modelValue"])]),m("li",null,[Qa,i(U,{modelValue:T.multiTagsCache,"onUpdate:modelValue":d[8]||(d[8]=Q=>T.multiTagsCache=Q),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:S},null,8,["modelValue"])]),m("li",null,[es,i(ye,{modelValue:L.value,"onUpdate:modelValue":d[9]||(d[9]=Q=>L.value=Q),size:"small",onChange:fe},{default:v(()=>[i(ae,{label:"card"},{default:v(()=>[oe("卡片")]),_:1}),i(ae,{label:"smart"},{default:v(()=>[oe("灵动")]),_:1})]),_:1},8,["modelValue"])])]),i(A),i(Ze,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:J},{default:v(()=>[i(W,{icon:t(it),width:"15",height:"15",style:{"margin-right":"4px"}},null,8,["icon"]),oe(" 清空缓存并返回登录页 ")]),_:1})]),_:1})}}});const ns=ve(ts,[["__scopeId","data-v-5945f667"]]),Tt="/vue-pure-admin/logo.svg",Ft=n=>(st("data-v-4cc9900f"),n=n(),lt(),n),os=Ft(()=>m("img",{src:Tt,alt:"logo"},null,-1)),as={class:"sidebar-title"},ss=Ft(()=>m("img",{src:Tt,alt:"logo"},null,-1)),ls={class:"sidebar-title"},rs=se({__name:"logo",props:{collapse:Boolean},setup(n){const e=n,{title:o}=Te(),a=pt().path;return(u,r)=>{const c=x("router-link");return h(),I("div",{class:re(["sidebar-logo-container",{collapses:e.collapse}])},[i(wt,{name:"sidebarLogoFade"},{default:v(()=>[e.collapse?(h(),H(c,{key:"props.collapse",title:t(o),class:"sidebar-logo-link",to:t(a)},{default:v(()=>[os,m("span",as,ee(t(o)),1)]),_:1},8,["title","to"])):(h(),H(c,{key:"expand",title:t(o),class:"sidebar-logo-link",to:t(a)},{default:v(()=>[ss,m("span",ls,ee(t(o)),1)]),_:1},8,["title","to"]))]),_:1})],2)}}});const is=ve(rs,[["__scopeId","data-v-4cc9900f"]]);var et={exports:{}},Ut={},cs=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},mt={exports:{}};typeof Object.create=="function"?mt.exports=function(e,o){e.super_=o,e.prototype=Object.create(o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:mt.exports=function(e,o){e.super_=o;var a=function(){};a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e};var us=mt.exports;(function(n){var e=/%[sdj%]/g;n.format=function(l){if(!M(l)){for(var s=[],d=0;d=U)return G;switch(G){case"%s":return String(A[d++]);case"%d":return Number(A[d++]);case"%j":try{return JSON.stringify(A[d++])}catch{return"[Circular]"}default:return G}}),W=A[d];d=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),L(s)?d.showHidden=s:s&&n._extend(d,s),w(d.showHidden)&&(d.showHidden=!1),w(d.depth)&&(d.depth=2),w(d.colors)&&(d.colors=!1),w(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=r),f(d,l,d.depth)}n.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function r(l,s){var d=u.styles[s];return d?"\x1B["+u.colors[d][0]+"m"+l+"\x1B["+u.colors[d][1]+"m":l}function c(l,s){return l}function _(l){var s={};return l.forEach(function(d,A){s[d]=!0}),s}function f(l,s,d){if(l.customInspect&&s&&J(s.inspect)&&s.inspect!==n.inspect&&!(s.constructor&&s.constructor.prototype===s)){var A=s.inspect(d,l);return M(A)||(A=f(l,A,d)),A}var U=$(l,s);if(U)return U;var B=Object.keys(s),W=_(B);if(l.showHidden&&(B=Object.getOwnPropertyNames(s)),S(s)&&(B.indexOf("message")>=0||B.indexOf("description")>=0))return g(s);if(B.length===0){if(J(s)){var G=s.name?": "+s.name:"";return l.stylize("[Function"+G+"]","special")}if(j(s))return l.stylize(RegExp.prototype.toString.call(s),"regexp");if(N(s))return l.stylize(Date.prototype.toString.call(s),"date");if(S(s))return g(s)}var ae="",ye=!1,Ze=["{","}"];if(E(s)&&(ye=!0,Ze=["[","]"]),J(s)){var Q=s.name?": "+s.name:"";ae=" [Function"+Q+"]"}if(j(s)&&(ae=" "+RegExp.prototype.toString.call(s)),N(s)&&(ae=" "+Date.prototype.toUTCString.call(s)),S(s)&&(ae=" "+g(s)),B.length===0&&(!ye||s.length==0))return Ze[0]+ae+Ze[1];if(d<0)return j(s)?l.stylize(RegExp.prototype.toString.call(s),"regexp"):l.stylize("[Object]","special");l.seen.push(s);var Ve;return ye?Ve=p(l,s,d,W,B):Ve=B.map(function(De){return y(l,s,d,W,De,ye)}),l.seen.pop(),C(Ve,ae,Ze)}function $(l,s){if(w(s))return l.stylize("undefined","undefined");if(M(s)){var d="'"+JSON.stringify(s).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return l.stylize(d,"string")}if(Z(s))return l.stylize(""+s,"number");if(L(s))return l.stylize(""+s,"boolean");if(z(s))return l.stylize("null","null")}function g(l){return"["+Error.prototype.toString.call(l)+"]"}function p(l,s,d,A,U){for(var B=[],W=0,G=s.length;W-1&&(B?G=G.split(` +`).map(function(ye){return" "+ye}).join(` +`).substr(2):G=` +`+G.split(` +`).map(function(ye){return" "+ye}).join(` +`))):G=l.stylize("[Circular]","special")),w(W)){if(B&&U.match(/^\d+$/))return G;W=JSON.stringify(""+U),W.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.substr(1,W.length-2),W=l.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=l.stylize(W,"string"))}return W+": "+G}function C(l,s,d){var A=l.reduce(function(U,B){return B.indexOf(` +`)>=0,U+B.replace(/\u001b\[\d\d?m/g,"").length+1},0);return A>60?d[0]+(s===""?"":s+` + `)+" "+l.join(`, + `)+" "+d[1]:d[0]+s+" "+l.join(", ")+" "+d[1]}function E(l){return Array.isArray(l)}n.isArray=E;function L(l){return typeof l=="boolean"}n.isBoolean=L;function z(l){return l===null}n.isNull=z;function T(l){return l==null}n.isNullOrUndefined=T;function Z(l){return typeof l=="number"}n.isNumber=Z;function M(l){return typeof l=="string"}n.isString=M;function b(l){return typeof l=="symbol"}n.isSymbol=b;function w(l){return l===void 0}n.isUndefined=w;function j(l){return X(l)&&ce(l)==="[object RegExp]"}n.isRegExp=j;function X(l){return typeof l=="object"&&l!==null}n.isObject=X;function N(l){return X(l)&&ce(l)==="[object Date]"}n.isDate=N;function S(l){return X(l)&&(ce(l)==="[object Error]"||l instanceof Error)}n.isError=S;function J(l){return typeof l=="function"}n.isFunction=J;function fe(l){return l===null||typeof l=="boolean"||typeof l=="number"||typeof l=="string"||typeof l=="symbol"||typeof l>"u"}n.isPrimitive=fe,n.isBuffer=cs;function ce(l){return Object.prototype.toString.call(l)}function q(l){return l<10?"0"+l.toString(10):l.toString(10)}var Ie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ee(){var l=new Date,s=[q(l.getHours()),q(l.getMinutes()),q(l.getSeconds())].join(":");return[l.getDate(),Ie[l.getMonth()],s].join(" ")}n.log=function(){console.log("%s - %s",Ee(),n.format.apply(n,arguments))},n.inherits=us,n._extend=function(l,s){if(!s||!X(s))return l;for(var d=Object.keys(s),A=d.length;A--;)l[d[A]]=s[d[A]];return l};function Oe(l,s){return Object.prototype.hasOwnProperty.call(l,s)}})(Ut);var ds=process.platform==="win32",Se=Ut;function ct(n,e){for(var o=[],a=0;a=0&&!n[a];a--);return o===0&&a===e?n:o>a?[]:n.slice(o,a+1)}var Wt=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,hs=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ie={};function ut(n){var e=Wt.exec(n),o=(e[1]||"")+(e[2]||""),a=e[3]||"",u=hs.exec(a),r=u[1],c=u[2],_=u[3];return[o,r,c,_]}function Vt(n){var e=Wt.exec(n),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function Gt(n){return"\\\\"+n.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}ie.resolve=function(){for(var n="",e="",o=!1,a=arguments.length-1;a>=-1;a--){var u;if(a>=0?u=arguments[a]:n?(u=process.env["="+n],(!u||u.substr(0,3).toLowerCase()!==n.toLowerCase()+"\\")&&(u=n+"\\")):u=process.cwd(),Se.isString(u)){if(!u)continue}else throw new TypeError("Arguments to path.resolve must be strings");var r=Vt(u),c=r.device,_=r.isUnc,f=r.isAbsolute,$=r.tail;if(!(c&&n&&c.toLowerCase()!==n.toLowerCase())&&(n||(n=c),o||(e=$+"\\"+e,o=f),n&&o))break}return _&&(n=Gt(n)),e=ct(e.split(/[\\\/]+/),!o).join("\\"),n+(o?"\\":"")+e||"."};ie.normalize=function(n){var e=Vt(n),o=e.device,a=e.isUnc,u=e.isAbsolute,r=e.tail,c=/[\\\/]$/.test(r);return r=ct(r.split(/[\\\/]+/),!u).join("\\"),!r&&!u&&(r="."),r&&c&&(r+="\\"),a&&(o=Gt(o)),o+(u?"\\":"")+r};ie.isAbsolute=function(n){return Vt(n).isAbsolute};ie.join=function(){for(var n=[],e=0;e=-1&&!e;o--){var a=o>=0?arguments[o]:process.cwd();if(Se.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");n=a+"/"+n,e=a[0]==="/"}return n=ct(n.split("/"),!e).join("/"),(e?"/":"")+n||"."};ue.normalize=function(n){var e=ue.isAbsolute(n),o=n&&n[n.length-1]==="/";return n=ct(n.split("/"),!e).join("/"),!n&&!e&&(n="."),n&&o&&(n+="/"),(e?"/":"")+n};ue.isAbsolute=function(n){return n.charAt(0)==="/"};ue.join=function(){for(var n="",e=0;e'},_s={width:1024,height:1024,body:''},gs={width:1024,height:1024,body:''},ys={width:1024,height:1024,body:''},bs={key:0},ws={key:1},Kt=se({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(n){const e=n,{layout:o,isCollapse:a,tooltipEffect:u,getDivStyle:r}=Te(),c=F(()=>({width:"100%",textAlign:"center"})),_=F(()=>({display:"flex",alignItems:"center"})),f=F(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),$=F(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:o.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),g=F(()=>a.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),p=F(()=>b=>{var w;return a.value?{width:"100%",textAlign:(b==null?void 0:b.parentId)===null||o.value==="mix"&&((w=b==null?void 0:b.pathList)==null?void 0:w.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),y=F(()=>{var b;return(b=Xe())!=null&&b.MenuArrowIconNoTransition?{"expand-close-icon":Le(_s),"expand-open-icon":Le(ms),"collapse-close-icon":Le(ys),"collapse-open-icon":Le(gs)}:""}),C=D(null),E=new WeakMap,L=D(null);function z(b){E.get(b)||Re(()=>{var w,j;((w=L.value)==null?void 0:w.scrollWidth)>((j=L.value)==null?void 0:j.clientWidth)?Object.assign(b,{showTooltip:!0}):Object.assign(b,{showTooltip:!1}),E.set(b,!0)})}function T(b,w){var X;const j=((b==null?void 0:b.length)>1?b.toString().slice(0,1):b)+"...";return w&&!(a.value&&(w==null?void 0:w.parentId)===null)?o.value==="mix"&&((X=w==null?void 0:w.pathList)==null?void 0:X.length)===2&&a.value?j:b:j}function Z(b=[],w){var X,N;const j=b.filter(S=>(C.value=S,!0));return(N=(X=j[0])==null?void 0:X.meta)!=null&&N.showParent?!1:j.length===1?!0:j.length===0?(C.value={...w,path:"",noShowingChildren:!0},!0):!1}function M(b){const w=/^http(s?):\/\//;return w.test(b)||w.test(e.basePath)?b||e.basePath:vs.posix.resolve(e.basePath,b)}return(b,w)=>{const j=x("el-tooltip"),X=x("el-menu-item"),N=x("sidebar-item",!0),S=x("el-sub-menu");return Z(e.item.children,e.item)&&(!C.value.children||C.value.noShowingChildren)?(h(),H(X,{key:0,index:M(C.value.path),class:re({"submenu-title-noDropdown":!n.isNest}),style:ne(_.value)},{title:v(()=>[m("div",{style:ne(t(r))},[t(o)==="horizontal"?(h(),I("span",bs,ee(t(be)(C.value.meta.title)),1)):(h(),H(j,{key:1,placement:"top",effect:t(u),offset:-10,disabled:!C.value.showTooltip},{content:v(()=>[oe(ee(t(be)(C.value.meta.title)),1)]),default:v(()=>[m("span",{ref_key:"menuTextRef",ref:L,style:ne(f.value),onMouseover:w[0]||(w[0]=J=>z(C.value))},ee(t(be)(C.value.meta.title)),37)]),_:1},8,["effect","disabled"])),i(vt,{extraIcon:C.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:v(()=>{var J,fe,ce,q,Ie;return[we(e.item.meta.icon)?(h(),I("div",{key:0,class:"sub-menu-icon",style:ne($.value)},[(h(),H(Ae(t(Le)(we(C.value.meta.icon)||e.item.meta&&we(e.item.meta.icon)))))],4)):Y("",!0),!((J=e.item)!=null&&J.meta.icon)&&t(a)&&t(o)==="vertical"&&((ce=(fe=e.item)==null?void 0:fe.pathList)==null?void 0:ce.length)===1?(h(),I("span",{key:1,style:ne(c.value)},ee(T(t(be)(C.value.meta.title))),5)):Y("",!0),!C.value.meta.icon&&t(a)&&t(o)==="mix"&&((Ie=(q=e.item)==null?void 0:q.pathList)==null?void 0:Ie.length)===2?(h(),I("span",{key:2,style:ne(c.value)},ee(T(t(be)(C.value.meta.title))),5)):Y("",!0)]}),_:1},8,["index","class","style"])):(h(),H(S,mn({key:1,ref:"subMenu"},y.value,{index:M(e.item.path)}),{title:v(()=>[we(e.item.meta.icon)?(h(),I("div",{key:0,style:ne($.value),class:"sub-menu-icon"},[(h(),H(Ae(t(Le)(e.item.meta&&we(e.item.meta.icon)))))],4)):Y("",!0),t(o)==="horizontal"?(h(),I("span",ws,ee(t(be)(e.item.meta.title)),1)):Y("",!0),t(a)&&we(e.item.meta.icon)&&e.item.parentId===null?Y("",!0):(h(),I("div",{key:2,style:ne(p.value(e.item))},[t(o)!=="horizontal"?(h(),H(j,{key:0,placement:"top",effect:t(u),offset:-10,disabled:!e.item.showTooltip},{content:v(()=>[oe(ee(t(be)(e.item.meta.title)),1)]),default:v(()=>[m("span",{ref_key:"menuTextRef",ref:L,style:ne(g.value),onMouseover:w[1]||(w[1]=J=>z(e.item))},ee(T(t(be)(e.item.meta.title),e.item)),37)]),_:1},8,["effect","disabled"])):Y("",!0),t(a)?Y("",!0):(h(),H(vt,{key:1,extraIcon:e.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:v(()=>[(h(!0),I(ge,null,ke(e.item.children,J=>(h(),H(N,{key:J.path,"is-nest":!0,item:J,"base-path":M(J.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),ks={class:"container"},xs=se({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const o=n,a=D(!1),{tooltipEffect:u}=Te(),r=F(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","text-primary","cursor-pointer","duration-[100ms]","hover:text-primary","dark:hover:!text-white"]),c=()=>{e("toggleClick")};return(_,f)=>{const $=x("IconifyIconOffline"),g=x("el-tooltip");return h(),I("div",ks,[i(g,{placement:"right",visible:a.value,effect:t(u),content:o.isActive?"点击折叠":"点击展开"},{default:v(()=>[i($,{icon:t(Bt),class:re(r.value),style:ne({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:c,onMouseenter:f[0]||(f[0]=p=>a.value=!0),onMouseleave:f[1]||(f[1]=p=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}});const Cs=ve(xs,[["__scopeId","data-v-ed074d28"]]),$s=se({__name:"vertical",setup(n){var C;const e=gt(),o=D(((C=Ue().getItem(`${Ge()}configure`))==null?void 0:C.showLogo)??!0),{routers:a,device:u,pureApp:r,isCollapse:c,menuSelect:_,toggleSideBar:f}=Te(),$=D([]),g=F(()=>r.layout==="mix"&&u.value!=="mobile"?$.value:_e().wholeMenus),p=F(()=>r.layout==="mix"?!1:g.value.length===0);function y(E){$.value=[];const L=_t(E,_e().wholeMenus),z=nt(L[0]||E,_e().wholeMenus);z!=null&&z.children&&($.value=z==null?void 0:z.children)}return y(e.path),bt(()=>{He.on("logoChange",E=>{o.value=E})}),Ne(()=>[e.path,_e().wholeMenus],()=>{e.path.includes("/redirect")||(y(e.path),_(e.path,a))}),(E,L)=>{const z=x("el-menu"),T=x("el-scrollbar"),Z=at("loading");return pe((h(),I("div",{class:re(["sidebar-container",o.value?"has-logo":""])},[o.value?(h(),H(is,{key:0,collapse:t(c)},null,8,["collapse"])):Y("",!0),i(T,{"wrap-class":"scrollbar-wrapper",class:re([t(u)==="mobile"?"mobile":"pc"])},{default:v(()=>[i(z,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:t(c),"default-active":t(e).path,"collapse-transition":!1,onSelect:L[0]||(L[0]=M=>t(_)(M,t(a)))},{default:v(()=>[(h(!0),I(ge,null,ke(g.value,M=>(h(),H(Kt,{key:M.path,item:M,"base-path":M.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),t(u)!=="mobile"?(h(),H(Cs,{key:1,"is-active":t(r).sidebar.opened,onToggleClick:t(f)},null,8,["is-active","onToggleClick"])):Y("",!0)],2)),[[Z,p.value]])}}});const Ss=ve($s,[["__scopeId","data-v-f5a1735a"]]),Is=n=>(st("data-v-adc37727"),n=n(),lt(),n),Ms={class:"horizontal-header"},Ts=Is(()=>m("img",{src:Tt,alt:"logo"},null,-1)),Vs={class:"horizontal-header-right"},zs={class:"check-zh"},Ls={class:"check-en"},As={class:"el-dropdown-link navbar-bg-hover"},Hs={key:0,class:"dark:text-white"},Es=["title"],Os=se({__name:"horizontal",setup(n){const e=D(),{t:o,route:a,locale:u,translationCh:r,translationEn:c}=xt(e),{title:_,routers:f,logout:$,backTopMenu:g,onPanel:p,menuSelect:y,username:C,avatarsStyle:E,getDropdownItemStyle:L,getDropdownItemClass:z}=Te();return Re(()=>{var T;(T=e.value)==null||T.handleResize()}),Ne(()=>a.path,()=>{y(a.path,f)}),(T,Z)=>{const M=x("el-menu"),b=x("IconifyIconOffline"),w=x("el-dropdown-item"),j=x("el-dropdown-menu"),X=x("el-dropdown"),N=at("loading");return pe((h(),I("div",Ms,[m("div",{class:"horizontal-header-left",onClick:Z[0]||(Z[0]=(...S)=>t(g)&&t(g)(...S))},[Ts,m("span",null,ee(t(_)),1)]),i(M,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":t(a).path,onSelect:Z[1]||(Z[1]=S=>t(y)(S,t(f)))},{default:v(()=>[(h(!0),I(ge,null,ke(t(_e)().wholeMenus,S=>(h(),H(Kt,{key:S.path,item:S,"base-path":S.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),m("div",Vs,[i(St),i(It,{id:"header-notice"}),i(X,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[i(j,{class:"translation"},{default:v(()=>[i(w,{style:ne(t(L)(t(u),"zh")),class:re(["dark:!text-white",t(z)(t(u),"zh")]),onClick:t(r)},{default:v(()=>[pe(m("span",zs,[i(b,{icon:t(qe)},null,8,["icon"])],512),[[xe,t(u)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(w,{style:ne(t(L)(t(u),"en")),class:re(["dark:!text-white",t(z)(t(u),"en")]),onClick:t(c)},{default:v(()=>[pe(m("span",Ls,[i(b,{icon:t(qe)},null,8,["icon"])],512),[[xe,t(u)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[i(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(X,{trigger:"click"},{dropdown:v(()=>[i(j,{class:"logout"},{default:v(()=>[i(w,{onClick:t($)},{default:v(()=>[i(b,{icon:t(it),style:{margin:"5px"}},null,8,["icon"]),oe(" "+ee(t(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[m("span",As,[m("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:ne(t(E))},null,4),t(C)?(h(),I("p",Hs,ee(t(C)),1)):Y("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:t(o)("buttons.hssystemSet"),onClick:Z[2]||(Z[2]=(...S)=>t(p)&&t(p)(...S))},[i(b,{icon:t(rt)},null,8,["icon"])],8,Es)])])),[[N,t(_e)().wholeMenus.length===0]])}}});const Zs=ve(Os,[["__scopeId","data-v-adc37727"]]),Ds={key:0},Ps=se({__name:"index",setup(n){const{isDark:e}=Pt(),{layout:o}=Sn(),a=Zt(),u=$t(),{$storage:r}=kt(),c=yt({sidebar:F(()=>je().sidebar),device:F(()=>je().device),fixedHeader:F(()=>u.fixedHeader),classes:F(()=>({hideSidebar:!c.sidebar.opened,openSidebar:c.sidebar.opened,withoutAnimation:c.sidebar.withoutAnimation,mobile:c.device==="mobile"})),hideTabs:F(()=>r==null?void 0:r.configure.hideTabs)});function _(p){var y,C,E,L;window.document.body.setAttribute("layout",p),r.layout={layout:`${p}`,theme:(y=r.layout)==null?void 0:y.theme,darkMode:(C=r.layout)==null?void 0:C.darkMode,sidebarStatus:(E=r.layout)==null?void 0:E.sidebarStatus,epThemeColor:(L=r.layout)==null?void 0:L.epThemeColor}}function f(p,y){je().toggleDevice(p),je().toggleSideBar(y,"resize")}let $=!0;He.on("resize",({detail:p})=>{if(a)return;const{width:y}=p;y<=760?_("vertical"):_(je().layout),y>0&&y<=760?(f("mobile",!1),$=!0):y>760&&y<=990?$&&(f("desktop",!1),$=!1):y>990&&(c.sidebar.isClickCollapse||(f("desktop",!0),$=!0))}),Qe(()=>{a&&f("mobile",!1)});const g=se({render(){return Ke("div",{class:{"fixed-header":c.fixedHeader},style:[c.hideTabs&&o.value.includes("horizontal")?e.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!u.hiddenSideBar&&(o.value.includes("vertical")||o.value.includes("mix"))?Ke(sa):null,!u.hiddenSideBar&&o.value.includes("horizontal")?Ke(Zs):null,Ke(wa)]})}});return(p,y)=>{const C=x("el-backtop"),E=x("el-scrollbar"),L=at("resize");return pe((h(),I("div",{class:re(["app-wrapper",c.classes])},[pe(m("div",{class:"app-mask",onClick:y[0]||(y[0]=z=>t(je)().toggleSideBar())},null,512),[[xe,c.device==="mobile"&&c.sidebar.opened&&t(o).includes("vertical")]]),pe(i(Ss,null,null,512),[[xe,!t(u).hiddenSideBar&&(t(o).includes("vertical")||t(o).includes("mix"))]]),m("div",{class:re(["main-container",t(u).hiddenSideBar?"main-hidden":""])},[c.fixedHeader?(h(),I("div",Ds,[i(t(g)),i(Ht,{"fixed-header":c.fixedHeader},null,8,["fixed-header"])])):(h(),H(E,{key:1},{default:v(()=>[i(C,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:v(()=>[i(t(qt))]),_:1}),i(t(g)),i(Ht,{"fixed-header":c.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),i(ns)],2)),[[L]])}}});const tl=ve(Ps,[["__scopeId","data-v-f13df477"]]);export{tl as default}; diff --git a/dist/static/js/index-2d31f40e.js b/dist/static/js/index-2d31f40e.js deleted file mode 100644 index e0fa68c33..000000000 --- a/dist/static/js/index-2d31f40e.js +++ /dev/null @@ -1 +0,0 @@ -import{useRole as $}from"./hook-676946a2.js";import{R as z,P as D,D as M}from"./refresh-5e0bb25b.js";import{u as n}from"./hooks-55e29a46.js";import{M as U}from"./more-filled-c44d3178.js";import{d as Z}from"./edit-pen-37b5ced2.js";import{S as B}from"./search-4b9e88d3.js";import{d as A}from"./menu-a4fe64fb.js";import{A as F}from"./add-circle-line-438b436c.js";import{_ as I}from"./index-c61a73ff.js";import"./message-9ae1daa3.js";import"./system-13d4d7cb.js";import"./epTheme-d89c26ff.js";import"./sortable.esm-679e0872.js";const E={width:24,height:24,body:''},L=E,O={class:"main"},j=Vue.defineComponent({name:"Role",__name:"index",setup(q){const a=Vue.ref(),{form:u,loading:V,columns:_,dataList:C,pagination:h,buttonClass:c,onSearch:i,resetForm:x,handleUpdate:d,handleDelete:w,handleSizeChange:g,handleCurrentChange:N,handleSelectionChange:v}=$();return(G,o)=>{const s=Vue.resolveComponent("el-input"),l=Vue.resolveComponent("el-form-item"),m=Vue.resolveComponent("el-option"),b=Vue.resolveComponent("el-select"),t=Vue.resolveComponent("el-button"),y=Vue.resolveComponent("el-form"),k=Vue.resolveComponent("el-popconfirm"),p=Vue.resolveComponent("el-dropdown-item"),S=Vue.resolveComponent("el-dropdown-menu"),R=Vue.resolveComponent("el-dropdown"),T=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createElementBlock("div",O,[Vue.createVNode(y,{ref_key:"formRef",ref:a,inline:!0,model:Vue.unref(u),class:"bg-bg_color w-[99/100] pl-8 pt-4"},{default:Vue.withCtx(()=>[Vue.createVNode(l,{label:"角色名称:",prop:"name"},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:Vue.unref(u).name,"onUpdate:modelValue":o[0]||(o[0]=e=>Vue.unref(u).name=e),placeholder:"请输入角色名称",clearable:"",class:"!w-[200px]"},null,8,["modelValue"])]),_:1}),Vue.createVNode(l,{label:"角色标识:",prop:"code"},{default:Vue.withCtx(()=>[Vue.createVNode(s,{modelValue:Vue.unref(u).code,"onUpdate:modelValue":o[1]||(o[1]=e=>Vue.unref(u).code=e),placeholder:"请输入角色标识",clearable:"",class:"!w-[180px]"},null,8,["modelValue"])]),_:1}),Vue.createVNode(l,{label:"状态:",prop:"status"},{default:Vue.withCtx(()=>[Vue.createVNode(b,{modelValue:Vue.unref(u).status,"onUpdate:modelValue":o[2]||(o[2]=e=>Vue.unref(u).status=e),placeholder:"请选择状态",clearable:"",class:"!w-[180px]"},{default:Vue.withCtx(()=>[Vue.createVNode(m,{label:"已开启",value:"1"}),Vue.createVNode(m,{label:"已关闭",value:"0"})]),_:1},8,["modelValue"])]),_:1}),Vue.createVNode(l,null,{default:Vue.withCtx(()=>[Vue.createVNode(t,{type:"primary",icon:Vue.unref(n)(Vue.unref(B)),loading:Vue.unref(V),onClick:Vue.unref(i)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 搜索 ")]),_:1},8,["icon","loading","onClick"]),Vue.createVNode(t,{icon:Vue.unref(n)(Vue.unref(z)),onClick:o[3]||(o[3]=e=>Vue.unref(x)(a.value))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 重置 ")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"]),Vue.createVNode(Vue.unref(D),{title:"角色列表",columns:Vue.unref(_),onRefresh:Vue.unref(i)},{buttons:Vue.withCtx(()=>[Vue.createVNode(t,{type:"primary",icon:Vue.unref(n)(Vue.unref(F))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 新增角色 ")]),_:1},8,["icon"])]),default:Vue.withCtx(({size:e,dynamicColumns:P})=>[Vue.createVNode(T,{border:"","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:Vue.unref(V),size:e,data:Vue.unref(C),columns:P,pagination:Vue.unref(h),paginationSmall:e==="small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSelectionChange:Vue.unref(v),onPageSizeChange:Vue.unref(g),onPageCurrentChange:Vue.unref(N)},{operation:Vue.withCtx(({row:r})=>[Vue.createVNode(t,{class:"reset-margin",link:"",type:"primary",size:e,icon:Vue.unref(n)(Vue.unref(Z)),onClick:f=>Vue.unref(d)(r)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 修改 ")]),_:2},1032,["size","icon","onClick"]),Vue.createVNode(k,{title:"是否确认删除?"},{reference:Vue.withCtx(()=>[Vue.createVNode(t,{class:"reset-margin",link:"",type:"primary",size:e,icon:Vue.unref(n)(Vue.unref(M)),onClick:f=>Vue.unref(w)(r)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 删除 ")]),_:2},1032,["size","icon","onClick"])]),_:2},1024),Vue.createVNode(R,null,{dropdown:Vue.withCtx(()=>[Vue.createVNode(S,null,{default:Vue.withCtx(()=>[Vue.createVNode(p,null,{default:Vue.withCtx(()=>[Vue.createVNode(t,{class:Vue.normalizeClass(Vue.unref(c)),link:"",type:"primary",size:e,icon:Vue.unref(n)(Vue.unref(A))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 菜单权限 ")]),_:2},1032,["class","size","icon"])]),_:2},1024),Vue.createVNode(p,null,{default:Vue.withCtx(()=>[Vue.createVNode(t,{class:Vue.normalizeClass(Vue.unref(c)),link:"",type:"primary",size:e,icon:Vue.unref(n)(Vue.unref(L))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 数据权限 ")]),_:2},1032,["class","size","icon"])]),_:2},1024)]),_:2},1024)]),default:Vue.withCtx(()=>[Vue.createVNode(t,{class:"ml-3 mt-[2px]",link:"",type:"primary",size:e,icon:Vue.unref(n)(Vue.unref(U)),onClick:f=>Vue.unref(d)(r)},null,8,["size","icon","onClick"])]),_:2},1024)]),_:2},1032,["loading","size","data","columns","pagination","paginationSmall","header-cell-style","onSelectionChange","onPageSizeChange","onPageCurrentChange"])]),_:1},8,["columns","onRefresh"])])}}});const re=I(j,[["__scopeId","data-v-cfea731b"]]);export{re as default}; diff --git a/dist/static/js/index-32849726.js b/dist/static/js/index-32849726.js new file mode 100644 index 000000000..53f7ae374 --- /dev/null +++ b/dist/static/js/index-32849726.js @@ -0,0 +1 @@ +import{d as m,r,Y as p,c as d,k as i,i as s,C as o,u as a,g as c,f as _}from"./index-0dd8d5e4.js";const f={class:"dark:text-white"},x={style:{"text-indent":"2em"}},v=m({name:"Menu1-3",__name:"index",setup(V){const e=r(""),{t:n}=p();return(h,t)=>{const l=d("el-input");return _(),i("div",f,[s("p",null,o(a(n)("menus.hsmenu1")),1),s("p",x,o(a(n)("menus.hsmenu1-3")),1),c(l,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value=u)},null,8,["modelValue"])])}}});export{v as default}; diff --git a/dist/static/js/index-32adabbc.js b/dist/static/js/index-32adabbc.js new file mode 100644 index 000000000..0a59068ff --- /dev/null +++ b/dist/static/js/index-32adabbc.js @@ -0,0 +1 @@ +import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-80e8a030.js";import"./columns-bbf3abe3.js";import"./data-4845d266.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/index-359b2c78.js b/dist/static/js/index-359b2c78.js deleted file mode 100644 index 9d50966b5..000000000 --- a/dist/static/js/index-359b2c78.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-60e264d2.js";import"./columns-d33385ba.js";import"./message-9ae1daa3.js";import"./index-c61a73ff.js";import"./data-8e10e21a.js";export{o as default}; diff --git a/dist/static/js/index-36aff547.js b/dist/static/js/index-36aff547.js new file mode 100644 index 000000000..cefa015c7 --- /dev/null +++ b/dist/static/js/index-36aff547.js @@ -0,0 +1 @@ +import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-b2941bf3.js";import"./columns-5f812485.js";import"./xlsx-e927f539.js";import"./data-4845d266.js";import"./index-0dd8d5e4.js";import"./message-ac5811da.js";export{o as default}; diff --git a/dist/static/js/index-3bb45c48.js b/dist/static/js/index-3bb45c48.js new file mode 100644 index 000000000..e086df89b --- /dev/null +++ b/dist/static/js/index-3bb45c48.js @@ -0,0 +1 @@ +import{d as i,L as n}from"./index-0dd8d5e4.js";function d(e){return i({name:"ReFlicker",render(){return n("div",{class:"point point-flicker",style:{"--point-width":(e==null?void 0:e.width)??"12px","--point-height":(e==null?void 0:e.height)??"12px","--point-background":(e==null?void 0:e.background)??"var(--el-color-primary)","--point-border-radius":(e==null?void 0:e.borderRadius)??"50%","--point-scale":(e==null?void 0:e.scale)??"2"}},{default:()=>[]})}})}export{d as u}; diff --git a/dist/static/js/index-3bc4724e.js b/dist/static/js/index-3bc4724e.js new file mode 100644 index 000000000..912572a88 --- /dev/null +++ b/dist/static/js/index-3bc4724e.js @@ -0,0 +1 @@ +import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-b3e381b1.js";import"./columns-39bf1e5b.js";import"./message-ac5811da.js";import"./index-0dd8d5e4.js";import"./data-7bb4b374.js";export{o as default}; diff --git a/dist/static/js/index-3f10c840.js b/dist/static/js/index-3f10c840.js deleted file mode 100644 index 6e86471db..000000000 --- a/dist/static/js/index-3f10c840.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-dba0d268.js";import"./columns-174f6fc9.js";import"./sortable.esm-679e0872.js";import"./index-c61a73ff.js";import"./data-8e10e21a.js";export{o as default}; diff --git a/dist/static/js/index-41258481.js b/dist/static/js/index-41258481.js new file mode 100644 index 000000000..0073b3c2c --- /dev/null +++ b/dist/static/js/index-41258481.js @@ -0,0 +1,54 @@ +import{d as T,r as B,a7 as K,x as E,a as j,b as le,n as oe,aT as ue,L as ie,f as L,k as de,i as c,ab as re,al as fe,a9 as me,c as U,e as ce,w as p,h as f,g as v,C as M,aD as pe,u as ve,aU as ge}from"./index-0dd8d5e4.js";const z=[{avatar:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIADIAMgMBIgACEQEDEQH/xAAbAAEAAgMBAQAAAAAAAAAAAAAFBAYBAgMAB//aAAgBAQAAAAD7HU4ObhMC3AnlYvY8ISwA+6WDOd4/RA96FVeF66BOVWB3TsAOgZC27wv/xAAYAQEBAQEBAAAAAAAAAAAAAAACAwQAAf/aAAgBAhAAAAC3sw8uyRDQPV//xAAYAQADAQEAAAAAAAAAAAAAAAAAAgMBBP/aAAgBAxAAAACQ7LfmoUTNvFf/xAA0EAACAQMBBAcHAwUAAAAAAAABAgMABBESBRMxQRAhIjJRYbEUIzRCUnOBM3KSU2KRoeH/2gAIAQEAAT8AmmSCJpHOAoq6vZp8lmITkgonSQCMZxikkdGDxsVbxFbK2l7TGUkwHQfy6Ln4if7jetbcdglvH9TFv40hD71CGzlQpAyACRkt4VcxojxOdIj06GzwA5VKkilGUdjUcNxD9XlwI5g1Bfm0u4nC5UHDeYNWu0LS4B3D6mHHIwaufiJ/uN61tm6Et6GPCIbv8mtqi4gtrFkzjeuxIGRq+TP4orI1jpK+8MHAfVprYcM8kVysmoIGiwG8UfVgVcwh1ecDGiYcvlNWk7W9zDKucqwyPEVOczzfvb1q/wBkXWqR4Sja8nDHGCajAEagHIAx/jourmK0haaV9KrWyrFZLRZJ07MqNhc8Q3M/irfZFlaOGQF2HzOc1cACeYD+o3r0XptYEJKAyMx06TgsxOaupr+MhkIQk6TlfPlkVNCIxBc3A9onLjRG/WtWV1BPFlRp09TpzBHLoufiJ/uN69G05JLxt8C2ksQpTiAMHIq0mQz6HnMnZwurBwBRhKTLLK5Y6Oz/AGf9qwla3u4TykBRh/sdFx8RN9xvWpri43Unv5O6fmNSSSCHGtsb0DGfKrFm3zdZ7o9RUskhMnbbu+NLJJrh7bfqJz869onxjfSY/callk3knvG7x51//8QAIxEAAgEEAQMFAAAAAAAAAAAAAQIRAAMSMRAEIXETMjNBUf/aAAgBAgEBPwBMUTNv3tSdQrgZDYpwMmx0N8PdFv0iBMAyKS4QroF99JcxDhhMntwxgUCoJIER90jZCeG2PBpvjNWtHzx//8QAIBEAAgICAgIDAAAAAAAAAAAAAQIAERASAyEyM0GBkf/aAAgBAwEBPwBtmbURuErdRb1W/nCIW3vqMgJVr8YyWVIyvYG/5CKwJze36jY//9k=",name:"美绪",text:"马什么梅?"},{avatar:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIADIAMgMBIgACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAAAABQIDBAEGB//aAAgBAQAAAAD65hzG3WLcATfCbHYQ9IY0uiEfRkU1IOr+RoUG1ornWj7Y6//EABgBAQADAQAAAAAAAAAAAAAAAAQAAgUD/9oACAECEAAAACEf3IJba51tGDNq/wD/xAAYAQEAAwEAAAAAAAAAAAAAAAAEAQMFAv/aAAgBAxAAAABSg0MWQdj+c6VozP/EAC0QAAIBAwMBBgUFAAAAAAAAAAECEQADBBASMUEiUVJhcZEFExQhgSAyQoKx/9oACAEBAAE/AKu5oEi2A3meKOXf8cfgV9Xe2kEgyOeCKsZSXAqs0XP91z7+wC3MSCzeg/RbuG06uO8T6a5kNkOOu0CpUXWQMdo4kQRPQihPd9tH+4jXIw0yDukq0RNHFu2/iOVku0pfx7foHt91MttbMyN7njqQDo3BPkdWEqRJEjkV8QOV2LVq2xBBlkoq+y181CrgHn1nXHffZQ+UH8aEwCaEoJP9qzbe+ySOUO7XCuxca2f5CR6jS477H7bftPWt7+NvekdzbWXYyo60rvtXtHgda3v4j71Yd/qLPaPJ6+Vb38be9f/EACYRAAECBAQHAQAAAAAAAAAAAAECAwAEEBIREzFSITNBQlFhgXL/2gAIAQIBAT8AffKDYjXqYznd5hhwuI46ijjOOaSfaYUm232Ik9F/KKQFRMN2LHgiJVdrmG6s32fYa5iP0Kf/xAAmEQABAgQFBAMAAAAAAAAAAAABAgMAEBESBBNCUoEhMTNhUXFy/9oACAEDAQE/AGGAoXK4EZLWwQ+2G19Oxk28RlhI9GEqur9xi9HMm3C2qtAfRhhy9J+axiUXIrtnhdfEOeNf5Mv/2Q==",name:"博士",text:"马东什么?"},{avatar:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIADIAMgMBIgACEQEDEQH/xAAxAAACAgMBAAAAAAAAAAAAAAAABgQFAQIHAwEBAAMBAAAAAAAAAAAAAAAAAwABAgT/2gAMAwEAAhADEAAAAI7CsPnN1VeZ0okpTbSWASKzwmMPRy3PuuWhpv4KvQ7pcJYTUb+hdLQYWJoaVU+RU3jcXiaoegAhWOAPeeaBd1wGtf/EAC4QAAIBAwIEBAUFAQAAAAAAAAECAwAEEQUhBhASMRMiQWEUI3KBoSAzQlFSkv/aAAgBAQABPwDTxidHHbdTyZGjdkcYYelBGKM4HlUgH7/osXInRfQsK0q18abxGHkj/JrV0KXrEfzUGtLiE0F1G48r4GfcVJDJFI0TbMp52W91D9VXt42mWQCu0QUqHZQC7SyDIRA22QO5NXkFyLeFpnWRggYsMZw/+ioAPsRVlOtrpsshx+6d2OFGw3J/oVK897YR6nbfORCTkp0OVQ7lRk5Aq5gMZSVR8qVepfbPpy0jDSRyEZxIg/6JrjKJytlEEJ63uJD7ttXB6Tn41bhW8Mwxxjqzt3OBWrx+Bw9fQsRvIgBzjYutcP3F8upWVmZZltvjFPQW22BqeAJpHh+kWyeyhsL+KXS9RcB1WLpYZGSc4NcKwxTrcRy+qrj2IJIqe3S5AEsSOAcgMobB+9Lb9KhVAAHYCntRIjI6hkYYZWGQRUGm2ltMssVsiSKCAVGMZqWFZ4fDY4XYn7ULaEgF182N/Me9cIuI3kY9gFodLAEHINFgKDKdqwK1LVotOMSsnWz5JAPYUeJZyTiKMVwv2n+la08npcZOBjke3LVWZtRuizE4kI5f/8QAIBEBAAIBAgcAAAAAAAAAAAAAAQARAwIQEiAhMTJBcf/aAAgBAgEBPwDL5HzkadfX0RDjmTSUJtks1MqWpVypk7uxt//EACARAQABAwMFAAAAAAAAAAAAAAEAAhEhAxATEiIxYXH/2gAIAQMBAT8A0m1L9l+2++Sg9sF45p1N7M6iUJYwM5GYW4ZmZT4Njb//2Q==",name:"柚子",text:"什么冬梅?"}],H=["1","2","3","4","5","6","7","8","9"],G=()=>H.map((s,l)=>{const g=l%3;return{avatar:z[g].avatar,name:z[g].name,text:s}});function he(s,l,g="modelValue",m){return E({get:()=>s[g],set:a=>{l(`update:${g}`,m?m(a):a)}})}var Y=T({name:"vue3-danmaku",components:{},props:{danmus:{type:Array,required:!0,default:()=>[]},channels:{type:Number,default:0},autoplay:{type:Boolean,default:!0},loop:{type:Boolean,default:!1},useSlot:{type:Boolean,default:!1},debounce:{type:Number,default:100},speeds:{type:Number,default:200},randomChannel:{type:Boolean,default:!1},fontSize:{type:Number,default:18},top:{type:Number,default:4},right:{type:Number,default:0},isSuspend:{type:Boolean,default:!1},extraStyle:{type:String,default:""}},emits:["list-end","play-end","update:danmus"],setup(s,{emit:l,slots:g}){let m=B(document.createElement("div")),a=B(document.createElement("div"));const i=B(0),y=B(0);let x=0;const S=B(0),I=B(0),h=B(0),w=B(!1),Q=B(!1),d=B({}),e=he(s,l,"danmus"),C=K({channels:E(()=>s.channels||S.value),autoplay:E(()=>s.autoplay),loop:E(()=>s.loop),useSlot:E(()=>s.useSlot),debounce:E(()=>s.debounce),randomChannel:E(()=>s.randomChannel)}),o=K({height:E(()=>I.value),fontSize:E(()=>s.fontSize),speeds:E(()=>s.speeds),top:E(()=>s.top),right:E(()=>s.right)});j(()=>{b()}),le(()=>{W()});function b(){R(),s.isSuspend&&O(),C.autoplay&&u()}function R(){i.value=m.value.offsetWidth,y.value=m.value.offsetHeight}function u(){Q.value=!1,x||(x=setInterval(()=>F(),C.debounce))}function F(){if(!Q.value&&e.value.length)if(h.value>e.value.length-1){const A=a.value.children.length;C.loop&&(A{o.height||(I.value=t.offsetHeight),C.channels||(S.value=Math.floor(y.value/(o.height+o.top)));let k=P(t);if(k>=0){const D=t.offsetWidth,se=o.height;t.classList.add("move"),t.dataset.index=`${r}`,t.style.opacity="1",t.style.top=k*(se+o.top)+"px",t.style.width=D+o.right+"px",t.style.setProperty("--dm-scroll-width",`-${i.value+D*2}px`),t.style.left=`${i.value}px`,t.style.animationDuration=`${i.value/o.speeds}s`,t.addEventListener("animationend",()=>{Number(t.dataset.index)===e.value.length-1&&!C.loop&&l("play-end",t.dataset.index),a.value&&a.value.removeChild(t)}),h.value++}else a.value.removeChild(t)})}function N(A,r){return ue({render(){return ie("div",{},[g.dm&&g.dm({danmu:A,index:r})])}}).mount(document.createElement("div"))}function P(A){let r=[...Array(C.channels).keys()];C.randomChannel&&(r=r.sort(()=>.5-Math.random()));for(let n of r){const t=d.value[n];if(t&&t.length)for(let k=0;kd.value[n].splice(0,1)),n%C.channels}else return d.value[n]=[A],A.addEventListener("animationend",()=>d.value[n].splice(0,1)),n%C.channels}return-1}function J(A){const r=A.offsetWidth||parseInt(A.style.width),n=A.getBoundingClientRect().right||a.value.getBoundingClientRect().right+r;return a.value.getBoundingClientRect().right-n}function _(){clearInterval(x),x=0}function O(){let A=[];a.value.addEventListener("mousemove",r=>{let n=r.target;n.className.includes("dm")||(n=n.closest(".dm")||n),n.className.includes("dm")&&(n.classList.add("pause"),A.push(n))}),a.value.addEventListener("mouseout",r=>{let n=r.target;n.className.includes("dm")||(n=n.closest(".dm")||n),n.className.includes("dm")&&(n.classList.remove("pause"),A.forEach(t=>{t.classList.remove("pause")}),A=[])})}function W(){_(),h.value=0}function X(){I.value=0,b()}function Z(){d.value={},a.value.innerHTML="",Q.value=!0,w.value=!1,W()}function q(){Q.value=!0}function $(A){if(h.value===e.value.length)return e.value.push(A),e.value.length-1;{const r=h.value%e.value.length;return e.value.splice(r,0,A),r+1}}function ee(A){return e.value.push(A),e.value.length-1}function te(){return!Q.value}function ne(){w.value=!1}function ae(){w.value=!0}function Ae(){R();const A=a.value.getElementsByClassName("dm");for(let r=0;r"u")){var m=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",g==="top"&&m.firstChild?m.insertBefore(a,m.firstChild):m.appendChild(a),a.styleSheet?a.styleSheet.cssText=s:a.appendChild(document.createTextNode(s))}}var ye=`.vue-danmaku { + position: relative; + overflow: hidden; +} +.vue-danmaku .danmus { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + opacity: 0; + -webkit-transition: all 0.3s; + transition: all 0.3s; +} +.vue-danmaku .danmus.show { + opacity: 1; +} +.vue-danmaku .danmus.paused .dm.move { + animation-play-state: paused; +} +.vue-danmaku .danmus .dm { + position: absolute; + font-size: 20px; + color: #ddd; + white-space: pre; + transform: translateX(0); + transform-style: preserve-3d; +} +.vue-danmaku .danmus .dm.move { + will-change: transform; + animation-name: moveLeft; + animation-timing-function: linear; + animation-play-state: running; +} +.vue-danmaku .danmus .dm.pause { + animation-play-state: paused; + z-index: 10; +} +@keyframes moveLeft { + from { + transform: translateX(0); + } + to { + transform: translateX(var(--dm-scroll-width)); + } +} +@-webkit-keyframes moveLeft { + from { + -webkit-transform: translateX(0); + } + to { + -webkit-transform: translateX(var(--dm-scroll-width)); + } +}`;Ee(ye);Y.render=Be;Y.__file="src/lib/Danmaku.vue";const Qe={class:"card-header"},ke={class:"font-medium"},xe={class:"flex gap-5"},Ie={class:"danmu-item"},we=["src"],Me={class:"main"},Se={class:"ml-5"},De={class:"ml-5"},be={class:"ml-5"},Re={class:"flex"},Fe=T({name:"Danmaku",__name:"index",setup(s){const l=B(),g=B(G()),m=B("");let a=0;const i=K({channels:5,useSlot:!0,loop:!0,speeds:200,fontSize:20,top:10,right:0,debounce:100,randomChannel:!0});j(()=>{window.onresize=()=>w()}),me(()=>{window.onresize=null});function y(d){switch(d){case"play":l.value.play();break;case"pause":l.value.pause();break;case"stop":l.value.stop();break;case"show":l.value.show();break;case"hide":l.value.hide();break;case"reset":l.value.reset();break}}function x(d){i.useSlot=d,g.value=d?G():H,setTimeout(()=>{l.value.stop(),l.value.play()})}function S(d){i.speeds<=10&&d===-10||(i.speeds+=d,l.value.reset())}function I(d){i.fontSize+=d,l.value.reset()}function h(d){!i.channels&&d===-1||(i.channels+=d)}function w(){a&&clearTimeout(a),a=window.setTimeout(()=>{l.value.resize()},500)}function Q(){if(!m.value)return;const d=i.useSlot?{avatar:"https://i.loli.net/2021/01/17/xpwbm3jKytfaNOD.jpg",name:"你",text:m.value}:m.value;l.value.add(d),m.value=""}return(d,e)=>{const C=U("el-link"),o=U("el-button"),b=U("el-input"),R=U("el-card");return L(),ce(R,{shadow:"never"},{header:p(()=>[c("div",Qe,[c("span",ke,[f(" 弹幕组件,采用开源的 "),v(C,{href:"https://github.com/hellodigua/vue-danmaku/tree/vue3",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:p(()=>[f(" vue3-danmaku ")]),_:1})])])]),default:p(()=>[c("div",xe,[v(ve(Y),pe({ref_key:"danmaku",ref:l,class:"demo",danmus:g.value,"onUpdate:danmus":e[0]||(e[0]=u=>g.value=u),isSuspend:""},i),{dm:p(({danmu:u,index:F})=>[c("div",Ie,[c("img",{class:"img",src:u.avatar},null,8,we),c("span",null,M(F)+M(u.name)+":",1),c("span",null,M(u.text),1)])]),_:1},16,["danmus"]),c("div",Me,[c("p",null,[f(" 播放: "),v(o,{onClick:e[1]||(e[1]=u=>y("play"))},{default:p(()=>[f("播放")]),_:1}),v(o,{onClick:e[2]||(e[2]=u=>y("pause"))},{default:p(()=>[f("暂停")]),_:1}),v(o,{onClick:e[3]||(e[3]=u=>y("stop"))},{default:p(()=>[f("停止")]),_:1})]),c("p",null,[f(" 模式: "),v(o,{onClick:e[4]||(e[4]=u=>x(!0))},{default:p(()=>[f("弹幕 slot")]),_:1}),v(o,{onClick:e[5]||(e[5]=u=>x(!1))},{default:p(()=>[f("普通文本")]),_:1})]),c("p",null,[f(" 显示: "),v(o,{onClick:e[6]||(e[6]=u=>y("show"))},{default:p(()=>[f("显示")]),_:1}),v(o,{onClick:e[7]||(e[7]=u=>y("hide"))},{default:p(()=>[f("隐藏")]),_:1})]),c("p",null,[f(" 速度: "),v(o,{onClick:e[8]||(e[8]=u=>S(-10))},{default:p(()=>[f("减速")]),_:1}),v(o,{onClick:e[9]||(e[9]=u=>S(10))},{default:p(()=>[f("增速")]),_:1}),c("span",Se,"当前速度:"+M(i.speeds)+"像素/s",1)]),c("p",null,[f(" 字号: "),v(o,{disabled:i.useSlot,onClick:e[10]||(e[10]=u=>I(-1))},{default:p(()=>[f(" 缩小 ")]),_:1},8,["disabled"]),v(o,{disabled:i.useSlot,onClick:e[11]||(e[11]=u=>I(1))},{default:p(()=>[f(" 放大 ")]),_:1},8,["disabled"]),c("span",De,"当前字号:"+M(i.fontSize)+"px",1)]),c("p",null,[f(" 轨道: "),v(o,{onClick:e[12]||(e[12]=u=>h(-1))},{default:p(()=>[f("-1")]),_:1}),v(o,{onClick:e[13]||(e[13]=u=>h(1))},{default:p(()=>[f("+1")]),_:1}),v(o,{onClick:e[14]||(e[14]=u=>h(-i.channels))},{default:p(()=>[f(" 填满 ")]),_:1}),c("span",be,"当前轨道:"+M(i.channels),1)]),c("p",Re,[v(b,{type:"text",placeholder:"输入评论后,回车发送弹幕",modelValue:m.value,"onUpdate:modelValue":e[15]||(e[15]=u=>m.value=u),onKeyup:ge(Q,["enter"])},null,8,["modelValue","onKeyup"])])])])]),_:1})}}});export{Fe as default}; diff --git a/dist/static/js/index-42d975f6.js b/dist/static/js/index-42d975f6.js deleted file mode 100644 index 4a03b9270..000000000 --- a/dist/static/js/index-42d975f6.js +++ /dev/null @@ -1 +0,0 @@ -import o from"./vertical-c67ab039.js";import r from"./horizontal-47dea087.js";import"./vue-virtual-scroller.esm-909b27d4.js";import"./index-c61a73ff.js";const a={class:"font-medium"},l={class:"w-full flex justify-around flex-wrap"},d=Vue.defineComponent({name:"VirtualList",__name:"index",setup(n){return(u,c)=>{const e=Vue.resolveComponent("el-link"),t=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(t,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",a,[Vue.createTextVNode(" 虚拟列表组件( "),Vue.createVNode(e,{href:"https://github.com/Akryum/vue-virtual-scroller/tree/next/packages/vue-virtual-scroller",target:"_blank",style:{margin:"0 5px 4px 0","font-size":"16px"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" github地址 ")]),_:1}),Vue.createTextVNode(" ) ")])]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",l,[Vue.createVNode(o,{class:"h-[500px] w-[500px]"}),Vue.createVNode(r,{class:"h-[500px] w-[500px]"})])]),_:1})}}});export{d as default}; diff --git a/dist/static/js/index-45f82129.js b/dist/static/js/index-45f82129.js deleted file mode 100644 index 1b396352f..000000000 --- a/dist/static/js/index-45f82129.js +++ /dev/null @@ -1 +0,0 @@ -import{j as s}from"./index-c61a73ff.js";import{m as t,c as l}from"./message-9ae1daa3.js";import{u as d}from"./hooks-55e29a46.js";import{C as a}from"./check-f53d8364.js";const i=Vue.createElementVNode("div",{class:"card-header"},[Vue.createElementVNode("span",{class:"font-medium"}," Message提示 ")],-1),C=Vue.createElementVNode("h4",{class:"mb-4"},"element-plus 的消息提示,点击弹出提示信息",-1),c=Vue.createElementVNode("h4",{class:"mb-4"}," 类似 Ant Design 风格的消息提示,点击弹出提示信息(基于 ElMessage 样式改版,不会影响 ElMessage 原本样式,使用和打包大小成本极低并适配暗黑模式) ",-1),g=Vue.defineComponent({name:"Message",__name:"index",setup(f){return(N,e)=>{const u=Vue.resolveComponent("el-button"),n=Vue.resolveComponent("el-space"),V=Vue.resolveComponent("el-divider"),r=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(r,{shadow:"never"},{header:Vue.withCtx(()=>[i]),default:Vue.withCtx(()=>[C,Vue.createVNode(n,{wrap:""},{default:Vue.withCtx(()=>[Vue.createVNode(u,{type:"info",onClick:e[0]||(e[0]=o=>Vue.unref(t)("Info类型消息",{customClass:"el"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Info ")]),_:1}),Vue.createVNode(u,{type:"success",onClick:e[1]||(e[1]=o=>Vue.unref(t)("Success类型消息",{customClass:"el",type:"success"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Success ")]),_:1}),Vue.createVNode(u,{type:"warning",onClick:e[2]||(e[2]=o=>Vue.unref(t)("Warning类型消息",{customClass:"el",type:"warning"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Warning ")]),_:1}),Vue.createVNode(u,{type:"danger",onClick:e[3]||(e[3]=o=>Vue.unref(t)("Error类型消息",{customClass:"el",type:"error"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Error ")]),_:1}),Vue.createVNode(u,{onClick:e[4]||(e[4]=o=>Vue.unref(t)("可关闭消息",{customClass:"el",showClose:!0}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 可关闭 ")]),_:1}),Vue.createVNode(u,{onClick:e[5]||(e[5]=o=>Vue.unref(t)("分组消息合并",{customClass:"el",type:"success",grouping:!0}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 分组消息合并 ")]),_:1}),Vue.createVNode(u,{onClick:e[6]||(e[6]=o=>Vue.unref(t)("自定义消息图标",{customClass:"el",icon:Vue.unref(d)(Vue.unref(a))}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义图标 ")]),_:1}),Vue.createVNode(u,{onClick:e[7]||(e[7]=o=>Vue.unref(t)("3秒后关闭",{customClass:"el",duration:3e3,onClose:()=>Vue.unref(t)("消息已关闭",{customClass:"el",type:"success"})}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义延时关闭时间并设置关闭后其他操作 ")]),_:1}),Vue.createVNode(u,{onClick:e[8]||(e[8]=o=>Vue.unref(t)(Vue.h("p",null,[Vue.h("span",null,"Message can be "),Vue.h("i",{style:"color: teal"},"VNode")]),{customClass:"el"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义内容 ")]),_:1}),Vue.createVNode(u,{onClick:e[9]||(e[9]=o=>Vue.unref(t)("This is HTML string",{customClass:"el",dangerouslyUseHTMLString:!0}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" HTML 片段作为正文内容 ")]),_:1})]),_:1}),Vue.createVNode(V),c,Vue.createVNode(n,{wrap:""},{default:Vue.withCtx(()=>[Vue.createVNode(u,{type:"info",onClick:e[10]||(e[10]=o=>Vue.unref(t)("Info类型消息"))},{default:Vue.withCtx(()=>[Vue.createTextVNode("Info")]),_:1}),Vue.createVNode(u,{type:"success",onClick:e[11]||(e[11]=o=>Vue.unref(t)("Success类型消息",{type:"success"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Success ")]),_:1}),Vue.createVNode(u,{type:"warning",onClick:e[12]||(e[12]=o=>Vue.unref(t)("Warning类型消息",{type:"warning"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Warning ")]),_:1}),Vue.createVNode(u,{type:"danger",onClick:e[13]||(e[13]=o=>Vue.unref(t)("Error类型消息",{type:"error"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Error ")]),_:1}),Vue.createVNode(u,{onClick:e[14]||(e[14]=o=>Vue.unref(t)("可关闭消息",{showClose:!0}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 可关闭 ")]),_:1}),Vue.createVNode(u,{onClick:e[15]||(e[15]=o=>Vue.unref(t)("分组消息合并",{type:"success",grouping:!0}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 分组消息合并 ")]),_:1}),Vue.createVNode(u,{onClick:e[16]||(e[16]=o=>Vue.unref(t)("自定义消息图标",{icon:Vue.unref(s)}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义图标 ")]),_:1}),Vue.createVNode(u,{onClick:e[17]||(e[17]=o=>Vue.unref(t)("3秒后关闭",{duration:3e3,onClose:()=>Vue.unref(t)("消息已关闭",{type:"success"})}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义延时关闭时间并设置关闭后其他操作 ")]),_:1}),Vue.createVNode(u,{onClick:e[18]||(e[18]=o=>Vue.unref(t)(Vue.h("p",null,[Vue.h("span",null,"Message can be "),Vue.h("i",{style:"color: teal"},"VNode")])))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义内容 ")]),_:1}),Vue.createVNode(u,{onClick:e[19]||(e[19]=o=>Vue.unref(t)("This is HTML string",{dangerouslyUseHTMLString:!0}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" HTML 片段作为正文内容 ")]),_:1})]),_:1}),Vue.createVNode(V),Vue.createVNode(u,{onClick:Vue.unref(l)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 关闭所有消息提示 ")]),_:1},8,["onClick"])]),_:1})}}});export{g as default}; diff --git a/dist/static/js/index-49272547.js b/dist/static/js/index-49272547.js new file mode 100644 index 000000000..55287baa4 --- /dev/null +++ b/dist/static/js/index-49272547.js @@ -0,0 +1 @@ +import{V as p}from"./styles-cf4bf16f.js";import{d as m,a7 as w,y as d,c,e as f,w as o,f as g,i as n,h as t,g as r,u as _}from"./index-0dd8d5e4.js";import"./vue.runtime.esm-bundler-c42d439d.js";const b={class:"card-header"},v={class:"font-medium"},x={class:"font-medium"},L=m({name:"JsonEditor",__name:"index",setup(y){const i={status:200,text:"",error:null,config:void 0,data:[{news_id:51184,title:"iPhone X Review: Innovative future with real black technology",source:"Netease phone"},{news_id:51183,title:"Traffic paradise: How to design streets for people and unmanned vehicles in the future?",source:"Netease smart",link:"http://netease.smart/traffic-paradise/1235"},{news_id:51182,title:"Teslamask's American Business Relations: The government does not pay billions to build factories",source:"AI Finance",members:["Daniel","Mike","John"]}]},e=w({val:JSON.stringify(i),data:i,showLine:!0,showLineNumber:!0,showDoubleQuotes:!0,showLength:!0,editable:!0,showIcon:!0,editableTrigger:"click",deep:3});return d(()=>e.val,a=>{try{e.data=JSON.parse(a)}catch{}}),d(()=>e.data,a=>{try{e.val=JSON.stringify(a)}catch{}}),(a,s)=>{const l=c("el-link"),h=c("el-card");return g(),f(h,{shadow:"never"},{header:o(()=>[n("div",b,[n("span",v,[t(" JSON编辑器组件,采用开源的 "),r(l,{href:"https://github.com/leezng/vue-json-pretty",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:o(()=>[t(" vue-json-pretty ")]),_:1}),t(" (支持大数据量)。 ")]),n("span",x,[t(" 当然我们还有一款代码编辑器组件推荐(这里就不做演示了),采用开源的 "),r(l,{href:"https://github.com/surmon-china/vue-codemirror",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:o(()=>[t(" codemirror6 ")]),_:1})])])]),default:o(()=>[r(_(p),{data:e.data,"onUpdate:data":s[0]||(s[0]=u=>e.data=u),deep:e.deep,"show-double-quotes":e.showDoubleQuotes,"show-line":e.showLine,"show-length":e.showLength,"show-icon":e.showIcon,"show-line-number":e.showLineNumber,editable:e.editable,"editable-trigger":e.editableTrigger},null,8,["data","deep","show-double-quotes","show-line","show-length","show-icon","show-line-number","editable","editable-trigger"])]),_:1})}}});export{L as default}; diff --git a/dist/static/js/index-4a5b9d97.js b/dist/static/js/index-4a5b9d97.js new file mode 100644 index 000000000..b46766fa0 --- /dev/null +++ b/dist/static/js/index-4a5b9d97.js @@ -0,0 +1 @@ +import{useColumns as k}from"./columns-ba8e4348.js";import{d as q,c as r,k as d,g as t,w as s,f as p,u as S,F as y,l as h,i as e,C as b,p as C,q as D,_ as z}from"./index-0dd8d5e4.js";const i=l=>(C("data-v-ac745749"),l=l(),D(),l),B=i(()=>e("div",{class:"card-header"},[e("span",{class:"font-medium"},"关于")],-1)),E=i(()=>e("span",{style:{"font-size":"15px"}}," Pure-Admin 是一个基于Vue3、Vite2、TypeScript、Element-Plus 的中后台解决方案,它可以帮助您快速搭建企业级中后台,提供现成的开箱解决方案及丰富的示例。原则上不收取任何费用及版权,可以放心使用,不过如需二次开源(比如用此平台二次开发并开源)请联系作者获取许可! ",-1)),I=i(()=>e("div",{class:"card-header"},[e("span",{class:"font-medium"},"项目信息")],-1)),P=i(()=>e("div",{class:"card-header"},[e("span",{class:"font-medium"},"生产环境依赖")],-1)),V=["href"],A={style:{color:"var(--el-color-primary)"}},F=i(()=>e("div",{class:"card-header"},[e("span",{class:"font-medium"},"开发环境依赖")],-1)),N=["href"],O={style:{color:"var(--el-color-primary)"}},T=q({name:"About",__name:"index",setup(l){const{pkg:j}={pkg:{dependencies:{"@amap/amap-jsapi-loader":"^1.0.1","@howdyjs/mouse-menu":"^2.0.7","@logicflow/core":"^1.2.5","@logicflow/extension":"^1.2.5","@pureadmin/descriptions":"^1.1.1","@pureadmin/table":"^2.1.0","@pureadmin/utils":"^1.8.9","@vueuse/core":"^10.1.2","@vueuse/motion":"2.0.0-beta.12","@wangeditor/editor":"^5.1.21","@wangeditor/editor-for-vue":"^5.1.12","animate.css":"^4.1.1",axios:"^1.4.0","china-area-data":"^5.0.1",cropperjs:"^1.5.13",dayjs:"^1.11.7",echarts:"^5.4.2","el-table-infinite-scroll":"^3.0.1","element-plus":"^2.3.4","element-resize-detector":"^1.2.4","intro.js":"^7.0.1","js-cookie":"^3.0.5",jsbarcode:"^3.11.5","md-editor-v3":"2.7.2",mitt:"^3.0.0",mockjs:"^1.1.0",nprogress:"^0.2.0",path:"^0.12.7",pinia:"^2.0.36",qrcode:"^1.5.3",qs:"^6.11.1","responsive-storage":"^2.2.0",sortablejs:"^1.15.0",swiper:"^9.3.0",typeit:"^8.7.1","v-contextmenu":"3.0.0",vue:"^3.3.1","vue-i18n":"^9.2.2","vue-json-pretty":"^2.2.4","vue-pdf-embed":"^1.1.6","vue-router":"^4.1.6","vue-types":"^5.0.2","vue-virtual-scroller":"2.0.0-beta.7","vue3-danmaku":"1.4.0-beta.1",vuedraggable:"^4.1.0",xgplayer:"^3.0.2",xlsx:"^0.18.5"},devDependencies:{"@commitlint/cli":"^17.6.3","@commitlint/config-conventional":"^17.6.3","@iconify-icons/ep":"^1.2.11","@iconify-icons/ri":"^1.2.7","@iconify/vue":"^4.1.1","@intlify/unplugin-vue-i18n":"^0.10.0","@pureadmin/theme":"^3.0.0","@types/element-resize-detector":"1.1.3","@types/intro.js":"^5.1.1","@types/js-cookie":"^3.0.3","@types/mockjs":"^1.0.7","@types/node":"^18.15.12","@types/nprogress":"0.2.0","@types/qrcode":"^1.5.0","@types/qs":"^6.9.7","@types/sortablejs":"^1.15.1","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","@vitejs/plugin-vue":"^4.2.2","@vitejs/plugin-vue-jsx":"^3.0.1","@vue/eslint-config-prettier":"^7.1.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.14",cloc:"^2.11.0",cssnano:"^6.0.1",eslint:"^8.40.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^9.12.0",husky:"^8.0.3","lint-staged":"^13.2.2",picocolors:"^1.0.0",postcss:"^8.4.23","postcss-html":"^1.5.0","postcss-import":"^15.1.0","postcss-scss":"^4.0.6",prettier:"^2.8.7","pretty-quick":"3.1.1",rimraf:"^5.0.0","rollup-plugin-visualizer":"^5.9.0",sass:"^1.62.1","sass-loader":"^13.2.2",stylelint:"^15.6.1","stylelint-config-html":"^1.1.0","stylelint-config-recess-order":"^4.0.0","stylelint-config-recommended":"^12.0.0","stylelint-config-recommended-scss":"^11.0.0","stylelint-config-recommended-vue":"^1.4.0","stylelint-config-standard":"^33.0.0","stylelint-config-standard-scss":"^9.0.0","stylelint-order":"^6.0.3","stylelint-prettier":"^3.0.0","stylelint-scss":"^5.0.0",svgo:"^3.0.2",tailwindcss:"^3.3.2",terser:"^5.17.1",typescript:"^5.0.4",vite:"^4.3.5","vite-plugin-cdn-import":"^0.3.5","vite-plugin-compression":"^0.5.1","vite-plugin-mock":"^2.9.6","vite-plugin-remove-console":"^2.1.1","vite-svg-loader":"^4.0.0","vue-eslint-parser":"^9.2.1","vue-tsc":"^1.6.4"},name:"vue-pure-admin",version:"4.0.0"},lastBuildTime:"2023-05-11 20:52:38"},{dependencies:u,devDependencies:m}=j,_=[],v=[],{columns:x}=k();return Object.keys(u).forEach(o=>{_.push({field:u[o],label:o})}),Object.keys(m).forEach(o=>{v.push({field:m[o],label:o})}),(o,L)=>{const a=r("el-card"),w=r("PureDescriptions"),f=r("el-descriptions-item"),g=r("el-descriptions");return p(),d("div",null,[t(a,{class:"box-card mb-4",shadow:"never"},{header:s(()=>[B]),default:s(()=>[E]),_:1}),t(a,{class:"box-card m-4",shadow:"never"},{header:s(()=>[I]),default:s(()=>[t(w,{columns:S(x),border:"",column:3,align:"left"},null,8,["columns"])]),_:1}),t(a,{class:"box-card m-4",shadow:"never"},{header:s(()=>[P]),default:s(()=>[t(g,{border:""},{default:s(()=>[(p(),d(y,null,h(_,(n,c)=>t(f,{label:n.label,"label-align":"left",align:"left",key:c},{default:s(()=>[e("a",{href:"https://www.npmjs.com/package/"+n.label,target:"_blank"},[e("span",A,b(n.field),1)],8,V)]),_:2},1032,["label"])),64))]),_:1})]),_:1}),t(a,{class:"box-card m-4",shadow:"never"},{header:s(()=>[F]),default:s(()=>[t(g,{border:""},{default:s(()=>[(p(),d(y,null,h(v,(n,c)=>t(f,{label:n.label,"label-align":"left",align:"left",key:c},{default:s(()=>[e("a",{href:"https://www.npmjs.com/package/"+n.label,target:"_blank"},[e("span",O,b(n.field),1)],8,N)]),_:2},1032,["label"])),64))]),_:1})]),_:1})])}}});const J=z(T,[["__scopeId","data-v-ac745749"]]);export{J as default}; diff --git a/dist/static/js/index-4d64ed58.js b/dist/static/js/index-4d64ed58.js new file mode 100644 index 000000000..47b5d96a7 --- /dev/null +++ b/dist/static/js/index-4d64ed58.js @@ -0,0 +1 @@ +import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-e40cdb80.js";import"./index.vue_vue_type_script_setup_true_lang-f3b36626.js";import"./columns-3d7dbff3.js";import"./message-ac5811da.js";import"./index-0dd8d5e4.js";import"./data-4845d266.js";import"./index.vue_vue_type_script_setup_true_lang-c6a3d999.js";import"./columns-7628a2c7.js";export{o as default}; diff --git a/dist/static/js/index-4e7937cc.js b/dist/static/js/index-4e7937cc.js new file mode 100644 index 000000000..a74c335a6 --- /dev/null +++ b/dist/static/js/index-4e7937cc.js @@ -0,0 +1,6 @@ +import{S as _t,a as sn}from"./sortable.esm-679e0872.js";import{c as ye,aa as un,d as Rt,L as wt,n as Xt,r as Ke,a as cn,e as dn,w as A,f as Ze,i as L,h as yt,g as j,u as Fe,ab as fn,C as Me,k as Et,l as hn,F as pn,p as mn,q as gn,_ as vn}from"./index-0dd8d5e4.js";import{u as Dt}from"./app-9580cee8.js";import{u as bn}from"./hooks-62079556.js";/**! + * Sortable 1.14.0 + * @author RubaXa + * @author owenm + * @license MIT + */function St(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function $(t){for(var e=1;e=0)&&(n[r]=t[r]);return n}function yn(t,e){if(t==null)return{};var n=wn(t,e),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}var En="1.14.0";function K(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var Q=K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ae=K(/Edge/i),Ct=K(/firefox/i),Ce=K(/safari/i)&&!K(/chrome/i)&&!K(/android/i),Vt=K(/iP(ad|od|hone)/i),Dn=K(/chrome/i)&&K(/android/i),Bt={capture:!1,passive:!1};function w(t,e,n){t.addEventListener(e,n,!Q&&Bt)}function b(t,e,n){t.removeEventListener(e,n,!Q&&Bt)}function je(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function Sn(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function G(t,e,n,o){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&je(t,e):je(t,e))||o&&t===n)return t;if(t===n)break}while(t=Sn(t))}return null}var xt=/\s+/g;function M(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(xt," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(xt," ")}}function h(t,e,n){var o=t&&t.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in o)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),o[e]=n+(typeof n=="string"?"":"px")}}function pe(t,e){var n="";if(typeof t=="string")n=t;else do{var o=h(t,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Yt(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r=i:a=r<=i,!a)return o;if(o===z())break;o=oe(o,!1)}return!1}function me(t,e,n,o){for(var r=0,i=0,a=t.children;i2&&arguments[2]!==void 0?arguments[2]:{},r=o.evt,i=yn(o,Nn);Pe.pluginEvent.bind(p)(e,n,$({dragEl:c,parentEl:D,ghostEl:g,rootEl:E,nextEl:ue,lastDownEl:Be,cloneEl:S,cloneHidden:ne,dragStarted:Ee,putSortable:T,activeSortable:p.active,originalEvent:r,oldIndex:he,oldDraggableIndex:Te,newIndex:k,newDraggableIndex:te,hideGhostForTarget:Ut,unhideGhostForTarget:qt,cloneNowHidden:function(){ne=!0},cloneNowShown:function(){ne=!1},dispatchSortableEvent:function(l){P({sortable:n,name:l,originalEvent:r})}},i))};function P(t){Pn($({putSortable:T,cloneEl:S,targetEl:c,rootEl:E,oldIndex:he,oldDraggableIndex:Te,newIndex:k,newDraggableIndex:te},t))}var c,D,g,E,ue,Be,S,ne,he,k,Te,te,ke,T,fe=!1,Ge=!1,ze=[],le,Y,et,tt,Ot,At,Ee,de,Ie,Oe=!1,Le=!1,Ye,I,nt=[],ut=!1,$e=[],qe=typeof document<"u",Re=Vt,Pt=Ae||Q?"cssFloat":"float",Fn=qe&&!Dn&&!Vt&&"draggable"in document.createElement("div"),Gt=function(){if(qe){if(Q)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),zt=function(e,n){var o=h(e),r=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=me(e,0,n),a=me(e,1,n),l=i&&h(i),s=a&&h(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+x(i).width,d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+x(a).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=r&&o[Pt]==="none"||a&&o[Pt]==="none"&&u+d>r)?"vertical":"horizontal"},Mn=function(e,n,o){var r=o?e.left:e.top,i=o?e.right:e.bottom,a=o?e.width:e.height,l=o?n.left:n.top,s=o?n.right:n.bottom,u=o?n.width:n.height;return r===l||i===s||r+a/2===l+u/2},kn=function(e,n){var o;return ze.some(function(r){var i=r[R].options.emptyInsertThreshold;if(!(!i||pt(r))){var a=x(r),l=e>=a.left-i&&e<=a.right+i,s=n>=a.top-i&&n<=a.bottom+i;if(l&&s)return o=r}}),o},$t=function(e){function n(i,a){return function(l,s,u,d){var f=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(i==null&&(a||f))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(l,s,u,d),a)(l,s,u,d);var m=(a?l:s).options.group.name;return i===!0||typeof i=="string"&&i===m||i.join&&i.indexOf(m)>-1}}var o={},r=e.group;(!r||Ve(r)!="object")&&(r={name:r}),o.name=r.name,o.checkPull=n(r.pull,!0),o.checkPut=n(r.put),o.revertClone=r.revertClone,e.group=o},Ut=function(){!Gt&&g&&h(g,"display","none")},qt=function(){!Gt&&g&&h(g,"display","")};qe&&document.addEventListener("click",function(t){if(Ge)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ge=!1,!1},!0);var se=function(e){if(c){e=e.touches?e.touches[0]:e;var n=kn(e.clientX,e.clientY);if(n){var o={};for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[R]._onDragOver(o)}}},Ln=function(e){c&&c.parentNode[R]._isOutsideThisEl(e.target)};function p(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Z({},e),t[R]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return zt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:p.supportPointer!==!1&&"PointerEvent"in window&&!Ce,emptyInsertThreshold:5};Pe.initializePlugins(this,t,n);for(var o in n)!(o in e)&&(e[o]=n[o]);$t(e);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=e.forceFallback?!1:Fn,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?w(t,"pointerdown",this._onTapStart):(w(t,"mousedown",this._onTapStart),w(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(t,"dragover",this),w(t,"dragenter",this)),ze.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Z(this,In())}p.prototype={constructor:p,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(de=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,c):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,o=this.el,r=this.options,i=r.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,d=r.filter;if(jn(o),!c&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Ce&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=G(s,r.draggable,o,!1),!(s&&s.animated)&&Be!==s)){if(he=X(s),Te=X(s,r.draggable),typeof d=="function"){if(d.call(this,e,s,this)){P({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:o,fromEl:o}),N("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(d&&(d=d.split(",").some(function(f){if(f=G(u,f.trim(),o,!1),f)return P({sortable:n,rootEl:f,name:"filter",targetEl:s,fromEl:o,toEl:o}),N("filter",n,{evt:e}),!0}),d)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!G(u,r.handle,o,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,n,o){var r=this,i=r.el,a=r.options,l=i.ownerDocument,s;if(o&&!c&&o.parentNode===i){var u=x(o);if(E=i,c=o,D=c.parentNode,ue=c.nextSibling,Be=o,ke=a.group,p.dragged=c,le={target:c,clientX:(n||e).clientX,clientY:(n||e).clientY},Ot=le.clientX-u.left,At=le.clientY-u.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,c.style["will-change"]="all",s=function(){if(N("delayEnded",r,{evt:e}),p.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Ct&&r.nativeDraggable&&(c.draggable=!0),r._triggerDragStart(e,n),P({sortable:r,name:"choose",originalEvent:e}),M(c,a.chosenClass,!0)},a.ignore.split(",").forEach(function(d){Yt(c,d.trim(),ot)}),w(l,"dragover",se),w(l,"mousemove",se),w(l,"touchmove",se),w(l,"mouseup",r._onDrop),w(l,"touchend",r._onDrop),w(l,"touchcancel",r._onDrop),Ct&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),N("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ae||Q))){if(p.eventCanceled){this._onDrop();return}w(l,"mouseup",r._disableDelayedDrag),w(l,"touchend",r._disableDelayedDrag),w(l,"touchcancel",r._disableDelayedDrag),w(l,"mousemove",r._delayedDragTouchMoveHandler),w(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&w(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&ot(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._disableDelayedDrag),b(e,"touchend",this._disableDelayedDrag),b(e,"touchcancel",this._disableDelayedDrag),b(e,"mousemove",this._delayedDragTouchMoveHandler),b(e,"touchmove",this._delayedDragTouchMoveHandler),b(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):n?w(document,"touchmove",this._onTouchMove):w(document,"mousemove",this._onTouchMove):(w(c,"dragend",this),w(E,"dragstart",this._onDragStart));try{document.selection?He(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(fe=!1,E&&c){N("dragStarted",this,{evt:n}),this.nativeDraggable&&w(document,"dragover",Ln);var o=this.options;!e&&M(c,o.dragClass,!1),M(c,o.ghostClass,!0),p.active=this,e&&this._appendGhost(),P({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Y){this._lastX=Y.clientX,this._lastY=Y.clientY,Ut();for(var e=document.elementFromPoint(Y.clientX,Y.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Y.clientX,Y.clientY),e!==n);)n=e;if(c.parentNode[R]._isOutsideThisEl(e),n)do{if(n[R]){var o=void 0;if(o=n[R]._onDragOver({clientX:Y.clientX,clientY:Y.clientY,target:e,rootEl:n}),o&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);qt()}},_onTouchMove:function(e){if(le){var n=this.options,o=n.fallbackTolerance,r=n.fallbackOffset,i=e.touches?e.touches[0]:e,a=g&&pe(g,!0),l=g&&a&&a.a,s=g&&a&&a.d,u=Re&&I&&It(I),d=(i.clientX-le.clientX+r.x)/(l||1)+(u?u[0]-nt[0]:0)/(l||1),f=(i.clientY-le.clientY+r.y)/(s||1)+(u?u[1]-nt[1]:0)/(s||1);if(!p.active&&!fe){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(P({rootEl:D,name:"add",toEl:D,fromEl:E,originalEvent:e}),P({sortable:this,name:"remove",toEl:D,originalEvent:e}),P({rootEl:D,name:"sort",toEl:D,fromEl:E,originalEvent:e}),P({sortable:this,name:"sort",toEl:D,originalEvent:e})),T&&T.save()):k!==he&&k>=0&&(P({sortable:this,name:"update",toEl:D,originalEvent:e}),P({sortable:this,name:"sort",toEl:D,originalEvent:e})),p.active&&((k==null||k===-1)&&(k=he,te=Te),P({sortable:this,name:"end",toEl:D,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){N("nulling",this),E=c=D=g=ue=S=Be=ne=le=Y=Ee=k=te=he=Te=de=Ie=T=ke=p.dragged=p.ghost=p.clone=p.active=null,$e.forEach(function(e){e.checked=!0}),$e.length=et=tt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":c&&(this._onDragOver(e),Rn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,o=this.el.children,r=0,i=o.length,a=this.options;ro.right+r||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+r}function Yn(t,e,n,o,r,i,a,l){var s=o?t.clientY:t.clientX,u=o?n.height:n.width,d=o?n.top:n.left,f=o?n.bottom:n.right,m=!1;if(!a){if(l&&Yed+u*i/2:sf-Ye)return-Ie}else if(s>d+u*(1-r)/2&&sf-u*i/2)?s>d+u/2?1:-1:0}function Hn(t){return X(c)t.replace(qn,(e,n)=>n.toUpperCase())),Zt=["Start","Add","Remove","Update","End"],Qt=["Choose","Unchoose","Sort","Filter","Clone"],Jt=["Move"],Zn=[Jt,Zt,Qt].flatMap(t=>t).map(t=>`on${t}`),ht={manage:Jt,manageAndEmit:Zt,emit:Qt};function Qn(t){return Zn.indexOf(t)!==-1}const Jn=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function eo(t){return Jn.includes(t)}function to(t){return["transition-group","TransitionGroup"].includes(t)}function en(t){return["id","class","role","style"].includes(t)||t.startsWith("data-")||t.startsWith("aria-")||t.startsWith("on")}function tn(t){return t.reduce((e,[n,o])=>(e[n]=o,e),{})}function no({$attrs:t,componentData:e={}}){return{...tn(Object.entries(t).filter(([o,r])=>en(o))),...e}}function oo({$attrs:t,callBackBuilder:e}){const n=tn(nn(t));Object.entries(e).forEach(([r,i])=>{ht[r].forEach(a=>{n[`on${a}`]=i(a)})});const o=`[data-draggable]${n.draggable||""}`;return{...n,draggable:o}}function nn(t){return Object.entries(t).filter(([e,n])=>!en(e)).map(([e,n])=>[Kn(e),n]).filter(([e,n])=>!Qn(e))}const Mt=({el:t})=>t,ro=(t,e)=>t.__draggable_context=e,kt=t=>t.__draggable_context;class io{constructor({nodes:{header:e,default:n,footer:o},root:r,realList:i}){this.defaultNodes=n,this.children=[...e,...n,...o],this.externalComponent=r.externalComponent,this.rootTransition=r.transition,this.tag=r.tag,this.realList=i}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(e,n){const{tag:o,children:r,_isRootComponent:i}=this;return e(o,n,i?{default:()=>r}:r)}updated(){const{defaultNodes:e,realList:n}=this;e.forEach((o,r)=>{ro(Mt(o),{element:n[r],index:r})})}getUnderlyingVm(e){return kt(e)}getVmIndexFromDomIndex(e,n){const{defaultNodes:o}=this,{length:r}=o,i=n.children,a=i.item(e);if(a===null)return r;const l=kt(a);if(l)return l.index;if(r===0)return 0;const s=Mt(o[0]),u=[...i].findIndex(d=>d===s);return eao(t,s)),{item:a}=t;if(!a)throw new Error("draggable element must have an item slot");const l=o.flatMap((s,u)=>a({element:s,index:u}).map(d=>(d.key=n(s),d.props={...d.props||{},"data-draggable":!0},d)));if(l.length!==o.length)throw new Error("Item slot must have only one child");return{header:r,footer:i,default:l}}function so(t){const e=to(t),n=!eo(t)&&!e;return{transition:e,externalComponent:n,tag:n?ye(t):e?un:t}}function uo({$slots:t,tag:e,realList:n,getKey:o}){const r=lo({$slots:t,realList:n,getKey:o}),i=so(e);return new io({nodes:r,root:i,realList:n})}function on(t,e){Xt(()=>this.$emit(t.toLowerCase(),e))}function rn(t){return(e,n)=>{if(this.realList!==null)return this[`onDrag${t}`](e,n)}}function co(t){const e=rn.call(this,t);return(n,o)=>{e.call(this,n,o),on.call(this,t,n)}}let st=null;const fo={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},ho=["update:modelValue","change",...[...ht.manageAndEmit,...ht.emit].map(t=>t.toLowerCase())],Lt=Rt({name:"draggable",inheritAttrs:!1,props:fo,emits:ho,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:t,$attrs:e,tag:n,componentData:o,realList:r,getKey:i}=this,a=uo({$slots:t,tag:n,realList:r,getKey:i});this.componentStructure=a;const l=no({$attrs:e,componentData:o});return a.render(wt,l)}catch(t){return this.error=!0,wt("pre",{style:{color:"red"}},t.stack)}},created(){this.list!==null&&this.modelValue!==null&&$n.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:t,$el:e,componentStructure:n}=this;n.updated();const o=oo({$attrs:t,callBackBuilder:{manageAndEmit:i=>co.call(this,i),emit:i=>on.bind(this,i),manage:i=>rn.call(this,i)}}),r=e.nodeType===1?e:e.parentElement;this._sortable=new p(r,o),this.targetDomElement=r,r.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:t}=this;return t||this.modelValue},getKey(){const{itemKey:t}=this;return typeof t=="function"?t:e=>e[t]}},watch:{$attrs:{handler(t){const{_sortable:e}=this;e&&nn(t).forEach(([n,o])=>{e.option(n,o)})},deep:!0}},methods:{getUnderlyingVm(t){return this.componentStructure.getUnderlyingVm(t)||null},getUnderlyingPotencialDraggableComponent(t){return t.__draggable_component__},emitChanges(t){Xt(()=>this.$emit("change",t))},alterList(t){if(this.list){t(this.list);return}const e=[...this.modelValue];t(e),this.$emit("update:modelValue",e)},spliceList(){const t=e=>e.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=o=>o.splice(e,0,o.splice(t,1)[0]);this.alterList(n)},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getUnderlyingPotencialDraggableComponent(t);if(!n)return{component:n};const o=n.realList,r={list:o,component:n};return t!==e&&o?{...n.getUnderlyingVm(e)||{},...r}:r},getVmIndexFromDomIndex(t){return this.componentStructure.getVmIndexFromDomIndex(t,this.targetDomElement)},onDragStart(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),st=t.item},onDragAdd(t){const e=t.item._underlying_vm_;if(e===void 0)return;lt(t.item);const n=this.getVmIndexFromDomIndex(t.newIndex);this.spliceList(n,0,e);const o={element:e,newIndex:n};this.emitChanges({added:o})},onDragRemove(t){if(Ft(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){lt(t.clone);return}const{index:e,element:n}=this.context;this.spliceList(e,1);const o={element:n,oldIndex:e};this.emitChanges({removed:o})},onDragUpdate(t){lt(t.item),Ft(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndexFromDomIndex(t.newIndex);this.updatePosition(e,n);const o={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:o})},computeFutureIndex(t,e){if(!t.element)return 0;const n=[...e.to.children].filter(a=>a.style.display!=="none"),o=n.indexOf(e.related),r=t.component.getVmIndexFromDomIndex(o);return n.indexOf(st)!==-1||!e.willInsertAfter?r:r+1},onDragMove(t,e){const{move:n,realList:o}=this;if(!n||!o)return!0;const r=this.getRelatedContextFromMoveEvent(t),i=this.computeFutureIndex(r,t),a={...this.context,futureIndex:i},l={...t,relatedContext:r,draggedContext:a};return n(l,e)},onDragEnd(){st=null}}}),po={width:1024,height:1024,body:''},vt=t=>(mn("data-v-3f26dabd"),t=t(),gn(),t),mo={class:"card-header"},go={class:"font-medium"},vo={class:"drag-container"},bo=vt(()=>L("div",{class:"card-header"},[L("span",null,"grid列表拖拽")],-1)),_o=vt(()=>L("div",{class:"card-header"},[L("span",null,"单列拖拽")],-1)),wo={class:"item-single"},yo=vt(()=>L("div",{class:"card-header"},[L("span",null,"拖拽实现元素位置交换")],-1)),Eo={class:"cut-container"},Do=Rt({name:"Draggable",__name:"index",setup(t){const{setSortSwap:e}=Dt(),n=Ke([{grid:"cn",num:1},{grid:"cn",num:2},{grid:"cn",num:3},{grid:"cn",num:4},{grid:"cn",num:5},{grid:"cn",num:6},{grid:"cn",num:7},{grid:"cn",num:8},{grid:"cn",num:9}]),o=Ke([{people:"cn",id:1,name:"www.itxst.com"},{people:"cn",id:2,name:"www.baidu.com"},{people:"cn",id:3,name:"www.taobao.com"},{people:"cn",id:4,name:"www.google.com"}]),r=Ke([{people:"cn",id:1,name:"cut1"},{people:"cn",id:2,name:"cut2"},{people:"cn",id:3,name:"cut3"},{people:"cn",id:4,name:"cut4"}]),i=a=>{};return cn(()=>{Dt().sortSwap||_t.mount(new sn),e(!0),new _t(document.querySelector(".cut-container"),{swap:!0,forceFallback:!0,chosenClass:"chosen",swapClass:"highlight",animation:300})}),(a,l)=>{const s=ye("el-link"),u=ye("el-card"),d=ye("el-col"),f=ye("el-row");return Ze(),dn(u,{shadow:"never"},{header:A(()=>[L("div",mo,[L("span",go,[yt(" 拖拽组件,采用开源的 "),j(s,{href:"https://sortablejs.github.io/vue.draggable.next/#/simple",target:"_blank",icon:Fe(bn)(Fe(po)),style:{margin:"0 4px 5px","font-size":"16px"}},{default:A(()=>[yt(" vuedraggable ")]),_:1},8,["icon"])])])]),default:A(()=>[L("div",vo,[j(f,{gutter:25},{default:A(()=>[j(d,{xs:25,sm:8,md:8,lg:8},{default:A(()=>[j(u,{shadow:"never"},{header:A(()=>[bo]),default:A(()=>[j(Fe(Lt),{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=m=>n.value=m),class:"grid-container","item-key":"grid",animation:"300",chosenClass:"chosen",forceFallback:"true"},{item:A(({element:m})=>[L("div",{class:fn("item item-"+m.num)},Me(m.num),3)]),_:1},8,["modelValue"])]),_:1})]),_:1}),j(d,{xs:25,sm:8,md:8,lg:8},{default:A(()=>[j(u,{shadow:"never"},{header:A(()=>[_o]),default:A(()=>[j(Fe(Lt),{modelValue:o.value,"onUpdate:modelValue":l[1]||(l[1]=m=>o.value=m),"item-key":"name",onChange:i,"chosen-class":"chosen","force-fallback":"true",animation:"300"},{item:A(({element:m,index:_})=>[L("div",wo,Me(m.name)+" "+Me(_),1)]),_:1},8,["modelValue"])]),_:1})]),_:1}),j(d,{xs:25,sm:8,md:8,lg:8},{default:A(()=>[j(u,{shadow:"never"},{header:A(()=>[yo]),default:A(()=>[L("div",Eo,[(Ze(!0),Et(pn,null,hn(r.value,(m,_)=>(Ze(),Et("div",{class:"item-cut",key:_},[L("p",null,Me(m.name),1)]))),128))])]),_:1})]),_:1})]),_:1})])]),_:1})}}});const Oo=vn(Do,[["__scopeId","data-v-3f26dabd"]]);export{Oo as default}; diff --git a/dist/static/js/index-5350eda7.js b/dist/static/js/index-5350eda7.js deleted file mode 100644 index 4c83ad231..000000000 --- a/dist/static/js/index-5350eda7.js +++ /dev/null @@ -1 +0,0 @@ -import{m as l}from"./message-9ae1daa3.js";import{K as r,f as t,h as d,i as K}from"./index-c61a73ff.js";import{_ as i}from"./form.vue_vue_type_script_setup_true_lang-ef5d82af.js";const j={class:"card-header"},P={class:"font-medium"},U=Vue.defineComponent({name:"Dialog",__name:"index",setup(q){function s(){t({title:"基本使用",contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-基本使用")])})}function f(){t({title:"可拖拽",draggable:!0,contentRenderer:()=>Vue.h("p","弹框内容-可拖拽")})}function F(){t({title:"全屏",fullscreen:!0,contentRenderer:()=>Vue.createVNode("p",null,"弹框内容-全屏")})}function x(){t({title:"无背景遮罩层",modal:!1,contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-无背景遮罩层")])})}function m(){t({title:"自定义弹出位置",top:"60vh",style:{marginRight:"20px"},contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-自定义弹出位置")])})}function p(){t({title:"延时2秒打开弹框",openDelay:2e3,contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-延时2秒打开弹框")])})}function B(){t({title:"延时2秒关闭弹框",closeDelay:2e3,contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-延时2秒关闭弹框")])})}function E(){t({title:"不显示右上角关闭按钮图标",showClose:!1,contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-不显示右上角关闭按钮图标")])})}function k(){t({title:"禁止通过键盘ESC关闭",closeOnPressEscape:!1,contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-禁止通过键盘ESC关闭")])})}function h(){t({title:"禁止通过点击modal关闭",closeOnClickModal:!1,contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-禁止通过点击modal关闭")])})}function _(){t({title:"隐藏底部取消、确定按钮",hideFooter:!0,contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-隐藏底部取消、确定按钮")])})}function T(){t({title:"自定义头部",showClose:!1,headerRenderer:({close:o,titleId:u,titleClass:n})=>Vue.createVNode("div",{class:"flex flex-row justify-between"},[Vue.createVNode("h4",{id:u,class:n},[Vue.createTextVNode("自定义头部")]),Vue.createVNode(Vue.resolveComponent("el-button"),{type:"danger",onClick:o},{default:()=>[Vue.createTextVNode("关闭")]})]),contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-自定义头部")])})}function w(){t({title:"自定义底部",footerRenderer:({options:o,index:u})=>Vue.createVNode(Vue.resolveComponent("el-button"),{onClick:()=>d(o,u)},{default:()=>[o.title,Vue.createTextVNode("-"),u]}),contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-自定义底部")])})}function D(){t({title:"自定义底部按钮",footerButtons:[{label:"按钮1",size:"small",type:"success",btnClick:({dialog:{options:o,index:u},button:n})=>{d(o,u)}},{label:"按钮2",text:!0,bg:!0,btnClick:({dialog:{options:o,index:u},button:n})=>{d(o,u)}},{label:"按钮3",size:"large",type:"warning",btnClick:({dialog:{options:o,index:u},button:n})=>{d(o,u)}}],contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-自定义底部按钮")])})}function v(){t({title:"打开后的回调",open:({options:o,index:u})=>l({options:o,index:u}),contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-打开后的回调")])})}function R(){t({title:"关闭后的回调",closeCallBack:({options:o,index:u,args:n})=>{let e="";(n==null?void 0:n.command)==="cancel"?e="您点击了取消按钮":(n==null?void 0:n.command)==="sure"?e="您点击了确定按钮":e="您点击了右上角关闭按钮或者空白页",l(e)},contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-关闭后的回调")])})}function A(){t({title:"嵌套的弹框",contentRenderer:({index:o})=>Vue.createVNode(Vue.resolveComponent("el-button"),{onClick:()=>t({title:`第${o+1}个子弹框`,width:"40%",contentRenderer:({index:u})=>Vue.createVNode(Vue.resolveComponent("el-button"),{onClick:()=>t({title:`第${u+1}个子弹框`,width:"30%",contentRenderer:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(Vue.resolveComponent("el-button"),{round:!0,onClick:()=>K()},{default:()=>[Vue.createTextVNode("哎呦,你干嘛,赶快关闭所有弹框")]})])})},{default:()=>[Vue.createTextVNode("点击打开第"),u+1,Vue.createTextVNode("个子弹框")]})})},{default:()=>[Vue.createTextVNode("点击打开第"),o+1,Vue.createTextVNode("个子弹框")]})})}function b(){t({width:"30%",title:"结合Form表单(第一种方式)",contentRenderer:()=>i,props:{formInline:{user:"菜虚鲲",region:"浙江"}},closeCallBack:({options:o,args:u})=>{const{formInline:n}=o.props,e=`姓名:${n.user} 城市:${n.region}`;(u==null?void 0:u.command)==="cancel"?l(`您点击了取消按钮,当前表单数据为 ${e}`):(u==null?void 0:u.command)==="sure"?l(`您点击了确定按钮,当前表单数据为 ${e}`):l(`您点击了右上角关闭按钮或者空白页,当前表单数据为 ${e}`)}})}const c=Vue.ref({user:"菜虚鲲",region:"浙江"}),$=r(c.value);function g(){t({width:"30%",title:"结合Form表单(第二种方式)",contentRenderer:()=>Vue.h(i,{formInline:c.value}),closeCallBack:()=>{l(`当前表单数据为 姓名:${c.value.user} 城市:${c.value.region}`),c.value=r($)}})}const V=Vue.ref({user:"菜虚鲲",region:"浙江"}),y=r(V.value);function I(){t({width:"30%",title:"结合Form表单(第三种方式)",contentRenderer:()=>Vue.createVNode(i,{formInline:V.value}),closeCallBack:()=>{l(`当前表单数据为 姓名:${V.value.user} 城市:${V.value.region}`),V.value=r(y)}})}const a=Vue.ref({user:"菜虚鲲",region:"浙江"}),S=r(a.value);function O(){t({width:"30%",title:"结合Form表单(第四种方式)",contentRenderer:()=>Vue.createVNode(i,{formInline:a.value},null),closeCallBack:()=>{l(`当前表单数据为 姓名:${a.value.user} 城市:${a.value.region}`),a.value=r(S)}})}function z(){t({title:"点击底部取消按钮的回调",contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-点击底部取消按钮的回调(会暂停弹框的关闭)")]),beforeCancel:(o,{options:u,index:n})=>{}})}function M(){t({title:"点击底部确定按钮的回调",contentRenderer:()=>Vue.createVNode("p",null,[Vue.createTextVNode("弹框内容-点击底部确定按钮的回调(会暂停弹框的关闭,经常用于新增、编辑弹框内容后调用接口)")]),beforeSure:(o,{options:u,index:n})=>{}})}return(o,u)=>{const n=Vue.resolveComponent("el-link"),e=Vue.resolveComponent("el-button"),C=Vue.resolveComponent("el-space"),N=Vue.resolveComponent("el-divider"),H=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(H,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",j,[Vue.createElementVNode("span",P,[Vue.createTextVNode(" 二次封装 element-plus 的 "),Vue.createVNode(n,{href:"https://element-plus.org/zh-CN/component/dialog.html",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Dialog ")]),_:1}),Vue.createTextVNode(" ,采用函数式调用弹框组件(更多操作实例请参考 "),Vue.createElementVNode("span",{class:"cursor-pointer text-primary",onClick:u[0]||(u[0]=G=>o.$router.push({name:"Dept"}))},"系统管理页面"),Vue.createTextVNode(" ) ")])])]),default:Vue.withCtx(()=>[Vue.createVNode(C,{wrap:""},{default:Vue.withCtx(()=>[Vue.createVNode(e,{onClick:s},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 基本使用 ")]),_:1}),Vue.createVNode(e,{onClick:f},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 可拖拽 ")]),_:1}),Vue.createVNode(e,{onClick:F},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 全屏 ")]),_:1}),Vue.createVNode(e,{onClick:x},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 无背景遮罩层 ")]),_:1}),Vue.createVNode(e,{onClick:m},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义弹出位置 ")]),_:1}),Vue.createVNode(e,{onClick:p},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 延时2秒打开弹框 ")]),_:1}),Vue.createVNode(e,{onClick:B},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 延时2秒关闭弹框 ")]),_:1}),Vue.createVNode(e,{onClick:E},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 不显示右上角关闭按钮图标 ")]),_:1}),Vue.createVNode(e,{onClick:k},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 禁止通过键盘ESC关闭 ")]),_:1}),Vue.createVNode(e,{onClick:h},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 禁止通过点击modal关闭 ")]),_:1}),Vue.createVNode(e,{onClick:_},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 隐藏底部取消、确定按钮 ")]),_:1}),Vue.createVNode(e,{onClick:T},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义头部 ")]),_:1}),Vue.createVNode(e,{onClick:w},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义底部 ")]),_:1}),Vue.createVNode(e,{onClick:D},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 自定义底部按钮 ")]),_:1}),Vue.createVNode(e,{onClick:v},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 打开后的回调 ")]),_:1}),Vue.createVNode(e,{onClick:R},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 关闭后的回调 ")]),_:1}),Vue.createVNode(e,{onClick:A},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 嵌套的弹框 ")]),_:1})]),_:1}),Vue.createVNode(N),Vue.createVNode(C,{wrap:""},{default:Vue.withCtx(()=>[Vue.createVNode(e,{onClick:b},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 结合Form表单(第一种方式) ")]),_:1}),Vue.createVNode(e,{onClick:g},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 结合Form表单(第二种方式) ")]),_:1}),Vue.createVNode(e,{onClick:I},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 结合Form表单(第三种方式) ")]),_:1}),Vue.createVNode(e,{onClick:O},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 结合Form表单(第四种方式) ")]),_:1})]),_:1}),Vue.createVNode(N),Vue.createVNode(C,{wrap:""},{default:Vue.withCtx(()=>[Vue.createVNode(e,{onClick:z},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 点击底部取消按钮的回调(会暂停弹框的关闭) ")]),_:1}),Vue.createVNode(e,{onClick:M},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 点击底部确定按钮的回调(会暂停弹框的关闭,经常用于新增、编辑弹框内容后调用接口) ")]),_:1})]),_:1})]),_:1})}}});export{U as default}; diff --git a/dist/static/js/index-5401e768.js b/dist/static/js/index-5401e768.js deleted file mode 100644 index 3fe92a7ef..000000000 --- a/dist/static/js/index-5401e768.js +++ /dev/null @@ -1 +0,0 @@ -const a=Vue.createElementVNode("div",{class:"card-header"},[Vue.createElementVNode("span",{class:"font-medium"},"通过iframe引入按钮页面")],-1),r=["src"],s=Vue.defineComponent({name:"Button",__name:"index",setup(o){const{VITE_PUBLIC_PATH:e}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"true",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},t=Vue.ref(`${e}html/button.html`);return(u,_)=>{const n=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(n,{shadow:"never"},{header:Vue.withCtx(()=>[a]),default:Vue.withCtx(()=>[Vue.createElementVNode("iframe",{src:t.value,frameborder:"0",class:"iframe w-full h-[60vh]"},null,8,r)]),_:1})}}});export{s as default}; diff --git a/dist/static/js/index-54e3e3b4.js b/dist/static/js/index-54e3e3b4.js new file mode 100644 index 000000000..a50b0fdca --- /dev/null +++ b/dist/static/js/index-54e3e3b4.js @@ -0,0 +1 @@ +import{d as m,r,Y as p,c as d,k as i,i as s,C as o,u as a,g as c,f as _}from"./index-0dd8d5e4.js";const f={class:"dark:text-white"},x={style:{"text-indent":"2em"}},v=m({name:"Menu1-1",__name:"index",setup(V){const e=r(""),{t:n}=p();return(h,t)=>{const l=d("el-input");return _(),i("div",f,[s("p",null,o(a(n)("menus.hsmenu1")),1),s("p",x,o(a(n)("menus.hsmenu1-1")),1),c(l,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value=u)},null,8,["modelValue"])])}}});export{v as default}; diff --git a/dist/static/js/index-5820af99.js b/dist/static/js/index-5820af99.js new file mode 100644 index 000000000..c37dff84c --- /dev/null +++ b/dist/static/js/index-5820af99.js @@ -0,0 +1,126 @@ +import{d as G,a7 as J,x as ne,a as Z,g as s,b as Re,aR as P,F as Pe,y as M,U as se,r as V,bn as tn,n as De,aD as nn,aH as ln,v as Fe,s as on,bo as rn,B as an,bp as sn,c as he,j as cn,k as ht,w as q,f as pe,m as ge,e as xe,A as pt,u as oe,i as Se,ab as Te,l as un,ac as ft,_ as dn}from"./index-0dd8d5e4.js";import{_ as mn}from"./Bar.vue_vue_type_script_setup_true_lang-41902aae.js";import{_ as hn}from"./Pie.vue_vue_type_script_setup_true_lang-2dbb1c8a.js";import{_ as pn}from"./Line.vue_vue_type_script_setup_true_lang-c9d17410.js";import{T as ze}from"./index-24d2e7bb.js";import{d as fn}from"./index-95b65695.js";import{_ as gn}from"./Github.vue_vue_type_script_setup_true_lang-465cd287.js";import{u as vn}from"./index-3bb45c48.js";import"./app-9580cee8.js";import"./columns-534bdbdc.js";import"./office-building-cc7a1721.js";import"./iphone-bcaa848c.js";import"./user-3-fill-70ba8c19.js";var bn=Object.defineProperty,kn=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,wn=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,vt=(l,e,t)=>e in l?bn(l,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[e]=t,Q=(l,e)=>{for(var t in e||(e={}))wn.call(e,t)&&vt(l,t,e[t]);if(gt)for(var t of gt(e))xn.call(e,t)&&vt(l,t,e[t]);return l},Le=(l,e)=>kn(l,yn(e));const d="md-editor",$n="md-editor-v3",Cn="https://at.alicdn.com/t/c/font_2605852_gymddm8qwtd.js",U="https://cdnjs.cloudflare.com/ajax/libs",_n=`${U}/highlight.js/11.7.0/highlight.min.js`,bt={main:`${U}/prettier/2.8.0/standalone.js`,markdown:`${U}/prettier/2.8.0/parser-markdown.js`},kt={css:`${U}/cropperjs/1.5.13/cropper.min.css`,js:`${U}/cropperjs/1.5.13/cropper.min.js`},En=`${U}/screenfull.js/5.2.0/screenfull.min.js`,Nt=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","task","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],Ut=["markdownTotal","=","scrollSwitch"],yt={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Img Link",upload:"Upload Img",clip2upload:"Clip Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Word Count",scrollAuto:"Scroll Auto"}}},Sn=`${U}/mermaid/9.3.0/mermaid.min.js`,wt={js:`${U}/KaTeX/0.16.3/katex.min.js`,css:`${U}/KaTeX/0.16.3/katex.min.css`},xt={a11y:{light:`${U}/highlight.js/11.7.0/styles/a11y-light.min.css`,dark:`${U}/highlight.js/11.7.0/styles/a11y-dark.min.css`},atom:{light:`${U}/highlight.js/11.7.0/styles/atom-one-light.min.css`,dark:`${U}/highlight.js/11.7.0/styles/atom-one-dark.min.css`},github:{light:`${U}/highlight.js/11.7.0/styles/github.min.css`,dark:`${U}/highlight.js/11.7.0/styles/github-dark.min.css`},gradient:{light:`${U}/highlight.js/11.7.0/styles/gradient-light.min.css`,dark:`${U}/highlight.js/11.7.0/styles/gradient-dark.min.css`},kimbie:{light:`${U}/highlight.js/11.7.0/styles/kimbie-light.min.css`,dark:`${U}/highlight.js/11.7.0/styles/kimbie-dark.min.css`},paraiso:{light:`${U}/highlight.js/11.7.0/styles/paraiso-light.min.css`,dark:`${U}/highlight.js/11.7.0/styles/paraiso-dark.min.css`},qtcreator:{light:`${U}/highlight.js/11.7.0/styles/qtcreator-light.min.css`,dark:`${U}/highlight.js/11.7.0/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${U}/highlight.js/11.7.0/styles/stackoverflow-light.min.css`,dark:`${U}/highlight.js/11.7.0/styles/stackoverflow-dark.min.css`}},W={markedRenderer:l=>l,markedExtensions:[],markedOptions:{},editorExtensions:{},editorConfig:{}},Tn=l=>{if(l)for(const e in l){const t=l[e];t&&(W[e]=t)}};class zn{constructor(){this.pools={}}remove(e,t,n){const o=this.pools[e]&&this.pools[e][t];o&&(this.pools[e][t]=o.filter(a=>a!==n))}clear(e){this.pools[e]={}}on(e,t){return this.pools[e]||(this.pools[e]={}),this.pools[e][t.name]||(this.pools[e][t.name]=[]),this.pools[e][t.name].push(t.callback),this.pools[e][t.name].includes(t.callback)}emit(e,t,...n){this.pools[e]||(this.pools[e]={});const o=this.pools[e][t];o&&o.forEach(a=>{try{a(...n)}catch(r){console.error(`${t} monitor event exception!`,r)}})}}var b=new zn;const ce=(l,e=0,t=e)=>new Promise((n,i)=>{l.setSelectionRange?setTimeout(()=>{l.setSelectionRange(e,t),l.focus(),n(!0)},0):(console.error("Can not reset position!"),i())}),lt=(l,e,t)=>{const{deviationStart:n=0,deviationEnd:i=0,direct:o=!1,select:a=!1}=t;let r="";if(l.selectionStart||l.selectionStart===0){const m=l.selectionStart,u=l.selectionEnd||0,{prefixVal:c=l.value.substring(0,m),subfixVal:h=l.value.substring(u,l.value.length)}=t;r=c+e+h,ce(l,a?m+n:m+e.length+i,m+e.length+i)}else r+=e;return o&&(l.value=r),r},In=(l,e={newWindow:!0,nofollow:!0})=>{l||console.error("error link!");const t=document.createElement("a");t.href=l,t.style.display="none",e.newWindow&&(t.target="_blank"),e.nofollow&&(t.rel="noopener noreferrer"),document.body.appendChild(t),t.click(),document.body.removeChild(t)},$t=(l,e)=>{const t=tt(()=>{l.removeEventListener("scroll",n),l.addEventListener("scroll",n),e.removeEventListener("scroll",n),e.addEventListener("scroll",n)},50),n=i=>{const o=l.clientHeight,a=e.clientHeight,r=l.scrollHeight,m=e.scrollHeight,u=(r-o)/(m-a);i.target===l?(e.removeEventListener("scroll",n),e.scrollTo({top:l.scrollTop/u}),t()):(l.removeEventListener("scroll",n),l.scrollTo({top:e.scrollTop*u}),t())};return[t,()=>{l.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}]},An=(l,e="image.png")=>{const t=l.split(","),n=t[0].match(/:(.*?);/);if(n){const i=n[1],o=atob(t[1]);let a=o.length;const r=new Uint8Array(a);for(;a--;)r[a]=o.charCodeAt(a);return new File([r],e,{type:i})}return null},Ct=l=>{if(!l.trim())return l;const e=l.split(` +`),t=['"),`${l}${t.join("")}`},tt=(l,e=200)=>{let t=0;return(...n)=>{t&&clearTimeout(t),t=window.setTimeout(()=>{l.apply(globalThis,n),t=0},e)}},Fn=(l,e=200)=>{let t=0,n=null;return(...i)=>{const o=a=>{t===0&&(t=a),a-t>=e?(l.apply(globalThis,n),n=null,t=0):window.requestAnimationFrame(o)};n===null&&window.requestAnimationFrame(o),n=i}},_t=(l,e="$")=>{const t=l.split(e);let n=e,i="";for(let o=1;o{var e;return navigator.userAgent.indexOf("Firefox")>-1?l.value.substring(l.selectionStart,l.selectionEnd):((e=window.getSelection())==null?void 0:e.toString())||""},Dn=(l,e)=>{const t=l==null?void 0:l.getBoundingClientRect();if(e===document.documentElement)return t.top-e.clientTop;const n=e==null?void 0:e.getBoundingClientRect();return t.top-n.top},Rn=(l,e)=>{const t=Q({},l);return e.forEach(n=>{Reflect.deleteProperty(t,n)}),t},Et=(l,e)=>{const t=n=>{const i=l.parentElement||document.body,o=i.offsetWidth,a=i.offsetHeight,{clientWidth:r}=document.documentElement,{clientHeight:m}=document.documentElement,u=n.offsetX,c=n.offsetY,h=p=>{let w=p.x+document.body.scrollLeft-document.body.clientLeft-u,C=p.y+document.body.scrollTop-document.body.clientTop-c;w=w<1?1:w{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",f)};document.addEventListener("mouseup",f)};return l.addEventListener("mousedown",t),()=>{l.removeEventListener("mousedown",t)}},te=(l,e="")=>{const t=document.getElementById(l.id);t?e!==""&&l.onload instanceof Function&&(Reflect.get(window,e)?l.onload(new Event("load")):t.addEventListener("load",l.onload)):document.head.appendChild(l)},Pn=tt((l,e,t)=>{const n=document.getElementById(l);n&&n.setAttribute(e,t)},10),Ye="onSave",at="changeCatalogVisible",qt="changeFullscreen",St="pageFullscreenChanged",Tt="fullscreenChanged",zt="previewChanged",It="htmlPreviewChanged",At="catalogVisibleChanged",Vt="textarea_focus",jn=(l,e)=>{const{editorId:t,noPrettier:n,previewOnly:i}=l,o=J({buildFinished:!1,html:""}),a=r=>{if(r.target===document.querySelector(`#${l.editorId}-textarea`))if(b.emit(t,"selectTextChange"),r.ctrlKey||r.metaKey)switch(r.code){case"KeyS":{r.shiftKey?b.emit(t,"replace","strikeThrough"):(b.emit(t,Ye,l.modelValue),r.preventDefault());break}case"KeyB":{b.emit(t,"replace","bold"),r.preventDefault();break}case"KeyU":{r.shiftKey?(b.emit(t,"replace","unorderedList"),r.preventDefault()):(b.emit(t,"replace","underline"),r.preventDefault());break}case"KeyI":{r.shiftKey?(b.emit(t,"openModals","image"),r.preventDefault()):(b.emit(t,"replace","italic"),r.preventDefault());break}case"Digit1":{b.emit(t,"replace","h1"),r.preventDefault();break}case"Digit2":{b.emit(t,"replace","h2"),r.preventDefault();break}case"Digit3":{b.emit(t,"replace","h3"),r.preventDefault();break}case"Digit4":{b.emit(t,"replace","h4"),r.preventDefault();break}case"Digit5":{b.emit(t,"replace","h5"),r.preventDefault();break}case"Digit6":{b.emit(t,"replace","h6"),r.preventDefault();break}case"ArrowUp":{b.emit(t,"replace","sup"),r.preventDefault();break}case"ArrowDown":{b.emit(t,"replace","sub"),r.preventDefault();break}case"KeyQ":{if(r.key==="a"){r.target.select();return}b.emit(t,"replace","quote"),r.preventDefault();break}case"KeyA":if(r.key==="q"){b.emit(t,"replace","quote"),r.preventDefault();break}else return;case"KeyO":{b.emit(t,"replace","orderedList"),r.preventDefault();break}case"KeyC":{if(r.shiftKey)b.emit(t,"replace","code"),r.preventDefault();else if(r.altKey)b.emit(t,"replace","codeRow"),r.preventDefault();else{r.preventDefault(),b.emit(t,"replace","ctrlC");break}break}case"KeyL":{b.emit(t,"openModals","link"),r.preventDefault();break}case"KeyZ":{if(r.key==="w")return;r.shiftKey?(b.emit(t,"ctrlShiftZ"),r.preventDefault()):(b.emit(t,"ctrlZ"),r.preventDefault());break}case"KeyW":if(r.key==="z"){r.shiftKey?(b.emit(t,"ctrlShiftZ"),r.preventDefault()):(b.emit(t,"ctrlZ"),r.preventDefault());break}else return;case"KeyF":{r.shiftKey&&(n||(b.emit(t,"replace","prettier"),r.preventDefault()));break}case"KeyT":{r.altKey&&r.shiftKey&&(b.emit(t,"replace","table"),r.preventDefault());break}case"KeyX":{b.emit(t,"replace","ctrlX"),r.preventDefault();break}case"KeyD":{r.preventDefault(),b.emit(t,"replace","ctrlD");break}}else r.code==="Tab"&&(r.preventDefault(),r.shiftKey?b.emit(t,"replace","shiftTab"):b.emit(t,"replace","tab"))};M(()=>l.modelValue,()=>{o.buildFinished=!1}),Z(()=>{i||(window.addEventListener("keydown",a),b.on(t,{name:"buildFinished",callback(r){o.buildFinished=!0,o.html=r}}),b.on(t,{name:Ye,callback(){const r=new Promise(m=>{if(o.buildFinished)m(o.html);else{const u=c=>{m(c),b.remove(t,"buildFinished",u)};b.on(t,{name:"buildFinished",callback:u})}});l.onSave?l.onSave(l.modelValue,r):e.emit("onSave",l.modelValue,r)}}))}),Re(()=>{i||window.removeEventListener("keydown",a)})},On=l=>{var e;const{editorId:t,previewOnly:n}=l,i=(e=W==null?void 0:W.editorExtensions)==null?void 0:e.highlight;se("editorId",t),se("tabWidth",l.tabWidth),se("theme",ne(()=>l.theme)),se("highlight",ne(()=>{const a=Q(Q({},xt),i==null?void 0:i.css),r=l.codeStyleReverse&&l.codeStyleReverseList.includes(l.previewTheme)?"dark":l.theme;return{js:(i==null?void 0:i.js)||_n,css:a[l.codeTheme]?a[l.codeTheme][r]:xt.atom[r]}})),se("historyLength",l.historyLength),se("previewOnly",n),se("showCodeRowNumber",l.showCodeRowNumber);const o=ne(()=>{var a;const r=Q(Q({},yt),(a=W==null?void 0:W.editorConfig)==null?void 0:a.languageUserDefined);return r[l.language]?r[l.language]:yt["zh-CN"]});se("usedLanguageText",o),se("previewTheme",ne(()=>l.previewTheme))},Hn=l=>{var e,t,n,i,o,a;const{noPrettier:r,previewOnly:m,noIconfont:u,noUploadImg:c}=l,{editorExtensions:h}=W,f=r||!!((t=(e=W.editorExtensions)==null?void 0:e.prettier)!=null&&t.prettierInstance),p=r||!!((i=(n=W.editorExtensions)==null?void 0:n.prettier)!=null&&i.parserMarkdownInstance),w=c||!!((a=(o=W.editorExtensions)==null?void 0:o.cropper)!=null&&a.instance);Z(()=>{var C,y,g,x;const E=document.createElement("script");E.src=(h==null?void 0:h.iconfont)||Cn,E.id=`${d}-icon`;const S=document.createElement("script"),z=document.createElement("script");S.src=((C=h==null?void 0:h.prettier)==null?void 0:C.standaloneJs)||bt.main,S.id=`${d}-prettier`,z.src=((y=h==null?void 0:h.prettier)==null?void 0:y.parserMarkdownJs)||bt.markdown,z.id=`${d}-prettierMD`;const R=document.createElement("link");R.rel="stylesheet",R.href=((g=h==null?void 0:h.cropper)==null?void 0:g.css)||kt.css,R.id=`${d}-cropperCss`;const F=document.createElement("script");F.src=((x=h==null?void 0:h.cropper)==null?void 0:x.js)||kt.js,F.id=`${d}-cropper`,m||(u||te(E),w||(te(R),te(F)),f||te(S),p||te(z))})},Bn=(l,e)=>{const{editorId:t,previewOnly:n}=l,i=J({pageFullscreen:l.pageFullscreen,fullscreen:!1,preview:l.preview,htmlPreview:l.preview?!1:l.htmlPreview}),o=(m,u)=>{i[m]=u===void 0?!i[m]:u,m==="preview"&&i.preview?i.htmlPreview=!1:m==="htmlPreview"&&i.htmlPreview&&(i.preview=!1)};let a="";const r=()=>{i.pageFullscreen||i.fullscreen?document.body.style.overflow="hidden":document.body.style.overflow=a};return M(()=>[i.pageFullscreen,i.fullscreen],r),Z(()=>{n||b.on(t,{name:"uploadImage",callback(m,u){const c=h=>{b.emit(t,"replace","image",{desc:"",urls:h}),u&&u()};l.onUploadImg?l.onUploadImg(m,c):e.emit("onUploadImg",m,c)}}),a=document.body.style.overflow,r()}),[i,o]},Mn=l=>{const{editorId:e}=l,t=V(!1);Z(()=>{b.on(e,{name:at,callback:i=>{i===void 0?t.value=!t.value:t.value=i}})});const n=ne(()=>!l.toolbarsExclude.includes("catalog")&&l.toolbars.includes("catalog"));return[t,n]},Nn=(l,e,t,n,i)=>{const{editorId:o}=l;M(()=>n.pageFullscreen,r=>{b.emit(o,St,r)}),M(()=>n.fullscreen,r=>{b.emit(o,Tt,r)}),M(()=>n.preview,r=>{b.emit(o,zt,r)}),M(()=>n.htmlPreview,r=>{b.emit(o,It,r)}),M(t,r=>{b.emit(o,At,r)});const a={on(r,m){switch(r){case"pageFullscreen":{b.on(o,{name:St,callback(u){m(u)}});break}case"fullscreen":{b.on(o,{name:Tt,callback(u){m(u)}});break}case"preview":{b.on(o,{name:zt,callback(u){m(u)}});break}case"htmlPreview":{b.on(o,{name:It,callback(u){m(u)}});break}case"catalog":{b.on(o,{name:At,callback(u){m(u)}});break}}},togglePageFullscreen(r){i("pageFullscreen",r)},toggleFullscreen(r){b.emit(o,qt,r)},togglePreview(r){i("preview",r)},toggleHtmlPreview(r){i("htmlPreview",r)},toggleCatalog(r){b.emit(o,at,r)},triggerSave(){b.emit(o,Ye)},insert(r){b.emit(o,"replace","universal",{generate:r})},focus(){b.emit(o,Vt)}};e.expose(a)};var Un=G({setup(){return()=>s("div",{class:`${d}-divider`},null)}});const le=({instance:l,ctx:e,props:t={}},n="default")=>{const i=(l==null?void 0:l.$slots[n])||(e==null?void 0:e.slots[n]);return(i?i(l):"")||t[n]},qn=()=>({trigger:{type:String,default:"hover"},overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>()=>{}},relative:{type:String,default:"html"}});var Ce=G({props:qn(),setup(l,e){const t=`${d}-dropdown-hidden`,n=J({overlayClass:[t],overlayStyle:{},triggerHover:!1,overlayHover:!1}),i=V(),o=V(),a=()=>{var h;l.trigger==="hover"&&(n.triggerHover=!0);const f=i.value,p=o.value,w=f.getBoundingClientRect(),C=f.offsetTop,y=f.offsetLeft,g=w.height,x=w.width,E=((h=document.querySelector(l.relative))==null?void 0:h.scrollLeft)||0;n.overlayStyle=Le(Q({},n.overlayStyle),{top:C+g+"px",left:y-p.offsetWidth/2+x/2-E+"px"}),l.onChange(!0)},r=()=>{n.overlayHover=!0};M(()=>l.visible,h=>{h?n.overlayClass=n.overlayClass.filter(f=>f!==t):n.overlayClass.push(t)});const m=h=>{const f=i.value,p=o.value;!f.contains(h.target)&&!p.contains(h.target)&&l.onChange(!1)};let u=-1;const c=h=>{i.value===h.target?n.triggerHover=!1:n.overlayHover=!1,clearTimeout(u),u=window.setTimeout(()=>{!n.overlayHover&&!n.triggerHover&&l.onChange(!1)},10)};return Z(()=>{l.trigger==="click"?(i.value.addEventListener("click",a),document.addEventListener("click",m)):(i.value.addEventListener("mouseenter",a),i.value.addEventListener("mouseleave",c),o.value.addEventListener("mouseenter",r),o.value.addEventListener("mouseleave",c))}),Re(()=>{l.trigger==="click"?(i.value.removeEventListener("click",a),document.removeEventListener("click",m)):(i.value.removeEventListener("mouseenter",a),i.value.removeEventListener("mouseleave",c),o.value.removeEventListener("mouseenter",r),o.value.removeEventListener("mouseleave",c))}),()=>{const h=le({ctx:e}),f=le({props:l,ctx:e},"overlay"),p=tn(h instanceof Array?h[0]:h,{ref:i}),w=s("div",{class:[`${d}-dropdown`,n.overlayClass],style:n.overlayStyle,ref:o},[s("div",{class:`${d}-dropdown-overlay`},[f instanceof Array?f[0]:f])]);return[p,w]}}});const Vn=()=>({title:{type:String,default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClose:{type:Function,default:()=>()=>{}},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>()=>{}},class:{type:String}});var st=G({props:Vn(),setup(l,e){const t=V(l.visible),n=V([`${d}-modal`]),i=V(),o=V();let a=()=>{};const r=J({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}}),m=ne(()=>l.isFullscreen?{width:"100%",height:"100%"}:{width:l.width,height:l.height});return Z(()=>{a=Et(o.value,(u,c)=>{r.initPos.left=u+"px",r.initPos.top=c+"px"})}),Re(()=>{a()}),M(()=>l.isFullscreen,u=>{u?a():a=Et(o.value,(c,h)=>{r.initPos.left=c+"px",r.initPos.top=h+"px"})}),M(()=>l.visible,u=>{u?(n.value.push("zoom-in"),t.value=u,De(()=>{const c=i.value.offsetWidth/2,h=i.value.offsetHeight/2,f=document.documentElement.clientWidth/2,p=document.documentElement.clientHeight/2;r.initPos.left=f-c+"px",r.initPos.top=p-h+"px"}),setTimeout(()=>{n.value=n.value.filter(c=>c!=="zoom-in")},140)):(n.value.push("zoom-out"),setTimeout(()=>{n.value=n.value.filter(c=>c!=="zoom-out"),t.value=u},130))}),()=>{const u=le({ctx:e}),c=le({props:l,ctx:e},"title");return s("div",{class:[l.class],style:{display:t.value?"block":"none"}},[s("div",{class:`${d}-modal-mask`,onClick:l.onClose},null),s("div",{class:n.value,style:Q(Q({},r.initPos),m.value),ref:i},[s("div",{class:`${d}-modal-header`,ref:o},[c||""]),s("div",{class:`${d}-modal-body`},[u]),s("div",{class:`${d}-modal-func`},[l.showAdjust&&s("div",{class:`${d}-modal-adjust`,onClick:h=>{h.stopPropagation(),l.isFullscreen?r.initPos=r.historyPos:(r.historyPos=r.initPos,r.initPos={left:"0",top:"0"}),l.onAdjust(!l.isFullscreen)}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":`#md-editor-icon-${l.isFullscreen?"suoxiao":"fangda"}`},null)])]),s("div",{class:`${d}-modal-close`,onClick:h=>{h.stopPropagation(),l.onClose&&l.onClose()}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-close"},null)])])])])])}}});const Kn=()=>({type:{type:String,default:"link"},visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}});var Zn=G({props:Kn(),setup(l){const e=P("usedLanguageText"),t=P("editorId"),n=ne(()=>{var o,a;switch(l.type){case"link":return(o=e.value.linkModalTips)==null?void 0:o.linkTitle;case"image":return(a=e.value.linkModalTips)==null?void 0:a.imageTitle;default:return""}}),i=J({desc:"",url:""});return M(()=>l.visible,o=>{o||setTimeout(()=>{i.desc="",i.url=""},200)}),()=>s(st,{title:n.value,visible:l.visible,onClose:l.onCancel},{default:()=>{var o,a,r,m,u;return[s("div",{class:`${d}-form-item`},[s("label",{class:`${d}-label`,for:`link-desc-${t}`},[(o=e.value.linkModalTips)==null?void 0:o.descLabel]),s("input",{placeholder:(a=e.value.linkModalTips)==null?void 0:a.descLabelPlaceHolder,class:`${d}-input`,id:`link-desc-${t}`,type:"text",value:i.desc,onChange:c=>{i.desc=c.target.value},autocomplete:"off"},null)]),s("div",{class:`${d}-form-item`},[s("label",{class:`${d}-label`,for:`link-url-${t}`},[(r=e.value.linkModalTips)==null?void 0:r.urlLabel]),s("input",{placeholder:(m=e.value.linkModalTips)==null?void 0:m.urlLabelPlaceHolder,class:`${d}-input`,id:`link-url-${t}`,type:"text",value:i.url,onChange:c=>{i.url=c.target.value},autocomplete:"off"},null)]),s("div",{class:`${d}-form-item`},[s("button",{class:[`${d}-btn`,`${d}-btn-row`],type:"button",onClick:()=>{l.onOk(i),i.desc="",i.url=""}},[(u=e.value.linkModalTips)==null?void 0:u.buttonOK])])]}})}});const Gn=()=>({visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}});var Wn=G({props:Gn(),setup(l){var e,t;const n=P("usedLanguageText"),i=P("editorId");let o=(t=(e=W==null?void 0:W.editorExtensions)==null?void 0:e.cropper)==null?void 0:t.instance;const a=V(),r=V(),m=V(),u=J({cropperInited:!1,imgSelected:!1,imgSrc:"",isFullscreen:!1});let c=null;M(()=>l.visible,()=>{l.visible&&!u.cropperInited&&(o=o||window.Cropper,a.value.onchange=()=>{if(!o){b.emit(i,"errorCatcher",{name:"Cropper",message:"Cropper is undefined"});return}const f=a.value.files||[];if(u.imgSelected=!0,(f==null?void 0:f.length)>0){const p=new FileReader;p.onload=w=>{u.imgSrc=w.target.result,De(()=>{c=new o(r.value,{viewMode:2,preview:`.${d}-clip-preview-target`})})},p.readAsDataURL(f[0])}})}),M(()=>[u.imgSelected],()=>{m.value.style=""}),M(()=>u.isFullscreen,()=>{De(()=>{c==null||c.destroy(),m.value.style="",r.value&&(c=new o(r.value,{viewMode:2,preview:`.${d}-clip-preview-target`}))})});const h=()=>{c.clear(),c.destroy(),c=null,a.value.value="",u.imgSelected=!1};return()=>{var f;return s(st,{class:`${d}-modal-clip`,title:(f=n.value.clipModalTips)==null?void 0:f.title,visible:l.visible,onClose:l.onCancel,showAdjust:!0,isFullscreen:u.isFullscreen,onAdjust:p=>{u.isFullscreen=p},width:"668px",height:"421px"},{default:()=>{var p,w;return[s("div",{class:`${d}-form-item ${d}-clip`},[s("div",{class:`${d}-clip-main`},[u.imgSelected?s("div",{class:`${d}-clip-cropper`},[s("img",{src:u.imgSrc,ref:r,style:{display:"none"},alt:""},null),s("div",{class:`${d}-clip-delete`,onClick:h},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-delete"},null)])])]):s("div",{class:`${d}-clip-upload`,onClick:()=>{a.value.click()}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-upload"},null)])])]),s("div",{class:`${d}-clip-preview`},[s("div",{class:`${d}-clip-preview-target`,ref:m},null)])]),s("div",{class:`${d}-form-item`},[s("button",{class:`${d}-btn`,type:"button",onClick:()=>{if(c){const C=c.getCroppedCanvas();b.emit(i,"uploadImage",[An(C.toDataURL("image/png"))],l.onOk),h()}}},[((p=n.value.clipModalTips)==null?void 0:p.buttonUpload)||((w=n.value.linkModalTips)==null?void 0:w.buttonOK)])]),s("input",{ref:a,accept:"image/*",type:"file",multiple:!1,style:{display:"none"}},null)]}})}}});const Xn=()=>({type:{type:String,default:"link"},linkVisible:{type:Boolean,default:!1},clipVisible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>()=>{}},onOk:{type:Function,default:()=>()=>{}}});var Qn=G({props:Xn(),setup(l){return()=>s(Pe,null,[s(Zn,{type:l.type,visible:l.linkVisible,onOk:l.onOk,onCancel:l.onCancel},null),s(Wn,{visible:l.clipVisible,onOk:l.onOk,onCancel:l.onCancel},null)])}});const Yn=l=>{var e,t,n,i;const o=P("editorId"),a=P("previewOnly");let r=(t=(e=W.editorExtensions)==null?void 0:e.screenfull)==null?void 0:t.instance;const m=(i=(n=W.editorExtensions)==null?void 0:n.screenfull)==null?void 0:i.js,u=V(!1),c=p=>{if(!r){b.emit(o,"errorCatcher",{name:"fullscreen",message:"fullscreen is undefined"});return}r.isEnabled?(u.value=!0,(p===void 0?!r.isFullscreen:p)?r.request():r.exit()):console.error("browser does not support screenfull!")},h=()=>{r&&r.isEnabled&&r.on("change",()=>{(u.value||l.setting.fullscreen)&&(u.value=!1,l.updateSetting("fullscreen"))})},f=()=>{r=window.screenfull,h()};return Z(()=>{if(h(),!a&&!r){const p=document.createElement("script");p.src=m||En,p.onload=f,p.id=`${d}-screenfull`,te(p,"screenfull")}}),Z(()=>{a||b.on(o,{name:qt,callback:c})}),{fullscreenHandler:c}},Jn=()=>({tableShape:{type:Array,default:()=>[6,4]},onSelected:{type:Function,default:()=>{}}}),el=G({name:"TableShape",props:Jn(),setup(l){const e=J({x:-1,y:-1});return()=>s("div",{class:`${d}-table-shape`,onMouseleave:()=>{e.x=-1,e.y=-1}},[new Array(l.tableShape[1]).fill("").map((t,n)=>s("div",{class:`${d}-table-shape-row`,key:`table-shape-row-${n}`},[new Array(l.tableShape[0]).fill("").map((i,o)=>s("div",{class:`${d}-table-shape-col`,key:`table-shape-col-${o}`,onMouseenter:()=>{e.x=n,e.y=o},onClick:()=>{l.onSelected(e)}},[s("div",{class:[`${d}-table-shape-col-default`,n<=e.x&&o<=e.y&&`${d}-table-shape-col-include`]},null)]))]))])}}),tl=()=>({noPrettier:{type:Boolean},toolbars:{type:Array,default:()=>[]},toolbarsExclude:{type:Array,default:()=>[]},setting:{type:Object,default:()=>({})},screenfull:{type:Object,default:null},screenfullJs:{type:String,default:""},updateSetting:{type:Function,default:()=>()=>{}},tableShape:{type:Array,default:()=>[6,4]},defToolbars:{type:Object},noUploadImg:{type:Boolean}});var nl=G({name:"MDEditorToolbar",props:tl(),setup(l){const e=P("editorId"),t=P("usedLanguageText"),{fullscreenHandler:n}=Yn(l),i=`${e}-toolbar-wrapper`,o=J({title:!1,catalog:!1,image:!1,table:!1,mermaid:!1,katex:!1}),a=(p,w)=>{b.emit(e,"replace",p,w)},r=J({type:"link",linkVisible:!1,clipVisible:!1}),m=V();Z(()=>{b.on(e,{name:"openModals",callback(p){r.type=p,r.linkVisible=!0}})});const u=ne(()=>{const p=l.toolbars.filter(g=>!l.toolbarsExclude.includes(g)),w=p.indexOf("="),C=w===-1?p:p.slice(0,w+1),y=w===-1?[]:p.slice(w,Number.MAX_SAFE_INTEGER);return[C,y]}),c=V(),h=()=>{b.emit(e,"uploadImage",Array.from(c.value.files||[])),c.value.value=""};Z(()=>{c.value.addEventListener("change",h)});const f=p=>{var w,C,y,g,x,E,S,z,R,F,v,K,O,H,T,k,$,D,L,j,Y,ae,ee,be,je,Oe,He,me,Be,Me,fe,Ne,Ue,ke,ye,qe,Ve,we,Ke,Ze,Ee,dt,mt;if(Nt.includes(p))switch(p){case"-":return s(Un,null,null);case"bold":return s("div",{class:`${d}-toolbar-item`,title:(w=t.value.toolbarTips)==null?void 0:w.bold,onClick:()=>{a("bold")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-bold"},null)])]);case"underline":return s("div",{class:`${d}-toolbar-item`,title:(C=t.value.toolbarTips)==null?void 0:C.underline,onClick:()=>{a("underline")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-underline"},null)])]);case"italic":return s("div",{class:`${d}-toolbar-item`,title:(y=t.value.toolbarTips)==null?void 0:y.italic,onClick:()=>{a("italic")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-italic"},null)])]);case"strikeThrough":return s("div",{class:`${d}-toolbar-item`,title:(g=t.value.toolbarTips)==null?void 0:g.strikeThrough,onClick:()=>{a("strikeThrough")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-strike-through"},null)])]);case"title":return s(Ce,{relative:`#${i}`,visible:o.title,onChange:B=>{o.title=B},overlay:s("ul",{class:`${d}-menu`,onClick:()=>{o.title=!1}},[s("li",{class:`${d}-menu-item`,onClick:()=>{a("h1")}},[(x=t.value.titleItem)==null?void 0:x.h1]),s("li",{class:`${d}-menu-item`,onClick:()=>{a("h2")}},[(E=t.value.titleItem)==null?void 0:E.h2]),s("li",{class:`${d}-menu-item`,onClick:()=>{a("h3")}},[(S=t.value.titleItem)==null?void 0:S.h3]),s("li",{class:`${d}-menu-item`,onClick:()=>{a("h4")}},[(z=t.value.titleItem)==null?void 0:z.h4]),s("li",{class:`${d}-menu-item`,onClick:()=>{a("h5")}},[(R=t.value.titleItem)==null?void 0:R.h5]),s("li",{class:`${d}-menu-item`,onClick:()=>{a("h6")}},[(F=t.value.titleItem)==null?void 0:F.h6])])},{default:()=>{var B;return[s("div",{class:`${d}-toolbar-item`,title:(B=t.value.toolbarTips)==null?void 0:B.title},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-title"},null)])])]}});case"sub":return s("div",{class:`${d}-toolbar-item`,title:(v=t.value.toolbarTips)==null?void 0:v.sub,onClick:()=>{a("sub")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-sub"},null)])]);case"sup":return s("div",{class:`${d}-toolbar-item`,title:(K=t.value.toolbarTips)==null?void 0:K.sup,onClick:()=>{a("sup")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-sup"},null)])]);case"quote":return s("div",{class:`${d}-toolbar-item`,title:(O=t.value.toolbarTips)==null?void 0:O.quote,onClick:()=>{a("quote")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-quote"},null)])]);case"unorderedList":return s("div",{class:`${d}-toolbar-item`,title:(H=t.value.toolbarTips)==null?void 0:H.unorderedList,onClick:()=>{a("unorderedList")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-unordered-list"},null)])]);case"orderedList":return s("div",{class:`${d}-toolbar-item`,title:(T=t.value.toolbarTips)==null?void 0:T.orderedList,onClick:()=>{a("orderedList")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-ordered-list"},null)])]);case"task":return s("div",{class:`${d}-toolbar-item`,title:(k=t.value.toolbarTips)==null?void 0:k.task,onClick:()=>{a("task")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-task"},null)])]);case"codeRow":return s("div",{class:`${d}-toolbar-item`,title:($=t.value.toolbarTips)==null?void 0:$.codeRow,onClick:()=>{a("codeRow")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-code-row"},null)])]);case"code":return s("div",{class:`${d}-toolbar-item`,title:(D=t.value.toolbarTips)==null?void 0:D.code,onClick:()=>{a("code")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-code"},null)])]);case"link":return s("div",{class:`${d}-toolbar-item`,title:(L=t.value.toolbarTips)==null?void 0:L.link,onClick:()=>{r.type="link",r.linkVisible=!0}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-link"},null)])]);case"image":return l.noUploadImg?s("div",{class:`${d}-toolbar-item`,title:(j=t.value.toolbarTips)==null?void 0:j.image,onClick:()=>{r.type="image",r.linkVisible=!0}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-image"},null)])]):s(Ce,{relative:`#${i}`,visible:o.image,onChange:B=>{o.image=B},overlay:s("ul",{class:`${d}-menu`,onClick:()=>{o.title=!1}},[s("li",{class:`${d}-menu-item`,onClick:()=>{r.type="image",r.linkVisible=!0}},[(Y=t.value.imgTitleItem)==null?void 0:Y.link]),s("li",{class:`${d}-menu-item`,onClick:()=>{c.value.click()}},[(ae=t.value.imgTitleItem)==null?void 0:ae.upload]),s("li",{class:`${d}-menu-item`,onClick:()=>{r.clipVisible=!0}},[(ee=t.value.imgTitleItem)==null?void 0:ee.clip2upload])])},{default:()=>{var B;return[s("div",{class:`${d}-toolbar-item`,title:(B=t.value.toolbarTips)==null?void 0:B.image},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-image"},null)])])]}});case"table":return s(Ce,{relative:`#${i}`,visible:o.table,onChange:B=>{o.table=B},key:"bar-table",overlay:s(el,{tableShape:l.tableShape,onSelected:B=>{a("table",{selectedShape:B})}},null)},{default:()=>{var B;return[s("div",{class:`${d}-toolbar-item`,title:(B=t.value.toolbarTips)==null?void 0:B.table},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-table"},null)])])]}});case"revoke":return s("div",{class:`${d}-toolbar-item`,title:(be=t.value.toolbarTips)==null?void 0:be.revoke,onClick:()=>{b.emit(e,"ctrlZ")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-revoke"},null)])]);case"next":return s("div",{class:`${d}-toolbar-item`,title:(je=t.value.toolbarTips)==null?void 0:je.next,onClick:()=>{b.emit(e,"ctrlShiftZ")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-next"},null)])]);case"save":return s("div",{class:`${d}-toolbar-item`,title:(Oe=t.value.toolbarTips)==null?void 0:Oe.save,onClick:()=>{b.emit(e,Ye)}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-baocun"},null)])]);case"prettier":return l.noPrettier?"":s("div",{class:`${d}-toolbar-item`,title:(He=t.value.toolbarTips)==null?void 0:He.prettier,onClick:()=>{a("prettier")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-prettier"},null)])]);case"pageFullscreen":return!l.setting.fullscreen&&s("div",{class:`${d}-toolbar-item`,title:(me=t.value.toolbarTips)==null?void 0:me.pageFullscreen,onClick:()=>{l.updateSetting("pageFullscreen")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":`#md-editor-icon-${l.setting.pageFullscreen?"suoxiao":"fangda"}`},null)])]);case"fullscreen":return s("div",{class:`${d}-toolbar-item`,title:(Be=t.value.toolbarTips)==null?void 0:Be.fullscreen,onClick:()=>{n()}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":`#md-editor-icon-${l.setting.fullscreen?"fullscreen-exit":"fullscreen"}`},null)])]);case"preview":return s("div",{class:`${d}-toolbar-item`,title:(Me=t.value.toolbarTips)==null?void 0:Me.preview,onClick:()=>{l.updateSetting("preview")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-preview"},null)])]);case"htmlPreview":return s("div",{class:`${d}-toolbar-item`,title:(fe=t.value.toolbarTips)==null?void 0:fe.htmlPreview,onClick:()=>{l.updateSetting("htmlPreview")}},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-coding"},null)])]);case"catalog":return s("div",{class:`${d}-toolbar-item`,title:(Ne=t.value.toolbarTips)==null?void 0:Ne.catalog,onClick:()=>{b.emit(e,at)},key:"bar-catalog"},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-catalog"},null)])]);case"github":return s("div",{class:`${d}-toolbar-item`,title:(Ue=t.value.toolbarTips)==null?void 0:Ue.github,onClick:()=>In("https://github.com/imzbf/md-editor-v3")},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-github"},null)])]);case"mermaid":return s(Ce,{relative:`#${i}`,visible:o.mermaid,onChange:B=>{o.mermaid=B},overlay:s("ul",{class:`${d}-menu`,onClick:()=>{o.mermaid=!1}},[s("li",{class:`${d}-menu-item`,onClick:()=>{a("flow")}},[(ke=t.value.mermaid)==null?void 0:ke.flow]),s("li",{class:`${d}-menu-item`,onClick:()=>{a("sequence")}},[(ye=t.value.mermaid)==null?void 0:ye.sequence]),s("li",{class:`${d}-menu-item`,onClick:()=>{a("gantt")}},[(qe=t.value.mermaid)==null?void 0:qe.gantt]),s("li",{class:`${d}-menu-item`,onClick:()=>{a("class")}},[(Ve=t.value.mermaid)==null?void 0:Ve.class]),s("li",{class:`${d}-menu-item`,onClick:()=>{a("state")}},[(we=t.value.mermaid)==null?void 0:we.state]),s("li",{class:`${d}-menu-item`,onClick:()=>{a("pie")}},[(Ke=t.value.mermaid)==null?void 0:Ke.pie]),s("li",{class:`${d}-menu-item`,onClick:()=>{a("relationship")}},[(Ze=t.value.mermaid)==null?void 0:Ze.relationship]),s("li",{class:`${d}-menu-item`,onClick:()=>{a("journey")}},[(Ee=t.value.mermaid)==null?void 0:Ee.journey])]),key:"bar-mermaid"},{default:()=>{var B;return[s("div",{class:`${d}-toolbar-item`,title:(B=t.value.toolbarTips)==null?void 0:B.mermaid},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-mermaid"},null)])])]}});case"katex":return s(Ce,{relative:`#${i}`,visible:o.katex,onChange:B=>{o.katex=B},overlay:s("ul",{class:`${d}-menu`,onClick:()=>{o.katex=!1}},[s("li",{class:`${d}-menu-item`,onClick:()=>{a("katexInline")}},[(dt=t.value.katex)==null?void 0:dt.inline]),s("li",{class:`${d}-menu-item`,onClick:()=>{a("katexBlock")}},[(mt=t.value.katex)==null?void 0:mt.block])]),key:"bar-katex"},{default:()=>{var B;return[s("div",{class:`${d}-toolbar-item`,title:(B=t.value.toolbarTips)==null?void 0:B.katex},[s("svg",{class:`${d}-icon`,"aria-hidden":"true"},[s("use",{"xlink:href":"#md-editor-icon-formula"},null)])])]}})}else return l.defToolbars instanceof Array?l.defToolbars[p]||"":l.defToolbars&&l.defToolbars.children instanceof Array&&l.defToolbars.children[p]||""};return()=>{const p=u.value[0].map(C=>f(C)),w=u.value[1].map(C=>f(C));return s(Pe,null,[l.toolbars.length>0&&s("div",{class:`${d}-toolbar-wrapper`,id:i},[s("div",{class:`${d}-toolbar`},[s("div",{class:`${d}-toolbar-left`,ref:m},[p]),s("div",{class:`${d}-toolbar-right`},[w])])]),s("input",{ref:c,accept:"image/*",type:"file",multiple:!0,style:{display:"none"}},null),s(Qn,{linkVisible:r.linkVisible,clipVisible:r.clipVisible,type:r.type,onCancel:()=>{r.linkVisible=!1,r.clipVisible=!1},onOk:C=>{C&&a(r.type,{desc:C.desc,url:C.url}),r.linkVisible=!1,r.clipVisible=!1}},null)])}}});function Kt(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let _e=Kt();function ll(l){_e=l}const Zt=/[&<>"']/,il=new RegExp(Zt.source,"g"),Gt=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ol=new RegExp(Gt.source,"g"),rl={"&":"&","<":"<",">":">",'"':""","'":"'"},Ft=l=>rl[l];function X(l,e){if(e){if(Zt.test(l))return l.replace(il,Ft)}else if(Gt.test(l))return l.replace(ol,Ft);return l}const al=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Wt(l){return l.replace(al,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const sl=/(^|[^\[])\^/g;function N(l,e){l=typeof l=="string"?l:l.source,e=e||"";const t={replace:(n,i)=>(i=i.source||i,i=i.replace(sl,"$1"),l=l.replace(n,i),t),getRegex:()=>new RegExp(l,e)};return t}const cl=/[^\w:]/g,ul=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Lt(l,e,t){if(l){let n;try{n=decodeURIComponent(Wt(t)).replace(cl,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!ul.test(t)&&(t=pl(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const Ge={},dl=/^[^:]+:\/*[^/]*$/,ml=/^([^:]+:)[\s\S]*$/,hl=/^([^:]+:\/*[^/]*)[\s\S]*$/;function pl(l,e){Ge[" "+l]||(dl.test(l)?Ge[" "+l]=l+"/":Ge[" "+l]=Xe(l,"/",!0)),l=Ge[" "+l];const t=l.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:l.replace(ml,"$1")+e:e.charAt(0)==="/"?t?e:l.replace(hl,"$1")+e:l+e}const Je={exec:function(){}};function ie(l){let e=1,t,n;for(;e{let m=!1,u=a;for(;--u>=0&&r[u]==="\\";)m=!m;return m?"|":" |"}),n=t.split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length1;)e&1&&(t+=l),e>>=1,l+=l;return t+l}function Pt(l,e,t,n){const i=e.href,o=e.title?X(e.title):null,a=l[1].replace(/\\([\[\]])/g,"$1");if(l[0].charAt(0)!=="!"){n.state.inLink=!0;const r={type:"link",raw:t,href:i,title:o,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,r}return{type:"image",raw:t,href:i,title:o,text:X(a)}}function gl(l,e){const t=l.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(` +`).map(i=>{const o=i.match(/^\s+/);if(o===null)return i;const[a]=o;return a.length>=n.length?i.slice(n.length):i}).join(` +`)}class ct{constructor(e){this.options=e||_e}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Xe(n,` +`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],i=gl(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const i=Xe(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const n=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(n,[]),text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,i,o,a,r,m,u,c,h,f,p,w,C=t[1].trim();const y=C.length>1,g={type:"list",raw:"",ordered:y,start:y?+C.slice(0,-1):"",loose:!1,items:[]};C=y?`\\d{1,9}\\${C.slice(-1)}`:`\\${C}`,this.options.pedantic&&(C=y?C:"[*+-]");const x=new RegExp(`^( {0,3}${C})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(w=!1,!(!(t=x.exec(e))||this.rules.block.hr.test(e)));){if(n=t[0],e=e.substring(n.length),c=t[2].split(` +`,1)[0],h=e.split(` +`,1)[0],this.options.pedantic?(a=2,p=c.trimLeft()):(a=t[2].search(/[^ ]/),a=a>4?1:a,p=c.slice(a),a+=t[1].length),m=!1,!c&&/^ *$/.test(h)&&(n+=h+` +`,e=e.substring(h.length+1),w=!0),!w){const S=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),z=new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),R=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),F=new RegExp(`^ {0,${Math.min(3,a-1)}}#`);for(;e&&(f=e.split(` +`,1)[0],c=f,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(R.test(c)||F.test(c)||S.test(c)||z.test(e)));){if(c.search(/[^ ]/)>=a||!c.trim())p+=` +`+c.slice(a);else if(!m)p+=` +`+c;else break;!m&&!c.trim()&&(m=!0),n+=f+` +`,e=e.substring(f.length+1)}}g.loose||(u?g.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(p),i&&(o=i[0]!=="[ ] ",p=p.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!i,checked:o,loose:!1,text:p}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=p.trimRight(),g.raw=g.raw.trimRight();const E=g.items.length;for(r=0;rR.type==="space"),z=S.every(R=>{const F=R.raw.split("");let v=0;for(const K of F)if(K===` +`&&(v+=1),v>1)return!0;return!1});!g.loose&&S.length&&z&&(g.loose=!0,g.items[r].loose=!0)}return g}}html(e){const t=this.rules.block.html.exec(e);if(t){const n={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};if(this.options.sanitize){const i=this.options.sanitizer?this.options.sanitizer(t[0]):X(t[0]);n.type="paragraph",n.text=i,n.tokens=this.lexer.inline(i)}return n}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:i,title:o}}}table(e){const t=this.rules.block.table.exec(e);if(t){const n={type:"table",header:Dt(t[1]).map(i=>({text:i})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(n.header.length===n.align.length){n.raw=t[0];let i=n.align.length,o,a,r,m;for(o=0;o({text:u}));for(i=n.header.length,a=0;a/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):X(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const a=Xe(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{const a=fl(t[2],"()");if(a>-1){const m=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,m).trim(),t[3]=""}}let i=t[2],o="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);a&&(i=a[1],o=a[3])}else o=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),Pt(t,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(/\s+/g," ");if(i=t[i.toLowerCase()],!i){const o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return Pt(n,i,n[0],this.lexer)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrong.lDelim.exec(e);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;const o=i[1]||i[2]||"";if(!o||o&&(n===""||this.rules.inline.punctuation.exec(n))){const a=i[0].length-1;let r,m,u=a,c=0;const h=i[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+a);(i=h.exec(t))!=null;){if(r=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!r)continue;if(m=r.length,i[3]||i[4]){u+=m;continue}else if((i[5]||i[6])&&a%3&&!((a+m)%3)){c+=m;continue}if(u-=m,u>0)continue;m=Math.min(m,m+u+c);const f=e.slice(0,a+i.index+(i[0].length-r.length)+m);if(Math.min(a,m)%2){const w=f.slice(1,-1);return{type:"em",raw:f,text:w,tokens:this.lexer.inlineTokens(w)}}const p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const i=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return i&&o&&(n=n.substring(1,n.length-1)),n=X(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let i,o;return n[2]==="@"?(i=X(this.options.mangle?t(n[1]):n[1]),o="mailto:"+i):(i=X(n[1]),o=i),{type:"link",raw:n[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let i,o;if(n[2]==="@")i=X(this.options.mangle?t(n[0]):n[0]),o="mailto:"+i;else{let a;do a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(a!==n[0]);i=X(n[0]),n[1]==="www."?o="http://"+i:o=i}return{type:"link",raw:n[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let i;return this.lexer.state.inRawBlock?i=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):X(n[0]):n[0]:i=X(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}}}}const A={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Je,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};A._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;A._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;A.def=N(A.def).replace("label",A._label).replace("title",A._title).getRegex();A.bullet=/(?:[*+-]|\d{1,9}[.)])/;A.listItemStart=N(/^( *)(bull) */).replace("bull",A.bullet).getRegex();A.list=N(A.list).replace(/bull/g,A.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+A.def.source+")").getRegex();A._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";A._comment=/|$)/;A.html=N(A.html,"i").replace("comment",A._comment).replace("tag",A._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();A.paragraph=N(A._paragraph).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex();A.blockquote=N(A.blockquote).replace("paragraph",A.paragraph).getRegex();A.normal=ie({},A);A.gfm=ie({},A.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});A.gfm.table=N(A.gfm.table).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex();A.gfm.paragraph=N(A._paragraph).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",A.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex();A.pedantic=ie({},A.normal,{html:N(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",A._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Je,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:N(A.normal._paragraph).replace("hr",A.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",A.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const _={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Je,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Je,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~";_.punctuation=N(_.punctuation).replace(/punctuation/g,_._punctuation).getRegex();_.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;_.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;_._comment=N(A._comment).replace("(?:-->|$)","-->").getRegex();_.emStrong.lDelim=N(_.emStrong.lDelim).replace(/punct/g,_._punctuation).getRegex();_.emStrong.rDelimAst=N(_.emStrong.rDelimAst,"g").replace(/punct/g,_._punctuation).getRegex();_.emStrong.rDelimUnd=N(_.emStrong.rDelimUnd,"g").replace(/punct/g,_._punctuation).getRegex();_._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;_._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;_._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;_.autolink=N(_.autolink).replace("scheme",_._scheme).replace("email",_._email).getRegex();_._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;_.tag=N(_.tag).replace("comment",_._comment).replace("attribute",_._attribute).getRegex();_._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;_._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;_._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;_.link=N(_.link).replace("label",_._label).replace("href",_._href).replace("title",_._title).getRegex();_.reflink=N(_.reflink).replace("label",_._label).replace("ref",A._label).getRegex();_.nolink=N(_.nolink).replace("ref",A._label).getRegex();_.reflinkSearch=N(_.reflinkSearch,"g").replace("reflink",_.reflink).replace("nolink",_.nolink).getRegex();_.normal=ie({},_);_.pedantic=ie({},_.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:N(/^!?\[(label)\]\((.*?)\)/).replace("label",_._label).getRegex(),reflink:N(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_._label).getRegex()});_.gfm=ie({},_.normal,{escape:N(_.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class de{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||_e,this.options.tokenizer=this.options.tokenizer||new ct,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:A.normal,inline:_.normal};this.options.pedantic?(t.block=A.pedantic,t.inline=_.pedantic):this.options.gfm&&(t.block=A.gfm,this.options.breaks?t.inline=_.breaks:t.inline=_.gfm),this.tokenizer.rules=t}static get rules(){return{block:A,inline:_}}static lex(e,t){return new de(t).lex(e)}static lexInline(e,t){return new de(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,` +`),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(r,m,u)=>m+" ".repeat(u.length));let n,i,o,a;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>(n=r.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&t.length>0?t[t.length-1].raw+=` +`:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` +`+n.raw,i.text+=` +`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` +`+n.raw,i.text+=` +`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(o=e,this.options.extensions&&this.options.extensions.startBlock){let r=1/0;const m=e.slice(1);let u;this.options.extensions.startBlock.forEach(function(c){u=c.call({lexer:this},m),typeof u=="number"&&u>=0&&(r=Math.min(r,u))}),r<1/0&&r>=0&&(o=e.substring(0,r+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o))){i=t[t.length-1],a&&i.type==="paragraph"?(i.raw+=` +`+n.raw,i.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n),a=o.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&i.type==="text"?(i.raw+=` +`+n.raw,i.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(e){const r="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(r);break}else throw new Error(r)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,i,o,a=e,r,m,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)c.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,r.index)+"["+Rt("a",r[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,r.index)+"["+Rt("a",r[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(r=this.tokenizer.rules.inline.escapedEmSt.exec(a))!=null;)a=a.slice(0,r.index+r[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(m||(u=""),m=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(n=c.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),i=t[t.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,a,u)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e,jt)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,jt))){e=e.substring(n.raw.length),t.push(n);continue}if(o=e,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const h=e.slice(1);let f;this.options.extensions.startInline.forEach(function(p){f=p.call({lexer:this},h),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(o=e.substring(0,c+1))}if(n=this.tokenizer.inlineText(o,vl)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(u=n.raw.slice(-1)),m=!0,i=t[t.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(e){const c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return t}}class ut{constructor(e){this.options=e||_e}code(e,t,n){const i=(t||"").match(/\S*/)[0];if(this.options.highlight){const o=this.options.highlight(e,i);o!=null&&o!==e&&(n=!0,e=o)}return e=e.replace(/\n$/,"")+` +`,i?'
    '+(n?e:X(e,!0))+`
    +`:"
    "+(n?e:X(e,!0))+`
    +`}blockquote(e){return`
    +${e}
    +`}html(e){return e}heading(e,t,n,i){if(this.options.headerIds){const o=this.options.headerPrefix+i.slug(n);return`${e} +`}return`${e} +`}hr(){return this.options.xhtml?`
    +`:`
    +`}list(e,t,n){const i=t?"ol":"ul",o=t&&n!==1?' start="'+n+'"':"";return"<"+i+o+`> +`+e+" +`}listitem(e){return`
  • ${e}
  • +`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    +`}table(e,t){return t&&(t=`${t}`),` + +`+e+` +`+t+`
    +`}tablerow(e){return` +${e} +`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+` +`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,n){if(e=Lt(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let i='",i}image(e,t,n){if(e=Lt(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let i=`${n}":">",i}text(e){return e}}class Qt{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Yt{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do i++,n=e+"-"+i;while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class re{constructor(e){this.options=e||_e,this.options.renderer=this.options.renderer||new ut,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Qt,this.slugger=new Yt}static parse(e,t){return new re(t).parse(e)}static parseInline(e,t){return new re(t).parseInline(e)}parse(e,t=!0){let n="",i,o,a,r,m,u,c,h,f,p,w,C,y,g,x,E,S,z,R;const F=e.length;for(i=0;i0&&x.tokens[0].type==="paragraph"?(x.tokens[0].text=z+" "+x.tokens[0].text,x.tokens[0].tokens&&x.tokens[0].tokens.length>0&&x.tokens[0].tokens[0].type==="text"&&(x.tokens[0].tokens[0].text=z+" "+x.tokens[0].tokens[0].text)):x.tokens.unshift({type:"text",text:z}):g+=z),g+=this.parse(x.tokens,y),f+=this.renderer.listitem(g,S,E);n+=this.renderer.list(f,w,C);continue}case"html":{n+=this.renderer.html(p.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(p.tokens));continue}case"text":{for(f=p.tokens?this.parseInline(p.tokens):p.text;i+1"u"||l===null)throw new Error("marked(): input parameter is undefined or null");if(typeof l!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(l)+", string expected");if(typeof e=="function"&&(t=e,e=null),e=ie({},I.defaults,e||{}),Xt(e),t){const i=e.highlight;let o;try{o=de.lex(l,e)}catch(m){return t(m)}const a=function(m){let u;if(!m)try{e.walkTokens&&I.walkTokens(o,e.walkTokens),u=re.parse(o,e)}catch(c){m=c}return e.highlight=i,m?t(m):t(null,u)};if(!i||i.length<3||(delete e.highlight,!o.length))return a();let r=0;I.walkTokens(o,function(m){m.type==="code"&&(r++,setTimeout(()=>{i(m.text,m.lang,function(u,c){if(u)return a(u);c!=null&&c!==m.text&&(m.text=c,m.escaped=!0),r--,r===0&&a()})},0))}),r===0&&a();return}function n(i){if(i.message+=` +Please report this to https://github.com/markedjs/marked.`,e.silent)return"

    An error occurred:

    "+X(i.message+"",!0)+"
    ";throw i}try{const i=de.lex(l,e);if(e.walkTokens){if(e.async)return Promise.all(I.walkTokens(i,e.walkTokens)).then(()=>re.parse(i,e)).catch(n);I.walkTokens(i,e.walkTokens)}return re.parse(i,e)}catch(i){n(i)}}I.options=I.setOptions=function(l){return ie(I.defaults,l),ll(I.defaults),I};I.getDefaults=Kt;I.defaults=_e;I.use=function(...l){const e=I.defaults.extensions||{renderers:{},childTokens:{}};l.forEach(t=>{const n=ie({},t);if(n.async=I.defaults.async||n.async,t.extensions&&(t.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if(i.renderer){const o=e.renderers[i.name];o?e.renderers[i.name]=function(...a){let r=i.renderer.apply(this,a);return r===!1&&(r=o.apply(this,a)),r}:e.renderers[i.name]=i.renderer}if(i.tokenizer){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[i.level]?e[i.level].unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),n.extensions=e),t.renderer){const i=I.defaults.renderer||new ut;for(const o in t.renderer){const a=i[o];i[o]=(...r)=>{let m=t.renderer[o].apply(i,r);return m===!1&&(m=a.apply(i,r)),m}}n.renderer=i}if(t.tokenizer){const i=I.defaults.tokenizer||new ct;for(const o in t.tokenizer){const a=i[o];i[o]=(...r)=>{let m=t.tokenizer[o].apply(i,r);return m===!1&&(m=a.apply(i,r)),m}}n.tokenizer=i}if(t.walkTokens){const i=I.defaults.walkTokens;n.walkTokens=function(o){let a=[];return a.push(t.walkTokens.call(this,o)),i&&(a=a.concat(i.call(this,o))),a}}I.setOptions(n)})};I.walkTokens=function(l,e){let t=[];for(const n of l)switch(t=t.concat(e.call(I,n)),n.type){case"table":{for(const i of n.header)t=t.concat(I.walkTokens(i.tokens,e));for(const i of n.rows)for(const o of i)t=t.concat(I.walkTokens(o.tokens,e));break}case"list":{t=t.concat(I.walkTokens(n.items,e));break}default:I.defaults.extensions&&I.defaults.extensions.childTokens&&I.defaults.extensions.childTokens[n.type]?I.defaults.extensions.childTokens[n.type].forEach(function(i){t=t.concat(I.walkTokens(n[i],e))}):n.tokens&&(t=t.concat(I.walkTokens(n.tokens,e)))}return t};I.parseInline=function(l,e){if(typeof l>"u"||l===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof l!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(l)+", string expected");e=ie({},I.defaults,e||{}),Xt(e);try{const t=de.lexInline(l,e);return e.walkTokens&&I.walkTokens(t,e.walkTokens),re.parseInline(t,e)}catch(t){if(t.message+=` +Please report this to https://github.com/markedjs/marked.`,e.silent)return"

    An error occurred:

    "+X(t.message+"",!0)+"
    ";throw t}};I.Parser=re;I.parser=re.parse;I.Renderer=ut;I.TextRenderer=Qt;I.Lexer=de;I.lexer=de.lex;I.Tokenizer=ct;I.Slugger=Yt;I.parse=I;re.parse;de.lex;var bl=function(){var l=document.getSelection();if(!l.rangeCount)return function(){};for(var e=document.activeElement,t=[],n=0;n"u"){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=Ot[e.format]||Ot.default;window.clipboardData.setData(h,l)}else c.clipboardData.clearData(),c.clipboardData.setData(e.format,l);e.onCopy&&(c.preventDefault(),e.onCopy(c.clipboardData))}),document.body.appendChild(r),o.selectNodeContents(r),a.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");m=!0}catch(c){t&&console.error("unable to copy using execCommand: ",c),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",l),e.onCopy&&e.onCopy(window.clipboardData),m=!0}catch(h){t&&console.error("unable to copy using clipboardData: ",h),t&&console.error("falling back to prompt"),n=wl("message"in e?e.message:yl),window.prompt(n,l)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),r&&document.body.removeChild(r),i()}return m}var Ae=xl;/*! medium-zoom 1.0.8 | MIT License | https://github.com/francoischalifour/medium-zoom */var ve=Object.assign||function(l){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},n=window.Promise||function(T){function k(){}T(k,k)},i=function(T){var k=T.target;if(k===K){w();return}E.indexOf(k)!==-1&&C({target:k})},o=function(){if(!(z||!v.original)){var T=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(R-T)>F.scrollOffset&&setTimeout(w,150)}},a=function(T){var k=T.key||T.keyCode;(k==="Escape"||k==="Esc"||k===27)&&w()},r=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=T;if(T.background&&(K.style.background=T.background),T.container&&T.container instanceof Object&&(k.container=ve({},F.container,T.container)),T.template){var $=Qe(T.template)?T.template:document.querySelector(T.template);k.template=$}return F=ve({},F,k),E.forEach(function(D){D.dispatchEvent($e("medium-zoom:update",{detail:{zoom:O}}))}),O},m=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return l(ve({},F,T))},u=function(){for(var T=arguments.length,k=Array(T),$=0;$0?k.reduce(function(L,j){return[].concat(L,Bt(j))},[]):E;return D.forEach(function(L){L.classList.remove("medium-zoom-image"),L.dispatchEvent($e("medium-zoom:detach",{detail:{zoom:O}}))}),E=E.filter(function(L){return D.indexOf(L)===-1}),O},h=function(T,k){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return E.forEach(function(D){D.addEventListener("medium-zoom:"+T,k,$)}),S.push({type:"medium-zoom:"+T,listener:k,options:$}),O},f=function(T,k){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return E.forEach(function(D){D.removeEventListener("medium-zoom:"+T,k,$)}),S=S.filter(function(D){return!(D.type==="medium-zoom:"+T&&D.listener.toString()===k.toString())}),O},p=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=T.target,$=function(){var L={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},j=void 0,Y=void 0;if(F.container)if(F.container instanceof Object)L=ve({},L,F.container),j=L.width-L.left-L.right-F.margin*2,Y=L.height-L.top-L.bottom-F.margin*2;else{var ae=Qe(F.container)?F.container:document.querySelector(F.container),ee=ae.getBoundingClientRect(),be=ee.width,je=ee.height,Oe=ee.left,He=ee.top;L=ve({},L,{width:be,height:je,left:Oe,top:He})}j=j||L.width-F.margin*2,Y=Y||L.height-F.margin*2;var me=v.zoomedHd||v.original,Be=Ht(me)?j:me.naturalWidth||j,Me=Ht(me)?Y:me.naturalHeight||Y,fe=me.getBoundingClientRect(),Ne=fe.top,Ue=fe.left,ke=fe.width,ye=fe.height,qe=Math.min(Math.max(ke,Be),j)/ke,Ve=Math.min(Math.max(ye,Me),Y)/ye,we=Math.min(qe,Ve),Ke=(-Ue+(j-ke)/2+F.margin+L.left)/we,Ze=(-Ne+(Y-ye)/2+F.margin+L.top)/we,Ee="scale("+we+") translate3d("+Ke+"px, "+Ze+"px, 0)";v.zoomed.style.transform=Ee,v.zoomedHd&&(v.zoomedHd.style.transform=Ee)};return new n(function(D){if(k&&E.indexOf(k)===-1){D(O);return}var L=function be(){z=!1,v.zoomed.removeEventListener("transitionend",be),v.original.dispatchEvent($e("medium-zoom:opened",{detail:{zoom:O}})),D(O)};if(v.zoomed){D(O);return}if(k)v.original=k;else if(E.length>0){var j=E;v.original=j[0]}else{D(O);return}if(v.original.dispatchEvent($e("medium-zoom:open",{detail:{zoom:O}})),R=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,z=!0,v.zoomed=_l(v.original),document.body.appendChild(K),F.template){var Y=Qe(F.template)?F.template:document.querySelector(F.template);v.template=document.createElement("div"),v.template.appendChild(Y.content.cloneNode(!0)),document.body.appendChild(v.template)}if(v.original.parentElement&&v.original.parentElement.tagName==="PICTURE"&&v.original.currentSrc&&(v.zoomed.src=v.original.currentSrc),document.body.appendChild(v.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),v.original.classList.add("medium-zoom-image--hidden"),v.zoomed.classList.add("medium-zoom-image--opened"),v.zoomed.addEventListener("click",w),v.zoomed.addEventListener("transitionend",L),v.original.getAttribute("data-zoom-src")){v.zoomedHd=v.zoomed.cloneNode(),v.zoomedHd.removeAttribute("srcset"),v.zoomedHd.removeAttribute("sizes"),v.zoomedHd.removeAttribute("loading"),v.zoomedHd.src=v.zoomed.getAttribute("data-zoom-src"),v.zoomedHd.onerror=function(){clearInterval(ae),console.warn("Unable to reach the zoom image target "+v.zoomedHd.src),v.zoomedHd=null,$()};var ae=setInterval(function(){v.zoomedHd.complete&&(clearInterval(ae),v.zoomedHd.classList.add("medium-zoom-image--opened"),v.zoomedHd.addEventListener("click",w),document.body.appendChild(v.zoomedHd),$())},10)}else if(v.original.hasAttribute("srcset")){v.zoomedHd=v.zoomed.cloneNode(),v.zoomedHd.removeAttribute("sizes"),v.zoomedHd.removeAttribute("loading");var ee=v.zoomedHd.addEventListener("load",function(){v.zoomedHd.removeEventListener("load",ee),v.zoomedHd.classList.add("medium-zoom-image--opened"),v.zoomedHd.addEventListener("click",w),document.body.appendChild(v.zoomedHd),$()})}else $()})},w=function(){return new n(function(T){if(z||!v.original){T(O);return}var k=function $(){v.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(v.zoomed),v.zoomedHd&&document.body.removeChild(v.zoomedHd),document.body.removeChild(K),v.zoomed.classList.remove("medium-zoom-image--opened"),v.template&&document.body.removeChild(v.template),z=!1,v.zoomed.removeEventListener("transitionend",$),v.original.dispatchEvent($e("medium-zoom:closed",{detail:{zoom:O}})),v.original=null,v.zoomed=null,v.zoomedHd=null,v.template=null,T(O)};z=!0,document.body.classList.remove("medium-zoom--opened"),v.zoomed.style.transform="",v.zoomedHd&&(v.zoomedHd.style.transform=""),v.template&&(v.template.style.transition="opacity 150ms",v.template.style.opacity=0),v.original.dispatchEvent($e("medium-zoom:close",{detail:{zoom:O}})),v.zoomed.addEventListener("transitionend",k)})},C=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=T.target;return v.original?w():p({target:k})},y=function(){return F},g=function(){return E},x=function(){return v.original},E=[],S=[],z=!1,R=0,F=t,v={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(e)==="[object Object]"?F=e:(e||typeof e=="string")&&u(e),F=ve({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},F);var K=Cl(F.background);document.addEventListener("click",i),document.addEventListener("keyup",a),document.addEventListener("scroll",o),window.addEventListener("resize",w);var O={open:p,close:w,toggle:C,update:r,clone:m,attach:u,detach:c,on:h,off:f,getOptions:y,getImages:g,getZoomedImage:x};return O};function Sl(l,e){e===void 0&&(e={});var t=e.insertAt;if(!(!l||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",t==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=l:i.appendChild(document.createTextNode(l))}}var Tl=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";Sl(Tl);var zl=El;const Ie=l=>{const e=l.value,t=e.substring(0,l.selectionStart),n=e.substring(l.selectionEnd,e.length),i=t.lastIndexOf(` +`),o=t.substring(0,i+1),a=n.indexOf(` +`),r=n.substring(a===-1?n.length:a,n.length),m=t.substring(i+1,t.length),u=n.substring(0,a);return{prefixStr:t,subfixStr:n,prefixStrEndRow:o,subfixStrEndRow:r,prefixSupply:m,subfixSupply:u}},Il=(l,e="",t,n)=>{var i,o,a,r,m,u;let c="",h=0,f=0,p=!1,w,C;const y=(i=W.editorConfig)==null?void 0:i.mermaidTemplate;if(/^h[1-6]{1}$/.test(l)){const g=l.replace(/^h(\d)/,(x,E)=>new Array(Number(E)).fill("#",0,E).join(""));c=`${g} ${e}`,h=g.length+1}else if(l==="prettier"){const g=window.prettier||((a=(o=W.editorExtensions)==null?void 0:o.prettier)==null?void 0:a.prettierInstance),x=[((r=window.prettierPlugins)==null?void 0:r.markdown)||((u=(m=W.editorExtensions)==null?void 0:m.prettier)==null?void 0:u.parserMarkdownInstance)];return!g||x[0]===void 0?(b.emit(n.editorId,"errorCatcher",{name:"prettier",message:"prettier is undefined"}),t.value):g.format(t.value,{parser:"markdown",plugins:x})}else switch(l){case"bold":{c=`**${e}**`,h=2,f=-2;break}case"underline":{c=`${e}`,h=3,f=-4;break}case"italic":{c=`*${e}*`,h=1,f=-1;break}case"strikeThrough":{c=`~${e}~`,h=1,f=-1;break}case"sub":{c=`${e}`,h=5,f=-6;break}case"sup":{c=`${e}`,h=5,f=-6;break}case"codeRow":{c="`"+e+"`",h=1,f=-1;break}case"quote":{c=`> ${e}`,h=2;break}case"orderedList":{c=`1. ${e}`,h=3;break}case"unorderedList":{c=`- ${e}`,h=2;break}case"task":{c=`- [ ] ${e}`,h=6,p=!0;break}case"code":{const g=n.text||e||"",x=n.mode||"language";c=`\`\`\`${x} +${g} +\`\`\` +`,h=3,f=3+x.length-c.length,p=!0;break}case"table":{c="|";const{selectedShape:g={x:1,y:1}}=n,{x,y:E}=g;for(let S=0;S<=E;S++)c+=" col |";c+=` +|`;for(let S=0;S<=E;S++)c+=" - |";for(let S=0;S<=x;S++){c+=` +|`;for(let z=0;z<=E;z++)c+=" content |"}h=2,f=5-c.length,p=!0;break}case"link":{const{desc:g,url:x}=n;c=`[${g}](${x})`;break}case"image":{const{desc:g,url:x,urls:E}=n;E instanceof Array?c=E.reduce((S,z)=>S+`![${g}](${z}) +`,""):c=`![${g}](${x}) +`;break}case"tab":{const{tabWidth:g=2}=n,x=new Array(g).fill(" ").join("");if(e==="")c=x;else if(/\n/.test(e)){const{prefixStr:E,subfixStr:S,prefixSupply:z,subfixSupply:R}=Ie(t);c=`${z}${e}${R}`.split(` +`).map(K=>`${x}${K}`).join(` +`),w=E.substring(0,E.length-z.length),C=S.substring(R.length,S.length),p=!0,h=g,f=-z.length-R.length}else{const S=t.value.substring(0,t.selectionStart);/\n$/.test(S)||S===""?(c=`${x}${e}`,p=!0):c=x}break}case"shiftTab":{const{tabWidth:g=2}=n,{prefixStr:x,prefixStrEndRow:E,subfixStrEndRow:S,prefixSupply:z,subfixSupply:R}=Ie(t),F=new RegExp(`^\\s{${g}}`),v=(K=!1,O=!1)=>{const H=`${z}${e}${R}`;if(F.test(H)){const T=x.length-(O?0:g),k=K?T+e.length-g:T;return ce(t,T,k),`${E}${H.replace(F,"")}${S}`}else if(/^\s/.test(H)){const T=H.replace(/^\s/,""),k=H.length-T.length,$=t.selectionStart-(O?0:k),D=K?$+e.length-k:$;return ce(t,$,D),`${E}${T}${S}`}else c=e};if(e===""){const K=v();if(K)return K}else if(/\n/.test(e)){const O=`${z}${e}${R}`.split(` +`);let[H,T]=[0,0];const k=O.map(($,D)=>{if(F.test($))return D===0&&(H=g),T+=g,$.replace(F,"");if(/^\s/.test($)){const L=$.replace(/^\s/,"");return T+=$.length-L.length,L}return $}).join(` +`);return ce(t,t.selectionStart-H,t.selectionEnd-T),`${E}${k}${S}`}else{const K=v(!0,!0);if(K)return K}break}case"ctrlC":{const{prefixSupply:g,subfixSupply:x}=Ie(t);return Ae(e===""?`${g}${x}`:e),t.value}case"ctrlX":{const{prefixStrEndRow:g,subfixStrEndRow:x,prefixStr:E,subfixStr:S,prefixSupply:z,subfixSupply:R}=Ie(t);return e===""?(Ae(`${z}${R}`),ce(t,g.length),`${g}${x.replace(/^\n/,"")}`):(Ae(e),ce(t,E.length),`${E}${S}`)}case"ctrlD":{const{prefixStrEndRow:g,subfixStrEndRow:x}=Ie(t);return ce(t,g.length),`${g}${x.replace(/^\n/,"")}`}case"flow":{c=`\`\`\`mermaid +${(y==null?void 0:y.flow)||`flowchart TD + Start --> Stop`} +\`\`\` +`,h=2;break}case"sequence":{c=`\`\`\`mermaid +${(y==null?void 0:y.sequence)||`sequenceDiagram + A->>B: hello! + B-->>A: hi! + A-)B: bye!`} +\`\`\` +`,h=2;break}case"gantt":{c=`\`\`\`mermaid +${(y==null?void 0:y.gantt)||`gantt +title A Gantt Diagram +dateFormat YYYY-MM-DD +section Section +A task :a1, 2014-01-01, 30d +Another task :after a1, 20d`} +\`\`\` +`,h=2;break}case"class":{c=`\`\`\`mermaid +${(y==null?void 0:y.class)||`classDiagram + class Animal + Vehicle <|-- Car`} +\`\`\` +`,h=2;break}case"state":{c=`\`\`\`mermaid +${(y==null?void 0:y.state)||`stateDiagram-v2 + s1 --> s2`} +\`\`\` +`,h=2;break}case"pie":{c=`\`\`\`mermaid +${(y==null?void 0:y.pie)||`pie title Pets adopted by volunteers + "Dogs" : 386 + "Cats" : 85 + "Rats" : 15`} +\`\`\` +`,h=2;break}case"relationship":{c=`\`\`\`mermaid +${(y==null?void 0:y.relationship)||`erDiagram + CAR ||--o{ NAMED-DRIVER : allows + PERSON ||--o{ NAMED-DRIVER : is`} +\`\`\` +`,h=2;break}case"journey":{c=`\`\`\`mermaid +${(y==null?void 0:y.journey)||`journey + title My working day + section Go to work + Make tea: 5: Me + Go upstairs: 3: Me + Do work: 1: Me, Cat + section Go home + Go downstairs: 5: Me + Sit down: 5: Me`} +\`\`\` +`,h=2;break}case"katexInline":{c="$$",h=1,f=-1;break}case"katexBlock":{c=`$$ + +$$ +`,h=1,f=-4;break}case"universal":{const{generate:g}=n,x=g(e);c=x.targetValue,p=x.select,h=x.deviationStart,f=x.deviationEnd}}return lt(t,c,{deviationStart:h,deviationEnd:f,select:p,prefixVal:w,subfixVal:C})};var Mt={block(l,e){return{name:"KaTexBlockExtension",level:"block",start:t=>{var n;return(n=t.match(/\n\$\$\n/))==null?void 0:n.index},tokenizer(t){if(/^\$\$\n/.test(t)&&t.split("$$").length>2){const n=_t(t,"$$");return{type:"KaTexBlockExtension",raw:n[0],text:n[1].trim(),tokens:[]}}},renderer(t){const n=e||typeof window<"u"&&window.katex;if(n){const i=n.renderToString(t.text,{throwOnError:!1,displayMode:!0});return`

    ${i}

    `}else return`

    ${t.text}

    `}}},inline(l,e){return{name:"KaTexInlineExtension",level:"inline",start:t=>{var n;return(n=t.match(/\$[^\n]*/))==null?void 0:n.index},tokenizer(t){if(/^\$[^\n]*\$/.test(t)){const n=_t(t);return{type:"KaTexInlineExtension",raw:n[0],text:n[1].trim(),tokens:[]}}},renderer(t){const n=e||typeof window<"u"&&window.katex;if(n){const i=n.renderToString(t.text,{throwOnError:!1});return`${i}`}else return`${t.text}`}}}};const Jt=["abstract","attention","bug","caution","danger","error","example","failure","hint","info","note","question","quote","success","tip","warning"],nt=new RegExp(`^!!!\\s+(${Jt.join("|")})\\s+(.*)$`),Al=/^!!!\s*$/,Fl={name:"alert",level:"block",start(l){var e;return(e=l.match(new RegExp(`(^|[\\r\\n])!!!\\s+(${Jt.join("|")})\\s+(.*)`)))==null?void 0:e.index},tokenizer(l){const e=l.split(/\n/);if(nt.test(e[0])){const t={x:-1,y:-1},n=[];for(let i=0,o=e.length;i=0&&(n.push(Q({},t)),t.x=-1,t.y=-1));if(n.length){const i=n[0],[o,a,r]=nt.exec(e[i.x])||[],m=e.slice(i.x+1,i.y).join(` +`),c={type:"alert",raw:e.slice(i.x,i.y+1).join(` +`),icon:a,title:r,text:m,titleTokens:[],tokens:[],childTokens:["title","text"]};return this.lexer.inlineTokens(c.title,c.titleTokens),this.lexer.blockTokens(c.text,c.tokens),c}}},renderer(l){return`
    +

    ${this.parser.parseInline(l.titleTokens,null)}

    + ${this.parser.parse(l.tokens)} +
    `}},Ll=(l,e,t)=>{var n,i;const o=P("previewOnly"),a=P("historyLength"),r=P("editorId");if(o)return;let m=-1;const u={list:[{content:l.value,startPos:((n=e.value)==null?void 0:n.selectionStart)||0,endPos:((i=e.value)==null?void 0:i.selectionEnd)||0}],userUpdated:!0,curr:0},c=[0,0];let h=c;const f=C=>{var y,g;const x=((y=e.value)==null?void 0:y.selectionStart)||0,E=((g=e.value)==null?void 0:g.selectionEnd)||0;u.list[u.curr].startPos=x,u.list[u.curr].endPos=E,u.userUpdated=!1,u.curr=C;const S=u.list[u.curr];h=[S.startPos,S.endPos],l.onChange(S.content),ce(e.value,S.startPos,S.endPos).then(()=>{b.emit(r,"selectTextChange")})},p=C=>{var y,g;clearTimeout(m);const x=((y=e.value)==null?void 0:y.selectionStart)||0,E=((g=e.value)==null?void 0:g.selectionEnd)||0;m=setTimeout(()=>{if(u.userUpdated){u.curra&&u.list.shift();const S=u.list.pop()||{startPos:0,endPos:0,content:C};S.startPos=h[0],S.endPos=h[1],h=c,Array.prototype.push.call(u.list,S,{content:C,startPos:x,endPos:E}),u.curr=u.list.length-1}else u.userUpdated=!0},150)},w=C=>{var y,g;(h===c||C)&&(h=[(y=e.value)==null?void 0:y.selectionStart,(g=e.value)==null?void 0:g.selectionEnd])};M([Fe(l,"value"),t],()=>{t.value&&p(l.value)}),M(()=>l.value,()=>{b.emit(r,"selectTextChange")},{flush:"post"}),Z(()=>{b.on(r,{name:"ctrlZ",callback(){f(u.curr-1<0?0:u.curr-1)}}),b.on(r,{name:"ctrlShiftZ",callback(){f(u.curr+1===u.list.length?u.curr:u.curr+1)}}),b.on(r,{name:"saveHistoryPos",callback:w})})},Dl=(l,e)=>{var t,n,i;const{markedRenderer:o,markedExtensions:a,markedOptions:r,editorExtensions:m,editorConfig:u}=W,c=P("showCodeRowNumber"),h=P("editorId"),f=P("highlight"),p=P("previewOnly"),w=(t=m==null?void 0:m.highlight)==null?void 0:t.instance,C=(n=m==null?void 0:m.mermaid)==null?void 0:n.instance,y=(i=m==null?void 0:m.katex)==null?void 0:i.instance,g=m==null?void 0:m.katex,x=V(!1),E=V(!1),S=V([]);let z=new I.Renderer;I.use({extensions:[Fl]});const R=z.code;z.code=(k,$,D)=>{if(!l.noMermaid&&$==="mermaid"){const L=`${d}-mermaid-${Date.now().toString(36)}`;try{let j;return C?j=C.render(L,k):typeof window<"u"&&window.mermaid?j=window.mermaid.render(L,k):j=`

    ${k}

    `,`

    ${j}

    `}catch(j){return`

    Error: ${(j==null?void 0:j.message)||""}

    `}}return R.call(z,k,$,D)},z.image=(k,$,D)=>`${D||${D||""}`,z.listitem=(k,$)=>$?`
  • ${k}
  • `:`
  • ${k}
  • `;const F=z.heading;o instanceof Function&&(z=o(z));const v=z.heading,K=F!==v;z.heading=(k,$,D,L)=>{if(S.value.push({text:D,level:$}),K)return v.call(z,k,$,D,L,S.value.length);const j=l.markedHeadingId(D,$,S.value.length);return k!==D?`${k}`:`
    ${D}`},I.setOptions(Q({breaks:!0},r)),l.noKatex||I.use({extensions:[Mt.inline(d,y),Mt.block(d,y)]}),w&&I.setOptions({highlight:(k,$)=>{let D;const L=w.getLanguage($);return $&&L?D=w.highlight(k,{language:$,ignoreIllegals:!0}).value:D=w.highlightAuto(k).value,c?Ct(D):`${D}`}}),a instanceof Array&&a.length>0&&I.use({extensions:a});const O=V(l.sanitize(I(l.value||"",{renderer:z}))),H=tt(()=>{S.value=[];const k=l.sanitize(I(l.value||"",{renderer:z}));O.value=k,b.emit(h,"buildFinished",k),l.onHtmlChanged(k)},(u==null?void 0:u.renderDelay)!==void 0?u==null?void 0:u.renderDelay:p?0:500);M([x,Fe(e,"reRender"),Fe(e,"mermaidInited"),E,Fe(l,"value")],H);const T=()=>{I.setOptions({highlight:(k,$)=>{let D;const L=window.hljs.getLanguage($);return $&&L?D=window.hljs.highlight(k,{language:$,ignoreIllegals:!0}).value:D=window.hljs.highlightAuto(k).value,c?Ct(D):`${D}`}}),x.value=!0};return M(()=>S.value,k=>{l.onGetCatalog(k),b.emit(h,"catalogChanged",k)}),Z(()=>{if(!l.noKatex&&!y){const k=document.createElement("script");k.src=(g==null?void 0:g.js)||wt.js,k.onload=()=>{E.value=!0},k.id=`${d}-katex`;const $=document.createElement("link");$.rel="stylesheet",$.href=(g==null?void 0:g.css)||wt.css,$.id=`${d}-katexCss`,te(k,"katex"),te($)}if(!w){const k=document.createElement("link");k.rel="stylesheet",k.href=f.value.css,k.id=`${d}-hlCss`;const $=document.createElement("script");$.src=f.value.js,$.onload=T,$.id=`${d}-hljs`,te(k),te($,"hljs")}}),M(()=>f.value.css,k=>{Pn(`${d}-hlCss`,"href",k)}),Z(()=>{b.on(h,{name:"pushCatalog",callback(){b.emit(h,"catalogChanged",S.value)}})}),{html:O}},Rl=(l,e,t,n,i)=>{const o=P("previewOnly"),a=P("usedLanguageText"),r=P("editorId");let m=()=>{},u=()=>{};const c=()=>{document.querySelectorAll(`#${r}-preview pre`).forEach(p=>{var w,C;(w=p.querySelector(".copy-button"))==null||w.remove();const y=((C=a.value.copyCode)==null?void 0:C.text)||"复制代码",g=document.createElement("span");g.setAttribute("class","copy-button"),g.innerText=y,g.addEventListener("click",()=>{var x,E;const S=p.querySelector("code").innerText,z=Ae(l.formatCopiedText(S)),R=((x=a.value.copyCode)==null?void 0:x.successTips)||"已复制!",F=((E=a.value.copyCode)==null?void 0:E.failTips)||"已复制!";g.innerText=z?R:F,setTimeout(()=>{g.innerText=y},1500)}),p.appendChild(g)})},h=()=>{De(()=>{l.setting.preview&&!o&&l.scrollAuto&&(m(),u()),c()})},f=p=>{p&&!o&&De(()=>{m(),[u,m]=$t(t.value,n.value||i.value),u()})};M(()=>e.value,h),M(()=>a.value,c),M(()=>l.setting.preview,f),M(()=>l.setting.htmlPreview,f),M(()=>l.scrollAuto,p=>{p?u():m()}),Z(()=>{c(),!o&&(n.value||i.value)&&([u,m]=$t(t.value,n.value||i.value)),l.scrollAuto&&u()})},Pl=(l,e)=>{const t=P("previewOnly"),n=P("tabWidth"),i=P("editorId"),o=V("");Z(()=>{var a;t||((a=e.value)==null||a.addEventListener("keypress",r=>{var m,u,c;if(r.key==="Enter"){const h=(m=e.value)==null?void 0:m.selectionStart,f=(u=e.value)==null?void 0:u.value.substring(0,h),p=(c=e.value)==null?void 0:c.value.substring(h),w=f==null?void 0:f.lastIndexOf(` +`),C=f==null?void 0:f.substring(w+1,h);if(/^\d+\.\s|^-\s/.test(C))if(r.cancelBubble=!0,r.preventDefault(),r.stopPropagation(),/^(\d+\.|-)\s+(\[[x\s]\]\s+)?$/.test(C)){const y=f==null?void 0:f.replace(/(\d+\.|-)\s+(\[[x\s]\]\s+)?$/,"");l.onChange(y+p),ce(e.value,y==null?void 0:y.length)}else if(/^-\s+.+/.test(C)){const y=/^-\s+\[[x\s]\]/.test(C)?` +- [ ] `:` +- `;l.onChange(lt(e.value,y,{}))}else{const y=C==null?void 0:C.match(/\d+(?=\.)/),g=y&&Number(y[0])+1||1,x=/^\d\.\s+\[[x\s]\]/.test(C)?` +${g}. [ ] `:` +${g}. `;l.onChange(lt(e.value,x,{}))}}}),b.on(i,{name:"replace",callback(r,m={}){l.onChange(Il(r,o.value,e.value,Le(Q({},m),{tabWidth:n,editorId:i})))}}))}),M(()=>l.value,()=>{o.value=""}),b.on(i,{name:"selectTextChange",callback(){o.value=Ln(e.value)}})},jl=l=>{const e=P("theme"),{editorExtensions:t}=W,n=t==null?void 0:t.mermaid,i=J({reRender:!1,mermaidInited:!!(n!=null&&n.instance)}),o=()=>{l.noMermaid||(n!=null&&n.instance?n.instance.initialize({theme:e.value==="dark"?"dark":"default"}):window.mermaid&&window.mermaid.initialize({theme:e.value==="dark"?"dark":"default"}),i.reRender=!i.reRender)};M(()=>e.value,o);let a;return Z(()=>{!l.noMermaid&&!(n!=null&&n.instance)?(a=document.createElement("script"),a.src=(n==null?void 0:n.js)||Sn,a.onload=()=>{window.mermaid.initialize({theme:e.value==="dark"?"dark":"default",logLevel:"Fatal"}),i.mermaidInited=!0},a.id=`${d}-mermaid`,te(a,"mermaid")):l.noMermaid||o()}),i},Ol=(l,e)=>{const t=P("editorId"),n=P("previewOnly"),i=o=>{if(o.clipboardData){if(o.clipboardData.files.length>0){const{files:a}=o.clipboardData;b.emit(t,"uploadImage",Array.from(a).filter(r=>/image\/.*/.test(r.type))),o.preventDefault()}if(l.autoDetectCode&&o.clipboardData.types.includes("vscode-editor-data")){const a=JSON.parse(o.clipboardData.getData("vscode-editor-data"));b.emit(t,"replace","code",{mode:a.mode,text:o.clipboardData.getData("text/plain")}),o.preventDefault()}}};Z(()=>{n||e.value.addEventListener("paste",i)}),Re(()=>{n||e.value.removeEventListener("paste",i)})},Hl=(l,e)=>{const t=P("editorId"),n=tt(()=>{const i=document.querySelectorAll(`#${t}-preview img[zoom]`);i.length!==0&&zl(i,{background:"#00000073"})});Z(n),M([e,Fe(l.setting,"preview")],n)},Bl=l=>{const e=P("editorId");b.on(e,{name:Vt,callback(){var t;(t=l.value)==null||t.focus()}})},Ml=()=>({value:{type:String,default:""},onChange:{type:Function,default:()=>()=>{}},setting:{type:Object,default:()=>({})},onHtmlChanged:{type:Function,default:()=>()=>{}},onGetCatalog:{type:Function,default:()=>()=>{}},markedHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:l=>l},placeholder:{type:String,default:""},noKatex:{type:Boolean,default:!1},scrollAuto:{type:Boolean},formatCopiedText:{type:Function,default:l=>l},autofocus:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},maxlength:{type:Number},autoDetectCode:{type:Boolean}});var Nl=G({name:"MDEditorContent",props:Ml(),setup(l){const e=V(!0),t=P("previewOnly"),n=P("showCodeRowNumber"),i=P("previewTheme"),o=P("editorId"),a=V(),r=V(),m=V(),u=jl(l),{html:c}=Dl(l,u);return Rl(l,c,a,r,m),Pl(l,a),Ll(l,a,e),Ol(l,a),Hl(l,c),Bl(a),()=>{const h=Rn(l,["formatCopiedText","markedHeadingId","noKatex","noMermaid","onChange","onGetCatalog","onHtmlChanged","sanitize","scrollAuto","setting","autoDetectCode"]);return s(Pe,null,[s("div",{class:`${d}-content`},[!t&&s("div",{class:`${d}-input-wrapper`},[s("textarea",nn(h,{id:`${o}-textarea`,ref:a,onBlur:()=>{b.emit(o,"selectTextChange")},onKeydown:()=>{b.emit(o,"saveHistoryPos",!0)},onCompositionstart:()=>{e.value=!1},onInput:f=>{l.onChange(f.target.value)},onCompositionend:()=>{e.value=!0},class:[l.setting.preview||l.setting.htmlPreview?"":"textarea-only"]}),null)]),l.setting.preview&&s("div",{id:`${o}-preview-wrapper`,class:`${d}-preview-wrapper`,ref:r,key:"content-preview-wrapper"},[s("article",{id:`${o}-preview`,class:[`${d}-preview`,`${i==null?void 0:i.value}-theme`,n&&`${d}-scrn`],innerHTML:c.value},null)]),l.setting.htmlPreview&&s("div",{class:`${d}-preview-wrapper`,ref:m,key:"html-preview-wrapper"},[s("div",{class:`${d}-html`},[c.value])])])])}}}),Ul=G({props:{modelValue:{type:String,default:""}},setup(l){const e=P("usedLanguageText");return()=>{var t,n;return s("div",{class:`${d}-footer-item`},[s("label",{class:`${d}-footer-label`},[`${(t=e.value.footer)==null?void 0:t.markdownTotal}:`]),s("span",null,[((n=l.modelValue)==null?void 0:n.length)||0])])}}});const ql=()=>({checked:{type:Boolean,default:!1},onChange:{type:Function,default:()=>()=>{}}});var Vl=G({props:ql(),setup(l){return()=>s("div",{class:[`${d}-checkbox`,l.checked&&`${d}-checkbox-checked`],onClick:()=>{l.onChange(!l.checked)}},null)}});const Kl=()=>({scrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>()=>{}}});var Zl=G({props:Kl(),setup(l){const e=P("usedLanguageText");return()=>{var t;return s("div",{class:`${d}-footer-item`},[s("label",{class:`${d}-footer-label`,onClick:()=>{l.onScrollAutoChange(!l.scrollAuto)}},[(t=e.value.footer)==null?void 0:t.scrollAuto]),s(Vl,{checked:l.scrollAuto,onChange:l.onScrollAutoChange},null)])}}});const Gl=()=>({modelValue:{type:String,default:""},footers:{type:Array,default:[]},scrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>()=>{}},defFooters:{type:Object}});var Wl=G({name:"MDEditorFooter",props:Gl(),setup(l){const e=ne(()=>{const n=l.footers.indexOf("="),i=n===-1?l.footers:l.footers.slice(0,n),o=n===-1?[]:l.footers.slice(n,Number.MAX_SAFE_INTEGER);return[i,o]}),t=n=>{if(Ut.includes(n))switch(n){case"markdownTotal":return s(Ul,{modelValue:l.modelValue},null);case"scrollSwitch":return s(Zl,{scrollAuto:l.scrollAuto,onScrollAutoChange:l.onScrollAutoChange},null)}else return l.defFooters instanceof Array?l.defFooters[n]||"":l.defFooters&&l.defFooters.children instanceof Array&&l.defFooters.children[n]||""};return()=>{const n=e.value[0].map(o=>t(o)),i=e.value[1].map(o=>t(o));return s("div",{class:`${d}-footer`},[s("div",{class:`${d}-footer-left`},[n]),s("div",{class:`${d}-footer-right`},[i])])}}});const Xl=()=>({tocItem:{type:Object,default:()=>({})},markedHeadingId:{type:Function,default:()=>()=>{}},scrollElement:{type:[String,Object],default:""},onClick:{type:Function,default:()=>()=>{}},scrollElementOffsetTop:{type:Number,default:0}}),en=G({props:Xl(),setup(l){return()=>{const{tocItem:e,markedHeadingId:t,scrollElement:n,onClick:i,scrollElementOffsetTop:o}=l;return s("div",{class:[`${d}-catalog-link`,e.active&&`${d}-catalog-active`],onClick:a=>{i(a,e),a.stopPropagation();const r=t(e.text,e.level,e.index),m=document.getElementById(r),u=n instanceof Element?n:document.querySelector(n);if(m&&u){let c=m.offsetParent,h=m.offsetTop;if(u.contains(c))for(;c&&u!=c;)h+=c==null?void 0:c.offsetTop,c=c==null?void 0:c.offsetParent;u==null||u.scrollTo({top:h-o,behavior:"smooth"})}}},[s("span",{title:e.text},[e.text]),s("div",{class:`${d}-catalog-wrapper`},[e.children&&e.children.map(a=>s(en,{markedHeadingId:t,key:`${e.text}-link-${a.level}-${a.text}`,tocItem:a,scrollElement:n,onClick:i,scrollElementOffsetTop:o},null))])])}}}),Ql=()=>({editorId:{type:String},class:{type:String,default:""},markedHeadingId:{type:Function,default:l=>l},scrollElement:{type:[String,Object]},theme:{type:String,default:"light"},offsetTop:{type:Number,default:20},scrollElementOffsetTop:{type:Number,default:0}}),et=G({name:"MdCatalog",props:Ql(),emits:["onClick"],setup(l,e){const t=l.editorId,n=J({list:[],show:!1,scrollElement:l.scrollElement||`#${t}-preview-wrapper`}),i=ne(()=>{const o=[];return n.list.forEach(({text:a,level:r,active:m},u)=>{const c={level:r,text:a,index:u+1,active:!!m};if(o.length===0)o.push(c);else{let h=o[o.length-1];if(c.level>h.level)for(let f=h.level+1;f<=6;f++){const{children:p}=h;if(!p){h.children=[c];break}if(h=p[p.length-1],c.level<=h.level){p.push(c);break}}else o.push(c)}}),o});return Z(()=>{b.on(t,{name:"catalogChanged",callback:o=>{n.list=o.map((a,r)=>r===0?Le(Q({},a),{active:!0}):Q({},a))}}),b.emit(t,"pushCatalog")}),Z(()=>{var o;const a=n.scrollElement instanceof HTMLElement?n.scrollElement:document.querySelector(n.scrollElement);(o=a===document.documentElement?window:a)==null||o.addEventListener("scroll",Fn(()=>{if(n.list.length===0)return!1;const{activeHead:r}=n.list.reduce((m,u,c)=>{const h=document.getElementById(l.markedHeadingId(u.text,u.level,c+1));if(h instanceof HTMLElement){const f=Dn(h,a);if(fm.minTop)return{activeHead:u,minTop:f}}return m},{activeHead:n.list[0],minTop:Number.MIN_SAFE_INTEGER});n.list=n.list.map(m=>m===r?Le(Q({},m),{active:!0}):Le(Q({},m),{active:!1}))}))}),()=>s("div",{class:`${d}-catalog${l.theme==="dark"?"-dark":""} ${l.class}`},[i.value.map(o=>s(en,{markedHeadingId:l.markedHeadingId,tocItem:o,key:`link-${o.level}-${o.text}`,scrollElement:n.scrollElement,onClick:(a,r)=>{e.emit("onClick",a,r)},scrollElementOffsetTop:l.scrollElementOffsetTop},null))])}}),Yl=()=>({modelValue:{type:String,default:""},theme:{type:String,default:"light"},class:{type:String,default:""},historyLength:{type:Number,default:10},onChange:{type:Function},onSave:{type:Function},onUploadImg:{type:Function},pageFullscreen:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},htmlPreview:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},language:{type:String,default:"zh-CN"},toolbars:{type:Array,default:Nt},toolbarsExclude:{type:Array,default:[]},noPrettier:{type:Boolean,default:!1},onHtmlChanged:{type:Function},onGetCatalog:{type:Function},editorId:{type:String,default:$n},tabWidth:{type:Number,default:2},showCodeRowNumber:{type:Boolean,default:!1},previewTheme:{type:String,default:"default"},style:{type:Object,default:()=>({})},markedHeadingId:{type:Function,default:Jl},tableShape:{type:Array,default:()=>[6,4]},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:l=>l},placeholder:{type:String,default:""},noKatex:{type:Boolean,default:!1},defToolbars:{type:[String,Object]},onError:{type:Function},codeTheme:{type:String,default:"atom"},footers:{type:Array,default:Ut},scrollAuto:{type:Boolean,default:!0},defFooters:{type:[String,Object]},noIconfont:{type:Boolean},formatCopiedText:{type:Function,default:l=>l},noUploadImg:{type:Boolean},codeStyleReverse:{type:Boolean,default:!0},codeStyleReverseList:{type:Array,default:["default","mk-cute"]},autoFocus:{type:Boolean},disabled:{type:Boolean},readOnly:{type:Boolean},maxLength:{type:Number},autoDetectCode:{type:Boolean}}),Jl=l=>l,ue=G({name:"MdEditorV3",props:Yl(),emits:["onChange","onSave","onUploadImg","onHtmlChanged","onGetCatalog","onError","update:modelValue"],setup(l,e){const{editorId:t,previewOnly:n,noKatex:i,noMermaid:o,noPrettier:a,noUploadImg:r}=l,m=J({scrollAuto:l.scrollAuto});jn(l,e),On(l),Hn(l);const[u,c]=Bn(l,e),[h,f]=Mn(l);return Re(()=>{b.clear(t)}),Nn(l,e,h,u,c),()=>{var p;const w=le({props:l,ctx:e},"defToolbars"),C=le({props:l,ctx:e},"defFooters");return s("div",{id:t,class:[d,l.class,l.theme==="dark"&&`${d}-dark`,u.fullscreen||u.pageFullscreen?`${d}-fullscreen`:"",n&&`${d}-previewOnly`],style:l.style},[!n&&s(nl,{noPrettier:a,toolbars:l.toolbars,toolbarsExclude:l.toolbarsExclude,setting:u,updateSetting:c,tableShape:l.tableShape,defToolbars:w,noUploadImg:r},null),s(Nl,{value:l.modelValue,onChange:y=>{b.emit(t,"saveHistoryPos"),l.onChange?l.onChange(y):(e.emit("update:modelValue",y),e.emit("onChange",y))},setting:u,onHtmlChanged:y=>{l.onHtmlChanged?l.onHtmlChanged(y):e.emit("onHtmlChanged",y)},onGetCatalog:y=>{l.onGetCatalog?l.onGetCatalog(y):e.emit("onGetCatalog",y)},markedHeadingId:l.markedHeadingId,noMermaid:o,sanitize:l.sanitize,placeholder:l.placeholder,noKatex:i,scrollAuto:m.scrollAuto,formatCopiedText:l.formatCopiedText,autofocus:l.autoFocus,disabled:l.disabled,readonly:l.readOnly,maxlength:l.maxLength,autoDetectCode:l.autoDetectCode},null),!n&&((p=l.footers)==null?void 0:p.length)>0&&s(Wl,{modelValue:l.modelValue,footers:l.footers,defFooters:C,scrollAuto:m.scrollAuto,onScrollAutoChange:y=>m.scrollAuto=y},null),f.value&&!n&&s(et,{theme:l.theme,style:{display:h.value?"block":"none"},class:`${d}-catalog-editor`,editorId:t,markedHeadingId:l.markedHeadingId},null)])}}}),ei=()=>({title:{type:String,default:""},trigger:{type:[String,Object]},onClick:{type:Function}});var it=G({name:"NormalToolbar",props:ei(),emits:["onClick"],setup(l,e){return()=>{const t=le({props:l,ctx:e},"trigger");return s("div",{class:`${d}-toolbar-item`,title:l.title,onClick:n=>{l.onClick instanceof Function?l.onClick(n):e.emit("onClick",n)}},[t])}}});const ti=()=>({title:{type:String,default:""},visible:{type:Boolean},trigger:{type:[String,Object]},onChange:{type:Function},overlay:{type:[String,Object]}});var ot=G({name:"DropdownToolbar",props:ti(),emits:["onChange"],setup(l,e){const t=P("editorId");return()=>{const n=le({props:l,ctx:e},"trigger"),i=le({props:l,ctx:e},"overlay");return s(Ce,{relative:`#${t}-toolbar-wrapper`,visible:l.visible,onChange:o=>{l.onChange instanceof Function?l.onChange(o):e.emit("onChange",o)},overlay:i},{default:()=>[s("div",{class:`${d}-toolbar-item`,title:l.title||""},[n])]})}}});function ni(l){return typeof l=="function"||Object.prototype.toString.call(l)==="[object Object]"&&!ln(l)}const li=()=>({title:{type:String,default:""},modalTitle:{type:String,default:""},visible:{type:Boolean},width:{type:String,default:"auto"},height:{type:String,default:"auto"},trigger:{type:[String,Object]},onClick:{type:Function},onClose:{type:Function},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function}});var rt=G({name:"ModalToolbar",props:li(),emits:["onClick","onClose","onAdjust"],setup(l,e){return()=>{const t=le({props:l,ctx:e},"trigger"),n=le({props:l,ctx:e},"default");return s(Pe,null,[s("div",{class:`${d}-toolbar-item`,title:l.title,onClick:()=>{l.onClick instanceof Function?l.onClick():e.emit("onClick")}},[t]),s(st,{width:l.width,height:l.height,title:l.modalTitle,visible:l.visible,onClose:()=>{l.onClose instanceof Function?l.onClose():e.emit("onClose")},showAdjust:l.showAdjust,isFullscreen:l.isFullscreen,onAdjust:i=>{l.onAdjust instanceof Function?l.onAdjust(i):e.emit("onAdjust",i)}},ni(n)?n:{default:()=>[n]})])}}});ue.install=l=>(l.component(ue.name,ue),l.component(it.name,it),l.component(ot.name,ot),l.component(et.name,et),l.component(rt.name,rt),l);ue.NormalToolbar=it;ue.DropdownToolbar=ot;ue.MdCatalog=et;ue.ModalToolbar=rt;ue.config=Tn;const ii=G({name:"Welcome",__name:"index",setup(l){const e=V(),t=V(!0),{version:n}={dependencies:{"@amap/amap-jsapi-loader":"^1.0.1","@howdyjs/mouse-menu":"^2.0.7","@logicflow/core":"^1.2.5","@logicflow/extension":"^1.2.5","@pureadmin/descriptions":"^1.1.1","@pureadmin/table":"^2.1.0","@pureadmin/utils":"^1.8.9","@vueuse/core":"^10.1.2","@vueuse/motion":"2.0.0-beta.12","@wangeditor/editor":"^5.1.21","@wangeditor/editor-for-vue":"^5.1.12","animate.css":"^4.1.1",axios:"^1.4.0","china-area-data":"^5.0.1",cropperjs:"^1.5.13",dayjs:"^1.11.7",echarts:"^5.4.2","el-table-infinite-scroll":"^3.0.1","element-plus":"^2.3.4","element-resize-detector":"^1.2.4","intro.js":"^7.0.1","js-cookie":"^3.0.5",jsbarcode:"^3.11.5","md-editor-v3":"2.7.2",mitt:"^3.0.0",mockjs:"^1.1.0",nprogress:"^0.2.0",path:"^0.12.7",pinia:"^2.0.36",qrcode:"^1.5.3",qs:"^6.11.1","responsive-storage":"^2.2.0",sortablejs:"^1.15.0",swiper:"^9.3.0",typeit:"^8.7.1","v-contextmenu":"3.0.0",vue:"^3.3.1","vue-i18n":"^9.2.2","vue-json-pretty":"^2.2.4","vue-pdf-embed":"^1.1.6","vue-router":"^4.1.6","vue-types":"^5.0.2","vue-virtual-scroller":"2.0.0-beta.7","vue3-danmaku":"1.4.0-beta.1",vuedraggable:"^4.1.0",xgplayer:"^3.0.2",xlsx:"^0.18.5"},devDependencies:{"@commitlint/cli":"^17.6.3","@commitlint/config-conventional":"^17.6.3","@iconify-icons/ep":"^1.2.11","@iconify-icons/ri":"^1.2.7","@iconify/vue":"^4.1.1","@intlify/unplugin-vue-i18n":"^0.10.0","@pureadmin/theme":"^3.0.0","@types/element-resize-detector":"1.1.3","@types/intro.js":"^5.1.1","@types/js-cookie":"^3.0.3","@types/mockjs":"^1.0.7","@types/node":"^18.15.12","@types/nprogress":"0.2.0","@types/qrcode":"^1.5.0","@types/qs":"^6.9.7","@types/sortablejs":"^1.15.1","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","@vitejs/plugin-vue":"^4.2.2","@vitejs/plugin-vue-jsx":"^3.0.1","@vue/eslint-config-prettier":"^7.1.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.14",cloc:"^2.11.0",cssnano:"^6.0.1",eslint:"^8.40.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^9.12.0",husky:"^8.0.3","lint-staged":"^13.2.2",picocolors:"^1.0.0",postcss:"^8.4.23","postcss-html":"^1.5.0","postcss-import":"^15.1.0","postcss-scss":"^4.0.6",prettier:"^2.8.7","pretty-quick":"3.1.1",rimraf:"^5.0.0","rollup-plugin-visualizer":"^5.9.0",sass:"^1.62.1","sass-loader":"^13.2.2",stylelint:"^15.6.1","stylelint-config-html":"^1.1.0","stylelint-config-recess-order":"^4.0.0","stylelint-config-recommended":"^12.0.0","stylelint-config-recommended-scss":"^11.0.0","stylelint-config-recommended-vue":"^1.4.0","stylelint-config-standard":"^33.0.0","stylelint-config-standard-scss":"^9.0.0","stylelint-order":"^6.0.3","stylelint-prettier":"^3.0.0","stylelint-scss":"^5.0.0",svgo:"^3.0.2",tailwindcss:"^3.3.2",terser:"^5.17.1",typescript:"^5.0.4",vite:"^4.3.5","vite-plugin-cdn-import":"^0.3.5","vite-plugin-compression":"^0.5.1","vite-plugin-mock":"^2.9.6","vite-plugin-remove-console":"^2.1.1","vite-svg-loader":"^4.0.0","vue-eslint-parser":"^9.2.1","vue-tsc":"^1.6.4"},name:"vue-pure-admin",version:"4.0.0"},i=ne(()=>["text-base","font-medium"]),{height:o}=fn();return setTimeout(()=>{t.value=!t.value},800),on.get("https://api.github.com/repos/pure-admin/vue-pure-admin/releases").then(a=>{e.value=a.data.map(r=>({content:r.body,timestamp:rn(r.published_at).format("YYYY/MM/DD hh:mm:ss A"),icon:an(vn({background:sn({type:"hex"})}))}))}),(a,r)=>{const m=he("el-timeline-item"),u=he("el-timeline"),c=he("el-empty"),h=he("el-scrollbar"),f=he("el-skeleton"),p=he("el-card"),w=he("el-col"),C=he("el-row"),y=cn("motion");return pe(),ht("div",null,[s(C,{gutter:24},{default:q(()=>[ge((pe(),xe(w,{xs:24,sm:24,md:12,lg:12,xl:12,class:"mb-[18px]",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:200}}},{default:q(()=>[s(p,{shadow:"never",style:pt({height:`calc(${oe(o)}px - 35vh - 250px)`})},{header:q(()=>[Se("a",{class:Te(i.value),href:"https://github.com/pure-admin/vue-pure-admin/releases",target:"_black"},[s(oe(ze),{className:"type-it2",values:[`PureAdmin 版本日志(当前版本 v${oe(n)})`],cursor:!1,speed:60},null,8,["values"])],2)]),default:q(()=>[s(f,{animated:"",rows:7,loading:t.value},{default:q(()=>[s(h,{height:`calc(${oe(o)}px - 35vh - 340px)`},{default:q(()=>{var g,x;return[ge(s(u,null,{default:q(()=>[(pe(!0),ht(Pe,null,un(e.value,(E,S)=>(pe(),xe(m,{key:S,icon:E.icon,timestamp:E.timestamp},{default:q(()=>[s(oe(ue),{modelValue:E.content,"onUpdate:modelValue":z=>E.content=z,"preview-only":""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["icon","timestamp"]))),128))]),_:1},512),[[ft,((g=e.value)==null?void 0:g.length)>0]]),ge(s(c,null,null,512),[[ft,((x=e.value)==null?void 0:x.length)===0]])]}),_:1},8,["height"])]),_:1},8,["loading"])]),_:1},8,["style"])]),_:1})),[[y]]),ge((pe(),xe(w,{xs:24,sm:24,md:12,lg:12,xl:12,class:"mb-[18px]",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:200}}},{default:q(()=>[s(p,{shadow:"never",style:pt({height:`calc(${oe(o)}px - 35vh - 250px)`})},{header:q(()=>[Se("a",{class:Te(i.value),href:"https://github.com/xiaoxian521",target:"_black"},[s(oe(ze),{className:"type-it1",values:["GitHub信息"],cursor:!1,speed:120})],2)]),default:q(()=>[s(f,{animated:"",rows:7,loading:t.value},{default:q(()=>[s(gn)]),_:1},8,["loading"])]),_:1},8,["style"])]),_:1})),[[y]]),ge((pe(),xe(w,{xs:24,sm:24,md:12,lg:8,xl:8,class:"mb-[18px]",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:400}}},{default:q(()=>[s(p,{shadow:"never"},{header:q(()=>[Se("a",{class:Te(i.value),href:"https://github.com/pure-admin/vue-pure-admin",target:"_black"},[s(oe(ze),{className:"type-it4",values:["GitHub折线图信息"],cursor:!1,speed:120})],2)]),default:q(()=>[s(f,{animated:"",rows:7,loading:t.value},{default:q(()=>[s(pn)]),_:1},8,["loading"])]),_:1})]),_:1})),[[y]]),ge((pe(),xe(w,{xs:24,sm:24,md:12,lg:8,xl:8,class:"mb-[18px]",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:400}}},{default:q(()=>[s(p,{shadow:"never"},{header:q(()=>[Se("a",{class:Te(i.value),href:"https://github.com/pure-admin/vue-pure-admin",target:"_black"},[s(oe(ze),{className:"type-it3",values:["GitHub饼图信息"],cursor:!1,speed:120})],2)]),default:q(()=>[s(f,{animated:"",rows:7,loading:t.value},{default:q(()=>[s(hn)]),_:1},8,["loading"])]),_:1})]),_:1})),[[y]]),ge((pe(),xe(w,{xs:24,sm:24,md:24,lg:8,xl:8,class:"mb-[18px]",initial:{opacity:0,y:100},enter:{opacity:1,y:0,transition:{delay:400}}},{default:q(()=>[s(p,{shadow:"never"},{header:q(()=>[Se("a",{class:Te(i.value),href:"https://github.com/pure-admin/vue-pure-admin",target:"_black"},[s(oe(ze),{className:"type-it5",values:["GitHub柱状图信息"],cursor:!1,speed:120})],2)]),default:q(()=>[s(f,{animated:"",rows:7,loading:t.value},{default:q(()=>[s(mn)]),_:1},8,["loading"])]),_:1})]),_:1})),[[y]])]),_:1})])}}});const bi=dn(ii,[["__scopeId","data-v-95dc958c"]]);export{bi as default}; diff --git a/dist/static/js/index-59b6ef2b.js b/dist/static/js/index-59b6ef2b.js new file mode 100644 index 000000000..988c22992 --- /dev/null +++ b/dist/static/js/index-59b6ef2b.js @@ -0,0 +1 @@ +import{useDept as N}from"./hook-dbd437de.js";import{R as P,D as U,P as z}from"./refresh-43caf749.js";import{u as s}from"./hooks-62079556.js";import{d as E}from"./edit-pen-37b5ced2.js";import{d as F}from"./search-cc37b371.js";import{d as I}from"./add-circle-line-a03ff6bd.js";import{d as L,r as y,c as a,f as O,k as j,g as o,w as l,u as e,h as m}from"./index-0dd8d5e4.js";import"./form.vue_vue_type_script_setup_true_lang-26a36b44.js";import"./message-ac5811da.js";import"./system-5c5ef8e0.js";import"./epTheme-ec99570c.js";import"./sortable.esm-679e0872.js";const q={class:"main"},te=L({name:"Dept",__name:"index",setup(A){const d=y(),u=y(),{form:r,loading:f,columns:v,dataList:C,onSearch:_,resetForm:h,openDialog:b,handleDelete:R,handleSelectionChange:x}=N();return(G,n)=>{var k;const w=a("el-input"),c=a("el-form-item"),g=a("el-option"),V=a("el-select"),i=a("el-button"),$=a("el-form"),D=a("el-popconfirm"),S=a("pure-table");return O(),j("div",q,[o($,{ref_key:"formRef",ref:d,inline:!0,model:e(r),class:"bg-bg_color w-[99/100] pl-8 pt-4"},{default:l(()=>[o(c,{label:"部门名称:",prop:"name"},{default:l(()=>[o(w,{modelValue:e(r).name,"onUpdate:modelValue":n[0]||(n[0]=t=>e(r).name=t),placeholder:"请输入部门名称",clearable:"",class:"!w-[200px]"},null,8,["modelValue"])]),_:1}),o(c,{label:"状态:",prop:"status"},{default:l(()=>[o(V,{modelValue:e(r).status,"onUpdate:modelValue":n[1]||(n[1]=t=>e(r).status=t),placeholder:"请选择状态",clearable:"",class:"!w-[180px]"},{default:l(()=>[o(g,{label:"启用",value:1}),o(g,{label:"停用",value:0})]),_:1},8,["modelValue"])]),_:1}),o(c,null,{default:l(()=>[o(i,{type:"primary",icon:e(s)(e(F)),loading:e(f),onClick:e(_)},{default:l(()=>[m(" 搜索 ")]),_:1},8,["icon","loading","onClick"]),o(i,{icon:e(s)(e(P)),onClick:n[2]||(n[2]=t=>e(h)(d.value))},{default:l(()=>[m(" 重置 ")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"]),o(e(z),{title:"部门列表(仅演示,操作后不生效)",columns:e(v),tableRef:(k=u.value)==null?void 0:k.getTableRef(),onRefresh:e(_)},{buttons:l(()=>[o(i,{type:"primary",icon:e(s)(e(I)),onClick:n[3]||(n[3]=t=>e(b)())},{default:l(()=>[m(" 新增部门 ")]),_:1},8,["icon"])]),default:l(({size:t,dynamicColumns:T})=>[o(S,{ref_key:"tableRef",ref:u,border:"","align-whole":"center","row-key":"id",showOverflowTooltip:"","table-layout":"auto","default-expand-all":"",loading:e(f),size:t,data:e(C),columns:T,"header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSelectionChange:e(x)},{operation:l(({row:p})=>[o(i,{class:"reset-margin",link:"",type:"primary",size:t,icon:e(s)(e(E)),onClick:B=>e(b)("编辑",p)},{default:l(()=>[m(" 编辑 ")]),_:2},1032,["size","icon","onClick"]),o(D,{title:`是否确认删除部门名称为${p.name}的这条数据`,onConfirm:B=>e(R)(p)},{reference:l(()=>[o(i,{class:"reset-margin",link:"",type:"primary",size:t,icon:e(s)(e(U))},{default:l(()=>[m(" 删除 ")]),_:2},1032,["size","icon"])]),_:2},1032,["title","onConfirm"])]),_:2},1032,["loading","size","data","columns","header-cell-style","onSelectionChange"])]),_:1},8,["columns","tableRef","onRefresh"])])}}});export{te as default}; diff --git a/dist/static/js/index-59ff87b7.js b/dist/static/js/index-59ff87b7.js new file mode 100644 index 000000000..174b3b1c8 --- /dev/null +++ b/dist/static/js/index-59ff87b7.js @@ -0,0 +1 @@ +import{d as h,x as k,g as a,u as s,r as p,m as V,ac as A,F as H,a7 as L,c as U,e as W,w as o,f as X,i as r,p as Y,q as E,_ as G}from"./index-0dd8d5e4.js";const R=h({name:"Resizer",props:{split:{type:String,required:!0},className:{type:String,default:""}},setup(e){const i=k(()=>["splitter-pane-resizer",e.split,e.className].join(" "));return()=>a("div",{class:s(i)},null)}});const T=h({name:"SplitPane",components:{resizer:R},props:{splitSet:{type:Object,require:!0}},emits:["resize"],setup(e,i){var m,S,g,w,P;const l=p(!1),d=p(!1),n=p((m=e.splitSet)==null?void 0:m.defaultPercent),u=((S=e.splitSet)==null?void 0:S.split)==="vertical"?"width":"height",B=((g=e.splitSet)==null?void 0:g.split)==="vertical"?"left":"top",I=p(["splitter-pane splitter-paneL",(w=e.splitSet)==null?void 0:w.split]),N=p(["splitter-pane splitter-paneR",(P=e.splitSet)==null?void 0:P.split]),$=k(()=>{var t;return l.value?((t=e.splitSet)==null?void 0:t.split)==="vertical"?{cursor:"col-resize"}:{cursor:"row-resize"}:{cursor:"default"}}),b=()=>{d.value||(n.value=50,i.emit("resize",n.value))},q=()=>{l.value=!0,d.value=!1},j=()=>{l.value=!1},D=t=>{var y,z,M,x,C;if((t.buttons===0||t.which===0)&&(l.value=!1),l.value){let f=0,c=t.currentTarget;if(((y=e.splitSet)==null?void 0:y.split)==="vertical")for(;c;)f+=c.offsetLeft,c=c.offsetParent;else for(;c;)f+=c.offsetTop,c=c.offsetParent;const F=((z=e.splitSet)==null?void 0:z.split)==="vertical"?t.pageX:t.pageY,O=((M=e.splitSet)==null?void 0:M.split)==="vertical"?t.currentTarget.offsetWidth:t.currentTarget.offsetHeight,_=Math.floor((F-f)/O*1e4)/100;_>((x=e.splitSet)==null?void 0:x.minPercent)&&_<100-((C=e.splitSet)==null?void 0:C.minPercent)&&(n.value=_),i.emit("resize",n.value),d.value=!0}};return()=>{var t;return a(H,null,[a("div",{class:"vue-splitter-container clearfix",style:s($),onMouseup:()=>j(),onMousemove:()=>D(event)},[a("div",{class:s(I),style:{[s(u)]:s(n)+"%"}},[i.slots.paneL()]),a(R,{style:`${s([B])}:${s(n)}%`,split:(t=e.splitSet)==null?void 0:t.split,onMousedown:()=>q(),onClick:()=>b()},null),a("div",{class:s(N),style:{[s(u)]:100-s(n)+"%"}},[i.slots.paneR()]),V(a("div",{class:"vue-splitter-container-mask"},null),[[A,s(l)]])])])}}}),v=e=>(Y("data-v-62ddaddc"),e=e(),E(),e),J=v(()=>r("div",{class:"card-header"},[r("span",{class:"font-medium"},"切割面板组件")],-1)),K={class:"split-pane"},Q=v(()=>r("div",{class:"dv-a"},"A",-1)),Z=v(()=>r("div",{class:"dv-b"},"B",-1)),ee=v(()=>r("div",{class:"dv-c"},"C",-1)),te=h({name:"SplitPane",__name:"index",setup(e){const i=L({minPercent:20,defaultPercent:40,split:"vertical"}),l=L({minPercent:20,defaultPercent:40,split:"horizontal"});return(d,n)=>{const u=U("el-card");return X(),W(u,{shadow:"never"},{header:o(()=>[J]),default:o(()=>[r("div",K,[a(s(T),{splitSet:i},{paneL:o(()=>[Q]),paneR:o(()=>[a(s(T),{splitSet:l},{paneL:o(()=>[Z]),paneR:o(()=>[ee]),_:1},8,["splitSet"])]),_:1},8,["splitSet"])])]),_:1})}}});const ae=G(te,[["__scopeId","data-v-62ddaddc"]]);export{ae as default}; diff --git a/dist/static/js/index-5f0193e2.js b/dist/static/js/index-5f0193e2.js new file mode 100644 index 000000000..63d0e7352 --- /dev/null +++ b/dist/static/js/index-5f0193e2.js @@ -0,0 +1 @@ +import{d as c,r as i,Y as p,aZ as _,c as x,k as l,i as n,C as t,u as e,g as f,ae as h,f as m}from"./index-0dd8d5e4.js";const V={class:"dark:text-white"},k={style:{"text-indent":"2em"}},v={style:{"text-indent":"4em"}},y={key:0,class:"mt-4"},g=c({name:"Menu1-2-2",__name:"index",setup(C){const o=i(""),{t:s}=p(),{query:a}=_();return(B,u)=>{const d=x("el-input");return m(),l("div",V,[n("p",null,t(e(s)("menus.hsmenu1")),1),n("p",k,t(e(s)("menus.hsmenu1-2")),1),n("p",v,t(e(s)("menus.hsmenu1-2-2")),1),f(d,{modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=r=>o.value=r)},null,8,["modelValue"]),e(a).text?(m(),l("div",y," 此页面携带的参数值为:"+t(e(a).text),1)):h("",!0)])}}});export{g as default}; diff --git a/dist/static/js/index-62aa1b91.js b/dist/static/js/index-62aa1b91.js new file mode 100644 index 000000000..23b69bf0e --- /dev/null +++ b/dist/static/js/index-62aa1b91.js @@ -0,0 +1 @@ +import n from"./vertical-44eee916.js";import c from"./horizontal-0e874426.js";import{d as i,c as o,e as p,w as e,f as _,i as r,h as t,g as a}from"./index-0dd8d5e4.js";import"./vue-virtual-scroller.esm-490d869b.js";const u={class:"font-medium"},d={class:"w-full flex justify-around flex-wrap"},g=i({name:"VirtualList",__name:"index",setup(m){return(f,x)=>{const s=o("el-link"),l=o("el-card");return _(),p(l,{shadow:"never"},{header:e(()=>[r("div",u,[t(" 虚拟列表组件( "),a(s,{href:"https://github.com/Akryum/vue-virtual-scroller/tree/next/packages/vue-virtual-scroller",target:"_blank",style:{margin:"0 5px 4px 0","font-size":"16px"}},{default:e(()=>[t(" github地址 ")]),_:1}),t(" ) ")])]),default:e(()=>[r("div",d,[a(n,{class:"h-[500px] w-[500px]"}),a(c,{class:"h-[500px] w-[500px]"})])]),_:1})}}});export{g as default}; diff --git a/dist/static/js/index-638fd271.js b/dist/static/js/index-638fd271.js deleted file mode 100644 index 8ba1046f9..000000000 --- a/dist/static/js/index-638fd271.js +++ /dev/null @@ -1 +0,0 @@ -import{V as i}from"./styles-eecf6cc2.js";import"./index-c61a73ff.js";import"./_vue_commonjs-external-c09696f7.js";const u={class:"card-header"},d={class:"font-medium"},l={class:"font-medium"},V=Vue.defineComponent({name:"JsonEditor",__name:"index",setup(c){const a={status:200,text:"",error:null,config:void 0,data:[{news_id:51184,title:"iPhone X Review: Innovative future with real black technology",source:"Netease phone"},{news_id:51183,title:"Traffic paradise: How to design streets for people and unmanned vehicles in the future?",source:"Netease smart",link:"http://netease.smart/traffic-paradise/1235"},{news_id:51182,title:"Teslamask's American Business Relations: The government does not pay billions to build factories",source:"AI Finance",members:["Daniel","Mike","John"]}]},e=Vue.reactive({val:JSON.stringify(a),data:a,showLine:!0,showLineNumber:!0,showDoubleQuotes:!0,showLength:!0,editable:!0,showIcon:!0,editableTrigger:"click",deep:3});return Vue.watch(()=>e.val,t=>{try{e.data=JSON.parse(t)}catch{}}),Vue.watch(()=>e.data,t=>{try{e.val=JSON.stringify(t)}catch{}}),(t,o)=>{const n=Vue.resolveComponent("el-link"),r=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(r,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",u,[Vue.createElementVNode("span",d,[Vue.createTextVNode(" JSON编辑器组件,采用开源的 "),Vue.createVNode(n,{href:"https://github.com/leezng/vue-json-pretty",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" vue-json-pretty ")]),_:1}),Vue.createTextVNode(" (支持大数据量)。 ")]),Vue.createElementVNode("span",l,[Vue.createTextVNode(" 当然我们还有一款代码编辑器组件推荐(这里就不做演示了),采用开源的 "),Vue.createVNode(n,{href:"https://github.com/surmon-china/vue-codemirror",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" codemirror6 ")]),_:1})])])]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(i),{data:e.data,"onUpdate:data":o[0]||(o[0]=s=>e.data=s),deep:e.deep,"show-double-quotes":e.showDoubleQuotes,"show-line":e.showLine,"show-length":e.showLength,"show-icon":e.showIcon,"show-line-number":e.showLineNumber,editable:e.editable,"editable-trigger":e.editableTrigger},null,8,["data","deep","show-double-quotes","show-line","show-length","show-icon","show-line-number","editable","editable-trigger"])]),_:1})}}});export{V as default}; diff --git a/dist/static/js/index-639cd49d.js b/dist/static/js/index-639cd49d.js new file mode 100644 index 000000000..e05e731bf --- /dev/null +++ b/dist/static/js/index-639cd49d.js @@ -0,0 +1,8 @@ +import{p as Q}from"./propTypes-c3354283.js";import{d as Ot,r as yt,x as Et,y as Jt,g as L,m as Yt,j as jt,u as U,c as $t,F as Qt,n as Gt,K as qt,aA as Bt,R as Wt}from"./index-0dd8d5e4.js";import{d as Xt}from"./refresh-right-6177e75c.js";var Y={},Zt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Tt={},M={};let ft;const xt=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];M.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};M.getSymbolTotalCodewords=function(e){return xt[e]};M.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};M.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');ft=e};M.isKanjiModeEnabled=function(){return typeof ft<"u"};M.toSJIS=function(e){return ft(e)};var Z={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+i)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,o){if(t.isValid(r))return r;try{return e(r)}catch{return o}}})(Z);function It(){this.buffer=[],this.length=0}It.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let i=0;i>>e-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var te=It;function j(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}j.prototype.set=function(t,e,i,r){const o=t*this.size+e;this.data[o]=i,r&&(this.reservedBit[o]=!0)};j.prototype.get=function(t,e){return this.data[t*this.size+e]};j.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i};j.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var ee=j,St={};(function(t){const e=M.getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const o=Math.floor(r/7)+2,n=e(r),s=n===145?26:Math.ceil((n-13)/(2*o-2))*2,c=[n-7];for(let a=1;a=0&&o<=7},t.from=function(o){return t.isValid(o)?parseInt(o,10):void 0},t.getPenaltyN1=function(o){const n=o.size;let s=0,c=0,a=0,f=null,d=null;for(let A=0;A=5&&(s+=e.N1+(c-5)),f=w,c=1),w=o.get(C,A),w===d?a++:(a>=5&&(s+=e.N1+(a-5)),d=w,a=1)}c>=5&&(s+=e.N1+(c-5)),a>=5&&(s+=e.N1+(a-5))}return s},t.getPenaltyN2=function(o){const n=o.size;let s=0;for(let c=0;c=10&&(c===1488||c===93)&&s++,a=a<<1&2047|o.get(d,f),d>=10&&(a===1488||a===93)&&s++}return s*e.N3},t.getPenaltyN4=function(o){let n=0;const s=o.data.length;for(let a=0;a=0;){const s=n[0];for(let a=0;a0){const n=new Uint8Array(this.degree);return n.set(r,o),n}return r};var oe=dt,Lt={},D={},gt={};gt.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var P={};const vt="[0-9]+",re="[A-Z $%*+\\-./:]+";let J="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";J=J.replace(/u/g,"\\u");const ie="(?:(?![A-Z0-9 $%*+\\-./:]|"+J+`)(?:.|[\r +]))+`;P.KANJI=new RegExp(J,"g");P.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");P.BYTE=new RegExp(ie,"g");P.NUMERIC=new RegExp(vt,"g");P.ALPHANUMERIC=new RegExp(re,"g");const se=new RegExp("^"+J+"$"),ae=new RegExp("^"+vt+"$"),ce=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");P.testKanji=function(e){return se.test(e)};P.testNumeric=function(e){return ae.test(e)};P.testAlphanumeric=function(e){return ce.test(e)};(function(t){const e=gt,i=P;t.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!e.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},t.getBestModeForData=function(n){return i.testNumeric(n)?t.NUMERIC:i.testAlphanumeric(n)?t.ALPHANUMERIC:i.testKanji(n)?t.KANJI:t.BYTE},t.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},t.isValid=function(n){return n&&n.bit&&n.ccBits};function r(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+o)}}t.from=function(n,s){if(t.isValid(n))return n;try{return r(n)}catch{return s}}})(D);(function(t){const e=M,i=x,r=Z,o=D,n=gt,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,c=e.getBCHDigit(s);function a(C,w,y){for(let u=1;u<=40;u++)if(w<=t.getCapacity(u,y,C))return u}function f(C,w){return o.getCharCountIndicator(C,w)+4}function d(C,w){let y=0;return C.forEach(function(u){const E=f(u.mode,w);y+=E+u.getBitsLength()}),y}function A(C,w){for(let y=1;y<=40;y++)if(d(C,y)<=t.getCapacity(y,w,o.MIXED))return y}t.from=function(w,y){return n.isValid(w)?parseInt(w,10):y},t.getCapacity=function(w,y,u){if(!n.isValid(w))throw new Error("Invalid QR Code version");typeof u>"u"&&(u=o.BYTE);const E=e.getSymbolTotalCodewords(w),l=i.getTotalCodewordsCount(w,y),m=(E-l)*8;if(u===o.MIXED)return m;const h=m-f(u,w);switch(u){case o.NUMERIC:return Math.floor(h/10*3);case o.ALPHANUMERIC:return Math.floor(h/11*2);case o.KANJI:return Math.floor(h/13);case o.BYTE:default:return Math.floor(h/8)}},t.getBestVersionForData=function(w,y){let u;const E=r.from(y,r.M);if(Array.isArray(w)){if(w.length>1)return A(w,E);if(w.length===0)return 1;u=w[0]}else u=w;return a(u.mode,u.getLength(),E)},t.getEncodedBits=function(w){if(!n.isValid(w)||w<7)throw new Error("Invalid QR Code version");let y=w<<12;for(;e.getBCHDigit(y)-c>=0;)y^=s<=0;)o^=Ut<0&&(r=this.data.substr(i),o=parseInt(r,10),e.put(o,n*3+1))};var fe=F;const de=D,nt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function k(t){this.mode=de.ALPHANUMERIC,this.data=t}k.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};k.prototype.getLength=function(){return this.data.length};k.prototype.getBitsLength=function(){return k.getBitsLength(this.data.length)};k.prototype.write=function(e){let i;for(i=0;i+2<=this.data.length;i+=2){let r=nt.indexOf(this.data[i])*45;r+=nt.indexOf(this.data[i+1]),e.put(r,11)}this.data.length%2&&e.put(nt.indexOf(this.data[i]),6)};var ge=k,he=function(e){for(var i=[],r=e.length,o=0;o=55296&&n<=56319&&r>o+1){var s=e.charCodeAt(o+1);s>=56320&&s<=57343&&(n=(n-55296)*1024+s-56320+65536,o+=1)}if(n<128){i.push(n);continue}if(n<2048){i.push(n>>6|192),i.push(n&63|128);continue}if(n<55296||n>=57344&&n<65536){i.push(n>>12|224),i.push(n>>6&63|128),i.push(n&63|128);continue}if(n>=65536&&n<=1114111){i.push(n>>18|240),i.push(n>>12&63|128),i.push(n>>6&63|128),i.push(n&63|128);continue}i.push(239,191,189)}return new Uint8Array(i).buffer};const we=he,me=D;function z(t){this.mode=me.BYTE,typeof t=="string"&&(t=we(t)),this.data=new Uint8Array(t)}z.getBitsLength=function(e){return e*8};z.prototype.getLength=function(){return this.data.length};z.prototype.getBitsLength=function(){return z.getBitsLength(this.data.length)};z.prototype.write=function(t){for(let e=0,i=this.data.length;e=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` +Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),t.put(i,13)}};var Be=H,Ft={exports:{}};(function(t){var e={single_source_shortest_paths:function(i,r,o){var n={},s={};s[r]=0;var c=e.PriorityQueue.make();c.push(r,0);for(var a,f,d,A,C,w,y,u,E;!c.empty();){a=c.pop(),f=a.value,A=a.cost,C=i[f]||{};for(d in C)C.hasOwnProperty(d)&&(w=C[d],y=A+w,u=s[d],E=typeof s[d]>"u",(E||u>y)&&(s[d]=y,c.push(d,y),n[d]=f))}if(typeof o<"u"&&typeof s[o]>"u"){var l=["Could not find a path from ",r," to ",o,"."].join("");throw new Error(l)}return n},extract_shortest_path_from_predecessor_list:function(i,r){for(var o=[],n=r;n;)o.push(n),i[n],n=i[n];return o.reverse(),o},find_path:function(i,r,o){var n=e.single_source_shortest_paths(i,r,o);return e.extract_shortest_path_from_predecessor_list(n,o)},PriorityQueue:{make:function(i){var r=e.PriorityQueue,o={},n;i=i||{};for(n in r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=i.sorter||r.default_sorter,o},default_sorter:function(i,r){return i.cost-r.cost},push:function(i,r){var o={value:i,cost:r};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(Ft);var Ae=Ft.exports;(function(t){const e=D,i=fe,r=ge,o=Ce,n=Be,s=P,c=M,a=Ae;function f(l){return unescape(encodeURIComponent(l)).length}function d(l,m,h){const g=[];let B;for(;(B=l.exec(h))!==null;)g.push({data:B[0],index:B.index,mode:m,length:B[0].length});return g}function A(l){const m=d(s.NUMERIC,e.NUMERIC,l),h=d(s.ALPHANUMERIC,e.ALPHANUMERIC,l);let g,B;return c.isKanjiModeEnabled()?(g=d(s.BYTE,e.BYTE,l),B=d(s.KANJI,e.KANJI,l)):(g=d(s.BYTE_KANJI,e.BYTE,l),B=[]),m.concat(h,g,B).sort(function(p,N){return p.index-N.index}).map(function(p){return{data:p.data,mode:p.mode,length:p.length}})}function C(l,m){switch(m){case e.NUMERIC:return i.getBitsLength(l);case e.ALPHANUMERIC:return r.getBitsLength(l);case e.KANJI:return n.getBitsLength(l);case e.BYTE:return o.getBitsLength(l)}}function w(l){return l.reduce(function(m,h){const g=m.length-1>=0?m[m.length-1]:null;return g&&g.mode===h.mode?(m[m.length-1].data+=h.data,m):(m.push(h),m)},[])}function y(l){const m=[];for(let h=0;h=0&&c<=6&&(a===0||a===6)||a>=0&&a<=6&&(c===0||c===6)||c>=2&&c<=4&&a>=2&&a<=4?t.set(n+c,s+a,!0,!0):t.set(n+c,s+a,!1,!0))}}function Re(t){const e=t.size;for(let i=8;i>c&1)===1,t.set(o,n,s,!0),t.set(n,o,s,!0)}function it(t,e,i){const r=t.size,o=Ne.getEncodedBits(e,i);let n,s;for(n=0;n<15;n++)s=(o>>n&1)===1,n<6?t.set(n,8,s,!0):n<8?t.set(n+1,8,s,!0):t.set(r-15+n,8,s,!0),n<8?t.set(8,r-n-1,s,!0):n<9?t.set(8,15-n-1+1,s,!0):t.set(8,15-n-1,s,!0);t.set(r-8,8,1,!0)}function De(t,e){const i=t.size;let r=-1,o=i-1,n=7,s=0;for(let c=i-1;c>0;c-=2)for(c===6&&c--;;){for(let a=0;a<2;a++)if(!t.isReserved(o,c-a)){let f=!1;s>>n&1)===1),t.set(o,c-a,f),n--,n===-1&&(s++,n=7)}if(o+=r,o<0||i<=o){o-=r,r=-r;break}}}function Ue(t,e,i){const r=new be;i.forEach(function(a){r.put(a.mode.bit,4),r.put(a.getLength(),Me.getCharCountIndicator(a.mode,t)),a.write(r)});const o=et.getSymbolTotalCodewords(t),n=ut.getTotalCodewordsCount(t,e),s=(o-n)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const c=(s-r.getLengthInBits())/8;for(let a=0;a=7&&ve(a,e),De(a,s),isNaN(r)&&(r=ct.getBestMask(a,it.bind(null,a,i))),ct.applyMask(r,a),it(a,i,r),{modules:a,version:e,errorCorrectionLevel:i,maskPattern:r,segments:o}}Tt.create=function(e,i){if(typeof e>"u"||e==="")throw new Error("No input text");let r=ot.M,o,n;return typeof i<"u"&&(r=ot.from(i.errorCorrectionLevel,ot.M),o=X.from(i.version),n=ct.from(i.maskPattern),i.toSJISFunc&&et.setToSJISFunction(i.toSJISFunc)),Fe(e,o,r,n)};var kt={},ht={};(function(t){function e(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let r=i.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+i);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(n){return[n,n]}))),r.length===6&&r.push("F","F");const o=parseInt(r.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+r.slice(0,6).join("")}}t.getOptions=function(r){r||(r={}),r.color||(r.color={});const o=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,n=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:n,scale:n?4:s,margin:o,color:{dark:e(r.color.dark||"#000000ff"),light:e(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},t.getScale=function(r,o){return o.width&&o.width>=r+o.margin*2?o.width/(r+o.margin*2):o.scale},t.getImageWidth=function(r,o){const n=t.getScale(r,o);return Math.floor((r+o.margin*2)*n)},t.qrToImageData=function(r,o,n){const s=o.modules.size,c=o.modules.data,a=t.getScale(s,n),f=Math.floor((s+n.margin*2)*a),d=n.margin*a,A=[n.color.light,n.color.dark];for(let C=0;C=d&&w>=d&&C"u"&&(!s||!s.getContext)&&(a=s,s=void 0),s||(f=r()),a=e.getOptions(a);const d=e.getImageWidth(n.modules.size,a),A=f.getContext("2d"),C=A.createImageData(d,d);return e.qrToImageData(C.data,n,a),i(A,f,d),A.putImageData(C,0,0),f},t.renderToDataURL=function(n,s,c){let a=c;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),a||(a={});const f=t.render(n,s,a),d=a.type||"image/png",A=a.rendererOpts||{};return f.toDataURL(d,A.quality)}})(kt);var zt={};const ke=ht;function pt(t,e){const i=t.a/255,r=e+'="'+t.hex+'"';return i<1?r+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':r}function st(t,e,i){let r=t+e;return typeof i<"u"&&(r+=" "+i),r}function ze(t,e,i){let r="",o=0,n=!1,s=0;for(let c=0;c0&&a>0&&t[c-1]||(r+=n?st("M",a+i,.5+f+i):st("m",o,0),o=0,n=!1),a+1':"",f="',d='viewBox="0 0 '+c+" "+c+'"',C=''+a+f+` +`;return typeof r=="function"&&r(null,C),C};const He=Zt,lt=Tt,Ht=kt,Ve=zt;function wt(t,e,i,r,o){const n=[].slice.call(arguments,1),s=n.length,c=typeof n[s-1]=="function";if(!c&&!He())throw new Error("Callback required as last argument");if(c){if(s<2)throw new Error("Too few arguments provided");s===2?(o=i,i=e,e=r=void 0):s===3&&(e.getContext&&typeof o>"u"?(o=r,r=void 0):(o=r,r=i,i=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=e,e=r=void 0):s===2&&!e.getContext&&(r=i,i=e,e=void 0),new Promise(function(a,f){try{const d=lt.create(i,r);a(t(d,e,r))}catch(d){f(d)}})}try{const a=lt.create(i,r);o(null,t(a,e,r))}catch(a){o(a)}}Y.create=lt.create;Y.toCanvas=wt.bind(null,Ht.render);Y.toDataURL=wt.bind(null,Ht.renderToDataURL);Y.toString=wt.bind(null,function(t,e,i){return Ve.render(t,i)});const Ke={tag:Q.string.validate(t=>["canvas","img"].includes(t)).def("canvas"),text:{type:[String,Array],default:null},options:{type:Object,default:()=>({})},width:Q.number.def(200),logo:{type:[String,Object],default:()=>""},disabled:Q.bool.def(!1),disabledText:Q.string.def("")},Oe=Ot({name:"ReQrcode",props:Ke,emits:["done","click","disabled-click"],setup(t,{emit:e}){const{toCanvas:i,toDataURL:r}=Y,o=yt(!0),n=yt(null),s=Et(()=>String(t.text)),c=Et(()=>({width:t.width+"px",height:t.width+"px"})),a=async()=>{await Gt();const u=qt(t.options||{});if(t.tag==="canvas"){u.errorCorrectionLevel=u.errorCorrectionLevel||A(U(s));const E=await d(U(s),u);u.scale=t.width===0?void 0:t.width/E*4;const l=await i(U(n),U(s),u);if(t.logo){const m=await f(l);e("done",m),o.value=!1}else e("done",l.toDataURL()),o.value=!1}else{const E=await r(s.value,{errorCorrectionLevel:"H",width:t.width,...u});U(n).src=E,e("done",E),o.value=!1}};Jt(()=>s.value,u=>{u&&a()},{deep:!0,immediate:!0});const f=u=>{const E=u.width,l=Object.assign({logoSize:.15,bgColor:"#ffffff",borderSize:.05,crossOrigin:"anonymous",borderRadius:8,logoRadius:0},Bt(t.logo)?{}:t.logo),{logoSize:m=.15,bgColor:h="#ffffff",borderSize:g=.05,crossOrigin:B="anonymous",borderRadius:b=8,logoRadius:p=0}=l,N=Bt(t.logo)?t.logo:t.logo.src,S=E*m,I=E*(1-m)/2,R=E*(m+g),_=E*(1-m-g)/2,T=u.getContext("2d");if(!T)return;C(T)(_,_,R,R,b),T.fillStyle=h,T.fill();const V=new Image;(B||p)&&V.setAttribute("crossOrigin",B),V.src=N;const Vt=K=>{T.drawImage(K,I,I,S,S)},Kt=K=>{const $=document.createElement("canvas");$.width=I+S,$.height=I+S;const mt=$.getContext("2d");if(!mt||!T||(mt.drawImage(K,I,I,S,S),C(T)(I,I,S,S,p),!T))return;const Ct=T.createPattern($,"no-repeat");Ct&&(T.fillStyle=Ct,T.fill())};return new Promise(K=>{V.onload=()=>{p?Kt(V):Vt(V),K(u.toDataURL())}})},d=async(u,E)=>{const l=document.createElement("canvas");return await i(l,u,E),l.width},A=u=>u.length>36?"M":u.length>16?"Q":"H",C=u=>(E,l,m,h,g)=>{const B=Math.min(m,h);return g>B/2&&(g=B/2),u.beginPath(),u.moveTo(E+g,l),u.arcTo(E+m,l,E+m,l+h,g),u.arcTo(E+m,l+h,E,l+h,g),u.arcTo(E,l+h,E,l,g),u.arcTo(E,l,E+m,l,g),u.closePath(),u},w=()=>{e("click")},y=()=>{e("disabled-click")};return()=>L(Qt,null,[Yt(L("div",{class:"qrcode relative inline-block",style:U(c)},[t.tag==="canvas"?L("canvas",{ref:n,onClick:w},null):L("img",{ref:n,onClick:w},null),t.disabled&&L("div",{class:"qrcode--disabled absolute top-0 left-0 flex w-full h-full items-center justify-center",onClick:y},[L("div",{class:"absolute top-[50%] left-[50%] font-bold"},[L($t("iconify-icon-offline"),{class:"cursor-pointer",icon:Xt,width:"30",color:"var(--el-color-primary)"},null),L("div",null,[t.disabledText])])])]),[[jt("loading"),U(o)]])])}}),$e=Wt(Oe);export{$e as R}; diff --git a/dist/static/js/index-68a687a6.js b/dist/static/js/index-68a687a6.js deleted file mode 100644 index 6cc614142..000000000 --- a/dist/static/js/index-68a687a6.js +++ /dev/null @@ -1 +0,0 @@ -function i(e){return Vue.defineComponent({name:"ReFlicker",render(){return Vue.h("div",{class:"point point-flicker",style:{"--point-width":(e==null?void 0:e.width)??"12px","--point-height":(e==null?void 0:e.height)??"12px","--point-background":(e==null?void 0:e.background)??"var(--el-color-primary)","--point-border-radius":(e==null?void 0:e.borderRadius)??"50%","--point-scale":(e==null?void 0:e.scale)??"2"}},{default:()=>[]})}})}export{i as u}; diff --git a/dist/static/js/index-68e6cf05.js b/dist/static/js/index-68e6cf05.js new file mode 100644 index 000000000..46a68002a --- /dev/null +++ b/dist/static/js/index-68e6cf05.js @@ -0,0 +1 @@ +import{d as v,x as g,c as s,j as w,f as n,e as _,w as e,g as t,A as l,h as d,C as k,u as c,bv as x,bw as b,ae as p,m as y,i as f}from"./index-0dd8d5e4.js";const C=f("div",{class:"card-header"},"组件方式判断权限",-1),A=f("div",{class:"card-header"},"函数方式判断权限",-1),B=f("div",{class:"card-header"}," 指令方式判断权限(该方式不能动态修改权限) ",-1),S=v({name:"PermissionButton",__name:"index",setup(N){const o=g(()=>({width:"85vw",justifyContent:"start"}));return(V,z)=>{const h=s("el-tag"),a=s("el-button"),r=s("Auth"),u=s("el-card"),m=s("el-space"),i=w("auth");return n(),_(m,{direction:"vertical",size:"large"},{default:e(()=>[t(h,{style:l(o.value),size:"large",effect:"dark"},{default:e(()=>[d(" 当前拥有的code列表:"+k(c(x)()),1)]),_:1},8,["style"]),t(u,{shadow:"never",style:l(o.value)},{header:e(()=>[C]),default:e(()=>[t(r,{value:"btn_add"},{default:e(()=>[t(a,{type:"success"},{default:e(()=>[d(" 拥有code:'btn_add' 权限可见 ")]),_:1})]),_:1}),t(r,{value:["btn_edit"]},{default:e(()=>[t(a,{type:"primary"},{default:e(()=>[d(" 拥有code:['btn_edit'] 权限可见 ")]),_:1})]),_:1}),t(r,{value:["btn_add","btn_edit","btn_delete"]},{default:e(()=>[t(a,{type:"danger"},{default:e(()=>[d(" 拥有code:['btn_add', 'btn_edit', 'btn_delete'] 权限可见 ")]),_:1})]),_:1})]),_:1},8,["style"]),t(u,{shadow:"never",style:l(o.value)},{header:e(()=>[A]),default:e(()=>[c(b)("btn_add")?(n(),_(a,{key:0,type:"success"},{default:e(()=>[d(" 拥有code:'btn_add' 权限可见 ")]),_:1})):p("",!0),c(b)(["btn_edit"])?(n(),_(a,{key:1,type:"primary"},{default:e(()=>[d(" 拥有code:['btn_edit'] 权限可见 ")]),_:1})):p("",!0),c(b)(["btn_add","btn_edit","btn_delete"])?(n(),_(a,{key:2,type:"danger"},{default:e(()=>[d(" 拥有code:['btn_add', 'btn_edit', 'btn_delete'] 权限可见 ")]),_:1})):p("",!0)]),_:1},8,["style"]),t(u,{shadow:"never",style:l(o.value)},{header:e(()=>[B]),default:e(()=>[y((n(),_(a,{type:"success"},{default:e(()=>[d(" 拥有code:'btn_add' 权限可见 ")]),_:1})),[[i,"btn_add"]]),y((n(),_(a,{type:"primary"},{default:e(()=>[d(" 拥有code:['btn_edit'] 权限可见 ")]),_:1})),[[i,["btn_edit"]]]),y((n(),_(a,{type:"danger"},{default:e(()=>[d(" 拥有code:['btn_add', 'btn_edit', 'btn_delete'] 权限可见 ")]),_:1})),[[i,["btn_add","btn_edit","btn_delete"]]])]),_:1},8,["style"])]),_:1})}}});export{S as default}; diff --git a/dist/static/js/index-6a61427f.js b/dist/static/js/index-6a61427f.js new file mode 100644 index 000000000..0d30129db --- /dev/null +++ b/dist/static/js/index-6a61427f.js @@ -0,0 +1 @@ +import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-22762134.js";import"./columns-58fb2122.js";import"./print-a6e42845.js";import"./data-4845d266.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/index-6bd36615.js b/dist/static/js/index-6bd36615.js deleted file mode 100644 index 62f04a89a..000000000 --- a/dist/static/js/index-6bd36615.js +++ /dev/null @@ -1,10 +0,0 @@ -import{v as ge,H as me,_ as ve}from"./index-c61a73ff.js";/*! - * Cropper.js v1.5.13 - * https://fengyuanchen.github.io/cropperjs - * - * Copyright 2015-present Chen Fengyuan - * Released under the MIT license - * - * Date: 2022-11-20T05:30:46.114Z - */function Bt(a,t){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(a);t&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable})),i.push.apply(i,e)}return i}function Zt(a){for(var t=1;ta.length)&&(t=a.length);for(var i=0,e=new Array(t);i
    ',ke=Number.isNaN||L.isNaN;function d(a){return typeof a=="number"&&!ke(a)}var Ft=function(t){return t>0&&t<1/0};function gt(a){return typeof a>"u"}function F(a){return vt(a)==="object"&&a!==null}var Ve=Object.prototype.hasOwnProperty;function Q(a){if(!F(a))return!1;try{var t=a.constructor,i=t.prototype;return t&&i&&Ve.call(i,"isPrototypeOf")}catch{return!1}}function S(a){return typeof a=="function"}var Be=Array.prototype.slice;function se(a){return Array.from?Array.from(a):Be.call(a)}function E(a,t){return a&&S(t)&&(Array.isArray(a)||d(a.length)?se(a).forEach(function(i,e){t.call(a,i,e,a)}):F(a)&&Object.keys(a).forEach(function(i){t.call(a,a[i],i,a)})),a}var x=Object.assign||function(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),o=1;o0&&e.forEach(function(r){F(r)&&Object.keys(r).forEach(function(n){t[n]=r[n]})}),t},Le=/\.\d*(?:0|9){12}\d*$/;function J(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e11;return Le.test(a)?Math.round(a*t)/t:a}var ze=/^width|height|left|top|marginLeft|marginTop$/;function X(a,t){var i=a.style;E(t,function(e,o){ze.test(o)&&d(e)&&(e="".concat(e,"px")),i[o]=e})}function Pe(a,t){return a.classList?a.classList.contains(t):a.className.indexOf(t)>-1}function O(a,t){if(t){if(d(a.length)){E(a,function(e){O(e,t)});return}if(a.classList){a.classList.add(t);return}var i=a.className.trim();i?i.indexOf(t)<0&&(a.className="".concat(i," ").concat(t)):a.className=t}}function B(a,t){if(t){if(d(a.length)){E(a,function(i){B(i,t)});return}if(a.classList){a.classList.remove(t);return}a.className.indexOf(t)>=0&&(a.className=a.className.replace(t,""))}}function Z(a,t,i){if(t){if(d(a.length)){E(a,function(e){Z(e,t,i)});return}i?O(a,t):B(a,t)}}var Ye=/([a-z\d])([A-Z])/g;function Rt(a){return a.replace(Ye,"$1-$2").toLowerCase()}function Tt(a,t){return F(a[t])?a[t]:a.dataset?a.dataset[t]:a.getAttribute("data-".concat(Rt(t)))}function st(a,t,i){F(i)?a[t]=i:a.dataset?a.dataset[t]=i:a.setAttribute("data-".concat(Rt(t)),i)}function He(a,t){if(F(a[t]))try{delete a[t]}catch{a[t]=void 0}else if(a.dataset)try{delete a.dataset[t]}catch{a.dataset[t]=void 0}else a.removeAttribute("data-".concat(Rt(t)))}var he=/\s\s*/,ce=function(){var a=!1;if(ft){var t=!1,i=function(){},e=Object.defineProperty({},"once",{get:function(){return a=!0,t},set:function(r){t=r}});L.addEventListener("test",i,e),L.removeEventListener("test",i,e)}return a}();function k(a,t,i){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=i;t.trim().split(he).forEach(function(r){if(!ce){var n=a.listeners;n&&n[r]&&n[r][i]&&(o=n[r][i],delete n[r][i],Object.keys(n[r]).length===0&&delete n[r],Object.keys(n).length===0&&delete a.listeners)}a.removeEventListener(r,o,e)})}function I(a,t,i){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=i;t.trim().split(he).forEach(function(r){if(e.once&&!ce){var n=a.listeners,s=n===void 0?{}:n;o=function(){delete s[r][i],a.removeEventListener(r,o,e);for(var l=arguments.length,h=new Array(l),c=0;cMath.abs(i)&&(i=f)})}),i}function lt(a,t){var i=a.pageX,e=a.pageY,o={endX:i,endY:e};return t?o:Zt({startX:i,startY:e},o)}function Ue(a){var t=0,i=0,e=0;return E(a,function(o){var r=o.startX,n=o.startY;t+=r,i+=n,e+=1}),t/=e,i/=e,{pageX:t,pageY:i}}function W(a){var t=a.aspectRatio,i=a.height,e=a.width,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"contain",r=Ft(e),n=Ft(i);if(r&&n){var s=i*t;o==="contain"&&s>e||o==="cover"&&s90?{width:u,height:s}:{width:s,height:u}}function $e(a,t,i,e){var o=t.aspectRatio,r=t.naturalWidth,n=t.naturalHeight,s=t.rotate,u=s===void 0?0:s,l=t.scaleX,h=l===void 0?1:l,c=t.scaleY,f=c===void 0?1:c,m=i.aspectRatio,g=i.naturalWidth,b=i.naturalHeight,v=e.fillColor,M=v===void 0?"transparent":v,T=e.imageSmoothingEnabled,D=T===void 0?!0:T,z=e.imageSmoothingQuality,R=z===void 0?"low":z,p=e.maxWidth,w=p===void 0?1/0:p,C=e.maxHeight,_=C===void 0?1/0:C,P=e.minWidth,U=P===void 0?0:P,j=e.minHeight,Y=j===void 0?0:j,V=document.createElement("canvas"),N=V.getContext("2d"),$=W({aspectRatio:m,width:w,height:_}),ht=W({aspectRatio:m,width:U,height:Y},"cover"),pt=Math.min($.width,Math.max(ht.width,g)),dt=Math.min($.height,Math.max(ht.height,b)),_t=W({aspectRatio:o,width:w,height:_}),It=W({aspectRatio:o,width:U,height:Y},"cover"),kt=Math.min(_t.width,Math.max(It.width,r)),Vt=Math.min(_t.height,Math.max(It.height,n)),pe=[-kt/2,-Vt/2,kt,Vt];return V.width=J(pt),V.height=J(dt),N.fillStyle=M,N.fillRect(0,0,pt,dt),N.save(),N.translate(pt/2,dt/2),N.rotate(u*Math.PI/180),N.scale(h,f),N.imageSmoothingEnabled=D,N.imageSmoothingQuality=R,N.drawImage.apply(N,[a].concat(Jt(pe.map(function(de){return Math.floor(J(de))})))),N.restore(),V}var ue=String.fromCharCode;function Ge(a,t,i){var e="";i+=t;for(var o=t;o0;)i.push(ue.apply(null,se(o.subarray(0,e)))),o=o.subarray(e);return"data:".concat(t,";base64,").concat(btoa(i.join("")))}function Qe(a){var t=new DataView(a),i;try{var e,o,r;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(var n=t.byteLength,s=2;s+1=8&&(r=l+c)}}}if(r){var f=t.getUint16(r,e),m,g;for(g=0;g=0?r:ne),height:Math.max(e.offsetHeight,n>=0?n:oe)};this.containerData=s,X(o,{width:s.width,height:s.height}),O(t,A),B(o,A)},initCanvas:function(){var t=this.containerData,i=this.imageData,e=this.options.viewMode,o=Math.abs(i.rotate)%180===90,r=o?i.naturalHeight:i.naturalWidth,n=o?i.naturalWidth:i.naturalHeight,s=r/n,u=t.width,l=t.height;t.height*s>t.width?e===3?u=t.height*s:l=t.width/s:e===3?l=t.width/s:u=t.height*s;var h={aspectRatio:s,naturalWidth:r,naturalHeight:n,width:u,height:l};this.canvasData=h,this.limited=e===1||e===2,this.limitCanvas(!0,!0),h.width=Math.min(Math.max(h.width,h.minWidth),h.maxWidth),h.height=Math.min(Math.max(h.height,h.minHeight),h.maxHeight),h.left=(t.width-h.width)/2,h.top=(t.height-h.height)/2,h.oldLeft=h.left,h.oldTop=h.top,this.initialCanvasData=x({},h)},limitCanvas:function(t,i){var e=this.options,o=this.containerData,r=this.canvasData,n=this.cropBoxData,s=e.viewMode,u=r.aspectRatio,l=this.cropped&&n;if(t){var h=Number(e.minCanvasWidth)||0,c=Number(e.minCanvasHeight)||0;s>1?(h=Math.max(h,o.width),c=Math.max(c,o.height),s===3&&(c*u>h?h=c*u:c=h/u)):s>0&&(h?h=Math.max(h,l?n.width:0):c?c=Math.max(c,l?n.height:0):l&&(h=n.width,c=n.height,c*u>h?h=c*u:c=h/u));var f=W({aspectRatio:u,width:h,height:c});h=f.width,c=f.height,r.minWidth=h,r.minHeight=c,r.maxWidth=1/0,r.maxHeight=1/0}if(i)if(s>(l?0:1)){var m=o.width-r.width,g=o.height-r.height;r.minLeft=Math.min(0,m),r.minTop=Math.min(0,g),r.maxLeft=Math.max(0,m),r.maxTop=Math.max(0,g),l&&this.limited&&(r.minLeft=Math.min(n.left,n.left+(n.width-r.width)),r.minTop=Math.min(n.top,n.top+(n.height-r.height)),r.maxLeft=n.left,r.maxTop=n.top,s===2&&(r.width>=o.width&&(r.minLeft=Math.min(0,m),r.maxLeft=Math.max(0,m)),r.height>=o.height&&(r.minTop=Math.min(0,g),r.maxTop=Math.max(0,g))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=o.width,r.maxTop=o.height},renderCanvas:function(t,i){var e=this.canvasData,o=this.imageData;if(i){var r=je({width:o.naturalWidth*Math.abs(o.scaleX||1),height:o.naturalHeight*Math.abs(o.scaleY||1),degree:o.rotate||0}),n=r.width,s=r.height,u=e.width*(n/e.naturalWidth),l=e.height*(s/e.naturalHeight);e.left-=(u-e.width)/2,e.top-=(l-e.height)/2,e.width=u,e.height=l,e.aspectRatio=n/s,e.naturalWidth=n,e.naturalHeight=s,this.limitCanvas(!0,!1)}(e.width>e.maxWidth||e.widthe.maxHeight||e.heighti.width?r.height=r.width/e:r.width=r.height*e),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*o),r.height=Math.max(r.minHeight,r.height*o),r.left=i.left+(i.width-r.width)/2,r.top=i.top+(i.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=x({},r)},limitCropBox:function(t,i){var e=this.options,o=this.containerData,r=this.canvasData,n=this.cropBoxData,s=this.limited,u=e.aspectRatio;if(t){var l=Number(e.minCropBoxWidth)||0,h=Number(e.minCropBoxHeight)||0,c=s?Math.min(o.width,r.width,r.width+r.left,o.width-r.left):o.width,f=s?Math.min(o.height,r.height,r.height+r.top,o.height-r.top):o.height;l=Math.min(l,o.width),h=Math.min(h,o.height),u&&(l&&h?h*u>l?h=l/u:l=h*u:l?h=l/u:h&&(l=h*u),f*u>c?f=c/u:c=f*u),n.minWidth=Math.min(l,c),n.minHeight=Math.min(h,f),n.maxWidth=c,n.maxHeight=f}i&&(s?(n.minLeft=Math.max(0,r.left),n.minTop=Math.max(0,r.top),n.maxLeft=Math.min(o.width,r.left+r.width)-n.width,n.maxTop=Math.min(o.height,r.top+r.height)-n.height):(n.minLeft=0,n.minTop=0,n.maxLeft=o.width-n.width,n.maxTop=o.height-n.height))},renderCropBox:function(){var t=this.options,i=this.containerData,e=this.cropBoxData;(e.width>e.maxWidth||e.widthe.maxHeight||e.height=i.width&&e.height>=i.height?ee:St),X(this.cropBox,x({width:e.width,height:e.height},nt({translateX:e.left,translateY:e.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),tt(this.element,xt,this.getData())}},ti={initPreview:function(){var t=this.element,i=this.crossOrigin,e=this.options.preview,o=i?this.crossOriginUrl:this.url,r=t.alt||"The image to preview",n=document.createElement("img");if(i&&(n.crossOrigin=i),n.src=o,n.alt=r,this.viewBox.appendChild(n),this.viewBoxImage=n,!!e){var s=e;typeof e=="string"?s=t.ownerDocument.querySelectorAll(e):e.querySelector&&(s=[e]),this.previews=s,E(s,function(u){var l=document.createElement("img");st(u,ct,{width:u.offsetWidth,height:u.offsetHeight,html:u.innerHTML}),i&&(l.crossOrigin=i),l.src=o,l.alt=r,l.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',u.innerHTML="",u.appendChild(l)})}},resetPreview:function(){E(this.previews,function(t){var i=Tt(t,ct);X(t,{width:i.width,height:i.height}),t.innerHTML=i.html,He(t,ct)})},preview:function(){var t=this.imageData,i=this.canvasData,e=this.cropBoxData,o=e.width,r=e.height,n=t.width,s=t.height,u=e.left-i.left-t.left,l=e.top-i.top-t.top;!this.cropped||this.disabled||(X(this.viewBoxImage,x({width:n,height:s},nt(x({translateX:-u,translateY:-l},t)))),E(this.previews,function(h){var c=Tt(h,ct),f=c.width,m=c.height,g=f,b=m,v=1;o&&(v=f/o,b=r*v),r&&b>m&&(v=m/r,g=o*v,b=m),X(h,{width:g,height:b}),X(h.getElementsByTagName("img")[0],x({width:n*v,height:s*v},nt(x({translateX:-u*v,translateY:-l*v},t))))}))}},ei={bind:function(){var t=this.element,i=this.options,e=this.cropper;S(i.cropstart)&&I(t,Mt,i.cropstart),S(i.cropmove)&&I(t,Et,i.cropmove),S(i.cropend)&&I(t,Dt,i.cropend),S(i.crop)&&I(t,xt,i.crop),S(i.zoom)&&I(t,Ct,i.zoom),I(e,Ht,this.onCropStart=this.cropStart.bind(this)),i.zoomable&&i.zoomOnWheel&&I(e,$t,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),i.toggleDragModeOnDblclick&&I(e,Yt,this.onDblclick=this.dblclick.bind(this)),I(t.ownerDocument,Xt,this.onCropMove=this.cropMove.bind(this)),I(t.ownerDocument,Wt,this.onCropEnd=this.cropEnd.bind(this)),i.responsive&&I(window,jt,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,i=this.options,e=this.cropper;S(i.cropstart)&&k(t,Mt,i.cropstart),S(i.cropmove)&&k(t,Et,i.cropmove),S(i.cropend)&&k(t,Dt,i.cropend),S(i.crop)&&k(t,xt,i.crop),S(i.zoom)&&k(t,Ct,i.zoom),k(e,Ht,this.onCropStart),i.zoomable&&i.zoomOnWheel&&k(e,$t,this.onWheel,{passive:!1,capture:!0}),i.toggleDragModeOnDblclick&&k(e,Yt,this.onDblclick),k(t.ownerDocument,Xt,this.onCropMove),k(t.ownerDocument,Wt,this.onCropEnd),i.responsive&&k(window,jt,this.onResize)}},ii={resize:function(){if(!this.disabled){var t=this.options,i=this.container,e=this.containerData,o=i.offsetWidth/e.width,r=i.offsetHeight/e.height,n=Math.abs(o-1)>Math.abs(r-1)?o:r;if(n!==1){var s,u;t.restore&&(s=this.getCanvasData(),u=this.getCropBoxData()),this.render(),t.restore&&(this.setCanvasData(E(s,function(l,h){s[h]=l*n})),this.setCropBoxData(E(u,function(l,h){u[h]=l*n})))}}},dblclick:function(){this.disabled||this.options.dragMode===re||this.setDragMode(Pe(this.dragBox,bt)?ae:At)},wheel:function(t){var i=this,e=Number(this.options.wheelZoomRatio)||.1,o=1;this.disabled||(t.preventDefault(),!this.wheeling&&(this.wheeling=!0,setTimeout(function(){i.wheeling=!1},50),t.deltaY?o=t.deltaY>0?1:-1:t.wheelDelta?o=-t.wheelDelta/120:t.detail&&(o=t.detail>0?1:-1),this.zoom(-o*e,t)))},cropStart:function(t){var i=t.buttons,e=t.button;if(!(this.disabled||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(d(i)&&i!==1||d(e)&&e!==0||t.ctrlKey))){var o=this.options,r=this.pointers,n;t.changedTouches?E(t.changedTouches,function(s){r[s.identifier]=lt(s)}):r[t.pointerId||0]=lt(t),Object.keys(r).length>1&&o.zoomable&&o.zoomOnTouch?n=ie:n=Tt(t.target,ot),Se.test(n)&&tt(this.element,Mt,{originalEvent:t,action:n})!==!1&&(t.preventDefault(),this.action=n,this.cropping=!1,n===te&&(this.cropping=!0,O(this.dragBox,ut)))}},cropMove:function(t){var i=this.action;if(!(this.disabled||!i)){var e=this.pointers;t.preventDefault(),tt(this.element,Et,{originalEvent:t,action:i})!==!1&&(t.changedTouches?E(t.changedTouches,function(o){x(e[o.identifier]||{},lt(o,!0))}):x(e[t.pointerId||0]||{},lt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var i=this.action,e=this.pointers;t.changedTouches?E(t.changedTouches,function(o){delete e[o.identifier]}):delete e[t.pointerId||0],i&&(t.preventDefault(),Object.keys(e).length||(this.action=""),this.cropping&&(this.cropping=!1,Z(this.dragBox,ut,this.cropped&&this.options.modal)),tt(this.element,Dt,{originalEvent:t,action:i}))}}},ai={change:function(t){var i=this.options,e=this.canvasData,o=this.containerData,r=this.cropBoxData,n=this.pointers,s=this.action,u=i.aspectRatio,l=r.left,h=r.top,c=r.width,f=r.height,m=l+c,g=h+f,b=0,v=0,M=o.width,T=o.height,D=!0,z;!u&&t.shiftKey&&(u=c&&f?c/f:1),this.limited&&(b=r.minLeft,v=r.minTop,M=b+Math.min(o.width,e.width,e.left+e.width),T=v+Math.min(o.height,e.height,e.top+e.height));var R=n[Object.keys(n)[0]],p={x:R.endX-R.startX,y:R.endY-R.startY},w=function(_){switch(_){case G:m+p.x>M&&(p.x=M-m);break;case q:l+p.xT&&(p.y=T-g);break}};switch(s){case St:l+=p.x,h+=p.y;break;case G:if(p.x>=0&&(m>=M||u&&(h<=v||g>=T))){D=!1;break}w(G),c+=p.x,c<0&&(s=q,c=-c,l-=c),u&&(f=c/u,h+=(r.height-f)/2);break;case H:if(p.y<=0&&(h<=v||u&&(l<=b||m>=M))){D=!1;break}w(H),f-=p.y,h+=p.y,f<0&&(s=K,f=-f,h-=f),u&&(c=f*u,l+=(r.width-c)/2);break;case q:if(p.x<=0&&(l<=b||u&&(h<=v||g>=T))){D=!1;break}w(q),c-=p.x,l+=p.x,c<0&&(s=G,c=-c,l-=c),u&&(f=c/u,h+=(r.height-f)/2);break;case K:if(p.y>=0&&(g>=T||u&&(l<=b||m>=M))){D=!1;break}w(K),f+=p.y,f<0&&(s=H,f=-f,h-=f),u&&(c=f*u,l+=(r.width-c)/2);break;case et:if(u){if(p.y<=0&&(h<=v||m>=M)){D=!1;break}w(H),f-=p.y,h+=p.y,c=f*u}else w(H),w(G),p.x>=0?mv&&(f-=p.y,h+=p.y):(f-=p.y,h+=p.y);c<0&&f<0?(s=rt,f=-f,c=-c,h-=f,l-=c):c<0?(s=it,c=-c,l-=c):f<0&&(s=at,f=-f,h-=f);break;case it:if(u){if(p.y<=0&&(h<=v||l<=b)){D=!1;break}w(H),f-=p.y,h+=p.y,c=f*u,l+=r.width-c}else w(H),w(q),p.x<=0?l>b?(c-=p.x,l+=p.x):p.y<=0&&h<=v&&(D=!1):(c-=p.x,l+=p.x),p.y<=0?h>v&&(f-=p.y,h+=p.y):(f-=p.y,h+=p.y);c<0&&f<0?(s=at,f=-f,c=-c,h-=f,l-=c):c<0?(s=et,c=-c,l-=c):f<0&&(s=rt,f=-f,h-=f);break;case rt:if(u){if(p.x<=0&&(l<=b||g>=T)){D=!1;break}w(q),c-=p.x,l+=p.x,f=c/u}else w(K),w(q),p.x<=0?l>b?(c-=p.x,l+=p.x):p.y>=0&&g>=T&&(D=!1):(c-=p.x,l+=p.x),p.y>=0?g=0&&(m>=M||g>=T)){D=!1;break}w(G),c+=p.x,f=c/u}else w(K),w(G),p.x>=0?m=0&&g>=T&&(D=!1):c+=p.x,p.y>=0?g0?s=p.y>0?at:et:p.x<0&&(l-=c,s=p.y>0?rt:it),p.y<0&&(h-=f),this.cropped||(B(this.cropBox,A),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}D&&(r.width=c,r.height=f,r.left=l,r.top=h,this.action=s,this.renderCropBox()),E(n,function(C){C.startX=C.endX,C.startY=C.endY})}},ri={crop:function(){return this.ready&&!this.cropped&&!this.disabled&&(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&O(this.dragBox,ut),B(this.cropBox,A),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=x({},this.initialImageData),this.canvasData=x({},this.initialCanvasData),this.cropBoxData=x({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(x(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),B(this.dragBox,ut),O(this.cropBox,A)),this},replace:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!this.disabled&&t&&(this.isImg&&(this.element.src=t),i?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,E(this.previews,function(e){e.getElementsByTagName("img")[0].src=t}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,B(this.cropper,zt)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,O(this.cropper,zt)),this},destroy:function(){var t=this.element;return t[y]?(t[y]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,e=this.canvasData,o=e.left,r=e.top;return this.moveTo(gt(t)?t:o+Number(t),gt(i)?i:r+Number(i))},moveTo:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,e=this.canvasData,o=!1;return t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.movable&&(d(t)&&(e.left=t,o=!0),d(i)&&(e.top=i,o=!0),o&&this.renderCanvas(!0)),this},zoom:function(t,i){var e=this.canvasData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(e.width*t/e.naturalWidth,null,i)},zoomTo:function(t,i,e){var o=this.options,r=this.canvasData,n=r.width,s=r.height,u=r.naturalWidth,l=r.naturalHeight;if(t=Number(t),t>=0&&this.ready&&!this.disabled&&o.zoomable){var h=u*t,c=l*t;if(tt(this.element,Ct,{ratio:t,oldRatio:n/u,originalEvent:e})===!1)return this;if(e){var f=this.pointers,m=le(this.cropper),g=f&&Object.keys(f).length?Ue(f):{pageX:e.pageX,pageY:e.pageY};r.left-=(h-n)*((g.pageX-m.left-r.left)/n),r.top-=(c-s)*((g.pageY-m.top-r.top)/s)}else Q(i)&&d(i.x)&&d(i.y)?(r.left-=(h-n)*((i.x-r.left)/n),r.top-=(c-s)*((i.y-r.top)/s)):(r.left-=(h-n)/2,r.top-=(c-s)/2);r.width=h,r.height=c,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return t=Number(t),d(t)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var i=this.imageData.scaleY;return this.scale(t,d(i)?i:1)},scaleY:function(t){var i=this.imageData.scaleX;return this.scale(d(i)?i:1,t)},scale:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,e=this.imageData,o=!1;return t=Number(t),i=Number(i),this.ready&&!this.disabled&&this.options.scalable&&(d(t)&&(e.scaleX=t,o=!0),d(i)&&(e.scaleY=i,o=!0),o&&this.renderCanvas(!0,!0)),this},getData:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.options,e=this.imageData,o=this.canvasData,r=this.cropBoxData,n;if(this.ready&&this.cropped){n={x:r.left-o.left,y:r.top-o.top,width:r.width,height:r.height};var s=e.width/e.naturalWidth;if(E(n,function(h,c){n[c]=h/s}),t){var u=Math.round(n.y+n.height),l=Math.round(n.x+n.width);n.x=Math.round(n.x),n.y=Math.round(n.y),n.width=l-n.x,n.height=u-n.y}}else n={x:0,y:0,width:0,height:0};return i.rotatable&&(n.rotate=e.rotate||0),i.scalable&&(n.scaleX=e.scaleX||1,n.scaleY=e.scaleY||1),n},setData:function(t){var i=this.options,e=this.imageData,o=this.canvasData,r={};if(this.ready&&!this.disabled&&Q(t)){var n=!1;i.rotatable&&d(t.rotate)&&t.rotate!==e.rotate&&(e.rotate=t.rotate,n=!0),i.scalable&&(d(t.scaleX)&&t.scaleX!==e.scaleX&&(e.scaleX=t.scaleX,n=!0),d(t.scaleY)&&t.scaleY!==e.scaleY&&(e.scaleY=t.scaleY,n=!0)),n&&this.renderCanvas(!0,!0);var s=e.width/e.naturalWidth;d(t.x)&&(r.left=t.x*s+o.left),d(t.y)&&(r.top=t.y*s+o.top),d(t.width)&&(r.width=t.width*s),d(t.height)&&(r.height=t.height*s),this.setCropBoxData(r)}return this},getContainerData:function(){return this.ready?x({},this.containerData):{}},getImageData:function(){return this.sized?x({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,i={};return this.ready&&E(["left","top","width","height","naturalWidth","naturalHeight"],function(e){i[e]=t[e]}),i},setCanvasData:function(t){var i=this.canvasData,e=i.aspectRatio;return this.ready&&!this.disabled&&Q(t)&&(d(t.left)&&(i.left=t.left),d(t.top)&&(i.top=t.top),d(t.width)?(i.width=t.width,i.height=t.width/e):d(t.height)&&(i.height=t.height,i.width=t.height*e),this.renderCanvas(!0)),this},getCropBoxData:function(){var t=this.cropBoxData,i;return this.ready&&this.cropped&&(i={left:t.left,top:t.top,width:t.width,height:t.height}),i||{}},setCropBoxData:function(t){var i=this.cropBoxData,e=this.options.aspectRatio,o,r;return this.ready&&this.cropped&&!this.disabled&&Q(t)&&(d(t.left)&&(i.left=t.left),d(t.top)&&(i.top=t.top),d(t.width)&&t.width!==i.width&&(o=!0,i.width=t.width),d(t.height)&&t.height!==i.height&&(r=!0,i.height=t.height),e&&(o?i.height=i.width/e:r&&(i.width=i.height*e)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var i=this.canvasData,e=$e(this.image,this.imageData,i,t);if(!this.cropped)return e;var o=this.getData(),r=o.x,n=o.y,s=o.width,u=o.height,l=e.width/Math.floor(i.naturalWidth);l!==1&&(r*=l,n*=l,s*=l,u*=l);var h=s/u,c=W({aspectRatio:h,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),f=W({aspectRatio:h,width:t.minWidth||0,height:t.minHeight||0},"cover"),m=W({aspectRatio:h,width:t.width||(l!==1?e.width:s),height:t.height||(l!==1?e.height:u)}),g=m.width,b=m.height;g=Math.min(c.width,Math.max(f.width,g)),b=Math.min(c.height,Math.max(f.height,b));var v=document.createElement("canvas"),M=v.getContext("2d");v.width=J(g),v.height=J(b),M.fillStyle=t.fillColor||"transparent",M.fillRect(0,0,g,b);var T=t.imageSmoothingEnabled,D=T===void 0?!0:T,z=t.imageSmoothingQuality;M.imageSmoothingEnabled=D,z&&(M.imageSmoothingQuality=z);var R=e.width,p=e.height,w=r,C=n,_,P,U,j,Y,V;w<=-s||w>R?(w=0,_=0,U=0,Y=0):w<=0?(U=-w,w=0,_=Math.min(R,s+w),Y=_):w<=R&&(U=0,_=Math.min(s,R-w),Y=_),_<=0||C<=-u||C>p?(C=0,P=0,j=0,V=0):C<=0?(j=-C,C=0,P=Math.min(p,u+C),V=P):C<=p&&(j=0,P=Math.min(u,p-C),V=P);var N=[w,C,_,P];if(Y>0&&V>0){var $=g/s;N.push(U*$,j*$,Y*$,V*$)}return M.drawImage.apply(M,[e].concat(Jt(N.map(function(ht){return Math.floor(J(ht))})))),v},setAspectRatio:function(t){var i=this.options;return!this.disabled&&!gt(t)&&(i.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var i=this.options,e=this.dragBox,o=this.face;if(this.ready&&!this.disabled){var r=t===At,n=i.movable&&t===ae;t=r||n?t:re,i.dragMode=t,st(e,ot,t),Z(e,bt,r),Z(e,yt,n),i.cropBoxMovable||(st(o,ot,t),Z(o,bt,r),Z(o,yt,n))}return this}},ni=L.Cropper,fe=function(){function a(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(we(this,a),!t||!_e.test(t.tagName))throw new Error("The first argument is required and must be an or element.");this.element=t,this.options=x({},qt,Q(i)&&i),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return be(a,[{key:"init",value:function(){var i=this.element,e=i.tagName.toLowerCase(),o;if(!i[y]){if(i[y]=this,e==="img"){if(this.isImg=!0,o=i.getAttribute("src")||"",this.originalUrl=o,!o)return;o=i.src}else e==="canvas"&&window.HTMLCanvasElement&&(o=i.toDataURL());this.load(o)}}},{key:"load",value:function(i){var e=this;if(i){this.url=i,this.imageData={};var o=this.element,r=this.options;if(!r.rotatable&&!r.scalable&&(r.checkOrientation=!1),!r.checkOrientation||!window.ArrayBuffer){this.clone();return}if(Ae.test(i)){Re.test(i)?this.read(Fe(i)):this.clone();return}var n=new XMLHttpRequest,s=this.clone.bind(this);this.reloading=!0,this.xhr=n,n.onabort=s,n.onerror=s,n.ontimeout=s,n.onprogress=function(){n.getResponseHeader("content-type")!==Gt&&n.abort()},n.onload=function(){e.read(n.response)},n.onloadend=function(){e.reloading=!1,e.xhr=null},r.checkCrossOrigin&&Kt(i)&&o.crossOrigin&&(i=Qt(i)),n.open("GET",i,!0),n.responseType="arraybuffer",n.withCredentials=o.crossOrigin==="use-credentials",n.send()}}},{key:"read",value:function(i){var e=this.options,o=this.imageData,r=Qe(i),n=0,s=1,u=1;if(r>1){this.url=Ke(i,Gt);var l=Ze(r);n=l.rotate,s=l.scaleX,u=l.scaleY}e.rotatable&&(o.rotate=n),e.scalable&&(o.scaleX=s,o.scaleY=u),this.clone()}},{key:"clone",value:function(){var i=this.element,e=this.url,o=i.crossOrigin,r=e;this.options.checkCrossOrigin&&Kt(e)&&(o||(o="anonymous"),r=Qt(e)),this.crossOrigin=o,this.crossOriginUrl=r;var n=document.createElement("img");o&&(n.crossOrigin=o),n.src=r||e,n.alt=i.alt||"The image to crop",this.image=n,n.onload=this.start.bind(this),n.onerror=this.stop.bind(this),O(n,Pt),i.parentNode.insertBefore(n,i.nextSibling)}},{key:"start",value:function(){var i=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var o=L.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(L.navigator.userAgent),r=function(l,h){x(i.imageData,{naturalWidth:l,naturalHeight:h,aspectRatio:l/h}),i.initialImageData=x({},i.imageData),i.sizing=!1,i.sized=!0,i.build()};if(e.naturalWidth&&!o){r(e.naturalWidth,e.naturalHeight);return}var n=document.createElement("img"),s=document.body||document.documentElement;this.sizingImage=n,n.onload=function(){r(n.width,n.height),o||s.removeChild(n)},n.src=e.src,o||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",s.appendChild(n))}},{key:"stop",value:function(){var i=this.image;i.onload=null,i.onerror=null,i.parentNode.removeChild(i),this.image=null}},{key:"build",value:function(){if(!(!this.sized||this.ready)){var i=this.element,e=this.options,o=this.image,r=i.parentNode,n=document.createElement("div");n.innerHTML=Ie;var s=n.querySelector(".".concat(y,"-container")),u=s.querySelector(".".concat(y,"-canvas")),l=s.querySelector(".".concat(y,"-drag-box")),h=s.querySelector(".".concat(y,"-crop-box")),c=h.querySelector(".".concat(y,"-face"));this.container=r,this.cropper=s,this.canvas=u,this.dragBox=l,this.cropBox=h,this.viewBox=s.querySelector(".".concat(y,"-view-box")),this.face=c,u.appendChild(o),O(i,A),r.insertBefore(s,i.nextSibling),B(o,Pt),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,O(h,A),e.guides||O(h.getElementsByClassName("".concat(y,"-dashed")),A),e.center||O(h.getElementsByClassName("".concat(y,"-center")),A),e.background&&O(s,"".concat(y,"-bg")),e.highlight||O(c,Ce),e.cropBoxMovable&&(O(c,yt),st(c,ot,St)),e.cropBoxResizable||(O(h.getElementsByClassName("".concat(y,"-line")),A),O(h.getElementsByClassName("".concat(y,"-point")),A)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),S(e.ready)&&I(i,Ut,e.ready,{once:!0}),tt(i,Ut)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var i=this.cropper.parentNode;i&&i.removeChild(this.cropper),B(this.element,A)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=ni,a}},{key:"setDefaults",value:function(i){x(qt,Q(i)&&i)}}]),a}();x(fe.prototype,Je,ti,ei,ii,ai,ri);const oi={aspectRatio:16/9,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,autoCrop:!0,background:!0,highlight:!0,center:!0,responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,scalable:!0,modal:!0,guides:!0,movable:!0,rotatable:!0},si={src:{type:String,required:!0},alt:{type:String},width:{type:[String,Number],default:""},height:{type:[String,Number],default:"360px"},crossorigin:{type:String||Object,default:void 0},imageStyle:{type:Object,default(){return{}}},options:{type:Object,default(){return{}}}},hi=Vue.defineComponent({name:"ReCropper",props:si,setup(a){const t=Vue.ref(null),i=Vue.ref(),e=Vue.ref(!1),o=Vue.computed(()=>({height:a.height,width:a.width,maxWidth:"100%",...a.imageStyle})),r=Vue.computed(()=>{const{height:s,width:u}=a;return{width:`${u}`.replace(/px/,"")+"px",height:`${s}`.replace(/px/,"")+"px"}});function n(){const s=Vue.unref(i);s&&(t.value=new fe(s,{...oi,ready:()=>{e.value=!0},...a.options}))}return Vue.onMounted(()=>{Vue.nextTick(()=>{n()})}),{props:a,imgElRef:i,cropper:t,getWrapperStyle:r,getImageStyle:o}},render(){return Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("div",{class:ge({excludeListeners:!0,excludeKeys:["class"]}),style:this.getWrapperStyle},[Vue.createVNode("img",{ref:"imgElRef",src:this.props.src,alt:this.props.alt,crossorigin:this.props.crossorigin,style:this.getImageStyle},null)])])}}),ci=me(hi),li=ci,ui="/vue-pure-admin/static/jpeg/picture-596f7aa0.jpeg",fi=a=>(Vue.pushScopeId("data-v-e6b30337"),a=a(),Vue.popScopeId(),a),pi=fi(()=>Vue.createElementVNode("div",{class:"card-header"},[Vue.createElementVNode("span",{class:"font-medium"},"图片裁剪组件")],-1)),di={class:"cropper-container"},gi=["src"],mi={key:0},vi=Vue.defineComponent({name:"Cropping",__name:"index",setup(a){const t=Vue.ref(),i=Vue.ref(null),e=Vue.ref(""),o=()=>{Vue.nextTick(()=>{t.value.cropper.getCroppedCanvas().toBlob(r=>{const n=new FileReader;n.onloadend=s=>{e.value=s.target.result,i.value=t.value.cropper.getData()},n.readAsDataURL(r)},"image/jpeg")})};return(r,n)=>{const s=Vue.resolveComponent("el-button"),u=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(u,{shadow:"never"},{header:Vue.withCtx(()=>[pi]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",di,[Vue.createVNode(Vue.unref(li),{ref_key:"refCropper",ref:t,width:"40vw",src:Vue.unref(ui)},null,8,["src"]),e.value?(Vue.openBlock(),Vue.createElementBlock("img",{key:0,src:e.value,class:"croppered"},null,8,gi)):Vue.createCommentVNode("",!0)]),Vue.createVNode(s,{type:"primary",onClick:o},{default:Vue.withCtx(()=>[Vue.createTextVNode("裁剪")]),_:1}),e.value?(Vue.openBlock(),Vue.createElementBlock("p",mi,"裁剪后图片信息:"+Vue.toDisplayString(i.value),1)):Vue.createCommentVNode("",!0)]),_:1})}}});const bi=ve(vi,[["__scopeId","data-v-e6b30337"]]);export{bi as default}; diff --git a/dist/static/js/index-6c22368c.js b/dist/static/js/index-6c22368c.js new file mode 100644 index 000000000..d14d68dd3 --- /dev/null +++ b/dist/static/js/index-6c22368c.js @@ -0,0 +1 @@ +import{d as x,J as A,D as F,x as h,bB as I,H as M,r as N,b2 as k,c as d,f as c,e as H,w as l,i as u,k as C,F as g,l as b,g as n,u as m,h as s,C as f,G as $,bC as y}from"./index-0dd8d5e4.js";import{u as S}from"./hooks-65e1ad34.js";const U=u("div",null,"标签页复用,超出限制自动关闭",-1),J={class:"flex flex-wrap items-center"},L=u("p",null,"query传参模式:",-1),P={class:"flex flex-wrap items-center"},j=u("p",null,"params传参模式:",-1),O=x({name:"Tabs",__name:"index",setup(z){const{toDetail:v,router:B}=S(),E=A(F().wholeMenus,!0),p=h(()=>I(M(E),0,{disabled:!0})),i=N([]),_=h(()=>{var a;return(a=k())==null?void 0:a.multiTags});function D(){i.value.length!==0&&i.value.forEach(a=>{const t=y(p.value,a).redirect??y(p.value,a).path;k().handleTags("splice",t),t==="/tabs/index"&&B.push({path:_.value[_.value.length-1].path})})}return(a,t)=>{const o=d("el-button"),r=d("el-divider"),T=d("el-tree-select"),q=d("el-link"),w=d("el-card");return c(),H(w,{shadow:"never"},{header:l(()=>[U]),default:l(()=>[u("div",J,[L,(c(),C(g,null,b(6,e=>n(o,{class:"m-2",key:e,onClick:V=>m(v)(e,"query")},{default:l(()=>[s(" 打开"+f(e)+"详情页 ",1)]),_:2},1032,["onClick"])),64))]),n(r),u("div",P,[j,(c(),C(g,null,b(6,e=>n(o,{class:"m-2",key:e,onClick:V=>m(v)(e,"params")},{default:l(()=>[s(" 打开"+f(e)+"详情页 ",1)]),_:2},1032,["onClick"])),64))]),n(r),n(T,{class:"w-[300px]","node-key":"uniqueId",placeholder:"请选择要关闭的标签",clearable:"",multiple:"",filterable:"","default-expand-all":"",props:{label:e=>m($)(e.meta.title),value:"uniqueId",children:"children",disabled:"disabled"},data:p.value,modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e)},{default:l(({data:e})=>[u("span",null,f(m($)(e.meta.title)),1)]),_:1},8,["props","data","modelValue"]),n(o,{class:"m-2",onClick:D},{default:l(()=>[s("关闭标签")]),_:1}),n(r),n(o,{onClick:t[1]||(t[1]=e=>a.$router.push({name:"Menu1-2-2"}))},{default:l(()=>[s(" 跳转页内菜单(传name对象,优先推荐) ")]),_:1}),n(o,{onClick:t[2]||(t[2]=e=>a.$router.push("/nested/menu1/menu1-2/menu1-2-2"))},{default:l(()=>[s(" 跳转页内菜单(直接传要跳转的路径) ")]),_:1}),n(o,{onClick:t[3]||(t[3]=e=>a.$router.push({path:"/nested/menu1/menu1-2/menu1-2-2"}))},{default:l(()=>[s(" 跳转页内菜单(传path对象) ")]),_:1}),n(r),n(o,{onClick:t[4]||(t[4]=e=>a.$router.push({name:"Menu1-2-2",query:{text:"传name对象,优先推荐"}}))},{default:l(()=>[s(" 携参跳转页内菜单(传name对象,优先推荐) ")]),_:1}),n(o,{onClick:t[5]||(t[5]=e=>a.$router.push({path:"/nested/menu1/menu1-2/menu1-2-2",query:{text:"传path对象"}}))},{default:l(()=>[s(" 携参跳转页内菜单(传path对象) ")]),_:1}),n(q,{class:"ml-4",href:"https://router.vuejs.org/zh/guide/essentials/navigation.html#%E5%AF%BC%E8%88%AA%E5%88%B0%E4%B8%8D%E5%90%8C%E7%9A%84%E4%BD%8D%E7%BD%AE",target:"_blank"},{default:l(()=>[s(" 点击查看更多跳转方式 ")]),_:1}),n(r),n(o,{onClick:t[6]||(t[6]=e=>a.$router.push({name:"Empty"}))},{default:l(()=>[s(" 跳转无Layout的空白页面 ")]),_:1})]),_:1})}}});export{O as default}; diff --git a/dist/static/js/index-6cb6f2c7.js b/dist/static/js/index-6cb6f2c7.js new file mode 100644 index 000000000..bcda7fbe4 --- /dev/null +++ b/dist/static/js/index-6cb6f2c7.js @@ -0,0 +1 @@ +import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-316dae94.js";import"./columns-f5c5c5b8.js";import"./data-4845d266.js";import"./index-0dd8d5e4.js";import"./message-ac5811da.js";export{o as default}; diff --git a/dist/static/js/index-771e958b.js b/dist/static/js/index-771e958b.js deleted file mode 100644 index 1ddd192bb..000000000 --- a/dist/static/js/index-771e958b.js +++ /dev/null @@ -1 +0,0 @@ -const ne=e=>Array.isArray(e),le=e=>ne(e)?e:[e];let he=function(e){let t=function(f){return le(f).forEach(w=>{var L;return b.set(Symbol((L=w.char)==null?void 0:L.innerText),o({...w}))}),this},n=()=>m().filter(f=>f.typeable),a=function(f,w){let L=[...b.keys()];b.set(L[f],o(w))},o=f=>(f.shouldPauseCursor=function(){return!!(this.typeable||this.cursorable||this.deletable)},f),s=function(){b.forEach(f=>delete f.done)},y=function(){b=new Map,t(e)},d=()=>b,m=()=>Array.from(b.values()),p=f=>b.delete(f),_=(f=!1)=>f?m():m().filter(w=>!w.done),S=(f,w=!1)=>w?b.delete(f):b.get(f).done=!0,b=new Map;return t(e),{add:t,set:a,wipe:y,reset:s,destroy:p,done:S,getItems:_,getQueue:d,getTypeable:n}};const ae=e=>Array.from(e),W=e=>document.createTextNode(e);let j=e=>([...e.childNodes].forEach(t=>{if(t.nodeValue){[...t.nodeValue].forEach(n=>{t.parentNode.insertBefore(W(n),t)}),t.remove();return}j(t)}),e);const se=e=>{let t=document.implementation.createHTMLDocument();return t.body.innerHTML=e,j(t.body)},ie="data-typeit-id",A="ti-cursor",be="END",ge={started:!1,completed:!1,frozen:!1,destroyed:!1},x={breakLines:!0,cursor:{autoPause:!0,autoPauseDelay:500,animation:{frames:[0,0,1].map(e=>({opacity:e})),options:{iterations:1/0,easing:"steps(2, start)",fill:"forwards"}}},cursorChar:"|",cursorSpeed:1e3,deleteSpeed:null,html:!0,lifeLike:!0,loop:!1,loopDelay:750,nextStringDelay:750,speed:100,startDelay:250,startDelete:!1,strings:[],waitUntilVisible:!1,beforeString:()=>{},afterString:()=>{},beforeStep:()=>{},afterStep:()=>{},afterComplete:()=>{}},Te=`[${ie}]:before {content: '.'; display: inline-block; width: 0; visibility: hidden;}`;function oe(e,t=!1,n=!1){let a=e.querySelector(`.${A}`),o=document.createTreeWalker(e,NodeFilter.SHOW_ALL,{acceptNode:d=>{var m,p;if(a&&n){if((m=d.classList)!=null&&m.contains(A))return NodeFilter.FILTER_ACCEPT;if(a.contains(d))return NodeFilter.FILTER_REJECT}return(p=d.classList)!=null&&p.contains(A)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),s,y=[];for(;s=o.nextNode();)s.originalParent||(s.originalParent=s.parentNode),y.push(s);return t?y.reverse():y}function Se(e){return oe(se(e))}function we(e,t=!0){return t?Se(e):ae(e).map(W)}const H=e=>document.createElement(e),ue=(e,t="")=>{let n=H("style");n.id=t,n.appendChild(W(e)),document.head.appendChild(n)},Y=e=>(ne(e)||(e=[e/2,e/2]),e),Z=(e,t)=>Math.abs(Math.random()*(e+t-(e-t))+(e-t));let ee=e=>e/2;function Ee(e){let{speed:t,deleteSpeed:n,lifeLike:a}=e;return n=n!==null?n:t/3,a?[Z(t,ee(t)),Z(n,ee(n))]:[t,n]}const Ce=e=>(e.forEach(clearTimeout),[]),_e=()=>Math.random().toString().substring(2,9),J=e=>"value"in e;let Pe=e=>J(e)?ae(e.value):oe(e,!0).filter(t=>!(t.childNodes.length>0));const Ie=(e,t)=>{new IntersectionObserver((a,o)=>{a.forEach(s=>{s.isIntersecting&&(t(),o.unobserve(e))})},{threshold:1}).observe(e)};let v=e=>typeof e=="function"?e():e;const de=e=>Number.isInteger(e);let X=(e,t=document,n=!1)=>t[`querySelector${n?"All":""}`](e),Ne=e=>/body/i.test(e==null?void 0:e.tagName),Ae=(e,t)=>{if(J(e)){e.value=`${e.value}${t.textContent}`;return}t.innerHTML="";let n=Ne(t.originalParent)?e:t.originalParent||e;n.insertBefore(t,X("."+A,n)||null)},Le=(e,t,n)=>Math.min(Math.max(t+e,0),n.length);const k=(e,t)=>Object.assign({},e,t),De=(e,t)=>{if(!e)return;let n=e.parentNode;(n.childNodes.length>1||n.isSameNode(t)?e:n).remove()},ve=(e,t,n)=>{let a=t[n-1],o=X(`.${A}`,e);e=(a==null?void 0:a.parentNode)||e,e.insertBefore(o,a||null)};function xe(e){return typeof e=="string"?X(e):e}const ke=e=>/<(.+)>(.*?)<\/(.+)>/.test(e.outerHTML);let Me=(e,t,n)=>new Promise(a=>{let o=async()=>{await e(),a()};n.push(setTimeout(o,t||0))}),Re={"font-family":"","font-weight":"","font-size":"","font-style":"","line-height":"",color:"",transform:"translateX(-.125em)"},$e=(e,t)=>{let a=`${`[${ie}='${e}']`} .${A}`,o=getComputedStyle(t),s=Object.entries(Re).reduce((y,[d,m])=>`${y} ${d}: var(--ti-cursor-${d}, ${m||o[d]});`,"");ue(`${a} { display: inline-block; width: 0; ${s} }`,e)};const F=(e,t)=>new Array(t).fill(e),te=({queueItems:e,selector:t,cursorPosition:n,to:a})=>{if(de(t))return t*-1;let o=new RegExp(be,"i").test(a),s=t?[...e].reverse().findIndex(({char:d})=>{let m=d.parentElement,p=m.matches(t);return o&&p?!0:p&&m.firstChild.isSameNode(d)}):-1;s<0&&(s=o?0:e.length-1);let y=o?0:1;return s-n+y};let Q=e=>new Promise(t=>{requestAnimationFrame(async()=>{t(await e())})}),fe=e=>e==null?void 0:e.getAnimations().find(t=>t.id===e.dataset.tiAnimationId),ce=({cursor:e,frames:t,options:n})=>{let a=e.animate(t,n);return a.pause(),a.id=e.dataset.tiAnimationId,Q(()=>{Q(()=>{a.play()})}),a},Fe=({cursor:e,options:t,cursorOptions:n})=>{if(!e||!n)return;let a=fe(e),o;a&&(t.delay=a.effect.getComputedTiming().delay,o=a.currentTime,a.cancel());let s=ce({cursor:e,frames:n.animation.frames,options:t});return o&&(s.currentTime=o),s},re=e=>{var t;return(t=e.func)==null?void 0:t.call(null)},He=async({index:e,queueItems:t,wait:n,cursor:a,cursorOptions:o})=>{let s=t[e][1],y=[],d=e,m=s,p=()=>m&&!m.delay,_=s.shouldPauseCursor()&&o.autoPause;for(;p();)y.push(m),p()&&d++,m=t[d]?t[d][1]:null;if(y.length)return await Q(async()=>{for(let f of y)await re(f)}),d-1;let S=fe(a),b;return S&&(b={...S.effect.getComputedTiming(),delay:_?o.autoPauseDelay:0}),await n(async()=>{S&&_&&S.cancel(),await Q(()=>{re(s)})},s.delay),await Fe({cursor:a,options:b,cursorOptions:o}),e},Qe=e=>{var t,n;if(typeof e=="object"){let a={},{frames:o,options:s}=x.cursor.animation;return a.animation=e.animation||{},a.animation.frames=((t=e.animation)==null?void 0:t.frames)||o,a.animation.options=k(s,((n=e.animation)==null?void 0:n.options)||{}),a.autoPause=e.autoPause??x.cursor.autoPause,a.autoPauseDelay=e.autoPauseDelay||x.cursor.autoPauseDelay,a}return e===!0?x.cursor:e};const Be=function(e,t={}){let n=async(r,l,u=!1)=>{E.frozen&&await new Promise(c=>{this.unfreeze=()=>{E.frozen=!1,c()}}),u||await i.beforeStep(this),await Me(r,l,q),u||await i.afterStep(this)},a=(r,l)=>He({index:r,queueItems:l,wait:n,cursor:N,cursorOptions:i.cursor}),o=r=>De(r,h),s=()=>J(h),y=(r=0)=>Ee(i)[r],d=()=>Pe(h),m=(r={})=>{let l=r.delay;l&&g.add({delay:l})},p=(r,l)=>(g.add(r),m(l),this),_=()=>K??D,S=(r={})=>[{func:()=>R(r)},{func:()=>R(i)}],b=r=>{let l=i.nextStringDelay;g.add([{delay:l[0]},...r,{delay:l[1]}])},f=()=>{if(s())return;let r=H("span");return r.className=A,O?(r.innerHTML=se(i.cursorChar).innerHTML,r):(r.style.visibility="hidden",r)},w=async()=>{if(!s()&&N&&h.appendChild(N),O){$e(U,h),N.dataset.tiAnimationId=U;let{animation:r}=i.cursor,{frames:l,options:u}=r;ce({frames:l,cursor:N,options:{duration:i.cursorSpeed,...u}})}},L=()=>{let r=i.strings.filter(l=>!!l);r.forEach((l,u)=>{if(this.type(l),u+1===r.length)return;let c=i.breakLines?[{func:()=>B(H("BR")),typeable:!0}]:F({func:$,delay:y(1)},g.getTypeable().length);b(c)})},ye=async r=>{let l=_();l&&await G({value:l});let u=d().map(c=>[Symbol(),{func:$,delay:y(1),deletable:!0,shouldPauseCursor:()=>!0}]);for(let c=0;c{let l=h.innerHTML;return l?(h.innerHTML="",i.startDelete?(h.innerHTML=l,j(h),b(F({func:$,delay:y(1),deletable:!0},d().length)),r):l.replace(//g,"").trim().split(//).concat(r)):r},M=async(r=!0)=>{E.started=!0;let l=u=>{g.done(u,!r)};try{let u=[...g.getQueue()];for(let T=0;TV+z).forEach(V=>{let[z]=u[V];l(z)}),T=I}l(P)}}if(!r)return this;if(E.completed=!0,await i.afterComplete(this),!i.loop)throw"";let c=i.loopDelay;n(async()=>{await ye(c[0]),M()},c[1])}catch{}return this},G=async r=>{D=Le(r,D,d()),ve(h,d(),D)},B=r=>Ae(h,r),R=async r=>i=k(i,r),me=async()=>{if(s()){h.value="";return}d().forEach(o)},$=()=>{let r=d();r.length&&(s()?h.value=h.value.slice(0,-1):o(r[D]))};this.break=function(r){return p({func:()=>B(H("BR")),typeable:!0},r)},this.delete=function(r=null,l={}){r=v(r);let u=S(l),c=r,{instant:T,to:P}=l,C=g.getTypeable(),I=(()=>c===null?C.length:de(c)?c:te({queueItems:C,selector:c,cursorPosition:_(),to:P}))();return p([u[0],...F({func:$,delay:T?0:y(1),deletable:!0},I),u[1]],l)},this.empty=function(r={}){return p({func:me},r)},this.exec=function(r,l={}){let u=S(l);return p([u[0],{func:()=>r(this)},u[1]],l)},this.move=function(r,l={}){r=v(r);let u=S(l),{instant:c,to:T}=l,P=te({queueItems:g.getTypeable(),selector:r===null?"":r,to:T,cursorPosition:_()}),C=P<0?-1:1;return K=_()+P,p([u[0],...F({func:()=>G(C),delay:c?0:y(),cursorable:!0},Math.abs(P)),u[1]],l)},this.options=function(r,l={}){return r=v(r),R(r),p({},l)},this.pause=function(r,l={}){return p({delay:v(r)},l)},this.type=function(r,l={}){r=v(r);let{instant:u}=l,c=S(l),P=we(r,i.html).map(I=>({func:()=>B(I),char:I,delay:u||ke(I)?0:y(),typeable:I.nodeType===Node.TEXT_NODE})),C=[c[0],{func:async()=>await i.beforeString(r,this)},...P,{func:async()=>await i.afterString(r,this)},c[1]];return p(C,l)},this.is=function(r){return E[r]},this.destroy=function(r=!0){q=Ce(q),v(r)&&N&&o(N),E.destroyed=!0},this.freeze=function(){E.frozen=!0},this.unfreeze=()=>{},this.reset=function(r){!this.is("destroyed")&&this.destroy(),r?(g.wipe(),r(this)):g.reset(),D=0;for(let l in E)E[l]=!1;return h[s()?"value":"innerHTML"]="",this},this.go=function(){return E.started?this:(w(),i.waitUntilVisible?(Ie(h,M.bind(this)),this):(M(),this))},this.flush=function(r=()=>{}){return w(),M(!1).then(r),this},this.getQueue=()=>g,this.getOptions=()=>i,this.updateOptions=r=>R(r),this.getElement=()=>h;let h=xe(e),q=[],D=0,K=null,E=k({},ge);t.cursor=Qe(t.cursor??x.cursor);let i=k(x,t);i=k(i,{html:!s()&&i.html,nextStringDelay:Y(i.nextStringDelay),loopDelay:Y(i.loopDelay)});let U=_e(),g=he([{delay:i.startDelay}]);h.dataset.typeitId=U,ue(Te);let O=!!i.cursor&&!s(),N=f();i.strings=pe(le(i.strings)),i.strings.length&&L()},qe=Vue.defineComponent({name:"TypeIt",props:{speed:{type:Number,default:200},values:{type:Array,defalut:[]},className:{type:String,default:"type-it"},cursor:{type:Boolean,default:!0}},render(){return Vue.h("span",{class:this.className},{default:()=>[]})},mounted(){new Be(`.${this.className}`,{strings:this.values,speed:this.speed,cursor:this.cursor}).go()}});export{qe as T}; diff --git a/dist/static/js/index-785bcb23.js b/dist/static/js/index-785bcb23.js deleted file mode 100644 index 4f3742c2b..000000000 --- a/dist/static/js/index-785bcb23.js +++ /dev/null @@ -1,10 +0,0 @@ -import S from"./Card-83689119.js";import{k as z}from"./index-c61a73ff.js";import{m as N}from"./message-9ae1daa3.js";import{_ as b}from"./DialogForm.vue_vue_type_script_setup_true_lang-239ec3a6.js";import{u as B}from"./hooks-55e29a46.js";import{S as D}from"./search-4b9e88d3.js";import{A as I}from"./add-circle-line-438b436c.js";import"./more-2-fill-4bb0933c.js";const A=r=>z.request("post","/getCardList",{data:r}),E={class:"main"},P={class:"w-full flex justify-between mb-4"},M=` - - `,G=Vue.defineComponent({name:"ListCard",__name:"index",setup(r){const c={name:"",status:"",description:"",type:"",mark:""},e=Vue.ref({current:1,pageSize:12,total:0}),u=Vue.ref([]),s=Vue.ref(!0),V=async()=>{try{const{data:t}=await A();u.value=t.list,e.value={...e.value,total:t.list.length}}catch{}finally{setTimeout(()=>{s.value=!1},500)}};Vue.onMounted(()=>{V()});const l=Vue.ref(!1),i=Vue.ref({...c}),a=Vue.ref(""),m=t=>{e.value.pageSize=t,e.value.current=1},p=t=>{e.value.current=t},v=t=>{ElementPlus.ElMessageBox.confirm(t?`确认删除后${t.name}的所有产品信息将被清空, 且无法恢复`:"","提示",{type:"warning"}).then(()=>{N("删除成功",{type:"success"})}).catch(()=>{})},d=t=>{l.value=!0,Vue.nextTick(()=>{i.value={...t,status:t!=null&&t.isSetup?"1":"0"}})};return(t,n)=>{const g=Vue.resolveComponent("el-button"),f=Vue.resolveComponent("IconifyIconOffline"),_=Vue.resolveComponent("el-icon"),C=Vue.resolveComponent("el-input"),h=Vue.resolveComponent("el-empty"),w=Vue.resolveComponent("el-col"),x=Vue.resolveComponent("el-row"),k=Vue.resolveComponent("el-pagination"),y=Vue.resolveDirective("loading");return Vue.openBlock(),Vue.createElementBlock("div",E,[Vue.createElementVNode("div",P,[Vue.createVNode(g,{icon:Vue.unref(B)(Vue.unref(I)),onClick:n[0]||(n[0]=o=>l.value=!0)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 新建产品 ")]),_:1},8,["icon"]),Vue.createVNode(C,{style:{width:"300px"},modelValue:a.value,"onUpdate:modelValue":n[1]||(n[1]=o=>a.value=o),placeholder:"请输入产品名称",clearable:""},{suffix:Vue.withCtx(()=>[Vue.createVNode(_,{class:"el-input__icon"},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(f,{icon:Vue.unref(D)},null,8,["icon"]),[[Vue.vShow,a.value.length===0]])]),_:1})]),_:1},8,["modelValue"])]),Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",{"element-loading-svg":M,"element-loading-svg-view-box":"-10, -10, 50, 50"},[Vue.withDirectives(Vue.createVNode(h,{description:"暂无数据"},null,512),[[Vue.vShow,u.value.slice(e.value.pageSize*(e.value.current-1),e.value.pageSize*e.value.current).filter(o=>o.name.toLowerCase().includes(a.value.toLowerCase())).length===0]]),e.value.total>0?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[Vue.createVNode(x,{gutter:16},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(u.value.slice(e.value.pageSize*(e.value.current-1),e.value.pageSize*e.value.current).filter(o=>o.name.toLowerCase().includes(a.value.toLowerCase())),(o,L)=>(Vue.openBlock(),Vue.createBlock(w,{key:L,xs:24,sm:12,md:8,lg:6,xl:4},{default:Vue.withCtx(()=>[Vue.createVNode(S,{product:o,onDeleteItem:v,onManageProduct:d},null,8,["product"])]),_:2},1024))),128))]),_:1}),Vue.createVNode(k,{class:"float-right",currentPage:e.value.current,"onUpdate:currentPage":n[2]||(n[2]=o=>e.value.current=o),"page-size":e.value.pageSize,total:e.value.total,"page-sizes":[12,24,36],background:!0,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:m,onCurrentChange:p},null,8,["currentPage","page-size","total"])],64)):Vue.createCommentVNode("",!0)])),[[y,s.value]]),Vue.createVNode(b,{visible:l.value,"onUpdate:visible":n[3]||(n[3]=o=>l.value=o),data:i.value},null,8,["visible","data"])])}}});export{G as default}; diff --git a/dist/static/js/index-7aee3e8c.js b/dist/static/js/index-7aee3e8c.js deleted file mode 100644 index c482c1c9c..000000000 --- a/dist/static/js/index-7aee3e8c.js +++ /dev/null @@ -1,2 +0,0 @@ -import{list as m}from"./list-83f31031.js";import{_}from"./index-c61a73ff.js";import"./base.vue_vue_type_script_setup_true_lang-ae528376.js";import"./data-5ec60fc2.js";import"./stripe.vue_vue_type_script_setup_true_lang-5d3a4fba.js";import"./border.vue_vue_type_script_setup_true_lang-0ee9f7f0.js";import"./status.vue_vue_type_style_index_0_lang-fee2fcc7.js";import"./fixHeader.vue_vue_type_script_setup_true_lang-b89a2c5c.js";import"./fixColumn.vue_vue_type_script_setup_true_lang-8f46e4a1.js";import"./fluidHeight.vue_vue_type_script_setup_true_lang-91bcfb99.js";import"./groupHeader.vue_vue_type_script_setup_true_lang-1d591a0b.js";import"./radio.vue_vue_type_script_setup_true_lang-1c8aa556.js";import"./multipleChoice.vue_vue_type_script_setup_true_lang-12c2e5fd.js";import"./sortable.vue_vue_type_script_setup_true_lang-29dd24dd.js";import"./filters.vue_vue_type_script_setup_true_lang-28ab2539.js";import"./index.vue_vue_type_script_setup_true_lang-768133c2.js";import"./columns-3d82d5a7.js";import"./message-9ae1daa3.js";import"./index.vue_vue_type_script_setup_true_lang-9b251ba5.js";import"./columns-c7818246.js";import"./expand.vue_vue_type_script_setup_true_lang-61ed44df.js";import"./tree.vue_vue_type_script_setup_true_lang-9318b807.js";import"./totalRow.vue_vue_type_script_setup_true_lang-e58d18d0.js";import"./merge.vue_vue_type_script_setup_true_lang-72107030.js";import"./customIndex.vue_vue_type_script_setup_true_lang-ea44b08c.js";import"./layout.vue_vue_type_script_setup_true_lang-9b77194a.js";import"./nestProp.vue_vue_type_script_setup_true_lang-85c33e1b.js";import"./imgPreview.vue_vue_type_script_setup_true_lang-cd30c44a.js";const s={class:"card-header"},V={class:"font-medium"},d=Vue.defineComponent({name:"PureTable",__name:"index",setup(f){const t=Vue.ref(0);function r({index:o}){t.value=o}return(o,x)=>{const l=Vue.resolveComponent("el-link"),p=Vue.resolveComponent("el-alert"),a=Vue.resolveComponent("el-tooltip"),c=Vue.resolveComponent("el-tab-pane"),u=Vue.resolveComponent("el-tabs"),i=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(i,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",s,[Vue.createElementVNode("span",V,[Vue.createTextVNode(" 平台二次封装 element-plus 的 Table ,完全兼容 Api 并提供灵活的配置项以及完善的类型提醒,再也不用将代码都写在 template 里了,欢迎 Star "),Vue.createVNode(l,{href:"https://github.com/pure-admin/pure-admin-table",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" @pureadmin/table ")]),_:1})])])]),default:Vue.withCtx(()=>[Vue.createVNode(p,{title:`基础用法中大部分表格都没设置 row-key ,不过最好都设置一下,后端需返回唯一值的字段,比如id 作用:1. 用来优化 Table - 的渲染,尤其当字段在深层结构中;2. 防止某些操作导致表格组件内部混乱`,type:"info",closable:!1}),Vue.createVNode(u,{onTabClick:r},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(m),(e,n)=>(Vue.openBlock(),Vue.createBlock(c,{key:e.key,lazy:!0},{label:Vue.withCtx(()=>[Vue.createVNode(a,{content:`(第 ${n+1} 个示例)${e.content}`,placement:"top-end"},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(e.title),1)]),_:2},1032,["content"])]),default:Vue.withCtx(()=>[t.value==n?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(e.component),{key:0})):Vue.createCommentVNode("",!0)]),_:2},1024))),128))]),_:1})]),_:1})}}});const O=_(d,[["__scopeId","data-v-6ccac02e"]]);export{O as default}; diff --git a/dist/static/js/index-7ba69997.js b/dist/static/js/index-7ba69997.js new file mode 100644 index 000000000..e9f672a19 --- /dev/null +++ b/dist/static/js/index-7ba69997.js @@ -0,0 +1 @@ +import{d as o,r as l,Y as u,c as r,k as p,i as m,C as c,u as d,g as i,f as _}from"./index-0dd8d5e4.js";const f={class:"dark:text-white"},x=o({name:"Menu2",__name:"index",setup(V){const e=l(""),{t}=u();return(k,n)=>{const s=r("el-input");return _(),p("div",f,[m("p",null,c(d(t)("menus.hsmenu2")),1),i(s,{modelValue:e.value,"onUpdate:modelValue":n[0]||(n[0]=a=>e.value=a)},null,8,["modelValue"])])}}});export{x as default}; diff --git a/dist/static/js/index-7be406e1.js b/dist/static/js/index-7be406e1.js new file mode 100644 index 000000000..bd3ed0792 --- /dev/null +++ b/dist/static/js/index-7be406e1.js @@ -0,0 +1 @@ +import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-f7bd604c.js";import"./columns-c20796e3.js";import"./data-4845d266.js";import"./index-0dd8d5e4.js";export{o as default}; diff --git a/dist/static/js/index-1d8001c7.js b/dist/static/js/index-7c86d1c0.js similarity index 88% rename from dist/static/js/index-1d8001c7.js rename to dist/static/js/index-7c86d1c0.js index 68409e767..d98f6c45c 100644 --- a/dist/static/js/index-1d8001c7.js +++ b/dist/static/js/index-7c86d1c0.js @@ -1,5 +1,5 @@ -import{g as ut,c as bi,L as Ti,_ as Ei}from"./index-c61a73ff.js";import{u as wi}from"./hooks-55e29a46.js";const Si={width:1024,height:1024,body:''},xi=Si;function wt(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function B(o){for(var a=1;a"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 p(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function lt(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(o)}function I(o){var a=Pi();return function(){var t=S(o),e;if(a){var i=S(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return lt(this,e)}}function Ii(o,a){for(;!Object.prototype.hasOwnProperty.call(o,a)&&(o=S(o),o!==null););return o}function x(){return typeof Reflect<"u"&&Reflect.get?x=Reflect.get.bind():x=function(a,r,t){var e=Ii(a,r);if(e){var i=Object.getOwnPropertyDescriptor(e,r);return i.get?i.get.call(arguments.length<3?a:t):i.value}},x.apply(this,arguments)}function re(o){return Ai(o)||Li(o)||Di(o)||Ri()}function Ai(o){if(Array.isArray(o))return rt(o)}function Li(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function Di(o,a){if(o){if(typeof o=="string")return rt(o,a);var r=Object.prototype.toString.call(o).slice(8,-1);if(r==="Object"&&o.constructor&&(r=o.constructor.name),r==="Map"||r==="Set")return Array.from(o);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rt(o,a)}}function rt(o,a){(a==null||a>o.length)&&(a=o.length);for(var r=0,t=new Array(a);r-1,Ye={info:"color: #525252; background-color: #90ee90;",error:"color: #525252; background-color: red;",warn:"color: #525252; background-color: yellow; "},Ke="%c[xgplayer]",L={config:{debug:Ni?3:0},logInfo:function(a){for(var r,t=arguments.length,e=new Array(t>1?t-1:0),i=1;i=3&&(r=console).log.apply(r,[Ke,Ye.info,a].concat(e))},logWarn:function(a){for(var r,t=arguments.length,e=new Array(t>1?t-1:0),i=1;i=1&&(r=console).warn.apply(r,[Ke,Ye.warn,a].concat(e))},logError:function(a){var r;if(!(this.config.debug<1)){for(var t=this.config.debug>=2?"trace":"error",e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&arguments[0]!==void 0?arguments[0]:"div",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",e=document.createElement(o);return e.className=t,e.innerHTML=a,Object.keys(r).forEach(function(i){var n=i,s=r[i];o==="video"||o==="audio"||o==="live-video"?s&&e.setAttribute(n,s):e.setAttribute(n,s)}),e};c.createDomFromHtml=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";try{var t=document.createElement("div");t.innerHTML=o;var e=t.children;return t=null,e.length>0?(e=e[0],r&&c.addClass(e,r),a&&Object.keys(a).forEach(function(i){e.setAttribute(i,a[i])}),e):null}catch(i){return L.logError("util.createDomFromHtml",i),null}};c.hasClass=function(o,a){if(!o||!a)return!1;try{return Array.prototype.some.call(o.classList,function(t){return t===a})}catch{var r=o.className&&j(o.className)==="object"?o.getAttribute("class"):o.className;return r&&!!r.match(new RegExp("(\\s|^)"+a+"(\\s|$)"))}};c.addClass=function(o,a){if(!(!o||!a))try{a.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(r){r&&o.classList.add(r)})}catch{c.hasClass(o,a)||(o.className&&j(o.className)==="object"?o.setAttribute("class",o.getAttribute("class")+" "+a):o.className+=" "+a)}};c.removeClass=function(o,a){if(!(!o||!a))try{a.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(r){r&&o.classList.remove(r)})}catch{c.hasClass(o,a)&&a.split(/\s+/g).forEach(function(t){var e=new RegExp("(\\s|^)"+t+"(\\s|$)");o.className&&j(o.className)==="object"?o.setAttribute("class",o.getAttribute("class").replace(e," ")):o.className=o.className.replace(e," ")})}};c.toggleClass=function(o,a){o&&a.split(/\s+/g).forEach(function(r){c.hasClass(o,r)?c.removeClass(o,r):c.addClass(o,r)})};c.classNames=function(){for(var o=arguments,a=[],r=function(i){c.typeOf(o[i])==="String"?a.push(o[i]):c.typeOf(o[i])==="Object"&&Object.keys(o[i]).map(function(n){o[i][n]&&a.push(n)})},t=0;t0&&arguments[0]!==void 0?arguments[0]:document,a=arguments.length>1?arguments[1]:void 0,r;try{r=o.querySelector(a)}catch(t){L.logError("util.findDom",t),a.indexOf("#")===0&&(r=o.getElementById(a.slice(1)))}return r};c.getCss=function(o,a){return o.currentStyle?o.currentStyle[a]:document.defaultView.getComputedStyle(o,!1)[a]};c.padStart=function(o,a,r){for(var t=String(r),e=a>>0,i=Math.ceil(e/t.length),n=[],s=String(o);i--;)n.push(t);return n.join("").substring(0,e-s.length)+s};c.format=function(o){if(window.isNaN(o))return"";o=Math.round(o);var a=c.padStart(Math.floor(o/3600),2,0),r=c.padStart(Math.floor((o-a*3600)/60),2,0),t=c.padStart(Math.floor(o-a*3600-r*60),2,0);return(a==="00"?[r,t]:[a,r,t]).join(":")};c.event=function(o){if(o.touches){var a=o.touches[0]||o.changedTouches[0];o.clientX=a.clientX||0,o.clientY=a.clientY||0,o.offsetX=a.pageX-a.target.offsetLeft,o.offsetY=a.pageY-a.target.offsetTop}o._target=o.target||o.srcElement};c.typeOf=function(o){return Object.prototype.toString.call(o).match(/([^\s.*]+)(?=]$)/g)[0]};c.deepCopy=function(o,a){if(c.typeOf(a)==="Object"&&c.typeOf(o)==="Object")return Object.keys(a).forEach(function(r){c.typeOf(a[r])==="Object"&&!(a[r]instanceof Node)?o[r]===void 0||o[r]===void 0?o[r]=a[r]:c.deepCopy(o[r],a[r]):c.typeOf(a[r])==="Array"?o[r]=c.typeOf(o[r])==="Array"?o[r].concat(a[r]):a[r]:o[r]=a[r]}),o};c.deepMerge=function(o,a){return Object.keys(a).map(function(r){if(c.typeOf(a[r])==="Array"&&c.typeOf(o[r])==="Array"){if(c.typeOf(o[r])==="Array"){var t;(t=o[r]).push.apply(t,re(a[r]))}}else c.typeOf(o[r])===c.typeOf(a[r])&&o[r]!==null&&c.typeOf(o[r])==="Object"&&!(a[r]instanceof window.Node)?c.deepMerge(o[r],a[r]):a[r]!==null&&(o[r]=a[r])}),o};c.getBgImage=function(o){var a=(o.currentStyle||window.getComputedStyle(o,null)).backgroundImage;if(!a||a==="none")return"";var r=document.createElement("a");return r.href=a.replace(/url\("|"\)/g,""),r.href};c.copyDom=function(o){if(o&&o.nodeType===1){var a=document.createElement(o.tagName);return Array.prototype.forEach.call(o.attributes,function(r){a.setAttribute(r.name,r.value)}),o.innerHTML&&(a.innerHTML=o.innerHTML),a}else return""};c.setInterval=function(o,a,r,t){o._interval[a]||(o._interval[a]=window.setInterval(r.bind(o),t))};c.clearInterval=function(o,a){clearInterval(o._interval[a]),o._interval[a]=null};c.setTimeout=function(o,a,r){o._timers||(o._timers=[]);var t=setTimeout(function(){a(),c.clearTimeout(o,t)},r);return o._timers.push(t),t};c.clearTimeout=function(o,a){var r=o._timers;if(c.typeOf(r)==="Array"){for(var t=0;t-1&&t.indexOf(u)>-1?(i=parseFloat(r.slice(0,r.indexOf(u)).trim()),n=parseFloat(t.slice(0,t.indexOf(u)).trim()),s=u,!1):!0}),e.style.width="".concat(i).concat(s),e.style.height="".concat(n).concat(s),e.style.backgroundSize="".concat(i).concat(s," ").concat(n).concat(s),o==="start"?e.style.margin="-".concat(n/2).concat(s," auto auto -").concat(i/2).concat(s):e.style.margin="auto 5px auto 5px"}return e};c.Hex2RGBA=function(o,a){var r=[];if(/^\#[0-9A-F]{3}$/i.test(o)){var t="#";o.replace(/[0-9A-F]/ig,function(e){t+=e+e}),o=t}return/^#[0-9A-F]{6}$/i.test(o)?(o.replace(/[0-9A-F]{2}/ig,function(e){r.push(parseInt(e,16))}),"rgba(".concat(r.join(","),", ").concat(a,")")):"rgba(255, 255, 255, 0.1)"};c.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement};c.checkIsFunction=function(o){return o&&typeof o=="function"};c.checkIsObject=function(o){return o!==null&&j(o)==="object"};c.hide=function(o){o.style.display="none"};c.show=function(o,a){o.style.display=a||"block"};c.isUndefined=function(o){if(typeof o>"u"||o===null)return!0};c.isNotNull=function(o){return o!=null};c.setStyleFromCsstext=function(o,a){if(a)if(c.typeOf(a)==="String"){var r=a.replace(/\s+/g,"").split(";");r.map(function(t){if(t){var e=t.split(":");e.length>1&&(o.style[e[0]]=e[1])}})}else Object.keys(a).map(function(t){o.style[t]=a[t]})};function Bi(o,a){for(var r=0,t=a.length;r-1)return!0;return!1}c.filterStyleFromText=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],r=o.style.cssText;if(!r)return{};var t=r.replace(/\s+/g,"").split(";"),e={},i={};return t.map(function(n){if(n){var s=n.split(":");s.length>1&&(Bi(s[0],a)?e[s[0]]=s[1]:i[s[0]]=s[1])}}),o.setAttribute("style",""),Object.keys(i).map(function(n){o.style[n]=i[n]}),e};c.getStyleFromCsstext=function(o){var a=o.style.cssText;if(!a)return{};var r=a.replace(/\s+/g,"").split(";"),t={};return r.map(function(e){if(e){var i=e.split(":");i.length>1&&(t[i[0]]=i[1])}}),t};c.preloadImg=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};if(o){var t=new window.Image;t.onload=function(e){t=null,a&&a(e)},t.onerror=function(e){t=null,r&&r(e)},t.src=o}};c.stopPropagation=function(o){o&&(o.stopPropagation(),o.cancelable&&o.preventDefault())};c.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0};c.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0};c.checkTouchSupport=function(){return"ontouchstart"in window};c.getBuffered2=function(o){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5,r=[],t=0;ts&&(e[n-1].end=r[i].end):e.push(r[i])}else e.push(r[i])}else e=r;return new Hi(e)};c.getEventPos=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return o.touches&&o.touches.length>0&&(o=o.touches[0]),{x:o.x/a,y:o.y/a,clientX:o.clientX/a,clientY:o.clientY/a,offsetX:o.offsetX/a,offsetY:o.offsetY/a,pageX:o.pageX/a,pageY:o.pageY/a}};c.requestAnimationFrame=function(o){var a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(a)return a(o)};c.getHostFromUrl=function(o){if(c.typeOf(o)!=="String")return"";var a=o.split("/"),r="";return a.length>3&&a[2]&&(r=a[2]),r};c.cancelAnimationFrame=function(o){var a=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;a&&a(o)};c.isMSE=function(o){return!o||!(o instanceof HTMLMediaElement)?!1:/^blob/.test(o.currentSrc)||/^blob/.test(o.src)};c.generateSessionId=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,a=new Date().getTime();try{o=parseInt(o)}catch{o=0}a+=o,window.performance&&typeof window.performance.now=="function"&&(a+=parseInt(window.performance.now()));var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(t==="x"?e:e&3|8).toString(16)});return r};c.createEvent=function(o){var a;return typeof window.Event=="function"?a=new Event(o):(a=document.createEvent("Event"),a.initEvent(o,!0,!0)),a};c.adjustTimeByDuration=function(o,a,r){return!a||!o?o:o>a||r&&o=a||Y<0||f&&$>=i}function H(){var R=Date.now();if(b(R))return M(R);s=_(H,T(R))}function M(R){return s=void 0,d&&t?v(R):(t=e=void 0,n)}function z(){s!==void 0&&m(s),l=0,t=u=e=s=void 0}function N(){return s===void 0?n:M(Date.now())}function W(){return s!==void 0}function V(){for(var R=Date.now(),Y=b(R),$=arguments.length,q=new Array($),ae=0;ae<$;ae++)q[ae]=arguments[ae];if(t=q,e=this,u=R,Y){if(s===void 0)return k(u);if(f)return s=_(H,a),v(u)}return s===void 0&&(s=_(H,a)),n}return V.cancel=z,V.flush=N,V.pending=W,V}function Vi(o,a,r){var t=!0,e=!0;if(typeof o!="function")throw new TypeError("Expected a function");return ti(r)&&(t="leading"in r?!!r.leading:t,e="trailing"in r?!!r.trailing:e),Ui(o,a,{leading:t,trailing:e,maxWait:a})}function Gi(){var o=(document.documentElement.getAttribute("lang")||navigator.language||"zh-cn").toLocaleLowerCase();return o==="zh-cn"&&(o="zh"),o}function ji(o,a,r){if(o){var t=o.getAttribute(r);return!!(t&&t===a&&(o.tagName==="VIDEO"||o.tagName==="AUDIO"))}}var xt={android:/(Android)\s([\d.]+)/,ios:/(Version)\/([\d.]+)/},Wi=["avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","avc1.42E01E","mp4v.20.8","avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","mp4v.20.8, mp4a.40.2","mp4v.20.240, mp4a.40.2"],A={get device(){var o=A.os;return o.isPc?"pc":"mobile"},get browser(){if(typeof navigator>"u")return"";var o=navigator.userAgent.toLowerCase(),a={ie:/rv:([\d.]+)\) like gecko/,firefox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(a).filter(function(r){return a[r].test(o)}))[0]},get os(){if(typeof navigator>"u")return{};var o=navigator.userAgent,a=/(?:Windows Phone)/.test(o),r=/(?:SymbianOS)/.test(o)||a,t=/(?:Android)/.test(o),e=/(?:Firefox)/.test(o),i=/(?:iPad|PlayBook)/.test(o)||t&&!/(?:Mobile)/.test(o)||e&&/(?:Tablet)/.test(o),n=/(?:iPhone)/.test(o)&&!i,s=!n&&!t&&!r&&!i,u=/(?:iPad|PlayBook)/.test(o);return{isTablet:i,isPhone:n,isIpad:u,isIos:n||u,isAndroid:t,isPc:s,isSymbian:r,isWindowsPhone:a,isFireFox:e}},get osVersion(){if(typeof navigator>"u")return 0;var o=navigator.userAgent,a="";/(?:iPhone)|(?:iPad|PlayBook)/.test(o)?a=xt.ios:a=xt.android;var r=a?a.exec(o):[];if(r&&r.length>=3){var t=r[2].split(".");return t.length>0?parseInt(t[0]):0}return 0},get isWeixin(){if(typeof navigator>"u")return!1;var o=/(micromessenger)\/([\d.]+)/,a=o.exec(navigator.userAgent.toLocaleLowerCase());return!!a},isSupportMP4:function(){var a={isSupport:!1,mime:""};if(typeof document>"u")return a;if(this.supportResult)return this.supportResult;var r=document.createElement("video");return typeof r.canPlayType=="function"&&Wi.map(function(t){r.canPlayType('video/mp4; codecs="'.concat(t,'"'))==="probably"&&(a.isSupport=!0,a.mime+="||".concat(t))}),this.supportResult=a,r=null,a},isHevcSupported:function(){return typeof MediaSource>"u"||!MediaSource.isTypeSupported?!1:MediaSource.isTypeSupported('video/mp4;codecs="hev1.1.6.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.2.4.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.3.E.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.4.10.L120.90"')},probeConfigSupported:function(a){var r={supported:!1,smooth:!1,powerEfficient:!1};if(!a||typeof navigator>"u")return Promise.resolve(r);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(a);var t=a.video||{},e=a.audio||{};try{var i=MediaSource.isTypeSupported(t.contentType),n=MediaSource.isTypeSupported(e.contentType);return Promise.resolve({supported:i&&n,smooth:!1,powerEfficient:!1})}catch{return Promise.resolve(r)}}},st="3.0.2",zi={1:"media",2:"media",3:"media",4:"media",5:"media",6:"media"},Pt={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},ct=w(function o(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};E(this,o);var t=a&&a.i18n?a.i18n.ERROR_TYPES:null;if(a.media){var e=r.mediaError?r.mediaError:a.media.error||{},i=a.duration,n=a.currentTime,s=a.ended,u=a.src,l=a.currentSrc,h=a.media,f=h.readyState,d=h.networkState,g=r.errorCode||e.code;Pt[g]&&(g=Pt[g]);var v={playerVersion:st,currentTime:n,duration:i,ended:s,readyState:f,networkState:d,src:u||l,errorType:r.errorType,errorCode:g,message:r.errorMessage||e.message,mediaError:e,originError:r.originError?r.originError.stack:"",host:c.getHostFromUrl(u||l)};return r.ext&&Object.keys(r.ext).map(function(T){v[T]=r.ext[T]}),v}else if(arguments.length>1){for(var _={playerVersion:st,domain:document.domain},m=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],k=0;k0&&arguments[0]!==void 0?arguments[0]:this.media;this._evHandlers||(this._evHandlers=fi.map(function(n){var s="on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));return typeof e[s]=="function"&&e.on(n,e[s]),y({},n,nn(n,e))})),this._evHandlers.forEach(function(n){var s=Object.keys(n)[0];i.addEventListener(s,n[s],!1)})}},{key:"detachVideoEvents",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.media;this._evHandlers.forEach(function(n){var s=Object.keys(n)[0];i.removeEventListener(s,n[s],!1)}),this._evHandlers.forEach(function(n){var s=Object.keys(n)[0],u="on".concat(s.charAt(0).toUpperCase()).concat(s.slice(1));typeof e[u]=="function"&&e.off(s,e[u])}),this._evHandlers=null}},{key:"_attachSourceEvents",value:function(e,i){var n=this;e.removeAttribute("src"),e.load(),i.forEach(function(f){n.media.appendChild(c.createDom("source","",{src:"".concat(f.src),type:"".concat(f.type||"")}))});var s=e.children;if(s){this._videoSourceCount=s.length;for(var u=null,l=0;l0;)e.removeChild(i[0])}}},{key:"errorHandler",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.media&&(this.media.error||i)){var n=this.media.error||i,s=n.code?zi[n.code]:"other",u=n.message;this.media.currentSrc||(u="empty_src",n={code:6,message:u}),this.emit(e,new ct(this,{errorType:s,errorCode:n.code,errorMessage:n.message||"",mediaError:n}))}}},{key:"destroy",value:function(){this.media&&(this.media.pause&&(this.media.pause(),this.media.muted=!0),this.media.removeAttribute("src"),this.media.load()),this._currentTime=0,this._duration=0,this.mediaConfig=null;for(var e in this._interval)Object.prototype.hasOwnProperty.call(this._interval,e)&&(clearInterval(this._interval[e]),this._interval[e]=null);this.detachVideoEvents(),this.media=null,this.mediaEventMiddleware={},this.removeAllListeners()}},{key:"video",get:function(){return this.media},set:function(e){this.media=e}},{key:"play",value:function(){var e=this.media?this.media.play():null;return e}},{key:"pause",value:function(){this.media&&this.media.pause()}},{key:"load",value:function(){this.media&&this.media.load()}},{key:"canPlayType",value:function(e){return this.media?this.media.canPlayType(e):!1}},{key:"getBufferedRange",value:function(e){var i=[0,0];if(!this.media)return i;e||(e=this.media.buffered);var n=this.media.currentTime;if(e)for(var s=0,u=e.length;s=this.currentTime)return{start:i.start(n),end:i.end(n)};return e}},{key:"crossOrigin",get:function(){return this.media?this.media.crossOrigin:""},set:function(e){this.media&&(this.media.crossOrigin=e)}},{key:"currentSrc",get:function(){return this.media?this.media.currentSrc:""},set:function(e){this.media&&(this.media.currentSrc=e)}},{key:"currentTime",get:function(){return this.media?this.media.currentTime!==void 0?this.media.currentTime:this._currentTime:0},set:function(e){this.media&&(this.media.currentTime=e)}},{key:"defaultMuted",get:function(){return this.media?this.media.defaultMuted:!1},set:function(e){this.media&&(this.media.defaultMuted=e)}},{key:"duration",get:function(){return this._duration}},{key:"ended",get:function(){return this.media?this.media.ended:!1}},{key:"error",get:function(){return this.media.error}},{key:"errorNote",get:function(){var e=this.media.error;if(!e)return"";var i=["MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED"];return i[this.media.error.code-1]}},{key:"loop",get:function(){return this.media?this.media.loop:!1},set:function(e){this.media&&(this.media.loop=e)}},{key:"muted",get:function(){return this.media?this.media.muted:!1},set:function(e){!this.media||this.media.muted===e||(this._lastMuted=this.media.muted,this.media.muted=e)}},{key:"networkState",get:function(){return this.media.networkState}},{key:"paused",get:function(){return this.media?this.media.paused:!0}},{key:"playbackRate",get:function(){return this.media?this.media.playbackRate:0},set:function(e){!this.media||e===1/0||(this.media.defaultPlaybackRate=e,this.media.playbackRate=e)}},{key:"played",get:function(){return this.media?this.media.played:null}},{key:"preload",get:function(){return this.media?this.media.preload:!1},set:function(e){this.media&&(this.media.preload=e)}},{key:"readyState",get:function(){return this.media.readyState}},{key:"seekable",get:function(){return this.media?this.media.seekable:!1}},{key:"seeking",get:function(){return this.media?this.media.seeking:!1}},{key:"src",get:function(){return this.media?this.media.src:""},set:function(e){if(this.media){if(this.emit(We,e),this.emit(Ae),this._currentTime=0,this._duration=0,/^blob/.test(this.media.currentSrc)||/^blob/.test(this.media.src)){this.onWaiting();return}this._detachSourceEvents(this.media),c.typeOf(e)==="Array"?this._attachSourceEvents(this.media,e):e?this.media.src=e:this.media.removeAttribute("src"),this.load()}}},{key:"volume",get:function(){return this.media?this.media.volume:0},set:function(e){e===1/0||!this.media||(this.media.volume=e)}},{key:"addInnerOP",value:function(e){this._internalOp[e]=!0}},{key:"removeInnerOP",value:function(e){delete this._internalOp[e]}},{key:"emit",value:function(e,i){for(var n,s=arguments.length,u=new Array(s>2?s-2:0),l=2;l2?s-2:0),l=2;l2?s-2:0),l=2;l2?s-2:0),l=2;l0&&arguments[0]!==void 0?arguments[0]:{name:"xgplayer",version:1,db:null,ojstore:{name:"xg-m4a",keypath:"vid"}};E(this,o),this.indexedDB=window.indexedDB||window.webkitindexedDB,this.IDBKeyRange=window.IDBKeyRange||window.webkitIDBKeyRange,this.myDB=a}return w(o,[{key:"openDB",value:function(r){var t=this,e=this,i=this.myDB.version||1,n=e.indexedDB.open(e.myDB.name,i);n.onerror=function(s){},n.onsuccess=function(s){t.myDB.db=s.target.result,r.call(e)},n.onupgradeneeded=function(s){var u=s.target.result;s.target.transaction,u.objectStoreNames.contains(e.myDB.ojstore.name)||u.createObjectStore(e.myDB.ojstore.name,{keyPath:e.myDB.ojstore.keypath})}}},{key:"deletedb",value:function(){var r=this;r.indexedDB.deleteDatabase(this.myDB.name)}},{key:"closeDB",value:function(){this.myDB.db.close()}},{key:"addData",value:function(r,t){for(var e=this.myDB.db.transaction(r,"readwrite").objectStore(r),i,n=0;n3?t-3:0),i=3;i2&&arguments[2]!==void 0?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[o]&&(this.__hooks[o]=null),function(){var t=arguments,e=this;if(r.pre)try{var i;(i=r.pre).call.apply(i,[this].concat(Array.prototype.slice.call(arguments)))}catch(u){throw u.message="[pluginName: ".concat(this.pluginName,":").concat(o,":pre error] >> ").concat(u.message),u}if(this.__hooks&&this.__hooks[o])try{var n,s=(n=this.__hooks[o]).call.apply(n,[this,this].concat(Array.prototype.slice.call(arguments)));s?s.then?s.then(function(u){u!==!1&&Le.apply(void 0,[e,a,r.next].concat(re(t)))}).catch(function(u){throw u}):Le.apply(void 0,[this,a,r.next].concat(Array.prototype.slice.call(arguments))):s===void 0&&Le.apply(void 0,[this,a,r.next].concat(Array.prototype.slice.call(arguments)))}catch(u){throw u.message="[pluginName: ".concat(this.pluginName,":").concat(o,"] >> ").concat(u.message),u}else Le.apply(void 0,[this,a,r.next].concat(Array.prototype.slice.call(arguments)))}.bind(this)}function Ue(o,a){var r=this.__hooks;if(r)return r.hasOwnProperty(o)?(r&&(r[o]=a),!0):(console.warn("has no supported hook which name [".concat(o,"]")),!1)}function Ve(o,a){var r=this.__hooks;r&&delete r[o]}function Dt(o){if(!(!this.plugins||!this.plugins[o.toLowerCase()])){for(var a=this.plugins[o.toLowerCase()],r=arguments.length,t=new Array(r>1?r-1:0),e=1;e1?r-1:0),e=1;e1&&arguments[1]!==void 0?arguments[1]:[];o.__hooks={},a&&a.map(function(r){o.__hooks[r]=null}),Object.defineProperty(o,"hooks",{get:function(){return o.__hooks&&Object.keys(o.__hooks).map(function(t){if(o.__hooks[t])return t})}})}function vi(o){o.__hooks=null}function ue(o,a,r){for(var t=arguments.length,e=new Array(t>3?t-3:0),i=3;i1?e-1:0),n=1;n2&&arguments[2]!==void 0?arguments[2]:{};if(this.player){var i=B(B({},e),{},{pluginName:this.pluginName});this.player.emitUserAction(r,t,i)}}},{key:"hook",value:function(r,t){return Be.call.apply(Be,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"useHooks",value:function(r,t){for(var e=arguments.length,i=new Array(e>2?e-2:0),n=2;n2?e-2:0),n=2;n1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";if(this.player)return e&&(t.pluginName=e),this.player.registerPlugin({plugin:r,options:t})}},{key:"getPlugin",value:function(r){return this.player?this.player.getPlugin(r):null}},{key:"__destroy",value:function(){var r=this,t=this.player,e=this.pluginName;this.offAll(),c.clearAllTimers(this),c.checkIsFunction(this.destroy)&&this.destroy(),["player","playerConfig","pluginName","logger","__args","__hooks"].map(function(i){r[i]=null}),t.unRegisterPlugin(e),vi(this)}}],[{key:"defineGetterOrSetter",value:function(r,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&Object.defineProperty(r,e,t[e])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),o}(),an=9;if(typeof Element<"u"&&!Element.prototype.matches){var pe=Element.prototype;pe.matches=pe.matchesSelector||pe.mozMatchesSelector||pe.msMatchesSelector||pe.oMatchesSelector||pe.webkitMatchesSelector}function on(o,a){for(;o&&o.nodeType!==an;){if(typeof o.matches=="function"&&o.matches(a))return o;o=o.parentNode}}var un=on,ln=un;function qe(o,a,r,t,e){var i=hn.apply(this,arguments);return o.addEventListener(r,i,e),{destroy:function(){o.removeEventListener(r,i,e)}}}function cn(o,a,r,t,e){return typeof o.addEventListener=="function"?qe.apply(null,arguments):typeof r=="function"?qe.bind(null,document).apply(null,arguments):(typeof o=="string"&&(o=document.querySelectorAll(o)),Array.prototype.map.call(o,function(i){return qe(i,a,r,t,e)}))}function hn(o,a,r,t){return function(e){e.delegateTarget=ln(e.target,a),e.delegateTarget&&t.call(o,e)}}var fn=cn;const Ot=ut(fn);var dn={CONTROLS:"controls",ROOT:"root"},F={ROOT:"root",ROOT_LEFT:"rootLeft",ROOT_RIGHT:"rootRight",ROOT_TOP:"rootTop",CONTROLS_LEFT:"controlsLeft",CONTROLS_RIGTH:"controlsRight",CONTROLS_RIGHT:"controlsRight",CONTROLS_CENTER:"controlsCenter",CONTROLS:"controls"};function Ze(o){return o?o.indexOf&&/^(?:http|data:|\/)/.test(o):!1}function gn(o,a){return j(o)==="object"&&o.class&&typeof o.class=="string"?"".concat(a," ").concat(o.class):a}function pn(o,a){return j(o)==="object"&&o.attr&&j(o.attr)==="object"&&Object.keys(o.attr).map(function(r){a[r]=o.attr[r]}),a}function Mt(o,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",i=null;if(o instanceof window.Element)return c.addClass(o,r),Object.keys(t).map(function(n){o.setAttribute(n,t[n])}),o;if(Ze(o)||Ze(o.url))return t.src=Ze(o)?o:o.url||"",i=c.createDom(o.tag||"img","",t,"xg-img ".concat(r)),i;if(typeof o=="function")try{return i=o(),i instanceof window.Element?(c.addClass(i,r),Object.keys(t).map(function(n){i.setAttribute(n,t[n])}),i):(L.logWarn("warn>>icons.".concat(a," in config of plugin named [").concat(e,"] is a function mast return an Element Object")),null)}catch(n){return L.logError("Plugin named [".concat(e,"]:createIcon"),n),null}return typeof o=="string"?c.createDomFromHtml(o,t,r):(L.logWarn("warn>>icons.".concat(a," in config of plugin named [").concat(e,"] is invalid")),null)}function vn(o,a){var r=a.config.icons||a.playerConfig.icons;Object.keys(o).map(function(t){var e=o[t],i=e&&e.class?e.class:"",n=e&&e.attr?e.attr:{},s=null;r&&r[t]&&(i=gn(r[t],i),n=pn(r[t],n),s=Mt(r[t],t,i,n,a.pluginName)),!s&&e&&(s=Mt(e.icon?e.icon:e,n,i,{},a.pluginName)),a.icons[t]=s})}function mn(o,a){Object.keys(o).map(function(r){Object.defineProperty(a.langText,r,{get:function(){var e=a.lang,i=a.i18n;return i[r]?i[r]:o[r]&&o[r][e]||""}})})}var O=function(o){P(r,o);var a=I(r);function r(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return E(this,r),t=a.call(this,e),t.__delegates=[],t}return w(r,[{key:"__init",value:function(e){if(x(S(r.prototype),"__init",this).call(this,e),!!e.root){var i=e.root,n=null;this.icons={},this.root=null,this.parent=null;var s=this.registerIcons()||{};vn(s,this),this.langText={};var u=this.registerLanguageTexts()||{};mn(u,this);var l="";try{l=this.render()}catch(d){throw L.logError("Plugin:".concat(this.pluginName,":render"),d),new Error("Plugin:".concat(this.pluginName,":render:").concat(d.message))}if(l)n=r.insert(l,i,e.index),n.setAttribute("data-index",e.index);else if(e.tag)n=c.createDom(e.tag,"",e.attr,e.name),n.setAttribute("data-index",e.index),i.appendChild(n);else return;this.root=n,this.parent=i;var h=this.config.attr||{},f=this.config.style||{};this.setAttr(h),this.setStyle(f),this.config.index&&this.root.setAttribute("data-index",this.config.index),this.__registerChildren()}}},{key:"__registerChildren",value:function(){var e=this;if(this.root){this._children=[];var i=this.children();i&&j(i)==="object"&&Object.keys(i).length>0&&Object.keys(i).map(function(n){var s=n,u=i[s],l={root:e.root},h,f;typeof u=="function"?(h=e.config[s]||{},f=u):j(u)==="object"&&typeof u.plugin=="function"&&(h=u.options?c.deepCopy(e.config[s]||{},u.options):e.config[s]||{},f=u.plugin),l.config=h,h.index!==void 0&&(l.index=h.index),h.root&&(l.root=h.root),e.registerPlugin(f,l,s)})}}},{key:"updateLang",value:function(e){e||(e=this.lang);function i(l,h){for(var f=0;f0?i(l.children[f],h):h(l.children[f])}var n=this.root,s=this.i18n,u=this.langText;n&&i(n,function(l){var h=l.getAttribute&&l.getAttribute("lang-key");if(h){var f=s[h.toUpperCase()]||u[h];f&&(l.innerHTML=typeof f=="function"?f(e):f)}})}},{key:"lang",get:function(){return this.player.lang}},{key:"changeLangTextKey",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=this.i18n||{},s=this.langText;e.setAttribute&&e.setAttribute("lang-key",i);var u=n[i]||s[i]||"";u&&(e.innerHTML=u)}},{key:"plugins",value:function(){return this._children}},{key:"children",value:function(){return{}}},{key:"registerPlugin",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";i.root=i.root||this.root;var s=x(S(r.prototype),"registerPlugin",this).call(this,e,i,n);return this._children.push(s),s}},{key:"registerIcons",value:function(){return{}}},{key:"registerLanguageTexts",value:function(){return{}}},{key:"find",value:function(e){if(this.root)return this.root.querySelector(e)}},{key:"bind",value:function(e,i,n){var s=this;if(arguments.length<3&&typeof i=="function")Array.isArray(e)?e.forEach(function(l){s.bindEL(l,i)}):this.bindEL(e,i);else{var u=r.delegate.call(this,this.root,e,i,n);this.__delegates=this.__delegates.concat(u)}}},{key:"unbind",value:function(e,i){var n=this;if(arguments.length<3&&typeof i=="function")Array.isArray(e)?e.forEach(function(l){n.unbindEL(l,i)}):this.unbindEL(e,i);else for(var s="".concat(e,"_").concat(i),u=0;u2&&arguments[2]!==void 0?arguments[2]:!1;this.root&&"on".concat(e)in this.root&&typeof i=="function"&&this.root.addEventListener(e,i,n)}},{key:"unbindEL",value:function(e,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.root&&"on".concat(e)in this.root&&typeof i=="function"&&this.root.removeEventListener(e,i,n)}},{key:"show",value:function(e){if(this.root){this.root.style.display=e!==void 0?e:"block";var i=window.getComputedStyle(this.root,null),n=i.getPropertyValue("display");if(n==="none")return this.root.style.display="block"}}},{key:"hide",value:function(){this.root&&(this.root.style.display="none")}},{key:"appendChild",value:function(e,i){if(!this.root)return null;if(arguments.length<2&&arguments[0]instanceof window.Element)return this.root.appendChild(arguments[0]);if(!i||!(i instanceof window.Element))return null;try{return typeof e=="string"?this.find(e).appendChild(i):e.appendChild(i)}catch(n){return L.logError("Plugin:appendChild",n),null}}},{key:"render",value:function(){return""}},{key:"destroy",value:function(){}},{key:"__destroy",value:function(){var e=this,i=this.player;this.__delegates.map(function(n){n.destroy()}),this.__delegates=[],this._children instanceof Array&&(this._children.map(function(n){i.unRegisterPlugin(n.pluginName)}),this._children=null),this.root&&(this.root.hasOwnProperty("remove")?this.root.remove():this.root.parentNode&&this.root.parentNode.removeChild(this.root)),x(S(r.prototype),"__destroy",this).call(this),this.icons={},["root","parent"].map(function(n){e[n]=null})}}],[{key:"insert",value:function(e,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,s=i.children.length,u=Number(n),l=e instanceof window.Node;if(s){for(var h=0,f=null,d="";h=u){d="beforebegin";break}else g4&&arguments[4]!==void 0?arguments[4]:!1,l=[];if(e instanceof window.Node&&typeof s=="function")if(Array.isArray(n))n.forEach(function(f){var d=Ot(e,i,f,s,u);d.key="".concat(i,"_").concat(f),l.push(d)});else{var h=Ot(e,i,n,s,u);h.key="".concat(i,"_").concat(n),l.push(h)}return l}},{key:"ROOT_TYPES",get:function(){return dn}},{key:"POSITIONS",get:function(){return F}}]),r}(he),yn=function(){function o(){var a=this;if(E(this,o),y(this,"__trigger",function(r){var t=new Date().getTime();a.timeStamp=t;for(var e=0;e-1?this.__handlers[n].handler=t:this.__handlers.push({target:r,handler:t,playerId:e})}}},{key:"unObserver",value:function(r){var t=-1;this.__handlers.map(function(e,i){r===e.target&&(t=i)});try{this.observer&&this.observer.unobserve(r)}catch{}this.observer&&this.observer.unobserve(r),t>-1&&this.__handlers.splice(t,1)}},{key:"destroyObserver",value:function(){this.observer&&this.observer.disconnect(),this.observer=null,this.__handlers=null}},{key:"__runHandler",value:function(r){for(var t=this.__handlers,e=0;e2&&arguments[2]!==void 0?arguments[2]:{};if(!(!a||!r||typeof r!="function"||r.prototype===void 0)){var e=a._pluginInfoId;if(!(!e||!this.pluginGroup[e])){this.pluginGroup[e]._plugins||(this.pluginGroup[e]._plugins={});var i=this.pluginGroup[e]._plugins,n=this.pluginGroup[e]._originalOptions;t.player=this.pluginGroup[e]._player;var s=t.pluginName||r.pluginName;if(!s)throw new Error("The property pluginName is necessary");if(r.isSupported&&!r.isSupported(a.config.mediaType,a.config.codecType)){console.warn("not supported plugin [".concat(s,"]"));return}t.config||(t.config={});for(var u=Object.keys(n),l=0;l"u"&&(t.config[d]=r.defaultConfig[d])}),t.root?typeof t.root=="string"&&(t.root=a[t.root]):t.root=a.root,t.index=t.config.index||0;try{i[s.toLowerCase()]&&(this.unRegister(e,s.toLowerCase()),console.warn("the is one plugin with same pluginName [".concat(s,"] exist, destroy the old instance")));var f=new r(t);return i[s.toLowerCase()]=f,i[s.toLowerCase()].func=r,f&&typeof f.afterCreate=="function"&&f.afterCreate(),f}catch(d){throw console.error(d),d}}}},unRegister:function(a,r){a._pluginInfoId&&(a=a._pluginInfoId),r=r.toLowerCase();try{var t=this.pluginGroup[a]._plugins[r];t&&(t.pluginName&&t.__destroy(),delete this.pluginGroup[a]._plugins[r])}catch(e){console.error("[unRegister:".concat(r,"] cgid:[").concat(a,"] error"),e)}},deletePlugin:function(a,r){var t=a._pluginInfoId;t&&this.pluginGroup[t]&&this.pluginGroup[t]._plugins&&delete this.pluginGroup[t]._plugins[r]},getPlugins:function(a){var r=a._pluginInfoId;return r&&this.pluginGroup[r]?this.pluginGroup[r]._plugins:{}},findPlugin:function(a,r){var t=a._pluginInfoId;if(!t||!this.pluginGroup[t])return null;var e=r.toLowerCase();return this.pluginGroup[t]._plugins[e]},beforeInit:function(a){var r=this;function t(e){return!e||!e.then?new Promise(function(i){i()}):e}return new Promise(function(e){if(r.pluginGroup){var i;return a._loadingPlugins&&a._loadingPlugins.length?i=Promise.all(a._loadingPlugins):i=Promise.resolve(),i.then(function(){var n=a._pluginInfoId;if(!r.pluginGroup[n]){e();return}var s=r.pluginGroup[n]._plugins,u=[];Object.keys(s).forEach(function(l){if(s[l]&&s[l].beforePlayerInit)try{var h=s[l].beforePlayerInit();u.push(t(h))}catch(f){throw u.push(t(null)),f}}),Promise.all([].concat(u)).then(function(){e()}).catch(function(l){console.error(l),e()})})}})},afterInit:function(a){var r=a._pluginInfoId;if(!(!r||!this.pluginGroup[r])){var t=this.pluginGroup[r]._plugins;Object.keys(t).forEach(function(e){t[e]&&t[e].afterPlayerInit&&t[e].afterPlayerInit()})}},setLang:function(a,r){var t=r._pluginInfoId;if(!(!t||!this.pluginGroup[t])){var e=this.pluginGroup[t]._plugins;Object.keys(e).forEach(function(i){if(e[i].updateLang)e[i].updateLang(a);else try{e[i].lang=a}catch{console.warn("".concat(i," setLang"))}})}},reRender:function(a){var r=this,t=a._pluginInfoId;if(!(!t||!this.pluginGroup[t])){var e=[],i=this.pluginGroup[t]._plugins;Object.keys(i).forEach(function(n){n!=="controls"&&i[n]&&(e.push({plugin:i[n].func,options:i[n].__args}),r.unRegister(t,n))}),e.forEach(function(n){r.register(a,n.plugin,n.options)})}},onPluginsReady:function(a){var r=a._pluginInfoId;if(!(!r||!this.pluginGroup[r])){var t=this.pluginGroup[r]._plugins||{};Object.keys(t).forEach(function(e){t[e].onPluginsReady&&typeof t[e].onPluginsReady=="function"&&t[e].onPluginsReady()})}},setCurrentUserActive:function(a,r){if(this.pluginGroup[a]){if(!r)return this.pluginGroup[a]._player.isUserActive=r,a;for(var t=Object.keys(this.pluginGroup),e=0;e0&&this.setCurrentUserActive(u[u.length-1],!0)}}}},C={DEFAULT:"xgplayer",DEFAULT_SKIN:"xgplayer-skin-default",ENTER:"xgplayer-is-enter",PAUSED:"xgplayer-pause",PLAYING:"xgplayer-playing",ENDED:"xgplayer-ended",CANPLAY:"xgplayer-canplay",LOADING:"xgplayer-isloading",ERROR:"xgplayer-is-error",REPLAY:"xgplayer-replay",NO_START:"xgplayer-nostart",ACTIVE:"xgplayer-active",INACTIVE:"xgplayer-inactive",FULLSCREEN:"xgplayer-is-fullscreen",CSS_FULLSCREEN:"xgplayer-is-cssfullscreen",ROTATE_FULLSCREEN:"xgplayer-rotate-fullscreen",PARENT_ROTATE_FULLSCREEN:"xgplayer-rotate-parent",PARENT_FULLSCREEN:"xgplayer-fullscreen-parent",INNER_FULLSCREEN:"xgplayer-fullscreen-inner",NO_CONTROLS:"no-controls",FLEX_CONTROLS:"flex-controls",CONTROLS_FOLLOW:"controls-follow",CONTROLS_AUTOHIDE:"controls-autohide",TOP_BAR_AUTOHIDE:"top-bar-autohide",NOT_ALLOW_AUTOPLAY:"not-allow-autoplay",SEEKING:"seeking",PC:"xgplayer-pc",MOBILE:"xgplayer-mobile",MINI:"xgplayer-mini"};function Nt(){return{id:"",el:null,url:"",domEventType:"default",nullUrlStart:!1,width:600,height:337.5,fluid:!1,fitVideoSize:"fixed",videoFillMode:"auto",volume:.6,autoplay:!1,autoplayMuted:!1,loop:!1,isLive:!1,zoom:1,videoInit:!0,poster:"",isMobileSimulateMode:!1,defaultPlaybackRate:1,execBeforePluginsCall:null,allowSeekAfterEnded:!0,enableContextmenu:!0,closeVideoClick:!1,closeVideoDblclick:!1,closePlayerBlur:!1,closeDelayBlur:!1,leavePlayerTime:3e3,closePlayVideoFocus:!1,closePauseVideoFocus:!1,closeFocusVideoFocus:!0,closeControlsBlur:!0,topBarAutoHide:!0,videoAttributes:{},startTime:0,seekedStatus:"play",miniprogress:!1,disableSwipeHandler:function(){},enableSwipeHandler:function(){},ignores:[],whitelist:[],inactive:3e3,lang:Gi(),controls:!0,marginControls:!1,fullscreenTarget:null,screenShot:!1,rotate:!1,pip:!1,download:!1,mini:!1,cssFullscreen:!0,keyShortcut:!0,presets:[],plugins:[],playbackRate:1,definition:{list:[]},playsinline:!0,customDuration:0,timeOffset:0,icons:{},i18n:[],tabindex:0,thumbnail:null,videoConfig:{},isHideTips:!1,commonStyle:{progressColor:"",playedColor:"",cachedColor:"",sliderBtnStyle:{},volumeColor:""}}}var kn=function(a,r){var t,e,i;r.preset&&r.options?i=new r.preset(r.options,a.config):i=new r({},a.config);var n=i,s=n.plugins,u=s===void 0?[]:s,l=n.ignores,h=l===void 0?[]:l,f=n.icons,d=f===void 0?{}:f,g=n.i18n,v=g===void 0?[]:g;a.config.plugins||(a.config.plugins=[]),a.config.ignores||(a.config.ignores=[]),(t=a.config.plugins).push.apply(t,re(u)),(e=a.config.ignores).push.apply(e,re(h)),Object.keys(d).map(function(m){a.config.icons[m]||(a.config.icons[m]=d[m])});var _=a.config.i18n||[];v.push.apply(v,re(_)),a.config.i18n=v},bn=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(this.root){var s=e.defaultConfig||{};if(!i.root){var u=i.position?i.position:i.config&&i.config.position?i.config.position:s.position;switch(u){case F.CONTROLS_LEFT:i.root=this.left;break;case F.CONTROLS_RIGHT:i.root=this.right;break;case F.CONTROLS_CENTER:i.root=this.center;break;case F.CONTROLS:i.root=this.root;break;default:i.root=this.left}return x(S(r.prototype),"registerPlugin",this).call(this,e,i,n)}}}},{key:"destroy",value:function(){A.device!=="mobile"&&(this.unbind("mouseenter",this.onMouseEnter),this.unbind("mouseleave",this.onMouseLeave))}},{key:"render",value:function(){var e=this.config,i=e.mode,n=e.autoHide,s=e.initShow,u=e.disable;if(!u){var l=c.classNames({"xgplayer-controls":!0},{"flex-controls":i==="flex"},{"bottom-controls":i==="bottom"},y({},C.CONTROLS_AUTOHIDE,n),{"xgplayer-controls-initshow":s||!n});return' +import{O as ct,Z as xi,d as Pi,a as Ii,a4 as Ai,c as xt,e as Li,w as Ye,f as Di,i as rt,h as Pt,g as Ri,u as It,p as Oi,q as Mi,_ as Ni}from"./index-0dd8d5e4.js";import{u as Fi}from"./hooks-62079556.js";const Hi={width:1024,height:1024,body:''};function At(o,a){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,t)}return r}function B(o){for(var a=1;a"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 p(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function ht(o,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(o)}function I(o){var a=Bi();return function(){var t=S(o),e;if(a){var i=S(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return ht(this,e)}}function Ui(o,a){for(;!Object.prototype.hasOwnProperty.call(o,a)&&(o=S(o),o!==null););return o}function x(){return typeof Reflect<"u"&&Reflect.get?x=Reflect.get.bind():x=function(a,r,t){var e=Ui(a,r);if(e){var i=Object.getOwnPropertyDescriptor(e,r);return i.get?i.get.call(arguments.length<3?a:t):i.value}},x.apply(this,arguments)}function re(o){return Gi(o)||Vi(o)||ji(o)||Wi()}function Gi(o){if(Array.isArray(o))return at(o)}function Vi(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function ji(o,a){if(o){if(typeof o=="string")return at(o,a);var r=Object.prototype.toString.call(o).slice(8,-1);if(r==="Object"&&o.constructor&&(r=o.constructor.name),r==="Map"||r==="Set")return Array.from(o);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return at(o,a)}}function at(o,a){(a==null||a>o.length)&&(a=o.length);for(var r=0,t=new Array(a);r-1,Ke={info:"color: #525252; background-color: #90ee90;",error:"color: #525252; background-color: red;",warn:"color: #525252; background-color: yellow; "},Xe="%c[xgplayer]",L={config:{debug:Ki?3:0},logInfo:function(a){for(var r,t=arguments.length,e=new Array(t>1?t-1:0),i=1;i=3&&(r=console).log.apply(r,[Xe,Ke.info,a].concat(e))},logWarn:function(a){for(var r,t=arguments.length,e=new Array(t>1?t-1:0),i=1;i=1&&(r=console).warn.apply(r,[Xe,Ke.warn,a].concat(e))},logError:function(a){var r;if(!(this.config.debug<1)){for(var t=this.config.debug>=2?"trace":"error",e=arguments.length,i=new Array(e>1?e-1:0),n=1;n0&&arguments[0]!==void 0?arguments[0]:"div",a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",e=document.createElement(o);return e.className=t,e.innerHTML=a,Object.keys(r).forEach(function(i){var n=i,s=r[i];o==="video"||o==="audio"||o==="live-video"?s&&e.setAttribute(n,s):e.setAttribute(n,s)}),e};c.createDomFromHtml=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";try{var t=document.createElement("div");t.innerHTML=o;var e=t.children;return t=null,e.length>0?(e=e[0],r&&c.addClass(e,r),a&&Object.keys(a).forEach(function(i){e.setAttribute(i,a[i])}),e):null}catch(i){return L.logError("util.createDomFromHtml",i),null}};c.hasClass=function(o,a){if(!o||!a)return!1;try{return Array.prototype.some.call(o.classList,function(t){return t===a})}catch{var r=o.className&&j(o.className)==="object"?o.getAttribute("class"):o.className;return r&&!!r.match(new RegExp("(\\s|^)"+a+"(\\s|$)"))}};c.addClass=function(o,a){if(!(!o||!a))try{a.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(r){r&&o.classList.add(r)})}catch{c.hasClass(o,a)||(o.className&&j(o.className)==="object"?o.setAttribute("class",o.getAttribute("class")+" "+a):o.className+=" "+a)}};c.removeClass=function(o,a){if(!(!o||!a))try{a.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(r){r&&o.classList.remove(r)})}catch{c.hasClass(o,a)&&a.split(/\s+/g).forEach(function(t){var e=new RegExp("(\\s|^)"+t+"(\\s|$)");o.className&&j(o.className)==="object"?o.setAttribute("class",o.getAttribute("class").replace(e," ")):o.className=o.className.replace(e," ")})}};c.toggleClass=function(o,a){o&&a.split(/\s+/g).forEach(function(r){c.hasClass(o,r)?c.removeClass(o,r):c.addClass(o,r)})};c.classNames=function(){for(var o=arguments,a=[],r=function(i){c.typeOf(o[i])==="String"?a.push(o[i]):c.typeOf(o[i])==="Object"&&Object.keys(o[i]).map(function(n){o[i][n]&&a.push(n)})},t=0;t0&&arguments[0]!==void 0?arguments[0]:document,a=arguments.length>1?arguments[1]:void 0,r;try{r=o.querySelector(a)}catch(t){L.logError("util.findDom",t),a.indexOf("#")===0&&(r=o.getElementById(a.slice(1)))}return r};c.getCss=function(o,a){return o.currentStyle?o.currentStyle[a]:document.defaultView.getComputedStyle(o,!1)[a]};c.padStart=function(o,a,r){for(var t=String(r),e=a>>0,i=Math.ceil(e/t.length),n=[],s=String(o);i--;)n.push(t);return n.join("").substring(0,e-s.length)+s};c.format=function(o){if(window.isNaN(o))return"";o=Math.round(o);var a=c.padStart(Math.floor(o/3600),2,0),r=c.padStart(Math.floor((o-a*3600)/60),2,0),t=c.padStart(Math.floor(o-a*3600-r*60),2,0);return(a==="00"?[r,t]:[a,r,t]).join(":")};c.event=function(o){if(o.touches){var a=o.touches[0]||o.changedTouches[0];o.clientX=a.clientX||0,o.clientY=a.clientY||0,o.offsetX=a.pageX-a.target.offsetLeft,o.offsetY=a.pageY-a.target.offsetTop}o._target=o.target||o.srcElement};c.typeOf=function(o){return Object.prototype.toString.call(o).match(/([^\s.*]+)(?=]$)/g)[0]};c.deepCopy=function(o,a){if(c.typeOf(a)==="Object"&&c.typeOf(o)==="Object")return Object.keys(a).forEach(function(r){c.typeOf(a[r])==="Object"&&!(a[r]instanceof Node)?o[r]===void 0||o[r]===void 0?o[r]=a[r]:c.deepCopy(o[r],a[r]):c.typeOf(a[r])==="Array"?o[r]=c.typeOf(o[r])==="Array"?o[r].concat(a[r]):a[r]:o[r]=a[r]}),o};c.deepMerge=function(o,a){return Object.keys(a).map(function(r){if(c.typeOf(a[r])==="Array"&&c.typeOf(o[r])==="Array"){if(c.typeOf(o[r])==="Array"){var t;(t=o[r]).push.apply(t,re(a[r]))}}else c.typeOf(o[r])===c.typeOf(a[r])&&o[r]!==null&&c.typeOf(o[r])==="Object"&&!(a[r]instanceof window.Node)?c.deepMerge(o[r],a[r]):a[r]!==null&&(o[r]=a[r])}),o};c.getBgImage=function(o){var a=(o.currentStyle||window.getComputedStyle(o,null)).backgroundImage;if(!a||a==="none")return"";var r=document.createElement("a");return r.href=a.replace(/url\("|"\)/g,""),r.href};c.copyDom=function(o){if(o&&o.nodeType===1){var a=document.createElement(o.tagName);return Array.prototype.forEach.call(o.attributes,function(r){a.setAttribute(r.name,r.value)}),o.innerHTML&&(a.innerHTML=o.innerHTML),a}else return""};c.setInterval=function(o,a,r,t){o._interval[a]||(o._interval[a]=window.setInterval(r.bind(o),t))};c.clearInterval=function(o,a){clearInterval(o._interval[a]),o._interval[a]=null};c.setTimeout=function(o,a,r){o._timers||(o._timers=[]);var t=setTimeout(function(){a(),c.clearTimeout(o,t)},r);return o._timers.push(t),t};c.clearTimeout=function(o,a){var r=o._timers;if(c.typeOf(r)==="Array"){for(var t=0;t-1&&t.indexOf(u)>-1?(i=parseFloat(r.slice(0,r.indexOf(u)).trim()),n=parseFloat(t.slice(0,t.indexOf(u)).trim()),s=u,!1):!0}),e.style.width="".concat(i).concat(s),e.style.height="".concat(n).concat(s),e.style.backgroundSize="".concat(i).concat(s," ").concat(n).concat(s),o==="start"?e.style.margin="-".concat(n/2).concat(s," auto auto -").concat(i/2).concat(s):e.style.margin="auto 5px auto 5px"}return e};c.Hex2RGBA=function(o,a){var r=[];if(/^\#[0-9A-F]{3}$/i.test(o)){var t="#";o.replace(/[0-9A-F]/ig,function(e){t+=e+e}),o=t}return/^#[0-9A-F]{6}$/i.test(o)?(o.replace(/[0-9A-F]{2}/ig,function(e){r.push(parseInt(e,16))}),"rgba(".concat(r.join(","),", ").concat(a,")")):"rgba(255, 255, 255, 0.1)"};c.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement};c.checkIsFunction=function(o){return o&&typeof o=="function"};c.checkIsObject=function(o){return o!==null&&j(o)==="object"};c.hide=function(o){o.style.display="none"};c.show=function(o,a){o.style.display=a||"block"};c.isUndefined=function(o){if(typeof o>"u"||o===null)return!0};c.isNotNull=function(o){return o!=null};c.setStyleFromCsstext=function(o,a){if(a)if(c.typeOf(a)==="String"){var r=a.replace(/\s+/g,"").split(";");r.map(function(t){if(t){var e=t.split(":");e.length>1&&(o.style[e[0]]=e[1])}})}else Object.keys(a).map(function(t){o.style[t]=a[t]})};function qi(o,a){for(var r=0,t=a.length;r-1)return!0;return!1}c.filterStyleFromText=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],r=o.style.cssText;if(!r)return{};var t=r.replace(/\s+/g,"").split(";"),e={},i={};return t.map(function(n){if(n){var s=n.split(":");s.length>1&&(qi(s[0],a)?e[s[0]]=s[1]:i[s[0]]=s[1])}}),o.setAttribute("style",""),Object.keys(i).map(function(n){o.style[n]=i[n]}),e};c.getStyleFromCsstext=function(o){var a=o.style.cssText;if(!a)return{};var r=a.replace(/\s+/g,"").split(";"),t={};return r.map(function(e){if(e){var i=e.split(":");i.length>1&&(t[i[0]]=i[1])}}),t};c.preloadImg=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};if(o){var t=new window.Image;t.onload=function(e){t=null,a&&a(e)},t.onerror=function(e){t=null,r&&r(e)},t.src=o}};c.stopPropagation=function(o){o&&(o.stopPropagation(),o.cancelable&&o.preventDefault())};c.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0};c.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0};c.checkTouchSupport=function(){return"ontouchstart"in window};c.getBuffered2=function(o){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5,r=[],t=0;ts&&(e[n-1].end=r[i].end):e.push(r[i])}else e.push(r[i])}else e=r;return new $i(e)};c.getEventPos=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return o.touches&&o.touches.length>0&&(o=o.touches[0]),{x:o.x/a,y:o.y/a,clientX:o.clientX/a,clientY:o.clientY/a,offsetX:o.offsetX/a,offsetY:o.offsetY/a,pageX:o.pageX/a,pageY:o.pageY/a}};c.requestAnimationFrame=function(o){var a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(a)return a(o)};c.getHostFromUrl=function(o){if(c.typeOf(o)!=="String")return"";var a=o.split("/"),r="";return a.length>3&&a[2]&&(r=a[2]),r};c.cancelAnimationFrame=function(o){var a=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;a&&a(o)};c.isMSE=function(o){return!o||!(o instanceof HTMLMediaElement)?!1:/^blob/.test(o.currentSrc)||/^blob/.test(o.src)};c.generateSessionId=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,a=new Date().getTime();try{o=parseInt(o)}catch{o=0}a+=o,window.performance&&typeof window.performance.now=="function"&&(a+=parseInt(window.performance.now()));var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(t==="x"?e:e&3|8).toString(16)});return r};c.createEvent=function(o){var a;return typeof window.Event=="function"?a=new Event(o):(a=document.createEvent("Event"),a.initEvent(o,!0,!0)),a};c.adjustTimeByDuration=function(o,a,r){return!a||!o?o:o>a||r&&o=a||Y<0||f&&$>=i}function H(){var R=Date.now();if(b(R))return M(R);s=_(H,T(R))}function M(R){return s=void 0,d&&t?v(R):(t=e=void 0,n)}function z(){s!==void 0&&m(s),l=0,t=u=e=s=void 0}function N(){return s===void 0?n:M(Date.now())}function W(){return s!==void 0}function G(){for(var R=Date.now(),Y=b(R),$=arguments.length,q=new Array($),ae=0;ae<$;ae++)q[ae]=arguments[ae];if(t=q,e=this,u=R,Y){if(s===void 0)return k(u);if(f)return s=_(H,a),v(u)}return s===void 0&&(s=_(H,a)),n}return G.cancel=z,G.flush=N,G.pending=W,G}function Ji(o,a,r){var t=!0,e=!0;if(typeof o!="function")throw new TypeError("Expected a function");return ai(r)&&(t="leading"in r?!!r.leading:t,e="trailing"in r?!!r.trailing:e),Zi(o,a,{leading:t,trailing:e,maxWait:a})}function Qi(){var o=(document.documentElement.getAttribute("lang")||navigator.language||"zh-cn").toLocaleLowerCase();return o==="zh-cn"&&(o="zh"),o}function en(o,a,r){if(o){var t=o.getAttribute(r);return!!(t&&t===a&&(o.tagName==="VIDEO"||o.tagName==="AUDIO"))}}var Dt={android:/(Android)\s([\d.]+)/,ios:/(Version)\/([\d.]+)/},tn=["avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","avc1.42E01E","mp4v.20.8","avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","mp4v.20.8, mp4a.40.2","mp4v.20.240, mp4a.40.2"],A={get device(){var o=A.os;return o.isPc?"pc":"mobile"},get browser(){if(typeof navigator>"u")return"";var o=navigator.userAgent.toLowerCase(),a={ie:/rv:([\d.]+)\) like gecko/,firefox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(a).filter(function(r){return a[r].test(o)}))[0]},get os(){if(typeof navigator>"u")return{};var o=navigator.userAgent,a=/(?:Windows Phone)/.test(o),r=/(?:SymbianOS)/.test(o)||a,t=/(?:Android)/.test(o),e=/(?:Firefox)/.test(o),i=/(?:iPad|PlayBook)/.test(o)||t&&!/(?:Mobile)/.test(o)||e&&/(?:Tablet)/.test(o),n=/(?:iPhone)/.test(o)&&!i,s=!n&&!t&&!r&&!i,u=/(?:iPad|PlayBook)/.test(o);return{isTablet:i,isPhone:n,isIpad:u,isIos:n||u,isAndroid:t,isPc:s,isSymbian:r,isWindowsPhone:a,isFireFox:e}},get osVersion(){if(typeof navigator>"u")return 0;var o=navigator.userAgent,a="";/(?:iPhone)|(?:iPad|PlayBook)/.test(o)?a=Dt.ios:a=Dt.android;var r=a?a.exec(o):[];if(r&&r.length>=3){var t=r[2].split(".");return t.length>0?parseInt(t[0]):0}return 0},get isWeixin(){if(typeof navigator>"u")return!1;var o=/(micromessenger)\/([\d.]+)/,a=o.exec(navigator.userAgent.toLocaleLowerCase());return!!a},isSupportMP4:function(){var a={isSupport:!1,mime:""};if(typeof document>"u")return a;if(this.supportResult)return this.supportResult;var r=document.createElement("video");return typeof r.canPlayType=="function"&&tn.map(function(t){r.canPlayType('video/mp4; codecs="'.concat(t,'"'))==="probably"&&(a.isSupport=!0,a.mime+="||".concat(t))}),this.supportResult=a,r=null,a},isHevcSupported:function(){return typeof MediaSource>"u"||!MediaSource.isTypeSupported?!1:MediaSource.isTypeSupported('video/mp4;codecs="hev1.1.6.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.2.4.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.3.E.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.4.10.L120.90"')},probeConfigSupported:function(a){var r={supported:!1,smooth:!1,powerEfficient:!1};if(!a||typeof navigator>"u")return Promise.resolve(r);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(a);var t=a.video||{},e=a.audio||{};try{var i=MediaSource.isTypeSupported(t.contentType),n=MediaSource.isTypeSupported(e.contentType);return Promise.resolve({supported:i&&n,smooth:!1,powerEfficient:!1})}catch{return Promise.resolve(r)}}},ot="3.0.2",nn={1:"media",2:"media",3:"media",4:"media",5:"media",6:"media"},Rt={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},ft=w(function o(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};E(this,o);var t=a&&a.i18n?a.i18n.ERROR_TYPES:null;if(a.media){var e=r.mediaError?r.mediaError:a.media.error||{},i=a.duration,n=a.currentTime,s=a.ended,u=a.src,l=a.currentSrc,h=a.media,f=h.readyState,d=h.networkState,g=r.errorCode||e.code;Rt[g]&&(g=Rt[g]);var v={playerVersion:ot,currentTime:n,duration:i,ended:s,readyState:f,networkState:d,src:u||l,errorType:r.errorType,errorCode:g,message:r.errorMessage||e.message,mediaError:e,originError:r.originError?r.originError.stack:"",host:c.getHostFromUrl(u||l)};return r.ext&&Object.keys(r.ext).map(function(T){v[T]=r.ext[T]}),v}else if(arguments.length>1){for(var _={playerVersion:ot,domain:document.domain},m=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],k=0;k0&&arguments[0]!==void 0?arguments[0]:this.media;this._evHandlers||(this._evHandlers=mi.map(function(n){var s="on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));return typeof e[s]=="function"&&e.on(n,e[s]),y({},n,gn(n,e))})),this._evHandlers.forEach(function(n){var s=Object.keys(n)[0];i.addEventListener(s,n[s],!1)})}},{key:"detachVideoEvents",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.media;this._evHandlers.forEach(function(n){var s=Object.keys(n)[0];i.removeEventListener(s,n[s],!1)}),this._evHandlers.forEach(function(n){var s=Object.keys(n)[0],u="on".concat(s.charAt(0).toUpperCase()).concat(s.slice(1));typeof e[u]=="function"&&e.off(s,e[u])}),this._evHandlers=null}},{key:"_attachSourceEvents",value:function(e,i){var n=this;e.removeAttribute("src"),e.load(),i.forEach(function(f){n.media.appendChild(c.createDom("source","",{src:"".concat(f.src),type:"".concat(f.type||"")}))});var s=e.children;if(s){this._videoSourceCount=s.length;for(var u=null,l=0;l0;)e.removeChild(i[0])}}},{key:"errorHandler",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.media&&(this.media.error||i)){var n=this.media.error||i,s=n.code?nn[n.code]:"other",u=n.message;this.media.currentSrc||(u="empty_src",n={code:6,message:u}),this.emit(e,new ft(this,{errorType:s,errorCode:n.code,errorMessage:n.message||"",mediaError:n}))}}},{key:"destroy",value:function(){this.media&&(this.media.pause&&(this.media.pause(),this.media.muted=!0),this.media.removeAttribute("src"),this.media.load()),this._currentTime=0,this._duration=0,this.mediaConfig=null;for(var e in this._interval)Object.prototype.hasOwnProperty.call(this._interval,e)&&(clearInterval(this._interval[e]),this._interval[e]=null);this.detachVideoEvents(),this.media=null,this.mediaEventMiddleware={},this.removeAllListeners()}},{key:"video",get:function(){return this.media},set:function(e){this.media=e}},{key:"play",value:function(){var e=this.media?this.media.play():null;return e}},{key:"pause",value:function(){this.media&&this.media.pause()}},{key:"load",value:function(){this.media&&this.media.load()}},{key:"canPlayType",value:function(e){return this.media?this.media.canPlayType(e):!1}},{key:"getBufferedRange",value:function(e){var i=[0,0];if(!this.media)return i;e||(e=this.media.buffered);var n=this.media.currentTime;if(e)for(var s=0,u=e.length;s=this.currentTime)return{start:i.start(n),end:i.end(n)};return e}},{key:"crossOrigin",get:function(){return this.media?this.media.crossOrigin:""},set:function(e){this.media&&(this.media.crossOrigin=e)}},{key:"currentSrc",get:function(){return this.media?this.media.currentSrc:""},set:function(e){this.media&&(this.media.currentSrc=e)}},{key:"currentTime",get:function(){return this.media?this.media.currentTime!==void 0?this.media.currentTime:this._currentTime:0},set:function(e){this.media&&(this.media.currentTime=e)}},{key:"defaultMuted",get:function(){return this.media?this.media.defaultMuted:!1},set:function(e){this.media&&(this.media.defaultMuted=e)}},{key:"duration",get:function(){return this._duration}},{key:"ended",get:function(){return this.media?this.media.ended:!1}},{key:"error",get:function(){return this.media.error}},{key:"errorNote",get:function(){var e=this.media.error;if(!e)return"";var i=["MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED"];return i[this.media.error.code-1]}},{key:"loop",get:function(){return this.media?this.media.loop:!1},set:function(e){this.media&&(this.media.loop=e)}},{key:"muted",get:function(){return this.media?this.media.muted:!1},set:function(e){!this.media||this.media.muted===e||(this._lastMuted=this.media.muted,this.media.muted=e)}},{key:"networkState",get:function(){return this.media.networkState}},{key:"paused",get:function(){return this.media?this.media.paused:!0}},{key:"playbackRate",get:function(){return this.media?this.media.playbackRate:0},set:function(e){!this.media||e===1/0||(this.media.defaultPlaybackRate=e,this.media.playbackRate=e)}},{key:"played",get:function(){return this.media?this.media.played:null}},{key:"preload",get:function(){return this.media?this.media.preload:!1},set:function(e){this.media&&(this.media.preload=e)}},{key:"readyState",get:function(){return this.media.readyState}},{key:"seekable",get:function(){return this.media?this.media.seekable:!1}},{key:"seeking",get:function(){return this.media?this.media.seeking:!1}},{key:"src",get:function(){return this.media?this.media.src:""},set:function(e){if(this.media){if(this.emit(We,e),this.emit(Ae),this._currentTime=0,this._duration=0,/^blob/.test(this.media.currentSrc)||/^blob/.test(this.media.src)){this.onWaiting();return}this._detachSourceEvents(this.media),c.typeOf(e)==="Array"?this._attachSourceEvents(this.media,e):e?this.media.src=e:this.media.removeAttribute("src"),this.load()}}},{key:"volume",get:function(){return this.media?this.media.volume:0},set:function(e){e===1/0||!this.media||(this.media.volume=e)}},{key:"addInnerOP",value:function(e){this._internalOp[e]=!0}},{key:"removeInnerOP",value:function(e){delete this._internalOp[e]}},{key:"emit",value:function(e,i){for(var n,s=arguments.length,u=new Array(s>2?s-2:0),l=2;l2?s-2:0),l=2;l2?s-2:0),l=2;l2?s-2:0),l=2;l0&&arguments[0]!==void 0?arguments[0]:{name:"xgplayer",version:1,db:null,ojstore:{name:"xg-m4a",keypath:"vid"}};E(this,o),this.indexedDB=window.indexedDB||window.webkitindexedDB,this.IDBKeyRange=window.IDBKeyRange||window.webkitIDBKeyRange,this.myDB=a}return w(o,[{key:"openDB",value:function(r){var t=this,e=this,i=this.myDB.version||1,n=e.indexedDB.open(e.myDB.name,i);n.onerror=function(s){},n.onsuccess=function(s){t.myDB.db=s.target.result,r.call(e)},n.onupgradeneeded=function(s){var u=s.target.result;s.target.transaction,u.objectStoreNames.contains(e.myDB.ojstore.name)||u.createObjectStore(e.myDB.ojstore.name,{keyPath:e.myDB.ojstore.keypath})}}},{key:"deletedb",value:function(){var r=this;r.indexedDB.deleteDatabase(this.myDB.name)}},{key:"closeDB",value:function(){this.myDB.db.close()}},{key:"addData",value:function(r,t){for(var e=this.myDB.db.transaction(r,"readwrite").objectStore(r),i,n=0;n3?t-3:0),i=3;i2&&arguments[2]!==void 0?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[o]&&(this.__hooks[o]=null),function(){var t=arguments,e=this;if(r.pre)try{var i;(i=r.pre).call.apply(i,[this].concat(Array.prototype.slice.call(arguments)))}catch(u){throw u.message="[pluginName: ".concat(this.pluginName,":").concat(o,":pre error] >> ").concat(u.message),u}if(this.__hooks&&this.__hooks[o])try{var n,s=(n=this.__hooks[o]).call.apply(n,[this,this].concat(Array.prototype.slice.call(arguments)));s?s.then?s.then(function(u){u!==!1&&Le.apply(void 0,[e,a,r.next].concat(re(t)))}).catch(function(u){throw u}):Le.apply(void 0,[this,a,r.next].concat(Array.prototype.slice.call(arguments))):s===void 0&&Le.apply(void 0,[this,a,r.next].concat(Array.prototype.slice.call(arguments)))}catch(u){throw u.message="[pluginName: ".concat(this.pluginName,":").concat(o,"] >> ").concat(u.message),u}else Le.apply(void 0,[this,a,r.next].concat(Array.prototype.slice.call(arguments)))}.bind(this)}function Ue(o,a){var r=this.__hooks;if(r)return r.hasOwnProperty(o)?(r&&(r[o]=a),!0):(console.warn("has no supported hook which name [".concat(o,"]")),!1)}function Ge(o,a){var r=this.__hooks;r&&delete r[o]}function Ft(o){if(!(!this.plugins||!this.plugins[o.toLowerCase()])){for(var a=this.plugins[o.toLowerCase()],r=arguments.length,t=new Array(r>1?r-1:0),e=1;e1?r-1:0),e=1;e1&&arguments[1]!==void 0?arguments[1]:[];o.__hooks={},a&&a.map(function(r){o.__hooks[r]=null}),Object.defineProperty(o,"hooks",{get:function(){return o.__hooks&&Object.keys(o.__hooks).map(function(t){if(o.__hooks[t])return t})}})}function ki(o){o.__hooks=null}function ue(o,a,r){for(var t=arguments.length,e=new Array(t>3?t-3:0),i=3;i1?e-1:0),n=1;n2&&arguments[2]!==void 0?arguments[2]:{};if(this.player){var i=B(B({},e),{},{pluginName:this.pluginName});this.player.emitUserAction(r,t,i)}}},{key:"hook",value:function(r,t){return Be.call.apply(Be,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"useHooks",value:function(r,t){for(var e=arguments.length,i=new Array(e>2?e-2:0),n=2;n2?e-2:0),n=2;n1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";if(this.player)return e&&(t.pluginName=e),this.player.registerPlugin({plugin:r,options:t})}},{key:"getPlugin",value:function(r){return this.player?this.player.getPlugin(r):null}},{key:"__destroy",value:function(){var r=this,t=this.player,e=this.pluginName;this.offAll(),c.clearAllTimers(this),c.checkIsFunction(this.destroy)&&this.destroy(),["player","playerConfig","pluginName","logger","__args","__hooks"].map(function(i){r[i]=null}),t.unRegisterPlugin(e),ki(this)}}],[{key:"defineGetterOrSetter",value:function(r,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&Object.defineProperty(r,e,t[e])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),o}(),mn=9;if(typeof Element<"u"&&!Element.prototype.matches){var pe=Element.prototype;pe.matches=pe.matchesSelector||pe.mozMatchesSelector||pe.msMatchesSelector||pe.oMatchesSelector||pe.webkitMatchesSelector}function yn(o,a){for(;o&&o.nodeType!==mn;){if(typeof o.matches=="function"&&o.matches(a))return o;o=o.parentNode}}var _n=yn,Cn=_n;function Ze(o,a,r,t,e){var i=bn.apply(this,arguments);return o.addEventListener(r,i,e),{destroy:function(){o.removeEventListener(r,i,e)}}}function kn(o,a,r,t,e){return typeof o.addEventListener=="function"?Ze.apply(null,arguments):typeof r=="function"?Ze.bind(null,document).apply(null,arguments):(typeof o=="string"&&(o=document.querySelectorAll(o)),Array.prototype.map.call(o,function(i){return Ze(i,a,r,t,e)}))}function bn(o,a,r,t){return function(e){e.delegateTarget=Cn(e.target,a),e.delegateTarget&&t.call(o,e)}}var Tn=kn;const Bt=ct(Tn);var En={CONTROLS:"controls",ROOT:"root"},F={ROOT:"root",ROOT_LEFT:"rootLeft",ROOT_RIGHT:"rootRight",ROOT_TOP:"rootTop",CONTROLS_LEFT:"controlsLeft",CONTROLS_RIGTH:"controlsRight",CONTROLS_RIGHT:"controlsRight",CONTROLS_CENTER:"controlsCenter",CONTROLS:"controls"};function Je(o){return o?o.indexOf&&/^(?:http|data:|\/)/.test(o):!1}function wn(o,a){return j(o)==="object"&&o.class&&typeof o.class=="string"?"".concat(a," ").concat(o.class):a}function Sn(o,a){return j(o)==="object"&&o.attr&&j(o.attr)==="object"&&Object.keys(o.attr).map(function(r){a[r]=o.attr[r]}),a}function Ut(o,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",i=null;if(o instanceof window.Element)return c.addClass(o,r),Object.keys(t).map(function(n){o.setAttribute(n,t[n])}),o;if(Je(o)||Je(o.url))return t.src=Je(o)?o:o.url||"",i=c.createDom(o.tag||"img","",t,"xg-img ".concat(r)),i;if(typeof o=="function")try{return i=o(),i instanceof window.Element?(c.addClass(i,r),Object.keys(t).map(function(n){i.setAttribute(n,t[n])}),i):(L.logWarn("warn>>icons.".concat(a," in config of plugin named [").concat(e,"] is a function mast return an Element Object")),null)}catch(n){return L.logError("Plugin named [".concat(e,"]:createIcon"),n),null}return typeof o=="string"?c.createDomFromHtml(o,t,r):(L.logWarn("warn>>icons.".concat(a," in config of plugin named [").concat(e,"] is invalid")),null)}function xn(o,a){var r=a.config.icons||a.playerConfig.icons;Object.keys(o).map(function(t){var e=o[t],i=e&&e.class?e.class:"",n=e&&e.attr?e.attr:{},s=null;r&&r[t]&&(i=wn(r[t],i),n=Sn(r[t],n),s=Ut(r[t],t,i,n,a.pluginName)),!s&&e&&(s=Ut(e.icon?e.icon:e,n,i,{},a.pluginName)),a.icons[t]=s})}function Pn(o,a){Object.keys(o).map(function(r){Object.defineProperty(a.langText,r,{get:function(){var e=a.lang,i=a.i18n;return i[r]?i[r]:o[r]&&o[r][e]||""}})})}var O=function(o){P(r,o);var a=I(r);function r(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return E(this,r),t=a.call(this,e),t.__delegates=[],t}return w(r,[{key:"__init",value:function(e){if(x(S(r.prototype),"__init",this).call(this,e),!!e.root){var i=e.root,n=null;this.icons={},this.root=null,this.parent=null;var s=this.registerIcons()||{};xn(s,this),this.langText={};var u=this.registerLanguageTexts()||{};Pn(u,this);var l="";try{l=this.render()}catch(d){throw L.logError("Plugin:".concat(this.pluginName,":render"),d),new Error("Plugin:".concat(this.pluginName,":render:").concat(d.message))}if(l)n=r.insert(l,i,e.index),n.setAttribute("data-index",e.index);else if(e.tag)n=c.createDom(e.tag,"",e.attr,e.name),n.setAttribute("data-index",e.index),i.appendChild(n);else return;this.root=n,this.parent=i;var h=this.config.attr||{},f=this.config.style||{};this.setAttr(h),this.setStyle(f),this.config.index&&this.root.setAttribute("data-index",this.config.index),this.__registerChildren()}}},{key:"__registerChildren",value:function(){var e=this;if(this.root){this._children=[];var i=this.children();i&&j(i)==="object"&&Object.keys(i).length>0&&Object.keys(i).map(function(n){var s=n,u=i[s],l={root:e.root},h,f;typeof u=="function"?(h=e.config[s]||{},f=u):j(u)==="object"&&typeof u.plugin=="function"&&(h=u.options?c.deepCopy(e.config[s]||{},u.options):e.config[s]||{},f=u.plugin),l.config=h,h.index!==void 0&&(l.index=h.index),h.root&&(l.root=h.root),e.registerPlugin(f,l,s)})}}},{key:"updateLang",value:function(e){e||(e=this.lang);function i(l,h){for(var f=0;f0?i(l.children[f],h):h(l.children[f])}var n=this.root,s=this.i18n,u=this.langText;n&&i(n,function(l){var h=l.getAttribute&&l.getAttribute("lang-key");if(h){var f=s[h.toUpperCase()]||u[h];f&&(l.innerHTML=typeof f=="function"?f(e):f)}})}},{key:"lang",get:function(){return this.player.lang}},{key:"changeLangTextKey",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=this.i18n||{},s=this.langText;e.setAttribute&&e.setAttribute("lang-key",i);var u=n[i]||s[i]||"";u&&(e.innerHTML=u)}},{key:"plugins",value:function(){return this._children}},{key:"children",value:function(){return{}}},{key:"registerPlugin",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";i.root=i.root||this.root;var s=x(S(r.prototype),"registerPlugin",this).call(this,e,i,n);return this._children.push(s),s}},{key:"registerIcons",value:function(){return{}}},{key:"registerLanguageTexts",value:function(){return{}}},{key:"find",value:function(e){if(this.root)return this.root.querySelector(e)}},{key:"bind",value:function(e,i,n){var s=this;if(arguments.length<3&&typeof i=="function")Array.isArray(e)?e.forEach(function(l){s.bindEL(l,i)}):this.bindEL(e,i);else{var u=r.delegate.call(this,this.root,e,i,n);this.__delegates=this.__delegates.concat(u)}}},{key:"unbind",value:function(e,i){var n=this;if(arguments.length<3&&typeof i=="function")Array.isArray(e)?e.forEach(function(l){n.unbindEL(l,i)}):this.unbindEL(e,i);else for(var s="".concat(e,"_").concat(i),u=0;u2&&arguments[2]!==void 0?arguments[2]:!1;this.root&&"on".concat(e)in this.root&&typeof i=="function"&&this.root.addEventListener(e,i,n)}},{key:"unbindEL",value:function(e,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.root&&"on".concat(e)in this.root&&typeof i=="function"&&this.root.removeEventListener(e,i,n)}},{key:"show",value:function(e){if(this.root){this.root.style.display=e!==void 0?e:"block";var i=window.getComputedStyle(this.root,null),n=i.getPropertyValue("display");if(n==="none")return this.root.style.display="block"}}},{key:"hide",value:function(){this.root&&(this.root.style.display="none")}},{key:"appendChild",value:function(e,i){if(!this.root)return null;if(arguments.length<2&&arguments[0]instanceof window.Element)return this.root.appendChild(arguments[0]);if(!i||!(i instanceof window.Element))return null;try{return typeof e=="string"?this.find(e).appendChild(i):e.appendChild(i)}catch(n){return L.logError("Plugin:appendChild",n),null}}},{key:"render",value:function(){return""}},{key:"destroy",value:function(){}},{key:"__destroy",value:function(){var e=this,i=this.player;this.__delegates.map(function(n){n.destroy()}),this.__delegates=[],this._children instanceof Array&&(this._children.map(function(n){i.unRegisterPlugin(n.pluginName)}),this._children=null),this.root&&(this.root.hasOwnProperty("remove")?this.root.remove():this.root.parentNode&&this.root.parentNode.removeChild(this.root)),x(S(r.prototype),"__destroy",this).call(this),this.icons={},["root","parent"].map(function(n){e[n]=null})}}],[{key:"insert",value:function(e,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,s=i.children.length,u=Number(n),l=e instanceof window.Node;if(s){for(var h=0,f=null,d="";h=u){d="beforebegin";break}else g4&&arguments[4]!==void 0?arguments[4]:!1,l=[];if(e instanceof window.Node&&typeof s=="function")if(Array.isArray(n))n.forEach(function(f){var d=Bt(e,i,f,s,u);d.key="".concat(i,"_").concat(f),l.push(d)});else{var h=Bt(e,i,n,s,u);h.key="".concat(i,"_").concat(n),l.push(h)}return l}},{key:"ROOT_TYPES",get:function(){return En}},{key:"POSITIONS",get:function(){return F}}]),r}(he),In=function(){function o(){var a=this;if(E(this,o),y(this,"__trigger",function(r){var t=new Date().getTime();a.timeStamp=t;for(var e=0;e-1?this.__handlers[n].handler=t:this.__handlers.push({target:r,handler:t,playerId:e})}}},{key:"unObserver",value:function(r){var t=-1;this.__handlers.map(function(e,i){r===e.target&&(t=i)});try{this.observer&&this.observer.unobserve(r)}catch{}this.observer&&this.observer.unobserve(r),t>-1&&this.__handlers.splice(t,1)}},{key:"destroyObserver",value:function(){this.observer&&this.observer.disconnect(),this.observer=null,this.__handlers=null}},{key:"__runHandler",value:function(r){for(var t=this.__handlers,e=0;e2&&arguments[2]!==void 0?arguments[2]:{};if(!(!a||!r||typeof r!="function"||r.prototype===void 0)){var e=a._pluginInfoId;if(!(!e||!this.pluginGroup[e])){this.pluginGroup[e]._plugins||(this.pluginGroup[e]._plugins={});var i=this.pluginGroup[e]._plugins,n=this.pluginGroup[e]._originalOptions;t.player=this.pluginGroup[e]._player;var s=t.pluginName||r.pluginName;if(!s)throw new Error("The property pluginName is necessary");if(r.isSupported&&!r.isSupported(a.config.mediaType,a.config.codecType)){console.warn("not supported plugin [".concat(s,"]"));return}t.config||(t.config={});for(var u=Object.keys(n),l=0;l"u"&&(t.config[d]=r.defaultConfig[d])}),t.root?typeof t.root=="string"&&(t.root=a[t.root]):t.root=a.root,t.index=t.config.index||0;try{i[s.toLowerCase()]&&(this.unRegister(e,s.toLowerCase()),console.warn("the is one plugin with same pluginName [".concat(s,"] exist, destroy the old instance")));var f=new r(t);return i[s.toLowerCase()]=f,i[s.toLowerCase()].func=r,f&&typeof f.afterCreate=="function"&&f.afterCreate(),f}catch(d){throw console.error(d),d}}}},unRegister:function(a,r){a._pluginInfoId&&(a=a._pluginInfoId),r=r.toLowerCase();try{var t=this.pluginGroup[a]._plugins[r];t&&(t.pluginName&&t.__destroy(),delete this.pluginGroup[a]._plugins[r])}catch(e){console.error("[unRegister:".concat(r,"] cgid:[").concat(a,"] error"),e)}},deletePlugin:function(a,r){var t=a._pluginInfoId;t&&this.pluginGroup[t]&&this.pluginGroup[t]._plugins&&delete this.pluginGroup[t]._plugins[r]},getPlugins:function(a){var r=a._pluginInfoId;return r&&this.pluginGroup[r]?this.pluginGroup[r]._plugins:{}},findPlugin:function(a,r){var t=a._pluginInfoId;if(!t||!this.pluginGroup[t])return null;var e=r.toLowerCase();return this.pluginGroup[t]._plugins[e]},beforeInit:function(a){var r=this;function t(e){return!e||!e.then?new Promise(function(i){i()}):e}return new Promise(function(e){if(r.pluginGroup){var i;return a._loadingPlugins&&a._loadingPlugins.length?i=Promise.all(a._loadingPlugins):i=Promise.resolve(),i.then(function(){var n=a._pluginInfoId;if(!r.pluginGroup[n]){e();return}var s=r.pluginGroup[n]._plugins,u=[];Object.keys(s).forEach(function(l){if(s[l]&&s[l].beforePlayerInit)try{var h=s[l].beforePlayerInit();u.push(t(h))}catch(f){throw u.push(t(null)),f}}),Promise.all([].concat(u)).then(function(){e()}).catch(function(l){console.error(l),e()})})}})},afterInit:function(a){var r=a._pluginInfoId;if(!(!r||!this.pluginGroup[r])){var t=this.pluginGroup[r]._plugins;Object.keys(t).forEach(function(e){t[e]&&t[e].afterPlayerInit&&t[e].afterPlayerInit()})}},setLang:function(a,r){var t=r._pluginInfoId;if(!(!t||!this.pluginGroup[t])){var e=this.pluginGroup[t]._plugins;Object.keys(e).forEach(function(i){if(e[i].updateLang)e[i].updateLang(a);else try{e[i].lang=a}catch{console.warn("".concat(i," setLang"))}})}},reRender:function(a){var r=this,t=a._pluginInfoId;if(!(!t||!this.pluginGroup[t])){var e=[],i=this.pluginGroup[t]._plugins;Object.keys(i).forEach(function(n){n!=="controls"&&i[n]&&(e.push({plugin:i[n].func,options:i[n].__args}),r.unRegister(t,n))}),e.forEach(function(n){r.register(a,n.plugin,n.options)})}},onPluginsReady:function(a){var r=a._pluginInfoId;if(!(!r||!this.pluginGroup[r])){var t=this.pluginGroup[r]._plugins||{};Object.keys(t).forEach(function(e){t[e].onPluginsReady&&typeof t[e].onPluginsReady=="function"&&t[e].onPluginsReady()})}},setCurrentUserActive:function(a,r){if(this.pluginGroup[a]){if(!r)return this.pluginGroup[a]._player.isUserActive=r,a;for(var t=Object.keys(this.pluginGroup),e=0;e0&&this.setCurrentUserActive(u[u.length-1],!0)}}}},C={DEFAULT:"xgplayer",DEFAULT_SKIN:"xgplayer-skin-default",ENTER:"xgplayer-is-enter",PAUSED:"xgplayer-pause",PLAYING:"xgplayer-playing",ENDED:"xgplayer-ended",CANPLAY:"xgplayer-canplay",LOADING:"xgplayer-isloading",ERROR:"xgplayer-is-error",REPLAY:"xgplayer-replay",NO_START:"xgplayer-nostart",ACTIVE:"xgplayer-active",INACTIVE:"xgplayer-inactive",FULLSCREEN:"xgplayer-is-fullscreen",CSS_FULLSCREEN:"xgplayer-is-cssfullscreen",ROTATE_FULLSCREEN:"xgplayer-rotate-fullscreen",PARENT_ROTATE_FULLSCREEN:"xgplayer-rotate-parent",PARENT_FULLSCREEN:"xgplayer-fullscreen-parent",INNER_FULLSCREEN:"xgplayer-fullscreen-inner",NO_CONTROLS:"no-controls",FLEX_CONTROLS:"flex-controls",CONTROLS_FOLLOW:"controls-follow",CONTROLS_AUTOHIDE:"controls-autohide",TOP_BAR_AUTOHIDE:"top-bar-autohide",NOT_ALLOW_AUTOPLAY:"not-allow-autoplay",SEEKING:"seeking",PC:"xgplayer-pc",MOBILE:"xgplayer-mobile",MINI:"xgplayer-mini"};function Gt(){return{id:"",el:null,url:"",domEventType:"default",nullUrlStart:!1,width:600,height:337.5,fluid:!1,fitVideoSize:"fixed",videoFillMode:"auto",volume:.6,autoplay:!1,autoplayMuted:!1,loop:!1,isLive:!1,zoom:1,videoInit:!0,poster:"",isMobileSimulateMode:!1,defaultPlaybackRate:1,execBeforePluginsCall:null,allowSeekAfterEnded:!0,enableContextmenu:!0,closeVideoClick:!1,closeVideoDblclick:!1,closePlayerBlur:!1,closeDelayBlur:!1,leavePlayerTime:3e3,closePlayVideoFocus:!1,closePauseVideoFocus:!1,closeFocusVideoFocus:!0,closeControlsBlur:!0,topBarAutoHide:!0,videoAttributes:{},startTime:0,seekedStatus:"play",miniprogress:!1,disableSwipeHandler:function(){},enableSwipeHandler:function(){},ignores:[],whitelist:[],inactive:3e3,lang:Qi(),controls:!0,marginControls:!1,fullscreenTarget:null,screenShot:!1,rotate:!1,pip:!1,download:!1,mini:!1,cssFullscreen:!0,keyShortcut:!0,presets:[],plugins:[],playbackRate:1,definition:{list:[]},playsinline:!0,customDuration:0,timeOffset:0,icons:{},i18n:[],tabindex:0,thumbnail:null,videoConfig:{},isHideTips:!1,commonStyle:{progressColor:"",playedColor:"",cachedColor:"",sliderBtnStyle:{},volumeColor:""}}}var Dn=function(a,r){var t,e,i;r.preset&&r.options?i=new r.preset(r.options,a.config):i=new r({},a.config);var n=i,s=n.plugins,u=s===void 0?[]:s,l=n.ignores,h=l===void 0?[]:l,f=n.icons,d=f===void 0?{}:f,g=n.i18n,v=g===void 0?[]:g;a.config.plugins||(a.config.plugins=[]),a.config.ignores||(a.config.ignores=[]),(t=a.config.plugins).push.apply(t,re(u)),(e=a.config.ignores).push.apply(e,re(h)),Object.keys(d).map(function(m){a.config.icons[m]||(a.config.icons[m]=d[m])});var _=a.config.i18n||[];v.push.apply(v,re(_)),a.config.i18n=v},Rn=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(this.root){var s=e.defaultConfig||{};if(!i.root){var u=i.position?i.position:i.config&&i.config.position?i.config.position:s.position;switch(u){case F.CONTROLS_LEFT:i.root=this.left;break;case F.CONTROLS_RIGHT:i.root=this.right;break;case F.CONTROLS_CENTER:i.root=this.center;break;case F.CONTROLS:i.root=this.root;break;default:i.root=this.left}return x(S(r.prototype),"registerPlugin",this).call(this,e,i,n)}}}},{key:"destroy",value:function(){A.device!=="mobile"&&(this.unbind("mouseenter",this.onMouseEnter),this.unbind("mouseleave",this.onMouseLeave))}},{key:"render",value:function(){var e=this.config,i=e.mode,n=e.autoHide,s=e.initShow,u=e.disable;if(!u){var l=c.classNames({"xgplayer-controls":!0},{"flex-controls":i==="flex"},{"bottom-controls":i==="bottom"},y({},C.CONTROLS_AUTOHIDE,n),{"xgplayer-controls-initshow":s||!n});return' @@ -7,27 +7,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho - `)}}}],[{key:"pluginName",get:function(){return"controls"}},{key:"defaultConfig",get:function(){return{disable:!1,autoHide:!0,mode:"",initShow:!1}}}]),r}(O),Tn={LANG:"en",TEXT:{ERROR_TYPES:{network:{code:1,msg:"video download error"},mse:{code:2,msg:"stream append error"},parse:{code:3,msg:"parsing error"},format:{code:4,msg:"wrong format"},decoder:{code:5,msg:"decoding error"},runtime:{code:6,msg:"grammatical errors"},timeout:{code:7,msg:"play timeout"},other:{code:8,msg:"other errors"}},HAVE_NOTHING:"There is no information on whether audio/video is ready",HAVE_METADATA:"Audio/video metadata is ready ",HAVE_CURRENT_DATA:"Data about the current play location is available, but there is not enough data to play the next frame/millisecond",HAVE_FUTURE_DATA:"Current and at least one frame of data is available",HAVE_ENOUGH_DATA:"The available data is sufficient to start playing",NETWORK_EMPTY:"Audio/video has not been initialized",NETWORK_IDLE:"Audio/video is active and has been selected for resources, but no network is used",NETWORK_LOADING:"The browser is downloading the data",NETWORK_NO_SOURCE:"No audio/video source was found",MEDIA_ERR_ABORTED:"The fetch process is aborted by the user",MEDIA_ERR_NETWORK:"An error occurred while downloading",MEDIA_ERR_DECODE:"An error occurred while decoding",MEDIA_ERR_SRC_NOT_SUPPORTED:"Audio/video is not supported",REPLAY:"Replay",ERROR:"Network is offline",PLAY_TIPS:"Play",PAUSE_TIPS:"Pause",PLAYNEXT_TIPS:"Play next",DOWNLOAD_TIPS:"Download",ROTATE_TIPS:"Rotate",RELOAD_TIPS:"Reload",FULLSCREEN_TIPS:"Fullscreen",EXITFULLSCREEN_TIPS:"Exit fullscreen",CSSFULLSCREEN_TIPS:"Cssfullscreen",EXITCSSFULLSCREEN_TIPS:"Exit cssfullscreen",TEXTTRACK:"Caption",PIP:"PIP",SCREENSHOT:"Screenshot",LIVE:"LIVE",OFF:"Off",OPEN:"Open",MINI_DRAG:"Click and hold to drag",MINISCREEN:"Miniscreen",REFRESH_TIPS:"Please Try",REFRESH:"Refresh",FORWARD:"forward",LIVE_TIP:"Live"}},K={lang:{},langKeys:[],textKeys:[]};function Pe(o,a){return Object.keys(a).forEach(function(r){var t=c.typeOf(a[r]),e=c.typeOf(o[r]);if(t==="Array"){var i;e!=="Array"&&(o[r]=[]),(i=o[r]).push.apply(i,re(a[r]))}else t==="Object"?(e!=="Object"&&(o[r]={}),Pe(o[r],a[r])):o[r]=a[r]}),o}function mi(){Object.keys(K.lang.en).map(function(o){K.textKeys[o]=o})}function En(o,a){var r=[];if(a||(a=K),!!a.lang){c.typeOf(o)!=="Array"?r=Object.keys(o).map(function(i){var n=i==="zh"?"zh-cn":i;return{LANG:n,TEXT:o[i]}}):r=o;var t=a,e=t.lang;r.map(function(i){i.LANG==="zh"&&(i.LANG="zh-cn"),e[i.LANG]?Pe(e[i.LANG]||{},i.TEXT||{}):Ct(i,a)}),mi()}}function Ct(o,a){var r=o.LANG;if(a||(a=K),!!a.lang){var t=o.TEXT||{};r==="zh"&&(r="zh-cn"),a.lang[r]?Pe(a.lang[r],t):(a.langKeys.push(r),a.lang[r]=t),mi()}}function wn(o){var a,r={lang:{},langKeys:[],textKeys:{},pId:o};return Pe(r.lang,K.lang),(a=r.langKeys).push.apply(a,re(K.langKeys)),Pe(r.textKeys,K.textKeys),r}Ct(Tn);var _e={get textKeys(){return K.textKeys},get langKeys(){return K.langKeys},get lang(){var o={};return K.langKeys.map(function(a){o[a]=K.lang[a]}),K.lang["zh-cn"]&&(o.zh=K.lang["zh-cn"]||{}),o},extend:En,use:Ct,init:wn},D={INITIAL:1,READY:2,ATTACHING:3,ATTACHED:4,NOTALLOW:5,RUNNING:6,ENDED:7,DESTROYED:8},Ft=["ERROR","INITIAL","READY","ATTACHING","ATTACHED","NOTALLOW","RUNNING","ENDED","DESTROYED"],Sn=["play","pause","replay","retry"],Ht=0,Bt=0,kt=function(o){P(r,o);var a=I(r);function r(t){var e;E(this,r);var i=c.deepMerge(Nt(),t);e=a.call(this,i),y(p(e),"canPlayFunc",function(){if(e.config){var v=e.config,_=v.autoplay,m=v.startTime,k=v.defaultPlaybackRate;L.logInfo("player","canPlayFunc, startTime",m),m&&(e.currentTime=m>e.duration?e.duration:m,e.config.startTime=0),e.playbackRate=k,(_||e._useAutoplay)&&e.mediaPlay(),e.off(Z,e.canPlayFunc),e.removeClass(C.ENTER)}}),y(p(e),"onFullscreenChange",function(v,_){var m=function(){c.setTimeout(p(e),function(){e.resize()},100)},k=c.getFullScreenEl();e._fullActionFrom?e._fullActionFrom="":e.emit(He,{eventType:"system",action:"switch_fullscreen",pluginName:"player",currentTime:e.currentTime,duration:e.duration,props:[{prop:"fullscreen",from:!0,to:!1}]});var T=ji(k,e.playerId,oe);if(_||k&&(k===e._fullscreenEl||T))m(),!e.config.closeFocusVideoFocus&&e.media.focus(),e.fullscreen=!0,e.changeFullStyle(e.root,k,C.FULLSCREEN),e.emit(ne,!0,e._fullScreenOffset),e.cssfullscreen&&e.exitCssFullscreen();else if(e.fullscreen){m();var b=p(e),H=b._fullScreenOffset,M=b.config;M.needFullscreenScroll?(window.scrollTo(H.left,H.top),c.setTimeout(p(e),function(){e.fullscreen=!1,e._fullScreenOffset=null},100)):(!e.config.closeFocusVideoFocus&&e.media.focus(),e.fullscreen=!1,e._fullScreenOffset=null),e.cssfullscreen?e.removeClass(C.FULLSCREEN):e.recoverFullStyle(e.root,e._fullscreenEl,C.FULLSCREEN),e._fullscreenEl=null,e.emit(ne,!1)}}),y(p(e),"_onWebkitbeginfullscreen",function(v){e._fullscreenEl=e.media,e.onFullscreenChange(v,!0)}),y(p(e),"_onWebkitendfullscreen",function(v){e.onFullscreenChange(v,!1)}),pi(p(e),Sn),e.config=i,e._pluginInfoId=c.generateSessionId(),Fi(p(e));var n=e.constructor.defaultPreset;if(e.config.presets.length){var s=e.config.presets.indexOf("default");s>=0&&n&&(e.config.presets[s]=n)}else n&&e.config.presets.push(n);e.userTimer=null,e.waitTimer=null,e._state=D.INITIAL,e.isError=!1,e._hasStart=!1,e.isSeeking=!1,e.isCanplay=!1,e._useAutoplay=!1,e.rotateDeg=0,e.isActive=!1,e.fullscreen=!1,e.cssfullscreen=!1,e.isRotateFullscreen=!1,e._fullscreenEl=null,e._cssfullscreenEl=null,e.curDefinition=null,e._orgCss="",e._fullScreenOffset=null,e._videoHeight=0,e._videoWidth=0,e._accPlayed={t:0,acc:0,loopAcc:0},e.innerContainer=null,e.controls=null,e.topBar=null,e.root=null,e.__i18n=_e.init(e._pluginInfoId),A.os.isAndroid&&A.osVersion>0&&A.osVersion<6&&(e.config.autoplay=!1),e.database=new sn,e.isUserActive=!1;var u=e._initDOM();if(!u)return console.error(new Error("can't find the dom which id is ".concat(e.config.id," or this.config.el does not exist"))),lt(e);var l=e.config,h=l.definition,f=h===void 0?{}:h,d=l.url;if(!d&&f.list&&f.list.length>0){var g=f.list.find(function(v){return v.definition&&v.definition===f.defaultDefinition});g||(f.defaultDefinition=f.list[0].definition,g=f.list[0]),e.config.url=g.url,e.curDefinition=g}return e._bindEvents(),e._registerPresets(),e._registerPlugins(),U.onPluginsReady(p(e)),e.getInitDefinition(),e.setState(D.READY),c.setTimeout(p(e),function(){e.emit(pt)},0),e.onReady&&e.onReady(),(e.config.videoInit||e.config.autoplay)&&(!e.hasStart||e.state0?this._attachSourceEvents(this.media,e):!this.media.src||this.media.src!==e?this.media.src=e:e||this.media.removeAttribute("src"),c.typeOf(this.config.volume)==="Number"&&(this.volume=this.config.volume);var n=this.innerContainer?this.innerContainer:this.root;this.media instanceof window.Element&&!n.contains(this.media)&&n.insertBefore(this.media,n.firstChild);var s=this.media.readyState;L.logInfo("_startInit readyState",s),this.config.autoplay&&(!(/^blob/.test(this.media.currentSrc)||/^blob/.test(this.media.src))&&this.load(),(A.os.isIpad||A.os.isPhone)&&this.mediaPlay()),s>=2?this.canPlayFunc():this.once(Z,this.canPlayFunc),(!this.hasStart||this.state0&&arguments[0]!==void 0?arguments[0]:!0;this._loadingPlugins=[];var n=this.config.ignores||[],s=this.config.plugins||[],u=this.config.i18n||[];i&&_e.extend(u,this.__i18n);var l=n.join("||").toLowerCase().split("||"),h=this.plugins;s.forEach(function(f){try{var d=f.plugin?f.plugin.pluginName:f.pluginName;if(d&&l.indexOf(d.toLowerCase())>-1)return null;if(!i&&h[d.toLowerCase()])return;if(f.lazy&&f.loader){var g=U.lazyRegister(e,f);f.forceBeforeInit&&(g.then(function(){e._loadingPlugins.splice(e._loadingPlugins.indexOf(g),1)}).catch(function(v){L.logError("_registerPlugins:loadingPlugin",v),e._loadingPlugins.splice(e._loadingPlugins.indexOf(g),1)}),e._loadingPlugins.push(g));return}return e.registerPlugin(f)}catch(v){L.logError("_registerPlugins:",v)}})}},{key:"_registerPresets",value:function(){var e=this;this.config.presets.forEach(function(i){kn(e,i)})}},{key:"_getRootByPosition",value:function(e){var i=null;switch(e){case F.ROOT_RIGHT:this.rightBar||(this.rightBar=c.createPositionBar("xg-right-bar",this.root)),i=this.rightBar;break;case F.ROOT_LEFT:this.leftBar||(this.leftBar=c.createPositionBar("xg-left-bar",this.root)),i=this.leftBar;break;case F.ROOT_TOP:this.topBar||(this.topBar=c.createPositionBar("xg-top-bar",this.root),this.config.topBarAutoHide&&c.addClass(this.topBar,C.TOP_BAR_AUTOHIDE)),i=this.topBar;break;default:i=this.innerContainer||this.root;break}return i}},{key:"registerPlugin",value:function(e,i){var n=U.formatPluginInfo(e,i),s=n.PLUFGIN,u=n.options,l=this.config.plugins,h=U.checkPluginIfExits(s.pluginName,l);!h&&l.push(s);var f=U.getRootByConfig(s.pluginName,this.config);f.root&&(u.root=f.root),f.position&&(u.position=f.position);var d=u.position?u.position:u.config&&u.config.position||s.defaultConfig&&s.defaultConfig.position;return!u.root&&typeof d=="string"&&d.indexOf("controls")>-1?this.controls&&this.controls.registerPlugin(s,u,s.pluginName):(u.root||(u.root=this._getRootByPosition(d)),U.register(this,s,u))}},{key:"deregister",value:function(e){typeof e=="string"?U.unRegister(this,e):e instanceof he&&U.unRegister(this,e.pluginName)}},{key:"unRegisterPlugin",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.deregister(e),i&&this.removePluginFromConfig(e)}},{key:"removePluginFromConfig",value:function(e){var i;if(typeof e=="string"?i=e:e instanceof he&&(i=e.pluginName),!!i)for(var n=this.config.plugins.length-1;n>-1;n--){var s=this.config.plugins[n];if(s.pluginName.toLowerCase()===i.toLowerCase()){this.config.plugins.splice(n,1);break}}}},{key:"plugins",get:function(){return U.getPlugins(this)}},{key:"getPlugin",value:function(e){var i=U.findPlugin(this,e);return i&&i.pluginName?i:null}},{key:"addClass",value:function(e){this.root&&(c.hasClass(this.root,e)||c.addClass(this.root,e))}},{key:"removeClass",value:function(e){this.root&&c.removeClass(this.root,e)}},{key:"hasClass",value:function(e){if(this.root)return c.hasClass(this.root,e)}},{key:"setAttribute",value:function(e,i){this.root&&this.root.setAttribute(e,i)}},{key:"removeAttribute",value:function(e,i){this.root&&this.root.removeAttribute(e,i)}},{key:"start",value:function(e){var i=this;if(!(this.state>D.ATTACHING))return!e&&!this.config.url&&this.getInitDefinition(),this.hasStart=!0,this.setState(D.ATTACHING),this._registerPlugins(!1),U.beforeInit(this).then(function(){if(i.config){e||(e=i.url||i.config.url);var n=i._startInit(e);return n}}).catch(function(n){throw n.fileName="player",n.lineNumber="236",L.logError("start:beforeInit:",n),n})}},{key:"switchURL",value:function(e,i){var n=this,s=e;c.typeOf(e)==="Object"&&(s=e.url);var u=this.currentTime,l=this.paused&&!this.isError;return this.src=s,new Promise(function(h){var f=function(){n.currentTime=u,l&&n.once("canplay",function(){n.pause()}),h()};A.os.isAndroid?n.once("timeupdate",function(){f()}):n.once("canplay",function(){f()}),n.play()})}},{key:"videoPlay",value:function(){this.mediaPlay()}},{key:"mediaPlay",value:function(){var e=this;if(!this.hasStart&&this.state>>>playPromise.then"),e.setState(D.RUNNING),e.emit(le))}).catch(function(n){if(L.logWarn(">>>>playPromise.catch",n.name),e.media&&e.media.error){e.onError(),e.removeClass(C.ENTER);return}n.name==="NotAllowedError"&&(e._errorTimer=c.setTimeout(e,function(){e._errorTimer=null,e.emit(vt),e.addClass(C.NOT_ALLOW_AUTOPLAY),e.removeClass(C.ENTER),e.pause(),e.setState(D.NOTALLOW)},0))}):(L.logWarn("video.play not return promise"),this.statethis.duration?parseInt(this.duration,10):e,this.once(Z,function(){switch(n.removeClass(C.ENTER),n.isSeeking=!1,h){case"play":n.play();break;case"pause":n.pause();break;default:!n.paused&&n.play()}}),this.state0&&n.defaultDefinition&&n.list.map(function(u){u.definition===n.defaultDefinition&&(e.config.url=u.url,e.curDefinition=u)})}},{key:"changeDefinition",value:function(e,i){var n=this,s=this.config.definition;if(Array.isArray(s==null?void 0:s.list)&&s.list.forEach(function(l){(e==null?void 0:e.definition)===l.definition&&(n.curDefinition=l)}),e!=null&&e.bitrate&&typeof e.bitrate!="number"&&(e.bitrate=parseInt(e.bitrate,10)||0),this.emit(_t,{from:i,to:e}),!this.hasStart){this.config.url=e.url;return}var u=this.switchURL(e.url,B({seamless:s.seamless!==!1&&typeof MediaSource<"u"&&typeof MediaSource.isTypeSupported=="function"},e));u&&u.then?u.then(function(){n.emit(at,{from:i,to:e})}):this.emit(at,{from:i,to:e})}},{key:"reload",value:function(){this.load(),this.reloadFunc=function(){this.play()},this.once(ce,this.reloadFunc)}},{key:"resetState",value:function(){var e=this,i=C.NOT_ALLOW_AUTOPLAY,n=C.PLAYING,s=C.NO_START,u=C.PAUSED,l=C.REPLAY,h=C.ENTER,f=C.ENDED,d=C.ERROR,g=C.LOADING,v=[i,n,s,u,l,h,f,d,g];this.hasStart=!1,this.isError=!1,this._useAutoplay=!1,this.mediaPause(),this._accPlayed.acc=0,this._accPlayed.t=0,this._accPlayed.loopAcc=0,v.forEach(function(_){e.removeClass(_)}),this.addClass(C.ENTER),this.emit(ze)}},{key:"reset",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;this.resetState();var s=this.plugins;if(s&&(i.map(function(l){e.deregister(l)}),n)){var u=Nt();Object.keys(this.config).keys(function(l){e.config[l]!=="undefined"&&(l==="plugins"||l==="presets"||l==="el"||l==="id")&&(e.config[l]=u[l])})}}},{key:"destroy",value:function(){var e=this,i=this.innerContainer,n=this.root,s=this.media;if(!(!n||!s)){if(this.hasStart=!1,this._useAutoplay=!1,n.removeAttribute(oe),this.updateAcc("destroy"),this._unbindEvents(),this._detachSourceEvents(this.media),c.clearAllTimers(this),this.emit(yt),U.destroy(this),vi(this),x(S(r.prototype),"destroy",this).call(this),this.fullscreen&&this._fullscreenEl===this.root&&this.exitFullscreen(),i)for(var u=i.children,l=0;l0?n.className=h.filter(function(f){return f.indexOf("xgplayer")<0}).join(" "):n.className="",this.removeAttribute("data-xgfill"),["isSeeking","isCanplay","isActive","cssfullscreen","fullscreen"].forEach(function(f){e[f]=!1})}}},{key:"replay",value:function(){var e=this;this.removeClass(C.ENDED),this.currentTime=0,this.isSeeking=!1,ue(this,"replay",function(){e.once(Z,function(){var i=e.mediaPlay();i&&i.catch&&i.catch(function(n){console.log(n)})}),e.play(),e.emit(mt),e.onPlay()})}},{key:"retry",value:function(){var e=this;this.removeClass(C.ERROR),this.addClass(C.LOADING),ue(this,"retry",function(){var i=e.currentTime;e.src=e.config.url,!e.config.isLive&&(e.currentTime=i),e.once(Z,function(){e.mediaPlay()})})}},{key:"changeFullStyle",value:function(e,i,n,s){e&&(s||(s=C.PARENT_FULLSCREEN),this._orgCss||(this._orgCss=c.filterStyleFromText(e)),c.addClass(e,n),i&&i!==e&&!this._orgPCss&&(this._orgPCss=c.filterStyleFromText(i),c.addClass(i,s),i.setAttribute(oe,this.playerId)))}},{key:"recoverFullStyle",value:function(e,i,n,s){s||(s=C.PARENT_FULLSCREEN),this._orgCss&&(c.setStyleFromCsstext(e,this._orgCss),this._orgCss=""),c.removeClass(e,n),i&&i!==e&&this._orgPCss&&(c.setStyleFromCsstext(i,this._orgPCss),this._orgPCss="",c.removeClass(i,s),i.removeAttribute(oe))}},{key:"getFullscreen",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.config.fullscreenTarget,i=this.root,n=this.media;e||(e=i),this._fullScreenOffset={top:c.scrollTop(),left:c.scrollLeft()},this._fullscreenEl=e,this._fullActionFrom="get";var s=c.getFullScreenEl();if(s===this._fullscreenEl){this.onFullscreenChange();return}try{for(var u=0;u0&&arguments[0]!==void 0?arguments[0]:this.config.fullscreenTarget;this.isRotateFullscreen?this.exitRotateFullscreen():this.fullscreen&&this.exitFullscreen();var i=e?"".concat(C.INNER_FULLSCREEN," ").concat(C.CSS_FULLSCREEN):C.CSS_FULLSCREEN;this.changeFullStyle(this.root,e,i);var n=this.config.fullscreen,s=n===void 0?{}:n,u=s.useCssFullscreen===!0||typeof s.useCssFullscreen=="function"&&s.useCssFullscreen();u&&(this.fullscreen=!0,this.emit(ne,!0)),this._cssfullscreenEl=e,this.cssfullscreen=!0,this.emit(Me,!0)}},{key:"exitCssFullscreen",value:function(){var e=this._cssfullscreenEl?"".concat(C.INNER_FULLSCREEN," ").concat(C.CSS_FULLSCREEN):C.CSS_FULLSCREEN;if(!this.fullscreen)this.recoverFullStyle(this.root,this._cssfullscreenEl,e);else{var i=this.config.fullscreen,n=i===void 0?{}:i,s=n.useCssFullscreen===!0||typeof n.useCssFullscreen=="function"&&n.useCssFullscreen();s?(this.recoverFullStyle(this.root,this._cssfullscreenEl,e),this.fullscreen=!1,this.emit(ne,!1)):this.removeClass(e)}this._cssfullscreenEl=null,this.cssfullscreen=!1,this.emit(Me,!1)}},{key:"getRotateFullscreen",value:function(e){this.cssfullscreen&&this.exitCssFullscreen(e);var i=e?"".concat(C.INNER_FULLSCREEN," ").concat(C.ROTATE_FULLSCREEN):C.ROTATE_FULLSCREEN;this._fullscreenEl=e||this.root,this.changeFullStyle(this.root,e,i,C.PARENT_ROTATE_FULLSCREEN),this.isRotateFullscreen=!0,this.fullscreen=!0,this.setRotateDeg(90),this.emit(ne,!0)}},{key:"exitRotateFullscreen",value:function(e){var i=this._fullscreenEl!==this.root?"".concat(C.INNER_FULLSCREEN," ").concat(C.ROTATE_FULLSCREEN):C.ROTATE_FULLSCREEN;this.recoverFullStyle(this.root,this._fullscreenEl,i,C.PARENT_ROTATE_FULLSCREEN),this.isRotateFullscreen=!1,this.fullscreen=!1,this.setRotateDeg(0),this.emit(ne,!1)}},{key:"setRotateDeg",value:function(e){window.orientation===90||window.orientation===-90?this.rotateDeg=0:this.rotateDeg=e}},{key:"focus",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{autoHide:!this.config.closeDelayBlur,delay:this.config.inactive};if(this.isActive){this.onFocus(e);return}this.emit(gt,B({paused:this.paused,ended:this.ended},e))}},{key:"blur",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{ignorePaused:!1};if(!this.isActive){this.onBlur(e);return}this.emit(si,B({paused:this.paused,ended:this.ended},e))}},{key:"onFocus",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.autoHide,s=n===void 0?!this.config.closePlayerBlur:n,u=i.delay,l=u===void 0?this.config.inactive:u;if(this.isActive=!0,this.removeClass(C.INACTIVE),this.userTimer&&(c.clearTimeout(this,this.userTimer),this.userTimer=null),!s){this.userTimer&&(c.clearTimeout(this,this.userTimer),this.userTimer=null);return}this.userTimer=c.setTimeout(this,function(){e.userTimer=null,e.blur()},l)}},{key:"onBlur",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=e.ignorePaused,n=i===void 0?!1:i;if(this.isActive){var s=this.config.closePauseVideoFocus;this.isActive=!1,(n||s||!this.paused&&!this.ended)&&this.addClass(C.INACTIVE)}}},{key:"onEmptied",value:function(){this.updateAcc("emptied")}},{key:"onCanplay",value:function(){this.removeClass(C.ENTER),this.removeClass(C.ERROR),this.removeClass(C.LOADING),this.isCanplay=!0,this.waitTimer&&c.clearTimeout(this,this.waitTimer)}},{key:"onLoadeddata",value:function(){this.isError=!1}},{key:"onLoadstart",value:function(){this.removeClass(C.ERROR),this.isCanplay=!1}},{key:"onPlay",value:function(){this.state===D.ENDED&&this.setState(D.RUNNING),this.removeClass(C.PAUSED),this.ended&&this.removeClass(C.ENDED),!this.config.closePlayVideoFocus&&this.focus()}},{key:"onPause",value:function(){this.addClass(C.PAUSED),this.updateAcc("pause"),this.config.closePauseVideoFocus||(this.userTimer&&(c.clearTimeout(this,this.userTimer),this.userTimer=null),this.focus())}},{key:"onEnded",value:function(){this.updateAcc("ended"),this.addClass(C.ENDED),this.setState(D.ENDED)}},{key:"onError",value:function(){this.isError=!0,this.updateAcc("error"),this.removeClass(C.NOT_ALLOW_AUTOPLAY),this.removeClass(C.NO_START),this.removeClass(C.ENTER),this.removeClass(C.LOADING),this.addClass(C.ERROR)}},{key:"onSeeking",value:function(){this.isSeeking||this.updateAcc("seeking"),this.isSeeking=!0,this.addClass(C.SEEKING)}},{key:"onSeeked",value:function(){this.isSeeking=!1,this.waitTimer&&c.clearTimeout(this,this.waitTimer),this.removeClass(C.LOADING),this.removeClass(C.SEEKING)}},{key:"onWaiting",value:function(){var e=this;this.waitTimer&&c.clearTimeout(this,this.waitTimer),this.updateAcc("waiting"),this.waitTimer=c.setTimeout(this,function(){e.addClass(C.LOADING),c.clearTimeout(e,e.waitTimer),e.waitTimer=null},200)}},{key:"onPlaying",value:function(){var e=this;this.isError=!1;var i=C.NO_START,n=C.PAUSED,s=C.ENDED,u=C.ERROR,l=C.REPLAY,h=C.LOADING,f=[i,n,s,u,l,h];f.forEach(function(d){e.removeClass(d)})}},{key:"onTimeupdate",value:function(){!this._videoHeight&&this.resize(),(this.waitTimer||this.hasClass(C.LOADING))&&this.media.readyState>2&&(this.removeClass(C.LOADING),c.clearTimeout(this,this.waitTimer),this.waitTimer=null),!this.paused&&this.staten)return!0;return!1}},{key:"position",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{h:0,y:0,x:0,w:0};if(!(!this.media||!e||!e.h)){var i=1/e.h,n=i!==1?"scale(".concat(i,")"):"",s=0,u=0;e.y&&(u=(100-e.h*100)/2-e.y*100),e.w&&e.x&&(s=(100-e.w*100)/2-e.x*100),n+=" translate(".concat(s,"%, ").concat(u,"%)"),this.media.style.transform=n,this.media.style.webkitTransform=n}}},{key:"setConfig",value:function(e){var i=this;e&&Object.keys(e).map(function(n){if(n!=="plugins"){i.config[n]=e[n];var s=i.plugins[n.toLowerCase()];s&&c.typeOf(s.setConfig)==="Function"&&s.setConfig(e[n])}})}},{key:"playNext",value:function(e){var i=this;this.resetState(),this.setConfig(e),this._currentTime=0,this._duration=0,ue(this,"playnext",function(){i.start(),i.emit(Fe,e)})}},{key:"resize",value:function(){var e=this;if(this.media){var i=this.media,n=i.videoWidth,s=i.videoHeight,u=this.config,l=u.fitVideoSize,h=u.videoFillMode;if((h==="fill"||h==="cover")&&this.setAttribute("data-xgfill",h),!(!s||!n)){this._videoHeight=s,this._videoWidth=n;var f=this.root.getBoundingClientRect(),d=this.controls&&this.innerContainer?this.controls.root.getBoundingClientRect().height:0,g=f.width,v=f.height-d,_=parseInt(n/s*1e3,10),m=parseInt(g/v*1e3,10),k=g,T=v,b={};l==="auto"&&m>_||l==="fixWidth"?(T=g/_*1e3,this.config.fluid?b.paddingTop="".concat(T*100/k,"%"):b.height="".concat(T+d,"px")):(l==="auto"&&m<_||l==="fixHeight")&&(k=_*v/1e3,b.width="".concat(k,"px")),!this.fullscreen&&!this.cssfullscreen&&Object.keys(b).forEach(function(M){e.root.style[M]=b[M]}),(h==="fillHeight"&&m<_||h==="fillWidth"&&m>_)&&this.setAttribute("data-xgfill","cover");var H={videoScale:_,vWidth:k,vHeight:T,cWidth:k,cHeight:T+d};this.emit(Ce,H)}}}},{key:"updateObjectPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this.media.updateObjectPosition){this.media.updateObjectPosition(e,i);return}this.media.style.objectPosition="".concat(e*100,"% ").concat(i*100,"%")}},{key:"setState",value:function(e){L.logInfo("setState","state from:".concat(Ft[this.state]," to:").concat(Ft[e])),this._state=e}},{key:"state",get:function(){return this._state}},{key:"isFullscreen",get:function(){return this.fullscreen}},{key:"isCssfullScreen",get:function(){return this.cssfullscreen}},{key:"hasStart",get:function(){return this._hasStart},set:function(e){typeof e=="boolean"&&(this._hasStart=e,e===!1&&this.setState(D.READY),this.emit("hasstart"))}},{key:"isPlaying",get:function(){return this._state===D.RUNNING||this._state===D.ENDED},set:function(e){e?this.setState(D.RUNNING):this._state>=D.RUNNING&&this.setState(D.ATTACHED)}},{key:"definitionList",get:function(){return!this.config||!this.config.definition?[]:this.config.definition.list||[]},set:function(e){var i=this,n=this.config.definition,s=null,u=null;n.list=e,this.emit("resourceReady",e),e.forEach(function(l){var h;((h=i.curDefinition)===null||h===void 0?void 0:h.definition)===l.definition&&(s=l),n.defaultDefinition===l.definition&&(u=l)}),!u&&e.length>0&&(u=e[0]),s?this.changeDefinition(s):u&&this.changeDefinition(u)}},{key:"videoFrameInfo",get:function(){var e={total:0,dropped:0,corrupted:0,droppedRate:0,droppedDuration:0};if(!this.media||!this.media.getVideoPlaybackQuality)return e;var i=this.media.getVideoPlaybackQuality();return e.dropped=i.droppedVideoFrames||0,e.total=i.totalVideoFrames||0,e.corrupted=i.corruptedVideoFrames||0,e.total>0&&(e.droppedRate=e.dropped/e.total*100,e.droppedDuration=parseInt(this.cumulateTime/e.total*e.dropped,0)),e}},{key:"lang",get:function(){return this.config.lang},set:function(e){var i=_e.langKeys.filter(function(n){return n===e});if(i.length===0&&e!=="zh"){console.error("Sorry, set lang fail, because the language [".concat(e,"] is not supported now, list of all supported languages is [").concat(_e.langKeys.join(),"] "));return}this.config.lang=e,U.setLang(e,this)}},{key:"i18n",get:function(){var e=this.config.lang;return e==="zh"&&(e="zh-cn"),this.__i18n.lang[e]||this.__i18n.lang.en}},{key:"i18nKeys",get:function(){return this.__i18n.textKeys||{}}},{key:"version",get:function(){return st}},{key:"playerId",get:function(){return this._pluginInfoId}},{key:"url",get:function(){return this.__url||this.config.url},set:function(e){this.__url=e}},{key:"poster",get:function(){return this.plugins.poster?this.plugins.poster.config.poster:this.config.poster},set:function(e){this.plugins.poster&&this.plugins.poster.update(e)}},{key:"readyState",get:function(){return x(S(r.prototype),"readyState",this)}},{key:"error",get:function(){var e=x(S(r.prototype),"error",this);return this.i18n[e]||e}},{key:"networkState",get:function(){return x(S(r.prototype),"networkState",this)}},{key:"fullscreenChanging",get:function(){return this._fullScreenOffset!==null}},{key:"cumulateTime",get:function(){var e=this._accPlayed;return this.updateAcc("get"),e.acc}},{key:"zoom",get:function(){return this.config.zoom},set:function(e){this.config.zoom=e}},{key:"avgSpeed",get:function(){return Bt},set:function(e){Bt=e}},{key:"realTimeSpeed",get:function(){return Ht},set:function(e){Ht=e}},{key:"hook",value:function(e,i){return Be.call.apply(Be,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"useHooks",value:function(e,i){return Ue.call.apply(Ue,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"removeHooks",value:function(e,i){return Ve.call.apply(Ve,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"usePluginHooks",value:function(e,i,n){for(var s=arguments.length,u=new Array(s>3?s-3:0),l=3;l3?s-3:0),l=3;l0&&n&&!s&&(L.logInfo("[xgLogger]".concat(this.player.playerId," emitLog_firstFrame"),e),this._state.isFFLoading=!1,this._state.isFFSend=!0,this.emitLog(te.FIRST_FRAME,{fvt:this.fvt,costTime:this.fvt,vt:this.vt,startCostTime:this.startCostTime,loadedCostTime:this.loadedCostTime}))}},{key:"_startWaitTimeout",value:function(){var e=this;this._waittTimer&&c.clearTimeout(this,this._waittTimer),this._waittTimer=c.setTimeout(this,function(){e.suspendWaitingStatus("timeout"),c.clearTimeout(e,e._waittTimer),e._waittTimer=null},this.config.waitTimeout)}},{key:"endState",value:function(e){this.suspendWaitingStatus(e),this.suspendSeekingStatus(e)}},{key:"suspendSeekingStatus",value:function(e){if(this.seekingStart){var i=G(),n=i-this.seekingStart;this.seekingStart=0,this.emitLog(te.SEEK_END,{end:i,costTime:n,endType:e})}}},{key:"suspendWaitingStatus",value:function(e){if(this._waitTimer&&(c.clearTimeout(this,this._waitTimer),this._waitTimer=null),this._waittTimer&&(c.clearTimeout(this,this._waittTimer),this._waittTimer=null),this._isWaiting=!1,!!this.waitingStart){var i=G(),n=i-this.waitingStart,s=i-this.fixedWaitingStart,u=this.config.waitTimeout;this._isWaiting=!1,this.waitingStart=0,this.fixedWaitingStart=0,this.emitLog(te.WAIT_END,{fixedCostTime:s>u?u:s,costTime:n>u?u:n,type:e==="loadeddata"?1:this._waitType,endType:this._waitType===2?"seek":e})}}},{key:"emitLog",value:function(e,i){var n=this.player;this.emit(hi,B({t:G(),host:c.getHostFromUrl(n.currentSrc),vtype:n.vtype,eventType:e,currentTime:this.player.currentTime,readyState:n.video.readyState,networkState:n.video.networkState},i))}}],[{key:"pluginName",get:function(){return"xgLogger"}},{key:"defaultConfig",get:function(){return{waitTimeout:1e4}}}]),r}(O);function Pn(){return new DOMParser().parseFromString(` + `)}}}],[{key:"pluginName",get:function(){return"controls"}},{key:"defaultConfig",get:function(){return{disable:!1,autoHide:!0,mode:"",initShow:!1}}}]),r}(O),On={LANG:"en",TEXT:{ERROR_TYPES:{network:{code:1,msg:"video download error"},mse:{code:2,msg:"stream append error"},parse:{code:3,msg:"parsing error"},format:{code:4,msg:"wrong format"},decoder:{code:5,msg:"decoding error"},runtime:{code:6,msg:"grammatical errors"},timeout:{code:7,msg:"play timeout"},other:{code:8,msg:"other errors"}},HAVE_NOTHING:"There is no information on whether audio/video is ready",HAVE_METADATA:"Audio/video metadata is ready ",HAVE_CURRENT_DATA:"Data about the current play location is available, but there is not enough data to play the next frame/millisecond",HAVE_FUTURE_DATA:"Current and at least one frame of data is available",HAVE_ENOUGH_DATA:"The available data is sufficient to start playing",NETWORK_EMPTY:"Audio/video has not been initialized",NETWORK_IDLE:"Audio/video is active and has been selected for resources, but no network is used",NETWORK_LOADING:"The browser is downloading the data",NETWORK_NO_SOURCE:"No audio/video source was found",MEDIA_ERR_ABORTED:"The fetch process is aborted by the user",MEDIA_ERR_NETWORK:"An error occurred while downloading",MEDIA_ERR_DECODE:"An error occurred while decoding",MEDIA_ERR_SRC_NOT_SUPPORTED:"Audio/video is not supported",REPLAY:"Replay",ERROR:"Network is offline",PLAY_TIPS:"Play",PAUSE_TIPS:"Pause",PLAYNEXT_TIPS:"Play next",DOWNLOAD_TIPS:"Download",ROTATE_TIPS:"Rotate",RELOAD_TIPS:"Reload",FULLSCREEN_TIPS:"Fullscreen",EXITFULLSCREEN_TIPS:"Exit fullscreen",CSSFULLSCREEN_TIPS:"Cssfullscreen",EXITCSSFULLSCREEN_TIPS:"Exit cssfullscreen",TEXTTRACK:"Caption",PIP:"PIP",SCREENSHOT:"Screenshot",LIVE:"LIVE",OFF:"Off",OPEN:"Open",MINI_DRAG:"Click and hold to drag",MINISCREEN:"Miniscreen",REFRESH_TIPS:"Please Try",REFRESH:"Refresh",FORWARD:"forward",LIVE_TIP:"Live"}},K={lang:{},langKeys:[],textKeys:[]};function Pe(o,a){return Object.keys(a).forEach(function(r){var t=c.typeOf(a[r]),e=c.typeOf(o[r]);if(t==="Array"){var i;e!=="Array"&&(o[r]=[]),(i=o[r]).push.apply(i,re(a[r]))}else t==="Object"?(e!=="Object"&&(o[r]={}),Pe(o[r],a[r])):o[r]=a[r]}),o}function bi(){Object.keys(K.lang.en).map(function(o){K.textKeys[o]=o})}function Mn(o,a){var r=[];if(a||(a=K),!!a.lang){c.typeOf(o)!=="Array"?r=Object.keys(o).map(function(i){var n=i==="zh"?"zh-cn":i;return{LANG:n,TEXT:o[i]}}):r=o;var t=a,e=t.lang;r.map(function(i){i.LANG==="zh"&&(i.LANG="zh-cn"),e[i.LANG]?Pe(e[i.LANG]||{},i.TEXT||{}):bt(i,a)}),bi()}}function bt(o,a){var r=o.LANG;if(a||(a=K),!!a.lang){var t=o.TEXT||{};r==="zh"&&(r="zh-cn"),a.lang[r]?Pe(a.lang[r],t):(a.langKeys.push(r),a.lang[r]=t),bi()}}function Nn(o){var a,r={lang:{},langKeys:[],textKeys:{},pId:o};return Pe(r.lang,K.lang),(a=r.langKeys).push.apply(a,re(K.langKeys)),Pe(r.textKeys,K.textKeys),r}bt(On);var _e={get textKeys(){return K.textKeys},get langKeys(){return K.langKeys},get lang(){var o={};return K.langKeys.map(function(a){o[a]=K.lang[a]}),K.lang["zh-cn"]&&(o.zh=K.lang["zh-cn"]||{}),o},extend:Mn,use:bt,init:Nn},D={INITIAL:1,READY:2,ATTACHING:3,ATTACHED:4,NOTALLOW:5,RUNNING:6,ENDED:7,DESTROYED:8},Vt=["ERROR","INITIAL","READY","ATTACHING","ATTACHED","NOTALLOW","RUNNING","ENDED","DESTROYED"],Fn=["play","pause","replay","retry"],jt=0,Wt=0,Tt=function(o){P(r,o);var a=I(r);function r(t){var e;E(this,r);var i=c.deepMerge(Gt(),t);e=a.call(this,i),y(p(e),"canPlayFunc",function(){if(e.config){var v=e.config,_=v.autoplay,m=v.startTime,k=v.defaultPlaybackRate;L.logInfo("player","canPlayFunc, startTime",m),m&&(e.currentTime=m>e.duration?e.duration:m,e.config.startTime=0),e.playbackRate=k,(_||e._useAutoplay)&&e.mediaPlay(),e.off(Z,e.canPlayFunc),e.removeClass(C.ENTER)}}),y(p(e),"onFullscreenChange",function(v,_){var m=function(){c.setTimeout(p(e),function(){e.resize()},100)},k=c.getFullScreenEl();e._fullActionFrom?e._fullActionFrom="":e.emit(He,{eventType:"system",action:"switch_fullscreen",pluginName:"player",currentTime:e.currentTime,duration:e.duration,props:[{prop:"fullscreen",from:!0,to:!1}]});var T=en(k,e.playerId,oe);if(_||k&&(k===e._fullscreenEl||T))m(),!e.config.closeFocusVideoFocus&&e.media.focus(),e.fullscreen=!0,e.changeFullStyle(e.root,k,C.FULLSCREEN),e.emit(ne,!0,e._fullScreenOffset),e.cssfullscreen&&e.exitCssFullscreen();else if(e.fullscreen){m();var b=p(e),H=b._fullScreenOffset,M=b.config;M.needFullscreenScroll?(window.scrollTo(H.left,H.top),c.setTimeout(p(e),function(){e.fullscreen=!1,e._fullScreenOffset=null},100)):(!e.config.closeFocusVideoFocus&&e.media.focus(),e.fullscreen=!1,e._fullScreenOffset=null),e.cssfullscreen?e.removeClass(C.FULLSCREEN):e.recoverFullStyle(e.root,e._fullscreenEl,C.FULLSCREEN),e._fullscreenEl=null,e.emit(ne,!1)}}),y(p(e),"_onWebkitbeginfullscreen",function(v){e._fullscreenEl=e.media,e.onFullscreenChange(v,!0)}),y(p(e),"_onWebkitendfullscreen",function(v){e.onFullscreenChange(v,!1)}),Ci(p(e),Fn),e.config=i,e._pluginInfoId=c.generateSessionId(),Xi(p(e));var n=e.constructor.defaultPreset;if(e.config.presets.length){var s=e.config.presets.indexOf("default");s>=0&&n&&(e.config.presets[s]=n)}else n&&e.config.presets.push(n);e.userTimer=null,e.waitTimer=null,e._state=D.INITIAL,e.isError=!1,e._hasStart=!1,e.isSeeking=!1,e.isCanplay=!1,e._useAutoplay=!1,e.rotateDeg=0,e.isActive=!1,e.fullscreen=!1,e.cssfullscreen=!1,e.isRotateFullscreen=!1,e._fullscreenEl=null,e._cssfullscreenEl=null,e.curDefinition=null,e._orgCss="",e._fullScreenOffset=null,e._videoHeight=0,e._videoWidth=0,e._accPlayed={t:0,acc:0,loopAcc:0},e.innerContainer=null,e.controls=null,e.topBar=null,e.root=null,e.__i18n=_e.init(e._pluginInfoId),A.os.isAndroid&&A.osVersion>0&&A.osVersion<6&&(e.config.autoplay=!1),e.database=new vn,e.isUserActive=!1;var u=e._initDOM();if(!u)return console.error(new Error("can't find the dom which id is ".concat(e.config.id," or this.config.el does not exist"))),ht(e);var l=e.config,h=l.definition,f=h===void 0?{}:h,d=l.url;if(!d&&f.list&&f.list.length>0){var g=f.list.find(function(v){return v.definition&&v.definition===f.defaultDefinition});g||(f.defaultDefinition=f.list[0].definition,g=f.list[0]),e.config.url=g.url,e.curDefinition=g}return e._bindEvents(),e._registerPresets(),e._registerPlugins(),U.onPluginsReady(p(e)),e.getInitDefinition(),e.setState(D.READY),c.setTimeout(p(e),function(){e.emit(mt)},0),e.onReady&&e.onReady(),(e.config.videoInit||e.config.autoplay)&&(!e.hasStart||e.state0?this._attachSourceEvents(this.media,e):!this.media.src||this.media.src!==e?this.media.src=e:e||this.media.removeAttribute("src"),c.typeOf(this.config.volume)==="Number"&&(this.volume=this.config.volume);var n=this.innerContainer?this.innerContainer:this.root;this.media instanceof window.Element&&!n.contains(this.media)&&n.insertBefore(this.media,n.firstChild);var s=this.media.readyState;L.logInfo("_startInit readyState",s),this.config.autoplay&&(!(/^blob/.test(this.media.currentSrc)||/^blob/.test(this.media.src))&&this.load(),(A.os.isIpad||A.os.isPhone)&&this.mediaPlay()),s>=2?this.canPlayFunc():this.once(Z,this.canPlayFunc),(!this.hasStart||this.state0&&arguments[0]!==void 0?arguments[0]:!0;this._loadingPlugins=[];var n=this.config.ignores||[],s=this.config.plugins||[],u=this.config.i18n||[];i&&_e.extend(u,this.__i18n);var l=n.join("||").toLowerCase().split("||"),h=this.plugins;s.forEach(function(f){try{var d=f.plugin?f.plugin.pluginName:f.pluginName;if(d&&l.indexOf(d.toLowerCase())>-1)return null;if(!i&&h[d.toLowerCase()])return;if(f.lazy&&f.loader){var g=U.lazyRegister(e,f);f.forceBeforeInit&&(g.then(function(){e._loadingPlugins.splice(e._loadingPlugins.indexOf(g),1)}).catch(function(v){L.logError("_registerPlugins:loadingPlugin",v),e._loadingPlugins.splice(e._loadingPlugins.indexOf(g),1)}),e._loadingPlugins.push(g));return}return e.registerPlugin(f)}catch(v){L.logError("_registerPlugins:",v)}})}},{key:"_registerPresets",value:function(){var e=this;this.config.presets.forEach(function(i){Dn(e,i)})}},{key:"_getRootByPosition",value:function(e){var i=null;switch(e){case F.ROOT_RIGHT:this.rightBar||(this.rightBar=c.createPositionBar("xg-right-bar",this.root)),i=this.rightBar;break;case F.ROOT_LEFT:this.leftBar||(this.leftBar=c.createPositionBar("xg-left-bar",this.root)),i=this.leftBar;break;case F.ROOT_TOP:this.topBar||(this.topBar=c.createPositionBar("xg-top-bar",this.root),this.config.topBarAutoHide&&c.addClass(this.topBar,C.TOP_BAR_AUTOHIDE)),i=this.topBar;break;default:i=this.innerContainer||this.root;break}return i}},{key:"registerPlugin",value:function(e,i){var n=U.formatPluginInfo(e,i),s=n.PLUFGIN,u=n.options,l=this.config.plugins,h=U.checkPluginIfExits(s.pluginName,l);!h&&l.push(s);var f=U.getRootByConfig(s.pluginName,this.config);f.root&&(u.root=f.root),f.position&&(u.position=f.position);var d=u.position?u.position:u.config&&u.config.position||s.defaultConfig&&s.defaultConfig.position;return!u.root&&typeof d=="string"&&d.indexOf("controls")>-1?this.controls&&this.controls.registerPlugin(s,u,s.pluginName):(u.root||(u.root=this._getRootByPosition(d)),U.register(this,s,u))}},{key:"deregister",value:function(e){typeof e=="string"?U.unRegister(this,e):e instanceof he&&U.unRegister(this,e.pluginName)}},{key:"unRegisterPlugin",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.deregister(e),i&&this.removePluginFromConfig(e)}},{key:"removePluginFromConfig",value:function(e){var i;if(typeof e=="string"?i=e:e instanceof he&&(i=e.pluginName),!!i)for(var n=this.config.plugins.length-1;n>-1;n--){var s=this.config.plugins[n];if(s.pluginName.toLowerCase()===i.toLowerCase()){this.config.plugins.splice(n,1);break}}}},{key:"plugins",get:function(){return U.getPlugins(this)}},{key:"getPlugin",value:function(e){var i=U.findPlugin(this,e);return i&&i.pluginName?i:null}},{key:"addClass",value:function(e){this.root&&(c.hasClass(this.root,e)||c.addClass(this.root,e))}},{key:"removeClass",value:function(e){this.root&&c.removeClass(this.root,e)}},{key:"hasClass",value:function(e){if(this.root)return c.hasClass(this.root,e)}},{key:"setAttribute",value:function(e,i){this.root&&this.root.setAttribute(e,i)}},{key:"removeAttribute",value:function(e,i){this.root&&this.root.removeAttribute(e,i)}},{key:"start",value:function(e){var i=this;if(!(this.state>D.ATTACHING))return!e&&!this.config.url&&this.getInitDefinition(),this.hasStart=!0,this.setState(D.ATTACHING),this._registerPlugins(!1),U.beforeInit(this).then(function(){if(i.config){e||(e=i.url||i.config.url);var n=i._startInit(e);return n}}).catch(function(n){throw n.fileName="player",n.lineNumber="236",L.logError("start:beforeInit:",n),n})}},{key:"switchURL",value:function(e,i){var n=this,s=e;c.typeOf(e)==="Object"&&(s=e.url);var u=this.currentTime,l=this.paused&&!this.isError;return this.src=s,new Promise(function(h){var f=function(){n.currentTime=u,l&&n.once("canplay",function(){n.pause()}),h()};A.os.isAndroid?n.once("timeupdate",function(){f()}):n.once("canplay",function(){f()}),n.play()})}},{key:"videoPlay",value:function(){this.mediaPlay()}},{key:"mediaPlay",value:function(){var e=this;if(!this.hasStart&&this.state>>>playPromise.then"),e.setState(D.RUNNING),e.emit(le))}).catch(function(n){if(L.logWarn(">>>>playPromise.catch",n.name),e.media&&e.media.error){e.onError(),e.removeClass(C.ENTER);return}n.name==="NotAllowedError"&&(e._errorTimer=c.setTimeout(e,function(){e._errorTimer=null,e.emit(yt),e.addClass(C.NOT_ALLOW_AUTOPLAY),e.removeClass(C.ENTER),e.pause(),e.setState(D.NOTALLOW)},0))}):(L.logWarn("video.play not return promise"),this.statethis.duration?parseInt(this.duration,10):e,this.once(Z,function(){switch(n.removeClass(C.ENTER),n.isSeeking=!1,h){case"play":n.play();break;case"pause":n.pause();break;default:!n.paused&&n.play()}}),this.state0&&n.defaultDefinition&&n.list.map(function(u){u.definition===n.defaultDefinition&&(e.config.url=u.url,e.curDefinition=u)})}},{key:"changeDefinition",value:function(e,i){var n=this,s=this.config.definition;if(Array.isArray(s==null?void 0:s.list)&&s.list.forEach(function(l){(e==null?void 0:e.definition)===l.definition&&(n.curDefinition=l)}),e!=null&&e.bitrate&&typeof e.bitrate!="number"&&(e.bitrate=parseInt(e.bitrate,10)||0),this.emit(kt,{from:i,to:e}),!this.hasStart){this.config.url=e.url;return}var u=this.switchURL(e.url,B({seamless:s.seamless!==!1&&typeof MediaSource<"u"&&typeof MediaSource.isTypeSupported=="function"},e));u&&u.then?u.then(function(){n.emit(ut,{from:i,to:e})}):this.emit(ut,{from:i,to:e})}},{key:"reload",value:function(){this.load(),this.reloadFunc=function(){this.play()},this.once(ce,this.reloadFunc)}},{key:"resetState",value:function(){var e=this,i=C.NOT_ALLOW_AUTOPLAY,n=C.PLAYING,s=C.NO_START,u=C.PAUSED,l=C.REPLAY,h=C.ENTER,f=C.ENDED,d=C.ERROR,g=C.LOADING,v=[i,n,s,u,l,h,f,d,g];this.hasStart=!1,this.isError=!1,this._useAutoplay=!1,this.mediaPause(),this._accPlayed.acc=0,this._accPlayed.t=0,this._accPlayed.loopAcc=0,v.forEach(function(_){e.removeClass(_)}),this.addClass(C.ENTER),this.emit(ze)}},{key:"reset",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;this.resetState();var s=this.plugins;if(s&&(i.map(function(l){e.deregister(l)}),n)){var u=Gt();Object.keys(this.config).keys(function(l){e.config[l]!=="undefined"&&(l==="plugins"||l==="presets"||l==="el"||l==="id")&&(e.config[l]=u[l])})}}},{key:"destroy",value:function(){var e=this,i=this.innerContainer,n=this.root,s=this.media;if(!(!n||!s)){if(this.hasStart=!1,this._useAutoplay=!1,n.removeAttribute(oe),this.updateAcc("destroy"),this._unbindEvents(),this._detachSourceEvents(this.media),c.clearAllTimers(this),this.emit(Ct),U.destroy(this),ki(this),x(S(r.prototype),"destroy",this).call(this),this.fullscreen&&this._fullscreenEl===this.root&&this.exitFullscreen(),i)for(var u=i.children,l=0;l0?n.className=h.filter(function(f){return f.indexOf("xgplayer")<0}).join(" "):n.className="",this.removeAttribute("data-xgfill"),["isSeeking","isCanplay","isActive","cssfullscreen","fullscreen"].forEach(function(f){e[f]=!1})}}},{key:"replay",value:function(){var e=this;this.removeClass(C.ENDED),this.currentTime=0,this.isSeeking=!1,ue(this,"replay",function(){e.once(Z,function(){var i=e.mediaPlay();i&&i.catch&&i.catch(function(n){console.log(n)})}),e.play(),e.emit(_t),e.onPlay()})}},{key:"retry",value:function(){var e=this;this.removeClass(C.ERROR),this.addClass(C.LOADING),ue(this,"retry",function(){var i=e.currentTime;e.src=e.config.url,!e.config.isLive&&(e.currentTime=i),e.once(Z,function(){e.mediaPlay()})})}},{key:"changeFullStyle",value:function(e,i,n,s){e&&(s||(s=C.PARENT_FULLSCREEN),this._orgCss||(this._orgCss=c.filterStyleFromText(e)),c.addClass(e,n),i&&i!==e&&!this._orgPCss&&(this._orgPCss=c.filterStyleFromText(i),c.addClass(i,s),i.setAttribute(oe,this.playerId)))}},{key:"recoverFullStyle",value:function(e,i,n,s){s||(s=C.PARENT_FULLSCREEN),this._orgCss&&(c.setStyleFromCsstext(e,this._orgCss),this._orgCss=""),c.removeClass(e,n),i&&i!==e&&this._orgPCss&&(c.setStyleFromCsstext(i,this._orgPCss),this._orgPCss="",c.removeClass(i,s),i.removeAttribute(oe))}},{key:"getFullscreen",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.config.fullscreenTarget,i=this.root,n=this.media;e||(e=i),this._fullScreenOffset={top:c.scrollTop(),left:c.scrollLeft()},this._fullscreenEl=e,this._fullActionFrom="get";var s=c.getFullScreenEl();if(s===this._fullscreenEl){this.onFullscreenChange();return}try{for(var u=0;u0&&arguments[0]!==void 0?arguments[0]:this.config.fullscreenTarget;this.isRotateFullscreen?this.exitRotateFullscreen():this.fullscreen&&this.exitFullscreen();var i=e?"".concat(C.INNER_FULLSCREEN," ").concat(C.CSS_FULLSCREEN):C.CSS_FULLSCREEN;this.changeFullStyle(this.root,e,i);var n=this.config.fullscreen,s=n===void 0?{}:n,u=s.useCssFullscreen===!0||typeof s.useCssFullscreen=="function"&&s.useCssFullscreen();u&&(this.fullscreen=!0,this.emit(ne,!0)),this._cssfullscreenEl=e,this.cssfullscreen=!0,this.emit(Me,!0)}},{key:"exitCssFullscreen",value:function(){var e=this._cssfullscreenEl?"".concat(C.INNER_FULLSCREEN," ").concat(C.CSS_FULLSCREEN):C.CSS_FULLSCREEN;if(!this.fullscreen)this.recoverFullStyle(this.root,this._cssfullscreenEl,e);else{var i=this.config.fullscreen,n=i===void 0?{}:i,s=n.useCssFullscreen===!0||typeof n.useCssFullscreen=="function"&&n.useCssFullscreen();s?(this.recoverFullStyle(this.root,this._cssfullscreenEl,e),this.fullscreen=!1,this.emit(ne,!1)):this.removeClass(e)}this._cssfullscreenEl=null,this.cssfullscreen=!1,this.emit(Me,!1)}},{key:"getRotateFullscreen",value:function(e){this.cssfullscreen&&this.exitCssFullscreen(e);var i=e?"".concat(C.INNER_FULLSCREEN," ").concat(C.ROTATE_FULLSCREEN):C.ROTATE_FULLSCREEN;this._fullscreenEl=e||this.root,this.changeFullStyle(this.root,e,i,C.PARENT_ROTATE_FULLSCREEN),this.isRotateFullscreen=!0,this.fullscreen=!0,this.setRotateDeg(90),this.emit(ne,!0)}},{key:"exitRotateFullscreen",value:function(e){var i=this._fullscreenEl!==this.root?"".concat(C.INNER_FULLSCREEN," ").concat(C.ROTATE_FULLSCREEN):C.ROTATE_FULLSCREEN;this.recoverFullStyle(this.root,this._fullscreenEl,i,C.PARENT_ROTATE_FULLSCREEN),this.isRotateFullscreen=!1,this.fullscreen=!1,this.setRotateDeg(0),this.emit(ne,!1)}},{key:"setRotateDeg",value:function(e){window.orientation===90||window.orientation===-90?this.rotateDeg=0:this.rotateDeg=e}},{key:"focus",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{autoHide:!this.config.closeDelayBlur,delay:this.config.inactive};if(this.isActive){this.onFocus(e);return}this.emit(vt,B({paused:this.paused,ended:this.ended},e))}},{key:"blur",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{ignorePaused:!1};if(!this.isActive){this.onBlur(e);return}this.emit(ci,B({paused:this.paused,ended:this.ended},e))}},{key:"onFocus",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=i.autoHide,s=n===void 0?!this.config.closePlayerBlur:n,u=i.delay,l=u===void 0?this.config.inactive:u;if(this.isActive=!0,this.removeClass(C.INACTIVE),this.userTimer&&(c.clearTimeout(this,this.userTimer),this.userTimer=null),!s){this.userTimer&&(c.clearTimeout(this,this.userTimer),this.userTimer=null);return}this.userTimer=c.setTimeout(this,function(){e.userTimer=null,e.blur()},l)}},{key:"onBlur",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=e.ignorePaused,n=i===void 0?!1:i;if(this.isActive){var s=this.config.closePauseVideoFocus;this.isActive=!1,(n||s||!this.paused&&!this.ended)&&this.addClass(C.INACTIVE)}}},{key:"onEmptied",value:function(){this.updateAcc("emptied")}},{key:"onCanplay",value:function(){this.removeClass(C.ENTER),this.removeClass(C.ERROR),this.removeClass(C.LOADING),this.isCanplay=!0,this.waitTimer&&c.clearTimeout(this,this.waitTimer)}},{key:"onLoadeddata",value:function(){this.isError=!1}},{key:"onLoadstart",value:function(){this.removeClass(C.ERROR),this.isCanplay=!1}},{key:"onPlay",value:function(){this.state===D.ENDED&&this.setState(D.RUNNING),this.removeClass(C.PAUSED),this.ended&&this.removeClass(C.ENDED),!this.config.closePlayVideoFocus&&this.focus()}},{key:"onPause",value:function(){this.addClass(C.PAUSED),this.updateAcc("pause"),this.config.closePauseVideoFocus||(this.userTimer&&(c.clearTimeout(this,this.userTimer),this.userTimer=null),this.focus())}},{key:"onEnded",value:function(){this.updateAcc("ended"),this.addClass(C.ENDED),this.setState(D.ENDED)}},{key:"onError",value:function(){this.isError=!0,this.updateAcc("error"),this.removeClass(C.NOT_ALLOW_AUTOPLAY),this.removeClass(C.NO_START),this.removeClass(C.ENTER),this.removeClass(C.LOADING),this.addClass(C.ERROR)}},{key:"onSeeking",value:function(){this.isSeeking||this.updateAcc("seeking"),this.isSeeking=!0,this.addClass(C.SEEKING)}},{key:"onSeeked",value:function(){this.isSeeking=!1,this.waitTimer&&c.clearTimeout(this,this.waitTimer),this.removeClass(C.LOADING),this.removeClass(C.SEEKING)}},{key:"onWaiting",value:function(){var e=this;this.waitTimer&&c.clearTimeout(this,this.waitTimer),this.updateAcc("waiting"),this.waitTimer=c.setTimeout(this,function(){e.addClass(C.LOADING),c.clearTimeout(e,e.waitTimer),e.waitTimer=null},200)}},{key:"onPlaying",value:function(){var e=this;this.isError=!1;var i=C.NO_START,n=C.PAUSED,s=C.ENDED,u=C.ERROR,l=C.REPLAY,h=C.LOADING,f=[i,n,s,u,l,h];f.forEach(function(d){e.removeClass(d)})}},{key:"onTimeupdate",value:function(){!this._videoHeight&&this.resize(),(this.waitTimer||this.hasClass(C.LOADING))&&this.media.readyState>2&&(this.removeClass(C.LOADING),c.clearTimeout(this,this.waitTimer),this.waitTimer=null),!this.paused&&this.staten)return!0;return!1}},{key:"position",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{h:0,y:0,x:0,w:0};if(!(!this.media||!e||!e.h)){var i=1/e.h,n=i!==1?"scale(".concat(i,")"):"",s=0,u=0;e.y&&(u=(100-e.h*100)/2-e.y*100),e.w&&e.x&&(s=(100-e.w*100)/2-e.x*100),n+=" translate(".concat(s,"%, ").concat(u,"%)"),this.media.style.transform=n,this.media.style.webkitTransform=n}}},{key:"setConfig",value:function(e){var i=this;e&&Object.keys(e).map(function(n){if(n!=="plugins"){i.config[n]=e[n];var s=i.plugins[n.toLowerCase()];s&&c.typeOf(s.setConfig)==="Function"&&s.setConfig(e[n])}})}},{key:"playNext",value:function(e){var i=this;this.resetState(),this.setConfig(e),this._currentTime=0,this._duration=0,ue(this,"playnext",function(){i.start(),i.emit(Fe,e)})}},{key:"resize",value:function(){var e=this;if(this.media){var i=this.media,n=i.videoWidth,s=i.videoHeight,u=this.config,l=u.fitVideoSize,h=u.videoFillMode;if((h==="fill"||h==="cover")&&this.setAttribute("data-xgfill",h),!(!s||!n)){this._videoHeight=s,this._videoWidth=n;var f=this.root.getBoundingClientRect(),d=this.controls&&this.innerContainer?this.controls.root.getBoundingClientRect().height:0,g=f.width,v=f.height-d,_=parseInt(n/s*1e3,10),m=parseInt(g/v*1e3,10),k=g,T=v,b={};l==="auto"&&m>_||l==="fixWidth"?(T=g/_*1e3,this.config.fluid?b.paddingTop="".concat(T*100/k,"%"):b.height="".concat(T+d,"px")):(l==="auto"&&m<_||l==="fixHeight")&&(k=_*v/1e3,b.width="".concat(k,"px")),!this.fullscreen&&!this.cssfullscreen&&Object.keys(b).forEach(function(M){e.root.style[M]=b[M]}),(h==="fillHeight"&&m<_||h==="fillWidth"&&m>_)&&this.setAttribute("data-xgfill","cover");var H={videoScale:_,vWidth:k,vHeight:T,cWidth:k,cHeight:T+d};this.emit(Ce,H)}}}},{key:"updateObjectPosition",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this.media.updateObjectPosition){this.media.updateObjectPosition(e,i);return}this.media.style.objectPosition="".concat(e*100,"% ").concat(i*100,"%")}},{key:"setState",value:function(e){L.logInfo("setState","state from:".concat(Vt[this.state]," to:").concat(Vt[e])),this._state=e}},{key:"state",get:function(){return this._state}},{key:"isFullscreen",get:function(){return this.fullscreen}},{key:"isCssfullScreen",get:function(){return this.cssfullscreen}},{key:"hasStart",get:function(){return this._hasStart},set:function(e){typeof e=="boolean"&&(this._hasStart=e,e===!1&&this.setState(D.READY),this.emit("hasstart"))}},{key:"isPlaying",get:function(){return this._state===D.RUNNING||this._state===D.ENDED},set:function(e){e?this.setState(D.RUNNING):this._state>=D.RUNNING&&this.setState(D.ATTACHED)}},{key:"definitionList",get:function(){return!this.config||!this.config.definition?[]:this.config.definition.list||[]},set:function(e){var i=this,n=this.config.definition,s=null,u=null;n.list=e,this.emit("resourceReady",e),e.forEach(function(l){var h;((h=i.curDefinition)===null||h===void 0?void 0:h.definition)===l.definition&&(s=l),n.defaultDefinition===l.definition&&(u=l)}),!u&&e.length>0&&(u=e[0]),s?this.changeDefinition(s):u&&this.changeDefinition(u)}},{key:"videoFrameInfo",get:function(){var e={total:0,dropped:0,corrupted:0,droppedRate:0,droppedDuration:0};if(!this.media||!this.media.getVideoPlaybackQuality)return e;var i=this.media.getVideoPlaybackQuality();return e.dropped=i.droppedVideoFrames||0,e.total=i.totalVideoFrames||0,e.corrupted=i.corruptedVideoFrames||0,e.total>0&&(e.droppedRate=e.dropped/e.total*100,e.droppedDuration=parseInt(this.cumulateTime/e.total*e.dropped,0)),e}},{key:"lang",get:function(){return this.config.lang},set:function(e){var i=_e.langKeys.filter(function(n){return n===e});if(i.length===0&&e!=="zh"){console.error("Sorry, set lang fail, because the language [".concat(e,"] is not supported now, list of all supported languages is [").concat(_e.langKeys.join(),"] "));return}this.config.lang=e,U.setLang(e,this)}},{key:"i18n",get:function(){var e=this.config.lang;return e==="zh"&&(e="zh-cn"),this.__i18n.lang[e]||this.__i18n.lang.en}},{key:"i18nKeys",get:function(){return this.__i18n.textKeys||{}}},{key:"version",get:function(){return ot}},{key:"playerId",get:function(){return this._pluginInfoId}},{key:"url",get:function(){return this.__url||this.config.url},set:function(e){this.__url=e}},{key:"poster",get:function(){return this.plugins.poster?this.plugins.poster.config.poster:this.config.poster},set:function(e){this.plugins.poster&&this.plugins.poster.update(e)}},{key:"readyState",get:function(){return x(S(r.prototype),"readyState",this)}},{key:"error",get:function(){var e=x(S(r.prototype),"error",this);return this.i18n[e]||e}},{key:"networkState",get:function(){return x(S(r.prototype),"networkState",this)}},{key:"fullscreenChanging",get:function(){return this._fullScreenOffset!==null}},{key:"cumulateTime",get:function(){var e=this._accPlayed;return this.updateAcc("get"),e.acc}},{key:"zoom",get:function(){return this.config.zoom},set:function(e){this.config.zoom=e}},{key:"avgSpeed",get:function(){return Wt},set:function(e){Wt=e}},{key:"realTimeSpeed",get:function(){return jt},set:function(e){jt=e}},{key:"hook",value:function(e,i){return Be.call.apply(Be,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"useHooks",value:function(e,i){return Ue.call.apply(Ue,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"removeHooks",value:function(e,i){return Ge.call.apply(Ge,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"usePluginHooks",value:function(e,i,n){for(var s=arguments.length,u=new Array(s>3?s-3:0),l=3;l3?s-3:0),l=3;l0&&n&&!s&&(L.logInfo("[xgLogger]".concat(this.player.playerId," emitLog_firstFrame"),e),this._state.isFFLoading=!1,this._state.isFFSend=!0,this.emitLog(te.FIRST_FRAME,{fvt:this.fvt,costTime:this.fvt,vt:this.vt,startCostTime:this.startCostTime,loadedCostTime:this.loadedCostTime}))}},{key:"_startWaitTimeout",value:function(){var e=this;this._waittTimer&&c.clearTimeout(this,this._waittTimer),this._waittTimer=c.setTimeout(this,function(){e.suspendWaitingStatus("timeout"),c.clearTimeout(e,e._waittTimer),e._waittTimer=null},this.config.waitTimeout)}},{key:"endState",value:function(e){this.suspendWaitingStatus(e),this.suspendSeekingStatus(e)}},{key:"suspendSeekingStatus",value:function(e){if(this.seekingStart){var i=V(),n=i-this.seekingStart;this.seekingStart=0,this.emitLog(te.SEEK_END,{end:i,costTime:n,endType:e})}}},{key:"suspendWaitingStatus",value:function(e){if(this._waitTimer&&(c.clearTimeout(this,this._waitTimer),this._waitTimer=null),this._waittTimer&&(c.clearTimeout(this,this._waittTimer),this._waittTimer=null),this._isWaiting=!1,!!this.waitingStart){var i=V(),n=i-this.waitingStart,s=i-this.fixedWaitingStart,u=this.config.waitTimeout;this._isWaiting=!1,this.waitingStart=0,this.fixedWaitingStart=0,this.emitLog(te.WAIT_END,{fixedCostTime:s>u?u:s,costTime:n>u?u:n,type:e==="loadeddata"?1:this._waitType,endType:this._waitType===2?"seek":e})}}},{key:"emitLog",value:function(e,i){var n=this.player;this.emit(vi,B({t:V(),host:c.getHostFromUrl(n.currentSrc),vtype:n.vtype,eventType:e,currentTime:this.player.currentTime,readyState:n.video.readyState,networkState:n.video.networkState},i))}}],[{key:"pluginName",get:function(){return"xgLogger"}},{key:"defaultConfig",get:function(){return{waitTimeout:1e4}}}]),r}(O);function Bn(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}var In=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"registerIcons",value:function(){return{replay:Pn}}},{key:"afterCreate",value:function(){var e=this;O.insert(this.icons.replay,this.root,0),this.__handleReplay=this.hook("replayClick",function(){e.player.replay()},{pre:function(n){n.preventDefault(),n.stopPropagation()}}),this.bind(".xgplayer-replay",["click","touchend"],this.__handleReplay),this.on(fe,function(){if(e.playerConfig.loop||c.addClass(e.player.root,"replay"),!e.config.disable){e.show();var i=e.root.querySelector("path");if(i){var n=window.getComputedStyle(i).getPropertyValue("transform");if(typeof n=="string"&&n.indexOf("none")>-1)return null;i.setAttribute("transform",n)}}}),this.on(X,function(){e.hide()})}},{key:"handleReplay",value:function(e){e.preventDefault(),e.stopPropagation(),this.player.replay(),c.removeClass(this.player.root,"replay")}},{key:"show",value:function(){this.config.disable||(this.root.style.display="flex")}},{key:"enable",value:function(){this.config.disable=!1}},{key:"disable",value:function(){this.config.disable=!0,this.hide()}},{key:"destroy",value:function(){this.unbind(".xgplayer-replay",["click","touchend"],this.__handleReplay)}},{key:"render",value:function(){return` +`,"image/svg+xml").firstChild}var Un=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"registerIcons",value:function(){return{replay:Bn}}},{key:"afterCreate",value:function(){var e=this;O.insert(this.icons.replay,this.root,0),this.__handleReplay=this.hook("replayClick",function(){e.player.replay()},{pre:function(n){n.preventDefault(),n.stopPropagation()}}),this.bind(".xgplayer-replay",["click","touchend"],this.__handleReplay),this.on(fe,function(){if(e.playerConfig.loop||c.addClass(e.player.root,"replay"),!e.config.disable){e.show();var i=e.root.querySelector("path");if(i){var n=window.getComputedStyle(i).getPropertyValue("transform");if(typeof n=="string"&&n.indexOf("none")>-1)return null;i.setAttribute("transform",n)}}}),this.on(X,function(){e.hide()})}},{key:"handleReplay",value:function(e){e.preventDefault(),e.stopPropagation(),this.player.replay(),c.removeClass(this.player.root,"replay")}},{key:"show",value:function(){this.config.disable||(this.root.style.display="flex")}},{key:"enable",value:function(){this.config.disable=!1}},{key:"disable",value:function(){this.config.disable=!0,this.hide()}},{key:"destroy",value:function(){this.unbind(".xgplayer-replay",["click","touchend"],this.__handleReplay)}},{key:"render",value:function(){return` ').concat(this.i18n.REPLAY,` - `)}}],[{key:"pluginName",get:function(){return"replay"}},{key:"defaultConfig",get:function(){return{disable:!1}}}]),r}(O),An=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"isEndedShow",get:function(){return this.config.isEndedShow},set:function(e){this.config.isEndedShow=e}},{key:"hide",value:function(){c.addClass(this.root,"hide")}},{key:"show",value:function(){c.removeClass(this.root,"hide")}},{key:"beforeCreate",value:function(e){typeof e.player.config.poster=="string"&&(e.config.poster=e.player.config.poster)}},{key:"afterCreate",value:function(){var e=this;this.on(fe,function(){e.isEndedShow&&c.removeClass(e.root,"hide")}),this.config.hideCanplay?(this.once(J,function(){e.onTimeUpdate()}),this.on(We,function(){c.removeClass(e.root,"hide"),c.addClass(e.root,"xg-showplay"),e.once(J,function(){e.onTimeUpdate()})})):this.on(X,function(){c.addClass(e.root,"hide")})}},{key:"onTimeUpdate",value:function(){var e=this;this.player.currentTime?c.removeClass(this.root,"xg-showplay"):this.once(J,function(){e.onTimeUpdate()})}},{key:"update",value:function(e){e&&(this.config.poster=e,this.root.style.backgroundImage="url(".concat(e,")"))}},{key:"render",value:function(){var e=this.config,i=e.poster,n=e.hideCanplay,s=i?"background-image:url(".concat(i,");"):"";return' - `)}}],[{key:"pluginName",get:function(){return"poster"}},{key:"defaultConfig",get:function(){return{isEndedShow:!0,hideCanplay:!1,poster:""}}}]),r}(O);function bt(){return new DOMParser().parseFromString(` + `)}}],[{key:"pluginName",get:function(){return"replay"}},{key:"defaultConfig",get:function(){return{disable:!1}}}]),r}(O),Gn=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"isEndedShow",get:function(){return this.config.isEndedShow},set:function(e){this.config.isEndedShow=e}},{key:"hide",value:function(){c.addClass(this.root,"hide")}},{key:"show",value:function(){c.removeClass(this.root,"hide")}},{key:"beforeCreate",value:function(e){typeof e.player.config.poster=="string"&&(e.config.poster=e.player.config.poster)}},{key:"afterCreate",value:function(){var e=this;this.on(fe,function(){e.isEndedShow&&c.removeClass(e.root,"hide")}),this.config.hideCanplay?(this.once(J,function(){e.onTimeUpdate()}),this.on(We,function(){c.removeClass(e.root,"hide"),c.addClass(e.root,"xg-showplay"),e.once(J,function(){e.onTimeUpdate()})})):this.on(X,function(){c.addClass(e.root,"hide")})}},{key:"onTimeUpdate",value:function(){var e=this;this.player.currentTime?c.removeClass(this.root,"xg-showplay"):this.once(J,function(){e.onTimeUpdate()})}},{key:"update",value:function(e){e&&(this.config.poster=e,this.root.style.backgroundImage="url(".concat(e,")"))}},{key:"render",value:function(){var e=this.config,i=e.poster,n=e.hideCanplay,s=i?"background-image:url(".concat(i,");"):"";return' + `)}}],[{key:"pluginName",get:function(){return"poster"}},{key:"defaultConfig",get:function(){return{isEndedShow:!0,hideCanplay:!1,poster:""}}}]),r}(O);function Et(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}function Tt(){return new DOMParser().parseFromString(` +`,"image/svg+xml").firstChild}function wt(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}var ee={};function Ln(o,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{start:null,end:null};ee[o]&&window.clearTimeout(ee[o].id),ee[o]={},r.start&&r.start(),ee[o].id=window.setTimeout(function(){r.end&&r.end(),window.clearTimeout(ee[o].id),delete ee[o]},a)}function Dn(){Object.keys(ee).map(function(o){window.clearTimeout(ee[o].id),delete ee[o]})}var Rn=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),y(p(e),"onPlayerReset",function(){e.autoPlayStart=!1;var i=e.config.mode==="auto"?"auto-hide":"hide";e.setAttr("data-state","play"),c.removeClass(e.root,i),e.show()}),y(p(e),"onAutoplayStart",function(){if(!e.autoPlayStart){var i=e.config.mode==="auto"?"auto-hide":"hide";c.addClass(e.root,i),e.autoPlayStart=!0,e.onPlayPause("play")}}),e.autoPlayStart=!1,e}return w(r,[{key:"afterCreate",value:function(){var e=this,i=this.player,n=this.playerConfig;this.initIcons(),this.once(pt,function(){n&&(n.lang&&n.lang==="en"?c.addClass(i.root,"lang-is-en"):n.lang==="jp"&&c.addClass(i.root,"lang-is-jp"))}),this.on(le,this.onAutoplayStart),n.autoplay||this.show(),this.on(vt,function(){var s=e.config.mode==="auto"?"auto-hide":"hide";e.setAttr("data-state","play"),c.removeClass(e.root,s),e.show()}),this.on(X,function(){e.onPlayPause("play")}),this.on(ke,function(){e.onPlayPause("pause")}),this.on(ze,function(){e.onPlayerReset()}),this.clickHandler=this.hook("startClick",this.switchPausePlay,{pre:function(u){u.cancelable&&u.preventDefault(),u.stopPropagation();var l=e.player.paused;e.emitUserAction(u,"switch_play_pause",{props:"paused",from:l,to:!l})}}),this.bind(["click","touchend"],this.clickHandler)}},{key:"registerIcons",value:function(){return{startPlay:{icon:bt,class:"xg-icon-play"},startPause:{icon:Tt,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild("xg-start-inner",e.startPlay),this.appendChild("xg-start-inner",e.startPause)}},{key:"hide",value:function(){c.addClass(this.root,"hide")}},{key:"show",value:function(){c.removeClass(this.root,"hide")}},{key:"focusHide",value:function(){c.addClass(this.root,"focus-hide")}},{key:"recover",value:function(){c.removeClass(this.root,"focus-hide")}},{key:"switchStatus",value:function(e){e?this.setAttr("data-state",this.player.paused?"pause":"play"):this.setAttr("data-state",this.player.paused?"play":"pause")}},{key:"animate",value:function(e){var i=this;Ln("pauseplay",400,{start:function(){c.addClass(i.root,"interact"),i.show(),i.switchStatus(!0)},end:function(){c.removeClass(i.root,"interact"),!e&&i.hide()}})}},{key:"switchPausePlay",value:function(e){var i=this.player;if(e.cancelable&&e.preventDefault(),e.stopPropagation(),!(i.state2&&arguments[2]!==void 0?arguments[2]:{start:null,end:null};ee[o]&&window.clearTimeout(ee[o].id),ee[o]={},r.start&&r.start(),ee[o].id=window.setTimeout(function(){r.end&&r.end(),window.clearTimeout(ee[o].id),delete ee[o]},a)}function jn(){Object.keys(ee).map(function(o){window.clearTimeout(ee[o].id),delete ee[o]})}var Wn=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),y(p(e),"onPlayerReset",function(){e.autoPlayStart=!1;var i=e.config.mode==="auto"?"auto-hide":"hide";e.setAttr("data-state","play"),c.removeClass(e.root,i),e.show()}),y(p(e),"onAutoplayStart",function(){if(!e.autoPlayStart){var i=e.config.mode==="auto"?"auto-hide":"hide";c.addClass(e.root,i),e.autoPlayStart=!0,e.onPlayPause("play")}}),e.autoPlayStart=!1,e}return w(r,[{key:"afterCreate",value:function(){var e=this,i=this.player,n=this.playerConfig;this.initIcons(),this.once(mt,function(){n&&(n.lang&&n.lang==="en"?c.addClass(i.root,"lang-is-en"):n.lang==="jp"&&c.addClass(i.root,"lang-is-jp"))}),this.on(le,this.onAutoplayStart),n.autoplay||this.show(),this.on(yt,function(){var s=e.config.mode==="auto"?"auto-hide":"hide";e.setAttr("data-state","play"),c.removeClass(e.root,s),e.show()}),this.on(X,function(){e.onPlayPause("play")}),this.on(ke,function(){e.onPlayPause("pause")}),this.on(ze,function(){e.onPlayerReset()}),this.clickHandler=this.hook("startClick",this.switchPausePlay,{pre:function(u){u.cancelable&&u.preventDefault(),u.stopPropagation();var l=e.player.paused;e.emitUserAction(u,"switch_play_pause",{props:"paused",from:l,to:!l})}}),this.bind(["click","touchend"],this.clickHandler)}},{key:"registerIcons",value:function(){return{startPlay:{icon:Et,class:"xg-icon-play"},startPause:{icon:wt,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild("xg-start-inner",e.startPlay),this.appendChild("xg-start-inner",e.startPause)}},{key:"hide",value:function(){c.addClass(this.root,"hide")}},{key:"show",value:function(){c.removeClass(this.root,"hide")}},{key:"focusHide",value:function(){c.addClass(this.root,"focus-hide")}},{key:"recover",value:function(){c.removeClass(this.root,"focus-hide")}},{key:"switchStatus",value:function(e){e?this.setAttr("data-state",this.player.paused?"pause":"play"):this.setAttr("data-state",this.player.paused?"play":"pause")}},{key:"animate",value:function(e){var i=this;Vn("pauseplay",400,{start:function(){c.addClass(i.root,"interact"),i.show(),i.switchStatus(!0)},end:function(){c.removeClass(i.root,"interact"),!e&&i.hide()}})}},{key:"switchPausePlay",value:function(e){var i=this.player;if(e.cancelable&&e.preventDefault(),e.stopPropagation(),!(i.state - `)}}],[{key:"pluginName",get:function(){return"start"}},{key:"defaultConfig",get:function(){return{isShowPause:!1,isShowEnd:!1,disableAnimate:!1,mode:"hide"}}}]),r}(O),On=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"render",value:function(){var e=this.config.innerHtml,i=c.createDom("xg-enter","",{},"xgplayer-enter");if(e&&e instanceof window.HTMLElement)i.appendChild(e);else if(e&&typeof e=="string")i.innerHTML=e;else{for(var n="",s=1;s<=12;s++)n+='
    ');i.innerHTML='
    '.concat(n,"
    ")}return i}}],[{key:"pluginName",get:function(){return"enter"}},{key:"defaultConfig",get:function(){return{innerHtml:"",logo:""}}}]),r}(O);function se(o,a,r){try{return'
    + `)}}],[{key:"pluginName",get:function(){return"start"}},{key:"defaultConfig",get:function(){return{isShowPause:!1,isShowEnd:!1,disableAnimate:!1,mode:"hide"}}}]),r}(O),zn=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"render",value:function(){var e=this.config.innerHtml,i=c.createDom("xg-enter","",{},"xgplayer-enter");if(e&&e instanceof window.HTMLElement)i.appendChild(e);else if(e&&typeof e=="string")i.innerHTML=e;else{for(var n="",s=1;s<=12;s++)n+='
    ');i.innerHTML='
    '.concat(n,"
    ")}return i}}],[{key:"pluginName",get:function(){return"enter"}},{key:"defaultConfig",get:function(){return{innerHtml:"",logo:""}}}]),r}(O);function se(o,a,r){try{return'
    `).concat(o.i18n[a],` -
    `)}catch{return'
    '}}var Ut=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"afterCreate",value:function(){this.getMini=this.getMini.bind(this),this.exitMini=this.exitMini.bind(this),this.bind("click",this.getMini)}},{key:"getMini",value:function(){this.config.onClick&&this.config.onClick()}},{key:"exitMini",value:function(){this.config.onClick&&this.config.onClick()}},{key:"destroy",value:function(){this.unbind(["click","touchend"],this.getMini)}},{key:"render",value:function(){var e="MINISCREEN";return` +
    `)}catch{return'
    '}}var zt=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"afterCreate",value:function(){this.getMini=this.getMini.bind(this),this.exitMini=this.exitMini.bind(this),this.bind("click",this.getMini)}},{key:"getMini",value:function(){this.config.onClick&&this.config.onClick()}},{key:"exitMini",value:function(){this.config.onClick&&this.config.onClick()}},{key:"destroy",value:function(){this.unbind(["click","touchend"],this.getMini)}},{key:"render",value:function(){var e="MINISCREEN";return`
    ').concat(this.i18n[e],`
    -
    `)}}],[{key:"pluginName",get:function(){return"miniscreenIcon"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:10}}}]),r}(O);function Vt(o){var a=parseFloat(o),r=o.indexOf("%")===-1&&!Number.isNaN(a);return r&&a}var Et=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],yi=Et.length;function Mn(){for(var o={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},a=0;a1&&arguments[1]!==void 0?arguments[1]:{};return E(this,r),e=a.call(this),e.isEnabled=!0,e.isDragging=!1,e.isDown=!1,e.position={},e.downPoint={},e.dragPoint={x:0,y:0},e.startPos={x:0,y:0},e._root=t instanceof Element?t:document.querySelector(t),e._handlerDom=i.handle instanceof Element?i.handle:document.querySelector(i.handle),!e._root||!e._handlerDom?lt(e):(e._bindStartEvent(),e)}return w(r,[{key:"_bindStartEvent",value:function(){var e=this;"ontouchstart"in window?this._startKey="touchstart":this._startKey="mousedown",this["on".concat(this._startKey)]=this["on".concat(this._startKey)].bind(this),this._handlerDom.addEventListener(this._startKey,this["on".concat(this._startKey)]),jt[this._startKey].map(function(i){e["on".concat(i)]=e["on".concat(i)].bind(e)})}},{key:"_unbindStartEvent",value:function(){this._handlerDom.removeEventListener(this._startKey,this["on".concat(this._startKey)])}},{key:"_bindPostStartEvents",value:function(e){var i=this;if(e){var n=jt[this._startKey];n.map(function(s){window.addEventListener(s,i["on".concat(s)])}),this._boundPointerEvents=n}}},{key:"_unbindPostStartEvents",value:function(){var e=this;this._boundPointerEvents&&(this._boundPointerEvents.map(function(i){window.removeEventListener(i,e["on".concat(i)])}),delete this._boundPointerEvents)}},{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1,this.isDragging&&this.onUp()}},{key:"onDocUp",value:function(e){this.onUp()}},{key:"animate",value:function(){var e=this;this.isDragging&&(this.positionDrag(),window.requestAnimationFrame(function(){e.animate()}))}},{key:"positionDrag",value:function(){var e="translate3d(".concat(this.dragPoint.x,"px, ").concat(this.dragPoint.y,"px, 0)");this._root.style.transform=e,this._root.style.webKitTransform=e}},{key:"setLeftTop",value:function(){this._root.style.left=this.position.x+"px",this._root.style.top=this.position.y+"px"}},{key:"onmousedown",value:function(e){this.dragStart(e,e)}},{key:"onmousemove",value:function(e){this.dragMove(e,e)}},{key:"onmouseup",value:function(e){this.dragEnd(e,e)}},{key:"ontouchstart",value:function(e){var i=e.changedTouches[0];this.dragStart(e,i),this.touchIdentifier=i.pointerId!==void 0?i.pointerId:i.identifier,e.preventDefault()}},{key:"ontouchmove",value:function(e){var i=Je(e.changedTouches,this.touchIdentifier);i&&this.dragMove(e,i)}},{key:"ontouchend",value:function(e){var i=Je(e.changedTouches,this.touchIdentifier);i&&this.dragEnd(e,i),e.preventDefault()}},{key:"ontouchcancel",value:function(e){var i=Je(e.changedTouches,this.touchIdentifier);i&&this.dragCancel(e,i)}},{key:"dragStart",value:function(e,i){if(!(!this._root||this.isDown||!this.isEnabled)){this.downPoint=i,this.dragPoint.x=0,this.dragPoint.y=0,this._getPosition();var n=Gt(this._root);this.startPos.x=this.position.x,this.startPos.y=this.position.y,this.startPos.maxY=window.innerHeight-n.height,this.startPos.maxX=window.innerWidth-n.width,this.setLeftTop(),this.isDown=!0,this._bindPostStartEvents(e)}}},{key:"dragRealStart",value:function(e,i){this.isDragging=!0,this.animate(),this.emit(Qe.START,this.startPos)}},{key:"dragEnd",value:function(e,i){this._root&&(this._unbindPostStartEvents(),this.isDragging&&(this._root.style.transform="",this.setLeftTop(),this.emit(Qe.ENDED)),this.presetInfo())}},{key:"_dragPointerMove",value:function(e,i){var n={x:i.pageX-this.downPoint.pageX,y:i.pageY-this.downPoint.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this.dragRealStart(e,i),n}},{key:"dragMove",value:function(e,i){if(e=e||window.event,!!this.isDown){var n=this.startPos,s=n.x,u=n.y,l=this._dragPointerMove(e,i),h=l.x,f=l.y;h=this.checkContain("x",h,s),f=this.checkContain("y",f,u),this.position.x=s+h,this.position.y=u+f,this.dragPoint.x=h,this.dragPoint.y=f,this.emit(Qe.MOVE,this.position)}}},{key:"dragCancel",value:function(e,i){this.dragEnd(e,i)}},{key:"presetInfo",value:function(){this.isDragging=!1,this.startPos={x:0,y:0},this.dragPoint={x:0,y:0},this.isDown=!1}},{key:"destroy",value:function(){this._unbindStartEvent(),this._unbindPostStartEvents(),this.isDragging&&this.dragEnd(),this.removeAllListeners(),this._handlerDom=null}},{key:"hasDragStarted",value:function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3}},{key:"checkContain",value:function(e,i,n){return i+n<0?0-n:e==="x"&&i+n>this.startPos.maxX?this.startPos.maxX-n:e==="y"&&i+n>this.startPos.maxY?this.startPos.maxY-n:i}},{key:"_getPosition",value:function(){var e=window.getComputedStyle(this._root),i=this._getPositionCoord(e.left,"width"),n=this._getPositionCoord(e.top,"height");this.position.x=Number.isNaN(i)?0:i,this.position.y=Number.isNaN(n)?0:n,this._addTransformPosition(e)}},{key:"_addTransformPosition",value:function(e){var i=e.transform;if(i.indexOf("matrix")===0){var n=i.split(","),s=i.indexOf("matrix3d")===0?12:4,u=parseInt(n[s],10),l=parseInt(n[s+1],10);this.position.x+=u,this.position.y+=l}}},{key:"_getPositionCoord",value:function(e,i){if(e.indexOf("%")!==-1){var n=Gt(this._root.parentNode);return n?parseFloat(e)/100*n[i]:0}return parseInt(e,10)}}]),r}(ei),Hn=function(o){P(r,o);var a=I(r);function r(t){var e;E(this,r),e=a.call(this,t),y(p(e),"onCancelClick",function(s){e.exitMini(),e.isClose=!0}),y(p(e),"onCenterClick",function(s){var u=p(e),l=u.player;l.paused?l.play():l.pause()}),y(p(e),"onScroll",function(s){if(!(!window.scrollY&&window.scrollY!==0||Math.abs(window.scrollY-e.pos.scrollY)<50)){var u=parseInt(c.getCss(e.player.root,"height"));u+=e.config.scrollTop,e.pos.scrollY=window.scrollY,window.scrollY>u+5?!e.isMini&&!e.isClose&&e.getMini():window.scrollY<=u&&(e.isMini&&e.exitMini(),e.isClose=!1)}}),e.isMini=!1,e.isClose=!1;var i=p(e),n=i.config;return e.pos={left:n.left<0?window.innerWidth-n.width-20:n.left,top:n.top<0?window.innerHeight-n.height-20:n.top,height:e.config.height,width:e.config.width,scrollY:window.scrollY||0},e.lastStyle=null,e}return w(r,[{key:"beforeCreate",value:function(e){typeof e.player.config.mini=="boolean"&&(e.config.isShowIcon=e.player.config.mini)}},{key:"afterCreate",value:function(){var e=this;this.initIcons(),this.on(ke,function(){e.setAttr("data-state","pause")}),this.on(X,function(){e.setAttr("data-state","play")})}},{key:"onPluginsReady",value:function(){var e=this,i=this.player,n=this.config;if(!n.disable){if(this.config.isShowIcon){var s={config:{onClick:function(){e.getMini()}}};i.controls.registerPlugin(Ut,s,Ut.pluginName)}var u=c.checkTouchSupport()?"touchend":"click";this.bind(".mini-cancel-btn",u,this.onCancelClick),this.bind(".play-icon",u,this.onCenterClick),this.config.disableDrag||(this._draggabilly=new Fn(this.player.root,{handle:this.root})),this.config.isScrollSwitch&&window.addEventListener("scroll",this.onScroll)}}},{key:"registerIcons",value:function(){return{play:{icon:bt,class:"xg-icon-play"},pause:{icon:Tt,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".play-icon",e.play),this.appendChild(".play-icon",e.pause)}},{key:"getMini",value:function(){var e=this;if(!this.isMini){var i=this.player,n=this.playerConfig,s=this.config.target||this.player.root;this.lastStyle={},c.addClass(i.root,"xgplayer-mini"),["width","height","top","left"].map(function(u){e.lastStyle[u]=s.style[u],s.style[u]="".concat(e.pos[u],"px")}),n.fluid&&(s.style["padding-top"]=""),this.emit(Ne,!0),i.isMini=this.isMini=!0}}},{key:"exitMini",value:function(){var e=this;if(!this.isMini)return!1;var i=this.player,n=this.playerConfig,s=this.config.target||this.player.root;c.removeClass(i.root,"xgplayer-mini"),this.lastStyle&&Object.keys(this.lastStyle).map(function(u){s.style[u]=e.lastStyle[u]}),this.lastStyle=null,n.fluid&&(i.root.style.width="100%",i.root.style.height="0",i.root.style["padding-top"]="".concat(n.height*100/n.width,"%")),this.emit(Ne,!1),this.isMini=i.isMini=!1}},{key:"destroy",value:function(){window.removeEventListener("scroll",this.onScroll);var e=c.checkTouchSupport()?"touchend":"click";this.unbind(".mini-cancel-btn",e,this.onCancelClick),this.unbind(".play-icon",e,this.onCenterClick),this._draggabilly&&this._draggabilly.destroy(),this._draggabilly=null,this.exitMini()}},{key:"render",value:function(){if(!this.config.disable)return` + `)}}],[{key:"pluginName",get:function(){return"miniscreenIcon"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:10}}}]),r}(O);function Yt(o){var a=parseFloat(o),r=o.indexOf("%")===-1&&!Number.isNaN(a);return r&&a}var St=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],Ti=St.length;function Yn(){for(var o={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},a=0;a1&&arguments[1]!==void 0?arguments[1]:{};return E(this,r),e=a.call(this),e.isEnabled=!0,e.isDragging=!1,e.isDown=!1,e.position={},e.downPoint={},e.dragPoint={x:0,y:0},e.startPos={x:0,y:0},e._root=t instanceof Element?t:document.querySelector(t),e._handlerDom=i.handle instanceof Element?i.handle:document.querySelector(i.handle),!e._root||!e._handlerDom?ht(e):(e._bindStartEvent(),e)}return w(r,[{key:"_bindStartEvent",value:function(){var e=this;"ontouchstart"in window?this._startKey="touchstart":this._startKey="mousedown",this["on".concat(this._startKey)]=this["on".concat(this._startKey)].bind(this),this._handlerDom.addEventListener(this._startKey,this["on".concat(this._startKey)]),Xt[this._startKey].map(function(i){e["on".concat(i)]=e["on".concat(i)].bind(e)})}},{key:"_unbindStartEvent",value:function(){this._handlerDom.removeEventListener(this._startKey,this["on".concat(this._startKey)])}},{key:"_bindPostStartEvents",value:function(e){var i=this;if(e){var n=Xt[this._startKey];n.map(function(s){window.addEventListener(s,i["on".concat(s)])}),this._boundPointerEvents=n}}},{key:"_unbindPostStartEvents",value:function(){var e=this;this._boundPointerEvents&&(this._boundPointerEvents.map(function(i){window.removeEventListener(i,e["on".concat(i)])}),delete this._boundPointerEvents)}},{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1,this.isDragging&&this.onUp()}},{key:"onDocUp",value:function(e){this.onUp()}},{key:"animate",value:function(){var e=this;this.isDragging&&(this.positionDrag(),window.requestAnimationFrame(function(){e.animate()}))}},{key:"positionDrag",value:function(){var e="translate3d(".concat(this.dragPoint.x,"px, ").concat(this.dragPoint.y,"px, 0)");this._root.style.transform=e,this._root.style.webKitTransform=e}},{key:"setLeftTop",value:function(){this._root.style.left=this.position.x+"px",this._root.style.top=this.position.y+"px"}},{key:"onmousedown",value:function(e){this.dragStart(e,e)}},{key:"onmousemove",value:function(e){this.dragMove(e,e)}},{key:"onmouseup",value:function(e){this.dragEnd(e,e)}},{key:"ontouchstart",value:function(e){var i=e.changedTouches[0];this.dragStart(e,i),this.touchIdentifier=i.pointerId!==void 0?i.pointerId:i.identifier,e.preventDefault()}},{key:"ontouchmove",value:function(e){var i=Qe(e.changedTouches,this.touchIdentifier);i&&this.dragMove(e,i)}},{key:"ontouchend",value:function(e){var i=Qe(e.changedTouches,this.touchIdentifier);i&&this.dragEnd(e,i),e.preventDefault()}},{key:"ontouchcancel",value:function(e){var i=Qe(e.changedTouches,this.touchIdentifier);i&&this.dragCancel(e,i)}},{key:"dragStart",value:function(e,i){if(!(!this._root||this.isDown||!this.isEnabled)){this.downPoint=i,this.dragPoint.x=0,this.dragPoint.y=0,this._getPosition();var n=Kt(this._root);this.startPos.x=this.position.x,this.startPos.y=this.position.y,this.startPos.maxY=window.innerHeight-n.height,this.startPos.maxX=window.innerWidth-n.width,this.setLeftTop(),this.isDown=!0,this._bindPostStartEvents(e)}}},{key:"dragRealStart",value:function(e,i){this.isDragging=!0,this.animate(),this.emit(et.START,this.startPos)}},{key:"dragEnd",value:function(e,i){this._root&&(this._unbindPostStartEvents(),this.isDragging&&(this._root.style.transform="",this.setLeftTop(),this.emit(et.ENDED)),this.presetInfo())}},{key:"_dragPointerMove",value:function(e,i){var n={x:i.pageX-this.downPoint.pageX,y:i.pageY-this.downPoint.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this.dragRealStart(e,i),n}},{key:"dragMove",value:function(e,i){if(e=e||window.event,!!this.isDown){var n=this.startPos,s=n.x,u=n.y,l=this._dragPointerMove(e,i),h=l.x,f=l.y;h=this.checkContain("x",h,s),f=this.checkContain("y",f,u),this.position.x=s+h,this.position.y=u+f,this.dragPoint.x=h,this.dragPoint.y=f,this.emit(et.MOVE,this.position)}}},{key:"dragCancel",value:function(e,i){this.dragEnd(e,i)}},{key:"presetInfo",value:function(){this.isDragging=!1,this.startPos={x:0,y:0},this.dragPoint={x:0,y:0},this.isDown=!1}},{key:"destroy",value:function(){this._unbindStartEvent(),this._unbindPostStartEvents(),this.isDragging&&this.dragEnd(),this.removeAllListeners(),this._handlerDom=null}},{key:"hasDragStarted",value:function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3}},{key:"checkContain",value:function(e,i,n){return i+n<0?0-n:e==="x"&&i+n>this.startPos.maxX?this.startPos.maxX-n:e==="y"&&i+n>this.startPos.maxY?this.startPos.maxY-n:i}},{key:"_getPosition",value:function(){var e=window.getComputedStyle(this._root),i=this._getPositionCoord(e.left,"width"),n=this._getPositionCoord(e.top,"height");this.position.x=Number.isNaN(i)?0:i,this.position.y=Number.isNaN(n)?0:n,this._addTransformPosition(e)}},{key:"_addTransformPosition",value:function(e){var i=e.transform;if(i.indexOf("matrix")===0){var n=i.split(","),s=i.indexOf("matrix3d")===0?12:4,u=parseInt(n[s],10),l=parseInt(n[s+1],10);this.position.x+=u,this.position.y+=l}}},{key:"_getPositionCoord",value:function(e,i){if(e.indexOf("%")!==-1){var n=Kt(this._root.parentNode);return n?parseFloat(e)/100*n[i]:0}return parseInt(e,10)}}]),r}(si),$n=function(o){P(r,o);var a=I(r);function r(t){var e;E(this,r),e=a.call(this,t),y(p(e),"onCancelClick",function(s){e.exitMini(),e.isClose=!0}),y(p(e),"onCenterClick",function(s){var u=p(e),l=u.player;l.paused?l.play():l.pause()}),y(p(e),"onScroll",function(s){if(!(!window.scrollY&&window.scrollY!==0||Math.abs(window.scrollY-e.pos.scrollY)<50)){var u=parseInt(c.getCss(e.player.root,"height"));u+=e.config.scrollTop,e.pos.scrollY=window.scrollY,window.scrollY>u+5?!e.isMini&&!e.isClose&&e.getMini():window.scrollY<=u&&(e.isMini&&e.exitMini(),e.isClose=!1)}}),e.isMini=!1,e.isClose=!1;var i=p(e),n=i.config;return e.pos={left:n.left<0?window.innerWidth-n.width-20:n.left,top:n.top<0?window.innerHeight-n.height-20:n.top,height:e.config.height,width:e.config.width,scrollY:window.scrollY||0},e.lastStyle=null,e}return w(r,[{key:"beforeCreate",value:function(e){typeof e.player.config.mini=="boolean"&&(e.config.isShowIcon=e.player.config.mini)}},{key:"afterCreate",value:function(){var e=this;this.initIcons(),this.on(ke,function(){e.setAttr("data-state","pause")}),this.on(X,function(){e.setAttr("data-state","play")})}},{key:"onPluginsReady",value:function(){var e=this,i=this.player,n=this.config;if(!n.disable){if(this.config.isShowIcon){var s={config:{onClick:function(){e.getMini()}}};i.controls.registerPlugin(zt,s,zt.pluginName)}var u=c.checkTouchSupport()?"touchend":"click";this.bind(".mini-cancel-btn",u,this.onCancelClick),this.bind(".play-icon",u,this.onCenterClick),this.config.disableDrag||(this._draggabilly=new Xn(this.player.root,{handle:this.root})),this.config.isScrollSwitch&&window.addEventListener("scroll",this.onScroll)}}},{key:"registerIcons",value:function(){return{play:{icon:Et,class:"xg-icon-play"},pause:{icon:wt,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".play-icon",e.play),this.appendChild(".play-icon",e.pause)}},{key:"getMini",value:function(){var e=this;if(!this.isMini){var i=this.player,n=this.playerConfig,s=this.config.target||this.player.root;this.lastStyle={},c.addClass(i.root,"xgplayer-mini"),["width","height","top","left"].map(function(u){e.lastStyle[u]=s.style[u],s.style[u]="".concat(e.pos[u],"px")}),n.fluid&&(s.style["padding-top"]=""),this.emit(Ne,!0),i.isMini=this.isMini=!0}}},{key:"exitMini",value:function(){var e=this;if(!this.isMini)return!1;var i=this.player,n=this.playerConfig,s=this.config.target||this.player.root;c.removeClass(i.root,"xgplayer-mini"),this.lastStyle&&Object.keys(this.lastStyle).map(function(u){s.style[u]=e.lastStyle[u]}),this.lastStyle=null,n.fluid&&(i.root.style.width="100%",i.root.style.height="0",i.root.style["padding-top"]="".concat(n.height*100/n.width,"%")),this.emit(Ne,!1),this.isMini=i.isMini=!1}},{key:"destroy",value:function(){window.removeEventListener("scroll",this.onScroll);var e=c.checkTouchSupport()?"touchend":"click";this.unbind(".mini-cancel-btn",e,this.onCancelClick),this.unbind(".play-icon",e,this.onCenterClick),this._draggabilly&&this._draggabilly.destroy(),this._draggabilly=null,this.exitMini()}},{key:"render",value:function(){if(!this.config.disable)return` `.concat(se(this,"MINI_DRAG",this.playerConfig.isHideTips),` @@ -39,13 +39,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
    -
    `)}}],[{key:"pluginName",get:function(){return"miniscreen"}},{key:"defaultConfig",get:function(){return{index:10,disable:!1,width:320,height:180,left:-1,top:-1,isShowIcon:!1,isScrollSwitch:!1,scrollTop:0,disableDrag:!1}}}]),r}(O),De={mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove"},et=["videoClick","videoDbClick"],tt=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n0&&i.replay():i.paused?i.play():i.pause()}},{key:"onContextmenu",value:function(e){e=e||window.event,e.preventDefault&&e.preventDefault(),e.stopPropagation?e.stopPropagation():(e.returnValue=!1,e.cancelBubble=!0)}},{key:"destroy",value:function(){var e=this,i=this.player,n=i.video,s=i.root;this.clickTimer&&clearTimeout(this.clickTimer),s.removeEventListener("click",this.onVideoClick,!1),s.removeEventListener("dblclick",this.onVideoDblClick,!1),n.removeEventListener("contextmenu",this.onContextmenu,!1),Object.keys(De).map(function(u){s.removeEventListener(u,e[De[u]],!1)})}}],[{key:"pluginName",get:function(){return"pc"}},{key:"defaultConfig",get:function(){return{}}}]),r}(he),ie={PRESS:"press",PRESS_END:"pressend",DOUBlE_CLICK:"doubleclick",CLICK:"click",TOUCH_MOVE:"touchmove",TOUCH_START:"touchstart",TOUCH_END:"touchend"},Bn={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},Un={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"};function Wt(o){return o&&o.length>0?o[o.length-1]:null}function zt(o){var a=navigator.userAgent;/(?:iPhone|iPad)/.test(a)&&o.cancelable&&o.preventDefault()}function Vn(){return{pressDelay:600,dbClickDelay:200,disablePress:!1,disableDbClick:!1,miniStep:2,needPreventDefault:!0}}var Gn=function(){function o(a){var r=this,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{eventType:"touch"};E(this,o),this._pos={moving:!1,start:!1,x:0,y:0},this.config=Vn(),Object.keys(t).map(function(e){r.config[e]=t[e]}),this.root=a,this.events=t.eventType==="mouse"?Un:Bn,this.pressIntrvalId=null,this.dbIntrvalId=null,this.__handlers={},this._initEvent()}return w(o,[{key:"_initEvent",value:function(){this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onTouchCancel=this.onTouchCancel.bind(this),this.root.addEventListener(this.events.start,this.onTouchStart)}},{key:"__setPress",value:function(r){var t=this,e=this.config;this.pressIntrvalId&&this.__clearPress(),this.pressIntrvalId=setTimeout(function(){t.trigger(ie.PRESS,r),t._pos.press=!0,t.__clearPress()},e.pressDelay)}},{key:"__clearPress",value:function(){window.clearTimeout(this.pressIntrvalId),this.pressIntrvalId=null}},{key:"__setDb",value:function(r){var t=this,e=this.config;if(this.dbIntrvalId){this.__clearDb(),this.trigger(ie.DOUBlE_CLICK,r);return}this.dbIntrvalId=setTimeout(function(){t.__clearDb(),!t._pos.start&&!t._pos.press&&!t._pos.moving&&t.trigger(ie.CLICK,r)},e.dbClickDelay)}},{key:"__clearDb",value:function(){clearTimeout(this.dbIntrvalId),this.dbIntrvalId=null}},{key:"on",value:function(r,t){this.__handlers[r]||(this.__handlers[r]=[]),this.__handlers[r].push(t)}},{key:"off",value:function(r,t){if(this.__handlers[r]){for(var e=this.__handlers[r],i=-1,n=0;n=0&&this.__handlers[r].splice(i,1)}}},{key:"trigger",value:function(r,t){this.__handlers[r]&&this.__handlers[r].map(function(e){try{e(t)}catch(i){console.error("trigger>>:".concat(r),i)}})}},{key:"onTouchStart",value:function(r){var t=this._pos,e=this.root,i=this.config;i.needPreventDefault&&zt(r);var n=Wt(r.touches);t.x=n?parseInt(n.pageX,10):r.pageX,t.y=n?parseInt(n.pageX,10):r.pageX,t.start=!0,this.__setPress(r),e.addEventListener(this.events.end,this.onTouchEnd),e.addEventListener(this.events.cancel,this.onTouchCancel),e.addEventListener(this.events.move,this.onTouchMove),this.trigger(ie.TOUCH_START,r)}},{key:"onTouchCancel",value:function(r){this.onTouchEnd(r)}},{key:"onTouchEnd",value:function(r){var t=this._pos,e=this.root,i=this.config;i.needPreventDefault&&zt(r),this.__clearPress(),e.removeEventListener(this.events.cancel,this.onTouchCancel),e.removeEventListener(this.events.end,this.onTouchEnd),e.removeEventListener(this.events.move,this.onTouchMove),r.moving=t.moving,r.press=t.press,t.press&&this.trigger(ie.PRESS_END,r),this.trigger(ie.TOUCH_END,r),!t.press&&!t.moving&&this.__setDb(r),t.press=!1,t.start=!1,t.moving=!1}},{key:"onTouchMove",value:function(r){var t=this._pos,e=this.config,i=Wt(r.touches),n=i?parseInt(i.pageX,10):r.pageX,s=i?parseInt(i.pageY,10):r.pageX,u=n-t.x,l=s-t.y;Math.abs(l)`)}}],[{key:"pluginName",get:function(){return"miniscreen"}},{key:"defaultConfig",get:function(){return{index:10,disable:!1,width:320,height:180,left:-1,top:-1,isShowIcon:!1,isScrollSwitch:!1,scrollTop:0,disableDrag:!1}}}]),r}(O),De={mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove"},tt=["videoClick","videoDbClick"],it=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n0&&i.replay():i.paused?i.play():i.pause()}},{key:"onContextmenu",value:function(e){e=e||window.event,e.preventDefault&&e.preventDefault(),e.stopPropagation?e.stopPropagation():(e.returnValue=!1,e.cancelBubble=!0)}},{key:"destroy",value:function(){var e=this,i=this.player,n=i.video,s=i.root;this.clickTimer&&clearTimeout(this.clickTimer),s.removeEventListener("click",this.onVideoClick,!1),s.removeEventListener("dblclick",this.onVideoDblClick,!1),n.removeEventListener("contextmenu",this.onContextmenu,!1),Object.keys(De).map(function(u){s.removeEventListener(u,e[De[u]],!1)})}}],[{key:"pluginName",get:function(){return"pc"}},{key:"defaultConfig",get:function(){return{}}}]),r}(he),ie={PRESS:"press",PRESS_END:"pressend",DOUBlE_CLICK:"doubleclick",CLICK:"click",TOUCH_MOVE:"touchmove",TOUCH_START:"touchstart",TOUCH_END:"touchend"},qn={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},Zn={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"};function $t(o){return o&&o.length>0?o[o.length-1]:null}function qt(o){var a=navigator.userAgent;/(?:iPhone|iPad)/.test(a)&&o.cancelable&&o.preventDefault()}function Jn(){return{pressDelay:600,dbClickDelay:200,disablePress:!1,disableDbClick:!1,miniStep:2,needPreventDefault:!0}}var Qn=function(){function o(a){var r=this,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{eventType:"touch"};E(this,o),this._pos={moving:!1,start:!1,x:0,y:0},this.config=Jn(),Object.keys(t).map(function(e){r.config[e]=t[e]}),this.root=a,this.events=t.eventType==="mouse"?Zn:qn,this.pressIntrvalId=null,this.dbIntrvalId=null,this.__handlers={},this._initEvent()}return w(o,[{key:"_initEvent",value:function(){this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onTouchCancel=this.onTouchCancel.bind(this),this.root.addEventListener(this.events.start,this.onTouchStart)}},{key:"__setPress",value:function(r){var t=this,e=this.config;this.pressIntrvalId&&this.__clearPress(),this.pressIntrvalId=setTimeout(function(){t.trigger(ie.PRESS,r),t._pos.press=!0,t.__clearPress()},e.pressDelay)}},{key:"__clearPress",value:function(){window.clearTimeout(this.pressIntrvalId),this.pressIntrvalId=null}},{key:"__setDb",value:function(r){var t=this,e=this.config;if(this.dbIntrvalId){this.__clearDb(),this.trigger(ie.DOUBlE_CLICK,r);return}this.dbIntrvalId=setTimeout(function(){t.__clearDb(),!t._pos.start&&!t._pos.press&&!t._pos.moving&&t.trigger(ie.CLICK,r)},e.dbClickDelay)}},{key:"__clearDb",value:function(){clearTimeout(this.dbIntrvalId),this.dbIntrvalId=null}},{key:"on",value:function(r,t){this.__handlers[r]||(this.__handlers[r]=[]),this.__handlers[r].push(t)}},{key:"off",value:function(r,t){if(this.__handlers[r]){for(var e=this.__handlers[r],i=-1,n=0;n=0&&this.__handlers[r].splice(i,1)}}},{key:"trigger",value:function(r,t){this.__handlers[r]&&this.__handlers[r].map(function(e){try{e(t)}catch(i){console.error("trigger>>:".concat(r),i)}})}},{key:"onTouchStart",value:function(r){var t=this._pos,e=this.root,i=this.config;i.needPreventDefault&&qt(r);var n=$t(r.touches);t.x=n?parseInt(n.pageX,10):r.pageX,t.y=n?parseInt(n.pageX,10):r.pageX,t.start=!0,this.__setPress(r),e.addEventListener(this.events.end,this.onTouchEnd),e.addEventListener(this.events.cancel,this.onTouchCancel),e.addEventListener(this.events.move,this.onTouchMove),this.trigger(ie.TOUCH_START,r)}},{key:"onTouchCancel",value:function(r){this.onTouchEnd(r)}},{key:"onTouchEnd",value:function(r){var t=this._pos,e=this.root,i=this.config;i.needPreventDefault&&qt(r),this.__clearPress(),e.removeEventListener(this.events.cancel,this.onTouchCancel),e.removeEventListener(this.events.end,this.onTouchEnd),e.removeEventListener(this.events.move,this.onTouchMove),r.moving=t.moving,r.press=t.press,t.press&&this.trigger(ie.PRESS_END,r),this.trigger(ie.TOUCH_END,r),!t.press&&!t.moving&&this.__setDb(r),t.press=!1,t.start=!1,t.moving=!1}},{key:"onTouchMove",value:function(r){var t=this._pos,e=this.config,i=$t(r.touches),n=i?parseInt(i.pageX,10):r.pageX,s=i?parseInt(i.pageY,10):r.pageX,u=n-t.x,l=s-t.y;Math.abs(l) -`,"image/svg+xml").firstChild}var ve={AUTO:"auto",SEEKING:"seeking",PLAYBACK:"playbackrate",LIGHT:""},Wn=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),y(p(e),"onTouchStart",function(i){var n=p(e),s=n.player,u=n.config,l=n.pos,h=n.playerConfig,f=e.getTouche(i);if(f&&!u.disableGesture&&e.duration>0&&!s.ended){l.isStart=!0,c.checkIsFunction(h.disableSwipeHandler)&&h.disableSwipeHandler(),e.find(".xg-dur").innerHTML=c.format(e.duration);var d=e.root.getBoundingClientRect();s.rotateDeg===90?(l.top=d.left,l.left=d.top,l.width=d.height,l.height=d.width):(l.top=d.top,l.left=d.left,l.width=d.width,l.height=d.height);var g=parseInt(f.pageX-l.left,10),v=parseInt(f.pageY-l.top,10);l.x=s.rotateDeg===90?v:g,l.y=s.rotateDeg===90?g:v,l.scopeL=u.scopeL*l.width,l.scopeR=(1-u.scopeR)*l.width,l.scopeM1=l.width*(1-u.scopeM)/2,l.scopeM2=l.width-l.scopeM1}}),y(p(e),"onTouchMove",function(i){var n=e.getTouche(i),s=p(e),u=s.pos,l=s.config,h=s.player;if(!(!n||l.disableGesture||!e.duration||!u.isStart)){var f=l.miniMoveStep,d=l.hideControlsActive,g=parseInt(n.pageX-u.left,10),v=parseInt(n.pageY-u.top,10),_=h.rotateDeg===90?v:g,m=h.rotateDeg===90?g:v;if(Math.abs(_-u.x)>f||Math.abs(m-u.y)>f){var k=_-u.x,T=m-u.y,b=u.scope;if(b===-1&&(b=e.checkScope(_,m,k,T,u),b===0&&(d?h.blur():h.focus({autoHide:!1}),!u.time&&(u.time=parseInt(h.currentTime*1e3,10)+e.timeOffset*1e3)),u.scope=b),b===-1||b>0&&!l.gestureY||b===0&&!l.gestureX)return;i.cancelable&&i.preventDefault(),e.executeMove(k,T,b,u.width,u.height),u.x=_,u.y=m}}}),y(p(e),"onTouchEnd",function(i){var n=p(e),s=n.player,u=n.pos,l=n.playerConfig;if(u.isStart){u.scope>-1&&i.cancelable&&i.preventDefault();var h=e.config,f=h.disableGesture,d=h.gestureX;!f&&d?(e.endLastMove(u.scope),setTimeout(function(){s.getPlugin("progress")&&s.getPlugin("progress").resetSeekState()},10)):u.time=0,u.scope=-1,e.resetPos(),c.checkIsFunction(l.enableSwipeHandler)&&l.enableSwipeHandler(),e.changeAction(ve.AUTO)}}),y(p(e),"onRootTouchMove",function(i){e.config.disableGesture||!e.config.gestureX||e.checkIsRootTarget(i)&&(i.stopPropagation(),e.pos.isStart?e.onTouchMove(i):e.onTouchStart(i))}),y(p(e),"onRootTouchEnd",function(i){e.pos.isStart&&e.checkIsRootTarget(i)&&(i.stopPropagation(),e.onTouchEnd(i))}),e.pos={isStart:!1,x:0,y:0,time:0,volume:0,rate:1,light:0,width:0,height:0,scopeL:0,scopeR:0,scopeM1:0,scopeM2:0,scope:-1},e.timer=null,e}return w(r,[{key:"duration",get:function(){return this.playerConfig.customDuration||this.player.duration}},{key:"timeOffset",get:function(){return this.playerConfig.timeOffset||0}},{key:"registerIcons",value:function(){return{seekTipIcon:{icon:jn,class:"xg-seek-pre"}}}},{key:"afterCreate",value:function(){var e=this,i=this.playerConfig,n=this.config,s=this.player;i.closeVideoDblclick===!0&&(n.closedbClick=!0),this.resetPos(),c.isUndefined(i.disableGesture)||(n.disableGesture=!!i.disableGesture),this.appendChild(".xg-seek-icon",this.icons.seekTipIcon),this.xgMask=c.createDom("xg-mask","",{},"xgmask"),s.root.appendChild(this.xgMask),this.initCustomStyle(),this.registerThumbnail();var u=this.domEventType;this.touch=new Gn(this.root,{eventType:u,needPreventDefault:!this.config.disableGesture}),this.root.addEventListener("contextmenu",function(f){f.preventDefault()}),s.root.addEventListener("touchmove",this.onRootTouchMove,!0),s.root.addEventListener("touchend",this.onRootTouchEnd,!0),this.on(de,function(){var f=e.player,d=e.config;f.duration*1e30&&(e.pos.time=0)});var l={touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",press:"onPress",pressend:"onPressEnd",click:"onClick",doubleclick:"onDbClick"};if(Object.keys(l).map(function(f){e.touch.on(f,function(d){e[l[f]](d)})}),!n.disableActive){var h=s.plugins.progress;h&&(h.addCallBack("dragmove",function(f){e.activeSeekNote(f.currentTime,f.forward)}),h.addCallBack("dragend",function(){e.changeAction(ve.AUTO)}))}}},{key:"registerThumbnail",value:function(){var e=this.player,i=e.plugins.thumbnail;if(i&&i.usable){this.thumbnail=i.createThumbnail(null,"mobile-thumbnail");var n=this.find(".time-preview");n.insertBefore(this.thumbnail,n.children[0])}}},{key:"initCustomStyle",value:function(){var e=this.playerConfig||{},i=e.commonStyle,n=i.playedColor,s=i.progressColor;n&&(this.find(".xg-curbar").style.backgroundColor=n,this.find(".xg-cur").style.color=n),s&&(this.find(".xg-bar").style.backgroundColor=s,this.find(".time-preview").style.color=s),this.config.disableTimeProgress&&c.addClass(this.find(".xg-timebar"),"hide")}},{key:"resetPos",value:function(){var e=this;this.pos?(this.pos.isStart=!1,this.pos.scope=-1,["x","y","width","height","scopeL","scopeR","scopeM1","scopeM2"].map(function(i){e.pos[i]=0})):this.pos={isStart:!1,x:0,y:0,volume:0,rate:1,light:0,width:0,height:0,scopeL:0,scopeR:0,scopeM1:0,scopeM2:0,scope:-1,time:0}}},{key:"changeAction",value:function(e){var i=this.player,n=this.root;n.setAttribute("data-xg-action",e);var s=i.plugins.start;s&&s.recover()}},{key:"getTouche",value:function(e){var i=this.player.rotateDeg,n=e.touches&&e.touches.length>0?e.touches[e.touches.length-1]:e;return i===0?{pageX:n.pageX,pageY:n.pageY}:{pageX:n.pageX,pageY:n.pageY}}},{key:"checkScope",value:function(e,i,n,s,u){var l=u.width,h=-1;if(e<0||e>l)return h;var f=Math.abs(s===0?n:n/s);return Math.abs(n)>0&&f>=1.73&&e>u.scopeM1&&eu.scopeR?2:3),h}},{key:"executeMove",value:function(e,i,n,s,u){switch(n){case 0:this.updateTime(e/s*this.config.scopeM);break;case 1:this.updateBrightness(i/u);break;case 2:A.os.isIos||this.updateVolume(i/u);break}}},{key:"endLastMove",value:function(e){var i=this,n=this.pos,s=this.player,u=this.config,l=(n.time-this.timeOffset)/1e3;switch(e){case 0:s.seek(Number(l).toFixed(1)),u.hideControlsEnd?s.blur():s.focus(),this.timer=setTimeout(function(){i.pos.time=0},500);break}this.changeAction(ve.AUTO)}},{key:"checkIsRootTarget",value:function(e){var i=this.player.plugins||{};return i.progress&&i.progress.root.contains(e.target)?!1:i.start&&i.start.root.contains(e.target)||i.controls&&i.controls.root.contains(e.target)}},{key:"sendUseAction",value:function(e){var i=this.player.paused;this.emitUserAction(e,"switch_play_pause",{prop:"paused",from:i,to:!i})}},{key:"onClick",value:function(e){var i=this.player,n=this.config,s=this.playerConfig;if(i.state=D.RUNNING&&(this.sendUseAction(c.createEvent("dblclick")),this.switchPlayPause())}},{key:"onPress",value:function(e){var i=this.pos,n=this.config,s=this.player;n.disablePress||(i.rate=this.player.playbackRate,this.emitUserAction("press","change_rate",{prop:"playbackRate",from:s.playbackRate,to:n.pressRate}),s.playbackRate=n.pressRate,this.changeAction(ve.PLAYBACK))}},{key:"onPressEnd",value:function(e){var i=this.pos,n=this.config,s=this.player;n.disablePress||(this.emitUserAction("pressend","change_rate",{prop:"playbackRate",from:s.playbackRate,to:i.rate}),s.playbackRate=i.rate,i.rate=1,this.changeAction(ve.AUTO))}},{key:"updateTime",value:function(e){var i=this.player,n=this.config,s=this.player.duration;e=Number(e.toFixed(4));var u=parseInt(e*n.moveDuration,10)+this.timeOffset;u+=this.pos.time,u=u<0?0:u>s*1e3?s*1e3-200:u,i.getPlugin("time")&&i.getPlugin("time").updateTime(u/1e3),i.getPlugin("progress")&&i.getPlugin("progress").updatePercent(u/1e3/this.duration,!0),this.activeSeekNote(u/1e3,e>0),n.isTouchingSeek&&i.seek(Number((u-this.timeOffset)/1e3).toFixed(1)),this.pos.time=u}},{key:"updateVolume",value:function(e){this.player.rotateDeg&&(e=-e);var i=this.player,n=this.pos;if(e=parseInt(e*100,10),n.volume+=e,!(Math.abs(n.volume)<10)){var s=parseInt(i.volume*10,10)-parseInt(n.volume/10,10);s=s>10?10:s<1?0:s,i.volume=s/10,n.volume=0}}},{key:"updateBrightness",value:function(e){this.player.rotateDeg&&(e=-e);var i=this.pos,n=this.config,s=this.xgMask,u=i.light+.8*e;u=u>n.maxDarkness?n.maxDarkness:u<0?0:u,s&&(s.style.backgroundColor="rgba(0,0,0,".concat(u,")")),i.light=u}},{key:"activeSeekNote",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this.player,s=this.config,u=!(this.duration!==1/0&&this.duration>0);if(!(!e||typeof e!="number"||u||s.disableActive)){e<0?e=0:e>n.duration&&(e=n.duration-.2),this.changeAction(ve.SEEKING);var l=n.plugins.start;l&&l.focusHide(),this.find(".xg-dur").innerHTML=c.format(this.duration),this.find(".xg-cur").innerHTML=c.format(e),this.find(".xg-curbar").style.width="".concat(e/this.duration*100,"%"),i?c.removeClass(this.find(".xg-seek-show"),"xg-back"):c.addClass(this.find(".xg-seek-show"),"xg-back"),this.updateThumbnails(e)}}},{key:"updateThumbnails",value:function(e){var i=this.player,n=i.plugins.thumbnail;n&&n.usable&&this.thumbnail&&n.update(this.thumbnail,e,160,90)}},{key:"switchPlayPause",value:function(){var e=this.player;if(e.state`,"image/svg+xml").firstChild}var ve={AUTO:"auto",SEEKING:"seeking",PLAYBACK:"playbackrate",LIGHT:""},tr=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),y(p(e),"onTouchStart",function(i){var n=p(e),s=n.player,u=n.config,l=n.pos,h=n.playerConfig,f=e.getTouche(i);if(f&&!u.disableGesture&&e.duration>0&&!s.ended){l.isStart=!0,c.checkIsFunction(h.disableSwipeHandler)&&h.disableSwipeHandler(),e.find(".xg-dur").innerHTML=c.format(e.duration);var d=e.root.getBoundingClientRect();s.rotateDeg===90?(l.top=d.left,l.left=d.top,l.width=d.height,l.height=d.width):(l.top=d.top,l.left=d.left,l.width=d.width,l.height=d.height);var g=parseInt(f.pageX-l.left,10),v=parseInt(f.pageY-l.top,10);l.x=s.rotateDeg===90?v:g,l.y=s.rotateDeg===90?g:v,l.scopeL=u.scopeL*l.width,l.scopeR=(1-u.scopeR)*l.width,l.scopeM1=l.width*(1-u.scopeM)/2,l.scopeM2=l.width-l.scopeM1}}),y(p(e),"onTouchMove",function(i){var n=e.getTouche(i),s=p(e),u=s.pos,l=s.config,h=s.player;if(!(!n||l.disableGesture||!e.duration||!u.isStart)){var f=l.miniMoveStep,d=l.hideControlsActive,g=parseInt(n.pageX-u.left,10),v=parseInt(n.pageY-u.top,10),_=h.rotateDeg===90?v:g,m=h.rotateDeg===90?g:v;if(Math.abs(_-u.x)>f||Math.abs(m-u.y)>f){var k=_-u.x,T=m-u.y,b=u.scope;if(b===-1&&(b=e.checkScope(_,m,k,T,u),b===0&&(d?h.blur():h.focus({autoHide:!1}),!u.time&&(u.time=parseInt(h.currentTime*1e3,10)+e.timeOffset*1e3)),u.scope=b),b===-1||b>0&&!l.gestureY||b===0&&!l.gestureX)return;i.cancelable&&i.preventDefault(),e.executeMove(k,T,b,u.width,u.height),u.x=_,u.y=m}}}),y(p(e),"onTouchEnd",function(i){var n=p(e),s=n.player,u=n.pos,l=n.playerConfig;if(u.isStart){u.scope>-1&&i.cancelable&&i.preventDefault();var h=e.config,f=h.disableGesture,d=h.gestureX;!f&&d?(e.endLastMove(u.scope),setTimeout(function(){s.getPlugin("progress")&&s.getPlugin("progress").resetSeekState()},10)):u.time=0,u.scope=-1,e.resetPos(),c.checkIsFunction(l.enableSwipeHandler)&&l.enableSwipeHandler(),e.changeAction(ve.AUTO)}}),y(p(e),"onRootTouchMove",function(i){e.config.disableGesture||!e.config.gestureX||e.checkIsRootTarget(i)&&(i.stopPropagation(),e.pos.isStart?e.onTouchMove(i):e.onTouchStart(i))}),y(p(e),"onRootTouchEnd",function(i){e.pos.isStart&&e.checkIsRootTarget(i)&&(i.stopPropagation(),e.onTouchEnd(i))}),e.pos={isStart:!1,x:0,y:0,time:0,volume:0,rate:1,light:0,width:0,height:0,scopeL:0,scopeR:0,scopeM1:0,scopeM2:0,scope:-1},e.timer=null,e}return w(r,[{key:"duration",get:function(){return this.playerConfig.customDuration||this.player.duration}},{key:"timeOffset",get:function(){return this.playerConfig.timeOffset||0}},{key:"registerIcons",value:function(){return{seekTipIcon:{icon:er,class:"xg-seek-pre"}}}},{key:"afterCreate",value:function(){var e=this,i=this.playerConfig,n=this.config,s=this.player;i.closeVideoDblclick===!0&&(n.closedbClick=!0),this.resetPos(),c.isUndefined(i.disableGesture)||(n.disableGesture=!!i.disableGesture),this.appendChild(".xg-seek-icon",this.icons.seekTipIcon),this.xgMask=c.createDom("xg-mask","",{},"xgmask"),s.root.appendChild(this.xgMask),this.initCustomStyle(),this.registerThumbnail();var u=this.domEventType;this.touch=new Qn(this.root,{eventType:u,needPreventDefault:!this.config.disableGesture}),this.root.addEventListener("contextmenu",function(f){f.preventDefault()}),s.root.addEventListener("touchmove",this.onRootTouchMove,!0),s.root.addEventListener("touchend",this.onRootTouchEnd,!0),this.on(de,function(){var f=e.player,d=e.config;f.duration*1e30&&(e.pos.time=0)});var l={touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",press:"onPress",pressend:"onPressEnd",click:"onClick",doubleclick:"onDbClick"};if(Object.keys(l).map(function(f){e.touch.on(f,function(d){e[l[f]](d)})}),!n.disableActive){var h=s.plugins.progress;h&&(h.addCallBack("dragmove",function(f){e.activeSeekNote(f.currentTime,f.forward)}),h.addCallBack("dragend",function(){e.changeAction(ve.AUTO)}))}}},{key:"registerThumbnail",value:function(){var e=this.player,i=e.plugins.thumbnail;if(i&&i.usable){this.thumbnail=i.createThumbnail(null,"mobile-thumbnail");var n=this.find(".time-preview");n.insertBefore(this.thumbnail,n.children[0])}}},{key:"initCustomStyle",value:function(){var e=this.playerConfig||{},i=e.commonStyle,n=i.playedColor,s=i.progressColor;n&&(this.find(".xg-curbar").style.backgroundColor=n,this.find(".xg-cur").style.color=n),s&&(this.find(".xg-bar").style.backgroundColor=s,this.find(".time-preview").style.color=s),this.config.disableTimeProgress&&c.addClass(this.find(".xg-timebar"),"hide")}},{key:"resetPos",value:function(){var e=this;this.pos?(this.pos.isStart=!1,this.pos.scope=-1,["x","y","width","height","scopeL","scopeR","scopeM1","scopeM2"].map(function(i){e.pos[i]=0})):this.pos={isStart:!1,x:0,y:0,volume:0,rate:1,light:0,width:0,height:0,scopeL:0,scopeR:0,scopeM1:0,scopeM2:0,scope:-1,time:0}}},{key:"changeAction",value:function(e){var i=this.player,n=this.root;n.setAttribute("data-xg-action",e);var s=i.plugins.start;s&&s.recover()}},{key:"getTouche",value:function(e){var i=this.player.rotateDeg,n=e.touches&&e.touches.length>0?e.touches[e.touches.length-1]:e;return i===0?{pageX:n.pageX,pageY:n.pageY}:{pageX:n.pageX,pageY:n.pageY}}},{key:"checkScope",value:function(e,i,n,s,u){var l=u.width,h=-1;if(e<0||e>l)return h;var f=Math.abs(s===0?n:n/s);return Math.abs(n)>0&&f>=1.73&&e>u.scopeM1&&eu.scopeR?2:3),h}},{key:"executeMove",value:function(e,i,n,s,u){switch(n){case 0:this.updateTime(e/s*this.config.scopeM);break;case 1:this.updateBrightness(i/u);break;case 2:A.os.isIos||this.updateVolume(i/u);break}}},{key:"endLastMove",value:function(e){var i=this,n=this.pos,s=this.player,u=this.config,l=(n.time-this.timeOffset)/1e3;switch(e){case 0:s.seek(Number(l).toFixed(1)),u.hideControlsEnd?s.blur():s.focus(),this.timer=setTimeout(function(){i.pos.time=0},500);break}this.changeAction(ve.AUTO)}},{key:"checkIsRootTarget",value:function(e){var i=this.player.plugins||{};return i.progress&&i.progress.root.contains(e.target)?!1:i.start&&i.start.root.contains(e.target)||i.controls&&i.controls.root.contains(e.target)}},{key:"sendUseAction",value:function(e){var i=this.player.paused;this.emitUserAction(e,"switch_play_pause",{prop:"paused",from:i,to:!i})}},{key:"onClick",value:function(e){var i=this.player,n=this.config,s=this.playerConfig;if(i.state=D.RUNNING&&(this.sendUseAction(c.createEvent("dblclick")),this.switchPlayPause())}},{key:"onPress",value:function(e){var i=this.pos,n=this.config,s=this.player;n.disablePress||(i.rate=this.player.playbackRate,this.emitUserAction("press","change_rate",{prop:"playbackRate",from:s.playbackRate,to:n.pressRate}),s.playbackRate=n.pressRate,this.changeAction(ve.PLAYBACK))}},{key:"onPressEnd",value:function(e){var i=this.pos,n=this.config,s=this.player;n.disablePress||(this.emitUserAction("pressend","change_rate",{prop:"playbackRate",from:s.playbackRate,to:i.rate}),s.playbackRate=i.rate,i.rate=1,this.changeAction(ve.AUTO))}},{key:"updateTime",value:function(e){var i=this.player,n=this.config,s=this.player.duration;e=Number(e.toFixed(4));var u=parseInt(e*n.moveDuration,10)+this.timeOffset;u+=this.pos.time,u=u<0?0:u>s*1e3?s*1e3-200:u,i.getPlugin("time")&&i.getPlugin("time").updateTime(u/1e3),i.getPlugin("progress")&&i.getPlugin("progress").updatePercent(u/1e3/this.duration,!0),this.activeSeekNote(u/1e3,e>0),n.isTouchingSeek&&i.seek(Number((u-this.timeOffset)/1e3).toFixed(1)),this.pos.time=u}},{key:"updateVolume",value:function(e){this.player.rotateDeg&&(e=-e);var i=this.player,n=this.pos;if(e=parseInt(e*100,10),n.volume+=e,!(Math.abs(n.volume)<10)){var s=parseInt(i.volume*10,10)-parseInt(n.volume/10,10);s=s>10?10:s<1?0:s,i.volume=s/10,n.volume=0}}},{key:"updateBrightness",value:function(e){this.player.rotateDeg&&(e=-e);var i=this.pos,n=this.config,s=this.xgMask,u=i.light+.8*e;u=u>n.maxDarkness?n.maxDarkness:u<0?0:u,s&&(s.style.backgroundColor="rgba(0,0,0,".concat(u,")")),i.light=u}},{key:"activeSeekNote",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this.player,s=this.config,u=!(this.duration!==1/0&&this.duration>0);if(!(!e||typeof e!="number"||u||s.disableActive)){e<0?e=0:e>n.duration&&(e=n.duration-.2),this.changeAction(ve.SEEKING);var l=n.plugins.start;l&&l.focusHide(),this.find(".xg-dur").innerHTML=c.format(this.duration),this.find(".xg-cur").innerHTML=c.format(e),this.find(".xg-curbar").style.width="".concat(e/this.duration*100,"%"),i?c.removeClass(this.find(".xg-seek-show"),"xg-back"):c.addClass(this.find(".xg-seek-show"),"xg-back"),this.updateThumbnails(e)}}},{key:"updateThumbnails",value:function(e){var i=this.player,n=i.plugins.thumbnail;n&&n.usable&&this.thumbnail&&n.update(this.thumbnail,e,160,90)}},{key:"switchPlayPause",value:function(){var e=this.player;if(e.state
    @@ -63,55 +63,55 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).concat(this.config.pressRate,"X").concat(this.i18n.FORWARD,`
    - `)}}],[{key:"pluginName",get:function(){return"mobile"}},{key:"defaultConfig",get:function(){return{index:0,disableGesture:!1,gestureX:!0,gestureY:!0,gradient:"normal",isTouchingSeek:!1,miniMoveStep:5,miniYPer:5,scopeL:.25,scopeR:.25,scopeM:.9,pressRate:2,darkness:!0,maxDarkness:.8,disableActive:!1,disableTimeProgress:!1,hideControlsActive:!1,hideControlsEnd:!1,moveDuration:60*6*1e3,closedbClick:!1,disablePress:!0,disableSeekIcon:!1,focusVideoClick:!1}}}]),r}(O);function Yt(o){o.preventDefault(),o.returnValue=!1}function zn(o){var a=o.tagName;return!!(a==="INPUT"||a==="TEXTAREA"||o.isContentEditable)}var Kt=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n0&&s-u>i*.9)}},{key:"checkCode",value:function(e,i){var n=this,s=!1;return Object.keys(this.keyCodeMap).map(function(u){n.keyCodeMap[u]&&e===n.keyCodeMap[u].keyCode&&!n.keyCodeMap[u].disable&&(s=!i||i&&!n.keyCodeMap[u].noBodyTarget)}),s}},{key:"downVolume",value:function(e){var i=this.player,n=parseFloat((i.volume-.1).toFixed(1)),s={volume:{from:i.volume,to:n}};this.emitUserAction(e,"change_volume",{props:s}),n>=0?i.volume=n:i.volume=0}},{key:"upVolume",value:function(e){var i=this.player,n=parseFloat((i.volume+.1).toFixed(1)),s={volume:{from:i.volume,to:n}};this.emitUserAction(e,"change_volume",{props:s}),n<=1?i.volume=n:i.volume=1}},{key:"seek",value:function(e){var i=this.player,n=i.currentTime,s=i.duration,u=n;n+this.seekStep<=s?u=n+this.seekStep:u=s-1;var l={currentTime:{from:n,to:u}};this.emitUserAction(e,"seek",{props:l}),this.player.currentTime=u}},{key:"seekBack",value:function(e){var i=this.player.currentTime,n=0;i-this.seekStep>=0&&(n=i-this.seekStep);var s={currentTime:{from:i,to:n}};this.emitUserAction(e,"seek",{props:s}),this.player.currentTime=n}},{key:"playPause",value:function(e){var i=this.player;i&&(this.emitUserAction(e,"switch_play_pause"),i.paused?i.play():i.pause())}},{key:"exitFullscreen",value:function(e){var i=this.player,n=i.fullscreen,s=i.cssfullscreen;n&&(this.emitUserAction("keyup","switch_fullscreen",{prop:"fullscreen",from:n,to:!n}),i.exitFullscreen()),s&&(this.emitUserAction("keyup","switch_css_fullscreen",{prop:"cssfullscreen",from:s,to:!s}),i.exitCssFullscreen())}},{key:"handleKeyCode",value:function(e,i){var n=this;Object.keys(this.keyCodeMap).map(function(s){var u=n.keyCodeMap[s],l=u.action,h=u.keyCode,f=u.disable;h===e&&!f&&(typeof l=="function"?l(i,n.player):typeof l=="string"&&typeof n[l]=="function"&&n[l](i,n.player),n.emit(ci,B({key:s,target:i.target},n.keyCodeMap[s])))})}},{key:"destroy",value:function(){this.player.root.removeEventListener("keydown",this.onKeydown),document.removeEventListener("keydown",this.onBodyKeyDown)}},{key:"disable",value:function(){this.config.disable=!0}},{key:"enable",value:function(){this.config.disable=!1}}],[{key:"pluginName",get:function(){return"keyboard"}},{key:"defaultConfig",get:function(){return{seekStep:10,checkVisible:!0,disableBodyTrigger:!1,disableRootTrigger:!1,isGlobalTrigger:!1,keyCodeMap:{},disable:!1,isIgnoreUserActive:!1}}}]),r}(he);function Yn(){return new DOMParser().parseFromString(` + `)}}],[{key:"pluginName",get:function(){return"mobile"}},{key:"defaultConfig",get:function(){return{index:0,disableGesture:!1,gestureX:!0,gestureY:!0,gradient:"normal",isTouchingSeek:!1,miniMoveStep:5,miniYPer:5,scopeL:.25,scopeR:.25,scopeM:.9,pressRate:2,darkness:!0,maxDarkness:.8,disableActive:!1,disableTimeProgress:!1,hideControlsActive:!1,hideControlsEnd:!1,moveDuration:60*6*1e3,closedbClick:!1,disablePress:!0,disableSeekIcon:!1,focusVideoClick:!1}}}]),r}(O);function Zt(o){o.preventDefault(),o.returnValue=!1}function ir(o){var a=o.tagName;return!!(a==="INPUT"||a==="TEXTAREA"||o.isContentEditable)}var Jt=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n0&&s-u>i*.9)}},{key:"checkCode",value:function(e,i){var n=this,s=!1;return Object.keys(this.keyCodeMap).map(function(u){n.keyCodeMap[u]&&e===n.keyCodeMap[u].keyCode&&!n.keyCodeMap[u].disable&&(s=!i||i&&!n.keyCodeMap[u].noBodyTarget)}),s}},{key:"downVolume",value:function(e){var i=this.player,n=parseFloat((i.volume-.1).toFixed(1)),s={volume:{from:i.volume,to:n}};this.emitUserAction(e,"change_volume",{props:s}),n>=0?i.volume=n:i.volume=0}},{key:"upVolume",value:function(e){var i=this.player,n=parseFloat((i.volume+.1).toFixed(1)),s={volume:{from:i.volume,to:n}};this.emitUserAction(e,"change_volume",{props:s}),n<=1?i.volume=n:i.volume=1}},{key:"seek",value:function(e){var i=this.player,n=i.currentTime,s=i.duration,u=n;n+this.seekStep<=s?u=n+this.seekStep:u=s-1;var l={currentTime:{from:n,to:u}};this.emitUserAction(e,"seek",{props:l}),this.player.currentTime=u}},{key:"seekBack",value:function(e){var i=this.player.currentTime,n=0;i-this.seekStep>=0&&(n=i-this.seekStep);var s={currentTime:{from:i,to:n}};this.emitUserAction(e,"seek",{props:s}),this.player.currentTime=n}},{key:"playPause",value:function(e){var i=this.player;i&&(this.emitUserAction(e,"switch_play_pause"),i.paused?i.play():i.pause())}},{key:"exitFullscreen",value:function(e){var i=this.player,n=i.fullscreen,s=i.cssfullscreen;n&&(this.emitUserAction("keyup","switch_fullscreen",{prop:"fullscreen",from:n,to:!n}),i.exitFullscreen()),s&&(this.emitUserAction("keyup","switch_css_fullscreen",{prop:"cssfullscreen",from:s,to:!s}),i.exitCssFullscreen())}},{key:"handleKeyCode",value:function(e,i){var n=this;Object.keys(this.keyCodeMap).map(function(s){var u=n.keyCodeMap[s],l=u.action,h=u.keyCode,f=u.disable;h===e&&!f&&(typeof l=="function"?l(i,n.player):typeof l=="string"&&typeof n[l]=="function"&&n[l](i,n.player),n.emit(pi,B({key:s,target:i.target},n.keyCodeMap[s])))})}},{key:"destroy",value:function(){this.player.root.removeEventListener("keydown",this.onKeydown),document.removeEventListener("keydown",this.onBodyKeyDown)}},{key:"disable",value:function(){this.config.disable=!0}},{key:"enable",value:function(){this.config.disable=!1}}],[{key:"pluginName",get:function(){return"keyboard"}},{key:"defaultConfig",get:function(){return{seekStep:10,checkVisible:!0,disableBodyTrigger:!1,disableRootTrigger:!1,isGlobalTrigger:!1,keyCodeMap:{},disable:!1,isIgnoreUserActive:!1}}}]),r}(he);function nr(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}var Kn=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"registerIcons",value:function(){return{loadingIcon:Yn}}},{key:"afterCreate",value:function(){this.appendChild("xg-loading-inner",this.icons.loadingIcon)}},{key:"render",value:function(){return` +`,"image/svg+xml").firstChild}var rr=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"registerIcons",value:function(){return{loadingIcon:nr}}},{key:"afterCreate",value:function(){this.appendChild("xg-loading-inner",this.icons.loadingIcon)}},{key:"render",value:function(){return` - `}}],[{key:"pluginName",get:function(){return"loading"}},{key:"defaultConfig",get:function(){return{position:F.ROOT}}}]),r}(O),Xn=[{tag:"xg-cache",className:"xgplayer-progress-cache",styleKey:"cachedColor"},{tag:"xg-played",className:"xgplayer-progress-played",styleKey:"playedColor"}],$n=function(){function o(a){E(this,o),this.fragments=a.fragments||[],this.fragments.length===0&&this.fragments.push({percent:1}),this._callBack=a.actionCallback,this.fragConfig={fragFocusClass:a.fragFocusClass||"inner-focus-point",fragAutoFocus:!!a.fragAutoFocus,fragClass:a.fragClass||""},this.style=a.style||{playedColor:"",cachedColor:"",progressColor:""},this.duration=0,this.cachedIndex=0,this.playedIndex=0,this.focusIndex=-1}return w(o,[{key:"updateDuration",value:function(r){var t=this;this.duration=r;var e=0,i=this.fragments;this.fragments=i.map(function(n){return n.start=parseInt(e,10),n.end=parseInt(e+n.percent*t.duration,10),n.duration=parseInt(n.percent*t.duration,10),e+=n.percent*t.duration,n})}},{key:"updateProgress",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"played",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{newIndex:0,curIndex:0,millisecond:0},e=this.progressList,i=this.fragments;if(!(e.length<1)){var n=t.newIndex,s=t.curIndex,u=t.millisecond;n!==s&&e.map(function(f,d){dn&&(f[r].style.width=0)});var l=i[n],h=u===0?0:(u-l.start)/l.duration;e[n][r].style.width=h<0?0:"".concat(h*100,"%")}}},{key:"updateFocus",value:function(r){if(!(!this.fragConfig.fragAutoFocus||this.fragments.length<2)){if(!r){if(this.focusIndex>-1){this.unHightLight(this.focusIndex);var t={index:-1,preIndex:this.focusIndex,fragment:null};this._callBack&&this._callBack(t),this.focusIndex=-1}return}var e=this.findIndex(r.currentTime*1e3,this.focusIndex);if(e>=0&&e!==this.focusIndex){this.focusIndex>-1&&this.unHightLight(this.focusIndex),this.setHightLight(e);var i={index:e,preIndex:this.focusIndex,fragment:this.fragments[this.focusIndex]};this.focusIndex=e,this._callBack&&this._callBack(i)}}}},{key:"update",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{cached:0,played:0},t=arguments.length>1?arguments[1]:void 0;if(!this.duration||parseInt(t*1e3,10)!==this.duration){if(!t&&t!==0)return;this.updateDuration(parseInt(t*1e3,10))}var e=this.playedIndex,i=this.cachedIndex;if(c.typeOf(r.played)!=="Undefined"){var n=this.findIndex(r.played*1e3,e);if(n<0)return;this.updateProgress("played",{newIndex:n,curIndex:e,millisecond:parseInt(r.played*1e3,10)}),this.playedIndex=n}if(c.typeOf(r.cached)!=="Undefined"){var s=this.findIndex(r.cached*1e3,i);if(s<0)return;this.updateProgress("cached",{newIndex:s,curIndex:i,millisecond:parseInt(r.cached*1e3,10)}),this.cachedIndex=s}}},{key:"findIndex",value:function(r,t){var e=this.fragments;if(!e||e.length===0)return-1;if(e.length===1)return 0;if(t>-1&&te[t].start&&re[e.length-1].start)return e.length-1;for(var i=0;ie[i].start&&r<=e[i].end){t=i;break}return t}},{key:"findHightLight",value:function(){for(var r=this.root.children,t=0;t=t.length?null:{dom:t[r],pos:t[r].getBoundingClientRect()}}},{key:"unHightLight",value:function(){for(var r=this.root.children,t=0;t0;)this.root.removeChild(e[0]);this.render()}}},{key:"render",value:function(){var r=this,t=this.style.progressColor;if(this.root||(this.root=c.createDom("xg-inners","",{},"progress-list")),this.fragments){var e=this.fragConfig,i=e.fragClass,n=e.fragFocusClass;this.progressList=this.fragments.map(function(s){var u=c.createDom("xg-inner","",{style:t?"background:".concat(t,"; flex: ").concat(s.percent):"flex: ".concat(s.percent)},"".concat(s.isFocus?n:""," xgplayer-progress-inner ").concat(i));return r.root.appendChild(u),Xn.forEach(function(l){u.appendChild(c.createDom(l.tag,"",{style:l.styleKey?"background: ".concat(r.style[l.styleKey],"; width:0;"):"width:0;"},l.className))}),{cached:u.children[0],played:u.children[1]}})}return this.root}}]),o}(),Xt={POINT:"inner-focus-point",HIGHLIGHT:"inner-focus-highlight"},qn=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),y(p(e),"onMoveOnly",function(i,n){var s=p(e),u=s.pos,l=s.config,h=s.player,f=n;if(i){c.event(i);var d=c.getEventPos(i,h.zoom),g=h.rotateDeg===90?d.clientY:d.clientX;if(u.moving&&Math.abs(u.x-g)0&&arguments[0]!==void 0?arguments[0]:!0;this.useable=e}},{key:"_initInner",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!i||i.length===0)&&(i=[{percent:1}]);var s=B(B({fragments:i},n),{},{actionCallback:function(l){e.emitUserAction("fragment_focus","fragment_focus",l)}});this.innerList?this.innerList.reset(s):(this.innerList=new $n(s),this.outer.insertBefore(this.innerList.render(),this.outer.children[0]),["findHightLight","unHightLight","setHightLight","findFragment"].map(function(u){e[u]=e.innerList[u].bind(e.innerList)}))}},{key:"_updateInnerFocus",value:function(e){this.innerList&&this.innerList.updateFocus(e)}},{key:"afterCreate",value:function(){var e=this;if(!(this.config.disable||this.playerConfig.isLive)){this.pos={x:0,y:0,moving:!1,isDown:!1,isEnter:!1,isLocked:!1},this.outer=this.find("xg-outer");var i=this.config,n=i.fragFocusClass,s=i.fragAutoFocus,u=i.fragClass;this._initInner(this.config.fragments,{fragFocusClass:n,fragAutoFocus:s,fragClass:u,style:this.playerConfig.commonStyle||{}}),A.device==="mobile"&&(this.config.isDragingSeek=!1,this.isMobile=!0),this.progressBtn=this.find(".xgplayer-progress-btn"),this.on(de,function(){e.onMouseLeave()}),this.on(J,function(){e.onTimeupdate()}),this.on(xe,function(){e.onTimeupdate(),e.onCacheUpdate()}),this.on(ri,function(){e.onCacheUpdate()}),this.on(fe,function(){e.onCacheUpdate(!0),e.onTimeupdate(!0),e._state.now=0}),this.on(be,function(){e.onReset()}),this.on(Ce,function(){e.onVideoResize()}),this.bindDomEvents(),this.initCustomStyle()}}},{key:"setConfig",value:function(e){var i=this,n=null;Object.keys(e).forEach(function(s){i.config[s]=e[s],s==="fragments"&&(n=e[s])}),n&&this._initInner(n,e)}},{key:"initCustomStyle",value:function(){var e=this.playerConfig||{},i=e.commonStyle,n=i.sliderBtnStyle,s=this.progressBtn;n&&(typeof n=="string"?s.style.boxShadow=n:j(n)==="object"&&Object.keys(n).map(function(u){s.style[u]=n[u]}))}},{key:"triggerCallbacks",value:function(e,i,n){this.__dragCallBacks.length>0&&this.__dragCallBacks.map(function(s){if(s&&s.handler&&s.type===e)try{s.handler(i,n)}catch(u){console.error("[XGPLAYER][triggerCallbacks] ".concat(s," error"),u)}})}},{key:"addCallBack",value:function(e,i){i&&typeof i=="function"&&this.__dragCallBacks.push({type:e,handler:i})}},{key:"removeCallBack",value:function(e,i){var n=this.__dragCallBacks,s=-1;n.map(function(u,l){u&&u.type===e&&u.handler===i&&(s=l)}),s>-1&&n.splice(s,1)}},{key:"unlock",value:function(){var e=this.player,i=this.pos;if(i.isEnter=!1,!e.isMini){if(this.unbind("mousemove",this.onMoveOnly),i.isDown){this.unbind("mouseleave",this.onMouseLeave);return}this.blur()}}},{key:"bindDomEvents",value:function(){var e=this.player,i=e.controls,n=e.config;this._mouseDownHandlerHook=this.hook("dragstart",this._mouseDownHandler),this._mouseUpHandlerHook=this.hook("dragend",this._mouseUpHandler),this._mouseMoveHandlerHook=this.hook("drag",this._mouseMoveHandler),(this.domEventType==="touch"||this.domEventType==="compatible")&&(this.root.addEventListener("touchstart",this.onMouseDown),i&&(i.root&&i.root.addEventListener("touchmove",c.stopPropagation),i.center&&i.center.addEventListener("touchend",c.stopPropagation))),(this.domEventType==="mouse"||this.domEventType==="compatible")&&(this.bind("mousedown",this.onMouseDown),n.isMobileSimulateMode!=="mobile"&&this.bind("mouseenter",this.onMouseEnter),this.bind("mouseover",this.onMouseOver),this.bind("mouseout",this.onMouseOut),this.player.root.addEventListener("click",this.onBodyClick,!0))}},{key:"focus",value:function(){this.player.controls.pauseAutoHide(),c.addClass(this.root,"active")}},{key:"blur",value:function(){this._disableBlur||(this.player.controls.recoverAutoHide(),c.removeClass(this.root,"active"))}},{key:"disableBlur",value:function(){this._disableBlur=!0}},{key:"enableBlur",value:function(){this._disableBlur=!1}},{key:"updateWidth",value:function(e,i,n){var s=this.config,u=this.player;if(!(s.isCloseClickSeek&&n===0)){var l=e>=u.duration?u.duration-s.endedDiff:Number(e).toFixed(1);this.updatePercent(i),this.updateTime(e),!(n===1&&(!s.isDragingSeek||u.config.mediaType==="audio"))&&(this._state.now=l,this._state.direc=l>u.currentTime?0:1,u.seek(l))}}},{key:"computeTime",value:function(e,i){var n=this.player,s=this.root.getBoundingClientRect(),u=s.width,l=s.height,h=s.top,f=s.left,d,g,v=i;n.rotateDeg===90?(d=l,g=h):(d=u,g=f);var _=v-g;_=_>d?d:_<0?0:_;var m=_/d;m=m<0?0:m>1?1:m;var k=parseInt(m*this.duration*1e3,10)/1e3;return{percent:m,currentTime:k,offset:_,width:d,left:g,e}}},{key:"updateTime",value:function(e){var i=this.player,n=this.duration;e>n?e=n:e<0&&(e=0);var s=i.plugins.time;s&&s.updateTime(e)}},{key:"resetSeekState",value:function(){this.isProgressMoving=!1;var e=this.player.plugins.time;e&&e.resetActive()}},{key:"updatePercent",value:function(e,i){if(this.isProgressMoving=!0,!this.config.disable){e=e>1?1:e<0?0:e,this.progressBtn.style.left="".concat(e*100,"%"),this.innerList.update({played:e*this.duration},this.duration);var n=this.player.plugins.miniprogress;n&&n.update({played:e*this.duration},this.duration)}}},{key:"onTimeupdate",value:function(e){var i=this.player,n=this._state,s=this.duration;if(!(i.isSeeking||this.isProgressMoving)){if(n.now>-1){var u=parseInt(n.now*1e3,10)-parseInt(i.currentTime*1e3,10);if(n.direc===0&&u>300||n.direc===1&&u>-300){n.now=-1;return}else n.now=-1}var l=this.timeOffset+i.currentTime;l=c.adjustTimeByDuration(l,s,e),this.innerList.update({played:l},s),this.progressBtn.style.left="".concat(l/s*100,"%");var h=this.player.plugins.miniprogress;h&&h.update({played:l},s)}}},{key:"onCacheUpdate",value:function(e){var i=this.player,n=this.duration;if(i){var s=i.bufferedPoint.end;s=c.adjustTimeByDuration(s,n,e),this.innerList.update({cached:s},n);var u=this.player.plugins.miniprogress;u&&u.update({cached:s},n)}}},{key:"onReset",value:function(){this.innerList.update({played:0,cached:0},0);var e=this.player.plugins.miniprogress;e&&e.update({cached:0,played:0},0)}},{key:"destroy",value:function(){var e=this.player,i=e.controls;this.thumbnailPlugin=null,this.innerList.destroy(),this.innerList=null;var n=this.domEventType;(n==="touch"||n==="compatible")&&(this.root.removeEventListener("touchstart",this.onMouseDown),this.root.removeEventListener("touchmove",this.onMouseMove),this.root.removeEventListener("touchend",this.onMouseUp),i&&(i.root&&i.root.removeEventListener("touchmove",c.stopPropagation),i.center&&i.center.removeEventListener("touchend",c.stopPropagation))),(n==="mouse"||n==="compatible")&&(this.unbind("mousedown",this.onMouseDown),this.unbind("mouseenter",this.onMouseEnter),this.unbind("mousemove",this.onMoveOnly),this.unbind("mouseleave",this.onMouseLeave),document.removeEventListener("mousemove",this.onMouseMove,!1),document.removeEventListener("mouseup",this.onMouseUp,!1),e.root.removeEventListener("click",this.onBodyClick,!0))}},{key:"render",value:function(){if(!(this.config.disable||this.playerConfig.isLive)){var e=this.player.controls?this.player.controls.config.mode:"",i=e==="bottom"?"xgplayer-progress-bottom":"";return` + `}}],[{key:"pluginName",get:function(){return"loading"}},{key:"defaultConfig",get:function(){return{position:F.ROOT}}}]),r}(O),sr=[{tag:"xg-cache",className:"xgplayer-progress-cache",styleKey:"cachedColor"},{tag:"xg-played",className:"xgplayer-progress-played",styleKey:"playedColor"}],ar=function(){function o(a){E(this,o),this.fragments=a.fragments||[],this.fragments.length===0&&this.fragments.push({percent:1}),this._callBack=a.actionCallback,this.fragConfig={fragFocusClass:a.fragFocusClass||"inner-focus-point",fragAutoFocus:!!a.fragAutoFocus,fragClass:a.fragClass||""},this.style=a.style||{playedColor:"",cachedColor:"",progressColor:""},this.duration=0,this.cachedIndex=0,this.playedIndex=0,this.focusIndex=-1}return w(o,[{key:"updateDuration",value:function(r){var t=this;this.duration=r;var e=0,i=this.fragments;this.fragments=i.map(function(n){return n.start=parseInt(e,10),n.end=parseInt(e+n.percent*t.duration,10),n.duration=parseInt(n.percent*t.duration,10),e+=n.percent*t.duration,n})}},{key:"updateProgress",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"played",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{newIndex:0,curIndex:0,millisecond:0},e=this.progressList,i=this.fragments;if(!(e.length<1)){var n=t.newIndex,s=t.curIndex,u=t.millisecond;n!==s&&e.map(function(f,d){dn&&(f[r].style.width=0)});var l=i[n],h=u===0?0:(u-l.start)/l.duration;e[n][r].style.width=h<0?0:"".concat(h*100,"%")}}},{key:"updateFocus",value:function(r){if(!(!this.fragConfig.fragAutoFocus||this.fragments.length<2)){if(!r){if(this.focusIndex>-1){this.unHightLight(this.focusIndex);var t={index:-1,preIndex:this.focusIndex,fragment:null};this._callBack&&this._callBack(t),this.focusIndex=-1}return}var e=this.findIndex(r.currentTime*1e3,this.focusIndex);if(e>=0&&e!==this.focusIndex){this.focusIndex>-1&&this.unHightLight(this.focusIndex),this.setHightLight(e);var i={index:e,preIndex:this.focusIndex,fragment:this.fragments[this.focusIndex]};this.focusIndex=e,this._callBack&&this._callBack(i)}}}},{key:"update",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{cached:0,played:0},t=arguments.length>1?arguments[1]:void 0;if(!this.duration||parseInt(t*1e3,10)!==this.duration){if(!t&&t!==0)return;this.updateDuration(parseInt(t*1e3,10))}var e=this.playedIndex,i=this.cachedIndex;if(c.typeOf(r.played)!=="Undefined"){var n=this.findIndex(r.played*1e3,e);if(n<0)return;this.updateProgress("played",{newIndex:n,curIndex:e,millisecond:parseInt(r.played*1e3,10)}),this.playedIndex=n}if(c.typeOf(r.cached)!=="Undefined"){var s=this.findIndex(r.cached*1e3,i);if(s<0)return;this.updateProgress("cached",{newIndex:s,curIndex:i,millisecond:parseInt(r.cached*1e3,10)}),this.cachedIndex=s}}},{key:"findIndex",value:function(r,t){var e=this.fragments;if(!e||e.length===0)return-1;if(e.length===1)return 0;if(t>-1&&te[t].start&&re[e.length-1].start)return e.length-1;for(var i=0;ie[i].start&&r<=e[i].end){t=i;break}return t}},{key:"findHightLight",value:function(){for(var r=this.root.children,t=0;t=t.length?null:{dom:t[r],pos:t[r].getBoundingClientRect()}}},{key:"unHightLight",value:function(){for(var r=this.root.children,t=0;t0;)this.root.removeChild(e[0]);this.render()}}},{key:"render",value:function(){var r=this,t=this.style.progressColor;if(this.root||(this.root=c.createDom("xg-inners","",{},"progress-list")),this.fragments){var e=this.fragConfig,i=e.fragClass,n=e.fragFocusClass;this.progressList=this.fragments.map(function(s){var u=c.createDom("xg-inner","",{style:t?"background:".concat(t,"; flex: ").concat(s.percent):"flex: ".concat(s.percent)},"".concat(s.isFocus?n:""," xgplayer-progress-inner ").concat(i));return r.root.appendChild(u),sr.forEach(function(l){u.appendChild(c.createDom(l.tag,"",{style:l.styleKey?"background: ".concat(r.style[l.styleKey],"; width:0;"):"width:0;"},l.className))}),{cached:u.children[0],played:u.children[1]}})}return this.root}}]),o}(),Qt={POINT:"inner-focus-point",HIGHLIGHT:"inner-focus-highlight"},or=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),y(p(e),"onMoveOnly",function(i,n){var s=p(e),u=s.pos,l=s.config,h=s.player,f=n;if(i){c.event(i);var d=c.getEventPos(i,h.zoom),g=h.rotateDeg===90?d.clientY:d.clientX;if(u.moving&&Math.abs(u.x-g)0&&arguments[0]!==void 0?arguments[0]:!0;this.useable=e}},{key:"_initInner",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!i||i.length===0)&&(i=[{percent:1}]);var s=B(B({fragments:i},n),{},{actionCallback:function(l){e.emitUserAction("fragment_focus","fragment_focus",l)}});this.innerList?this.innerList.reset(s):(this.innerList=new ar(s),this.outer.insertBefore(this.innerList.render(),this.outer.children[0]),["findHightLight","unHightLight","setHightLight","findFragment"].map(function(u){e[u]=e.innerList[u].bind(e.innerList)}))}},{key:"_updateInnerFocus",value:function(e){this.innerList&&this.innerList.updateFocus(e)}},{key:"afterCreate",value:function(){var e=this;if(!(this.config.disable||this.playerConfig.isLive)){this.pos={x:0,y:0,moving:!1,isDown:!1,isEnter:!1,isLocked:!1},this.outer=this.find("xg-outer");var i=this.config,n=i.fragFocusClass,s=i.fragAutoFocus,u=i.fragClass;this._initInner(this.config.fragments,{fragFocusClass:n,fragAutoFocus:s,fragClass:u,style:this.playerConfig.commonStyle||{}}),A.device==="mobile"&&(this.config.isDragingSeek=!1,this.isMobile=!0),this.progressBtn=this.find(".xgplayer-progress-btn"),this.on(de,function(){e.onMouseLeave()}),this.on(J,function(){e.onTimeupdate()}),this.on(xe,function(){e.onTimeupdate(),e.onCacheUpdate()}),this.on(li,function(){e.onCacheUpdate()}),this.on(fe,function(){e.onCacheUpdate(!0),e.onTimeupdate(!0),e._state.now=0}),this.on(be,function(){e.onReset()}),this.on(Ce,function(){e.onVideoResize()}),this.bindDomEvents(),this.initCustomStyle()}}},{key:"setConfig",value:function(e){var i=this,n=null;Object.keys(e).forEach(function(s){i.config[s]=e[s],s==="fragments"&&(n=e[s])}),n&&this._initInner(n,e)}},{key:"initCustomStyle",value:function(){var e=this.playerConfig||{},i=e.commonStyle,n=i.sliderBtnStyle,s=this.progressBtn;n&&(typeof n=="string"?s.style.boxShadow=n:j(n)==="object"&&Object.keys(n).map(function(u){s.style[u]=n[u]}))}},{key:"triggerCallbacks",value:function(e,i,n){this.__dragCallBacks.length>0&&this.__dragCallBacks.map(function(s){if(s&&s.handler&&s.type===e)try{s.handler(i,n)}catch(u){console.error("[XGPLAYER][triggerCallbacks] ".concat(s," error"),u)}})}},{key:"addCallBack",value:function(e,i){i&&typeof i=="function"&&this.__dragCallBacks.push({type:e,handler:i})}},{key:"removeCallBack",value:function(e,i){var n=this.__dragCallBacks,s=-1;n.map(function(u,l){u&&u.type===e&&u.handler===i&&(s=l)}),s>-1&&n.splice(s,1)}},{key:"unlock",value:function(){var e=this.player,i=this.pos;if(i.isEnter=!1,!e.isMini){if(this.unbind("mousemove",this.onMoveOnly),i.isDown){this.unbind("mouseleave",this.onMouseLeave);return}this.blur()}}},{key:"bindDomEvents",value:function(){var e=this.player,i=e.controls,n=e.config;this._mouseDownHandlerHook=this.hook("dragstart",this._mouseDownHandler),this._mouseUpHandlerHook=this.hook("dragend",this._mouseUpHandler),this._mouseMoveHandlerHook=this.hook("drag",this._mouseMoveHandler),(this.domEventType==="touch"||this.domEventType==="compatible")&&(this.root.addEventListener("touchstart",this.onMouseDown),i&&(i.root&&i.root.addEventListener("touchmove",c.stopPropagation),i.center&&i.center.addEventListener("touchend",c.stopPropagation))),(this.domEventType==="mouse"||this.domEventType==="compatible")&&(this.bind("mousedown",this.onMouseDown),n.isMobileSimulateMode!=="mobile"&&this.bind("mouseenter",this.onMouseEnter),this.bind("mouseover",this.onMouseOver),this.bind("mouseout",this.onMouseOut),this.player.root.addEventListener("click",this.onBodyClick,!0))}},{key:"focus",value:function(){this.player.controls.pauseAutoHide(),c.addClass(this.root,"active")}},{key:"blur",value:function(){this._disableBlur||(this.player.controls.recoverAutoHide(),c.removeClass(this.root,"active"))}},{key:"disableBlur",value:function(){this._disableBlur=!0}},{key:"enableBlur",value:function(){this._disableBlur=!1}},{key:"updateWidth",value:function(e,i,n){var s=this.config,u=this.player;if(!(s.isCloseClickSeek&&n===0)){var l=e>=u.duration?u.duration-s.endedDiff:Number(e).toFixed(1);this.updatePercent(i),this.updateTime(e),!(n===1&&(!s.isDragingSeek||u.config.mediaType==="audio"))&&(this._state.now=l,this._state.direc=l>u.currentTime?0:1,u.seek(l))}}},{key:"computeTime",value:function(e,i){var n=this.player,s=this.root.getBoundingClientRect(),u=s.width,l=s.height,h=s.top,f=s.left,d,g,v=i;n.rotateDeg===90?(d=l,g=h):(d=u,g=f);var _=v-g;_=_>d?d:_<0?0:_;var m=_/d;m=m<0?0:m>1?1:m;var k=parseInt(m*this.duration*1e3,10)/1e3;return{percent:m,currentTime:k,offset:_,width:d,left:g,e}}},{key:"updateTime",value:function(e){var i=this.player,n=this.duration;e>n?e=n:e<0&&(e=0);var s=i.plugins.time;s&&s.updateTime(e)}},{key:"resetSeekState",value:function(){this.isProgressMoving=!1;var e=this.player.plugins.time;e&&e.resetActive()}},{key:"updatePercent",value:function(e,i){if(this.isProgressMoving=!0,!this.config.disable){e=e>1?1:e<0?0:e,this.progressBtn.style.left="".concat(e*100,"%"),this.innerList.update({played:e*this.duration},this.duration);var n=this.player.plugins.miniprogress;n&&n.update({played:e*this.duration},this.duration)}}},{key:"onTimeupdate",value:function(e){var i=this.player,n=this._state,s=this.duration;if(!(i.isSeeking||this.isProgressMoving)){if(n.now>-1){var u=parseInt(n.now*1e3,10)-parseInt(i.currentTime*1e3,10);if(n.direc===0&&u>300||n.direc===1&&u>-300){n.now=-1;return}else n.now=-1}var l=this.timeOffset+i.currentTime;l=c.adjustTimeByDuration(l,s,e),this.innerList.update({played:l},s),this.progressBtn.style.left="".concat(l/s*100,"%");var h=this.player.plugins.miniprogress;h&&h.update({played:l},s)}}},{key:"onCacheUpdate",value:function(e){var i=this.player,n=this.duration;if(i){var s=i.bufferedPoint.end;s=c.adjustTimeByDuration(s,n,e),this.innerList.update({cached:s},n);var u=this.player.plugins.miniprogress;u&&u.update({cached:s},n)}}},{key:"onReset",value:function(){this.innerList.update({played:0,cached:0},0);var e=this.player.plugins.miniprogress;e&&e.update({cached:0,played:0},0)}},{key:"destroy",value:function(){var e=this.player,i=e.controls;this.thumbnailPlugin=null,this.innerList.destroy(),this.innerList=null;var n=this.domEventType;(n==="touch"||n==="compatible")&&(this.root.removeEventListener("touchstart",this.onMouseDown),this.root.removeEventListener("touchmove",this.onMouseMove),this.root.removeEventListener("touchend",this.onMouseUp),i&&(i.root&&i.root.removeEventListener("touchmove",c.stopPropagation),i.center&&i.center.removeEventListener("touchend",c.stopPropagation))),(n==="mouse"||n==="compatible")&&(this.unbind("mousedown",this.onMouseDown),this.unbind("mouseenter",this.onMouseEnter),this.unbind("mousemove",this.onMoveOnly),this.unbind("mouseleave",this.onMouseLeave),document.removeEventListener("mousemove",this.onMouseMove,!1),document.removeEventListener("mouseup",this.onMouseUp,!1),e.root.removeEventListener("click",this.onBodyClick,!0))}},{key:"render",value:function(){if(!(this.config.disable||this.playerConfig.isLive)){var e=this.player.controls?this.player.controls.config.mode:"",i=e==="bottom"?"xgplayer-progress-bottom":"";return` - `)}}}],[{key:"pluginName",get:function(){return"progress"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_CENTER,index:0,disable:!1,isDragingSeek:!0,closeMoveSeek:!1,isPauseMoving:!1,isCloseClickSeek:!1,fragments:[{percent:1}],fragFocusClass:Xt.POINT,fragClass:"",fragAutoFocus:!1,miniMoveStep:5,miniStartStep:2,onMoveStart:function(){},onMoveEnd:function(){},endedDiff:.2}}},{key:"FRAGMENT_FOCUS_CLASS",get:function(){return Xt}}]),r}(O),ge=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n + `)}}}],[{key:"pluginName",get:function(){return"progress"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_CENTER,index:0,disable:!1,isDragingSeek:!0,closeMoveSeek:!1,isPauseMoving:!1,isCloseClickSeek:!1,fragments:[{percent:1}],fragFocusClass:Qt.POINT,fragClass:"",fragAutoFocus:!1,miniMoveStep:5,miniStartStep:2,onMoveStart:function(){},onMoveEnd:function(){},endedDiff:.2}}},{key:"FRAGMENT_FOCUS_CLASS",get:function(){return Qt}}]),r}(O),ge=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n
    `.concat(se(this,"PLAY_TIPS",this.playerConfig.isHideTips),` - `)}}],[{key:"pluginName",get:function(){return"play"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_LEFT,index:0,disable:!1}}}]),r}(ge);function Jn(){return new DOMParser().parseFromString(` + `)}}],[{key:"pluginName",get:function(){return"play"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_LEFT,index:0,disable:!1}}}]),r}(ge);function lr(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}var Qn=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"afterCreate",value:function(){var e=this;this.initIcons(),this.onClick=function(i){i.preventDefault(),i.stopPropagation(),e.config.onClick(i)},this.bind(["click","touchend"],this.onClick)}},{key:"registerIcons",value:function(){return{screenBack:{icon:Jn,class:"xg-fullscreen-back"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(this.root,e.screenBack)}},{key:"show",value:function(){c.addClass(this.root,"show")}},{key:"hide",value:function(){c.removeClass(this.root,"show")}},{key:"render",value:function(){return` - `}}],[{key:"pluginName",get:function(){return"topbackicon"}},{key:"defaultConfig",get:function(){return{position:F.ROOT_TOP,index:0}}}]),r}(O);function er(){return new DOMParser().parseFromString(` +`,"image/svg+xml").firstChild}var cr=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"afterCreate",value:function(){var e=this;this.initIcons(),this.onClick=function(i){i.preventDefault(),i.stopPropagation(),e.config.onClick(i)},this.bind(["click","touchend"],this.onClick)}},{key:"registerIcons",value:function(){return{screenBack:{icon:lr,class:"xg-fullscreen-back"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(this.root,e.screenBack)}},{key:"show",value:function(){c.addClass(this.root,"show")}},{key:"hide",value:function(){c.removeClass(this.root,"show")}},{key:"render",value:function(){return` + `}}],[{key:"pluginName",get:function(){return"topbackicon"}},{key:"defaultConfig",get:function(){return{position:F.ROOT_TOP,index:0}}}]),r}(O);function hr(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}function tr(){return new DOMParser().parseFromString(` +`,"image/svg+xml").firstChild}function fr(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}var ir=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n +`,"image/svg+xml").firstChild}var dr=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n
    `.concat(se(this,e,this.playerConfig.isHideTips),` - `)}}}],[{key:"pluginName",get:function(){return"fullscreen"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:0,useCssFullscreen:!1,rotateFullscreen:!1,switchCallback:null,target:null,disable:!1,needBackIcon:!1}}}]),r}(ge),nr=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),e.isActiving=!1,e}return w(r,[{key:"duration",get:function(){return this.playerConfig.customDuration||this.player.duration}},{key:"currentTime",get:function(){return this.player.currentTime||0}},{key:"timeOffset",get:function(){return this.playerConfig.timeOffset||0}},{key:"afterCreate",value:function(){var e=this,i=this.player.controls.config.mode;this.mode=i==="flex"?"flex":"normal",!this.config.disable&&(this.mode==="flex"&&(this.createCenterTime(),this.hide()),this.durationDom=this.find(".time-duration"),this.timeDom=this.find(".time-current"),this.on(de,function(){e.onTimeUpdate()}),this.on(J,function(){e.onTimeUpdate()}),this.on(fe,function(){e.onTimeUpdate(!0)}),this.on(be,function(){e.onReset()}))}},{key:"show",value:function(){this.mode!=="flex"&&x(S(r.prototype),"show",this).call(this)}},{key:"onTimeUpdate",value:function(e){var i=this.player,n=this.config,s=this.duration;if(!(n.disable||this.isActiving||!i.hasStart)){var u=i.currentTime+this.timeOffset;u=c.adjustTimeByDuration(u,s,e),this.mode==="flex"?(this.centerCurDom.innerHTML=c.format(u),s!==1/0&&s>0&&(this.centerDurDom.innerHTML=c.format(s))):(this.timeDom.innerHTML=c.format(u),s!==1/0&&s>0&&(this.durationDom.innerHTML=c.format(s)))}}},{key:"onReset",value:function(){this.mode==="flex"?(this.centerCurDom.innerHTML=c.format(0),this.centerDurDom.innerHTML=c.format(0)):(this.timeDom.innerHTML=c.format(0),this.durationDom.innerHTML=c.format(0))}},{key:"createCenterTime",value:function(){var e=this.player;if(!(!e.controls||!e.controls.center)){var i=e.controls.center;this.centerCurDom=c.createDom("xg-icon","00:00",{},"xgplayer-time left"),this.centerDurDom=c.createDom("xg-icon","00:00",{},"xgplayer-time right"),i.children.length>0?i.insertBefore(this.centerCurDom,i.children[0]):i.appendChild(this.centerCurDom),i.appendChild(this.centerDurDom)}}},{key:"afterPlayerInit",value:function(){var e=this.config;if(this.duration===1/0||this.playerConfig.isLive?(c.hide(this.durationDom),c.hide(this.timeDom),c.hide(this.find(".time-separator")),c.show(this.find(".time-live-tag"))):c.hide(this.find(".time-live-tag")),e.hide){this.hide();return}this.show()}},{key:"changeLiveState",value:function(e){e?(c.hide(this.durationDom),c.hide(this.timeDom),c.hide(this.find(".time-separator")),c.show(this.find(".time-live-tag"))):(c.hide(this.find(".time-live-tag")),c.show(this.find(".time-separator")),c.show(this.durationDom),c.show(this.timeDom))}},{key:"updateTime",value:function(e){if(this.isActiving=!0,!(!e&&e!==0||e>this.duration)){if(this.mode==="flex"){this.centerCurDom.innerHTML=c.format(e);return}this.timeDom.innerHTML=c.format(e)}}},{key:"resetActive",value:function(){var e=this,i=this.player,n=function(){e.isActiving=!1};this.off(xe,n),i.isSeeking?this.once(xe,n):this.isActiving=!1}},{key:"destroy",value:function(){var e=this.player.controls.center;this.centerCurDom&&e.removeChild(this.centerCurDom),this.centerCurDom=null,this.centerDurDom&&e.removeChild(this.centerDurDom),this.centerDurDom=null}},{key:"render",value:function(){if(!this.config.disable)return` + `)}}}],[{key:"pluginName",get:function(){return"fullscreen"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:0,useCssFullscreen:!1,rotateFullscreen:!1,switchCallback:null,target:null,disable:!1,needBackIcon:!1}}}]),r}(ge),gr=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),e.isActiving=!1,e}return w(r,[{key:"duration",get:function(){return this.playerConfig.customDuration||this.player.duration}},{key:"currentTime",get:function(){return this.player.currentTime||0}},{key:"timeOffset",get:function(){return this.playerConfig.timeOffset||0}},{key:"afterCreate",value:function(){var e=this,i=this.player.controls.config.mode;this.mode=i==="flex"?"flex":"normal",!this.config.disable&&(this.mode==="flex"&&(this.createCenterTime(),this.hide()),this.durationDom=this.find(".time-duration"),this.timeDom=this.find(".time-current"),this.on(de,function(){e.onTimeUpdate()}),this.on(J,function(){e.onTimeUpdate()}),this.on(fe,function(){e.onTimeUpdate(!0)}),this.on(be,function(){e.onReset()}))}},{key:"show",value:function(){this.mode!=="flex"&&x(S(r.prototype),"show",this).call(this)}},{key:"onTimeUpdate",value:function(e){var i=this.player,n=this.config,s=this.duration;if(!(n.disable||this.isActiving||!i.hasStart)){var u=i.currentTime+this.timeOffset;u=c.adjustTimeByDuration(u,s,e),this.mode==="flex"?(this.centerCurDom.innerHTML=c.format(u),s!==1/0&&s>0&&(this.centerDurDom.innerHTML=c.format(s))):(this.timeDom.innerHTML=c.format(u),s!==1/0&&s>0&&(this.durationDom.innerHTML=c.format(s)))}}},{key:"onReset",value:function(){this.mode==="flex"?(this.centerCurDom.innerHTML=c.format(0),this.centerDurDom.innerHTML=c.format(0)):(this.timeDom.innerHTML=c.format(0),this.durationDom.innerHTML=c.format(0))}},{key:"createCenterTime",value:function(){var e=this.player;if(!(!e.controls||!e.controls.center)){var i=e.controls.center;this.centerCurDom=c.createDom("xg-icon","00:00",{},"xgplayer-time left"),this.centerDurDom=c.createDom("xg-icon","00:00",{},"xgplayer-time right"),i.children.length>0?i.insertBefore(this.centerCurDom,i.children[0]):i.appendChild(this.centerCurDom),i.appendChild(this.centerDurDom)}}},{key:"afterPlayerInit",value:function(){var e=this.config;if(this.duration===1/0||this.playerConfig.isLive?(c.hide(this.durationDom),c.hide(this.timeDom),c.hide(this.find(".time-separator")),c.show(this.find(".time-live-tag"))):c.hide(this.find(".time-live-tag")),e.hide){this.hide();return}this.show()}},{key:"changeLiveState",value:function(e){e?(c.hide(this.durationDom),c.hide(this.timeDom),c.hide(this.find(".time-separator")),c.show(this.find(".time-live-tag"))):(c.hide(this.find(".time-live-tag")),c.show(this.find(".time-separator")),c.show(this.durationDom),c.show(this.timeDom))}},{key:"updateTime",value:function(e){if(this.isActiving=!0,!(!e&&e!==0||e>this.duration)){if(this.mode==="flex"){this.centerCurDom.innerHTML=c.format(e);return}this.timeDom.innerHTML=c.format(e)}}},{key:"resetActive",value:function(){var e=this,i=this.player,n=function(){e.isActiving=!1};this.off(xe,n),i.isSeeking?this.once(xe,n):this.isActiving=!1}},{key:"destroy",value:function(){var e=this.player.controls.center;this.centerCurDom&&e.removeChild(this.centerCurDom),this.centerCurDom=null,this.centerDurDom&&e.removeChild(this.centerDurDom),this.centerDurDom=null}},{key:"render",value:function(){if(!this.config.disable)return` 00:00 / 00:00 `.concat(this.i18n.LIVE_TIP,` - `)}}],[{key:"pluginName",get:function(){return"time"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_LEFT,index:2,disable:!1}}}]),r}(O);function rr(){return new DOMParser().parseFromString(` + `)}}],[{key:"pluginName",get:function(){return"time"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_LEFT,index:2,disable:!1}}}]),r}(O);function pr(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}function sr(){return new DOMParser().parseFromString(` +`,"image/svg+xml").firstChild}function vr(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}function ar(){return new DOMParser().parseFromString(` +`,"image/svg+xml").firstChild}function mr(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}var or=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;nf.barH||t.updateVolumePos(v,s)}}),y(p(t),"onBarMouseUp",function(s){c.event(s),document.removeEventListener("mouseup",t.onBarMouseUp);var u=p(t),l=u._d;l.isStart=!1,l.isMoving=!1}),y(p(t),"onMouseenter",function(s){t._d.isActive=!0,t.focus(),t.emit("icon_mouseenter",{pluginName:t.pluginName})}),y(p(t),"onMouseleave",function(s){t._d.isActive=!1,t.unFocus(100,!1,s),t.emit("icon_mouseleave",{pluginName:t.pluginName})}),y(p(t),"onVolumeChange",function(s){if(t.player){var u=t.player,l=u.muted,h=u.volume;t._d.isMoving||(t.find(".xgplayer-drag").style.height=l||h===0?"4px":"".concat(h*100,"%"),t.config.showValueLabel&&t.updateVolumeValue()),t.animate(l,h)}}),t}return w(r,[{key:"registerIcons",value:function(){return{volumeSmall:{icon:sr,class:"xg-volume-small"},volumeLarge:{icon:rr,class:"xg-volume"},volumeMuted:{icon:ar,class:"xg-volume-mute"}}}},{key:"afterCreate",value:function(){var e=this;if(this._timerId=null,this._d={isStart:!1,isMoving:!1,isActive:!1},!this.config.disable){this.initIcons();var i=this.playerConfig,n=i.commonStyle,s=i.volume;n.volumeColor&&(this.find(".xgplayer-drag").style.backgroundColor=n.volumeColor),this.changeMutedHandler=this.hook("mutedChange",function(u){e.changeMuted(u)},{pre:function(l){l.preventDefault(),l.stopPropagation()}}),this._onMouseenterHandler=this.hook("mouseenter",this.onMouseenter),this._onMouseleaveHandler=this.hook("mouseleave",this.onMouseleave),A.device!=="mobile"&&this.playerConfig.isMobileSimulateMode!=="mobile"&&(this.bind("mouseenter",this._onMouseenterHandler),this.bind(["blur","mouseleave"],this._onMouseleaveHandler),this.bind(".xgplayer-slider","mousedown",this.onBarMousedown),this.bind(".xgplayer-slider","mousemove",this.onBarMouseMove),this.bind(".xgplayer-slider","mouseup",this.onBarMouseUp)),this.bind(".xgplayer-icon",["touchend","click"],this.changeMutedHandler),this.on(ii,this.onVolumeChange),this.once(ce,this.onVolumeChange),c.typeOf(s)!=="Number"&&(this.player.volume=this.config.default),this.onVolumeChange()}}},{key:"updateVolumePos",value:function(e,i){var n=this.player,s=this.find(".xgplayer-drag"),u=this.find(".xgplayer-bar");if(!(!u||!s)){var l=parseInt(e/u.getBoundingClientRect().height*1e3,10);s.style.height="".concat(e,"px");var h=Math.max(Math.min(l/1e3,1),0),f={volume:{from:n.volume,to:h}};n.muted&&(f.muted={from:!0,to:!1}),this.emitUserAction(i,"change_volume",{muted:n.muted,volume:n.volume,props:f}),n.volume=Math.max(Math.min(l/1e3,1),0),n.muted&&(n.muted=!1),this.config.showValueLabel&&this.updateVolumeValue()}}},{key:"updateVolumeValue",value:function(){var e=this.player,i=e.volume,n=e.muted,s=this.find(".xgplayer-value-label"),u=Math.max(Math.min(i,1),0);s.innerText=n?0:Math.ceil(u*100)}},{key:"focus",value:function(){var e=this.player;e.focus({autoHide:!1}),this._timerId&&(c.clearTimeout(this,this._timerId),this._timerId=null),c.addClass(this.root,"slide-show")}},{key:"unFocus",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=arguments.length>2?arguments[2]:void 0,u=this._d,l=this.player;u.isActive||(this._timerId&&(c.clearTimeout(this,this._timerId),this._timerId=null),this._timerId=c.setTimeout(this,function(){u.isActive||(n?l.blur():l.focus(),c.removeClass(e.root,"slide-show"),u.isStart&&e.onBarMouseUp(s)),e._timerId=null},i))}},{key:"changeMuted",value:function(e){e&&e.stopPropagation();var i=this.player,n=this._d;n.isStart&&this.onBarMouseUp(e),this.emitUserAction(e,"change_muted",{muted:i.muted,volume:i.volume,props:{muted:{from:i.muted,to:!i.muted}}}),i.volume>0&&(i.muted=!i.muted),i.volume<.01&&(i.volume=this.config.miniVolume)}},{key:"animate",value:function(e,i){e||i===0?this.setAttr("data-state","mute"):i<.5&&this.icons.volumeSmall?this.setAttr("data-state","small"):this.setAttr("data-state","normal")}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.volumeSmall),this.appendChild(".xgplayer-icon",e.volumeLarge),this.appendChild(".xgplayer-icon",e.volumeMuted)}},{key:"destroy",value:function(){this._timerId&&(c.clearTimeout(this,this._timerId),this._timerId=null),this.unbind("mouseenter",this.onMouseenter),this.unbind(["blur","mouseleave"],this.onMouseleave),this.unbind(".xgplayer-slider","mousedown",this.onBarMousedown),this.unbind(".xgplayer-slider","mousemove",this.onBarMouseMove),this.unbind(".xgplayer-slider","mouseup",this.onBarMouseUp),document.removeEventListener("mouseup",this.onBarMouseUp),this.unbind(".xgplayer-icon",A.device==="mobile"?"touchend":"click",this.changeMutedHandler)}},{key:"render",value:function(){if(!this.config.disable){var e=this.config.default||this.player.volume,i=this.config.showValueLabel;return` +`,"image/svg+xml").firstChild}var yr=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;nf.barH||t.updateVolumePos(v,s)}}),y(p(t),"onBarMouseUp",function(s){c.event(s),document.removeEventListener("mouseup",t.onBarMouseUp);var u=p(t),l=u._d;l.isStart=!1,l.isMoving=!1}),y(p(t),"onMouseenter",function(s){t._d.isActive=!0,t.focus(),t.emit("icon_mouseenter",{pluginName:t.pluginName})}),y(p(t),"onMouseleave",function(s){t._d.isActive=!1,t.unFocus(100,!1,s),t.emit("icon_mouseleave",{pluginName:t.pluginName})}),y(p(t),"onVolumeChange",function(s){if(t.player){var u=t.player,l=u.muted,h=u.volume;t._d.isMoving||(t.find(".xgplayer-drag").style.height=l||h===0?"4px":"".concat(h*100,"%"),t.config.showValueLabel&&t.updateVolumeValue()),t.animate(l,h)}}),t}return w(r,[{key:"registerIcons",value:function(){return{volumeSmall:{icon:vr,class:"xg-volume-small"},volumeLarge:{icon:pr,class:"xg-volume"},volumeMuted:{icon:mr,class:"xg-volume-mute"}}}},{key:"afterCreate",value:function(){var e=this;if(this._timerId=null,this._d={isStart:!1,isMoving:!1,isActive:!1},!this.config.disable){this.initIcons();var i=this.playerConfig,n=i.commonStyle,s=i.volume;n.volumeColor&&(this.find(".xgplayer-drag").style.backgroundColor=n.volumeColor),this.changeMutedHandler=this.hook("mutedChange",function(u){e.changeMuted(u)},{pre:function(l){l.preventDefault(),l.stopPropagation()}}),this._onMouseenterHandler=this.hook("mouseenter",this.onMouseenter),this._onMouseleaveHandler=this.hook("mouseleave",this.onMouseleave),A.device!=="mobile"&&this.playerConfig.isMobileSimulateMode!=="mobile"&&(this.bind("mouseenter",this._onMouseenterHandler),this.bind(["blur","mouseleave"],this._onMouseleaveHandler),this.bind(".xgplayer-slider","mousedown",this.onBarMousedown),this.bind(".xgplayer-slider","mousemove",this.onBarMouseMove),this.bind(".xgplayer-slider","mouseup",this.onBarMouseUp)),this.bind(".xgplayer-icon",["touchend","click"],this.changeMutedHandler),this.on(oi,this.onVolumeChange),this.once(ce,this.onVolumeChange),c.typeOf(s)!=="Number"&&(this.player.volume=this.config.default),this.onVolumeChange()}}},{key:"updateVolumePos",value:function(e,i){var n=this.player,s=this.find(".xgplayer-drag"),u=this.find(".xgplayer-bar");if(!(!u||!s)){var l=parseInt(e/u.getBoundingClientRect().height*1e3,10);s.style.height="".concat(e,"px");var h=Math.max(Math.min(l/1e3,1),0),f={volume:{from:n.volume,to:h}};n.muted&&(f.muted={from:!0,to:!1}),this.emitUserAction(i,"change_volume",{muted:n.muted,volume:n.volume,props:f}),n.volume=Math.max(Math.min(l/1e3,1),0),n.muted&&(n.muted=!1),this.config.showValueLabel&&this.updateVolumeValue()}}},{key:"updateVolumeValue",value:function(){var e=this.player,i=e.volume,n=e.muted,s=this.find(".xgplayer-value-label"),u=Math.max(Math.min(i,1),0);s.innerText=n?0:Math.ceil(u*100)}},{key:"focus",value:function(){var e=this.player;e.focus({autoHide:!1}),this._timerId&&(c.clearTimeout(this,this._timerId),this._timerId=null),c.addClass(this.root,"slide-show")}},{key:"unFocus",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=arguments.length>2?arguments[2]:void 0,u=this._d,l=this.player;u.isActive||(this._timerId&&(c.clearTimeout(this,this._timerId),this._timerId=null),this._timerId=c.setTimeout(this,function(){u.isActive||(n?l.blur():l.focus(),c.removeClass(e.root,"slide-show"),u.isStart&&e.onBarMouseUp(s)),e._timerId=null},i))}},{key:"changeMuted",value:function(e){e&&e.stopPropagation();var i=this.player,n=this._d;n.isStart&&this.onBarMouseUp(e),this.emitUserAction(e,"change_muted",{muted:i.muted,volume:i.volume,props:{muted:{from:i.muted,to:!i.muted}}}),i.volume>0&&(i.muted=!i.muted),i.volume<.01&&(i.volume=this.config.miniVolume)}},{key:"animate",value:function(e,i){e||i===0?this.setAttr("data-state","mute"):i<.5&&this.icons.volumeSmall?this.setAttr("data-state","small"):this.setAttr("data-state","normal")}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.volumeSmall),this.appendChild(".xgplayer-icon",e.volumeLarge),this.appendChild(".xgplayer-icon",e.volumeMuted)}},{key:"destroy",value:function(){this._timerId&&(c.clearTimeout(this,this._timerId),this._timerId=null),this.unbind("mouseenter",this.onMouseenter),this.unbind(["blur","mouseleave"],this.onMouseleave),this.unbind(".xgplayer-slider","mousedown",this.onBarMousedown),this.unbind(".xgplayer-slider","mousemove",this.onBarMouseMove),this.unbind(".xgplayer-slider","mouseup",this.onBarMouseUp),document.removeEventListener("mouseup",this.onBarMouseUp),this.unbind(".xgplayer-icon",A.device==="mobile"?"touchend":"click",this.changeMutedHandler)}},{key:"render",value:function(){if(!this.config.disable){var e=this.config.default||this.player.volume,i=this.config.showValueLabel;return`
    @@ -121,7 +121,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho - `)}}}],[{key:"pluginName",get:function(){return"volume"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:1,disable:!1,showValueLabel:!1,default:.6,miniVolume:.2}}}]),r}(O);function ur(){return new DOMParser().parseFromString(` + `)}}}],[{key:"pluginName",get:function(){return"volume"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:1,disable:!1,showValueLabel:!1,default:.6,miniVolume:.2}}}]),r}(O);function _r(){return new DOMParser().parseFromString(` @@ -132,38 +132,38 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho -`,"image/svg+xml").firstChild}var lr=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),e.rotateDeg=e.config.rotateDeg||0,e}return w(r,[{key:"afterCreate",value:function(){var e=this;this.config.disable||(x(S(r.prototype),"afterCreate",this).call(this),this.appendChild(".xgplayer-icon",this.icons.rotate),this.onBtnClick=this.onBtnClick.bind(this),this.bind(".xgplayer-icon",["click","touchend"],this.onBtnClick),this.on(Ce,function(){e.rotateDeg&&c.setTimeout(e,function(){e.updateRotateDeg(e.rotateDeg,e.config.innerRotate)},100)}),this.rotateDeg&&this.updateRotateDeg(this.rotateDeg,this.config.innerRotate))}},{key:"destroy",value:function(){x(S(r.prototype),"destroy",this).call(this),this.unbind(".xgplayer-icon",["click","touchend"],this.onBtnClick)}},{key:"onBtnClick",value:function(e){e.preventDefault(),e.stopPropagation(),this.emitUserAction(e,"rotate"),this.rotate(this.config.clockwise,this.config.innerRotate,1)}},{key:"updateRotateDeg",value:function(e,i){var n=this.player;e||(e=0);var s=this.player,u=s.root,l=s.innerContainer,h=this.player.media,f=u.offsetWidth,d=l&&i?l.offsetHeight:u.offsetHeight,g="100%",v="100%",_=0,m=0;(e===.75||e===.25)&&(g="".concat(d,"px"),v="".concat(f,"px"),_=-(d-f)/2,m=-(f-d)/2);var k="translate(".concat(_,"px,").concat(m,"px) rotate(").concat(e,"turn)"),T={transformOrigin:"center center",transform:k,webKitTransform:k,height:v,width:g},b=i?h:u,H=i?n.getPlugin("poster"):null;Object.keys(T).map(function(M){b.style[M]=T[M],H&&H.root&&(H.root.style[M]=T[M])})}},{key:"rotate",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=this.player;this.rotateDeg||(this.rotateDeg=0);var u=e?1:-1;this.rotateDeg=(this.rotateDeg+1+u*.25*n)%1,this.updateRotateDeg(this.rotateDeg,i),s.emit(ui,this.rotateDeg*360)}},{key:"registerIcons",value:function(){return{rotate:ur}}},{key:"render",value:function(){if(!this.config.disable)return` +`,"image/svg+xml").firstChild}var Cr=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),e.rotateDeg=e.config.rotateDeg||0,e}return w(r,[{key:"afterCreate",value:function(){var e=this;this.config.disable||(x(S(r.prototype),"afterCreate",this).call(this),this.appendChild(".xgplayer-icon",this.icons.rotate),this.onBtnClick=this.onBtnClick.bind(this),this.bind(".xgplayer-icon",["click","touchend"],this.onBtnClick),this.on(Ce,function(){e.rotateDeg&&c.setTimeout(e,function(){e.updateRotateDeg(e.rotateDeg,e.config.innerRotate)},100)}),this.rotateDeg&&this.updateRotateDeg(this.rotateDeg,this.config.innerRotate))}},{key:"destroy",value:function(){x(S(r.prototype),"destroy",this).call(this),this.unbind(".xgplayer-icon",["click","touchend"],this.onBtnClick)}},{key:"onBtnClick",value:function(e){e.preventDefault(),e.stopPropagation(),this.emitUserAction(e,"rotate"),this.rotate(this.config.clockwise,this.config.innerRotate,1)}},{key:"updateRotateDeg",value:function(e,i){var n=this.player;e||(e=0);var s=this.player,u=s.root,l=s.innerContainer,h=this.player.media,f=u.offsetWidth,d=l&&i?l.offsetHeight:u.offsetHeight,g="100%",v="100%",_=0,m=0;(e===.75||e===.25)&&(g="".concat(d,"px"),v="".concat(f,"px"),_=-(d-f)/2,m=-(f-d)/2);var k="translate(".concat(_,"px,").concat(m,"px) rotate(").concat(e,"turn)"),T={transformOrigin:"center center",transform:k,webKitTransform:k,height:v,width:g},b=i?h:u,H=i?n.getPlugin("poster"):null;Object.keys(T).map(function(M){b.style[M]=T[M],H&&H.root&&(H.root.style[M]=T[M])})}},{key:"rotate",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=this.player;this.rotateDeg||(this.rotateDeg=0);var u=e?1:-1;this.rotateDeg=(this.rotateDeg+1+u*.25*n)%1,this.updateRotateDeg(this.rotateDeg,i),s.emit(di,this.rotateDeg*360)}},{key:"registerIcons",value:function(){return{rotate:_r}}},{key:"render",value:function(){if(!this.config.disable)return`
    `.concat(se(this,"ROTATE_TIPS",this.playerConfig.isHideTips),` - `)}}],[{key:"pluginName",get:function(){return"rotate"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:6,innerRotate:!0,clockwise:!1,rotateDeg:0,disable:!1}}}]),r}(ge);function cr(){return new DOMParser().parseFromString(` + `)}}],[{key:"pluginName",get:function(){return"rotate"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:6,innerRotate:!0,clockwise:!1,rotateDeg:0,disable:!1}}}]),r}(ge);function kr(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}function hr(){return new DOMParser().parseFromString(` +`,"image/svg+xml").firstChild}function br(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}var me={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"},fr=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n +`,"image/svg+xml").firstChild}var me={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"},Tr=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n
    `.concat(se(this,"PIP",this.playerConfig.isHideTips),` - `)}}],[{key:"pluginName",get:function(){return"pip"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:6,showIcon:!1}}},{key:"checkWebkitSetPresentationMode",value:function(e){return typeof e.webkitSetPresentationMode=="function"}}]),r}(ge);function dr(){return new DOMParser().parseFromString(` + `)}}],[{key:"pluginName",get:function(){return"pip"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:6,showIcon:!1}}},{key:"checkWebkitSetPresentationMode",value:function(e){return typeof e.webkitSetPresentationMode=="function"}}]),r}(ge);function Er(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}var gr=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),y(p(e),"playNext",function(i){var n=p(e),s=n.player;i.preventDefault(),i.stopPropagation(),e.idx+1
    `.concat(se(this,"PLAYNEXT_TIPS",this.playerConfig.isHideTips),` - `)}}],[{key:"pluginName",get:function(){return"playNext"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_LEFT,index:1,url:null,urlList:[]}}}]),r}(O),_i={exports:{}};(function(o,a){(function(r,t){o.exports=t()})(bi,function(){return function r(t,e,i){var n=window,s="application/octet-stream",u=i||s,l=t,h=!e&&!i&&l,f=document.createElement("a"),d=function(N){return String(N)},g=n.Blob||n.MozBlob||n.WebKitBlob||d,v=e||"download",_,m;if(g=g.call?g.bind(n):Blob,String(this)==="true"&&(l=[l,u],u=l[0],l=l[1]),h&&h.length<2048&&(v=h.split("/").pop().split("?")[0],f.href=h,f.href.indexOf(h)!==-1)){var k=new XMLHttpRequest;return k.open("GET",h,!0),k.responseType="blob",k.onload=function(N){r(N.target.response,v,s)},setTimeout(function(){k.send()},0),k}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(l))if(l.length>1024*1024*1.999&&g!==d)l=M(l),u=l.type||s;else return navigator.msSaveBlob?navigator.msSaveBlob(M(l),v):z(l);else if(/([\x80-\xff])/.test(l)){var T=0,b=new Uint8Array(l.length),H=b.length;for(T;T1024*1024*1.999&&g!==d)l=M(l),u=l.type||s;else return navigator.msSaveBlob?navigator.msSaveBlob(M(l),v):z(l);else if(/([\x80-\xff])/.test(l)){var T=0,b=new Uint8Array(l.length),H=b.length;for(T;T +Use Save As... to download, then click back to return to this page.`)&&(location.href=N),!0;var G=document.createElement("iframe");document.body.appendChild(G),!W&&/^data:/.test(N)&&(N="data:"+N.replace(/^data:([\w\/\-\+]+)/,s)),G.src=N,setTimeout(function(){document.body.removeChild(G)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(_,v);if(n.URL)z(n.URL.createObjectURL(_),!0);else{if(typeof _=="string"||_.constructor===d)try{return z("data:"+u+";base64,"+n.btoa(_))}catch{return z("data:"+u+","+encodeURIComponent(_))}m=new FileReader,m.onload=function(N){z(this.result)},m.readAsDataURL(_)}return!0}})})(Ei);var Sr=Ei.exports;const xr=ct(Sr);function Pr(){return new DOMParser().parseFromString(` @@ -177,36 +177,36 @@ Use Save As... to download, then click back to return to this page.`)&&(location -`,"image/svg+xml").firstChild}var yr=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),y(p(e),"download",function(i){if(!e.isLock){e.emitUserAction(i,"download");var n=e.getAbsoluteURL(e.player.src);vr(n),e.isLock=!0,e.timer=window.setTimeout(function(){e.isLock=!1,window.clearTimeout(e.timer),e.timer=null},300)}}),e.timer=null,e.isLock=!1,e}return w(r,[{key:"afterCreate",value:function(){x(S(r.prototype),"afterCreate",this).call(this),!this.config.disable&&(this.appendChild(".xgplayer-icon",this.icons.download),this.bind(["click","touchend"],this.download))}},{key:"registerIcons",value:function(){return{download:mr}}},{key:"getAbsoluteURL",value:function(e){if(!e.match(/^https?:\/\//)){var i=document.createElement("div");i.innerHTML='x'),e=i.firstChild.href}return e}},{key:"destroy",value:function(){x(S(r.prototype),"destroy",this).call(this),this.unbind(["click","touchend"],this.download),window.clearTimeout(this.timer),this.timer=null}},{key:"render",value:function(){if(!this.config.disable)return` +`,"image/svg+xml").firstChild}var Ir=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),y(p(e),"download",function(i){if(!e.isLock){e.emitUserAction(i,"download");var n=e.getAbsoluteURL(e.player.src);xr(n),e.isLock=!0,e.timer=window.setTimeout(function(){e.isLock=!1,window.clearTimeout(e.timer),e.timer=null},300)}}),e.timer=null,e.isLock=!1,e}return w(r,[{key:"afterCreate",value:function(){x(S(r.prototype),"afterCreate",this).call(this),!this.config.disable&&(this.appendChild(".xgplayer-icon",this.icons.download),this.bind(["click","touchend"],this.download))}},{key:"registerIcons",value:function(){return{download:Pr}}},{key:"getAbsoluteURL",value:function(e){if(!e.match(/^https?:\/\//)){var i=document.createElement("div");i.innerHTML='x'),e=i.firstChild.href}return e}},{key:"destroy",value:function(){x(S(r.prototype),"destroy",this).call(this),this.unbind(["click","touchend"],this.download),window.clearTimeout(this.timer),this.timer=null}},{key:"render",value:function(){if(!this.config.disable)return`
    `.concat(se(this,"DOWNLOAD_TIPS",this.playerConfig.isHideTips),` -
    `)}}],[{key:"pluginName",get:function(){return"download"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:3,disable:!0}}}]),r}(ge),_r=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"beforeCreate",value:function(e){typeof e.player.config.screenShot=="boolean"&&(e.config.disable=!e.player.config.screenShot)}},{key:"afterCreate",value:function(){x(S(r.prototype),"afterCreate",this).call(this),this.appendChild(".xgplayer-icon",this.icons.screenshotIcon);var e=this.config;this.initSize=function(i){e.fitVideo&&(e.width=i.vWidth,e.height=i.vHeight)},this.once(Ce,this.initSize)}},{key:"onPluginsReady",value:function(){this.show(),this.onClickBtn=this.onClickBtn.bind(this),this.bind(["click","touchend"],this.onClickBtn)}},{key:"saveScreenShot",value:function(e,i){var n=document.createElement("a");n.href=e,n.download=i;var s=document.createEvent("MouseEvents");s.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}},{key:"createCanvas",value:function(e,i){var n=document.createElement("canvas"),s=n.getContext("2d");this.canvasCtx=s,this.canvas=n,n.width=e||this.config.width,n.height=i||this.config.height,s.imageSmoothingEnabled=!0,s.imageSmoothingEnabled&&(s.imageSmoothingQuality="high")}},{key:"onClickBtn",value:function(e){var i=this;e.preventDefault(),e.stopPropagation(),this.emitUserAction(e,"shot"),this.shot().then(function(n){i.emit(li,n),i.saveScreenShot(n,i.config.name+i.config.format)})}},{key:"shot",value:function(e,i){var n=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{quality:.92,type:"image/png"},u=this.config,l=this.player,h=s.quality||u.quality,f=s.type||u.type;return new Promise(function(d,g){var v=null,_;if(l.media.canvas)v=l.media.canvas;else{n.canvas?(n.canvas.width=e||u.width,n.canvas.height=i||u.height):n.createCanvas(e,i),v=n.canvas,_=n.canvasCtx;var m=l.media.videoWidth/l.media.videoHeight,k=v.width/v.height,T=0,b=0,H=l.media.videoWidth,M=l.media.videoHeight,z,N,W,V;m>k?(W=v.width,V=v.width/m,z=0,N=Math.round((v.height-V)/2)):m===k?(W=v.width,V=v.height,z=0,N=0):m`)}}],[{key:"pluginName",get:function(){return"download"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:3,disable:!0}}}]),r}(ge),Ar=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"beforeCreate",value:function(e){typeof e.player.config.screenShot=="boolean"&&(e.config.disable=!e.player.config.screenShot)}},{key:"afterCreate",value:function(){x(S(r.prototype),"afterCreate",this).call(this),this.appendChild(".xgplayer-icon",this.icons.screenshotIcon);var e=this.config;this.initSize=function(i){e.fitVideo&&(e.width=i.vWidth,e.height=i.vHeight)},this.once(Ce,this.initSize)}},{key:"onPluginsReady",value:function(){this.show(),this.onClickBtn=this.onClickBtn.bind(this),this.bind(["click","touchend"],this.onClickBtn)}},{key:"saveScreenShot",value:function(e,i){var n=document.createElement("a");n.href=e,n.download=i;var s=document.createEvent("MouseEvents");s.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}},{key:"createCanvas",value:function(e,i){var n=document.createElement("canvas"),s=n.getContext("2d");this.canvasCtx=s,this.canvas=n,n.width=e||this.config.width,n.height=i||this.config.height,s.imageSmoothingEnabled=!0,s.imageSmoothingEnabled&&(s.imageSmoothingQuality="high")}},{key:"onClickBtn",value:function(e){var i=this;e.preventDefault(),e.stopPropagation(),this.emitUserAction(e,"shot"),this.shot().then(function(n){i.emit(gi,n),i.saveScreenShot(n,i.config.name+i.config.format)})}},{key:"shot",value:function(e,i){var n=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{quality:.92,type:"image/png"},u=this.config,l=this.player,h=s.quality||u.quality,f=s.type||u.type;return new Promise(function(d,g){var v=null,_;if(l.media.canvas)v=l.media.canvas;else{n.canvas?(n.canvas.width=e||u.width,n.canvas.height=i||u.height):n.createCanvas(e,i),v=n.canvas,_=n.canvasCtx;var m=l.media.videoWidth/l.media.videoHeight,k=v.width/v.height,T=0,b=0,H=l.media.videoWidth,M=l.media.videoHeight,z,N,W,G;m>k?(W=v.width,G=v.width/m,z=0,N=Math.round((v.height-G)/2)):m===k?(W=v.width,G=v.height,z=0,N=0):m
    `).concat(this.icons.screenshotIcon?"":'').concat(this.i18n[i],""),`
    -
    `)}}}],[{key:"pluginName",get:function(){return"screenShot"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:5,quality:.92,type:"image/png",format:".png",width:600,height:337,fitVideo:!0,disable:!1,name:"screenshot"}}}]),r}(ge),Cr=function(){function o(a){E(this,o),this.config=a.config,this.parent=a.root,this.root=c.createDom("ul","",{},"xg-options-list ".concat(this.config.className)),a.root.appendChild(this.root),this.onItemClick=this.onItemClick.bind(this),this.renderItemList();var r=A.device==="mobile"?"touchend":"click";this._delegates=O.delegate.call(this,this.root,"li",r,this.onItemClick)}return w(o,[{key:"renderItemList",value:function(r){var t=this,e=this.config,i=this.root;r?e.data=r:r=e.data,e.style&&Object.keys(e.style).map(function(n){i.style[n]=e[n]}),r.length>0&&(this.attrKeys=Object.keys(r[0])),this.root.innerHTML="",r.map(function(n,s){var u=n.selected?"option-item selected":"option-item";n["data-index"]=s,t.root.appendChild(c.createDom("li","".concat(n.showText,""),n,u))})}},{key:"onItemClick",value:function(r){r.delegateTarget||(r.delegateTarget=r.target);var t=r.delegateTarget;if(t&&c.hasClass(t,"selected"))return!1;var e=typeof this.config.onItemClick=="function"?this.config.onItemClick:null,i=this.root.querySelector(".selected");c.addClass(t,"selected"),i&&c.removeClass(i,"selected"),e(r,{from:i?this.getAttrObj(i,this.attrKeys):null,to:this.getAttrObj(t,this.attrKeys)})}},{key:"getAttrObj",value:function(r,t){if(!r||!t)return{};var e={};t.map(function(n){e[n]=r.getAttribute(n)});var i=r.getAttribute("data-index");return i&&(e.index=Number(i)),e}},{key:"show",value:function(){c.removeClass(this.root,"hide"),c.addClass(this.root,"active")}},{key:"hide",value:function(){c.removeClass(this.root,"active"),c.addClass(this.root,"hide")}},{key:"destroy",value:function(){this._delegates&&(this._delegates.map(function(r){r.destroy&&r.destroy()}),this._delegates=null),this.root.innerHTML=null,this.parent.removeChild(this.root),this.root=null}}]),o}(),Te={RIGHT_SIDE:"rightSide",MIDDLE:"middle"},Re=A.device==="mobile",Ge=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),y(p(e),"onEnter",function(i){i.preventDefault(),i.stopPropagation(),e.emit("icon_mouseenter",{pluginName:e.pluginName}),e.toggle(!0)}),y(p(e),"onLeave",function(i){i.preventDefault(),i.stopPropagation(),e.emit("icon_mouseleave",{pluginName:e.pluginName}),e.config.listType!==Te.RIGHT_SIDE&&e.isActive&&e.toggle(!1)}),y(p(e),"onListEnter",function(i){console.log("onListEnter"),e.enterType=2}),y(p(e),"onListLeave",function(i){console.log("onListLeave",i.target),e.enterType=0,e.isActive&&e.toggle(!1)}),e.isIcons=!1,e.isActive=!1,e.curValue=null,e.curIndex=0,e}return w(r,[{key:"updateLang",value:function(e){this.renderItemList(this.config.list,this.curIndex)}},{key:"afterCreate",value:function(){var e=this,i=this.config;this.initIcons(),Re&&i.listType!==Te.MIDDLE&&(i.listType="rightSide"),i.hidePortrait&&c.addClass(this.root,"portrait"),this.once(Z,function(){i.list&&i.list.length>0&&(e.renderItemList(i.list),e.show())}),Re&&this.on(gt,function(){e.isActive&&(e.optionsList&&e.optionsList.hide(),e.isActive=!1)}),this.activeEvent=Re?"touchend":"mouseenter",this.bind(this.activeEvent,this.onEnter),this.bind("mouseleave",this.onLeave),this.isIcons&&this.bind("click",this.onIconClick)}},{key:"initIcons",value:function(){var e=this,i=this.icons,n=Object.keys(i),s=!1;n.length>0&&(n.forEach(function(u){e.appendChild(".xgplayer-icon",i[u]),!s&&(s=i[u])}),this.isIcons=s),!s&&(this.appendChild(".xgplayer-icon",c.createDom("span","",{},"icon-text")),c.addClass(this.find(".xgplayer-icon"),"btn-text"))}},{key:"show",value:function(){!this.config.list||this.config.list.length<2||c.addClass(this.root,"show")}},{key:"hide",value:function(){c.removeClass(this.root,"show")}},{key:"getTextByLang",value:function(e,i,n){if(e===void 0)return"";var s=this.config.list;!n&&(n=this.player.lang),i=!i||c.isUndefined(e[i])?"text":i,typeof e=="number"&&(e=s[e]);try{return j(e[i])==="object"?e[i][n]||e[i].zh:e[i]}catch(u){return console.warn(u),""}}},{key:"toggle",value:function(e){if(e!==this.isActive){var i=this.player.controls,n=this.config.listType;e?(n==="rightSide"?i.blur():i.focus(),this.optionsList&&this.optionsList.show()):(n==="rightSide"?i.focus():i.focusAwhile(),this.optionsList&&this.optionsList.hide()),this.isActive=e}}},{key:"onItemClick",value:function(e,i){e.preventDefault(),e.stopPropagation();var n=this.config,s=n.listType,u=n.list;this.curIndex=i.to.index,this.curItem=u[this.curIndex],this.changeCurrentText();var l=this.config.isItemClickHide;(l||Re||s===Te.RIGHT_SIDE)&&this.toggle(!1)}},{key:"onIconClick",value:function(e){}},{key:"changeCurrentText",value:function(){if(!this.isIcons){var e=this.config.list,i=this.curIndex + `)}}}],[{key:"pluginName",get:function(){return"screenShot"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:5,quality:.92,type:"image/png",format:".png",width:600,height:337,fitVideo:!0,disable:!1,name:"screenshot"}}}]),r}(ge),Lr=function(){function o(a){E(this,o),this.config=a.config,this.parent=a.root,this.root=c.createDom("ul","",{},"xg-options-list ".concat(this.config.className)),a.root.appendChild(this.root),this.onItemClick=this.onItemClick.bind(this),this.renderItemList();var r=A.device==="mobile"?"touchend":"click";this._delegates=O.delegate.call(this,this.root,"li",r,this.onItemClick)}return w(o,[{key:"renderItemList",value:function(r){var t=this,e=this.config,i=this.root;r?e.data=r:r=e.data,e.style&&Object.keys(e.style).map(function(n){i.style[n]=e[n]}),r.length>0&&(this.attrKeys=Object.keys(r[0])),this.root.innerHTML="",r.map(function(n,s){var u=n.selected?"option-item selected":"option-item";n["data-index"]=s,t.root.appendChild(c.createDom("li","".concat(n.showText,""),n,u))})}},{key:"onItemClick",value:function(r){r.delegateTarget||(r.delegateTarget=r.target);var t=r.delegateTarget;if(t&&c.hasClass(t,"selected"))return!1;var e=typeof this.config.onItemClick=="function"?this.config.onItemClick:null,i=this.root.querySelector(".selected");c.addClass(t,"selected"),i&&c.removeClass(i,"selected"),e(r,{from:i?this.getAttrObj(i,this.attrKeys):null,to:this.getAttrObj(t,this.attrKeys)})}},{key:"getAttrObj",value:function(r,t){if(!r||!t)return{};var e={};t.map(function(n){e[n]=r.getAttribute(n)});var i=r.getAttribute("data-index");return i&&(e.index=Number(i)),e}},{key:"show",value:function(){c.removeClass(this.root,"hide"),c.addClass(this.root,"active")}},{key:"hide",value:function(){c.removeClass(this.root,"active"),c.addClass(this.root,"hide")}},{key:"destroy",value:function(){this._delegates&&(this._delegates.map(function(r){r.destroy&&r.destroy()}),this._delegates=null),this.root.innerHTML=null,this.parent.removeChild(this.root),this.root=null}}]),o}(),Te={RIGHT_SIDE:"rightSide",MIDDLE:"middle"},Re=A.device==="mobile",Ve=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),y(p(e),"onEnter",function(i){i.preventDefault(),i.stopPropagation(),e.emit("icon_mouseenter",{pluginName:e.pluginName}),e.toggle(!0)}),y(p(e),"onLeave",function(i){i.preventDefault(),i.stopPropagation(),e.emit("icon_mouseleave",{pluginName:e.pluginName}),e.config.listType!==Te.RIGHT_SIDE&&e.isActive&&e.toggle(!1)}),y(p(e),"onListEnter",function(i){console.log("onListEnter"),e.enterType=2}),y(p(e),"onListLeave",function(i){console.log("onListLeave",i.target),e.enterType=0,e.isActive&&e.toggle(!1)}),e.isIcons=!1,e.isActive=!1,e.curValue=null,e.curIndex=0,e}return w(r,[{key:"updateLang",value:function(e){this.renderItemList(this.config.list,this.curIndex)}},{key:"afterCreate",value:function(){var e=this,i=this.config;this.initIcons(),Re&&i.listType!==Te.MIDDLE&&(i.listType="rightSide"),i.hidePortrait&&c.addClass(this.root,"portrait"),this.once(Z,function(){i.list&&i.list.length>0&&(e.renderItemList(i.list),e.show())}),Re&&this.on(vt,function(){e.isActive&&(e.optionsList&&e.optionsList.hide(),e.isActive=!1)}),this.activeEvent=Re?"touchend":"mouseenter",this.bind(this.activeEvent,this.onEnter),this.bind("mouseleave",this.onLeave),this.isIcons&&this.bind("click",this.onIconClick)}},{key:"initIcons",value:function(){var e=this,i=this.icons,n=Object.keys(i),s=!1;n.length>0&&(n.forEach(function(u){e.appendChild(".xgplayer-icon",i[u]),!s&&(s=i[u])}),this.isIcons=s),!s&&(this.appendChild(".xgplayer-icon",c.createDom("span","",{},"icon-text")),c.addClass(this.find(".xgplayer-icon"),"btn-text"))}},{key:"show",value:function(){!this.config.list||this.config.list.length<2||c.addClass(this.root,"show")}},{key:"hide",value:function(){c.removeClass(this.root,"show")}},{key:"getTextByLang",value:function(e,i,n){if(e===void 0)return"";var s=this.config.list;!n&&(n=this.player.lang),i=!i||c.isUndefined(e[i])?"text":i,typeof e=="number"&&(e=s[e]);try{return j(e[i])==="object"?e[i][n]||e[i].zh:e[i]}catch(u){return console.warn(u),""}}},{key:"toggle",value:function(e){if(e!==this.isActive){var i=this.player.controls,n=this.config.listType;e?(n==="rightSide"?i.blur():i.focus(),this.optionsList&&this.optionsList.show()):(n==="rightSide"?i.focus():i.focusAwhile(),this.optionsList&&this.optionsList.hide()),this.isActive=e}}},{key:"onItemClick",value:function(e,i){e.preventDefault(),e.stopPropagation();var n=this.config,s=n.listType,u=n.list;this.curIndex=i.to.index,this.curItem=u[this.curIndex],this.changeCurrentText();var l=this.config.isItemClickHide;(l||Re||s===Te.RIGHT_SIDE)&&this.toggle(!1)}},{key:"onIconClick",value:function(e){}},{key:"changeCurrentText",value:function(){if(!this.isIcons){var e=this.config.list,i=this.curIndex
    - `)}}],[{key:"pluginName",get:function(){return"optionsIcon"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:100,list:[],listType:"middle",listStyle:{},hidePortrait:!0,isShowIcon:!1,isItemClickHide:!0}}}]),r}(O),kr=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),e.curTime=0,e.isPaused=!0,e}return w(r,[{key:"beforeCreate",value:function(e){var i=e.config.list;Array.isArray(i)&&i.length>0&&(e.config.list=i.map(function(n){return!n.text&&n.name&&(n.text=n.name),n.text||(n.text=n.definition),n}))}},{key:"afterCreate",value:function(){var e=this;x(S(r.prototype),"afterCreate",this).call(this),this.on("resourceReady",function(i){e.changeDefinitionList(i)}),this.on(_t,function(i){e.renderItemList(e.config.list,i.to)}),this.player.definitionList.length<2&&this.hide()}},{key:"show",value:function(){!this.config.list||this.config.list.length<2||c.addClass(this.root,"show")}},{key:"initDefinition",value:function(){var e=this.config,i=e.list,n=e.defaultDefinition;if(i.length>0){var s=null;i.map(function(u){u.definition===n&&(s=u)}),s||(s=i[0]),this.changeDefinition(s)}}},{key:"renderItemList",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.config.list||[],n=arguments.length>1?arguments[1]:void 0,s=n&&n.definition?n.definition:this.config.defaultDefinition;n&&i.forEach(function(h){h.selected=!1});var u=0,l=i.map(function(h,f){var d=B(B({},h),{},{showText:e.getTextByLang(h)||h.definition,selected:!1});return(h.selected||h.definition&&h.definition==s)&&(d.selected=!0,u=f),d});x(S(r.prototype),"renderItemList",this).call(this,l,u)}},{key:"changeDefinitionList",value:function(e){Array.isArray(e)&&(this.config.list=e.map(function(i){return!i.text&&i.name&&(i.text=i.name),i.text||(i.text=i.definition),i}),this.renderItemList(),this.config.list.length<2?this.hide():this.show())}},{key:"changeDefinition",value:function(e,i){this.player.changeDefinition(e,i)}},{key:"onItemClick",value:function(e,i){var n=this.player.definitionList;x(S(r.prototype),"onItemClick",this).apply(this,arguments),this.emitUserAction(e,"change_definition",{from:i.from,to:i.to});for(var s=0;s + `)}}],[{key:"pluginName",get:function(){return"optionsIcon"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:100,list:[],listType:"middle",listStyle:{},hidePortrait:!0,isShowIcon:!1,isItemClickHide:!0}}}]),r}(O),Dr=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),e.curTime=0,e.isPaused=!0,e}return w(r,[{key:"beforeCreate",value:function(e){var i=e.config.list;Array.isArray(i)&&i.length>0&&(e.config.list=i.map(function(n){return!n.text&&n.name&&(n.text=n.name),n.text||(n.text=n.definition),n}))}},{key:"afterCreate",value:function(){var e=this;x(S(r.prototype),"afterCreate",this).call(this),this.on("resourceReady",function(i){e.changeDefinitionList(i)}),this.on(kt,function(i){e.renderItemList(e.config.list,i.to)}),this.player.definitionList.length<2&&this.hide()}},{key:"show",value:function(){!this.config.list||this.config.list.length<2||c.addClass(this.root,"show")}},{key:"initDefinition",value:function(){var e=this.config,i=e.list,n=e.defaultDefinition;if(i.length>0){var s=null;i.map(function(u){u.definition===n&&(s=u)}),s||(s=i[0]),this.changeDefinition(s)}}},{key:"renderItemList",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.config.list||[],n=arguments.length>1?arguments[1]:void 0,s=n&&n.definition?n.definition:this.config.defaultDefinition;n&&i.forEach(function(h){h.selected=!1});var u=0,l=i.map(function(h,f){var d=B(B({},h),{},{showText:e.getTextByLang(h)||h.definition,selected:!1});return(h.selected||h.definition&&h.definition==s)&&(d.selected=!0,u=f),d});x(S(r.prototype),"renderItemList",this).call(this,l,u)}},{key:"changeDefinitionList",value:function(e){Array.isArray(e)&&(this.config.list=e.map(function(i){return!i.text&&i.name&&(i.text=i.name),i.text||(i.text=i.definition),i}),this.renderItemList(),this.config.list.length<2?this.hide():this.show())}},{key:"changeDefinition",value:function(e,i){this.player.changeDefinition(e,i)}},{key:"onItemClick",value:function(e,i){var n=this.player.definitionList;x(S(r.prototype),"onItemClick",this).apply(this,arguments),this.emitUserAction(e,"change_definition",{from:i.from,to:i.to});for(var s=0;s -`,"image/svg+xml").firstChild}function Er(){return new DOMParser().parseFromString(` +`,"image/svg+xml").firstChild}function Mr(){return new DOMParser().parseFromString(` -`,"image/svg+xml").firstChild}var $t=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"beforeCreate",value:function(e){typeof e.player.config.cssFullscreen=="boolean"&&(e.config.disable=!e.player.config.cssFullscreen)}},{key:"afterCreate",value:function(){var e=this;x(S(r.prototype),"afterCreate",this).call(this),!this.config.disable&&(this.config.target&&(this.playerConfig.fullscreenTarget=this.config.target),this.initIcons(),this.on(Me,function(i){e.animate(i)}),this.btnClick=this.btnClick.bind(this),this.handleCssFullscreen=this.hook("cssFullscreen_change",this.btnClick,{pre:function(n){n.preventDefault(),n.stopPropagation()}}),this.bind(["click","touchend"],this.handleCssFullscreen))}},{key:"initIcons",value:function(){var e=this.icons,i=this.find(".xgplayer-icon");i.appendChild(e.cssFullscreen),i.appendChild(e.exitCssFullscreen)}},{key:"btnClick",value:function(e){e.preventDefault(),e.stopPropagation();var i=this.player.isCssfullScreen;this.emitUserAction(e,"switch_cssfullscreen",{cssfullscreen:i}),i?this.player.exitCssFullscreen():this.player.getCssFullscreen()}},{key:"animate",value:function(e){this.root&&(e?this.setAttr("data-state","full"):this.setAttr("data-state","normal"),this.switchTips(e))}},{key:"switchTips",value:function(e){var i=this.i18nKeys,n=this.find(".xg-tips");n&&this.changeLangTextKey(n,e?i.EXITCSSFULLSCREEN_TIPS:i.CSSFULLSCREEN_TIPS)}},{key:"registerIcons",value:function(){return{cssFullscreen:{icon:Tr,class:"xg-get-cssfull"},exitCssFullscreen:{icon:Er,class:"xg-exit-cssfull"}}}},{key:"destroy",value:function(){x(S(r.prototype),"destroy",this).call(this),this.unbind(["click","touchend"],this.btnClick)}},{key:"render",value:function(){if(!this.config.disable)return` +`,"image/svg+xml").firstChild}var ei=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"beforeCreate",value:function(e){typeof e.player.config.cssFullscreen=="boolean"&&(e.config.disable=!e.player.config.cssFullscreen)}},{key:"afterCreate",value:function(){var e=this;x(S(r.prototype),"afterCreate",this).call(this),!this.config.disable&&(this.config.target&&(this.playerConfig.fullscreenTarget=this.config.target),this.initIcons(),this.on(Me,function(i){e.animate(i)}),this.btnClick=this.btnClick.bind(this),this.handleCssFullscreen=this.hook("cssFullscreen_change",this.btnClick,{pre:function(n){n.preventDefault(),n.stopPropagation()}}),this.bind(["click","touchend"],this.handleCssFullscreen))}},{key:"initIcons",value:function(){var e=this.icons,i=this.find(".xgplayer-icon");i.appendChild(e.cssFullscreen),i.appendChild(e.exitCssFullscreen)}},{key:"btnClick",value:function(e){e.preventDefault(),e.stopPropagation();var i=this.player.isCssfullScreen;this.emitUserAction(e,"switch_cssfullscreen",{cssfullscreen:i}),i?this.player.exitCssFullscreen():this.player.getCssFullscreen()}},{key:"animate",value:function(e){this.root&&(e?this.setAttr("data-state","full"):this.setAttr("data-state","normal"),this.switchTips(e))}},{key:"switchTips",value:function(e){var i=this.i18nKeys,n=this.find(".xg-tips");n&&this.changeLangTextKey(n,e?i.EXITCSSFULLSCREEN_TIPS:i.CSSFULLSCREEN_TIPS)}},{key:"registerIcons",value:function(){return{cssFullscreen:{icon:Or,class:"xg-get-cssfull"},exitCssFullscreen:{icon:Mr,class:"xg-exit-cssfull"}}}},{key:"destroy",value:function(){x(S(r.prototype),"destroy",this).call(this),this.unbind(["click","touchend"],this.btnClick)}},{key:"render",value:function(){if(!this.config.disable)return`
    `.concat(se(this,"CSSFULLSCREEN_TIPS",this.playerConfig.isHideTips),` - `)}}],[{key:"pluginName",get:function(){return"cssFullscreen"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:1,disable:!1,target:null}}}]),r}(ge),wr=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"afterCreate",value:function(){var e=this;this.clickHandler=this.hook("errorRetry",this.errorRetry,{pre:function(n){n.preventDefault(),n.stopPropagation()}}),this.onError=this.hook("showError",this.handleError),this.bind(".xgplayer-error-refresh","click",this.clickHandler),this.on(Ie,function(i){e.onError(i)})}},{key:"errorRetry",value:function(e){this.emitUserAction(e,"error_retry",{}),this.player.retry()}},{key:"handleError",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=this.player,n=e.errorType,s=i.errorNote?this.i18n[i.errorNote]:"";if(!s)switch(n){case"decoder":s=this.i18n.MEDIA_ERR_DECODE;break;case"network":s=this.i18n.MEDIA_ERR_NETWORK;break;default:s=this.i18n.MEDIA_ERR_SRC_NOT_SUPPORTED}this.find(".xgplayer-error-text").innerHTML=s,this.find(".xgplayer-error-tips").innerHTML="".concat(this.i18n.REFRESH_TIPS,'').concat(this.i18n.REFRESH,"")}},{key:"destroy",value:function(){this.unbind(".xgplayer-error-refresh","click",this.clickHandler)}},{key:"render",value:function(){return` + `)}}],[{key:"pluginName",get:function(){return"cssFullscreen"}},{key:"defaultConfig",get:function(){return{position:F.CONTROLS_RIGHT,index:1,disable:!1,target:null}}}]),r}(ge),Nr=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"afterCreate",value:function(){var e=this;this.clickHandler=this.hook("errorRetry",this.errorRetry,{pre:function(n){n.preventDefault(),n.stopPropagation()}}),this.onError=this.hook("showError",this.handleError),this.bind(".xgplayer-error-refresh","click",this.clickHandler),this.on(Ie,function(i){e.onError(i)})}},{key:"errorRetry",value:function(e){this.emitUserAction(e,"error_retry",{}),this.player.retry()}},{key:"handleError",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=this.player,n=e.errorType,s=i.errorNote?this.i18n[i.errorNote]:"";if(!s)switch(n){case"decoder":s=this.i18n.MEDIA_ERR_DECODE;break;case"network":s=this.i18n.MEDIA_ERR_NETWORK;break;default:s=this.i18n.MEDIA_ERR_SRC_NOT_SUPPORTED}this.find(".xgplayer-error-text").innerHTML=s,this.find(".xgplayer-error-tips").innerHTML="".concat(this.i18n.REFRESH_TIPS,'').concat(this.i18n.REFRESH,"")}},{key:"destroy",value:function(){this.unbind(".xgplayer-error-refresh","click",this.clickHandler)}},{key:"render",value:function(){return`
    -
    `}}],[{key:"pluginName",get:function(){return"error"}}]),r}(O),Sr=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"afterCreate",value:function(){var e=this;this.intervalId=0,this.customConfig=null,this.bind(".highlight",["click","touchend"],function(i){(e.config.onClick||e.customOnClick)&&(i.preventDefault(),i.stopPropagation(),e.customOnClick?e.customOnClick(i):e.config.onClick(i))}),this.player.showPrompt=function(){e.show.apply(e,arguments)},this.player.hidePrompt=function(){e.hide()}}},{key:"setStyle",value:function(e){var i=this;Object.keys(e).map(function(n){i.root.style[n]=e[n]})}},{key:"show",value:function(e){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};if(e){this.customOnClick=s;var u=this.config.interval;this.intervalId&&(clearTimeout(this.intervalId),this.intervalId=null),c.addClass(this.root,"show"),n.mode==="arrow"&&c.addClass(this.root,"arrow"),typeof e=="string"?this.find(".xgplayer-prompt-detail").innerHTML=e:this.find(".xgplayer-prompt-detail").innerHTML="".concat(e.text||"")+"".concat(e.highlight?''.concat(e.highlight,""):""),n.style&&this.setStyle(n.style);var l=typeof n.autoHide=="boolean"?n.autoHide:this.config.autoHide;if(l){var h=n.interval||u;this.intervalId=setTimeout(function(){i.hide()},h)}}}},{key:"hide",value:function(){c.removeClass(this.root,"show"),c.removeClass(this.root,"arrow"),this.root.removeAttribute("style"),this.customOnClick=null}},{key:"render",value:function(){return' +
    `}}],[{key:"pluginName",get:function(){return"error"}}]),r}(O),Fr=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"afterCreate",value:function(){var e=this;this.intervalId=0,this.customConfig=null,this.bind(".highlight",["click","touchend"],function(i){(e.config.onClick||e.customOnClick)&&(i.preventDefault(),i.stopPropagation(),e.customOnClick?e.customOnClick(i):e.config.onClick(i))}),this.player.showPrompt=function(){e.show.apply(e,arguments)},this.player.hidePrompt=function(){e.hide()}}},{key:"setStyle",value:function(e){var i=this;Object.keys(e).map(function(n){i.root.style[n]=e[n]})}},{key:"show",value:function(e){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};if(e){this.customOnClick=s;var u=this.config.interval;this.intervalId&&(clearTimeout(this.intervalId),this.intervalId=null),c.addClass(this.root,"show"),n.mode==="arrow"&&c.addClass(this.root,"arrow"),typeof e=="string"?this.find(".xgplayer-prompt-detail").innerHTML=e:this.find(".xgplayer-prompt-detail").innerHTML="".concat(e.text||"")+"".concat(e.highlight?''.concat(e.highlight,""):""),n.style&&this.setStyle(n.style);var l=typeof n.autoHide=="boolean"?n.autoHide:this.config.autoHide;if(l){var h=n.interval||u;this.intervalId=setTimeout(function(){i.hide()},h)}}}},{key:"hide",value:function(){c.removeClass(this.root,"show"),c.removeClass(this.root,"arrow"),this.root.removeAttribute("style"),this.customOnClick=null}},{key:"render",value:function(){return' - `)}}],[{key:"pluginName",get:function(){return"prompt"}},{key:"defaultConfig",get:function(){return{interval:3e3,style:{},mode:"arrow",autoHide:!0,detail:{text:"",highlight:""},onClick:function(){}}}}]),r}(O),qt={time:0,text:"",id:1,duration:1,color:"#fff",style:{},width:6,height:6};function Ci(o){Object.keys(qt).map(function(a){o[a]===void 0&&(o[a]=qt[a])})}var Zt={_updateDotDom:function(a,r){if(r){var t=this.calcuPosition(a.time,a.duration),e=a.style||{};e.left="".concat(t.left,"%"),e.width="".concat(t.width,"%"),r.setAttribute("data-text",a.text),r.setAttribute("data-time",a.time),t.isMini?c.addClass(r,"mini"):c.removeClass(r,"mini"),Object.keys(e).map(function(i){r.style[i]=e[i]})}},initDots:function(){var a=this;this._ispots.map(function(r){a.createDot(r,!1)}),this.ispotsInit=!0},createDot:function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=this.player.plugins.progress;if(t&&(r&&(Ci(a),this._ispots.push(a)),!(!this.ispotsInit&&r))){var e=this.calcuPosition(a.time,a.duration),i=a.style||{};i.left="".concat(e.left,"%"),i.width="".concat(e.width,"%");var n="xgspot_".concat(a.id," xgplayer-spot");e.isMini&&(n+=" mini");var s=c.createDom("xg-spot",a.template||"",{"data-text":a.text,"data-time":a.time,"data-id":a.id},n);Object.keys(i).map(function(u){s.style[u]=i[u]}),t.outer&&t.outer.appendChild(s)}},findDot:function(a){if(this.player.plugins.progress){var r=this._ispots.filter(function(t,e){return t.id===a});return r.length>0?r[0]:null}},updateDot:function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=this.player.plugins.progress;if(t){var e=this.findDot(a.id);if(e&&Object.keys(a).map(function(n){e[n]=a[n]}),!!this.ispotsInit){var i=t.find('xg-spot[data-id="'.concat(a.id,'"]'));i&&(this._updateDotDom(a,i),r&&this.showDot(a.id))}}},deleteDot:function(a){var r=this._ispots,t=this.player.plugins.progress;if(t){for(var e=[],i=0;i=0;s--)if(r.splice(e[s],1),this.ispotsInit){var u=t.find('xg-spot[data-id="'.concat(a,'"]'));u&&u.parentElement.removeChild(u)}}},deleteAllDots:function(){var a=this.player.plugins.progress;if(a){if(!this.ispotsInit){this._ispots=[];return}for(var r=a.root.getElementsByTagName("xg-spot"),t=r.length-1;t>=0;t--)a.outer.removeChild(r[t]);this._ispots=[]}},updateAllDots:function(){var a=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=this.player.plugins.progress;if(t){if(!this.ispotsInit){this._ispots=r;return}this._ispots=[];var e=t.root.getElementsByTagName("xg-spot"),i=e.length;if(i>r.length)for(var n=i-1;n>r.length-1;n--)t.outer.removeChild(e[n]);r.forEach(function(s,u){u0&&e.hide();var s=e.player.plugins.progress;s&&s.disableBlur(),e._curDot.addEventListener("mouseleave",e.onDotMouseLeave)}}),e._ispots=[],e.videoPreview=null,e.videothumbnail=null,e.thumbnail=null,e.timeStr="",e._state={now:0,f:!1},e}return w(r,[{key:"beforeCreate",value:function(e){var i=e.player.plugins.progress;i&&(e.root=i.root)}},{key:"afterCreate",value:function(){var e=this;this._curDot=null,this.handlerSpotClick=this.hook("spotClick",function(i,n){n.currentTime&&e.player.seek(n.currentTime)}),this.transformTimeHook=this.hook("transformTime",function(i){e.setTimeContent(c.format(i))}),xr(this),this.on(de,function(){e.show()}),this.config.disable&&this.disable(),this.extTextRoot=this.find(".xg-spot-ext-text")}},{key:"setConfig",value:function(e){var i=this;e&&Object.keys(e).map(function(n){i.config[n]=e[n]})}},{key:"onPluginsReady",value:function(){var e=this.player;e.plugins.progress&&(this.previewLine=this.find(".xg-spot-line"),this.timePoint=this.find(".xgplayer-progress-point"),this.timeText=this.find(".xg-spot-time"),this.tipText=this.find(".spot-inner-text"),this._hasThumnail=!1,this.registerThumbnail(),this.bindEvents())}},{key:"bindEvents",value:function(){var e=this,i=this.player.plugins.progress;if(i&&(Object.keys(ye).map(function(s){e[ye[s]]=e[ye[s]].bind(e),i.addCallBack(s,e[ye[s]])}),A.device!=="mobile")){this.bind(".xg-spot-info","mousemove",this.onMousemove),this.bind(".xg-spot-info","mousedown",this.onMousedown),this.bind(".xg-spot-info","mouseup",this.onMouseup);var n=this.hook("previewClick",function(){});this.handlerPreviewClick=function(s){s.stopPropagation(),n(parseInt(e._state.now*1e3,10)/1e3,s)},this.bind(".xg-spot-content","mouseup",this.handlerPreviewClick)}}},{key:"onProgressMove",value:function(e,i){this.config.disable||!this.player.duration||this.updatePosition(e.offset,e.width,e.currentTime,e.e)}},{key:"onProgressDragStart",value:function(e){this.config.disable||!this.player.duration||(this.isDrag=!0,this.videoPreview&&c.addClass(this.videoPreview,"show"))}},{key:"onProgressDragEnd",value:function(e){this.config.disable||!this.player.duration||(this.isDrag=!1,this.videoPreview&&c.removeClass(this.videoPreview,"show"))}},{key:"onProgressClick",value:function(e,i){this.config.disable||c.hasClass(i.target,"xgplayer-spot")&&(i.stopPropagation(),i.preventDefault(),["time","id","text"].map(function(n){e[n]=i.target.getAttribute("data-".concat(n))}),e.time&&(e.time=Number(e.time)),this.handlerSpotClick(i,e))}},{key:"updateLinePos",value:function(e,i){var n=this.root,s=this.previewLine,u=this.timePoint,l=this.player,h=this.config,f=l.controls.mode,d=f==="flex",g=n.getBoundingClientRect().width;if(g){var v=u.getBoundingClientRect().width;g=this._hasThumnail&&gi-g&&!d?(m=_-(i-g),!this.thumbnail&&(k=_-(i-g)-v/2),_=i-g):(m=0,!this.thumbnail&&(k=-v/2)),m!==void 0&&(s.style.transform="translateX(".concat(m.toFixed(2),"px)")),k!==void 0&&(u.style.transform="translateX(".concat(k.toFixed(2),"px)")),n.style.transform="translateX(".concat(_.toFixed(2),"px) translateZ(0)")}}},{key:"updateTimeText",value:function(e){var i=this.timeText,n=this.timePoint;i.textContent=e,!this.thumbnail&&(n.textContent=e)}},{key:"updatePosition",value:function(e,i,n,s){var u=this.root,l=this.config,h=this._state;if(u){this.updateLinePos(e,i),h.now=n,this.transformTimeHook(n);var f=this.timeStr;s&&s.target&&c.hasClass(s.target,"xgplayer-spot")?(this.showTips(s.target.getAttribute("data-text"),!1,f),this.focusDot(s.target),h.f=!0,l.isFocusDots&&h.f&&(h.now=parseInt(s.target.getAttribute("data-time"),10))):l.defaultText?(h.f=!1,this.showTips(l.defaultText,!0,f)):(h.f=!1,this.hideTips("")),this.updateTimeText(f),this.updateThumbnails(h.now)}}},{key:"setTimeContent",value:function(e){this.timeStr=e}},{key:"updateThumbnails",value:function(e){var i=this.player,n=this.videoPreview,s=this.config,u=i.plugins.thumbnail;if(u&&u.usable){this.thumbnail&&u.update(this.thumbnail,e,s.width,s.height);var l=n&&n.getBoundingClientRect();this.videothumbnail&&u.update(this.videothumbnail,e,l.width,l.height)}}},{key:"registerThumbnail",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(A.device!=="mobile"){var i=this.player,n=this.config,s=i.getPlugin("thumbnail");if(s&&s.setConfig(e),!s||!s.usable||!n.isShowThumbnail){c.addClass(this.root,"short-line no-thumbnail");return}else c.removeClass(this.root,"short-line no-thumbnail");n.mode==="short"&&c.addClass(this.root,"short-line"),this._hasThumnail=!0;var u=this.find(".xg-spot-thumbnail");this.thumbnail=s.createThumbnail(u,"progress-thumbnail"),n.isShowCoverPreview&&(this.videoPreview=c.createDom("xg-video-preview","",{},"xgvideo-preview"),i.root.appendChild(this.videoPreview),this.videothumbnail=s.createThumbnail(this.videoPreview,"xgvideo-thumbnail")),this.updateThumbnails(0)}}},{key:"calcuPosition",value:function(e,i){var n=this.player.plugins.progress,s=this.player,u=n.root.getBoundingClientRect().width,l=s.duration/u*6;return e+i>s.duration&&(i=s.duration-e),e/s.duration*100,i/s.duration,{left:e/s.duration*100,width:i/s.duration*100,isMini:i2&&arguments[2]!==void 0?arguments[2]:"";c.addClass(this.root,"no-timepoint"),e&&(c.addClass(this.find(".xg-spot-content"),"show-text"),i&&this.config.mode==="production"?(c.addClass(this.root,"product"),this.tipText.textContent=e):(c.removeClass(this.root,"product"),this.tipText.textContent=this._hasThumnail?e:"".concat(n," ").concat(e)))}},{key:"hideTips",value:function(){c.removeClass(this.root,"no-timepoint"),this.tipText.textContent="",c.removeClass(this.find(".xg-spot-content"),"show-text"),c.removeClass(this.root,"product")}},{key:"hide",value:function(){c.addClass(this.root,"hide")}},{key:"show",value:function(){c.removeClass(this.root,"hide")}},{key:"enable",value:function(){var e=this.config,i=this.playerConfig;this.config.disable=!1,this.show(),!this.thumbnail&&e.isShowThumbnail&&this.registerThumbnail(i.thumbnail||{})}},{key:"disable",value:function(){this.config.disable=!0,this.hide()}},{key:"destroy",value:function(){var e=this,i=this.player.plugins.progress;i&&Object.keys(ye).map(function(n){i.removeCallBack(n,e[ye[n]])}),this.videothumbnail=null,this.thumbnail=null,this.videoPreview&&this.player.root.removeChild(this.videoPreview),this.unbind(".xg-spot-info","mousemove",this.onMousemove),this.unbind(".xg-spot-info","mousedown",this.onMousedown),this.unbind(".xg-spot-info","mouseup",this.onMouseup),this.unbind(".xg-spot-content","mouseup",this.handlerPreviewClick)}},{key:"render",value:function(){return A.device==="mobile"||this.playerConfig.isMobileSimulateMode==="mobile"?"":'
    + `)}}],[{key:"pluginName",get:function(){return"prompt"}},{key:"defaultConfig",get:function(){return{interval:3e3,style:{},mode:"arrow",autoHide:!0,detail:{text:"",highlight:""},onClick:function(){}}}}]),r}(O),ti={time:0,text:"",id:1,duration:1,color:"#fff",style:{},width:6,height:6};function wi(o){Object.keys(ti).map(function(a){o[a]===void 0&&(o[a]=ti[a])})}var ii={_updateDotDom:function(a,r){if(r){var t=this.calcuPosition(a.time,a.duration),e=a.style||{};e.left="".concat(t.left,"%"),e.width="".concat(t.width,"%"),r.setAttribute("data-text",a.text),r.setAttribute("data-time",a.time),t.isMini?c.addClass(r,"mini"):c.removeClass(r,"mini"),Object.keys(e).map(function(i){r.style[i]=e[i]})}},initDots:function(){var a=this;this._ispots.map(function(r){a.createDot(r,!1)}),this.ispotsInit=!0},createDot:function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=this.player.plugins.progress;if(t&&(r&&(wi(a),this._ispots.push(a)),!(!this.ispotsInit&&r))){var e=this.calcuPosition(a.time,a.duration),i=a.style||{};i.left="".concat(e.left,"%"),i.width="".concat(e.width,"%");var n="xgspot_".concat(a.id," xgplayer-spot");e.isMini&&(n+=" mini");var s=c.createDom("xg-spot",a.template||"",{"data-text":a.text,"data-time":a.time,"data-id":a.id},n);Object.keys(i).map(function(u){s.style[u]=i[u]}),t.outer&&t.outer.appendChild(s)}},findDot:function(a){if(this.player.plugins.progress){var r=this._ispots.filter(function(t,e){return t.id===a});return r.length>0?r[0]:null}},updateDot:function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=this.player.plugins.progress;if(t){var e=this.findDot(a.id);if(e&&Object.keys(a).map(function(n){e[n]=a[n]}),!!this.ispotsInit){var i=t.find('xg-spot[data-id="'.concat(a.id,'"]'));i&&(this._updateDotDom(a,i),r&&this.showDot(a.id))}}},deleteDot:function(a){var r=this._ispots,t=this.player.plugins.progress;if(t){for(var e=[],i=0;i=0;s--)if(r.splice(e[s],1),this.ispotsInit){var u=t.find('xg-spot[data-id="'.concat(a,'"]'));u&&u.parentElement.removeChild(u)}}},deleteAllDots:function(){var a=this.player.plugins.progress;if(a){if(!this.ispotsInit){this._ispots=[];return}for(var r=a.root.getElementsByTagName("xg-spot"),t=r.length-1;t>=0;t--)a.outer.removeChild(r[t]);this._ispots=[]}},updateAllDots:function(){var a=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=this.player.plugins.progress;if(t){if(!this.ispotsInit){this._ispots=r;return}this._ispots=[];var e=t.root.getElementsByTagName("xg-spot"),i=e.length;if(i>r.length)for(var n=i-1;n>r.length-1;n--)t.outer.removeChild(e[n]);r.forEach(function(s,u){u0&&e.hide();var s=e.player.plugins.progress;s&&s.disableBlur(),e._curDot.addEventListener("mouseleave",e.onDotMouseLeave)}}),e._ispots=[],e.videoPreview=null,e.videothumbnail=null,e.thumbnail=null,e.timeStr="",e._state={now:0,f:!1},e}return w(r,[{key:"beforeCreate",value:function(e){var i=e.player.plugins.progress;i&&(e.root=i.root)}},{key:"afterCreate",value:function(){var e=this;this._curDot=null,this.handlerSpotClick=this.hook("spotClick",function(i,n){n.currentTime&&e.player.seek(n.currentTime)}),this.transformTimeHook=this.hook("transformTime",function(i){e.setTimeContent(c.format(i))}),Hr(this),this.on(de,function(){e.show()}),this.config.disable&&this.disable(),this.extTextRoot=this.find(".xg-spot-ext-text")}},{key:"setConfig",value:function(e){var i=this;e&&Object.keys(e).map(function(n){i.config[n]=e[n]})}},{key:"onPluginsReady",value:function(){var e=this.player;e.plugins.progress&&(this.previewLine=this.find(".xg-spot-line"),this.timePoint=this.find(".xgplayer-progress-point"),this.timeText=this.find(".xg-spot-time"),this.tipText=this.find(".spot-inner-text"),this._hasThumnail=!1,this.registerThumbnail(),this.bindEvents())}},{key:"bindEvents",value:function(){var e=this,i=this.player.plugins.progress;if(i&&(Object.keys(ye).map(function(s){e[ye[s]]=e[ye[s]].bind(e),i.addCallBack(s,e[ye[s]])}),A.device!=="mobile")){this.bind(".xg-spot-info","mousemove",this.onMousemove),this.bind(".xg-spot-info","mousedown",this.onMousedown),this.bind(".xg-spot-info","mouseup",this.onMouseup);var n=this.hook("previewClick",function(){});this.handlerPreviewClick=function(s){s.stopPropagation(),n(parseInt(e._state.now*1e3,10)/1e3,s)},this.bind(".xg-spot-content","mouseup",this.handlerPreviewClick)}}},{key:"onProgressMove",value:function(e,i){this.config.disable||!this.player.duration||this.updatePosition(e.offset,e.width,e.currentTime,e.e)}},{key:"onProgressDragStart",value:function(e){this.config.disable||!this.player.duration||(this.isDrag=!0,this.videoPreview&&c.addClass(this.videoPreview,"show"))}},{key:"onProgressDragEnd",value:function(e){this.config.disable||!this.player.duration||(this.isDrag=!1,this.videoPreview&&c.removeClass(this.videoPreview,"show"))}},{key:"onProgressClick",value:function(e,i){this.config.disable||c.hasClass(i.target,"xgplayer-spot")&&(i.stopPropagation(),i.preventDefault(),["time","id","text"].map(function(n){e[n]=i.target.getAttribute("data-".concat(n))}),e.time&&(e.time=Number(e.time)),this.handlerSpotClick(i,e))}},{key:"updateLinePos",value:function(e,i){var n=this.root,s=this.previewLine,u=this.timePoint,l=this.player,h=this.config,f=l.controls.mode,d=f==="flex",g=n.getBoundingClientRect().width;if(g){var v=u.getBoundingClientRect().width;g=this._hasThumnail&&gi-g&&!d?(m=_-(i-g),!this.thumbnail&&(k=_-(i-g)-v/2),_=i-g):(m=0,!this.thumbnail&&(k=-v/2)),m!==void 0&&(s.style.transform="translateX(".concat(m.toFixed(2),"px)")),k!==void 0&&(u.style.transform="translateX(".concat(k.toFixed(2),"px)")),n.style.transform="translateX(".concat(_.toFixed(2),"px) translateZ(0)")}}},{key:"updateTimeText",value:function(e){var i=this.timeText,n=this.timePoint;i.textContent=e,!this.thumbnail&&(n.textContent=e)}},{key:"updatePosition",value:function(e,i,n,s){var u=this.root,l=this.config,h=this._state;if(u){this.updateLinePos(e,i),h.now=n,this.transformTimeHook(n);var f=this.timeStr;s&&s.target&&c.hasClass(s.target,"xgplayer-spot")?(this.showTips(s.target.getAttribute("data-text"),!1,f),this.focusDot(s.target),h.f=!0,l.isFocusDots&&h.f&&(h.now=parseInt(s.target.getAttribute("data-time"),10))):l.defaultText?(h.f=!1,this.showTips(l.defaultText,!0,f)):(h.f=!1,this.hideTips("")),this.updateTimeText(f),this.updateThumbnails(h.now)}}},{key:"setTimeContent",value:function(e){this.timeStr=e}},{key:"updateThumbnails",value:function(e){var i=this.player,n=this.videoPreview,s=this.config,u=i.plugins.thumbnail;if(u&&u.usable){this.thumbnail&&u.update(this.thumbnail,e,s.width,s.height);var l=n&&n.getBoundingClientRect();this.videothumbnail&&u.update(this.videothumbnail,e,l.width,l.height)}}},{key:"registerThumbnail",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(A.device!=="mobile"){var i=this.player,n=this.config,s=i.getPlugin("thumbnail");if(s&&s.setConfig(e),!s||!s.usable||!n.isShowThumbnail){c.addClass(this.root,"short-line no-thumbnail");return}else c.removeClass(this.root,"short-line no-thumbnail");n.mode==="short"&&c.addClass(this.root,"short-line"),this._hasThumnail=!0;var u=this.find(".xg-spot-thumbnail");this.thumbnail=s.createThumbnail(u,"progress-thumbnail"),n.isShowCoverPreview&&(this.videoPreview=c.createDom("xg-video-preview","",{},"xgvideo-preview"),i.root.appendChild(this.videoPreview),this.videothumbnail=s.createThumbnail(this.videoPreview,"xgvideo-thumbnail")),this.updateThumbnails(0)}}},{key:"calcuPosition",value:function(e,i){var n=this.player.plugins.progress,s=this.player,u=n.root.getBoundingClientRect().width,l=s.duration/u*6;return e+i>s.duration&&(i=s.duration-e),e/s.duration*100,i/s.duration,{left:e/s.duration*100,width:i/s.duration*100,isMini:i2&&arguments[2]!==void 0?arguments[2]:"";c.addClass(this.root,"no-timepoint"),e&&(c.addClass(this.find(".xg-spot-content"),"show-text"),i&&this.config.mode==="production"?(c.addClass(this.root,"product"),this.tipText.textContent=e):(c.removeClass(this.root,"product"),this.tipText.textContent=this._hasThumnail?e:"".concat(n," ").concat(e)))}},{key:"hideTips",value:function(){c.removeClass(this.root,"no-timepoint"),this.tipText.textContent="",c.removeClass(this.find(".xg-spot-content"),"show-text"),c.removeClass(this.root,"product")}},{key:"hide",value:function(){c.addClass(this.root,"hide")}},{key:"show",value:function(){c.removeClass(this.root,"hide")}},{key:"enable",value:function(){var e=this.config,i=this.playerConfig;this.config.disable=!1,this.show(),!this.thumbnail&&e.isShowThumbnail&&this.registerThumbnail(i.thumbnail||{})}},{key:"disable",value:function(){this.config.disable=!0,this.hide()}},{key:"destroy",value:function(){var e=this,i=this.player.plugins.progress;i&&Object.keys(ye).map(function(n){i.removeCallBack(n,e[ye[n]])}),this.videothumbnail=null,this.thumbnail=null,this.videoPreview&&this.player.root.removeChild(this.videoPreview),this.unbind(".xg-spot-info","mousemove",this.onMousemove),this.unbind(".xg-spot-info","mousedown",this.onMousedown),this.unbind(".xg-spot-info","mouseup",this.onMouseup),this.unbind(".xg-spot-content","mouseup",this.handlerPreviewClick)}},{key:"render",value:function(){return A.device==="mobile"||this.playerConfig.isMobileSimulateMode==="mobile"?"":'
    @@ -216,8 +216,8 @@ Use Save As... to download, then click back to return to this page.`)&&(location
    00:00
    -
    `)}}],[{key:"pluginName",get:function(){return"progresspreview"}},{key:"defaultConfig",get:function(){return{index:1,miniWidth:6,ispots:[],defaultText:"",isFocusDots:!0,isHideThumbnailHover:!0,isShowThumbnail:!0,isShowCoverPreview:!1,mode:"",disable:!1,width:160,height:90}}}]),r}(O),Ir=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),e.ratio=1,e.interval=null,e._preloadMark={},e}return w(r,[{key:"afterCreate",value:function(){var e=this;this.usable&&this.initThumbnail(),this.on([de],function(){var i=e.config,n=i.pic_num,s=i.interval;e.usable&&(e.interval=s>0?s:Math.round(e.player.duration*1e3/n)/1e3)})}},{key:"setConfig",value:function(e){var i=this;if(e){var n=Object.keys(e);n.length<1||(n.forEach(function(s){i.config[s]=e[s]}),this.usable&&this.initThumbnail())}}},{key:"usable",get:function(){var e=this.config,i=e.urls,n=e.pic_num;return i&&i.length>0&&n>0}},{key:"initThumbnail",value:function(){var e=this.config,i=e.width,n=e.height,s=e.pic_num,u=e.interval;this.ratio=i/n*100,this.interval=u||Math.round(this.player.duration/s),this._preloadMark={}}},{key:"getUrlByIndex",value:function(e){return e>=0&&e0&&u.push(e-1),u.push(e),e>0&&e=0&&l1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,s=this.config,u=s.pic_num,l=s.row,h=s.col,f=s.width,d=s.height;this.interval=Math.round(this.player.duration/u);var g=Math.ceil(e/this.interval);g=g>u?u:g;var v=g0?Math.ceil(_/h)-1:0,k=_>0?_-m*h-1:0,T=0,b=0;if(i&&n){var H=i/n;H2&&arguments[2]!==void 0?arguments[2]:0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",l=this.config,h=l.pic_num,f=l.urls;if(!(h<=0||!f||f.length===0)){var d=this.getPosition(i,n,s);this.preload(d.urlIndex),Object.keys(d.style).map(function(g){e.style[g]=d.style[g]}),Object.keys(u).map(function(g){e.style[g]=u[g]})}}},{key:"changeConfig",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.setConfig(e)}},{key:"createThumbnail",value:function(e,i){var n=c.createDom("xg-thumbnail","",{},"thumbnail ".concat(i));return e&&e.appendChild(n),n}}],[{key:"pluginName",get:function(){return"thumbnail"}},{key:"defaultConfig",get:function(){return{isShow:!1,urls:[],pic_num:0,col:0,row:0,height:90,width:160,scale:1,className:"",hidePortrait:!1}}}]),r}(O),Ar=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"afterCreate",value:function(){}},{key:"update",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{cached:0,played:0},i=arguments.length>1?arguments[1]:void 0;!i||!this.root||(e.cached&&(this.find("xg-mini-progress-cache").style.width="".concat(e.cached/i*100,"%")),e.played&&(this.find("xg-mini-progress-played").style.width="".concat(e.played/i*100,"%")))}},{key:"render",value:function(){if(!(!this.playerConfig.progress||!this.playerConfig.miniprogress))return` +
    `)}}],[{key:"pluginName",get:function(){return"progresspreview"}},{key:"defaultConfig",get:function(){return{index:1,miniWidth:6,ispots:[],defaultText:"",isFocusDots:!0,isHideThumbnailHover:!0,isShowThumbnail:!0,isShowCoverPreview:!1,mode:"",disable:!1,width:160,height:90}}}]),r}(O),Ur=function(o){P(r,o);var a=I(r);function r(t){var e;return E(this,r),e=a.call(this,t),e.ratio=1,e.interval=null,e._preloadMark={},e}return w(r,[{key:"afterCreate",value:function(){var e=this;this.usable&&this.initThumbnail(),this.on([de],function(){var i=e.config,n=i.pic_num,s=i.interval;e.usable&&(e.interval=s>0?s:Math.round(e.player.duration*1e3/n)/1e3)})}},{key:"setConfig",value:function(e){var i=this;if(e){var n=Object.keys(e);n.length<1||(n.forEach(function(s){i.config[s]=e[s]}),this.usable&&this.initThumbnail())}}},{key:"usable",get:function(){var e=this.config,i=e.urls,n=e.pic_num;return i&&i.length>0&&n>0}},{key:"initThumbnail",value:function(){var e=this.config,i=e.width,n=e.height,s=e.pic_num,u=e.interval;this.ratio=i/n*100,this.interval=u||Math.round(this.player.duration/s),this._preloadMark={}}},{key:"getUrlByIndex",value:function(e){return e>=0&&e0&&u.push(e-1),u.push(e),e>0&&e=0&&l1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,s=this.config,u=s.pic_num,l=s.row,h=s.col,f=s.width,d=s.height;this.interval=Math.round(this.player.duration/u);var g=Math.ceil(e/this.interval);g=g>u?u:g;var v=g0?Math.ceil(_/h)-1:0,k=_>0?_-m*h-1:0,T=0,b=0;if(i&&n){var H=i/n;H2&&arguments[2]!==void 0?arguments[2]:0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",l=this.config,h=l.pic_num,f=l.urls;if(!(h<=0||!f||f.length===0)){var d=this.getPosition(i,n,s);this.preload(d.urlIndex),Object.keys(d.style).map(function(g){e.style[g]=d.style[g]}),Object.keys(u).map(function(g){e.style[g]=u[g]})}}},{key:"changeConfig",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.setConfig(e)}},{key:"createThumbnail",value:function(e,i){var n=c.createDom("xg-thumbnail","",{},"thumbnail ".concat(i));return e&&e.appendChild(n),n}}],[{key:"pluginName",get:function(){return"thumbnail"}},{key:"defaultConfig",get:function(){return{isShow:!1,urls:[],pic_num:0,col:0,row:0,height:90,width:160,scale:1,className:"",hidePortrait:!1}}}]),r}(O),Gr=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"afterCreate",value:function(){}},{key:"update",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{cached:0,played:0},i=arguments.length>1?arguments[1]:void 0;!i||!this.root||(e.cached&&(this.find("xg-mini-progress-cache").style.width="".concat(e.cached/i*100,"%")),e.played&&(this.find("xg-mini-progress-played").style.width="".concat(e.played/i*100,"%")))}},{key:"render",value:function(){if(!(!this.playerConfig.progress||!this.playerConfig.miniprogress))return` - `}}],[{key:"pluginName",get:function(){return"MiniProgress"}},{key:"defaultConfig",get:function(){return{}}}]),r}(O),Ee={REAL_TIME:"realtime",FIRST_FRAME:"firstframe",FRAME_RATE:"framerate",POSTER:"poster"};function Lr(){try{return parseInt(window.performance.now(),10)}catch{return new Date().getTime()}}function Dr(){try{var o=document.createElement("canvas").getContext;return!!o}catch{return!1}}var Oe=null,Rr=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n0?(t.renderOnce(),t._frameCount--):(t._isLoaded=!0,t.off(J,t.renderOnTimeupdate),!t.player.paused&&t._checkIfCanStart()&&t.start())}),y(p(t),"start",function(){var s=t.player.media,u=Lr(),l=t.checkVideoIsSupport(s);!l||!t.canvasCtx||(t.stop(),s.videoWidth&&s.videoHeight&&(t.videoPI=s.videoHeight>0?parseInt(s.videoWidth/s.videoHeight*100,10):0,(t.config.mode===Ee.REAL_TIME||u-t.preTime>=t.interval)&&(s&&s.videoWidth&&t.update(l,t.videoPI),t.preTime=u)),t.frameId=c.requestAnimationFrame(t.start))}),y(p(t),"stop",function(){t.frameId&&(c.cancelAnimationFrame(t.frameId),t.frameId=null)}),t}return w(r,[{key:"afterCreate",value:function(){var e=this;this.playerConfig.dynamicBg===!0&&(this.config.disable=!1),r.isSupport||(this.config.disable=!0);var i=this.config,n=i.disable,s=i.mode,u=i.frameRate;n||(this._pos={width:0,height:0,rwidth:0,rheight:0,x:0,y:0,pi:0},this.isStart=!1,this._isLoaded=!1,this.videoPI=0,this.preTime=0,this.interval=parseInt(1e3/u,10),this.canvas=null,this.canvasCtx=null,this._frameCount=0,this.once(je,function(){e.player&&(e.init(),e.player.paused||e.start())}),s!==Ee.POSTER&&(s!==Ee.FIRST_FRAME&&(this.on(be,function(){e.stop()}),this.on(X,function(){e._checkIfCanStart()&&e.start()}),this.on(ke,function(){e.stop()})),this.on(ce,this.onLoadedData),this.on(dt,function(){e._isLoaded=!1,e.stop()})))}},{key:"init",value:function(){var e=this.player,i=this.config;this.canvasFilter=r.supportCanvasFilter();try{var n=this.config.isInnerRender&&e.innerContainer||e.root;n.insertAdjacentHTML("afterbegin",`
    -
    `),this.root=n.children[0],this.canvas=this.find("canvas"),this.canvasFilter||(this.canvas.style.filter=i.filter,this.canvas.style.webkitFilter=i.filter),this.mask=this.find("xgmask"),i.addMask&&(this.mask.style.background=i.maskBg),this.canvasCtx=this.canvas.getContext("2d"),this.renderByPoster()}catch(s){L.logError("plugin:DynamicBg",s)}}},{key:"checkVideoIsSupport",value:function(e){if(!e)return null;var i=e&&e instanceof window.HTMLVideoElement?e:e.canvas?e.canvas:e.flyVideo?e.flyVideo:null;if(i&&!(A.browser==="safari"&&(/^blob/.test(i.currentSrc)||/^blob/.test(i.src))))return i;var n=i?i.tagName.toLowerCase():"";return n==="canvas"||n==="img"?i:null}},{key:"renderByPoster",value:function(){var e=this.playerConfig.poster;if(e){var i=c.typeOf(e)==="String"?e:c.typeOf(e.poster)==="String"?e.poster:null;this.updateImg(i)}}},{key:"_checkIfCanStart",value:function(){var e=this.config.mode;return this._isLoaded&&e!==Ee.FIRST_FRAME&&e!==Ee.POSTER}},{key:"renderOnce",value:function(){var e=this.player.media;if(!(!e.videoWidth||!e.videoHeight)){this.videoPI=parseInt(e.videoWidth/e.videoHeight*100,10);var i=this.checkVideoIsSupport(e);i&&e.videoWidth&&this.update(i,this.videoPI)}}},{key:"updateImg",value:function(e){var i=this;if(e){var n=this.canvas.getBoundingClientRect(),s=n.width,u=n.height,l=new window.Image;l.onload=function(){if(!(!i.canvas||i.frameId||i.isStart)){i.canvas.height=u,i.canvas.width=s;var h=parseInt(s/u*100,10);i.update(l,h),l=null}},l.src=e}}},{key:"update",value:function(e,i){if(!(!this.canvas||!this.canvasCtx||!i))try{var n=this._pos,s=this.config,u=this.canvas.getBoundingClientRect(),l=u.width,h=u.height;if(l!==n.width||h!==n.height||n.pi!==i){var f=parseInt(l/h*100,10);n.pi=i,n.width=this.canvas.width=l,n.height=this.canvas.height=h;var d=h,g=l;fi&&(d=parseInt(l*100/i,10)),n.rwidth=g*s.multiple,n.rheight=d*s.multiple,n.x=(l-n.rwidth)/2,n.y=(h-n.rheight)/2}this.canvasFilter&&(this.canvasCtx.filter=s.filter),this.canvasCtx.drawImage(e,n.x,n.y,n.rwidth,n.rheight)}catch(v){L.logError("plugin:DynamicBg",v)}}},{key:"destroy",value:function(){this.stop(),this.canvasCtx=null,this.canvas=null}},{key:"render",value:function(){return""}}],[{key:"pluginName",get:function(){return"dynamicBg"}},{key:"defaultConfig",get:function(){return{isInnerRender:!1,disable:!0,mode:"framerate",frameRate:10,filter:"blur(50px)",startFrameCount:2,addMask:!0,multiple:1.2,maskBg:"rgba(0,0,0,0.7)"}}},{key:"isSupport",get:function(){return typeof Oe=="boolean"||(Oe=Dr()),Oe}},{key:"supportCanvasFilter",value:function(){return!(A.browser==="safari"||A.browser==="firefox")}}]),r}(O),Or={LANG:"zh-cn",TEXT:{ERROR_TYPES:{network:{code:1,msg:"视频下载错误"},mse:{code:2,msg:"流追加错误"},parse:{code:3,msg:"解析错误"},format:{code:4,msg:"格式错误"},decoder:{code:5,msg:"解码错误"},runtime:{code:6,msg:"语法错误"},timeout:{code:7,msg:"播放超时"},other:{code:8,msg:"其他错误"}},HAVE_NOTHING:"没有关于音频/视频是否就绪的信息",HAVE_METADATA:"音频/视频的元数据已就绪",HAVE_CURRENT_DATA:"关于当前播放位置的数据是可用的,但没有足够的数据来播放下一帧/毫秒",HAVE_FUTURE_DATA:"当前及至少下一帧的数据是可用的",HAVE_ENOUGH_DATA:"可用数据足以开始播放",NETWORK_EMPTY:"音频/视频尚未初始化",NETWORK_IDLE:"音频/视频是活动的且已选取资源,但并未使用网络",NETWORK_LOADING:"浏览器正在下载数据",NETWORK_NO_SOURCE:"未找到音频/视频来源",MEDIA_ERR_ABORTED:"取回过程被用户中止",MEDIA_ERR_NETWORK:"网络错误",MEDIA_ERR_DECODE:"解码错误",MEDIA_ERR_SRC_NOT_SUPPORTED:"不支持的音频/视频格式",REPLAY:"重播",ERROR:"网络连接似乎出现了问题",PLAY_TIPS:"播放",PAUSE_TIPS:"暂停",PLAYNEXT_TIPS:"下一集",DOWNLOAD_TIPS:"下载",ROTATE_TIPS:"旋转",RELOAD_TIPS:"重新载入",FULLSCREEN_TIPS:"进入全屏",EXITFULLSCREEN_TIPS:"退出全屏",CSSFULLSCREEN_TIPS:"进入样式全屏",EXITCSSFULLSCREEN_TIPS:"退出样式全屏",TEXTTRACK:"字幕",PIP:"画中画",SCREENSHOT:"截图",LIVE:"正在直播",OFF:"关闭",OPEN:"开启",MINI_DRAG:"点击按住可拖动视频",MINISCREEN:"小屏幕",REFRESH_TIPS:"请试试",REFRESH:"刷新",FORWARD:"快进中",LIVE_TIP:"直播"}},we="info",it=di,Mr=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;nm)){var k=_-g,T=k<=f;ki&&(l===0||s[l-1].end-i<=n)){u=l;break}}return u}},{key:"_getBuffered",value:function(e){if(!e)return[];for(var i=[],n=0;nu.jumpCntMax||t.timer||u.useWaitingTimeoutJump===!1||(t.timer=setTimeout(t.onJump,u.waitingTime*1e3))}),y(p(t),"onJump",function(){var s=p(t),u=s.player,l=s.config;if(clearTimeout(t.timer),t.timer=null,!(t.jumpCnt>l.jumpCntMax||l.useWaitingTimeoutJump===!1)&&!(u.media.paused&&u.media.currentTime!==0&&t.hasPlayed)){t.jumpSize=l.jumpSize*(t.jumpCnt+1),t.jumpCnt===l.jumpSize&&t.jumpSize<6&&(t.jumpSize=6);var h=u.currentTime+t.jumpSize,f=u.media.duration;h>f||(console.log("waitintTimeout, currentTime:",u.currentTime,", jumpTo:",h),t.jumpCnt++,u.currentTime=h)}}),t}return w(r,[{key:"afterCreate",value:function(){var e=this,i=this.config,n=i.useWaitingTimeoutJump,s=i.jumpSize;n!==!1&&(this.hasPlayed=!1,this.jumpCnt=0,this.timer=null,this.jumpSize=s,this.on(Ae,this.onWaiting),this.on([ht,Z],function(){clearTimeout(e.timer),e.timer=null,e.jumpSize=e.config.jumpSize}),this.on(X,function(){e.hasPlayed=!0}))}}],[{key:"pluginName",get:function(){return"waitingTimeoutJump"}},{key:"defaultConfig",get:function(){return{useWaitingTimeoutJump:!1,waitingTime:15,jumpSize:2,jumpCntMax:4}}}]),r}(O),Fr=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n=h)){t.cnt++;try{var g=new Date().getTime(),v=null,_=new XMLHttpRequest;t.xhr=_,_.open("GET",d);var m={},k=Math.floor(Math.random()*10);m.Range="bytes="+k+"-"+(l+k),m&&Object.keys(m).forEach(function(T){_.setRequestHeader(T,m[T])}),_.onreadystatechange=function(){if(_.readyState===4){t.xhr=null,v=new Date().getTime();var T=_.getResponseHeader("Content-Length")/1024*8,b=Math.round(T*1e3/(v-g));t.appendList(b),t.timer=setTimeout(t.testSpeed,f)}},_.send()}catch(T){console.error(T)}}}}),y(p(t),"appendList",function(s){var u=t.config.saveSpeedMax;t.speedListCache.length>=u&&t.speedListCache.shift(),t.speedListCache.push(s),t.player&&(t.player.realTimeSpeed=s),t.updateSpeed()}),y(p(t),"updateSpeed",function(){var s=t.getSpeed(),u=p(t),l=u.player;l&&(!l.avgSpeed||s!==l.avgSpeed)&&(l.avgSpeed=s,l.emit(oi,{speed:s,realTimeSpeed:l.realTimeSpeed}))}),t}return w(r,[{key:"afterCreate",value:function(){var e=this;this.speedListCache=[];var i=this.config,n=i.openSpeed,s=i.testTimeStep;this.timer=null,this.cnt=0,this.xhr=null,n&&(this.on("real_time_speed",this._onRealSpeedChange),this.on([ce,mt],function(){c.isMSE(e.player.video)||(e.speedListCache=[],e.cnt=0,e.timer=setTimeout(e.testSpeed,s))}))}},{key:"openSpeed",get:function(){return this.config.openSpeed},set:function(e){if(this.config.openSpeed=e,!e&&this.timer){clearTimeout(this.timer),this.timer=null;return}if(this.config.openSpeed){if(this.timer)return;this.timer=setTimeout(this.testSpeed,this.config.testTimeStep)}}},{key:"destroy",value:function(){clearTimeout(this.timer),this.timer=null,this.xhr&&this.xhr.readyState!==4&&(this.xhr.cancel(),this.xhr=null)}}],[{key:"pluginName",get:function(){return"testspeed"}},{key:"defaultConfig",get:function(){return{openSpeed:!1,testCnt:3,loadSize:200*1024,testTimeStep:3e3,url:"",saveSpeedMax:5}}}]),r}(O),Hr=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"afterCreate",value:function(){var e=this,i=this.player,n=this.config;if(this.timer=null,this._lastDecodedFrames=0,this._currentStuckCount=0,this._lastCheckPoint=null,!n.disabled){var s=i.media.getVideoPlaybackQuality;s&&(this.on(X,function(){e._startTick()}),this.on(ke,function(){e._stopTick()}),this.on(fe,function(){e._stopTick()}),this.on(be,function(){e._stopTick()}))}}},{key:"_startTick",value:function(){var e=this;this._stopTick(),this._timer=setTimeout(function(){e._checkDecodeFPS(),e._startTick()},this.config.tick)}},{key:"_stopTick",value:function(){clearTimeout(this._timer),this._timer=null}},{key:"_checkStuck",value:function(e){var i=this.player.media,n=document.hidden,s=i.paused;if(typeof n=="boolean"&&!n&&!s){for(var u=i.currentTime,l=i.buffered,h=!1,f=0;fthis.config.stuckCount?(this.emit(gi),this._currentStuckCount=0):e<=this.config.reportFrame?this._currentStuckCount++:this._currentStuckCount=0)}}},{key:"_checkDecodeFPS",value:function(){if(this.player.media){var e=this.player.media.getVideoPlaybackQuality(),i=e.totalVideoFrames,n=performance.now();if(i&&this._lastCheckPoint){var s=i-this._lastDecodedFrames;this._checkStuck(s)}this._lastDecodedFrames=i,this._lastCheckPoint=n}}},{key:"destroy",value:function(){this._stopTick()}}],[{key:"pluginName",get:function(){return"FpsDetect"}},{key:"defaultConfig",get:function(){return{disabled:!1,tick:1e3,stuckCount:3,reportFrame:0}}}]),r}(O);_e.use(Or);var Br=w(function o(a,r){var t,e,i;E(this,o);var n=r&&r.isMobileSimulateMode==="mobile",s=r.isLive,u=s?[]:[qn,Ar,Pr,nr],l=[].concat(u,[Zn,ir,lr,gr,kr,br,yr,_r,or,fr]),h=[In,An,Rn,Kn,On,wr,Sr,Ir,Hn];this.plugins=[Mr,xn].concat(re(l),h,[ki,Nr]);var f=n?"mobile":A.device;switch(f){case"pc":(t=this.plugins).push.apply(t,[Kt,tt,$t,Fr,Hr]);break;case"mobile":(e=this.plugins).push.apply(e,[Wn]);break;default:(i=this.plugins).push.apply(i,[Kt,tt,$t])}(A.os.isIpad||f==="pc")&&this.plugins.push(Rr),A.os.isIpad&&this.plugins.push(tt),this.ignores=[],this.i18n=[]}),Q=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r)}(kt);y(Q,"defaultPreset",Br);y(Q,"Util",c);y(Q,"Sniffer",A);y(Q,"Errors",ct);y(Q,"Events",tn);y(Q,"Plugin",O);y(Q,"BasePlugin",he);y(Q,"I18N",_e);y(Q,"STATE_CLASS",C);const Ur=o=>(Vue.pushScopeId("data-v-93770496"),o=o(),Vue.popScopeId(),o),Vr={class:"card-header"},Gr={class:"font-medium"},jr=Ur(()=>Vue.createElementVNode("div",{id:"mse"},null,-1)),Wr=Vue.defineComponent({name:"Video",__name:"index",setup(o){return Vue.onMounted(()=>{new Q({id:"mse",lang:"zh",volume:0,autoplay:!1,screenShot:!0,videoAttributes:{crossOrigin:"anonymous"},url:"https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-720p.mp4",poster:"https://s2.pstatp.com/cdn/expire-1-M/byted-player-videos/1.0.0/poster.jpg",fluid:Ti(),playbackRate:[.5,.75,1,1.5,2]})}),(a,r)=>{const t=Vue.resolveComponent("el-link"),e=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(e,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",Vr,[Vue.createElementVNode("span",Gr,[Vue.createTextVNode(" 视频组件,采用开源的 "),Vue.createVNode(t,{href:"https://v3.h5player.bytedance.com/",target:"_blank",icon:Vue.unref(wi)(Vue.unref(xi)),style:{margin:"0 4px 5px","font-size":"16px"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 西瓜播放器 ")]),_:1},8,["icon"])])])]),default:Vue.withCtx(()=>[jr]),_:1})}}});const Kr=Ei(Wr,[["__scopeId","data-v-93770496"]]);export{Kr as default}; + `}}],[{key:"pluginName",get:function(){return"MiniProgress"}},{key:"defaultConfig",get:function(){return{}}}]),r}(O),Ee={REAL_TIME:"realtime",FIRST_FRAME:"firstframe",FRAME_RATE:"framerate",POSTER:"poster"};function Vr(){try{return parseInt(window.performance.now(),10)}catch{return new Date().getTime()}}function jr(){try{var o=document.createElement("canvas").getContext;return!!o}catch{return!1}}var Oe=null,Wr=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n0?(t.renderOnce(),t._frameCount--):(t._isLoaded=!0,t.off(J,t.renderOnTimeupdate),!t.player.paused&&t._checkIfCanStart()&&t.start())}),y(p(t),"start",function(){var s=t.player.media,u=Vr(),l=t.checkVideoIsSupport(s);!l||!t.canvasCtx||(t.stop(),s.videoWidth&&s.videoHeight&&(t.videoPI=s.videoHeight>0?parseInt(s.videoWidth/s.videoHeight*100,10):0,(t.config.mode===Ee.REAL_TIME||u-t.preTime>=t.interval)&&(s&&s.videoWidth&&t.update(l,t.videoPI),t.preTime=u)),t.frameId=c.requestAnimationFrame(t.start))}),y(p(t),"stop",function(){t.frameId&&(c.cancelAnimationFrame(t.frameId),t.frameId=null)}),t}return w(r,[{key:"afterCreate",value:function(){var e=this;this.playerConfig.dynamicBg===!0&&(this.config.disable=!1),r.isSupport||(this.config.disable=!0);var i=this.config,n=i.disable,s=i.mode,u=i.frameRate;n||(this._pos={width:0,height:0,rwidth:0,rheight:0,x:0,y:0,pi:0},this.isStart=!1,this._isLoaded=!1,this.videoPI=0,this.preTime=0,this.interval=parseInt(1e3/u,10),this.canvas=null,this.canvasCtx=null,this._frameCount=0,this.once(je,function(){e.player&&(e.init(),e.player.paused||e.start())}),s!==Ee.POSTER&&(s!==Ee.FIRST_FRAME&&(this.on(be,function(){e.stop()}),this.on(X,function(){e._checkIfCanStart()&&e.start()}),this.on(ke,function(){e.stop()})),this.on(ce,this.onLoadedData),this.on(pt,function(){e._isLoaded=!1,e.stop()})))}},{key:"init",value:function(){var e=this.player,i=this.config;this.canvasFilter=r.supportCanvasFilter();try{var n=this.config.isInnerRender&&e.innerContainer||e.root;n.insertAdjacentHTML("afterbegin",`
    +
    `),this.root=n.children[0],this.canvas=this.find("canvas"),this.canvasFilter||(this.canvas.style.filter=i.filter,this.canvas.style.webkitFilter=i.filter),this.mask=this.find("xgmask"),i.addMask&&(this.mask.style.background=i.maskBg),this.canvasCtx=this.canvas.getContext("2d"),this.renderByPoster()}catch(s){L.logError("plugin:DynamicBg",s)}}},{key:"checkVideoIsSupport",value:function(e){if(!e)return null;var i=e&&e instanceof window.HTMLVideoElement?e:e.canvas?e.canvas:e.flyVideo?e.flyVideo:null;if(i&&!(A.browser==="safari"&&(/^blob/.test(i.currentSrc)||/^blob/.test(i.src))))return i;var n=i?i.tagName.toLowerCase():"";return n==="canvas"||n==="img"?i:null}},{key:"renderByPoster",value:function(){var e=this.playerConfig.poster;if(e){var i=c.typeOf(e)==="String"?e:c.typeOf(e.poster)==="String"?e.poster:null;this.updateImg(i)}}},{key:"_checkIfCanStart",value:function(){var e=this.config.mode;return this._isLoaded&&e!==Ee.FIRST_FRAME&&e!==Ee.POSTER}},{key:"renderOnce",value:function(){var e=this.player.media;if(!(!e.videoWidth||!e.videoHeight)){this.videoPI=parseInt(e.videoWidth/e.videoHeight*100,10);var i=this.checkVideoIsSupport(e);i&&e.videoWidth&&this.update(i,this.videoPI)}}},{key:"updateImg",value:function(e){var i=this;if(e){var n=this.canvas.getBoundingClientRect(),s=n.width,u=n.height,l=new window.Image;l.onload=function(){if(!(!i.canvas||i.frameId||i.isStart)){i.canvas.height=u,i.canvas.width=s;var h=parseInt(s/u*100,10);i.update(l,h),l=null}},l.src=e}}},{key:"update",value:function(e,i){if(!(!this.canvas||!this.canvasCtx||!i))try{var n=this._pos,s=this.config,u=this.canvas.getBoundingClientRect(),l=u.width,h=u.height;if(l!==n.width||h!==n.height||n.pi!==i){var f=parseInt(l/h*100,10);n.pi=i,n.width=this.canvas.width=l,n.height=this.canvas.height=h;var d=h,g=l;fi&&(d=parseInt(l*100/i,10)),n.rwidth=g*s.multiple,n.rheight=d*s.multiple,n.x=(l-n.rwidth)/2,n.y=(h-n.rheight)/2}this.canvasFilter&&(this.canvasCtx.filter=s.filter),this.canvasCtx.drawImage(e,n.x,n.y,n.rwidth,n.rheight)}catch(v){L.logError("plugin:DynamicBg",v)}}},{key:"destroy",value:function(){this.stop(),this.canvasCtx=null,this.canvas=null}},{key:"render",value:function(){return""}}],[{key:"pluginName",get:function(){return"dynamicBg"}},{key:"defaultConfig",get:function(){return{isInnerRender:!1,disable:!0,mode:"framerate",frameRate:10,filter:"blur(50px)",startFrameCount:2,addMask:!0,multiple:1.2,maskBg:"rgba(0,0,0,0.7)"}}},{key:"isSupport",get:function(){return typeof Oe=="boolean"||(Oe=jr()),Oe}},{key:"supportCanvasFilter",value:function(){return!(A.browser==="safari"||A.browser==="firefox")}}]),r}(O),zr={LANG:"zh-cn",TEXT:{ERROR_TYPES:{network:{code:1,msg:"视频下载错误"},mse:{code:2,msg:"流追加错误"},parse:{code:3,msg:"解析错误"},format:{code:4,msg:"格式错误"},decoder:{code:5,msg:"解码错误"},runtime:{code:6,msg:"语法错误"},timeout:{code:7,msg:"播放超时"},other:{code:8,msg:"其他错误"}},HAVE_NOTHING:"没有关于音频/视频是否就绪的信息",HAVE_METADATA:"音频/视频的元数据已就绪",HAVE_CURRENT_DATA:"关于当前播放位置的数据是可用的,但没有足够的数据来播放下一帧/毫秒",HAVE_FUTURE_DATA:"当前及至少下一帧的数据是可用的",HAVE_ENOUGH_DATA:"可用数据足以开始播放",NETWORK_EMPTY:"音频/视频尚未初始化",NETWORK_IDLE:"音频/视频是活动的且已选取资源,但并未使用网络",NETWORK_LOADING:"浏览器正在下载数据",NETWORK_NO_SOURCE:"未找到音频/视频来源",MEDIA_ERR_ABORTED:"取回过程被用户中止",MEDIA_ERR_NETWORK:"网络错误",MEDIA_ERR_DECODE:"解码错误",MEDIA_ERR_SRC_NOT_SUPPORTED:"不支持的音频/视频格式",REPLAY:"重播",ERROR:"网络连接似乎出现了问题",PLAY_TIPS:"播放",PAUSE_TIPS:"暂停",PLAYNEXT_TIPS:"下一集",DOWNLOAD_TIPS:"下载",ROTATE_TIPS:"旋转",RELOAD_TIPS:"重新载入",FULLSCREEN_TIPS:"进入全屏",EXITFULLSCREEN_TIPS:"退出全屏",CSSFULLSCREEN_TIPS:"进入样式全屏",EXITCSSFULLSCREEN_TIPS:"退出样式全屏",TEXTTRACK:"字幕",PIP:"画中画",SCREENSHOT:"截图",LIVE:"正在直播",OFF:"关闭",OPEN:"开启",MINI_DRAG:"点击按住可拖动视频",MINISCREEN:"小屏幕",REFRESH_TIPS:"请试试",REFRESH:"刷新",FORWARD:"快进中",LIVE_TIP:"直播"}},we="info",nt=yi,Yr=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;nm)){var k=_-g,T=k<=f;ki&&(l===0||s[l-1].end-i<=n)){u=l;break}}return u}},{key:"_getBuffered",value:function(e){if(!e)return[];for(var i=[],n=0;nu.jumpCntMax||t.timer||u.useWaitingTimeoutJump===!1||(t.timer=setTimeout(t.onJump,u.waitingTime*1e3))}),y(p(t),"onJump",function(){var s=p(t),u=s.player,l=s.config;if(clearTimeout(t.timer),t.timer=null,!(t.jumpCnt>l.jumpCntMax||l.useWaitingTimeoutJump===!1)&&!(u.media.paused&&u.media.currentTime!==0&&t.hasPlayed)){t.jumpSize=l.jumpSize*(t.jumpCnt+1),t.jumpCnt===l.jumpSize&&t.jumpSize<6&&(t.jumpSize=6);var h=u.currentTime+t.jumpSize,f=u.media.duration;h>f||(console.log("waitintTimeout, currentTime:",u.currentTime,", jumpTo:",h),t.jumpCnt++,u.currentTime=h)}}),t}return w(r,[{key:"afterCreate",value:function(){var e=this,i=this.config,n=i.useWaitingTimeoutJump,s=i.jumpSize;n!==!1&&(this.hasPlayed=!1,this.jumpCnt=0,this.timer=null,this.jumpSize=s,this.on(Ae,this.onWaiting),this.on([dt,Z],function(){clearTimeout(e.timer),e.timer=null,e.jumpSize=e.config.jumpSize}),this.on(X,function(){e.hasPlayed=!0}))}}],[{key:"pluginName",get:function(){return"waitingTimeoutJump"}},{key:"defaultConfig",get:function(){return{useWaitingTimeoutJump:!1,waitingTime:15,jumpSize:2,jumpCntMax:4}}}]),r}(O),Xr=function(o){P(r,o);var a=I(r);function r(){var t;E(this,r);for(var e=arguments.length,i=new Array(e),n=0;n=h)){t.cnt++;try{var g=new Date().getTime(),v=null,_=new XMLHttpRequest;t.xhr=_,_.open("GET",d);var m={},k=Math.floor(Math.random()*10);m.Range="bytes="+k+"-"+(l+k),m&&Object.keys(m).forEach(function(T){_.setRequestHeader(T,m[T])}),_.onreadystatechange=function(){if(_.readyState===4){t.xhr=null,v=new Date().getTime();var T=_.getResponseHeader("Content-Length")/1024*8,b=Math.round(T*1e3/(v-g));t.appendList(b),t.timer=setTimeout(t.testSpeed,f)}},_.send()}catch(T){console.error(T)}}}}),y(p(t),"appendList",function(s){var u=t.config.saveSpeedMax;t.speedListCache.length>=u&&t.speedListCache.shift(),t.speedListCache.push(s),t.player&&(t.player.realTimeSpeed=s),t.updateSpeed()}),y(p(t),"updateSpeed",function(){var s=t.getSpeed(),u=p(t),l=u.player;l&&(!l.avgSpeed||s!==l.avgSpeed)&&(l.avgSpeed=s,l.emit(fi,{speed:s,realTimeSpeed:l.realTimeSpeed}))}),t}return w(r,[{key:"afterCreate",value:function(){var e=this;this.speedListCache=[];var i=this.config,n=i.openSpeed,s=i.testTimeStep;this.timer=null,this.cnt=0,this.xhr=null,n&&(this.on("real_time_speed",this._onRealSpeedChange),this.on([ce,_t],function(){c.isMSE(e.player.video)||(e.speedListCache=[],e.cnt=0,e.timer=setTimeout(e.testSpeed,s))}))}},{key:"openSpeed",get:function(){return this.config.openSpeed},set:function(e){if(this.config.openSpeed=e,!e&&this.timer){clearTimeout(this.timer),this.timer=null;return}if(this.config.openSpeed){if(this.timer)return;this.timer=setTimeout(this.testSpeed,this.config.testTimeStep)}}},{key:"destroy",value:function(){clearTimeout(this.timer),this.timer=null,this.xhr&&this.xhr.readyState!==4&&(this.xhr.cancel(),this.xhr=null)}}],[{key:"pluginName",get:function(){return"testspeed"}},{key:"defaultConfig",get:function(){return{openSpeed:!1,testCnt:3,loadSize:200*1024,testTimeStep:3e3,url:"",saveSpeedMax:5}}}]),r}(O),$r=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r,[{key:"afterCreate",value:function(){var e=this,i=this.player,n=this.config;if(this.timer=null,this._lastDecodedFrames=0,this._currentStuckCount=0,this._lastCheckPoint=null,!n.disabled){var s=i.media.getVideoPlaybackQuality;s&&(this.on(X,function(){e._startTick()}),this.on(ke,function(){e._stopTick()}),this.on(fe,function(){e._stopTick()}),this.on(be,function(){e._stopTick()}))}}},{key:"_startTick",value:function(){var e=this;this._stopTick(),this._timer=setTimeout(function(){e._checkDecodeFPS(),e._startTick()},this.config.tick)}},{key:"_stopTick",value:function(){clearTimeout(this._timer),this._timer=null}},{key:"_checkStuck",value:function(e){var i=this.player.media,n=document.hidden,s=i.paused;if(typeof n=="boolean"&&!n&&!s){for(var u=i.currentTime,l=i.buffered,h=!1,f=0;fthis.config.stuckCount?(this.emit(_i),this._currentStuckCount=0):e<=this.config.reportFrame?this._currentStuckCount++:this._currentStuckCount=0)}}},{key:"_checkDecodeFPS",value:function(){if(this.player.media){var e=this.player.media.getVideoPlaybackQuality(),i=e.totalVideoFrames,n=performance.now();if(i&&this._lastCheckPoint){var s=i-this._lastDecodedFrames;this._checkStuck(s)}this._lastDecodedFrames=i,this._lastCheckPoint=n}}},{key:"destroy",value:function(){this._stopTick()}}],[{key:"pluginName",get:function(){return"FpsDetect"}},{key:"defaultConfig",get:function(){return{disabled:!1,tick:1e3,stuckCount:3,reportFrame:0}}}]),r}(O);_e.use(zr);var qr=w(function o(a,r){var t,e,i;E(this,o);var n=r&&r.isMobileSimulateMode==="mobile",s=r.isLive,u=s?[]:[or,Gr,Br,gr],l=[].concat(u,[ur,dr,Cr,wr,Dr,Rr,Ir,Ar,yr,Tr]),h=[Un,Gn,Wn,rr,zn,Nr,Fr,Ur,$n];this.plugins=[Yr,Hn].concat(re(l),h,[Si,Kr]);var f=n?"mobile":A.device;switch(f){case"pc":(t=this.plugins).push.apply(t,[Jt,it,ei,Xr,$r]);break;case"mobile":(e=this.plugins).push.apply(e,[tr]);break;default:(i=this.plugins).push.apply(i,[Jt,it,ei])}(A.os.isIpad||f==="pc")&&this.plugins.push(Wr),A.os.isIpad&&this.plugins.push(it),this.ignores=[],this.i18n=[]}),Q=function(o){P(r,o);var a=I(r);function r(){return E(this,r),a.apply(this,arguments)}return w(r)}(Tt);y(Q,"defaultPreset",qr);y(Q,"Util",c);y(Q,"Sniffer",A);y(Q,"Errors",ft);y(Q,"Events",dn);y(Q,"Plugin",O);y(Q,"BasePlugin",he);y(Q,"I18N",_e);y(Q,"STATE_CLASS",C);const Zr=o=>(Oi("data-v-93770496"),o=o(),Mi(),o),Jr={class:"card-header"},Qr={class:"font-medium"},es=Zr(()=>rt("div",{id:"mse"},null,-1)),ts=Pi({name:"Video",__name:"index",setup(o){return Ii(()=>{new Q({id:"mse",lang:"zh",volume:0,autoplay:!1,screenShot:!0,videoAttributes:{crossOrigin:"anonymous"},url:"https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-720p.mp4",poster:"https://s2.pstatp.com/cdn/expire-1-M/byted-player-videos/1.0.0/poster.jpg",fluid:Ai(),playbackRate:[.5,.75,1,1.5,2]})}),(a,r)=>{const t=xt("el-link"),e=xt("el-card");return Di(),Li(e,{shadow:"never"},{header:Ye(()=>[rt("div",Jr,[rt("span",Qr,[Pt(" 视频组件,采用开源的 "),Ri(t,{href:"https://v3.h5player.bytedance.com/",target:"_blank",icon:It(Fi)(It(Hi)),style:{margin:"0 4px 5px","font-size":"16px"}},{default:Ye(()=>[Pt(" 西瓜播放器 ")]),_:1},8,["icon"])])])]),default:Ye(()=>[es]),_:1})}}});const rs=Ni(ts,[["__scopeId","data-v-93770496"]]);export{rs as default}; diff --git a/dist/static/js/index-7d94e9d7.js b/dist/static/js/index-7d94e9d7.js deleted file mode 100644 index cb783e25e..000000000 --- a/dist/static/js/index-7d94e9d7.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-9b251ba5.js";import"./columns-c7818246.js";import"./message-9ae1daa3.js";import"./index-c61a73ff.js";import"./data-5ec60fc2.js";export{o as default}; diff --git a/dist/static/js/index-7ea256f3.js b/dist/static/js/index-7ea256f3.js deleted file mode 100644 index 18cd1cc20..000000000 --- a/dist/static/js/index-7ea256f3.js +++ /dev/null @@ -1 +0,0 @@ -import{V as N,q as c,X as a,H as w,_ as K}from"./index-c61a73ff.js";const d="stay",i="hs-on",h="hs-off",V="hs-range",m="both-left-sides",y="both-right-sides";let q="right",g=[],s=[];const B={HsKey:{type:Number||String,default:0},disabled:{type:Boolean,default:!1},value:{type:Number,default:0},max:{type:Array,default(){return[1,2,3,4,5,6,7,8,9,10]}},echo:{type:Array,default(){return[]}}},$=Vue.defineComponent({name:"ReSelector",props:B,emits:["selectedVal"],setup(l,{emit:f}){const o=Vue.getCurrentInstance(),_=l.value,S=Vue.computed(()=>l.disabled),b=Vue.computed(()=>{const e=[];let t=0,n=_;for(_!==Math.floor(_)&&n--;t{if(!l.disabled){if(s.length===1){g.length<1&&g.push({index:e});let t=g[0].index;if(e>t)for(q="right",N(!1,y,document.querySelector(".hs-select__item"+s[0].index));e>=t;)c(document.querySelector(".hs-select__item"+t),V),t++;else for(q="left",N(!0,y,document.querySelector(".hs-select__item"+s[0].index));e<=t;)c(document.querySelector(".hs-select__item"+t),V),t--}c(document.querySelector("."+h+e),i)}},u=e=>{if(l.disabled)return;const t=document.querySelector("."+h+e);if(t.className.includes(d))return!1;if(a(t,i),s.length===1){const n=g[0].index;if(e>=n)for(let r=0;r<=e;r++)a(document.querySelector(".hs-select__item"+r),V);else for(;e<=n;)a(document.querySelector(".hs-select__item"+e),V),e++}},v=(e,t)=>{if(l.disabled)return;const n=s.length;n<2?(s.push({item:t,index:e}),c(document.querySelector("."+h+e),d),c(document.querySelector(".hs-select__item"+s[0].index),m),s[1]&&(q==="right"?c(document.querySelector(".hs-select__item"+s[1].index),y):c(document.querySelector(".hs-select__item"+s[1].index),m)),n===1&&(q==="right"?f("selectedVal",{left:s[0].item,right:s[1].item,whole:s}):f("selectedVal",{left:s[1].item,right:s[0].item,whole:s}))):Vue.nextTick(()=>{s.forEach(r=>{a(document.querySelector("."+h+r.index),i,d),a(document.querySelector(".hs-select__item"+r.index),m,y)}),s=[],g=[];for(let r=0;r<=l.max.length;r++){const H=document.querySelector(".hs-select__item"+r);H&&a(H,V)}s.push({item:t,index:e}),c(document.querySelector("."+h+e),d),c(document.querySelector(".hs-select__item"+s[0].index),m)})},C=e=>{if(e.length!==0){if(e.length>2||e.length===1)throw"传入的数组长度必须是2";for(e.sort((t,n)=>t-n),c(o.refs["hsdiv"+l.HsKey+e[0]],i,d),c(o.refs["hstd"+l.HsKey+e[0]],m),c(o.refs["hsdiv"+l.HsKey+e[1]],i,d),c(o.refs["hstd"+l.HsKey+e[1]],y);e[1]>=e[0];)c(o.refs["hstd"+l.HsKey+e[0]],V),e[0]++}};return Vue.onBeforeMount(()=>{Vue.nextTick(()=>{C(l.echo)})}),()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("table",{cellspacing:"0",cellpadding:"0"},[Vue.createVNode("tbody",null,[Vue.createVNode("tr",null,[l.max.map((e,t)=>Vue.createVNode("td",{"data-index":l.HsKey,ref:`hstd${l.HsKey}${t}`,class:`hs-select__item${t}`,onMousemove:()=>x(t),onMouseleave:()=>u(t),onClick:()=>v(t,e),style:{cursor:Vue.unref(S)?"auto":"pointer",textAlign:"center"},key:t},[Vue.createVNode("div",{ref:`hsdiv${l.HsKey}${t}`,class:`hs-item ${[Vue.unref(b)[t]+t]}`},[Vue.createVNode("span",null,[e])])]))])])])])}}),p=w($),D=p,E={class:"card-header"},L={key:0,class:"mt-3"},R=Vue.defineComponent({name:"Selector",__name:"index",setup(l){const f=Vue.ref(""),o=Vue.ref([{title:"基本使用",echo:[],disabled:!1},{title:"回显模式",echo:[2,7],disabled:!0}]),_=({left:S,right:b})=>{f.value=`${S}-${b}`};return(S,b)=>{const x=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createElementBlock("div",null,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(o.value,(u,v)=>(Vue.openBlock(),Vue.createBlock(x,{class:"box-card",key:v,shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",E,[Vue.createElementVNode("span",null,Vue.toDisplayString(u.title),1)])]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(D),{HsKey:v,echo:u.echo,onSelectedVal:_,disabled:u.disabled},null,8,["HsKey","echo","disabled"]),u.disabled?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("h4",L,"选中范围:"+Vue.toDisplayString(f.value),1))]),_:2},1024))),128))])}}});const I=K(R,[["__scopeId","data-v-2c78a51a"]]);export{I as default}; diff --git a/dist/static/js/index-852601bb.js b/dist/static/js/index-852601bb.js deleted file mode 100644 index f57548745..000000000 --- a/dist/static/js/index-852601bb.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-a932c026.js";import"./columns-49cce1a9.js";import"./print-a6e42845.js";import"./data-8e10e21a.js";import"./index-c61a73ff.js";export{o as default}; diff --git a/dist/static/js/index-86e35936.js b/dist/static/js/index-86e35936.js new file mode 100644 index 000000000..3250694ac --- /dev/null +++ b/dist/static/js/index-86e35936.js @@ -0,0 +1 @@ +import{b4 as x,f as u,k as b,i as p,aX as d1,r as R,a as K,d as e1,y as P,u as e,R as f1,a$ as u1,x as p1,Y as m1,a7 as h1,b as _1,c as m,g as a,aS as g1,w as l,e as w,Q as v1,aW as y1,ae as I,A as j,ab as H,m as Y,ac as Q,h as $,G as w1,C as V,bk as L,F as W,l as X,bu as x1,b7 as C1,_ as k1}from"./index-0dd8d5e4.js";import{M as k}from"./motion-8d1b992b.js";import{m as b1}from"./message-ac5811da.js";import{l as Z1}from"./verifyCode-5a2fb2bf.js";import{_ as M1}from"./phone.vue_vue_type_script_setup_true_lang-434cabb8.js";import{T as I1}from"./index-24d2e7bb.js";import{_ as $1}from"./qrCode.vue_vue_type_script_setup_true_lang-14b58f53.js";import{_ as R1}from"./regist.vue_vue_type_script_setup_true_lang-8e834687.js";import{_ as V1}from"./update.vue_vue_type_script_setup_true_lang-2c86fdf0.js";import{e as L1,b as z1,u as S1,a as T1,d as E1,c as q1,g as B1}from"./dark-8da7fda0.js";import{u as N}from"./hooks-62079556.js";import{d as U1}from"./lock-fill-34b71c6c.js";import{d as J}from"./check-3815600c.js";import{d as N1}from"./user-3-fill-70ba8c19.js";import"./iphone-bcaa848c.js";import"./index-639cd49d.js";import"./propTypes-c3354283.js";import"./refresh-right-6177e75c.js";import"./app-9580cee8.js";import"./epTheme-ec99570c.js";const P1=[{title:x("login.phoneLogin")},{title:x("login.qRCodeLogin")},{title:x("login.register")}],F1=[{title:x("login.weChatLogin"),icon:"wechat"},{title:x("login.alipayLogin"),icon:"alipay"},{title:x("login.qqLogin"),icon:"qq"},{title:x("login.weiboLogin"),icon:"weibo"}],D1="/vue-pure-admin/static/png/bg-7b14eacd.png",A1={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",class:"icon",viewBox:"0 0 1024 1024"},O1=p("path",{fill:"#386BF3",d:"M410.558.109c0 210.974-300.876 361.752-300.876 633.548 0 174.943 134.704 316.787 300.876 316.787s300.877-141.817 300.877-316.787C711.408 361.752 410.558 210.974 410.558.109z"},null,-1),G1=p("path",{fill:"#C3D2FB",d:"M613.469 73.665c0 211.055-300.877 361.914-300.877 633.547C312.592 882.156 447.296 1024 613.47 1024s300.876-141.817 300.876-316.788C914.29 435.58 613.469 284.72 613.469 73.665z"},null,-1),j1=p("path",{fill:"#303F5B",d:"M312.592 707.212c0-183.713 137.636-312.171 226.723-441.39 81.702 106.112 172.12 218.74 172.12 367.726A309.755 309.755 0 0 1 420.36 950.064a323.114 323.114 0 0 1-107.769-242.852z"},null,-1),H1=[O1,G1,j1];function Y1(r,o){return u(),b("svg",A1,H1)}const Q1={render:Y1},W1={xmlns:"http://www.w3.org/2000/svg",width:"500",height:"380","data-name":"Layer 1",viewBox:"0 0 871 477"},X1=d1('',34),J1=[X1];function K1(r,o){return u(),b("svg",W1,J1)}const e2={render:K1},t2=(r=120,o=40)=>{const d=R(),f=R("");function _(n){f.value=n}function t(){d.value&&(f.value=a2(d.value,r,o))}return K(()=>{t()}),{domRef:d,imgCode:f,setImgCode:_,getImgCode:t}};function h(r,o){return Math.floor(Math.random()*(o-r)+r)}function E(r,o){const d=h(r,o),f=h(r,o),_=h(r,o);return`rgb(${d},${f},${_})`}function a2(r,o,d){let f="";const _="0123456789",t=r.getContext("2d");if(!t)return f;t.fillStyle=E(180,230),t.fillRect(0,0,o,d);for(let n=0;n<4;n+=1){const c=_[h(0,_.length)];f+=c;const g=h(18,41),v=h(-30,30);t.font=`${g}px Simhei`,t.textBaseline="top",t.fillStyle=E(80,150),t.save(),t.translate(30*n+15,15),t.rotate(v*Math.PI/180),t.fillText(c,-15+5,-15),t.restore()}for(let n=0;n<5;n+=1)t.beginPath(),t.moveTo(h(0,o),h(0,d)),t.lineTo(h(0,o),h(0,d)),t.strokeStyle=E(180,230),t.closePath(),t.stroke();for(let n=0;n<41;n+=1)t.beginPath(),t.arc(h(0,o),h(0,d),1,0,2*Math.PI),t.closePath(),t.fillStyle=E(150,200),t.fill();return f}const l2=e1({name:"ReImageVerify",__name:"index",props:{code:{default:""}},emits:["update:code"],setup(r,{expose:o,emit:d}){const f=r,{domRef:_,imgCode:t,setImgCode:n,getImgCode:c}=t2();return P(()=>f.code,g=>{n(g)}),P(t,g=>{d("update:code",g)}),o({getImgCode:c}),(g,v)=>(u(),b("canvas",{ref_key:"domRef",ref:_,width:"120",height:"40",class:"cursor-pointer",onClick:v[0]||(v[0]=(...z)=>e(c)&&e(c)(...z))},null,512))}}),o2=f1(l2),n2={class:"select-none"},s2=["src"],i2={class:"flex-c absolute right-5 top-3"},c2={class:"check-en"},r2={class:"login-container"},d2={class:"img"},f2={class:"login-box"},u2={class:"login-form"},p2={class:"outline-none"},m2={class:"w-full h-[20px] flex justify-between items-center"},h2={class:"w-full h-[20px] flex justify-between items-center"},_2={class:"text-gray-500 text-xs"},g2={class:"w-full flex justify-evenly"},v2=["title"],y2=e1({name:"Login",__name:"index",setup(r){const o=R(""),d=u1(),f=R(!1),_=R(!1),t=R(),n=p1(()=>L().currentPage),{t:c}=m1(),{initStorage:g}=L1();g();const{dataTheme:v,dataThemeChange:z}=z1();z();const{title:t1,getDropdownItemStyle:F,getDropdownItemClass:D}=S1(),{locale:Z,translationCh:a1,translationEn:l1}=T1(),y=h1({username:"admin",password:"admin123",verifyCode:""}),A=async C=>{f.value=!0,C&&await C.validate((s,q)=>{if(s)L().loginByUsername({username:y.username,password:"admin123"}).then(S=>{S.success&&x1().then(()=>{d.push(C1(!0).path),b1("登录成功",{type:"success"})})});else return f.value=!1,q})};function O({code:C}){C==="Enter"&&A(t.value)}return K(()=>{window.document.addEventListener("keypress",O)}),_1(()=>{window.document.removeEventListener("keypress",O)}),P(o,C=>{L().SET_VERIFYCODE(C)}),(C,s)=>{const q=m("el-switch"),S=m("IconifyIconOffline"),G=m("el-dropdown-item"),o1=m("el-dropdown-menu"),n1=m("el-dropdown"),B=m("el-input"),M=m("el-form-item"),s1=m("el-checkbox"),U=m("el-button"),i1=m("el-form"),c1=m("el-divider"),r1=m("IconifyIconOnline");return u(),b("div",n2,[p("img",{src:e(D1),class:"wave"},null,8,s2),p("div",i2,[a(q,{modelValue:e(v),"onUpdate:modelValue":s[0]||(s[0]=i=>g1(v)?v.value=i:null),"inline-prompt":"","active-icon":e(E1),"inactive-icon":e(q1),onChange:e(z)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),a(n1,{trigger:"click"},{dropdown:l(()=>[a(o1,{class:"translation"},{default:l(()=>[a(G,{style:j(e(F)(e(Z),"zh")),class:H(["dark:!text-white",e(D)(e(Z),"zh")]),onClick:e(a1)},{default:l(()=>[Y(a(S,{class:"check-zh",icon:e(J)},null,8,["icon"]),[[Q,e(Z)==="zh"]]),$(" 简体中文 ")]),_:1},8,["style","class","onClick"]),a(G,{style:j(e(F)(e(Z),"en")),class:H(["dark:!text-white",e(D)(e(Z),"en")]),onClick:e(l1)},{default:l(()=>[Y(p("span",c2,[a(S,{icon:e(J)},null,8,["icon"])],512),[[Q,e(Z)==="en"]]),$(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:l(()=>[a(e(B1),{class:"hover:text-primary hover:!bg-[transparent] w-[20px] h-[20px] ml-1.5 cursor-pointer outline-none duration-300"})]),_:1})]),p("div",r2,[p("div",d2,[(u(),w(v1(y1(e(e2)))))]),p("div",f2,[p("div",u2,[a(e(Q1),{class:"avatar"}),a(e(k),null,{default:l(()=>[p("h2",p2,[a(e(I1),{values:[e(t1)],cursor:!1,speed:150},null,8,["values"])])]),_:1}),n.value===0?(u(),w(i1,{key:0,ref_key:"ruleFormRef",ref:t,model:y,rules:e(Z1),size:"large"},{default:l(()=>[a(e(k),{delay:100},{default:l(()=>[a(M,{rules:[{required:!0,message:e(w1)(e(x)("login.usernameReg")),trigger:"blur"}],prop:"username"},{default:l(()=>[a(B,{clearable:"",modelValue:y.username,"onUpdate:modelValue":s[1]||(s[1]=i=>y.username=i),placeholder:e(c)("login.username"),"prefix-icon":e(N)(e(N1))},null,8,["modelValue","placeholder","prefix-icon"])]),_:1},8,["rules"])]),_:1}),a(e(k),{delay:150},{default:l(()=>[a(M,{prop:"password"},{default:l(()=>[a(B,{clearable:"","show-password":"",modelValue:y.password,"onUpdate:modelValue":s[2]||(s[2]=i=>y.password=i),placeholder:e(c)("login.password"),"prefix-icon":e(N)(e(U1))},null,8,["modelValue","placeholder","prefix-icon"])]),_:1})]),_:1}),a(e(k),{delay:200},{default:l(()=>[a(M,{prop:"verifyCode"},{default:l(()=>[a(B,{clearable:"",modelValue:y.verifyCode,"onUpdate:modelValue":s[4]||(s[4]=i=>y.verifyCode=i),placeholder:e(c)("login.verifyCode"),"prefix-icon":e(N)("ri:shield-keyhole-line")},{append:l(()=>[a(e(o2),{code:o.value,"onUpdate:code":s[3]||(s[3]=i=>o.value=i)},null,8,["code"])]),_:1},8,["modelValue","placeholder","prefix-icon"])]),_:1})]),_:1}),a(e(k),{delay:250},{default:l(()=>[a(M,null,{default:l(()=>[p("div",m2,[a(s1,{modelValue:_.value,"onUpdate:modelValue":s[5]||(s[5]=i=>_.value=i)},{default:l(()=>[$(V(e(c)("login.remember")),1)]),_:1},8,["modelValue"]),a(U,{link:"",type:"primary",onClick:s[6]||(s[6]=i=>e(L)().SET_CURRENTPAGE(4))},{default:l(()=>[$(V(e(c)("login.forget")),1)]),_:1})]),a(U,{class:"w-full mt-4",size:"default",type:"primary",loading:f.value,onClick:s[7]||(s[7]=i=>A(t.value))},{default:l(()=>[$(V(e(c)("login.login")),1)]),_:1},8,["loading"])]),_:1})]),_:1}),a(e(k),{delay:300},{default:l(()=>[a(M,null,{default:l(()=>[p("div",h2,[(u(!0),b(W,null,X(e(P1),(i,T)=>(u(),w(U,{key:T,class:"w-full mt-4",size:"default",onClick:w2=>e(L)().SET_CURRENTPAGE(T+1)},{default:l(()=>[$(V(e(c)(i.title)),1)]),_:2},1032,["onClick"]))),128))])]),_:1})]),_:1})]),_:1},8,["model","rules"])):I("",!0),n.value===0?(u(),w(e(k),{key:1,delay:350},{default:l(()=>[a(M,null,{default:l(()=>[a(c1,null,{default:l(()=>[p("p",_2,V(e(c)("login.thirdLogin")),1)]),_:1}),p("div",g2,[(u(!0),b(W,null,X(e(F1),(i,T)=>(u(),b("span",{key:T,title:e(c)(i.title)},[a(r1,{icon:`ri:${i.icon}-fill`,width:"20",class:"cursor-pointer text-gray-500 hover:text-blue-400"},null,8,["icon"])],8,v2))),128))])]),_:1})]),_:1})):I("",!0),n.value===1?(u(),w(M1,{key:2})):I("",!0),n.value===2?(u(),w($1,{key:3})):I("",!0),n.value===3?(u(),w(R1,{key:4})):I("",!0),n.value===4?(u(),w(V1,{key:5})):I("",!0)])])])])}}});const F2=k1(y2,[["__scopeId","data-v-371e2d49"]]);export{F2 as default}; diff --git a/dist/static/js/index-8a1a3626.js b/dist/static/js/index-8a1a3626.js new file mode 100644 index 000000000..efd172bd4 --- /dev/null +++ b/dist/static/js/index-8a1a3626.js @@ -0,0 +1 @@ +import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-d5647728.js";import"./columns-2721478e.js";import"./sortable.esm-679e0872.js";import"./index-0dd8d5e4.js";import"./data-4845d266.js";export{o as default}; diff --git a/dist/static/js/index-8a536d03.js b/dist/static/js/index-8a536d03.js deleted file mode 100644 index 17edef2d8..000000000 --- a/dist/static/js/index-8a536d03.js +++ /dev/null @@ -1 +0,0 @@ -import{ae as u,ab as p,u as _,ak as v}from"./index-c61a73ff.js";const f={class:"card-header"},y=Vue.defineComponent({name:"PermissionPage",__name:"index",setup(C){var l;const o=Vue.computed(()=>({width:"85vw",justifyContent:"start"})),t=Vue.ref((l=u())==null?void 0:l.username),s=[{value:"admin",label:"管理员角色"},{value:"common",label:"普通角色"}];function r(){u().loginByUsername({username:t.value,password:"admin123"}).then(n=>{n.success&&(p().removeItem("async-routes"),_().clearAllCachePage(),v())})}return(n,a)=>{const c=Vue.resolveComponent("el-tag"),V=Vue.resolveComponent("el-option"),m=Vue.resolveComponent("el-select"),i=Vue.resolveComponent("el-card"),d=Vue.resolveComponent("el-space");return Vue.openBlock(),Vue.createBlock(d,{direction:"vertical",size:"large"},{default:Vue.withCtx(()=>[Vue.createVNode(c,{style:Vue.normalizeStyle(o.value),size:"large",effect:"dark"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 模拟后台根据不同角色返回对应路由,观察左侧菜单变化(管理员角色可查看系统管理菜单、普通角色不可查看系统管理菜单) ")]),_:1},8,["style"]),Vue.createVNode(i,{shadow:"never",style:Vue.normalizeStyle(o.value)},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",f,[Vue.createElementVNode("span",null,"当前角色:"+Vue.toDisplayString(t.value),1)])]),default:Vue.withCtx(()=>[Vue.createVNode(m,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=e=>t.value=e),onChange:r},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(s,e=>Vue.createVNode(V,{key:e.value,label:e.label,value:e.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["style"])]),_:1})}}});export{y as default}; diff --git a/dist/static/js/index-8c8a5e0e.js b/dist/static/js/index-8c8a5e0e.js new file mode 100644 index 000000000..c4e4f53e2 --- /dev/null +++ b/dist/static/js/index-8c8a5e0e.js @@ -0,0 +1,10 @@ +import{a5 as T,d as $,r as s,a as j,c as l,j as U,k as m,i as E,g as n,w as r,u as d,m as v,ac as h,F as C,ae as F,f as u,h as O,l as q,e as R,br as G,n as H}from"./index-0dd8d5e4.js";import J from"./Card-514d8668.js";import{m as K}from"./message-ac5811da.js";import{_ as Q}from"./DialogForm.vue_vue_type_script_setup_true_lang-27dd14b2.js";import{u as W}from"./hooks-62079556.js";import{d as X}from"./search-cc37b371.js";import{d as Y}from"./add-circle-line-a03ff6bd.js";import"./more-2-fill-a666858a.js";const Z=g=>T.request("post","/getCardList",{data:g}),ee={class:"main"},te={class:"w-full flex justify-between mb-4"},ae=` + + `,me=$({name:"ListCard",__name:"index",setup(g){const w={name:"",status:"",description:"",type:"",mark:""},e=s({current:1,pageSize:12,total:0}),p=s([]),_=s(!0),y=async()=>{try{const{data:t}=await Z();p.value=t.list,e.value={...e.value,total:t.list.length}}catch{}finally{setTimeout(()=>{_.value=!1},500)}};j(()=>{y()});const c=s(!1),f=s({...w}),i=s(""),x=t=>{e.value.pageSize=t,e.value.current=1},L=t=>{e.value.current=t},b=t=>{G.confirm(t?`确认删除后${t.name}的所有产品信息将被清空, 且无法恢复`:"","提示",{type:"warning"}).then(()=>{K("删除成功",{type:"success"})}).catch(()=>{})},z=t=>{c.value=!0,H(()=>{f.value={...t,status:t!=null&&t.isSetup?"1":"0"}})};return(t,o)=>{const k=l("el-button"),S=l("IconifyIconOffline"),I=l("el-icon"),V=l("el-input"),D=l("el-empty"),M=l("el-col"),P=l("el-row"),A=l("el-pagination"),B=U("loading");return u(),m("div",ee,[E("div",te,[n(k,{icon:d(W)(d(Y)),onClick:o[0]||(o[0]=a=>c.value=!0)},{default:r(()=>[O(" 新建产品 ")]),_:1},8,["icon"]),n(V,{style:{width:"300px"},modelValue:i.value,"onUpdate:modelValue":o[1]||(o[1]=a=>i.value=a),placeholder:"请输入产品名称",clearable:""},{suffix:r(()=>[n(I,{class:"el-input__icon"},{default:r(()=>[v(n(S,{icon:d(X)},null,8,["icon"]),[[h,i.value.length===0]])]),_:1})]),_:1},8,["modelValue"])]),v((u(),m("div",{"element-loading-svg":ae,"element-loading-svg-view-box":"-10, -10, 50, 50"},[v(n(D,{description:"暂无数据"},null,512),[[h,p.value.slice(e.value.pageSize*(e.value.current-1),e.value.pageSize*e.value.current).filter(a=>a.name.toLowerCase().includes(i.value.toLowerCase())).length===0]]),e.value.total>0?(u(),m(C,{key:0},[n(P,{gutter:16},{default:r(()=>[(u(!0),m(C,null,q(p.value.slice(e.value.pageSize*(e.value.current-1),e.value.pageSize*e.value.current).filter(a=>a.name.toLowerCase().includes(i.value.toLowerCase())),(a,N)=>(u(),R(M,{key:N,xs:24,sm:12,md:8,lg:6,xl:4},{default:r(()=>[n(J,{product:a,onDeleteItem:b,onManageProduct:z},null,8,["product"])]),_:2},1024))),128))]),_:1}),n(A,{class:"float-right",currentPage:e.value.current,"onUpdate:currentPage":o[2]||(o[2]=a=>e.value.current=a),"page-size":e.value.pageSize,total:e.value.total,"page-sizes":[12,24,36],background:!0,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:x,onCurrentChange:L},null,8,["currentPage","page-size","total"])],64)):F("",!0)])),[[B,_.value]]),n(Q,{visible:c.value,"onUpdate:visible":o[3]||(o[3]=a=>c.value=a),data:f.value},null,8,["visible","data"])])}}});export{me as default}; diff --git a/dist/static/js/index-8ead185b.js b/dist/static/js/index-8ead185b.js deleted file mode 100644 index cdb658a8a..000000000 --- a/dist/static/js/index-8ead185b.js +++ /dev/null @@ -1 +0,0 @@ -import n from"./basic-568930cb.js";import r from"./menuGroup-1d509aa1.js";import u from"./menuDynamic-20a0b66d.js";import"./index.esm-ba027bbc.js";import"./index-c61a73ff.js";const c=Vue.createElementVNode("div",{class:"card-header"},[Vue.createElementVNode("span",{class:"font-medium"},"右键菜单组件")],-1),p=Vue.defineComponent({name:"ContextMenu",__name:"index",setup(a){return(m,d)=>{const e=Vue.resolveComponent("el-col"),t=Vue.resolveComponent("el-row"),o=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(o,{shadow:"never"},{header:Vue.withCtx(()=>[c]),default:Vue.withCtx(()=>[Vue.createVNode(t,{gutter:24},{default:Vue.withCtx(()=>[Vue.createVNode(e,{xs:24,sm:10,md:10,lg:8,xl:10},{default:Vue.withCtx(()=>[Vue.createVNode(n)]),_:1}),Vue.createVNode(e,{xs:24,sm:10,md:10,lg:8,xl:10},{default:Vue.withCtx(()=>[Vue.createVNode(r)]),_:1}),Vue.createVNode(e,{xs:24,sm:10,md:10,lg:8,xl:10},{default:Vue.withCtx(()=>[Vue.createVNode(u)]),_:1})]),_:1})]),_:1})}}});export{p as default}; diff --git a/dist/static/js/index-9312b9c4.js b/dist/static/js/index-9312b9c4.js deleted file mode 100644 index 2d78c9020..000000000 --- a/dist/static/js/index-9312b9c4.js +++ /dev/null @@ -1 +0,0 @@ -const l={class:"dark:text-white"},s={style:{"text-indent":"2em"}},m=Vue.defineComponent({name:"Menu1-3",__name:"index",setup(V){const e=Vue.ref(""),{t:n}=VueI18n.useI18n();return(a,t)=>{const u=Vue.resolveComponent("el-input");return Vue.openBlock(),Vue.createElementBlock("div",l,[Vue.createElementVNode("p",null,Vue.toDisplayString(Vue.unref(n)("menus.hsmenu1")),1),Vue.createElementVNode("p",s,Vue.toDisplayString(Vue.unref(n)("menus.hsmenu1-3")),1),Vue.createVNode(u,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=o=>e.value=o)},null,8,["modelValue"])])}}});export{m as default}; diff --git a/dist/static/js/index-9320116d.js b/dist/static/js/index-9320116d.js new file mode 100644 index 000000000..6bb76ceb7 --- /dev/null +++ b/dist/static/js/index-9320116d.js @@ -0,0 +1 @@ +import{d as A,a6 as F,x as B,a8 as T,n as N,g as a,u as K,F as p,ag as R,ah as c,ai as d,R as X,r as D,c as j,k as w,l as z,f as V,e as G,w as L,i as I,C as M,ae as J,_ as O}from"./index-0dd8d5e4.js";const i="stay",h="hs-on",f="hs-off",_="hs-range",g="both-left-sides",S="both-right-sides";let H="right",b=[],s=[];const P={HsKey:{type:Number||String,default:0},disabled:{type:Boolean,default:!1},value:{type:Number,default:0},max:{type:Array,default(){return[1,2,3,4,5,6,7,8,9,10]}},echo:{type:Array,default(){return[]}}},Q=A({name:"ReSelector",props:P,emits:["selectedVal"],setup(l,{emit:m}){const o=F(),y=l.value,v=B(()=>l.disabled),q=B(()=>{const e=[];let t=0,n=y;for(y!==Math.floor(y)&&n--;t{if(!l.disabled){if(s.length===1){b.length<1&&b.push({index:e});let t=b[0].index;if(e>t)for(H="right",R(!1,S,document.querySelector(".hs-select__item"+s[0].index));e>=t;)c(document.querySelector(".hs-select__item"+t),_),t++;else for(H="left",R(!0,S,document.querySelector(".hs-select__item"+s[0].index));e<=t;)c(document.querySelector(".hs-select__item"+t),_),t--}c(document.querySelector("."+f+e),h)}},u=e=>{if(l.disabled)return;const t=document.querySelector("."+f+e);if(t.className.includes(i))return!1;if(d(t,h),s.length===1){const n=b[0].index;if(e>=n)for(let r=0;r<=e;r++)d(document.querySelector(".hs-select__item"+r),_);else for(;e<=n;)d(document.querySelector(".hs-select__item"+e),_),e++}},x=(e,t)=>{if(l.disabled)return;const n=s.length;n<2?(s.push({item:t,index:e}),c(document.querySelector("."+f+e),i),c(document.querySelector(".hs-select__item"+s[0].index),g),s[1]&&(H==="right"?c(document.querySelector(".hs-select__item"+s[1].index),S):c(document.querySelector(".hs-select__item"+s[1].index),g)),n===1&&(H==="right"?m("selectedVal",{left:s[0].item,right:s[1].item,whole:s}):m("selectedVal",{left:s[1].item,right:s[0].item,whole:s}))):N(()=>{s.forEach(r=>{d(document.querySelector("."+f+r.index),h,i),d(document.querySelector(".hs-select__item"+r.index),g,S)}),s=[],b=[];for(let r=0;r<=l.max.length;r++){const $=document.querySelector(".hs-select__item"+r);$&&d($,_)}s.push({item:t,index:e}),c(document.querySelector("."+f+e),i),c(document.querySelector(".hs-select__item"+s[0].index),g)})},E=e=>{if(e.length!==0){if(e.length>2||e.length===1)throw"传入的数组长度必须是2";for(e.sort((t,n)=>t-n),c(o.refs["hsdiv"+l.HsKey+e[0]],h,i),c(o.refs["hstd"+l.HsKey+e[0]],g),c(o.refs["hsdiv"+l.HsKey+e[1]],h,i),c(o.refs["hstd"+l.HsKey+e[1]],S);e[1]>=e[0];)c(o.refs["hstd"+l.HsKey+e[0]],_),e[0]++}};return T(()=>{N(()=>{E(l.echo)})}),()=>a(p,null,[a("table",{cellspacing:"0",cellpadding:"0"},[a("tbody",null,[a("tr",null,[l.max.map((e,t)=>a("td",{"data-index":l.HsKey,ref:`hstd${l.HsKey}${t}`,class:`hs-select__item${t}`,onMousemove:()=>C(t),onMouseleave:()=>u(t),onClick:()=>x(t,e),style:{cursor:K(v)?"auto":"pointer",textAlign:"center"},key:t},[a("div",{ref:`hsdiv${l.HsKey}${t}`,class:`hs-item ${[K(q)[t]+t]}`},[a("span",null,[e])])]))])])])])}}),U=X(Q),W={class:"card-header"},Y={key:0,class:"mt-3"},Z=A({name:"Selector",__name:"index",setup(l){const m=D(""),o=D([{title:"基本使用",echo:[],disabled:!1},{title:"回显模式",echo:[2,7],disabled:!0}]),y=({left:v,right:q})=>{m.value=`${v}-${q}`};return(v,q)=>{const C=j("el-card");return V(),w("div",null,[(V(!0),w(p,null,z(o.value,(u,x)=>(V(),G(C,{class:"box-card",key:x,shadow:"never"},{header:L(()=>[I("div",W,[I("span",null,M(u.title),1)])]),default:L(()=>[a(K(U),{HsKey:x,echo:u.echo,onSelectedVal:y,disabled:u.disabled},null,8,["HsKey","echo","disabled"]),u.disabled?J("",!0):(V(),w("h4",Y,"选中范围:"+M(m.value),1))]),_:2},1024))),128))])}}});const ee=O(Z,[["__scopeId","data-v-2c78a51a"]]);export{ee as default}; diff --git a/dist/static/js/index-95b65695.js b/dist/static/js/index-95b65695.js new file mode 100644 index 000000000..d30c8f382 --- /dev/null +++ b/dist/static/js/index-95b65695.js @@ -0,0 +1 @@ +import{a6 as R,aI as P,aj as L,T as q,r as b,y as g,aJ as x,aK as I,aL as F,aM as S,aN as C,aO as W,x as y,aP as j,a as $}from"./index-0dd8d5e4.js";function h(t){var r;const e=F(t);return(r=e==null?void 0:e.$el)!=null?r:e}const E=x?window:void 0,H=x?window.document:void 0;function w(...t){let r,e,n,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,n,l]=t,r=E):[r,e,n,l]=t,!r)return I;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const f=[],o=()=>{f.forEach(d=>d()),f.length=0},u=(d,p,i,a)=>(d.addEventListener(p,i,a),()=>d.removeEventListener(p,i,a)),c=g(()=>[h(r),F(l)],([d,p])=>{o(),d&&f.push(...e.flatMap(i=>n.map(a=>u(d,i,a,p))))},{immediate:!0,flush:"post"}),m=()=>{c(),o()};return S(m),m}let _=!1;function T(t,r,e={}){const{window:n=E,ignore:l=[],capture:f=!0,detectIframe:o=!1}=e;if(!n)return;C&&!_&&(_=!0,Array.from(n.document.body.children).forEach(i=>i.addEventListener("click",I)));let u=!0;const c=i=>l.some(a=>{if(typeof a=="string")return Array.from(n.document.querySelectorAll(a)).some(v=>v===i.target||i.composedPath().includes(v));{const v=h(a);return v&&(i.target===v||i.composedPath().includes(v))}}),d=[w(n,"click",i=>{const a=h(t);if(!(!a||a===i.target||i.composedPath().includes(a))){if(i.detail===0&&(u=!c(i)),!u){u=!0;return}r(i)}},{passive:!0,capture:f}),w(n,"pointerdown",i=>{const a=h(t);a&&(u=!i.composedPath().includes(a)&&!c(i))},{passive:!0}),o&&w(n,"blur",i=>{var a;const v=h(t);((a=n.document.activeElement)==null?void 0:a.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&r(i)})].filter(Boolean);return()=>d.forEach(i=>i())}function B(t){return typeof t=="function"?t:typeof t=="string"?r=>r.key===t:Array.isArray(t)?r=>t.includes(r.key):()=>!0}function U(...t){let r,e,n={};t.length===3?(r=t[0],e=t[1],n=t[2]):t.length===2?typeof t[1]=="object"?(r=!0,e=t[0],n=t[1]):(r=t[0],e=t[1]):(r=!0,e=t[0]);const{target:l=E,eventName:f="keydown",passive:o=!1,dedupe:u=!1}=n,c=B(r);return w(l,f,d=>{d.repeat&&F(u)||c(d)&&e(d)},o)}function G(t,r=null){const e=R();let n=()=>{};const l=P((f,o)=>(n=o,{get(){var u,c;return f(),(c=(u=e==null?void 0:e.proxy)==null?void 0:u.$refs[t])!=null?c:r},set(){}}));return L(n),q(n),l}function D(){const t=b(!1);return R()&&$(()=>{t.value=!0}),t}function O(t){const r=D();return y(()=>(r.value,!!t()))}function K(t,r={}){const{window:e=E}=r,n=O(()=>e&&"matchMedia"in e&&typeof e.matchMedia=="function");let l;const f=b(!1),o=()=>{l&&("removeEventListener"in l?l.removeEventListener("change",u):l.removeListener(u))},u=()=>{n.value&&(o(),l=e.matchMedia(j(t).value),f.value=!!(l!=null&&l.matches),l&&("addEventListener"in l?l.addEventListener("change",u):l.addListener(u)))};return W(u),S(()=>o()),f}var M=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,V=(t,r)=>{var e={};for(var n in t)N.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&M)for(var n of M(t))r.indexOf(n)<0&&Q.call(t,n)&&(e[n]=t[n]);return e};function X(t,r,e={}){const n=e,{window:l=E}=n,f=V(n,["window"]);let o;const u=O(()=>l&&"ResizeObserver"in l),c=()=>{o&&(o.disconnect(),o=void 0)},m=y(()=>Array.isArray(t)?t.map(i=>h(i)):[h(t)]),d=g(m,i=>{if(c(),u.value&&l){o=new ResizeObserver(r);for(const a of i)a&&o.observe(a,f)}},{immediate:!0,flush:"post",deep:!0}),p=()=>{c(),d()};return S(p),{isSupported:u,stop:p}}const A=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Y(t,r={}){const{document:e=H,autoExit:n=!1}=r,l=y(()=>{var s;return(s=h(t))!=null?s:e==null?void 0:e.querySelector("html")}),f=b(!1),o=y(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(s=>e&&s in e||l.value&&s in l.value)),u=y(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(s=>e&&s in e||l.value&&s in l.value)),c=y(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(s=>e&&s in e||l.value&&s in l.value)),m=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(s=>e&&s in e),d=O(()=>l.value&&e&&o.value!==void 0&&u.value!==void 0&&c.value!==void 0),p=()=>m?(e==null?void 0:e[m])===l.value:!1,i=()=>{if(c.value){if(e&&e[c.value]!=null)return e[c.value];{const s=l.value;if((s==null?void 0:s[c.value])!=null)return!!s[c.value]}}return!1};async function a(){if(d.value){if(u.value)if((e==null?void 0:e[u.value])!=null)await e[u.value]();else{const s=l.value;(s==null?void 0:s[u.value])!=null&&await s[u.value]()}f.value=!1}}async function v(){if(!d.value)return;i()&&await a();const s=l.value;o.value&&(s==null?void 0:s[o.value])!=null&&(await s[o.value](),f.value=!0)}async function z(){await(f.value?a():v())}const k=()=>{const s=i();(!s||s&&p())&&(f.value=s)};return w(e,A,k,!1),w(()=>h(l),A,k,!1),n&&S(a),{isSupported:d,isFullscreen:f,enter:v,exit:a,toggle:z}}function Z(t={}){const{window:r=E,initialWidth:e=1/0,initialHeight:n=1/0,listenOrientation:l=!0,includeScrollbar:f=!0}=t,o=b(e),u=b(n),c=()=>{r&&(f?(o.value=r.innerWidth,u.value=r.innerHeight):(o.value=r.document.documentElement.clientWidth,u.value=r.document.documentElement.clientHeight))};if(c(),L(c),w("resize",c,{passive:!0}),l){const m=K("(orientation: portrait)");g(m,()=>c())}return{width:o,height:u}}export{Y as a,X as b,T as c,Z as d,U as o,G as t,w as u}; diff --git a/dist/static/js/index-98c0749c.js b/dist/static/js/index-98c0749c.js deleted file mode 100644 index 4a62add42..000000000 --- a/dist/static/js/index-98c0749c.js +++ /dev/null @@ -1 +0,0 @@ -import{J as v,u as _,aq as k,d as x,$ as s,t as d,ar as i}from"./index-c61a73ff.js";import{u as E}from"./hooks-f5028e91.js";const w=Vue.createElementVNode("div",null,"标签页复用,超出限制自动关闭",-1),g={class:"flex flex-wrap items-center"},T=Vue.createElementVNode("p",null,"query传参模式:",-1),$={class:"flex flex-wrap items-center"},y=Vue.createElementVNode("p",null,"params传参模式:",-1),q=Vue.defineComponent({name:"Tabs",__name:"index",setup(B){const{toDetail:r,router:c}=E(),m=v(_().wholeMenus,!0),l=Vue.computed(()=>k(x(m),0,{disabled:!0})),a=Vue.ref([]),V=Vue.computed(()=>{var u;return(u=s())==null?void 0:u.multiTags});function p(){a.value.length!==0&&a.value.forEach(u=>{const t=i(l.value,u).redirect??i(l.value,u).path;s().handleTags("splice",t),t==="/tabs/index"&&c.push({path:V.value[V.value.length-1].path})})}return(u,t)=>{const n=Vue.resolveComponent("el-button"),o=Vue.resolveComponent("el-divider"),h=Vue.resolveComponent("el-tree-select"),f=Vue.resolveComponent("el-link"),C=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(C,{shadow:"never"},{header:Vue.withCtx(()=>[w]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",g,[T,(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(6,e=>Vue.createVNode(n,{class:"m-2",key:e,onClick:N=>Vue.unref(r)(e,"query")},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 打开"+Vue.toDisplayString(e)+"详情页 ",1)]),_:2},1032,["onClick"])),64))]),Vue.createVNode(o),Vue.createElementVNode("div",$,[y,(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(6,e=>Vue.createVNode(n,{class:"m-2",key:e,onClick:N=>Vue.unref(r)(e,"params")},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 打开"+Vue.toDisplayString(e)+"详情页 ",1)]),_:2},1032,["onClick"])),64))]),Vue.createVNode(o),Vue.createVNode(h,{class:"w-[300px]","node-key":"uniqueId",placeholder:"请选择要关闭的标签",clearable:"",multiple:"",filterable:"","default-expand-all":"",props:{label:e=>Vue.unref(d)(e.meta.title),value:"uniqueId",children:"children",disabled:"disabled"},data:l.value,modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e)},{default:Vue.withCtx(({data:e})=>[Vue.createElementVNode("span",null,Vue.toDisplayString(Vue.unref(d)(e.meta.title)),1)]),_:1},8,["props","data","modelValue"]),Vue.createVNode(n,{class:"m-2",onClick:p},{default:Vue.withCtx(()=>[Vue.createTextVNode("关闭标签")]),_:1}),Vue.createVNode(o),Vue.createVNode(n,{onClick:t[1]||(t[1]=e=>u.$router.push({name:"Menu1-2-2"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 跳转页内菜单(传name对象,优先推荐) ")]),_:1}),Vue.createVNode(n,{onClick:t[2]||(t[2]=e=>u.$router.push("/nested/menu1/menu1-2/menu1-2-2"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 跳转页内菜单(直接传要跳转的路径) ")]),_:1}),Vue.createVNode(n,{onClick:t[3]||(t[3]=e=>u.$router.push({path:"/nested/menu1/menu1-2/menu1-2-2"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 跳转页内菜单(传path对象) ")]),_:1}),Vue.createVNode(o),Vue.createVNode(n,{onClick:t[4]||(t[4]=e=>u.$router.push({name:"Menu1-2-2",query:{text:"传name对象,优先推荐"}}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 携参跳转页内菜单(传name对象,优先推荐) ")]),_:1}),Vue.createVNode(n,{onClick:t[5]||(t[5]=e=>u.$router.push({path:"/nested/menu1/menu1-2/menu1-2-2",query:{text:"传path对象"}}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 携参跳转页内菜单(传path对象) ")]),_:1}),Vue.createVNode(f,{class:"ml-4",href:"https://router.vuejs.org/zh/guide/essentials/navigation.html#%E5%AF%BC%E8%88%AA%E5%88%B0%E4%B8%8D%E5%90%8C%E7%9A%84%E4%BD%8D%E7%BD%AE",target:"_blank"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 点击查看更多跳转方式 ")]),_:1}),Vue.createVNode(o),Vue.createVNode(n,{onClick:t[6]||(t[6]=e=>u.$router.push({name:"Empty"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 跳转无Layout的空白页面 ")]),_:1})]),_:1})}}});export{q as default}; diff --git a/dist/static/js/index-bc3a5417.js b/dist/static/js/index-9a545244.js similarity index 56% rename from dist/static/js/index-bc3a5417.js rename to dist/static/js/index-9a545244.js index 17ee7e6e1..08340bd3a 100644 --- a/dist/static/js/index-bc3a5417.js +++ b/dist/static/js/index-9a545244.js @@ -1,4 +1,4 @@ -import{g as HO,_ as rf,H as of}from"./index-c61a73ff.js";import{u as XO}from"./hooks-55e29a46.js";import{V as GO}from"./styles-eecf6cc2.js";import{S as UO}from"./set-up-729eb907.js";import"./_vue_commonjs-external-c09696f7.js";const YO=[{incoming:[],outgoing:["Flow_33inf2k"],dockers:[],type:2,properties:{a:"efrwe",b:"wewe",name:"开始",x:280,y:200,text:{x:280,y:200,value:"开始"},logicFlowType:"bpmn:startEvent"},key:"Event_1d42u4p"},{incoming:["Flow_379e0o9"],outgoing:[],dockers:[],type:3,properties:{a:"efrwe",b:"wewe",name:"结束",x:920,y:200,text:{x:920,y:200,value:"结束"},logicFlowType:"bpmn:endEvent"},key:"Event_08p8i6q"},{incoming:["Flow_0pfouf0"],outgoing:["Flow_3918lhh"],dockers:[],type:6,properties:{a:"efrwe",b:"wewe",name:"网关",x:580,y:200,text:{x:580,y:200,value:"网关"},logicFlowType:"bpmn:exclusiveGateway"},key:"Gateway_1fngqgj"},{incoming:["Flow_33inf2k"],outgoing:["Flow_0pfouf0"],dockers:[],type:4,properties:{a:"efrwe",b:"wewe",name:"用户",x:420,y:200,text:{x:420,y:200,value:"用户"},logicFlowType:"bpmn:userTask"},key:"Activity_2mgtaia"},{incoming:["Flow_3918lhh"],outgoing:["Flow_379e0o9"],dockers:[],type:5,properties:{a:"efrwe",b:"wewe",name:"服务",x:760,y:200,text:{x:760,y:200,value:"服务"},logicFlowType:"bpmn:serviceTask"},key:"Activity_1sp8qc8"},{incoming:["Event_1d42u4p"],outgoing:["Activity_2mgtaia"],type:1,dockers:[],properties:{name:"边",text:{x:331,y:200,value:"边"},startPoint:{x:298,y:200},endPoint:{x:370,y:200},pointsList:[{x:298,y:200},{x:370,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_33inf2k"},{incoming:["Activity_2mgtaia"],outgoing:["Gateway_1fngqgj"],type:1,dockers:[],properties:{name:"边2",text:{x:507,y:200,value:"边2"},startPoint:{x:470,y:200},endPoint:{x:555,y:200},pointsList:[{x:470,y:200},{x:555,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_0pfouf0"},{incoming:["Gateway_1fngqgj"],outgoing:["Activity_1sp8qc8"],type:1,dockers:[],properties:{name:"边3",text:{x:664,y:200,value:"边3"},startPoint:{x:605,y:200},endPoint:{x:710,y:200},pointsList:[{x:605,y:200},{x:710,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_3918lhh"},{incoming:["Activity_1sp8qc8"],outgoing:["Event_08p8i6q"],type:1,dockers:[],properties:{name:"边4",text:{x:871,y:200,value:"边4"},startPoint:{x:810,y:200},endPoint:{x:902,y:200},pointsList:[{x:810,y:200},{x:902,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_379e0o9"}],WO={flowElementList:YO};var Zl={exports:{}};(function(v,y){(function(s,p){v.exports=p()})(window,function(){return function(s){var p={};function o(l){if(p[l])return p[l].exports;var c=p[l]={i:l,l:!1,exports:{}};return s[l].call(c.exports,c,c.exports,o),c.l=!0,c.exports}return o.m=s,o.c=p,o.d=function(l,c,b){o.o(l,c)||Object.defineProperty(l,c,{enumerable:!0,get:b})},o.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},o.t=function(l,c){if(1&c&&(l=o(l)),8&c||4&c&&typeof l=="object"&&l&&l.__esModule)return l;var b=Object.create(null);if(o.r(b),Object.defineProperty(b,"default",{enumerable:!0,value:l}),2&c&&typeof l!="string")for(var _ in l)o.d(b,_,function(E){return l[E]}.bind(null,_));return b},o.n=function(l){var c=l&&l.__esModule?function(){return l.default}:function(){return l};return o.d(c,"a",c),c},o.o=function(l,c){return Object.prototype.hasOwnProperty.call(l,c)},o.p="",o(o.s=215)}([function(s,p,o){o.d(p,"a",function(){return q}),o.d(p,"b",function(){return ie}),o.d(p,"c",function(){return Re}),o.d(p,"d",function(){return $e}),o.d(p,"e",function(){return B}),o.d(p,"f",function(){return ee}),o.d(p,"g",function(){return B}),o.d(p,"h",function(){return ke}),o.d(p,"i",function(){return c}),o.d(p,"j",function(){return We}),o.d(p,"k",function(){return F});var l,c,b,_,E,w,k,j={},P=[],D=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function N(Z,$){for(var ae in $)Z[ae]=$[ae];return Z}function I(Z){var $=Z.parentNode;$&&$.removeChild(Z)}function B(Z,$,ae){var _e,Te,we,Ke={};for(we in $)we=="key"?_e=$[we]:we=="ref"?Te=$[we]:Ke[we]=$[we];if(arguments.length>2&&(Ke.children=arguments.length>3?l.call(arguments,2):ae),typeof Z=="function"&&Z.defaultProps!=null)for(we in Z.defaultProps)Ke[we]===void 0&&(Ke[we]=Z.defaultProps[we]);return H(Z,Ke,_e,Te,null)}function H(Z,$,ae,_e,Te){var we={type:Z,props:$,key:ae,ref:_e,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Te??++b};return Te==null&&c.vnode!=null&&c.vnode(we),we}function ee(){return{current:null}}function ie(Z){return Z.children}function q(Z,$){this.props=Z,this.context=$}function Y(Z,$){if($==null)return Z.__?Y(Z.__,Z.__.__k.indexOf(Z)+1):null;for(var ae;$0?H(Le.type,Le.props,Le.key,null,Le.__v):Le)!=null){if(Le.__=ae,Le.__b=ae.__b+1,(te=ht[ve])===null||te&&Le.key==te.key&&Le.type===te.type)ht[ve]=void 0;else for(Fe=0;Fe2&&(Ke.children=arguments.length>3?l.call(arguments,2):ae),H(Z.type,Ke,_e||Z.key,Te||Z.ref,null)}function $e(Z,$){var ae={__c:$="__cC"+k++,__:Z,Consumer:function(_e,Te){return _e.children(Te)},Provider:function(_e){var Te,we;return this.getChildContext||(Te=[],(we={})[$]=this,this.getChildContext=function(){return we},this.shouldComponentUpdate=function(Ke){this.props.value!==Ke.value&&Te.some(L)},this.sub=function(Ke){Te.push(Ke);var nt=Ke.componentWillUnmount;Ke.componentWillUnmount=function(){Te.splice(Te.indexOf(Ke),1),nt&&nt.call(Ke)}}),_e.children}};return ae.Provider.__=ae.Consumer.contextType=ae}l=P.slice,c={__e:function(Z,$){for(var ae,_e,Te;$=$.__;)if((ae=$.__c)&&!ae.__)try{if((_e=ae.constructor)&&_e.getDerivedStateFromError!=null&&(ae.setState(_e.getDerivedStateFromError(Z)),Te=ae.__d),ae.componentDidCatch!=null&&(ae.componentDidCatch(Z),Te=ae.__d),Te)return ae.__E=ae}catch(we){Z=we}throw Z}},b=0,q.prototype.setState=function(Z,$){var ae;ae=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=N({},this.state),typeof Z=="function"&&(Z=Z(N({},ae),this.props)),Z&&N(ae,Z),Z!=null&&this.__v&&($&&this.__h.push($),L(this))},q.prototype.forceUpdate=function(Z){this.__v&&(this.__e=!0,Z&&this.__h.push(Z),L(this))},q.prototype.render=ie,_=[],E=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,M.__r=0,k=0},function(s,p,o){(function(l,c){o.d(p,"a",function(){return L}),o.d(p,"b",function(){return Uo}),o.d(p,"c",function(){return In}),o.d(p,"d",function(){return et}),o.d(p,"e",function(){return De}),o.d(p,"f",function(){return Me}),o.d(p,"g",function(){return Ue}),o.d(p,"h",function(){return Tr}),o.d(p,"i",function(){return Pt}),o.d(p,"j",function(){return ze}),o.d(p,"k",function(){return Un}),o.d(p,"l",function(){return Ho}),o.d(p,"m",function(){return vt}),o.d(p,"n",function(){return Pr}),o.d(p,"o",function(){return R}),o.d(p,"p",function(){return Xi}),o.d(p,"q",function(){return Yn}),o.d(p,"r",function(){return Fi}),o.d(p,"s",function(){return _n}),o.d(p,"t",function(){return Gr}),o.d(p,"u",function(){return ao}),o.d(p,"v",function(){return Lu}),o.d(p,"w",function(){return Hi}),o.d(p,"x",function(){return Yr}),o.d(p,"y",function(){return Mn}),o.d(p,"z",function(){return It}),o.d(p,"A",function(){return dn}),o.d(p,"B",function(){return Wn}),o.d(p,"C",function(){return Ge}),o.d(p,"D",function(){return Ui}),o.d(p,"E",function(){return jr}),o.d(p,"F",function(){return Sr}),o.d(p,"G",function(){return Cu}),o.d(p,"H",function(){return Di}),o.d(p,"I",function(){return Bu}),o.d(p,"J",function(){return bn}),o.d(p,"K",function(){return oe}),o.d(p,"L",function(){return Zt}),o.d(p,"M",function(){return Yi});var b=[];Object.freeze(b);var _={};function E(){return++Ve.mobxGuid}function w(h){throw k(!1,h),"X"}function k(h,g){if(!h)throw new Error("[mobx] "+(g||"An invariant failed, however the error is obfuscated because this is a production build."))}Object.freeze(_);function j(h){var g=!1;return function(){if(!g)return g=!0,h.apply(this,arguments)}}var P=function(){};function D(h){return h!==null&&typeof h=="object"}function N(h){if(h===null||typeof h!="object")return!1;var g=Object.getPrototypeOf(h);return g===Object.prototype||g===null}function I(h,g,x){Object.defineProperty(h,g,{enumerable:!1,writable:!0,configurable:!0,value:x})}function B(h,g){var x="isMobX"+h;return g.prototype[x]=!0,function(A){return D(A)&&A[x]===!0}}function H(h){return h instanceof Map}function ee(h){return h instanceof Set}function ie(h){var g=new Set;for(var x in h)g.add(x);return Object.getOwnPropertySymbols(h).forEach(function(A){Object.getOwnPropertyDescriptor(h,A).enumerable&&g.add(A)}),Array.from(g)}function q(h){return h&&h.toString?h.toString():new String(h).toString()}function Y(h){return h===null?null:typeof h=="object"?""+h:h}var K=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:Object.getOwnPropertyNames,L=Symbol("mobx administration"),M=function(){function h(g){g===void 0&&(g="Atom@"+E()),this.name=g,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Fe.NOT_TRACKING}return h.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(g){return g()})},h.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(g){return g()})},h.prototype.reportObserved=function(){return Ai(this)},h.prototype.reportChanged=function(){gn(),function(g){g.lowestObserverState!==Fe.STALE&&(g.lowestObserverState=Fe.STALE,g.observers.forEach(function(x){x.dependenciesState===Fe.UP_TO_DATE&&(x.isTracing!==te.NONE&&Gn(x,g),x.onBecomeStale()),x.dependenciesState=Fe.STALE}))}(this),vn()},h.prototype.toString=function(){return this.name},h}(),z=B("Atom",M);function R(h,g,x){g===void 0&&(g=P),x===void 0&&(x=P);var A,V=new M(h);return g!==P&&Ri("onBecomeObserved",V,g,A),x!==P&&jr(V,x),V}var F={identity:function(h,g){return h===g},structural:function(h,g){return Wo(h,g)},default:function(h,g){return Object.is(h,g)},shallow:function(h,g){return Wo(h,g,1)}},J=function(h,g){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,A){x.__proto__=A}||function(x,A){for(var V in A)A.hasOwnProperty(V)&&(x[V]=A[V])},J(h,g)};/*! ***************************************************************************** +import{O as a1,d as Ru,r as jr,a as Bg,u as fn,c as Ti,k as co,i as Pr,F as Fg,l as Hg,f as ar,aY as lg,g as Fo,w as Ho,A as fg,ab as Xg,_ as hf,ae as Gg,C as u1,e as uf,R as yf,h as pg,p as s1,q as c1}from"./index-0dd8d5e4.js";import{u as l1}from"./hooks-62079556.js";import{V as f1}from"./styles-cf4bf16f.js";import{d as p1}from"./set-up-e6942411.js";import"./vue.runtime.esm-bundler-c42d439d.js";const d1=[{incoming:[],outgoing:["Flow_33inf2k"],dockers:[],type:2,properties:{a:"efrwe",b:"wewe",name:"开始",x:280,y:200,text:{x:280,y:200,value:"开始"},logicFlowType:"bpmn:startEvent"},key:"Event_1d42u4p"},{incoming:["Flow_379e0o9"],outgoing:[],dockers:[],type:3,properties:{a:"efrwe",b:"wewe",name:"结束",x:920,y:200,text:{x:920,y:200,value:"结束"},logicFlowType:"bpmn:endEvent"},key:"Event_08p8i6q"},{incoming:["Flow_0pfouf0"],outgoing:["Flow_3918lhh"],dockers:[],type:6,properties:{a:"efrwe",b:"wewe",name:"网关",x:580,y:200,text:{x:580,y:200,value:"网关"},logicFlowType:"bpmn:exclusiveGateway"},key:"Gateway_1fngqgj"},{incoming:["Flow_33inf2k"],outgoing:["Flow_0pfouf0"],dockers:[],type:4,properties:{a:"efrwe",b:"wewe",name:"用户",x:420,y:200,text:{x:420,y:200,value:"用户"},logicFlowType:"bpmn:userTask"},key:"Activity_2mgtaia"},{incoming:["Flow_3918lhh"],outgoing:["Flow_379e0o9"],dockers:[],type:5,properties:{a:"efrwe",b:"wewe",name:"服务",x:760,y:200,text:{x:760,y:200,value:"服务"},logicFlowType:"bpmn:serviceTask"},key:"Activity_1sp8qc8"},{incoming:["Event_1d42u4p"],outgoing:["Activity_2mgtaia"],type:1,dockers:[],properties:{name:"边",text:{x:331,y:200,value:"边"},startPoint:{x:298,y:200},endPoint:{x:370,y:200},pointsList:[{x:298,y:200},{x:370,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_33inf2k"},{incoming:["Activity_2mgtaia"],outgoing:["Gateway_1fngqgj"],type:1,dockers:[],properties:{name:"边2",text:{x:507,y:200,value:"边2"},startPoint:{x:470,y:200},endPoint:{x:555,y:200},pointsList:[{x:470,y:200},{x:555,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_0pfouf0"},{incoming:["Gateway_1fngqgj"],outgoing:["Activity_1sp8qc8"],type:1,dockers:[],properties:{name:"边3",text:{x:664,y:200,value:"边3"},startPoint:{x:605,y:200},endPoint:{x:710,y:200},pointsList:[{x:605,y:200},{x:710,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_3918lhh"},{incoming:["Activity_1sp8qc8"],outgoing:["Event_08p8i6q"],type:1,dockers:[],properties:{name:"边4",text:{x:871,y:200,value:"边4"},startPoint:{x:810,y:200},endPoint:{x:902,y:200},pointsList:[{x:810,y:200},{x:902,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_379e0o9"}],h1={flowElementList:d1};var sf={exports:{}};(function(v,y){(function(s,p){v.exports=p()})(window,function(){return function(s){var p={};function o(l){if(p[l])return p[l].exports;var c=p[l]={i:l,l:!1,exports:{}};return s[l].call(c.exports,c,c.exports,o),c.l=!0,c.exports}return o.m=s,o.c=p,o.d=function(l,c,b){o.o(l,c)||Object.defineProperty(l,c,{enumerable:!0,get:b})},o.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},o.t=function(l,c){if(1&c&&(l=o(l)),8&c||4&c&&typeof l=="object"&&l&&l.__esModule)return l;var b=Object.create(null);if(o.r(b),Object.defineProperty(b,"default",{enumerable:!0,value:l}),2&c&&typeof l!="string")for(var _ in l)o.d(b,_,function(E){return l[E]}.bind(null,_));return b},o.n=function(l){var c=l&&l.__esModule?function(){return l.default}:function(){return l};return o.d(c,"a",c),c},o.o=function(l,c){return Object.prototype.hasOwnProperty.call(l,c)},o.p="",o(o.s=215)}([function(s,p,o){o.d(p,"a",function(){return q}),o.d(p,"b",function(){return ie}),o.d(p,"c",function(){return Re}),o.d(p,"d",function(){return $e}),o.d(p,"e",function(){return B}),o.d(p,"f",function(){return ee}),o.d(p,"g",function(){return B}),o.d(p,"h",function(){return ke}),o.d(p,"i",function(){return c}),o.d(p,"j",function(){return We}),o.d(p,"k",function(){return F});var l,c,b,_,E,w,k,j={},P=[],D=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function N(Z,$){for(var ae in $)Z[ae]=$[ae];return Z}function I(Z){var $=Z.parentNode;$&&$.removeChild(Z)}function B(Z,$,ae){var _e,Ae,we,Ke={};for(we in $)we=="key"?_e=$[we]:we=="ref"?Ae=$[we]:Ke[we]=$[we];if(arguments.length>2&&(Ke.children=arguments.length>3?l.call(arguments,2):ae),typeof Z=="function"&&Z.defaultProps!=null)for(we in Z.defaultProps)Ke[we]===void 0&&(Ke[we]=Z.defaultProps[we]);return X(Z,Ke,_e,Ae,null)}function X(Z,$,ae,_e,Ae){var we={type:Z,props:$,key:ae,ref:_e,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Ae??++b};return Ae==null&&c.vnode!=null&&c.vnode(we),we}function ee(){return{current:null}}function ie(Z){return Z.children}function q(Z,$){this.props=Z,this.context=$}function V(Z,$){if($==null)return Z.__?V(Z.__,Z.__.__k.indexOf(Z)+1):null;for(var ae;$0?X(Le.type,Le.props,Le.key,null,Le.__v):Le)!=null){if(Le.__=ae,Le.__b=ae.__b+1,(te=ht[ve])===null||te&&Le.key==te.key&&Le.type===te.type)ht[ve]=void 0;else for(Fe=0;Fe2&&(Ke.children=arguments.length>3?l.call(arguments,2):ae),X(Z.type,Ke,_e||Z.key,Ae||Z.ref,null)}function $e(Z,$){var ae={__c:$="__cC"+k++,__:Z,Consumer:function(_e,Ae){return _e.children(Ae)},Provider:function(_e){var Ae,we;return this.getChildContext||(Ae=[],(we={})[$]=this,this.getChildContext=function(){return we},this.shouldComponentUpdate=function(Ke){this.props.value!==Ke.value&&Ae.some(L)},this.sub=function(Ke){Ae.push(Ke);var nt=Ke.componentWillUnmount;Ke.componentWillUnmount=function(){Ae.splice(Ae.indexOf(Ke),1),nt&&nt.call(Ke)}}),_e.children}};return ae.Provider.__=ae.Consumer.contextType=ae}l=P.slice,c={__e:function(Z,$){for(var ae,_e,Ae;$=$.__;)if((ae=$.__c)&&!ae.__)try{if((_e=ae.constructor)&&_e.getDerivedStateFromError!=null&&(ae.setState(_e.getDerivedStateFromError(Z)),Ae=ae.__d),ae.componentDidCatch!=null&&(ae.componentDidCatch(Z),Ae=ae.__d),Ae)return ae.__E=ae}catch(we){Z=we}throw Z}},b=0,q.prototype.setState=function(Z,$){var ae;ae=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=N({},this.state),typeof Z=="function"&&(Z=Z(N({},ae),this.props)),Z&&N(ae,Z),Z!=null&&this.__v&&($&&this.__h.push($),L(this))},q.prototype.forceUpdate=function(Z){this.__v&&(this.__e=!0,Z&&this.__h.push(Z),L(this))},q.prototype.render=ie,_=[],E=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,M.__r=0,k=0},function(s,p,o){(function(l,c){o.d(p,"a",function(){return L}),o.d(p,"b",function(){return Jo}),o.d(p,"c",function(){return Ln}),o.d(p,"d",function(){return et}),o.d(p,"e",function(){return De}),o.d(p,"f",function(){return Me}),o.d(p,"g",function(){return Ye}),o.d(p,"h",function(){return Nr}),o.d(p,"i",function(){return Pt}),o.d(p,"j",function(){return ze}),o.d(p,"k",function(){return Vn}),o.d(p,"l",function(){return Ko}),o.d(p,"m",function(){return vt}),o.d(p,"n",function(){return Mr}),o.d(p,"o",function(){return R}),o.d(p,"p",function(){return Zi}),o.d(p,"q",function(){return Wn}),o.d(p,"r",function(){return $i}),o.d(p,"s",function(){return On}),o.d(p,"t",function(){return $r}),o.d(p,"u",function(){return fo}),o.d(p,"v",function(){return Vu}),o.d(p,"w",function(){return qi}),o.d(p,"x",function(){return qr}),o.d(p,"y",function(){return Dn}),o.d(p,"z",function(){return It}),o.d(p,"A",function(){return hn}),o.d(p,"B",function(){return $n}),o.d(p,"C",function(){return Ue}),o.d(p,"D",function(){return Qi}),o.d(p,"E",function(){return Tr}),o.d(p,"F",function(){return Ar}),o.d(p,"G",function(){return Gu}),o.d(p,"H",function(){return Fi}),o.d(p,"I",function(){return $u}),o.d(p,"J",function(){return mn}),o.d(p,"K",function(){return oe}),o.d(p,"L",function(){return Zt}),o.d(p,"M",function(){return ea});var b=[];Object.freeze(b);var _={};function E(){return++He.mobxGuid}function w(h){throw k(!1,h),"X"}function k(h,g){if(!h)throw new Error("[mobx] "+(g||"An invariant failed, however the error is obfuscated because this is a production build."))}Object.freeze(_);function j(h){var g=!1;return function(){if(!g)return g=!0,h.apply(this,arguments)}}var P=function(){};function D(h){return h!==null&&typeof h=="object"}function N(h){if(h===null||typeof h!="object")return!1;var g=Object.getPrototypeOf(h);return g===Object.prototype||g===null}function I(h,g,x){Object.defineProperty(h,g,{enumerable:!1,writable:!0,configurable:!0,value:x})}function B(h,g){var x="isMobX"+h;return g.prototype[x]=!0,function(T){return D(T)&&T[x]===!0}}function X(h){return h instanceof Map}function ee(h){return h instanceof Set}function ie(h){var g=new Set;for(var x in h)g.add(x);return Object.getOwnPropertySymbols(h).forEach(function(T){Object.getOwnPropertyDescriptor(h,T).enumerable&&g.add(T)}),Array.from(g)}function q(h){return h&&h.toString?h.toString():new String(h).toString()}function V(h){return h===null?null:typeof h=="object"?""+h:h}var K=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:Object.getOwnPropertyNames,L=Symbol("mobx administration"),M=function(){function h(g){g===void 0&&(g="Atom@"+E()),this.name=g,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Fe.NOT_TRACKING}return h.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(g){return g()})},h.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(g){return g()})},h.prototype.reportObserved=function(){return zi(this)},h.prototype.reportChanged=function(){vn(),function(g){g.lowestObserverState!==Fe.STALE&&(g.lowestObserverState=Fe.STALE,g.observers.forEach(function(x){x.dependenciesState===Fe.UP_TO_DATE&&(x.isTracing!==te.NONE&&Yn(x,g),x.onBecomeStale()),x.dependenciesState=Fe.STALE}))}(this),bn()},h.prototype.toString=function(){return this.name},h}(),z=B("Atom",M);function R(h,g,x){g===void 0&&(g=P),x===void 0&&(x=P);var T,H=new M(h);return g!==P&&Gi("onBecomeObserved",H,g,T),x!==P&&Tr(H,x),H}var F={identity:function(h,g){return h===g},structural:function(h,g){return ei(h,g)},default:function(h,g){return Object.is(h,g)},shallow:function(h,g){return ei(h,g,1)}},J=function(h,g){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var H in T)T.hasOwnProperty(H)&&(x[H]=T[H])},J(h,g)};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -11,7 +11,7 @@ import{g as HO,_ as rf,H as of}from"./index-c61a73ff.js";import{u as XO}from"./h See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. - ***************************************************************************** */var fe=function(){return fe=Object.assign||function(h){for(var g,x=1,A=arguments.length;x=h.length&&(h=void 0),{value:h&&h[x++],done:!h}}}}function ye(h,g){var x=typeof Symbol=="function"&&h[Symbol.iterator];if(!x)return h;var A,V,Q=x.call(h),pe=[];try{for(;(g===void 0||g-- >0)&&!(A=Q.next()).done;)pe.push(A.value)}catch(je){V={error:je}}finally{try{A&&!A.done&&(x=Q.return)&&x.call(Q)}finally{if(V)throw V.error}}return pe}function xe(){for(var h=[],g=0;g2&&ve("box");var x=ae(g);return new Mt(h,nt(x),x.name,!0,x.equals)},array:function(h,g){arguments.length>2&&ve("array");var x=ae(g);return Go(h,nt(x),x.name)},map:function(h,g){arguments.length>2&&ve("map");var x=ae(g);return new Uo(h,nt(x),x.name)},set:function(h,g){arguments.length>2&&ve("set");var x=ae(g);return new co(h,nt(x),x.name)},object:function(h,g,x){typeof arguments[1]=="string"&&ve("object");var A=ae(x);if(A.proxy===!1)return Yn({},h,g,A);var V=Ii(A),Q=Yn({},void 0,void 0,A),pe=Vu(Q);return Li(pe,h,g,V),pe},ref:we,shallow:Te,deep:_e,struct:Ke},Ge=function(h,g,x){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return _e.apply(null,arguments);if(Yr(h))return h;var A=N(h)?Ge.object(h,g,x):Array.isArray(h)?Ge.array(h,g):H(h)?Ge.map(h,g):ee(h)?Ge.set(h,g):h;if(A!==h)return A;w(!1)};function ve(h){w("Expected one or two arguments to observable."+h+". Did you accidentally try to use observable."+h+" as decorator?")}Object.keys(Ze).forEach(function(h){return Ge[h]=Ze[h]});var Fe,te,Le=We(!1,function(h,g,x,A,V){var Q=x.get,pe=x.set,je=V[0]||{};$r(h).addComputedProp(h,g,fe({get:Q,set:pe,context:h},je))}),ut=Le({equals:F.structural}),vt=function(h,g,x){if(typeof g=="string"||h!==null&&typeof h=="object"&&arguments.length===1)return Le.apply(null,arguments);var A=typeof g=="object"?g:{};return A.get=h,A.set=typeof g=="function"?g:A.set,A.name=A.name||h.name||"",new Hn(A)};vt.struct=ut,function(h){h[h.NOT_TRACKING=-1]="NOT_TRACKING",h[h.UP_TO_DATE=0]="UP_TO_DATE",h[h.POSSIBLY_STALE=1]="POSSIBLY_STALE",h[h.STALE=2]="STALE"}(Fe||(Fe={})),function(h){h[h.NONE=0]="NONE",h[h.LOG=1]="LOG",h[h.BREAK=2]="BREAK"}(te||(te={}));var it=function(h){this.cause=h};function ht(h){return h instanceof it}function St(h){switch(h.dependenciesState){case Fe.UP_TO_DATE:return!1;case Fe.NOT_TRACKING:case Fe.STALE:return!0;case Fe.POSSIBLY_STALE:for(var g=Me(!0),x=U(),A=h.observing,V=A.length,Q=0;Q0;Ve.computationDepth>0&&g&&w(!1),Ve.allowStateChanges||!g&&Ve.enforceActions!=="strict"||w(!1)}function Nt(h,g,x){var A=Me(!0);He(h),h.newObserving=new Array(h.observing.length+100),h.unboundDepsCount=0,h.runId=++Ve.runId;var V,Q=Ve.trackingDerivation;if(Ve.trackingDerivation=h,Ve.disableErrorBoundaries===!0)V=g.call(x);else try{V=g.call(x)}catch(pe){V=new it(pe)}return Ve.trackingDerivation=Q,function(pe){for(var je=pe.observing,Be=pe.observing=pe.newObserving,pt=Fe.UP_TO_DATE,ot=0,xt=pe.unboundDepsCount,ct=0;ctpt&&(pt=_t.dependenciesState);for(Be.length=ot,pe.newObserving=null,xt=je.length;xt--;)(_t=je[xt]).diffValue===0&&ki(_t,pe),_t.diffValue=0;for(;ot--;){var _t;(_t=Be[ot]).diffValue===1&&(_t.diffValue=0,Au(_t,pe))}pt!==Fe.UP_TO_DATE&&(pe.dependenciesState=pt,pe.onBecomeStale())}(h),De(A),V}function X(h){var g=h.observing;h.observing=[];for(var x=g.length;x--;)ki(g[x],h);h.dependenciesState=Fe.NOT_TRACKING}function oe(h){var g=U();try{return h()}finally{se(g)}}function U(){var h=Ve.trackingDerivation;return Ve.trackingDerivation=null,h}function se(h){Ve.trackingDerivation=h}function Me(h){var g=Ve.allowStateReads;return Ve.allowStateReads=h,g}function De(h){Ve.allowStateReads=h}function He(h){if(h.dependenciesState!==Fe.UP_TO_DATE){h.dependenciesState=Fe.UP_TO_DATE;for(var g=h.observing,x=g.length;x--;)g[x].lowestObserverState=Fe.UP_TO_DATE}}var lt=0,Vt=1,$t=Object.getOwnPropertyDescriptor(function(){},"name");$t&&$t.configurable;function Ct(h,g,x){var A=function(){return Rt(h,g,x||this,arguments)};return A.isMobxAction=!0,A}function Rt(h,g,x,A){var V=ze();try{return g.apply(x,A)}catch(Q){throw V.error=Q,Q}finally{Ue(V)}}function ze(h,g,x){var A=0,V=U();gn();var Q={prevDerivation:V,prevAllowStateChanges:rt(!0),prevAllowStateReads:Me(!0),notifySpy:!1,startTime:A,actionId:Vt++,parentActionId:lt};return lt=Q.actionId,Q}function Ue(h){lt!==h.actionId&&w("invalid action stack. did you forget to finish an action?"),lt=h.parentActionId,h.error!==void 0&&(Ve.suppressReactionErrors=!0),wt(h.prevAllowStateChanges),De(h.prevAllowStateReads),vn(),se(h.prevDerivation),h.notifySpy,Ve.suppressReactionErrors=!1}function et(h,g){var x,A=rt(h);try{x=g()}finally{wt(A)}return x}function rt(h){var g=Ve.allowStateChanges;return Ve.allowStateChanges=h,g}function wt(h){Ve.allowStateChanges=h}var Mt=function(h){function g(x,A,V,Q,pe){V===void 0&&(V="ObservableValue@"+E()),pe===void 0&&(pe=F.default);var je=h.call(this,V)||this;return je.enhancer=A,je.name=V,je.equals=pe,je.hasUnreportedChange=!1,je.value=A(x,void 0,V),je}return function(x,A){function V(){this.constructor=x}J(x,A),x.prototype=A===null?Object.create(A):(V.prototype=A.prototype,new V)}(g,h),g.prototype.dehanceValue=function(x){return this.dehancer!==void 0?this.dehancer(x):x},g.prototype.set=function(x){this.value,(x=this.prepareNewValue(x))!==Ve.UNCHANGED&&this.setNewValue(x)},g.prototype.prepareNewValue=function(x){if(at(this),rn(this)){var A=gt(this,{object:this,type:"update",newValue:x});if(!A)return Ve.UNCHANGED;x=A.newValue}return x=this.enhancer(x,this.value,this.name),this.equals(this.value,x)?Ve.UNCHANGED:x},g.prototype.setNewValue=function(x){var A=this.value;this.value=x,this.reportChanged(),mn(this)&&Kt(this,{type:"update",object:this,newValue:x,oldValue:A})},g.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},g.prototype.intercept=function(x){return lr(this,x)},g.prototype.observe=function(x,A){return A&&x({object:this,type:"update",newValue:this.value,oldValue:void 0}),fr(this,x)},g.prototype.toJSON=function(){return this.get()},g.prototype.toString=function(){return this.name+"["+this.value+"]"},g.prototype.valueOf=function(){return Y(this.get())},g.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},g}(M),ur=B("ObservableValue",Mt),Hn=function(){function h(g){this.dependenciesState=Fe.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Fe.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+E(),this.value=new it(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=te.NONE,k(g.get,"missing option for computed: get"),this.derivation=g.get,this.name=g.name||"ComputedValue@"+E(),g.set&&(this.setter=Ct(this.name+"-setter",g.set)),this.equals=g.equals||(g.compareStructural||g.struct?F.structural:F.default),this.scope=g.context,this.requiresReaction=!!g.requiresReaction,this.keepAlive=!!g.keepAlive}return h.prototype.onBecomeStale=function(){(function(g){g.lowestObserverState===Fe.UP_TO_DATE&&(g.lowestObserverState=Fe.POSSIBLY_STALE,g.observers.forEach(function(x){x.dependenciesState===Fe.UP_TO_DATE&&(x.dependenciesState=Fe.POSSIBLY_STALE,x.isTracing!==te.NONE&&Gn(x,g),x.onBecomeStale())}))})(this)},h.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(g){return g()})},h.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(g){return g()})},h.prototype.get=function(){this.isComputing&&w("Cycle detected in computation "+this.name+": "+this.derivation),Ve.inBatch!==0||this.observers.size!==0||this.keepAlive?(Ai(this),St(this)&&this.trackAndCompute()&&function(x){x.lowestObserverState!==Fe.STALE&&(x.lowestObserverState=Fe.STALE,x.observers.forEach(function(A){A.dependenciesState===Fe.POSSIBLY_STALE?A.dependenciesState=Fe.STALE:A.dependenciesState===Fe.UP_TO_DATE&&(x.lowestObserverState=Fe.UP_TO_DATE)}))}(this)):St(this)&&(this.warnAboutUntrackedRead(),gn(),this.value=this.computeValue(!1),vn());var g=this.value;if(ht(g))throw g.cause;return g},h.prototype.peek=function(){var g=this.computeValue(!1);if(ht(g))throw g.cause;return g},h.prototype.set=function(g){if(this.setter){k(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,g)}finally{this.isRunningSetter=!1}}else k(!1,!1)},h.prototype.trackAndCompute=function(){var g=this.value,x=this.dependenciesState===Fe.NOT_TRACKING,A=this.computeValue(!0),V=x||ht(g)||ht(A)||!this.equals(g,A);return V&&(this.value=A),V},h.prototype.computeValue=function(g){var x;if(this.isComputing=!0,Ve.computationDepth++,g)x=Nt(this,this.derivation,this.scope);else if(Ve.disableErrorBoundaries===!0)x=this.derivation.call(this.scope);else try{x=this.derivation.call(this.scope)}catch(A){x=new it(A)}return Ve.computationDepth--,this.isComputing=!1,x},h.prototype.suspend=function(){this.keepAlive||(X(this),this.value=void 0)},h.prototype.observe=function(g,x){var A=this,V=!0,Q=void 0;return Ho(function(){var pe=A.get();if(!V||x){var je=U();g({type:"update",object:A,newValue:pe,oldValue:Q}),se(je)}V=!1,Q=pe})},h.prototype.warnAboutUntrackedRead=function(){},h.prototype.toJSON=function(){return this.get()},h.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},h.prototype.valueOf=function(){return Y(this.get())},h.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},h}(),Xn=B("ComputedValue",Hn),Xr=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Tu={};function Bo(){return typeof window<"u"?window:c!==void 0?c:typeof self<"u"?self:Tu}var Pn=!0,Pi=!1,Ve=function(){var h=Bo();return h.__mobxInstanceCount>0&&!h.__mobxGlobals&&(Pn=!1),h.__mobxGlobals&&h.__mobxGlobals.version!==new Xr().version&&(Pn=!1),Pn?h.__mobxGlobals?(h.__mobxInstanceCount+=1,h.__mobxGlobals.UNCHANGED||(h.__mobxGlobals.UNCHANGED={}),h.__mobxGlobals):(h.__mobxInstanceCount=1,h.__mobxGlobals=new Xr):(setTimeout(function(){Pi||w("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Xr)}();function Au(h,g){h.observers.add(g),h.lowestObserverState>g.dependenciesState&&(h.lowestObserverState=g.dependenciesState)}function ki(h,g){h.observers.delete(g),h.observers.size===0&&Ti(h)}function Ti(h){h.isPendingUnobservation===!1&&(h.isPendingUnobservation=!0,Ve.pendingUnobservations.push(h))}function gn(){Ve.inBatch++}function vn(){if(--Ve.inBatch==0){Mi();for(var h=Ve.pendingUnobservations,g=0;g0&&Ti(h),!1)}function Gn(h,g){if(h.isTracing===te.BREAK){var x=[];Er(Gr(h),x,1),new Function(`debugger; + ***************************************************************************** */var fe=function(){return fe=Object.assign||function(h){for(var g,x=1,T=arguments.length;x=h.length&&(h=void 0),{value:h&&h[x++],done:!h}}}}function ye(h,g){var x=typeof Symbol=="function"&&h[Symbol.iterator];if(!x)return h;var T,H,Q=x.call(h),pe=[];try{for(;(g===void 0||g-- >0)&&!(T=Q.next()).done;)pe.push(T.value)}catch(je){H={error:je}}finally{try{T&&!T.done&&(x=Q.return)&&x.call(Q)}finally{if(H)throw H.error}}return pe}function xe(){for(var h=[],g=0;g2&&ve("box");var x=ae(g);return new Mt(h,nt(x),x.name,!0,x.equals)},array:function(h,g){arguments.length>2&&ve("array");var x=ae(g);return Zo(h,nt(x),x.name)},map:function(h,g){arguments.length>2&&ve("map");var x=ae(g);return new Jo(h,nt(x),x.name)},set:function(h,g){arguments.length>2&&ve("set");var x=ae(g);return new yo(h,nt(x),x.name)},object:function(h,g,x){typeof arguments[1]=="string"&&ve("object");var T=ae(x);if(T.proxy===!1)return Wn({},h,g,T);var H=Ui(T),Q=Wn({},void 0,void 0,T),pe=qu(Q);return Yi(pe,h,g,H),pe},ref:we,shallow:Ae,deep:_e,struct:Ke},Ue=function(h,g,x){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return _e.apply(null,arguments);if(qr(h))return h;var T=N(h)?Ue.object(h,g,x):Array.isArray(h)?Ue.array(h,g):X(h)?Ue.map(h,g):ee(h)?Ue.set(h,g):h;if(T!==h)return T;w(!1)};function ve(h){w("Expected one or two arguments to observable."+h+". Did you accidentally try to use observable."+h+" as decorator?")}Object.keys(Ze).forEach(function(h){return Ue[h]=Ze[h]});var Fe,te,Le=We(!1,function(h,g,x,T,H){var Q=x.get,pe=x.set,je=H[0]||{};Jr(h).addComputedProp(h,g,fe({get:Q,set:pe,context:h},je))}),ut=Le({equals:F.structural}),vt=function(h,g,x){if(typeof g=="string"||h!==null&&typeof h=="object"&&arguments.length===1)return Le.apply(null,arguments);var T=typeof g=="object"?g:{};return T.get=h,T.set=typeof g=="function"?g:T.set,T.name=T.name||h.name||"",new Gn(T)};vt.struct=ut,function(h){h[h.NOT_TRACKING=-1]="NOT_TRACKING",h[h.UP_TO_DATE=0]="UP_TO_DATE",h[h.POSSIBLY_STALE=1]="POSSIBLY_STALE",h[h.STALE=2]="STALE"}(Fe||(Fe={})),function(h){h[h.NONE=0]="NONE",h[h.LOG=1]="LOG",h[h.BREAK=2]="BREAK"}(te||(te={}));var it=function(h){this.cause=h};function ht(h){return h instanceof it}function St(h){switch(h.dependenciesState){case Fe.UP_TO_DATE:return!1;case Fe.NOT_TRACKING:case Fe.STALE:return!0;case Fe.POSSIBLY_STALE:for(var g=Me(!0),x=Y(),T=h.observing,H=T.length,Q=0;Q0;He.computationDepth>0&&g&&w(!1),He.allowStateChanges||!g&&He.enforceActions!=="strict"||w(!1)}function Nt(h,g,x){var T=Me(!0);Xe(h),h.newObserving=new Array(h.observing.length+100),h.unboundDepsCount=0,h.runId=++He.runId;var H,Q=He.trackingDerivation;if(He.trackingDerivation=h,He.disableErrorBoundaries===!0)H=g.call(x);else try{H=g.call(x)}catch(pe){H=new it(pe)}return He.trackingDerivation=Q,function(pe){for(var je=pe.observing,Be=pe.observing=pe.newObserving,pt=Fe.UP_TO_DATE,ot=0,xt=pe.unboundDepsCount,ct=0;ctpt&&(pt=_t.dependenciesState);for(Be.length=ot,pe.newObserving=null,xt=je.length;xt--;)(_t=je[xt]).diffValue===0&&Ii(_t,pe),_t.diffValue=0;for(;ot--;){var _t;(_t=Be[ot]).diffValue===1&&(_t.diffValue=0,Bu(_t,pe))}pt!==Fe.UP_TO_DATE&&(pe.dependenciesState=pt,pe.onBecomeStale())}(h),De(T),H}function G(h){var g=h.observing;h.observing=[];for(var x=g.length;x--;)Ii(g[x],h);h.dependenciesState=Fe.NOT_TRACKING}function oe(h){var g=Y();try{return h()}finally{se(g)}}function Y(){var h=He.trackingDerivation;return He.trackingDerivation=null,h}function se(h){He.trackingDerivation=h}function Me(h){var g=He.allowStateReads;return He.allowStateReads=h,g}function De(h){He.allowStateReads=h}function Xe(h){if(h.dependenciesState!==Fe.UP_TO_DATE){h.dependenciesState=Fe.UP_TO_DATE;for(var g=h.observing,x=g.length;x--;)g[x].lowestObserverState=Fe.UP_TO_DATE}}var lt=0,Ht=1,$t=Object.getOwnPropertyDescriptor(function(){},"name");$t&&$t.configurable;function Ct(h,g,x){var T=function(){return Rt(h,g,x||this,arguments)};return T.isMobxAction=!0,T}function Rt(h,g,x,T){var H=ze();try{return g.apply(x,T)}catch(Q){throw H.error=Q,Q}finally{Ye(H)}}function ze(h,g,x){var T=0,H=Y();vn();var Q={prevDerivation:H,prevAllowStateChanges:rt(!0),prevAllowStateReads:Me(!0),notifySpy:!1,startTime:T,actionId:Ht++,parentActionId:lt};return lt=Q.actionId,Q}function Ye(h){lt!==h.actionId&&w("invalid action stack. did you forget to finish an action?"),lt=h.parentActionId,h.error!==void 0&&(He.suppressReactionErrors=!0),wt(h.prevAllowStateChanges),De(h.prevAllowStateReads),bn(),se(h.prevDerivation),h.notifySpy,He.suppressReactionErrors=!1}function et(h,g){var x,T=rt(h);try{x=g()}finally{wt(T)}return x}function rt(h){var g=He.allowStateChanges;return He.allowStateChanges=h,g}function wt(h){He.allowStateChanges=h}var Mt=function(h){function g(x,T,H,Q,pe){H===void 0&&(H="ObservableValue@"+E()),pe===void 0&&(pe=F.default);var je=h.call(this,H)||this;return je.enhancer=T,je.name=H,je.equals=pe,je.hasUnreportedChange=!1,je.value=T(x,void 0,H),je}return function(x,T){function H(){this.constructor=x}J(x,T),x.prototype=T===null?Object.create(T):(H.prototype=T.prototype,new H)}(g,h),g.prototype.dehanceValue=function(x){return this.dehancer!==void 0?this.dehancer(x):x},g.prototype.set=function(x){this.value,(x=this.prepareNewValue(x))!==He.UNCHANGED&&this.setNewValue(x)},g.prototype.prepareNewValue=function(x){if(at(this),rn(this)){var T=gt(this,{object:this,type:"update",newValue:x});if(!T)return He.UNCHANGED;x=T.newValue}return x=this.enhancer(x,this.value,this.name),this.equals(this.value,x)?He.UNCHANGED:x},g.prototype.setNewValue=function(x){var T=this.value;this.value=x,this.reportChanged(),_n(this)&&Kt(this,{type:"update",object:this,newValue:x,oldValue:T})},g.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},g.prototype.intercept=function(x){return pr(this,x)},g.prototype.observe=function(x,T){return T&&x({object:this,type:"update",newValue:this.value,oldValue:void 0}),dr(this,x)},g.prototype.toJSON=function(){return this.get()},g.prototype.toString=function(){return this.name+"["+this.value+"]"},g.prototype.valueOf=function(){return V(this.get())},g.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},g}(M),cr=B("ObservableValue",Mt),Gn=function(){function h(g){this.dependenciesState=Fe.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Fe.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+E(),this.value=new it(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=te.NONE,k(g.get,"missing option for computed: get"),this.derivation=g.get,this.name=g.name||"ComputedValue@"+E(),g.set&&(this.setter=Ct(this.name+"-setter",g.set)),this.equals=g.equals||(g.compareStructural||g.struct?F.structural:F.default),this.scope=g.context,this.requiresReaction=!!g.requiresReaction,this.keepAlive=!!g.keepAlive}return h.prototype.onBecomeStale=function(){(function(g){g.lowestObserverState===Fe.UP_TO_DATE&&(g.lowestObserverState=Fe.POSSIBLY_STALE,g.observers.forEach(function(x){x.dependenciesState===Fe.UP_TO_DATE&&(x.dependenciesState=Fe.POSSIBLY_STALE,x.isTracing!==te.NONE&&Yn(x,g),x.onBecomeStale())}))})(this)},h.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(g){return g()})},h.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(g){return g()})},h.prototype.get=function(){this.isComputing&&w("Cycle detected in computation "+this.name+": "+this.derivation),He.inBatch!==0||this.observers.size!==0||this.keepAlive?(zi(this),St(this)&&this.trackAndCompute()&&function(x){x.lowestObserverState!==Fe.STALE&&(x.lowestObserverState=Fe.STALE,x.observers.forEach(function(T){T.dependenciesState===Fe.POSSIBLY_STALE?T.dependenciesState=Fe.STALE:T.dependenciesState===Fe.UP_TO_DATE&&(x.lowestObserverState=Fe.UP_TO_DATE)}))}(this)):St(this)&&(this.warnAboutUntrackedRead(),vn(),this.value=this.computeValue(!1),bn());var g=this.value;if(ht(g))throw g.cause;return g},h.prototype.peek=function(){var g=this.computeValue(!1);if(ht(g))throw g.cause;return g},h.prototype.set=function(g){if(this.setter){k(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,g)}finally{this.isRunningSetter=!1}}else k(!1,!1)},h.prototype.trackAndCompute=function(){var g=this.value,x=this.dependenciesState===Fe.NOT_TRACKING,T=this.computeValue(!0),H=x||ht(g)||ht(T)||!this.equals(g,T);return H&&(this.value=T),H},h.prototype.computeValue=function(g){var x;if(this.isComputing=!0,He.computationDepth++,g)x=Nt(this,this.derivation,this.scope);else if(He.disableErrorBoundaries===!0)x=this.derivation.call(this.scope);else try{x=this.derivation.call(this.scope)}catch(T){x=new it(T)}return He.computationDepth--,this.isComputing=!1,x},h.prototype.suspend=function(){this.keepAlive||(G(this),this.value=void 0)},h.prototype.observe=function(g,x){var T=this,H=!0,Q=void 0;return Ko(function(){var pe=T.get();if(!H||x){var je=Y();g({type:"update",object:T,newValue:pe,oldValue:Q}),se(je)}H=!1,Q=pe})},h.prototype.warnAboutUntrackedRead=function(){},h.prototype.toJSON=function(){return this.get()},h.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},h.prototype.valueOf=function(){return V(this.get())},h.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},h}(),Un=B("ComputedValue",Gn),Wr=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},zu={};function Vo(){return typeof window<"u"?window:c!==void 0?c:typeof self<"u"?self:zu}var kn=!0,Ri=!1,He=function(){var h=Vo();return h.__mobxInstanceCount>0&&!h.__mobxGlobals&&(kn=!1),h.__mobxGlobals&&h.__mobxGlobals.version!==new Wr().version&&(kn=!1),kn?h.__mobxGlobals?(h.__mobxInstanceCount+=1,h.__mobxGlobals.UNCHANGED||(h.__mobxGlobals.UNCHANGED={}),h.__mobxGlobals):(h.__mobxInstanceCount=1,h.__mobxGlobals=new Wr):(setTimeout(function(){Ri||w("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Wr)}();function Bu(h,g){h.observers.add(g),h.lowestObserverState>g.dependenciesState&&(h.lowestObserverState=g.dependenciesState)}function Ii(h,g){h.observers.delete(g),h.observers.size===0&&Li(h)}function Li(h){h.isPendingUnobservation===!1&&(h.isPendingUnobservation=!0,He.pendingUnobservations.push(h))}function vn(){He.inBatch++}function bn(){if(--He.inBatch==0){Bi();for(var h=He.pendingUnobservations,g=0;g0&&Li(h),!1)}function Yn(h,g){if(h.isTracing===te.BREAK){var x=[];kr($r(h),x,1),new Function(`debugger; /* Tracing '`+h.name+`' @@ -19,63 +19,63 @@ You are entering this break point because derivation '`+h.name+"' is being trace Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update The stackframe you are looking for is at least ~6-8 stack-frames up. -`+(h instanceof Hn?h.derivation.toString().replace(/[*]\//g,"/"):"")+` +`+(h instanceof Gn?h.derivation.toString().replace(/[*]\//g,"/"):"")+` The dependencies for this derivation are: `+x.join(` `)+` */ - `)()}}function Er(h,g,x){g.length>=1e3?g.push("(and many more)"):(g.push(""+new Array(x).join(" ")+h.name),h.dependencies&&h.dependencies.forEach(function(A){return Er(A,g,x+1)}))}var In=function(){function h(g,x,A,V){g===void 0&&(g="Reaction@"+E()),V===void 0&&(V=!1),this.name=g,this.onInvalidate=x,this.errorHandler=A,this.requiresObservable=V,this.observing=[],this.newObserving=[],this.dependenciesState=Fe.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+E(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=te.NONE}return h.prototype.onBecomeStale=function(){this.schedule()},h.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Ve.pendingReactions.push(this),Mi())},h.prototype.isScheduled=function(){return this._isScheduled},h.prototype.runReaction=function(){if(!this.isDisposed){if(gn(),this._isScheduled=!1,St(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(g){this.reportExceptionInDerivation(g)}}vn()}},h.prototype.track=function(g){if(!this.isDisposed){gn(),this._isRunning=!0;var x=Nt(this,g,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&X(this),ht(x)&&this.reportExceptionInDerivation(x.cause),vn()}},h.prototype.reportExceptionInDerivation=function(g){var x=this;if(this.errorHandler)this.errorHandler(g,this);else{if(Ve.disableErrorBoundaries)throw g;Ve.suppressReactionErrors,Ve.globalReactionErrorHandlers.forEach(function(A){return A(g,x)})}},h.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(gn(),X(this),vn()))},h.prototype.getDisposer=function(){var g=this.dispose.bind(this);return g[L]=this,g},h.prototype.toString=function(){return"Reaction["+this.name+"]"},h.prototype.trace=function(g){g===void 0&&(g=!1),function(){for(var x=[],A=0;A0||Ve.isRunningReactions||Fo(Mu)}function Mu(){Ve.isRunningReactions=!0;for(var h=Ve.pendingReactions,g=0;h.length>0;){++g==100&&h.splice(0);for(var x=h.splice(0),A=0,V=x.length;A",h):arguments.length===2&&typeof g=="function"?Ct(h,g):arguments.length===1&&typeof h=="string"?sr(h):A!==!0?sr(g).apply(null,arguments):void I(h,g,Ct(h.name||g,x.value,this))};function Cu(h,g){return Rt(typeof h=="string"?h:h.name||"",typeof h=="function"?h:g,this,void 0)}function ao(h){return typeof h=="function"&&h.isMobxAction===!0}function Vo(h,g,x){I(h,g,Ct(g,x.bind(h)))}function Ho(h,g){g===void 0&&(g=_);var x,A=g&&g.name||h.name||"Autorun@"+E();if(!g.scheduler&&!g.delay)x=new In(A,function(){this.track(pe)},g.onError,g.requiresObservable);else{var V=Ci(g),Q=!1;x=new In(A,function(){Q||(Q=!0,V(function(){Q=!1,x.isDisposed||x.track(pe)}))},g.onError,g.requiresObservable)}function pe(){h(x)}return x.schedule(),x.getDisposer()}Un.bound=function(h,g,x,A){return A===!0?(Vo(h,g,x.value),null):x?{configurable:!0,enumerable:!1,get:function(){return Vo(this,g,x.value||x.initializer.call(this)),this[g]},set:Nu}:{enumerable:!1,configurable:!0,set:function(V){Vo(this,g,V)},get:function(){}}};var Ru=function(h){return h()};function Ci(h){return h.scheduler?h.scheduler:h.delay?function(g){return setTimeout(g,h.delay)}:Ru}function Sr(h,g,x){x===void 0&&(x=_);var A,V,Q,pe=x.name||"Reaction@"+E(),je=Un(pe,x.onError?(A=x.onError,V=g,function(){try{return V.apply(this,arguments)}catch(Tt){A.call(this,Tt)}}):g),Be=!x.scheduler&&!x.delay,pt=Ci(x),ot=!0,xt=!1,ct=x.compareStructural?F.structural:x.equals||F.default,_t=new In(pe,function(){ot||Be?On():xt||(xt=!0,pt(On))},x.onError,x.requiresObservable);function On(){if(xt=!1,!_t.isDisposed){var Tt=!1;_t.track(function(){var on=h(_t);Tt=ot||!ct(Q,on),Q=on}),ot&&x.fireImmediately&&je(Q,_t),ot||Tt!==!0||je(Q,_t),ot&&(ot=!1)}}return _t.schedule(),_t.getDisposer()}function jr(h,g,x){return Ri("onBecomeUnobserved",h,g,x)}function Ri(h,g,x,A){var V=typeof A=="function"?_n(g,x):_n(g),Q=typeof A=="function"?A:x,pe=h+"Listeners";return V[pe]?V[pe].add(Q):V[pe]=new Set([Q]),typeof V[h]!="function"?w(!1):function(){var je=V[pe];je&&(je.delete(Q),je.size===0&&delete V[pe])}}function Pr(h){var g=h.enforceActions,x=h.computedRequiresReaction,A=h.computedConfigurable,V=h.disableErrorBoundaries,Q=h.reactionScheduler,pe=h.reactionRequiresObservable,je=h.observableRequiresReaction;if(h.isolateGlobalState===!0&&((Ve.pendingReactions.length||Ve.inBatch||Ve.isRunningReactions)&&w("isolateGlobalState should be called before MobX is running any reactions"),Pi=!0,Pn&&(--Bo().__mobxInstanceCount==0&&(Bo().__mobxGlobals=void 0),Ve=new Xr)),g!==void 0){var Be=void 0;switch(g){case!0:case"observed":Be=!0;break;case!1:case"never":Be=!1;break;case"strict":case"always":Be="strict";break;default:w("Invalid value for 'enforceActions': '"+g+"', expected 'never', 'always' or 'observed'")}Ve.enforceActions=Be,Ve.allowStateChanges=Be!==!0&&Be!=="strict"}x!==void 0&&(Ve.computedRequiresReaction=!!x),pe!==void 0&&(Ve.reactionRequiresObservable=!!pe),je!==void 0&&(Ve.observableRequiresReaction=!!je,Ve.allowStateReads=!Ve.observableRequiresReaction),A!==void 0&&(Ve.computedConfigurable=!!A),V!==void 0&&(Ve.disableErrorBoundaries=!!V),Q&&Du(Q)}function Yn(h,g,x,A){var V=Ii(A=ae(A));return Ie(h),$r(h,A.name,V.enhancer),g&&Li(h,g,x,V),h}function Ii(h){return h.defaultDecorator||(h.deep===!1?we:_e)}function Li(h,g,x,A){var V,Q;gn();try{var pe=K(g);try{for(var je=ce(pe),Be=je.next();!Be.done;Be=je.next()){var pt=Be.value,ot=Object.getOwnPropertyDescriptor(g,pt),xt=(x&&pt in x?x[pt]:ot.get?Le:A)(h,pt,ot,!0);xt&&Object.defineProperty(h,pt,xt)}}catch(ct){V={error:ct}}finally{try{Be&&!Be.done&&(Q=je.return)&&Q.call(je)}finally{if(V)throw V.error}}}finally{vn()}}function Gr(h,g){return zi(_n(h,g))}function zi(h){var g,x,A={name:h.name};return h.observing&&h.observing.length>0&&(A.dependencies=(g=h.observing,x=[],g.forEach(function(V){x.indexOf(V)===-1&&x.push(V)}),x).map(zi)),A}var Iu=0;function Bi(){this.message="FLOW_CANCELLED"}function Fi(h){arguments.length!==1&&w("Flow expects 1 argument and cannot be used as decorator");var g=h.name||"";return function(){var x,A=this,V=arguments,Q=++Iu,pe=Un(g+" - runid: "+Q+" - init",h).apply(A,V),je=void 0,Be=new Promise(function(pt,ot){var xt=0;function ct(Tt){var on;je=void 0;try{on=Un(g+" - runid: "+Q+" - yield "+xt++,pe.next).call(pe,Tt)}catch(Kr){return ot(Kr)}On(on)}function _t(Tt){var on;je=void 0;try{on=Un(g+" - runid: "+Q+" - yield "+xt++,pe.throw).call(pe,Tt)}catch(Kr){return ot(Kr)}On(on)}function On(Tt){if(!Tt||typeof Tt.then!="function")return Tt.done?pt(Tt.value):(je=Promise.resolve(Tt.value)).then(ct,_t);Tt.then(On,ot)}x=ot,ct(void 0)});return Be.cancel=Un(g+" - runid: "+Q+" - cancel",function(){try{je&&Ur(je);var pt=pe.return(void 0),ot=Promise.resolve(pt.value);ot.then(P,P),Ur(ot),x(new Bi)}catch(xt){x(xt)}}),Be}}function Ur(h){typeof h.cancel=="function"&&h.cancel()}function Vi(h,g){if(h==null)return!1;if(g!==void 0){if(dn(h)===!1||!h[L].values.has(g))return!1;var x=_n(h,g);return Xn(x)}return Xn(h)}function Lu(h){return arguments.length>1?w(!1):Vi(h)}function Hi(h,g){return typeof g!="string"?w(!1):Vi(h,g)}function Xo(h,g){return h!=null&&(g!==void 0?!!dn(h)&&h[L].values.has(g):dn(h)||!!h[L]||z(h)||io(h)||Xn(h))}function Yr(h){return arguments.length!==1&&w(!1),Xo(h)}function Wn(h){return dn(h)?h[L].getKeys():It(h)||pn(h)?Array.from(h.keys()):Mn(h)?h.map(function(g,x){return x}):w(!1)}function Zt(h){return dn(h)?Wn(h).map(function(g){return h[g]}):It(h)?Wn(h).map(function(g){return h.get(g)}):pn(h)?Array.from(h.values()):Mn(h)?h.slice():w(!1)}function Xi(h){return dn(h)?Wn(h).map(function(g){return[g,h[g]]}):It(h)?Wn(h).map(function(g){return[g,h.get(g)]}):pn(h)?Array.from(h.entries()):Mn(h)?h.map(function(g,x){return[x,g]}):w(!1)}function Gi(h,g,x){if(arguments.length!==2||pn(h))if(dn(h)){var A=h[L],V=A.values.get(g);V?A.write(g,x):A.addObservableProp(g,x,A.defaultEnhancer)}else if(It(h))h.set(g,x);else if(pn(h))h.add(g);else{if(!Mn(h))return w(!1);typeof g!="number"&&(g=parseInt(g,10)),k(g>=0,"Not a valid index: '"+g+"'"),gn(),g>=h.length&&(h.length=g+1),h[g]=x,vn()}else{gn();var Q=g;try{for(var pe in Q)Gi(h,pe,Q[pe])}finally{vn()}}}function Ui(h,g,x,A){return typeof x=="function"?function(V,Q,pe,je){return Tr(V,Q).observe(pe,je)}(h,g,x,A):function(V,Q,pe){return Tr(V).observe(Q,pe)}(h,g,x)}Bi.prototype=Object.create(Error.prototype);var zu={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function cr(h,g,x,A){return A.detectCycles&&h.set(g,x),x}function kn(h,g,x){if(!g.recurseEverything&&!Yr(h)||typeof h!="object")return h;if(h===null)return null;if(h instanceof Date)return h;if(ur(h))return kn(h.get(),g,x);if(Yr(h)&&Wn(h),g.detectCycles===!0&&h!==null&&x.has(h))return x.get(h);if(Mn(h)||Array.isArray(h)){var A=cr(x,h,[],g),V=h.map(function(ct){return kn(ct,g,x)});A.length=V.length;for(var Q=0,pe=V.length;Q0}function lr(h,g){var x=h.interceptors||(h.interceptors=[]);return x.push(g),j(function(){var A=x.indexOf(g);A!==-1&&x.splice(A,1)})}function gt(h,g){var x=U();try{for(var A=xe(h.interceptors||[]),V=0,Q=A.length;V0}function fr(h,g){var x=h.changeListeners||(h.changeListeners=[]);return x.push(g),j(function(){var A=x.indexOf(g);A!==-1&&x.splice(A,1)})}function Kt(h,g){var x=U(),A=h.changeListeners;if(A){for(var V=0,Q=(A=A.slice()).length;V0?g.map(this.dehancer):g},h.prototype.intercept=function(g){return lr(this,g)},h.prototype.observe=function(g,x){return x===void 0&&(x=!1),x&&g({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),fr(this,g)},h.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},h.prototype.setArrayLength=function(g){if(typeof g!="number"||g<0)throw new Error("[mobx.array] Out of range: "+g);var x=this.values.length;if(g!==x)if(g>x){for(var A=new Array(g-x),V=0;VQ?g=Q:g<0&&(g=Math.max(0,Q+g)),x=arguments.length===1?Q-g:x==null?0:Math.max(0,Math.min(x,Q-g)),A===void 0&&(A=b),rn(this)){var pe=gt(this,{object:this.proxy,type:"splice",index:g,removedCount:x,added:A});if(!pe)return b;x=pe.removedCount,A=pe.added}A=A.length===0?A:A.map(function(Be){return V.enhancer(Be,void 0)});var je=this.spliceItemsIntoValues(g,x,A);return x===0&&A.length===0||this.notifyArraySplice(g,A,je),this.dehanceValues(je)},h.prototype.spliceItemsIntoValues=function(g,x,A){var V;if(A.length<1e4)return(V=this.values).splice.apply(V,xe([g,x],A));var Q=this.values.slice(g,g+x);return this.values=this.values.slice(0,g).concat(A,this.values.slice(g+x)),Q},h.prototype.notifyArrayChildUpdate=function(g,x,A){var V=!this.owned&&!1,Q=mn(this),pe=Q||V?{object:this.proxy,type:"update",index:g,newValue:x,oldValue:A}:null;this.atom.reportChanged(),Q&&Kt(this,pe)},h.prototype.notifyArraySplice=function(g,x,A){var V=!this.owned&&!1,Q=mn(this),pe=Q||V?{object:this.proxy,type:"splice",index:g,removed:A,added:x,removedCount:A.length,addedCount:x.length}:null;this.atom.reportChanged(),Q&&Kt(this,pe)},h}(),An={intercept:function(h){return this[L].intercept(h)},observe:function(h,g){return g===void 0&&(g=!1),this[L].observe(h,g)},clear:function(){return this.splice(0)},replace:function(h){var g=this[L];return g.spliceWithArray(0,g.values.length,h)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(h,g){for(var x=[],A=2;A-1&&(this.splice(x,1),!0)},get:function(h){var g=this[L];if(g&&h=0&&x++}h=ea(h),g=ea(g);var je=pe==="[object Array]";if(!je){if(typeof h!="object"||typeof g!="object")return!1;var Be=h.constructor,pt=g.constructor;if(Be!==pt&&!(typeof Be=="function"&&Be instanceof Be&&typeof pt=="function"&&pt instanceof pt)&&"constructor"in h&&"constructor"in g)return!1}if(x===0)return!1;x<0&&(x=-1),V=V||[];for(var ot=(A=A||[]).length;ot--;)if(A[ot]===h)return V[ot]===g;if(A.push(h),V.push(g),je){if((ot=h.length)!==g.length)return!1;for(;ot--;)if(!$o(h[ot],g[ot],x-1,A,V))return!1}else{var xt=Object.keys(h),ct=void 0;if(ot=xt.length,Object.keys(g).length!==ot)return!1;for(;ot--;)if(!Xu(g,ct=xt[ot])||!$o(h[ct],g[ct],x-1,A,V))return!1}return A.pop(),V.pop(),!0}function ea(h){return Mn(h)?h.slice():H(h)||It(h)||ee(h)||pn(h)?Array.from(h.entries()):h}function Xu(h,g){return Object.prototype.hasOwnProperty.call(h,g)}function ho(h){return h[Symbol.iterator]=pr,h}function pr(){return this}if(typeof Proxy>"u"||typeof Symbol>"u")throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Di,extras:{getDebugName:function(h,g){return(g!==void 0?_n(h,g):dn(h)||It(h)||pn(h)?Tr(h):_n(h)).name}},$mobx:L})}).call(this,o(155),o(82))},function(s,p,o){var l=o(116),c=o(44),b=o(179);l||c(Object.prototype,"toString",b,{unsafe:!0})},function(s,p,o){var l=o(40),c=o(83),b=o(70),_=o(56),E=o(111),w="Array Iterator",k=_.set,j=_.getterFor(w);s.exports=E(Array,"Array",function(P,D){k(this,{type:w,target:l(P),index:0,kind:D})},function(){var P=j(this),D=P.target,N=P.kind,I=P.index++;return!D||I>=D.length?(P.target=void 0,{value:void 0,done:!0}):N=="keys"?{value:I,done:!1}:N=="values"?{value:D[I],done:!1}:{value:[I,D[I]],done:!1}},"values"),b.Arguments=b.Array,c("keys"),c("values"),c("entries")},function(s,p,o){var l=o(7),c=o(147),b=o(148),_=o(3),E=o(57),w=o(27),k=w("iterator"),j=w("toStringTag"),P=_.values,D=function(I,B){if(I){if(I[k]!==P)try{E(I,k,P)}catch{I[k]=P}if(I[j]||E(I,j,B),c[B]){for(var H in _)if(I[H]!==_[H])try{E(I,H,_[H])}catch{I[H]=_[H]}}}};for(var N in c)D(l[N]&&l[N].prototype,N);D(b,"DOMTokenList")},function(s,p,o){var l=o(17),c=o(7),b=o(46),_=o(76),E=o(35),w=o(15),k=o(64),j=o(36),P=o(109),D=o(19),N=o(34),I=o(99),B=o(28),H=o(33),ee=o(58),ie=o(88),q=o(32),Y=o(38),K=o(40),L=o(87),M=o(41),z=o(71),R=o(54),F=o(66),J=o(72),fe=o(139),ce=o(112),ye=o(51),xe=o(37),ge=o(93),ue=o(101),he=o(44),be=o(84),Se=o(91),Ie=o(69),We=o(85),ke=o(27),Re=o(149),$e=o(150),Z=o(73),$=o(56),ae=o(74).forEach,_e=Se("hidden"),Te="Symbol",we=ke("toPrimitive"),Ke=$.set,nt=$.getterFor(Te),Ze=Object.prototype,Ge=c.Symbol,ve=Ge&&Ge.prototype,Fe=c.TypeError,te=c.QObject,Le=b("JSON","stringify"),ut=ye.f,vt=xe.f,it=fe.f,ht=ge.f,St=w([].push),Pt=be("symbols"),at=be("op-symbols"),Nt=be("string-to-symbol-registry"),X=be("symbol-to-string-registry"),oe=be("wks"),U=!te||!te.prototype||!te.prototype.findChild,se=j&&D(function(){return R(vt({},"a",{get:function(){return vt(this,"a",{value:7}).a}})).a!=7})?function(ze,Ue,et){var rt=ut(Ze,Ue);rt&&delete Ze[Ue],vt(ze,Ue,et),rt&&ze!==Ze&&vt(Ze,Ue,rt)}:vt,Me=function(ze,Ue){var et=Pt[ze]=R(ve);return Ke(et,{type:Te,tag:ze,description:Ue}),j||(et.description=Ue),et},De=function(ze,Ue,et){ze===Ze&&De(at,Ue,et),q(ze);var rt=L(Ue);return q(et),N(Pt,rt)?(et.enumerable?(N(ze,_e)&&ze[_e][rt]&&(ze[_e][rt]=!1),et=R(et,{enumerable:z(0,!1)})):(N(ze,_e)||vt(ze,_e,z(1,{})),ze[_e][rt]=!0),se(ze,rt,et)):vt(ze,rt,et)},He=function(ze,Ue){q(ze);var et=K(Ue),rt=F(et).concat(Ct(et));return ae(rt,function(wt){j&&!E(lt,et,wt)||De(ze,wt,et[wt])}),ze},lt=function(ze){var Ue=L(ze),et=E(ht,this,Ue);return!(this===Ze&&N(Pt,Ue)&&!N(at,Ue))&&(!(et||!N(this,Ue)||!N(Pt,Ue)||N(this,_e)&&this[_e][Ue])||et)},Vt=function(ze,Ue){var et=K(ze),rt=L(Ue);if(et!==Ze||!N(Pt,rt)||N(at,rt)){var wt=ut(et,rt);return!wt||!N(Pt,rt)||N(et,_e)&&et[_e][rt]||(wt.enumerable=!0),wt}},$t=function(ze){var Ue=it(K(ze)),et=[];return ae(Ue,function(rt){N(Pt,rt)||N(Ie,rt)||St(et,rt)}),et},Ct=function(ze){var Ue=ze===Ze,et=it(Ue?at:K(ze)),rt=[];return ae(et,function(wt){!N(Pt,wt)||Ue&&!N(Ze,wt)||St(rt,Pt[wt])}),rt};if(P||(Ge=function(){if(ee(ve,this))throw Fe("Symbol is not a constructor");var ze=arguments.length&&arguments[0]!==void 0?M(arguments[0]):void 0,Ue=We(ze),et=function(rt){this===Ze&&E(et,at,rt),N(this,_e)&&N(this[_e],Ue)&&(this[_e][Ue]=!1),se(this,Ue,z(1,rt))};return j&&U&&se(Ze,Ue,{configurable:!0,set:et}),Me(Ue,ze)},he(ve=Ge.prototype,"toString",function(){return nt(this).tag}),he(Ge,"withoutSetter",function(ze){return Me(We(ze),ze)}),ge.f=lt,xe.f=De,ye.f=Vt,J.f=fe.f=$t,ce.f=Ct,Re.f=function(ze){return Me(ke(ze),ze)},j&&(vt(ve,"description",{configurable:!0,get:function(){return nt(this).description}}),k||he(Ze,"propertyIsEnumerable",lt,{unsafe:!0}))),l({global:!0,wrap:!0,forced:!P,sham:!P},{Symbol:Ge}),ae(F(oe),function(ze){$e(ze)}),l({target:Te,stat:!0,forced:!P},{for:function(ze){var Ue=M(ze);if(N(Nt,Ue))return Nt[Ue];var et=Ge(Ue);return Nt[Ue]=et,X[et]=Ue,et},keyFor:function(ze){if(!ie(ze))throw Fe(ze+" is not a symbol");if(N(X,ze))return X[ze]},useSetter:function(){U=!0},useSimple:function(){U=!1}}),l({target:"Object",stat:!0,forced:!P,sham:!j},{create:function(ze,Ue){return Ue===void 0?R(ze):He(R(ze),Ue)},defineProperty:De,defineProperties:He,getOwnPropertyDescriptor:Vt}),l({target:"Object",stat:!0,forced:!P},{getOwnPropertyNames:$t,getOwnPropertySymbols:Ct}),l({target:"Object",stat:!0,forced:D(function(){ce.f(1)})},{getOwnPropertySymbols:function(ze){return ce.f(Y(ze))}}),Le&&l({target:"JSON",stat:!0,forced:!P||D(function(){var ze=Ge();return Le([ze])!="[null]"||Le({a:ze})!="{}"||Le(Object(ze))!="{}"})},{stringify:function(ze,Ue,et){var rt=ue(arguments),wt=Ue;if((H(Ue)||ze!==void 0)&&!ie(ze))return I(Ue)||(Ue=function(Mt,ur){if(B(wt)&&(ur=E(wt,this,Mt,ur)),!ie(ur))return ur}),rt[1]=Ue,_(Le,null,rt)}}),!ve[we]){var Rt=ve.valueOf;he(ve,we,function(ze){return E(Rt,this)})}Z(Ge,Te),Ie[_e]=!0},function(s,p,o){var l=o(146).charAt,c=o(41),b=o(56),_=o(111),E="String Iterator",w=b.set,k=b.getterFor(E);_(String,"String",function(j){w(this,{type:E,string:c(j),index:0})},function(){var j,P=k(this),D=P.string,N=P.index;return N>=D.length?{value:void 0,done:!0}:(j=l(D,N),P.index+=j.length,{value:j,done:!1})})},function(s,p,o){(function(l){var c=function(b){return b&&b.Math==Math&&b};s.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof l=="object"&&l)||function(){return this}()||Function("return this")()}).call(this,o(82))},function(s,p,o){var l=o(17),c=o(36),b=o(7),_=o(15),E=o(34),w=o(28),k=o(58),j=o(41),P=o(37).f,D=o(134),N=b.Symbol,I=N&&N.prototype;if(c&&w(N)&&(!("description"in I)||N().description!==void 0)){var B={},H=function(){var M=arguments.length<1||arguments[0]===void 0?void 0:j(arguments[0]),z=k(I,this)?new N(M):M===void 0?N():N(M);return M===""&&(B[z]=!0),z};D(H,N),H.prototype=I,I.constructor=H;var ee=String(N("test"))=="Symbol(test)",ie=_(I.toString),q=_(I.valueOf),Y=/^Symbol\((.*)\)[^)]+$/,K=_("".replace),L=_("".slice);P(I,"description",{configurable:!0,get:function(){var M=q(this),z=ie(M);if(E(B,M))return"";var R=ee?L(z,7,-1):K(z,Y,"$1");return R===""?void 0:R}}),l({global:!0,forced:!0},{Symbol:H})}},function(s,p,o){o(150)("iterator")},function(s,p,o){o.d(p,"a",function(){return _.a}),o.d(p,"c",function(){return _.e}),o.d(p,"h",function(){return Y}),o.d(p,"i",function(){return ee}),o.d(p,"j",function(){return B}),o.d(p,"b",function(){return ye}),o.d(p,"e",function(){return he}),o.d(p,"f",function(){return xe}),o.d(p,"g",function(){return Pt});var l,c,b,_=o(0),E=0,w=[],k=_.i.__b,j=_.i.__r,P=_.i.diffed,D=_.i.__c,N=_.i.unmount;function I(X,oe){_.i.__h&&_.i.__h(c,X,E||oe),E=0;var U=c.__H||(c.__H={__:[],__h:[]});return X>=U.__.length&&U.__.push({}),U.__[X]}function B(X){return E=1,H(J,X)}function H(X,oe,U){var se=I(l++,2);return se.t=X,se.__c||(se.__=[U?U(oe):J(void 0,oe),function(Me){var De=se.t(se.__[0],Me);se.__[0]!==De&&(se.__=[De,se.__[1]],se.__c.setState({}))}],se.__c=c),se.__}function ee(X,oe){var U=I(l++,3);!_.i.__s&&F(U.__H,oe)&&(U.__=X,U.__H=oe,c.__H.__h.push(U))}function ie(X,oe){var U=I(l++,4);!_.i.__s&&F(U.__H,oe)&&(U.__=X,U.__H=oe,c.__h.push(U))}function q(X,oe){var U=I(l++,7);return F(U.__H,oe)&&(U.__=X(),U.__H=oe,U.__h=X),U.__}function Y(X,oe){return E=8,q(function(){return X},oe)}function K(){var X;for(w.sort(function(oe,U){return oe.__v.__b-U.__v.__b});X=w.pop();)if(X.__P)try{X.__H.__h.forEach(z),X.__H.__h.forEach(R),X.__H.__h=[]}catch(oe){X.__H.__h=[],_.i.__e(oe,X.__v)}}_.i.__b=function(X){c=null,k&&k(X)},_.i.__r=function(X){j&&j(X),l=0;var oe=(c=X.__c).__H;oe&&(oe.__h.forEach(z),oe.__h.forEach(R),oe.__h=[])},_.i.diffed=function(X){P&&P(X);var oe=X.__c;oe&&oe.__H&&oe.__H.__h.length&&(w.push(oe)!==1&&b===_.i.requestAnimationFrame||((b=_.i.requestAnimationFrame)||M)(K)),c=null},_.i.__c=function(X,oe){oe.some(function(U){try{U.__h.forEach(z),U.__h=U.__h.filter(function(se){return!se.__||R(se)})}catch(se){oe.some(function(Me){Me.__h&&(Me.__h=[])}),oe=[],_.i.__e(se,U.__v)}}),D&&D(X,oe)},_.i.unmount=function(X){N&&N(X);var oe,U=X.__c;U&&U.__H&&(U.__H.__.forEach(function(se){try{z(se)}catch(Me){oe=Me}}),oe&&_.i.__e(oe,U.__v))};var L=typeof requestAnimationFrame=="function";function M(X){var oe,U=function(){clearTimeout(se),L&&cancelAnimationFrame(oe),setTimeout(X)},se=setTimeout(U,100);L&&(oe=requestAnimationFrame(U))}function z(X){var oe=c,U=X.__c;typeof U=="function"&&(X.__c=void 0,U()),c=oe}function R(X){var oe=c;X.__c=X.__(),c=oe}function F(X,oe){return!X||X.length!==oe.length||oe.some(function(U,se){return U!==X[se]})}function J(X,oe){return typeof oe=="function"?oe(X):oe}function fe(X,oe){for(var U in oe)X[U]=oe[U];return X}function ce(X,oe){for(var U in X)if(U!=="__source"&&!(U in oe))return!0;for(var se in oe)if(se!=="__source"&&X[se]!==oe[se])return!0;return!1}function ye(X){this.props=X}function xe(X,oe){function U(Me){var De=this.props.ref,He=De==Me.ref;return!He&&De&&(De.call?De(null):De.current=null),oe?!oe(this.props,Me)||!He:ce(this.props,Me)}function se(Me){return this.shouldComponentUpdate=U,Object(_.e)(X,Me)}return se.displayName="Memo("+(X.displayName||X.name)+")",se.prototype.isReactComponent=!0,se.__f=!0,se}(ye.prototype=new _.a).isPureReactComponent=!0,ye.prototype.shouldComponentUpdate=function(X,oe){return ce(this.props,X)||ce(this.state,oe)};var ge=_.i.__b;_.i.__b=function(X){X.type&&X.type.__f&&X.ref&&(X.props.ref=X.ref,X.ref=null),ge&&ge(X)};var ue=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function he(X){function oe(U,se){var Me=fe({},U);return delete Me.ref,X(Me,!(se=U.ref||se)||typeof se=="object"&&!("current"in se)?null:se)}return oe.$$typeof=ue,oe.render=oe,oe.prototype.isReactComponent=oe.__f=!0,oe.displayName="ForwardRef("+(X.displayName||X.name)+")",oe}var be=function(X,oe){return X==null?null:Object(_.k)(Object(_.k)(X).map(oe))},Se={map:be,forEach:be,count:function(X){return X?Object(_.k)(X).length:0},only:function(X){var oe=Object(_.k)(X);if(oe.length!==1)throw"Children.only";return oe[0]},toArray:_.k},Ie=_.i.__e;_.i.__e=function(X,oe,U){if(X.then){for(var se,Me=oe;Me=Me.__;)if((se=Me.__c)&&se.__c)return oe.__e==null&&(oe.__e=U.__e,oe.__k=U.__k),se.__c(X,oe)}Ie(X,oe,U)};var We=_.i.unmount;function ke(X,oe,U){return X&&(X.__c&&X.__c.__H&&(X.__c.__H.__.forEach(function(se){typeof se.__c=="function"&&se.__c()}),X.__c.__H=null),(X=fe({},X)).__c!=null&&(X.__c.__P===U&&(X.__c.__P=oe),X.__c=null),X.__k=X.__k&&X.__k.map(function(se){return ke(se,oe,U)})),X}function Re(X,oe,U){return X&&(X.__v=null,X.__k=X.__k&&X.__k.map(function(se){return Re(se,oe,U)}),X.__c&&X.__c.__P===oe&&(X.__e&&U.insertBefore(X.__e,X.__d),X.__c.__e=!0,X.__c.__P=U)),X}function $e(){this.__u=0,this.t=null,this.__b=null}function Z(X){var oe=X.__.__c;return oe&&oe.__e&&oe.__e(X)}function $(){this.u=null,this.o=null}_.i.unmount=function(X){var oe=X.__c;oe&&oe.__R&&oe.__R(),oe&&X.__h===!0&&(X.type=null),We&&We(X)},($e.prototype=new _.a).__c=function(X,oe){var U=oe.__c,se=this;se.t==null&&(se.t=[]),se.t.push(U);var Me=Z(se.__v),De=!1,He=function(){De||(De=!0,U.__R=null,Me?Me(lt):lt())};U.__R=He;var lt=function(){if(!--se.__u){if(se.state.__e){var $t=se.state.__e;se.__v.__k[0]=Re($t,$t.__c.__P,$t.__c.__O)}var Ct;for(se.setState({__e:se.__b=null});Ct=se.t.pop();)Ct.forceUpdate()}},Vt=oe.__h===!0;se.__u++||Vt||se.setState({__e:se.__b=se.__v.__k[0]}),X.then(He,He)},$e.prototype.componentWillUnmount=function(){this.t=[]},$e.prototype.render=function(X,oe){if(this.__b){if(this.__v.__k){var U=document.createElement("div"),se=this.__v.__k[0].__c;this.__v.__k[0]=ke(this.__b,U,se.__O=se.__P)}this.__b=null}var Me=oe.__e&&Object(_.e)(_.b,null,X.fallback);return Me&&(Me.__h=null),[Object(_.e)(_.b,null,oe.__e?null:X.children),Me]};var ae=function(X,oe,U){if(++U[1]===U[0]&&X.o.delete(oe),X.props.revealOrder&&(X.props.revealOrder[0]!=="t"||!X.o.size))for(U=X.u;U;){for(;U.length>3;)U.pop()();if(U[1]>>1,1),oe.i.removeChild(se)}}),Object(_.j)(Object(_.e)(_e,{context:oe.context},X.__v),oe.l)):oe.l&&oe.componentWillUnmount()}($.prototype=new _.a).__e=function(X){var oe=this,U=Z(oe.__v),se=oe.o.get(X);return se[0]++,function(Me){var De=function(){oe.props.revealOrder?(se.push(Me),ae(oe,X,se)):Me()};U?U(De):De()}},$.prototype.render=function(X){this.u=null,this.o=new Map;var oe=Object(_.k)(X.children);X.revealOrder&&X.revealOrder[0]==="b"&&oe.reverse();for(var U=oe.length;U--;)this.o.set(oe[U],this.u=[1,0,this.u]);return X.children},$.prototype.componentDidUpdate=$.prototype.componentDidMount=function(){var X=this;this.o.forEach(function(oe,U){ae(X,U,oe)})};var we=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ke=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,nt=typeof document<"u",Ze=function(X){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(X)};_.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(X){Object.defineProperty(_.a.prototype,X,{configurable:!0,get:function(){return this["UNSAFE_"+X]},set:function(oe){Object.defineProperty(this,X,{configurable:!0,writable:!0,value:oe})}})});var Ge=_.i.event;function ve(){}function Fe(){return this.cancelBubble}function te(){return this.defaultPrevented}_.i.event=function(X){return Ge&&(X=Ge(X)),X.persist=ve,X.isPropagationStopped=Fe,X.isDefaultPrevented=te,X.nativeEvent=X};var Le,ut={configurable:!0,get:function(){return this.class}},vt=_.i.vnode;_.i.vnode=function(X){var oe=X.type,U=X.props,se=U;if(typeof oe=="string"){var Me=oe.indexOf("-")===-1;for(var De in se={},U){var He=U[De];nt&&De==="children"&&oe==="noscript"||De==="value"&&"defaultValue"in U&&He==null||(De==="defaultValue"&&"value"in U&&U.value==null?De="value":De==="download"&&He===!0?He="":/ondoubleclick/i.test(De)?De="ondblclick":/^onchange(textarea|input)/i.test(De+oe)&&!Ze(U.type)?De="oninput":/^onfocus$/i.test(De)?De="onfocusin":/^onblur$/i.test(De)?De="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(De)?De=De.toLowerCase():Me&&Ke.test(De)?De=De.replace(/[A-Z0-9]/,"-$&").toLowerCase():He===null&&(He=void 0),se[De]=He)}oe=="select"&&se.multiple&&Array.isArray(se.value)&&(se.value=Object(_.k)(U.children).forEach(function(lt){lt.props.selected=se.value.indexOf(lt.props.value)!=-1})),oe=="select"&&se.defaultValue!=null&&(se.value=Object(_.k)(U.children).forEach(function(lt){lt.props.selected=se.multiple?se.defaultValue.indexOf(lt.props.value)!=-1:se.defaultValue==lt.props.value})),X.props=se,U.class!=U.className&&(ut.enumerable="className"in U,U.className!=null&&(se.class=U.className),Object.defineProperty(se,"className",ut))}X.$$typeof=we,vt&&vt(X)};var it=_.i.__r;_.i.__r=function(X){it&&it(X),Le=X.__c};var ht={ReactCurrentDispatcher:{current:{readContext:function(X){return Le.__n[X.__c].props.value}}}};function St(X){return!!X&&X.$$typeof===we}var Pt=function(X,oe){return X(oe)},at=_.b,Nt={useState:B,useReducer:H,useEffect:ee,useLayoutEffect:ie,useRef:function(X){return E=5,q(function(){return{current:X}},[])},useImperativeHandle:function(X,oe,U){E=6,ie(function(){typeof X=="function"?X(oe()):X&&(X.current=oe())},U==null?U:U.concat(X))},useMemo:q,useCallback:Y,useContext:function(X){var oe=c.context[X.__c],U=I(l++,9);return U.c=X,oe?(U.__==null&&(U.__=!0,oe.sub(c)),oe.props.value):X.__},useDebugValue:function(X,oe){_.i.useDebugValue&&_.i.useDebugValue(oe?oe(X):X)},version:"17.0.2",Children:Se,render:function(X,oe,U){return oe.__k==null&&(oe.textContent=""),Object(_.j)(X,oe),typeof U=="function"&&U(),X?X.__c:null},hydrate:function(X,oe,U){return Object(_.h)(X,oe),typeof U=="function"&&U(),X?X.__c:null},unmountComponentAtNode:function(X){return!!X.__k&&(Object(_.j)(null,X),!0)},createPortal:function(X,oe){return Object(_.e)(Te,{__v:X,i:oe})},createElement:_.e,createContext:_.d,createFactory:function(X){return _.e.bind(null,X)},cloneElement:function(X){return St(X)?_.c.apply(null,arguments):X},createRef:_.f,Fragment:_.b,isValidElement:St,findDOMNode:function(X){return X&&(X.base||X.nodeType===1&&X)||null},Component:_.a,PureComponent:ye,memo:xe,forwardRef:he,flushSync:function(X,oe){return X(oe)},unstable_batchedUpdates:Pt,StrictMode:at,Suspense:$e,SuspenseList:$,lazy:function(X){var oe,U,se;function Me(De){if(oe||(oe=X()).then(function(He){U=He.default||He},function(He){se=He}),se)throw se;if(!U)throw oe;return Object(_.e)(U,De)}return Me.displayName="Lazy",Me.__f=!0,Me},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ht};p.d=Nt},function(s,p,o){var l=o(7),c=o(147),b=o(148),_=o(180),E=o(57),w=function(j){if(j&&j.forEach!==_)try{E(j,"forEach",_)}catch{j.forEach=_}};for(var k in c)c[k]&&w(l[k]&&l[k].prototype);w(b)},function(s,p,o){o(17)({target:"Object",stat:!0},{setPrototypeOf:o(97)})},function(s,p,o){var l=o(17),c=o(19),b=o(38),_=o(96),E=o(137);l({target:"Object",stat:!0,forced:c(function(){_(1)}),sham:!E},{getPrototypeOf:function(w){return _(b(w))}})},function(s,p,o){var l=o(17),c=o(46),b=o(76),_=o(200),E=o(157),w=o(32),k=o(33),j=o(54),P=o(19),D=c("Reflect","construct"),N=Object.prototype,I=[].push,B=P(function(){function ie(){}return!(D(function(){},[],ie)instanceof ie)}),H=!P(function(){D(function(){})}),ee=B||H;l({target:"Reflect",stat:!0,forced:ee,sham:ee},{construct:function(ie,q){E(ie),w(q);var Y=arguments.length<3?ie:E(arguments[2]);if(H&&!B)return D(ie,q,Y);if(ie==Y){switch(q.length){case 0:return new ie;case 1:return new ie(q[0]);case 2:return new ie(q[0],q[1]);case 3:return new ie(q[0],q[1],q[2]);case 4:return new ie(q[0],q[1],q[2],q[3])}var K=[null];return b(I,K,q),new(b(_,ie,K))}var L=Y.prototype,M=j(k(L)?L:N),z=b(ie,M,q);return k(z)?z:M}})},function(s,p){var o=Function.prototype,l=o.bind,c=o.call,b=l&&l.bind(c);s.exports=l?function(_){return _&&b(c,_)}:function(_){return _&&function(){return c.apply(_,arguments)}}},function(s,p,o){var l=o(17),c=o(7),b=o(99),_=o(100),E=o(33),w=o(67),k=o(43),j=o(40),P=o(61),D=o(27),N=o(75),I=o(101),B=N("slice"),H=D("species"),ee=c.Array,ie=Math.max;l({target:"Array",proto:!0,forced:!B},{slice:function(q,Y){var K,L,M,z=j(this),R=k(z),F=w(q,R),J=w(Y===void 0?R:Y,R);if(b(z)&&(K=z.constructor,(_(K)&&(K===ee||b(K.prototype))||E(K)&&(K=K[H])===null)&&(K=void 0),K===ee||K===void 0))return I(z,F,J);for(L=new(K===void 0?ee:K)(ie(J-F,0)),M=0;F1?arguments[1]:void 0)}})},function(s,p,o){var l=o(17),c=o(183);l({target:"Array",stat:!0,forced:!o(118)(function(b){Array.from(b)})},{from:c})},function(s,p,o){var l=o(17),c=o(36),b=o(135),_=o(40),E=o(51),w=o(61);l({target:"Object",stat:!0,sham:!c},{getOwnPropertyDescriptors:function(k){for(var j,P,D=_(k),N=E.f,I=b(D),B={},H=0;I.length>H;)(P=N(D,j=I[H++]))!==void 0&&w(B,j,P);return B}})},,function(s,p,o){var l=o(7),c=o(84),b=o(34),_=o(85),E=o(109),w=o(128),k=c("wks"),j=l.Symbol,P=j&&j.for,D=w?j:j&&j.withoutSetter||_;s.exports=function(N){if(!b(k,N)||!E&&typeof k[N]!="string"){var I="Symbol."+N;E&&b(j,N)?k[N]=j[N]:k[N]=w&&P?P(I):D(I)}return k[N]}},function(s,p){s.exports=function(o){return typeof o=="function"}},function(s,p,o){var l=o(17),c=o(7),b=o(19),_=o(99),E=o(33),w=o(38),k=o(43),j=o(61),P=o(119),D=o(75),N=o(27),I=o(65),B=N("isConcatSpreadable"),H=9007199254740991,ee="Maximum allowed index exceeded",ie=c.TypeError,q=I>=51||!b(function(){var L=[];return L[B]=!1,L.concat()[0]!==L}),Y=D("concat"),K=function(L){if(!E(L))return!1;var M=L[B];return M!==void 0?!!M:_(L)};l({target:"Array",proto:!0,forced:!q||!Y},{concat:function(L){var M,z,R,F,J,fe=w(this),ce=P(fe,0),ye=0;for(M=-1,R=arguments.length;MH)throw ie(ee);for(z=0;z=H)throw ie(ee);j(ce,ye++,J)}return ce.length=ye,ce}})},function(s,p,o){var l=o(17),c=o(199);l({target:"Object",stat:!0,forced:Object.assign!==c},{assign:c})},function(s,p,o){var l=o(105),c=typeof self=="object"&&self&&self.Object===Object&&self,b=l.a||c||Function("return this")();p.a=b},function(s,p,o){var l=o(7),c=o(33),b=l.String,_=l.TypeError;s.exports=function(E){if(c(E))return E;throw _(b(E)+" is not an object")}},function(s,p,o){var l=o(28);s.exports=function(c){return typeof c=="object"?c!==null:l(c)}},function(s,p,o){var l=o(15),c=o(38),b=l({}.hasOwnProperty);s.exports=Object.hasOwn||function(_,E){return b(c(_),E)}},function(s,p){var o=Function.prototype.call;s.exports=o.bind?o.bind(o):function(){return o.apply(o,arguments)}},function(s,p,o){var l=o(19);s.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(s,p,o){var l=o(7),c=o(36),b=o(129),_=o(32),E=o(87),w=l.TypeError,k=Object.defineProperty;p.f=c?k:function(j,P,D){if(_(j),P=E(P),_(D),b)try{return k(j,P,D)}catch{}if("get"in D||"set"in D)throw w("Accessors not supported");return"value"in D&&(j[P]=D.value),j}},function(s,p,o){var l=o(7),c=o(45),b=l.Object;s.exports=function(_){return b(c(_))}},function(s,p,o){var l=o(17),c=o(74).map;l({target:"Array",proto:!0,forced:!o(75)("map")},{map:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}})},function(s,p,o){var l=o(81),c=o(45);s.exports=function(b){return l(c(b))}},function(s,p,o){var l=o(7),c=o(98),b=l.String;s.exports=function(_){if(c(_)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return b(_)}},function(s,p,o){(function(l){o.d(p,"d",function(){return _}),o.d(p,"c",function(){return E}),o.d(p,"b",function(){return w}),o.d(p,"a",function(){return j});var c=o(10),b=function(P,D){var N=typeof Symbol=="function"&&P[Symbol.iterator];if(!N)return P;var I,B,H=N.call(P),ee=[];try{for(;(D===void 0||D-- >0)&&!(I=H.next()).done;)ee.push(I.value)}catch(ie){B={error:ie}}finally{try{I&&!I.done&&(N=H.return)&&N.call(H)}finally{if(B)throw B.error}}return ee};function _(){var P=b(Object(c.j)(0),2)[1];return Object(c.h)(function(){P(function(D){return D+1})},[])}function E(P){if(!P||typeof P!="object")return!1;var D=Object.getPrototypeOf(P);return!D||D===Object.prototype}function w(P){return typeof Symbol=="function"?Symbol.for(P):"__$mobx-react "+P+"__"}var k={};function j(){return typeof window<"u"?window:l!==void 0?l:typeof self<"u"?self:k}}).call(this,o(82))},function(s,p,o){var l=o(90);s.exports=function(c){return l(c.length)}},function(s,p,o){var l=o(7),c=o(28),b=o(34),_=o(57),E=o(108),w=o(92),k=o(56),j=o(94).CONFIGURABLE,P=k.get,D=k.enforce,N=String(String).split("String");(s.exports=function(I,B,H,ee){var ie,q=!!ee&&!!ee.unsafe,Y=!!ee&&!!ee.enumerable,K=!!ee&&!!ee.noTargetGet,L=ee&&ee.name!==void 0?ee.name:B;c(H)&&(String(L).slice(0,7)==="Symbol("&&(L="["+String(L).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!b(H,"name")||j&&H.name!==L)&&_(H,"name",L),(ie=D(H)).source||(ie.source=N.join(typeof L=="string"?L:""))),I!==l?(q?!K&&I[B]&&(Y=!0):delete I[B],Y?I[B]=H:_(I,B,H)):Y?I[B]=H:E(B,H)})(Function.prototype,"toString",function(){return c(this)&&P(this).source||w(this)})},function(s,p,o){var l=o(7).TypeError;s.exports=function(c){if(c==null)throw l("Can't call method on "+c);return c}},function(s,p,o){var l=o(7),c=o(28),b=function(_){return c(_)?_:void 0};s.exports=function(_,E){return arguments.length<2?b(l[_]):l[_]&&l[_][E]}},function(s,p,o){var l=o(17),c=o(35),b=o(33),_=o(32),E=o(201),w=o(51),k=o(96);l({target:"Reflect",stat:!0},{get:function j(P,D){var N,I,B=arguments.length<3?P:arguments[2];return _(P)===B?P[D]:(N=w.f(P,D))?E(N)?N.value:N.get===void 0?void 0:c(N.get,B):b(I=k(P))?j(I,D,B):void 0}})},function(s,p,o){(function(l){var c=o(31),b=o(166),_=y&&!y.nodeType&&y,E=_&&typeof l=="object"&&l&&!l.nodeType&&l,w=E&&E.exports===_?c.a.Buffer:void 0,k=(w?w.isBuffer:void 0)||b.a;p.a=k}).call(this,o(121)(s))},function(s,p,o){(function(l){var c=o(105),b=y&&!y.nodeType&&y,_=b&&typeof l=="object"&&l&&!l.nodeType&&l,E=_&&_.exports===b&&c.a.process,w=function(){try{var k=_&&_.require&&_.require("util").types;return k||E&&E.binding&&E.binding("util")}catch{}}();p.a=w}).call(this,o(121)(s))},function(s,p,o){var l=o(15),c=l({}.toString),b=l("".slice);s.exports=function(_){return b(c(_),8,-1)}},function(s,p,o){var l=o(36),c=o(35),b=o(93),_=o(71),E=o(40),w=o(87),k=o(34),j=o(129),P=Object.getOwnPropertyDescriptor;p.f=l?P:function(D,N){if(D=E(D),N=w(N),j)try{return P(D,N)}catch{}if(k(D,N))return _(!c(b.f,D,N),D[N])}},function(s,p,o){var l=o(17),c=o(213).entries;l({target:"Object",stat:!0},{entries:function(b){return c(b)}})},function(s,p,o){var l=o(46);s.exports=l("navigator","userAgent")||""},function(s,p,o){var l,c=o(32),b=o(169),_=o(110),E=o(69),w=o(133),k=o(86),j=o(91),P=j("IE_PROTO"),D=function(){},N=function(H){return"